vendor.1f6f922bad6fc28bf390.js 3.5 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. webpackJsonp([0],[function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ddSdk=e.ENV_ENUM_SUB=e.ENV_ENUM=void 0;var r=n(65),i=n(821),o=n(65);Object.defineProperty(e,"ENV_ENUM",{enumerable:!0,get:function(){return o.ENV_ENUM}}),Object.defineProperty(e,"ENV_ENUM_SUB",{enumerable:!0,get:function(){return o.ENV_ENUM_SUB}});var a=n(76);n(827),e.ddSdk=new a.Sdk((0,r.getENV)(),i.log)},function(t,e,n){var r=n(3),i=n(32),o=n(17),a=n(18),s=n(33),u=function(t,e,n){var l,c,f,d,h=t&u.F,p=t&u.G,g=t&u.S,m=t&u.P,v=t&u.B,y=p?r:g?r[e]||(r[e]={}):(r[e]||{}).prototype,b=p?i:i[e]||(i[e]={}),_=b.prototype||(b.prototype={});p&&(n=e);for(l in n)c=!h&&y&&void 0!==y[l],f=(c?y:n)[l],d=v&&c?s(f,r):m&&"function"==typeof f?s(Function.call,f):f,y&&a(y,l,f,t&u.U),b[l]!=f&&o(b,l,d),m&&_[l]!=f&&(_[l]=f)};r.core=i,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},function(t,e,n){var r=n(5);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.genBizStoreParamsDealFn=e.genBoolResultDealFn=e.forceChangeParamsDealFn=e.genDefaultParamsDealFn=e.addDefaultCorpIdParamsDeal=e.addWatchParamsDeal=void 0;var r=function(t){var e=Object.assign({},t);return e.watch=!0,e};e.addWatchParamsDeal=r;var i=function(t){var e=Object.assign({},t);return e.corpId="corpId",e};e.addDefaultCorpIdParamsDeal=i;var o=function(t){var e=Object.assign({},t);return function(t){return Object.assign({},e,t)}};e.genDefaultParamsDealFn=o;var a=function(t){var e=Object.assign({},t);return function(t){return Object.assign(t,e)}};e.forceChangeParamsDealFn=a;var s=function(t){return function(e){var n=Object.assign({},e);return t.forEach(function(t){void 0!==n[t]&&(n[t]=!!n[t])}),n}};e.genBoolResultDealFn=s;var u=function(t){var e=Object.assign({},t);return"string"!=typeof e.params?(e.params=JSON.stringify(e),e):e};e.genBizStoreParamsDealFn=u},function(t,e){t.exports=function(t,e,n,r){var i,o=t=t||{},a=typeof t.default;"object"!==a&&"function"!==a||(i=t,o=t.default);var s="function"==typeof o?o.options:o;if(e&&(s.render=e.render,s.staticRenderFns=e.staticRenderFns),n&&(s._scopeId=n),r){var u=Object.create(s.computed||null);Object.keys(r).forEach(function(t){var e=r[t];u[t]=function(){return e}}),s.computed=u}return{esModule:i,exports:o,options:s}}},function(t,e,n){var r=n(82)("wks"),i=n(62),o=n(3).Symbol,a="function"==typeof o;(t.exports=function(t){return r[t]||(r[t]=a&&o[t]||(a?o:i)("Symbol."+t))}).store=r},function(t,e,n){var r=n(35),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},function(t,e,n){t.exports=!n(4)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(2),i=n(207),o=n(42),a=Object.defineProperty;e.f=n(10)?Object.defineProperty:function(t,e,n){if(r(t),e=o(e,!0),r(n),i)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){"use strict";function r(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=1,i=e[0],o=e.length;if("function"==typeof i)return i.apply(null,e.slice(1));if("string"==typeof i){for(var a=String(i).replace(m,function(t){if("%%"===t)return"%";if(r>=o)return t;switch(t){case"%s":return String(e[r++]);case"%d":return Number(e[r++]);case"%j":try{return JSON.stringify(e[r++])}catch(t){return"[Circular]"}break;default:return t}}),s=e[r];r<o;s=e[++r])a+=" "+s;return a}return i}function i(t){return"string"===t||"url"===t||"hex"===t||"email"===t||"pattern"===t}function o(t,e){return void 0===t||null===t||(!("array"!==e||!Array.isArray(t)||t.length)||!(!i(e)||"string"!=typeof t||t))}function a(t,e,n){function r(t){i.push.apply(i,t),++o===a&&n(i)}var i=[],o=0,a=t.length;t.forEach(function(t){e(t,r)})}function s(t,e,n){function r(a){if(a&&a.length)return void n(a);var s=i;i+=1,s<o?e(t[s],r):n([])}var i=0,o=t.length;r([])}function u(t){var e=[];return Object.keys(t).forEach(function(n){e.push.apply(e,t[n])}),e}function l(t,e,n,r){if(e.first){return s(u(t),n,r)}var i=e.firstFields||[];!0===i&&(i=Object.keys(t));var o=Object.keys(t),l=o.length,c=0,f=[],d=function(t){f.push.apply(f,t),++c===l&&r(f)};o.forEach(function(e){var r=t[e];-1!==i.indexOf(e)?s(r,n,d):a(r,n,d)})}function c(t){return function(e){return e&&e.message?(e.field=e.field||t.fullField,e):{message:e,field:e.field||t.fullField}}}function f(t,e){if(e)for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];"object"===(void 0===r?"undefined":g()(r))&&"object"===g()(t[n])?t[n]=h()({},t[n],r):t[n]=r}return t}n.d(e,"c",function(){return v}),e.e=r,e.f=o,e.b=l,e.d=c,e.a=f;var d=n(181),h=n.n(d),p=n(84),g=n.n(p),m=/%[sdj%]/g,v=function(){}},function(t,e,n){var r=n(40);t.exports=function(t){return Object(r(t))}},,function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){"use strict";var r=n(173),i=n(271),o=n(270),a=n(269),s=n(267),u=n(268);e.a={required:r.a,whitespace:i.a,type:o.a,range:a.a,enum:s.a,pattern:u.a}},function(t,e,n){var r=n(11),i=n(58);t.exports=n(10)?function(t,e,n){return r.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(3),i=n(17),o=n(23),a=n(62)("src"),s=n(398),u=(""+s).split("toString");n(32).inspectSource=function(t){return s.call(t)},(t.exports=function(t,e,n,s){var l="function"==typeof n;l&&(o(n,"name")||i(n,"name",e)),t[e]!==n&&(l&&(o(n,a)||i(n,a,t[e]?""+t[e]:u.join(String(e)))),t===r?t[e]=n:s?t[e]?t[e]=n:i(t,e,n):(delete t[e],i(t,e,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[a]||s.call(this)})},function(t,e,n){var r=n(1),i=n(4),o=n(40),a=/"/g,s=function(t,e,n,r){var i=String(o(t)),s="<"+e;return""!==n&&(s+=" "+n+'="'+String(r).replace(a,"&quot;")+'"'),s+">"+i+"</"+e+">"};t.exports=function(t,e){var n={};n[t]=e(s),r(r.P+r.F*i(function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}),"String",n)}},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";function r(t){return"[object Array]"===k.call(t)}function i(t){return"[object ArrayBuffer]"===k.call(t)}function o(t){return"undefined"!=typeof FormData&&t instanceof FormData}function a(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer}function s(t){return"string"==typeof t}function u(t){return"number"==typeof t}function l(t){return void 0===t}function c(t){return null!==t&&"object"==typeof t}function f(t){return"[object Date]"===k.call(t)}function d(t){return"[object File]"===k.call(t)}function h(t){return"[object Blob]"===k.call(t)}function p(t){return"[object Function]"===k.call(t)}function g(t){return c(t)&&p(t.pipe)}function m(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams}function v(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")}function y(){return"undefined"!=typeof window&&"undefined"!=typeof document&&"function"==typeof document.createElement}function b(t,e){if(null!==t&&void 0!==t)if("object"==typeof t||r(t)||(t=[t]),r(t))for(var n=0,i=t.length;n<i;n++)e.call(null,t[n],n,t);else for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.call(null,t[o],o,t)}function _(){function t(t,n){"object"==typeof e[n]&&"object"==typeof t?e[n]=_(e[n],t):e[n]=t}for(var e={},n=0,r=arguments.length;n<r;n++)b(arguments[n],t);return e}function w(t,e,n){return b(e,function(e,r){t[r]=n&&"function"==typeof e?x(e,n):e}),t}var x=n(179),k=Object.prototype.toString;t.exports={isArray:r,isArrayBuffer:i,isFormData:o,isArrayBufferView:a,isString:s,isNumber:u,isObject:c,isUndefined:l,isDate:f,isFile:d,isBlob:h,isFunction:p,isStream:g,isURLSearchParams:m,isStandardBrowserEnv:y,forEach:b,merge:_,extend:w,trim:v}},function(t,e,n){t.exports={default:n(351),__esModule:!0}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var r=n(81),i=n(58),o=n(26),a=n(42),s=n(23),u=n(207),l=Object.getOwnPropertyDescriptor;e.f=n(10)?l:function(t,e){if(t=o(t),e=a(e,!0),u)try{return l(t,e)}catch(t){}if(s(t,e))return i(!r.f.call(t,e),t[e])}},function(t,e,n){var r=n(23),i=n(13),o=n(148)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),r(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},function(t,e,n){var r=n(80),i=n(40);t.exports=function(t){return r(i(t))}},,function(t,e){var n=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},function(t,e,n){t.exports=!n(69)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(124)("wks"),i=n(92),o=n(37).Symbol,a="function"==typeof o;(t.exports=function(t){return r[t]||(r[t]=a&&o[t]||(a?o:i)("Symbol."+t))}).store=r},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){var n=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},function(t,e,n){var r=n(15);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},function(t,e,n){"use strict";var r=n(4);t.exports=function(t,e){return!!t&&r(function(){e?t.call(null,function(){},1):t.call(null)})}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){"use strict";function r(){}function i(t,e){return p.call(t,e)}function o(t,e){for(var n in e)t[n]=e[n];return t}function a(t){for(var e={},n=0;n<t.length;n++)t[n]&&o(e,t[n]);return e}function s(t,e,n){var r=t;e=e.replace(/\[(\w+)\]/g,".$1"),e=e.replace(/^\./,"");for(var i=e.split("."),o=0,a=i.length;o<a-1&&(r||n);++o){var s=i[o];if(!(s in r)){if(n)throw new Error("please transfer a valid prop path to form item!");break}r=r[s]}return{o:r,k:i[o],v:r?r[i[o]]:null}}function u(t){var e=!1;return function(){for(var n=this,r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];e||(e=!0,window.requestAnimationFrame(function(r){t.apply(n,i),e=!1}))}}function l(t){return Array.isArray(t)?t:y(t)?[]:[t]}e.__esModule=!0,e.isMac=e.isEmpty=e.isEqual=e.arrayEquals=e.looseEqual=e.capitalize=e.kebabCase=e.autoprefixer=e.isFirefox=e.isEdge=e.isIE=e.coerceTruthyValueToArray=e.arrayFind=e.arrayFindIndex=e.escapeRegexpString=e.valueEquals=e.generateId=e.getValueByPath=void 0;var c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.noop=r,e.hasOwn=i,e.toObject=a,e.getPropByPath=s,e.rafThrottle=u,e.objToArray=l;var f=n(14),d=function(t){return t&&t.__esModule?t:{default:t}}(f),h=n(252),p=Object.prototype.hasOwnProperty,g=(e.getValueByPath=function(t,e){e=e||"";for(var n=e.split("."),r=t,i=null,o=0,a=n.length;o<a;o++){var s=n[o];if(!r)break;if(o===a-1){i=r[s];break}r=r[s]}return i},e.generateId=function(){return Math.floor(1e4*Math.random())},e.valueEquals=function(t,e){if(t===e)return!0;if(!(t instanceof Array))return!1;if(!(e instanceof Array))return!1;if(t.length!==e.length)return!1;for(var n=0;n!==t.length;++n)if(t[n]!==e[n])return!1;return!0},e.escapeRegexpString=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return String(t).replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")},e.arrayFindIndex=function(t,e){for(var n=0;n!==t.length;++n)if(e(t[n]))return n;return-1}),m=(e.arrayFind=function(t,e){var n=g(t,e);return-1!==n?t[n]:void 0},e.coerceTruthyValueToArray=function(t){return Array.isArray(t)?t:t?[t]:[]},e.isIE=function(){return!d.default.prototype.$isServer&&!isNaN(Number(document.documentMode))},e.isEdge=function(){return!d.default.prototype.$isServer&&navigator.userAgent.indexOf("Edge")>-1},e.isFirefox=function(){return!d.default.prototype.$isServer&&!!window.navigator.userAgent.match(/firefox/i)},e.autoprefixer=function(t){if("object"!==(void 0===t?"undefined":c(t)))return t;var e=["ms-","webkit-"];return["transform","transition","animation"].forEach(function(n){var r=t[n];n&&r&&e.forEach(function(e){t[e+n]=r})}),t},e.kebabCase=function(t){var e=/([^-])([A-Z])/g;return t.replace(e,"$1-$2").replace(e,"$1-$2").toLowerCase()},e.capitalize=function(t){return(0,h.isString)(t)?t.charAt(0).toUpperCase()+t.slice(1):t},e.looseEqual=function(t,e){var n=(0,h.isObject)(t),r=(0,h.isObject)(e);return n&&r?JSON.stringify(t)===JSON.stringify(e):!n&&!r&&String(t)===String(e)}),v=e.arrayEquals=function(t,e){if(t=t||[],e=e||[],t.length!==e.length)return!1;for(var n=0;n<t.length;n++)if(!m(t[n],e[n]))return!1;return!0},y=(e.isEqual=function(t,e){return Array.isArray(t)&&Array.isArray(e)?v(t,e):m(t,e)},e.isEmpty=function(t){if(null==t)return!0;if("boolean"==typeof t)return!1;if("number"==typeof t)return!t;if(t instanceof Error)return""===t.message;switch(Object.prototype.toString.call(t)){case"[object String]":case"[object Array]":return!t.length;case"[object File]":case"[object Map]":case"[object Set]":return!t.size;case"[object Object]":return!Object.keys(t).length}return!1});e.isMac=function(){return!d.default.prototype.$isServer&&/macintosh|mac os x/i.test(navigator.userAgent)}},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e,n){var r=n(68),i=n(187),o=n(127),a=Object.defineProperty;e.f=n(29)?Object.defineProperty:function(t,e,n){if(r(t),e=o(e,!0),r(n),i)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(33),i=n(80),o=n(13),a=n(9),s=n(132);t.exports=function(t,e){var n=1==t,u=2==t,l=3==t,c=4==t,f=6==t,d=5==t||f,h=e||s;return function(e,s,p){for(var g,m,v=o(e),y=i(v),b=r(s,p,3),_=a(y.length),w=0,x=n?h(e,_):u?h(e,0):void 0;_>w;w++)if((d||w in y)&&(g=y[w],m=b(g,w,v),t))if(n)x[w]=m;else if(m)switch(t){case 3:return!0;case 5:return g;case 6:return w;case 2:x.push(g)}else if(c)return!1;return f?-1:l||c?c:x}}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){var r=n(1),i=n(32),o=n(4);t.exports=function(t,e){var n=(i.Object||{})[t]||Object[t],a={};a[t]=e(n),r(r.S+r.F*o(function(){n(1)}),"Object",a)}},function(t,e,n){var r=n(5);t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){var r=n(37),i=n(28),o=n(77),a=n(47),s=n(52),u=function(t,e,n){var l,c,f,d=t&u.F,h=t&u.G,p=t&u.S,g=t&u.P,m=t&u.B,v=t&u.W,y=h?i:i[e]||(i[e]={}),b=y.prototype,_=h?r:p?r[e]:(r[e]||{}).prototype;h&&(n=e);for(l in n)(c=!d&&_&&void 0!==_[l])&&s(y,l)||(f=c?_[l]:n[l],y[l]=h&&"function"!=typeof _[l]?n[l]:m&&c?o(f,r):v&&_[l]==f?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(f):g&&"function"==typeof f?o(Function.call,f):f,g&&((y.virtual||(y.virtual={}))[l]=f,t&u.R&&b&&!b[l]&&a(b,l,f)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},function(t,e,n){var r=n(229),i=n(1),o=n(82)("metadata"),a=o.store||(o.store=new(n(233))),s=function(t,e,n){var i=a.get(t);if(!i){if(!n)return;a.set(t,i=new r)}var o=i.get(e);if(!o){if(!n)return;i.set(e,o=new r)}return o},u=function(t,e,n){var r=s(e,n,!1);return void 0!==r&&r.has(t)},l=function(t,e,n){var r=s(e,n,!1);return void 0===r?void 0:r.get(t)},c=function(t,e,n,r){s(n,r,!0).set(t,e)},f=function(t,e){var n=s(t,e,!1),r=[];return n&&n.forEach(function(t,e){r.push(e)}),r},d=function(t){return void 0===t||"symbol"==typeof t?t:String(t)},h=function(t){i(i.S,"Reflect",t)};t.exports={store:a,map:s,has:u,get:l,set:c,keys:f,key:d,exp:h}},function(t,e,n){"use strict";if(n(10)){var r=n(50),i=n(3),o=n(4),a=n(1),s=n(105),u=n(153),l=n(33),c=n(53),f=n(58),d=n(17),h=n(59),p=n(35),g=n(9),m=n(227),v=n(61),y=n(42),b=n(23),_=n(71),w=n(5),x=n(13),k=n(139),S=n(55),C=n(25),E=n(56).f,T=n(155),A=n(62),O=n(8),P=n(39),N=n(93),D=n(83),M=n(156),I=n(72),R=n(98),$=n(60),L=n(131),j=n(199),F=n(11),B=n(24),V=F.f,z=B.f,U=i.RangeError,H=i.TypeError,q=i.Uint8Array,W=Array.prototype,G=u.ArrayBuffer,Y=u.DataView,K=P(0),X=P(2),J=P(3),Q=P(4),Z=P(5),tt=P(6),et=N(!0),nt=N(!1),rt=M.values,it=M.keys,ot=M.entries,at=W.lastIndexOf,st=W.reduce,ut=W.reduceRight,lt=W.join,ct=W.sort,ft=W.slice,dt=W.toString,ht=W.toLocaleString,pt=O("iterator"),gt=O("toStringTag"),mt=A("typed_constructor"),vt=A("def_constructor"),yt=s.CONSTR,bt=s.TYPED,_t=s.VIEW,wt=P(1,function(t,e){return Et(D(t,t[vt]),e)}),xt=o(function(){return 1===new q(new Uint16Array([1]).buffer)[0]}),kt=!!q&&!!q.prototype.set&&o(function(){new q(1).set({})}),St=function(t,e){var n=p(t);if(n<0||n%e)throw U("Wrong offset!");return n},Ct=function(t){if(w(t)&&bt in t)return t;throw H(t+" is not a typed array!")},Et=function(t,e){if(!(w(t)&&mt in t))throw H("It is not a typed array constructor!");return new t(e)},Tt=function(t,e){return At(D(t,t[vt]),e)},At=function(t,e){for(var n=0,r=e.length,i=Et(t,r);r>n;)i[n]=e[n++];return i},Ot=function(t,e,n){V(t,e,{get:function(){return this._d[n]}})},Pt=function(t){var e,n,r,i,o,a,s=x(t),u=arguments.length,c=u>1?arguments[1]:void 0,f=void 0!==c,d=T(s);if(void 0!=d&&!k(d)){for(a=d.call(s),r=[],e=0;!(o=a.next()).done;e++)r.push(o.value);s=r}for(f&&u>2&&(c=l(c,arguments[2],2)),e=0,n=g(s.length),i=Et(this,n);n>e;e++)i[e]=f?c(s[e],e):s[e];return i},Nt=function(){for(var t=0,e=arguments.length,n=Et(this,e);e>t;)n[t]=arguments[t++];return n},Dt=!!q&&o(function(){ht.call(new q(1))}),Mt=function(){return ht.apply(Dt?ft.call(Ct(this)):Ct(this),arguments)},It={copyWithin:function(t,e){return j.call(Ct(this),t,e,arguments.length>2?arguments[2]:void 0)},every:function(t){return Q(Ct(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return L.apply(Ct(this),arguments)},filter:function(t){return Tt(this,X(Ct(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return Z(Ct(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return tt(Ct(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){K(Ct(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return nt(Ct(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return et(Ct(this),t,arguments.length>1?arguments[1]:void 0)},join:function(t){return lt.apply(Ct(this),arguments)},lastIndexOf:function(t){return at.apply(Ct(this),arguments)},map:function(t){return wt(Ct(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(t){return st.apply(Ct(this),arguments)},reduceRight:function(t){return ut.apply(Ct(this),arguments)},reverse:function(){for(var t,e=this,n=Ct(e).length,r=Math.floor(n/2),i=0;i<r;)t=e[i],e[i++]=e[--n],e[n]=t;return e},some:function(t){return J(Ct(this),t,arguments.length>1?arguments[1]:void 0)},sort:function(t){return ct.call(Ct(this),t)},subarray:function(t,e){var n=Ct(this),r=n.length,i=v(t,r);return new(D(n,n[vt]))(n.buffer,n.byteOffset+i*n.BYTES_PER_ELEMENT,g((void 0===e?r:v(e,r))-i))}},Rt=function(t,e){return Tt(this,ft.call(Ct(this),t,e))},$t=function(t){Ct(this);var e=St(arguments[1],1),n=this.length,r=x(t),i=g(r.length),o=0;if(i+e>n)throw U("Wrong length!");for(;o<i;)this[e+o]=r[o++]},Lt={entries:function(){return ot.call(Ct(this))},keys:function(){return it.call(Ct(this))},values:function(){return rt.call(Ct(this))}},jt=function(t,e){return w(t)&&t[bt]&&"symbol"!=typeof e&&e in t&&String(+e)==String(e)},Ft=function(t,e){return jt(t,e=y(e,!0))?f(2,t[e]):z(t,e)},Bt=function(t,e,n){return!(jt(t,e=y(e,!0))&&w(n)&&b(n,"value"))||b(n,"get")||b(n,"set")||n.configurable||b(n,"writable")&&!n.writable||b(n,"enumerable")&&!n.enumerable?V(t,e,n):(t[e]=n.value,t)};yt||(B.f=Ft,F.f=Bt),a(a.S+a.F*!yt,"Object",{getOwnPropertyDescriptor:Ft,defineProperty:Bt}),o(function(){dt.call({})})&&(dt=ht=function(){return lt.call(this)});var Vt=h({},It);h(Vt,Lt),d(Vt,pt,Lt.values),h(Vt,{slice:Rt,set:$t,constructor:function(){},toString:dt,toLocaleString:Mt}),Ot(Vt,"buffer","b"),Ot(Vt,"byteOffset","o"),Ot(Vt,"byteLength","l"),Ot(Vt,"length","e"),V(Vt,gt,{get:function(){return this[bt]}}),t.exports=function(t,e,n,u){u=!!u;var l=t+(u?"Clamped":"")+"Array",f="get"+t,h="set"+t,p=i[l],v=p||{},y=p&&C(p),b=!p||!s.ABV,x={},k=p&&p.prototype,T=function(t,n){var r=t._d;return r.v[f](n*e+r.o,xt)},A=function(t,n,r){var i=t._d;u&&(r=(r=Math.round(r))<0?0:r>255?255:255&r),i.v[h](n*e+i.o,r,xt)},O=function(t,e){V(t,e,{get:function(){return T(this,e)},set:function(t){return A(this,e,t)},enumerable:!0})};b?(p=n(function(t,n,r,i){c(t,p,l,"_d");var o,a,s,u,f=0,h=0;if(w(n)){if(!(n instanceof G||"ArrayBuffer"==(u=_(n))||"SharedArrayBuffer"==u))return bt in n?At(p,n):Pt.call(p,n);o=n,h=St(r,e);var v=n.byteLength;if(void 0===i){if(v%e)throw U("Wrong length!");if((a=v-h)<0)throw U("Wrong length!")}else if((a=g(i)*e)+h>v)throw U("Wrong length!");s=a/e}else s=m(n),a=s*e,o=new G(a);for(d(t,"_d",{b:o,o:h,l:a,e:s,v:new Y(o)});f<s;)O(t,f++)}),k=p.prototype=S(Vt),d(k,"constructor",p)):o(function(){p(1)})&&o(function(){new p(-1)})&&R(function(t){new p,new p(null),new p(1.5),new p(t)},!0)||(p=n(function(t,n,r,i){c(t,p,l);var o;return w(n)?n instanceof G||"ArrayBuffer"==(o=_(n))||"SharedArrayBuffer"==o?void 0!==i?new v(n,St(r,e),i):void 0!==r?new v(n,St(r,e)):new v(n):bt in n?At(p,n):Pt.call(p,n):new v(m(n))}),K(y!==Function.prototype?E(v).concat(E(y)):E(v),function(t){t in p||d(p,t,v[t])}),p.prototype=k,r||(k.constructor=p));var P=k[pt],N=!!P&&("values"==P.name||void 0==P.name),D=Lt.values;d(p,mt,!0),d(k,bt,l),d(k,_t,!0),d(k,vt,p),(u?new p(1)[gt]==l:gt in k)||V(k,gt,{get:function(){return l}}),x[l]=p,a(a.G+a.W+a.F*(p!=v),x),a(a.S,l,{BYTES_PER_ELEMENT:e}),a(a.S+a.F*o(function(){v.of.call(p,1)}),l,{from:Pt,of:Nt}),"BYTES_PER_ELEMENT"in k||d(k,"BYTES_PER_ELEMENT",e),a(a.P,l,It),$(l),a(a.P+a.F*kt,l,{set:$t}),a(a.P+a.F*!N,l,Lt),r||k.toString==dt||(k.toString=dt),a(a.P+a.F*o(function(){new p(1).slice()}),l,{slice:Rt}),a(a.P+a.F*(o(function(){return[1,2].toLocaleString()!=new p([1,2]).toLocaleString()})||!o(function(){k.toLocaleString.call([1,2])})),l,{toLocaleString:Mt}),I[l]=N?P:D,r||N||d(k,pt,D)}}else t.exports=function(){}},function(t,e,n){"use strict";function r(t,e){if(!t||!e)return!1;if(-1!==e.indexOf(" "))throw new Error("className should not contain space.");return t.classList?t.classList.contains(e):(" "+t.className+" ").indexOf(" "+e+" ")>-1}function i(t,e){if(t){for(var n=t.className,i=(e||"").split(" "),o=0,a=i.length;o<a;o++){var s=i[o];s&&(t.classList?t.classList.add(s):r(t,s)||(n+=" "+s))}t.classList||t.setAttribute("class",n)}}function o(t,e){if(t&&e){for(var n=e.split(" "),i=" "+t.className+" ",o=0,a=n.length;o<a;o++){var s=n[o];s&&(t.classList?t.classList.remove(s):r(t,s)&&(i=i.replace(" "+s+" "," ")))}t.classList||t.setAttribute("class",p(i))}}function a(t,e,n){if(t&&e)if("object"===(void 0===e?"undefined":s(e)))for(var r in e)e.hasOwnProperty(r)&&a(t,r,e[r]);else e=g(e),"opacity"===e&&h<9?t.style.filter=isNaN(n)?"":"alpha(opacity="+100*n+")":t.style[e]=n}e.__esModule=!0,e.isInContainer=e.getScrollContainer=e.isScroll=e.getStyle=e.once=e.off=e.on=void 0;var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.hasClass=r,e.addClass=i,e.removeClass=o,e.setStyle=a;var u=n(14),l=function(t){return t&&t.__esModule?t:{default:t}}(u),c=l.default.prototype.$isServer,f=/([\:\-\_]+(.))/g,d=/^moz([A-Z])/,h=c?0:Number(document.documentMode),p=function(t){return(t||"").replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g,"")},g=function(t){return t.replace(f,function(t,e,n,r){return r?n.toUpperCase():n}).replace(d,"Moz$1")},m=e.on=function(){return!c&&document.addEventListener?function(t,e,n){t&&e&&n&&t.addEventListener(e,n,!1)}:function(t,e,n){t&&e&&n&&t.attachEvent("on"+e,n)}}(),v=e.off=function(){return!c&&document.removeEventListener?function(t,e,n){t&&e&&t.removeEventListener(e,n,!1)}:function(t,e,n){t&&e&&t.detachEvent("on"+e,n)}}(),y=(e.once=function(t,e,n){m(t,e,function r(){n&&n.apply(this,arguments),v(t,e,r)})},e.getStyle=h<9?function(t,e){if(!c){if(!t||!e)return null;e=g(e),"float"===e&&(e="styleFloat");try{switch(e){case"opacity":try{return t.filters.item("alpha").opacity/100}catch(t){return 1}default:return t.style[e]||t.currentStyle?t.currentStyle[e]:null}}catch(n){return t.style[e]}}}:function(t,e){if(!c){if(!t||!e)return null;e=g(e),"float"===e&&(e="cssFloat");try{var n=document.defaultView.getComputedStyle(t,"");return t.style[e]||n?n[e]:null}catch(n){return t.style[e]}}}),b=e.isScroll=function(t,e){if(!c){return(null!==e&&void 0!==e?e?y(t,"overflow-y"):y(t,"overflow-x"):y(t,"overflow")).match(/(scroll|auto|overlay)/)}};e.getScrollContainer=function(t,e){if(!c){for(var n=t;n;){if([window,document,document.documentElement].includes(n))return window;if(b(n,e))return n;n=n.parentNode}return n}},e.isInContainer=function(t,e){if(c||!t||!e)return!1;var n=t.getBoundingClientRect(),r=void 0;return r=[window,document,document.documentElement,null,void 0].includes(e)?{top:0,right:window.innerWidth,bottom:window.innerHeight,left:0}:e.getBoundingClientRect(),n.top<r.bottom&&n.bottom>r.top&&n.right>r.left&&n.left<r.right}},function(t,e,n){var r=n(38),i=n(89);t.exports=n(29)?function(t,e,n){return r.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){var r=n(8)("unscopables"),i=Array.prototype;void 0==i[r]&&n(17)(i,r,{}),t.exports=function(t){i[r][t]=!0}},function(t,e){t.exports=!1},function(t,e,n){var r=n(62)("meta"),i=n(5),o=n(23),a=n(11).f,s=0,u=Object.isExtensible||function(){return!0},l=!n(4)(function(){return u(Object.preventExtensions({}))}),c=function(t){a(t,r,{value:{i:"O"+ ++s,w:{}}})},f=function(t,e){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,r)){if(!u(t))return"F";if(!e)return"E";c(t)}return t[r].i},d=function(t,e){if(!o(t,r)){if(!u(t))return!0;if(!e)return!1;c(t)}return t[r].w},h=function(t){return l&&p.NEED&&u(t)&&!o(t,r)&&c(t),t},p=t.exports={KEY:r,NEED:!1,fastKey:f,getWeak:d,onFreeze:h}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},function(t,e,n){var r=n(33),i=n(210),o=n(139),a=n(2),s=n(9),u=n(155),l={},c={},e=t.exports=function(t,e,n,f,d){var h,p,g,m,v=d?function(){return t}:u(t),y=r(n,f,e?2:1),b=0;if("function"!=typeof v)throw TypeError(t+" is not iterable!");if(o(v)){for(h=s(t.length);h>b;b++)if((m=e?y(a(p=t[b])[0],p[1]):y(t[b]))===l||m===c)return m}else for(g=v.call(t);!(p=g.next()).done;)if((m=i(g,y,p.value,e))===l||m===c)return m};e.BREAK=l,e.RETURN=c},function(t,e,n){var r=n(2),i=n(216),o=n(135),a=n(148)("IE_PROTO"),s=function(){},u=function(){var t,e=n(134)("iframe"),r=o.length;for(e.style.display="none",n(137).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("<script>document.F=Object<\/script>"),t.close(),u=t.F;r--;)delete u.prototype[o[r]];return u()};t.exports=Object.create||function(t,e){var n;return null!==t?(s.prototype=r(t),n=new s,s.prototype=null,n[a]=t):n=u(),void 0===e?n:i(n,e)}},function(t,e,n){var r=n(218),i=n(135).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},function(t,e,n){var r=n(218),i=n(135);t.exports=Object.keys||function(t){return r(t,i)}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var r=n(18);t.exports=function(t,e,n){for(var i in e)r(t,i,e[i],n);return t}},function(t,e,n){"use strict";var r=n(3),i=n(11),o=n(10),a=n(8)("species");t.exports=function(t){var e=r[t];o&&e&&!e[a]&&i.f(e,a,{configurable:!0,get:function(){return this}})}},function(t,e,n){var r=n(35),i=Math.max,o=Math.min;t.exports=function(t,e){return t=r(t),t<0?i(t+e,0):o(t,e)}},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e,n){var r=n(5);t.exports=function(t,e){if(!r(t)||t._t!==e)throw TypeError("Incompatible receiver, "+e+" required!");return t}},function(t,e,n){"use strict";var r=n(235);n(831),t.exports=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getENV=e.getUA=e.ENV_ENUM_SUB=e.APP_TYPE=e.ENV_ENUM=void 0;var r=n(76),i=n(76);Object.defineProperty(e,"ENV_ENUM",{enumerable:!0,get:function(){return i.ENV_ENUM}}),Object.defineProperty(e,"APP_TYPE",{enumerable:!0,get:function(){return i.APP_TYPE}}),Object.defineProperty(e,"ENV_ENUM_SUB",{enumerable:!0,get:function(){return i.ENV_ENUM_SUB}});var o,a=n(824),s=function(){try{if("undefined"!=typeof window&&void 0!==window.top)return window.top.__dingtalk_jsapi_top_platfrom_config__}catch(t){return}};!function(t){t.singlePage="singlePage",t.miniApp="miniApp",t.miniWidget="miniWidget"}(o||(o={}));var u=function(){var t="";try{"undefined"!=typeof navigator&&(t=navigator&&(navigator.userAgent||navigator.swuserAgent)||"")}catch(e){t=""}return t};e.getUA=u;var l=function(){var t=(0,e.getUA)(),n=/iPhone|iPad|iPod|iOS/i.test(t),i=/Android/i.test(t),u=(/Nebula/i.test(t),/DingTalk/i.test(t)),l=/dd-web/i.test(t),c="object"==typeof nuva,f="object"==typeof dd&&"function"==typeof dd.dtBridge,d=f&&n||c&&n,h=u||a.default.isDingTalk,p=n&&h||a.default.isWeexiOS||d,g=i&&h||a.default.isWeexAndroid,m=f,v=l,y=r.APP_TYPE.WEB;if(v)y=r.APP_TYPE.WEBVIEW_IN_MINIAPP;else if(m)y=r.APP_TYPE.MINI_APP;else if(a.default.isWeexiOS||a.default.isWeexAndroid)try{var b=weex.config.ddWeexEnv;y=b===o.miniWidget?r.APP_TYPE.WEEX_WIDGET:r.APP_TYPE.WEEX}catch(t){y=r.APP_TYPE.WEEX}var _,w="*",x=t.match(/AliApp\(\w+\/([a-zA-Z0-9.-]+)\)/);null===x&&(x=t.match(/DingTalk\/([a-zA-Z0-9.-]+)/));var k;x&&x[1]&&(k=x[1]);var S="";"undefined"!=typeof name&&(S=name);var C=s();try{C&&"undefined"!=typeof window&&void 0!==window.top&&window.top!==window&&(S=top.name)}catch(t){}if(S)try{var E=JSON.parse(S);E.hostVersion&&(k=E.hostVersion),w=E.language||navigator.language||"*",_=E.containerId}catch(t){}var T=!!_;T&&!k&&(x=t.match(/DingTalk\(([a-zA-Z0-9\.-]+)\)/))&&x[1]&&(k=x[1]);var A,O=r.ENV_ENUM_SUB.noSub;return(A=p?r.ENV_ENUM.ios:g?r.ENV_ENUM.android:T?r.ENV_ENUM.pc:C&&C.platform?C.platform:r.ENV_ENUM.notInDingTalk)===r.ENV_ENUM.pc&&(O=t.indexOf("Macintosh; Intel Mac OS")>-1?r.ENV_ENUM_SUB.mac:r.ENV_ENUM_SUB.win),{platform:A,platformSub:O,version:k,appType:y,language:w}};e.getENV=l},function(t,e,n){"use strict";function r(t,e,n){this.$children.forEach(function(i){i.$options.componentName===t?i.$emit.apply(i,[e].concat(n)):r.apply(i,[t,e].concat([n]))})}e.__esModule=!0,e.default={methods:{dispatch:function(t,e,n){for(var r=this.$parent||this.$root,i=r.$options.componentName;r&&(!i||i!==t);)(r=r.$parent)&&(i=r.$options.componentName);r&&r.$emit.apply(r,[e].concat(n))},broadcast:function(t,e,n){r.call(this,t,e,n)}}}},function(t,e,n){"use strict";var r=SyntaxError,i=Function,o=TypeError,a=function(t){try{return i('"use strict"; return ('+t+").constructor;")()}catch(t){}},s=Object.getOwnPropertyDescriptor;if(s)try{s({},"")}catch(t){s=null}var u=function(){throw new o},l=s?function(){try{return arguments.callee,u}catch(t){try{return s(arguments,"callee").get}catch(t){return u}}}():u,c=n(910)(),f=n(909)(),d=Object.getPrototypeOf||(f?function(t){return t.__proto__}:null),h={},p="undefined"!=typeof Uint8Array&&d?d(Uint8Array):void 0,g={"%AggregateError%":"undefined"==typeof AggregateError?void 0:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"%ArrayIteratorPrototype%":c&&d?d([][Symbol.iterator]()):void 0,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":h,"%AsyncGenerator%":h,"%AsyncGeneratorFunction%":h,"%AsyncIteratorPrototype%":h,"%Atomics%":"undefined"==typeof Atomics?void 0:Atomics,"%BigInt%":"undefined"==typeof BigInt?void 0:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?void 0:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?void 0:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?void 0:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?void 0:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?void 0:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?void 0:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":h,"%Int8Array%":"undefined"==typeof Int8Array?void 0:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?void 0:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?void 0:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":c&&d?d(d([][Symbol.iterator]())):void 0,"%JSON%":"object"==typeof JSON?JSON:void 0,"%Map%":"undefined"==typeof Map?void 0:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&c&&d?d((new Map)[Symbol.iterator]()):void 0,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?void 0:Promise,"%Proxy%":"undefined"==typeof Proxy?void 0:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?void 0:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?void 0:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&c&&d?d((new Set)[Symbol.iterator]()):void 0,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":c&&d?d(""[Symbol.iterator]()):void 0,"%Symbol%":c?Symbol:void 0,"%SyntaxError%":r,"%ThrowTypeError%":l,"%TypedArray%":p,"%TypeError%":o,"%Uint8Array%":"undefined"==typeof Uint8Array?void 0:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?void 0:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?void 0:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?void 0:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?void 0:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?void 0:WeakSet};if(d)try{null.error}catch(t){var m=d(d(t));g["%Error.prototype%"]=m}var v=function t(e){var n;if("%AsyncFunction%"===e)n=a("async function () {}");else if("%GeneratorFunction%"===e)n=a("function* () {}");else if("%AsyncGeneratorFunction%"===e)n=a("async function* () {}");else if("%AsyncGenerator%"===e){var r=t("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===e){var i=t("%AsyncGenerator%");i&&d&&(n=d(i.prototype))}return g[e]=n,n},y={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},b=n(168),_=n(912),w=b.call(Function.call,Array.prototype.concat),x=b.call(Function.apply,Array.prototype.splice),k=b.call(Function.call,String.prototype.replace),S=b.call(Function.call,String.prototype.slice),C=b.call(Function.call,RegExp.prototype.exec),E=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,T=/\\(\\)?/g,A=function(t){var e=S(t,0,1),n=S(t,-1);if("%"===e&&"%"!==n)throw new r("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==e)throw new r("invalid intrinsic syntax, expected opening `%`");var i=[];return k(t,E,function(t,e,n,r){i[i.length]=n?k(r,T,"$1"):e||t}),i},O=function(t,e){var n,i=t;if(_(y,i)&&(n=y[i],i="%"+n[0]+"%"),_(g,i)){var a=g[i];if(a===h&&(a=v(i)),void 0===a&&!e)throw new o("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:n,name:i,value:a}}throw new r("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new o("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new o('"allowMissing" argument must be a boolean');if(null===C(/^%?[^%]*%?$/,t))throw new r("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=A(t),i=n.length>0?n[0]:"",a=O("%"+i+"%",e),u=a.name,l=a.value,c=!1,f=a.alias;f&&(i=f[0],x(n,w([0,1],f)));for(var d=1,h=!0;d<n.length;d+=1){var p=n[d],m=S(p,0,1),v=S(p,-1);if(('"'===m||"'"===m||"`"===m||'"'===v||"'"===v||"`"===v)&&m!==v)throw new r("property names with quotes must have matching quotes");if("constructor"!==p&&h||(c=!0),i+="."+p,u="%"+i+"%",_(g,u))l=g[u];else if(null!=l){if(!(p in l)){if(!e)throw new o("base intrinsic for "+t+" exists, but the property is not available.");return}if(s&&d+1>=n.length){var y=s(l,p);h=!!y,l=h&&"get"in y&&!("originalValue"in y.get)?y.get:l[p]}else h=_(l,p),l=l[p];h&&!c&&(g[u]=l)}}return l}},function(t,e,n){var r=n(48);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){var r=n(118),i=n(116);t.exports=function(t){return r(i(t))}},function(t,e,n){var r=n(31),i=n(8)("toStringTag"),o="Arguments"==r(function(){return arguments}()),a=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,n,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=a(e=Object(t),i))?n:o?r(e):"Object"==(s=r(e))&&"function"==typeof e.callee?"Arguments":s}},function(t,e){t.exports={}},function(t,e,n){var r=n(11).f,i=n(23),o=n(8)("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,o)&&r(t,o,{configurable:!0,value:e})}},function(t,e,n){var r=n(1),i=n(40),o=n(4),a=n(151),s="["+a+"]",u="​…",l=RegExp("^"+s+s+"*"),c=RegExp(s+s+"*$"),f=function(t,e,n){var i={},s=o(function(){return!!a[t]()||u[t]()!=u}),l=i[t]=s?e(d):a[t];n&&(i[n]=l),r(r.P+r.F*s,"String",i)},d=f.trim=function(t,e){return t=String(i(t)),1&e&&(t=t.replace(l,"")),2&e&&(t=t.replace(c,"")),t};t.exports=f},function(t,e,n){"use strict";var r=n(235);n(241),n(242),t.exports=r},function(t,e,n){"use strict";function r(t,e){var n=t&&t.vs;return"object"==typeof n&&(n=n[e.platformSub]),n}Object.defineProperty(e,"__esModule",{value:!0}),e.Sdk=e.LogLevel=e.APP_TYPE=e.isFunction=e.compareVersion=e.ENV_ENUM_SUB=e.ENV_ENUM=void 0;var i=n(830);Object.defineProperty(e,"APP_TYPE",{enumerable:!0,get:function(){return i.APP_TYPE}}),Object.defineProperty(e,"LogLevel",{enumerable:!0,get:function(){return i.LogLevel}}),Object.defineProperty(e,"isFunction",{enumerable:!0,get:function(){return i.isFunction}}),Object.defineProperty(e,"compareVersion",{enumerable:!0,get:function(){return i.compareVersion}}),Object.defineProperty(e,"ENV_ENUM",{enumerable:!0,get:function(){return i.ENV_ENUM}}),Object.defineProperty(e,"ENV_ENUM_SUB",{enumerable:!0,get:function(){return i.ENV_ENUM_SUB}});var o=function(){function t(t,e){var n=this;this.configJsApiList=[],this.hadConfig=!1,this.p={},this.config$=new Promise(function(t,e){n.p.reject=e,n.p.resolve=t}),this.logQueue=[],this.devConfig={debug:!1},this.platformConfigMap={},this.invokeAPIConfigMapByMethod={},this.isBridgeDrity=!0,this.getExportSdk=function(){return n.exportSdk},this.setAPI=function(t,e){n.invokeAPIConfigMapByMethod[t]=e},this.setPlatform=function(t){n.isBridgeDrity=!0,n.platformConfigMap[t.platform]=t,t.platform===n.env.platform&&t.bridgeInit().catch(function(t){n.customLog(i.LogLevel.WARNING,["auto bridgeInit error",t||""])})},this.getPlatformConfigMap=function(){return n.platformConfigMap},this.deleteApiConfig=function(t,e){var r=n.invokeAPIConfigMapByMethod[t];r&&delete r[e]},this.invokeAPI=function(t,e,o){void 0===e&&(e={}),void 0===o&&(o=!0),n.customLog(i.LogLevel.INFO,['==> "'.concat(t,'" params: '),e]);var a=+new Date,s=a+"_"+Math.floor(1e3*Math.random());if(n.devConfig.onBeforeInvokeAPI)try{n.devConfig.onBeforeInvokeAPI({invokeId:s,method:t,params:e,startTime:a})}catch(t){n.customLog(i.LogLevel.ERROR,["call Hook:onBeforeInvokeAPI failed, reason:",t])}return!1===n.devConfig.isAuthApi&&(o=!1),n.bridgeInitFn().then(function(u){var l=n.invokeAPIConfigMapByMethod[t],c=n.devConfig.forceEnableDealApiFnMap&&n.devConfig.forceEnableDealApiFnMap[t]&&!0===n.devConfig.forceEnableDealApiFnMap[t](e),f=!c&&(!0===n.devConfig.isDisableDeal||n.devConfig.disbaleDealApiWhiteList&&-1!==n.devConfig.disbaleDealApiWhiteList.indexOf(t));if(l||!o){var d;if(l&&(d=l[n.env.platform]),d||!o){var h={};h=!f&&d&&d.paramsDeal&&(0,i.isFunction)(d.paramsDeal)?d.paramsDeal(e):Object.assign({},e);var p=function(t){return!f&&d&&d.resultDeal&&(0,i.isFunction)(d.resultDeal)?d.resultDeal(t):t};if((0,i.isFunction)(h.onSuccess)){var g=h.onSuccess;h.onSuccess=function(t){g(p(t))}}return u(t,h).then(p,function(e){var a=n.hadConfig&&void 0===n.isReady&&-1!==n.configJsApiList.indexOf(t),s="object"==typeof e&&"string"==typeof e.errorCode&&e.errorCode===i.ERROR_CODE.no_permission,l="object"==typeof e&&"string"==typeof e.errorCode&&e.errorCode===i.ERROR_CODE.cancel,c=r(d,n.env),f=c&&n.env.version&&(0,i.compareVersion)(n.env.version,c),g=(n.env.platform===i.ENV_ENUM.ios||n.env.platform===i.ENV_ENUM.android)&&a&&s,m=n.env.platform===i.ENV_ENUM.pc&&a&&(f&&!l&&o||s);return g||m?n.config$.then(function(){return u(t,h).then(p)}):Promise.reject(e)}).then(function(r){if(n.devConfig.onAfterInvokeAPI)try{n.devConfig.onAfterInvokeAPI({invokeId:s,method:t,params:e,payload:r,isSuccess:!0,startTime:a,duration:+new Date-a})}catch(t){n.customLog(i.LogLevel.ERROR,["call Hook:onAfterInvokeAPI failed, reason:",t])}return n.customLog(i.LogLevel.INFO,['<== "'.concat(t,'" success result: '),r]),r},function(r){if(n.devConfig.onAfterInvokeAPI)try{n.devConfig.onAfterInvokeAPI({invokeId:s,method:t,params:e,payload:r,startTime:a,duration:+new Date-a,isSuccess:!1})}catch(r){n.customLog(i.LogLevel.ERROR,["call Hook:onAfterInvokeAPI failed, reason:",r])}return n.customLog(i.LogLevel.WARNING,['<== "'.concat(t,'" fail result: '),r]),Promise.reject(r)})}var m='"'.concat(t,'" do not support the current platform (').concat(n.env.platform,")");return n.customLog(i.LogLevel.ERROR,[m]),Promise.reject({errorCode:i.ERROR_CODE.jsapi_internal_error,errorMessage:m})}var m="This API method is not configured for the platform (".concat(n.env.platform,")");return n.customLog(i.LogLevel.ERROR,[m]),Promise.reject({errorCode:i.ERROR_CODE.jsapi_internal_error,errorMessage:m})})},this.isLogQueueTimeout=!1,this.customLog=function(t,e){var r={level:t,text:e,time:new Date};!0===n.devConfig.debug?n.customLogInstance(r):n.isLogQueueTimeout||(n.logQueueTimer||(n.logQueueTimer=setTimeout(function(){n.isLogQueueTimeout=!0,n.logQueue=[]},1e4)),n.logQueue.push(r),n.logQueue.length>10&&(n.logQueue=n.logQueue.slice(n.logQueue.length-10)))},this.clearLogQueue=function(){n.logQueue.forEach(function(t){n.customLogInstance(t)}),n.logQueue=[]},this.customLogInstance=e,this.env=t,this.bridgeInitFn=function(){if(n.bridgeInitFnPromise&&!n.isBridgeDrity)return n.bridgeInitFnPromise;n.isBridgeDrity=!1;var e=n.platformConfigMap[t.platform];if(e)n.bridgeInitFnPromise=e.bridgeInit().catch(function(t){return n.customLog(i.LogLevel.ERROR,["\b\b\b\b\bJsBridge initialization fails, jsapi will not work"]),Promise.reject(t)});else{var r="Do not support the current environment:".concat(t.platform);n.customLog(i.LogLevel.WARNING,[r]),n.bridgeInitFnPromise=Promise.reject(new Error(r))}return n.bridgeInitFnPromise};var o=function(t){void 0===t&&(t={}),n.devConfig=Object.assign(n.devConfig,t),!0===t.debug&&n.clearLogQueue(),t.extraPlatform&&n.setPlatform(t.extraPlatform)};this.exportSdk={config:function(e){void 0===e&&(e={});var r=!0;Object.keys(e).forEach(function(t){-1===["debug","usePromise"].indexOf(t)&&(r=!1)}),r?(n.customLog(i.LogLevel.WARNING,["This is a deprecated feature, recommend use dd.devConfig"]),o(e)):n.hadConfig?n.customLog(i.LogLevel.WARNING,["Config has been executed"]):(e.jsApiList&&(n.configJsApiList=e.jsApiList),n.hadConfig=!0,n.bridgeInitFn().then(function(r){var i=n.platformConfigMap[t.platform],o=e;i.authParamsDeal&&(o=i.authParamsDeal(o)),r(i.authMethod,o).then(function(t){n.isReady=!0,n.p.resolve(t)}).catch(function(t){n.isReady=!1,n.p.reject(t)})},function(t){n.customLog(i.LogLevel.ERROR,['\b\b\b\b\bJsBridge initialization failed and "dd.config" failed to call']),n.p.reject(t)}))},devConfig:o,ready:function(t){!1===n.hadConfig?(n.customLog(i.LogLevel.WARNING,["You don 't use a dd.config, so you don't need to wrap dd.ready, recommend remove dd.ready"]),n.bridgeInitFn().then(function(){t()})):n.config$.then(function(e){t()})},error:function(t){n.config$.catch(function(e){t(e)})},on:function(e,r){n.bridgeInitFn().then(function(){n.platformConfigMap[t.platform].event.on(e,r)})},off:function(e,r){n.bridgeInitFn().then(function(){n.platformConfigMap[t.platform].event.off(e,r)})},env:t,checkJsApi:function(e){void 0===e&&(e={});var o={};return e.jsApiList&&e.jsApiList.forEach(function(e){var a=n.invokeAPIConfigMapByMethod[e];if(a){var s=a[t.platform],u=r(s,t);u&&t.version&&(0,i.compareVersion)(t.version,u)&&(o[e]=!0)}o[e]||(o[e]=!1)}),Promise.resolve(o)},_invoke:function(t,e){return void 0===e&&(e={}),n.invokeAPI(t,e,!1)}}}return t}();e.Sdk=o},function(t,e,n){var r=n(183);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports={}},function(t,e,n){"use strict";var r=n(2);t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},function(t,e,n){var r=n(31);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){var r=n(32),i=n(3),o=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n(50)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(t,e,n){var r=n(2),i=n(15),o=n(8)("species");t.exports=function(t,e){var n,a=r(t).constructor;return void 0===a||void 0==(n=r(a)[o])?e:i(n)}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var i=n(345),o=r(i),a=n(344),s=r(a),u="function"==typeof s.default&&"symbol"==typeof o.default?function(t){return typeof t}:function(t){return t&&"function"==typeof s.default&&t.constructor===s.default&&t!==s.default.prototype?"symbol":typeof t};e.default="function"==typeof s.default&&"symbol"===u(o.default)?function(t){return void 0===t?"undefined":u(t)}:function(t){return t&&"function"==typeof s.default&&t.constructor===s.default&&t!==s.default.prototype?"symbol":void 0===t?"undefined":u(t)}},function(t,e,n){var r=n(77),i=n(370),o=n(369),a=n(68),s=n(126),u=n(382),l={},c={},e=t.exports=function(t,e,n,f,d){var h,p,g,m,v=d?function(){return t}:u(t),y=r(n,f,e?2:1),b=0;if("function"!=typeof v)throw TypeError(t+" is not iterable!");if(o(v)){for(h=s(t.length);h>b;b++)if((m=e?y(a(p=t[b])[0],p[1]):y(t[b]))===l||m===c)return m}else for(g=v.call(t);!(p=g.next()).done;)if((m=i(g,y,p.value,e))===l||m===c)return m};e.BREAK=l,e.RETURN=c},function(t,e){t.exports=!0},function(t,e,n){var r=n(191),i=n(117);t.exports=Object.keys||function(t){return r(t,i)}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var r=n(38).f,i=n(52),o=n(30)("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,o)&&r(t,o,{configurable:!0,value:e})}},function(t,e,n){var r=n(116);t.exports=function(t){return Object(r(t))}},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e,n){var r=n(26),i=n(9),o=n(61);t.exports=function(t){return function(e,n,a){var s,u=r(e),l=i(u.length),c=o(a,l);if(t&&n!=n){for(;l>c;)if((s=u[c++])!=s)return!0}else for(;l>c;c++)if((t||c in u)&&u[c]===n)return t||c||0;return!t&&-1}}},function(t,e,n){"use strict";var r=n(3),i=n(1),o=n(18),a=n(59),s=n(51),u=n(54),l=n(53),c=n(5),f=n(4),d=n(98),h=n(73),p=n(138);t.exports=function(t,e,n,g,m,v){var y=r[t],b=y,_=m?"set":"add",w=b&&b.prototype,x={},k=function(t){var e=w[t];o(w,t,"delete"==t?function(t){return!(v&&!c(t))&&e.call(this,0===t?0:t)}:"has"==t?function(t){return!(v&&!c(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return v&&!c(t)?void 0:e.call(this,0===t?0:t)}:"add"==t?function(t){return e.call(this,0===t?0:t),this}:function(t,n){return e.call(this,0===t?0:t,n),this})};if("function"==typeof b&&(v||w.forEach&&!f(function(){(new b).entries().next()}))){var S=new b,C=S[_](v?{}:-0,1)!=S,E=f(function(){S.has(1)}),T=d(function(t){new b(t)}),A=!v&&f(function(){for(var t=new b,e=5;e--;)t[_](e,e);return!t.has(-0)});T||(b=e(function(e,n){l(e,b,t);var r=p(new y,e,b);return void 0!=n&&u(n,m,r[_],r),r}),b.prototype=w,w.constructor=b),(E||A)&&(k("delete"),k("has"),m&&k("get")),(A||C)&&k(_),v&&w.clear&&delete w.clear}else b=g.getConstructor(e,t,m,_),a(b.prototype,n),s.NEED=!0;return h(b,t),x[t]=b,i(i.G+i.W+i.F*(b!=y),x),v||g.setStrong(b,t,m),b}},function(t,e,n){"use strict";n(230);var r=n(18),i=n(17),o=n(4),a=n(40),s=n(8),u=n(146),l=s("species"),c=!o(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}),f=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();t.exports=function(t,e,n){var d=s(t),h=!o(function(){var e={};return e[d]=function(){return 7},7!=""[t](e)}),p=h?!o(function(){var e=!1,n=/a/;return n.exec=function(){return e=!0,null},"split"===t&&(n.constructor={},n.constructor[l]=function(){return n}),n[d](""),!e}):void 0;if(!h||!p||"replace"===t&&!c||"split"===t&&!f){var g=/./[d],m=n(a,d,""[t],function(t,e,n,r,i){return e.exec===u?h&&!i?{done:!0,value:g.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}}),v=m[0],y=m[1];r(String.prototype,t,v),i(RegExp.prototype,d,2==e?function(t,e){return y.call(t,this,e)}:function(t){return y.call(t,this)})}}},function(t,e,n){var r=n(31);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(5),i=n(31),o=n(8)("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[o])?!!e:"RegExp"==i(t))}},function(t,e,n){var r=n(8)("iterator"),i=!1;try{var o=[7][r]();o.return=function(){i=!0},Array.from(o,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!i)return!1;var n=!1;try{var o=[7],a=o[r]();a.next=function(){return{done:n=!0}},o[r]=function(){return a},t(o)}catch(t){}return n}},function(t,e,n){"use strict";t.exports=n(50)||!n(4)(function(){var t=Math.random();__defineSetter__.call(null,t,function(){}),delete n(3)[t]})},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){"use strict";var r=n(71),i=RegExp.prototype.exec;t.exports=function(t,e){var n=t.exec;if("function"==typeof n){var o=n.call(t,e);if("object"!=typeof o)throw new TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==r(t))throw new TypeError("RegExp#exec called on incompatible receiver");return i.call(t,e)}},function(t,e,n){"use strict";var r=n(1),i=n(15),o=n(33),a=n(54);t.exports=function(t){r(r.S,t,{from:function(t){var e,n,r,s,u=arguments[1];return i(this),e=void 0!==u,e&&i(u),void 0==t?new this:(n=[],e?(r=0,s=o(u,arguments[2],2),a(t,!1,function(t){n.push(s(t,r++))})):a(t,!1,n.push,n),new this(n))}})}},function(t,e,n){"use strict";var r=n(1);t.exports=function(t){r(r.S,t,{of:function(){for(var t=arguments.length,e=new Array(t);t--;)e[t]=arguments[t];return new this(e)}})}},function(t,e,n){var r=n(35),i=n(40);t.exports=function(t){return function(e,n){var o,a,s=String(i(e)),u=r(n),l=s.length;return u<0||u>=l?t?"":void 0:(o=s.charCodeAt(u),o<55296||o>56319||u+1===l||(a=s.charCodeAt(u+1))<56320||a>57343?t?s.charAt(u):o:t?s.slice(u,u+2):a-56320+(o-55296<<10)+65536)}}},function(t,e,n){for(var r,i=n(3),o=n(17),a=n(62),s=a("typed_array"),u=a("view"),l=!(!i.ArrayBuffer||!i.DataView),c=l,f=0,d="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");f<9;)(r=i[d[f++]])?(o(r.prototype,s,!0),o(r.prototype,u,!0)):c=!1;t.exports={ABV:l,CONSTR:c,TYPED:s,VIEW:u}},function(t,e,n){var r=n(3),i=r.navigator;t.exports=i&&i.userAgent||""},function(t,e,n){!function(e,n){t.exports=n()}(0,function(){return function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=721)}({199:function(t,e,n){"use strict";var r=n(201);t.exports=r},201:function(t,e,n){"use strict";var r=n(203),i=n(204),o=n(202),a=n(205),s=new o,u=!1,l="",c=null,f={},d=/{.*}/;try{var h=window.name.match(d);if(h&&h[0])var f=JSON.parse(h[0])}catch(t){f={}}f.hostOrigin&&".dingtalk.com"===f.hostOrigin.split(":")[1].slice(0-".dingtalk.com".length)&&f.containerId&&(u=!0,l=f.hostOrigin,c=f.containerId);var p={},g=new Promise(function(t,e){p._resolve=t,p._reject=e}),m={},v=null;window.top!==window?(v=window.top,p._resolve()):"object"==typeof dingtalk&&"object"==typeof dingtalk.platform&&"function"==typeof dingtalk.platform.invokeAPI&&(v=window,p._resolve()),m[a.SYS_INIT]=function(t){v=t.frameWindow,p._resolve(),t.respond({})},window.addEventListener("message",function(t){var e=t.data,n=t.origin;if(n===l)if("response"===e.type&&e.msgId){var r=e.msgId,o=s.getMsyById(r);o&&o.methodName!==a.SYS_EVENT&&o.receiveResponse(e.body,!e.success)}else if("event"===e.type&&e.msgId){var r=e.msgId,o=s.getMsyById(r);o&&o.receiveEvent(e.eventName,e.body)}else if("request"===e.type&&e.msgId){var o=new i(t.source,n,e);m[o.methodName]&&m[o.methodName](o)}}),e.invokeAPI=function(t,e){var n=new r(c,t,e);return u&&g.then(function(){v&&v.postMessage(n.getPayload(),l),s.addPending(n)}),n};var y=null;e.addEventListener=function(t,n){y||(y=e.invokeAPI(a.SYS_EVENT,{})),y.addEventListener(t,n)},e.removeEventListener=function(t,e){y&&y.removeEventListener(t,e)}},202:function(t,e,n){"use strict";var r=function(){this.pendingMsgs={}};r.prototype.addPending=function(t){this.pendingMsgs[t.id]=t;var e=function(){delete this.pendingMsgs[t.id],t.removeEventListener("_finish",e)}.bind(this);t.addEventListener("_finish",e)},r.prototype.getMsyById=function(t){return this.pendingMsgs[t]},t.exports=r},203:function(t,e,n){"use strict";var r=n(716),i=n(715),o=0,a=Math.floor(1e3*Math.random()),s=function(){return 1e3*(1e3*a+Math.floor(1e3*Math.random()))+ ++o%1e3},u={code:408,reason:"timeout"},l={TIMEOUT:"_timeout",FINISH:"_finish"},c={timeout:-1},f=function(t,e,n,r){this.id=s(),this.methodName=e,this.containerId=t,this.option=i({},c,r);var n=n||{};this._p={},this.result=new Promise(function(t,e){this._p._resolve=t,this._p._reject=e}.bind(this)),this.callbacks={},this.plainMsg=this._handleMsg(n),this._eventsHandle={},this._timeoutTimer=null,this._initTimeout(),this.isFinish=!1};f.prototype._initTimeout=function(){this._clearTimeout(),this.option.timeout>0&&(this._timeoutTimer=setTimeout(function(){this.receiveEvent(l.TIMEOUT),this.receiveResponse(u,!0)}.bind(this),this.option.timeout))},f.prototype._clearTimeout=function(){clearTimeout(this._timeoutTimer)},f.prototype._handleMsg=function(t){var e={};return Object.keys(t).forEach(function(n){var i=t[n];"function"==typeof i&&"on"===n.slice(0,2)?this.callbacks[n]=i:e[n]=r(i)}.bind(this)),e},f.prototype.getPayload=function(){return{msgId:this.id,containerId:this.containerId,methodName:this.methodName,body:this.plainMsg,type:"request"}},f.prototype.receiveEvent=function(t,e){if(this.isFinish&&t!==l.FINISH)return!1;t!==l.FINISH&&t!==l.TIMEOUT&&this._initTimeout(),Array.isArray(this._eventsHandle[t])&&this._eventsHandle[t].forEach(function(t){try{t(e)}catch(t){console.error(e)}});var n="on"+t.charAt(0).toUpperCase()+t.slice(1);return this.callbacks[n]&&this.callbacks[n](e),!0},f.prototype.addEventListener=function(t,e){if(!t||"function"!=typeof e)throw"eventName is null or handle is not a function, addEventListener fail";Array.isArray(this._eventsHandle[t])||(this._eventsHandle[t]=[]),this._eventsHandle[t].push(e)},f.prototype.removeEventListener=function(t,e){if(!t||!e)throw"eventName is null or handle is null, invoke removeEventListener fail";if(Array.isArray(this._eventsHandle[t])){var n=this._eventsHandle[t].indexOf(e);-1!==n&&this._eventsHandle[t].splice(n,1)}},f.prototype.receiveResponse=function(t,e){if(!0===this.isFinish)return!1;this._clearTimeout();var e=!!e;return e?this._p._reject(t):this._p._resolve(t),setTimeout(function(){this.receiveEvent(l.FINISH)}.bind(this),0),this.isFinish=!0,!0},t.exports=f},204:function(t,e,n){"use strict";var r=function(t,e,n){if(this._msgId=n.msgId,this.frameWindow=t,this.methodName=n.methodName,this.clientOrigin=e,this.containerId=n.containerId,this.params=n.body,!this._msgId)throw"msgId not exist";if(!this.frameWindow)throw"frameWindow not exist";if(!this.methodName)throw"methodName not exits";if(!this.clientOrigin)throw"clientOrigin not exist";this.hasResponded=!1};r.prototype.respond=function(t,e){var e=!!e;if(!0!==this.hasResponded){var n={type:"response",success:!e,body:t,msgId:this._msgId};this.frameWindow.postMessage(n,this.clientOrigin),this.hasResponded=!0}},r.prototype.emit=function(t,e){var n={type:"event",eventName:t,body:e,msgId:this._msgId};this.frameWindow.postMessage(n,this.clientOrigin)},t.exports=r},205:function(t,e,n){"use strict";t.exports={SYS_EVENT:"SYS_openAPIContainerInitEvent",SYS_INIT:"SYS_openAPIContainerInit"}},4:function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},714:function(t,e,n){(function(t,n){function r(t,e){return t.set(e[0],e[1]),t}function i(t,e){return t.add(e),t}function o(t,e){for(var n=-1,r=t.length;++n<r&&!1!==e(t[n],n,t););return t}function a(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}function s(t,e,n,r){var i=-1,o=t.length;for(r&&o&&(n=t[++i]);++i<o;)n=e(n,t[i],i,t);return n}function u(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}function l(t){return t&&t.Object===Object?t:null}function c(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}function f(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n}function d(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}function h(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function p(){this.__data__=Me?Me(null):{}}function g(t){return this.has(t)&&delete this.__data__[t]}function m(t){var e=this.__data__;if(Me){var n=e[t];return n===At?void 0:n}return me.call(e,t)?e[t]:void 0}function v(t){var e=this.__data__;return Me?void 0!==e[t]:me.call(e,t)}function y(t,e){return this.__data__[t]=Me&&void 0===e?At:e,this}function b(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function _(){this.__data__=[]}function w(t){var e=this.__data__,n=j(e,t);return!(n<0||(n==e.length-1?e.pop():Ce.call(e,n,1),0))}function x(t){var e=this.__data__,n=j(e,t);return n<0?void 0:e[n][1]}function k(t){return j(this.__data__,t)>-1}function S(t,e){var n=this.__data__,r=j(n,t);return r<0?n.push([t,e]):n[r][1]=e,this}function C(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function E(){this.__data__={hash:new h,map:new(Oe||b),string:new h}}function T(t){return rt(this,t).delete(t)}function A(t){return rt(this,t).get(t)}function O(t){return rt(this,t).has(t)}function P(t,e){return rt(this,t).set(t,e),this}function N(t){this.__data__=new b(t)}function D(){this.__data__=new b}function M(t){return this.__data__.delete(t)}function I(t){return this.__data__.get(t)}function R(t){return this.__data__.has(t)}function $(t,e){var n=this.__data__;return n instanceof b&&n.__data__.length==Tt&&(n=this.__data__=new C(n.__data__)),n.set(t,e),this}function L(t,e,n){var r=t[e];me.call(t,e)&&mt(r,n)&&(void 0!==n||e in t)||(t[e]=n)}function j(t,e){for(var n=t.length;n--;)if(mt(t[n][0],e))return n;return-1}function F(t,e){return t&&tt(e,Et(e),t)}function B(t,e,n,r,i,a,s){var u;if(r&&(u=a?r(t,i,a,s):r(t)),void 0!==u)return u;if(!xt(t))return t;var l=ze(t);if(l){if(u=ut(t),!e)return Z(t,u)}else{var f=st(t),d=f==Mt||f==It;if(Ue(t))return q(t,e);if(f==Lt||f==Pt||d&&!a){if(c(t))return a?t:{};if(u=lt(d?{}:t),!e)return et(t,F(u,t))}else{if(!re[f])return a?t:{};u=ct(t,f,B,e)}}s||(s=new N);var h=s.get(t);if(h)return h;if(s.set(t,u),!l)var p=n?nt(t):Et(t);return o(p||t,function(i,o){p&&(o=i,i=t[o]),L(u,o,B(i,e,n,r,o,t,s))}),u}function V(t){return xt(t)?ke(t):{}}function z(t,e,n){var r=e(t);return ze(t)?r:a(r,n(t))}function U(t,e){return me.call(t,e)||"object"==typeof t&&e in t&&null===ot(t)}function H(t){return Te(Object(t))}function q(t,e){if(e)return t.slice();var n=new t.constructor(t.length);return t.copy(n),n}function W(t){var e=new t.constructor(t.byteLength);return new we(e).set(new we(t)),e}function G(t,e){var n=e?W(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}function Y(t,e,n){return s(e?n(f(t),!0):f(t),r,new t.constructor)}function K(t){var e=new t.constructor(t.source,te.exec(t));return e.lastIndex=t.lastIndex,e}function X(t,e,n){return s(e?n(d(t),!0):d(t),i,new t.constructor)}function J(t){return Be?Object(Be.call(t)):{}}function Q(t,e){var n=e?W(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function Z(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}function tt(t,e,n,r){n||(n={});for(var i=-1,o=e.length;++i<o;){var a=e[i];L(n,a,r?r(n[a],t[a],a,n,t):t[a])}return n}function et(t,e){return tt(t,at(t),e)}function nt(t){return z(t,Et,at)}function rt(t,e){var n=t.__data__;return ht(e)?n["string"==typeof e?"string":"hash"]:n.map}function it(t,e){var n=t[e];return St(n)?n:void 0}function ot(t){return Ee(Object(t))}function at(t){return xe(Object(t))}function st(t){return ve.call(t)}function ut(t){var e=t.length,n=t.constructor(e);return e&&"string"==typeof t[0]&&me.call(t,"index")&&(n.index=t.index,n.input=t.input),n}function lt(t){return"function"!=typeof t.constructor||pt(t)?{}:V(ot(t))}function ct(t,e,n,r){var i=t.constructor;switch(e){case zt:return W(t);case Nt:case Dt:return new i(+t);case Ut:return G(t,r);case Ht:case qt:case Wt:case Gt:case Yt:case Kt:case Xt:case Jt:case Qt:return Q(t,r);case Rt:return Y(t,r,n);case $t:case Bt:return new i(t);case jt:return K(t);case Ft:return X(t,r,n);case Vt:return J(t)}}function ft(t){var e=t?t.length:void 0;return wt(e)&&(ze(t)||Ct(t)||vt(t))?u(e,String):null}function dt(t,e){return!!(e=null==e?Ot:e)&&("number"==typeof t||ne.test(t))&&t>-1&&t%1==0&&t<e}function ht(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}function pt(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||pe)}function gt(t){if(null!=t){try{return ge.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function mt(t,e){return t===e||t!==t&&e!==e}function vt(t){return bt(t)&&me.call(t,"callee")&&(!Se.call(t,"callee")||ve.call(t)==Pt)}function yt(t){return null!=t&&wt(Ve(t))&&!_t(t)}function bt(t){return kt(t)&&yt(t)}function _t(t){var e=xt(t)?ve.call(t):"";return e==Mt||e==It}function wt(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=Ot}function xt(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function kt(t){return!!t&&"object"==typeof t}function St(t){return!!xt(t)&&(_t(t)||c(t)?ye:ee).test(gt(t))}function Ct(t){return"string"==typeof t||!ze(t)&&kt(t)&&ve.call(t)==Bt}function Et(t){var e=pt(t);if(!e&&!yt(t))return H(t);var n=ft(t),r=!!n,i=n||[],o=i.length;for(var a in t)!U(t,a)||r&&("length"==a||dt(a,o))||e&&"constructor"==a||i.push(a);return i}var Tt=200,At="__lodash_hash_undefined__",Ot=9007199254740991,Pt="[object Arguments]",Nt="[object Boolean]",Dt="[object Date]",Mt="[object Function]",It="[object GeneratorFunction]",Rt="[object Map]",$t="[object Number]",Lt="[object Object]",jt="[object RegExp]",Ft="[object Set]",Bt="[object String]",Vt="[object Symbol]",zt="[object ArrayBuffer]",Ut="[object DataView]",Ht="[object Float32Array]",qt="[object Float64Array]",Wt="[object Int8Array]",Gt="[object Int16Array]",Yt="[object Int32Array]",Kt="[object Uint8Array]",Xt="[object Uint8ClampedArray]",Jt="[object Uint16Array]",Qt="[object Uint32Array]",Zt=/[\\^$.*+?()[\]{}|]/g,te=/\w*$/,ee=/^\[object .+?Constructor\]$/,ne=/^(?:0|[1-9]\d*)$/,re={};re[Pt]=re["[object Array]"]=re[zt]=re[Ut]=re[Nt]=re[Dt]=re[Ht]=re[qt]=re[Wt]=re[Gt]=re[Yt]=re[Rt]=re[$t]=re[Lt]=re[jt]=re[Ft]=re[Bt]=re[Vt]=re[Kt]=re[Xt]=re[Jt]=re[Qt]=!0,re["[object Error]"]=re[Mt]=re["[object WeakMap]"]=!1;var ie={function:!0,object:!0},oe=ie[typeof e]&&e&&!e.nodeType?e:void 0,ae=ie[typeof t]&&t&&!t.nodeType?t:void 0,se=ae&&ae.exports===oe?oe:void 0,ue=l(oe&&ae&&"object"==typeof n&&n),le=l(ie[typeof self]&&self),ce=l(ie[typeof window]&&window),fe=l(ie[typeof this]&&this),de=ue||ce!==(fe&&fe.window)&&ce||le||fe||Function("return this")(),he=Array.prototype,pe=Object.prototype,ge=Function.prototype.toString,me=pe.hasOwnProperty,ve=pe.toString,ye=RegExp("^"+ge.call(me).replace(Zt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),be=se?de.Buffer:void 0,_e=de.Symbol,we=de.Uint8Array,xe=Object.getOwnPropertySymbols,ke=Object.create,Se=pe.propertyIsEnumerable,Ce=he.splice,Ee=Object.getPrototypeOf,Te=Object.keys,Ae=it(de,"DataView"),Oe=it(de,"Map"),Pe=it(de,"Promise"),Ne=it(de,"Set"),De=it(de,"WeakMap"),Me=it(Object,"create"),Ie=gt(Ae),Re=gt(Oe),$e=gt(Pe),Le=gt(Ne),je=gt(De),Fe=_e?_e.prototype:void 0,Be=Fe?Fe.valueOf:void 0;h.prototype.clear=p,h.prototype.delete=g,h.prototype.get=m,h.prototype.has=v,h.prototype.set=y,b.prototype.clear=_,b.prototype.delete=w,b.prototype.get=x,b.prototype.has=k,b.prototype.set=S,C.prototype.clear=E,C.prototype.delete=T,C.prototype.get=A,C.prototype.has=O,C.prototype.set=P,N.prototype.clear=D,N.prototype.delete=M,N.prototype.get=I,N.prototype.has=R,N.prototype.set=$;var Ve=function(t){return function(t){return null==t?void 0:t.length}}();xe||(at=function(){return[]}),(Ae&&st(new Ae(new ArrayBuffer(1)))!=Ut||Oe&&st(new Oe)!=Rt||Pe&&"[object Promise]"!=st(Pe.resolve())||Ne&&st(new Ne)!=Ft||De&&"[object WeakMap]"!=st(new De))&&(st=function(t){var e=ve.call(t),n=e==Lt?t.constructor:void 0,r=n?gt(n):void 0;if(r)switch(r){case Ie:return Ut;case Re:return Rt;case $e:return"[object Promise]";case Le:return Ft;case je:return"[object WeakMap]"}return e});var ze=Array.isArray,Ue=be?function(t){return t instanceof be}:function(t){return function(){return!1}}();t.exports=B}).call(e,n(719)(t),n(4))},715:function(t,e,n){function r(t,e,n){var r=t[e];_.call(t,e)&&u(r,n)&&(void 0!==n||e in t)||(t[e]=n)}function i(t,e,n,i){n||(n={});for(var o=-1,a=e.length;++o<a;){var s=e[o];r(n,s,i?i(n[s],t[s],s,n,t):t[s])}return n}function o(t,e){return!!(e=null==e?g:e)&&("number"==typeof t||y.test(t))&&t>-1&&t%1==0&&t<e}function a(t,e,n){if(!d(n))return!1;var r=typeof e;return!!("number"==r?l(n)&&o(e,n.length):"string"==r&&e in n)&&u(n[e],t)}function s(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||b)}function u(t,e){return t===e||t!==t&&e!==e}function l(t){return null!=t&&f(S(t))&&!c(t)}function c(t){var e=d(t)?w.call(t):"";return e==m||e==v}function f(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=g}function d(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}var h=n(717),p=n(718),g=9007199254740991,m="[object Function]",v="[object GeneratorFunction]",y=/^(?:0|[1-9]\d*)$/,b=Object.prototype,_=b.hasOwnProperty,w=b.toString,x=b.propertyIsEnumerable,k=!x.call({valueOf:1},"valueOf"),S=function(t){return function(t){return null==t?void 0:t.length}}(),C=function(t){return p(function(e,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(o=t.length>3&&"function"==typeof o?(i--,o):void 0,s&&a(n[0],n[1],s)&&(o=i<3?void 0:o,i=1),e=Object(e);++r<i;){var u=n[r];u&&t(e,u)}return e})}(function(t,e){if(k||s(e)||l(e))return void i(e,h(e),t);for(var n in e)_.call(e,n)&&r(t,n,e[n])});t.exports=C},716:function(t,e,n){function r(t){return i(t,!0,!0)}var i=n(714);t.exports=r},717:function(t,e){function n(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}function r(t,e){var r=C(t)||s(t)?n(t.length,String):[],i=r.length,a=!!i;for(var u in t)!e&&!w.call(t,u)||a&&("length"==u||o(u,i))||r.push(u);return r}function i(t){if(!a(t))return S(t);var e=[];for(var n in Object(t))w.call(t,n)&&"constructor"!=n&&e.push(n);return e}function o(t,e){return!!(e=null==e?g:e)&&("number"==typeof t||b.test(t))&&t>-1&&t%1==0&&t<e}function a(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||_)}function s(t){return l(t)&&w.call(t,"callee")&&(!k.call(t,"callee")||x.call(t)==m)}function u(t){return null!=t&&f(t.length)&&!c(t)}function l(t){return h(t)&&u(t)}function c(t){var e=d(t)?x.call(t):"";return e==v||e==y}function f(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=g}function d(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function h(t){return!!t&&"object"==typeof t}function p(t){return u(t)?r(t):i(t)}var g=9007199254740991,m="[object Arguments]",v="[object Function]",y="[object GeneratorFunction]",b=/^(?:0|[1-9]\d*)$/,_=Object.prototype,w=_.hasOwnProperty,x=_.toString,k=_.propertyIsEnumerable,S=function(t,e){return function(n){return t(e(n))}}(Object.keys,Object),C=Array.isArray;t.exports=p},718:function(t,e){function n(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function r(t,e){return e=k(void 0===e?t.length-1:e,0),function(){for(var r=arguments,i=-1,o=k(r.length-e,0),a=Array(o);++i<o;)a[i]=r[e+i];i=-1;for(var s=Array(e+1);++i<e;)s[i]=r[i];return s[e]=a,n(t,this,s)}}function i(t,e){if("function"!=typeof t)throw new TypeError(f);return e=void 0===e?e:l(e),r(t,e)}function o(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function a(t){return!!t&&"object"==typeof t}function s(t){return"symbol"==typeof t||a(t)&&x.call(t)==g}function u(t){return t?(t=c(t))===d||t===-d?(t<0?-1:1)*h:t===t?t:0:0===t?t:0}function l(t){var e=u(t),n=e%1;return e===e?n?e-n:e:0}function c(t){if("number"==typeof t)return t;if(s(t))return p;if(o(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=o(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(m,"");var n=y.test(t);return n||b.test(t)?_(t.slice(2),n?2:8):v.test(t)?p:+t}var f="Expected a function",d=1/0,h=1.7976931348623157e308,p=NaN,g="[object Symbol]",m=/^\s+|\s+$/g,v=/^[-+]0x[0-9a-f]+$/i,y=/^0b[01]+$/i,b=/^0o[0-7]+$/i,_=parseInt,w=Object.prototype,x=w.toString,k=Math.max;t.exports=i},719:function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},721:function(t,e,n){t.exports=n(199)}})})},function(t,e,n){"use strict";e.__esModule=!0,e.default=function(t){for(var e=1,n=arguments.length;e<n;e++){var r=arguments[e]||{};for(var i in r)if(r.hasOwnProperty(i)){var o=r[i];void 0!==o&&(t[i]=o)}}return t}},function(t,e,n){"use strict";function r(t){return void 0!==t&&null!==t}function i(t){return/([(\uAC00-\uD7AF)|(\u3130-\u318F)])+/gi.test(t)}e.__esModule=!0,e.isDef=r,e.isKorean=i},function(t,e,n){"use strict";e.__esModule=!0;var r=n(14),i=function(t){return t&&t.__esModule?t:{default:t}}(r),o=n(251),a=i.default.prototype.$isServer?function(){}:n(858),s=function(t){return t.stopPropagation()};e.default={props:{transformOrigin:{type:[Boolean,String],default:!0},placement:{type:String,default:"bottom"},boundariesPadding:{type:Number,default:5},reference:{},popper:{},offset:{default:0},value:Boolean,visibleArrow:Boolean,arrowOffset:{type:Number,default:35},appendToBody:{type:Boolean,default:!0},popperOptions:{type:Object,default:function(){return{gpuAcceleration:!1}}}},data:function(){return{showPopper:!1,currentPlacement:""}},watch:{value:{immediate:!0,handler:function(t){this.showPopper=t,this.$emit("input",t)}},showPopper:function(t){this.disabled||(t?this.updatePopper():this.destroyPopper(),this.$emit("input",t))}},methods:{createPopper:function(){var t=this;if(!this.$isServer&&(this.currentPlacement=this.currentPlacement||this.placement,/^(top|bottom|left|right)(-start|-end)?$/g.test(this.currentPlacement))){var e=this.popperOptions,n=this.popperElm=this.popperElm||this.popper||this.$refs.popper,r=this.referenceElm=this.referenceElm||this.reference||this.$refs.reference;!r&&this.$slots.reference&&this.$slots.reference[0]&&(r=this.referenceElm=this.$slots.reference[0].elm),n&&r&&(this.visibleArrow&&this.appendArrow(n),this.appendToBody&&document.body.appendChild(this.popperElm),this.popperJS&&this.popperJS.destroy&&this.popperJS.destroy(),e.placement=this.currentPlacement,e.offset=this.offset,e.arrowOffset=this.arrowOffset,this.popperJS=new a(r,n,e),this.popperJS.onCreate(function(e){t.$emit("created",t),t.resetTransformOrigin(),t.$nextTick(t.updatePopper)}),"function"==typeof e.onUpdate&&this.popperJS.onUpdate(e.onUpdate),this.popperJS._popper.style.zIndex=o.PopupManager.nextZIndex(),this.popperElm.addEventListener("click",s))}},updatePopper:function(){var t=this.popperJS;t?(t.update(),t._popper&&(t._popper.style.zIndex=o.PopupManager.nextZIndex())):this.createPopper()},doDestroy:function(t){!this.popperJS||this.showPopper&&!t||(this.popperJS.destroy(),this.popperJS=null)},destroyPopper:function(){this.popperJS&&this.resetTransformOrigin()},resetTransformOrigin:function(){if(this.transformOrigin){var t={top:"bottom",bottom:"top",left:"right",right:"left"},e=this.popperJS._popper.getAttribute("x-placement").split("-")[0],n=t[e];this.popperJS._popper.style.transformOrigin="string"==typeof this.transformOrigin?this.transformOrigin:["top","bottom"].indexOf(e)>-1?"center "+n:n+" center"}},appendArrow:function(t){var e=void 0;if(!this.appended){this.appended=!0;for(var n in t.attributes)if(/^_v-/.test(t.attributes[n].name)){e=t.attributes[n].name;break}var r=document.createElement("div");e&&r.setAttribute(e,""),r.setAttribute("x-arrow",""),r.className="popper__arrow",t.appendChild(r)}}},beforeDestroy:function(){this.doDestroy(!0),this.popperElm&&this.popperElm.parentNode===document.body&&(this.popperElm.removeEventListener("click",s),document.body.removeChild(this.popperElm))},deactivated:function(){this.$options.beforeDestroy[0].call(this)}}},function(t,e,n){var r=n(171);t.exports=function(t,e,n){return void 0===n?r(t,e,!1):r(t,n,!1!==e)}},function(t,e,n){"use strict";(function(e){function r(t,e){!i.isUndefined(t)&&i.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var i=n(21),o=n(301),a=/^\)\]\}',?\n/,s={"Content-Type":"application/x-www-form-urlencoded"},u={adapter:function(){var t;return"undefined"!=typeof XMLHttpRequest?t=n(175):void 0!==e&&(t=n(175)),t}(),transformRequest:[function(t,e){return o(e,"Content-Type"),i.isFormData(t)||i.isArrayBuffer(t)||i.isStream(t)||i.isFile(t)||i.isBlob(t)?t:i.isArrayBufferView(t)?t.buffer:i.isURLSearchParams(t)?(r(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):i.isObject(t)?(r(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"==typeof t){t=t.replace(a,"");try{t=JSON.parse(t)}catch(t){}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(t){return t>=200&&t<300}};u.headers={common:{Accept:"application/json, text/plain, */*"}},i.forEach(["delete","get","head"],function(t){u.headers[t]={}}),i.forEach(["post","put","patch"],function(t){u.headers[t]=i.merge(s)}),t.exports=u}).call(e,n(169))},function(t,e,n){t.exports={default:n(352),__esModule:!0}},function(t,e,n){"use strict";e.__esModule=!0;var r=n(342),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=function(t,e,n){return e in t?(0,i.default)(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){var r=n(115);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e,n){"use strict";var r=n(86),i=n(43),o=n(193),a=n(47),s=n(78),u=n(371),l=n(90),c=n(376),f=n(30)("iterator"),d=!([].keys&&"next"in[].keys()),h=function(){return this};t.exports=function(t,e,n,p,g,m,v){u(n,e,p);var y,b,_,w=function(t){if(!d&&t in C)return C[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},x=e+" Iterator",k="values"==g,S=!1,C=t.prototype,E=C[f]||C["@@iterator"]||g&&C[g],T=E||w(g),A=g?k?w("entries"):T:void 0,O="Array"==e?C.entries||E:E;if(O&&(_=c(O.call(new t)))!==Object.prototype&&_.next&&(l(_,x,!0),r||"function"==typeof _[f]||a(_,f,h)),k&&E&&"values"!==E.name&&(S=!0,T=function(){return E.call(this)}),r&&!v||!d&&!S&&C[f]||a(C,f,T),s[e]=T,s[x]=h,g)if(y={values:k?T:w("values"),keys:m?T:w("keys"),entries:A},v)for(b in y)b in C||o(C,b,y[b]);else i(i.P+i.F*(d||S),e,y);return y}},function(t,e,n){var r=n(92)("meta"),i=n(48),o=n(52),a=n(38).f,s=0,u=Object.isExtensible||function(){return!0},l=!n(69)(function(){return u(Object.preventExtensions({}))}),c=function(t){a(t,r,{value:{i:"O"+ ++s,w:{}}})},f=function(t,e){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,r)){if(!u(t))return"F";if(!e)return"E";c(t)}return t[r].i},d=function(t,e){if(!o(t,r)){if(!u(t))return!0;if(!e)return!1;c(t)}return t[r].w},h=function(t){return l&&p.NEED&&u(t)&&!o(t,r)&&c(t),t},p=t.exports={KEY:r,NEED:!1,fastKey:f,getWeak:d,onFreeze:h}},function(t,e,n){var r=n(68),i=n(373),o=n(117),a=n(123)("IE_PROTO"),s=function(){},u=function(){var t,e=n(186)("iframe"),r=o.length;for(e.style.display="none",n(368).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("<script>document.F=Object<\/script>"),t.close(),u=t.F;r--;)delete u.prototype[o[r]];return u()};t.exports=Object.create||function(t,e){var n;return null!==t?(s.prototype=r(t),n=new s,s.prototype=null,n[a]=t):n=u(),void 0===e?n:i(n,e)}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(124)("keys"),i=n(92);t.exports=function(t){return r[t]||(r[t]=i(t))}},function(t,e,n){var r=n(28),i=n(37),o=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n(86)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(125),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},function(t,e,n){var r=n(48);t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){var r=n(37),i=n(28),o=n(86),a=n(129),s=n(38).f;t.exports=function(t){var e=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:a.f(t)})}},function(t,e,n){e.f=n(30)},function(t,e,n){"use strict";var r=n(104)(!0);t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},function(t,e,n){"use strict";var r=n(13),i=n(61),o=n(9);t.exports=function(t){for(var e=r(this),n=o(e.length),a=arguments.length,s=i(a>1?arguments[1]:void 0,n),u=a>2?arguments[2]:void 0,l=void 0===u?n:i(u,n);l>s;)e[s++]=t;return e}},function(t,e,n){var r=n(394);t.exports=function(t,e){return new(r(t))(e)}},function(t,e,n){"use strict";var r=n(11),i=n(58);t.exports=function(t,e,n){e in t?r.f(t,e,i(0,n)):t[e]=n}},function(t,e,n){var r=n(5),i=n(3).document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){var r=n(8)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[r]=!1,!"/./"[t](e)}catch(t){}}return!0}},function(t,e,n){var r=n(3).document;t.exports=r&&r.documentElement},function(t,e,n){var r=n(5),i=n(147).set;t.exports=function(t,e,n){var o,a=e.constructor;return a!==n&&"function"==typeof a&&(o=a.prototype)!==n.prototype&&r(o)&&i&&i(t,o),t}},function(t,e,n){var r=n(72),i=n(8)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||o[i]===t)}},function(t,e,n){"use strict";var r=n(55),i=n(58),o=n(73),a={};n(17)(a,n(8)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(a,{next:i(1,n)}),o(t,e+" Iterator")}},function(t,e,n){"use strict";var r=n(50),i=n(1),o=n(18),a=n(17),s=n(72),u=n(140),l=n(73),c=n(25),f=n(8)("iterator"),d=!([].keys&&"next"in[].keys()),h=function(){return this};t.exports=function(t,e,n,p,g,m,v){u(n,e,p);var y,b,_,w=function(t){if(!d&&t in C)return C[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},x=e+" Iterator",k="values"==g,S=!1,C=t.prototype,E=C[f]||C["@@iterator"]||g&&C[g],T=E||w(g),A=g?k?w("entries"):T:void 0,O="Array"==e?C.entries||E:E;if(O&&(_=c(O.call(new t)))!==Object.prototype&&_.next&&(l(_,x,!0),r||"function"==typeof _[f]||a(_,f,h)),k&&E&&"values"!==E.name&&(S=!0,T=function(){return E.call(this)}),r&&!v||!d&&!S&&C[f]||a(C,f,T),s[e]=T,s[x]=h,g)if(y={values:k?T:w("values"),keys:m?T:w("keys"),entries:A},v)for(b in y)b in C||o(C,b,y[b]);else i(i.P+i.F*(d||S),e,y);return y}},function(t,e){var n=Math.expm1;t.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||-2e-17!=n(-2e-17)?function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:Math.exp(t)-1}:n},function(t,e){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},function(t,e,n){var r=n(3),i=n(152).set,o=r.MutationObserver||r.WebKitMutationObserver,a=r.process,s=r.Promise,u="process"==n(31)(a);t.exports=function(){var t,e,n,l=function(){var r,i;for(u&&(r=a.domain)&&r.exit();t;){i=t.fn,t=t.next;try{i()}catch(r){throw t?n():e=void 0,r}}e=void 0,r&&r.enter()};if(u)n=function(){a.nextTick(l)};else if(!o||r.navigator&&r.navigator.standalone)if(s&&s.resolve){var c=s.resolve(void 0);n=function(){c.then(l)}}else n=function(){i.call(r,l)};else{var f=!0,d=document.createTextNode("");new o(l).observe(d,{characterData:!0}),n=function(){d.data=f=!f}}return function(r){var i={fn:r,next:void 0};e&&(e.next=i),t||(t=i,n()),e=i}}},function(t,e,n){"use strict";function r(t){var e,n;this.promise=new t(function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r}),this.resolve=i(e),this.reject=i(n)}var i=n(15);t.exports.f=function(t){return new r(t)}},function(t,e,n){"use strict";var r=n(79),i=RegExp.prototype.exec,o=String.prototype.replace,a=i,s=function(){var t=/a/,e=/b*/g;return i.call(t,"a"),i.call(e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),u=void 0!==/()??/.exec("")[1];(s||u)&&(a=function(t){var e,n,a,l,c=this;return u&&(n=new RegExp("^"+c.source+"$(?!\\s)",r.call(c))),s&&(e=c.lastIndex),a=i.call(c,t),s&&a&&(c.lastIndex=c.global?a.index+a[0].length:e),u&&a&&a.length>1&&o.call(a[0],n,function(){for(l=1;l<arguments.length-2;l++)void 0===arguments[l]&&(a[l]=void 0)}),a}),t.exports=a},function(t,e,n){var r=n(5),i=n(2),o=function(t,e){if(i(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{r=n(33)(Function.call,n(24).f(Object.prototype,"__proto__").set,2),r(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return o(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:o}},function(t,e,n){var r=n(82)("keys"),i=n(62);t.exports=function(t){return r[t]||(r[t]=i(t))}},function(t,e,n){var r=n(97),i=n(40);t.exports=function(t,e,n){if(r(e))throw TypeError("String#"+n+" doesn't accept regex!");return String(i(t))}},function(t,e,n){"use strict";var r=n(35),i=n(40);t.exports=function(t){var e=String(i(this)),n="",o=r(t);if(o<0||o==1/0)throw RangeError("Count can't be negative");for(;o>0;(o>>>=1)&&(e+=e))1&o&&(n+=e);return n}},function(t,e){t.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},function(t,e,n){var r,i,o,a=n(33),s=n(208),u=n(137),l=n(134),c=n(3),f=c.process,d=c.setImmediate,h=c.clearImmediate,p=c.MessageChannel,g=c.Dispatch,m=0,v={},y=function(){var t=+this;if(v.hasOwnProperty(t)){var e=v[t];delete v[t],e()}},b=function(t){y.call(t.data)};d&&h||(d=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return v[++m]=function(){s("function"==typeof t?t:Function(t),e)},r(m),m},h=function(t){delete v[t]},"process"==n(31)(f)?r=function(t){f.nextTick(a(y,t,1))}:g&&g.now?r=function(t){g.now(a(y,t,1))}:p?(i=new p,o=i.port2,i.port1.onmessage=b,r=a(o.postMessage,o,1)):c.addEventListener&&"function"==typeof postMessage&&!c.importScripts?(r=function(t){c.postMessage(t+"","*")},c.addEventListener("message",b,!1)):r="onreadystatechange"in l("script")?function(t){u.appendChild(l("script")).onreadystatechange=function(){u.removeChild(this),y.call(t)}}:function(t){setTimeout(a(y,t,1),0)}),t.exports={set:d,clear:h}},function(t,e,n){"use strict";function r(t,e,n){var r,i,o,a=new Array(n),s=8*n-e-1,u=(1<<s)-1,l=u>>1,c=23===e?j(2,-24)-j(2,-77):0,f=0,d=t<0||0===t&&1/t<0?1:0;for(t=L(t),t!=t||t===R?(i=t!=t?1:0,r=u):(r=F(B(t)/V),t*(o=j(2,-r))<1&&(r--,o*=2),t+=r+l>=1?c/o:c*j(2,1-l),t*o>=2&&(r++,o/=2),r+l>=u?(i=0,r=u):r+l>=1?(i=(t*o-1)*j(2,e),r+=l):(i=t*j(2,l-1)*j(2,e),r=0));e>=8;a[f++]=255&i,i/=256,e-=8);for(r=r<<e|i,s+=e;s>0;a[f++]=255&r,r/=256,s-=8);return a[--f]|=128*d,a}function i(t,e,n){var r,i=8*n-e-1,o=(1<<i)-1,a=o>>1,s=i-7,u=n-1,l=t[u--],c=127&l;for(l>>=7;s>0;c=256*c+t[u],u--,s-=8);for(r=c&(1<<-s)-1,c>>=-s,s+=e;s>0;r=256*r+t[u],u--,s-=8);if(0===c)c=1-a;else{if(c===o)return r?NaN:l?-R:R;r+=j(2,e),c-=a}return(l?-1:1)*r*j(2,c-e)}function o(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]}function a(t){return[255&t]}function s(t){return[255&t,t>>8&255]}function u(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function l(t){return r(t,52,8)}function c(t){return r(t,23,4)}function f(t,e,n){E(t[O],e,{get:function(){return this[n]}})}function d(t,e,n,r){var i=+n,o=S(i);if(o+e>t[U])throw I(P);var a=t[z]._b,s=o+t[H],u=a.slice(s,s+e);return r?u:u.reverse()}function h(t,e,n,r,i,o){var a=+n,s=S(a);if(s+e>t[U])throw I(P);for(var u=t[z]._b,l=s+t[H],c=r(+i),f=0;f<e;f++)u[l+f]=c[o?f:e-f-1]}var p=n(3),g=n(10),m=n(50),v=n(105),y=n(17),b=n(59),_=n(4),w=n(53),x=n(35),k=n(9),S=n(227),C=n(56).f,E=n(11).f,T=n(131),A=n(73),O="prototype",P="Wrong index!",N=p.ArrayBuffer,D=p.DataView,M=p.Math,I=p.RangeError,R=p.Infinity,$=N,L=M.abs,j=M.pow,F=M.floor,B=M.log,V=M.LN2,z=g?"_b":"buffer",U=g?"_l":"byteLength",H=g?"_o":"byteOffset";if(v.ABV){if(!_(function(){N(1)})||!_(function(){new N(-1)})||_(function(){return new N,new N(1.5),new N(NaN),"ArrayBuffer"!=N.name})){N=function(t){return w(this,N),new $(S(t))};for(var q,W=N[O]=$[O],G=C($),Y=0;G.length>Y;)(q=G[Y++])in N||y(N,q,$[q]);m||(W.constructor=N)}var K=new D(new N(2)),X=D[O].setInt8;K.setInt8(0,2147483648),K.setInt8(1,2147483649),!K.getInt8(0)&&K.getInt8(1)||b(D[O],{setInt8:function(t,e){X.call(this,t,e<<24>>24)},setUint8:function(t,e){X.call(this,t,e<<24>>24)}},!0)}else N=function(t){w(this,N,"ArrayBuffer");var e=S(t);this._b=T.call(new Array(e),0),this[U]=e},D=function(t,e,n){w(this,D,"DataView"),w(t,N,"DataView");var r=t[U],i=x(e);if(i<0||i>r)throw I("Wrong offset!");if(n=void 0===n?r-i:k(n),i+n>r)throw I("Wrong length!");this[z]=t,this[H]=i,this[U]=n},g&&(f(N,"byteLength","_l"),f(D,"buffer","_b"),f(D,"byteLength","_l"),f(D,"byteOffset","_o")),b(D[O],{getInt8:function(t){return d(this,1,t)[0]<<24>>24},getUint8:function(t){return d(this,1,t)[0]},getInt16:function(t){var e=d(this,2,t,arguments[1]);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=d(this,2,t,arguments[1]);return e[1]<<8|e[0]},getInt32:function(t){return o(d(this,4,t,arguments[1]))},getUint32:function(t){return o(d(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return i(d(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return i(d(this,8,t,arguments[1]),52,8)},setInt8:function(t,e){h(this,1,t,a,e)},setUint8:function(t,e){h(this,1,t,a,e)},setInt16:function(t,e){h(this,2,t,s,e,arguments[2])},setUint16:function(t,e){h(this,2,t,s,e,arguments[2])},setInt32:function(t,e){h(this,4,t,u,e,arguments[2])},setUint32:function(t,e){h(this,4,t,u,e,arguments[2])},setFloat32:function(t,e){h(this,4,t,c,e,arguments[2])},setFloat64:function(t,e){h(this,8,t,l,e,arguments[2])}});A(N,"ArrayBuffer"),A(D,"DataView"),y(D[O],v.VIEW,!0),e.ArrayBuffer=N,e.DataView=D},function(t,e,n){var r=n(3),i=n(32),o=n(50),a=n(228),s=n(11).f;t.exports=function(t){var e=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:a.f(t)})}},function(t,e,n){var r=n(71),i=n(8)("iterator"),o=n(72);t.exports=n(32).getIteratorMethod=function(t){if(void 0!=t)return t[i]||t["@@iterator"]||o[r(t)]}},function(t,e,n){"use strict";var r=n(49),i=n(211),o=n(72),a=n(26);t.exports=n(141)(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,i(1)):"keys"==e?i(0,n):"values"==e?i(0,t[n]):i(0,[n,t[n]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t,e){return new Promise(function(n,r){dd.dtBridge({m:t,args:e,onSuccess:function(t){"function"==typeof e.onSuccess&&e.onSuccess(t),n(t)},onFail:function(t){"function"==typeof e.onFail&&e.onFail(t),r(t)}})})};e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.androidWeexBridge=e.iosWeexBridge=e.requireModule=void 0;var r=function(t){return"undefined"!=typeof __weex_require__?__weex_require__("@weex-module/".concat(t)):"undefined"!=typeof weex?weex.requireModule(t):void 0};e.requireModule=r;var i=function(){return Promise.resolve(function(t,n){return new Promise(function(r,i){var o=(0,e.requireModule)("nuvajs-exec"),a=t.split("."),s=a.pop(),u=a.join(".");o.exec({plugin:u,action:s,args:n},function(t){t&&"0"===t.errorCode?("function"==typeof n.onSuccess&&n.onSuccess(t.result),r(t.result)):("function"==typeof n.onFail&&n.onFail(t.result),i(t.result))})})})};e.iosWeexBridge=i;var o=function(){return Promise.resolve(function(t,n){return new Promise(function(r,i){var o=(0,e.requireModule)("nuvajs-exec"),a=t.split("."),s=a.pop(),u=a.join(".");o.exec({plugin:u,action:s,args:n},function(t){var e={};try{if(t&&t.__message__)if("object"==typeof t.__message__)e=t.__message__;else try{e=JSON.parse(t.__message__)}catch(n){"string"==typeof t.__message__&&(e=t.__message__)}}catch(t){}t&&1===parseInt(t.__status__+"",10)?("function"==typeof n.onSuccess&&n.onSuccess(e),r(e)):("function"==typeof n.onFail&&n.onFail(e),i(e))})})})};e.androidWeexBridge=o},function(t,e,n){t.exports=function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var i in t)e.d(r,i,function(e){return t[e]}.bind(null,i));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/dist/",e(e.s=75)}({0:function(t,e,n){"use strict";function r(t,e,n,r,i,o,a,s){var u="function"==typeof t?t.options:t;e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o);var l;if(a?(l=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(t,e){return l.call(e),c(t,e)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,l):[l]}return{exports:t,options:u}}n.d(e,"a",function(){return r})},11:function(t,e){t.exports=n(245)},21:function(t,e){t.exports=n(109)},4:function(t,e){t.exports=n(66)},75:function(t,e,n){"use strict";function r(t){var e=window.getComputedStyle(t),n=e.getPropertyValue("box-sizing"),r=parseFloat(e.getPropertyValue("padding-bottom"))+parseFloat(e.getPropertyValue("padding-top")),i=parseFloat(e.getPropertyValue("border-bottom-width"))+parseFloat(e.getPropertyValue("border-top-width"));return{contextStyle:h.map(function(t){return t+":"+e.getPropertyValue(t)}).join(";"),paddingSize:r,borderSize:i,boxSizing:n}}function i(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;f||(f=document.createElement("textarea"),document.body.appendChild(f));var i=r(t),o=i.paddingSize,a=i.borderSize,s=i.boxSizing,u=i.contextStyle;f.setAttribute("style",u+";"+d),f.value=t.value||t.placeholder||"";var l=f.scrollHeight,c={};"border-box"===s?l+=a:"content-box"===s&&(l-=o),f.value="";var h=f.scrollHeight-o;if(null!==e){var p=h*e;"border-box"===s&&(p=p+o+a),l=Math.max(p,l),c.minHeight=p+"px"}if(null!==n){var g=h*n;"border-box"===s&&(g=g+o+a),l=Math.min(g,l)}return c.height=l+"px",f.parentNode&&f.parentNode.removeChild(f),f=null,c}n.r(e);var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:["textarea"===t.type?"el-textarea":"el-input",t.inputSize?"el-input--"+t.inputSize:"",{"is-disabled":t.inputDisabled,"is-exceed":t.inputExceed,"el-input-group":t.$slots.prepend||t.$slots.append,"el-input-group--append":t.$slots.append,"el-input-group--prepend":t.$slots.prepend,"el-input--prefix":t.$slots.prefix||t.prefixIcon,"el-input--suffix":t.$slots.suffix||t.suffixIcon||t.clearable||t.showPassword}],on:{mouseenter:function(e){t.hovering=!0},mouseleave:function(e){t.hovering=!1}}},["textarea"!==t.type?[t.$slots.prepend?n("div",{staticClass:"el-input-group__prepend"},[t._t("prepend")],2):t._e(),"textarea"!==t.type?n("input",t._b({ref:"input",staticClass:"el-input__inner",attrs:{tabindex:t.tabindex,type:t.showPassword?t.passwordVisible?"text":"password":t.type,disabled:t.inputDisabled,readonly:t.readonly,autocomplete:t.autoComplete||t.autocomplete,"aria-label":t.label},on:{compositionstart:t.handleCompositionStart,compositionupdate:t.handleCompositionUpdate,compositionend:t.handleCompositionEnd,input:t.handleInput,focus:t.handleFocus,blur:t.handleBlur,change:t.handleChange}},"input",t.$attrs,!1)):t._e(),t.$slots.prefix||t.prefixIcon?n("span",{staticClass:"el-input__prefix"},[t._t("prefix"),t.prefixIcon?n("i",{staticClass:"el-input__icon",class:t.prefixIcon}):t._e()],2):t._e(),t.getSuffixVisible()?n("span",{staticClass:"el-input__suffix"},[n("span",{staticClass:"el-input__suffix-inner"},[t.showClear&&t.showPwdVisible&&t.isWordLimitVisible?t._e():[t._t("suffix"),t.suffixIcon?n("i",{staticClass:"el-input__icon",class:t.suffixIcon}):t._e()],t.showClear?n("i",{staticClass:"el-input__icon el-icon-circle-close el-input__clear",on:{mousedown:function(t){t.preventDefault()},click:t.clear}}):t._e(),t.showPwdVisible?n("i",{staticClass:"el-input__icon el-icon-view el-input__clear",on:{click:t.handlePasswordVisible}}):t._e(),t.isWordLimitVisible?n("span",{staticClass:"el-input__count"},[n("span",{staticClass:"el-input__count-inner"},[t._v("\n "+t._s(t.textLength)+"/"+t._s(t.upperLimit)+"\n ")])]):t._e()],2),t.validateState?n("i",{staticClass:"el-input__icon",class:["el-input__validateIcon",t.validateIcon]}):t._e()]):t._e(),t.$slots.append?n("div",{staticClass:"el-input-group__append"},[t._t("append")],2):t._e()]:n("textarea",t._b({ref:"textarea",staticClass:"el-textarea__inner",style:t.textareaStyle,attrs:{tabindex:t.tabindex,disabled:t.inputDisabled,readonly:t.readonly,autocomplete:t.autoComplete||t.autocomplete,"aria-label":t.label},on:{compositionstart:t.handleCompositionStart,compositionupdate:t.handleCompositionUpdate,compositionend:t.handleCompositionEnd,input:t.handleInput,focus:t.handleFocus,blur:t.handleBlur,change:t.handleChange}},"textarea",t.$attrs,!1)),t.isWordLimitVisible&&"textarea"===t.type?n("span",{staticClass:"el-input__count"},[t._v(t._s(t.textLength)+"/"+t._s(t.upperLimit))]):t._e()],2)},a=[];o._withStripped=!0;var s=n(4),u=n.n(s),l=n(11),c=n.n(l),f=void 0,d="\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important\n",h=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"],p=n(9),g=n.n(p),m=n(21),v={name:"ElInput",componentName:"ElInput",mixins:[u.a,c.a],inheritAttrs:!1,inject:{elForm:{default:""},elFormItem:{default:""}},data:function(){return{textareaCalcStyle:{},hovering:!1,focused:!1,isComposing:!1,passwordVisible:!1}},props:{value:[String,Number],size:String,resize:String,form:String,disabled:Boolean,readonly:Boolean,type:{type:String,default:"text"},autosize:{type:[Boolean,Object],default:!1},autocomplete:{type:String,default:"off"},autoComplete:{type:String,validator:function(t){return!0}},validateEvent:{type:Boolean,default:!0},suffixIcon:String,prefixIcon:String,label:String,clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},tabindex:String},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},validateState:function(){return this.elFormItem?this.elFormItem.validateState:""},needStatusIcon:function(){return!!this.elForm&&this.elForm.statusIcon},validateIcon:function(){return{validating:"el-icon-loading",success:"el-icon-circle-check",error:"el-icon-circle-close"}[this.validateState]},textareaStyle:function(){return g()({},this.textareaCalcStyle,{resize:this.resize})},inputSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},inputDisabled:function(){return this.disabled||(this.elForm||{}).disabled},nativeInputValue:function(){return null===this.value||void 0===this.value?"":String(this.value)},showClear:function(){return this.clearable&&!this.inputDisabled&&!this.readonly&&this.nativeInputValue&&(this.focused||this.hovering)},showPwdVisible:function(){return this.showPassword&&!this.inputDisabled&&!this.readonly&&(!!this.nativeInputValue||this.focused)},isWordLimitVisible:function(){return this.showWordLimit&&this.$attrs.maxlength&&("text"===this.type||"textarea"===this.type)&&!this.inputDisabled&&!this.readonly&&!this.showPassword},upperLimit:function(){return this.$attrs.maxlength},textLength:function(){return"number"==typeof this.value?String(this.value).length:(this.value||"").length},inputExceed:function(){return this.isWordLimitVisible&&this.textLength>this.upperLimit}},watch:{value:function(t){this.$nextTick(this.resizeTextarea),this.validateEvent&&this.dispatch("ElFormItem","el.form.change",[t])},nativeInputValue:function(){this.setNativeInputValue()},type:function(){var t=this;this.$nextTick(function(){t.setNativeInputValue(),t.resizeTextarea(),t.updateIconOffset()})}},methods:{focus:function(){this.getInput().focus()},blur:function(){this.getInput().blur()},getMigratingConfig:function(){return{props:{icon:"icon is removed, use suffix-icon / prefix-icon instead.","on-icon-click":"on-icon-click is removed."},events:{click:"click is removed."}}},handleBlur:function(t){this.focused=!1,this.$emit("blur",t),this.validateEvent&&this.dispatch("ElFormItem","el.form.blur",[this.value])},select:function(){this.getInput().select()},resizeTextarea:function(){if(!this.$isServer){var t=this.autosize;if("textarea"===this.type){if(!t)return void(this.textareaCalcStyle={minHeight:i(this.$refs.textarea).minHeight});var e=t.minRows,n=t.maxRows;this.textareaCalcStyle=i(this.$refs.textarea,e,n)}}},setNativeInputValue:function(){var t=this.getInput();t&&t.value!==this.nativeInputValue&&(t.value=this.nativeInputValue)},handleFocus:function(t){this.focused=!0,this.$emit("focus",t)},handleCompositionStart:function(t){this.$emit("compositionstart",t),this.isComposing=!0},handleCompositionUpdate:function(t){this.$emit("compositionupdate",t);var e=t.target.value,n=e[e.length-1]||"";this.isComposing=!Object(m.isKorean)(n)},handleCompositionEnd:function(t){this.$emit("compositionend",t),this.isComposing&&(this.isComposing=!1,this.handleInput(t))},handleInput:function(t){this.isComposing||t.target.value!==this.nativeInputValue&&(this.$emit("input",t.target.value),this.$nextTick(this.setNativeInputValue))},handleChange:function(t){this.$emit("change",t.target.value)},calcIconOffset:function(t){var e=[].slice.call(this.$el.querySelectorAll(".el-input__"+t)||[]);if(e.length){for(var n=null,r=0;r<e.length;r++)if(e[r].parentNode===this.$el){n=e[r];break}if(n){var i={suffix:"append",prefix:"prepend"},o=i[t];this.$slots[o]?n.style.transform="translateX("+("suffix"===t?"-":"")+this.$el.querySelector(".el-input-group__"+o).offsetWidth+"px)":n.removeAttribute("style")}}},updateIconOffset:function(){this.calcIconOffset("prefix"),this.calcIconOffset("suffix")},clear:function(){this.$emit("input",""),this.$emit("change",""),this.$emit("clear")},handlePasswordVisible:function(){var t=this;this.passwordVisible=!this.passwordVisible,this.$nextTick(function(){t.focus()})},getInput:function(){return this.$refs.input||this.$refs.textarea},getSuffixVisible:function(){return this.$slots.suffix||this.suffixIcon||this.showClear||this.showPassword||this.isWordLimitVisible||this.validateState&&this.needStatusIcon}},created:function(){this.$on("inputSelect",this.select)},mounted:function(){this.setNativeInputValue(),this.resizeTextarea(),this.updateIconOffset()},updated:function(){this.$nextTick(this.updateIconOffset)}},y=v,b=n(0),_=Object(b.a)(y,o,a,!1,null,null,null);_.options.__file="packages/input/src/input.vue";var w=_.exports;w.install=function(t){t.component(w.name,w)};e.default=w},9:function(t,e){t.exports=n(108)}})},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0,e.i18n=e.use=e.t=void 0;var i=n(848),o=r(i),a=n(14),s=r(a),u=n(595),l=r(u),c=n(847),f=r(c),d=(0,f.default)(s.default),h=o.default,p=!1,g=function(){var t=Object.getPrototypeOf(this||s.default).$t;if("function"==typeof t&&s.default.locale)return p||(p=!0,s.default.locale(s.default.config.lang,(0,l.default)(h,s.default.locale(s.default.config.lang)||{},{clone:!0}))),t.apply(this,arguments)},m=e.t=function(t,e){var n=g.apply(this,arguments);if(null!==n&&void 0!==n)return n;for(var r=t.split("."),i=h,o=0,a=r.length;o<a;o++){if(n=i[r[o]],o===a-1)return d(n,e);if(!n)return"";i=n}return""},v=e.use=function(t){h=t||h},y=e.i18n=function(t){g=t||g};e.default={use:v,t:m,i18n:y}},function(t,e,n){"use strict";e.__esModule=!0,e.default=function(t){return{methods:{focus:function(){this.$refs[t].focus()}}}}},function(t,e,n){"use strict";e.__esModule=!0;var r=n(160);e.default={methods:{t:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return r.t.apply(this,e)}}}},function(t,e,n){t.exports=function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var i in t)e.d(r,i,function(e){return t[e]}.bind(null,i));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/dist/",e(e.s=133)}({133:function(t,e,n){"use strict";function r(t){var e=t.move,n=t.size,r=t.bar,i={},o="translate"+r.axis+"("+e+"%)";return i[r.size]=n,i.transform=o,i.msTransform=o,i.webkitTransform=o,i}n.r(e);var i=n(16),o=n(39),a=n.n(o),s=n(3),u=n(2),l={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}},c={name:"Bar",props:{vertical:Boolean,size:String,move:Number},computed:{bar:function(){return l[this.vertical?"vertical":"horizontal"]},wrap:function(){return this.$parent.wrap}},render:function(t){var e=this.size,n=this.move,i=this.bar;return t("div",{class:["el-scrollbar__bar","is-"+i.key],on:{mousedown:this.clickTrackHandler}},[t("div",{ref:"thumb",class:"el-scrollbar__thumb",on:{mousedown:this.clickThumbHandler},style:r({size:e,move:n,bar:i})})])},methods:{clickThumbHandler:function(t){t.ctrlKey||2===t.button||(this.startDrag(t),this[this.bar.axis]=t.currentTarget[this.bar.offset]-(t[this.bar.client]-t.currentTarget.getBoundingClientRect()[this.bar.direction]))},clickTrackHandler:function(t){var e=Math.abs(t.target.getBoundingClientRect()[this.bar.direction]-t[this.bar.client]),n=this.$refs.thumb[this.bar.offset]/2,r=100*(e-n)/this.$el[this.bar.offset];this.wrap[this.bar.scroll]=r*this.wrap[this.bar.scrollSize]/100},startDrag:function(t){t.stopImmediatePropagation(),this.cursorDown=!0,Object(u.on)(document,"mousemove",this.mouseMoveDocumentHandler),Object(u.on)(document,"mouseup",this.mouseUpDocumentHandler),document.onselectstart=function(){return!1}},mouseMoveDocumentHandler:function(t){if(!1!==this.cursorDown){var e=this[this.bar.axis];if(e){var n=-1*(this.$el.getBoundingClientRect()[this.bar.direction]-t[this.bar.client]),r=this.$refs.thumb[this.bar.offset]-e,i=100*(n-r)/this.$el[this.bar.offset];this.wrap[this.bar.scroll]=i*this.wrap[this.bar.scrollSize]/100}}},mouseUpDocumentHandler:function(t){this.cursorDown=!1,this[this.bar.axis]=0,Object(u.off)(document,"mousemove",this.mouseMoveDocumentHandler),document.onselectstart=null}},destroyed:function(){Object(u.off)(document,"mouseup",this.mouseUpDocumentHandler)}},f={name:"ElScrollbar",components:{Bar:c},props:{native:Boolean,wrapStyle:{},wrapClass:{},viewClass:{},viewStyle:{},noresize:Boolean,tag:{type:String,default:"div"}},data:function(){return{sizeWidth:"0",sizeHeight:"0",moveX:0,moveY:0}},computed:{wrap:function(){return this.$refs.wrap}},render:function(t){var e=a()(),n=this.wrapStyle;if(e){var r="-"+e+"px",i="margin-bottom: "+r+"; margin-right: "+r+";";Array.isArray(this.wrapStyle)?(n=Object(s.toObject)(this.wrapStyle),n.marginRight=n.marginBottom=r):"string"==typeof this.wrapStyle?n+=i:n=i}var o=t(this.tag,{class:["el-scrollbar__view",this.viewClass],style:this.viewStyle,ref:"resize"},this.$slots.default),u=t("div",{ref:"wrap",style:n,on:{scroll:this.handleScroll},class:[this.wrapClass,"el-scrollbar__wrap",e?"":"el-scrollbar__wrap--hidden-default"]},[[o]]),l=void 0;return l=this.native?[t("div",{ref:"wrap",class:[this.wrapClass,"el-scrollbar__wrap"],style:n},[[o]])]:[u,t(c,{attrs:{move:this.moveX,size:this.sizeWidth}}),t(c,{attrs:{vertical:!0,move:this.moveY,size:this.sizeHeight}})],t("div",{class:"el-scrollbar"},l)},methods:{handleScroll:function(){var t=this.wrap;this.moveY=100*t.scrollTop/t.clientHeight,this.moveX=100*t.scrollLeft/t.clientWidth},update:function(){var t=void 0,e=void 0,n=this.wrap;n&&(t=100*n.clientHeight/n.scrollHeight,e=100*n.clientWidth/n.scrollWidth,this.sizeHeight=t<100?t+"%":"",this.sizeWidth=e<100?e+"%":"")}},mounted:function(){this.native||(this.$nextTick(this.update),!this.noresize&&Object(i.addResizeListener)(this.$refs.resize,this.update))},beforeDestroy:function(){this.native||!this.noresize&&Object(i.removeResizeListener)(this.$refs.resize,this.update)}};f.install=function(t){t.component(f.name,f)};e.default=f},16:function(t,e){t.exports=n(165)},2:function(t,e){t.exports=n(46)},3:function(t,e){t.exports=n(36)},39:function(t,e){t.exports=n(167)}})},function(t,e,n){"use strict";e.__esModule=!0;var r=r||{};r.Utils=r.Utils||{},r.Utils.focusFirstDescendant=function(t){for(var e=0;e<t.childNodes.length;e++){var n=t.childNodes[e];if(r.Utils.attemptFocus(n)||r.Utils.focusFirstDescendant(n))return!0}return!1},r.Utils.focusLastDescendant=function(t){for(var e=t.childNodes.length-1;e>=0;e--){var n=t.childNodes[e];if(r.Utils.attemptFocus(n)||r.Utils.focusLastDescendant(n))return!0}return!1},r.Utils.attemptFocus=function(t){if(!r.Utils.isFocusable(t))return!1;r.Utils.IgnoreUtilFocusChanges=!0;try{t.focus()}catch(t){}return r.Utils.IgnoreUtilFocusChanges=!1,document.activeElement===t},r.Utils.isFocusable=function(t){if(t.tabIndex>0||0===t.tabIndex&&null!==t.getAttribute("tabIndex"))return!0;if(t.disabled)return!1;switch(t.nodeName){case"A":return!!t.href&&"ignore"!==t.rel;case"INPUT":return"hidden"!==t.type&&"file"!==t.type;case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},r.Utils.triggerEvent=function(t,e){var n=void 0;n=/^mouse|click/.test(e)?"MouseEvents":/^key/.test(e)?"KeyboardEvent":"HTMLEvents";for(var r=document.createEvent(n),i=arguments.length,o=Array(i>2?i-2:0),a=2;a<i;a++)o[a-2]=arguments[a];return r.initEvent.apply(r,[e].concat(o)),t.dispatchEvent?t.dispatchEvent(r):t.fireEvent("on"+e,r),t},r.Utils.keys={tab:9,enter:13,space:32,left:37,up:38,right:39,down:40,esc:27},e.default=r.Utils},function(t,e,n){"use strict";e.__esModule=!0,e.removeResizeListener=e.addResizeListener=void 0;var r=n(929),i=function(t){return t&&t.__esModule?t:{default:t}}(r),o=n(257),a="undefined"==typeof window,s=function(t){for(var e=t,n=Array.isArray(e),r=0,e=n?e:e[Symbol.iterator]();;){var i;if(n){if(r>=e.length)break;i=e[r++]}else{if(r=e.next(),r.done)break;i=r.value}var o=i,a=o.target.__resizeListeners__||[];a.length&&a.forEach(function(t){t()})}};e.addResizeListener=function(t,e){a||(t.__resizeListeners__||(t.__resizeListeners__=[],t.__ro__=new i.default((0,o.debounce)(16,s)),t.__ro__.observe(t)),t.__resizeListeners__.push(e))},e.removeResizeListener=function(t,e){t&&t.__resizeListeners__&&(t.__resizeListeners__.splice(t.__resizeListeners__.indexOf(e),1),t.__resizeListeners__.length||t.__ro__.disconnect())}},function(t,e,n){"use strict";function r(t,e){if(!o.default.prototype.$isServer){if(!e)return void(t.scrollTop=0);for(var n=[],r=e.offsetParent;r&&t!==r&&t.contains(r);)n.push(r),r=r.offsetParent;var i=e.offsetTop+n.reduce(function(t,e){return t+e.offsetTop},0),a=i+e.offsetHeight,s=t.scrollTop,u=s+t.clientHeight;i<s?t.scrollTop=i:a>u&&(t.scrollTop=a-t.clientHeight)}}e.__esModule=!0,e.default=r;var i=n(14),o=function(t){return t&&t.__esModule?t:{default:t}}(i)},function(t,e,n){"use strict";e.__esModule=!0,e.default=function(){if(i.default.prototype.$isServer)return 0;if(void 0!==o)return o;var t=document.createElement("div");t.className="el-scrollbar__wrap",t.style.visibility="hidden",t.style.width="100px",t.style.position="absolute",t.style.top="-9999px",document.body.appendChild(t);var e=t.offsetWidth;t.style.overflow="scroll";var n=document.createElement("div");n.style.width="100%",t.appendChild(n);var r=n.offsetWidth;return t.parentNode.removeChild(t),o=e-r};var r=n(14),i=function(t){return t&&t.__esModule?t:{default:t}}(r),o=void 0},function(t,e,n){"use strict";var r=n(908);t.exports=Function.prototype.bind||r},function(t,e){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function i(t){if(c===setTimeout)return setTimeout(t,0);if((c===n||!c)&&setTimeout)return c=setTimeout,setTimeout(t,0);try{return c(t,0)}catch(e){try{return c.call(null,t,0)}catch(e){return c.call(this,t,0)}}}function o(t){if(f===clearTimeout)return clearTimeout(t);if((f===r||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(t);try{return f(t)}catch(e){try{return f.call(null,t)}catch(e){return f.call(this,t)}}}function a(){g&&h&&(g=!1,h.length?p=h.concat(p):m=-1,p.length&&s())}function s(){if(!g){var t=i(a);g=!0;for(var e=p.length;e;){for(h=p,p=[];++m<e;)h&&h[m].run();m=-1,e=p.length}h=null,g=!1,o(t)}}function u(t,e){this.fun=t,this.array=e}function l(){}var c,f,d=t.exports={};!function(){try{c="function"==typeof setTimeout?setTimeout:n}catch(t){c=n}try{f="function"==typeof clearTimeout?clearTimeout:r}catch(t){f=r}}();var h,p=[],g=!1,m=-1;d.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];p.push(new u(t,e)),1!==p.length||g||i(s)},u.prototype.run=function(){this.fun.apply(null,this.array)},d.title="browser",d.browser=!0,d.env={},d.argv=[],d.version="",d.versions={},d.on=l,d.addListener=l,d.once=l,d.off=l,d.removeListener=l,d.removeAllListeners=l,d.emit=l,d.prependListener=l,d.prependOnceListener=l,d.listeners=function(t){return[]},d.binding=function(t){throw new Error("process.binding is not supported")},d.cwd=function(){return"/"},d.chdir=function(t){throw new Error("process.chdir is not supported")},d.umask=function(){return 0}},function(t,e,n){"use strict";var r=String.prototype.replace,i=/%20/g,o={RFC1738:"RFC1738",RFC3986:"RFC3986"};t.exports={default:o.RFC3986,formatters:{RFC1738:function(t){return r.call(t,i,"+")},RFC3986:function(t){return String(t)}},RFC1738:o.RFC1738,RFC3986:o.RFC3986}},function(t,e){t.exports=function(t,e,n,r){function i(){function i(){a=Number(new Date),n.apply(u,c)}function s(){o=void 0}var u=this,l=Number(new Date)-a,c=arguments;r&&!o&&i(),o&&clearTimeout(o),void 0===r&&l>t?i():!0!==e&&(o=setTimeout(r?s:i,void 0===r?t-l:t))}var o,a=0;return"boolean"!=typeof e&&(r=n,n=e,e=void 0),i}},function(t,e,n){(function(t){function r(t,e){this._id=t,this._clearFn=e}var i=void 0!==t&&t||"undefined"!=typeof self&&self||window,o=Function.prototype.apply;e.setTimeout=function(){return new r(o.call(setTimeout,i,arguments),clearTimeout)},e.setInterval=function(){return new r(o.call(setInterval,i,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},r.prototype.unref=r.prototype.ref=function(){},r.prototype.close=function(){this._clearFn.call(i,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},n(931),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(e,n(20))},function(t,e,n){"use strict";function r(t,e,n,r,o,a){!t.required||n.hasOwnProperty(t.field)&&!i.f(e,a||t.type)||r.push(i.e(o.messages.required,t.fullField))}var i=n(12);e.a=r},function(t,e,n){t.exports=n(287)},function(t,e,n){"use strict";var r=n(21),i=n(293),o=n(296),a=n(302),s=n(300),u=n(178),l="undefined"!=typeof window&&window.btoa&&window.btoa.bind(window)||n(295);t.exports=function(t){return new Promise(function(e,c){var f=t.data,d=t.headers;r.isFormData(f)&&delete d["Content-Type"];var h=new XMLHttpRequest,p="onreadystatechange",g=!1;if("undefined"==typeof window||!window.XDomainRequest||"withCredentials"in h||s(t.url)||(h=new window.XDomainRequest,p="onload",g=!0,h.onprogress=function(){},h.ontimeout=function(){}),t.auth){var m=t.auth.username||"",v=t.auth.password||"";d.Authorization="Basic "+l(m+":"+v)}if(h.open(t.method.toUpperCase(),o(t.url,t.params,t.paramsSerializer),!0),h.timeout=t.timeout,h[p]=function(){if(h&&(4===h.readyState||g)&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in h?a(h.getAllResponseHeaders()):null,r=t.responseType&&"text"!==t.responseType?h.response:h.responseText,o={data:r,status:1223===h.status?204:h.status,statusText:1223===h.status?"No Content":h.statusText,headers:n,config:t,request:h};i(e,c,o),h=null}},h.onerror=function(){c(u("Network Error",t)),h=null},h.ontimeout=function(){c(u("timeout of "+t.timeout+"ms exceeded",t,"ECONNABORTED")),h=null},r.isStandardBrowserEnv()){var y=n(298),b=(t.withCredentials||s(t.url))&&t.xsrfCookieName?y.read(t.xsrfCookieName):void 0;b&&(d[t.xsrfHeaderName]=b)}if("setRequestHeader"in h&&r.forEach(d,function(t,e){void 0===f&&"content-type"===e.toLowerCase()?delete d[e]:h.setRequestHeader(e,t)}),t.withCredentials&&(h.withCredentials=!0),t.responseType)try{h.responseType=t.responseType}catch(t){if("json"!==h.responseType)throw t}"function"==typeof t.onDownloadProgress&&h.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&h.upload&&h.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then(function(t){h&&(h.abort(),c(t),h=null)}),void 0===f&&(f=null),h.send(f)})}},function(t,e,n){"use strict";function r(t){this.message=t}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,t.exports=r},function(t,e,n){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},function(t,e,n){"use strict";var r=n(292);t.exports=function(t,e,n,i){var o=new Error(t);return r(o,e,n,i)}},function(t,e,n){"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return t.apply(e,n)}}},function(t,e){function n(t,e){return function(){t&&t.apply(this,arguments),e&&e.apply(this,arguments)}}var r=/^(attrs|props|on|nativeOn|class|style|hook)$/;t.exports=function(t){return t.reduce(function(t,e){var i,o,a,s,u;for(a in e)if(i=t[a],o=e[a],i&&r.test(a))if("class"===a&&("string"==typeof i&&(u=i,t[a]=i={},i[u]=!0),"string"==typeof o&&(u=o,e[a]=o={},o[u]=!0)),"on"===a||"nativeOn"===a||"hook"===a)for(s in o)i[s]=n(i[s],o[s]);else if(Array.isArray(i))t[a]=i.concat(o);else if(Array.isArray(o))t[a]=[i].concat(o);else for(s in o)i[s]=o[s];else t[a]=e[a];return t},{})}},function(t,e,n){"use strict";e.__esModule=!0;var r=n(341),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=i.default||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}},function(t,e,n){"use strict";(function(t){function r(){return o.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function i(t,e){if(r()<e)throw new RangeError("Invalid typed array length");return o.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e),t.__proto__=o.prototype):(null===t&&(t=new o(e)),t.length=e),t}function o(t,e,n){if(!(o.TYPED_ARRAY_SUPPORT||this instanceof o))return new o(t,e,n);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return l(this,t)}return a(this,t,e,n)}function a(t,e,n,r){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?d(t,e,n,r):"string"==typeof e?c(t,e,n):h(t,e)}function s(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function u(t,e,n,r){return s(e),e<=0?i(t,e):void 0!==n?"string"==typeof r?i(t,e).fill(n,r):i(t,e).fill(n):i(t,e)}function l(t,e){if(s(e),t=i(t,e<0?0:0|p(e)),!o.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}function c(t,e,n){if("string"==typeof n&&""!==n||(n="utf8"),!o.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|m(e,n);t=i(t,r);var a=t.write(e,n);return a!==r&&(t=t.slice(0,a)),t}function f(t,e){var n=e.length<0?0:0|p(e.length);t=i(t,n);for(var r=0;r<n;r+=1)t[r]=255&e[r];return t}function d(t,e,n,r){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return e=void 0===n&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,n):new Uint8Array(e,n,r),o.TYPED_ARRAY_SUPPORT?(t=e,t.__proto__=o.prototype):t=f(t,e),t}function h(t,e){if(o.isBuffer(e)){var n=0|p(e.length);return t=i(t,n),0===t.length?t:(e.copy(t,0,0,n),t)}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||K(e.length)?i(t,0):f(t,e);if("Buffer"===e.type&&Q(e.data))return f(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function p(t){if(t>=r())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r().toString(16)+" bytes");return 0|t}function g(t){return+t!=t&&(t=0),o.alloc(+t)}function m(t,e){if(o.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return H(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return G(t).length;default:if(r)return H(t).length;e=(""+e).toLowerCase(),r=!0}}function v(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,e>>>=0,n<=e)return"";for(t||(t="utf8");;)switch(t){case"hex":return D(this,e,n);case"utf8":case"utf-8":return A(this,e,n);case"ascii":return P(this,e,n);case"latin1":case"binary":return N(this,e,n);case"base64":return T(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function y(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function b(t,e,n,r,i){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof e&&(e=o.from(e,r)),o.isBuffer(e))return 0===e.length?-1:_(t,e,n,r,i);if("number"==typeof e)return e&=255,o.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):_(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function _(t,e,n,r,i){function o(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}var a=1,s=t.length,u=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;a=2,s/=2,u/=2,n/=2}var l;if(i){var c=-1;for(l=n;l<s;l++)if(o(t,l)===o(e,-1===c?0:l-c)){if(-1===c&&(c=l),l-c+1===u)return c*a}else-1!==c&&(l-=l-c),c=-1}else for(n+u>s&&(n=s-u),l=n;l>=0;l--){for(var f=!0,d=0;d<u;d++)if(o(t,l+d)!==o(e,d)){f=!1;break}if(f)return l}return-1}function w(t,e,n,r){n=Number(n)||0;var i=t.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a<r;++a){var s=parseInt(e.substr(2*a,2),16);if(isNaN(s))return a;t[n+a]=s}return a}function x(t,e,n,r){return Y(H(e,t.length-n),t,n,r)}function k(t,e,n,r){return Y(q(e),t,n,r)}function S(t,e,n,r){return k(t,e,n,r)}function C(t,e,n,r){return Y(G(e),t,n,r)}function E(t,e,n,r){return Y(W(e,t.length-n),t,n,r)}function T(t,e,n){return 0===e&&n===t.length?X.fromByteArray(t):X.fromByteArray(t.slice(e,n))}function A(t,e,n){n=Math.min(t.length,n);for(var r=[],i=e;i<n;){var o=t[i],a=null,s=o>239?4:o>223?3:o>191?2:1;if(i+s<=n){var u,l,c,f;switch(s){case 1:o<128&&(a=o);break;case 2:u=t[i+1],128==(192&u)&&(f=(31&o)<<6|63&u)>127&&(a=f);break;case 3:u=t[i+1],l=t[i+2],128==(192&u)&&128==(192&l)&&(f=(15&o)<<12|(63&u)<<6|63&l)>2047&&(f<55296||f>57343)&&(a=f);break;case 4:u=t[i+1],l=t[i+2],c=t[i+3],128==(192&u)&&128==(192&l)&&128==(192&c)&&(f=(15&o)<<18|(63&u)<<12|(63&l)<<6|63&c)>65535&&f<1114112&&(a=f)}}null===a?(a=65533,s=1):a>65535&&(a-=65536,r.push(a>>>10&1023|55296),a=56320|1023&a),r.push(a),i+=s}return O(r)}function O(t){var e=t.length;if(e<=Z)return String.fromCharCode.apply(String,t);for(var n="",r=0;r<e;)n+=String.fromCharCode.apply(String,t.slice(r,r+=Z));return n}function P(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(127&t[i]);return r}function N(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(t[i]);return r}function D(t,e,n){var r=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=e;o<n;++o)i+=U(t[o]);return i}function M(t,e,n){for(var r=t.slice(e,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function I(t,e,n){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function R(t,e,n,r,i,a){if(!o.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<a)throw new RangeError('"value" argument is out of bounds');if(n+r>t.length)throw new RangeError("Index out of range")}function $(t,e,n,r){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-n,2);i<o;++i)t[n+i]=(e&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function L(t,e,n,r){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-n,4);i<o;++i)t[n+i]=e>>>8*(r?i:3-i)&255}function j(t,e,n,r,i,o){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function F(t,e,n,r,i){return i||j(t,e,n,4,3.4028234663852886e38,-3.4028234663852886e38),J.write(t,e,n,r,23,4),n+4}function B(t,e,n,r,i){return i||j(t,e,n,8,1.7976931348623157e308,-1.7976931348623157e308),J.write(t,e,n,r,52,8),n+8}function V(t){if(t=z(t).replace(tt,""),t.length<2)return"";for(;t.length%4!=0;)t+="=";return t}function z(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function U(t){return t<16?"0"+t.toString(16):t.toString(16)}function H(t,e){e=e||1/0;for(var n,r=t.length,i=null,o=[],a=0;a<r;++a){if((n=t.charCodeAt(a))>55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function q(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}function W(t,e){for(var n,r,i,o=[],a=0;a<t.length&&!((e-=2)<0);++a)n=t.charCodeAt(a),r=n>>8,i=n%256,o.push(i),o.push(r);return o}function G(t){return X.toByteArray(V(t))}function Y(t,e,n,r){for(var i=0;i<r&&!(i+n>=e.length||i>=t.length);++i)e[i+n]=t[i];return i}function K(t){return t!==t}/*!
  2. * The buffer module from node.js, for the browser.
  3. *
  4. * @author Feross Aboukhadijeh <http://feross.org>
  5. * @license MIT
  6. */
  7. var X=n(346),J=n(913),Q=n(914);e.Buffer=o,e.SlowBuffer=g,e.INSPECT_MAX_BYTES=50,o.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=r(),o.poolSize=8192,o._augment=function(t){return t.__proto__=o.prototype,t},o.from=function(t,e,n){return a(null,t,e,n)},o.TYPED_ARRAY_SUPPORT&&(o.prototype.__proto__=Uint8Array.prototype,o.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&o[Symbol.species]===o&&Object.defineProperty(o,Symbol.species,{value:null,configurable:!0})),o.alloc=function(t,e,n){return u(null,t,e,n)},o.allocUnsafe=function(t){return l(null,t)},o.allocUnsafeSlow=function(t){return l(null,t)},o.isBuffer=function(t){return!(null==t||!t._isBuffer)},o.compare=function(t,e){if(!o.isBuffer(t)||!o.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,r=e.length,i=0,a=Math.min(n,r);i<a;++i)if(t[i]!==e[i]){n=t[i],r=e[i];break}return n<r?-1:r<n?1:0},o.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.concat=function(t,e){if(!Q(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return o.alloc(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var r=o.allocUnsafe(e),i=0;for(n=0;n<t.length;++n){var a=t[n];if(!o.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,i),i+=a.length}return r},o.byteLength=m,o.prototype._isBuffer=!0,o.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)y(this,e,e+1);return this},o.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)y(this,e,e+3),y(this,e+1,e+2);return this},o.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)y(this,e,e+7),y(this,e+1,e+6),y(this,e+2,e+5),y(this,e+3,e+4);return this},o.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?A(this,0,t):v.apply(this,arguments)},o.prototype.equals=function(t){if(!o.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===o.compare(this,t)},o.prototype.inspect=function(){var t="",n=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),"<Buffer "+t+">"},o.prototype.compare=function(t,e,n,r,i){if(!o.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&e>=n)return 0;if(r>=i)return-1;if(e>=n)return 1;if(e>>>=0,n>>>=0,r>>>=0,i>>>=0,this===t)return 0;for(var a=i-r,s=n-e,u=Math.min(a,s),l=this.slice(r,i),c=t.slice(e,n),f=0;f<u;++f)if(l[f]!==c[f]){a=l[f],s=c[f];break}return a<s?-1:s<a?1:0},o.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},o.prototype.indexOf=function(t,e,n){return b(this,t,e,n,!0)},o.prototype.lastIndexOf=function(t,e,n){return b(this,t,e,n,!1)},o.prototype.write=function(t,e,n,r){if(void 0===e)r="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)r=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-e;if((void 0===n||n>i)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return w(this,t,e,n);case"utf8":case"utf-8":return x(this,t,e,n);case"ascii":return k(this,t,e,n);case"latin1":case"binary":return S(this,t,e,n);case"base64":return C(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Z=4096;o.prototype.slice=function(t,e){var n=this.length;t=~~t,e=void 0===e?n:~~e,t<0?(t+=n)<0&&(t=0):t>n&&(t=n),e<0?(e+=n)<0&&(e=0):e>n&&(e=n),e<t&&(e=t);var r;if(o.TYPED_ARRAY_SUPPORT)r=this.subarray(t,e),r.__proto__=o.prototype;else{var i=e-t;r=new o(i,void 0);for(var a=0;a<i;++a)r[a]=this[a+t]}return r},o.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||I(t,e,this.length);for(var r=this[t],i=1,o=0;++o<e&&(i*=256);)r+=this[t+o]*i;return r},o.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||I(t,e,this.length);for(var r=this[t+--e],i=1;e>0&&(i*=256);)r+=this[t+--e]*i;return r},o.prototype.readUInt8=function(t,e){return e||I(t,1,this.length),this[t]},o.prototype.readUInt16LE=function(t,e){return e||I(t,2,this.length),this[t]|this[t+1]<<8},o.prototype.readUInt16BE=function(t,e){return e||I(t,2,this.length),this[t]<<8|this[t+1]},o.prototype.readUInt32LE=function(t,e){return e||I(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},o.prototype.readUInt32BE=function(t,e){return e||I(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},o.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||I(t,e,this.length);for(var r=this[t],i=1,o=0;++o<e&&(i*=256);)r+=this[t+o]*i;return i*=128,r>=i&&(r-=Math.pow(2,8*e)),r},o.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||I(t,e,this.length);for(var r=e,i=1,o=this[t+--r];r>0&&(i*=256);)o+=this[t+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*e)),o},o.prototype.readInt8=function(t,e){return e||I(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},o.prototype.readInt16LE=function(t,e){e||I(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},o.prototype.readInt16BE=function(t,e){e||I(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},o.prototype.readInt32LE=function(t,e){return e||I(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},o.prototype.readInt32BE=function(t,e){return e||I(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},o.prototype.readFloatLE=function(t,e){return e||I(t,4,this.length),J.read(this,t,!0,23,4)},o.prototype.readFloatBE=function(t,e){return e||I(t,4,this.length),J.read(this,t,!1,23,4)},o.prototype.readDoubleLE=function(t,e){return e||I(t,8,this.length),J.read(this,t,!0,52,8)},o.prototype.readDoubleBE=function(t,e){return e||I(t,8,this.length),J.read(this,t,!1,52,8)},o.prototype.writeUIntLE=function(t,e,n,r){if(t=+t,e|=0,n|=0,!r){R(this,t,e,n,Math.pow(2,8*n)-1,0)}var i=1,o=0;for(this[e]=255&t;++o<n&&(i*=256);)this[e+o]=t/i&255;return e+n},o.prototype.writeUIntBE=function(t,e,n,r){if(t=+t,e|=0,n|=0,!r){R(this,t,e,n,Math.pow(2,8*n)-1,0)}var i=n-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+n},o.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||R(this,t,e,1,255,0),o.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},o.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||R(this,t,e,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):$(this,t,e,!0),e+2},o.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||R(this,t,e,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):$(this,t,e,!1),e+2},o.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||R(this,t,e,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):L(this,t,e,!0),e+4},o.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||R(this,t,e,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):L(this,t,e,!1),e+4},o.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);R(this,t,e,n,i-1,-i)}var o=0,a=1,s=0;for(this[e]=255&t;++o<n&&(a*=256);)t<0&&0===s&&0!==this[e+o-1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},o.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);R(this,t,e,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[e+o]=255&t;--o>=0&&(a*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},o.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||R(this,t,e,1,127,-128),o.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},o.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||R(this,t,e,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):$(this,t,e,!0),e+2},o.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||R(this,t,e,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):$(this,t,e,!1),e+2},o.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||R(this,t,e,4,2147483647,-2147483648),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):L(this,t,e,!0),e+4},o.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||R(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):L(this,t,e,!1),e+4},o.prototype.writeFloatLE=function(t,e,n){return F(this,t,e,!0,n)},o.prototype.writeFloatBE=function(t,e,n){return F(this,t,e,!1,n)},o.prototype.writeDoubleLE=function(t,e,n){return B(this,t,e,!0,n)},o.prototype.writeDoubleBE=function(t,e,n){return B(this,t,e,!1,n)},o.prototype.copy=function(t,e,n,r){if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e<r-n&&(r=t.length-e+n);var i,a=r-n;if(this===t&&n<e&&e<r)for(i=a-1;i>=0;--i)t[i+e]=this[i+n];else if(a<1e3||!o.TYPED_ARRAY_SUPPORT)for(i=0;i<a;++i)t[i+e]=this[i+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+a),e);return a},o.prototype.fill=function(t,e,n,r){if("string"==typeof t){if("string"==typeof e?(r=e,e=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!o.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0);var a;if("number"==typeof t)for(a=e;a<n;++a)this[a]=t;else{var s=o.isBuffer(t)?t:H(new o(t,r).toString()),u=s.length;for(a=0;a<n-e;++a)this[a+e]=s[a%u]}return this};var tt=/[^+\/0-9A-Za-z-_]/g}).call(e,n(20))},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},function(t,e,n){var r=n(115),i=n(30)("toStringTag"),o="Arguments"==r(function(){return arguments}()),a=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,n,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=a(e=Object(t),i))?n:o?r(e):"Object"==(s=r(e))&&"function"==typeof e.callee?"Arguments":s}},function(t,e,n){var r=n(48),i=n(37).document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},function(t,e,n){t.exports=!n(29)&&!n(69)(function(){return 7!=Object.defineProperty(n(186)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(115);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){var r=n(191),i=n(117).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},function(t,e,n){var r=n(52),i=n(70),o=n(360)(!1),a=n(123)("IE_PROTO");t.exports=function(t,e){var n,s=i(t),u=0,l=[];for(n in s)n!=a&&r(s,n)&&l.push(n);for(;e.length>u;)r(s,n=e[u++])&&(~o(l,n)||l.push(n));return l}},function(t,e,n){var r=n(47);t.exports=function(t,e,n){for(var i in e)n&&t[i]?t[i]=e[i]:r(t,i,e[i]);return t}},function(t,e,n){t.exports=n(47)},function(t,e,n){var r=n(48);t.exports=function(t,e){if(!r(t)||t._t!==e)throw TypeError("Incompatible receiver, "+e+" required!");return t}},function(t,e){},function(t,e,n){"use strict";var r=n(380)(!0);n(119)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){n(383);for(var r=n(37),i=n(47),o=n(78),a=n(30)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),u=0;u<s.length;u++){var l=s[u],c=r[l],f=c&&c.prototype;f&&!f[a]&&i(f,a,l),o[l]=o.Array}},function(t,e,n){var r=n(31);t.exports=function(t,e){if("number"!=typeof t&&"Number"!=r(t))throw TypeError(e);return+t}},function(t,e,n){"use strict";var r=n(13),i=n(61),o=n(9);t.exports=[].copyWithin||function(t,e){var n=r(this),a=o(n.length),s=i(t,a),u=i(e,a),l=arguments.length>2?arguments[2]:void 0,c=Math.min((void 0===l?a:i(l,a))-u,a-s),f=1;for(u<s&&s<u+c&&(f=-1,u+=c-1,s+=c-1);c-- >0;)u in n?n[s]=n[u]:delete n[s],s+=f,u+=f;return n}},function(t,e,n){var r=n(54);t.exports=function(t,e){var n=[];return r(t,!1,n.push,n,e),n}},function(t,e,n){var r=n(15),i=n(13),o=n(80),a=n(9);t.exports=function(t,e,n,s,u){r(e);var l=i(t),c=o(l),f=a(l.length),d=u?f-1:0,h=u?-1:1;if(n<2)for(;;){if(d in c){s=c[d],d+=h;break}if(d+=h,u?d<0:f<=d)throw TypeError("Reduce of empty array with no initial value")}for(;u?d>=0:f>d;d+=h)d in c&&(s=e(s,c[d],d,l));return s}},function(t,e,n){"use strict";var r=n(15),i=n(5),o=n(208),a=[].slice,s={},u=function(t,e,n){if(!(e in s)){for(var r=[],i=0;i<e;i++)r[i]="a["+i+"]";s[e]=Function("F,a","return new F("+r.join(",")+")")}return s[e](t,n)};t.exports=Function.bind||function(t){var e=r(this),n=a.call(arguments,1),s=function(){var r=n.concat(a.call(arguments));return this instanceof s?u(e,r.length,r):o(e,r,t)};return i(e.prototype)&&(s.prototype=e.prototype),s}},function(t,e,n){"use strict";var r=n(11).f,i=n(55),o=n(59),a=n(33),s=n(53),u=n(54),l=n(141),c=n(211),f=n(60),d=n(10),h=n(51).fastKey,p=n(63),g=d?"_s":"size",m=function(t,e){var n,r=h(e);if("F"!==r)return t._i[r];for(n=t._f;n;n=n.n)if(n.k==e)return n};t.exports={getConstructor:function(t,e,n,l){var c=t(function(t,r){s(t,c,e,"_i"),t._t=e,t._i=i(null),t._f=void 0,t._l=void 0,t[g]=0,void 0!=r&&u(r,n,t[l],t)});return o(c.prototype,{clear:function(){for(var t=p(this,e),n=t._i,r=t._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete n[r.i];t._f=t._l=void 0,t[g]=0},delete:function(t){var n=p(this,e),r=m(n,t);if(r){var i=r.n,o=r.p;delete n._i[r.i],r.r=!0,o&&(o.n=i),i&&(i.p=o),n._f==r&&(n._f=i),n._l==r&&(n._l=o),n[g]--}return!!r},forEach:function(t){p(this,e);for(var n,r=a(t,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(r(n.v,n.k,this);n&&n.r;)n=n.p},has:function(t){return!!m(p(this,e),t)}}),d&&r(c.prototype,"size",{get:function(){return p(this,e)[g]}}),c},def:function(t,e,n){var r,i,o=m(t,e);return o?o.v=n:(t._l=o={i:i=h(e,!0),k:e,v:n,p:r=t._l,n:void 0,r:!1},t._f||(t._f=o),r&&(r.n=o),t[g]++,"F"!==i&&(t._i[i]=o)),t},getEntry:m,setStrong:function(t,e,n){l(t,e,function(t,n){this._t=p(t,e),this._k=n,this._l=void 0},function(){for(var t=this,e=t._k,n=t._l;n&&n.r;)n=n.p;return t._t&&(t._l=n=n?n.n:t._t._f)?"keys"==e?c(0,n.k):"values"==e?c(0,n.v):c(0,[n.k,n.v]):(t._t=void 0,c(1))},n?"entries":"values",!n,!0),f(e)}}},function(t,e,n){var r=n(71),i=n(200);t.exports=function(t){return function(){if(r(this)!=t)throw TypeError(t+"#toJSON isn't generic");return i(this)}}},function(t,e,n){"use strict";var r=n(59),i=n(51).getWeak,o=n(2),a=n(5),s=n(53),u=n(54),l=n(39),c=n(23),f=n(63),d=l(5),h=l(6),p=0,g=function(t){return t._l||(t._l=new m)},m=function(){this.a=[]},v=function(t,e){return d(t.a,function(t){return t[0]===e})};m.prototype={get:function(t){var e=v(this,t);if(e)return e[1]},has:function(t){return!!v(this,t)},set:function(t,e){var n=v(this,t);n?n[1]=e:this.a.push([t,e])},delete:function(t){var e=h(this.a,function(e){return e[0]===t});return~e&&this.a.splice(e,1),!!~e}},t.exports={getConstructor:function(t,e,n,o){var l=t(function(t,r){s(t,l,e,"_i"),t._t=e,t._i=p++,t._l=void 0,void 0!=r&&u(r,n,t[o],t)});return r(l.prototype,{delete:function(t){if(!a(t))return!1;var n=i(t);return!0===n?g(f(this,e)).delete(t):n&&c(n,this._i)&&delete n[this._i]},has:function(t){if(!a(t))return!1;var n=i(t);return!0===n?g(f(this,e)).has(t):n&&c(n,this._i)}}),l},def:function(t,e,n){var r=i(o(e),!0);return!0===r?g(t).set(e,n):r[t._i]=n,t},ufstore:g}},function(t,e,n){"use strict";function r(t,e,n,l,c,f,d,h){for(var p,g,m=c,v=0,y=!!d&&s(d,h,3);v<l;){if(v in n){if(p=y?y(n[v],v,e):n[v],g=!1,o(p)&&(g=p[u],g=void 0!==g?!!g:i(p)),g&&f>0)m=r(t,e,p,a(p.length),m,f-1)-1;else{if(m>=9007199254740991)throw TypeError();t[m]=p}m++}v++}return m}var i=n(96),o=n(5),a=n(9),s=n(33),u=n(8)("isConcatSpreadable");t.exports=r},function(t,e,n){t.exports=!n(10)&&!n(4)(function(){return 7!=Object.defineProperty(n(134)("div"),"a",{get:function(){return 7}}).a})},function(t,e){t.exports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},function(t,e,n){var r=n(5),i=Math.floor;t.exports=function(t){return!r(t)&&isFinite(t)&&i(t)===t}},function(t,e,n){var r=n(2);t.exports=function(t,e,n,i){try{return i?e(r(n)[0],n[1]):e(n)}catch(e){var o=t.return;throw void 0!==o&&r(o.call(t)),e}}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){var r=n(143),i=Math.pow,o=i(2,-52),a=i(2,-23),s=i(2,127)*(2-a),u=i(2,-126),l=function(t){return t+1/o-1/o};t.exports=Math.fround||function(t){var e,n,i=Math.abs(t),c=r(t);return i<u?c*l(i/u/a)*u*a:(e=(1+a/o)*i,n=e-(e-i),n>s||n!=n?c*(1/0):c*n)}},function(t,e){t.exports=Math.log1p||function(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:Math.log(1+t)}},function(t,e){t.exports=Math.scale||function(t,e,n,r,i){return 0===arguments.length||t!=t||e!=e||n!=n||r!=r||i!=i?NaN:t===1/0||t===-1/0?t:(t-e)*(i-r)/(n-e)+r}},function(t,e,n){"use strict";var r=n(10),i=n(57),o=n(100),a=n(81),s=n(13),u=n(80),l=Object.assign;t.exports=!l||n(4)(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=l({},t)[n]||Object.keys(l({},e)).join("")!=r})?function(t,e){for(var n=s(t),l=arguments.length,c=1,f=o.f,d=a.f;l>c;)for(var h,p=u(arguments[c++]),g=f?i(p).concat(f(p)):i(p),m=g.length,v=0;m>v;)h=g[v++],r&&!d.call(p,h)||(n[h]=p[h]);return n}:l},function(t,e,n){var r=n(11),i=n(2),o=n(57);t.exports=n(10)?Object.defineProperties:function(t,e){i(t);for(var n,a=o(e),s=a.length,u=0;s>u;)r.f(t,n=a[u++],e[n]);return t}},function(t,e,n){var r=n(26),i=n(56).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(t){try{return i(t)}catch(t){return a.slice()}};t.exports.f=function(t){return a&&"[object Window]"==o.call(t)?s(t):i(r(t))}},function(t,e,n){var r=n(23),i=n(26),o=n(93)(!1),a=n(148)("IE_PROTO");t.exports=function(t,e){var n,s=i(t),u=0,l=[];for(n in s)n!=a&&r(s,n)&&l.push(n);for(;e.length>u;)r(s,n=e[u++])&&(~o(l,n)||l.push(n));return l}},function(t,e,n){var r=n(10),i=n(57),o=n(26),a=n(81).f;t.exports=function(t){return function(e){for(var n,s=o(e),u=i(s),l=u.length,c=0,f=[];l>c;)n=u[c++],r&&!a.call(s,n)||f.push(t?[n,s[n]]:s[n]);return f}}},function(t,e,n){var r=n(56),i=n(100),o=n(2),a=n(3).Reflect;t.exports=a&&a.ownKeys||function(t){var e=r.f(o(t)),n=i.f;return n?e.concat(n(t)):e}},function(t,e,n){var r=n(3).parseFloat,i=n(74).trim;t.exports=1/r(n(151)+"-0")!=-1/0?function(t){var e=i(String(t),3),n=r(e);return 0===n&&"-"==e.charAt(0)?-0:n}:r},function(t,e,n){var r=n(3).parseInt,i=n(74).trim,o=n(151),a=/^[-+]?0[xX]/;t.exports=8!==r(o+"08")||22!==r(o+"0x16")?function(t,e){var n=i(String(t),3);return r(n,e>>>0||(a.test(n)?16:10))}:r},function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,e,n){var r=n(2),i=n(5),o=n(145);t.exports=function(t,e){if(r(t),i(e)&&e.constructor===t)return e;var n=o.f(t);return(0,n.resolve)(e),n.promise}},function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},function(t,e,n){var r=n(9),i=n(150),o=n(40);t.exports=function(t,e,n,a){var s=String(o(t)),u=s.length,l=void 0===n?" ":String(n),c=r(e);if(c<=u||""==l)return s;var f=c-u,d=i.call(l,Math.ceil(f/l.length));return d.length>f&&(d=d.slice(0,f)),a?d+s:s+d}},function(t,e,n){var r=n(35),i=n(9);t.exports=function(t){if(void 0===t)return 0;var e=r(t),n=i(e);if(e!==n)throw RangeError("Wrong length!");return n}},function(t,e,n){e.f=n(8)},function(t,e,n){"use strict";var r=n(203),i=n(63);t.exports=n(94)("Map",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{get:function(t){var e=r.getEntry(i(this,"Map"),t);return e&&e.v},set:function(t,e){return r.def(i(this,"Map"),0===t?0:t,e)}},r,!0)},function(t,e,n){"use strict";var r=n(146);n(1)({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},function(t,e,n){n(10)&&"g"!=/./g.flags&&n(11).f(RegExp.prototype,"flags",{configurable:!0,get:n(79)})},function(t,e,n){"use strict";var r=n(203),i=n(63);t.exports=n(94)("Set",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return r.def(i(this,"Set"),t=0===t?0:t,t)}},r)},function(t,e,n){"use strict";var r,i=n(3),o=n(39)(0),a=n(18),s=n(51),u=n(215),l=n(205),c=n(5),f=n(63),d=n(63),h=!i.ActiveXObject&&"ActiveXObject"in i,p=s.getWeak,g=Object.isExtensible,m=l.ufstore,v=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},y={get:function(t){if(c(t)){var e=p(t);return!0===e?m(f(this,"WeakMap")).get(t):e?e[this._i]:void 0}},set:function(t,e){return l.def(f(this,"WeakMap"),t,e)}},b=t.exports=n(94)("WeakMap",v,y,l,!0,!0);d&&h&&(r=l.getConstructor(v,"WeakMap"),u(r.prototype,y),s.NEED=!0,o(["delete","has","get","set"],function(t){var e=b.prototype,n=e[t];a(e,t,function(e,i){if(c(e)&&!g(e)){this._f||(this._f=new r);var o=this._f[t](e,i);return"set"==t?this:o}return n.call(this,e,i)})}))},function(t,e,n){!function(e,n){t.exports=n()}(0,function(){"use strict";var t="millisecond",e="second",n="minute",r="hour",i="day",o="week",a="month",s="quarter",u="year",l="date",c="Invalid Date",f=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,d=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,h={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],n=t%100;return"["+t+(e[(n-20)%10]||e[n]||e[0])+"]"}},p=function(t,e,n){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},g={s:p,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return(e<=0?"+":"-")+p(r,2,"0")+":"+p(i,2,"0")},m:function t(e,n){if(e.date()<n.date())return-t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,a),o=n-i<0,s=e.clone().add(r+(o?-1:1),a);return+(-(r+(n-i)/(o?i-s:s-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(c){return{M:a,y:u,w:o,d:i,D:l,h:r,m:n,s:e,ms:t,Q:s}[c]||String(c||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},m="en",v={};v[m]=h;var y="$isDayjsObject",b=function(t){return t instanceof k||!(!t||!t[y])},_=function t(e,n,r){var i;if(!e)return m;if("string"==typeof e){var o=e.toLowerCase();v[o]&&(i=o),n&&(v[o]=n,i=o);var a=e.split("-");if(!i&&a.length>1)return t(a[0])}else{var s=e.name;v[s]=e,i=s}return!r&&i&&(m=i),i||!r&&m},w=function(t,e){if(b(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new k(n)},x=g;x.l=_,x.i=b,x.w=function(t,e){return w(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var k=function(){function h(t){this.$L=_(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[y]=!0}var p=h.prototype;return p.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(x.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match(f);if(r){var i=r[2]-1||0,o=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)}}return new Date(e)}(t),this.init()},p.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},p.$utils=function(){return x},p.isValid=function(){return!(this.$d.toString()===c)},p.isSame=function(t,e){var n=w(t);return this.startOf(e)<=n&&n<=this.endOf(e)},p.isAfter=function(t,e){return w(t)<this.startOf(e)},p.isBefore=function(t,e){return this.endOf(e)<w(t)},p.$g=function(t,e,n){return x.u(t)?this[e]:this.set(n,t)},p.unix=function(){return Math.floor(this.valueOf()/1e3)},p.valueOf=function(){return this.$d.getTime()},p.startOf=function(t,s){var c=this,f=!!x.u(s)||s,d=x.p(t),h=function(t,e){var n=x.w(c.$u?Date.UTC(c.$y,e,t):new Date(c.$y,e,t),c);return f?n:n.endOf(i)},p=function(t,e){return x.w(c.toDate()[t].apply(c.toDate("s"),(f?[0,0,0,0]:[23,59,59,999]).slice(e)),c)},g=this.$W,m=this.$M,v=this.$D,y="set"+(this.$u?"UTC":"");switch(d){case u:return f?h(1,0):h(31,11);case a:return f?h(1,m):h(0,m+1);case o:var b=this.$locale().weekStart||0,_=(g<b?g+7:g)-b;return h(f?v-_:v+(6-_),m);case i:case l:return p(y+"Hours",0);case r:return p(y+"Minutes",1);case n:return p(y+"Seconds",2);case e:return p(y+"Milliseconds",3);default:return this.clone()}},p.endOf=function(t){return this.startOf(t,!1)},p.$set=function(o,s){var c,f=x.p(o),d="set"+(this.$u?"UTC":""),h=(c={},c[i]=d+"Date",c[l]=d+"Date",c[a]=d+"Month",c[u]=d+"FullYear",c[r]=d+"Hours",c[n]=d+"Minutes",c[e]=d+"Seconds",c[t]=d+"Milliseconds",c)[f],p=f===i?this.$D+(s-this.$W):s;if(f===a||f===u){var g=this.clone().set(l,1);g.$d[h](p),g.init(),this.$d=g.set(l,Math.min(this.$D,g.daysInMonth())).$d}else h&&this.$d[h](p);return this.init(),this},p.set=function(t,e){return this.clone().$set(t,e)},p.get=function(t){return this[x.p(t)]()},p.add=function(t,s){var l,c=this;t=Number(t);var f=x.p(s),d=function(e){var n=w(c);return x.w(n.date(n.date()+Math.round(e*t)),c)};if(f===a)return this.set(a,this.$M+t);if(f===u)return this.set(u,this.$y+t);if(f===i)return d(1);if(f===o)return d(7);var h=(l={},l[n]=6e4,l[r]=36e5,l[e]=1e3,l)[f]||1,p=this.$d.getTime()+t*h;return x.w(p,this)},p.subtract=function(t,e){return this.add(-1*t,e)},p.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||c;var r=t||"YYYY-MM-DDTHH:mm:ssZ",i=x.z(this),o=this.$H,a=this.$m,s=this.$M,u=n.weekdays,l=n.months,f=n.meridiem,h=function(t,n,i,o){return t&&(t[n]||t(e,r))||i[n].slice(0,o)},p=function(t){return x.s(o%12||12,t,"0")},g=f||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(d,function(t,r){return r||function(t){switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return x.s(e.$y,4,"0");case"M":return s+1;case"MM":return x.s(s+1,2,"0");case"MMM":return h(n.monthsShort,s,l,3);case"MMMM":return h(l,s);case"D":return e.$D;case"DD":return x.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return h(n.weekdaysMin,e.$W,u,2);case"ddd":return h(n.weekdaysShort,e.$W,u,3);case"dddd":return u[e.$W];case"H":return String(o);case"HH":return x.s(o,2,"0");case"h":return p(1);case"hh":return p(2);case"a":return g(o,a,!0);case"A":return g(o,a,!1);case"m":return String(a);case"mm":return x.s(a,2,"0");case"s":return String(e.$s);case"ss":return x.s(e.$s,2,"0");case"SSS":return x.s(e.$ms,3,"0");case"Z":return i}return null}(t)||i.replace(":","")})},p.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},p.diff=function(t,l,c){var f,d=this,h=x.p(l),p=w(t),g=6e4*(p.utcOffset()-this.utcOffset()),m=this-p,v=function(){return x.m(d,p)};switch(h){case u:f=v()/12;break;case a:f=v();break;case s:f=v()/3;break;case o:f=(m-g)/6048e5;break;case i:f=(m-g)/864e5;break;case r:f=m/36e5;break;case n:f=m/6e4;break;case e:f=m/1e3;break;default:f=m}return c?f:x.a(f)},p.daysInMonth=function(){return this.endOf(a).$D},p.$locale=function(){return v[this.$L]},p.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=_(t,e,!0);return r&&(n.$L=r),n},p.clone=function(){return x.w(this.$d,this)},p.toDate=function(){return new Date(this.valueOf())},p.toJSON=function(){return this.isValid()?this.toISOString():null},p.toISOString=function(){return this.$d.toISOString()},p.toString=function(){return this.$d.toUTCString()},h}(),S=k.prototype;return w.prototype=S,[["$ms",t],["$s",e],["$m",n],["$H",r],["$W",i],["$M",a],["$y",u],["$D",l]].forEach(function(t){S[t[1]]=function(e){return this.$g(e,t[0],t[1])}}),w.extend=function(t,e){return t.$i||(t(e,k,w),t.$i=!0),w},w.locale=_,w.isDayjs=b,w.unix=function(t){return w(1e3*t)},w.en=v[m],w.Ls=v,w.p={},w})},function(t,e,n){"use strict";var r=n(0),i=n(822),o=Object.assign({},i,r.ddSdk.getExportSdk());t.exports=o},function(t,e,n){"use strict";var r=n(64),i=n(598),o=n(840),a=Object.assign(r,i.apiObj,{plugin:o});t.exports=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.off=e.on=void 0;var r=["resume","pause","online","offline","backbutton","goBack","pullToRefresh","message","recycle","restore","drawer","tab","navHelpIcon","navRightButton","navMenu","navTitle","appLinkResponse","internalPageLinkResponse","networkEvent","hostTaskEvent","deviceOrientationChanged","autoCheckIn","deviceFound","hostCheckIn","screenshot","becomeActive","keepAlive","navTitleClick","sharePage","wxNotify","editNoteCommand","updateStyle","qrscanCommonNotify","__message__","dtChannelEvent","livePlayerEventPlay","livePlayerEventPause","livePlayerEventEnded","livePlayerEventError","navActions","attendEvents"],i=function(){return"undefined"==typeof WeakMap?void 0:new WeakMap}(),o=function(t,e){if(i){var n=i.get(e);return void 0===n?(n=function(t){var r=t.detail;if(r.namespace&&r.eventName){var i="".concat(r.namespace,".").concat(r.eventName);n&&-1!==n.__eventTypeList__.indexOf(i)&&e(r.data)}},n.__eventTypeList__=[t],i.set(e,n)):-1===n.__eventTypeList__.indexOf(t)&&n.__eventTypeList__.push(t),n}},a=function(t,e){if(i){var n=i.get(e);return n&&-1!==n.__eventTypeList__.indexOf(t)&&n.__eventTypeList__.splice(n.__eventTypeList__.indexOf(t),1),n&&n.__eventTypeList__.length<=1?n:void 0}},s=function(t,e){if(-1!==r.indexOf(t))document.addEventListener(t,e);else{var n=o(t,e);n?document.addEventListener("dtBizBridgeEvent",n):console.log("bind event : ".concat(t," need WeakMap support , current environment doesnot"))}};e.on=s;var u=function(t,e){if(-1!==r.indexOf(t))document.removeEventListener(t,e);else{var n=a(t,e);n&&document.removeEventListener("dtBizBridgeEvent",n)}};e.off=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){},i=function(t,e){return new Promise(function(n,i){var o=e.onSuccess||r,a=e.onFail||r;if(delete e.onSuccess,delete e.onFail,AlipayJSBridge){var s=t.split("."),u=s.pop()||"",l=s.join(".");AlipayJSBridge.call.apply(null,["webDdExec",{serviceName:l,actionName:u,args:e},function(t){var e={},r=t.content;if(r)try{e=JSON.parse(r)}catch(t){console.error("parse dt api result error",r,t)}t.success?(o.apply(null,[e]),n(e)):(a.apply(null,[e]),i(e))}])}else{var c=new Error("Fatal error, cannot find bridge ,current env is WebView in MiniApp");a(c),i(c)}})};e.default=i},function(t,e,n){"use strict";var r=this;Object.defineProperty(e,"__esModule",{value:!0}),e.off=e.on=void 0;var i=n(158),o=function(t,e){(0,i.requireModule)("globalEvent").addEventListener(t,function(t){var n={preventDefault:function(){throw new Error("does not support preventDefault")},detail:t};e.call(r,n)})};e.on=o;var a=function(t,e){(0,i.requireModule)("globalEvent").removeEventListener(t,e)};e.off=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FRAMEWORK=e.PLATFORM=e.RUNTIME=void 0,e.RUNTIME={WEB:"Web",WEEX:"Weex",UNKNOWN:"Unknown"},e.PLATFORM={MAC:"Mac",WINDOWS:"Windows",IOS:"iOS",ANDROID:"Android",IPAD:"iPad",BROWSER:"Browser",UNKNOWN:"Unknown"},e.FRAMEWORK={VUE:"Vue",RAX:"Rax",UNKNOWN:"Unknown"}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(65),o=n(76),a=n(157),s=n(238),u=n(817),l=n(158),c=n(237),f=n(239);r.ddSdk.setPlatform({platform:i.ENV_ENUM.android,bridgeInit:function(){var t=(0,i.getENV)();return t.appType===o.APP_TYPE.MINI_APP?Promise.resolve(a.default):t.appType===o.APP_TYPE.WEBVIEW_IN_MINIAPP?Promise.resolve(s.default):t.appType===o.APP_TYPE.WEEX?(0,l.androidWeexBridge)():(0,u.h5AndroidbridgeInit)().then(function(){return u.default})},authMethod:"runtime.permission.requestJsApis",event:{on:function(t,e){var n=(0,i.getENV)();switch(n.appType){case o.APP_TYPE.WEB:case o.APP_TYPE.WEBVIEW_IN_MINIAPP:(0,c.on)(t,e);break;case o.APP_TYPE.WEEX:(0,f.on)(t,e);break;default:throw new Error("Not support global event in the platfrom: ".concat(n.appType))}},off:function(t,e){var n=(0,i.getENV)();switch(n.appType){case o.APP_TYPE.WEB:case o.APP_TYPE.WEBVIEW_IN_MINIAPP:(0,c.off)(t,e);break;case o.APP_TYPE.WEEX:(0,f.off)(t,e);break;default:throw new Error("Not support global event in the platfrom: ".concat(n.appType))}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(65),o=n(76),a=n(157),s=n(238),u=n(818),l=n(158),c=n(237),f=n(239);r.ddSdk.setPlatform({platform:i.ENV_ENUM.ios,bridgeInit:function(){var t=(0,i.getENV)();return t.appType===o.APP_TYPE.MINI_APP?Promise.resolve(a.default):t.appType===o.APP_TYPE.WEBVIEW_IN_MINIAPP?Promise.resolve(s.default):t.appType===o.APP_TYPE.WEEX?(0,l.iosWeexBridge)():(0,u.h5IosBridgeInit)().then(function(){return u.default})},authMethod:"runtime.permission.requestJsApis",event:{on:function(t,e){var n=(0,i.getENV)();switch(n.appType){case o.APP_TYPE.WEB:case o.APP_TYPE.WEBVIEW_IN_MINIAPP:(0,c.on)(t,e);break;case o.APP_TYPE.WEEX:(0,f.on)(t,e);break;default:throw new Error("Not support global event in the platfrom: ".concat(n.appType))}},off:function(t,e){var n=(0,i.getENV)();switch(n.appType){case o.APP_TYPE.WEB:case o.APP_TYPE.WEBVIEW_IN_MINIAPP:(0,c.off)(t,e);break;case o.APP_TYPE.WEEX:(0,f.off)(t,e);break;default:throw new Error("Not support global event in the platfrom: ".concat(n.appType))}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isMobile=void 0;var r=n(65),i=(0,r.getENV)();e.isMobile=function(){return i.platform===r.ENV_ENUM.ios}()||function(){return i.platform===r.ENV_ENUM.android}()},function(t,e,n){t.exports=function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var i in t)e.d(r,i,function(e){return t[e]}.bind(null,i));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/dist/",e(e.s=91)}({0:function(t,e,n){"use strict";function r(t,e,n,r,i,o,a,s){var u="function"==typeof t?t.options:t;e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o);var l;if(a?(l=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(t,e){return l.call(e),c(t,e)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,l):[l]}return{exports:t,options:u}}n.d(e,"a",function(){return r})},4:function(t,e){t.exports=n(66)},91:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("label",{staticClass:"el-checkbox",class:[t.border&&t.checkboxSize?"el-checkbox--"+t.checkboxSize:"",{"is-disabled":t.isDisabled},{"is-bordered":t.border},{"is-checked":t.isChecked}],attrs:{id:t.id}},[n("span",{staticClass:"el-checkbox__input",class:{"is-disabled":t.isDisabled,"is-checked":t.isChecked,"is-indeterminate":t.indeterminate,"is-focus":t.focus},attrs:{tabindex:!!t.indeterminate&&0,role:!!t.indeterminate&&"checkbox","aria-checked":!!t.indeterminate&&"mixed"}},[n("span",{staticClass:"el-checkbox__inner"}),t.trueLabel||t.falseLabel?n("input",{directives:[{name:"model",rawName:"v-model",value:t.model,expression:"model"}],staticClass:"el-checkbox__original",attrs:{type:"checkbox","aria-hidden":t.indeterminate?"true":"false",name:t.name,disabled:t.isDisabled,"true-value":t.trueLabel,"false-value":t.falseLabel},domProps:{checked:Array.isArray(t.model)?t._i(t.model,null)>-1:t._q(t.model,t.trueLabel)},on:{change:[function(e){var n=t.model,r=e.target,i=r.checked?t.trueLabel:t.falseLabel;if(Array.isArray(n)){var o=t._i(n,null);r.checked?o<0&&(t.model=n.concat([null])):o>-1&&(t.model=n.slice(0,o).concat(n.slice(o+1)))}else t.model=i},t.handleChange],focus:function(e){t.focus=!0},blur:function(e){t.focus=!1}}}):n("input",{directives:[{name:"model",rawName:"v-model",value:t.model,expression:"model"}],staticClass:"el-checkbox__original",attrs:{type:"checkbox","aria-hidden":t.indeterminate?"true":"false",disabled:t.isDisabled,name:t.name},domProps:{value:t.label,checked:Array.isArray(t.model)?t._i(t.model,t.label)>-1:t.model},on:{change:[function(e){var n=t.model,r=e.target,i=!!r.checked;if(Array.isArray(n)){var o=t.label,a=t._i(n,o);r.checked?a<0&&(t.model=n.concat([o])):a>-1&&(t.model=n.slice(0,a).concat(n.slice(a+1)))}else t.model=i},t.handleChange],focus:function(e){t.focus=!0},blur:function(e){t.focus=!1}}})]),t.$slots.default||t.label?n("span",{staticClass:"el-checkbox__label"},[t._t("default"),t.$slots.default?t._e():[t._v(t._s(t.label))]],2):t._e()])},i=[];r._withStripped=!0;var o=n(4),a=n.n(o),s={name:"ElCheckbox",mixins:[a.a],inject:{elForm:{default:""},elFormItem:{default:""}},componentName:"ElCheckbox",data:function(){return{selfModel:!1,focus:!1,isLimitExceeded:!1}},computed:{model:{get:function(){return this.isGroup?this.store:void 0!==this.value?this.value:this.selfModel},set:function(t){this.isGroup?(this.isLimitExceeded=!1,void 0!==this._checkboxGroup.min&&t.length<this._checkboxGroup.min&&(this.isLimitExceeded=!0),void 0!==this._checkboxGroup.max&&t.length>this._checkboxGroup.max&&(this.isLimitExceeded=!0),!1===this.isLimitExceeded&&this.dispatch("ElCheckboxGroup","input",[t])):(this.$emit("input",t),this.selfModel=t)}},isChecked:function(){return"[object Boolean]"==={}.toString.call(this.model)?this.model:Array.isArray(this.model)?this.model.indexOf(this.label)>-1:null!==this.model&&void 0!==this.model?this.model===this.trueLabel:void 0},isGroup:function(){for(var t=this.$parent;t;){if("ElCheckboxGroup"===t.$options.componentName)return this._checkboxGroup=t,!0;t=t.$parent}return!1},store:function(){return this._checkboxGroup?this._checkboxGroup.value:this.value},isLimitDisabled:function(){var t=this._checkboxGroup,e=t.max,n=t.min;return!(!e&&!n)&&this.model.length>=e&&!this.isChecked||this.model.length<=n&&this.isChecked},isDisabled:function(){return this.isGroup?this._checkboxGroup.disabled||this.disabled||(this.elForm||{}).disabled||this.isLimitDisabled:this.disabled||(this.elForm||{}).disabled},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},checkboxSize:function(){var t=this.size||this._elFormItemSize||(this.$ELEMENT||{}).size;return this.isGroup?this._checkboxGroup.checkboxGroupSize||t:t}},props:{value:{},label:{},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:String,trueLabel:[String,Number],falseLabel:[String,Number],id:String,controls:String,border:Boolean,size:String},methods:{addToStore:function(){Array.isArray(this.model)&&-1===this.model.indexOf(this.label)?this.model.push(this.label):this.model=this.trueLabel||!0},handleChange:function(t){var e=this;if(!this.isLimitExceeded){var n=void 0;n=t.target.checked?void 0===this.trueLabel||this.trueLabel:void 0!==this.falseLabel&&this.falseLabel,this.$emit("change",n,t),this.$nextTick(function(){e.isGroup&&e.dispatch("ElCheckboxGroup","change",[e._checkboxGroup.value])})}}},created:function(){this.checked&&this.addToStore()},mounted:function(){this.indeterminate&&this.$el.setAttribute("aria-controls",this.controls)},watch:{value:function(t){this.dispatch("ElFormItem","el.form.change",t)}}},u=s,l=n(0),c=Object(l.a)(u,r,i,!1,null,null,null);c.options.__file="packages/checkbox/src/checkbox.vue";var f=c.exports;f.install=function(t){t.component(f.name,f)};e.default=f}})},function(t,e,n){"use strict";e.__esModule=!0;n(36);e.default={mounted:function(){return},methods:{getMigratingConfig:function(){return{props:{},events:{}}}}}},function(t,e,n){t.exports=function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var i in t)e.d(r,i,function(e){return t[e]}.bind(null,i));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/dist/",e(e.s=88)}({0:function(t,e,n){"use strict";function r(t,e,n,r,i,o,a,s){var u="function"==typeof t?t.options:t;e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o);var l;if(a?(l=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(t,e){return l.call(e),c(t,e)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,l):[l]}return{exports:t,options:u}}n.d(e,"a",function(){return r})},4:function(t,e){t.exports=n(66)},88:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("label",{staticClass:"el-radio",class:[t.border&&t.radioSize?"el-radio--"+t.radioSize:"",{"is-disabled":t.isDisabled},{"is-focus":t.focus},{"is-bordered":t.border},{"is-checked":t.model===t.label}],attrs:{role:"radio","aria-checked":t.model===t.label,"aria-disabled":t.isDisabled,tabindex:t.tabIndex},on:{keydown:function(e){if(!("button"in e)&&t._k(e.keyCode,"space",32,e.key,[" ","Spacebar"]))return null;e.stopPropagation(),e.preventDefault(),t.model=t.isDisabled?t.model:t.label}}},[n("span",{staticClass:"el-radio__input",class:{"is-disabled":t.isDisabled,"is-checked":t.model===t.label}},[n("span",{staticClass:"el-radio__inner"}),n("input",{directives:[{name:"model",rawName:"v-model",value:t.model,expression:"model"}],ref:"radio",staticClass:"el-radio__original",attrs:{type:"radio","aria-hidden":"true",name:t.name,disabled:t.isDisabled,tabindex:"-1",autocomplete:"off"},domProps:{value:t.label,checked:t._q(t.model,t.label)},on:{focus:function(e){t.focus=!0},blur:function(e){t.focus=!1},change:[function(e){t.model=t.label},t.handleChange]}})]),n("span",{staticClass:"el-radio__label",on:{keydown:function(t){t.stopPropagation()}}},[t._t("default"),t.$slots.default?t._e():[t._v(t._s(t.label))]],2)])},i=[];r._withStripped=!0;var o=n(4),a=n.n(o),s={name:"ElRadio",mixins:[a.a],inject:{elForm:{default:""},elFormItem:{default:""}},componentName:"ElRadio",props:{value:{},label:{},disabled:Boolean,name:String,border:Boolean,size:String},data:function(){return{focus:!1}},computed:{isGroup:function(){for(var t=this.$parent;t;){if("ElRadioGroup"===t.$options.componentName)return this._radioGroup=t,!0;t=t.$parent}return!1},model:{get:function(){return this.isGroup?this._radioGroup.value:this.value},set:function(t){this.isGroup?this.dispatch("ElRadioGroup","input",[t]):this.$emit("input",t),this.$refs.radio&&(this.$refs.radio.checked=this.model===this.label)}},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},radioSize:function(){var t=this.size||this._elFormItemSize||(this.$ELEMENT||{}).size;return this.isGroup?this._radioGroup.radioGroupSize||t:t},isDisabled:function(){return this.isGroup?this._radioGroup.disabled||this.disabled||(this.elForm||{}).disabled:this.disabled||(this.elForm||{}).disabled},tabIndex:function(){return this.isDisabled||this.isGroup&&this.model!==this.label?-1:0}},methods:{handleChange:function(){var t=this;this.$nextTick(function(){t.$emit("change",t.model),t.isGroup&&t.dispatch("ElRadioGroup","handleChange",t.model)})}}},u=s,l=n(0),c=Object(l.a)(u,r,i,!1,null,null,null);c.options.__file="packages/radio/src/radio.vue";var f=c.exports;f.install=function(t){t.component(f.name,f)};e.default=f}})},function(t,e){t.exports=function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var i in t)e.d(r,i,function(e){return t[e]}.bind(null,i));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/dist/",e(e.s=132)}({0:function(t,e,n){"use strict";function r(t,e,n,r,i,o,a,s){var u="function"==typeof t?t.options:t;e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o);var l;if(a?(l=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(t,e){return l.call(e),c(t,e)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,l):[l]}return{exports:t,options:u}}n.d(e,"a",function(){return r})},132:function(t,e,n){"use strict";n.r(e);var r={name:"ElTag",props:{text:String,closable:Boolean,type:String,hit:Boolean,disableTransitions:Boolean,color:String,size:String,effect:{type:String,default:"light",validator:function(t){return-1!==["dark","light","plain"].indexOf(t)}}},methods:{handleClose:function(t){t.stopPropagation(),this.$emit("close",t)},handleClick:function(t){this.$emit("click",t)}},computed:{tagSize:function(){return this.size||(this.$ELEMENT||{}).size}},render:function(t){var e=this.type,n=this.tagSize,r=this.hit,i=this.effect,o=["el-tag",e?"el-tag--"+e:"",n?"el-tag--"+n:"",i?"el-tag--"+i:"",r&&"is-hit"],a=t("span",{class:o,style:{backgroundColor:this.color},on:{click:this.handleClick}},[this.$slots.default,this.closable&&t("i",{class:"el-tag__close el-icon-close",on:{click:this.handleClose}})]);return this.disableTransitions?a:t("transition",{attrs:{name:"el-zoom-in-center"}},[a])}},i=r,o=n(0),a=Object(o.a)(i,void 0,void 0,!1,null,null,null);a.options.__file="packages/tag/src/tag.vue";var s=a.exports;s.install=function(t){t.component(s.name,s)};e.default=s}})},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var i=n(46),o=function(){function t(){r(this,t)}return t.prototype.beforeEnter=function(t){(0,i.addClass)(t,"collapse-transition"),t.dataset||(t.dataset={}),t.dataset.oldPaddingTop=t.style.paddingTop,t.dataset.oldPaddingBottom=t.style.paddingBottom,t.style.height="0",t.style.paddingTop=0,t.style.paddingBottom=0},t.prototype.enter=function(t){t.dataset.oldOverflow=t.style.overflow,0!==t.scrollHeight?(t.style.height=t.scrollHeight+"px",t.style.paddingTop=t.dataset.oldPaddingTop,t.style.paddingBottom=t.dataset.oldPaddingBottom):(t.style.height="",t.style.paddingTop=t.dataset.oldPaddingTop,t.style.paddingBottom=t.dataset.oldPaddingBottom),t.style.overflow="hidden"},t.prototype.afterEnter=function(t){(0,i.removeClass)(t,"collapse-transition"),t.style.height="",t.style.overflow=t.dataset.oldOverflow},t.prototype.beforeLeave=function(t){t.dataset||(t.dataset={}),t.dataset.oldPaddingTop=t.style.paddingTop,t.dataset.oldPaddingBottom=t.style.paddingBottom,t.dataset.oldOverflow=t.style.overflow,t.style.height=t.scrollHeight+"px",t.style.overflow="hidden"},t.prototype.leave=function(t){0!==t.scrollHeight&&((0,i.addClass)(t,"collapse-transition"),t.style.height=0,t.style.paddingTop=0,t.style.paddingBottom=0)},t.prototype.afterLeave=function(t){(0,i.removeClass)(t,"collapse-transition"),t.style.height="",t.style.overflow=t.dataset.oldOverflow,t.style.paddingTop=t.dataset.oldPaddingTop,t.style.paddingBottom=t.dataset.oldPaddingBottom},t}();e.default={name:"ElCollapseTransition",functional:!0,render:function(t,e){var n=e.children;return t("transition",{on:new o},n)}}},function(t,e,n){"use strict";function r(t,e,n){return function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!(n&&n.context&&r.target&&i.target)||t.contains(r.target)||t.contains(i.target)||t===r.target||n.context.popperElm&&(n.context.popperElm.contains(r.target)||n.context.popperElm.contains(i.target))||(e.expression&&t[u].methodName&&n.context[t[u].methodName]?n.context[t[u].methodName]():t[u].bindingFn&&t[u].bindingFn())}}e.__esModule=!0;var i=n(14),o=function(t){return t&&t.__esModule?t:{default:t}}(i),a=n(46),s=[],u="@@clickoutsideContext",l=void 0,c=0;!o.default.prototype.$isServer&&(0,a.on)(document,"mousedown",function(t){return l=t}),!o.default.prototype.$isServer&&(0,a.on)(document,"mouseup",function(t){s.forEach(function(e){return e[u].documentHandler(t,l)})}),e.default={bind:function(t,e,n){s.push(t);var i=c++;t[u]={id:i,documentHandler:r(t,e,n),methodName:e.expression,bindingFn:e.value}},update:function(t,e,n){t[u].documentHandler=r(t,e,n),t[u].methodName=e.expression,t[u].bindingFn=e.value},unbind:function(t){for(var e=s.length,n=0;n<e;n++)if(s[n][u].id===t[u].id){s.splice(n,1);break}delete t[u]}}},function(t,e,n){"use strict";var r;!function(i){function o(t){return t.replace(/[|\\{()[^$+*?.-]/g,"\\$&")}function a(t,e){for(var n=[],r=0,i=t.length;r<i;r++)n.push(t[r].substr(0,e));return n}function s(t){return function(e,n,r){var i=r[t].indexOf(n.charAt(0).toUpperCase()+n.substr(1).toLowerCase());~i&&(e.month=i)}}function u(t,e){for(t=String(t),e=e||2;t.length<e;)t="0"+t;return t}var l={},c=/d{1,4}|M{1,4}|yy(?:yy)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,f="[^\\s]+",d=/\[([^]*?)\]/gm,h=function(){},p=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],g=["January","February","March","April","May","June","July","August","September","October","November","December"],m=a(g,3),v=a(p,3);l.i18n={dayNamesShort:v,dayNames:p,monthNamesShort:m,monthNames:g,amPm:["am","pm"],DoFn:function(t){return t+["th","st","nd","rd"][t%10>3?0:(t-t%10!=10)*t%10]}};var y={D:function(t){return t.getDay()},DD:function(t){return u(t.getDay())},Do:function(t,e){return e.DoFn(t.getDate())},d:function(t){return t.getDate()},dd:function(t){return u(t.getDate())},ddd:function(t,e){return e.dayNamesShort[t.getDay()]},dddd:function(t,e){return e.dayNames[t.getDay()]},M:function(t){return t.getMonth()+1},MM:function(t){return u(t.getMonth()+1)},MMM:function(t,e){return e.monthNamesShort[t.getMonth()]},MMMM:function(t,e){return e.monthNames[t.getMonth()]},yy:function(t){return u(String(t.getFullYear()),4).substr(2)},yyyy:function(t){return u(t.getFullYear(),4)},h:function(t){return t.getHours()%12||12},hh:function(t){return u(t.getHours()%12||12)},H:function(t){return t.getHours()},HH:function(t){return u(t.getHours())},m:function(t){return t.getMinutes()},mm:function(t){return u(t.getMinutes())},s:function(t){return t.getSeconds()},ss:function(t){return u(t.getSeconds())},S:function(t){return Math.round(t.getMilliseconds()/100)},SS:function(t){return u(Math.round(t.getMilliseconds()/10),2)},SSS:function(t){return u(t.getMilliseconds(),3)},a:function(t,e){return t.getHours()<12?e.amPm[0]:e.amPm[1]},A:function(t,e){return t.getHours()<12?e.amPm[0].toUpperCase():e.amPm[1].toUpperCase()},ZZ:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+u(100*Math.floor(Math.abs(e)/60)+Math.abs(e)%60,4)}},b={d:["\\d\\d?",function(t,e){t.day=e}],Do:["\\d\\d?"+f,function(t,e){t.day=parseInt(e,10)}],M:["\\d\\d?",function(t,e){t.month=e-1}],yy:["\\d\\d?",function(t,e){var n=new Date,r=+(""+n.getFullYear()).substr(0,2);t.year=""+(e>68?r-1:r)+e}],h:["\\d\\d?",function(t,e){t.hour=e}],m:["\\d\\d?",function(t,e){t.minute=e}],s:["\\d\\d?",function(t,e){t.second=e}],yyyy:["\\d{4}",function(t,e){t.year=e}],S:["\\d",function(t,e){t.millisecond=100*e}],SS:["\\d{2}",function(t,e){t.millisecond=10*e}],SSS:["\\d{3}",function(t,e){t.millisecond=e}],D:["\\d\\d?",h],ddd:[f,h],MMM:[f,s("monthNamesShort")],MMMM:[f,s("monthNames")],a:[f,function(t,e,n){var r=e.toLowerCase();r===n.amPm[0]?t.isPm=!1:r===n.amPm[1]&&(t.isPm=!0)}],ZZ:["[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z",function(t,e){var n,r=(e+"").match(/([+-]|\d\d)/gi);r&&(n=60*r[1]+parseInt(r[2],10),t.timezoneOffset="+"===r[0]?n:-n)}]};b.dd=b.d,b.dddd=b.ddd,b.DD=b.D,b.mm=b.m,b.hh=b.H=b.HH=b.h,b.MM=b.M,b.ss=b.s,b.A=b.a,l.masks={default:"ddd MMM dd yyyy HH:mm:ss",shortDate:"M/D/yy",mediumDate:"MMM d, yyyy",longDate:"MMMM d, yyyy",fullDate:"dddd, MMMM d, yyyy",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},l.format=function(t,e,n){var r=n||l.i18n;if("number"==typeof t&&(t=new Date(t)),"[object Date]"!==Object.prototype.toString.call(t)||isNaN(t.getTime()))throw new Error("Invalid Date in fecha.format");e=l.masks[e]||e||l.masks.default;var i=[];return e=e.replace(d,function(t,e){return i.push(e),"@@@"}),e=e.replace(c,function(e){return e in y?y[e](t,r):e.slice(1,e.length-1)}),e.replace(/@@@/g,function(){return i.shift()})},l.parse=function(t,e,n){var r=n||l.i18n;if("string"!=typeof e)throw new Error("Invalid format in fecha.parse");if(e=l.masks[e]||e,t.length>1e3)return null;var i={},a=[],s=[];e=e.replace(d,function(t,e){return s.push(e),"@@@"});var u=o(e).replace(c,function(t){if(b[t]){var e=b[t];return a.push(e[1]),"("+e[0]+")"}return t});u=u.replace(/@@@/g,function(){return s.shift()});var f=t.match(new RegExp(u,"i"));if(!f)return null;for(var h=1;h<f.length;h++)a[h-1](i,f[h],r);var p=new Date;!0===i.isPm&&null!=i.hour&&12!=+i.hour?i.hour=+i.hour+12:!1===i.isPm&&12==+i.hour&&(i.hour=0);var g;return null!=i.timezoneOffset?(i.minute=+(i.minute||0)-+i.timezoneOffset,g=new Date(Date.UTC(i.year||p.getFullYear(),i.month||0,i.day||1,i.hour||0,i.minute||0,i.second||0,i.millisecond||0))):g=new Date(i.year||p.getFullYear(),i.month||0,i.day||1,i.hour||0,i.minute||0,i.second||0,i.millisecond||0),g},void 0!==t&&t.exports?t.exports=l:void 0!==(r=function(){return l}.call(e,n,e,t))&&(t.exports=r)}()},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0,e.PopupManager=void 0;var i=n(14),o=r(i),a=n(108),s=r(a),u=n(859),l=r(u),c=n(167),f=r(c),d=n(46),h=1,p=void 0;e.default={props:{visible:{type:Boolean,default:!1},openDelay:{},closeDelay:{},zIndex:{},modal:{type:Boolean,default:!1},modalFade:{type:Boolean,default:!0},modalClass:{},modalAppendToBody:{type:Boolean,default:!1},lockScroll:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!1},closeOnClickModal:{type:Boolean,default:!1}},beforeMount:function(){this._popupId="popup-"+h++,l.default.register(this._popupId,this)},beforeDestroy:function(){l.default.deregister(this._popupId),l.default.closeModal(this._popupId),this.restoreBodyStyle()},data:function(){return{opened:!1,bodyPaddingRight:null,computedBodyPaddingRight:0,withoutHiddenClass:!0,rendered:!1}},watch:{visible:function(t){var e=this;if(t){if(this._opening)return;this.rendered?this.open():(this.rendered=!0,o.default.nextTick(function(){e.open()}))}else this.close()}},methods:{open:function(t){var e=this;this.rendered||(this.rendered=!0);var n=(0,s.default)({},this.$props||this,t);this._closeTimer&&(clearTimeout(this._closeTimer),this._closeTimer=null),clearTimeout(this._openTimer);var r=Number(n.openDelay);r>0?this._openTimer=setTimeout(function(){e._openTimer=null,e.doOpen(n)},r):this.doOpen(n)},doOpen:function(t){if(!this.$isServer&&(!this.willOpen||this.willOpen())&&!this.opened){this._opening=!0;var e=this.$el,n=t.modal,r=t.zIndex;if(r&&(l.default.zIndex=r),n&&(this._closing&&(l.default.closeModal(this._popupId),this._closing=!1),l.default.openModal(this._popupId,l.default.nextZIndex(),this.modalAppendToBody?void 0:e,t.modalClass,t.modalFade),t.lockScroll)){this.withoutHiddenClass=!(0,d.hasClass)(document.body,"el-popup-parent--hidden"),this.withoutHiddenClass&&(this.bodyPaddingRight=document.body.style.paddingRight,this.computedBodyPaddingRight=parseInt((0,d.getStyle)(document.body,"paddingRight"),10)),p=(0,f.default)();var i=document.documentElement.clientHeight<document.body.scrollHeight,o=(0,d.getStyle)(document.body,"overflowY");p>0&&(i||"scroll"===o)&&this.withoutHiddenClass&&(document.body.style.paddingRight=this.computedBodyPaddingRight+p+"px"),(0,d.addClass)(document.body,"el-popup-parent--hidden")}"static"===getComputedStyle(e).position&&(e.style.position="absolute"),e.style.zIndex=l.default.nextZIndex(),this.opened=!0,this.onOpen&&this.onOpen(),this.doAfterOpen()}},doAfterOpen:function(){this._opening=!1},close:function(){var t=this;if(!this.willClose||this.willClose()){null!==this._openTimer&&(clearTimeout(this._openTimer),this._openTimer=null),clearTimeout(this._closeTimer);var e=Number(this.closeDelay);e>0?this._closeTimer=setTimeout(function(){t._closeTimer=null,t.doClose()},e):this.doClose()}},doClose:function(){this._closing=!0,this.onClose&&this.onClose(),this.lockScroll&&setTimeout(this.restoreBodyStyle,200),this.opened=!1,this.doAfterClose()},doAfterClose:function(){l.default.closeModal(this._popupId),this._closing=!1},restoreBodyStyle:function(){this.modal&&this.withoutHiddenClass&&(document.body.style.paddingRight=this.bodyPaddingRight,(0,d.removeClass)(document.body,"el-popup-parent--hidden")),this.withoutHiddenClass=!0}}},e.PopupManager=l.default},function(t,e,n){"use strict";function r(t){return"[object String]"===Object.prototype.toString.call(t)}function i(t){return"[object Object]"===Object.prototype.toString.call(t)}function o(t){return t&&t.nodeType===Node.ELEMENT_NODE}e.__esModule=!0,e.isDefined=e.isUndefined=e.isFunction=void 0;var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.isString=r,e.isObject=i,e.isHtmlElement=o;var s=n(14),u=function(t){return t&&t.__esModule?t:{default:t}}(s),l=function(t){var e={};return t&&"[object Function]"===e.toString.call(t)};"function"==typeof/./||"object"===("undefined"==typeof Int8Array?"undefined":a(Int8Array))||!u.default.prototype.$isServer&&"function"==typeof document.childNodes||(e.isFunction=l=function(t){return"function"==typeof t||!1}),e.isFunction=l;e.isUndefined=function(t){return void 0===t},e.isDefined=function(t){return void 0!==t&&null!==t}},function(t,e,n){"use strict";var r=n(67),i=r("%Object.getOwnPropertyDescriptor%",!0);if(i)try{i([],"length")}catch(t){i=null}t.exports=i},function(t,e,n){"use strict";var r=n(67),i=r("%Object.defineProperty%",!0),o=function(){if(i)try{return i({},"a",{value:1}),!0}catch(t){return!1}return!1};o.hasArrayLengthDefineBug=function(){if(!o())return null;try{return 1!==i([],"length",{value:1}).length}catch(t){return!0}},t.exports=o},function(module,exports,__webpack_require__){(function(Buffer,process,global){!function(t,e){module.exports=e()}(0,function(){return function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var i in t)e.d(r,i,function(e){return t[e]}.bind(null,i));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=0)}([function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addLinkAttributes",{enumerable:!0,get:function(){return r.addLinkAttributes}}),Object.defineProperty(e,"getFilenameFromUrl",{enumerable:!0,get:function(){return r.getFilenameFromUrl}}),Object.defineProperty(e,"LinkTarget",{enumerable:!0,get:function(){return r.LinkTarget}}),Object.defineProperty(e,"loadScript",{enumerable:!0,get:function(){return r.loadScript}}),Object.defineProperty(e,"PDFDateString",{enumerable:!0,get:function(){return r.PDFDateString}}),Object.defineProperty(e,"RenderingCancelledException",{enumerable:!0,get:function(){return r.RenderingCancelledException}}),Object.defineProperty(e,"build",{enumerable:!0,get:function(){return i.build}}),Object.defineProperty(e,"getDocument",{enumerable:!0,get:function(){return i.getDocument}}),Object.defineProperty(e,"LoopbackPort",{enumerable:!0,get:function(){return i.LoopbackPort}}),Object.defineProperty(e,"PDFDataRangeTransport",{enumerable:!0,get:function(){return i.PDFDataRangeTransport}}),Object.defineProperty(e,"PDFWorker",{enumerable:!0,get:function(){return i.PDFWorker}}),Object.defineProperty(e,"version",{enumerable:!0,get:function(){return i.version}}),Object.defineProperty(e,"CMapCompressionType",{enumerable:!0,get:function(){return o.CMapCompressionType}}),Object.defineProperty(e,"createObjectURL",{enumerable:!0,get:function(){return o.createObjectURL}}),Object.defineProperty(e,"createPromiseCapability",{enumerable:!0,get:function(){return o.createPromiseCapability}}),Object.defineProperty(e,"createValidAbsoluteUrl",{enumerable:!0,get:function(){return o.createValidAbsoluteUrl}}),Object.defineProperty(e,"InvalidPDFException",{enumerable:!0,get:function(){return o.InvalidPDFException}}),Object.defineProperty(e,"MissingPDFException",{enumerable:!0,get:function(){return o.MissingPDFException}}),Object.defineProperty(e,"OPS",{enumerable:!0,get:function(){return o.OPS}}),Object.defineProperty(e,"PasswordResponses",{enumerable:!0,get:function(){return o.PasswordResponses}}),Object.defineProperty(e,"PermissionFlag",{enumerable:!0,get:function(){return o.PermissionFlag}}),Object.defineProperty(e,"removeNullCharacters",{enumerable:!0,get:function(){return o.removeNullCharacters}}),Object.defineProperty(e,"shadow",{enumerable:!0,get:function(){return o.shadow}}),Object.defineProperty(e,"UnexpectedResponseException",{enumerable:!0,get:function(){return o.UnexpectedResponseException}}),Object.defineProperty(e,"UNSUPPORTED_FEATURES",{enumerable:!0,get:function(){return o.UNSUPPORTED_FEATURES}}),Object.defineProperty(e,"Util",{enumerable:!0,get:function(){return o.Util}}),Object.defineProperty(e,"VerbosityLevel",{enumerable:!0,get:function(){return o.VerbosityLevel}}),Object.defineProperty(e,"AnnotationLayer",{enumerable:!0,get:function(){return a.AnnotationLayer}}),Object.defineProperty(e,"apiCompatibilityParams",{enumerable:!0,get:function(){return s.apiCompatibilityParams}}),Object.defineProperty(e,"GlobalWorkerOptions",{enumerable:!0,get:function(){return u.GlobalWorkerOptions}}),Object.defineProperty(e,"renderTextLayer",{enumerable:!0,get:function(){return l.renderTextLayer}}),Object.defineProperty(e,"SVGGraphics",{enumerable:!0,get:function(){return c.SVGGraphics}});var r=n(1),i=n(202),o=n(5),a=n(216),s=n(206),u=n(209),l=n(217),c=n(218);if(n(7).isNodeJS){var f=n(219).PDFNodeStream;(0,i.setPDFNetworkStreamFactory)(function(t){return new f(t)})}else{var d,h=n(222).PDFNetworkStream;(0,r.isFetchSupported)()&&(d=n(223).PDFFetchStream),(0,i.setPDFNetworkStreamFactory)(function(t){return d&&(0,r.isValidFetchUrl)(t.url)?new d(t):new h(t)})}},function(t,e,n){"use strict";function r(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=i(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}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 a,s=!0,u=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}function i(t,e){if(t){if("string"==typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(t,e):void 0}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function a(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}function s(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){function o(t){a(u,r,i,o,s,"next",t)}function s(t){a(u,r,i,o,s,"throw",t)}var u=t.apply(e,n);o(void 0)})}}function u(t){"@babel/helpers - typeof";return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function f(t){var e=p();return function(){var n,r=g(t);if(e){var i=g(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return d(this,n)}}function d(t,e){return!e||"object"!==u(e)&&"function"!=typeof e?h(t):e}function h(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function p(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}function g(t){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function m(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function v(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function y(t,e,n){return e&&v(t.prototype,e),n&&v(t,n),t}function b(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.url,r=e.target,i=e.rel,o=e.enabled,a=void 0===o||o;(0,E.assert)(n&&"string"==typeof n,'addLinkAttributes: A valid "url" parameter must provided.');var s=(0,E.removeNullCharacters)(n);a?t.href=t.title=s:(t.href="",t.title="Disabled: ".concat(s),t.onclick=function(){return!1});var u="";switch(r){case $.NONE:break;case $.SELF:u="_self";break;case $.BLANK:u="_blank";break;case $.PARENT:u="_parent";break;case $.TOP:u="_top"}t.target=u,t.rel="string"==typeof i?i:T}function _(t){var e=t.indexOf("#"),n=t.indexOf("?"),r=Math.min(e>0?e:t.length,n>0?n:t.length);return t.substring(t.lastIndexOf("/",r)+1,r)}function w(){return"undefined"!=typeof fetch&&"undefined"!=typeof Response&&"body"in Response.prototype&&"undefined"!=typeof ReadableStream}function x(t,e){try{var n=e?new URL(t,e):new URL(t),r=n.protocol;return"http:"===r||"https:"===r}catch(t){return!1}}function k(t){return new Promise(function(e,n){var r=document.createElement("script");r.src=t,r.onload=e,r.onerror=function(){n(new Error("Cannot load script at: ".concat(r.src)))},(document.head||document.documentElement).appendChild(r)})}function S(t){console.log("Deprecated API usage: "+t)}Object.defineProperty(e,"__esModule",{value:!0}),e.addLinkAttributes=b,e.getFilenameFromUrl=_,e.isFetchSupported=w,e.isValidFetchUrl=x,e.loadScript=k,e.deprecated=S,e.PDFDateString=e.StatTimer=e.DOMSVGFactory=e.DOMCMapReaderFactory=e.BaseCMapReaderFactory=e.DOMCanvasFactory=e.BaseCanvasFactory=e.DEFAULT_LINK_REL=e.LinkTarget=e.RenderingCancelledException=e.PageViewport=void 0;var C=function(t){return t&&t.__esModule?t:{default:t}}(n(2)),E=n(5),T="noopener noreferrer nofollow";e.DEFAULT_LINK_REL=T;var A="http://www.w3.org/2000/svg",O=function(){function t(){m(this,t),this.constructor===t&&(0,E.unreachable)("Cannot initialize BaseCanvasFactory.")}return y(t,[{key:"create",value:function(t,e){(0,E.unreachable)("Abstract method `create` called.")}},{key:"reset",value:function(t,e,n){if(!t.canvas)throw new Error("Canvas is not specified");if(e<=0||n<=0)throw new Error("Invalid canvas size");t.canvas.width=e,t.canvas.height=n}},{key:"destroy",value:function(t){if(!t.canvas)throw new Error("Canvas is not specified");t.canvas.width=0,t.canvas.height=0,t.canvas=null,t.context=null}}]),t}();e.BaseCanvasFactory=O;var P=function(t){function e(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=r.ownerDocument,o=void 0===i?globalThis.document:i;return m(this,e),t=n.call(this),t._document=o,t}l(e,t);var n=f(e);return y(e,[{key:"create",value:function(t,e){if(t<=0||e<=0)throw new Error("Invalid canvas size");var n=this._document.createElement("canvas"),r=n.getContext("2d");return n.width=t,n.height=e,{canvas:n,context:r}}}]),e}(O);e.DOMCanvasFactory=P;var N=function(){function t(e){var n=e.baseUrl,r=void 0===n?null:n,i=e.isCompressed,o=void 0!==i&&i;m(this,t),this.constructor===t&&(0,E.unreachable)("Cannot initialize BaseCMapReaderFactory."),this.baseUrl=r,this.isCompressed=o}return y(t,[{key:"fetch",value:function(){function t(t){return e.apply(this,arguments)}var e=s(C.default.mark(function t(e){var n,r,i,o=this;return C.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.name,this.baseUrl){t.next=3;break}throw new Error('The CMap "baseUrl" parameter must be specified, ensure that the "cMapUrl" and "cMapPacked" API parameters are provided.');case 3:if(n){t.next=5;break}throw new Error("CMap name must be specified.");case 5:return r=this.baseUrl+n+(this.isCompressed?".bcmap":""),i=this.isCompressed?E.CMapCompressionType.BINARY:E.CMapCompressionType.NONE,t.abrupt("return",this._fetchData(r,i).catch(function(t){throw new Error("Unable to load ".concat(o.isCompressed?"binary ":"","CMap at: ").concat(r))}));case 8:case"end":return t.stop()}},t,this)}));return t}()},{key:"_fetchData",value:function(t,e){(0,E.unreachable)("Abstract method `_fetchData` called.")}}]),t}();e.BaseCMapReaderFactory=N;var D=function(t){function e(){return m(this,e),n.apply(this,arguments)}l(e,t);var n=f(e);return y(e,[{key:"_fetchData",value:function(t,e){var n=this;return w()&&x(t,document.baseURI)?fetch(t).then(function(){var t=s(C.default.mark(function t(r){var i;return C.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(r.ok){t.next=2;break}throw new Error(r.statusText);case 2:if(!n.isCompressed){t.next=10;break}return t.t0=Uint8Array,t.next=6,r.arrayBuffer();case 6:t.t1=t.sent,i=new t.t0(t.t1),t.next=15;break;case 10:return t.t2=E.stringToBytes,t.next=13,r.text();case 13:t.t3=t.sent,i=(0,t.t2)(t.t3);case 15:return t.abrupt("return",{cMapData:i,compressionType:e});case 16:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}()):new Promise(function(r,i){var o=new XMLHttpRequest;o.open("GET",t,!0),n.isCompressed&&(o.responseType="arraybuffer"),o.onreadystatechange=function(){if(o.readyState===XMLHttpRequest.DONE){if(200===o.status||0===o.status){var t;if(n.isCompressed&&o.response?t=new Uint8Array(o.response):!n.isCompressed&&o.responseText&&(t=(0,E.stringToBytes)(o.responseText)),t)return void r({cMapData:t,compressionType:e})}i(new Error(o.statusText))}},o.send(null)})}}]),e}(N);e.DOMCMapReaderFactory=D;var M=function(){function t(){m(this,t)}return y(t,[{key:"create",value:function(t,e){(0,E.assert)(t>0&&e>0,"Invalid SVG dimensions");var n=document.createElementNS(A,"svg:svg");return n.setAttribute("version","1.1"),n.setAttribute("width",t+"px"),n.setAttribute("height",e+"px"),n.setAttribute("preserveAspectRatio","none"),n.setAttribute("viewBox","0 0 "+t+" "+e),n}},{key:"createElement",value:function(t){return(0,E.assert)("string"==typeof t,"Invalid SVG element type"),document.createElementNS(A,t)}}]),t}();e.DOMSVGFactory=M;var I=function(){function t(e){var n=e.viewBox,r=e.scale,i=e.rotation,o=e.offsetX,a=void 0===o?0:o,s=e.offsetY,u=void 0===s?0:s,l=e.dontFlip,c=void 0!==l&&l;m(this,t),this.viewBox=n,this.scale=r,this.rotation=i,this.offsetX=a,this.offsetY=u;var f,d,h,p,g=(n[2]+n[0])/2,v=(n[3]+n[1])/2;switch(i%=360,i=i<0?i+360:i){case 180:f=-1,d=0,h=0,p=1;break;case 90:f=0,d=1,h=1,p=0;break;case 270:f=0,d=-1,h=-1,p=0;break;case 0:f=1,d=0,h=0,p=-1;break;default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}c&&(h=-h,p=-p);var y,b,_,w;0===f?(y=Math.abs(v-n[1])*r+a,b=Math.abs(g-n[0])*r+u,_=Math.abs(n[3]-n[1])*r,w=Math.abs(n[2]-n[0])*r):(y=Math.abs(g-n[0])*r+a,b=Math.abs(v-n[1])*r+u,_=Math.abs(n[2]-n[0])*r,w=Math.abs(n[3]-n[1])*r),this.transform=[f*r,d*r,h*r,p*r,y-f*r*g-h*r*v,b-d*r*g-p*r*v],this.width=_,this.height=w}return y(t,[{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.scale,r=void 0===n?this.scale:n,i=e.rotation,o=void 0===i?this.rotation:i,a=e.offsetX,s=void 0===a?this.offsetX:a,u=e.offsetY,l=void 0===u?this.offsetY:u,c=e.dontFlip,f=void 0!==c&&c;return new t({viewBox:this.viewBox.slice(),scale:r,rotation:o,offsetX:s,offsetY:l,dontFlip:f})}},{key:"convertToViewportPoint",value:function(t,e){return E.Util.applyTransform([t,e],this.transform)}},{key:"convertToViewportRectangle",value:function(t){var e=E.Util.applyTransform([t[0],t[1]],this.transform),n=E.Util.applyTransform([t[2],t[3]],this.transform);return[e[0],e[1],n[0],n[1]]}},{key:"convertToPdfPoint",value:function(t,e){return E.Util.applyInverseTransform([t,e],this.transform)}}]),t}();e.PageViewport=I;var R=function(t){function e(t,r){var i;return m(this,e),i=n.call(this,t),i.type=r,i}l(e,t);var n=f(e);return e}(E.BaseException);e.RenderingCancelledException=R;var $={NONE:0,SELF:1,BLANK:2,PARENT:3,TOP:4};e.LinkTarget=$;var L=function(){function t(){m(this,t),this.started=Object.create(null),this.times=[]}return y(t,[{key:"time",value:function(t){t in this.started&&(0,E.warn)("Timer is already running for ".concat(t)),this.started[t]=Date.now()}},{key:"timeEnd",value:function(t){t in this.started||(0,E.warn)("Timer has not been started for ".concat(t)),this.times.push({name:t,start:this.started[t],end:Date.now()}),delete this.started[t]}},{key:"toString",value:function(){var t,e=[],n=0,i=r(this.times);try{for(i.s();!(t=i.n()).done;){var o=t.value,a=o.name;a.length>n&&(n=a.length)}}catch(t){i.e(t)}finally{i.f()}var s,u=r(this.times);try{for(u.s();!(s=u.n()).done;){var l=s.value,c=l.end-l.start;e.push("".concat(l.name.padEnd(n)," ").concat(c,"ms\n"))}}catch(t){u.e(t)}finally{u.f()}return e.join("")}}]),t}();e.StatTimer=L;var j,F=function(){function t(){m(this,t)}return y(t,null,[{key:"toDateObject",value:function(t){if(!t||!(0,E.isString)(t))return null;j||(j=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?"));var e=j.exec(t);if(!e)return null;var n=parseInt(e[1],10),r=parseInt(e[2],10);r=r>=1&&r<=12?r-1:0;var i=parseInt(e[3],10);i=i>=1&&i<=31?i:1;var o=parseInt(e[4],10);o=o>=0&&o<=23?o:0;var a=parseInt(e[5],10);a=a>=0&&a<=59?a:0;var s=parseInt(e[6],10);s=s>=0&&s<=59?s:0;var u=e[7]||"Z",l=parseInt(e[8],10);l=l>=0&&l<=23?l:0;var c=parseInt(e[9],10)||0;return c=c>=0&&c<=59?c:0,"-"===u?(o+=l,a+=c):"+"===u&&(o-=l,a-=c),new Date(Date.UTC(n,r,i,o,a,s))}}]),t}();e.PDFDateString=F},function(t,e,n){"use strict";t.exports=n(3)},function(t,e,n){"use strict";(function(t){function e(t){"@babel/helpers - typeof";return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var n=function(t){function n(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}function r(t,e,n,r){var i=e&&e.prototype instanceof o?e:o,a=Object.create(i.prototype),s=new p(r||[]);return a._invoke=c(t,n,s),a}function i(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}function o(){}function a(){}function s(){}function u(t){["next","throw","return"].forEach(function(e){n(t,e,function(t){return this._invoke(e,t)})})}function l(t,n){function r(o,a,s,u){var l=i(t[o],t,a);if("throw"!==l.type){var c=l.arg,f=c.value;return f&&"object"===e(f)&&b.call(f,"__await")?n.resolve(f.__await).then(function(t){r("next",t,s,u)},function(t){r("throw",t,s,u)}):n.resolve(f).then(function(t){c.value=t,s(c)},function(t){return r("throw",t,s,u)})}u(l.arg)}function o(t,e){function i(){return new n(function(n,i){r(t,e,n,i)})}return a=a?a.then(i,i):i()}var a;this._invoke=o}function c(t,e,n){var r=S;return function(o,a){if(r===E)throw new Error("Generator is already running");if(r===T){if("throw"===o)throw a;return m()}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var u=f(s,n);if(u){if(u===A)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===S)throw r=T,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=E;var l=i(t,e,n);if("normal"===l.type){if(r=n.done?T:C,l.arg===A)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r=T,n.method="throw",n.arg=l.arg)}}}function f(t,e){var n=t.iterator[e.method];if(n===v){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=v,f(t,e),"throw"===e.method))return A;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return A}var r=i(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,A;var o=r.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=v),e.delegate=null,A):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,A)}function d(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function h(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function p(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(d,this),this.reset(!0)}function g(t){if(t){var e=t[w];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function e(){for(;++n<t.length;)if(b.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=v,e.done=!0,e};return r.next=r}}return{next:m}}function m(){return{value:v,done:!0}}var v,y=Object.prototype,b=y.hasOwnProperty,_="function"==typeof Symbol?Symbol:{},w=_.iterator||"@@iterator",x=_.asyncIterator||"@@asyncIterator",k=_.toStringTag||"@@toStringTag";try{n({},"")}catch(t){n=function(t,e,n){return t[e]=n}}t.wrap=r;var S="suspendedStart",C="suspendedYield",E="executing",T="completed",A={},O={};O[w]=function(){return this};var P=Object.getPrototypeOf,N=P&&P(P(g([])));N&&N!==y&&b.call(N,w)&&(O=N);var D=s.prototype=o.prototype=Object.create(O);return a.prototype=D.constructor=s,s.constructor=a,a.displayName=n(s,k,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===a||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,n(t,k,"GeneratorFunction")),t.prototype=Object.create(D),t},t.awrap=function(t){return{__await:t}},u(l.prototype),l.prototype[x]=function(){return this},t.AsyncIterator=l,t.async=function(e,n,i,o,a){void 0===a&&(a=Promise);var s=new l(r(e,n,i,o),a);return t.isGeneratorFunction(n)?s:s.next().then(function(t){return t.done?t.value:s.next()})},u(D),n(D,k,"Generator"),D[w]=function(){return this},D.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=g,p.prototype={constructor:p,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=v,this.done=!1,this.delegate=null,this.method="next",this.arg=v,this.tryEntries.forEach(h),!t)for(var e in this)"t"===e.charAt(0)&&b.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=v)},stop:function(){this.done=!0;var t=this.tryEntries[0],e=t.completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){function e(e,r){return o.type="throw",o.arg=t,n.next=e,r&&(n.method="next",n.arg=v),!!r}if(this.done)throw t;for(var n=this,r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],o=i.completion;if("root"===i.tryLoc)return e("end");if(i.tryLoc<=this.prev){var a=b.call(i,"catchLoc"),s=b.call(i,"finallyLoc");if(a&&s){if(this.prev<i.catchLoc)return e(i.catchLoc,!0);if(this.prev<i.finallyLoc)return e(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return e(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return e(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&b.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=t,o.arg=e,i?(this.method="next",this.next=i.finallyLoc,A):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),A},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),h(n),A}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;h(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:g(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=v),A}},t}("object"===e(t)?t.exports:{});try{regeneratorRuntime=n}catch(t){Function("r","regeneratorRuntime = r")(n)}}).call(this,n(4)(t))},function(t,e,n){"use strict";t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function i(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t}function o(t){"@babel/helpers - typeof";return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&u(t,e)}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function l(t){var e=d();return function(){var n,r=h(t);if(e){var i=h(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return c(this,n)}}function c(t,e){return!e||"object"!==o(e)&&"function"!=typeof e?f(t):e}function f(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function d(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}function h(t){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function p(t){Number.isInteger(t)&&(lt=t)}function g(){return lt}function m(t){lt>=it.INFOS&&console.log("Info: ".concat(t))}function v(t){lt>=it.WARNINGS&&console.log("Warning: ".concat(t))}function y(t){throw new Error(t)}function b(t,e){t||y(e)}function _(t,e){var n;try{if(n=new URL(t),!n.origin||"null"===n.origin)return!1}catch(t){return!1}var r=new URL(e,n);return n.origin===r.origin}function w(t){if(!t)return!1;switch(t.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}function x(t,e){if(!t)return null;try{var n=e?new URL(t,e):new URL(t);if(w(n))return n}catch(t){}return null}function k(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!1}),n}function S(t){return"string"!=typeof t?(v("The argument for removeNullCharacters must be a string."),t):t.replace(yt,"")}function C(t){b(null!==t&&"object"===o(t)&&void 0!==t.length,"Invalid argument for bytesToString");var e=t.length;if(e<8192)return String.fromCharCode.apply(null,t);for(var n=[],r=0;r<e;r+=8192){var i=Math.min(r+8192,e),a=t.subarray(r,i);n.push(String.fromCharCode.apply(null,a))}return n.join("")}function E(t){b("string"==typeof t,"Invalid argument for stringToBytes");for(var e=t.length,n=new Uint8Array(e),r=0;r<e;++r)n[r]=255&t.charCodeAt(r);return n}function T(t){return void 0!==t.length?t.length:(b(void 0!==t.byteLength,"arrayByteLength - invalid argument."),t.byteLength)}function A(t){var e=t.length;if(1===e&&t[0]instanceof Uint8Array)return t[0];for(var n=0,r=0;r<e;r++)n+=T(t[r]);for(var i=0,o=new Uint8Array(n),a=0;a<e;a++){var s=t[a];s instanceof Uint8Array||(s="string"==typeof s?E(s):new Uint8Array(s));var u=s.byteLength;o.set(s,i),i+=u}return o}function O(t){return String.fromCharCode(t>>24&255,t>>16&255,t>>8&255,255&t)}function P(){var t=new Uint8Array(4);return t[0]=1,1===new Uint32Array(t.buffer,0,1)[0]}function N(){try{return new Function(""),!0}catch(t){return!1}}function D(t){var e=t.length,n=[];if("þ"===t[0]&&"ÿ"===t[1])for(var r=2;r<e;r+=2)n.push(String.fromCharCode(t.charCodeAt(r)<<8|t.charCodeAt(r+1)));else if("ÿ"===t[0]&&"þ"===t[1])for(var i=2;i<e;i+=2)n.push(String.fromCharCode(t.charCodeAt(i+1)<<8|t.charCodeAt(i)));else for(var o=0;o<e;++o){var a=kt[t.charCodeAt(o)];n.push(a?String.fromCharCode(a):t.charAt(o))}return n.join("")}function M(t){return t.replace(/([\(\)\\])/g,"\\$1")}function I(t){return decodeURIComponent(escape(t))}function R(t){return unescape(encodeURIComponent(t))}function $(t){return"boolean"==typeof t}function L(t){return"number"==typeof t}function j(t){return"string"==typeof t}function F(t){return"object"===o(t)&&null!==t&&void 0!==t.byteLength}function B(t,e){return t.length===e.length&&t.every(function(t,n){return t===e[n]})}function V(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date(Date.now());return[t.getUTCFullYear().toString(),(t.getUTCMonth()+1).toString().padStart(2,"0"),(t.getUTCDate()+1).toString().padStart(2,"0"),t.getUTCHours().toString().padStart(2,"0"),t.getUTCMinutes().toString().padStart(2,"0"),t.getUTCSeconds().toString().padStart(2,"0")].join("")}function z(){var t=Object.create(null),e=!1;return Object.defineProperty(t,"settled",{get:function(){return e}}),t.promise=new Promise(function(n,r){t.resolve=function(t){e=!0,n(t)},t.reject=function(t){e=!0,r(t)}}),t}Object.defineProperty(e,"__esModule",{value:!0}),e.arrayByteLength=T,e.arraysToBytes=A,e.assert=b,e.bytesToString=C,e.createPromiseCapability=z,e.escapeString=M,e.getModificationDate=V,e.getVerbosityLevel=g,e.info=m,e.isArrayBuffer=F,e.isArrayEqual=B,e.isBool=$,e.isNum=L,e.isString=j,e.isSameOrigin=_,e.createValidAbsoluteUrl=x,e.removeNullCharacters=S,e.setVerbosityLevel=p,e.shadow=k,e.string32=O,e.stringToBytes=E,e.stringToPDFString=D,e.stringToUTF8String=I,e.utf8StringToString=R,e.warn=v,e.unreachable=y,e.IsEvalSupportedCached=e.IsLittleEndianCached=e.createObjectURL=e.FormatError=e.Util=e.UnknownErrorException=e.UnexpectedResponseException=e.TextRenderingMode=e.StreamType=e.PermissionFlag=e.PasswordResponses=e.PasswordException=e.MissingPDFException=e.InvalidPDFException=e.AbortException=e.CMapCompressionType=e.ImageKind=e.FontType=e.AnnotationType=e.AnnotationStateModelType=e.AnnotationReviewState=e.AnnotationReplyType=e.AnnotationMarkedState=e.AnnotationFlag=e.AnnotationFieldFlag=e.AnnotationBorderStyleType=e.UNSUPPORTED_FEATURES=e.VerbosityLevel=e.OPS=e.IDENTITY_MATRIX=e.FONT_IDENTITY_MATRIX=e.BaseException=void 0,n(6);var U=[1,0,0,1,0,0];e.IDENTITY_MATRIX=U;var H=[.001,0,0,.001,0,0];e.FONT_IDENTITY_MATRIX=H;var q={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048};e.PermissionFlag=q;var W={FILL:0,STROKE:1,FILL_STROKE:2,INVISIBLE:3,FILL_ADD_TO_PATH:4,STROKE_ADD_TO_PATH:5,FILL_STROKE_ADD_TO_PATH:6,ADD_TO_PATH:7,FILL_STROKE_MASK:3,ADD_TO_PATH_FLAG:4};e.TextRenderingMode=W;var G={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3};e.ImageKind=G;var Y={TEXT:1,LINK:2,FREETEXT:3,LINE:4,SQUARE:5,CIRCLE:6,POLYGON:7,POLYLINE:8,HIGHLIGHT:9,UNDERLINE:10,SQUIGGLY:11,STRIKEOUT:12,STAMP:13,CARET:14,INK:15,POPUP:16,FILEATTACHMENT:17,SOUND:18,MOVIE:19,WIDGET:20,SCREEN:21,PRINTERMARK:22,TRAPNET:23,WATERMARK:24,THREED:25,REDACT:26};e.AnnotationType=Y;var K={MARKED:"Marked",REVIEW:"Review"};e.AnnotationStateModelType=K;var X={MARKED:"Marked",UNMARKED:"Unmarked"};e.AnnotationMarkedState=X;var J={ACCEPTED:"Accepted",REJECTED:"Rejected",CANCELLED:"Cancelled",COMPLETED:"Completed",NONE:"None"};e.AnnotationReviewState=J;var Q={GROUP:"Group",REPLY:"R"};e.AnnotationReplyType=Q;var Z={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512};e.AnnotationFlag=Z;var tt={READONLY:1,REQUIRED:2,NOEXPORT:4,MULTILINE:4096,PASSWORD:8192,NOTOGGLETOOFF:16384,RADIO:32768,PUSHBUTTON:65536,COMBO:131072,EDIT:262144,SORT:524288,FILESELECT:1048576,MULTISELECT:2097152,DONOTSPELLCHECK:4194304,DONOTSCROLL:8388608,COMB:16777216,RICHTEXT:33554432,RADIOSINUNISON:33554432,COMMITONSELCHANGE:67108864};e.AnnotationFieldFlag=tt;var et={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5};e.AnnotationBorderStyleType=et;var nt={UNKNOWN:"UNKNOWN",FLATE:"FLATE",LZW:"LZW",DCT:"DCT",JPX:"JPX",JBIG:"JBIG",A85:"A85",AHX:"AHX",CCF:"CCF",RLX:"RLX"};e.StreamType=nt;var rt={UNKNOWN:"UNKNOWN",TYPE1:"TYPE1",TYPE1C:"TYPE1C",CIDFONTTYPE0:"CIDFONTTYPE0",CIDFONTTYPE0C:"CIDFONTTYPE0C",TRUETYPE:"TRUETYPE",CIDFONTTYPE2:"CIDFONTTYPE2",TYPE3:"TYPE3",OPENTYPE:"OPENTYPE",TYPE0:"TYPE0",MMTYPE1:"MMTYPE1"};e.FontType=rt;var it={ERRORS:0,WARNINGS:1,INFOS:5};e.VerbosityLevel=it;var ot={NONE:0,BINARY:1,STREAM:2};e.CMapCompressionType=ot;var at={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotations:78,endAnnotations:79,beginAnnotation:80,endAnnotation:81,paintJpegXObject:82,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91};e.OPS=at;var st={unknown:"unknown",forms:"forms",javaScript:"javaScript",smask:"smask",shadingPattern:"shadingPattern",font:"font",errorTilingPattern:"errorTilingPattern",errorExtGState:"errorExtGState",errorXObject:"errorXObject",errorFontLoadType3:"errorFontLoadType3",errorFontState:"errorFontState",errorFontMissing:"errorFontMissing",errorFontTranslate:"errorFontTranslate",errorColorSpace:"errorColorSpace",errorOperatorList:"errorOperatorList",errorFontToUnicode:"errorFontToUnicode",errorFontLoadNative:"errorFontLoadNative",errorFontGetPath:"errorFontGetPath",errorMarkedContent:"errorMarkedContent"};e.UNSUPPORTED_FEATURES=st;var ut={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};e.PasswordResponses=ut;var lt=it.WARNINGS,ct=function(){function t(e){this.constructor===t&&y("Cannot initialize BaseException."),this.message=e,this.name=this.constructor.name}return t.prototype=new Error,t.constructor=t,t}();e.BaseException=ct;var ft=function(t){function e(t,r){var i;return a(this,e),i=n.call(this,t),i.code=r,i}s(e,t);var n=l(e);return e}(ct);e.PasswordException=ft;var dt=function(t){function e(t,r){var i;return a(this,e),i=n.call(this,t),i.details=r,i}s(e,t);var n=l(e);return e}(ct);e.UnknownErrorException=dt;var ht=function(t){function e(){return a(this,e),n.apply(this,arguments)}s(e,t);var n=l(e);return e}(ct);e.InvalidPDFException=ht;var pt=function(t){function e(){return a(this,e),n.apply(this,arguments)}s(e,t);var n=l(e);return e}(ct);e.MissingPDFException=pt;var gt=function(t){function e(t,r){var i;return a(this,e),i=n.call(this,t),i.status=r,i}s(e,t);var n=l(e);return e}(ct);e.UnexpectedResponseException=gt;var mt=function(t){function e(){return a(this,e),n.apply(this,arguments)}s(e,t);var n=l(e);return e}(ct);e.FormatError=mt;var vt=function(t){function e(){return a(this,e),n.apply(this,arguments)}s(e,t);var n=l(e);return e}(ct);e.AbortException=vt;var yt=/\x00/g,bt={get value(){return k(this,"value",P())}};e.IsLittleEndianCached=bt;var _t={get value(){return k(this,"value",N())}};e.IsEvalSupportedCached=_t;var wt=["rgb(",0,",",0,",",0,")"],xt=function(){function t(){a(this,t)}return i(t,null,[{key:"makeCssRgb",value:function(t,e,n){return wt[1]=t,wt[3]=e,wt[5]=n,wt.join("")}},{key:"transform",value:function(t,e){return[t[0]*e[0]+t[2]*e[1],t[1]*e[0]+t[3]*e[1],t[0]*e[2]+t[2]*e[3],t[1]*e[2]+t[3]*e[3],t[0]*e[4]+t[2]*e[5]+t[4],t[1]*e[4]+t[3]*e[5]+t[5]]}},{key:"applyTransform",value:function(t,e){return[t[0]*e[0]+t[1]*e[2]+e[4],t[0]*e[1]+t[1]*e[3]+e[5]]}},{key:"applyInverseTransform",value:function(t,e){var n=e[0]*e[3]-e[1]*e[2];return[(t[0]*e[3]-t[1]*e[2]+e[2]*e[5]-e[4]*e[3])/n,(-t[0]*e[1]+t[1]*e[0]+e[4]*e[1]-e[5]*e[0])/n]}},{key:"getAxialAlignedBoundingBox",value:function(e,n){var r=t.applyTransform(e,n),i=t.applyTransform(e.slice(2,4),n),o=t.applyTransform([e[0],e[3]],n),a=t.applyTransform([e[2],e[1]],n);return[Math.min(r[0],i[0],o[0],a[0]),Math.min(r[1],i[1],o[1],a[1]),Math.max(r[0],i[0],o[0],a[0]),Math.max(r[1],i[1],o[1],a[1])]}},{key:"inverseTransform",value:function(t){var e=t[0]*t[3]-t[1]*t[2];return[t[3]/e,-t[1]/e,-t[2]/e,t[0]/e,(t[2]*t[5]-t[4]*t[3])/e,(t[4]*t[1]-t[5]*t[0])/e]}},{key:"apply3dTransform",value:function(t,e){return[t[0]*e[0]+t[1]*e[1]+t[2]*e[2],t[3]*e[0]+t[4]*e[1]+t[5]*e[2],t[6]*e[0]+t[7]*e[1]+t[8]*e[2]]}},{key:"singularValueDecompose2dScale",value:function(t){var e=[t[0],t[2],t[1],t[3]],n=t[0]*e[0]+t[1]*e[2],r=t[0]*e[1]+t[1]*e[3],i=t[2]*e[0]+t[3]*e[2],o=t[2]*e[1]+t[3]*e[3],a=(n+o)/2,s=Math.sqrt((n+o)*(n+o)-4*(n*o-i*r))/2,u=a+s||1,l=a-s||1;return[Math.sqrt(u),Math.sqrt(l)]}},{key:"normalizeRect",value:function(t){var e=t.slice(0);return t[0]>t[2]&&(e[0]=t[2],e[2]=t[0]),t[1]>t[3]&&(e[1]=t[3],e[3]=t[1]),e}},{key:"intersect",value:function(e,n){function r(t,e){return t-e}var i=[e[0],e[2],n[0],n[2]].sort(r),o=[e[1],e[3],n[1],n[3]].sort(r),a=[];return e=t.normalizeRect(e),n=t.normalizeRect(n),i[0]===e[0]&&i[1]===n[0]||i[0]===n[0]&&i[1]===e[0]?(a[0]=i[1],a[2]=i[2],o[0]===e[1]&&o[1]===n[1]||o[0]===n[1]&&o[1]===e[1]?(a[1]=o[1],a[3]=o[2],a):null):null}}]),t}();e.Util=xt;var kt=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,728,711,710,729,733,731,730,732,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8226,8224,8225,8230,8212,8211,402,8260,8249,8250,8722,8240,8222,8220,8221,8216,8217,8218,8482,64257,64258,321,338,352,376,381,305,322,339,353,382,0,8364],St=function(){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";return function(e,n){if(!(arguments.length>2&&void 0!==arguments[2]&&arguments[2])&&URL.createObjectURL){var r=new Blob([e],{type:n});return URL.createObjectURL(r)}for(var i="data:".concat(n,";base64,"),o=0,a=e.length;o<a;o+=3){var s=255&e[o],u=255&e[o+1],l=255&e[o+2];i+=t[s>>2]+t[(3&s)<<4|u>>4]+t[o+1<a?(15&u)<<2|l>>6:64]+t[o+2<a?63&l:64]}return i}}();e.createObjectURL=St},function(t,e,n){"use strict";function r(t){"@babel/helpers - typeof";return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var i=n(7);if("undefined"==typeof globalThis||!globalThis._pdfjsCompatibilityChecked){"undefined"!=typeof globalThis&&globalThis.Math===Math||(globalThis=n(8)),globalThis._pdfjsCompatibilityChecked=!0;var o="object"===("undefined"==typeof window?"undefined":r(window))&&"object"===("undefined"==typeof document?"undefined":r(document)),a="undefined"!=typeof navigator&&navigator.userAgent||"",s=/Trident/.test(a);!function(){!globalThis.btoa&&i.isNodeJS&&(globalThis.btoa=function(t){return Buffer.from(t,"binary").toString("base64")})}(),function(){!globalThis.atob&&i.isNodeJS&&(globalThis.atob=function(t){return Buffer.from(t,"base64").toString("binary")})}(),function(){o&&void 0===Element.prototype.remove&&(Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)})}(),function(){if(o&&!i.isNodeJS){var t=document.createElement("div");if(t.classList.add("testOne","testTwo"),!0!==t.classList.contains("testOne")||!0!==t.classList.contains("testTwo")){var e=DOMTokenList.prototype.add,n=DOMTokenList.prototype.remove;DOMTokenList.prototype.add=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];for(var i=0,o=n;i<o.length;i++){var a=o[i];e.call(this,a)}},DOMTokenList.prototype.remove=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];for(var i=0,o=e;i<o.length;i++){var a=o[i];n.call(this,a)}}}}}(),function(){if(o&&!i.isNodeJS){!1!==document.createElement("div").classList.toggle("test",0)&&(DOMTokenList.prototype.toggle=function(t){var e=arguments.length>1?!!arguments[1]:!this.contains(t);return this[e?"add":"remove"](t),e})}}(),function(){if(o&&s){var t=window.history.pushState,e=window.history.replaceState;window.history.pushState=function(e,n,r){var i=void 0===r?[e,n]:[e,n,r];t.apply(this,i)},window.history.replaceState=function(t,n,r){var i=void 0===r?[t,n]:[t,n,r];e.apply(this,i)}}}(),function(){String.prototype.startsWith||n(53)}(),function(){String.prototype.endsWith||n(64)}(),function(){String.prototype.includes||n(66)}(),function(){Array.prototype.includes||n(68)}(),function(){Array.from||n(76)}(),function(){Object.assign||n(98)}(),function(){Object.fromEntries||n(101)}(),function(){Math.log2||(Math.log2=n(105))}(),function(){Number.isNaN||(Number.isNaN=n(107))}(),function(){Number.isInteger||(Number.isInteger=n(109))}(),function(){Uint8Array.prototype.slice||n(112)}(),function(){globalThis.Promise&&globalThis.Promise.allSettled||(globalThis.Promise=n(117))}(),function(){globalThis.URL=n(138)}(),function(){var t=!1;if("undefined"!=typeof ReadableStream)try{new ReadableStream({start:function(t){t.close()}}),t=!0}catch(t){}t||(globalThis.ReadableStream=n(145).ReadableStream)}(),function(){globalThis.Map&&globalThis.Map.prototype.entries||(globalThis.Map=n(146))}(),function(){globalThis.Set&&globalThis.Set.prototype.entries||(globalThis.Set=n(153))}(),function(){globalThis.WeakMap||(globalThis.WeakMap=n(155))}(),function(){globalThis.WeakSet||(globalThis.WeakSet=n(161))}(),function(){String.prototype.codePointAt||n(163)}(),function(){String.fromCodePoint||(String.fromCodePoint=n(165))}(),function(){globalThis.Symbol||n(167)}(),function(){String.prototype.padStart||n(190)}(),function(){String.prototype.padEnd||n(195)}(),function(){Object.values||(Object.values=n(197))}(),function(){Object.entries||(Object.entries=n(200))}()}},function(t,e,n){"use strict";function r(t){"@babel/helpers - typeof";return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.isNodeJS=void 0;var i=!("object"!==(void 0===process?"undefined":r(process))||process+""!="[object process]"||process.versions.nw||process.versions.electron&&process.type&&"browser"!==process.type);e.isNodeJS=i},function(t,e,n){n(9),t.exports=n(11)},function(t,e,n){n(10)({global:!0},{globalThis:n(11)})},function(t,e,n){var r=n(11),i=n(12).f,o=n(26),a=n(29),s=n(30),u=n(40),l=n(52);t.exports=function(t,e){var n,c,f,d,h,p=t.target,g=t.global,m=t.stat;if(n=g?r:m?r[p]||s(p,{}):(r[p]||{}).prototype)for(c in e){if(d=e[c],t.noTargetGet?(h=i(n,c),f=h&&h.value):f=n[c],!l(g?c:p+(m?".":"#")+c,t.forced)&&void 0!==f){if(typeof d==typeof f)continue;u(d,f)}(t.sham||f&&f.sham)&&o(d,"sham",!0),a(n,c,d,t)}}},function(t,e){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof global&&global)||Function("return this")()},function(t,e,n){var r=n(13),i=n(15),o=n(16),a=n(17),s=n(21),u=n(23),l=n(24),c=Object.getOwnPropertyDescriptor;e.f=r?c:function(t,e){if(t=a(t),e=s(e,!0),l)try{return c(t,e)}catch(t){}if(u(t,e))return o(!i.f.call(t,e),t[e])}},function(t,e,n){var r=n(14);t.exports=!r(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);e.f=o?function(t){var e=i(this,t);return!!e&&e.enumerable}:r},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var r=n(18),i=n(20);t.exports=function(t){return r(i(t))}},function(t,e,n){var r=n(14),i=n(19),o="".split;t.exports=r(function(){return!Object("z").propertyIsEnumerable(0)})?function(t){return"String"==i(t)?o.call(t,""):Object(t)}:Object},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){var r=n(22);t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var r=n(13),i=n(14),o=n(25);t.exports=!r&&!i(function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(11),i=n(22),o=r.document,a=i(o)&&i(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},function(t,e,n){var r=n(13),i=n(27),o=n(16);t.exports=r?function(t,e,n){return i.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(13),i=n(24),o=n(28),a=n(21),s=Object.defineProperty;e.f=r?s:function(t,e,n){if(o(t),e=a(e,!0),o(n),i)try{return s(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(22);t.exports=function(t){if(!r(t))throw TypeError(String(t)+" is not an object");return t}},function(t,e,n){var r=n(11),i=n(26),o=n(23),a=n(30),s=n(31),u=n(33),l=u.get,c=u.enforce,f=String(String).split("String");(t.exports=function(t,e,n,s){var u=!!s&&!!s.unsafe,l=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet;if("function"==typeof n&&("string"!=typeof e||o(n,"name")||i(n,"name",e),c(n).source=f.join("string"==typeof e?e:"")),t===r)return void(l?t[e]=n:a(e,n));u?!d&&t[e]&&(l=!0):delete t[e],l?t[e]=n:i(t,e,n)})(Function.prototype,"toString",function(){return"function"==typeof this&&l(this).source||s(this)})},function(t,e,n){var r=n(11),i=n(26);t.exports=function(t,e){try{i(r,t,e)}catch(n){r[t]=e}return e}},function(t,e,n){var r=n(32),i=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(t){return i.call(t)}),t.exports=r.inspectSource},function(t,e,n){var r=n(11),i=n(30),o=r["__core-js_shared__"]||i("__core-js_shared__",{});t.exports=o},function(t,e,n){var r,i,o,a=n(34),s=n(11),u=n(22),l=n(26),c=n(23),f=n(35),d=n(39),h=s.WeakMap,p=function(t){return o(t)?i(t):r(t,{})},g=function(t){return function(e){var n;if(!u(e)||(n=i(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}};if(a){var m=new h,v=m.get,y=m.has,b=m.set;r=function(t,e){return b.call(m,t,e),e},i=function(t){return v.call(m,t)||{}},o=function(t){return y.call(m,t)}}else{var _=f("state");d[_]=!0,r=function(t,e){return l(t,_,e),e},i=function(t){return c(t,_)?t[_]:{}},o=function(t){return c(t,_)}}t.exports={set:r,get:i,has:o,enforce:p,getterFor:g}},function(t,e,n){var r=n(11),i=n(31),o=r.WeakMap;t.exports="function"==typeof o&&/native code/.test(i(o))},function(t,e,n){var r=n(36),i=n(38),o=r("keys");t.exports=function(t){return o[t]||(o[t]=i(t))}},function(t,e,n){var r=n(37),i=n(32);(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.5",mode:r?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(t,e){t.exports=!1},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++n+r).toString(36)}},function(t,e){t.exports={}},function(t,e,n){var r=n(23),i=n(41),o=n(12),a=n(27);t.exports=function(t,e){for(var n=i(e),s=a.f,u=o.f,l=0;l<n.length;l++){var c=n[l];r(t,c)||s(t,c,u(e,c))}}},function(t,e,n){var r=n(42),i=n(44),o=n(51),a=n(28);t.exports=r("Reflect","ownKeys")||function(t){var e=i.f(a(t)),n=o.f;return n?e.concat(n(t)):e}},function(t,e,n){var r=n(43),i=n(11),o=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?o(r[t])||o(i[t]):r[t]&&r[t][e]||i[t]&&i[t][e]}},function(t,e,n){var r=n(11);t.exports=r},function(t,e,n){var r=n(45),i=n(50),o=i.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e,n){var r=n(23),i=n(17),o=n(46).indexOf,a=n(39);t.exports=function(t,e){var n,s=i(t),u=0,l=[];for(n in s)!r(a,n)&&r(s,n)&&l.push(n);for(;e.length>u;)r(s,n=e[u++])&&(~o(l,n)||l.push(n));return l}},function(t,e,n){var r=n(17),i=n(47),o=n(49),a=function(t){return function(e,n,a){var s,u=r(e),l=i(u.length),c=o(a,l);if(t&&n!=n){for(;l>c;)if((s=u[c++])!=s)return!0}else for(;l>c;c++)if((t||c in u)&&u[c]===n)return t||c||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},function(t,e,n){var r=n(48),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(48),i=Math.max,o=Math.min;t.exports=function(t,e){var n=r(t);return n<0?i(n+e,0):o(n,e)}},function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(14),i=/#|\.prototype\./,o=function(t,e){var n=s[a(t)];return n==l||n!=u&&("function"==typeof e?r(e):!!e)},a=o.normalize=function(t){return String(t).replace(i,".").toLowerCase()},s=o.data={},u=o.NATIVE="N",l=o.POLYFILL="P";t.exports=o},function(t,e,n){n(54);var r=n(61);t.exports=r("String","startsWith")},function(t,e,n){"use strict";var r=n(10),i=n(12).f,o=n(47),a=n(55),s=n(20),u=n(60),l=n(37),c="".startsWith,f=Math.min,d=u("startsWith");r({target:"String",proto:!0,forced:!(!l&&!d&&!!function(){var t=i(String.prototype,"startsWith");return t&&!t.writable}()||d)},{startsWith:function(t){var e=String(s(this));a(t);var n=o(f(arguments.length>1?arguments[1]:void 0,e.length)),r=String(t);return c?c.call(e,r,n):e.slice(n,n+r.length)===r}})},function(t,e,n){var r=n(56);t.exports=function(t){if(r(t))throw TypeError("The method doesn't accept regular expressions");return t}},function(t,e,n){var r=n(22),i=n(19),o=n(57),a=o("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[a])?!!e:"RegExp"==i(t))}},function(t,e,n){var r=n(11),i=n(36),o=n(23),a=n(38),s=n(58),u=n(59),l=i("wks"),c=r.Symbol,f=u?c:c&&c.withoutSetter||a;t.exports=function(t){return o(l,t)||(s&&o(c,t)?l[t]=c[t]:l[t]=f("Symbol."+t)),l[t]}},function(t,e,n){var r=n(14);t.exports=!!Object.getOwnPropertySymbols&&!r(function(){return!String(Symbol())})},function(t,e,n){var r=n(58);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(t,e,n){var r=n(57),i=r("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[i]=!1,"/./"[t](e)}catch(t){}}return!1}},function(t,e,n){var r=n(11),i=n(62),o=Function.call;t.exports=function(t,e,n){return i(o,r[t].prototype[e],n)}},function(t,e,n){var r=n(63);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},function(t,e,n){n(65);var r=n(61);t.exports=r("String","endsWith")},function(t,e,n){"use strict";var r=n(10),i=n(12).f,o=n(47),a=n(55),s=n(20),u=n(60),l=n(37),c="".endsWith,f=Math.min,d=u("endsWith");r({target:"String",proto:!0,forced:!(!l&&!d&&!!function(){var t=i(String.prototype,"endsWith");return t&&!t.writable}()||d)},{endsWith:function(t){var e=String(s(this));a(t);var n=arguments.length>1?arguments[1]:void 0,r=o(e.length),i=void 0===n?r:f(o(n),r),u=String(t);return c?c.call(e,u,i):e.slice(i-u.length,i)===u}})},function(t,e,n){n(67);var r=n(61);t.exports=r("String","includes")},function(t,e,n){"use strict";var r=n(10),i=n(55),o=n(20);r({target:"String",proto:!0,forced:!n(60)("includes")},{includes:function(t){return!!~String(o(this)).indexOf(i(t),arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){n(69);var r=n(61);t.exports=r("Array","includes")},function(t,e,n){"use strict";var r=n(10),i=n(46).includes,o=n(70);r({target:"Array",proto:!0,forced:!n(75)("indexOf",{ACCESSORS:!0,1:0})},{includes:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),o("includes")},function(t,e,n){var r=n(57),i=n(71),o=n(27),a=r("unscopables"),s=Array.prototype;void 0==s[a]&&o.f(s,a,{configurable:!0,value:i(null)}),t.exports=function(t){s[a][t]=!0}},function(t,e,n){var r,i=n(28),o=n(72),a=n(50),s=n(39),u=n(74),l=n(25),c=n(35),f=c("IE_PROTO"),d=function(){},h=function(t){return"<script>"+t+"<\/script>"},p=function(t){t.write(h("")),t.close();var e=t.parentWindow.Object;return t=null,e},g=function(){var t,e=l("iframe");return e.style.display="none",u.appendChild(e),e.src=String("javascript:"),t=e.contentWindow.document,t.open(),t.write(h("document.F=Object")),t.close(),t.F},m=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(t){}m=r?p(r):g();for(var t=a.length;t--;)delete m.prototype[a[t]];return m()};s[f]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(d.prototype=i(t),n=new d,d.prototype=null,n[f]=t):n=m(),void 0===e?n:o(n,e)}},function(t,e,n){var r=n(13),i=n(27),o=n(28),a=n(73);t.exports=r?Object.defineProperties:function(t,e){o(t);for(var n,r=a(e),s=r.length,u=0;s>u;)i.f(t,n=r[u++],e[n]);return t}},function(t,e,n){var r=n(45),i=n(50);t.exports=Object.keys||function(t){return r(t,i)}},function(t,e,n){var r=n(42);t.exports=r("document","documentElement")},function(t,e,n){var r=n(13),i=n(14),o=n(23),a=Object.defineProperty,s={},u=function(t){throw t};t.exports=function(t,e){if(o(s,t))return s[t];e||(e={});var n=[][t],l=!!o(e,"ACCESSORS")&&e.ACCESSORS,c=o(e,0)?e[0]:u,f=o(e,1)?e[1]:void 0;return s[t]=!!n&&!i(function(){if(l&&!r)return!0;var t={length:-1};l?a(t,1,{enumerable:!0,get:u}):t[1]=1,n.call(t,c,f)})}},function(t,e,n){n(77),n(89);var r=n(43);t.exports=r.Array.from},function(t,e,n){"use strict";var r=n(78).charAt,i=n(33),o=n(79),a=i.set,s=i.getterFor("String Iterator");o(String,"String",function(t){a(this,{type:"String Iterator",string:String(t),index:0})},function(){var t,e=s(this),n=e.string,i=e.index;return i>=n.length?{value:void 0,done:!0}:(t=r(n,i),e.index+=t.length,{value:t,done:!1})})},function(t,e,n){var r=n(48),i=n(20),o=function(t){return function(e,n){var o,a,s=String(i(e)),u=r(n),l=s.length;return u<0||u>=l?t?"":void 0:(o=s.charCodeAt(u),o<55296||o>56319||u+1===l||(a=s.charCodeAt(u+1))<56320||a>57343?t?s.charAt(u):o:t?s.slice(u,u+2):a-56320+(o-55296<<10)+65536)}};t.exports={codeAt:o(!1),charAt:o(!0)}},function(t,e,n){"use strict";var r=n(10),i=n(80),o=n(82),a=n(87),s=n(85),u=n(26),l=n(29),c=n(57),f=n(37),d=n(86),h=n(81),p=h.IteratorPrototype,g=h.BUGGY_SAFARI_ITERATORS,m=c("iterator"),v=function(){return this};t.exports=function(t,e,n,c,h,y,b){i(n,e,c);var _,w,x,k=function(t){if(t===h&&A)return A;if(!g&&t in E)return E[t];switch(t){case"keys":case"values":case"entries":return function(){return new n(this,t)}}return function(){return new n(this)}},S=e+" Iterator",C=!1,E=t.prototype,T=E[m]||E["@@iterator"]||h&&E[h],A=!g&&T||k(h),O="Array"==e?E.entries||T:T;if(O&&(_=o(O.call(new t)),p!==Object.prototype&&_.next&&(f||o(_)===p||(a?a(_,p):"function"!=typeof _[m]&&u(_,m,v)),s(_,S,!0,!0),f&&(d[S]=v))),"values"==h&&T&&"values"!==T.name&&(C=!0,A=function(){return T.call(this)}),f&&!b||E[m]===A||u(E,m,A),d[e]=A,h)if(w={values:k("values"),keys:y?A:k("keys"),entries:k("entries")},b)for(x in w)!g&&!C&&x in E||l(E,x,w[x]);else r({target:e,proto:!0,forced:g||C},w);return w}},function(t,e,n){"use strict";var r=n(81).IteratorPrototype,i=n(71),o=n(16),a=n(85),s=n(86),u=function(){return this};t.exports=function(t,e,n){var l=e+" Iterator";return t.prototype=i(r,{next:o(1,n)}),a(t,l,!1,!0),s[l]=u,t}},function(t,e,n){"use strict";var r,i,o,a=n(82),s=n(26),u=n(23),l=n(57),c=n(37),f=l("iterator"),d=!1,h=function(){return this};[].keys&&(o=[].keys(),"next"in o?(i=a(a(o)))!==Object.prototype&&(r=i):d=!0),void 0==r&&(r={}),c||u(r,f)||s(r,f,h),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:d}},function(t,e,n){var r=n(23),i=n(83),o=n(35),a=n(84),s=o("IE_PROTO"),u=Object.prototype;t.exports=a?Object.getPrototypeOf:function(t){return t=i(t),r(t,s)?t[s]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},function(t,e,n){var r=n(20);t.exports=function(t){return Object(r(t))}},function(t,e,n){var r=n(14);t.exports=!r(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})},function(t,e,n){var r=n(27).f,i=n(23),o=n(57),a=o("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,a)&&r(t,a,{configurable:!0,value:e})}},function(t,e){t.exports={}},function(t,e,n){var r=n(28),i=n(88);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,t.call(n,[]),e=n instanceof Array}catch(t){}return function(n,o){return r(n),i(o),e?t.call(n,o):n.__proto__=o,n}}():void 0)},function(t,e,n){var r=n(22);t.exports=function(t){if(!r(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},function(t,e,n){var r=n(10),i=n(90);r({target:"Array",stat:!0,forced:!n(97)(function(t){Array.from(t)})},{from:i})},function(t,e,n){"use strict";var r=n(62),i=n(83),o=n(91),a=n(92),s=n(47),u=n(93),l=n(94);t.exports=function(t){var e,n,c,f,d,h,p=i(t),g="function"==typeof this?this:Array,m=arguments.length,v=m>1?arguments[1]:void 0,y=void 0!==v,b=l(p),_=0;if(y&&(v=r(v,m>2?arguments[2]:void 0,2)),void 0==b||g==Array&&a(b))for(e=s(p.length),n=new g(e);e>_;_++)h=y?v(p[_],_):p[_],u(n,_,h);else for(f=b.call(p),d=f.next,n=new g;!(c=d.call(f)).done;_++)h=y?o(f,v,[c.value,_],!0):c.value,u(n,_,h);return n.length=_,n}},function(t,e,n){var r=n(28);t.exports=function(t,e,n,i){try{return i?e(r(n)[0],n[1]):e(n)}catch(e){var o=t.return;throw void 0!==o&&r(o.call(t)),e}}},function(t,e,n){var r=n(57),i=n(86),o=r("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||a[o]===t)}},function(t,e,n){"use strict";var r=n(21),i=n(27),o=n(16);t.exports=function(t,e,n){var a=r(e);a in t?i.f(t,a,o(0,n)):t[a]=n}},function(t,e,n){var r=n(95),i=n(86),o=n(57),a=o("iterator");t.exports=function(t){if(void 0!=t)return t[a]||t["@@iterator"]||i[r(t)]}},function(t,e,n){var r=n(96),i=n(19),o=n(57),a=o("toStringTag"),s="Arguments"==i(function(){return arguments}()),u=function(t,e){try{return t[e]}catch(t){}};t.exports=r?i:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=u(e=Object(t),a))?n:s?i(e):"Object"==(r=i(e))&&"function"==typeof e.callee?"Arguments":r}},function(t,e,n){var r=n(57),i=r("toStringTag"),o={};o[i]="z",t.exports="[object z]"===String(o)},function(t,e,n){var r=n(57),i=r("iterator"),o=!1;try{var a=0,s={next:function(){return{done:!!a++}},return:function(){o=!0}};s[i]=function(){return this},Array.from(s,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var r={};r[i]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n}},function(t,e,n){n(99);var r=n(43);t.exports=r.Object.assign},function(t,e,n){var r=n(10),i=n(100);r({target:"Object",stat:!0,forced:Object.assign!==i},{assign:i})},function(t,e,n){"use strict";var r=n(13),i=n(14),o=n(73),a=n(51),s=n(15),u=n(83),l=n(18),c=Object.assign,f=Object.defineProperty;t.exports=!c||i(function(){if(r&&1!==c({b:1},c(f({},"a",{enumerable:!0,get:function(){f(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol(),i="abcdefghijklmnopqrst";return t[n]=7,i.split("").forEach(function(t){e[t]=t}),7!=c({},t)[n]||o(c({},e)).join("")!=i})?function(t,e){for(var n=u(t),i=arguments.length,c=1,f=a.f,d=s.f;i>c;)for(var h,p=l(arguments[c++]),g=f?o(p).concat(f(p)):o(p),m=g.length,v=0;m>v;)h=g[v++],r&&!d.call(p,h)||(n[h]=p[h]);return n}:c},function(t,e,n){n(102),n(103);var r=n(43);t.exports=r.Object.fromEntries},function(t,e,n){"use strict";var r=n(17),i=n(70),o=n(86),a=n(33),s=n(79),u=a.set,l=a.getterFor("Array Iterator");t.exports=s(Array,"Array",function(t,e){u(this,{type:"Array Iterator",target:r(t),index:0,kind:e})},function(){var t=l(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}},"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},function(t,e,n){var r=n(10),i=n(104),o=n(93);r({target:"Object",stat:!0},{fromEntries:function(t){var e={};return i(t,function(t,n){o(e,t,n)},void 0,!0),e}})},function(t,e,n){var r=n(28),i=n(92),o=n(47),a=n(62),s=n(94),u=n(91),l=function(t,e){this.stopped=t,this.result=e};(t.exports=function(t,e,n,c,f){var d,h,p,g,m,v,y,b=a(e,n,c?2:1);if(f)d=t;else{if("function"!=typeof(h=s(t)))throw TypeError("Target is not iterable");if(i(h)){for(p=0,g=o(t.length);g>p;p++)if((m=c?b(r(y=t[p])[0],y[1]):b(t[p]))&&m instanceof l)return m;return new l(!1)}d=h.call(t)}for(v=d.next;!(y=v.call(d)).done;)if("object"==typeof(m=u(d,b,y.value,c))&&m&&m instanceof l)return m;return new l(!1)}).stop=function(t){return new l(!0,t)}},function(t,e,n){n(106);var r=n(43);t.exports=r.Math.log2},function(t,e,n){var r=n(10),i=Math.log,o=Math.LN2;r({target:"Math",stat:!0},{log2:function(t){return i(t)/o}})},function(t,e,n){n(108);var r=n(43);t.exports=r.Number.isNaN},function(t,e,n){n(10)({target:"Number",stat:!0},{isNaN:function(t){return t!=t}})},function(t,e,n){n(110);var r=n(43);t.exports=r.Number.isInteger},function(t,e,n){n(10)({target:"Number",stat:!0},{isInteger:n(111)})},function(t,e,n){var r=n(22),i=Math.floor;t.exports=function(t){return!r(t)&&isFinite(t)&&i(t)===t}},function(t,e,n){n(113)},function(t,e,n){"use strict";var r=n(114),i=n(116),o=n(14),a=r.aTypedArray,s=r.aTypedArrayConstructor,u=r.exportTypedArrayMethod,l=[].slice,c=o(function(){new Int8Array(1).slice()});u("slice",function(t,e){for(var n=l.call(a(this),t,e),r=i(this,this.constructor),o=0,u=n.length,c=new(s(r))(u);u>o;)c[o]=n[o++];return c},c)},function(t,e,n){"use strict";var r,i=n(115),o=n(13),a=n(11),s=n(22),u=n(23),l=n(95),c=n(26),f=n(29),d=n(27).f,h=n(82),p=n(87),g=n(57),m=n(38),v=a.Int8Array,y=v&&v.prototype,b=a.Uint8ClampedArray,_=b&&b.prototype,w=v&&h(v),x=y&&h(y),k=Object.prototype,S=k.isPrototypeOf,C=g("toStringTag"),E=m("TYPED_ARRAY_TAG"),T=i&&!!p&&"Opera"!==l(a.opera),A=!1,O={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},P=function(t){var e=l(t);return"DataView"===e||u(O,e)},N=function(t){return s(t)&&u(O,l(t))},D=function(t){if(N(t))return t;throw TypeError("Target is not a typed array")},M=function(t){if(p){if(S.call(w,t))return t}else for(var e in O)if(u(O,r)){var n=a[e];if(n&&(t===n||S.call(n,t)))return t}throw TypeError("Target is not a typed array constructor")},I=function(t,e,n){if(o){if(n)for(var r in O){var i=a[r];i&&u(i.prototype,t)&&delete i.prototype[t]}x[t]&&!n||f(x,t,n?e:T&&y[t]||e)}},R=function(t,e,n){var r,i;if(o){if(p){if(n)for(r in O)(i=a[r])&&u(i,t)&&delete i[t];if(w[t]&&!n)return;try{return f(w,t,n?e:T&&v[t]||e)}catch(t){}}for(r in O)!(i=a[r])||i[t]&&!n||f(i,t,e)}};for(r in O)a[r]||(T=!1);if((!T||"function"!=typeof w||w===Function.prototype)&&(w=function(){throw TypeError("Incorrect invocation")},T))for(r in O)a[r]&&p(a[r],w);if((!T||!x||x===k)&&(x=w.prototype,T))for(r in O)a[r]&&p(a[r].prototype,x);if(T&&h(_)!==x&&p(_,x),o&&!u(x,C)){A=!0,d(x,C,{get:function(){return s(this)?this[E]:void 0}});for(r in O)a[r]&&c(a[r],E,r)}t.exports={NATIVE_ARRAY_BUFFER_VIEWS:T,TYPED_ARRAY_TAG:A&&E,aTypedArray:D,aTypedArrayConstructor:M,exportTypedArrayMethod:I,exportTypedArrayStaticMethod:R,isView:P,isTypedArray:N,TypedArray:w,TypedArrayPrototype:x}},function(t,e){t.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},function(t,e,n){var r=n(28),i=n(63),o=n(57),a=o("species");t.exports=function(t,e){var n,o=r(t).constructor;return void 0===o||void 0==(n=r(o)[a])?e:i(n)}},function(t,e,n){n(118),n(77),n(120),n(122),n(136),n(137);var r=n(43);t.exports=r.Promise},function(t,e,n){var r=n(96),i=n(29),o=n(119);r||i(Object.prototype,"toString",o,{unsafe:!0})},function(t,e,n){"use strict";var r=n(96),i=n(95);t.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},function(t,e,n){var r=n(11),i=n(121),o=n(102),a=n(26),s=n(57),u=s("iterator"),l=s("toStringTag"),c=o.values;for(var f in i){var d=r[f],h=d&&d.prototype;if(h){if(h[u]!==c)try{a(h,u,c)}catch(t){h[u]=c}if(h[l]||a(h,l,f),i[f])for(var p in o)if(h[p]!==o[p])try{a(h,p,o[p])}catch(t){h[p]=o[p]}}}},function(t,e){t.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(t,e,n){"use strict";var r,i,o,a,s=n(10),u=n(37),l=n(11),c=n(42),f=n(123),d=n(29),h=n(124),p=n(85),g=n(125),m=n(22),v=n(63),y=n(126),b=n(19),_=n(31),w=n(104),x=n(97),k=n(116),S=n(127).set,C=n(130),E=n(131),T=n(133),A=n(132),O=n(134),P=n(33),N=n(52),D=n(57),M=n(135),I=D("species"),R="Promise",$=P.get,L=P.set,j=P.getterFor(R),F=f,B=l.TypeError,V=l.document,z=l.process,U=c("fetch"),H=A.f,q=H,W="process"==b(z),G=!!(V&&V.createEvent&&l.dispatchEvent),Y=N(R,function(){if(_(F)===String(F)){if(66===M)return!0;if(!W&&"function"!=typeof PromiseRejectionEvent)return!0}if(u&&!F.prototype.finally)return!0;if(M>=51&&/native code/.test(F))return!1;var t=F.resolve(1),e=function(t){t(function(){},function(){})},n=t.constructor={};return n[I]=e,!(t.then(function(){})instanceof e)}),K=Y||!x(function(t){F.all(t).catch(function(){})}),X=function(t){var e;return!(!m(t)||"function"!=typeof(e=t.then))&&e},J=function(t,e,n){if(!e.notified){e.notified=!0;var r=e.reactions;C(function(){for(var i=e.value,o=1==e.state,a=0;r.length>a;){var s,u,l,c=r[a++],f=o?c.ok:c.fail,d=c.resolve,h=c.reject,p=c.domain;try{f?(o||(2===e.rejection&&et(t,e),e.rejection=1),!0===f?s=i:(p&&p.enter(),s=f(i),p&&(p.exit(),l=!0)),s===c.promise?h(B("Promise-chain cycle")):(u=X(s))?u.call(s,d,h):d(s)):h(i)}catch(t){p&&!l&&p.exit(),h(t)}}e.reactions=[],e.notified=!1,n&&!e.rejection&&Z(t,e)})}},Q=function(t,e,n){var r,i;G?(r=V.createEvent("Event"),r.promise=e,r.reason=n,r.initEvent(t,!1,!0),l.dispatchEvent(r)):r={promise:e,reason:n},(i=l["on"+t])?i(r):"unhandledrejection"===t&&T("Unhandled promise rejection",n)},Z=function(t,e){S.call(l,function(){var n,r=e.value,i=tt(e);if(i&&(n=O(function(){W?z.emit("unhandledRejection",r,t):Q("unhandledrejection",t,r)}),e.rejection=W||tt(e)?2:1,n.error))throw n.value})},tt=function(t){return 1!==t.rejection&&!t.parent},et=function(t,e){S.call(l,function(){W?z.emit("rejectionHandled",t):Q("rejectionhandled",t,e.value)})},nt=function(t,e,n,r){return function(i){t(e,n,i,r)}},rt=function(t,e,n,r){e.done||(e.done=!0,r&&(e=r),e.value=n,e.state=2,J(t,e,!0))},it=function(t,e,n,r){if(!e.done){e.done=!0,r&&(e=r);try{if(t===n)throw B("Promise can't be resolved itself");var i=X(n);i?C(function(){var r={done:!1};try{i.call(n,nt(it,t,r,e),nt(rt,t,r,e))}catch(n){rt(t,r,n,e)}}):(e.value=n,e.state=1,J(t,e,!1))}catch(n){rt(t,{done:!1},n,e)}}};Y&&(F=function(t){y(this,F,R),v(t),r.call(this);var e=$(this);try{t(nt(it,this,e),nt(rt,this,e))}catch(t){rt(this,e,t)}},r=function(t){L(this,{type:R,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})},r.prototype=h(F.prototype,{then:function(t,e){var n=j(this),r=H(k(this,F));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=W?z.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&J(this,n,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new r,e=$(t);this.promise=t,this.resolve=nt(it,t,e),this.reject=nt(rt,t,e)},A.f=H=function(t){return t===F||t===o?new i(t):q(t)},u||"function"!=typeof f||(a=f.prototype.then,d(f.prototype,"then",function(t,e){var n=this;return new F(function(t,e){a.call(n,t,e)}).then(t,e)},{unsafe:!0}),"function"==typeof U&&s({global:!0,enumerable:!0,forced:!0},{fetch:function(t){return E(F,U.apply(l,arguments))}}))),s({global:!0,wrap:!0,forced:Y},{Promise:F}),p(F,R,!1,!0),g(R),o=c(R),s({target:R,stat:!0,forced:Y},{reject:function(t){var e=H(this);return e.reject.call(void 0,t),e.promise}}),s({target:R,stat:!0,forced:u||Y},{resolve:function(t){return E(u&&this===o?F:this,t)}}),s({target:R,stat:!0,forced:K},{all:function(t){var e=this,n=H(e),r=n.resolve,i=n.reject,o=O(function(){var n=v(e.resolve),o=[],a=0,s=1;w(t,function(t){var u=a++,l=!1;o.push(void 0),s++,n.call(e,t).then(function(t){l||(l=!0,o[u]=t,--s||r(o))},i)}),--s||r(o)});return o.error&&i(o.value),n.promise},race:function(t){var e=this,n=H(e),r=n.reject,i=O(function(){var i=v(e.resolve);w(t,function(t){i.call(e,t).then(n.resolve,r)})});return i.error&&r(i.value),n.promise}})},function(t,e,n){var r=n(11);t.exports=r.Promise},function(t,e,n){var r=n(29);t.exports=function(t,e,n){for(var i in e)r(t,i,e[i],n);return t}},function(t,e,n){"use strict";var r=n(42),i=n(27),o=n(57),a=n(13),s=o("species");t.exports=function(t){var e=r(t),n=i.f;a&&e&&!e[s]&&n(e,s,{configurable:!0,get:function(){return this}})}},function(t,e){t.exports=function(t,e,n){if(!(t instanceof e))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return t}},function(t,e,n){var r,i,o,a=n(11),s=n(14),u=n(19),l=n(62),c=n(74),f=n(25),d=n(128),h=a.location,p=a.setImmediate,g=a.clearImmediate,m=a.process,v=a.MessageChannel,y=a.Dispatch,b=0,_={},w=function(t){if(_.hasOwnProperty(t)){var e=_[t];delete _[t],e()}},x=function(t){return function(){w(t)}},k=function(t){w(t.data)},S=function(t){a.postMessage(t+"",h.protocol+"//"+h.host)};p&&g||(p=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return _[++b]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},r(b),b},g=function(t){delete _[t]},"process"==u(m)?r=function(t){m.nextTick(x(t))}:y&&y.now?r=function(t){y.now(x(t))}:v&&!d?(i=new v,o=i.port2,i.port1.onmessage=k,r=l(o.postMessage,o,1)):!a.addEventListener||"function"!=typeof postMessage||a.importScripts||s(S)||"file:"===h.protocol?r="onreadystatechange"in f("script")?function(t){c.appendChild(f("script")).onreadystatechange=function(){c.removeChild(this),w(t)}}:function(t){setTimeout(x(t),0)}:(r=S,a.addEventListener("message",k,!1))),t.exports={set:p,clear:g}},function(t,e,n){var r=n(129);t.exports=/(iphone|ipod|ipad).*applewebkit/i.test(r)},function(t,e,n){var r=n(42);t.exports=r("navigator","userAgent")||""},function(t,e,n){var r,i,o,a,s,u,l,c,f=n(11),d=n(12).f,h=n(19),p=n(127).set,g=n(128),m=f.MutationObserver||f.WebKitMutationObserver,v=f.process,y=f.Promise,b="process"==h(v),_=d(f,"queueMicrotask"),w=_&&_.value;w||(r=function(){var t,e;for(b&&(t=v.domain)&&t.exit();i;){e=i.fn,i=i.next;try{e()}catch(t){throw i?a():o=void 0,t}}o=void 0,t&&t.enter()},b?a=function(){v.nextTick(r)}:m&&!g?(s=!0,u=document.createTextNode(""),new m(r).observe(u,{characterData:!0}),a=function(){u.data=s=!s}):y&&y.resolve?(l=y.resolve(void 0),c=l.then,a=function(){c.call(l,r)}):a=function(){p.call(f,r)}),t.exports=w||function(t){var e={fn:t,next:void 0};o&&(o.next=e),i||(i=e,a()),o=e}},function(t,e,n){var r=n(28),i=n(22),o=n(132);t.exports=function(t,e){if(r(t),i(e)&&e.constructor===t)return e;var n=o.f(t);return(0,n.resolve)(e),n.promise}},function(t,e,n){"use strict";var r=n(63),i=function(t){var e,n;this.promise=new t(function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r}),this.resolve=r(e),this.reject=r(n)};t.exports.f=function(t){return new i(t)}},function(t,e,n){var r=n(11);t.exports=function(t,e){var n=r.console;n&&n.error&&(1===arguments.length?n.error(t):n.error(t,e))}},function(t,e){t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},function(t,e,n){var r,i,o=n(11),a=n(129),s=o.process,u=s&&s.versions,l=u&&u.v8;l?(r=l.split("."),i=r[0]+r[1]):a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(i=r[1]),t.exports=i&&+i},function(t,e,n){"use strict";var r=n(10),i=n(63),o=n(132),a=n(134),s=n(104);r({target:"Promise",stat:!0},{allSettled:function(t){var e=this,n=o.f(e),r=n.resolve,u=n.reject,l=a(function(){var n=i(e.resolve),o=[],a=0,u=1;s(t,function(t){var i=a++,s=!1;o.push(void 0),u++,n.call(e,t).then(function(t){s||(s=!0,o[i]={status:"fulfilled",value:t},--u||r(o))},function(t){s||(s=!0,o[i]={status:"rejected",reason:t},--u||r(o))})}),--u||r(o)});return l.error&&u(l.value),n.promise}})},function(t,e,n){"use strict";var r=n(10),i=n(37),o=n(123),a=n(14),s=n(42),u=n(116),l=n(131),c=n(29);r({target:"Promise",proto:!0,real:!0,forced:!!o&&a(function(){o.prototype.finally.call({then:function(){}},function(){})})},{finally:function(t){var e=u(this,s("Promise")),n="function"==typeof t;return this.then(n?function(n){return l(e,t()).then(function(){return n})}:t,n?function(n){return l(e,t()).then(function(){throw n})}:t)}}),i||"function"!=typeof o||o.prototype.finally||c(o.prototype,"finally",s("Promise").prototype.finally)},function(t,e,n){n(139),n(144),n(142);var r=n(43);t.exports=r.URL},function(t,e,n){"use strict";n(77);var r,i=n(10),o=n(13),a=n(140),s=n(11),u=n(72),l=n(29),c=n(126),f=n(23),d=n(100),h=n(90),p=n(78).codeAt,g=n(141),m=n(85),v=n(142),y=n(33),b=s.URL,_=v.URLSearchParams,w=v.getState,x=y.set,k=y.getterFor("URL"),S=Math.floor,C=Math.pow,E=/[A-Za-z]/,T=/[\d+-.A-Za-z]/,A=/\d/,O=/^(0x|0X)/,P=/^[0-7]+$/,N=/^\d+$/,D=/^[\dA-Fa-f]+$/,M=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,I=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,R=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,$=/[\u0009\u000A\u000D]/g,L=function(t,e){var n,r,i;if("["==e.charAt(0)){if("]"!=e.charAt(e.length-1))return"Invalid host";if(!(n=F(e.slice(1,-1))))return"Invalid host";t.host=n}else if(Y(t)){if(e=g(e),M.test(e))return"Invalid host";if(null===(n=j(e)))return"Invalid host";t.host=n}else{if(I.test(e))return"Invalid host";for(n="",r=h(e),i=0;i<r.length;i++)n+=W(r[i],z);t.host=n}},j=function(t){var e,n,r,i,o,a,s,u=t.split(".");if(u.length&&""==u[u.length-1]&&u.pop(),(e=u.length)>4)return t;for(n=[],r=0;r<e;r++){if(""==(i=u[r]))return t;if(o=10,i.length>1&&"0"==i.charAt(0)&&(o=O.test(i)?16:8,i=i.slice(8==o?1:2)),""===i)a=0;else{if(!(10==o?N:8==o?P:D).test(i))return t;a=parseInt(i,o)}n.push(a)}for(r=0;r<e;r++)if(a=n[r],r==e-1){if(a>=C(256,5-e))return null}else if(a>255)return null;for(s=n.pop(),r=0;r<n.length;r++)s+=n[r]*C(256,3-r);return s},F=function(t){var e,n,r,i,o,a,s,u=[0,0,0,0,0,0,0,0],l=0,c=null,f=0,d=function(){return t.charAt(f)};if(":"==d()){if(":"!=t.charAt(1))return;f+=2,l++,c=l}for(;d();){if(8==l)return;if(":"!=d()){for(e=n=0;n<4&&D.test(d());)e=16*e+parseInt(d(),16),f++,n++;if("."==d()){if(0==n)return;if(f-=n,l>6)return;for(r=0;d();){if(i=null,r>0){if(!("."==d()&&r<4))return;f++}if(!A.test(d()))return;for(;A.test(d());){if(o=parseInt(d(),10),null===i)i=o;else{if(0==i)return;i=10*i+o}if(i>255)return;f++}u[l]=256*u[l]+i,r++,2!=r&&4!=r||l++}if(4!=r)return;break}if(":"==d()){if(f++,!d())return}else if(d())return;u[l++]=e}else{if(null!==c)return;f++,l++,c=l}}if(null!==c)for(a=l-c,l=7;0!=l&&a>0;)s=u[l],u[l--]=u[c+a-1],u[c+--a]=s;else if(8!=l)return;return u},B=function(t){for(var e=null,n=1,r=null,i=0,o=0;o<8;o++)0!==t[o]?(i>n&&(e=r,n=i),r=null,i=0):(null===r&&(r=o),++i);return i>n&&(e=r,n=i),e},V=function(t){var e,n,r,i;if("number"==typeof t){for(e=[],n=0;n<4;n++)e.unshift(t%256),t=S(t/256);return e.join(".")}if("object"==typeof t){for(e="",r=B(t),n=0;n<8;n++)i&&0===t[n]||(i&&(i=!1),r===n?(e+=n?":":"::",i=!0):(e+=t[n].toString(16),n<7&&(e+=":")));return"["+e+"]"}return t},z={},U=d({},z,{" ":1,'"':1,"<":1,">":1,"`":1}),H=d({},U,{"#":1,"?":1,"{":1,"}":1}),q=d({},H,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),W=function(t,e){var n=p(t,0);return n>32&&n<127&&!f(e,t)?t:encodeURIComponent(t)},G={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Y=function(t){return f(G,t.scheme)},K=function(t){return""!=t.username||""!=t.password},X=function(t){return!t.host||t.cannotBeABaseURL||"file"==t.scheme},J=function(t,e){var n;return 2==t.length&&E.test(t.charAt(0))&&(":"==(n=t.charAt(1))||!e&&"|"==n)},Q=function(t){var e;return t.length>1&&J(t.slice(0,2))&&(2==t.length||"/"===(e=t.charAt(2))||"\\"===e||"?"===e||"#"===e)},Z=function(t){var e=t.path,n=e.length;!n||"file"==t.scheme&&1==n&&J(e[0],!0)||e.pop()},tt=function(t){return"."===t||"%2e"===t.toLowerCase()},et=function(t){return".."===(t=t.toLowerCase())||"%2e."===t||".%2e"===t||"%2e%2e"===t},nt={},rt={},it={},ot={},at={},st={},ut={},lt={},ct={},ft={},dt={},ht={},pt={},gt={},mt={},vt={},yt={},bt={},_t={},wt={},xt={},kt=function(t,e,n,i){var o,a,s,u,l=n||nt,c=0,d="",p=!1,g=!1,m=!1;for(n||(t.scheme="",t.username="",t.password="",t.host=null,t.port=null,t.path=[],t.query=null,t.fragment=null,t.cannotBeABaseURL=!1,e=e.replace(R,"")),e=e.replace($,""),o=h(e);c<=o.length;){switch(a=o[c],l){case nt:if(!a||!E.test(a)){if(n)return"Invalid scheme";l=it;continue}d+=a.toLowerCase(),l=rt;break;case rt:if(a&&(T.test(a)||"+"==a||"-"==a||"."==a))d+=a.toLowerCase();else{if(":"!=a){if(n)return"Invalid scheme";d="",l=it,c=0;continue}if(n&&(Y(t)!=f(G,d)||"file"==d&&(K(t)||null!==t.port)||"file"==t.scheme&&!t.host))return;if(t.scheme=d,n)return void(Y(t)&&G[t.scheme]==t.port&&(t.port=null));d="","file"==t.scheme?l=gt:Y(t)&&i&&i.scheme==t.scheme?l=ot:Y(t)?l=lt:"/"==o[c+1]?(l=at,c++):(t.cannotBeABaseURL=!0,t.path.push(""),l=_t)}break;case it:if(!i||i.cannotBeABaseURL&&"#"!=a)return"Invalid scheme";if(i.cannotBeABaseURL&&"#"==a){t.scheme=i.scheme,t.path=i.path.slice(),t.query=i.query,t.fragment="",t.cannotBeABaseURL=!0,l=xt;break}l="file"==i.scheme?gt:st;continue;case ot:if("/"!=a||"/"!=o[c+1]){l=st;continue}l=ct,c++;break;case at:if("/"==a){l=ft;break}l=bt;continue;case st:if(t.scheme=i.scheme,a==r)t.username=i.username,t.password=i.password,t.host=i.host,t.port=i.port,t.path=i.path.slice(),t.query=i.query;else if("/"==a||"\\"==a&&Y(t))l=ut;else if("?"==a)t.username=i.username,t.password=i.password,t.host=i.host,t.port=i.port,t.path=i.path.slice(),t.query="",l=wt;else{if("#"!=a){t.username=i.username,t.password=i.password,t.host=i.host,t.port=i.port,t.path=i.path.slice(),t.path.pop(),l=bt;continue}t.username=i.username,t.password=i.password,t.host=i.host,t.port=i.port,t.path=i.path.slice(),t.query=i.query,t.fragment="",l=xt}break;case ut:if(!Y(t)||"/"!=a&&"\\"!=a){if("/"!=a){t.username=i.username,t.password=i.password,t.host=i.host,t.port=i.port,l=bt;continue}l=ft}else l=ct;break;case lt:if(l=ct,"/"!=a||"/"!=d.charAt(c+1))continue;c++;break;case ct:if("/"!=a&&"\\"!=a){l=ft;continue}break;case ft:if("@"==a){p&&(d="%40"+d),p=!0,s=h(d);for(var v=0;v<s.length;v++){var y=s[v];if(":"!=y||m){var b=W(y,q);m?t.password+=b:t.username+=b}else m=!0}d=""}else if(a==r||"/"==a||"?"==a||"#"==a||"\\"==a&&Y(t)){if(p&&""==d)return"Invalid authority";c-=h(d).length+1,d="",l=dt}else d+=a;break;case dt:case ht:if(n&&"file"==t.scheme){l=vt;continue}if(":"!=a||g){if(a==r||"/"==a||"?"==a||"#"==a||"\\"==a&&Y(t)){if(Y(t)&&""==d)return"Invalid host";if(n&&""==d&&(K(t)||null!==t.port))return;if(u=L(t,d))return u;if(d="",l=yt,n)return;continue}"["==a?g=!0:"]"==a&&(g=!1),d+=a}else{if(""==d)return"Invalid host";if(u=L(t,d))return u;if(d="",l=pt,n==ht)return}break;case pt:if(!A.test(a)){if(a==r||"/"==a||"?"==a||"#"==a||"\\"==a&&Y(t)||n){if(""!=d){var _=parseInt(d,10);if(_>65535)return"Invalid port";t.port=Y(t)&&_===G[t.scheme]?null:_,d=""}if(n)return;l=yt;continue}return"Invalid port"}d+=a;break;case gt:if(t.scheme="file","/"==a||"\\"==a)l=mt;else{if(!i||"file"!=i.scheme){l=bt;continue}if(a==r)t.host=i.host,t.path=i.path.slice(),t.query=i.query;else if("?"==a)t.host=i.host,t.path=i.path.slice(),t.query="",l=wt;else{if("#"!=a){Q(o.slice(c).join(""))||(t.host=i.host,t.path=i.path.slice(),Z(t)),l=bt;continue}t.host=i.host,t.path=i.path.slice(),t.query=i.query,t.fragment="",l=xt}}break;case mt:if("/"==a||"\\"==a){l=vt;break}i&&"file"==i.scheme&&!Q(o.slice(c).join(""))&&(J(i.path[0],!0)?t.path.push(i.path[0]):t.host=i.host),l=bt;continue;case vt:if(a==r||"/"==a||"\\"==a||"?"==a||"#"==a){if(!n&&J(d))l=bt;else if(""==d){if(t.host="",n)return;l=yt}else{if(u=L(t,d))return u;if("localhost"==t.host&&(t.host=""),n)return;d="",l=yt}continue}d+=a;break;case yt:if(Y(t)){if(l=bt,"/"!=a&&"\\"!=a)continue}else if(n||"?"!=a)if(n||"#"!=a){if(a!=r&&(l=bt,"/"!=a))continue}else t.fragment="",l=xt;else t.query="",l=wt;break;case bt:if(a==r||"/"==a||"\\"==a&&Y(t)||!n&&("?"==a||"#"==a)){if(et(d)?(Z(t),"/"==a||"\\"==a&&Y(t)||t.path.push("")):tt(d)?"/"==a||"\\"==a&&Y(t)||t.path.push(""):("file"==t.scheme&&!t.path.length&&J(d)&&(t.host&&(t.host=""),d=d.charAt(0)+":"),t.path.push(d)),d="","file"==t.scheme&&(a==r||"?"==a||"#"==a))for(;t.path.length>1&&""===t.path[0];)t.path.shift();"?"==a?(t.query="",l=wt):"#"==a&&(t.fragment="",l=xt)}else d+=W(a,H);break;case _t:"?"==a?(t.query="",l=wt):"#"==a?(t.fragment="",l=xt):a!=r&&(t.path[0]+=W(a,z));break;case wt:n||"#"!=a?a!=r&&("'"==a&&Y(t)?t.query+="%27":t.query+="#"==a?"%23":W(a,z)):(t.fragment="",l=xt);break;case xt:a!=r&&(t.fragment+=W(a,U))}c++}},St=function(t){var e,n,r=c(this,St,"URL"),i=arguments.length>1?arguments[1]:void 0,a=String(t),s=x(r,{type:"URL"});if(void 0!==i)if(i instanceof St)e=k(i);else if(n=kt(e={},String(i)))throw TypeError(n);if(n=kt(s,a,null,e))throw TypeError(n);var u=s.searchParams=new _,l=w(u);l.updateSearchParams(s.query),l.updateURL=function(){s.query=String(u)||null},o||(r.href=Et.call(r),r.origin=Tt.call(r),r.protocol=At.call(r),r.username=Ot.call(r),r.password=Pt.call(r),r.host=Nt.call(r),r.hostname=Dt.call(r),r.port=Mt.call(r),r.pathname=It.call(r),r.search=Rt.call(r),r.searchParams=$t.call(r),r.hash=Lt.call(r))},Ct=St.prototype,Et=function(){var t=k(this),e=t.scheme,n=t.username,r=t.password,i=t.host,o=t.port,a=t.path,s=t.query,u=t.fragment,l=e+":";return null!==i?(l+="//",K(t)&&(l+=n+(r?":"+r:"")+"@"),l+=V(i),null!==o&&(l+=":"+o)):"file"==e&&(l+="//"),l+=t.cannotBeABaseURL?a[0]:a.length?"/"+a.join("/"):"",null!==s&&(l+="?"+s),null!==u&&(l+="#"+u),l},Tt=function(){var t=k(this),e=t.scheme,n=t.port;if("blob"==e)try{return new URL(e.path[0]).origin}catch(t){return"null"}return"file"!=e&&Y(t)?e+"://"+V(t.host)+(null!==n?":"+n:""):"null"},At=function(){return k(this).scheme+":"},Ot=function(){return k(this).username},Pt=function(){return k(this).password},Nt=function(){var t=k(this),e=t.host,n=t.port;return null===e?"":null===n?V(e):V(e)+":"+n},Dt=function(){var t=k(this).host;return null===t?"":V(t)},Mt=function(){var t=k(this).port;return null===t?"":String(t)},It=function(){var t=k(this),e=t.path;return t.cannotBeABaseURL?e[0]:e.length?"/"+e.join("/"):""},Rt=function(){var t=k(this).query;return t?"?"+t:""},$t=function(){return k(this).searchParams},Lt=function(){var t=k(this).fragment;return t?"#"+t:""},jt=function(t,e){return{get:t,set:e,configurable:!0,enumerable:!0}};if(o&&u(Ct,{href:jt(Et,function(t){var e=k(this),n=String(t),r=kt(e,n);if(r)throw TypeError(r);w(e.searchParams).updateSearchParams(e.query)}),origin:jt(Tt),protocol:jt(At,function(t){var e=k(this);kt(e,String(t)+":",nt)}),username:jt(Ot,function(t){var e=k(this),n=h(String(t));if(!X(e)){e.username="";for(var r=0;r<n.length;r++)e.username+=W(n[r],q)}}),password:jt(Pt,function(t){var e=k(this),n=h(String(t));if(!X(e)){e.password="";for(var r=0;r<n.length;r++)e.password+=W(n[r],q)}}),host:jt(Nt,function(t){var e=k(this);e.cannotBeABaseURL||kt(e,String(t),dt)}),hostname:jt(Dt,function(t){var e=k(this);e.cannotBeABaseURL||kt(e,String(t),ht)}),port:jt(Mt,function(t){var e=k(this);X(e)||(t=String(t),""==t?e.port=null:kt(e,t,pt))}),pathname:jt(It,function(t){var e=k(this);e.cannotBeABaseURL||(e.path=[],kt(e,t+"",yt))}),search:jt(Rt,function(t){var e=k(this);t=String(t),""==t?e.query=null:("?"==t.charAt(0)&&(t=t.slice(1)),e.query="",kt(e,t,wt)),w(e.searchParams).updateSearchParams(e.query)}),searchParams:jt($t),hash:jt(Lt,function(t){var e=k(this);if(""==(t=String(t)))return void(e.fragment=null);"#"==t.charAt(0)&&(t=t.slice(1)),e.fragment="",kt(e,t,xt)})}),l(Ct,"toJSON",function(){return Et.call(this)},{enumerable:!0}),l(Ct,"toString",function(){return Et.call(this)},{enumerable:!0}),b){var Ft=b.createObjectURL,Bt=b.revokeObjectURL;Ft&&l(St,"createObjectURL",function(t){return Ft.apply(b,arguments)}),Bt&&l(St,"revokeObjectURL",function(t){return Bt.apply(b,arguments)})}m(St,"URL"),i({global:!0,forced:!a,sham:!o},{URL:St})},function(t,e,n){var r=n(14),i=n(57),o=n(37),a=i("iterator");t.exports=!r(function(){var t=new URL("b?a=1&b=2&c=3","http://a"),e=t.searchParams,n="";return t.pathname="c%20d",e.forEach(function(t,r){e.delete("b"),n+=r+t}),o&&!t.toJSON||!e.sort||"http://a/c%20d?a=1&c=3"!==t.href||"3"!==e.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!e[a]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host})},function(t,e,n){"use strict";var r=/[^\0-\u007E]/,i=/[.\u3002\uFF0E\uFF61]/g,o="Overflow: input needs wider integers to process",a=Math.floor,s=String.fromCharCode,u=function(t){for(var e=[],n=0,r=t.length;n<r;){var i=t.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){var o=t.charCodeAt(n++);56320==(64512&o)?e.push(((1023&i)<<10)+(1023&o)+65536):(e.push(i),n--)}else e.push(i)}return e},l=function(t){return t+22+75*(t<26)},c=function(t,e,n){var r=0;for(t=n?a(t/700):t>>1,t+=a(t/e);t>455;r+=36)t=a(t/35);return a(r+36*t/(t+38))},f=function(t){var e=[];t=u(t);var n,r,i=t.length,f=128,d=0,h=72;for(n=0;n<t.length;n++)(r=t[n])<128&&e.push(s(r));var p=e.length,g=p;for(p&&e.push("-");g<i;){var m=2147483647;for(n=0;n<t.length;n++)(r=t[n])>=f&&r<m&&(m=r);var v=g+1;if(m-f>a((2147483647-d)/v))throw RangeError(o);for(d+=(m-f)*v,f=m,n=0;n<t.length;n++){if((r=t[n])<f&&++d>2147483647)throw RangeError(o);if(r==f){for(var y=d,b=36;;b+=36){var _=b<=h?1:b>=h+26?26:b-h;if(y<_)break;var w=y-_,x=36-_;e.push(s(l(_+w%x))),y=a(w/x)}e.push(s(l(y))),h=c(d,v,g==p),d=0,++g}}++d,++f}return e.join("")};t.exports=function(t){var e,n,o=[],a=t.toLowerCase().replace(i,".").split(".");for(e=0;e<a.length;e++)n=a[e],o.push(r.test(n)?"xn--"+f(n):n);return o.join(".")}},function(t,e,n){"use strict";n(102);var r=n(10),i=n(42),o=n(140),a=n(29),s=n(124),u=n(85),l=n(80),c=n(33),f=n(126),d=n(23),h=n(62),p=n(95),g=n(28),m=n(22),v=n(71),y=n(16),b=n(143),_=n(94),w=n(57),x=i("fetch"),k=i("Headers"),S=w("iterator"),C=c.set,E=c.getterFor("URLSearchParams"),T=c.getterFor("URLSearchParamsIterator"),A=/\+/g,O=Array(4),P=function(t){return O[t-1]||(O[t-1]=RegExp("((?:%[\\da-f]{2}){"+t+"})","gi"))},N=function(t){try{return decodeURIComponent(t)}catch(e){return t}},D=function(t){var e=t.replace(A," "),n=4;try{return decodeURIComponent(e)}catch(t){for(;n;)e=e.replace(P(n--),N);return e}},M=/[!'()~]|%20/g,I={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},R=function(t){return I[t]},$=function(t){return encodeURIComponent(t).replace(M,R)},L=function(t,e){if(e)for(var n,r,i=e.split("&"),o=0;o<i.length;)n=i[o++],n.length&&(r=n.split("="),t.push({key:D(r.shift()),value:D(r.join("="))}))},j=function(t){this.entries.length=0,L(this.entries,t)},F=function(t,e){if(t<e)throw TypeError("Not enough arguments")},B=l(function(t,e){C(this,{type:"URLSearchParamsIterator",iterator:b(E(t).entries),kind:e})},"Iterator",function(){var t=T(this),e=t.kind,n=t.iterator.next(),r=n.value;return n.done||(n.value="keys"===e?r.key:"values"===e?r.value:[r.key,r.value]),n}),V=function(){f(this,V,"URLSearchParams");var t,e,n,r,i,o,a,s,u,l=arguments.length>0?arguments[0]:void 0,c=this,h=[];if(C(c,{type:"URLSearchParams",entries:h,updateURL:function(){},updateSearchParams:j}),void 0!==l)if(m(l))if("function"==typeof(t=_(l)))for(e=t.call(l),n=e.next;!(r=n.call(e)).done;){if(i=b(g(r.value)),o=i.next,(a=o.call(i)).done||(s=o.call(i)).done||!o.call(i).done)throw TypeError("Expected sequence with length 2");h.push({key:a.value+"",value:s.value+""})}else for(u in l)d(l,u)&&h.push({key:u,value:l[u]+""});else L(h,"string"==typeof l?"?"===l.charAt(0)?l.slice(1):l:l+"")},z=V.prototype;s(z,{append:function(t,e){F(arguments.length,2);var n=E(this);n.entries.push({key:t+"",value:e+""}),n.updateURL()},delete:function(t){F(arguments.length,1);for(var e=E(this),n=e.entries,r=t+"",i=0;i<n.length;)n[i].key===r?n.splice(i,1):i++;e.updateURL()},get:function(t){F(arguments.length,1);for(var e=E(this).entries,n=t+"",r=0;r<e.length;r++)if(e[r].key===n)return e[r].value;return null},getAll:function(t){F(arguments.length,1);for(var e=E(this).entries,n=t+"",r=[],i=0;i<e.length;i++)e[i].key===n&&r.push(e[i].value);return r},has:function(t){F(arguments.length,1);for(var e=E(this).entries,n=t+"",r=0;r<e.length;)if(e[r++].key===n)return!0;return!1},set:function(t,e){F(arguments.length,1);for(var n,r=E(this),i=r.entries,o=!1,a=t+"",s=e+"",u=0;u<i.length;u++)n=i[u],n.key===a&&(o?i.splice(u--,1):(o=!0,n.value=s));o||i.push({key:a,value:s}),r.updateURL()},sort:function(){var t,e,n,r=E(this),i=r.entries,o=i.slice();for(i.length=0,n=0;n<o.length;n++){for(t=o[n],e=0;e<n;e++)if(i[e].key>t.key){i.splice(e,0,t);break}e===n&&i.push(t)}r.updateURL()},forEach:function(t){for(var e,n=E(this).entries,r=h(t,arguments.length>1?arguments[1]:void 0,3),i=0;i<n.length;)e=n[i++],r(e.value,e.key,this)},keys:function(){return new B(this,"keys")},values:function(){return new B(this,"values")},entries:function(){return new B(this,"entries")}},{enumerable:!0}),a(z,S,z.entries),a(z,"toString",function(){for(var t,e=E(this).entries,n=[],r=0;r<e.length;)t=e[r++],n.push($(t.key)+"="+$(t.value));return n.join("&")},{enumerable:!0}),u(V,"URLSearchParams"),r({global:!0,forced:!o},{URLSearchParams:V}),o||"function"!=typeof x||"function"!=typeof k||r({global:!0,enumerable:!0,forced:!0},{fetch:function(t){var e,n,r,i=[t];return arguments.length>1&&(e=arguments[1],m(e)&&(n=e.body,"URLSearchParams"===p(n)&&(r=e.headers?new k(e.headers):new k,r.has("content-type")||r.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),e=v(e,{body:y(0,String(n)),headers:y(0,r)}))),i.push(e)),x.apply(this,i)}}),t.exports={URLSearchParams:V,getState:E}},function(t,e,n){var r=n(28),i=n(94);t.exports=function(t){var e=i(t);if("function"!=typeof e)throw TypeError(String(t)+" is not iterable");return r(e.call(t))}},function(t,e,n){"use strict";n(10)({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}})},function(t,e,n){!function(t,n){!function(t){"use strict";function e(){}function n(t){return"object"==typeof t&&null!==t||"function"==typeof t}function r(t){return t.slice()}function i(t,e,n,r,i){new Uint8Array(t).set(new Uint8Array(n,r,i),e)}function o(t){return!1!==a(t)&&t!==1/0}function a(t){return"number"==typeof t&&(!Dn(t)&&!(t<0))}function s(t,e,n){if("function"!=typeof t)throw new TypeError("Argument is not a function");return Function.prototype.apply.call(t,e,n)}function u(t,e,n,r){var i=t[e];if(void 0!==i){if("function"!=typeof i)throw new TypeError(i+" is not a method");switch(n){case 0:return function(){return c(i,t,r)};case 1:return function(e){var n=[e].concat(r);return c(i,t,n)}}}return function(){return g(void 0)}}function l(t,e,n){var r=t[e];if(void 0!==r)return s(r,t,n)}function c(t,e,n){try{return g(s(t,e,n))}catch(t){return m(t)}}function f(t){return t}function d(t){if(t=Number(t),Dn(t)||t<0)throw new RangeError("highWaterMark property of a queuing strategy must be non-negative and non-NaN");return t}function h(t){if(void 0===t)return function(){return 1};if("function"!=typeof t)throw new TypeError("size property of a queuing strategy must be a function");return function(e){return t(e)}}function p(t){return new In(t)}function g(t){return $n(t)}function m(t){return Ln(t)}function v(t,e,n){return Rn.call(t,e,n)}function y(t,e,n){v(v(t,e,n),void 0,Mn)}function b(t,e){y(t,e)}function _(t,e){y(t,void 0,e)}function w(t,e,n){return v(t,e,n)}function x(t){v(t,void 0,Mn)}function k(t,e,n){var r=null;!0===n&&(r=Object.prototype);var i=Object.create(r);return i.value=t,i.done=e,i}function S(t,e){t._forAuthorCode=!0,t._ownerReadableStream=e,e._reader=t,"readable"===e._state?A(t):"closed"===e._state?P(t):O(t,e._storedError)}function C(t,e){return an(t._ownerReadableStream,e)}function E(t){"readable"===t._ownerReadableStream._state?N(t,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")):D(t,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")),t._ownerReadableStream._reader=void 0,t._ownerReadableStream=void 0}function T(t){return new TypeError("Cannot "+t+" a stream using a released reader")}function A(t){t._closedPromise=p(function(e,n){t._closedPromise_resolve=e,t._closedPromise_reject=n})}function O(t,e){A(t),N(t,e)}function P(t){A(t),M(t)}function N(t,e){x(t._closedPromise),t._closedPromise_reject(e),t._closedPromise_resolve=void 0,t._closedPromise_reject=void 0}function D(t,e){O(t,e)}function M(t){t._closedPromise_resolve(void 0),t._closedPromise_resolve=void 0,t._closedPromise_reject=void 0}function I(t,e){void 0===e&&(e=!1);var n=new Vn(t);return n._forAuthorCode=e,n}function R(t){return p(function(e,n){var r={_resolve:e,_reject:n};t._reader._readRequests.push(r)})}function $(t,e,n){var r=t._reader;r._readRequests.shift()._resolve(k(e,n,r._forAuthorCode))}function L(t){return t._reader._readRequests.length}function j(t){var e=t._reader;return void 0!==e&&!!F(e)}function F(t){return!!n(t)&&!!Object.prototype.hasOwnProperty.call(t,"_readRequests")}function B(t){var e=t._ownerReadableStream;return e._disturbed=!0,"closed"===e._state?g(k(void 0,!0,t._forAuthorCode)):"errored"===e._state?m(e._storedError):e._readableStreamController[Bn]()}function V(t){return new TypeError("ReadableStreamDefaultReader.prototype."+t+" can only be used on a ReadableStreamDefaultReader")}function z(t,e){void 0===e&&(e=!1);var n=I(t),r=Object.create(zn);return r._asyncIteratorReader=n,r._preventCancel=Boolean(e),r}function U(t){return!!n(t)&&!!Object.prototype.hasOwnProperty.call(t,"_asyncIteratorReader")}function H(t){return new TypeError("ReadableStreamAsyncIterator."+t+" can only be used on a ReadableSteamAsyncIterator")}function q(t){var e=t._queue.shift();return t._queueTotalSize-=e.size,t._queueTotalSize<0&&(t._queueTotalSize=0),e.value}function W(t,e,n){if(n=Number(n),!o(n))throw new RangeError("Size must be a finite, non-NaN, non-negative number.");t._queue.push({value:e,size:n}),t._queueTotalSize+=n}function G(t){return t._queue.peek().value}function Y(t){t._queue=new jn,t._queueTotalSize=0}function K(t){return new Wn(t)}function X(t,e,n,r,i,o){void 0===i&&(i=1),void 0===o&&(o=function(){return 1});var a=Object.create(qn.prototype);return J(a),Et(a,Object.create(Gn.prototype),t,e,n,r,i,o),a}function J(t){t._state="writable",t._storedError=void 0,t._writer=void 0,t._writableStreamController=void 0,t._writeRequests=new jn,t._inFlightWriteRequest=void 0,t._closeRequest=void 0,t._inFlightCloseRequest=void 0,t._pendingAbortRequest=void 0,t._backpressure=!1}function Q(t){return!!n(t)&&!!Object.prototype.hasOwnProperty.call(t,"_writableStreamController")}function Z(t){return void 0!==t._writer}function tt(t,e){var n=t._state;if("closed"===n||"errored"===n)return g(void 0);if(void 0!==t._pendingAbortRequest)return t._pendingAbortRequest._promise;var r=!1;"erroring"===n&&(r=!0,e=void 0);var i=p(function(n,i){t._pendingAbortRequest={_promise:void 0,_resolve:n,_reject:i,_reason:e,_wasAlreadyErroring:r}});return t._pendingAbortRequest._promise=i,!1===r&&it(t,e),i}function et(t){var e=t._state;if("closed"===e||"errored"===e)return m(new TypeError("The stream (in "+e+" state) is not in the writable state and cannot be closed"));var n=p(function(e,n){var r={_resolve:e,_reject:n};t._closeRequest=r}),r=t._writer;return void 0!==r&&!0===t._backpressure&&"writable"===e&&te(r),Ot(t._writableStreamController),n}function nt(t){return p(function(e,n){var r={_resolve:e,_reject:n};t._writeRequests.push(r)})}function rt(t,e){if("writable"===t._state)return void it(t,e);ot(t)}function it(t,e){var n=t._writableStreamController;t._state="erroring",t._storedError=e;var r=t._writer;void 0!==r&&wt(r,e),!1===ft(t)&&!0===n._started&&ot(t)}function ot(t){t._state="errored",t._writableStreamController[Hn]();var e=t._storedError;if(t._writeRequests.forEach(function(t){t._reject(e)}),t._writeRequests=new jn,void 0===t._pendingAbortRequest)return void pt(t);var n=t._pendingAbortRequest;if(t._pendingAbortRequest=void 0,!0===n._wasAlreadyErroring)return n._reject(e),void pt(t);y(t._writableStreamController[Un](n._reason),function(){n._resolve(),pt(t)},function(e){n._reject(e),pt(t)})}function at(t){t._inFlightWriteRequest._resolve(void 0),t._inFlightWriteRequest=void 0}function st(t,e){t._inFlightWriteRequest._reject(e),t._inFlightWriteRequest=void 0,rt(t,e)}function ut(t){t._inFlightCloseRequest._resolve(void 0),t._inFlightCloseRequest=void 0,"erroring"===t._state&&(t._storedError=void 0,void 0!==t._pendingAbortRequest&&(t._pendingAbortRequest._resolve(),t._pendingAbortRequest=void 0)),t._state="closed";var e=t._writer;void 0!==e&&Gt(e)}function lt(t,e){t._inFlightCloseRequest._reject(e),t._inFlightCloseRequest=void 0,void 0!==t._pendingAbortRequest&&(t._pendingAbortRequest._reject(e),t._pendingAbortRequest=void 0),rt(t,e)}function ct(t){return void 0!==t._closeRequest||void 0!==t._inFlightCloseRequest}function ft(t){return void 0!==t._inFlightWriteRequest||void 0!==t._inFlightCloseRequest}function dt(t){t._inFlightCloseRequest=t._closeRequest,t._closeRequest=void 0}function ht(t){t._inFlightWriteRequest=t._writeRequests.shift()}function pt(t){void 0!==t._closeRequest&&(t._closeRequest._reject(t._storedError),t._closeRequest=void 0);var e=t._writer;void 0!==e&&qt(e,t._storedError)}function gt(t,e){var n=t._writer;void 0!==n&&e!==t._backpressure&&(!0===e?Qt(n):te(n)),t._backpressure=e}function mt(t){return!!n(t)&&!!Object.prototype.hasOwnProperty.call(t,"_ownerWritableStream")}function vt(t,e){return tt(t._ownerWritableStream,e)}function yt(t){return et(t._ownerWritableStream)}function bt(t){var e=t._ownerWritableStream,n=e._state;return!0===ct(e)||"closed"===n?g(void 0):"errored"===n?m(e._storedError):yt(t)}function _t(t,e){"pending"===t._closedPromiseState?qt(t,e):Wt(t,e)}function wt(t,e){"pending"===t._readyPromiseState?Jt(t,e):Zt(t,e)}function xt(t){var e=t._ownerWritableStream,n=e._state;return"errored"===n||"erroring"===n?null:"closed"===n?0:Nt(e._writableStreamController)}function kt(t){var e=t._ownerWritableStream,n=new TypeError("Writer was released and can no longer be used to monitor the stream's closedness");wt(t,n),_t(t,n),e._writer=void 0,t._ownerWritableStream=void 0}function St(t,e){var n=t._ownerWritableStream,r=n._writableStreamController,i=Pt(r,e);if(n!==t._ownerWritableStream)return m(Vt("write to"));var o=n._state;if("errored"===o)return m(n._storedError);if(!0===ct(n)||"closed"===o)return m(new TypeError("The stream is closing or closed and cannot be written to"));if("erroring"===o)return m(n._storedError);var a=nt(n);return Dt(r,e,i),a}function Ct(t){return!!n(t)&&!!Object.prototype.hasOwnProperty.call(t,"_controlledWritableStream")}function Et(t,e,n,r,i,o,a,s){e._controlledWritableStream=t,t._writableStreamController=e,e._queue=void 0,e._queueTotalSize=void 0,Y(e),e._started=!1,e._strategySizeAlgorithm=s,e._strategyHWM=a,e._writeAlgorithm=r,e._closeAlgorithm=i,e._abortAlgorithm=o;var u=Lt(e);gt(t,u),y(g(n()),function(){e._started=!0,Mt(e)},function(n){e._started=!0,rt(t,n)})}function Tt(t,e,n,r){function i(){return l(e,"start",[o])}var o=Object.create(Gn.prototype),a=u(e,"write",1,[o]),s=u(e,"close",0,[]),c=u(e,"abort",1,[]);Et(t,o,i,a,s,c,n,r)}function At(t){t._writeAlgorithm=void 0,t._closeAlgorithm=void 0,t._abortAlgorithm=void 0,t._strategySizeAlgorithm=void 0}function Ot(t){W(t,"close",0),Mt(t)}function Pt(t,e){try{return t._strategySizeAlgorithm(e)}catch(e){return It(t,e),1}}function Nt(t){return t._strategyHWM-t._queueTotalSize}function Dt(t,e,n){var r={chunk:e};try{W(t,r,n)}catch(e){return void It(t,e)}var i=t._controlledWritableStream;if(!1===ct(i)&&"writable"===i._state){gt(i,Lt(t))}Mt(t)}function Mt(t){var e=t._controlledWritableStream;if(!1!==t._started&&void 0===e._inFlightWriteRequest){if("erroring"===e._state)return void ot(e);if(0!==t._queue.length){var n=G(t);"close"===n?Rt(t):$t(t,n.chunk)}}}function It(t,e){"writable"===t._controlledWritableStream._state&&jt(t,e)}function Rt(t){var e=t._controlledWritableStream;dt(e),q(t);var n=t._closeAlgorithm();At(t),y(n,function(){ut(e)},function(t){lt(e,t)})}function $t(t,e){var n=t._controlledWritableStream;ht(n),y(t._writeAlgorithm(e),function(){at(n);var e=n._state;if(q(t),!1===ct(n)&&"writable"===e){var r=Lt(t);gt(n,r)}Mt(t)},function(e){"writable"===n._state&&At(t),st(n,e)})}function Lt(t){return Nt(t)<=0}function jt(t,e){var n=t._controlledWritableStream;At(t),it(n,e)}function Ft(t){return new TypeError("WritableStream.prototype."+t+" can only be used on a WritableStream")}function Bt(t){return new TypeError("WritableStreamDefaultWriter.prototype."+t+" can only be used on a WritableStreamDefaultWriter")}function Vt(t){return new TypeError("Cannot "+t+" a stream using a released writer")}function zt(t){t._closedPromise=p(function(e,n){t._closedPromise_resolve=e,t._closedPromise_reject=n,t._closedPromiseState="pending"})}function Ut(t,e){zt(t),qt(t,e)}function Ht(t){zt(t),Gt(t)}function qt(t,e){x(t._closedPromise),t._closedPromise_reject(e),t._closedPromise_resolve=void 0,t._closedPromise_reject=void 0,t._closedPromiseState="rejected"}function Wt(t,e){Ut(t,e)}function Gt(t){t._closedPromise_resolve(void 0),t._closedPromise_resolve=void 0,t._closedPromise_reject=void 0,t._closedPromiseState="resolved"}function Yt(t){t._readyPromise=p(function(e,n){t._readyPromise_resolve=e,t._readyPromise_reject=n}),t._readyPromiseState="pending"}function Kt(t,e){Yt(t),Jt(t,e)}function Xt(t){Yt(t),te(t)}function Jt(t,e){x(t._readyPromise),t._readyPromise_reject(e),t._readyPromise_resolve=void 0,t._readyPromise_reject=void 0,t._readyPromiseState="rejected"}function Qt(t){Yt(t)}function Zt(t,e){Kt(t,e)}function te(t){t._readyPromise_resolve(void 0),t._readyPromise_resolve=void 0,t._readyPromise_reject=void 0,t._readyPromiseState="fulfilled"}function ee(t){if("object"!=typeof t||null===t)return!1;try{return"boolean"==typeof t.aborted}catch(t){return!1}}function ne(t,n,r,i,o,a){var s=I(t),u=K(n);t._disturbed=!0;var l=!1,c=g(void 0);return p(function(f,d){function h(){return!0===l?g(!0):v(u._readyPromise,function(){return v(B(s),function(t){return!0===t.done||(c=v(St(u,t.value),void 0,e),!1)})})}function m(){var t=c;return v(c,function(){return t!==c?m():void 0})}function w(t,e,n){"errored"===t._state?n(t._storedError):_(e,n)}function k(t,e,r){function i(){y(t(),function(){return C(e,r)},function(t){return C(!0,t)})}!0!==l&&(l=!0,"writable"===n._state&&!1===ct(n)?b(m(),i):i())}function S(t,e){!0!==l&&(l=!0,"writable"===n._state&&!1===ct(n)?b(m(),function(){return C(t,e)}):C(t,e))}function C(t,e){kt(u),E(s),void 0!==a&&a.removeEventListener("abort",T),t?d(e):f(void 0)}var T;if(void 0!==a){if(T=function(){var e=new Kn("Aborted","AbortError"),r=[];!1===i&&r.push(function(){return"writable"===n._state?tt(n,e):g(void 0)}),!1===o&&r.push(function(){return"readable"===t._state?an(t,e):g(void 0)}),k(function(){return Promise.all(r.map(function(t){return t()}))},!0,e)},!0===a.aborted)return void T();a.addEventListener("abort",T)}if(w(t,s._closedPromise,function(t){!1===i?k(function(){return tt(n,t)},!0,t):S(!0,t)}),w(n,u._closedPromise,function(e){!1===o?k(function(){return an(t,e)},!0,e):S(!0,e)}),function(t,e,n){"closed"===t._state?n():b(e,n)}(t,s._closedPromise,function(){!1===r?k(function(){return bt(u)}):S()}),!0===ct(n)||"closed"===n._state){var A=new TypeError("the destination writable stream closed before all data could be piped to it");!1===o?k(function(){return an(t,A)},!0,A):S(!0,A)}x(function(){return p(function(t,e){function n(r){r?t():v(h(),n,e)}n(!1)})}())})}function re(t){return!!n(t)&&!!Object.prototype.hasOwnProperty.call(t,"_controlledReadableStream")}function ie(t){if(!1!==oe(t)){if(!0===t._pulling)return void(t._pullAgain=!0);t._pulling=!0,y(t._pullAlgorithm(),function(){t._pulling=!1,!0===t._pullAgain&&(t._pullAgain=!1,ie(t))},function(e){le(t,e)})}}function oe(t){var e=t._controlledReadableStream;return!1!==de(t)&&(!1!==t._started&&(!0===on(e)&&L(e)>0||ce(t)>0))}function ae(t){t._pullAlgorithm=void 0,t._cancelAlgorithm=void 0,t._strategySizeAlgorithm=void 0}function se(t){var e=t._controlledReadableStream;t._closeRequested=!0,0===t._queue.length&&(ae(t),sn(e))}function ue(t,e){var n=t._controlledReadableStream;if(!0===on(n)&&L(n)>0)$(n,e,!1);else{var r=void 0;try{r=t._strategySizeAlgorithm(e)}catch(e){throw le(t,e),e}try{W(t,e,r)}catch(e){throw le(t,e),e}}ie(t)}function le(t,e){var n=t._controlledReadableStream;"readable"===n._state&&(Y(t),ae(t),un(n,e))}function ce(t){var e=t._controlledReadableStream,n=e._state;return"errored"===n?null:"closed"===n?0:t._strategyHWM-t._queueTotalSize}function fe(t){return!0!==oe(t)}function de(t){var e=t._controlledReadableStream._state;return!1===t._closeRequested&&"readable"===e}function he(t,e,n,r,i,o,a){e._controlledReadableStream=t,e._queue=void 0,e._queueTotalSize=void 0,Y(e),e._started=!1,e._closeRequested=!1,e._pullAgain=!1,e._pulling=!1,e._strategySizeAlgorithm=a,e._strategyHWM=o,e._pullAlgorithm=r,e._cancelAlgorithm=i,t._readableStreamController=e,y(g(n()),function(){e._started=!0,ie(e)},function(t){le(e,t)})}function pe(t,e,n,r){function i(){return l(e,"start",[o])}var o=Object.create(Xn.prototype),a=u(e,"pull",0,[o]),s=u(e,"cancel",1,[]);he(t,o,i,a,s,n,r)}function ge(t){return new TypeError("ReadableStreamDefaultController.prototype."+t+" can only be used on a ReadableStreamDefaultController")}function me(t,e){function n(){return!0===h?g(void 0):(h=!0,x(w(B(d),function(t){if(h=!1,!0===t.done)return!1===m&&se(l._readableStreamController),void(!1===v&&se(c._readableStreamController));var e=t.value,n=e,r=e;!1===m&&ue(l._readableStreamController,n),!1===v&&ue(c._readableStreamController,r)})),g(void 0))}function i(e){if(m=!0,s=e,!0===v){var n=r([s,u]),i=an(t,n);f(i)}return y}function o(e){if(v=!0,u=e,!0===m){var n=r([s,u]),i=an(t,n);f(i)}return y}function a(){}var s,u,l,c,f,d=I(t),h=!1,m=!1,v=!1,y=p(function(t){f=t});return l=en(a,n,i),c=en(a,n,o),_(d._closedPromise,function(t){le(l._readableStreamController,t),le(c._readableStreamController,t)}),[l,c]}function ve(t){return!!n(t)&&!!Object.prototype.hasOwnProperty.call(t,"_controlledReadableByteStream")}function ye(t){return!!n(t)&&!!Object.prototype.hasOwnProperty.call(t,"_associatedReadableByteStreamController")}function be(t){if(!1!==Ie(t)){if(!0===t._pulling)return void(t._pullAgain=!0);t._pulling=!0,y(t._pullAlgorithm(),function(){t._pulling=!1,!0===t._pullAgain&&(t._pullAgain=!1,be(t))},function(e){je(t,e)})}}function _e(t){Te(t),t._pendingPullIntos=new jn}function we(t,e){var n=!1;"closed"===t._state&&(n=!0);var r=xe(e);"default"===e.readerType?$(t,r,n):Ke(t,r,n)}function xe(t){var e=t.bytesFilled,n=t.elementSize;return new t.ctor(t.buffer,t.byteOffset,e/n)}function ke(t,e,n,r){t._queue.push({buffer:e,byteOffset:n,byteLength:r}),t._queueTotalSize+=r}function Se(t,e){var n=e.elementSize,r=e.bytesFilled-e.bytesFilled%n,o=Math.min(t._queueTotalSize,e.byteLength-e.bytesFilled),a=e.bytesFilled+o,s=a-a%n,u=o,l=!1;s>r&&(u=s-e.bytesFilled,l=!0);for(var c=t._queue;u>0;){var f=c.peek(),d=Math.min(u,f.byteLength),h=e.byteOffset+e.bytesFilled;i(e.buffer,h,f.buffer,f.byteOffset,d),f.byteLength===d?c.shift():(f.byteOffset+=d,f.byteLength-=d),t._queueTotalSize-=d,Ce(t,d,e),u-=d}return l}function Ce(t,e,n){Te(t),n.bytesFilled+=e}function Ee(t){0===t._queueTotalSize&&!0===t._closeRequested?(Re(t),sn(t._controlledReadableByteStream)):be(t)}function Te(t){void 0!==t._byobRequest&&(t._byobRequest._associatedReadableByteStreamController=void 0,t._byobRequest._view=void 0,t._byobRequest=void 0)}function Ae(t){for(;t._pendingPullIntos.length>0;){if(0===t._queueTotalSize)return;var e=t._pendingPullIntos.peek();!0===Se(t,e)&&(Me(t),we(t._controlledReadableByteStream,e))}}function Oe(t,e){var n=t._controlledReadableByteStream,r=1;e.constructor!==DataView&&(r=e.constructor.BYTES_PER_ELEMENT);var i=e.constructor,o=f(e.buffer),a={buffer:o,byteOffset:e.byteOffset,byteLength:e.byteLength,bytesFilled:0,elementSize:r,ctor:i,readerType:"byob"};if(t._pendingPullIntos.length>0)return t._pendingPullIntos.push(a),Ye(n);if("closed"===n._state){return g(k(new i(a.buffer,a.byteOffset,0),!0,n._reader._forAuthorCode))}if(t._queueTotalSize>0){if(!0===Se(t,a)){var s=xe(a);return Ee(t),g(k(s,!1,n._reader._forAuthorCode))}if(!0===t._closeRequested){var u=new TypeError("Insufficient bytes to fill elements in the given buffer");return je(t,u),m(u)}}t._pendingPullIntos.push(a);var l=Ye(n);return be(t),l}function Pe(t,e){e.buffer=f(e.buffer);var n=t._controlledReadableByteStream;if(!0===Je(n))for(;Xe(n)>0;){var r=Me(t);we(n,r)}}function Ne(t,e,n){if(n.bytesFilled+e>n.byteLength)throw new RangeError("bytesWritten out of range");if(Ce(t,e,n),!(n.bytesFilled<n.elementSize)){Me(t);var r=n.bytesFilled%n.elementSize;if(r>0){var i=n.byteOffset+n.bytesFilled,o=n.buffer.slice(i-r,i);ke(t,o,0,o.byteLength)}n.buffer=f(n.buffer),n.bytesFilled-=r,we(t._controlledReadableByteStream,n),Ae(t)}}function De(t,e){var n=t._pendingPullIntos.peek();if("closed"===t._controlledReadableByteStream._state){if(0!==e)throw new TypeError("bytesWritten must be 0 when calling respond() on a closed stream");Pe(t,n)}else Ne(t,e,n);be(t)}function Me(t){var e=t._pendingPullIntos.shift();return Te(t),e}function Ie(t){var e=t._controlledReadableByteStream;return"readable"===e._state&&(!0!==t._closeRequested&&(!1!==t._started&&(!0===j(e)&&L(e)>0||(!0===Je(e)&&Xe(e)>0||Fe(t)>0))))}function Re(t){t._pullAlgorithm=void 0,t._cancelAlgorithm=void 0}function $e(t){var e=t._controlledReadableByteStream;if(t._queueTotalSize>0)return void(t._closeRequested=!0);if(t._pendingPullIntos.length>0){if(t._pendingPullIntos.peek().bytesFilled>0){var n=new TypeError("Insufficient bytes to fill elements in the given buffer");throw je(t,n),n}}Re(t),sn(e)}function Le(t,e){var n=t._controlledReadableByteStream,r=e.buffer,i=e.byteOffset,o=e.byteLength,a=f(r);if(!0===j(n))if(0===L(n))ke(t,a,i,o);else{var s=new Uint8Array(a,i,o);$(n,s,!1)}else!0===Je(n)?(ke(t,a,i,o),Ae(t)):ke(t,a,i,o);be(t)}function je(t,e){var n=t._controlledReadableByteStream;"readable"===n._state&&(_e(t),Y(t),Re(t),un(n,e))}function Fe(t){var e=t._controlledReadableByteStream,n=e._state;return"errored"===n?null:"closed"===n?0:t._strategyHWM-t._queueTotalSize}function Be(t,e){if(e=Number(e),!1===o(e))throw new RangeError("bytesWritten must be a finite");De(t,e)}function Ve(t,e){var n=t._pendingPullIntos.peek();if(n.byteOffset+n.bytesFilled!==e.byteOffset)throw new RangeError("The region specified by view does not match byobRequest");if(n.byteLength!==e.byteLength)throw new RangeError("The buffer of view has different capacity than byobRequest");n.buffer=e.buffer,De(t,e.byteLength)}function ze(t,e,n,r,i,o,a){e._controlledReadableByteStream=t,e._pullAgain=!1,e._pulling=!1,e._byobRequest=void 0,e._queue=e._queueTotalSize=void 0,Y(e),e._closeRequested=!1,e._started=!1,e._strategyHWM=d(o),e._pullAlgorithm=r,e._cancelAlgorithm=i,e._autoAllocateChunkSize=a,e._pendingPullIntos=new jn,t._readableStreamController=e,y(g(n()),function(){e._started=!0,be(e)},function(t){je(e,t)})}function Ue(t,e,n){function r(){return l(e,"start",[i])}var i=Object.create(Zn.prototype),o=u(e,"pull",0,[i]),a=u(e,"cancel",1,[]),s=e.autoAllocateChunkSize;if(void 0!==s&&(s=Number(s),!1===Jn(s)||s<=0))throw new RangeError("autoAllocateChunkSize must be a positive integer");ze(t,i,r,o,a,n,s)}function He(t,e,n){t._associatedReadableByteStreamController=e,t._view=n}function qe(t){return new TypeError("ReadableStreamBYOBRequest.prototype."+t+" can only be used on a ReadableStreamBYOBRequest")}function We(t){return new TypeError("ReadableByteStreamController.prototype."+t+" can only be used on a ReadableByteStreamController")}function Ge(t,e){void 0===e&&(e=!1);var n=new tr(t);return n._forAuthorCode=e,n}function Ye(t){return p(function(e,n){var r={_resolve:e,_reject:n};t._reader._readIntoRequests.push(r)})}function Ke(t,e,n){var r=t._reader;r._readIntoRequests.shift()._resolve(k(e,n,r._forAuthorCode))}function Xe(t){return t._reader._readIntoRequests.length}function Je(t){var e=t._reader;return void 0!==e&&!!Qe(e)}function Qe(t){return!!n(t)&&!!Object.prototype.hasOwnProperty.call(t,"_readIntoRequests")}function Ze(t,e){var n=t._ownerReadableStream;return n._disturbed=!0,"errored"===n._state?m(n._storedError):Oe(n._readableStreamController,e)}function tn(t){return new TypeError("ReadableStreamBYOBReader.prototype."+t+" can only be used on a ReadableStreamBYOBReader")}function en(t,e,n,r,i){void 0===r&&(r=1),void 0===i&&(i=function(){return 1});var o=Object.create(er.prototype);return nn(o),he(o,Object.create(Xn.prototype),t,e,n,r,i),o}function nn(t){t._state="readable",t._reader=void 0,t._storedError=void 0,t._disturbed=!1}function rn(t){return!!n(t)&&!!Object.prototype.hasOwnProperty.call(t,"_readableStreamController")}function on(t){return void 0!==t._reader}function an(t,n){return t._disturbed=!0,"closed"===t._state?g(void 0):"errored"===t._state?m(t._storedError):(sn(t),w(t._readableStreamController[Fn](n),e))}function sn(t){t._state="closed";var e=t._reader;void 0!==e&&(F(e)&&(e._readRequests.forEach(function(t){t._resolve(k(void 0,!0,e._forAuthorCode))}),e._readRequests=new jn),M(e))}function un(t,e){t._state="errored",t._storedError=e;var n=t._reader;void 0!==n&&(F(n)?(n._readRequests.forEach(function(t){t._reject(e)}),n._readRequests=new jn):(n._readIntoRequests.forEach(function(t){t._reject(e)}),n._readIntoRequests=new jn),N(n,e))}function ln(t){return new TypeError("ReadableStream.prototype."+t+" can only be used on a ReadableStream")}function cn(t,e,n,r,i,o){function a(){return e}function s(e){return kn(t,e)}function u(e){return Sn(t,e)}function l(){return Cn(t)}function c(){return En(t)}function f(e){return hn(t,e),g(void 0)}t._writable=X(a,s,l,u,n,r),t._readable=en(a,c,f,i,o),t._backpressure=void 0,t._backpressureChangePromise=void 0,t._backpressureChangePromise_resolve=void 0,pn(t,!0),t._transformStreamController=void 0}function fn(t){return!!n(t)&&!!Object.prototype.hasOwnProperty.call(t,"_transformStreamController")}function dn(t,e){le(t._readable._readableStreamController,e),hn(t,e)}function hn(t,e){yn(t._transformStreamController),It(t._writable._writableStreamController,e),!0===t._backpressure&&pn(t,!1)}function pn(t,e){void 0!==t._backpressureChangePromise&&t._backpressureChangePromise_resolve(),t._backpressureChangePromise=p(function(e){t._backpressureChangePromise_resolve=e}),t._backpressure=e}function gn(t){return!!n(t)&&!!Object.prototype.hasOwnProperty.call(t,"_controlledTransformStream")}function mn(t,e,n,r){e._controlledTransformStream=t,t._transformStreamController=e,e._transformAlgorithm=n,e._flushAlgorithm=r}function vn(t,e){var n=Object.create(or.prototype),r=function(t){try{return bn(n,t),g(void 0)}catch(t){return m(t)}},i=e.transform;if(void 0!==i){if("function"!=typeof i)throw new TypeError("transform is not a method");r=function(t){return c(i,e,[t,n])}}var o=u(e,"flush",0,[n]);mn(t,n,r,o)}function yn(t){t._transformAlgorithm=void 0,t._flushAlgorithm=void 0}function bn(t,e){var n=t._controlledTransformStream,r=n._readable._readableStreamController;if(!1===de(r))throw new TypeError("Readable side is not in a state that permits enqueue");try{ue(r,e)}catch(t){throw hn(n,t),n._readable._storedError}fe(r)!==n._backpressure&&pn(n,!0)}function _n(t,e){dn(t._controlledTransformStream,e)}function wn(t,e){return w(t._transformAlgorithm(e),void 0,function(e){throw dn(t._controlledTransformStream,e),e})}function xn(t){var e=t._controlledTransformStream,n=e._readable._readableStreamController;!0===de(n)&&se(n),hn(e,new TypeError("TransformStream terminated"))}function kn(t,e){var n=t._transformStreamController;if(!0===t._backpressure){return w(t._backpressureChangePromise,function(){var r=t._writable;if("erroring"===r._state)throw r._storedError;return wn(n,e)})}return wn(n,e)}function Sn(t,e){return dn(t,e),g(void 0)}function Cn(t){var e=t._readable,n=t._transformStreamController,r=n._flushAlgorithm();return yn(n),w(r,function(){if("errored"===e._state)throw e._storedError;var t=e._readableStreamController;!0===de(t)&&se(t)},function(n){throw dn(t,n),e._storedError})}function En(t){return pn(t,!1),t._backpressureChangePromise}function Tn(t){return new TypeError("TransformStreamDefaultController.prototype."+t+" can only be used on a TransformStreamDefaultController")}function An(t){return new TypeError("TransformStream.prototype."+t+" can only be used on a TransformStream")}var On,Pn,Nn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol:function(t){return"Symbol("+t+")"},Dn=Number.isNaN||function(t){return t!==t},Mn=e,In=Promise,Rn=Promise.prototype.then,$n=Promise.resolve.bind(In),Ln=Promise.reject.bind(In),jn=function(){function t(){this._cursor=0,this._size=0,this._front={_elements:[],_next:void 0},this._back=this._front,this._cursor=0,this._size=0}return Object.defineProperty(t.prototype,"length",{get:function(){return this._size},enumerable:!0,configurable:!0}),t.prototype.push=function(t){var e=this._back,n=e;16383===e._elements.length&&(n={_elements:[],_next:void 0}),e._elements.push(t),n!==e&&(this._back=n,e._next=n),++this._size},t.prototype.shift=function(){var t=this._front,e=t,n=this._cursor,r=n+1,i=t._elements,o=i[n];return 16384===r&&(e=t._next,r=0),--this._size,this._cursor=r,t!==e&&(this._front=e),i[n]=void 0,o},t.prototype.forEach=function(t){for(var e=this._cursor,n=this._front,r=n._elements;!(e===r.length&&void 0===n._next||e===r.length&&(n=n._next,r=n._elements,e=0,0===r.length));)t(r[e]),++e},t.prototype.peek=function(){var t=this._front,e=this._cursor;return t._elements[e]},t}(),Fn=Nn("[[CancelSteps]]"),Bn=Nn("[[PullSteps]]"),Vn=function(){function t(t){if(!1===rn(t))throw new TypeError("ReadableStreamDefaultReader can only be constructed with a ReadableStream instance");if(!0===on(t))throw new TypeError("This stream has already been locked for exclusive reading by another reader");S(this,t),this._readRequests=new jn}return Object.defineProperty(t.prototype,"closed",{get:function(){return F(this)?this._closedPromise:m(V("closed"))},enumerable:!0,configurable:!0}),t.prototype.cancel=function(t){return F(this)?void 0===this._ownerReadableStream?m(T("cancel")):C(this,t):m(V("cancel"))},t.prototype.read=function(){return F(this)?void 0===this._ownerReadableStream?m(T("read from")):B(this):m(V("read"))},t.prototype.releaseLock=function(){if(!F(this))throw V("releaseLock");if(void 0!==this._ownerReadableStream){if(this._readRequests.length>0)throw new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled");E(this)}},t}();"symbol"==typeof Nn.asyncIterator&&(On={},On[Nn.asyncIterator]=function(){return this},Pn=On,Object.defineProperty(Pn,Nn.asyncIterator,{enumerable:!1}));var zn={next:function(){if(!1===U(this))return m(H("next"));var t=this._asyncIteratorReader;return void 0===t._ownerReadableStream?m(T("iterate")):w(B(t),function(e){var n=e.done;return n&&E(t),k(e.value,n,!0)})},return:function(t){if(!1===U(this))return m(H("next"));var e=this._asyncIteratorReader;if(void 0===e._ownerReadableStream)return m(T("finish iterating"));if(e._readRequests.length>0)return m(new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled"));if(!1===this._preventCancel){var n=C(e,t);return E(e),w(n,function(){return k(t,!0,!0)})}return E(e),g(k(t,!0,!0))}};void 0!==Pn&&Object.setPrototypeOf(zn,Pn),Object.defineProperty(zn,"next",{enumerable:!1}),Object.defineProperty(zn,"return",{enumerable:!1});var Un=Nn("[[AbortSteps]]"),Hn=Nn("[[ErrorSteps]]"),qn=function(){function t(t,e){void 0===t&&(t={}),void 0===e&&(e={}),J(this);var n=e.size,r=e.highWaterMark;if(void 0!==t.type)throw new RangeError("Invalid type is specified");var i=h(n);void 0===r&&(r=1),r=d(r),Tt(this,t,r,i)}return Object.defineProperty(t.prototype,"locked",{get:function(){if(!1===Q(this))throw Ft("locked");return Z(this)},enumerable:!0,configurable:!0}),t.prototype.abort=function(t){return!1===Q(this)?m(Ft("abort")):!0===Z(this)?m(new TypeError("Cannot abort a stream that already has a writer")):tt(this,t)},t.prototype.close=function(){return!1===Q(this)?m(Ft("close")):!0===Z(this)?m(new TypeError("Cannot close a stream that already has a writer")):!0===ct(this)?m(new TypeError("Cannot close an already-closing stream")):et(this)},t.prototype.getWriter=function(){if(!1===Q(this))throw Ft("getWriter");return K(this)},t}(),Wn=function(){function t(t){if(!1===Q(t))throw new TypeError("WritableStreamDefaultWriter can only be constructed with a WritableStream instance");if(!0===Z(t))throw new TypeError("This stream has already been locked for exclusive writing by another writer");this._ownerWritableStream=t,t._writer=this;var e=t._state;if("writable"===e)!1===ct(t)&&!0===t._backpressure?Yt(this):Xt(this),zt(this);else if("erroring"===e)Kt(this,t._storedError),zt(this);else if("closed"===e)Xt(this),Ht(this);else{var n=t._storedError;Kt(this,n),Ut(this,n)}}return Object.defineProperty(t.prototype,"closed",{get:function(){return!1===mt(this)?m(Bt("closed")):this._closedPromise},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"desiredSize",{get:function(){if(!1===mt(this))throw Bt("desiredSize");if(void 0===this._ownerWritableStream)throw Vt("desiredSize");return xt(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ready",{get:function(){return!1===mt(this)?m(Bt("ready")):this._readyPromise},enumerable:!0,configurable:!0}),t.prototype.abort=function(t){return!1===mt(this)?m(Bt("abort")):void 0===this._ownerWritableStream?m(Vt("abort")):vt(this,t)},t.prototype.close=function(){if(!1===mt(this))return m(Bt("close"));var t=this._ownerWritableStream;return void 0===t?m(Vt("close")):!0===ct(t)?m(new TypeError("Cannot close an already-closing stream")):yt(this)},t.prototype.releaseLock=function(){if(!1===mt(this))throw Bt("releaseLock");void 0!==this._ownerWritableStream&&kt(this)},t.prototype.write=function(t){return!1===mt(this)?m(Bt("write")):void 0===this._ownerWritableStream?m(Vt("write to")):St(this,t)},t}(),Gn=function(){function t(){throw new TypeError("WritableStreamDefaultController cannot be constructed explicitly")}return t.prototype.error=function(t){if(!1===Ct(this))throw new TypeError("WritableStreamDefaultController.prototype.error can only be used on a WritableStreamDefaultController");"writable"===this._controlledWritableStream._state&&jt(this,t)},t.prototype[Un]=function(t){var e=this._abortAlgorithm(t);return At(this),e},t.prototype[Hn]=function(){Y(this)},t}(),Yn="undefined"!=typeof DOMException?DOMException:void 0,Kn=function(t){if("function"!=typeof t&&"object"!=typeof t)return!1;try{return new t,!0}catch(t){return!1}}(Yn)?Yn:function(){var t=function(t,e){this.message=t||"",this.name=e||"Error",Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)};return t.prototype=Object.create(Error.prototype),Object.defineProperty(t.prototype,"constructor",{value:t,writable:!0,configurable:!0}),t}(),Xn=function(){function t(){throw new TypeError}return Object.defineProperty(t.prototype,"desiredSize",{get:function(){if(!1===re(this))throw ge("desiredSize");return ce(this)},enumerable:!0,configurable:!0}),t.prototype.close=function(){if(!1===re(this))throw ge("close");if(!1===de(this))throw new TypeError("The stream is not in a state that permits close");se(this)},t.prototype.enqueue=function(t){if(!1===re(this))throw ge("enqueue");if(!1===de(this))throw new TypeError("The stream is not in a state that permits enqueue");return ue(this,t)},t.prototype.error=function(t){if(!1===re(this))throw ge("error");le(this,t)},t.prototype[Fn]=function(t){Y(this);var e=this._cancelAlgorithm(t);return ae(this),e},t.prototype[Bn]=function(){var t=this._controlledReadableStream;if(this._queue.length>0){var e=q(this);return!0===this._closeRequested&&0===this._queue.length?(ae(this),sn(t)):ie(this),g(k(e,!1,t._reader._forAuthorCode))}var n=R(t);return ie(this),n},t}(),Jn=Number.isInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t},Qn=function(){function t(){throw new TypeError("ReadableStreamBYOBRequest cannot be used directly")}return Object.defineProperty(t.prototype,"view",{get:function(){if(!1===ye(this))throw qe("view");return this._view},enumerable:!0,configurable:!0}),t.prototype.respond=function(t){if(!1===ye(this))throw qe("respond");if(void 0===this._associatedReadableByteStreamController)throw new TypeError("This BYOB request has been invalidated");this._view.buffer,Be(this._associatedReadableByteStreamController,t)},t.prototype.respondWithNewView=function(t){if(!1===ye(this))throw qe("respond");if(void 0===this._associatedReadableByteStreamController)throw new TypeError("This BYOB request has been invalidated");if(!ArrayBuffer.isView(t))throw new TypeError("You can only respond with array buffer views");t.buffer,Ve(this._associatedReadableByteStreamController,t)},t}(),Zn=function(){function t(){throw new TypeError("ReadableByteStreamController constructor cannot be used directly")}return Object.defineProperty(t.prototype,"byobRequest",{get:function(){if(!1===ve(this))throw We("byobRequest");if(void 0===this._byobRequest&&this._pendingPullIntos.length>0){var t=this._pendingPullIntos.peek(),e=new Uint8Array(t.buffer,t.byteOffset+t.bytesFilled,t.byteLength-t.bytesFilled),n=Object.create(Qn.prototype);He(n,this,e),this._byobRequest=n}return this._byobRequest},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"desiredSize",{get:function(){if(!1===ve(this))throw We("desiredSize");return Fe(this)},enumerable:!0,configurable:!0}),t.prototype.close=function(){if(!1===ve(this))throw We("close");if(!0===this._closeRequested)throw new TypeError("The stream has already been closed; do not close it again!");var t=this._controlledReadableByteStream._state;if("readable"!==t)throw new TypeError("The stream (in "+t+" state) is not in the readable state and cannot be closed");$e(this)},t.prototype.enqueue=function(t){if(!1===ve(this))throw We("enqueue");if(!0===this._closeRequested)throw new TypeError("stream is closed or draining");var e=this._controlledReadableByteStream._state;if("readable"!==e)throw new TypeError("The stream (in "+e+" state) is not in the readable state and cannot be enqueued to");if(!ArrayBuffer.isView(t))throw new TypeError("You can only enqueue array buffer views when using a ReadableByteStreamController");t.buffer,Le(this,t)},t.prototype.error=function(t){if(!1===ve(this))throw We("error");je(this,t)},t.prototype[Fn]=function(t){if(this._pendingPullIntos.length>0){this._pendingPullIntos.peek().bytesFilled=0}Y(this);var e=this._cancelAlgorithm(t);return Re(this),e},t.prototype[Bn]=function(){var t=this._controlledReadableByteStream;if(this._queueTotalSize>0){var e=this._queue.shift();this._queueTotalSize-=e.byteLength,Ee(this);var n=void 0;try{n=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}catch(t){return m(t)}return g(k(n,!1,t._reader._forAuthorCode))}var r=this._autoAllocateChunkSize;if(void 0!==r){var i=void 0;try{i=new ArrayBuffer(r)}catch(t){return m(t)}var o={buffer:i,byteOffset:0,byteLength:r,bytesFilled:0,elementSize:1,ctor:Uint8Array,readerType:"default"};this._pendingPullIntos.push(o)}var a=R(t);return be(this),a},t}(),tr=function(){function t(t){if(!rn(t))throw new TypeError("ReadableStreamBYOBReader can only be constructed with a ReadableStream instance given a byte source");if(!1===ve(t._readableStreamController))throw new TypeError("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");if(on(t))throw new TypeError("This stream has already been locked for exclusive reading by another reader");S(this,t),this._readIntoRequests=new jn}return Object.defineProperty(t.prototype,"closed",{get:function(){return Qe(this)?this._closedPromise:m(tn("closed"))},enumerable:!0,configurable:!0}),t.prototype.cancel=function(t){return Qe(this)?void 0===this._ownerReadableStream?m(T("cancel")):C(this,t):m(tn("cancel"))},t.prototype.read=function(t){return Qe(this)?void 0===this._ownerReadableStream?m(T("read from")):ArrayBuffer.isView(t)?(t.buffer,0===t.byteLength?m(new TypeError("view must have non-zero byteLength")):Ze(this,t)):m(new TypeError("view must be an array buffer view")):m(tn("read"))},t.prototype.releaseLock=function(){if(!Qe(this))throw tn("releaseLock");if(void 0!==this._ownerReadableStream){if(this._readIntoRequests.length>0)throw new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled");E(this)}},t}(),er=function(){function t(t,e){void 0===t&&(t={}),void 0===e&&(e={}),nn(this);var n=e.size,r=e.highWaterMark,i=t.type;if("bytes"===String(i)){if(void 0!==n)throw new RangeError("The strategy for a byte stream cannot have a size function");void 0===r&&(r=0),r=d(r),Ue(this,t,r)}else{if(void 0!==i)throw new RangeError("Invalid type is specified");var o=h(n);void 0===r&&(r=1),r=d(r),pe(this,t,r,o)}}return Object.defineProperty(t.prototype,"locked",{get:function(){if(!1===rn(this))throw ln("locked");return on(this)},enumerable:!0,configurable:!0}),t.prototype.cancel=function(t){return!1===rn(this)?m(ln("cancel")):!0===on(this)?m(new TypeError("Cannot cancel a stream that already has a reader")):an(this,t)},t.prototype.getReader=function(t){var e=(void 0===t?{}:t).mode;if(!1===rn(this))throw ln("getReader");if(void 0===e)return I(this,!0);if("byob"===(e=String(e)))return Ge(this,!0);throw new RangeError("Invalid mode is specified")},t.prototype.pipeThrough=function(t,e){var n=t.writable,r=t.readable,i=void 0===e?{}:e,o=i.preventClose,a=i.preventAbort,s=i.preventCancel,u=i.signal;if(!1===rn(this))throw ln("pipeThrough");if(!1===Q(n))throw new TypeError("writable argument to pipeThrough must be a WritableStream");if(!1===rn(r))throw new TypeError("readable argument to pipeThrough must be a ReadableStream");if(o=Boolean(o),a=Boolean(a),s=Boolean(s),void 0!==u&&!ee(u))throw new TypeError("ReadableStream.prototype.pipeThrough's signal option must be an AbortSignal");if(!0===on(this))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked ReadableStream");if(!0===Z(n))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked WritableStream");return x(ne(this,n,o,a,s,u)),r},t.prototype.pipeTo=function(t,e){var n=void 0===e?{}:e,r=n.preventClose,i=n.preventAbort,o=n.preventCancel,a=n.signal;return!1===rn(this)?m(ln("pipeTo")):!1===Q(t)?m(new TypeError("ReadableStream.prototype.pipeTo's first argument must be a WritableStream")):(r=Boolean(r),i=Boolean(i),o=Boolean(o),void 0===a||ee(a)?!0===on(this)?m(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream")):!0===Z(t)?m(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream")):ne(this,t,r,i,o,a):m(new TypeError("ReadableStream.prototype.pipeTo's signal option must be an AbortSignal")))},t.prototype.tee=function(){if(!1===rn(this))throw ln("tee");return r(me(this))},t.prototype.getIterator=function(t){var e=(void 0===t?{}:t).preventCancel,n=void 0!==e&&e;if(!1===rn(this))throw ln("getIterator");return z(this,n)},t}();"symbol"==typeof Nn.asyncIterator&&Object.defineProperty(er.prototype,Nn.asyncIterator,{value:er.prototype.getIterator,enumerable:!1,writable:!0,configurable:!0});var nr=function(){function t(t){var e=t.highWaterMark;this.highWaterMark=e}return t.prototype.size=function(t){return t.byteLength},t}(),rr=function(){function t(t){var e=t.highWaterMark;this.highWaterMark=e}return t.prototype.size=function(){return 1},t}(),ir=function(){function t(t,e,n){void 0===t&&(t={}),void 0===e&&(e={}),void 0===n&&(n={});var r=e.size,i=e.highWaterMark,o=n.size,a=n.highWaterMark;if(void 0!==t.writableType)throw new RangeError("Invalid writable type specified");var s=h(r);if(void 0===i&&(i=1),i=d(i),void 0!==t.readableType)throw new RangeError("Invalid readable type specified");var u=h(o);void 0===a&&(a=0),a=d(a);var c;cn(this,p(function(t){c=t}),i,s,a,u),vn(this,t);var f=l(t,"start",[this._transformStreamController]);c(f)}return Object.defineProperty(t.prototype,"readable",{get:function(){if(!1===fn(this))throw An("readable");return this._readable},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"writable",{get:function(){if(!1===fn(this))throw An("writable");return this._writable},enumerable:!0,configurable:!0}),t}(),or=function(){function t(){throw new TypeError("TransformStreamDefaultController instances cannot be created directly")}return Object.defineProperty(t.prototype,"desiredSize",{get:function(){if(!1===gn(this))throw Tn("desiredSize");return ce(this._controlledTransformStream._readable._readableStreamController)},enumerable:!0,configurable:!0}),t.prototype.enqueue=function(t){if(!1===gn(this))throw Tn("enqueue");bn(this,t)},t.prototype.error=function(t){if(!1===gn(this))throw Tn("error");_n(this,t)},t.prototype.terminate=function(){if(!1===gn(this))throw Tn("terminate");xn(this)},t}();t.ByteLengthQueuingStrategy=nr,t.CountQueuingStrategy=rr,t.ReadableStream=er,t.TransformStream=ir,t.WritableStream=qn,Object.defineProperty(t,"__esModule",{value:!0})}(e)}()},function(t,e,n){n(147),n(118),n(77),n(120);var r=n(43);t.exports=r.Map},function(t,e,n){"use strict";var r=n(148),i=n(152);t.exports=r("Map",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},i)},function(t,e,n){"use strict";var r=n(10),i=n(11),o=n(52),a=n(29),s=n(149),u=n(104),l=n(126),c=n(22),f=n(14),d=n(97),h=n(85),p=n(151);t.exports=function(t,e,n){var g=-1!==t.indexOf("Map"),m=-1!==t.indexOf("Weak"),v=g?"set":"add",y=i[t],b=y&&y.prototype,_=y,w={},x=function(t){var e=b[t];a(b,t,"add"==t?function(t){return e.call(this,0===t?0:t),this}:"delete"==t?function(t){return!(m&&!c(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return m&&!c(t)?void 0:e.call(this,0===t?0:t)}:"has"==t?function(t){return!(m&&!c(t))&&e.call(this,0===t?0:t)}:function(t,n){return e.call(this,0===t?0:t,n),this})};if(o(t,"function"!=typeof y||!(m||b.forEach&&!f(function(){(new y).entries().next()}))))_=n.getConstructor(e,t,g,v),s.REQUIRED=!0;else if(o(t,!0)){var k=new _,S=k[v](m?{}:-0,1)!=k,C=f(function(){k.has(1)}),E=d(function(t){new y(t)}),T=!m&&f(function(){for(var t=new y,e=5;e--;)t[v](e,e);return!t.has(-0)});E||(_=e(function(e,n){l(e,_,t);var r=p(new y,e,_);return void 0!=n&&u(n,r[v],r,g),r}),_.prototype=b,b.constructor=_),(C||T)&&(x("delete"),x("has"),g&&x("get")),(T||S)&&x(v),m&&b.clear&&delete b.clear}return w[t]=_,r({global:!0,forced:_!=y},w),h(_,t),m||n.setStrong(_,t,g),_}},function(t,e,n){var r=n(39),i=n(22),o=n(23),a=n(27).f,s=n(38),u=n(150),l=s("meta"),c=0,f=Object.isExtensible||function(){return!0},d=function(t){a(t,l,{value:{objectID:"O"+ ++c,weakData:{}}})},h=function(t,e){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,l)){if(!f(t))return"F";if(!e)return"E";d(t)}return t[l].objectID},p=function(t,e){if(!o(t,l)){if(!f(t))return!0;if(!e)return!1;d(t)}return t[l].weakData},g=function(t){return u&&m.REQUIRED&&f(t)&&!o(t,l)&&d(t),t},m=t.exports={REQUIRED:!1,fastKey:h,getWeakData:p,onFreeze:g};r[l]=!0},function(t,e,n){var r=n(14);t.exports=!r(function(){return Object.isExtensible(Object.preventExtensions({}))})},function(t,e,n){var r=n(22),i=n(87);t.exports=function(t,e,n){var o,a;return i&&"function"==typeof(o=e.constructor)&&o!==n&&r(a=o.prototype)&&a!==n.prototype&&i(t,a),t}},function(t,e,n){"use strict";var r=n(27).f,i=n(71),o=n(124),a=n(62),s=n(126),u=n(104),l=n(79),c=n(125),f=n(13),d=n(149).fastKey,h=n(33),p=h.set,g=h.getterFor;t.exports={getConstructor:function(t,e,n,l){var c=t(function(t,r){s(t,c,e),p(t,{type:e,index:i(null),first:void 0,last:void 0,size:0}),f||(t.size=0),void 0!=r&&u(r,t[l],t,n)}),h=g(e),m=function(t,e,n){var r,i,o=h(t),a=v(t,e);return a?a.value=n:(o.last=a={index:i=d(e,!0),key:e,value:n,previous:r=o.last,next:void 0,removed:!1},o.first||(o.first=a),r&&(r.next=a),f?o.size++:t.size++,"F"!==i&&(o.index[i]=a)),t},v=function(t,e){var n,r=h(t),i=d(e);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key==e)return n};return o(c.prototype,{clear:function(){for(var t=this,e=h(t),n=e.index,r=e.first;r;)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete n[r.index],r=r.next;e.first=e.last=void 0,f?e.size=0:t.size=0},delete:function(t){var e=this,n=h(e),r=v(e,t);if(r){var i=r.next,o=r.previous;delete n.index[r.index],r.removed=!0,o&&(o.next=i),i&&(i.previous=o),n.first==r&&(n.first=i),n.last==r&&(n.last=o),f?n.size--:e.size--}return!!r},forEach:function(t){for(var e,n=h(this),r=a(t,arguments.length>1?arguments[1]:void 0,3);e=e?e.next:n.first;)for(r(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!v(this,t)}}),o(c.prototype,n?{get:function(t){var e=v(this,t);return e&&e.value},set:function(t,e){return m(this,0===t?0:t,e)}}:{add:function(t){return m(this,t=0===t?0:t,t)}}),f&&r(c.prototype,"size",{get:function(){return h(this).size}}),c},setStrong:function(t,e,n){var r=e+" Iterator",i=g(e),o=g(r);l(t,e,function(t,e){p(this,{type:r,target:t,state:i(t),kind:e,last:void 0})},function(){for(var t=o(this),e=t.kind,n=t.last;n&&n.removed;)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?"keys"==e?{value:n.key,done:!1}:"values"==e?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})},n?"entries":"values",!n,!0),c(e)}}},function(t,e,n){n(154),n(118),n(77),n(120);var r=n(43);t.exports=r.Set},function(t,e,n){"use strict";var r=n(148),i=n(152);t.exports=r("Set",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},i)},function(t,e,n){n(118),n(156),n(120);var r=n(43);t.exports=r.WeakMap},function(t,e,n){"use strict";var r,i=n(11),o=n(124),a=n(149),s=n(148),u=n(157),l=n(22),c=n(33).enforce,f=n(34),d=!i.ActiveXObject&&"ActiveXObject"in i,h=Object.isExtensible,p=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},g=t.exports=s("WeakMap",p,u);if(f&&d){r=u.getConstructor(p,"WeakMap",!0),a.REQUIRED=!0;var m=g.prototype,v=m.delete,y=m.has,b=m.get,_=m.set;o(m,{delete:function(t){if(l(t)&&!h(t)){var e=c(this);return e.frozen||(e.frozen=new r),v.call(this,t)||e.frozen.delete(t)}return v.call(this,t)},has:function(t){if(l(t)&&!h(t)){var e=c(this);return e.frozen||(e.frozen=new r),y.call(this,t)||e.frozen.has(t)}return y.call(this,t)},get:function(t){if(l(t)&&!h(t)){var e=c(this);return e.frozen||(e.frozen=new r),y.call(this,t)?b.call(this,t):e.frozen.get(t)}return b.call(this,t)},set:function(t,e){if(l(t)&&!h(t)){var n=c(this);n.frozen||(n.frozen=new r),y.call(this,t)?_.call(this,t,e):n.frozen.set(t,e)}else _.call(this,t,e);return this}})}},function(t,e,n){"use strict";var r=n(124),i=n(149).getWeakData,o=n(28),a=n(22),s=n(126),u=n(104),l=n(158),c=n(23),f=n(33),d=f.set,h=f.getterFor,p=l.find,g=l.findIndex,m=0,v=function(t){return t.frozen||(t.frozen=new y)},y=function(){this.entries=[]},b=function(t,e){return p(t.entries,function(t){return t[0]===e})};y.prototype={get:function(t){var e=b(this,t);if(e)return e[1]},has:function(t){return!!b(this,t)},set:function(t,e){var n=b(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=g(this.entries,function(e){return e[0]===t});return~e&&this.entries.splice(e,1),!!~e}},t.exports={getConstructor:function(t,e,n,l){var f=t(function(t,r){s(t,f,e),d(t,{type:e,id:m++,frozen:void 0}),void 0!=r&&u(r,t[l],t,n)}),p=h(e),g=function(t,e,n){var r=p(t),a=i(o(e),!0);return!0===a?v(r).set(e,n):a[r.id]=n,t};return r(f.prototype,{delete:function(t){var e=p(this);if(!a(t))return!1;var n=i(t);return!0===n?v(e).delete(t):n&&c(n,e.id)&&delete n[e.id]},has:function(t){var e=p(this);if(!a(t))return!1;var n=i(t);return!0===n?v(e).has(t):n&&c(n,e.id)}}),r(f.prototype,n?{get:function(t){var e=p(this);if(a(t)){var n=i(t);return!0===n?v(e).get(t):n?n[e.id]:void 0}},set:function(t,e){return g(this,t,e)}}:{add:function(t){return g(this,t,!0)}}),f}}},function(t,e,n){var r=n(62),i=n(18),o=n(83),a=n(47),s=n(159),u=[].push,l=function(t){var e=1==t,n=2==t,l=3==t,c=4==t,f=6==t,d=5==t||f;return function(h,p,g,m){for(var v,y,b=o(h),_=i(b),w=r(p,g,3),x=a(_.length),k=0,S=m||s,C=e?S(h,x):n?S(h,0):void 0;x>k;k++)if((d||k in _)&&(v=_[k],y=w(v,k,b),t))if(e)C[k]=y;else if(y)switch(t){case 3:return!0;case 5:return v;case 6:return k;case 2:u.call(C,v)}else if(c)return!1;return f?-1:l||c?c:C}};t.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6)}},function(t,e,n){var r=n(22),i=n(160),o=n(57),a=o("species");t.exports=function(t,e){var n;return i(t)&&(n=t.constructor,"function"!=typeof n||n!==Array&&!i(n.prototype)?r(n)&&null===(n=n[a])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)}},function(t,e,n){var r=n(19);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){n(118),n(162),n(120);var r=n(43);t.exports=r.WeakSet},function(t,e,n){"use strict";var r=n(148),i=n(157);r("WeakSet",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},i)},function(t,e,n){n(164);var r=n(61);t.exports=r("String","codePointAt")},function(t,e,n){"use strict";var r=n(10),i=n(78).codeAt;r({target:"String",proto:!0},{codePointAt:function(t){return i(this,t)}})},function(t,e,n){n(166);var r=n(43);t.exports=r.String.fromCodePoint},function(t,e,n){var r=n(10),i=n(49),o=String.fromCharCode,a=String.fromCodePoint;r({target:"String",stat:!0,forced:!!a&&1!=a.length},{fromCodePoint:function(t){for(var e,n=[],r=arguments.length,a=0;r>a;){if(e=+arguments[a++],i(e,1114111)!==e)throw RangeError(e+" is not a valid code point");n.push(e<65536?o(e):o(55296+((e-=65536)>>10),e%1024+56320))}return n.join("")}})},function(t,e,n){n(168),n(118),n(170),n(174),n(175),n(176),n(177),n(178),n(179),n(180),n(181),n(182),n(183),n(184),n(185),n(186),n(187),n(188),n(189);var r=n(43);t.exports=r.Symbol},function(t,e,n){"use strict";var r=n(10),i=n(14),o=n(160),a=n(22),s=n(83),u=n(47),l=n(93),c=n(159),f=n(169),d=n(57),h=n(135),p=d("isConcatSpreadable"),g=h>=51||!i(function(){var t=[];return t[p]=!1,t.concat()[0]!==t}),m=f("concat"),v=function(t){if(!a(t))return!1;var e=t[p];return void 0!==e?!!e:o(t)};r({target:"Array",proto:!0,forced:!g||!m},{concat:function(t){var e,n,r,i,o,a=s(this),f=c(a,0),d=0;for(e=-1,r=arguments.length;e<r;e++)if(o=-1===e?a:arguments[e],v(o)){if(i=u(o.length),d+i>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<i;n++,d++)n in o&&l(f,d,o[n])}else{if(d>=9007199254740991)throw TypeError("Maximum allowed index exceeded");l(f,d++,o)}return f.length=d,f}})},function(t,e,n){var r=n(14),i=n(57),o=n(135),a=i("species");t.exports=function(t){return o>=51||!r(function(){var e=[],n=e.constructor={};return n[a]=function(){return{foo:1}},1!==e[t](Boolean).foo})}},function(t,e,n){"use strict";var r=n(10),i=n(11),o=n(42),a=n(37),s=n(13),u=n(58),l=n(59),c=n(14),f=n(23),d=n(160),h=n(22),p=n(28),g=n(83),m=n(17),v=n(21),y=n(16),b=n(71),_=n(73),w=n(44),x=n(171),k=n(51),S=n(12),C=n(27),E=n(15),T=n(26),A=n(29),O=n(36),P=n(35),N=n(39),D=n(38),M=n(57),I=n(172),R=n(173),$=n(85),L=n(33),j=n(158).forEach,F=P("hidden"),B=M("toPrimitive"),V=L.set,z=L.getterFor("Symbol"),U=Object.prototype,H=i.Symbol,q=o("JSON","stringify"),W=S.f,G=C.f,Y=x.f,K=E.f,X=O("symbols"),J=O("op-symbols"),Q=O("string-to-symbol-registry"),Z=O("symbol-to-string-registry"),tt=O("wks"),et=i.QObject,nt=!et||!et.prototype||!et.prototype.findChild,rt=s&&c(function(){return 7!=b(G({},"a",{get:function(){return G(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=W(U,e);r&&delete U[e],G(t,e,n),r&&t!==U&&G(U,e,r)}:G,it=function(t,e){var n=X[t]=b(H.prototype);return V(n,{type:"Symbol",tag:t,description:e}),s||(n.description=e),n},ot=l?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof H},at=function(t,e,n){t===U&&at(J,e,n),p(t);var r=v(e,!0);return p(n),f(X,r)?(n.enumerable?(f(t,F)&&t[F][r]&&(t[F][r]=!1),n=b(n,{enumerable:y(0,!1)})):(f(t,F)||G(t,F,y(1,{})),t[F][r]=!0),rt(t,r,n)):G(t,r,n)},st=function(t,e){p(t);var n=m(e),r=_(n).concat(dt(n));return j(r,function(e){s&&!lt.call(n,e)||at(t,e,n[e])}),t},ut=function(t,e){return void 0===e?b(t):st(b(t),e)},lt=function(t){var e=v(t,!0),n=K.call(this,e);return!(this===U&&f(X,e)&&!f(J,e))&&(!(n||!f(this,e)||!f(X,e)||f(this,F)&&this[F][e])||n)},ct=function(t,e){var n=m(t),r=v(e,!0);if(n!==U||!f(X,r)||f(J,r)){var i=W(n,r);return!i||!f(X,r)||f(n,F)&&n[F][r]||(i.enumerable=!0),i}},ft=function(t){var e=Y(m(t)),n=[];return j(e,function(t){f(X,t)||f(N,t)||n.push(t)}),n},dt=function(t){var e=t===U,n=Y(e?J:m(t)),r=[];return j(n,function(t){!f(X,t)||e&&!f(U,t)||r.push(X[t])}),r};if(u||(H=function(){if(this instanceof H)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=D(t),n=function(t){this===U&&n.call(J,t),f(this,F)&&f(this[F],e)&&(this[F][e]=!1),rt(this,e,y(1,t))};return s&&nt&&rt(U,e,{configurable:!0,set:n}),it(e,t)},A(H.prototype,"toString",function(){return z(this).tag}),A(H,"withoutSetter",function(t){return it(D(t),t)}),E.f=lt,C.f=at,S.f=ct,w.f=x.f=ft,k.f=dt,I.f=function(t){return it(M(t),t)},s&&(G(H.prototype,"description",{configurable:!0,get:function(){return z(this).description}}),a||A(U,"propertyIsEnumerable",lt,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!u,sham:!u},{Symbol:H}),j(_(tt),function(t){R(t)}),r({target:"Symbol",stat:!0,forced:!u},{for:function(t){var e=String(t);if(f(Q,e))return Q[e];var n=H(e);return Q[e]=n,Z[n]=e,n},keyFor:function(t){if(!ot(t))throw TypeError(t+" is not a symbol");if(f(Z,t))return Z[t]},useSetter:function(){nt=!0},useSimple:function(){nt=!1}}),r({target:"Object",stat:!0,forced:!u,sham:!s},{create:ut,defineProperty:at,defineProperties:st,getOwnPropertyDescriptor:ct}),r({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:ft,getOwnPropertySymbols:dt}),r({target:"Object",stat:!0,forced:c(function(){k.f(1)})},{getOwnPropertySymbols:function(t){return k.f(g(t))}}),q){r({target:"JSON",stat:!0,forced:!u||c(function(){var t=H();return"[null]"!=q([t])||"{}"!=q({a:t})||"{}"!=q(Object(t))})},{stringify:function(t,e,n){for(var r,i=[t],o=1;arguments.length>o;)i.push(arguments[o++]);if(r=e,(h(e)||void 0!==t)&&!ot(t))return d(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!ot(e))return e}),i[1]=e,q.apply(null,i)}})}H.prototype[B]||T(H.prototype,B,H.prototype.valueOf),$(H,"Symbol"),N[F]=!0},function(t,e,n){var r=n(17),i=n(44).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(t){try{return i(t)}catch(t){return a.slice()}};t.exports.f=function(t){return a&&"[object Window]"==o.call(t)?s(t):i(r(t))}},function(t,e,n){var r=n(57);e.f=r},function(t,e,n){var r=n(43),i=n(23),o=n(172),a=n(27).f;t.exports=function(t){var e=r.Symbol||(r.Symbol={});i(e,t)||a(e,t,{value:o.f(t)})}},function(t,e,n){n(173)("asyncIterator")},function(t,e,n){"use strict";var r=n(10),i=n(13),o=n(11),a=n(23),s=n(22),u=n(27).f,l=n(40),c=o.Symbol;if(i&&"function"==typeof c&&(!("description"in c.prototype)||void 0!==c().description)){var f={},d=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof d?new c(t):void 0===t?c():c(t);return""===t&&(f[e]=!0),e};l(d,c);var h=d.prototype=c.prototype;h.constructor=d;var p=h.toString,g="Symbol(test)"==String(c("test")),m=/^Symbol\((.*)\)[^)]+$/;u(h,"description",{configurable:!0,get:function(){var t=s(this)?this.valueOf():this,e=p.call(t);if(a(f,t))return"";var n=g?e.slice(7,-1):e.replace(m,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:d})}},function(t,e,n){n(173)("hasInstance")},function(t,e,n){n(173)("isConcatSpreadable")},function(t,e,n){n(173)("iterator")},function(t,e,n){n(173)("match")},function(t,e,n){n(173)("matchAll")},function(t,e,n){n(173)("replace")},function(t,e,n){n(173)("search")},function(t,e,n){n(173)("species")},function(t,e,n){n(173)("split")},function(t,e,n){n(173)("toPrimitive")},function(t,e,n){n(173)("toStringTag")},function(t,e,n){n(173)("unscopables")},function(t,e,n){n(85)(Math,"Math",!0)},function(t,e,n){var r=n(11);n(85)(r.JSON,"JSON",!0)},function(t,e,n){n(191);var r=n(61);t.exports=r("String","padStart")},function(t,e,n){"use strict";var r=n(10),i=n(192).start;r({target:"String",proto:!0,forced:n(194)},{padStart:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){var r=n(47),i=n(193),o=n(20),a=Math.ceil,s=function(t){return function(e,n,s){var u,l,c=String(o(e)),f=c.length,d=void 0===s?" ":String(s),h=r(n);return h<=f||""==d?c:(u=h-f,l=i.call(d,a(u/d.length)),l.length>u&&(l=l.slice(0,u)),t?c+l:l+c)}};t.exports={start:s(!1),end:s(!0)}},function(t,e,n){"use strict";var r=n(48),i=n(20);t.exports="".repeat||function(t){var e=String(i(this)),n="",o=r(t);if(o<0||o==1/0)throw RangeError("Wrong number of repetitions");for(;o>0;(o>>>=1)&&(e+=e))1&o&&(n+=e);return n}},function(t,e,n){var r=n(129);t.exports=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(r)},function(t,e,n){n(196);var r=n(61);t.exports=r("String","padEnd")},function(t,e,n){"use strict";var r=n(10),i=n(192).end;r({target:"String",proto:!0,forced:n(194)},{padEnd:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){n(198);var r=n(43);t.exports=r.Object.values},function(t,e,n){var r=n(10),i=n(199).values;r({target:"Object",stat:!0},{values:function(t){return i(t)}})},function(t,e,n){var r=n(13),i=n(73),o=n(17),a=n(15).f,s=function(t){return function(e){for(var n,s=o(e),u=i(s),l=u.length,c=0,f=[];l>c;)n=u[c++],r&&!a.call(s,n)||f.push(t?[n,s[n]]:s[n]);return f}};t.exports={entries:s(!0),values:s(!1)}},function(t,e,n){n(201);var r=n(43);t.exports=r.Object.entries},function(t,e,n){var r=n(10),i=n(199).entries;r({target:"Object",stat:!0},{entries:function(t){return i(t)}})},function(module,exports,__w_pdfjs_require__){"use strict";function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}function asyncGeneratorStep(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}function _asyncToGenerator(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){function o(t){asyncGeneratorStep(s,r,i,o,a,"next",t)}function a(t){asyncGeneratorStep(s,r,i,o,a,"throw",t)}var s=t.apply(e,n);o(void 0)})}}function _toConsumableArray(t){return _arrayWithoutHoles(t)||_iterableToArray(t)||_unsupportedIterableToArray(t)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArray(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}function _arrayWithoutHoles(t){if(Array.isArray(t))return _arrayLikeToArray(t)}function _createForOfIteratorHelper(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=_unsupportedIterableToArray(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},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=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function _createClass(t,e,n){return e&&_defineProperties(t.prototype,e),n&&_defineProperties(t,n),t}function _slicedToArray(t,e){return _arrayWithHoles(t)||_iterableToArrayLimit(t,e)||_unsupportedIterableToArray(t,e)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(t,e){if(t){if("string"==typeof t)return _arrayLikeToArray(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(t,e):void 0}}function _arrayLikeToArray(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function _iterableToArrayLimit(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}function _arrayWithHoles(t){if(Array.isArray(t))return t}function _typeof(t){"@babel/helpers - typeof";return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function setPDFNetworkStreamFactory(t){createPDFNetworkStream=t}function getDocument(t){var e,n=new PDFDocumentLoadingTask;if("string"==typeof t)e={url:t};else if((0,_util.isArrayBuffer)(t))e={data:t};else if(t instanceof PDFDataRangeTransport)e={range:t};else{if("object"!==_typeof(t))throw new Error("Invalid parameter in getDocument, need either Uint8Array, string or a parameter object");if(!t.url&&!t.data&&!t.range)throw new Error("Invalid parameter object: need either .data, .range or .url");e=t}var r=Object.create(null),i=null,o=null;for(var a in e)if("url"!==a||"undefined"==typeof window)if("range"!==a)if("worker"!==a)if("data"!==a||e[a]instanceof Uint8Array)r[a]=e[a];else{var s=e[a];if("string"==typeof s)r[a]=(0,_util.stringToBytes)(s);else if("object"!==_typeof(s)||null===s||isNaN(s.length)){if(!(0,_util.isArrayBuffer)(s))throw new Error("Invalid PDF binary data: either typed array, string or array-like object is expected in the data property.");r[a]=new Uint8Array(s)}else r[a]=new Uint8Array(s)}else o=e[a];else i=e[a];else r[a]=new URL(e[a],window.location).href;if(r.rangeChunkSize=r.rangeChunkSize||DEFAULT_RANGE_CHUNK_SIZE,r.CMapReaderFactory=r.CMapReaderFactory||DefaultCMapReaderFactory,r.ignoreErrors=!0!==r.stopAtErrors,r.fontExtraProperties=!0===r.fontExtraProperties,r.pdfBug=!0===r.pdfBug,Number.isInteger(r.maxImageSize)||(r.maxImageSize=-1),"boolean"!=typeof r.isEvalSupported&&(r.isEvalSupported=!0),"boolean"!=typeof r.disableFontFace&&(r.disableFontFace=_api_compatibility.apiCompatibilityParams.disableFontFace||!1),void 0===r.ownerDocument&&(r.ownerDocument=globalThis.document),"boolean"!=typeof r.disableRange&&(r.disableRange=!1),"boolean"!=typeof r.disableStream&&(r.disableStream=!1),"boolean"!=typeof r.disableAutoFetch&&(r.disableAutoFetch=!1),(0,_util.setVerbosityLevel)(r.verbosity),!o){var u={verbosity:r.verbosity,port:_worker_options.GlobalWorkerOptions.workerPort};o=u.port?PDFWorker.fromPort(u):new PDFWorker(u),n._worker=o}var l=n.docId;return o.promise.then(function(){if(n.destroyed)throw new Error("Loading aborted");var t=_fetchDocument(o,r,i,l),e=new Promise(function(t){var e;i?e=new _transport_stream.PDFDataTransportStream({length:r.length,initialData:r.initialData,progressiveDone:r.progressiveDone,disableRange:r.disableRange,disableStream:r.disableStream},i):r.data||(e=createPDFNetworkStream({url:r.url,length:r.length,httpHeaders:r.httpHeaders,withCredentials:r.withCredentials,rangeChunkSize:r.rangeChunkSize,disableRange:r.disableRange,disableStream:r.disableStream})),t(e)});return Promise.all([t,e]).then(function(t){var e=_slicedToArray(t,2),i=e[0],a=e[1];if(n.destroyed)throw new Error("Loading aborted");var s=new _message_handler.MessageHandler(l,i,o.port);s.postMessageTransfers=o.postMessageTransfers;var u=new WorkerTransport(s,n,a,r);n._transport=u,s.send("Ready",null)})}).catch(n._capability.reject),n}function _fetchDocument(t,e,n,r){return t.destroyed?Promise.reject(new Error("Worker was destroyed")):(n&&(e.length=n.length,e.initialData=n.initialData,e.progressiveDone=n.progressiveDone),t.messageHandler.sendWithPromise("GetDocRequest",{docId:r,apiVersion:"2.6.347",source:{data:e.data,url:e.url,password:e.password,disableAutoFetch:e.disableAutoFetch,rangeChunkSize:e.rangeChunkSize,length:e.length},maxImageSize:e.maxImageSize,disableFontFace:e.disableFontFace,postMessageTransfers:t.postMessageTransfers,docBaseUrl:e.docBaseUrl,ignoreErrors:e.ignoreErrors,isEvalSupported:e.isEvalSupported,fontExtraProperties:e.fontExtraProperties}).then(function(e){if(t.destroyed)throw new Error("Worker was destroyed");return e}))}Object.defineProperty(exports,"__esModule",{value:!0}),exports.getDocument=getDocument,exports.setPDFNetworkStreamFactory=setPDFNetworkStreamFactory,exports.build=exports.version=exports.PDFPageProxy=exports.PDFDocumentProxy=exports.PDFWorker=exports.PDFDataRangeTransport=exports.LoopbackPort=void 0;var _regenerator=_interopRequireDefault(__w_pdfjs_require__(2)),_util=__w_pdfjs_require__(5),_display_utils=__w_pdfjs_require__(1),_font_loader=__w_pdfjs_require__(203),_node_utils=__w_pdfjs_require__(204),_annotation_storage=__w_pdfjs_require__(205),_api_compatibility=__w_pdfjs_require__(206),_canvas=__w_pdfjs_require__(207),_worker_options=__w_pdfjs_require__(209),_is_node=__w_pdfjs_require__(7),_message_handler=__w_pdfjs_require__(210),_metadata=__w_pdfjs_require__(211),_optional_content_config=__w_pdfjs_require__(213),_transport_stream=__w_pdfjs_require__(214),_webgl=__w_pdfjs_require__(215),DEFAULT_RANGE_CHUNK_SIZE=65536,RENDERING_CANCELLED_TIMEOUT=100,DefaultCanvasFactory=_is_node.isNodeJS?_node_utils.NodeCanvasFactory:_display_utils.DOMCanvasFactory,DefaultCMapReaderFactory=_is_node.isNodeJS?_node_utils.NodeCMapReaderFactory:_display_utils.DOMCMapReaderFactory,createPDFNetworkStream,PDFDocumentLoadingTask=function(){var t=0;return function(){function e(){_classCallCheck(this,e),this._capability=(0,_util.createPromiseCapability)(),this._transport=null,this._worker=null,this.docId="d"+t++,this.destroyed=!1,this.onPassword=null,this.onProgress=null,this.onUnsupportedFeature=null}return _createClass(e,[{key:"destroy",value:function(){var t=this;return this.destroyed=!0,(this._transport?this._transport.destroy():Promise.resolve()).then(function(){t._transport=null,t._worker&&(t._worker.destroy(),t._worker=null)})}},{key:"promise",get:function(){return this._capability.promise}}]),e}()}(),PDFDataRangeTransport=function(){function t(e,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];_classCallCheck(this,t),this.length=e,this.initialData=n,this.progressiveDone=r,this._rangeListeners=[],this._progressListeners=[],this._progressiveReadListeners=[],this._progressiveDoneListeners=[],this._readyCapability=(0,_util.createPromiseCapability)()}return _createClass(t,[{key:"addRangeListener",value:function(t){this._rangeListeners.push(t)}},{key:"addProgressListener",value:function(t){this._progressListeners.push(t)}},{key:"addProgressiveReadListener",value:function(t){this._progressiveReadListeners.push(t)}},{key:"addProgressiveDoneListener",value:function(t){this._progressiveDoneListeners.push(t)}},{key:"onDataRange",value:function(t,e){var n,r=_createForOfIteratorHelper(this._rangeListeners);try{for(r.s();!(n=r.n()).done;){(0,n.value)(t,e)}}catch(t){r.e(t)}finally{r.f()}}},{key:"onDataProgress",value:function(t,e){var n=this;this._readyCapability.promise.then(function(){var r,i=_createForOfIteratorHelper(n._progressListeners);try{for(i.s();!(r=i.n()).done;){(0,r.value)(t,e)}}catch(t){i.e(t)}finally{i.f()}})}},{key:"onDataProgressiveRead",value:function(t){var e=this;this._readyCapability.promise.then(function(){var n,r=_createForOfIteratorHelper(e._progressiveReadListeners);try{for(r.s();!(n=r.n()).done;){(0,n.value)(t)}}catch(t){r.e(t)}finally{r.f()}})}},{key:"onDataProgressiveDone",value:function(){var t=this;this._readyCapability.promise.then(function(){var e,n=_createForOfIteratorHelper(t._progressiveDoneListeners);try{for(n.s();!(e=n.n()).done;){(0,e.value)()}}catch(t){n.e(t)}finally{n.f()}})}},{key:"transportReady",value:function(){this._readyCapability.resolve()}},{key:"requestDataRange",value:function(t,e){(0,_util.unreachable)("Abstract method PDFDataRangeTransport.requestDataRange")}},{key:"abort",value:function(){}}]),t}();exports.PDFDataRangeTransport=PDFDataRangeTransport;var PDFDocumentProxy=function(){function t(e,n){_classCallCheck(this,t),this._pdfInfo=e,this._transport=n}return _createClass(t,[{key:"getPage",value:function(t){return this._transport.getPage(t)}},{key:"getPageIndex",value:function(t){return this._transport.getPageIndex(t)}},{key:"getDestinations",value:function(){return this._transport.getDestinations()}},{key:"getDestination",value:function(t){return this._transport.getDestination(t)}},{key:"getPageLabels",value:function(){return this._transport.getPageLabels()}},{key:"getPageLayout",value:function(){return this._transport.getPageLayout()}},{key:"getPageMode",value:function(){return this._transport.getPageMode()}},{key:"getViewerPreferences",value:function(){return this._transport.getViewerPreferences()}},{key:"getOpenAction",value:function(){return this._transport.getOpenAction()}},{key:"getAttachments",value:function(){return this._transport.getAttachments()}},{key:"getJavaScript",value:function(){return this._transport.getJavaScript()}},{key:"getOutline",value:function(){return this._transport.getOutline()}},{key:"getOptionalContentConfig",value:function(){return this._transport.getOptionalContentConfig()}},{key:"getPermissions",value:function(){return this._transport.getPermissions()}},{key:"getMetadata",value:function(){return this._transport.getMetadata()}},{key:"getData",value:function(){return this._transport.getData()}},{key:"getDownloadInfo",value:function(){return this._transport.downloadInfoCapability.promise}},{key:"getStats",value:function(){return this._transport.getStats()}},{key:"cleanup",value:function(){return this._transport.startCleanup()}},{key:"destroy",value:function(){return this.loadingTask.destroy()}},{key:"saveDocument",value:function(t){return this._transport.saveDocument(t)}},{key:"annotationStorage",get:function(){return(0,_util.shadow)(this,"annotationStorage",new _annotation_storage.AnnotationStorage)}},{key:"numPages",get:function(){return this._pdfInfo.numPages}},{key:"fingerprint",get:function(){return this._pdfInfo.fingerprint}},{key:"loadingParams",get:function(){return this._transport.loadingParams}},{key:"loadingTask",get:function(){return this._transport.loadingTask}}]),t}();exports.PDFDocumentProxy=PDFDocumentProxy;var PDFPageProxy=function(){function t(e,n,r,i){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];_classCallCheck(this,t),this._pageIndex=e,this._pageInfo=n,this._ownerDocument=i,this._transport=r,this._stats=o?new _display_utils.StatTimer:null,this._pdfBug=o,this.commonObjs=r.commonObjs,this.objs=new PDFObjects,this.cleanupAfterRender=!1,this.pendingCleanup=!1,this._intentStates=new Map,this.destroyed=!1}return _createClass(t,[{key:"getViewport",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.scale,n=t.rotation,r=void 0===n?this.rotate:n,i=t.offsetX,o=void 0===i?0:i,a=t.offsetY,s=void 0===a?0:a,u=t.dontFlip,l=void 0!==u&&u;return new _display_utils.PageViewport({viewBox:this.view,scale:e,rotation:r,offsetX:o,offsetY:s,dontFlip:l})}},{key:"getAnnotations",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.intent,n=void 0===e?null:e;return this.annotationsPromise&&this.annotationsIntent===n||(this.annotationsPromise=this._transport.getAnnotations(this._pageIndex,n),this.annotationsIntent=n),this.annotationsPromise}},{key:"render",value:function(t){var e=this,n=t.canvasContext,r=t.viewport,i=t.intent,o=void 0===i?"display":i,a=t.enableWebGL,s=void 0!==a&&a,u=t.renderInteractiveForms,l=void 0!==u&&u,c=t.transform,f=void 0===c?null:c,d=t.imageLayer,h=void 0===d?null:d,p=t.canvasFactory,g=void 0===p?null:p,m=t.background,v=void 0===m?null:m,y=t.annotationStorage,b=void 0===y?null:y,_=t.optionalContentConfigPromise,w=void 0===_?null:_;this._stats&&this._stats.time("Overall");var x="print"===o?"print":"display";this.pendingCleanup=!1,w||(w=this._transport.getOptionalContentConfig());var k=this._intentStates.get(x);k||(k=Object.create(null),this._intentStates.set(x,k)),k.streamReaderCancelTimeout&&(clearTimeout(k.streamReaderCancelTimeout),k.streamReaderCancelTimeout=null);var S=g||new DefaultCanvasFactory({ownerDocument:this._ownerDocument}),C=new _webgl.WebGLContext({enable:s});k.displayReadyCapability||(k.displayReadyCapability=(0,_util.createPromiseCapability)(),k.operatorList={fnArray:[],argsArray:[],lastChunk:!1},this._stats&&this._stats.time("Page Request"),this._pumpOperatorList({pageIndex:this._pageIndex,intent:x,renderInteractiveForms:!0===l,annotationStorage:b&&b.getAll()||null}));var E=function(t){var n=k.renderTasks.indexOf(T);n>=0&&k.renderTasks.splice(n,1),(e.cleanupAfterRender||"print"===x)&&(e.pendingCleanup=!0),e._tryCleanup(),t?(T.capability.reject(t),e._abortOperatorList({intentState:k,reason:t})):T.capability.resolve(),e._stats&&(e._stats.timeEnd("Rendering"),e._stats.timeEnd("Overall"))},T=new InternalRenderTask({callback:E,params:{canvasContext:n,viewport:r,transform:f,imageLayer:h,background:v},objs:this.objs,commonObjs:this.commonObjs,operatorList:k.operatorList,pageIndex:this._pageIndex,canvasFactory:S,webGLContext:C,useRequestAnimationFrame:"print"!==x,pdfBug:this._pdfBug});k.renderTasks||(k.renderTasks=[]),k.renderTasks.push(T);var A=T.task;return Promise.all([k.displayReadyCapability.promise,w]).then(function(t){var n=_slicedToArray(t,2),r=n[0],i=n[1];if(e.pendingCleanup)return void E();e._stats&&e._stats.time("Rendering"),T.initializeGraphics({transparency:r,optionalContentConfig:i}),T.operatorListChanged()}).catch(E),A}},{key:"getOperatorList",value:function(){function t(){if(e.operatorList.lastChunk){e.opListReadCapability.resolve(e.operatorList);var t=e.renderTasks.indexOf(n);t>=0&&e.renderTasks.splice(t,1)}}var e=this._intentStates.get("oplist");e||(e=Object.create(null),this._intentStates.set("oplist",e));var n;return e.opListReadCapability||(n=Object.create(null),n.operatorListChanged=t,e.opListReadCapability=(0,_util.createPromiseCapability)(),e.renderTasks=[],e.renderTasks.push(n),e.operatorList={fnArray:[],argsArray:[],lastChunk:!1},this._stats&&this._stats.time("Page Request"),this._pumpOperatorList({pageIndex:this._pageIndex,intent:"oplist"})),e.opListReadCapability.promise}},{key:"streamTextContent",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.normalizeWhitespace,n=void 0!==e&&e,r=t.disableCombineTextItems,i=void 0!==r&&r;return this._transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this._pageIndex,normalizeWhitespace:!0===n,combineTextItems:!0!==i},{highWaterMark:100,size:function(t){return t.items.length}})}},{key:"getTextContent",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this.streamTextContent(t);return new Promise(function(t,n){function r(){i.read().then(function(e){var n,i=e.value;if(e.done)return void t(o);Object.assign(o.styles,i.styles),(n=o.items).push.apply(n,_toConsumableArray(i.items)),r()},n)}var i=e.getReader(),o={items:[],styles:Object.create(null)};r()})}},{key:"_destroy",value:function(){this.destroyed=!0,this._transport.pageCache[this._pageIndex]=null;var t,e=[],n=_createForOfIteratorHelper(this._intentStates);try{for(n.s();!(t=n.n()).done;){var r=_slicedToArray(t.value,2),i=r[0],o=r[1];if(this._abortOperatorList({intentState:o,reason:new Error("Page was destroyed."),force:!0}),"oplist"!==i){var a,s=_createForOfIteratorHelper(o.renderTasks);try{for(s.s();!(a=s.n()).done;){var u=a.value;e.push(u.completed),u.cancel()}}catch(t){s.e(t)}finally{s.f()}}}}catch(t){n.e(t)}finally{n.f()}return this.objs.clear(),this.annotationsPromise=null,this.pendingCleanup=!1,Promise.all(e)}},{key:"cleanup",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.pendingCleanup=!0,this._tryCleanup(t)}},{key:"_tryCleanup",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.pendingCleanup)return!1;var e,n=_createForOfIteratorHelper(this._intentStates.values());try{for(n.s();!(e=n.n()).done;){var r=e.value,i=r.renderTasks,o=r.operatorList;if(0!==i.length||!o.lastChunk)return!1}}catch(t){n.e(t)}finally{n.f()}return this._intentStates.clear(),this.objs.clear(),this.annotationsPromise=null,t&&this._stats&&(this._stats=new _display_utils.StatTimer),this.pendingCleanup=!1,!0}},{key:"_startRenderPage",value:function(t,e){var n=this._intentStates.get(e);n&&(this._stats&&this._stats.timeEnd("Page Request"),n.displayReadyCapability&&n.displayReadyCapability.resolve(t))}},{key:"_renderPageChunk",value:function(t,e){for(var n=0,r=t.length;n<r;n++)e.operatorList.fnArray.push(t.fnArray[n]),e.operatorList.argsArray.push(t.argsArray[n]);e.operatorList.lastChunk=t.lastChunk;for(var i=0;i<e.renderTasks.length;i++)e.renderTasks[i].operatorListChanged();t.lastChunk&&this._tryCleanup()}},{key:"_pumpOperatorList",value:function(t){var e=this;(0,_util.assert)(t.intent,'PDFPageProxy._pumpOperatorList: Expected "intent" argument.');var n=this._transport.messageHandler.sendWithStream("GetOperatorList",t),r=n.getReader(),i=this._intentStates.get(t.intent);i.streamReader=r;!function t(){r.read().then(function(n){var r=n.value;if(n.done)return void(i.streamReader=null);e._transport.destroyed||(e._renderPageChunk(r,i),t())},function(t){if(i.streamReader=null,!e._transport.destroyed){if(i.operatorList){i.operatorList.lastChunk=!0;for(var n=0;n<i.renderTasks.length;n++)i.renderTasks[n].operatorListChanged();e._tryCleanup()}if(i.displayReadyCapability)i.displayReadyCapability.reject(t);else{if(!i.opListReadCapability)throw t;i.opListReadCapability.reject(t)}}})}()}},{key:"_abortOperatorList",value:function(t){var e=this,n=t.intentState,r=t.reason,i=t.force,o=void 0!==i&&i;if((0,_util.assert)(r instanceof Error||"object"===_typeof(r)&&null!==r,'PDFPageProxy._abortOperatorList: Expected "reason" argument.'),n.streamReader){if(!o){if(0!==n.renderTasks.length)return;if(r instanceof _display_utils.RenderingCancelledException)return void(n.streamReaderCancelTimeout=setTimeout(function(){e._abortOperatorList({intentState:n,reason:r,force:!0}),n.streamReaderCancelTimeout=null},RENDERING_CANCELLED_TIMEOUT))}if(n.streamReader.cancel(new _util.AbortException(r&&r.message)),n.streamReader=null,!this._transport.destroyed){var a,s=_createForOfIteratorHelper(this._intentStates);try{for(s.s();!(a=s.n()).done;){var u=_slicedToArray(a.value,2),l=u[0];if(u[1]===n){this._intentStates.delete(l);break}}}catch(t){s.e(t)}finally{s.f()}this.cleanup()}}}},{key:"pageNumber",get:function(){return this._pageIndex+1}},{key:"rotate",get:function(){return this._pageInfo.rotate}},{key:"ref",get:function(){return this._pageInfo.ref}},{key:"userUnit",get:function(){return this._pageInfo.userUnit}},{key:"view",get:function(){return this._pageInfo.view}},{key:"stats",get:function(){return this._stats}}]),t}();exports.PDFPageProxy=PDFPageProxy;var LoopbackPort=function(){function t(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];_classCallCheck(this,t),this._listeners=[],this._defer=e,this._deferred=Promise.resolve(void 0)}return _createClass(t,[{key:"postMessage",value:function(t,e){function n(t){if("object"!==_typeof(t)||null===t)return t;if(i.has(t))return i.get(t);var r,o;if((r=t.buffer)&&(0,_util.isArrayBuffer)(r)){return o=e&&e.includes(r)?new t.constructor(r,t.byteOffset,t.byteLength):new t.constructor(t),i.set(t,o),o}o=Array.isArray(t)?[]:{},i.set(t,o);for(var a in t){for(var s=void 0,u=t;!(s=Object.getOwnPropertyDescriptor(u,a));)u=Object.getPrototypeOf(u);if(void 0!==s.value)if("function"!=typeof s.value)o[a]=n(s.value);else if(t.hasOwnProperty&&t.hasOwnProperty(a))throw new Error("LoopbackPort.postMessage - cannot clone: ".concat(t[a]))}return o}var r=this;if(!this._defer)return void this._listeners.forEach(function(e){e.call(r,{data:t})});var i=new WeakMap,o={data:n(t)};this._deferred.then(function(){r._listeners.forEach(function(t){t.call(r,o)})})}},{key:"addEventListener",value:function(t,e){this._listeners.push(e)}},{key:"removeEventListener",value:function(t,e){var n=this._listeners.indexOf(e);this._listeners.splice(n,1)}},{key:"terminate",value:function(){this._listeners.length=0}}]),t}();exports.LoopbackPort=LoopbackPort;var PDFWorker=function PDFWorkerClosure(){function _getWorkerSrc(){if(_worker_options.GlobalWorkerOptions.workerSrc)return _worker_options.GlobalWorkerOptions.workerSrc;if(void 0!==fallbackWorkerSrc)return _is_node.isNodeJS||(0,_display_utils.deprecated)('No "GlobalWorkerOptions.workerSrc" specified.'),fallbackWorkerSrc;throw new Error('No "GlobalWorkerOptions.workerSrc" specified.')}function getMainThreadWorkerMessageHandler(){var t;try{t=globalThis.pdfjsWorker&&globalThis.pdfjsWorker.WorkerMessageHandler}catch(t){}return t||null}function setupFakeWorkerGlobal(){if(fakeWorkerCapability)return fakeWorkerCapability.promise;fakeWorkerCapability=(0,_util.createPromiseCapability)();var loader=function(){var _ref12=_asyncToGenerator(_regenerator.default.mark(function _callee(){var mainWorkerMessageHandler,worker;return _regenerator.default.wrap(function _callee$(_context){for(;;)switch(_context.prev=_context.next){case 0:if(!(mainWorkerMessageHandler=getMainThreadWorkerMessageHandler())){_context.next=3;break}return _context.abrupt("return",mainWorkerMessageHandler);case 3:if(!_is_node.isNodeJS){_context.next=6;break}return worker=eval("require")(_getWorkerSrc()),_context.abrupt("return",worker.WorkerMessageHandler);case 6:return _context.next=8,(0,_display_utils.loadScript)(_getWorkerSrc());case 8:return _context.abrupt("return",window.pdfjsWorker.WorkerMessageHandler);case 9:case"end":return _context.stop()}},_callee)}));return function(){return _ref12.apply(this,arguments)}}();return loader().then(fakeWorkerCapability.resolve,fakeWorkerCapability.reject),fakeWorkerCapability.promise}function createCDNWrapper(t){var e="importScripts('"+t+"');";return URL.createObjectURL(new Blob([e]))}var pdfWorkerPorts=new WeakMap,isWorkerDisabled=!1,fallbackWorkerSrc,nextFakeWorkerId=0,fakeWorkerCapability;if(_is_node.isNodeJS)isWorkerDisabled=!0,fallbackWorkerSrc="./pdf.worker.js";else if("object"===("undefined"==typeof document?"undefined":_typeof(document))&&"currentScript"in document){var pdfjsFilePath=document.currentScript&&document.currentScript.src;pdfjsFilePath&&(fallbackWorkerSrc=pdfjsFilePath.replace(/(\.(?:min\.)?js)(\?.*)?$/i,".worker$1$2"))}var PDFWorker=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.name,r=void 0===n?null:n,i=e.port,o=void 0===i?null:i,a=e.verbosity,s=void 0===a?(0,_util.getVerbosityLevel)():a;if(_classCallCheck(this,t),o&&pdfWorkerPorts.has(o))throw new Error("Cannot use more than one PDFWorker per port");if(this.name=r,this.destroyed=!1,this.postMessageTransfers=!0,this.verbosity=s,this._readyCapability=(0,_util.createPromiseCapability)(),this._port=null,this._webWorker=null,this._messageHandler=null,o)return pdfWorkerPorts.set(o,this),void this._initializeFromPort(o);this._initialize()}return _createClass(t,[{key:"_initializeFromPort",value:function(t){this._port=t,this._messageHandler=new _message_handler.MessageHandler("main","worker",t),this._messageHandler.on("ready",function(){}),this._readyCapability.resolve()}},{key:"_initialize",value:function(){var t=this;if("undefined"!=typeof Worker&&!isWorkerDisabled&&!getMainThreadWorkerMessageHandler()){var e=_getWorkerSrc();try{(0,_util.isSameOrigin)(window.location.href,e)||(e=createCDNWrapper(new URL(e,window.location).href));var n=new Worker(e),r=new _message_handler.MessageHandler("main","worker",n),i=function(){n.removeEventListener("error",o),r.destroy(),n.terminate(),t.destroyed?t._readyCapability.reject(new Error("Worker was destroyed")):t._setupFakeWorker()},o=function(){t._webWorker||i()};n.addEventListener("error",o),r.on("test",function(e){if(n.removeEventListener("error",o),t.destroyed)return void i();e?(t._messageHandler=r,t._port=n,t._webWorker=n,e.supportTransfers||(t.postMessageTransfers=!1),t._readyCapability.resolve(),r.send("configure",{verbosity:t.verbosity})):(t._setupFakeWorker(),r.destroy(),n.terminate())}),r.on("ready",function(e){if(n.removeEventListener("error",o),t.destroyed)return void i();try{a()}catch(e){t._setupFakeWorker()}});var a=function(){var e=new Uint8Array([t.postMessageTransfers?255:0]);try{r.send("test",e,[e.buffer])}catch(t){(0,_util.warn)("Cannot use postMessage transfers."),e[0]=0,r.send("test",e)}};return void a()}catch(t){(0,_util.info)("The worker has been disabled.")}}this._setupFakeWorker()}},{key:"_setupFakeWorker",value:function(){var t=this;isWorkerDisabled||((0,_util.warn)("Setting up fake worker."),isWorkerDisabled=!0),setupFakeWorkerGlobal().then(function(e){if(t.destroyed)return void t._readyCapability.reject(new Error("Worker was destroyed"));var n=new LoopbackPort;t._port=n;var r="fake"+nextFakeWorkerId++,i=new _message_handler.MessageHandler(r+"_worker",r,n);e.setup(i,n);var o=new _message_handler.MessageHandler(r,r+"_worker",n);t._messageHandler=o,t._readyCapability.resolve(),o.send("configure",{verbosity:t.verbosity})}).catch(function(e){t._readyCapability.reject(new Error('Setting up fake worker failed: "'.concat(e.message,'".')))})}},{key:"destroy",value:function(){this.destroyed=!0,this._webWorker&&(this._webWorker.terminate(),this._webWorker=null),pdfWorkerPorts.delete(this._port),this._port=null,this._messageHandler&&(this._messageHandler.destroy(),this._messageHandler=null)}},{key:"promise",get:function(){return this._readyCapability.promise}},{key:"port",get:function(){return this._port}},{key:"messageHandler",get:function(){return this._messageHandler}}],[{key:"fromPort",value:function(e){if(!e||!e.port)throw new Error("PDFWorker.fromPort - invalid method signature.");return pdfWorkerPorts.has(e.port)?pdfWorkerPorts.get(e.port):new t(e)}},{key:"getWorkerSrc",value:function(){return _getWorkerSrc()}}]),t}();return PDFWorker}();exports.PDFWorker=PDFWorker;var WorkerTransport=function(){function t(e,n,r,i){_classCallCheck(this,t),this.messageHandler=e,this.loadingTask=n,this.commonObjs=new PDFObjects,this.fontLoader=new _font_loader.FontLoader({docId:n.docId,onUnsupportedFeature:this._onUnsupportedFeature.bind(this),ownerDocument:i.ownerDocument}),this._params=i,this.CMapReaderFactory=new i.CMapReaderFactory({baseUrl:i.cMapUrl,isCompressed:i.cMapPacked}),this.destroyed=!1,this.destroyCapability=null,this._passwordCapability=null,this._networkStream=r,this._fullReader=null,this._lastProgress=null,this.pageCache=[],this.pagePromises=[],this.downloadInfoCapability=(0,_util.createPromiseCapability)(),this.setupMessageHandler()}return _createClass(t,[{key:"destroy",value:function(){var t=this;if(this.destroyCapability)return this.destroyCapability.promise;this.destroyed=!0,this.destroyCapability=(0,_util.createPromiseCapability)(),this._passwordCapability&&this._passwordCapability.reject(new Error("Worker was destroyed during onPassword callback"));var e=[];this.pageCache.forEach(function(t){t&&e.push(t._destroy())}),this.pageCache.length=0,this.pagePromises.length=0;var n=this.messageHandler.sendWithPromise("Terminate",null);return e.push(n),Promise.all(e).then(function(){t.fontLoader.clear(),t._networkStream&&t._networkStream.cancelAllRequests(new _util.AbortException("Worker was terminated.")),t.messageHandler&&(t.messageHandler.destroy(),t.messageHandler=null),t.destroyCapability.resolve()},this.destroyCapability.reject),this.destroyCapability.promise}},{key:"setupMessageHandler",value:function(){var t=this,e=this.messageHandler,n=this.loadingTask;e.on("GetReader",function(e,n){(0,_util.assert)(t._networkStream,"GetReader - no `IPDFStream` instance available."),t._fullReader=t._networkStream.getFullReader(),t._fullReader.onProgress=function(e){t._lastProgress={loaded:e.loaded,total:e.total}},n.onPull=function(){t._fullReader.read().then(function(t){var e=t.value;if(t.done)return void n.close();(0,_util.assert)((0,_util.isArrayBuffer)(e),"GetReader - expected an ArrayBuffer."),n.enqueue(new Uint8Array(e),1,[e])}).catch(function(t){n.error(t)})},n.onCancel=function(e){t._fullReader.cancel(e),n.ready.catch(function(e){if(!t.destroyed)throw e})}}),e.on("ReaderHeadersReady",function(e){var r=(0,_util.createPromiseCapability)(),i=t._fullReader;return i.headersReady.then(function(){i.isStreamingSupported&&i.isRangeSupported||(t._lastProgress&&n.onProgress&&n.onProgress(t._lastProgress),i.onProgress=function(t){n.onProgress&&n.onProgress({loaded:t.loaded,total:t.total})}),r.resolve({isStreamingSupported:i.isStreamingSupported,isRangeSupported:i.isRangeSupported,contentLength:i.contentLength})},r.reject),r.promise}),e.on("GetRangeReader",function(e,n){(0,_util.assert)(t._networkStream,"GetRangeReader - no `IPDFStream` instance available.");var r=t._networkStream.getRangeReader(e.begin,e.end);if(!r)return void n.close();n.onPull=function(){r.read().then(function(t){var e=t.value;if(t.done)return void n.close();(0,_util.assert)((0,_util.isArrayBuffer)(e),"GetRangeReader - expected an ArrayBuffer."),n.enqueue(new Uint8Array(e),1,[e])}).catch(function(t){n.error(t)})},n.onCancel=function(e){r.cancel(e),n.ready.catch(function(e){if(!t.destroyed)throw e})}}),e.on("GetDoc",function(e){var r=e.pdfInfo;t._numPages=r.numPages,n._capability.resolve(new PDFDocumentProxy(r,t))}),e.on("DocException",function(t){var e;switch(t.name){case"PasswordException":e=new _util.PasswordException(t.message,t.code);break;case"InvalidPDFException":e=new _util.InvalidPDFException(t.message);break;case"MissingPDFException":e=new _util.MissingPDFException(t.message);break;case"UnexpectedResponseException":e=new _util.UnexpectedResponseException(t.message,t.status);break;case"UnknownErrorException":e=new _util.UnknownErrorException(t.message,t.details)}if(!(e instanceof Error)){(0,_util.warn)("DocException - expected a valid Error.")}n._capability.reject(e)}),e.on("PasswordRequest",function(e){if(t._passwordCapability=(0,_util.createPromiseCapability)(),n.onPassword){var r=function(e){t._passwordCapability.resolve({password:e})};try{n.onPassword(r,e.code)}catch(e){t._passwordCapability.reject(e)}}else t._passwordCapability.reject(new _util.PasswordException(e.message,e.code));return t._passwordCapability.promise}),e.on("DataLoaded",function(e){n.onProgress&&n.onProgress({loaded:e.length,total:e.length}),t.downloadInfoCapability.resolve(e)}),e.on("StartRenderPage",function(e){if(!t.destroyed){t.pageCache[e.pageIndex]._startRenderPage(e.transparency,e.intent)}}),e.on("commonobj",function(n){if(!t.destroyed){var r=_slicedToArray(n,3),i=r[0],o=r[1],a=r[2];if(!t.commonObjs.has(i))switch(o){case"Font":var s=t._params;if("error"in a){var u=a.error;(0,_util.warn)("Error during font loading: ".concat(u)),t.commonObjs.resolve(i,u);break}var l=null;s.pdfBug&&globalThis.FontInspector&&globalThis.FontInspector.enabled&&(l={registerFont:function(t,e){globalThis.FontInspector.fontAdded(t,e)}});var c=new _font_loader.FontFaceObject(a,{isEvalSupported:s.isEvalSupported,disableFontFace:s.disableFontFace,ignoreErrors:s.ignoreErrors,onUnsupportedFeature:t._onUnsupportedFeature.bind(t),fontRegistry:l});t.fontLoader.bind(c).catch(function(t){return e.sendWithPromise("FontFallback",{id:i})}).finally(function(){!s.fontExtraProperties&&c.data&&(c.data=null),t.commonObjs.resolve(i,c)});break;case"FontPath":case"Image":t.commonObjs.resolve(i,a);break;default:throw new Error("Got unknown common object type ".concat(o))}}}),e.on("obj",function(e){if(!t.destroyed){var n=_slicedToArray(e,4),r=n[0],i=n[1],o=n[2],a=n[3],s=t.pageCache[i];if(!s.objs.has(r))switch(o){case"Image":s.objs.resolve(r,a);a&&"data"in a&&a.data.length>8e6&&(s.cleanupAfterRender=!0);break;default:throw new Error("Got unknown object type ".concat(o))}}}),e.on("DocProgress",function(e){t.destroyed||n.onProgress&&n.onProgress({loaded:e.loaded,total:e.total})}),e.on("UnsupportedFeature",this._onUnsupportedFeature.bind(this)),e.on("FetchBuiltInCMap",function(e,n){if(t.destroyed)return void n.error(new Error("Worker was destroyed"));var r=!1;n.onPull=function(){if(r)return void n.close();r=!0,t.CMapReaderFactory.fetch(e).then(function(t){n.enqueue(t,1,[t.cMapData.buffer])}).catch(function(t){n.error(t)})}})}},{key:"_onUnsupportedFeature",value:function(t){var e=t.featureId;this.destroyed||this.loadingTask.onUnsupportedFeature&&this.loadingTask.onUnsupportedFeature(e)}},{key:"getData",value:function(){return this.messageHandler.sendWithPromise("GetData",null)}},{key:"getPage",value:function(t){var e=this;if(!Number.isInteger(t)||t<=0||t>this._numPages)return Promise.reject(new Error("Invalid page request"));var n=t-1;if(n in this.pagePromises)return this.pagePromises[n];var r=this.messageHandler.sendWithPromise("GetPage",{pageIndex:n}).then(function(t){if(e.destroyed)throw new Error("Transport destroyed");var r=new PDFPageProxy(n,t,e,e._params.ownerDocument,e._params.pdfBug);return e.pageCache[n]=r,r});return this.pagePromises[n]=r,r}},{key:"getPageIndex",value:function(t){return this.messageHandler.sendWithPromise("GetPageIndex",{ref:t}).catch(function(t){return Promise.reject(new Error(t))})}},{key:"getAnnotations",value:function(t,e){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:t,intent:e})}},{key:"saveDocument",value:function(t){return this.messageHandler.sendWithPromise("SaveDocument",{numPages:this._numPages,annotationStorage:t&&t.getAll()||null,filename:this._fullReader?this._fullReader.filename:null}).finally(function(){t&&t.resetModified()})}},{key:"getDestinations",value:function(){return this.messageHandler.sendWithPromise("GetDestinations",null)}},{key:"getDestination",value:function(t){return"string"!=typeof t?Promise.reject(new Error("Invalid destination request.")):this.messageHandler.sendWithPromise("GetDestination",{id:t})}},{key:"getPageLabels",value:function(){return this.messageHandler.sendWithPromise("GetPageLabels",null)}},{key:"getPageLayout",value:function(){return this.messageHandler.sendWithPromise("GetPageLayout",null)}},{key:"getPageMode",value:function(){return this.messageHandler.sendWithPromise("GetPageMode",null)}},{key:"getViewerPreferences",value:function(){return this.messageHandler.sendWithPromise("GetViewerPreferences",null)}},{key:"getOpenAction",value:function(){return this.messageHandler.sendWithPromise("GetOpenAction",null)}},{key:"getAttachments",value:function(){return this.messageHandler.sendWithPromise("GetAttachments",null)}},{key:"getJavaScript",value:function(){return this.messageHandler.sendWithPromise("GetJavaScript",null)}},{key:"getOutline",value:function(){return this.messageHandler.sendWithPromise("GetOutline",null)}},{key:"getOptionalContentConfig",value:function(){return this.messageHandler.sendWithPromise("GetOptionalContentConfig",null).then(function(t){return new _optional_content_config.OptionalContentConfig(t)})}},{key:"getPermissions",value:function(){return this.messageHandler.sendWithPromise("GetPermissions",null)}},{key:"getMetadata",value:function(){var t=this;return this.messageHandler.sendWithPromise("GetMetadata",null).then(function(e){return{info:e[0],metadata:e[1]?new _metadata.Metadata(e[1]):null,contentDispositionFilename:t._fullReader?t._fullReader.filename:null}})}},{key:"getStats",value:function(){return this.messageHandler.sendWithPromise("GetStats",null)}},{key:"startCleanup",value:function(){var t=this;return this.messageHandler.sendWithPromise("Cleanup",null).then(function(){for(var e=0,n=t.pageCache.length;e<n;e++){var r=t.pageCache[e];if(r){if(!r.cleanup())throw new Error("startCleanup: Page ".concat(e+1," is currently rendering."))}}t.commonObjs.clear(),t.fontLoader.clear()})}},{key:"loadingParams",get:function(){var t=this._params;return(0,_util.shadow)(this,"loadingParams",{disableAutoFetch:t.disableAutoFetch,disableFontFace:t.disableFontFace})}}]),t}(),PDFObjects=function(){function t(){_classCallCheck(this,t),this._objs=Object.create(null)}return _createClass(t,[{key:"_ensureObj",value:function(t){return this._objs[t]?this._objs[t]:this._objs[t]={capability:(0,_util.createPromiseCapability)(),data:null,resolved:!1}}},{key:"get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(e)return this._ensureObj(t).capability.promise.then(e),null;var n=this._objs[t];if(!n||!n.resolved)throw new Error("Requesting object that isn't resolved yet ".concat(t,"."));return n.data}},{key:"has",value:function(t){var e=this._objs[t];return!!e&&e.resolved}},{key:"resolve",value:function(t,e){var n=this._ensureObj(t);n.resolved=!0,n.data=e,n.capability.resolve(e)}},{key:"clear",value:function(){this._objs=Object.create(null)}}]),t}(),RenderTask=function(){function t(e){_classCallCheck(this,t),this._internalRenderTask=e,this.onContinue=null}return _createClass(t,[{key:"cancel",value:function(){this._internalRenderTask.cancel()}},{key:"promise",get:function(){return this._internalRenderTask.capability.promise}}]),t}(),InternalRenderTask=function(){var t=new WeakSet;return function(){function e(t){var n=t.callback,r=t.params,i=t.objs,o=t.commonObjs,a=t.operatorList,s=t.pageIndex,u=t.canvasFactory,l=t.webGLContext,c=t.useRequestAnimationFrame,f=void 0!==c&&c,d=t.pdfBug,h=void 0!==d&&d;_classCallCheck(this,e),this.callback=n,this.params=r,this.objs=i,this.commonObjs=o,this.operatorListIdx=null,this.operatorList=a,this._pageIndex=s,this.canvasFactory=u,this.webGLContext=l,this._pdfBug=h,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this._useRequestAnimationFrame=!0===f&&"undefined"!=typeof window,this.cancelled=!1,this.capability=(0,_util.createPromiseCapability)(),this.task=new RenderTask(this),this._continueBound=this._continue.bind(this),this._scheduleNextBound=this._scheduleNext.bind(this),this._nextBound=this._next.bind(this),this._canvas=r.canvasContext.canvas}return _createClass(e,[{key:"initializeGraphics",value:function(e){var n=e.transparency,r=void 0!==n&&n,i=e.optionalContentConfig;if(!this.cancelled){if(this._canvas){if(t.has(this._canvas))throw new Error("Cannot use the same canvas during multiple render() operations. Use different canvas or ensure previous operations were cancelled or completed.");t.add(this._canvas)}this._pdfBug&&globalThis.StepperManager&&globalThis.StepperManager.enabled&&(this.stepper=globalThis.StepperManager.create(this._pageIndex),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint());var o=this.params,a=o.canvasContext,s=o.viewport,u=o.transform,l=o.imageLayer,c=o.background;this.gfx=new _canvas.CanvasGraphics(a,this.commonObjs,this.objs,this.canvasFactory,this.webGLContext,l,i),this.gfx.beginDrawing({transform:u,viewport:s,transparency:r,background:c}),this.operatorListIdx=0,this.graphicsReady=!0,this.graphicsReadyCallback&&this.graphicsReadyCallback()}}},{key:"cancel",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.running=!1,this.cancelled=!0,this.gfx&&this.gfx.endDrawing(),this._canvas&&t.delete(this._canvas),this.callback(e||new _display_utils.RenderingCancelledException("Rendering cancelled, page ".concat(this._pageIndex+1),"canvas"))}},{key:"operatorListChanged",value:function(){if(!this.graphicsReady)return void(this.graphicsReadyCallback||(this.graphicsReadyCallback=this._continueBound));this.stepper&&this.stepper.updateOperatorList(this.operatorList),this.running||this._continue()}},{key:"_continue",value:function(){this.running=!0,this.cancelled||(this.task.onContinue?this.task.onContinue(this._scheduleNextBound):this._scheduleNext())}},{key:"_scheduleNext",value:function(){var t=this;this._useRequestAnimationFrame?window.requestAnimationFrame(function(){t._nextBound().catch(t.cancel.bind(t))}):Promise.resolve().then(this._nextBound).catch(this.cancel.bind(this))}},{key:"_next",value:function(){function e(){return n.apply(this,arguments)}var n=_asyncToGenerator(_regenerator.default.mark(function e(){return _regenerator.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.cancelled){e.next=2;break}return e.abrupt("return");case 2:this.operatorListIdx=this.gfx.executeOperatorList(this.operatorList,this.operatorListIdx,this._continueBound,this.stepper),this.operatorListIdx===this.operatorList.argsArray.length&&(this.running=!1,this.operatorList.lastChunk&&(this.gfx.endDrawing(),this._canvas&&t.delete(this._canvas),this.callback()));case 4:case"end":return e.stop()}},e,this)}));return e}()},{key:"completed",get:function(){return this.capability.promise.catch(function(){})}}]),e}()}(),version="2.6.347";exports.version=version;var build="3be9c65f";exports.build=build},function(t,e,n){"use strict";function r(t){"@babel/helpers - typeof";return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&o(t,e)}function o(t,e){return(o=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function a(t){var e=l();return function(){var n,r=c(t);if(e){var i=c(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return s(this,n)}}function s(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?u(t):e}function u(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function l(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}function c(t){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function f(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}function d(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){function o(t){f(s,r,i,o,a,"next",t)}function a(t){f(s,r,i,o,a,"throw",t)}var s=t.apply(e,n);o(void 0)})}}function h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function p(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function g(t,e,n){return e&&p(t.prototype,e),n&&p(t,n),t}Object.defineProperty(e,"__esModule",{value:!0}),e.FontLoader=e.FontFaceObject=void 0;var m,v=function(t){return t&&t.__esModule?t:{default:t}}(n(2)),y=n(5),b=function(){function t(e){var n=e.docId,r=e.onUnsupportedFeature,i=e.ownerDocument,o=void 0===i?globalThis.document:i;h(this,t),this.constructor===t&&(0,y.unreachable)("Cannot initialize BaseFontLoader."),this.docId=n,this._onUnsupportedFeature=r,this._document=o,this.nativeFontFaces=[],this.styleElement=null}return g(t,[{key:"addNativeFontFace",value:function(t){this.nativeFontFaces.push(t),this._document.fonts.add(t)}},{key:"insertRule",value:function(t){var e=this.styleElement;e||(e=this.styleElement=this._document.createElement("style"),e.id="PDFJS_FONT_STYLE_TAG_".concat(this.docId),this._document.documentElement.getElementsByTagName("head")[0].appendChild(e));var n=e.sheet;n.insertRule(t,n.cssRules.length)}},{key:"clear",value:function(){var t=this;this.nativeFontFaces.forEach(function(e){t._document.fonts.delete(e)}),this.nativeFontFaces.length=0,this.styleElement&&(this.styleElement.remove(),this.styleElement=null)}},{key:"bind",value:function(){function t(t){return e.apply(this,arguments)}var e=d(v.default.mark(function t(e){var n,r,i=this;return v.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.attached&&!e.missingFile){t.next=2;break}return t.abrupt("return");case 2:if(e.attached=!0,!this.isFontLoadingAPISupported){t.next=19;break}if(!(n=e.createNativeFontFace())){t.next=18;break}return this.addNativeFontFace(n),t.prev=7,t.next=10,n.loaded;case 10:t.next=18;break;case 12:throw t.prev=12,t.t0=t.catch(7),this._onUnsupportedFeature({featureId:y.UNSUPPORTED_FEATURES.errorFontLoadNative}),(0,y.warn)("Failed to load font '".concat(n.family,"': '").concat(t.t0,"'.")),e.disableFontFace=!0,t.t0;case 18:return t.abrupt("return");case 19:if(!(r=e.createFontFaceRule())){t.next=26;break}if(this.insertRule(r),!this.isSyncFontLoadingSupported){t.next=24;break}return t.abrupt("return");case 24:return t.next=26,new Promise(function(t){var n=i._queueLoadingCallback(t);i._prepareFontLoadEvent([r],[e],n)});case 26:case"end":return t.stop()}},t,this,[[7,12]])}));return t}()},{key:"_queueLoadingCallback",value:function(t){(0,y.unreachable)("Abstract method `_queueLoadingCallback`.")}},{key:"_prepareFontLoadEvent",value:function(t,e,n){(0,y.unreachable)("Abstract method `_prepareFontLoadEvent`.")}},{key:"isFontLoadingAPISupported",get:function(){var t=void 0!==this._document&&!!this._document.fonts;return(0,y.shadow)(this,"isFontLoadingAPISupported",t)}},{key:"isSyncFontLoadingSupported",get:function(){(0,y.unreachable)("Abstract method `isSyncFontLoadingSupported`.")}},{key:"_loadTestFont",get:function(){(0,y.unreachable)("Abstract method `_loadTestFont`.")}}]),t}();e.FontLoader=m,e.FontLoader=m=function(t){function e(t){var r;return h(this,e),r=n.call(this,t),r.loadingContext={requests:[],nextRequestId:0},r.loadTestFontId=0,r}i(e,t);var n=a(e);return g(e,[{key:"_queueLoadingCallback",value:function(t){function e(){for((0,y.assert)(!r.done,"completeRequest() cannot be called twice."),r.done=!0;n.requests.length>0&&n.requests[0].done;){var t=n.requests.shift();setTimeout(t.callback,0)}}var n=this.loadingContext,r={id:"pdfjs-font-loading-".concat(n.nextRequestId++),done:!1,complete:e,callback:t};return n.requests.push(r),r}},{key:"_prepareFontLoadEvent",value:function(t,e,n){function r(t,e){return t.charCodeAt(e)<<24|t.charCodeAt(e+1)<<16|t.charCodeAt(e+2)<<8|255&t.charCodeAt(e+3)}function i(t,e,n,r){return t.substring(0,e)+r+t.substring(e+n)}function o(t,e){return++f>30?((0,y.warn)("Load test font never loaded."),void e()):(c.font="30px "+t,c.fillText(".",0,20),c.getImageData(0,0,1,1).data[3]>0?void e():void setTimeout(o.bind(null,t,e)))}var a,s,u=this,l=this._document.createElement("canvas");l.width=1,l.height=1;var c=l.getContext("2d"),f=0,d="lt".concat(Date.now()).concat(this.loadTestFontId++),h=this._loadTestFont;h=i(h,976,d.length,d);var p=r(h,16);for(a=0,s=d.length-3;a<s;a+=4)p=p-1482184792+r(d,a)|0;a<d.length&&(p=p-1482184792+r(d+"XXX",a)|0),h=i(h,16,4,(0,y.string32)(p));var g="url(data:font/opentype;base64,".concat(btoa(h),");"),m='@font-face {font-family:"'.concat(d,'";src:').concat(g,"}");this.insertRule(m);var v=[];for(a=0,s=e.length;a<s;a++)v.push(e[a].loadedName);v.push(d);var b=this._document.createElement("div");for(b.style.visibility="hidden",b.style.width=b.style.height="10px",b.style.position="absolute",b.style.top=b.style.left="0px",a=0,s=v.length;a<s;++a){var _=this._document.createElement("span");_.textContent="Hi",_.style.fontFamily=v[a],b.appendChild(_)}this._document.body.appendChild(b),o(d,function(){u._document.body.removeChild(b),n.complete()})}},{key:"isSyncFontLoadingSupported",get:function(){var t=!1;if("undefined"==typeof navigator)t=!0;else{var e=/Mozilla\/5.0.*?rv:(\d+).*? Gecko/.exec(navigator.userAgent);e&&e[1]>=14&&(t=!0)}return(0,y.shadow)(this,"isSyncFontLoadingSupported",t)}},{key:"_loadTestFont",get:function(){return(0,y.shadow)(this,"_loadTestFont",function(){return atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA==")}())}}]),e}(b);var _=function(){function t(e,n){var r=n.isEvalSupported,i=void 0===r||r,o=n.disableFontFace,a=void 0!==o&&o,s=n.ignoreErrors,u=void 0!==s&&s,l=n.onUnsupportedFeature,c=void 0===l?null:l,f=n.fontRegistry,d=void 0===f?null:f;h(this,t),this.compiledGlyphs=Object.create(null);for(var p in e)this[p]=e[p];this.isEvalSupported=!1!==i,this.disableFontFace=!0===a,this.ignoreErrors=!0===u,this._onUnsupportedFeature=c,this.fontRegistry=d}return g(t,[{key:"createNativeFontFace",value:function(){if(!this.data||this.disableFontFace)return null;var t=new FontFace(this.loadedName,this.data,{});return this.fontRegistry&&this.fontRegistry.registerFont(this),t}},{key:"createFontFaceRule",value:function(){if(!this.data||this.disableFontFace)return null;var t=(0,y.bytesToString)(new Uint8Array(this.data)),e="url(data:".concat(this.mimetype,";base64,").concat(btoa(t),");"),n='@font-face {font-family:"'.concat(this.loadedName,'";src:').concat(e,"}");return this.fontRegistry&&this.fontRegistry.registerFont(this,e),n}},{key:"getPathGenerator",value:function(t,e){if(void 0!==this.compiledGlyphs[e])return this.compiledGlyphs[e];var n,r;try{n=t.get(this.loadedName+"_path_"+e)}catch(t){if(!this.ignoreErrors)throw t;return this._onUnsupportedFeature&&this._onUnsupportedFeature({featureId:y.UNSUPPORTED_FEATURES.errorFontGetPath}),(0,y.warn)('getPathGenerator - ignoring character: "'.concat(t,'".')),this.compiledGlyphs[e]=function(t,e){}}if(this.isEvalSupported&&y.IsEvalSupportedCached.value){for(var i,o="",a=0,s=n.length;a<s;a++)r=n[a],i=void 0!==r.args?r.args.join(","):"",o+="c."+r.cmd+"("+i+");\n";return this.compiledGlyphs[e]=new Function("c","size",o)}return this.compiledGlyphs[e]=function(t,e){for(var i=0,o=n.length;i<o;i++)r=n[i],"scale"===r.cmd&&(r.args=[e,-e]),t[r.cmd].apply(t,r.args)}}}]),t}();e.FontFaceObject=_},function(t,e,n){"use strict";function r(t){"@babel/helpers - typeof";return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),t}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&s(t,e)}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t){var e=f();return function(){var n,r=d(t);if(e){var i=d(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return l(this,n)}}function l(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?c(t):e}function c(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function f(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}function d(t){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.NodeCMapReaderFactory=e.NodeCanvasFactory=void 0;var p=n(1),g=n(7),m=n(5),v=function t(){h(this,t),(0,m.unreachable)("Not implemented: NodeCanvasFactory")};e.NodeCanvasFactory=v;var y=function t(){h(this,t),(0,m.unreachable)("Not implemented: NodeCMapReaderFactory")};e.NodeCMapReaderFactory=y,g.isNodeJS&&(e.NodeCanvasFactory=v=function(t){function e(){return h(this,e),n.apply(this,arguments)}a(e,t);var n=u(e);return o(e,[{key:"create",value:function(t,e){if(t<=0||e<=0)throw new Error("Invalid canvas size");var n=__webpack_require__(1010),r=n.createCanvas(t,e);return{canvas:r,context:r.getContext("2d")}}}]),e}(p.BaseCanvasFactory),e.NodeCMapReaderFactory=y=function(t){function e(){return h(this,e),n.apply(this,arguments)}a(e,t);var n=u(e);return o(e,[{key:"_fetchData",value:function(t,e){return new Promise(function(n,r){__webpack_require__(262).readFile(t,function(t,i){if(t||!i)return void r(new Error(t));n({cMapData:new Uint8Array(i),compressionType:e})})})}}]),e}(p.BaseCMapReaderFactory))},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),t}Object.defineProperty(e,"__esModule",{value:!0}),e.AnnotationStorage=void 0;var a=function(){function t(){r(this,t),this._storage=new Map,this._modified=!1,this.onSetModified=null,this.onResetModified=null}return o(t,[{key:"getOrCreateValue",value:function(t,e){return this._storage.has(t)?this._storage.get(t):(this._storage.set(t,e),e)}},{key:"setValue",value:function(t,e){this._storage.get(t)!==e&&this._setModified(),this._storage.set(t,e)}},{key:"getAll",value:function(){return 0===this._storage.size?null:Object.fromEntries(this._storage)}},{key:"_setModified",value:function(){this._modified||(this._modified=!0,"function"==typeof this.onSetModified&&this.onSetModified())}},{key:"resetModified",value:function(){this._modified&&(this._modified=!1,"function"==typeof this.onResetModified&&this.onResetModified())}},{key:"size",get:function(){return this._storage.size}}]),t}();e.AnnotationStorage=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.apiCompatibilityParams=void 0;var r=n(7),i=Object.create(null);!function(){r.isNodeJS&&(i.disableFontFace=!0)}();var o=Object.freeze(i);e.apiCompatibilityParams=o},function(t,e,n){"use strict";function r(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=i(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}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 a,s=!0,u=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}function i(t,e){if(t){if("string"==typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(t,e):void 0}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function a(t){t.mozCurrentTransform||(t._originalSave=t.save,t._originalRestore=t.restore,t._originalRotate=t.rotate,t._originalScale=t.scale,t._originalTranslate=t.translate,t._originalTransform=t.transform,t._originalSetTransform=t.setTransform,t._transformMatrix=t._transformMatrix||[1,0,0,1,0,0],t._transformStack=[],Object.defineProperty(t,"mozCurrentTransform",{get:function(){return this._transformMatrix}}),Object.defineProperty(t,"mozCurrentTransformInverse",{get:function(){var t=this._transformMatrix,e=t[0],n=t[1],r=t[2],i=t[3],o=t[4],a=t[5],s=e*i-n*r,u=n*r-e*i;return[i/s,n/u,r/u,e/s,(i*o-r*a)/u,(n*o-e*a)/s]}}),t.save=function(){var t=this._transformMatrix;this._transformStack.push(t),this._transformMatrix=t.slice(0,6),this._originalSave()},t.restore=function(){var t=this._transformStack.pop();t&&(this._transformMatrix=t,this._originalRestore())},t.translate=function(t,e){var n=this._transformMatrix;n[4]=n[0]*t+n[2]*e+n[4],n[5]=n[1]*t+n[3]*e+n[5],this._originalTranslate(t,e)},t.scale=function(t,e){var n=this._transformMatrix;n[0]=n[0]*t,n[1]=n[1]*t,n[2]=n[2]*e,n[3]=n[3]*e,this._originalScale(t,e)},t.transform=function(e,n,r,i,o,a){var s=this._transformMatrix;this._transformMatrix=[s[0]*e+s[2]*n,s[1]*e+s[3]*n,s[0]*r+s[2]*i,s[1]*r+s[3]*i,s[0]*o+s[2]*a+s[4],s[1]*o+s[3]*a+s[5]],t._originalTransform(e,n,r,i,o,a)},t.setTransform=function(e,n,r,i,o,a){this._transformMatrix=[e,n,r,i,o,a],t._originalSetTransform(e,n,r,i,o,a)},t.rotate=function(t){var e=Math.cos(t),n=Math.sin(t),r=this._transformMatrix;this._transformMatrix=[r[0]*e+r[2]*n,r[1]*e+r[3]*n,r[0]*-n+r[2]*e,r[1]*-n+r[3]*e,r[4],r[5]],this._originalRotate(t)})}function s(t){var e,n,r,i,o=t.width,a=t.height,s=o+1,u=new Uint8Array(s*(a+1)),l=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),c=o+7&-8,f=t.data,d=new Uint8Array(c*a),h=0;for(e=0,i=f.length;e<i;e++)for(var p=128,g=f[e];p>0;)d[h++]=g&p?0:255,p>>=1;var m=0;for(h=0,0!==d[h]&&(u[0]=1,++m),n=1;n<o;n++)d[h]!==d[h+1]&&(u[n]=d[h]?2:1,++m),h++;for(0!==d[h]&&(u[n]=2,++m),e=1;e<a;e++){h=e*c,r=e*s,d[h-c]!==d[h]&&(u[r]=d[h]?1:8,++m);var v=(d[h]?4:0)+(d[h-c]?8:0);for(n=1;n<o;n++)v=(v>>2)+(d[h+1]?4:0)+(d[h-c+1]?8:0),l[v]&&(u[r+n]=l[v],++m),h++;if(d[h-c]!==d[h]&&(u[r+n]=d[h]?2:4,++m),m>1e3)return null}for(h=c*(a-1),r=e*s,0!==d[h]&&(u[r]=8,++m),n=1;n<o;n++)d[h]!==d[h+1]&&(u[r+n]=d[h]?4:8,++m),h++;if(0!==d[h]&&(u[r+n]=4,++m),m>1e3)return null;var y=new Int32Array([0,s,-1,0,-s,0,0,0,1]),b=[];for(e=0;m&&e<=a;e++){for(var _=e*s,w=_+o;_<w&&!u[_];)_++;if(_!==w){var x,k=[_%s,e],S=u[_],C=_;do{var E=y[S];do{_+=E}while(!u[_]);x=u[_],5!==x&&10!==x?(S=x,u[_]=0):(S=x&51*S>>4,u[_]&=S>>2|S<<2),k.push(_%s),k.push(_/s|0),u[_]||--m}while(C!==_);b.push(k),--e}}return function(t){t.save(),t.scale(1/o,-1/a),t.translate(0,-a),t.beginPath();for(var e=0,n=b.length;e<n;e++){var r=b[e];t.moveTo(r[0],r[1]);for(var i=2,s=r.length;i<s;i+=2)t.lineTo(r[i],r[i+1])}t.fill(),t.beginPath(),t.restore()}}Object.defineProperty(e,"__esModule",{value:!0}),e.CanvasGraphics=void 0;var u=n(5),l=n(208),c=16,f=function(){function t(t){this.canvasFactory=t,this.cache=Object.create(null)}return t.prototype={getCanvas:function(t,e,n,r){var i;return void 0!==this.cache[t]?(i=this.cache[t],this.canvasFactory.reset(i,e,n),i.context.setTransform(1,0,0,1,0,0)):(i=this.canvasFactory.create(e,n),this.cache[t]=i),r&&a(i.context),i},clear:function(){for(var t in this.cache){var e=this.cache[t];this.canvasFactory.destroy(e),delete this.cache[t]}}},t}(),d=function(){function t(){this.alphaIsShape=!1,this.fontSize=0,this.fontSizeScale=1,this.textMatrix=u.IDENTITY_MATRIX,this.textMatrixScale=1,this.fontMatrix=u.FONT_IDENTITY_MATRIX,this.leading=0,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRenderingMode=u.TextRenderingMode.FILL,this.textRise=0,this.fillColor="#000000",this.strokeColor="#000000",this.patternFill=!1,this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.activeSMask=null,this.resumeSMaskCtx=null,this.transferMaps=null}return t.prototype={clone:function(){return Object.create(this)},setCurrentPoint:function(t,e){this.x=t,this.y=e}},t}(),h=function(){function t(t,e,n,r,i,o,s){this.ctx=t,this.current=new d,this.stateStack=[],this.pendingClip=null,this.pendingEOFill=!1,this.res=null,this.xobjs=null,this.commonObjs=e,this.objs=n,this.canvasFactory=r,this.webGLContext=i,this.imageLayer=o,this.groupStack=[],this.processingType3=null,this.baseTransform=null,this.baseTransformStack=[],this.groupLevel=0,this.smaskStack=[],this.smaskCounter=0,this.tempSMask=null,this.contentVisible=!0,this.markedContentStack=[],this.optionalContentConfig=s,this.cachedCanvases=new f(this.canvasFactory),t&&a(t),this._cachedGetSinglePixelWidth=null}function e(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if("undefined"!=typeof ImageData&&e instanceof ImageData)return void t.putImageData(e,0,0);var r,i,o,a,s,l,f,d,h,p=e.height,g=e.width,m=p%c,v=(p-m)/c,y=0===m?v:v+1,b=t.createImageData(g,c),_=0,w=e.data,x=b.data;if(n)switch(n.length){case 1:l=n[0],f=n[0],d=n[0],h=n[0];break;case 4:l=n[0],f=n[1],d=n[2],h=n[3]}if(e.kind===u.ImageKind.GRAYSCALE_1BPP){var k=w.byteLength,S=new Uint32Array(x.buffer,0,x.byteLength>>2),C=S.length,E=g+7>>3,T=4294967295,A=u.IsLittleEndianCached.value?4278190080:255;if(h&&255===h[0]&&0===h[255]){var O=[A,T];T=O[0],A=O[1]}for(i=0;i<y;i++){for(a=i<v?c:m,r=0,o=0;o<a;o++){for(var P=k-_,N=0,D=P>E?g:8*P-7,M=-8&D,I=0,R=0;N<M;N+=8)R=w[_++],S[r++]=128&R?T:A,S[r++]=64&R?T:A,S[r++]=32&R?T:A,S[r++]=16&R?T:A,S[r++]=8&R?T:A,S[r++]=4&R?T:A,S[r++]=2&R?T:A,S[r++]=1&R?T:A;for(;N<D;N++)0===I&&(R=w[_++],I=128),S[r++]=R&I?T:A,I>>=1}for(;r<C;)S[r++]=0;t.putImageData(b,0,i*c)}}else if(e.kind===u.ImageKind.RGBA_32BPP){var $=!!(l||f||d);for(o=0,s=g*c*4,i=0;i<v;i++){if(x.set(w.subarray(_,_+s)),_+=s,$)for(var L=0;L<s;L+=4)l&&(x[L+0]=l[x[L+0]]),f&&(x[L+1]=f[x[L+1]]),d&&(x[L+2]=d[x[L+2]]);t.putImageData(b,0,o),o+=c}if(i<y){if(s=g*m*4,x.set(w.subarray(_,_+s)),$)for(var j=0;j<s;j+=4)l&&(x[j+0]=l[x[j+0]]),f&&(x[j+1]=f[x[j+1]]),d&&(x[j+2]=d[x[j+2]]);t.putImageData(b,0,o)}}else{if(e.kind!==u.ImageKind.RGB_24BPP)throw new Error("bad image kind: ".concat(e.kind));var F=!!(l||f||d);for(a=c,s=g*a,i=0;i<y;i++){for(i>=v&&(a=m,s=g*a),r=0,o=s;o--;)x[r++]=w[_++],x[r++]=w[_++],x[r++]=w[_++],x[r++]=255;if(F)for(var B=0;B<r;B+=4)l&&(x[B+0]=l[x[B+0]]),f&&(x[B+1]=f[x[B+1]]),d&&(x[B+2]=d[x[B+2]]);t.putImageData(b,0,i*c)}}}function n(t,e){for(var n=e.height,r=e.width,i=n%c,o=(n-i)/c,a=0===i?o:o+1,s=t.createImageData(r,c),u=0,l=e.data,f=s.data,d=0;d<a;d++){for(var h=d<o?c:i,p=3,g=0;g<h;g++)for(var m=0,v=0;v<r;v++){if(!m){var y=l[u++];m=128}f[p]=y&m?0:255,p+=4,m>>=1}t.putImageData(s,0,d*c)}}function i(t,e){for(var n=["strokeStyle","fillStyle","fillRule","globalAlpha","lineWidth","lineCap","lineJoin","miterLimit","globalCompositeOperation","font"],r=0,i=n.length;r<i;r++){var o=n[r];void 0!==t[o]&&(e[o]=t[o])}void 0!==t.setLineDash&&(e.setLineDash(t.getLineDash()),e.lineDashOffset=t.lineDashOffset)}function o(t){t.strokeStyle="#000000",t.fillStyle="#000000",t.fillRule="nonzero",t.globalAlpha=1,t.lineWidth=1,t.lineCap="butt",t.lineJoin="miter",t.miterLimit=10,t.globalCompositeOperation="source-over",t.font="10px sans-serif",void 0!==t.setLineDash&&(t.setLineDash([]),t.lineDashOffset=0)}function h(t,e,n,r){for(var i=t.length,o=3;o<i;o+=4){var a=t[o];if(0===a)t[o-3]=e,t[o-2]=n,t[o-1]=r;else if(a<255){var s=255-a;t[o-3]=t[o-3]*a+e*s>>8,t[o-2]=t[o-2]*a+n*s>>8,t[o-1]=t[o-1]*a+r*s>>8}}}function p(t,e,n){for(var r=t.length,i=3;i<r;i+=4){var o=n?n[t[i]]:t[i];e[i]=e[i]*o*(1/255)|0}}function g(t,e,n){for(var r=t.length,i=3;i<r;i+=4){var o=77*t[i-3]+152*t[i-2]+28*t[i-1];e[i]=n?e[i]*n[o>>8]>>8:e[i]*o>>16}}function m(t,e,n,r,i,o,a){var s,u=!!o,l=u?o[0]:0,c=u?o[1]:0,f=u?o[2]:0;s="Luminosity"===i?g:p;for(var d=Math.min(r,Math.ceil(1048576/n)),m=0;m<r;m+=d){var v=Math.min(d,r-m),y=t.getImageData(0,m,n,v),b=e.getImageData(0,m,n,v);u&&h(y.data,l,c,f),s(y.data,b.data,a),t.putImageData(b,0,m)}}function v(t,e,n,r){var i=e.canvas,o=e.context;t.setTransform(e.scaleX,0,0,e.scaleY,e.offsetX,e.offsetY);var a=e.backdrop||null;if(!e.transferMap&&r.isEnabled){var s=r.composeSMask({layer:n.canvas,mask:i,properties:{subtype:e.subtype,backdrop:a}});return t.setTransform(1,0,0,1,0,0),void t.drawImage(s,e.offsetX,e.offsetY)}m(o,n,i.width,i.height,e.subtype,a,e.transferMap),t.drawImage(i,0,0)}var y=["butt","round","square"],b=["miter","round","bevel"],_={},w={};t.prototype={beginDrawing:function(t){var e=t.transform,n=t.viewport,r=t.transparency,i=void 0!==r&&r,a=t.background,s=void 0===a?null:a,u=this.ctx.canvas.width,l=this.ctx.canvas.height;if(this.ctx.save(),this.ctx.fillStyle=s||"rgb(255, 255, 255)",this.ctx.fillRect(0,0,u,l),this.ctx.restore(),i){var c=this.cachedCanvases.getCanvas("transparent",u,l,!0);this.compositeCtx=this.ctx,this.transparentCanvas=c.canvas,this.ctx=c.context,this.ctx.save(),this.ctx.transform.apply(this.ctx,this.compositeCtx.mozCurrentTransform)}this.ctx.save(),o(this.ctx),e&&this.ctx.transform.apply(this.ctx,e),this.ctx.transform.apply(this.ctx,n.transform),this.baseTransform=this.ctx.mozCurrentTransform.slice(),this.imageLayer&&this.imageLayer.beginLayout()},executeOperatorList:function(t,e,n,i){var o=t.argsArray,a=t.fnArray,s=e||0,l=o.length;if(l===s)return s;for(var c,f=l-s>10&&"function"==typeof n,d=f?Date.now()+15:0,h=0,p=this.commonObjs,g=this.objs;;){if(void 0!==i&&s===i.nextBreakPoint)return i.breakIt(s,n),s;if((c=a[s])!==u.OPS.dependency)this[c].apply(this,o[s]);else{var m,v=r(o[s]);try{for(v.s();!(m=v.n()).done;){var y=m.value,b=y.startsWith("g_")?p:g;if(!b.has(y))return b.get(y,n),s}}catch(t){v.e(t)}finally{v.f()}}if(++s===l)return s;if(f&&++h>10){if(Date.now()>d)return n(),s;h=0}}},endDrawing:function(){null!==this.current.activeSMask&&this.endSMaskGroup(),this.ctx.restore(),this.transparentCanvas&&(this.ctx=this.compositeCtx,this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.drawImage(this.transparentCanvas,0,0),this.ctx.restore(),this.transparentCanvas=null),this.cachedCanvases.clear(),this.webGLContext.clear(),this.imageLayer&&this.imageLayer.endLayout()},setLineWidth:function(t){this.current.lineWidth=t,this.ctx.lineWidth=t},setLineCap:function(t){this.ctx.lineCap=y[t]},setLineJoin:function(t){this.ctx.lineJoin=b[t]},setMiterLimit:function(t){this.ctx.miterLimit=t},setDash:function(t,e){var n=this.ctx;void 0!==n.setLineDash&&(n.setLineDash(t),n.lineDashOffset=e)},setRenderingIntent:function(t){},setFlatness:function(t){},setGState:function(t){for(var e=0,n=t.length;e<n;e++){var r=t[e],i=r[0],o=r[1];switch(i){case"LW":this.setLineWidth(o);break;case"LC":this.setLineCap(o);break;case"LJ":this.setLineJoin(o);break;case"ML":this.setMiterLimit(o);break;case"D":this.setDash(o[0],o[1]);break;case"RI":this.setRenderingIntent(o);break;case"FL":this.setFlatness(o);break;case"Font":this.setFont(o[0],o[1]);break;case"CA":this.current.strokeAlpha=r[1];break;case"ca":this.current.fillAlpha=r[1],this.ctx.globalAlpha=r[1];break;case"BM":this.ctx.globalCompositeOperation=o;break;case"SMask":this.current.activeSMask&&(this.stateStack.length>0&&this.stateStack[this.stateStack.length-1].activeSMask===this.current.activeSMask?this.suspendSMaskGroup():this.endSMaskGroup()),this.current.activeSMask=o?this.tempSMask:null,this.current.activeSMask&&this.beginSMaskGroup(),this.tempSMask=null;break;case"TR":this.current.transferMaps=o}}},beginSMaskGroup:function(){var t=this.current.activeSMask,e=t.canvas.width,n=t.canvas.height,r="smaskGroupAt"+this.groupLevel,o=this.cachedCanvases.getCanvas(r,e,n,!0),a=this.ctx,s=a.mozCurrentTransform;this.ctx.save();var u=o.context;u.scale(1/t.scaleX,1/t.scaleY),u.translate(-t.offsetX,-t.offsetY),u.transform.apply(u,s),t.startTransformInverse=u.mozCurrentTransformInverse,i(a,u),this.ctx=u,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(a),this.groupLevel++},suspendSMaskGroup:function(){var t=this.ctx;this.groupLevel--,this.ctx=this.groupStack.pop(),v(this.ctx,this.current.activeSMask,t,this.webGLContext),this.ctx.restore(),this.ctx.save(),i(t,this.ctx),this.current.resumeSMaskCtx=t;var e=u.Util.transform(this.current.activeSMask.startTransformInverse,t.mozCurrentTransform);this.ctx.transform.apply(this.ctx,e),t.save(),t.setTransform(1,0,0,1,0,0),t.clearRect(0,0,t.canvas.width,t.canvas.height),t.restore()},resumeSMaskGroup:function(){var t=this.current.resumeSMaskCtx,e=this.ctx;this.ctx=t,this.groupStack.push(e),this.groupLevel++},endSMaskGroup:function(){var t=this.ctx;this.groupLevel--,this.ctx=this.groupStack.pop(),v(this.ctx,this.current.activeSMask,t,this.webGLContext),this.ctx.restore(),i(t,this.ctx);var e=u.Util.transform(this.current.activeSMask.startTransformInverse,t.mozCurrentTransform);this.ctx.transform.apply(this.ctx,e)},save:function(){this.ctx.save();var t=this.current;this.stateStack.push(t),this.current=t.clone(),this.current.resumeSMaskCtx=null},restore:function(){this.current.resumeSMaskCtx&&this.resumeSMaskGroup(),null===this.current.activeSMask||0!==this.stateStack.length&&this.stateStack[this.stateStack.length-1].activeSMask===this.current.activeSMask||this.endSMaskGroup(),0!==this.stateStack.length&&(this.current=this.stateStack.pop(),this.ctx.restore(),this.pendingClip=null,this._cachedGetSinglePixelWidth=null)},transform:function(t,e,n,r,i,o){this.ctx.transform(t,e,n,r,i,o),this._cachedGetSinglePixelWidth=null},constructPath:function(t,e){for(var n=this.ctx,r=this.current,i=r.x,o=r.y,a=0,s=0,l=t.length;a<l;a++)switch(0|t[a]){case u.OPS.rectangle:i=e[s++],o=e[s++];var c=e[s++],f=e[s++];0===c&&n.lineWidth<this.getSinglePixelWidth()&&(c=this.getSinglePixelWidth()),0===f&&n.lineWidth<this.getSinglePixelWidth()&&(f=this.getSinglePixelWidth());var d=i+c,h=o+f;n.moveTo(i,o),n.lineTo(d,o),n.lineTo(d,h),n.lineTo(i,h),n.lineTo(i,o),n.closePath();break;case u.OPS.moveTo:i=e[s++],o=e[s++],n.moveTo(i,o);break;case u.OPS.lineTo:i=e[s++],o=e[s++],n.lineTo(i,o);break;case u.OPS.curveTo:i=e[s+4],o=e[s+5],n.bezierCurveTo(e[s],e[s+1],e[s+2],e[s+3],i,o),s+=6;break;case u.OPS.curveTo2:n.bezierCurveTo(i,o,e[s],e[s+1],e[s+2],e[s+3]),i=e[s+2],o=e[s+3],s+=4;break;case u.OPS.curveTo3:i=e[s+2],o=e[s+3],n.bezierCurveTo(e[s],e[s+1],i,o,i,o),s+=4;break;case u.OPS.closePath:n.closePath()}r.setCurrentPoint(i,o)},closePath:function(){this.ctx.closePath()},stroke:function(t){t=void 0===t||t;var e=this.ctx,n=this.current.strokeColor;if(e.globalAlpha=this.current.strokeAlpha,this.contentVisible)if(n&&n.hasOwnProperty("type")&&"Pattern"===n.type){e.save();var r=e.mozCurrentTransform,i=u.Util.singularValueDecompose2dScale(r)[0];e.strokeStyle=n.getPattern(e,this),e.lineWidth=Math.max(.65*this.getSinglePixelWidth(),this.current.lineWidth*i),e.stroke(),e.restore()}else e.lineWidth=Math.max(.65*this.getSinglePixelWidth(),this.current.lineWidth),e.stroke();t&&this.consumePath(),e.globalAlpha=this.current.fillAlpha},closeStroke:function(){this.closePath(),this.stroke()},fill:function(t){t=void 0===t||t;var e=this.ctx,n=this.current.fillColor,r=this.current.patternFill,i=!1;r&&(e.save(),this.baseTransform&&e.setTransform.apply(e,this.baseTransform),e.fillStyle=n.getPattern(e,this),i=!0),this.contentVisible&&(this.pendingEOFill?(e.fill("evenodd"),this.pendingEOFill=!1):e.fill()),i&&e.restore(),t&&this.consumePath()},eoFill:function(){this.pendingEOFill=!0,this.fill()},fillStroke:function(){this.fill(!1),this.stroke(!1),this.consumePath()},eoFillStroke:function(){this.pendingEOFill=!0,this.fillStroke()},closeFillStroke:function(){this.closePath(),this.fillStroke()},closeEOFillStroke:function(){this.pendingEOFill=!0,this.closePath(),this.fillStroke()},endPath:function(){this.consumePath()},clip:function(){this.pendingClip=_},eoClip:function(){this.pendingClip=w},beginText:function(){this.current.textMatrix=u.IDENTITY_MATRIX,this.current.textMatrixScale=1,this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0},endText:function(){var t=this.pendingTextPaths,e=this.ctx;if(void 0===t)return void e.beginPath();e.save(),e.beginPath();for(var n=0;n<t.length;n++){var r=t[n];e.setTransform.apply(e,r.transform),e.translate(r.x,r.y),r.addToPath(e,r.fontSize)}e.restore(),e.clip(),e.beginPath(),delete this.pendingTextPaths},setCharSpacing:function(t){this.current.charSpacing=t},setWordSpacing:function(t){this.current.wordSpacing=t},setHScale:function(t){this.current.textHScale=t/100},setLeading:function(t){this.current.leading=-t},setFont:function(t,e){var n=this.commonObjs.get(t),r=this.current;if(!n)throw new Error("Can't find font for ".concat(t));if(r.fontMatrix=n.fontMatrix?n.fontMatrix:u.FONT_IDENTITY_MATRIX,0!==r.fontMatrix[0]&&0!==r.fontMatrix[3]||(0,u.warn)("Invalid font matrix for font "+t),e<0?(e=-e,r.fontDirection=-1):r.fontDirection=1,this.current.font=n,this.current.fontSize=e,!n.isType3Font){var i=n.loadedName||"sans-serif",o="normal";n.black?o="900":n.bold&&(o="bold");var a=n.italic?"italic":"normal",s='"'.concat(i,'", ').concat(n.fallbackName),l=e;e<16?l=16:e>100&&(l=100),this.current.fontSizeScale=e/l,this.ctx.font="".concat(a," ").concat(o," ").concat(l,"px ").concat(s)}},setTextRenderingMode:function(t){this.current.textRenderingMode=t},setTextRise:function(t){this.current.textRise=t},moveText:function(t,e){this.current.x=this.current.lineX+=t,this.current.y=this.current.lineY+=e},setLeadingMoveText:function(t,e){this.setLeading(-e),this.moveText(t,e)},setTextMatrix:function(t,e,n,r,i,o){this.current.textMatrix=[t,e,n,r,i,o],this.current.textMatrixScale=Math.sqrt(t*t+e*e),this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0},nextLine:function(){this.moveText(0,this.current.leading)},paintChar:function(t,e,n,r){var i,o=this.ctx,a=this.current,s=a.font,l=a.textRenderingMode,c=a.fontSize/a.fontSizeScale,f=l&u.TextRenderingMode.FILL_STROKE_MASK,d=!!(l&u.TextRenderingMode.ADD_TO_PATH_FLAG),h=a.patternFill&&!s.missingFile;if((s.disableFontFace||d||h)&&(i=s.getPathGenerator(this.commonObjs,t)),s.disableFontFace||h?(o.save(),o.translate(e,n),o.beginPath(),i(o,c),r&&o.setTransform.apply(o,r),f!==u.TextRenderingMode.FILL&&f!==u.TextRenderingMode.FILL_STROKE||o.fill(),f!==u.TextRenderingMode.STROKE&&f!==u.TextRenderingMode.FILL_STROKE||o.stroke(),o.restore()):(f!==u.TextRenderingMode.FILL&&f!==u.TextRenderingMode.FILL_STROKE||o.fillText(t,e,n),f!==u.TextRenderingMode.STROKE&&f!==u.TextRenderingMode.FILL_STROKE||o.strokeText(t,e,n)),d){(this.pendingTextPaths||(this.pendingTextPaths=[])).push({transform:o.mozCurrentTransform,x:e,y:n,fontSize:c,addToPath:i})}},get isFontSubpixelAAEnabled(){var t=this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled",10,10),e=t.context;e.scale(1.5,1),e.fillText("I",0,10);for(var n=e.getImageData(0,0,10,10).data,r=!1,i=3;i<n.length;i+=4)if(n[i]>0&&n[i]<255){r=!0;break}return(0,u.shadow)(this,"isFontSubpixelAAEnabled",r)},showText:function(t){var e=this.current,n=e.font;if(n.isType3Font)return this.showType3Text(t);var r=e.fontSize;if(0!==r){var i=this.ctx,o=e.fontSizeScale,a=e.charSpacing,s=e.wordSpacing,l=e.fontDirection,c=e.textHScale*l,f=t.length,d=n.vertical,h=d?1:-1,p=n.defaultVMetrics,g=r*e.fontMatrix[0],m=e.textRenderingMode===u.TextRenderingMode.FILL&&!n.disableFontFace&&!e.patternFill;i.save();var v;if(e.patternFill){i.save();var y=e.fillColor.getPattern(i,this);v=i.mozCurrentTransform,i.restore(),i.fillStyle=y}i.transform.apply(i,e.textMatrix),i.translate(e.x,e.y+e.textRise),l>0?i.scale(c,-1):i.scale(c,1);var b=e.lineWidth,_=e.textMatrixScale;if(0===_||0===b){var w=e.textRenderingMode&u.TextRenderingMode.FILL_STROKE_MASK;w!==u.TextRenderingMode.STROKE&&w!==u.TextRenderingMode.FILL_STROKE||(this._cachedGetSinglePixelWidth=null,b=.65*this.getSinglePixelWidth())}else b/=_;1!==o&&(i.scale(o,o),b/=o),i.lineWidth=b;var x,k=0;for(x=0;x<f;++x){var S=t[x];if((0,u.isNum)(S))k+=h*S*r/1e3;else{var C,E,T,A,O=!1,P=(S.isSpace?s:0)+a,N=S.fontChar,D=S.accent,M=S.width;if(d){var I,R,$;I=S.vmetric||p,R=S.vmetric?I[1]:.5*M,R=-R*g,$=I[2]*g,M=I?-I[0]:M,C=R/o,E=(k+$)/o}else C=k/o,E=0;if(n.remeasure&&M>0){var L=1e3*i.measureText(N).width/r*o;if(M<L&&this.isFontSubpixelAAEnabled){var j=M/L;O=!0,i.save(),i.scale(j,1),C/=j}else M!==L&&(C+=(M-L)/2e3*r/o)}this.contentVisible&&(S.isInFont||n.missingFile)&&(m&&!D?i.fillText(N,C,E):(this.paintChar(N,C,E,v),D&&(T=C+r*D.offset.x/o,A=E-r*D.offset.y/o,this.paintChar(D.fontChar,T,A,v))));var F;F=d?M*g-P*l:M*g+P*l,k+=F,O&&i.restore()}}d?e.y-=k:e.x+=k*c,i.restore()}},showType3Text:function(t){var e,n,r,i,o=this.ctx,a=this.current,s=a.font,l=a.fontSize,c=a.fontDirection,f=s.vertical?1:-1,d=a.charSpacing,h=a.wordSpacing,p=a.textHScale*c,g=a.fontMatrix||u.FONT_IDENTITY_MATRIX,m=t.length,v=a.textRenderingMode===u.TextRenderingMode.INVISIBLE;if(!v&&0!==l){for(this._cachedGetSinglePixelWidth=null,o.save(),o.transform.apply(o,a.textMatrix),o.translate(a.x,a.y),o.scale(p,c),e=0;e<m;++e)if(n=t[e],(0,u.isNum)(n))i=f*n*l/1e3,this.ctx.translate(i,0),a.x+=i*p;else{var y=(n.isSpace?h:0)+d,b=s.charProcOperatorList[n.operatorListId];if(b){this.contentVisible&&(this.processingType3=n,this.save(),o.scale(l,l),o.transform.apply(o,g),this.executeOperatorList(b),this.restore());var _=u.Util.applyTransform([n.width,0],g);r=_[0]*l+y,o.translate(r,0),a.x+=r*p}else(0,u.warn)('Type3 character "'.concat(n.operatorListId,'" is not available.'))}o.restore(),this.processingType3=null}},setCharWidth:function(t,e){},setCharWidthAndBounds:function(t,e,n,r,i,o){this.ctx.rect(n,r,i-n,o-r),this.clip(),this.endPath()},getColorN_Pattern:function(e){var n,r=this;if("TilingPattern"===e[0]){var i=e[1],o=this.baseTransform||this.ctx.mozCurrentTransform.slice(),a={createCanvasGraphics:function(e){return new t(e,r.commonObjs,r.objs,r.canvasFactory,r.webGLContext)}};n=new l.TilingPattern(e,i,this.ctx,a,o)}else n=(0,l.getShadingPatternFromIR)(e);return n},setStrokeColorN:function(){this.current.strokeColor=this.getColorN_Pattern(arguments)},setFillColorN:function(){this.current.fillColor=this.getColorN_Pattern(arguments),this.current.patternFill=!0},setStrokeRGBColor:function(t,e,n){var r=u.Util.makeCssRgb(t,e,n);this.ctx.strokeStyle=r,this.current.strokeColor=r},setFillRGBColor:function(t,e,n){var r=u.Util.makeCssRgb(t,e,n);this.ctx.fillStyle=r,this.current.fillColor=r,this.current.patternFill=!1},shadingFill:function(t){if(this.contentVisible){var e=this.ctx;this.save();var n=(0,l.getShadingPatternFromIR)(t);e.fillStyle=n.getPattern(e,this,!0);var r=e.mozCurrentTransformInverse;if(r){var i=e.canvas,o=i.width,a=i.height,s=u.Util.applyTransform([0,0],r),c=u.Util.applyTransform([0,a],r),f=u.Util.applyTransform([o,0],r),d=u.Util.applyTransform([o,a],r),h=Math.min(s[0],c[0],f[0],d[0]),p=Math.min(s[1],c[1],f[1],d[1]),g=Math.max(s[0],c[0],f[0],d[0]),m=Math.max(s[1],c[1],f[1],d[1]);this.ctx.fillRect(h,p,g-h,m-p)}else this.ctx.fillRect(-1e10,-1e10,2e10,2e10);this.restore()}},beginInlineImage:function(){(0,u.unreachable)("Should not call beginInlineImage")},beginImageData:function(){(0,u.unreachable)("Should not call beginImageData")},paintFormXObjectBegin:function(t,e){if(this.contentVisible&&(this.save(),this.baseTransformStack.push(this.baseTransform),Array.isArray(t)&&6===t.length&&this.transform.apply(this,t),this.baseTransform=this.ctx.mozCurrentTransform,e)){var n=e[2]-e[0],r=e[3]-e[1];this.ctx.rect(e[0],e[1],n,r),this.clip(),this.endPath()}},paintFormXObjectEnd:function(){this.contentVisible&&(this.restore(),this.baseTransform=this.baseTransformStack.pop())},beginGroup:function(t){if(this.contentVisible){this.save();var e=this.ctx;t.isolated||(0,u.info)("TODO: Support non-isolated groups."),t.knockout&&(0,u.warn)("Knockout groups not supported.");var n=e.mozCurrentTransform;if(t.matrix&&e.transform.apply(e,t.matrix),!t.bbox)throw new Error("Bounding box is required.");var r=u.Util.getAxialAlignedBoundingBox(t.bbox,e.mozCurrentTransform),o=[0,0,e.canvas.width,e.canvas.height];r=u.Util.intersect(r,o)||[0,0,0,0];var a=Math.floor(r[0]),s=Math.floor(r[1]),l=Math.max(Math.ceil(r[2])-a,1),c=Math.max(Math.ceil(r[3])-s,1),f=1,d=1;l>4096&&(f=l/4096,l=4096),c>4096&&(d=c/4096,c=4096);var h="groupAt"+this.groupLevel;t.smask&&(h+="_smask_"+this.smaskCounter++%2);var p=this.cachedCanvases.getCanvas(h,l,c,!0),g=p.context;g.scale(1/f,1/d),g.translate(-a,-s),g.transform.apply(g,n),t.smask?this.smaskStack.push({canvas:p.canvas,context:g,offsetX:a,offsetY:s,scaleX:f,scaleY:d,subtype:t.smask.subtype,backdrop:t.smask.backdrop,transferMap:t.smask.transferMap||null,startTransformInverse:null}):(e.setTransform(1,0,0,1,0,0),e.translate(a,s),e.scale(f,d)),i(e,g),this.ctx=g,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(e),this.groupLevel++,this.current.activeSMask=null}},endGroup:function(t){if(this.contentVisible){this.groupLevel--;var e=this.ctx;this.ctx=this.groupStack.pop(),void 0!==this.ctx.imageSmoothingEnabled?this.ctx.imageSmoothingEnabled=!1:this.ctx.mozImageSmoothingEnabled=!1,t.smask?this.tempSMask=this.smaskStack.pop():this.ctx.drawImage(e.canvas,0,0),this.restore()}},beginAnnotations:function(){this.save(),this.baseTransform&&this.ctx.setTransform.apply(this.ctx,this.baseTransform)},endAnnotations:function(){this.restore()},beginAnnotation:function(t,e,n){if(this.save(),o(this.ctx),this.current=new d,Array.isArray(t)&&4===t.length){var r=t[2]-t[0],i=t[3]-t[1];this.ctx.rect(t[0],t[1],r,i),this.clip(),this.endPath()}this.transform.apply(this,e),this.transform.apply(this,n)},endAnnotation:function(){this.restore()},paintImageMaskXObject:function(t){if(this.contentVisible){var e=this.ctx,r=t.width,i=t.height,o=this.current.fillColor,a=this.current.patternFill,u=this.processingType3;if(u&&void 0===u.compiled&&(u.compiled=r<=1e3&&i<=1e3?s({data:t.data,width:r,height:i}):null),u&&u.compiled)return void u.compiled(e);var l=this.cachedCanvases.getCanvas("maskCanvas",r,i),c=l.context;c.save(),n(c,t),c.globalCompositeOperation="source-in",c.fillStyle=a?o.getPattern(c,this):o,c.fillRect(0,0,r,i),c.restore(),this.paintInlineImageXObject(l.canvas)}},paintImageMaskXObjectRepeat:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4?arguments[4]:void 0,a=arguments.length>5?arguments[5]:void 0;if(this.contentVisible){var s=t.width,u=t.height,l=this.current.fillColor,c=this.current.patternFill,f=this.cachedCanvases.getCanvas("maskCanvas",s,u),d=f.context;d.save(),n(d,t),d.globalCompositeOperation="source-in",d.fillStyle=c?l.getPattern(d,this):l,d.fillRect(0,0,s,u),d.restore();for(var h=this.ctx,p=0,g=a.length;p<g;p+=2)h.save(),h.transform(e,r,i,o,a[p],a[p+1]),h.scale(1,-1),h.drawImage(f.canvas,0,0,s,u,0,-1,1,1),h.restore()}},paintImageMaskXObjectGroup:function(t){if(this.contentVisible)for(var e=this.ctx,r=this.current.fillColor,i=this.current.patternFill,o=0,a=t.length;o<a;o++){var s=t[o],u=s.width,l=s.height,c=this.cachedCanvases.getCanvas("maskCanvas",u,l),f=c.context;f.save(),n(f,s),f.globalCompositeOperation="source-in",f.fillStyle=i?r.getPattern(f,this):r,f.fillRect(0,0,u,l),f.restore(),e.save(),e.transform.apply(e,s.transform),e.scale(1,-1),e.drawImage(c.canvas,0,0,u,l,0,-1,1,1),e.restore()}},paintImageXObject:function(t){if(this.contentVisible){var e=t.startsWith("g_")?this.commonObjs.get(t):this.objs.get(t);if(!e)return void(0,u.warn)("Dependent image isn't ready yet");this.paintInlineImageXObject(e)}},paintImageXObjectRepeat:function(t,e,n,r){if(this.contentVisible){var i=t.startsWith("g_")?this.commonObjs.get(t):this.objs.get(t);if(!i)return void(0,u.warn)("Dependent image isn't ready yet");for(var o=i.width,a=i.height,s=[],l=0,c=r.length;l<c;l+=2)s.push({transform:[e,0,0,n,r[l],r[l+1]],x:0,y:0,w:o,h:a});this.paintInlineImageXObjectGroup(i,s)}},paintInlineImageXObject:function(t){if(this.contentVisible){var n=t.width,r=t.height,i=this.ctx;this.save(),i.scale(1/n,-1/r);var o,a,s=i.mozCurrentTransformInverse,u=s[0],l=s[1],c=Math.max(Math.sqrt(u*u+l*l),1),f=s[2],d=s[3],h=Math.max(Math.sqrt(f*f+d*d),1);if("function"==typeof HTMLElement&&t instanceof HTMLElement||!t.data)o=t;else{a=this.cachedCanvases.getCanvas("inlineImage",n,r);var p=a.context;e(p,t,this.current.transferMaps),o=a.canvas}for(var g=n,m=r,v="prescale1";c>2&&g>1||h>2&&m>1;){var y=g,b=m;c>2&&g>1&&(y=Math.ceil(g/2),c/=g/y),h>2&&m>1&&(b=Math.ceil(m/2),h/=m/b),a=this.cachedCanvases.getCanvas(v,y,b),p=a.context,p.clearRect(0,0,y,b),p.drawImage(o,0,0,g,m,0,0,y,b),o=a.canvas,g=y,m=b,v="prescale1"===v?"prescale2":"prescale1"}if(i.drawImage(o,0,0,g,m,0,-r,n,r),this.imageLayer){var _=this.getCanvasPosition(0,-r);this.imageLayer.appendImage({imgData:t,left:_[0],top:_[1],width:n/s[0],height:r/s[3]})}this.restore()}},paintInlineImageXObjectGroup:function(t,n){if(this.contentVisible){var r=this.ctx,i=t.width,o=t.height,a=this.cachedCanvases.getCanvas("inlineImage",i,o);e(a.context,t,this.current.transferMaps);for(var s=0,u=n.length;s<u;s++){var l=n[s];if(r.save(),r.transform.apply(r,l.transform),r.scale(1,-1),r.drawImage(a.canvas,l.x,l.y,l.w,l.h,0,-1,1,1),this.imageLayer){var c=this.getCanvasPosition(l.x,l.y);this.imageLayer.appendImage({imgData:t,left:c[0],top:c[1],width:i,height:o})}r.restore()}}},paintSolidColorImageMask:function(){this.contentVisible&&this.ctx.fillRect(0,0,1,1)},markPoint:function(t){},markPointProps:function(t,e){},beginMarkedContent:function(t){this.markedContentStack.push({visible:!0})},beginMarkedContentProps:function(t,e){"OC"===t?this.markedContentStack.push({visible:this.optionalContentConfig.isVisible(e)}):this.markedContentStack.push({visible:!0}),this.contentVisible=this.isContentVisible()},endMarkedContent:function(){this.markedContentStack.pop(),this.contentVisible=this.isContentVisible()},beginCompat:function(){},endCompat:function(){},consumePath:function(){var t=this.ctx;this.pendingClip&&(this.pendingClip===w?t.clip("evenodd"):t.clip(),this.pendingClip=null),t.beginPath()},getSinglePixelWidth:function(t){if(null===this._cachedGetSinglePixelWidth){var e=this.ctx.mozCurrentTransformInverse;this._cachedGetSinglePixelWidth=Math.sqrt(Math.max(e[0]*e[0]+e[1]*e[1],e[2]*e[2]+e[3]*e[3]))}return this._cachedGetSinglePixelWidth},getCanvasPosition:function(t,e){var n=this.ctx.mozCurrentTransform;return[n[0]*t+n[2]*e+n[4],n[1]*t+n[3]*e+n[5]]},isContentVisible:function(){for(var t=this.markedContentStack.length-1;t>=0;t--)if(!this.markedContentStack[t].visible)return!1;return!0}};for(var x in u.OPS)t.prototype[u.OPS[x]]=t.prototype[x];return t}();e.CanvasGraphics=h},function(t,e,n){"use strict";function r(t,e){if(e&&"undefined"!=typeof Path2D){var n=e[2]-e[0],r=e[3]-e[1],i=new Path2D;i.rect(e[0],e[1],n,r),t.clip(i)}}function i(t){var e=a[t[0]];if(!e)throw new Error("Unknown IR type: ".concat(t[0]));return e.fromIR(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.getShadingPatternFromIR=i,e.TilingPattern=void 0;var o=n(5),a={};a.RadialAxial={fromIR:function(t){var e=t[1],n=t[2],i=t[3],o=t[4],a=t[5],s=t[6],u=t[7];return{type:"Pattern",getPattern:function(t){r(t,n);var l;"axial"===e?l=t.createLinearGradient(o[0],o[1],a[0],a[1]):"radial"===e&&(l=t.createRadialGradient(o[0],o[1],s,a[0],a[1],u));for(var c=0,f=i.length;c<f;++c){var d=i[c];l.addColorStop(d[0],d[1])}return l}}}};var s=function(){function t(t,e,n,r,i,o,a,s){var u,l=e.coords,c=e.colors,f=t.data,d=4*t.width;l[n+1]>l[r+1]&&(u=n,n=r,r=u,u=o,o=a,a=u),l[r+1]>l[i+1]&&(u=r,r=i,i=u,u=a,a=s,s=u),l[n+1]>l[r+1]&&(u=n,n=r,r=u,u=o,o=a,a=u);var h=(l[n]+e.offsetX)*e.scaleX,p=(l[n+1]+e.offsetY)*e.scaleY,g=(l[r]+e.offsetX)*e.scaleX,m=(l[r+1]+e.offsetY)*e.scaleY,v=(l[i]+e.offsetX)*e.scaleX,y=(l[i+1]+e.offsetY)*e.scaleY;if(!(p>=y))for(var b,_,w,x,k,S,C,E,T=c[o],A=c[o+1],O=c[o+2],P=c[a],N=c[a+1],D=c[a+2],M=c[s],I=c[s+1],R=c[s+2],$=Math.round(p),L=Math.round(y),j=$;j<=L;j++){if(j<m){var F=void 0;F=j<p?0:p===m?1:(p-j)/(p-m),b=h-(h-g)*F,_=T-(T-P)*F,w=A-(A-N)*F,x=O-(O-D)*F}else{var B=void 0;B=j>y?1:m===y?0:(m-j)/(m-y),b=g-(g-v)*B,_=P-(P-M)*B,w=N-(N-I)*B,x=D-(D-R)*B}var V=void 0;V=j<p?0:j>y?1:(p-j)/(p-y),k=h-(h-v)*V,S=T-(T-M)*V,C=A-(A-I)*V,E=O-(O-R)*V;for(var z=Math.round(Math.min(b,k)),U=Math.round(Math.max(b,k)),H=d*j+4*z,q=z;q<=U;q++)V=(b-q)/(b-k),V<0?V=0:V>1&&(V=1),f[H++]=_-(_-S)*V|0,f[H++]=w-(w-C)*V|0,f[H++]=x-(x-E)*V|0,f[H++]=255}}function e(e,n,r){var i,o,a=n.coords,s=n.colors;switch(n.type){case"lattice":var u=n.verticesPerRow,l=Math.floor(a.length/u)-1,c=u-1;for(i=0;i<l;i++)for(var f=i*u,d=0;d<c;d++,f++)t(e,r,a[f],a[f+1],a[f+u],s[f],s[f+1],s[f+u]),t(e,r,a[f+u+1],a[f+1],a[f+u],s[f+u+1],s[f+1],s[f+u]);break;case"triangles":for(i=0,o=a.length;i<o;i+=3)t(e,r,a[i],a[i+1],a[i+2],s[i],s[i+1],s[i+2]);break;default:throw new Error("illegal figure")}}function n(t,n,r,i,o,a,s,u){var l,c,f,d,h=Math.floor(t[0]),p=Math.floor(t[1]),g=Math.ceil(t[2])-h,m=Math.ceil(t[3])-p,v=Math.min(Math.ceil(Math.abs(g*n[0]*1.1)),3e3),y=Math.min(Math.ceil(Math.abs(m*n[1]*1.1)),3e3),b=g/v,_=m/y,w={coords:r,colors:i,offsetX:-h,offsetY:-p,scaleX:1/b,scaleY:1/_},x=v+4,k=y+4;if(u.isEnabled)l=u.drawFigures({width:v,height:y,backgroundColor:a,figures:o,context:w}),c=s.getCanvas("mesh",x,k,!1),c.context.drawImage(l,2,2),l=c.canvas;else{c=s.getCanvas("mesh",x,k,!1);var S=c.context,C=S.createImageData(v,y);if(a){var E=C.data;for(f=0,d=E.length;f<d;f+=4)E[f]=a[0],E[f+1]=a[1],E[f+2]=a[2],E[f+3]=255}for(f=0;f<o.length;f++)e(C,o[f],w);S.putImageData(C,2,2),l=c.canvas}return{canvas:l,offsetX:h-2*b,offsetY:p-2*_,scaleX:b,scaleY:_}}return n}();a.Mesh={fromIR:function(t){var e=t[2],n=t[3],i=t[4],a=t[5],u=t[6],l=t[7],c=t[8];return{type:"Pattern",getPattern:function(t,f,d){r(t,l);var h;if(d)h=o.Util.singularValueDecompose2dScale(t.mozCurrentTransform);else if(h=o.Util.singularValueDecompose2dScale(f.baseTransform),u){var p=o.Util.singularValueDecompose2dScale(u);h=[h[0]*p[0],h[1]*p[1]]}var g=s(a,h,e,n,i,d?null:c,f.cachedCanvases,f.webGLContext);return d||(t.setTransform.apply(t,f.baseTransform),u&&t.transform.apply(t,u)),t.translate(g.offsetX,g.offsetY),t.scale(g.scaleX,g.scaleY),t.createPattern(g.canvas,"no-repeat")}}}},a.Dummy={fromIR:function(){return{type:"Pattern",getPattern:function(){return"hotpink"}}}};var u=function(){function t(t,e,n,r,i){this.operatorList=t[2],this.matrix=t[3]||[1,0,0,1,0,0],this.bbox=t[4],this.xstep=t[5],this.ystep=t[6],this.paintType=t[7],this.tilingType=t[8],this.color=e,this.canvasGraphicsFactory=r,this.baseTransform=i,this.type="Pattern",this.ctx=n}var e={COLORED:1,UNCOLORED:2};return t.prototype={createPatternCanvas:function(t){var e=this.operatorList,n=this.bbox,r=this.xstep,i=this.ystep,a=this.paintType,s=this.tilingType,u=this.color,l=this.canvasGraphicsFactory;(0,o.info)("TilingType: "+s);var c=n[0],f=n[1],d=n[2],h=n[3],p=o.Util.singularValueDecompose2dScale(this.matrix),g=o.Util.singularValueDecompose2dScale(this.baseTransform),m=[p[0]*g[0],p[1]*g[1]],v=this.getSizeAndScale(r,this.ctx.canvas.width,m[0]),y=this.getSizeAndScale(i,this.ctx.canvas.height,m[1]),b=t.cachedCanvases.getCanvas("pattern",v.size,y.size,!0),_=b.context,w=l.createCanvasGraphics(_);return w.groupLevel=t.groupLevel,this.setFillAndStrokeStyleToContext(w,a,u),w.transform(v.scale,0,0,y.scale,0,0),w.transform(1,0,0,1,-c,-f),this.clipBbox(w,n,c,f,d,h),w.executeOperatorList(e),this.ctx.transform(1,0,0,1,c,f),this.ctx.scale(1/v.scale,1/y.scale),b.canvas},getSizeAndScale:function(t,e,n){t=Math.abs(t);var r=Math.max(3e3,e),i=Math.ceil(t*n);return i>=r?i=r:n=i/t,{scale:n,size:i}},clipBbox:function(t,e,n,r,i,o){if(Array.isArray(e)&&4===e.length){var a=i-n,s=o-r;t.ctx.rect(n,r,a,s),t.clip(),t.endPath()}},setFillAndStrokeStyleToContext:function(t,n,r){var i=t.ctx,a=t.current;switch(n){case e.COLORED:var s=this.ctx;i.fillStyle=s.fillStyle,i.strokeStyle=s.strokeStyle,a.fillColor=s.fillStyle,a.strokeColor=s.strokeStyle;break;case e.UNCOLORED:var u=o.Util.makeCssRgb(r[0],r[1],r[2]);i.fillStyle=u,i.strokeStyle=u,a.fillColor=u,a.strokeColor=u;break;default:throw new o.FormatError("Unsupported paint type: ".concat(n))}},getPattern:function(t,e){t=this.ctx,t.setTransform.apply(t,this.baseTransform),t.transform.apply(t,this.matrix);var n=this.createPatternCanvas(e);return t.createPattern(n,"repeat")}},t}();e.TilingPattern=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GlobalWorkerOptions=void 0;var r=Object.create(null);e.GlobalWorkerOptions=r,r.workerPort=void 0===r.workerPort?null:r.workerPort,r.workerSrc=void 0===r.workerSrc?"":r.workerSrc},function(t,e,n){"use strict";function r(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}function i(t){return function(){var e=this,n=arguments;return new Promise(function(i,o){function a(t){r(u,i,o,a,s,"next",t)}function s(t){r(u,i,o,a,s,"throw",t)}var u=t.apply(e,n);a(void 0)})}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function s(t,e,n){return e&&a(t.prototype,e),n&&a(t,n),t}function u(t){"@babel/helpers - typeof";return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(t){if("object"!==u(t)||null===t)return t;switch(t.name){case"AbortException":return new f.AbortException(t.message);case"MissingPDFException":return new f.MissingPDFException(t.message);case"UnexpectedResponseException":return new f.UnexpectedResponseException(t.message,t.status);case"UnknownErrorException":return new f.UnknownErrorException(t.message,t.details);default:return new f.UnknownErrorException(t.message,t.toString())}}Object.defineProperty(e,"__esModule",{value:!0}),e.MessageHandler=void 0;var c=function(t){return t&&t.__esModule?t:{default:t}}(n(2)),f=n(5),d={UNKNOWN:0,DATA:1,ERROR:2},h={UNKNOWN:0,CANCEL:1,CANCEL_COMPLETE:2,CLOSE:3,ENQUEUE:4,ERROR:5,PULL:6,PULL_COMPLETE:7,START_COMPLETE:8},p=function(){function t(e,n,r){var i=this;o(this,t),this.sourceName=e,this.targetName=n,this.comObj=r,this.callbackId=1,this.streamId=1,this.postMessageTransfers=!0,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),this._onComObjOnMessage=function(t){var e=t.data;if(e.targetName===i.sourceName){if(e.stream)return void i._processStreamMessage(e);if(e.callback){var n=e.callbackId,o=i.callbackCapabilities[n];if(!o)throw new Error("Cannot resolve callback ".concat(n));if(delete i.callbackCapabilities[n],e.callback===d.DATA)o.resolve(e.data);else{if(e.callback!==d.ERROR)throw new Error("Unexpected callback case");o.reject(l(e.reason))}}else{var a=i.actionHandler[e.action];if(!a)throw new Error("Unknown action from worker: ".concat(e.action));if(e.callbackId){var s=i.sourceName,u=e.sourceName;return void new Promise(function(t){t(a(e.data))}).then(function(t){r.postMessage({sourceName:s,targetName:u,callback:d.DATA,callbackId:e.callbackId,data:t})},function(t){r.postMessage({sourceName:s,targetName:u,callback:d.ERROR,callbackId:e.callbackId,reason:l(t)})})}if(e.streamId)return void i._createStreamSink(e);a(e.data)}}},r.addEventListener("message",this._onComObjOnMessage)}return s(t,[{key:"on",value:function(t,e){var n=this.actionHandler;if(n[t])throw new Error('There is already an actionName called "'.concat(t,'"'));n[t]=e}},{key:"send",value:function(t,e,n){this._postMessage({sourceName:this.sourceName,targetName:this.targetName,action:t,data:e},n)}},{key:"sendWithPromise",value:function(t,e,n){var r=this.callbackId++,i=(0,f.createPromiseCapability)();this.callbackCapabilities[r]=i;try{this._postMessage({sourceName:this.sourceName,targetName:this.targetName,action:t,callbackId:r,data:e},n)}catch(t){i.reject(t)}return i.promise}},{key:"sendWithStream",value:function(t,e,n,r){var i=this,o=this.streamId++,a=this.sourceName,s=this.targetName,u=this.comObj;return new ReadableStream({start:function(n){var u=(0,f.createPromiseCapability)();return i.streamControllers[o]={controller:n,startCall:u,pullCall:null,cancelCall:null,isClosed:!1},i._postMessage({sourceName:a,targetName:s,action:t,streamId:o,data:e,desiredSize:n.desiredSize},r),u.promise},pull:function(t){var e=(0,f.createPromiseCapability)();return i.streamControllers[o].pullCall=e,u.postMessage({sourceName:a,targetName:s,stream:h.PULL,streamId:o,desiredSize:t.desiredSize}),e.promise},cancel:function(t){(0,f.assert)(t instanceof Error,"cancel must have a valid reason");var e=(0,f.createPromiseCapability)();return i.streamControllers[o].cancelCall=e,i.streamControllers[o].isClosed=!0,u.postMessage({sourceName:a,targetName:s,stream:h.CANCEL,streamId:o,reason:l(t)}),e.promise}},n)}},{key:"_createStreamSink",value:function(t){var e=this,n=this.actionHandler[t.action],r=t.streamId,i=this.sourceName,o=t.sourceName,a=this.comObj,s={enqueue:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,a=arguments.length>2?arguments[2]:void 0;if(!this.isCancelled){var s=this.desiredSize;this.desiredSize-=n,s>0&&this.desiredSize<=0&&(this.sinkCapability=(0,f.createPromiseCapability)(),this.ready=this.sinkCapability.promise),e._postMessage({sourceName:i,targetName:o,stream:h.ENQUEUE,streamId:r,chunk:t},a)}},close:function(){this.isCancelled||(this.isCancelled=!0,a.postMessage({sourceName:i,targetName:o,stream:h.CLOSE,streamId:r}),delete e.streamSinks[r])},error:function(t){(0,f.assert)(t instanceof Error,"error must have a valid reason"),this.isCancelled||(this.isCancelled=!0,a.postMessage({sourceName:i,targetName:o,stream:h.ERROR,streamId:r,reason:l(t)}))},sinkCapability:(0,f.createPromiseCapability)(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:t.desiredSize,ready:null};s.sinkCapability.resolve(),s.ready=s.sinkCapability.promise,this.streamSinks[r]=s,new Promise(function(e){e(n(t.data,s))}).then(function(){a.postMessage({sourceName:i,targetName:o,stream:h.START_COMPLETE,streamId:r,success:!0})},function(t){a.postMessage({sourceName:i,targetName:o,stream:h.START_COMPLETE,streamId:r,reason:l(t)})})}},{key:"_processStreamMessage",value:function(t){var e=t.streamId,n=this.sourceName,r=t.sourceName,i=this.comObj;switch(t.stream){case h.START_COMPLETE:t.success?this.streamControllers[e].startCall.resolve():this.streamControllers[e].startCall.reject(l(t.reason));break;case h.PULL_COMPLETE:t.success?this.streamControllers[e].pullCall.resolve():this.streamControllers[e].pullCall.reject(l(t.reason));break;case h.PULL:if(!this.streamSinks[e]){i.postMessage({sourceName:n,targetName:r,stream:h.PULL_COMPLETE,streamId:e,success:!0});break}this.streamSinks[e].desiredSize<=0&&t.desiredSize>0&&this.streamSinks[e].sinkCapability.resolve(),this.streamSinks[e].desiredSize=t.desiredSize;var o=this.streamSinks[t.streamId].onPull;new Promise(function(t){t(o&&o())}).then(function(){i.postMessage({sourceName:n,targetName:r,stream:h.PULL_COMPLETE,streamId:e,success:!0})},function(t){i.postMessage({sourceName:n,targetName:r,stream:h.PULL_COMPLETE,streamId:e,reason:l(t)})});break;case h.ENQUEUE:if((0,f.assert)(this.streamControllers[e],"enqueue should have stream controller"),this.streamControllers[e].isClosed)break;this.streamControllers[e].controller.enqueue(t.chunk);break;case h.CLOSE:if((0,f.assert)(this.streamControllers[e],"close should have stream controller"),this.streamControllers[e].isClosed)break;this.streamControllers[e].isClosed=!0,this.streamControllers[e].controller.close(),this._deleteStreamController(e);break;case h.ERROR:(0,f.assert)(this.streamControllers[e],"error should have stream controller"),this.streamControllers[e].controller.error(l(t.reason)),this._deleteStreamController(e);break;case h.CANCEL_COMPLETE:t.success?this.streamControllers[e].cancelCall.resolve():this.streamControllers[e].cancelCall.reject(l(t.reason)),this._deleteStreamController(e);break;case h.CANCEL:if(!this.streamSinks[e])break;var a=this.streamSinks[t.streamId].onCancel;new Promise(function(e){e(a&&a(l(t.reason)))}).then(function(){i.postMessage({sourceName:n,targetName:r,stream:h.CANCEL_COMPLETE,streamId:e,success:!0})},function(t){i.postMessage({sourceName:n,targetName:r,stream:h.CANCEL_COMPLETE,streamId:e,reason:l(t)})}),this.streamSinks[e].sinkCapability.reject(l(t.reason)),this.streamSinks[e].isCancelled=!0,delete this.streamSinks[e];break;default:throw new Error("Unexpected stream case")}}},{key:"_deleteStreamController",value:function(){function t(t){return e.apply(this,arguments)}var e=i(c.default.mark(function t(e){return c.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.allSettled([this.streamControllers[e].startCall,this.streamControllers[e].pullCall,this.streamControllers[e].cancelCall].map(function(t){return t&&t.promise}));case 2:delete this.streamControllers[e];case 3:case"end":return t.stop()}},t,this)}));return t}()},{key:"_postMessage",value:function(t,e){e&&this.postMessageTransfers?this.comObj.postMessage(t,e):this.comObj.postMessage(t)}},{key:"destroy",value:function(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}]),t}();e.MessageHandler=p},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),t}Object.defineProperty(e,"__esModule",{value:!0}),e.Metadata=void 0;var a=n(5),s=n(212),u=function(){function t(e){r(this,t),(0,a.assert)("string"==typeof e,"Metadata: input is not a string"),e=this._repair(e);var n=new s.SimpleXMLParser,i=n.parseFromString(e);this._metadataMap=new Map,i&&this._parse(i)}return o(t,[{key:"_repair",value:function(t){return t.replace(/^[^<]+/,"").replace(/>\\376\\377([^<]+)/g,function(t,e){for(var n=e.replace(/\\([0-3])([0-7])([0-7])/g,function(t,e,n,r){return String.fromCharCode(64*e+8*n+1*r)}).replace(/&(amp|apos|gt|lt|quot);/g,function(t,e){switch(e){case"amp":return"&";case"apos":return"'";case"gt":return">";case"lt":return"<";case"quot":return'"'}throw new Error("_repair: ".concat(e," isn't defined."))}),r="",i=0,o=n.length;i<o;i+=2){var a=256*n.charCodeAt(i)+n.charCodeAt(i+1);r+=a>=32&&a<127&&60!==a&&62!==a&&38!==a?String.fromCharCode(a):"&#x"+(65536+a).toString(16).substring(1)+";"}return">"+r})}},{key:"_parse",value:function(t){var e=t.documentElement;if("rdf:rdf"!==e.nodeName.toLowerCase())for(e=e.firstChild;e&&"rdf:rdf"!==e.nodeName.toLowerCase();)e=e.nextSibling;var n=e?e.nodeName.toLowerCase():null;if(e&&"rdf:rdf"===n&&e.hasChildNodes())for(var r=e.childNodes,i=0,o=r.length;i<o;i++){var a=r[i];if("rdf:description"===a.nodeName.toLowerCase())for(var s=0,u=a.childNodes.length;s<u;s++)if("#text"!==a.childNodes[s].nodeName.toLowerCase()){var l=a.childNodes[s],c=l.nodeName.toLowerCase();this._metadataMap.set(c,l.textContent.trim())}}}},{key:"get",value:function(t){return this._metadataMap.has(t)?this._metadataMap.get(t):null}},{key:"getAll",value:function(){return Object.fromEntries(this._metadataMap)}},{key:"has",value:function(t){return this._metadataMap.has(t)}}]),t}();e.Metadata=u},function(t,e,n){"use strict";function r(t){"@babel/helpers - typeof";return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){return l(t)||u(t,e)||a(t,e)||o()}function o(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function a(t,e){if(t){if("string"==typeof t)return s(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(t,e):void 0}}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function u(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}function l(t){if(Array.isArray(t))return t}function c(t,e,n){return(c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=f(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(n):i.value}})(t,e,n||t)}function f(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=y(t)););return t}function d(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&h(t,e)}function h(t,e){return(h=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function p(t){var e=v();return function(){var n,r=y(t);if(e){var i=y(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return g(this,n)}}function g(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?m(t):e}function m(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function v(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}function y(t){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function b(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function w(t,e,n){return e&&_(t.prototype,e),n&&_(t,n),t}function x(t,e){var n=t[e];return" "===n||"\n"===n||"\r"===n||"\t"===n}function k(t){for(var e=0,n=t.length;e<n;e++)if(!x(t,e))return!1;return!0}Object.defineProperty(e,"__esModule",{value:!0}),e.SimpleXMLParser=void 0;var S={NoError:0,EndOfDocument:-1,UnterminatedCdat:-2,UnterminatedXmlDeclaration:-3,UnterminatedDoctypeDeclaration:-4,UnterminatedComment:-5,MalformedElement:-6,OutOfMemory:-7,UnterminatedAttributeValue:-8,UnterminatedElement:-9,ElementNeverBegun:-10},C=function(){function t(){b(this,t)}return w(t,[{key:"_resolveEntities",value:function(t){var e=this;return t.replace(/&([^;]+);/g,function(t,n){if("#x"===n.substring(0,2))return String.fromCharCode(parseInt(n.substring(2),16));if("#"===n.substring(0,1))return String.fromCharCode(parseInt(n.substring(1),10));switch(n){case"lt":return"<";case"gt":return">";case"amp":return"&";case"quot":return'"'}return e.onResolveEntity(n)})}},{key:"_parseContent",value:function(t,e){function n(){for(;i<t.length&&x(t,i);)++i}for(var r=[],i=e;i<t.length&&!x(t,i)&&">"!==t[i]&&"/"!==t[i];)++i;var o=t.substring(e,i);for(n();i<t.length&&">"!==t[i]&&"/"!==t[i]&&"?"!==t[i];){n();for(var a="",s="";i<t.length&&!x(t,i)&&"="!==t[i];)a+=t[i],++i;if(n(),"="!==t[i])return null;++i,n();var u=t[i];if('"'!==u&&"'"!==u)return null;var l=t.indexOf(u,++i);if(l<0)return null;s=t.substring(i,l),r.push({name:a,value:this._resolveEntities(s)}),i=l+1,n()}return{name:o,attributes:r,parsed:i-e}}},{key:"_parseProcessingInstruction",value:function(t,e){for(var n=e;n<t.length&&!x(t,n)&&">"!==t[n]&&"/"!==t[n];)++n;var r=t.substring(e,n);!function(){for(;n<t.length&&x(t,n);)++n}();for(var i=n;n<t.length&&("?"!==t[n]||">"!==t[n+1]);)++n;return{name:r,value:t.substring(i,n),parsed:n-e}}},{key:"parseXml",value:function(t){for(var e=0;e<t.length;){var n=t[e],r=e;if("<"===n){++r;var i=t[r],o=void 0;switch(i){case"/":if(++r,(o=t.indexOf(">",r))<0)return void this.onError(S.UnterminatedElement);this.onEndElement(t.substring(r,o)),r=o+1;break;case"?":++r;var a=this._parseProcessingInstruction(t,r);if("?>"!==t.substring(r+a.parsed,r+a.parsed+2))return void this.onError(S.UnterminatedXmlDeclaration);this.onPi(a.name,a.value),r+=a.parsed+2;break;case"!":if("--"===t.substring(r+1,r+3)){if((o=t.indexOf("--\x3e",r+3))<0)return void this.onError(S.UnterminatedComment);this.onComment(t.substring(r+3,o)),r=o+3}else if("[CDATA["===t.substring(r+1,r+8)){if((o=t.indexOf("]]>",r+8))<0)return void this.onError(S.UnterminatedCdat);this.onCdata(t.substring(r+8,o)),r=o+3}else{if("DOCTYPE"!==t.substring(r+1,r+8))return void this.onError(S.MalformedElement);var s=t.indexOf("[",r+8),u=!1;if((o=t.indexOf(">",r+8))<0)return void this.onError(S.UnterminatedDoctypeDeclaration);if(s>0&&o>s){if((o=t.indexOf("]>",r+8))<0)return void this.onError(S.UnterminatedDoctypeDeclaration);u=!0}var l=t.substring(r+8,o+(u?1:0));this.onDoctype(l),r=o+(u?2:1)}break;default:var c=this._parseContent(t,r);if(null===c)return void this.onError(S.MalformedElement);var f=!1;if("/>"===t.substring(r+c.parsed,r+c.parsed+2))f=!0;else if(">"!==t.substring(r+c.parsed,r+c.parsed+1))return void this.onError(S.UnterminatedElement);this.onBeginElement(c.name,c.attributes,f),r+=c.parsed+(f?2:1)}}else{for(;r<t.length&&"<"!==t[r];)r++;var d=t.substring(e,r);this.onText(this._resolveEntities(d))}e=r}}},{key:"onResolveEntity",value:function(t){return"&".concat(t,";")}},{key:"onPi",value:function(t,e){}},{key:"onComment",value:function(t){}},{key:"onCdata",value:function(t){}},{key:"onDoctype",value:function(t){}},{key:"onText",value:function(t){}},{key:"onBeginElement",value:function(t,e,n){}},{key:"onEndElement",value:function(t){}},{key:"onError",value:function(t){}}]),t}(),E=function(){function t(e,n){b(this,t),this.nodeName=e,this.nodeValue=n,Object.defineProperty(this,"parentNode",{value:null,writable:!0})}return w(t,[{key:"hasChildNodes",value:function(){return this.childNodes&&this.childNodes.length>0}},{key:"firstChild",get:function(){return this.childNodes&&this.childNodes[0]}},{key:"nextSibling",get:function(){var t=this.parentNode.childNodes;if(t){var e=t.indexOf(this);if(-1!==e)return t[e+1]}}},{key:"textContent",get:function(){return this.childNodes?this.childNodes.map(function(t){return t.textContent}).join(""):this.nodeValue||""}}]),t}(),T=function(t){function e(){var t;return b(this,e),t=n.call(this),t._currentFragment=null,t._stack=null,t._errorCode=S.NoError,t}d(e,t);var n=p(e);return w(e,[{key:"parseFromString",value:function(t){if(this._currentFragment=[],this._stack=[],this._errorCode=S.NoError,this.parseXml(t),this._errorCode===S.NoError){var e=i(this._currentFragment,1),n=e[0];if(n)return{documentElement:n}}}},{key:"onResolveEntity",value:function(t){switch(t){case"apos":return"'"}return c(y(e.prototype),"onResolveEntity",this).call(this,t)}},{key:"onText",value:function(t){if(!k(t)){var e=new E("#text",t);this._currentFragment.push(e)}}},{key:"onCdata",value:function(t){var e=new E("#text",t);this._currentFragment.push(e)}},{key:"onBeginElement",value:function(t,e,n){var r=new E(t);r.childNodes=[],this._currentFragment.push(r),n||(this._stack.push(this._currentFragment),this._currentFragment=r.childNodes)}},{key:"onEndElement",value:function(t){this._currentFragment=this._stack.pop()||[];var e=this._currentFragment[this._currentFragment.length-1];if(e)for(var n=0,r=e.childNodes.length;n<r;n++)e.childNodes[n].parentNode=e}},{key:"onError",value:function(t){this._errorCode=t}}]),e}(C);e.SimpleXMLParser=T},function(t,e,n){"use strict";function r(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=i(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}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 a,s=!0,u=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}function i(t,e){if(t){if("string"==typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(t,e):void 0}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function s(t,e,n){return e&&a(t.prototype,e),n&&a(t,n),t}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.OptionalContentConfig=void 0;var l=n(5),c=function t(e,n){u(this,t),this.visible=!0,this.name=e,this.intent=n},f=function(){function t(e){if(u(this,t),this.name=null,this.creator=null,this._order=null,this._groups=new Map,null!==e){this.name=e.name,this.creator=e.creator,this._order=e.order;var n,i=r(e.groups);try{for(i.s();!(n=i.n()).done;){var o=n.value;this._groups.set(o.id,new c(o.name,o.intent))}}catch(t){i.e(t)}finally{i.f()}if("OFF"===e.baseState){var a,s=r(this._groups);try{for(s.s();!(a=s.n()).done;){a.value.visible=!1}}catch(t){s.e(t)}finally{s.f()}}var l,f=r(e.on);try{for(f.s();!(l=f.n()).done;){var d=l.value;this._groups.get(d).visible=!0}}catch(t){f.e(t)}finally{f.f()}var h,p=r(e.off);try{for(p.s();!(h=p.n()).done;){var g=h.value;this._groups.get(g).visible=!1}}catch(t){p.e(t)}finally{p.f()}}}return s(t,[{key:"isVisible",value:function(t){if("OCG"===t.type)return this._groups.has(t.id)?this._groups.get(t.id).visible:((0,l.warn)("Optional content group not found: ".concat(t.id)),!0);if("OCMD"===t.type){if(t.expression&&(0,l.warn)("Visibility expression not supported yet."),!t.policy||"AnyOn"===t.policy){var e,n=r(t.ids);try{for(n.s();!(e=n.n()).done;){var i=e.value;if(!this._groups.has(i))return(0,l.warn)("Optional content group not found: ".concat(i)),!0;if(this._groups.get(i).visible)return!0}}catch(t){n.e(t)}finally{n.f()}return!1}if("AllOn"===t.policy){var o,a=r(t.ids);try{for(a.s();!(o=a.n()).done;){var s=o.value;if(!this._groups.has(s))return(0,l.warn)("Optional content group not found: ".concat(s)),!0;if(!this._groups.get(s).visible)return!1}}catch(t){a.e(t)}finally{a.f()}return!0}if("AnyOff"===t.policy){var u,c=r(t.ids);try{for(c.s();!(u=c.n()).done;){var f=u.value;if(!this._groups.has(f))return(0,l.warn)("Optional content group not found: ".concat(f)),!0;if(!this._groups.get(f).visible)return!0}}catch(t){c.e(t)}finally{c.f()}return!1}if("AllOff"===t.policy){var d,h=r(t.ids);try{for(h.s();!(d=h.n()).done;){var p=d.value;if(!this._groups.has(p))return(0,l.warn)("Optional content group not found: ".concat(p)),!0;if(this._groups.get(p).visible)return!1}}catch(t){h.e(t)}finally{h.f()}return!0}return(0,l.warn)("Unknown optional content policy ".concat(t.policy,".")),!0}return(0,l.warn)("Unknown group type ".concat(t.type,".")),!0}},{key:"setVisibility",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!this._groups.has(t))return void(0,l.warn)("Optional content group not found: ".concat(t));this._groups.get(t).visible=!!e}},{key:"getOrder",value:function(){return this._groups.size?this._order?this._order.slice():Array.from(this._groups.keys()):null}},{key:"getGroups",value:function(){return this._groups.size?Object.fromEntries(this._groups):null}},{key:"getGroup",value:function(t){return this._groups.get(t)||null}}]),t}();e.OptionalContentConfig=f},function(t,e,n){"use strict";function r(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}function i(t){return function(){var e=this,n=arguments;return new Promise(function(i,o){function a(t){r(u,i,o,a,s,"next",t)}function s(t){r(u,i,o,a,s,"throw",t)}var u=t.apply(e,n);a(void 0)})}}function o(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=a(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},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,s=!0,u=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw o}}}}function a(t,e){if(t){if("string"==typeof t)return s(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(t,e):void 0}}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e,n){return e&&l(t.prototype,e),n&&l(t,n),t}Object.defineProperty(e,"__esModule",{value:!0}),e.PDFDataTransportStream=void 0;var f=function(t){return t&&t.__esModule?t:{default:t}}(n(2)),d=n(5),h=function(){function t(e,n){var r=this;u(this,t),(0,d.assert)(n,'PDFDataTransportStream - missing required "pdfDataRangeTransport" argument.'),this._queuedChunks=[],this._progressiveDone=e.progressiveDone||!1;var i=e.initialData;if(i&&i.length>0){var o=new Uint8Array(i).buffer;this._queuedChunks.push(o)}this._pdfDataRangeTransport=n,this._isStreamingSupported=!e.disableStream,this._isRangeSupported=!e.disableRange,this._contentLength=e.length,this._fullRequestReader=null,this._rangeReaders=[],this._pdfDataRangeTransport.addRangeListener(function(t,e){r._onReceiveData({begin:t,chunk:e})}),this._pdfDataRangeTransport.addProgressListener(function(t,e){r._onProgress({loaded:t,total:e})}),this._pdfDataRangeTransport.addProgressiveReadListener(function(t){r._onReceiveData({chunk:t})}),this._pdfDataRangeTransport.addProgressiveDoneListener(function(){r._onProgressiveDone()}),this._pdfDataRangeTransport.transportReady()}return c(t,[{key:"_onReceiveData",value:function(t){var e=new Uint8Array(t.chunk).buffer;if(void 0===t.begin)this._fullRequestReader?this._fullRequestReader._enqueue(e):this._queuedChunks.push(e);else{var n=this._rangeReaders.some(function(n){return n._begin===t.begin&&(n._enqueue(e),!0)});(0,d.assert)(n,"_onReceiveData - no `PDFDataTransportStreamRangeReader` instance found.")}}},{key:"_onProgress",value:function(t){if(void 0===t.total){var e=this._rangeReaders[0];e&&e.onProgress&&e.onProgress({loaded:t.loaded})}else{var n=this._fullRequestReader;n&&n.onProgress&&n.onProgress({loaded:t.loaded,total:t.total})}}},{key:"_onProgressiveDone",value:function(){this._fullRequestReader&&this._fullRequestReader.progressiveDone(),this._progressiveDone=!0}},{key:"_removeRangeReader",value:function(t){var e=this._rangeReaders.indexOf(t);e>=0&&this._rangeReaders.splice(e,1)}},{key:"getFullReader",value:function(){(0,d.assert)(!this._fullRequestReader,"PDFDataTransportStream.getFullReader can only be called once.");var t=this._queuedChunks;return this._queuedChunks=null,new p(this,t,this._progressiveDone)}},{key:"getRangeReader",value:function(t,e){if(e<=this._progressiveDataLength)return null;var n=new g(this,t,e);return this._pdfDataRangeTransport.requestDataRange(t,e),this._rangeReaders.push(n),n}},{key:"cancelAllRequests",value:function(t){this._fullRequestReader&&this._fullRequestReader.cancel(t),this._rangeReaders.slice(0).forEach(function(e){e.cancel(t)}),this._pdfDataRangeTransport.abort()}},{key:"_progressiveDataLength",get:function(){return this._fullRequestReader?this._fullRequestReader._loaded:0}}]),t}();e.PDFDataTransportStream=h;var p=function(){function t(e,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];u(this,t),this._stream=e,this._done=r||!1,this._filename=null,this._queuedChunks=n||[],this._loaded=0;var i,a=o(this._queuedChunks);try{for(a.s();!(i=a.n()).done;){var s=i.value;this._loaded+=s.byteLength}}catch(t){a.e(t)}finally{a.f()}this._requests=[],this._headersReady=Promise.resolve(),e._fullRequestReader=this,this.onProgress=null}return c(t,[{key:"_enqueue",value:function(t){if(!this._done){if(this._requests.length>0){this._requests.shift().resolve({value:t,done:!1})}else this._queuedChunks.push(t);this._loaded+=t.byteLength}}},{key:"read",value:function(){function t(){return e.apply(this,arguments)}var e=i(f.default.mark(function t(){var e,n;return f.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!(this._queuedChunks.length>0)){t.next=3;break}return e=this._queuedChunks.shift(),t.abrupt("return",{value:e,done:!1});case 3:if(!this._done){t.next=5;break}return t.abrupt("return",{value:void 0,done:!0});case 5:return n=(0,d.createPromiseCapability)(),this._requests.push(n),t.abrupt("return",n.promise);case 8:case"end":return t.stop()}},t,this)}));return t}()},{key:"cancel",value:function(t){this._done=!0,this._requests.forEach(function(t){t.resolve({value:void 0,done:!0})}),this._requests=[]}},{key:"progressiveDone",value:function(){this._done||(this._done=!0)}},{key:"headersReady",get:function(){return this._headersReady}},{key:"filename",get:function(){return this._filename}},{key:"isRangeSupported",get:function(){return this._stream._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._stream._isStreamingSupported}},{key:"contentLength",get:function(){return this._stream._contentLength}}]),t}(),g=function(){function t(e,n,r){u(this,t),this._stream=e,this._begin=n,this._end=r,this._queuedChunk=null,this._requests=[],this._done=!1,this.onProgress=null}return c(t,[{key:"_enqueue",value:function(t){if(!this._done){if(0===this._requests.length)this._queuedChunk=t;else{this._requests.shift().resolve({value:t,done:!1}),this._requests.forEach(function(t){t.resolve({value:void 0,done:!0})}),this._requests=[]}this._done=!0,this._stream._removeRangeReader(this)}}},{key:"read",value:function(){function t(){return e.apply(this,arguments)}var e=i(f.default.mark(function t(){var e,n;return f.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!this._queuedChunk){t.next=4;break}return e=this._queuedChunk,this._queuedChunk=null,t.abrupt("return",{value:e,done:!1});case 4:if(!this._done){t.next=6;break}return t.abrupt("return",{value:void 0,done:!0});case 6:return n=(0,d.createPromiseCapability)(),this._requests.push(n),t.abrupt("return",n.promise);case 9:case"end":return t.stop()}},t,this)}));return t}()},{key:"cancel",value:function(t){this._done=!0,this._requests.forEach(function(t){t.resolve({value:void 0,done:!0})}),this._requests=[],this._stream._removeRangeReader(this)}},{key:"isStreamingSupported",get:function(){return!1}}]),t}()},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),t}Object.defineProperty(e,"__esModule",{value:!0}),e.WebGLContext=void 0;var a=n(5),s=function(){function t(e){var n=e.enable,i=void 0!==n&&n;r(this,t),this._enabled=!0===i}return o(t,[{key:"composeSMask",value:function(t){var e=t.layer,n=t.mask,r=t.properties;return u.composeSMask(e,n,r)}},{key:"drawFigures",value:function(t){var e=t.width,n=t.height,r=t.backgroundColor,i=t.figures,o=t.context;return u.drawFigures(e,n,r,i,o)}},{key:"clear",value:function(){u.cleanup()}},{key:"isEnabled",get:function(){var t=this._enabled;return t&&(t=u.tryInitGL()),(0,a.shadow)(this,"isEnabled",t)}}]),t}();e.WebGLContext=s;var u=function(){function t(t,e,n){var r=t.createShader(n);if(t.shaderSource(r,e),t.compileShader(r),!t.getShaderParameter(r,t.COMPILE_STATUS)){var i=t.getShaderInfoLog(r);throw new Error("Error during shader compilation: "+i)}return r}function e(e,n){return t(e,n,e.VERTEX_SHADER)}function n(e,n){return t(e,n,e.FRAGMENT_SHADER)}function r(t,e){for(var n=t.createProgram(),r=0,i=e.length;r<i;++r)t.attachShader(n,e[r]);if(t.linkProgram(n),!t.getProgramParameter(n,t.LINK_STATUS)){var o=t.getProgramInfoLog(n);throw new Error("Error during program linking: "+o)}return n}function i(t,e,n){t.activeTexture(n);var r=t.createTexture();return t.bindTexture(t.TEXTURE_2D,r),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.NEAREST),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.NEAREST),t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,e),r}function o(){c||(f=document.createElement("canvas"),c=f.getContext("webgl",{premultipliedalpha:!1}))}function a(){var t,i;o(),t=f,f=null,i=c,c=null;var a=e(i,d),s=n(i,h),u=r(i,[a,s]);i.useProgram(u);var l={};l.gl=i,l.canvas=t,l.resolutionLocation=i.getUniformLocation(u,"u_resolution"),l.positionLocation=i.getAttribLocation(u,"a_position"),l.backdropLocation=i.getUniformLocation(u,"u_backdrop"),l.subtypeLocation=i.getUniformLocation(u,"u_subtype");var g=i.getAttribLocation(u,"a_texCoord"),m=i.getUniformLocation(u,"u_image"),v=i.getUniformLocation(u,"u_mask"),y=i.createBuffer();i.bindBuffer(i.ARRAY_BUFFER,y),i.bufferData(i.ARRAY_BUFFER,new Float32Array([0,0,1,0,0,1,0,1,1,0,1,1]),i.STATIC_DRAW),i.enableVertexAttribArray(g),i.vertexAttribPointer(g,2,i.FLOAT,!1,0,0),i.uniform1i(m,0),i.uniform1i(v,1),p=l}function s(t,e,n){var r=t.width,o=t.height;p||a();var s=p,u=s.canvas,l=s.gl;u.width=r,u.height=o,l.viewport(0,0,l.drawingBufferWidth,l.drawingBufferHeight),l.uniform2f(s.resolutionLocation,r,o),n.backdrop?l.uniform4f(s.resolutionLocation,n.backdrop[0],n.backdrop[1],n.backdrop[2],1):l.uniform4f(s.resolutionLocation,0,0,0,0),l.uniform1i(s.subtypeLocation,"Luminosity"===n.subtype?1:0);var c=i(l,t,l.TEXTURE0),f=i(l,e,l.TEXTURE1),d=l.createBuffer();return l.bindBuffer(l.ARRAY_BUFFER,d),l.bufferData(l.ARRAY_BUFFER,new Float32Array([0,0,r,0,0,o,0,o,r,0,r,o]),l.STATIC_DRAW),l.enableVertexAttribArray(s.positionLocation),l.vertexAttribPointer(s.positionLocation,2,l.FLOAT,!1,0,0),l.clearColor(0,0,0,0),l.enable(l.BLEND),l.blendFunc(l.ONE,l.ONE_MINUS_SRC_ALPHA),l.clear(l.COLOR_BUFFER_BIT),l.drawArrays(l.TRIANGLES,0,6),l.flush(),l.deleteTexture(c),l.deleteTexture(f),l.deleteBuffer(d),u}function u(){var t,i;o(),t=f,f=null,i=c,c=null;var a=e(i,g),s=n(i,m),u=r(i,[a,s]);i.useProgram(u);var l={};l.gl=i,l.canvas=t,l.resolutionLocation=i.getUniformLocation(u,"u_resolution"),l.scaleLocation=i.getUniformLocation(u,"u_scale"),l.offsetLocation=i.getUniformLocation(u,"u_offset"),l.positionLocation=i.getAttribLocation(u,"a_position"),l.colorLocation=i.getAttribLocation(u,"a_color"),v=l}function l(t,e,n,r,i){v||u();var o=v,a=o.canvas,s=o.gl;a.width=t,a.height=e,s.viewport(0,0,s.drawingBufferWidth,s.drawingBufferHeight),s.uniform2f(o.resolutionLocation,t,e);var l,c,f,d=0;for(l=0,c=r.length;l<c;l++)switch(r[l].type){case"lattice":f=r[l].coords.length/r[l].verticesPerRow|0,d+=(f-1)*(r[l].verticesPerRow-1)*6;break;case"triangles":d+=r[l].coords.length}var h=new Float32Array(2*d),p=new Uint8Array(3*d),g=i.coords,m=i.colors,y=0,b=0;for(l=0,c=r.length;l<c;l++){var _=r[l],w=_.coords,x=_.colors;switch(_.type){case"lattice":var k=_.verticesPerRow;f=w.length/k|0;for(var S=1;S<f;S++)for(var C=S*k+1,E=1;E<k;E++,C++)h[y]=g[w[C-k-1]],h[y+1]=g[w[C-k-1]+1],h[y+2]=g[w[C-k]],h[y+3]=g[w[C-k]+1],h[y+4]=g[w[C-1]],h[y+5]=g[w[C-1]+1],p[b]=m[x[C-k-1]],p[b+1]=m[x[C-k-1]+1],p[b+2]=m[x[C-k-1]+2],p[b+3]=m[x[C-k]],p[b+4]=m[x[C-k]+1],p[b+5]=m[x[C-k]+2],p[b+6]=m[x[C-1]],p[b+7]=m[x[C-1]+1],p[b+8]=m[x[C-1]+2],h[y+6]=h[y+2],h[y+7]=h[y+3],h[y+8]=h[y+4],h[y+9]=h[y+5],h[y+10]=g[w[C]],h[y+11]=g[w[C]+1],p[b+9]=p[b+3],p[b+10]=p[b+4],p[b+11]=p[b+5],p[b+12]=p[b+6],p[b+13]=p[b+7],p[b+14]=p[b+8],p[b+15]=m[x[C]],p[b+16]=m[x[C]+1],p[b+17]=m[x[C]+2],y+=12,b+=18;break;case"triangles":for(var T=0,A=w.length;T<A;T++)h[y]=g[w[T]],h[y+1]=g[w[T]+1],p[b]=m[x[T]],p[b+1]=m[x[T]+1],p[b+2]=m[x[T]+2],y+=2,b+=3}}n?s.clearColor(n[0]/255,n[1]/255,n[2]/255,1):s.clearColor(0,0,0,0),s.clear(s.COLOR_BUFFER_BIT);var O=s.createBuffer();s.bindBuffer(s.ARRAY_BUFFER,O),s.bufferData(s.ARRAY_BUFFER,h,s.STATIC_DRAW),s.enableVertexAttribArray(o.positionLocation),s.vertexAttribPointer(o.positionLocation,2,s.FLOAT,!1,0,0);var P=s.createBuffer();return s.bindBuffer(s.ARRAY_BUFFER,P),s.bufferData(s.ARRAY_BUFFER,p,s.STATIC_DRAW),s.enableVertexAttribArray(o.colorLocation),s.vertexAttribPointer(o.colorLocation,3,s.UNSIGNED_BYTE,!1,0,0),s.uniform2f(o.scaleLocation,i.scaleX,i.scaleY),s.uniform2f(o.offsetLocation,i.offsetX,i.offsetY),s.drawArrays(s.TRIANGLES,0,d),s.flush(),s.deleteBuffer(O),s.deleteBuffer(P),a}var c,f,d=" attribute vec2 a_position; attribute vec2 a_texCoord; uniform vec2 u_resolution; varying vec2 v_texCoord; void main() { vec2 clipSpace = (a_position / u_resolution) * 2.0 - 1.0; gl_Position = vec4(clipSpace * vec2(1, -1), 0, 1); v_texCoord = a_texCoord; } ",h=" precision mediump float; uniform vec4 u_backdrop; uniform int u_subtype; uniform sampler2D u_image; uniform sampler2D u_mask; varying vec2 v_texCoord; void main() { vec4 imageColor = texture2D(u_image, v_texCoord); vec4 maskColor = texture2D(u_mask, v_texCoord); if (u_backdrop.a > 0.0) { maskColor.rgb = maskColor.rgb * maskColor.a + u_backdrop.rgb * (1.0 - maskColor.a); } float lum; if (u_subtype == 0) { lum = maskColor.a; } else { lum = maskColor.r * 0.3 + maskColor.g * 0.59 + maskColor.b * 0.11; } imageColor.a *= lum; imageColor.rgb *= imageColor.a; gl_FragColor = imageColor; } ",p=null,g=" attribute vec2 a_position; attribute vec3 a_color; uniform vec2 u_resolution; uniform vec2 u_scale; uniform vec2 u_offset; varying vec4 v_color; void main() { vec2 position = (a_position + u_offset) * u_scale; vec2 clipSpace = (position / u_resolution) * 2.0 - 1.0; gl_Position = vec4(clipSpace * vec2(1, -1), 0, 1); v_color = vec4(a_color / 255.0, 1.0); } ",m=" precision mediump float; varying vec4 v_color; void main() { gl_FragColor = v_color; } ",v=null;return{tryInitGL:function(){try{return o(),!!c}catch(t){}return!1},composeSMask:s,drawFigures:l,cleanup:function(){p&&p.canvas&&(p.canvas.width=0,p.canvas.height=0),v&&v.canvas&&(v.canvas.width=0,v.canvas.height=0),p=null,v=null}}}()},function(t,e,n){"use strict";function r(t,e,n){return(r="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=i(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function i(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=g(t)););return t}function o(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=a(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},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,s=!0,u=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw o}}}}function a(t,e){if(t){if("string"==typeof t)return s(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(t,e):void 0}}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function u(t){"@babel/helpers - typeof";return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function f(t){var e=p();return function(){var n,r=g(t);if(e){var i=g(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return d(this,n)}}function d(t,e){return!e||"object"!==u(e)&&"function"!=typeof e?h(t):e}function h(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function p(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}function g(t){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function m(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function v(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function y(t,e,n){return e&&v(t.prototype,e),n&&v(t,n),t}Object.defineProperty(e,"__esModule",{value:!0}),e.AnnotationLayer=void 0;var b=n(1),_=n(5),w=n(205),x=function(){function t(){m(this,t)}return y(t,null,[{key:"create",value:function(t){switch(t.data.annotationType){case _.AnnotationType.LINK:return new S(t);case _.AnnotationType.TEXT:return new C(t);case _.AnnotationType.WIDGET:switch(t.data.fieldType){case"Tx":return new T(t);case"Btn":return t.data.radioButton?new O(t):t.data.checkBox?new A(t):new P(t);case"Ch":return new N(t)}return new E(t);case _.AnnotationType.POPUP:return new D(t);case _.AnnotationType.FREETEXT:return new I(t);case _.AnnotationType.LINE:return new R(t);case _.AnnotationType.SQUARE:return new $(t);case _.AnnotationType.CIRCLE:return new L(t);case _.AnnotationType.POLYLINE:return new j(t);case _.AnnotationType.CARET:return new B(t);case _.AnnotationType.INK:return new V(t);case _.AnnotationType.POLYGON:return new F(t);case _.AnnotationType.HIGHLIGHT:return new z(t);case _.AnnotationType.UNDERLINE:return new U(t);case _.AnnotationType.SQUIGGLY:return new H(t);case _.AnnotationType.STRIKEOUT:return new q(t);case _.AnnotationType.STAMP:return new W(t);case _.AnnotationType.FILEATTACHMENT:return new G(t);default:return new k(t)}}}]),t}(),k=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];m(this,t),this.isRenderable=n,this.data=e.data,this.layer=e.layer,this.page=e.page,this.viewport=e.viewport,this.linkService=e.linkService,this.downloadManager=e.downloadManager,this.imageResourcesPath=e.imageResourcesPath,this.renderInteractiveForms=e.renderInteractiveForms,this.svgFactory=e.svgFactory,this.annotationStorage=e.annotationStorage,n&&(this.container=this._createContainer(r))}return y(t,[{key:"_createContainer",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.data,n=this.page,r=this.viewport,i=document.createElement("section"),o=e.rect[2]-e.rect[0],a=e.rect[3]-e.rect[1];i.setAttribute("data-annotation-id",e.id);var s=_.Util.normalizeRect([e.rect[0],n.view[3]-e.rect[1]+n.view[1],e.rect[2],n.view[3]-e.rect[3]+n.view[1]]);if(i.style.transform="matrix(".concat(r.transform.join(","),")"),i.style.transformOrigin="-".concat(s[0],"px -").concat(s[1],"px"),!t&&e.borderStyle.width>0){i.style.borderWidth="".concat(e.borderStyle.width,"px"),e.borderStyle.style!==_.AnnotationBorderStyleType.UNDERLINE&&(o-=2*e.borderStyle.width,a-=2*e.borderStyle.width);var u=e.borderStyle.horizontalCornerRadius,l=e.borderStyle.verticalCornerRadius;if(u>0||l>0){var c="".concat(u,"px / ").concat(l,"px");i.style.borderRadius=c}switch(e.borderStyle.style){case _.AnnotationBorderStyleType.SOLID:i.style.borderStyle="solid";break;case _.AnnotationBorderStyleType.DASHED:i.style.borderStyle="dashed";break;case _.AnnotationBorderStyleType.BEVELED:(0,_.warn)("Unimplemented border style: beveled");break;case _.AnnotationBorderStyleType.INSET:(0,_.warn)("Unimplemented border style: inset");break;case _.AnnotationBorderStyleType.UNDERLINE:i.style.borderBottomStyle="solid"}e.color?i.style.borderColor=_.Util.makeCssRgb(0|e.color[0],0|e.color[1],0|e.color[2]):i.style.borderWidth=0}return i.style.left="".concat(s[0],"px"),i.style.top="".concat(s[1],"px"),i.style.width="".concat(o,"px"),i.style.height="".concat(a,"px"),i}},{key:"_createPopup",value:function(t,e,n){e||(e=document.createElement("div"),e.style.height=t.style.height,e.style.width=t.style.width,t.appendChild(e));var r=new M({container:t,trigger:e,color:n.color,title:n.title,modificationDate:n.modificationDate,contents:n.contents,hideWrapper:!0}),i=r.render();i.style.left=t.style.width,t.appendChild(i)}},{key:"render",value:function(){(0,_.unreachable)("Abstract method `AnnotationElement.render` called")}}]),t}(),S=function(t){function e(t){m(this,e);var r=!!(t.data.url||t.data.dest||t.data.action);return n.call(this,t,r)}l(e,t);var n=f(e);return y(e,[{key:"render",value:function(){this.container.className="linkAnnotation";var t=this.data,e=this.linkService,n=document.createElement("a");return t.url?(0,b.addLinkAttributes)(n,{url:t.url,target:t.newWindow?b.LinkTarget.BLANK:e.externalLinkTarget,rel:e.externalLinkRel,enabled:e.externalLinkEnabled}):t.action?this._bindNamedAction(n,t.action):this._bindLink(n,t.dest),this.container.appendChild(n),this.container}},{key:"_bindLink",value:function(t,e){var n=this;t.href=this.linkService.getDestinationHash(e),t.onclick=function(){return e&&n.linkService.navigateTo(e),!1},e&&(t.className="internalLink")}},{key:"_bindNamedAction",value:function(t,e){var n=this;t.href=this.linkService.getAnchorUrl(""),t.onclick=function(){return n.linkService.executeNamedAction(e),!1},t.className="internalLink"}}]),e}(k),C=function(t){function e(t){m(this,e);var r=!!(t.data.hasPopup||t.data.title||t.data.contents);return n.call(this,t,r)}l(e,t);var n=f(e);return y(e,[{key:"render",value:function(){this.container.className="textAnnotation";var t=document.createElement("img");return t.style.height=this.container.style.height,t.style.width=this.container.style.width,t.src=this.imageResourcesPath+"annotation-"+this.data.name.toLowerCase()+".svg",t.alt="[{{type}} Annotation]",t.dataset.l10nId="text_annotation_type",t.dataset.l10nArgs=JSON.stringify({type:this.data.name}),this.data.hasPopup||this._createPopup(this.container,t,this.data),this.container.appendChild(t),this.container}}]),e}(k),E=function(t){function e(){return m(this,e),n.apply(this,arguments)}l(e,t);var n=f(e);return y(e,[{key:"render",value:function(){return this.container}}]),e}(k),T=function(t){function e(t){m(this,e);var r=t.renderInteractiveForms||!t.data.hasAppearance&&!!t.data.fieldValue;return n.call(this,t,r)}l(e,t);var n=f(e);return y(e,[{key:"render",value:function(){var t=["left","center","right"],e=this.annotationStorage,n=this.data.id;this.container.className="textWidgetAnnotation";var r=null;if(this.renderInteractiveForms){var i=e.getOrCreateValue(n,this.data.fieldValue);if(this.data.multiLine?(r=document.createElement("textarea"),r.textContent=i):(r=document.createElement("input"),r.type="text",r.setAttribute("value",i)),r.addEventListener("input",function(t){e.setValue(n,t.target.value)}),r.disabled=this.data.readOnly,r.name=this.data.fieldName,null!==this.data.maxLen&&(r.maxLength=this.data.maxLen),this.data.comb){var o=this.data.rect[2]-this.data.rect[0],a=o/this.data.maxLen;r.classList.add("comb"),r.style.letterSpacing="calc(".concat(a,"px - 1ch)")}}else{r=document.createElement("div"),r.textContent=this.data.fieldValue,r.style.verticalAlign="middle",r.style.display="table-cell";var s=null;this.data.fontRefName&&this.page.commonObjs.has(this.data.fontRefName)&&(s=this.page.commonObjs.get(this.data.fontRefName)),this._setTextStyle(r,s)}return null!==this.data.textAlignment&&(r.style.textAlign=t[this.data.textAlignment]),this.container.appendChild(r),this.container}},{key:"_setTextStyle",value:function(t,e){var n=t.style;if(n.fontSize="".concat(this.data.fontSize,"px"),n.direction=this.data.fontDirection<0?"rtl":"ltr",e){var r="normal";e.black?r="900":e.bold&&(r="bold"),n.fontWeight=r,n.fontStyle=e.italic?"italic":"normal";var i=e.loadedName?'"'.concat(e.loadedName,'", '):"",o=e.fallbackName||"Helvetica, sans-serif";n.fontFamily=i+o}}}]),e}(E),A=function(t){function e(t){return m(this,e),n.call(this,t,t.renderInteractiveForms)}l(e,t);var n=f(e);return y(e,[{key:"render",value:function(){var t=this.annotationStorage,e=this.data,n=e.id,r=t.getOrCreateValue(n,e.fieldValue&&"Off"!==e.fieldValue);this.container.className="buttonWidgetAnnotation checkBox";var i=document.createElement("input");return i.disabled=e.readOnly,i.type="checkbox",i.name=this.data.fieldName,r&&i.setAttribute("checked",!0),i.addEventListener("change",function(e){t.setValue(n,e.target.checked)}),this.container.appendChild(i),this.container}}]),e}(E),O=function(t){function e(t){return m(this,e),n.call(this,t,t.renderInteractiveForms)}l(e,t);var n=f(e);return y(e,[{key:"render",value:function(){this.container.className="buttonWidgetAnnotation radioButton";var t=this.annotationStorage,e=this.data,n=e.id,r=t.getOrCreateValue(n,e.fieldValue===e.buttonValue),i=document.createElement("input");return i.disabled=e.readOnly,i.type="radio",i.name=e.fieldName,r&&i.setAttribute("checked",!0),i.addEventListener("change",function(e){var r,i=e.target.name,a=o(document.getElementsByName(i));try{for(a.s();!(r=a.n()).done;){var s=r.value;s!==e.target&&t.setValue(s.parentNode.getAttribute("data-annotation-id"),!1)}}catch(t){a.e(t)}finally{a.f()}t.setValue(n,e.target.checked)}),this.container.appendChild(i),this.container}}]),e}(E),P=function(t){function e(){return m(this,e),n.apply(this,arguments)}l(e,t);var n=f(e);return y(e,[{key:"render",value:function(){var t=r(g(e.prototype),"render",this).call(this);return t.className="buttonWidgetAnnotation pushButton",t}}]),e}(S),N=function(t){function e(t){return m(this,e),n.call(this,t,t.renderInteractiveForms)}l(e,t);var n=f(e);return y(e,[{key:"render",value:function(){this.container.className="choiceWidgetAnnotation";var t=this.annotationStorage,e=this.data.id;t.getOrCreateValue(e,this.data.fieldValue.length>0?this.data.fieldValue[0]:null);var n=document.createElement("select");n.disabled=this.data.readOnly,n.name=this.data.fieldName,this.data.combo||(n.size=this.data.options.length,this.data.multiSelect&&(n.multiple=!0));var r,i=o(this.data.options);try{for(i.s();!(r=i.n()).done;){var a=r.value,s=document.createElement("option");s.textContent=a.displayValue,s.value=a.exportValue,this.data.fieldValue.includes(a.exportValue)&&s.setAttribute("selected",!0),n.appendChild(s)}}catch(t){i.e(t)}finally{i.f()}return n.addEventListener("input",function(n){var r=n.target.options,i=r[r.selectedIndex].value;t.setValue(e,i)}),this.container.appendChild(n),this.container}}]),e}(E),D=function(t){function e(t){m(this,e);var r=!(!t.data.title&&!t.data.contents);return n.call(this,t,r)}l(e,t);var n=f(e);return y(e,[{key:"render",value:function(){var t=["Line","Square","Circle","PolyLine","Polygon","Ink"];if(this.container.className="popupAnnotation",t.includes(this.data.parentType))return this.container;var e='[data-annotation-id="'.concat(this.data.parentId,'"]'),n=this.layer.querySelector(e);if(!n)return this.container;var r=new M({container:this.container,trigger:n,color:this.data.color,title:this.data.title,modificationDate:this.data.modificationDate,contents:this.data.contents}),i=parseFloat(n.style.left),o=parseFloat(n.style.width);return this.container.style.transformOrigin="-".concat(i+o,"px -").concat(n.style.top),this.container.style.left="".concat(i+o,"px"),this.container.appendChild(r.render()),this.container}}]),e}(k),M=function(){function t(e){m(this,t),this.container=e.container,this.trigger=e.trigger,this.color=e.color,this.title=e.title,this.modificationDate=e.modificationDate,this.contents=e.contents,this.hideWrapper=e.hideWrapper||!1,this.pinned=!1}return y(t,[{key:"render",value:function(){var t=document.createElement("div");t.className="popupWrapper",this.hideElement=this.hideWrapper?t:this.container,this.hideElement.setAttribute("hidden",!0);var e=document.createElement("div");e.className="popup";var n=this.color;if(n){var r=.7*(255-n[0])+n[0],i=.7*(255-n[1])+n[1],o=.7*(255-n[2])+n[2];e.style.backgroundColor=_.Util.makeCssRgb(0|r,0|i,0|o)}var a=document.createElement("h1");a.textContent=this.title,e.appendChild(a);var s=b.PDFDateString.toDateObject(this.modificationDate);if(s){var u=document.createElement("span");u.textContent="{{date}}, {{time}}",u.dataset.l10nId="annotation_date_string",u.dataset.l10nArgs=JSON.stringify({date:s.toLocaleDateString(),time:s.toLocaleTimeString()}),e.appendChild(u)}var l=this._formatContents(this.contents);return e.appendChild(l),this.trigger.addEventListener("click",this._toggle.bind(this)),this.trigger.addEventListener("mouseover",this._show.bind(this,!1)),this.trigger.addEventListener("mouseout",this._hide.bind(this,!1)),e.addEventListener("click",this._hide.bind(this,!0)),t.appendChild(e),t}},{key:"_formatContents",value:function(t){for(var e=document.createElement("p"),n=t.split(/(?:\r\n?|\n)/),r=0,i=n.length;r<i;++r){var o=n[r];e.appendChild(document.createTextNode(o)),r<i-1&&e.appendChild(document.createElement("br"))}return e}},{key:"_toggle",value:function(){this.pinned?this._hide(!0):this._show(!0)}},{key:"_show",value:function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&(this.pinned=!0),this.hideElement.hasAttribute("hidden")&&(this.hideElement.removeAttribute("hidden"),this.container.style.zIndex+=1)}},{key:"_hide",value:function(){(!(arguments.length>0&&void 0!==arguments[0])||arguments[0])&&(this.pinned=!1),this.hideElement.hasAttribute("hidden")||this.pinned||(this.hideElement.setAttribute("hidden",!0),this.container.style.zIndex-=1)}}]),t}(),I=function(t){function e(t){m(this,e);var r=!!(t.data.hasPopup||t.data.title||t.data.contents);return n.call(this,t,r,!0)}l(e,t);var n=f(e);return y(e,[{key:"render",value:function(){return this.container.className="freeTextAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),e}(k),R=function(t){function e(t){m(this,e);var r=!!(t.data.hasPopup||t.data.title||t.data.contents);return n.call(this,t,r,!0)}l(e,t);var n=f(e);return y(e,[{key:"render",value:function(){this.container.className="lineAnnotation";var t=this.data,e=t.rect[2]-t.rect[0],n=t.rect[3]-t.rect[1],r=this.svgFactory.create(e,n),i=this.svgFactory.createElement("svg:line");return i.setAttribute("x1",t.rect[2]-t.lineCoordinates[0]),i.setAttribute("y1",t.rect[3]-t.lineCoordinates[1]),i.setAttribute("x2",t.rect[2]-t.lineCoordinates[2]),i.setAttribute("y2",t.rect[3]-t.lineCoordinates[3]),i.setAttribute("stroke-width",t.borderStyle.width||1),i.setAttribute("stroke","transparent"),r.appendChild(i),this.container.append(r),this._createPopup(this.container,i,t),this.container}}]),e}(k),$=function(t){function e(t){m(this,e);var r=!!(t.data.hasPopup||t.data.title||t.data.contents);return n.call(this,t,r,!0)}l(e,t);var n=f(e);return y(e,[{key:"render",value:function(){this.container.className="squareAnnotation";var t=this.data,e=t.rect[2]-t.rect[0],n=t.rect[3]-t.rect[1],r=this.svgFactory.create(e,n),i=t.borderStyle.width,o=this.svgFactory.createElement("svg:rect");return o.setAttribute("x",i/2),o.setAttribute("y",i/2),o.setAttribute("width",e-i),o.setAttribute("height",n-i),o.setAttribute("stroke-width",i||1),o.setAttribute("stroke","transparent"),o.setAttribute("fill","none"),r.appendChild(o),this.container.append(r),this._createPopup(this.container,o,t),this.container}}]),e}(k),L=function(t){function e(t){m(this,e);var r=!!(t.data.hasPopup||t.data.title||t.data.contents);return n.call(this,t,r,!0)}l(e,t);var n=f(e);return y(e,[{key:"render",value:function(){this.container.className="circleAnnotation";var t=this.data,e=t.rect[2]-t.rect[0],n=t.rect[3]-t.rect[1],r=this.svgFactory.create(e,n),i=t.borderStyle.width,o=this.svgFactory.createElement("svg:ellipse");return o.setAttribute("cx",e/2),o.setAttribute("cy",n/2),o.setAttribute("rx",e/2-i/2),o.setAttribute("ry",n/2-i/2),o.setAttribute("stroke-width",i||1),o.setAttribute("stroke","transparent"),o.setAttribute("fill","none"),r.appendChild(o),this.container.append(r),this._createPopup(this.container,o,t),this.container}}]),e}(k),j=function(t){function e(t){var r;m(this,e);var i=!!(t.data.hasPopup||t.data.title||t.data.contents);return r=n.call(this,t,i,!0),r.containerClassName="polylineAnnotation",r.svgElementName="svg:polyline",r}l(e,t);var n=f(e);return y(e,[{key:"render",value:function(){this.container.className=this.containerClassName;var t,e=this.data,n=e.rect[2]-e.rect[0],r=e.rect[3]-e.rect[1],i=this.svgFactory.create(n,r),a=[],s=o(e.vertices);try{for(s.s();!(t=s.n()).done;){var u=t.value,l=u.x-e.rect[0],c=e.rect[3]-u.y;a.push(l+","+c)}}catch(t){s.e(t)}finally{s.f()}a=a.join(" ");var f=this.svgFactory.createElement(this.svgElementName);return f.setAttribute("points",a),f.setAttribute("stroke-width",e.borderStyle.width||1),f.setAttribute("stroke","transparent"),f.setAttribute("fill","none"),i.appendChild(f),this.container.append(i),this._createPopup(this.container,f,e),this.container}}]),e}(k),F=function(t){function e(t){var r;return m(this,e),r=n.call(this,t),r.containerClassName="polygonAnnotation",r.svgElementName="svg:polygon",r}l(e,t);var n=f(e);return e}(j),B=function(t){function e(t){m(this,e);var r=!!(t.data.hasPopup||t.data.title||t.data.contents);return n.call(this,t,r,!0)}l(e,t);var n=f(e);return y(e,[{key:"render",value:function(){return this.container.className="caretAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),e}(k),V=function(t){function e(t){var r;m(this,e);var i=!!(t.data.hasPopup||t.data.title||t.data.contents);return r=n.call(this,t,i,!0),r.containerClassName="inkAnnotation",r.svgElementName="svg:polyline",r}l(e,t);var n=f(e);return y(e,[{key:"render",value:function(){this.container.className=this.containerClassName;var t,e=this.data,n=e.rect[2]-e.rect[0],r=e.rect[3]-e.rect[1],i=this.svgFactory.create(n,r),a=o(e.inkLists);try{for(a.s();!(t=a.n()).done;){var s,u=t.value,l=[],c=o(u);try{for(c.s();!(s=c.n()).done;){var f=s.value,d=f.x-e.rect[0],h=e.rect[3]-f.y;l.push("".concat(d,",").concat(h))}}catch(t){c.e(t)}finally{c.f()}l=l.join(" ");var p=this.svgFactory.createElement(this.svgElementName);p.setAttribute("points",l),p.setAttribute("stroke-width",e.borderStyle.width||1),p.setAttribute("stroke","transparent"),p.setAttribute("fill","none"),this._createPopup(this.container,p,e),i.appendChild(p)}}catch(t){a.e(t)}finally{a.f()}return this.container.append(i),this.container}}]),e}(k),z=function(t){function e(t){m(this,e);var r=!!(t.data.hasPopup||t.data.title||t.data.contents);return n.call(this,t,r,!0)}l(e,t);var n=f(e);return y(e,[{key:"render",value:function(){return this.container.className="highlightAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),e}(k),U=function(t){function e(t){m(this,e);var r=!!(t.data.hasPopup||t.data.title||t.data.contents);return n.call(this,t,r,!0)}l(e,t);var n=f(e);return y(e,[{key:"render",value:function(){return this.container.className="underlineAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),e}(k),H=function(t){function e(t){m(this,e);var r=!!(t.data.hasPopup||t.data.title||t.data.contents);return n.call(this,t,r,!0)}l(e,t);var n=f(e);return y(e,[{key:"render",value:function(){return this.container.className="squigglyAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),e}(k),q=function(t){function e(t){m(this,e);var r=!!(t.data.hasPopup||t.data.title||t.data.contents);return n.call(this,t,r,!0)}l(e,t);var n=f(e);return y(e,[{key:"render",value:function(){return this.container.className="strikeoutAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),e}(k),W=function(t){function e(t){m(this,e);var r=!!(t.data.hasPopup||t.data.title||t.data.contents);return n.call(this,t,r,!0)}l(e,t);var n=f(e);return y(e,[{key:"render",value:function(){return this.container.className="stampAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),e}(k),G=function(t){function e(t){var r;m(this,e),r=n.call(this,t,!0);var i=r.data.file,o=i.filename,a=i.content;return r.filename=(0,b.getFilenameFromUrl)(o),r.content=a,r.linkService.eventBus&&r.linkService.eventBus.dispatch("fileattachmentannotation",{source:h(r),id:(0,_.stringToPDFString)(o),filename:o,content:a}),r}l(e,t);var n=f(e);return y(e,[{key:"render",value:function(){this.container.className="fileAttachmentAnnotation";var t=document.createElement("div");return t.style.height=this.container.style.height,t.style.width=this.container.style.width,t.addEventListener("dblclick",this._download.bind(this)),this.data.hasPopup||!this.data.title&&!this.data.contents||this._createPopup(this.container,t,this.data),this.container.appendChild(t),this.container}},{key:"_download",value:function(){if(!this.downloadManager)return void(0,_.warn)("Download cannot be started due to unavailable download manager");this.downloadManager.downloadData(this.content,this.filename,"")}}]),e}(k),Y=function(){function t(){m(this,t)}return y(t,null,[{key:"render",value:function(t){var e,n=[],r=[],i=o(t.annotations);try{for(i.s();!(e=i.n()).done;){var a=e.value;a&&(a.annotationType!==_.AnnotationType.POPUP?n.push(a):r.push(a))}}catch(t){i.e(t)}finally{i.f()}r.length&&n.push.apply(n,r);for(var s=0,u=n;s<u.length;s++){var l=u[s],c=x.create({data:l,layer:t.div,page:t.page,viewport:t.viewport,linkService:t.linkService,downloadManager:t.downloadManager,imageResourcesPath:t.imageResourcesPath||"",renderInteractiveForms:"boolean"!=typeof t.renderInteractiveForms||t.renderInteractiveForms,svgFactory:new b.DOMSVGFactory,annotationStorage:t.annotationStorage||new w.AnnotationStorage});c.isRenderable&&t.div.appendChild(c.render())}}},{key:"update",value:function(t){var e,n=o(t.annotations);try{for(n.s();!(e=n.n()).done;){var r=e.value,i=t.div.querySelector('[data-annotation-id="'.concat(r.id,'"]'));i&&(i.style.transform="matrix(".concat(t.viewport.transform.join(","),")"))}}catch(t){n.e(t)}finally{n.f()}t.div.removeAttribute("hidden")}}]),t}();e.AnnotationLayer=Y},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.renderTextLayer=void 0;var r=n(5),i=function(){function t(t){return!f.test(t)}function e(e,n,i){var o=document.createElement("span"),a={angle:0,canvasWidth:0,isWhitespace:!1,originalTransform:null,paddingBottom:0,paddingLeft:0,paddingRight:0,paddingTop:0,scale:1};if(e._textDivs.push(o),t(n.str))return a.isWhitespace=!0,void e._textDivProperties.set(o,a);var s=r.Util.transform(e._viewport.transform,n.transform),u=Math.atan2(s[1],s[0]),l=i[n.fontName];l.vertical&&(u+=Math.PI/2);var c=Math.sqrt(s[2]*s[2]+s[3]*s[3]),f=c;l.ascent?f=l.ascent*f:l.descent&&(f=(1+l.descent)*f);var d,h;0===u?(d=s[4],h=s[5]-f):(d=s[4]+f*Math.sin(u),h=s[5]-f*Math.cos(u)),o.style.left="".concat(d,"px"),o.style.top="".concat(h,"px"),o.style.fontSize="".concat(c,"px"),o.style.fontFamily=l.fontFamily,o.textContent=n.str,e._fontInspectorEnabled&&(o.dataset.fontName=n.fontName),0!==u&&(a.angle=u*(180/Math.PI));var p=!1;if(n.str.length>1)p=!0;else if(n.transform[0]!==n.transform[3]){var g=Math.abs(n.transform[0]),m=Math.abs(n.transform[3]);g!==m&&Math.max(g,m)/Math.min(g,m)>1.5&&(p=!0)}if(p&&(l.vertical?a.canvasWidth=n.height*e._viewport.scale:a.canvasWidth=n.width*e._viewport.scale),e._textDivProperties.set(o,a),e._textContentStream&&e._layoutText(o),e._enhanceTextSelection){var v=1,y=0;0!==u&&(v=Math.cos(u),y=Math.sin(u));var b,_,w=(l.vertical?n.height:n.width)*e._viewport.scale,x=c;0!==u?(b=[v,y,-y,v,d,h],_=r.Util.getAxialAlignedBoundingBox([0,0,w,x],b)):_=[d,h,d+w,h+x],e._bounds.push({left:_[0],top:_[1],right:_[2],bottom:_[3],div:o,size:[w,x],m:b})}}function n(t){if(!t._canceled){var e=t._textDivs,n=t._capability,r=e.length;if(r>c)return t._renderingDone=!0,void n.resolve();if(!t._textContentStream)for(var i=0;i<r;i++)t._layoutText(e[i]);t._renderingDone=!0,n.resolve()}}function i(t,e,n){for(var r=0,i=0;i<n;i++){var o=t[e++];o>0&&(r=r?Math.min(o,r):o)}return r}function o(t){for(var e=t._bounds,n=t._viewport,o=a(n.width,n.height,e),s=0;s<o.length;s++){var u=e[s].div,l=t._textDivProperties.get(u);if(0!==l.angle){var c=o[s],f=e[s],d=f.m,h=d[0],p=d[1],g=[[0,0],[0,f.size[1]],[f.size[0],0],f.size],m=new Float64Array(64);g.forEach(function(t,e){var n=r.Util.applyTransform(t,d);m[e+0]=h&&(c.left-n[0])/h,m[e+4]=p&&(c.top-n[1])/p,m[e+8]=h&&(c.right-n[0])/h,m[e+12]=p&&(c.bottom-n[1])/p,m[e+16]=p&&(c.left-n[0])/-p,m[e+20]=h&&(c.top-n[1])/h,m[e+24]=p&&(c.right-n[0])/-p,m[e+28]=h&&(c.bottom-n[1])/h,m[e+32]=h&&(c.left-n[0])/-h,m[e+36]=p&&(c.top-n[1])/-p,m[e+40]=h&&(c.right-n[0])/-h,m[e+44]=p&&(c.bottom-n[1])/-p,m[e+48]=p&&(c.left-n[0])/p,m[e+52]=h&&(c.top-n[1])/-h,m[e+56]=p&&(c.right-n[0])/p,m[e+60]=h&&(c.bottom-n[1])/-h});var v=1+Math.min(Math.abs(h),Math.abs(p));l.paddingLeft=i(m,32,16)/v,l.paddingTop=i(m,48,16)/v,l.paddingRight=i(m,0,16)/v,l.paddingBottom=i(m,16,16)/v,t._textDivProperties.set(u,l)}else l.paddingLeft=e[s].left-o[s].left,l.paddingTop=e[s].top-o[s].top,l.paddingRight=o[s].right-e[s].right,l.paddingBottom=o[s].bottom-e[s].bottom,t._textDivProperties.set(u,l)}}function a(t,e,n){var r=n.map(function(t,e){return{x1:t.left,y1:t.top,x2:t.right,y2:t.bottom,index:e,x1New:void 0,x2New:void 0}});s(t,r);var i=new Array(n.length);return r.forEach(function(t){var e=t.index;i[e]={left:t.x1New,top:0,right:t.x2New,bottom:0}}),n.map(function(e,n){var o=i[n],a=r[n];a.x1=e.top,a.y1=t-o.right,a.x2=e.bottom,a.y2=t-o.left,a.index=n,a.x1New=void 0,a.x2New=void 0}),s(e,r),r.forEach(function(t){var e=t.index;i[e].top=t.x1New,i[e].bottom=t.x2New}),i}function s(t,e){e.sort(function(t,e){return t.x1-e.x1||t.index-e.index});var n={x1:-1/0,y1:-1/0,x2:0,y2:1/0,index:-1,x1New:0,x2New:0},r=[{start:-1/0,end:1/0,boundary:n}];e.forEach(function(t){for(var e=0;e<r.length&&r[e].end<=t.y1;)e++;for(var n=r.length-1;n>=0&&r[n].start>=t.y2;)n--;var i,o,a,s,u=-1/0;for(a=e;a<=n;a++){i=r[a],o=i.boundary;var l;l=o.x2>t.x1?o.index>t.index?o.x1New:t.x1:void 0===o.x2New?(o.x2+t.x1)/2:o.x2New,l>u&&(u=l)}for(t.x1New=u,a=e;a<=n;a++)i=r[a],o=i.boundary,void 0===o.x2New?o.x2>t.x1?o.index>t.index&&(o.x2New=o.x2):o.x2New=u:o.x2New>u&&(o.x2New=Math.max(u,o.x2));var c=[],f=null;for(a=e;a<=n;a++){i=r[a],o=i.boundary;var d=o.x2>t.x2?o:t;f===d?c[c.length-1].end=i.end:(c.push({start:i.start,end:i.end,boundary:d}),f=d)}for(r[e].start<t.y1&&(c[0].start=t.y1,c.unshift({start:r[e].start,end:t.y1,boundary:r[e].boundary})),t.y2<r[n].end&&(c[c.length-1].end=t.y2,c.push({start:t.y2,end:r[n].end,boundary:r[n].boundary})),a=e;a<=n;a++)if(i=r[a],o=i.boundary,void 0===o.x2New){var h=!1;for(s=e-1;!h&&s>=0&&r[s].start>=o.y1;s--)h=r[s].boundary===o;for(s=n+1;!h&&s<r.length&&r[s].end<=o.y2;s++)h=r[s].boundary===o;for(s=0;!h&&s<c.length;s++)h=c[s].boundary===o;h||(o.x2New=u)}Array.prototype.splice.apply(r,[e,n-e+1].concat(c))}),r.forEach(function(e){var n=e.boundary;void 0===n.x2New&&(n.x2New=Math.max(t,n.x2))})}function u(t){var e=this,n=t.textContent,i=t.textContentStream,o=t.container,a=t.viewport,s=t.textDivs,u=t.textContentItemsStr,l=t.enhanceTextSelection;this._textContent=n,this._textContentStream=i,this._container=o,this._document=o.ownerDocument,this._viewport=a,this._textDivs=s||[],this._textContentItemsStr=u||[],this._enhanceTextSelection=!!l,this._fontInspectorEnabled=!(!globalThis.FontInspector||!globalThis.FontInspector.enabled),this._reader=null,this._layoutTextLastFontSize=null,this._layoutTextLastFontFamily=null,this._layoutTextCtx=null,this._textDivProperties=new WeakMap,this._renderingDone=!1,this._canceled=!1,this._capability=(0,r.createPromiseCapability)(),this._renderTimer=null,this._bounds=[],this._capability.promise.finally(function(){e._layoutTextCtx&&(e._layoutTextCtx.canvas.width=0,e._layoutTextCtx.canvas.height=0,e._layoutTextCtx=null)}).catch(function(){})}function l(t){var e=new u({textContent:t.textContent,textContentStream:t.textContentStream,container:t.container,viewport:t.viewport,textDivs:t.textDivs,textContentItemsStr:t.textContentItemsStr,enhanceTextSelection:t.enhanceTextSelection});return e._render(t.timeout),e}var c=1e5,f=/\S/;return u.prototype={get promise(){return this._capability.promise},cancel:function(){this._canceled=!0,this._reader&&(this._reader.cancel(new r.AbortException("TextLayer task cancelled.")),this._reader=null),null!==this._renderTimer&&(clearTimeout(this._renderTimer),this._renderTimer=null),this._capability.reject(new Error("TextLayer task cancelled."))},_processItems:function(t,n){for(var r=0,i=t.length;r<i;r++)this._textContentItemsStr.push(t[r].str),e(this,t[r],n)},_layoutText:function(t){var e=this._textDivProperties.get(t);if(!e.isWhitespace){var n="";if(0!==e.canvasWidth){var r=t.style,i=r.fontSize,o=r.fontFamily;i===this._layoutTextLastFontSize&&o===this._layoutTextLastFontFamily||(this._layoutTextCtx.font="".concat(i," ").concat(o),this._layoutTextLastFontSize=i,this._layoutTextLastFontFamily=o);var a=this._layoutTextCtx.measureText(t.textContent),s=a.width;s>0&&(e.scale=e.canvasWidth/s,n="scaleX(".concat(e.scale,")"))}0!==e.angle&&(n="rotate(".concat(e.angle,"deg) ").concat(n)),n.length>0&&(this._enhanceTextSelection&&(e.originalTransform=n),t.style.transform=n),this._textDivProperties.set(t,e),this._container.appendChild(t)}},_render:function(t){var e=this,i=(0,r.createPromiseCapability)(),o=Object.create(null),a=this._document.createElement("canvas");if(a.mozOpaque=!0,this._layoutTextCtx=a.getContext("2d",{alpha:!1}),this._textContent){var s=this._textContent.items,u=this._textContent.styles;this._processItems(s,u),i.resolve()}else{if(!this._textContentStream)throw new Error('Neither "textContent" nor "textContentStream" parameters specified.');this._reader=this._textContentStream.getReader(),function t(){e._reader.read().then(function(n){var r=n.value;if(n.done)return void i.resolve();Object.assign(o,r.styles),e._processItems(r.items,o),t()},i.reject)}()}i.promise.then(function(){o=null,t?e._renderTimer=setTimeout(function(){n(e),e._renderTimer=null},t):n(e)},this._capability.reject)},expandTextDivs:function(t){if(this._enhanceTextSelection&&this._renderingDone){null!==this._bounds&&(o(this),this._bounds=null);for(var e=[],n=[],r=0,i=this._textDivs.length;r<i;r++){var a=this._textDivs[r],s=this._textDivProperties.get(a);s.isWhitespace||(t?(e.length=0,n.length=0,s.originalTransform&&e.push(s.originalTransform),s.paddingTop>0?(n.push("".concat(s.paddingTop,"px")),e.push("translateY(".concat(-s.paddingTop,"px)"))):n.push(0),s.paddingRight>0?n.push("".concat(s.paddingRight/s.scale,"px")):n.push(0),s.paddingBottom>0?n.push("".concat(s.paddingBottom,"px")):n.push(0),s.paddingLeft>0?(n.push("".concat(s.paddingLeft/s.scale,"px")),e.push("translateX(".concat(-s.paddingLeft/s.scale,"px)"))):n.push(0),a.style.padding=n.join(" "),e.length&&(a.style.transform=e.join(" "))):(a.style.padding=null,a.style.transform=s.originalTransform))}}}},l}();e.renderTextLayer=i},function(t,e,n){"use strict";function r(t){return a(t)||o(t)||d(t)||i()}function i(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}function a(t){if(Array.isArray(t))return h(t)}function s(t,e){return c(t)||l(t,e)||d(t,e)||u()}function u(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function l(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}function c(t){if(Array.isArray(t))return t}function f(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=d(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},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=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function d(t,e){if(t){if("string"==typeof t)return h(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(t,e):void 0}}function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function g(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function m(t,e,n){return e&&g(t.prototype,e),n&&g(t,n),t}Object.defineProperty(e,"__esModule",{value:!0}),e.SVGGraphics=void 0;var v=n(5),y=n(1),b=n(7),_=function(){throw new Error("Not implemented: SVGGraphics")};e.SVGGraphics=_;var w=function(t){var e,n=[],r=[],i=f(t);try{for(i.s();!(e=i.n()).done;){var o=e.value;"save"!==o.fn?"restore"===o.fn?n=r.pop():n.push(o):(n.push({fnId:92,fn:"group",items:[]}),r.push(n),n=n[n.length-1].items)}}catch(t){i.e(t)}finally{i.f()}return n},x=function(t){if(Number.isInteger(t))return t.toString();var e=t.toFixed(10),n=e.length-1;if("0"!==e[n])return e;do{n--}while("0"===e[n]);return e.substring(0,"."===e[n]?n:n+1)},k=function(t){if(0===t[4]&&0===t[5]){if(0===t[1]&&0===t[2])return 1===t[0]&&1===t[3]?"":"scale(".concat(x(t[0])," ").concat(x(t[3]),")");if(t[0]===t[3]&&t[1]===-t[2]){var e=180*Math.acos(t[0])/Math.PI;return"rotate(".concat(x(e),")")}}else if(1===t[0]&&0===t[1]&&0===t[2]&&1===t[3])return"translate(".concat(x(t[4])," ").concat(x(t[5]),")");return"matrix(".concat(x(t[0])," ").concat(x(t[1])," ").concat(x(t[2])," ").concat(x(t[3])," ").concat(x(t[4])," ")+"".concat(x(t[5]),")")},S={fontStyle:"normal",fontWeight:"normal",fillColor:"#000000"},C=["butt","round","square"],E=["miter","round","bevel"],T=function(){function t(t,e,n){for(var r=-1,i=e;i<n;i++){var o=255&(r^t[i]);r=r>>>8^u[o]}return-1^r}function e(e,n,r,i){var o=i,a=n.length;r[o]=a>>24&255,r[o+1]=a>>16&255,r[o+2]=a>>8&255,r[o+3]=255&a,o+=4,r[o]=255&e.charCodeAt(0),r[o+1]=255&e.charCodeAt(1),r[o+2]=255&e.charCodeAt(2),r[o+3]=255&e.charCodeAt(3),o+=4,r.set(n,o),o+=n.length;var s=t(r,i+4,o);r[o]=s>>24&255,r[o+1]=s>>16&255,r[o+2]=s>>8&255,r[o+3]=255&s}function n(t,e,n){for(var r=1,i=0,o=e;o<n;++o)r=(r+(255&t[o]))%65521,i=(i+r)%65521;return i<<16|r}function r(t){if(!b.isNodeJS)return i(t);try{var e;e=parseInt(process.versions.node)>=8?t:Buffer.from(t);var n=__webpack_require__(1014).deflateSync(e,{level:9});return n instanceof Uint8Array?n:new Uint8Array(n)}catch(t){(0,v.warn)("Not compressing PNG because zlib.deflateSync is unavailable: "+t)}return i(t)}function i(t){var e=t.length,r=Math.ceil(e/65535),i=new Uint8Array(2+e+5*r+4),o=0;i[o++]=120,i[o++]=156;for(var a=0;e>65535;)i[o++]=0,i[o++]=255,i[o++]=255,i[o++]=0,i[o++]=0,i.set(t.subarray(a,a+65535),o),o+=65535,a+=65535,e-=65535;i[o++]=1,i[o++]=255&e,i[o++]=e>>8&255,i[o++]=255&~e,i[o++]=(65535&~e)>>8&255,i.set(t.subarray(a),o),o+=t.length-a;var s=n(t,0,t.length);return i[o++]=s>>24&255,i[o++]=s>>16&255,i[o++]=s>>8&255,i[o++]=255&s,i}function o(t,n,i,o){var u,l,c,f=t.width,d=t.height,h=t.data;switch(n){case v.ImageKind.GRAYSCALE_1BPP:l=0,u=1,c=f+7>>3;break;case v.ImageKind.RGB_24BPP:l=2,u=8,c=3*f;break;case v.ImageKind.RGBA_32BPP:l=6,u=8,c=4*f;break;default:throw new Error("invalid format")}for(var p=new Uint8Array((1+c)*d),g=0,m=0,y=0;y<d;++y)p[g++]=0,p.set(h.subarray(m,m+c),g),m+=c,g+=c;if(n===v.ImageKind.GRAYSCALE_1BPP&&o){g=0;for(var b=0;b<d;b++){g++;for(var _=0;_<c;_++)p[g++]^=255}}var w=new Uint8Array([f>>24&255,f>>16&255,f>>8&255,255&f,d>>24&255,d>>16&255,d>>8&255,255&d,u,l,0,0,0]),x=r(p),k=a.length+3*s+w.length+x.length,S=new Uint8Array(k),C=0;return S.set(a,C),C+=a.length,e("IHDR",w,S,C),C+=s+w.length,e("IDATA",x,S,C),C+=s+x.length,e("IEND",new Uint8Array(0),S,C),(0,v.createObjectURL)(S,"image/png",i)}for(var a=new Uint8Array([137,80,78,71,13,10,26,10]),s=12,u=new Int32Array(256),l=0;l<256;l++){for(var c=l,f=0;f<8;f++)c=1&c?3988292384^c>>1&2147483647:c>>1&2147483647;u[l]=c}return function(t,e,n){return o(t,void 0===t.kind?v.ImageKind.GRAYSCALE_1BPP:t.kind,e,n)}}(),A=function(){function t(){p(this,t),this.fontSizeScale=1,this.fontWeight=S.fontWeight,this.fontSize=0,this.textMatrix=v.IDENTITY_MATRIX,this.fontMatrix=v.FONT_IDENTITY_MATRIX,this.leading=0,this.textRenderingMode=v.TextRenderingMode.FILL,this.textMatrixScale=1,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRise=0,this.fillColor=S.fillColor,this.strokeColor="#000000",this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.lineJoin="",this.lineCap="",this.miterLimit=0,this.dashArray=[],this.dashPhase=0,this.dependencies=[],this.activeClipUrl=null,this.clipGroup=null,this.maskId=""}return m(t,[{key:"clone",value:function(){return Object.create(this)}},{key:"setCurrentPoint",value:function(t,e){this.x=t,this.y=e}}]),t}(),O=0,P=0,N=0;e.SVGGraphics=_=function(){function t(e,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];p(this,t),this.svgFactory=new y.DOMSVGFactory,this.current=new A,this.transformMatrix=v.IDENTITY_MATRIX,this.transformStack=[],this.extraStack=[],this.commonObjs=e,this.objs=n,this.pendingClip=null,this.pendingEOFill=!1,this.embedFonts=!1,this.embeddedFonts=Object.create(null),this.cssStyle=null,this.forceDataSchema=!!r,this._operatorIdMapping=[];for(var i in v.OPS)this._operatorIdMapping[v.OPS[i]]=i}return m(t,[{key:"save",value:function(){this.transformStack.push(this.transformMatrix);var t=this.current;this.extraStack.push(t),this.current=t.clone()}},{key:"restore",value:function(){this.transformMatrix=this.transformStack.pop(),this.current=this.extraStack.pop(),this.pendingClip=null,this.tgrp=null}},{key:"group",value:function(t){this.save(),this.executeOpTree(t),this.restore()}},{key:"loadDependencies",value:function(t){for(var e=this,n=t.fnArray,r=t.argsArray,i=0,o=n.length;i<o;i++)if(n[i]===v.OPS.dependency){var a,s=f(r[i]);try{for(s.s();!(a=s.n()).done;)!function(){var t=a.value,n=t.startsWith("g_")?e.commonObjs:e.objs,r=new Promise(function(e){n.get(t,e)});e.current.dependencies.push(r)}()}catch(t){s.e(t)}finally{s.f()}}return Promise.all(this.current.dependencies)}},{key:"transform",value:function(t,e,n,r,i,o){var a=[t,e,n,r,i,o];this.transformMatrix=v.Util.transform(this.transformMatrix,a),this.tgrp=null}},{key:"getSVG",value:function(t,e){var n=this;this.viewport=e;var r=this._initialize(e);return this.loadDependencies(t).then(function(){return n.transformMatrix=v.IDENTITY_MATRIX,n.executeOpTree(n.convertOpList(t)),r})}},{key:"convertOpList",value:function(t){for(var e=this._operatorIdMapping,n=t.argsArray,r=t.fnArray,i=[],o=0,a=r.length;o<a;o++){var s=r[o];i.push({fnId:s,fn:e[s],args:n[o]})}return w(i)}},{key:"executeOpTree",value:function(t){var e,n=f(t);try{for(n.s();!(e=n.n()).done;){var r=e.value,i=r.fn,o=r.fnId,a=r.args;switch(0|o){case v.OPS.beginText:this.beginText();break;case v.OPS.dependency:break;case v.OPS.setLeading:this.setLeading(a);break;case v.OPS.setLeadingMoveText:this.setLeadingMoveText(a[0],a[1]);break;case v.OPS.setFont:this.setFont(a);break;case v.OPS.showText:case v.OPS.showSpacedText:this.showText(a[0]);break;case v.OPS.endText:this.endText();break;case v.OPS.moveText:this.moveText(a[0],a[1]);break;case v.OPS.setCharSpacing:this.setCharSpacing(a[0]);break;case v.OPS.setWordSpacing:this.setWordSpacing(a[0]);break;case v.OPS.setHScale:this.setHScale(a[0]);break;case v.OPS.setTextMatrix:this.setTextMatrix(a[0],a[1],a[2],a[3],a[4],a[5]);break;case v.OPS.setTextRise:this.setTextRise(a[0]);break;case v.OPS.setTextRenderingMode:this.setTextRenderingMode(a[0]);break;case v.OPS.setLineWidth:this.setLineWidth(a[0]);break;case v.OPS.setLineJoin:this.setLineJoin(a[0]);break;case v.OPS.setLineCap:this.setLineCap(a[0]);break;case v.OPS.setMiterLimit:this.setMiterLimit(a[0]);break;case v.OPS.setFillRGBColor:this.setFillRGBColor(a[0],a[1],a[2]);break;case v.OPS.setStrokeRGBColor:this.setStrokeRGBColor(a[0],a[1],a[2]);break;case v.OPS.setStrokeColorN:this.setStrokeColorN(a);break;case v.OPS.setFillColorN:this.setFillColorN(a);break;case v.OPS.shadingFill:this.shadingFill(a[0]);break;case v.OPS.setDash:this.setDash(a[0],a[1]);break;case v.OPS.setRenderingIntent:this.setRenderingIntent(a[0]);break;case v.OPS.setFlatness:this.setFlatness(a[0]);break;case v.OPS.setGState:this.setGState(a[0]);break;case v.OPS.fill:this.fill();break;case v.OPS.eoFill:this.eoFill();break;case v.OPS.stroke:this.stroke();break;case v.OPS.fillStroke:this.fillStroke();break;case v.OPS.eoFillStroke:this.eoFillStroke();break;case v.OPS.clip:this.clip("nonzero");break;case v.OPS.eoClip:this.clip("evenodd");break;case v.OPS.paintSolidColorImageMask:this.paintSolidColorImageMask();break;case v.OPS.paintImageXObject:this.paintImageXObject(a[0]);break;case v.OPS.paintInlineImageXObject:this.paintInlineImageXObject(a[0]);break;case v.OPS.paintImageMaskXObject:this.paintImageMaskXObject(a[0]);break;case v.OPS.paintFormXObjectBegin:this.paintFormXObjectBegin(a[0],a[1]);break;case v.OPS.paintFormXObjectEnd:this.paintFormXObjectEnd();break;case v.OPS.closePath:this.closePath();break;case v.OPS.closeStroke:this.closeStroke();break;case v.OPS.closeFillStroke:this.closeFillStroke();break;case v.OPS.closeEOFillStroke:this.closeEOFillStroke();break;case v.OPS.nextLine:this.nextLine();break;case v.OPS.transform:this.transform(a[0],a[1],a[2],a[3],a[4],a[5]);break;case v.OPS.constructPath:this.constructPath(a[0],a[1]);break;case v.OPS.endPath:this.endPath();break;case 92:this.group(r.items);break;default:(0,v.warn)("Unimplemented operator ".concat(i))}}}catch(t){n.e(t)}finally{n.f()}}},{key:"setWordSpacing",value:function(t){this.current.wordSpacing=t}},{key:"setCharSpacing",value:function(t){this.current.charSpacing=t}},{key:"nextLine",value:function(){this.moveText(0,this.current.leading)}},{key:"setTextMatrix",value:function(t,e,n,r,i,o){var a=this.current;a.textMatrix=a.lineMatrix=[t,e,n,r,i,o],a.textMatrixScale=Math.sqrt(t*t+e*e),a.x=a.lineX=0,a.y=a.lineY=0,a.xcoords=[],a.ycoords=[],a.tspan=this.svgFactory.createElement("svg:tspan"),a.tspan.setAttributeNS(null,"font-family",a.fontFamily),a.tspan.setAttributeNS(null,"font-size","".concat(x(a.fontSize),"px")),a.tspan.setAttributeNS(null,"y",x(-a.y)),a.txtElement=this.svgFactory.createElement("svg:text"),a.txtElement.appendChild(a.tspan)}},{key:"beginText",value:function(){var t=this.current;t.x=t.lineX=0,t.y=t.lineY=0,t.textMatrix=v.IDENTITY_MATRIX,t.lineMatrix=v.IDENTITY_MATRIX,t.textMatrixScale=1,t.tspan=this.svgFactory.createElement("svg:tspan"),t.txtElement=this.svgFactory.createElement("svg:text"),t.txtgrp=this.svgFactory.createElement("svg:g"),t.xcoords=[],t.ycoords=[]}},{key:"moveText",value:function(t,e){var n=this.current;n.x=n.lineX+=t,n.y=n.lineY+=e,n.xcoords=[],n.ycoords=[],n.tspan=this.svgFactory.createElement("svg:tspan"),n.tspan.setAttributeNS(null,"font-family",n.fontFamily),n.tspan.setAttributeNS(null,"font-size","".concat(x(n.fontSize),"px")),n.tspan.setAttributeNS(null,"y",x(-n.y))}},{key:"showText",value:function(t){var e=this.current,n=e.font,r=e.fontSize;if(0!==r){var i,o=e.fontSizeScale,a=e.charSpacing,s=e.wordSpacing,u=e.fontDirection,l=e.textHScale*u,c=n.vertical,d=c?1:-1,h=n.defaultVMetrics,p=r*e.fontMatrix[0],g=0,m=f(t);try{for(m.s();!(i=m.n()).done;){var y=i.value;if(null!==y)if((0,v.isNum)(y))g+=d*y*r/1e3;else{var b=(y.isSpace?s:0)+a,_=y.fontChar,w=void 0,C=void 0,E=y.width;if(c){var T=void 0,A=y.vmetric||h;T=y.vmetric?A[1]:.5*E,T=-T*p;var O=A[2]*p;E=A?-A[0]:E,w=T/o,C=(g+O)/o}else w=g/o,C=0;(y.isInFont||n.missingFile)&&(e.xcoords.push(e.x+w),c&&e.ycoords.push(-e.y+C),e.tspan.textContent+=_);var P=void 0;P=c?E*p-b*u:E*p+b*u,g+=P}else g+=u*s}}catch(t){m.e(t)}finally{m.f()}e.tspan.setAttributeNS(null,"x",e.xcoords.map(x).join(" ")),c?e.tspan.setAttributeNS(null,"y",e.ycoords.map(x).join(" ")):e.tspan.setAttributeNS(null,"y",x(-e.y)),c?e.y-=g:e.x+=g*l,e.tspan.setAttributeNS(null,"font-family",e.fontFamily),e.tspan.setAttributeNS(null,"font-size","".concat(x(e.fontSize),"px")),e.fontStyle!==S.fontStyle&&e.tspan.setAttributeNS(null,"font-style",e.fontStyle),e.fontWeight!==S.fontWeight&&e.tspan.setAttributeNS(null,"font-weight",e.fontWeight);var N=e.textRenderingMode&v.TextRenderingMode.FILL_STROKE_MASK;if(N===v.TextRenderingMode.FILL||N===v.TextRenderingMode.FILL_STROKE?(e.fillColor!==S.fillColor&&e.tspan.setAttributeNS(null,"fill",e.fillColor),e.fillAlpha<1&&e.tspan.setAttributeNS(null,"fill-opacity",e.fillAlpha)):e.textRenderingMode===v.TextRenderingMode.ADD_TO_PATH?e.tspan.setAttributeNS(null,"fill","transparent"):e.tspan.setAttributeNS(null,"fill","none"),N===v.TextRenderingMode.STROKE||N===v.TextRenderingMode.FILL_STROKE){var D=1/(e.textMatrixScale||1);this._setStrokeAttributes(e.tspan,D)}var M=e.textMatrix;0!==e.textRise&&(M=M.slice(),M[5]+=e.textRise),e.txtElement.setAttributeNS(null,"transform","".concat(k(M)," scale(").concat(x(l),", -1)")),e.txtElement.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),e.txtElement.appendChild(e.tspan),e.txtgrp.appendChild(e.txtElement),this._ensureTransformGroup().appendChild(e.txtElement)}}},{key:"setLeadingMoveText",value:function(t,e){this.setLeading(-e),this.moveText(t,e)}},{key:"addFontStyle",value:function(t){if(!t.data)throw new Error('addFontStyle: No font data available, ensure that the "fontExtraProperties" API parameter is set.');this.cssStyle||(this.cssStyle=this.svgFactory.createElement("svg:style"),this.cssStyle.setAttributeNS(null,"type","text/css"),this.defs.appendChild(this.cssStyle));var e=(0,v.createObjectURL)(t.data,t.mimetype,this.forceDataSchema);this.cssStyle.textContent+='@font-face { font-family: "'.concat(t.loadedName,'";')+" src: url(".concat(e,"); }\n")}},{key:"setFont",value:function(t){var e=this.current,n=this.commonObjs.get(t[0]),r=t[1];e.font=n,!this.embedFonts||n.missingFile||this.embeddedFonts[n.loadedName]||(this.addFontStyle(n),this.embeddedFonts[n.loadedName]=n),e.fontMatrix=n.fontMatrix?n.fontMatrix:v.FONT_IDENTITY_MATRIX;var i="normal";n.black?i="900":n.bold&&(i="bold");var o=n.italic?"italic":"normal";r<0?(r=-r,e.fontDirection=-1):e.fontDirection=1,e.fontSize=r,e.fontFamily=n.loadedName,e.fontWeight=i,e.fontStyle=o,e.tspan=this.svgFactory.createElement("svg:tspan"),e.tspan.setAttributeNS(null,"y",x(-e.y)),e.xcoords=[],e.ycoords=[]}},{key:"endText",value:function(){var t=this.current;t.textRenderingMode&v.TextRenderingMode.ADD_TO_PATH_FLAG&&t.txtElement&&t.txtElement.hasChildNodes()&&(t.element=t.txtElement,this.clip("nonzero"),this.endPath())}},{key:"setLineWidth",value:function(t){t>0&&(this.current.lineWidth=t)}},{key:"setLineCap",value:function(t){this.current.lineCap=C[t]}},{key:"setLineJoin",value:function(t){this.current.lineJoin=E[t]}},{key:"setMiterLimit",value:function(t){this.current.miterLimit=t}},{key:"setStrokeAlpha",value:function(t){this.current.strokeAlpha=t}},{key:"setStrokeRGBColor",value:function(t,e,n){this.current.strokeColor=v.Util.makeCssRgb(t,e,n)}},{key:"setFillAlpha",value:function(t){this.current.fillAlpha=t}},{key:"setFillRGBColor",value:function(t,e,n){this.current.fillColor=v.Util.makeCssRgb(t,e,n),this.current.tspan=this.svgFactory.createElement("svg:tspan"),this.current.xcoords=[],this.current.ycoords=[]}},{key:"setStrokeColorN",value:function(t){this.current.strokeColor=this._makeColorN_Pattern(t)}},{key:"setFillColorN",value:function(t){this.current.fillColor=this._makeColorN_Pattern(t)}},{key:"shadingFill",value:function(t){var e=this.viewport.width,n=this.viewport.height,r=v.Util.inverseTransform(this.transformMatrix),i=v.Util.applyTransform([0,0],r),o=v.Util.applyTransform([0,n],r),a=v.Util.applyTransform([e,0],r),s=v.Util.applyTransform([e,n],r),u=Math.min(i[0],o[0],a[0],s[0]),l=Math.min(i[1],o[1],a[1],s[1]),c=Math.max(i[0],o[0],a[0],s[0]),f=Math.max(i[1],o[1],a[1],s[1]),d=this.svgFactory.createElement("svg:rect");d.setAttributeNS(null,"x",u),d.setAttributeNS(null,"y",l),d.setAttributeNS(null,"width",c-u),d.setAttributeNS(null,"height",f-l),d.setAttributeNS(null,"fill",this._makeShadingPattern(t)),this.current.fillAlpha<1&&d.setAttributeNS(null,"fill-opacity",this.current.fillAlpha),this._ensureTransformGroup().appendChild(d)}},{key:"_makeColorN_Pattern",value:function(t){return"TilingPattern"===t[0]?this._makeTilingPattern(t):this._makeShadingPattern(t)}},{key:"_makeTilingPattern",value:function(t){var e=t[1],n=t[2],i=t[3]||v.IDENTITY_MATRIX,o=s(t[4],4),a=o[0],u=o[1],l=o[2],c=o[3],f=t[5],d=t[6],h=t[7],p="shading".concat(N++),g=v.Util.applyTransform([a,u],i),m=s(g,2),y=m[0],b=m[1],_=v.Util.applyTransform([l,c],i),w=s(_,2),x=w[0],k=w[1],S=v.Util.singularValueDecompose2dScale(i),C=s(S,2),E=C[0],T=C[1],A=f*E,O=d*T,P=this.svgFactory.createElement("svg:pattern");P.setAttributeNS(null,"id",p),P.setAttributeNS(null,"patternUnits","userSpaceOnUse"),P.setAttributeNS(null,"width",A),P.setAttributeNS(null,"height",O),P.setAttributeNS(null,"x","".concat(y)),P.setAttributeNS(null,"y","".concat(b));var D=this.svg,M=this.transformMatrix,I=this.current.fillColor,R=this.current.strokeColor,$=this.svgFactory.create(x-y,k-b);if(this.svg=$,this.transformMatrix=i,2===h){var L=v.Util.makeCssRgb.apply(v.Util,r(e));this.current.fillColor=L,this.current.strokeColor=L}return this.executeOpTree(this.convertOpList(n)),this.svg=D,this.transformMatrix=M,this.current.fillColor=I,this.current.strokeColor=R,P.appendChild($.childNodes[0]),this.defs.appendChild(P),"url(#".concat(p,")")}},{key:"_makeShadingPattern",value:function(t){switch(t[0]){case"RadialAxial":var e,n="shading".concat(N++),r=t[3];switch(t[1]){case"axial":var i=t[4],o=t[5];e=this.svgFactory.createElement("svg:linearGradient"),e.setAttributeNS(null,"id",n),e.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),e.setAttributeNS(null,"x1",i[0]),e.setAttributeNS(null,"y1",i[1]),e.setAttributeNS(null,"x2",o[0]),e.setAttributeNS(null,"y2",o[1]);break;case"radial":var a=t[4],s=t[5],u=t[6],l=t[7];e=this.svgFactory.createElement("svg:radialGradient"),e.setAttributeNS(null,"id",n),e.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),e.setAttributeNS(null,"cx",s[0]),e.setAttributeNS(null,"cy",s[1]),e.setAttributeNS(null,"r",l),e.setAttributeNS(null,"fx",a[0]),e.setAttributeNS(null,"fy",a[1]),e.setAttributeNS(null,"fr",u);break;default:throw new Error("Unknown RadialAxial type: ".concat(t[1]))}var c,d=f(r);try{for(d.s();!(c=d.n()).done;){var h=c.value,p=this.svgFactory.createElement("svg:stop");p.setAttributeNS(null,"offset",h[0]),p.setAttributeNS(null,"stop-color",h[1]),e.appendChild(p)}}catch(t){d.e(t)}finally{d.f()}return this.defs.appendChild(e),"url(#".concat(n,")");case"Mesh":return(0,v.warn)("Unimplemented pattern Mesh"),null;case"Dummy":return"hotpink";default:throw new Error("Unknown IR type: ".concat(t[0]))}}},{key:"setDash",value:function(t,e){this.current.dashArray=t,this.current.dashPhase=e}},{key:"constructPath",value:function(t,e){var n,r=this.current,i=r.x,o=r.y,a=[],s=0,u=f(t);try{for(u.s();!(n=u.n()).done;){switch(0|n.value){case v.OPS.rectangle:i=e[s++],o=e[s++];var l=e[s++],c=e[s++],d=i+l,h=o+c;a.push("M",x(i),x(o),"L",x(d),x(o),"L",x(d),x(h),"L",x(i),x(h),"Z");break;case v.OPS.moveTo:i=e[s++],o=e[s++],a.push("M",x(i),x(o));break;case v.OPS.lineTo:i=e[s++],o=e[s++],a.push("L",x(i),x(o));break;case v.OPS.curveTo:i=e[s+4],o=e[s+5],a.push("C",x(e[s]),x(e[s+1]),x(e[s+2]),x(e[s+3]),x(i),x(o)),s+=6;break;case v.OPS.curveTo2:a.push("C",x(i),x(o),x(e[s]),x(e[s+1]),x(e[s+2]),x(e[s+3])),i=e[s+2],o=e[s+3],s+=4;break;case v.OPS.curveTo3:i=e[s+2],o=e[s+3],a.push("C",x(e[s]),x(e[s+1]),x(i),x(o),x(i),x(o)),s+=4;break;case v.OPS.closePath:a.push("Z")}}}catch(t){u.e(t)}finally{u.f()}a=a.join(" "),r.path&&t.length>0&&t[0]!==v.OPS.rectangle&&t[0]!==v.OPS.moveTo?a=r.path.getAttributeNS(null,"d")+a:(r.path=this.svgFactory.createElement("svg:path"),this._ensureTransformGroup().appendChild(r.path)),r.path.setAttributeNS(null,"d",a),r.path.setAttributeNS(null,"fill","none"),r.element=r.path,r.setCurrentPoint(i,o)}},{key:"endPath",value:function(){var t=this.current;if(t.path=null,this.pendingClip){if(!t.element)return void(this.pendingClip=null);var e="clippath".concat(O++),n=this.svgFactory.createElement("svg:clipPath");n.setAttributeNS(null,"id",e),n.setAttributeNS(null,"transform",k(this.transformMatrix));var r=t.element.cloneNode(!0);"evenodd"===this.pendingClip?r.setAttributeNS(null,"clip-rule","evenodd"):r.setAttributeNS(null,"clip-rule","nonzero"),this.pendingClip=null,n.appendChild(r),this.defs.appendChild(n),t.activeClipUrl&&(t.clipGroup=null,this.extraStack.forEach(function(t){t.clipGroup=null}),n.setAttributeNS(null,"clip-path",t.activeClipUrl)),t.activeClipUrl="url(#".concat(e,")"),this.tgrp=null}}},{key:"clip",value:function(t){this.pendingClip=t}},{key:"closePath",value:function(){var t=this.current;if(t.path){var e="".concat(t.path.getAttributeNS(null,"d"),"Z");t.path.setAttributeNS(null,"d",e)}}},{key:"setLeading",value:function(t){this.current.leading=-t}},{key:"setTextRise",value:function(t){this.current.textRise=t}},{key:"setTextRenderingMode",value:function(t){this.current.textRenderingMode=t}},{key:"setHScale",value:function(t){this.current.textHScale=t/100}},{key:"setRenderingIntent",value:function(t){}},{key:"setFlatness",value:function(t){}},{key:"setGState",value:function(t){var e,n=f(t);try{for(n.s();!(e=n.n()).done;){var r=s(e.value,2),i=r[0],o=r[1];switch(i){case"LW":this.setLineWidth(o);break;case"LC":this.setLineCap(o);break;case"LJ":this.setLineJoin(o);break;case"ML":this.setMiterLimit(o);break;case"D":this.setDash(o[0],o[1]);break;case"RI":this.setRenderingIntent(o);break;case"FL":this.setFlatness(o);break;case"Font":this.setFont(o);break;case"CA":this.setStrokeAlpha(o);break;case"ca":this.setFillAlpha(o);break;default:(0,v.warn)("Unimplemented graphic state operator ".concat(i))}}}catch(t){n.e(t)}finally{n.f()}}},{key:"fill",value:function(){var t=this.current;t.element&&(t.element.setAttributeNS(null,"fill",t.fillColor),t.element.setAttributeNS(null,"fill-opacity",t.fillAlpha),this.endPath())}},{key:"stroke",value:function(){var t=this.current;t.element&&(this._setStrokeAttributes(t.element),t.element.setAttributeNS(null,"fill","none"),this.endPath())}},{key:"_setStrokeAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=this.current,r=n.dashArray;1!==e&&r.length>0&&(r=r.map(function(t){return e*t})),t.setAttributeNS(null,"stroke",n.strokeColor),t.setAttributeNS(null,"stroke-opacity",n.strokeAlpha),t.setAttributeNS(null,"stroke-miterlimit",x(n.miterLimit)),t.setAttributeNS(null,"stroke-linecap",n.lineCap),t.setAttributeNS(null,"stroke-linejoin",n.lineJoin),t.setAttributeNS(null,"stroke-width",x(e*n.lineWidth)+"px"),t.setAttributeNS(null,"stroke-dasharray",r.map(x).join(" ")),t.setAttributeNS(null,"stroke-dashoffset",x(e*n.dashPhase)+"px")}},{key:"eoFill",value:function(){this.current.element&&this.current.element.setAttributeNS(null,"fill-rule","evenodd"),this.fill()}},{key:"fillStroke",value:function(){this.stroke(),this.fill()}},{key:"eoFillStroke",value:function(){this.current.element&&this.current.element.setAttributeNS(null,"fill-rule","evenodd"),this.fillStroke()}},{key:"closeStroke",value:function(){this.closePath(),this.stroke()}},{key:"closeFillStroke",value:function(){this.closePath(),this.fillStroke()}},{key:"closeEOFillStroke",value:function(){this.closePath(),this.eoFillStroke()}},{key:"paintSolidColorImageMask",value:function(){var t=this.svgFactory.createElement("svg:rect");t.setAttributeNS(null,"x","0"),t.setAttributeNS(null,"y","0"),t.setAttributeNS(null,"width","1px"),t.setAttributeNS(null,"height","1px"),t.setAttributeNS(null,"fill",this.current.fillColor),this._ensureTransformGroup().appendChild(t)}},{key:"paintImageXObject",value:function(t){var e=t.startsWith("g_")?this.commonObjs.get(t):this.objs.get(t);if(!e)return void(0,v.warn)("Dependent image with object ID ".concat(t," is not ready yet"));this.paintInlineImageXObject(e)}},{key:"paintInlineImageXObject",value:function(t,e){var n=t.width,r=t.height,i=T(t,this.forceDataSchema,!!e),o=this.svgFactory.createElement("svg:rect");o.setAttributeNS(null,"x","0"),o.setAttributeNS(null,"y","0"),o.setAttributeNS(null,"width",x(n)),o.setAttributeNS(null,"height",x(r)),this.current.element=o,this.clip("nonzero");var a=this.svgFactory.createElement("svg:image");a.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i),a.setAttributeNS(null,"x","0"),a.setAttributeNS(null,"y",x(-r)),a.setAttributeNS(null,"width",x(n)+"px"),a.setAttributeNS(null,"height",x(r)+"px"),a.setAttributeNS(null,"transform","scale(".concat(x(1/n)," ").concat(x(-1/r),")")),e?e.appendChild(a):this._ensureTransformGroup().appendChild(a)}},{key:"paintImageMaskXObject",value:function(t){var e=this.current,n=t.width,r=t.height,i=e.fillColor;e.maskId="mask".concat(P++);var o=this.svgFactory.createElement("svg:mask");o.setAttributeNS(null,"id",e.maskId);var a=this.svgFactory.createElement("svg:rect");a.setAttributeNS(null,"x","0"),a.setAttributeNS(null,"y","0"),a.setAttributeNS(null,"width",x(n)),a.setAttributeNS(null,"height",x(r)),a.setAttributeNS(null,"fill",i),a.setAttributeNS(null,"mask","url(#".concat(e.maskId,")")),this.defs.appendChild(o),this._ensureTransformGroup().appendChild(a),this.paintInlineImageXObject(t,o)}},{key:"paintFormXObjectBegin",value:function(t,e){if(Array.isArray(t)&&6===t.length&&this.transform(t[0],t[1],t[2],t[3],t[4],t[5]),e){var n=e[2]-e[0],r=e[3]-e[1],i=this.svgFactory.createElement("svg:rect");i.setAttributeNS(null,"x",e[0]),i.setAttributeNS(null,"y",e[1]),i.setAttributeNS(null,"width",x(n)),i.setAttributeNS(null,"height",x(r)),this.current.element=i,this.clip("nonzero"),this.endPath()}}},{key:"paintFormXObjectEnd",value:function(){}},{key:"_initialize",value:function(t){var e=this.svgFactory.create(t.width,t.height),n=this.svgFactory.createElement("svg:defs");e.appendChild(n),this.defs=n;var r=this.svgFactory.createElement("svg:g");return r.setAttributeNS(null,"transform",k(t.transform)),e.appendChild(r),this.svg=r,e}},{key:"_ensureClipGroup",value:function(){if(!this.current.clipGroup){var t=this.svgFactory.createElement("svg:g");t.setAttributeNS(null,"clip-path",this.current.activeClipUrl),this.svg.appendChild(t),this.current.clipGroup=t}return this.current.clipGroup}},{key:"_ensureTransformGroup",value:function(){return this.tgrp||(this.tgrp=this.svgFactory.createElement("svg:g"),this.tgrp.setAttributeNS(null,"transform",k(this.transformMatrix)),this.current.activeClipUrl?this._ensureClipGroup().appendChild(this.tgrp):this.svg.appendChild(this.tgrp)),this.tgrp}}]),t}()},function(t,e,n){"use strict";function r(t){"@babel/helpers - typeof";return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&o(t,e)}function o(t,e){return(o=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function a(t){var e=l();return function(){var n,r=c(t);if(e){var i=c(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return s(this,n)}}function s(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?u(t):e}function u(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function l(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}function c(t){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function f(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}function d(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){function o(t){f(s,r,i,o,a,"next",t)}function a(t){f(s,r,i,o,a,"throw",t)}var s=t.apply(e,n);o(void 0)})}}function h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function p(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function g(t,e,n){return e&&p(t.prototype,e),n&&p(t,n),t}function m(t){var e=S.parse(t);return"file:"===e.protocol||e.host?e:/^[a-z]:[/\\]/i.test(t)?S.parse("file:///".concat(t)):(e.host||(e.protocol="file:"),e)}function v(t,e){return{protocol:t.protocol,auth:t.auth,host:t.hostname,port:t.port,path:t.path,method:"GET",headers:e}}Object.defineProperty(e,"__esModule",{value:!0}),e.PDFNodeStream=void 0;var y=function(t){return t&&t.__esModule?t:{default:t}}(n(2)),b=n(5),_=n(220),w=__webpack_require__(262),x=__webpack_require__(1011),k=__webpack_require__(1012),S=__webpack_require__(1013),C=/^file:\/\/\/[a-zA-Z]:\//,E=function(){function t(e){h(this,t),this.source=e,this.url=m(e.url),this.isHttp="http:"===this.url.protocol||"https:"===this.url.protocol,this.isFsUrl="file:"===this.url.protocol,this.httpHeaders=this.isHttp&&e.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}return g(t,[{key:"getFullReader",value:function(){return(0,b.assert)(!this._fullRequestReader,"PDFNodeStream.getFullReader can only be called once."),this._fullRequestReader=this.isFsUrl?new N(this):new O(this),this._fullRequestReader}},{key:"getRangeReader",value:function(t,e){if(e<=this._progressiveDataLength)return null;var n=this.isFsUrl?new D(this,t,e):new P(this,t,e);return this._rangeRequestReaders.push(n),n}},{key:"cancelAllRequests",value:function(t){this._fullRequestReader&&this._fullRequestReader.cancel(t),this._rangeRequestReaders.slice(0).forEach(function(e){e.cancel(t)})}},{key:"_progressiveDataLength",get:function(){return this._fullRequestReader?this._fullRequestReader._loaded:0}}]),t}();e.PDFNodeStream=E;var T=function(){function t(e){h(this,t),this._url=e.url,this._done=!1,this._storedError=null,this.onProgress=null;var n=e.source;this._contentLength=n.length,this._loaded=0,this._filename=null,this._disableRange=n.disableRange||!1,this._rangeChunkSize=n.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._isStreamingSupported=!n.disableStream,this._isRangeSupported=!n.disableRange,this._readableStream=null,this._readCapability=(0,b.createPromiseCapability)(),this._headersCapability=(0,b.createPromiseCapability)()}return g(t,[{key:"read",value:function(){function t(){return e.apply(this,arguments)}var e=d(y.default.mark(function t(){var e,n;return y.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._readCapability.promise;case 2:if(!this._done){t.next=4;break}return t.abrupt("return",{value:void 0,done:!0});case 4:if(!this._storedError){t.next=6;break}throw this._storedError;case 6:if(null!==(e=this._readableStream.read())){t.next=10;break}return this._readCapability=(0,b.createPromiseCapability)(),t.abrupt("return",this.read());case 10:return this._loaded+=e.length,this.onProgress&&this.onProgress({loaded:this._loaded,total:this._contentLength}),n=new Uint8Array(e).buffer,t.abrupt("return",{value:n,done:!1});case 14:case"end":return t.stop()}},t,this)}));return t}()},{key:"cancel",value:function(t){if(!this._readableStream)return void this._error(t);this._readableStream.destroy(t)}},{key:"_error",value:function(t){this._storedError=t,this._readCapability.resolve()}},{key:"_setReadableStream",value:function(t){var e=this;this._readableStream=t,t.on("readable",function(){e._readCapability.resolve()}),t.on("end",function(){t.destroy(),e._done=!0,e._readCapability.resolve()}),t.on("error",function(t){e._error(t)}),!this._isStreamingSupported&&this._isRangeSupported&&this._error(new b.AbortException("streaming is disabled")),this._storedError&&this._readableStream.destroy(this._storedError)}},{key:"headersReady",get:function(){return this._headersCapability.promise}},{key:"filename",get:function(){return this._filename}},{key:"contentLength",get:function(){return this._contentLength}},{key:"isRangeSupported",get:function(){return this._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}}]),t}(),A=function(){function t(e){h(this,t),this._url=e.url,this._done=!1,this._storedError=null,this.onProgress=null,this._loaded=0,this._readableStream=null,this._readCapability=(0,b.createPromiseCapability)();var n=e.source;this._isStreamingSupported=!n.disableStream}return g(t,[{key:"read",value:function(){function t(){return e.apply(this,arguments)}var e=d(y.default.mark(function t(){var e,n;return y.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._readCapability.promise;case 2:if(!this._done){t.next=4;break}return t.abrupt("return",{value:void 0,done:!0});case 4:if(!this._storedError){t.next=6;break}throw this._storedError;case 6:if(null!==(e=this._readableStream.read())){t.next=10;break}return this._readCapability=(0,b.createPromiseCapability)(),t.abrupt("return",this.read());case 10:return this._loaded+=e.length,this.onProgress&&this.onProgress({loaded:this._loaded}),n=new Uint8Array(e).buffer,t.abrupt("return",{value:n,done:!1});case 14:case"end":return t.stop()}},t,this)}));return t}()},{key:"cancel",value:function(t){if(!this._readableStream)return void this._error(t);this._readableStream.destroy(t)}},{key:"_error",value:function(t){this._storedError=t,this._readCapability.resolve()}},{key:"_setReadableStream",value:function(t){var e=this;this._readableStream=t,t.on("readable",function(){e._readCapability.resolve()}),t.on("end",function(){t.destroy(),e._done=!0,e._readCapability.resolve()}),t.on("error",function(t){e._error(t)}),this._storedError&&this._readableStream.destroy(this._storedError)}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}}]),t}(),O=function(t){function e(t){var r;h(this,e),r=n.call(this,t);var i=function(e){if(404===e.statusCode){var n=new b.MissingPDFException('Missing PDF "'.concat(r._url,'".'));return r._storedError=n,void r._headersCapability.reject(n)}r._headersCapability.resolve(),r._setReadableStream(e);var i=function(t){return r._readableStream.headers[t.toLowerCase()]},o=(0,_.validateRangeRequestCapabilities)({getResponseHeader:i,isHttp:t.isHttp,rangeChunkSize:r._rangeChunkSize,disableRange:r._disableRange}),a=o.allowRangeRequests,s=o.suggestedLength;r._isRangeSupported=a,r._contentLength=s||r._contentLength,r._filename=(0,_.extractFilenameFromHeader)(i)};return r._request=null,"http:"===r._url.protocol?r._request=x.request(v(r._url,t.httpHeaders),i):r._request=k.request(v(r._url,t.httpHeaders),i),r._request.on("error",function(t){r._storedError=t,r._headersCapability.reject(t)}),r._request.end(),r}i(e,t);var n=a(e);return e}(T),P=function(t){function e(t,r,i){var o;h(this,e),o=n.call(this,t),o._httpHeaders={};for(var a in t.httpHeaders){var s=t.httpHeaders[a];void 0!==s&&(o._httpHeaders[a]=s)}o._httpHeaders.Range="bytes=".concat(r,"-").concat(i-1);var u=function(t){if(404===t.statusCode){var e=new b.MissingPDFException('Missing PDF "'.concat(o._url,'".'));return void(o._storedError=e)}o._setReadableStream(t)};return o._request=null,"http:"===o._url.protocol?o._request=x.request(v(o._url,o._httpHeaders),u):o._request=k.request(v(o._url,o._httpHeaders),u),o._request.on("error",function(t){o._storedError=t}),o._request.end(),o}i(e,t);var n=a(e);return e}(A),N=function(t){function e(t){var r;h(this,e),r=n.call(this,t);var i=decodeURIComponent(r._url.path);return C.test(r._url.href)&&(i=i.replace(/^\//,"")),w.lstat(i,function(t,e){if(t)return"ENOENT"===t.code&&(t=new b.MissingPDFException('Missing PDF "'.concat(i,'".'))),r._storedError=t,void r._headersCapability.reject(t);r._contentLength=e.size,r._setReadableStream(w.createReadStream(i)),r._headersCapability.resolve()}),r}i(e,t);var n=a(e);return e}(T),D=function(t){function e(t,r,i){var o;h(this,e),o=n.call(this,t);var a=decodeURIComponent(o._url.path);return C.test(o._url.href)&&(a=a.replace(/^\//,"")),o._setReadableStream(w.createReadStream(a,{start:r,end:i-1})),o}i(e,t);var n=a(e);return e}(A)},function(t,e,n){"use strict";function r(t){var e=t.getResponseHeader,n=t.isHttp,r=t.rangeChunkSize,i=t.disableRange;(0,s.assert)(r>0,"Range chunk size must be larger than zero");var o={allowRangeRequests:!1,suggestedLength:void 0},a=parseInt(e("Content-Length"),10);return Number.isInteger(a)?(o.suggestedLength=a,a<=2*r?o:i||!n?o:"bytes"!==e("Accept-Ranges")?o:"identity"!==(e("Content-Encoding")||"identity")?o:(o.allowRangeRequests=!0,o)):o}function i(t){var e=t("Content-Disposition");if(e){var n=(0,u.getFilenameFromContentDispositionHeader)(e);if(n.includes("%"))try{n=decodeURIComponent(n)}catch(t){}if(/\.pdf$/i.test(n))return n}return null}function o(t,e){return 404===t||0===t&&e.startsWith("file:")?new s.MissingPDFException('Missing PDF "'+e+'".'):new s.UnexpectedResponseException("Unexpected server response ("+t+') while retrieving PDF "'+e+'".',t)}function a(t){return 200===t||206===t}Object.defineProperty(e,"__esModule",{value:!0}),e.createResponseStatusError=o,e.extractFilenameFromHeader=i,e.validateRangeRequestCapabilities=r,e.validateResponseStatus=a;var s=n(5),u=n(221)},function(t,e,n){"use strict";function r(t,e){return u(t)||s(t,e)||o(t,e)||i()}function i(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(t,e){if(t){if("string"==typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(t,e):void 0}}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function s(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}function u(t){if(Array.isArray(t))return t}function l(t){function e(t,e){return new RegExp("(?:^|;)\\s*"+t+'\\s*=\\s*([^";\\s][^;\\s]*|"(?:[^"\\\\]|\\\\"?)+"?)',e)}function n(t,e){if(t){if(!/^[\x00-\xFF]+$/.test(e))return e;try{var n=new TextDecoder(t,{fatal:!0}),r=Array.from(e,function(t){return 255&t.charCodeAt(0)});e=n.decode(new Uint8Array(r)),u=!1}catch(n){if(/^utf-?8$/i.test(t))try{e=decodeURIComponent(escape(e)),u=!1}catch(t){}}}return e}function i(t){return u&&/[\x80-\xff]/.test(t)&&(t=n("utf-8",t),u&&(t=n("iso-8859-1",t))),t}function o(t){if(t.startsWith('"')){for(var e=t.slice(1).split('\\"'),n=0;n<e.length;++n){var r=e[n].indexOf('"');-1!==r&&(e[n]=e[n].slice(0,r),e.length=n+1),e[n]=e[n].replace(/\\(.)/g,"$1")}t=e.join('"')}return t}function a(t){var e=t.indexOf("'");return-1===e?t:n(t.slice(0,e),t.slice(e+1).replace(/^[^']*'/,""))}function s(t){return!t.startsWith("=?")||/[\x00-\x19\x80-\xff]/.test(t)?t:t.replace(/=\?([\w-]*)\?([QqBb])\?((?:[^?]|\?(?!=))*)\?=/g,function(t,e,r,i){if("q"===r||"Q"===r)return i=i.replace(/_/g," "),i=i.replace(/=([0-9a-fA-F]{2})/g,function(t,e){return String.fromCharCode(parseInt(e,16))}),n(e,i);try{i=atob(i)}catch(t){}return n(e,i)})}var u=!0,l=e("filename\\*","i").exec(t);if(l){l=l[1];var c=o(l);return c=unescape(c),c=a(c),c=s(c),i(c)}if(l=function(t){for(var n,i=[],s=e("filename\\*((?!0\\d)\\d+)(\\*?)","ig");null!==(n=s.exec(t));){var u=n,l=r(u,4),c=l[1],f=l[2],d=l[3];if((c=parseInt(c,10))in i){if(0===c)break}else i[c]=[f,d]}for(var h=[],p=0;p<i.length&&p in i;++p){var g=r(i[p],2),m=g[0],v=g[1];v=o(v),m&&(v=unescape(v),0===p&&(v=a(v))),h.push(v)}return h.join("")}(t)){return i(s(l))}if(l=e("filename","i").exec(t)){l=l[1];var f=o(l);return f=s(f),i(f)}return""}Object.defineProperty(e,"__esModule",{value:!0}),e.getFilenameFromContentDispositionHeader=l},function(t,e,n){"use strict";function r(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}function i(t){return function(){var e=this,n=arguments;return new Promise(function(i,o){function a(t){r(u,i,o,a,s,"next",t)}function s(t){r(u,i,o,a,s,"throw",t)}var u=t.apply(e,n);a(void 0)})}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function s(t,e,n){return e&&a(t.prototype,e),n&&a(t,n),t}function u(t){var e=t.response;return"string"!=typeof e?e:(0,c.stringToBytes)(e).buffer}Object.defineProperty(e,"__esModule",{value:!0}),e.PDFNetworkStream=void 0;var l=function(t){return t&&t.__esModule?t:{default:t}}(n(2)),c=n(5),f=n(220),d=function(){function t(e,n){o(this,t),this.url=e,n=n||{},this.isHttp=/^https?:/i.test(e),this.httpHeaders=this.isHttp&&n.httpHeaders||{},this.withCredentials=n.withCredentials||!1,this.getXhr=n.getXhr||function(){return new XMLHttpRequest},this.currXhrId=0,this.pendingRequests=Object.create(null)}return s(t,[{key:"requestRange",value:function(t,e,n){var r={begin:t,end:e};for(var i in n)r[i]=n[i];return this.request(r)}},{key:"requestFull",value:function(t){return this.request(t)}},{key:"request",value:function(t){var e=this.getXhr(),n=this.currXhrId++,r=this.pendingRequests[n]={xhr:e};e.open("GET",this.url),e.withCredentials=this.withCredentials;for(var i in this.httpHeaders){var o=this.httpHeaders[i];void 0!==o&&e.setRequestHeader(i,o)}return this.isHttp&&"begin"in t&&"end"in t?(e.setRequestHeader("Range","bytes=".concat(t.begin,"-").concat(t.end-1)),r.expectedStatus=206):r.expectedStatus=200,e.responseType="arraybuffer",t.onError&&(e.onerror=function(n){t.onError(e.status)}),e.onreadystatechange=this.onStateChange.bind(this,n),e.onprogress=this.onProgress.bind(this,n),r.onHeadersReceived=t.onHeadersReceived,r.onDone=t.onDone,r.onError=t.onError,r.onProgress=t.onProgress,e.send(null),n}},{key:"onProgress",value:function(t,e){var n=this.pendingRequests[t];n&&n.onProgress&&n.onProgress(e)}},{key:"onStateChange",value:function(t,e){var n=this.pendingRequests[t];if(n){var r=n.xhr;if(r.readyState>=2&&n.onHeadersReceived&&(n.onHeadersReceived(),delete n.onHeadersReceived),4===r.readyState&&t in this.pendingRequests){if(delete this.pendingRequests[t],0===r.status&&this.isHttp)return void(n.onError&&n.onError(r.status));var i=r.status||200;if(!(200===i&&206===n.expectedStatus)&&i!==n.expectedStatus)return void(n.onError&&n.onError(r.status));var o=u(r);if(206===i){var a=r.getResponseHeader("Content-Range"),s=/bytes (\d+)-(\d+)\/(\d+)/.exec(a);n.onDone({begin:parseInt(s[1],10),chunk:o})}else o?n.onDone({begin:0,chunk:o}):n.onError&&n.onError(r.status)}}}},{key:"getRequestXhr",value:function(t){return this.pendingRequests[t].xhr}},{key:"isPendingRequest",value:function(t){return t in this.pendingRequests}},{key:"abortRequest",value:function(t){var e=this.pendingRequests[t].xhr;delete this.pendingRequests[t],e.abort()}}]),t}(),h=function(){function t(e){o(this,t),this._source=e,this._manager=new d(e.url,{httpHeaders:e.httpHeaders,withCredentials:e.withCredentials}),this._rangeChunkSize=e.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}return s(t,[{key:"_onRangeRequestReaderClosed",value:function(t){var e=this._rangeRequestReaders.indexOf(t);e>=0&&this._rangeRequestReaders.splice(e,1)}},{key:"getFullReader",value:function(){return(0,c.assert)(!this._fullRequestReader,"PDFNetworkStream.getFullReader can only be called once."),this._fullRequestReader=new p(this._manager,this._source),this._fullRequestReader}},{key:"getRangeReader",value:function(t,e){var n=new g(this._manager,t,e);return n.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(n),n}},{key:"cancelAllRequests",value:function(t){this._fullRequestReader&&this._fullRequestReader.cancel(t),this._rangeRequestReaders.slice(0).forEach(function(e){e.cancel(t)})}}]),t}();e.PDFNetworkStream=h;var p=function(){function t(e,n){o(this,t),this._manager=e;var r={onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=n.url,this._fullRequestId=e.requestFull(r),this._headersReceivedCapability=(0,c.createPromiseCapability)(),this._disableRange=n.disableRange||!1,this._contentLength=n.length,this._rangeChunkSize=n.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._isStreamingSupported=!1,this._isRangeSupported=!1,this._cachedChunks=[],this._requests=[],this._done=!1,this._storedError=void 0,this._filename=null,this.onProgress=null}return s(t,[{key:"_onHeadersReceived",value:function(){var t=this._fullRequestId,e=this._manager.getRequestXhr(t),n=function(t){return e.getResponseHeader(t)},r=(0,f.validateRangeRequestCapabilities)({getResponseHeader:n,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange}),i=r.allowRangeRequests,o=r.suggestedLength;i&&(this._isRangeSupported=!0),this._contentLength=o||this._contentLength,this._filename=(0,f.extractFilenameFromHeader)(n),this._isRangeSupported&&this._manager.abortRequest(t),this._headersReceivedCapability.resolve()}},{key:"_onDone",value:function(t){if(t)if(this._requests.length>0){var e=this._requests.shift();e.resolve({value:t.chunk,done:!1})}else this._cachedChunks.push(t.chunk);this._done=!0,this._cachedChunks.length>0||(this._requests.forEach(function(t){t.resolve({value:void 0,done:!0})}),this._requests=[])}},{key:"_onError",value:function(t){var e=this._url,n=(0,f.createResponseStatusError)(t,e);this._storedError=n,this._headersReceivedCapability.reject(n),this._requests.forEach(function(t){t.reject(n)}),this._requests=[],this._cachedChunks=[]}},{key:"_onProgress",value:function(t){this.onProgress&&this.onProgress({loaded:t.loaded,total:t.lengthComputable?t.total:this._contentLength})}},{key:"read",value:function(){function t(){return e.apply(this,arguments)}var e=i(l.default.mark(function t(){var e,n;return l.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!this._storedError){t.next=2;break}throw this._storedError;case 2:if(!(this._cachedChunks.length>0)){t.next=5;break}return e=this._cachedChunks.shift(),t.abrupt("return",{value:e,done:!1});case 5:if(!this._done){t.next=7;break}return t.abrupt("return",{value:void 0,done:!0});case 7:return n=(0,c.createPromiseCapability)(),this._requests.push(n),t.abrupt("return",n.promise);case 10:case"end":return t.stop()}},t,this)}));return t}()},{key:"cancel",value:function(t){this._done=!0,this._headersReceivedCapability.reject(t),this._requests.forEach(function(t){t.resolve({value:void 0,done:!0})}),this._requests=[],this._manager.isPendingRequest(this._fullRequestId)&&this._manager.abortRequest(this._fullRequestId),this._fullRequestReader=null}},{key:"filename",get:function(){return this._filename}},{key:"isRangeSupported",get:function(){return this._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}},{key:"contentLength",get:function(){return this._contentLength}},{key:"headersReady",get:function(){return this._headersReceivedCapability.promise}}]),t}(),g=function(){function t(e,n,r){o(this,t),this._manager=e;var i={onDone:this._onDone.bind(this),onProgress:this._onProgress.bind(this)};this._requestId=e.requestRange(n,r,i),this._requests=[],this._queuedChunk=null,this._done=!1,this.onProgress=null,this.onClosed=null}return s(t,[{key:"_close",value:function(){this.onClosed&&this.onClosed(this)}},{key:"_onDone",value:function(t){var e=t.chunk;if(this._requests.length>0){this._requests.shift().resolve({value:e,done:!1})}else this._queuedChunk=e;this._done=!0,this._requests.forEach(function(t){t.resolve({value:void 0,done:!0})}),this._requests=[],this._close()}},{key:"_onProgress",value:function(t){!this.isStreamingSupported&&this.onProgress&&this.onProgress({loaded:t.loaded})}},{key:"read",value:function(){function t(){return e.apply(this,arguments)}var e=i(l.default.mark(function t(){var e,n;return l.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(null===this._queuedChunk){t.next=4;break}return e=this._queuedChunk,this._queuedChunk=null,t.abrupt("return",{value:e,done:!1});case 4:if(!this._done){t.next=6;break}return t.abrupt("return",{value:void 0,done:!0});case 6:return n=(0,c.createPromiseCapability)(),this._requests.push(n),t.abrupt("return",n.promise);case 9:case"end":return t.stop()}},t,this)}));return t}()},{key:"cancel",value:function(t){this._done=!0,this._requests.forEach(function(t){t.resolve({value:void 0,done:!0})}),this._requests=[],this._manager.isPendingRequest(this._requestId)&&this._manager.abortRequest(this._requestId),this._close()}},{key:"isStreamingSupported",get:function(){return!1}}]),t}()},function(t,e,n){"use strict";function r(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}function i(t){return function(){var e=this,n=arguments;return new Promise(function(i,o){function a(t){r(u,i,o,a,s,"next",t)}function s(t){r(u,i,o,a,s,"throw",t)}var u=t.apply(e,n);a(void 0)})}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function s(t,e,n){return e&&a(t.prototype,e),n&&a(t,n),t}function u(t,e,n){return{method:"GET",headers:t,signal:n&&n.signal,mode:"cors",credentials:e?"include":"same-origin",redirect:"follow"}}function l(t){var e=new Headers;for(var n in t){var r=t[n];void 0!==r&&e.append(n,r)}return e}Object.defineProperty(e,"__esModule",{value:!0}),e.PDFFetchStream=void 0;var c=function(t){return t&&t.__esModule?t:{default:t}}(n(2)),f=n(5),d=n(220),h=function(){function t(e){o(this,t),this.source=e,this.isHttp=/^https?:/i.test(e.url),this.httpHeaders=this.isHttp&&e.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}return s(t,[{key:"getFullReader",value:function(){return(0,f.assert)(!this._fullRequestReader,"PDFFetchStream.getFullReader can only be called once."),this._fullRequestReader=new p(this),this._fullRequestReader}},{key:"getRangeReader",value:function(t,e){if(e<=this._progressiveDataLength)return null;var n=new g(this,t,e);return this._rangeRequestReaders.push(n),n}},{key:"cancelAllRequests",value:function(t){this._fullRequestReader&&this._fullRequestReader.cancel(t),this._rangeRequestReaders.slice(0).forEach(function(e){e.cancel(t)})}},{key:"_progressiveDataLength",get:function(){return this._fullRequestReader?this._fullRequestReader._loaded:0}}]),t}();e.PDFFetchStream=h;var p=function(){function t(e){var n=this;o(this,t),this._stream=e,this._reader=null,this._loaded=0,this._filename=null;var r=e.source;this._withCredentials=r.withCredentials||!1,this._contentLength=r.length,this._headersCapability=(0,f.createPromiseCapability)(),this._disableRange=r.disableRange||!1,this._rangeChunkSize=r.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),"undefined"!=typeof AbortController&&(this._abortController=new AbortController),this._isStreamingSupported=!r.disableStream,this._isRangeSupported=!r.disableRange,this._headers=l(this._stream.httpHeaders);var i=r.url;fetch(i,u(this._headers,this._withCredentials,this._abortController)).then(function(t){if(!(0,d.validateResponseStatus)(t.status))throw(0,d.createResponseStatusError)(t.status,i);n._reader=t.body.getReader(),n._headersCapability.resolve();var e=function(e){return t.headers.get(e)},r=(0,d.validateRangeRequestCapabilities)({getResponseHeader:e,isHttp:n._stream.isHttp,rangeChunkSize:n._rangeChunkSize,disableRange:n._disableRange}),o=r.allowRangeRequests,a=r.suggestedLength;n._isRangeSupported=o,n._contentLength=a||n._contentLength,n._filename=(0,d.extractFilenameFromHeader)(e),!n._isStreamingSupported&&n._isRangeSupported&&n.cancel(new f.AbortException("Streaming is disabled."))}).catch(this._headersCapability.reject),this.onProgress=null}return s(t,[{key:"read",value:function(){function t(){return e.apply(this,arguments)}var e=i(c.default.mark(function t(){var e,n,r,i;return c.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._headersCapability.promise;case 2:return t.next=4,this._reader.read();case 4:if(e=t.sent,n=e.value,!(r=e.done)){t.next=9;break}return t.abrupt("return",{value:n,done:r});case 9:return this._loaded+=n.byteLength,this.onProgress&&this.onProgress({loaded:this._loaded,total:this._contentLength}),i=new Uint8Array(n).buffer,t.abrupt("return",{value:i,done:!1});case 13:case"end":return t.stop()}},t,this)}));return t}()},{key:"cancel",value:function(t){this._reader&&this._reader.cancel(t),this._abortController&&this._abortController.abort()}},{key:"headersReady",get:function(){return this._headersCapability.promise}},{key:"filename",get:function(){return this._filename}},{key:"contentLength",get:function(){return this._contentLength}},{key:"isRangeSupported",get:function(){return this._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}}]),t}(),g=function(){function t(e,n,r){var i=this;o(this,t),this._stream=e,this._reader=null,this._loaded=0;var a=e.source;this._withCredentials=a.withCredentials||!1,this._readCapability=(0,f.createPromiseCapability)(),this._isStreamingSupported=!a.disableStream,"undefined"!=typeof AbortController&&(this._abortController=new AbortController),this._headers=l(this._stream.httpHeaders),this._headers.append("Range","bytes=".concat(n,"-").concat(r-1));var s=a.url;fetch(s,u(this._headers,this._withCredentials,this._abortController)).then(function(t){if(!(0,d.validateResponseStatus)(t.status))throw(0,d.createResponseStatusError)(t.status,s);i._readCapability.resolve(),i._reader=t.body.getReader()}).catch(function(t){if(!t||"AbortError"!==t.name)throw t}),this.onProgress=null}return s(t,[{key:"read",value:function(){function t(){return e.apply(this,arguments)}var e=i(c.default.mark(function t(){var e,n,r,i;return c.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._readCapability.promise;case 2:return t.next=4,this._reader.read();case 4:if(e=t.sent,n=e.value,!(r=e.done)){t.next=9;break}return t.abrupt("return",{value:n,done:r});case 9:return this._loaded+=n.byteLength,this.onProgress&&this.onProgress({loaded:this._loaded}),i=new Uint8Array(n).buffer,t.abrupt("return",{value:i,done:!1});case 13:case"end":return t.stop()}},t,this)}));return t}()},{key:"cancel",value:function(t){this._reader&&this._reader.cancel(t),this._abortController&&this._abortController.abort()}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}}]),t}()}])})}).call(exports,__webpack_require__(182).Buffer,__webpack_require__(169),__webpack_require__(20))},function(t,e,n){"use strict";var r=n(170),i=Object.prototype.hasOwnProperty,o=Array.isArray,a=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),s=function(t){for(;t.length>1;){var e=t.pop(),n=e.obj[e.prop];if(o(n)){for(var r=[],i=0;i<n.length;++i)void 0!==n[i]&&r.push(n[i]);e.obj[e.prop]=r}}},u=function(t,e){for(var n=e&&e.plainObjects?Object.create(null):{},r=0;r<t.length;++r)void 0!==t[r]&&(n[r]=t[r]);return n},l=function t(e,n,r){if(!n)return e;if("object"!=typeof n){if(o(e))e.push(n);else{if(!e||"object"!=typeof e)return[e,n];(r&&(r.plainObjects||r.allowPrototypes)||!i.call(Object.prototype,n))&&(e[n]=!0)}return e}if(!e||"object"!=typeof e)return[e].concat(n);var a=e;return o(e)&&!o(n)&&(a=u(e,r)),o(e)&&o(n)?(n.forEach(function(n,o){if(i.call(e,o)){var a=e[o];a&&"object"==typeof a&&n&&"object"==typeof n?e[o]=t(a,n,r):e.push(n)}else e[o]=n}),e):Object.keys(n).reduce(function(e,o){var a=n[o];return i.call(e,o)?e[o]=t(e[o],a,r):e[o]=a,e},a)},c=function(t,e){return Object.keys(e).reduce(function(t,n){return t[n]=e[n],t},t)},f=function(t,e,n){var r=t.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(t){return r}},d=function(t,e,n,i,o){if(0===t.length)return t;var s=t;if("symbol"==typeof t?s=Symbol.prototype.toString.call(t):"string"!=typeof t&&(s=String(t)),"iso-8859-1"===n)return escape(s).replace(/%u[0-9a-f]{4}/gi,function(t){return"%26%23"+parseInt(t.slice(2),16)+"%3B"});for(var u="",l=0;l<s.length;++l){var c=s.charCodeAt(l);45===c||46===c||95===c||126===c||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||o===r.RFC1738&&(40===c||41===c)?u+=s.charAt(l):c<128?u+=a[c]:c<2048?u+=a[192|c>>6]+a[128|63&c]:c<55296||c>=57344?u+=a[224|c>>12]+a[128|c>>6&63]+a[128|63&c]:(l+=1,c=65536+((1023&c)<<10|1023&s.charCodeAt(l)),u+=a[240|c>>18]+a[128|c>>12&63]+a[128|c>>6&63]+a[128|63&c])}return u},h=function(t){for(var e=[{obj:{o:t},prop:"o"}],n=[],r=0;r<e.length;++r)for(var i=e[r],o=i.obj[i.prop],a=Object.keys(o),u=0;u<a.length;++u){var l=a[u],c=o[l];"object"==typeof c&&null!==c&&-1===n.indexOf(c)&&(e.push({obj:o,prop:l}),n.push(c))}return s(e),t},p=function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},g=function(t){return!(!t||"object"!=typeof t)&&!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},m=function(t,e){return[].concat(t,e)},v=function(t,e){if(o(t)){for(var n=[],r=0;r<t.length;r+=1)n.push(e(t[r]));return n}return e(t)};t.exports={arrayToObject:u,assign:c,combine:m,compact:h,decode:f,encode:d,isBuffer:g,isRegExp:p,maybeMap:v,merge:l}},function(t,e,n){var r=n(171),i=n(111);t.exports={throttle:r,debounce:i}},,,,function(t,e){(function(e){t.exports=e}).call(e,{})},,,function(t,e,n){"use strict";(function(t){function e(t,e,n){t[e]||Object[r](t,e,{writable:!0,configurable:!0,value:n})}if(n(592),n(340),n(350),t._babelPolyfill)throw new Error("only one instance of babel-polyfill is allowed");t._babelPolyfill=!0;var r="defineProperty";e(String.prototype,"padLeft","".padStart),e(String.prototype,"padRight","".padEnd),"pop,reverse,shift,keys,values,entries,indexOf,every,some,forEach,map,filter,find,findIndex,includes,join,slice,concat,push,splice,unshift,sort,lastIndexOf,reduce,reduceRight,copyWithin,fill".split(",").forEach(function(t){[][t]&&e(Array,t,Function.call.bind([][t]))})}).call(e,n(20))},function(t,e,n){"use strict";function r(t){this.rules=null,this._messages=c.a,this.define(t)}Object.defineProperty(e,"__esModule",{value:!0});var i=n(181),o=n.n(i),a=n(84),s=n.n(a),u=n(12),l=n(277),c=n(266);r.prototype={messages:function(t){return t&&(this._messages=n.i(u.a)(n.i(c.b)(),t)),this._messages},define:function(t){if(!t)throw new Error("Cannot configure a schema with no rules");if("object"!==(void 0===t?"undefined":s()(t))||Array.isArray(t))throw new Error("Rules must be an object");this.rules={};var e=void 0,n=void 0;for(e in t)t.hasOwnProperty(e)&&(n=t[e],this.rules[e]=Array.isArray(n)?n:[n])},validate:function(t){function e(t){var e=void 0,n=void 0,r=[],i={};for(e=0;e<t.length;e++)!function(t){Array.isArray(t)?r=r.concat.apply(r,t):r.push(t)}(t[e]);if(r.length)for(e=0;e<r.length;e++)n=r[e].field,i[n]=i[n]||[],i[n].push(r[e]);else r=null,i=null;h(r,i)}var i=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=arguments[2],f=t,d=a,h=l;if("function"==typeof d&&(h=d,d={}),!this.rules||0===Object.keys(this.rules).length)return void(h&&h());if(d.messages){var p=this.messages();p===c.a&&(p=n.i(c.b)()),n.i(u.a)(p,d.messages),d.messages=p}else d.messages=this.messages();var g=void 0,m=void 0,v={};(d.keys||Object.keys(this.rules)).forEach(function(e){g=i.rules[e],m=f[e],g.forEach(function(n){var r=n;"function"==typeof r.transform&&(f===t&&(f=o()({},f)),m=f[e]=r.transform(m)),r="function"==typeof r?{validator:r}:o()({},r),r.validator=i.getValidationMethod(r),r.field=e,r.fullField=r.fullField||e,r.type=i.getType(r),r.validator&&(v[e]=v[e]||[],v[e].push({rule:r,value:m,source:f,field:e}))})});var y={};n.i(u.b)(v,d,function(t,e){function i(t,e){return o()({},e,{fullField:l.fullField+"."+t})}function a(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],s=a;if(Array.isArray(s)||(s=[s]),s.length&&n.i(u.c)("async-validator:",s),s.length&&l.message&&(s=[].concat(l.message)),s=s.map(n.i(u.d)(l)),d.first&&s.length)return y[l.field]=1,e(s);if(c){if(l.required&&!t.value)return s=l.message?[].concat(l.message).map(n.i(u.d)(l)):d.error?[d.error(l,n.i(u.e)(d.messages.required,l.field))]:[],e(s);var f={};if(l.defaultField)for(var h in t.value)t.value.hasOwnProperty(h)&&(f[h]=l.defaultField);f=o()({},f,t.rule.fields);for(var p in f)if(f.hasOwnProperty(p)){var g=Array.isArray(f[p])?f[p]:[f[p]];f[p]=g.map(i.bind(null,p))}var m=new r(f);m.messages(d.messages),t.rule.options&&(t.rule.options.messages=d.messages,t.rule.options.error=d.error),m.validate(t.value,t.rule.options||d,function(t){e(t&&t.length?s.concat(t):t)})}else e(s)}var l=t.rule,c=!("object"!==l.type&&"array"!==l.type||"object"!==s()(l.fields)&&"object"!==s()(l.defaultField));c=c&&(l.required||!l.required&&t.value),l.field=t.field;var f=l.validator(l,t.value,a,t.source,d);f&&f.then&&f.then(function(){return a()},function(t){return a(t)})},function(t){e(t)})},getType:function(t){if(void 0===t.type&&t.pattern instanceof RegExp&&(t.type="pattern"),"function"!=typeof t.validator&&t.type&&!l.a.hasOwnProperty(t.type))throw new Error(n.i(u.e)("Unknown rule type %s",t.type));return t.type||"string"},getValidationMethod:function(t){if("function"==typeof t.validator)return t.validator;var e=Object.keys(t),n=e.indexOf("message");return-1!==n&&e.splice(n,1),1===e.length&&"required"===e[0]?l.a.required:l.a[this.getType(t)]||!1}},r.register=function(t,e){if("function"!=typeof e)throw new Error("Cannot register a validator by type, validator is not a function");l.a[t]=e},r.messages=c.a,e.default=r},function(t,e,n){"use strict";function r(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}e.b=r,n.d(e,"a",function(){return i});var i=r()},function(t,e,n){"use strict";function r(t,e,n,r,a){t[o]=Array.isArray(t[o])?t[o]:[],-1===t[o].indexOf(e)&&r.push(i.e(a.messages[o],t.fullField,t[o].join(", ")))}var i=n(12),o="enum";e.a=r},function(t,e,n){"use strict";function r(t,e,n,r,o){if(t.pattern)if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(e)||r.push(i.e(o.messages.pattern.mismatch,t.fullField,e,t.pattern));else if("string"==typeof t.pattern){var a=new RegExp(t.pattern);a.test(e)||r.push(i.e(o.messages.pattern.mismatch,t.fullField,e,t.pattern))}}var i=n(12);e.a=r},function(t,e,n){"use strict";function r(t,e,n,r,o){var a="number"==typeof t.len,s="number"==typeof t.min,u="number"==typeof t.max,l=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=e,f=null,d="number"==typeof e,h="string"==typeof e,p=Array.isArray(e);if(d?f="number":h?f="string":p&&(f="array"),!f)return!1;p&&(c=e.length),h&&(c=e.replace(l,"_").length),a?c!==t.len&&r.push(i.e(o.messages[f].len,t.fullField,t.len)):s&&!u&&c<t.min?r.push(i.e(o.messages[f].min,t.fullField,t.min)):u&&!s&&c>t.max?r.push(i.e(o.messages[f].max,t.fullField,t.max)):s&&u&&(c<t.min||c>t.max)&&r.push(i.e(o.messages[f].range,t.fullField,t.min,t.max))}var i=n(12);e.a=r},function(t,e,n){"use strict";function r(t,e,r,i,u){if(t.required&&void 0===e)return void n.i(s.a)(t,e,r,i,u);var c=["integer","float","array","regexp","object","method","email","number","date","url","hex"],f=t.type;c.indexOf(f)>-1?l[f](e)||i.push(a.e(u.messages.types[f],t.fullField,t.type)):f&&(void 0===e?"undefined":o()(e))!==t.type&&i.push(a.e(u.messages.types[f],t.fullField,t.type))}var i=n(84),o=n.n(i),a=n(12),s=n(173),u={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},l={integer:function(t){return l.number(t)&&parseInt(t,10)===t},float:function(t){return l.number(t)&&!l.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch(t){return!1}},date:function(t){return"function"==typeof t.getTime&&"function"==typeof t.getMonth&&"function"==typeof t.getYear},number:function(t){return!isNaN(t)&&"number"==typeof t},object:function(t){return"object"===(void 0===t?"undefined":o()(t))&&!l.array(t)},method:function(t){return"function"==typeof t},email:function(t){return"string"==typeof t&&!!t.match(u.email)&&t.length<255},url:function(t){return"string"==typeof t&&!!t.match(u.url)},hex:function(t){return"string"==typeof t&&!!t.match(u.hex)}};e.a=r},function(t,e,n){"use strict";function r(t,e,n,r,o){(/^\s+$/.test(e)||""===e)&&r.push(i.e(o.messages.whitespace,t.fullField))}var i=n(12);e.a=r},function(t,e,n){"use strict";function r(t,e,r,a,s){var u=[];if(t.required||!t.required&&a.hasOwnProperty(t.field)){if(n.i(o.f)(e,"array")&&!t.required)return r();i.a.required(t,e,a,u,s,"array"),n.i(o.f)(e,"array")||(i.a.type(t,e,a,u,s),i.a.range(t,e,a,u,s))}r(u)}var i=n(16),o=n(12);e.a=r},function(t,e,n){"use strict";function r(t,e,r,a,s){var u=[];if(t.required||!t.required&&a.hasOwnProperty(t.field)){if(n.i(i.f)(e)&&!t.required)return r();o.a.required(t,e,a,u,s),void 0!==e&&o.a.type(t,e,a,u,s)}r(u)}var i=n(12),o=n(16);e.a=r},function(t,e,n){"use strict";function r(t,e,r,a,s){var u=[];if(t.required||!t.required&&a.hasOwnProperty(t.field)){if(n.i(o.f)(e)&&!t.required)return r();if(i.a.required(t,e,a,u,s),!n.i(o.f)(e)){var l=void 0;l="number"==typeof e?new Date(e):e,i.a.type(t,l,a,u,s),l&&i.a.range(t,l.getTime(),a,u,s)}}r(u)}var i=n(16),o=n(12);e.a=r},function(t,e,n){"use strict";function r(t,e,r,s,u){var l=[];if(t.required||!t.required&&s.hasOwnProperty(t.field)){if(n.i(o.f)(e)&&!t.required)return r();i.a.required(t,e,s,l,u),e&&i.a[a](t,e,s,l,u)}r(l)}var i=n(16),o=n(12),a="enum";e.a=r},function(t,e,n){"use strict";function r(t,e,r,a,s){var u=[];if(t.required||!t.required&&a.hasOwnProperty(t.field)){if(n.i(o.f)(e)&&!t.required)return r();i.a.required(t,e,a,u,s),void 0!==e&&(i.a.type(t,e,a,u,s),i.a.range(t,e,a,u,s))}r(u)}var i=n(16),o=n(12);e.a=r},function(t,e,n){"use strict";var r=n(285),i=n(279),o=n(280),a=n(273),s=n(283),u=n(278),l=n(276),c=n(272),f=n(281),d=n(275),h=n(282),p=n(274),g=n(284),m=n(286);e.a={string:r.a,method:i.a,number:o.a,boolean:a.a,regexp:s.a,integer:u.a,float:l.a,array:c.a,object:f.a,enum:d.a,pattern:h.a,date:p.a,url:m.a,hex:m.a,email:m.a,required:g.a}},function(t,e,n){"use strict";function r(t,e,r,a,s){var u=[];if(t.required||!t.required&&a.hasOwnProperty(t.field)){if(n.i(o.f)(e)&&!t.required)return r();i.a.required(t,e,a,u,s),void 0!==e&&(i.a.type(t,e,a,u,s),i.a.range(t,e,a,u,s))}r(u)}var i=n(16),o=n(12);e.a=r},function(t,e,n){"use strict";function r(t,e,r,a,s){var u=[];if(t.required||!t.required&&a.hasOwnProperty(t.field)){if(n.i(o.f)(e)&&!t.required)return r();i.a.required(t,e,a,u,s),void 0!==e&&i.a.type(t,e,a,u,s)}r(u)}var i=n(16),o=n(12);e.a=r},function(t,e,n){"use strict";function r(t,e,r,a,s){var u=[];if(t.required||!t.required&&a.hasOwnProperty(t.field)){if(n.i(o.f)(e)&&!t.required)return r();i.a.required(t,e,a,u,s),void 0!==e&&(i.a.type(t,e,a,u,s),i.a.range(t,e,a,u,s))}r(u)}var i=n(16),o=n(12);e.a=r},function(t,e,n){"use strict";function r(t,e,r,a,s){var u=[];if(t.required||!t.required&&a.hasOwnProperty(t.field)){if(n.i(o.f)(e)&&!t.required)return r();i.a.required(t,e,a,u,s),void 0!==e&&i.a.type(t,e,a,u,s)}r(u)}var i=n(16),o=n(12);e.a=r},function(t,e,n){"use strict";function r(t,e,r,a,s){var u=[];if(t.required||!t.required&&a.hasOwnProperty(t.field)){if(n.i(o.f)(e,"string")&&!t.required)return r();i.a.required(t,e,a,u,s),n.i(o.f)(e,"string")||i.a.pattern(t,e,a,u,s)}r(u)}var i=n(16),o=n(12);e.a=r},function(t,e,n){"use strict";function r(t,e,r,a,s){var u=[];if(t.required||!t.required&&a.hasOwnProperty(t.field)){if(n.i(o.f)(e)&&!t.required)return r();i.a.required(t,e,a,u,s),n.i(o.f)(e)||i.a.type(t,e,a,u,s)}r(u)}var i=n(16),o=n(12);e.a=r},function(t,e,n){"use strict";function r(t,e,n,r,i){var s=[],u=Array.isArray(e)?"array":void 0===e?"undefined":o()(e);a.a.required(t,e,r,s,i,u),n(s)}var i=n(84),o=n.n(i),a=n(16);e.a=r},function(t,e,n){"use strict";function r(t,e,r,a,s){var u=[];if(t.required||!t.required&&a.hasOwnProperty(t.field)){if(n.i(o.f)(e,"string")&&!t.required)return r();i.a.required(t,e,a,u,s,"string"),n.i(o.f)(e,"string")||(i.a.type(t,e,a,u,s),i.a.range(t,e,a,u,s),i.a.pattern(t,e,a,u,s),!0===t.whitespace&&i.a.whitespace(t,e,a,u,s))}r(u)}var i=n(16),o=n(12);e.a=r},function(t,e,n){"use strict";function r(t,e,r,a,s){var u=t.type,l=[];if(t.required||!t.required&&a.hasOwnProperty(t.field)){if(n.i(o.f)(e,u)&&!t.required)return r();i.a.required(t,e,a,l,s,u),n.i(o.f)(e,u)||i.a.type(t,e,a,l,s)}r(l)}var i=n(16),o=n(12);e.a=r},function(t,e,n){"use strict";function r(t){var e=new a(t),n=o(a.prototype.request,e);return i.extend(n,a.prototype,e),i.extend(n,e),n}var i=n(21),o=n(179),a=n(289),s=n(112),u=r(s);u.Axios=a,u.create=function(t){return r(i.merge(s,t))},u.Cancel=n(176),u.CancelToken=n(288),u.isCancel=n(177),u.all=function(t){return Promise.all(t)},u.spread=n(303),t.exports=u,t.exports.default=u},function(t,e,n){"use strict";function r(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise(function(t){e=t});var n=this;t(function(t){n.reason||(n.reason=new i(t),e(n.reason))})}var i=n(176);r.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},r.source=function(){var t;return{token:new r(function(e){t=e}),cancel:t}},t.exports=r},function(t,e,n){"use strict";function r(t){this.defaults=t,this.interceptors={request:new a,response:new a}}var i=n(112),o=n(21),a=n(290),s=n(291),u=n(299),l=n(297);r.prototype.request=function(t){"string"==typeof t&&(t=o.merge({url:arguments[0]},arguments[1])),t=o.merge(i,this.defaults,{method:"get"},t),t.baseURL&&!u(t.url)&&(t.url=l(t.baseURL,t.url));var e=[s,void 0],n=Promise.resolve(t);for(this.interceptors.request.forEach(function(t){e.unshift(t.fulfilled,t.rejected)}),this.interceptors.response.forEach(function(t){e.push(t.fulfilled,t.rejected)});e.length;)n=n.then(e.shift(),e.shift());return n},o.forEach(["delete","get","head"],function(t){r.prototype[t]=function(e,n){return this.request(o.merge(n||{},{method:t,url:e}))}}),o.forEach(["post","put","patch"],function(t){r.prototype[t]=function(e,n,r){return this.request(o.merge(r||{},{method:t,url:e,data:n}))}}),t.exports=r},function(t,e,n){"use strict";function r(){this.handlers=[]}var i=n(21);r.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},r.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},r.prototype.forEach=function(t){i.forEach(this.handlers,function(e){null!==e&&t(e)})},t.exports=r},function(t,e,n){"use strict";function r(t){t.cancelToken&&t.cancelToken.throwIfRequested()}var i=n(21),o=n(294),a=n(177),s=n(112);t.exports=function(t){return r(t),t.headers=t.headers||{},t.data=o(t.data,t.headers,t.transformRequest),t.headers=i.merge(t.headers.common||{},t.headers[t.method]||{},t.headers||{}),i.forEach(["delete","get","head","post","put","patch","common"],function(e){delete t.headers[e]}),(t.adapter||s.adapter)(t).then(function(e){return r(t),e.data=o(e.data,e.headers,t.transformResponse),e},function(e){return a(e)||(r(t),e&&e.response&&(e.response.data=o(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)})}},function(t,e,n){"use strict";t.exports=function(t,e,n,r){return t.config=e,n&&(t.code=n),t.response=r,t}},function(t,e,n){"use strict";var r=n(178);t.exports=function(t,e,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?e(r("Request failed with status code "+n.status,n.config,null,n)):t(n)}},function(t,e,n){"use strict";var r=n(21);t.exports=function(t,e,n){return r.forEach(n,function(n){t=n(t,e)}),t}},function(t,e,n){"use strict";function r(){this.message="String contains an invalid character"}function i(t){for(var e,n,i=String(t),a="",s=0,u=o;i.charAt(0|s)||(u="=",s%1);a+=u.charAt(63&e>>8-s%1*8)){if((n=i.charCodeAt(s+=.75))>255)throw new r;e=e<<8|n}return a}var o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";r.prototype=new Error,r.prototype.code=5,r.prototype.name="InvalidCharacterError",t.exports=i},function(t,e,n){"use strict";function r(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var i=n(21);t.exports=function(t,e,n){if(!e)return t;var o;if(n)o=n(e);else if(i.isURLSearchParams(e))o=e.toString();else{var a=[];i.forEach(e,function(t,e){null!==t&&void 0!==t&&(i.isArray(t)&&(e+="[]"),i.isArray(t)||(t=[t]),i.forEach(t,function(t){i.isDate(t)?t=t.toISOString():i.isObject(t)&&(t=JSON.stringify(t)),a.push(r(e)+"="+r(t))}))}),o=a.join("&")}return o&&(t+=(-1===t.indexOf("?")?"?":"&")+o),t}},function(t,e,n){"use strict";t.exports=function(t,e){return t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,"")}},function(t,e,n){"use strict";var r=n(21);t.exports=r.isStandardBrowserEnv()?function(){return{write:function(t,e,n,i,o,a){var s=[];s.push(t+"="+encodeURIComponent(e)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(i)&&s.push("path="+i),r.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},function(t,e,n){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},function(t,e,n){"use strict";var r=n(21);t.exports=r.isStandardBrowserEnv()?function(){function t(t){var e=t;return n&&(i.setAttribute("href",e),e=i.href),i.setAttribute("href",e),{href:i.href,protocol:i.protocol?i.protocol.replace(/:$/,""):"",host:i.host,search:i.search?i.search.replace(/^\?/,""):"",hash:i.hash?i.hash.replace(/^#/,""):"",hostname:i.hostname,port:i.port,pathname:"/"===i.pathname.charAt(0)?i.pathname:"/"+i.pathname}}var e,n=/(msie|trident)/i.test(navigator.userAgent),i=document.createElement("a");return e=t(window.location.href),function(n){var i=r.isString(n)?t(n):n;return i.protocol===e.protocol&&i.host===e.host}}():function(){return function(){return!0}}()},function(t,e,n){"use strict";var r=n(21);t.exports=function(t,e){r.forEach(t,function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])})}},function(t,e,n){"use strict";var r=n(21);t.exports=function(t){var e,n,i,o={};return t?(r.forEach(t.split("\n"),function(t){i=t.indexOf(":"),e=r.trim(t.substr(0,i)).toLowerCase(),n=r.trim(t.substr(i+1)),e&&(o[e]=o[e]?o[e]+", "+n:n)}),o):o}},function(t,e,n){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){(function(e){!function(e){"use strict";function n(t,e,n,r){var o=e&&e.prototype instanceof i?e:i,a=Object.create(o.prototype),s=new h(r||[]);return a._invoke=l(t,n,s),a}function r(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}function i(){}function o(){}function a(){}function s(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function u(t){function n(e,i,o,a){var s=r(t[e],t,i);if("throw"!==s.type){var u=s.arg,l=u.value;return l&&"object"==typeof l&&y.call(l,"__await")?Promise.resolve(l.__await).then(function(t){n("next",t,o,a)},function(t){n("throw",t,o,a)}):Promise.resolve(l).then(function(t){u.value=t,o(u)},a)}a(s.arg)}function i(t,e){function r(){return new Promise(function(r,i){n(t,e,r,i)})}return o=o?o.then(r,r):r()}"object"==typeof e.process&&e.process.domain&&(n=e.process.domain.bind(n));var o;this._invoke=i}function l(t,e,n){var i=C;return function(o,a){if(i===T)throw new Error("Generator is already running");if(i===A){if("throw"===o)throw a;return g()}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var u=c(s,n);if(u){if(u===O)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===C)throw i=A,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=T;var l=r(t,e,n);if("normal"===l.type){if(i=n.done?A:E,l.arg===O)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i=A,n.method="throw",n.arg=l.arg)}}}function c(t,e){var n=t.iterator[e.method];if(n===m){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=m,c(t,e),"throw"===e.method))return O;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return O}var i=r(n,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,O;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=m),e.delegate=null,O):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,O)}function f(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function d(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function h(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(f,this),this.reset(!0)}function p(t){if(t){var e=t[_];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function e(){for(;++n<t.length;)if(y.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=m,e.done=!0,e};return r.next=r}}return{next:g}}function g(){return{value:m,done:!0}}var m,v=Object.prototype,y=v.hasOwnProperty,b="function"==typeof Symbol?Symbol:{},_=b.iterator||"@@iterator",w=b.asyncIterator||"@@asyncIterator",x=b.toStringTag||"@@toStringTag",k="object"==typeof t,S=e.regeneratorRuntime;if(S)return void(k&&(t.exports=S));S=e.regeneratorRuntime=k?t.exports:{},S.wrap=n;var C="suspendedStart",E="suspendedYield",T="executing",A="completed",O={},P={};P[_]=function(){return this};var N=Object.getPrototypeOf,D=N&&N(N(p([])));D&&D!==v&&y.call(D,_)&&(P=D);var M=a.prototype=i.prototype=Object.create(P);o.prototype=M.constructor=a,a.constructor=o,a[x]=o.displayName="GeneratorFunction",S.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===o||"GeneratorFunction"===(e.displayName||e.name))},S.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,a):(t.__proto__=a,x in t||(t[x]="GeneratorFunction")),t.prototype=Object.create(M),t},S.awrap=function(t){return{__await:t}},s(u.prototype),u.prototype[w]=function(){return this},S.AsyncIterator=u,S.async=function(t,e,r,i){var o=new u(n(t,e,r,i));return S.isGeneratorFunction(e)?o:o.next().then(function(t){return t.done?t.value:o.next()})},s(M),M[x]="Generator",M[_]=function(){return this},M.toString=function(){return"[object Generator]"},S.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},S.values=p,h.prototype={constructor:h,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=m,this.done=!1,this.delegate=null,this.method="next",this.arg=m,this.tryEntries.forEach(d),!t)for(var e in this)"t"===e.charAt(0)&&y.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=m)},stop:function(){this.done=!0;var t=this.tryEntries[0],e=t.completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){function e(e,r){return o.type="throw",o.arg=t,n.next=e,r&&(n.method="next",n.arg=m),!!r}if(this.done)throw t;for(var n=this,r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],o=i.completion;if("root"===i.tryLoc)return e("end");if(i.tryLoc<=this.prev){var a=y.call(i,"catchLoc"),s=y.call(i,"finallyLoc");if(a&&s){if(this.prev<i.catchLoc)return e(i.catchLoc,!0);if(this.prev<i.finallyLoc)return e(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return e(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return e(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&y.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=t,o.arg=e,i?(this.method="next",this.next=i.finallyLoc,O):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),O},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),d(n),O}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;d(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:p(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=m),O}}}("object"==typeof e?e:"object"==typeof window?window:"object"==typeof self?self:this)}).call(e,n(20))},function(t,e,n){t.exports={default:n(353),__esModule:!0}},function(t,e,n){t.exports={default:n(354),__esModule:!0}},function(t,e,n){t.exports={default:n(355),__esModule:!0}},function(t,e,n){t.exports={default:n(356),__esModule:!0}},function(t,e,n){t.exports={default:n(357),__esModule:!0}},function(t,e,n){"use strict";function r(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function i(t){var e=r(t),n=e[0],i=e[1];return 3*(n+i)/4-i}function o(t,e,n){return 3*(e+n)/4-n}function a(t){var e,n,i=r(t),a=i[0],s=i[1],u=new d(o(t,a,s)),l=0,c=s>0?a-4:a;for(n=0;n<c;n+=4)e=f[t.charCodeAt(n)]<<18|f[t.charCodeAt(n+1)]<<12|f[t.charCodeAt(n+2)]<<6|f[t.charCodeAt(n+3)],u[l++]=e>>16&255,u[l++]=e>>8&255,u[l++]=255&e;return 2===s&&(e=f[t.charCodeAt(n)]<<2|f[t.charCodeAt(n+1)]>>4,u[l++]=255&e),1===s&&(e=f[t.charCodeAt(n)]<<10|f[t.charCodeAt(n+1)]<<4|f[t.charCodeAt(n+2)]>>2,u[l++]=e>>8&255,u[l++]=255&e),u}function s(t){return c[t>>18&63]+c[t>>12&63]+c[t>>6&63]+c[63&t]}function u(t,e,n){for(var r,i=[],o=e;o<n;o+=3)r=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(255&t[o+2]),i.push(s(r));return i.join("")}function l(t){for(var e,n=t.length,r=n%3,i=[],o=0,a=n-r;o<a;o+=16383)i.push(u(t,o,o+16383>a?a:o+16383));return 1===r?(e=t[n-1],i.push(c[e>>2]+c[e<<4&63]+"==")):2===r&&(e=(t[n-2]<<8)+t[n-1],i.push(c[e>>10]+c[e>>4&63]+c[e<<2&63]+"=")),i.join("")}e.byteLength=i,e.toByteArray=a,e.fromByteArray=l;for(var c=[],f=[],d="undefined"!=typeof Uint8Array?Uint8Array:Array,h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",p=0,g=h.length;p<g;++p)c[p]=h[p],f[h.charCodeAt(p)]=p;f["-".charCodeAt(0)]=62,f["_".charCodeAt(0)]=63},function(t,e,n){"use strict";var r=n(67),i=n(348),o=i(r("String.prototype.indexOf"));t.exports=function(t,e){var n=r(t,!!e);return"function"==typeof n&&o(t,".prototype.")>-1?i(n):n}},function(t,e,n){"use strict";var r=n(168),i=n(67),o=n(930),a=i("%TypeError%"),s=i("%Function.prototype.apply%"),u=i("%Function.prototype.call%"),l=i("%Reflect.apply%",!0)||r.call(u,s),c=i("%Object.defineProperty%",!0),f=i("%Math.max%");if(c)try{c({},"a",{value:1})}catch(t){c=null}t.exports=function(t){if("function"!=typeof t)throw new a("a function is required");var e=l(r,u,arguments);return o(e,1+f(0,t.length-(arguments.length-1)),!0)};var d=function(){return l(r,s,arguments)};c?c(t.exports,"apply",{value:d}):t.exports.apply=d},function(t,e,n){/*!
  8. * clipboard.js v2.0.11
  9. * https://clipboardjs.com/
  10. *
  11. * Licensed MIT © Zeno Rocha
  12. */
  13. !function(e,n){t.exports=n()}(0,function(){function t(r){if(n[r])return n[r].exports;var i=n[r]={exports:{}};return e[r](i,i.exports,t),i.exports}return e={686:function(t,e,n){"use strict";function r(t){try{return document.execCommand(t)}catch(t){return}}function i(t,e){var n,i,t=(n=t,i="rtl"===document.documentElement.getAttribute("dir"),(t=document.createElement("textarea")).style.fontSize="12pt",t.style.border="0",t.style.padding="0",t.style.margin="0",t.style.position="absolute",t.style[i?"right":"left"]="-9999px",i=window.pageYOffset||document.documentElement.scrollTop,t.style.top="".concat(i,"px"),t.setAttribute("readonly",""),t.value=n,t);return e.container.appendChild(t),e=p()(t),r("copy"),t.remove(),e}function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function l(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var n,r=c(t);return n=e?(n=c(this).constructor,Reflect.construct(r,arguments,n)):r.apply(this,arguments),r=this,!(n=n)||"object"!==a(n)&&"function"!=typeof n?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(r):n}}function c(t){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function f(t,e){if(t="data-clipboard-".concat(t),e.hasAttribute(t))return e.getAttribute(t)}n.d(e,{default:function(){return y}});var e=n(279),d=n.n(e),e=n(370),h=n.n(e),e=n(817),p=n.n(e),g=function(t){return t=p()(t),r("cut"),t},m=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{container:document.body},n="";return"string"==typeof t?n=i(t,e):t instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(null==t?void 0:t.type)?n=i(t.value,e):(n=p()(t),r("copy")),n},v=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=t.action,n=void 0===e?"copy":e,r=t.container,e=t.target,t=t.text;if("copy"!==n&&"cut"!==n)throw new Error('Invalid "action" value, use either "copy" or "cut"');if(void 0!==e){if(!e||"object"!==o(e)||1!==e.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===n&&e.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===n&&(e.hasAttribute("readonly")||e.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes')}return t?m(t,{container:r}):e?"cut"===n?g(e):m(e,{container:r}):void 0},y=function(){function t(e,n){var r;return function(e){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this),(r=i.call(this)).resolveOptions(n),r.listenClick(e),r}!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&u(t,e)}(t,d());var e,n,r,i=l(t);return e=t,r=[{key:"copy",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{container:document.body};return m(t,e)}},{key:"cut",value:function(t){return g(t)}},{key:"isSupported",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t="string"==typeof t?[t]:t,e=!!document.queryCommandSupported;return t.forEach(function(t){e=e&&!!document.queryCommandSupported(t)}),e}}],(n=[{key:"resolveOptions",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof t.action?t.action:this.defaultAction,this.target="function"==typeof t.target?t.target:this.defaultTarget,this.text="function"==typeof t.text?t.text:this.defaultText,this.container="object"===a(t.container)?t.container:document.body}},{key:"listenClick",value:function(t){var e=this;this.listener=h()(t,"click",function(t){return e.onClick(t)})}},{key:"onClick",value:function(t){var e=t.delegateTarget||t.currentTarget,n=this.action(e)||"copy",t=v({action:n,container:this.container,target:this.target(e),text:this.text(e)});this.emit(t?"success":"error",{action:n,text:t,trigger:e,clearSelection:function(){e&&e.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(t){return f("action",t)}},{key:"defaultTarget",value:function(t){if(t=f("target",t))return document.querySelector(t)}},{key:"defaultText",value:function(t){return f("text",t)}},{key:"destroy",value:function(){this.listener.destroy()}}])&&s(e.prototype,n),r&&s(e,r),t}()},828:function(t){var e;"undefined"==typeof Element||Element.prototype.matches||((e=Element.prototype).matches=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector),t.exports=function(t,e){for(;t&&9!==t.nodeType;){if("function"==typeof t.matches&&t.matches(e))return t;t=t.parentNode}}},438:function(t,e,n){function r(t,e,n,r,o){var a=function(t,e,n,r){return function(n){n.delegateTarget=i(n.target,e),n.delegateTarget&&r.call(t,n)}}.apply(this,arguments);return t.addEventListener(n,a,o),{destroy:function(){t.removeEventListener(n,a,o)}}}var i=n(828);t.exports=function(t,e,n,i,o){return"function"==typeof t.addEventListener?r.apply(null,arguments):"function"==typeof n?r.bind(null,document).apply(null,arguments):("string"==typeof t&&(t=document.querySelectorAll(t)),Array.prototype.map.call(t,function(t){return r(t,e,n,i,o)}))}},879:function(t,e){e.node=function(t){return void 0!==t&&t instanceof HTMLElement&&1===t.nodeType},e.nodeList=function(t){var n=Object.prototype.toString.call(t);return void 0!==t&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in t&&(0===t.length||e.node(t[0]))},e.string=function(t){return"string"==typeof t||t instanceof String},e.fn=function(t){return"[object Function]"===Object.prototype.toString.call(t)}},370:function(t,e,n){var r=n(879),i=n(438);t.exports=function(t,e,n){if(!t&&!e&&!n)throw new Error("Missing required arguments");if(!r.string(e))throw new TypeError("Second argument must be a String");if(!r.fn(n))throw new TypeError("Third argument must be a Function");if(r.node(t))return l=e,c=n,(u=t).addEventListener(l,c),{destroy:function(){u.removeEventListener(l,c)}};if(r.nodeList(t))return o=t,a=e,s=n,Array.prototype.forEach.call(o,function(t){t.addEventListener(a,s)}),{destroy:function(){Array.prototype.forEach.call(o,function(t){t.removeEventListener(a,s)})}};if(r.string(t))return t=t,e=e,n=n,i(document.body,t,e,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList");var o,a,s,u,l,c}},817:function(t){t.exports=function(t){var e,n="SELECT"===t.nodeName?(t.focus(),t.value):"INPUT"===t.nodeName||"TEXTAREA"===t.nodeName?((e=t.hasAttribute("readonly"))||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),e||t.removeAttribute("readonly"),t.value):(t.hasAttribute("contenteditable")&&t.focus(),n=window.getSelection(),(e=document.createRange()).selectNodeContents(t),n.removeAllRanges(),n.addRange(e),n.toString());return n}},279:function(t){function e(){}e.prototype={on:function(t,e,n){var r=this.e||(this.e={});return(r[t]||(r[t]=[])).push({fn:e,ctx:n}),this},once:function(t,e,n){function r(){i.off(t,r),e.apply(n,arguments)}var i=this;return r._=e,this.on(t,r,n)},emit:function(t){for(var e=[].slice.call(arguments,1),n=((this.e||(this.e={}))[t]||[]).slice(),r=0,i=n.length;r<i;r++)n[r].fn.apply(n[r].ctx,e);return this},off:function(t,e){var n=this.e||(this.e={}),r=n[t],i=[];if(r&&e)for(var o=0,a=r.length;o<a;o++)r[o].fn!==e&&r[o].fn._!==e&&i.push(r[o]);return i.length?n[t]=i:delete n[t],this}},t.exports=e,t.exports.TinyEmitter=e}},n={},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,{a:n}),n},t.d=function(e,n){for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},t.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},t(686).default;var e,n})},function(t,e,n){n(400),t.exports=n(32).RegExp.escape},function(t,e,n){var r=n(28),i=r.JSON||(r.JSON={stringify:JSON.stringify});t.exports=function(t){return i.stringify.apply(i,arguments)}},function(t,e,n){n(384),t.exports=n(28).Math.trunc},function(t,e,n){n(385),t.exports=n(28).Object.assign},function(t,e,n){n(386);var r=n(28).Object;t.exports=function(t,e,n){return r.defineProperty(t,e,n)}},function(t,e,n){n(195),n(196),n(197),n(387),n(391),n(390),n(389),t.exports=n(28).Set},function(t,e,n){n(388),n(195),n(392),n(393),t.exports=n(28).Symbol},function(t,e,n){n(196),n(197),t.exports=n(129).f("iterator")},function(t,e){t.exports=function(){}},function(t,e,n){var r=n(85);t.exports=function(t,e){var n=[];return r(t,!1,n.push,n,e),n}},function(t,e,n){var r=n(70),i=n(126),o=n(381);t.exports=function(t){return function(e,n,a){var s,u=r(e),l=i(u.length),c=o(a,l);if(t&&n!=n){for(;l>c;)if((s=u[c++])!=s)return!0}else for(;l>c;c++)if((t||c in u)&&u[c]===n)return t||c||0;return!t&&-1}}},function(t,e,n){var r=n(77),i=n(118),o=n(91),a=n(126),s=n(363);t.exports=function(t,e){var n=1==t,u=2==t,l=3==t,c=4==t,f=6==t,d=5==t||f,h=e||s;return function(e,s,p){for(var g,m,v=o(e),y=i(v),b=r(s,p,3),_=a(y.length),w=0,x=n?h(e,_):u?h(e,0):void 0;_>w;w++)if((d||w in y)&&(g=y[w],m=b(g,w,v),t))if(n)x[w]=m;else if(m)switch(t){case 3:return!0;case 5:return g;case 6:return w;case 2:x.push(g)}else if(c)return!1;return f?-1:l||c?c:x}}},function(t,e,n){var r=n(48),i=n(188),o=n(30)("species");t.exports=function(t){var e;return i(t)&&(e=t.constructor,"function"!=typeof e||e!==Array&&!i(e.prototype)||(e=void 0),r(e)&&null===(e=e[o])&&(e=void 0)),void 0===e?Array:e}},function(t,e,n){var r=n(362);t.exports=function(t,e){return new(r(t))(e)}},function(t,e,n){"use strict";var r=n(38).f,i=n(121),o=n(192),a=n(77),s=n(184),u=n(85),l=n(119),c=n(189),f=n(379),d=n(29),h=n(120).fastKey,p=n(194),g=d?"_s":"size",m=function(t,e){var n,r=h(e);if("F"!==r)return t._i[r];for(n=t._f;n;n=n.n)if(n.k==e)return n};t.exports={getConstructor:function(t,e,n,l){var c=t(function(t,r){s(t,c,e,"_i"),t._t=e,t._i=i(null),t._f=void 0,t._l=void 0,t[g]=0,void 0!=r&&u(r,n,t[l],t)});return o(c.prototype,{clear:function(){for(var t=p(this,e),n=t._i,r=t._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete n[r.i];t._f=t._l=void 0,t[g]=0},delete:function(t){var n=p(this,e),r=m(n,t);if(r){var i=r.n,o=r.p;delete n._i[r.i],r.r=!0,o&&(o.n=i),i&&(i.p=o),n._f==r&&(n._f=i),n._l==r&&(n._l=o),n[g]--}return!!r},forEach:function(t){p(this,e);for(var n,r=a(t,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(r(n.v,n.k,this);n&&n.r;)n=n.p},has:function(t){return!!m(p(this,e),t)}}),d&&r(c.prototype,"size",{get:function(){return p(this,e)[g]}}),c},def:function(t,e,n){var r,i,o=m(t,e);return o?o.v=n:(t._l=o={i:i=h(e,!0),k:e,v:n,p:r=t._l,n:void 0,r:!1},t._f||(t._f=o),r&&(r.n=o),t[g]++,"F"!==i&&(t._i[i]=o)),t},getEntry:m,setStrong:function(t,e,n){l(t,e,function(t,n){this._t=p(t,e),this._k=n,this._l=void 0},function(){for(var t=this,e=t._k,n=t._l;n&&n.r;)n=n.p;return t._t&&(t._l=n=n?n.n:t._t._f)?"keys"==e?c(0,n.k):"values"==e?c(0,n.v):c(0,[n.k,n.v]):(t._t=void 0,c(1))},n?"entries":"values",!n,!0),f(e)}}},function(t,e,n){var r=n(185),i=n(359);t.exports=function(t){return function(){if(r(this)!=t)throw TypeError(t+"#toJSON isn't generic");return i(this)}}},function(t,e,n){"use strict";var r=n(37),i=n(43),o=n(120),a=n(69),s=n(47),u=n(192),l=n(85),c=n(184),f=n(48),d=n(90),h=n(38).f,p=n(361)(0),g=n(29);t.exports=function(t,e,n,m,v,y){var b=r[t],_=b,w=v?"set":"add",x=_&&_.prototype,k={};return g&&"function"==typeof _&&(y||x.forEach&&!a(function(){(new _).entries().next()}))?(_=e(function(e,n){c(e,_,t,"_c"),e._c=new b,void 0!=n&&l(n,v,e[w],e)}),p("add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON".split(","),function(t){var e="add"==t||"set"==t;t in x&&(!y||"clear"!=t)&&s(_.prototype,t,function(n,r){if(c(this,_,t),!e&&y&&!f(n))return"get"==t&&void 0;var i=this._c[t](0===n?0:n,r);return e?this:i})}),y||h(_.prototype,"size",{get:function(){return this._c.size}})):(_=m.getConstructor(e,t,v,w),u(_.prototype,n),o.NEED=!0),d(_,t),k[t]=_,i(i.G+i.W+i.F,k),y||m.setStrong(_,t,v),_}},function(t,e,n){var r=n(87),i=n(122),o=n(88);t.exports=function(t){var e=r(t),n=i.f;if(n)for(var a,s=n(t),u=o.f,l=0;s.length>l;)u.call(t,a=s[l++])&&e.push(a);return e}},function(t,e,n){var r=n(37).document;t.exports=r&&r.documentElement},function(t,e,n){var r=n(78),i=n(30)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||o[i]===t)}},function(t,e,n){var r=n(68);t.exports=function(t,e,n,i){try{return i?e(r(n)[0],n[1]):e(n)}catch(e){var o=t.return;throw void 0!==o&&r(o.call(t)),e}}},function(t,e,n){"use strict";var r=n(121),i=n(89),o=n(90),a={};n(47)(a,n(30)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(a,{next:i(1,n)}),o(t,e+" Iterator")}},function(t,e,n){"use strict";var r=n(29),i=n(87),o=n(122),a=n(88),s=n(91),u=n(118),l=Object.assign;t.exports=!l||n(69)(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=l({},t)[n]||Object.keys(l({},e)).join("")!=r})?function(t,e){for(var n=s(t),l=arguments.length,c=1,f=o.f,d=a.f;l>c;)for(var h,p=u(arguments[c++]),g=f?i(p).concat(f(p)):i(p),m=g.length,v=0;m>v;)h=g[v++],r&&!d.call(p,h)||(n[h]=p[h]);return n}:l},function(t,e,n){var r=n(38),i=n(68),o=n(87);t.exports=n(29)?Object.defineProperties:function(t,e){i(t);for(var n,a=o(e),s=a.length,u=0;s>u;)r.f(t,n=a[u++],e[n]);return t}},function(t,e,n){var r=n(88),i=n(89),o=n(70),a=n(127),s=n(52),u=n(187),l=Object.getOwnPropertyDescriptor;e.f=n(29)?l:function(t,e){if(t=o(t),e=a(e,!0),u)try{return l(t,e)}catch(t){}if(s(t,e))return i(!r.f.call(t,e),t[e])}},function(t,e,n){var r=n(70),i=n(190).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(t){try{return i(t)}catch(t){return a.slice()}};t.exports.f=function(t){return a&&"[object Window]"==o.call(t)?s(t):i(r(t))}},function(t,e,n){var r=n(52),i=n(91),o=n(123)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),r(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},function(t,e,n){"use strict";var r=n(43),i=n(183),o=n(77),a=n(85);t.exports=function(t){r(r.S,t,{from:function(t){var e,n,r,s,u=arguments[1];return i(this),e=void 0!==u,e&&i(u),void 0==t?new this:(n=[],e?(r=0,s=o(u,arguments[2],2),a(t,!1,function(t){n.push(s(t,r++))})):a(t,!1,n.push,n),new this(n))}})}},function(t,e,n){"use strict";var r=n(43);t.exports=function(t){r(r.S,t,{of:function(){for(var t=arguments.length,e=new Array(t);t--;)e[t]=arguments[t];return new this(e)}})}},function(t,e,n){"use strict";var r=n(37),i=n(28),o=n(38),a=n(29),s=n(30)("species");t.exports=function(t){var e="function"==typeof i[t]?i[t]:r[t];a&&e&&!e[s]&&o.f(e,s,{configurable:!0,get:function(){return this}})}},function(t,e,n){var r=n(125),i=n(116);t.exports=function(t){return function(e,n){var o,a,s=String(i(e)),u=r(n),l=s.length;return u<0||u>=l?t?"":void 0:(o=s.charCodeAt(u),o<55296||o>56319||u+1===l||(a=s.charCodeAt(u+1))<56320||a>57343?t?s.charAt(u):o:t?s.slice(u,u+2):a-56320+(o-55296<<10)+65536)}}},function(t,e,n){var r=n(125),i=Math.max,o=Math.min;t.exports=function(t,e){return t=r(t),t<0?i(t+e,0):o(t,e)}},function(t,e,n){var r=n(185),i=n(30)("iterator"),o=n(78);t.exports=n(28).getIteratorMethod=function(t){if(void 0!=t)return t[i]||t["@@iterator"]||o[r(t)]}},function(t,e,n){"use strict";var r=n(358),i=n(189),o=n(78),a=n(70);t.exports=n(119)(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,i(1)):"keys"==e?i(0,n):"values"==e?i(0,t[n]):i(0,[n,t[n]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},function(t,e,n){var r=n(43);r(r.S,"Math",{trunc:function(t){return(t>0?Math.floor:Math.ceil)(t)}})},function(t,e,n){var r=n(43);r(r.S+r.F,"Object",{assign:n(372)})},function(t,e,n){var r=n(43);r(r.S+r.F*!n(29),"Object",{defineProperty:n(38).f})},function(t,e,n){"use strict";var r=n(364),i=n(194);t.exports=n(366)("Set",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return r.def(i(this,"Set"),t=0===t?0:t,t)}},r)},function(t,e,n){"use strict";var r=n(37),i=n(52),o=n(29),a=n(43),s=n(193),u=n(120).KEY,l=n(69),c=n(124),f=n(90),d=n(92),h=n(30),p=n(129),g=n(128),m=n(367),v=n(188),y=n(68),b=n(48),_=n(91),w=n(70),x=n(127),k=n(89),S=n(121),C=n(375),E=n(374),T=n(122),A=n(38),O=n(87),P=E.f,N=A.f,D=C.f,M=r.Symbol,I=r.JSON,R=I&&I.stringify,$=h("_hidden"),L=h("toPrimitive"),j={}.propertyIsEnumerable,F=c("symbol-registry"),B=c("symbols"),V=c("op-symbols"),z=Object.prototype,U="function"==typeof M&&!!T.f,H=r.QObject,q=!H||!H.prototype||!H.prototype.findChild,W=o&&l(function(){return 7!=S(N({},"a",{get:function(){return N(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=P(z,e);r&&delete z[e],N(t,e,n),r&&t!==z&&N(z,e,r)}:N,G=function(t){var e=B[t]=S(M.prototype);return e._k=t,e},Y=U&&"symbol"==typeof M.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof M},K=function(t,e,n){return t===z&&K(V,e,n),y(t),e=x(e,!0),y(n),i(B,e)?(n.enumerable?(i(t,$)&&t[$][e]&&(t[$][e]=!1),n=S(n,{enumerable:k(0,!1)})):(i(t,$)||N(t,$,k(1,{})),t[$][e]=!0),W(t,e,n)):N(t,e,n)},X=function(t,e){y(t);for(var n,r=m(e=w(e)),i=0,o=r.length;o>i;)K(t,n=r[i++],e[n]);return t},J=function(t,e){return void 0===e?S(t):X(S(t),e)},Q=function(t){var e=j.call(this,t=x(t,!0));return!(this===z&&i(B,t)&&!i(V,t))&&(!(e||!i(this,t)||!i(B,t)||i(this,$)&&this[$][t])||e)},Z=function(t,e){if(t=w(t),e=x(e,!0),t!==z||!i(B,e)||i(V,e)){var n=P(t,e);return!n||!i(B,e)||i(t,$)&&t[$][e]||(n.enumerable=!0),n}},tt=function(t){for(var e,n=D(w(t)),r=[],o=0;n.length>o;)i(B,e=n[o++])||e==$||e==u||r.push(e);return r},et=function(t){for(var e,n=t===z,r=D(n?V:w(t)),o=[],a=0;r.length>a;)!i(B,e=r[a++])||n&&!i(z,e)||o.push(B[e]);return o};U||(M=function(){if(this instanceof M)throw TypeError("Symbol is not a constructor!");var t=d(arguments.length>0?arguments[0]:void 0),e=function(n){this===z&&e.call(V,n),i(this,$)&&i(this[$],t)&&(this[$][t]=!1),W(this,t,k(1,n))};return o&&q&&W(z,t,{configurable:!0,set:e}),G(t)},s(M.prototype,"toString",function(){return this._k}),E.f=Z,A.f=K,n(190).f=C.f=tt,n(88).f=Q,T.f=et,o&&!n(86)&&s(z,"propertyIsEnumerable",Q,!0),p.f=function(t){return G(h(t))}),a(a.G+a.W+a.F*!U,{Symbol:M});for(var nt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),rt=0;nt.length>rt;)h(nt[rt++]);for(var it=O(h.store),ot=0;it.length>ot;)g(it[ot++]);a(a.S+a.F*!U,"Symbol",{for:function(t){return i(F,t+="")?F[t]:F[t]=M(t)},keyFor:function(t){if(!Y(t))throw TypeError(t+" is not a symbol!");for(var e in F)if(F[e]===t)return e},useSetter:function(){q=!0},useSimple:function(){q=!1}}),a(a.S+a.F*!U,"Object",{create:J,defineProperty:K,defineProperties:X,getOwnPropertyDescriptor:Z,getOwnPropertyNames:tt,getOwnPropertySymbols:et});var at=l(function(){T.f(1)});a(a.S+a.F*at,"Object",{getOwnPropertySymbols:function(t){return T.f(_(t))}}),I&&a(a.S+a.F*(!U||l(function(){var t=M();return"[null]"!=R([t])||"{}"!=R({a:t})||"{}"!=R(Object(t))})),"JSON",{stringify:function(t){for(var e,n,r=[t],i=1;arguments.length>i;)r.push(arguments[i++]);if(n=e=r[1],(b(e)||void 0!==t)&&!Y(t))return v(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!Y(e))return e}),r[1]=e,R.apply(I,r)}}),M.prototype[L]||n(47)(M.prototype,L,M.prototype.valueOf),f(M,"Symbol"),f(Math,"Math",!0),f(r.JSON,"JSON",!0)},function(t,e,n){n(377)("Set")},function(t,e,n){n(378)("Set")},function(t,e,n){var r=n(43);r(r.P+r.R,"Set",{toJSON:n(365)("Set")})},function(t,e,n){n(128)("asyncIterator")},function(t,e,n){n(128)("observable")},function(t,e,n){var r=n(5),i=n(96),o=n(8)("species");t.exports=function(t){var e;return i(t)&&(e=t.constructor,"function"!=typeof e||e!==Array&&!i(e.prototype)||(e=void 0),r(e)&&null===(e=e[o])&&(e=void 0)),void 0===e?Array:e}},function(t,e,n){"use strict";var r=n(4),i=Date.prototype.getTime,o=Date.prototype.toISOString,a=function(t){return t>9?t:"0"+t};t.exports=r(function(){return"0385-07-25T07:06:39.999Z"!=o.call(new Date(-5e13-1))})||!r(function(){o.call(new Date(NaN))})?function(){if(!isFinite(i.call(this)))throw RangeError("Invalid time value");var t=this,e=t.getUTCFullYear(),n=t.getUTCMilliseconds(),r=e<0?"-":e>9999?"+":"";return r+("00000"+Math.abs(e)).slice(r?-6:-4)+"-"+a(t.getUTCMonth()+1)+"-"+a(t.getUTCDate())+"T"+a(t.getUTCHours())+":"+a(t.getUTCMinutes())+":"+a(t.getUTCSeconds())+"."+(n>99?n:"0"+a(n))+"Z"}:o},function(t,e,n){"use strict";var r=n(2),i=n(42);t.exports=function(t){if("string"!==t&&"number"!==t&&"default"!==t)throw TypeError("Incorrect hint");return i(r(this),"number"!=t)}},function(t,e,n){var r=n(57),i=n(100),o=n(81);t.exports=function(t){var e=r(t),n=i.f;if(n)for(var a,s=n(t),u=o.f,l=0;s.length>l;)u.call(t,a=s[l++])&&e.push(a);return e}},function(t,e,n){t.exports=n(82)("native-function-to-string",Function.toString)},function(t,e){t.exports=function(t,e){var n=e===Object(e)?function(t){return e[t]}:e;return function(e){return String(e).replace(t,n)}}},function(t,e,n){var r=n(1),i=n(399)(/[\\^$*+?.()|[\]{}]/g,"\\$&");r(r.S,"RegExp",{escape:function(t){return i(t)}})},function(t,e,n){var r=n(1);r(r.P,"Array",{copyWithin:n(199)}),n(49)("copyWithin")},function(t,e,n){"use strict";var r=n(1),i=n(39)(4);r(r.P+r.F*!n(34)([].every,!0),"Array",{every:function(t){return i(this,t,arguments[1])}})},function(t,e,n){var r=n(1);r(r.P,"Array",{fill:n(131)}),n(49)("fill")},function(t,e,n){"use strict";var r=n(1),i=n(39)(2);r(r.P+r.F*!n(34)([].filter,!0),"Array",{filter:function(t){return i(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(1),i=n(39)(6),o="findIndex",a=!0;o in[]&&Array(1)[o](function(){a=!1}),r(r.P+r.F*a,"Array",{findIndex:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),n(49)(o)},function(t,e,n){"use strict";var r=n(1),i=n(39)(5),o=!0;"find"in[]&&Array(1).find(function(){o=!1}),r(r.P+r.F*o,"Array",{find:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),n(49)("find")},function(t,e,n){"use strict";var r=n(1),i=n(39)(0),o=n(34)([].forEach,!0);r(r.P+r.F*!o,"Array",{forEach:function(t){return i(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(33),i=n(1),o=n(13),a=n(210),s=n(139),u=n(9),l=n(133),c=n(155);i(i.S+i.F*!n(98)(function(t){Array.from(t)}),"Array",{from:function(t){var e,n,i,f,d=o(t),h="function"==typeof this?this:Array,p=arguments.length,g=p>1?arguments[1]:void 0,m=void 0!==g,v=0,y=c(d);if(m&&(g=r(g,p>2?arguments[2]:void 0,2)),void 0==y||h==Array&&s(y))for(e=u(d.length),n=new h(e);e>v;v++)l(n,v,m?g(d[v],v):d[v]);else for(f=y.call(d),n=new h;!(i=f.next()).done;v++)l(n,v,m?a(f,g,[i.value,v],!0):i.value);return n.length=v,n}})},function(t,e,n){"use strict";var r=n(1),i=n(93)(!1),o=[].indexOf,a=!!o&&1/[1].indexOf(1,-0)<0;r(r.P+r.F*(a||!n(34)(o)),"Array",{indexOf:function(t){return a?o.apply(this,arguments)||0:i(this,t,arguments[1])}})},function(t,e,n){var r=n(1);r(r.S,"Array",{isArray:n(96)})},function(t,e,n){"use strict";var r=n(1),i=n(26),o=[].join;r(r.P+r.F*(n(80)!=Object||!n(34)(o)),"Array",{join:function(t){return o.call(i(this),void 0===t?",":t)}})},function(t,e,n){"use strict";var r=n(1),i=n(26),o=n(35),a=n(9),s=[].lastIndexOf,u=!!s&&1/[1].lastIndexOf(1,-0)<0;r(r.P+r.F*(u||!n(34)(s)),"Array",{lastIndexOf:function(t){if(u)return s.apply(this,arguments)||0;var e=i(this),n=a(e.length),r=n-1;for(arguments.length>1&&(r=Math.min(r,o(arguments[1]))),r<0&&(r=n+r);r>=0;r--)if(r in e&&e[r]===t)return r||0;return-1}})},function(t,e,n){"use strict";var r=n(1),i=n(39)(1);r(r.P+r.F*!n(34)([].map,!0),"Array",{map:function(t){return i(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(1),i=n(133);r(r.S+r.F*n(4)(function(){function t(){}return!(Array.of.call(t)instanceof t)}),"Array",{of:function(){for(var t=0,e=arguments.length,n=new("function"==typeof this?this:Array)(e);e>t;)i(n,t,arguments[t++]);return n.length=e,n}})},function(t,e,n){"use strict";var r=n(1),i=n(201);r(r.P+r.F*!n(34)([].reduceRight,!0),"Array",{reduceRight:function(t){return i(this,t,arguments.length,arguments[1],!0)}})},function(t,e,n){"use strict";var r=n(1),i=n(201);r(r.P+r.F*!n(34)([].reduce,!0),"Array",{reduce:function(t){return i(this,t,arguments.length,arguments[1],!1)}})},function(t,e,n){"use strict";var r=n(1),i=n(137),o=n(31),a=n(61),s=n(9),u=[].slice;r(r.P+r.F*n(4)(function(){i&&u.call(i)}),"Array",{slice:function(t,e){var n=s(this.length),r=o(this);if(e=void 0===e?n:e,"Array"==r)return u.call(this,t,e);for(var i=a(t,n),l=a(e,n),c=s(l-i),f=new Array(c),d=0;d<c;d++)f[d]="String"==r?this.charAt(i+d):this[i+d];return f}})},function(t,e,n){"use strict";var r=n(1),i=n(39)(3);r(r.P+r.F*!n(34)([].some,!0),"Array",{some:function(t){return i(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(1),i=n(15),o=n(13),a=n(4),s=[].sort,u=[1,2,3];r(r.P+r.F*(a(function(){u.sort(void 0)})||!a(function(){u.sort(null)})||!n(34)(s)),"Array",{sort:function(t){return void 0===t?s.call(o(this)):s.call(o(this),i(t))}})},function(t,e,n){n(60)("Array")},function(t,e,n){var r=n(1);r(r.S,"Date",{now:function(){return(new Date).getTime()}})},function(t,e,n){var r=n(1),i=n(395);r(r.P+r.F*(Date.prototype.toISOString!==i),"Date",{toISOString:i})},function(t,e,n){"use strict";var r=n(1),i=n(13),o=n(42);r(r.P+r.F*n(4)(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}),"Date",{toJSON:function(t){var e=i(this),n=o(e);return"number"!=typeof n||isFinite(n)?e.toISOString():null}})},function(t,e,n){var r=n(8)("toPrimitive"),i=Date.prototype;r in i||n(17)(i,r,n(396))},function(t,e,n){var r=Date.prototype,i=r.toString,o=r.getTime;new Date(NaN)+""!="Invalid Date"&&n(18)(r,"toString",function(){var t=o.call(this);return t===t?i.call(this):"Invalid Date"})},function(t,e,n){var r=n(1);r(r.P,"Function",{bind:n(202)})},function(t,e,n){"use strict";var r=n(5),i=n(25),o=n(8)("hasInstance"),a=Function.prototype;o in a||n(11).f(a,o,{value:function(t){if("function"!=typeof this||!r(t))return!1;if(!r(this.prototype))return t instanceof this;for(;t=i(t);)if(this.prototype===t)return!0;return!1}})},function(t,e,n){var r=n(11).f,i=Function.prototype,o=/^\s*function ([^ (]*)/;"name"in i||n(10)&&r(i,"name",{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(t){return""}}})},function(t,e,n){var r=n(1),i=n(213),o=Math.sqrt,a=Math.acosh;r(r.S+r.F*!(a&&710==Math.floor(a(Number.MAX_VALUE))&&a(1/0)==1/0),"Math",{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?Math.log(t)+Math.LN2:i(t-1+o(t-1)*o(t+1))}})},function(t,e,n){function r(t){return isFinite(t=+t)&&0!=t?t<0?-r(-t):Math.log(t+Math.sqrt(t*t+1)):t}var i=n(1),o=Math.asinh;i(i.S+i.F*!(o&&1/o(0)>0),"Math",{asinh:r})},function(t,e,n){var r=n(1),i=Math.atanh;r(r.S+r.F*!(i&&1/i(-0)<0),"Math",{atanh:function(t){return 0==(t=+t)?t:Math.log((1+t)/(1-t))/2}})},function(t,e,n){var r=n(1),i=n(143);r(r.S,"Math",{cbrt:function(t){return i(t=+t)*Math.pow(Math.abs(t),1/3)}})},function(t,e,n){var r=n(1);r(r.S,"Math",{clz32:function(t){return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},function(t,e,n){var r=n(1),i=Math.exp;r(r.S,"Math",{cosh:function(t){return(i(t=+t)+i(-t))/2}})},function(t,e,n){var r=n(1),i=n(142);r(r.S+r.F*(i!=Math.expm1),"Math",{expm1:i})},function(t,e,n){var r=n(1);r(r.S,"Math",{fround:n(212)})},function(t,e,n){var r=n(1),i=Math.abs;r(r.S,"Math",{hypot:function(t,e){for(var n,r,o=0,a=0,s=arguments.length,u=0;a<s;)n=i(arguments[a++]),u<n?(r=u/n,o=o*r*r+1,u=n):n>0?(r=n/u,o+=r*r):o+=n;return u===1/0?1/0:u*Math.sqrt(o)}})},function(t,e,n){var r=n(1),i=Math.imul;r(r.S+r.F*n(4)(function(){return-5!=i(4294967295,5)||2!=i.length}),"Math",{imul:function(t,e){var n=+t,r=+e,i=65535&n,o=65535&r;return 0|i*o+((65535&n>>>16)*o+i*(65535&r>>>16)<<16>>>0)}})},function(t,e,n){var r=n(1);r(r.S,"Math",{log10:function(t){return Math.log(t)*Math.LOG10E}})},function(t,e,n){var r=n(1);r(r.S,"Math",{log1p:n(213)})},function(t,e,n){var r=n(1);r(r.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}})},function(t,e,n){var r=n(1);r(r.S,"Math",{sign:n(143)})},function(t,e,n){var r=n(1),i=n(142),o=Math.exp;r(r.S+r.F*n(4)(function(){return-2e-17!=!Math.sinh(-2e-17)}),"Math",{sinh:function(t){return Math.abs(t=+t)<1?(i(t)-i(-t))/2:(o(t-1)-o(-t-1))*(Math.E/2)}})},function(t,e,n){var r=n(1),i=n(142),o=Math.exp;r(r.S,"Math",{tanh:function(t){var e=i(t=+t),n=i(-t);return e==1/0?1:n==1/0?-1:(e-n)/(o(t)+o(-t))}})},function(t,e,n){var r=n(1);r(r.S,"Math",{trunc:function(t){return(t>0?Math.floor:Math.ceil)(t)}})},function(t,e,n){"use strict";var r=n(3),i=n(23),o=n(31),a=n(138),s=n(42),u=n(4),l=n(56).f,c=n(24).f,f=n(11).f,d=n(74).trim,h=r.Number,p=h,g=h.prototype,m="Number"==o(n(55)(g)),v="trim"in String.prototype,y=function(t){var e=s(t,!1);if("string"==typeof e&&e.length>2){e=v?e.trim():d(e,3);var n,r,i,o=e.charCodeAt(0);if(43===o||45===o){if(88===(n=e.charCodeAt(2))||120===n)return NaN}else if(48===o){switch(e.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+e}for(var a,u=e.slice(2),l=0,c=u.length;l<c;l++)if((a=u.charCodeAt(l))<48||a>i)return NaN;return parseInt(u,r)}}return+e};if(!h(" 0o1")||!h("0b1")||h("+0x1")){h=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof h&&(m?u(function(){g.valueOf.call(n)}):"Number"!=o(n))?a(new p(y(e)),n,h):y(e)};for(var b,_=n(10)?l(p):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),w=0;_.length>w;w++)i(p,b=_[w])&&!i(h,b)&&f(h,b,c(p,b));h.prototype=g,g.constructor=h,n(18)(r,"Number",h)}},function(t,e,n){var r=n(1);r(r.S,"Number",{EPSILON:Math.pow(2,-52)})},function(t,e,n){var r=n(1),i=n(3).isFinite;r(r.S,"Number",{isFinite:function(t){return"number"==typeof t&&i(t)}})},function(t,e,n){var r=n(1);r(r.S,"Number",{isInteger:n(209)})},function(t,e,n){var r=n(1);r(r.S,"Number",{isNaN:function(t){return t!=t}})},function(t,e,n){var r=n(1),i=n(209),o=Math.abs;r(r.S,"Number",{isSafeInteger:function(t){return i(t)&&o(t)<=9007199254740991}})},function(t,e,n){var r=n(1);r(r.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(t,e,n){var r=n(1);r(r.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(t,e,n){var r=n(1),i=n(221);r(r.S+r.F*(Number.parseFloat!=i),"Number",{parseFloat:i})},function(t,e,n){var r=n(1),i=n(222);r(r.S+r.F*(Number.parseInt!=i),"Number",{parseInt:i})},function(t,e,n){"use strict";var r=n(1),i=n(35),o=n(198),a=n(150),s=1..toFixed,u=Math.floor,l=[0,0,0,0,0,0],c="Number.toFixed: incorrect invocation!",f=function(t,e){for(var n=-1,r=e;++n<6;)r+=t*l[n],l[n]=r%1e7,r=u(r/1e7)},d=function(t){for(var e=6,n=0;--e>=0;)n+=l[e],l[e]=u(n/t),n=n%t*1e7},h=function(){for(var t=6,e="";--t>=0;)if(""!==e||0===t||0!==l[t]){var n=String(l[t]);e=""===e?n:e+a.call("0",7-n.length)+n}return e},p=function(t,e,n){return 0===e?n:e%2==1?p(t,e-1,n*t):p(t*t,e/2,n)},g=function(t){for(var e=0,n=t;n>=4096;)e+=12,n/=4096;for(;n>=2;)e+=1,n/=2;return e};r(r.P+r.F*(!!s&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!n(4)(function(){s.call({})})),"Number",{toFixed:function(t){var e,n,r,s,u=o(this,c),l=i(t),m="",v="0";if(l<0||l>20)throw RangeError(c);if(u!=u)return"NaN";if(u<=-1e21||u>=1e21)return String(u);if(u<0&&(m="-",u=-u),u>1e-21)if(e=g(u*p(2,69,1))-69,n=e<0?u*p(2,-e,1):u/p(2,e,1),n*=4503599627370496,(e=52-e)>0){for(f(0,n),r=l;r>=7;)f(1e7,0),r-=7;for(f(p(10,r,1),0),r=e-1;r>=23;)d(1<<23),r-=23;d(1<<r),f(1,1),d(2),v=h()}else f(0,n),f(1<<-e,0),v=h()+a.call("0",l);return l>0?(s=v.length,v=m+(s<=l?"0."+a.call("0",l-s)+v:v.slice(0,s-l)+"."+v.slice(s-l))):v=m+v,v}})},function(t,e,n){"use strict";var r=n(1),i=n(4),o=n(198),a=1..toPrecision;r(r.P+r.F*(i(function(){return"1"!==a.call(1,void 0)})||!i(function(){a.call({})})),"Number",{toPrecision:function(t){var e=o(this,"Number#toPrecision: incorrect invocation!");return void 0===t?a.call(e):a.call(e,t)}})},function(t,e,n){var r=n(1);r(r.S+r.F,"Object",{assign:n(215)})},function(t,e,n){var r=n(1);r(r.S,"Object",{create:n(55)})},function(t,e,n){var r=n(1);r(r.S+r.F*!n(10),"Object",{defineProperties:n(216)})},function(t,e,n){var r=n(1);r(r.S+r.F*!n(10),"Object",{defineProperty:n(11).f})},function(t,e,n){var r=n(5),i=n(51).onFreeze;n(41)("freeze",function(t){return function(e){return t&&r(e)?t(i(e)):e}})},function(t,e,n){var r=n(26),i=n(24).f;n(41)("getOwnPropertyDescriptor",function(){return function(t,e){return i(r(t),e)}})},function(t,e,n){n(41)("getOwnPropertyNames",function(){return n(217).f})},function(t,e,n){var r=n(13),i=n(25);n(41)("getPrototypeOf",function(){return function(t){return i(r(t))}})},function(t,e,n){var r=n(5);n(41)("isExtensible",function(t){return function(e){return!!r(e)&&(!t||t(e))}})},function(t,e,n){var r=n(5);n(41)("isFrozen",function(t){return function(e){return!r(e)||!!t&&t(e)}})},function(t,e,n){var r=n(5);n(41)("isSealed",function(t){return function(e){return!r(e)||!!t&&t(e)}})},function(t,e,n){var r=n(1);r(r.S,"Object",{is:n(225)})},function(t,e,n){var r=n(13),i=n(57);n(41)("keys",function(){return function(t){return i(r(t))}})},function(t,e,n){var r=n(5),i=n(51).onFreeze;n(41)("preventExtensions",function(t){return function(e){return t&&r(e)?t(i(e)):e}})},function(t,e,n){var r=n(5),i=n(51).onFreeze;n(41)("seal",function(t){return function(e){return t&&r(e)?t(i(e)):e}})},function(t,e,n){var r=n(1);r(r.S,"Object",{setPrototypeOf:n(147).set})},function(t,e,n){"use strict";var r=n(71),i={};i[n(8)("toStringTag")]="z",i+""!="[object z]"&&n(18)(Object.prototype,"toString",function(){return"[object "+r(this)+"]"},!0)},function(t,e,n){var r=n(1),i=n(221);r(r.G+r.F*(parseFloat!=i),{parseFloat:i})},function(t,e,n){var r=n(1),i=n(222);r(r.G+r.F*(parseInt!=i),{parseInt:i})},function(t,e,n){"use strict";var r,i,o,a,s=n(50),u=n(3),l=n(33),c=n(71),f=n(1),d=n(5),h=n(15),p=n(53),g=n(54),m=n(83),v=n(152).set,y=n(144)(),b=n(145),_=n(223),w=n(106),x=n(224),k=u.TypeError,S=u.process,C=S&&S.versions,E=C&&C.v8||"",T=u.Promise,A="process"==c(S),O=function(){},P=i=b.f,N=!!function(){try{var t=T.resolve(1),e=(t.constructor={})[n(8)("species")]=function(t){t(O,O)};return(A||"function"==typeof PromiseRejectionEvent)&&t.then(O)instanceof e&&0!==E.indexOf("6.6")&&-1===w.indexOf("Chrome/66")}catch(t){}}(),D=function(t){var e;return!(!d(t)||"function"!=typeof(e=t.then))&&e},M=function(t,e){if(!t._n){t._n=!0;var n=t._c;y(function(){for(var r=t._v,i=1==t._s,o=0;n.length>o;)!function(e){var n,o,a,s=i?e.ok:e.fail,u=e.resolve,l=e.reject,c=e.domain;try{s?(i||(2==t._h&&$(t),t._h=1),!0===s?n=r:(c&&c.enter(),n=s(r),c&&(c.exit(),a=!0)),n===e.promise?l(k("Promise-chain cycle")):(o=D(n))?o.call(n,u,l):u(n)):l(r)}catch(t){c&&!a&&c.exit(),l(t)}}(n[o++]);t._c=[],t._n=!1,e&&!t._h&&I(t)})}},I=function(t){v.call(u,function(){var e,n,r,i=t._v,o=R(t);if(o&&(e=_(function(){A?S.emit("unhandledRejection",i,t):(n=u.onunhandledrejection)?n({promise:t,reason:i}):(r=u.console)&&r.error&&r.error("Unhandled promise rejection",i)}),t._h=A||R(t)?2:1),t._a=void 0,o&&e.e)throw e.v})},R=function(t){return 1!==t._h&&0===(t._a||t._c).length},$=function(t){v.call(u,function(){var e;A?S.emit("rejectionHandled",t):(e=u.onrejectionhandled)&&e({promise:t,reason:t._v})})},L=function(t){var e=this;e._d||(e._d=!0,e=e._w||e,e._v=t,e._s=2,e._a||(e._a=e._c.slice()),M(e,!0))},j=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw k("Promise can't be resolved itself");(e=D(t))?y(function(){var r={_w:n,_d:!1};try{e.call(t,l(j,r,1),l(L,r,1))}catch(t){L.call(r,t)}}):(n._v=t,n._s=1,M(n,!1))}catch(t){L.call({_w:n,_d:!1},t)}}};N||(T=function(t){p(this,T,"Promise","_h"),h(t),r.call(this);try{t(l(j,this,1),l(L,this,1))}catch(t){L.call(this,t)}},r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},r.prototype=n(59)(T.prototype,{then:function(t,e){var n=P(m(this,T));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=A?S.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&M(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new r;this.promise=t,this.resolve=l(j,t,1),this.reject=l(L,t,1)},b.f=P=function(t){return t===T||t===a?new o(t):i(t)}),f(f.G+f.W+f.F*!N,{Promise:T}),n(73)(T,"Promise"),n(60)("Promise"),a=n(32).Promise,f(f.S+f.F*!N,"Promise",{reject:function(t){var e=P(this);return(0,e.reject)(t),e.promise}}),f(f.S+f.F*(s||!N),"Promise",{resolve:function(t){return x(s&&this===a?T:this,t)}}),f(f.S+f.F*!(N&&n(98)(function(t){T.all(t).catch(O)})),"Promise",{all:function(t){var e=this,n=P(e),r=n.resolve,i=n.reject,o=_(function(){var n=[],o=0,a=1;g(t,!1,function(t){var s=o++,u=!1;n.push(void 0),a++,e.resolve(t).then(function(t){u||(u=!0,n[s]=t,--a||r(n))},i)}),--a||r(n)});return o.e&&i(o.v),n.promise},race:function(t){var e=this,n=P(e),r=n.reject,i=_(function(){g(t,!1,function(t){e.resolve(t).then(n.resolve,r)})});return i.e&&r(i.v),n.promise}})},function(t,e,n){var r=n(1),i=n(15),o=n(2),a=(n(3).Reflect||{}).apply,s=Function.apply;r(r.S+r.F*!n(4)(function(){a(function(){})}),"Reflect",{apply:function(t,e,n){var r=i(t),u=o(n);return a?a(r,e,u):s.call(r,e,u)}})},function(t,e,n){var r=n(1),i=n(55),o=n(15),a=n(2),s=n(5),u=n(4),l=n(202),c=(n(3).Reflect||{}).construct,f=u(function(){function t(){}return!(c(function(){},[],t)instanceof t)}),d=!u(function(){c(function(){})});r(r.S+r.F*(f||d),"Reflect",{construct:function(t,e){o(t),a(e);var n=arguments.length<3?t:o(arguments[2]);if(d&&!f)return c(t,e,n);if(t==n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var r=[null];return r.push.apply(r,e),new(l.apply(t,r))}var u=n.prototype,h=i(s(u)?u:Object.prototype),p=Function.apply.call(t,h,e);return s(p)?p:h}})},function(t,e,n){var r=n(11),i=n(1),o=n(2),a=n(42);i(i.S+i.F*n(4)(function(){Reflect.defineProperty(r.f({},1,{value:1}),1,{value:2})}),"Reflect",{defineProperty:function(t,e,n){o(t),e=a(e,!0),o(n);try{return r.f(t,e,n),!0}catch(t){return!1}}})},function(t,e,n){var r=n(1),i=n(24).f,o=n(2);r(r.S,"Reflect",{deleteProperty:function(t,e){var n=i(o(t),e);return!(n&&!n.configurable)&&delete t[e]}})},function(t,e,n){"use strict";var r=n(1),i=n(2),o=function(t){this._t=i(t),this._i=0;var e,n=this._k=[];for(e in t)n.push(e)};n(140)(o,"Object",function(){var t,e=this,n=e._k;do{if(e._i>=n.length)return{value:void 0,done:!0}}while(!((t=n[e._i++])in e._t));return{value:t,done:!1}}),r(r.S,"Reflect",{enumerate:function(t){return new o(t)}})},function(t,e,n){var r=n(24),i=n(1),o=n(2);i(i.S,"Reflect",{getOwnPropertyDescriptor:function(t,e){return r.f(o(t),e)}})},function(t,e,n){var r=n(1),i=n(25),o=n(2);r(r.S,"Reflect",{getPrototypeOf:function(t){return i(o(t))}})},function(t,e,n){function r(t,e){var n,s,c=arguments.length<3?t:arguments[2];return l(t)===c?t[e]:(n=i.f(t,e))?a(n,"value")?n.value:void 0!==n.get?n.get.call(c):void 0:u(s=o(t))?r(s,e,c):void 0}var i=n(24),o=n(25),a=n(23),s=n(1),u=n(5),l=n(2);s(s.S,"Reflect",{get:r})},function(t,e,n){var r=n(1);r(r.S,"Reflect",{has:function(t,e){return e in t}})},function(t,e,n){var r=n(1),i=n(2),o=Object.isExtensible;r(r.S,"Reflect",{isExtensible:function(t){return i(t),!o||o(t)}})},function(t,e,n){var r=n(1);r(r.S,"Reflect",{ownKeys:n(220)})},function(t,e,n){var r=n(1),i=n(2),o=Object.preventExtensions;r(r.S,"Reflect",{preventExtensions:function(t){i(t);try{return o&&o(t),!0}catch(t){return!1}}})},function(t,e,n){var r=n(1),i=n(147);i&&r(r.S,"Reflect",{setPrototypeOf:function(t,e){i.check(t,e);try{return i.set(t,e),!0}catch(t){return!1}}})},function(t,e,n){function r(t,e,n){var u,d,h=arguments.length<4?t:arguments[3],p=o.f(c(t),e);if(!p){if(f(d=a(t)))return r(d,e,n,h);p=l(0)}if(s(p,"value")){if(!1===p.writable||!f(h))return!1;if(u=o.f(h,e)){if(u.get||u.set||!1===u.writable)return!1;u.value=n,i.f(h,e,u)}else i.f(h,e,l(0,n));return!0}return void 0!==p.set&&(p.set.call(h,n),!0)}var i=n(11),o=n(24),a=n(25),s=n(23),u=n(1),l=n(58),c=n(2),f=n(5);u(u.S,"Reflect",{set:r})},function(t,e,n){var r=n(3),i=n(138),o=n(11).f,a=n(56).f,s=n(97),u=n(79),l=r.RegExp,c=l,f=l.prototype,d=/a/g,h=/a/g,p=new l(d)!==d;if(n(10)&&(!p||n(4)(function(){return h[n(8)("match")]=!1,l(d)!=d||l(h)==h||"/a/i"!=l(d,"i")}))){l=function(t,e){var n=this instanceof l,r=s(t),o=void 0===e;return!n&&r&&t.constructor===l&&o?t:i(p?new c(r&&!o?t.source:t,e):c((r=t instanceof l)?t.source:t,r&&o?u.call(t):e),n?this:f,l)};for(var g=a(c),m=0;g.length>m;)!function(t){t in l||o(l,t,{configurable:!0,get:function(){return c[t]},set:function(e){c[t]=e}})}(g[m++]);f.constructor=l,l.prototype=f,n(18)(r,"RegExp",l)}n(60)("RegExp")},function(t,e,n){"use strict";var r=n(2),i=n(9),o=n(130),a=n(101);n(95)("match",1,function(t,e,n,s){return[function(n){var r=t(this),i=void 0==n?void 0:n[e];return void 0!==i?i.call(n,r):new RegExp(n)[e](String(r))},function(t){var e=s(n,t,this);if(e.done)return e.value;var u=r(t),l=String(this);if(!u.global)return a(u,l);var c=u.unicode;u.lastIndex=0;for(var f,d=[],h=0;null!==(f=a(u,l));){var p=String(f[0]);d[h]=p,""===p&&(u.lastIndex=o(l,i(u.lastIndex),c)),h++}return 0===h?null:d}]})},function(t,e,n){"use strict";var r=n(2),i=n(13),o=n(9),a=n(35),s=n(130),u=n(101),l=Math.max,c=Math.min,f=Math.floor,d=/\$([$&`']|\d\d?|<[^>]*>)/g,h=/\$([$&`']|\d\d?)/g,p=function(t){return void 0===t?t:String(t)};n(95)("replace",2,function(t,e,n,g){function m(t,e,r,o,a,s){var u=r+t.length,l=o.length,c=h;return void 0!==a&&(a=i(a),c=d),n.call(s,c,function(n,i){var s;switch(i.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,r);case"'":return e.slice(u);case"<":s=a[i.slice(1,-1)];break;default:var c=+i;if(0===c)return n;if(c>l){var d=f(c/10);return 0===d?n:d<=l?void 0===o[d-1]?i.charAt(1):o[d-1]+i.charAt(1):n}s=o[c-1]}return void 0===s?"":s})}return[function(r,i){var o=t(this),a=void 0==r?void 0:r[e];return void 0!==a?a.call(r,o,i):n.call(String(o),r,i)},function(t,e){var i=g(n,t,this,e);if(i.done)return i.value;var f=r(t),d=String(this),h="function"==typeof e;h||(e=String(e));var v=f.global;if(v){var y=f.unicode;f.lastIndex=0}for(var b=[];;){var _=u(f,d);if(null===_)break;if(b.push(_),!v)break;""===String(_[0])&&(f.lastIndex=s(d,o(f.lastIndex),y))}for(var w="",x=0,k=0;k<b.length;k++){_=b[k];for(var S=String(_[0]),C=l(c(a(_.index),d.length),0),E=[],T=1;T<_.length;T++)E.push(p(_[T]));var A=_.groups;if(h){var O=[S].concat(E,C,d);void 0!==A&&O.push(A);var P=String(e.apply(void 0,O))}else P=m(S,d,C,E,A,e);C>=x&&(w+=d.slice(x,C)+P,x=C+S.length)}return w+d.slice(x)}]})},function(t,e,n){"use strict";var r=n(2),i=n(225),o=n(101);n(95)("search",1,function(t,e,n,a){return[function(n){var r=t(this),i=void 0==n?void 0:n[e];return void 0!==i?i.call(n,r):new RegExp(n)[e](String(r))},function(t){var e=a(n,t,this);if(e.done)return e.value;var s=r(t),u=String(this),l=s.lastIndex;i(l,0)||(s.lastIndex=0);var c=o(s,u);return i(s.lastIndex,l)||(s.lastIndex=l),null===c?-1:c.index}]})},function(t,e,n){"use strict";var r=n(97),i=n(2),o=n(83),a=n(130),s=n(9),u=n(101),l=n(146),c=n(4),f=Math.min,d=[].push,h="length",p=!c(function(){RegExp(4294967295,"y")});n(95)("split",2,function(t,e,n,c){var g;return g="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1)[h]||2!="ab".split(/(?:ab)*/)[h]||4!=".".split(/(.?)(.?)/)[h]||".".split(/()()/)[h]>1||"".split(/.?/)[h]?function(t,e){var i=String(this);if(void 0===t&&0===e)return[];if(!r(t))return n.call(i,t,e);for(var o,a,s,u=[],c=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),f=0,p=void 0===e?4294967295:e>>>0,g=new RegExp(t.source,c+"g");(o=l.call(g,i))&&!((a=g.lastIndex)>f&&(u.push(i.slice(f,o.index)),o[h]>1&&o.index<i[h]&&d.apply(u,o.slice(1)),s=o[0][h],f=a,u[h]>=p));)g.lastIndex===o.index&&g.lastIndex++;return f===i[h]?!s&&g.test("")||u.push(""):u.push(i.slice(f)),u[h]>p?u.slice(0,p):u}:"0".split(void 0,0)[h]?function(t,e){return void 0===t&&0===e?[]:n.call(this,t,e)}:n,[function(n,r){var i=t(this),o=void 0==n?void 0:n[e];return void 0!==o?o.call(n,i,r):g.call(String(i),n,r)},function(t,e){var r=c(g,t,this,e,g!==n);if(r.done)return r.value;var l=i(t),d=String(this),h=o(l,RegExp),m=l.unicode,v=(l.ignoreCase?"i":"")+(l.multiline?"m":"")+(l.unicode?"u":"")+(p?"y":"g"),y=new h(p?l:"^(?:"+l.source+")",v),b=void 0===e?4294967295:e>>>0;if(0===b)return[];if(0===d.length)return null===u(y,d)?[d]:[];for(var _=0,w=0,x=[];w<d.length;){y.lastIndex=p?w:0;var k,S=u(y,p?d:d.slice(w));if(null===S||(k=f(s(y.lastIndex+(p?0:w)),d.length))===_)w=a(d,w,m);else{if(x.push(d.slice(_,w)),x.length===b)return x;for(var C=1;C<=S.length-1;C++)if(x.push(S[C]),x.length===b)return x;w=_=k}}return x.push(d.slice(_)),x}]})},function(t,e,n){"use strict";n(231);var r=n(2),i=n(79),o=n(10),a=/./.toString,s=function(t){n(18)(RegExp.prototype,"toString",t,!0)};n(4)(function(){return"/a/b"!=a.call({source:"a",flags:"b"})})?s(function(){var t=r(this);return"/".concat(t.source,"/","flags"in t?t.flags:!o&&t instanceof RegExp?i.call(t):void 0)}):"toString"!=a.name&&s(function(){return a.call(this)})},function(t,e,n){"use strict";n(19)("anchor",function(t){return function(e){return t(this,"a","name",e)}})},function(t,e,n){"use strict";n(19)("big",function(t){return function(){return t(this,"big","","")}})},function(t,e,n){"use strict";n(19)("blink",function(t){return function(){return t(this,"blink","","")}})},function(t,e,n){"use strict";n(19)("bold",function(t){return function(){return t(this,"b","","")}})},function(t,e,n){"use strict";var r=n(1),i=n(104)(!1);r(r.P,"String",{codePointAt:function(t){return i(this,t)}})},function(t,e,n){"use strict";var r=n(1),i=n(9),o=n(149),a="".endsWith;r(r.P+r.F*n(136)("endsWith"),"String",{endsWith:function(t){var e=o(this,t,"endsWith"),n=arguments.length>1?arguments[1]:void 0,r=i(e.length),s=void 0===n?r:Math.min(i(n),r),u=String(t);return a?a.call(e,u,s):e.slice(s-u.length,s)===u}})},function(t,e,n){"use strict";n(19)("fixed",function(t){return function(){return t(this,"tt","","")}})},function(t,e,n){"use strict";n(19)("fontcolor",function(t){return function(e){return t(this,"font","color",e)}})},function(t,e,n){"use strict";n(19)("fontsize",function(t){return function(e){return t(this,"font","size",e)}})},function(t,e,n){var r=n(1),i=n(61),o=String.fromCharCode,a=String.fromCodePoint;r(r.S+r.F*(!!a&&1!=a.length),"String",{fromCodePoint:function(t){for(var e,n=[],r=arguments.length,a=0;r>a;){if(e=+arguments[a++],i(e,1114111)!==e)throw RangeError(e+" is not a valid code point");n.push(e<65536?o(e):o(55296+((e-=65536)>>10),e%1024+56320))}return n.join("")}})},function(t,e,n){"use strict";var r=n(1),i=n(149);r(r.P+r.F*n(136)("includes"),"String",{includes:function(t){return!!~i(this,t,"includes").indexOf(t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){"use strict";n(19)("italics",function(t){return function(){return t(this,"i","","")}})},function(t,e,n){"use strict";var r=n(104)(!0);n(141)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){"use strict";n(19)("link",function(t){return function(e){return t(this,"a","href",e)}})},function(t,e,n){var r=n(1),i=n(26),o=n(9);r(r.S,"String",{raw:function(t){for(var e=i(t.raw),n=o(e.length),r=arguments.length,a=[],s=0;n>s;)a.push(String(e[s++])),s<r&&a.push(String(arguments[s]));return a.join("")}})},function(t,e,n){var r=n(1);r(r.P,"String",{repeat:n(150)})},function(t,e,n){"use strict";n(19)("small",function(t){return function(){return t(this,"small","","")}})},function(t,e,n){"use strict";var r=n(1),i=n(9),o=n(149),a="".startsWith;r(r.P+r.F*n(136)("startsWith"),"String",{startsWith:function(t){var e=o(this,t,"startsWith"),n=i(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),r=String(t);return a?a.call(e,r,n):e.slice(n,n+r.length)===r}})},function(t,e,n){"use strict";n(19)("strike",function(t){return function(){return t(this,"strike","","")}})},function(t,e,n){"use strict";n(19)("sub",function(t){return function(){return t(this,"sub","","")}})},function(t,e,n){"use strict";n(19)("sup",function(t){return function(){return t(this,"sup","","")}})},function(t,e,n){"use strict";n(74)("trim",function(t){return function(){return t(this,3)}})},function(t,e,n){"use strict";var r=n(3),i=n(23),o=n(10),a=n(1),s=n(18),u=n(51).KEY,l=n(4),c=n(82),f=n(73),d=n(62),h=n(8),p=n(228),g=n(154),m=n(397),v=n(96),y=n(2),b=n(5),_=n(13),w=n(26),x=n(42),k=n(58),S=n(55),C=n(217),E=n(24),T=n(100),A=n(11),O=n(57),P=E.f,N=A.f,D=C.f,M=r.Symbol,I=r.JSON,R=I&&I.stringify,$=h("_hidden"),L=h("toPrimitive"),j={}.propertyIsEnumerable,F=c("symbol-registry"),B=c("symbols"),V=c("op-symbols"),z=Object.prototype,U="function"==typeof M&&!!T.f,H=r.QObject,q=!H||!H.prototype||!H.prototype.findChild,W=o&&l(function(){return 7!=S(N({},"a",{get:function(){return N(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=P(z,e);r&&delete z[e],N(t,e,n),r&&t!==z&&N(z,e,r)}:N,G=function(t){var e=B[t]=S(M.prototype);return e._k=t,e},Y=U&&"symbol"==typeof M.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof M},K=function(t,e,n){return t===z&&K(V,e,n),y(t),e=x(e,!0),y(n),i(B,e)?(n.enumerable?(i(t,$)&&t[$][e]&&(t[$][e]=!1),n=S(n,{enumerable:k(0,!1)})):(i(t,$)||N(t,$,k(1,{})),t[$][e]=!0),W(t,e,n)):N(t,e,n)},X=function(t,e){y(t);for(var n,r=m(e=w(e)),i=0,o=r.length;o>i;)K(t,n=r[i++],e[n]);return t},J=function(t,e){return void 0===e?S(t):X(S(t),e)},Q=function(t){var e=j.call(this,t=x(t,!0));return!(this===z&&i(B,t)&&!i(V,t))&&(!(e||!i(this,t)||!i(B,t)||i(this,$)&&this[$][t])||e)},Z=function(t,e){if(t=w(t),e=x(e,!0),t!==z||!i(B,e)||i(V,e)){var n=P(t,e);return!n||!i(B,e)||i(t,$)&&t[$][e]||(n.enumerable=!0),n}},tt=function(t){for(var e,n=D(w(t)),r=[],o=0;n.length>o;)i(B,e=n[o++])||e==$||e==u||r.push(e);return r},et=function(t){for(var e,n=t===z,r=D(n?V:w(t)),o=[],a=0;r.length>a;)!i(B,e=r[a++])||n&&!i(z,e)||o.push(B[e]);return o};U||(M=function(){if(this instanceof M)throw TypeError("Symbol is not a constructor!");var t=d(arguments.length>0?arguments[0]:void 0),e=function(n){this===z&&e.call(V,n),i(this,$)&&i(this[$],t)&&(this[$][t]=!1),W(this,t,k(1,n))};return o&&q&&W(z,t,{configurable:!0,set:e}),G(t)},s(M.prototype,"toString",function(){return this._k}),E.f=Z,A.f=K,n(56).f=C.f=tt,n(81).f=Q,T.f=et,o&&!n(50)&&s(z,"propertyIsEnumerable",Q,!0),p.f=function(t){return G(h(t))}),a(a.G+a.W+a.F*!U,{Symbol:M});for(var nt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),rt=0;nt.length>rt;)h(nt[rt++]);for(var it=O(h.store),ot=0;it.length>ot;)g(it[ot++]);a(a.S+a.F*!U,"Symbol",{for:function(t){return i(F,t+="")?F[t]:F[t]=M(t)},keyFor:function(t){if(!Y(t))throw TypeError(t+" is not a symbol!");for(var e in F)if(F[e]===t)return e},useSetter:function(){q=!0},useSimple:function(){q=!1}}),a(a.S+a.F*!U,"Object",{create:J,defineProperty:K,defineProperties:X,getOwnPropertyDescriptor:Z,getOwnPropertyNames:tt,getOwnPropertySymbols:et});var at=l(function(){T.f(1)});a(a.S+a.F*at,"Object",{getOwnPropertySymbols:function(t){return T.f(_(t))}}),I&&a(a.S+a.F*(!U||l(function(){var t=M();return"[null]"!=R([t])||"{}"!=R({a:t})||"{}"!=R(Object(t))})),"JSON",{stringify:function(t){for(var e,n,r=[t],i=1;arguments.length>i;)r.push(arguments[i++]);if(n=e=r[1],(b(e)||void 0!==t)&&!Y(t))return v(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!Y(e))return e}),r[1]=e,R.apply(I,r)}}),M.prototype[L]||n(17)(M.prototype,L,M.prototype.valueOf),f(M,"Symbol"),f(Math,"Math",!0),f(r.JSON,"JSON",!0)},function(t,e,n){"use strict";var r=n(1),i=n(105),o=n(153),a=n(2),s=n(61),u=n(9),l=n(5),c=n(3).ArrayBuffer,f=n(83),d=o.ArrayBuffer,h=o.DataView,p=i.ABV&&c.isView,g=d.prototype.slice,m=i.VIEW;r(r.G+r.W+r.F*(c!==d),{ArrayBuffer:d}),r(r.S+r.F*!i.CONSTR,"ArrayBuffer",{isView:function(t){return p&&p(t)||l(t)&&m in t}}),r(r.P+r.U+r.F*n(4)(function(){return!new d(2).slice(1,void 0).byteLength}),"ArrayBuffer",{slice:function(t,e){if(void 0!==g&&void 0===e)return g.call(a(this),t);for(var n=a(this).byteLength,r=s(t,n),i=s(void 0===e?n:e,n),o=new(f(this,d))(u(i-r)),l=new h(this),c=new h(o),p=0;r<i;)c.setUint8(p++,l.getUint8(r++));return o}}),n(60)("ArrayBuffer")},function(t,e,n){var r=n(1);r(r.G+r.W+r.F*!n(105).ABV,{DataView:n(153).DataView})},function(t,e,n){n(45)("Float32",4,function(t){return function(e,n,r){return t(this,e,n,r)}})},function(t,e,n){n(45)("Float64",8,function(t){return function(e,n,r){return t(this,e,n,r)}})},function(t,e,n){n(45)("Int16",2,function(t){return function(e,n,r){return t(this,e,n,r)}})},function(t,e,n){n(45)("Int32",4,function(t){return function(e,n,r){return t(this,e,n,r)}})},function(t,e,n){n(45)("Int8",1,function(t){return function(e,n,r){return t(this,e,n,r)}})},function(t,e,n){n(45)("Uint16",2,function(t){return function(e,n,r){return t(this,e,n,r)}})},function(t,e,n){n(45)("Uint32",4,function(t){return function(e,n,r){return t(this,e,n,r)}})},function(t,e,n){n(45)("Uint8",1,function(t){return function(e,n,r){return t(this,e,n,r)}})},function(t,e,n){n(45)("Uint8",1,function(t){return function(e,n,r){return t(this,e,n,r)}},!0)},function(t,e,n){"use strict";var r=n(205),i=n(63);n(94)("WeakSet",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return r.def(i(this,"WeakSet"),t,!0)}},r,!1,!0)},function(t,e,n){"use strict";var r=n(1),i=n(206),o=n(13),a=n(9),s=n(15),u=n(132);r(r.P,"Array",{flatMap:function(t){var e,n,r=o(this);return s(t),e=a(r.length),n=u(r,0),i(n,r,r,e,0,1,t,arguments[1]),n}}),n(49)("flatMap")},function(t,e,n){"use strict";var r=n(1),i=n(206),o=n(13),a=n(9),s=n(35),u=n(132);r(r.P,"Array",{flatten:function(){var t=arguments[0],e=o(this),n=a(e.length),r=u(e,0);return i(r,e,e,n,0,void 0===t?1:s(t)),r}}),n(49)("flatten")},function(t,e,n){"use strict";var r=n(1),i=n(93)(!0);r(r.P,"Array",{includes:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),n(49)("includes")},function(t,e,n){var r=n(1),i=n(144)(),o=n(3).process,a="process"==n(31)(o);r(r.G,{asap:function(t){var e=a&&o.domain;i(e?e.bind(t):t)}})},function(t,e,n){var r=n(1),i=n(31);r(r.S,"Error",{isError:function(t){return"Error"===i(t)}})},function(t,e,n){var r=n(1);r(r.G,{global:n(3)})},function(t,e,n){n(102)("Map")},function(t,e,n){n(103)("Map")},function(t,e,n){var r=n(1);r(r.P+r.R,"Map",{toJSON:n(204)("Map")})},function(t,e,n){var r=n(1);r(r.S,"Math",{clamp:function(t,e,n){return Math.min(n,Math.max(e,t))}})},function(t,e,n){var r=n(1);r(r.S,"Math",{DEG_PER_RAD:Math.PI/180})},function(t,e,n){var r=n(1),i=180/Math.PI;r(r.S,"Math",{degrees:function(t){return t*i}})},function(t,e,n){var r=n(1),i=n(214),o=n(212);r(r.S,"Math",{fscale:function(t,e,n,r,a){return o(i(t,e,n,r,a))}})},function(t,e,n){var r=n(1);r(r.S,"Math",{iaddh:function(t,e,n,r){var i=t>>>0,o=e>>>0,a=n>>>0;return o+(r>>>0)+((i&a|(i|a)&~(i+a>>>0))>>>31)|0}})},function(t,e,n){var r=n(1);r(r.S,"Math",{imulh:function(t,e){var n=+t,r=+e,i=65535&n,o=65535&r,a=n>>16,s=r>>16,u=(a*o>>>0)+(i*o>>>16);return a*s+(u>>16)+((i*s>>>0)+(65535&u)>>16)}})},function(t,e,n){var r=n(1);r(r.S,"Math",{isubh:function(t,e,n,r){var i=t>>>0,o=e>>>0,a=n>>>0;return o-(r>>>0)-((~i&a|~(i^a)&i-a>>>0)>>>31)|0}})},function(t,e,n){var r=n(1);r(r.S,"Math",{RAD_PER_DEG:180/Math.PI})},function(t,e,n){var r=n(1),i=Math.PI/180;r(r.S,"Math",{radians:function(t){return t*i}})},function(t,e,n){var r=n(1);r(r.S,"Math",{scale:n(214)})},function(t,e,n){var r=n(1);r(r.S,"Math",{signbit:function(t){return(t=+t)!=t?t:0==t?1/t==1/0:t>0}})},function(t,e,n){var r=n(1);r(r.S,"Math",{umulh:function(t,e){var n=+t,r=+e,i=65535&n,o=65535&r,a=n>>>16,s=r>>>16,u=(a*o>>>0)+(i*o>>>16);return a*s+(u>>>16)+((i*s>>>0)+(65535&u)>>>16)}})},function(t,e,n){"use strict";var r=n(1),i=n(13),o=n(15),a=n(11);n(10)&&r(r.P+n(99),"Object",{__defineGetter__:function(t,e){a.f(i(this),t,{get:o(e),enumerable:!0,configurable:!0})}})},function(t,e,n){"use strict";var r=n(1),i=n(13),o=n(15),a=n(11);n(10)&&r(r.P+n(99),"Object",{__defineSetter__:function(t,e){a.f(i(this),t,{set:o(e),enumerable:!0,configurable:!0})}})},function(t,e,n){var r=n(1),i=n(219)(!0);r(r.S,"Object",{entries:function(t){return i(t)}})},function(t,e,n){var r=n(1),i=n(220),o=n(26),a=n(24),s=n(133);r(r.S,"Object",{getOwnPropertyDescriptors:function(t){for(var e,n,r=o(t),u=a.f,l=i(r),c={},f=0;l.length>f;)void 0!==(n=u(r,e=l[f++]))&&s(c,e,n);return c}})},function(t,e,n){"use strict";var r=n(1),i=n(13),o=n(42),a=n(25),s=n(24).f;n(10)&&r(r.P+n(99),"Object",{__lookupGetter__:function(t){var e,n=i(this),r=o(t,!0);do{if(e=s(n,r))return e.get}while(n=a(n))}})},function(t,e,n){"use strict";var r=n(1),i=n(13),o=n(42),a=n(25),s=n(24).f;n(10)&&r(r.P+n(99),"Object",{__lookupSetter__:function(t){var e,n=i(this),r=o(t,!0);do{if(e=s(n,r))return e.set}while(n=a(n))}})},function(t,e,n){var r=n(1),i=n(219)(!1);r(r.S,"Object",{values:function(t){return i(t)}})},function(t,e,n){"use strict";var r=n(1),i=n(3),o=n(32),a=n(144)(),s=n(8)("observable"),u=n(15),l=n(2),c=n(53),f=n(59),d=n(17),h=n(54),p=h.RETURN,g=function(t){return null==t?void 0:u(t)},m=function(t){var e=t._c;e&&(t._c=void 0,e())},v=function(t){return void 0===t._o},y=function(t){v(t)||(t._o=void 0,m(t))},b=function(t,e){l(t),this._c=void 0,this._o=t,t=new _(this);try{var n=e(t),r=n;null!=n&&("function"==typeof n.unsubscribe?n=function(){r.unsubscribe()}:u(n),this._c=n)}catch(e){return void t.error(e)}v(this)&&m(this)};b.prototype=f({},{unsubscribe:function(){y(this)}});var _=function(t){this._s=t};_.prototype=f({},{next:function(t){var e=this._s;if(!v(e)){var n=e._o;try{var r=g(n.next);if(r)return r.call(n,t)}catch(t){try{y(e)}finally{throw t}}}},error:function(t){var e=this._s;if(v(e))throw t;var n=e._o;e._o=void 0;try{var r=g(n.error);if(!r)throw t;t=r.call(n,t)}catch(t){try{m(e)}finally{throw t}}return m(e),t},complete:function(t){var e=this._s;if(!v(e)){var n=e._o;e._o=void 0;try{var r=g(n.complete);t=r?r.call(n,t):void 0}catch(t){try{m(e)}finally{throw t}}return m(e),t}}});var w=function(t){c(this,w,"Observable","_f")._f=u(t)};f(w.prototype,{subscribe:function(t){return new b(t,this._f)},forEach:function(t){var e=this;return new(o.Promise||i.Promise)(function(n,r){u(t);var i=e.subscribe({next:function(e){try{return t(e)}catch(t){r(t),i.unsubscribe()}},error:r,complete:n})})}}),f(w,{from:function(t){var e="function"==typeof this?this:w,n=g(l(t)[s]);if(n){var r=l(n.call(t));return r.constructor===e?r:new e(function(t){return r.subscribe(t)})}return new e(function(e){var n=!1;return a(function(){if(!n){try{if(h(t,!1,function(t){if(e.next(t),n)return p})===p)return}catch(t){if(n)throw t;return void e.error(t)}e.complete()}}),function(){n=!0}})},of:function(){for(var t=0,e=arguments.length,n=new Array(e);t<e;)n[t]=arguments[t++];return new("function"==typeof this?this:w)(function(t){var e=!1;return a(function(){if(!e){for(var r=0;r<n.length;++r)if(t.next(n[r]),e)return;t.complete()}}),function(){e=!0}})}}),d(w.prototype,s,function(){return this}),r(r.G,{Observable:w}),n(60)("Observable")},function(t,e,n){"use strict";var r=n(1),i=n(32),o=n(3),a=n(83),s=n(224);r(r.P+r.R,"Promise",{finally:function(t){var e=a(this,i.Promise||o.Promise),n="function"==typeof t;return this.then(n?function(n){return s(e,t()).then(function(){return n})}:t,n?function(n){return s(e,t()).then(function(){throw n})}:t)}})},function(t,e,n){"use strict";var r=n(1),i=n(145),o=n(223);r(r.S,"Promise",{try:function(t){var e=i.f(this),n=o(t);return(n.e?e.reject:e.resolve)(n.v),e.promise}})},function(t,e,n){var r=n(44),i=n(2),o=r.key,a=r.set;r.exp({defineMetadata:function(t,e,n,r){a(t,e,i(n),o(r))}})},function(t,e,n){var r=n(44),i=n(2),o=r.key,a=r.map,s=r.store;r.exp({deleteMetadata:function(t,e){var n=arguments.length<3?void 0:o(arguments[2]),r=a(i(e),n,!1);if(void 0===r||!r.delete(t))return!1;if(r.size)return!0;var u=s.get(e);return u.delete(n),!!u.size||s.delete(e)}})},function(t,e,n){var r=n(232),i=n(200),o=n(44),a=n(2),s=n(25),u=o.keys,l=o.key,c=function(t,e){var n=u(t,e),o=s(t);if(null===o)return n;var a=c(o,e);return a.length?n.length?i(new r(n.concat(a))):a:n};o.exp({getMetadataKeys:function(t){return c(a(t),arguments.length<2?void 0:l(arguments[1]))}})},function(t,e,n){var r=n(44),i=n(2),o=n(25),a=r.has,s=r.get,u=r.key,l=function(t,e,n){if(a(t,e,n))return s(t,e,n);var r=o(e);return null!==r?l(t,r,n):void 0};r.exp({getMetadata:function(t,e){return l(t,i(e),arguments.length<3?void 0:u(arguments[2]))}})},function(t,e,n){var r=n(44),i=n(2),o=r.keys,a=r.key;r.exp({getOwnMetadataKeys:function(t){return o(i(t),arguments.length<2?void 0:a(arguments[1]))}})},function(t,e,n){var r=n(44),i=n(2),o=r.get,a=r.key;r.exp({getOwnMetadata:function(t,e){return o(t,i(e),arguments.length<3?void 0:a(arguments[2]))}})},function(t,e,n){var r=n(44),i=n(2),o=n(25),a=r.has,s=r.key,u=function(t,e,n){if(a(t,e,n))return!0;var r=o(e);return null!==r&&u(t,r,n)};r.exp({hasMetadata:function(t,e){return u(t,i(e),arguments.length<3?void 0:s(arguments[2]))}})},function(t,e,n){var r=n(44),i=n(2),o=r.has,a=r.key;r.exp({hasOwnMetadata:function(t,e){return o(t,i(e),arguments.length<3?void 0:a(arguments[2]))}})},function(t,e,n){var r=n(44),i=n(2),o=n(15),a=r.key,s=r.set;r.exp({metadata:function(t,e){return function(n,r){s(t,e,(void 0!==r?i:o)(n),a(r))}}})},function(t,e,n){n(102)("Set")},function(t,e,n){n(103)("Set")},function(t,e,n){var r=n(1);r(r.P+r.R,"Set",{toJSON:n(204)("Set")})},function(t,e,n){"use strict";var r=n(1),i=n(104)(!0),o=n(4),a=o(function(){return"𠮷"!=="𠮷".at(0)});r(r.P+r.F*a,"String",{at:function(t){return i(this,t)}})},function(t,e,n){"use strict";var r=n(1),i=n(40),o=n(9),a=n(97),s=n(79),u=RegExp.prototype,l=function(t,e){this._r=t,this._s=e};n(140)(l,"RegExp String",function(){var t=this._r.exec(this._s);return{value:t,done:null===t}}),r(r.P,"String",{matchAll:function(t){if(i(this),!a(t))throw TypeError(t+" is not a regexp!");var e=String(this),n="flags"in u?String(t.flags):s.call(t),r=new RegExp(t.source,~n.indexOf("g")?n:"g"+n);return r.lastIndex=o(t.lastIndex),new l(r,e)}})},function(t,e,n){"use strict";var r=n(1),i=n(226),o=n(106),a=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o);r(r.P+r.F*a,"String",{padEnd:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0,!1)}})},function(t,e,n){"use strict";var r=n(1),i=n(226),o=n(106),a=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o);r(r.P+r.F*a,"String",{padStart:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0,!0)}})},function(t,e,n){"use strict";n(74)("trimLeft",function(t){return function(){return t(this,1)}},"trimStart")},function(t,e,n){"use strict";n(74)("trimRight",function(t){return function(){return t(this,2)}},"trimEnd")},function(t,e,n){n(154)("asyncIterator")},function(t,e,n){n(154)("observable")},function(t,e,n){var r=n(1);r(r.S,"System",{global:n(3)})},function(t,e,n){n(102)("WeakMap")},function(t,e,n){n(103)("WeakMap")},function(t,e,n){n(102)("WeakSet")},function(t,e,n){n(103)("WeakSet")},function(t,e,n){for(var r=n(156),i=n(57),o=n(18),a=n(3),s=n(17),u=n(72),l=n(8),c=l("iterator"),f=l("toStringTag"),d=u.Array,h={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},p=i(h),g=0;g<p.length;g++){var m,v=p[g],y=h[v],b=a[v],_=b&&b.prototype;if(_&&(_[c]||s(_,c,d),_[f]||s(_,f,v),u[v]=d,y))for(m in r)_[m]||o(_,m,r[m],!0)}},function(t,e,n){var r=n(1),i=n(152);r(r.G+r.B,{setImmediate:i.set,clearImmediate:i.clear})},function(t,e,n){var r=n(3),i=n(1),o=n(106),a=[].slice,s=/MSIE .\./.test(o),u=function(t){return function(e,n){var r=arguments.length>2,i=!!r&&a.call(arguments,2);return t(r?function(){("function"==typeof e?e:Function(e)).apply(this,i)}:e,n)}};i(i.G+i.B+i.F*s,{setTimeout:u(r.setTimeout),setInterval:u(r.setInterval)})},function(t,e,n){n(520),n(459),n(461),n(460),n(463),n(465),n(470),n(464),n(462),n(472),n(471),n(467),n(468),n(466),n(458),n(469),n(473),n(474),n(426),n(428),n(427),n(476),n(475),n(446),n(456),n(457),n(447),n(448),n(449),n(450),n(451),n(452),n(453),n(454),n(455),n(429),n(430),n(431),n(432),n(433),n(434),n(435),n(436),n(437),n(438),n(439),n(440),n(441),n(442),n(443),n(444),n(445),n(507),n(512),n(519),n(510),n(502),n(503),n(508),n(513),n(515),n(498),n(499),n(500),n(501),n(504),n(505),n(506),n(509),n(511),n(514),n(516),n(517),n(518),n(421),n(423),n(422),n(425),n(424),n(410),n(408),n(414),n(411),n(417),n(419),n(407),n(413),n(404),n(418),n(402),n(416),n(415),n(409),n(412),n(401),n(403),n(406),n(405),n(420),n(156),n(492),n(230),n(497),n(231),n(493),n(494),n(495),n(496),n(477),n(229),n(232),n(233),n(532),n(521),n(522),n(527),n(530),n(531),n(525),n(528),n(526),n(529),n(523),n(524),n(478),n(479),n(480),n(481),n(482),n(485),n(483),n(484),n(486),n(487),n(488),n(489),n(491),n(490),n(535),n(533),n(534),n(576),n(579),n(578),n(580),n(581),n(577),n(582),n(583),n(557),n(560),n(556),n(554),n(555),n(558),n(559),n(541),n(575),n(540),n(574),n(586),n(588),n(539),n(573),n(585),n(587),n(538),n(584),n(537),n(542),n(543),n(544),n(545),n(546),n(548),n(547),n(549),n(550),n(551),n(553),n(552),n(562),n(563),n(564),n(565),n(567),n(566),n(569),n(568),n(570),n(571),n(572),n(536),n(561),n(591),n(590),n(589),t.exports=n(32)},function(t,e,n){!function(e,r){t.exports=r(n(234))}(0,function(t){"use strict";var e=function(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}(t),n={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(t,e){return"W"===e?t+"周":t+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(t,e){var n=100*t+e;return n<600?"凌晨":n<900?"早上":n<1100?"上午":n<1300?"中午":n<1800?"下午":"晚上"}};return e.default.locale(n,null,!0),n})},function(t,e,n){!function(e,n){t.exports=n()}(0,function(){"use strict";return function(t,e,n){function r(t,e,n,r){return i.fromToBase(t,e,n,r)}t=t||{};var i=e.prototype,o={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};n.en.relativeTime=o,i.fromToBase=function(e,r,i,a,s){for(var u,l,c,f=i.$locale().relativeTime||o,d=t.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],h=d.length,p=0;p<h;p+=1){var g=d[p];g.d&&(u=a?n(e).diff(i,g.d,!0):i.diff(e,g.d,!0));var m=(t.rounding||Math.round)(Math.abs(u));if(c=u>0,m<=g.r||!g.r){m<=1&&p>0&&(g=d[p-1]);var v=f[g.l];s&&(m=s(""+m)),l="string"==typeof v?v.replace("%d",m):v(m,r,g.l,c);break}}if(r)return l;var y=c?f.future:f.past;return"function"==typeof y?y(l):y.replace("%s",l)},i.to=function(t,e){return r(t,e,this,!0)},i.from=function(t,e){return r(t,e,this)};var a=function(t){return t.$u?n.utc():n()};i.toNow=function(t){return this.to(a(this),t)},i.fromNow=function(t){return this.from(a(this),t)}}})},function(t,e,n){"use strict";function r(t){return!!t&&"object"==typeof t}function i(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||o(t)}function o(t){return t.$$typeof===h}function a(t){return Array.isArray(t)?[]:{}}function s(t,e){return e&&!0===e.clone&&f(t)?c(a(t),t,e):t}function u(t,e,n){var r=t.slice();return e.forEach(function(e,i){void 0===r[i]?r[i]=s(e,n):f(e)?r[i]=c(t[i],e,n):-1===t.indexOf(e)&&r.push(s(e,n))}),r}function l(t,e,n){var r={};return f(t)&&Object.keys(t).forEach(function(e){r[e]=s(t[e],n)}),Object.keys(e).forEach(function(i){f(e[i])&&t[i]?r[i]=c(t[i],e[i],n):r[i]=s(e[i],n)}),r}function c(t,e,n){var r=Array.isArray(e),i=Array.isArray(t),o=n||{arrayMerge:u};if(r===i)return r?(o.arrayMerge||u)(t,e,n):l(t,e,n);return s(e,n)}var f=function(t){return r(t)&&!i(t)},d="function"==typeof Symbol&&Symbol.for,h=d?Symbol.for("react.element"):60103;c.all=function(t,e){if(!Array.isArray(t)||t.length<2)throw new Error("first argument should be an array with at least two elements");return t.reduce(function(t,n){return c(t,n,e)})};var p=c;t.exports=p},function(t,e,n){"use strict";var r=n(254)(),i=n(67),o=r&&i("%Object.defineProperty%",!0);if(o)try{o({},"a",{value:1})}catch(t){o=!1}var a=i("%SyntaxError%"),s=i("%TypeError%"),u=n(253);t.exports=function(t,e,n){if(!t||"object"!=typeof t&&"function"!=typeof t)throw new s("`obj` must be an object or a function`");if("string"!=typeof e&&"symbol"!=typeof e)throw new s("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new s("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new s("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new s("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new s("`loose`, if provided, must be a boolean");var r=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,l=arguments.length>5?arguments[5]:null,c=arguments.length>6&&arguments[6],f=!!u&&u(t,e);if(o)o(t,e,{configurable:null===l&&f?f.configurable:!l,enumerable:null===r&&f?f.enumerable:!r,value:n,writable:null===i&&f?f.writable:!i});else{if(!c&&(r||i||l))throw new a("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");t[e]=n}}},function(t,e,n){/*
  14. @license
  15. dhtmlxGantt v.7.1.13 Standard
  16. This version of dhtmlxGantt is distributed under GPL 2.0 license and can be legally used in GPL projects.
  17. To use dhtmlxGantt in non-GPL projects (and get Pro version of the product), please obtain Commercial/Enterprise or Ultimate license on our site https://dhtmlx.com/docs/products/dhtmlxGantt/#licensing or contact us at sales@dhtmlx.com
  18. (c) XB Software Ltd.
  19. */
  20. !function(e,n){t.exports=n()}(window,function(){return function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var i in t)e.d(r,i,function(e){return t[e]}.bind(null,i));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/codebase/",e(e.s=252)}([function(t,e,n){function r(t){"@babel/helpers - typeof";return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var i,o=n(2),a={}.constructor.toString();t.exports={copy:function t(e){var n,i;if(e&&"object"==r(e))switch(!0){case o.isDate(e):i=new Date(e);break;case o.isArray(e):for(i=new Array(e.length),n=0;n<e.length;n++)i[n]=t(e[n]);break;default:for(n in i=function(t){return t.constructor.toString()!==a}(e)?Object.create(e):{},e)Object.prototype.hasOwnProperty.apply(e,[n])&&(i[n]=t(e[n]))}return i||e},defined:function(t){return void 0!==t},mixin:function(t,e,n){for(var r in e)(void 0===t[r]||n)&&(t[r]=e[r]);return t},uid:function(){return i||(i=(new Date).valueOf()),++i},bind:function(t,e){return t.bind?t.bind(e):function(){return t.apply(e,arguments)}},event:function(t,e,n,r){t.addEventListener?t.addEventListener(e,n,void 0!==r&&r):t.attachEvent&&t.attachEvent("on"+e,n)},eventRemove:function(t,e,n,r){t.removeEventListener?t.removeEventListener(e,n,void 0!==r&&r):t.detachEvent&&t.detachEvent("on"+e,n)}}},function(t,e){function n(t){var e=0,n=0,r=0,i=0;if(t.getBoundingClientRect){var o=t.getBoundingClientRect(),a=document.body,s=document.documentElement||document.body.parentNode||document.body,u=window.pageYOffset||s.scrollTop||a.scrollTop,l=window.pageXOffset||s.scrollLeft||a.scrollLeft,c=s.clientTop||a.clientTop||0,f=s.clientLeft||a.clientLeft||0;e=o.top+u-c,n=o.left+l-f,r=document.body.offsetWidth-o.right,i=document.body.offsetHeight-o.bottom}else{for(;t;)e+=parseInt(t.offsetTop,10),n+=parseInt(t.offsetLeft,10),t=t.offsetParent;r=document.body.offsetWidth-t.offsetWidth-n,i=document.body.offsetHeight-t.offsetHeight-e}return{y:Math.round(e),x:Math.round(n),width:t.offsetWidth,height:t.offsetHeight,right:Math.round(r),bottom:Math.round(i)}}function r(t){var e=!1,n=!1;if(window.getComputedStyle){var r=window.getComputedStyle(t,null);e=r.display,n=r.visibility}else t.currentStyle&&(e=t.currentStyle.display,n=t.currentStyle.visibility);return"none"!=e&&"hidden"!=n}function i(t){return!isNaN(t.getAttribute("tabindex"))&&1*t.getAttribute("tabindex")>=0}function o(t){return!{a:!0,area:!0}[t.nodeName.loLowerCase()]||!!t.getAttribute("href")}function a(t){return!{input:!0,select:!0,textarea:!0,button:!0,object:!0}[t.nodeName.toLowerCase()]||!t.hasAttribute("disabled")}function s(t){if(!t)return"";var e=t.className||"";return e.baseVal&&(e=e.baseVal),e.indexOf||(e=""),l(e)}function u(t){var e;return t.tagName?e=t:(e=(t=t||window.event).target||t.srcElement).shadowRoot&&t.composedPath&&(e=t.composedPath()[0]),e}function l(t){return(String.prototype.trim||function(){return this.replace(/^\s+|\s+$/g,"")}).apply(t)}function c(){return document.head.createShadowRoot||document.head.attachShadow}function f(t){if(!t)return document.body;if(!c())return document.body;for(;t.parentNode&&(t=t.parentNode);)if(t instanceof ShadowRoot)return t.host;return document.body}var d;t.exports={getNodePosition:n,getFocusableNodes:function(t){for(var e=t.querySelectorAll(["a[href]","area[href]","input","select","textarea","button","iframe","object","embed","[tabindex]","[contenteditable]"].join(", ")),n=Array.prototype.slice.call(e,0),s=0;s<n.length;s++)n[s].$position=s;for(n.sort(function(t,e){return 0===t.tabIndex&&0!==e.tabIndex?1:0!==t.tabIndex&&0===e.tabIndex?-1:t.tabIndex===e.tabIndex?t.$position-e.$position:t.tabIndex<e.tabIndex?-1:1}),s=0;s<n.length;s++){var u=n[s];(i(u)||a(u)||o(u))&&r(u)||(n.splice(s,1),s--)}return n},getScrollSize:function(){var t=document.createElement("div");t.style.cssText="visibility:hidden;position:absolute;left:-1000px;width:100px;padding:0px;margin:0px;height:110px;min-height:100px;overflow-y:scroll;",document.body.appendChild(t);var e=t.offsetWidth-t.clientWidth;return document.body.removeChild(t),e},getClassName:s,addClassName:function(t,e){e&&-1===t.className.indexOf(e)&&(t.className+=" "+e)},removeClassName:function(t,e){e=e.split(" ");for(var n=0;n<e.length;n++){var r=new RegExp("\\s?\\b"+e[n]+"\\b(?![-_.])","");t.className=t.className.replace(r,"")}},insertNode:function(t,e){d||(d=document.createElement("div")),d.innerHTML=e;var n=d.firstChild;return t.appendChild(n),n},removeNode:function(t){t&&t.parentNode&&t.parentNode.removeChild(t)},getChildNodes:function(t,e){for(var n=t.childNodes,r=n.length,i=[],o=0;o<r;o++){var a=n[o];a.className&&-1!==a.className.indexOf(e)&&i.push(a)}return i},toNode:function(t){return"string"==typeof t?document.getElementById(t)||document.querySelector(t)||document.body:t||document.body},locateClassName:function(t,e,n){var r=u(t),i="";for(void 0===n&&(n=!0);r;){if(i=s(r)){var o=i.indexOf(e);if(o>=0){if(!n)return r;var a=0===o||!l(i.charAt(o-1)),c=o+e.length>=i.length||!l(i.charAt(o+e.length));if(a&&c)return r}}r=r.parentNode}return null},locateAttribute:function(t,e){if(e){for(var n=u(t);n;){if(n.getAttribute&&n.getAttribute(e))return n;n=n.parentNode}return null}},getTargetNode:u,getRelativeEventPosition:function(t,e){var r=document.documentElement,i=n(e);return{x:t.clientX+r.scrollLeft-r.clientLeft-i.x+e.scrollLeft,y:t.clientY+r.scrollTop-r.clientTop-i.y+e.scrollTop}},isChildOf:function(t,e){if(!t||!e)return!1;for(;t&&t!=e;)t=t.parentNode;return t===e},hasClass:function(t,e){return"classList"in t?t.classList.contains(e):new RegExp("\\b"+e+"\\b").test(t.className)},closest:function(t,e){if(t.closest)return t.closest(e);if(t.matches||t.msMatchesSelector||t.webkitMatchesSelector){var n=t;if(!document.documentElement.contains(n))return null;do{if((n.matches||n.msMatchesSelector||n.webkitMatchesSelector).call(n,e))return n;n=n.parentElement||n.parentNode}while(null!==n&&1===n.nodeType);return null}return console.error("Your browser is not supported"),null},getRootNode:f,hasShadowParent:function(t){return!!f(t)},isShadowDomSupported:c,getActiveElement:function(){var t=document.activeElement;return t.shadowRoot&&(t=t.shadowRoot.activeElement),t===document.body&&document.getSelection&&(t=document.getSelection().focusNode||document.body),t}}},function(t,e){function n(t){"@babel/helpers - typeof";return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function r(t){return!(!t||"object"!==n(t)||!(t.getFullYear&&t.getMonth&&t.getDate))}function i(t,e){var n=[];if(t.filter)return t.filter(e);for(var r=0;r<t.length;r++)e(t[r],r)&&(n[n.length]=t[r]);return n}function o(t){return 0===t}var a={second:1,minute:60,hour:3600,day:86400,week:604800,month:2592e3,quarter:7776e3,year:31536e3};t.exports={getSecondsInUnit:function(t){return a[t]||a.hour},forEach:function(t,e){if(t.forEach)t.forEach(e);else for(var n=t.slice(),r=0;r<n.length;r++)e(n[r],r)},arrayMap:function(t,e){if(t.map)return t.map(e);for(var n=t.slice(),r=[],i=0;i<n.length;i++)r.push(e(n[i],i));return r},arrayIncludes:function(t,e){if(t.includes)return t.includes(e);for(var n=0;n<t.length;n++)if(t[n]===e)return!0;return!1},arrayFind:function(t,e){if(t.find)return t.find(e);for(var n=0;n<t.length;n++)if(e(t[n],n))return t[n]},arrayFilter:i,arrayDifference:function(t,e){return i(t,function(t,n){return!e(t,n)})},arraySome:function(t,e){if(0===t.length)return!1;for(var n=0;n<t.length;n++)if(e(t[n],n,t))return!0;return!1},hashToArray:function(t){var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(t[n]);return e},sortArrayOfHash:function(t,e,n){var r=function(t,e){return t<e};t.sort(function(t,i){return t[e]===i[e]?0:n?r(t[e],i[e]):r(i[e],t[e])})},throttle:function(t,e){var n=!1;return function(){n||(t.apply(null,arguments),n=!0,setTimeout(function(){n=!1},e))}},isArray:function(t){return Array.isArray?Array.isArray(t):t&&void 0!==t.length&&t.pop&&t.push},isDate:r,isValidDate:function(t){return r(t)&&!isNaN(t.getTime())},isStringObject:function(t){return t&&"object"===n(t)&&"function String() { [native code] }"===Function.prototype.toString.call(t.constructor)},isNumberObject:function(t){return t&&"object"===n(t)&&"function Number() { [native code] }"===Function.prototype.toString.call(t.constructor)},isBooleanObject:function(t){return t&&"object"===n(t)&&"function Boolean() { [native code] }"===Function.prototype.toString.call(t.constructor)},delay:function(t,e){var n,r=function r(){r.$cancelTimeout(),r.$pending=!0;var i=Array.prototype.slice.call(arguments);n=setTimeout(function(){t.apply(this,i),r.$pending=!1},e)};return r.$pending=!1,r.$cancelTimeout=function(){clearTimeout(n),r.$pending=!1},r.$execute=function(){var e=Array.prototype.slice.call(arguments);t.apply(this,e),r.$cancelTimeout()},r},objectKeys:function(t){if(Object.keys)return Object.keys(t);var e,n=[];for(e in t)Object.prototype.hasOwnProperty.call(t,e)&&n.push(e);return n},isEventable:function(t){return t.attachEvent&&t.detachEvent},replaceValidZeroId:function(t,e){return o(t)&&!o(e)&&(t="0"),t},checkZeroId:o,findBinary:function(t,e){for(var n,r,i,o=0,a=t.length-1;o<=a;)if(r=+t[n=Math.floor((o+a)/2)],i=+t[n-1],r<e)o=n+1;else{if(!(r>e)){for(;+t[n]==+t[n+1];)n++;return n}if(!isNaN(i)&&i<e)return n-1;a=n-1}return t.length-1}}},function(t,e){t.exports=function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}},function(t,e){var n=function(){this._silent_mode=!1,this.listeners={}};n.prototype={_silentStart:function(){this._silent_mode=!0},_silentEnd:function(){this._silent_mode=!1}};var r=function(t){var e={},n=0,r=function(){var n=!0;for(var r in e){var i=e[r].apply(t,arguments);n=n&&i}return n};return r.addEvent=function(t,i){if("function"==typeof t){var o;if(i&&i.id?o=i.id:(o=n,n++),i&&i.once){var a=t;t=function(){a(),r.removeEvent(o)}}return e[o]=t,o}return!1},r.removeEvent=function(t){delete e[t]},r.clear=function(){e={}},r};t.exports=function(t){var e=new n;t.attachEvent=function(t,n,i){t="ev_"+t.toLowerCase(),e.listeners[t]||(e.listeners[t]=r(this)),i&&i.thisObject&&(n=n.bind(i.thisObject));var o=t+":"+e.listeners[t].addEvent(n,i);return i&&i.id&&(o=i.id),o},t.attachAll=function(t){this.attachEvent("listen_all",t)},t.callEvent=function(t,n){if(e._silent_mode)return!0;var r="ev_"+t.toLowerCase(),i=e.listeners;return i.ev_listen_all&&i.ev_listen_all.apply(this,[t].concat(n)),!i[r]||i[r].apply(this,n)},t.checkEvent=function(t){return!!e.listeners["ev_"+t.toLowerCase()]},t.detachEvent=function(t){if(t){var n=e.listeners;for(var r in n)n[r].removeEvent(t);var i=t.split(":");if(n=e.listeners,2===i.length){var o=i[0],a=i[1];n[o]&&n[o].removeEvent(a)}}},t.detachAllEvents=function(){for(var t in e.listeners)e.listeners[t].clear()}}},function(t,e){t.exports=function(t,e,n,r,i){var o=e.getItemIndexByTopPosition(i.y)||0,a=e.getItemIndexByTopPosition(i.y_end)||r.count();return{start:Math.max(0,o-1),end:Math.min(r.count(),a+1)}}},function(t,e){function n(){console.log("Method is not implemented.")}function r(){}r.prototype.render=n,r.prototype.set_value=n,r.prototype.get_value=n,r.prototype.focus=n,t.exports=function(t){return r}},function(t,e){t.exports=function(t){var e=function(){};return e.prototype={show:function(t,e,n,r){},hide:function(){},set_value:function(t,e,n,r){this.get_input(r).value=t},get_value:function(t,e,n){return this.get_input(n).value||""},is_changed:function(t,e,n,r){var i=this.get_value(e,n,r);return i&&t&&i.valueOf&&t.valueOf?i.valueOf()!=t.valueOf():i!=t},is_valid:function(t,e,n,r){return!0},save:function(t,e,n){},get_input:function(t){return t.querySelector("input")},focus:function(t){var e=this.get_input(t);e&&(e.focus&&e.focus(),e.select&&e.select())}},e}},function(t,e){var n="undefined"!=typeof window,r={isIE:n&&(navigator.userAgent.indexOf("MSIE")>=0||navigator.userAgent.indexOf("Trident")>=0),isIE6:n&&!XMLHttpRequest&&navigator.userAgent.indexOf("MSIE")>=0,isIE7:n&&navigator.userAgent.indexOf("MSIE 7.0")>=0&&navigator.userAgent.indexOf("Trident")<0,isIE8:n&&navigator.userAgent.indexOf("MSIE 8.0")>=0&&navigator.userAgent.indexOf("Trident")>=0,isOpera:n&&navigator.userAgent.indexOf("Opera")>=0,isChrome:n&&navigator.userAgent.indexOf("Chrome")>=0,isKHTML:n&&(navigator.userAgent.indexOf("Safari")>=0||navigator.userAgent.indexOf("Konqueror")>=0),isFF:n&&navigator.userAgent.indexOf("Firefox")>=0,isIPad:n&&navigator.userAgent.search(/iPad/gi)>=0,isEdge:n&&-1!=navigator.userAgent.indexOf("Edge"),isNode:!n||"undefined"==typeof navigator};t.exports=r},function(t,e,n){var r=n(0),i=n(4),o=n(1),a=function(){"use strict";function t(t,e,n,a){t&&(this.$container=o.toNode(t),this.$parent=t),this.$config=r.mixin(e,{headerHeight:33}),this.$gantt=a,this.$domEvents=a._createDomEventScope(),this.$id=e.id||"c"+r.uid(),this.$name="cell",this.$factory=n,i(this)}return t.prototype.destructor=function(){this.$parent=this.$container=this.$view=null,this.$gantt.$services.getService("mouseEvents").detach("click","gantt_header_arrow",this._headerClickHandler),this.$domEvents.detachAll(),this.callEvent("onDestroy",[]),this.detachAllEvents()},t.prototype.cell=function(t){return null},t.prototype.scrollTo=function(t,e){var n=this.$view;this.$config.html&&(n=this.$view.firstChild),1*t==t&&(n.scrollLeft=t),1*e==e&&(n.scrollTop=e)},t.prototype.clear=function(){this.getNode().innerHTML="",this.getNode().className="gantt_layout_content",this.getNode().style.padding="0"},t.prototype.resize=function(t){if(this.$parent)return this.$parent.resize(t);!1===t&&(this.$preResize=!0);var e=this.$container,n=e.offsetWidth,r=e.offsetHeight,i=this.getSize();e===document.body&&(n=document.body.offsetWidth,r=document.body.offsetHeight),n<i.minWidth&&(n=i.minWidth),n>i.maxWidth&&(n=i.maxWidth),r<i.minHeight&&(r=i.minHeight),r>i.maxHeight&&(r=i.maxHeight),this.setSize(n,r),this.$preResize,this.$preResize=!1},t.prototype.hide=function(){this._hide(!0),this.resize()},t.prototype.show=function(t){this._hide(!1),t&&this.$parent&&this.$parent.show(),this.resize()},t.prototype._hide=function(t){if(!0===t&&this.$view.parentNode)this.$view.parentNode.removeChild(this.$view);else if(!1===t&&!this.$view.parentNode){var e=this.$parent.cellIndex(this.$id);this.$parent.moveView(this,e)}this.$config.hidden=t},t.prototype.$toHTML=function(t,e){void 0===t&&(t=""),e=[e||"",this.$config.css||""].join(" ");var n=this.$config,r="";return n.raw?t="string"==typeof n.raw?n.raw:"":(t||(t="<div class='gantt_layout_content' "+(e?" class='"+e+"' ":"")+" >"+(n.html||"")+"</div>"),n.header&&(r="<div class='gantt_layout_header'>"+(n.canCollapse?"<div class='gantt_layout_header_arrow'></div>":"")+"<div class='gantt_layout_header_content'>"+n.header+"</div></div>")),"<div class='gantt_layout_cell "+e+"' data-cell-id='"+this.$id+"'>"+r+t+"</div>"},t.prototype.$fill=function(t,e){this.$view=t,this.$parent=e,this.init()},t.prototype.getNode=function(){return this.$view.querySelector("gantt_layout_cell")||this.$view},t.prototype.init=function(){var t=this;this._headerClickHandler=function(e){o.locateAttribute(e,"data-cell-id")==t.$id&&t.toggle()},this.$gantt.$services.getService("mouseEvents").delegate("click","gantt_header_arrow",this._headerClickHandler),this.callEvent("onReady",[])},t.prototype.toggle=function(){this.$config.collapsed=!this.$config.collapsed,this.resize()},t.prototype.getSize=function(){var t={height:this.$config.height||0,width:this.$config.width||0,gravity:this.$config.gravity||1,minHeight:this.$config.minHeight||0,minWidth:this.$config.minWidth||0,maxHeight:this.$config.maxHeight||1e11,maxWidth:this.$config.maxWidth||1e11};if(this.$config.collapsed){var e="x"===this.$config.mode;t[e?"width":"height"]=t[e?"maxWidth":"maxHeight"]=this.$config.headerHeight}return t},t.prototype.getContentSize=function(){var t=this.$lastSize.contentX;t!==1*t&&(t=this.$lastSize.width);var e=this.$lastSize.contentY;return e!==1*e&&(e=this.$lastSize.height),{width:t,height:e}},t.prototype._getBorderSizes=function(){var t={top:0,right:0,bottom:0,left:0,horizontal:0,vertical:0};return this._currentBorders&&(this._currentBorders[this._borders.left]&&(t.left=1,t.horizontal++),this._currentBorders[this._borders.right]&&(t.right=1,t.horizontal++),this._currentBorders[this._borders.top]&&(t.top=1,t.vertical++),this._currentBorders[this._borders.bottom]&&(t.bottom=1,t.vertical++)),t},t.prototype.setSize=function(t,e){this.$view.style.width=t+"px",this.$view.style.height=e+"px";var n=this._getBorderSizes(),r=e-n.vertical,i=t-n.horizontal;this.$lastSize={x:t,y:e,contentX:i,contentY:r},this.$config.header?this._sizeHeader():this._sizeContent()},t.prototype._borders={left:"gantt_layout_cell_border_left",right:"gantt_layout_cell_border_right",top:"gantt_layout_cell_border_top",bottom:"gantt_layout_cell_border_bottom"},t.prototype._setBorders=function(t,e){e||(e=this);var n=e.$view;for(var r in this._borders)o.removeClassName(n,this._borders[r]);"string"==typeof t&&(t=[t]);var i={};for(r=0;r<t.length;r++)o.addClassName(n,t[r]),i[t[r]]=!0;e._currentBorders=i},t.prototype._sizeContent=function(){var t=this.$view.childNodes[0];t&&"gantt_layout_content"==t.className&&(t.style.height=this.$lastSize.contentY+"px")},t.prototype._sizeHeader=function(){var t=this.$lastSize;t.contentY-=this.$config.headerHeight;var e=this.$view.childNodes[0],n=this.$view.childNodes[1],r="x"===this.$config.mode;if(this.$config.collapsed)if(n.style.display="none",r){e.className="gantt_layout_header collapsed_x",e.style.width=t.y+"px";var i=Math.floor(t.y/2-t.x/2);e.style.transform="rotate(90deg) translate("+i+"px, "+i+"px)",n.style.display="none"}else e.className="gantt_layout_header collapsed_y";else e.className=r?"gantt_layout_header":"gantt_layout_header vertical",e.style.width="auto",e.style.transform="",n.style.display="",n.style.height=t.contentY+"px";e.style.height=this.$config.headerHeight+"px"},t}();t.exports=a},function(t,e,n){var r=n(8);t.exports=function(t){return r.isNode||!t.$root}},function(t,e){t.exports=function(t,e,n,r){return!!((r=e?e.config:r)&&r.placeholder_task&&n.exists(t))&&n.getItem(t).type===r.types.placeholder}},function(t,e,n){var r=n(3),i=n(29);t.exports=function(t){function e(){return o.apply(this,arguments)||this}var o=n(6)(t);return r(e,o),e.prototype.render=function(t){var e="<div class='gantt_cal_ltext' style='height:"+(t.height||"23")+"px;'>";return e+=i.getHtmlSelect(t.options,[{key:"style",value:"width:100%;"}]),e+="</div>"},e.prototype.set_value=function(t,e,n,r){var i=t.firstChild;!i._dhx_onchange&&r.onchange&&(i.onchange=r.onchange,i._dhx_onchange=!0),void 0===e&&(e=(i.options[0]||{}).value),i.value=e||""},e.prototype.get_value=function(t){return t.firstChild.value},e.prototype.focus=function(e){var n=e.firstChild;t._focus(n,!0)},e}},function(t,e){t.exports=function(t){return t.config.smart_rendering&&t._smart_render}},function(t,e){function n(t){"@babel/helpers - typeof";return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var r;r=function(){return this}();try{r=r||Function("return this")()||(0,eval)("this")}catch(t){"object"===("undefined"==typeof window?"undefined":n(window))&&(r=window)}t.exports=r},function(t,e,n){(function(e){var n;n="undefined"!=typeof window?window:e,t.exports=n}).call(this,n(14))},function(t,e,n){var r=n(0);t.exports={createDropTargetObject:function(t){var e={targetParent:null,targetIndex:0,targetId:null,child:!1,nextSibling:!1,prevSibling:!1};return t&&r.mixin(e,t,!0),e},nextSiblingTarget:function(t,e,n){var r=this.createDropTargetObject();return r.targetId=e,r.nextSibling=!0,r.targetParent=n.getParent(r.targetId),r.targetIndex=n.getBranchIndex(r.targetId),(n.getParent(t)!=r.targetParent||r.targetIndex<n.getBranchIndex(t))&&(r.targetIndex+=1),r},prevSiblingTarget:function(t,e,n){var r=this.createDropTargetObject();return r.targetId=e,r.prevSibling=!0,r.targetParent=n.getParent(r.targetId),r.targetIndex=n.getBranchIndex(r.targetId),n.getParent(t)==r.targetParent&&r.targetIndex>n.getBranchIndex(t)&&(r.targetIndex-=1),r},firstChildTarget:function(t,e,n){var r=this.createDropTargetObject();return r.targetId=e,r.targetParent=r.targetId,r.targetIndex=0,r.child=!0,r},lastChildTarget:function(t,e,n){var r=n.getChildren(e),i=this.createDropTargetObject();return i.targetId=r[r.length-1],i.targetParent=e,i.targetIndex=r.length,i.nextSibling=!0,i}}},function(t,e,n){var r=n(13);t.exports=function(t,e,n,i){var o=e.width[t];if(o<=0)return!1;if(!i.config.smart_rendering||r(i))return!0;var a=e.left[t]-o,s=e.left[t]+o;return a<=n.x_end&&s>=n.x}},function(t,e){t.exports=function(t,e){var n=0,r=t.left.length-1;if(e)for(var i=0;i<t.left.length;i++){var o=t.left[i];if(o<e.x&&(n=i),o>e.x_end){r=i;break}}return{start:n,end:r}}},function(t,e){t.exports=function(t,e,n){return{top:e.getItemTop(t.id),height:e.getItemHeight(t.id),left:0,right:1/0}}},function(t,e){t.exports=function(t){function e(e,o,a){if(!t._isAllowedUnscheduledTask(e)&&t._isTaskInTimelineLimits(e)){var s=o.getItemPosition(e),u=a,l=o.$getTemplates(),c=t.getTaskType(e.type),f=o.getBarHeight(e.id,c==u.types.milestone),d=0;c==u.types.milestone&&(d=(f-s.height)/2);var h=Math.floor((o.getItemHeight(e.id)-f)/2);c==u.types.milestone&&(s.left-=Math.round(f/2),s.width=f);var p=document.createElement("div"),g=Math.round(s.width);o.$config.item_attribute&&(p.setAttribute(o.$config.item_attribute,e.id),p.setAttribute(o.$config.bind+"_id",e.id)),u.show_progress&&c!=u.types.milestone&&function(e,n,r,i,o){var a=1*e.progress||0;r=Math.max(r-2,0);var s=document.createElement("div"),u=Math.round(r*a);u=Math.min(r,u),e.progressColor&&(s.style.backgroundColor=e.progressColor,s.style.opacity=1),s.style.width=u+"px",s.className="gantt_task_progress",s.innerHTML=o.progress_text(e.start_date,e.end_date,e),i.rtl&&(s.style.position="absolute",s.style.right="0px");var l=document.createElement("div");if(l.className="gantt_task_progress_wrapper",l.appendChild(s),n.appendChild(l),t.config.drag_progress&&!t.isReadonly(e)){var c=document.createElement("div"),f=u;i.rtl&&(f=r-u),c.style.left=f+"px",c.className="gantt_task_progress_drag",s.appendChild(c),n.appendChild(c)}}(e,p,g,u,l);var m=function(e,n,r){var i=document.createElement("div");return t.getTaskType(e.type)!=t.config.types.milestone?i.innerHTML=r.task_text(e.start_date,e.end_date,e):t.getTaskType(e.type)==t.config.types.milestone&&n&&(i.style.height=i.style.width=n+"px"),i.className="gantt_task_content",i}(e,g,l);e.textColor&&(m.style.color=e.textColor),p.appendChild(m);var v=function(e,n,r,i){var o=i.$getConfig(),a=["gantt_task_line"];n&&a.push(n);var s=t.getState(),u=t.getTask(r);if(t.getTaskType(u.type)==o.types.milestone?a.push("gantt_milestone"):t.getTaskType(u.type)==o.types.project&&a.push("gantt_project"),a.push("gantt_bar_"+t.getTaskType(u.type)),t.isSummaryTask(u)&&a.push("gantt_dependent_task"),t.isSplitTask(u)&&(o.open_split_tasks&&!u.$open||!o.open_split_tasks)&&a.push("gantt_split_parent"),o.select_task&&t.isSelectedTask(r)&&a.push("gantt_selected"),r==s.drag_id&&(a.push("gantt_drag_"+s.drag_mode),s.touch_drag&&a.push("gantt_touch_"+s.drag_mode)),s.link_source_id==r&&a.push("gantt_link_source"),s.link_target_id==r&&a.push("gantt_link_target"),o.highlight_critical_path&&t.isCriticalTask&&t.isCriticalTask(u)&&a.push("gantt_critical_task"),s.link_landing_area&&s.link_target_id&&s.link_source_id&&s.link_target_id!=s.link_source_id&&(s.link_target_id==r||s.link_source_id==r)){var l=s.link_source_id,c=s.link_from_start,f=s.link_to_start,d=t.isLinkAllowed(l,r,c,f),h="";h=d?f?"link_start_allow":"link_finish_allow":f?"link_start_deny":"link_finish_deny",a.push(h)}return a.join(" ")}(0,l.task_class(e.start_date,e.end_date,e),e.id,o);(e.color||e.progressColor||e.textColor)&&(v+=" gantt_task_inline_color"),s.width<20&&(v+=" gantt_thin_task"),p.className=v;var y=["left:"+s.left+"px","top:"+(h+s.top)+"px","height:"+(c==u.types.milestone?s.height:f)+"px","line-height:"+Math.max(f<30?f-2:f,0)+"px","width:"+g+"px"];e.color&&y.push("background-color:"+e.color),e.textColor&&y.push("color:"+e.textColor),p.style.cssText=y.join(";");var b=function(t,e,i,o){var a="gantt_left "+r(!e.rtl,t),s=null;return o&&(s={type:"marginRight",value:o}),n(t,i.leftside_text,a,s)}(e,u,l,d);b&&p.appendChild(b),(b=function(t,e,i,o){var a="gantt_right "+r(!!e.rtl,t),s=null;return o&&(s={type:"marginLeft",value:o}),n(t,i.rightside_text,a,s)}(e,u,l,d))&&p.appendChild(b),t._waiAria.setTaskBarAttr(e,p);var _=t.getState();return t.isReadonly(e)||(u.drag_resize&&!t.isSummaryTask(e)&&c!=u.types.milestone&&i(p,"gantt_task_drag",e,function(t){var e=document.createElement("div");return e.className=t,e},u),u.drag_links&&u.show_links&&i(p,"gantt_link_control",e,function(t){var e=document.createElement("div");e.className=t,e.style.cssText=["height:"+f+"px","line-height:"+f+"px"].join(";");var n=document.createElement("div");n.className="gantt_link_point";var r=!1;return _.link_source_id&&u.touch&&(r=!0),n.style.display=r?"block":"",e.appendChild(n),e},u,d)),p}}function n(t,e,n,r){if(!e)return null;var i=e(t.start_date,t.end_date,t);if(!i)return null;var o=document.createElement("div");return o.className="gantt_side_content "+n,o.innerHTML=i,r&&(o.style[r.type]=Math.abs(r.value)+"px"),o}function r(e,n){var r=function(e){return e?{$source:[t.config.links.start_to_start],$target:[t.config.links.start_to_start,t.config.links.finish_to_start]}:{$source:[t.config.links.finish_to_start,t.config.links.finish_to_finish],$target:[t.config.links.finish_to_finish]}}(e);for(var i in r)for(var o=n[i],a=0;a<o.length;a++)for(var s=t.getLink(o[a]),u=0;u<r[i].length;u++)if(s.type==r[i][u])return"gantt_link_crossing";return""}function i(e,n,r,i,o,a){var s,u=t.getState();+r.start_date>=+u.min_date&&((s=i([n,o.rtl?"task_right":"task_left","task_start_date"].join(" "))).setAttribute("data-bind-property","start_date"),a&&(s.style.marginLeft=a+"px"),e.appendChild(s)),+r.end_date<=+u.max_date&&((s=i([n,o.rtl?"task_left":"task_right","task_end_date"].join(" "))).setAttribute("data-bind-property","end_date"),a&&(s.style.marginRight=a+"px"),e.appendChild(s))}return function(n,r,i){var o=(i=r.$getConfig()).type_renderers[t.getTaskType(n.type)],a=e;return o?o.call(t,n,function(e){return a.call(t,e,r,i)},r):a.call(t,n,r,i)}}},function(t,e){t.exports=function(t,e,n,r,i){if(!t.start_date||!t.end_date)return null;var o=n.getItemTop(t.id),a=n.getItemHeight(t.id);if(o>e.y_end||o+a<e.y)return!1;var s=n.posFromDate(t.start_date),u=n.posFromDate(t.end_date),l=Math.min(s,u)-200,c=Math.max(s,u)+200;return!(l>e.x_end||c<e.x)}},function(t,e,n){var r=n(26),i=n(4),o=n(0),a=n(2),s=n(35),u=n(104),l=function(t,e,n,a){this.$config=o.mixin({},e||{}),this.$scaleHelper=new r(a),this.$gantt=a,this._posFromDateCache={},this._timelineDragScroll=null,o.mixin(this,s(this)),i(this)};l.prototype={init:function(t){t.innerHTML+="<div class='gantt_task' style='width:inherit;height:inherit;'></div>",this.$task=t.childNodes[0],this.$task.innerHTML="<div class='gantt_task_scale'></div><div class='gantt_data_area'></div>",this.$task_scale=this.$task.childNodes[0],this.$task_data=this.$task.childNodes[1],this.$task_data.innerHTML="<div class='gantt_task_bg'></div><div class='gantt_links_area'></div><div class='gantt_bars_area'></div>",this.$task_bg=this.$task_data.childNodes[0],this.$task_links=this.$task_data.childNodes[1],this.$task_bars=this.$task_data.childNodes[2],this._tasks={col_width:0,width:[],full_width:0,trace_x:[],rendered:{}};var e=this.$getConfig(),n=e[this.$config.bind+"_attribute"],r=e[this.$config.bindLinks+"_attribute"];!n&&this.$config.bind&&(n="data-"+this.$config.bind+"-id"),!r&&this.$config.bindLinks&&(r="data-"+this.$config.bindLinks+"-id"),this.$config.item_attribute=n||null,this.$config.link_attribute=r||null;var i=this._createLayerConfig();this.$config.layers||(this.$config.layers=i.tasks),this.$config.linkLayers||(this.$config.linkLayers=i.links),this._attachLayers(this.$gantt),this.callEvent("onReady",[]),this.$gantt.ext.dragTimeline&&(this._timelineDragScroll=this.$gantt.ext.dragTimeline.create(),this._timelineDragScroll.attach(this))},setSize:function(t,e){var n=this.$getConfig();if(1*t===t&&(this.$config.width=t),1*e===e){this.$config.height=e;var r=Math.max(this.$config.height-n.scale_height);this.$task_data.style.height=r+"px"}this.refresh(),this.$task_bg.style.backgroundImage="",n.smart_rendering&&this.$config.rowStore?this.$task_bg.style.height=this.getTotalHeight()+"px":this.$task_bg.style.height="";for(var i=this._tasks,o=this.$task_data.childNodes,a=0,s=o.length;a<s;a++){var u=o[a];u.hasAttribute("data-layer")&&u.style&&(u.style.width=i.full_width+"px")}},isVisible:function(){return this.$parent&&this.$parent.$config?!this.$parent.$config.hidden:this.$task.offsetWidth},getSize:function(){var t=this.$getConfig(),e=this.$config.rowStore?this.getTotalHeight():0,n=this.isVisible()?this._tasks.full_width:0;return{x:this.isVisible()?this.$config.width:0,y:this.isVisible()?this.$config.height:0,contentX:this.isVisible()?n:0,contentY:this.isVisible()?t.scale_height+e:0,scrollHeight:this.isVisible()?e:0,scrollWidth:this.isVisible()?n:0}},scrollTo:function(t,e){if(this.isVisible()){var n=!1;this.$config.scrollTop=this.$config.scrollTop||0,this.$config.scrollLeft=this.$config.scrollLeft||0,1*e===e&&(this.$config.scrollTop=e,this.$task_data.scrollTop=this.$config.scrollTop,n=!0),1*t===t&&(this.$task.scrollLeft=t,this.$config.scrollLeft=this.$task.scrollLeft,this._refreshScales(),n=!0),n&&this.callEvent("onScroll",[this.$config.scrollLeft,this.$config.scrollTop])}},_refreshScales:function(){if(this.isVisible()&&this.$getConfig().smart_scales){var t=this.getViewPort(),e=this._scales;this.$task_scale.innerHTML=this._getScaleChunkHtml(e,t.x,t.x_end)}},getViewPort:function(){var t=this.$config.scrollLeft||0,e=this.$config.scrollTop||0,n=this.$config.height||0,r=this.$config.width||0;return{y:e,y_end:e+n,x:t,x_end:t+r,height:n,width:r}},_createLayerConfig:function(){var t=this,e=function(){return t.isVisible()};return{tasks:[{expose:!0,renderer:this.$gantt.$ui.layers.taskBar(),container:this.$task_bars,filter:[e,function(t,e){return!e.hide_bar}]},{renderer:this.$gantt.$ui.layers.taskSplitBar(),filter:[e],container:this.$task_bars,append:!0},{renderer:this.$gantt.$ui.layers.taskRollupBar(),filter:[e],container:this.$task_bars,append:!0},{renderer:this.$gantt.$ui.layers.taskBg(),container:this.$task_bg,filter:[e]}],links:[{expose:!0,renderer:this.$gantt.$ui.layers.link(),container:this.$task_links,filter:[e]}]}},_attachLayers:function(t){this._taskLayers=[],this._linkLayers=[];var e=this,n=this.$gantt.$services.getService("layers");if(this.$config.bind){this._bindStore();var r=n.getDataRender(this.$config.bind);r||(r=n.createDataRender({name:this.$config.bind,defaultContainer:function(){return e.$task_data}})),r.container=function(){return e.$task_data};for(var i=this.$config.layers,o=0;i&&o<i.length;o++){"string"==typeof(l=i[o])&&(l=this.$gantt.$ui.layers[l]()),("function"==typeof l||l&&l.render&&l.update)&&(l={renderer:l}),l.view=this;var a=r.addLayer(l);this._taskLayers.push(a),l.expose&&(this._taskRenderer=r.getLayer(a))}this._initStaticBackgroundRender()}if(this.$config.bindLinks){e.$config.linkStore=e.$gantt.getDatastore(e.$config.bindLinks);var s=n.getDataRender(this.$config.bindLinks);s||(s=n.createDataRender({name:this.$config.bindLinks,defaultContainer:function(){return e.$task_data}}));var u=this.$config.linkLayers;for(o=0;u&&o<u.length;o++){var l;"string"==typeof l&&(l=this.$gantt.$ui.layers[l]()),(l=u[o]).view=this;var c=s.addLayer(l);this._taskLayers.push(c),u[o].expose&&(this._linkRenderer=s.getLayer(c))}}},_initStaticBackgroundRender:function(){var t=this,e=u.create(),n=t.$config.rowStore;n&&(this._staticBgHandler=n.attachEvent("onStoreUpdated",function(n,r,i){if(null===n&&t.isVisible()){var o=t.$getConfig();if(o.static_background){var a=t.$gantt.getDatastore(t.$config.bind),s=t.$task_bg_static;s||((s=document.createElement("div")).className="gantt_task_bg",t.$task_bg_static=s,t.$task_bg.nextSibling?t.$task_data.insertBefore(s,t.$task_bg.nextSibling):t.$task_data.appendChild(s)),a&&e.render(s,o,t.getScale(),t.getTotalHeight(),t.getItemHeight(r?r.id:null))}else o.static_background&&t.$task_bg_static&&t.$task_bg_static.parentNode&&t.$task_bg_static.parentNode.removeChild(t.$task_bg_static)}}),this.attachEvent("onDestroy",function(){e.destroy()}),this._initStaticBackgroundRender=function(){})},_clearLayers:function(t){var e=this.$gantt.$services.getService("layers"),n=e.getDataRender(this.$config.bind),r=e.getDataRender(this.$config.bindLinks);if(this._taskLayers)for(var i=0;i<this._taskLayers.length;i++)n.removeLayer(this._taskLayers[i]);if(this._linkLayers)for(i=0;i<this._linkLayers.length;i++)r.removeLayer(this._linkLayers[i]);this._linkLayers=[],this._taskLayers=[]},_render_tasks_scales:function(){var t=this.$getConfig(),e="",n=0,r=0,i=this.$gantt.getState();if(this.isVisible()){var o=this.$scaleHelper,a=this._getScales();r=t.scale_height;var s=this.$config.width;"x"!=t.autosize&&"xy"!=t.autosize||(s=Math.max(t.autosize_min_width,0));var u=o.prepareConfigs(a,t.min_column_width,s,r-1,i.min_date,i.max_date,t.rtl),l=this._tasks=u[u.length-1];this._scales=u,this._posFromDateCache={},e=this._getScaleChunkHtml(u,0,this.$config.width),n=l.full_width+"px",r+="px"}this.$task_scale.style.height=r,this.$task_data.style.width=this.$task_scale.style.width=n,this.$task_scale.innerHTML=e},_getScaleChunkHtml:function(t,e,n){for(var r=[],i=this.$gantt.templates.scale_row_class,o=0;o<t.length;o++){var a="gantt_scale_line",s=i(t[o]);s&&(a+=" "+s),r.push('<div class="'+a+'" style="height:'+t[o].height+"px;position:relative;line-height:"+t[o].height+'px">'+this._prepareScaleHtml(t[o],e,n)+"</div>")}return r.join("")},_prepareScaleHtml:function(t,e,n){var r=this.$getConfig(),i=this.$gantt.templates,o=[],s=null,u=null,l=t.format||t.template||t.date;"string"==typeof l&&(l=this.$gantt.date.date_to_str(l));var c=0,f=t.count;!r.smart_scales||isNaN(e)||isNaN(n)||(c=a.findBinary(t.left,e),f=a.findBinary(t.left,n)+1),u=t.css||function(){},!t.css&&r.inherit_scale_class&&(u=i.scale_cell_class);for(var d=c;d<f&&t.trace_x[d];d++){s=new Date(t.trace_x[d]);var h=l.call(this,s),p=t.width[d],g=t.height,m=t.left[d],v="",y="",b="";if(p){v="width:"+p+"px;height:"+g+"px;"+(r.smart_scales?"position:absolute;left:"+m+"px":""),b="gantt_scale_cell"+(d==t.count-1?" gantt_last_cell":""),(y=u.call(this,s))&&(b+=" "+y);var _="<div class='"+b+"'"+this.$gantt._waiAria.getTimelineCellAttr(h)+" style='"+v+"'>"+h+"</div>";o.push(_)}}return o.join("")},dateFromPos:function(t){var e=this._tasks;if(t<0||t>e.full_width||!e.full_width)return null;var n=a.findBinary(this._tasks.left,t),r=this._tasks.left[n],i=e.width[n]||e.col_width,o=0;i&&(o=(t-r)/i,e.rtl&&(o=1-o));var s=0;return o&&(s=this._getColumnDuration(e,e.trace_x[n])),new Date(e.trace_x[n].valueOf()+Math.round(o*s))},posFromDate:function(t){if(!this.isVisible())return 0;if(!t)return 0;var e=String(t.valueOf());if(void 0!==this._posFromDateCache[e])return this._posFromDateCache[e];var n=this.columnIndexByDate(t);this.$gantt.assert(n>=0,"Invalid day index");var r=Math.floor(n),i=n%1,o=this._tasks.left[Math.min(r,this._tasks.width.length-1)];r==this._tasks.width.length&&(o+=this._tasks.width[this._tasks.width.length-1]),i&&(r<this._tasks.width.length?o+=this._tasks.width[r]*(i%1):o+=1);var a=Math.round(o);return this._posFromDateCache[e]=a,Math.round(a)},_getNextVisibleColumn:function(t,e,n){for(var r=+e[t],i=t;n[r];)r=+e[++i];return i},_getPrevVisibleColumn:function(t,e,n){for(var r=+e[t],i=t;n[r];)r=+e[--i];return i},_getClosestVisibleColumn:function(t,e,n){var r=this._getNextVisibleColumn(t,e,n);return e[r]||(r=this._getPrevVisibleColumn(t,e,n)),r},columnIndexByDate:function(t){var e=new Date(t).valueOf(),n=this._tasks.trace_x_ascending,r=this._tasks.ignore_x,i=this.$gantt.getState();if(e<=i.min_date)return this._tasks.rtl?n.length:0;if(e>=i.max_date)return this._tasks.rtl?0:n.length;var o=a.findBinary(n,e),s=this._getClosestVisibleColumn(o,n,r),u=n[s],l=this._tasks.trace_index_transition;if(!u)return l?l[0]:0;var c=(t-n[s])/this._getColumnDuration(this._tasks,n[s]);return l?l[s]+(1-c):s+c},getItemPosition:function(t,e,n){var r,i,o;return this._tasks.rtl?(i=this.posFromDate(e||t.start_date),r=this.posFromDate(n||t.end_date)):(r=this.posFromDate(e||t.start_date),i=this.posFromDate(n||t.end_date)),o=Math.max(i-r,0),{left:r,top:this.getItemTop(t.id),height:this.getBarHeight(t.id),width:o,rowHeight:this.getItemHeight(t.id)}},getBarHeight:function(t,e){var n=this.$getConfig(),r=this.$config.rowStore.getItem(t),i=r.task_height||r.bar_height||n.bar_height||n.task_height,o=this.getItemHeight(t);return"full"==i&&(i=o-(n.task_height_offset||5)),i=Math.min(i,o),e&&(i=Math.round(i/Math.sqrt(2))),Math.max(i,0)},getScale:function(){return this._tasks},_getScales:function(){var t=this.$getConfig(),e=this.$scaleHelper,n=[e.primaryScale(t)].concat(e.getSubScales(t));return e.sortScales(n),n},_getColumnDuration:function(t,e){return this.$gantt.date.add(e,t.step,t.unit)-e},_bindStore:function(){if(this.$config.bind){var t=this.$gantt.getDatastore(this.$config.bind);if(this.$config.rowStore=t,t&&!t._timelineCacheAttached){var e=this;t._timelineCacheAttached=t.attachEvent("onBeforeFilter",function(){e._resetTopPositionHeight()})}}},_unbindStore:function(){if(this.$config.bind){var t=this.$gantt.getDatastore(this.$config.bind);t&&t._timelineCacheAttached&&(t.detachEvent(t._timelineCacheAttached),t._timelineCacheAttached=!1)}},refresh:function(){this._bindStore(),this.$config.bindLinks&&(this.$config.linkStore=this.$gantt.getDatastore(this.$config.bindLinks)),this._resetTopPositionHeight(),this._resetHeight(),this._initStaticBackgroundRender(),this._render_tasks_scales()},destructor:function(){var t=this.$gantt;this._clearLayers(t),this._unbindStore(),this.$task=null,this.$task_scale=null,this.$task_data=null,this.$task_bg=null,this.$task_links=null,this.$task_bars=null,this.$gantt=null,this.$config.rowStore&&(this.$config.rowStore.detachEvent(this._staticBgHandler),this.$config.rowStore=null),this.$config.linkStore&&(this.$config.linkStore=null),this._timelineDragScroll&&(this._timelineDragScroll.destructor(),this._timelineDragScroll=null),this.callEvent("onDestroy",[]),this.detachAllEvents()}},t.exports=l},function(t,e){t.exports=function(t,e,n){return{top:e.getItemTop(t.id),height:e.getItemHeight(t.id),left:0,right:1/0}}},function(t,e){t.exports=function(t){var e=[];return{delegate:function(n,r,i,o){e.push([n,r,i,o]),t.$services.getService("mouseEvents").delegate(n,r,i,o)},destructor:function(){for(var n=t.$services.getService("mouseEvents"),r=0;r<e.length;r++){var i=e[r];n.detach(i[0],i[1],i[2],i[3])}e=[]}}}},function(t,e,n){var r=n(1),i=n(0),o=n(4),a=n(183),s=n(35),u=n(181),l=n(180).default,c=function(t,e,n,r){this.$config=i.mixin({},e||{}),this.$gantt=r,this.$parent=t,o(this),this.$state={},i.mixin(this,s(this))};c.prototype={init:function(t){var e=this.$gantt,r=e._waiAria.gridAttrString(),i=e._waiAria.gridDataAttrString(),o=this.$getConfig(),s=o.reorder_grid_columns||!1;void 0!==this.$config.reorder_grid_columns&&(s=this.$config.reorder_grid_columns),t.innerHTML="<div class='gantt_grid' style='height:inherit;width:inherit;' "+r+"></div>",this.$grid=t.childNodes[0],this.$grid.innerHTML="<div class='gantt_grid_scale' "+e._waiAria.gridScaleRowAttrString()+"></div><div class='gantt_grid_data' "+i+"></div>",this.$grid_scale=this.$grid.childNodes[0],this.$grid_data=this.$grid.childNodes[1];var c=o[this.$config.bind+"_attribute"];if(!c&&this.$config.bind&&(c="data-"+this.$config.bind+"-id"),this.$config.item_attribute=c||null,!this.$config.layers){var f=this._createLayerConfig();this.$config.layers=f}var d=a(e,this);d.init(),this._renderHeaderResizers=d.doOnRender,this._mouseDelegates=n(24)(e),u(e,this).init(),this._addLayers(this.$gantt),this._initEvents(),s&&(this._columnDND=new l(e,this),this._columnDND.init()),this.callEvent("onReady",[])},_validateColumnWidth:function(t,e){var n=t[e];if(n&&"*"!=n){var r=this.$gantt,i=1*n;isNaN(i)?r.assert(!1,"Wrong "+e+" value of column "+t.name):t[e]=i}},setSize:function(t,e){this.$config.width=this.$state.width=t,this.$config.height=this.$state.height=e;for(var n,r=this.getGridColumns(),i=0,o=(f=this.$getConfig()).grid_elastic_columns,a=0,s=r.length;a<s;a++)this._validateColumnWidth(r[a],"min_width"),this._validateColumnWidth(r[a],"max_width"),this._validateColumnWidth(r[a],"width"),i+=1*r[a].width;if(!isNaN(i)&&this.$config.scrollable||(i=n=this._setColumnsWidth(t+1)),this.$config.scrollable&&o&&!isNaN(i)){var u="width";"min_width"==o&&(u="min_width");var l=0;r.forEach(function(t){l+=t[u]||f.min_grid_column_width}),l--;var c=Math.max(l,t);i=this._setColumnsWidth(c),n=t}this.$config.scrollable?(this.$grid_scale.style.width=i+"px",this.$grid_data.style.width=i+"px"):(this.$grid_scale.style.width="inherit",this.$grid_data.style.width="inherit"),this.$config.width-=1;var f=this.$getConfig();n!==t&&(void 0!==n?(f.grid_width=n,this.$config.width=n-1):isNaN(i)||(this._setColumnsWidth(i),f.grid_width=i,this.$config.width=i-1));var d=Math.max(this.$state.height-f.scale_height,0);this.$grid_data.style.height=d+"px",this.refresh()},getSize:function(){var t=this.$getConfig(),e=this.$config.rowStore?this.getTotalHeight():0,n=this._getGridWidth();return{x:this.$state.width,y:this.$state.height,contentX:this.isVisible()?n:0,contentY:this.isVisible()?t.scale_height+e:0,scrollHeight:this.isVisible()?e:0,scrollWidth:this.isVisible()?n:0}},_bindStore:function(){if(this.$config.bind){var t=this.$gantt.getDatastore(this.$config.bind);if(this.$config.rowStore=t,t&&!t._gridCacheAttached){var e=this;t._gridCacheAttached=t.attachEvent("onBeforeFilter",function(){e._resetTopPositionHeight()})}}},_unbindStore:function(){if(this.$config.bind){var t=this.$gantt.getDatastore(this.$config.bind);t&&t._gridCacheAttached&&(t.detachEvent(t._gridCacheAttached),t._gridCacheAttached=!1)}},refresh:function(){this._bindStore(),this._resetTopPositionHeight(),this._resetHeight(),this._initSmartRenderingPlaceholder(),this._calculateGridWidth(),this._renderGridHeader()},getViewPort:function(){var t=this.$config.scrollLeft||0,e=this.$config.scrollTop||0,n=this.$config.height||0,r=this.$config.width||0;return{y:e,y_end:e+n,x:t,x_end:t+r,height:n,width:r}},scrollTo:function(t,e){if(this.isVisible()){var n=!1;this.$config.scrollTop=this.$config.scrollTop||0,this.$config.scrollLeft=this.$config.scrollLeft||0,1*t==t&&(this.$config.scrollLeft=this.$state.scrollLeft=this.$grid.scrollLeft=t,n=!0),1*e==e&&(this.$config.scrollTop=this.$state.scrollTop=this.$grid_data.scrollTop=e,n=!0),n&&this.callEvent("onScroll",[this.$config.scrollLeft,this.$config.scrollTop])}},getColumnIndex:function(t,e){for(var n=this.$getConfig().columns,r=0,i=0;i<n.length;i++)if(e&&n[i].hide&&r++,n[i].name==t)return i-r;return null},getColumn:function(t){var e=this.getColumnIndex(t);return null===e?null:this.$getConfig().columns[e]},getGridColumns:function(){return this.$getConfig().columns.slice()},isVisible:function(){return this.$parent&&this.$parent.$config?!this.$parent.$config.hidden:this.$grid.offsetWidth},_createLayerConfig:function(){var t=this.$gantt,e=this;return[{renderer:t.$ui.layers.gridLine(),container:this.$grid_data,filter:[function(){return e.isVisible()}]},{renderer:t.$ui.layers.gridTaskRowResizer(),container:this.$grid_data,append:!0,filter:[function(){return t.config.resize_rows}]}]},_addLayers:function(t){if(this.$config.bind){this._taskLayers=[];var e=this,n=this.$gantt.$services.getService("layers"),r=n.getDataRender(this.$config.bind);r||(r=n.createDataRender({name:this.$config.bind,defaultContainer:function(){return e.$grid_data}}));for(var i=this.$config.layers,o=0;i&&o<i.length;o++){var a=i[o];a.view=this;var s=r.addLayer(a);this._taskLayers.push(s)}this._bindStore(),this._initSmartRenderingPlaceholder()}},_refreshPlaceholderOnStoreUpdate:function(t){var e=this.$getConfig(),n=this.$config.rowStore;if(n&&null===t&&this.isVisible()&&e.smart_rendering){var r;if(this.$config.scrollY){var i=this.$gantt.$ui.getView(this.$config.scrollY);i&&(r=i.getScrollState().scrollSize)}if(r||(r=n?this.getTotalHeight():0),r){this.$rowsPlaceholder&&this.$rowsPlaceholder.parentNode&&this.$rowsPlaceholder.parentNode.removeChild(this.$rowsPlaceholder);var o=this.$rowsPlaceholder=document.createElement("div");o.style.visibility="hidden",o.style.height=r+"px",o.style.width="1px",this.$grid_data.appendChild(o)}}},_initSmartRenderingPlaceholder:function(){var t=this.$config.rowStore;t&&(this._initSmartRenderingPlaceholder=function(){},this._staticBgHandler=t.attachEvent("onStoreUpdated",i.bind(this._refreshPlaceholderOnStoreUpdate,this)))},_initEvents:function(){var t=this.$gantt;this._mouseDelegates.delegate("click","gantt_close",t.bind(function(t,e,n){var i=this.$config.rowStore;if(!i)return!0;var o=r.locateAttribute(t,this.$config.item_attribute);return o&&i.close(o.getAttribute(this.$config.item_attribute)),!1},this),this.$grid),this._mouseDelegates.delegate("click","gantt_open",t.bind(function(t,e,n){var i=this.$config.rowStore;if(!i)return!0;var o=r.locateAttribute(t,this.$config.item_attribute);return o&&i.open(o.getAttribute(this.$config.item_attribute)),!1},this),this.$grid)},_clearLayers:function(t){var e=this.$gantt.$services.getService("layers").getDataRender(this.$config.bind);if(this._taskLayers)for(var n=0;n<this._taskLayers.length;n++)e.removeLayer(this._taskLayers[n]);this._taskLayers=[]},_getColumnWidth:function(t,e,n){var r=t.min_width||e.min_grid_column_width,i=Math.max(n,r||10);return t.max_width&&(i=Math.min(i,t.max_width)),i},_checkGridColumnMinWidthLimits:function(t,e){for(var n=0,r=t.length;n<r;n++){var i=1*t[n].width;!t[n].min_width&&i<e.min_grid_column_width&&(t[n].min_width=i)}},_getGridWidthLimits:function(){for(var t=this.$getConfig(),e=this.getGridColumns(),n=0,r=0,i=0;i<e.length;i++)n+=e[i].min_width?e[i].min_width:t.min_grid_column_width,void 0!==r&&(r=e[i].max_width?r+e[i].max_width:void 0);return this._checkGridColumnMinWidthLimits(e,t),[n,r]},_setColumnsWidth:function(t,e){var n=this.$getConfig(),r=this.getGridColumns(),i=0,o=t;e=window.isNaN(e)?-1:e;for(var a=0,s=r.length;a<s;a++)i+=1*r[a].width;if(window.isNaN(i))for(this._calculateGridWidth(),i=0,a=0,s=r.length;a<s;a++)i+=1*r[a].width;var u=o-i,l=0;for(a=0;a<e+1;a++)l+=r[a].width;for(i-=l,a=e+1;a<r.length;a++){var c=r[a],f=Math.round(u*(c.width/i));u<0?c.min_width&&c.width+f<c.min_width?f=c.min_width-c.width:!c.min_width&&n.min_grid_column_width&&c.width+f<n.min_grid_column_width&&(f=n.min_grid_column_width-c.width):c.max_width&&c.width+f>c.max_width&&(f=c.max_width-c.width),i-=c.width,c.width+=f,u-=f}for(var d=u>0?1:-1;u>0&&1===d||u<0&&-1===d;){var h=u;for(a=e+1;a<r.length;a++){var p;if((p=r[a].width+d)==this._getColumnWidth(r[a],n,p)&&(u-=d,r[a].width=p),!u)break}if(h==u)break}return u&&e>-1&&(p=r[e].width+u)==this._getColumnWidth(r[e],n,p)&&(r[e].width=p),this._getColsTotalWidth()},_getColsTotalWidth:function(){for(var t=this.getGridColumns(),e=0,n=0;n<t.length;n++){var r=parseFloat(t[n].width);if(window.isNaN(r))return!1;e+=r}return e},_calculateGridWidth:function(){for(var t=this.$getConfig(),e=this.getGridColumns(),n=0,r=[],i=[],o=0;o<e.length;o++){var a=parseFloat(e[o].width);window.isNaN(a)&&(a=t.min_grid_column_width||10,r.push(o)),i[o]=a,n+=a}var s=this._getGridWidth()+1;if(t.autofit||r.length){var u=s-n;if(t.autofit&&!t.grid_elastic_columns)for(o=0;o<i.length;o++){var l=Math.round(u/(i.length-o));i[o]+=l,(c=this._getColumnWidth(e[o],t,i[o]))!=i[o]&&(l=c-i[o],i[o]=c),u-=l}else if(r.length)for(o=0;o<r.length;o++){l=Math.round(u/(r.length-o));var c,f=r[o];i[f]+=l,(c=this._getColumnWidth(e[f],t,i[f]))!=i[f]&&(l=c-i[f],i[f]=c),u-=l}for(o=0;o<i.length;o++)e[o].width=i[o]}else{var d=s!=n;this.$config.width=n-1,t.grid_width=n,d&&this.$parent._setContentSize(this.$config.width,null)}},_renderGridHeader:function(){var t=this.$gantt,e=this.$getConfig(),n=this.$gantt.locale,r=this.$gantt.templates,i=this.getGridColumns();e.rtl&&(i=i.reverse());for(var o=[],a=0,s=n.labels,u=e.scale_height-1,l=0;l<i.length;l++){var c=l==i.length-1,f=i[l];f.name||(f.name=t.uid()+"");var d=1*f.width,h=this._getGridWidth();c&&h>a+d&&(f.width=d=h-a),a+=d;var p=t._sort&&f.name==t._sort.name?"<div class='gantt_sort gantt_"+t._sort.direction+"'></div>":"",g=["gantt_grid_head_cell","gantt_grid_head_"+f.name,c?"gantt_last_cell":"",r.grid_header_class(f.name,f)].join(" "),m="width:"+(d-(c?1:0))+"px;",v=f.label||s["column_"+f.name]||s[f.name];v=v||"";var y="<div class='"+g+"' style='"+m+"' "+t._waiAria.gridScaleCellAttrString(f,v)+" data-column-id='"+f.name+"' column_id='"+f.name+"' data-column-name='"+f.name+"' data-column-index='"+l+"'>"+v+p+"</div>";o.push(y)}this.$grid_scale.style.height=e.scale_height+"px",this.$grid_scale.style.lineHeight=u+"px",this.$grid_scale.innerHTML=o.join(""),this._renderHeaderResizers&&this._renderHeaderResizers()},_getGridWidth:function(){return this.$config.width},destructor:function(){this._clearLayers(this.$gantt),this._mouseDelegates&&(this._mouseDelegates.destructor(),this._mouseDelegates=null),this._unbindStore(),this.$grid=null,this.$grid_scale=null,this.$grid_data=null,this.$gantt=null,this.$config.rowStore&&(this.$config.rowStore.detachEvent(this._staticBgHandler),this.$config.rowStore=null),this.callEvent("onDestroy",[]),this.detachAllEvents()}},t.exports=c},function(t,e,n){var r=n(0);t.exports=function(t){var e=t.date,n=t.$services;return{getSum:function(t,e,n){void 0===n&&(n=t.length-1),void 0===e&&(e=0);for(var r=0,i=e;i<=n;i++)r+=t[i];return r},setSumWidth:function(t,e,n,r){var i=e.width;void 0===r&&(r=i.length-1),void 0===n&&(n=0);var o=r-n+1;if(!(n>i.length-1||o<=0||r>i.length-1)){var a=t-this.getSum(i,n,r);this.adjustSize(a,i,n,r),this.adjustSize(-a,i,r+1),e.full_width=this.getSum(i)}},splitSize:function(t,e){for(var n=[],r=0;r<e;r++)n[r]=0;return this.adjustSize(t,n),n},adjustSize:function(t,e,n,r){n||(n=0),void 0===r&&(r=e.length-1);for(var i=r-n+1,o=this.getSum(e,n,r),a=n;a<=r;a++){var s=Math.floor(t*(o?e[a]/o:1/i));o-=e[a],t-=s,i--,e[a]+=s}e[e.length-1]+=t},sortScales:function(t){function n(t,n){var r=new Date(1970,0,1);return e.add(r,n,t)-r}t.sort(function(t,e){return n(t.unit,t.step)<n(e.unit,e.step)?1:n(t.unit,t.step)>n(e.unit,e.step)?-1:0});for(var r=0;r<t.length;r++)t[r].index=r},_isLegacyMode:function(e){var n=e||t.config;return n.scale_unit||n.date_scale||n.subscales},_prepareScaleObject:function(e){var n=e.format;return n||(n=e.template||e.date||"%d %M"),"string"==typeof n&&(n=t.date.date_to_str(n)),{unit:e.unit||"day",step:e.step||1,format:n,css:e.css}},primaryScale:function(e){var r,i=n.getService("templateLoader"),o=this._isLegacyMode(e),a=e||t.config;if(o)i.initTemplate("date_scale",void 0,void 0,a,t.config.templates),r={unit:t.config.scale_unit,step:t.config.step,template:t.templates.date_scale,date:t.config.date_scale,css:t.templates.scale_cell_class};else{var s=a.scales[0];r={unit:s.unit,step:s.step,template:s.template,format:s.format,date:s.date,css:s.css||t.templates.scale_cell_class}}return this._prepareScaleObject(r)},getSubScales:function(e){var n=this._isLegacyMode(e),r=e||t.config;return(n?r.subscales||[]:r.scales.slice(1)).map(function(t){return this._prepareScaleObject(t)}.bind(this))},prepareConfigs:function(t,e,n,r,i,o,a){for(var s=this.splitSize(r,t.length),u=n,l=[],c=t.length-1;c>=0;c--){var f=c==t.length-1,d=this.initScaleConfig(t[c],i,o);f&&this.processIgnores(d),this.initColSizes(d,e,u,s[c]),this.limitVisibleRange(d),f&&(u=d.full_width),l.unshift(d)}for(c=0;c<l.length-1;c++)this.alineScaleColumns(l[l.length-1],l[c]);for(c=0;c<l.length;c++)a&&this.reverseScale(l[c]),this.setPosSettings(l[c]);return l},reverseScale:function(t){t.width=t.width.reverse(),t.trace_x=t.trace_x.reverse();var e=t.trace_indexes;t.trace_indexes={},t.trace_index_transition={},t.rtl=!0;for(var n=0;n<t.trace_x.length;n++)t.trace_indexes[t.trace_x[n].valueOf()]=n,t.trace_index_transition[e[t.trace_x[n].valueOf()]]=n;return t},setPosSettings:function(t){for(var e=0,n=t.trace_x.length;e<n;e++)t.left.push((t.width[e-1]||0)+(t.left[e-1]||0))},_ignore_time_config:function(n,r){if(t.config.skip_off_time){for(var i=!0,o=n,a=0;a<r.step;a++)a&&(o=e.add(n,a,r.unit)),i=i&&!this.isWorkTime(o,r.unit);return i}return!1},processIgnores:function(t){t.ignore_x={},t.display_count=t.count},initColSizes:function(t,n,r,i){var o=r;t.height=i;var a=void 0===t.display_count?t.count:t.display_count;a||(a=1),t.col_width=Math.floor(o/a),n&&t.col_width<n&&(t.col_width=n,o=t.col_width*a),t.width=[];for(var s=t.ignore_x||{},u=0;u<t.trace_x.length;u++)if(s[t.trace_x[u].valueOf()]||t.display_count==t.count)t.width[u]=0;else{var l=1;"month"==t.unit&&(l=Math.round((e.add(t.trace_x[u],t.step,t.unit)-t.trace_x[u])/864e5)),t.width[u]=l}this.adjustSize(o-this.getSum(t.width),t.width),t.full_width=this.getSum(t.width)},initScaleConfig:function(t,e,n){var i=r.mixin({count:0,col_width:0,full_width:0,height:0,width:[],left:[],trace_x:[],trace_indexes:{},min_date:new Date(e),max_date:new Date(n)},t);return this.eachColumn(t.unit,t.step,e,n,function(t){i.count++,i.trace_x.push(new Date(t)),i.trace_indexes[t.valueOf()]=i.trace_x.length-1}),i.trace_x_ascending=i.trace_x.slice(),i},iterateScales:function(t,e,n,r,i){for(var o=e.trace_x,a=t.trace_x,s=n||0,u=r||a.length-1,l=0,c=1;c<o.length;c++){var f=t.trace_indexes[+o[c]];void 0!==f&&f<=u&&(i&&i.apply(this,[l,c,s,f]),s=f,l=c)}},alineScaleColumns:function(t,e,n,r){this.iterateScales(t,e,n,r,function(n,r,i,o){var a=this.getSum(t.width,i,o-1);this.getSum(e.width,n,r-1)!=a&&this.setSumWidth(a,e,n,r-1)})},eachColumn:function(n,r,i,o,a){var s=new Date(i),u=new Date(o);e[n+"_start"]&&(s=e[n+"_start"](s));var l=new Date(s);for(+l>=+u&&(u=e.add(l,r,n));+l<+u;){a.call(this,new Date(l));var c=l.getTimezoneOffset();l=e.add(l,r,n),l=t._correct_dst_change(l,c,r,n),e[n+"_start"]&&(l=e[n+"_start"](l))}},limitVisibleRange:function(t){var n=t.trace_x,r=t.width.length-1,i=0;if(+n[0]<+t.min_date&&0!=r){var o=Math.floor(t.width[0]*((n[1]-t.min_date)/(n[1]-n[0])));i+=t.width[0]-o,t.width[0]=o,n[0]=new Date(t.min_date)}var a=n.length-1,s=n[a],u=e.add(s,t.step,t.unit);if(+u>+t.max_date&&a>0&&(o=t.width[a]-Math.floor(t.width[a]*((u-t.max_date)/(u-s))),i+=t.width[a]-o,t.width[a]=o),i){for(var l=this.getSum(t.width),c=0,f=0;f<t.width.length;f++){var d=Math.floor(i*(t.width[f]/l));t.width[f]+=d,c+=d}this.adjustSize(i-c,t.width)}}}}},,function(t,e,n){},function(t,e,n){function r(t,e,n){return e=e||[],"<"+t+i(n||[])+">"+(e.innerHTML||"")+"</"+t+">"}function i(t){var e="";return o.forEach(t,function(t){e+=" "+t.key+"='"+t.value+"'"}),e}var o=n(2),a={getHtmlSelect:function(t,e,n){var i="",a=this;return t=t||[],o.forEach(t,function(t){var e=[{key:"value",value:t.key}];n==t.key&&(e[e.length]={key:"selected",value:"selected"}),t.attributes&&(e=e.concat(t.attributes)),i+=a.getHtmlOption({innerHTML:t.label},e)}),r("select",{innerHTML:i},e)},getHtmlOption:function(t,e){return r("option",t,e)},getHtmlButton:function(t,e){return r("button",t,e)},getHtmlDiv:function(t,e){return r("div",t,e)},getHtmlLabel:function(t,e){return r("label",t,e)},getHtmlInput:function(t){return"<input"+i(t||[])+">"}};t.exports=a},function(t,e,n){var r=n(2);t.exports=function(t){var e={};return t.$data.tasksStore.attachEvent("onStoreUpdated",function(){e={}}),function(n,i,o,a){var s=n.id+"_"+i+"_"+o.unit+"_"+o.step;return e[s]?e[s]:e[s]=function(e,n,i,o){var a,s=!1,u={};t.config.process_resource_assignments&&n===t.config.resource_property?(a="task"==e.$role?t.getResourceAssignments(e.$resource_id,e.$task_id):t.getResourceAssignments(e.id),s=!0):a="task"==e.$role?[]:t.getTaskBy(n,e.id);for(var l,c,f,d,h,u=function(e,n,i){for(var o=n.unit,a=n.step,s={},u={},l=0;l<e.length;l++){var c=e[l],f=c;i&&(f=t.getTask(c.task_id));var d=c.start_date||f.start_date,h=c.end_date||f.end_date;i&&(c.start_date&&(d=new Date(Math.max(c.start_date.valueOf(),f.start_date.valueOf()))),c.end_date&&(h=new Date(Math.min(c.end_date.valueOf(),f.end_date.valueOf()))));var p=r.findBinary(n.trace_x,d.valueOf()),g=new Date(n.trace_x[p]||t.date[o+"_start"](new Date(d))),m=t.config.work_time?t.getTaskCalendar(f):t;for(u[m.id]={};g<h;){var v=u[m.id],y=g,b=y.valueOf();if(g=t.date.add(g,a,o),!1!==v[b]){m.isWorkTime({date:y,task:f,unit:o})?(s[b]||(s[b]={tasks:[],assignments:[]}),s[b].tasks.push(f),i&&s[b].assignments.push(c)):v[b]=!1}}}return s}(a,i,s),p=i.unit,g=i.step,m=[],v=o.$getConfig(),y=0;y<i.trace_x.length;y++)l=new Date(i.trace_x[y]),c=t.date.add(l,g,p),h=u[l.valueOf()]||{},f=h.tasks||[],d=h.assignments||[],f.length||v.resource_render_empty_cells?m.push({start_date:l,end_date:c,tasks:f,assignments:d}):m.push(null);return m}(n,i,o,a)}}},function(t,e,n){var r=n(3),i=n(1),o=function(t){"use strict";function e(e,n,r){var i=t.apply(this,arguments)||this;return e&&(i.$root=!0),i._parseConfig(n),i.$name="layout",i}return r(e,t),e.prototype.destructor=function(){this.$container&&this.$view&&i.removeNode(this.$view);for(var e=0;e<this.$cells.length;e++)this.$cells[e].destructor();this.$cells=[],t.prototype.destructor.call(this)},e.prototype._resizeScrollbars=function(t,e){function n(t){t.$parent.show(),o=!0,a.push(t)}function r(t){t.$parent.hide(),o=!0,s.push(t)}for(var i,o=!1,a=[],s=[],u=0;u<e.length;u++)t[(i=e[u]).$config.scroll]?r(i):i.shouldHide()?r(i):i.shouldShow()?n(i):i.isVisible()?a.push(i):s.push(i);var l={};for(u=0;u<a.length;u++)a[u].$config.group&&(l[a[u].$config.group]=!0);for(u=0;u<s.length;u++)if((i=s[u]).$config.group&&l[i.$config.group]){n(i);for(var c=0;c<a.length;c++)if(a[c]==i){this.$gantt.$scrollbarRepaint=!0;break}}return o},e.prototype._syncCellSizes=function(t,e){if(t){var n={};return this._eachChild(function(t){t.$config.group&&"scrollbar"!=t.$name&&"resizer"!=t.$name&&(n[t.$config.group]||(n[t.$config.group]=[]),n[t.$config.group].push(t))}),n[t]&&this._syncGroupSize(n[t],e),n[t]}},e.prototype._syncGroupSize=function(t,e){if(t.length)for(var n=t[0].$parent._xLayout?"width":"height",r=t[0].$parent.getNextSibling(t[0].$id)?1:-1,i=e.value,o=e.isGravity,a=0;a<t.length;a++){var s=t[a].getSize(),u=r>0?t[a].$parent.getNextSibling(t[a].$id):t[a].$parent.getPrevSibling(t[a].$id);"resizer"==u.$name&&(u=r>0?u.$parent.getNextSibling(u.$id):u.$parent.getPrevSibling(u.$id));var l=u.getSize();if(o)t[a].$config.gravity=i;else if(u[n]){var c=s.gravity+l.gravity,f=s[n]+l[n],d=c/f;t[a].$config.gravity=d*i,u.$config[n]=f-i,u.$config.gravity=c-d*i}else t[a].$config[n]=i;var h=this.$gantt.$ui.getView("grid");!h||t[a].$content!==h||h.$config.scrollable||o||(this.$gantt.config.grid_width=i)}},e.prototype.resize=function(e){var n=!1;if(this.$root&&!this._resizeInProgress&&(this.callEvent("onBeforeResize",[]),n=!0,this._resizeInProgress=!0),t.prototype.resize.call(this,!0),t.prototype.resize.call(this,!1),n){var r=[];r=(r=(r=r.concat(this.getCellsByType("viewCell"))).concat(this.getCellsByType("viewLayout"))).concat(this.getCellsByType("hostCell"));for(var i=this.getCellsByType("scroller"),o=0;o<r.length;o++)r[o].$config.hidden||r[o].setContentSize();var a=this._getAutosizeMode(this.$config.autosize),s=this._resizeScrollbars(a,i);if(this.$config.autosize&&(this.autosize(this.$config.autosize),r.forEach(function(t){var e=t.$parent,n=e.getContentSize(a);a.x&&(e.$config.$originalWidthStored||(e.$config.$originalWidthStored=!0,e.$config.$originalWidth=e.$config.width),e.$config.width=n.width),a.y&&(e.$config.$originalHeightStored||(e.$config.$originalHeightStored=!0,e.$config.$originalHeight=e.$config.height),e.$config.height=n.height)}),s=!0),s)for(this.resize(),o=0;o<r.length;o++)r[o].$config.hidden||r[o].setContentSize();this.callEvent("onResize",[])}n&&(this._resizeInProgress=!1)},e.prototype._eachChild=function(t,e){if(t(e=e||this),e.$cells)for(var n=0;n<e.$cells.length;n++)this._eachChild(t,e.$cells[n])},e.prototype.isChild=function(t){var e=!1;return this._eachChild(function(n){n!==t&&n.$content!==t||(e=!0)}),e},e.prototype.getCellsByType=function(t){var n=[];if(t===this.$name&&n.push(this),this.$content&&this.$content.$name==t&&n.push(this.$content),this.$cells)for(var r=0;r<this.$cells.length;r++){var i=e.prototype.getCellsByType.call(this.$cells[r],t);i.length&&n.push.apply(n,i)}return n},e.prototype.getNextSibling=function(t){var e=this.cellIndex(t);return e>=0&&this.$cells[e+1]?this.$cells[e+1]:null},e.prototype.getPrevSibling=function(t){var e=this.cellIndex(t);return e>=0&&this.$cells[e-1]?this.$cells[e-1]:null},e.prototype.cell=function(t){for(var e=0;e<this.$cells.length;e++){var n=this.$cells[e];if(n.$id===t)return n;var r=n.cell(t);if(r)return r}},e.prototype.cellIndex=function(t){for(var e=0;e<this.$cells.length;e++)if(this.$cells[e].$id===t)return e;return-1},e.prototype.moveView=function(t,e){if(this.$cells[e]!==t)return window.alert("Not implemented");e+=this.$config.header?1:0;var n=this.$view;e>=n.childNodes.length?n.appendChild(t.$view):n.insertBefore(t.$view,n.childNodes[e])},e.prototype._parseConfig=function(t){this.$cells=[],this._xLayout=!t.rows;for(var e=t.rows||t.cols||t.views,n=0;n<e.length;n++){var r=e[n];r.mode=this._xLayout?"x":"y";var i=this.$factory.initUI(r,this);i?(i.$parent=this,this.$cells.push(i)):(e.splice(n,1),n--)}},e.prototype.getCells=function(){return this.$cells},e.prototype.render=function(){var t=i.insertNode(this.$container,this.$toHTML());this.$fill(t,null),this.callEvent("onReady",[]),this.resize(),this.render=this.resize},e.prototype.$fill=function(t,e){this.$view=t,this.$parent=e;for(var n=i.getChildNodes(t,"gantt_layout_cell"),r=n.length-1;r>=0;r--){var o=this.$cells[r];o.$fill(n[r],this),o.$config.hidden&&o.$view.parentNode.removeChild(o.$view)}},e.prototype.$toHTML=function(){for(var e=this._xLayout?"x":"y",n=[],r=0;r<this.$cells.length;r++)n.push(this.$cells[r].$toHTML());return t.prototype.$toHTML.call(this,n.join(""),(this.$root?"gantt_layout_root ":"")+"gantt_layout gantt_layout_"+e)},e.prototype.getContentSize=function(t){for(var e,n,r,i=0,o=0,a=0;a<this.$cells.length;a++)(n=this.$cells[a]).$config.hidden||(e=n.getContentSize(t),"scrollbar"===n.$config.view&&t[n.$config.scroll]&&(e.height=0,e.width=0),n.$config.resizer&&(this._xLayout?e.height=0:e.width=0),r=n._getBorderSizes(),this._xLayout?(i+=e.width+r.horizontal,o=Math.max(o,e.height+r.vertical)):(i=Math.max(i,e.width+r.horizontal),o+=e.height+r.vertical));return{width:i+=(r=this._getBorderSizes()).horizontal,height:o+=r.vertical}},e.prototype._cleanElSize=function(t){return 1*(t||"").toString().replace("px","")||0},e.prototype._getBoxStyles=function(t){var e=null,n=["width","height","paddingTop","paddingBottom","paddingLeft","paddingRight","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],r={boxSizing:"border-box"==(e=window.getComputedStyle?window.getComputedStyle(t,null):{width:t.clientWidth,height:t.clientHeight}).boxSizing};e.MozBoxSizing&&(r.boxSizing="border-box"==e.MozBoxSizing);for(var i=0;i<n.length;i++)r[n[i]]=e[n[i]]?this._cleanElSize(e[n[i]]):0;var o={horPaddings:r.paddingLeft+r.paddingRight+r.borderLeftWidth+r.borderRightWidth,vertPaddings:r.paddingTop+r.paddingBottom+r.borderTopWidth+r.borderBottomWidth,borderBox:r.boxSizing,innerWidth:r.width,innerHeight:r.height,outerWidth:r.width,outerHeight:r.height};return o.borderBox?(o.innerWidth-=o.horPaddings,o.innerHeight-=o.vertPaddings):(o.outerWidth+=o.horPaddings,o.outerHeight+=o.vertPaddings),o},e.prototype._getAutosizeMode=function(t){var e={x:!1,y:!1};return"xy"===t?e.x=e.y=!0:"y"===t||!0===t?e.y=!0:"x"===t&&(e.x=!0),e},e.prototype.autosize=function(t){var e=this._getAutosizeMode(t),n=this._getBoxStyles(this.$container),r=this.getContentSize(t),i=this.$container;e.x&&(n.borderBox&&(r.width+=n.horPaddings),i.style.width=r.width+"px"),e.y&&(n.borderBox&&(r.height+=n.vertPaddings),i.style.height=r.height+"px")},e.prototype.getSize=function(){this._sizes=[];for(var e=0,n=0,r=1e11,i=0,o=1e11,a=0,s=0;s<this.$cells.length;s++){var u=this._sizes[s]=this.$cells[s].getSize();this.$cells[s].$config.hidden||(this._xLayout?(!u.width&&u.minWidth?e+=u.minWidth:e+=u.width,r+=u.maxWidth,n+=u.minWidth,i=Math.max(i,u.height),o=Math.min(o,u.maxHeight),a=Math.max(a,u.minHeight)):(!u.height&&u.minHeight?i+=u.minHeight:i+=u.height,o+=u.maxHeight,a+=u.minHeight,e=Math.max(e,u.width),r=Math.min(r,u.maxWidth),n=Math.max(n,u.minWidth)))}var l=t.prototype.getSize.call(this);return l.maxWidth>=1e5&&(l.maxWidth=r),l.maxHeight>=1e5&&(l.maxHeight=o),l.minWidth=l.minWidth!=l.minWidth?0:l.minWidth,l.minHeight=l.minHeight!=l.minHeight?0:l.minHeight,this._xLayout?(l.minWidth+=this.$config.margin*this.$cells.length||0,l.minWidth+=2*this.$config.padding||0,l.minHeight+=2*this.$config.padding||0):(l.minHeight+=this.$config.margin*this.$cells.length||0,l.minHeight+=2*this.$config.padding||0),l},e.prototype._calcFreeSpace=function(t,e,n){var r=n?e.minWidth:e.minHeight,i=e.maxWidth,o=t;return o?(o>i&&(o=i),o<r&&(o=r),this._free-=o):((o=Math.floor(this._free/this._gravity*e.gravity))>i&&(o=i,this._free-=o,this._gravity-=e.gravity),o<r&&(o=r,this._free-=o,this._gravity-=e.gravity)),o},e.prototype._calcSize=function(t,e,n){var r=t,i=n?e.minWidth:e.minHeight,o=n?e.maxWidth:e.maxHeight;return r||(r=Math.floor(this._free/this._gravity*e.gravity)),r>o&&(r=o),r<i&&(r=i),r},e.prototype._configureBorders=function(){this.$root&&this._setBorders([this._borders.left,this._borders.top,this._borders.right,this._borders.bottom],this);for(var t=this._xLayout?this._borders.right:this._borders.bottom,e=this.$cells,n=e.length-1,r=n;r>=0;r--)if(!e[r].$config.hidden){n=r;break}for(r=0;r<e.length;r++)if(!e[r].$config.hidden){var i=r>=n,o="";!i&&e[r+1]&&"scrollbar"==e[r+1].$config.view&&(this._xLayout?i=!0:o="gantt_layout_cell_border_transparent"),this._setBorders(i?[]:[t,o],e[r])}},e.prototype._updateCellVisibility=function(){for(var t=this._visibleCells||{},e=!this._visibleCells,n={},r=null,i=[],o=0;o<this._sizes.length;o++)(r=this.$cells[o]).$config.hide_empty&&i.push(r),!e&&r.$config.hidden&&t[r.$id]?r._hide(!0):r.$config.hidden||t[r.$id]||r._hide(!1),r.$config.hidden||(n[r.$id]=!0);for(this._visibleCells=n,o=0;o<i.length;o++){var a=!0;(r=i[o]).$cells.forEach(function(t){t.$config.hidden||t.$config.resizer||(a=!1)}),r.$config.hidden=a}},e.prototype.setSize=function(e,n){this._configureBorders(),t.prototype.setSize.call(this,e,n),n=this.$lastSize.contentY,e=this.$lastSize.contentX;var r,i,o=this.$config.padding||0;this.$view.style.padding=o+"px",this._gravity=0,this._free=this._xLayout?e:n,this._free-=2*o,this._updateCellVisibility();for(var a=0;a<this._sizes.length;a++)if(!(r=this.$cells[a]).$config.hidden){var s=this.$config.margin||0;"resizer"!=r.$name||s||(s=-1);var u=r.$view,l=this._xLayout?"marginRight":"marginBottom";a!==this.$cells.length-1&&(u.style[l]=s+"px",this._free-=s),i=this._sizes[a],this._xLayout?i.width||(this._gravity+=i.gravity):i.height||(this._gravity+=i.gravity)}for(a=0;a<this._sizes.length;a++)if(!(r=this.$cells[a]).$config.hidden){var c=(i=this._sizes[a]).width,f=i.height;this._xLayout?this._calcFreeSpace(c,i,!0):this._calcFreeSpace(f,i,!1)}for(a=0;a<this.$cells.length;a++)if(!(r=this.$cells[a]).$config.hidden){i=this._sizes[a];var d=void 0,h=void 0;this._xLayout?(d=this._calcSize(i.width,i,!0),h=n-2*o):(d=e-2*o,h=this._calcSize(i.height,i,!1)),r.setSize(d,h)}},e}(n(9));t.exports=o},function(t,e){t.exports=function(t,e,n,r,i){var o=n.$gantt.getTask(t.source),a=n.$gantt.getTask(t.target),s=n.getItemTop(o.id),u=n.getItemHeight(o.id),l=n.getItemTop(a.id),c=n.getItemHeight(a.id);if(e.y>s+u&&e.y>l+c)return!1;if(e.y_end<l&&e.y_end<s)return!1;var f=n.posFromDate(o.start_date),d=n.posFromDate(o.end_date),h=n.posFromDate(a.start_date),p=n.posFromDate(a.end_date);if(f>d){var g=d;d=f,f=g}return h>p&&(g=p,p=h,h=g),f+=-100,d+=100,h+=-100,p+=100,!(e.x>d&&e.x>p||e.x_end<f&&e.x_end<h)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(170),i=n(169),o=n(168);e.LargerUnitsCache=o.LargerUnitsCache,e.createCacheObject=function(){return"undefined"!=typeof Map?new r.WorkUnitsMapCache:new i.WorkUnitsObjectCache}},function(t,e,n){function r(t,e,n,r,i){return this.date=t,this.unit=e,this.task=n,this.id=r,this.calendar=i,this}function i(t,e,n,r,i,o){return this.date=t,this.dir=e,this.unit=n,this.task=r,this.id=i,this.calendar=o,this}function o(t,e,n,r,i,o,a){return this.start_date=t,this.duration=e,this.unit=n,this.step=r,this.task=i,this.id=o,this.calendar=a,this}function a(t,e,n,r){return this.start_date=t,this.end_date=e,this.task=n,this.calendar=r,this.unit=null,this.step=null,this}var s=n(0),u=n(2);t.exports=function(t){return{getWorkHoursArguments:function(){var e=arguments[0];if(e=u.isDate(e)?{date:e}:s.mixin({},e),!u.isValidDate(e.date))throw t.assert(!1,"Invalid date argument for getWorkHours method"),new Error("Invalid date argument for getWorkHours method");return e},setWorkTimeArguments:function(){return arguments[0]},unsetWorkTimeArguments:function(){return arguments[0]},isWorkTimeArguments:function(){var e,n=arguments[0];if(n instanceof r)return n;if((e=n.date?new r(n.date,n.unit,n.task,null,n.calendar):new r(arguments[0],arguments[1],arguments[2],null,arguments[3])).unit=e.unit||t.config.duration_unit,!u.isValidDate(e.date))throw t.assert(!1,"Invalid date argument for isWorkTime method"),new Error("Invalid date argument for isWorkTime method");return e},getClosestWorkTimeArguments:function(e){var n,r=arguments[0];if(r instanceof i)return r;if(n=u.isDate(r)?new i(r):new i(r.date,r.dir,r.unit,r.task,null,r.calendar),r.id&&(n.task=r),n.dir=r.dir||"any",n.unit=r.unit||t.config.duration_unit,!u.isValidDate(n.date))throw t.assert(!1,"Invalid date argument for getClosestWorkTime method"),new Error("Invalid date argument for getClosestWorkTime method");return n},_getStartEndConfig:function(e){var n,r=a;if(e instanceof r)return e;if(u.isDate(e)?n=new r(arguments[0],arguments[1],arguments[2],arguments[3]):(n=new r(e.start_date,e.end_date,e.task),null!==e.id&&void 0!==e.id&&(n.task=e)),n.unit=n.unit||t.config.duration_unit,n.step=n.step||t.config.duration_step,n.start_date=n.start_date||n.start||n.date,!u.isValidDate(n.start_date))throw t.assert(!1,"Invalid start_date argument for getDuration method"),new Error("Invalid start_date argument for getDuration method");if(!u.isValidDate(n.end_date))throw t.assert(!1,"Invalid end_date argument for getDuration method"),new Error("Invalid end_date argument for getDuration method");return n},getDurationArguments:function(t,e,n,r){return this._getStartEndConfig.apply(this,arguments)},hasDurationArguments:function(t,e,n,r){return this._getStartEndConfig.apply(this,arguments)},calculateEndDateArguments:function(e,n,r,i){var a,s=arguments[0];if(s instanceof o)return s;if(a=u.isDate(s)?new o(arguments[0],arguments[1],arguments[2],void 0,arguments[3],void 0,arguments[4]):new o(s.start_date,s.duration,s.unit,s.step,s.task,null,s.calendar),null!==s.id&&void 0!==s.id&&(a.task=s,a.unit=null,a.step=null),a.unit=a.unit||t.config.duration_unit,a.step=a.step||t.config.duration_step,!u.isValidDate(a.start_date))throw t.assert(!1,"Invalid start_date argument for calculateEndDate method"),new Error("Invalid start_date argument for calculateEndDate method");return a}}}},function(t,e,n){var r=n(182);t.exports=function(t){var e={},n={},i=null,o=-1,a=null,s=r(t);return{_resetTopPositionHeight:function(){e={},n={},s.resetCache()},_resetHeight:function(){var t=this.$config.rowStore,e=this.getCacheStateTotalHeight(t);a?this.shouldClearHeightCache(a,e)&&(a=e,i=null):a=e,o=-1,s.resetCache()},getRowTop:function(t){if(s.canUseSimpleCalculation())return s.getRowTop(t);var e=this.$config.rowStore;if(!e)return 0;if(void 0!==n[t])return n[t];for(var r=e.getIndexRange(),i=0,o=0,a=0;a<r.length;a++)n[a]=i,i+=this.getItemHeight(r[a].id),a<t&&(o=i);return o},getItemTop:function(t){if(this.$config.rowStore){if(void 0!==e[t])return e[t];var n=this.$config.rowStore;if(!n)return 0;var r=n.getIndexById(t);if(-1===r&&n.getParent&&n.exists(t)){var i=n.getParent(t);if(n.exists(i)){var o=n.getItem(i);if(this.$gantt.isSplitTask(o))return this.getItemTop(i)}}return e[t]=this.getRowTop(r),e[t]}return 0},getItemHeight:function(t){if(s.canUseSimpleCalculation())return s.getItemHeight(t);if(!i&&this.$config.rowStore&&this._fillHeightCache(this.$config.rowStore),void 0!==i[t])return i[t];var e=this.$getConfig().row_height;if(this.$config.rowStore){var n=this.$config.rowStore;if(!n)return e;var r=n.getItem(t);return i[t]=r&&r.row_height||e}return e},_fillHeightCache:function(t){if(t){i={};var e=this.$getConfig().row_height;t.eachItem(function(t){return i[t.id]=t&&t.row_height||e})}},getCacheStateTotalHeight:function(t){var e=this.$getConfig().row_height,n={},r=[],i=0;return t&&t.eachItem(function(t){r.push(t),n[t.id]=t.row_height,i+=t.row_height||e}),{globalHeight:e,items:r,count:r.length,sumHeight:i}},shouldClearHeightCache:function(t,e){if(t.count!=e.count)return!0;if(t.globalHeight!=e.globalHeight)return!0;if(t.sumHeight!=e.sumHeight)return!0;for(var n in t.items){var r=e.items[n];if(void 0!==r&&r!=t.items[n])return!0}return!1},getTotalHeight:function(){if(s.canUseSimpleCalculation())return s.getTotalHeight();if(-1!=o)return o;if(this.$config.rowStore){var t=this.$config.rowStore;this._fillHeightCache(t);var e=this.getItemHeight.bind(this),n=0;return t.getVisibleItems().forEach(function(t){n+=e(t.id)}),o=n,n}return 0},getItemIndexByTopPosition:function(t){if(!this.$config.rowStore)return 0;if(s.canUseSimpleCalculation())return s.getItemIndexByTopPosition(t);for(var e=this.$config.rowStore,n=0;n<e.countVisible();n++){var r=this.getRowTop(n),i=this.getRowTop(n+1);if(!i){var o=e.getIdByIndex(n);i=r+this.getItemHeight(o)}if(t>=r&&t<i)return n}}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(){var t=this;this.canParse=function(e){return!isNaN(t.parse(e))},this.format=function(t){return String(t)},this.parse=function(t){return parseInt(t,10)}}return t.create=function(e){return void 0===e&&(e=null),new t},t}();e.default=r},function(t,e){function n(t,e,n){for(var r=0;r<e.length;r++)t.isLinkExists(e[r])&&(n[e[r]]=t.getLink(e[r]))}function r(t,e,r){n(t,e.$source,r),n(t,e.$target,r)}t.exports={getSubtreeLinks:function(t,e){var n={};return t.isTaskExists(e)&&r(t,t.getTask(e),n),t.eachTask(function(e){r(t,e,n)},e),n},getSubtreeTasks:function(t,e){var n={};return t.eachTask(function(t){n[t.id]=t},e),n}}},function(t,e,n){function r(t){var e=function(t){var e=new o(t).primaryScale(),n=e.unit,r=e.step;if(t.config.scale_offset_minimal){var a=new i(t),s=[a.primaryScale()].concat(a.getSubScales());a.sortScales(s),n=s[s.length-1].unit,r=s[s.length-1].step||1}return{unit:n,step:r}}(t),n=e.unit,r=e.step,a=function(t,e){var n={start_date:null,end_date:null};if(e.config.start_date&&e.config.end_date){n.start_date=e.date[t+"_start"](new Date(e.config.start_date));var r=new Date(e.config.end_date),i=e.date[t+"_start"](new Date(r));r=+r!=+i?e.date.add(i,1,t):i,n.end_date=r}return n}(n,t);if(!a.start_date||!a.end_date){for(var s=!0,u=t.getTaskByTime(),l=0;l<u.length;l++)if(u[l].type!==t.config.types.project){s=!1;break}if(u.length&&s){var c=u[0].start_date,f=t.date.add(c,1,t.config.duration_unit);a={start_date:new Date(c),end_date:new Date(f)}}else a=t.getSubtaskDates();a.start_date&&a.end_date||(a={start_date:new Date,end_date:new Date}),a.start_date=t.date[n+"_start"](a.start_date),a.start_date=t.calculateEndDate({start_date:t.date[n+"_start"](a.start_date),duration:-1,unit:n,step:r}),a.end_date=t.date[n+"_start"](a.end_date),a.end_date=t.calculateEndDate({start_date:a.end_date,duration:2,unit:n,step:r})}t._min_date=a.start_date,t._max_date=a.end_date}var i=n(26),o=n(26);t.exports=function(t){r(t),function(t){if(t.config.fit_tasks){var e=+t._min_date,n=+t._max_date;if(+t._min_date!=e||+t._max_date!=n)t.render(),t.callEvent("onScaleAdjusted",[])}}(t)}},function(t,e,n){var r=n(40),i=n(0),o=n(2),a=n(41),s=n(11),u=n(2).replaceValidZeroId;a.default&&(a=a.default);var l=function(t){a.apply(this,[t]),this._branches={},this.pull={},this.$initItem=function(e){var n=e;t.initItem&&(n=t.initItem(n));var r=this.getItem(e.id);return r&&r.parent!=n.parent&&this.move(n.id,n.$index||-1,n.parent||this._ganttConfig.root_id),n},this.$parentProperty=t.parentProperty||"parent","function"!=typeof t.rootId?this.$getRootId=function(t){return function(){return t}}(t.rootId||0):this.$getRootId=t.rootId,this.$openInitially=t.openInitially,this.visibleOrder=r.$create(),this.fullOrder=r.$create(),this._searchVisibleOrder={},this._indexRangeCache={},this._eachItemMainRangeCache=null,this._getItemsCache=null,this._skip_refresh=!1,this._ganttConfig=null,t.getConfig&&(this._ganttConfig=t.getConfig());var e={},n={},i={},o={},s=!1;return this._attachDataChange(function(){return this._indexRangeCache={},this._eachItemMainRangeCache=null,this._getItemsCache=null,!0}),this.attachEvent("onPreFilter",function(){this._indexRangeCache={},this._eachItemMainRangeCache=null,e={},n={},i={},o={},s=!1,this.eachItem(function(t){var r=this.getParent(t.id);t.$open&&!1!==i[r]?i[t.id]=!0:i[t.id]=!1,this._isSplitItem(t)&&(s=!0,e[t.id]=!0,n[t.id]=!0),s&&n[r]&&(n[t.id]=!0),i[r]||void 0===i[r]?o[t.id]=!0:o[t.id]=!1})}),this.attachEvent("onFilterItem",function(t,r){var i=!1;this._ganttConfig&&(i=this._ganttConfig.open_split_tasks);var a=o[r.id];return s&&(a&&n[r.id]&&!e[r.id]&&(a=!!i),n[r.id]&&!e[r.id]&&(r.$split_subtask=!0)),r.$expanded_branch=!!o[r.id],!!a}),this.attachEvent("onFilter",function(){e={},n={},i={},o={}}),this};l.prototype=i.mixin({_buildTree:function(t){for(var e=null,n=this.$getRootId(),r=0,o=t.length;r<o;r++)e=t[r],this.setParent(e,u(this.getParent(e),n)||n);for(r=0,o=t.length;r<o;r++)e=t[r],this._add_branch(e),e.$level=this.calculateItemLevel(e),e.$local_index=this.getBranchIndex(e.id),i.defined(e.$open)||(e.$open=i.defined(e.open)?e.open:this.$openInitially());this._updateOrder()},_isSplitItem:function(t){return"split"==t.render&&this.hasChild(t.id)},parse:function(t){this._skip_refresh||this.callEvent("onBeforeParse",[t]);var e=this._parseInner(t);this._buildTree(e),this.filter(),this._skip_refresh||this.callEvent("onParse",[e])},_addItemInner:function(t,e){var n=this.getParent(t);i.defined(n)||(n=this.$getRootId(),this.setParent(t,n));var r=this.getIndexById(n)+Math.min(Math.max(e,0),this.visibleOrder.length);1*r!==r&&(r=void 0),a.prototype._addItemInner.call(this,t,r),this.setParent(t,n),t.hasOwnProperty("$rendered_parent")&&this._move_branch(t,t.$rendered_parent),this._add_branch(t,e)},_changeIdInner:function(t,e){var n=this.getChildren(t),r=this._searchVisibleOrder[t];a.prototype._changeIdInner.call(this,t,e);var i=this.getParent(e);this._replace_branch_child(i,t,e),this._branches[t]&&(this._branches[e]=this._branches[t]);for(var o=0;o<n.length;o++){var s=this.getItem(n[o]);s[this.$parentProperty]=e,s.$rendered_parent=e}this._searchVisibleOrder[e]=r,delete this._branches[t]},_traverseBranches:function(t,e){i.defined(e)||(e=this.$getRootId());var n=this._branches[e];if(n)for(var r=0;r<n.length;r++){var o=n[r];t.call(this,o),this._branches[o]&&this._traverseBranches(t,o)}},_updateOrder:function(t){this.fullOrder=r.$create(),this._traverseBranches(function(t){this.fullOrder.push(t)}),t&&a.prototype._updateOrder.call(this,t)},_removeItemInner:function(t){var e=[];this.eachItem(function(t){e.push(t)},t),e.push(this.getItem(t));for(var n=0;n<e.length;n++)this._move_branch(e[n],this.getParent(e[n]),null),a.prototype._removeItemInner.call(this,e[n].id),this._move_branch(e[n],this.getParent(e[n]),null)},move:function(t,e,n){var r=arguments[3],o=(this._ganttConfig||{}).root_id||0;if(r=u(r,o)){if(r===t)return;n=this.getParent(r),e=this.getBranchIndex(r)}if(t!=n){i.defined(n)||(n=this.$getRootId());var a=this.getItem(t),l=this.getParent(a.id),c=this.getChildren(n);if(-1==e&&(e=c.length+1),l==n&&this.getBranchIndex(t)==e)return;if(!1===this.callEvent("onBeforeItemMove",[t,n,e]))return!1;for(var f=[],d=0;d<c.length;d++)s(c[d],null,this,this._ganttConfig)&&(f.push(c[d]),c.splice(d,1),d--);this._replace_branch_child(l,t);var h=(c=this.getChildren(n))[e];(h=u(h,o))?c=c.slice(0,e).concat([t]).concat(c.slice(e)):c.push(t),f.length&&(c=c.concat(f)),this.setParent(a,n),this._branches[n]=c;var p=this.calculateItemLevel(a)-a.$level;a.$level+=p,this.eachItem(function(t){t.$level+=p},a.id,this),this._moveInner(this.getIndexById(t),this.getIndexById(n)+e),this.callEvent("onAfterItemMove",[t,n,e]),this.refresh()}},getBranchIndex:function(t){for(var e=this.getChildren(this.getParent(t)),n=0;n<e.length;n++)if(e[n]==t)return n;return-1},hasChild:function(t){var e=this._branches[t];return e&&e.length},getChildren:function(t){return this._branches[t]||r.$create()},isChildOf:function(t,e){if(!this.exists(t))return!1;if(e===this.$getRootId())return!0;if(!this.hasChild(e))return!1;var n=this.getItem(t),r=this.getParent(t);if(this.getItem(e).$level>=n.$level)return!1;for(;n&&this.exists(r);){if((n=this.getItem(r))&&n.id==e)return!0;r=this.getParent(n)}return!1},getSiblings:function(t){if(!this.exists(t))return r.$create();var e=this.getParent(t);return this.getChildren(e)},getNextSibling:function(t){for(var e=this.getSiblings(t),n=0,r=e.length;n<r;n++)if(e[n]==t){var i=e[n+1];return 0===i&&n>0&&(i="0"),i||null}return null},getPrevSibling:function(t){for(var e=this.getSiblings(t),n=0,r=e.length;n<r;n++)if(e[n]==t){var i=e[n-1];return 0===i&&n>0&&(i="0"),i||null}return null},getParent:function(t){var e=null;return(e=void 0!==t.id?t:this.getItem(t))?e[this.$parentProperty]:this.$getRootId()},clearAll:function(){this._branches={},a.prototype.clearAll.call(this)},calculateItemLevel:function(t){var e=0;return this.eachParent(function(){e++},t),e},_setParentInner:function(t,e,n){n||(t.hasOwnProperty("$rendered_parent")?this._move_branch(t,t.$rendered_parent,e):this._move_branch(t,t[this.$parentProperty],e))},setParent:function(t,e,n){this._setParentInner(t,e,n),t[this.$parentProperty]=e},_eachItemCached:function(t,e){for(var n=0,r=e.length;n<r;n++)t.call(this,e[n])},_eachItemIterate:function(t,e,n){var r=this.getChildren(e);for(r.length&&(r=r.slice().reverse());r.length;){var i=r.pop(),o=this.getItem(i);if(t.call(this,o),n&&n.push(o),this.hasChild(o.id))for(var a=this.getChildren(o.id),s=a.length-1;s>=0;s--)r.push(a[s])}},eachItem:function(t,e){var n=this.$getRootId();i.defined(e)||(e=n);var r=u(e,n)||n,o=!1,a=!1,s=null;r===n&&(this._eachItemMainRangeCache?(o=!0,s=this._eachItemMainRangeCache):(a=!0,s=this._eachItemMainRangeCache=[])),o?this._eachItemCached(t,s):this._eachItemIterate(t,r,a?s:null)},eachParent:function(t,e){for(var n={},r=e,i=this.getParent(r);this.exists(i);){if(n[i])throw new Error("Invalid tasks tree. Cyclic reference has been detected on task "+i);n[i]=!0,r=this.getItem(i),t.call(this,r),i=this.getParent(r)}},_add_branch:function(t,e,n){var i=void 0===n?this.getParent(t):n;this.hasChild(i)||(this._branches[i]=r.$create());for(var o=this.getChildren(i),a=!1,s=0,u=o.length;s<u;s++)if(o[s]==t.id){a=!0;break}a||(1*e==e?o.splice(e,0,t.id):o.push(t.id),t.$rendered_parent=i)},_move_branch:function(t,e,n){this._eachItemMainRangeCache=null,this._replace_branch_child(e,t.id),this.exists(n)||n==this.$getRootId()?this._add_branch(t,void 0,n):delete this._branches[t.id],t.$level=this.calculateItemLevel(t),this.eachItem(function(t){t.$level=this.calculateItemLevel(t)},t.id)},_replace_branch_child:function(t,e,n){var i=this.getChildren(t);if(i&&void 0!==t){for(var o=r.$create(),a=0;a<i.length;a++)i[a]!=e?o.push(i[a]):n&&o.push(n);this._branches[t]=o}},sort:function(t,e,n){this.exists(n)||(n=this.$getRootId()),t||(t="order");var r="string"==typeof t?function(e,n){return e[t]==n[t]||o.isDate(e[t])&&o.isDate(n[t])&&e[t].valueOf()==n[t].valueOf()?0:e[t]>n[t]?1:-1}:t;if(e){var i=r;r=function(t,e){return i(e,t)}}var a=this.getChildren(n);if(a){for(var s=[],u=a.length-1;u>=0;u--)s[u]=this.getItem(a[u]);for(s.sort(r),u=0;u<s.length;u++)a[u]=s[u].id,this.sort(t,e,a[u])}},filter:function(t){for(var e in this.pull)this.pull[e].$rendered_parent!==this.getParent(this.pull[e])&&this._move_branch(this.pull[e],this.pull[e].$rendered_parent,this.getParent(this.pull[e]));return a.prototype.filter.apply(this,arguments)},open:function(t){this.exists(t)&&(this.getItem(t).$open=!0,this.callEvent("onItemOpen",[t]))},close:function(t){this.exists(t)&&(this.getItem(t).$open=!1,this.callEvent("onItemClose",[t]))},destructor:function(){a.prototype.destructor.call(this),this._branches=null,this._indexRangeCache={},this._eachItemMainRangeCache=null}},a.prototype),t.exports=l},function(t,e,n){var r=n(0),i={$create:function(t){return r.mixin(t||[],this)},$removeAt:function(t,e){t>=0&&this.splice(t,e||1)},$remove:function(t){this.$removeAt(this.$find(t))},$insertAt:function(t,e){if(e||0===e){var n=this.splice(e,this.length-e);this[e]=t,this.push.apply(this,n)}else this.push(t)},$find:function(t){for(var e=0;e<this.length;e++)if(t==this[e])return e;return-1},$each:function(t,e){for(var n=0;n<this.length;n++)t.call(e||this,this[n])},$map:function(t,e){for(var n=0;n<this.length;n++)this[n]=t.call(e||this,this[n]);return this},$filter:function(t,e){for(var n=0;n<this.length;n++)t.call(e||this,this[n])||(this.splice(n,1),n--);return this}};t.exports=i},function(t,e,n){var r=n(40),i=n(0),o=n(4),a=n(11),s=function(t){return this.pull={},this.$initItem=t.initItem,this.visibleOrder=r.$create(),this.fullOrder=r.$create(),this._skip_refresh=!1,this._filterRule=null,this._searchVisibleOrder={},this._indexRangeCache={},this._getItemsCache=null,this.$config=t,o(this),this._attachDataChange(function(){return this._indexRangeCache={},this._getItemsCache=null,!0}),this};s.prototype={_attachDataChange:function(t){this.attachEvent("onClearAll",t),this.attachEvent("onBeforeParse",t),this.attachEvent("onBeforeUpdate",t),this.attachEvent("onBeforeDelete",t),this.attachEvent("onBeforeAdd",t),this.attachEvent("onParse",t),this.attachEvent("onBeforeFilter",t)},_parseInner:function(t){for(var e=null,n=[],r=0,o=t.length;r<o;r++)e=t[r],this.$initItem&&(this.$config.copyOnParse()&&(e=i.copy(e)),e=this.$initItem(e)),this.callEvent("onItemLoading",[e])&&(this.pull.hasOwnProperty(e.id)||this.fullOrder.push(e.id),n.push(e),this.pull[e.id]=e);return n},parse:function(t){this.isSilent()||this.callEvent("onBeforeParse",[t]);var e=this._parseInner(t);this.isSilent()||(this.refresh(),this.callEvent("onParse",[e]))},getItem:function(t){return this.pull[t]},_updateOrder:function(t){t.call(this.visibleOrder),t.call(this.fullOrder)},updateItem:function(t,e){if(i.defined(e)||(e=this.getItem(t)),!this.isSilent()&&!1===this.callEvent("onBeforeUpdate",[e.id,e]))return!1;i.mixin(this.pull[t],e,!0),this.isSilent()||(this.callEvent("onAfterUpdate",[e.id,e]),this.callEvent("onStoreUpdated",[e.id,e,"update"]))},_removeItemInner:function(t){this._updateOrder(function(){this.$remove(t)}),delete this.pull[t]},removeItem:function(t){var e=this.getItem(t);if(!this.isSilent()&&!1===this.callEvent("onBeforeDelete",[e.id,e]))return!1;this.callEvent("onAfterDeleteConfirmed",[e.id,e]),this._removeItemInner(t),this.isSilent()||(this.filter(),this.callEvent("onAfterDelete",[e.id,e]),this.callEvent("onStoreUpdated",[e.id,e,"delete"]))},_addItemInner:function(t,e){if(this.exists(t.id))this.silent(function(){this.updateItem(t.id,t)});else{var n=this.visibleOrder,r=n.length;(!i.defined(e)||e<0)&&(e=r),e>r&&(e=Math.min(n.length,e))}this.pull[t.id]=t,this.isSilent()||this._updateOrder(function(){-1===this.$find(t.id)&&this.$insertAt(t.id,e)}),this.filter()},isVisible:function(t){return this.visibleOrder.$find(t)>-1},getVisibleItems:function(){return this.getIndexRange()},addItem:function(t,e){return i.defined(t.id)||(t.id=i.uid()),this.$initItem&&(t=this.$initItem(t)),!(!this.isSilent()&&!1===this.callEvent("onBeforeAdd",[t.id,t]))&&(this._addItemInner(t,e),this.isSilent()||(this.callEvent("onAfterAdd",[t.id,t]),this.callEvent("onStoreUpdated",[t.id,t,"add"])),t.id)},_changeIdInner:function(t,e){this.pull[t]&&(this.pull[e]=this.pull[t]);var n=this._searchVisibleOrder[t];this.pull[e].id=e,this._updateOrder(function(){this[this.$find(t)]=e}),this._searchVisibleOrder[e]=n,delete this._searchVisibleOrder[t],delete this.pull[t]},changeId:function(t,e){this._changeIdInner(t,e),this.callEvent("onIdChange",[t,e])},exists:function(t){return!!this.pull[t]},_moveInner:function(t,e){var n=this.getIdByIndex(t);this._updateOrder(function(){this.$removeAt(t),this.$insertAt(n,Math.min(this.length,e))})},move:function(t,e){var n=this.getIdByIndex(t),r=this.getItem(n);this._moveInner(t,e),this.isSilent()||this.callEvent("onStoreUpdated",[r.id,r,"move"])},clearAll:function(){this.$destroyed||(this.silent(function(){this.unselect()}),this.pull={},this.visibleOrder=r.$create(),this.fullOrder=r.$create(),this.isSilent()||(this.callEvent("onClearAll",[]),this.refresh()))},silent:function(t,e){var n=!1;this.isSilent()&&(n=!0),this._skip_refresh=!0,t.call(e||this),n||(this._skip_refresh=!1)},isSilent:function(){return!!this._skip_refresh},arraysEqual:function(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0},refresh:function(t,e){var n,r;if(!this.isSilent()&&(t&&(n=this.getItem(t)),r=t?[t,n,"paint"]:[null,null,null],!1!==this.callEvent("onBeforeStoreUpdate",r))){var i=this._quick_refresh&&!this._mark_recompute;if(this._mark_recompute=!1,t){if(!e&&!i){var o=this.visibleOrder;this.filter(),this.arraysEqual(o,this.visibleOrder)||(t=void 0)}}else i||this.filter();r=t?[t,n,"paint"]:[null,null,null],this.callEvent("onStoreUpdated",r)}},count:function(){return this.fullOrder.length},countVisible:function(){return this.visibleOrder.length},sort:function(t){},serialize:function(){},eachItem:function(t){for(var e=0;e<this.fullOrder.length;e++){var n=this.getItem(this.fullOrder[e]);t.call(this,n)}},find:function(t){var e=[];return this.eachItem(function(n){t(n)&&e.push(n)}),e},filter:function(t){this.isSilent()||this.callEvent("onBeforeFilter",[]),this.callEvent("onPreFilter",[]);var e=r.$create(),n=[];this.eachItem(function(t){this.callEvent("onFilterItem",[t.id,t])&&(a(t.id,null,this,this._ganttConfig)?n.push(t.id):e.push(t.id))});for(var i=0;i<n.length;i++)e.push(n[i]);for(this.visibleOrder=e,this._searchVisibleOrder={},i=0;i<this.visibleOrder.length;i++)this._searchVisibleOrder[this.visibleOrder[i]]=i;this.isSilent()||this.callEvent("onFilter",[])},getIndexRange:function(t,e){var n=Math.min(e||1/0,this.countVisible()-1),r=t||0,i=r+"-"+n;if(this._indexRangeCache[i])return this._indexRangeCache[i].slice();for(var o=[],a=r;a<=n;a++)o.push(this.getItem(this.visibleOrder[a]));return this._indexRangeCache[i]=o.slice(),o},getItems:function(){if(this._getItemsCache)return this._getItemsCache.slice();var t=[];for(var e in this.pull)t.push(this.pull[e]);return this._getItemsCache=t.slice(),t},getIdByIndex:function(t){return this.visibleOrder[t]},getIndexById:function(t){var e=this._searchVisibleOrder[t];return void 0===e&&(e=-1),e},_getNullIfUndefined:function(t){return void 0===t?null:t},getFirst:function(){return this._getNullIfUndefined(this.visibleOrder[0])},getLast:function(){return this._getNullIfUndefined(this.visibleOrder[this.visibleOrder.length-1])},getNext:function(t){return this._getNullIfUndefined(this.visibleOrder[this.getIndexById(t)+1])},getPrev:function(t){return this._getNullIfUndefined(this.visibleOrder[this.getIndexById(t)-1])},destructor:function(){this.callEvent("onDestroy",[]),this.detachAllEvents(),this.$destroyed=!0,this.pull=null,this.$initItem=null,this.visibleOrder=null,this.fullOrder=null,this._skip_refresh=null,this._filterRule=null,this._searchVisibleOrder=null,this._indexRangeCache={}}},t.exports=s},function(t,e){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function i(t){if(l===setTimeout)return setTimeout(t,0);if((l===n||!l)&&setTimeout)return l=setTimeout,setTimeout(t,0);try{return l(t,0)}catch(e){try{return l.call(null,t,0)}catch(e){return l.call(this,t,0)}}}function o(){p&&d&&(p=!1,d.length?h=d.concat(h):g=-1,h.length&&a())}function a(){if(!p){var t=i(o);p=!0;for(var e=h.length;e;){for(d=h,h=[];++g<e;)d&&d[g].run();g=-1,e=h.length}d=null,p=!1,function(t){if(c===clearTimeout)return clearTimeout(t);if((c===r||!c)&&clearTimeout)return c=clearTimeout,clearTimeout(t);try{c(t)}catch(e){try{return c.call(null,t)}catch(e){return c.call(this,t)}}}(t)}}function s(t,e){this.fun=t,this.array=e}function u(){}var l,c,f=t.exports={};!function(){try{l="function"==typeof setTimeout?setTimeout:n}catch(t){l=n}try{c="function"==typeof clearTimeout?clearTimeout:r}catch(t){c=r}}();var d,h=[],p=!1,g=-1;f.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];h.push(new s(t,e)),1!==h.length||p||i(a)},s.prototype.run=function(){this.fun.apply(null,this.array)},f.title="browser",f.browser=!0,f.env={},f.argv=[],f.version="",f.versions={},f.on=u,f.addListener=u,f.once=u,f.off=u,f.removeListener=u,f.removeAllListeners=u,f.emit=u,f.prependListener=u,f.prependOnceListener=u,f.listeners=function(t){return[]},f.binding=function(t){throw new Error("process.binding is not supported")},f.cwd=function(){return"/"},f.chdir=function(t){throw new Error("process.chdir is not supported")},f.umask=function(){return 0}},function(t,e){t.exports=function(t,e){if(!e)return!0;if(t._on_timeout)return!1;var n=Math.ceil(1e3/e);return n<2||(setTimeout(function(){delete t._on_timeout},n),t._on_timeout=!0,!0)}},function(t,e,n){var r=n(0);t.exports=function t(e,n){e=e||r.event,n=n||r.eventRemove;var i=[],o={attach:function(t,n,r,o){i.push({element:t,event:n,callback:r,capture:o}),e(t,n,r,o)},detach:function(t,e,r,o){n(t,e,r,o);for(var a=0;a<i.length;a++){var s=i[a];s.element===t&&s.event===e&&s.callback===r&&s.capture===o&&(i.splice(a,1),a--)}},detachAll:function(){for(var t=i.slice(),e=0;e<t.length;e++){var n=t[e];o.detach(n.element,n.event,n.callback,n.capture),o.detach(n.element,n.event,n.callback,void 0),o.detach(n.element,n.event,n.callback,!1),o.detach(n.element,n.event,n.callback,!0)}i.splice(0,i.length)},extend:function(){return t(this.event,this.eventRemove)}};return o}},function(t,e){t.exports=function(t){function e(t){return(t+"").replace(r," ").replace(i," ")}function n(t){return(t+"").replace(o,"&#39;")}var r=new RegExp("<(?:.|\n)*?>","gm"),i=new RegExp(" +","gm"),o=new RegExp("'","gm");for(var a in t._waiAria={getAttributeString:function(t){var r=[" "];for(var i in t){var o=n(e(t[i]));r.push(i+"='"+o+"'")}return r.push(" "),r.join(" ")},getTimelineCellAttr:function(e){return t._waiAria.getAttributeString({"aria-label":e})},_taskCommonAttr:function(n,r){n.start_date&&n.end_date&&(r.setAttribute("aria-label",e(t.templates.tooltip_text(n.start_date,n.end_date,n))),n.$dataprocessor_class&&r.setAttribute("aria-busy",!0),r.setAttribute("aria-selected",t.isSelectedTask(n.id)?"true":"false"))},setTaskBarAttr:function(e,n){this._taskCommonAttr(e,n),!t.isReadonly(e)&&t.config.drag_move&&(e.id!=t.getState("tasksDnd").drag_id?n.setAttribute("aria-grabbed",!1):n.setAttribute("aria-grabbed",!0))},taskRowAttr:function(e,n){this._taskCommonAttr(e,n),!t.isReadonly(e)&&t.config.order_branch&&n.setAttribute("aria-grabbed",!1),n.setAttribute("role","row"),n.setAttribute("aria-level",e.$level),t.hasChild(e.id)&&n.setAttribute("aria-expanded",e.$open?"true":"false")},linkAttr:function(n,r){var i=t.config.links,o=n.type==i.finish_to_start||n.type==i.start_to_start,a=n.type==i.start_to_start||n.type==i.start_to_finish,s=t.locale.labels.link+" "+t.templates.drag_link(n.source,a,n.target,o);r.setAttribute("aria-label",e(s)),t.isReadonly(n)&&r.setAttribute("aria-readonly",!0)},gridSeparatorAttr:function(t){t.setAttribute("role","separator")},lightboxHiddenAttr:function(t){t.setAttribute("aria-hidden","true")},lightboxVisibleAttr:function(t){t.setAttribute("aria-hidden","false")},lightboxAttr:function(t){t.setAttribute("role","dialog"),t.setAttribute("aria-hidden","true"),t.firstChild.setAttribute("role","heading")},lightboxButtonAttrString:function(e){return this.getAttributeString({role:"button","aria-label":t.locale.labels[e],tabindex:"0"})},lightboxHeader:function(t,e){t.setAttribute("aria-label",e)},lightboxSelectAttrString:function(e){var n="";switch(e){case"%Y":n=t.locale.labels.years;break;case"%m":n=t.locale.labels.months;break;case"%d":n=t.locale.labels.days;break;case"%H:%i":n=t.locale.labels.hours+t.locale.labels.minutes}return t._waiAria.getAttributeString({"aria-label":n})},lightboxDurationInputAttrString:function(e){return this.getAttributeString({"aria-label":t.locale.labels.column_duration,"aria-valuemin":"0"})},gridAttrString:function(){return[" role='treegrid'",t.config.multiselect?"aria-multiselectable='true'":"aria-multiselectable='false'"," "].join(" ")},gridScaleRowAttrString:function(){return"role='row'"},gridScaleCellAttrString:function(e,n){var r="";if("add"==e.name)r=this.getAttributeString({role:"button","aria-label":t.locale.labels.new_task});else{var i={role:"columnheader","aria-label":n};t._sort&&t._sort.name==e.name&&("asc"==t._sort.direction?i["aria-sort"]="ascending":i["aria-sort"]="descending"),r=this.getAttributeString(i)}return r},gridDataAttrString:function(){return"role='rowgroup'"},gridCellAttrString:function(e,n,r){var i={role:"gridcell","aria-label":n};return e.editor&&!t.isReadonly(r)||(i["aria-readonly"]=!0),this.getAttributeString(i)},gridAddButtonAttrString:function(e){return this.getAttributeString({role:"button","aria-label":t.locale.labels.new_task})},messageButtonAttrString:function(t){return"tabindex='0' role='button' aria-label='"+t+"'"},messageInfoAttr:function(t){t.setAttribute("role","alert")},messageModalAttr:function(t,e){t.setAttribute("role","dialog"),e&&t.setAttribute("aria-labelledby",e)},quickInfoAttr:function(t){t.setAttribute("role","dialog")},quickInfoHeaderAttrString:function(){return" role='heading' "},quickInfoHeader:function(t,e){t.setAttribute("aria-label",e)},quickInfoButtonAttrString:function(e){return t._waiAria.getAttributeString({role:"button","aria-label":e,tabindex:"0"})},tooltipAttr:function(t){t.setAttribute("role","tooltip")},tooltipVisibleAttr:function(t){t.setAttribute("aria-hidden","false")},tooltipHiddenAttr:function(t){t.setAttribute("aria-hidden","true")}},t._waiAria)t._waiAria[a]=function(e){return function(){return t.config.wai_aria_attributes?e.apply(this,arguments):""}}(t._waiAria[a])}},function(t,e){t.exports=function(t){t._extend_to_optional=function(e){var n=e,r={render:n.render,focus:n.focus,set_value:function(e,i,o,a){var s=t._resolve_default_mapping(a);if(!o[s.start_date]||"start_date"==s.start_date&&this._isAllowedUnscheduledTask(o)){r.disable(e,a);var u={};for(var l in s)u[s[l]]=o[l];return n.set_value.call(t,e,i,u,a)}return r.enable(e,a),n.set_value.call(t,e,i,o,a)},get_value:function(e,r,i){return i.disabled?{start_date:null}:n.get_value.call(t,e,r,i)},update_block:function(e,n){if(t.callEvent("onSectionToggle",[t._lightbox_id,n]),e.style.display=n.disabled?"none":"block",n.button){var r=e.previousSibling.querySelector(".gantt_custom_button_label"),i=t.locale.labels,o=n.disabled?i[n.name+"_enable_button"]:i[n.name+"_disable_button"];r.innerHTML=o}t.resizeLightbox()},disable:function(t,e){e.disabled=!0,r.update_block(t,e)},enable:function(t,e){e.disabled=!1,r.update_block(t,e)},button_click:function(e,n,i,o){if(!1!==t.callEvent("onSectionButton",[t._lightbox_id,i])){var a=t._get_typed_lightbox_config()[e];a.disabled?r.enable(o,a):r.disable(o,a)}}};return r},t.form_blocks.duration_optional=t._extend_to_optional(t.form_blocks.duration),t.form_blocks.time_optional=t._extend_to_optional(t.form_blocks.time)}},function(t,e,n){var r=n(3);t.exports=function(t){function e(){return i.apply(this,arguments)||this}var i=n(12)(t);return r(e,i),e.prototype.render=function(e){var n=t.config.types,r=t.locale.labels,o=[],a=e.filter||function(t,e){return!n.placeholder||e!==n.placeholder};for(var s in n)0==!a(s,n[s])&&o.push({key:n[s],label:r["type_"+s]});e.options=o;var u=e.onchange;return e.onchange=function(){t.changeLightboxType(this.value),this.value===t.config.types.task&&(t._lightbox_new_type="task"),"function"==typeof u&&u.apply(this,arguments)},i.prototype.render.apply(this,arguments)},e}},function(t,e,n){var r=n(3),i=n(29);t.exports=function(t){function e(){return s.apply(this,arguments)||this}function o(e){return!e||e===t.config.constraint_types.ASAP||e===t.config.constraint_types.ALAP}function a(t,e){for(var n=o(e),r=0;r<t.length;r++)t[r].disabled=n}var s=n(6)(t);return r(e,s),e.prototype.render=function(e){var n=(e.height||30)+"px",r="<div class='gantt_cal_ltext gantt_section_"+e.name+"' style='height:"+n+";'>",o=[];for(var a in t.config.constraint_types)o.push({key:t.config.constraint_types[a],label:t.locale.labels[t.config.constraint_types[a]]});return e.options=e.options||o,r+="<span data-constraint-type-select>"+i.getHtmlSelect(e.options,[{key:"data-type",value:"constraint-type"}])+"</span>",r+="<label data-constraint-time-select>"+(t.locale.labels.constraint_date||"Constraint date")+": "+t.form_blocks.getTimePicker.call(this,e)+"</label>",r+="</div>"},e.prototype.set_value=function(e,n,r,i){var o=e.querySelector("[data-constraint-type-select] select"),s=e.querySelectorAll("[data-constraint-time-select] select"),u=i._time_format_order,l=t._resolve_default_mapping(i);o._eventsInitialized||(o.addEventListener("change",function(t){a(s,t.target.value)}),o._eventsInitialized=!0);var c=r[l.constraint_date]||new Date;t.form_blocks._fill_lightbox_select(s,0,c,u,i);var f=r[l.constraint_type]||t.getConstraintType(r);o.value=f,a(s,f)},e.prototype.get_value=function(e,n,r){var i=e.querySelector("[data-constraint-type-select] select"),a=e.querySelectorAll("[data-constraint-time-select] select"),s=i.value,u=null;return o(s)||(u=t.form_blocks.getTimePickerValue(a,r)),{constraint_type:s,constraint_date:u}},e.prototype.focus=function(e){t._focus(e.querySelector("select"))},e}},function(t,e,n){var r=n(3);t.exports=function(t){function e(){return o.apply(this,arguments)||this}function i(e,n){var r=[],i=[];n&&(r=t.getTaskByTime(),e.allow_root&&r.unshift({id:t.config.root_id,text:e.root_label||""}),r=function(e,n,r){var i=n.filter||function(){return!0};e=e.slice(0);for(var o=0;o<e.length;o++){var a=e[o];(a.id==r||t.isChildOf(a.id,r)||!1===i(a.id,a))&&(e.splice(o,1),o--)}return e}(r,e,n),e.sort&&r.sort(e.sort));for(var o=e.template||t.templates.task_text,a=0;a<r.length;a++){var s=o.apply(t,[r[a].start_date,r[a].end_date,r[a]]);void 0===s&&(s=""),i.push({key:r[a].id,label:s})}return e.options=i,e.map_to=e.map_to||"parent",t.form_blocks.select.render.apply(this,arguments)}var o=n(12)(t);return r(e,o),e.prototype.render=function(t){return i(t,!1)},e.prototype.set_value=function(e,n,r,o){0===n&&(n="0");var a=document.createElement("div");a.innerHTML=i(o,r.id);var s=a.removeChild(a.firstChild);return e.onselect=null,e.parentNode.replaceChild(s,e),t.form_blocks.select.set_value.apply(t,[s,n,r,o])},e}},function(t,e,n){var r=n(3),i=n(36).default;t.exports=function(t){function e(){return u.apply(this,arguments)||this}function o(t){return t.formatter||new i}function a(e,n){var r=e.getElementsByTagName("select"),i=n._time_format_order,o=0,a=0;if(t.defined(i[3])){var s=r[i[3]],u=parseInt(s.value,10);isNaN(u)&&s.hasAttribute("data-value")&&(u=parseInt(s.getAttribute("data-value"),10)),o=Math.floor(u/60),a=u%60}return new Date(r[i[2]].value,r[i[1]].value,r[i[0]].value,o,a)}function s(t,e){var n=t.getElementsByTagName("input")[1];return(n=o(e).parse(n.value))&&!window.isNaN(n)||(n=1),n<0&&(n*=-1),n}var u=n(6)(t);return r(e,u),e.prototype.render=function(e){var n="<div class='gantt_time_selects'>"+t.form_blocks.getTimePicker.call(this,e)+"</div>",r=" "+t.locale.labels[t.config.duration_unit+"s"]+" ",i=e.single_date?" style='display:none'":"",o=e.readonly?" disabled='disabled'":"",a=t._waiAria.lightboxDurationInputAttrString(e),s="gantt_duration_value";e.formatter&&(r="",s+=" gantt_duration_value_formatted");var u="<div class='gantt_duration' "+i+"><input type='button' class='gantt_duration_dec' value='−'"+o+"><input type='text' value='5days' class='"+s+"'"+o+" "+a+"><input type='button' class='gantt_duration_inc' value='+'"+o+">"+r+"<span></span></div>";return"<div style='height:"+(e.height||30)+"px;padding-top:0px;font-size:inherit;' class='gantt_section_time'>"+n+" "+u+"</div>"},e.prototype.set_value=function(e,n,r,i){function u(){var n=a.call(t,e,i),o=s.call(t,e,i),u=t.calculateEndDate({start_date:n,duration:o,task:r}),l=t.templates.task_end_date||t.templates.task_date;y.innerHTML=l(u)}function l(t){var e=m.value;e=o(i).parse(e),window.isNaN(e)&&(e=0),(e+=t)<1&&(e=1),m.value=o(i).format(e),u()}var c,f,d,h,p=e.getElementsByTagName("select"),g=e.getElementsByTagName("input"),m=g[1],v=[g[0],g[2]],y=e.getElementsByTagName("span")[0],b=i._time_format_order;v[0].onclick=t.bind(function(){l(-1*t.config.duration_step)},this),v[1].onclick=t.bind(function(){l(1*t.config.duration_step)},this),p[0].onchange=u,p[1].onchange=u,p[2].onchange=u,p[3]&&(p[3].onchange=u),m.onkeydown=t.bind(function(e){var n;return(n=(e=e||window.event).charCode||e.keyCode||e.which)==t.constants.KEY_CODES.DOWN?(l(-1*t.config.duration_step),!1):n==t.constants.KEY_CODES.UP?(l(1*t.config.duration_step),!1):void window.setTimeout(u,1)},this),m.onchange=t.bind(u,this),"string"==typeof(c=t._resolve_default_mapping(i))&&(c={start_date:c}),f=r[c.start_date]||new Date,d=r[c.end_date]||t.calculateEndDate({start_date:f,duration:1,task:r}),h=Math.round(r[c.duration])||t.calculateDuration({start_date:f,end_date:d,task:r}),h=o(i).format(h),t.form_blocks._fill_lightbox_select(p,0,f,b,i),m.value=h,u()},e.prototype.get_value=function(e,n,r){var i=a(e,r),o=s(e,r),u=t.calculateEndDate({start_date:i,duration:o,task:n});return"string"==typeof t._resolve_default_mapping(r)?i:{start_date:i,end_date:u,duration:o}},e.prototype.focus=function(e){t._focus(e.getElementsByTagName("select")[0])},e}},function(t,e,n){var r=n(3);t.exports=function(t){function e(){return i.apply(this,arguments)||this}var i=n(6)(t);return r(e,i),e.prototype.render=function(t){var e="<div class='gantt_cal_ltext' style='height:"+(t.height||"23")+"px;'>";if(t.options&&t.options.length)for(var n=0;n<t.options.length;n++)e+="<label><input type='radio' value='"+t.options[n].key+"' name='"+t.name+"'>"+t.options[n].label+"</label>";return e+="</div>"},e.prototype.set_value=function(t,e,n,r){var i;r.options&&r.options.length&&(i=t.querySelector("input[type=radio][value='"+e+"']")||t.querySelector("input[type=radio][value='"+r.default_value+"']"))&&(!t._dhx_onchange&&r.onchange&&(t.onchange=r.onchange,t._dhx_onchange=!0),i.checked=!0)},e.prototype.get_value=function(t,e){var n=t.querySelector("input[type=radio]:checked");return n?n.value:""},e.prototype.focus=function(e){t._focus(e.querySelector("input[type=radio]"))},e}},function(t,e,n){var r=n(2),i=n(3);t.exports=function(t){function e(){return o.apply(this,arguments)||this}var o=n(6)(t);return i(e,o),e.prototype.render=function(t){var e="<div class='gantt_cal_ltext' style='height:"+(t.height||"23")+"px;'>";if(t.options&&t.options.length)for(var n=0;n<t.options.length;n++)e+="<label><input type='checkbox' value='"+t.options[n].key+"' name='"+t.name+"'>"+t.options[n].label+"</label>";else t.single_value=!0,e+="<label><input type='checkbox' name='"+t.name+"'></label>";return e+="</div>"},e.prototype.set_value=function(t,e,n,i){var o=Array.prototype.slice.call(t.querySelectorAll("input[type=checkbox]"));!t._dhx_onchange&&i.onchange&&(t.onchange=i.onchange,t._dhx_onchange=!0),i.single_value?o[0].checked=!!e:r.forEach(o,function(t){t.checked=!!e&&e.indexOf(t.value)>=0})},e.prototype.get_value=function(t,e,n){return n.single_value?t.querySelector("input[type=checkbox]").checked:r.arrayMap(Array.prototype.slice.call(t.querySelectorAll("input[type=checkbox]:checked")),function(t){return t.value})},e.prototype.focus=function(e){t._focus(e.querySelector("input[type=checkbox]"))},e}},function(t,e,n){var r=n(3);t.exports=function(t){function e(){return i.apply(this,arguments)||this}var i=n(6)(t);return r(e,i),e.prototype.render=function(e){var n=t.form_blocks.getTimePicker.call(this,e),r="<div style='height:"+(e.height||30)+"px;padding-top:0px;font-size:inherit;text-align:center;' class='gantt_section_time'>";return r+=n,e.single_date?(n=t.form_blocks.getTimePicker.call(this,e,!0),r+="<span></span>"):r+="<span style='font-weight:normal; font-size:10pt;'> &nbsp;&ndash;&nbsp; </span>",r+=n,r+="</div>"},e.prototype.set_value=function(e,n,r,i){var o=i,a=e.getElementsByTagName("select"),s=i._time_format_order;if(o.auto_end_date)for(var u=function(){f=new Date(a[s[2]].value,a[s[1]].value,a[s[0]].value,0,0),d=t.calculateEndDate({start_date:f,duration:1,task:r}),t.form_blocks._fill_lightbox_select(a,s.size,d,s,o)},l=0;l<4;l++)a[l].onchange=u;var c=t._resolve_default_mapping(i);"string"==typeof c&&(c={start_date:c});var f=r[c.start_date]||new Date,d=r[c.end_date]||t.calculateEndDate({start_date:f,duration:1,task:r});t.form_blocks._fill_lightbox_select(a,0,f,s,o),t.form_blocks._fill_lightbox_select(a,s.size,d,s,o)},e.prototype.get_value=function(e,n,r){var i,o=e.getElementsByTagName("select"),a=r._time_format_order;return i=t.form_blocks.getTimePickerValue(o,r),"string"==typeof t._resolve_default_mapping(r)?i:{start_date:i,end_date:function(e,n,i){var o=t.form_blocks.getTimePickerValue(e,r,n.size);return o<=i&&(!1!==r.autofix_end||r.single_date)?t.date.add(i,t._get_timepicker_step(),"minute"):o}(o,a,i)}},e.prototype.focus=function(e){t._focus(e.getElementsByTagName("select")[0])},e}},function(t,e,n){var r=n(3);t.exports=function(t){function e(){return i.apply(this,arguments)||this}var i=n(6)(t);return r(e,i),e.prototype.render=function(t){return"<div class='gantt_cal_ltext' style='height:"+(t.height||"130")+"px;'><textarea></textarea></div>"},e.prototype.set_value=function(e,n){t.form_blocks.textarea._get_input(e).value=n||""},e.prototype.get_value=function(e){return t.form_blocks.textarea._get_input(e).value},e.prototype.focus=function(e){var n=t.form_blocks.textarea._get_input(e);t._focus(n,!0)},e.prototype._get_input=function(t){return t.querySelector("textarea")},e}},function(t,e,n){var r=n(3);t.exports=function(t){function e(){return i.apply(this,arguments)||this}var i=n(6)(t);return r(e,i),e.prototype.render=function(t){return"<div class='gantt_cal_ltext gantt_cal_template' style='height:"+(t.height||"30")+"px;'></div>"},e.prototype.set_value=function(t,e){t.innerHTML=e||""},e.prototype.get_value=function(t){return t.innerHTML||""},e.prototype.focus=function(){},e}},function(t,e,n){function r(t){"@babel/helpers - typeof";return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}t.exports=function(t){function e(e,n){var r,i,o="";for(i=0;i<e.length;i++)r=t.config._migrate_buttons[e[i]]?t.config._migrate_buttons[e[i]]:e[i],o+="<div "+t._waiAria.lightboxButtonAttrString(r)+" class='gantt_btn_set gantt_left_btn_set "+r+"_set'"+(n?" style='float:right;'":"")+"><div dhx_button='1' data-dhx-button='1' class='"+r+"'></div><div>"+t.locale.labels[r]+"</div></div>";return o}function i(e,n,r){var i,o,a,s,u,l,c="";switch(r.timeFormat[n]){case"%Y":for(e._time_format_order[2]=n,e._time_format_order.size++,e.year_range&&(isNaN(e.year_range)?e.year_range.push&&(a=e.year_range[0],s=e.year_range[1]):i=e.year_range),i=i||10,o=o||Math.floor(i/2),a=a||r.date.getFullYear()-o,s=s||t.getState().max_date.getFullYear()+o,u=a;u<s;u++)c+="<option value='"+u+"'>"+u+"</option>";break;case"%m":for(e._time_format_order[1]=n,e._time_format_order.size++,u=0;u<12;u++)c+="<option value='"+u+"'>"+t.locale.date.month_full[u]+"</option>";break;case"%d":for(e._time_format_order[0]=n,e._time_format_order.size++,u=1;u<32;u++)c+="<option value='"+u+"'>"+u+"</option>";break;case"%H:%i":for(e._time_format_order[3]=n,e._time_format_order.size++,u=r.first,l=r.date.getDate(),e._time_values=[];u<r.last;)c+="<option value='"+u+"'>"+t.templates.time_picker(r.date)+"</option>",e._time_values.push(u),r.date.setTime(r.date.valueOf()+60*t._get_timepicker_step()*1e3),u=24*(r.date.getDate()!=l?1:0)*60+60*r.date.getHours()+r.date.getMinutes()}return c}var o=n(1),a=n(2),s=n(55)(t),u=n(54)(t),l=n(53)(t),c=n(12)(t),f=n(52)(t),d=n(51)(t),h=n(50)(t),p=n(49)(t),g=n(12)(t),m=n(48)(t),v=n(47)(t);t._lightbox_methods={},t._lightbox_template="<div class='gantt_cal_ltitle'><span class='gantt_mark'>&nbsp;</span><span class='gantt_time'></span><span class='gantt_title'></span></div><div class='gantt_cal_larea'></div>",t._lightbox_root=t.$root,t.$services.getService("state").registerProvider("lightbox",function(){return{lightbox:t._lightbox_id}}),t.showLightbox=function(t){if(this.callEvent("onBeforeLightbox",[t])){var e=this.getTask(t),n=this.getLightbox(this.getTaskType(e.type));this._center_lightbox(n),this.showCover(),this._fill_lightbox(t,n),this._waiAria.lightboxVisibleAttr(n),this.callEvent("onLightbox",[t])}},t._get_timepicker_step=function(){if(this.config.round_dnd_dates){var e;if(function(t){var e=t.$ui.getView("timeline");return!(!e||!e.isVisible())}(this)){var n=t.getScale();e=a.getSecondsInUnit(n.unit)*n.step/60}return(!e||e>=1440)&&(e=this.config.time_step),e}return this.config.time_step},t.getLabel=function(t,e){for(var n=this._get_typed_lightbox_config(),r=0;r<n.length;r++)if(n[r].map_to==t)for(var i=n[r].options,o=0;o<i.length;o++)if(i[o].key==e)return i[o].label;return""},t.updateCollection=function(e,n){n=n.slice(0);var r=t.serverList(e);if(!r)return!1;r.splice(0,r.length),r.push.apply(r,n||[]),t.resetLightbox()},t.getLightboxType=function(){return this.getTaskType(this._lightbox_type)},t.getLightbox=function(n){var r,i,o,a,s,u="";if(function(){var e=!0===t.config.csp,n=!!window.Sfdc||!!window.$A||window.Aura||"$shadowResolver$"in document.body;t._lightbox_root=e||n?t.$root:document.body}(),void 0===n&&(n=this.getLightboxType()),!this._lightbox||this.getLightboxType()!=this.getTaskType(n)){this._lightbox_type=this.getTaskType(n),r=document.createElement("div"),u="gantt_cal_light",i=this._is_lightbox_timepicker(),(t.config.wide_form||i)&&(u+=" gantt_cal_light_wide"),i&&(t.config.wide_form=!0,u+=" gantt_cal_light_full"),r.className=u,r.style.visibility="hidden",o=this._lightbox_template,o+=e(this.config.buttons_left),o+=e(this.config.buttons_right,!0),r.innerHTML=o,t._waiAria.lightboxAttr(r),t.config.drag_lightbox&&(r.firstChild.onmousedown=t._ready_to_dnd,r.firstChild.onselectstart=function(){return!1},r.firstChild.style.cursor="pointer",t._init_dnd_events()),this._lightbox&&this.resetLightbox(),t._lightbox_root.insertBefore(r,t._lightbox_root.firstChild),this._lightbox=r,a=this._get_typed_lightbox_config(n),o=this._render_sections(a);var l=(s=r.querySelector("div.gantt_cal_larea")).style.overflow;s.style.overflow="hidden",s.innerHTML=o,function(e){var n,r,i,o,a,s;for(s=0;s<e.length;s++)n=e[s],i=t._lightbox_root.querySelector("#"+n.id),n.id&&i&&(r=i.querySelector("label"),(o=i.nextSibling)&&(a=o.querySelector("input, select, textarea"))&&(a.id=a.id||"input_"+t.uid(),n.inputId=a.id,r.setAttribute("for",n.inputId)))}(a),this.resizeLightbox(),s.style.overflow=l,this._init_lightbox_events(this),r.style.display="none",r.style.visibility="visible"}return this._lightbox},t._render_sections=function(t){for(var e="",n=0;n<t.length;n++){var r=this.form_blocks[t[n].type];if(r){t[n].id="area_"+this.uid();var i=t[n].hidden?" style='display:none'":"",o="";t[n].button&&(o="<div class='gantt_custom_button' data-index='"+n+"'><div class='gantt_custom_button_"+t[n].button+"'></div><div class='gantt_custom_button_label'>"+this.locale.labels["button_"+t[n].button]+"</div></div>"),this.config.wide_form&&(e+="<div class='gantt_wrap_section' "+i+">"),e+="<div id='"+t[n].id+"' class='gantt_cal_lsection'><label>"+o+this.locale.labels["section_"+t[n].name]+"</label></div>"+r.render.call(this,t[n]),e+="</div>"}}return e},t.resizeLightbox=function(){if(this._lightbox){var t=this._lightbox.querySelector(".gantt_cal_larea");t.style.height="0px",t.style.height=t.scrollHeight+"px",this._lightbox.style.height=t.scrollHeight+this.config.lightbox_additional_height+"px",t.style.height=t.scrollHeight+"px"}},t._center_lightbox=function(e){if(e){e.style.display="block";var n=window.pageYOffset||t._lightbox_root.scrollTop||document.documentElement.scrollTop,r=window.pageXOffset||t._lightbox_root.scrollLeft||document.documentElement.scrollLeft,i=window.innerHeight||document.documentElement.clientHeight;e.style.top=n?Math.round(n+Math.max((i-e.offsetHeight)/2,0))+"px":Math.round(Math.max((i-e.offsetHeight)/2,0)+9)+"px",document.documentElement.scrollWidth>t._lightbox_root.offsetWidth?e.style.left=Math.round(r+(t._lightbox_root.offsetWidth-e.offsetWidth)/2)+"px":e.style.left=Math.round((t._lightbox_root.offsetWidth-e.offsetWidth)/2)+"px"}},t.showCover=function(){this._cover||(this._cover=document.createElement("DIV"),this._cover.className="gantt_cal_cover",t._lightbox_root.appendChild(this._cover))},t.event(window,"deviceorientation",function(){t.getState().lightbox&&t._center_lightbox(t.getLightbox())}),t._init_lightbox_events=function(){t.lightbox_events={},t.lightbox_events.gantt_save_btn=function(){t._save_lightbox()},t.lightbox_events.gantt_delete_btn=function(){t._lightbox_new_type=null,t.callEvent("onLightboxDelete",[t._lightbox_id])&&(t.isTaskExists(t._lightbox_id)?t.$click.buttons.delete(t._lightbox_id):t.hideLightbox())},t.lightbox_events.gantt_cancel_btn=function(){t._cancel_lightbox()},t.lightbox_events.default=function(e,n){if(n.getAttribute("data-dhx-button"))t.callEvent("onLightboxButton",[n.className,n,e]);else{var r,i,a=o.getClassName(n);if(-1!=a.indexOf("gantt_custom_button"))if(-1!=a.indexOf("gantt_custom_button_"))for(r=n.parentNode.getAttribute("data-index"),i=n;i&&-1==o.getClassName(i).indexOf("gantt_cal_lsection");)i=i.parentNode;else r=n.getAttribute("data-index"),i=n.parentNode,n=n.firstChild;var s=t._get_typed_lightbox_config();r&&(r*=1,t.form_blocks[s[1*r].type].button_click(r,n,i,i.nextSibling))}},this.event(t.getLightbox(),"click",function(e){e=e||window.event;var n=o.getTargetNode(e),r=o.getClassName(n);return r||(n=n.previousSibling,r=o.getClassName(n)),n&&r&&0===r.indexOf("gantt_btn_set")&&(n=n.firstChild,r=o.getClassName(n)),!(!n||!r)&&(t.defined(t.lightbox_events[n.className])?t.lightbox_events[n.className]:t.lightbox_events.default)(e,n)}),t.getLightbox().onkeydown=function(e){var n=e||window.event,r=e.target||e.srcElement,i=o.getClassName(r).indexOf("gantt_btn_set")>-1;switch((e||n).keyCode){case t.constants.KEY_CODES.SPACE:if((e||n).shiftKey)return;i&&r.click&&r.click();break;case t.keys.edit_save:if((e||n).shiftKey)return;i&&r.click?r.click():t._save_lightbox();break;case t.keys.edit_cancel:t._cancel_lightbox()}}},t._cancel_lightbox=function(){var e=this.getLightboxValues();this.callEvent("onLightboxCancel",[this._lightbox_id,e.$new]),t.isTaskExists(e.id)&&e.$new&&this.silent(function(){t.$data.tasksStore.removeItem(e.id),t._update_flags(e.id,null)}),this.refreshData(),this.hideLightbox()},t._save_lightbox=function(){var t=this.getLightboxValues();this.callEvent("onLightboxSave",[this._lightbox_id,t,!!t.$new])&&(t.$new?(delete t.$new,this.addTask(t,t.parent,this.getTaskIndex(t.id))):this.isTaskExists(t.id)&&(this.mixin(this.getTask(t.id),t,!0),this.refreshTask(t.id),this.updateTask(t.id)),this.refreshData(),this.hideLightbox())},t._resolve_default_mapping=function(t){var e=t.map_to;return{time:!0,time_optional:!0,duration:!0,duration_optional:!0}[t.type]?"auto"==t.map_to?e={start_date:"start_date",end_date:"end_date",duration:"duration"}:"string"==typeof t.map_to&&(e={start_date:t.map_to}):"constraint"===t.type&&(t.map_to&&"string"!=typeof t.map_to||(e={constraint_type:"constraint_type",constraint_date:"constraint_date"})),e},t.getLightboxValues=function(){var e={};t.isTaskExists(this._lightbox_id)&&(e=this.mixin({},this.getTask(this._lightbox_id)));for(var n=this._get_typed_lightbox_config(),i=0;i<n.length;i++){var o=t._lightbox_root.querySelector("#"+n[i].id);o=o?o.nextSibling:o;var a=this.form_blocks[n[i].type];if(a){var s=a.get_value.call(this,o,e,n[i]),u=t._resolve_default_mapping(n[i]);if("string"==typeof u&&"auto"!=u)e[u]=s;else if("object"==r(u))for(var l in u)u[l]&&(e[u[l]]=s[l])}}return"task"==t._lightbox_new_type&&(e.type=t.config.types.task,t._lightbox_new_type=null),e},t.hideLightbox=function(){var t=this.getLightbox();t&&(t.style.display="none"),this._waiAria.lightboxHiddenAttr(t),this._lightbox_id=null,this.hideCover(),this.callEvent("onAfterLightbox",[])},t.hideCover=function(){this._cover&&this._cover.parentNode.removeChild(this._cover),this._cover=null},t.resetLightbox=function(){t._lightbox&&!t._custom_lightbox&&t._lightbox.parentNode.removeChild(t._lightbox),t._lightbox=null,t.hideCover()},t._set_lightbox_values=function(e,n){var r=e,i=n.getElementsByTagName("span"),o=[];t.templates.lightbox_header?(o.push(""),o.push(t.templates.lightbox_header(r.start_date,r.end_date,r)),i[1].innerHTML="",i[2].innerHTML=t.templates.lightbox_header(r.start_date,r.end_date,r)):(o.push(this.templates.task_time(r.start_date,r.end_date,r)),o.push(String(this.templates.task_text(r.start_date,r.end_date,r)||"").substr(0,70)),i[1].innerHTML=this.templates.task_time(r.start_date,r.end_date,r),i[2].innerHTML=String(this.templates.task_text(r.start_date,r.end_date,r)||"").substr(0,70)),i[1].innerHTML=o[0],i[2].innerHTML=o[1],t._waiAria.lightboxHeader(n,o.join(" "));for(var a=this._get_typed_lightbox_config(this.getLightboxType()),s=0;s<a.length;s++){var u=a[s];if(this.form_blocks[u.type]){var l=t._lightbox_root.querySelector("#"+u.id).nextSibling,c=this.form_blocks[u.type],f=t._resolve_default_mapping(a[s]),d=this.defined(r[f])?r[f]:u.default_value;c.set_value.call(t,l,d,r,u),u.focus&&c.focus.call(t,l)}}t.isTaskExists(e.id)&&(t._lightbox_id=e.id)},t._fill_lightbox=function(t,e){var n=this.getTask(t);this._set_lightbox_values(n,e)},t.getLightboxSection=function(e){for(var n=this._get_typed_lightbox_config(),r=0;r<n.length&&n[r].name!=e;r++);var i=n[r];if(!i)return null;this._lightbox||this.getLightbox();var o=t._lightbox_root.querySelector("#"+i.id),a=o.nextSibling,s={section:i,header:o,node:a,getValue:function(e){return t.form_blocks[i.type].get_value.call(t,a,e||{},i)},setValue:function(e,n){return t.form_blocks[i.type].set_value.call(t,a,e,n||{},i)}},u=this._lightbox_methods["get_"+i.type+"_control"];return u?u(s):s},t._lightbox_methods.get_template_control=function(t){return t.control=t.node,t},t._lightbox_methods.get_select_control=function(t){return t.control=t.node.getElementsByTagName("select")[0],t},t._lightbox_methods.get_textarea_control=function(t){return t.control=t.node.getElementsByTagName("textarea")[0],t},t._lightbox_methods.get_time_control=function(t){return t.control=t.node.getElementsByTagName("select"),t},t._init_dnd_events=function(){var e=t._lightbox_root;this.event(e,"mousemove",t._move_while_dnd),this.event(e,"mouseup",t._finish_dnd)},t._move_while_dnd=function(e){if(t._dnd_start_lb){document.gantt_unselectable||(t._lightbox_root.className+=" gantt_unselectable",document.gantt_unselectable=!0);var n=t.getLightbox(),r=[e.pageX,e.pageY];n.style.top=t._lb_start[1]+r[1]-t._dnd_start_lb[1]+"px",n.style.left=t._lb_start[0]+r[0]-t._dnd_start_lb[0]+"px"}},t._ready_to_dnd=function(e){var n=t.getLightbox();t._lb_start=[parseInt(n.style.left,10),parseInt(n.style.top,10)],t._dnd_start_lb=[e.pageX,e.pageY]},t._finish_dnd=function(){t._lb_start&&(t._lb_start=t._dnd_start_lb=!1,t._lightbox_root.className=t._lightbox_root.className.replace(" gantt_unselectable",""),document.gantt_unselectable=!1)},t._focus=function(e,n){if(e&&e.focus)if(t.config.touch);else try{n&&e.select&&e.select(),e.focus()}catch(t){}},t.form_blocks={getTimePicker:function(e,n){var r,o,s,u="",l=this.config,c={first:0,last:1440,date:this.date.date_part(new Date(t._min_date.valueOf())),timeFormat:function(e){var n,r,i;return e.time_format?e.time_format:(i=["%d","%m","%Y"],n=t.getScale(),r=n?n.unit:t.config.duration_unit,a.getSecondsInUnit(r)<a.getSecondsInUnit("day")&&i.push("%H:%i"),i)}(e)};for(e._time_format_order={size:0},t.config.limit_time_select&&(c.first=60*l.first_hour,c.last=60*l.last_hour+1,c.date.setHours(l.first_hour)),r=0;r<c.timeFormat.length;r++)r>0&&(u+=" "),(o=i(e,r,c))&&(s=t._waiAria.lightboxSelectAttrString(c.timeFormat[r]),u+="<select "+(e.readonly?"disabled='disabled'":"")+(n?" style='display:none' ":"")+s+">"+o+"</select>");return u},getTimePickerValue:function(e,n,r){var i,o=n._time_format_order,a=t.defined(o[3]),s=0,u=0,l=r||0;return a&&(i=parseInt(e[o[3]+l].value,10),s=Math.floor(i/60),u=i%60),new Date(e[o[2]+l].value,e[o[1]+l].value,e[o[0]+l].value,s,u)},_fill_lightbox_select:function(e,n,r,i){if(e[n+i[0]].value=r.getDate(),e[n+i[1]].value=r.getMonth(),e[n+i[2]].value=r.getFullYear(),t.defined(i[3])){var o=60*r.getHours()+r.getMinutes();o=Math.round(o/t._get_timepicker_step())*t._get_timepicker_step();var a=e[n+i[3]];a.value=o,a.setAttribute("data-value",o)}},template:new s,textarea:new u,select:new c,time:new l,duration:new h,parent:new p,radio:new d,checkbox:new f,resources:new g,constraint:new m,typeselect:new v},t._is_lightbox_timepicker=function(){for(var t=this._get_typed_lightbox_config(),e=0;e<t.length;e++)if("time"==t[e].name&&"time"==t[e].type)return!0;return!1},t._dhtmlx_confirm=function(e,n,r,i){if(!e)return r();var o={text:e};n&&(o.title=n),i&&(o.ok=i),r&&(o.callback=function(t){t&&r()}),t.confirm(o)},t._get_typed_lightbox_config=function(e){void 0===e&&(e=this.getLightboxType());var n=function(t){for(var e in this.config.types)if(this.config.types[e]==t)return e;return"task"}.call(this,e);return t.config.lightbox[n+"_sections"]?t.config.lightbox[n+"_sections"]:t.config.lightbox.sections},t._silent_redraw_lightbox=function(t){var e=this.getLightboxType();if(this.getState().lightbox){var n=this.getState().lightbox,r=this.getLightboxValues(),i=this.copy(this.getTask(n));this.resetLightbox();var o=this.mixin(i,r,!0),a=this.getLightbox(t||void 0);this._center_lightbox(this.getLightbox()),this._set_lightbox_values(o,a),this.showCover()}else this.resetLightbox(),this.getLightbox(t||void 0);this.callEvent("onLightboxChange",[e,this.getLightboxType()])}}},function(t,e){t.exports=function(t){function e(e){var n=e.$config.scrollX?t.$ui.getView(e.$config.scrollX):null,r=e.$config.scrollY?t.$ui.getView(e.$config.scrollY):null,i={x:null,y:null};return n&&n.getScrollState().visible&&(i.x=n.$view.scrollLeft),r&&r.getScrollState().visible&&(i.y=r.$view.scrollTop),i}function n(){var e;return t.$ui.getView("timeline")&&(e=t.$ui.getView("timeline")._tasks_dnd),e}t.config.touch_drag=500,t.config.touch=!0,t.config.touch_feedback=!0,t.config.touch_feedback_duration=1,t._prevent_touch_scroll=!1,t._touch_feedback=function(){t.config.touch_feedback&&navigator.vibrate&&navigator.vibrate(t.config.touch_feedback_duration)},t.attachEvent("onGanttReady",t.bind(function(){if("force"!=this.config.touch&&(this.config.touch=this.config.touch&&(-1!=navigator.userAgent.indexOf("Mobile")||-1!=navigator.userAgent.indexOf("iPad")||-1!=navigator.userAgent.indexOf("Android")||-1!=navigator.userAgent.indexOf("Touch"))||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1),this.config.touch){var t=!0;try{document.createEvent("TouchEvent")}catch(e){t=!1}t?this._touch_events(["touchmove","touchstart","touchend"],function(t){return t.touches&&t.touches.length>1?null:t.touches[0]?{target:t.target,pageX:t.touches[0].pageX,pageY:t.touches[0].pageY,clientX:t.touches[0].clientX,clientY:t.touches[0].clientY}:t},function(){return!1}):window.navigator.pointerEnabled?this._touch_events(["pointermove","pointerdown","pointerup"],function(t){return"mouse"==t.pointerType?null:t},function(t){return!t||"mouse"==t.pointerType}):window.navigator.msPointerEnabled&&this._touch_events(["MSPointerMove","MSPointerDown","MSPointerUp"],function(t){return t.pointerType==t.MSPOINTER_TYPE_MOUSE?null:t},function(t){return!t||t.pointerType==t.MSPOINTER_TYPE_MOUSE})}},t));var r=[];t._touch_events=function(i,o,a){function s(t){return t&&t.preventDefault&&t.preventDefault(),t.cancelBubble=!0,!1}for(var u,l=0,c=!1,f=!1,d=null,h=null,p=null,g=[],m=null,v=0;v<r.length;v++)t.eventRemove(r[v][0],r[v][1],r[v][2]);for((r=[]).push([t.$container,i[0],function(r){var i=n();if(!a(r)&&c){h&&clearTimeout(h);var p=o(r);if(i&&(i.drag.id||i.drag.start_drag))return i.on_mouse_move(p),r.preventDefault&&r.preventDefault(),r.cancelBubble=!0,!1;if(!t._prevent_touch_scroll){if(p&&d){var g=d.pageX-p.pageX,v=d.pageY-p.pageY;if(!f&&(Math.abs(g)>5||Math.abs(v)>5)&&(f=!0,l=0,u=m?e(m):t.getScrollState()),f){var y,b=u.x+g,_=u.y+v;if(m?(function(e,n,r){var i=e.$config.scrollX?t.$ui.getView(e.$config.scrollX):null,o=e.$config.scrollY?t.$ui.getView(e.$config.scrollY):null;i&&i.scrollTo(n,null),o&&o.scrollTo(null,r)}(m,b,_),y=e(m)):(t.scrollTo(b,_),y=t.getScrollState()),u.x!=y.x&&v>2*g||u.y!=y.y&&g>2*v)return s(r)}}return s(r)}return!0}}]),r.push([this.$container,"contextmenu",function(t){if(c)return s(t)}]),r.push([this.$container,i[1],function(e){if(document&&document.body&&document.body.classList.add("gantt_touch_active"),!a(e))if(e.touches&&e.touches.length>1)c=!1;else{d=o(e),m=function(e){for(var n=t.$layout.getCellsByType("viewCell"),r=0;r<n.length;r++){var i=n[r].$view.getBoundingClientRect();if(e.clientX>=i.left&&e.clientX<=i.right&&e.clientY<=i.bottom&&e.clientY>=i.top)return n[r]}}(d),t._locate_css(d,"gantt_hor_scroll")||t._locate_css(d,"gantt_ver_scroll")||(c=!0);var r=n();h=setTimeout(function(){var e=t.locate(d);r&&e&&!t._locate_css(d,"gantt_link_control")&&!t._locate_css(d,"gantt_grid_data")&&(r.on_mouse_down(d),r.drag&&r.drag.start_drag&&(function(e){var n=t._getTaskLayers(),r=t.getTask(e);if(r&&t.isTaskVisible(e)){p=e;for(var i=0;i<n.length;i++)if((r=n[i].rendered[e])&&r.getAttribute(t.config.task_attribute)&&r.getAttribute(t.config.task_attribute)==e){var o=r.cloneNode(!0);g.push(r),n[i].rendered[e]=o,r.style.display="none",o.className+=" gantt_drag_move ",r.parentNode.appendChild(o)}}}(e),r._start_dnd(d),t._touch_drag=!0,t.refreshTask(e),t._touch_feedback())),h=null},t.config.touch_drag)}}]),r.push([this.$container,i[2],function(e){if(document&&document.body&&document.body.classList.remove("gantt_touch_active"),!a(e)){h&&clearTimeout(h),t._touch_drag=!1,c=!1;var r=o(e),i=n();if(i&&i.on_mouse_up(r),p&&t.isTaskExists(p)&&(t.refreshTask(p),g.length&&(g.forEach(function(t){t.parentNode&&t.parentNode.removeChild(t)}),t._touch_feedback())),c=f=!1,g=[],p=null,d&&l){var u=new Date;u-l<500?(t.$services.getService("mouseEvents").onDoubleClick(d),s(e)):l=u}else l=new Date}}]),v=0;v<r.length;v++)t.event(r[v][0],r[v][1],r[v][2])}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(8),i=n(4),o=["ctrlKey","altKey","shiftKey","metaKey"],a=[[{unit:"month",date:"%M",step:1},{unit:"day",date:"%d",step:1}],[{unit:"day",date:"%d %M",step:1}],[{unit:"day",date:"%d %M",step:1},{unit:"hour",date:"%H:00",step:8}],[{unit:"day",date:"%d %M",step:1},{unit:"hour",date:"%H:00",step:1}]],s=function(){function t(t){var e=this;this.zoomIn=function(){var t=e.getCurrentLevel()-1;t<0||e.setLevel(t)},this.zoomOut=function(){var t=e.getCurrentLevel()+1;t>e._levels.length-1||e.setLevel(t)},this.getCurrentLevel=function(){return e._activeLevelIndex},this.getLevels=function(){return e._levels},this.setLevel=function(t){var n=e._getZoomIndexByName(t);-1===n&&e.$gantt.assert(-1!==n,"Invalid zoom level for gantt.ext.zoom.setLevel. "+t+" is not an expected value."),e._setLevel(n,0)},this._getZoomIndexByName=function(t){var n=-1;if("string"==typeof t){if(!isNaN(Number(t))&&e._levels[Number(t)])n=Number(t);else for(var r=0;r<e._levels.length;r++)if(e._levels[r].name===t){n=r;break}}else n=t;return n},this._getVisibleDate=function(){if(!e.$gantt.$task)return null;var t=e.$gantt.getScrollState().x,n=e.$gantt.$task.offsetWidth;e._visibleDate=e.$gantt.dateFromPos(t+n/2)},this._setLevel=function(t,n){e._activeLevelIndex=t;var r=e.$gantt,i=r.copy(e._levels[e._activeLevelIndex]),o=r.copy(i);if(delete o.name,r.mixin(r.config,o,!0),!!r.$root&&!!r.$task){if(n){var a=e.$gantt.dateFromPos(n+e.$gantt.getScrollState().x);e.$gantt.render();var s=e.$gantt.posFromDate(a);e.$gantt.scrollTo(s-n)}else{var u=e.$gantt.$task.offsetWidth;e._visibleDate||e._getVisibleDate();var l=e._visibleDate;e.$gantt.render(),s=e.$gantt.posFromDate(l),e.$gantt.scrollTo(s-u/2)}e.callEvent("onAfterZoom",[e._activeLevelIndex,i])}},this._attachWheelEvent=function(t){var n,i=r.isFF?"wheel":"mousewheel";(n="function"==typeof t.element?t.element():t.element)&&e._domEvents.attach(n,i,e.$gantt.bind(function(t){if(this._useKey){if(o.indexOf(this._useKey)<0)return!1;if(!t[this._useKey])return!1}if("function"==typeof this._handler)return this._handler.apply(this,[t]),!0},e),{passive:!1})},this._defaultHandler=function(t){var n=e.$gantt.$task.getBoundingClientRect().x,r=t.clientX-n,i=!1;(e.$gantt.env.isFF?-40*t.deltaY:t.wheelDelta)>0&&(i=!0),t.preventDefault(),t.stopPropagation(),e._setScaleSettings(i,r)},this._setScaleDates=function(){e._initialStartDate&&e._initialEndDate&&(e.$gantt.config.start_date=e._initialStartDate,e.$gantt.config.end_date=e._initialEndDate)},this.$gantt=t,this._domEvents=this.$gantt._createDomEventScope()}return t.prototype.init=function(t){var e=this;this.$gantt.env.isNode||(this._initialStartDate=t.startDate,this._initialEndDate=t.endDate,this._activeLevelIndex=t.activeLevelIndex?t.activeLevelIndex:0,this._levels=this._mapScales(t.levels||a),this._handler=t.handler||this._defaultHandler,this._minColumnWidth=t.minColumnWidth||60,this._maxColumnWidth=t.maxColumnWidth||240,this._widthStep=t.widthStep||3/8*t.minColumnWidth,this._useKey=t.useKey,this._initialized||(i(this),this.$gantt.attachEvent("onGanttScroll",function(){e._getVisibleDate()})),this._domEvents.detachAll(),"wheel"===t.trigger&&(this.$gantt.$root?this._attachWheelEvent(t):this.$gantt.attachEvent("onGanttReady",function(){e._attachWheelEvent(t)})),this._initialized=!0,this.setLevel(this._activeLevelIndex))},t.prototype._mapScales=function(t){return t.map(function(t){return Array.isArray(t)?{scales:t}:t})},t.prototype._setScaleSettings=function(t,e){t?this._stepUp(e):this._stepDown(e)},t.prototype._stepUp=function(t){if(!(this._activeLevelIndex>=this._levels.length-1)){var e=this._activeLevelIndex;if(this._setScaleDates(),this._widthStep){var n=this.$gantt.config.min_column_width+this._widthStep;n>this._maxColumnWidth&&(n=this._minColumnWidth,e++),this.$gantt.config.min_column_width=n}else e++;this._setLevel(e,t)}},t.prototype._stepDown=function(t){if(!(this._activeLevelIndex<1)){var e=this._activeLevelIndex;if(this._setScaleDates(),this._widthStep){var n=this.$gantt.config.min_column_width-this._widthStep;n<this._minColumnWidth&&(n=this._maxColumnWidth,e--),this.$gantt.config.min_column_width=n}else e--;this._setLevel(e,t)}},t}();e.default=s},function(t,e){window.dhtmlx&&(window.dhtmlx.attaches||(window.dhtmlx.attaches={}),window.dhtmlx.attaches.attachGantt=function(t,e,n){var r=document.createElement("DIV");n=n||window.gantt,r.id="gantt_"+n.uid(),r.style.width="100%",r.style.height="100%",r.cmp="grid",document.body.appendChild(r),this.attachObject(r.id),this.dataType="gantt",this.dataObj=n;var i=this.vs[this.av];return i.grid=n,n.init(r.id,t,e),r.firstChild.style.border="none",i.gridId=r.id,i.gridObj=r,this.vs[this._viewRestore()].grid}),void 0!==window.dhtmlXCellObject&&(window.dhtmlXCellObject.prototype.attachGantt=function(t,e,n){n=n||window.gantt;var r=document.createElement("DIV");return r.id="gantt_"+n.uid(),r.style.width="100%",r.style.height="100%",r.cmp="grid",document.body.appendChild(r),this.attachObject(r.id),this.dataType="gantt",this.dataObj=n,n.init(r.id,t,e),r.firstChild.style.border="none",r=null,this.callEvent("_onContentAttach",[]),this.dataObj}),t.exports=null},function(t,e){function n(t){"@babel/helpers - typeof";return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}window.jQuery&&function(t){var e=[];t.fn.dhx_gantt=function(r){if("string"!=typeof(r=r||{})){var i=[];return this.each(function(){if(this&&this.getAttribute)if(this.gantt||window.gantt.$root==this)i.push("object"==n(this.gantt)?this.gantt:window.gantt);else{var t=window.gantt.$container&&window.Gantt?window.Gantt.getGanttInstance():window.gantt;for(var e in r)"data"!=e&&(t.config[e]=r[e]);t.init(this),r.data&&t.parse(r.data),i.push(t)}}),1===i.length?i[0]:i}if(e[r])return e[r].apply(this,[]);t.error("Method "+r+" does not exist on jQuery.dhx_gantt")}}(window.jQuery),t.exports=null},function(t,e,n){var r=n(1),i=n(10);t.exports=function(t){function e(e){return e&&r.isChildOf(e,t.$root)&&e.offsetHeight}function n(){var e=!!document.querySelector(".gantt_drag_marker"),n=!!document.querySelector(".gantt_drag_marker.gantt_grid_resize_area")||!!document.querySelector(".gantt_drag_marker.gantt_row_grid_resize_area"),r=!!document.querySelector(".gantt_link_direction"),i=t.getState(),o=i.autoscroll;return g=e&&!n&&!r,!(!i.drag_mode&&!e||n)||o}function o(e){if(m&&(clearTimeout(m),m=null),e){var n=t.config.autoscroll_speed;n&&n<10&&(n=10),m=setTimeout(function(){p=setInterval(u,n||h)},t.config.autoscroll_delay||d)}}function a(t){t?(o(!0),v.started||(v.x=y.x,v.y=y.y,v.started=!0)):(p&&(clearInterval(p),p=null),o(!1),v.started=!1)}function s(e){var r=n();if(!p&&!m||r||a(!1),!t.config.autoscroll||!r)return!1;y={x:e.clientX,y:e.clientY},"touchmove"==e.type&&(y.x=e.targetTouches[0].clientX,y.y=e.targetTouches[0].clientY),!p&&r&&a(!0)}function u(){if(!n())return a(!1),!1;var i=e(t.$task)?t.$task:e(t.$grid)?t.$grid:t.$root;if(i){var o=!1;[".gantt_drag_marker.gantt_grid_resize_area",".gantt_drag_marker .gantt_row.gantt_row_task",".gantt_drag_marker.gantt_grid_dnd_marker"].forEach(function(t){o=o||!!document.querySelector(t)}),o&&(i=t.$grid);var s=r.getNodePosition(i),u=y.x-s.x,c=y.y-s.y+window.scrollY,d=g?0:l(u,s.width,v.x-s.x),h=l(c,s.height,v.y-s.y+window.scrollY),p=t.getScrollState(),m=p.y,b=p.inner_height,_=p.height,w=p.x,x=p.inner_width,k=p.width;h&&!b?h=0:h<0&&!m?h=0:h>0&&m+b>=_+2&&(h=0),d&&!x?d=0:d<0&&!w?d=0:d>0&&w+x>=k&&(d=0);var S=t.config.autoscroll_step;S&&S<2&&(S=2),d*=S||f,h*=S||f,(d||h)&&function(e,n){var r=t.getScrollState(),i=null,o=null;e&&(i=r.x+e,i=Math.min(r.width,i),i=Math.max(0,i)),n&&(o=r.y+n,o=Math.min(r.height,o),o=Math.max(0,o)),t.scrollTo(i,o)}(d,h)}}function l(t,e,n){return t-c<0&&t<n?-1:t>e-c&&t>n?1:0}var c=50,f=30,d=10,h=50,p=null,g=!1,m=null,v={started:!1},y={};t.attachEvent("onGanttReady",function(){if(!i(t)){var e=r.getRootNode(t.$root)||document.body;t.eventRemove(e,"mousemove",s),t.event(e,"mousemove",s),t.eventRemove(e,"touchmove",s),t.event(e,"touchmove",s),t.eventRemove(e,"pointermove",s),t.event(e,"pointermove",s)}}),t.attachEvent("onDestroy",function(){a(!1)})}},function(t,e,n){t.exports=function(t){t.ext||(t.ext={});for(var e=[n(61),n(60),n(59)],r=0;r<e.length;r++)e[r]&&e[r](t);var i=n(58).default;t.ext.zoom=new i(t)}},function(t,e){t.exports=function(t){t.skins.contrast_white={config:{grid_width:360,row_height:35,scale_height:35,link_line_width:2,link_arrow_size:6,lightbox_additional_height:75},_second_column_width:100,_third_column_width:80}}},function(t,e){t.exports=function(t){t.skins.contrast_black={config:{grid_width:360,row_height:35,scale_height:35,link_line_width:2,link_arrow_size:6,lightbox_additional_height:75},_second_column_width:100,_third_column_width:80}}},function(t,e){t.exports=function(t){t.skins.material={config:{grid_width:411,row_height:34,task_height_offset:6,scale_height:36,link_line_width:2,link_arrow_size:6,lightbox_additional_height:80},_second_column_width:110,_third_column_width:75,_redefine_lightbox_buttons:{buttons_left:["dhx_delete_btn"],buttons_right:["dhx_save_btn","dhx_cancel_btn"]}},t.attachEvent("onAfterTaskDrag",function(e){var n=t.getTaskNode(e);n&&(n.className+=" gantt_drag_animation",setTimeout(function(){var t=n.className.indexOf(" gantt_drag_animation");t>-1&&(n.className=n.className.slice(0,t))},200))})}},function(t,e){t.exports=function(t){t.skins.broadway={config:{grid_width:360,row_height:35,scale_height:35,link_line_width:1,link_arrow_size:7,lightbox_additional_height:86},_second_column_width:90,_third_column_width:80,_lightbox_template:"<div class='gantt_cal_ltitle'><span class='gantt_mark'>&nbsp;</span><span class='gantt_time'></span><span class='gantt_title'></span><div class='gantt_cancel_btn'></div></div><div class='gantt_cal_larea'></div>",_config_buttons_left:{},_config_buttons_right:{gantt_delete_btn:"icon_delete",gantt_save_btn:"icon_save"}}}},function(t,e){t.exports=function(t){t.skins.terrace={config:{grid_width:360,row_height:35,scale_height:35,link_line_width:2,link_arrow_size:6,lightbox_additional_height:75},_second_column_width:90,_third_column_width:70}}},function(t,e){t.exports=function(t){t.skins.meadow={config:{grid_width:350,row_height:27,scale_height:30,link_line_width:2,link_arrow_size:6,lightbox_additional_height:72},_second_column_width:95,_third_column_width:80}}},function(t,e){t.exports=function(t){t.skins.skyblue={config:{grid_width:350,row_height:27,scale_height:27,link_line_width:1,link_arrow_size:8,lightbox_additional_height:75},_second_column_width:95,_third_column_width:80}}},function(t,e){function n(t,e){var n=e.skin;if(!n||t)for(var r=document.getElementsByTagName("link"),i=0;i<r.length;i++){var o=r[i].href.match("dhtmlxgantt_([a-z_]+).css");if(o&&(e.skins[o[1]]||!n)){n=o[1];break}}e.skin=n||"terrace";var a=e.skins[e.skin]||e.skins.terrace;!function(t,e,n){for(var r in e)(void 0===t[r]||n)&&(t[r]=e[r])}(e.config,a.config,t);var s=e.getGridColumns();for(s[1]&&!e.defined(s[1].width)&&(s[1].width=a._second_column_width),s[2]&&!e.defined(s[2].width)&&(s[2].width=a._third_column_width),i=0;i<s.length;i++){var u=s[i];"add"==u.name&&(u.width||(u.width=44),e.defined(u.min_width)&&e.defined(u.max_width)||(u.min_width=u.min_width||u.width,u.max_width=u.max_width||u.width),u.min_width&&(u.min_width=+u.min_width),u.max_width&&(u.max_width=+u.max_width),u.width&&(u.width=+u.width,u.width=u.min_width&&u.min_width>u.width?u.min_width:u.width,u.width=u.max_width&&u.max_width<u.width?u.max_width:u.width))}a.config.task_height&&(e.config.task_height=a.config.task_height||"full"),a.config.bar_height&&(e.config.bar_height=a.config.bar_height||"full"),a._lightbox_template&&(e._lightbox_template=a._lightbox_template),a._redefine_lightbox_buttons&&(e.config.buttons_right=a._redefine_lightbox_buttons.buttons_right,e.config.buttons_left=a._redefine_lightbox_buttons.buttons_left),e.resetLightbox()}t.exports=function(t){t.resetSkin||(t.resetSkin=function(){this.skin="",n(!0,this)},t.skins={},t.attachEvent("onGanttLayoutReady",function(){n(!1,this)}))}},function(t,e){t.exports=function(){function t(t){return t.$ui.getView("timeline")}function e(t){return t.$ui.getView("grid")}function n(n){var r=t(n);if(r&&!r.$config.hidden)return r;var i=e(n);return i&&!i.$config.hidden?i:null}function r(t){var r=null,i=!1;return[".gantt_drag_marker.gantt_grid_resize_area",".gantt_drag_marker .gantt_row.gantt_row_task",".gantt_drag_marker.gantt_grid_dnd_marker"].forEach(function(t){i=i||!!document.querySelector(t)}),(r=i?e(t):n(t))?o(t,r,"scrollY"):null}function i(t){var e=n(t);return e&&"grid"!=e.id?o(t,e,"scrollX"):null}function o(t,e,n){var r=e.$config[n];return t.$ui.getView(r)}function a(t,e,n,r){var i=t(this);return i&&i.isVisible()?i[e].apply(i,n):r?r():s}var s="DEFAULT_VALUE";return{getColumnIndex:function(t){var n=a.call(this,e,"getColumnIndex",[t]);return n===s?0:n},dateFromPos:function(e){var n=a.call(this,t,"dateFromPos",Array.prototype.slice.call(arguments));return n===s?this.getState().min_date:n},posFromDate:function(e){var n=a.call(this,t,"posFromDate",[e]);return n===s?0:n},getRowTop:function(n){var r=this,i=a.call(r,t,"getRowTop",[n],function(){return a.call(r,e,"getRowTop",[n])});return i===s?0:i},getTaskTop:function(n){var r=this,i=a.call(r,t,"getItemTop",[n],function(){return a.call(r,e,"getItemTop",[n])});return i===s?0:i},getTaskPosition:function(e,n,r){var i=a.call(this,t,"getItemPosition",[e,n,r]);return i===s?{left:0,top:this.getTaskTop(e.id),height:this.getTaskBarHeight(e.id),width:0}:i},getTaskBarHeight:function(n,r){var i=this,o=a.call(i,t,"getBarHeight",[n,r],function(){return a.call(i,e,"getItemHeight",[n])});return o===s?0:o},getTaskHeight:function(n){var r=this,i=a.call(r,t,"getItemHeight",[n],function(){return a.call(r,e,"getItemHeight",[n])});return i===s?0:i},columnIndexByDate:function(e){var n=a.call(this,t,"columnIndexByDate",[e]);return n===s?0:n},roundTaskDates:function(){a.call(this,t,"roundTaskDates",[])},getScale:function(){var e=a.call(this,t,"getScale",[]);return e===s?null:e},getTaskNode:function(e){var n=t(this);if(n&&n.isVisible()){var r=n._taskRenderer.rendered[e];if(!r){var i=n.$config.item_attribute;r=n.$task_bars.querySelector("["+i+"='"+e+"']")}return r||null}return null},getLinkNode:function(e){var n=t(this);return n.isVisible()?n._linkRenderer.rendered[e]:null},scrollTo:function(t,e){var n=r(this),o=i(this),a={position:0},s={position:0};n&&(s=n.getScrollState()),o&&(a=o.getScrollState());var u=o&&1*t==t,l=n&&1*e==e;if(u&&l)for(var c=n._getLinkedViews(),f=o._getLinkedViews(),d=[],h=0;h<c.length;h++)for(var p=0;p<f.length;p++)c[h].$config.id&&f[p].$config.id&&c[h].$config.id===f[p].$config.id&&d.push(c[h].$config.id);u&&(d&&d.forEach(function(t){this.$ui.getView(t).$config.$skipSmartRenderOnScroll=!0}.bind(this)),o.scroll(t),d&&d.forEach(function(t){this.$ui.getView(t).$config.$skipSmartRenderOnScroll=!1}.bind(this))),l&&n.scroll(e);var g={position:0},m={position:0};n&&(g=n.getScrollState()),o&&(m=o.getScrollState()),this.callEvent("onGanttScroll",[a.position,s.position,m.position,g.position])},showDate:function(t){var e=this.posFromDate(t),n=Math.max(e-this.config.task_scroll_offset,0);this.scrollTo(n)},showTask:function(n){var r=this.getTaskPosition(this.getTask(n)),i=r.left;this.config.rtl&&(i=r.left+r.width);var a,s=Math.max(i-this.config.task_scroll_offset,0),u=this._scroll_state().y;a=u?r.top-(u-this.getTaskBarHeight(n))/2:r.top,this.scrollTo(s,a);var l=e(this),c=t(this);l&&c&&l.$config.scrollY!=c.$config.scrollY&&o(this,l,"scrollY").scrollTo(null,a)},_scroll_state:function(){var t={x:!1,y:!1,x_pos:0,y_pos:0,scroll_size:this.config.scroll_size+1,x_inner:0,y_inner:0},e=r(this),n=i(this);if(n){var o=n.getScrollState();o.visible&&(t.x=o.size,t.x_inner=o.scrollSize),t.x_pos=o.position||0}if(e){var a=e.getScrollState();a.visible&&(t.y=a.size,t.y_inner=a.scrollSize),t.y_pos=a.position||0}return t},getScrollState:function(){var t=this._scroll_state();return{x:t.x_pos,y:t.y_pos,inner_width:t.x,inner_height:t.y,width:t.x_inner,height:t.y_inner}}}}},function(t,e){t.exports=function(t){delete t.addTaskLayer,delete t.addLinkLayer}},function(t,e,n){var r=n(1),i=function(t){return{getVerticalScrollbar:function(){return t.$ui.getView("scrollVer")},getHorizontalScrollbar:function(){return t.$ui.getView("scrollHor")},_legacyGridResizerClass:function(t){for(var e=t.getCellsByType("resizer"),n=0;n<e.length;n++){var r=e[n],i=!1,o=r.$parent.getPrevSibling(r.$id);if(o&&o.$config&&"grid"===o.$config.id)i=!0;else{var a=r.$parent.getNextSibling(r.$id);a&&a.$config&&"grid"===a.$config.id&&(i=!0)}i&&(r.$config.css=(r.$config.css?r.$config.css+" ":"")+"gantt_grid_resize_wrap")}},onCreated:function(e){var n=!0;this._legacyGridResizerClass(e),e.attachEvent("onBeforeResize",function(){var i=t.$ui.getView("timeline");i&&(i.$config.hidden=i.$parent.$config.hidden=!t.config.show_chart);var o=t.$ui.getView("grid");if(o){var a=o._getColsTotalWidth(),s=!t.config.show_grid||!t.config.grid_width||0===a;if(n&&!s&&!1!==a&&(t.config.grid_width=a),o.$config.hidden=o.$parent.$config.hidden=s,!o.$config.hidden){var u=o._getGridWidthLimits();if(u[0]&&t.config.grid_width<u[0]&&(t.config.grid_width=u[0]),u[1]&&t.config.grid_width>u[1]&&(t.config.grid_width=u[1]),i&&t.config.show_chart){if(o.$config.width=t.config.grid_width-1,!o.$config.scrollable&&o.$config.scrollY&&t.$root.offsetWidth){var l=o.$gantt.$layout.$container.offsetWidth,c=t.$ui.getView(o.$config.scrollY).$config.width,f=l-(o.$config.width+c);f<0&&(o.$config.width+=f,t.config.grid_width+=f)}if(n)o.$parent.$config.width=t.config.grid_width,o.$parent.$config.group&&t.$layout._syncCellSizes(o.$parent.$config.group,{value:o.$parent.$config.width,isGravity:!1});else if(i&&!r.isChildOf(i.$task,e.$view)){if(!o.$config.original_grid_width){var d=t.skins[t.skin];d&&d.config&&d.config.grid_width?o.$config.original_grid_width=d.config.grid_width:o.$config.original_grid_width=0}t.config.grid_width=o.$config.original_grid_width,o.$parent.$config.width=t.config.grid_width}else o.$parent._setContentSize(o.$config.width,null),t.$layout._syncCellSizes(o.$parent.$config.group,{value:t.config.grid_width,isGravity:!1})}else i&&r.isChildOf(i.$task,e.$view)&&(o.$config.original_grid_width=t.config.grid_width),n||(o.$parent.$config.width=0)}n=!1}}),this._initScrollStateEvents(e)},_initScrollStateEvents:function(e){t._getVerticalScrollbar=this.getVerticalScrollbar,t._getHorizontalScrollbar=this.getHorizontalScrollbar;var n=this.getVerticalScrollbar(),r=this.getHorizontalScrollbar();n&&n.attachEvent("onScroll",function(e,n,r){var i=t.getScrollState();t.callEvent("onGanttScroll",[i.x,e,i.x,n])}),r&&r.attachEvent("onScroll",function(e,n,r){var i=t.getScrollState();t.callEvent("onGanttScroll",[e,i.y,n,i.y]);var o=t.$ui.getView("grid");o&&o.$grid_data&&!o.$config.scrollable&&(o.$grid_data.style.left=o.$grid.scrollLeft+"px",o.$grid_data.scrollLeft=o.$grid.scrollLeft)}),e.attachEvent("onResize",function(){n&&!t.$scroll_ver&&(t.$scroll_ver=n.$scroll_ver),r&&!t.$scroll_hor&&(t.$scroll_hor=r.$scroll_hor)})},_findGridResizer:function(t,e){for(var n,r=t.getCellsByType("resizer"),i=!0,o=0;o<r.length;o++){var a=r[o];a._getSiblings();var s=a._behind,u=a._front;if(s&&s.$content===e||s.isChild&&s.isChild(e)){n=a,i=!0;break}if(u&&u.$content===e||u.isChild&&u.isChild(e)){n=a,i=!1;break}}return{resizer:n,gridFirst:i}},onInitialized:function(e){var n=t.$ui.getView("grid"),r=this._findGridResizer(e,n);if(r.resizer){var i,o=r.gridFirst,a=r.resizer;if("x"!==a.$config.mode)return;a.attachEvent("onResizeStart",function(e,n){var r=t.$ui.getView("grid"),a=r?r.$parent:null;if(a){var s=r._getGridWidthLimits();r.$config.scrollable||(a.$config.minWidth=s[0]),a.$config.maxWidth=s[1]}return i=o?e:n,t.callEvent("onGridResizeStart",[i])}),a.attachEvent("onResize",function(e,n){var r=o?e:n;return t.callEvent("onGridResize",[i,r])}),a.attachEvent("onResizeEnd",function(e,n,r,i){var a=o?e:n,s=o?r:i,u=t.$ui.getView("grid"),l=u?u.$parent:null;l&&(l.$config.minWidth=void 0);var c=t.callEvent("onGridResizeEnd",[a,s]);return c&&0!==s&&(t.config.grid_width=s),c})}},onDestroyed:function(t){}}};t.exports=i},function(t,e,n){var r=n(1),i=function(t,e){function n(){return{link_source_id:h,link_target_id:f,link_from_start:p,link_to_start:d,link_landing_area:c}}function i(n,r,i,o,a){var s=function(n,r,i){var o=function(t){return e.getTaskPosition(t)}(n),a={x:o.left,y:o.top,width:o.width,height:o.height};if(i.rtl?(a.xEnd=a.x,a.x=a.xEnd+a.width):a.xEnd=a.x+a.width,a.yEnd=a.y+a.height,e.getTaskType(n.type)==e.config.types.milestone){var s=function(e){var n=t.getBarHeight(e,!0);return Math.round(Math.sqrt(2*n*n))-2}(n.id);a.x+=(i.rtl?1:-1)*(s/2),a.xEnd+=(i.rtl?-1:1)*(s/2),a.width=o.xEnd-o.x}return a}(n,0,o),u={x:s.x,y:s.y};r||(u.x=s.xEnd),u.y+=e.getTaskHeight(n.id)/2;var l=function(t){return e.getTaskType(t.type)==e.config.types.milestone}(n)&&a?2:0;return i=i||0,o.rtl&&(i*=-1),u.x+=(r?-1:1)*i-l,u}function o(t,n){var r=_.getPosition(t),i=function(t){var e=0,n=0;return t&&(e=t.offsetWidth||0,n=t.offsetHeight||0),{width:e,height:n}}(n),o=function(){var t=e.$root;return{right:t.offsetWidth,bottom:t.offsetHeight}}(),a=e.config.tooltip_offset_x||g,s=e.config.tooltip_offset_y||g,u=e.config.scroll_size||m,l=e.$container.getBoundingClientRect().y+window.scrollY,c={y:r.y+s,x:r.x+a,bottom:r.y+i.height+s+u,right:r.x+i.width+a+u};return c.bottom>o.bottom+l&&(c.y=o.bottom+l-i.height-s),c.right>o.right&&(c.x=o.right-i.width-a),c}function a(t){var r=n(),i=["gantt_link_tooltip"];r.link_source_id&&r.link_target_id&&(e.isLinkAllowed(r.link_source_id,r.link_target_id,r.link_from_start,r.link_to_start)?i.push("gantt_allowed_link"):i.push("gantt_invalid_link"));var o=e.templates.drag_link_class(r.link_source_id,r.link_from_start,r.link_target_id,r.link_to_start);o&&i.push(o);var a="<div class='"+o+"'>"+e.templates.drag_link(r.link_source_id,r.link_from_start,r.link_target_id,r.link_to_start)+"</div>";t.innerHTML=a}function s(){h=p=f=null,d=!0}function u(r,i,o,a){var s=function(){return _._direction&&_._direction.parentNode||(_._direction=document.createElement("div"),t.$task_links.appendChild(_._direction)),_._direction}(),u=n(),c=["gantt_link_direction"];e.templates.link_direction_class&&c.push(e.templates.link_direction_class(u.link_source_id,u.link_from_start,u.link_target_id,u.link_to_start));var f=Math.sqrt(Math.pow(o-r,2)+Math.pow(a-i,2));if(f=Math.max(0,f-3)){s.className=c.join(" ");var d=(a-i)/(o-r),h=Math.atan(d);2==l(r,o,i,a)?h+=Math.PI:3==l(r,o,i,a)&&(h-=Math.PI);var p=Math.sin(h),g=Math.cos(h),m=Math.round(i),v=Math.round(r),y=["-webkit-transform: rotate("+h+"rad)","-moz-transform: rotate("+h+"rad)","-ms-transform: rotate("+h+"rad)","-o-transform: rotate("+h+"rad)","transform: rotate("+h+"rad)","width:"+Math.round(f)+"px"];if(-1!=window.navigator.userAgent.indexOf("MSIE 8.0")){y.push('-ms-filter: "'+function(t,e){return"progid:DXImageTransform.Microsoft.Matrix(M11 = "+e+",M12 = -"+t+",M21 = "+t+",M22 = "+e+",SizingMethod = 'auto expand')"}(p,g)+'"');var b=Math.abs(Math.round(r-o)),w=Math.abs(Math.round(a-i));switch(l(r,o,i,a)){case 1:m-=w;break;case 2:v-=b,m-=w;break;case 3:v-=b}}y.push("top:"+m+"px"),y.push("left:"+v+"px"),s.style.cssText=y.join(";")}}function l(t,e,n,r){return e>=t?r<=n?1:4:r<=n?2:3}var c,f,d,h,p,g=10,m=18,v=e.$services,y=v.getService("state"),b=v.getService("dnd");y.registerProvider("linksDnD",n);var _=new b(t.$task_bars,{sensitivity:0,updates_per_second:60,mousemoveContainer:e.$root,selector:".gantt_link_point",preventDefault:!0});_.attachEvent("onBeforeDragStart",e.bind(function(n,o){var a=o.target||o.srcElement;if(s(),e.getState("tasksDnd").drag_id)return!1;if(r.locateClassName(a,"gantt_link_point")){r.locateClassName(a,"task_start_date")&&(p=!0);var u=e.locate(o);h=u;var l=e.getTask(u);return e.isReadonly(l)?(s(),!1):(this._dir_start=i(l,!!p,0,t.$getConfig(),!0),!0)}return!1},this)),_.attachEvent("onAfterDragStart",e.bind(function(t,n){e.config.touch&&e.refreshData(),a(_.config.marker)},this)),_.attachEvent("onDragMove",e.bind(function(n,s){var l=_.config,h=o(s,l.marker);!function(t,e){t.style.left=e.x+"px",t.style.top=e.y+"px"}(l.marker,h);var p=!!r.locateClassName(s,"gantt_link_control"),g=f,m=c,v=d,y=e.locate(s),b=!0,w=r.getTargetNode(s);if(r.isChildOf(w,e.$root)||(p=!1,y=null),p&&(b=!r.locateClassName(s,"task_end_date"),p=!!y),f=y,c=p,d=b,p){var x=e.getTask(y),k=t.$getConfig(),S=r.locateClassName(s,"gantt_link_control"),C=0;S&&(C=Math.floor(S.offsetWidth/2)),this._dir_end=i(x,!!d,C,k)}else this._dir_end=r.getRelativeEventPosition(s,t.$task_data),e.env.isEdge&&(this._dir_end.y+=window.scrollY);var E=!(m==p&&g==y&&v==b);return E&&(g&&e.refreshTask(g,!1),y&&e.refreshTask(y,!1)),E&&a(l.marker),u(this._dir_start.x,this._dir_start.y,this._dir_end.x,this._dir_end.y),!0},this)),_.attachEvent("onDragEnd",e.bind(function(){var t=n();if(t.link_source_id&&t.link_target_id&&t.link_source_id!=t.link_target_id){var r=e._get_link_type(t.link_from_start,t.link_to_start),i={source:t.link_source_id,target:t.link_target_id,type:r};i.type&&e.isLinkAllowed(i)&&e.callEvent("onLinkCreated",[i])&&e.addLink(i)}s(),e.config.touch?e.refreshData():(t.link_source_id&&e.refreshTask(t.link_source_id,!1),t.link_target_id&&e.refreshTask(t.link_target_id,!1)),_._direction&&(_._direction.parentNode&&_._direction.parentNode.removeChild(_._direction),_._direction=null)},this)),e.attachEvent("onGanttRender",e.bind(function(){_._direction&&u(this._dir_start.x,this._dir_start.y,this._dir_end.x,this._dir_end.y)},this))};t.exports={createLinkDND:function(){return{init:i}}}},function(t,e,n){var r=n(1),i=n(0),o=n(43),a=n(2);t.exports={createTaskDND:function(){var t;return{extend:function(e){e.roundTaskDates=function(e){t.round_task_dates(e)}},init:function(e,n){return t=function(t,e){var n=e.$services;return{drag:null,dragMultiple:{},_events:{before_start:{},before_finish:{},after_finish:{}},_handlers:{},init:function(){this._domEvents=e._createDomEventScope(),this.clear_drag_state();var t=e.config.drag_mode;this.set_actions(),n.getService("state").registerProvider("tasksDnd",i.bind(function(){return{drag_id:this.drag?this.drag.id:void 0,drag_mode:this.drag?this.drag.mode:void 0,drag_from_start:this.drag?this.drag.left:void 0}},this));var r={before_start:"onBeforeTaskDrag",before_finish:"onBeforeTaskChanged",after_finish:"onAfterTaskDrag"};for(var o in this._events)for(var a in t)this._events[o][a]=r[o];this._handlers[t.move]=this._move,this._handlers[t.resize]=this._resize,this._handlers[t.progress]=this._resize_progress},set_actions:function(){var n=t.$task_data;this._domEvents.attach(n,"mousemove",e.bind(function(t){this.on_mouse_move(t)},this)),this._domEvents.attach(n,"mousedown",e.bind(function(t){this.on_mouse_down(t)},this)),this._domEvents.attach(document.body,"mouseup",e.bind(function(t){this.on_mouse_up(t)},this))},clear_drag_state:function(){this.drag={id:null,mode:null,pos:null,start_x:null,start_y:null,obj:null,left:null},this.dragMultiple={}},_resize:function(n,r,i){var o=t.$getConfig(),a=this._drag_task_coords(n,i);i.left?(n.start_date=e.dateFromPos(a.start+r),n.start_date||(n.start_date=new Date(e.getState().min_date))):(n.end_date=e.dateFromPos(a.end+r),n.end_date||(n.end_date=new Date(e.getState().max_date)));var s=this._calculateMinDuration(o.min_duration,o.duration_unit);n.end_date-n.start_date<o.min_duration&&(i.left?n.start_date=e.calculateEndDate(n.end_date,-s,o.duration_unit,n):n.end_date=e.calculateEndDate(n.start_date,s,o.duration_unit,n)),e._init_task_timing(n)},_calculateMinDuration:function(t,e){return Math.ceil(t/{minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:31356e6}[e])},_resize_progress:function(e,n,r){var i=this._drag_task_coords(e,r),o=t.$getConfig().rtl?i.start-r.pos.x:r.pos.x-i.start,a=Math.max(0,o);e.progress=Math.min(1,a/Math.abs(i.end-i.start))},_find_max_shift:function(t,n){var r;for(var i in t){var o=t[i],a=e.getTask(o.id),s=this._drag_task_coords(a,o),u=e.posFromDate(new Date(e.getState().min_date)),l=e.posFromDate(new Date(e.getState().max_date));if(s.end+n>l){var c=l-s.end;(c<r||void 0===r)&&(r=c)}else if(s.start+n<u){var f=u-s.start;(f>r||void 0===r)&&(r=f)}}return r},_move:function(t,n,r,i){var o=this._drag_task_coords(t,r),a=null,s=null;i?(a=new Date(+r.obj.start_date+i),s=new Date(+r.obj.end_date+i)):(a=e.dateFromPos(o.start+n),s=e.dateFromPos(o.end+n)),a?s?(t.start_date=a,t.end_date=s):(t.end_date=new Date(e.getState().max_date),t.start_date=e.dateFromPos(e.posFromDate(t.end_date)-(o.end-o.start))):(t.start_date=new Date(e.getState().min_date),t.end_date=e.dateFromPos(e.posFromDate(t.start_date)+(o.end-o.start)))},_drag_task_coords:function(t,n){return{start:n.obj_s_x=n.obj_s_x||e.posFromDate(t.start_date),end:n.obj_e_x=n.obj_e_x||e.posFromDate(t.end_date)}},_mouse_position_change:function(t,e){var n=t.x-e.x,r=t.y-e.y;return Math.sqrt(n*n+r*r)},_is_number:function(t){return!isNaN(parseFloat(t))&&isFinite(t)},on_mouse_move:function(t){if(this.drag.start_drag){var n=r.getRelativeEventPosition(t,e.$task_data),i=this.drag.start_drag.start_x,a=this.drag.start_drag.start_y;(Date.now()-this.drag.timestamp>50||this._is_number(i)&&this._is_number(a)&&this._mouse_position_change({x:i,y:a},n)>20)&&this._start_dnd(t)}if(this.drag.mode){if(!o(this,40))return;this._update_on_move(t)}},_update_item_on_move:function(t,n,r,i,o,a){var s=e.getTask(n),u=e.mixin({},s),l=e.mixin({},s);this._handlers[r].apply(this,[l,t,i,a]),e.mixin(s,l,!0),e.callEvent("onTaskDrag",[s.id,r,l,u,o]),e.mixin(s,l,!0),e.refreshTask(n)},_update_on_move:function(n){var o=this.drag,a=t.$getConfig();if(o.mode){var s=r.getRelativeEventPosition(n,t.$task_data);if(o.pos&&o.pos.x==s.x)return;o.pos=s;var u=e.dateFromPos(s.x);if(!u||isNaN(u.getTime()))return;var l=s.x-o.start_x,c=e.getTask(o.id);if(this._handlers[o.mode]){if(o.mode===a.drag_mode.move){var f={};this._isMultiselect()&&e.getSelectedTasks().indexOf(o.id)>=0&&(f=this.dragMultiple);var d=!1;if(e.isSummaryTask(c)&&e.config.drag_project){var h={};h[o.id]=i.copy(o),d=!0,f=i.mixin(h,this.dragMultiple)}var p=this._find_max_shift(f,l);for(var g in void 0!==p&&(l=p),this._update_item_on_move(l,o.id,o.mode,o,n),f){var m=f[g];if(d&&m.id!=o.id&&(e._bulk_dnd=!0),void 0===p&&(d||Object.keys(f).length>1))var v=u-e.dateFromPos(o.start_x);this._update_item_on_move(l,m.id,m.mode,m,n,v)}e._bulk_dnd=!1}else this._update_item_on_move(l,o.id,o.mode,o,n);e._update_parents(o.id)}}},on_mouse_down:function(n,i){if(2!=n.button||void 0===n.button){var o=t.$getConfig(),a=e.locate(n),s=null;if(e.isTaskExists(a)&&(s=e.getTask(a)),!e.isReadonly(s)&&!this.drag.mode){this.clear_drag_state(),i=i||n.target||n.srcElement;var u=r.getClassName(i),l=this._get_drag_mode(u,i);if(!u||!l)return i.parentNode?this.on_mouse_down(n,i.parentNode):void 0;if(l)if(l.mode&&l.mode!=o.drag_mode.ignore&&o["drag_"+l.mode]){if(a=e.locate(i),s=e.copy(e.getTask(a)||{}),e.isReadonly(s))return this.clear_drag_state(),!1;if(e.isSummaryTask(s)&&!o.drag_project&&l.mode!=o.drag_mode.progress)return void this.clear_drag_state();l.id=a;var c=r.getRelativeEventPosition(n,e.$task_data);l.start_x=c.x,l.start_y=c.y,l.obj=s,this.drag.start_drag=l,this.drag.timestamp=Date.now()}else this.clear_drag_state();else if(e.checkEvent("onMouseDown")&&e.callEvent("onMouseDown",[u.split(" ")[0]])&&i.parentNode)return this.on_mouse_down(n,i.parentNode)}}},_fix_dnd_scale_time:function(n,r){function i(n){if(e.config.correct_work_time){var r=t.$getConfig();e.isWorkTime(n.start_date,void 0,n)||(n.start_date=e.calculateEndDate({start_date:n.start_date,duration:-1,unit:r.duration_unit,task:n}))}}var o=t.$getConfig(),a=e.getScale().unit,s=e.getScale().step;o.round_dnd_dates||(a="minute",s=o.time_step),r.mode==o.drag_mode.resize?r.left?(n.start_date=e.roundDate({date:n.start_date,unit:a,step:s}),i(n)):(n.end_date=e.roundDate({date:n.end_date,unit:a,step:s}),function(n){if(e.config.correct_work_time){var r=t.$getConfig();e.isWorkTime(new Date(n.end_date-1),void 0,n)||(n.end_date=e.calculateEndDate({start_date:n.end_date,duration:1,unit:r.duration_unit,task:n}))}}(n)):r.mode==o.drag_mode.move&&(n.start_date=e.roundDate({date:n.start_date,unit:a,step:s}),i(n),n.end_date=e.calculateEndDate(n))},_fix_working_times:function(n,r){var i=t.$getConfig();(r=r||{mode:i.drag_mode.move}).mode==i.drag_mode.resize?r.left?n.start_date=e.getClosestWorkTime({date:n.start_date,dir:"future",task:n}):n.end_date=e.getClosestWorkTime({date:n.end_date,dir:"past",task:n}):r.mode==i.drag_mode.move&&e.correctTaskWorkTime(n)},_finalize_mouse_up:function(t,n,r,i){var o=e.getTask(t);if(n.work_time&&n.correct_work_time&&this._fix_working_times(o,r),this._fix_dnd_scale_time(o,r),this._fireEvent("before_finish",r.mode,[t,r.mode,e.copy(r.obj),i])){var a=t;e._init_task_timing(o),this.clear_drag_state(),e.updateTask(o.id),this._fireEvent("after_finish",r.mode,[a,r.mode,i])}else this.clear_drag_state(),t==r.id&&(r.obj._dhx_changed=!1,e.mixin(o,r.obj,!0)),e.refreshTask(o.id)},on_mouse_up:function(n){var r=this.drag;if(r.mode&&r.id){var i=t.$getConfig(),o=e.getTask(r.id),a=this.dragMultiple,s=!1,u=0;r.mode===i.drag_mode.move&&(e.isSummaryTask(o)&&i.drag_project||this._isMultiselect())&&(s=!0,u=Object.keys(a).length);var l=function(){if(s)for(var t in a)this._finalize_mouse_up(a[t].id,i,a[t],n);this._finalize_mouse_up(r.id,i,r,n)};s&&u>10?e.batchUpdate(function(){l.call(this)}.bind(this)):l.call(this)}this.clear_drag_state()},_get_drag_mode:function(e,n){var r=t.$getConfig().drag_mode,i={mode:null,left:null};switch((e||"").split(" ")[0]){case"gantt_task_line":case"gantt_task_content":i.mode=r.move;break;case"gantt_task_drag":i.mode=r.resize;var o=n.getAttribute("data-bind-property");i.left="start_date"==o;break;case"gantt_task_progress_drag":i.mode=r.progress;break;case"gantt_link_control":case"gantt_link_point":i.mode=r.ignore;break;default:i=null}return i},_start_dnd:function(n){var r=this.drag=this.drag.start_drag;delete r.start_drag;var i=t.$getConfig(),o=r.id;if(i["drag_"+r.mode]&&e.callEvent("onBeforeDrag",[o,r.mode,n])&&this._fireEvent("before_start",r.mode,[o,r.mode,n])){delete r.start_drag;var s=e.getTask(o);if(e.isReadonly(s))return void this.clear_drag_state();if(this._isMultiselect()){var u=e.getSelectedTasks();u.indexOf(r.id)>=0&&a.forEach(u,e.bind(function(t){var n=e.getTask(t);e.isSummaryTask(n)&&e.config.drag_project&&r.mode==i.drag_mode.move&&this._addSubtasksToDragMultiple(n.id),this.dragMultiple[t]=e.mixin({id:n.id,obj:e.copy(n)},this.drag)},this))}e.isSummaryTask(s)&&e.config.drag_project&&r.mode==i.drag_mode.move&&this._addSubtasksToDragMultiple(s.id),e.callEvent("onTaskDragStart",[])}else this.clear_drag_state()},_fireEvent:function(t,n,r){e.assert(this._events[t],"Invalid stage:{"+t+"}");var i=this._events[t][n];return e.assert(i,"Unknown after drop mode:{"+n+"}"),e.assert(r,"Invalid event arguments"),!e.checkEvent(i)||e.callEvent(i,r)},round_task_dates:function(e){var n=this.drag,r=t.$getConfig();n||(n={mode:r.drag_mode.move}),this._fix_dnd_scale_time(e,n)},destructor:function(){this._domEvents.detachAll()},_isMultiselect:function(){return e.config.drag_multiple&&!!(e.getSelectedTasks&&e.getSelectedTasks().length>0)},_addSubtasksToDragMultiple:function(t){e.eachTask(function(t){this.dragMultiple[t.id]=e.mixin({id:t.id,obj:e.copy(t)},this.drag)},t,this)}}}(e,n),e._tasks_dnd=t,t.init(n)},destructor:function(){t&&(t.destructor(),t=null)}}}}},function(t,e,n){var r=n(0),i=n(75),o=n(74),a=n(1),s=function(t){var e=t.$services;return{onCreated:function(e){var a=e.$config;a.bind=r.defined(a.bind)?a.bind:"task",a.bindLinks=r.defined(a.bindLinks)?a.bindLinks:"link",e._linksDnD=o.createLinkDND(),e._tasksDnD=i.createTaskDND(),e._tasksDnD.extend(e),this._mouseDelegates=n(24)(t)},onInitialized:function(e){this._attachDomEvents(t),this._attachStateProvider(t,e),e._tasksDnD.init(e,t),e._linksDnD.init(e,t),"timeline"==e.$config.id&&this.extendDom(e)},onDestroyed:function(e){this._clearDomEvents(t),this._clearStateProvider(t),e._tasksDnD&&e._tasksDnD.destructor()},extendDom:function(e){t.$task=e.$task,t.$task_scale=e.$task_scale,t.$task_data=e.$task_data,t.$task_bg=e.$task_bg,t.$task_links=e.$task_links,t.$task_bars=e.$task_bars},_clearDomEvents:function(){this._mouseDelegates.destructor(),this._mouseDelegates=null},_attachDomEvents:function(t){function e(e,n){if(e&&this.callEvent("onLinkDblClick",[e,n])){var r=this.getLink(e);if(this.isReadonly(r))return;var i=this.locale.labels.link+" "+this.templates.link_description(this.getLink(e))+" "+this.locale.labels.confirm_link_deleting;window.setTimeout(function(){t._dhtmlx_confirm(i,"",function(){t.deleteLink(e)})},this.config.touch?300:1)}}this._mouseDelegates.delegate("click","gantt_task_link",t.bind(function(t,e){var n=this.locate(t,this.config.link_attribute);n&&this.callEvent("onLinkClick",[n,t])},t),this.$task),this._mouseDelegates.delegate("click","gantt_scale_cell",t.bind(function(e,n){var r=a.getRelativeEventPosition(e,t.$task_data),i=t.dateFromPos(r.x),o=Math.floor(t.columnIndexByDate(i)),s=t.getScale().trace_x[o];t.callEvent("onScaleClick",[e,s])},t),this.$task),this._mouseDelegates.delegate("doubleclick","gantt_task_link",t.bind(function(n,r,i){r=this.locate(n,t.config.link_attribute),e.call(this,r,n)},t),this.$task),this._mouseDelegates.delegate("doubleclick","gantt_link_point",t.bind(function(t,n,r){n=this.locate(t);var i=this.getTask(n),o=null;return r.parentNode&&a.getClassName(r.parentNode)&&(o=a.getClassName(r.parentNode).indexOf("_left")>-1?i.$target[0]:i.$source[0]),o&&e.call(this,o,t),!1},t),this.$task)},_attachStateProvider:function(t,n){var r=n;e.getService("state").registerProvider("tasksTimeline",function(){return{scale_unit:r._tasks?r._tasks.unit:void 0,scale_step:r._tasks?r._tasks.step:void 0}})},_clearStateProvider:function(){e.getService("state").unregisterProvider("tasksTimeline")}}};t.exports=s},function(t,e,n){function r(t,e){var n=i.getNodePosition(e.$grid_data);return t.x+=n.x-e.$grid.scrollLeft,t.y+=n.y-e.$grid_data.scrollTop,t}var i=n(1);t.exports={removeLineHighlight:function(t){t.markerLine&&t.markerLine.parentNode&&t.markerLine.parentNode.removeChild(t.markerLine),t.markerLine=null},highlightPosition:function(t,e,n){var o=function(t,e){var n=i.getNodePosition(e.$grid_data),r=i.getRelativeEventPosition(t,e.$grid_data),o=n.x,a=r.y-10,s=e.getItemHeight(t.targetId);a<n.y&&(a=n.y);var u=e.getTotalHeight();return a>n.y+u-s&&(a=n.y+u-s),n.x=o,n.y=a,n}(t,n);e.marker.style.left=o.x+9+"px";var a=e.markerLine;a||((a=document.createElement("div")).className="gantt_drag_marker gantt_grid_dnd_marker",a.innerHTML="<div class='gantt_grid_dnd_marker_line'></div>",a.style.pointerEvents="none"),t.child?function(t,e,n){var i=t.targetParent,o=r({x:0,y:n.getItemTop(i)},n),a=n.$grid_data.getBoundingClientRect().bottom+window.scrollY;e.innerHTML="<div class='gantt_grid_dnd_marker_folder'></div>",e.style.width=n.$grid_data.offsetWidth+"px",e.style.top=o.y+"px",e.style.left=o.x+"px",e.style.height=n.getItemHeight(i)+"px",o.y>a&&(e.style.top=a+"px")}(t,a,n):function(t,e,n){var i=function(t,e){var n=e.$config.rowStore,i={x:0,y:0},o=e.$grid_data.querySelector(".gantt_tree_indent"),a=15,s=0;if(o&&(a=o.offsetWidth),t.targetId!==n.$getRootId()){var u=e.getItemTop(t.targetId),l=e.getItemHeight(t.targetId);if(s=n.exists(t.targetId)?n.calculateItemLevel(n.getItem(t.targetId)):0,t.prevSibling)i.y=u;else if(t.nextSibling){var c=0;n.eachItem(function(t){-1!==n.getIndexById(t.id)&&c++},t.targetId),i.y=u+l+c*l}else i.y=u+l,s+=1}return i.x=40+s*a,i.width=Math.max(e.$grid_data.offsetWidth-i.x,0),r(i,e)}(t,n),o=n.$grid_data.getBoundingClientRect().bottom+window.scrollY;e.innerHTML="<div class='gantt_grid_dnd_marker_line'></div>",e.style.left=i.x+"px",e.style.height="4px";var a=i.y-2;e.style.top=a+"px",e.style.width=i.width+"px",a>o&&(e.style.top=o+"px")}(t,a,n),e.markerLine||(document.body.appendChild(a),e.markerLine=a)}}},function(t,e,n){var r=n(16);t.exports=function(t,e,n,i,o){var a;if(e!==o.$getRootId())a=n<.25?r.prevSiblingTarget(t,e,o):!(n>.6)||o.hasChild(e)&&o.getItem(e).$open?r.firstChildTarget(t,e,o):r.nextSiblingTarget(t,e,o);else{var s=o.$getRootId();a=o.hasChild(s)&&i>=0?r.lastChildTarget(t,s,o):r.firstChildTarget(t,s,o)}return a}},function(t,e,n){function r(t,e,n,r,i){for(var o=e;r.exists(o);){var s=r.calculateItemLevel(r.getItem(o));if((s===n||s===n-1)&&r.getBranchIndex(o)>-1)break;o=i?r.getPrev(o):r.getNext(o)}return r.exists(o)?r.calculateItemLevel(r.getItem(o))===n?i?a.nextSiblingTarget(t,o,r):a.prevSiblingTarget(t,o,r):a.firstChildTarget(t,o,r):null}function i(t,e,n,i){return r(t,e,n,i,!0)}function o(t,e,n,i){return r(t,e,n,i,!1)}var a=n(16);t.exports=function(t,e,n,r,s,u){var l;if(e!==s.$getRootId()){var c=s.getItem(e),f=s.calculateItemLevel(c);if(f===u){var d=s.getPrevSibling(e);n<.5&&!d?l=a.prevSiblingTarget(t,e,s):(n<.5&&(e=d),l=a.nextSiblingTarget(t,e,s))}else if(f>u)s.eachParent(function(t){s.calculateItemLevel(t)===u&&(e=t.id)},c),l=i(t,e,u,s);else{var h=i(t,e,u,s),p=o(t,e,u,s);l=n<.5?h:p}}else{var g=s.$getRootId(),m=s.getChildren(g);l=a.createDropTargetObject(),l=m.length&&r>=0?i(t,function(t){for(var e=t.getNext();t.exists(e);){var n=t.getNext(e);if(!t.exists(n))return e;e=n}return null}(s),u,s):o(t,g,u,s)}return l}},function(t,e,n){var r=n(1),i=n(16),o=n(79),a=n(78),s=n(77),u=n(11);t.exports={init:function(t,e){function n(t){return r.locateAttribute(t,e.$config.item_attribute)}function l(n){return u(n,t,t.getDatastore(e.$config.bind))}function c(n){var i,s=function(n){var i=r.getRelativeEventPosition(n,e.$grid_data).y,o=e.$config.rowStore;document.doctype||(i+=window.scrollY),i=i||0;var a=e.$state.scrollTop||0,s=t.$grid_data.getBoundingClientRect().height+a+window.scrollY,u=a,c=e.getItemIndexByTopPosition(e.$state.scrollTop);if(o.exists(c)||(c=o.countVisible()-1),c<0)return o.$getRootId();var f=o.getIdByIndex(c),d=e.$state.scrollTop/e.getItemHeight(f),h=d-Math.floor(d);h>.1&&h<.9&&(s-=e.getItemHeight(f)*h,u+=e.getItemHeight(f)*(1-h)),i>=s?i=s:i<=u&&(i=u);var p=e.getItemIndexByTopPosition(i);if(p>o.countVisible()-1||p<0)return o.$getRootId();var g=o.getIdByIndex(p);return l(g)?o.getPrevSibling(g):o.getIdByIndex(p)}(n),u=null,c=e.$config.rowStore,f=!e.$getConfig().order_branch_free,h=r.getRelativeEventPosition(n,e.$grid_data).y;return document.doctype||(h+=window.scrollY),s!==c.$getRootId()&&(u=(h-e.getItemTop(s))/e.getItemHeight(s)),f?(i=o(d.config.id,s,u,h,c,d.config.level))&&i.targetParent&&l(i.targetParent)&&(s=c.getPrevSibling(i.targetParent),i=o(d.config.id,s,u,h,c,d.config.level)):i=a(d.config.id,s,u,h,c),i}var f=t.$services.getService("dnd");if(e.$config.bind&&t.getDatastore(e.$config.bind)){var d=new f(e.$grid_data,{updates_per_second:60});t.defined(e.$getConfig().dnd_sensitivity)&&(d.config.sensitivity=e.$getConfig().dnd_sensitivity),d.attachEvent("onBeforeDragStart",t.bind(function(i,o){var a=n(o);if(!a)return!1;if(t.hideQuickInfo&&t._hideQuickInfo(),r.closest(o.target,".gantt_grid_editor_placeholder"))return!1;var s=a.getAttribute(e.$config.item_attribute),u=e.$config.rowStore.getItem(s);return!t.isReadonly(u)&&!l(s)&&(d.config.initial_open_state=u.$open,!!t.callEvent("onRowDragStart",[s,o.target||o.srcElement,o])&&void 0)},t)),d.attachEvent("onAfterDragStart",t.bind(function(t,r){var o=n(r);d.config.marker.innerHTML=o.outerHTML;var a=d.config.marker.firstChild;a&&(d.config.marker.style.opacity=.4,a.style.position="static",a.style.pointerEvents="none"),d.config.id=o.getAttribute(e.$config.item_attribute);var s=e.$config.rowStore,u=s.getItem(d.config.id);d.config.level=s.calculateItemLevel(u),d.config.drop_target=i.createDropTargetObject({targetParent:s.getParent(u.id),targetIndex:s.getBranchIndex(u.id),targetId:u.id,nextSibling:!0}),u.$open=!1,u.$transparent=!0,this.refreshData()},t)),d.attachEvent("onDragMove",t.bind(function(n,r){var o=c(r);return o&&!1!==t.callEvent("onBeforeRowDragMove",[d.config.id,o.targetParent,o.targetIndex])||(o=i.createDropTargetObject(d.config.drop_target)),s.highlightPosition(o,d.config,e),d.config.drop_target=o,this.callEvent("onRowDragMove",[d.config.id,o.targetParent,o.targetIndex]),!0},t)),d.attachEvent("onDragEnd",t.bind(function(){var n=e.$config.rowStore,r=n.getItem(d.config.id);s.removeLineHighlight(d.config),r.$transparent=!1,r.$open=d.config.initial_open_state;var i=d.config.drop_target;!1===this.callEvent("onBeforeRowDragEnd",[d.config.id,i.targetParent,i.targetIndex])?r.$drop_target=null:(n.move(d.config.id,i.targetIndex,i.targetParent),t.render(),this.callEvent("onRowDragEnd",[d.config.id,i.targetParent,i.targetIndex])),n.refresh(r.id)},t))}}}},function(t,e,n){var r=n(1),i=n(11);t.exports={init:function(t,e){function n(t){return r.locateAttribute(t,e.$config.item_attribute)}function o(){return t.getDatastore(e.$config.bind)}function a(e){return i(e,t,o())}var s=t.$services.getService("dnd");if(e.$config.bind&&t.getDatastore(e.$config.bind)){var u=new s(e.$grid_data,{updates_per_second:60});t.defined(e.$getConfig().dnd_sensitivity)&&(u.config.sensitivity=e.$getConfig().dnd_sensitivity),u.attachEvent("onBeforeDragStart",t.bind(function(i,s){var l=n(s);if(!l)return!1;if(t.hideQuickInfo&&t._hideQuickInfo(),r.closest(s.target,".gantt_grid_editor_placeholder"))return!1;var c=l.getAttribute(e.$config.item_attribute);if(a(c))return!1;var f=o().getItem(c);return!t.isReadonly(f)&&(u.config.initial_open_state=f.$open,!!t.callEvent("onRowDragStart",[c,s.target||s.srcElement,s])&&void 0)},t)),u.attachEvent("onAfterDragStart",t.bind(function(t,r){var i=n(r);u.config.marker.innerHTML=i.outerHTML;var a=u.config.marker.firstChild;a&&(a.style.position="static"),u.config.id=i.getAttribute(e.$config.item_attribute);var s=o(),l=s.getItem(u.config.id);u.config.index=s.getBranchIndex(u.config.id),u.config.parent=l.parent,l.$open=!1,l.$transparent=!0,this.refreshData()},t)),u.lastTaskOfLevel=function(t){for(var e=null,n=o().getItems(),r=0,i=n.length;r<i;r++)n[r].$level==t&&(e=n[r]);return e?e.id:null},u._getGridPos=t.bind(function(t){var n=r.getNodePosition(e.$grid_data),i=n.x,o=t.pos.y-10,a=e.getItemHeight(u.config.id);o<n.y&&(o=n.y);var s=e.getTotalHeight();return o>n.y+s-a&&(o=n.y+s-a),n.x=i,n.y=o,n},t),u._getTargetY=t.bind(function(n){var i=r.getNodePosition(e.$grid_data),o=e.$state.scrollTop||0,a=t.$grid_data.getBoundingClientRect().height+o,s=n.pageY-i.y+o;return s>a?s=a:s<o&&(s=o),s},t),u._getTaskByY=t.bind(function(t,n){var r=o();t=t||0;var i=e.getItemIndexByTopPosition(t);return(i=n<i?i-1:i)>r.countVisible()-1?null:r.getIdByIndex(i)},t),u.attachEvent("onDragMove",t.bind(function(n,r){function i(t,e){return!h.isChildOf(v.id,e.id)&&(t.$level==e.$level||d.order_branch_free)}var s=t.$grid_data.getBoundingClientRect(),l=s.height+s.y+(e.$state.scrollTop||0)+window.scrollY,c=u.config,f=u._getGridPos(r),d=e.$getConfig(),h=o();f.y<l?c.marker.style.top=f.y+"px":c.marker.style.top=l+"px",c.marker.style.left=f.x+10+"px";var p=h.getItem(u.config.id),g=u._getTargetY(r),m=u._getTaskByY(g,h.getIndexById(p.id));if(h.exists(m)||(m=u.lastTaskOfLevel(d.order_branch_free?p.$level:0))==u.config.id&&(m=null),h.exists(m)){var v=h.getItem(m),y=e.getItemTop(v.id),b=e.getItemHeight(v.id);if(y+b/2<g){var _=h.getIndexById(v.id),w=h.getNext(v.id),x=h.getItem(w);if(a(w)){var k=h.getPrev(x.id);x=h.getItem(k)}if(x){if(x.id==p.id)return d.order_branch_free&&h.isChildOf(p.id,v.id)&&1==h.getChildren(v.id).length?void h.move(p.id,h.getBranchIndex(v.id)+1,h.getParent(v.id)):void 0;v=x}else if(w=h.getIdByIndex(_),x=h.getItem(w),a(w)&&(k=h.getPrev(x.id),x=h.getItem(k)),i(x,p)&&x.id!=p.id)return void h.move(p.id,-1,h.getParent(x.id))}else if(d.order_branch_free&&v.id!=p.id&&i(v,p)&&!a(v.id)){if(!h.hasChild(v.id))return v.$open=!0,void h.move(p.id,-1,v.id);if(h.getIndexById(v.id)||b/3<g)return}_=h.getIndexById(v.id),k=h.getIdByIndex(_-1);for(var S=h.getItem(k),C=1;(!S||S.id==v.id)&&_-C>=0;)k=h.getIdByIndex(_-C),S=h.getItem(k),C++;if(p.id==v.id||a(v.id))return;i(v,p)&&p.id!=v.id?h.move(p.id,0,0,v.id):v.$level!=p.$level-1||h.getChildren(v.id).length?S&&i(S,p)&&p.id!=S.id&&h.move(p.id,-1,h.getParent(S.id)):h.move(p.id,0,v.id)}return!0},t)),u.attachEvent("onDragEnd",t.bind(function(){var e=o(),n=e.getItem(u.config.id);n.$transparent=!1,n.$open=u.config.initial_open_state,!1===this.callEvent("onBeforeRowDragEnd",[u.config.id,u.config.parent,u.config.index])?(e.move(u.config.id,u.config.index,u.config.parent),n.$drop_target=null):this.callEvent("onRowDragEnd",[u.config.id,n.$drop_target]),t.render(),this.refreshData()},t))}}}},function(t,e,n){var r=n(0),i=n(81),o=n(80),a=function(t){return{onCreated:function(e){e.$config=r.mixin(e.$config,{bind:"task"}),"grid"==e.$config.id&&(this.extendGantt(e),t.ext.inlineEditors=t.ext._inlineEditors.createEditors(e),t.ext.inlineEditors.init()),this._mouseDelegates=n(24)(t)},onInitialized:function(e){var n=e.$getConfig();n.order_branch&&("marker"==n.order_branch?o.init(e.$gantt,e):i.init(e.$gantt,e)),this.initEvents(e,t),"grid"==e.$config.id&&this.extendDom(e)},onDestroyed:function(e){"grid"==e.$config.id&&t.ext.inlineEditors.destructor(),this.clearEvents(e,t)},initEvents:function(t,e){this._mouseDelegates.delegate("click","gantt_row",e.bind(function(n,r,i){var o=t.$getConfig();if(null!==r){var a=this.getTask(r);o.scroll_on_click&&!e._is_icon_open_click(n)&&this.showDate(a.start_date),e.callEvent("onTaskRowClick",[r,i])}},e),t.$grid),this._mouseDelegates.delegate("click","gantt_grid_head_cell",e.bind(function(n,r,i){var o=i.getAttribute("data-column-id");if(e.callEvent("onGridHeaderClick",[o,n])){var a=t.$getConfig();if("add"!=o){if(a.sort&&o){for(var s,u=o,l=0;l<a.columns.length;l++)if(a.columns[l].name==o){s=a.columns[l];break}if(s&&void 0!==s.sort&&!0!==s.sort&&!(u=s.sort))return;var c=this._sort&&this._sort.direction&&this._sort.name==o?this._sort.direction:"desc";c="desc"==c?"asc":"desc",this._sort={name:o,direction:c},this.sort(u,"desc"==c)}}else e.$services.getService("mouseEvents").callHandler("click","gantt_add",t.$grid,[n,a.root_id])}},e),t.$grid),this._mouseDelegates.delegate("click","gantt_add",e.bind(function(n,r,i){if(!t.$getConfig().readonly)return this.createTask({},r||e.config.root_id),!1},e),t.$grid)},clearEvents:function(t,e){this._mouseDelegates.destructor(),this._mouseDelegates=null},extendDom:function(e){t.$grid=e.$grid,t.$grid_scale=e.$grid_scale,t.$grid_data=e.$grid_data},extendGantt:function(e){t.getGridColumns=t.bind(e.getGridColumns,e),e.attachEvent("onColumnResizeStart",function(){return t.callEvent("onColumnResizeStart",arguments)}),e.attachEvent("onColumnResize",function(){return t.callEvent("onColumnResize",arguments)}),e.attachEvent("onColumnResizeEnd",function(){return t.callEvent("onColumnResizeEnd",arguments)}),e.attachEvent("onColumnResizeComplete",function(e,n){t.config.grid_width=n}),e.attachEvent("onBeforeRowResize",function(){return t.callEvent("onBeforeRowResize",arguments)}),e.attachEvent("onRowResize",function(){return t.callEvent("onRowResize",arguments)}),e.attachEvent("onBeforeRowResizeEnd",function(){return t.callEvent("onBeforeRowResizeEnd",arguments)}),e.attachEvent("onAfterRowResize",function(){return t.callEvent("onAfterRowResize",arguments)})}}};t.exports=a},function(t,e,n){var r=n(23),i=n(5);t.exports=function(t){return{render:function(e,n,r){var i=n.$getConfig(),o=document.createElement("div");return o.className="gantt_task_grid_row_resize_wrap",o.style.top=n.getItemTop(e.id)+n.getItemHeight(e.id)+"px",o.innerHTML="<div class='gantt_task_grid_row_resize'></div>",o.setAttribute(i.task_grid_row_resizer_attribute,e.id),t._waiAria.gridSeparatorAttr(o),o},update:null,getRectangle:r,getVisibleRange:i}}},function(t,e,n){function r(t,e,n,r){var i=100*(1-(1*t||0)),o=r.posFromDate(e),a=r.posFromDate(n),s=document.createElement("div");return s.className="gantt_histogram_hor_bar",s.style.top=i+"%",s.style.left=o+"px",s.style.width=a-o+1+"px",s}function i(t,e,n){if(t===e)return null;var r=1-Math.max(t,e),i=Math.abs(t-e),o=document.createElement("div");return o.className="gantt_histogram_vert_bar",o.style.top=100*r+"%",o.style.height=100*i+"%",o.style.left=n+"px",o}var o=n(19),a=n(5),s=n(18),u=n(17),l=n(30);t.exports=function(t){function e(t,e){var n=d[t];n&&n[e]&&n[e].parentNode&&n[e].parentNode.removeChild(n[e])}function n(e,n,o,a,u,l,c){var f=p[e.id];f&&f.parentNode&&f.parentNode.removeChild(f);var d=function(e,n,o,a){for(var u=n.getScale(),l=document.createElement("div"),c=s(u,a),f=c.start;f<=c.end;f++){var d=u.trace_x[f],h=u.trace_x[f+1]||t.date.add(d,u.step,u.unit),p=u.trace_x[f].valueOf(),g=Math.min(e[p]/o,1)||0;if(g<0)return null;var m=Math.min(e[h.valueOf()]/o,1)||0,v=r(g,d,h,n);v&&l.appendChild(v);var y=i(g,m,n.posFromDate(h));y&&l.appendChild(y)}return l}(o,u,l,c);return d&&n&&(d.setAttribute("data-resource-id",e.id),d.setAttribute(u.$config.item_attribute,e.id),d.style.position="absolute",d.style.top=n.top+1+"px",d.style.height=u.getItemHeight(e.id)-1+"px",d.style.left=0),d}function c(t,e,n,r,i,o,a){var s=i.histogram_cell_class(o.start_date,o.end_date,t,o.tasks,o.assignments),u=i.histogram_cell_label(o.start_date,o.end_date,t,o.tasks,o.assignments),l=i.histogram_cell_allocated(o.start_date,o.end_date,t,o.tasks,o.assignments),c=a.getItemHeight(t.id)-1;if(s||u){var f=document.createElement("div");return f.className=["gantt_histogram_cell",s].join(" "),f.setAttribute(a.$config.item_attribute,t.id),f.style.cssText=["left:"+e.left+"px","width:"+e.width+"px","height:"+c+"px","line-height:"+c+"px","top:"+(e.top+1)+"px"].join(";"),u&&(u="<div class='gantt_histogram_label'>"+u+"</div>"),l&&(u="<div class='gantt_histogram_fill' style='height:"+100*Math.min(l/n||0,1)+"%;'></div>"+u),u&&(f.innerHTML=u),f}return null}var f=l(t),d={},h={},p={};return{render:function(e,r,i,o){var a=r.$getTemplates(),l=r.getScale(),g=f(e,i.resource_property,l,r),m=[],v={},y=e.capacity||r.$config.capacity||24;d[e.id]={},h[e.id]=null,p[e.id]=null;for(var b=!!o,_=s(l,o),w=_.start;w<=_.end;w++){var x=g[w];if(x&&(!b||u(w,l,o,t))){var k=a.histogram_cell_capacity(x.start_date,x.end_date,e,x.tasks,x.assignments);v[x.start_date.valueOf()]=k||0;var S=r.getItemPosition(e,x.start_date,x.end_date),C=c(e,S,y,0,a,x,r);C&&(m.push(C),d[e.id][w]=C)}}var E=null;if(m.length){E=document.createElement("div");for(var T=0;T<m.length;T++)E.appendChild(m[T]);var A=n(e,S,v,0,r,y,o);A&&(E.appendChild(A),p[e.id]=A),h[e.id]=E}return E},update:function(r,i,o,a,l){var h=o.$getTemplates(),g=o.getScale(),m=f(r,a.resource_property,g,o),v=r.capacity||o.$config.capacity||24,y={},b=!!l,_=s(g,l),w={};if(d&&d[r.id])for(var x in d[r.id])w[x]=x;for(var k=_.start;k<=_.end;k++){var S=m[k];if(w[k]=!1,S){var C=h.histogram_cell_capacity(S.start_date,S.end_date,r,S.tasks,S.assignments);y[S.start_date.valueOf()]=C||0;var E=o.getItemPosition(r,S.start_date,S.end_date);if(!b||u(k,g,l,t)){var T=d[r.id];if(T&&T[k])T&&T[k]&&!T[k].parentNode&&i.appendChild(T[k]);else{var A=c(r,E,v,0,h,S,o);A&&(i.appendChild(A),d[r.id][k]=A)}}else e(r.id,k)}}for(var x in w)!1!==w[x]&&e(r.id,x);var O=n(r,E,y,0,o,v,l);O&&(i.appendChild(O),p[r.id]=O)},getRectangle:o,getVisibleRange:a}}},function(t,e,n){var r=n(19),i=n(5),o=n(18),a=n(17),s=n(30);t.exports=function(t){function e(t,e,n,r,i){var o=n.resource_cell_class(e.start_date,e.end_date,t,e.tasks,e.assignments),a=n.resource_cell_value(e.start_date,e.end_date,t,e.tasks,e.assignments),s=i.getItemHeight(t.id)-1;if(o||a){var u=i.getItemPosition(t,e.start_date,e.end_date),l=document.createElement("div");return l.setAttribute(i.$config.item_attribute,t.id),l.className=["gantt_resource_marker",o].join(" "),l.style.cssText=["left:"+u.left+"px","width:"+u.width+"px","height:"+s+"px","line-height:"+s+"px","top:"+u.top+"px"].join(";"),a&&(l.innerHTML=a),l}return null}function n(t,e){l[t]&&l[t][e]&&l[t][e].parentNode&&l[t][e].parentNode.removeChild(l[t][e])}var u=s(t),l={};return{render:function(n,r,i,s){var c=r.$getTemplates(),f=r.getScale(),d=u(n,i.resource_property,r.getScale(),r),h=!!s,p=[];l[n.id]={};for(var g=o(f,s),m=g.start;m<=g.end;m++){var v=d[m];if(v&&(!h||a(m,f,s,t))){var y=e(n,v,c,0,r);y&&(p.push(y),l[n.id][m]=y)}}var b=null;if(p.length){b=document.createElement("div");for(var _=0;_<p.length;_++)b.appendChild(p[_])}return b},update:function(r,i,s,c,f){var d=s.$getTemplates(),h=s.getScale(),p=u(r,c.resource_property,s.getScale(),s),g=o(h,f),m={};if(l&&l[r.id])for(var v in l[r.id])m[v]=v;for(var y=g.start;y<=g.end;y++){var b=p[y];if(m[y]=!1,b)if(a(y,h,f,t))if(l[r.id]&&l[r.id][y])l[r.id]&&l[r.id][y]&&!l[r.id][y].parentNode&&i.appendChild(l[r.id][y]);else{var _=e(r,b,d,0,s);_&&(i.appendChild(_),l[r.id][y]=_)}else n(r.id,y)}for(var v in m)!1!==m[v]&&n(r.id,v)},getRectangle:r,getVisibleRange:i}}},function(t,e,n){function r(t){"@babel/helpers - typeof";return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var i=n(2),o=n(23),a=n(5);t.exports=function(t){return{render:function(e,n,r,o){for(var a=n.getGridColumns(),s=n.$getTemplates(),u=n.$config.rowStore,l=[],c=0;c<a.length;c++){var f,d,h,p=c==a.length-1,g=a[c];"add"==g.name?(d="<div "+(w=t._waiAria.gridAddButtonAttrString(g))+" class='gantt_add'></div>",h=""):(d=g.template?g.template(e):e[g.name],i.isDate(d)&&(d=s.date_grid(d,e,g.name)),null!==d&&void 0!==d||(d=""),h=d,d="<div class='gantt_tree_content'>"+d+"</div>");var m="gantt_cell"+(p?" gantt_last_cell":""),v=[];if(g.tree){m+=" gantt_cell_tree";for(var y=0;y<e.$level;y++)v.push(s.grid_indent(e));!u.hasChild(e.id)||t.isSplitTask(e)&&!t.config.open_split_tasks?(v.push(s.grid_blank(e)),v.push(s.grid_file(e))):(v.push(s.grid_open(e)),v.push(s.grid_folder(e)))}var b="width:"+(g.width-(p?1:0))+"px;";if(this.defined(g.align)){var _={right:"flex-end",left:"flex-start",center:"center"}[g.align];b+="text-align:"+g.align+";justify-content:"+_+";"}var w=t._waiAria.gridCellAttrString(g,h,e);v.push(d),f="<div class='"+m+"' data-column-index='"+c+"' data-column-name='"+g.name+"' style='"+b+"' "+w+">"+v.join("")+"</div>",l.push(f)}if(m=t.getGlobalTaskIndex(e.id)%2==0?"":" odd",m+=e.$transparent?" gantt_transparent":"",m+=e.$dataprocessor_class?" "+e.$dataprocessor_class:"",s.grid_row_class){var x=s.grid_row_class.call(t,e.start_date,e.end_date,e);x&&(m+=" "+x)}u.isSelected(e.id)&&(m+=" gantt_selected");var k=document.createElement("div");k.className="gantt_row"+m+" gantt_row_"+t.getTaskType(e.type);var S=n.getItemHeight(e.id);return k.style.height=S+"px",k.style.lineHeight=S+"px",r.smart_rendering&&(k.style.position="absolute",k.style.left="0px",k.style.top=n.getItemTop(e.id)+"px"),n.$config.item_attribute&&(k.setAttribute(n.$config.item_attribute,e.id),k.setAttribute(n.$config.bind+"_id",e.id)),t._waiAria.taskRowAttr(e,k),k.innerHTML=l.join(""),k},update:null,getRectangle:o,getVisibleRange:a,onrender:function(e,n,i){for(var o=i.getGridColumns(),a=0;a<o.length;a++){var s=o[a];if(s.onrender){var u=n.querySelector("[data-column-name="+s.name+"]");if(u){var l=s.onrender(e,u);if(l&&"string"==typeof l)u.innerHTML=l;else if(l&&"object"===r(l)&&t.config.external_render){var c=t.config.external_render;c.isElement(l)&&c.renderElement(l,u)}}}}}}}},function(t,e,n){var r=n(32);t.exports=function(t){function e(e,n,r){var i=n.getItemPosition(e);if(t.getTaskType(e.type)==r.types.milestone){var o=n.getBarHeight(e.id,!0),a=Math.sqrt(2*o*o);i.left-=a/2,i.width=a}return i}var n={current_pos:null,dirs:{left:"left",right:"right",up:"up",down:"down"},path:[],clear:function(){this.current_pos=null,this.path=[]},point:function(e){this.current_pos=t.copy(e)},get_lines:function(t){this.clear(),this.point(t[0]);for(var e=1;e<t.length;e++)this.line_to(t[e]);return this.get_path()},line_to:function(e){var n=t.copy(e),r=this.current_pos,i=this._get_line(r,n);this.path.push(i),this.current_pos=n},get_path:function(){return this.path},get_wrapper_sizes:function(t,e,n){var r,i=e.$getConfig().link_wrapper_width,o=t.y-i/2;switch(t.direction){case this.dirs.left:r={top:o,height:i,lineHeight:i,left:t.x-t.size-i/2,width:t.size+i};break;case this.dirs.right:r={top:o,lineHeight:i,height:i,left:t.x-i/2,width:t.size+i};break;case this.dirs.up:r={top:o-t.size,lineHeight:t.size+i,height:t.size+i,left:t.x-i/2,width:i};break;case this.dirs.down:r={top:o,lineHeight:t.size+i,height:t.size+i,left:t.x-i/2,width:i}}return r},get_line_sizes:function(t,e){var n,r=e.$getConfig(),i=r.link_line_width,o=r.link_wrapper_width,a=t.size+i;switch(t.direction){case this.dirs.left:case this.dirs.right:n={height:i,width:a,marginTop:(o-i)/2,marginLeft:(o-i)/2};break;case this.dirs.up:case this.dirs.down:n={height:a,width:i,marginTop:(o-i)/2,marginLeft:(o-i)/2}}return n},render_line:function(t,e,n,r){var i=this.get_wrapper_sizes(t,n,r),o=document.createElement("div");o.style.cssText=["top:"+i.top+"px","left:"+i.left+"px","height:"+i.height+"px","width:"+i.width+"px"].join(";"),o.className="gantt_line_wrapper";var a=this.get_line_sizes(t,n),s=document.createElement("div");return s.style.cssText=["height:"+a.height+"px","width:"+a.width+"px","margin-top:"+a.marginTop+"px","margin-left:"+a.marginLeft+"px"].join(";"),s.className="gantt_link_line_"+t.direction,o.appendChild(s),o},_get_line:function(t,e){var n=this.get_direction(t,e),r={x:t.x,y:t.y,direction:this.get_direction(t,e)};return n==this.dirs.left||n==this.dirs.right?r.size=Math.abs(t.x-e.x):r.size=Math.abs(t.y-e.y),r},get_direction:function(t,e){return e.x<t.x?this.dirs.left:e.x>t.x?this.dirs.right:e.y>t.y?this.dirs.down:this.dirs.up}},i={path:[],clear:function(){this.path=[]},current:function(){return this.path[this.path.length-1]},point:function(e){return e?(this.path.push(t.copy(e)),e):this.current()},point_to:function(e,r,i){i=i?{x:i.x,y:i.y}:t.copy(this.point());var o=n.dirs;switch(e){case o.left:i.x-=r;break;case o.right:i.x+=r;break;case o.up:i.y-=r;break;case o.down:i.y+=r}return this.point(i)},get_points:function(e,r,i,o){var a=this.get_endpoint(e,r,i,o),s=t.config,u=a.e_y-a.y,l=a.e_x-a.x,c=n.dirs,f=r.getItemHeight(e.source);this.clear(),this.point({x:a.x,y:a.y});var d=2*s.link_arrow_size,h=this.get_line_type(e,r.$getConfig()),p=a.e_x>a.x;if(h.from_start&&h.to_start)this.point_to(c.left,d),p?(this.point_to(c.down,u),this.point_to(c.right,l)):(this.point_to(c.right,l),this.point_to(c.down,u)),this.point_to(c.right,d);else if(!h.from_start&&h.to_start)if(p=a.e_x>a.x+2*d,this.point_to(c.right,d),p)l-=d,this.point_to(c.down,u),this.point_to(c.right,l);else{l-=2*d;var g=u>0?1:-1;this.point_to(c.down,g*(f/2)),this.point_to(c.right,l),this.point_to(c.down,g*(Math.abs(u)-f/2)),this.point_to(c.right,d)}else h.from_start||h.to_start?h.from_start&&!h.to_start&&(p=a.e_x>a.x-2*d,this.point_to(c.left,d),p?(l+=2*d,g=u>0?1:-1,this.point_to(c.down,g*(f/2)),this.point_to(c.right,l),this.point_to(c.down,g*(Math.abs(u)-f/2)),this.point_to(c.left,d)):(l+=d,this.point_to(c.down,u),this.point_to(c.right,l))):(this.point_to(c.right,d),p?(this.point_to(c.right,l),this.point_to(c.down,u)):(this.point_to(c.down,u),this.point_to(c.right,l)),this.point_to(c.left,d));return this.path},get_line_type:function(e,n){var r=n.links,i=!1,o=!1;return e.type==r.start_to_start?i=o=!0:e.type==r.finish_to_finish?i=o=!1:e.type==r.finish_to_start?(i=!1,o=!0):e.type==r.start_to_finish?(i=!0,o=!1):t.assert(!1,"Invalid link type"),n.rtl&&(i=!i,o=!o),{from_start:i,to_start:o}},get_endpoint:function(t,n,r,i){var o=n.$getConfig(),a=this.get_line_type(t,o),s=a.from_start,u=a.to_start,l=e(r,n,o),c=e(i,n,o);return{x:s?l.left:l.left+l.width,e_x:u?c.left:c.left+c.width,y:l.top+l.rowHeight/2-1,e_y:c.top+c.rowHeight/2-1}}};return{render:function(e,r,o){var a=t.getTask(e.source);if(!a.hide_bar){var s=t.getTask(e.target);if(!s.hide_bar){var u=i.get_endpoint(e,r,a,s),l=u.e_y-u.y;if(!(u.e_x-u.x||l))return null;var c=i.get_points(e,r,a,s),f=n.get_lines(c,r),d=document.createElement("div"),h="gantt_task_link";e.color&&(h+=" gantt_link_inline_color");var p=t.templates.link_class?t.templates.link_class(e):"";p&&(h+=" "+p),o.highlight_critical_path&&t.isCriticalLink&&t.isCriticalLink(e)&&(h+=" gantt_critical_link"),d.className=h,r.$config.link_attribute&&(d.setAttribute(r.$config.link_attribute,e.id),d.setAttribute("link_id",e.id));for(var g=0;g<f.length;g++){g==f.length-1&&(f[g].size-=o.link_arrow_size);var m=n.render_line(f[g],f[g+1],r,e.source);e.color&&(m.firstChild.style.backgroundColor=e.color),d.appendChild(m)}var v=f[f.length-1].direction,y=function(t,e,r,i){var o=r.$getConfig(),a=document.createElement("div"),s=t.y,u=t.x,l=o.link_arrow_size,c="gantt_link_arrow gantt_link_arrow_"+e;switch(e){case n.dirs.right:s-=l/2,u-=l;break;case n.dirs.left:s-=l/2;break;case n.dirs.up:u-=l;break;case n.dirs.down:s+=2*l,u-=l}return a.style.cssText=["top:"+s+"px","left:"+u+"px"].join(";"),a.className=c,a}(c[c.length-1],v,r,e.source);return e.color&&(y.style.borderColor=e.color),d.appendChild(y),t._waiAria.linkAttr(e,d),d}}},update:null,isInViewPort:r}}},function(t,e,n){var r=n(19),i=n(13),o=n(5),a=n(18),s=n(17);t.exports=function(t){function e(t,e){return!(!c[t.id][e]||!c[t.id][e].parentNode)}function n(t,e){c[t]&&c[t][e]&&c[t][e].parentNode&&c[t][e].parentNode.removeChild(c[t][e])}function u(t){var e,n=t.$getTemplates();return void 0!==n.task_cell_class?(e=n.task_cell_class,(console.warn||console.log)("gantt.templates.task_cell_class template is deprecated and will be removed soon. Please use gantt.templates.timeline_cell_class instead.")):e=n.timeline_cell_class,e}function l(e,n,r,i,o,a,u){var l=e.width[n],d="";if(s(n,e,i,t)){var h=a(r,e.trace_x[n]);if(u.static_background&&(!u.static_background_cells||!h))return null;if(c[r.id][n])return f[r.id][n]=n,c[r.id][n];var p=document.createElement("div");return p.style.width=l+"px",d="gantt_task_cell"+(n==o-1?" gantt_last_cell":""),h&&(d+=" "+h),p.className=d,p.style.position="absolute",p.style.left=e.left[n]+"px",c[r.id][n]=p,f[r.id][n]=n,p}return null}var c={},f={};return{render:function(e,n,r,o){var s=n.$getTemplates(),d=n.getScale(),h=d.count;if(r.static_background&&!r.static_background_cells)return null;var p,g=document.createElement("div"),m=u(n);if(p=o&&r.smart_rendering&&!i(t)?a(d,o.x):{start:0,end:h-1},r.show_task_cells){c[e.id]={},f[e.id]={};for(var v=p.start;v<=p.end;v++){var y=l(d,v,e,o,h,m,r);y&&g.appendChild(y)}}var b=t.getGlobalTaskIndex(e.id)%2!=0,_=s.task_row_class(e.start_date,e.end_date,e),w="gantt_task_row"+(b?" odd":"")+(_?" "+_:"");return n.$config.rowStore.isSelected(e.id)&&(w+=" gantt_selected"),g.className=w,r.smart_rendering?(g.style.position="absolute",g.style.top=n.getItemTop(e.id)+"px",g.style.width="100%"):g.style.position="relative",g.style.height=n.getItemHeight(e.id)+"px",n.$config.item_attribute&&(g.setAttribute(n.$config.item_attribute,e.id),g.setAttribute(n.$config.bind+"_id",e.id)),g},update:function(t,r,i,o,s){var d=i.getScale(),h=d.count,p=u(i);if(o.show_task_cells){c[t.id]||(c[t.id]={}),f[t.id]||(f[t.id]={});var g=a(d,s);for(var m in f[t.id]){var v=f[t.id][m];(Number(v)<g.start||Number(v)>g.end)&&n(t.id,v)}f[t.id]={};for(var y=g.start;y<=g.end;y++){var b=l(d,y,t,s,h,p,o);!b&&e(t,y)?n(t.id,y):b&&!b.parentNode&&r.appendChild(b)}}},getRectangle:r,getVisibleRange:o}}},function(t,e,n){var r=n(20),i=n(21),o=n(5);t.exports=function(t){var e=r(t);return{render:function(n,r){if(n.$rollup&&n.$rollup.length){var i=document.createElement("div"),o=t.getTaskPosition(n);return n.$rollup.forEach(function(a){var s=t.getTask(a),u=e(s,r);if(u){var l=r.getBarHeight(n.id,s.type==t.config.types.milestone),c=Math.floor((r.getItemHeight(n.id)-l)/2);u.style.top=o.top+c+"px",u.classList.add("gantt_rollup_child"),i.appendChild(u)}}),i}return!1},update:null,isInViewPort:i,getVisibleRange:o}}},function(t,e,n){var r=n(21);t.exports=function(t,e,n,i,o){if(!o.isSplitTask(t))return!1;var a=o.getSubtaskDates(t.id);return r({id:t.id,start_date:a.start_date,end_date:a.end_date,parent:t.parent},e,n,o)}},function(t,e,n){var r=n(20),i=n(90),o=n(5);t.exports=function(t){var e=r(t);return{render:function(n,r){if(t.isSplitTask(n)&&(t.config.open_split_tasks&&!n.$open||!t.config.open_split_tasks)){var i=document.createElement("div"),o=t.getTaskPosition(n);return t.hasChild(n.id)&&t.eachTask(function(a){var s=t.isSummaryTask(a);if(s&&t.resetProjectDates(a),!a.hide_bar){var u=e(a,r);if(u){var l=r.getBarHeight(n.id,a.type==t.config.types.milestone),c=Math.floor((r.getItemHeight(n.id)-l)/2);u.style.top=o.top+c+"px",u.classList.add("gantt_split_child"),s&&u.classList.add("gantt_split_subproject"),i.appendChild(u)}}},n.id),i}return!1},update:null,isInViewPort:i,getVisibleRange:o}}},function(t,e,n){var r=n(21),i=n(5),o=n(20);t.exports=function(t){return{render:o(t),update:null,isInViewPort:r,getVisibleRange:i}}},function(t,e){t.exports=function(t){function e(e){return t.calculateEndDate({start_date:e.end_date,duration:-e.duration,task:e})}return function(n,r,i){"keepDates"==i?function(e,n){"duration"==n?e.end_date=t.calculateEndDate(e):"end_date"!=n&&"start_date"!=n||(e.duration=t.calculateDuration(e))}(n,r):"keepDuration"==i?function(n,r){"end_date"==r?n.start_date=e(n):"start_date"!=r&&"duration"!=r||(n.end_date=t.calculateEndDate(n))}(n,r):function(n,r){t.config.schedule_from_end?"end_date"==r||"duration"==r?n.start_date=e(n):"start_date"==r&&(n.duration=t.calculateDuration(n)):"start_date"==r||"duration"==r?n.end_date=t.calculateEndDate(n):"end_date"==r&&(n.duration=t.calculateDuration(n))}(n,r)}}},function(t,e,n){t.exports=function(t){function e(){return i.apply(this,arguments)||this}function r(e){return e.formatter||t.ext.formatters.durationFormatter()}var i=n(7)(t),o=n(0);return n(3)(e,i),o.mixin(e.prototype,{show:function(t,e,n,r){var i="<div><input type='text' name='"+e.name+"'></div>";r.innerHTML=i},set_value:function(t,e,n,i){this.get_input(i).value=r(n.editor).format(t)},get_value:function(t,e,n){return r(e.editor).parse(this.get_input(n).value||"")}},!0),e}},function(t,e,n){t.exports=function(t){function e(){return u.apply(this,arguments)||this}function r(e){return e.formatter||t.ext.formatters.linkFormatter()}function i(t,e){for(var n=(t||"").split(e.delimiter||","),r=0;r<n.length;r++){var i=n[r].trim();i?n[r]=i:(n.splice(r,1),r--)}return n.sort(),n}function o(t,e,n){for(var i=t.$target,o=[],a=0;a<i.length;a++){var s=n.getLink(i[a]);o.push(r(e).format(s))}return o.join((e.delimiter||",")+" ")}function a(t){return t.source+"_"+t.target+"_"+t.type+"_"+(t.lag||0)}function s(e,n,i){var o=function(e,n,i){var o=[];return n.forEach(function(n){var a=r(i).parse(n);a&&(a.target=e,a.id="predecessor_generated",t.isLinkAllowed(a)&&(a.id=void 0,o.push(a)))}),o}(e.id,n,i),s={};e.$target.forEach(function(e){var n=t.getLink(e);s[a(n)]=n.id});var u=[];o.forEach(function(t){var e=a(t);s[e]?delete s[e]:u.push(t)});var l=[];for(var c in s)l.push(s[c]);return{add:u,remove:l}}var u=n(7)(t),l=n(0);return n(3)(e,u),l.mixin(e.prototype,{show:function(t,e,n,r){var i="<div><input type='text' name='"+e.name+"'></div>";r.innerHTML=i},hide:function(){},set_value:function(e,n,r,i){this.get_input(i).value=o(e,r.editor,t)},get_value:function(t,e,n){return i(this.get_input(n).value||"",e.editor)},save:function(e,n,r){var i=s(t.getTask(e),this.get_value(e,n,r),n.editor);(i.add.length||i.remove.length)&&t.batchUpdate(function(){i.add.forEach(function(e){t.addLink(e)}),i.remove.forEach(function(e){t.deleteLink(e)}),t.autoSchedule&&t.autoSchedule()})},is_changed:function(e,n,r,a){var s=this.get_value(n,r,a),u=i(o(e,r.editor,t),r.editor);return s.join()!==u.join()}},!0),e}},function(t,e,n){t.exports=function(t){function e(){return r.apply(this,arguments)||this}var r=n(7)(t),i=n(0),o="%Y-%m-%d",a=null,s=null;return n(3)(e,r),i.mixin(e.prototype,{show:function(e,n,r,i){a||(a=t.date.date_to_str(o)),s||(s=t.date.str_to_date(o));var u=null,l=null;u="function"==typeof r.min?r.min(e,n):r.min,l="function"==typeof r.max?r.max(e,n):r.max;var c="<div style='width:140px'><input type='date' "+(u?" min='"+a(u)+"' ":"")+(l?" max='"+a(l)+"' ":"")+" name='"+n.name+"'></div>";i.innerHTML=c},set_value:function(t,e,n,r){t&&t.getFullYear?this.get_input(r).value=a(t):this.get_input(r).value=t},is_valid:function(t,e,n,r){return!(!t||isNaN(t.getTime()))},get_value:function(t,e,n){var r;try{r=s(this.get_input(n).value||"")}catch(t){r=null}return r}},!0),e}},function(t,e,n){t.exports=function(t){function e(){return r.apply(this,arguments)||this}var r=n(7)(t),i=n(0);return n(3)(e,r),i.mixin(e.prototype,{show:function(t,e,n,r){for(var i="<div><select name='"+e.name+"'>",o=[],a=n.options||[],s=0;s<a.length;s++)o.push("<option value='"+n.options[s].key+"'>"+a[s].label+"</option>");i+=o.join("")+"</select></div>",r.innerHTML=i},get_input:function(t){return t.querySelector("select")}},!0),e}},function(t,e,n){t.exports=function(t){function e(){return r.apply(this,arguments)||this}var r=n(7)(t),i=n(0);return n(3)(e,r),i.mixin(e.prototype,{show:function(t,e,n,r){var i="<div><input type='number' min='"+(n.min||0)+"' max='"+(n.max||100)+"' name='"+e.name+"'></div>";r.innerHTML=i},get_value:function(t,e,n){return this.get_input(n).value||""},is_valid:function(t,e,n,r){return!isNaN(parseInt(t,10))}},!0),e}},function(t,e,n){t.exports=function(t){function e(){return r.apply(this,arguments)||this}var r=n(7)(t),i=n(0);return n(3)(e,r),i.mixin(e.prototype,{show:function(t,e,n,r){var i="<div><input type='text' name='"+e.name+"'></div>";r.innerHTML=i}},!0),e}},function(t,e){t.exports={init:function(t,e){var n=t,r=e.$gantt,i=null,o=r.ext.keyboardNavigation;o.attachEvent("onBeforeFocus",function(e){var r=t.locateCell(e);if(clearTimeout(i),r){var o=r.columnName,a=r.id,s=n.getState();if(n.isVisible()&&s.id==a&&s.columnName===o)return!1}return!0}),o.attachEvent("onFocus",function(e){var r=t.locateCell(e),o=t.getState();return clearTimeout(i),!r||r.id==o.id&&r.columnName==o.columnName||n.isVisible()&&n.save(),!0}),t.attachEvent("onHide",function(){clearTimeout(i)}),o.attachEvent("onBlur",function(){return i=setTimeout(function(){n.save()}),!0}),r.attachEvent("onTaskDblClick",function(e,n){var r=t.getState(),i=t.locateCell(n.target);return!i||!t.isVisible()||i.columnName!=r.columnName}),r.attachEvent("onTaskClick",function(e,n){if(r._is_icon_open_click(n))return!0;var i=t.getState(),o=t.locateCell(n.target);return!o||!t.getEditorConfig(o.columnName)||(t.isVisible()&&i.id==o.id&&i.columnName==o.columnName||t.startEdit(o.id,o.columnName),!1)}),r.attachEvent("onEmptyClick",function(){return n.save(),!0}),o.attachEvent("onKeyDown",function(e,i){var a=t.locateCell(i.target),s=!!a&&t.getEditorConfig(a.columnName),u=t.getState(),l=r.constants.KEY_CODES,c=i.keyCode,f=!1;switch(c){case l.ENTER:t.isVisible()?(t.save(),i.preventDefault(),f=!0):s&&!(i.ctrlKey||i.metaKey||i.shiftKey)&&(n.startEdit(a.id,a.columnName),i.preventDefault(),f=!0);break;case l.ESC:t.isVisible()&&(t.hide(),i.preventDefault(),f=!0);break;case l.UP:case l.DOWN:break;case l.LEFT:case l.RIGHT:(s&&t.isVisible()||"date"===u.editorType)&&(f=!0);break;case l.SPACE:t.isVisible()&&(f=!0),s&&!t.isVisible()&&(n.startEdit(a.id,a.columnName),i.preventDefault(),f=!0);break;case l.DELETE:s&&!t.isVisible()?(n.startEdit(a.id,a.columnName),f=!0):s&&t.isVisible()&&(f=!0);break;case l.TAB:if(t.isVisible()){i.shiftKey?t.editPrevCell(!0):t.editNextCell(!0);var d=t.getState();d.id&&o.focus({type:"taskCell",id:d.id,column:d.columnName}),i.preventDefault(),f=!0}break;default:if(t.isVisible())f=!0;else if(c>=48&&c<=57||c>95&&c<112||c>=64&&c<=91||c>185&&c<193||c>218&&c<223){var h=e.modifiers,p=h.alt||h.ctrl||h.meta||h.shift;h.alt||p&&o.getCommandHandler(e,"taskCell")||s&&!t.isVisible()&&(n.startEdit(a.id,a.columnName),f=!0)}}return!f})},onShow:function(t,e,n){},onHide:function(t,e,n){n.$gantt.focus()},destroy:function(){}}},function(t,e){t.exports={init:function(t,e){var n=e.$gantt;n.attachEvent("onTaskClick",function(e,r){if(n._is_icon_open_click(r))return!0;var i=t.getState(),o=t.locateCell(r.target);return!o||!t.getEditorConfig(o.columnName)||(t.isVisible()&&i.id==o.id&&i.columnName==o.columnName||t.startEdit(o.id,o.columnName),!1)}),n.attachEvent("onEmptyClick",function(){return t.isVisible()&&t.isChanged()?t.save():t.hide(),!0}),n.attachEvent("onTaskDblClick",function(e,n){var r=t.getState(),i=t.locateCell(n.target);return!i||!t.isVisible()||i.columnName!=r.columnName})},onShow:function(t,e,n){var r=n.$gantt;r.ext&&r.ext.keyboardNavigation&&r.ext.keyboardNavigation.attachEvent("onKeyDown",function(e,n){var i=r.constants.KEY_CODES,o=!1;switch(n.keyCode){case i.SPACE:t.isVisible()&&(o=!0)}return!o}),e.onkeydown=function(e){e=e||window.event;var n=r.constants.KEY_CODES;if(!(e.defaultPrevented||e.shiftKey&&e.keyCode!=n.TAB)){var i=!0;switch(e.keyCode){case r.keys.edit_save:t.save();break;case r.keys.edit_cancel:t.hide();break;case n.UP:case n.DOWN:t.isVisible()&&(t.hide(),i=!1);break;case n.TAB:e.shiftKey?t.editPrevCell(!0):t.editNextCell(!0);break;default:i=!1}i&&e.preventDefault()}}},onHide:function(){},destroy:function(){}}},function(t,e,n){var r=n(101),i=n(100);t.exports=function(t){var e=null;return{setMapping:function(t){e=t},getMapping:function(){return e||(t.config.keyboard_navigation_cells&&t.ext.keyboardNavigation?i:r)}}}},function(t,e,n){function r(t){t.config.editor_types={text:new(o(t)),number:new(a(t)),select:new(s(t)),date:new(u(t)),predecessor:new(l(t)),duration:new(c(t))}}var i=n(102),o=n(99),a=n(98),s=n(97),u=n(96),l=n(95),c=n(94),f=n(0),d=n(1),h=n(4),p=n(93);t.exports=function(t){var e=i(t),n={};h(n);var o={init:r,createEditors:function(r){function i(t,e){var n=r.$getConfig(),i=function(t,e){for(var n=r.$getConfig(),i=r.getItemTop(t),o=r.getItemHeight(t),a=r.getGridColumns(),s=0,u=0,l=0,c=0;c<a.length;c++){if(a[c].name==e){l=a[c].width;break}n.rtl?u+=a[c].width:s+=a[c].width}return n.rtl?{top:i,right:u,height:o,width:l}:{top:i,left:s,height:o,width:l}}(t,e),o=document.createElement("div");o.className="gantt_grid_editor_placeholder",o.setAttribute(r.$config.item_attribute,t),o.setAttribute(r.$config.bind+"_id",t),o.setAttribute("data-column-name",e);var a=function(t,e){for(var n=t.getGridColumns(),r=0;r<n.length;r++)if(n[r].name==e)return r;return 0}(r,e);return o.setAttribute("data-column-index",a),n.rtl?o.style.cssText=["top:"+i.top+"px","right:"+i.right+"px","width:"+i.width+"px","height:"+i.height+"px"].join(";"):o.style.cssText=["top:"+i.top+"px","left:"+i.left+"px","width:"+i.width+"px","height:"+i.height+"px"].join(";"),o}var o=p(t),a=[],s=[],u=null,l={_itemId:null,_columnName:null,_editor:null,_editorType:null,_placeholder:null,locateCell:function(t){if(!d.isChildOf(t,r.$grid))return null;var e=d.locateAttribute(t,r.$config.item_attribute),n=d.locateAttribute(t,"data-column-name");if(e&&n){var i=n.getAttribute("data-column-name");return{id:e.getAttribute(r.$config.item_attribute),columnName:i}}return null},getEditorConfig:function(t){return r.getColumn(t).editor},init:function(){var n=e.getMapping();n.init&&n.init(this,r),u=r.$gantt.getDatastore(r.$config.bind);var i=this;a.push(u.attachEvent("onIdChange",function(t,e){i._itemId==t&&(i._itemId=e)})),a.push(u.attachEvent("onStoreUpdated",function(){r.$gantt.getState("batchUpdate").batch_update||i.isVisible()&&!u.isVisible(i._itemId)&&i.hide()})),s.push(t.attachEvent("onDataRender",function(){i._editor&&i._placeholder&&!d.isChildOf(i._placeholder,t.$root)&&r.$grid_data.appendChild(i._placeholder)})),this.init=function(){}},getState:function(){return{editor:this._editor,editorType:this._editorType,placeholder:this._placeholder,id:this._itemId,columnName:this._columnName}},startEdit:function(e,n){if(this.isVisible()&&this.save(),u.exists(e)){var r={id:e,columnName:n};t.isReadonly(u.getItem(e))?this.callEvent("onEditPrevent",[r]):!1!==this.callEvent("onBeforeEditStart",[r])?(this.show(r.id,r.columnName),this.setValue(),this.callEvent("onEditStart",[r])):this.callEvent("onEditPrevent",[r])}},isVisible:function(){return!(!this._editor||!d.isChildOf(this._placeholder,t.$root))},show:function(t,n){this.isVisible()&&this.save();var o={id:t,columnName:n},a=r.getColumn(o.columnName),s=this.getEditorConfig(a.name);if(s){var u=r.$getConfig().editor_types[s.type],l=i(o.id,o.columnName);r.$grid_data.appendChild(l),u.show(o.id,a,s,l),this._editor=u,this._placeholder=l,this._itemId=o.id,this._columnName=o.columnName,this._editorType=s.type;var c=e.getMapping();c.onShow&&c.onShow(this,l,r)}},setValue:function(){var t=this.getState(),e=t.id,n=t.columnName,i=r.getColumn(n),o=u.getItem(e),a=this.getEditorConfig(n);if(a){var s=o[a.map_to];"auto"==a.map_to&&(s=u.getItem(e)),this._editor.set_value(s,e,i,this._placeholder),this.focus()}},focus:function(){this._editor.focus(this._placeholder)},getValue:function(){var t=r.getColumn(this._columnName);return this._editor.get_value(this._itemId,t,this._placeholder)},_getItemValue:function(){var e=this.getEditorConfig(this._columnName);if(e){var n=t.getTask(this._itemId)[e.map_to];return"auto"==e.map_to&&(n=u.getItem(this._itemId)),n}},isChanged:function(){var t=r.getColumn(this._columnName),e=this._getItemValue();return this._editor.is_changed(e,this._itemId,t,this._placeholder)},hide:function(){if(this._itemId){var t=this._itemId,n=this._columnName,i=e.getMapping();i.onHide&&i.onHide(this,this._placeholder,r),this._itemId=null,this._columnName=null,this._editorType=null,this._placeholder&&(this._editor&&this._editor.hide&&this._editor.hide(this._placeholder),this._editor=null,this._placeholder.parentNode&&this._placeholder.parentNode.removeChild(this._placeholder),this._placeholder=null,this.callEvent("onEditEnd",[{id:t,columnName:n}]))}},save:function(){if(this.isVisible()&&u.exists(this._itemId)&&this.isChanged()){var e=this._itemId,n=this._columnName;if(u.exists(e)){var i=u.getItem(e),a=this.getEditorConfig(n),s={id:e,columnName:n,newValue:this.getValue(),oldValue:this._getItemValue()};if(!1!==this.callEvent("onBeforeSave",[s])&&(!this._editor.is_valid||this._editor.is_valid(s.newValue,s.id,s.columnName,this._placeholder))){var l=a.map_to,c=s.newValue;"auto"!=l?(i[l]=c,o(i,l,t.config.inline_editors_date_processing),u.updateItem(e)):this._editor.save(e,r.getColumn(n),this._placeholder),this.callEvent("onSave",[s])}this.hide()}}else this.hide()},_findEditableCell:function(t,e){var n=t,i=r.getGridColumns()[n],o=i?i.name:null;if(o){for(;o&&!this.getEditorConfig(o);)o=this._findEditableCell(t+e,e);return o}return null},getNextCell:function(t){return this._findEditableCell(r.getColumnIndex(this._columnName,!0)+t,t)},getFirstCell:function(){return this._findEditableCell(0,1)},getLastCell:function(){return this._findEditableCell(r.getGridColumns().length-1,-1)},editNextCell:function(t){var e=this.getNextCell(1);if(e){var n=this.getNextCell(1);n&&this.getEditorConfig(n)&&this.startEdit(this._itemId,n)}else if(t&&this.moveRow(1)){var r=this.moveRow(1);(e=this.getFirstCell())&&this.getEditorConfig(e)&&this.startEdit(r,e)}},editPrevCell:function(t){var e=this.getNextCell(-1);if(e){var n=this.getNextCell(-1);n&&this.getEditorConfig(n)&&this.startEdit(this._itemId,n)}else if(t&&this.moveRow(-1)){var r=this.moveRow(-1);(e=this.getLastCell())&&this.getEditorConfig(e)&&this.startEdit(r,e)}},moveRow:function(e){for(var n=e>0?t.getNext:t.getPrev,r=(n=t.bind(n,t))(this._itemId);t.isTaskExists(r)&&t.isReadonly(t.getTask(r));)r=n(r);return r},editNextRow:function(e){var n=this.getState().id;if(t.isTaskExists(n)){var r=null;r=e?this.moveRow(1):t.getNext(n),t.isTaskExists(r)&&this.startEdit(r,this._columnName)}},editPrevRow:function(e){var n=this.getState().id;if(t.isTaskExists(n)){var r=null;r=e?this.moveRow(-1):t.getPrev(n),t.isTaskExists(r)&&this.startEdit(r,this._columnName)}},destructor:function(){a.forEach(function(t){u.detachEvent(t)}),s.forEach(function(e){t.detachEvent(e)}),a=[],s=[],u=null,this.hide(),this.detachAllEvents()}};return f.mixin(l,e),f.mixin(l,n),l}};return f.mixin(o,e),f.mixin(o,n),o}},function(t,e){t.exports={create:function(){return{render:function(){},destroy:function(){}}}}},function(t,e,n){var r=n(3),i=n(1),o=n(0),a=n(8),s=function(t){"use strict";function e(e,n,r,i){var a=t.apply(this,arguments)||this;this.$config=o.mixin(n,{scroll:"x"}),a._scrollHorizontalHandler=o.bind(a._scrollHorizontalHandler,a),a._scrollVerticalHandler=o.bind(a._scrollVerticalHandler,a),a._outerScrollVerticalHandler=o.bind(a._outerScrollVerticalHandler,a),a._outerScrollHorizontalHandler=o.bind(a._outerScrollHorizontalHandler,a),a._mouseWheelHandler=o.bind(a._mouseWheelHandler,a),this.$config.hidden=!0;var s=i.config.scroll_size;return i.env.isIE&&(s+=1),this._isHorizontal()?(a.$config.height=s,a.$parent.$config.height=s):(a.$config.width=s,a.$parent.$config.width=s),this.$config.scrollPosition=0,a.$name="scroller",a}var n=["altKey","shiftKey","metaKey"];return r(e,t),e.prototype.init=function(t){t.innerHTML=this.$toHTML(),this.$view=t.firstChild,this.$view||this.init(),this._isVertical()?this._initVertical():this._initHorizontal(),this._initMouseWheel(),this._initLinkedViews()},e.prototype.$toHTML=function(){return"<div class='gantt_layout_cell "+(this._isHorizontal()?"gantt_hor_scroll":"gantt_ver_scroll")+"'><div style='"+(this._isHorizontal()?"width:2000px":"height:2000px")+"'></div></div>"},e.prototype._getRootParent=function(){for(var t=this.$parent;t&&t.$parent;)t=t.$parent;if(t)return t},e.prototype._eachView=function(){var t=[];return function t(e,n){if(n.push(e),e.$cells)for(var r=0;r<e.$cells.length;r++)t(e.$cells[r],n)}(this._getRootParent(),t),t},e.prototype._getLinkedViews=function(){for(var t=this._eachView(),e=[],n=0;n<t.length;n++)t[n].$config&&(this._isVertical()&&t[n].$config.scrollY==this.$id||this._isHorizontal()&&t[n].$config.scrollX==this.$id)&&e.push(t[n]);return e},e.prototype._initHorizontal=function(){this.$scroll_hor=this.$view,this.$domEvents.attach(this.$view,"scroll",this._scrollHorizontalHandler)},e.prototype._initLinkedViews=function(){for(var t=this._getLinkedViews(),e=this._isVertical()?"gantt_layout_outer_scroll gantt_layout_outer_scroll_vertical":"gantt_layout_outer_scroll gantt_layout_outer_scroll_horizontal",n=0;n<t.length;n++)i.addClassName(t[n].$view||t[n].getNode(),e)},e.prototype._initVertical=function(){this.$scroll_ver=this.$view,this.$domEvents.attach(this.$view,"scroll",this._scrollVerticalHandler)},e.prototype._updateLinkedViews=function(){},e.prototype._initMouseWheel=function(){a.isFF?this.$domEvents.attach(this._getRootParent().$view,"wheel",this._mouseWheelHandler,{passive:!1}):this.$domEvents.attach(this._getRootParent().$view,"mousewheel",this._mouseWheelHandler,{passive:!1})},e.prototype.scrollHorizontally=function(t){if(!this._scrolling){this._scrolling=!0,this.$scroll_hor.scrollLeft=t,this.$config.codeScrollLeft=t,t=this.$scroll_hor.scrollLeft;for(var e=this._getLinkedViews(),n=0;n<e.length;n++)e[n].scrollTo&&e[n].scrollTo(t,void 0);var r=this.$config.scrollPosition;this.$config.scrollPosition=t,this.callEvent("onScroll",[r,t,this.$config.scroll]),this._scrolling=!1}},e.prototype.scrollVertically=function(t){if(!this._scrolling){this._scrolling=!0,this.$scroll_ver.scrollTop=t,t=this.$scroll_ver.scrollTop;for(var e=this._getLinkedViews(),n=0;n<e.length;n++)e[n].scrollTo&&e[n].scrollTo(void 0,t);var r=this.$config.scrollPosition;this.$config.scrollPosition=t,this.callEvent("onScroll",[r,t,this.$config.scroll]),this._scrolling=!1}},e.prototype._isVertical=function(){return"y"==this.$config.scroll},e.prototype._isHorizontal=function(){return"x"==this.$config.scroll},e.prototype._scrollHorizontalHandler=function(t){if(!this._isVertical()&&!this._scrolling){if(new Date-(this._wheel_time||0)<100)return!0;var e=this.$scroll_hor.scrollLeft;this.scrollHorizontally(e),this._oldLeft=this.$scroll_hor.scrollLeft}},e.prototype._outerScrollHorizontalHandler=function(t){this._isVertical()},e.prototype.show=function(){this.$parent.show()},e.prototype.hide=function(){this.$parent.hide()},e.prototype._getScrollSize=function(){for(var t,e=0,n=0,r=this._isHorizontal(),i=this._getLinkedViews(),o=r?"scrollWidth":"scrollHeight",a=r?"contentX":"contentY",s=r?"x":"y",u=this._getScrollOffset(),l=0;l<i.length;l++)if((t=i[l])&&t.$content&&t.$content.getSize&&!t.$config.hidden){var c,f=t.$content.getSize();if(c=f.hasOwnProperty(o)?f[o]:f[a],u)f[a]>f[s]&&f[a]>e&&c>f[s]-u+2&&(e=c+(r?0:2),n=f[s]);else{var d=Math.max(f[a]-c,0);(c+=d)>Math.max(f[s]-d,0)&&c>e&&(e=c,n=f[s])}}return{outerScroll:n,innerScroll:e}},e.prototype.scroll=function(t){this._isHorizontal()?this.scrollHorizontally(t):this.scrollVertically(t)},e.prototype.getScrollState=function(){return{visible:this.isVisible(),direction:this.$config.scroll,size:this.$config.outerSize,scrollSize:this.$config.scrollSize||0,position:this.$config.scrollPosition||0}},e.prototype.setSize=function(e,n){t.prototype.setSize.apply(this,arguments);var r=this._getScrollSize(),i=(this._isVertical()?n:e)-this._getScrollOffset()+(this._isHorizontal()?1:0);r.innerScroll&&i>r.outerScroll&&(r.innerScroll+=i-r.outerScroll),this.$config.scrollSize=r.innerScroll,this.$config.width=e,this.$config.height=n,this._setScrollSize(r.innerScroll)},e.prototype.isVisible=function(){return!(!this.$parent||!this.$parent.$view.parentNode)},e.prototype.shouldShow=function(){var t=this._getScrollSize();return!(!t.innerScroll&&this.$parent&&this.$parent.$view.parentNode||!t.innerScroll||this.$parent&&this.$parent.$view.parentNode)},e.prototype.shouldHide=function(){return!(this._getScrollSize().innerScroll||!this.$parent||!this.$parent.$view.parentNode)},e.prototype.toggleVisibility=function(){this.shouldHide()?this.hide():this.shouldShow()&&this.show()},e.prototype._getScaleOffset=function(t){var e=0;return!t||"timeline"!=t.$config.view&&"grid"!=t.$config.view||(e=t.$content.$getConfig().scale_height),e},e.prototype._getScrollOffset=function(){var t=0;if(this._isVertical()){var e=this.$parent.$parent;t=Math.max(this._getScaleOffset(e.getPrevSibling(this.$parent.$id)),this._getScaleOffset(e.getNextSibling(this.$parent.$id)))}else for(var n=this._getLinkedViews(),r=0;r<n.length;r++){var i=n[r].$parent.$cells,o=i[i.length-1];if(o&&"scrollbar"==o.$config.view&&!1===o.$config.hidden){t=o.$config.width;break}}return t||0},e.prototype._setScrollSize=function(t){var e=this._isHorizontal()?"width":"height",n=this._isHorizontal()?this.$scroll_hor:this.$scroll_ver,r=this._getScrollOffset(),o=n.firstChild;r?this._isVertical()?(this.$config.outerSize=this.$config.height-r+3,n.style.height=this.$config.outerSize+"px",n.style.top=r-1+"px",i.addClassName(n,this.$parent._borders.top),i.addClassName(n.parentNode,"gantt_task_vscroll")):(this.$config.outerSize=this.$config.width-r+1,n.style.width=this.$config.outerSize+"px"):(n.style.top="auto",i.removeClassName(n,this.$parent._borders.top),i.removeClassName(n.parentNode,"gantt_task_vscroll"),this.$config.outerSize=this.$config.height),o.style[e]=t+"px"},e.prototype._scrollVerticalHandler=function(t){if(!this._scrollHorizontalHandler()&&!this._scrolling){var e=this.$scroll_ver.scrollTop;e!=this._oldTop&&(this.scrollVertically(e),this._oldTop=this.$scroll_ver.scrollTop)}},e.prototype._outerScrollVerticalHandler=function(t){this._scrollHorizontalHandler()},e.prototype._checkWheelTarget=function(t){for(var e=this._getLinkedViews().concat(this),n=0;n<e.length;n++){var r=e[n].$view;if(i.isChildOf(t,r))return!0}return!1},e.prototype._mouseWheelHandler=function(t){var e=t.target||t.srcElement;if(this._checkWheelTarget(e)){this._wheel_time=new Date;var r={},i={x:1,y:1},o=this.$gantt.config.wheel_scroll_sensitivity;"number"==typeof o&&o?i={x:o,y:o}:"[object Object]"=={}.toString.apply(o)&&(i={x:o.x,y:o.y});var s=a.isFF,u=s?t.deltaX:t.wheelDeltaX,l=s?t.deltaY:t.wheelDelta,c=-20;s&&(c=0!==t.deltaMode?-40:-10);var f=s?u*c*i.x:2*u*i.x,d=s?l*c*i.y:l*i.y,h=this.$gantt.config.horizontal_scroll_key;if(!1!==h&&n.indexOf(h)>=0&&(!t[h]||t.deltaX||t.wheelDeltaX||(f=2*d,d=0)),f&&Math.abs(f)>Math.abs(d)){if(this._isVertical())return;if(r.x)return!0;if(!this.$scroll_hor||!this.$scroll_hor.offsetWidth)return!0;var p=f/-40,g=this._oldLeft,m=g+30*p;if(this.scrollHorizontally(m),this.$scroll_hor.scrollLeft=m,g==this.$scroll_hor.scrollLeft)return!0;this._oldLeft=this.$scroll_hor.scrollLeft}else{if(this._isHorizontal())return;if(r.y)return!0;if(!this.$scroll_ver||!this.$scroll_ver.offsetHeight)return!0;p=d/-40,void 0===d&&(p=t.detail);var v=this._oldTop,y=this.$scroll_ver.scrollTop+30*p;if(this.scrollVertically(y),this.$scroll_ver.scrollTop=y,v==this.$scroll_ver.scrollTop)return!0;this._oldTop=this.$scroll_ver.scrollTop}return t.preventDefault&&t.preventDefault(),t.cancelBubble=!0,!1}},e}(n(9));t.exports=s},function(t,e){t.exports=null},function(t,e,n){var r=n(3),i=n(0),o=function(t){"use strict";function e(e,n,r){var o=t.apply(this,arguments)||this;if(n.view){n.id&&(this.$id=i.uid());var a=i.copy(n);if(delete a.config,delete a.templates,this.$content=this.$factory.createView(n.view,this,a,this),!this.$content)return!1}return o.$name="viewCell",o}return r(e,t),e.prototype.destructor=function(){this.clear(),t.prototype.destructor.call(this)},e.prototype.clear=function(){if(this.$initialized=!1,this.$content){var e=this.$content.unload||this.$content.destructor;e&&e.call(this.$content)}t.prototype.clear.call(this)},e.prototype.scrollTo=function(e,n){this.$content&&this.$content.scrollTo?this.$content.scrollTo(e,n):t.prototype.scrollTo.call(this,e,n)},e.prototype._setContentSize=function(t,e){var n=this._getBorderSizes();if("number"==typeof t){var r=t+n.horizontal;this.$config.width=r}if("number"==typeof e){var i=e+n.vertical;this.$config.height=i}},e.prototype.setSize=function(e,n){if(t.prototype.setSize.call(this,e,n),!this.$preResize&&this.$content&&!this.$initialized){this.$initialized=!0;var r=this.$view.childNodes[0],i=this.$view.childNodes[1];i||(i=r),this.$content.init(i)}},e.prototype.setContentSize=function(){!this.$preResize&&this.$content&&this.$initialized&&this.$content.setSize(this.$lastSize.contentX,this.$lastSize.contentY)},e.prototype.getContentSize=function(){var e=t.prototype.getContentSize.call(this);if(this.$content&&this.$initialized){var n=this.$content.getSize();e.width=void 0===n.contentX?n.width:n.contentX,e.height=void 0===n.contentY?n.height:n.contentY}var r=this._getBorderSizes();return e.width+=r.horizontal,e.height+=r.vertical,e},e}(n(9));t.exports=o},function(t,e,n){var r=n(3),i=n(31),o=n(9),a=function(t){"use strict";function e(e,n,r){for(var i=t.apply(this,arguments)||this,o=0;o<i.$cells.length;o++)i.$cells[o].$config.hidden=0!==o;return i.$cell=i.$cells[0],i.$name="viewLayout",i}return r(e,t),e.prototype.cell=function(e){var n=t.prototype.cell.call(this,e);return n.$view||this.$fill(null,this),n},e.prototype.moveView=function(t){var e=this.$view;this.$cell&&(this.$cell.$config.hidden=!0,e.removeChild(this.$cell.$view)),this.$cell=t,e.appendChild(t.$view)},e.prototype.setSize=function(t,e){o.prototype.setSize.call(this,t,e)},e.prototype.setContentSize=function(){var t=this.$lastSize;this.$cell.setSize(t.contentX,t.contentY)},e.prototype.getSize=function(){var e=t.prototype.getSize.call(this);if(this.$cell){var n=this.$cell.getSize();if(this.$config.byMaxSize)for(var r=0;r<this.$cells.length;r++){var i=this.$cells[r].getSize();for(var o in n)n[o]=Math.max(n[o],i[o])}for(var a in e)e[a]=e[a]||n[a];e.gravity=Math.max(e.gravity,n.gravity)}return e},e}(i);t.exports=a},function(t,e){t.exports=function(t,e){return!(!e||e.left>t.x_end||e.left+e.width<t.x||e.top>t.y_end||e.top+e.height<t.y)}},function(t,e,n){var r=n(109),i=n(13),o=n(23),a=n(5);t.exports=function(t){function e(e){var n=null;return"string"==typeof e.view?n=t.$ui.getView(e.view):e.view&&(n=e.view),n}function n(n,l,c){if(u[n])return u[n];l.renderer||t.assert(!1,"Invalid renderer call");var f=null,d=null,h=null,p=null,g=null;"function"==typeof l.renderer?(f=l.renderer,h=o):(f=l.renderer.render,d=l.renderer.update,p=l.renderer.onrender,l.renderer.isInViewPort?g=l.renderer.isInViewPort:h=l.renderer.getRectangle,h||null===h||(h=o));var m=l.filter;return c&&c.setAttribute(t.config.layer_attribute,!0),u[n]={render_item:function(n,o,a,s,u){if(o=o||c,!m||m(n)){var d=s||e(l),v=u||(d?d.$getConfig():null),y=a;!y&&v&&v.smart_rendering&&(y=d.getViewPort());var b=null;!i(t)&&(h||g)&&y?(g?g(n,y,d,v,t):r(y,h(n,d,v,t)))&&(b=f.call(t,n,d,v,y)):b=f.call(t,n,d,v,y),this.append(n,b,o);var _=11==o.nodeType;p&&!_&&b&&p.call(t,n,b,d)}else this.remove_item(n.id)},clear:function(t){this.rendered=s[n]={},l.append||this.clear_container(t)},clear_container:function(t){(t=t||c)&&(t.innerHTML="")},get_visible_range:function(n){var r,i,o=e(l),s=o?o.$getConfig():null;return s&&s.smart_rendering&&(r=o.getViewPort()),o&&r&&("function"==typeof l.renderer?i=a(t,o,s,n,r):l.renderer&&l.renderer.getVisibleRange&&(i=l.renderer.getVisibleRange(t,o,s,n,r))),i||(i={start:0,end:n.count()}),i},render_items:function(n,r){r=r||c;var i=document.createDocumentFragment();this.clear(r);var o=null,a=e(l),s=a?a.$getConfig():null;s&&s.smart_rendering&&(o=a.getViewPort());for(var u=0,f=n.length;u<f;u++)this.render_item(n[u],i,o,a,s);r.appendChild(i,r);var d={};n.forEach(function(t){d[t.id]=t});var h={};if(p){var g={};for(var u in this.rendered)h[u]||(g[u]=this.rendered[u],p.call(t,d[u],this.rendered[u],a))}},update_items:function(n,o){var a=e(l),s=a?a.$getConfig():null;if(a&&a.$getConfig().smart_rendering&&!i(t)&&this.rendered&&(h||g)){o=o||c;var u=document.createDocumentFragment(),f=null;a&&(f=a.getViewPort());var m={};n.forEach(function(t){m[t.id]=t});var v={},y={};for(var b in this.rendered)y[b]=!0,v[b]=!0;for(var _={},w=(b=0,n.length);b<w;b++){var x=n[b],k=this.rendered[x.id];y[x.id]=!1,k&&k.parentNode?(g?g(x,f,a,s,t):r(f,h(x,a,s,t)))?(d&&d.call(t,x,k,a,s,f),this.restore(x,u)):y[x.id]=!0:(_[n[b].id]=!0,this.render_item(n[b],u,f,a,s))}for(var b in y)y[b]&&this.hide(b);if(u.childNodes.length&&o.appendChild(u,o),p){var S={};for(var b in this.rendered)v[b]&&!_[b]||(S[b]=this.rendered[b],p.call(t,m[b],this.rendered[b],a))}}},append:function(t,e,n){this.rendered&&(e?(this.rendered[t.id]&&this.rendered[t.id].parentNode?this.replace_item(t.id,e):n.appendChild(e),this.rendered[t.id]=e):this.rendered[t.id]&&this.remove_item(t.id))},replace_item:function(t,e){var n=this.rendered[t];n&&n.parentNode&&n.parentNode.replaceChild(e,n),this.rendered[t]=e},remove_item:function(t){this.hide(t),delete this.rendered[t]},hide:function(t){var e=this.rendered[t];e&&e.parentNode&&e.parentNode.removeChild(e)},restore:function(t,e){var n=this.rendered[t.id];n?n.parentNode||this.append(t,n,e||c):this.render_item(t,e||c)},change_id:function(t,e){this.rendered[e]=this.rendered[t],delete this.rendered[t]},rendered:s[n],node:c,destructor:function(){this.clear(),delete u[n],delete s[n]}},u[n]}var s={},u={};return{getRenderer:n,clearRenderers:function(){for(var t in u)n(t).destructor()}}}},function(t,e,n){function r(t){return t instanceof Array||(t=Array.prototype.slice.call(arguments,0)),function(e){for(var n=!0,r=0,i=t.length;r<i;r++){var o=t[r];o&&(n=n&&!1!==o(e.id,e))}return n}}var i=n(110),o=n(0),a=n(1),s=n(13);t.exports=function(t){var e=i(t);return{createGroup:function(n,i,u,l){var c={tempCollection:[],renderers:{},container:n,filters:[],getLayers:function(){this._add();var t=[];for(var e in this.renderers)t.push(this.renderers[e]);return t},getLayer:function(t){return this.renderers[t]},_add:function(n){n&&(n.id=n.id||o.uid(),this.tempCollection.push(n));for(var r=this.container(),s=this.tempCollection,u=0;u<s.length;u++)if(n=s[u],this.container()||n&&n.container&&a.isChildOf(n.container,document.body)){var c=n.container,f=n.id,d=n.topmost;if(!c.parentNode)if(d)r.appendChild(c);else{var h=i?i():r.firstChild;h&&h.parentNode==r?r.insertBefore(c,h):r.appendChild(c)}this.renderers[f]=e.getRenderer(f,n,c),l&&l(n,t),this.tempCollection.splice(u,1),u--}},addLayer:function(e){if(e){"function"==typeof e&&(e={renderer:e}),void 0===e.filter?e.filter=r(u||[]):e.filter instanceof Array&&(e.filter.push(u),e.filter=r(e.filter)),e.container||(e.container=document.createElement("div"));var n=this;e.requestUpdate=function(){t.config.smart_rendering&&!s(t)&&n.renderers[e.id]&&n.onUpdateRequest(n.renderers[e.id])}}return this._add(e),e?e.id:void 0},onUpdateRequest:function(t){},eachLayer:function(t){for(var e in this.renderers)t(this.renderers[e])},removeLayer:function(t){this.renderers[t]&&(this.renderers[t].destructor(),delete this.renderers[t])},clear:function(){for(var t in this.renderers)this.renderers[t].destructor();this.renderers={}}};return t.attachEvent("onDestroy",function(){c.clear(),c=null}),c}}}},function(t,e,n){function r(t,e){if(t.view){var n=t.view;"string"==typeof n&&(n=e.$ui.getView(n)),n&&n.attachEvent&&n.attachEvent("onScroll",function(){e.$services.getService("state").getState("batchUpdate").batch_update||n.$config.$skipSmartRenderOnScroll||t.requestUpdate&&t.requestUpdate()})}}var i=n(111),o=n(32);t.exports=function(t){var e=i(t);return{getDataRender:function(e){return t.$services.getService("layer:"+e)||null},createDataRender:function(n){var i=n.name,o=n.defaultContainer,a=n.defaultContainerSibling,s=e.createGroup(o,a,function(t,e){if(!s.filters)return!0;for(var n=0;n<s.filters.length;n++)if(!1===s.filters[n](t,e))return!1},r);return t.$services.setService("layer:"+i,function(){return s}),t.attachEvent("onGanttReady",function(){s.addLayer()}),s},init:function(){var e=this.createDataRender({name:"task",defaultContainer:function(){return t.$task_data?t.$task_data:t.$ui.getView("timeline")?t.$ui.getView("timeline").$task_data:void 0},defaultContainerSibling:function(){return t.$task_links?t.$task_links:t.$ui.getView("timeline")?t.$ui.getView("timeline").$task_links:void 0},filter:function(t){}},t),n=this.createDataRender({name:"link",defaultContainer:function(){return t.$task_data?t.$task_data:t.$ui.getView("timeline")?t.$ui.getView("timeline").$task_data:void 0}},t);return{addTaskLayer:function(t){return"function"==typeof t&&(t={renderer:t}),t.view="timeline",e.addLayer(t)},_getTaskLayers:function(){return e.getLayers()},removeTaskLayer:function(t){e.removeLayer(t)},_clearTaskLayers:function(){e.clear()},addLinkLayer:function(t){return"function"==typeof t&&(t={renderer:{render:t}}),t.view="timeline",t&&t.renderer&&(t.renderer.getRectangle||t.renderer.isInViewPort||(t.renderer.isInViewPort=o)),n.addLayer(t)},_getLinkLayers:function(){return n.getLayers()},removeLinkLayer:function(t){n.removeLayer(t)},_clearLinkLayers:function(){n.clear()}}}}}},function(t,e,n){var r=function(t){return function(e){function n(t,e,n,r){c[t][e]||(c[t][e]=[]),c[t][e].push({handler:n,root:r})}function r(t){t=t||window.event;var n=e.locate(t),r=o(t,c.click),i=!0;if(null!==n?i=!e.checkEvent("onTaskClick")||e.callEvent("onTaskClick",[n,t]):e.callEvent("onEmptyClick",[t]),i){if(!a(r,t,n))return;switch(t.target.nodeName){case"SELECT":case"INPUT":return}n&&e.getTask(n)&&!e._multiselect&&e.config.select_task&&e.selectTask(n)}}function i(t){var n=(t=t||window.event).target||t.srcElement,r=e.locate(n),i=e.locate(n,e.config.link_attribute),o=!e.checkEvent("onContextMenu")||e.callEvent("onContextMenu",[r,i,t]);return o||(t.preventDefault?t.preventDefault():t.returnValue=!1),o}function o(e,n){for(var r=e.target||e.srcElement,i=[];r;){var o=t.getClassName(r);if(o){o=o.split(" ");for(var a=0;a<o.length;a++)if(o[a]&&n[o[a]])for(var s=n[o[a]],u=0;u<s.length;u++)s[u].root&&!t.isChildOf(r,s[u].root)||i.push(s[u].handler)}r=r.parentNode}return i}function a(t,n,r){for(var i=!0,o=0;o<t.length;o++){var a=t[o].call(e,n,r,n.target||n.srcElement);i=i&&!(void 0!==a&&!0!==a)}return i}function s(t){t=t||window.event;var n=e.locate(t),r=o(t,c.doubleclick),i=!e.checkEvent("onTaskDblClick")||null===n||e.callEvent("onTaskDblClick",[n,t]);if(i){if(!a(r,t,n))return;null!==n&&e.getTask(n)&&i&&e.config.details_on_dblclick&&!e.isReadonly(n)&&e.showLightbox(n)}}function u(t){if(e.checkEvent("onMouseMove")){var n=e.locate(t);e._last_move_event=t,e.callEvent("onMouseMove",[n,t])}}function l(t){f.detachAll(),t&&(f.attach(t,"click",r),f.attach(t,"dblclick",s),f.attach(t,"mousemove",u),f.attach(t,"contextmenu",i))}var c={click:{},doubleclick:{},contextMenu:{}},f=e._createDomEventScope();return{reset:l,global:function(t,e,r){n(t,e,r,null)},delegate:n,detach:function(t,e,n,r){if(c[t]&&c[t][e]){for(var i=c[t],o=i[e],a=0;a<o.length;a++)o[a].root==r&&(o.splice(a,1),a--);o.length||delete i[e]}},callHandler:function(t,e,n,r){var i=c[t][e];if(i)for(var o=0;o<i.length;o++)(n||i[o].root)&&i[o].root!==n||i[o].handler.apply(this,r)},onDoubleClick:s,onMouseMove:u,onContextMenu:i,onClick:r,destructor:function(){l(),c=null,f=null}}}}(n(1));t.exports={init:r}},function(t,e,n){function r(t,e){var n=this.$config[t];return n?(n.$extendedConfig||(n.$extendedConfig=!0,Object.setPrototypeOf(n,e)),n):e}var i=n(0);t.exports=function(t,e){i.mixin(t,function(t){var e,n;return{$getConfig:function(){return e||(e=t?t.$getConfig():this.$gantt.config),this.$config.config?r.call(this,"config",e):e},$getTemplates:function(){return n||(n=t?t.$getTemplates():this.$gantt.templates),this.$config.templates?r.call(this,"templates",n):n}}}(e))}},function(t,e,n){function r(t){"@babel/helpers - typeof";return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var i=n(0),o=n(114);t.exports={createFactory:function(t){function e(e,s,u,l){var c=n[e];if(!c||!c.create)return!1;"resizer"!=e||u.mode||(l.$config.cols?u.mode="x":u.mode="y"),"viewcell"!=e||"scrollbar"!=u.view||u.scroll||(l.$config.cols?u.scroll="y":u.scroll="x"),(u=i.copy(u)).id||a[u.view]||(u.id=u.view),u.id&&!u.css&&(u.css=u.id+"_cell");var f=new c.create(s,u,this,t);return c.configure&&c.configure(f),o(f,l),f.$id||(f.$id=u.id||t.uid()),f.$parent||"object"!=r(s)||(f.$parent=s),f.$config||(f.$config=u),a[f.$id]&&(f.$id=t.uid()),a[f.$id]=f,f}var n={},a={};return{initUI:function(t,n){var r="cell";return t.view?r="viewcell":t.resizer?r="resizer":t.rows||t.cols?r="layout":t.views&&(r="multiview"),e.call(this,r,null,t,n)},reset:function(){a={}},registerView:function(t,e,r){n[t]={create:e,configure:r}},createView:e,getView:function(t){return a[t]}}}}},function(t,e,n){var r=n(115),i=n(113),o=n(112),a=n(9),s=n(31),u=n(108),l=n(107),c=n(106),f=n(105),d=n(22),h=n(25),p=n(25),g=n(22),m=n(22),v=n(103),y=n(92),b=n(91),_=n(89),w=n(88),x=n(87),k=n(86),S=n(85),C=n(84),E=n(83),T=n(82),A=n(76),O=n(73);t.exports={init:function(t){function e(e,n){var r=n(t);r.onCreated&&r.onCreated(e),e.attachEvent("onReady",function(){r.onInitialized&&r.onInitialized(e)}),e.attachEvent("onDestroy",function(){r.onDestroyed&&r.onDestroyed(e)})}var n=r.createFactory(t);n.registerView("cell",a),n.registerView("resizer",c),n.registerView("scrollbar",f),n.registerView("layout",s,function(t){"main"===(t.$config?t.$config.id:null)&&e(t,O)}),n.registerView("viewcell",l),n.registerView("multiview",u),n.registerView("timeline",d,function(t){"timeline"!==(t.$config?t.$config.id:null)&&"task"!=t.$config.bind||e(t,A)}),n.registerView("grid",h,function(t){"grid"!==(t.$config?t.$config.id:null)&&"task"!=t.$config.bind||e(t,T)}),n.registerView("resourceGrid",p),n.registerView("resourceTimeline",g),n.registerView("resourceHistogram",m);var P=o(t),N=v(t);return t.ext.inlineEditors=N,t.ext._inlineEditors=N,N.init(t),{factory:n,mouseEvents:i.init(t),layersApi:P.init(),render:{gridLine:function(){return k(t)},taskBg:function(){return w(t)},taskBar:function(){return y(t)},taskRollupBar:function(){return _(t)},taskSplitBar:function(){return b(t)},link:function(){return x(t)},resourceRow:function(){return S(t)},resourceHistogram:function(){return C(t)},gridTaskRowResizer:function(){return E(t)}},layersService:{getDataRender:function(e){return P.getDataRender(e,t)},createDataRender:function(e){return P.createDataRender(e,t)}}}}}},function(t,e,n){function r(t){"@babel/helpers - typeof";return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var i=n(0),o=n(1);t.exports=function(t){function e(t,e){var n=t.callback;b.hide(t.box),v=t.box=null,n&&n(e)}function n(t){if(v){var n=t.which||t.keyCode,r=!1;if(_.keyboard){if(13==n||32==n){var i=t.target||t.srcElement;o.getClassName(i).indexOf("gantt_popup_button")>-1&&i.click?i.click():(e(v,!0),r=!0)}27==n&&(e(v,!1),r=!0)}return r?(t.preventDefault&&t.preventDefault(),!(t.cancelBubble=!0)):void 0}}function a(t){a.cover||(a.cover=document.createElement("div"),a.cover.onkeydown=n,a.cover.className="dhx_modal_cover",document.body.appendChild(a.cover)),a.cover.style.display=t?"inline-block":"none"}function s(e,n,r){var i=t._waiAria.messageButtonAttrString(e),o=n.toLowerCase().replace(/ /g,"_");return"<div "+i+" class='gantt_popup_button dhtmlx_popup_button gantt_"+o+"_button dhtmlx_"+o+"_button' data-result='"+r+"' result='"+r+"' ><div>"+e+"</div></div>"}function u(e){_.area||(_.area=document.createElement("div"),_.area.className="gantt_message_area dhtmlx_message_area",_.area.style[_.position]="5px",document.body.appendChild(_.area)),_.hide(e.id);var n=document.createElement("div");return n.innerHTML="<div>"+e.text+"</div>",n.className="gantt-info dhtmlx-info gantt-"+e.type+" dhtmlx-"+e.type,n.onclick=function(){_.hide(e.id),e=null},t._waiAria.messageInfoAttr(n),"bottom"==_.position&&_.area.firstChild?_.area.insertBefore(n,_.area.firstChild):_.area.appendChild(n),e.expire>0&&(_.timers[e.id]=window.setTimeout(function(){_&&_.hide(e.id)},e.expire)),_.pull[e.id]=n,n=null,e.id}function l(){for(var t=[].slice.apply(arguments,[0]),e=0;e<t.length;e++)if(t[e])return t[e]}function c(u,c,f){var d=u.tagName?u:function(n,a,u){var c=document.createElement("div"),f=i.uid();t._waiAria.messageModalAttr(c,f),c.className=" gantt_modal_box dhtmlx_modal_box gantt-"+n.type+" dhtmlx-"+n.type,c.setAttribute(m,1);var d="";if(n.width&&(c.style.width=n.width),n.height&&(c.style.height=n.height),n.title&&(d+='<div class="gantt_popup_title dhtmlx_popup_title">'+n.title+"</div>"),d+='<div class="gantt_popup_text dhtmlx_popup_text" id="'+f+'"><span>'+(n.content?"":n.text)+'</span></div><div class="gantt_popup_controls dhtmlx_popup_controls">',a&&(d+=s(l(n.ok,t.locale.labels.message_ok,"OK"),"ok",!0)),u&&(d+=s(l(n.cancel,t.locale.labels.message_cancel,"Cancel"),"cancel",!1)),n.buttons)for(var h=0;h<n.buttons.length;h++){var p=n.buttons[h];"object"==r(p)?d+=s(p.label,p.css||"gantt_"+p.label.toLowerCase()+"_button dhtmlx_"+p.label.toLowerCase()+"_button",p.value||h):d+=s(p,p,h)}if(d+="</div>",c.innerHTML=d,n.content){var g=n.content;"string"==typeof g&&(g=document.getElementById(g)),"none"==g.style.display&&(g.style.display=""),c.childNodes[n.title?1:0].appendChild(g)}return c.onclick=function(t){var r=t.target||t.srcElement;if(r.className||(r=r.parentNode),o.closest(r,".gantt_popup_button")){var i=r.getAttribute("data-result");e(n,i="true"==i||"false"!=i&&i)}},n.box=c,(a||u)&&(v=n),c}(u,c,f);u.hidden||a(!0),document.body.appendChild(d);var h=Math.abs(Math.floor(((window.innerWidth||document.documentElement.offsetWidth)-d.offsetWidth)/2)),p=Math.abs(Math.floor(((window.innerHeight||document.documentElement.offsetHeight)-d.offsetHeight)/2));return"top"==u.position?d.style.top="-3px":d.style.top=p+"px",d.style.left=h+"px",d.onkeydown=n,b.focus(d),u.hidden&&b.hide(d),t.callEvent("onMessagePopup",[d]),d}function f(t){return c(t,!0,!1)}function d(t){return c(t,!0,!0)}function h(t){return c(t)}function p(t,e,n){return"object"!=r(t)&&("function"==typeof e&&(n=e,e=""),t={text:t,type:e,callback:n}),t}function g(t,e,n,o){return"object"!=r(t)&&(t={text:t,type:e,expire:n,id:o}),t.id=t.id||i.uid(),t.expire=t.expire||_.expire,t}var m="data-dhxbox",v=null,y=o.getRootNode(t.$root)||document;t.event(y,"keydown",n,!0);var b=function(){var t=p.apply(this,arguments);return t.type=t.type||"alert",h(t)};b.hide=function(e){for(;e&&e.getAttribute&&!e.getAttribute(m);)e=e.parentNode;e&&(e.parentNode.removeChild(e),a(!1),t.callEvent("onAfterMessagePopup",[e]))},b.focus=function(t){setTimeout(function(){var e=o.getFocusableNodes(t);e.length&&e[0].focus&&e[0].focus()},1)};var _=function(t,e,n,r){switch((t=g.apply(this,arguments)).type=t.type||"info",t.type.split("-")[0]){case"alert":return f(t);case"confirm":return d(t);case"modalbox":return h(t);default:return u(t)}};_.seed=(new Date).valueOf(),_.uid=i.uid,_.expire=4e3,_.keyboard=!0,_.position="top",_.pull={},_.timers={},_.hideAll=function(){for(var t in _.pull)_.hide(t)},_.hide=function(t){var e=_.pull[t];e&&e.parentNode&&(window.setTimeout(function(){e.parentNode.removeChild(e),e=null},2e3),e.className+=" hidden",_.timers[t]&&window.clearTimeout(_.timers[t]),delete _.pull[t])};var w=[];return t.attachEvent("onMessagePopup",function(t){w.push(t)}),t.attachEvent("onAfterMessagePopup",function(t){for(var e=0;e<w.length;e++)w[e]===t&&(w.splice(e,1),e--)}),t.attachEvent("onDestroy",function(){a.cover&&a.cover.parentNode&&a.cover.parentNode.removeChild(a.cover);for(var t=0;t<w.length;t++)w[t].parentNode&&w[t].parentNode.removeChild(w[t]);w=null,_.area&&_.area.parentNode&&_.area.parentNode.removeChild(_.area),_=null}),{alert:function(){var t=p.apply(this,arguments);return t.type=t.type||"confirm",f(t)},confirm:function(){var t=p.apply(this,arguments);return t.type=t.type||"alert",d(t)},message:_,modalbox:b}}},function(t,e,n){t.exports=function(t){var e=n(0),r=n(8),i=n(10);if(!r.isNode){var o=n(1),a=n(2);t.utils={arrayFind:a.arrayFind,dom:o};var s=n(44)();t.event=s.attach,t.eventRemove=s.detach,t._eventRemoveAll=s.detachAll,t._createDomEventScope=s.extend,e.mixin(t,n(117)(t));var u=n(116).init(t);t.$ui=u.factory,t.$ui.layers=u.render,t.$mouseEvents=u.mouseEvents,t.$services.setService("mouseEvents",function(){return t.$mouseEvents}),t.mixin(t,u.layersApi),n(72)(t),t.$services.setService("layers",function(){return u.layersService});var l=n(71);t.mixin(t,l()),n(70)(t),n(69)(t),n(68)(t),n(67)(t),n(66)(t),n(65)(t),n(64)(t),n(63)(t),n(62)(t),n(57)(t),n(56)(t),n(46)(t),n(45)(t),t.locate=function(t){var e=o.getTargetNode(t);if(o.closest(e,".gantt_task_row"))return null;var n=arguments[1]||this.config.task_attribute,r=o.locateAttribute(e,n);return r?r.getAttribute(n):null},t._locate_css=function(t,e,n){return o.locateClassName(t,e,n)},t._locateHTML=function(t,e){return o.locateAttribute(t,e||this.config.task_attribute)}}t.attachEvent("onParse",function(){i(t)||t.attachEvent("onGanttRender",function(){if(t.config.initial_scroll){var e=t.getTaskByIndex(0),n=e?e.id:t.config.root_id;t.isTaskExists(n)&&t.$task&&t.utils.dom.isChildOf(t.$task,t.$container)&&t.showTask(n)}},{once:!0})}),t.attachEvent("onBeforeGanttReady",function(){this.config.scroll_size||(this.config.scroll_size=o.getScrollSize()||1),i(t)||(this._eventRemoveAll(),this.$mouseEvents.reset(),this.resetLightbox())}),t.attachEvent("onGanttReady",function(){!i(t)&&t.config.rtl&&t.$layout.getCellsByType("viewCell").forEach(function(e){var n=e.$config.scrollX;if(n){var r=t.$ui.getView(n);r&&r.scrollTo(r.$config.scrollSize,0)}})})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={date:{month_full:["Січень","Лютий","Березень","Квітень","Травень","Червень","Липень","Серпень","Вересень","Жовтень","Листопад","Грудень"],month_short:["Січ","Лют","Бер","Кві","Тра","Чер","Лип","Сер","Вер","Жов","Лис","Гру"],day_full:["Неділя","Понеділок","Вівторок","Середа","Четвер","П'ятниця","Субота"],day_short:["Нед","Пон","Вів","Сер","Чет","Птн","Суб"]},labels:{new_task:"Нове завдання",icon_save:"Зберегти",icon_cancel:"Відміна",icon_details:"Деталі",icon_edit:"Редагувати",icon_delete:"Вилучити",confirm_closing:"",confirm_deleting:"Подія вилучиться назавжди. Ви впевнені?",section_description:"Опис",section_time:"Часовий проміжок",section_type:"Тип",column_wbs:"WBS",column_text:"Task name",column_start_date:"Start time",column_duration:"Duration",column_add:"",link:"Link",confirm_link_deleting:"will be deleted",link_start:" (start)",link_end:" (end)",type_task:"Task",type_project:"Project",type_milestone:"Milestone",minutes:"Minutes",hours:"Hours",days:"Days",weeks:"Week",months:"Months",years:"Years",message_ok:"OK",message_cancel:"Відміна",section_constraint:"Constraint",constraint_type:"Constraint type",constraint_date:"Constraint date",asap:"As Soon As Possible",alap:"As Late As Possible",snet:"Start No Earlier Than",snlt:"Start No Later Than",fnet:"Finish No Earlier Than",fnlt:"Finish No Later Than",mso:"Must Start On",mfo:"Must Finish On",resources_filter_placeholder:"type to filter",resources_filter_label:"hide empty"}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={date:{month_full:["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık"],month_short:["Oca","Şub","Mar","Nis","May","Haz","Tem","Ağu","Eyl","Eki","Kas","Ara"],day_full:["Pazar","Pazartesi","Salı","Çarşamba","Perşembe","Cuma","Cumartesi"],day_short:["Paz","Pzt","Sal","Çar","Per","Cum","Cmt"]},labels:{new_task:"Yeni görev",icon_save:"Kaydet",icon_cancel:"İptal",icon_details:"Detaylar",icon_edit:"Düzenle",icon_delete:"Sil",confirm_closing:"",confirm_deleting:"Görev silinecek, emin misiniz?",section_description:"Açıklama",section_time:"Zaman Aralığı",section_type:"Tip",column_wbs:"WBS",column_text:"Görev Adı",column_start_date:"Başlangıç",column_duration:"Süre",column_add:"",link:"Bağlantı",confirm_link_deleting:"silinecek",link_start:" (başlangıç)",link_end:" (bitiş)",type_task:"Görev",type_project:"Proje",type_milestone:"Kilometretaşı",minutes:"Dakika",hours:"Saat",days:"Gün",weeks:"Hafta",months:"Ay",years:"Yıl",message_ok:"OK",message_cancel:"Ýptal",section_constraint:"Constraint",constraint_type:"Constraint type",constraint_date:"Constraint date",asap:"As Soon As Possible",alap:"As Late As Possible",snet:"Start No Earlier Than",snlt:"Start No Later Than",fnet:"Finish No Earlier Than",fnlt:"Finish No Later Than",mso:"Must Start On",mfo:"Must Finish On",resources_filter_placeholder:"type to filter",resources_filter_label:"hide empty"}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={date:{month_full:["Januari","Februari","Mars","April","Maj","Juni","Juli","Augusti","September","Oktober","November","December"],month_short:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Aug","Sep","Okt","Nov","Dec"],day_full:["Söndag","Måndag","Tisdag","Onsdag","Torsdag","Fredag","Lördag"],day_short:["Sön","Mån","Tis","Ons","Tor","Fre","Lör"]},labels:{new_task:"Ny uppgift",icon_save:"Spara",icon_cancel:"Avbryt",icon_details:"Detajer",icon_edit:"Ändra",icon_delete:"Ta bort",confirm_closing:"",confirm_deleting:"Är du säker på att du vill ta bort händelsen permanent?",section_description:"Beskrivning",section_time:"Tid",section_type:"Typ",column_wbs:"WBS",column_text:"Uppgiftsnamn",column_start_date:"Starttid",column_duration:"Varaktighet",column_add:"",link:"Länk",confirm_link_deleting:"kommer tas bort",link_start:" (start)",link_end:" (slut)",type_task:"Uppgift",type_project:"Projekt",type_milestone:"Milstolpe",minutes:"Minuter",hours:"Timmar",days:"Dagar",weeks:"Veckor",months:"Månader",years:"År",message_ok:"OK",message_cancel:"Avbryt",section_constraint:"Constraint",constraint_type:"Constraint type",constraint_date:"Constraint date",asap:"As Soon As Possible",alap:"As Late As Possible",snet:"Start No Earlier Than",snlt:"Start No Later Than",fnet:"Finish No Earlier Than",fnlt:"Finish No Later Than",mso:"Must Start On",mfo:"Must Finish On",resources_filter_placeholder:"type to filter",resources_filter_label:"hide empty"}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={date:{month_full:["Január","Február","Marec","Apríl","Máj","Jún","Júl","August","September","Október","November","December"],month_short:["Jan","Feb","Mar","Apr","Máj","Jún","Júl","Aug","Sept","Okt","Nov","Dec"],day_full:["Nedeľa","Pondelok","Utorok","Streda","Štvrtok","Piatok","Sobota"],day_short:["Ne","Po","Ut","St","Št","Pi","So"]},labels:{new_task:"Nová úloha",icon_save:"Uložiť",icon_cancel:"Späť",icon_details:"Detail",icon_edit:"Edituj",icon_delete:"Zmazať",confirm_closing:"Vaše zmeny nebudú uložené. Skutočne?",confirm_deleting:"Udalosť bude natrvalo vymazaná. Skutočne?",section_description:"Poznámky",section_time:"Doba platnosti",section_type:"Type",column_wbs:"WBS",column_text:"Task name",column_start_date:"Start time",column_duration:"Duration",column_add:"",link:"Link",confirm_link_deleting:"will be deleted",link_start:" (start)",link_end:" (end)",type_task:"Task",type_project:"Project",type_milestone:"Milestone",minutes:"Minutes",hours:"Hours",days:"Days",weeks:"Week",months:"Months",years:"Years",message_ok:"OK",message_cancel:"Späť",section_constraint:"Constraint",constraint_type:"Constraint type",constraint_date:"Constraint date",asap:"As Soon As Possible",alap:"As Late As Possible",snet:"Start No Earlier Than",snlt:"Start No Later Than",fnet:"Finish No Earlier Than",fnlt:"Finish No Later Than",mso:"Must Start On",mfo:"Must Finish On",resources_filter_placeholder:"type to filter",resources_filter_label:"hide empty"}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={date:{month_full:["Januar","Februar","Marec","April","Maj","Junij","Julij","Avgust","September","Oktober","November","December"],month_short:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Aug","Sep","Okt","Nov","Dec"],day_full:["Nedelja","Ponedeljek","Torek","Sreda","Četrtek","Petek","Sobota"],day_short:["Ned","Pon","Tor","Sre","Čet","Pet","Sob"]},labels:{new_task:"Nova naloga",icon_save:"Shrani",icon_cancel:"Prekliči",icon_details:"Podrobnosti",icon_edit:"Uredi",icon_delete:"Izbriši",confirm_closing:"",confirm_deleting:"Dogodek bo izbrisan. Želite nadaljevati?",section_description:"Opis",section_time:"Časovni okvir",section_type:"Type",column_wbs:"WBS",column_text:"Task name",column_start_date:"Start time",column_duration:"Duration",column_add:"",link:"Link",confirm_link_deleting:"will be deleted",link_start:" (start)",link_end:" (end)",type_task:"Task",type_project:"Project",type_milestone:"Milestone",minutes:"Minutes",hours:"Hours",days:"Days",weeks:"Week",months:"Months",years:"Years",message_ok:"OK",message_cancel:"Prekliči",section_constraint:"Constraint",constraint_type:"Constraint type",constraint_date:"Constraint date",asap:"As Soon As Possible",alap:"As Late As Possible",snet:"Start No Earlier Than",snlt:"Start No Later Than",fnet:"Finish No Earlier Than",fnlt:"Finish No Later Than",mso:"Must Start On",mfo:"Must Finish On",resources_filter_placeholder:"type to filter",resources_filter_label:"hide empty"}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={date:{month_full:["Январь","Февраль","Март","Апрель","Maй","Июнь","Июль","Август","Сентябрь","Oктябрь","Ноябрь","Декабрь"],month_short:["Янв","Фев","Maр","Aпр","Maй","Июн","Июл","Aвг","Сен","Окт","Ноя","Дек"],day_full:["Воскресенье","Понедельник","Вторник","Среда","Четверг","Пятница","Суббота"],day_short:["Вс","Пн","Вт","Ср","Чт","Пт","Сб"]},labels:{new_task:"Новое задание",icon_save:"Сохранить",icon_cancel:"Отменить",icon_details:"Детали",icon_edit:"Изменить",icon_delete:"Удалить",confirm_closing:"",confirm_deleting:"Событие будет удалено безвозвратно, продолжить?",section_description:"Описание",section_time:"Период времени",section_type:"Тип",column_wbs:"ИСР",column_text:"Задача",column_start_date:"Начало",column_duration:"Длительность",column_add:"",link:"Связь",confirm_link_deleting:"будет удалена",link_start:" (начало)",link_end:" (конец)",type_task:"Task",type_project:"Project",type_milestone:"Milestone",minutes:"Минута",hours:"Час",days:"День",weeks:"Неделя",months:"Месяц",years:"Год",message_ok:"OK",message_cancel:"Отменить",section_constraint:"Constraint",constraint_type:"Constraint type",constraint_date:"Constraint date",asap:"As Soon As Possible",alap:"As Late As Possible",snet:"Start No Earlier Than",snlt:"Start No Later Than",fnet:"Finish No Earlier Than",fnlt:"Finish No Later Than",mso:"Must Start On",mfo:"Must Finish On",resources_filter_placeholder:"начните вводить слово для фильтрации",resources_filter_label:"спрятать не установленные"}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={date:{month_full:["Ianuarie","Februarie","Martie","Aprilie","Mai","Iunie","Iulie","August","Septembrie","Octombrie","November","December"],month_short:["Ian","Feb","Mar","Apr","Mai","Iun","Iul","Aug","Sep","Oct","Nov","Dec"],day_full:["Duminica","Luni","Marti","Miercuri","Joi","Vineri","Sambata"],day_short:["Du","Lu","Ma","Mi","Jo","Vi","Sa"]},labels:{new_task:"Sarcina noua",icon_save:"Salveaza",icon_cancel:"Anuleaza",icon_details:"Detalii",icon_edit:"Editeaza",icon_delete:"Sterge",confirm_closing:"Schimbarile nu vor fi salvate, esti sigur?",confirm_deleting:"Evenimentul va fi sters permanent, esti sigur?",section_description:"Descriere",section_time:"Interval",section_type:"Type",column_wbs:"WBS",column_text:"Task name",column_start_date:"Start time",column_duration:"Duration",column_add:"",link:"Link",confirm_link_deleting:"will be deleted",link_start:" (start)",link_end:" (end)",type_task:"Task",type_project:"Project",type_milestone:"Milestone",minutes:"Minutes",hours:"Hours",days:"Days",weeks:"Week",months:"Months",years:"Years",message_ok:"OK",message_cancel:"Anuleaza",section_constraint:"Constraint",constraint_type:"Constraint type",constraint_date:"Constraint date",asap:"As Soon As Possible",alap:"As Late As Possible",snet:"Start No Earlier Than",snlt:"Start No Later Than",fnet:"Finish No Earlier Than",fnlt:"Finish No Later Than",mso:"Must Start On",mfo:"Must Finish On",resources_filter_placeholder:"type to filter",resources_filter_label:"hide empty"}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={date:{month_full:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],month_short:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"],day_full:["Domingo","Segunda","Terça","Quarta","Quinta","Sexta","Sábado"],day_short:["Dom","Seg","Ter","Qua","Qui","Sex","Sab"]},labels:{new_task:"Nova tarefa",icon_save:"Salvar",icon_cancel:"Cancelar",icon_details:"Detalhes",icon_edit:"Editar",icon_delete:"Excluir",confirm_closing:"",confirm_deleting:"As tarefas serão excluidas permanentemente, confirme?",section_description:"Descrição",section_time:"Período",section_type:"Tipo",column_wbs:"EAP",column_text:"Nome tarefa",column_start_date:"Data início",column_duration:"Duração",column_add:"",link:"Link",confirm_link_deleting:"Será excluído!",link_start:" (início)",link_end:" (fim)",type_task:"Task",type_project:"Projeto",type_milestone:"Marco",minutes:"Minutos",hours:"Horas",days:"Dias",weeks:"Semanas",months:"Meses",years:"Anos",message_ok:"OK",message_cancel:"Cancelar",section_constraint:"Restrição",constraint_type:"Tipo Restrição",constraint_date:"Data restrição",asap:"Mais breve possível",alap:"Mais tarde possível",snet:"Não começar antes de",snlt:"Não começar depois de",fnet:"Não terminar antes de",fnlt:"Não terminar depois de",mso:"Precisa começar em",mfo:"Precisa terminar em",resources_filter_placeholder:"Tipo de filtros",resources_filter_label:"Ocultar vazios"}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={date:{month_full:["Styczeń","Luty","Marzec","Kwiecień","Maj","Czerwiec","Lipiec","Sierpień","Wrzesień","Październik","Listopad","Grudzień"],month_short:["Sty","Lut","Mar","Kwi","Maj","Cze","Lip","Sie","Wrz","Paź","Lis","Gru"],day_full:["Niedziela","Poniedziałek","Wtorek","Środa","Czwartek","Piątek","Sobota"],day_short:["Nie","Pon","Wto","Śro","Czw","Pią","Sob"]},labels:{new_task:"Nowe zadanie",icon_save:"Zapisz",icon_cancel:"Anuluj",icon_details:"Szczegóły",icon_edit:"Edytuj",icon_delete:"Usuń",confirm_closing:"",confirm_deleting:"Zdarzenie zostanie usunięte na zawsze, kontynuować?",section_description:"Opis",section_time:"Okres czasu",section_type:"Typ",column_wbs:"WBS",column_text:"Nazwa zadania",column_start_date:"Początek",column_duration:"Czas trwania",column_add:"",link:"Link",confirm_link_deleting:"zostanie usunięty",link_start:" (początek)",link_end:" (koniec)",type_task:"Zadanie",type_project:"Projekt",type_milestone:"Milestone",minutes:"Minuty",hours:"Godziny",days:"Dni",weeks:"Tydzień",months:"Miesiące",years:"Lata",message_ok:"OK",message_cancel:"Anuluj",section_constraint:"Constraint",constraint_type:"Constraint type",constraint_date:"Constraint date",asap:"As Soon As Possible",alap:"As Late As Possible",snet:"Start No Earlier Than",snlt:"Start No Later Than",fnet:"Finish No Earlier Than",fnlt:"Finish No Later Than",mso:"Must Start On",mfo:"Must Finish On",resources_filter_placeholder:"type to filter",resources_filter_label:"hide empty"}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={date:{month_full:["Januar","Februar","Mars","April","Mai","Juni","Juli","August","September","Oktober","November","Desember"],month_short:["Jan","Feb","Mar","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Des"],day_full:["Søndag","Mandag","Tirsdag","Onsdag","Torsdag","Fredag","Lørdag"],day_short:["Søn","Man","Tir","Ons","Tor","Fre","Lør"]},labels:{new_task:"Ny oppgave",icon_save:"Lagre",icon_cancel:"Avbryt",icon_details:"Detaljer",icon_edit:"Endre",icon_delete:"Slett",confirm_closing:"Endringer blir ikke lagret, er du sikker?",confirm_deleting:"Oppføringen vil bli slettet, er du sikker?",section_description:"Beskrivelse",section_time:"Tidsperiode",section_type:"Type",column_wbs:"WBS",column_text:"Task name",column_start_date:"Start time",column_duration:"Duration",column_add:"",link:"Link",confirm_link_deleting:"will be deleted",link_start:" (start)",link_end:" (end)",type_task:"Task",type_project:"Project",type_milestone:"Milestone",minutes:"Minutes",hours:"Hours",days:"Days",weeks:"Week",months:"Months",years:"Years",message_ok:"OK",message_cancel:"Avbryt",section_constraint:"Constraint",constraint_type:"Constraint type",constraint_date:"Constraint date",asap:"As Soon As Possible",alap:"As Late As Possible",snet:"Start No Earlier Than",snlt:"Start No Later Than",fnet:"Finish No Earlier Than",fnlt:"Finish No Later Than",mso:"Must Start On",mfo:"Must Finish On",resources_filter_placeholder:"type to filter",resources_filter_label:"hide empty"}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={date:{month_full:["Januari","Februari","Maart","April","Mei","Juni","Juli","Augustus","September","Oktober","November","December"],month_short:["Jan","Feb","mrt","Apr","Mei","Jun","Jul","Aug","Sep","Okt","Nov","Dec"],day_full:["Zondag","Maandag","Dinsdag","Woensdag","Donderdag","Vrijdag","Zaterdag"],day_short:["Zo","Ma","Di","Wo","Do","Vr","Za"]},labels:{new_task:"Nieuwe taak",icon_save:"Opslaan",icon_cancel:"Annuleren",icon_details:"Details",icon_edit:"Bewerken",icon_delete:"Verwijderen",confirm_closing:"",confirm_deleting:"Item zal permanent worden verwijderd, doorgaan?",section_description:"Beschrijving",section_time:"Tijd periode",section_type:"Type",column_wbs:"WBS",column_text:"Taak omschrijving",column_start_date:"Startdatum",column_duration:"Duur",column_add:"",link:"Koppeling",confirm_link_deleting:"zal worden verwijderd",link_start:" (start)",link_end:" (eind)",type_task:"Task",type_project:"Project",type_milestone:"Milestone",minutes:"minuten",hours:"uren",days:"dagen",weeks:"weken",months:"maanden",years:"jaren",message_ok:"OK",message_cancel:"Annuleren",section_constraint:"Constraint",constraint_type:"Constraint type",constraint_date:"Constraint date",asap:"As Soon As Possible",alap:"As Late As Possible",snet:"Start No Earlier Than",snlt:"Start No Later Than",fnet:"Finish No Earlier Than",fnlt:"Finish No Later Than",mso:"Must Start On",mfo:"Must Finish On",resources_filter_placeholder:"type to filter",resources_filter_label:"hide empty"}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={date:{month_full:["Januar","Februar","Mars","April","Mai","Juni","Juli","August","September","Oktober","November","Desember"],month_short:["Jan","Feb","Mar","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Des"],day_full:["Søndag","Mandag","Tirsdag","Onsdag","Torsdag","Fredag","Lørdag"],day_short:["Søn","Mon","Tir","Ons","Tor","Fre","Lør"]},labels:{new_task:"Ny oppgave",icon_save:"Lagre",icon_cancel:"Avbryt",icon_details:"Detaljer",icon_edit:"Rediger",icon_delete:"Slett",confirm_closing:"",confirm_deleting:"Hendelsen vil bli slettet permanent. Er du sikker?",section_description:"Beskrivelse",section_time:"Tidsperiode",section_type:"Type",column_wbs:"WBS",column_text:"Task name",column_start_date:"Start time",column_duration:"Duration",column_add:"",link:"Link",confirm_link_deleting:"will be deleted",link_start:" (start)",link_end:" (end)",type_task:"Task",type_project:"Project",type_milestone:"Milestone",minutes:"Minutes",hours:"Hours",days:"Days",weeks:"Week",months:"Months",years:"Years",message_ok:"OK",message_cancel:"Avbryt",section_constraint:"Constraint",constraint_type:"Constraint type",constraint_date:"Constraint date",asap:"As Soon As Possible",alap:"As Late As Possible",snet:"Start No Earlier Than",snlt:"Start No Later Than",fnet:"Finish No Earlier Than",fnlt:"Finish No Later Than",mso:"Must Start On",mfo:"Must Finish On",resources_filter_placeholder:"type to filter",resources_filter_label:"hide empty"}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){return function(t){var e=this;for(var n in this.addLocale=function(t,n){e._locales[t]=n},this.getLocale=function(t){return e._locales[t]},this._locales={},t)this._locales[n]=t[n]}}();e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={date:{month_full:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],month_short:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],day_full:["일요일","월요일","화요일","수요일","목요일","금요일","토요일"],day_short:["일","월","화","수","목","금","토"]},labels:{new_task:"이름없는 작업",icon_save:"저장",icon_cancel:"취소",icon_details:"세부 사항",icon_edit:"수정",icon_delete:"삭제",confirm_closing:"",confirm_deleting:"작업을 삭제하시겠습니까?",section_description:"설명",section_time:"기간",section_type:"Type",column_wbs:"WBS",column_text:"작업명",column_start_date:"시작일",column_duration:"기간",column_add:"",link:"전제",confirm_link_deleting:"삭제 하시겠습니까?",link_start:" (start)",link_end:" (end)",type_task:"작업",type_project:"프로젝트",type_milestone:"마일스톤",minutes:"분",hours:"시간",days:"일",weeks:"주",months:"달",years:"년",message_ok:"OK",message_cancel:"취소",section_constraint:"Constraint",constraint_type:"Constraint type",constraint_date:"Constraint date",asap:"As Soon As Possible",alap:"As Late As Possible",snet:"Start No Earlier Than",snlt:"Start No Later Than",fnet:"Finish No Earlier Than",fnlt:"Finish No Later Than",mso:"Must Start On",mfo:"Must Finish On",resources_filter_placeholder:"type to filter",resources_filter_label:"hide empty"}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={date:{month_full:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],month_short:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],day_full:["日曜日","月曜日","火曜日","水曜日","木曜日","金曜日","土曜日"],day_short:["日","月","火","水","木","金","土"]},labels:{new_task:"新しい仕事",icon_save:"保存",icon_cancel:"キャンセル",icon_details:"詳細",icon_edit:"編集",icon_delete:"削除",confirm_closing:"",confirm_deleting:"イベント完全に削除されます、宜しいですか?",section_description:"デスクリプション",section_time:"期間",section_type:"Type",column_wbs:"WBS",column_text:"Task name",column_start_date:"Start time",column_duration:"Duration",column_add:"",link:"Link",confirm_link_deleting:"will be deleted",link_start:" (start)",link_end:" (end)",type_task:"Task",type_project:"Project",type_milestone:"Milestone",minutes:"Minutes",hours:"Hours",days:"Days",weeks:"Week",months:"Months",years:"Years",message_ok:"OK",message_cancel:"キャンセル",section_constraint:"Constraint",constraint_type:"Constraint type",constraint_date:"Constraint date",asap:"As Soon As Possible",alap:"As Late As Possible",snet:"Start No Earlier Than",snlt:"Start No Later Than",fnet:"Finish No Earlier Than",fnlt:"Finish No Later Than",mso:"Must Start On",mfo:"Must Finish On",resources_filter_placeholder:"type to filter",resources_filter_label:"hide empty"}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={date:{month_full:["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"],month_short:["Gen","Feb","Mar","Apr","Mag","Giu","Lug","Ago","Set","Ott","Nov","Dic"],day_full:["Domenica","Lunedì","Martedì","Mercoledì","Giovedì","Venerdì","Sabato"],day_short:["Dom","Lun","Mar","Mer","Gio","Ven","Sab"]},labels:{new_task:"Nuovo compito",icon_save:"Salva",icon_cancel:"Chiudi",icon_details:"Dettagli",icon_edit:"Modifica",icon_delete:"Elimina",confirm_closing:"",confirm_deleting:"Sei sicuro di confermare l'eliminazione?",section_description:"Descrizione",section_time:"Periodo di tempo",section_type:"Tipo",column_wbs:"WBS",column_text:"Nome Attività",column_start_date:"Inizio",column_duration:"Durata",column_add:"",link:"Link",confirm_link_deleting:"sarà eliminato",link_start:" (inizio)",link_end:" (fine)",type_task:"Task",type_project:"Project",type_milestone:"Milestone",minutes:"Minuti",hours:"Ore",days:"Giorni",weeks:"Settimane",months:"Mesi",years:"Anni",message_ok:"OK",message_cancel:"Chiudi",section_constraint:"Constraint",constraint_type:"Constraint type",constraint_date:"Constraint date",asap:"As Soon As Possible",alap:"As Late As Possible",snet:"Start No Earlier Than",snlt:"Start No Later Than",fnet:"Finish No Earlier Than",fnlt:"Finish No Later Than",mso:"Must Start On",mfo:"Must Finish On",resources_filter_placeholder:"type to filter",resources_filter_label:"hide empty"}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={date:{month_full:["Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember"],month_short:["Jan","Feb","Mar","Apr","Mei","Jun","Jul","Ags","Sep","Okt","Nov","Des"],day_full:["Minggu","Senin","Selasa","Rabu","Kamis","Jumat","Sabtu"],day_short:["Ming","Sen","Sel","Rab","Kam","Jum","Sab"]},labels:{new_task:"Tugas baru",icon_save:"Simpan",icon_cancel:"Batal",icon_details:"Detail",icon_edit:"Edit",icon_delete:"Hapus",confirm_closing:"",confirm_deleting:"Acara akan dihapus",section_description:"Keterangan",section_time:"Periode",section_type:"Type",column_wbs:"WBS",column_text:"Task name",column_start_date:"Start time",column_duration:"Duration",column_add:"",link:"Link",confirm_link_deleting:"will be deleted",link_start:" (start)",link_end:" (end)",type_task:"Task",type_project:"Project",type_milestone:"Milestone",minutes:"Minutes",hours:"Hours",days:"Days",weeks:"Week",months:"Months",years:"Years",message_ok:"OK",message_cancel:"Batal",section_constraint:"Constraint",constraint_type:"Constraint type",constraint_date:"Constraint date",asap:"As Soon As Possible",alap:"As Late As Possible",snet:"Start No Earlier Than",snlt:"Start No Later Than",fnet:"Finish No Earlier Than",fnlt:"Finish No Later Than",mso:"Must Start On",mfo:"Must Finish On",resources_filter_placeholder:"type to filter",resources_filter_label:"hide empty"}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={date:{month_full:["Január","Február","Március","Április","Május","Június","Július","Augusztus","Szeptember","Október","November","December"],month_short:["Jan","Feb","Már","Ápr","Máj","Jún","Júl","Aug","Sep","Okt","Nov","Dec"],day_full:["Vasárnap","Hétfõ","Kedd","Szerda","Csütörtök","Péntek","szombat"],day_short:["Va","Hé","Ke","Sze","Csü","Pé","Szo"]},labels:{new_task:"Új feladat",icon_save:"Mentés",icon_cancel:"Mégse",icon_details:"Részletek",icon_edit:"Szerkesztés",icon_delete:"Törlés",confirm_closing:"",confirm_deleting:"Az esemény törölve lesz, biztosan folytatja?",section_description:"Leírás",section_time:"Idõszak",section_type:"Type",column_wbs:"WBS",column_text:"Task name",column_start_date:"Start time",column_duration:"Duration",column_add:"",link:"Link",confirm_link_deleting:"will be deleted",link_start:" (start)",link_end:" (end)",type_task:"Task",type_project:"Project",type_milestone:"Milestone",minutes:"Minutes",hours:"Hours",days:"Days",weeks:"Week",months:"Months",years:"Years",message_ok:"OK",message_cancel:"Mégse",section_constraint:"Constraint",constraint_type:"Constraint type",constraint_date:"Constraint date",asap:"As Soon As Possible",alap:"As Late As Possible",snet:"Start No Earlier Than",snlt:"Start No Later Than",fnet:"Finish No Earlier Than",fnlt:"Finish No Later Than",mso:"Must Start On",mfo:"Must Finish On",resources_filter_placeholder:"type to filter",resources_filter_label:"hide empty"}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={date:{month_full:["Siječanj","Veljača","Ožujak","Travanj","Svibanj","Lipanj","Srpanj","Kolovoz","Rujan","Listopad","Studeni","Prosinac"],month_short:["Sij","Velj","Ožu","Tra","Svi","Lip","Srp","Kol","Ruj","Lis","Stu","Pro"],day_full:["Nedjelja","Ponedjeljak","Utorak","Srijeda","Četvrtak","Petak","Subota"],day_short:["Ned","Pon","Uto","Sri","Čet","Pet","Sub"]},labels:{new_task:"Novi Zadatak",icon_save:"Spremi",icon_cancel:"Odustani",icon_details:"Detalji",icon_edit:"Izmjeni",icon_delete:"Obriši",confirm_closing:"",confirm_deleting:"Zadatak će biti trajno izbrisan, jeste li sigurni?",section_description:"Opis",section_time:"Vremenski Period",section_type:"Tip",column_wbs:"WBS",column_text:"Naziv Zadatka",column_start_date:"Početno Vrijeme",column_duration:"Trajanje",column_add:"",link:"Poveznica",confirm_link_deleting:"će biti izbrisan",link_start:" (početak)",link_end:" (kraj)",type_task:"Zadatak",type_project:"Projekt",type_milestone:"Milestone",minutes:"Minute",hours:"Sati",days:"Dani",weeks:"Tjedni",months:"Mjeseci",years:"Godine",message_ok:"OK",message_cancel:"Odustani",section_constraint:"Constraint",constraint_type:"Constraint type",constraint_date:"Constraint date",asap:"As Soon As Possible",alap:"As Late As Possible",snet:"Start No Earlier Than",snlt:"Start No Later Than",fnet:"Finish No Earlier Than",fnlt:"Finish No Later Than",mso:"Must Start On",mfo:"Must Finish On",resources_filter_placeholder:"type to filter",resources_filter_label:"hide empty"}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={date:{month_full:["ינואר","פברואר","מרץ","אפריל","מאי","יוני","יולי","אוגוסט","ספטמבר","אוקטובר","נובמבר","דצמבר"],month_short:["ינו","פבר","מרץ","אפר","מאי","יונ","יול","אוג","ספט","אוק","נוב","דצמ"],day_full:["ראשון","שני","שלישי","רביעי","חמישי","שישי","שבת"],day_short:["א","ב","ג","ד","ה","ו","ש"]},labels:{new_task:"משימה חדש",icon_save:"שמור",icon_cancel:"בטל",icon_details:"פרטים",icon_edit:"ערוך",icon_delete:"מחק",confirm_closing:"",confirm_deleting:"ארוע ימחק סופית.להמשיך?",section_description:"הסבר",section_time:"תקופה",section_type:"Type",column_wbs:"WBS",column_text:"Task name",column_start_date:"Start time",column_duration:"Duration",column_add:"",link:"Link",confirm_link_deleting:"will be deleted",link_start:" (start)",link_end:" (end)",type_task:"Task",type_project:"Project",type_milestone:"Milestone",minutes:"Minutes",hours:"Hours",days:"Days",weeks:"Week",months:"Months",years:"Years",message_ok:"OK",message_cancel:"בטל",section_constraint:"Constraint",constraint_type:"Constraint type",constraint_date:"Constraint date",asap:"As Soon As Possible",alap:"As Late As Possible",snet:"Start No Earlier Than",snlt:"Start No Later Than",fnet:"Finish No Earlier Than",fnlt:"Finish No Later Than",mso:"Must Start On",mfo:"Must Finish On",resources_filter_placeholder:"type to filter",resources_filter_label:"hide empty"}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={date:{month_full:["Janvier","Février","Mars","Avril","Mai","Juin","Juillet","Août","Septembre","Octobre","Novembre","Décembre"],month_short:["Jan","Fév","Mar","Avr","Mai","Juin","Juil","Aoû","Sep","Oct","Nov","Déc"],day_full:["Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi"],day_short:["Dim","Lun","Mar","Mer","Jeu","Ven","Sam"]},labels:{new_task:"Nouvelle tâche",icon_save:"Enregistrer",icon_cancel:"Annuler",icon_details:"Détails",icon_edit:"Modifier",icon_delete:"Effacer",confirm_closing:"",confirm_deleting:"L'événement sera effacé sans appel, êtes-vous sûr ?",section_description:"Description",section_time:"Période",section_type:"Type",column_wbs:"OTP",column_text:"Nom de la tâche",column_start_date:"Date initiale",column_duration:"Durée",column_add:"",link:"Le lien",confirm_link_deleting:"sera supprimé",link_start:"(début)",link_end:"(fin)",type_task:"Task",type_project:"Project",type_milestone:"Milestone",minutes:"Minutes",hours:"Heures",days:"Jours",weeks:"Semaines",months:"Mois",years:"Années",message_ok:"OK",message_cancel:"Annuler",section_constraint:"Constraint",constraint_type:"Constraint type",constraint_date:"Constraint date",asap:"As Soon As Possible",alap:"As Late As Possible",snet:"Start No Earlier Than",snlt:"Start No Later Than",fnet:"Finish No Earlier Than",fnlt:"Finish No Later Than",mso:"Must Start On",mfo:"Must Finish On",resources_filter_placeholder:"type to filter",resources_filter_label:"hide empty"}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={date:{month_full:["Tammikuu","Helmikuu","Maaliskuu","Huhtikuu","Toukokuu","Kes&auml;kuu","Hein&auml;kuu","Elokuu","Syyskuu","Lokakuu","Marraskuu","Joulukuu"],month_short:["Tam","Hel","Maa","Huh","Tou","Kes","Hei","Elo","Syy","Lok","Mar","Jou"],day_full:["Sunnuntai","Maanantai","Tiistai","Keskiviikko","Torstai","Perjantai","Lauantai"],day_short:["Su","Ma","Ti","Ke","To","Pe","La"]},labels:{new_task:"Uusi tehtävä",icon_save:"Tallenna",icon_cancel:"Peru",icon_details:"Tiedot",icon_edit:"Muokkaa",icon_delete:"Poista",confirm_closing:"",confirm_deleting:"Haluatko varmasti poistaa tapahtuman?",section_description:"Kuvaus",section_time:"Aikajakso",section_type:"Type",column_wbs:"WBS",column_text:"Task name",column_start_date:"Start time",column_duration:"Duration",column_add:"",link:"Link",confirm_link_deleting:"will be deleted",link_start:" (start)",link_end:" (end)",type_task:"Task",type_project:"Project",type_milestone:"Milestone",minutes:"Minutes",hours:"Hours",days:"Days",weeks:"Week",months:"Months",years:"Years",message_ok:"OK",message_cancel:"Peru",section_constraint:"Constraint",constraint_type:"Constraint type",constraint_date:"Constraint date",asap:"As Soon As Possible",alap:"As Late As Possible",snet:"Start No Earlier Than",snlt:"Start No Later Than",fnet:"Finish No Earlier Than",fnlt:"Finish No Later Than",mso:"Must Start On",mfo:"Must Finish On",resources_filter_placeholder:"type to filter",resources_filter_label:"hide empty"}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={date:{month_full:["ژانویه","فوریه","مارس","آوریل","مه","ژوئن","ژوئیه","اوت","سپتامبر","اکتبر","نوامبر","دسامبر"],month_short:["1","2","3","4","5","6","7","8","9","10","11","12"],day_full:["يکشنبه","دوشنبه","سه‌شنبه","چهارشنبه","پنجشنبه","جمعه","شنبه"],day_short:["ی","د","س","چ","پ","ج","ش"]},labels:{new_task:"وظیفه جدید",icon_save:"ذخیره",icon_cancel:"لغو",icon_details:"جزییات",icon_edit:"ویرایش",icon_delete:"حذف",confirm_closing:"تغییرات شما ازدست خواهد رفت، آیا مطمئن هستید؟",confirm_deleting:"این مورد برای همیشه حذف خواهد شد، آیا مطمئن هستید؟",section_description:"توضیحات",section_time:"مدت زمان",section_type:"نوع",column_wbs:"WBS",column_text:"عنوان",column_start_date:"زمان شروع",column_duration:"مدت",column_add:"",link:"ارتباط",confirm_link_deleting:"حذف خواهد شد",link_start:" (آغاز)",link_end:" (پایان)",type_task:"وظیفه",type_project:"پروژه",type_milestone:"نگارش",minutes:"دقایق",hours:"ساعات",days:"روزها",weeks:"هفته",months:"ماه‌ها",years:"سال‌ها",message_ok:"تایید",message_cancel:"لغو",section_constraint:"Constraint",constraint_type:"Constraint type",constraint_date:"Constraint date",asap:"As Soon As Possible",alap:"As Late As Possible",snet:"Start No Earlier Than",snlt:"Start No Later Than",fnet:"Finish No Earlier Than",fnlt:"Finish No Later Than",mso:"Must Start On",mfo:"Must Finish On",resources_filter_placeholder:"type to filter",resources_filter_label:"hide empty"}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={date:{month_full:["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],month_short:["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],day_full:["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"],day_short:["Dom","Lun","Mar","Mié","Jue","Vie","Sáb"]},labels:{new_task:"Nueva tarea",icon_save:"Guardar",icon_cancel:"Cancelar",icon_details:"Detalles",icon_edit:"Editar",icon_delete:"Eliminar",confirm_closing:"",confirm_deleting:"El evento se borrará definitivamente, ¿continuar?",section_description:"Descripción",section_time:"Período",section_type:"Tipo",column_wbs:"EDT",column_text:"Tarea",column_start_date:"Inicio",column_duration:"Duración",column_add:"",link:"Enlace",confirm_link_deleting:"será borrada",link_start:" (inicio)",link_end:" (fin)",type_task:"Tarea",type_project:"Proyecto",type_milestone:"Hito",minutes:"Minutos",hours:"Horas",days:"Días",weeks:"Semanas",months:"Meses",years:"Años",message_ok:"OK",message_cancel:"Cancelar",section_constraint:"Constraint",constraint_type:"Constraint type",constraint_date:"Constraint date",asap:"As Soon As Possible",alap:"As Late As Possible",snet:"Start No Earlier Than",snlt:"Start No Later Than",fnet:"Finish No Earlier Than",fnlt:"Finish No Later Than",mso:"Must Start On",mfo:"Must Finish On",resources_filter_placeholder:"type to filter",resources_filter_label:"hide empty"}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={date:{month_full:["January","February","March","April","May","June","July","August","September","October","November","December"],month_short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],day_full:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],day_short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},labels:{new_task:"New task",icon_save:"Save",icon_cancel:"Cancel",icon_details:"Details",icon_edit:"Edit",icon_delete:"Delete",confirm_closing:"",confirm_deleting:"Task will be deleted permanently, are you sure?",section_description:"Description",section_time:"Time period",section_type:"Type",column_wbs:"WBS",column_text:"Task name",column_start_date:"Start time",column_duration:"Duration",column_add:"",link:"Link",confirm_link_deleting:"will be deleted",link_start:" (start)",link_end:" (end)",type_task:"Task",type_project:"Project",type_milestone:"Milestone",minutes:"Minutes",hours:"Hours",days:"Days",weeks:"Week",months:"Months",years:"Years",message_ok:"OK",message_cancel:"Cancel",section_constraint:"Constraint",constraint_type:"Constraint type",constraint_date:"Constraint date",asap:"As Soon As Possible",alap:"As Late As Possible",snet:"Start No Earlier Than",snlt:"Start No Later Than",fnet:"Finish No Earlier Than",fnlt:"Finish No Later Than",mso:"Must Start On",mfo:"Must Finish On",resources_filter_placeholder:"type to filter",resources_filter_label:"hide empty"}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={date:{month_full:["Ιανουάριος","Φεβρουάριος","Μάρτιος","Απρίλιος","Μάϊος","Ιούνιος","Ιούλιος","Αύγουστος","Σεπτέμβριος","Οκτώβριος","Νοέμβριος","Δεκέμβριος"],month_short:["ΙΑΝ","ΦΕΒ","ΜΑΡ","ΑΠΡ","ΜΑΙ","ΙΟΥΝ","ΙΟΥΛ","ΑΥΓ","ΣΕΠ","ΟΚΤ","ΝΟΕ","ΔΕΚ"],day_full:["Κυριακή","Δευτέρα","Τρίτη","Τετάρτη","Πέμπτη","Παρασκευή","Κυριακή"],day_short:["ΚΥ","ΔΕ","ΤΡ","ΤΕ","ΠΕ","ΠΑ","ΣΑ"]},labels:{new_task:"Νέα εργασία",icon_save:"Αποθήκευση",icon_cancel:"Άκυρο",icon_details:"Λεπτομέρειες",icon_edit:"Επεξεργασία",icon_delete:"Διαγραφή",confirm_closing:"",confirm_deleting:"Το έργο θα διαγραφεί οριστικά. Θέλετε να συνεχίσετε;",section_description:"Περιγραφή",section_time:"Χρονική περίοδος",section_type:"Type",column_wbs:"WBS",column_text:"Task name",column_start_date:"Start time",column_duration:"Duration",column_add:"",link:"Link",confirm_link_deleting:"will be deleted",link_start:" (start)",link_end:" (end)",type_task:"Task",type_project:"Project",type_milestone:"Milestone",minutes:"Minutes",hours:"Hours",days:"Days",weeks:"Week",months:"Months",years:"Years",message_ok:"OK",message_cancel:"Άκυρο",section_constraint:"Constraint",constraint_type:"Constraint type",constraint_date:"Constraint date",asap:"As Soon As Possible",alap:"As Late As Possible",snet:"Start No Earlier Than",snlt:"Start No Later Than",fnet:"Finish No Earlier Than",fnlt:"Finish No Later Than",mso:"Must Start On",mfo:"Must Finish On",resources_filter_placeholder:"type to filter",resources_filter_label:"hide empty"}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={date:{month_full:[" Januar"," Februar"," März "," April"," Mai"," Juni"," Juli"," August"," September "," Oktober"," November "," Dezember"],month_short:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],day_full:["Sonntag","Montag","Dienstag"," Mittwoch"," Donnerstag","Freitag","Samstag"],day_short:["So","Mo","Di","Mi","Do","Fr","Sa"]},labels:{new_task:"Neue Aufgabe",icon_save:"Speichern",icon_cancel:"Abbrechen",icon_details:"Details",icon_edit:"Ändern",icon_delete:"Löschen",confirm_closing:"",confirm_deleting:"Der Eintrag wird gelöscht",section_description:"Beschreibung",section_time:"Zeitspanne",section_type:"Type",column_wbs:"PSP",column_text:"Task-Namen",column_start_date:"Startzeit",column_duration:"Dauer",column_add:"",link:"Link",confirm_link_deleting:"werden gelöscht",link_start:"(starten)",link_end:"(ende)",type_task:"Task",type_project:"Project",type_milestone:"Milestone",minutes:"Minuten",hours:"Stunden",days:"Tage",weeks:"Wochen",months:"Monate",years:"Jahre",message_ok:"OK",message_cancel:"Abbrechen",section_constraint:"Regel",constraint_type:"Regel",constraint_date:"Regel - Datum",asap:"So bald wie möglich",alap:"So spät wie möglich",snet:"Beginn nicht vor",snlt:"Beginn nicht später als",fnet:"Fertigstellung nicht vor",fnlt:"Fertigstellung nicht später als",mso:"Muss beginnen am",mfo:"Muss fertig sein am",resources_filter_placeholder:"type to filter",resources_filter_label:"hide empty"}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={date:{month_full:["Januar","Februar","Marts","April","Maj","Juni","Juli","August","September","Oktober","November","December"],month_short:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Aug","Sep","Okt","Nov","Dec"],day_full:["Søndag","Mandag","Tirsdag","Onsdag","Torsdag","Fredag","Lørdag"],day_short:["Søn","Man","Tir","Ons","Tor","Fre","Lør"]},labels:{new_task:"Ny opgave",icon_save:"Gem",icon_cancel:"Fortryd",icon_details:"Detaljer",icon_edit:"Tilret",icon_delete:"Slet",confirm_closing:"Dine rettelser vil gå tabt.. Er dy sikker?",confirm_deleting:"Bigivenheden vil blive slettet permanent. Er du sikker?",section_description:"Beskrivelse",section_time:"Tidsperiode",section_type:"Type",column_wbs:"WBS",column_text:"Task name",column_start_date:"Start time",column_duration:"Duration",column_add:"",link:"Link",confirm_link_deleting:"will be deleted",link_start:" (start)",link_end:" (end)",type_task:"Task",type_project:"Project",type_milestone:"Milestone",minutes:"Minutes",hours:"Hours",days:"Days",weeks:"Week",months:"Months",years:"Years",message_ok:"OK",message_cancel:"Fortryd",section_constraint:"Constraint",constraint_type:"Constraint type",constraint_date:"Constraint date",asap:"As Soon As Possible",alap:"As Late As Possible",snet:"Start No Earlier Than",snlt:"Start No Later Than",fnet:"Finish No Earlier Than",fnlt:"Finish No Later Than",mso:"Must Start On",mfo:"Must Finish On",resources_filter_placeholder:"type to filter",resources_filter_label:"hide empty"}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={date:{month_full:["Leden","Únor","Březen","Duben","Květen","Červen","Červenec","Srpen","Září","Říjen","Listopad","Prosinec"],month_short:["Led","Ún","Bře","Dub","Kvě","Čer","Čec","Srp","Září","Říj","List","Pro"],day_full:["Neděle","Pondělí","Úterý","Středa","Čtvrtek","Pátek","Sobota"],day_short:["Ne","Po","Út","St","Čt","Pá","So"]},labels:{new_task:"Nová práce",icon_save:"Uložit",icon_cancel:"Zpět",icon_details:"Detail",icon_edit:"Edituj",icon_delete:"Smazat",confirm_closing:"",confirm_deleting:"Událost bude trvale smazána, opravdu?",section_description:"Poznámky",section_time:"Doba platnosti",section_type:"Type",column_wbs:"WBS",column_text:"Task name",column_start_date:"Start time",column_duration:"Duration",column_add:"",link:"Link",confirm_link_deleting:"will be deleted",link_start:" (start)",link_end:" (end)",type_task:"Task",type_project:"Project",type_milestone:"Milestone",minutes:"Minutes",hours:"Hours",days:"Days",weeks:"Week",months:"Months",years:"Years",message_ok:"OK",message_cancel:"Zpět",section_constraint:"Constraint",constraint_type:"Constraint type",constraint_date:"Constraint date",asap:"As Soon As Possible",alap:"As Late As Possible",snet:"Start No Earlier Than",snlt:"Start No Later Than",fnet:"Finish No Earlier Than",fnlt:"Finish No Later Than",mso:"Must Start On",mfo:"Must Finish On",resources_filter_placeholder:"type to filter",resources_filter_label:"hide empty"}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={date:{month_full:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],month_short:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],day_full:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],day_short:["日","一","二","三","四","五","六"]},labels:{new_task:"新任務",icon_save:"保存",icon_cancel:"关闭",icon_details:"详细",icon_edit:"编辑",icon_delete:"删除",confirm_closing:"请确认是否撤销修改!",confirm_deleting:"是否删除日程?",section_description:"描述",section_time:"时间范围",section_type:"类型",column_wbs:"工作分解结构",column_text:"任务名",column_start_date:"开始时间",column_duration:"持续时间",column_add:"",link:"关联",confirm_link_deleting:"将被删除",link_start:" (开始)",link_end:" (结束)",type_task:"任务",type_project:"项目",type_milestone:"里程碑",minutes:"分钟",hours:"小时",days:"天",weeks:"周",months:"月",years:"年",message_ok:"OK",message_cancel:"关闭",section_constraint:"Constraint",constraint_type:"Constraint type",constraint_date:"Constraint date",asap:"As Soon As Possible",alap:"As Late As Possible",snet:"Start No Earlier Than",snlt:"Start No Later Than",fnet:"Finish No Earlier Than",fnlt:"Finish No Later Than",mso:"Must Start On",mfo:"Must Finish On",resources_filter_placeholder:"type to filter",resources_filter_label:"hide empty"}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={date:{month_full:["Gener","Febrer","Març","Abril","Maig","Juny","Juliol","Agost","Setembre","Octubre","Novembre","Desembre"],month_short:["Gen","Feb","Mar","Abr","Mai","Jun","Jul","Ago","Set","Oct","Nov","Des"],day_full:["Diumenge","Dilluns","Dimarts","Dimecres","Dijous","Divendres","Dissabte"],day_short:["Dg","Dl","Dm","Dc","Dj","Dv","Ds"]},labels:{new_task:"Nova tasca",icon_save:"Guardar",icon_cancel:"Cancel·lar",icon_details:"Detalls",icon_edit:"Editar",icon_delete:"Esborrar",confirm_closing:"",confirm_deleting:"L'esdeveniment s'esborrarà definitivament, continuar ?",section_description:"Descripció",section_time:"Periode de temps",section_type:"Type",column_wbs:"WBS",column_text:"Task name",column_start_date:"Start time",column_duration:"Duration",column_add:"",link:"Link",confirm_link_deleting:"will be deleted",link_start:" (start)",link_end:" (end)",type_task:"Task",type_project:"Project",type_milestone:"Milestone",minutes:"Minutes",hours:"Hours",days:"Days",weeks:"Week",months:"Months",years:"Years",message_ok:"OK",message_cancel:"Cancel·lar",section_constraint:"Constraint",constraint_type:"Constraint type",constraint_date:"Constraint date",asap:"As Soon As Possible",alap:"As Late As Possible",snet:"Start No Earlier Than",snlt:"Start No Later Than",fnet:"Finish No Earlier Than",fnlt:"Finish No Later Than",mso:"Must Start On",mfo:"Must Finish On",resources_filter_placeholder:"type to filter",resources_filter_label:"hide empty"}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={date:{month_full:["Студзень","Люты","Сакавік","Красавік","Maй","Чэрвень","Ліпень","Жнівень","Верасень","Кастрычнік","Лістапад","Снежань"],month_short:["Студз","Лют","Сак","Крас","Maй","Чэр","Ліп","Жнів","Вер","Каст","Ліст","Снеж"],day_full:["Нядзеля","Панядзелак","Аўторак","Серада","Чацвер","Пятніца","Субота"],day_short:["Нд","Пн","Аўт","Ср","Чцв","Пт","Сб"]},labels:{new_task:"Новае заданне",icon_save:"Захаваць",icon_cancel:"Адмяніць",icon_details:"Дэталі",icon_edit:"Змяніць",icon_delete:"Выдаліць",confirm_closing:"",confirm_deleting:"Падзея будзе выдалена незваротна, працягнуць?",section_description:"Апісанне",section_time:"Перыяд часу",section_type:"Тып",column_wbs:"ІСР",column_text:"Задача",column_start_date:"Пачатак",column_duration:"Працяг",column_add:"",link:"Сувязь",confirm_link_deleting:"будзе выдалена",link_start:"(пачатак)",link_end:"(канец)",type_task:"Task",type_project:"Project",type_milestone:"Milestone",minutes:"Хвiлiна",hours:"Гадзiна",days:"Дзень",weeks:"Тыдзень",months:"Месяц",years:"Год",message_ok:"OK",message_cancel:"Адмяніць",section_constraint:"Constraint",constraint_type:"Constraint type",constraint_date:"Constraint date",asap:"As Soon As Possible",alap:"As Late As Possible",snet:"Start No Earlier Than",snlt:"Start No Later Than",fnet:"Finish No Earlier Than",fnlt:"Finish No Later Than",mso:"Must Start On",mfo:"Must Finish On",resources_filter_placeholder:"type to filter",resources_filter_label:"hide empty"}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={date:{month_full:["كانون الثاني","شباط","آذار","نيسان","أيار","حزيران","تموز","آب","أيلول","تشرين الأول","تشرين الثاني","كانون الأول"],month_short:["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],day_full:["الأحد","الأثنين","ألثلاثاء","الأربعاء","ألحميس","ألجمعة","السبت"],day_short:["احد","اثنين","ثلاثاء","اربعاء","خميس","جمعة","سبت"]},labels:{new_task:"مهمة جديد",icon_save:"اخزن",icon_cancel:"الغاء",icon_details:"تفاصيل",icon_edit:"تحرير",icon_delete:"حذف",confirm_closing:"التغييرات سوف تضيع, هل انت متأكد؟",confirm_deleting:"الحدث سيتم حذفها نهائيا ، هل أنت متأكد؟",section_description:"الوصف",section_time:"الفترة الزمنية",section_type:"Type",column_wbs:"WBS",column_text:"Task name",column_start_date:"Start time",column_duration:"Duration",column_add:"",link:"Link",confirm_link_deleting:"will be deleted",link_start:" (start)",link_end:" (end)",type_task:"Task",type_project:"Project",type_milestone:"Milestone",minutes:"Minutes",hours:"Hours",days:"Days",weeks:"Week",months:"Months",years:"Years",message_ok:"OK",message_cancel:"الغاء",section_constraint:"Constraint",constraint_type:"Constraint type",constraint_date:"Constraint date",asap:"As Soon As Possible",alap:"As Late As Possible",snet:"Start No Earlier Than",snlt:"Start No Later Than",fnet:"Finish No Earlier Than",fnlt:"Finish No Later Than",mso:"Must Start On",mfo:"Must Finish On",resources_filter_placeholder:"type to filter",resources_filter_label:"hide empty"}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(151),i=n(150),o=n(149),a=n(148),s=n(147),u=n(146),l=n(145),c=n(144),f=n(143),d=n(142),h=n(141),p=n(140),g=n(139),m=n(138),v=n(137),y=n(136),b=n(135),_=n(134),w=n(133),x=n(132),k=n(131),S=n(130),C=n(129),E=n(128),T=n(127),A=n(126),O=n(125),P=n(124),N=n(123),D=n(122),M=n(121),I=n(120),R=n(119);e.default=function(){return new k.default({en:f.default,ar:r.default,be:i.default,ca:o.default,cn:a.default,cs:s.default,da:u.default,de:l.default,el:c.default,es:d.default,fa:h.default,fi:p.default,fr:g.default,he:m.default,hr:v.default,hu:y.default,id:b.default,it:_.default,jp:w.default,kr:x.default,nb:S.default,nl:C.default,no:E.default,pl:T.default,pt:A.default,ro:O.default,ru:P.default,si:N.default,sk:D.default,sv:M.default,tr:I.default,ua:R.default})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){}},function(t,e){t.exports=function(t){t.destructor=function(){for(var t in this.clearAll(),this.callEvent("onDestroy",[]),this.$root&&delete this.$root.gantt,this._eventRemoveAll&&this._eventRemoveAll(),this.$layout&&this.$layout.destructor(),this.resetLightbox&&this.resetLightbox(),this._dp&&this._dp.destructor&&this._dp.destructor(),this.$services.destructor(),this.detachAllEvents(),this)0===t.indexOf("$")&&delete this[t];this.$destroyed=!0}}},function(t,e){t.exports=function(t){return function(e,n){e||t.config.show_errors&&!1!==t.callEvent("onError",[n])&&(t.message?t.message({type:"error",text:n,expire:-1}):console.log(n))}}},function(t,e){function n(t,e){function n(){clearTimeout(i),i=setTimeout(function(){t.$destroyed||t.render()},o)}function r(){t.$root.offsetHeight==a&&t.$root.offsetWidth==s||n(),a=t.$root.offsetHeight,s=t.$root.offsetWidth,setTimeout(r,o)}var i,o=t.config.container_resize_timeout||20;if("timeout"==t.config.container_resize_method)r();else try{t.event(e,"resize",function(){t.$scrollbarRepaint?t.$scrollbarRepaint=null:n()})}catch(t){r()}var a=t.$root.offsetHeight,s=t.$root.offsetWidth}t.exports=function(t){"static"==window.getComputedStyle(t.$root).getPropertyValue("position")&&(t.$root.style.position="relative");var e=document.createElement("iframe");e.className="gantt_container_resize_watcher",e.tabIndex=-1,t.config.wai_aria_attributes&&(e.setAttribute("role","none"),e.setAttribute("aria-hidden",!0)),(!!window.Sfdc||!!window.$A||window.Aura)&&(t.config.container_resize_method="timeout"),t.$root.appendChild(e),e.contentWindow?n(t,e.contentWindow):(t.$root.removeChild(e),n(t,window))}},function(t,e,n){function r(t){"@babel/helpers - typeof";return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var i=n(1),o=n(2),a=n(10),s=n(156);t.exports=function(t){function e(e){if(!e||"string"==typeof e&&document.getElementById(e))return!0;if(function(t){try{t.cloneNode(!1)}catch(t){return!1}return!0}(e))return!0;throw t.assert(!1,l),new Error(l)}var u=n(38);t.assert=n(155)(t);var l="Invalid value of the first argument of `gantt.init`. Supported values: HTMLElement, String (element id).This error means that either invalid object is passed into `gantt.init` or that the element with the specified ID doesn't exist on the page when `gantt.init` is called.";t.init=function(n,r,i){t.env.isNode?n=null:e(n),r&&i&&(this.config.start_date=this._min_date=new Date(r),this.config.end_date=this._max_date=new Date(i)),this.date.init(),this.init=function(n){t.env.isNode?n=null:e(n),this.$container&&this.$container.parentNode&&(this.$container.parentNode.removeChild(this.$container),this.$container=null),this.$layout&&this.$layout.clear(),this._reinit(n)},this._reinit(n)},t._quickRefresh=function(t){for(var e=this._getDatastores.call(this),n=0;n<e.length;n++)e[n]._quick_refresh=!0;for(t(),n=0;n<e.length;n++)e[n]._quick_refresh=!1};var c=function(){this._clearTaskLayers&&this._clearTaskLayers(),this._clearLinkLayers&&this._clearLinkLayers(),this.$layout&&(this.$layout.destructor(),this.$layout=null,this.$ui.reset())}.bind(t),f=function(){a(t)||(this.$root.innerHTML="",this.$root.gantt=this,u(this),this.config.layout.id="main",this.$layout=this.$ui.createView("layout",this.$root,this.config.layout),this.$layout.attachEvent("onBeforeResize",function(){for(var e=t.$services.getService("datastores"),n=0;n<e.length;n++)t.getDatastore(e[n]).filter(),t.getDatastore(e[n]).callEvent("onBeforeRefreshAll",[])}),this.$layout.attachEvent("onResize",function(){t._quickRefresh(function(){t.refreshData()})}),this.callEvent("onGanttLayoutReady",[]),this.$layout.render(),this.$container=this.$layout.$container.firstChild,s(this))}.bind(t);t.resetLayout=function(){c(),f(),this.render()},t._reinit=function(t){this.callEvent("onBeforeGanttReady",[]),this._update_flags(),this.$services.getService("templateLoader").initTemplates(this),c(),this.$root=null,t&&(this.$root=i.toNode(t),f(),this.$mouseEvents.reset(this.$root)),this.callEvent("onTemplatesReady",[]),this.callEvent("onGanttReady",[]),this.render()},t.$click={buttons:{edit:function(e){t.isReadonly(t.getTask(e))||t.showLightbox(e)},delete:function(e){var n=t.getTask(e);if(!t.isReadonly(n)){var r=t.locale.labels.confirm_deleting,i=t.locale.labels.confirm_deleting_title;t._dhtmlx_confirm(r,i,function(){t.isTaskExists(e)?(n.$new?(t.silent(function(){t.deleteTask(e,!0)}),t.refreshData()):t.deleteTask(e),t.hideLightbox()):t.hideLightbox()})}}}},t.render=function(){var e;if(this.callEvent("onBeforeGanttRender",[]),!a(t)){!this.config.sort&&this._sort&&(this._sort=void 0),this.$root&&(this.config.rtl?(this.$root.classList.add("gantt_rtl"),this.$root.firstChild.classList.add("gantt_rtl")):(this.$root.classList.remove("gantt_rtl"),this.$root.firstChild.classList.remove("gantt_rtl")));var n=this.getScrollState(),r=n?n.x:0;this._getHorizontalScrollbar()&&(r=this._getHorizontalScrollbar().$config.codeScrollLeft||r||0),e=null,r&&(e=t.dateFromPos(r+this.config.task_scroll_offset))}if(u(this),a(t))t.refreshData();else{this.$layout.$config.autosize=this.config.autosize;var i=this.config.preserve_scroll;if(this.config.preserve_scroll=!1,this.$layout.resize(),this.config.preserve_scroll=i,this.config.preserve_scroll&&n){if(r||n.y){var o=t.getScrollState();if(+e!=+t.dateFromPos(o.x)||o.y!=n.y){r=null;var s=null;e&&(r=Math.max(t.posFromDate(e)-t.config.task_scroll_offset,0)),n.y&&(s=n.y),t.scrollTo(r,s)}}var l=t.$ui.getView("grid");if(l){var c=l.$config.scrollY,f=t.$ui.getView(c);f&&(t.utils.dom.isChildOf(f.$view,t.$container)||l.scrollTo(void 0,0))}}}this.callEvent("onGanttRender",[])},t.setSizes=t.render,t.getTaskRowNode=function(t){for(var e=this.$grid_data.childNodes,n=this.config.task_attribute,r=0;r<e.length;r++)if(e[r].getAttribute&&e[r].getAttribute(n)==t)return e[r];return null},t.changeLightboxType=function(e){if(this.getLightboxType()==e)return!0;t._silent_redraw_lightbox(e)},t._get_link_type=function(e,n){var r=null;return e&&n?r=t.config.links.start_to_start:!e&&n?r=t.config.links.finish_to_start:e||n?e&&!n&&(r=t.config.links.start_to_finish):r=t.config.links.finish_to_finish,r},t.isLinkAllowed=function(t,e,n,i){var o=null;if(!(o="object"==r(t)?t:{source:t,target:e,type:this._get_link_type(n,i)}))return!1;if(!(o.source&&o.target&&o.type))return!1;if(o.source==o.target)return!1;var a=!0;return this.checkEvent("onLinkValidation")&&(a=this.callEvent("onLinkValidation",[o])),a},t._correct_dst_change=function(e,n,r,i){var a=o.getSecondsInUnit(i)*r;if(a>3600&&a<86400){var s=e.getTimezoneOffset()-n;s&&(e=t.date.add(e,s,"minute"))}return e},t.isSplitTask=function(e){return t.assert(e&&e instanceof Object,"Invalid argument <b>task</b>="+e+" of gantt.isSplitTask. Task object was expected"),this.$data.tasksStore._isSplitItem(e)},t._is_icon_open_click=function(t){if(!t)return!1;var e=t.target||t.srcElement;if(!e||!e.className)return!1;var n=i.getClassName(e);return-1!==n.indexOf("gantt_tree_icon")&&(-1!==n.indexOf("gantt_close")||-1!==n.indexOf("gantt_open"))}}},function(t,e){t.exports=function(t){function e(){return t._cached_functions.update_if_changed(t),t._cached_functions.active||t._cached_functions.activate(),!0}t._cached_functions={cache:{},mode:!1,critical_path_mode:!1,wrap_methods:function(t,e){if(e._prefetch_originals)for(var n in e._prefetch_originals)e[n]=e._prefetch_originals[n];for(e._prefetch_originals={},n=0;n<t.length;n++)this.prefetch(t[n],e)},prefetch:function(t,e){var n=e[t];if(n){var r=this;e._prefetch_originals[t]=n,e[t]=function(){for(var e=new Array(arguments.length),i=0,o=arguments.length;i<o;i++)e[i]=arguments[i];if(r.active){var a=r.get_arguments_hash(Array.prototype.slice.call(e));r.cache[t]||(r.cache[t]={});var s=r.cache[t];if(r.has_cached_value(s,a))return r.get_cached_value(s,a);var u=n.apply(this,e);return r.cache_value(s,a,u),u}return n.apply(this,e)}}return n},cache_value:function(t,e,n){this.is_date(n)&&(n=new Date(n)),t[e]=n},has_cached_value:function(t,e){return t.hasOwnProperty(e)},get_cached_value:function(t,e){var n=t[e];return this.is_date(n)&&(n=new Date(n)),n},is_date:function(t){return t&&t.getUTCDate},get_arguments_hash:function(t){for(var e=[],n=0;n<t.length;n++)e.push(this.stringify_argument(t[n]));return"("+e.join(";")+")"},stringify_argument:function(t){return(t.id?t.id:this.is_date(t)?t.valueOf():t)+""},activate:function(){this.clear(),this.active=!0},deactivate:function(){this.clear(),this.active=!1},clear:function(){this.cache={}},setup:function(t){var e=[],n=["_isProjectEnd","_getProjectEnd","_getSlack"];"auto"==this.mode?t.config.highlight_critical_path&&(e=n):!0===this.mode&&(e=n),this.wrap_methods(e,t)},update_if_changed:function(t){(this.critical_path_mode!=t.config.highlight_critical_path||this.mode!==t.config.optimize_render)&&(this.critical_path_mode=t.config.highlight_critical_path,this.mode=t.config.optimize_render,this.setup(t))}},t.attachEvent("onBeforeGanttRender",e),t.attachEvent("onBeforeDataRender",e),t.attachEvent("onBeforeSmartRender",function(){e()}),t.attachEvent("onBeforeParse",e),t.attachEvent("onDataRender",function(){t._cached_functions.deactivate()});var n=null;t.attachEvent("onSmartRender",function(){n&&clearTimeout(n),n=setTimeout(function(){t._cached_functions.deactivate()},1e3)}),t.attachEvent("onBeforeGanttReady",function(){return t._cached_functions.update_if_changed(t),!0})}},function(t,e){function n(t){"@babel/helpers - typeof";return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}t.exports=function(t){t.getTaskType=function(e){var r=e;for(var i in e&&"object"==n(e)&&(r=e.type),this.config.types)if(this.config.types[i]==r)return r;return t.config.types.task}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){}},function(t,e,n){var r=n(2);t.exports=function(t){function e(e){e.$effective_calendar=t.getTaskCalendar(e).id,e.start_date=t.getClosestWorkTime({dir:"future",date:e.start_date,unit:t.config.duration_unit,task:e}),e.end_date=t.calculateEndDate(e)}function n(e){var n=null,r=null,i=void 0!==e?e:t.config.root_id,o=[];return t.eachTask(function(e){t.getTaskType(e.type)==t.config.types.project||t.isUnscheduledTask(e)||(e.rollup&&o.push(e.id),e.start_date&&!e.$no_start&&(!n||n>e.start_date.valueOf())&&(n=e.start_date.valueOf()),e.end_date&&!e.$no_end&&(!r||r<e.end_date.valueOf())&&(r=e.end_date.valueOf()))},i),{start_date:n?new Date(n):null,end_date:r?new Date(r):null,rollup:o}}t.isUnscheduledTask=function(e){return t.assert(e&&e instanceof Object,"Invalid argument <b>task</b>="+e+" of gantt.isUnscheduledTask. Task object was expected"),!!e.unscheduled||!e.start_date},t._isAllowedUnscheduledTask=function(e){return!(!e.unscheduled||!t.config.show_unscheduled)},t._isTaskInTimelineLimits=function(t){var e=t.start_date?t.start_date.valueOf():null,n=t.end_date?t.end_date.valueOf():null;return!!(e&&n&&e<=this._max_date.valueOf()&&n>=this._min_date.valueOf())},t.isTaskVisible=function(t){if(!this.isTaskExists(t))return!1;var e=this.getTask(t);return!(!this._isAllowedUnscheduledTask(e)&&!this._isTaskInTimelineLimits(e)||!(this.getGlobalTaskIndex(t)>=0))},t._getProjectEnd=function(){if(t.config.project_end)return t.config.project_end;var e=t.getTaskByTime();return(e=e.sort(function(t,e){return+t.end_date>+e.end_date?1:-1})).length?e[e.length-1].end_date:null},t._getProjectStart=function(){if(t.config.project_start)return t.config.project_start;if(t.config.start_date)return t.config.start_date;if(t.getState().min_date)return t.getState().min_date;var e=t.getTaskByTime();return(e=e.sort(function(t,e){return+t.start_date>+e.start_date?1:-1})).length?e[0].start_date:null};var i=function(e,n){var r=!(!n||n==t.config.root_id||!t.isTaskExists(n))&&t.getTask(n),i=null;if(r)i=t.config.schedule_from_end?t.calculateEndDate({start_date:r.end_date,duration:-t.config.duration_step,task:e}):r.start_date;else if(t.config.schedule_from_end)i=t.calculateEndDate({start_date:t._getProjectEnd(),duration:-t.config.duration_step,task:e});else{var o=t.getTaskByIndex(0);i=o?o.start_date?o.start_date:o.end_date?t.calculateEndDate({start_date:o.end_date,duration:-t.config.duration_step,task:e}):null:t.config.start_date||t.getState().min_date}return t.assert(i,"Invalid dates"),new Date(i)};t._set_default_task_timing=function(e){e.start_date=e.start_date||i(e,t.getParent(e)),e.duration=e.duration||t.config.duration_step,e.end_date=e.end_date||t.calculateEndDate(e)},t.createTask=function(e,n,r){return e=e||{},t.defined(e.id)||(e.id=t.uid()),e.start_date||(e.start_date=i(e,n)),void 0===e.text&&(e.text=t.locale.labels.new_task),void 0===e.duration&&(e.duration=1),this.isTaskExists(n)&&(this.setParent(e,n,!0),this.getTask(n).$open=!0),this.callEvent("onTaskCreated",[e])?(this.config.details_on_create?(t.isTaskExists(e.id)?t.getTask(e.id).$index!=e.$index&&(e.start_date&&"string"==typeof e.start_date&&(e.start_date=this.date.parseDate(e.start_date,"parse_date")),e.end_date&&"string"==typeof e.end_date&&(e.end_date=this.date.parseDate(e.end_date,"parse_date")),this.$data.tasksStore.updateItem(e.id,e)):(e.$new=!0,this.silent(function(){t.$data.tasksStore.addItem(e,r)})),this.selectTask(e.id),this.refreshData(),this.showLightbox(e.id)):this.addTask(e,n,r)&&(this.showTask(e.id),this.selectTask(e.id)),e.id):null},t._update_flags=function(e,n){var r=t.$data.tasksStore;void 0===e?(this._lightbox_id=null,r.silent(function(){r.unselect()}),this.getSelectedTasks&&this._multiselect.reset(),this._tasks_dnd&&this._tasks_dnd.drag&&(this._tasks_dnd.drag.id=null)):(this._lightbox_id==e&&(this._lightbox_id=n),r.getSelectedId()==e&&r.silent(function(){r.unselect(e),r.select(n)}),this._tasks_dnd&&this._tasks_dnd.drag&&this._tasks_dnd.drag.id==e&&(this._tasks_dnd.drag.id=n))};var o=function(e,n){var r=t.getTaskType(e.type),i={type:r,$no_start:!1,$no_end:!1};return n||r!=e.$rendered_type?(r==t.config.types.project?i.$no_end=i.$no_start=!0:r!=t.config.types.milestone&&(i.$no_end=!(e.end_date||e.duration),i.$no_start=!e.start_date,t._isAllowedUnscheduledTask(e)&&(i.$no_end=i.$no_start=!1)),i):(i.$no_start=e.$no_start,i.$no_end=e.$no_end,i)};t._init_task_timing=function(t){var n=o(t,!0),r=t.$rendered_type!=n.type,i=n.type;r&&(t.$no_start=n.$no_start,t.$no_end=n.$no_end,t.$rendered_type=n.type),r&&i!=this.config.types.milestone&&i==this.config.types.project&&(this._set_default_task_timing(t),t.$calculate_duration=!1),i==this.config.types.milestone&&(t.end_date=t.start_date),t.start_date&&t.end_date&&!1!==t.$calculate_duration&&(t.duration=this.calculateDuration(t)),t.$calculate_duration||(t.$calculate_duration=!0),t.end_date||(t.end_date=t.start_date),t.duration=t.duration||0,0===this.config.min_duration&&0===t.duration&&(t.$no_end=!1);var a=this.getTaskCalendar(t);t.$effective_calendar&&t.$effective_calendar!==a.id&&(e(t),this.config.inherit_calendar&&this.isSummaryTask(t)&&this.eachTask(function(t){e(t)},t.id)),t.$effective_calendar=a.id},t.isSummaryTask=function(e){t.assert(e&&e instanceof Object,"Invalid argument <b>task</b>="+e+" of gantt.isSummaryTask. Task object was expected");var n=o(e);return!(!n.$no_end&&!n.$no_start)},t.resetProjectDates=function(t){var e=o(t);if(e.$no_end||e.$no_start){var r=n(t.id);(function(t,e,n,r){e.$no_start&&(t.start_date=n?new Date(n):i(t,this.getParent(t))),e.$no_end&&(t.end_date=r?new Date(r):this.calculateEndDate({start_date:t.start_date,duration:this.config.duration_step,task:t})),(e.$no_start||e.$no_end)&&this._init_task_timing(t)}).call(this,t,e,r.start_date,r.end_date),t.$rollup=r.rollup}},t.getSubtaskDuration=function(e){var n=0,r=void 0!==e?e:t.config.root_id;return this.eachTask(function(e){this.getTaskType(e.type)==t.config.types.project||this.isUnscheduledTask(e)||(n+=e.duration)},r),n},t.getSubtaskDates=function(t){var e=n(t);return{start_date:e.start_date,end_date:e.end_date}},t._update_parents=function(e,n,r){if(e){var i=this.getTask(e);i.rollup&&(r=!0);var a=this.getParent(i),s=o(i),u=!0;if(r||i.start_date&&i.end_date&&(s.$no_start||s.$no_end)){var l=i.start_date.valueOf(),c=i.end_date.valueOf();t.resetProjectDates(i),r||l!=i.start_date.valueOf()||c!=i.end_date.valueOf()||(u=!1),u&&!n&&this.refreshTask(i.id,!0)}u&&a&&this.isTaskExists(a)&&this._update_parents(a,n,r)}},t.roundDate=function(e){var n=t.getScale();r.isDate(e)&&(e={date:e,unit:n?n.unit:t.config.duration_unit,step:n?n.step:t.config.duration_step});var i,o,a,s=e.date,u=e.step,l=e.unit;if(!n)return s;if(l==n.unit&&u==n.step&&+s>=+n.min_date&&+s<=+n.max_date)a=Math.floor(t.columnIndexByDate(s)),n.trace_x[a]||(a-=1,n.rtl&&(a=0)),o=new Date(n.trace_x[a]),i=t.date.add(o,u,l);else{for(a=Math.floor(t.columnIndexByDate(s)),i=t.date[l+"_start"](new Date(n.min_date)),n.trace_x[a]&&(i=t.date[l+"_start"](n.trace_x[a]));+i<+s;){var c=(i=t.date[l+"_start"](t.date.add(i,u,l))).getTimezoneOffset();i=t._correct_dst_change(i,c,i,l),t.date[l+"_start"]&&(i=t.date[l+"_start"](i))}o=t.date.add(i,-1*u,l)}return e.dir&&"future"==e.dir?i:e.dir&&"past"==e.dir?o:Math.abs(s-o)<Math.abs(i-s)?o:i},t.correctTaskWorkTime=function(e){t.config.work_time&&t.config.correct_work_time&&(this.isWorkTime(e.start_date,void 0,e)?this.isWorkTime(new Date(+e.end_date-1),void 0,e)||(e.end_date=this.calculateEndDate(e)):(e.start_date=this.getClosestWorkTime({date:e.start_date,dir:"future",task:e}),e.end_date=this.calculateEndDate(e)))},t.attachEvent("onBeforeTaskUpdate",function(e,n){return t._init_task_timing(n),!0}),t.attachEvent("onBeforeTaskAdd",function(e,n){return t._init_task_timing(n),!0}),t.attachEvent("onAfterTaskMove",function(e,n,r){return t._init_task_timing(t.getTask(e)),!0})}},function(t,e,n){var r=n(0);t.exports={create:function(t,e){return{getWorkHours:function(t){return e.getWorkHours(t)},setWorkTime:function(t){return e.setWorkTime(t)},unsetWorkTime:function(t){e.unsetWorkTime(t)},isWorkTime:function(t,n,r){return e.isWorkTime(t,n,r)},getClosestWorkTime:function(t){return e.getClosestWorkTime(t)},calculateDuration:function(t,n,r){return e.calculateDuration(t,n,r)},_hasDuration:function(t,n,r){return e.hasDuration(t,n,r)},calculateEndDate:function(t,n,r,i){return e.calculateEndDate(t,n,r,i)},mergeCalendars:r.bind(t.mergeCalendars,t),createCalendar:r.bind(t.createCalendar,t),addCalendar:r.bind(t.addCalendar,t),getCalendar:r.bind(t.getCalendar,t),getCalendars:r.bind(t.getCalendars,t),getResourceCalendar:r.bind(t.getResourceCalendar,t),getTaskCalendar:r.bind(t.getTaskCalendar,t),deleteCalendar:r.bind(t.deleteCalendar,t)}}}},function(t,e){function n(t,e){this.argumentsHelper=e,this.$gantt=t}n.prototype={getWorkHours:function(){return[0,24]},setWorkTime:function(){return!0},unsetWorkTime:function(){return!0},isWorkTime:function(){return!0},getClosestWorkTime:function(t){return this.argumentsHelper.getClosestWorkTimeArguments.apply(this.argumentsHelper,arguments).date},calculateDuration:function(){var t=this.argumentsHelper.getDurationArguments.apply(this.argumentsHelper,arguments),e=t.start_date,n=t.end_date,r=t.unit,i=t.step;return this._calculateDuration(e,n,r,i)},_calculateDuration:function(t,e,n,r){var i=this.$gantt.date,o={week:6048e5,day:864e5,hour:36e5,minute:6e4},a=0;if(o[n])a=Math.round((e-t)/(r*o[n]));else{for(var s=new Date(t),u=new Date(e);s.valueOf()<u.valueOf();)a+=1,s=i.add(s,r,n);s.valueOf()!=e.valueOf()&&(a+=(u-s)/(i.add(s,r,n)-s))}return Math.round(a)},hasDuration:function(){var t=this.argumentsHelper.getDurationArguments.apply(this.argumentsHelper,arguments),e=t.start_date,n=t.end_date;return!!t.unit&&(e=new Date(e),n=new Date(n),e.valueOf()<n.valueOf())},hasWorkTime:function(){return!0},equals:function(t){return t instanceof n},calculateEndDate:function(){var t=this.argumentsHelper.calculateEndDateArguments.apply(this.argumentsHelper,arguments),e=t.start_date,n=t.duration,r=t.unit,i=t.step;return this.$gantt.date.add(e,i*n,r)}},t.exports=n},function(t,e,n){function r(t){this.$gantt=t.$gantt,this.argumentsHelper=i(this.$gantt),this.calendarManager=t,this.$disabledCalendar=new o(this.$gantt,this.argumentsHelper)}var i=n(34),o=n(163);r.prototype={_getCalendar:function(t){var e;if(this.$gantt.config.work_time){var n=this.calendarManager;t.task?e=n.getTaskCalendar(t.task):t.id?e=n.getTaskCalendar(t):t.calendar&&(e=t.calendar),e||(e=n.getTaskCalendar())}else e=this.$disabledCalendar;return e},getWorkHours:function(t){return t=this.argumentsHelper.getWorkHoursArguments.apply(this.argumentsHelper,arguments),this._getCalendar(t).getWorkHours(t.date)},setWorkTime:function(t,e){return t=this.argumentsHelper.setWorkTimeArguments.apply(this.argumentsHelper,arguments),e||(e=this.calendarManager.getCalendar()),e.setWorkTime(t)},unsetWorkTime:function(t,e){return t=this.argumentsHelper.unsetWorkTimeArguments.apply(this.argumentsHelper,arguments),e||(e=this.calendarManager.getCalendar()),e.unsetWorkTime(t)},isWorkTime:function(t,e,n,r){var i=this.argumentsHelper.isWorkTimeArguments.apply(this.argumentsHelper,arguments);return this._getCalendar(i).isWorkTime(i)},getClosestWorkTime:function(t){return t=this.argumentsHelper.getClosestWorkTimeArguments.apply(this.argumentsHelper,arguments),this._getCalendar(t).getClosestWorkTime(t)},calculateDuration:function(){var t=this.argumentsHelper.getDurationArguments.apply(this.argumentsHelper,arguments);return this._getCalendar(t).calculateDuration(t)},hasDuration:function(){var t=this.argumentsHelper.hasDurationArguments.apply(this.argumentsHelper,arguments);return this._getCalendar(t).hasDuration(t)},calculateEndDate:function(t){return t=this.argumentsHelper.calculateEndDateArguments.apply(this.argumentsHelper,arguments),this._getCalendar(t).calculateEndDate(t)}},t.exports=r},function(t,e){t.exports=function(){var t={};return{getCalendarIdFromMultipleResources:function(e,n){var r=function(t){return t.map(function(t){return t&&t.resource_id?t.resource_id:t}).sort().join("-")}(e);if(e.length){if(1===e.length)return n.getResourceCalendar(r).id;if(t[r])return t[r].id;var i=function(t,e){return e.mergeCalendars(t.map(function(t){var n=t&&t.resource_id?t.resource_id:t;return e.getResourceCalendar(n)}))}(e,n);return t[r]=i,n.addCalendar(i)}return null}}}},function(t,e){function n(t){"@babel/helpers - typeof";return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}t.exports={isLegacyResourceCalendarFormat:function(t){if(!t)return!1;for(var e in t)if(t[e]&&"object"===n(t[e]))return!0;return!1},getResourceProperty:function(t){var e=t.resource_calendars,n=t.resource_property;if(this.isLegacyResourceCalendarFormat(e))for(var r in t){n=r;break}return n},getCalendarIdFromLegacyConfig:function(t,e){if(e)for(var n in e){var r=e[n];if(t[n]){var i=r[t[n]];if(i)return i}}return null}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(){this.clear()}return t.prototype._getCacheObject=function(t,e,n){var r=this._cache;r[e]||(r[e]=[]);var i=r[e];i||(i=r[e]={});var o=i[n];o||(o=i[n]={});var a=t.getFullYear(),s=o[a];return s||(s=o[a]={durations:{},endDates:{}}),s},t.prototype._endDateCacheKey=function(t,e){return String(t)+"-"+String(e)},t.prototype._durationCacheKey=function(t,e){return String(t)+"-"+String(e)},t.prototype.getEndDate=function(t,e,n,r,i){var o,a=this._getCacheObject(t,n,r),s=t.valueOf(),u=this._endDateCacheKey(s,e);if(void 0===a.endDates[u]){var l=i(),c=l.valueOf();a.endDates[u]=c,a.durations[this._durationCacheKey(s,c)]=e,o=l}else o=new Date(a.endDates[u]);return o},t.prototype.getDuration=function(t,e,n,r,i){var o,a=this._getCacheObject(t,n,r),s=t.valueOf(),u=e.valueOf(),l=this._durationCacheKey(s,u);if(void 0===a.durations[l]){var c=i();a.durations[l]=c.valueOf(),o=c}else o=a.durations[l];return o},t.prototype.clear=function(){this._cache={}},t}();e.DateDurationCache=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){return function(t){var e=this;this.getMinutesPerWeek=function(t){var n=t.valueOf();if(e._weekCache.has(n))return e._weekCache.get(n);for(var r=e._calendar,i=e._calendar.$gantt,o=0,a=i.date.week_start(new Date(t)),s=0;s<7;s++)o+=60*r.getHoursPerDay(a),a=i.date.add(a,1,"day");return e._weekCache.set(n,o),o},this.getMinutesPerMonth=function(t){var n=t.valueOf();if(e._monthCache.has(n))return e._monthCache.get(n);for(var r=e._calendar,i=e._calendar.$gantt,o=0,a=i.date.week_start(new Date(t)),s=i.date.add(a,1,"month").valueOf();a.valueOf()<s;)o+=60*r.getHoursPerDay(a),a=i.date.add(a,1,"day");return e._monthCache.set(n,o),o},this.clear=function(){e._weekCache=new Map,e._monthCache=new Map},this.clear(),this._calendar=t}}();e.LargerUnitsCache=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(){this.clear()}return t.prototype.getItem=function(t,e,n){var r=this._cache;if(r&&r[t]){var i=r[t];if(void 0===i)return-1;var o=i[n.getFullYear()];if(o&&void 0!==o[e])return o[e]}return-1},t.prototype.setItem=function(t,e,n,r){if(t&&e){var i=this._cache;if(i){i[t]||(i[t]=[]);var o=i[t],a=r.getFullYear(),s=o[a];s||(s=o[a]={}),s[e]=n}}},t.prototype.clear=function(){this._cache={}},t}();e.WorkUnitsObjectCache=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(){this.clear()}return t.prototype.getItem=function(t,e,n){if(this._cache.has(t)){var r=this._cache.get(t)[n.getFullYear()];if(r&&r.has(e))return r.get(e)}return-1},t.prototype.setItem=function(t,e,n,r){if(t&&e){var i,o=this._cache,a=r.getFullYear();o.has(t)?i=o.get(t):(i=[],o.set(t,i));var s=i[a];s||(s=i[a]=new Map),s.set(e,n)}},t.prototype.clear=function(){this._cache=new Map},t}();e.WorkUnitsMapCache=r},function(t,e,n){function r(t,e){this.argumentsHelper=e,this.$gantt=t,this._workingUnitsCache=i(),this._largeUnitsCache=new o(this),this._dateDurationCache=new s,this._worktime=null,this._cached_timestamps={},this._cached_timestamps_count=0}var i=n(33).createCacheObject,o=n(33).LargerUnitsCache,a=n(0),s=n(167).DateDurationCache;r.prototype={units:["year","month","week","day","hour","minute"],_clearCaches:function(){this._workingUnitsCache.clear(),this._largeUnitsCache.clear(),this._dateDurationCache.clear()},_getUnitOrder:function(t){for(var e=0,n=this.units.length;e<n;e++)if(this.units[e]==t)return e},_resetTimestampCache:function(){this._cached_timestamps={},this._cached_timestamps_count=0},_timestamp:function(t){this._cached_timestamps_count>1e6&&this._resetTimestampCache();var e=null;if(t.day||0===t.day)e=t.day;else if(t.date){var n=String(t.date.valueOf());this._cached_timestamps[n]?e=this._cached_timestamps[n]:(e=Date.UTC(t.date.getFullYear(),t.date.getMonth(),t.date.getDate()),this._cached_timestamps[n]=e,this._cached_timestamps_count++)}return e},_checkIfWorkingUnit:function(t,e){if(!this["_is_work_"+e]){var n=this.$gantt.date["".concat(e,"_start")](new Date(t)),r=this.$gantt.date.add(n,1,e);return this.hasDuration(n,r)}return this["_is_work_"+e](t)},_is_work_day:function(t){var e=this._getWorkHours(t);return!!Array.isArray(e)&&e.length>0},_is_work_hour:function(t){for(var e=this._getWorkHours(t),n=t.getHours(),r=0;r<e.length;r++)if(n>=e[r].startHour&&n<e[r].endHour)return!0;return!1},_getTimeOfDayStamp:function(t,e){var n=t.getHours();return t.getHours()||t.getMinutes()||!e||(n=24),60*n*60+60*t.getMinutes()},_is_work_minute:function(t){for(var e=this._getWorkHours(t),n=this._getTimeOfDayStamp(t),r=0;r<e.length;r++)if(n>=e[r].start&&n<e[r].end)return!0;return!1},_nextDate:function(t,e,n){return this.$gantt.date.add(t,n,e)},_getWorkUnitsBetweenGeneric:function(t,e,n,r){var i=this.$gantt.date,o=new Date(t),a=new Date(e);r=r||1;var s,u,l=0,c=null,f=!1;(s=i[n+"_start"](new Date(o))).valueOf()!=o.valueOf()&&(f=!0);var d=!1;(u=i[n+"_start"](new Date(e))).valueOf()!=e.valueOf()&&(d=!0);for(var h=!1;o.valueOf()<a.valueOf();){if(h=(c=this._nextDate(o,n,r)).valueOf()>a.valueOf(),this._isWorkTime(o,n))(f||d&&h)&&(s=i[n+"_start"](new Date(o)),u=i.add(s,r,n)),f?(f=!1,c=this._nextDate(s,n,r),l+=(u.valueOf()-o.valueOf())/(u.valueOf()-s.valueOf())):d&&h?(d=!1,l+=(a.valueOf()-o.valueOf())/(u.valueOf()-s.valueOf())):l++;else{var p=this._getUnitOrder(n),g=this.units[p-1];g&&!this._isWorkTime(o,g)&&(c=this._getClosestWorkTimeFuture(o,g))}o=c}return l},_getMinutesPerHour:function(t){var e=this._getTimeOfDayStamp(t),n=this._getTimeOfDayStamp(this._nextDate(t,"hour",1));0===n&&(n=86400);for(var r=this._getWorkHours(t),i=0;i<r.length;i++){var o=r[i];if(e>=o.start&&n<=o.end)return 60;if(e<o.end&&n>o.start)return(Math.min(n,o.end)-Math.max(e,o.start))/60}return 0},_getMinutesPerDay:function(t){var e=0;return this._getWorkHours(t).forEach(function(t){e+=t.durationMinutes}),e},getHoursPerDay:function(t){var e=0;return this._getWorkHours(t).forEach(function(t){e+=t.durationHours}),e},_getWorkUnitsForRange:function(t,e,n,r){var i,o=0,s=new Date(t),u=new Date(e);for(i="minute"==n?a.bind(this._getMinutesPerDay,this):a.bind(this.getHoursPerDay,this);s.valueOf()<u.valueOf();)if(u-s>27648e5&&0===s.getDate()){var l=this._largeUnitsCache.getMinutesPerMonth(s);"hour"==n&&(l/=60),o+=l,s=this.$gantt.date.add(s,1,"month")}else{if(u-s>13824e5){var c=this.$gantt.date.week_start(new Date(s));if(s.valueOf()===c.valueOf()){l=this._largeUnitsCache.getMinutesPerWeek(s),"hour"==n&&(l/=60),o+=l,s=this.$gantt.date.add(s,7,"day");continue}}o+=i(s),s=this._nextDate(s,"day",1)}return o/r},_getMinutesBetweenSingleDay:function(t,e){for(var n=this._getIntervalTimestamp(t,e),r=this._getWorkHours(t),i=0,o=0;o<r.length;o++){var a=r[o];if(n.end>=a.start&&n.start<=a.end){var s=Math.max(a.start,n.start),u=Math.min(a.end,n.end);i+=(u-s)/60,n.start=u}}return Math.floor(i)},_getMinutesBetween:function(t,e,n,r){var i=new Date(t),o=new Date(e);r=r||1;var a=new Date(i),s=this.$gantt.date.add(this.$gantt.date.day_start(new Date(i)),1,"day");if(o.valueOf()<=s.valueOf())return this._getMinutesBetweenSingleDay(t,e);var u=this.$gantt.date.day_start(new Date(o)),l=o,c=this._getMinutesBetweenSingleDay(a,s),f=this._getMinutesBetweenSingleDay(u,l);return c+this._getWorkUnitsForRange(s,u,n,r)+f},_getHoursBetween:function(t,e,n,r){var i=new Date(t),o=new Date(e);r=r||1;var a=new Date(i),s=this.$gantt.date.add(this.$gantt.date.day_start(new Date(i)),1,"day");if(o.valueOf()<=s.valueOf())return Math.round(this._getMinutesBetweenSingleDay(t,e)/60);var u=this.$gantt.date.day_start(new Date(o)),l=o,c=this._getMinutesBetweenSingleDay(a,s,n,r)/60,f=this._getMinutesBetweenSingleDay(u,l,n,r)/60,d=c+this._getWorkUnitsForRange(s,u,n,r)+f;return Math.round(d)},getConfig:function(){return this._worktime},_setConfig:function(t){this._worktime=t,this._parseSettings(),this._clearCaches()},_parseSettings:function(){var t=this.getConfig();for(var e in t.parsed={dates:{},hours:null,haveCustomWeeks:!1,customWeeks:{},customWeeksRangeStart:null,customWeeksRangeEnd:null,customWeeksBoundaries:[]},t.parsed.hours=this._parseHours(t.hours),t.dates)t.parsed.dates[e]=this._parseHours(t.dates[e]);if(t.customWeeks){var n=null,r=null;for(var e in t.customWeeks){var i=t.customWeeks[e];if(i.from&&i.to){var o=i.from,a=i.to;(!n||n>o.valueOf())&&(n=o.valueOf()),(!r||r<a.valueOf())&&(r=a.valueOf()),t.parsed.customWeeksBoundaries.push({from:o.valueOf(),fromReadable:new Date(o),to:a.valueOf(),toReadable:new Date(a),name:e}),t.parsed.haveCustomWeeks=!0;var s=t.parsed.customWeeks[e]={from:i.from,to:i.to,hours:this._parseHours(i.hours),dates:{}};for(var u in i.dates)s.dates[u]=this._parseHours(i.dates[u])}}t.parsed.customWeeksRangeStart=n,t.parsed.customWeeksRangeEnd=r}},_tryChangeCalendarSettings:function(t){var e=JSON.stringify(this.getConfig());return t(),!!this.hasWorkTime()||(this._setConfig(JSON.parse(e)),this._clearCaches(),!1)},_arraysEqual:function(t,e){if(t===e)return!0;if(!t||!e)return!1;if(t.length!=e.length)return!1;for(var n=0;n<t.length;++n)if(t[n]!==e[n])return!1;return!0},_compareSettings:function(t,e){if(!this._arraysEqual(t.hours,e.hours))return!1;var n=Object.keys(t.dates),r=Object.keys(e.dates);if(n.sort(),r.sort(),!this._arraysEqual(n,r))return!1;for(var i=0;i<n.length;i++){var o=n[i],a=t.dates[o],s=t.dates[o];if(a!==s&&!(Array.isArray(a)&&Array.isArray(s)&&this._arraysEqual(a,s)))return!1}return!0},equals:function(t){if(!(t instanceof r))return!1;var e=this.getConfig(),n=t.getConfig();if(!this._compareSettings(e,n))return!1;if(e.parsed.haveCustomWeeks&&n.parsed.haveCustomWeeks){if(e.parsed.customWeeksBoundaries.length!=n.parsed.customWeeksBoundaries.length)return!1;for(var i in e.parsed.customWeeks){var o=e.parsed.customWeeks[i],a=n.parsed.customWeeks[i];if(!a)return!1;if(!this._compareSettings(o,a))return!1}}else if(e.parse.haveCustomWeeks!==n.parsed.haveCustomWeeks)return!1;return!0},getWorkHours:function(){var t=this.argumentsHelper.getWorkHoursArguments.apply(this.argumentsHelper,arguments);return this._getWorkHours(t.date,!1)},_getWorkHours:function(t,e){var n=this.getConfig();if(!1!==e&&(n=n.parsed),!t)return n.hours;var r=this._timestamp({date:t});if(n.haveCustomWeeks&&n.customWeeksRangeStart<=r&&n.customWeeksRangeEnd>r)for(var i=0;i<n.customWeeksBoundaries.length;i++)if(n.customWeeksBoundaries[i].from<=r&&n.customWeeksBoundaries[i].to>r){n=n.customWeeks[n.customWeeksBoundaries[i].name];break}var o=!0;return void 0!==n.dates[r]?o=n.dates[r]:void 0!==n.dates[t.getDay()]&&(o=n.dates[t.getDay()]),!0===o?n.hours:o||[]},_getIntervalTimestamp:function(t,e){var n={start:0,end:0};n.start=60*t.getHours()*60+60*t.getMinutes()+t.getSeconds();var r=e.getHours();return!r&&!e.getMinutes()&&!e.getSeconds()&&t.valueOf()<e.valueOf()&&(r=24),n.end=60*r*60+60*e.getMinutes()+e.getSeconds(),n},_parseHours:function(t){if(Array.isArray(t)){var e=[];t.forEach(function(t){"number"==typeof t?e.push(60*t*60):"string"==typeof t&&t.split("-").map(function(t){return t.trim()}).forEach(function(t){var n=t.split(":").map(function(t){return t.trim()}),r=parseInt(60*n[0]*60);n[1]&&(r+=parseInt(60*n[1])),n[2]&&(r+=parseInt(n[2])),e.push(r)})});for(var n=[],r=0;r<e.length;r+=2){var i=e[r],o=e[r+1],a=o-i;n.push({start:i,end:o,startHour:Math.floor(i/3600),startMinute:Math.floor(i/60),endHour:Math.ceil(o/3600),endMinute:Math.ceil(o/60),durationSeconds:a,durationMinutes:a/60,durationHours:a/3600})}return n}return t},setWorkTime:function(t){return this._tryChangeCalendarSettings(a.bind(function(){var e=void 0===t.hours||t.hours,n=this._timestamp(t),r=this.getConfig();if(null!==n?r.dates[n]=e:t.customWeeks||(r.hours=e),t.customWeeks)for(var i in r.customWeeks||(r.customWeeks={}),t.customWeeks)r.customWeeks[i]=t.customWeeks[i];this._parseSettings(),this._clearCaches()},this))},unsetWorkTime:function(t){return this._tryChangeCalendarSettings(a.bind(function(){if(t){var e=this._timestamp(t);null!==e&&delete this.getConfig().dates[e]}else this.reset_calendar();this._parseSettings(),this._clearCaches()},this))},_isWorkTime:function(t,e){var n=-1,r=null;return r=String(t.valueOf()),-1==(n=this._workingUnitsCache.getItem(e,r,t))&&(n=this._checkIfWorkingUnit(t,e),this._workingUnitsCache.setItem(e,r,n,t)),n},isWorkTime:function(){var t=this.argumentsHelper.isWorkTimeArguments.apply(this.argumentsHelper,arguments);return this._isWorkTime(t.date,t.unit)},calculateDuration:function(){var t=this.argumentsHelper.getDurationArguments.apply(this.argumentsHelper,arguments);if(!t.unit)return!1;var e=this;return this._dateDurationCache.getDuration(t.start_date,t.end_date,t.unit,t.step,function(){return e._calculateDuration(t.start_date,t.end_date,t.unit,t.step)})},_calculateDuration:function(t,e,n,r){var i=0,o=1;if(t.valueOf()>e.valueOf()){var a=e;e=t,t=a,o=-1}return i="hour"==n&&1==r?this._getHoursBetween(t,e,n,r):"minute"==n&&1==r?this._getMinutesBetween(t,e,n,r):this._getWorkUnitsBetweenGeneric(t,e,n,r),o*Math.round(i)},hasDuration:function(){var t=this.argumentsHelper.getDurationArguments.apply(this.argumentsHelper,arguments),e=t.start_date,n=t.end_date,r=t.unit,i=t.step;if(!r)return!1;var o=new Date(e),a=new Date(n);for(i=i||1;o.valueOf()<a.valueOf();){if(this._isWorkTime(o,r))return!0;o=this._nextDate(o,r,i)}return!1},calculateEndDate:function(){var t=this.argumentsHelper.calculateEndDateArguments.apply(this.argumentsHelper,arguments),e=t.start_date,n=t.duration,r=t.unit,i=t.step;if(!r)return!1;var o=t.duration>=0?1:-1;n=Math.abs(1*n);var a=this;return this._dateDurationCache.getEndDate(e,n,r,i*o,function(){return a._calculateEndDate(e,n,r,i*o)})},_calculateEndDate:function(t,e,n,r){return!!n&&(1==r&&"minute"==n?this._calculateMinuteEndDate(t,e,r):-1==r&&"minute"==n?this._subtractMinuteDate(t,e,r):1==r&&"hour"==n?this._calculateHourEndDate(t,e,r):this._addInterval(t,e,n,r,null).end)},_addInterval:function(t,e,n,r,i){for(var o=0,a=t,s=!1;o<e&&(!i||!i(a));){var u=this._nextDate(a,n,r);"day"==n&&(s=s||!a.getHours()&&u.getHours())&&(u.setHours(0),u.getHours()||(s=!1));var l=new Date(u.valueOf()+1);r>0&&(l=new Date(u.valueOf()-1)),this._isWorkTime(l,n)&&!s&&o++,a=u}return{end:a,start:t,added:o}},_addHoursUntilDayEnd:function(t,e){for(var n=this.$gantt.date.add(this.$gantt.date.day_start(new Date(t)),1,"day"),r=0,i=e,o=this._getIntervalTimestamp(t,n),a=this._getWorkHours(t),s=0;s<a.length&&r<e;s++){var u=a[s];if(o.end>=u.start&&o.start<=u.end){var l=Math.max(u.start,o.start),c=Math.min(u.end,o.end),f=(c-l)/3600;f>i&&(f=i,c=l+60*i*60);var d=Math.round((c-l)/3600);r+=d,i-=d,o.start=c}}var h=n;return r===e&&(h=new Date(t.getFullYear(),t.getMonth(),t.getDate(),0,0,o.start)),{added:r,end:h}},_calculateHourEndDate:function(t,e,n){var r=new Date(t),i=0;n=n||1,e=Math.abs(1*e);var o=this._addHoursUntilDayEnd(r,e);if(i=o.added,r=o.end,l=e-i){for(var a=r;i<e;){var s=this._nextDate(a,"day",n);s.setHours(0),s.setMinutes(0),s.setSeconds(0);var u=0;if(i+(u=n>0?this.getHoursPerDay(new Date(s.valueOf()-1)):this.getHoursPerDay(new Date(s.valueOf()+1)))>=e)break;i+=u,a=s}r=a}if(i<e){var l=e-i;r=(o=this._addHoursUntilDayEnd(r,l)).end}return r},_addMinutesUntilHourEnd:function(t,e){if(0===t.getMinutes())return{added:0,end:new Date(t)};for(var n=this.$gantt.date.add(this.$gantt.date.hour_start(new Date(t)),1,"hour"),r=0,i=e,o=this._getIntervalTimestamp(t,n),a=this._getWorkHours(t),s=0;s<a.length&&r<e;s++){var u=a[s];if(o.end>=u.start&&o.start<=u.end){var l=Math.max(u.start,o.start),c=Math.min(u.end,o.end),f=(c-l)/60;f>i&&(f=i,c=l+60*i);var d=Math.round((c-l)/60);i-=d,r+=d,o.start=c}}var h=n;return r===e&&(h=new Date(t.getFullYear(),t.getMonth(),t.getDate(),0,0,o.start)),{added:r,end:h}},_subtractMinutesUntilHourStart:function(t,e){for(var n=this.$gantt.date.hour_start(new Date(t)),r=0,i=e,o=60*n.getHours()*60+60*n.getMinutes()+n.getSeconds(),a=60*t.getHours()*60+60*t.getMinutes()+t.getSeconds(),s=this._getWorkHours(t),u=s.length-1;u>=0&&r<e;u--){var l=s[u];if(a>l.start&&o<=l.end){var c=Math.min(a,l.end),f=Math.max(o,l.start),d=(c-f)/60;d>i&&(d=i,f=c-60*i);var h=Math.abs(Math.round((c-f)/60));i-=h,r+=h,a=f}}var p=n;return r===e&&(p=new Date(t.getFullYear(),t.getMonth(),t.getDate(),0,0,a)),{added:r,end:p}},_subtractMinuteDate:function(t,e,n){var r=new Date(t),i=0;n=n||-1,e=Math.abs(1*e),e=Math.round(e);var o=this._subtractMinutesUntilHourStart(r,e);i+=o.added,r=o.end;for(var a=0,s=[],u=0;i<e;){var l=this.$gantt.date.day_start(new Date(r)),c=!1;r.valueOf()===l.valueOf()&&(l=this.$gantt.date.add(l,-1,"day"),c=!0);var f=new Date(l.getFullYear(),l.getMonth(),l.getDate(),23,59,59,999).valueOf();f!==a&&(s=this._getWorkHours(l),u=this._getMinutesPerDay(l),a=f);var d=e-i,h=this._getTimeOfDayStamp(r,c);if(s.length&&u)if(s[s.length-1].end<=h&&d>u)i+=u,r=this.$gantt.date.add(r,-1,"day");else{for(var p=!1,g=null,m=s.length-1;m>=0;m--)if(s[m].start<h-1&&s[m].end>=h-1){p=!0,g=s[m];break}if(p)if(h===g.end&&d>=g.durationMinutes)i+=g.durationMinutes,r=this.$gantt.date.add(r,-g.durationMinutes,"minute");else if(d<=h/60-g.startMinute)i+=d,r=this.$gantt.date.add(r,-d,"minute");else{var v=this._getMinutesPerHour(r);v<=d?(i+=v,r=this._nextDate(r,"hour",n)):(i+=(o=this._subtractMinutesUntilHourStart(r,d)).added,r=o.end)}else if(0===r.getHours()&&0===r.getMinutes()&&0===r.getSeconds()){if((y=this._getClosestWorkTimePast(r,"hour")).valueOf()===r.valueOf()){var y=this.$gantt.date.add(r,-1,"day"),b=this._getWorkHours(y);if(b.length){var _=b[b.length-1];y.setSeconds(_.durationSeconds)}}r=y}else r=this._getClosestWorkTimePast(new Date(r-1),"hour")}else r=this.$gantt.date.add(r,-1,"day")}if(i<e){var w=e-i;i+=(o=this._subtractMinutesUntilHourStart(r,w)).added,r=o.end}return r},_calculateMinuteEndDate:function(t,e,n){var r=new Date(t),i=0;n=n||1,e=Math.abs(1*e),e=Math.round(e);var o=this._addMinutesUntilHourEnd(r,e);i+=o.added,r=o.end;for(var a=0,s=[],u=0;i<e;){var l=this.$gantt.date.day_start(new Date(r)).valueOf();l!==a&&(s=this._getWorkHours(r),u=this._getMinutesPerDay(r),a=l);var c=e-i,f=this._getTimeOfDayStamp(r);if(s.length&&u)if(s[0].start>=f&&c>=u){if(i+=u,c==u){r=new Date(r.getFullYear(),r.getMonth(),r.getDate(),0,0,s[s.length-1].end);break}r=this.$gantt.date.add(r,1,"day"),r=this.$gantt.date.day_start(r)}else{for(var d=!1,h=null,p=0;p<s.length;p++)if(s[p].start<=f&&s[p].end>f){d=!0,h=s[p];break}if(d)if(f===h.start&&c>=h.durationMinutes)i+=h.durationMinutes,r=this.$gantt.date.add(r,h.durationMinutes,"minute");else if(c<=h.endMinute-f/60)i+=c,r=this.$gantt.date.add(r,c,"minute");else{var g=this._getMinutesPerHour(r);g<=c?(i+=g,r=this._nextDate(r,"hour",n)):(i+=(o=this._addMinutesUntilHourEnd(r,c)).added,r=o.end)}else r=this._getClosestWorkTimeFuture(r,"hour")}else r=this.$gantt.date.add(this.$gantt.date.day_start(r),1,"day")}if(i<e){var m=e-i;i+=(o=this._addMinutesUntilHourEnd(r,m)).added,r=o.end}return r},getClosestWorkTime:function(){var t=this.argumentsHelper.getClosestWorkTimeArguments.apply(this.argumentsHelper,arguments);return this._getClosestWorkTime(t.date,t.unit,t.dir)},_getClosestWorkTime:function(t,e,n){var r=new Date(t);if(this._isWorkTime(r,e))return r;if(r=this.$gantt.date[e+"_start"](r),"any"!=n&&n)r="past"==n?this._getClosestWorkTimePast(r,e):this._getClosestWorkTimeFuture(r,e);else{var i=this._getClosestWorkTimeFuture(r,e),o=this._getClosestWorkTimePast(r,e);r=Math.abs(i-t)<=Math.abs(t-o)?i:o}return r},_getClosestWorkTimeFuture:function(t,e){return this._getClosestWorkTimeGeneric(t,e,1)},_getClosestWorkTimePast:function(t,e){var n=this._getClosestWorkTimeGeneric(t,e,-1);return this.$gantt.date.add(n,1,e)},_findClosestTimeInDay:function(t,e,n){var r=new Date(t),i=null,o=!1;this._getWorkHours(r).length||(r=this._getClosestWorkTime(r,"day",e<0?"past":"future"),e<0&&(r=new Date(r.valueOf()-1),o=!0),n=this._getWorkHours(r));var a=this._getTimeOfDayStamp(r);if(o&&(a=this._getTimeOfDayStamp(new Date(r.valueOf()+1),o)),e>0){for(var s=0;s<n.length;s++)if(n[s].start>=a){i=new Date(r.getFullYear(),r.getMonth(),r.getDate(),0,0,n[s].start);break}}else for(s=n.length-1;s>=0;s--){if(n[s].end<=a){i=new Date(r.getFullYear(),r.getMonth(),r.getDate(),0,0,n[s].end);break}if(n[s].end>a&&n[s].start<=a){i=new Date(r.getFullYear(),r.getMonth(),r.getDate(),0,0,a);break}}return i},_getClosestWorkMinute:function(t,e,n){var r=new Date(t),i=this._getWorkHours(r),o=this._findClosestTimeInDay(r,n,i);return o||(r=this.calculateEndDate(r,n,"day"),n>0?r=this.$gantt.date.day_start(r):(r=this.$gantt.date.day_start(r),r=this.$gantt.date.add(r,1,"day"),r=new Date(r.valueOf()-1)),i=this._getWorkHours(r),o=this._findClosestTimeInDay(r,n,i)),n<0&&(o=this.$gantt.date.add(o,-1,e)),o},_getClosestWorkTimeGeneric:function(t,e,n){if("hour"===e||"minute"===e)return this._getClosestWorkMinute(t,e,n);for(var r=this._getUnitOrder(e),i=this.units[r-1],o=t,a=0;!this._isWorkTime(o,e)&&(!i||this._isWorkTime(o,i)||(o=n>0?this._getClosestWorkTimeFuture(o,i):this._getClosestWorkTimePast(o,i),!this._isWorkTime(o,e)));){if(++a>3e3)return this.$gantt.assert(!1,"Invalid working time check"),!1;var s=o.getTimezoneOffset();o=this.$gantt.date.add(o,n,e),o=this.$gantt._correct_dst_change(o,s,n,e),this.$gantt.date[e+"_start"]&&(o=this.$gantt.date[e+"_start"](o))}return o},hasWorkTime:function(){var t=this.getConfig(),e=t.dates,n=[];for(var r in t.dates)Number(r)>6&&n.push(Number(r));var i=this._checkWorkHours(t.hours),o=!1;return[0,1,2,3,4,5,6].forEach(function(t){if(!o){var n=e[t];!0===n?o=i:Array.isArray(n)&&(o=this._checkWorkHours(n))}}.bind(this)),o},_checkWorkHours:function(t){if(0===t.length)return!1;for(var e=!1,n=0;n<t.length;n+=2)t[n]!==t[n+1]&&(e=!0);return e}},t.exports=r},function(t,e,n){function r(){}var i=n(0);r.prototype={_getIntervals:function(t){for(var e=[],n=0;n<t.length;n+=2)e.push({start:t[n],end:t[n+1]});return e},_toHoursArray:function(t){function e(t){var e=Math.floor(t/3600),n=t-60*e*60;return e+":"+function(t){var e=String(t);return e.length<2&&(e="0"+e),e}(Math.floor(n/60))}for(var n=[],r=0;r<t.length;r++)n.push(e(t[r].start)+"-"+e(t[r].end));return n},_intersectHourRanges:function(t,e){var n=[],r=t.length>e.length?t:e,i=t===r?e:t;r=r.slice(),i=i.slice(),n=[];for(var o=0;o<r.length;o++)for(var a=r[o],s=0;s<i.length;s++){var u=i[s];u.start<a.end&&u.end>a.start&&(n.push({start:Math.max(a.start,u.start),end:Math.min(a.end,u.end)}),a.end>u.end&&(i.splice(s,1),s--,o--))}return n},_mergeAdjacentIntervals:function(t){var e=t.slice();e.sort(function(t,e){return t.start-e.start});for(var n=e[0],r=1;r<e.length;r++){var i=e[r];i.start<=n.end?(i.end>n.end&&(n.end=i.end),e.splice(r,1),r--):n=i}return e},_mergeHoursConfig:function(t,e){return this._mergeAdjacentIntervals(this._intersectHourRanges(t,e))},merge:function(t,e){var n=i.copy(t.getConfig().parsed),r=i.copy(e.getConfig().parsed),o={hours:this._toHoursArray(this._mergeHoursConfig(n.hours,r.hours)),dates:{},customWeeks:{}};for(var a in n.dates){var s=n.dates[a],u=r.dates[a];if(s&&u)if(Array.isArray(s)||Array.isArray(u)){var l=Array.isArray(s)?s:n.hours,c=Array.isArray(u)?u:r.hours;o.dates[a]=this._toHoursArray(this._mergeHoursConfig(l,c))}else o.dates[a]=!0;else o.dates[a]=!1}if(n.customWeeks)for(var a in n.customWeeks)o.customWeeks[a]=n.customWeeks[a];if(r.customWeeks)for(var a in r.customWeeks)o.customWeeks[a]=r.customWeeks[a];return o}},t.exports=r},function(t,e,n){function r(t){this.$gantt=t,this._calendars={},this._legacyConfig=void 0,this.$gantt.attachEvent("onGanttReady",function(){this.$gantt.config.resource_calendars&&(this._isLegacyConfig=u.isLegacyResourceCalendarFormat(this.$gantt.config.resource_calendars))}.bind(this)),this.$gantt.attachEvent("onBeforeGanttReady",function(){this.createDefaultCalendars()}.bind(this)),this.$gantt.attachEvent("onBeforeGanttRender",function(){this.createDefaultCalendars()}.bind(this))}var i=n(0),o=n(34),a=n(172),s=n(171),u=n(166),l=n(165)();r.prototype={_calendars:{},_convertWorkTimeSettings:function(t){var e=t.days;if(e&&!t.dates){t.dates=t.dates||{};for(var n=0;n<e.length;n++)t.dates[n]=e[n],e[n]instanceof Array||(t.dates[n]=!!e[n])}return delete t.days,t},mergeCalendars:function(){var t=[],e=arguments;if(Array.isArray(e[0]))t=e[0].slice();else for(var n=0;n<arguments.length;n++)t.push(arguments[n]);var r,i=new a;return t.forEach(function(t){r=r?this._createCalendarFromConfig(i.merge(r,t)):t}.bind(this)),this.createCalendar(r)},_createCalendarFromConfig:function(t){var e=new s(this.$gantt,o(this.$gantt));e.id=String(i.uid());var n=this._convertWorkTimeSettings(t);if(n.customWeeks)for(var r in n.customWeeks)n.customWeeks[r]=this._convertWorkTimeSettings(n.customWeeks[r]);return e._setConfig(n),e},createCalendar:function(t){var e;t||(t={}),e=t.getConfig?i.copy(t.getConfig()):t.worktime?i.copy(t.worktime):i.copy(t);var n=i.copy(this.defaults.fulltime.worktime);return i.mixin(e,n),this._createCalendarFromConfig(e)},getCalendar:function(t){t=t||"global";var e=this._calendars[t];return e||(this.createDefaultCalendars(),e=this._calendars[t]),e},getCalendars:function(){var t=[];for(var e in this._calendars)t.push(this.getCalendar(e));return t},_getOwnCalendar:function(t){var e=this.$gantt.config;if(t[e.calendar_property])return this.getCalendar(t[e.calendar_property]);if(e.resource_calendars){var n;if(n=!1===this._legacyConfig?e.resource_property:u.getResourceProperty(e),Array.isArray(t[n]))e.dynamic_resource_calendars&&(r=l.getCalendarIdFromMultipleResources(t[n],this));else if(void 0===this._legacyConfig&&(this._legacyConfig=u.isLegacyResourceCalendarFormat(e.resource_calendars)),this._legacyConfig)var r=u.getCalendarIdFromLegacyConfig(t,e.resource_calendars);else if(n&&t[n]&&e.resource_calendars[t[n]])var i=this.getResourceCalendar(t[n]);if(r&&(i=this.getCalendar(r)),i)return i}return null},getResourceCalendar:function(t){if(null===t||void 0===t)return this.getCalendar();var e=null;e="number"==typeof t||"string"==typeof t?t:t.id||t.key;var n=this.$gantt.config,r=n.resource_calendars,i=null;if(r){if(void 0===this._legacyConfig&&(this._legacyConfig=u.isLegacyResourceCalendarFormat(n.resource_calendars)),this._legacyConfig){for(var o in r)if(r[o][e]){i=r[o][e];break}}else i=r[e];if(i)return this.getCalendar(i)}return this.getCalendar()},getTaskCalendar:function(t){var e,n=this.$gantt;if(null===t||void 0===t)return this.getCalendar();if(!(e="number"!=typeof t&&"string"!=typeof t||!n.isTaskExists(t)?t:n.getTask(t)))return this.getCalendar();var r=this._getOwnCalendar(e),i=!!n.getState().group_mode;if(!r&&n.config.inherit_calendar&&n.isTaskExists(e.parent)){for(var o=e;n.isTaskExists(o.parent)&&(o=n.getTask(o.parent),!n.isSummaryTask(o)||!(r=this._getOwnCalendar(o))););i&&!r&&t.$effective_calendar&&(r=this.getCalendar(t.$effective_calendar))}return r||this.getCalendar()},addCalendar:function(t){if(!this.isCalendar(t)){var e=t.id;(t=this.createCalendar(t)).id=e}if(t._tryChangeCalendarSettings(function(){})){var n=this.$gantt.config;return t.id=t.id||i.uid(),this._calendars[t.id]=t,n.worktimes||(n.worktimes={}),n.worktimes[t.id]=t.getConfig(),t.id}return this.$gantt.callEvent("onCalendarError",[{message:"Invalid calendar settings, no worktime available"},t]),null},deleteCalendar:function(t){var e=this.$gantt.config;return!!t&&!!this._calendars[t]&&(delete this._calendars[t],e.worktimes&&e.worktimes[t]&&delete e.worktimes[t],!0)},restoreConfigCalendars:function(t){for(var e in t)if(!this._calendars[e]){var n=t[e],r=this.createCalendar(n);r.id=e,this.addCalendar(r)}},defaults:{global:{id:"global",worktime:{hours:[8,12,13,17],days:[0,1,1,1,1,1,0]}},fulltime:{id:"fulltime",worktime:{hours:[0,24],days:[1,1,1,1,1,1,1]}}},createDefaultCalendars:function(){var t=this.$gantt.config;this.restoreConfigCalendars(this.defaults),this.restoreConfigCalendars(t.worktimes)},isCalendar:function(t){return[t.isWorkTime,t.setWorkTime,t.getWorkHours,t.unsetWorkTime,t.getClosestWorkTime,t.calculateDuration,t.hasDuration,t.calculateEndDate].every(function(t){return t instanceof Function})}},t.exports=r},function(t,e,n){var r=n(173),i=n(164),o=n(162),a=n(0);t.exports=function(t){var e=new r(t),n=new i(e),s=o.create(e,n);a.mixin(t,s)}},function(t,e,n){function r(t){"@babel/helpers - typeof";return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var i=n(2);t.exports=function(t){function e(e){throw t.assert(!1,"Can't parse data: incorrect value of gantt.parse or gantt.load method. Actual argument value: "+JSON.stringify(e)),new Error("Invalid argument for gantt.parse or gantt.load. An object or a JSON string of format https://docs.dhtmlx.com/gantt/desktop__supported_data_formats.html#json is expected. Actual argument value: "+JSON.stringify(e))}t.load=function(e,n,r){this._load_url=e,this.assert(arguments.length,"Invalid load arguments");var i="json",o=null;return arguments.length>=3?(i=n,o=r):"string"==typeof arguments[1]?i=arguments[1]:"function"==typeof arguments[1]&&(o=arguments[1]),this._load_type=i,this.callEvent("onLoadStart",[e,i]),this.ajax.get(e,t.bind(function(t){this.on_load(t,i),this.callEvent("onLoadEnd",[e,i]),"function"==typeof o&&o.call(this)},this))},t.parse=function(t,e){this.on_load({xmlDoc:{responseText:t}},e)},t.serialize=function(t){return this[t=t||"json"].serialize()},t.on_load=function(e,n){if(e.xmlDoc&&404===e.xmlDoc.status)this.assert(!1,"Failed to load the data from <a href='"+e.xmlDoc.responseURL+"' target='_blank'>"+e.xmlDoc.responseURL+"</a>, server returns 404");else if(!t.$destroyed){this.callEvent("onBeforeParse",[]),n||(n="json"),this.assert(this[n],"Invalid data type:'"+n+"'");var r=e.xmlDoc.responseText,i=this[n].parse(r,e);this._process_loading(i)}},t._process_loading=function(t){t.collections&&this._load_collections(t.collections),this.$data.tasksStore.parse(t.data||t.tasks);var e=t.links||(t.collections?t.collections.links:[]);this.$data.linksStore.parse(e),this.callEvent("onParse",[]),this.render()},t._load_collections=function(t){var e=!1;for(var n in t)if(t.hasOwnProperty(n)){e=!0;var r=t[n];this.serverList[n]=this.serverList[n]||[];var i=this.serverList[n];if(!i)continue;i.splice(0,i.length);for(var o=0;o<r.length;o++){var a=r[o],s=this.copy(a);for(var u in s.key=s.value,a)if(a.hasOwnProperty(u)){if("value"==u||"label"==u)continue;s[u]=a[u]}i.push(s)}}e&&this.callEvent("onOptionsLoad",[])},t.attachEvent("onBeforeTaskDisplay",function(t,e){return!e.$ignore}),t.json={parse:function(n){if(n||e(n),"string"==typeof n)if(void 0!=("undefined"==typeof JSON?"undefined":r(JSON)))try{n=JSON.parse(n)}catch(t){e(n)}else t.assert(!1,"JSON is not supported");return n.data||n.tasks||e(n),n.dhx_security&&(t.security_key=n.dhx_security),n},serializeTask:function(t){return this._copyObject(t)},serializeLink:function(t){return this._copyLink(t)},_copyLink:function(t){var e={};for(var n in t)e[n]=t[n];return e},_copyObject:function(e){var n={};for(var r in e)"$"!=r.charAt(0)&&(n[r]=e[r],i.isDate(n[r])&&(n[r]=t.defined(t.templates.xml_format)?t.templates.xml_format(n[r]):t.templates.format_date(n[r])));return n},serialize:function(){var e=[],n=[];t.eachTask(function(n){t.resetProjectDates(n),e.push(this.serializeTask(n))},t.config.root_id,this);for(var r=t.getLinks(),i=0;i<r.length;i++)n.push(this.serializeLink(r[i]));return{data:e,links:n}}},t.xml={_xmlNodeToJSON:function(t,e){for(var n={},r=0;r<t.attributes.length;r++)n[t.attributes[r].name]=t.attributes[r].value;if(!e){for(r=0;r<t.childNodes.length;r++){var i=t.childNodes[r];1==i.nodeType&&(n[i.tagName]=i.firstChild?i.firstChild.nodeValue:"")}n.text||(n.text=t.firstChild?t.firstChild.nodeValue:"")}return n},_getCollections:function(e){for(var n={},r=t.ajax.xpath("//coll_options",e),i=0;i<r.length;i++)for(var o=n[r[i].getAttribute("for")]=[],a=t.ajax.xpath(".//item",r[i]),s=0;s<a.length;s++){for(var u=a[s].attributes,l={key:a[s].getAttribute("value"),label:a[s].getAttribute("label")},c=0;c<u.length;c++){var f=u[c];"value"!=f.nodeName&&"label"!=f.nodeName&&(l[f.nodeName]=f.nodeValue)}o.push(l)}return n},_getXML:function(e,n,r){r=r||"data",n.getXMLTopNode||(n=t.ajax.parse(n));var i=t.ajax.xmltop(r,n.xmlDoc);i&&i.tagName==r||function(e){throw t.assert(!1,"Can't parse data: incorrect value of gantt.parse or gantt.load method. Actual argument value: "+JSON.stringify(e)),new Error("Invalid argument for gantt.parse or gantt.load. An XML of format https://docs.dhtmlx.com/gantt/desktop__supported_data_formats.html#xmldhtmlxgantt20 is expected. Actual argument value: "+JSON.stringify(e))}(e);var o=i.getAttribute("dhx_security");return o&&(t.security_key=o),i},parse:function(e,n){n=this._getXML(e,n);for(var r={},i=r.data=[],o=t.ajax.xpath("//task",n),a=0;a<o.length;a++)i[a]=this._xmlNodeToJSON(o[a]);return r.collections=this._getCollections(n),r},_copyLink:function(t){return"<item id='"+t.id+"' source='"+t.source+"' target='"+t.target+"' type='"+t.type+"' />"},_copyObject:function(t){return"<task id='"+t.id+"' parent='"+(t.parent||"")+"' start_date='"+t.start_date+"' duration='"+t.duration+"' open='"+!!t.open+"' progress='"+t.progress+"' end_date='"+t.end_date+"'><![CDATA["+t.text+"]]></task>"},serialize:function(){for(var e=[],n=[],r=t.json.serialize(),i=0,o=r.data.length;i<o;i++)e.push(this._copyObject(r.data[i]));for(i=0,o=r.links.length;i<o;i++)n.push(this._copyLink(r.links[i]));return"<data>"+e.join("")+"<coll_options for='links'>"+n.join("")+"</coll_options></data>"}},t.oldxml={parse:function(e,n){n=t.xml._getXML(e,n,"projects");for(var r={collections:{links:[]}},i=r.data=[],o=t.ajax.xpath("//task",n),a=0;a<o.length;a++){i[a]=t.xml._xmlNodeToJSON(o[a]);var s=o[a].parentNode;"project"==s.tagName?i[a].parent="project-"+s.getAttribute("id"):i[a].parent=s.parentNode.getAttribute("id")}for(o=t.ajax.xpath("//project",n),a=0;a<o.length;a++)(u=t.xml._xmlNodeToJSON(o[a],!0)).id="project-"+u.id,i.push(u);for(a=0;a<i.length;a++){var u;(u=i[a]).start_date=u.startdate||u.est,u.end_date=u.enddate,u.text=u.name,u.duration=u.duration/8,u.open=1,u.duration||u.end_date||(u.duration=1),u.predecessortasks&&r.collections.links.push({target:u.id,source:u.predecessortasks,type:t.config.links.finish_to_start})}return r},serialize:function(){t.message("Serialization to 'old XML' is not implemented")}},t.serverList=function(t,e){return e?this.serverList[t]=e.slice(0):this.serverList[t]||(this.serverList[t]=[]),this.serverList[t]}}},function(t,e){t.exports=function(t){t.isReadonly=function(e){return"number"!=typeof e&&"string"!=typeof e||!t.isTaskExists(e)||(e=t.getTask(e)),(!e||!e[this.config.editable_property])&&(e&&e[this.config.readonly_property]||this.config.readonly)}}},function(t,e){t.exports=function(t){t.getGridColumn=function(e){for(var n=t.config.columns,r=0;r<n.length;r++)if(n[r].name==e)return n[r];return null},t.getGridColumns=function(){return t.config.columns.slice()}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t){this._scrollOrder=0;var e=t.gantt,n=t.grid,r=t.dnd,i=t.getCurrentX;this.$gantt=e,this.$grid=n,this._dnd=r,this.getCurrentX=i,this._scrollView=this.$gantt.$ui.getView(this.$grid.$config.scrollX),this.attachEvents()}return t.prototype.attachEvents=function(){var t=this;this.isScrollable()&&(this._dnd.attachEvent("onDragMove",function(e,n){var r=t.$grid.$grid.getBoundingClientRect(),i=r.right,o=r.left,a=t.getCurrentX(n.clientX);return a>=i-20&&(t.autoscrollRight(),t.autoscrollStart()),a<=o+20&&(t.autoscrollLeft(),t.autoscrollStart()),a<i-20&&a>o+20&&t.autoscrollStop(),!0}),this._dnd.attachEvent("onDragEnd",function(){t.autoscrollStop()}))},t.prototype.autoscrollStart=function(){var t=this;if(0!==this._scrollOrder){var e=10*this._scrollOrder,n=this._scrollView.getScrollState();this._scrollView.scrollTo(n.position+e),setTimeout(function(){t.autoscrollStart()},50)}},t.prototype.autoscrollRight=function(){this._scrollOrder=1},t.prototype.autoscrollLeft=function(){this._scrollOrder=-1},t.prototype.autoscrollStop=function(){this._scrollOrder=0},t.prototype.getCorrection=function(){return this.isScrollable()?this._scrollView.getScrollState().position:0},t.prototype.isScrollable=function(){return!!this.$grid.$config.scrollable},t}();e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(178),o=function(){function t(t,e){var n=this;this._targetMarker=null,this.calculateCurrentPosition=function(t){var e=n.$grid.$grid.getBoundingClientRect(),r=e.right,i=e.left,o=t;return o>r&&(o=r),o<i&&(o=i),o},this.$gantt=t,this.$grid=e}return t.prototype.init=function(){var t=this.$gantt.$services.getService("dnd");this._dnd=new t(this.$grid.$grid_scale,{updates_per_second:60}),this._scrollableGrid=new i.default({gantt:this.$gantt,grid:this.$grid,dnd:this._dnd,getCurrentX:this.calculateCurrentPosition}),this.attachEvents()},t.prototype.attachEvents=function(){var t=this;this._dnd.attachEvent("onBeforeDragStart",function(e,n){if(t._draggedCell=t.$gantt.utils.dom.closest(n.target,".gantt_grid_head_cell"),t._draggedCell){var r,i,o=t.$grid.$getConfig().columns,a=t._draggedCell.getAttribute("data-column-id");return o.map(function(t,e){t.name===a&&(r=t,i=e)}),!1!==t.$grid.callEvent("onBeforeColumnDragStart",[{draggedColumn:r,draggedIndex:i}])&&!(!t._draggedCell||!r||(t._gridConfig=t.$grid.$getConfig(),t._originAutoscroll=t.$gantt.config.autoscroll,t.$gantt.config.autoscroll=!1,0))}}),this._dnd.attachEvent("onAfterDragStart",function(e,n){t._draggedCell&&(t._dnd.config.column=t._draggedCell.getAttribute("data-column-id"),t._dnd.config.marker.innerHTML=t._draggedCell.outerHTML,t._dnd.config.marker.classList.add("gantt_column_drag_marker"),t._dnd.config.marker.style.height=t._gridConfig.scale_height+"px",t._dnd.config.marker.style.lineHeight=t._gridConfig.scale_height+"px",t._draggedCell.classList.add("gantt_grid_head_cell_dragged"))}),this._dnd.attachEvent("onDragMove",function(e,n){if(t._draggedCell){t._dragX=n.clientX;var r=t.calculateCurrentPosition(n.clientX),i=t.findColumnsIndexes(),o=i.targetIndex,a=i.draggedIndex,s=t.$grid.$getConfig().columns,u=s[a],l=s[o];return!1===t.$grid.callEvent("onColumnDragMove",[{draggedColumn:u,targetColumn:l,draggedIndex:a,targetIndex:o}])?(t.cleanTargetMarker(),!1):(t.setMarkerPosition(r),t.drawTargetMarker(i),!0)}}),this._dnd.attachEvent("onDragEnd",function(){t._draggedCell&&(t.$gantt.config.autoscroll=t._originAutoscroll,t._draggedCell.classList.remove("gantt_grid_head_cell_dragged"),t.cleanTargetMarker(),t.reorderColumns())})},t.prototype.reorderColumns=function(){var t=this.findColumnsIndexes(),e=t.targetIndex,n=t.draggedIndex,r=this.$grid.$getConfig().columns,i=r[n],o=r[e];!1!==this.$grid.callEvent("onBeforeColumnReorder",[{draggedColumn:i,targetColumn:o,draggedIndex:n,targetIndex:e}])&&e!==n&&(r.splice(n,1),r.splice(e,0,i),this.$gantt.render(),this.$grid.callEvent("onAfterColumnReorder",[{draggedColumn:i,targetColumn:o,draggedIndex:n,targetIndex:e}]))},t.prototype.findColumnsIndexes=function(){var t,e,n,r,i,o=this._dnd.config.column,a=this.$grid.$getConfig().columns,s={startX:0,endX:0},u=0,l=a.length-1,c=function(t,e){return t<=e},f=function(t){return++t};this.$gantt.config.rtl&&(u=a.length-1,l=0,c=function(t,e){return t>=e},f=function(t){return--t});for(var d=this._dragX-this.$grid.$grid.getBoundingClientRect().left+this._scrollableGrid.getCorrection(),h=u;c(h,l)&&(void 0===t||void 0===e);h=f(h))a[h].hide||(s.startX=s.endX,s.endX+=a[h].width,d>=s.startX&&(d<=s.endX||!c(f(h),l))&&(t=h,n=s.startX,r=s.endX,i=(d-s.startX)/(s.endX-s.startX)),o===a[h].name&&(e=h));return{targetIndex:t,draggedIndex:e,xBefore:n,xAfter:r,columnRelativePos:i}},t.prototype.setMarkerPosition=function(t,e){void 0===e&&(e=10);var n=this._dnd.config.marker,r=this._dnd._obj.getBoundingClientRect();n.style.top=r.y+e+"px",n.style.left=t+"px"},t.prototype.drawTargetMarker=function(t){var e,n=t.targetIndex,i=t.draggedIndex,o=t.xBefore,a=t.xAfter,s=t.columnRelativePos;this._targetMarker||(this._targetMarker=document.createElement("div"),r.addClassName(this._targetMarker,"gantt_grid_target_marker"),this._targetMarker.style.display="none",this._targetMarker.style.height=this._gridConfig.scale_height+"px"),this._targetMarker.parentNode||this.$grid.$grid_scale.appendChild(this._targetMarker),e=n>i?a:n<i?o:s>.5?a:o,this._targetMarker.style.left=e+"px",this._targetMarker.style.display="block"},t.prototype.cleanTargetMarker=function(){this._targetMarker&&this._targetMarker.parentNode&&this.$grid.$grid_scale.removeChild(this._targetMarker),this._targetMarker=null},t}();e.ColumnsGridDnd=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(179);e.default=r.ColumnsGridDnd},function(t,e,n){var r=n(1);t.exports=function(t,e){var n={row_before_start:t.bind(function(t,n,i){var o=e.$getConfig(),a=e.$config.rowStore;if(!r.locateAttribute(i,o.task_grid_row_resizer_attribute))return!1;var s=this.locate(i,o.task_grid_row_resizer_attribute),u=a.getItem(s);return!1!==e.callEvent("onBeforeRowResize",[u])&&void 0},t),row_after_start:t.bind(function(t,n,r){var i=e.$getConfig(),o=this.locate(r,i.task_grid_row_resizer_attribute);t.config.marker.innerHTML="",t.config.marker.className+=" gantt_row_grid_resize_area",t.config.marker.style.width=e.$grid.offsetWidth+"px",t.config.drag_id=o},t),row_drag_move:t.bind(function(t,n,i){var o=e.$config.rowStore,a=e.$getConfig(),s=t.config,u=s.drag_id,l=e.getItemHeight(u),c=e.getItemTop(u),f=r.getNodePosition(e.$grid_data),d=parseInt(s.marker.style.top,10),h=c+f.y,p=0,g=a.min_task_grid_row_height;return(p=d-h)<g&&(p=g),s.marker.style.left=f.x+"px",s.marker.style.top=h-1+"px",s.marker.style.height=Math.abs(p)+1+"px",s.marker_height=p,e.callEvent("onRowResize",[u,o.getItem(u),p+l]),!0},t),row_drag_end:t.bind(function(n,r,i){var o=e.$config.rowStore,a=n.config,s=a.drag_id,u=o.getItem(s),l=e.getItemHeight(s),c=a.marker_height;!1!==e.callEvent("onBeforeRowResizeEnd",[s,u,c])&&u.row_height!=c&&(u.row_height=c,t.updateTask(s),e.callEvent("onAfterRowResize",[s,u,l,c]),this.render())},t)};return{init:function(){var r=t.$services.getService("dnd"),i=e.$getConfig(),o=new r(e.$grid_data,{updates_per_second:60});t.defined(i.dnd_sensitivity)&&(o.config.sensitivity=i.dnd_sensitivity),o.attachEvent("onBeforeDragStart",function(t,e){return n.row_before_start(o,t,e)}),o.attachEvent("onAfterDragStart",function(t,e){return n.row_after_start(o,t,e)}),o.attachEvent("onDragMove",function(t,e){return n.row_drag_move(o,t,e)}),o.attachEvent("onDragEnd",function(t,e){return n.row_drag_end(o,t,e)})}}}},function(t,e){t.exports=function(t){var e=-1,n=-1;return{resetCache:function(){e=-1,n=-1},_getRowHeight:function(){return-1===e&&(e=t.$getConfig().row_height),e},_refreshState:function(){this.resetCache(),n=!0;var e=t.$config.rowStore;if(e)for(var r=this._getRowHeight(),i=0;i<e.fullOrder.length;i++){var o=e.getItem(e.fullOrder[i]);if(o&&o.row_height&&o.row_height!==r){n=!1;break}}},canUseSimpleCalculation:function(){return-1===n&&this._refreshState(),n},getRowTop:function(e){return t.$config.rowStore?e*this._getRowHeight():0},getItemHeight:function(t){return this._getRowHeight()},getTotalHeight:function(){return t.$config.rowStore?t.$config.rowStore.countVisible()*this._getRowHeight():0},getItemIndexByTopPosition:function(e){return t.$config.rowStore?Math.floor(e/this._getRowHeight()):0}}}},function(t,e){t.exports=function(t,e){return{init:function(){},doOnRender:function(){}}}},function(t,e,n){var r=n(25);t.exports=function(t){n(177)(t),r.prototype.getGridColumns=function(){for(var t=this.$getConfig().columns,e=[],n=0;n<t.length;n++)t[n].hide||e.push(t[n]);return e}}},function(t,e,n){t.exports=function(t){var e=n(39),r={};t.attachEvent("onClearAll",function(){r={}});var i=e.prototype.hasChild;t.$data.tasksStore.hasChild=function(e){return t.config.branch_loading?!!i.call(this,e)||!!this.exists(e)&&this.getItem(e)[t.config.branch_loading_property]:i.call(this,e)},t.attachEvent("onTaskOpened",function(e){if(t.config.branch_loading&&t._load_url&&function(e){return!(!t.config.branch_loading||!t._load_url||r[e]||t.getChildren(e).length||!t.hasChild(e))}(e)){var n=t._load_url,i=(n=n.replace(/(\?|&)?parent_id=.+&?/,"")).indexOf("?")>=0?"&":"?",o=t.getScrollState().y||0,a={taskId:e,url:n+i+"parent_id="+encodeURIComponent(e)};if(!1===t.callEvent("onBeforeBranchLoading",[a]))return;t.load(a.url,this._load_type,function(){o&&t.scrollTo(null,o),t.callEvent("onAfterBranchLoading",[a])}),r[e]=!0}})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t){var e=this;this.format=function(t){return e._getWBSCode(t.source)},this.canParse=function(t){return e._linkReg.test(t)},this.parse=function(t){if(!e.canParse(t))return null;var n=e._linkReg.exec(t)[0].trim();return{id:void 0,source:e._findSource(n)||null,target:null,type:e._gantt.config.links.finish_to_start,lag:0}},this._getWBSCode=function(t){var n=e._gantt.getTask(t);return e._gantt.getWBSCode(n)},this._findSource=function(t){var n=new RegExp("^[0-9.]+","i");if(n.exec(t)){var r=n.exec(t)[0],i=e._gantt.getTaskByWBSCode(r);if(i)return i.id}return null},this._linkReg=/^[0-9\.]+/,this._gantt=t}return t.create=function(e,n){return void 0===e&&(e=null),new t(n)},t}();e.default=r},function(t,e,n){var r=n(36).default,i=n(186).default;t.exports=function(t){t.ext.formatters={durationFormatter:function(e){return e||(e={}),e.store||(e.store=t.config.duration_unit),e.enter||(e.enter=t.config.duration_unit),r.create(e,t)},linkFormatter:function(e){return i.create(e,t)}}}},function(t,e){t.exports=function(t){function e(e){return function(){return!t.config.auto_types||t.getTaskType(t.config.types.project)!=t.config.types.project||e.apply(this,arguments)}}function n(e,n){var r=t.getTask(e),o=i(r);!1!==o&&t.getTaskType(r)!==o&&(n.$needsUpdate=!0,n[r.id]={task:r,type:o})}function r(e){if(!t.getState().group_mode){var r=function(e,r){return n(e,r=r||{}),t.eachParent(function(t){n(t.id,r)},e),r}(e);r.$needsUpdate&&t.batchUpdate(function(){!function(e){for(var n in e)if(e[n]&&e[n].task){var r=e[n].task;r.type=e[n].type,t.updateTask(r.id)}}(r)})}}function i(e){var n=t.config.types,r=t.hasChild(e.id),i=t.getTaskType(e.type);return r&&i===n.task?n.project:!r&&i===n.project&&n.task}function o(e){e!=t.config.root_id&&t.isTaskExists(e)&&r(e)}var a,s,u,l=!0;t.attachEvent("onParse",e(function(){l=!1,t.getState().group_mode||(t.batchUpdate(function(){t.eachTask(function(e){var n=i(e);!1!==n&&function(e,n){t.getState().group_mode||(e.type=n,t.updateTask(e.id))}(e,n)})}),l=!0)})),t.attachEvent("onAfterTaskAdd",e(function(t){l&&r(t)})),t.attachEvent("onAfterTaskUpdate",e(function(t){l&&r(t)})),t.attachEvent("onBeforeTaskDelete",e(function(e,n){return a=t.getParent(e),!0})),t.attachEvent("onAfterTaskDelete",e(function(t,e){o(a)})),t.attachEvent("onRowDragStart",e(function(e,n,r){return s=t.getParent(e),!0})),t.attachEvent("onRowDragEnd",e(function(t,e){o(s),r(t)})),t.attachEvent("onBeforeTaskMove",e(function(e,n,r){return u=t.getParent(e),!0})),t.attachEvent("onAfterTaskMove",e(function(t,e,n){document.querySelector(".gantt_drag_marker")||(o(u),r(t))}))}},function(t,e){t.exports=function(t){function e(e){return function(){return!t.config.placeholder_task||e.apply(this,arguments)}}function n(){var e=t.getTaskBy("type",t.config.types.placeholder);if(!e.length||!t.isTaskExists(e[0].id)){var n={unscheduled:!0,type:t.config.types.placeholder,duration:0,text:t.locale.labels.new_task};if(!1===t.callEvent("onTaskCreated",[n]))return;t.addTask(n)}}function r(e){var n=t.getTask(e);n.type==t.config.types.placeholder&&(n.start_date&&n.end_date&&n.unscheduled&&(n.unscheduled=!1),t.batchUpdate(function(){var e=t.copy(n);t.silent(function(){t.deleteTask(n.id)}),delete e["!nativeeditor_status"],e.type=t.config.types.task,e.id=t.uid(),t.addTask(e)}))}function i(e){return!(!t.config.types.placeholder||!t.isTaskExists(e)||t.getTask(e).type!=t.config.types.placeholder)}function o(t){return!(!i(t.source)&&!i(t.target))}t.config.types.placeholder="placeholder",t.attachEvent("onDataProcessorReady",e(function(n){n&&!n._silencedPlaceholder&&(n._silencedPlaceholder=!0,n.attachEvent("onBeforeUpdate",e(function(e,r,i){return i.type!=t.config.types.placeholder||(n.setUpdated(e,!1),!1)})))}));var a=!1;t.attachEvent("onGanttReady",function(){a||(a=!0,t.attachEvent("onAfterTaskUpdate",e(r)),t.attachEvent("onAfterTaskAdd",e(function(e,r){r.type!=t.config.types.placeholder&&(t.getTaskBy("type",t.config.types.placeholder).forEach(function(e){t.silent(function(){t.isTaskExists(e.id)&&t.deleteTask(e.id)})}),n())})),t.attachEvent("onParse",e(n)))}),t.attachEvent("onLinkValidation",function(t){return!o(t)}),t.attachEvent("onBeforeLinkAdd",function(t,e){return!o(e)}),t.attachEvent("onBeforeUndoStack",function(e){for(var n=0;n<e.commands.length;n++){var r=e.commands[n];"task"===r.entity&&r.value.type===t.config.types.placeholder&&(e.commands.splice(n,1),n--)}return!0})}},function(t,e){t.exports=function(t){function e(e,r){e.start_date?e.start_date=t.date.parseDate(e.start_date,"parse_date"):e.start_date=null,e.end_date?e.end_date=t.date.parseDate(e.end_date,"parse_date"):e.end_date=null;var i=Number(e.delay),o=!1;if(isNaN(i)?(e.delay=0,o=!0):e.delay=i,t.defined(e.value)||(e.value=null),!e.task_id||!e.resource_id)return!1;if(e.mode=e.mode||d.default,e.mode===d.fixedDuration&&(isNaN(Number(e.duration))&&(r=r||t.getTask(e.task_id),e.duration=t.calculateDuration({start_date:e.start_date,end_date:e.end_date,id:r})),o&&(r=r||t.getTask(e.task_id),e.delay=t.calculateDuration({start_date:r.start_date,end_date:e.start_date,id:r}))),e.mode!==d.fixedDates&&(r||t.isTaskExists(e.task_id))){var a=n(e,r=r||t.getTask(e.task_id));e.start_date=a.start_date,e.end_date=a.end_date,e.duration=a.duration}}function n(e,n){if(e.mode===d.fixedDates)return{start_date:e.start_date,end_date:e.end_date,duration:e.duration};var r,i,o=e.delay?t.calculateEndDate({start_date:n.start_date,duration:e.delay,task:n}):new Date(n.start_date);return e.mode===d.fixedDuration?(r=t.calculateEndDate({start_date:o,duration:e.duration,task:n}),i=e.duration):(r=new Date(n.end_date),i=n.duration-e.delay),{start_date:o,end_date:r,duration:i}}function r(n){var r=t.config.resource_property,i=n[r],o=[],a=f===c.auto;if(t.defined(i)&&i){Array.isArray(i)||(i=[i],a&&(f=c.singleValue,a=!1));var s={};i.forEach(function(r){r.resource_id||(r={resource_id:r},a&&(f=c.valueArray,a=!1)),a&&(r.id&&r.resource_id?(f=c.assignmentsArray,a=!1):(f=c.resourceValueArray,a=!1));var i,u=d.default;r.mode||(r.start_date&&r.end_date||r.start_date&&r.duration)&&(u=d.fixedDuration),i=r.id||!r.$id||s[r.$id]?r.id&&!s[r.id]?r.id:t.uid():r.$id,s[i]=!0;var l={id:i,start_date:r.start_date,duration:r.duration,end_date:r.end_date,delay:r.delay,task_id:n.id,resource_id:r.resource_id,value:r.value,mode:r.mode||u};l.start_date&&l.start_date.getMonth&&l.end_date&&l.end_date.getMonth&&"number"==typeof l.duration||e(l,n),o.push(l)})}return o}function i(e){if(t.isTaskExists(e)){var n=t.getTask(e);o(n,t.getTaskAssignments(n.id))}}function o(e,n){n.sort(function(t,e){return t.start_date&&e.start_date&&t.start_date.valueOf()!=e.start_date.valueOf()?t.start_date-e.start_date:0}),f==c.assignmentsArray?e[t.config.resource_property]=n:f==c.resourceValueArray&&(e[t.config.resource_property]=n.map(function(t){return{$id:t.id,start_date:t.start_date,duration:t.duration,end_date:t.end_date,delay:t.delay,resource_id:t.resource_id,value:t.value,mode:t.mode}})),e[l]=n}function a(e){var n=r(e),i=[];return n.forEach(function(e){e.id=e.id||t.uid(),i.push(e)}),n}function s(t,e){var o=function(t,e){var n={inBoth:[],inTaskNotInStore:[],inStoreNotInTask:[]};if(f==c.singleValue){var r=t[0],i=r?r.resource_id:null,o=!1;e.forEach(function(t){t.resource_id!=i?n.inStoreNotInTask.push(t):t.resource_id==i&&(n.inBoth.push({store:t,task:r}),o=!0)}),!o&&r&&n.inTaskNotInStore.push(r)}else if(f==c.valueArray){var a={},s={},u={};t.forEach(function(t){a[t.resource_id]=t}),e.forEach(function(t){s[t.resource_id]=t}),t.concat(e).forEach(function(t){if(!u[t.resource_id]){u[t.resource_id]=!0;var e=a[t.resource_id],r=s[t.resource_id];e&&r?n.inBoth.push({store:r,task:e}):e&&!r?n.inTaskNotInStore.push(e):!e&&r&&n.inStoreNotInTask.push(r)}})}else f!=c.assignmentsArray&&f!=c.resourceValueArray||(a={},s={},u={},t.forEach(function(t){a[t.id||t.$id]=t}),e.forEach(function(t){s[t.id]=t}),t.concat(e).forEach(function(t){var e=t.id||t.$id;if(!u[e]){u[e]=!0;var r=a[e],i=s[e];r&&i?n.inBoth.push({store:i,task:r}):r&&!i?n.inTaskNotInStore.push(r):!r&&i&&n.inStoreNotInTask.push(i)}}));return n}(r(t),e);o.inStoreNotInTask.forEach(function(t){h.removeItem(t.id)}),o.inTaskNotInStore.forEach(function(t){h.addItem(t)}),o.inBoth.forEach(function(e){if(function(t,e){var n={id:!0};for(var r in t)if(!n[r]&&String(t[r])!==String(e[r]))return!0;return!1}(e.task,e.store))!function(t,e){var n={id:!0};for(var r in t)n[r]||(e[r]=t[r])}(e.task,e.store),h.updateItem(e.store.id);else if(e.task.start_date&&e.task.end_date&&e.task.mode!==d.fixedDates){var r=n(e.store,t);e.store.start_date.valueOf()==r.start_date.valueOf()&&e.store.end_date.valueOf()==r.end_date.valueOf()||(e.store.start_date=r.start_date,e.store.end_date=r.end_date,e.store.duration=r.duration,h.updateItem(e.store.id))}}),i(t.id)}function u(t){var e=t[l]||h.find(function(e){return e.task_id==t.id});s(t,e)}var l="$resourceAssignments";t.config.resource_assignment_store="resourceAssignments",t.config.process_resource_assignments=!0;var c={auto:"auto",singleValue:"singleValue",valueArray:"valueArray",resourceValueArray:"resourceValueArray",assignmentsArray:"assignmentsArray"},f=c.auto,d={fixedDates:"fixedDates",fixedDuration:"fixedDuration",default:"default"},h=t.createDatastore({name:t.config.resource_assignment_store,initItem:function(n){return n.id||(n.id=t.uid()),e(n),n}});t.attachEvent("onGanttReady",function(){if(t.config.process_resource_assignments){t.attachEvent("onParse",function(){t.silent(function(){h.clearAll();var e=[];t.eachTask(function(n){if(n.type!==t.config.types.project){var r=a(n);o(n,r),r.forEach(function(t){e.push(t)})}}),h.parse(e)})});var e=!1,n=!1,r={};t.attachEvent("onBeforeBatchUpdate",function(){e=!0}),t.attachEvent("onAfterBatchUpdate",function(){if(n){var i={};for(var o in r)i[o]=t.getTaskAssignments(r[o].id);for(var o in r)s(r[o],i[o])}n=!1,e=!1,r={}}),t.attachEvent("onTaskCreated",function(t){var e=a(t);return h.parse(e),o(t,e),!0}),t.attachEvent("onAfterTaskUpdate",function(t,i){e?(n=!0,r[t]=i):u(i)}),t.attachEvent("onAfterTaskAdd",function(t,i){e?(n=!0,r[t]=i):u(i)}),t.attachEvent("onRowDragEnd",function(e){u(t.getTask(e))}),t.$data.tasksStore.attachEvent("onAfterDeleteConfirmed",function(e,n){var r=[e];t.eachTask(function(t){r.push(t.id)},e),function(t){var e={};t.forEach(function(t){e[t]=!0}),h.find(function(t){return e[t.task_id]}).forEach(function(t){h.removeItem(t.id)})}(r)}),t.$data.tasksStore.attachEvent("onClearAll",function(){return l=null,c=null,f=null,h.clearAll(),!0}),t.attachEvent("onTaskIdChange",function(t,e){h.find(function(e){return e.task_id==t}).forEach(function(t){t.task_id=e,h.updateItem(t.id)}),i(e)});var l=null,c=null,f=null;h.attachEvent("onStoreUpdated",function(){return!!e||(l=null,c=null,f=null,!0)}),t.getResourceAssignments=function(e,n){var r=t.defined(n)&&null!==n;return null===l&&(l={},c={},h.eachItem(function(t){l[t.resource_id]||(l[t.resource_id]=[]),l[t.resource_id].push(t);var e=t.resource_id+"-"+t.task_id;c[e]||(c[e]=[]),c[e].push(t)})),r?(c[e+"-"+n]||[]).slice():(l[e]||[]).slice()},t.getTaskAssignments=function(t){if(null===f){var e=[];f={},h.eachItem(function(n){f[n.task_id]||(f[n.task_id]=[]),f[n.task_id].push(n),n.task_id==t&&e.push(n)})}return(f[t]||[]).slice()},t.updateTaskAssignments=i}},{once:!0})}},function(t,e,n){function r(t){function e(t){return null===t?u+String(t):String(t)}function n(t,n){return Array.isArray(t)?t.map(function(t){return e(t)}).join("_")+"_"+n:e(t)+"_"+n}function r(r,o){var u,l=n(o,r),c={};return i.forEach(o,function(t){c[e(t)]=!0}),a[l]?u=a[l]:(u=a[l]=[],t.eachTask(function(o){var l;o.type!=t.config.types.project&&r in o&&(l=i.isArray(o[r])?o[r]:[o[r]],i.forEach(l,function(t){var i=t&&t.resource_id?t.resource_id:t;if(c[e(i)])u.push(o);else if(!s){var l=n(t,r);a[l]||(a[l]=[]),a[l].push(o)}}))}),s=!0),u}function o(e,n,r){var i=t.config.resource_property,o=[];if(t.getDatastore("task").exists(n)){var a=t.getTask(n);o=a[i]||[]}Array.isArray(o)||(o=[o]);for(var s=0;s<o.length;s++)o[s].resource_id==e&&r.push({task_id:a.id,resource_id:o[s].resource_id,value:o[s].value})}var a={},s=!1;t.$data.tasksStore.attachEvent("onStoreUpdated",function(){a={},s=!1}),t.attachEvent("onBeforeGanttRender",function(){a={}});var u=String(Math.random());return{getTaskBy:function(e,n){return"function"==typeof e?function(e){var n=[];return t.eachTask(function(t){e(t)&&n.push(t)}),n}(e):i.isArray(n)?r(e,n):r(e,[n])},getResourceAssignments:function(e,n){var r=[],i=t.config.resource_property;return void 0!==n?o(e,n,r):t.getTaskBy(i,e).forEach(function(t){o(e,t.id,r)}),r}}}var i=n(2);t.exports=function(t){var e=r(t);t.getTaskBy=e.getTaskBy,t.getResourceAssignments=e.getResourceAssignments,t.config.resource_property="owner_id",t.config.resource_store="resource",t.config.resource_render_empty_cells=!1,t.templates.histogram_cell_class=function(t,e,n,r,i){},t.templates.histogram_cell_label=function(t,e,n,r,i){return r.length+"/3"},t.templates.histogram_cell_allocated=function(t,e,n,r,i){return r.length/3},t.templates.histogram_cell_capacity=function(t,e,n,r,i){return 0},t.templates.resource_cell_class=function(t,e,n,r,i){return r.length<=1?"gantt_resource_marker_ok":"gantt_resource_marker_overtime"},t.templates.resource_cell_value=function(t,e,n,r,i){return 8*r.length}}},function(t,e){t.exports=function(t){function e(){return n.reset(),!0}var n=function(t){return{_needRecalc:!0,reset:function(){this._needRecalc=!0},_isRecalcNeeded:function(){return!this._isGroupSort()&&this._needRecalc},_isGroupSort:function(){return!!t.getState().group_mode},_getWBSCode:function(t){return t?(this._isRecalcNeeded()&&this._calcWBS(),t.$virtual?"":this._isGroupSort()?t.$wbs||"":(t.$wbs||(this.reset(),this._calcWBS()),t.$wbs)):""},_setWBSCode:function(t,e){t.$wbs=e},getWBSCode:function(t){return this._getWBSCode(t)},getByWBSCode:function(e){for(var n=e.split("."),r=t.config.root_id,i=0;i<n.length;i++){var o=t.getChildren(r),a=1*n[i]-1;if(!t.isTaskExists(o[a]))return null;r=o[a]}return t.isTaskExists(r)?t.getTask(r):null},_calcWBS:function(){if(this._isRecalcNeeded()){var e=!0;t.eachTask(function(n){if(e)return e=!1,void this._setWBSCode(n,"1");var r=t.getPrevSibling(n.id);if(null!==r){var i=t.getTask(r).$wbs;i&&((i=i.split("."))[i.length-1]++,this._setWBSCode(n,i.join(".")))}else{var o=t.getParent(n.id);this._setWBSCode(n,t.getTask(o).$wbs+".1")}},t.config.root_id,this),this._needRecalc=!1}}}}(t);t.getWBSCode=function(t){return n.getWBSCode(t)},t.getTaskByWBSCode=function(t){return n.getByWBSCode(t)},t.attachEvent("onAfterTaskMove",e),t.attachEvent("onBeforeParse",e),t.attachEvent("onAfterTaskDelete",e),t.attachEvent("onAfterTaskAdd",e),t.attachEvent("onAfterSort",e)}},function(t,e,n){function r(t){function e(t,e){e="function"==typeof e?e:function(){},a[t]||(a[t]=this[t],this[t]=e)}function n(t){a[t]&&(this[t]=a[t],a[t]=null)}function r(){for(var t in a)n.call(this,t)}function o(t){try{t()}catch(t){i.console.error(t)}}var a={},s=!1;return t.$services.getService("state").registerProvider("batchUpdate",function(){return{batch_update:s}},!1),function(t,n){if(s)o(t);else{var i,a=this._dp&&"off"!=this._dp.updateMode;a&&(i=this._dp.updateMode,this._dp.setUpdateMode("off"));var u={},l={render:!0,refreshData:!0,refreshTask:!0,refreshLink:!0,resetProjectDates:function(t){u[t.id]=t}};for(var c in function(t){for(var n in t)e.call(this,n,t[n])}.call(this,l),s=!0,this.callEvent("onBeforeBatchUpdate",[]),o(t),this.callEvent("onAfterBatchUpdate",[]),r.call(this),u)this.resetProjectDates(u[c]);s=!1,n||this.render(),a&&(this._dp.setUpdateMode(i),this._dp.setGanttMode("task"),this._dp.sendData(),this._dp.setGanttMode("link"),this._dp.sendData())}}}var i=n(15);t.exports=function(t){t.batchUpdate=r(t)}},function(t,e,n){t.exports=function(t){t.ext||(t.ext={});for(var e=[n(193),n(192),n(191),n(190),n(189),n(188),n(187)],r=0;r<e.length;r++)e[r]&&e[r](t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=function(){function t(){var t=this;this.clear=function(){t._storage={}},this.storeItem=function(e){t._storage[e.id]=r.copy(e)},this.getStoredItem=function(e){return t._storage[e]||null},this._storage={}}return t.create=function(){return new t},t}();e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){t.getUserData=function(t,e){return this.userdata||(this.userdata={}),this.userdata[t]&&this.userdata[t][e]?this.userdata[t][e]:""},t.setUserData=function(t,e,n){this.userdata||(this.userdata={}),this.userdata[t]||(this.userdata[t]={}),this.userdata[t][e]=n},t._change_id=function(t,e){"task"!==this._dp._ganttMode?this.changeLinkId(t,e):this.changeTaskId(t,e)},t._row_style=function(e,n){"task"===this._dp._ganttMode&&t.isTaskExists(e)&&(t.getTask(e).$dataprocessor_class=n,t.refreshTask(e))},t._delete_task=function(t,e){},t._sendTaskOrder=function(t,e){e.$drop_target&&(this._dp.setGanttMode("task"),this.getTask(t).target=e.$drop_target,this._dp.setUpdated(t,!0,"order"),delete this.getTask(t).$drop_target)},t.setDp=function(){this._dp=e},t.setDp()}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(2),i=function(){function t(t,e){this.$gantt=t,this.$dp=e,this._dataProcessorHandlers=[]}return t.prototype.attach=function(){function t(t){for(var n=e.updatedRows.slice(),i=!1,o=0;o<n.length&&!e._in_progress[t];o++)n[o]===t&&("inserted"===r.getUserData(t,"!nativeeditor_status")&&(i=!0),e.setUpdated(t,!1));return i}var e=this.$dp,r=this.$gantt,i=n(37),o={};this._dataProcessorHandlers.push(r.attachEvent("onAfterTaskAdd",function(t,n){r.isTaskExists(t)&&(e.setGanttMode("tasks"),e.setUpdated(t,!0,"inserted"))})),this._dataProcessorHandlers.push(r.attachEvent("onAfterTaskUpdate",function(t,n){r.isTaskExists(t)&&(e.setGanttMode("tasks"),e.setUpdated(t,!0),r._sendTaskOrder&&r._sendTaskOrder(t,n))})),this._dataProcessorHandlers.push(r.attachEvent("onBeforeTaskDelete",function(t,e){return!r.config.cascade_delete||(o[t]={tasks:i.getSubtreeTasks(r,t),links:i.getSubtreeLinks(r,t)},!0)})),this._dataProcessorHandlers.push(r.attachEvent("onAfterTaskDelete",function(n,i){if(e.setGanttMode("tasks"),!t(n)){if(r.config.cascade_delete&&o[n]){var a=e.updateMode;e.setUpdateMode("off");var s=o[n];for(var u in s.tasks)t(u)||(e.storeItem(s.tasks[u]),e.setUpdated(u,!0,"deleted"));for(var u in e.setGanttMode("links"),s.links)t(u)||(e.storeItem(s.links[u]),e.setUpdated(u,!0,"deleted"));o[n]=null,"off"!==a&&e.sendAllData(),e.setGanttMode("tasks"),e.setUpdateMode(a)}e.storeItem(i),e.setUpdated(n,!0,"deleted"),"off"===e.updateMode||e._tSend||e.sendAllData()}})),this._dataProcessorHandlers.push(r.attachEvent("onAfterLinkUpdate",function(t,n){r.isLinkExists(t)&&(e.setGanttMode("links"),e.setUpdated(t,!0))})),this._dataProcessorHandlers.push(r.attachEvent("onAfterLinkAdd",function(t,n){r.isLinkExists(t)&&(e.setGanttMode("links"),e.setUpdated(t,!0,"inserted"))})),this._dataProcessorHandlers.push(r.attachEvent("onAfterLinkDelete",function(n,r){e.setGanttMode("links"),!t(n)&&(e.storeItem(r),e.setUpdated(n,!0,"deleted"))})),this._dataProcessorHandlers.push(r.attachEvent("onRowDragEnd",function(t,e){r._sendTaskOrder(t,r.getTask(t))}));var a=null,s=null;this._dataProcessorHandlers.push(r.attachEvent("onTaskIdChange",function(t,n){if(e._waitMode){var i=r.getChildren(n);if(i.length){a=a||{};for(var o=0;o<i.length;o++){var u=this.getTask(i[o]);a[u.id]=u}}var l=function(t){var e=[];return t.$source&&(e=e.concat(t.$source)),t.$target&&(e=e.concat(t.$target)),e}(this.getTask(n));if(l.length)for(s=s||{},o=0;o<l.length;o++){var c=this.getLink(l[o]);s[c.id]=c}}})),e.attachEvent("onAfterUpdateFinish",function(){(a||s)&&(r.batchUpdate(function(){for(var t in a)r.updateTask(a[t].id);for(var t in s)r.updateLink(s[t].id);a=null,s=null}),a?r._dp.setGanttMode("tasks"):r._dp.setGanttMode("links"))}),e.attachEvent("onBeforeDataSending",function(){if("CUSTOM"===this._tMode)return!0;var t=this._serverProcessor;if("REST-JSON"===this._tMode||"REST"===this._tMode){var e=this._ganttMode;t=t.substring(0,t.indexOf("?")>-1?t.indexOf("?"):t.length),this.serverProcessor=t+("/"===t.slice(-1)?"":"/")+e}else{var n=this._ganttMode+"s";this.serverProcessor=t+r.ajax.urlSeparator(t)+"gantt_mode="+n}return!0}),e.attachEvent("insertCallback",function(t,e,n,i){var o=t.data||r.xml._xmlNodeToJSON(t.firstChild),a={add:r.addTask,isExist:r.isTaskExists};"links"===i&&(a.add=r.addLink,a.isExist=r.isLinkExists),a.isExist.call(r,e)||(o.id=e,a.add.call(r,o))}),e.attachEvent("updateCallback",function(t,e){var n=t.data||r.xml._xmlNodeToJSON(t.firstChild);if(r.isTaskExists(e)){var i=r.getTask(e);for(var o in n){var a=n[o];switch(o){case"id":continue;case"start_date":case"end_date":a=r.defined(r.templates.xml_date)?r.templates.xml_date(a):r.templates.parse_date(a);break;case"duration":i.end_date=r.calculateEndDate({start_date:i.start_date,duration:a,task:i})}i[o]=a}r.updateTask(e),r.refreshData()}}),e.attachEvent("deleteCallback",function(t,e,n,i){var o={delete:r.deleteTask,isExist:r.isTaskExists};"links"===i&&(o.delete=r.deleteLink,o.isExist=r.isLinkExists),o.isExist.call(r,e)&&o.delete.call(r,e)})},t.prototype.detach=function(){var t=this;r.forEach(this._dataProcessorHandlers,function(e){t.$gantt.detachEvent(e)}),this._dataProcessorHandlers=[]},t}();e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(4),i=n(2),o=n(0),a=n(197),s=n(196),u=n(195);e.createDataProcessor=function(t){var e,n;t instanceof Function?e=t:t.hasOwnProperty("router")?e=t.router:t.hasOwnProperty("link")&&t.hasOwnProperty("task")&&(e=t),n=e?"CUSTOM":t.mode||"REST-JSON";var r=new l(t.url);return r.init(this),r.setTransactionMode({mode:n,router:e},t.batchUpdate),r};var l=function(){function t(t){this.serverProcessor=t,this.action_param="!nativeeditor_status",this.updatedRows=[],this.autoUpdate=!0,this.updateMode="cell",this._headers=null,this._payload=null,this._postDelim="_",this._routerParametersFormat="parameters",this._waitMode=0,this._in_progress={},this._storage=u.default.create(),this._invalid={},this.messages=[],this.styles={updated:"font-weight:bold;",inserted:"font-weight:bold;",deleted:"text-decoration : line-through;",invalid:"background-color:FFE0E0;",invalid_cell:"border-bottom:2px solid red;",error:"color:red;",clear:"font-weight:normal;text-decoration:none;"},this.enableUTFencoding(!0),r(this)}return t.prototype.setTransactionMode=function(t,e){"object"==typeof t?(this._tMode=t.mode||this._tMode,o.defined(t.headers)&&(this._headers=t.headers),o.defined(t.payload)&&(this._payload=t.payload),this._tSend=!!e):(this._tMode=t,this._tSend=e),"REST"===this._tMode&&(this._tSend=!1),"JSON"===this._tMode||"REST-JSON"===this._tMode?(this._tSend=!1,this._serializeAsJson=!0,this._headers=this._headers||{},this._headers["Content-Type"]="application/json"):this._headers&&!this._headers["Content-Type"]&&(this._headers["Content-Type"]="application/x-www-form-urlencoded"),"CUSTOM"===this._tMode&&(this._tSend=!1,this._router=t.router)},t.prototype.escape=function(t){return this._utf?encodeURIComponent(t):escape(t)},t.prototype.enableUTFencoding=function(t){this._utf=!!t},t.prototype.getSyncState=function(){return!this.updatedRows.length},t.prototype.setUpdateMode=function(t,e){this.autoUpdate="cell"===t,this.updateMode=t,this.dnd=e},t.prototype.ignore=function(t,e){this._silent_mode=!0,t.call(e||window),this._silent_mode=!1},t.prototype.setUpdated=function(t,e,n){if(!this._silent_mode){var r=this.findRow(t);n=n||"updated";var i=this.$gantt.getUserData(t,this.action_param);i&&"updated"===n&&(n=i),e?(this.set_invalid(t,!1),this.updatedRows[r]=t,this.$gantt.setUserData(t,this.action_param,n),this._in_progress[t]&&(this._in_progress[t]="wait")):this.is_invalid(t)||(this.updatedRows.splice(r,1),this.$gantt.setUserData(t,this.action_param,"")),this.markRow(t,e,n),e&&this.autoUpdate&&this.sendData(t)}},t.prototype.markRow=function(t,e,n){var r="",i=this.is_invalid(t);if(i&&(r=this.styles[i],e=!0),this.callEvent("onRowMark",[t,e,n,i])&&(r=this.styles[e?n:"clear"]+" "+r,this.$gantt[this._methods[0]](t,r),i&&i.details)){r+=this.styles[i+"_cell"];for(var o=0;o<i.details.length;o++)i.details[o]&&this.$gantt[this._methods[1]](t,o,r)}},t.prototype.getActionByState=function(t){return"inserted"===t?"create":"updated"===t?"update":"deleted"===t?"delete":"update"},t.prototype.getState=function(t){return this.$gantt.getUserData(t,this.action_param)},t.prototype.is_invalid=function(t){return this._invalid[t]},t.prototype.set_invalid=function(t,e,n){n&&(e={value:e,details:n,toString:function(){return this.value.toString()}}),this._invalid[t]=e},t.prototype.checkBeforeUpdate=function(t){return!0},t.prototype.sendData=function(t){return this.$gantt.editStop&&this.$gantt.editStop(),void 0===t||this._tSend?this.modes&&this.modes.task&&this.modes.link&&this.modes.task.updatedRows.length&&this.modes.link.updatedRows.length?(this.setGanttMode("task"),this.sendAllData(),this.setGanttMode("link"),void this.sendAllData()):this.sendAllData():!this._in_progress[t]&&(this.messages=[],!(!this.checkBeforeUpdate(t)&&this.callEvent("onValidationError",[t,this.messages]))&&void this._beforeSendData(this._getRowData(t),t))},t.prototype.serialize=function(t,e){if(this._serializeAsJson)return this._serializeAsJSON(t);if("string"==typeof t)return t;if(void 0!==e)return this.serialize_one(t,"");var n=[],r=[];for(var i in t)t.hasOwnProperty(i)&&(n.push(this.serialize_one(t[i],i+this._postDelim)),r.push(i));return n.push("ids="+this.escape(r.join(","))),this.$gantt.security_key&&n.push("dhx_security="+this.$gantt.security_key),n.join("&")},t.prototype.serialize_one=function(t,e){if("string"==typeof t)return t;var n=[],r="";for(var i in t)if(t.hasOwnProperty(i)){if(("id"===i||i==this.action_param)&&"REST"===this._tMode)continue;r="string"==typeof t[i]||"number"==typeof t[i]?t[i]:JSON.stringify(t[i]),n.push(this.escape((e||"")+i)+"="+this.escape(r))}return n.join("&")},t.prototype.sendAllData=function(){if(this.updatedRows.length){this.messages=[];var t=!0;if(this._forEachUpdatedRow(function(e){t=t&&this.checkBeforeUpdate(e)}),!t&&!this.callEvent("onValidationError",["",this.messages]))return!1;this._tSend?this._sendData(this._getAllData()):this._forEachUpdatedRow(function(t){if(!this._in_progress[t]){if(this.is_invalid(t))return;this._beforeSendData(this._getRowData(t),t)}})}},t.prototype.findRow=function(t){var e=0;for(e=0;e<this.updatedRows.length&&t!=this.updatedRows[e];e++);return e},t.prototype.defineAction=function(t,e){this._uActions||(this._uActions={}),this._uActions[t]=e},t.prototype.afterUpdateCallback=function(t,e,n,r,i){if(this.$gantt){this.setGanttMode(i);var o=t,a="error"!==n&&"invalid"!==n;if(a||this.set_invalid(t,n),this._uActions&&this._uActions[n]&&!this._uActions[n](r))return delete this._in_progress[o];"wait"!==this._in_progress[o]&&this.setUpdated(t,!1);var s=t;switch(n){case"inserted":case"insert":e!=t&&(this.setUpdated(t,!1),this.$gantt[this._methods[2]](t,e),t=e);break;case"delete":case"deleted":return this.$gantt.setUserData(t,this.action_param,"true_deleted"),this.$gantt[this._methods[3]](t),delete this._in_progress[o],this.callEvent("onAfterUpdate",[t,n,e,r])}"wait"!==this._in_progress[o]?(a&&this.$gantt.setUserData(t,this.action_param,""),delete this._in_progress[o]):(delete this._in_progress[o],this.setUpdated(e,!0,this.$gantt.getUserData(t,this.action_param))),this.callEvent("onAfterUpdate",[s,n,e,r])}},t.prototype.afterUpdate=function(t,e,n){var r;r=3===arguments.length?arguments[1]:arguments[4];var i=this.getGanttMode(),o=r.filePath||r.url;i="REST"!==this._tMode&&"REST-JSON"!==this._tMode?-1!==o.indexOf("gantt_mode=links")?"link":"task":o.indexOf("/link")>o.indexOf("/task")?"link":"task",this.setGanttMode(i);var a,s=this.$gantt.ajax;try{a=JSON.parse(e.xmlDoc.responseText)}catch(t){e.xmlDoc.responseText.length||(a={})}if(a){var u=a.action||this.getState(n)||"updated",l=a.sid||n[0],c=a.tid||n[0];return t.afterUpdateCallback(l,c,u,a,i),t.finalizeUpdate(),void this.setGanttMode(i)}var f=s.xmltop("data",e.xmlDoc);if(!f)return this.cleanUpdate(n);var d=s.xpath("//data/action",f);if(!d.length)return this.cleanUpdate(n);for(var h=0;h<d.length;h++){var p=d[h];u=p.getAttribute("type"),l=p.getAttribute("sid"),c=p.getAttribute("tid"),t.afterUpdateCallback(l,c,u,p,i)}t.finalizeUpdate()},t.prototype.cleanUpdate=function(t){if(t)for(var e=0;e<t.length;e++)delete this._in_progress[t[e]]},t.prototype.finalizeUpdate=function(){this._waitMode&&this._waitMode--,this.callEvent("onAfterUpdateFinish",[]),this.updatedRows.length||this.callEvent("onFullSync",[])},t.prototype.init=function(t){if(!this._initialized){this.$gantt=t,this.$gantt._dp_init&&this.$gantt._dp_init(this),this._setDefaultTransactionMode(),this.styles={updated:"gantt_updated",order:"gantt_updated",inserted:"gantt_inserted",deleted:"gantt_deleted",invalid:"gantt_invalid",error:"gantt_error",clear:""},this._methods=["_row_style","setCellTextStyle","_change_id","_delete_task"],s.default(this.$gantt,this);var e=new a.default(this.$gantt,this);e.attach(),this.attachEvent("onDestroy",function(){delete this.setGanttMode,delete this._getRowData,delete this.$gantt._dp,delete this.$gantt._change_id,delete this.$gantt._row_style,delete this.$gantt._delete_task,delete this.$gantt._sendTaskOrder,delete this.$gantt,e.detach()}),this.$gantt.callEvent("onDataProcessorReady",[this]),this._initialized=!0}},t.prototype.setOnAfterUpdate=function(t){this.attachEvent("onAfterUpdate",t)},t.prototype.setOnBeforeUpdateHandler=function(t){this.attachEvent("onBeforeDataSending",t)},t.prototype.setAutoUpdate=function(t,e){var n=this;t=t||2e3,this._user=e||(new Date).valueOf(),this._needUpdate=!1,this._updateBusy=!1,this.attachEvent("onAfterUpdate",this.afterAutoUpdate),this.attachEvent("onFullSync",this.fullSync),setInterval(function(){n.loadUpdate()},t)},t.prototype.afterAutoUpdate=function(t,e,n,r){return"collision"!==e||(this._needUpdate=!0,!1)},t.prototype.fullSync=function(){return this._needUpdate&&(this._needUpdate=!1,this.loadUpdate()),!0},t.prototype.getUpdates=function(t,e){var n=this.$gantt.ajax;if(this._updateBusy)return!1;this._updateBusy=!0,n.get(t,e)},t.prototype.loadUpdate=function(){var t=this,e=this.$gantt.ajax,n=this.$gantt.getUserData(0,"version"),r=this.serverProcessor+e.urlSeparator(this.serverProcessor)+["dhx_user="+this._user,"dhx_version="+n].join("&");r=r.replace("editing=true&",""),this.getUpdates(r,function(n){var r=e.xpath("//userdata",n);t.$gantt.setUserData(0,"version",t._getXmlNodeValue(r[0]));var i=e.xpath("//update",n);if(i.length){t._silent_mode=!0;for(var o=0;o<i.length;o++){var a=i[o].getAttribute("status"),s=i[o].getAttribute("id"),u=i[o].getAttribute("parent");switch(a){case"inserted":t.callEvent("insertCallback",[i[o],s,u]);break;case"updated":t.callEvent("updateCallback",[i[o],s,u]);break;case"deleted":t.callEvent("deleteCallback",[i[o],s,u])}}t._silent_mode=!1}t._updateBusy=!1})},t.prototype.destructor=function(){this.callEvent("onDestroy",[]),this.detachAllEvents(),this.updatedRows=[],this._in_progress={},this._invalid={},this._storage.clear(),this._storage=null,this._headers=null,this._payload=null,delete this._initialized},t.prototype.setGanttMode=function(t){"tasks"===t?t="task":"links"===t&&(t="link");var e=this.modes||{},n=this.getGanttMode();n&&(e[n]={_in_progress:this._in_progress,_invalid:this._invalid,_storage:this._storage,updatedRows:this.updatedRows});var r=e[t];r||(r=e[t]={_in_progress:{},_invalid:{},_storage:u.default.create(),updatedRows:[]}),this._in_progress=r._in_progress,this._invalid=r._invalid,this._storage=r._storage,this.updatedRows=r.updatedRows,this.modes=e,this._ganttMode=t},t.prototype.getGanttMode=function(){return this._ganttMode},t.prototype.storeItem=function(t){this._storage.storeItem(t)},t.prototype.url=function(t){this.serverProcessor=this._serverProcessor=t},t.prototype._beforeSendData=function(t,e){if(!this.callEvent("onBeforeUpdate",[e,this.getState(e),t]))return!1;this._sendData(t,e)},t.prototype._serializeAsJSON=function(t){if("string"==typeof t)return t;var e=o.copy(t);return"REST-JSON"===this._tMode&&(delete e.id,delete e[this.action_param]),JSON.stringify(e)},t.prototype._applyPayload=function(t){var e=this.$gantt.ajax;if(this._payload)for(var n in this._payload)t=t+e.urlSeparator(t)+this.escape(n)+"="+this.escape(this._payload[n]);return t},t.prototype._cleanupArgumentsBeforeSend=function(t){var e;if(void 0===t[this.action_param])for(var n in e={},t)e[n]=this._cleanupArgumentsBeforeSend(t[n]);else e=this._cleanupItemBeforeSend(t);return e},t.prototype._cleanupItemBeforeSend=function(t){var e=null;return t&&("deleted"===t[this.action_param]?((e={}).id=t.id,e[this.action_param]=t[this.action_param]):e=t),e},t.prototype._sendData=function(t,e){var n=this;if(t){if(!this.callEvent("onBeforeDataSending",e?[e,this.getState(e),t]:[null,null,t]))return!1;e&&(this._in_progress[e]=(new Date).valueOf());var r=this.$gantt.ajax;if("CUSTOM"!==this._tMode){var i;i={callback:function(r){var i=[];if(e)i.push(e);else if(t)for(var o in t)i.push(o);return n.afterUpdate(n,r,i)},headers:this._headers};var o,a=this.serverProcessor+(this._user?r.urlSeparator(this.serverProcessor)+["dhx_user="+this._user,"dhx_version="+this.$gantt.getUserData(0,"version")].join("&"):""),s=this._applyPayload(a);switch(this._tMode){case"GET":o=this._cleanupArgumentsBeforeSend(t),i.url=s+r.urlSeparator(s)+this.serialize(o,e),i.method="GET";break;case"POST":o=this._cleanupArgumentsBeforeSend(t),i.url=s,i.method="POST",i.data=this.serialize(o,e);break;case"JSON":o={};var u=this._cleanupItemBeforeSend(t);for(var l in u)l!==this.action_param&&"id"!==l&&"gr_id"!==l&&(o[l]=u[l]);i.url=s,i.method="POST",i.data=JSON.stringify({id:e,action:t[this.action_param],data:o});break;case"REST":case"REST-JSON":switch(s=a.replace(/(&|\?)editing=true/,""),o="",this.getState(e)){case"inserted":i.method="POST",i.data=this.serialize(t,e);break;case"deleted":i.method="DELETE",s=s+("/"===s.slice(-1)?"":"/")+e;break;default:i.method="PUT",i.data=this.serialize(t,e),s=s+("/"===s.slice(-1)?"":"/")+e}i.url=this._applyPayload(s)}return this._waitMode++,r.query(i)}var c=this.getState(e),f=this.getActionByState(c),d=this.getGanttMode(),h=function(t){var r=c||"updated",i=e,o=e;t&&(r=t.action||c,i=t.sid||i,o=t.id||t.tid||o),n.afterUpdateCallback(i,o,r,t,d)},p=void 0;if(this._router instanceof Function)if("object"===this._routerParametersFormat){var g={entity:d,action:f,data:t,id:e};p=this._router(g)}else p=this._router(d,f,t,e);else if(this._router[d]instanceof Function)p=this._router[d](f,t,e);else switch(c){case"inserted":p=this._router[d].create(t);break;case"deleted":p=this._router[d].delete(e);break;default:p=this._router[d].update(t,e)}if(p){if(!p.then&&void 0===p.id&&void 0===p.tid&&void 0===p.action)throw new Error("Incorrect router return value. A Promise or a response object is expected");p.then?p.then(h).catch(function(t){h(t&&t.action?t:{action:"error",value:t})}):h(p)}else h(null)}},t.prototype._forEachUpdatedRow=function(t){for(var e=this.updatedRows.slice(),n=0;n<e.length;n++){var r=e[n];this.$gantt.getUserData(r,this.action_param)&&t.call(this,r)}},t.prototype._setDefaultTransactionMode=function(){this.serverProcessor&&(this.setTransactionMode("POST",!0),this.serverProcessor+=(-1!==this.serverProcessor.indexOf("?")?"&":"?")+"editing=true",this._serverProcessor=this.serverProcessor)},t.prototype._getXmlNodeValue=function(t){return t.firstChild?t.firstChild.nodeValue:""},t.prototype._getAllData=function(){var t={},e=!1;return this._forEachUpdatedRow(function(n){if(!this._in_progress[n]&&!this.is_invalid(n)){var r=this._getRowData(n);this.callEvent("onBeforeUpdate",[n,this.getState(n),r])&&(t[n]=r,e=!0,this._in_progress[n]=(new Date).valueOf())}}),e?t:null},t.prototype._prepareDate=function(t){return this.$gantt.defined(this.$gantt.templates.xml_format)?this.$gantt.templates.xml_format(t):this.$gantt.templates.format_date(t)},t.prototype._prepareArray=function(t,e){var n=this;return e.push(t),t.map(function(t){return i.isDate(t)?n._prepareDate(t):Array.isArray(t)&&!i.arrayIncludes(e,t)?n._prepareArray(t,e):t&&"object"==typeof t&&!i.arrayIncludes(e,t)?n._prepareObject(t,e):t})},t.prototype._prepareObject=function(t,e){var n={};for(var r in e.push(t),t)if("$"!==r.substr(0,1)){var o=t[r];i.isDate(o)?n[r]=this._prepareDate(o):null===o?n[r]="":Array.isArray(o)&&!i.arrayIncludes(e,o)?n[r]=this._prepareArray(o,e):o&&"object"==typeof o&&!i.arrayIncludes(e,o)?n[r]=this._prepareObject(o,e):n[r]=o}return n},t.prototype._prepareDataItem=function(t){var e=this._prepareObject(t,[]);return e[this.action_param]=this.$gantt.getUserData(t.id,this.action_param),e},t.prototype.getStoredItem=function(t){return this._storage.getStoredItem(t)},t.prototype._getRowData=function(t){var e,n=this.$gantt;return"task"===this.getGanttMode()?n.isTaskExists(t)&&(e=this.$gantt.getTask(t)):n.isLinkExists(t)&&(e=this.$gantt.getLink(t)),e||(e=this.getStoredItem(t)),e||(e={id:t}),this._prepareDataItem(e)},t}();e.DataProcessor=l},function(t,e,n){var r=n(198);t.exports={DEPRECATED_api:function(t){return new r.DataProcessor(t)},createDataProcessor:r.createDataProcessor,getDataProcessorModes:r.getAvailableModes}},function(t,e,n){var r=n(10);t.exports={bindDataStore:function(t,e){function n(t){return!!t.$services.getService("state").getState("batchUpdate").batch_update}var i=e.getDatastore(t),o=function(t,e){var n=e.getLayers(),r=i.getItem(t);if(r&&i.isVisible(t))for(var o=0;o<n.length;o++)n[o].render_item(r)},a=function(t){for(var e=t.getLayers(),n=0;n<e.length;n++)e[n].clear();for(var r=null,o={},a=0;a<e.length;a++){var s=e[a],u=void 0;if(s.get_visible_range){var l=s.get_visible_range(i),c=l.start+" - "+l.end;o[c]?u=o[c]:(u=i.getIndexRange(l.start,l.end),o[c]=u)}else r||(r=i.getVisibleItems()),u=r;e[a].render_items(u)}},s=function(t){if(t.update_items){var e;if(t.get_visible_range){var n=t.get_visible_range(i);e=i.getIndexRange(n.start,n.end)}else e=i.getVisibleItems();t.update_items(e)}};i.attachEvent("onStoreUpdated",function(n,i,o){if(r(e))return!0;var a=e.$services.getService("layers").getDataRender(t);a&&(a.onUpdateRequest=function(t){s(t)})}),i.attachEvent("onStoreUpdated",function(t,r,o){n(e)||(t&&"move"!=o&&"delete"!=o?(i.callEvent("onBeforeRefreshItem",[r.id]),i.callEvent("onAfterRefreshItem",[r.id])):(i.callEvent("onBeforeRefreshAll",[]),i.callEvent("onAfterRefreshAll",[])))}),i.attachEvent("onAfterRefreshAll",function(){if(r(e))return!0;var i=e.$services.getService("layers").getDataRender(t);i&&!n(e)&&a(i)}),i.attachEvent("onAfterRefreshItem",function(n){if(r(e))return!0;var i=e.$services.getService("layers").getDataRender(t);i&&o(n,i)}),i.attachEvent("onItemOpen",function(){if(r(e))return!0;e.render()}),i.attachEvent("onItemClose",function(){if(r(e))return!0;e.render()}),i.attachEvent("onIdChange",function(a,s){if(r(e))return!0;if(i.callEvent("onBeforeIdChange",[a,s]),!n(e)&&!i.isSilent()){var u=e.$services.getService("layers").getDataRender(t);u?(function(t,e,n,r){for(var i=0;i<t.length;i++)t[i].change_id(e,n)}(u.getLayers(),a,s,i.getItem(s)),o(s,u)):e.render()}})}}},function(t,e){t.exports=function(t){function e(t){n=null,this.callEvent("onAfterUnselect",[t])}var n=null,r=t._removeItemInner;return t._removeItemInner=function(t){return n==t&&e.call(this,t),n&&this.eachItem&&this.eachItem(function(t){t.id==n&&e.call(this,t.id)},t),r.apply(this,arguments)},t.attachEvent("onIdChange",function(e,n){t.getSelectedId()==e&&t.silent(function(){t.unselect(e),t.select(n)})}),{select:function(t){if(t){if(n==t)return n;if(!this._skip_refresh&&!this.callEvent("onBeforeSelect",[t]))return!1;this.unselect(),n=t,this._skip_refresh||(this.refresh(t),this.callEvent("onAfterSelect",[t]))}return n},getSelectedId:function(){return n},isSelected:function(t){return t==n},unselect:function(t){(t=t||n)&&(n=null,this._skip_refresh||(this.refresh(t),e.call(this,t)))}}}},function(t,e,n){var r=n(0);t.exports=function(){return{getLinkCount:function(){return this.$data.linksStore.count()},getLink:function(t){return this.$data.linksStore.getItem(t)},getLinks:function(){return this.$data.linksStore.getItems()},isLinkExists:function(t){return this.$data.linksStore.exists(t)},addLink:function(t){var e=this.$data.linksStore.addItem(t);return this.$data.linksStore.isSilent()&&this.$data.linksStore.fullOrder.push(e),e},updateLink:function(t,e){r.defined(e)||(e=this.getLink(t)),this.$data.linksStore.updateItem(t,e)},deleteLink:function(t){return this.$data.linksStore.removeItem(t)},changeLinkId:function(t,e){return this.$data.linksStore.changeId(t,e)}}}},function(t,e,n){var r=n(0),i=n(2).replaceValidZeroId;t.exports=function(){return{getTask:function(t){t=i(t,this.config.root_id),this.assert(t,"Invalid argument for gantt.getTask");var e=this.$data.tasksStore.getItem(t);return this.assert(e,"Task not found id="+t),e},getTaskByTime:function(t,e){var n=this.$data.tasksStore.getItems(),r=[];if(t||e){t=+t||-1/0,e=+e||1/0;for(var i=0;i<n.length;i++){var o=n[i];+o.start_date<e&&+o.end_date>t&&r.push(o)}}else r=n;return r},isTaskExists:function(t){return!(!this.$data||!this.$data.tasksStore)&&this.$data.tasksStore.exists(t)},updateTask:function(t,e){r.defined(e)||(e=this.getTask(t)),this.$data.tasksStore.updateItem(t,e),this.isTaskExists(t)&&this.refreshTask(t)},addTask:function(t,e,n){return r.defined(t.id)||(t.id=r.uid()),this.isTaskExists(t.id)&&this.getTask(t.id).$index!=t.$index?(t.start_date&&"string"==typeof t.start_date&&(t.start_date=this.date.parseDate(t.start_date,"parse_date")),t.end_date&&"string"==typeof t.end_date&&(t.end_date=this.date.parseDate(t.end_date,"parse_date")),this.$data.tasksStore.updateItem(t.id,t)):(r.defined(e)||(e=this.getParent(t)||0),this.isTaskExists(e)||(e=this.config.root_id),this.setParent(t,e),this.$data.tasksStore.addItem(t,n,e))},deleteTask:function(t){return t=i(t,this.config.root_id),this.$data.tasksStore.removeItem(t)},getTaskCount:function(){return this.$data.tasksStore.count()},getVisibleTaskCount:function(){return this.$data.tasksStore.countVisible()},getTaskIndex:function(t){return this.$data.tasksStore.getBranchIndex(t)},getGlobalTaskIndex:function(t){return t=i(t,this.config.root_id),this.assert(t,"Invalid argument"),this.$data.tasksStore.getIndexById(t)},eachTask:function(t,e,n){return this.$data.tasksStore.eachItem(r.bind(t,n||this),e)},eachParent:function(t,e,n){return this.$data.tasksStore.eachParent(r.bind(t,n||this),e)},changeTaskId:function(t,e){this.$data.tasksStore.changeId(t,e);var n=this.$data.tasksStore.getItem(e),r=[];n.$source&&(r=r.concat(n.$source)),n.$target&&(r=r.concat(n.$target));for(var i=0;i<r.length;i++){var o=this.getLink(r[i]);o.source==t&&(o.source=e),o.target==t&&(o.target=e)}},calculateTaskLevel:function(t){return this.$data.tasksStore.calculateItemLevel(t)},getNext:function(t){return this.$data.tasksStore.getNext(t)},getPrev:function(t){return this.$data.tasksStore.getPrev(t)},getParent:function(t){return this.$data.tasksStore.getParent(t)},setParent:function(t,e,n){return this.$data.tasksStore.setParent(t,e,n)},getSiblings:function(t){return this.$data.tasksStore.getSiblings(t).slice()},getNextSibling:function(t){return this.$data.tasksStore.getNextSibling(t)},getPrevSibling:function(t){return this.$data.tasksStore.getPrevSibling(t)},getTaskByIndex:function(t){var e=this.$data.tasksStore.getIdByIndex(t);return this.isTaskExists(e)?this.getTask(e):null},getChildren:function(t){return this.hasChild(t)?this.$data.tasksStore.getChildren(t).slice():[]},hasChild:function(t){return this.$data.tasksStore.hasChild(t)},open:function(t){this.$data.tasksStore.open(t)},close:function(t){this.$data.tasksStore.close(t)},moveTask:function(t,e,n){return n=i(n,this.config.root_id),this.$data.tasksStore.move.apply(this.$data.tasksStore,arguments)},sort:function(t,e,n,r){var i=!r;this.$data.tasksStore.sort(t,e,n),this.callEvent("onAfterSort",[t,e,n]),i&&this.render()}}}},function(t,e,n){function r(){for(var t=this.$services.getService("datastores"),e=[],n=0;n<t.length;n++){var r=this.getDatastore(t[n]);r.$destroyed||e.push(r)}return e}var i=n(0),o=n(203),a=n(202),s=n(41),u=n(39),l=n(201),c=n(200),f=n(10),d=n(2).replaceValidZeroId;s.default&&(s=s.default);var h=function(){return{createDatastore:function(t){var e="treedatastore"==(t.type||"").toLowerCase()?u:s;if(t){var n=this;t.openInitially=function(){return n.config.open_tree_initially},t.copyOnParse=function(){return n.config.deepcopy_on_parse}}var r=new e(t);if(this.mixin(r,l(r)),t.name){var i="datastore:"+t.name;r.attachEvent("onDestroy",function(){this.$services.dropService(i);for(var e=this.$services.getService("datastores"),n=0;n<e.length;n++)if(e[n]===t.name){e.splice(n,1);break}}.bind(this)),this.$services.dropService(i),this.$services.setService(i,function(){return r});var o=this.$services.getService("datastores");o?o.indexOf(t.name)<0&&o.push(t.name):(o=[],this.$services.setService("datastores",function(){return o}),o.push(t.name)),c.bindDataStore(t.name,this)}return r},getDatastore:function(t){return this.$services.getService("datastore:"+t)},_getDatastores:r,refreshData:function(){var t;f(this)||(t=this.getScrollState()),this.callEvent("onBeforeDataRender",[]);for(var e=r.call(this),n=0;n<e.length;n++)e[n].refresh();this.config.preserve_scroll&&!f(this)&&(t.x||t.y)&&this.scrollTo(t.x,t.y),this.callEvent("onDataRender",[])},isChildOf:function(t,e){return this.$data.tasksStore.isChildOf(t,e)},refreshTask:function(t,e){function n(){if(void 0===e||e){for(var t=0;t<r.$source.length;t++)i.refreshLink(r.$source[t]);for(t=0;t<r.$target.length;t++)i.refreshLink(r.$target[t])}}var r=this.getTask(t),i=this;if(r&&this.isTaskVisible(t))this.$data.tasksStore.refresh(t,!!this.getState("tasksDnd").drag_id||!1===e),n();else if(this.isTaskExists(t)&&this.isTaskExists(this.getParent(t))&&!this._bulk_dnd){this.refreshTask(this.getParent(t));var o=!1;this.eachParent(function(t){(o||this.isSplitTask(t))&&(o=!0)},t),o&&n()}},refreshLink:function(t){this.$data.linksStore.refresh(t,!!this.getState("tasksDnd").drag_id)},silent:function(t){var e=this;e.$data.tasksStore.silent(function(){e.$data.linksStore.silent(function(){t()})})},clearAll:function(){for(var t=r.call(this),e=0;e<t.length;e++)t[e].silent(function(){t[e].clearAll()});for(e=0;e<t.length;e++)t[e].clearAll();this._update_flags(),this.userdata={},this.callEvent("onClear",[]),this.render()},_clear_data:function(){this.$data.tasksStore.clearAll(),this.$data.linksStore.clearAll(),this._update_flags(),this.userdata={}},selectTask:function(t){var e=this.$data.tasksStore;if(!this.config.select_task)return!1;if(t=d(t,this.config.root_id)){var n=this.getSelectedId();e.select(t),n&&e.pull[n].$split_subtask&&n!=t&&this.refreshTask(n),e.pull[t].$split_subtask&&n!=t&&this.refreshTask(t)}return e.getSelectedId()},unselectTask:function(t){var e=this.$data.tasksStore;e.unselect(t),t&&e.pull[t].$split_subtask&&this.refreshTask(t)},isSelectedTask:function(t){return this.$data.tasksStore.isSelected(t)},getSelectedId:function(){return this.$data.tasksStore.getSelectedId()}}};t.exports={create:function(){var t=i.mixin({},h());return i.mixin(t,o()),i.mixin(t,a()),t}}},function(t,e,n){var r=n(0),i=n(204),o=n(38),a=n(11);t.exports=function(t){function e(e){var n=t.isTaskVisible(e);if(!n&&t.isTaskExists(e)){var r=t.getParent(e);t.isTaskExists(r)&&t.isTaskVisible(r)&&(r=t.getTask(r),t.isSplitTask(r)&&(n=!0))}return n}function s(e){if(t.isTaskExists(e.source)){var n=t.getTask(e.source);n.$source=n.$source||[],n.$source.push(e.id)}if(t.isTaskExists(e.target)){var r=t.getTask(e.target);r.$target=r.$target||[],r.$target.push(e.id)}}function u(e){if(t.isTaskExists(e.source))for(var n=t.getTask(e.source),r=0;r<n.$source.length;r++)if(n.$source[r]==e.id){n.$source.splice(r,1);break}if(t.isTaskExists(e.target)){var i=t.getTask(e.target);for(r=0;r<i.$target.length;r++)if(i.$target[r]==e.id){i.$target.splice(r,1);break}}}function l(){for(var e=null,n=t.$data.tasksStore.getItems(),r=0,i=n.length;r<i;r++)(e=n[r]).$source=[],e.$target=[];var o=t.$data.linksStore.getItems();for(r=0,i=o.length;r<i;r++)s(o[r])}function c(t){var e=t.source,n=t.target;for(var r in t.events)!function(t,r){e.attachEvent(t,function(){return n.callEvent(r,Array.prototype.slice.call(arguments))},r)}(r,t.events[r])}var f=i.create();r.mixin(t,f);var d=t.createDatastore({name:"task",type:"treeDatastore",rootId:function(){return t.config.root_id},initItem:r.bind(function(e){this.defined(e.id)||(e.id=this.uid()),e.start_date&&(e.start_date=t.date.parseDate(e.start_date,"parse_date")),e.end_date&&(e.end_date=t.date.parseDate(e.end_date,"parse_date"));var n=null;(e.duration||0===e.duration)&&(e.duration=n=1*e.duration),n&&(e.start_date&&!e.end_date?e.end_date=this.calculateEndDate(e):!e.start_date&&e.end_date&&(e.start_date=this.calculateEndDate({start_date:e.end_date,duration:-e.duration,task:e}))),e.progress=Number(e.progress)||0,this._isAllowedUnscheduledTask(e)&&this._set_default_task_timing(e),this._init_task_timing(e),e.start_date&&e.end_date&&this.correctTaskWorkTime(e),e.$source=[],e.$target=[];var i=this.$data.tasksStore.getItem(e.id);return i&&!r.defined(e.open)&&(e.$open=i.$open),void 0===e.parent&&(e.parent=this.config.root_id),e},t),getConfig:function(){return t.config}}),h=t.createDatastore({name:"link",initItem:r.bind(function(t){return this.defined(t.id)||(t.id=this.uid()),t},t)});t.attachEvent("onDestroy",function(){d.destructor(),h.destructor()}),t.attachEvent("onLinkValidation",function(e){if(t.isLinkExists(e.id)||"predecessor_generated"===e.id)return!0;for(var n=t.getTask(e.source).$source,r=0;r<n.length;r++){var i=t.getLink(n[r]),o=e.source==i.source,a=e.target==i.target,s=e.type==i.type;if(o&&a&&s)return!1}return!0}),d.attachEvent("onBeforeRefreshAll",function(){for(var e=d.getVisibleItems(),n=0;n<e.length;n++){var r=e[n];r.$index=n,r.$local_index=t.getTaskIndex(r.id),t.resetProjectDates(r)}}),d.attachEvent("onFilterItem",function(e,n){if(t.config.show_tasks_outside_timescale)return!0;var r=null,i=null;if(t.config.start_date&&t.config.end_date){if(t._isAllowedUnscheduledTask(n))return!0;if(r=t.config.start_date.valueOf(),i=t.config.end_date.valueOf(),+n.start_date>i||+n.end_date<+r)return!1}return!0}),d.attachEvent("onIdChange",function(e,n){t._update_flags(e,n);var r=t.getTask(n);d.isSilent()||(r.$split_subtask||r.rollup)&&t.eachParent(function(e){t.refreshTask(e.id)},n)}),d.attachEvent("onAfterUpdate",function(e){if(t._update_parents(e),t.getState("batchUpdate").batch_update)return!0;var n=d.getItem(e);n.$source||(n.$source=[]);for(var r=0;r<n.$source.length;r++)h.refresh(n.$source[r]);for(n.$target||(n.$target=[]),r=0;r<n.$target.length;r++)h.refresh(n.$target[r])}),d.attachEvent("onBeforeItemMove",function(e,n,r){return!a(e,t,d)||(console.log("The placeholder task cannot be moved to another position."),!1)}),d.attachEvent("onAfterItemMove",function(e,n,r){var i=t.getTask(e);null!==this.getNextSibling(e)?i.$drop_target=this.getNextSibling(e):null!==this.getPrevSibling(e)?i.$drop_target="next:"+this.getPrevSibling(e):i.$drop_target="next:null"}),d.attachEvent("onStoreUpdated",function(e,n,r){if("delete"==r&&t._update_flags(e,null),!t.$services.getService("state").getState("batchUpdate").batch_update){if(t.config.fit_tasks&&"paint"!==r){var i=t.getState();o(t);var a=t.getState();if(+i.min_date!=+a.min_date||+i.max_date!=+a.max_date)return t.render(),t.callEvent("onScaleAdjusted",[]),!0}"add"==r||"move"==r||"delete"==r?t.$layout&&t.$layout.resize():e||h.refresh()}}),h.attachEvent("onAfterAdd",function(t,e){s(e)}),h.attachEvent("onAfterUpdate",function(t,e){l()}),h.attachEvent("onAfterDelete",function(t,e){u(e)}),h.attachEvent("onBeforeIdChange",function(e,n){u(t.mixin({id:e},t.$data.linksStore.getItem(n))),s(t.$data.linksStore.getItem(n))}),h.attachEvent("onFilterItem",function(n,r){if(!t.config.show_links)return!1;var i=e(r.source),o=e(r.target);return!(!i||!o||t._isAllowedUnscheduledTask(t.getTask(r.source))||t._isAllowedUnscheduledTask(t.getTask(r.target)))&&t.callEvent("onBeforeLinkDisplay",[n,r])}),function(){var e=n(37),r={};t.attachEvent("onBeforeTaskDelete",function(n,i){return r[n]=e.getSubtreeLinks(t,n),!0}),t.attachEvent("onAfterTaskDelete",function(e,n){r[e]&&t.$data.linksStore.silent(function(){for(var n in r[e])t.$data.linksStore.removeItem(n),u(r[e][n]);r[e]=null})})}(),t.attachEvent("onAfterLinkDelete",function(e,n){t.refreshTask(n.source),t.refreshTask(n.target)}),t.attachEvent("onParse",l),c({source:h,target:t,events:{onItemLoading:"onLinkLoading",onBeforeAdd:"onBeforeLinkAdd",onAfterAdd:"onAfterLinkAdd",onBeforeUpdate:"onBeforeLinkUpdate",onAfterUpdate:"onAfterLinkUpdate",onBeforeDelete:"onBeforeLinkDelete",onAfterDelete:"onAfterLinkDelete",onIdChange:"onLinkIdChange"}}),c({source:d,target:t,events:{onItemLoading:"onTaskLoading",onBeforeAdd:"onBeforeTaskAdd",onAfterAdd:"onAfterTaskAdd",onBeforeUpdate:"onBeforeTaskUpdate",onAfterUpdate:"onAfterTaskUpdate",onBeforeDelete:"onBeforeTaskDelete",onAfterDelete:"onAfterTaskDelete",onIdChange:"onTaskIdChange",onBeforeItemMove:"onBeforeTaskMove",onAfterItemMove:"onAfterTaskMove",onFilterItem:"onBeforeTaskDisplay",onItemOpen:"onTaskOpened",onItemClose:"onTaskClosed",onBeforeSelect:"onBeforeTaskSelected",onAfterSelect:"onTaskSelected",onAfterUnselect:"onTaskUnselected"}}),t.$data={tasksStore:d,linksStore:h}}},function(t,e,n){(function(t,e){!function(t,n){"use strict";function r(t){delete s[t]}function i(t){if(u)setTimeout(i,0,t);else{var e=s[t];if(e){u=!0;try{!function(t){var e=t.callback,r=t.args;switch(r.length){case 0:e();break;case 1:e(r[0]);break;case 2:e(r[0],r[1]);break;case 3:e(r[0],r[1],r[2]);break;default:e.apply(n,r)}}(e)}finally{r(t),u=!1}}}}if(!t.setImmediate){var o,a=1,s={},u=!1,l=t.document,c=Object.getPrototypeOf&&Object.getPrototypeOf(t);c=c&&c.setTimeout?c:t,"[object process]"==={}.toString.call(t.process)?o=function(t){e.nextTick(function(){i(t)})}:function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?function(){var e="setImmediate$"+Math.random()+"$",n=function(n){n.source===t&&"string"==typeof n.data&&0===n.data.indexOf(e)&&i(+n.data.slice(e.length))};t.addEventListener?t.addEventListener("message",n,!1):t.attachEvent("onmessage",n),o=function(n){t.postMessage(e+n,"*")}}():t.MessageChannel?function(){var t=new MessageChannel;t.port1.onmessage=function(t){i(t.data)},o=function(e){t.port2.postMessage(e)}}():l&&"onreadystatechange"in l.createElement("script")?function(){var t=l.documentElement;o=function(e){var n=l.createElement("script");n.onreadystatechange=function(){i(e),n.onreadystatechange=null,t.removeChild(n),n=null},t.appendChild(n)}}():o=function(t){setTimeout(i,0,t)},c.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n<e.length;n++)e[n]=arguments[n+1];var r={callback:t,args:e};return s[a]=r,o(a),a++},c.clearImmediate=r}}("undefined"==typeof self?void 0===t?this:t:self)}).call(this,n(14),n(42))},function(t,e,n){(function(t){function r(t,e){this._id=t,this._clearFn=e}var i=void 0!==t&&t||"undefined"!=typeof self&&self||window,o=Function.prototype.apply;e.setTimeout=function(){return new r(o.call(setTimeout,i,arguments),clearTimeout)},e.setInterval=function(){return new r(o.call(setInterval,i,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},r.prototype.unref=r.prototype.ref=function(){},r.prototype.close=function(){this._clearFn.call(i,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},n(206),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(this,n(14))},function(t,e,n){(function(n,r,i){function o(t){"@babel/helpers - typeof";return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var a,s,u;/* @preserve
  21. * The MIT License (MIT)
  22. *
  23. * Copyright (c) 2013-2018 Petka Antonov
  24. *
  25. * Permission is hereby granted, free of charge, to any person obtaining a copy
  26. * of this software and associated documentation files (the "Software"), to deal
  27. * in the Software without restriction, including without limitation the rights
  28. * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  29. * copies of the Software, and to permit persons to whom the Software is
  30. * furnished to do so, subject to the following conditions:
  31. *
  32. * The above copyright notice and this permission notice shall be included in
  33. * all copies or substantial portions of the Software.
  34. *
  35. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  36. * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  37. * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  38. * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  39. * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  40. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  41. * THE SOFTWARE.
  42. *
  43. */
  44. !function(n){"object"==o(e)&&void 0!==t?t.exports=n():(s=[],void 0===(u="function"==typeof(a=n)?a.apply(e,s):a)||(t.exports=u))}(function(){return function t(e,n,r){function i(a,s){if(!n[a]){if(!e[a]){var u="function"==typeof _dereq_&&_dereq_;if(!s&&u)return u(a,!0);if(o)return o(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var c=n[a]={exports:{}};e[a][0].call(c.exports,function(t){return i(e[a][1][t]||t)},c,c.exports,t,e,n,r)}return n[a].exports}for(var o="function"==typeof _dereq_&&_dereq_,a=0;a<r.length;a++)i(r[a]);return i}({1:[function(t,e,n){"use strict";e.exports=function(t){function e(t){var e=new n(t),r=e.promise();return e.setHowMany(1),e.setUnwrap(),e.init(),r}var n=t._SomePromiseArray;t.any=function(t){return e(t)},t.prototype.any=function(){return e(this)}}},{}],2:[function(t,e,r){"use strict";function i(){this._customScheduler=!1,this._isTickUsed=!1,this._lateQueue=new d(16),this._normalQueue=new d(16),this._haveDrainedQueues=!1,this._trampolineEnabled=!0;var t=this;this.drainQueues=function(){t._drainQueues()},this._schedule=f}function o(t,e,n){this._lateQueue.push(t,e,n),this._queueTick()}function a(t,e,n){this._normalQueue.push(t,e,n),this._queueTick()}function s(t){this._normalQueue._pushOne(t),this._queueTick()}function u(t){for(;t.length()>0;)l(t)}function l(t){var e=t.shift();if("function"!=typeof e)e._settlePromises();else{var n=t.shift(),r=t.shift();e.call(n,r)}}var c;try{throw new Error}catch(t){c=t}var f=t("./schedule"),d=t("./queue"),h=t("./util");i.prototype.setScheduler=function(t){var e=this._schedule;return this._schedule=t,this._customScheduler=!0,e},i.prototype.hasCustomScheduler=function(){return this._customScheduler},i.prototype.enableTrampoline=function(){this._trampolineEnabled=!0},i.prototype.disableTrampolineIfNecessary=function(){h.hasDevTools&&(this._trampolineEnabled=!1)},i.prototype.haveItemsQueued=function(){return this._isTickUsed||this._haveDrainedQueues},i.prototype.fatalError=function(t,e){e?(n.stderr.write("Fatal "+(t instanceof Error?t.stack:t)+"\n"),n.exit(2)):this.throwLater(t)},i.prototype.throwLater=function(t,e){if(1===arguments.length&&(e=t,t=function(){throw e}),"undefined"!=typeof setTimeout)setTimeout(function(){t(e)},0);else try{this._schedule(function(){t(e)})}catch(t){throw new Error("No async scheduler available\n\n See http://goo.gl/MqrFmX\n")}},h.hasDevTools?(i.prototype.invokeLater=function(t,e,n){this._trampolineEnabled?o.call(this,t,e,n):this._schedule(function(){setTimeout(function(){t.call(e,n)},100)})},i.prototype.invoke=function(t,e,n){this._trampolineEnabled?a.call(this,t,e,n):this._schedule(function(){t.call(e,n)})},i.prototype.settlePromises=function(t){this._trampolineEnabled?s.call(this,t):this._schedule(function(){t._settlePromises()})}):(i.prototype.invokeLater=o,i.prototype.invoke=a,i.prototype.settlePromises=s),i.prototype._drainQueues=function(){u(this._normalQueue),this._reset(),this._haveDrainedQueues=!0,u(this._lateQueue)},i.prototype._queueTick=function(){this._isTickUsed||(this._isTickUsed=!0,this._schedule(this.drainQueues))},i.prototype._reset=function(){this._isTickUsed=!1},e.exports=i,e.exports.firstLineError=c},{"./queue":26,"./schedule":29,"./util":36}],3:[function(t,e,n){"use strict";e.exports=function(t,e,n,r){var i=!1,o=function(t,e){this._reject(e)},a=function(t,e){e.promiseRejectionQueued=!0,e.bindingPromise._then(o,o,null,this,t)},s=function(t,e){0==(50397184&this._bitField)&&this._resolveCallback(e.target)},u=function(t,e){e.promiseRejectionQueued||this._reject(t)};t.prototype.bind=function(o){i||(i=!0,t.prototype._propagateFrom=r.propagateFromFunction(),t.prototype._boundValue=r.boundValueFunction());var l=n(o),c=new t(e);c._propagateFrom(this,1);var f=this._target();if(c._setBoundTo(l),l instanceof t){var d={promiseRejectionQueued:!1,promise:c,target:f,bindingPromise:l};f._then(e,a,void 0,c,d),l._then(s,u,void 0,c,d),c._setOnCancel(l)}else c._resolveCallback(f);return c},t.prototype._setBoundTo=function(t){void 0!==t?(this._bitField=2097152|this._bitField,this._boundTo=t):this._bitField=-2097153&this._bitField},t.prototype._isBound=function(){return 2097152==(2097152&this._bitField)},t.bind=function(e,n){return t.resolve(n).bind(e)}}},{}],4:[function(t,e,n){"use strict";var r;"undefined"!=typeof Promise&&(r=Promise);var i=t("./promise")();i.noConflict=function(){try{Promise===i&&(Promise=r)}catch(t){}return i},e.exports=i},{"./promise":22}],5:[function(t,e,n){"use strict";var r=Object.create;if(r){var i=r(null),o=r(null);i[" size"]=o[" size"]=0}e.exports=function(e){function n(t){return function(t,n){var r;if(null!=t&&(r=t[n]),"function"!=typeof r){var i="Object "+o.classString(t)+" has no method '"+o.toString(n)+"'";throw new e.TypeError(i)}return r}(t,this.pop()).apply(t,this)}function r(t){return t[this]}function i(t){var e=+this;return e<0&&(e=Math.max(0,e+t.length)),t[e]}var o=t("./util"),a=o.canEvaluate;o.isIdentifier,e.prototype.call=function(t){var e=[].slice.call(arguments,1);return e.push(t),this._then(n,void 0,void 0,e,void 0)},e.prototype.get=function(t){var e;if("number"==typeof t)e=i;else if(a){var n=(void 0)(t);e=null!==n?n:r}else e=r;return this._then(e,void 0,void 0,t,void 0)}}},{"./util":36}],6:[function(t,e,n){"use strict";e.exports=function(e,n,r,i){var o=t("./util"),a=o.tryCatch,s=o.errorObj,u=e._async;e.prototype.break=e.prototype.cancel=function(){if(!i.cancellation())return this._warn("cancellation is disabled");for(var t=this,e=t;t._isCancellable();){if(!t._cancelBy(e)){e._isFollowing()?e._followee().cancel():e._cancelBranched();break}var n=t._cancellationParent;if(null==n||!n._isCancellable()){t._isFollowing()?t._followee().cancel():t._cancelBranched();break}t._isFollowing()&&t._followee().cancel(),t._setWillBeCancelled(),e=t,t=n}},e.prototype._branchHasCancelled=function(){this._branchesRemainingToCancel--},e.prototype._enoughBranchesHaveCancelled=function(){return void 0===this._branchesRemainingToCancel||this._branchesRemainingToCancel<=0},e.prototype._cancelBy=function(t){return t===this?(this._branchesRemainingToCancel=0,this._invokeOnCancel(),!0):(this._branchHasCancelled(),!!this._enoughBranchesHaveCancelled()&&(this._invokeOnCancel(),!0))},e.prototype._cancelBranched=function(){this._enoughBranchesHaveCancelled()&&this._cancel()},e.prototype._cancel=function(){this._isCancellable()&&(this._setCancelled(),u.invoke(this._cancelPromises,this,void 0))},e.prototype._cancelPromises=function(){this._length()>0&&this._settlePromises()},e.prototype._unsetOnCancel=function(){this._onCancelField=void 0},e.prototype._isCancellable=function(){return this.isPending()&&!this._isCancelled()},e.prototype.isCancellable=function(){return this.isPending()&&!this.isCancelled()},e.prototype._doInvokeOnCancel=function(t,e){if(o.isArray(t))for(var n=0;n<t.length;++n)this._doInvokeOnCancel(t[n],e);else if(void 0!==t)if("function"==typeof t){if(!e){var r=a(t).call(this._boundValue());r===s&&(this._attachExtraTrace(r.e),u.throwLater(r.e))}}else t._resultCancelled(this)},e.prototype._invokeOnCancel=function(){var t=this._onCancel();this._unsetOnCancel(),u.invoke(this._doInvokeOnCancel,this,t)},e.prototype._invokeInternalOnCancel=function(){this._isCancellable()&&(this._doInvokeOnCancel(this._onCancel(),!0),this._unsetOnCancel())},e.prototype._resultCancelled=function(){this.cancel()}}},{"./util":36}],7:[function(t,e,n){"use strict";e.exports=function(e){var n=t("./util"),r=t("./es5").keys,i=n.tryCatch,o=n.errorObj;return function(t,a,s){return function(u){var l=s._boundValue();t:for(var c=0;c<t.length;++c){var f=t[c];if(f===Error||null!=f&&f.prototype instanceof Error){if(u instanceof f)return i(a).call(l,u)}else if("function"==typeof f){var d=i(f).call(l,u);if(d===o)return d;if(d)return i(a).call(l,u)}else if(n.isObject(u)){for(var h=r(f),p=0;p<h.length;++p){var g=h[p];if(f[g]!=u[g])continue t}return i(a).call(l,u)}}return e}}}},{"./es5":13,"./util":36}],8:[function(t,e,n){"use strict";e.exports=function(t){function e(){this._trace=new e.CapturedTrace(n())}function n(){var t=i.length-1;if(t>=0)return i[t]}var r=!1,i=[];return t.prototype._promiseCreated=function(){},t.prototype._pushContext=function(){},t.prototype._popContext=function(){return null},t._peekContext=t.prototype._peekContext=function(){},e.prototype._pushContext=function(){void 0!==this._trace&&(this._trace._promiseCreated=null,i.push(this._trace))},e.prototype._popContext=function(){if(void 0!==this._trace){var t=i.pop(),e=t._promiseCreated;return t._promiseCreated=null,e}return null},e.CapturedTrace=null,e.create=function(){if(r)return new e},e.deactivateLongStackTraces=function(){},e.activateLongStackTraces=function(){var i=t.prototype._pushContext,o=t.prototype._popContext,a=t._peekContext,s=t.prototype._peekContext,u=t.prototype._promiseCreated;e.deactivateLongStackTraces=function(){t.prototype._pushContext=i,t.prototype._popContext=o,t._peekContext=a,t.prototype._peekContext=s,t.prototype._promiseCreated=u,r=!1},r=!0,t.prototype._pushContext=e.prototype._pushContext,t.prototype._popContext=e.prototype._popContext,t._peekContext=t.prototype._peekContext=n,t.prototype._promiseCreated=function(){var t=this._peekContext();t&&null==t._promiseCreated&&(t._promiseCreated=this)}},e}},{}],9:[function(t,e,r){"use strict";e.exports=function(e,r){function i(t,e){return{promise:e}}function a(){return!1}function s(t,e,n){var r=this;try{t(e,n,function(t){if("function"!=typeof t)throw new TypeError("onCancel must be a function, got: "+D.toString(t));r._attachCancellationCallback(t)})}catch(t){return t}}function u(t){if(!this._isCancellable())return this;var e=this._onCancel();void 0!==e?D.isArray(e)?e.push(t):this._setOnCancel([e,t]):this._setOnCancel(t)}function l(){return this._onCancelField}function c(t){this._onCancelField=t}function f(){this._cancellationParent=void 0,this._onCancelField=void 0}function d(t,e){if(0!=(1&e)){this._cancellationParent=t;var n=t._branchesRemainingToCancel;void 0===n&&(n=0),t._branchesRemainingToCancel=n+1}0!=(2&e)&&t._isBound()&&this._setBoundTo(t._boundTo)}function h(){var t=this._boundTo;return void 0!==t&&t instanceof e?t.isFulfilled()?t.value():void 0:t}function p(){this._trace=new C(this._peekContext())}function g(t,e){if(I(t)){var n=this._trace;if(void 0!==n&&e&&(n=n._parent),void 0!==n)n.attachExtraTrace(t);else if(!t.__stackCleaned__){var r=b(t);D.notEnumerableProp(t,"stack",r.message+"\n"+r.stack.join("\n")),D.notEnumerableProp(t,"__stackCleaned__",!0)}}}function m(){this._trace=void 0}function v(t,n,r){if(tt.warnings){var i,o=new N(t);if(n)r._attachExtraTrace(o);else if(tt.longStackTraces&&(i=e._peekContext()))i.attachExtraTrace(o);else{var a=b(o);o.stack=a.message+"\n"+a.stack.join("\n")}K("warning",o)||_(o,"",!0)}}function y(t){for(var e=[],n=0;n<t.length;++n){var r=t[n],i=" (No stack trace)"===r||j.test(r),o=i&&J(r);i&&!o&&(B&&" "!==r.charAt(0)&&(r=" "+r),e.push(r))}return e}function b(t){var e=t.stack,n=t.toString();return e="string"==typeof e&&e.length>0?function(t){for(var e=t.stack.replace(/\s+$/g,"").split("\n"),n=0;n<e.length;++n){var r=e[n];if(" (No stack trace)"===r||j.test(r))break}return n>0&&"SyntaxError"!=t.name&&(e=e.slice(n)),e}(t):[" (No stack trace)"],{message:n,stack:"SyntaxError"==t.name?e:y(e)}}function _(t,e,n){if("undefined"!=typeof console){var r;if(D.isObject(t)){var i=t.stack;r=e+F(i,t)}else r=e+String(t);"function"==typeof A?A(r,n):"function"!=typeof console.log&&"object"!==o(console.log)||console.log(r)}}function w(t,e,n,r){var i=!1;try{"function"==typeof e&&(i=!0,"rejectionHandled"===t?e(r):e(n,r))}catch(t){P.throwLater(t)}"unhandledRejection"===t?K(t,n,r)||i||_(n,"Unhandled rejection "):K(t,r)}function x(t){var e;if("function"==typeof t)e="[function "+(t.name||"anonymous")+"]";else{if(e=t&&"function"==typeof t.toString?t.toString():D.toString(t),/\[object [a-zA-Z0-9$_]+\]/.test(e))try{e=JSON.stringify(t)}catch(t){}0===e.length&&(e="(empty array)")}return"(<"+function(t){return t.length<41?t:t.substr(0,38)+"..."}(e)+">, no stack trace)"}function k(){return"function"==typeof Z}function S(t){var e=t.match(Q);if(e)return{fileName:e[1],line:parseInt(e[2],10)}}function C(t){this._parent=t,this._promisesCreated=0;var e=this._length=1+(void 0===t?0:t._length);Z(this,C),e>32&&this.uncycle()}var E,T,A,O=e._getDomain,P=e._async,N=t("./errors").Warning,D=t("./util"),M=t("./es5"),I=D.canAttachTrace,R=/[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/,$=/\((?:timers\.js):\d+:\d+\)/,L=/[\/<\(](.+?):(\d+):(\d+)\)?\s*$/,j=null,F=null,B=!1,V=!(0==D.env("BLUEBIRD_DEBUG")),z=!(0==D.env("BLUEBIRD_WARNINGS")||!V&&!D.env("BLUEBIRD_WARNINGS")),U=!(0==D.env("BLUEBIRD_LONG_STACK_TRACES")||!V&&!D.env("BLUEBIRD_LONG_STACK_TRACES")),H=0!=D.env("BLUEBIRD_W_FORGOTTEN_RETURN")&&(z||!!D.env("BLUEBIRD_W_FORGOTTEN_RETURN"));e.prototype.suppressUnhandledRejections=function(){var t=this._target();t._bitField=-1048577&t._bitField|524288},e.prototype._ensurePossibleRejectionHandled=function(){if(0==(524288&this._bitField)){this._setRejectionIsUnhandled();var t=this;setTimeout(function(){t._notifyUnhandledRejection()},1)}},e.prototype._notifyUnhandledRejectionIsHandled=function(){w("rejectionHandled",E,void 0,this)},e.prototype._setReturnedNonUndefined=function(){this._bitField=268435456|this._bitField},e.prototype._returnedNonUndefined=function(){return 0!=(268435456&this._bitField)},e.prototype._notifyUnhandledRejection=function(){if(this._isRejectionUnhandled()){var t=this._settledValue();this._setUnhandledRejectionIsNotified(),w("unhandledRejection",T,t,this)}},e.prototype._setUnhandledRejectionIsNotified=function(){this._bitField=262144|this._bitField},e.prototype._unsetUnhandledRejectionIsNotified=function(){this._bitField=-262145&this._bitField},e.prototype._isUnhandledRejectionNotified=function(){return(262144&this._bitField)>0},e.prototype._setRejectionIsUnhandled=function(){this._bitField=1048576|this._bitField},e.prototype._unsetRejectionIsUnhandled=function(){this._bitField=-1048577&this._bitField,this._isUnhandledRejectionNotified()&&(this._unsetUnhandledRejectionIsNotified(),this._notifyUnhandledRejectionIsHandled())},e.prototype._isRejectionUnhandled=function(){return(1048576&this._bitField)>0},e.prototype._warn=function(t,e,n){return v(t,e,n||this)},e.onPossiblyUnhandledRejection=function(t){var e=O();T="function"==typeof t?null===e?t:D.domainBind(e,t):void 0},e.onUnhandledRejectionHandled=function(t){var e=O();E="function"==typeof t?null===e?t:D.domainBind(e,t):void 0};var q=function(){};e.longStackTraces=function(){if(P.haveItemsQueued()&&!tt.longStackTraces)throw new Error("cannot enable long stack traces after promises have been created\n\n See http://goo.gl/MqrFmX\n");if(!tt.longStackTraces&&k()){var t=e.prototype._captureStackTrace,n=e.prototype._attachExtraTrace,i=e.prototype._dereferenceTrace;tt.longStackTraces=!0,q=function(){if(P.haveItemsQueued()&&!tt.longStackTraces)throw new Error("cannot enable long stack traces after promises have been created\n\n See http://goo.gl/MqrFmX\n");e.prototype._captureStackTrace=t,e.prototype._attachExtraTrace=n,e.prototype._dereferenceTrace=i,r.deactivateLongStackTraces(),P.enableTrampoline(),tt.longStackTraces=!1},e.prototype._captureStackTrace=p,e.prototype._attachExtraTrace=g,e.prototype._dereferenceTrace=m,r.activateLongStackTraces(),P.disableTrampolineIfNecessary()}},e.hasLongStackTraces=function(){return tt.longStackTraces&&k()};var W=function(){try{if("function"==typeof CustomEvent){var t=new CustomEvent("CustomEvent");return D.global.dispatchEvent(t),function(t,e){var n={detail:e,cancelable:!0};M.defineProperty(n,"promise",{value:e.promise}),M.defineProperty(n,"reason",{value:e.reason});var r=new CustomEvent(t.toLowerCase(),n);return!D.global.dispatchEvent(r)}}return"function"==typeof Event?(t=new Event("CustomEvent"),D.global.dispatchEvent(t),function(t,e){var n=new Event(t.toLowerCase(),{cancelable:!0});return n.detail=e,M.defineProperty(n,"promise",{value:e.promise}),M.defineProperty(n,"reason",{value:e.reason}),!D.global.dispatchEvent(n)}):((t=document.createEvent("CustomEvent")).initCustomEvent("testingtheevent",!1,!0,{}),D.global.dispatchEvent(t),function(t,e){var n=document.createEvent("CustomEvent");return n.initCustomEvent(t.toLowerCase(),!1,!0,e),!D.global.dispatchEvent(n)})}catch(t){}return function(){return!1}}(),G=D.isNode?function(){return n.emit.apply(n,arguments)}:D.global?function(t){var e="on"+t.toLowerCase(),n=D.global[e];return!!n&&(n.apply(D.global,[].slice.call(arguments,1)),!0)}:function(){return!1},Y={promiseCreated:i,promiseFulfilled:i,promiseRejected:i,promiseResolved:i,promiseCancelled:i,promiseChained:function(t,e,n){return{promise:e,child:n}},warning:function(t,e){return{warning:e}},unhandledRejection:function(t,e,n){return{reason:e,promise:n}},rejectionHandled:i},K=function(t){var e=!1;try{e=G.apply(null,arguments)}catch(t){P.throwLater(t),e=!0}var n=!1;try{n=W(t,Y[t].apply(null,arguments))}catch(t){P.throwLater(t),n=!0}return n||e};e.config=function(t){if("longStackTraces"in(t=Object(t))&&(t.longStackTraces?e.longStackTraces():!t.longStackTraces&&e.hasLongStackTraces()&&q()),"warnings"in t){var n=t.warnings;tt.warnings=!!n,H=tt.warnings,D.isObject(n)&&"wForgottenReturn"in n&&(H=!!n.wForgottenReturn)}if("cancellation"in t&&t.cancellation&&!tt.cancellation){if(P.haveItemsQueued())throw new Error("cannot enable cancellation after promises are in use");e.prototype._clearCancellationData=f,e.prototype._propagateFrom=d,e.prototype._onCancel=l,e.prototype._setOnCancel=c,e.prototype._attachCancellationCallback=u,e.prototype._execute=s,X=d,tt.cancellation=!0}return"monitoring"in t&&(t.monitoring&&!tt.monitoring?(tt.monitoring=!0,e.prototype._fireEvent=K):!t.monitoring&&tt.monitoring&&(tt.monitoring=!1,e.prototype._fireEvent=a)),e},e.prototype._fireEvent=a,e.prototype._execute=function(t,e,n){try{t(e,n)}catch(t){return t}},e.prototype._onCancel=function(){},e.prototype._setOnCancel=function(t){},e.prototype._attachCancellationCallback=function(t){},e.prototype._captureStackTrace=function(){},e.prototype._attachExtraTrace=function(){},e.prototype._dereferenceTrace=function(){},e.prototype._clearCancellationData=function(){},e.prototype._propagateFrom=function(t,e){};var X=function(t,e){0!=(2&e)&&t._isBound()&&this._setBoundTo(t._boundTo)},J=function(){return!1},Q=/[\/<\(]([^:\/]+):(\d+):(?:\d+)\)?\s*$/;D.inherits(C,Error),r.CapturedTrace=C,C.prototype.uncycle=function(){var t=this._length;if(!(t<2)){for(var e=[],n={},r=0,i=this;void 0!==i;++r)e.push(i),i=i._parent;for(r=(t=this._length=r)-1;r>=0;--r){var o=e[r].stack;void 0===n[o]&&(n[o]=r)}for(r=0;r<t;++r){var a=n[e[r].stack];if(void 0!==a&&a!==r){a>0&&(e[a-1]._parent=void 0,e[a-1]._length=1),e[r]._parent=void 0,e[r]._length=1;var s=r>0?e[r-1]:this;a<t-1?(s._parent=e[a+1],s._parent.uncycle(),s._length=s._parent._length+1):(s._parent=void 0,s._length=1);for(var u=s._length+1,l=r-2;l>=0;--l)e[l]._length=u,u++;return}}}},C.prototype.attachExtraTrace=function(t){if(!t.__stackCleaned__){this.uncycle();for(var e=b(t),n=e.message,r=[e.stack],i=this;void 0!==i;)r.push(y(i.stack.split("\n"))),i=i._parent;!function(t){for(var e=t[0],n=1;n<t.length;++n){for(var r=t[n],i=e.length-1,o=e[i],a=-1,s=r.length-1;s>=0;--s)if(r[s]===o){a=s;break}for(s=a;s>=0;--s){var u=r[s];if(e[i]!==u)break;e.pop(),i--}e=r}}(r),function(t){for(var e=0;e<t.length;++e)(0===t[e].length||e+1<t.length&&t[e][0]===t[e+1][0])&&(t.splice(e,1),e--)}(r),D.notEnumerableProp(t,"stack",function(t,e){for(var n=0;n<e.length-1;++n)e[n].push("From previous event:"),e[n]=e[n].join("\n");return n<e.length&&(e[n]=e[n].join("\n")),t+"\n"+e.join("\n")}(n,r)),D.notEnumerableProp(t,"__stackCleaned__",!0)}};var Z=function(){var t=/^\s*at\s*/,e=function(t,e){return"string"==typeof t?t:void 0!==e.name&&void 0!==e.message?e.toString():x(e)};if("number"==typeof Error.stackTraceLimit&&"function"==typeof Error.captureStackTrace){Error.stackTraceLimit+=6,j=t,F=e;var n=Error.captureStackTrace;return J=function(t){return R.test(t)},function(t,e){Error.stackTraceLimit+=6,n(t,e),Error.stackTraceLimit-=6}}var r,i=new Error;if("string"==typeof i.stack&&i.stack.split("\n")[0].indexOf("stackDetection@")>=0)return j=/@/,F=e,B=!0,function(t){t.stack=(new Error).stack};try{throw new Error}catch(t){r="stack"in t}return"stack"in i||!r||"number"!=typeof Error.stackTraceLimit?(F=function(t,e){return"string"==typeof t?t:"object"!==o(e)&&"function"!=typeof e||void 0===e.name||void 0===e.message?x(e):e.toString()},null):(j=t,F=e,function(t){Error.stackTraceLimit+=6;try{throw new Error}catch(e){t.stack=e.stack}Error.stackTraceLimit-=6})}();"undefined"!=typeof console&&void 0!==console.warn&&(A=function(t){console.warn(t)},D.isNode&&n.stderr.isTTY?A=function(t,e){var n=e?"":"";console.warn(n+t+"\n")}:D.isNode||"string"!=typeof(new Error).stack||(A=function(t,e){console.warn("%c"+t,e?"color: darkorange":"color: red")}));var tt={warnings:z,longStackTraces:!1,cancellation:!1,monitoring:!1};return U&&e.longStackTraces(),{longStackTraces:function(){return tt.longStackTraces},warnings:function(){return tt.warnings},cancellation:function(){return tt.cancellation},monitoring:function(){return tt.monitoring},propagateFromFunction:function(){return X},boundValueFunction:function(){return h},checkForgottenReturns:function(t,e,n,r,i){if(void 0===t&&null!==e&&H){if(void 0!==i&&i._returnedNonUndefined())return;if(0==(65535&r._bitField))return;n&&(n+=" ");var o="",a="";if(e._trace){for(var s=e._trace.stack.split("\n"),u=y(s),l=u.length-1;l>=0;--l){var c=u[l];if(!$.test(c)){var f=c.match(L);f&&(o="at "+f[1]+":"+f[2]+":"+f[3]+" ");break}}if(u.length>0){var d=u[0];for(l=0;l<s.length;++l)if(s[l]===d){l>0&&(a="\n"+s[l-1]);break}}}var h="a promise was created in a "+n+"handler "+o+"but was not returned from it, see http://goo.gl/rRqMUw"+a;r._warn(h,!0,e)}},setBounds:function(t,e){if(k()){for(var n,r,i=t.stack.split("\n"),o=e.stack.split("\n"),a=-1,s=-1,u=0;u<i.length;++u)if(l=S(i[u])){n=l.fileName,a=l.line;break}for(u=0;u<o.length;++u){var l;if(l=S(o[u])){r=l.fileName,s=l.line;break}}a<0||s<0||!n||!r||n!==r||a>=s||(J=function(t){if(R.test(t))return!0;var e=S(t);return!!(e&&e.fileName===n&&a<=e.line&&e.line<=s)})}},warn:v,deprecated:function(t,e){var n=t+" is deprecated and will be removed in a future version.";return e&&(n+=" Use "+e+" instead."),v(n)},CapturedTrace:C,fireDomEvent:W,fireGlobalEvent:G}}},{"./errors":12,"./es5":13,"./util":36}],10:[function(t,e,n){"use strict";e.exports=function(t){function e(){return this.value}function n(){throw this.reason}t.prototype.return=t.prototype.thenReturn=function(n){return n instanceof t&&n.suppressUnhandledRejections(),this._then(e,void 0,void 0,{value:n},void 0)},t.prototype.throw=t.prototype.thenThrow=function(t){return this._then(n,void 0,void 0,{reason:t},void 0)},t.prototype.catchThrow=function(t){if(arguments.length<=1)return this._then(void 0,n,void 0,{reason:t},void 0);var e=arguments[1];return this.caught(t,function(){throw e})},t.prototype.catchReturn=function(n){if(arguments.length<=1)return n instanceof t&&n.suppressUnhandledRejections(),this._then(void 0,e,void 0,{value:n},void 0);var r=arguments[1];return r instanceof t&&r.suppressUnhandledRejections(),this.caught(n,function(){return r})}}},{}],11:[function(t,e,n){"use strict";e.exports=function(t,e){function n(){return i(this)}var r=t.reduce,i=t.all;t.prototype.each=function(t){return r(this,t,e,0)._then(n,void 0,void 0,this,void 0)},t.prototype.mapSeries=function(t){return r(this,t,e,e)},t.each=function(t,i){return r(t,i,e,0)._then(n,void 0,void 0,t,void 0)},t.mapSeries=function(t,n){return r(t,n,e,e)}}},{}],12:[function(t,e,n){"use strict";function r(t,e){function n(r){if(!(this instanceof n))return new n(r);f(this,"message","string"==typeof r?r:e),f(this,"name",t),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):Error.call(this)}return c(n,Error),n}function i(t){if(!(this instanceof i))return new i(t);f(this,"name","OperationalError"),f(this,"message",t),this.cause=t,this.isOperational=!0,t instanceof Error?(f(this,"message",t.message),f(this,"stack",t.stack)):Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}var o,a,s=t("./es5"),u=s.freeze,l=t("./util"),c=l.inherits,f=l.notEnumerableProp,d=r("Warning","warning"),h=r("CancellationError","cancellation error"),p=r("TimeoutError","timeout error"),g=r("AggregateError","aggregate error");try{o=TypeError,a=RangeError}catch(t){o=r("TypeError","type error"),a=r("RangeError","range error")}for(var m="join pop push shift unshift slice filter forEach some every map indexOf lastIndexOf reduce reduceRight sort reverse".split(" "),v=0;v<m.length;++v)"function"==typeof Array.prototype[m[v]]&&(g.prototype[m[v]]=Array.prototype[m[v]]);s.defineProperty(g.prototype,"length",{value:0,configurable:!1,writable:!0,enumerable:!0}),g.prototype.isOperational=!0;var y=0;g.prototype.toString=function(){var t=Array(4*y+1).join(" "),e="\n"+t+"AggregateError of:\n";y++,t=Array(4*y+1).join(" ");for(var n=0;n<this.length;++n){for(var r=this[n]===this?"[Circular AggregateError]":this[n]+"",i=r.split("\n"),o=0;o<i.length;++o)i[o]=t+i[o];e+=(r=i.join("\n"))+"\n"}return y--,e},c(i,Error);var b=Error.__BluebirdErrorTypes__;b||(b=u({CancellationError:h,TimeoutError:p,OperationalError:i,RejectionError:i,AggregateError:g}),s.defineProperty(Error,"__BluebirdErrorTypes__",{value:b,writable:!1,enumerable:!1,configurable:!1})),e.exports={Error:Error,TypeError:o,RangeError:a,CancellationError:b.CancellationError,OperationalError:b.OperationalError,TimeoutError:b.TimeoutError,AggregateError:b.AggregateError,Warning:d}},{"./es5":13,"./util":36}],13:[function(t,e,n){var r=function(){"use strict";return void 0===this}();if(r)e.exports={freeze:Object.freeze,defineProperty:Object.defineProperty,getDescriptor:Object.getOwnPropertyDescriptor,keys:Object.keys,names:Object.getOwnPropertyNames,getPrototypeOf:Object.getPrototypeOf,isArray:Array.isArray,isES5:r,propertyIsWritable:function(t,e){var n=Object.getOwnPropertyDescriptor(t,e);return!(n&&!n.writable&&!n.set)}};else{var i={}.hasOwnProperty,o={}.toString,a={}.constructor.prototype,s=function(t){var e=[];for(var n in t)i.call(t,n)&&e.push(n);return e};e.exports={isArray:function(t){try{return"[object Array]"===o.call(t)}catch(t){return!1}},keys:s,names:s,defineProperty:function(t,e,n){return t[e]=n.value,t},getDescriptor:function(t,e){return{value:t[e]}},freeze:function(t){return t},getPrototypeOf:function(t){try{return Object(t).constructor.prototype}catch(t){return a}},isES5:r,propertyIsWritable:function(){return!0}}}},{}],14:[function(t,e,n){"use strict";e.exports=function(t,e){var n=t.map;t.prototype.filter=function(t,r){return n(this,t,r,e)},t.filter=function(t,r,i){return n(t,r,i,e)}}},{}],15:[function(t,e,n){"use strict";e.exports=function(e,n,r){function i(t,e,n){this.promise=t,this.type=e,this.handler=n,this.called=!1,this.cancelPromise=null}function o(t){this.finallyHandler=t}function a(t,e){return null!=t.cancelPromise&&(arguments.length>1?t.cancelPromise._reject(e):t.cancelPromise._cancel(),t.cancelPromise=null,!0)}function s(){return l.call(this,this.promise._target()._settledValue())}function u(t){if(!a(this,t))return d.e=t,d}function l(t){var i=this.promise,l=this.handler;if(!this.called){this.called=!0;var c=this.isFinallyHandler()?l.call(i._boundValue()):l.call(i._boundValue(),t);if(c===r)return c;if(void 0!==c){i._setReturnedNonUndefined();var h=n(c,i);if(h instanceof e){if(null!=this.cancelPromise){if(h._isCancelled()){var p=new f("late cancellation observer");return i._attachExtraTrace(p),d.e=p,d}h.isPending()&&h._attachCancellationCallback(new o(this))}return h._then(s,u,void 0,this,void 0)}}}return i.isRejected()?(a(this),d.e=t,d):(a(this),t)}var c=t("./util"),f=e.CancellationError,d=c.errorObj,h=t("./catch_filter")(r);return i.prototype.isFinallyHandler=function(){return 0===this.type},o.prototype._resultCancelled=function(){a(this.finallyHandler)},e.prototype._passThrough=function(t,e,n,r){return"function"!=typeof t?this.then():this._then(n,r,void 0,new i(this,e,t),void 0)},e.prototype.lastly=e.prototype.finally=function(t){return this._passThrough(t,0,l,l)},e.prototype.tap=function(t){return this._passThrough(t,1,l)},e.prototype.tapCatch=function(t){var n=arguments.length;if(1===n)return this._passThrough(t,1,void 0,l);var r,i=new Array(n-1),o=0;for(r=0;r<n-1;++r){var a=arguments[r];if(!c.isObject(a))return e.reject(new TypeError("tapCatch statement predicate: expecting an object but got "+c.classString(a)));i[o++]=a}i.length=o;var s=arguments[r];return this._passThrough(h(i,s,this),1,void 0,l)},i}},{"./catch_filter":7,"./util":36}],16:[function(t,e,n){"use strict";e.exports=function(e,n,r,i,o,a){function s(t,n,i,o){if(a.cancellation()){var s=new e(r),u=this._finallyPromise=new e(r);this._promise=s.lastly(function(){return u}),s._captureStackTrace(),s._setOnCancel(this)}else(this._promise=new e(r))._captureStackTrace();this._stack=o,this._generatorFunction=t,this._receiver=n,this._generator=void 0,this._yieldHandlers="function"==typeof i?[i].concat(d):d,this._yieldedPromise=null,this._cancellationPhase=!1}var u=t("./errors").TypeError,l=t("./util"),c=l.errorObj,f=l.tryCatch,d=[];l.inherits(s,o),s.prototype._isResolved=function(){return null===this._promise},s.prototype._cleanup=function(){this._promise=this._generator=null,a.cancellation()&&null!==this._finallyPromise&&(this._finallyPromise._fulfill(),this._finallyPromise=null)},s.prototype._promiseCancelled=function(){if(!this._isResolved()){var t;if(void 0!==this._generator.return)this._promise._pushContext(),t=f(this._generator.return).call(this._generator,void 0),this._promise._popContext();else{var n=new e.CancellationError("generator .return() sentinel");e.coroutine.returnSentinel=n,this._promise._attachExtraTrace(n),this._promise._pushContext(),t=f(this._generator.throw).call(this._generator,n),this._promise._popContext()}this._cancellationPhase=!0,this._yieldedPromise=null,this._continue(t)}},s.prototype._promiseFulfilled=function(t){this._yieldedPromise=null,this._promise._pushContext();var e=f(this._generator.next).call(this._generator,t);this._promise._popContext(),this._continue(e)},s.prototype._promiseRejected=function(t){this._yieldedPromise=null,this._promise._attachExtraTrace(t),this._promise._pushContext();var e=f(this._generator.throw).call(this._generator,t);this._promise._popContext(),this._continue(e)},s.prototype._resultCancelled=function(){if(this._yieldedPromise instanceof e){var t=this._yieldedPromise;this._yieldedPromise=null,t.cancel()}},s.prototype.promise=function(){return this._promise},s.prototype._run=function(){this._generator=this._generatorFunction.call(this._receiver),this._receiver=this._generatorFunction=void 0,this._promiseFulfilled(void 0)},s.prototype._continue=function(t){var n=this._promise;if(t===c)return this._cleanup(),this._cancellationPhase?n.cancel():n._rejectCallback(t.e,!1);var r=t.value;if(!0===t.done)return this._cleanup(),this._cancellationPhase?n.cancel():n._resolveCallback(r);var o=i(r,this._promise);if(o instanceof e||null!==(o=function(t,n,r){for(var o=0;o<n.length;++o){r._pushContext();var a=f(n[o])(t);if(r._popContext(),a===c){r._pushContext();var s=e.reject(c.e);return r._popContext(),s}var u=i(a,r);if(u instanceof e)return u}return null}(o,this._yieldHandlers,this._promise))){var a=(o=o._target())._bitField;0==(50397184&a)?(this._yieldedPromise=o,o._proxy(this,null)):0!=(33554432&a)?e._async.invoke(this._promiseFulfilled,this,o._value()):0!=(16777216&a)?e._async.invoke(this._promiseRejected,this,o._reason()):this._promiseCancelled()}else this._promiseRejected(new u("A value %s was yielded that could not be treated as a promise\n\n See http://goo.gl/MqrFmX\n\n".replace("%s",String(r))+"From coroutine:\n"+this._stack.split("\n").slice(1,-7).join("\n")))},e.coroutine=function(t,e){if("function"!=typeof t)throw new u("generatorFunction must be a function\n\n See http://goo.gl/MqrFmX\n");var n=Object(e).yieldHandler,r=s,i=(new Error).stack;return function(){var e=t.apply(this,arguments),o=new r(void 0,void 0,n,i),a=o.promise();return o._generator=e,o._promiseFulfilled(void 0),a}},e.coroutine.addYieldHandler=function(t){if("function"!=typeof t)throw new u("expecting a function but got "+l.classString(t));d.push(t)},e.spawn=function(t){if(a.deprecated("Promise.spawn()","Promise.coroutine()"),"function"!=typeof t)return n("generatorFunction must be a function\n\n See http://goo.gl/MqrFmX\n");var r=new s(t,this),i=r.promise();return r._run(e.spawn),i}}},{"./errors":12,"./util":36}],17:[function(t,e,n){"use strict";e.exports=function(e,n,r,i,o,a){var s=t("./util");s.canEvaluate,s.tryCatch,s.errorObj,e.join=function(){var t,e=arguments.length-1;e>0&&"function"==typeof arguments[e]&&(t=arguments[e]);var r=[].slice.call(arguments);t&&r.pop();var i=new n(r).promise();return void 0!==t?i.spread(t):i}}},{"./util":36}],18:[function(t,e,n){"use strict";e.exports=function(e,n,r,i,a,s){function u(t,e,n,r){this.constructor$(t),this._promise._captureStackTrace();var i=c();this._callback=null===i?e:f.domainBind(i,e),this._preservedValues=r===a?new Array(this.length()):null,this._limit=n,this._inFlight=0,this._queue=[],p.invoke(this._asyncInit,this,void 0)}function l(t,n,i,a){if("function"!=typeof n)return r("expecting a function but got "+f.classString(n));var s=0;if(void 0!==i){if("object"!==o(i)||null===i)return e.reject(new TypeError("options argument must be an object but it is "+f.classString(i)));if("number"!=typeof i.concurrency)return e.reject(new TypeError("'concurrency' must be a number but it is "+f.classString(i.concurrency)));s=i.concurrency}return new u(t,n,s="number"==typeof s&&isFinite(s)&&s>=1?s:0,a).promise()}var c=e._getDomain,f=t("./util"),d=f.tryCatch,h=f.errorObj,p=e._async;f.inherits(u,n),u.prototype._asyncInit=function(){this._init$(void 0,-2)},u.prototype._init=function(){},u.prototype._promiseFulfilled=function(t,n){var r=this._values,o=this.length(),a=this._preservedValues,u=this._limit;if(n<0){if(r[n=-1*n-1]=t,u>=1&&(this._inFlight--,this._drainQueue(),this._isResolved()))return!0}else{if(u>=1&&this._inFlight>=u)return r[n]=t,this._queue.push(n),!1;null!==a&&(a[n]=t);var l=this._promise,c=this._callback,f=l._boundValue();l._pushContext();var p=d(c).call(f,t,n,o),g=l._popContext();if(s.checkForgottenReturns(p,g,null!==a?"Promise.filter":"Promise.map",l),p===h)return this._reject(p.e),!0;var m=i(p,this._promise);if(m instanceof e){var v=(m=m._target())._bitField;if(0==(50397184&v))return u>=1&&this._inFlight++,r[n]=m,m._proxy(this,-1*(n+1)),!1;if(0==(33554432&v))return 0!=(16777216&v)?(this._reject(m._reason()),!0):(this._cancel(),!0);p=m._value()}r[n]=p}return++this._totalResolved>=o&&(null!==a?this._filter(r,a):this._resolve(r),!0)},u.prototype._drainQueue=function(){for(var t=this._queue,e=this._limit,n=this._values;t.length>0&&this._inFlight<e;){if(this._isResolved())return;var r=t.pop();this._promiseFulfilled(n[r],r)}},u.prototype._filter=function(t,e){for(var n=e.length,r=new Array(n),i=0,o=0;o<n;++o)t[o]&&(r[i++]=e[o]);r.length=i,this._resolve(r)},u.prototype.preservedValues=function(){return this._preservedValues},e.prototype.map=function(t,e){return l(this,t,e,null)},e.map=function(t,e,n,r){return l(t,e,n,r)}}},{"./util":36}],19:[function(t,e,n){"use strict";e.exports=function(e,n,r,i,o){var a=t("./util"),s=a.tryCatch;e.method=function(t){if("function"!=typeof t)throw new e.TypeError("expecting a function but got "+a.classString(t));return function(){var r=new e(n);r._captureStackTrace(),r._pushContext();var i=s(t).apply(this,arguments),a=r._popContext();return o.checkForgottenReturns(i,a,"Promise.method",r),r._resolveFromSyncValue(i),r}},e.attempt=e.try=function(t){if("function"!=typeof t)return i("expecting a function but got "+a.classString(t));var r,u=new e(n);if(u._captureStackTrace(),u._pushContext(),arguments.length>1){o.deprecated("calling Promise.try with more than 1 argument");var l=arguments[1],c=arguments[2];r=a.isArray(l)?s(t).apply(c,l):s(t).call(c,l)}else r=s(t)();var f=u._popContext();return o.checkForgottenReturns(r,f,"Promise.try",u),u._resolveFromSyncValue(r),u},e.prototype._resolveFromSyncValue=function(t){t===a.errorObj?this._rejectCallback(t.e,!1):this._resolveCallback(t,!0)}}},{"./util":36}],20:[function(t,e,n){"use strict";function r(t){var e;if(function(t){return t instanceof Error&&s.getPrototypeOf(t)===Error.prototype}(t)){(e=new a(t)).name=t.name,e.message=t.message,e.stack=t.stack;for(var n=s.keys(t),r=0;r<n.length;++r){var o=n[r];u.test(o)||(e[o]=t[o])}return e}return i.markAsOriginatingFromRejection(t),t}var i=t("./util"),o=i.maybeWrapAsError,a=t("./errors").OperationalError,s=t("./es5"),u=/^(?:name|message|stack|cause)$/;e.exports=function(t,e){return function(n,i){if(null!==t){if(n){var a=r(o(n));t._attachExtraTrace(a),t._reject(a)}else if(e){var s=[].slice.call(arguments,1);t._fulfill(s)}else t._fulfill(i);t=null}}}},{"./errors":12,"./es5":13,"./util":36}],21:[function(t,e,n){"use strict";e.exports=function(e){function n(t,e){if(!o.isArray(t))return r.call(this,t,e);var n=s(e).apply(this._boundValue(),[null].concat(t));n===u&&a.throwLater(n.e)}function r(t,e){var n=this._boundValue(),r=void 0===t?s(e).call(n,null):s(e).call(n,null,t);r===u&&a.throwLater(r.e)}function i(t,e){if(!t){var n=new Error(t+"");n.cause=t,t=n}var r=s(e).call(this._boundValue(),t);r===u&&a.throwLater(r.e)}var o=t("./util"),a=e._async,s=o.tryCatch,u=o.errorObj;e.prototype.asCallback=e.prototype.nodeify=function(t,e){if("function"==typeof t){var o=r;void 0!==e&&Object(e).spread&&(o=n),this._then(o,i,void 0,this,t)}return this}}},{"./util":36}],22:[function(t,e,r){"use strict";e.exports=function(){function r(){}function i(t){t!==_&&function(t,e){if(null==t||t.constructor!==i)throw new y("the promise constructor cannot be invoked directly\n\n See http://goo.gl/MqrFmX\n");if("function"!=typeof e)throw new y("expecting a function but got "+h.classString(e))}(this,t),this._bitField=0,this._fulfillmentHandler0=void 0,this._rejectionHandler0=void 0,this._promise0=void 0,this._receiver0=void 0,this._resolveFromExecutor(t),this._promiseCreated(),this._fireEvent("promiseCreated",this)}function o(t){this.promise._resolveCallback(t)}function a(t){this.promise._rejectCallback(t,!1)}function s(t){var e=new i(_);e._fulfillmentHandler0=t,e._rejectionHandler0=t,e._promise0=t,e._receiver0=t}var u,l=function(){return new y("circular promise resolution chain\n\n See http://goo.gl/MqrFmX\n")},c=function(){return new i.PromiseInspection(this._target())},f=function(t){return i.reject(new y(t))},d={},h=t("./util");u=h.isNode?function(){var t=n.domain;return void 0===t&&(t=null),t}:function(){return null},h.notEnumerableProp(i,"_getDomain",u);var p=t("./es5"),g=t("./async"),m=new g;p.defineProperty(i,"_async",{value:m});var v=t("./errors"),y=i.TypeError=v.TypeError;i.RangeError=v.RangeError;var b=i.CancellationError=v.CancellationError;i.TimeoutError=v.TimeoutError,i.OperationalError=v.OperationalError,i.RejectionError=v.OperationalError,i.AggregateError=v.AggregateError;var _=function(){},w={},x={},k=t("./thenables")(i,_),S=t("./promise_array")(i,_,k,f,r),C=t("./context")(i),E=C.create,T=t("./debuggability")(i,C),A=(T.CapturedTrace,t("./finally")(i,k,x)),O=t("./catch_filter")(x),P=t("./nodeback"),N=h.errorObj,D=h.tryCatch;return i.prototype.toString=function(){return"[object Promise]"},i.prototype.caught=i.prototype.catch=function(t){var e=arguments.length;if(e>1){var n,r=new Array(e-1),i=0;for(n=0;n<e-1;++n){var o=arguments[n];if(!h.isObject(o))return f("Catch statement predicate: expecting an object but got "+h.classString(o));r[i++]=o}return r.length=i,t=arguments[n],this.then(void 0,O(r,t,this))}return this.then(void 0,t)},i.prototype.reflect=function(){return this._then(c,c,void 0,this,void 0)},i.prototype.then=function(t,e){if(T.warnings()&&arguments.length>0&&"function"!=typeof t&&"function"!=typeof e){var n=".then() only accepts functions but was passed: "+h.classString(t);arguments.length>1&&(n+=", "+h.classString(e)),this._warn(n)}return this._then(t,e,void 0,void 0,void 0)},i.prototype.done=function(t,e){this._then(t,e,void 0,void 0,void 0)._setIsFinal()},i.prototype.spread=function(t){return"function"!=typeof t?f("expecting a function but got "+h.classString(t)):this.all()._then(t,void 0,void 0,w,void 0)},i.prototype.toJSON=function(){var t={isFulfilled:!1,isRejected:!1,fulfillmentValue:void 0,rejectionReason:void 0};return this.isFulfilled()?(t.fulfillmentValue=this.value(),t.isFulfilled=!0):this.isRejected()&&(t.rejectionReason=this.reason(),t.isRejected=!0),t},i.prototype.all=function(){return arguments.length>0&&this._warn(".all() was passed arguments but it does not take any"),new S(this).promise()},i.prototype.error=function(t){return this.caught(h.originatesFromRejection,t)},i.getNewLibraryCopy=e.exports,i.is=function(t){return t instanceof i},i.fromNode=i.fromCallback=function(t){var e=new i(_);e._captureStackTrace();var n=arguments.length>1&&!!Object(arguments[1]).multiArgs,r=D(t)(P(e,n));return r===N&&e._rejectCallback(r.e,!0),e._isFateSealed()||e._setAsyncGuaranteed(),e},i.all=function(t){return new S(t).promise()},i.cast=function(t){var e=k(t);return e instanceof i||((e=new i(_))._captureStackTrace(),e._setFulfilled(),e._rejectionHandler0=t),e},i.resolve=i.fulfilled=i.cast,i.reject=i.rejected=function(t){var e=new i(_);return e._captureStackTrace(),e._rejectCallback(t,!0),e},i.setScheduler=function(t){if("function"!=typeof t)throw new y("expecting a function but got "+h.classString(t));return m.setScheduler(t)},i.prototype._then=function(t,e,n,r,o){var a=void 0!==o,s=a?o:new i(_),l=this._target(),c=l._bitField;a||(s._propagateFrom(this,3),s._captureStackTrace(),void 0===r&&0!=(2097152&this._bitField)&&(r=0!=(50397184&c)?this._boundValue():l===this?void 0:this._boundTo),this._fireEvent("promiseChained",this,s));var f=u();if(0!=(50397184&c)){var d,p,g=l._settlePromiseCtx;0!=(33554432&c)?(p=l._rejectionHandler0,d=t):0!=(16777216&c)?(p=l._fulfillmentHandler0,d=e,l._unsetRejectionIsUnhandled()):(g=l._settlePromiseLateCancellationObserver,p=new b("late cancellation observer"),l._attachExtraTrace(p),d=e),m.invoke(g,l,{handler:null===f?d:"function"==typeof d&&h.domainBind(f,d),promise:s,receiver:r,value:p})}else l._addCallbacks(t,e,s,r,f);return s},i.prototype._length=function(){return 65535&this._bitField},i.prototype._isFateSealed=function(){return 0!=(117506048&this._bitField)},i.prototype._isFollowing=function(){return 67108864==(67108864&this._bitField)},i.prototype._setLength=function(t){this._bitField=-65536&this._bitField|65535&t},i.prototype._setFulfilled=function(){this._bitField=33554432|this._bitField,this._fireEvent("promiseFulfilled",this)},i.prototype._setRejected=function(){this._bitField=16777216|this._bitField,this._fireEvent("promiseRejected",this)},i.prototype._setFollowing=function(){this._bitField=67108864|this._bitField,this._fireEvent("promiseResolved",this)},i.prototype._setIsFinal=function(){this._bitField=4194304|this._bitField},i.prototype._isFinal=function(){return(4194304&this._bitField)>0},i.prototype._unsetCancelled=function(){this._bitField=-65537&this._bitField},i.prototype._setCancelled=function(){this._bitField=65536|this._bitField,this._fireEvent("promiseCancelled",this)},i.prototype._setWillBeCancelled=function(){this._bitField=8388608|this._bitField},i.prototype._setAsyncGuaranteed=function(){m.hasCustomScheduler()||(this._bitField=134217728|this._bitField)},i.prototype._receiverAt=function(t){var e=0===t?this._receiver0:this[4*t-4+3];if(e!==d)return void 0===e&&this._isBound()?this._boundValue():e},i.prototype._promiseAt=function(t){return this[4*t-4+2]},i.prototype._fulfillmentHandlerAt=function(t){return this[4*t-4+0]},i.prototype._rejectionHandlerAt=function(t){return this[4*t-4+1]},i.prototype._boundValue=function(){},i.prototype._migrateCallback0=function(t){t._bitField;var e=t._fulfillmentHandler0,n=t._rejectionHandler0,r=t._promise0,i=t._receiverAt(0);void 0===i&&(i=d),this._addCallbacks(e,n,r,i,null)},i.prototype._migrateCallbackAt=function(t,e){var n=t._fulfillmentHandlerAt(e),r=t._rejectionHandlerAt(e),i=t._promiseAt(e),o=t._receiverAt(e);void 0===o&&(o=d),this._addCallbacks(n,r,i,o,null)},i.prototype._addCallbacks=function(t,e,n,r,i){var o=this._length();if(o>=65531&&(o=0,this._setLength(0)),0===o)this._promise0=n,this._receiver0=r,"function"==typeof t&&(this._fulfillmentHandler0=null===i?t:h.domainBind(i,t)),"function"==typeof e&&(this._rejectionHandler0=null===i?e:h.domainBind(i,e));else{var a=4*o-4;this[a+2]=n,this[a+3]=r,"function"==typeof t&&(this[a+0]=null===i?t:h.domainBind(i,t)),"function"==typeof e&&(this[a+1]=null===i?e:h.domainBind(i,e))}return this._setLength(o+1),o},i.prototype._proxy=function(t,e){this._addCallbacks(void 0,void 0,e,t,null)},i.prototype._resolveCallback=function(t,e){if(0==(117506048&this._bitField)){if(t===this)return this._rejectCallback(l(),!1);var n=k(t,this);if(!(n instanceof i))return this._fulfill(t);e&&this._propagateFrom(n,2);var r=n._target();if(r!==this){var o=r._bitField;if(0==(50397184&o)){var a=this._length();a>0&&r._migrateCallback0(this);for(var s=1;s<a;++s)r._migrateCallbackAt(this,s);this._setFollowing(),this._setLength(0),this._setFollowee(r)}else if(0!=(33554432&o))this._fulfill(r._value());else if(0!=(16777216&o))this._reject(r._reason());else{var u=new b("late cancellation observer");r._attachExtraTrace(u),this._reject(u)}}else this._reject(l())}},i.prototype._rejectCallback=function(t,e,n){var r=h.ensureErrorObject(t),i=r===t;if(!i&&!n&&T.warnings()){var o="a promise was rejected with a non-error: "+h.classString(t);this._warn(o,!0)}this._attachExtraTrace(r,!!e&&i),this._reject(t)},i.prototype._resolveFromExecutor=function(t){if(t!==_){var e=this;this._captureStackTrace(),this._pushContext();var n=!0,r=this._execute(t,function(t){e._resolveCallback(t)},function(t){e._rejectCallback(t,n)});n=!1,this._popContext(),void 0!==r&&e._rejectCallback(r,!0)}},i.prototype._settlePromiseFromHandler=function(t,e,n,r){var i=r._bitField;if(0==(65536&i)){var o;r._pushContext(),e===w?n&&"number"==typeof n.length?o=D(t).apply(this._boundValue(),n):(o=N).e=new y("cannot .spread() a non-array: "+h.classString(n)):o=D(t).call(e,n);var a=r._popContext();0==(65536&(i=r._bitField))&&(o===x?r._reject(n):o===N?r._rejectCallback(o.e,!1):(T.checkForgottenReturns(o,a,"",r,this),r._resolveCallback(o)))}},i.prototype._target=function(){for(var t=this;t._isFollowing();)t=t._followee();return t},i.prototype._followee=function(){return this._rejectionHandler0},i.prototype._setFollowee=function(t){this._rejectionHandler0=t},i.prototype._settlePromise=function(t,e,n,o){var a=t instanceof i,s=this._bitField,u=0!=(134217728&s);0!=(65536&s)?(a&&t._invokeInternalOnCancel(),n instanceof A&&n.isFinallyHandler()?(n.cancelPromise=t,D(e).call(n,o)===N&&t._reject(N.e)):e===c?t._fulfill(c.call(n)):n instanceof r?n._promiseCancelled(t):a||t instanceof S?t._cancel():n.cancel()):"function"==typeof e?a?(u&&t._setAsyncGuaranteed(),this._settlePromiseFromHandler(e,n,o,t)):e.call(n,o,t):n instanceof r?n._isResolved()||(0!=(33554432&s)?n._promiseFulfilled(o,t):n._promiseRejected(o,t)):a&&(u&&t._setAsyncGuaranteed(),0!=(33554432&s)?t._fulfill(o):t._reject(o))},i.prototype._settlePromiseLateCancellationObserver=function(t){var e=t.handler,n=t.promise,r=t.receiver,o=t.value;"function"==typeof e?n instanceof i?this._settlePromiseFromHandler(e,r,o,n):e.call(r,o,n):n instanceof i&&n._reject(o)},i.prototype._settlePromiseCtx=function(t){this._settlePromise(t.promise,t.handler,t.receiver,t.value)},i.prototype._settlePromise0=function(t,e,n){var r=this._promise0,i=this._receiverAt(0);this._promise0=void 0,this._receiver0=void 0,this._settlePromise(r,t,i,e)},i.prototype._clearCallbackDataAtIndex=function(t){var e=4*t-4;this[e+2]=this[e+3]=this[e+0]=this[e+1]=void 0},i.prototype._fulfill=function(t){var e=this._bitField;if(!((117506048&e)>>>16)){if(t===this){var n=l();return this._attachExtraTrace(n),this._reject(n)}this._setFulfilled(),this._rejectionHandler0=t,(65535&e)>0&&(0!=(134217728&e)?this._settlePromises():m.settlePromises(this),this._dereferenceTrace())}},i.prototype._reject=function(t){var e=this._bitField;if(!((117506048&e)>>>16)){if(this._setRejected(),this._fulfillmentHandler0=t,this._isFinal())return m.fatalError(t,h.isNode);(65535&e)>0?m.settlePromises(this):this._ensurePossibleRejectionHandled()}},i.prototype._fulfillPromises=function(t,e){for(var n=1;n<t;n++){var r=this._fulfillmentHandlerAt(n),i=this._promiseAt(n),o=this._receiverAt(n);this._clearCallbackDataAtIndex(n),this._settlePromise(i,r,o,e)}},i.prototype._rejectPromises=function(t,e){for(var n=1;n<t;n++){var r=this._rejectionHandlerAt(n),i=this._promiseAt(n),o=this._receiverAt(n);this._clearCallbackDataAtIndex(n),this._settlePromise(i,r,o,e)}},i.prototype._settlePromises=function(){var t=this._bitField,e=65535&t;if(e>0){if(0!=(16842752&t)){var n=this._fulfillmentHandler0;this._settlePromise0(this._rejectionHandler0,n,t),this._rejectPromises(e,n)}else{var r=this._rejectionHandler0;this._settlePromise0(this._fulfillmentHandler0,r,t),this._fulfillPromises(e,r)}this._setLength(0)}this._clearCancellationData()},i.prototype._settledValue=function(){var t=this._bitField;return 0!=(33554432&t)?this._rejectionHandler0:0!=(16777216&t)?this._fulfillmentHandler0:void 0},i.defer=i.pending=function(){return T.deprecated("Promise.defer","new Promise"),{promise:new i(_),resolve:o,reject:a}},h.notEnumerableProp(i,"_makeSelfResolutionError",l),t("./method")(i,_,k,f,T),t("./bind")(i,_,k,T),t("./cancel")(i,S,f,T),t("./direct_resolve")(i),t("./synchronous_inspection")(i),t("./join")(i,S,k,_,m,u),i.Promise=i,i.version="3.5.4",t("./map.js")(i,S,f,k,_,T),t("./call_get.js")(i),t("./using.js")(i,f,k,E,_,T),t("./timers.js")(i,_,T),t("./generators.js")(i,f,_,k,r,T),t("./nodeify.js")(i),t("./promisify.js")(i,_),t("./props.js")(i,S,k,f),t("./race.js")(i,_,k,f),t("./reduce.js")(i,S,f,k,_,T),t("./settle.js")(i,S,T),t("./some.js")(i,S,f),t("./filter.js")(i,_),t("./each.js")(i,_),t("./any.js")(i),h.toFastProperties(i),h.toFastProperties(i.prototype),s({a:1}),s({b:2}),s({c:3}),s(1),s(function(){}),s(void 0),s(!1),s(new i(_)),T.setBounds(g.firstLineError,h.lastLineError),i}},{"./any.js":1,"./async":2,"./bind":3,"./call_get.js":5,"./cancel":6,"./catch_filter":7,"./context":8,"./debuggability":9,"./direct_resolve":10,"./each.js":11,"./errors":12,"./es5":13,"./filter.js":14,"./finally":15,"./generators.js":16,"./join":17,"./map.js":18,"./method":19,"./nodeback":20,"./nodeify.js":21,"./promise_array":23,"./promisify.js":24,"./props.js":25,"./race.js":27,"./reduce.js":28,"./settle.js":30,"./some.js":31,"./synchronous_inspection":32,"./thenables":33,"./timers.js":34,"./using.js":35,"./util":36}],23:[function(t,e,n){"use strict";e.exports=function(e,n,r,i,o){function a(t){var r=this._promise=new e(n);t instanceof e&&r._propagateFrom(t,3),r._setOnCancel(this),this._values=t,this._length=0,this._totalResolved=0,this._init(void 0,-2)}var s=t("./util");return s.isArray,s.inherits(a,o),a.prototype.length=function(){return this._length},a.prototype.promise=function(){return this._promise},a.prototype._init=function t(n,o){var a=r(this._values,this._promise);if(a instanceof e){var u=(a=a._target())._bitField;if(this._values=a,0==(50397184&u))return this._promise._setAsyncGuaranteed(),a._then(t,this._reject,void 0,this,o);if(0==(33554432&u))return 0!=(16777216&u)?this._reject(a._reason()):this._cancel();a=a._value()}if(null!==(a=s.asArray(a)))0!==a.length?this._iterate(a):-5===o?this._resolveEmptyArray():this._resolve(function(t){switch(t){case-2:return[];case-3:return{};case-6:return new Map}}(o));else{var l=i("expecting an array or an iterable object but got "+s.classString(a)).reason();this._promise._rejectCallback(l,!1)}},a.prototype._iterate=function(t){var n=this.getActualLength(t.length);this._length=n,this._values=this.shouldCopyValues()?new Array(n):this._values;for(var i=this._promise,o=!1,a=null,s=0;s<n;++s){var u=r(t[s],i);a=u instanceof e?(u=u._target())._bitField:null,o?null!==a&&u.suppressUnhandledRejections():null!==a?0==(50397184&a)?(u._proxy(this,s),this._values[s]=u):o=0!=(33554432&a)?this._promiseFulfilled(u._value(),s):0!=(16777216&a)?this._promiseRejected(u._reason(),s):this._promiseCancelled(s):o=this._promiseFulfilled(u,s)}o||i._setAsyncGuaranteed()},a.prototype._isResolved=function(){return null===this._values},a.prototype._resolve=function(t){this._values=null,this._promise._fulfill(t)},a.prototype._cancel=function(){!this._isResolved()&&this._promise._isCancellable()&&(this._values=null,this._promise._cancel())},a.prototype._reject=function(t){this._values=null,this._promise._rejectCallback(t,!1)},a.prototype._promiseFulfilled=function(t,e){return this._values[e]=t,++this._totalResolved>=this._length&&(this._resolve(this._values),!0)},a.prototype._promiseCancelled=function(){return this._cancel(),!0},a.prototype._promiseRejected=function(t){return this._totalResolved++,this._reject(t),!0},a.prototype._resultCancelled=function(){if(!this._isResolved()){var t=this._values;if(this._cancel(),t instanceof e)t.cancel();else for(var n=0;n<t.length;++n)t[n]instanceof e&&t[n].cancel()}},a.prototype.shouldCopyValues=function(){return!0},a.prototype.getActualLength=function(t){return t},a}},{"./util":36}],24:[function(t,e,n){"use strict";e.exports=function(e,n){function r(t){return!v.test(t)}function i(t){try{return!0===t.__isPromisified__}catch(t){return!1}}function a(t,e,n){var r=c.getDataPropertyOrDefault(t,e+n,m);return!!r&&i(r)}function s(t,e,n,r){for(var o=c.inheritedDataKeys(t),s=[],u=0;u<o.length;++u){var l=o[u],f=t[l],d=r===y||y(l,f,t);"function"!=typeof f||i(f)||a(t,l,e)||!r(l,f,t,d)||s.push(l,f)}return function(t,e,n){for(var r=0;r<t.length;r+=2){var i=t[r];if(n.test(i))for(var o=i.replace(n,""),a=0;a<t.length;a+=2)if(t[a]===o)throw new g("Cannot promisify an API that has normal methods with '%s'-suffix\n\n See http://goo.gl/MqrFmX\n".replace("%s",e))}}(s,e,n),s}function u(t,e,n,r,i){for(var o=new RegExp(b(e)+"$"),a=s(t,e,o,n),u=0,f=a.length;u<f;u+=2){var d=a[u],h=a[u+1],p=d+e;if(r===_)t[p]=_(d,l,d,h,e,i);else{var g=r(h,function(){return _(d,l,d,h,e,i)});c.notEnumerableProp(g,"__isPromisified__",!0),t[p]=g}}return c.toFastProperties(t),t}var l={},c=t("./util"),f=t("./nodeback"),d=c.withAppended,h=c.maybeWrapAsError,p=c.canEvaluate,g=t("./errors").TypeError,m={__isPromisified__:!0},v=new RegExp("^(?:"+["arity","length","name","arguments","caller","callee","prototype","__isPromisified__"].join("|")+")$"),y=function(t){return c.isIdentifier(t)&&"_"!==t.charAt(0)&&"constructor"!==t},b=function(t){return t.replace(/([$])/,"\\$")},_=p?void 0:function(t,r,i,o,a,s){function u(){var i=r;r===l&&(i=this);var o=new e(n);o._captureStackTrace();var a="string"==typeof g&&this!==p?this[g]:t,u=f(o,s);try{a.apply(i,d(arguments,u))}catch(t){o._rejectCallback(h(t),!0,!0)}return o._isFateSealed()||o._setAsyncGuaranteed(),o}var p=function(){return this}(),g=t;return"string"==typeof g&&(t=o),c.notEnumerableProp(u,"__isPromisified__",!0),u};e.promisify=function(t,e){if("function"!=typeof t)throw new g("expecting a function but got "+c.classString(t));if(i(t))return t;var n=function(t,e,n){return _(t,e,void 0,t,null,n)}(t,void 0===(e=Object(e)).context?l:e.context,!!e.multiArgs);return c.copyDescriptors(t,n,r),n},e.promisifyAll=function(t,e){if("function"!=typeof t&&"object"!==o(t))throw new g("the target of promisifyAll must be an object or a function\n\n See http://goo.gl/MqrFmX\n");var n=!!(e=Object(e)).multiArgs,r=e.suffix;"string"!=typeof r&&(r="Async");var i=e.filter;"function"!=typeof i&&(i=y);var a=e.promisifier;if("function"!=typeof a&&(a=_),!c.isIdentifier(r))throw new RangeError("suffix must be a valid identifier\n\n See http://goo.gl/MqrFmX\n");for(var s=c.inheritedDataKeys(t),l=0;l<s.length;++l){var f=t[s[l]];"constructor"!==s[l]&&c.isClass(f)&&(u(f.prototype,r,i,a,n),u(f,r,i,a,n))}return u(t,r,i,a,n)}}},{"./errors":12,"./nodeback":20,"./util":36}],25:[function(t,e,n){"use strict";e.exports=function(e,n,r,i){function o(t){var e,n=!1;if(void 0!==s&&t instanceof s)e=f(t),n=!0;else{var r=c.keys(t),i=r.length;e=new Array(2*i);for(var o=0;o<i;++o){var a=r[o];e[o]=t[a],e[o+i]=a}}this.constructor$(e),this._isMap=n,this._init$(void 0,n?-6:-3)}function a(t){var n,a=r(t);return l(a)?(n=a instanceof e?a._then(e.props,void 0,void 0,void 0,void 0):new o(a).promise(),a instanceof e&&n._propagateFrom(a,2),n):i("cannot await properties of a non-object\n\n See http://goo.gl/MqrFmX\n")}var s,u=t("./util"),l=u.isObject,c=t("./es5");"function"==typeof Map&&(s=Map);var f=function(){function t(t,r){this[e]=t,this[e+n]=r,e++}var e=0,n=0;return function(r){n=r.size,e=0;var i=new Array(2*r.size);return r.forEach(t,i),i}}();u.inherits(o,n),o.prototype._init=function(){},o.prototype._promiseFulfilled=function(t,e){if(this._values[e]=t,++this._totalResolved>=this._length){var n;if(this._isMap)n=function(t){for(var e=new s,n=t.length/2|0,r=0;r<n;++r){var i=t[n+r],o=t[r];e.set(i,o)}return e}(this._values);else{n={};for(var r=this.length(),i=0,o=this.length();i<o;++i)n[this._values[i+r]]=this._values[i]}return this._resolve(n),!0}return!1},o.prototype.shouldCopyValues=function(){return!1},o.prototype.getActualLength=function(t){return t>>1},e.prototype.props=function(){return a(this)},e.props=function(t){return a(t)}}},{"./es5":13,"./util":36}],26:[function(t,e,n){"use strict";function r(t){this._capacity=t,this._length=0,this._front=0}r.prototype._willBeOverCapacity=function(t){return this._capacity<t},r.prototype._pushOne=function(t){var e=this.length();this._checkCapacity(e+1),this[this._front+e&this._capacity-1]=t,this._length=e+1},r.prototype.push=function(t,e,n){var r=this.length()+3;if(this._willBeOverCapacity(r))return this._pushOne(t),this._pushOne(e),void this._pushOne(n);var i=this._front+r-3;this._checkCapacity(r);var o=this._capacity-1;this[i+0&o]=t,this[i+1&o]=e,this[i+2&o]=n,this._length=r},r.prototype.shift=function(){var t=this._front,e=this[t];return this[t]=void 0,this._front=t+1&this._capacity-1,this._length--,e},r.prototype.length=function(){return this._length},r.prototype._checkCapacity=function(t){this._capacity<t&&this._resizeTo(this._capacity<<1)},r.prototype._resizeTo=function(t){var e=this._capacity;this._capacity=t,function(t,e,n,r,i){for(var o=0;o<i;++o)n[o+r]=t[o+0],t[o+0]=void 0}(this,0,this,e,this._front+this._length&e-1)},e.exports=r},{}],27:[function(t,e,n){"use strict";e.exports=function(e,n,r,i){function o(t,o){var u=r(t);if(u instanceof e)return s(u);if(null===(t=a.asArray(t)))return i("expecting an array or an iterable object but got "+a.classString(t));var l=new e(n);void 0!==o&&l._propagateFrom(o,3);for(var c=l._fulfill,f=l._reject,d=0,h=t.length;d<h;++d){var p=t[d];(void 0!==p||d in t)&&e.cast(p)._then(c,f,void 0,l,null)}return l}var a=t("./util"),s=function(t){return t.then(function(e){return o(e,t)})};e.race=function(t){return o(t,void 0)},e.prototype.race=function(){return o(this,void 0)}}},{"./util":36}],28:[function(t,e,n){"use strict";e.exports=function(e,n,r,i,o,a){function s(t,n,r,i){this.constructor$(t);var a=d();this._fn=null===a?n:h.domainBind(a,n),void 0!==r&&(r=e.resolve(r))._attachCancellationCallback(this),this._initialValue=r,this._currentCancellable=null,this._eachValues=i===o?Array(this._length):0===i?null:void 0,this._promise._captureStackTrace(),this._init$(void 0,-5)}function u(t,e){this.isFulfilled()?e._resolve(t):e._reject(t)}function l(t,e,n,i){return"function"!=typeof e?r("expecting a function but got "+h.classString(e)):new s(t,e,n,i).promise()}function c(t){this.accum=t,this.array._gotAccum(t);var n=i(this.value,this.array._promise);return n instanceof e?(this.array._currentCancellable=n,n._then(f,void 0,void 0,this,void 0)):f.call(this,n)}function f(t){var n,r=this.array,i=r._promise,o=p(r._fn);i._pushContext(),(n=void 0!==r._eachValues?o.call(i._boundValue(),t,this.index,this.length):o.call(i._boundValue(),this.accum,t,this.index,this.length))instanceof e&&(r._currentCancellable=n);var s=i._popContext();return a.checkForgottenReturns(n,s,void 0!==r._eachValues?"Promise.each":"Promise.reduce",i),n}var d=e._getDomain,h=t("./util"),p=h.tryCatch;h.inherits(s,n),s.prototype._gotAccum=function(t){void 0!==this._eachValues&&null!==this._eachValues&&t!==o&&this._eachValues.push(t)},s.prototype._eachComplete=function(t){return null!==this._eachValues&&this._eachValues.push(t),this._eachValues},s.prototype._init=function(){},s.prototype._resolveEmptyArray=function(){this._resolve(void 0!==this._eachValues?this._eachValues:this._initialValue)},s.prototype.shouldCopyValues=function(){return!1},s.prototype._resolve=function(t){this._promise._resolveCallback(t),this._values=null},s.prototype._resultCancelled=function(t){if(t===this._initialValue)return this._cancel();this._isResolved()||(this._resultCancelled$(),this._currentCancellable instanceof e&&this._currentCancellable.cancel(),this._initialValue instanceof e&&this._initialValue.cancel())},s.prototype._iterate=function(t){var n,r;this._values=t;var i=t.length;if(void 0!==this._initialValue?(n=this._initialValue,r=0):(n=e.resolve(t[0]),r=1),this._currentCancellable=n,!n.isRejected())for(;r<i;++r){var o={accum:null,value:t[r],index:r,length:i,array:this};n=n._then(c,void 0,void 0,o,void 0)}void 0!==this._eachValues&&(n=n._then(this._eachComplete,void 0,void 0,this,void 0)),n._then(u,u,void 0,n,this)},e.prototype.reduce=function(t,e){return l(this,t,e,null)},e.reduce=function(t,e,n,r){return l(t,e,n,r)}}},{"./util":36}],29:[function(t,e,o){"use strict";var a,s=t("./util"),u=s.getNativePromise();if(s.isNode&&"undefined"==typeof MutationObserver){var l=r.setImmediate,c=n.nextTick;a=s.isRecentNode?function(t){l.call(r,t)}:function(t){c.call(n,t)}}else if("function"==typeof u&&"function"==typeof u.resolve){var f=u.resolve();a=function(t){f.then(t)}}else a="undefined"==typeof MutationObserver||"undefined"!=typeof window&&window.navigator&&(window.navigator.standalone||window.cordova)?void 0!==i?function(t){i(t)}:"undefined"!=typeof setTimeout?function(t){setTimeout(t,0)}:function(){throw new Error("No async scheduler available\n\n See http://goo.gl/MqrFmX\n")}:function(){var t=document.createElement("div"),e={attributes:!0},n=!1,r=document.createElement("div");return new MutationObserver(function(){t.classList.toggle("foo"),n=!1}).observe(r,e),function(i){var o=new MutationObserver(function(){o.disconnect(),i()});o.observe(t,e),n||(n=!0,r.classList.toggle("foo"))}}();e.exports=a},{"./util":36}],30:[function(t,e,n){"use strict";e.exports=function(e,n,r){function i(t){this.constructor$(t)}var o=e.PromiseInspection;t("./util").inherits(i,n),i.prototype._promiseResolved=function(t,e){return this._values[t]=e,++this._totalResolved>=this._length&&(this._resolve(this._values),!0)},i.prototype._promiseFulfilled=function(t,e){var n=new o;return n._bitField=33554432,n._settledValueField=t,this._promiseResolved(e,n)},i.prototype._promiseRejected=function(t,e){var n=new o;return n._bitField=16777216,n._settledValueField=t,this._promiseResolved(e,n)},e.settle=function(t){return r.deprecated(".settle()",".reflect()"),new i(t).promise()},e.prototype.settle=function(){return e.settle(this)}}},{"./util":36}],31:[function(t,e,n){"use strict";e.exports=function(e,n,r){function i(t){this.constructor$(t),this._howMany=0,this._unwrap=!1,this._initialized=!1}function o(t,e){if((0|e)!==e||e<0)return r("expecting a positive integer\n\n See http://goo.gl/MqrFmX\n");var n=new i(t),o=n.promise();return n.setHowMany(e),n.init(),o}var a=t("./util"),s=t("./errors").RangeError,u=t("./errors").AggregateError,l=a.isArray,c={};a.inherits(i,n),i.prototype._init=function(){if(this._initialized)if(0!==this._howMany){this._init$(void 0,-5);var t=l(this._values);!this._isResolved()&&t&&this._howMany>this._canPossiblyFulfill()&&this._reject(this._getRangeError(this.length()))}else this._resolve([])},i.prototype.init=function(){this._initialized=!0,this._init()},i.prototype.setUnwrap=function(){this._unwrap=!0},i.prototype.howMany=function(){return this._howMany},i.prototype.setHowMany=function(t){this._howMany=t},i.prototype._promiseFulfilled=function(t){return this._addFulfilled(t),this._fulfilled()===this.howMany()&&(this._values.length=this.howMany(),1===this.howMany()&&this._unwrap?this._resolve(this._values[0]):this._resolve(this._values),!0)},i.prototype._promiseRejected=function(t){return this._addRejected(t),this._checkOutcome()},i.prototype._promiseCancelled=function(){return this._values instanceof e||null==this._values?this._cancel():(this._addRejected(c),this._checkOutcome())},i.prototype._checkOutcome=function(){if(this.howMany()>this._canPossiblyFulfill()){for(var t=new u,e=this.length();e<this._values.length;++e)this._values[e]!==c&&t.push(this._values[e]);return t.length>0?this._reject(t):this._cancel(),!0}return!1},i.prototype._fulfilled=function(){return this._totalResolved},i.prototype._rejected=function(){return this._values.length-this.length()},i.prototype._addRejected=function(t){this._values.push(t)},i.prototype._addFulfilled=function(t){this._values[this._totalResolved++]=t},i.prototype._canPossiblyFulfill=function(){return this.length()-this._rejected()},i.prototype._getRangeError=function(t){var e="Input array must contain at least "+this._howMany+" items but contains only "+t+" items";return new s(e)},i.prototype._resolveEmptyArray=function(){this._reject(this._getRangeError(0))},e.some=function(t,e){return o(t,e)},e.prototype.some=function(t){return o(this,t)},e._SomePromiseArray=i}},{"./errors":12,"./util":36}],32:[function(t,e,n){"use strict";e.exports=function(t){function e(t){void 0!==t?(t=t._target(),this._bitField=t._bitField,this._settledValueField=t._isFateSealed()?t._settledValue():void 0):(this._bitField=0,this._settledValueField=void 0)}e.prototype._settledValue=function(){return this._settledValueField};var n=e.prototype.value=function(){if(!this.isFulfilled())throw new TypeError("cannot get fulfillment value of a non-fulfilled promise\n\n See http://goo.gl/MqrFmX\n");return this._settledValue()},r=e.prototype.error=e.prototype.reason=function(){if(!this.isRejected())throw new TypeError("cannot get rejection reason of a non-rejected promise\n\n See http://goo.gl/MqrFmX\n");return this._settledValue()},i=e.prototype.isFulfilled=function(){return 0!=(33554432&this._bitField)},o=e.prototype.isRejected=function(){return 0!=(16777216&this._bitField)},a=e.prototype.isPending=function(){return 0==(50397184&this._bitField)},s=e.prototype.isResolved=function(){return 0!=(50331648&this._bitField)};e.prototype.isCancelled=function(){return 0!=(8454144&this._bitField)},t.prototype.__isCancelled=function(){return 65536==(65536&this._bitField)},t.prototype._isCancelled=function(){return this._target().__isCancelled()},t.prototype.isCancelled=function(){return 0!=(8454144&this._target()._bitField)},t.prototype.isPending=function(){return a.call(this._target())},t.prototype.isRejected=function(){return o.call(this._target())},t.prototype.isFulfilled=function(){return i.call(this._target())},t.prototype.isResolved=function(){return s.call(this._target())},t.prototype.value=function(){return n.call(this._target())},t.prototype.reason=function(){var t=this._target();return t._unsetRejectionIsUnhandled(),r.call(t)},t.prototype._value=function(){return this._settledValue()},t.prototype._reason=function(){return this._unsetRejectionIsUnhandled(),this._settledValue()},t.PromiseInspection=e}},{}],33:[function(t,e,n){"use strict";e.exports=function(e,n){var r=t("./util"),i=r.errorObj,o=r.isObject,a={}.hasOwnProperty;return function(t,s){if(o(t)){if(t instanceof e)return t;var u=function(t){try{return function(t){return t.then}(t)}catch(t){return i.e=t,i}}(t);if(u===i){s&&s._pushContext();var l=e.reject(u.e);return s&&s._popContext(),l}if("function"==typeof u)return function(t){try{return a.call(t,"_promise0")}catch(t){return!1}}(t)?(l=new e(n),t._then(l._fulfill,l._reject,void 0,l,null),l):function(t,o,a){var s=new e(n),u=s;a&&a._pushContext(),s._captureStackTrace(),a&&a._popContext();var l=!0,c=r.tryCatch(o).call(t,function(t){s&&(s._resolveCallback(t),s=null)},function(t){s&&(s._rejectCallback(t,l,!0),s=null)});return l=!1,s&&c===i&&(s._rejectCallback(c.e,!0,!0),s=null),u}(t,u,s)}return t}}},{"./util":36}],34:[function(t,e,n){"use strict";e.exports=function(e,n,r){function i(t){this.handle=t}function o(t){return clearTimeout(this.handle),t}function a(t){throw clearTimeout(this.handle),t}var s=t("./util"),u=e.TimeoutError;i.prototype._resultCancelled=function(){clearTimeout(this.handle)};var l=function(t){return c(+this).thenReturn(t)},c=e.delay=function(t,o){var a,s;return void 0!==o?(a=e.resolve(o)._then(l,null,null,t,void 0),r.cancellation()&&o instanceof e&&a._setOnCancel(o)):(a=new e(n),s=setTimeout(function(){a._fulfill()},+t),r.cancellation()&&a._setOnCancel(new i(s)),a._captureStackTrace()),a._setAsyncGuaranteed(),a};e.prototype.delay=function(t){return c(t,this)},e.prototype.timeout=function(t,e){var n,l;t=+t;var c=new i(setTimeout(function(){n.isPending()&&function(t,e,n){var r;r="string"!=typeof e?e instanceof Error?e:new u("operation timed out"):new u(e),s.markAsOriginatingFromRejection(r),t._attachExtraTrace(r),t._reject(r),null!=n&&n.cancel()}(n,e,l)},t));return r.cancellation()?(l=this.then(),(n=l._then(o,a,void 0,c,void 0))._setOnCancel(c)):n=this._then(o,a,void 0,c,void 0),n}}},{"./util":36}],35:[function(t,e,n){"use strict";e.exports=function(e,n,r,i,o,a){function s(t){setTimeout(function(){throw t},0)}function u(t,n){var i=0,a=t.length,u=new e(o);return function o(){if(i>=a)return u._fulfill();var l=function(t){var e=r(t);return e!==t&&"function"==typeof t._isDisposable&&"function"==typeof t._getDisposer&&t._isDisposable()&&e._setDisposable(t._getDisposer()),e}(t[i++]);if(l instanceof e&&l._isDisposable()){try{l=r(l._getDisposer().tryDispose(n),t.promise)}catch(t){return s(t)}if(l instanceof e)return l._then(o,s,null,null,null)}o()}(),u}function l(t,e,n){this._data=t,this._promise=e,this._context=n}function c(t,e,n){this.constructor$(t,e,n)}function f(t){return l.isDisposer(t)?(this.resources[this.index]._setDisposable(t),t.promise()):t}function d(t){this.length=t,this.promise=null,this[t-1]=null}var h=t("./util"),p=t("./errors").TypeError,g=t("./util").inherits,m=h.errorObj,v=h.tryCatch,y={};l.prototype.data=function(){return this._data},l.prototype.promise=function(){return this._promise},l.prototype.resource=function(){return this.promise().isFulfilled()?this.promise().value():y},l.prototype.tryDispose=function(t){var e=this.resource(),n=this._context;void 0!==n&&n._pushContext();var r=e!==y?this.doDispose(e,t):null;return void 0!==n&&n._popContext(),this._promise._unsetDisposable(),this._data=null,r},l.isDisposer=function(t){return null!=t&&"function"==typeof t.resource&&"function"==typeof t.tryDispose},g(c,l),c.prototype.doDispose=function(t,e){return this.data().call(t,t,e)},d.prototype._resultCancelled=function(){for(var t=this.length,n=0;n<t;++n){var r=this[n];r instanceof e&&r.cancel()}},e.using=function(){var t=arguments.length;if(t<2)return n("you must pass at least 2 arguments to Promise.using");var i,o=arguments[t-1];if("function"!=typeof o)return n("expecting a function but got "+h.classString(o));var s=!0;2===t&&Array.isArray(arguments[0])?(t=(i=arguments[0]).length,s=!1):(i=arguments,t--);for(var c=new d(t),p=0;p<t;++p){var g=i[p];if(l.isDisposer(g)){var y=g;(g=g.promise())._setDisposable(y)}else{var b=r(g);b instanceof e&&(g=b._then(f,null,null,{resources:c,index:p},void 0))}c[p]=g}var _=new Array(c.length);for(p=0;p<_.length;++p)_[p]=e.resolve(c[p]).reflect();var w=e.all(_).then(function(t){for(var e=0;e<t.length;++e){var n=t[e];if(n.isRejected())return m.e=n.error(),m;if(!n.isFulfilled())return void w.cancel();t[e]=n.value()}x._pushContext(),o=v(o);var r=s?o.apply(void 0,t):o(t),i=x._popContext();return a.checkForgottenReturns(r,i,"Promise.using",x),r}),x=w.lastly(function(){var t=new e.PromiseInspection(w);return u(c,t)});return c.promise=x,x._setOnCancel(c),x},e.prototype._setDisposable=function(t){this._bitField=131072|this._bitField,this._disposer=t},e.prototype._isDisposable=function(){return(131072&this._bitField)>0},e.prototype._getDisposer=function(){return this._disposer},e.prototype._unsetDisposable=function(){this._bitField=-131073&this._bitField,this._disposer=void 0},e.prototype.disposer=function(t){if("function"==typeof t)return new c(t,this,i());throw new p}}},{"./errors":12,"./util":36}],36:[function(t,e,i){"use strict";function a(){try{var t=O;return O=null,t.apply(this,arguments)}catch(t){return D.e=t,D}}function s(t){return O=t,a}function u(t){return null==t||!0===t||!1===t||"string"==typeof t||"number"==typeof t}function l(t){return"function"==typeof t||"object"===o(t)&&null!==t}function c(t){return u(t)?new Error(b(t)):t}function f(t,e){var n,r=t.length,i=new Array(r+1);for(n=0;n<r;++n)i[n]=t[n];return i[n]=e,i}function d(t,e,n){if(!P.isES5)return{}.hasOwnProperty.call(t,e)?t[e]:void 0;var r=Object.getOwnPropertyDescriptor(t,e);return null!=r?null==r.get&&null==r.set?r.value:n:void 0}function h(t,e,n){if(u(t))return t;var r={value:n,configurable:!0,enumerable:!1,writable:!0};return P.defineProperty(t,e,r),t}function p(t){throw t}function g(t){try{if("function"==typeof t){var e=P.names(t.prototype),n=P.isES5&&e.length>1,r=e.length>0&&!(1===e.length&&"constructor"===e[0]),i=$.test(t+"")&&P.names(t).length>0;if(n||r||i)return!0}return!1}catch(t){return!1}}function m(t){function e(){}function n(){return o(r.foo)}e.prototype=t;var r=new e;return n(),n(),t}function v(t){return L.test(t)}function y(t,e,n){for(var r=new Array(t),i=0;i<t;++i)r[i]=e+i+n;return r}function b(t){try{return t+""}catch(t){return"[no string representation]"}}function _(t){return t instanceof Error||null!==t&&"object"===o(t)&&"string"==typeof t.message&&"string"==typeof t.name}function w(t){try{h(t,"isOperational",!0)}catch(t){}}function x(t){return null!=t&&(t instanceof Error.__BluebirdErrorTypes__.OperationalError||!0===t.isOperational)}function k(t){return _(t)&&P.propertyIsWritable(t,"stack")}function S(t){return{}.toString.call(t)}function C(t,e,n){for(var r=P.names(t),i=0;i<r.length;++i){var o=r[i];if(n(o))try{P.defineProperty(e,o,P.getDescriptor(t,o))}catch(t){}}}function E(t){return z?n.env[t]:void 0}function T(){if("function"==typeof Promise)try{var t=new Promise(function(){});if("[object Promise]"==={}.toString.call(t))return Promise}catch(t){}}function A(t,e){return t.bind(e)}var O,P=t("./es5"),N="undefined"==typeof navigator,D={e:{}},M="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==r?r:void 0!==this?this:null,I=function(t,e){function n(){for(var n in this.constructor=t,this.constructor$=e,e.prototype)r.call(e.prototype,n)&&"$"!==n.charAt(n.length-1)&&(this[n+"$"]=e.prototype[n])}var r={}.hasOwnProperty;return n.prototype=e.prototype,t.prototype=new n,t.prototype},R=function(){var t=[Array.prototype,Object.prototype,Function.prototype],e=function(e){for(var n=0;n<t.length;++n)if(t[n]===e)return!0;return!1};if(P.isES5){var n=Object.getOwnPropertyNames;return function(t){for(var r=[],i=Object.create(null);null!=t&&!e(t);){var o;try{o=n(t)}catch(t){return r}for(var a=0;a<o.length;++a){var s=o[a];if(!i[s]){i[s]=!0;var u=Object.getOwnPropertyDescriptor(t,s);null!=u&&null==u.get&&null==u.set&&r.push(s)}}t=P.getPrototypeOf(t)}return r}}var r={}.hasOwnProperty;return function(n){if(e(n))return[];var i=[];t:for(var o in n)if(r.call(n,o))i.push(o);else{for(var a=0;a<t.length;++a)if(r.call(t[a],o))continue t;i.push(o)}return i}}(),$=/this\s*\.\s*\S+\s*=/,L=/^[a-z$_][a-z$_0-9]*$/i,j="stack"in new Error?function(t){return k(t)?t:new Error(b(t))}:function(t){if(k(t))return t;try{throw new Error(b(t))}catch(t){return t}},F=function(t){return P.isArray(t)?t:null};if("undefined"!=typeof Symbol&&Symbol.iterator){var B="function"==typeof Array.from?function(t){return Array.from(t)}:function(t){for(var e,n=[],r=t[Symbol.iterator]();!(e=r.next()).done;)n.push(e.value);return n};F=function(t){return P.isArray(t)?t:null!=t&&"function"==typeof t[Symbol.iterator]?B(t):null}}var V=void 0!==n&&"[object process]"===S(n).toLowerCase(),z=void 0!==n&&void 0!==n.env,U={isClass:g,isIdentifier:v,inheritedDataKeys:R,getDataPropertyOrDefault:d,thrower:p,isArray:P.isArray,asArray:F,notEnumerableProp:h,isPrimitive:u,isObject:l,isError:_,canEvaluate:N,errorObj:D,tryCatch:s,inherits:I,withAppended:f,maybeWrapAsError:c,toFastProperties:m,filledRange:y,toString:b,canAttachTrace:k,ensureErrorObject:j,originatesFromRejection:x,markAsOriginatingFromRejection:w,classString:S,copyDescriptors:C,hasDevTools:"undefined"!=typeof chrome&&chrome&&"function"==typeof chrome.loadTimes,isNode:V,hasEnvVariables:z,env:E,global:M,getNativePromise:T,domainBind:A};U.isRecentNode=U.isNode&&function(){var t;return n.versions&&n.versions.node?t=n.versions.node.split(".").map(Number):n.version&&(t=n.version.split(".").map(Number)),0===t[0]&&t[1]>10||t[0]>0}(),U.isNode&&U.toFastProperties(n);try{throw new Error}catch(t){U.lastLineError=t}e.exports=U},{"./es5":13}]},{},[4])(4)}),"undefined"!=typeof window&&null!==window?window.P=window.Promise:"undefined"!=typeof self&&null!==self&&(self.P=self.Promise)}).call(this,n(42),n(14),n(207).setImmediate)},function(t,e,n){t.exports=n(208)},function(t,e,n){var r=n(0);t.exports=function(){var t={};return{getState:function(e){if(t[e])return t[e].method();var n={};for(var i in t)t[i].internal||r.mixin(n,t[i].method(),!0);return n},registerProvider:function(e,n,r){t[e]={method:n,internal:r}},unregisterProvider:function(e){delete t[e]}}}},function(t,e){t.exports=function(t){function e(e,r,i){i=i||e;var o=t.config,a=t.templates;t.config[e]&&n[i]!=o[e]&&(r&&a[i]||(a[i]=t.date.date_to_str(o[e]),n[i]=o[e]))}var n={};return{initTemplates:function(){var n=t.locale.labels;n.gantt_save_btn=n.icon_save,n.gantt_cancel_btn=n.icon_cancel,n.gantt_delete_btn=n.icon_delete;var r=t.date,i=r.date_to_str,o=t.config,a=i(o.xml_date||o.date_format,o.server_utc),s=r.str_to_date(o.xml_date||o.date_format,o.server_utc);e("date_scale",!0,void 0,t.config,t.templates),e("date_grid",!0,"grid_date_format",t.config,t.templates),e("task_date",!0,void 0,t.config,t.templates),t.mixin(t.templates,{xml_format:void 0,format_date:a,xml_date:void 0,parse_date:s,progress_text:function(t,e,n){return""},grid_header_class:function(t,e){return""},task_text:function(t,e,n){return n.text},task_class:function(t,e,n){return""},task_end_date:function(e){return t.templates.task_date(e)},grid_row_class:function(t,e,n){return""},task_row_class:function(t,e,n){return""},timeline_cell_class:function(t,e){return""},scale_cell_class:function(t){return""},scale_row_class:function(t){return""},grid_indent:function(t){return"<div class='gantt_tree_indent'></div>"},grid_folder:function(t){return"<div class='gantt_tree_icon gantt_folder_"+(t.$open?"open":"closed")+"'></div>"},grid_file:function(t){return"<div class='gantt_tree_icon gantt_file'></div>"},grid_open:function(t){return"<div class='gantt_tree_icon gantt_"+(t.$open?"close":"open")+"'></div>"},grid_blank:function(t){return"<div class='gantt_tree_icon gantt_blank'></div>"},date_grid:function(e,n,r){return n&&t.isUnscheduledTask(n)&&t.config.show_unscheduled?t.templates.task_unscheduled_time(n):t.templates.grid_date_format(e,r)},task_time:function(e,n,r){return t.isUnscheduledTask(r)&&t.config.show_unscheduled?t.templates.task_unscheduled_time(r):t.templates.task_date(e)+" - "+t.templates.task_end_date(n)},task_unscheduled_time:function(t){return""},time_picker:i(o.time_picker),link_class:function(t){return""},link_description:function(e){var n=t.getTask(e.source),r=t.getTask(e.target);return"<b>"+n.text+"</b> &ndash; <b>"+r.text+"</b>"},drag_link:function(e,n,r,i){e=t.getTask(e);var o=t.locale.labels,a="<b>"+e.text+"</b> "+(n?o.link_start:o.link_end)+"<br/>";return r&&(a+="<b> "+(r=t.getTask(r)).text+"</b> "+(i?o.link_start:o.link_end)+"<br/>"),a},drag_link_class:function(e,n,r,i){var o="";return e&&r&&(o=" "+(t.isLinkAllowed(e,r,n,i)?"gantt_link_allow":"gantt_link_deny")),"gantt_link_tooltip"+o},tooltip_date_format:r.date_to_str("%Y-%m-%d"),tooltip_text:function(e,n,r){return"<b>Task:</b> "+r.text+"<br/><b>Start date:</b> "+t.templates.tooltip_date_format(e)+"<br/><b>End date:</b> "+t.templates.tooltip_date_format(n)}})},initTemplate:e}}},function(t,e,n){var r=n(4),i=n(0),o=n(43),a=n(15),s=n(1);t.exports=function(t){function e(t){return{target:t.target||t.srcElement,pageX:t.pageX,pageY:t.pageY,clientX:t.clientX,clientY:t.clientY,metaKey:t.metaKey,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,altKey:t.altKey}}function n(n,o){this._obj=n,this._settings=o||{},r(this);var a=this.getInputMethods();this._drag_start_timer=null,t.attachEvent("onGanttScroll",i.bind(function(t,e){this.clearDragTimer()},this));for(var u={passive:!1},l=0;l<a.length;l++)i.bind(function(r){t.event(n,r.down,i.bind(function(a){r.accessor(a)&&(o.preventDefault&&o.selector&&s.closest(a.target,o.selector)&&a.preventDefault(),t.config.touch&&a.timeStamp&&a.timeStamp-0<300||(this._settings.original_target=e(a),t.config.touch?(this.clearDragTimer(),this._drag_start_timer=setTimeout(i.bind(function(){t.getState().lightbox||this.dragStart(n,a,r)},this),t.config.touch_drag)):this.dragStart(n,a,r)))},this),u);var a=document.body;t.event(a,r.up,i.bind(function(t){r.accessor(t)&&this.clearDragTimer()},this),u)},this)(a[l])}return n.prototype={traceDragEvents:function(e,n){var r=i.bind(function(t){return this.dragMove(e,t,n.accessor)},this);i.bind(function(t){return this.dragScroll(e,t)},this);var a=i.bind(function(t){if(!this.config.started||!i.defined(this.config.updates_per_second)||o(this,this.config.updates_per_second)){var e=r(t);if(e)try{t&&t.preventDefault&&t.cancelable&&t.preventDefault()}catch(t){}return e}},this),u=s.getRootNode(t.$root),l=this.config.mousemoveContainer||s.getRootNode(t.$root),c={passive:!1},f=i.bind(function(r){return t.eventRemove(l,n.move,a),t.eventRemove(u,n.up,f,c),this.dragEnd(e)},this);t.event(l,n.move,a,c),t.event(u,n.up,f,c)},checkPositionChange:function(t){var e=t.x-this.config.pos.x,n=t.y-this.config.pos.y;return Math.sqrt(Math.pow(Math.abs(e),2)+Math.pow(Math.abs(n),2))>this.config.sensitivity},initDnDMarker:function(){var t=this.config.marker=document.createElement("div");t.className="gantt_drag_marker",t.innerHTML="",document.body.appendChild(t)},backupEventTarget:function(n,r){if(t.config.touch){var i=r(n),o=i.target||i.srcElement,a=o.cloneNode(!0);this.config.original_target=e(i),this.config.original_target.target=a,this.config.backup_element=o,o.parentNode.appendChild(a),o.style.display="none",(this.config.mousemoveContainer||document.body).appendChild(o)}},getInputMethods:function(){var e=[];if(e.push({move:"mousemove",down:"mousedown",up:"mouseup",accessor:function(t){return t}}),t.config.touch){var n=!0;try{document.createEvent("TouchEvent")}catch(t){n=!1}n?e.push({move:"touchmove",down:"touchstart",up:"touchend",accessor:function(t){return t.touches&&t.touches.length>1?null:t.touches[0]?{target:document.elementFromPoint(t.touches[0].clientX,t.touches[0].clientY),pageX:t.touches[0].pageX,pageY:t.touches[0].pageY,clientX:t.touches[0].clientX,clientY:t.touches[0].clientY}:t}}):a.navigator.pointerEnabled?e.push({move:"pointermove",down:"pointerdown",up:"pointerup",accessor:function(t){return"mouse"==t.pointerType?null:t}}):a.navigator.msPointerEnabled&&e.push({move:"MSPointerMove",down:"MSPointerDown",up:"MSPointerUp",accessor:function(t){return t.pointerType==t.MSPOINTER_TYPE_MOUSE?null:t}})}return e},clearDragTimer:function(){this._drag_start_timer&&(clearTimeout(this._drag_start_timer),this._drag_start_timer=null)},dragStart:function(e,n,r){this.config&&this.config.started||(this.config={obj:e,marker:null,started:!1,pos:this.getPosition(n),sensitivity:4},this._settings&&i.mixin(this.config,this._settings,!0),this.traceDragEvents(e,r),t._prevent_touch_scroll=!0,document.body.className+=" gantt_noselect",t.config.touch&&this.dragMove(e,n,r.accessor))},dragMove:function(e,n,r){var i=r(n);if(!i)return!1;if(!this.config.marker&&!this.config.started){var o=this.getPosition(i);if(t.config.touch||this.checkPositionChange(o)){if(this.config.started=!0,this.config.ignore=!1,!1===this.callEvent("onBeforeDragStart",[e,this.config.original_target]))return this.config.ignore=!0,!1;this.backupEventTarget(n,r),this.initDnDMarker(),t._touch_feedback(),this.callEvent("onAfterDragStart",[e,this.config.original_target])}else this.config.ignore=!0}if(!this.config.ignore){if(n.targetTouches&&!i.target)return;return i.pos=this.getPosition(i),this.config.marker.style.left=i.pos.x+"px",this.config.marker.style.top=i.pos.y+"px",this.callEvent("onDragMove",[e,i]),!0}return!1},dragEnd:function(e){var n=this.config.backup_element;n&&n.parentNode&&n.parentNode.removeChild(n),t._prevent_touch_scroll=!1,this.config.marker&&(this.config.marker.parentNode.removeChild(this.config.marker),this.config.marker=null,this.callEvent("onDragEnd",[])),this.config.started=!1,document.body.className=document.body.className.replace(" gantt_noselect","")},getPosition:function(t){var e=0,n=0;return t.pageX||t.pageY?(e=t.pageX,n=t.pageY):(t.clientX||t.clientY)&&(e=t.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,n=t.clientY+document.body.scrollTop+document.documentElement.scrollTop),{x:e,y:n}}},n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r={date_to_str:function(t,e,n){return function(r){return t.replace(/%[a-zA-Z]/g,function(t){switch(t){case"%d":return e?n.date.to_fixed(r.getUTCDate()):n.date.to_fixed(r.getDate());case"%m":return e?n.date.to_fixed(r.getUTCMonth()+1):n.date.to_fixed(r.getMonth()+1);case"%j":return e?r.getUTCDate():r.getDate();case"%n":return e?r.getUTCMonth()+1:r.getMonth()+1;case"%y":return e?n.date.to_fixed(r.getUTCFullYear()%100):n.date.to_fixed(r.getFullYear()%100);case"%Y":return e?r.getUTCFullYear():r.getFullYear();case"%D":return e?n.locale.date.day_short[r.getUTCDay()]:n.locale.date.day_short[r.getDay()];case"%l":return e?n.locale.date.day_full[r.getUTCDay()]:n.locale.date.day_full[r.getDay()];case"%M":return e?n.locale.date.month_short[r.getUTCMonth()]:n.locale.date.month_short[r.getMonth()];case"%F":return e?n.locale.date.month_full[r.getUTCMonth()]:n.locale.date.month_full[r.getMonth()];case"%h":return e?n.date.to_fixed((r.getUTCHours()+11)%12+1):n.date.to_fixed((r.getHours()+11)%12+1);case"%g":return e?(r.getUTCHours()+11)%12+1:(r.getHours()+11)%12+1;case"%G":return e?r.getUTCHours():r.getHours();case"%H":return e?n.date.to_fixed(r.getUTCHours()):n.date.to_fixed(r.getHours());case"%i":return e?n.date.to_fixed(r.getUTCMinutes()):n.date.to_fixed(r.getMinutes());case"%a":return e?r.getUTCHours()>11?"pm":"am":r.getHours()>11?"pm":"am";case"%A":return e?r.getUTCHours()>11?"PM":"AM":r.getHours()>11?"PM":"AM";case"%s":return e?n.date.to_fixed(r.getUTCSeconds()):n.date.to_fixed(r.getSeconds());case"%W":return e?n.date.to_fixed(n.date.getUTCISOWeek(r)):n.date.to_fixed(n.date.getISOWeek(r));default:return t}})}},str_to_date:function(t,e,n){return function(r){for(var i=[0,0,1,0,0,0],o=r.match(/[a-zA-Z]+|[0-9]+/g),a=t.match(/%[a-zA-Z]/g),s=0;s<a.length;s++)switch(a[s]){case"%j":case"%d":i[2]=o[s]||1;break;case"%n":case"%m":i[1]=(o[s]||1)-1;break;case"%y":i[0]=1*o[s]+(o[s]>50?1900:2e3);break;case"%g":case"%G":case"%h":case"%H":i[3]=o[s]||0;break;case"%i":i[4]=o[s]||0;break;case"%Y":i[0]=o[s]||0;break;case"%a":case"%A":i[3]=i[3]%12+("am"===(o[s]||"").toLowerCase()?0:12);break;case"%s":i[5]=o[s]||0;break;case"%M":i[1]=n.locale.date.month_short_hash[o[s]]||0;break;case"%F":i[1]=n.locale.date.month_full_hash[o[s]]||0}return e?new Date(Date.UTC(i[0],i[1],i[2],i[3],i[4],i[5])):new Date(i[0],i[1],i[2],i[3],i[4],i[5])}}};e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r={date_to_str:function(t,e,n){t=t.replace(/%[a-zA-Z]/g,function(t){switch(t){case"%d":return'"+to_fixed(date.get'+(e?"UTC":"")+'Date())+"';case"%m":return'"+to_fixed((date.get'+(e?"UTC":"")+'Month()+1))+"';case"%j":return'"+date.get'+(e?"UTC":"")+'Date()+"';case"%n":return'"+(date.get'+(e?"UTC":"")+'Month()+1)+"';case"%y":return'"+to_fixed(date.get'+(e?"UTC":"")+'FullYear()%100)+"';case"%Y":return'"+date.get'+(e?"UTC":"")+'FullYear()+"';case"%D":return'"+locale.date.day_short[date.get'+(e?"UTC":"")+'Day()]+"';case"%l":return'"+locale.date.day_full[date.get'+(e?"UTC":"")+'Day()]+"';case"%M":return'"+locale.date.month_short[date.get'+(e?"UTC":"")+'Month()]+"';case"%F":return'"+locale.date.month_full[date.get'+(e?"UTC":"")+'Month()]+"';case"%h":return'"+to_fixed((date.get'+(e?"UTC":"")+'Hours()+11)%12+1)+"';case"%g":return'"+((date.get'+(e?"UTC":"")+'Hours()+11)%12+1)+"';case"%G":return'"+date.get'+(e?"UTC":"")+'Hours()+"';case"%H":return'"+to_fixed(date.get'+(e?"UTC":"")+'Hours())+"';case"%i":return'"+to_fixed(date.get'+(e?"UTC":"")+'Minutes())+"';case"%a":return'"+(date.get'+(e?"UTC":"")+'Hours()>11?"pm":"am")+"';case"%A":return'"+(date.get'+(e?"UTC":"")+'Hours()>11?"PM":"AM")+"';case"%s":return'"+to_fixed(date.get'+(e?"UTC":"")+'Seconds())+"';case"%W":return'"+to_fixed(getISOWeek(date))+"';case"%w":return'"+to_fixed(getWeek(date))+"';default:return t}});var r=new Function("date","to_fixed","locale","getISOWeek","getWeek",'return "'+t+'";');return function(t){return r(t,n.date.to_fixed,n.locale,n.date.getISOWeek,n.date.getWeek)}},str_to_date:function(t,e,n){for(var r="var temp=date.match(/[a-zA-Z]+|[0-9]+/g);",i=t.match(/%[a-zA-Z]/g),o=0;o<i.length;o++)switch(i[o]){case"%j":case"%d":r+="set[2]=temp["+o+"]||1;";break;case"%n":case"%m":r+="set[1]=(temp["+o+"]||1)-1;";break;case"%y":r+="set[0]=temp["+o+"]*1+(temp["+o+"]>50?1900:2000);";break;case"%g":case"%G":case"%h":case"%H":r+="set[3]=temp["+o+"]||0;";break;case"%i":r+="set[4]=temp["+o+"]||0;";break;case"%Y":r+="set[0]=temp["+o+"]||0;";break;case"%a":case"%A":r+="set[3]=set[3]%12+((temp["+o+"]||'').toLowerCase()=='am'?0:12);";break;case"%s":r+="set[5]=temp["+o+"]||0;";break;case"%M":r+="set[1]=locale.date.month_short_hash[temp["+o+"]]||0;";break;case"%F":r+="set[1]=locale.date.month_full_hash[temp["+o+"]]||0;"}var a="set[0],set[1],set[2],set[3],set[4],set[5]";e&&(a=" Date.UTC("+a+")");var s=new Function("date","locale","var set=[0,0,1,0,0,0]; "+r+" return new Date("+a+");");return function(t){return s(t,n.locale)}}};e.default=r},function(t,e,n){var r=n(214).default,i=n(213).default;t.exports=function(t){function e(){var e=!1;return"auto"===t.config.csp?(null===n&&function(){try{new Function("canUseCsp = false;")}catch(t){n=!0}}(),e=n):e=t.config.csp,e}var n=null;return{init:function(){for(var e=t.locale,n=e.date.month_short,r=e.date.month_short_hash={},i=0;i<n.length;i++)r[n[i]]=i;for(n=e.date.month_full,r=e.date.month_full_hash={},i=0;i<n.length;i++)r[n[i]]=i},date_part:function(t){var e=new Date(t);return t.setHours(0),this.hour_start(t),t.getHours()&&(t.getDate()<e.getDate()||t.getMonth()<e.getMonth()||t.getFullYear()<e.getFullYear())&&t.setTime(t.getTime()+36e5*(24-t.getHours())),t},time_part:function(t){return(t.valueOf()/1e3-60*t.getTimezoneOffset())%86400},week_start:function(e){var n=e.getDay();return t.config.start_on_monday&&(0===n?n=6:n--),this.date_part(this.add(e,-1*n,"day"))},month_start:function(t){return t.setDate(1),this.date_part(t)},quarter_start:function(t){this.month_start(t);var e,n=t.getMonth();return e=n>=9?9:n>=6?6:n>=3?3:0,t.setMonth(e),t},year_start:function(t){return t.setMonth(0),this.month_start(t)},day_start:function(t){return this.date_part(t)},hour_start:function(t){return t.getMinutes()&&t.setMinutes(0),this.minute_start(t),t},minute_start:function(t){return t.getSeconds()&&t.setSeconds(0),t.getMilliseconds()&&t.setMilliseconds(0),t},_add_days:function(t,e,n){t.setDate(t.getDate()+e);var r=e>=0,i=!n.getHours()&&t.getHours(),o=t.getDate()<=n.getDate()||t.getMonth()<n.getMonth()||t.getFullYear()<n.getFullYear();return r&&i&&o&&t.setTime(t.getTime()+36e5*(24-t.getHours())),e>1&&i&&t.setHours(0),t},add:function(t,e,n){var r=new Date(t.valueOf());switch(n){case"day":r=this._add_days(r,e,t);break;case"week":r=this._add_days(r,7*e,t);break;case"month":r.setMonth(r.getMonth()+e);break;case"year":r.setYear(r.getFullYear()+e);break;case"hour":r.setTime(r.getTime()+60*e*60*1e3);break;case"minute":r.setTime(r.getTime()+60*e*1e3);break;default:return this["add_"+n](t,e,n)}return r},add_quarter:function(t,e){return this.add(t,3*e,"month")},to_fixed:function(t){return t<10?"0"+t:t},copy:function(t){return new Date(t.valueOf())},date_to_str:function(n,o){var a=r;return e()&&(a=i),a.date_to_str(n,o,t)},str_to_date:function(n,o){var a=r;return e()&&(a=i),a.str_to_date(n,o,t)},getISOWeek:function(e){return t.date._getWeekNumber(e,!0)},_getWeekNumber:function(t,e){if(!t)return!1;var n=t.getDay();e&&0===n&&(n=7);var r=new Date(t.valueOf());r.setDate(t.getDate()+(4-n));var i=r.getFullYear(),o=Math.round((r.getTime()-new Date(i,0,1).getTime())/864e5);return 1+Math.floor(o/7)},getWeek:function(e){return t.date._getWeekNumber(e,t.config.start_on_monday)},getUTCISOWeek:function(e){return t.date.getISOWeek(e)},convert_to_utc:function(t){return new Date(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds())},parseDate:function(e,n){return e&&!e.getFullYear&&("function"!=typeof n&&(n="string"==typeof n?"parse_date"===n||"xml_date"===n?t.defined(t.templates.xml_date)?t.templates.xml_date:t.templates.parse_date:t.defined(t.templates[n])?t.templates[n]:t.date.str_to_date(n):t.defined(t.templates.xml_date)?t.templates.xml_date:t.templates.parse_date),e=e?n(e):null),e}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){if("string"==typeof t||"number"==typeof t)return t;var e="";for(var n in t){var r="";t.hasOwnProperty(n)&&(r=n+"="+(r="string"==typeof t[n]?encodeURIComponent(t[n]):"number"==typeof t[n]?t[n]:encodeURIComponent(JSON.stringify(t[n]))),e.length&&(r="&"+r),e+=r)}return e}},function(t,e,n){function r(t){"@babel/helpers - typeof";return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){var n={method:t};if(0===e.length)throw new Error("Arguments list of query is wrong.");if(1===e.length)return"string"==typeof e[0]?(n.url=e[0],n.async=!0):(n.url=e[0].url,n.async=e[0].async||!0,n.callback=e[0].callback,n.headers=e[0].headers),e[0].data?"string"!=typeof e[0].data?n.data=s(e[0].data):n.data=e[0].data:n.data="",n;switch(n.url=e[0],t){case"GET":case"DELETE":n.callback=e[1],n.headers=e[2];break;case"POST":case"PUT":e[1]?"string"!=typeof e[1]?n.data=s(e[1]):n.data=e[1]:n.data="",n.callback=e[2],n.headers=e[3]}return n}var o=n(8),a=n(15),s=n(216).default;t.exports=function(t){return{cache:!0,method:"get",parse:function(t){return"string"!=typeof t?t:(t=t.replace(/^[\s]+/,""),"undefined"==typeof DOMParser||o.isIE?void 0!==a.ActiveXObject&&((e=new a.ActiveXObject("Microsoft.XMLDOM")).async="false",e.loadXML(t)):e=(new DOMParser).parseFromString(t,"text/xml"),e);var e},xmltop:function(e,n,r){if(void 0===n.status||n.status<400){var i=n.responseXML?n.responseXML||n:this.parse(n.responseText||n);if(i&&null!==i.documentElement&&!i.getElementsByTagName("parsererror").length)return i.getElementsByTagName(e)[0]}return-1!==r&&t.callEvent("onLoadXMLError",["Incorrect XML",arguments[1],r]),document.createElement("DIV")},xpath:function(t,e){if(e.nodeName||(e=e.responseXML||e),o.isIE)return e.selectNodes(t)||[];for(var n,r=[],i=(e.ownerDocument||e).evaluate(t,e,null,XPathResult.ANY_TYPE,null);n=i.iterateNext();)r.push(n);return r},query:function(t){return this._call(t.method||"GET",t.url,t.data||"",t.async||!0,t.callback,t.headers)},get:function(t,e,n){var r=i("GET",arguments);return this.query(r)},getSync:function(t,e){var n=i("GET",arguments);return n.async=!1,this.query(n)},put:function(t,e,n,r){var o=i("PUT",arguments);return this.query(o)},del:function(t,e,n){var r=i("DELETE",arguments);return this.query(r)},post:function(t,e,n,r){1==arguments.length?e="":2==arguments.length&&"function"==typeof e&&(e="");var o=i("POST",arguments);return this.query(o)},postSync:function(t,e,n){e=null===e?"":String(e);var r=i("POST",arguments);return r.async=!1,this.query(r)},_call:function(e,n,i,s,u,l){return new t.Promise(function(c,f){var d=void 0===("undefined"==typeof XMLHttpRequest?"undefined":r(XMLHttpRequest))||o.isIE?new a.ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest,h=null!==navigator.userAgent.match(/AppleWebKit/)&&null!==navigator.userAgent.match(/Qt/)&&null!==navigator.userAgent.match(/Safari/);s&&(d.onreadystatechange=function(){if(4==d.readyState||h&&3==d.readyState){if((200!=d.status||""===d.responseText)&&!t.callEvent("onAjaxError",[d]))return;setTimeout(function(){"function"==typeof u&&u.apply(a,[{xmlDoc:d,filePath:n}]),c(d),"function"==typeof u&&(u=null,d=null)},0)}});var p=!this||!this.cache;if("GET"==e&&p&&(n+=(n.indexOf("?")>=0?"&":"?")+"dhxr"+(new Date).getTime()+"=1"),d.open(e,n,s),l)for(var g in l)d.setRequestHeader(g,l[g]);else"POST"==e.toUpperCase()||"PUT"==e||"DELETE"==e?d.setRequestHeader("Content-Type","application/x-www-form-urlencoded"):"GET"==e&&(i=null);if(d.setRequestHeader("X-Requested-With","XMLHttpRequest"),d.send(i),!s)return{xmlDoc:d,filePath:n}})},urlSeparator:function(t){return-1!=t.indexOf("?")?"&":"?"}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),t.exports=function(){return{layout:{css:"gantt_container",rows:[{cols:[{view:"grid",scrollX:"scrollHor",scrollY:"scrollVer"},{resizer:!0,width:1},{view:"timeline",scrollX:"scrollHor",scrollY:"scrollVer"},{view:"scrollbar",id:"scrollVer"}]},{view:"scrollbar",id:"scrollHor",height:20}]},links:{finish_to_start:"0",start_to_start:"1",finish_to_finish:"2",start_to_finish:"3"},types:{task:"task",project:"project",milestone:"milestone"},auto_types:!1,duration_unit:"day",work_time:!1,correct_work_time:!1,skip_off_time:!1,cascade_delete:!0,autosize:!1,autosize_min_width:0,autoscroll:!0,autoscroll_speed:30,deepcopy_on_parse:!1,show_links:!0,show_task_cells:!0,static_background:!1,static_background_cells:!0,branch_loading:!1,branch_loading_property:"$has_child",show_loading:!1,show_chart:!0,show_grid:!0,min_duration:36e5,date_format:"%d-%m-%Y %H:%i",xml_date:void 0,start_on_monday:!0,server_utc:!1,show_progress:!0,fit_tasks:!1,select_task:!0,scroll_on_click:!0,smart_rendering:!0,preserve_scroll:!0,readonly:!1,container_resize_timeout:20,date_grid:"%Y-%m-%d",drag_links:!0,drag_progress:!0,drag_resize:!0,drag_project:!1,drag_move:!0,drag_mode:{resize:"resize",progress:"progress",move:"move",ignore:"ignore"},round_dnd_dates:!0,link_wrapper_width:20,root_id:0,autofit:!1,columns:[{name:"text",tree:!0,width:"*",resize:!0},{name:"start_date",align:"center",resize:!0},{name:"duration",align:"center"},{name:"add",width:44}],scale_offset_minimal:!0,inherit_scale_class:!1,scales:[{unit:"day",step:1,date:"%d %M"}],time_step:60,duration_step:1,task_date:"%d %F %Y",time_picker:"%H:%i",task_attribute:"data-task-id",link_attribute:"data-link-id",layer_attribute:"data-layer",buttons_left:["gantt_save_btn","gantt_cancel_btn"],_migrate_buttons:{dhx_save_btn:"gantt_save_btn",dhx_cancel_btn:"gantt_cancel_btn",dhx_delete_btn:"gantt_delete_btn"},buttons_right:["gantt_delete_btn"],lightbox:{sections:[{name:"description",height:70,map_to:"text",type:"textarea",focus:!0},{name:"time",type:"duration",map_to:"auto"}],project_sections:[{name:"description",height:70,map_to:"text",type:"textarea",focus:!0},{name:"type",type:"typeselect",map_to:"type"},{name:"time",type:"duration",readonly:!0,map_to:"auto"}],milestone_sections:[{name:"description",height:70,map_to:"text",type:"textarea",focus:!0},{name:"type",type:"typeselect",map_to:"type"},{name:"time",type:"duration",single_date:!0,map_to:"auto"}]},drag_lightbox:!0,sort:!1,details_on_create:!0,details_on_dblclick:!0,initial_scroll:!0,task_scroll_offset:100,order_branch:!1,order_branch_free:!1,task_height:void 0,bar_height:"full",min_column_width:70,min_grid_column_width:70,grid_resizer_column_attribute:"data-column-index",keep_grid_width:!1,grid_resize:!1,grid_elastic_columns:!1,show_tasks_outside_timescale:!1,show_unscheduled:!0,resize_rows:!1,task_grid_row_resizer_attribute:"data-row-index",min_task_grid_row_height:30,readonly_property:"readonly",editable_property:"editable",calendar_property:"calendar_id",resource_calendars:{},dynamic_resource_calendars:!1,inherit_calendar:!1,type_renderers:{},open_tree_initially:!1,optimize_render:!0,prevent_default_scroll:!1,show_errors:!0,wai_aria_attributes:!0,smart_scales:!0,rtl:!1,placeholder_task:!1,horizontal_scroll_key:"shiftKey",drag_timeline:{useKey:void 0,ignore:".gantt_task_line, .gantt_task_link"},drag_multiple:!0,csp:"auto"}}},function(t,e){t.exports=function(){var t={};return{services:{},setService:function(e,n){t[e]=n},getService:function(e){return t[e]?t[e]():null},dropService:function(e){t[e]&&delete t[e]},destructor:function(){for(var e in t)if(t[e]){var n=t[e];n&&n.destructor&&n.destructor()}t=null}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){return function(t){var e=this;for(var n in this.addExtension=function(t,n){e._extensions[t]=n},this.getExtension=function(t){return e._extensions[t]},this._extensions={},t)this._extensions[n]=t[n]}}();e.default=r},function(t,e){t.exports={KEY_CODES:{UP:38,DOWN:40,LEFT:37,RIGHT:39,SPACE:32,ENTER:13,DELETE:46,ESC:27,TAB:9}}},function(t,e,n){function r(t){"@babel/helpers - typeof";return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}t.exports=function(t){var e=new function(){this.constants=n(221),this.version="7.1.13",this.license="gpl",this.templates={},this.ext={},this.keys={edit_save:this.constants.KEY_CODES.ENTER,edit_cancel:this.constants.KEY_CODES.ESC}},i=new(0,n(220).default)(t),o={};e.plugins=function(t){for(var n in t)if(t[n]&&!o[n]){var r=i.getExtension(n);r&&(r(e),o[n]=!0)}},e.$services=n(219)(),e.config=n(218)(),e.ajax=n(217)(e),e.date=n(215)(e);var a=n(212)(e);e.$services.setService("dnd",function(){return a});var s=n(211)(e);e.$services.setService("templateLoader",function(){return s}),n(4)(e);var u=new(n(210));u.registerProvider("global",function(){var t={min_date:e._min_date,max_date:e._max_date,selected_task:null};return e.$data&&e.$data.tasksStore&&(t.selected_task=e.$data.tasksStore.getSelectedId()),t}),e.getState=u.getState,e.$services.setService("state",function(){return u});var l=n(0);l.mixin(e,l),e.Promise=n(209),e.env=n(8),n(205)(e);var c=n(199);e.dataProcessor=c.DEPRECATED_api,e.createDataProcessor=c.createDataProcessor,n(194)(e),n(185)(e),n(184)(e),n(176)(e),n(175)(e),n(174)(e),n(161)(e),n(160).default(e),n(159)(e),n(158)(e),n(157)(e),n(154)(e),n(153).default(e);var f=n(152).default();return e.i18n={addLocale:f.addLocale,setLocale:function(t){if("string"==typeof t){var n=f.getLocale(t);n||(n=f.getLocale("en")),e.locale=n}else if(t)if(e.locale)for(var i in t)t[i]&&"object"===r(t[i])?(e.locale[i]||(e.locale[i]={}),e.mixin(e.locale[i],t[i],!0)):e.locale[i]=t[i];else e.locale=t},getLocale:f.getLocale},e.i18n.setLocale("en"),e}},function(t,e,n){n(28);var r=n(222);t.exports=function(t){var e=r(t);return e.env.isNode||n(118)(e),e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=10,i=function(){function t(t){var e=this;this.maxSteps=r,this.undoEnabled=!0,this.redoEnabled=!0,this.action={create:function(t){return{commands:t?t.slice():[]}},invert:function(t){for(var n,r=e._gantt.copy(t),i=e.command,o=0;o<t.commands.length;o++){var a=r.commands[o]=i.invert(r.commands[o]);a.type!==i.type.update&&a.type!==i.type.move||(n=[a.oldValue,a.value],a.value=n[0],a.oldValue=n[1])}return r}},this.command={entity:null,type:null,create:function(t,n,r,i){var o=e._gantt;return{entity:i,type:r,value:o.copy(t),oldValue:o.copy(n||t)}},invert:function(t){var n=e._gantt.copy(t);return n.type=e.command.inverseCommands(t.type),n},inverseCommands:function(t){var n=e._gantt,r=e.command.type;switch(t){case r.update:return r.update;case r.remove:return r.add;case r.add:return r.remove;case r.move:return r.move;default:return n.assert(!1,"Invalid command "+t),null}}},this._undoStack=[],this._redoStack=[],this._gantt=t}return t.prototype.getUndoStack=function(){return this._undoStack},t.prototype.getRedoStack=function(){return this._redoStack},t.prototype.clearUndoStack=function(){this._undoStack=[]},t.prototype.clearRedoStack=function(){this._redoStack=[]},t.prototype.updateConfigs=function(){var t=this._gantt;this.maxSteps=t.config.undo_steps||r,this.command.entity=t.config.undo_types,this.command.type=t.config.undo_actions,this.undoEnabled=!!t.config.undo,this.redoEnabled=!!t.config.redo},t.prototype.undo=function(){var t=this._gantt;if(this.updateConfigs(),this.undoEnabled){var e=this._pop(this._undoStack);if(e&&this._reorderCommands(e),!1!==t.callEvent("onBeforeUndo",[e])&&e)return this._applyAction(this.action.invert(e)),this._push(this._redoStack,t.copy(e)),void t.callEvent("onAfterUndo",[e]);t.callEvent("onAfterUndo",[null])}},t.prototype.redo=function(){var t=this._gantt;if(this.updateConfigs(),this.redoEnabled){var e=this._pop(this._redoStack);if(e&&this._reorderCommands(e),!1!==t.callEvent("onBeforeRedo",[e])&&e)return this._applyAction(e),this._push(this._undoStack,t.copy(e)),void t.callEvent("onAfterRedo",[e]);t.callEvent("onAfterRedo",[null])}},t.prototype.logAction=function(t){this._push(this._undoStack,t),this._redoStack=[]},t.prototype._push=function(t,e){var n=this._gantt;if(e.commands.length){var r=t===this._undoStack?"onBeforeUndoStack":"onBeforeRedoStack";if(!1!==n.callEvent(r,[e])&&e.commands.length){for(t.push(e);t.length>this.maxSteps;)t.shift();return e}}},t.prototype._pop=function(t){return t.pop()},t.prototype._reorderCommands=function(t){var e={any:0,link:1,task:2},n={move:1,any:0};t.commands.sort(function(t,r){if("task"===t.entity&&"task"===r.entity)return t.type!==r.type?(n[r.type]||0)-(n[t.type]||0):"move"===t.type&&t.oldValue&&r.oldValue&&r.oldValue.parent===t.oldValue.parent?t.oldValue.$index-r.oldValue.$index:0;var i=e[t.entity]||e.any;return(e[r.entity]||e.any)-i})},t.prototype._applyAction=function(t){var e=null,n=this.command.entity,r=this.command.type,i=this._gantt,o={};o[n.task]={add:"addTask",get:"getTask",update:"updateTask",remove:"deleteTask",move:"moveTask",isExists:"isTaskExists"},o[n.link]={add:"addLink",get:"getLink",update:"updateLink",remove:"deleteLink",isExists:"isLinkExists"},i.batchUpdate(function(){for(var n=0;n<t.commands.length;n++){e=t.commands[n];var a=o[e.entity][e.type],s=o[e.entity].get,u=o[e.entity].isExists;if(e.type===r.add)i[a](e.oldValue,e.oldValue.parent,e.oldValue.$local_index);else if(e.type===r.remove)i[u](e.value.id)&&i[a](e.value.id);else if(e.type===r.update){var l=i[s](e.value.id);for(var c in e.value)c.startsWith("$")||c.startsWith("_")||(l[c]=e.value[c]);i[a](e.value.id)}else e.type===r.move&&(i[a](e.value.id,e.value.$local_index,e.value.parent),i.callEvent("onRowDragEnd",[e.value.id]))}})},t}();e.Undo=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r={onBeforeUndo:"onAfterUndo",onBeforeRedo:"onAfterRedo"},i=["onTaskDragStart","onAfterTaskUpdate","onAfterTaskDelete","onBeforeBatchUpdate"],o=function(){function t(t,e){this._batchAction=null,this._batchMode=!1,this._ignore=!1,this._ignoreMoveEvents=!1,this._initialTasks={},this._initialLinks={},this._nestedTasks={},this._nestedLinks={},this._undo=t,this._gantt=e,this._attachEvents()}return t.prototype.store=function(t,e,n){return void 0===n&&(n=!1),e===this._gantt.config.undo_types.task?this._storeTask(t,n):e===this._gantt.config.undo_types.link&&this._storeLink(t,n)},t.prototype.isMoveEventsIgnored=function(){return this._ignoreMoveEvents},t.prototype.toggleIgnoreMoveEvents=function(t){this._ignoreMoveEvents=t||!1},t.prototype.startIgnore=function(){this._ignore=!0},t.prototype.stopIgnore=function(){this._ignore=!1},t.prototype.startBatchAction=function(){var t=this;this._timeout||(this._timeout=setTimeout(function(){t.stopBatchAction(),t._timeout=null},10)),this._ignore||this._batchMode||(this._batchMode=!0,this._batchAction=this._undo.action.create())},t.prototype.stopBatchAction=function(){if(!this._ignore){var t=this._undo;this._batchAction&&t.logAction(this._batchAction),this._batchMode=!1,this._batchAction=null}},t.prototype.onTaskAdded=function(t){this._ignore||this._storeTaskCommand(t,this._undo.command.type.add)},t.prototype.onTaskUpdated=function(t){this._ignore||this._storeTaskCommand(t,this._undo.command.type.update)},t.prototype.onTaskMoved=function(t){if(!this._ignore){t.$local_index=this._gantt.getTaskIndex(t.id);var e=this.getInitialTask(t.id);if(t.$local_index===e.$local_index&&this._gantt.getParent(t)===this._gantt.getParent(e))return;this._storeEntityCommand(t,this.getInitialTask(t.id),this._undo.command.type.move,this._undo.command.entity.task)}},t.prototype.onTaskDeleted=function(t){if(!this._ignore){if(this._storeTaskCommand(t,this._undo.command.type.remove),this._nestedTasks[t.id])for(var e=this._nestedTasks[t.id],n=0;n<e.length;n++)this._storeTaskCommand(e[n],this._undo.command.type.remove);if(this._nestedLinks[t.id]){var r=this._nestedLinks[t.id];for(n=0;n<r.length;n++)this._storeLinkCommand(r[n],this._undo.command.type.remove)}}},t.prototype.onLinkAdded=function(t){this._ignore||this._storeLinkCommand(t,this._undo.command.type.add)},t.prototype.onLinkUpdated=function(t){this._ignore||this._storeLinkCommand(t,this._undo.command.type.update)},t.prototype.onLinkDeleted=function(t){this._ignore||this._storeLinkCommand(t,this._undo.command.type.remove)},t.prototype.setNestedTasks=function(t,e){for(var n=this._gantt,r=null,i=[],o=this._getLinks(n.getTask(t)),a=0;a<e.length;a++)r=this.setInitialTask(e[a]),o=o.concat(this._getLinks(r)),i.push(r);var s={};for(a=0;a<o.length;a++)s[o[a]]=!0;var u=[];for(var a in s)u.push(this.setInitialLink(a));this._nestedTasks[t]=i,this._nestedLinks[t]=u},t.prototype.setInitialTask=function(t,e){var n=this._gantt;if(e||!this._initialTasks[t]||!this._batchMode){var r=n.copy(n.getTask(t));r.$index=n.getGlobalTaskIndex(t),r.$local_index=n.getTaskIndex(t),this.setInitialTaskObject(t,r)}return this._initialTasks[t]},t.prototype.getInitialTask=function(t){return this._initialTasks[t]},t.prototype.clearInitialTasks=function(){this._initialTasks={}},t.prototype.setInitialTaskObject=function(t,e){this._initialTasks[t]=e},t.prototype.setInitialLink=function(t,e){return this._initialLinks[t]&&this._batchMode||(this._initialLinks[t]=this._gantt.copy(this._gantt.getLink(t))),this._initialLinks[t]},t.prototype.getInitialLink=function(t){return this._initialLinks[t]},t.prototype.clearInitialLinks=function(){this._initialLinks={}},t.prototype._attachEvents=function(){var t=this,e=null,n=this._gantt,o=function(){e||(e=setTimeout(function(){e=null}),t.clearInitialTasks(),n.eachTask(function(e){t.setInitialTask(e.id)}),t.clearInitialLinks(),n.getLinks().forEach(function(e){t.setInitialLink(e.id)}))},a=function(t){return n.copy(n.getTask(t))};for(var s in r)n.attachEvent(s,function(){return t.startIgnore(),!0}),n.attachEvent(r[s],function(){return t.stopIgnore(),!0});for(s=0;s<i.length;s++)n.attachEvent(i[s],function(){return t.startBatchAction(),!0});n.attachEvent("onParse",function(){t._undo.clearUndoStack(),t._undo.clearRedoStack(),o()}),n.attachEvent("onAfterTaskAdd",function(e,n){t.setInitialTask(e,!0),t.onTaskAdded(n)}),n.attachEvent("onAfterTaskUpdate",function(e,n){t.onTaskUpdated(n)}),n.attachEvent("onAfterTaskDelete",function(e,n){t.onTaskDeleted(n)}),n.attachEvent("onAfterLinkAdd",function(e,n){t.setInitialLink(e,!0),t.onLinkAdded(n)}),n.attachEvent("onAfterLinkUpdate",function(e,n){t.onLinkUpdated(n)}),n.attachEvent("onAfterLinkDelete",function(e,n){t.onLinkDeleted(n)}),n.attachEvent("onRowDragEnd",function(e,n){return t.onTaskMoved(a(e)),t.toggleIgnoreMoveEvents(),!0}),n.attachEvent("onBeforeTaskDelete",function(e){t.store(e,n.config.undo_types.task);var r=[];return o(),n.eachTask(function(t){r.push(t.id)},e),t.setNestedTasks(e,r),!0});var u=n.getDatastore("task");u.attachEvent("onBeforeItemMove",function(e,n,r){return t.isMoveEventsIgnored()||o(),!0}),u.attachEvent("onAfterItemMove",function(e,n,r){return t.isMoveEventsIgnored()||t.onTaskMoved(a(e)),!0}),n.attachEvent("onRowDragStart",function(e,n,r){return t.toggleIgnoreMoveEvents(!0),o(),!0}),n.attachEvent("onBeforeTaskDrag",function(e){return t.store(e,n.config.undo_types.task)}),n.attachEvent("onLightbox",function(e){return t.store(e,n.config.undo_types.task)}),n.attachEvent("onBeforeTaskAutoSchedule",function(e){return t.store(e.id,n.config.undo_types.task),!0}),n.ext.inlineEditors&&n.ext.inlineEditors.attachEvent("onEditStart",function(e){t.store(e.id,n.config.undo_types.task)})},t.prototype._storeCommand=function(t){var e=this._undo;if(e.updateConfigs(),e.undoEnabled)if(this._batchMode)this._batchAction.commands.push(t);else{var n=e.action.create([t]);e.logAction(n)}},t.prototype._storeEntityCommand=function(t,e,n,r){var i=this._undo.command.create(t,e,n,r);this._storeCommand(i)},t.prototype._storeTaskCommand=function(t,e){this._gantt.isTaskExists(t.id)&&(t.$local_index=this._gantt.getTaskIndex(t.id)),this._storeEntityCommand(t,this.getInitialTask(t.id),e,this._undo.command.entity.task)},t.prototype._storeLinkCommand=function(t,e){this._storeEntityCommand(t,this.getInitialLink(t.id),e,this._undo.command.entity.link)},t.prototype._getLinks=function(t){return t.$source.concat(t.$target)},t.prototype._storeTask=function(t,e){var n=this;void 0===e&&(e=!1);var r=this._gantt;return this.setInitialTask(t,e),r.eachTask(function(t){n.setInitialTask(t.id)},t),!0},t.prototype._storeLink=function(t,e){return void 0===e&&(e=!1),this.setInitialLink(t,e),!0},t}();e.Monitor=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(225),i=n(224);e.default=function(t){function e(t,e,n){t&&(t.id===e&&(t.id=n),t.parent===e&&(t.parent=n))}function n(t,n,r){e(t.value,n,r),e(t.oldValue,n,r)}function o(t,e,n){t&&(t.source===e&&(t.source=n),t.target===e&&(t.target=n))}function a(t,e,n){o(t.value,e,n),o(t.oldValue,e,n)}function s(t,e,r){for(var i=l,o=0;o<t.length;o++)for(var s=t[o],u=0;u<s.commands.length;u++)s.commands[u].entity===i.command.entity.task?n(s.commands[u],e,r):s.commands[u].entity===i.command.entity.link&&a(s.commands[u],e,r)}function u(t,e,n){for(var r=l,i=0;i<t.length;i++)for(var o=t[i],a=0;a<o.commands.length;a++){var s=o.commands[a];s.entity===r.command.entity.link&&(s.value&&s.value.id===e&&(s.value.id=n),s.oldValue&&s.oldValue.id===e&&(s.oldValue.id=n))}}var l=new i.Undo(t),c=new r.Monitor(l,t);t.config.undo=!0,t.config.redo=!0,t.config.undo_types={link:"link",task:"task"},t.config.undo_actions={update:"update",remove:"remove",add:"add",move:"move"},t.ext||(t.ext={}),t.ext.undo={undo:function(){return l.undo()},redo:function(){return l.redo()},getUndoStack:function(){return l.getUndoStack()},getRedoStack:function(){return l.getRedoStack()},clearUndoStack:function(){return l.clearUndoStack()},clearRedoStack:function(){return l.clearRedoStack()},saveState:function(t,e){return c.store(t,e,!0)}},t.undo=t.ext.undo.undo,t.redo=t.ext.undo.redo,t.getUndoStack=t.ext.undo.getUndoStack,t.getRedoStack=t.ext.undo.getRedoStack,t.clearUndoStack=t.ext.undo.clearUndoStack,t.clearRedoStack=t.ext.undo.clearRedoStack,t.attachEvent("onTaskIdChange",function(t,e){var n=l;s(n.getUndoStack(),t,e),s(n.getRedoStack(),t,e)}),t.attachEvent("onLinkIdChange",function(t,e){var n=l;u(n.getUndoStack(),t,e),u(n.getRedoStack(),t,e)}),t.attachEvent("onGanttReady",function(){l.updateConfigs()})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=function(){function t(t){this._gantt=t}return t.prototype.getNode=function(){var t=this._gantt;return this._tooltipNode||(this._tooltipNode=document.createElement("div"),this._tooltipNode.className="gantt_tooltip",t._waiAria.tooltipAttr(this._tooltipNode)),this._tooltipNode},t.prototype.setViewport=function(t){return this._root=t,this},t.prototype.show=function(t,e){var n=this._gantt,i=document.body,o=this.getNode();if(r.isChildOf(o,i)||(this.hide(),i.appendChild(o)),this._isLikeMouseEvent(t)){var a=this._calculateTooltipPosition(t);e=a.top,t=a.left}return o.style.top=e+"px",o.style.left=t+"px",n._waiAria.tooltipVisibleAttr(o),this},t.prototype.hide=function(){var t=this._gantt,e=this.getNode();return e&&e.parentNode&&e.parentNode.removeChild(e),t._waiAria.tooltipHiddenAttr(e),this},t.prototype.setContent=function(t){return this.getNode().innerHTML=t,this},t.prototype._isLikeMouseEvent=function(t){return!(!t||"object"!=typeof t)&&"clientX"in t&&"clientY"in t},t.prototype._getViewPort=function(){return this._root||document.body},t.prototype._calculateTooltipPosition=function(t){var e=this._gantt,n=this._getViewPortSize(),i=this.getNode(),o={top:0,left:0,width:i.offsetWidth,height:i.offsetHeight,bottom:0,right:0},a=e.config.tooltip_offset_x,s=e.config.tooltip_offset_y,u=document.body,l=r.getRelativeEventPosition(t,u),c=r.getNodePosition(u);l.y+=c.y,o.top=l.y,o.left=l.x,o.top+=s,o.left+=a,o.bottom=o.top+o.height,o.right=o.left+o.width;var f=window.scrollY+u.scrollTop;return o.top<n.top-f?(o.top=n.top,o.bottom=o.top+o.height):o.bottom>n.bottom&&(o.bottom=n.bottom,o.top=o.bottom-o.height),o.left<n.left?(o.left=n.left,o.right=n.left+o.width):o.right>n.right&&(o.right=n.right,o.left=o.right-o.width),l.x>=o.left&&l.x<=o.right&&(o.left=l.x-o.width-a,o.right=o.left+o.width),l.y>=o.top&&l.y<=o.bottom&&(o.top=l.y-o.height-s,o.bottom=o.top+o.height),o},t.prototype._getViewPortSize=function(){var t,e=this._gantt,n=this._getViewPort(),i=n,o=window.scrollY+document.body.scrollTop,a=window.scrollX+document.body.scrollLeft;return n===e.$task_data?(i=e.$task,o=0,a=0,t=r.getNodePosition(e.$task)):t=r.getNodePosition(i),{left:t.x+a,top:t.y+o,width:t.width,height:t.height,bottom:t.y+t.height+o,right:t.x+t.width+a}},t}();e.Tooltip=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(44),i=n(1),o=n(2),a=n(227),s=function(){function t(t){this._listeners={},this.tooltip=new a.Tooltip(t),this._gantt=t,this._domEvents=r(),this._initDelayedFunctions()}return t.prototype.destructor=function(){this.tooltip.hide(),this._domEvents.detachAll()},t.prototype.hideTooltip=function(){this.delayHide()},t.prototype.attach=function(t){var e=this,n=document.body,r=this._gantt;t.global||(n=r.$root);var o=null,a=function(n){var r=i.getTargetNode(n),a=i.closest(r,t.selector);if(!i.isChildOf(r,e.tooltip.getNode())){var s=function(){o=a,t.onmouseenter(n,a)};o?a&&a===o?t.onmousemove(n,a):(t.onmouseleave(n,o),o=null,a&&a!==o&&s()):a&&s()}};this.detach(t.selector),this._domEvents.attach(n,"mousemove",a),this._listeners[t.selector]={node:n,handler:a}},t.prototype.detach=function(t){var e=this._listeners[t];e&&this._domEvents.detach(e.node,"mousemove",e.handler)},t.prototype.tooltipFor=function(t){var e=this,n=function(t){var e=t;return document.createEventObject&&!document.createEvent&&(e=document.createEventObject(t)),e};this._initDelayedFunctions(),this.attach({selector:t.selector,global:t.global,onmouseenter:function(r,i){var o=t.html(r,i);o&&e.delayShow(n(r),o)},onmousemove:function(r,i){var o=t.html(r,i);o?e.delayShow(n(r),o):(e.delayShow.$cancelTimeout(),e.delayHide())},onmouseleave:function(){e.delayShow.$cancelTimeout(),e.delayHide()}})},t.prototype._initDelayedFunctions=function(){var t=this,e=this._gantt;this.delayShow&&this.delayShow.$cancelTimeout(),this.delayHide&&this.delayHide.$cancelTimeout(),this.tooltip.hide(),this.delayShow=o.delay(function(n,r){!1===e.callEvent("onBeforeTooltip",[n])?t.tooltip.hide():(t.tooltip.setContent(r),t.tooltip.show(n))},e.config.tooltip_timeout||1),this.delayHide=o.delay(function(){t.delayShow.$cancelTimeout(),t.tooltip.hide()},e.config.tooltip_hide_timeout||1)},t}();e.TooltipManager=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(228);e.default=function(t){t.config.tooltip_timeout=30,t.config.tooltip_offset_y=20,t.config.tooltip_offset_x=10,t.config.tooltip_hide_timeout=30;var e=new r.TooltipManager(t);t.ext.tooltips=e,t.attachEvent("onGanttReady",function(){e.tooltipFor({selector:"["+t.config.task_attribute+"]:not(.gantt_task_row)",html:function(e){if(!t.config.touch||t.config.touch_tooltip){var n=t.locate(e);if(t.isTaskExists(n)){var r=t.getTask(n);return t.templates.tooltip_text(r.start_date,r.end_date,r)}return null}},global:!1})}),t.attachEvent("onDestroy",function(){e.destructor()}),t.attachEvent("onLightbox",function(){e.hideTooltip()}),t.attachEvent("onBeforeTooltip",function(){if(t.getState().link_source_id)return!1}),t.attachEvent("onGanttScroll",function(){e.hideTooltip()})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t){var e=this;this.show=function(t,n){void 0===n?e._showForTask(t):e._showAtCoordinates(t,n)},this.hide=function(t){var n=e._gantt,r=e._quickInfoBox;e._quickInfoBoxId=0;var i=e._quickInfoTask;if(e._quickInfoTask=null,r&&r.parentNode){if(n.config.quick_info_detached)return n.callEvent("onAfterQuickInfo",[i]),r.parentNode.removeChild(r);r.className+=" gantt_qi_hidden","auto"===r.style.right?r.style.left="-350px":r.style.right="-350px",t&&(r.style.left=r.style.right="",r.parentNode.removeChild(r)),n.callEvent("onAfterQuickInfo",[i])}},this.getNode=function(){return e._quickInfoBox?e._quickInfoBox:null},this.setContainer=function(t){t&&(e._container="string"==typeof t?document.getElementById(t):t)},this.setContent=function(t){var n=e._gantt,r={taskId:null,header:{title:"",date:""},content:"",buttons:n.config.quickinfo_buttons};t||(t=r),t.taskId||(t.taskId=r.taskId),t.header||(t.header=r.header),t.header.title||(t.header.title=r.header.title),t.header.date||(t.header.date=r.header.date),t.content||(t.content=r.content),t.buttons||(t.buttons=r.buttons);var i=e.getNode();i||(i=e._createQuickInfoElement()),t.taskId&&(e._quickInfoBoxId=t.taskId);var o=i.querySelector(".gantt_cal_qi_title"),a=o.querySelector(".gantt_cal_qi_tcontent"),s=o.querySelector(".gantt_cal_qi_tdate"),u=i.querySelector(".gantt_cal_qi_content"),l=i.querySelector(".gantt_cal_qi_controls");n._waiAria.quickInfoHeader(i,[t.header.title,t.header.date].join(" ")),a.innerHTML=t.header.title,s.innerHTML=t.header.date,t.header.title||t.header.date?o.style.display="":o.style.display="none",u.innerHTML=t.content;var c=t.buttons;c.length?l.style.display="":l.style.display="none";for(var f="",d=0;d<c.length;d++){var h=n._waiAria.quickInfoButtonAttrString(n.locale.labels[c[d]]);f+='<div class="gantt_qi_big_icon '+c[d]+'" title="'+n.locale.labels[c[d]]+'" '+h+"><div class='gantt_menu_icon "+c[d]+"'></div><div>"+n.locale.labels[c[d]]+"</div></div>"}l.innerHTML=f,n.eventRemove(i,"click",e._qiButtonClickHandler),n.eventRemove(i,"keypress",e._qiKeyPressHandler),n.event(i,"click",e._qiButtonClickHandler),n.event(i,"keypress",e._qiKeyPressHandler)},this._qiButtonClickHandler=function(t){t=t||event,e._qi_button_click(t.target||t.srcElement)},this._qiKeyPressHandler=function(t){var n=(t=t||event).which||event.keyCode;13!==n&&32!==n||setTimeout(function(){e._qi_button_click(t.target||t.srcElement)},1)},this._gantt=t}return t.prototype._showAtCoordinates=function(t,e){this.hide(!0),this._quickInfoBoxId=0,this._quickInfoTask=null,this._quickInfoBox||(this._createQuickInfoElement(),this.setContent()),this._appendAtCoordinates(t,e),this._gantt.callEvent("onQuickInfo",[null])},t.prototype._showForTask=function(t){var e=this._gantt;if((t!==this._quickInfoBoxId||!e.utils.dom.isChildOf(this._quickInfoBox,document.body))&&e.config.show_quick_info){this.hide(!0);var n=this._getContainer(),r=this._get_event_counter_part(t,6,n.xViewport,n.yViewport);r&&(this._quickInfoBox=this._init_quick_info(t),this._quickInfoTask=t,this._quickInfoBox.className=this._prepare_quick_info_classname(t),this._fill_quick_data(t),this._show_quick_info(r,6),e.callEvent("onQuickInfo",[t]))}},t.prototype._get_event_counter_part=function(t,e,n,r){var i=this._gantt,o=i.getTaskNode(t);if(!o&&!(o=i.getTaskRowNode(t)))return null;var a=0,s=e+o.offsetTop+o.offsetHeight,u=o;if(i.utils.dom.isChildOf(u,n))for(;u&&u!==n;)a+=u.offsetLeft,u=u.offsetParent;var l=i.getScrollState();return u?{left:a,top:s,dx:a+o.offsetWidth/2-l.x>n.offsetWidth/2?1:0,dy:s+o.offsetHeight/2-l.y>r.offsetHeight/2?1:0,width:o.offsetWidth,height:o.offsetHeight}:null},t.prototype._createQuickInfoElement=function(){var t=this,e=this._gantt,n=document.createElement("div");n.className+="gantt_cal_quick_info",e._waiAria.quickInfoAttr(n);var r='<div class="gantt_cal_qi_title" '+e._waiAria.quickInfoHeaderAttrString()+'><div class="gantt_cal_qi_tcontent"></div><div class="gantt_cal_qi_tdate"></div></div><div class="gantt_cal_qi_content"></div>';if(r+='<div class="gantt_cal_qi_controls">',r+="</div>",n.innerHTML=r,e.config.quick_info_detached){var i=this._getContainer();e.event(i.parent,"scroll",function(){t.hide()})}return this._quickInfoBox=n,n},t.prototype._init_quick_info=function(t){var e=this._gantt,n=e.getTask(t);return"boolean"==typeof this._quickInfoReadonly&&e.isReadonly(n)!==this._quickInfoReadonly&&(this.hide(!0),this._quickInfoBox=null),this._quickInfoReadonly=e.isReadonly(n),this._quickInfoBox||(this._quickInfoBox=this._createQuickInfoElement()),this._quickInfoBox},t.prototype._prepare_quick_info_classname=function(t){var e=this._gantt,n=e.getTask(t),r="gantt_cal_quick_info",i=e.templates.quick_info_class(n.start_date,n.end_date,n);return i&&(r+=" "+i),r},t.prototype._fill_quick_data=function(t){var e=this._gantt,n=e.getTask(t);this._quickInfoBoxId=t;var r=[];if(this._quickInfoReadonly)for(var i=e.config.quickinfo_buttons,o={icon_delete:!0,icon_edit:!0},a=0;a<i.length;a++)this._quickInfoReadonly&&o[i[a]]||r.push(i[a]);else r=e.config.quickinfo_buttons;this.setContent({header:{title:e.templates.quick_info_title(n.start_date,n.end_date,n),date:e.templates.quick_info_date(n.start_date,n.end_date,n)},content:e.templates.quick_info_content(n.start_date,n.end_date,n),buttons:r})},t.prototype._appendAtCoordinates=function(t,e){var n=this._quickInfoBox,r=this._getContainer();n.parentNode&&"#document-fragment"!==n.parentNode.nodeName.toLowerCase()||r.parent.appendChild(n),n.style.left=t+"px",n.style.top=e+"px"},t.prototype._show_quick_info=function(t,e){var n=this._gantt,r=this._quickInfoBox;if(n.config.quick_info_detached){var i=this._getContainer();r.parentNode&&"#document-fragment"!==r.parentNode.nodeName.toLowerCase()||i.parent.appendChild(r);var o=r.offsetWidth,a=r.offsetHeight,s=n.getScrollState(),u=i.xViewport,l=i.yViewport,c=u.offsetWidth+s.x-o,f=t.top-s.y+a,d=t.top;f>l.offsetHeight/2&&(d=t.top-(a+t.height+2*e))<s.y&&f<=l.offsetHeight&&(d=t.top),d<s.y&&(d=s.y);var h=Math.min(Math.max(s.x,t.left-t.dx*(o-t.width)),c),p=d;this._appendAtCoordinates(h,p)}else r.style.top="20px",1===t.dx?(r.style.right="auto",r.style.left="-300px",setTimeout(function(){r.style.left="10px"},1)):(r.style.left="auto",r.style.right="-300px",setTimeout(function(){r.style.right="10px"},1)),r.className+=" gantt_qi_"+(1===t.dx?"left":"right"),n.$root.appendChild(r)},t.prototype._qi_button_click=function(t){var e=this._gantt,n=this._quickInfoBox;if(t&&t!==n){var r=t.className;if(-1!==r.indexOf("_icon")){var i=this._quickInfoBoxId;e.$click.buttons[r.split(" ")[1].replace("icon_","")](i)}else this._qi_button_click(t.parentNode)}},t.prototype._getContainer=function(){var t=this._gantt,e=this._container?this._container:t.$task_data;return e&&e.offsetHeight&&e.offsetWidth?{parent:e,xViewport:t.$task,yViewport:t.$task_data}:(e=this._container?this._container:t.$grid_data)&&e.offsetHeight&&e.offsetWidth?{parent:e,xViewport:t.$grid,yViewport:t.$grid_data}:{parent:this._container?this._container:t.$layout,xViewport:t.$layout,yViewport:t.$layout}},t}();e.QuickInfo=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(230);e.default=function(t){function e(){return t.ext.quickInfo.hide(),t.ext.quickInfo._quickInfoBox=null,!0}t.ext||(t.ext={}),t.ext.quickInfo=new r.QuickInfo(t),t.config.quickinfo_buttons=["icon_delete","icon_edit"],t.config.quick_info_detached=!0,t.config.show_quick_info=!0,t.templates.quick_info_title=function(t,e,n){return n.text.substr(0,50)},t.templates.quick_info_content=function(t,e,n){return n.details||n.text},t.templates.quick_info_date=function(e,n,r){return t.templates.task_time(e,n,r)},t.templates.quick_info_class=function(t,e,n){return""},t.attachEvent("onTaskClick",function(e,n){return t.utils.dom.closest(n.target,".gantt_add")||setTimeout(function(){t.ext.quickInfo.show(e)},0),!0});for(var n=["onViewChange","onLightbox","onBeforeTaskDelete","onBeforeDrag"],i=function(){return t.ext.quickInfo.hide(),!0},o=0;o<n.length;o++)t.attachEvent(n[o],i);t.attachEvent("onEmptyClick",function(e){var n=!0,r=document.querySelector(".gantt_cal_quick_info");r&&t.utils.dom.isChildOf(e.target,r)&&(n=!1),n&&i()}),t.attachEvent("onGanttReady",e),t.attachEvent("onDestroy",e),t.event(window,"keydown",function(e){27===e.keyCode&&t.ext.quickInfo.hide()})}},function(t,e,n){var r=n(2).replaceValidZeroId;t.exports=function(t){t.config.multiselect=!0,t.config.multiselect_one_level=!1,t._multiselect={_selected:{},_one_level:!1,_active:!0,_first_selected_when_shift:null,getDefaultSelected:function(){var t=this.getSelected();return t.length?t[t.length-1]:null},setFirstSelected:function(t){this._first_selected_when_shift=t},getFirstSelected:function(){return this._first_selected_when_shift},isActive:function(){return this.updateState(),this._active},updateState:function(){this._one_level=t.config.multiselect_one_level;var e=this._active;this._active=t.config.select_task,this._active!=e&&this.reset()},reset:function(){this._selected={}},setLastSelected:function(e){t.$data.tasksStore.silent(function(){var n=t.$data.tasksStore;e?n.select(e+""):n.unselect(null)})},getLastSelected:function(){var e=t.$data.tasksStore.getSelectedId();return e&&t.isTaskExists(e)?e:null},select:function(e,n){return!!(e&&t.callEvent("onBeforeTaskMultiSelect",[e,!0,n])&&t.callEvent("onBeforeTaskSelected",[e]))&&(this._selected[e]=!0,this.setLastSelected(e),this.afterSelect(e),t.callEvent("onTaskMultiSelect",[e,!0,n]),t.callEvent("onTaskSelected",[e]),!0)},toggle:function(t,e){this._selected[t]?this.unselect(t,e):this.select(t,e)},unselect:function(e,n){e&&t.callEvent("onBeforeTaskMultiSelect",[e,!1,n])&&(this._selected[e]=!1,this.getLastSelected()==e&&this.setLastSelected(this.getDefaultSelected()),this.afterSelect(e),t.callEvent("onTaskMultiSelect",[e,!1,n]),t.callEvent("onTaskUnselected",[e]))},isSelected:function(e){return!(!t.isTaskExists(e)||!this._selected[e])},getSelected:function(){var e=[];for(var n in this._selected)this._selected[n]&&t.isTaskExists(n)?e.push(n):this._selected[n]=!1;return e.sort(function(e,n){return t.getGlobalTaskIndex(e)>t.getGlobalTaskIndex(n)?1:-1}),e},forSelected:function(t){for(var e=this.getSelected(),n=0;n<e.length;n++)t(e[n])},isSameLevel:function(e){if(!this._one_level)return!0;var n=this.getLastSelected();return!(n&&t.isTaskExists(n)&&t.isTaskExists(e)&&t.calculateTaskLevel(t.getTask(n))!=t.calculateTaskLevel(t.getTask(e)))},afterSelect:function(e){t.isTaskExists(e)&&t._quickRefresh(function(){t.refreshTask(e)})},doSelection:function(e){if(!this.isActive())return!1;if(t._is_icon_open_click(e))return!1;var n=t.locate(e);if(!n)return!1;if(!t.callEvent("onBeforeMultiSelect",[e]))return!1;var r=this.getSelected(),i=this.getFirstSelected(),o=!1,a=this.getLastSelected(),s=t.config.multiselect,u=function(){var i=t.ext.inlineEditors,o=i.getState(),a=i.locateCell(e.target);t.config.inline_editors_multiselect_open&&a&&i.getEditorConfig(a.columnName)&&(i.isVisible()&&o.id==a.id&&o.columnName==a.columnName||i.startEdit(a.id,a.columnName)),this.setFirstSelected(n),this.isSelected(n)||this.select(n,e),r=this.getSelected();for(var s=0;s<r.length;s++)r[s]!==n&&this.unselect(r[s],e)}.bind(this),l=function(){if(a){if(n){for(var r=t.getGlobalTaskIndex(this.getFirstSelected()),s=t.getGlobalTaskIndex(n),u=t.getGlobalTaskIndex(a),l=a;t.getGlobalTaskIndex(l)!==r;)this.unselect(l,e),l=r>u?t.getNext(l):t.getPrev(l);for(l=n;t.getGlobalTaskIndex(l)!==r;)this.select(l,e)&&!o&&(o=!0,i=l),l=r>s?t.getNext(l):t.getPrev(l)}}else a=n}.bind(this);return s&&(e.ctrlKey||e.metaKey)?(this.isSelected(n)||this.setFirstSelected(n),n&&this.toggle(n,e)):s&&e.shiftKey?(t.isTaskExists(this.getFirstSelected())&&null!==this.getFirstSelected()||this.setFirstSelected(n),r.length?l():u()):u(),this.isSelected(n)?this.setLastSelected(n):i?n==a&&this.setLastSelected(e.shiftKey?i:this.getDefaultSelected()):this.setLastSelected(null),this.getSelected().length||this.setLastSelected(null),this.getLastSelected()&&this.isSelected(this.getFirstSelected())||this.setFirstSelected(this.getLastSelected()),!0}},function(){var e=t.selectTask;t.selectTask=function(n){if(!(n=r(n,this.config.root_id)))return!1;var i=t._multiselect,o=n;return i.isActive()?(i.select(n,null)&&i.setLastSelected(n),i.setFirstSelected(i.getLastSelected())):o=e.call(this,n),o};var n=t.unselectTask;t.unselectTask=function(e){var r=t._multiselect,i=r.isActive();(e=e||r.getLastSelected())&&i&&(r.unselect(e,null),e==r.getLastSelected()&&r.setLastSelected(null),t.refreshTask(e),r.setFirstSelected(r.getLastSelected()));var o=e;return i||(o=n.call(this,e)),o},t.toggleTaskSelection=function(e){var n=t._multiselect;e&&n.isActive()&&(n.toggle(e),n.setFirstSelected(n.getLastSelected()))},t.getSelectedTasks=function(){var e=t._multiselect;return e.isActive(),e.getSelected()},t.eachSelectedTask=function(t){return this._multiselect.forSelected(t)},t.isSelectedTask=function(t){return this._multiselect.isSelected(t)},t.getLastSelectedTask=function(){return this._multiselect.getLastSelected()},t.attachEvent("onGanttReady",function(){var e=t.$data.tasksStore.isSelected;t.$data.tasksStore.isSelected=function(n){return t._multiselect.isActive()?t._multiselect.isSelected(n):e.call(this,n)}})}(),t.attachEvent("onTaskIdChange",function(e,n){var r=t._multiselect;if(!r.isActive())return!0;t.isSelectedTask(e)&&(r.unselect(e,null),r.select(n,null))}),t.attachEvent("onAfterTaskDelete",function(e,n){var r=t._multiselect;if(!r.isActive())return!0;r._selected[e]&&(r.unselect(e,null),r._selected[e]=!1,r.setLastSelected(r.getDefaultSelected())),r.forSelected(function(e){t.isTaskExists(e)||r.unselect(e,null)})}),t.attachEvent("onBeforeTaskMultiSelect",function(e,n,r){var i=t._multiselect;return!(n&&i.isActive()&&i._one_level)||i.isSameLevel(e)}),t.attachEvent("onTaskClick",function(e,n){return t._multiselect.doSelection(n)&&t.callEvent("onMultiSelect",[n]),!0})}},function(t,e){t.exports=function(t){function e(e){if(!t.config.show_markers)return!1;if(!e.start_date)return!1;var n=t.getState();if(!(+e.start_date>+n.max_date||(!e.end_date||+e.end_date<+n.min_date)&&+e.start_date<+n.min_date)){var r=document.createElement("div");r.setAttribute("data-marker-id",e.id);var i="gantt_marker";t.templates.marker_class&&(i+=" "+t.templates.marker_class(e)),e.css&&(i+=" "+e.css),e.title&&(r.title=e.title),r.className=i;var o=t.posFromDate(e.start_date);if(r.style.left=o+"px",r.style.height=Math.max(t.getRowTop(t.getVisibleTaskCount()),0)+"px",e.end_date){var a=t.posFromDate(e.end_date);r.style.width=Math.max(a-o,0)+"px"}return e.text&&(r.innerHTML="<div class='gantt_marker_content' >"+e.text+"</div>"),r}}function n(){if(t.$task_data){var e=document.createElement("div");e.className="gantt_marker_area",t.$task_data.appendChild(e),t.$marker_area=e}}t._markers||(t._markers=t.createDatastore({name:"marker",initItem:function(e){return e.id=e.id||t.uid(),e}})),t.config.show_markers=!0,t.attachEvent("onBeforeGanttRender",function(){t.$marker_area||n()}),t.attachEvent("onDataRender",function(){t.$marker_area||(n(),t.renderMarkers())}),t.attachEvent("onGanttLayoutReady",function(){t.attachEvent("onBeforeGanttRender",function(){n(),t.$services.getService("layers").createDataRender({name:"marker",defaultContainer:function(){return t.$marker_area}}).addLayer(e)},{once:!0})}),t.getMarker=function(t){return this._markers?this._markers.getItem(t):null},t.addMarker=function(t){return this._markers.addItem(t)},t.deleteMarker=function(t){return!!this._markers.exists(t)&&(this._markers.removeItem(t),!0)},t.updateMarker=function(t){this._markers.refresh(t)},t._getMarkers=function(){return this._markers.getItems()},t.renderMarkers=function(){this._markers.refresh()}}},function(t,e){t.exports=function(t){t.$keyboardNavigation.dispatcher={isActive:!1,activeNode:null,globalNode:new t.$keyboardNavigation.GanttNode,enable:function(){this.isActive=!0,this.setActiveNode(this.getActiveNode())},disable:function(){this.isActive=!1},isEnabled:function(){return!!this.isActive},getDefaultNode:function(){var e;return(e=t.config.keyboard_navigation_cells?new t.$keyboardNavigation.TaskCell:new t.$keyboardNavigation.TaskRow).isValid()||(e=e.fallback()),e},setDefaultNode:function(){this.setActiveNode(this.getDefaultNode())},getActiveNode:function(){var t=this.activeNode;return t&&!t.isValid()&&(t=t.fallback()),t},fromDomElement:function(e){for(var n=[t.$keyboardNavigation.TaskRow,t.$keyboardNavigation.TaskCell,t.$keyboardNavigation.HeaderCell],r=0;r<n.length;r++)if(n[r].prototype.fromDomElement){var i=n[r].prototype.fromDomElement(e);if(i)return i}return null},focusGlobalNode:function(){this.blurNode(this.globalNode),this.focusNode(this.globalNode)},setActiveNode:function(t){var e=!0;this.activeNode&&this.activeNode.compareTo(t)&&(e=!1),this.isEnabled()&&(e&&this.blurNode(this.activeNode),this.activeNode=t,this.focusNode(this.activeNode,!e))},focusNode:function(t,e){t&&t.focus&&t.focus(e)},blurNode:function(t){t&&t.blur&&t.blur()},keyDownHandler:function(e){if(!t.$keyboardNavigation.isModal()&&this.isEnabled()&&!e.defaultPrevented){var n=this.globalNode,r=t.$keyboardNavigation.shortcuts.getCommandFromEvent(e),i=this.getActiveNode();!1!==t.$keyboardNavigation.facade.callEvent("onKeyDown",[r,e])&&(i?i.findHandler(r)?i.doAction(r,e):n.findHandler(r)&&n.doAction(r,e):this.setDefaultNode())}},_timeout:null,awaitsFocus:function(){return null!==this._timeout},delay:function(e,n){clearTimeout(this._timeout),this._timeout=setTimeout(t.bind(function(){this._timeout=null,e()},this),n||1)},clearDelay:function(){clearTimeout(this._timeout)}}}},function(t,e){t.exports=function(t){!function(){function e(){return!!s.length}function n(n){setTimeout(function(){e()||t.$destroyed||t.focus()},1)}function r(e){t.eventRemove(e,"keydown",o),t.event(e,"keydown",o),s.push(e)}function i(){var e=s.pop();e&&t.eventRemove(e,"keydown",o),n()}function o(e){var n=e.currentTarget;(function(t){return t==s[s.length-1]})(n)&&t.$keyboardNavigation.trapFocus(n,e)}function a(){r(t.getLightbox())}var s=[];t.attachEvent("onLightbox",a),t.attachEvent("onAfterLightbox",i),t.attachEvent("onLightboxChange",function(){i(),a()}),t.attachEvent("onAfterQuickInfo",function(){n()}),t.attachEvent("onMessagePopup",function(e){u=t.utils.dom.getActiveElement(),r(e)}),t.attachEvent("onAfterMessagePopup",function(){i(),setTimeout(function(){u&&(u.focus(),u=null)},1)});var u=null;t.$keyboardNavigation.isModal=e}()}},function(t,e,n){t.exports=function(t){var e=n(1),r=n(2).replaceValidZeroId;t.$keyboardNavigation.TaskCell=function(e,n){if(!(e=r(e,t.config.root_id))){var i=t.getChildren(t.config.root_id);i[0]&&(e=i[0])}this.taskId=e,this.columnIndex=n||0,t.isTaskExists(this.taskId)&&(this.index=t.getTaskIndex(this.taskId),this.globalIndex=t.getGlobalTaskIndex(this.taskId))},t.$keyboardNavigation.TaskCell.prototype=t._compose(t.$keyboardNavigation.TaskRow,{_handlers:null,isValid:function(){return t.$keyboardNavigation.TaskRow.prototype.isValid.call(this)&&!!t.getGridColumns()[this.columnIndex]},fallback:function(){var e=t.$keyboardNavigation.TaskRow.prototype.fallback.call(this),n=e;if(e instanceof t.$keyboardNavigation.TaskRow){for(var r=t.getGridColumns(),i=this.columnIndex;i>=0&&!r[i];)i--;r[i]&&(n=new t.$keyboardNavigation.TaskCell(e.taskId,i))}return n},fromDomElement:function(n){if(!t.config.keyboard_navigation_cells)return null;var r=t.locate(n);if(t.isTaskExists(r)){var i=0,o=e.locateAttribute(n,"data-column-index");return o&&(i=1*o.getAttribute("data-column-index")),new t.$keyboardNavigation.TaskCell(r,i)}return null},getNode:function(){if(t.isTaskExists(this.taskId)&&t.isTaskVisible(this.taskId)){if(t.config.show_grid){var e=t.$grid.querySelector(".gantt_row["+t.config.task_attribute+"='"+this.taskId+"']");return e?e.querySelector("[data-column-index='"+this.columnIndex+"']"):null}return t.getTaskNode(this.taskId)}},keys:{up:function(){var e=null,n=t.getPrev(this.taskId);e=t.isTaskExists(n)?new t.$keyboardNavigation.TaskCell(n,this.columnIndex):new t.$keyboardNavigation.HeaderCell(this.columnIndex),this.moveTo(e)},down:function(){var e=t.getNext(this.taskId);t.isTaskExists(e)&&this.moveTo(new t.$keyboardNavigation.TaskCell(e,this.columnIndex))},left:function(){this.columnIndex>0&&this.moveTo(new t.$keyboardNavigation.TaskCell(this.taskId,this.columnIndex-1))},right:function(){var e=t.getGridColumns();this.columnIndex<e.length-1&&this.moveTo(new t.$keyboardNavigation.TaskCell(this.taskId,this.columnIndex+1))},end:function(){var e=t.getGridColumns();this.moveTo(new t.$keyboardNavigation.TaskCell(this.taskId,e.length-1))},home:function(){this.moveTo(new t.$keyboardNavigation.TaskCell(this.taskId,0))},pagedown:function(){t.getVisibleTaskCount()&&this.moveTo(new t.$keyboardNavigation.TaskCell(t.getTaskByIndex(t.getVisibleTaskCount()-1).id,this.columnIndex))},pageup:function(){t.getVisibleTaskCount()&&this.moveTo(new t.$keyboardNavigation.TaskCell(t.getTaskByIndex(0).id,this.columnIndex))}}}),t.$keyboardNavigation.TaskCell.prototype.bindAll(t.$keyboardNavigation.TaskRow.prototype.keys),t.$keyboardNavigation.TaskCell.prototype.bindAll(t.$keyboardNavigation.TaskCell.prototype.keys)}},function(t,e){t.exports=function(t){t.$keyboardNavigation.TaskRow=function(e){if(!e){var n=t.getChildren(t.config.root_id);n[0]&&(e=n[0])}this.taskId=e,t.isTaskExists(this.taskId)&&(this.index=t.getTaskIndex(this.taskId),this.globalIndex=t.getGlobalTaskIndex(this.taskId))},t.$keyboardNavigation.TaskRow.prototype=t._compose(t.$keyboardNavigation.KeyNavNode,{_handlers:null,isValid:function(){return t.isTaskExists(this.taskId)&&t.getTaskIndex(this.taskId)>-1},fallback:function(){if(!t.getVisibleTaskCount()){var e=new t.$keyboardNavigation.HeaderCell;return e.isValid()?e:null}var n=-1;if(t.getTaskByIndex(this.globalIndex-1))n=this.globalIndex-1;else if(t.getTaskByIndex(this.globalIndex+1))n=this.globalIndex+1;else for(var r=this.globalIndex;r>=0;){if(t.getTaskByIndex(r)){n=r;break}r--}if(n>-1)return new t.$keyboardNavigation.TaskRow(t.getTaskByIndex(n).id)},fromDomElement:function(e){if(t.config.keyboard_navigation_cells)return null;var n=t.locate(e);return t.isTaskExists(n)?new t.$keyboardNavigation.TaskRow(n):null},getNode:function(){if(t.isTaskExists(this.taskId)&&t.isTaskVisible(this.taskId))return t.config.show_grid?t.$grid.querySelector(".gantt_row["+t.config.task_attribute+"='"+this.taskId+"']"):t.getTaskNode(this.taskId)},focus:function(e){if(!e){var n,r,i=t.getTaskPosition(t.getTask(this.taskId)),o=t.getTaskHeight(this.taskId),a=t.getScrollState();n=t.$task?t.$task.offsetWidth:a.inner_width,r=t.$grid_data||t.$task_data?(t.$grid_data||t.$task_data).offsetHeight:a.inner_height,i.top<a.y||i.top+o>a.y+r?t.scrollTo(null,i.top-5*o):t.config.scroll_on_click&&t.config.show_chart&&(i.left>a.x+n?t.scrollTo(i.left-t.config.task_scroll_offset):i.left+i.width<a.x&&t.scrollTo(i.left+i.width-t.config.task_scroll_offset))}t.$keyboardNavigation.KeyNavNode.prototype.focus.apply(this,[e]),function(){var e=t.$ui.getView("grid"),n=parseInt(e.$grid.scrollLeft),r=parseInt(e.$grid_data.scrollTop),i=e.$config.scrollX;if(i&&e.$config.scrollable){var o=t.$ui.getView(i);o&&o.scrollTo(n,r)}var a=e.$config.scrollY;if(a){var s=t.$ui.getView(a);s&&s.scrollTo(n,r)}}()},keys:{pagedown:function(){t.getVisibleTaskCount()&&this.moveTo(new t.$keyboardNavigation.TaskRow(t.getTaskByIndex(t.getVisibleTaskCount()-1).id))},pageup:function(){t.getVisibleTaskCount()&&this.moveTo(new t.$keyboardNavigation.TaskRow(t.getTaskByIndex(0).id))},up:function(){var e=null,n=t.getPrev(this.taskId);e=t.isTaskExists(n)?new t.$keyboardNavigation.TaskRow(n):new t.$keyboardNavigation.HeaderCell,this.moveTo(e)},down:function(){var e=t.getNext(this.taskId);t.isTaskExists(e)&&this.moveTo(new t.$keyboardNavigation.TaskRow(e))},"shift+down":function(){t.hasChild(this.taskId)&&!t.getTask(this.taskId).$open&&t.open(this.taskId)},"shift+up":function(){t.hasChild(this.taskId)&&t.getTask(this.taskId).$open&&t.close(this.taskId)},"shift+right":function(){if(!t.isReadonly(this)){var e=t.getPrevSibling(this.taskId);t.isTaskExists(e)&&!t.isChildOf(this.taskId,e)&&(t.getTask(e).$open=!0,!1!==t.moveTask(this.taskId,-1,e)&&t.updateTask(this.taskId))}},"shift+left":function(){if(!t.isReadonly(this)){var e=t.getParent(this.taskId);t.isTaskExists(e)&&!1!==t.moveTask(this.taskId,t.getTaskIndex(e)+1,t.getParent(e))&&t.updateTask(this.taskId)}},space:function(e){t.isSelectedTask(this.taskId)?t.unselectTask(this.taskId):t.selectTask(this.taskId)},"ctrl+left":function(e){t.close(this.taskId)},"ctrl+right":function(e){t.open(this.taskId)},delete:function(e){t.isReadonly(this)||t.$click.buttons.delete(this.taskId)},enter:function(){t.isReadonly(this)||t.showLightbox(this.taskId)},"ctrl+enter":function(){t.isReadonly(this)||t.createTask({},this.taskId)}}}),t.$keyboardNavigation.TaskRow.prototype.bindAll(t.$keyboardNavigation.TaskRow.prototype.keys)}},function(t,e,n){t.exports=function(t){var e=n(1);t.$keyboardNavigation.HeaderCell=function(t){this.index=t||0},t.$keyboardNavigation.HeaderCell.prototype=t._compose(t.$keyboardNavigation.KeyNavNode,{_handlers:null,isValid:function(){return!(!t.config.show_grid&&t.getVisibleTaskCount()||!t.getGridColumns()[this.index]&&t.getVisibleTaskCount())},fallback:function(){if(!t.config.show_grid)return t.getVisibleTaskCount()?new t.$keyboardNavigation.TaskRow:null;for(var e=t.getGridColumns(),n=this.index;n>=0&&!e[n];)n--;return e[n]?new t.$keyboardNavigation.HeaderCell(n):null},fromDomElement:function(n){var r=e.locateClassName(n,"gantt_grid_head_cell");if(r){for(var i=0;r&&r.previousSibling;)r=r.previousSibling,i+=1;return new t.$keyboardNavigation.HeaderCell(i)}return null},getNode:function(){return t.$grid_scale.childNodes[this.index]},keys:{left:function(){this.index>0&&this.moveTo(new t.$keyboardNavigation.HeaderCell(this.index-1))},right:function(){var e=t.getGridColumns();this.index<e.length-1&&this.moveTo(new t.$keyboardNavigation.HeaderCell(this.index+1))},down:function(){var e,n=t.getChildren(t.config.root_id);t.isTaskExists(n[0])&&(e=n[0]),e&&(t.config.keyboard_navigation_cells?this.moveTo(new t.$keyboardNavigation.TaskCell(e,this.index)):this.moveTo(new t.$keyboardNavigation.TaskRow(e)))},end:function(){var e=t.getGridColumns();this.moveTo(new t.$keyboardNavigation.HeaderCell(e.length-1))},home:function(){this.moveTo(new t.$keyboardNavigation.HeaderCell(0))},"enter, space":function(){e.getActiveElement().click()},"ctrl+enter":function(){t.isReadonly(this)||t.createTask({},this.taskId)}}}),t.$keyboardNavigation.HeaderCell.prototype.bindAll(t.$keyboardNavigation.HeaderCell.prototype.keys)}},function(t,e){t.exports=function(t){t.$keyboardNavigation.KeyNavNode=function(){},t.$keyboardNavigation.KeyNavNode.prototype=t._compose(t.$keyboardNavigation.EventHandler,{isValid:function(){return!0},fallback:function(){return null},moveTo:function(e){t.$keyboardNavigation.dispatcher.setActiveNode(e)},compareTo:function(t){if(!t)return!1;for(var e in this){if(!!this[e]!=!!t[e])return!1;var n=!(!this[e]||!this[e].toString),r=!(!t[e]||!t[e].toString);if(r!=n)return!1;if(r&&n){if(t[e].toString()!=this[e].toString())return!1}else if(t[e]!=this[e])return!1}return!0},getNode:function(){},focus:function(){var e=this.getNode();if(e){var n=t.$keyboardNavigation.facade;!1!==n.callEvent("onBeforeFocus",[e])&&e&&(e.setAttribute("tabindex","-1"),e.$eventAttached||(e.$eventAttached=!0,t.event(e,"focus",function(t){return t.preventDefault(),!1},!1)),t.utils.dom.isChildOf(document.activeElement,e)&&(e=document.activeElement),e.focus&&e.focus(),n.callEvent("onFocus",[this.getNode()]))}},blur:function(){var e=this.getNode();e&&(t.$keyboardNavigation.facade.callEvent("onBlur",[e]),e.setAttribute("tabindex","-1"))}})}},function(t,e){t.exports=function(t){t.$keyboardNavigation.GanttNode=function(){},t.$keyboardNavigation.GanttNode.prototype=t._compose(t.$keyboardNavigation.EventHandler,{focus:function(){t.focus()},blur:function(){},isEnabled:function(){return t.$container.hasAttribute("tabindex")},scrollHorizontal:function(e){var n=t.dateFromPos(t.getScrollState().x),r=t.getScale(),i=e<0?-r.step:r.step;n=t.date.add(n,i,r.unit),t.scrollTo(t.posFromDate(n))},scrollVertical:function(e){var n=t.getScrollState().y,r=t.config.row_height;t.scrollTo(null,n+(e<0?-1:1)*r)},keys:{"alt+left":function(t){this.scrollHorizontal(-1)},"alt+right":function(t){this.scrollHorizontal(1)},"alt+up":function(t){this.scrollVertical(-1)},"alt+down":function(t){this.scrollVertical(1)},"ctrl+z":function(){t.undo&&t.undo()},"ctrl+r":function(){t.redo&&t.redo()}}}),t.$keyboardNavigation.GanttNode.prototype.bindAll(t.$keyboardNavigation.GanttNode.prototype.keys)}},function(t,e,n){t.exports=function(t){!function(){var e=n(1);t.$keyboardNavigation.getFocusableNodes=e.getFocusableNodes,t.$keyboardNavigation.trapFocus=function(n,r){if(9!=r.keyCode)return!1;for(var i=t.$keyboardNavigation.getFocusableNodes(n),o=e.getActiveElement(),a=-1,s=0;s<i.length;s++)if(i[s]==o){a=s;break}if(r.shiftKey){if(a<=0){var u=i[i.length-1];if(u)return u.focus(),r.preventDefault(),!0}}else if(a>=i.length-1){var l=i[0];if(l)return l.focus(),r.preventDefault(),!0}return!1}}()}},function(t,e){t.exports=function(t){t.$keyboardNavigation.EventHandler={_handlers:null,findHandler:function(e){this._handlers||(this._handlers={});var n=t.$keyboardNavigation.shortcuts.getHash(e);return this._handlers[n]},doAction:function(e,n){var r=this.findHandler(e);if(r){if(!1===t.$keyboardNavigation.facade.callEvent("onBeforeAction",[e,n]))return;r.call(this,n),n.preventDefault?n.preventDefault():n.returnValue=!1}},bind:function(e,n){this._handlers||(this._handlers={});for(var r=t.$keyboardNavigation.shortcuts,i=r.parse(e),o=0;o<i.length;o++)this._handlers[r.getHash(i[o])]=n},unbind:function(e){for(var n=t.$keyboardNavigation.shortcuts,r=n.parse(e),i=0;i<r.length;i++)this._handlers[n.getHash(r[i])]&&delete this._handlers[n.getHash(r[i])]},bindAll:function(t){for(var e in t)this.bind(e,t[e])},initKeys:function(){this._handlers||(this._handlers={}),this.keys&&this.bindAll(this.keys)}}}},function(t,e){t.exports=function(t){t.$keyboardNavigation.shortcuts={createCommand:function(){return{modifiers:{shift:!1,alt:!1,ctrl:!1,meta:!1},keyCode:null}},parse:function(t){for(var e=[],n=this.getExpressions(this.trim(t)),r=0;r<n.length;r++){for(var i=this.getWords(n[r]),o=this.createCommand(),a=0;a<i.length;a++)this.commandKeys[i[a]]?o.modifiers[i[a]]=!0:this.specialKeys[i[a]]?o.keyCode=this.specialKeys[i[a]]:o.keyCode=i[a].charCodeAt(0);e.push(o)}return e},getCommandFromEvent:function(t){var e=this.createCommand();e.modifiers.shift=!!t.shiftKey,e.modifiers.alt=!!t.altKey,e.modifiers.ctrl=!!t.ctrlKey,e.modifiers.meta=!!t.metaKey,e.keyCode=t.which||t.keyCode,e.keyCode>=96&&e.keyCode<=105&&(e.keyCode-=48);var n=String.fromCharCode(e.keyCode);return n&&(e.keyCode=n.toLowerCase().charCodeAt(0)),e},getHashFromEvent:function(t){return this.getHash(this.getCommandFromEvent(t))},getHash:function(t){var e=[];for(var n in t.modifiers)t.modifiers[n]&&e.push(n);return e.push(t.keyCode),e.join(this.junctionChar)},getExpressions:function(t){return t.split(this.junctionChar)},getWords:function(t){return t.split(this.combinationChar)},trim:function(t){return t.replace(/\s/g,"")},junctionChar:",",combinationChar:"+",commandKeys:{shift:16,alt:18,ctrl:17,meta:!0},specialKeys:{backspace:8,tab:9,enter:13,esc:27,space:32,up:38,down:40,left:37,right:39,home:36,end:35,pageup:33,pagedown:34,delete:46,insert:45,plus:107,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123}}}},function(t,e,n){t.exports=function(t){var e=n(4);!function(t){t.config.keyboard_navigation=!0,t.config.keyboard_navigation_cells=!1,t.$keyboardNavigation={},t._compose=function(){for(var t=Array.prototype.slice.call(arguments,0),e={},n=0;n<t.length;n++){var r=t[n];for(var i in"function"==typeof r&&(r=new r),r)e[i]=r[i]}return e},n(243)(t),n(242)(t),n(241)(t),n(240)(t),n(239)(t),n(238)(t),n(237)(t),n(236)(t),n(235)(t),n(234)(t);var r=n(1);!function(){function n(t){return!!r.closest(t.target,".gantt_grid_editor_placeholder")}function i(t){return!!r.closest(t.target,".no_keyboard_navigation")}function o(e){if(!t.config.keyboard_navigation)return!0;if(!t.config.keyboard_navigation_cells&&n(e))return!0;if(!i(e)){var o,a=u.fromDomElement(e);a&&(u.activeNode instanceof t.$keyboardNavigation.TaskCell&&r.isChildOf(e.target,t.$task)&&(a=new t.$keyboardNavigation.TaskCell(a.taskId,u.activeNode.columnIndex)),o=a),o?u.isEnabled()?u.delay(function(){u.setActiveNode(o)}):u.activeNode=o:(u.$preventDefault=!0,setTimeout(function(){u.$preventDefault=!1},300))}}function a(e){var n={gantt:t.$keyboardNavigation.GanttNode,headerCell:t.$keyboardNavigation.HeaderCell,taskRow:t.$keyboardNavigation.TaskRow,taskCell:t.$keyboardNavigation.TaskCell};return n[e]||n.gantt}function s(e){for(var n=t.getGridColumns(),r=0;r<n.length;r++)if(n[r].name==e)return r;return 0}var u=t.$keyboardNavigation.dispatcher;u.isTaskFocused=function(e){var n=u.activeNode;return(n instanceof t.$keyboardNavigation.TaskRow||n instanceof t.$keyboardNavigation.TaskCell)&&n.taskId==e};var l=function(e){if(t.config.keyboard_navigation&&(t.config.keyboard_navigation_cells||!n(e))&&!i(e)&&!function(t){return!!r.closest(t.target,".gantt_cal_light")}(e))return u.keyDownHandler(e)},c=function(e){if(u.$preventDefault)return e.preventDefault(),t.$container.blur(),!1;u.awaitsFocus()||u.focusGlobalNode()},f=function(){if(u.isEnabled()){var e=!r.isChildOf(document.activeElement,t.$container)&&"body"!=document.activeElement.localName,n=u.getActiveNode();if(n&&!e){var i,o,a=n.getNode();a&&a.parentNode&&(i=a.parentNode.scrollTop,o=a.parentNode.scrollLeft),n.focus(!0),a&&a.parentNode&&(a.parentNode.scrollTop=i,a.parentNode.scrollLeft=o)}}};t.attachEvent("onDataRender",function(){t.config.keyboard_navigation&&f()}),t.attachEvent("onGanttRender",function(){t.eventRemove(t.$root,"keydown",l),t.eventRemove(t.$container,"focus",c),t.eventRemove(t.$container,"mousedown",o),t.config.keyboard_navigation?(t.event(t.$root,"keydown",l),t.event(t.$container,"focus",c),t.event(t.$container,"mousedown",o),t.$container.setAttribute("tabindex","0")):t.$container.removeAttribute("tabindex")});var d=t.attachEvent("onGanttReady",function(){if(t.detachEvent(d),t.$data.tasksStore.attachEvent("onStoreUpdated",function(e){if(t.config.keyboard_navigation&&u.isEnabled()){var n=u.getActiveNode();n&&n.taskId==e&&f()}}),t._smart_render){var e=t._smart_render._redrawTasks;t._smart_render._redrawTasks=function(n,r){if(t.config.keyboard_navigation&&u.isEnabled()){var i=u.getActiveNode();if(i&&void 0!==i.taskId){for(var o=!1,a=0;a<r.length;a++)if(r[a].id==i.taskId&&r[a].start_date){o=!0;break}o||r.push(t.getTask(i.taskId))}}return e.apply(this,arguments)}}});t.attachEvent("onAfterTaskAdd",function(e,n){if(!t.config.keyboard_navigation)return!0;if(u.isEnabled()){var r=0,i=u.activeNode;i instanceof t.$keyboardNavigation.TaskCell&&(r=i.columnIndex);var o=t.config.keyboard_navigation_cells?t.$keyboardNavigation.TaskCell:t.$keyboardNavigation.TaskRow;u.setActiveNode(new o(e,r))}}),t.attachEvent("onTaskIdChange",function(e,n){if(!t.config.keyboard_navigation)return!0;var r=u.activeNode;return u.isTaskFocused(e)&&(r.taskId=n),!0});var h=setInterval(function(){t.config.keyboard_navigation&&(u.isEnabled()||u.enable())},500);t.attachEvent("onDestroy",function(){clearInterval(h)});var p={};e(p),t.mixin(p,{addShortcut:function(t,e,n){var r=a(n);r&&r.prototype.bind(t,e)},getShortcutHandler:function(e,n){var r=t.$keyboardNavigation.shortcuts.parse(e);if(r.length)return p.getCommandHandler(r[0],n)},getCommandHandler:function(t,e){var n=a(e);if(n&&t)return n.prototype.findHandler(t)},removeShortcut:function(t,e){var n=a(e);n&&n.prototype.unbind(t)},focus:function(t){var e,n=t?t.type:null,r=a(n);switch(n){case"taskCell":e=new r(t.id,s(t.column));break;case"taskRow":e=new r(t.id);break;case"headerCell":e=new r(s(t.column))}u.delay(function(){e?u.setActiveNode(e):(u.enable(),u.getActiveNode()?u.awaitsFocus()||u.enable():u.setDefaultNode())})},getActiveNode:function(){if(u.isEnabled()){var e=u.getActiveNode(),n=function(e){return e instanceof t.$keyboardNavigation.GanttNode?"gantt":e instanceof t.$keyboardNavigation.HeaderCell?"headerCell":e instanceof t.$keyboardNavigation.TaskRow?"taskRow":e instanceof t.$keyboardNavigation.TaskCell?"taskCell":null}(e),r=t.getGridColumns();switch(n){case"taskCell":return{type:"taskCell",id:e.taskId,column:r[e.columnIndex].name};case"taskRow":return{type:"taskRow",id:e.taskId};case"headerCell":return{type:"headerCell",column:r[e.index].name}}}return null}}),t.$keyboardNavigation.facade=p,t.ext.keyboardNavigation=p,t.focus=function(){p.focus()},t.addShortcut=p.addShortcut,t.getShortcutHandler=p.getShortcutHandler,t.removeShortcut=p.removeShortcut}()}(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){function e(){var t=document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement;return!(!t||t!==document.body)}function n(){try{return document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled}catch(t){console.error("Fullscreen is not available:",t)}}function r(t,e){e.width=t.width,e.height=t.height,e.top=t.top,e.left=t.left,e.position=t.position,e.zIndex=t.zIndex}function i(){var n;t.$container&&(e()?l&&(n="onExpand",function(){var e=t.ext.fullscreen.getFullscreenElement(),n=document.body;r(e.style,s),a={overflow:n.style.overflow,padding:n.style.padding?n.style.padding:null,paddingTop:n.style.paddingTop?n.style.paddingTop:null,paddingRight:n.style.paddingRight?n.style.paddingRight:null,paddingBottom:n.style.paddingBottom?n.style.paddingBottom:null,paddingLeft:n.style.paddingLeft?n.style.paddingLeft:null},n.style.padding&&(n.style.padding="0"),n.style.paddingTop&&(n.style.paddingTop="0"),n.style.paddingRight&&(n.style.paddingRight="0"),n.style.paddingBottom&&(n.style.paddingBottom="0"),n.style.paddingLeft&&(n.style.paddingLeft="0"),n.style.overflow="hidden",e.style.width="100vw",e.style.height="100vh",e.style.top="0px",e.style.left="0px",e.style.position="absolute",e.style.zIndex=1,s.modified=!0,u=function(t){for(var e=t.parentNode,n=[];e&&e.style;)n.push({element:e,originalPositioning:e.style.position}),e.style.position="static",e=e.parentNode;return n}(e)}()):l&&(l=!1,n="onCollapse",function(){var e=t.ext.fullscreen.getFullscreenElement(),n=document.body;s.modified&&(a.padding&&(n.style.padding=a.padding),a.paddingTop&&(n.style.paddingTop=a.paddingTop),a.paddingRight&&(n.style.paddingRight=a.paddingRight),a.paddingBottom&&(n.style.paddingBottom=a.paddingBottom),a.paddingLeft&&(n.style.paddingLeft=a.paddingLeft),n.style.overflow=a.overflow,a={overflow:null,padding:null,paddingTop:null,paddingRight:null,paddingBottom:null,paddingLeft:null},r(s,e.style),s.modified=!1),function(t){t.forEach(function(t){t.element.style.position=t.originalPositioning})}(u),u=null}()),setTimeout(function(){t.render()}),setTimeout(function(){t.callEvent(n,[t.ext.fullscreen.getFullscreenElement()])}))}function o(){return!t.$container||!t.ext.fullscreen.getFullscreenElement()||!n()&&((console.warning||console.log)("The `fullscreen` feature not being allowed, or full-screen mode not being supported"),!0)}t.$services.getService("state").registerProvider("fullscreen",function(){return n()?{fullscreen:e()}:void 0});var a={overflow:null,padding:null,paddingTop:null,paddingRight:null,paddingBottom:null,paddingLeft:null},s={width:null,height:null,top:null,left:null,position:null,zIndex:null,modified:!1},u=null,l=!1;t.ext.fullscreen={expand:function(){if(!o()&&!e()&&t.callEvent("onBeforeExpand",[this.getFullscreenElement()])){l=!0;var n=document.body,r=n.webkitRequestFullscreen?[Element.ALLOW_KEYBOARD_INPUT]:[],i=n.msRequestFullscreen||n.mozRequestFullScreen||n.webkitRequestFullscreen||n.requestFullscreen;i&&i.apply(n,r)}},collapse:function(){if(!o()&&e()&&t.callEvent("onBeforeCollapse",[this.getFullscreenElement()])){var n=document.msExitFullscreen||document.mozCancelFullScreen||document.webkitExitFullscreen||document.exitFullscreen;n&&n.apply(document)}},toggle:function(){o()||(e()?this.collapse():this.expand())},getFullscreenElement:function(){return t.$root}},t.expand=function(){t.ext.fullscreen.expand()},t.collapse=function(){t.ext.fullscreen.collapse()},t.attachEvent("onGanttReady",function(){t.event(document,"webkitfullscreenchange",i),t.event(document,"mozfullscreenchange",i),t.event(document,"MSFullscreenChange",i),t.event(document,"fullscreenChange",i),t.event(document,"fullscreenchange",i)})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t){var e=this;this._mouseDown=!1,this._calculateDirectionVector=function(){if(e._trace.length>=10){for(var t=e._trace.slice(e._trace.length-10),n=[],r=1;r<t.length;r++)n.push({x:t[r].x-t[r-1].x,y:t[r].y-t[r-1].y});var i={x:0,y:0};return n.forEach(function(t){i.x+=t.x,i.y+=t.y}),{magnitude:Math.sqrt(i.x*i.x+i.y*i.y),angleDegrees:180*Math.atan2(Math.abs(i.y),Math.abs(i.x))/Math.PI}}return null},this._applyDndReadyStyles=function(){e._timeline.$task.classList.add("gantt_timeline_move_available")},this._clearDndReadyStyles=function(){e._timeline.$task.classList.remove("gantt_timeline_move_available")},this._getScrollPosition=function(t){var n=e._gantt;return{x:n.$ui.getView(t.$config.scrollX).getScrollState().position,y:n.$ui.getView(t.$config.scrollY).getScrollState().position}},this._countNewScrollPosition=function(t){var n=e._calculateDirectionVector(),r=e._startPoint.x-t.x,i=e._startPoint.y-t.y;return n&&(n.angleDegrees<15?i=0:n.angleDegrees>75&&(r=0)),{x:e._scrollState.x+r,y:e._scrollState.y+i}},this._setScrollPosition=function(t,n){var r=e._gantt;requestAnimationFrame(function(){r.$ui.getView(t.$config.scrollX).scroll(n.x),r.$ui.getView(t.$config.scrollY).scroll(n.y)})},this._stopDrag=function(t){var n=e._gantt;if(e._trace=[],n.$root.classList.remove("gantt_noselect"),void 0!==e._originalReadonly&&(n.config.readonly=e._originalReadonly),void 0!==e._originAutoscroll&&(n.config.autoscroll=e._originAutoscroll),n.config.drag_timeline){var r=n.config.drag_timeline.useKey;if(r&&!0!==t[r])return}e._mouseDown=!1},this._startDrag=function(t){var n=e._gantt;e._originAutoscroll=n.config.autoscroll,n.config.autoscroll=!1,n.$root.classList.add("gantt_noselect"),e._originalReadonly=n.config.readonly,n.config.readonly=!0,e._trace=[],e._mouseDown=!0;var r=e._getScrollPosition(e._timeline),i=r.x,o=r.y;e._scrollState={x:i,y:o},e._startPoint={x:t.clientX,y:t.clientY},e._trace.push(e._startPoint)},this._gantt=t,this._domEvents=t._createDomEventScope(),this._trace=[]}return t.create=function(e){return new t(e)},t.prototype.destructor=function(){this._domEvents.detachAll()},t.prototype.attach=function(t){var e=this;this._timeline=t;var n=this._gantt;this._domEvents.attach(t.$task,"mousedown",function(t){if(n.config.drag_timeline){var r=n.config.drag_timeline,i=r.useKey,o=r.ignore;if(!1!==r.enabled){var a=".gantt_task_line, .gantt_task_link";void 0!==o&&(a=o instanceof Array?o.join(", "):o),a&&n.utils.dom.closest(t.target,a)||i&&!0!==t[i]||e._startDrag(t)}}}),this._domEvents.attach(document,"keydown",function(t){if(n.config.drag_timeline){var r=n.config.drag_timeline.useKey;r&&!0===t[r]&&e._applyDndReadyStyles()}}),this._domEvents.attach(document,"keyup",function(t){if(n.config.drag_timeline){var r=n.config.drag_timeline.useKey;r&&!1===t[r]&&(e._clearDndReadyStyles(),e._stopDrag(t))}}),this._domEvents.attach(document,"mouseup",function(t){e._stopDrag(t)}),this._domEvents.attach(n.$root,"mouseup",function(t){e._stopDrag(t)}),this._domEvents.attach(document,"mouseleave",function(t){e._stopDrag(t)}),this._domEvents.attach(n.$root,"mouseleave",function(t){e._stopDrag(t)}),this._domEvents.attach(n.$root,"mousemove",function(r){if(n.config.drag_timeline){var i=n.config.drag_timeline.useKey;if(!i||!0===r[i]){var o=e._gantt.ext.clickDrag,a=(e._gantt.config.click_drag||{}).useKey;if((!o||!a||i||!r[a])&&!0===e._mouseDown){e._trace.push({x:r.clientX,y:r.clientY});var s=e._countNewScrollPosition({x:r.clientX,y:r.clientY});e._setScrollPosition(t,s),e._scrollState=s,e._startPoint={x:r.clientX,y:r.clientY}}}}})},t}();e.EventsManager=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(246);e.default=function(t){t.ext||(t.ext={}),t.ext.dragTimeline={create:function(){return r.EventsManager.create(t)}},t.config.drag_timeline={enabled:!0}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(4),i=n(2),o=function(){function t(t,e,n){var o=this;this._el=document.createElement("div"),this.defaultRender=function(t,e){o._el||(o._el=document.createElement("div"));var n=o._el,r=Math.min(t.relative.top,e.relative.top),i=Math.max(t.relative.top,e.relative.top),a=Math.min(t.relative.left,e.relative.left),s=Math.max(t.relative.left,e.relative.left);if(o._singleRow){var u=o._getTaskPositionByTop(o._startPoint.relative.top);n.style.height=u.height+"px",n.style.top=u.top+"px"}else n.style.height=Math.abs(i-r)+"px",n.style.top=r+"px";return n.style.width=Math.abs(s-a)+"px",n.style.left=a+"px",n},this._gantt=e,this._view=n,this._viewPort=t.viewPort,this._el.classList.add(t.className),"function"==typeof t.callback&&(this._callback=t.callback),this.render=function(){var e;(e=t.render?t.render(o._startPoint,o._endPoint):o.defaultRender(o._startPoint,o._endPoint))!==o._el&&(o._el&&o._el.parentNode&&o._el.parentNode.removeChild(o._el),o._el=e),""!==t.className&&o._el.classList.add(t.className),o.draw()},i.isEventable(this._viewPort)||r(this._viewPort),this._singleRow=t.singleRow,this._useRequestAnimationFrame=t.useRequestAnimationFrame}return t.prototype.draw=function(){var t=this;if(this._useRequestAnimationFrame)return requestAnimationFrame(function(){t._viewPort.appendChild(t.getElement())});this._viewPort.appendChild(this.getElement())},t.prototype.clear=function(){var t=this;if(this._useRequestAnimationFrame)return requestAnimationFrame(function(){t._el.parentNode&&t._viewPort.removeChild(t._el)});this._el.parentNode&&this._viewPort.removeChild(this._el)},t.prototype.getElement=function(){return this._el},t.prototype.getViewPort=function(){return this._viewPort},t.prototype.setStart=function(t){var e=this._gantt;this._startPoint=t,this._startDate=e.dateFromPos(this._startPoint.relative.left),this._viewPort.callEvent("onBeforeDrag",[this._startPoint])},t.prototype.setEnd=function(t){var e=this._gantt;if(this._endPoint=t,this._singleRow){var n=this._getTaskPositionByTop(this._startPoint.relative.top);this._endPoint.relative.top=n.top}this._endDate=e.dateFromPos(this._endPoint.relative.left),this._startPoint.relative.left>this._endPoint.relative.left&&(this._positionPoint={relative:{left:this._endPoint.relative.left,top:this._positionPoint.relative.top},absolute:{left:this._endPoint.absolute.left,top:this._positionPoint.absolute.top}}),this._startPoint.relative.top>this._endPoint.relative.top&&(this._positionPoint={relative:{left:this._positionPoint.relative.left,top:this._endPoint.relative.top},absolute:{left:this._positionPoint.absolute.left,top:this._endPoint.absolute.top}}),this._viewPort.callEvent("onDrag",[this._startPoint,this._endPoint])},t.prototype.setPosition=function(t){this._positionPoint=t},t.prototype.dragEnd=function(t){var e,n=this._gantt;t.relative.left<0&&(t.relative.left=0),this._viewPort.callEvent("onBeforeDragEnd",[this._startPoint,t]),this.setEnd(t),this._endDate=this._endDate||n.getState().max_date,this._startDate.valueOf()>this._endDate.valueOf()&&(e=[this._endDate,this._startDate],this._startDate=e[0],this._endDate=e[1]),this.clear();var r=n.getTaskByTime(this._startDate,this._endDate),i=this._getTasksByTop(this._startPoint.relative.top,this._endPoint.relative.top);this._viewPort.callEvent("onDragEnd",[this._startPoint,this._endPoint]),this._callback&&this._callback(this._startPoint,this._endPoint,this._startDate,this._endDate,r,i)},t.prototype.getInBounds=function(){return this._singleRow},t.prototype._getTasksByTop=function(t,e){var n=this._gantt,r=t,i=e;t>e&&(r=e,i=t);for(var o=this._getTaskPositionByTop(r).index,a=this._getTaskPositionByTop(i).index,s=[],u=o;u<=a;u++)n.getTaskByIndex(u)&&s.push(n.getTaskByIndex(u));return s},t.prototype._getTaskPositionByTop=function(t){var e=this._gantt,n=this._view,r=n.getItemIndexByTopPosition(t),i=e.getTaskByIndex(r);if(i){var o=n.getItemHeight(i.id);return{top:n.getItemTop(i.id)||0,height:o||0,index:r}}var a=n.getTotalHeight();return{top:t>a?a:0,height:e.config.row_height,index:t>a?e.getTaskCount():0}},t}();e.SelectedRegion=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=function(){function t(t){this._mouseDown=!1,this._gantt=t,this._domEvents=t._createDomEventScope()}return t.prototype.attach=function(t,e,n){var i=this,o=this._gantt,a=t.getViewPort();this._originPosition=window.getComputedStyle(a).display,this._restoreOriginPosition=function(){a.style.position=i._originPosition},"static"===this._originPosition&&(a.style.position="relative");var s=o.$services.getService("state");s.registerProvider("clickDrag",function(){return{autoscroll:!1}});var u=null;this._domEvents.attach(a,"mousedown",function(r){u=null;var a=".gantt_task_line, .gantt_task_link";void 0!==n&&(a=n instanceof Array?n.join(", "):n),a&&o.utils.dom.closest(r.target,a)||(s.registerProvider("clickDrag",function(){return{autoscroll:i._mouseDown}}),e&&!0!==r[e]||(u=i._getCoordinates(r,t)))});var l=r.getRootNode(o.$root)||document.body;this._domEvents.attach(l,"mouseup",function(n){if(u=null,(!e||!0===n[e])&&!0===i._mouseDown){i._mouseDown=!1;var r=i._getCoordinates(n,t);t.dragEnd(r)}}),this._domEvents.attach(a,"mousemove",function(n){if(!e||!0===n[e]){var r=i._gantt.ext.clickDrag,a=(i._gantt.config.drag_timeline||{}).useKey;if(!r||!a||e||!n[a]){var s=null;if(!i._mouseDown&&u)return s=i._getCoordinates(n,t),void(Math.abs(u.relative.left-s.relative.left)>5&&u&&(i._mouseDown=!0,t.setStart(o.copy(u)),t.setPosition(o.copy(u)),t.setEnd(o.copy(u)),u=null));!0===i._mouseDown&&(s=i._getCoordinates(n,t),t.setEnd(s),t.render())}}})},t.prototype.detach=function(){var t=this._gantt;this._domEvents.detachAll(),this._restoreOriginPosition&&this._restoreOriginPosition(),t.$services.getService("state").unregisterProvider("clickDrag")},t.prototype.destructor=function(){this.detach()},t.prototype._getCoordinates=function(t,e){var n=e.getViewPort(),r=n.getBoundingClientRect(),i=t.clientX,o=t.clientY;return{absolute:{left:i,top:o},relative:{left:i-r.left+n.scrollLeft,top:o-r.top+n.scrollTop}}},t}();e.EventsManager=i},function(t,e,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=n(249),o=n(248);e.default=function(t){t.ext||(t.ext={});var e={className:"gantt_click_drag_rect",useRequestAnimationFrame:!0,callback:void 0,singleRow:!1},n=new i.EventsManager(t);t.ext.clickDrag=n,t.attachEvent("onGanttReady",function(){var n=r({viewPort:t.$task_data},e);if(t.config.click_drag){var i=t.config.click_drag;n.render=i.render||e.render,n.className=i.className||e.className,n.callback=i.callback||e.callback,n.viewPort=i.viewPort||t.$task_data,n.useRequestAnimationFrame=void 0===i.useRequestAnimationFrame?e.useRequestAnimationFrame:i.useRequestAnimationFrame,n.singleRow=void 0===i.singleRow?e.singleRow:i.singleRow;var a=t.$ui.getView("timeline"),s=new o.SelectedRegion(n,t,a);t.ext.clickDrag.attach(s,i.useKey,i.ignore)}}),t.attachEvent("onDestroy",function(){n.destructor()})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(250),i=n(247),o=n(245),a=n(244),s=n(233),u=n(232),l=n(231),c=n(229),f=n(226);e.default={click_drag:r.default,drag_timeline:i.default,fullscreen:o.default,keyboard_navigation:a,quick_info:l.default,tooltip:c.default,undo:f.default,marker:s,multiselect:u}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(251),i=n(223),o=n(15).gantt=i(r.default);e.gantt=o,e.default=o}])})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.apiObj=void 0;var r=n(599),i=n(600),o=n(601),a=n(602),s=n(603),u=n(604),l=n(605),c=n(606),f=n(607),d=n(608),h=n(609),p=n(610),g=n(611),m=n(612),v=n(613),y=n(614),b=n(615),_=n(616),w=n(617),x=n(618),k=n(619),S=n(620),C=n(621),E=n(622),T=n(623),A=n(624),O=n(625),P=n(626),N=n(627),D=n(628),M=n(629),I=n(630),R=n(631),$=n(632),L=n(633),j=n(634),F=n(635),B=n(636),V=n(637),z=n(638),U=n(639),H=n(640),q=n(641),W=n(642),G=n(643),Y=n(644),K=n(645),X=n(646),J=n(647),Q=n(648),Z=n(649),tt=n(650),et=n(651),nt=n(652),rt=n(653),it=n(654),ot=n(655),at=n(656),st=n(657),ut=n(658),lt=n(659),ct=n(660),ft=n(661),dt=n(662),ht=n(663),pt=n(664),gt=n(665),mt=n(666),vt=n(667),yt=n(668),bt=n(669),_t=n(670),wt=n(671),xt=n(672),kt=n(673),St=n(674),Ct=n(675),Et=n(676),Tt=n(677),At=n(678),Ot=n(679),Pt=n(680),Nt=n(681),Dt=n(682),Mt=n(683),It=n(684),Rt=n(685),$t=n(686),Lt=n(687),jt=n(688),Ft=n(689),Bt=n(690),Vt=n(691),zt=n(692),Ut=n(693),Ht=n(694),qt=n(695),Wt=n(696),Gt=n(697),Yt=n(698),Kt=n(699),Xt=n(700),Jt=n(701),Qt=n(702),Zt=n(703),te=n(704),ee=n(705),ne=n(706),re=n(707),ie=n(708),oe=n(709),ae=n(710),se=n(711),ue=n(712),le=n(713),ce=n(714),fe=n(715),de=n(716),he=n(717),pe=n(718),ge=n(719),me=n(720),ve=n(721),ye=n(722),be=n(723),_e=n(724),we=n(725),xe=n(726),ke=n(727),Se=n(728),Ce=n(729),Ee=n(730),Te=n(731),Ae=n(732),Oe=n(733),Pe=n(734),Ne=n(735),De=n(736),Me=n(737),Ie=n(738),Re=n(739),$e=n(740),Le=n(741),je=n(742),Fe=n(743),Be=n(744),Ve=n(745),ze=n(746),Ue=n(747),He=n(748),qe=n(749),We=n(750),Ge=n(751),Ye=n(752),Ke=n(753),Xe=n(754),Je=n(755),Qe=n(756),Ze=n(757),tn=n(758),en=n(759),nn=n(760),rn=n(761),on=n(762),an=n(763),sn=n(764),un=n(765),ln=n(766),cn=n(767),fn=n(768),dn=n(769),hn=n(770),pn=n(771),gn=n(772),mn=n(773),vn=n(774),yn=n(775),bn=n(776),_n=n(777),wn=n(778),xn=n(779),kn=n(780),Sn=n(781),Cn=n(782),En=n(783),Tn=n(784),An=n(785),On=n(786),Pn=n(787),Nn=n(788),Dn=n(789),Mn=n(790),In=n(791),Rn=n(792),$n=n(793),Ln=n(794),jn=n(795),Fn=n(796),Bn=n(797),Vn=n(798),zn=n(799),Un=n(800),Hn=n(801),qn=n(802),Wn=n(803),Gn=n(804),Yn=n(805),Kn=n(806),Xn=n(807),Jn=n(808),Qn=n(809),Zn=n(810),tr=n(811),er=n(812),nr=n(813),rr=n(814),ir=n(815),or=n(816);e.apiObj={biz:{ATMBle:{beaconPicker:r.beaconPicker$,detectFace:i.detectFace$,detectFaceFullScreen:o.detectFaceFullScreen$,faceManager:a.faceManager$,punchModePicker:s.punchModePicker$},alipay:{bindAlipay:u.bindAlipay$,openAuth:l.openAuth$,pay:c.pay$},auth:{openAccountPwdLoginPage:f.openAccountPwdLoginPage$,requestAuthInfo:d.requestAuthInfo$},calendar:{chooseDateTime:h.chooseDateTime$,chooseHalfDay:p.chooseHalfDay$,chooseInterval:g.chooseInterval$,chooseOneDay:m.chooseOneDay$},chat:{chooseConversationByCorpId:v.chooseConversationByCorpId$,collectSticker:y.collectSticker$,createSceneGroup:b.createSceneGroup$,getRealmCid:_.getRealmCid$,locationChatMessage:w.locationChatMessage$,openSingleChat:x.openSingleChat$,pickConversation:k.pickConversation$,sendEmotion:S.sendEmotion$,toConversation:C.toConversation$,toConversationByOpenConversationId:E.toConversationByOpenConversationId$},clipboardData:{setData:T.setData$},conference:{createCloudCall:A.createCloudCall$,getCloudCallInfo:O.getCloudCallInfo$,getCloudCallList:P.getCloudCallList$,videoConfCall:N.videoConfCall$},contact:{choose:D.choose$,chooseMobileContacts:M.chooseMobileContacts$,complexPicker:I.complexPicker$,createGroup:R.createGroup$,departmentsPicker:$.departmentsPicker$,externalComplexPicker:L.externalComplexPicker$,externalEditForm:j.externalEditForm$,rolesPicker:F.rolesPicker$,setRule:B.setRule$},cspace:{chooseSpaceDir:V.chooseSpaceDir$,delete:z.delete$,preview:U.preview$,saveFile:H.saveFile$},customContact:{choose:q.choose$,multipleChoose:W.multipleChoose$},ding:{create:G.create$,post:Y.post$},edu:{finishMiniCourseByRecordId:K.finishMiniCourseByRecordId$,getMiniCourseDraftList:X.getMiniCourseDraftList$,joinClassroom:J.joinClassroom$,makeMiniCourse:Q.makeMiniCourse$,newMsgNotificationStatus:Z.newMsgNotificationStatus$,startAuth:tt.startAuth$,tokenFaceImg:et.tokenFaceImg$},event:{notifyWeex:nt.notifyWeex$},intent:{fetchData:rt.fetchData$},iot:{bind:it.bind$,bindMeetingRoom:ot.bindMeetingRoom$,getDeviceProperties:at.getDeviceProperties$,invokeThingService:st.invokeThingService$,queryMeetingRoomList:ut.queryMeetingRoomList$,setDeviceProperties:lt.setDeviceProperties$,unbind:ct.unbind$},live:{startClassRoom:ft.startClassRoom$,startUnifiedLive:dt.startUnifiedLive$},map:{locate:ht.locate$,search:pt.search$,view:gt.view$},media:{compressVideo:mt.compressVideo$},microApp:{openApp:vt.openApp$},navigation:{close:yt.close$,goBack:bt.goBack$,hideBar:_t.hideBar$,navigateToMiniProgram:wt.navigateToMiniProgram$,quit:xt.quit$,replace:kt.replace$,setIcon:St.setIcon$,setLeft:Ct.setLeft$,setMenu:Et.setMenu$,setRight:Tt.setRight$,setTitle:At.setTitle$},pbp:{componentPunchFromPartner:Ot.componentPunchFromPartner$,startMatchRuleFromPartner:Pt.startMatchRuleFromPartner$,stopMatchRuleFromPartner:Nt.stopMatchRuleFromPartner$},realm:{getRealtimeTracingStatus:Dt.getRealtimeTracingStatus$,getUserExclusiveInfo:Mt.getUserExclusiveInfo$,startRealtimeTracing:It.startRealtimeTracing$,stopRealtimeTracing:Rt.stopRealtimeTracing$,subscribe:$t.subscribe$,unsubscribe:Lt.unsubscribe$},resource:{getInfo:jt.getInfo$,reportDebugMessage:Ft.reportDebugMessage$},shortCut:{addShortCut:Bt.addShortCut$},store:{closeUnpayOrder:Vt.closeUnpayOrder$,createOrder:zt.createOrder$,getPayUrl:Ut.getPayUrl$,inquiry:Ht.inquiry$},tabwindow:{isTab:qt.isTab$},telephone:{call:Wt.call$,checkBizCall:Gt.checkBizCall$,quickCallList:Yt.quickCallList$,showCallMenu:Kt.showCallMenu$},user:{checkPassword:Xt.checkPassword$,get:Jt.get$},util:{callComponent:Qt.callComponent$,chooseImage:Zt.chooseImage$,chosen:te.chosen$,clearWebStoreCache:ee.clearWebStoreCache$,closePreviewImage:ne.closePreviewImage$,compressImage:re.compressImage$,datepicker:ie.datepicker$,datetimepicker:oe.datetimepicker$,decrypt:ae.decrypt$,downloadFile:se.downloadFile$,encrypt:ue.encrypt$,getPerfInfo:le.getPerfInfo$,invokeWorkbench:ce.invokeWorkbench$,isEnableGPUAcceleration:fe.isEnableGPUAcceleration$,isLocalFileExist:de.isLocalFileExist$,multiSelect:he.multiSelect$,open:pe.open$,openLink:ge.openLink$,openLocalFile:me.openLocalFile$,openModal:ve.openModal$,openSlidePanel:ye.openSlidePanel$,presentWindow:be.presentWindow$,previewImage:_e.previewImage$,previewVideo:we.previewVideo$,saveImage:xe.saveImage$,scan:ke.scan$,scanCard:Se.scanCard$,setGPUAcceleration:Ce.setGPUAcceleration$,setScreenBrightnessAndKeepOn:Ee.setScreenBrightnessAndKeepOn$,setScreenKeepOn:Te.setScreenKeepOn$,share:Ae.share$,shareImage:Oe.shareImage$,startDocSign:Pe.startDocSign$,systemShare:Ne.systemShare$,timepicker:De.timepicker$,uploadAttachment:Me.uploadAttachment$,uploadFile:Ie.uploadFile$,uploadImage:Re.uploadImage$,uploadImageFromCamera:$e.uploadImageFromCamera$,ut:Le.ut$},verify:{openBindIDCard:je.openBindIDCard$,startAuth:Fe.startAuth$},watermarkCamera:{getWatermarkInfo:Be.getWatermarkInfo$,setWatermarkInfo:Ve.setWatermarkInfo$}},channel:{permission:{requestAuthCode:ze.requestAuthCode$}},device:{accelerometer:{clearShake:Ue.clearShake$,watchShake:He.watchShake$},audio:{download:qe.download$,onPlayEnd:We.onPlayEnd$,onRecordEnd:Ge.onRecordEnd$,pause:Ye.pause$,play:Ke.play$,resume:Xe.resume$,startRecord:Je.startRecord$,stop:Qe.stop$,stopRecord:Ze.stopRecord$,translateVoice:tn.translateVoice$},base:{getInterface:en.getInterface$,getPhoneInfo:nn.getPhoneInfo$,getUUID:rn.getUUID$,getWifiStatus:on.getWifiStatus$,openSystemSetting:an.openSystemSetting$},connection:{getNetworkType:sn.getNetworkType$},geolocation:{checkPermission:un.checkPermission$,get:ln.get$,start:cn.start$,status:fn.status$,stop:dn.stop$},launcher:{checkInstalledApps:hn.checkInstalledApps$,launchApp:pn.launchApp$},nfc:{nfcRead:gn.nfcRead$,nfcStop:mn.nfcStop$,nfcWrite:vn.nfcWrite$},notification:{actionSheet:yn.actionSheet$,alert:bn.alert$,confirm:_n.confirm$,extendModal:wn.extendModal$,hidePreloader:xn.hidePreloader$,modal:kn.modal$,prompt:Sn.prompt$,showPreloader:Cn.showPreloader$,toast:En.toast$,vibrate:Tn.vibrate$},screen:{insetAdjust:An.insetAdjust$,resetView:On.resetView$,rotateView:Pn.rotateView$}},media:{voiceRecorder:{keepAlive:Nn.keepAlive$,pause:Dn.pause$,resume:Mn.resume$,start:In.start$,stop:Rn.stop$}},net:{bjGovApn:{loginGovNet:$n.loginGovNet$}},runtime:{message:{fetch:Ln.fetch$,post:jn.post$},monitor:{getLoadTime:Fn.getLoadTime$},permission:{requestAuthCode:Bn.requestAuthCode$,requestOperateAuthCode:Vn.requestOperateAuthCode$}},ui:{input:{plain:zn.plain$},multitask:{addToFloat:Un.addToFloat$,removeFromFloat:Hn.removeFromFloat$},nav:{close:qn.close$,getCurrentId:Wn.getCurrentId$,go:Gn.go$,preload:Yn.preload$,recycle:Kn.recycle$},progressBar:{setColors:Xn.setColors$},pullToRefresh:{disable:Jn.disable$,enable:Qn.enable$,stop:Zn.stop$},webViewBounce:{disable:tr.disable$,enable:er.enable$}},util:{domainStorage:{getItem:nr.getItem$,removeItem:rr.removeItem$,setItem:ir.setItem$},openTemporary:{getData:or.getData$}}}},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.beaconPicker$=void 0;var o=n(0),a="biz.ATMBle.beaconPicker";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"5.0.7"},i[o.ENV_ENUM.android]={vs:"5.0.7"},i)),e.beaconPicker$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.detectFace$=void 0;var o=n(0),a="biz.ATMBle.detectFace";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"5.1.18"},i[o.ENV_ENUM.android]={vs:"5.1.18"},i)),e.detectFace$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.detectFaceFullScreen$=void 0;var o=n(0),a="biz.ATMBle.detectFaceFullScreen";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"5.1.18"},i[o.ENV_ENUM.android]={vs:"5.1.18"},i)),e.detectFaceFullScreen$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.faceManager$=void 0;var o=n(0),a="biz.ATMBle.faceManager";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"5.0.7"},i[o.ENV_ENUM.android]={vs:"5.0.7"},i)),e.faceManager$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.punchModePicker$=void 0;var o=n(0),a="biz.ATMBle.punchModePicker";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"5.0.7"},i[o.ENV_ENUM.android]={vs:"5.0.7"},i)),e.punchModePicker$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.bindAlipay$=void 0;var o=n(0),a="biz.alipay.bindAlipay";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"6.3.15"},i[o.ENV_ENUM.android]={vs:"6.3.15"},i)),e.bindAlipay$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.openAuth$=void 0;var o=n(0),a="biz.alipay.openAuth";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"5.1.8"},i[o.ENV_ENUM.android]={vs:"5.1.8"},i)),e.openAuth$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.pay$=void 0;var o=n(0),a="biz.alipay.pay";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"2.8.0"},i[o.ENV_ENUM.android]={vs:"2.8.0"},i)),e.pay$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.openAccountPwdLoginPage$=void 0;var o=n(0),a="biz.auth.openAccountPwdLoginPage";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"6.3.0"},i[o.ENV_ENUM.android]={vs:"6.3.0"},i)),e.openAccountPwdLoginPage$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.requestAuthInfo$=void 0;var o=n(0),a="biz.auth.requestAuthInfo";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"5.1.19"},i[o.ENV_ENUM.android]={vs:"5.1.19"},i)),e.requestAuthInfo$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(s,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.chooseDateTime$=void 0;var o=n(0),a=n(6),s="biz.calendar.chooseDateTime";o.ddSdk.setAPI(s,(i={},i[o.ENV_ENUM.ios]={vs:"3.5.0",paramsDeal:a.addDefaultCorpIdParamsDeal},i[o.ENV_ENUM.android]={vs:"3.5.0",paramsDeal:a.addDefaultCorpIdParamsDeal},i)),e.chooseDateTime$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(s,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.chooseHalfDay$=void 0;var o=n(0),a=n(6),s="biz.calendar.chooseHalfDay";o.ddSdk.setAPI(s,(i={},i[o.ENV_ENUM.ios]={vs:"3.5.0",paramsDeal:a.addDefaultCorpIdParamsDeal},i[o.ENV_ENUM.android]={vs:"3.5.0",paramsDeal:a.addDefaultCorpIdParamsDeal},i)),e.chooseHalfDay$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(s,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.chooseInterval$=void 0;var o=n(0),a=n(6),s="biz.calendar.chooseInterval";o.ddSdk.setAPI(s,(i={},i[o.ENV_ENUM.ios]={vs:"3.5.0",paramsDeal:a.addDefaultCorpIdParamsDeal},i[o.ENV_ENUM.android]={vs:"3.5.0",paramsDeal:a.addDefaultCorpIdParamsDeal},i)),e.chooseInterval$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(s,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.chooseOneDay$=void 0;var o=n(0),a=n(6),s="biz.calendar.chooseOneDay";o.ddSdk.setAPI(s,(i={},i[o.ENV_ENUM.ios]={vs:"3.5.0",paramsDeal:a.addDefaultCorpIdParamsDeal},i[o.ENV_ENUM.android]={vs:"3.5.0",paramsDeal:a.addDefaultCorpIdParamsDeal},i)),e.chooseOneDay$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(s,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.chooseConversationByCorpId$=void 0;var o=n(0),a=n(6),s="biz.chat.chooseConversationByCorpId",u=(0,a.genDefaultParamsDealFn)({max:50});o.ddSdk.setAPI(s,(i={},i[o.ENV_ENUM.ios]={vs:"2.6.0",paramsDeal:u},i[o.ENV_ENUM.android]={vs:"2.6.0",paramsDeal:u},i[o.ENV_ENUM.pc]={vs:"4.7.11",paramsDeal:u},i)),e.chooseConversationByCorpId$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.collectSticker$=void 0;var o=n(0),a="biz.chat.collectSticker";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"4.6.25"},i[o.ENV_ENUM.android]={vs:"4.6.25"},i)),e.collectSticker$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.createSceneGroup$=void 0;var o=n(0),a="biz.chat.createSceneGroup";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"4.7.17"},i[o.ENV_ENUM.android]={vs:"4.7.17"},i[o.ENV_ENUM.pc]={vs:"4.7.17"},i)),e.createSceneGroup$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.getRealmCid$=void 0;var o=n(0),a="biz.chat.getRealmCid";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"4.7.12"},i[o.ENV_ENUM.android]={vs:"4.7.12"},i[o.ENV_ENUM.pc]={vs:"4.7.12"},i)),e.getRealmCid$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.locationChatMessage$=void 0;var o=n(0),a="biz.chat.locationChatMessage";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"2.7.6"},i[o.ENV_ENUM.android]={vs:"2.7.6"},i)),e.locationChatMessage$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.openSingleChat$=void 0;var o=n(0),a="biz.chat.openSingleChat";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"3.4.10"},i[o.ENV_ENUM.android]={vs:"3.4.10"},i)),e.openSingleChat$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.pickConversation$=void 0;var o=n(0),a="biz.chat.pickConversation";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"2.4.2"},i[o.ENV_ENUM.android]={vs:"2.4.2"},i[o.ENV_ENUM.pc]={vs:"4.7.9"},i)),e.pickConversation$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.sendEmotion$=void 0;var o=n(0),a="biz.chat.sendEmotion";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"4.6.12"},i[o.ENV_ENUM.android]={vs:"4.6.12"},i)),e.sendEmotion$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.toConversation$=void 0;var o=n(0),a="biz.chat.toConversation";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"2.6.0"},i[o.ENV_ENUM.android]={vs:"2.6.0"},i)),e.toConversation$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.toConversationByOpenConversationId$=void 0;var o=n(0),a="biz.chat.toConversationByOpenConversationId";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"5.1.30"},i[o.ENV_ENUM.android]={vs:"5.1.30"},i[o.ENV_ENUM.pc]={vs:"5.1.33"},i)),e.toConversationByOpenConversationId$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.setData$=void 0;var o=n(0),a="biz.clipboardData.setData";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"2.7.0"},i[o.ENV_ENUM.android]={vs:"2.7.0"},i[o.ENV_ENUM.pc]={vs:"4.6.1"},i)),e.setData$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.createCloudCall$=void 0;var o=n(0),a="biz.conference.createCloudCall";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"6.0.0"},i[o.ENV_ENUM.android]={vs:"6.0.0"},i[o.ENV_ENUM.pc]={vs:"6.0.9"},i)),e.createCloudCall$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.getCloudCallInfo$=void 0;var o=n(0),a="biz.conference.getCloudCallInfo";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"6.0.0"},i[o.ENV_ENUM.android]={vs:"6.0.0"},i[o.ENV_ENUM.pc]={vs:"6.0.9"},i)),e.getCloudCallInfo$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.getCloudCallList$=void 0;var o=n(0),a="biz.conference.getCloudCallList";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"6.0.0"},i[o.ENV_ENUM.android]={vs:"6.0.0"},i[o.ENV_ENUM.pc]={vs:"6.0.9"},i)),e.getCloudCallList$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.videoConfCall$=void 0;var o=n(0),a="biz.conference.videoConfCall";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"5.0.8"},i[o.ENV_ENUM.android]={vs:"5.0.8"},i[o.ENV_ENUM.pc]={vs:"5.1.28"},i)),e.videoConfCall$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(s,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.choose$=void 0;var o=n(0),a=n(6),s="biz.contact.choose",u=(0,a.genDefaultParamsDealFn)({multiple:!0,startWithDepartmentId:0,users:[]});o.ddSdk.setAPI(s,(i={},i[o.ENV_ENUM.pc]={vs:"2.5.0"},i[o.ENV_ENUM.ios]={vs:"2.4.0",paramsDeal:u},i[o.ENV_ENUM.android]={vs:"2.4.0",paramsDeal:u},i)),e.choose$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.chooseMobileContacts$=void 0;var o=n(0),a="biz.contact.chooseMobileContacts";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"3.1"},i[o.ENV_ENUM.android]={vs:"3.1"},i)),e.chooseMobileContacts$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.complexPicker$=void 0;var o=n(0),a="biz.contact.complexPicker";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"2.9.0"},i[o.ENV_ENUM.android]={vs:"2.9.0"},i[o.ENV_ENUM.pc]={vs:"4.3.5"},i)),e.complexPicker$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.createGroup$=void 0;var o=n(0),a="biz.contact.createGroup";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"2.4.0"},i[o.ENV_ENUM.android]={vs:"2.4.0"},i[o.ENV_ENUM.pc]={vs:"4.6.1"},i)),e.createGroup$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.departmentsPicker$=void 0;var o=n(0),a="biz.contact.departmentsPicker";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.pc]={vs:"4.2.5"},i[o.ENV_ENUM.ios]={vs:"3.0"},i[o.ENV_ENUM.android]={vs:"3.0"},i)),e.departmentsPicker$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.externalComplexPicker$=void 0;var o=n(0),a="biz.contact.externalComplexPicker";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.pc]={vs:"3.0.0"},i[o.ENV_ENUM.ios]={vs:"3.0"},i[o.ENV_ENUM.android]={vs:"3.0"},i)),e.externalComplexPicker$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.externalEditForm$=void 0;var o=n(0),a="biz.contact.externalEditForm";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"3.0"},i[o.ENV_ENUM.android]={vs:"3.0"},i)),e.externalEditForm$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.rolesPicker$=void 0;var o=n(0),a="biz.contact.rolesPicker";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"6.3.16"},i[o.ENV_ENUM.android]={vs:"6.3.16"},i)),e.rolesPicker$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.setRule$=void 0;var o=n(0),a="biz.contact.setRule";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"2.15"},i[o.ENV_ENUM.android]={vs:"2.15"},i)),e.setRule$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.chooseSpaceDir$=void 0;var o=n(0),a="biz.cspace.chooseSpaceDir";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"3.5.6"},i[o.ENV_ENUM.android]={vs:"3.5.6"},i[o.ENV_ENUM.pc]={vs:"5.1.27"},i)),e.chooseSpaceDir$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.delete$=void 0;var o=n(0),a="biz.cspace.delete";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"4.5.21"},i[o.ENV_ENUM.android]={vs:"4.5.21"},i[o.ENV_ENUM.pc]={vs:"4.5.21"},i)),e.delete$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.preview$=void 0;var o=n(0),a="biz.cspace.preview";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.pc]={vs:"3.0.0"},i[o.ENV_ENUM.ios]={vs:"2.7.0"},i[o.ENV_ENUM.android]={vs:"2.7.0"},i)),e.preview$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.saveFile$=void 0;var o=n(0),a="biz.cspace.saveFile";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"2.7.6"},i[o.ENV_ENUM.android]={vs:"2.7.6"},i)),e.saveFile$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(s,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.choose$=void 0;var o=n(0),a=n(6),s="biz.customContact.choose",u=(0,a.genDefaultParamsDealFn)({isShowCompanyName:!1,max:50});o.ddSdk.setAPI(s,(i={},i[o.ENV_ENUM.pc]={vs:"3.0.0"},i[o.ENV_ENUM.ios]={vs:"2.5.2",paramsDeal:u},i[o.ENV_ENUM.android]={vs:"2.5.2",paramsDeal:u},i)),e.choose$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(s,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.multipleChoose$=void 0;var o=n(0),a=n(6),s="biz.customContact.multipleChoose",u=(0,a.genDefaultParamsDealFn)({isShowCompanyName:!1,max:50});o.ddSdk.setAPI(s,(i={},i[o.ENV_ENUM.pc]={vs:"3.0.0"},i[o.ENV_ENUM.ios]={vs:"2.4.0",paramsDeal:u},i[o.ENV_ENUM.android]={vs:"2.4.0",paramsDeal:u},i)),e.multipleChoose$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.create$=void 0;var o=n(0),a="biz.ding.create";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"3.5.1",resultDeal:function(t){return""===t?t={dingCreateResult:!1}:"object"==typeof t&&(t.dingCreateResult=!!t.dingCreateResult),t}},i[o.ENV_ENUM.android]={vs:"3.5.1"},i[o.ENV_ENUM.pc]={vs:"4.5.9"},i)),e.create$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.post$=void 0;var o=n(0),a="biz.ding.post";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.pc]={vs:"3.0.0"},i[o.ENV_ENUM.ios]={vs:"2.4.0"},i[o.ENV_ENUM.android]={vs:"2.4.0"},i)),e.post$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.finishMiniCourseByRecordId$=void 0;var o=n(0),a="biz.edu.finishMiniCourseByRecordId";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"6.0.15"},i[o.ENV_ENUM.android]={vs:"6.0.15"},i)),e.finishMiniCourseByRecordId$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.getMiniCourseDraftList$=void 0;var o=n(0),a="biz.edu.getMiniCourseDraftList";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"6.0.15"},i[o.ENV_ENUM.android]={vs:"6.0.15"},i)),e.getMiniCourseDraftList$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.joinClassroom$=void 0;var o=n(0),a="biz.edu.joinClassroom";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"6.0.15"},i[o.ENV_ENUM.android]={vs:"6.0.15"},i[o.ENV_ENUM.pc]={vs:"6.0.15"},i)),e.joinClassroom$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.makeMiniCourse$=void 0;var o=n(0),a="biz.edu.makeMiniCourse";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"6.0.15"},i[o.ENV_ENUM.android]={vs:"6.0.15"},i)),e.makeMiniCourse$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.newMsgNotificationStatus$=void 0;var o=n(0),a="biz.edu.newMsgNotificationStatus";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"6.3.20"},i[o.ENV_ENUM.android]={vs:"6.3.20"},i)),e.newMsgNotificationStatus$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.startAuth$=void 0;var o=n(0),a="biz.edu.startAuth";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"6.3.20"},i[o.ENV_ENUM.android]={vs:"6.3.20"},i)),e.startAuth$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.tokenFaceImg$=void 0;var o=n(0),a="biz.edu.tokenFaceImg";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"6.3.20"},i[o.ENV_ENUM.android]={vs:"6.3.20"},i)),e.tokenFaceImg$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.notifyWeex$=void 0;var o=n(0),a="biz.event.notifyWeex";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"4.5.0"},i)),e.notifyWeex$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.fetchData$=void 0;var o=n(0),a="biz.intent.fetchData";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"2.7.6"},i[o.ENV_ENUM.android]={vs:"2.7.6"},i)),e.fetchData$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.bind$=void 0;var o=n(0),a="biz.iot.bind";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"4.6.34"},i[o.ENV_ENUM.android]={vs:"4.6.34"},i)),e.bind$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.bindMeetingRoom$=void 0;var o=n(0),a="biz.iot.bindMeetingRoom";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"4.6.34"},i[o.ENV_ENUM.android]={vs:"4.6.34"},i)),e.bindMeetingRoom$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.getDeviceProperties$=void 0;var o=n(0),a="biz.iot.getDeviceProperties";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"4.6.42"},i[o.ENV_ENUM.android]={vs:"4.6.42"},i)),e.getDeviceProperties$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.invokeThingService$=void 0;var o=n(0),a="biz.iot.invokeThingService";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"4.6.42"},i[o.ENV_ENUM.android]={vs:"4.6.42"},i)),e.invokeThingService$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.queryMeetingRoomList$=void 0;var o=n(0),a="biz.iot.queryMeetingRoomList";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"4.6.34"},i[o.ENV_ENUM.android]={vs:"4.6.34"},i)),e.queryMeetingRoomList$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.setDeviceProperties$=void 0;var o=n(0),a="biz.iot.setDeviceProperties";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"4.6.42"},i[o.ENV_ENUM.android]={vs:"4.6.42"},i)),e.setDeviceProperties$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.unbind$=void 0;var o=n(0),a="biz.iot.unbind";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"4.6.34"},i[o.ENV_ENUM.android]={vs:"4.6.34"},i)),e.unbind$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.startClassRoom$=void 0;var o=n(0),a="biz.live.startClassRoom";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.pc]={vs:"5.1.19"},i)),e.startClassRoom$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.startUnifiedLive$=void 0;var o=n(0),a="biz.live.startUnifiedLive";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.pc]={vs:"5.1.18"},i)),e.startUnifiedLive$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.locate$=void 0;var o=n(0),a="biz.map.locate";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"2.4.0"},i[o.ENV_ENUM.android]={vs:"2.4.0"},i)),e.locate$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(s,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.search$=void 0;var o=n(0),a=n(6),s="biz.map.search",u=(0,a.genDefaultParamsDealFn)({scope:500});o.ddSdk.setAPI(s,(i={},i[o.ENV_ENUM.ios]={vs:"2.4.0",paramsDeal:u},i[o.ENV_ENUM.android]={vs:"2.4.0",paramsDeal:u},i)),e.search$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.view$=void 0;var o=n(0),a="biz.map.view";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"2.8.0"},i[o.ENV_ENUM.android]={vs:"2.8.0"},i)),e.view$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.compressVideo$=void 0;var o=n(0),a="biz.media.compressVideo";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"4.6.37"},i[o.ENV_ENUM.android]={vs:"4.6.37"},i)),e.compressVideo$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.openApp$=void 0;var o=n(0),a="biz.microApp.openApp";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"4.5.6"},i[o.ENV_ENUM.android]={vs:"4.5.6"},i)),e.openApp$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.close$=void 0;var o=n(0),a="biz.navigation.close";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"2.4.0"},i[o.ENV_ENUM.android]={vs:"2.4.0"},i[o.ENV_ENUM.pc]={vs:"4.3.5"},i)),e.close$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.goBack$=void 0;var o=n(0),a="biz.navigation.goBack";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"2.6.0"},i[o.ENV_ENUM.android]={vs:"2.6.0"},i)),e.goBack$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.hideBar$=void 0;var o=n(0),a="biz.navigation.hideBar";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"3.5.6"},i[o.ENV_ENUM.android]={vs:"3.5.6"},i)),e.hideBar$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.navigateToMiniProgram$=void 0;var o=n(0),a="biz.navigation.navigateToMiniProgram";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"5.1.31"},i[o.ENV_ENUM.android]={vs:"5.1.31"},i)),e.navigateToMiniProgram$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.quit$=void 0;var o=n(0),a="biz.navigation.quit";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.pc]={vs:"2.5.0"},i)),e.quit$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.replace$=void 0;var o=n(0),a="biz.navigation.replace";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"3.4.6"},i[o.ENV_ENUM.android]={vs:"3.4.6"},i)),e.replace$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(s,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.setIcon$=void 0;var o=n(0),a=n(6),s="biz.navigation.setIcon",u=(0,a.genDefaultParamsDealFn)({watch:!0,showIcon:!0,iconIndex:1});o.ddSdk.setAPI(s,(i={},i[o.ENV_ENUM.ios]={vs:"2.4.0",paramsDeal:u},i[o.ENV_ENUM.android]={vs:"2.4.0",paramsDeal:u},i)),e.setIcon$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(s,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.setLeft$=void 0;var o=n(0),a=n(6),s="biz.navigation.setLeft",u=(0,a.genDefaultParamsDealFn)({watch:!0,show:!0,control:!1,showIcon:!0,text:""});o.ddSdk.setAPI(s,(i={},i[o.ENV_ENUM.pc]={vs:"2.5.0"},i[o.ENV_ENUM.ios]={vs:"2.4.0",paramsDeal:u},i[o.ENV_ENUM.android]={vs:"2.4.0",paramsDeal:u},i)),e.setLeft$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(s,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.setMenu$=void 0;var o=n(0),a=n(6),s="biz.navigation.setMenu";o.ddSdk.setAPI(s,(i={},i[o.ENV_ENUM.ios]={vs:"2.6.0",paramsDeal:a.addWatchParamsDeal},i[o.ENV_ENUM.android]={vs:"2.6.0",paramsDeal:a.addWatchParamsDeal},i)),e.setMenu$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(s,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.setRight$=void 0;var o=n(0),a=n(6),s="biz.navigation.setRight",u=(0,a.genDefaultParamsDealFn)({watch:!0,show:!0,control:!1,showIcon:!0,text:""});o.ddSdk.setAPI(s,(i={},i[o.ENV_ENUM.ios]={vs:"2.4.0",paramsDeal:u},i[o.ENV_ENUM.android]={vs:"2.4.0",paramsDeal:u},i)),e.setRight$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.setTitle$=void 0;var o=n(0),a="biz.navigation.setTitle";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.pc]={vs:"2.5.0"},i[o.ENV_ENUM.ios]={vs:"2.4.0"},i[o.ENV_ENUM.android]={vs:"2.4.0"},i)),e.setTitle$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.componentPunchFromPartner$=void 0;var o=n(0),a="biz.pbp.componentPunchFromPartner";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"5.1.10"},i[o.ENV_ENUM.android]={vs:"5.1.10"},i)),e.componentPunchFromPartner$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.startMatchRuleFromPartner$=void 0;var o=n(0),a="biz.pbp.startMatchRuleFromPartner";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"5.1.10"},i[o.ENV_ENUM.android]={vs:"5.1.10"},i)),e.startMatchRuleFromPartner$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.stopMatchRuleFromPartner$=void 0;var o=n(0),a="biz.pbp.stopMatchRuleFromPartner";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"5.1.10"},i[o.ENV_ENUM.android]={vs:"5.1.10"},i)),e.stopMatchRuleFromPartner$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.getRealtimeTracingStatus$=void 0;var o=n(0),a="biz.realm.getRealtimeTracingStatus";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.android]={vs:"6.0.13"},i)),e.getRealtimeTracingStatus$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.getUserExclusiveInfo$=void 0;var o=n(0),a="biz.realm.getUserExclusiveInfo";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"6.0.14"},i[o.ENV_ENUM.android]={vs:"6.0.14"},i[o.ENV_ENUM.pc]={vs:"6.0.17"},i)),e.getUserExclusiveInfo$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.startRealtimeTracing$=void 0;var o=n(0),a="biz.realm.startRealtimeTracing";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.android]={vs:"6.0.13"},i)),e.startRealtimeTracing$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.stopRealtimeTracing$=void 0;var o=n(0),a="biz.realm.stopRealtimeTracing";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.android]={vs:"6.0.13"},i)),e.stopRealtimeTracing$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.subscribe$=void 0;var o=n(0),a="biz.realm.subscribe";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"4.7.18"},i[o.ENV_ENUM.android]={vs:"4.7.18"},i)),e.subscribe$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.unsubscribe$=void 0;var o=n(0),a="biz.realm.unsubscribe";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"4.7.18"},i[o.ENV_ENUM.android]={vs:"4.7.18"},i)),e.unsubscribe$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.getInfo$=void 0;var o=n(0),a="biz.resource.getInfo";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"6.5.10"},i[o.ENV_ENUM.android]={vs:"6.5.10"},i)),e.getInfo$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.reportDebugMessage$=void 0;var o=n(0),a="biz.resource.reportDebugMessage";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"6.5.20"},i[o.ENV_ENUM.android]={vs:"6.5.20"},i)),e.reportDebugMessage$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.addShortCut$=void 0;var o=n(0),a="biz.shortCut.addShortCut";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.android]={vs:"4.7.32"},i)),e.addShortCut$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(s,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.closeUnpayOrder$=void 0;var o=n(0),a=n(6),s="biz.store.closeUnpayOrder";o.ddSdk.setAPI(s,(i={},i[o.ENV_ENUM.ios]={vs:"4.3.7",paramsDeal:a.genBizStoreParamsDealFn},i[o.ENV_ENUM.android]={vs:"4.3.7",paramsDeal:a.genBizStoreParamsDealFn},i[o.ENV_ENUM.pc]={vs:"4.5.3",paramsDeal:a.genBizStoreParamsDealFn},i)),e.closeUnpayOrder$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(s,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.createOrder$=void 0;var o=n(0),a=n(6),s="biz.store.createOrder";o.ddSdk.setAPI(s,(i={},i[o.ENV_ENUM.ios]={vs:"4.3.7",paramsDeal:a.genBizStoreParamsDealFn},i[o.ENV_ENUM.android]={vs:"4.3.7",paramsDeal:a.genBizStoreParamsDealFn},i[o.ENV_ENUM.pc]={vs:"4.5.3",paramsDeal:a.genBizStoreParamsDealFn},i)),e.createOrder$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(s,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.getPayUrl$=void 0;var o=n(0),a=n(6),s="biz.store.getPayUrl";o.ddSdk.setAPI(s,(i={},i[o.ENV_ENUM.ios]={vs:"4.3.7",paramsDeal:a.genBizStoreParamsDealFn},i[o.ENV_ENUM.android]={vs:"4.3.7",paramsDeal:a.genBizStoreParamsDealFn},i[o.ENV_ENUM.pc]={vs:"4.5.3",paramsDeal:a.genBizStoreParamsDealFn},i)),e.getPayUrl$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(s,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.inquiry$=void 0;var o=n(0),a=n(6),s="biz.store.inquiry";o.ddSdk.setAPI(s,(i={},i[o.ENV_ENUM.ios]={vs:"4.3.7",paramsDeal:a.genBizStoreParamsDealFn},i[o.ENV_ENUM.android]={vs:"4.3.7",paramsDeal:a.genBizStoreParamsDealFn},i[o.ENV_ENUM.pc]={vs:"4.5.3",paramsDeal:a.genBizStoreParamsDealFn},i)),e.inquiry$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.isTab$=void 0;var o=n(0),a="biz.tabwindow.isTab";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.pc]={vs:"6.5.10"},i)),e.isTab$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.call$=void 0;var o=n(0),a="biz.telephone.call";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"2.4.0"},i[o.ENV_ENUM.android]={vs:"2.4.0"},i)),e.call$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.checkBizCall$=void 0;var o=n(0),a="biz.telephone.checkBizCall";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.pc]={vs:"4.0.0"},i[o.ENV_ENUM.ios]={vs:"3.5.6"},i[o.ENV_ENUM.android]={vs:"3.5.6"},i)),e.checkBizCall$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.quickCallList$=void 0;var o=n(0),a="biz.telephone.quickCallList";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.pc]={vs:"3.5.6"},i[o.ENV_ENUM.ios]={vs:"3.5.6"},i[o.ENV_ENUM.android]={vs:"3.5.6"},i)),e.quickCallList$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.showCallMenu$=void 0;var o=n(0),a="biz.telephone.showCallMenu";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"2.8.0"},i[o.ENV_ENUM.android]={vs:"2.8.0"},i)),e.showCallMenu$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.checkPassword$=void 0;var o=n(0),a="biz.user.checkPassword";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"4.5.8"},i[o.ENV_ENUM.android]={vs:"4.5.8"},i)),e.checkPassword$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.get$=void 0;var o=n(0),a="biz.user.get";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.pc]={vs:"3.0.0"},i[o.ENV_ENUM.ios]={vs:"2.4.0"},i[o.ENV_ENUM.android]={vs:"2.4.0"},i)),e.get$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.callComponent$=void 0;var o=n(0),a="biz.util.callComponent";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"6.3.35"},i[o.ENV_ENUM.android]={vs:"6.3.35"},i[o.ENV_ENUM.pc]={vs:"6.3.35"},i)),e.callComponent$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.chooseImage$=void 0;var o=n(0),a="biz.util.chooseImage";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"5.1.1"},i[o.ENV_ENUM.android]={vs:"5.1.1"},i)),e.chooseImage$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.chosen$=void 0;var o=n(0),a="biz.util.chosen";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"2.4.0"},i[o.ENV_ENUM.android]={vs:"2.4.0"},i)),e.chosen$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.clearWebStoreCache$=void 0;var o=n(0),a="biz.util.clearWebStoreCache";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.pc]={vs:"6.0.22"},i)),e.clearWebStoreCache$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.closePreviewImage$=void 0;var o=n(0),a="biz.util.closePreviewImage";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"6.0.19"},i[o.ENV_ENUM.android]={vs:"6.0.17"},i)),e.closePreviewImage$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.compressImage$=void 0;var o=n(0),a="biz.util.compressImage";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"5.1.1"},i[o.ENV_ENUM.android]={vs:"5.1.1"},i)),e.compressImage$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.datepicker$=void 0;var o=n(0),a="biz.util.datepicker";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"2.4.0"},i[o.ENV_ENUM.android]={vs:"2.4.0"},i)),e.datepicker$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.datetimepicker$=void 0;var o=n(0),a="biz.util.datetimepicker";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"2.4.0"},i[o.ENV_ENUM.android]={vs:"2.4.0"},i)),e.datetimepicker$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.decrypt$=void 0;var o=n(0),a="biz.util.decrypt";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.pc]={vs:"3.0.0"},i[o.ENV_ENUM.ios]={vs:"2.9.1"},i[o.ENV_ENUM.android]={vs:"2.9.1"},i)),e.decrypt$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.downloadFile$=void 0;var o=n(0),a="biz.util.downloadFile";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.pc]={vs:"2.5.0"},i)),e.downloadFile$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.encrypt$=void 0;var o=n(0),a="biz.util.encrypt";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.pc]={vs:"3.0.0"},i[o.ENV_ENUM.ios]={vs:"2.9.1"},i[o.ENV_ENUM.android]={vs:"2.9.1"},i)),e.encrypt$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.getPerfInfo$=void 0;var o=n(0),a="biz.util.getPerfInfo";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"5.1.14"},i[o.ENV_ENUM.android]={vs:"5.1.14"},i)),e.getPerfInfo$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.invokeWorkbench$=void 0;var o=n(0),a="biz.util.invokeWorkbench";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.pc]={vs:"6.0.8"},i)),e.invokeWorkbench$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.isEnableGPUAcceleration$=void 0;var o=n(0),a="biz.util.isEnableGPUAcceleration";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.pc]={vs:"6.0.22"},i)),e.isEnableGPUAcceleration$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.isLocalFileExist$=void 0;var o=n(0),a="biz.util.isLocalFileExist";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.pc]={vs:"2.5.0"},i)),e.isLocalFileExist$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.multiSelect$=void 0;var o=n(0),a="biz.util.multiSelect";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"3.0.0"},i[o.ENV_ENUM.android]={vs:"3.0.0"},i)),e.multiSelect$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.open$=void 0;var o=n(0),a="biz.util.open";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.pc]={vs:"2.7.0"},i[o.ENV_ENUM.ios]={vs:"2.4.0"},i[o.ENV_ENUM.android]={vs:"2.4.0"},i)),e.open$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(s,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.openLink$=void 0;var o=n(0),a=n(6),s="biz.util.openLink",u=(0,a.genDefaultParamsDealFn)({credible:!0,showMenuBar:!0});o.ddSdk.setAPI(s,(i={},i[o.ENV_ENUM.pc]={vs:"2.7.0"},i[o.ENV_ENUM.ios]={vs:"2.4.0",paramsDeal:u},i[o.ENV_ENUM.android]={vs:"2.4.0",paramsDeal:u},i)),e.openLink$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.openLocalFile$=void 0;var o=n(0),a="biz.util.openLocalFile";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.pc]={vs:"2.5.0"},i)),e.openLocalFile$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.openModal$=void 0;var o=n(0),a="biz.util.openModal";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.pc]={vs:"2.5.0"},i)),e.openModal$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.openSlidePanel$=void 0;var o=n(0),a="biz.util.openSlidePanel";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.pc]={vs:"2.5.0"},i)),e.openSlidePanel$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.presentWindow$=void 0;var o=n(0),a="biz.util.presentWindow";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"2.8.0"},i[o.ENV_ENUM.android]={vs:"2.8.0"},i)),e.presentWindow$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.previewImage$=void 0;var o=n(0),a="biz.util.previewImage";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.pc]={vs:"2.7.0"},i[o.ENV_ENUM.ios]={vs:"2.4.0"},i[o.ENV_ENUM.android]={vs:"2.4.0"},i)),e.previewImage$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.previewVideo$=void 0;var o=n(0),a="biz.util.previewVideo";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"4.3.7"},i[o.ENV_ENUM.android]={vs:"4.3.7"},i[o.ENV_ENUM.pc]={vs:"4.6.33"},i)),e.previewVideo$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.saveImage$=void 0;var o=n(0),a="biz.util.saveImage";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"4.1"},i[o.ENV_ENUM.android]={vs:"4.1"},i)),e.saveImage$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(s,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.scan$=void 0;var o=n(0),a=n(6),s="biz.util.scan",u=(0,a.genDefaultParamsDealFn)({type:"qrCode"});o.ddSdk.setAPI(s,(i={},i[o.ENV_ENUM.ios]={vs:"2.4.0",paramsDeal:u},i[o.ENV_ENUM.android]={vs:"2.4.0",paramsDeal:u},i)),e.scan$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.scanCard$=void 0;var o=n(0),a="biz.util.scanCard";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"2.8.0"},i[o.ENV_ENUM.android]={vs:"2.8.0"},i)),e.scanCard$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.setGPUAcceleration$=void 0;var o=n(0),a="biz.util.setGPUAcceleration";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.pc]={vs:"6.0.22"},i)),e.setGPUAcceleration$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.setScreenBrightnessAndKeepOn$=void 0;var o=n(0),a="biz.util.setScreenBrightnessAndKeepOn";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"4.6.37"},i[o.ENV_ENUM.android]={vs:"4.3.3"},i)),e.setScreenBrightnessAndKeepOn$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.setScreenKeepOn$=void 0;var o=n(0),a="biz.util.setScreenKeepOn";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"5.1.26"},i[o.ENV_ENUM.android]={vs:"5.1.26"},i)),e.setScreenKeepOn$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(s,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.share$=void 0;var o=n(0),a=n(6),s="biz.util.share",u=(0,a.genDefaultParamsDealFn)({title:"",buttonName:"确定"});o.ddSdk.setAPI(s,(i={},i[o.ENV_ENUM.ios]={vs:"2.4.0",paramsDeal:u},i[o.ENV_ENUM.android]={vs:"2.4.0",paramsDeal:u},i[o.ENV_ENUM.pc]={vs:"4.6.37",paramsDeal:u},i)),e.share$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.shareImage$=void 0;var o=n(0),a="biz.util.shareImage";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"4.1"},i[o.ENV_ENUM.android]={vs:"4.1"},i)),e.shareImage$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.startDocSign$=void 0;var o=n(0),a="biz.util.startDocSign";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.android]={vs:"4.6.33"},i)),e.startDocSign$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.systemShare$=void 0;var o=n(0),a="biz.util.systemShare";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"4.5.11"},i[o.ENV_ENUM.android]={vs:"4.5.11"},i)),e.systemShare$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.timepicker$=void 0;var o=n(0),a="biz.util.timepicker";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"2.4.0"},i[o.ENV_ENUM.android]={vs:"2.4.0"},i)),e.timepicker$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.uploadAttachment$=void 0;var o=n(0),a="biz.util.uploadAttachment";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.pc]={vs:"3.0.0"},i[o.ENV_ENUM.ios]={vs:"2.7.0"},i[o.ENV_ENUM.android]={vs:"2.7.0"},i)),e.uploadAttachment$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.uploadFile$=void 0;var o=n(0),a="biz.util.uploadFile";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"6.5.28"},i[o.ENV_ENUM.android]={vs:"6.5.27"},i)),e.uploadFile$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(s,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.uploadImage$=void 0;var o=n(0),a=n(6),s="biz.util.uploadImage",u=(0,a.genDefaultParamsDealFn)({multiple:!1});o.ddSdk.setAPI(s,(i={},i[o.ENV_ENUM.pc]={vs:"2.5.0"},i[o.ENV_ENUM.ios]={vs:"2.4.0",paramsDeal:u},i[o.ENV_ENUM.android]={vs:"2.4.0",paramsDeal:u},i)),e.uploadImage$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.uploadImageFromCamera$=void 0;var o=n(0),a="biz.util.uploadImageFromCamera";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"2.4.0"},i[o.ENV_ENUM.android]={vs:"2.4.0"},i)),e.uploadImageFromCamera$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.ut$=void 0;var o=n(0),a="biz.util.ut",s=function(t){var e=Object.assign({},t),n=e.value,r=[];if(n&&"object"==typeof n){for(var i in n)void 0!==n[i]&&r.push(i+"="+n[i]);n=r.join(",")}return e.value=n||"",e};o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.pc]={vs:"3.5.0",paramsDeal:s},i[o.ENV_ENUM.ios]={vs:"2.4.0",paramsDeal:function(t){var e=Object.assign({},t),n=e.value;return n&&"object"==typeof n&&(n=JSON.stringify(n)),e.value=n,e}},i[o.ENV_ENUM.android]={vs:"2.4.0",paramsDeal:s},i)),e.ut$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.openBindIDCard$=void 0;var o=n(0),a="biz.verify.openBindIDCard";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"4.5.21"},i[o.ENV_ENUM.android]={vs:"4.5.21"},i)),e.openBindIDCard$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.startAuth$=void 0;var o=n(0),a="biz.verify.startAuth";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"4.5.21"},i[o.ENV_ENUM.android]={vs:"4.5.21"},i)),e.startAuth$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.getWatermarkInfo$=void 0;var o=n(0),a="biz.watermarkCamera.getWatermarkInfo";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"6.5.25"},i[o.ENV_ENUM.android]={vs:"6.5.25"},i)),e.getWatermarkInfo$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.setWatermarkInfo$=void 0;var o=n(0),a="biz.watermarkCamera.setWatermarkInfo";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"6.5.25"},i[o.ENV_ENUM.android]={vs:"6.5.25"},i)),e.setWatermarkInfo$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.requestAuthCode$=void 0;var o=n(0),a="channel.permission.requestAuthCode";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"3.0.0"},i[o.ENV_ENUM.android]={vs:"3.0.0"},i)),e.requestAuthCode$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.clearShake$=void 0;var o=n(0),a="device.accelerometer.clearShake";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"2.4.0"},i[o.ENV_ENUM.android]={vs:"2.4.0"},i)),e.clearShake$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(s,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.watchShake$=void 0;var o=n(0),a=n(6),s="device.accelerometer.watchShake";o.ddSdk.setAPI(s,(i={},i[o.ENV_ENUM.ios]={vs:"2.4.0",paramsDeal:function(t){return(0,a.forceChangeParamsDealFn)({sensitivity:3.2})((0,a.addWatchParamsDeal)(t))}},i[o.ENV_ENUM.android]={vs:"2.4.0",paramsDeal:a.addWatchParamsDeal},i)),e.watchShake$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.download$=void 0;var o=n(0),a="device.audio.download";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"2.8.0"},i[o.ENV_ENUM.android]={vs:"2.8.0"},i)),e.download$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.onPlayEnd$=void 0;var o=n(0),a="device.audio.onPlayEnd";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"2.8.0"},i[o.ENV_ENUM.android]={vs:"2.8.0"},i)),e.onPlayEnd$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.onRecordEnd$=void 0;var o=n(0),a="device.audio.onRecordEnd";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"2.8.0"},i[o.ENV_ENUM.android]={vs:"2.8.0"},i)),e.onRecordEnd$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.pause$=void 0;var o=n(0),a="device.audio.pause";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"2.8.0"},i[o.ENV_ENUM.android]={vs:"2.8.0"},i)),e.pause$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.play$=void 0;var o=n(0),a="device.audio.play";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"2.8.0"},i[o.ENV_ENUM.android]={vs:"2.8.0"},i)),e.play$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.resume$=void 0;var o=n(0),a="device.audio.resume";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"2.8.0"},i[o.ENV_ENUM.android]={vs:"2.8.0"},i)),e.resume$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.startRecord$=void 0;var o=n(0),a="device.audio.startRecord";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"2.8.0"},i[o.ENV_ENUM.android]={vs:"2.8.0"},i)),e.startRecord$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.stop$=void 0;var o=n(0),a="device.audio.stop";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"2.8.0"},i[o.ENV_ENUM.android]={vs:"2.8.0"},i)),e.stop$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.stopRecord$=void 0;var o=n(0),a="device.audio.stopRecord";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"2.8.0"},i[o.ENV_ENUM.android]={vs:"2.8.0"},i)),e.stopRecord$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.translateVoice$=void 0;var o=n(0),a="device.audio.translateVoice";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"2.8.0"},i[o.ENV_ENUM.android]={vs:"2.8.0"},i)),e.translateVoice$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.getInterface$=void 0;var o=n(0),a="device.base.getInterface";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"2.4.0"},i[o.ENV_ENUM.android]={vs:"2.4.0"},i)),e.getInterface$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.getPhoneInfo$=void 0;var o=n(0),a="device.base.getPhoneInfo";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"3.5.0"},i[o.ENV_ENUM.android]={vs:"3.5.0"},i)),e.getPhoneInfo$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.getUUID$=void 0;var o=n(0),a="device.base.getUUID";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"2.4.0"},i[o.ENV_ENUM.android]={vs:"2.4.0"},i[o.ENV_ENUM.pc]={vs:"4.7.6"},i)),e.getUUID$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.getWifiStatus$=void 0;var o=n(0),a="device.base.getWifiStatus";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"2.11.0"},i[o.ENV_ENUM.android]={vs:"2.11.0"},i)),e.getWifiStatus$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.openSystemSetting$=void 0;var o=n(0),a="device.base.openSystemSetting";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.android]={vs:"6.0.27"},i[o.ENV_ENUM.ios]={vs:"6.3.15"},i)),e.openSystemSetting$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.getNetworkType$=void 0;var o=n(0),a="device.connection.getNetworkType";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"2.4.0"},i[o.ENV_ENUM.android]={vs:"2.4.0"},i)),e.getNetworkType$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.checkPermission$=void 0;var o=n(0),a="device.geolocation.checkPermission";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.android]={vs:"4.5.0"},i)),e.checkPermission$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.get$=void 0;var o=n(0),a="device.geolocation.get";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"2.4.0"},i[o.ENV_ENUM.android]={vs:"2.4.0"},i)),e.get$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.start$=void 0;var o=n(0),a="device.geolocation.start";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"3.4.7"},i[o.ENV_ENUM.android]={vs:"3.4.7"},i)),e.start$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.status$=void 0;var o=n(0),a="device.geolocation.status";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"3.4.8"},i[o.ENV_ENUM.android]={vs:"3.4.8"},i)),e.status$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.stop$=void 0;var o=n(0),a="device.geolocation.stop";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"3.4.7"},i[o.ENV_ENUM.android]={vs:"3.4.7"},i)),e.stop$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.checkInstalledApps$=void 0;var o=n(0),a="device.launcher.checkInstalledApps";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"2.4.0"},i[o.ENV_ENUM.android]={vs:"2.4.0"},i)),e.checkInstalledApps$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.launchApp$=void 0;var o=n(0),a="device.launcher.launchApp";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"2.4.0"},i[o.ENV_ENUM.android]={vs:"2.4.0"},i)),e.launchApp$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.nfcRead$=void 0;var o=n(0),a="device.nfc.nfcRead";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"2.11.0"},i[o.ENV_ENUM.android]={vs:"2.11.0"},i)),e.nfcRead$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.nfcStop$=void 0;var o=n(0),a="device.nfc.nfcStop";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"4.3.9"},i[o.ENV_ENUM.android]={vs:"4.3.9"},i)),e.nfcStop$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.nfcWrite$=void 0;var o=n(0),a="device.nfc.nfcWrite";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"2.11.0"},i[o.ENV_ENUM.android]={vs:"2.11.0"},i)),e.nfcWrite$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.actionSheet$=void 0;var o=n(0),a="device.notification.actionSheet";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.pc]={vs:"3.0.0"},i[o.ENV_ENUM.ios]={vs:"2.4.0"},i[o.ENV_ENUM.android]={vs:"2.4.0"},i)),e.actionSheet$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(s,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.alert$=void 0;var o=n(0),a=n(6),s="device.notification.alert",u=(0,a.genDefaultParamsDealFn)({title:"",buttonName:"确定"});o.ddSdk.setAPI(s,(i={},i[o.ENV_ENUM.pc]={vs:"2.5.0"},i[o.ENV_ENUM.ios]={vs:"2.4.0",paramsDeal:u},i[o.ENV_ENUM.android]={vs:"2.4.0",paramsDeal:u},i)),e.alert$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(s,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.confirm$=void 0;var o=n(0),a=n(6),s="device.notification.confirm",u=(0,a.genDefaultParamsDealFn)({title:"",buttonLabels:["确定","取消"]});o.ddSdk.setAPI(s,(i={},i[o.ENV_ENUM.pc]={vs:"2.5.0"},i[o.ENV_ENUM.ios]={vs:"2.4.0",paramsDeal:u},i[o.ENV_ENUM.android]={vs:"2.4.0",paramsDeal:u},i)),e.confirm$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.extendModal$=void 0;var o=n(0),a="device.notification.extendModal";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"2.5.0"},i[o.ENV_ENUM.android]={vs:"2.5.0"},i)),e.extendModal$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.hidePreloader$=void 0;var o=n(0),a="device.notification.hidePreloader";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"2.4.0"},i[o.ENV_ENUM.android]={vs:"2.4.0"},i)),e.hidePreloader$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.modal$=void 0;var o=n(0),a="device.notification.modal";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.pc]={vs:"4.2.5"},i[o.ENV_ENUM.ios]={vs:"2.4.0"},i[o.ENV_ENUM.android]={vs:"2.4.0"},i)),e.modal$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(s,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.prompt$=void 0;var o=n(0),a=n(6),s="device.notification.prompt",u=(0,a.genDefaultParamsDealFn)({title:"",buttonLabels:["确定","取消"]});o.ddSdk.setAPI(s,(i={},i[o.ENV_ENUM.pc]={vs:"2.7.0"},i[o.ENV_ENUM.ios]={vs:"2.4.0",paramsDeal:u},i[o.ENV_ENUM.android]={vs:"2.4.0",paramsDeal:u},i)),e.prompt$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(s,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.showPreloader$=void 0;var o=n(0),a=n(6),s="device.notification.showPreloader",u=(0,a.genDefaultParamsDealFn)({text:"加载中...",showIcon:!0});o.ddSdk.setAPI(s,(i={},i[o.ENV_ENUM.ios]={vs:"2.4.0",paramsDeal:u},i[o.ENV_ENUM.android]={vs:"2.4.0",paramsDeal:u},i)),e.showPreloader$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(s,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.toast$=void 0;var o=n(0),a=n(6),s="device.notification.toast",u=(0,a.genDefaultParamsDealFn)({text:"toast",duration:3,delay:0});o.ddSdk.setAPI(s,(i={},i[o.ENV_ENUM.pc]={vs:"2.5.0",paramsDeal:function(t){return t.icon&&!t.type&&("success"===t.icon?t.type="success":"error"===t.icon&&(t.type="error")),t}},i[o.ENV_ENUM.ios]={vs:"2.4.0",paramsDeal:u},i[o.ENV_ENUM.android]={vs:"2.4.0",paramsDeal:u},i)),e.toast$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(s,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.vibrate$=void 0;var o=n(0),a=n(6),s="device.notification.vibrate",u=(0,a.genDefaultParamsDealFn)({duration:300});o.ddSdk.setAPI(s,(i={},i[o.ENV_ENUM.ios]={vs:"2.4.0",paramsDeal:u},i[o.ENV_ENUM.android]={vs:"2.4.0",paramsDeal:u},i)),e.vibrate$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.insetAdjust$=void 0;var o=n(0),a="device.screen.insetAdjust";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"4.6.18"},i)),e.insetAdjust$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.resetView$=void 0;var o=n(0),a="device.screen.resetView";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.android]={vs:"4.0.0"},i[o.ENV_ENUM.ios]={vs:"4.0.0"},i)),e.resetView$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.rotateView$=void 0;var o=n(0),a="device.screen.rotateView";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.android]={vs:"4.0.0"},i[o.ENV_ENUM.ios]={vs:"4.0.0"},i)),e.rotateView$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.keepAlive$=void 0;var o=n(0),a="media.voiceRecorder.keepAlive";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"5.1.12"},i[o.ENV_ENUM.android]={vs:"5.1.12"},i[o.ENV_ENUM.pc]={vs:"5.1.12"},i)),e.keepAlive$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.pause$=void 0;var o=n(0),a="media.voiceRecorder.pause";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"5.1.12"},i[o.ENV_ENUM.android]={vs:"5.1.12"},i[o.ENV_ENUM.pc]={vs:"5.1.12"},i)),e.pause$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.resume$=void 0;var o=n(0),a="media.voiceRecorder.resume";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"5.1.12"},i[o.ENV_ENUM.android]={vs:"5.1.12"},i[o.ENV_ENUM.pc]={vs:"5.1.12"},i)),e.resume$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.start$=void 0;var o=n(0),a="media.voiceRecorder.start";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"5.1.12"},i[o.ENV_ENUM.android]={vs:"5.1.12"},i[o.ENV_ENUM.pc]={vs:"5.1.12"},i)),e.start$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.stop$=void 0;var o=n(0),a="media.voiceRecorder.stop";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"5.1.12"},i[o.ENV_ENUM.android]={vs:"5.1.12"},i[o.ENV_ENUM.pc]={vs:"5.1.12"},i)),e.stop$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.loginGovNet$=void 0;var o=n(0),a="net.bjGovApn.loginGovNet";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.android]={vs:"4.5.16"},i)),e.loginGovNet$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.fetch$=void 0;var o=n(0),a="runtime.message.fetch";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"2.6.0"},i[o.ENV_ENUM.android]={vs:"2.6.0"},i)),e.fetch$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.post$=void 0;var o=n(0),a="runtime.message.post";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"2.6.0"},i[o.ENV_ENUM.android]={vs:"2.6.0"},i)),e.post$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.getLoadTime$=void 0;var o=n(0),a="runtime.monitor.getLoadTime";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"6.0.10"},i[o.ENV_ENUM.android]={vs:"6.0.10"},i)),e.getLoadTime$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.requestAuthCode$=void 0;var o=n(0),a="runtime.permission.requestAuthCode",s=function(t){return Object.assign(t,{url:location.href.split("#")[0]})};o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.pc]={vs:"3.0.0",paramsDeal:s},i[o.ENV_ENUM.ios]={vs:"2.4.0"},i[o.ENV_ENUM.android]={vs:"2.4.0"},i)),e.requestAuthCode$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.requestOperateAuthCode$=void 0;var o=n(0),a="runtime.permission.requestOperateAuthCode",s=function(t){return Object.assign(t,{url:location.href.split("#")[0]})};o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.pc]={vs:"3.3.0",paramsDeal:s},i[o.ENV_ENUM.ios]={vs:"3.3.0"},i[o.ENV_ENUM.android]={vs:"3.3.0"},i)),e.requestOperateAuthCode$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.plain$=void 0;var o=n(0),a="ui.input.plain";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"2.4.0"},i[o.ENV_ENUM.android]={vs:"2.4.0"},i)),e.plain$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.addToFloat$=void 0;var o=n(0),a="ui.multitask.addToFloat";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"6.5.0"},i[o.ENV_ENUM.android]={vs:"6.5.0"},i)),e.addToFloat$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.removeFromFloat$=void 0;var o=n(0),a="ui.multitask.removeFromFloat";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"6.5.0"},i[o.ENV_ENUM.android]={vs:"6.5.0"},i)),e.removeFromFloat$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.close$=void 0;var o=n(0),a="ui.nav.close";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"2.6.0"},i[o.ENV_ENUM.android]={vs:"2.6.0"},i)),e.close$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.getCurrentId$=void 0;var o=n(0),a="ui.nav.getCurrentId";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"2.6.0"},i[o.ENV_ENUM.android]={vs:"2.6.0"},i)),e.getCurrentId$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.go$=void 0;var o=n(0),a="ui.nav.go";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"2.6.0"},i[o.ENV_ENUM.android]={vs:"2.6.0"},i)),e.go$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.preload$=void 0;var o=n(0),a="ui.nav.preload";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"2.6.0"},i[o.ENV_ENUM.android]={vs:"2.6.0"},i)),e.preload$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.recycle$=void 0;var o=n(0),a="ui.nav.recycle";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"2.6.0"},i[o.ENV_ENUM.android]={vs:"2.6.0"},i)),e.recycle$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.setColors$=void 0;var o=n(0),a="ui.progressBar.setColors";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"2.4.0"},i[o.ENV_ENUM.android]={vs:"2.4.0"},i)),e.setColors$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.disable$=void 0;var o=n(0),a="ui.pullToRefresh.disable";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"2.4.0"},i[o.ENV_ENUM.android]={vs:"2.4.0"},i)),e.disable$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(s,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.enable$=void 0;var o=n(0),a=n(6),s="ui.pullToRefresh.enable";o.ddSdk.setAPI(s,(i={},i[o.ENV_ENUM.ios]={vs:"2.4.0",paramsDeal:a.addWatchParamsDeal},i[o.ENV_ENUM.android]={vs:"2.4.0",paramsDeal:a.addWatchParamsDeal},i)),e.enable$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.stop$=void 0;var o=n(0),a="ui.pullToRefresh.stop";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"2.4.0"},i[o.ENV_ENUM.android]={vs:"2.4.0"},i)),e.stop$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.disable$=void 0;var o=n(0),a="ui.webViewBounce.disable";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"2.4.0"},i[o.ENV_ENUM.android]={vs:"2.4.0"},i)),e.disable$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.enable$=void 0;var o=n(0),a="ui.webViewBounce.enable";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"2.4.0"},i[o.ENV_ENUM.android]={vs:"2.4.0"},i)),e.enable$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.getItem$=void 0;var o=n(0),a="util.domainStorage.getItem";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"2.9.0"},i[o.ENV_ENUM.android]={vs:"2.9.0"},i[o.ENV_ENUM.pc]={vs:"4.6.29"},i)),e.getItem$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.removeItem$=void 0;var o=n(0),a="util.domainStorage.removeItem";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"2.9.0"},i[o.ENV_ENUM.android]={vs:"2.9.0"},i[o.ENV_ENUM.pc]={vs:"4.6.29"},i)),e.removeItem$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.setItem$=void 0;var o=n(0),a="util.domainStorage.setItem";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"2.9.0"},i[o.ENV_ENUM.android]={vs:"2.9.0"},i[o.ENV_ENUM.pc]={vs:"4.6.9"},i)),e.setItem$=r,e.default=r},function(t,e,n){"use strict";function r(t){return o.ddSdk.invokeAPI(a,t)}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.getData$=void 0;var o=n(0),a="util.openTemporary.getData";o.ddSdk.setAPI(a,(i={},i[o.ENV_ENUM.ios]={vs:"6.3.15"},i[o.ENV_ENUM.android]={vs:"6.3.15"},i)),e.getData$=r,e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.h5AndroidbridgeInit=void 0;var r,i=function(){return r||(r=new Promise(function(t,e){var n=function(){try{window.WebViewJavascriptBridgeAndroid=window.nuva&&window.nuva.require(),t({})}catch(t){e(t)}};window.nuva&&(void 0===window.nuva.isReady||window.nuva.isReady)?n():(document.addEventListener("runtimeready",function(){n()},!1),document.addEventListener("runtimefailed",function(t){var n=t&&t.detail||{errorCode:"2",errorMessage:"unknown nuvajs bootstrap error"};e(n)},!1))})),r};e.h5AndroidbridgeInit=i;var o=function(t,n){return r||(r=(0,e.h5AndroidbridgeInit)()),r.then(function(){return new Promise(function(e,r){var i=t.split("."),o=i.pop()||"",a=i.join("."),s=function(t){"function"==typeof n.onSuccess&&n.onSuccess(t),e(t)},u=function(t){"function"==typeof n.onFail&&n.onFail(t),r(t)};"function"==typeof window.WebViewJavascriptBridgeAndroid&&window.WebViewJavascriptBridgeAndroid(s,u,a,o,n)})})};e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.h5IosBridgeInit=void 0;var r,i=function(){return r||(r=new Promise(function(t,e){if("undefined"!=typeof WebViewJavascriptBridge){try{WebViewJavascriptBridge.init(function(t,e){})}catch(t){return e()}return t({})}document.addEventListener("WebViewJavascriptBridgeReady",function(){if("undefined"==typeof WebViewJavascriptBridge)return e();try{WebViewJavascriptBridge.init(function(t,e){})}catch(t){return e()}return t({})},!1)})),r};e.h5IosBridgeInit=i;var o=function(t,n){return r||(r=(0,e.h5IosBridgeInit)()),r.then(function(){var e=Object.assign({},n);return new Promise(function(n,r){if(!0===e.watch){var i=e.onSuccess;delete e.onSuccess,"undefined"!=typeof WebViewJavascriptBridge&&WebViewJavascriptBridge.registerHandler(t,function(t,e){"function"==typeof i&&i.call(null,t),e&&e({errorCode:"0",errorMessage:"success"})})}void 0!==window.WebViewJavascriptBridge&&window.WebViewJavascriptBridge.callHandler(t,Object.assign({},e),function(t){var i=t||{};"0"===i.errorCode?("function"==typeof e.onSuccess&&e.onSuccess.call(null,i.result),n(i.result)):("-1"===i.errorCode&&"function"==typeof e.onCancel?e.onCancel.call(null,i,i.errorCode):"function"==typeof e.onFail&&e.onFail.call(null,i,i.errorCode),r(i))})})})};e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.h5PcBridgeInit=void 0;var r=function(){return Promise.resolve(n(107))};e.h5PcBridgeInit=r;var i=function(t,e){return new Promise(function(r,i){return n(107).invokeAPI(t,e).result.then(function(t){return"function"==typeof e.onSuccess&&e.onSuccess.call(null,t),r(t)},function(t){return"function"==typeof e.onFail&&e.onFail.call(null,t),i(t)})})};e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.off=e.on=void 0;var r=function(t,e){n(107).addEventListener(t,e)};e.on=r;var i=function(t,e){n(107).removeEventListener(t,e)};e.off=i},function(t,e,n){"use strict";function r(t){return t="00"+t,t.substring(t.length-2,t.length)}var i=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.log=void 0;var o=function(t){console.log.apply(console,i(["".concat(r(t.time.getHours()),":").concat(r(t.time.getMinutes()),":").concat(r(t.time.getSeconds()))],t.text,!1))};e.log=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.version=e.language=e.compareVersion=e.other=e.pc=e.android=e.ios=void 0;var r=n(65),i=(0,r.getENV)();e.ios=i.platform===r.ENV_ENUM.ios,e.android=i.platform===r.ENV_ENUM.android,e.pc=i.platform===r.ENV_ENUM.pc,e.other=i.platform===r.ENV_ENUM.notInDingTalk;var o=function(t,e,n){function r(t){return parseInt(t,10)||0}if("string"!=typeof t||"string"!=typeof e)return!1;for(var i,o,a=t.split("-")[0].split(".").map(r),s=e.split("-")[0].split(".").map(r);i===o&&s.length>0;)i=a.shift(),o=s.shift();return n?(o||0)>=(i||0):(o||0)>(i||0)};e.compareVersion=o,e.language=i.language,e.version=i.version},function(t,e,n){"use strict";function r(t,e,n){var r="Web"===n.platform,o="iOS"===n.platform,a="android"===n.platform,s=a||o,u=function(){return r?window.navigator.userAgent.toLowerCase():""}(),l=function(){var t={};if(r){var e=window.name;try{var n=JSON.parse(e);t.containerId=n.containerId,t.version=n.hostVersion,t.language=n.language||"*"}catch(t){}}return t}(),c=function(){return s?"DingTalk"===n.appName||"com.alibaba.android.rimet"===n.appName:u.indexOf("dingtalk")>-1||!!l.containerId}(),f=function(){if(r){if(l.version)return l.version;var t=u.match(/aliapp\(\w+\/([a-zA-Z0-9.-]+)\)/);return null===t&&(t=u.match(/dingtalk\/([a-zA-Z0-9.-]+)/)),t&&t[1]||"Unknown"}return n.appVersion}(),d=!!l.containerId,h=/iphone|ipod|ios/.test(u),p=/ipad/.test(u),g=u.indexOf("android")>-1,m=u.indexOf("mac")>-1&&d,v=u.indexOf("win")>-1&&d,y=!m&&!v&&d,b=d,_="";return _=c?h||o?i.PLATFORM.IOS:g||a?i.PLATFORM.ANDROID:p?i.PLATFORM.IPAD:m?i.PLATFORM.MAC:v?i.PLATFORM.WINDOWS:y?i.PLATFORM.BROWSER:i.PLATFORM.UNKNOWN:i.PLATFORM.UNKNOWN,{isDingTalk:c,isWebiOS:h,isWebAndroid:g,isWeexiOS:o,isWeexAndroid:a,isDingTalkPCMac:m,isDingTalkPCWeb:y,isDingTalkPCWindows:v,isDingTalkPC:b,runtime:t,framework:e,platform:_,version:f,isWeex:s}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(240);e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(825),i=n(823),o=n(240),a=(0,r.default)().split("."),s=a[0],u=a[1],l=function(){var t={};switch(u){case o.FRAMEWORK.VUE:var e=weex.config,n=e.env;t.platform=n.platform,o.RUNTIME.WEEX===s&&(t.appVersion=n.appVersion,t.appName=n.appName);break;case o.FRAMEWORK.RAX:o.RUNTIME.WEEX===s&&(t.platform=navigator.platform,t.appName=navigator.appName,t.appVersion=navigator.appVersion);break;case o.FRAMEWORK.UNKNOWN:o.RUNTIME.WEB===s&&(t.platform=o.RUNTIME.WEB),o.RUNTIME.UNKNOWN===s&&(t.platform=o.RUNTIME.UNKNOWN)}return t}(),c=(0,i.default)(s,u,l);e.default=c},function(t,e,n){"use strict";function r(t,e){for(var n=t.length,r=0,i=!0;r<n;r++)try{if(!(t[r]in e)){i=!1;break}}catch(t){i=!1;break}return i}function i(){return o&&a?r(c,weex)?"Web.Vue":"Web.Unknown":!o&&a?r(c,weex)?"Weex.Vue":"Weex.Unknown":o&&s&&!a?r(u,window)?"Weex.Rax":"Weex.Unknown":o&&r(l,window)?"Web.Unknown":"Unknown.Unknown"}Object.defineProperty(e,"__esModule",{value:!0});var o="undefined"!=typeof window,a="undefined"!=typeof weex,s="undefined"!=typeof callNative,u=["__weex_config__","__weex_options__","__weex_require__"],l=["localStorage","location","navigator","XMLHttpRequest"],c=["config","requireModule","document"];e.default=i},function(t,e,n){"function"!=typeof Promise&&n(924)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),n(826),n(828),n(829)},function(t,e){"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(t,e){"use strict";if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(t),r=1;r<arguments.length;r++){var i=arguments[r];if(null!=i)for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}return n},writable:!0,configurable:!0})},function(t,e){Object.keys||(Object.keys=function(t){if(t!==Object(t))throw new TypeError("Object.keys called on a non-object");var e,n=[];for(e in t)Object.prototype.hasOwnProperty.call(t,e)&&n.push(e);return n})},function(t,e,n){"use strict";function r(t){return"function"==typeof t}function i(t,e){function n(t){return parseInt(t,10)||0}for(var r=t.split(".").map(n),i=e.split(".").map(n),o=0;o<r.length;o++){if(void 0===i[o])return!1;if(r[o]<i[o])return!1;if(r[o]>i[o])return!0}return!0}Object.defineProperty(e,"__esModule",{value:!0}),e.LogLevel=e.APP_TYPE=e.ENV_ENUM_SUB=e.ENV_ENUM=e.ERROR_CODE=e.compareVersion=e.isFunction=void 0,e.isFunction=r,e.compareVersion=i;!function(t){t.cancel="-1",t.not_exist="1",t.no_permission="7",t.jsapi_internal_error="22"}(e.ERROR_CODE||(e.ERROR_CODE={}));!function(t){t.pc="pc",t.android="android",t.ios="ios",t.notInDingTalk="notInDingTalk"}(e.ENV_ENUM||(e.ENV_ENUM={}));!function(t){t.mac="mac",t.win="win",t.noSub="noSub"}(e.ENV_ENUM_SUB||(e.ENV_ENUM_SUB={}));!function(t){t.WEB="WEB",t.MINI_APP="MINI_APP",t.WEEX="WEEX",t.WEBVIEW_IN_MINIAPP="WEBVIEW_IN_MINIAPP",t.WEEX_WIDGET="WEEX_WIDGET"}(e.APP_TYPE||(e.APP_TYPE={}));!function(t){t[t.INFO=1]="INFO",t[t.WARNING=2]="WARNING",t[t.ERROR=3]="ERROR"}(e.LogLevel||(e.LogLevel={}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),n(832),n(241),n(242)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(65),o=n(819),a=n(157),s=n(76),u=n(820);r.ddSdk.setPlatform({platform:i.ENV_ENUM.pc,bridgeInit:function(){switch((0,i.getENV)().appType){case s.APP_TYPE.MINI_APP:return Promise.resolve(a.default);default:return(0,o.h5PcBridgeInit)().then(function(){return o.default})}},authMethod:"config",authParamsDeal:function(t){var e=Object.assign({},t);return e.url=window.location.href.split("#")[0],e},event:{on:function(t,e){if((0,i.getENV)().appType===s.APP_TYPE.WEB)return(0,u.on)(t,e)},off:function(t,e){if((0,i.getENV)().appType===s.APP_TYPE.WEB)return(0,u.off)(t,e)}}})},function(t,e,n){"use strict";function r(t){var e;return(0,i._invoke)("biz.util.callComponent",{componentType:"h5",params:{url:"/im/cool-app-component.html?corpId=".concat(encodeURIComponent(null===(e=null===t||void 0===t?void 0:t.context)||void 0===e?void 0:e.corpId),"#/add-members?params=").concat(encodeURIComponent(JSON.stringify(t))),target:"float",title:"提示",wnId:"addMembers",panelHeight:"percent83"}})}Object.defineProperty(e,"__esModule",{value:!0}),e.addMembers=void 0,n(64);var i=n(75);e.addMembers=r},function(t,e,n){"use strict";function r(t){var e=Object.assign({},t,{isBatchApi:!0});return(0,i._invoke)("biz.util.callComponent",{componentType:"h5",params:{url:"/resource-picker/".concat(o.isMobile?"mob":"index",".html?scene=addCoolAppToGroup&params=").concat(encodeURIComponent(JSON.stringify(e))),target:o.isMobile?"":"float",title:"选择会话添加应用",wnId:"addCoolAppToGroup",panelHeight:"percent90"}})}Object.defineProperty(e,"__esModule",{value:!0}),e.batchInstallCoolApp=void 0,n(64);var i=n(75),o=n(243);e.batchInstallCoolApp=r},function(t,e,n){"use strict";function r(t){var e;return(0,i._invoke)("biz.util.callComponent",{componentType:"h5",params:{url:"/im/cool-app-component.html?corpId=".concat(encodeURIComponent(null===(e=null===t||void 0===t?void 0:t.context)||void 0===e?void 0:e.corpId),"#/create-group?params=").concat(encodeURIComponent(JSON.stringify(t))),target:"float",title:"提示",wnId:"createGroup",panelHeight:"percent83"}})}Object.defineProperty(e,"__esModule",{value:!0}),e.createGroup=void 0,n(64);var i=n(75);e.createGroup=r},function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),i(n(837),e),i(n(838),e),i(n(835),e),i(n(833),e),i(n(839),e),i(n(834),e)},function(t,e,n){"use strict";function r(t){return(0,i._invoke)("biz.util.callComponent",{componentType:"h5",params:{url:"/resource-picker/".concat(o.isMobile?"mob":"index",".html?scene=addCoolAppToGroup&params=").concat(encodeURIComponent(JSON.stringify(t))),target:o.isMobile?"":"float",title:"选择群添加应用",wnId:"addCoolAppToGroup",panelHeight:"percent90"}})}Object.defineProperty(e,"__esModule",{value:!0}),e.installCoolAppToGroup=void 0,n(64);var i=n(75),o=n(243);e.installCoolAppToGroup=r},function(t,e,n){"use strict";function r(t){var e,n=JSON.stringify(t).length;return(0,i._invoke)("biz.util.callComponent",{componentType:"h5",params:{url:"/im/cool-app-component.html?corpId=".concat(encodeURIComponent(null===(e=null===t||void 0===t?void 0:t.context)||void 0===e?void 0:e.corpId),"#/send-message?params=").concat(encodeURIComponent(JSON.stringify({body:t,bodyLengthList:[n]}))),target:"float",title:"提示",wnId:"sendMessageToGroup",panelHeight:"percent83"}})}Object.defineProperty(e,"__esModule",{value:!0}),e.sendMessageToGroup=void 0,n(64);var i=n(75);e.sendMessageToGroup=r},function(t,e,n){"use strict";function r(t){var e,n=JSON.stringify(t).length;return(0,i._invoke)("biz.util.callComponent",{componentType:"h5",params:{url:"/im/cool-app-component.html?corpId=".concat(encodeURIComponent(null===(e=null===t||void 0===t?void 0:t.context)||void 0===e?void 0:e.corpId),"#/send-message-to-single-chat?params=").concat(encodeURIComponent(JSON.stringify({body:t,bodyLengthList:[n]}))),target:"float",title:"提示",wnId:"sendMessageToSingleChat",panelHeight:"percent83"}})}Object.defineProperty(e,"__esModule",{value:!0}),e.sendMessageToSingleChat=void 0,n(64);var i=n(75);e.sendMessageToSingleChat=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.coolAppSdk=void 0;var r=n(836);e.coolAppSdk=r},function(t,e){t.exports=function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var i in t)e.d(r,i,function(e){return t[e]}.bind(null,i));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/dist/",e(e.s=97)}({0:function(t,e,n){"use strict";function r(t,e,n,r,i,o,a,s){var u="function"==typeof t?t.options:t;e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o);var l;if(a?(l=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(t,e){return l.call(e),c(t,e)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,l):[l]}return{exports:t,options:u}}n.d(e,"a",function(){return r})},97:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"el-button-group"},[t._t("default")],2)},i=[];r._withStripped=!0;var o={name:"ElButtonGroup"},a=o,s=n(0),u=Object(s.a)(a,r,i,!1,null,null,null);u.options.__file="packages/button/src/button-group.vue";var l=u.exports;l.install=function(t){t.component(l.name,l)};e.default=l}})},function(t,e){t.exports=function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var i in t)e.d(r,i,function(e){return t[e]}.bind(null,i));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/dist/",e(e.s=96)}({0:function(t,e,n){"use strict";function r(t,e,n,r,i,o,a,s){var u="function"==typeof t?t.options:t;e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o);var l;if(a?(l=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(t,e){return l.call(e),c(t,e)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,l):[l]}return{exports:t,options:u}}n.d(e,"a",function(){return r})},96:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("button",{staticClass:"el-button",class:[t.type?"el-button--"+t.type:"",t.buttonSize?"el-button--"+t.buttonSize:"",{"is-disabled":t.buttonDisabled,"is-loading":t.loading,"is-plain":t.plain,"is-round":t.round,"is-circle":t.circle}],attrs:{disabled:t.buttonDisabled||t.loading,autofocus:t.autofocus,type:t.nativeType},on:{click:t.handleClick}},[t.loading?n("i",{staticClass:"el-icon-loading"}):t._e(),t.icon&&!t.loading?n("i",{class:t.icon}):t._e(),t.$slots.default?n("span",[t._t("default")],2):t._e()])},i=[];r._withStripped=!0;var o={name:"ElButton",inject:{elForm:{default:""},elFormItem:{default:""}},props:{type:{type:String,default:"default"},size:String,icon:{type:String,default:""},nativeType:{type:String,default:"button"},loading:Boolean,disabled:Boolean,plain:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},buttonSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},buttonDisabled:function(){return this.$options.propsData.hasOwnProperty("disabled")?this.disabled:(this.elForm||{}).disabled}},methods:{handleClick:function(t){this.$emit("click",t)}}},a=o,s=n(0),u=Object(s.a)(a,r,i,!1,null,null,null);u.options.__file="packages/button/src/button.vue";var l=u.exports;l.install=function(t){t.component(l.name,l)};e.default=l}})},function(t,e,n){t.exports=function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var i in t)e.d(r,i,function(e){return t[e]}.bind(null,i));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/dist/",e(e.s=61)}({0:function(t,e,n){"use strict";function r(t,e,n,r,i,o,a,s){var u="function"==typeof t?t.options:t;e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o);var l;if(a?(l=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(t,e){return l.call(e),c(t,e)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,l):[l]}return{exports:t,options:u}}n.d(e,"a",function(){return r})},15:function(t,e){t.exports=n(163)},18:function(t,e){t.exports=n(244)},21:function(t,e){t.exports=n(109)},26:function(t,e){t.exports=n(180)},3:function(t,e){t.exports=n(36)},31:function(t,e){t.exports=n(166)},41:function(t,e){t.exports=n(164)},52:function(t,e){t.exports=n(246)},6:function(t,e){t.exports=n(162)},61:function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n.r(e);var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:["el-cascader-panel",t.border&&"is-bordered"],on:{keydown:t.handleKeyDown}},t._l(t.menus,function(t,e){return n("cascader-menu",{key:e,ref:"menu",refInFor:!0,attrs:{index:e,nodes:t}})}),1)},a=[];o._withStripped=!0;var s=n(26),u=n.n(s),l=n(15),c=n.n(l),f=n(18),d=n.n(f),h=n(52),p=n.n(h),g=n(3),m=function(t){return t.stopPropagation()},v={inject:["panel"],components:{ElCheckbox:d.a,ElRadio:p.a},props:{node:{required:!0},nodeId:String},computed:{config:function(){return this.panel.config},isLeaf:function(){return this.node.isLeaf},isDisabled:function(){return this.node.isDisabled},checkedValue:function(){return this.panel.checkedValue},isChecked:function(){return this.node.isSameNode(this.checkedValue)},inActivePath:function(){return this.isInPath(this.panel.activePath)},inCheckedPath:function(){var t=this;return!!this.config.checkStrictly&&this.panel.checkedNodePaths.some(function(e){return t.isInPath(e)})},value:function(){return this.node.getValueByOption()}},methods:{handleExpand:function(){var t=this,e=this.panel,n=this.node,r=this.isDisabled,i=this.config,o=i.multiple;!i.checkStrictly&&r||n.loading||(i.lazy&&!n.loaded?e.lazyLoad(n,function(){var e=t.isLeaf;if(e||t.handleExpand(),o){var r=!!e&&n.checked;t.handleMultiCheckChange(r)}}):e.handleExpand(n))},handleCheckChange:function(){var t=this.panel,e=this.value,n=this.node;t.handleCheckChange(e),t.handleExpand(n)},handleMultiCheckChange:function(t){this.node.doCheck(t),this.panel.calculateMultiCheckedValue()},isInPath:function(t){var e=this.node;return(t[e.level-1]||{}).uid===e.uid},renderPrefix:function(t){var e=this.isLeaf,n=this.isChecked,r=this.config,i=r.checkStrictly;return r.multiple?this.renderCheckbox(t):i?this.renderRadio(t):e&&n?this.renderCheckIcon(t):null},renderPostfix:function(t){var e=this.node,n=this.isLeaf;return e.loading?this.renderLoadingIcon(t):n?null:this.renderExpandIcon(t)},renderCheckbox:function(t){var e=this.node,n=this.config,r=this.isDisabled,i={on:{change:this.handleMultiCheckChange},nativeOn:{}};return n.checkStrictly&&(i.nativeOn.click=m),t("el-checkbox",u()([{attrs:{value:e.checked,indeterminate:e.indeterminate,disabled:r}},i]))},renderRadio:function(t){var e=this.checkedValue,n=this.value,r=this.isDisabled;return Object(g.isEqual)(n,e)&&(n=e),t("el-radio",{attrs:{value:e,label:n,disabled:r},on:{change:this.handleCheckChange},nativeOn:{click:m}},[t("span")])},renderCheckIcon:function(t){return t("i",{class:"el-icon-check el-cascader-node__prefix"})},renderLoadingIcon:function(t){return t("i",{class:"el-icon-loading el-cascader-node__postfix"})},renderExpandIcon:function(t){return t("i",{class:"el-icon-arrow-right el-cascader-node__postfix"})},renderContent:function(t){var e=this.panel,n=this.node,r=e.renderLabelFn;return t("span",{class:"el-cascader-node__label"},[(r?r({node:n,data:n.data}):null)||n.label])}},render:function(t){var e=this,n=this.inActivePath,r=this.inCheckedPath,i=this.isChecked,o=this.isLeaf,a=this.isDisabled,s=this.config,l=this.nodeId,c=s.expandTrigger,f=s.checkStrictly,d=s.multiple,h=!f&&a,p={on:{}};return"click"===c?p.on.click=this.handleExpand:(p.on.mouseenter=function(t){e.handleExpand(),e.$emit("expand",t)},p.on.focus=function(t){e.handleExpand(),e.$emit("expand",t)}),!o||a||f||d||(p.on.click=this.handleCheckChange),t("li",u()([{attrs:{role:"menuitem",id:l,"aria-expanded":n,tabindex:h?null:-1},class:{"el-cascader-node":!0,"is-selectable":f,"in-active-path":n,"in-checked-path":r,"is-active":i,"is-disabled":h}},p]),[this.renderPrefix(t),this.renderContent(t),this.renderPostfix(t)])}},y=v,b=n(0),_=Object(b.a)(y,void 0,void 0,!1,null,null,null);_.options.__file="packages/cascader-panel/src/cascader-node.vue";var w=_.exports,x=n(6),k=n.n(x),S={name:"ElCascaderMenu",mixins:[k.a],inject:["panel"],components:{ElScrollbar:c.a,CascaderNode:w},props:{nodes:{type:Array,required:!0},index:Number},data:function(){return{activeNode:null,hoverTimer:null,id:Object(g.generateId)()}},computed:{isEmpty:function(){return!this.nodes.length},menuId:function(){return"cascader-menu-"+this.id+"-"+this.index}},methods:{handleExpand:function(t){this.activeNode=t.target},handleMouseMove:function(t){var e=this.activeNode,n=this.hoverTimer,r=this.$refs.hoverZone;if(e&&r)if(e.contains(t.target)){clearTimeout(n);var i=this.$el.getBoundingClientRect(),o=i.left,a=t.clientX-o,s=this.$el,u=s.offsetWidth,l=s.offsetHeight,c=e.offsetTop,f=c+e.offsetHeight;r.innerHTML='\n <path style="pointer-events: auto;" fill="transparent" d="M'+a+" "+c+" L"+u+" 0 V"+c+' Z" />\n <path style="pointer-events: auto;" fill="transparent" d="M'+a+" "+f+" L"+u+" "+l+" V"+f+' Z" />\n '}else n||(this.hoverTimer=setTimeout(this.clearHoverZone,this.panel.config.hoverThreshold))},clearHoverZone:function(){var t=this.$refs.hoverZone;t&&(t.innerHTML="")},renderEmptyText:function(t){return t("div",{class:"el-cascader-menu__empty-text"},[this.t("el.cascader.noData")])},renderNodeList:function(t){var e=this.menuId,n=this.panel.isHoverMenu,r={on:{}};return n&&(r.on.expand=this.handleExpand),[].concat(this.nodes.map(function(n,i){var o=n.hasChildren;return t("cascader-node",u()([{key:n.uid,attrs:{node:n,"node-id":e+"-"+i,"aria-haspopup":o,"aria-owns":o?e:null}},r]))}),[n?t("svg",{ref:"hoverZone",class:"el-cascader-menu__hover-zone"}):null])}},render:function(t){var e=this.isEmpty,n=this.menuId,r={nativeOn:{}};return this.panel.isHoverMenu&&(r.nativeOn.mousemove=this.handleMouseMove),t("el-scrollbar",u()([{attrs:{tag:"ul",role:"menu",id:n,"wrap-class":"el-cascader-menu__wrap","view-class":{"el-cascader-menu__list":!0,"is-empty":e}},class:"el-cascader-menu"},r]),[e?this.renderEmptyText(t):this.renderNodeList(t)])}},C=S,E=Object(b.a)(C,void 0,void 0,!1,null,null,null);E.options.__file="packages/cascader-panel/src/cascader-menu.vue";var T=E.exports,A=n(21),O=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),P=0,N=function(){function t(e,n,i){r(this,t),this.data=e,this.config=n,this.parent=i||null,this.level=this.parent?this.parent.level+1:1,this.uid=P++,this.initState(),this.initChildren()}return t.prototype.initState=function(){var t=this.config,e=t.value,n=t.label;this.value=this.data[e],this.label=this.data[n],this.pathNodes=this.calculatePathNodes(),this.path=this.pathNodes.map(function(t){return t.value}),this.pathLabels=this.pathNodes.map(function(t){return t.label}),this.loading=!1,this.loaded=!1},t.prototype.initChildren=function(){var e=this,n=this.config,r=n.children,i=this.data[r];this.hasChildren=Array.isArray(i),this.children=(i||[]).map(function(r){return new t(r,n,e)})},t.prototype.calculatePathNodes=function(){for(var t=[this],e=this.parent;e;)t.unshift(e),e=e.parent;return t},t.prototype.getPath=function(){return this.path},t.prototype.getValue=function(){return this.value},t.prototype.getValueByOption=function(){return this.config.emitPath?this.getPath():this.getValue()},t.prototype.getText=function(t,e){return t?this.pathLabels.join(e):this.label},t.prototype.isSameNode=function(t){var e=this.getValueByOption();return this.config.multiple&&Array.isArray(t)?t.some(function(t){return Object(g.isEqual)(t,e)}):Object(g.isEqual)(t,e)},t.prototype.broadcast=function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var i="onParent"+Object(g.capitalize)(t);this.children.forEach(function(e){e&&(e.broadcast.apply(e,[t].concat(n)),e[i]&&e[i].apply(e,n))})},t.prototype.emit=function(t){var e=this.parent,n="onChild"+Object(g.capitalize)(t);if(e){for(var r=arguments.length,i=Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];e[n]&&e[n].apply(e,i),e.emit.apply(e,[t].concat(i))}},t.prototype.onParentCheck=function(t){this.isDisabled||this.setCheckState(t)},t.prototype.onChildCheck=function(){var t=this.children,e=t.filter(function(t){return!t.isDisabled}),n=!!e.length&&e.every(function(t){return t.checked});this.setCheckState(n)},t.prototype.setCheckState=function(t){var e=this.children.length,n=this.children.reduce(function(t,e){return t+(e.checked?1:e.indeterminate?.5:0)},0);this.checked=t,this.indeterminate=n!==e&&n>0},t.prototype.syncCheckState=function(t){var e=this.getValueByOption(),n=this.isSameNode(t,e);this.doCheck(n)},t.prototype.doCheck=function(t){this.checked!==t&&(this.config.checkStrictly?this.checked=t:(this.broadcast("check",t),this.setCheckState(t),this.emit("check")))},O(t,[{key:"isDisabled",get:function(){var t=this.data,e=this.parent,n=this.config,r=n.disabled,i=n.checkStrictly;return t[r]||!i&&e&&e.isDisabled}},{key:"isLeaf",get:function(){var t=this.data,e=this.loaded,n=this.hasChildren,r=this.children,i=this.config,o=i.lazy,a=i.leaf;if(o){var s=Object(A.isDef)(t[a])?t[a]:!!e&&!r.length;return this.hasChildren=!s,s}return!n}}]),t}(),D=N,M=function t(e,n){return e.reduce(function(e,r){return r.isLeaf?e.push(r):(!n&&e.push(r),e=e.concat(t(r.children,n))),e},[])},I=function(){function t(e,n){i(this,t),this.config=n,this.initNodes(e)}return t.prototype.initNodes=function(t){var e=this;t=Object(g.coerceTruthyValueToArray)(t),this.nodes=t.map(function(t){return new D(t,e.config)}),this.flattedNodes=this.getFlattedNodes(!1,!1),this.leafNodes=this.getFlattedNodes(!0,!1)},t.prototype.appendNode=function(t,e){var n=new D(t,this.config,e);(e?e.children:this.nodes).push(n)},t.prototype.appendNodes=function(t,e){var n=this;t=Object(g.coerceTruthyValueToArray)(t),t.forEach(function(t){return n.appendNode(t,e)})},t.prototype.getNodes=function(){return this.nodes},t.prototype.getFlattedNodes=function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=t?this.leafNodes:this.flattedNodes;return e?n:M(this.nodes,t)},t.prototype.getNodeByValue=function(t){var e=this.getFlattedNodes(!1,!this.config.lazy).filter(function(e){return Object(g.valueEquals)(e.path,t)||e.value===t});return e&&e.length?e[0]:null},t}(),R=I,$=n(9),L=n.n($),j=n(41),F=n.n(j),B=n(31),V=n.n(B),z=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},U=F.a.keys,H={expandTrigger:"click",multiple:!1,checkStrictly:!1,emitPath:!0,lazy:!1,lazyLoad:g.noop,value:"value",label:"label",children:"children",leaf:"leaf",disabled:"disabled",hoverThreshold:500},q=function(t){return!t.getAttribute("aria-owns")},W=function(t,e){var n=t.parentNode;if(n){var r=n.querySelectorAll('.el-cascader-node[tabindex="-1"]');return r[Array.prototype.indexOf.call(r,t)+e]||null}return null},G=function(t,e){if(t){var n=t.id.split("-");return Number(n[n.length-2])}},Y=function(t){t&&(t.focus(),!q(t)&&t.click())},K=function(t){if(t){var e=t.querySelector("input");e?e.click():q(t)&&t.click()}},X={name:"ElCascaderPanel",components:{CascaderMenu:T},props:{value:{},options:Array,props:Object,border:{type:Boolean,default:!0},renderLabel:Function},provide:function(){return{panel:this}},data:function(){return{checkedValue:null,checkedNodePaths:[],store:[],menus:[],activePath:[],loadCount:0}},computed:{config:function(){return L()(z({},H),this.props||{})},multiple:function(){return this.config.multiple},checkStrictly:function(){return this.config.checkStrictly},leafOnly:function(){return!this.checkStrictly},isHoverMenu:function(){return"hover"===this.config.expandTrigger},renderLabelFn:function(){return this.renderLabel||this.$scopedSlots.default}},watch:{value:function(){this.syncCheckedValue(),this.checkStrictly&&this.calculateCheckedNodePaths()},options:{handler:function(){this.initStore()},immediate:!0,deep:!0},checkedValue:function(t){Object(g.isEqual)(t,this.value)||(this.checkStrictly&&this.calculateCheckedNodePaths(),this.$emit("input",t),this.$emit("change",t))}},mounted:function(){this.isEmptyValue(this.value)||this.syncCheckedValue()},methods:{initStore:function(){var t=this.config,e=this.options;t.lazy&&Object(g.isEmpty)(e)?this.lazyLoad():(this.store=new R(e,t),this.menus=[this.store.getNodes()],this.syncMenuState())},syncCheckedValue:function(){var t=this.value,e=this.checkedValue;Object(g.isEqual)(t,e)||(this.activePath=[],this.checkedValue=t,this.syncMenuState())},syncMenuState:function(){var t=this.multiple,e=this.checkStrictly;this.syncActivePath(),t&&this.syncMultiCheckState(),e&&this.calculateCheckedNodePaths(),this.$nextTick(this.scrollIntoView)},syncMultiCheckState:function(){var t=this;this.getFlattedNodes(this.leafOnly).forEach(function(e){e.syncCheckState(t.checkedValue)})},isEmptyValue:function(t){var e=this.multiple,n=this.config,r=n.emitPath;return!(!e&&!r)&&Object(g.isEmpty)(t)},syncActivePath:function(){var t=this,e=this.store,n=this.multiple,r=this.activePath,i=this.checkedValue;if(Object(g.isEmpty)(r))if(this.isEmptyValue(i))this.activePath=[],this.menus=[e.getNodes()];else{var o=n?i[0]:i,a=this.getNodeByValue(o)||{},s=(a.pathNodes||[]).slice(0,-1);this.expandNodes(s)}else{var u=r.map(function(e){return t.getNodeByValue(e.getValue())});this.expandNodes(u)}},expandNodes:function(t){var e=this;t.forEach(function(t){return e.handleExpand(t,!0)})},calculateCheckedNodePaths:function(){var t=this,e=this.checkedValue,n=this.multiple,r=n?Object(g.coerceTruthyValueToArray)(e):[e];this.checkedNodePaths=r.map(function(e){var n=t.getNodeByValue(e);return n?n.pathNodes:[]})},handleKeyDown:function(t){var e=t.target;switch(t.keyCode){case U.up:var n=W(e,-1);Y(n);break;case U.down:var r=W(e,1);Y(r);break;case U.left:var i=this.$refs.menu[G(e)-1];if(i){var o=i.$el.querySelector('.el-cascader-node[aria-expanded="true"]');Y(o)}break;case U.right:var a=this.$refs.menu[G(e)+1];if(a){var s=a.$el.querySelector('.el-cascader-node[tabindex="-1"]');Y(s)}break;case U.enter:K(e);break;case U.esc:case U.tab:this.$emit("close");break;default:return}},handleExpand:function(t,e){var n=this.activePath,r=t.level,i=n.slice(0,r-1),o=this.menus.slice(0,r);if(t.isLeaf||(i.push(t),o.push(t.children)),this.activePath=i,this.menus=o,!e){var a=i.map(function(t){return t.getValue()}),s=n.map(function(t){return t.getValue()});Object(g.valueEquals)(a,s)||(this.$emit("active-item-change",a),this.$emit("expand-change",a))}},handleCheckChange:function(t){this.checkedValue=t},lazyLoad:function(t,e){var n=this,r=this.config;t||(t=t||{root:!0,level:0},this.store=new R([],r),this.menus=[this.store.getNodes()]),t.loading=!0;var i=function(r){var i=t.root?null:t;if(r&&r.length&&n.store.appendNodes(r,i),t.loading=!1,t.loaded=!0,Array.isArray(n.checkedValue)){var o=n.checkedValue[n.loadCount++],a=n.config.value,s=n.config.leaf;if(Array.isArray(r)&&r.filter(function(t){return t[a]===o}).length>0){var u=n.store.getNodeByValue(o);u.data[s]||n.lazyLoad(u,function(){n.handleExpand(u)}),n.loadCount===n.checkedValue.length&&n.$parent.computePresentText()}}e&&e(r)};r.lazyLoad(t,i)},calculateMultiCheckedValue:function(){this.checkedValue=this.getCheckedNodes(this.leafOnly).map(function(t){return t.getValueByOption()})},scrollIntoView:function(){if(!this.$isServer){(this.$refs.menu||[]).forEach(function(t){var e=t.$el;if(e){var n=e.querySelector(".el-scrollbar__wrap"),r=e.querySelector(".el-cascader-node.is-active")||e.querySelector(".el-cascader-node.in-active-path");V()(n,r)}})}},getNodeByValue:function(t){return this.store.getNodeByValue(t)},getFlattedNodes:function(t){var e=!this.config.lazy;return this.store.getFlattedNodes(t,e)},getCheckedNodes:function(t){var e=this.checkedValue;if(this.multiple)return this.getFlattedNodes(t).filter(function(t){return t.checked});return this.isEmptyValue(e)?[]:[this.getNodeByValue(e)]},clearCheckedNodes:function(){var t=this.config,e=this.leafOnly,n=t.multiple,r=t.emitPath;n?(this.getCheckedNodes(e).filter(function(t){return!t.isDisabled}).forEach(function(t){return t.doCheck(!1)}),this.calculateMultiCheckedValue()):this.checkedValue=r?[]:null}}},J=X,Q=Object(b.a)(J,o,a,!1,null,null,null);Q.options.__file="packages/cascader-panel/src/cascader-panel.vue";var Z=Q.exports;Z.install=function(t){t.component(Z.name,Z)};e.default=Z},9:function(t,e){t.exports=n(108)}})},function(t,e,n){t.exports=function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var i in t)e.d(r,i,function(e){return t[e]}.bind(null,i));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/dist/",e(e.s=93)}({0:function(t,e,n){"use strict";function r(t,e,n,r,i,o,a,s){var u="function"==typeof t?t.options:t;e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o);var l;if(a?(l=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(t,e){return l.call(e),c(t,e)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,l):[l]}return{exports:t,options:u}}n.d(e,"a",function(){return r})},4:function(t,e){t.exports=n(66)},93:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"el-checkbox-group",attrs:{role:"group","aria-label":"checkbox-group"}},[t._t("default")],2)},i=[];r._withStripped=!0;var o=n(4),a=n.n(o),s={name:"ElCheckboxGroup",componentName:"ElCheckboxGroup",mixins:[a.a],inject:{elFormItem:{default:""}},props:{value:{},disabled:Boolean,min:Number,max:Number,size:String,fill:String,textColor:String},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},checkboxGroupSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size}},watch:{value:function(t){this.dispatch("ElFormItem","el.form.change",[t])}}},u=s,l=n(0),c=Object(l.a)(u,r,i,!1,null,null,null);c.options.__file="packages/checkbox/src/checkbox-group.vue";var f=c.exports;f.install=function(t){t.component(f.name,f)};e.default=f}})},function(t,e,n){t.exports=function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var i in t)e.d(r,i,function(e){return t[e]}.bind(null,i));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/dist/",e(e.s=46)}([function(t,e){t.exports=n(856)},function(t,e){t.exports=n(46)},function(t,e){t.exports=n(36)},function(t,e){t.exports=n(66)},function(t,e){t.exports=n(162)},function(t,e){t.exports=n(110)},function(t,e){t.exports=n(14)},function(t,e){t.exports=n(108)},function(t,e){t.exports=n(159)},function(t,e){t.exports=n(245)},function(t,e){t.exports=n(249)},function(t,e){t.exports=n(251)},function(t,e){t.exports=n(160)},function(t,e){t.exports=n(842)},function(t,e){t.exports=n(244)},function(t,e){t.exports=n(165)},function(t,e){t.exports=n(252)},function(t,e){t.exports=n(111)},function(t,e){t.exports=n(163)},function(t,e){t.exports=n(109)},function(t,e){t.exports=n(250)},function(t,e){t.exports=n(248)},function(t,e){t.exports=n(860)},function(t,e){t.exports=n(161)},function(t,e){t.exports=n(180)},function(t,e){t.exports=n(171)},function(t,e){t.exports=n(853)},function(t,e){t.exports=n(166)},function(t,e){t.exports=n(857)},function(t,e){t.exports=n(841)},function(t,e){t.exports=n(247)},function(t,e){t.exports=n(167)},function(t,e){t.exports=n(844)},function(t,e){t.exports=n(854)},function(t,e){t.exports=n(851)},function(t,e){t.exports=n(164)},function(t,e){t.exports=n(257)},function(t,e){t.exports=n(852)},function(t,e){t.exports=n(849)},function(t,e){t.exports=n(916)},function(t,e){t.exports=n(855)},function(t,e){t.exports=n(265)},function(t,e){t.exports=n(846)},function(t,e){t.exports=n(843)},function(t,e){t.exports=n(246)},function(t,e){t.exports=n(850)},function(t,e,n){t.exports=n(47)},function(t,e,n){"use strict";function r(t,e,n,r,i,o,a,s){var u="function"==typeof t?t.options:t;e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o);var l;if(a?(l=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(t,e){return l.call(e),c(t,e)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,l):[l]}return{exports:t,options:u}}function i(t){var e=window.getComputedStyle(t),n=e.getPropertyValue("box-sizing"),r=parseFloat(e.getPropertyValue("padding-bottom"))+parseFloat(e.getPropertyValue("padding-top")),i=parseFloat(e.getPropertyValue("border-bottom-width"))+parseFloat(e.getPropertyValue("border-top-width"));return{contextStyle:Ve.map(function(t){return t+":"+e.getPropertyValue(t)}).join(";"),paddingSize:r,borderSize:i,boxSizing:n}}function o(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;Fe||(Fe=document.createElement("textarea"),document.body.appendChild(Fe));var r=i(t),o=r.paddingSize,a=r.borderSize,s=r.boxSizing,u=r.contextStyle;Fe.setAttribute("style",u+";"+Be),Fe.value=t.value||t.placeholder||"";var l=Fe.scrollHeight,c={};"border-box"===s?l+=a:"content-box"===s&&(l-=o),Fe.value="";var f=Fe.scrollHeight-o;if(null!==e){var d=f*e;"border-box"===s&&(d=d+o+a),l=Math.max(d,l),c.minHeight=d+"px"}if(null!==n){var h=f*n;"border-box"===s&&(h=h+o+a),l=Math.min(h,l)}return c.height=l+"px",Fe.parentNode&&Fe.parentNode.removeChild(Fe),Fe=null,c}function a(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function s(t,e){var n={},r=void 0;for(r in t)n[r]=t[r];for(r in e)if(a(e,r)){var i=e[r];void 0!==i&&(n[r]=i)}return n}function u(t){return void 0!==t&&(t=parseInt(t,10),isNaN(t)&&(t=null)),t}function l(t){return void 0!==t&&(t=u(t),isNaN(t)&&(t=80)),t}function c(t){return"number"==typeof t?t:"string"==typeof t?/^\d+(?:px)?$/.test(t)?parseInt(t,10):t:null}function f(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return 0===e.length?function(t){return t}:1===e.length?e[0]:e.reduce(function(t,e){return function(){return t(e.apply(void 0,arguments))}})}function d(t,e,n){var r=!1,i=t.indexOf(e),o=-1!==i,a=function(){t.push(e),r=!0},s=function(){t.splice(i,1),r=!0};return"boolean"==typeof n?n&&!o?a():!n&&o&&s():o?s():a(),r}function h(t,e){function n(t,a,s){e(t,a,s),a.forEach(function(t){if(t[i])return void e(t,null,s+1);var a=t[r];o(a)||n(t,a,s+1)})}var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"children",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"hasChildren",o=function(t){return!(Array.isArray(t)&&t.length)};t.forEach(function(t){if(t[i])return void e(t,null,0);var a=t[r];o(a)||n(t,a,0)})}function p(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t)throw new Error("Table is required.");var n=new Si;return n.table=t,n.toggleAllSelection=lt()(10,n._toggleAllSelection),Object.keys(e).forEach(function(t){n.states[t]=e[t]}),n}function g(t){var e={};return Object.keys(t).forEach(function(n){var r=t[n],i=void 0;"string"==typeof r?i=function(){return this.store.states[r]}:"function"==typeof r?i=function(){return r.call(this,this.store.states)}:console.error("invalid value type"),i&&(e[n]=i)}),e}function m(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function v(t,e){var n=e.row,r=e.column,i=e.$index,o=r.property,a=o&&Object(H.getPropByPath)(n,o).v;return r&&r.formatter?r.formatter(n,r,a,i):a}function y(t,e){var n=e.row,r=e.treeNode,i=e.store;if(!r)return null;var o=[],a=function(t){t.stopPropagation(),i.loadOrToggle(n)};if(r.indent&&o.push(t("span",{class:"el-table__indent",style:{"padding-left":r.indent+"px"}})),"boolean"!=typeof r.expanded||r.noLazyChildren)o.push(t("span",{class:"el-table__placeholder"}));else{var s=["el-table__expand-icon",r.expanded?"el-table__expand-icon--expanded":""],u=["el-icon-arrow-right"];r.loading&&(u=["el-icon-loading"]),o.push(t("div",{class:s,on:{click:a}},[t("i",{class:u})]))}return o}function b(){}function _(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function w(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function x(t,e,n){var r=void 0;r=n.response?""+(n.response.error||n.response):n.responseText?""+n.responseText:"fail to post "+t+" "+n.status;var i=new Error(r);return i.status=n.status,i.method="post",i.url=t,i}function k(t){var e=t.responseText||t.response;if(!e)return e;try{return JSON.parse(e)}catch(t){return e}}function S(t){if("undefined"!=typeof XMLHttpRequest){var e=new XMLHttpRequest,n=t.action;e.upload&&(e.upload.onprogress=function(e){e.total>0&&(e.percent=e.loaded/e.total*100),t.onProgress(e)});var r=new FormData;t.data&&Object.keys(t.data).forEach(function(e){r.append(e,t.data[e])}),r.append(t.filename,t.file,t.file.name),e.onerror=function(e){t.onError(e)},e.onload=function(){if(e.status<200||e.status>=300)return t.onError(x(n,t,e));t.onSuccess(k(e))},e.open("post",n,!0),t.withCredentials&&"withCredentials"in e&&(e.withCredentials=!0);var i=t.headers||{};for(var o in i)i.hasOwnProperty(o)&&null!==i[o]&&e.setRequestHeader(o,i[o]);return e.send(r),e}}function C(){}function E(t){var e=t.move,n=t.size,r=t.bar,i={},o="translate"+r.axis+"("+e+"%)";return i[r.size]=n,i.transform=o,i.msTransform=o,i.webkitTransform=o,i}function T(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function A(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function O(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n.r(e);var P=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("ul",{staticClass:"el-pager",on:{click:t.onPagerClick}},[t.pageCount>0?n("li",{staticClass:"number",class:{active:1===t.currentPage,disabled:t.disabled}},[t._v("1")]):t._e(),t.showPrevMore?n("li",{staticClass:"el-icon more btn-quickprev",class:[t.quickprevIconClass,{disabled:t.disabled}],on:{mouseenter:function(e){t.onMouseenter("left")},mouseleave:function(e){t.quickprevIconClass="el-icon-more"}}}):t._e(),t._l(t.pagers,function(e){return n("li",{key:e,staticClass:"number",class:{active:t.currentPage===e,disabled:t.disabled}},[t._v(t._s(e))])}),t.showNextMore?n("li",{staticClass:"el-icon more btn-quicknext",class:[t.quicknextIconClass,{disabled:t.disabled}],on:{mouseenter:function(e){t.onMouseenter("right")},mouseleave:function(e){t.quicknextIconClass="el-icon-more"}}}):t._e(),t.pageCount>1?n("li",{staticClass:"number",class:{active:t.currentPage===t.pageCount,disabled:t.disabled}},[t._v(t._s(t.pageCount))]):t._e()],2)},N=[];P._withStripped=!0;var D={name:"ElPager",props:{currentPage:Number,pageCount:Number,pagerCount:Number,disabled:Boolean},watch:{showPrevMore:function(t){t||(this.quickprevIconClass="el-icon-more")},showNextMore:function(t){t||(this.quicknextIconClass="el-icon-more")}},methods:{onPagerClick:function(t){var e=t.target;if("UL"!==e.tagName&&!this.disabled){var n=Number(t.target.textContent),r=this.pageCount,i=this.currentPage,o=this.pagerCount-2;-1!==e.className.indexOf("more")&&(-1!==e.className.indexOf("quickprev")?n=i-o:-1!==e.className.indexOf("quicknext")&&(n=i+o)),isNaN(n)||(n<1&&(n=1),n>r&&(n=r)),n!==i&&this.$emit("change",n)}},onMouseenter:function(t){this.disabled||("left"===t?this.quickprevIconClass="el-icon-d-arrow-left":this.quicknextIconClass="el-icon-d-arrow-right")}},computed:{pagers:function(){var t=this.pagerCount,e=(t-1)/2,n=Number(this.currentPage),r=Number(this.pageCount),i=!1,o=!1;r>t&&(n>t-e&&(i=!0),n<r-e&&(o=!0));var a=[];if(i&&!o)for(var s=r-(t-2),u=s;u<r;u++)a.push(u);else if(!i&&o)for(var l=2;l<t;l++)a.push(l);else if(i&&o)for(var c=Math.floor(t/2)-1,f=n-c;f<=n+c;f++)a.push(f);else for(var d=2;d<r;d++)a.push(d);return this.showPrevMore=i,this.showNextMore=o,a}},data:function(){return{current:null,showPrevMore:!1,showNextMore:!1,quicknextIconClass:"el-icon-more",quickprevIconClass:"el-icon-more"}}},M=D,I=r(M,P,N,!1,null,null,null);I.options.__file="packages/pagination/src/pager.vue";var R=I.exports,$=n(37),L=n.n($),j=n(38),F=n.n(j),B=n(8),V=n.n(B),z=n(4),U=n.n(z),H=n(2),q={name:"ElPagination",props:{pageSize:{type:Number,default:10},small:Boolean,total:Number,pageCount:Number,pagerCount:{type:Number,validator:function(t){return(0|t)===t&&t>4&&t<22&&t%2==1},default:7},currentPage:{type:Number,default:1},layout:{default:"prev, pager, next, jumper, ->, total"},pageSizes:{type:Array,default:function(){return[10,20,30,40,50,100]}},popperClass:String,prevText:String,nextText:String,background:Boolean,disabled:Boolean,hideOnSinglePage:Boolean},data:function(){return{internalCurrentPage:1,internalPageSize:0,lastEmittedPage:-1,userChangePageSize:!1}},render:function(t){var e=this.layout;if(!e)return null;if(this.hideOnSinglePage&&(!this.internalPageCount||1===this.internalPageCount))return null;var n=t("div",{class:["el-pagination",{"is-background":this.background,"el-pagination--small":this.small}]}),r={prev:t("prev"),jumper:t("jumper"),pager:t("pager",{attrs:{currentPage:this.internalCurrentPage,pageCount:this.internalPageCount,pagerCount:this.pagerCount,disabled:this.disabled},on:{change:this.handleCurrentChange}}),next:t("next"),sizes:t("sizes",{attrs:{pageSizes:this.pageSizes}}),slot:t("slot",[this.$slots.default?this.$slots.default:""]),total:t("total")},i=e.split(",").map(function(t){return t.trim()}),o=t("div",{class:"el-pagination__rightwrapper"}),a=!1;return n.children=n.children||[],o.children=o.children||[],i.forEach(function(t){if("->"===t)return void(a=!0);a?o.children.push(r[t]):n.children.push(r[t])}),a&&n.children.unshift(o),n},components:{Prev:{render:function(t){return t("button",{attrs:{type:"button",disabled:this.$parent.disabled||this.$parent.internalCurrentPage<=1},class:"btn-prev",on:{click:this.$parent.prev}},[this.$parent.prevText?t("span",[this.$parent.prevText]):t("i",{class:"el-icon el-icon-arrow-left"})])}},Next:{render:function(t){return t("button",{attrs:{type:"button",disabled:this.$parent.disabled||this.$parent.internalCurrentPage===this.$parent.internalPageCount||0===this.$parent.internalPageCount},class:"btn-next",on:{click:this.$parent.next}},[this.$parent.nextText?t("span",[this.$parent.nextText]):t("i",{class:"el-icon el-icon-arrow-right"})])}},Sizes:{mixins:[U.a],props:{pageSizes:Array},watch:{pageSizes:{immediate:!0,handler:function(t,e){Object(H.valueEquals)(t,e)||Array.isArray(t)&&(this.$parent.internalPageSize=t.indexOf(this.$parent.pageSize)>-1?this.$parent.pageSize:this.pageSizes[0])}}},render:function(t){var e=this;return t("span",{class:"el-pagination__sizes"},[t("el-select",{attrs:{value:this.$parent.internalPageSize,popperClass:this.$parent.popperClass||"",size:"mini",disabled:this.$parent.disabled},on:{input:this.handleChange}},[this.pageSizes.map(function(n){return t("el-option",{attrs:{value:n,label:n+e.t("el.pagination.pagesize")}})})])])},components:{ElSelect:L.a,ElOption:F.a},methods:{handleChange:function(t){t!==this.$parent.internalPageSize&&(this.$parent.internalPageSize=t=parseInt(t,10),this.$parent.userChangePageSize=!0,this.$parent.$emit("update:pageSize",t),this.$parent.$emit("size-change",t))}}},Jumper:{mixins:[U.a],components:{ElInput:V.a},data:function(){return{userInput:null}},watch:{"$parent.internalCurrentPage":function(){this.userInput=null}},methods:{handleKeyup:function(t){var e=t.keyCode,n=t.target;13===e&&this.handleChange(n.value)},handleInput:function(t){this.userInput=t},handleChange:function(t){this.$parent.internalCurrentPage=this.$parent.getValidCurrentPage(t),this.$parent.emitChange(),this.userInput=null}},render:function(t){return t("span",{class:"el-pagination__jump"},[this.t("el.pagination.goto"),t("el-input",{class:"el-pagination__editor is-in-pagination",attrs:{min:1,max:this.$parent.internalPageCount,value:null!==this.userInput?this.userInput:this.$parent.internalCurrentPage,type:"number",disabled:this.$parent.disabled},nativeOn:{keyup:this.handleKeyup},on:{input:this.handleInput,change:this.handleChange}}),this.t("el.pagination.pageClassifier")])}},Total:{mixins:[U.a],render:function(t){return"number"==typeof this.$parent.total?t("span",{class:"el-pagination__total"},[this.t("el.pagination.total",{total:this.$parent.total})]):""}},Pager:R},methods:{handleCurrentChange:function(t){this.internalCurrentPage=this.getValidCurrentPage(t),this.userChangePageSize=!0,this.emitChange()},prev:function(){if(!this.disabled){var t=this.internalCurrentPage-1;this.internalCurrentPage=this.getValidCurrentPage(t),this.$emit("prev-click",this.internalCurrentPage),this.emitChange()}},next:function(){if(!this.disabled){var t=this.internalCurrentPage+1;this.internalCurrentPage=this.getValidCurrentPage(t),this.$emit("next-click",this.internalCurrentPage),this.emitChange()}},getValidCurrentPage:function(t){t=parseInt(t,10);var e="number"==typeof this.internalPageCount,n=void 0;return e?t<1?n=1:t>this.internalPageCount&&(n=this.internalPageCount):(isNaN(t)||t<1)&&(n=1),void 0===n&&isNaN(t)?n=1:0===n&&(n=1),void 0===n?t:n},emitChange:function(){var t=this;this.$nextTick(function(){(t.internalCurrentPage!==t.lastEmittedPage||t.userChangePageSize)&&(t.$emit("current-change",t.internalCurrentPage),t.lastEmittedPage=t.internalCurrentPage,t.userChangePageSize=!1)})}},computed:{internalPageCount:function(){return"number"==typeof this.total?Math.max(1,Math.ceil(this.total/this.internalPageSize)):"number"==typeof this.pageCount?Math.max(1,this.pageCount):null}},watch:{currentPage:{immediate:!0,handler:function(t){this.internalCurrentPage=this.getValidCurrentPage(t)}},pageSize:{immediate:!0,handler:function(t){this.internalPageSize=isNaN(t)?10:t}},internalCurrentPage:{immediate:!0,handler:function(t){this.$emit("update:currentPage",t),this.lastEmittedPage=-1}},internalPageCount:function(t){var e=this.internalCurrentPage;t>0&&0===e?this.internalCurrentPage=1:e>t&&(this.internalCurrentPage=0===t?1:t,this.userChangePageSize&&this.emitChange()),this.userChangePageSize=!1}}};q.install=function(t){t.component(q.name,q)};var W=q,G=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"dialog-fade"},on:{"after-enter":t.afterEnter,"after-leave":t.afterLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"el-dialog__wrapper",on:{click:function(e){return e.target!==e.currentTarget?null:t.handleWrapperClick(e)}}},[n("div",{key:t.key,ref:"dialog",class:["el-dialog",{"is-fullscreen":t.fullscreen,"el-dialog--center":t.center},t.customClass],style:t.style,attrs:{role:"dialog","aria-modal":"true","aria-label":t.title||"dialog"}},[n("div",{staticClass:"el-dialog__header"},[t._t("title",[n("span",{staticClass:"el-dialog__title"},[t._v(t._s(t.title))])]),t.showClose?n("button",{staticClass:"el-dialog__headerbtn",attrs:{type:"button","aria-label":"Close"},on:{click:t.handleClose}},[n("i",{staticClass:"el-dialog__close el-icon el-icon-close"})]):t._e()],2),t.rendered?n("div",{staticClass:"el-dialog__body"},[t._t("default")],2):t._e(),t.$slots.footer?n("div",{staticClass:"el-dialog__footer"},[t._t("footer")],2):t._e()])])])},Y=[];G._withStripped=!0;var K=n(11),X=n.n(K),J=n(9),Q=n.n(J),Z=n(3),tt=n.n(Z),et={name:"ElDialog",mixins:[X.a,tt.a,Q.a],props:{title:{type:String,default:""},modal:{type:Boolean,default:!0},modalAppendToBody:{type:Boolean,default:!0},appendToBody:{type:Boolean,default:!1},lockScroll:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},width:String,fullscreen:Boolean,customClass:{type:String,default:""},top:{type:String,default:"15vh"},beforeClose:Function,center:{type:Boolean,default:!1},destroyOnClose:Boolean},data:function(){return{closed:!1,key:0}},watch:{visible:function(t){var e=this;t?(this.closed=!1,this.$emit("open"),this.$el.addEventListener("scroll",this.updatePopper),this.$nextTick(function(){e.$refs.dialog.scrollTop=0}),this.appendToBody&&document.body.appendChild(this.$el)):(this.$el.removeEventListener("scroll",this.updatePopper),this.closed||this.$emit("close"),this.destroyOnClose&&this.$nextTick(function(){e.key++}))}},computed:{style:function(){var t={};return this.fullscreen||(t.marginTop=this.top,this.width&&(t.width=this.width)),t}},methods:{getMigratingConfig:function(){return{props:{size:"size is removed."}}},handleWrapperClick:function(){this.closeOnClickModal&&this.handleClose()},handleClose:function(){"function"==typeof this.beforeClose?this.beforeClose(this.hide):this.hide()},hide:function(t){!1!==t&&(this.$emit("update:visible",!1),this.$emit("close"),this.closed=!0)},updatePopper:function(){this.broadcast("ElSelectDropdown","updatePopper"),this.broadcast("ElDropdownMenu","updatePopper")},afterEnter:function(){this.$emit("opened")},afterLeave:function(){this.$emit("closed")}},mounted:function(){this.visible&&(this.rendered=!0,this.open(),this.appendToBody&&document.body.appendChild(this.$el))},destroyed:function(){this.appendToBody&&this.$el&&this.$el.parentNode&&this.$el.parentNode.removeChild(this.$el)}},nt=et,rt=r(nt,G,Y,!1,null,null,null);rt.options.__file="packages/dialog/src/component.vue";var it=rt.exports;it.install=function(t){t.component(it.name,it)};var ot=it,at=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:t.close,expression:"close"}],staticClass:"el-autocomplete",attrs:{"aria-haspopup":"listbox",role:"combobox","aria-expanded":t.suggestionVisible,"aria-owns":t.id}},[n("el-input",t._b({ref:"input",on:{input:t.handleInput,change:t.handleChange,focus:t.handleFocus,blur:t.handleBlur,clear:t.handleClear},nativeOn:{keydown:[function(e){if(!("button"in e)&&t._k(e.keyCode,"up",38,e.key,["Up","ArrowUp"]))return null;e.preventDefault(),t.highlight(t.highlightedIndex-1)},function(e){if(!("button"in e)&&t._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"]))return null;e.preventDefault(),t.highlight(t.highlightedIndex+1)},function(e){return"button"in e||!t._k(e.keyCode,"enter",13,e.key,"Enter")?t.handleKeyEnter(e):null},function(e){return"button"in e||!t._k(e.keyCode,"tab",9,e.key,"Tab")?t.close(e):null}]}},"el-input",[t.$props,t.$attrs],!1),[t.$slots.prepend?n("template",{slot:"prepend"},[t._t("prepend")],2):t._e(),t.$slots.append?n("template",{slot:"append"},[t._t("append")],2):t._e(),t.$slots.prefix?n("template",{slot:"prefix"},[t._t("prefix")],2):t._e(),t.$slots.suffix?n("template",{slot:"suffix"},[t._t("suffix")],2):t._e()],2),n("el-autocomplete-suggestions",{ref:"suggestions",class:[t.popperClass?t.popperClass:""],attrs:{"visible-arrow":"","popper-options":t.popperOptions,"append-to-body":t.popperAppendToBody,placement:t.placement,id:t.id}},t._l(t.suggestions,function(e,r){return n("li",{key:r,class:{highlighted:t.highlightedIndex===r},attrs:{id:t.id+"-item-"+r,role:"option","aria-selected":t.highlightedIndex===r},on:{click:function(n){t.select(e)}}},[t._t("default",[t._v("\n "+t._s(e[t.valueKey])+"\n ")],{item:e})],2)}),0)],1)},st=[];at._withStripped=!0;var ut=n(17),lt=n.n(ut),ct=n(10),ft=n.n(ct),dt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":t.doDestroy}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.showPopper,expression:"showPopper"}],staticClass:"el-autocomplete-suggestion el-popper",class:{"is-loading":!t.parent.hideLoading&&t.parent.loading},style:{width:t.dropdownWidth},attrs:{role:"region"}},[n("el-scrollbar",{attrs:{tag:"ul","wrap-class":"el-autocomplete-suggestion__wrap","view-class":"el-autocomplete-suggestion__list"}},[!t.parent.hideLoading&&t.parent.loading?n("li",[n("i",{staticClass:"el-icon-loading"})]):t._t("default")],2)],1)])},ht=[];dt._withStripped=!0;var pt=n(5),gt=n.n(pt),mt=n(18),vt=n.n(mt),yt={components:{ElScrollbar:vt.a},mixins:[gt.a,tt.a],componentName:"ElAutocompleteSuggestions",data:function(){return{parent:this.$parent,dropdownWidth:""}},props:{options:{default:function(){return{gpuAcceleration:!1}}},id:String},methods:{select:function(t){this.dispatch("ElAutocomplete","item-click",t)}},updated:function(){var t=this;this.$nextTick(function(e){t.popperJS&&t.updatePopper()})},mounted:function(){this.$parent.popperElm=this.popperElm=this.$el,this.referenceElm=this.$parent.$refs.input.$refs.input||this.$parent.$refs.input.$refs.textarea,this.referenceList=this.$el.querySelector(".el-autocomplete-suggestion__list"),this.referenceList.setAttribute("role","listbox"),this.referenceList.setAttribute("id",this.id)},created:function(){var t=this;this.$on("visible",function(e,n){t.dropdownWidth=n+"px",t.showPopper=e})}},bt=yt,_t=r(bt,dt,ht,!1,null,null,null);_t.options.__file="packages/autocomplete/src/autocomplete-suggestions.vue";var wt=_t.exports,xt=n(23),kt=n.n(xt),St={name:"ElAutocomplete",mixins:[tt.a,kt()("input"),Q.a],inheritAttrs:!1,componentName:"ElAutocomplete",components:{ElInput:V.a,ElAutocompleteSuggestions:wt},directives:{Clickoutside:ft.a},props:{valueKey:{type:String,default:"value"},popperClass:String,popperOptions:Object,placeholder:String,clearable:{type:Boolean,default:!1},disabled:Boolean,name:String,size:String,value:String,maxlength:Number,minlength:Number,autofocus:Boolean,fetchSuggestions:Function,triggerOnFocus:{type:Boolean,default:!0},customItem:String,selectWhenUnmatched:{type:Boolean,default:!1},prefixIcon:String,suffixIcon:String,label:String,debounce:{type:Number,default:300},placement:{type:String,default:"bottom-start"},hideLoading:Boolean,popperAppendToBody:{type:Boolean,default:!0},highlightFirstItem:{type:Boolean,default:!1}},data:function(){return{activated:!1,suggestions:[],loading:!1,highlightedIndex:-1,suggestionDisabled:!1}},computed:{suggestionVisible:function(){var t=this.suggestions;return(Array.isArray(t)&&t.length>0||this.loading)&&this.activated},id:function(){return"el-autocomplete-"+Object(H.generateId)()}},watch:{suggestionVisible:function(t){var e=this.getInput();e&&this.broadcast("ElAutocompleteSuggestions","visible",[t,e.offsetWidth])}},methods:{getMigratingConfig:function(){return{props:{"custom-item":"custom-item is removed, use scoped slot instead.",props:"props is removed, use value-key instead."}}},getData:function(t){var e=this;this.suggestionDisabled||(this.loading=!0,this.fetchSuggestions(t,function(t){e.loading=!1,e.suggestionDisabled||(Array.isArray(t)?(e.suggestions=t,e.highlightedIndex=e.highlightFirstItem?0:-1):console.error("[Element Error][Autocomplete]autocomplete suggestions must be an array"))}))},handleInput:function(t){if(this.$emit("input",t),this.suggestionDisabled=!1,!this.triggerOnFocus&&!t)return this.suggestionDisabled=!0,void(this.suggestions=[]);this.debouncedGetData(t)},handleChange:function(t){this.$emit("change",t)},handleFocus:function(t){this.activated=!0,this.$emit("focus",t),this.triggerOnFocus&&this.debouncedGetData(this.value)},handleBlur:function(t){this.$emit("blur",t)},handleClear:function(){this.activated=!1,this.$emit("clear")},close:function(t){this.activated=!1},handleKeyEnter:function(t){var e=this;this.suggestionVisible&&this.highlightedIndex>=0&&this.highlightedIndex<this.suggestions.length?(t.preventDefault(),this.select(this.suggestions[this.highlightedIndex])):this.selectWhenUnmatched&&(this.$emit("select",{value:this.value}),this.$nextTick(function(t){e.suggestions=[],e.highlightedIndex=-1}))},select:function(t){var e=this;this.$emit("input",t[this.valueKey]),this.$emit("select",t),this.$nextTick(function(t){e.suggestions=[],e.highlightedIndex=-1})},highlight:function(t){if(this.suggestionVisible&&!this.loading){if(t<0)return void(this.highlightedIndex=-1);t>=this.suggestions.length&&(t=this.suggestions.length-1);var e=this.$refs.suggestions.$el.querySelector(".el-autocomplete-suggestion__wrap"),n=e.querySelectorAll(".el-autocomplete-suggestion__list li"),r=n[t],i=e.scrollTop,o=r.offsetTop;o+r.scrollHeight>i+e.clientHeight&&(e.scrollTop+=r.scrollHeight),o<i&&(e.scrollTop-=r.scrollHeight),this.highlightedIndex=t;this.getInput().setAttribute("aria-activedescendant",this.id+"-item-"+this.highlightedIndex)}},getInput:function(){return this.$refs.input.getInput()}},mounted:function(){var t=this;this.debouncedGetData=lt()(this.debounce,this.getData),this.$on("item-click",function(e){t.select(e)});var e=this.getInput();e.setAttribute("role","textbox"),e.setAttribute("aria-autocomplete","list"),e.setAttribute("aria-controls","id"),e.setAttribute("aria-activedescendant",this.id+"-item-"+this.highlightedIndex)},beforeDestroy:function(){this.$refs.suggestions.$destroy()}},Ct=St,Et=r(Ct,at,st,!1,null,null,null);Et.options.__file="packages/autocomplete/src/autocomplete.vue";var Tt=Et.exports;Tt.install=function(t){t.component(Tt.name,Tt)};var At=Tt,Ot=n(13),Pt=n.n(Ot),Nt=n(29),Dt=n.n(Nt),Mt={name:"ElDropdown",componentName:"ElDropdown",mixins:[tt.a,Q.a],directives:{Clickoutside:ft.a},components:{ElButton:Pt.a,ElButtonGroup:Dt.a},provide:function(){return{dropdown:this}},props:{trigger:{type:String,default:"hover"},type:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},placement:{type:String,default:"bottom-end"},visibleArrow:{default:!0},showTimeout:{type:Number,default:250},hideTimeout:{type:Number,default:150},tabindex:{type:Number,default:0},disabled:{type:Boolean,default:!1}},data:function(){return{timeout:null,visible:!1,triggerElm:null,menuItems:null,menuItemsArray:null,dropdownElm:null,focusing:!1,listId:"dropdown-menu-"+Object(H.generateId)()}},computed:{dropdownSize:function(){return this.size||(this.$ELEMENT||{}).size}},mounted:function(){this.$on("menu-item-click",this.handleMenuItemClick)},watch:{visible:function(t){this.broadcast("ElDropdownMenu","visible",t),this.$emit("visible-change",t)},focusing:function(t){var e=this.$el.querySelector(".el-dropdown-selfdefine");e&&(t?e.className+=" focusing":e.className=e.className.replace("focusing",""))}},methods:{getMigratingConfig:function(){return{props:{"menu-align":"menu-align is renamed to placement."}}},show:function(){var t=this;this.disabled||(clearTimeout(this.timeout),this.timeout=setTimeout(function(){t.visible=!0},"click"===this.trigger?0:this.showTimeout))},hide:function(){var t=this;this.disabled||(this.removeTabindex(),this.tabindex>=0&&this.resetTabindex(this.triggerElm),clearTimeout(this.timeout),this.timeout=setTimeout(function(){t.visible=!1},"click"===this.trigger?0:this.hideTimeout))},handleClick:function(){this.disabled||(this.visible?this.hide():this.show())},handleTriggerKeyDown:function(t){var e=t.keyCode;[38,40].indexOf(e)>-1?(this.removeTabindex(),this.resetTabindex(this.menuItems[0]),this.menuItems[0].focus(),t.preventDefault(),t.stopPropagation()):13===e?this.handleClick():[9,27].indexOf(e)>-1&&this.hide()},handleItemKeyDown:function(t){var e=t.keyCode,n=t.target,r=this.menuItemsArray.indexOf(n),i=this.menuItemsArray.length-1,o=void 0;[38,40].indexOf(e)>-1?(o=38===e?0!==r?r-1:0:r<i?r+1:i,this.removeTabindex(),this.resetTabindex(this.menuItems[o]),this.menuItems[o].focus(),t.preventDefault(),t.stopPropagation()):13===e?(this.triggerElmFocus(),n.click(),this.hideOnClick&&(this.visible=!1)):[9,27].indexOf(e)>-1&&(this.hide(),this.triggerElmFocus())},resetTabindex:function(t){this.removeTabindex(),t.setAttribute("tabindex","0")},removeTabindex:function(){this.triggerElm.setAttribute("tabindex","-1"),this.menuItemsArray.forEach(function(t){t.setAttribute("tabindex","-1")})},initAria:function(){this.dropdownElm.setAttribute("id",this.listId),this.triggerElm.setAttribute("aria-haspopup","list"),this.triggerElm.setAttribute("aria-controls",this.listId),this.splitButton||(this.triggerElm.setAttribute("role","button"),this.triggerElm.setAttribute("tabindex",this.tabindex),this.triggerElm.setAttribute("class",(this.triggerElm.getAttribute("class")||"")+" el-dropdown-selfdefine"))},initEvent:function(){var t=this,e=this.trigger,n=this.show,r=this.hide,i=this.handleClick,o=this.splitButton,a=this.handleTriggerKeyDown,s=this.handleItemKeyDown;this.triggerElm=o?this.$refs.trigger.$el:this.$slots.default[0].elm;var u=this.dropdownElm;this.triggerElm.addEventListener("keydown",a),u.addEventListener("keydown",s,!0),o||(this.triggerElm.addEventListener("focus",function(){t.focusing=!0}),this.triggerElm.addEventListener("blur",function(){t.focusing=!1}),this.triggerElm.addEventListener("click",function(){t.focusing=!1})),"hover"===e?(this.triggerElm.addEventListener("mouseenter",n),this.triggerElm.addEventListener("mouseleave",r),u.addEventListener("mouseenter",n),u.addEventListener("mouseleave",r)):"click"===e&&this.triggerElm.addEventListener("click",i)},handleMenuItemClick:function(t,e){this.hideOnClick&&(this.visible=!1),this.$emit("command",t,e)},triggerElmFocus:function(){this.triggerElm.focus&&this.triggerElm.focus()},initDomOperation:function(){this.dropdownElm=this.popperElm,this.menuItems=this.dropdownElm.querySelectorAll("[tabindex='-1']"),this.menuItemsArray=[].slice.call(this.menuItems),this.initEvent(),this.initAria()}},render:function(t){var e=this,n=this.hide,r=this.splitButton,i=this.type,o=this.dropdownSize,a=this.disabled,s=function(t){e.$emit("click",t),n()},u=null;if(r)u=t("el-button-group",[t("el-button",{attrs:{type:i,size:o,disabled:a},nativeOn:{click:s}},[this.$slots.default]),t("el-button",{ref:"trigger",attrs:{type:i,size:o,disabled:a},class:"el-dropdown__caret-button"},[t("i",{class:"el-dropdown__icon el-icon-arrow-down"})])]);else{u=this.$slots.default;var l=u[0].data||{},c=l.attrs,f=void 0===c?{}:c;a&&!f.disabled&&(f.disabled=!0,l.attrs=f)}var d=a?null:this.$slots.dropdown;return t("div",{class:"el-dropdown",directives:[{name:"clickoutside",value:n}],attrs:{"aria-disabled":a}},[u,d])}},It=Mt,Rt=r(It,void 0,void 0,!1,null,null,null);Rt.options.__file="packages/dropdown/src/dropdown.vue";var $t=Rt.exports;$t.install=function(t){t.component($t.name,$t)};var Lt=$t,jt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":t.doDestroy}},[n("ul",{directives:[{name:"show",rawName:"v-show",value:t.showPopper,expression:"showPopper"}],staticClass:"el-dropdown-menu el-popper",class:[t.size&&"el-dropdown-menu--"+t.size]},[t._t("default")],2)])},Ft=[];jt._withStripped=!0;var Bt={name:"ElDropdownMenu",componentName:"ElDropdownMenu",mixins:[gt.a],props:{visibleArrow:{type:Boolean,default:!0},arrowOffset:{type:Number,default:0}},data:function(){return{size:this.dropdown.dropdownSize}},inject:["dropdown"],created:function(){var t=this;this.$on("updatePopper",function(){t.showPopper&&t.updatePopper()}),this.$on("visible",function(e){t.showPopper=e})},mounted:function(){this.dropdown.popperElm=this.popperElm=this.$el,this.referenceElm=this.dropdown.$el,this.dropdown.initDomOperation()},watch:{"dropdown.placement":{immediate:!0,handler:function(t){this.currentPlacement=t}}}},Vt=Bt,zt=r(Vt,jt,Ft,!1,null,null,null);zt.options.__file="packages/dropdown/src/dropdown-menu.vue";var Ut=zt.exports;Ut.install=function(t){t.component(Ut.name,Ut)};var Ht=Ut,qt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("li",{staticClass:"el-dropdown-menu__item",class:{"is-disabled":t.disabled,"el-dropdown-menu__item--divided":t.divided},attrs:{"aria-disabled":t.disabled,tabindex:t.disabled?null:-1},on:{click:t.handleClick}},[t.icon?n("i",{class:t.icon}):t._e(),t._t("default")],2)},Wt=[];qt._withStripped=!0;var Gt={name:"ElDropdownItem",mixins:[tt.a],props:{command:{},disabled:Boolean,divided:Boolean,icon:String},methods:{handleClick:function(t){this.dispatch("ElDropdown","menu-item-click",[this.command,this])}}},Yt=Gt,Kt=r(Yt,qt,Wt,!1,null,null,null);Kt.options.__file="packages/dropdown/src/dropdown-item.vue";var Xt=Kt.exports;Xt.install=function(t){t.component(Xt.name,Xt)};var Jt=Xt,Qt=Qt||{};Qt.Utils=Qt.Utils||{},Qt.Utils.focusFirstDescendant=function(t){for(var e=0;e<t.childNodes.length;e++){var n=t.childNodes[e];if(Qt.Utils.attemptFocus(n)||Qt.Utils.focusFirstDescendant(n))return!0}return!1},Qt.Utils.focusLastDescendant=function(t){for(var e=t.childNodes.length-1;e>=0;e--){var n=t.childNodes[e];if(Qt.Utils.attemptFocus(n)||Qt.Utils.focusLastDescendant(n))return!0}return!1},Qt.Utils.attemptFocus=function(t){if(!Qt.Utils.isFocusable(t))return!1;Qt.Utils.IgnoreUtilFocusChanges=!0;try{t.focus()}catch(t){}return Qt.Utils.IgnoreUtilFocusChanges=!1,document.activeElement===t},Qt.Utils.isFocusable=function(t){if(t.tabIndex>0||0===t.tabIndex&&null!==t.getAttribute("tabIndex"))return!0;if(t.disabled)return!1;switch(t.nodeName){case"A":return!!t.href&&"ignore"!==t.rel;case"INPUT":return"hidden"!==t.type&&"file"!==t.type;case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},Qt.Utils.triggerEvent=function(t,e){var n=void 0;n=/^mouse|click/.test(e)?"MouseEvents":/^key/.test(e)?"KeyboardEvent":"HTMLEvents";for(var r=document.createEvent(n),i=arguments.length,o=Array(i>2?i-2:0),a=2;a<i;a++)o[a-2]=arguments[a];return r.initEvent.apply(r,[e].concat(o)),t.dispatchEvent?t.dispatchEvent(r):t.fireEvent("on"+e,r),t},Qt.Utils.keys={tab:9,enter:13,space:32,left:37,up:38,right:39,down:40,esc:27};var Zt=Qt.Utils,te=function(t,e){this.domNode=e,this.parent=t,this.subMenuItems=[],this.subIndex=0,this.init()};te.prototype.init=function(){this.subMenuItems=this.domNode.querySelectorAll("li"),this.addListeners()},te.prototype.gotoSubIndex=function(t){t===this.subMenuItems.length?t=0:t<0&&(t=this.subMenuItems.length-1),this.subMenuItems[t].focus(),this.subIndex=t},te.prototype.addListeners=function(){var t=this,e=Zt.keys,n=this.parent.domNode;Array.prototype.forEach.call(this.subMenuItems,function(r){r.addEventListener("keydown",function(r){var i=!1;switch(r.keyCode){case e.down:t.gotoSubIndex(t.subIndex+1),i=!0;break;case e.up:t.gotoSubIndex(t.subIndex-1),i=!0;break;case e.tab:Zt.triggerEvent(n,"mouseleave");break;case e.enter:case e.space:i=!0,r.currentTarget.click()}return i&&(r.preventDefault(),r.stopPropagation()),!1})})};var ee=te,ne=function(t){this.domNode=t,this.submenu=null,this.init()};ne.prototype.init=function(){this.domNode.setAttribute("tabindex","0");var t=this.domNode.querySelector(".el-menu");t&&(this.submenu=new ee(this,t)),this.addListeners()},ne.prototype.addListeners=function(){var t=this,e=Zt.keys;this.domNode.addEventListener("keydown",function(n){var r=!1;switch(n.keyCode){case e.down:Zt.triggerEvent(n.currentTarget,"mouseenter"),t.submenu&&t.submenu.gotoSubIndex(0),r=!0;break;case e.up:Zt.triggerEvent(n.currentTarget,"mouseenter"),t.submenu&&t.submenu.gotoSubIndex(t.submenu.subMenuItems.length-1),r=!0;break;case e.tab:Zt.triggerEvent(n.currentTarget,"mouseleave");break;case e.enter:case e.space:r=!0,n.currentTarget.click()}r&&n.preventDefault()})};var re=ne,ie=function(t){this.domNode=t,this.init()};ie.prototype.init=function(){var t=this.domNode.childNodes;[].filter.call(t,function(t){return 1===t.nodeType}).forEach(function(t){new re(t)})};var oe=ie,ae=n(1),se={name:"ElMenu",render:function(t){var e=t("ul",{attrs:{role:"menubar"},key:+this.collapse,style:{backgroundColor:this.backgroundColor||""},class:{"el-menu--horizontal":"horizontal"===this.mode,"el-menu--collapse":this.collapse,"el-menu":!0}},[this.$slots.default]);return this.collapseTransition?t("el-menu-collapse-transition",[e]):e},componentName:"ElMenu",mixins:[tt.a,Q.a],provide:function(){return{rootMenu:this}},components:{"el-menu-collapse-transition":{functional:!0,render:function(t,e){return t("transition",{props:{mode:"out-in"},on:{beforeEnter:function(t){t.style.opacity=.2},enter:function(t){Object(ae.addClass)(t,"el-opacity-transition"),t.style.opacity=1},afterEnter:function(t){Object(ae.removeClass)(t,"el-opacity-transition"),t.style.opacity=""},beforeLeave:function(t){t.dataset||(t.dataset={}),Object(ae.hasClass)(t,"el-menu--collapse")?(Object(ae.removeClass)(t,"el-menu--collapse"),t.dataset.oldOverflow=t.style.overflow,t.dataset.scrollWidth=t.clientWidth,Object(ae.addClass)(t,"el-menu--collapse")):(Object(ae.addClass)(t,"el-menu--collapse"),t.dataset.oldOverflow=t.style.overflow,t.dataset.scrollWidth=t.clientWidth,Object(ae.removeClass)(t,"el-menu--collapse")),t.style.width=t.scrollWidth+"px",t.style.overflow="hidden"},leave:function(t){Object(ae.addClass)(t,"horizontal-collapse-transition"),t.style.width=t.dataset.scrollWidth+"px"}}},e.children)}}},props:{mode:{type:String,default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:Array,uniqueOpened:Boolean,router:Boolean,menuTrigger:{type:String,default:"hover"},collapse:Boolean,backgroundColor:String,textColor:String,activeTextColor:String,collapseTransition:{type:Boolean,default:!0}},data:function(){return{activeIndex:this.defaultActive,openedMenus:this.defaultOpeneds&&!this.collapse?this.defaultOpeneds.slice(0):[],items:{},submenus:{}}},computed:{hoverBackground:function(){return this.backgroundColor?this.mixColor(this.backgroundColor,.2):""},isMenuPopup:function(){return"horizontal"===this.mode||"vertical"===this.mode&&this.collapse}},watch:{defaultActive:function(t){this.items[t]||(this.activeIndex=null),this.updateActiveIndex(t)},defaultOpeneds:function(t){this.collapse||(this.openedMenus=t)},collapse:function(t){t&&(this.openedMenus=[]),this.broadcast("ElSubmenu","toggle-collapse",t)}},methods:{updateActiveIndex:function(t){var e=this.items[t]||this.items[this.activeIndex]||this.items[this.defaultActive];e?(this.activeIndex=e.index,this.initOpenedMenu()):this.activeIndex=null},getMigratingConfig:function(){return{props:{theme:"theme is removed."}}},getColorChannels:function(t){if(t=t.replace("#",""),/^[0-9a-fA-F]{3}$/.test(t)){t=t.split("");for(var e=2;e>=0;e--)t.splice(e,0,t[e]);t=t.join("")}return/^[0-9a-fA-F]{6}$/.test(t)?{red:parseInt(t.slice(0,2),16),green:parseInt(t.slice(2,4),16),blue:parseInt(t.slice(4,6),16)}:{red:255,green:255,blue:255}},mixColor:function(t,e){var n=this.getColorChannels(t),r=n.red,i=n.green,o=n.blue;return e>0?(r*=1-e,i*=1-e,o*=1-e):(r+=(255-r)*e,i+=(255-i)*e,o+=(255-o)*e),"rgb("+Math.round(r)+", "+Math.round(i)+", "+Math.round(o)+")"},addItem:function(t){this.$set(this.items,t.index,t)},removeItem:function(t){delete this.items[t.index]},addSubmenu:function(t){this.$set(this.submenus,t.index,t)},removeSubmenu:function(t){delete this.submenus[t.index]},openMenu:function(t,e){var n=this.openedMenus;-1===n.indexOf(t)&&(this.uniqueOpened&&(this.openedMenus=n.filter(function(t){return-1!==e.indexOf(t)})),this.openedMenus.push(t))},closeMenu:function(t){var e=this.openedMenus.indexOf(t);-1!==e&&this.openedMenus.splice(e,1)},handleSubmenuClick:function(t){var e=t.index,n=t.indexPath;-1!==this.openedMenus.indexOf(e)?(this.closeMenu(e),this.$emit("close",e,n)):(this.openMenu(e,n),this.$emit("open",e,n))},handleItemClick:function(t){var e=this,n=t.index,r=t.indexPath,i=this.activeIndex,o=null!==t.index;o&&(this.activeIndex=t.index),this.$emit("select",n,r,t),("horizontal"===this.mode||this.collapse)&&(this.openedMenus=[]),this.router&&o&&this.routeToItem(t,function(t){if(e.activeIndex=i,t){if("NavigationDuplicated"===t.name)return;console.error(t)}})},initOpenedMenu:function(){var t=this,e=this.activeIndex,n=this.items[e];if(n&&"horizontal"!==this.mode&&!this.collapse){n.indexPath.forEach(function(e){var n=t.submenus[e];n&&t.openMenu(e,n.indexPath)})}},routeToItem:function(t,e){var n=t.route||t.index;try{this.$router.push(n,function(){},e)}catch(t){console.error(t)}},open:function(t){var e=this,n=this.submenus[t.toString()].indexPath;n.forEach(function(t){return e.openMenu(t,n)})},close:function(t){this.closeMenu(t)}},mounted:function(){this.initOpenedMenu(),this.$on("item-click",this.handleItemClick),this.$on("submenu-click",this.handleSubmenuClick),"horizontal"===this.mode&&new oe(this.$el),this.$watch("items",this.updateActiveIndex)}},ue=se,le=r(ue,void 0,void 0,!1,null,null,null);le.options.__file="packages/menu/src/menu.vue";var ce=le.exports;ce.install=function(t){t.component(ce.name,ce)};var fe=ce,de=n(21),he=n.n(de),pe={inject:["rootMenu"],computed:{indexPath:function(){for(var t=[this.index],e=this.$parent;"ElMenu"!==e.$options.componentName;)e.index&&t.unshift(e.index),e=e.$parent;return t},parentMenu:function(){for(var t=this.$parent;t&&-1===["ElMenu","ElSubmenu"].indexOf(t.$options.componentName);)t=t.$parent;return t},paddingStyle:function(){if("vertical"!==this.rootMenu.mode)return{};var t=20,e=this.$parent;if(this.rootMenu.collapse)t=20;else for(;e&&"ElMenu"!==e.$options.componentName;)"ElSubmenu"===e.$options.componentName&&(t+=20),e=e.$parent;return{paddingLeft:t+"px"}}}},ge={props:{transformOrigin:{type:[Boolean,String],default:!1},offset:gt.a.props.offset,boundariesPadding:gt.a.props.boundariesPadding,popperOptions:gt.a.props.popperOptions},data:gt.a.data,methods:gt.a.methods,beforeDestroy:gt.a.beforeDestroy,deactivated:gt.a.deactivated},me={name:"ElSubmenu",componentName:"ElSubmenu",mixins:[pe,tt.a,ge],components:{ElCollapseTransition:he.a},props:{index:{type:String,required:!0},showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300},popperClass:String,disabled:Boolean,popperAppendToBody:{type:Boolean,default:void 0}},data:function(){return{popperJS:null,timeout:null,items:{},submenus:{},mouseInChild:!1}},watch:{opened:function(t){var e=this;this.isMenuPopup&&this.$nextTick(function(t){e.updatePopper()})}},computed:{appendToBody:function(){return void 0===this.popperAppendToBody?this.isFirstLevel:this.popperAppendToBody},menuTransitionName:function(){return this.rootMenu.collapse?"el-zoom-in-left":"el-zoom-in-top"},opened:function(){return this.rootMenu.openedMenus.indexOf(this.index)>-1},active:function(){var t=!1,e=this.submenus,n=this.items;return Object.keys(n).forEach(function(e){n[e].active&&(t=!0)}),Object.keys(e).forEach(function(n){e[n].active&&(t=!0)}),t},hoverBackground:function(){return this.rootMenu.hoverBackground},backgroundColor:function(){return this.rootMenu.backgroundColor||""},activeTextColor:function(){return this.rootMenu.activeTextColor||""},textColor:function(){return this.rootMenu.textColor||""},mode:function(){return this.rootMenu.mode},isMenuPopup:function(){return this.rootMenu.isMenuPopup},titleStyle:function(){return"horizontal"!==this.mode?{color:this.textColor}:{borderBottomColor:this.active?this.rootMenu.activeTextColor?this.activeTextColor:"":"transparent",color:this.active?this.activeTextColor:this.textColor}},isFirstLevel:function(){for(var t=!0,e=this.$parent;e&&e!==this.rootMenu;){if(["ElSubmenu","ElMenuItemGroup"].indexOf(e.$options.componentName)>-1){t=!1;break}e=e.$parent}return t}},methods:{handleCollapseToggle:function(t){t?this.initPopper():this.doDestroy()},addItem:function(t){this.$set(this.items,t.index,t)},removeItem:function(t){delete this.items[t.index]},addSubmenu:function(t){this.$set(this.submenus,t.index,t)},removeSubmenu:function(t){delete this.submenus[t.index]},handleClick:function(){var t=this.rootMenu,e=this.disabled;"hover"===t.menuTrigger&&"horizontal"===t.mode||t.collapse&&"vertical"===t.mode||e||this.dispatch("ElMenu","submenu-click",this)},handleMouseenter:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.showTimeout;if("ActiveXObject"in window||"focus"!==t.type||t.relatedTarget){var r=this.rootMenu,i=this.disabled;"click"===r.menuTrigger&&"horizontal"===r.mode||!r.collapse&&"vertical"===r.mode||i||(this.dispatch("ElSubmenu","mouse-enter-child"),clearTimeout(this.timeout),this.timeout=setTimeout(function(){e.rootMenu.openMenu(e.index,e.indexPath)},n),this.appendToBody&&this.$parent.$el.dispatchEvent(new MouseEvent("mouseenter")))}},handleMouseleave:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=this.rootMenu;"click"===n.menuTrigger&&"horizontal"===n.mode||!n.collapse&&"vertical"===n.mode||(this.dispatch("ElSubmenu","mouse-leave-child"),clearTimeout(this.timeout),this.timeout=setTimeout(function(){!t.mouseInChild&&t.rootMenu.closeMenu(t.index)},this.hideTimeout),this.appendToBody&&e&&"ElSubmenu"===this.$parent.$options.name&&this.$parent.handleMouseleave(!0))},handleTitleMouseenter:function(){if("horizontal"!==this.mode||this.rootMenu.backgroundColor){var t=this.$refs["submenu-title"];t&&(t.style.backgroundColor=this.rootMenu.hoverBackground)}},handleTitleMouseleave:function(){if("horizontal"!==this.mode||this.rootMenu.backgroundColor){var t=this.$refs["submenu-title"];t&&(t.style.backgroundColor=this.rootMenu.backgroundColor||"")}},updatePlacement:function(){this.currentPlacement="horizontal"===this.mode&&this.isFirstLevel?"bottom-start":"right-start"},initPopper:function(){this.referenceElm=this.$el,this.popperElm=this.$refs.menu,this.updatePlacement()}},created:function(){var t=this;this.$on("toggle-collapse",this.handleCollapseToggle),this.$on("mouse-enter-child",function(){t.mouseInChild=!0,clearTimeout(t.timeout)}),this.$on("mouse-leave-child",function(){t.mouseInChild=!1,clearTimeout(t.timeout)})},mounted:function(){this.parentMenu.addSubmenu(this),this.rootMenu.addSubmenu(this),this.initPopper()},beforeDestroy:function(){this.parentMenu.removeSubmenu(this),this.rootMenu.removeSubmenu(this)},render:function(t){var e=this,n=this.active,r=this.opened,i=this.paddingStyle,o=this.titleStyle,a=this.backgroundColor,s=this.rootMenu,u=this.currentPlacement,l=this.menuTransitionName,c=this.mode,f=this.disabled,d=this.popperClass,h=this.$slots,p=this.isFirstLevel,g=t("transition",{attrs:{name:l}},[t("div",{ref:"menu",directives:[{name:"show",value:r}],class:["el-menu--"+c,d],on:{mouseenter:function(t){return e.handleMouseenter(t,100)},mouseleave:function(){return e.handleMouseleave(!0)},focus:function(t){return e.handleMouseenter(t,100)}}},[t("ul",{attrs:{role:"menu"},class:["el-menu el-menu--popup","el-menu--popup-"+u],style:{backgroundColor:s.backgroundColor||""}},[h.default])])]),m=t("el-collapse-transition",[t("ul",{attrs:{role:"menu"},class:"el-menu el-menu--inline",directives:[{name:"show",value:r}],style:{backgroundColor:s.backgroundColor||""}},[h.default])]),v="horizontal"===s.mode&&p||"vertical"===s.mode&&!s.collapse?"el-icon-arrow-down":"el-icon-arrow-right";return t("li",{class:{"el-submenu":!0,"is-active":n,"is-opened":r,"is-disabled":f},attrs:{role:"menuitem","aria-haspopup":"true","aria-expanded":r},on:{mouseenter:this.handleMouseenter,mouseleave:function(){return e.handleMouseleave(!1)},focus:this.handleMouseenter}},[t("div",{class:"el-submenu__title",ref:"submenu-title",on:{click:this.handleClick,mouseenter:this.handleTitleMouseenter,mouseleave:this.handleTitleMouseleave},style:[i,o,{backgroundColor:a}]},[h.title,t("i",{class:["el-submenu__icon-arrow",v]})]),this.isMenuPopup?g:m])}},ve=me,ye=r(ve,void 0,void 0,!1,null,null,null);ye.options.__file="packages/menu/src/submenu.vue";var be=ye.exports;be.install=function(t){t.component(be.name,be)};var _e=be,we=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("li",{staticClass:"el-menu-item",class:{"is-active":t.active,"is-disabled":t.disabled},style:[t.paddingStyle,t.itemStyle,{backgroundColor:t.backgroundColor}],attrs:{role:"menuitem",tabindex:"-1"},on:{click:t.handleClick,mouseenter:t.onMouseEnter,focus:t.onMouseEnter,blur:t.onMouseLeave,mouseleave:t.onMouseLeave}},["ElMenu"===t.parentMenu.$options.componentName&&t.rootMenu.collapse&&t.$slots.title?n("el-tooltip",{attrs:{effect:"dark",placement:"right"}},[n("div",{attrs:{slot:"content"},slot:"content"},[t._t("title")],2),n("div",{staticStyle:{position:"absolute",left:"0",top:"0",height:"100%",width:"100%",display:"inline-block","box-sizing":"border-box",padding:"0 20px"}},[t._t("default")],2)]):[t._t("default"),t._t("title")]],2)},xe=[];we._withStripped=!0;var ke=n(26),Se=n.n(ke),Ce={name:"ElMenuItem",componentName:"ElMenuItem",mixins:[pe,tt.a],components:{ElTooltip:Se.a},props:{index:{default:null,validator:function(t){return"string"==typeof t||null===t}},route:[String,Object],disabled:Boolean},computed:{active:function(){return this.index===this.rootMenu.activeIndex},hoverBackground:function(){return this.rootMenu.hoverBackground},backgroundColor:function(){return this.rootMenu.backgroundColor||""},activeTextColor:function(){return this.rootMenu.activeTextColor||""},textColor:function(){return this.rootMenu.textColor||""},mode:function(){return this.rootMenu.mode},itemStyle:function(){var t={color:this.active?this.activeTextColor:this.textColor};return"horizontal"!==this.mode||this.isNested||(t.borderBottomColor=this.active?this.rootMenu.activeTextColor?this.activeTextColor:"":"transparent"),t},isNested:function(){return this.parentMenu!==this.rootMenu}},methods:{onMouseEnter:function(){("horizontal"!==this.mode||this.rootMenu.backgroundColor)&&(this.$el.style.backgroundColor=this.hoverBackground)},onMouseLeave:function(){("horizontal"!==this.mode||this.rootMenu.backgroundColor)&&(this.$el.style.backgroundColor=this.backgroundColor)},handleClick:function(){this.disabled||(this.dispatch("ElMenu","item-click",this),this.$emit("click",this))}},mounted:function(){this.parentMenu.addItem(this),this.rootMenu.addItem(this)},beforeDestroy:function(){this.parentMenu.removeItem(this),this.rootMenu.removeItem(this)}},Ee=Ce,Te=r(Ee,we,xe,!1,null,null,null);Te.options.__file="packages/menu/src/menu-item.vue";var Ae=Te.exports;Ae.install=function(t){t.component(Ae.name,Ae)};var Oe=Ae,Pe=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("li",{staticClass:"el-menu-item-group"},[n("div",{staticClass:"el-menu-item-group__title",style:{paddingLeft:t.levelPadding+"px"}},[t.$slots.title?t._t("title"):[t._v(t._s(t.title))]],2),n("ul",[t._t("default")],2)])},Ne=[];Pe._withStripped=!0;var De={name:"ElMenuItemGroup",componentName:"ElMenuItemGroup",inject:["rootMenu"],props:{title:{type:String}},data:function(){return{paddingLeft:20}},computed:{levelPadding:function(){var t=20,e=this.$parent;if(this.rootMenu.collapse)return 20;for(;e&&"ElMenu"!==e.$options.componentName;)"ElSubmenu"===e.$options.componentName&&(t+=20),e=e.$parent;return t}}},Me=De,Ie=r(Me,Pe,Ne,!1,null,null,null);Ie.options.__file="packages/menu/src/menu-item-group.vue";var Re=Ie.exports;Re.install=function(t){t.component(Re.name,Re)};var $e=Re,Le=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:["textarea"===t.type?"el-textarea":"el-input",t.inputSize?"el-input--"+t.inputSize:"",{"is-disabled":t.inputDisabled,"is-exceed":t.inputExceed,"el-input-group":t.$slots.prepend||t.$slots.append,"el-input-group--append":t.$slots.append,"el-input-group--prepend":t.$slots.prepend,"el-input--prefix":t.$slots.prefix||t.prefixIcon,"el-input--suffix":t.$slots.suffix||t.suffixIcon||t.clearable||t.showPassword}],on:{mouseenter:function(e){t.hovering=!0},mouseleave:function(e){t.hovering=!1}}},["textarea"!==t.type?[t.$slots.prepend?n("div",{staticClass:"el-input-group__prepend"},[t._t("prepend")],2):t._e(),"textarea"!==t.type?n("input",t._b({ref:"input",staticClass:"el-input__inner",attrs:{tabindex:t.tabindex,type:t.showPassword?t.passwordVisible?"text":"password":t.type,disabled:t.inputDisabled,readonly:t.readonly,autocomplete:t.autoComplete||t.autocomplete,"aria-label":t.label},on:{compositionstart:t.handleCompositionStart,compositionupdate:t.handleCompositionUpdate,compositionend:t.handleCompositionEnd,input:t.handleInput,focus:t.handleFocus,blur:t.handleBlur,change:t.handleChange}},"input",t.$attrs,!1)):t._e(),t.$slots.prefix||t.prefixIcon?n("span",{staticClass:"el-input__prefix"},[t._t("prefix"),t.prefixIcon?n("i",{staticClass:"el-input__icon",class:t.prefixIcon}):t._e()],2):t._e(),t.getSuffixVisible()?n("span",{staticClass:"el-input__suffix"},[n("span",{staticClass:"el-input__suffix-inner"},[t.showClear&&t.showPwdVisible&&t.isWordLimitVisible?t._e():[t._t("suffix"),t.suffixIcon?n("i",{staticClass:"el-input__icon",class:t.suffixIcon}):t._e()],t.showClear?n("i",{staticClass:"el-input__icon el-icon-circle-close el-input__clear",on:{mousedown:function(t){t.preventDefault()},click:t.clear}}):t._e(),t.showPwdVisible?n("i",{staticClass:"el-input__icon el-icon-view el-input__clear",on:{click:t.handlePasswordVisible}}):t._e(),t.isWordLimitVisible?n("span",{staticClass:"el-input__count"},[n("span",{staticClass:"el-input__count-inner"},[t._v("\n "+t._s(t.textLength)+"/"+t._s(t.upperLimit)+"\n ")])]):t._e()],2),t.validateState?n("i",{staticClass:"el-input__icon",class:["el-input__validateIcon",t.validateIcon]}):t._e()]):t._e(),t.$slots.append?n("div",{staticClass:"el-input-group__append"},[t._t("append")],2):t._e()]:n("textarea",t._b({ref:"textarea",staticClass:"el-textarea__inner",style:t.textareaStyle,attrs:{tabindex:t.tabindex,disabled:t.inputDisabled,readonly:t.readonly,autocomplete:t.autoComplete||t.autocomplete,"aria-label":t.label},on:{compositionstart:t.handleCompositionStart,compositionupdate:t.handleCompositionUpdate,compositionend:t.handleCompositionEnd,input:t.handleInput,focus:t.handleFocus,blur:t.handleBlur,change:t.handleChange}},"textarea",t.$attrs,!1)),t.isWordLimitVisible&&"textarea"===t.type?n("span",{staticClass:"el-input__count"},[t._v(t._s(t.textLength)+"/"+t._s(t.upperLimit))]):t._e()],2)},je=[];Le._withStripped=!0;var Fe=void 0,Be="\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important\n",Ve=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"],ze=n(7),Ue=n.n(ze),He=n(19),qe={name:"ElInput",componentName:"ElInput",mixins:[tt.a,Q.a],inheritAttrs:!1,inject:{elForm:{default:""},elFormItem:{default:""}},data:function(){return{textareaCalcStyle:{},hovering:!1,focused:!1,isComposing:!1,passwordVisible:!1}},props:{value:[String,Number],size:String,resize:String,form:String,disabled:Boolean,readonly:Boolean,type:{type:String,default:"text"},autosize:{type:[Boolean,Object],default:!1},autocomplete:{type:String,default:"off"},autoComplete:{type:String,validator:function(t){return!0}},validateEvent:{type:Boolean,default:!0},suffixIcon:String,prefixIcon:String,label:String,clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},tabindex:String},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},validateState:function(){return this.elFormItem?this.elFormItem.validateState:""},needStatusIcon:function(){return!!this.elForm&&this.elForm.statusIcon},validateIcon:function(){return{validating:"el-icon-loading",success:"el-icon-circle-check",error:"el-icon-circle-close"}[this.validateState]},textareaStyle:function(){return Ue()({},this.textareaCalcStyle,{resize:this.resize})},inputSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},inputDisabled:function(){return this.disabled||(this.elForm||{}).disabled},nativeInputValue:function(){return null===this.value||void 0===this.value?"":String(this.value)},showClear:function(){return this.clearable&&!this.inputDisabled&&!this.readonly&&this.nativeInputValue&&(this.focused||this.hovering)},showPwdVisible:function(){return this.showPassword&&!this.inputDisabled&&!this.readonly&&(!!this.nativeInputValue||this.focused)},isWordLimitVisible:function(){return this.showWordLimit&&this.$attrs.maxlength&&("text"===this.type||"textarea"===this.type)&&!this.inputDisabled&&!this.readonly&&!this.showPassword},upperLimit:function(){return this.$attrs.maxlength},textLength:function(){return"number"==typeof this.value?String(this.value).length:(this.value||"").length},inputExceed:function(){return this.isWordLimitVisible&&this.textLength>this.upperLimit}},watch:{value:function(t){this.$nextTick(this.resizeTextarea),this.validateEvent&&this.dispatch("ElFormItem","el.form.change",[t])},nativeInputValue:function(){this.setNativeInputValue()},type:function(){var t=this;this.$nextTick(function(){t.setNativeInputValue(),t.resizeTextarea(),t.updateIconOffset()})}},methods:{focus:function(){this.getInput().focus()},blur:function(){this.getInput().blur()},getMigratingConfig:function(){return{props:{icon:"icon is removed, use suffix-icon / prefix-icon instead.","on-icon-click":"on-icon-click is removed."},events:{click:"click is removed."}}},handleBlur:function(t){this.focused=!1,this.$emit("blur",t),this.validateEvent&&this.dispatch("ElFormItem","el.form.blur",[this.value])},select:function(){this.getInput().select()},resizeTextarea:function(){if(!this.$isServer){var t=this.autosize;if("textarea"===this.type){if(!t)return void(this.textareaCalcStyle={minHeight:o(this.$refs.textarea).minHeight});var e=t.minRows,n=t.maxRows;this.textareaCalcStyle=o(this.$refs.textarea,e,n)}}},setNativeInputValue:function(){var t=this.getInput();t&&t.value!==this.nativeInputValue&&(t.value=this.nativeInputValue)},handleFocus:function(t){this.focused=!0,this.$emit("focus",t)},handleCompositionStart:function(t){this.$emit("compositionstart",t),this.isComposing=!0},handleCompositionUpdate:function(t){this.$emit("compositionupdate",t);var e=t.target.value,n=e[e.length-1]||"";this.isComposing=!Object(He.isKorean)(n)},handleCompositionEnd:function(t){this.$emit("compositionend",t),this.isComposing&&(this.isComposing=!1,this.handleInput(t))},handleInput:function(t){this.isComposing||t.target.value!==this.nativeInputValue&&(this.$emit("input",t.target.value),this.$nextTick(this.setNativeInputValue))},handleChange:function(t){this.$emit("change",t.target.value)},calcIconOffset:function(t){var e=[].slice.call(this.$el.querySelectorAll(".el-input__"+t)||[]);if(e.length){for(var n=null,r=0;r<e.length;r++)if(e[r].parentNode===this.$el){n=e[r];break}if(n){var i={suffix:"append",prefix:"prepend"},o=i[t];this.$slots[o]?n.style.transform="translateX("+("suffix"===t?"-":"")+this.$el.querySelector(".el-input-group__"+o).offsetWidth+"px)":n.removeAttribute("style")}}},updateIconOffset:function(){this.calcIconOffset("prefix"),this.calcIconOffset("suffix")},clear:function(){this.$emit("input",""),this.$emit("change",""),this.$emit("clear")},handlePasswordVisible:function(){var t=this;this.passwordVisible=!this.passwordVisible,this.$nextTick(function(){t.focus()})},getInput:function(){return this.$refs.input||this.$refs.textarea},getSuffixVisible:function(){return this.$slots.suffix||this.suffixIcon||this.showClear||this.showPassword||this.isWordLimitVisible||this.validateState&&this.needStatusIcon}},created:function(){this.$on("inputSelect",this.select)},mounted:function(){this.setNativeInputValue(),this.resizeTextarea(),this.updateIconOffset()},updated:function(){this.$nextTick(this.updateIconOffset)}},We=qe,Ge=r(We,Le,je,!1,null,null,null);Ge.options.__file="packages/input/src/input.vue";var Ye=Ge.exports;Ye.install=function(t){t.component(Ye.name,Ye)};var Ke=Ye,Xe=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:["el-input-number",t.inputNumberSize?"el-input-number--"+t.inputNumberSize:"",{"is-disabled":t.inputNumberDisabled},{"is-without-controls":!t.controls},{"is-controls-right":t.controlsAtRight}],on:{dragstart:function(t){t.preventDefault()}}},[t.controls?n("span",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:t.decrease,expression:"decrease"}],staticClass:"el-input-number__decrease",class:{"is-disabled":t.minDisabled},attrs:{role:"button"},on:{keydown:function(e){return"button"in e||!t._k(e.keyCode,"enter",13,e.key,"Enter")?t.decrease(e):null}}},[n("i",{class:"el-icon-"+(t.controlsAtRight?"arrow-down":"minus")})]):t._e(),t.controls?n("span",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:t.increase,expression:"increase"}],staticClass:"el-input-number__increase",class:{"is-disabled":t.maxDisabled},attrs:{role:"button"},on:{keydown:function(e){return"button"in e||!t._k(e.keyCode,"enter",13,e.key,"Enter")?t.increase(e):null}}},[n("i",{class:"el-icon-"+(t.controlsAtRight?"arrow-up":"plus")})]):t._e(),n("el-input",{ref:"input",attrs:{value:t.displayValue,placeholder:t.placeholder,disabled:t.inputNumberDisabled,size:t.inputNumberSize,max:t.max,min:t.min,name:t.name,label:t.label},on:{blur:t.handleBlur,focus:t.handleFocus,input:t.handleInput,change:t.handleInputChange},nativeOn:{keydown:[function(e){return"button"in e||!t._k(e.keyCode,"up",38,e.key,["Up","ArrowUp"])?(e.preventDefault(),t.increase(e)):null},function(e){return"button"in e||!t._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"])?(e.preventDefault(),t.decrease(e)):null}]}})],1)},Je=[];Xe._withStripped=!0;var Qe={bind:function(t,e,n){var r=null,i=void 0,o=Object(H.isMac)()?100:200,a=function(){return n.context[e.expression].apply()},s=function(){Date.now()-i<o&&a(),clearInterval(r),r=null};Object(ae.on)(t,"mousedown",function(t){0===t.button&&(i=Date.now(),Object(ae.once)(document,"mouseup",s),clearInterval(r),r=setInterval(a,o))})}},Ze={name:"ElInputNumber",mixins:[kt()("input")],inject:{elForm:{default:""},elFormItem:{default:""}},directives:{repeatClick:Qe},components:{ElInput:V.a},props:{step:{type:Number,default:1},stepStrictly:{type:Boolean,default:!1},max:{type:Number,default:1/0},min:{type:Number,default:-1/0},value:{},disabled:Boolean,size:String,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:""},name:String,label:String,placeholder:String,precision:{type:Number,validator:function(t){return t>=0&&t===parseInt(t,10)}}},data:function(){return{currentValue:0,userInput:null}},watch:{value:{immediate:!0,handler:function(t){var e=void 0===t?t:Number(t);if(void 0!==e){if(isNaN(e))return;if(this.stepStrictly){var n=this.getPrecision(this.step),r=Math.pow(10,n);e=Math.round(e/this.step)*r*this.step/r}void 0!==this.precision&&(e=this.toPrecision(e,this.precision))}e>=this.max&&(e=this.max),e<=this.min&&(e=this.min),this.currentValue=e,this.userInput=null,this.$emit("input",e)}}},computed:{minDisabled:function(){return this._decrease(this.value,this.step)<this.min},maxDisabled:function(){return this._increase(this.value,this.step)>this.max},numPrecision:function(){var t=this.value,e=this.step,n=this.getPrecision,r=this.precision,i=n(e);return void 0!==r?(i>r&&console.warn("[Element Warn][InputNumber]precision should not be less than the decimal places of step"),r):Math.max(n(t),i)},controlsAtRight:function(){return this.controls&&"right"===this.controlsPosition},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},inputNumberSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},inputNumberDisabled:function(){return this.disabled||!!(this.elForm||{}).disabled},displayValue:function(){if(null!==this.userInput)return this.userInput;var t=this.currentValue;if("number"==typeof t){if(this.stepStrictly){var e=this.getPrecision(this.step),n=Math.pow(10,e);t=Math.round(t/this.step)*n*this.step/n}void 0!==this.precision&&(t=t.toFixed(this.precision))}return t}},methods:{toPrecision:function(t,e){return void 0===e&&(e=this.numPrecision),parseFloat(Math.round(t*Math.pow(10,e))/Math.pow(10,e))},getPrecision:function(t){if(void 0===t)return 0;var e=t.toString(),n=e.indexOf("."),r=0;return-1!==n&&(r=e.length-n-1),r},_increase:function(t,e){if("number"!=typeof t&&void 0!==t)return this.currentValue;var n=Math.pow(10,this.numPrecision);return this.toPrecision((n*t+n*e)/n)},_decrease:function(t,e){if("number"!=typeof t&&void 0!==t)return this.currentValue;var n=Math.pow(10,this.numPrecision);return this.toPrecision((n*t-n*e)/n)},increase:function(){if(!this.inputNumberDisabled&&!this.maxDisabled){var t=this.value||0,e=this._increase(t,this.step);this.setCurrentValue(e)}},decrease:function(){if(!this.inputNumberDisabled&&!this.minDisabled){var t=this.value||0,e=this._decrease(t,this.step);this.setCurrentValue(e)}},handleBlur:function(t){this.$emit("blur",t)},handleFocus:function(t){this.$emit("focus",t)},setCurrentValue:function(t){var e=this.currentValue;"number"==typeof t&&void 0!==this.precision&&(t=this.toPrecision(t,this.precision)),t>=this.max&&(t=this.max),t<=this.min&&(t=this.min),e!==t&&(this.userInput=null,this.$emit("input",t),this.$emit("change",t,e),this.currentValue=t)},handleInput:function(t){this.userInput=t},handleInputChange:function(t){var e=""===t?void 0:Number(t);isNaN(e)&&""!==t||this.setCurrentValue(e),this.userInput=null},select:function(){this.$refs.input.select()}},mounted:function(){var t=this.$refs.input.$refs.input;t.setAttribute("role","spinbutton"),t.setAttribute("aria-valuemax",this.max),t.setAttribute("aria-valuemin",this.min),t.setAttribute("aria-valuenow",this.currentValue),t.setAttribute("aria-disabled",this.inputNumberDisabled)},updated:function(){if(this.$refs&&this.$refs.input){this.$refs.input.$refs.input.setAttribute("aria-valuenow",this.currentValue)}}},tn=Ze,en=r(tn,Xe,Je,!1,null,null,null);en.options.__file="packages/input-number/src/input-number.vue";var nn=en.exports;nn.install=function(t){t.component(nn.name,nn)};var rn=nn,on=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("label",{staticClass:"el-radio",class:[t.border&&t.radioSize?"el-radio--"+t.radioSize:"",{"is-disabled":t.isDisabled},{"is-focus":t.focus},{"is-bordered":t.border},{"is-checked":t.model===t.label}],attrs:{role:"radio","aria-checked":t.model===t.label,"aria-disabled":t.isDisabled,tabindex:t.tabIndex},on:{keydown:function(e){if(!("button"in e)&&t._k(e.keyCode,"space",32,e.key,[" ","Spacebar"]))return null;e.stopPropagation(),e.preventDefault(),t.model=t.isDisabled?t.model:t.label}}},[n("span",{staticClass:"el-radio__input",class:{"is-disabled":t.isDisabled,"is-checked":t.model===t.label}},[n("span",{staticClass:"el-radio__inner"}),n("input",{directives:[{name:"model",rawName:"v-model",value:t.model,expression:"model"}],ref:"radio",staticClass:"el-radio__original",attrs:{type:"radio","aria-hidden":"true",name:t.name,disabled:t.isDisabled,tabindex:"-1",autocomplete:"off"},domProps:{value:t.label,checked:t._q(t.model,t.label)},on:{focus:function(e){t.focus=!0},blur:function(e){t.focus=!1},change:[function(e){t.model=t.label},t.handleChange]}})]),n("span",{staticClass:"el-radio__label",on:{keydown:function(t){t.stopPropagation()}}},[t._t("default"),t.$slots.default?t._e():[t._v(t._s(t.label))]],2)])},an=[];on._withStripped=!0;var sn={name:"ElRadio",mixins:[tt.a],inject:{elForm:{default:""},elFormItem:{default:""}},componentName:"ElRadio",props:{value:{},label:{},disabled:Boolean,name:String,border:Boolean,size:String},data:function(){return{focus:!1}},computed:{isGroup:function(){for(var t=this.$parent;t;){if("ElRadioGroup"===t.$options.componentName)return this._radioGroup=t,!0;t=t.$parent}return!1},model:{get:function(){return this.isGroup?this._radioGroup.value:this.value},set:function(t){this.isGroup?this.dispatch("ElRadioGroup","input",[t]):this.$emit("input",t),this.$refs.radio&&(this.$refs.radio.checked=this.model===this.label)}},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},radioSize:function(){var t=this.size||this._elFormItemSize||(this.$ELEMENT||{}).size;return this.isGroup?this._radioGroup.radioGroupSize||t:t},isDisabled:function(){return this.isGroup?this._radioGroup.disabled||this.disabled||(this.elForm||{}).disabled:this.disabled||(this.elForm||{}).disabled},tabIndex:function(){return this.isDisabled||this.isGroup&&this.model!==this.label?-1:0}},methods:{handleChange:function(){var t=this;this.$nextTick(function(){t.$emit("change",t.model),t.isGroup&&t.dispatch("ElRadioGroup","handleChange",t.model)})}}},un=sn,ln=r(un,on,an,!1,null,null,null);ln.options.__file="packages/radio/src/radio.vue";var cn=ln.exports;cn.install=function(t){t.component(cn.name,cn)};var fn=cn,dn=function(){var t=this,e=t.$createElement;return(t._self._c||e)(t._elTag,{tag:"component",staticClass:"el-radio-group",attrs:{role:"radiogroup"},on:{keydown:t.handleKeydown}},[t._t("default")],2)},hn=[];dn._withStripped=!0;var pn=Object.freeze({LEFT:37,UP:38,RIGHT:39,DOWN:40}),gn={name:"ElRadioGroup",componentName:"ElRadioGroup",inject:{elFormItem:{default:""}},mixins:[tt.a],props:{value:{},size:String,fill:String,textColor:String,disabled:Boolean},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},_elTag:function(){var t=(this.$vnode.data||{}).tag;return t&&"component"!==t||(t="div"),t},radioGroupSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size}},created:function(){var t=this;this.$on("handleChange",function(e){t.$emit("change",e)})},mounted:function(){var t=this.$el.querySelectorAll("[type=radio]"),e=this.$el.querySelectorAll("[role=radio]")[0];![].some.call(t,function(t){return t.checked})&&e&&(e.tabIndex=0)},methods:{handleKeydown:function(t){var e=t.target,n="INPUT"===e.nodeName?"[type=radio]":"[role=radio]",r=this.$el.querySelectorAll(n),i=r.length,o=[].indexOf.call(r,e),a=this.$el.querySelectorAll("[role=radio]");switch(t.keyCode){case pn.LEFT:case pn.UP:t.stopPropagation(),t.preventDefault(),0===o?(a[i-1].click(),a[i-1].focus()):(a[o-1].click(),a[o-1].focus());break;case pn.RIGHT:case pn.DOWN:o===i-1?(t.stopPropagation(),t.preventDefault(),a[0].click(),a[0].focus()):(a[o+1].click(),a[o+1].focus())}}},watch:{value:function(t){this.dispatch("ElFormItem","el.form.change",[this.value])}}},mn=gn,vn=r(mn,dn,hn,!1,null,null,null);vn.options.__file="packages/radio/src/radio-group.vue";var yn=vn.exports;yn.install=function(t){t.component(yn.name,yn)};var bn=yn,_n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("label",{staticClass:"el-radio-button",class:[t.size?"el-radio-button--"+t.size:"",{"is-active":t.value===t.label},{"is-disabled":t.isDisabled},{"is-focus":t.focus}],attrs:{role:"radio","aria-checked":t.value===t.label,"aria-disabled":t.isDisabled,tabindex:t.tabIndex},on:{keydown:function(e){if(!("button"in e)&&t._k(e.keyCode,"space",32,e.key,[" ","Spacebar"]))return null;e.stopPropagation(),e.preventDefault(),t.value=t.isDisabled?t.value:t.label}}},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.value,expression:"value"}],staticClass:"el-radio-button__orig-radio",attrs:{type:"radio",name:t.name,disabled:t.isDisabled,tabindex:"-1",autocomplete:"off"},domProps:{value:t.label,checked:t._q(t.value,t.label)},on:{change:[function(e){t.value=t.label},t.handleChange],focus:function(e){t.focus=!0},blur:function(e){t.focus=!1}}}),n("span",{staticClass:"el-radio-button__inner",style:t.value===t.label?t.activeStyle:null,on:{keydown:function(t){t.stopPropagation()}}},[t._t("default"),t.$slots.default?t._e():[t._v(t._s(t.label))]],2)])},wn=[];_n._withStripped=!0;var xn={name:"ElRadioButton",mixins:[tt.a],inject:{elForm:{default:""},elFormItem:{default:""}},props:{label:{},disabled:Boolean,name:String},data:function(){return{focus:!1}},computed:{value:{get:function(){return this._radioGroup.value},set:function(t){this._radioGroup.$emit("input",t)}},_radioGroup:function(){for(var t=this.$parent;t;){if("ElRadioGroup"===t.$options.componentName)return t;t=t.$parent}return!1},activeStyle:function(){return{backgroundColor:this._radioGroup.fill||"",borderColor:this._radioGroup.fill||"",boxShadow:this._radioGroup.fill?"-1px 0 0 0 "+this._radioGroup.fill:"",color:this._radioGroup.textColor||""}},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},size:function(){return this._radioGroup.radioGroupSize||this._elFormItemSize||(this.$ELEMENT||{}).size},isDisabled:function(){return this.disabled||this._radioGroup.disabled||(this.elForm||{}).disabled},tabIndex:function(){return this.isDisabled||this._radioGroup&&this.value!==this.label?-1:0}},methods:{handleChange:function(){var t=this;this.$nextTick(function(){t.dispatch("ElRadioGroup","handleChange",t.value)})}}},kn=xn,Sn=r(kn,_n,wn,!1,null,null,null);Sn.options.__file="packages/radio/src/radio-button.vue";var Cn=Sn.exports;Cn.install=function(t){t.component(Cn.name,Cn)};var En=Cn,Tn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("label",{staticClass:"el-checkbox",class:[t.border&&t.checkboxSize?"el-checkbox--"+t.checkboxSize:"",{"is-disabled":t.isDisabled},{"is-bordered":t.border},{"is-checked":t.isChecked}],attrs:{id:t.id}},[n("span",{staticClass:"el-checkbox__input",class:{"is-disabled":t.isDisabled,"is-checked":t.isChecked,"is-indeterminate":t.indeterminate,"is-focus":t.focus},attrs:{tabindex:!!t.indeterminate&&0,role:!!t.indeterminate&&"checkbox","aria-checked":!!t.indeterminate&&"mixed"}},[n("span",{staticClass:"el-checkbox__inner"}),t.trueLabel||t.falseLabel?n("input",{directives:[{name:"model",rawName:"v-model",value:t.model,expression:"model"}],staticClass:"el-checkbox__original",attrs:{type:"checkbox","aria-hidden":t.indeterminate?"true":"false",name:t.name,disabled:t.isDisabled,"true-value":t.trueLabel,"false-value":t.falseLabel},domProps:{checked:Array.isArray(t.model)?t._i(t.model,null)>-1:t._q(t.model,t.trueLabel)},on:{change:[function(e){var n=t.model,r=e.target,i=r.checked?t.trueLabel:t.falseLabel;if(Array.isArray(n)){var o=t._i(n,null);r.checked?o<0&&(t.model=n.concat([null])):o>-1&&(t.model=n.slice(0,o).concat(n.slice(o+1)))}else t.model=i},t.handleChange],focus:function(e){t.focus=!0},blur:function(e){t.focus=!1}}}):n("input",{directives:[{name:"model",rawName:"v-model",value:t.model,expression:"model"}],staticClass:"el-checkbox__original",attrs:{type:"checkbox","aria-hidden":t.indeterminate?"true":"false",disabled:t.isDisabled,name:t.name},domProps:{value:t.label,checked:Array.isArray(t.model)?t._i(t.model,t.label)>-1:t.model},on:{change:[function(e){var n=t.model,r=e.target,i=!!r.checked;if(Array.isArray(n)){var o=t.label,a=t._i(n,o);r.checked?a<0&&(t.model=n.concat([o])):a>-1&&(t.model=n.slice(0,a).concat(n.slice(a+1)))}else t.model=i},t.handleChange],focus:function(e){t.focus=!0},blur:function(e){t.focus=!1}}})]),t.$slots.default||t.label?n("span",{staticClass:"el-checkbox__label"},[t._t("default"),t.$slots.default?t._e():[t._v(t._s(t.label))]],2):t._e()])},An=[];Tn._withStripped=!0;var On={name:"ElCheckbox",mixins:[tt.a],inject:{elForm:{default:""},elFormItem:{default:""}},componentName:"ElCheckbox",data:function(){return{selfModel:!1,focus:!1,isLimitExceeded:!1}},computed:{model:{get:function(){return this.isGroup?this.store:void 0!==this.value?this.value:this.selfModel},set:function(t){this.isGroup?(this.isLimitExceeded=!1,void 0!==this._checkboxGroup.min&&t.length<this._checkboxGroup.min&&(this.isLimitExceeded=!0),void 0!==this._checkboxGroup.max&&t.length>this._checkboxGroup.max&&(this.isLimitExceeded=!0),!1===this.isLimitExceeded&&this.dispatch("ElCheckboxGroup","input",[t])):(this.$emit("input",t),this.selfModel=t)}},isChecked:function(){return"[object Boolean]"==={}.toString.call(this.model)?this.model:Array.isArray(this.model)?this.model.indexOf(this.label)>-1:null!==this.model&&void 0!==this.model?this.model===this.trueLabel:void 0},isGroup:function(){for(var t=this.$parent;t;){if("ElCheckboxGroup"===t.$options.componentName)return this._checkboxGroup=t,!0;t=t.$parent}return!1},store:function(){return this._checkboxGroup?this._checkboxGroup.value:this.value},isLimitDisabled:function(){var t=this._checkboxGroup,e=t.max,n=t.min;return!(!e&&!n)&&this.model.length>=e&&!this.isChecked||this.model.length<=n&&this.isChecked},isDisabled:function(){return this.isGroup?this._checkboxGroup.disabled||this.disabled||(this.elForm||{}).disabled||this.isLimitDisabled:this.disabled||(this.elForm||{}).disabled},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},checkboxSize:function(){var t=this.size||this._elFormItemSize||(this.$ELEMENT||{}).size;return this.isGroup?this._checkboxGroup.checkboxGroupSize||t:t}},props:{value:{},label:{},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:String,trueLabel:[String,Number],falseLabel:[String,Number],id:String,controls:String,border:Boolean,size:String},methods:{addToStore:function(){Array.isArray(this.model)&&-1===this.model.indexOf(this.label)?this.model.push(this.label):this.model=this.trueLabel||!0},handleChange:function(t){var e=this;if(!this.isLimitExceeded){var n=void 0;n=t.target.checked?void 0===this.trueLabel||this.trueLabel:void 0!==this.falseLabel&&this.falseLabel,this.$emit("change",n,t),this.$nextTick(function(){e.isGroup&&e.dispatch("ElCheckboxGroup","change",[e._checkboxGroup.value])})}}},created:function(){this.checked&&this.addToStore()},mounted:function(){this.indeterminate&&this.$el.setAttribute("aria-controls",this.controls)},watch:{value:function(t){this.dispatch("ElFormItem","el.form.change",t)}}},Pn=On,Nn=r(Pn,Tn,An,!1,null,null,null);Nn.options.__file="packages/checkbox/src/checkbox.vue";var Dn=Nn.exports;Dn.install=function(t){t.component(Dn.name,Dn)};var Mn=Dn,In=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("label",{staticClass:"el-checkbox-button",class:[t.size?"el-checkbox-button--"+t.size:"",{"is-disabled":t.isDisabled},{"is-checked":t.isChecked},{"is-focus":t.focus}],attrs:{role:"checkbox","aria-checked":t.isChecked,"aria-disabled":t.isDisabled}},[t.trueLabel||t.falseLabel?n("input",{directives:[{name:"model",rawName:"v-model",value:t.model,expression:"model"}],staticClass:"el-checkbox-button__original",attrs:{type:"checkbox",name:t.name,disabled:t.isDisabled,"true-value":t.trueLabel,"false-value":t.falseLabel},domProps:{checked:Array.isArray(t.model)?t._i(t.model,null)>-1:t._q(t.model,t.trueLabel)},on:{change:[function(e){var n=t.model,r=e.target,i=r.checked?t.trueLabel:t.falseLabel;if(Array.isArray(n)){var o=t._i(n,null);r.checked?o<0&&(t.model=n.concat([null])):o>-1&&(t.model=n.slice(0,o).concat(n.slice(o+1)))}else t.model=i},t.handleChange],focus:function(e){t.focus=!0},blur:function(e){t.focus=!1}}}):n("input",{directives:[{name:"model",rawName:"v-model",value:t.model,expression:"model"}],staticClass:"el-checkbox-button__original",attrs:{type:"checkbox",name:t.name,disabled:t.isDisabled},domProps:{value:t.label,checked:Array.isArray(t.model)?t._i(t.model,t.label)>-1:t.model},on:{change:[function(e){var n=t.model,r=e.target,i=!!r.checked;if(Array.isArray(n)){var o=t.label,a=t._i(n,o);r.checked?a<0&&(t.model=n.concat([o])):a>-1&&(t.model=n.slice(0,a).concat(n.slice(a+1)))}else t.model=i},t.handleChange],focus:function(e){t.focus=!0},blur:function(e){t.focus=!1}}}),t.$slots.default||t.label?n("span",{staticClass:"el-checkbox-button__inner",style:t.isChecked?t.activeStyle:null},[t._t("default",[t._v(t._s(t.label))])],2):t._e()])},Rn=[];In._withStripped=!0;var $n={name:"ElCheckboxButton",mixins:[tt.a],inject:{elForm:{default:""},elFormItem:{default:""}},data:function(){return{selfModel:!1,focus:!1,isLimitExceeded:!1}},props:{value:{},label:{},disabled:Boolean,checked:Boolean,name:String,trueLabel:[String,Number],falseLabel:[String,Number]},computed:{model:{get:function(){return this._checkboxGroup?this.store:void 0!==this.value?this.value:this.selfModel},set:function(t){this._checkboxGroup?(this.isLimitExceeded=!1,void 0!==this._checkboxGroup.min&&t.length<this._checkboxGroup.min&&(this.isLimitExceeded=!0),void 0!==this._checkboxGroup.max&&t.length>this._checkboxGroup.max&&(this.isLimitExceeded=!0),!1===this.isLimitExceeded&&this.dispatch("ElCheckboxGroup","input",[t])):void 0!==this.value?this.$emit("input",t):this.selfModel=t}},isChecked:function(){return"[object Boolean]"==={}.toString.call(this.model)?this.model:Array.isArray(this.model)?this.model.indexOf(this.label)>-1:null!==this.model&&void 0!==this.model?this.model===this.trueLabel:void 0},_checkboxGroup:function(){for(var t=this.$parent;t;){if("ElCheckboxGroup"===t.$options.componentName)return t;t=t.$parent}return!1},store:function(){return this._checkboxGroup?this._checkboxGroup.value:this.value},activeStyle:function(){return{backgroundColor:this._checkboxGroup.fill||"",borderColor:this._checkboxGroup.fill||"",color:this._checkboxGroup.textColor||"","box-shadow":"-1px 0 0 0 "+this._checkboxGroup.fill}},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},size:function(){return this._checkboxGroup.checkboxGroupSize||this._elFormItemSize||(this.$ELEMENT||{}).size},isLimitDisabled:function(){var t=this._checkboxGroup,e=t.max,n=t.min;return!(!e&&!n)&&this.model.length>=e&&!this.isChecked||this.model.length<=n&&this.isChecked},isDisabled:function(){return this._checkboxGroup?this._checkboxGroup.disabled||this.disabled||(this.elForm||{}).disabled||this.isLimitDisabled:this.disabled||(this.elForm||{}).disabled}},methods:{addToStore:function(){Array.isArray(this.model)&&-1===this.model.indexOf(this.label)?this.model.push(this.label):this.model=this.trueLabel||!0},handleChange:function(t){var e=this;if(!this.isLimitExceeded){var n=void 0;n=t.target.checked?void 0===this.trueLabel||this.trueLabel:void 0!==this.falseLabel&&this.falseLabel,this.$emit("change",n,t),this.$nextTick(function(){e._checkboxGroup&&e.dispatch("ElCheckboxGroup","change",[e._checkboxGroup.value])})}}},created:function(){this.checked&&this.addToStore()}},Ln=$n,jn=r(Ln,In,Rn,!1,null,null,null);jn.options.__file="packages/checkbox/src/checkbox-button.vue";var Fn=jn.exports;Fn.install=function(t){t.component(Fn.name,Fn)};var Bn=Fn,Vn=function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"el-checkbox-group",attrs:{role:"group","aria-label":"checkbox-group"}},[t._t("default")],2)},zn=[];Vn._withStripped=!0;var Un={name:"ElCheckboxGroup",componentName:"ElCheckboxGroup",mixins:[tt.a],inject:{elFormItem:{default:""}},props:{value:{},disabled:Boolean,min:Number,max:Number,size:String,fill:String,textColor:String},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},checkboxGroupSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size}},watch:{value:function(t){this.dispatch("ElFormItem","el.form.change",[t])}}},Hn=Un,qn=r(Hn,Vn,zn,!1,null,null,null);qn.options.__file="packages/checkbox/src/checkbox-group.vue";var Wn=qn.exports;Wn.install=function(t){t.component(Wn.name,Wn)};var Gn=Wn,Yn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-switch",class:{"is-disabled":t.switchDisabled,"is-checked":t.checked},attrs:{role:"switch","aria-checked":t.checked,"aria-disabled":t.switchDisabled},on:{click:function(e){return e.preventDefault(),t.switchValue(e)}}},[n("input",{ref:"input",staticClass:"el-switch__input",attrs:{type:"checkbox",id:t.id,name:t.name,"true-value":t.activeValue,"false-value":t.inactiveValue,disabled:t.switchDisabled},on:{change:t.handleChange,keydown:function(e){return"button"in e||!t._k(e.keyCode,"enter",13,e.key,"Enter")?t.switchValue(e):null}}}),t.inactiveIconClass||t.inactiveText?n("span",{class:["el-switch__label","el-switch__label--left",t.checked?"":"is-active"]},[t.inactiveIconClass?n("i",{class:[t.inactiveIconClass]}):t._e(),!t.inactiveIconClass&&t.inactiveText?n("span",{attrs:{"aria-hidden":t.checked}},[t._v(t._s(t.inactiveText))]):t._e()]):t._e(),n("span",{ref:"core",staticClass:"el-switch__core",style:{width:t.coreWidth+"px"}}),t.activeIconClass||t.activeText?n("span",{class:["el-switch__label","el-switch__label--right",t.checked?"is-active":""]},[t.activeIconClass?n("i",{class:[t.activeIconClass]}):t._e(),!t.activeIconClass&&t.activeText?n("span",{attrs:{"aria-hidden":!t.checked}},[t._v(t._s(t.activeText))]):t._e()]):t._e()])},Kn=[];Yn._withStripped=!0;var Xn={name:"ElSwitch",mixins:[kt()("input"),Q.a,tt.a],inject:{elForm:{default:""}},props:{value:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:!1},width:{type:Number,default:40},activeIconClass:{type:String,default:""},inactiveIconClass:{type:String,default:""},activeText:String,inactiveText:String,activeColor:{type:String,default:""},inactiveColor:{type:String,default:""},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},name:{type:String,default:""},validateEvent:{type:Boolean,default:!0},id:String},data:function(){return{coreWidth:this.width}},created:function(){~[this.activeValue,this.inactiveValue].indexOf(this.value)||this.$emit("input",this.inactiveValue)},computed:{checked:function(){return this.value===this.activeValue},switchDisabled:function(){return this.disabled||(this.elForm||{}).disabled}},watch:{checked:function(){this.$refs.input.checked=this.checked,(this.activeColor||this.inactiveColor)&&this.setBackgroundColor(),this.validateEvent&&this.dispatch("ElFormItem","el.form.change",[this.value])}},methods:{handleChange:function(t){var e=this,n=this.checked?this.inactiveValue:this.activeValue;this.$emit("input",n),this.$emit("change",n),this.$nextTick(function(){e.$refs.input&&(e.$refs.input.checked=e.checked)})},setBackgroundColor:function(){var t=this.checked?this.activeColor:this.inactiveColor;this.$refs.core.style.borderColor=t,this.$refs.core.style.backgroundColor=t},switchValue:function(){!this.switchDisabled&&this.handleChange()},getMigratingConfig:function(){return{props:{"on-color":"on-color is renamed to active-color.","off-color":"off-color is renamed to inactive-color.","on-text":"on-text is renamed to active-text.","off-text":"off-text is renamed to inactive-text.","on-value":"on-value is renamed to active-value.","off-value":"off-value is renamed to inactive-value.","on-icon-class":"on-icon-class is renamed to active-icon-class.","off-icon-class":"off-icon-class is renamed to inactive-icon-class."}}}},mounted:function(){this.coreWidth=this.width||40,(this.activeColor||this.inactiveColor)&&this.setBackgroundColor(),this.$refs.input.checked=this.checked}},Jn=Xn,Qn=r(Jn,Yn,Kn,!1,null,null,null);Qn.options.__file="packages/switch/src/component.vue";var Zn=Qn.exports;Zn.install=function(t){t.component(Zn.name,Zn)};var tr=Zn,er=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:t.handleClose,expression:"handleClose"}],staticClass:"el-select",class:[t.selectSize?"el-select--"+t.selectSize:""],on:{click:function(e){return e.stopPropagation(),t.toggleMenu(e)}}},[t.multiple?n("div",{ref:"tags",staticClass:"el-select__tags",style:{"max-width":t.inputWidth-32+"px",width:"100%"}},[t.collapseTags&&t.selected.length?n("span",[n("el-tag",{attrs:{closable:!t.selectDisabled,size:t.collapseTagSize,hit:t.selected[0].hitState,type:"info","disable-transitions":""},on:{close:function(e){t.deleteTag(e,t.selected[0])}}},[n("span",{staticClass:"el-select__tags-text"},[t._v(t._s(t.selected[0].currentLabel))])]),t.selected.length>1?n("el-tag",{attrs:{closable:!1,size:t.collapseTagSize,type:"info","disable-transitions":""}},[n("span",{staticClass:"el-select__tags-text"},[t._v("+ "+t._s(t.selected.length-1))])]):t._e()],1):t._e(),t.collapseTags?t._e():n("transition-group",{on:{"after-leave":t.resetInputHeight}},t._l(t.selected,function(e){return n("el-tag",{key:t.getValueKey(e),attrs:{closable:!t.selectDisabled,size:t.collapseTagSize,hit:e.hitState,type:"info","disable-transitions":""},on:{close:function(n){t.deleteTag(n,e)}}},[n("span",{staticClass:"el-select__tags-text"},[t._v(t._s(e.currentLabel))])])}),1),t.filterable?n("input",{directives:[{name:"model",rawName:"v-model",value:t.query,expression:"query"}],ref:"input",staticClass:"el-select__input",class:[t.selectSize?"is-"+t.selectSize:""],style:{"flex-grow":"1",width:t.inputLength/(t.inputWidth-32)+"%","max-width":t.inputWidth-42+"px"},attrs:{type:"text",disabled:t.selectDisabled,autocomplete:t.autoComplete||t.autocomplete},domProps:{value:t.query},on:{focus:t.handleFocus,blur:function(e){t.softFocus=!1},keyup:t.managePlaceholder,keydown:[t.resetInputState,function(e){if(!("button"in e)&&t._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"]))return null;e.preventDefault(),t.handleNavigate("next")},function(e){if(!("button"in e)&&t._k(e.keyCode,"up",38,e.key,["Up","ArrowUp"]))return null;e.preventDefault(),t.handleNavigate("prev")},function(e){return"button"in e||!t._k(e.keyCode,"enter",13,e.key,"Enter")?(e.preventDefault(),t.selectOption(e)):null},function(e){if(!("button"in e)&&t._k(e.keyCode,"esc",27,e.key,["Esc","Escape"]))return null;e.stopPropagation(),e.preventDefault(),t.visible=!1},function(e){return"button"in e||!t._k(e.keyCode,"delete",[8,46],e.key,["Backspace","Delete","Del"])?t.deletePrevTag(e):null},function(e){if(!("button"in e)&&t._k(e.keyCode,"tab",9,e.key,"Tab"))return null;t.visible=!1}],compositionstart:t.handleComposition,compositionupdate:t.handleComposition,compositionend:t.handleComposition,input:[function(e){e.target.composing||(t.query=e.target.value)},t.debouncedQueryChange]}}):t._e()],1):t._e(),n("el-input",{ref:"reference",class:{"is-focus":t.visible},attrs:{type:"text",placeholder:t.currentPlaceholder,name:t.name,id:t.id,autocomplete:t.autoComplete||t.autocomplete,size:t.selectSize,disabled:t.selectDisabled,readonly:t.readonly,"validate-event":!1,tabindex:t.multiple&&t.filterable?"-1":null},on:{focus:t.handleFocus,blur:t.handleBlur,input:t.debouncedOnInputChange,compositionstart:t.handleComposition,compositionupdate:t.handleComposition,compositionend:t.handleComposition},nativeOn:{keydown:[function(e){if(!("button"in e)&&t._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"]))return null;e.stopPropagation(),e.preventDefault(),t.handleNavigate("next")},function(e){if(!("button"in e)&&t._k(e.keyCode,"up",38,e.key,["Up","ArrowUp"]))return null;e.stopPropagation(),e.preventDefault(),t.handleNavigate("prev")},function(e){return"button"in e||!t._k(e.keyCode,"enter",13,e.key,"Enter")?(e.preventDefault(),t.selectOption(e)):null},function(e){if(!("button"in e)&&t._k(e.keyCode,"esc",27,e.key,["Esc","Escape"]))return null;e.stopPropagation(),e.preventDefault(),t.visible=!1},function(e){if(!("button"in e)&&t._k(e.keyCode,"tab",9,e.key,"Tab"))return null;t.visible=!1}],mouseenter:function(e){t.inputHovering=!0},mouseleave:function(e){t.inputHovering=!1}},model:{value:t.selectedLabel,callback:function(e){t.selectedLabel=e},expression:"selectedLabel"}},[t.$slots.prefix?n("template",{slot:"prefix"},[t._t("prefix")],2):t._e(),n("template",{slot:"suffix"},[n("i",{directives:[{name:"show",rawName:"v-show",value:!t.showClose,expression:"!showClose"}],class:["el-select__caret","el-input__icon","el-icon-"+t.iconClass]}),t.showClose?n("i",{staticClass:"el-select__caret el-input__icon el-icon-circle-close",on:{click:t.handleClearClick}}):t._e()])],2),n("transition",{attrs:{name:"el-zoom-in-top"},on:{"before-enter":t.handleMenuEnter,"after-leave":t.doDestroy}},[n("el-select-menu",{directives:[{name:"show",rawName:"v-show",value:t.visible&&!1!==t.emptyText,expression:"visible && emptyText !== false"}],ref:"popper",attrs:{"append-to-body":t.popperAppendToBody}},[n("el-scrollbar",{directives:[{name:"show",rawName:"v-show",value:t.options.length>0&&!t.loading,expression:"options.length > 0 && !loading"}],ref:"scrollbar",class:{"is-empty":!t.allowCreate&&t.query&&0===t.filteredOptionsCount},attrs:{tag:"ul","wrap-class":"el-select-dropdown__wrap","view-class":"el-select-dropdown__list"}},[t.showNewOption?n("el-option",{attrs:{value:t.query,created:""}}):t._e(),t._t("default")],2),t.emptyText&&(!t.allowCreate||t.loading||t.allowCreate&&0===t.options.length)?[t.$slots.empty?t._t("empty"):n("p",{staticClass:"el-select-dropdown__empty"},[t._v("\n "+t._s(t.emptyText)+"\n ")])]:t._e()],2)],1)],1)},nr=[];er._withStripped=!0;var rr=function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"el-select-dropdown el-popper",class:[{"is-multiple":t.$parent.multiple},t.popperClass],style:{minWidth:t.minWidth}},[t._t("default")],2)},ir=[];rr._withStripped=!0;var or={name:"ElSelectDropdown",componentName:"ElSelectDropdown",mixins:[gt.a],props:{placement:{default:"bottom-start"},boundariesPadding:{default:0},popperOptions:{default:function(){return{gpuAcceleration:!1}}},visibleArrow:{default:!0},appendToBody:{type:Boolean,default:!0}},data:function(){return{minWidth:""}},computed:{popperClass:function(){return this.$parent.popperClass}},watch:{"$parent.inputWidth":function(){this.minWidth=this.$parent.$el.getBoundingClientRect().width+"px"}},mounted:function(){var t=this;this.referenceElm=this.$parent.$refs.reference.$el,this.$parent.popperElm=this.popperElm=this.$el,this.$on("updatePopper",function(){t.$parent.visible&&t.updatePopper()}),this.$on("destroyPopper",this.destroyPopper)}},ar=or,sr=r(ar,rr,ir,!1,null,null,null);sr.options.__file="packages/select/src/select-dropdown.vue";var ur=sr.exports,lr=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("li",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"el-select-dropdown__item",class:{selected:t.itemSelected,"is-disabled":t.disabled||t.groupDisabled||t.limitReached,hover:t.hover},on:{mouseenter:t.hoverItem,click:function(e){return e.stopPropagation(),t.selectOptionClick(e)}}},[t._t("default",[n("span",[t._v(t._s(t.currentLabel))])])],2)},cr=[];lr._withStripped=!0;var fr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dr={mixins:[tt.a],name:"ElOption",componentName:"ElOption",inject:["select"],props:{value:{required:!0},label:[String,Number],created:Boolean,disabled:{type:Boolean,default:!1}},data:function(){return{index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}},computed:{isObject:function(){return"[object object]"===Object.prototype.toString.call(this.value).toLowerCase()},currentLabel:function(){return this.label||(this.isObject?"":this.value)},currentValue:function(){return this.value||this.label||""},itemSelected:function(){return this.select.multiple?this.contains(this.select.value,this.value):this.isEqual(this.value,this.select.value)},limitReached:function(){return!!this.select.multiple&&(!this.itemSelected&&(this.select.value||[]).length>=this.select.multipleLimit&&this.select.multipleLimit>0)}},watch:{currentLabel:function(){this.created||this.select.remote||this.dispatch("ElSelect","setSelected")},value:function(t,e){var n=this.select,r=n.remote,i=n.valueKey;if(!this.created&&!r){if(i&&"object"===(void 0===t?"undefined":fr(t))&&"object"===(void 0===e?"undefined":fr(e))&&t[i]===e[i])return;this.dispatch("ElSelect","setSelected")}}},methods:{isEqual:function(t,e){if(this.isObject){var n=this.select.valueKey;return Object(H.getValueByPath)(t,n)===Object(H.getValueByPath)(e,n)}return t===e},contains:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments[1];if(this.isObject){var n=this.select.valueKey;return t&&t.some(function(t){return Object(H.getValueByPath)(t,n)===Object(H.getValueByPath)(e,n)})}return t&&t.indexOf(e)>-1},handleGroupDisabled:function(t){this.groupDisabled=t},hoverItem:function(){this.disabled||this.groupDisabled||(this.select.hoverIndex=this.select.options.indexOf(this))},selectOptionClick:function(){!0!==this.disabled&&!0!==this.groupDisabled&&this.dispatch("ElSelect","handleOptionClick",[this,!0])},queryChange:function(t){this.visible=new RegExp(Object(H.escapeRegexpString)(t),"i").test(this.currentLabel)||this.created,this.visible||this.select.filteredOptionsCount--}},created:function(){this.select.options.push(this),this.select.cachedOptions.push(this),this.select.optionsCount++,this.select.filteredOptionsCount++,this.$on("queryChange",this.queryChange),this.$on("handleGroupDisabled",this.handleGroupDisabled)},beforeDestroy:function(){var t=this.select,e=t.selected,n=t.multiple,r=n?e:[e],i=this.select.cachedOptions.indexOf(this),o=r.indexOf(this);i>-1&&o<0&&this.select.cachedOptions.splice(i,1),this.select.onOptionDestroy(this.select.options.indexOf(this))}},hr=dr,pr=r(hr,lr,cr,!1,null,null,null);pr.options.__file="packages/select/src/option.vue";var gr=pr.exports,mr=n(30),vr=n.n(mr),yr=n(15),br=n(27),_r=n.n(br),wr={data:function(){return{hoverOption:-1}},computed:{optionsAllDisabled:function(){return this.options.filter(function(t){return t.visible}).every(function(t){return t.disabled})}},watch:{hoverIndex:function(t){var e=this;"number"==typeof t&&t>-1&&(this.hoverOption=this.options[t]||{}),this.options.forEach(function(t){t.hover=e.hoverOption===t})}},methods:{navigateOptions:function(t){var e=this;if(!this.visible)return void(this.visible=!0);if(0!==this.options.length&&0!==this.filteredOptionsCount&&!this.optionsAllDisabled){"next"===t?++this.hoverIndex===this.options.length&&(this.hoverIndex=0):"prev"===t&&--this.hoverIndex<0&&(this.hoverIndex=this.options.length-1);var n=this.options[this.hoverIndex];!0!==n.disabled&&!0!==n.groupDisabled&&n.visible||this.navigateOptions(t),this.$nextTick(function(){return e.scrollToOption(e.hoverOption)})}}}},xr={mixins:[tt.a,U.a,kt()("reference"),wr],name:"ElSelect",componentName:"ElSelect",inject:{elForm:{default:""},elFormItem:{default:""}},provide:function(){return{select:this}},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},readonly:function(){return!this.filterable||this.multiple||!Object(H.isIE)()&&!Object(H.isEdge)()&&!this.visible},showClose:function(){var t=this.multiple?Array.isArray(this.value)&&this.value.length>0:void 0!==this.value&&null!==this.value&&""!==this.value;return this.clearable&&!this.selectDisabled&&this.inputHovering&&t},iconClass:function(){return this.remote&&this.filterable?"":this.visible?"arrow-up is-reverse":"arrow-up"},debounce:function(){return this.remote?300:0},emptyText:function(){return this.loading?this.loadingText||this.t("el.select.loading"):(!this.remote||""!==this.query||0!==this.options.length)&&(this.filterable&&this.query&&this.options.length>0&&0===this.filteredOptionsCount?this.noMatchText||this.t("el.select.noMatch"):0===this.options.length?this.noDataText||this.t("el.select.noData"):null)},showNewOption:function(){var t=this,e=this.options.filter(function(t){return!t.created}).some(function(e){return e.currentLabel===t.query});return this.filterable&&this.allowCreate&&""!==this.query&&!e},selectSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},selectDisabled:function(){return this.disabled||(this.elForm||{}).disabled},collapseTagSize:function(){return["small","mini"].indexOf(this.selectSize)>-1?"mini":"small"},propPlaceholder:function(){return void 0!==this.placeholder?this.placeholder:this.t("el.select.placeholder")}},components:{ElInput:V.a,ElSelectMenu:ur,ElOption:gr,ElTag:vr.a,ElScrollbar:vt.a},directives:{Clickoutside:ft.a},props:{name:String,id:String,value:{required:!0},autocomplete:{type:String,default:"off"},autoComplete:{type:String,validator:function(t){return!0}},automaticDropdown:Boolean,size:String,disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:String,remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String,required:!1},defaultFirstOption:Boolean,reserveKeyword:Boolean,valueKey:{type:String,default:"value"},collapseTags:Boolean,popperAppendToBody:{type:Boolean,default:!0}},data:function(){return{options:[],cachedOptions:[],createdLabel:null,createdSelected:!1,selected:this.multiple?[]:{},inputLength:20,inputWidth:0,initialInputHeight:0,cachedPlaceHolder:"",optionsCount:0,filteredOptionsCount:0,visible:!1,softFocus:!1,selectedLabel:"",hoverIndex:-1,query:"",previousQuery:null,inputHovering:!1,currentPlaceholder:"",menuVisibleOnFocus:!1,isOnComposition:!1,isSilentBlur:!1}},watch:{selectDisabled:function(){var t=this;this.$nextTick(function(){t.resetInputHeight()})},propPlaceholder:function(t){this.cachedPlaceHolder=this.currentPlaceholder=t},value:function(t,e){this.multiple&&(this.resetInputHeight(),t&&t.length>0||this.$refs.input&&""!==this.query?this.currentPlaceholder="":this.currentPlaceholder=this.cachedPlaceHolder,this.filterable&&!this.reserveKeyword&&(this.query="",this.handleQueryChange(this.query))),this.setSelected(),this.filterable&&!this.multiple&&(this.inputLength=20),Object(H.valueEquals)(t,e)||this.dispatch("ElFormItem","el.form.change",t)},visible:function(t){var e=this;t?(this.broadcast("ElSelectDropdown","updatePopper"),this.filterable&&(this.query=this.remote?"":this.selectedLabel,this.handleQueryChange(this.query),this.multiple?this.$refs.input.focus():(this.remote||(this.broadcast("ElOption","queryChange",""),this.broadcast("ElOptionGroup","queryChange")),this.selectedLabel&&(this.currentPlaceholder=this.selectedLabel,this.selectedLabel="")))):(this.broadcast("ElSelectDropdown","destroyPopper"),this.$refs.input&&this.$refs.input.blur(),this.query="",this.previousQuery=null,this.selectedLabel="",this.inputLength=20,this.menuVisibleOnFocus=!1,this.resetHoverIndex(),this.$nextTick(function(){e.$refs.input&&""===e.$refs.input.value&&0===e.selected.length&&(e.currentPlaceholder=e.cachedPlaceHolder)}),this.multiple||(this.selected&&(this.filterable&&this.allowCreate&&this.createdSelected&&this.createdLabel?this.selectedLabel=this.createdLabel:this.selectedLabel=this.selected.currentLabel,this.filterable&&(this.query=this.selectedLabel)),this.filterable&&(this.currentPlaceholder=this.cachedPlaceHolder))),this.$emit("visible-change",t)},options:function(){var t=this;if(!this.$isServer){this.$nextTick(function(){t.broadcast("ElSelectDropdown","updatePopper")}),this.multiple&&this.resetInputHeight();var e=this.$el.querySelectorAll("input");-1===[].indexOf.call(e,document.activeElement)&&this.setSelected(),this.defaultFirstOption&&(this.filterable||this.remote)&&this.filteredOptionsCount&&this.checkDefaultFirstOption()}}},methods:{handleNavigate:function(t){this.isOnComposition||this.navigateOptions(t)},handleComposition:function(t){var e=this,n=t.target.value;if("compositionend"===t.type)this.isOnComposition=!1,this.$nextTick(function(t){return e.handleQueryChange(n)});else{var r=n[n.length-1]||"";this.isOnComposition=!Object(He.isKorean)(r)}},handleQueryChange:function(t){var e=this;if(this.previousQuery!==t&&!this.isOnComposition){if(null===this.previousQuery&&("function"==typeof this.filterMethod||"function"==typeof this.remoteMethod))return void(this.previousQuery=t);this.previousQuery=t,this.$nextTick(function(){e.visible&&e.broadcast("ElSelectDropdown","updatePopper")}),this.hoverIndex=-1,this.multiple&&this.filterable&&this.$nextTick(function(){var t=15*e.$refs.input.value.length+20;e.inputLength=e.collapseTags?Math.min(50,t):t,e.managePlaceholder(),e.resetInputHeight()}),this.remote&&"function"==typeof this.remoteMethod?(this.hoverIndex=-1,this.remoteMethod(t)):"function"==typeof this.filterMethod?(this.filterMethod(t),this.broadcast("ElOptionGroup","queryChange")):(this.filteredOptionsCount=this.optionsCount,this.broadcast("ElOption","queryChange",t),this.broadcast("ElOptionGroup","queryChange")),this.defaultFirstOption&&(this.filterable||this.remote)&&this.filteredOptionsCount&&this.checkDefaultFirstOption()}},scrollToOption:function(t){var e=Array.isArray(t)&&t[0]?t[0].$el:t.$el;if(this.$refs.popper&&e){var n=this.$refs.popper.$el.querySelector(".el-select-dropdown__wrap");_r()(n,e)}this.$refs.scrollbar&&this.$refs.scrollbar.handleScroll()},handleMenuEnter:function(){var t=this;this.$nextTick(function(){return t.scrollToOption(t.selected)})},emitChange:function(t){Object(H.valueEquals)(this.value,t)||this.$emit("change",t)},getOption:function(t){for(var e=void 0,n="[object object]"===Object.prototype.toString.call(t).toLowerCase(),r="[object null]"===Object.prototype.toString.call(t).toLowerCase(),i="[object undefined]"===Object.prototype.toString.call(t).toLowerCase(),o=this.cachedOptions.length-1;o>=0;o--){var a=this.cachedOptions[o];if(n?Object(H.getValueByPath)(a.value,this.valueKey)===Object(H.getValueByPath)(t,this.valueKey):a.value===t){e=a;break}}if(e)return e;var s=n||r||i?"":String(t),u={value:t,currentLabel:s};return this.multiple&&(u.hitState=!1),u},setSelected:function(){var t=this;if(!this.multiple){var e=this.getOption(this.value);return e.created?(this.createdLabel=e.currentLabel,this.createdSelected=!0):this.createdSelected=!1,this.selectedLabel=e.currentLabel,this.selected=e,void(this.filterable&&(this.query=this.selectedLabel))}var n=[];Array.isArray(this.value)&&this.value.forEach(function(e){n.push(t.getOption(e))}),this.selected=n,this.$nextTick(function(){t.resetInputHeight()})},handleFocus:function(t){this.softFocus?this.softFocus=!1:((this.automaticDropdown||this.filterable)&&(this.filterable&&!this.visible&&(this.menuVisibleOnFocus=!0),this.visible=!0),this.$emit("focus",t))},blur:function(){this.visible=!1,this.$refs.reference.blur()},handleBlur:function(t){var e=this;setTimeout(function(){e.isSilentBlur?e.isSilentBlur=!1:e.$emit("blur",t)},50),this.softFocus=!1},handleClearClick:function(t){this.deleteSelected(t)},doDestroy:function(){this.$refs.popper&&this.$refs.popper.doDestroy()},handleClose:function(){this.visible=!1},toggleLastOptionHitState:function(t){if(Array.isArray(this.selected)){var e=this.selected[this.selected.length-1];if(e)return!0===t||!1===t?(e.hitState=t,t):(e.hitState=!e.hitState,e.hitState)}},deletePrevTag:function(t){if(t.target.value.length<=0&&!this.toggleLastOptionHitState()){var e=this.value.slice();e.pop(),this.$emit("input",e),this.emitChange(e)}},managePlaceholder:function(){""!==this.currentPlaceholder&&(this.currentPlaceholder=this.$refs.input.value?"":this.cachedPlaceHolder)},resetInputState:function(t){8!==t.keyCode&&this.toggleLastOptionHitState(!1),this.inputLength=15*this.$refs.input.value.length+20,this.resetInputHeight()},resetInputHeight:function(){var t=this;this.collapseTags&&!this.filterable||this.$nextTick(function(){if(t.$refs.reference){var e=t.$refs.reference.$el.childNodes,n=[].filter.call(e,function(t){return"INPUT"===t.tagName})[0],r=t.$refs.tags,i=r?Math.round(r.getBoundingClientRect().height):0,o=t.initialInputHeight||40;n.style.height=0===t.selected.length?o+"px":Math.max(r?i+(i>o?6:0):0,o)+"px",t.visible&&!1!==t.emptyText&&t.broadcast("ElSelectDropdown","updatePopper")}})},resetHoverIndex:function(){var t=this;setTimeout(function(){t.multiple?t.selected.length>0?t.hoverIndex=Math.min.apply(null,t.selected.map(function(e){return t.options.indexOf(e)})):t.hoverIndex=-1:t.hoverIndex=t.options.indexOf(t.selected)},300)},handleOptionSelect:function(t,e){var n=this;if(this.multiple){var r=(this.value||[]).slice(),i=this.getValueIndex(r,t.value);i>-1?r.splice(i,1):(this.multipleLimit<=0||r.length<this.multipleLimit)&&r.push(t.value),this.$emit("input",r),this.emitChange(r),t.created&&(this.query="",this.handleQueryChange(""),this.inputLength=20),this.filterable&&this.$refs.input.focus()}else this.$emit("input",t.value),this.emitChange(t.value),this.visible=!1;this.isSilentBlur=e,this.setSoftFocus(),this.visible||this.$nextTick(function(){n.scrollToOption(t)})},setSoftFocus:function(){this.softFocus=!0;var t=this.$refs.input||this.$refs.reference;t&&t.focus()},getValueIndex:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments[1];if("[object object]"===Object.prototype.toString.call(e).toLowerCase()){var n=this.valueKey,r=-1;return t.some(function(t,i){return Object(H.getValueByPath)(t,n)===Object(H.getValueByPath)(e,n)&&(r=i,!0)}),r}return t.indexOf(e)},toggleMenu:function(){this.selectDisabled||(this.menuVisibleOnFocus?this.menuVisibleOnFocus=!1:this.visible=!this.visible,this.visible&&(this.$refs.input||this.$refs.reference).focus())},selectOption:function(){this.visible?this.options[this.hoverIndex]&&this.handleOptionSelect(this.options[this.hoverIndex]):this.toggleMenu()},deleteSelected:function(t){t.stopPropagation();var e=this.multiple?[]:"";this.$emit("input",e),this.emitChange(e),this.visible=!1,this.$emit("clear")},deleteTag:function(t,e){var n=this.selected.indexOf(e);if(n>-1&&!this.selectDisabled){var r=this.value.slice();r.splice(n,1),this.$emit("input",r),this.emitChange(r),this.$emit("remove-tag",e.value)}t.stopPropagation()},onInputChange:function(){this.filterable&&this.query!==this.selectedLabel&&(this.query=this.selectedLabel,this.handleQueryChange(this.query))},onOptionDestroy:function(t){t>-1&&(this.optionsCount--,this.filteredOptionsCount--,this.options.splice(t,1))},resetInputWidth:function(){this.inputWidth=this.$refs.reference.$el.getBoundingClientRect().width},handleResize:function(){this.resetInputWidth(),this.multiple&&this.resetInputHeight()},checkDefaultFirstOption:function(){this.hoverIndex=-1;for(var t=!1,e=this.options.length-1;e>=0;e--)if(this.options[e].created){t=!0,this.hoverIndex=e;break}if(!t)for(var n=0;n!==this.options.length;++n){var r=this.options[n];if(this.query){if(!r.disabled&&!r.groupDisabled&&r.visible){this.hoverIndex=n;break}}else if(r.itemSelected){this.hoverIndex=n;break}}},getValueKey:function(t){return"[object object]"!==Object.prototype.toString.call(t.value).toLowerCase()?t.value:Object(H.getValueByPath)(t.value,this.valueKey)}},created:function(){var t=this;this.cachedPlaceHolder=this.currentPlaceholder=this.propPlaceholder,this.multiple&&!Array.isArray(this.value)&&this.$emit("input",[]),!this.multiple&&Array.isArray(this.value)&&this.$emit("input",""),this.debouncedOnInputChange=lt()(this.debounce,function(){t.onInputChange()}),this.debouncedQueryChange=lt()(this.debounce,function(e){t.handleQueryChange(e.target.value)}),this.$on("handleOptionClick",this.handleOptionSelect),this.$on("setSelected",this.setSelected)},mounted:function(){var t=this;this.multiple&&Array.isArray(this.value)&&this.value.length>0&&(this.currentPlaceholder=""),Object(yr.addResizeListener)(this.$el,this.handleResize);var e=this.$refs.reference;if(e&&e.$el){var n={medium:36,small:32,mini:28},r=e.$el.querySelector("input");this.initialInputHeight=r.getBoundingClientRect().height||n[this.selectSize]}this.remote&&this.multiple&&this.resetInputHeight(),this.$nextTick(function(){e&&e.$el&&(t.inputWidth=e.$el.getBoundingClientRect().width)}),this.setSelected()},beforeDestroy:function(){this.$el&&this.handleResize&&Object(yr.removeResizeListener)(this.$el,this.handleResize)}},kr=xr,Sr=r(kr,er,nr,!1,null,null,null);Sr.options.__file="packages/select/src/select.vue";var Cr=Sr.exports;Cr.install=function(t){t.component(Cr.name,Cr)};var Er=Cr;gr.install=function(t){t.component(gr.name,gr)};var Tr=gr,Ar=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("ul",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"el-select-group__wrap"},[n("li",{staticClass:"el-select-group__title"},[t._v(t._s(t.label))]),n("li",[n("ul",{staticClass:"el-select-group"},[t._t("default")],2)])])},Or=[];Ar._withStripped=!0;var Pr={mixins:[tt.a],name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:{type:Boolean,default:!1}},data:function(){return{visible:!0}},watch:{disabled:function(t){this.broadcast("ElOption","handleGroupDisabled",t)}},methods:{queryChange:function(){this.visible=this.$children&&Array.isArray(this.$children)&&this.$children.some(function(t){return!0===t.visible})}},created:function(){this.$on("queryChange",this.queryChange)},mounted:function(){this.disabled&&this.broadcast("ElOption","handleGroupDisabled",this.disabled)}},Nr=Pr,Dr=r(Nr,Ar,Or,!1,null,null,null);Dr.options.__file="packages/select/src/option-group.vue";var Mr=Dr.exports;Mr.install=function(t){t.component(Mr.name,Mr)};var Ir=Mr,Rr=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("button",{staticClass:"el-button",class:[t.type?"el-button--"+t.type:"",t.buttonSize?"el-button--"+t.buttonSize:"",{"is-disabled":t.buttonDisabled,"is-loading":t.loading,"is-plain":t.plain,"is-round":t.round,"is-circle":t.circle}],attrs:{disabled:t.buttonDisabled||t.loading,autofocus:t.autofocus,type:t.nativeType},on:{click:t.handleClick}},[t.loading?n("i",{staticClass:"el-icon-loading"}):t._e(),t.icon&&!t.loading?n("i",{class:t.icon}):t._e(),t.$slots.default?n("span",[t._t("default")],2):t._e()])},$r=[];Rr._withStripped=!0;var Lr={name:"ElButton",inject:{elForm:{default:""},elFormItem:{default:""}},props:{type:{type:String,default:"default"},size:String,icon:{type:String,default:""},nativeType:{type:String,default:"button"},loading:Boolean,disabled:Boolean,plain:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},buttonSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},buttonDisabled:function(){return this.$options.propsData.hasOwnProperty("disabled")?this.disabled:(this.elForm||{}).disabled}},methods:{handleClick:function(t){this.$emit("click",t)}}},jr=Lr,Fr=r(jr,Rr,$r,!1,null,null,null);Fr.options.__file="packages/button/src/button.vue";var Br=Fr.exports;Br.install=function(t){t.component(Br.name,Br)};var Vr=Br,zr=function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"el-button-group"},[t._t("default")],2)},Ur=[];zr._withStripped=!0;var Hr={name:"ElButtonGroup"},qr=Hr,Wr=r(qr,zr,Ur,!1,null,null,null);Wr.options.__file="packages/button/src/button-group.vue";var Gr=Wr.exports;Gr.install=function(t){t.component(Gr.name,Gr)};var Yr=Gr,Kr=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-table",class:[{"el-table--fit":t.fit,"el-table--striped":t.stripe,"el-table--border":t.border||t.isGroup,"el-table--hidden":t.isHidden,"el-table--group":t.isGroup,"el-table--fluid-height":t.maxHeight,"el-table--scrollable-x":t.layout.scrollX,"el-table--scrollable-y":t.layout.scrollY,"el-table--enable-row-hover":!t.store.states.isComplex,"el-table--enable-row-transition":0!==(t.store.states.data||[]).length&&(t.store.states.data||[]).length<100},t.tableSize?"el-table--"+t.tableSize:""],on:{mouseleave:function(e){t.handleMouseLeave(e)}}},[n("div",{ref:"hiddenColumns",staticClass:"hidden-columns"},[t._t("default")],2),t.showHeader?n("div",{directives:[{name:"mousewheel",rawName:"v-mousewheel",value:t.handleHeaderFooterMousewheel,expression:"handleHeaderFooterMousewheel"}],ref:"headerWrapper",staticClass:"el-table__header-wrapper"},[n("table-header",{ref:"tableHeader",style:{width:t.layout.bodyWidth?t.layout.bodyWidth+"px":""},attrs:{store:t.store,border:t.border,"default-sort":t.defaultSort}})],1):t._e(),n("div",{ref:"bodyWrapper",staticClass:"el-table__body-wrapper",class:[t.layout.scrollX?"is-scrolling-"+t.scrollPosition:"is-scrolling-none"],style:[t.bodyHeight]},[n("table-body",{style:{width:t.bodyWidth},attrs:{context:t.context,store:t.store,stripe:t.stripe,"row-class-name":t.rowClassName,"row-style":t.rowStyle,highlight:t.highlightCurrentRow}}),t.data&&0!==t.data.length?t._e():n("div",{ref:"emptyBlock",staticClass:"el-table__empty-block",style:t.emptyBlockStyle},[n("span",{staticClass:"el-table__empty-text"},[t._t("empty",[t._v(t._s(t.emptyText||t.t("el.table.emptyText")))])],2)]),t.$slots.append?n("div",{ref:"appendWrapper",staticClass:"el-table__append-wrapper"},[t._t("append")],2):t._e()],1),t.showSummary?n("div",{directives:[{name:"show",rawName:"v-show",value:t.data&&t.data.length>0,expression:"data && data.length > 0"},{name:"mousewheel",rawName:"v-mousewheel",value:t.handleHeaderFooterMousewheel,expression:"handleHeaderFooterMousewheel"}],ref:"footerWrapper",staticClass:"el-table__footer-wrapper"},[n("table-footer",{style:{width:t.layout.bodyWidth?t.layout.bodyWidth+"px":""},attrs:{store:t.store,border:t.border,"sum-text":t.sumText||t.t("el.table.sumText"),"summary-method":t.summaryMethod,"default-sort":t.defaultSort}})],1):t._e(),t.fixedColumns.length>0?n("div",{directives:[{name:"mousewheel",rawName:"v-mousewheel",value:t.handleFixedMousewheel,expression:"handleFixedMousewheel"}],ref:"fixedWrapper",staticClass:"el-table__fixed",style:[{width:t.layout.fixedWidth?t.layout.fixedWidth+"px":""},t.fixedHeight]},[t.showHeader?n("div",{ref:"fixedHeaderWrapper",staticClass:"el-table__fixed-header-wrapper"},[n("table-header",{ref:"fixedTableHeader",style:{width:t.bodyWidth},attrs:{fixed:"left",border:t.border,store:t.store}})],1):t._e(),n("div",{ref:"fixedBodyWrapper",staticClass:"el-table__fixed-body-wrapper",style:[{top:t.layout.headerHeight+"px"},t.fixedBodyHeight]},[n("table-body",{style:{width:t.bodyWidth},attrs:{fixed:"left",store:t.store,stripe:t.stripe,highlight:t.highlightCurrentRow,"row-class-name":t.rowClassName,"row-style":t.rowStyle}}),t.$slots.append?n("div",{staticClass:"el-table__append-gutter",style:{height:t.layout.appendHeight+"px"}}):t._e()],1),t.showSummary?n("div",{directives:[{name:"show",rawName:"v-show",value:t.data&&t.data.length>0,expression:"data && data.length > 0"}],ref:"fixedFooterWrapper",staticClass:"el-table__fixed-footer-wrapper"},[n("table-footer",{style:{width:t.bodyWidth},attrs:{fixed:"left",border:t.border,"sum-text":t.sumText||t.t("el.table.sumText"),"summary-method":t.summaryMethod,store:t.store}})],1):t._e()]):t._e(),t.rightFixedColumns.length>0?n("div",{directives:[{name:"mousewheel",rawName:"v-mousewheel",value:t.handleFixedMousewheel,expression:"handleFixedMousewheel"}],ref:"rightFixedWrapper",staticClass:"el-table__fixed-right",style:[{width:t.layout.rightFixedWidth?t.layout.rightFixedWidth+"px":"",right:t.layout.scrollY?(t.border?t.layout.gutterWidth:t.layout.gutterWidth||0)+"px":""},t.fixedHeight]},[t.showHeader?n("div",{ref:"rightFixedHeaderWrapper",staticClass:"el-table__fixed-header-wrapper"},[n("table-header",{ref:"rightFixedTableHeader",style:{width:t.bodyWidth},attrs:{fixed:"right",border:t.border,store:t.store}})],1):t._e(),n("div",{ref:"rightFixedBodyWrapper",staticClass:"el-table__fixed-body-wrapper",style:[{top:t.layout.headerHeight+"px"},t.fixedBodyHeight]},[n("table-body",{style:{width:t.bodyWidth},attrs:{fixed:"right",store:t.store,stripe:t.stripe,"row-class-name":t.rowClassName,"row-style":t.rowStyle,highlight:t.highlightCurrentRow}}),t.$slots.append?n("div",{staticClass:"el-table__append-gutter",style:{height:t.layout.appendHeight+"px"}}):t._e()],1),t.showSummary?n("div",{directives:[{name:"show",rawName:"v-show",value:t.data&&t.data.length>0,expression:"data && data.length > 0"}],ref:"rightFixedFooterWrapper",staticClass:"el-table__fixed-footer-wrapper"},[n("table-footer",{style:{width:t.bodyWidth},attrs:{fixed:"right",border:t.border,"sum-text":t.sumText||t.t("el.table.sumText"),"summary-method":t.summaryMethod,store:t.store}})],1):t._e()]):t._e(),t.rightFixedColumns.length>0?n("div",{ref:"rightFixedPatch",staticClass:"el-table__fixed-right-patch",style:{width:t.layout.scrollY?t.layout.gutterWidth+"px":"0",height:t.layout.headerHeight+"px"}}):t._e(),n("div",{directives:[{name:"show",rawName:"v-show",value:t.resizeProxyVisible,expression:"resizeProxyVisible"}],ref:"resizeProxy",staticClass:"el-table__column-resize-proxy"})])},Xr=[];Kr._withStripped=!0;var Jr=n(14),Qr=n.n(Jr),Zr=n(36),ti=n(39),ei=n.n(ti),ni="undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>-1,ri=function(t,e){t&&t.addEventListener&&t.addEventListener(ni?"DOMMouseScroll":"mousewheel",function(t){var n=ei()(t);e&&e.apply(this,[t,n])})},ii={bind:function(t,e){ri(t,e.value)}},oi=n(6),ai=n.n(oi),si="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ui=function(t){for(var e=t.target;e&&"HTML"!==e.tagName.toUpperCase();){if("TD"===e.tagName.toUpperCase())return e;e=e.parentNode}return null},li=function(t){return null!==t&&"object"===(void 0===t?"undefined":si(t))},ci=function(t,e,n,r,i){if(!e&&!r&&(!i||Array.isArray(i)&&!i.length))return t;n="string"==typeof n?"descending"===n?-1:1:n&&n<0?-1:1;var o=r?null:function(n,r){return i?(Array.isArray(i)||(i=[i]),i.map(function(e){return"string"==typeof e?Object(H.getValueByPath)(n,e):e(n,r,t)})):("$key"!==e&&li(n)&&"$value"in n&&(n=n.$value),[li(n)?Object(H.getValueByPath)(n,e):n])},a=function(t,e){if(r)return r(t.value,e.value);for(var n=0,i=t.key.length;n<i;n++){if(t.key[n]<e.key[n])return-1;if(t.key[n]>e.key[n])return 1}return 0};return t.map(function(t,e){return{value:t,index:e,key:o?o(t,e):null}}).sort(function(t,e){var r=a(t,e);return r||(r=t.index-e.index),r*n}).map(function(t){return t.value})},fi=function(t,e){var n=null;return t.columns.forEach(function(t){t.id===e&&(n=t)}),n},di=function(t,e){for(var n=null,r=0;r<t.columns.length;r++){var i=t.columns[r];if(i.columnKey===e){n=i;break}}return n},hi=function(t,e){var n=(e.className||"").match(/el-table_[^\s]+/gm);return n?fi(t,n[0]):null},pi=function(t,e){if(!t)throw new Error("row is required when get row identity");if("string"==typeof e){if(e.indexOf(".")<0)return t[e];for(var n=e.split("."),r=t,i=0;i<n.length;i++)r=r[n[i]];return r}if("function"==typeof e)return e.call(null,t)},gi=function(t,e){var n={};return(t||[]).forEach(function(t,r){n[pi(t,e)]={row:t,index:r}}),n},mi=function(t,e){var n=Object.getOwnPropertyNames(t),r=Object.getOwnPropertyNames(e);if(n.length!==r.length)return!1;for(var i=0;i<n.length;i++){var o=n[i];if(t[o]!==e[o])return!1}return!0},vi={data:function(){return{states:{defaultExpandAll:!1,expandRows:[]}}},methods:{updateExpandRows:function(){var t=this.states,e=t.data,n=void 0===e?[]:e,r=t.rowKey,i=t.defaultExpandAll,o=t.expandRows;if(i)this.states.expandRows=n.slice();else if(r){var a=gi(o,r);this.states.expandRows=n.reduce(function(t,e){var n=pi(e,r);return a[n]&&t.push(e),t},[])}else this.states.expandRows=[]},toggleRowExpansion:function(t,e){d(this.states.expandRows,t,e)&&(this.table.$emit("expand-change",t,this.states.expandRows.slice()),this.scheduleLayout())},setExpandRowKeys:function(t){this.assertRowKey();var e=this.states,n=e.data,r=e.rowKey,i=gi(n,r);this.states.expandRows=t.reduce(function(t,e){var n=i[e];return n&&t.push(n.row),t},[])},isRowExpanded:function(t){var e=this.states,n=e.expandRows,r=void 0===n?[]:n,i=e.rowKey;if(i){return!!gi(r,i)[pi(t,i)]}return-1!==r.indexOf(t)}}},yi={data:function(){return{states:{_currentRowKey:null,currentRow:null}}},methods:{setCurrentRowKey:function(t){this.assertRowKey(),this.states._currentRowKey=t,this.setCurrentRowByKey(t)},restoreCurrentRowKey:function(){this.states._currentRowKey=null},setCurrentRowByKey:function(t){var e=this.states,n=e.data,r=void 0===n?[]:n,i=e.rowKey,o=null;i&&(o=Object(H.arrayFind)(r,function(e){return pi(e,i)===t})),e.currentRow=o},updateCurrentRow:function(t){var e=this.states,n=this.table,r=e.currentRow;if(t&&t!==r)return e.currentRow=t,void n.$emit("current-change",t,r);!t&&r&&(e.currentRow=null,n.$emit("current-change",null,r))},updateCurrentRowData:function(){var t=this.states,e=this.table,n=t.rowKey,r=t._currentRowKey,i=t.data||[],o=t.currentRow;if(-1===i.indexOf(o)&&o){if(n){var a=pi(o,n);this.setCurrentRowByKey(a)}else t.currentRow=null;null===t.currentRow&&e.$emit("current-change",null,o)}else r&&(this.setCurrentRowByKey(r),this.restoreCurrentRowKey())}}},bi=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},_i={data:function(){return{states:{expandRowKeys:[],treeData:{},indent:16,lazy:!1,lazyTreeNodeMap:{},lazyColumnIdentifier:"hasChildren",childrenColumnName:"children"}}},computed:{normalizedData:function(){if(!this.states.rowKey)return{};var t=this.states.data||[];return this.normalize(t)},normalizedLazyNode:function(){var t=this.states,e=t.rowKey,n=t.lazyTreeNodeMap,r=t.lazyColumnIdentifier,i=Object.keys(n),o={};return i.length?(i.forEach(function(t){if(n[t].length){var i={children:[]};n[t].forEach(function(t){var n=pi(t,e);i.children.push(n),t[r]&&!o[n]&&(o[n]={children:[]})}),o[t]=i}}),o):o}},watch:{normalizedData:"updateTreeData",normalizedLazyNode:"updateTreeData"},methods:{normalize:function(t){var e=this.states,n=e.childrenColumnName,r=e.lazyColumnIdentifier,i=e.rowKey,o=e.lazy,a={};return h(t,function(t,e,n){var r=pi(t,i);Array.isArray(e)?a[r]={children:e.map(function(t){return pi(t,i)}),level:n}:o&&(a[r]={children:[],lazy:!0,level:n})},n,r),a},updateTreeData:function(){var t=this.normalizedData,e=this.normalizedLazyNode,n=Object.keys(t),r={};if(n.length){var i=this.states,o=i.treeData,a=i.defaultExpandAll,s=i.expandRowKeys,u=i.lazy,l=[],c=function(t,e){var n=a||s&&-1!==s.indexOf(e);return!!(t&&t.expanded||n)};n.forEach(function(e){var n=o[e],i=bi({},t[e]);if(i.expanded=c(n,e),i.lazy){var a=n||{},s=a.loaded,u=void 0!==s&&s,f=a.loading,d=void 0!==f&&f;i.loaded=!!u,i.loading=!!d,l.push(e)}r[e]=i});var f=Object.keys(e);u&&f.length&&l.length&&f.forEach(function(t){var n=o[t],i=e[t].children;if(-1!==l.indexOf(t)){if(0!==r[t].children.length)throw new Error("[ElTable]children must be an empty array.");r[t].children=i}else{var a=n||{},s=a.loaded,u=void 0!==s&&s,f=a.loading,d=void 0!==f&&f;r[t]={lazy:!0,loaded:!!u,loading:!!d,expanded:c(n,t),children:i,level:""}}})}this.states.treeData=r,this.updateTableScrollY()},updateTreeExpandKeys:function(t){this.states.expandRowKeys=t,this.updateTreeData()},toggleTreeExpansion:function(t,e){this.assertRowKey();var n=this.states,r=n.rowKey,i=n.treeData,o=pi(t,r),a=o&&i[o];if(o&&a&&"expanded"in a){var s=a.expanded;e=void 0===e?!a.expanded:e,i[o].expanded=e,s!==e&&this.table.$emit("expand-change",t,e),this.updateTableScrollY()}},loadOrToggle:function(t){this.assertRowKey();var e=this.states,n=e.lazy,r=e.treeData,i=e.rowKey,o=pi(t,i),a=r[o];n&&a&&"loaded"in a&&!a.loaded?this.loadData(t,o,a):this.toggleTreeExpansion(t)},loadData:function(t,e,n){var r=this,i=this.table.load,o=this.states.treeData;i&&!o[e].loaded&&(o[e].loading=!0,i(t,n,function(n){if(!Array.isArray(n))throw new Error("[ElTable] data must be an array");var i=r.states,o=i.lazyTreeNodeMap,a=i.treeData;a[e].loading=!1,a[e].loaded=!0,a[e].expanded=!0,n.length&&r.$set(o,e,n),r.table.$emit("expand-change",t,!0)}))}}},wi=function(t,e){var n=e.sortingColumn;return n&&"string"!=typeof n.sortable?ci(t,e.sortProp,e.sortOrder,n.sortMethod,n.sortBy):t},xi=function t(e){var n=[];return e.forEach(function(e){e.children?n.push.apply(n,t(e.children)):n.push(e)}),n},ki=ai.a.extend({data:function(){return{states:{rowKey:null,data:[],isComplex:!1,_columns:[],originColumns:[],columns:[],fixedColumns:[],rightFixedColumns:[],leafColumns:[],fixedLeafColumns:[],rightFixedLeafColumns:[],leafColumnsLength:0,fixedLeafColumnsLength:0,rightFixedLeafColumnsLength:0,isAllSelected:!1,selection:[],reserveSelection:!1,selectOnIndeterminate:!1,selectable:null,filters:{},filteredData:null,sortingColumn:null,sortProp:null,sortOrder:null,hoverRow:null}}},mixins:[vi,yi,_i],methods:{assertRowKey:function(){if(!this.states.rowKey)throw new Error("[ElTable] prop row-key is required")},updateColumns:function(){var t=this.states,e=t._columns||[];t.fixedColumns=e.filter(function(t){return!0===t.fixed||"left"===t.fixed}),t.rightFixedColumns=e.filter(function(t){return"right"===t.fixed}),t.fixedColumns.length>0&&e[0]&&"selection"===e[0].type&&!e[0].fixed&&(e[0].fixed=!0,t.fixedColumns.unshift(e[0]));var n=e.filter(function(t){return!t.fixed});t.originColumns=[].concat(t.fixedColumns).concat(n).concat(t.rightFixedColumns);var r=xi(n),i=xi(t.fixedColumns),o=xi(t.rightFixedColumns);t.leafColumnsLength=r.length,t.fixedLeafColumnsLength=i.length,t.rightFixedLeafColumnsLength=o.length,t.columns=[].concat(i).concat(r).concat(o),t.isComplex=t.fixedColumns.length>0||t.rightFixedColumns.length>0},scheduleLayout:function(t){t&&this.updateColumns(),this.table.debouncedUpdateLayout()},isSelected:function(t){var e=this.states.selection;return(void 0===e?[]:e).indexOf(t)>-1},clearSelection:function(){var t=this.states;t.isAllSelected=!1,t.selection.length&&(t.selection=[],this.table.$emit("selection-change",[]))},cleanSelection:function(){var t=this.states,e=t.data,n=t.rowKey,r=t.selection,i=void 0;if(n){i=[];var o=gi(r,n),a=gi(e,n);for(var s in o)o.hasOwnProperty(s)&&!a[s]&&i.push(o[s].row)}else i=r.filter(function(t){return-1===e.indexOf(t)});if(i.length){var u=r.filter(function(t){return-1===i.indexOf(t)});t.selection=u,this.table.$emit("selection-change",u.slice())}},toggleRowSelection:function(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(d(this.states.selection,t,e)){var r=(this.states.selection||[]).slice();n&&this.table.$emit("select",r,t),this.table.$emit("selection-change",r)}},_toggleAllSelection:function(){var t=this.states,e=t.data,n=void 0===e?[]:e,r=t.selection,i=t.selectOnIndeterminate?!t.isAllSelected:!(t.isAllSelected||r.length);t.isAllSelected=i;var o=!1;n.forEach(function(e,n){t.selectable?t.selectable.call(null,e,n)&&d(r,e,i)&&(o=!0):d(r,e,i)&&(o=!0)}),o&&this.table.$emit("selection-change",r?r.slice():[]),this.table.$emit("select-all",r)},updateSelectionByRowKey:function(){var t=this.states,e=t.selection,n=t.rowKey,r=t.data,i=gi(e,n);r.forEach(function(t){var r=pi(t,n),o=i[r];o&&(e[o.index]=t)})},updateAllSelected:function(){var t=this.states,e=t.selection,n=t.rowKey,r=t.selectable,i=t.data||[];if(0===i.length)return void(t.isAllSelected=!1);var o=void 0;n&&(o=gi(e,n));for(var a=!0,s=0,u=0,l=i.length;u<l;u++){var c=i[u],f=r&&r.call(null,c,u);if(function(t){return o?!!o[pi(t,n)]:-1!==e.indexOf(t)}(c))s++;else if(!r||f){a=!1;break}}0===s&&(a=!1),t.isAllSelected=a},updateFilters:function(t,e){Array.isArray(t)||(t=[t]);var n=this.states,r={};return t.forEach(function(t){n.filters[t.id]=e,r[t.columnKey||t.id]=e}),r},updateSort:function(t,e,n){this.states.sortingColumn&&this.states.sortingColumn!==t&&(this.states.sortingColumn.order=null),this.states.sortingColumn=t,this.states.sortProp=e,this.states.sortOrder=n},execFilter:function(){var t=this,e=this.states,n=e._data,r=e.filters,i=n;Object.keys(r).forEach(function(n){var r=e.filters[n];if(r&&0!==r.length){var o=fi(t.states,n);o&&o.filterMethod&&(i=i.filter(function(t){return r.some(function(e){return o.filterMethod.call(null,e,t,o)})}))}}),e.filteredData=i},execSort:function(){var t=this.states;t.data=wi(t.filteredData,t)},execQuery:function(t){t&&t.filter||this.execFilter(),this.execSort()},clearFilter:function(t){var e=this.states,n=this.table.$refs,r=n.tableHeader,i=n.fixedTableHeader,o=n.rightFixedTableHeader,a={};r&&(a=Ue()(a,r.filterPanels)),i&&(a=Ue()(a,i.filterPanels)),o&&(a=Ue()(a,o.filterPanels));var s=Object.keys(a);if(s.length)if("string"==typeof t&&(t=[t]),Array.isArray(t)){var u=t.map(function(t){return di(e,t)});s.forEach(function(t){u.find(function(e){return e.id===t})&&(a[t].filteredValue=[])}),this.commit("filterChange",{column:u,values:[],silent:!0,multi:!0})}else s.forEach(function(t){a[t].filteredValue=[]}),e.filters={},this.commit("filterChange",{column:{},values:[],silent:!0})},clearSort:function(){this.states.sortingColumn&&(this.updateSort(null,null,null),this.commit("changeSortCondition",{silent:!0}))},setExpandRowKeysAdapter:function(t){this.setExpandRowKeys(t),this.updateTreeExpandKeys(t)},toggleRowExpansionAdapter:function(t,e){this.states.columns.some(function(t){return"expand"===t.type})?this.toggleRowExpansion(t,e):this.toggleTreeExpansion(t,e)}}});ki.prototype.mutations={setData:function(t,e){var n=t._data!==e;t._data=e,this.execQuery(),this.updateCurrentRowData(),this.updateExpandRows(),t.reserveSelection?(this.assertRowKey(),this.updateSelectionByRowKey()):n?this.clearSelection():this.cleanSelection(),this.updateAllSelected(),this.updateTableScrollY()},insertColumn:function(t,e,n,r){var i=t._columns;r&&((i=r.children)||(i=r.children=[])),void 0!==n?i.splice(n,0,e):i.push(e),"selection"===e.type&&(t.selectable=e.selectable,t.reserveSelection=e.reserveSelection),this.table.$ready&&(this.updateColumns(),this.scheduleLayout())},removeColumn:function(t,e,n){var r=t._columns;n&&((r=n.children)||(r=n.children=[])),r&&r.splice(r.indexOf(e),1),this.table.$ready&&(this.updateColumns(),this.scheduleLayout())},sort:function(t,e){var n=e.prop,r=e.order,i=e.init;if(n){var o=Object(H.arrayFind)(t.columns,function(t){return t.property===n});o&&(o.order=r,this.updateSort(o,n,r),this.commit("changeSortCondition",{init:i}))}},changeSortCondition:function(t,e){var n=t.sortingColumn,r=t.sortProp,i=t.sortOrder;null===i&&(t.sortingColumn=null,t.sortProp=null);var o={filter:!0};this.execQuery(o),e&&(e.silent||e.init)||this.table.$emit("sort-change",{column:n,prop:r,order:i}),this.updateTableScrollY()},filterChange:function(t,e){var n=e.column,r=e.values,i=e.silent,o=this.updateFilters(n,r);this.execQuery(),i||this.table.$emit("filter-change",o),this.updateTableScrollY()},toggleAllSelection:function(){this.toggleAllSelection()},rowSelectedChanged:function(t,e){this.toggleRowSelection(e),this.updateAllSelected()},setHoverRow:function(t,e){t.hoverRow=e},setCurrentRow:function(t,e){this.updateCurrentRow(e)}},ki.prototype.commit=function(t){var e=this.mutations;if(!e[t])throw new Error("Action not found: "+t);for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];e[t].apply(this,[this.states].concat(r))},ki.prototype.updateTableScrollY=function(){ai.a.nextTick(this.table.updateScrollY)};var Si=ki,Ci=n(31),Ei=n.n(Ci),Ti=function(){function t(e){m(this,t),this.observers=[],this.table=null,this.store=null,this.columns=null,this.fit=!0,this.showHeader=!0,this.height=null,this.scrollX=!1,this.scrollY=!1,this.bodyWidth=null,this.fixedWidth=null,this.rightFixedWidth=null,this.tableHeight=null,this.headerHeight=44,this.appendHeight=0,this.footerHeight=44,this.viewportHeight=null,this.bodyHeight=null,this.fixedBodyHeight=null,this.gutterWidth=Ei()();for(var n in e)e.hasOwnProperty(n)&&(this[n]=e[n]);if(!this.table)throw new Error("table is required for Table Layout");if(!this.store)throw new Error("store is required for Table Layout")}return t.prototype.updateScrollY=function(){if(null===this.height)return!1;var t=this.table.bodyWrapper;if(this.table.$el&&t){var e=t.querySelector(".el-table__body"),n=this.scrollY,r=e.offsetHeight>this.bodyHeight;return this.scrollY=r,n!==r}return!1},t.prototype.setHeight=function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"height";if(!ai.a.prototype.$isServer){var r=this.table.$el;if(t=c(t),this.height=t,!r&&(t||0===t))return ai.a.nextTick(function(){return e.setHeight(t,n)});"number"==typeof t?(r.style[n]=t+"px",this.updateElsHeight()):"string"==typeof t&&(r.style[n]=t,this.updateElsHeight())}},t.prototype.setMaxHeight=function(t){this.setHeight(t,"max-height")},t.prototype.getFlattenColumns=function(){var t=[];return this.table.columns.forEach(function(e){e.isColumnGroup?t.push.apply(t,e.columns):t.push(e)}),t},t.prototype.updateElsHeight=function(){var t=this;if(!this.table.$ready)return ai.a.nextTick(function(){return t.updateElsHeight()});var e=this.table.$refs,n=e.headerWrapper,r=e.appendWrapper,i=e.footerWrapper;if(this.appendHeight=r?r.offsetHeight:0,!this.showHeader||n){var o=n?n.querySelector(".el-table__header tr"):null,a=this.headerDisplayNone(o),s=this.headerHeight=this.showHeader?n.offsetHeight:0;if(this.showHeader&&!a&&n.offsetWidth>0&&(this.table.columns||[]).length>0&&s<2)return ai.a.nextTick(function(){return t.updateElsHeight()});var u=this.tableHeight=this.table.$el.clientHeight,l=this.footerHeight=i?i.offsetHeight:0;null!==this.height&&(this.bodyHeight=u-s-l+(i?1:0)),this.fixedBodyHeight=this.scrollX?this.bodyHeight-this.gutterWidth:this.bodyHeight;var c=!(this.store.states.data&&this.store.states.data.length);this.viewportHeight=this.scrollX?u-(c?0:this.gutterWidth):u,this.updateScrollY(),this.notifyObservers("scrollable")}},t.prototype.headerDisplayNone=function(t){if(!t)return!0;for(var e=t;"DIV"!==e.tagName;){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1},t.prototype.updateColumnsWidth=function(){if(!ai.a.prototype.$isServer){var t=this.fit,e=this.table.$el.clientWidth,n=0,r=this.getFlattenColumns(),i=r.filter(function(t){return"number"!=typeof t.width});if(r.forEach(function(t){"number"==typeof t.width&&t.realWidth&&(t.realWidth=null)}),i.length>0&&t){r.forEach(function(t){n+=t.width||t.minWidth||80});var o=this.scrollY?this.gutterWidth:0;if(n<=e-o){this.scrollX=!1;var a=e-o-n;if(1===i.length)i[0].realWidth=(i[0].minWidth||80)+a;else{var s=i.reduce(function(t,e){return t+(e.minWidth||80)},0),u=a/s,l=0;i.forEach(function(t,e){if(0!==e){var n=Math.floor((t.minWidth||80)*u);l+=n,t.realWidth=(t.minWidth||80)+n}}),i[0].realWidth=(i[0].minWidth||80)+a-l}}else this.scrollX=!0,i.forEach(function(t){t.realWidth=t.minWidth});this.bodyWidth=Math.max(n,e),this.table.resizeState.width=this.bodyWidth}else r.forEach(function(t){t.width||t.minWidth?t.realWidth=t.width||t.minWidth:t.realWidth=80,n+=t.realWidth}),this.scrollX=n>e,this.bodyWidth=n;var c=this.store.states.fixedColumns;if(c.length>0){var f=0;c.forEach(function(t){f+=t.realWidth||t.width}),this.fixedWidth=f}var d=this.store.states.rightFixedColumns;if(d.length>0){var h=0;d.forEach(function(t){h+=t.realWidth||t.width}),this.rightFixedWidth=h}this.notifyObservers("columns")}},t.prototype.addObserver=function(t){this.observers.push(t)},t.prototype.removeObserver=function(t){var e=this.observers.indexOf(t);-1!==e&&this.observers.splice(e,1)},t.prototype.notifyObservers=function(t){var e=this;this.observers.forEach(function(n){switch(t){case"columns":n.onColumnsChange(e);break;case"scrollable":n.onScrollableChange(e);break;default:throw new Error("Table Layout don't have event "+t+".")}})},t}(),Ai=Ti,Oi={created:function(){this.tableLayout.addObserver(this)},destroyed:function(){this.tableLayout.removeObserver(this)},computed:{tableLayout:function(){var t=this.layout;if(!t&&this.table&&(t=this.table.layout),!t)throw new Error("Can not find table layout.");return t}},mounted:function(){this.onColumnsChange(this.tableLayout),this.onScrollableChange(this.tableLayout)},updated:function(){this.__updated__||(this.onColumnsChange(this.tableLayout),this.onScrollableChange(this.tableLayout),this.__updated__=!0)},methods:{onColumnsChange:function(t){var e=this.$el.querySelectorAll("colgroup > col");if(e.length){var n=t.getFlattenColumns(),r={};n.forEach(function(t){r[t.id]=t});for(var i=0,o=e.length;i<o;i++){var a=e[i],s=a.getAttribute("name"),u=r[s];u&&a.setAttribute("width",u.realWidth||u.width)}}},onScrollableChange:function(t){for(var e=this.$el.querySelectorAll("colgroup > col[name=gutter]"),n=0,r=e.length;n<r;n++){e[n].setAttribute("width",t.scrollY?t.gutterWidth:"0")}for(var i=this.$el.querySelectorAll("th.gutter"),o=0,a=i.length;o<a;o++){var s=i[o];s.style.width=t.scrollY?t.gutterWidth+"px":"0",s.style.display=t.scrollY?"":"none"}}}},Pi=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Ni={name:"ElTableRow",props:["columns","row","index","isSelected","isExpanded","store","context","firstDefaultColumnIndex","treeRowData","treeIndent","columnsHidden","getSpan","getColspanRealWidth","getCellStyle","getCellClass","handleCellMouseLeave","handleCellMouseEnter","fixed"],components:{ElCheckbox:Qr.a},render:function(){var t=this,e=arguments[0],n=this.columns,r=this.row,i=this.index,o=this.store,a=this.context,s=this.firstDefaultColumnIndex,u=this.treeRowData,l=this.treeIndent,c=this.columnsHidden,f=void 0===c?[]:c,d=this.isSelected,h=this.isExpanded;return e("tr",[n.map(function(c,p){var g=t.getSpan(r,c,i,p),m=g.rowspan,v=g.colspan;if(!m||!v)return null;var y=Pi({},c);y.realWidth=t.getColspanRealWidth(n,v,p);var b={store:o,isSelected:d,isExpanded:h,_self:a,column:y,row:r,$index:i};return p===s&&u&&(b.treeNode={indent:u.level*l,level:u.level},"boolean"==typeof u.expanded&&(b.treeNode.expanded=u.expanded,"loading"in u&&(b.treeNode.loading=u.loading),"noLazyChildren"in u&&(b.treeNode.noLazyChildren=u.noLazyChildren))),e("td",{style:t.getCellStyle(i,p,r,c),class:t.getCellClass(i,p,r,c),attrs:{rowspan:m,colspan:v},on:{mouseenter:function(e){return t.handleCellMouseEnter(e,r)},mouseleave:t.handleCellMouseLeave}},[c.renderCell.call(t._renderProxy,t.$createElement,b,f[p])])})])}},Di="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mi=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Ii={name:"ElTableBody",mixins:[Oi],components:{ElCheckbox:Qr.a,ElTooltip:Se.a,TableRow:Ni},props:{store:{required:!0},stripe:Boolean,context:{},rowClassName:[String,Function],rowStyle:[Object,Function],fixed:String,highlight:Boolean},render:function(t){var e=this,n=this.data||[];return t("table",{class:"el-table__body",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[t("colgroup",[this.columns.map(function(e){return t("col",{attrs:{name:e.id},key:e.id})})]),t("tbody",[n.reduce(function(t,n){return t.concat(e.wrappedRowRender(n,t.length))},[]),t("el-tooltip",{attrs:{effect:this.table.tooltipEffect,placement:"top",content:this.tooltipContent},ref:"tooltip"})])])},computed:Mi({table:function(){return this.$parent}},g({data:"data",columns:"columns",treeIndent:"indent",leftFixedLeafCount:"fixedLeafColumnsLength",rightFixedLeafCount:"rightFixedLeafColumnsLength",columnsCount:function(t){return t.columns.length},leftFixedCount:function(t){return t.fixedColumns.length},rightFixedCount:function(t){return t.rightFixedColumns.length},hasExpandColumn:function(t){return t.columns.some(function(t){return"expand"===t.type})}}),{columnsHidden:function(){var t=this;return this.columns.map(function(e,n){return t.isColumnHidden(n)})},firstDefaultColumnIndex:function(){return Object(H.arrayFindIndex)(this.columns,function(t){return"default"===t.type})}}),watch:{"store.states.hoverRow":function(t,e){var n=this;if(this.store.states.isComplex&&!this.$isServer){var r=window.requestAnimationFrame;r||(r=function(t){return setTimeout(t,16)}),r(function(){var r=n.$el.querySelectorAll(".el-table__row"),i=r[e],o=r[t];i&&Object(ae.removeClass)(i,"hover-row"),o&&Object(ae.addClass)(o,"hover-row")})}}},data:function(){return{tooltipContent:""}},created:function(){this.activateTooltip=lt()(50,function(t){return t.handleShowPopper()})},methods:{getKeyOfRow:function(t,e){var n=this.table.rowKey;return n?pi(t,n):e},isColumnHidden:function(t){return!0===this.fixed||"left"===this.fixed?t>=this.leftFixedLeafCount:"right"===this.fixed?t<this.columnsCount-this.rightFixedLeafCount:t<this.leftFixedLeafCount||t>=this.columnsCount-this.rightFixedLeafCount},getSpan:function(t,e,n,r){var i=1,o=1,a=this.table.spanMethod;if("function"==typeof a){var s=a({row:t,column:e,rowIndex:n,columnIndex:r});Array.isArray(s)?(i=s[0],o=s[1]):"object"===(void 0===s?"undefined":Di(s))&&(i=s.rowspan,o=s.colspan)}return{rowspan:i,colspan:o}},getRowStyle:function(t,e){var n=this.table.rowStyle;return"function"==typeof n?n.call(null,{row:t,rowIndex:e}):n||null},getRowClass:function(t,e){var n=this.store.states.selection,r=["el-table__row"];if(this.table.highlightCurrentRow&&t===this.store.states.currentRow&&r.push("current-row"),this.table.highlightSelectionRow)for(var i=0;i<n.length;i++)mi(t,n[i])&&r.push("selection-row");this.stripe&&e%2==1&&r.push("el-table__row--striped");var o=this.table.rowClassName;return"string"==typeof o?r.push(o):"function"==typeof o&&r.push(o.call(null,{row:t,rowIndex:e})),this.store.states.expandRows.indexOf(t)>-1&&r.push("expanded"),r},getCellStyle:function(t,e,n,r){var i=this.table.cellStyle;return"function"==typeof i?i.call(null,{rowIndex:t,columnIndex:e,row:n,column:r}):i},getCellClass:function(t,e,n,r){var i=[r.id,r.align,r.className];this.isColumnHidden(e)&&i.push("is-hidden");var o=this.table.cellClassName;return"string"==typeof o?i.push(o):"function"==typeof o&&i.push(o.call(null,{rowIndex:t,columnIndex:e,row:n,column:r})),i.push("el-table__cell"),i.join(" ")},getColspanRealWidth:function(t,e,n){return e<1?t[n].realWidth:t.map(function(t){return t.realWidth}).slice(n,n+e).reduce(function(t,e){return t+e},-1)},handleCellMouseEnter:function(t,e){var n=this.table,r=ui(t);if(r){var i=hi(n,r),o=n.hoverState={cell:r,column:i,row:e};n.$emit("cell-mouse-enter",o.row,o.column,o.cell,t)}var a=t.target.querySelector(".cell");if(Object(ae.hasClass)(a,"el-tooltip")&&a.childNodes.length){var s=document.createRange();s.setStart(a,0),s.setEnd(a,a.childNodes.length);if((s.getBoundingClientRect().width+((parseInt(Object(ae.getStyle)(a,"paddingLeft"),10)||0)+(parseInt(Object(ae.getStyle)(a,"paddingRight"),10)||0))>a.offsetWidth||a.scrollWidth>a.offsetWidth)&&this.$refs.tooltip){var u=this.$refs.tooltip;this.tooltipContent=r.innerText||r.textContent,u.referenceElm=r,u.$refs.popper&&(u.$refs.popper.style.display="none"),u.doDestroy(),u.setExpectedState(!0),this.activateTooltip(u)}}},handleCellMouseLeave:function(t){var e=this.$refs.tooltip;if(e&&(e.setExpectedState(!1),e.handleClosePopper()),ui(t)){var n=this.table.hoverState||{};this.table.$emit("cell-mouse-leave",n.row,n.column,n.cell,t)}},handleMouseEnter:lt()(30,function(t){this.store.commit("setHoverRow",t)}),handleMouseLeave:lt()(30,function(){this.store.commit("setHoverRow",null)}),handleContextMenu:function(t,e){this.handleEvent(t,e,"contextmenu")},handleDoubleClick:function(t,e){this.handleEvent(t,e,"dblclick")},handleClick:function(t,e){this.store.commit("setCurrentRow",e),this.handleEvent(t,e,"click")},handleEvent:function(t,e,n){var r=this.table,i=ui(t),o=void 0;i&&(o=hi(r,i))&&r.$emit("cell-"+n,e,o,i,t),r.$emit("row-"+n,e,o,t)},rowRender:function(t,e,n){var r=this,i=this.$createElement,o=this.treeIndent,a=this.columns,s=this.firstDefaultColumnIndex,u=this.getRowClass(t,e),l=!0;return n&&(u.push("el-table__row--level-"+n.level),l=n.display),i(Ni,{style:[l?null:{display:"none"},this.getRowStyle(t,e)],class:u,key:this.getKeyOfRow(t,e),nativeOn:{dblclick:function(e){return r.handleDoubleClick(e,t)},click:function(e){return r.handleClick(e,t)},contextmenu:function(e){return r.handleContextMenu(e,t)},mouseenter:function(t){return r.handleMouseEnter(e)},mouseleave:this.handleMouseLeave},attrs:{columns:a,row:t,index:e,store:this.store,context:this.context||this.table.$vnode.context,firstDefaultColumnIndex:s,treeRowData:n,treeIndent:o,columnsHidden:this.columnsHidden,getSpan:this.getSpan,getColspanRealWidth:this.getColspanRealWidth,getCellStyle:this.getCellStyle,getCellClass:this.getCellClass,handleCellMouseEnter:this.handleCellMouseEnter,handleCellMouseLeave:this.handleCellMouseLeave,isSelected:this.store.isSelected(t),isExpanded:this.store.states.expandRows.indexOf(t)>-1,fixed:this.fixed}})},wrappedRowRender:function(t,e){var n=this,r=this.$createElement,i=this.store,o=i.isRowExpanded,a=i.assertRowKey,s=i.states,u=s.treeData,l=s.lazyTreeNodeMap,c=s.childrenColumnName,f=s.rowKey;if(this.hasExpandColumn&&o(t)){var d=this.table.renderExpanded,h=this.rowRender(t,e);return d?[[h,r("tr",{key:"expanded-row__"+h.key},[r("td",{attrs:{colspan:this.columnsCount},class:"el-table__cell el-table__expanded-cell"},[d(this.$createElement,{row:t,$index:e,store:this.store})])])]]:(console.error("[Element Error]renderExpanded is required."),h)}if(Object.keys(u).length){a();var p=pi(t,f),g=u[p],m=null;g&&(m={expanded:g.expanded,level:g.level,display:!0},"boolean"==typeof g.lazy&&("boolean"==typeof g.loaded&&g.loaded&&(m.noLazyChildren=!(g.children&&g.children.length)),m.loading=g.loading));var v=[this.rowRender(t,e,m)];if(g){var y=0;g.display=!0;var b=l[p]||t[c];!function t(r,i){r&&r.length&&i&&r.forEach(function(r){var o={display:i.display&&i.expanded,level:i.level+1},a=pi(r,f);if(void 0===a||null===a)throw new Error("for nested data item, row-key is required.");if(g=Mi({},u[a]),g&&(o.expanded=g.expanded,g.level=g.level||o.level,g.display=!(!g.expanded||!o.display),"boolean"==typeof g.lazy&&("boolean"==typeof g.loaded&&g.loaded&&(o.noLazyChildren=!(g.children&&g.children.length)),o.loading=g.loading)),y++,v.push(n.rowRender(r,e+y,o)),g){var s=l[a]||r[c];t(s,g)}})}(b,g)}return v}return this.rowRender(t,e)}}},Ri=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"el-zoom-in-top"}},[t.multiple?n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:t.handleOutsideClick,expression:"handleOutsideClick"},{name:"show",rawName:"v-show",value:t.showPopper,expression:"showPopper"}],staticClass:"el-table-filter"},[n("div",{staticClass:"el-table-filter__content"},[n("el-scrollbar",{attrs:{"wrap-class":"el-table-filter__wrap"}},[n("el-checkbox-group",{staticClass:"el-table-filter__checkbox-group",model:{value:t.filteredValue,callback:function(e){t.filteredValue=e},expression:"filteredValue"}},t._l(t.filters,function(e){return n("el-checkbox",{key:e.value,attrs:{label:e.value}},[t._v(t._s(e.text))])}),1)],1)],1),n("div",{staticClass:"el-table-filter__bottom"},[n("button",{class:{"is-disabled":0===t.filteredValue.length},attrs:{disabled:0===t.filteredValue.length},on:{click:t.handleConfirm}},[t._v(t._s(t.t("el.table.confirmFilter")))]),n("button",{on:{click:t.handleReset}},[t._v(t._s(t.t("el.table.resetFilter")))])])]):n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:t.handleOutsideClick,expression:"handleOutsideClick"},{name:"show",rawName:"v-show",value:t.showPopper,expression:"showPopper"}],staticClass:"el-table-filter"},[n("ul",{staticClass:"el-table-filter__list"},[n("li",{staticClass:"el-table-filter__list-item",class:{"is-active":void 0===t.filterValue||null===t.filterValue},on:{click:function(e){t.handleSelect(null)}}},[t._v(t._s(t.t("el.table.clearFilter")))]),t._l(t.filters,function(e){return n("li",{key:e.value,staticClass:"el-table-filter__list-item",class:{"is-active":t.isActive(e)},attrs:{label:e.value},on:{click:function(n){t.handleSelect(e.value)}}},[t._v(t._s(e.text))])})],2)])])},$i=[];Ri._withStripped=!0;var Li=[];!ai.a.prototype.$isServer&&document.addEventListener("click",function(t){Li.forEach(function(e){var n=t.target;e&&e.$el&&(n===e.$el||e.$el.contains(n)||e.handleOutsideClick&&e.handleOutsideClick(t))})});var ji={open:function(t){t&&Li.push(t)},close:function(t){-1!==Li.indexOf(t)&&Li.splice(t,1)}},Fi=n(32),Bi=n.n(Fi),Vi={name:"ElTableFilterPanel",mixins:[gt.a,U.a],directives:{Clickoutside:ft.a},components:{ElCheckbox:Qr.a,ElCheckboxGroup:Bi.a,ElScrollbar:vt.a},props:{placement:{type:String,default:"bottom-end"}},methods:{isActive:function(t){return t.value===this.filterValue},handleOutsideClick:function(){var t=this;setTimeout(function(){t.showPopper=!1},16)},handleConfirm:function(){this.confirmFilter(this.filteredValue),this.handleOutsideClick()},handleReset:function(){this.filteredValue=[],this.confirmFilter(this.filteredValue),this.handleOutsideClick()},handleSelect:function(t){this.filterValue=t,void 0!==t&&null!==t?this.confirmFilter(this.filteredValue):this.confirmFilter([]),this.handleOutsideClick()},confirmFilter:function(t){this.table.store.commit("filterChange",{column:this.column,values:t}),this.table.store.updateAllSelected()}},data:function(){return{table:null,cell:null,column:null}},computed:{filters:function(){return this.column&&this.column.filters},filterValue:{get:function(){return(this.column.filteredValue||[])[0]},set:function(t){this.filteredValue&&(void 0!==t&&null!==t?this.filteredValue.splice(0,1,t):this.filteredValue.splice(0,1))}},filteredValue:{get:function(){return this.column?this.column.filteredValue||[]:[]},set:function(t){this.column&&(this.column.filteredValue=t)}},multiple:function(){return!this.column||this.column.filterMultiple}},mounted:function(){var t=this;this.popperElm=this.$el,this.referenceElm=this.cell,this.table.bodyWrapper.addEventListener("scroll",function(){t.updatePopper()}),this.$watch("showPopper",function(e){t.column&&(t.column.filterOpened=e),e?ji.open(t):ji.close(t)})},watch:{showPopper:function(t){!0===t&&parseInt(this.popperJS._popper.style.zIndex,10)<K.PopupManager.zIndex&&(this.popperJS._popper.style.zIndex=K.PopupManager.nextZIndex())}}},zi=Vi,Ui=r(zi,Ri,$i,!1,null,null,null);Ui.options.__file="packages/table/src/filter-panel.vue";var Hi=Ui.exports,qi=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Wi=function t(e){var n=[];return e.forEach(function(e){e.children?(n.push(e),n.push.apply(n,t(e.children))):n.push(e)}),n},Gi=function(t){var e=1,n=function t(n,r){if(r&&(n.level=r.level+1,e<n.level&&(e=n.level)),n.children){var i=0;n.children.forEach(function(e){t(e,n),i+=e.colSpan}),n.colSpan=i}else n.colSpan=1};t.forEach(function(t){t.level=1,n(t)});for(var r=[],i=0;i<e;i++)r.push([]);return Wi(t).forEach(function(t){t.children?t.rowSpan=1:t.rowSpan=e-t.level+1,r[t.level-1].push(t)}),r},Yi={name:"ElTableHeader",mixins:[Oi],render:function(t){var e=this,n=this.store.states.originColumns,r=Gi(n,this.columns),i=r.length>1;return i&&(this.$parent.isGroup=!0),t("table",{class:"el-table__header",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[t("colgroup",[this.columns.map(function(e){return t("col",{attrs:{name:e.id},key:e.id})}),this.hasGutter?t("col",{attrs:{name:"gutter"}}):""]),t("thead",{class:[{"is-group":i,"has-gutter":this.hasGutter}]},[this._l(r,function(n,r){return t("tr",{style:e.getHeaderRowStyle(r),class:e.getHeaderRowClass(r)},[n.map(function(i,o){return t("th",{attrs:{colspan:i.colSpan,rowspan:i.rowSpan},on:{mousemove:function(t){return e.handleMouseMove(t,i)},mouseout:e.handleMouseOut,mousedown:function(t){return e.handleMouseDown(t,i)},click:function(t){return e.handleHeaderClick(t,i)},contextmenu:function(t){return e.handleHeaderContextMenu(t,i)}},style:e.getHeaderCellStyle(r,o,n,i),class:e.getHeaderCellClass(r,o,n,i),key:i.id},[t("div",{class:["cell",i.filteredValue&&i.filteredValue.length>0?"highlight":"",i.labelClassName]},[i.renderHeader?i.renderHeader.call(e._renderProxy,t,{column:i,$index:o,store:e.store,_self:e.$parent.$vnode.context}):i.label,i.sortable?t("span",{class:"caret-wrapper",on:{click:function(t){return e.handleSortClick(t,i)}}},[t("i",{class:"sort-caret ascending",on:{click:function(t){return e.handleSortClick(t,i,"ascending")}}}),t("i",{class:"sort-caret descending",on:{click:function(t){return e.handleSortClick(t,i,"descending")}}})]):"",i.filterable?t("span",{class:"el-table__column-filter-trigger",on:{click:function(t){return e.handleFilterClick(t,i)}}},[t("i",{class:["el-icon-arrow-down",i.filterOpened?"el-icon-arrow-up":""]})]):""])])}),e.hasGutter?t("th",{class:"el-table__cell gutter"}):""])})])])},props:{fixed:String,store:{required:!0},border:Boolean,defaultSort:{type:Object,default:function(){return{prop:"",order:""}}}},components:{ElCheckbox:Qr.a},computed:qi({table:function(){return this.$parent},hasGutter:function(){return!this.fixed&&this.tableLayout.gutterWidth}},g({columns:"columns",isAllSelected:"isAllSelected",leftFixedLeafCount:"fixedLeafColumnsLength",rightFixedLeafCount:"rightFixedLeafColumnsLength",columnsCount:function(t){return t.columns.length},leftFixedCount:function(t){return t.fixedColumns.length},rightFixedCount:function(t){return t.rightFixedColumns.length}})),created:function(){this.filterPanels={}},mounted:function(){var t=this;this.$nextTick(function(){var e=t.defaultSort,n=e.prop,r=e.order;t.store.commit("sort",{prop:n,order:r,init:!0})})},beforeDestroy:function(){var t=this.filterPanels;for(var e in t)t.hasOwnProperty(e)&&t[e]&&t[e].$destroy(!0)},methods:{isCellHidden:function(t,e){for(var n=0,r=0;r<t;r++)n+=e[r].colSpan;var i=n+e[t].colSpan-1;return!0===this.fixed||"left"===this.fixed?i>=this.leftFixedLeafCount:"right"===this.fixed?n<this.columnsCount-this.rightFixedLeafCount:i<this.leftFixedLeafCount||n>=this.columnsCount-this.rightFixedLeafCount},getHeaderRowStyle:function(t){var e=this.table.headerRowStyle;return"function"==typeof e?e.call(null,{rowIndex:t}):e},getHeaderRowClass:function(t){var e=[],n=this.table.headerRowClassName;return"string"==typeof n?e.push(n):"function"==typeof n&&e.push(n.call(null,{rowIndex:t})),e.join(" ")},getHeaderCellStyle:function(t,e,n,r){var i=this.table.headerCellStyle;return"function"==typeof i?i.call(null,{rowIndex:t,columnIndex:e,row:n,column:r}):i},getHeaderCellClass:function(t,e,n,r){var i=[r.id,r.order,r.headerAlign,r.className,r.labelClassName];0===t&&this.isCellHidden(e,n)&&i.push("is-hidden"),r.children||i.push("is-leaf"),r.sortable&&i.push("is-sortable");var o=this.table.headerCellClassName;return"string"==typeof o?i.push(o):"function"==typeof o&&i.push(o.call(null,{rowIndex:t,columnIndex:e,row:n,column:r})),i.push("el-table__cell"),i.join(" ")},toggleAllSelection:function(){this.store.commit("toggleAllSelection")},handleFilterClick:function(t,e){t.stopPropagation();var n=t.target,r="TH"===n.tagName?n:n.parentNode;if(!Object(ae.hasClass)(r,"noclick")){r=r.querySelector(".el-table__column-filter-trigger")||r;var i=this.$parent,o=this.filterPanels[e.id];if(o&&e.filterOpened)return void(o.showPopper=!1);o||(o=new ai.a(Hi),this.filterPanels[e.id]=o,e.filterPlacement&&(o.placement=e.filterPlacement),o.table=i,o.cell=r,o.column=e,!this.$isServer&&o.$mount(document.createElement("div"))),setTimeout(function(){o.showPopper=!0},16)}},handleHeaderClick:function(t,e){!e.filters&&e.sortable?this.handleSortClick(t,e):e.filterable&&!e.sortable&&this.handleFilterClick(t,e),this.$parent.$emit("header-click",e,t)},handleHeaderContextMenu:function(t,e){this.$parent.$emit("header-contextmenu",e,t)},handleMouseDown:function(t,e){var n=this;if(!this.$isServer&&!(e.children&&e.children.length>0)&&this.draggingColumn&&this.border){this.dragging=!0,this.$parent.resizeProxyVisible=!0;var r=this.$parent,i=r.$el,o=i.getBoundingClientRect().left,a=this.$el.querySelector("th."+e.id),s=a.getBoundingClientRect(),u=s.left-o+30;Object(ae.addClass)(a,"noclick"),this.dragState={startMouseLeft:t.clientX,startLeft:s.right-o,startColumnLeft:s.left-o,tableLeft:o};var l=r.$refs.resizeProxy;l.style.left=this.dragState.startLeft+"px",document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};var c=function(t){var e=t.clientX-n.dragState.startMouseLeft,r=n.dragState.startLeft+e;l.style.left=Math.max(u,r)+"px"},f=function i(){if(n.dragging){var o=n.dragState,s=o.startColumnLeft,u=o.startLeft,f=parseInt(l.style.left,10),d=f-s;e.width=e.realWidth=d,r.$emit("header-dragend",e.width,u-s,e,t),n.store.scheduleLayout(),document.body.style.cursor="",n.dragging=!1,n.draggingColumn=null,n.dragState={},r.resizeProxyVisible=!1}document.removeEventListener("mousemove",c),document.removeEventListener("mouseup",i),document.onselectstart=null,document.ondragstart=null,setTimeout(function(){Object(ae.removeClass)(a,"noclick")},0)};document.addEventListener("mousemove",c),document.addEventListener("mouseup",f)}},handleMouseMove:function(t,e){if(!(e.children&&e.children.length>0)){for(var n=t.target;n&&"TH"!==n.tagName;)n=n.parentNode;if(e&&e.resizable&&!this.dragging&&this.border){var r=n.getBoundingClientRect(),i=document.body.style;r.width>12&&r.right-t.pageX<8?(i.cursor="col-resize",Object(ae.hasClass)(n,"is-sortable")&&(n.style.cursor="col-resize"),this.draggingColumn=e):this.dragging||(i.cursor="",Object(ae.hasClass)(n,"is-sortable")&&(n.style.cursor="pointer"),this.draggingColumn=null)}}},handleMouseOut:function(){this.$isServer||(document.body.style.cursor="")},toggleOrder:function(t){var e=t.order,n=t.sortOrders;if(""===e)return n[0];var r=n.indexOf(e||null);return n[r>n.length-2?0:r+1]},handleSortClick:function(t,e,n){t.stopPropagation();for(var r=e.order===n?null:n||this.toggleOrder(e),i=t.target;i&&"TH"!==i.tagName;)i=i.parentNode;if(i&&"TH"===i.tagName&&Object(ae.hasClass)(i,"noclick"))return void Object(ae.removeClass)(i,"noclick");if(e.sortable){var o=this.store.states,a=o.sortProp,s=void 0,u=o.sortingColumn;(u!==e||u===e&&null===u.order)&&(u&&(u.order=null),o.sortingColumn=e,a=e.property),s=e.order=r||null,o.sortProp=a,o.sortOrder=s,this.store.commit("changeSortCondition")}}},data:function(){return{draggingColumn:null,dragging:!1,dragState:{}}}},Ki=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Xi={name:"ElTableFooter",mixins:[Oi],render:function(t){var e=this,n=[];return this.summaryMethod?n=this.summaryMethod({columns:this.columns,data:this.store.states.data}):this.columns.forEach(function(t,r){if(0===r)return void(n[r]=e.sumText);var i=e.store.states.data.map(function(e){return Number(e[t.property])}),o=[],a=!0;i.forEach(function(t){if(!isNaN(t)){a=!1;var e=(""+t).split(".")[1];o.push(e?e.length:0)}});var s=Math.max.apply(null,o);n[r]=a?"":i.reduce(function(t,e){var n=Number(e);return isNaN(n)?t:parseFloat((t+e).toFixed(Math.min(s,20)))},0)}),t("table",{class:"el-table__footer",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[t("colgroup",[this.columns.map(function(e){return t("col",{attrs:{name:e.id},key:e.id})}),this.hasGutter?t("col",{attrs:{name:"gutter"}}):""]),t("tbody",{class:[{"has-gutter":this.hasGutter}]},[t("tr",[this.columns.map(function(r,i){return t("td",{key:i,attrs:{colspan:r.colSpan,rowspan:r.rowSpan},class:[].concat(e.getRowClasses(r,i),["el-table__cell"])},[t("div",{class:["cell",r.labelClassName]},[n[i]])])}),this.hasGutter?t("th",{class:"el-table__cell gutter"}):""])])])},props:{fixed:String,store:{required:!0},summaryMethod:Function,sumText:String,border:Boolean,defaultSort:{type:Object,default:function(){return{prop:"",order:""}}}},computed:Ki({table:function(){return this.$parent},hasGutter:function(){return!this.fixed&&this.tableLayout.gutterWidth}},g({columns:"columns",isAllSelected:"isAllSelected",leftFixedLeafCount:"fixedLeafColumnsLength",rightFixedLeafCount:"rightFixedLeafColumnsLength",columnsCount:function(t){return t.columns.length},leftFixedCount:function(t){return t.fixedColumns.length},rightFixedCount:function(t){return t.rightFixedColumns.length}})),methods:{isCellHidden:function(t,e,n){if(!0===this.fixed||"left"===this.fixed)return t>=this.leftFixedLeafCount;if("right"===this.fixed){for(var r=0,i=0;i<t;i++)r+=e[i].colSpan;return r<this.columnsCount-this.rightFixedLeafCount}return!(this.fixed||!n.fixed)||(t<this.leftFixedCount||t>=this.columnsCount-this.rightFixedCount)},getRowClasses:function(t,e){var n=[t.id,t.align,t.labelClassName];return t.className&&n.push(t.className),this.isCellHidden(e,this.columns,t)&&n.push("is-hidden"),t.children||n.push("is-leaf"),n}}},Ji=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Qi=1,Zi={name:"ElTable",mixins:[U.a,Q.a],directives:{Mousewheel:ii},props:{data:{type:Array,default:function(){return[]}},size:String,width:[String,Number],height:[String,Number],maxHeight:[String,Number],fit:{type:Boolean,default:!0},stripe:Boolean,border:Boolean,rowKey:[String,Function],context:{},showHeader:{type:Boolean,default:!0},showSummary:Boolean,sumText:String,summaryMethod:Function,rowClassName:[String,Function],rowStyle:[Object,Function],cellClassName:[String,Function],cellStyle:[Object,Function],headerRowClassName:[String,Function],headerRowStyle:[Object,Function],headerCellClassName:[String,Function],headerCellStyle:[Object,Function],highlightCurrentRow:Boolean,highlightSelectionRow:{type:Boolean,default:!1},currentRowKey:[String,Number],emptyText:String,expandRowKeys:Array,defaultExpandAll:Boolean,defaultSort:Object,tooltipEffect:String,spanMethod:Function,selectOnIndeterminate:{type:Boolean,default:!0},indent:{type:Number,default:16},treeProps:{type:Object,default:function(){return{hasChildren:"hasChildren",children:"children"}}},lazy:Boolean,load:Function},components:{TableHeader:Yi,TableFooter:Xi,TableBody:Ii,ElCheckbox:Qr.a},methods:{getMigratingConfig:function(){return{events:{expand:"expand is renamed to expand-change"}}},setCurrentRow:function(t){this.store.commit("setCurrentRow",t)},toggleRowSelection:function(t,e){this.store.toggleRowSelection(t,e,!1),this.store.updateAllSelected()},toggleRowExpansion:function(t,e){this.store.toggleRowExpansionAdapter(t,e)},clearSelection:function(){this.store.clearSelection()},clearFilter:function(t){this.store.clearFilter(t)},clearSort:function(){this.store.clearSort()},handleMouseLeave:function(){this.store.commit("setHoverRow",null),this.hoverState&&(this.hoverState=null)},updateScrollY:function(){this.layout.updateScrollY()&&(this.layout.notifyObservers("scrollable"),this.layout.updateColumnsWidth())},handleFixedMousewheel:function(t,e){var n=this.bodyWrapper;if(Math.abs(e.spinY)>0){var r=n.scrollTop;e.pixelY<0&&0!==r&&t.preventDefault(),e.pixelY>0&&n.scrollHeight-n.clientHeight>r&&t.preventDefault(),n.scrollTop+=Math.ceil(e.pixelY/5)}else n.scrollLeft+=Math.ceil(e.pixelX/5)},handleHeaderFooterMousewheel:function(t,e){var n=e.pixelX,r=e.pixelY;Math.abs(n)>=Math.abs(r)&&(this.bodyWrapper.scrollLeft+=e.pixelX/5)},syncPostion:function(){var t=this.bodyWrapper,e=t.scrollLeft,n=t.scrollTop,r=t.offsetWidth,i=t.scrollWidth,o=this.$refs,a=o.headerWrapper,s=o.footerWrapper,u=o.fixedBodyWrapper,l=o.rightFixedBodyWrapper;a&&(a.scrollLeft=e),s&&(s.scrollLeft=e),u&&(u.scrollTop=n),l&&(l.scrollTop=n);var c=i-r-1;this.scrollPosition=e>=c?"right":0===e?"left":"middle"},throttleSyncPostion:Object(Zr.throttle)(16,function(){this.syncPostion()}),onScroll:function(t){var e=window.requestAnimationFrame;e?e(this.syncPostion):this.throttleSyncPostion()},bindEvents:function(){this.bodyWrapper.addEventListener("scroll",this.onScroll,{passive:!0}),this.fit&&Object(yr.addResizeListener)(this.$el,this.resizeListener)},unbindEvents:function(){this.bodyWrapper.removeEventListener("scroll",this.onScroll,{passive:!0}),this.fit&&Object(yr.removeResizeListener)(this.$el,this.resizeListener)},resizeListener:function(){if(this.$ready){var t=!1,e=this.$el,n=this.resizeState,r=n.width,i=n.height,o=e.offsetWidth;r!==o&&(t=!0);var a=e.offsetHeight;(this.height||this.shouldUpdateHeight)&&i!==a&&(t=!0),t&&(this.resizeState.width=o,this.resizeState.height=a,this.doLayout())}},doLayout:function(){this.shouldUpdateHeight&&this.layout.updateElsHeight(),this.layout.updateColumnsWidth()},sort:function(t,e){this.store.commit("sort",{prop:t,order:e})},toggleAllSelection:function(){this.store.commit("toggleAllSelection")}},computed:Ji({tableSize:function(){return this.size||(this.$ELEMENT||{}).size},bodyWrapper:function(){return this.$refs.bodyWrapper},shouldUpdateHeight:function(){return this.height||this.maxHeight||this.fixedColumns.length>0||this.rightFixedColumns.length>0},bodyWidth:function(){var t=this.layout,e=t.bodyWidth,n=t.scrollY,r=t.gutterWidth;return e?e-(n?r:0)+"px":""},bodyHeight:function(){var t=this.layout,e=t.headerHeight,n=void 0===e?0:e,r=t.bodyHeight,i=t.footerHeight,o=void 0===i?0:i;if(this.height)return{height:r?r+"px":""};if(this.maxHeight){var a=c(this.maxHeight);if("number"==typeof a)return{"max-height":a-o-(this.showHeader?n:0)+"px"}}return{}},fixedBodyHeight:function(){if(this.height)return{height:this.layout.fixedBodyHeight?this.layout.fixedBodyHeight+"px":""};if(this.maxHeight){var t=c(this.maxHeight);if("number"==typeof t)return t=this.layout.scrollX?t-this.layout.gutterWidth:t,this.showHeader&&(t-=this.layout.headerHeight),t-=this.layout.footerHeight,{"max-height":t+"px"}}return{}},fixedHeight:function(){return this.maxHeight?this.showSummary?{bottom:0}:{bottom:this.layout.scrollX&&this.data.length?this.layout.gutterWidth+"px":""}:this.showSummary?{height:this.layout.tableHeight?this.layout.tableHeight+"px":""}:{height:this.layout.viewportHeight?this.layout.viewportHeight+"px":""}},emptyBlockStyle:function(){if(this.data&&this.data.length)return null;var t="100%";return this.layout.appendHeight&&(t="calc(100% - "+this.layout.appendHeight+"px)"),{width:this.bodyWidth,height:t}}},g({selection:"selection",columns:"columns",tableData:"data",fixedColumns:"fixedColumns",rightFixedColumns:"rightFixedColumns"})),watch:{height:{immediate:!0,handler:function(t){this.layout.setHeight(t)}},maxHeight:{immediate:!0,handler:function(t){this.layout.setMaxHeight(t)}},currentRowKey:{immediate:!0,handler:function(t){this.rowKey&&this.store.setCurrentRowKey(t)}},data:{immediate:!0,handler:function(t){this.store.commit("setData",t)}},expandRowKeys:{immediate:!0,handler:function(t){t&&this.store.setExpandRowKeysAdapter(t)}}},created:function(){var t=this;this.tableId="el-table_"+Qi++,this.debouncedUpdateLayout=Object(Zr.debounce)(50,function(){return t.doLayout()})},mounted:function(){var t=this;this.bindEvents(),this.store.updateColumns(),this.doLayout(),this.resizeState={width:this.$el.offsetWidth,height:this.$el.offsetHeight},this.store.states.columns.forEach(function(e){e.filteredValue&&e.filteredValue.length&&t.store.commit("filterChange",{column:e,values:e.filteredValue,silent:!0})}),this.$ready=!0},destroyed:function(){this.unbindEvents()},data:function(){var t=this.treeProps,e=t.hasChildren,n=void 0===e?"hasChildren":e,r=t.children,i=void 0===r?"children":r;return this.store=p(this,{rowKey:this.rowKey,defaultExpandAll:this.defaultExpandAll,selectOnIndeterminate:this.selectOnIndeterminate,indent:this.indent,lazy:this.lazy,lazyColumnIdentifier:n,childrenColumnName:i}),{layout:new Ai({store:this.store,table:this,fit:this.fit,showHeader:this.showHeader}),isHidden:!1,renderExpanded:null,resizeProxyVisible:!1,resizeState:{width:null,height:null},isGroup:!1,scrollPosition:"left"}}},to=Zi,eo=r(to,Kr,Xr,!1,null,null,null);eo.options.__file="packages/table/src/table.vue";var no=eo.exports;no.install=function(t){t.component(no.name,no)};var ro=no,io={default:{order:""},selection:{width:48,minWidth:48,realWidth:48,order:"",className:"el-table-column--selection"},expand:{width:48,minWidth:48,realWidth:48,order:""},index:{width:48,minWidth:48,realWidth:48,order:""}},oo={selection:{renderHeader:function(t,e){var n=e.store;return t("el-checkbox",{attrs:{disabled:n.states.data&&0===n.states.data.length,indeterminate:n.states.selection.length>0&&!this.isAllSelected,value:this.isAllSelected},on:{input:this.toggleAllSelection}})},renderCell:function(t,e){var n=e.row,r=e.column,i=e.isSelected,o=e.store,a=e.$index;return t("el-checkbox",{nativeOn:{click:function(t){return t.stopPropagation()}},attrs:{value:i,disabled:!!r.selectable&&!r.selectable.call(null,n,a)},on:{input:function(){o.commit("rowSelectedChanged",n)}}})},sortable:!1,resizable:!1},index:{renderHeader:function(t,e){return e.column.label||"#"},renderCell:function(t,e){var n=e.$index,r=e.column,i=n+1,o=r.index;return"number"==typeof o?i=n+o:"function"==typeof o&&(i=o(n)),t("div",[i])},sortable:!1},expand:{renderHeader:function(t,e){return e.column.label||""},renderCell:function(t,e){var n=e.row,r=e.store,i=e.isExpanded,o=["el-table__expand-icon"];return i&&o.push("el-table__expand-icon--expanded"),t("div",{class:o,on:{click:function(t){t.stopPropagation(),r.toggleRowExpansion(n)}}},[t("i",{class:"el-icon el-icon-arrow-right"})])},sortable:!1,resizable:!1,className:"el-table__expand-column"}},ao=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},so=1,uo={name:"ElTableColumn",props:{type:{type:String,default:"default"},label:String,className:String,labelClassName:String,property:String,prop:String,width:{},minWidth:{},renderHeader:Function,sortable:{type:[Boolean,String],default:!1},sortMethod:Function,sortBy:[String,Function,Array],resizable:{type:Boolean,default:!0},columnKey:String,align:String,headerAlign:String,showTooltipWhenOverflow:Boolean,showOverflowTooltip:Boolean,fixed:[Boolean,String],formatter:Function,selectable:Function,reserveSelection:Boolean,filterMethod:Function,filteredValue:Array,filters:Array,filterPlacement:String,filterMultiple:{type:Boolean,default:!0},index:[Number,Function],sortOrders:{type:Array,default:function(){return["ascending","descending",null]},validator:function(t){return t.every(function(t){return["ascending","descending",null].indexOf(t)>-1})}}},data:function(){return{isSubColumn:!1,columns:[]}},computed:{owner:function(){for(var t=this.$parent;t&&!t.tableId;)t=t.$parent;return t},columnOrTableParent:function(){for(var t=this.$parent;t&&!t.tableId&&!t.columnId;)t=t.$parent;return t},realWidth:function(){return u(this.width)},realMinWidth:function(){return l(this.minWidth)},realAlign:function(){return this.align?"is-"+this.align:null},realHeaderAlign:function(){return this.headerAlign?"is-"+this.headerAlign:this.realAlign}},methods:{getPropsData:function(){for(var t=this,e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return n.reduce(function(e,n){return Array.isArray(n)&&n.forEach(function(n){e[n]=t[n]}),e},{})},getColumnElIndex:function(t,e){return[].indexOf.call(t,e)},setColumnWidth:function(t){return this.realWidth&&(t.width=this.realWidth),this.realMinWidth&&(t.minWidth=this.realMinWidth),t.minWidth||(t.minWidth=80),t.realWidth=void 0===t.width?t.minWidth:t.width,t},setColumnForcedProps:function(t){var e=t.type,n=oo[e]||{};return Object.keys(n).forEach(function(e){var r=n[e];void 0!==r&&(t[e]="className"===e?t[e]+" "+r:r)}),t},setColumnRenders:function(t){var e=this;this.$createElement;this.renderHeader?console.warn("[Element Warn][TableColumn]Comparing to render-header, scoped-slot header is easier to use. We recommend users to use scoped-slot header."):"selection"!==t.type&&(t.renderHeader=function(n,r){var i=e.$scopedSlots.header;return i?i(r):t.label});var n=t.renderCell;return"expand"===t.type?(t.renderCell=function(t,e){return t("div",{class:"cell"},[n(t,e)])},this.owner.renderExpanded=function(t,n){return e.$scopedSlots.default?e.$scopedSlots.default(n):e.$slots.default}):(n=n||v,t.renderCell=function(r,i){var o=null;o=e.$scopedSlots.default?e.$scopedSlots.default(i):n(r,i);var a=y(r,i),s={class:"cell",style:{}};return t.showOverflowTooltip&&(s.class+=" el-tooltip",s.style={width:(i.column.realWidth||i.column.width)-1+"px"}),r("div",s,[a,o])}),t},registerNormalWatchers:function(){var t=this,e=["label","property","filters","filterMultiple","sortable","index","formatter","className","labelClassName","showOverflowTooltip"],n={prop:"property",realAlign:"align",realHeaderAlign:"headerAlign",realWidth:"width"},r=e.reduce(function(t,e){return t[e]=e,t},n);Object.keys(r).forEach(function(e){var r=n[e];t.$watch(e,function(e){t.columnConfig[r]=e})})},registerComplexWatchers:function(){var t=this,e=["fixed"],n={realWidth:"width",realMinWidth:"minWidth"},r=e.reduce(function(t,e){return t[e]=e,t},n);Object.keys(r).forEach(function(e){var r=n[e];t.$watch(e,function(e){t.columnConfig[r]=e;var n="fixed"===r;t.owner.store.scheduleLayout(n)})})}},components:{ElCheckbox:Qr.a},beforeCreate:function(){this.row={},this.column={},this.$index=0,this.columnId=""},created:function(){var t=this.columnOrTableParent;this.isSubColumn=this.owner!==t,this.columnId=(t.tableId||t.columnId)+"_column_"+so++;var e=this.type||"default",n=""===this.sortable||this.sortable,r=ao({},io[e],{id:this.columnId,type:e,property:this.prop||this.property,align:this.realAlign,headerAlign:this.realHeaderAlign,showOverflowTooltip:this.showOverflowTooltip||this.showTooltipWhenOverflow,filterable:this.filters||this.filterMethod,filteredValue:[],filterPlacement:"",isColumnGroup:!1,filterOpened:!1,sortable:n,index:this.index}),i=["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],o=["sortMethod","sortBy","sortOrders"],a=["selectable","reserveSelection"],u=["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement"],l=this.getPropsData(i,o,a,u);l=s(r,l),l=f(this.setColumnRenders,this.setColumnWidth,this.setColumnForcedProps)(l),this.columnConfig=l,this.registerNormalWatchers(),this.registerComplexWatchers()},mounted:function(){var t=this.owner,e=this.columnOrTableParent,n=this.isSubColumn?e.$el.children:e.$refs.hiddenColumns.children,r=this.getColumnElIndex(n,this.$el);t.store.commit("insertColumn",this.columnConfig,r,this.isSubColumn?e.columnConfig:null)},destroyed:function(){if(this.$parent){var t=this.$parent;this.owner.store.commit("removeColumn",this.columnConfig,this.isSubColumn?t.columnConfig:null)}},render:function(t){return t("div",this.$slots.default)}};uo.install=function(t){t.component(uo.name,uo)};var lo=uo,co=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.ranged?n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:t.handleClose,expression:"handleClose"}],ref:"reference",staticClass:"el-date-editor el-range-editor el-input__inner",class:["el-date-editor--"+t.type,t.pickerSize?"el-range-editor--"+t.pickerSize:"",t.pickerDisabled?"is-disabled":"",t.pickerVisible?"is-active":""],on:{click:t.handleRangeClick,mouseenter:t.handleMouseEnter,mouseleave:function(e){t.showClose=!1},keydown:t.handleKeydown}},[n("i",{class:["el-input__icon","el-range__icon",t.triggerClass]}),n("input",t._b({staticClass:"el-range-input",attrs:{autocomplete:"off",placeholder:t.startPlaceholder,disabled:t.pickerDisabled,readonly:!t.editable||t.readonly,name:t.name&&t.name[0]},domProps:{value:t.displayValue&&t.displayValue[0]},on:{input:t.handleStartInput,change:t.handleStartChange,focus:t.handleFocus}},"input",t.firstInputId,!1)),t._t("range-separator",[n("span",{staticClass:"el-range-separator"},[t._v(t._s(t.rangeSeparator))])]),n("input",t._b({staticClass:"el-range-input",attrs:{autocomplete:"off",placeholder:t.endPlaceholder,disabled:t.pickerDisabled,readonly:!t.editable||t.readonly,name:t.name&&t.name[1]},domProps:{value:t.displayValue&&t.displayValue[1]},on:{input:t.handleEndInput,change:t.handleEndChange,focus:t.handleFocus}},"input",t.secondInputId,!1)),t.haveTrigger?n("i",{staticClass:"el-input__icon el-range__close-icon",class:[t.showClose?""+t.clearIcon:""],on:{click:t.handleClickIcon}}):t._e()],2):n("el-input",t._b({directives:[{name:"clickoutside",rawName:"v-clickoutside",value:t.handleClose,expression:"handleClose"}],ref:"reference",staticClass:"el-date-editor",class:"el-date-editor--"+t.type,attrs:{readonly:!t.editable||t.readonly||"dates"===t.type||"week"===t.type||"years"===t.type||"months"===t.type,disabled:t.pickerDisabled,size:t.pickerSize,name:t.name,placeholder:t.placeholder,value:t.displayValue,validateEvent:!1},on:{focus:t.handleFocus,input:function(e){return t.userInput=e},change:t.handleChange},nativeOn:{keydown:function(e){return t.handleKeydown(e)},mouseenter:function(e){return t.handleMouseEnter(e)},mouseleave:function(e){t.showClose=!1}}},"el-input",t.firstInputId,!1),[n("i",{staticClass:"el-input__icon",class:t.triggerClass,attrs:{slot:"prefix"},on:{click:t.handleFocus},slot:"prefix"}),t.haveTrigger?n("i",{staticClass:"el-input__icon",class:[t.showClose?""+t.clearIcon:""],attrs:{slot:"suffix"},on:{click:t.handleClickIcon},slot:"suffix"}):t._e()])},fo=[];co._withStripped=!0;var ho=n(0),po={props:{appendToBody:gt.a.props.appendToBody,offset:gt.a.props.offset,boundariesPadding:gt.a.props.boundariesPadding,arrowOffset:gt.a.props.arrowOffset,transformOrigin:gt.a.props.transformOrigin},methods:gt.a.methods,data:function(){return Ue()({visibleArrow:!0},gt.a.data)},beforeDestroy:gt.a.beforeDestroy},go={date:"yyyy-MM-dd",month:"yyyy-MM",months:"yyyy-MM",datetime:"yyyy-MM-dd HH:mm:ss",time:"HH:mm:ss",week:"yyyywWW",timerange:"HH:mm:ss",daterange:"yyyy-MM-dd",monthrange:"yyyy-MM",datetimerange:"yyyy-MM-dd HH:mm:ss",year:"yyyy",years:"yyyy"},mo=["date","datetime","time","time-select","week","month","year","daterange","monthrange","timerange","datetimerange","dates","months","years"],vo=function(t,e){return"timestamp"===e?t.getTime():Object(ho.formatDate)(t,e)},yo=function(t,e){return"timestamp"===e?new Date(Number(t)):Object(ho.parseDate)(t,e)},bo=function(t,e){if(Array.isArray(t)&&2===t.length){var n=t[0],r=t[1];if(n&&r)return[vo(n,e),vo(r,e)]}return""},_o=function(t,e,n){if(Array.isArray(t)||(t=t.split(n)),2===t.length){var r=t[0],i=t[1];return[yo(r,e),yo(i,e)]}return[]},wo={default:{formatter:function(t){return t?""+t:""},parser:function(t){return void 0===t||""===t?null:t}},week:{formatter:function(t,e){var n=Object(ho.getWeekNumber)(t),r=t.getMonth(),i=new Date(t);1===n&&11===r&&(i.setHours(0,0,0,0),i.setDate(i.getDate()+3-(i.getDay()+6)%7));var o=Object(ho.formatDate)(i,e);return o=/WW/.test(o)?o.replace(/WW/,n<10?"0"+n:n):o.replace(/W/,n)},parser:function(t,e){return wo.date.parser(t,e)}},date:{formatter:vo,parser:yo},datetime:{formatter:vo,parser:yo},daterange:{formatter:bo,parser:_o},monthrange:{formatter:bo,parser:_o},datetimerange:{formatter:bo,parser:_o},timerange:{formatter:bo,parser:_o},time:{formatter:vo,parser:yo},month:{formatter:vo,parser:yo},year:{formatter:vo,parser:yo},number:{formatter:function(t){return t?""+t:""},parser:function(t){var e=Number(t);return isNaN(t)?null:e}},dates:{formatter:function(t,e){return t.map(function(t){return vo(t,e)})},parser:function(t,e){return("string"==typeof t?t.split(", "):t).map(function(t){return t instanceof Date?t:yo(t,e)})}},months:{formatter:function(t,e){return t.map(function(t){return vo(t,e)})},parser:function(t,e){return("string"==typeof t?t.split(", "):t).map(function(t){return t instanceof Date?t:yo(t,e)})}},years:{formatter:function(t,e){return t.map(function(t){return vo(t,e)})},parser:function(t,e){return("string"==typeof t?t.split(", "):t).map(function(t){return t instanceof Date?t:yo(t,e)})}}},xo={left:"bottom-start",center:"bottom",right:"bottom-end"},ko=function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"-";return t?(0,(wo[n]||wo.default).parser)(t,e||go[n],r):null},So=function(t,e,n){return t?(0,(wo[n]||wo.default).formatter)(t,e||go[n]):null},Co=function(t,e){var n=function(t,e){var n=t instanceof Date,r=e instanceof Date;return n&&r?t.getTime()===e.getTime():!n&&!r&&t===e},r=t instanceof Array,i=e instanceof Array;return r&&i?t.length===e.length&&t.every(function(t,r){return n(t,e[r])}):!r&&!i&&n(t,e)},Eo=function(t){return"string"==typeof t||t instanceof String},To=function(t){return null===t||void 0===t||Eo(t)||Array.isArray(t)&&2===t.length&&t.every(Eo)},Ao={mixins:[tt.a,po],inject:{elForm:{default:""},elFormItem:{default:""}},props:{size:String,format:String,valueFormat:String,readonly:Boolean,placeholder:String,startPlaceholder:String,endPlaceholder:String,prefixIcon:String,clearIcon:{type:String,default:"el-icon-circle-close"},name:{default:"",validator:To},disabled:Boolean,clearable:{type:Boolean,default:!0},id:{default:"",validator:To},popperClass:String,editable:{type:Boolean,default:!0},align:{type:String,default:"left"},value:{},defaultValue:{},defaultTime:{},rangeSeparator:{default:"-"},pickerOptions:{},unlinkPanels:Boolean,validateEvent:{type:Boolean,default:!0}},components:{ElInput:V.a},directives:{Clickoutside:ft.a},data:function(){return{pickerVisible:!1,showClose:!1,userInput:null,valueOnOpen:null,unwatchPickerOptions:null}},watch:{pickerVisible:function(t){this.readonly||this.pickerDisabled||(t?(this.showPicker(),this.valueOnOpen=Array.isArray(this.value)?[].concat(this.value):this.value):(this.hidePicker(),this.emitChange(this.value),this.userInput=null,this.validateEvent&&this.dispatch("ElFormItem","el.form.blur"),this.$emit("blur",this),this.blur()))},parsedValue:{immediate:!0,handler:function(t){this.picker&&(this.picker.value=t)}},defaultValue:function(t){this.picker&&(this.picker.defaultValue=t)},value:function(t,e){Co(t,e)||this.pickerVisible||!this.validateEvent||this.dispatch("ElFormItem","el.form.change",t)}},computed:{ranged:function(){return this.type.indexOf("range")>-1},reference:function(){var t=this.$refs.reference;return t.$el||t},refInput:function(){return this.reference?[].slice.call(this.reference.querySelectorAll("input")):[]},valueIsEmpty:function(){var t=this.value;if(Array.isArray(t)){for(var e=0,n=t.length;e<n;e++)if(t[e])return!1}else if(t)return!1;return!0},triggerClass:function(){return this.prefixIcon||(-1!==this.type.indexOf("time")?"el-icon-time":"el-icon-date")},selectionMode:function(){return"week"===this.type?"week":"month"===this.type?"month":"year"===this.type?"year":"dates"===this.type?"dates":"months"===this.type?"months":"years"===this.type?"years":"day"},haveTrigger:function(){return void 0!==this.showTrigger?this.showTrigger:-1!==mo.indexOf(this.type)},displayValue:function(){var t=So(this.parsedValue,this.format,this.type,this.rangeSeparator);return Array.isArray(this.userInput)?[this.userInput[0]||t&&t[0]||"",this.userInput[1]||t&&t[1]||""]:null!==this.userInput?this.userInput:t?"dates"===this.type||"years"===this.type||"months"===this.type?t.join(", "):t:""},parsedValue:function(){return this.value?"time-select"===this.type?this.value:Object(ho.isDateObject)(this.value)||Array.isArray(this.value)&&this.value.every(ho.isDateObject)?this.value:this.valueFormat?ko(this.value,this.valueFormat,this.type,this.rangeSeparator)||this.value:Array.isArray(this.value)?this.value.map(function(t){return new Date(t)}):new Date(this.value):this.value},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},pickerSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},pickerDisabled:function(){return this.disabled||(this.elForm||{}).disabled},firstInputId:function(){var t={},e=void 0;return e=this.ranged?this.id&&this.id[0]:this.id,e&&(t.id=e),t},secondInputId:function(){var t={},e=void 0;return this.ranged&&(e=this.id&&this.id[1]),e&&(t.id=e),t}},created:function(){this.popperOptions={boundariesPadding:0,gpuAcceleration:!1},this.placement=xo[this.align]||xo.left,this.$on("fieldReset",this.handleFieldReset)},methods:{focus:function(){this.ranged?this.handleFocus():this.$refs.reference.focus()},blur:function(){this.refInput.forEach(function(t){return t.blur()})},parseValue:function(t){var e=Object(ho.isDateObject)(t)||Array.isArray(t)&&t.every(ho.isDateObject);return this.valueFormat&&!e?ko(t,this.valueFormat,this.type,this.rangeSeparator)||t:t},formatToValue:function(t){var e=Object(ho.isDateObject)(t)||Array.isArray(t)&&t.every(ho.isDateObject);return this.valueFormat&&e?So(t,this.valueFormat,this.type,this.rangeSeparator):t},parseString:function(t){var e=Array.isArray(t)?this.type:this.type.replace("range","");return ko(t,this.format,e)},formatToString:function(t){var e=Array.isArray(t)?this.type:this.type.replace("range","");return So(t,this.format,e)},handleMouseEnter:function(){this.readonly||this.pickerDisabled||!this.valueIsEmpty&&this.clearable&&(this.showClose=!0)},handleChange:function(){if(this.userInput){var t=this.parseString(this.displayValue);t&&(this.picker.value=t,this.isValidValue(t)&&(this.emitInput(t),this.userInput=null))}""===this.userInput&&(this.emitInput(null),this.emitChange(null),this.userInput=null)},handleStartInput:function(t){this.userInput?this.userInput=[t.target.value,this.userInput[1]]:this.userInput=[t.target.value,null]},handleEndInput:function(t){this.userInput?this.userInput=[this.userInput[0],t.target.value]:this.userInput=[null,t.target.value]},handleStartChange:function(t){var e=this.parseString(this.userInput&&this.userInput[0]);if(e){this.userInput=[this.formatToString(e),this.displayValue[1]];var n=[e,this.picker.value&&this.picker.value[1]];this.picker.value=n,this.isValidValue(n)&&(this.emitInput(n),this.userInput=null)}},handleEndChange:function(t){var e=this.parseString(this.userInput&&this.userInput[1]);if(e){this.userInput=[this.displayValue[0],this.formatToString(e)];var n=[this.picker.value&&this.picker.value[0],e];this.picker.value=n,this.isValidValue(n)&&(this.emitInput(n),this.userInput=null)}},handleClickIcon:function(t){this.readonly||this.pickerDisabled||(this.showClose?(this.valueOnOpen=this.value,t.stopPropagation(),this.emitInput(null),this.emitChange(null),this.showClose=!1,this.picker&&"function"==typeof this.picker.handleClear&&this.picker.handleClear()):this.pickerVisible=!this.pickerVisible)},handleClose:function(){if(this.pickerVisible&&(this.pickerVisible=!1,"dates"===this.type||"years"===this.type||"months"===this.type)){var t=ko(this.valueOnOpen,this.valueFormat,this.type,this.rangeSeparator)||this.valueOnOpen;this.emitInput(t)}},handleFieldReset:function(t){this.userInput=""===t?null:t},handleFocus:function(){var t=this.type;-1===mo.indexOf(t)||this.pickerVisible||(this.pickerVisible=!0),this.$emit("focus",this)},handleKeydown:function(t){var e=this,n=t.keyCode;return 27===n?(this.pickerVisible=!1,void t.stopPropagation()):9===n?void(this.ranged?setTimeout(function(){-1===e.refInput.indexOf(document.activeElement)&&(e.pickerVisible=!1,e.blur(),t.stopPropagation())},0):(this.handleChange(),this.pickerVisible=this.picker.visible=!1,this.blur(),t.stopPropagation())):13===n?((""===this.userInput||this.isValidValue(this.parseString(this.displayValue)))&&(this.handleChange(),this.pickerVisible=this.picker.visible=!1,this.blur()),void t.stopPropagation()):this.userInput?void t.stopPropagation():void(this.picker&&this.picker.handleKeydown&&this.picker.handleKeydown(t))},handleRangeClick:function(){var t=this.type;-1===mo.indexOf(t)||this.pickerVisible||(this.pickerVisible=!0),this.$emit("focus",this)},hidePicker:function(){this.picker&&(this.picker.resetView&&this.picker.resetView(),this.pickerVisible=this.picker.visible=!1,this.destroyPopper())},showPicker:function(){var t=this;this.$isServer||(this.picker||this.mountPicker(),this.pickerVisible=this.picker.visible=!0,this.updatePopper(),this.picker.value=this.parsedValue,this.picker.resetView&&this.picker.resetView(),this.$nextTick(function(){t.picker.adjustSpinners&&t.picker.adjustSpinners()}))},mountPicker:function(){var t=this;this.picker=new ai.a(this.panel).$mount(),this.picker.defaultValue=this.defaultValue,this.picker.defaultTime=this.defaultTime,this.picker.popperClass=this.popperClass,this.popperElm=this.picker.$el,this.picker.width=this.reference.getBoundingClientRect().width,this.picker.showTime="datetime"===this.type||"datetimerange"===this.type,this.picker.selectionMode=this.selectionMode,this.picker.unlinkPanels=this.unlinkPanels,this.picker.arrowControl=this.arrowControl||this.timeArrowControl||!1,this.$watch("format",function(e){t.picker.format=e});var e=function(){var e=t.pickerOptions;if(e&&e.selectableRange){var n=e.selectableRange,r=wo.datetimerange.parser,i=go.timerange;n=Array.isArray(n)?n:[n],t.picker.selectableRange=n.map(function(e){return r(e,i,t.rangeSeparator)})}for(var o in e)e.hasOwnProperty(o)&&"selectableRange"!==o&&(t.picker[o]=e[o]);t.format&&(t.picker.format=t.format)};e(),this.unwatchPickerOptions=this.$watch("pickerOptions",function(){return e()},{deep:!0}),this.$el.appendChild(this.picker.$el),this.picker.resetView&&this.picker.resetView(),this.picker.$on("dodestroy",this.doDestroy),this.picker.$on("pick",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t.userInput=null,t.pickerVisible=t.picker.visible=n,t.emitInput(e),t.picker.resetView&&t.picker.resetView()}),this.picker.$on("select-range",function(e,n,r){0!==t.refInput.length&&(r&&"min"!==r?"max"===r&&(t.refInput[1].setSelectionRange(e,n),t.refInput[1].focus()):(t.refInput[0].setSelectionRange(e,n),t.refInput[0].focus()))})},unmountPicker:function(){this.picker&&(this.picker.$destroy(),this.picker.$off(),"function"==typeof this.unwatchPickerOptions&&this.unwatchPickerOptions(),this.picker.$el.parentNode.removeChild(this.picker.$el))},emitChange:function(t){Co(t,this.valueOnOpen)||(this.$emit("change",t),this.valueOnOpen=t,this.validateEvent&&this.dispatch("ElFormItem","el.form.change",t))},emitInput:function(t){var e=this.formatToValue(t);Co(this.value,e)||this.$emit("input",e)},isValidValue:function(t){return this.picker||this.mountPicker(),!this.picker.isValidValue||t&&this.picker.isValidValue(t)}}},Oo=Ao,Po=r(Oo,co,fo,!1,null,null,null);Po.options.__file="packages/date-picker/src/picker.vue";var No=Po.exports,Do=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-enter":t.handleEnter,"after-leave":t.handleLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"el-picker-panel el-date-picker el-popper",class:[{"has-sidebar":t.$slots.sidebar||t.shortcuts,"has-time":t.showTime},t.popperClass]},[n("div",{staticClass:"el-picker-panel__body-wrapper"},[t._t("sidebar"),t.shortcuts?n("div",{staticClass:"el-picker-panel__sidebar"},t._l(t.shortcuts,function(e,r){return n("button",{key:r,staticClass:"el-picker-panel__shortcut",attrs:{type:"button"},on:{click:function(n){t.handleShortcutClick(e)}}},[t._v(t._s(e.text))])}),0):t._e(),n("div",{staticClass:"el-picker-panel__body"},[t.showTime?n("div",{staticClass:"el-date-picker__time-header"},[n("span",{staticClass:"el-date-picker__editor-wrap"},[n("el-input",{attrs:{placeholder:t.t("el.datepicker.selectDate"),value:t.visibleDate,size:"small"},on:{input:function(e){return t.userInputDate=e},change:t.handleVisibleDateChange}})],1),n("span",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:t.handleTimePickClose,expression:"handleTimePickClose"}],staticClass:"el-date-picker__editor-wrap"},[n("el-input",{ref:"input",attrs:{placeholder:t.t("el.datepicker.selectTime"),value:t.visibleTime,size:"small"},on:{focus:function(e){t.timePickerVisible=!0},input:function(e){return t.userInputTime=e},change:t.handleVisibleTimeChange}}),n("time-picker",{ref:"timepicker",attrs:{"time-arrow-control":t.arrowControl,visible:t.timePickerVisible},on:{pick:t.handleTimePick,mounted:t.proxyTimePickerDataProperties}})],1)]):t._e(),n("div",{directives:[{name:"show",rawName:"v-show",value:"time"!==t.currentView,expression:"currentView !== 'time'"}],staticClass:"el-date-picker__header",class:{"el-date-picker__header--bordered":"year"===t.currentView||"month"===t.currentView}},[n("button",{staticClass:"el-picker-panel__icon-btn el-date-picker__prev-btn el-icon-d-arrow-left",attrs:{type:"button","aria-label":t.t("el.datepicker.prevYear")},on:{click:t.prevYear}}),n("button",{directives:[{name:"show",rawName:"v-show",value:"date"===t.currentView,expression:"currentView === 'date'"}],staticClass:"el-picker-panel__icon-btn el-date-picker__prev-btn el-icon-arrow-left",attrs:{type:"button","aria-label":t.t("el.datepicker.prevMonth")},on:{click:t.prevMonth}}),n("span",{staticClass:"el-date-picker__header-label",attrs:{role:"button"},on:{click:t.showYearPicker}},[t._v(t._s(t.yearLabel))]),n("span",{directives:[{name:"show",rawName:"v-show",value:"date"===t.currentView,expression:"currentView === 'date'"}],staticClass:"el-date-picker__header-label",class:{active:"month"===t.currentView},attrs:{role:"button"},on:{click:t.showMonthPicker}},[t._v(t._s(t.t("el.datepicker.month"+(t.month+1))))]),n("button",{staticClass:"el-picker-panel__icon-btn el-date-picker__next-btn el-icon-d-arrow-right",attrs:{type:"button","aria-label":t.t("el.datepicker.nextYear")},on:{click:t.nextYear}}),n("button",{directives:[{name:"show",rawName:"v-show",value:"date"===t.currentView,expression:"currentView === 'date'"}],staticClass:"el-picker-panel__icon-btn el-date-picker__next-btn el-icon-arrow-right",attrs:{type:"button","aria-label":t.t("el.datepicker.nextMonth")},on:{click:t.nextMonth}})]),n("div",{staticClass:"el-picker-panel__content"},[n("date-table",{directives:[{name:"show",rawName:"v-show",value:"date"===t.currentView,expression:"currentView === 'date'"}],attrs:{"selection-mode":t.selectionMode,"first-day-of-week":t.firstDayOfWeek,value:t.value,"default-value":t.defaultValue?new Date(t.defaultValue):null,date:t.date,"cell-class-name":t.cellClassName,"disabled-date":t.disabledDate},on:{pick:t.handleDatePick}}),n("year-table",{directives:[{name:"show",rawName:"v-show",value:"year"===t.currentView,expression:"currentView === 'year'"}],attrs:{"selection-mode":t.selectionMode,value:t.value,"default-value":t.defaultValue?new Date(t.defaultValue):null,date:t.date,"disabled-date":t.disabledDate},on:{pick:t.handleYearPick}}),n("month-table",{directives:[{name:"show",rawName:"v-show",value:"month"===t.currentView,expression:"currentView === 'month'"}],attrs:{"selection-mode":t.selectionMode,value:t.value,"default-value":t.defaultValue?new Date(t.defaultValue):null,date:t.date,"disabled-date":t.disabledDate},on:{pick:t.handleMonthPick}})],1)])],2),n("div",{directives:[{name:"show",rawName:"v-show",value:t.footerVisible&&("date"===t.currentView||"month"===t.currentView||"year"===t.currentView),expression:"footerVisible && (currentView === 'date' || currentView === 'month' || currentView === 'year')"}],staticClass:"el-picker-panel__footer"},[n("el-button",{directives:[{name:"show",rawName:"v-show",value:"dates"!==t.selectionMode&&"months"!==t.selectionMode&&"years"!==t.selectionMode,expression:"selectionMode !== 'dates' && selectionMode !== 'months' && selectionMode !== 'years'"}],staticClass:"el-picker-panel__link-btn",attrs:{size:"mini",type:"text"},on:{click:t.changeToNow}},[t._v("\n "+t._s(t.t("el.datepicker.now"))+"\n ")]),n("el-button",{staticClass:"el-picker-panel__link-btn",attrs:{plain:"",size:"mini"},on:{click:t.confirm}},[t._v("\n "+t._s(t.t("el.datepicker.confirm"))+"\n ")])],1)])])},Mo=[];Do._withStripped=!0;var Io=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":function(e){t.$emit("dodestroy")}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"el-time-panel el-popper",class:t.popperClass},[n("div",{staticClass:"el-time-panel__content",class:{"has-seconds":t.showSeconds}},[n("time-spinner",{ref:"spinner",attrs:{"arrow-control":t.useArrow,"show-seconds":t.showSeconds,"am-pm-mode":t.amPmMode,date:t.date},on:{change:t.handleChange,"select-range":t.setSelectionRange}})],1),n("div",{staticClass:"el-time-panel__footer"},[n("button",{staticClass:"el-time-panel__btn cancel",attrs:{type:"button"},on:{click:t.handleCancel}},[t._v(t._s(t.t("el.datepicker.cancel")))]),n("button",{staticClass:"el-time-panel__btn",class:{confirm:!t.disabled},attrs:{type:"button"},on:{click:function(e){t.handleConfirm()}}},[t._v(t._s(t.t("el.datepicker.confirm")))])])])])},Ro=[];Io._withStripped=!0;var $o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-time-spinner",class:{"has-seconds":t.showSeconds}},[t.arrowControl?t._e():[n("el-scrollbar",{ref:"hours",staticClass:"el-time-spinner__wrapper",attrs:{"wrap-style":"max-height: inherit;","view-class":"el-time-spinner__list",noresize:"",tag:"ul"},nativeOn:{mouseenter:function(e){t.emitSelectRange("hours")},mousemove:function(e){t.adjustCurrentSpinner("hours")}}},t._l(t.hoursList,function(e,r){return n("li",{key:r,staticClass:"el-time-spinner__item",class:{active:r===t.hours,disabled:e},on:{click:function(n){t.handleClick("hours",{value:r,disabled:e})}}},[t._v(t._s(("0"+(t.amPmMode?r%12||12:r)).slice(-2))+t._s(t.amPm(r)))])}),0),n("el-scrollbar",{ref:"minutes",staticClass:"el-time-spinner__wrapper",attrs:{"wrap-style":"max-height: inherit;","view-class":"el-time-spinner__list",noresize:"",tag:"ul"},nativeOn:{mouseenter:function(e){t.emitSelectRange("minutes")},mousemove:function(e){t.adjustCurrentSpinner("minutes")}}},t._l(t.minutesList,function(e,r){return n("li",{key:r,staticClass:"el-time-spinner__item",class:{active:r===t.minutes,disabled:!e},on:{click:function(e){t.handleClick("minutes",{value:r,disabled:!1})}}},[t._v(t._s(("0"+r).slice(-2)))])}),0),n("el-scrollbar",{directives:[{name:"show",rawName:"v-show",value:t.showSeconds,expression:"showSeconds"}],ref:"seconds",staticClass:"el-time-spinner__wrapper",attrs:{"wrap-style":"max-height: inherit;","view-class":"el-time-spinner__list",noresize:"",tag:"ul"},nativeOn:{mouseenter:function(e){t.emitSelectRange("seconds")},mousemove:function(e){t.adjustCurrentSpinner("seconds")}}},t._l(60,function(e,r){return n("li",{key:r,staticClass:"el-time-spinner__item",class:{active:r===t.seconds},on:{click:function(e){t.handleClick("seconds",{value:r,disabled:!1})}}},[t._v(t._s(("0"+r).slice(-2)))])}),0)],t.arrowControl?[n("div",{staticClass:"el-time-spinner__wrapper is-arrow",on:{mouseenter:function(e){t.emitSelectRange("hours")}}},[n("i",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:t.decrease,expression:"decrease"}],staticClass:"el-time-spinner__arrow el-icon-arrow-up"}),n("i",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:t.increase,expression:"increase"}],staticClass:"el-time-spinner__arrow el-icon-arrow-down"}),n("ul",{ref:"hours",staticClass:"el-time-spinner__list"},t._l(t.arrowHourList,function(e,r){return n("li",{key:r,staticClass:"el-time-spinner__item",class:{active:e===t.hours,disabled:t.hoursList[e]}},[t._v(t._s(void 0===e?"":("0"+(t.amPmMode?e%12||12:e)).slice(-2)+t.amPm(e)))])}),0)]),n("div",{staticClass:"el-time-spinner__wrapper is-arrow",on:{mouseenter:function(e){t.emitSelectRange("minutes")}}},[n("i",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:t.decrease,expression:"decrease"}],staticClass:"el-time-spinner__arrow el-icon-arrow-up"}),n("i",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:t.increase,expression:"increase"}],staticClass:"el-time-spinner__arrow el-icon-arrow-down"}),n("ul",{ref:"minutes",staticClass:"el-time-spinner__list"},t._l(t.arrowMinuteList,function(e,r){return n("li",{key:r,staticClass:"el-time-spinner__item",class:{active:e===t.minutes}},[t._v("\n "+t._s(void 0===e?"":("0"+e).slice(-2))+"\n ")])}),0)]),t.showSeconds?n("div",{staticClass:"el-time-spinner__wrapper is-arrow",on:{mouseenter:function(e){t.emitSelectRange("seconds")}}},[n("i",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:t.decrease,expression:"decrease"}],staticClass:"el-time-spinner__arrow el-icon-arrow-up"}),n("i",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:t.increase,expression:"increase"}],staticClass:"el-time-spinner__arrow el-icon-arrow-down"}),n("ul",{ref:"seconds",staticClass:"el-time-spinner__list"},t._l(t.arrowSecondList,function(e,r){return n("li",{key:r,staticClass:"el-time-spinner__item",class:{active:e===t.seconds}},[t._v("\n "+t._s(void 0===e?"":("0"+e).slice(-2))+"\n ")])}),0)]):t._e()]:t._e()],2)},Lo=[];$o._withStripped=!0;var jo={components:{ElScrollbar:vt.a},directives:{repeatClick:Qe},props:{date:{},defaultValue:{},showSeconds:{type:Boolean,default:!0},arrowControl:Boolean,amPmMode:{type:String,default:""}},computed:{hours:function(){return this.date.getHours()},minutes:function(){return this.date.getMinutes()},seconds:function(){return this.date.getSeconds()},hoursList:function(){return Object(ho.getRangeHours)(this.selectableRange)},minutesList:function(){return Object(ho.getRangeMinutes)(this.selectableRange,this.hours)},arrowHourList:function(){var t=this.hours;return[t>0?t-1:void 0,t,t<23?t+1:void 0]},arrowMinuteList:function(){var t=this.minutes;return[t>0?t-1:void 0,t,t<59?t+1:void 0]},arrowSecondList:function(){var t=this.seconds;return[t>0?t-1:void 0,t,t<59?t+1:void 0]}},data:function(){return{selectableRange:[],currentScrollbar:null}},mounted:function(){var t=this;this.$nextTick(function(){!t.arrowControl&&t.bindScrollEvent()})},methods:{increase:function(){this.scrollDown(1)},decrease:function(){this.scrollDown(-1)},modifyDateField:function(t,e){switch(t){case"hours":this.$emit("change",Object(ho.modifyTime)(this.date,e,this.minutes,this.seconds));break;case"minutes":this.$emit("change",Object(ho.modifyTime)(this.date,this.hours,e,this.seconds));break;case"seconds":this.$emit("change",Object(ho.modifyTime)(this.date,this.hours,this.minutes,e))}},handleClick:function(t,e){var n=e.value;e.disabled||(this.modifyDateField(t,n),this.emitSelectRange(t),this.adjustSpinner(t,n))},emitSelectRange:function(t){"hours"===t?this.$emit("select-range",0,2):"minutes"===t?this.$emit("select-range",3,5):"seconds"===t&&this.$emit("select-range",6,8),this.currentScrollbar=t},bindScrollEvent:function(){var t=this,e=function(e){t.$refs[e].wrap.onscroll=function(n){t.handleScroll(e,n)}};e("hours"),e("minutes"),e("seconds")},handleScroll:function(t){var e=Math.min(Math.round((this.$refs[t].wrap.scrollTop-(.5*this.scrollBarHeight(t)-10)/this.typeItemHeight(t)+3)/this.typeItemHeight(t)),"hours"===t?23:59);this.modifyDateField(t,e)},adjustSpinners:function(){this.adjustSpinner("hours",this.hours),this.adjustSpinner("minutes",this.minutes),this.adjustSpinner("seconds",this.seconds)},adjustCurrentSpinner:function(t){this.adjustSpinner(t,this[t])},adjustSpinner:function(t,e){if(!this.arrowControl){var n=this.$refs[t].wrap;n&&(n.scrollTop=Math.max(0,e*this.typeItemHeight(t)))}},scrollDown:function(t){var e=this;this.currentScrollbar||this.emitSelectRange("hours");var n=this.currentScrollbar,r=this.hoursList,i=this[n];if("hours"===this.currentScrollbar){var o=Math.abs(t);t=t>0?1:-1;for(var a=r.length;a--&&o;)i=(i+t+r.length)%r.length,r[i]||o--;if(r[i])return}else i=(i+t+60)%60;this.modifyDateField(n,i),this.adjustSpinner(n,i),this.$nextTick(function(){return e.emitSelectRange(e.currentScrollbar)})},amPm:function(t){if("a"!==this.amPmMode.toLowerCase())return"";var e="A"===this.amPmMode,n=t<12?" am":" pm";return e&&(n=n.toUpperCase()),n},typeItemHeight:function(t){return this.$refs[t].$el.querySelector("li").offsetHeight},scrollBarHeight:function(t){return this.$refs[t].$el.offsetHeight}}},Fo=jo,Bo=r(Fo,$o,Lo,!1,null,null,null);Bo.options.__file="packages/date-picker/src/basic/time-spinner.vue";var Vo=Bo.exports,zo={mixins:[U.a],components:{TimeSpinner:Vo},props:{visible:Boolean,timeArrowControl:Boolean},watch:{visible:function(t){var e=this;t?(this.oldValue=this.value,this.$nextTick(function(){return e.$refs.spinner.emitSelectRange("hours")})):this.needInitAdjust=!0},value:function(t){var e=this,n=void 0;t instanceof Date?n=Object(ho.limitTimeRange)(t,this.selectableRange,this.format):t||(n=this.defaultValue?new Date(this.defaultValue):new Date),this.date=n,this.visible&&this.needInitAdjust&&(this.$nextTick(function(t){return e.adjustSpinners()}),this.needInitAdjust=!1)},selectableRange:function(t){this.$refs.spinner.selectableRange=t},defaultValue:function(t){Object(ho.isDate)(this.value)||(this.date=t?new Date(t):new Date)}},data:function(){return{popperClass:"",format:"HH:mm:ss",value:"",defaultValue:null,date:new Date,oldValue:new Date,selectableRange:[],selectionRange:[0,2],disabled:!1,arrowControl:!1,needInitAdjust:!0}},computed:{showSeconds:function(){return-1!==(this.format||"").indexOf("ss")},useArrow:function(){return this.arrowControl||this.timeArrowControl||!1},amPmMode:function(){return-1!==(this.format||"").indexOf("A")?"A":-1!==(this.format||"").indexOf("a")?"a":""}},methods:{handleCancel:function(){this.$emit("pick",this.oldValue,!1)},handleChange:function(t){this.visible&&(this.date=Object(ho.clearMilliseconds)(t),this.isValidValue(this.date)&&this.$emit("pick",this.date,!0))},setSelectionRange:function(t,e){this.$emit("select-range",t,e),this.selectionRange=[t,e]},handleConfirm:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments[1];if(!e){var n=Object(ho.clearMilliseconds)(Object(ho.limitTimeRange)(this.date,this.selectableRange,this.format));this.$emit("pick",n,t,e)}},handleKeydown:function(t){var e=t.keyCode,n={38:-1,40:1,37:-1,39:1};if(37===e||39===e){var r=n[e];return this.changeSelectionRange(r),void t.preventDefault()}if(38===e||40===e){var i=n[e];return this.$refs.spinner.scrollDown(i),void t.preventDefault()}},isValidValue:function(t){return Object(ho.timeWithinRange)(t,this.selectableRange,this.format)},adjustSpinners:function(){return this.$refs.spinner.adjustSpinners()},changeSelectionRange:function(t){var e=[0,3].concat(this.showSeconds?[6]:[]),n=["hours","minutes"].concat(this.showSeconds?["seconds"]:[]),r=e.indexOf(this.selectionRange[0]),i=(r+t+e.length)%e.length;this.$refs.spinner.emitSelectRange(n[i])}},mounted:function(){var t=this;this.$nextTick(function(){return t.handleConfirm(!0,!0)}),this.$emit("mounted")}},Uo=zo,Ho=r(Uo,Io,Ro,!1,null,null,null);Ho.options.__file="packages/date-picker/src/panel/time.vue";var qo=Ho.exports,Wo=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("table",{staticClass:"el-year-table",on:{click:t.handleYearTableClick}},[n("tbody",[n("tr",[n("td",{staticClass:"available",class:t.getCellStyle(t.startYear+0)},[n("a",{staticClass:"cell"},[t._v(t._s(t.startYear))])]),n("td",{staticClass:"available",class:t.getCellStyle(t.startYear+1)},[n("a",{staticClass:"cell"},[t._v(t._s(t.startYear+1))])]),n("td",{staticClass:"available",class:t.getCellStyle(t.startYear+2)},[n("a",{staticClass:"cell"},[t._v(t._s(t.startYear+2))])]),n("td",{staticClass:"available",class:t.getCellStyle(t.startYear+3)},[n("a",{staticClass:"cell"},[t._v(t._s(t.startYear+3))])])]),n("tr",[n("td",{staticClass:"available",class:t.getCellStyle(t.startYear+4)},[n("a",{staticClass:"cell"},[t._v(t._s(t.startYear+4))])]),n("td",{staticClass:"available",class:t.getCellStyle(t.startYear+5)},[n("a",{staticClass:"cell"},[t._v(t._s(t.startYear+5))])]),n("td",{staticClass:"available",class:t.getCellStyle(t.startYear+6)},[n("a",{staticClass:"cell"},[t._v(t._s(t.startYear+6))])]),n("td",{staticClass:"available",class:t.getCellStyle(t.startYear+7)},[n("a",{staticClass:"cell"},[t._v(t._s(t.startYear+7))])])]),n("tr",[n("td",{staticClass:"available",class:t.getCellStyle(t.startYear+8)},[n("a",{staticClass:"cell"},[t._v(t._s(t.startYear+8))])]),n("td",{staticClass:"available",class:t.getCellStyle(t.startYear+9)},[n("a",{staticClass:"cell"},[t._v(t._s(t.startYear+9))])]),n("td"),n("td")])])])},Go=[];Wo._withStripped=!0;var Yo=function(t){var e=Object(ho.getDayCountOfYear)(t),n=new Date(t,0,1);return Object(ho.range)(e).map(function(t){return Object(ho.nextDate)(n,t)})},Ko={props:{disabledDate:{},value:{},defaultValue:{validator:function(t){return null===t||t instanceof Date&&Object(ho.isDate)(t)}},date:{},selectionMode:{}},computed:{startYear:function(){return 10*Math.floor(this.date.getFullYear()/10)}},methods:{getCellStyle:function(t){var e={},n=new Date;return e.disabled="function"==typeof this.disabledDate&&Yo(t).every(this.disabledDate),e.current=Object(H.arrayFindIndex)(Object(H.coerceTruthyValueToArray)(this.value),function(e){return e.getFullYear()===t})>=0,e.today=n.getFullYear()===t,e.default=this.defaultValue&&this.defaultValue.getFullYear()===t,e},handleYearTableClick:function(t){var e=t.target;if("A"===e.tagName){if(Object(ae.hasClass)(e.parentNode,"disabled"))return;var n=e.textContent||e.innerText;if("years"===this.selectionMode){var r=this.value||[],i=Object(H.arrayFindIndex)(r,function(t){return t.getFullYear()===Number(n)}),o=i>-1?[].concat(r.slice(0,i),r.slice(i+1)):[].concat(r,[new Date(n)]);this.$emit("pick",o)}else this.$emit("pick",Number(n))}}}},Xo=Ko,Jo=r(Xo,Wo,Go,!1,null,null,null);Jo.options.__file="packages/date-picker/src/basic/year-table.vue";var Qo=Jo.exports,Zo=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("table",{staticClass:"el-month-table",on:{click:t.handleMonthTableClick,mousemove:t.handleMouseMove}},[n("tbody",t._l(t.rows,function(e,r){return n("tr",{key:r},t._l(e,function(e,r){return n("td",{key:r,class:t.getCellStyle(e)},[n("div",[n("a",{staticClass:"cell"},[t._v(t._s(t.t("el.datepicker.months."+t.months[e.text])))])])])}),0)}),0)])},ta=[];Zo._withStripped=!0;var ea=function(t,e){var n=Object(ho.getDayCountOfMonth)(t,e),r=new Date(t,e,1);return Object(ho.range)(n).map(function(t){return Object(ho.nextDate)(r,t)})},na=function(t){return new Date(t.getFullYear(),t.getMonth())},ra=function(t){return"number"==typeof t||"string"==typeof t?na(new Date(t)).getTime():t instanceof Date?na(t).getTime():NaN},ia=function(t,e){var n="function"==typeof e?Object(H.arrayFindIndex)(t,e):t.indexOf(e);return n>=0?[].concat(t.slice(0,n),t.slice(n+1)):t},oa={props:{disabledDate:{},value:{},selectionMode:{default:"month"},minDate:{},maxDate:{},defaultValue:{validator:function(t){return null===t||Object(ho.isDate)(t)||Array.isArray(t)&&t.every(ho.isDate)}},date:{},rangeState:{default:function(){return{endDate:null,selecting:!1}}}},mixins:[U.a],watch:{"rangeState.endDate":function(t){this.markRange(this.minDate,t)},minDate:function(t,e){ra(t)!==ra(e)&&this.markRange(this.minDate,this.maxDate)},maxDate:function(t,e){ra(t)!==ra(e)&&this.markRange(this.minDate,this.maxDate)}},data:function(){return{months:["jan","feb","mar","apr","may","jun","jul","aug","sep","oct","nov","dec"],tableRows:[[],[],[]],lastRow:null,lastColumn:null}},methods:{cellMatchesDate:function(t,e){var n=new Date(e);return this.date.getFullYear()===n.getFullYear()&&Number(t.text)===n.getMonth()},getCellStyle:function(t){var e=this,n={},r=this.date.getFullYear(),i=new Date,o=t.text,a=this.defaultValue?Array.isArray(this.defaultValue)?this.defaultValue:[this.defaultValue]:[];return n.disabled="function"==typeof this.disabledDate&&ea(r,o).every(this.disabledDate),n.current=Object(H.arrayFindIndex)(Object(H.coerceTruthyValueToArray)(this.value),function(t){return t.getFullYear()===r&&t.getMonth()===o})>=0,n.today=i.getFullYear()===r&&i.getMonth()===o,n.default=a.some(function(n){return e.cellMatchesDate(t,n)}),t.inRange&&(n["in-range"]=!0,t.start&&(n["start-date"]=!0),t.end&&(n["end-date"]=!0)),n},getMonthOfCell:function(t){var e=this.date.getFullYear();return new Date(e,t,1)},markRange:function(t,e){t=ra(t),e=ra(e)||t;var n=[Math.min(t,e),Math.max(t,e)];t=n[0],e=n[1];for(var r=this.rows,i=0,o=r.length;i<o;i++)for(var a=r[i],s=0,u=a.length;s<u;s++){var l=a[s],c=4*i+s,f=new Date(this.date.getFullYear(),c).getTime();l.inRange=t&&f>=t&&f<=e,l.start=t&&f===t,l.end=e&&f===e}},handleMouseMove:function(t){if(this.rangeState.selecting){var e=t.target;if("A"===e.tagName&&(e=e.parentNode.parentNode),"DIV"===e.tagName&&(e=e.parentNode),"TD"===e.tagName){var n=e.parentNode.rowIndex,r=e.cellIndex;this.rows[n][r].disabled||n===this.lastRow&&r===this.lastColumn||(this.lastRow=n,this.lastColumn=r,this.$emit("changerange",{minDate:this.minDate,maxDate:this.maxDate,rangeState:{selecting:!0,endDate:this.getMonthOfCell(4*n+r)}}))}}},handleMonthTableClick:function(t){var e=t.target;if("A"===e.tagName&&(e=e.parentNode.parentNode),"DIV"===e.tagName&&(e=e.parentNode),"TD"===e.tagName&&!Object(ae.hasClass)(e,"disabled")){var n=e.cellIndex,r=e.parentNode.rowIndex,i=4*r+n,o=this.getMonthOfCell(i);if("range"===this.selectionMode)this.rangeState.selecting?(o>=this.minDate?this.$emit("pick",{minDate:this.minDate,maxDate:o}):this.$emit("pick",{minDate:o,maxDate:this.minDate}),this.rangeState.selecting=!1):(this.$emit("pick",{minDate:o,maxDate:null}),this.rangeState.selecting=!0);else if("months"===this.selectionMode){var a=this.value||[],s=this.date.getFullYear(),u=Object(H.arrayFindIndex)(a,function(t){return t.getFullYear()===s&&t.getMonth()===i})>=0?ia(a,function(t){return t.getTime()===o.getTime()}):[].concat(a,[o]);this.$emit("pick",u)}else this.$emit("pick",i)}}},computed:{rows:function(){for(var t=this,e=this.tableRows,n=this.disabledDate,r=[],i=ra(new Date),o=0;o<3;o++)for(var a=e[o],s=0;s<4;s++)!function(e){var s=a[e];s||(s={row:o,column:e,type:"normal",inRange:!1,start:!1,end:!1}),s.type="normal";var u=4*o+e,l=new Date(t.date.getFullYear(),u).getTime();s.inRange=l>=ra(t.minDate)&&l<=ra(t.maxDate),s.start=t.minDate&&l===ra(t.minDate),s.end=t.maxDate&&l===ra(t.maxDate),l===i&&(s.type="today"),s.text=u;var c=new Date(l);s.disabled="function"==typeof n&&n(c),s.selected=Object(H.arrayFind)(r,function(t){return t.getTime()===c.getTime()}),t.$set(a,e,s)}(s);return e}}},aa=oa,sa=r(aa,Zo,ta,!1,null,null,null);sa.options.__file="packages/date-picker/src/basic/month-table.vue";var ua=sa.exports,la=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("table",{staticClass:"el-date-table",class:{"is-week-mode":"week"===t.selectionMode},attrs:{cellspacing:"0",cellpadding:"0"},on:{click:t.handleClick,mousemove:t.handleMouseMove}},[n("tbody",[n("tr",[t.showWeekNumber?n("th",[t._v(t._s(t.t("el.datepicker.week")))]):t._e(),t._l(t.WEEKS,function(e,r){return n("th",{key:r},[t._v(t._s(t.t("el.datepicker.weeks."+e)))])})],2),t._l(t.rows,function(e,r){return n("tr",{key:r,staticClass:"el-date-table__row",class:{current:t.isWeekActive(e[1])}},t._l(e,function(e,r){return n("td",{key:r,class:t.getCellClasses(e)},[n("div",[n("span",[t._v("\n "+t._s(e.text)+"\n ")])])])}),0)})],2)])},ca=[];la._withStripped=!0;var fa=["sun","mon","tue","wed","thu","fri","sat"],da=function(t){return"number"==typeof t||"string"==typeof t?Object(ho.clearTime)(new Date(t)).getTime():t instanceof Date?Object(ho.clearTime)(t).getTime():NaN},ha=function(t,e){var n="function"==typeof e?Object(H.arrayFindIndex)(t,e):t.indexOf(e);return n>=0?[].concat(t.slice(0,n),t.slice(n+1)):t},pa={mixins:[U.a],props:{firstDayOfWeek:{default:7,type:Number,validator:function(t){return t>=1&&t<=7}},value:{},defaultValue:{validator:function(t){return null===t||Object(ho.isDate)(t)||Array.isArray(t)&&t.every(ho.isDate)}},date:{},selectionMode:{default:"day"},showWeekNumber:{type:Boolean,default:!1},disabledDate:{},cellClassName:{},minDate:{},maxDate:{},rangeState:{default:function(){return{endDate:null,selecting:!1}}}},computed:{offsetDay:function(){var t=this.firstDayOfWeek;return t>3?7-t:-t},WEEKS:function(){var t=this.firstDayOfWeek;return fa.concat(fa).slice(t,t+7)},year:function(){return this.date.getFullYear()},month:function(){return this.date.getMonth()},startDate:function(){return Object(ho.getStartDateOfMonth)(this.year,this.month)},rows:function(){var t=this,e=new Date(this.year,this.month,1),n=Object(ho.getFirstDayOfMonth)(e),r=Object(ho.getDayCountOfMonth)(e.getFullYear(),e.getMonth()),i=Object(ho.getDayCountOfMonth)(e.getFullYear(),0===e.getMonth()?11:e.getMonth()-1);n=0===n?7:n;for(var o=this.offsetDay,a=this.tableRows,s=1,u=this.startDate,l=this.disabledDate,c=this.cellClassName,f="dates"===this.selectionMode?Object(H.coerceTruthyValueToArray)(this.value):[],d=da(new Date),h=0;h<6;h++){var p=a[h];this.showWeekNumber&&(p[0]||(p[0]={type:"week",text:Object(ho.getWeekNumber)(Object(ho.nextDate)(u,7*h+1))}));for(var g=0;g<7;g++)!function(e){var a=p[t.showWeekNumber?e+1:e];a||(a={row:h,column:e,type:"normal",inRange:!1,start:!1,end:!1}),a.type="normal";var g=7*h+e,m=Object(ho.nextDate)(u,g-o).getTime();if(a.inRange=m>=da(t.minDate)&&m<=da(t.maxDate),a.start=t.minDate&&m===da(t.minDate),a.end=t.maxDate&&m===da(t.maxDate),m===d&&(a.type="today"),h>=0&&h<=1){var v=n+o<0?7+n+o:n+o;e+7*h>=v?a.text=s++:(a.text=i-(v-e%7)+1+7*h,a.type="prev-month")}else s<=r?a.text=s++:(a.text=s++-r,a.type="next-month");var y=new Date(m);a.disabled="function"==typeof l&&l(y),a.selected=Object(H.arrayFind)(f,function(t){return t.getTime()===y.getTime()}),a.customClass="function"==typeof c&&c(y),t.$set(p,t.showWeekNumber?e+1:e,a)}(g);if("week"===this.selectionMode){var m=this.showWeekNumber?1:0,v=this.showWeekNumber?7:6,y=this.isWeekActive(p[m+1]);p[m].inRange=y,p[m].start=y,p[v].inRange=y,p[v].end=y}}return a}},watch:{"rangeState.endDate":function(t){this.markRange(this.minDate,t)},minDate:function(t,e){da(t)!==da(e)&&this.markRange(this.minDate,this.maxDate)},maxDate:function(t,e){da(t)!==da(e)&&this.markRange(this.minDate,this.maxDate)}},data:function(){return{tableRows:[[],[],[],[],[],[]],lastRow:null,lastColumn:null}},methods:{cellMatchesDate:function(t,e){var n=new Date(e);return this.year===n.getFullYear()&&this.month===n.getMonth()&&Number(t.text)===n.getDate()},getCellClasses:function(t){var e=this,n=this.selectionMode,r=this.defaultValue?Array.isArray(this.defaultValue)?this.defaultValue:[this.defaultValue]:[],i=[];return"normal"!==t.type&&"today"!==t.type||t.disabled?i.push(t.type):(i.push("available"),"today"===t.type&&i.push("today")),"normal"===t.type&&r.some(function(n){return e.cellMatchesDate(t,n)})&&i.push("default"),"day"!==n||"normal"!==t.type&&"today"!==t.type||!this.cellMatchesDate(t,this.value)||i.push("current"),!t.inRange||"normal"!==t.type&&"today"!==t.type&&"week"!==this.selectionMode||(i.push("in-range"),t.start&&i.push("start-date"),t.end&&i.push("end-date")),t.disabled&&i.push("disabled"),t.selected&&i.push("selected"),t.customClass&&i.push(t.customClass),i.join(" ")},getDateOfCell:function(t,e){var n=7*t+(e-(this.showWeekNumber?1:0))-this.offsetDay;return Object(ho.nextDate)(this.startDate,n)},isWeekActive:function(t){if("week"!==this.selectionMode)return!1;var e=new Date(this.year,this.month,1),n=e.getFullYear(),r=e.getMonth();if("prev-month"===t.type&&(e.setMonth(0===r?11:r-1),e.setFullYear(0===r?n-1:n)),"next-month"===t.type&&(e.setMonth(11===r?0:r+1),e.setFullYear(11===r?n+1:n)),e.setDate(parseInt(t.text,10)),Object(ho.isDate)(this.value)){var i=(this.value.getDay()-this.firstDayOfWeek+7)%7-1;return Object(ho.prevDate)(this.value,i).getTime()===e.getTime()}return!1},markRange:function(t,e){t=da(t),e=da(e)||t;var n=[Math.min(t,e),Math.max(t,e)];t=n[0],e=n[1];for(var r=this.startDate,i=this.rows,o=0,a=i.length;o<a;o++)for(var s=i[o],u=0,l=s.length;u<l;u++)if(!this.showWeekNumber||0!==u){var c=s[u],f=7*o+u+(this.showWeekNumber?-1:0),d=Object(ho.nextDate)(r,f-this.offsetDay).getTime();c.inRange=t&&d>=t&&d<=e,c.start=t&&d===t,c.end=e&&d===e}},handleMouseMove:function(t){if(this.rangeState.selecting){var e=t.target;if("SPAN"===e.tagName&&(e=e.parentNode.parentNode),"DIV"===e.tagName&&(e=e.parentNode),"TD"===e.tagName){var n=e.parentNode.rowIndex-1,r=e.cellIndex;this.rows[n][r].disabled||n===this.lastRow&&r===this.lastColumn||(this.lastRow=n,this.lastColumn=r,this.$emit("changerange",{minDate:this.minDate,maxDate:this.maxDate,rangeState:{selecting:!0,endDate:this.getDateOfCell(n,r)}}))}}},handleClick:function(t){var e=t.target;if("SPAN"===e.tagName&&(e=e.parentNode.parentNode),"DIV"===e.tagName&&(e=e.parentNode),"TD"===e.tagName){var n=e.parentNode.rowIndex-1,r="week"===this.selectionMode?1:e.cellIndex,i=this.rows[n][r];if(!i.disabled&&"week"!==i.type){var o=this.getDateOfCell(n,r);if("range"===this.selectionMode)this.rangeState.selecting?(o>=this.minDate?this.$emit("pick",{minDate:this.minDate,maxDate:o}):this.$emit("pick",{minDate:o,maxDate:this.minDate}),this.rangeState.selecting=!1):(this.$emit("pick",{minDate:o,maxDate:null}),this.rangeState.selecting=!0);else if("day"===this.selectionMode)this.$emit("pick",o);else if("week"===this.selectionMode){var a=Object(ho.getWeekNumber)(o),s=o.getFullYear()+"w"+a;this.$emit("pick",{year:o.getFullYear(),week:a,value:s,date:o})}else if("dates"===this.selectionMode){var u=this.value||[],l=i.selected?ha(u,function(t){return t.getTime()===o.getTime()}):[].concat(u,[o]);this.$emit("pick",l)}}}}}},ga=pa,ma=r(ga,la,ca,!1,null,null,null);ma.options.__file="packages/date-picker/src/basic/date-table.vue";var va=ma.exports,ya={mixins:[U.a],directives:{Clickoutside:ft.a},watch:{showTime:function(t){var e=this;t&&this.$nextTick(function(t){var n=e.$refs.input.$el;n&&(e.pickerWidth=n.getBoundingClientRect().width+10)})},value:function(t){"dates"===this.selectionMode&&this.value||"months"===this.selectionMode&&this.value||"years"===this.selectionMode&&this.value||(Object(ho.isDate)(t)?this.date=new Date(t):this.date=this.getDefaultValue())},defaultValue:function(t){Object(ho.isDate)(this.value)||(this.date=t?new Date(t):new Date)},timePickerVisible:function(t){var e=this;t&&this.$nextTick(function(){return e.$refs.timepicker.adjustSpinners()})},selectionMode:function(t){"month"===t?"year"===this.currentView&&"month"===this.currentView||(this.currentView="month"):"dates"===t?this.currentView="date":"years"===t?this.currentView="year":"months"===t&&(this.currentView="month")}},methods:{proxyTimePickerDataProperties:function(){var t=this,e=function(e){t.$refs.timepicker.value=e},n=function(e){t.$refs.timepicker.date=e},r=function(e){t.$refs.timepicker.selectableRange=e};this.$watch("value",e),this.$watch("date",n),this.$watch("selectableRange",r),function(e){t.$refs.timepicker.format=e}(this.timeFormat),e(this.value),n(this.date),r(this.selectableRange)},handleClear:function(){this.date=this.getDefaultValue(),this.$emit("pick",null)},emit:function(t){for(var e=this,n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];if(t)if(Array.isArray(t)){var o=t.map(function(t){return e.showTime?Object(ho.clearMilliseconds)(t):Object(ho.clearTime)(t)});this.$emit.apply(this,["pick",o].concat(r))}else this.$emit.apply(this,["pick",this.showTime?Object(ho.clearMilliseconds)(t):Object(ho.clearTime)(t)].concat(r));else this.$emit.apply(this,["pick",t].concat(r));this.userInputDate=null,this.userInputTime=null},showMonthPicker:function(){this.currentView="month"},showYearPicker:function(){this.currentView="year"},prevMonth:function(){this.date=Object(ho.prevMonth)(this.date)},nextMonth:function(){this.date=Object(ho.nextMonth)(this.date)},prevYear:function(){"year"===this.currentView?this.date=Object(ho.prevYear)(this.date,10):this.date=Object(ho.prevYear)(this.date)},nextYear:function(){"year"===this.currentView?this.date=Object(ho.nextYear)(this.date,10):this.date=Object(ho.nextYear)(this.date)},handleShortcutClick:function(t){t.onClick&&t.onClick(this)},handleTimePick:function(t,e,n){if(Object(ho.isDate)(t)){var r=this.value?Object(ho.modifyTime)(this.value,t.getHours(),t.getMinutes(),t.getSeconds()):Object(ho.modifyWithTimeString)(this.getDefaultValue(),this.defaultTime);this.date=r,this.emit(this.date,!0)}else this.emit(t,!0);n||(this.timePickerVisible=e)},handleTimePickClose:function(){this.timePickerVisible=!1},handleMonthPick:function(t){"month"===this.selectionMode?(this.date=Object(ho.modifyDate)(this.date,this.year,t,1),this.emit(this.date)):"months"===this.selectionMode?this.emit(t,!0):(this.date=Object(ho.changeYearMonthAndClampDate)(this.date,this.year,t),this.currentView="date")},handleDatePick:function(t){if("day"===this.selectionMode){var e=this.value?Object(ho.modifyDate)(this.value,t.getFullYear(),t.getMonth(),t.getDate()):Object(ho.modifyWithTimeString)(t,this.defaultTime);this.checkDateWithinRange(e)||(e=Object(ho.modifyDate)(this.selectableRange[0][0],t.getFullYear(),t.getMonth(),t.getDate())),this.date=e,this.emit(this.date,this.showTime)}else"week"===this.selectionMode?this.emit(t.date):"dates"===this.selectionMode&&this.emit(t,!0)},handleYearPick:function(t){"year"===this.selectionMode?(this.date=Object(ho.modifyDate)(this.date,t,0,1),this.emit(this.date)):"years"===this.selectionMode?this.emit(t,!0):(this.date=Object(ho.changeYearMonthAndClampDate)(this.date,t,this.month),this.currentView="month")},changeToNow:function(){this.disabledDate&&this.disabledDate(new Date)||!this.checkDateWithinRange(new Date)||(this.date=new Date,this.emit(this.date))},confirm:function(){if("dates"===this.selectionMode||"months"===this.selectionMode||"years"===this.selectionMode)this.emit(this.value);else{var t=this.value?this.value:Object(ho.modifyWithTimeString)(this.getDefaultValue(),this.defaultTime);this.date=new Date(t),this.emit(t)}},resetView:function(){"month"===this.selectionMode||"months"===this.selectionMode?this.currentView="month":"year"===this.selectionMode||"years"===this.selectionMode?this.currentView="year":this.currentView="date"},handleEnter:function(){document.body.addEventListener("keydown",this.handleKeydown)},handleLeave:function(){this.$emit("dodestroy"),document.body.removeEventListener("keydown",this.handleKeydown)},handleKeydown:function(t){var e=t.keyCode,n=[38,40,37,39];this.visible&&!this.timePickerVisible&&(-1!==n.indexOf(e)&&(this.handleKeyControl(e),t.stopPropagation(),t.preventDefault()),13===e&&null===this.userInputDate&&null===this.userInputTime&&this.emit(this.date,!1))},handleKeyControl:function(t){for(var e={year:{38:-4,40:4,37:-1,39:1,offset:function(t,e){return t.setFullYear(t.getFullYear()+e)}},month:{38:-4,40:4,37:-1,39:1,offset:function(t,e){return t.setMonth(t.getMonth()+e)}},week:{38:-1,40:1,37:-1,39:1,offset:function(t,e){return t.setDate(t.getDate()+7*e)}},day:{38:-7,40:7,37:-1,39:1,offset:function(t,e){return t.setDate(t.getDate()+e)}}},n=this.selectionMode,r=this.date.getTime(),i=new Date(this.date.getTime());Math.abs(r-i.getTime())<=31536e6;){var o=e[n];if(o.offset(i,o[t]),"function"!=typeof this.disabledDate||!this.disabledDate(i)){this.date=i,this.$emit("pick",i,!0);break}}},handleVisibleTimeChange:function(t){var e=Object(ho.parseDate)(t,this.timeFormat);e&&this.checkDateWithinRange(e)&&(this.date=Object(ho.modifyDate)(e,this.year,this.month,this.monthDate),this.userInputTime=null,this.$refs.timepicker.value=this.date,this.timePickerVisible=!1,this.emit(this.date,!0))},handleVisibleDateChange:function(t){var e=Object(ho.parseDate)(t,this.dateFormat);if(e){if("function"==typeof this.disabledDate&&this.disabledDate(e))return;this.date=Object(ho.modifyTime)(e,this.date.getHours(),this.date.getMinutes(),this.date.getSeconds()),this.userInputDate=null,this.resetView(),this.emit(this.date,!0)}},isValidValue:function(t){return t&&!isNaN(t)&&("function"!=typeof this.disabledDate||!this.disabledDate(t))&&this.checkDateWithinRange(t)},getDefaultValue:function(){return this.defaultValue?new Date(this.defaultValue):new Date},checkDateWithinRange:function(t){return!(this.selectableRange.length>0)||Object(ho.timeWithinRange)(t,this.selectableRange,this.format||"HH:mm:ss")}},components:{TimePicker:qo,YearTable:Qo,MonthTable:ua,DateTable:va,ElInput:V.a,ElButton:Pt.a},data:function(){return{popperClass:"",date:new Date,value:"",defaultValue:null,defaultTime:null,showTime:!1,selectionMode:"day",shortcuts:"",visible:!1,currentView:"date",disabledDate:"",cellClassName:"",selectableRange:[],firstDayOfWeek:7,showWeekNumber:!1,timePickerVisible:!1,format:"",arrowControl:!1,userInputDate:null,userInputTime:null}},computed:{year:function(){return this.date.getFullYear()},month:function(){return this.date.getMonth()},week:function(){return Object(ho.getWeekNumber)(this.date)},monthDate:function(){return this.date.getDate()},footerVisible:function(){return this.showTime||"dates"===this.selectionMode||"months"===this.selectionMode||"years"===this.selectionMode},visibleTime:function(){return null!==this.userInputTime?this.userInputTime:Object(ho.formatDate)(this.value||this.defaultValue,this.timeFormat)},visibleDate:function(){return null!==this.userInputDate?this.userInputDate:Object(ho.formatDate)(this.value||this.defaultValue,this.dateFormat)},yearLabel:function(){var t=this.t("el.datepicker.year");if("year"===this.currentView){var e=10*Math.floor(this.year/10);return t?e+" "+t+" - "+(e+9)+" "+t:e+" - "+(e+9)}return this.year+" "+t},timeFormat:function(){return this.format?Object(ho.extractTimeFormat)(this.format):"HH:mm:ss"},dateFormat:function(){return this.format?Object(ho.extractDateFormat)(this.format):"yyyy-MM-dd"}}},ba=ya,_a=r(ba,Do,Mo,!1,null,null,null);_a.options.__file="packages/date-picker/src/panel/date.vue";var wa=_a.exports,xa=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":function(e){t.$emit("dodestroy")}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"el-picker-panel el-date-range-picker el-popper",class:[{"has-sidebar":t.$slots.sidebar||t.shortcuts,"has-time":t.showTime},t.popperClass]},[n("div",{staticClass:"el-picker-panel__body-wrapper"},[t._t("sidebar"),t.shortcuts?n("div",{staticClass:"el-picker-panel__sidebar"},t._l(t.shortcuts,function(e,r){return n("button",{key:r,staticClass:"el-picker-panel__shortcut",attrs:{type:"button"},on:{click:function(n){t.handleShortcutClick(e)}}},[t._v(t._s(e.text))])}),0):t._e(),n("div",{staticClass:"el-picker-panel__body"},[t.showTime?n("div",{staticClass:"el-date-range-picker__time-header"},[n("span",{staticClass:"el-date-range-picker__editors-wrap"},[n("span",{staticClass:"el-date-range-picker__time-picker-wrap"},[n("el-input",{ref:"minInput",staticClass:"el-date-range-picker__editor",attrs:{size:"small",disabled:t.rangeState.selecting,placeholder:t.t("el.datepicker.startDate"),value:t.minVisibleDate},on:{input:function(e){return t.handleDateInput(e,"min")},change:function(e){return t.handleDateChange(e,"min")}}})],1),n("span",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:t.handleMinTimeClose,expression:"handleMinTimeClose"}],staticClass:"el-date-range-picker__time-picker-wrap"},[n("el-input",{staticClass:"el-date-range-picker__editor",attrs:{size:"small",disabled:t.rangeState.selecting,placeholder:t.t("el.datepicker.startTime"),value:t.minVisibleTime},on:{focus:function(e){t.minTimePickerVisible=!0},input:function(e){return t.handleTimeInput(e,"min")},change:function(e){return t.handleTimeChange(e,"min")}}}),n("time-picker",{ref:"minTimePicker",attrs:{"time-arrow-control":t.arrowControl,visible:t.minTimePickerVisible},on:{pick:t.handleMinTimePick,mounted:function(e){t.$refs.minTimePicker.format=t.timeFormat}}})],1)]),n("span",{staticClass:"el-icon-arrow-right"}),n("span",{staticClass:"el-date-range-picker__editors-wrap is-right"},[n("span",{staticClass:"el-date-range-picker__time-picker-wrap"},[n("el-input",{staticClass:"el-date-range-picker__editor",attrs:{size:"small",disabled:t.rangeState.selecting,placeholder:t.t("el.datepicker.endDate"),value:t.maxVisibleDate,readonly:!t.minDate},on:{input:function(e){return t.handleDateInput(e,"max")},change:function(e){return t.handleDateChange(e,"max")}}})],1),n("span",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:t.handleMaxTimeClose,expression:"handleMaxTimeClose"}],staticClass:"el-date-range-picker__time-picker-wrap"},[n("el-input",{staticClass:"el-date-range-picker__editor",attrs:{size:"small",disabled:t.rangeState.selecting,placeholder:t.t("el.datepicker.endTime"),value:t.maxVisibleTime,readonly:!t.minDate},on:{focus:function(e){t.minDate&&(t.maxTimePickerVisible=!0)},input:function(e){return t.handleTimeInput(e,"max")},change:function(e){return t.handleTimeChange(e,"max")}}}),n("time-picker",{ref:"maxTimePicker",attrs:{"time-arrow-control":t.arrowControl,visible:t.maxTimePickerVisible},on:{pick:t.handleMaxTimePick,mounted:function(e){t.$refs.maxTimePicker.format=t.timeFormat}}})],1)])]):t._e(),n("div",{staticClass:"el-picker-panel__content el-date-range-picker__content is-left"},[n("div",{staticClass:"el-date-range-picker__header"},[n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-left",attrs:{type:"button"},on:{click:t.leftPrevYear}}),n("button",{staticClass:"el-picker-panel__icon-btn el-icon-arrow-left",attrs:{type:"button"},on:{click:t.leftPrevMonth}}),t.unlinkPanels?n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-right",class:{"is-disabled":!t.enableYearArrow},attrs:{type:"button",disabled:!t.enableYearArrow},on:{click:t.leftNextYear}}):t._e(),t.unlinkPanels?n("button",{staticClass:"el-picker-panel__icon-btn el-icon-arrow-right",class:{"is-disabled":!t.enableMonthArrow},attrs:{type:"button",disabled:!t.enableMonthArrow},on:{click:t.leftNextMonth}}):t._e(),n("div",[t._v(t._s(t.leftLabel))])]),n("date-table",{attrs:{"selection-mode":"range",date:t.leftDate,"default-value":t.defaultValue,"min-date":t.minDate,"max-date":t.maxDate,"range-state":t.rangeState,"disabled-date":t.disabledDate,"cell-class-name":t.cellClassName,"first-day-of-week":t.firstDayOfWeek},on:{changerange:t.handleChangeRange,pick:t.handleRangePick}})],1),n("div",{staticClass:"el-picker-panel__content el-date-range-picker__content is-right"},[n("div",{staticClass:"el-date-range-picker__header"},[t.unlinkPanels?n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-left",class:{"is-disabled":!t.enableYearArrow},attrs:{type:"button",disabled:!t.enableYearArrow},on:{click:t.rightPrevYear}}):t._e(),t.unlinkPanels?n("button",{staticClass:"el-picker-panel__icon-btn el-icon-arrow-left",class:{"is-disabled":!t.enableMonthArrow},attrs:{type:"button",disabled:!t.enableMonthArrow},on:{click:t.rightPrevMonth}}):t._e(),n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-right",attrs:{type:"button"},on:{click:t.rightNextYear}}),n("button",{staticClass:"el-picker-panel__icon-btn el-icon-arrow-right",attrs:{type:"button"},on:{click:t.rightNextMonth}}),n("div",[t._v(t._s(t.rightLabel))])]),n("date-table",{attrs:{"selection-mode":"range",date:t.rightDate,"default-value":t.defaultValue,"min-date":t.minDate,"max-date":t.maxDate,"range-state":t.rangeState,"disabled-date":t.disabledDate,"cell-class-name":t.cellClassName,"first-day-of-week":t.firstDayOfWeek},on:{changerange:t.handleChangeRange,pick:t.handleRangePick}})],1)])],2),t.showTime?n("div",{staticClass:"el-picker-panel__footer"},[n("el-button",{staticClass:"el-picker-panel__link-btn",attrs:{size:"mini",type:"text"},on:{click:t.handleClear}},[t._v("\n "+t._s(t.t("el.datepicker.clear"))+"\n ")]),n("el-button",{staticClass:"el-picker-panel__link-btn",attrs:{plain:"",size:"mini",disabled:t.btnDisabled},on:{click:function(e){t.handleConfirm(!1)}}},[t._v("\n "+t._s(t.t("el.datepicker.confirm"))+"\n ")])],1):t._e()])])},ka=[];xa._withStripped=!0;var Sa=function(t){return Array.isArray(t)?[new Date(t[0]),new Date(t[1])]:t?[new Date(t),Object(ho.nextDate)(new Date(t),1)]:[new Date,Object(ho.nextDate)(new Date,1)]},Ca={mixins:[U.a],directives:{Clickoutside:ft.a},computed:{btnDisabled:function(){return!(this.minDate&&this.maxDate&&!this.selecting&&this.isValidValue([this.minDate,this.maxDate]))},leftLabel:function(){return this.leftDate.getFullYear()+" "+this.t("el.datepicker.year")+" "+this.t("el.datepicker.month"+(this.leftDate.getMonth()+1))},rightLabel:function(){return this.rightDate.getFullYear()+" "+this.t("el.datepicker.year")+" "+this.t("el.datepicker.month"+(this.rightDate.getMonth()+1))},leftYear:function(){return this.leftDate.getFullYear()},leftMonth:function(){return this.leftDate.getMonth()},leftMonthDate:function(){return this.leftDate.getDate()},rightYear:function(){return this.rightDate.getFullYear()},rightMonth:function(){return this.rightDate.getMonth()},rightMonthDate:function(){return this.rightDate.getDate()},minVisibleDate:function(){return null!==this.dateUserInput.min?this.dateUserInput.min:this.minDate?Object(ho.formatDate)(this.minDate,this.dateFormat):""},maxVisibleDate:function(){return null!==this.dateUserInput.max?this.dateUserInput.max:this.maxDate||this.minDate?Object(ho.formatDate)(this.maxDate||this.minDate,this.dateFormat):""},minVisibleTime:function(){return null!==this.timeUserInput.min?this.timeUserInput.min:this.minDate?Object(ho.formatDate)(this.minDate,this.timeFormat):""},maxVisibleTime:function(){return null!==this.timeUserInput.max?this.timeUserInput.max:this.maxDate||this.minDate?Object(ho.formatDate)(this.maxDate||this.minDate,this.timeFormat):""},timeFormat:function(){return this.format?Object(ho.extractTimeFormat)(this.format):"HH:mm:ss"},dateFormat:function(){return this.format?Object(ho.extractDateFormat)(this.format):"yyyy-MM-dd"},enableMonthArrow:function(){var t=(this.leftMonth+1)%12,e=this.leftMonth+1>=12?1:0;return this.unlinkPanels&&new Date(this.leftYear+e,t)<new Date(this.rightYear,this.rightMonth)},enableYearArrow:function(){return this.unlinkPanels&&12*this.rightYear+this.rightMonth-(12*this.leftYear+this.leftMonth+1)>=12}},data:function(){return{popperClass:"",value:[],defaultValue:null,defaultTime:null,minDate:"",maxDate:"",leftDate:new Date,rightDate:Object(ho.nextMonth)(new Date),rangeState:{endDate:null,selecting:!1,row:null,column:null},showTime:!1,shortcuts:"",visible:"",disabledDate:"",cellClassName:"",firstDayOfWeek:7,minTimePickerVisible:!1,maxTimePickerVisible:!1,format:"",arrowControl:!1,unlinkPanels:!1,dateUserInput:{min:null,max:null},timeUserInput:{min:null,max:null}}},watch:{minDate:function(t){var e=this;this.dateUserInput.min=null,this.timeUserInput.min=null,this.$nextTick(function(){if(e.$refs.maxTimePicker&&e.maxDate&&e.maxDate<e.minDate){e.$refs.maxTimePicker.selectableRange=[[Object(ho.parseDate)(Object(ho.formatDate)(e.minDate,"HH:mm:ss"),"HH:mm:ss"),Object(ho.parseDate)("23:59:59","HH:mm:ss")]]}}),t&&this.$refs.minTimePicker&&(this.$refs.minTimePicker.date=t,this.$refs.minTimePicker.value=t)},maxDate:function(t){this.dateUserInput.max=null,this.timeUserInput.max=null,t&&this.$refs.maxTimePicker&&(this.$refs.maxTimePicker.date=t,this.$refs.maxTimePicker.value=t)},minTimePickerVisible:function(t){var e=this;t&&this.$nextTick(function(){e.$refs.minTimePicker.date=e.minDate,e.$refs.minTimePicker.value=e.minDate,e.$refs.minTimePicker.adjustSpinners()})},maxTimePickerVisible:function(t){var e=this;t&&this.$nextTick(function(){e.$refs.maxTimePicker.date=e.maxDate,e.$refs.maxTimePicker.value=e.maxDate,e.$refs.maxTimePicker.adjustSpinners()})},value:function(t){if(t){if(Array.isArray(t))if(this.minDate=Object(ho.isDate)(t[0])?new Date(t[0]):null,this.maxDate=Object(ho.isDate)(t[1])?new Date(t[1]):null,this.minDate)if(this.leftDate=this.minDate,this.unlinkPanels&&this.maxDate){var e=this.minDate.getFullYear(),n=this.minDate.getMonth(),r=this.maxDate.getFullYear(),i=this.maxDate.getMonth();this.rightDate=e===r&&n===i?Object(ho.nextMonth)(this.maxDate):this.maxDate}else this.rightDate=Object(ho.nextMonth)(this.leftDate);else this.leftDate=Sa(this.defaultValue)[0],this.rightDate=Object(ho.nextMonth)(this.leftDate)}else this.minDate=null,this.maxDate=null},defaultValue:function(t){if(!Array.isArray(this.value)){var e=Sa(t),n=e[0],r=e[1];this.leftDate=n,this.rightDate=t&&t[1]&&this.unlinkPanels?r:Object(ho.nextMonth)(this.leftDate)}}},methods:{handleClear:function(){this.minDate=null,this.maxDate=null,this.leftDate=Sa(this.defaultValue)[0],this.rightDate=Object(ho.nextMonth)(this.leftDate),this.$emit("pick",null)},handleChangeRange:function(t){this.minDate=t.minDate,this.maxDate=t.maxDate,this.rangeState=t.rangeState},handleDateInput:function(t,e){if(this.dateUserInput[e]=t,t.length===this.dateFormat.length){var n=Object(ho.parseDate)(t,this.dateFormat);if(n){if("function"==typeof this.disabledDate&&this.disabledDate(new Date(n)))return;"min"===e?(this.minDate=Object(ho.modifyDate)(this.minDate||new Date,n.getFullYear(),n.getMonth(),n.getDate()),this.leftDate=new Date(n),this.unlinkPanels||(this.rightDate=Object(ho.nextMonth)(this.leftDate))):(this.maxDate=Object(ho.modifyDate)(this.maxDate||new Date,n.getFullYear(),n.getMonth(),n.getDate()),this.rightDate=new Date(n),this.unlinkPanels||(this.leftDate=Object(ho.prevMonth)(n)))}}},handleDateChange:function(t,e){var n=Object(ho.parseDate)(t,this.dateFormat);n&&("min"===e?(this.minDate=Object(ho.modifyDate)(this.minDate,n.getFullYear(),n.getMonth(),n.getDate()),this.minDate>this.maxDate&&(this.maxDate=this.minDate)):(this.maxDate=Object(ho.modifyDate)(this.maxDate,n.getFullYear(),n.getMonth(),n.getDate()),this.maxDate<this.minDate&&(this.minDate=this.maxDate)))},handleTimeInput:function(t,e){var n=this;if(this.timeUserInput[e]=t,t.length===this.timeFormat.length){var r=Object(ho.parseDate)(t,this.timeFormat);r&&("min"===e?(this.minDate=Object(ho.modifyTime)(this.minDate,r.getHours(),r.getMinutes(),r.getSeconds()),this.$nextTick(function(t){return n.$refs.minTimePicker.adjustSpinners()})):(this.maxDate=Object(ho.modifyTime)(this.maxDate,r.getHours(),r.getMinutes(),r.getSeconds()),this.$nextTick(function(t){return n.$refs.maxTimePicker.adjustSpinners()})))}},handleTimeChange:function(t,e){var n=Object(ho.parseDate)(t,this.timeFormat);n&&("min"===e?(this.minDate=Object(ho.modifyTime)(this.minDate,n.getHours(),n.getMinutes(),n.getSeconds()),this.minDate>this.maxDate&&(this.maxDate=this.minDate),this.$refs.minTimePicker.value=this.minDate,this.minTimePickerVisible=!1):(this.maxDate=Object(ho.modifyTime)(this.maxDate,n.getHours(),n.getMinutes(),n.getSeconds()),this.maxDate<this.minDate&&(this.minDate=this.maxDate),this.$refs.maxTimePicker.value=this.minDate,this.maxTimePickerVisible=!1))},handleRangePick:function(t){var e=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=this.defaultTime||[],i=Object(ho.modifyWithTimeString)(t.minDate,r[0]),o=Object(ho.modifyWithTimeString)(t.maxDate,r[1]);this.maxDate===o&&this.minDate===i||(this.onPick&&this.onPick(t),this.maxDate=o,this.minDate=i,setTimeout(function(){e.maxDate=o,e.minDate=i},10),n&&!this.showTime&&this.handleConfirm())},handleShortcutClick:function(t){t.onClick&&t.onClick(this)},handleMinTimePick:function(t,e,n){this.minDate=this.minDate||new Date,t&&(this.minDate=Object(ho.modifyTime)(this.minDate,t.getHours(),t.getMinutes(),t.getSeconds())),n||(this.minTimePickerVisible=e),(!this.maxDate||this.maxDate&&this.maxDate.getTime()<this.minDate.getTime())&&(this.maxDate=new Date(this.minDate))},handleMinTimeClose:function(){this.minTimePickerVisible=!1},handleMaxTimePick:function(t,e,n){this.maxDate&&t&&(this.maxDate=Object(ho.modifyTime)(this.maxDate,t.getHours(),t.getMinutes(),t.getSeconds())),n||(this.maxTimePickerVisible=e),this.maxDate&&this.minDate&&this.minDate.getTime()>this.maxDate.getTime()&&(this.minDate=new Date(this.maxDate))},handleMaxTimeClose:function(){this.maxTimePickerVisible=!1},leftPrevYear:function(){this.leftDate=Object(ho.prevYear)(this.leftDate),this.unlinkPanels||(this.rightDate=Object(ho.nextMonth)(this.leftDate))},leftPrevMonth:function(){this.leftDate=Object(ho.prevMonth)(this.leftDate),this.unlinkPanels||(this.rightDate=Object(ho.nextMonth)(this.leftDate))},rightNextYear:function(){this.unlinkPanels?this.rightDate=Object(ho.nextYear)(this.rightDate):(this.leftDate=Object(ho.nextYear)(this.leftDate),this.rightDate=Object(ho.nextMonth)(this.leftDate))},rightNextMonth:function(){this.unlinkPanels?this.rightDate=Object(ho.nextMonth)(this.rightDate):(this.leftDate=Object(ho.nextMonth)(this.leftDate),this.rightDate=Object(ho.nextMonth)(this.leftDate))},leftNextYear:function(){this.leftDate=Object(ho.nextYear)(this.leftDate)},leftNextMonth:function(){this.leftDate=Object(ho.nextMonth)(this.leftDate)},rightPrevYear:function(){this.rightDate=Object(ho.prevYear)(this.rightDate)},rightPrevMonth:function(){this.rightDate=Object(ho.prevMonth)(this.rightDate)},handleConfirm:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.isValidValue([this.minDate,this.maxDate])&&this.$emit("pick",[this.minDate,this.maxDate],t)},isValidValue:function(t){return Array.isArray(t)&&t&&t[0]&&t[1]&&Object(ho.isDate)(t[0])&&Object(ho.isDate)(t[1])&&t[0].getTime()<=t[1].getTime()&&("function"!=typeof this.disabledDate||!this.disabledDate(t[0])&&!this.disabledDate(t[1]))},resetView:function(){this.minDate&&null==this.maxDate&&(this.rangeState.selecting=!1),this.minDate=this.value&&Object(ho.isDate)(this.value[0])?new Date(this.value[0]):null,this.maxDate=this.value&&Object(ho.isDate)(this.value[0])?new Date(this.value[1]):null}},components:{TimePicker:qo,DateTable:va,ElInput:V.a,ElButton:Pt.a}},Ea=Ca,Ta=r(Ea,xa,ka,!1,null,null,null);Ta.options.__file="packages/date-picker/src/panel/date-range.vue";var Aa=Ta.exports,Oa=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":function(e){t.$emit("dodestroy")}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"el-picker-panel el-date-range-picker el-popper",class:[{"has-sidebar":t.$slots.sidebar||t.shortcuts},t.popperClass]},[n("div",{staticClass:"el-picker-panel__body-wrapper"},[t._t("sidebar"),t.shortcuts?n("div",{staticClass:"el-picker-panel__sidebar"},t._l(t.shortcuts,function(e,r){return n("button",{key:r,staticClass:"el-picker-panel__shortcut",attrs:{type:"button"},on:{click:function(n){t.handleShortcutClick(e)}}},[t._v(t._s(e.text))])}),0):t._e(),n("div",{staticClass:"el-picker-panel__body"},[n("div",{staticClass:"el-picker-panel__content el-date-range-picker__content is-left"},[n("div",{staticClass:"el-date-range-picker__header"},[n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-left",attrs:{type:"button"},on:{click:t.leftPrevYear}}),t.unlinkPanels?n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-right",class:{"is-disabled":!t.enableYearArrow},attrs:{type:"button",disabled:!t.enableYearArrow},on:{click:t.leftNextYear}}):t._e(),n("div",[t._v(t._s(t.leftLabel))])]),n("month-table",{attrs:{"selection-mode":"range",date:t.leftDate,"default-value":t.defaultValue,"min-date":t.minDate,"max-date":t.maxDate,"range-state":t.rangeState,"disabled-date":t.disabledDate},on:{changerange:t.handleChangeRange,pick:t.handleRangePick}})],1),n("div",{staticClass:"el-picker-panel__content el-date-range-picker__content is-right"},[n("div",{staticClass:"el-date-range-picker__header"},[t.unlinkPanels?n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-left",class:{"is-disabled":!t.enableYearArrow},attrs:{type:"button",disabled:!t.enableYearArrow},on:{click:t.rightPrevYear}}):t._e(),n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-right",attrs:{type:"button"},on:{click:t.rightNextYear}}),n("div",[t._v(t._s(t.rightLabel))])]),n("month-table",{attrs:{"selection-mode":"range",date:t.rightDate,"default-value":t.defaultValue,"min-date":t.minDate,"max-date":t.maxDate,"range-state":t.rangeState,"disabled-date":t.disabledDate},on:{changerange:t.handleChangeRange,pick:t.handleRangePick}})],1)])],2)])])},Pa=[];Oa._withStripped=!0;var Na=function(t){return Array.isArray(t)?[new Date(t[0]),new Date(t[1])]:t?[new Date(t),Object(ho.nextMonth)(new Date(t))]:[new Date,Object(ho.nextMonth)(new Date)]},Da={mixins:[U.a],directives:{Clickoutside:ft.a},computed:{btnDisabled:function(){return!(this.minDate&&this.maxDate&&!this.selecting&&this.isValidValue([this.minDate,this.maxDate]))},leftLabel:function(){return this.leftDate.getFullYear()+" "+this.t("el.datepicker.year")},rightLabel:function(){return this.rightDate.getFullYear()+" "+this.t("el.datepicker.year")},leftYear:function(){return this.leftDate.getFullYear()},rightYear:function(){return this.rightDate.getFullYear()===this.leftDate.getFullYear()?this.leftDate.getFullYear()+1:this.rightDate.getFullYear()},enableYearArrow:function(){return this.unlinkPanels&&this.rightYear>this.leftYear+1}},data:function(){return{popperClass:"",value:[],defaultValue:null,defaultTime:null,minDate:"",maxDate:"",leftDate:new Date,rightDate:Object(ho.nextYear)(new Date),rangeState:{endDate:null,selecting:!1,row:null,column:null},shortcuts:"",visible:"",disabledDate:"",format:"",arrowControl:!1,unlinkPanels:!1}},watch:{value:function(t){if(t){if(Array.isArray(t))if(this.minDate=Object(ho.isDate)(t[0])?new Date(t[0]):null,this.maxDate=Object(ho.isDate)(t[1])?new Date(t[1]):null,this.minDate)if(this.leftDate=this.minDate,this.unlinkPanels&&this.maxDate){var e=this.minDate.getFullYear(),n=this.maxDate.getFullYear();this.rightDate=e===n?Object(ho.nextYear)(this.maxDate):this.maxDate}else this.rightDate=Object(ho.nextYear)(this.leftDate);else this.leftDate=Na(this.defaultValue)[0],this.rightDate=Object(ho.nextYear)(this.leftDate)}else this.minDate=null,this.maxDate=null},defaultValue:function(t){if(!Array.isArray(this.value)){var e=Na(t),n=e[0],r=e[1];this.leftDate=n,this.rightDate=t&&t[1]&&n.getFullYear()!==r.getFullYear()&&this.unlinkPanels?r:Object(ho.nextYear)(this.leftDate)}}},methods:{handleClear:function(){this.minDate=null,this.maxDate=null,this.leftDate=Na(this.defaultValue)[0],this.rightDate=Object(ho.nextYear)(this.leftDate),this.$emit("pick",null)},handleChangeRange:function(t){this.minDate=t.minDate,this.maxDate=t.maxDate,this.rangeState=t.rangeState},handleRangePick:function(t){var e=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=this.defaultTime||[],i=Object(ho.modifyWithTimeString)(t.minDate,r[0]),o=Object(ho.modifyWithTimeString)(t.maxDate,r[1]);this.maxDate===o&&this.minDate===i||(this.onPick&&this.onPick(t),this.maxDate=o,this.minDate=i,setTimeout(function(){e.maxDate=o,e.minDate=i},10),n&&this.handleConfirm())},handleShortcutClick:function(t){t.onClick&&t.onClick(this)},leftPrevYear:function(){this.leftDate=Object(ho.prevYear)(this.leftDate),this.unlinkPanels||(this.rightDate=Object(ho.prevYear)(this.rightDate))},rightNextYear:function(){this.unlinkPanels||(this.leftDate=Object(ho.nextYear)(this.leftDate)),this.rightDate=Object(ho.nextYear)(this.rightDate)},leftNextYear:function(){this.leftDate=Object(ho.nextYear)(this.leftDate)},rightPrevYear:function(){this.rightDate=Object(ho.prevYear)(this.rightDate)},handleConfirm:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.isValidValue([this.minDate,this.maxDate])&&this.$emit("pick",[this.minDate,this.maxDate],t)},isValidValue:function(t){return Array.isArray(t)&&t&&t[0]&&t[1]&&Object(ho.isDate)(t[0])&&Object(ho.isDate)(t[1])&&t[0].getTime()<=t[1].getTime()&&("function"!=typeof this.disabledDate||!this.disabledDate(t[0])&&!this.disabledDate(t[1]))},resetView:function(){this.minDate=this.value&&Object(ho.isDate)(this.value[0])?new Date(this.value[0]):null,this.maxDate=this.value&&Object(ho.isDate)(this.value[0])?new Date(this.value[1]):null}},components:{MonthTable:ua,ElInput:V.a,ElButton:Pt.a}},Ma=Da,Ia=r(Ma,Oa,Pa,!1,null,null,null);Ia.options.__file="packages/date-picker/src/panel/month-range.vue";var Ra=Ia.exports,$a=function(t){return"daterange"===t||"datetimerange"===t?Aa:"monthrange"===t?Ra:wa},La={mixins:[No],name:"ElDatePicker",props:{type:{type:String,default:"date"},timeArrowControl:Boolean},watch:{type:function(t){this.picker?(this.unmountPicker(),this.panel=$a(t),this.mountPicker()):this.panel=$a(t)}},created:function(){this.panel=$a(this.type)}};La.install=function(t){t.component(La.name,La)};var ja=La,Fa=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"before-enter":t.handleMenuEnter,"after-leave":function(e){t.$emit("dodestroy")}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],ref:"popper",staticClass:"el-picker-panel time-select el-popper",class:t.popperClass,style:{width:t.width+"px"}},[n("el-scrollbar",{attrs:{noresize:"","wrap-class":"el-picker-panel__content"}},t._l(t.items,function(e){return n("div",{key:e.value,staticClass:"time-select-item",class:{selected:t.value===e.value,disabled:e.disabled,default:e.value===t.defaultValue},attrs:{disabled:e.disabled},on:{click:function(n){t.handleClick(e)}}},[t._v(t._s(e.value))])}),0)],1)])},Ba=[];Fa._withStripped=!0;var Va=function(t){var e=(t||"").split(":");if(e.length>=2){return{hours:parseInt(e[0],10),minutes:parseInt(e[1],10)}}return null},za=function(t,e){var n=Va(t),r=Va(e),i=n.minutes+60*n.hours,o=r.minutes+60*r.hours;return i===o?0:i>o?1:-1},Ua=function(t){return(t.hours<10?"0"+t.hours:t.hours)+":"+(t.minutes<10?"0"+t.minutes:t.minutes)},Ha=function(t,e){var n=Va(t),r=Va(e),i={hours:n.hours,minutes:n.minutes};return i.minutes+=r.minutes,i.hours+=r.hours,i.hours+=Math.floor(i.minutes/60),i.minutes=i.minutes%60,Ua(i)},qa={components:{ElScrollbar:vt.a},watch:{value:function(t){var e=this;t&&this.$nextTick(function(){return e.scrollToOption()})}},methods:{handleClick:function(t){t.disabled||this.$emit("pick",t.value)},handleClear:function(){this.$emit("pick",null)},scrollToOption:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".selected",e=this.$refs.popper.querySelector(".el-picker-panel__content");_r()(e,e.querySelector(t))},handleMenuEnter:function(){var t=this,e=-1!==this.items.map(function(t){return t.value}).indexOf(this.value),n=-1!==this.items.map(function(t){return t.value}).indexOf(this.defaultValue),r=e&&".selected"||n&&".default"||".time-select-item:not(.disabled)";this.$nextTick(function(){return t.scrollToOption(r)})},scrollDown:function(t){for(var e=this.items,n=e.length,r=e.length,i=e.map(function(t){return t.value}).indexOf(this.value);r--;)if(i=(i+t+n)%n,!e[i].disabled)return void this.$emit("pick",e[i].value,!0)},isValidValue:function(t){return-1!==this.items.filter(function(t){return!t.disabled}).map(function(t){return t.value}).indexOf(t)},handleKeydown:function(t){var e=t.keyCode;if(38===e||40===e){var n={40:1,38:-1},r=n[e.toString()];return this.scrollDown(r),void t.stopPropagation()}}},data:function(){return{popperClass:"",start:"09:00",end:"18:00",step:"00:30",value:"",defaultValue:"",visible:!1,minTime:"",maxTime:"",width:0}},computed:{items:function(){var t=this.start,e=this.end,n=this.step,r=[];if(t&&e&&n)for(var i=t;za(i,e)<=0;)r.push({value:i,disabled:za(i,this.minTime||"-1:-1")<=0||za(i,this.maxTime||"100:100")>=0}),i=Ha(i,n);return r}}},Wa=qa,Ga=r(Wa,Fa,Ba,!1,null,null,null);Ga.options.__file="packages/date-picker/src/panel/time-select.vue";var Ya=Ga.exports,Ka={mixins:[No],name:"ElTimeSelect",componentName:"ElTimeSelect",props:{type:{type:String,default:"time-select"}},beforeCreate:function(){this.panel=Ya}};Ka.install=function(t){t.component(Ka.name,Ka)};var Xa=Ka,Ja=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":function(e){t.$emit("dodestroy")}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"el-time-range-picker el-picker-panel el-popper",class:t.popperClass},[n("div",{staticClass:"el-time-range-picker__content"},[n("div",{staticClass:"el-time-range-picker__cell"},[n("div",{staticClass:"el-time-range-picker__header"},[t._v(t._s(t.t("el.datepicker.startTime")))]),n("div",{staticClass:"el-time-range-picker__body el-time-panel__content",class:{"has-seconds":t.showSeconds,"is-arrow":t.arrowControl}},[n("time-spinner",{ref:"minSpinner",attrs:{"show-seconds":t.showSeconds,"am-pm-mode":t.amPmMode,"arrow-control":t.arrowControl,date:t.minDate},on:{change:t.handleMinChange,"select-range":t.setMinSelectionRange}})],1)]),n("div",{staticClass:"el-time-range-picker__cell"},[n("div",{staticClass:"el-time-range-picker__header"},[t._v(t._s(t.t("el.datepicker.endTime")))]),n("div",{staticClass:"el-time-range-picker__body el-time-panel__content",class:{"has-seconds":t.showSeconds,"is-arrow":t.arrowControl}},[n("time-spinner",{ref:"maxSpinner",attrs:{"show-seconds":t.showSeconds,"am-pm-mode":t.amPmMode,"arrow-control":t.arrowControl,date:t.maxDate},on:{change:t.handleMaxChange,"select-range":t.setMaxSelectionRange}})],1)])]),n("div",{staticClass:"el-time-panel__footer"},[n("button",{staticClass:"el-time-panel__btn cancel",attrs:{type:"button"},on:{click:function(e){t.handleCancel()}}},[t._v(t._s(t.t("el.datepicker.cancel")))]),n("button",{staticClass:"el-time-panel__btn confirm",attrs:{type:"button",disabled:t.btnDisabled},on:{click:function(e){t.handleConfirm()}}},[t._v(t._s(t.t("el.datepicker.confirm")))])])])])},Qa=[];Ja._withStripped=!0;var Za=Object(ho.parseDate)("00:00:00","HH:mm:ss"),ts=Object(ho.parseDate)("23:59:59","HH:mm:ss"),es=function(t){return Object(ho.modifyDate)(Za,t.getFullYear(),t.getMonth(),t.getDate())},ns=function(t){return Object(ho.modifyDate)(ts,t.getFullYear(),t.getMonth(),t.getDate())},rs=function(t,e){return new Date(Math.min(t.getTime()+e,ns(t).getTime()))},is={mixins:[U.a],components:{TimeSpinner:Vo},computed:{showSeconds:function(){return-1!==(this.format||"").indexOf("ss")},offset:function(){return this.showSeconds?11:8},spinner:function(){return this.selectionRange[0]<this.offset?this.$refs.minSpinner:this.$refs.maxSpinner},btnDisabled:function(){return this.minDate.getTime()>this.maxDate.getTime()},amPmMode:function(){return-1!==(this.format||"").indexOf("A")?"A":-1!==(this.format||"").indexOf("a")?"a":""}},data:function(){return{popperClass:"",minDate:new Date,maxDate:new Date,value:[],oldValue:[new Date,new Date],defaultValue:null,format:"HH:mm:ss",visible:!1,selectionRange:[0,2],arrowControl:!1}},watch:{value:function(t){Array.isArray(t)?(this.minDate=new Date(t[0]),this.maxDate=new Date(t[1])):Array.isArray(this.defaultValue)?(this.minDate=new Date(this.defaultValue[0]),this.maxDate=new Date(this.defaultValue[1])):this.defaultValue?(this.minDate=new Date(this.defaultValue),this.maxDate=rs(new Date(this.defaultValue),36e5)):(this.minDate=new Date,this.maxDate=rs(new Date,36e5))},visible:function(t){var e=this;t&&(this.oldValue=this.value,this.$nextTick(function(){return e.$refs.minSpinner.emitSelectRange("hours")}))}},methods:{handleClear:function(){this.$emit("pick",null)},handleCancel:function(){this.$emit("pick",this.oldValue)},handleMinChange:function(t){this.minDate=Object(ho.clearMilliseconds)(t),this.handleChange()},handleMaxChange:function(t){this.maxDate=Object(ho.clearMilliseconds)(t),this.handleChange()},handleChange:function(){this.isValidValue([this.minDate,this.maxDate])&&(this.$refs.minSpinner.selectableRange=[[es(this.minDate),this.maxDate]],this.$refs.maxSpinner.selectableRange=[[this.minDate,ns(this.maxDate)]],this.$emit("pick",[this.minDate,this.maxDate],!0))},setMinSelectionRange:function(t,e){this.$emit("select-range",t,e,"min"),this.selectionRange=[t,e]},setMaxSelectionRange:function(t,e){this.$emit("select-range",t,e,"max"),this.selectionRange=[t+this.offset,e+this.offset]},handleConfirm:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.$refs.minSpinner.selectableRange,n=this.$refs.maxSpinner.selectableRange;this.minDate=Object(ho.limitTimeRange)(this.minDate,e,this.format),this.maxDate=Object(ho.limitTimeRange)(this.maxDate,n,this.format),this.$emit("pick",[this.minDate,this.maxDate],t)},adjustSpinners:function(){this.$refs.minSpinner.adjustSpinners(),this.$refs.maxSpinner.adjustSpinners()},changeSelectionRange:function(t){var e=this.showSeconds?[0,3,6,11,14,17]:[0,3,8,11],n=["hours","minutes"].concat(this.showSeconds?["seconds"]:[]),r=e.indexOf(this.selectionRange[0]),i=(r+t+e.length)%e.length,o=e.length/2;i<o?this.$refs.minSpinner.emitSelectRange(n[i]):this.$refs.maxSpinner.emitSelectRange(n[i-o])},isValidValue:function(t){return Array.isArray(t)&&Object(ho.timeWithinRange)(this.minDate,this.$refs.minSpinner.selectableRange)&&Object(ho.timeWithinRange)(this.maxDate,this.$refs.maxSpinner.selectableRange)},handleKeydown:function(t){var e=t.keyCode,n={38:-1,40:1,37:-1,39:1};if(37===e||39===e){var r=n[e];return this.changeSelectionRange(r),void t.preventDefault()}if(38===e||40===e){var i=n[e];return this.spinner.scrollDown(i),void t.preventDefault()}}}},os=is,as=r(os,Ja,Qa,!1,null,null,null);as.options.__file="packages/date-picker/src/panel/time-range.vue";var ss=as.exports,us={mixins:[No],name:"ElTimePicker",props:{isRange:Boolean,arrowControl:Boolean},data:function(){return{type:""}},watch:{isRange:function(t){this.picker?(this.unmountPicker(),this.type=t?"timerange":"time",this.panel=t?ss:qo,this.mountPicker()):(this.type=t?"timerange":"time",this.panel=t?ss:qo)}},created:function(){this.type=this.isRange?"timerange":"time",this.panel=this.isRange?ss:qo}};us.install=function(t){t.component(us.name,us)};var ls=us,cs=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span",[n("transition",{attrs:{name:t.transition},on:{"after-enter":t.handleAfterEnter,"after-leave":t.handleAfterLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:!t.disabled&&t.showPopper,expression:"!disabled && showPopper"}],ref:"popper",staticClass:"el-popover el-popper",class:[t.popperClass,t.content&&"el-popover--plain"],style:{width:t.width+"px"},attrs:{role:"tooltip",id:t.tooltipId,"aria-hidden":t.disabled||!t.showPopper?"true":"false"}},[t.title?n("div",{staticClass:"el-popover__title",domProps:{textContent:t._s(t.title)}}):t._e(),t._t("default",[t._v(t._s(t.content))])],2)]),n("span",{ref:"wrapper",staticClass:"el-popover__reference-wrapper"},[t._t("reference")],2)],1)},fs=[];cs._withStripped=!0;var ds={name:"ElPopover",mixins:[gt.a],props:{trigger:{type:String,default:"click",validator:function(t){return["click","focus","hover","manual"].indexOf(t)>-1}},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:200},title:String,disabled:Boolean,content:String,reference:{},popperClass:String,width:{},visibleArrow:{default:!0},arrowOffset:{type:Number,default:0},transition:{type:String,default:"fade-in-linear"},tabindex:{type:Number,default:0}},computed:{tooltipId:function(){return"el-popover-"+Object(H.generateId)()}},watch:{showPopper:function(t){this.disabled||(t?this.$emit("show"):this.$emit("hide"))}},mounted:function(){var t=this,e=this.referenceElm=this.reference||this.$refs.reference,n=this.popper||this.$refs.popper;!e&&this.$refs.wrapper.children&&(e=this.referenceElm=this.$refs.wrapper.children[0]),e&&(Object(ae.addClass)(e,"el-popover__reference"),e.setAttribute("aria-describedby",this.tooltipId),e.setAttribute("tabindex",this.tabindex),n.setAttribute("tabindex",0),"click"!==this.trigger&&(Object(ae.on)(e,"focusin",function(){t.handleFocus();var n=e.__vue__;n&&"function"==typeof n.focus&&n.focus()}),Object(ae.on)(n,"focusin",this.handleFocus),Object(ae.on)(e,"focusout",this.handleBlur),Object(ae.on)(n,"focusout",this.handleBlur)),Object(ae.on)(e,"keydown",this.handleKeydown),Object(ae.on)(e,"click",this.handleClick)),"click"===this.trigger?(Object(ae.on)(e,"click",this.doToggle),Object(ae.on)(document,"click",this.handleDocumentClick)):"hover"===this.trigger?(Object(ae.on)(e,"mouseenter",this.handleMouseEnter),Object(ae.on)(n,"mouseenter",this.handleMouseEnter),Object(ae.on)(e,"mouseleave",this.handleMouseLeave),Object(ae.on)(n,"mouseleave",this.handleMouseLeave)):"focus"===this.trigger&&(this.tabindex<0&&console.warn("[Element Warn][Popover]a negative taindex means that the element cannot be focused by tab key"),e.querySelector("input, textarea")?(Object(ae.on)(e,"focusin",this.doShow),Object(ae.on)(e,"focusout",this.doClose)):(Object(ae.on)(e,"mousedown",this.doShow),Object(ae.on)(e,"mouseup",this.doClose)))},beforeDestroy:function(){this.cleanup()},deactivated:function(){this.cleanup()},methods:{doToggle:function(){this.showPopper=!this.showPopper},doShow:function(){this.showPopper=!0},doClose:function(){this.showPopper=!1},handleFocus:function(){Object(ae.addClass)(this.referenceElm,"focusing"),"click"!==this.trigger&&"focus"!==this.trigger||(this.showPopper=!0)},handleClick:function(){Object(ae.removeClass)(this.referenceElm,"focusing")},handleBlur:function(){Object(ae.removeClass)(this.referenceElm,"focusing"),"click"!==this.trigger&&"focus"!==this.trigger||(this.showPopper=!1)},handleMouseEnter:function(){var t=this;clearTimeout(this._timer),this.openDelay?this._timer=setTimeout(function(){t.showPopper=!0},this.openDelay):this.showPopper=!0},handleKeydown:function(t){27===t.keyCode&&"manual"!==this.trigger&&this.doClose()},handleMouseLeave:function(){var t=this;clearTimeout(this._timer),this.closeDelay?this._timer=setTimeout(function(){t.showPopper=!1},this.closeDelay):this.showPopper=!1},handleDocumentClick:function(t){var e=this.reference||this.$refs.reference,n=this.popper||this.$refs.popper;!e&&this.$refs.wrapper.children&&(e=this.referenceElm=this.$refs.wrapper.children[0]),this.$el&&e&&!this.$el.contains(t.target)&&!e.contains(t.target)&&n&&!n.contains(t.target)&&(this.showPopper=!1)},handleAfterEnter:function(){this.$emit("after-enter")},handleAfterLeave:function(){this.$emit("after-leave"),this.doDestroy()},cleanup:function(){(this.openDelay||this.closeDelay)&&clearTimeout(this._timer)}},destroyed:function(){var t=this.reference;Object(ae.off)(t,"click",this.doToggle),Object(ae.off)(t,"mouseup",this.doClose),Object(ae.off)(t,"mousedown",this.doShow),Object(ae.off)(t,"focusin",this.doShow),Object(ae.off)(t,"focusout",this.doClose),Object(ae.off)(t,"mousedown",this.doShow),Object(ae.off)(t,"mouseup",this.doClose),Object(ae.off)(t,"mouseleave",this.handleMouseLeave),Object(ae.off)(t,"mouseenter",this.handleMouseEnter),Object(ae.off)(document,"click",this.handleDocumentClick)}},hs=ds,ps=r(hs,cs,fs,!1,null,null,null);ps.options.__file="packages/popover/src/main.vue";var gs=ps.exports,ms=function(t,e,n){var r=e.expression?e.value:e.arg,i=n.context.$refs[r];i&&(Array.isArray(i)?i[0].$refs.reference=t:i.$refs.reference=t)},vs={bind:function(t,e,n){ms(t,e,n)},inserted:function(t,e,n){ms(t,e,n)}};ai.a.directive("popover",vs),gs.install=function(t){t.directive("popover",vs),t.component(gs.name,gs)},gs.directive=vs;var ys=gs,bs={name:"ElTooltip",mixins:[gt.a],props:{openDelay:{type:Number,default:0},disabled:Boolean,manual:Boolean,effect:{type:String,default:"dark"},arrowOffset:{type:Number,default:0},popperClass:String,content:String,visibleArrow:{default:!0},transition:{type:String,default:"el-fade-in-linear"},popperOptions:{default:function(){return{boundariesPadding:10,gpuAcceleration:!1}}},enterable:{type:Boolean,default:!0},hideAfter:{type:Number,default:0},tabindex:{type:Number,default:0}},data:function(){return{tooltipId:"el-tooltip-"+Object(H.generateId)(),timeoutPending:null,focusing:!1}},beforeCreate:function(){var t=this;this.$isServer||(this.popperVM=new ai.a({data:{node:""},render:function(t){return this.node}}).$mount(),this.debounceClose=lt()(200,function(){return t.handleClosePopper()}))},render:function(t){var e=this;this.popperVM&&(this.popperVM.node=t("transition",{attrs:{name:this.transition},on:{afterLeave:this.doDestroy}},[t("div",{on:{mouseleave:function(){e.setExpectedState(!1),e.debounceClose()},mouseenter:function(){e.setExpectedState(!0)}},ref:"popper",attrs:{role:"tooltip",id:this.tooltipId,"aria-hidden":this.disabled||!this.showPopper?"true":"false"},directives:[{name:"show",value:!this.disabled&&this.showPopper}],class:["el-tooltip__popper","is-"+this.effect,this.popperClass]},[this.$slots.content||this.content])]));var n=this.getFirstElement();if(!n)return null;var r=n.data=n.data||{};return r.staticClass=this.addTooltipClass(r.staticClass),n},mounted:function(){var t=this;this.referenceElm=this.$el,1===this.$el.nodeType&&(this.$el.setAttribute("aria-describedby",this.tooltipId),this.$el.setAttribute("tabindex",this.tabindex),Object(ae.on)(this.referenceElm,"mouseenter",this.show),Object(ae.on)(this.referenceElm,"mouseleave",this.hide),Object(ae.on)(this.referenceElm,"focus",function(){if(!t.$slots.default||!t.$slots.default.length)return void t.handleFocus();var e=t.$slots.default[0].componentInstance;e&&e.focus?e.focus():t.handleFocus()}),Object(ae.on)(this.referenceElm,"blur",this.handleBlur),Object(ae.on)(this.referenceElm,"click",this.removeFocusing)),this.value&&this.popperVM&&this.popperVM.$nextTick(function(){t.value&&t.updatePopper()})},watch:{focusing:function(t){t?Object(ae.addClass)(this.referenceElm,"focusing"):Object(ae.removeClass)(this.referenceElm,"focusing")}},methods:{show:function(){this.setExpectedState(!0),this.handleShowPopper()},hide:function(){this.setExpectedState(!1),this.debounceClose()},handleFocus:function(){this.focusing=!0,this.show()},handleBlur:function(){this.focusing=!1,this.hide()},removeFocusing:function(){this.focusing=!1},addTooltipClass:function(t){return t?"el-tooltip "+t.replace("el-tooltip",""):"el-tooltip"},handleShowPopper:function(){var t=this;this.expectedState&&!this.manual&&(clearTimeout(this.timeout),this.timeout=setTimeout(function(){t.showPopper=!0},this.openDelay),this.hideAfter>0&&(this.timeoutPending=setTimeout(function(){t.showPopper=!1},this.hideAfter)))},handleClosePopper:function(){this.enterable&&this.expectedState||this.manual||(clearTimeout(this.timeout),this.timeoutPending&&clearTimeout(this.timeoutPending),this.showPopper=!1,this.disabled&&this.doDestroy())},setExpectedState:function(t){!1===t&&clearTimeout(this.timeoutPending),this.expectedState=t},getFirstElement:function(){var t=this.$slots.default;if(!Array.isArray(t))return null;for(var e=null,n=0;n<t.length;n++)if(t[n]&&t[n].tag){e=t[n];break}return e}},beforeDestroy:function(){this.popperVM&&this.popperVM.$destroy()},destroyed:function(){var t=this.referenceElm;1===t.nodeType&&(Object(ae.off)(t,"mouseenter",this.show),Object(ae.off)(t,"mouseleave",this.hide),Object(ae.off)(t,"focus",this.handleFocus),Object(ae.off)(t,"blur",this.handleBlur),Object(ae.off)(t,"click",this.removeFocusing))}};bs.install=function(t){t.component(bs.name,bs)};var _s=bs,ws=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"msgbox-fade"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"el-message-box__wrapper",attrs:{tabindex:"-1",role:"dialog","aria-modal":"true","aria-label":t.title||"dialog"},on:{click:function(e){return e.target!==e.currentTarget?null:t.handleWrapperClick(e)}}},[n("div",{staticClass:"el-message-box",class:[t.customClass,t.center&&"el-message-box--center"]},[null!==t.title?n("div",{staticClass:"el-message-box__header"},[n("div",{staticClass:"el-message-box__title"},[t.icon&&t.center?n("div",{class:["el-message-box__status",t.icon]}):t._e(),n("span",[t._v(t._s(t.title))])]),t.showClose?n("button",{staticClass:"el-message-box__headerbtn",attrs:{type:"button","aria-label":"Close"},on:{click:function(e){t.handleAction(t.distinguishCancelAndClose?"close":"cancel")},keydown:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key,"Enter"))return null;t.handleAction(t.distinguishCancelAndClose?"close":"cancel")}}},[n("i",{staticClass:"el-message-box__close el-icon-close"})]):t._e()]):t._e(),n("div",{staticClass:"el-message-box__content"},[n("div",{staticClass:"el-message-box__container"},[t.icon&&!t.center&&""!==t.message?n("div",{class:["el-message-box__status",t.icon]}):t._e(),""!==t.message?n("div",{staticClass:"el-message-box__message"},[t._t("default",[t.dangerouslyUseHTMLString?n("p",{domProps:{innerHTML:t._s(t.message)}}):n("p",[t._v(t._s(t.message))])])],2):t._e()]),n("div",{directives:[{name:"show",rawName:"v-show",value:t.showInput,expression:"showInput"}],staticClass:"el-message-box__input"},[n("el-input",{ref:"input",attrs:{type:t.inputType,placeholder:t.inputPlaceholder},nativeOn:{keydown:function(e){return"button"in e||!t._k(e.keyCode,"enter",13,e.key,"Enter")?t.handleInputEnter(e):null}},model:{value:t.inputValue,callback:function(e){t.inputValue=e},expression:"inputValue"}}),n("div",{staticClass:"el-message-box__errormsg",style:{visibility:t.editorErrorMessage?"visible":"hidden"}},[t._v(t._s(t.editorErrorMessage))])],1)]),n("div",{staticClass:"el-message-box__btns"},[t.showCancelButton?n("el-button",{class:[t.cancelButtonClasses],attrs:{loading:t.cancelButtonLoading,round:t.roundButton,size:"small"},on:{keydown:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key,"Enter"))return null;t.handleAction("cancel")}},nativeOn:{click:function(e){t.handleAction("cancel")}}},[t._v("\n "+t._s(t.cancelButtonText||t.t("el.messagebox.cancel"))+"\n ")]):t._e(),n("el-button",{directives:[{name:"show",rawName:"v-show",value:t.showConfirmButton,expression:"showConfirmButton"}],ref:"confirm",class:[t.confirmButtonClasses],attrs:{loading:t.confirmButtonLoading,round:t.roundButton,size:"small"},on:{keydown:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key,"Enter"))return null;t.handleAction("confirm")}},nativeOn:{click:function(e){t.handleAction("confirm")}}},[t._v("\n "+t._s(t.confirmButtonText||t.t("el.messagebox.confirm"))+"\n ")])],1)])])])},xs=[];ws._withStripped=!0;var ks=n(12),Ss=n.n(ks),Cs=n(40),Es=n.n(Cs),Ts=void 0,As={success:"success",info:"info",warning:"warning",error:"error"},Os={mixins:[X.a,U.a],props:{modal:{default:!0},lockScroll:{default:!0},showClose:{type:Boolean,default:!0},closeOnClickModal:{default:!0},closeOnPressEscape:{default:!0},closeOnHashChange:{default:!0},center:{default:!1,type:Boolean},roundButton:{default:!1,type:Boolean}},components:{ElInput:V.a,ElButton:Pt.a},computed:{icon:function(){var t=this.type;return this.iconClass||(t&&As[t]?"el-icon-"+As[t]:"")},confirmButtonClasses:function(){return"el-button--primary "+this.confirmButtonClass},cancelButtonClasses:function(){return""+this.cancelButtonClass}},methods:{getSafeClose:function(){var t=this,e=this.uid;return function(){t.$nextTick(function(){e===t.uid&&t.doClose()})}},doClose:function(){var t=this;this.visible&&(this.visible=!1,this._closing=!0,this.onClose&&this.onClose(),Ts.closeDialog(),this.lockScroll&&setTimeout(this.restoreBodyStyle,200),this.opened=!1,this.doAfterClose(),setTimeout(function(){t.action&&t.callback(t.action,t)}))},handleWrapperClick:function(){this.closeOnClickModal&&this.handleAction(this.distinguishCancelAndClose?"close":"cancel")},handleInputEnter:function(){if("textarea"!==this.inputType)return this.handleAction("confirm")},handleAction:function(t){("prompt"!==this.$type||"confirm"!==t||this.validate())&&(this.action=t,"function"==typeof this.beforeClose?(this.close=this.getSafeClose(),this.beforeClose(t,this,this.close)):this.doClose())},validate:function(){if("prompt"===this.$type){var t=this.inputPattern;if(t&&!t.test(this.inputValue||""))return this.editorErrorMessage=this.inputErrorMessage||Object(ks.t)("el.messagebox.error"),Object(ae.addClass)(this.getInputElement(),"invalid"),!1;var e=this.inputValidator;if("function"==typeof e){var n=e(this.inputValue);if(!1===n)return this.editorErrorMessage=this.inputErrorMessage||Object(ks.t)("el.messagebox.error"),Object(ae.addClass)(this.getInputElement(),"invalid"),!1;if("string"==typeof n)return this.editorErrorMessage=n,Object(ae.addClass)(this.getInputElement(),"invalid"),!1}}return this.editorErrorMessage="",Object(ae.removeClass)(this.getInputElement(),"invalid"),!0},getFirstFocus:function(){var t=this.$el.querySelector(".el-message-box__btns .el-button"),e=this.$el.querySelector(".el-message-box__btns .el-message-box__title");return t||e},getInputElement:function(){var t=this.$refs.input.$refs;return t.input||t.textarea},handleClose:function(){this.handleAction("close")}},watch:{inputValue:{immediate:!0,handler:function(t){var e=this;this.$nextTick(function(n){"prompt"===e.$type&&null!==t&&e.validate()})}},visible:function(t){var e=this;t&&(this.uid++,"alert"!==this.$type&&"confirm"!==this.$type||this.$nextTick(function(){e.$refs.confirm.$el.focus()}),this.focusAfterClosed=document.activeElement,Ts=new Es.a(this.$el,this.focusAfterClosed,this.getFirstFocus())),"prompt"===this.$type&&(t?setTimeout(function(){e.$refs.input&&e.$refs.input.$el&&e.getInputElement().focus()},500):(this.editorErrorMessage="",Object(ae.removeClass)(this.getInputElement(),"invalid")))}},mounted:function(){var t=this;this.$nextTick(function(){t.closeOnHashChange&&window.addEventListener("hashchange",t.close)})},beforeDestroy:function(){this.closeOnHashChange&&window.removeEventListener("hashchange",this.close),setTimeout(function(){Ts.closeDialog()})},data:function(){return{uid:1,title:void 0,message:"",type:"",iconClass:"",customClass:"",showInput:!1,inputValue:null,inputPlaceholder:"",inputType:"text",inputPattern:null,inputValidator:null,inputErrorMessage:"",showConfirmButton:!0,showCancelButton:!1,action:"",confirmButtonText:"",cancelButtonText:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonClass:"",confirmButtonDisabled:!1,cancelButtonClass:"",editorErrorMessage:null,callback:null,dangerouslyUseHTMLString:!1,focusAfterClosed:null,isOnComposition:!1,distinguishCancelAndClose:!1}}},Ps=Os,Ns=r(Ps,ws,xs,!1,null,null,null);Ns.options.__file="packages/message-box/src/main.vue";var Ds=Ns.exports,Ms=n(22),Is="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rs={title:null,message:"",type:"",iconClass:"",showInput:!1,showClose:!0,modalFade:!0,lockScroll:!0,closeOnClickModal:!0,closeOnPressEscape:!0,closeOnHashChange:!0,inputValue:null,inputPlaceholder:"",inputType:"text",inputPattern:null,inputValidator:null,inputErrorMessage:"",showConfirmButton:!0,showCancelButton:!1,confirmButtonPosition:"right",confirmButtonHighlight:!1,cancelButtonHighlight:!1,confirmButtonText:"",cancelButtonText:"",confirmButtonClass:"",cancelButtonClass:"",customClass:"",beforeClose:null,dangerouslyUseHTMLString:!1,center:!1,roundButton:!1,distinguishCancelAndClose:!1},$s=ai.a.extend(Ds),Ls=void 0,js=void 0,Fs=[],Bs=function(t){if(Ls){var e=Ls.callback;"function"==typeof e&&(js.showInput?e(js.inputValue,t):e(t)),Ls.resolve&&("confirm"===t?js.showInput?Ls.resolve({value:js.inputValue,action:t}):Ls.resolve(t):!Ls.reject||"cancel"!==t&&"close"!==t||Ls.reject(t))}},Vs=function(){js=new $s({el:document.createElement("div")}),js.callback=Bs},zs=function t(){if(js||Vs(),js.action="",(!js.visible||js.closeTimer)&&Fs.length>0){Ls=Fs.shift();var e=Ls.options;for(var n in e)e.hasOwnProperty(n)&&(js[n]=e[n]);void 0===e.callback&&(js.callback=Bs);var r=js.callback;js.callback=function(e,n){r(e,n),t()},Object(Ms.isVNode)(js.message)?(js.$slots.default=[js.message],js.message=null):delete js.$slots.default,["modal","showClose","closeOnClickModal","closeOnPressEscape","closeOnHashChange"].forEach(function(t){void 0===js[t]&&(js[t]=!0)}),document.body.appendChild(js.$el),ai.a.nextTick(function(){js.visible=!0})}},Us=function t(e,n){if(!ai.a.prototype.$isServer){if("string"==typeof e||Object(Ms.isVNode)(e)?(e={message:e},"string"==typeof arguments[1]&&(e.title=arguments[1])):e.callback&&!n&&(n=e.callback),"undefined"!=typeof Promise)return new Promise(function(r,i){Fs.push({options:Ue()({},Rs,t.defaults,e),callback:n,resolve:r,reject:i}),zs()});Fs.push({options:Ue()({},Rs,t.defaults,e),callback:n}),zs()}};Us.setDefaults=function(t){Us.defaults=t},Us.alert=function(t,e,n){return"object"===(void 0===e?"undefined":Is(e))?(n=e,e=""):void 0===e&&(e=""),Us(Ue()({title:e,message:t,$type:"alert",closeOnPressEscape:!1,closeOnClickModal:!1},n))},Us.confirm=function(t,e,n){return"object"===(void 0===e?"undefined":Is(e))?(n=e,e=""):void 0===e&&(e=""),Us(Ue()({title:e,message:t,$type:"confirm",showCancelButton:!0},n))},Us.prompt=function(t,e,n){return"object"===(void 0===e?"undefined":Is(e))?(n=e,e=""):void 0===e&&(e=""),Us(Ue()({title:e,message:t,showCancelButton:!0,showInput:!0,$type:"prompt"},n))},Us.close=function(){js.doClose(),js.visible=!1,Fs=[],Ls=null};var Hs=Us,qs=Hs,Ws=function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"el-breadcrumb",attrs:{"aria-label":"Breadcrumb",role:"navigation"}},[t._t("default")],2)},Gs=[];Ws._withStripped=!0;var Ys={name:"ElBreadcrumb",props:{separator:{type:String,default:"/"},separatorClass:{type:String,default:""}},provide:function(){return{elBreadcrumb:this}},mounted:function(){var t=this.$el.querySelectorAll(".el-breadcrumb__item");t.length&&t[t.length-1].setAttribute("aria-current","page")}},Ks=Ys,Xs=r(Ks,Ws,Gs,!1,null,null,null);Xs.options.__file="packages/breadcrumb/src/breadcrumb.vue";var Js=Xs.exports;Js.install=function(t){t.component(Js.name,Js)};var Qs=Js,Zs=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span",{staticClass:"el-breadcrumb__item"},[n("span",{ref:"link",class:["el-breadcrumb__inner",t.to?"is-link":""],attrs:{role:"link"}},[t._t("default")],2),t.separatorClass?n("i",{staticClass:"el-breadcrumb__separator",class:t.separatorClass}):n("span",{staticClass:"el-breadcrumb__separator",attrs:{role:"presentation"}},[t._v(t._s(t.separator))])])},tu=[];Zs._withStripped=!0;var eu={name:"ElBreadcrumbItem",props:{to:{},replace:Boolean},data:function(){return{separator:"",separatorClass:""}},inject:["elBreadcrumb"],mounted:function(){var t=this;this.separator=this.elBreadcrumb.separator,this.separatorClass=this.elBreadcrumb.separatorClass;var e=this.$refs.link;e.setAttribute("role","link"),e.addEventListener("click",function(e){var n=t.to,r=t.$router;n&&r&&(t.replace?r.replace(n):r.push(n))})}},nu=eu,ru=r(nu,Zs,tu,!1,null,null,null);ru.options.__file="packages/breadcrumb/src/breadcrumb-item.vue";var iu=ru.exports;iu.install=function(t){t.component(iu.name,iu)};var ou=iu,au=function(){var t=this,e=t.$createElement;return(t._self._c||e)("form",{staticClass:"el-form",class:[t.labelPosition?"el-form--label-"+t.labelPosition:"",{"el-form--inline":t.inline}]},[t._t("default")],2)},su=[];au._withStripped=!0;var uu={name:"ElForm",componentName:"ElForm",provide:function(){return{elForm:this}},props:{model:Object,rules:Object,labelPosition:String,labelWidth:String,labelSuffix:{type:String,default:""},inline:Boolean,inlineMessage:Boolean,statusIcon:Boolean,showMessage:{type:Boolean,default:!0},size:String,disabled:Boolean,validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:{type:Boolean,default:!1}},watch:{rules:function(){this.fields.forEach(function(t){t.removeValidateEvents(),t.addValidateEvents()}),this.validateOnRuleChange&&this.validate(function(){})}},computed:{autoLabelWidth:function(){if(!this.potentialLabelWidthArr.length)return 0;var t=Math.max.apply(Math,this.potentialLabelWidthArr);return t?t+"px":""}},data:function(){return{fields:[],potentialLabelWidthArr:[]}},created:function(){var t=this;this.$on("el.form.addField",function(e){e&&t.fields.push(e)}),this.$on("el.form.removeField",function(e){e.prop&&t.fields.splice(t.fields.indexOf(e),1)})},methods:{resetFields:function(){if(!this.model)return void console.warn("[Element Warn][Form]model is required for resetFields to work.");this.fields.forEach(function(t){t.resetField()})},clearValidate:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];(t.length?"string"==typeof t?this.fields.filter(function(e){return t===e.prop}):this.fields.filter(function(e){return t.indexOf(e.prop)>-1}):this.fields).forEach(function(t){t.clearValidate()})},validate:function(t){var e=this;if(!this.model)return void console.warn("[Element Warn][Form]model is required for validate to work!");var n=void 0;"function"!=typeof t&&window.Promise&&(n=new window.Promise(function(e,n){t=function(t,r){t?e(t):n(r)}}));var r=!0,i=0;0===this.fields.length&&t&&t(!0);var o={};return this.fields.forEach(function(n){n.validate("",function(n,a){n&&(r=!1),o=Ue()({},o,a),"function"==typeof t&&++i===e.fields.length&&t(r,o)})}),n||void 0},validateField:function(t,e){t=[].concat(t);var n=this.fields.filter(function(e){return-1!==t.indexOf(e.prop)});if(!n.length)return void console.warn("[Element Warn]please pass correct props!");n.forEach(function(t){t.validate("",e)})},getLabelWidthIndex:function(t){var e=this.potentialLabelWidthArr.indexOf(t);if(-1===e)throw new Error("[ElementForm]unpected width ",t);return e},registerLabelWidth:function(t,e){if(t&&e){var n=this.getLabelWidthIndex(e);this.potentialLabelWidthArr.splice(n,1,t)}else t&&this.potentialLabelWidthArr.push(t)},deregisterLabelWidth:function(t){var e=this.getLabelWidthIndex(t);this.potentialLabelWidthArr.splice(e,1)}}},lu=uu,cu=r(lu,au,su,!1,null,null,null);cu.options.__file="packages/form/src/form.vue";var fu=cu.exports;fu.install=function(t){t.component(fu.name,fu)};var du=fu,hu=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-form-item",class:[{"el-form-item--feedback":t.elForm&&t.elForm.statusIcon,"is-error":"error"===t.validateState,"is-validating":"validating"===t.validateState,"is-success":"success"===t.validateState,"is-required":t.isRequired||t.required,"is-no-asterisk":t.elForm&&t.elForm.hideRequiredAsterisk},t.sizeClass?"el-form-item--"+t.sizeClass:""]},[n("label-wrap",{attrs:{"is-auto-width":t.labelStyle&&"auto"===t.labelStyle.width,"update-all":"auto"===t.form.labelWidth}},[t.label||t.$slots.label?n("label",{staticClass:"el-form-item__label",style:t.labelStyle,attrs:{for:t.labelFor}},[t._t("label",[t._v(t._s(t.label+t.form.labelSuffix))])],2):t._e()]),n("div",{staticClass:"el-form-item__content",style:t.contentStyle},[t._t("default"),n("transition",{attrs:{name:"el-zoom-in-top"}},["error"===t.validateState&&t.showMessage&&t.form.showMessage?t._t("error",[n("div",{staticClass:"el-form-item__error",class:{"el-form-item__error--inline":"boolean"==typeof t.inlineMessage?t.inlineMessage:t.elForm&&t.elForm.inlineMessage||!1}},[t._v("\n "+t._s(t.validateMessage)+"\n ")])],{error:t.validateMessage}):t._e()],2)],2)],1)},pu=[];hu._withStripped=!0;var gu=n(41),mu=n.n(gu),vu={props:{isAutoWidth:Boolean,updateAll:Boolean},inject:["elForm","elFormItem"],render:function(){var t=arguments[0],e=this.$slots.default;if(!e)return null;if(this.isAutoWidth){var n=this.elForm.autoLabelWidth,r={};if(n&&"auto"!==n){var i=parseInt(n,10)-this.computedWidth;i&&(r.marginLeft=i+"px")}return t("div",{class:"el-form-item__label-wrap",style:r},[e])}return e[0]},methods:{getLabelWidth:function(){if(this.$el&&this.$el.firstElementChild){var t=window.getComputedStyle(this.$el.firstElementChild).width;return Math.ceil(parseFloat(t))}return 0},updateLabelWidth:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"update";this.$slots.default&&this.isAutoWidth&&this.$el.firstElementChild&&("update"===t?this.computedWidth=this.getLabelWidth():"remove"===t&&this.elForm.deregisterLabelWidth(this.computedWidth))}},watch:{computedWidth:function(t,e){this.updateAll&&(this.elForm.registerLabelWidth(t,e),this.elFormItem.updateComputedLabelWidth(t))}},data:function(){return{computedWidth:0}},mounted:function(){this.updateLabelWidth("update")},updated:function(){this.updateLabelWidth("update")},beforeDestroy:function(){this.updateLabelWidth("remove")}},yu=vu,bu=r(yu,void 0,void 0,!1,null,null,null);bu.options.__file="packages/form/src/label-wrap.vue";var _u=bu.exports,wu={name:"ElFormItem",componentName:"ElFormItem",mixins:[tt.a],provide:function(){return{elFormItem:this}},inject:["elForm"],props:{label:String,labelWidth:String,prop:String,required:{type:Boolean,default:void 0},rules:[Object,Array],error:String,validateStatus:String,for:String,inlineMessage:{type:[String,Boolean],default:""},showMessage:{type:Boolean,default:!0},size:String},components:{LabelWrap:_u},watch:{error:{immediate:!0,handler:function(t){this.validateMessage=t,this.validateState=t?"error":""}},validateStatus:function(t){this.validateState=t},rules:function(t){t&&0!==t.length||void 0!==this.required||this.clearValidate()}},computed:{labelFor:function(){return this.for||this.prop},labelStyle:function(){var t={};if("top"===this.form.labelPosition)return t;var e=this.labelWidth||this.form.labelWidth;return e&&(t.width=e),t},contentStyle:function(){var t={},e=this.label;if("top"===this.form.labelPosition||this.form.inline)return t;if(!e&&!this.labelWidth&&this.isNested)return t;var n=this.labelWidth||this.form.labelWidth;return"auto"===n?"auto"===this.labelWidth?t.marginLeft=this.computedLabelWidth:"auto"===this.form.labelWidth&&(t.marginLeft=this.elForm.autoLabelWidth):t.marginLeft=n,t},form:function(){for(var t=this.$parent,e=t.$options.componentName;"ElForm"!==e;)"ElFormItem"===e&&(this.isNested=!0),t=t.$parent,e=t.$options.componentName;return t},fieldValue:function(){var t=this.form.model;if(t&&this.prop){var e=this.prop;return-1!==e.indexOf(":")&&(e=e.replace(/:/,".")),Object(H.getPropByPath)(t,e,!0).v}},isRequired:function(){var t=this.getRules(),e=!1;return t&&t.length&&t.every(function(t){return!t.required||(e=!0,!1)}),e},_formSize:function(){return this.elForm.size},elFormItemSize:function(){return this.size||this._formSize},sizeClass:function(){return this.elFormItemSize||(this.$ELEMENT||{}).size}},data:function(){return{validateState:"",validateMessage:"",validateDisabled:!1,validator:{},isNested:!1,computedLabelWidth:""}},methods:{validate:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:H.noop;this.validateDisabled=!1;var r=this.getFilteredRule(t);if((!r||0===r.length)&&void 0===this.required)return n(),!0;this.validateState="validating";var i={};r&&r.length>0&&r.forEach(function(t){delete t.trigger}),i[this.prop]=r;var o=new mu.a(i),a={};a[this.prop]=this.fieldValue,o.validate(a,{firstFields:!0},function(t,r){e.validateState=t?"error":"success",e.validateMessage=t?t[0].message:"",n(e.validateMessage,r),e.elForm&&e.elForm.$emit("validate",e.prop,!t,e.validateMessage||null)})},clearValidate:function(){this.validateState="",this.validateMessage="",this.validateDisabled=!1},resetField:function(){var t=this;this.validateState="",this.validateMessage="";var e=this.form.model,n=this.fieldValue,r=this.prop;-1!==r.indexOf(":")&&(r=r.replace(/:/,"."));var i=Object(H.getPropByPath)(e,r,!0);this.validateDisabled=!0,Array.isArray(n)?i.o[i.k]=[].concat(this.initialValue):i.o[i.k]=this.initialValue,this.$nextTick(function(){t.validateDisabled=!1}),this.broadcast("ElTimeSelect","fieldReset",this.initialValue)},getRules:function(){var t=this.form.rules,e=this.rules,n=void 0!==this.required?{required:!!this.required}:[],r=Object(H.getPropByPath)(t,this.prop||"");return t=t?r.o[this.prop||""]||r.v:[],[].concat(e||t||[]).concat(n)},getFilteredRule:function(t){return this.getRules().filter(function(e){return!e.trigger||""===t||(Array.isArray(e.trigger)?e.trigger.indexOf(t)>-1:e.trigger===t)}).map(function(t){return Ue()({},t)})},onFieldBlur:function(){this.validate("blur")},onFieldChange:function(){if(this.validateDisabled)return void(this.validateDisabled=!1);this.validate("change")},updateComputedLabelWidth:function(t){this.computedLabelWidth=t?t+"px":""},addValidateEvents:function(){(this.getRules().length||void 0!==this.required)&&(this.$on("el.form.blur",this.onFieldBlur),this.$on("el.form.change",this.onFieldChange))},removeValidateEvents:function(){this.$off()}},mounted:function(){if(this.prop){this.dispatch("ElForm","el.form.addField",[this]);var t=this.fieldValue;Array.isArray(t)&&(t=[].concat(t)),Object.defineProperty(this,"initialValue",{value:t}),this.addValidateEvents()}},beforeDestroy:function(){this.dispatch("ElForm","el.form.removeField",[this])}},xu=wu,ku=r(xu,hu,pu,!1,null,null,null);ku.options.__file="packages/form/src/form-item.vue";var Su=ku.exports;Su.install=function(t){t.component(Su.name,Su)};var Cu=Su,Eu=function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"el-tabs__active-bar",class:"is-"+t.rootTabs.tabPosition,style:t.barStyle})},Tu=[];Eu._withStripped=!0;var Au={name:"TabBar",props:{tabs:Array},inject:["rootTabs"],computed:{barStyle:{get:function(){var t=this,e={},n=0,r=0,i=-1!==["top","bottom"].indexOf(this.rootTabs.tabPosition)?"width":"height",o="width"===i?"x":"y",a=function(t){return t.toLowerCase().replace(/( |^)[a-z]/g,function(t){return t.toUpperCase()})};this.tabs.every(function(e,o){var s=Object(H.arrayFind)(t.$parent.$refs.tabs||[],function(t){return t.id.replace("tab-","")===e.paneName});if(!s)return!1;if(e.active){r=s["client"+a(i)];var u=window.getComputedStyle(s);return"width"===i&&t.tabs.length>1&&(r-=parseFloat(u.paddingLeft)+parseFloat(u.paddingRight)),"width"===i&&(n+=parseFloat(u.paddingLeft)),!1}return n+=s["client"+a(i)],!0});var s="translate"+a(o)+"("+n+"px)";return e[i]=r+"px",e.transform=s,e.msTransform=s,e.webkitTransform=s,e}}}},Ou=Au,Pu=r(Ou,Eu,Tu,!1,null,null,null);Pu.options.__file="packages/tabs/src/tab-bar.vue";var Nu=Pu.exports,Du=function(t){return t.toLowerCase().replace(/( |^)[a-z]/g,function(t){return t.toUpperCase()})},Mu={name:"TabNav",components:{TabBar:Nu},inject:["rootTabs"],props:{panes:Array,currentName:String,editable:Boolean,onTabClick:{type:Function,default:b},onTabRemove:{type:Function,default:b},type:String,stretch:Boolean},data:function(){return{scrollable:!1,navOffset:0,isFocus:!1,focusable:!0}},computed:{navStyle:function(){return{transform:"translate"+(-1!==["top","bottom"].indexOf(this.rootTabs.tabPosition)?"X":"Y")+"(-"+this.navOffset+"px)"}},sizeName:function(){return-1!==["top","bottom"].indexOf(this.rootTabs.tabPosition)?"width":"height"}},methods:{scrollPrev:function(){var t=this.$refs.navScroll["offset"+Du(this.sizeName)],e=this.navOffset;if(e){var n=e>t?e-t:0;this.navOffset=n}},scrollNext:function(){var t=this.$refs.nav["offset"+Du(this.sizeName)],e=this.$refs.navScroll["offset"+Du(this.sizeName)],n=this.navOffset;if(!(t-n<=e)){var r=t-n>2*e?n+e:t-e;this.navOffset=r}},scrollToActiveTab:function(){if(this.scrollable){var t=this.$refs.nav,e=this.$el.querySelector(".is-active");if(e){var n=this.$refs.navScroll,r=-1!==["top","bottom"].indexOf(this.rootTabs.tabPosition),i=e.getBoundingClientRect(),o=n.getBoundingClientRect(),a=r?t.offsetWidth-o.width:t.offsetHeight-o.height,s=this.navOffset,u=s;r?(i.left<o.left&&(u=s-(o.left-i.left)),i.right>o.right&&(u=s+i.right-o.right)):(i.top<o.top&&(u=s-(o.top-i.top)),i.bottom>o.bottom&&(u=s+(i.bottom-o.bottom))),u=Math.max(u,0),this.navOffset=Math.min(u,a)}}},update:function(){if(this.$refs.nav){var t=this.sizeName,e=this.$refs.nav["offset"+Du(t)],n=this.$refs.navScroll["offset"+Du(t)],r=this.navOffset;if(n<e){var i=this.navOffset;this.scrollable=this.scrollable||{},this.scrollable.prev=i,this.scrollable.next=i+n<e,e-i<n&&(this.navOffset=e-n)}else this.scrollable=!1,r>0&&(this.navOffset=0)}},changeTab:function(t){var e=t.keyCode,n=void 0,r=void 0,i=void 0;-1!==[37,38,39,40].indexOf(e)&&(i=t.currentTarget.querySelectorAll("[role=tab]"),r=Array.prototype.indexOf.call(i,t.target),n=37===e||38===e?0===r?i.length-1:r-1:r<i.length-1?r+1:0,i[n].focus(),i[n].click(),this.setFocus())},setFocus:function(){this.focusable&&(this.isFocus=!0)},removeFocus:function(){this.isFocus=!1},visibilityChangeHandler:function(){var t=this,e=document.visibilityState;"hidden"===e?this.focusable=!1:"visible"===e&&setTimeout(function(){t.focusable=!0},50)},windowBlurHandler:function(){this.focusable=!1},windowFocusHandler:function(){var t=this;setTimeout(function(){t.focusable=!0},50)}},updated:function(){this.update()},render:function(t){var e=this,n=this.type,r=this.panes,i=this.editable,o=this.stretch,a=this.onTabClick,s=this.onTabRemove,u=this.navStyle,l=this.scrollable,c=this.scrollNext,f=this.scrollPrev,d=this.changeTab,h=this.setFocus,p=this.removeFocus,g=l?[t("span",{class:["el-tabs__nav-prev",l.prev?"":"is-disabled"],on:{click:f}},[t("i",{class:"el-icon-arrow-left"})]),t("span",{class:["el-tabs__nav-next",l.next?"":"is-disabled"],on:{click:c}},[t("i",{class:"el-icon-arrow-right"})])]:null,m=this._l(r,function(n,r){var o,u=n.name||n.index||r,l=n.isClosable||i;n.index=""+r;var c=l?t("span",{class:"el-icon-close",on:{click:function(t){s(n,t)}}}):null,f=n.$slots.label||n.label,d=n.active?0:-1;return t("div",{class:(o={"el-tabs__item":!0},o["is-"+e.rootTabs.tabPosition]=!0,o["is-active"]=n.active,o["is-disabled"]=n.disabled,o["is-closable"]=l,o["is-focus"]=e.isFocus,o),attrs:{id:"tab-"+u,"aria-controls":"pane-"+u,role:"tab","aria-selected":n.active,tabindex:d},key:"tab-"+u,ref:"tabs",refInFor:!0,on:{focus:function(){h()},blur:function(){p()},click:function(t){p(),a(n,u,t)},keydown:function(t){!l||46!==t.keyCode&&8!==t.keyCode||s(n,t)}}},[f,c])});return t("div",{class:["el-tabs__nav-wrap",l?"is-scrollable":"","is-"+this.rootTabs.tabPosition]},[g,t("div",{class:["el-tabs__nav-scroll"],ref:"navScroll"},[t("div",{class:["el-tabs__nav","is-"+this.rootTabs.tabPosition,o&&-1!==["top","bottom"].indexOf(this.rootTabs.tabPosition)?"is-stretch":""],ref:"nav",style:u,attrs:{role:"tablist"},on:{keydown:d}},[n?null:t("tab-bar",{attrs:{tabs:r}}),m])])])},mounted:function(){var t=this;Object(yr.addResizeListener)(this.$el,this.update),document.addEventListener("visibilitychange",this.visibilityChangeHandler),window.addEventListener("blur",this.windowBlurHandler),window.addEventListener("focus",this.windowFocusHandler),setTimeout(function(){t.scrollToActiveTab()},0)},beforeDestroy:function(){this.$el&&this.update&&Object(yr.removeResizeListener)(this.$el,this.update),document.removeEventListener("visibilitychange",this.visibilityChangeHandler),window.removeEventListener("blur",this.windowBlurHandler),window.removeEventListener("focus",this.windowFocusHandler)}},Iu=Mu,Ru=r(Iu,void 0,void 0,!1,null,null,null);Ru.options.__file="packages/tabs/src/tab-nav.vue";var $u=Ru.exports,Lu={name:"ElTabs",components:{TabNav:$u},props:{type:String,activeName:String,closable:Boolean,addable:Boolean,value:{},editable:Boolean,tabPosition:{type:String,default:"top"},beforeLeave:Function,stretch:Boolean},provide:function(){return{rootTabs:this}},data:function(){return{currentName:this.value||this.activeName,panes:[]}},watch:{activeName:function(t){this.setCurrentName(t)},value:function(t){this.setCurrentName(t)},currentName:function(t){var e=this;this.$refs.nav&&this.$nextTick(function(){e.$refs.nav.$nextTick(function(t){e.$refs.nav.scrollToActiveTab()})})}},methods:{calcPaneInstances:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.$slots.default){var n=this.$slots.default.filter(function(t){return t.tag&&t.componentOptions&&"ElTabPane"===t.componentOptions.Ctor.options.name}),r=n.map(function(t){return t.componentInstance}),i=!(r.length===this.panes.length&&r.every(function(e,n){return e===t.panes[n]}));(e||i)&&(this.panes=r)}else 0!==this.panes.length&&(this.panes=[])},handleTabClick:function(t,e,n){t.disabled||(this.setCurrentName(e),this.$emit("tab-click",t,n))},handleTabRemove:function(t,e){t.disabled||(e.stopPropagation(),this.$emit("edit",t.name,"remove"),this.$emit("tab-remove",t.name))},handleTabAdd:function(){this.$emit("edit",null,"add"),this.$emit("tab-add")},setCurrentName:function(t){var e=this,n=function(){e.currentName=t,e.$emit("input",t)};if(this.currentName!==t&&this.beforeLeave){var r=this.beforeLeave(t,this.currentName);r&&r.then?r.then(function(){n(),e.$refs.nav&&e.$refs.nav.removeFocus()},function(){}):!1!==r&&n()}else n()}},render:function(t){var e,n=this.type,r=this.handleTabClick,i=this.handleTabRemove,o=this.handleTabAdd,a=this.currentName,s=this.panes,u=this.editable,l=this.addable,c=this.tabPosition,f=this.stretch,d=u||l?t("span",{class:"el-tabs__new-tab",on:{click:o,keydown:function(t){13===t.keyCode&&o()}},attrs:{tabindex:"0"}},[t("i",{class:"el-icon-plus"})]):null,h={props:{currentName:a,onTabClick:r,onTabRemove:i,editable:u,type:n,panes:s,stretch:f},ref:"nav"},p=t("div",{class:["el-tabs__header","is-"+c]},[d,t("tab-nav",h)]),g=t("div",{class:"el-tabs__content"},[this.$slots.default]);return t("div",{class:(e={"el-tabs":!0,"el-tabs--card":"card"===n},e["el-tabs--"+c]=!0,e["el-tabs--border-card"]="border-card"===n,e)},["bottom"!==c?[p,g]:[g,p]])},created:function(){this.currentName||this.setCurrentName("0"),this.$on("tab-nav-update",this.calcPaneInstances.bind(null,!0))},mounted:function(){this.calcPaneInstances()},updated:function(){this.calcPaneInstances()}},ju=Lu,Fu=r(ju,void 0,void 0,!1,null,null,null);Fu.options.__file="packages/tabs/src/tabs.vue";var Bu=Fu.exports;Bu.install=function(t){t.component(Bu.name,Bu)};var Vu=Bu,zu=function(){var t=this,e=t.$createElement,n=t._self._c||e;return!t.lazy||t.loaded||t.active?n("div",{directives:[{name:"show",rawName:"v-show",value:t.active,expression:"active"}],staticClass:"el-tab-pane",attrs:{role:"tabpanel","aria-hidden":!t.active,id:"pane-"+t.paneName,"aria-labelledby":"tab-"+t.paneName}},[t._t("default")],2):t._e()},Uu=[];zu._withStripped=!0;var Hu={name:"ElTabPane",componentName:"ElTabPane",props:{label:String,labelContent:Function,name:String,closable:Boolean,disabled:Boolean,lazy:Boolean},data:function(){return{index:null,loaded:!1}},computed:{isClosable:function(){return this.closable||this.$parent.closable},active:function(){var t=this.$parent.currentName===(this.name||this.index);return t&&(this.loaded=!0),t},paneName:function(){return this.name||this.index}},updated:function(){this.$parent.$emit("tab-nav-update")}},qu=Hu,Wu=r(qu,zu,Uu,!1,null,null,null);Wu.options.__file="packages/tabs/src/tab-pane.vue";var Gu=Wu.exports;Gu.install=function(t){t.component(Gu.name,Gu)};var Yu=Gu,Ku={name:"ElTag",props:{text:String,closable:Boolean,type:String,hit:Boolean,disableTransitions:Boolean,color:String,size:String,effect:{type:String,default:"light",validator:function(t){return-1!==["dark","light","plain"].indexOf(t)}}},methods:{handleClose:function(t){t.stopPropagation(),this.$emit("close",t)},handleClick:function(t){this.$emit("click",t)}},computed:{tagSize:function(){return this.size||(this.$ELEMENT||{}).size}},render:function(t){var e=this.type,n=this.tagSize,r=this.hit,i=this.effect,o=["el-tag",e?"el-tag--"+e:"",n?"el-tag--"+n:"",i?"el-tag--"+i:"",r&&"is-hit"],a=t("span",{class:o,style:{backgroundColor:this.color},on:{click:this.handleClick}},[this.$slots.default,this.closable&&t("i",{class:"el-tag__close el-icon-close",on:{click:this.handleClose}})]);return this.disableTransitions?a:t("transition",{attrs:{name:"el-zoom-in-center"}},[a])}},Xu=Ku,Ju=r(Xu,void 0,void 0,!1,null,null,null);Ju.options.__file="packages/tag/src/tag.vue";var Qu=Ju.exports;Qu.install=function(t){t.component(Qu.name,Qu)};var Zu=Qu,tl=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-tree",class:{"el-tree--highlight-current":t.highlightCurrent,"is-dragging":!!t.dragState.draggingNode,"is-drop-not-allow":!t.dragState.allowDrop,"is-drop-inner":"inner"===t.dragState.dropType},attrs:{role:"tree"}},[t._l(t.root.childNodes,function(e){return n("el-tree-node",{key:t.getNodeKey(e),attrs:{node:e,props:t.props,"render-after-expand":t.renderAfterExpand,"show-checkbox":t.showCheckbox,"render-content":t.renderContent},on:{"node-expand":t.handleNodeExpand}})}),t.isEmpty?n("div",{staticClass:"el-tree__empty-block"},[n("span",{staticClass:"el-tree__empty-text"},[t._v(t._s(t.emptyText))])]):t._e(),n("div",{directives:[{name:"show",rawName:"v-show",value:t.dragState.showDropIndicator,expression:"dragState.showDropIndicator"}],ref:"dropIndicator",staticClass:"el-tree__drop-indicator"})],2)},el=[];tl._withStripped=!0;var nl="$treeNodeId",rl=function(t,e){e&&!e[nl]&&Object.defineProperty(e,nl,{value:t.id,enumerable:!1,configurable:!1,writable:!1})},il=function(t,e){return t?e[t]:e[nl]},ol=function(t,e){for(var n=t;n&&"BODY"!==n.tagName;){if(n.__vue__&&n.__vue__.$options.name===e)return n.__vue__;n=n.parentNode}return null},al=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),sl=function(t){for(var e=!0,n=!0,r=!0,i=0,o=t.length;i<o;i++){var a=t[i];(!0!==a.checked||a.indeterminate)&&(e=!1,a.disabled||(r=!1)),(!1!==a.checked||a.indeterminate)&&(n=!1)}return{all:e,none:n,allWithoutDisable:r,half:!e&&!n}},ul=function t(e){if(0!==e.childNodes.length&&!e.loading){var n=sl(e.childNodes),r=n.all,i=n.none,o=n.half;r?(e.checked=!0,e.indeterminate=!1):o?(e.checked=!1,e.indeterminate=!0):i&&(e.checked=!1,e.indeterminate=!1);var a=e.parent;a&&0!==a.level&&(e.store.checkStrictly||t(a))}},ll=function(t,e){var n=t.store.props,r=t.data||{},i=n[e];if("function"==typeof i)return i(r,t);if("string"==typeof i)return r[i];if(void 0===i){var o=r[e];return void 0===o?"":o}},cl=0,fl=function(){function t(e){_(this,t),this.id=cl++,this.text=null,this.checked=!1,this.indeterminate=!1,this.data=null,this.expanded=!1,this.parent=null,this.visible=!0,this.isCurrent=!1;for(var n in e)e.hasOwnProperty(n)&&(this[n]=e[n]);this.level=0,this.loaded=!1,this.childNodes=[],this.loading=!1,this.parent&&(this.level=this.parent.level+1);var r=this.store;if(!r)throw new Error("[Node]store is required!");r.registerNode(this);var i=r.props;if(i&&void 0!==i.isLeaf){var o=ll(this,"isLeaf");"boolean"==typeof o&&(this.isLeafByUser=o)}if(!0!==r.lazy&&this.data?(this.setData(this.data),r.defaultExpandAll&&(this.expanded=!0)):this.level>0&&r.lazy&&r.defaultExpandAll&&this.expand(),Array.isArray(this.data)||rl(this,this.data),this.data){var a=r.defaultExpandedKeys,s=r.key;s&&a&&-1!==a.indexOf(this.key)&&this.expand(null,r.autoExpandParent),s&&void 0!==r.currentNodeKey&&this.key===r.currentNodeKey&&(r.currentNode=this,r.currentNode.isCurrent=!0),r.lazy&&r._initDefaultCheckedNode(this),this.updateLeafState()}}return t.prototype.setData=function(t){Array.isArray(t)||rl(this,t),this.data=t,this.childNodes=[];var e=void 0;e=0===this.level&&this.data instanceof Array?this.data:ll(this,"children")||[];for(var n=0,r=e.length;n<r;n++)this.insertChild({data:e[n]})},t.prototype.contains=function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return function n(r){for(var i=r.childNodes||[],o=!1,a=0,s=i.length;a<s;a++){var u=i[a];if(u===t||e&&n(u)){o=!0;break}}return o}(this)},t.prototype.remove=function(){var t=this.parent;t&&t.removeChild(this)},t.prototype.insertChild=function(e,n,r){if(!e)throw new Error("insertChild error: child is required.");if(!(e instanceof t)){if(!r){var i=this.getChildren(!0)||[];-1===i.indexOf(e.data)&&(void 0===n||n<0?i.push(e.data):i.splice(n,0,e.data))}Ue()(e,{parent:this,store:this.store}),e=new t(e)}e.level=this.level+1,void 0===n||n<0?this.childNodes.push(e):this.childNodes.splice(n,0,e),this.updateLeafState()},t.prototype.insertBefore=function(t,e){var n=void 0;e&&(n=this.childNodes.indexOf(e)),this.insertChild(t,n)},t.prototype.insertAfter=function(t,e){var n=void 0;e&&-1!==(n=this.childNodes.indexOf(e))&&(n+=1),this.insertChild(t,n)},t.prototype.removeChild=function(t){var e=this.getChildren()||[],n=e.indexOf(t.data);n>-1&&e.splice(n,1);var r=this.childNodes.indexOf(t);r>-1&&(this.store&&this.store.deregisterNode(t),t.parent=null,this.childNodes.splice(r,1)),this.updateLeafState()},t.prototype.removeChildByData=function(t){for(var e=null,n=0;n<this.childNodes.length;n++)if(this.childNodes[n].data===t){e=this.childNodes[n];break}e&&this.removeChild(e)},t.prototype.expand=function(t,e){var n=this,r=function(){if(e)for(var r=n.parent;r.level>0;)r.expanded=!0,r=r.parent;n.expanded=!0,t&&t()};this.shouldLoadData()?this.loadData(function(t){t instanceof Array&&(n.checked?n.setChecked(!0,!0):n.store.checkStrictly||ul(n),r())}):r()},t.prototype.doCreateChildren=function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.forEach(function(t){e.insertChild(Ue()({data:t},n),void 0,!0)})},t.prototype.collapse=function(){this.expanded=!1},t.prototype.shouldLoadData=function(){return!0===this.store.lazy&&this.store.load&&!this.loaded},t.prototype.updateLeafState=function(){if(!0===this.store.lazy&&!0!==this.loaded&&void 0!==this.isLeafByUser)return void(this.isLeaf=this.isLeafByUser);var t=this.childNodes;if(!this.store.lazy||!0===this.store.lazy&&!0===this.loaded)return void(this.isLeaf=!t||0===t.length);this.isLeaf=!1},t.prototype.setChecked=function(t,e,n,r){var i=this;if(this.indeterminate="half"===t,this.checked=!0===t,!this.store.checkStrictly){if(!this.shouldLoadData()||this.store.checkDescendants){var o=sl(this.childNodes),a=o.all,s=o.allWithoutDisable;this.isLeaf||a||!s||(this.checked=!1,t=!1);var u=function(){if(e){for(var n=i.childNodes,o=0,a=n.length;o<a;o++){var s=n[o];r=r||!1!==t;var u=s.disabled?s.checked:r;s.setChecked(u,e,!0,r)}var l=sl(n),c=l.half,f=l.all;f||(i.checked=f,i.indeterminate=c)}};if(this.shouldLoadData())return void this.loadData(function(){u(),ul(i)},{checked:!1!==t});u()}var l=this.parent;l&&0!==l.level&&(n||ul(l))}},t.prototype.getChildren=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(0===this.level)return this.data;var e=this.data;if(!e)return null;var n=this.store.props,r="children";return n&&(r=n.children||"children"),void 0===e[r]&&(e[r]=null),t&&!e[r]&&(e[r]=[]),e[r]},t.prototype.updateChildren=function(){var t=this,e=this.getChildren()||[],n=this.childNodes.map(function(t){return t.data}),r={},i=[];e.forEach(function(t,e){var o=t[nl];!!o&&Object(H.arrayFindIndex)(n,function(t){return t[nl]===o})>=0?r[o]={index:e,data:t}:i.push({index:e,data:t})}),this.store.lazy||n.forEach(function(e){r[e[nl]]||t.removeChildByData(e)}),i.forEach(function(e){var n=e.index,r=e.data;t.insertChild({data:r},n)}),this.updateLeafState()},t.prototype.loadData=function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!0!==this.store.lazy||!this.store.load||this.loaded||this.loading&&!Object.keys(n).length)t&&t.call(this);else{this.loading=!0;var r=function(r){e.childNodes=[],e.doCreateChildren(r,n),e.loaded=!0,e.loading=!1,e.updateLeafState(),t&&t.call(e,r)};this.store.load(this,r)}},al(t,[{key:"label",get:function(){return ll(this,"label")}},{key:"key",get:function(){var t=this.store.key;return this.data?this.data[t]:null}},{key:"disabled",get:function(){return ll(this,"disabled")}},{key:"nextSibling",get:function(){var t=this.parent;if(t){var e=t.childNodes.indexOf(this);if(e>-1)return t.childNodes[e+1]}return null}},{key:"previousSibling",get:function(){var t=this.parent;if(t){var e=t.childNodes.indexOf(this);if(e>-1)return e>0?t.childNodes[e-1]:null}return null}}]),t}(),dl=fl,hl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pl=function(){function t(e){var n=this;w(this,t),this.currentNode=null,this.currentNodeKey=null;for(var r in e)e.hasOwnProperty(r)&&(this[r]=e[r]);if(this.nodesMap={},this.root=new dl({data:this.data,store:this}),this.lazy&&this.load){(0,this.load)(this.root,function(t){n.root.doCreateChildren(t),n._initDefaultCheckedNodes()})}else this._initDefaultCheckedNodes()}return t.prototype.filter=function(t){var e=this.filterNodeMethod,n=this.lazy;!function r(i){var o=i.root?i.root.childNodes:i.childNodes;if(o.forEach(function(n){n.visible=e.call(n,t,n.data,n),r(n)}),!i.visible&&o.length){var a=!0;a=!o.some(function(t){return t.visible}),i.root?i.root.visible=!1===a:i.visible=!1===a}t&&(!i.visible||i.isLeaf||n||i.expand())}(this)},t.prototype.setData=function(t){t!==this.root.data?(this.root.setData(t),this._initDefaultCheckedNodes()):this.root.updateChildren()},t.prototype.getNode=function(t){if(t instanceof dl)return t;var e="object"!==(void 0===t?"undefined":hl(t))?t:il(this.key,t);return this.nodesMap[e]||null},t.prototype.insertBefore=function(t,e){var n=this.getNode(e);n.parent.insertBefore({data:t},n)},t.prototype.insertAfter=function(t,e){var n=this.getNode(e);n.parent.insertAfter({data:t},n)},t.prototype.remove=function(t){var e=this.getNode(t);e&&e.parent&&(e===this.currentNode&&(this.currentNode=null),e.parent.removeChild(e))},t.prototype.append=function(t,e){var n=e?this.getNode(e):this.root;n&&n.insertChild({data:t})},t.prototype._initDefaultCheckedNodes=function(){var t=this,e=this.defaultCheckedKeys||[],n=this.nodesMap;e.forEach(function(e){var r=n[e];r&&r.setChecked(!0,!t.checkStrictly)})},t.prototype._initDefaultCheckedNode=function(t){-1!==(this.defaultCheckedKeys||[]).indexOf(t.key)&&t.setChecked(!0,!this.checkStrictly)},t.prototype.setDefaultCheckedKey=function(t){t!==this.defaultCheckedKeys&&(this.defaultCheckedKeys=t,this._initDefaultCheckedNodes())},t.prototype.registerNode=function(t){this.key&&t&&t.data&&(void 0!==t.key&&(this.nodesMap[t.key]=t))},t.prototype.deregisterNode=function(t){var e=this;this.key&&t&&t.data&&(t.childNodes.forEach(function(t){e.deregisterNode(t)}),delete this.nodesMap[t.key])},t.prototype.getCheckedNodes=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=[];return function r(i){(i.root?i.root.childNodes:i.childNodes).forEach(function(i){(i.checked||e&&i.indeterminate)&&(!t||t&&i.isLeaf)&&n.push(i.data),r(i)})}(this),n},t.prototype.getCheckedKeys=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.getCheckedNodes(e).map(function(e){return(e||{})[t.key]})},t.prototype.getHalfCheckedNodes=function(){var t=[];return function e(n){(n.root?n.root.childNodes:n.childNodes).forEach(function(n){n.indeterminate&&t.push(n.data),e(n)})}(this),t},t.prototype.getHalfCheckedKeys=function(){var t=this;return this.getHalfCheckedNodes().map(function(e){return(e||{})[t.key]})},t.prototype._getAllNodes=function(){var t=[],e=this.nodesMap;for(var n in e)e.hasOwnProperty(n)&&t.push(e[n]);return t},t.prototype.updateChildren=function(t,e){var n=this.nodesMap[t];if(n){for(var r=n.childNodes,i=r.length-1;i>=0;i--){var o=r[i];this.remove(o.data)}for(var a=0,s=e.length;a<s;a++){var u=e[a];this.append(u,n.data)}}},t.prototype._setCheckedKeys=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments[2],r=this._getAllNodes().sort(function(t,e){return e.level-t.level}),i=Object.create(null),o=Object.keys(n);r.forEach(function(t){return t.setChecked(!1,!1)});for(var a=0,s=r.length;a<s;a++){var u=r[a],l=u.data[t].toString();if(o.indexOf(l)>-1){for(var c=u.parent;c&&c.level>0;)i[c.data[t]]=!0,c=c.parent;u.isLeaf||this.checkStrictly?u.setChecked(!0,!1):(u.setChecked(!0,!0),e&&function(){u.setChecked(!1,!1);!function t(e){e.childNodes.forEach(function(e){e.isLeaf||e.setChecked(!1,!1),t(e)})}(u)}())}else u.checked&&!i[l]&&u.setChecked(!1,!1)}},t.prototype.setCheckedNodes=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.key,r={};t.forEach(function(t){r[(t||{})[n]]=!0}),this._setCheckedKeys(n,e,r)},t.prototype.setCheckedKeys=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.defaultCheckedKeys=t;var n=this.key,r={};t.forEach(function(t){r[t]=!0}),this._setCheckedKeys(n,e,r)},t.prototype.setDefaultExpandedKeys=function(t){var e=this;t=t||[],this.defaultExpandedKeys=t,t.forEach(function(t){var n=e.getNode(t);n&&n.expand(null,e.autoExpandParent)})},t.prototype.setChecked=function(t,e,n){var r=this.getNode(t);r&&r.setChecked(!!e,n)},t.prototype.getCurrentNode=function(){return this.currentNode},t.prototype.setCurrentNode=function(t){var e=this.currentNode;e&&(e.isCurrent=!1),this.currentNode=t,this.currentNode.isCurrent=!0},t.prototype.setUserCurrentNode=function(t){var e=t[this.key],n=this.nodesMap[e];this.setCurrentNode(n)},t.prototype.setCurrentNodeKey=function(t){if(null===t||void 0===t)return this.currentNode&&(this.currentNode.isCurrent=!1),void(this.currentNode=null);var e=this.getNode(t);e&&this.setCurrentNode(e)},t}(),gl=pl,ml=function(){var t=this,e=this,n=e.$createElement,r=e._self._c||n;return r("div",{directives:[{name:"show",rawName:"v-show",value:e.node.visible,expression:"node.visible"}],ref:"node",staticClass:"el-tree-node",class:{"is-expanded":e.expanded,"is-current":e.node.isCurrent,"is-hidden":!e.node.visible,"is-focusable":!e.node.disabled,"is-checked":!e.node.disabled&&e.node.checked},attrs:{role:"treeitem",tabindex:"-1","aria-expanded":e.expanded,"aria-disabled":e.node.disabled,"aria-checked":e.node.checked,draggable:e.tree.draggable},on:{click:function(t){return t.stopPropagation(),e.handleClick(t)},contextmenu:function(e){return t.handleContextMenu(e)},dragstart:function(t){return t.stopPropagation(),e.handleDragStart(t)},dragover:function(t){return t.stopPropagation(),e.handleDragOver(t)},dragend:function(t){return t.stopPropagation(),e.handleDragEnd(t)},drop:function(t){return t.stopPropagation(),e.handleDrop(t)}}},[r("div",{staticClass:"el-tree-node__content",style:{"padding-left":(e.node.level-1)*e.tree.indent+"px"}},[r("span",{class:[{"is-leaf":e.node.isLeaf,expanded:!e.node.isLeaf&&e.expanded},"el-tree-node__expand-icon",e.tree.iconClass?e.tree.iconClass:"el-icon-caret-right"],on:{click:function(t){return t.stopPropagation(),e.handleExpandIconClick(t)}}}),e.showCheckbox?r("el-checkbox",{attrs:{indeterminate:e.node.indeterminate,disabled:!!e.node.disabled},on:{change:e.handleCheckChange},nativeOn:{click:function(t){t.stopPropagation()}},model:{value:e.node.checked,callback:function(t){e.$set(e.node,"checked",t)},expression:"node.checked"}}):e._e(),e.node.loading?r("span",{staticClass:"el-tree-node__loading-icon el-icon-loading"}):e._e(),r("node-content",{attrs:{node:e.node}})],1),r("el-collapse-transition",[!e.renderAfterExpand||e.childNodeRendered?r("div",{directives:[{name:"show",rawName:"v-show",value:e.expanded,expression:"expanded"}],staticClass:"el-tree-node__children",attrs:{role:"group","aria-expanded":e.expanded}},e._l(e.node.childNodes,function(t){return r("el-tree-node",{key:e.getNodeKey(t),attrs:{"render-content":e.renderContent,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,node:t},on:{"node-expand":e.handleChildNodeExpand}})}),1):e._e()])],1)},vl=[];ml._withStripped=!0;var yl={name:"ElTreeNode",componentName:"ElTreeNode",mixins:[tt.a],props:{node:{default:function(){return{}}},props:{},renderContent:Function,renderAfterExpand:{type:Boolean,default:!0},showCheckbox:{type:Boolean,default:!1}},components:{ElCollapseTransition:he.a,ElCheckbox:Qr.a,NodeContent:{props:{node:{required:!0}},render:function(t){var e=this.$parent,n=e.tree,r=this.node,i=r.data,o=r.store;return e.renderContent?e.renderContent.call(e._renderProxy,t,{_self:n.$vnode.context,node:r,data:i,store:o}):n.$scopedSlots.default?n.$scopedSlots.default({node:r,data:i}):t("span",{class:"el-tree-node__label"},[r.label])}}},data:function(){return{tree:null,expanded:!1,childNodeRendered:!1,oldChecked:null,oldIndeterminate:null}},watch:{"node.indeterminate":function(t){this.handleSelectChange(this.node.checked,t)},"node.checked":function(t){this.handleSelectChange(t,this.node.indeterminate)},"node.expanded":function(t){var e=this;this.$nextTick(function(){return e.expanded=t}),t&&(this.childNodeRendered=!0)}},methods:{getNodeKey:function(t){return il(this.tree.nodeKey,t.data)},handleSelectChange:function(t,e){this.oldChecked!==t&&this.oldIndeterminate!==e&&this.tree.$emit("check-change",this.node.data,t,e),this.oldChecked=t,this.indeterminate=e},handleClick:function(){var t=this.tree.store;t.setCurrentNode(this.node),this.tree.$emit("current-change",t.currentNode?t.currentNode.data:null,t.currentNode),this.tree.currentNode=this,this.tree.expandOnClickNode&&this.handleExpandIconClick(),this.tree.checkOnClickNode&&!this.node.disabled&&this.handleCheckChange(null,{target:{checked:!this.node.checked}}),this.tree.$emit("node-click",this.node.data,this.node,this)},handleContextMenu:function(t){this.tree._events["node-contextmenu"]&&this.tree._events["node-contextmenu"].length>0&&(t.stopPropagation(),t.preventDefault()),this.tree.$emit("node-contextmenu",t,this.node.data,this.node,this)},handleExpandIconClick:function(){this.node.isLeaf||(this.expanded?(this.tree.$emit("node-collapse",this.node.data,this.node,this),this.node.collapse()):(this.node.expand(),this.$emit("node-expand",this.node.data,this.node,this)))},handleCheckChange:function(t,e){var n=this;this.node.setChecked(e.target.checked,!this.tree.checkStrictly),this.$nextTick(function(){var t=n.tree.store;n.tree.$emit("check",n.node.data,{checkedNodes:t.getCheckedNodes(),checkedKeys:t.getCheckedKeys(),halfCheckedNodes:t.getHalfCheckedNodes(),halfCheckedKeys:t.getHalfCheckedKeys()})})},handleChildNodeExpand:function(t,e,n){this.broadcast("ElTreeNode","tree-node-expand",e),this.tree.$emit("node-expand",t,e,n)},handleDragStart:function(t){this.tree.draggable&&this.tree.$emit("tree-node-drag-start",t,this)},handleDragOver:function(t){this.tree.draggable&&(this.tree.$emit("tree-node-drag-over",t,this),t.preventDefault())},handleDrop:function(t){t.preventDefault()},handleDragEnd:function(t){this.tree.draggable&&this.tree.$emit("tree-node-drag-end",t,this)}},created:function(){var t=this,e=this.$parent;e.isTree?this.tree=e:this.tree=e.tree;var n=this.tree;n||console.warn("Can not find node's tree.");var r=n.props||{},i=r.children||"children";this.$watch("node.data."+i,function(){t.node.updateChildren()}),this.node.expanded&&(this.expanded=!0,this.childNodeRendered=!0),this.tree.accordion&&this.$on("tree-node-expand",function(e){t.node!==e&&t.node.collapse()})}},bl=yl,_l=r(bl,ml,vl,!1,null,null,null);_l.options.__file="packages/tree/src/tree-node.vue";var wl=_l.exports,xl={name:"ElTree",mixins:[tt.a],components:{ElTreeNode:wl},data:function(){return{store:null,root:null,currentNode:null,treeItems:null,checkboxItems:[],dragState:{showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0}}},props:{data:{type:Array},emptyText:{type:String,default:function(){return Object(ks.t)("el.tree.emptyText")}},renderAfterExpand:{type:Boolean,default:!0},nodeKey:String,checkStrictly:Boolean,defaultExpandAll:Boolean,expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkDescendants:{type:Boolean,default:!1},autoExpandParent:{type:Boolean,default:!0},defaultCheckedKeys:Array,defaultExpandedKeys:Array,currentNodeKey:[String,Number],renderContent:Function,showCheckbox:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1},allowDrag:Function,allowDrop:Function,props:{default:function(){return{children:"children",label:"label",disabled:"disabled"}}},lazy:{type:Boolean,default:!1},highlightCurrent:Boolean,load:Function,filterNodeMethod:Function,accordion:Boolean,indent:{type:Number,default:18},iconClass:String},computed:{children:{set:function(t){this.data=t},get:function(){return this.data}},treeItemArray:function(){return Array.prototype.slice.call(this.treeItems)},isEmpty:function(){var t=this.root.childNodes;return!t||0===t.length||t.every(function(t){return!t.visible})}},watch:{defaultCheckedKeys:function(t){this.store.setDefaultCheckedKey(t)},defaultExpandedKeys:function(t){this.store.defaultExpandedKeys=t,this.store.setDefaultExpandedKeys(t)},data:function(t){this.store.setData(t)},checkboxItems:function(t){Array.prototype.forEach.call(t,function(t){t.setAttribute("tabindex",-1)})},checkStrictly:function(t){this.store.checkStrictly=t}},methods:{filter:function(t){if(!this.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");this.store.filter(t)},getNodeKey:function(t){return il(this.nodeKey,t.data)},getNodePath:function(t){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in getNodePath");var e=this.store.getNode(t);if(!e)return[];for(var n=[e.data],r=e.parent;r&&r!==this.root;)n.push(r.data),r=r.parent;return n.reverse()},getCheckedNodes:function(t,e){return this.store.getCheckedNodes(t,e)},getCheckedKeys:function(t){return this.store.getCheckedKeys(t)},getCurrentNode:function(){var t=this.store.getCurrentNode();return t?t.data:null},getCurrentKey:function(){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in getCurrentKey");var t=this.getCurrentNode();return t?t[this.nodeKey]:null},setCheckedNodes:function(t,e){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedNodes");this.store.setCheckedNodes(t,e)},setCheckedKeys:function(t,e){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedKeys");this.store.setCheckedKeys(t,e)},setChecked:function(t,e,n){this.store.setChecked(t,e,n)},getHalfCheckedNodes:function(){return this.store.getHalfCheckedNodes()},getHalfCheckedKeys:function(){return this.store.getHalfCheckedKeys()},setCurrentNode:function(t){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentNode");this.store.setUserCurrentNode(t)},setCurrentKey:function(t){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentKey");this.store.setCurrentNodeKey(t)},getNode:function(t){return this.store.getNode(t)},remove:function(t){this.store.remove(t)},append:function(t,e){this.store.append(t,e)},insertBefore:function(t,e){this.store.insertBefore(t,e)},insertAfter:function(t,e){this.store.insertAfter(t,e)},handleNodeExpand:function(t,e,n){this.broadcast("ElTreeNode","tree-node-expand",e),this.$emit("node-expand",t,e,n)},updateKeyChildren:function(t,e){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in updateKeyChild");this.store.updateChildren(t,e)},initTabIndex:function(){this.treeItems=this.$el.querySelectorAll(".is-focusable[role=treeitem]"),this.checkboxItems=this.$el.querySelectorAll("input[type=checkbox]");var t=this.$el.querySelectorAll(".is-checked[role=treeitem]");if(t.length)return void t[0].setAttribute("tabindex",0);this.treeItems[0]&&this.treeItems[0].setAttribute("tabindex",0)},handleKeydown:function(t){var e=t.target;if(-1!==e.className.indexOf("el-tree-node")){var n=t.keyCode;this.treeItems=this.$el.querySelectorAll(".is-focusable[role=treeitem]");var r=this.treeItemArray.indexOf(e),i=void 0;[38,40].indexOf(n)>-1&&(t.preventDefault(),i=38===n?0!==r?r-1:0:r<this.treeItemArray.length-1?r+1:0,this.treeItemArray[i].focus()),[37,39].indexOf(n)>-1&&(t.preventDefault(),e.click());var o=e.querySelector('[type="checkbox"]');[13,32].indexOf(n)>-1&&o&&(t.preventDefault(),o.click())}}},created:function(){var t=this;this.isTree=!0,this.store=new gl({key:this.nodeKey,data:this.data,lazy:this.lazy,props:this.props,load:this.load,currentNodeKey:this.currentNodeKey,checkStrictly:this.checkStrictly,checkDescendants:this.checkDescendants,defaultCheckedKeys:this.defaultCheckedKeys,defaultExpandedKeys:this.defaultExpandedKeys,autoExpandParent:this.autoExpandParent,defaultExpandAll:this.defaultExpandAll,filterNodeMethod:this.filterNodeMethod}),this.root=this.store.root;var e=this.dragState;this.$on("tree-node-drag-start",function(n,r){if("function"==typeof t.allowDrag&&!t.allowDrag(r.node))return n.preventDefault(),!1;n.dataTransfer.effectAllowed="move";try{n.dataTransfer.setData("text/plain","")}catch(t){}e.draggingNode=r,t.$emit("node-drag-start",r.node,n)}),this.$on("tree-node-drag-over",function(n,r){var i=ol(n.target,"ElTreeNode"),o=e.dropNode;o&&o!==i&&Object(ae.removeClass)(o.$el,"is-drop-inner");var a=e.draggingNode;if(a&&i){var s=!0,u=!0,l=!0,c=!0;"function"==typeof t.allowDrop&&(s=t.allowDrop(a.node,i.node,"prev"),c=u=t.allowDrop(a.node,i.node,"inner"),l=t.allowDrop(a.node,i.node,"next")),n.dataTransfer.dropEffect=u?"move":"none",(s||u||l)&&o!==i&&(o&&t.$emit("node-drag-leave",a.node,o.node,n),t.$emit("node-drag-enter",a.node,i.node,n)),(s||u||l)&&(e.dropNode=i),i.node.nextSibling===a.node&&(l=!1),i.node.previousSibling===a.node&&(s=!1),i.node.contains(a.node,!1)&&(u=!1),(a.node===i.node||a.node.contains(i.node))&&(s=!1,u=!1,l=!1);var f=i.$el.getBoundingClientRect(),d=t.$el.getBoundingClientRect(),h=void 0,p=s?u?.25:l?.45:1:-1,g=l?u?.75:s?.55:0:1,m=-9999,v=n.clientY-f.top;h=v<f.height*p?"before":v>f.height*g?"after":u?"inner":"none";var y=i.$el.querySelector(".el-tree-node__expand-icon").getBoundingClientRect(),b=t.$refs.dropIndicator;"before"===h?m=y.top-d.top:"after"===h&&(m=y.bottom-d.top),b.style.top=m+"px",b.style.left=y.right-d.left+"px","inner"===h?Object(ae.addClass)(i.$el,"is-drop-inner"):Object(ae.removeClass)(i.$el,"is-drop-inner"),e.showDropIndicator="before"===h||"after"===h,e.allowDrop=e.showDropIndicator||c,e.dropType=h,t.$emit("node-drag-over",a.node,i.node,n)}}),this.$on("tree-node-drag-end",function(n){var r=e.draggingNode,i=e.dropType,o=e.dropNode;if(n.preventDefault(),n.dataTransfer.dropEffect="move",r&&o){var a={data:r.node.data};"none"!==i&&r.node.remove(),"before"===i?o.node.parent.insertBefore(a,o.node):"after"===i?o.node.parent.insertAfter(a,o.node):"inner"===i&&o.node.insertChild(a),"none"!==i&&t.store.registerNode(a),Object(ae.removeClass)(o.$el,"is-drop-inner"),t.$emit("node-drag-end",r.node,o.node,i,n),"none"!==i&&t.$emit("node-drop",r.node,o.node,i,n)}r&&!o&&t.$emit("node-drag-end",r.node,null,i,n),e.showDropIndicator=!1,e.draggingNode=null,e.dropNode=null,e.allowDrop=!0})},mounted:function(){this.initTabIndex(),this.$el.addEventListener("keydown",this.handleKeydown)},updated:function(){this.treeItems=this.$el.querySelectorAll("[role=treeitem]"),this.checkboxItems=this.$el.querySelectorAll("input[type=checkbox]")}},kl=xl,Sl=r(kl,tl,el,!1,null,null,null);Sl.options.__file="packages/tree/src/tree.vue";var Cl=Sl.exports;Cl.install=function(t){t.component(Cl.name,Cl)};var El=Cl,Tl=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"el-alert-fade"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"el-alert",class:[t.typeClass,t.center?"is-center":"","is-"+t.effect],attrs:{role:"alert"}},[t.showIcon?n("i",{staticClass:"el-alert__icon",class:[t.iconClass,t.isBigIcon]}):t._e(),n("div",{staticClass:"el-alert__content"},[t.title||t.$slots.title?n("span",{staticClass:"el-alert__title",class:[t.isBoldTitle]},[t._t("title",[t._v(t._s(t.title))])],2):t._e(),t.$slots.default&&!t.description?n("p",{staticClass:"el-alert__description"},[t._t("default")],2):t._e(),t.description&&!t.$slots.default?n("p",{staticClass:"el-alert__description"},[t._v(t._s(t.description))]):t._e(),n("i",{directives:[{name:"show",rawName:"v-show",value:t.closable,expression:"closable"}],staticClass:"el-alert__closebtn",class:{"is-customed":""!==t.closeText,"el-icon-close":""===t.closeText},on:{click:function(e){t.close()}}},[t._v(t._s(t.closeText))])])])])},Al=[];Tl._withStripped=!0;var Ol={success:"el-icon-success",warning:"el-icon-warning",error:"el-icon-error"},Pl={name:"ElAlert",props:{title:{type:String,default:""},description:{type:String,default:""},type:{type:String,default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,default:"light",validator:function(t){return-1!==["light","dark"].indexOf(t)}}},data:function(){return{visible:!0}},methods:{close:function(){this.visible=!1,this.$emit("close")}},computed:{typeClass:function(){return"el-alert--"+this.type},iconClass:function(){return Ol[this.type]||"el-icon-info"},isBigIcon:function(){return this.description||this.$slots.default?"is-big":""},isBoldTitle:function(){return this.description||this.$slots.default?"is-bold":""}}},Nl=Pl,Dl=r(Nl,Tl,Al,!1,null,null,null);Dl.options.__file="packages/alert/src/main.vue";var Ml=Dl.exports;Ml.install=function(t){t.component(Ml.name,Ml)};var Il=Ml,Rl=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"el-notification-fade"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],class:["el-notification",t.customClass,t.horizontalClass],style:t.positionStyle,attrs:{role:"alert"},on:{mouseenter:function(e){t.clearTimer()},mouseleave:function(e){t.startTimer()},click:t.click}},[t.type||t.iconClass?n("i",{staticClass:"el-notification__icon",class:[t.typeClass,t.iconClass]}):t._e(),n("div",{staticClass:"el-notification__group",class:{"is-with-icon":t.typeClass||t.iconClass}},[n("h2",{staticClass:"el-notification__title",domProps:{textContent:t._s(t.title)}}),n("div",{directives:[{name:"show",rawName:"v-show",value:t.message,expression:"message"}],staticClass:"el-notification__content"},[t._t("default",[t.dangerouslyUseHTMLString?n("p",{domProps:{innerHTML:t._s(t.message)}}):n("p",[t._v(t._s(t.message))])])],2),t.showClose?n("div",{staticClass:"el-notification__closeBtn el-icon-close",on:{click:function(e){return e.stopPropagation(),t.close(e)}}}):t._e()])])])},$l=[];Rl._withStripped=!0;var Ll={success:"success",info:"info",warning:"warning",error:"error"},jl={data:function(){return{visible:!1,title:"",message:"",duration:4500,type:"",showClose:!0,customClass:"",iconClass:"",onClose:null,onClick:null,closed:!1,verticalOffset:0,timer:null,dangerouslyUseHTMLString:!1,position:"top-right"}},computed:{typeClass:function(){return this.type&&Ll[this.type]?"el-icon-"+Ll[this.type]:""},horizontalClass:function(){return this.position.indexOf("right")>-1?"right":"left"},verticalProperty:function(){return/^top-/.test(this.position)?"top":"bottom"},positionStyle:function(){var t;return t={},t[this.verticalProperty]=this.verticalOffset+"px",t}},watch:{closed:function(t){t&&(this.visible=!1,this.$el.addEventListener("transitionend",this.destroyElement))}},methods:{destroyElement:function(){this.$el.removeEventListener("transitionend",this.destroyElement),this.$destroy(!0),this.$el.parentNode.removeChild(this.$el)},click:function(){"function"==typeof this.onClick&&this.onClick()},close:function(){this.closed=!0,"function"==typeof this.onClose&&this.onClose()},clearTimer:function(){clearTimeout(this.timer)},startTimer:function(){var t=this;this.duration>0&&(this.timer=setTimeout(function(){t.closed||t.close()},this.duration))},keydown:function(t){46===t.keyCode||8===t.keyCode?this.clearTimer():27===t.keyCode?this.closed||this.close():this.startTimer()}},mounted:function(){var t=this;this.duration>0&&(this.timer=setTimeout(function(){t.closed||t.close()},this.duration)),document.addEventListener("keydown",this.keydown)},beforeDestroy:function(){document.removeEventListener("keydown",this.keydown)}},Fl=jl,Bl=r(Fl,Rl,$l,!1,null,null,null);Bl.options.__file="packages/notification/src/main.vue";var Vl=Bl.exports,zl=ai.a.extend(Vl),Ul=void 0,Hl=[],ql=1,Wl=function t(e){if(!ai.a.prototype.$isServer){e=Ue()({},e);var n=e.onClose,r="notification_"+ql++,i=e.position||"top-right";e.onClose=function(){t.close(r,n)},Ul=new zl({data:e}),Object(Ms.isVNode)(e.message)&&(Ul.$slots.default=[e.message],e.message="REPLACED_BY_VNODE"),Ul.id=r,Ul.$mount(),document.body.appendChild(Ul.$el),Ul.visible=!0,Ul.dom=Ul.$el,Ul.dom.style.zIndex=K.PopupManager.nextZIndex();var o=e.offset||0;return Hl.filter(function(t){return t.position===i}).forEach(function(t){o+=t.$el.offsetHeight+16}),o+=16,Ul.verticalOffset=o,Hl.push(Ul),Ul}};["success","warning","info","error"].forEach(function(t){Wl[t]=function(e){return("string"==typeof e||Object(Ms.isVNode)(e))&&(e={message:e}),e.type=t,Wl(e)}}),Wl.close=function(t,e){var n=-1,r=Hl.length,i=Hl.filter(function(e,r){return e.id===t&&(n=r,!0)})[0];if(i&&("function"==typeof e&&e(i),Hl.splice(n,1),!(r<=1)))for(var o=i.position,a=i.dom.offsetHeight,s=n;s<r-1;s++)Hl[s].position===o&&(Hl[s].dom.style[i.verticalProperty]=parseInt(Hl[s].dom.style[i.verticalProperty],10)-a-16+"px")},Wl.closeAll=function(){for(var t=Hl.length-1;t>=0;t--)Hl[t].close()};var Gl=Wl,Yl=Gl,Kl=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-slider",class:{"is-vertical":t.vertical,"el-slider--with-input":t.showInput},attrs:{role:"slider","aria-valuemin":t.min,"aria-valuemax":t.max,"aria-orientation":t.vertical?"vertical":"horizontal","aria-disabled":t.sliderDisabled}},[t.showInput&&!t.range?n("el-input-number",{ref:"input",staticClass:"el-slider__input",attrs:{step:t.step,disabled:t.sliderDisabled,controls:t.showInputControls,min:t.min,max:t.max,debounce:t.debounce,size:t.inputSize},on:{change:t.emitChange},model:{value:t.firstValue,callback:function(e){t.firstValue=e},expression:"firstValue"}}):t._e(),n("div",{ref:"slider",staticClass:"el-slider__runway",class:{"show-input":t.showInput,disabled:t.sliderDisabled},style:t.runwayStyle,on:{click:t.onSliderClick}},[n("div",{staticClass:"el-slider__bar",style:t.barStyle}),n("slider-button",{ref:"button1",attrs:{vertical:t.vertical,"tooltip-class":t.tooltipClass},model:{value:t.firstValue,callback:function(e){t.firstValue=e},expression:"firstValue"}}),t.range?n("slider-button",{ref:"button2",attrs:{vertical:t.vertical,"tooltip-class":t.tooltipClass},model:{value:t.secondValue,callback:function(e){t.secondValue=e},expression:"secondValue"}}):t._e(),t._l(t.stops,function(e,r){return t.showStops?n("div",{key:r,staticClass:"el-slider__stop",style:t.getStopStyle(e)}):t._e()}),t.markList.length>0?[n("div",t._l(t.markList,function(e,r){return n("div",{key:r,staticClass:"el-slider__stop el-slider__marks-stop",style:t.getStopStyle(e.position)})}),0),n("div",{staticClass:"el-slider__marks"},t._l(t.markList,function(e,r){return n("slider-marker",{key:r,style:t.getStopStyle(e.position),attrs:{mark:e.mark}})}),1)]:t._e()],2)],1)},Xl=[];Kl._withStripped=!0;var Jl=n(42),Ql=n.n(Jl),Zl=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"button",staticClass:"el-slider__button-wrapper",class:{hover:t.hovering,dragging:t.dragging},style:t.wrapperStyle,attrs:{tabindex:"0"},on:{mouseenter:t.handleMouseEnter,mouseleave:t.handleMouseLeave,mousedown:t.onButtonDown,touchstart:t.onButtonDown,focus:t.handleMouseEnter,blur:t.handleMouseLeave,keydown:[function(e){return"button"in e||!t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])?"button"in e&&0!==e.button?null:t.onLeftKeyDown(e):null},function(e){return"button"in e||!t._k(e.keyCode,"right",39,e.key,["Right","ArrowRight"])?"button"in e&&2!==e.button?null:t.onRightKeyDown(e):null},function(e){return"button"in e||!t._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"])?(e.preventDefault(),t.onLeftKeyDown(e)):null},function(e){return"button"in e||!t._k(e.keyCode,"up",38,e.key,["Up","ArrowUp"])?(e.preventDefault(),t.onRightKeyDown(e)):null}]}},[n("el-tooltip",{ref:"tooltip",attrs:{placement:"top","popper-class":t.tooltipClass,disabled:!t.showTooltip}},[n("span",{attrs:{slot:"content"},slot:"content"},[t._v(t._s(t.formatValue))]),n("div",{staticClass:"el-slider__button",class:{hover:t.hovering,dragging:t.dragging}})])],1)},tc=[];Zl._withStripped=!0;var ec={name:"ElSliderButton",components:{ElTooltip:Se.a},props:{value:{type:Number,default:0},vertical:{type:Boolean,default:!1},tooltipClass:String},data:function(){return{hovering:!1,dragging:!1,isClick:!1,startX:0,currentX:0,startY:0,currentY:0,startPosition:0,newPosition:null,oldValue:this.value}},computed:{disabled:function(){return this.$parent.sliderDisabled},max:function(){return this.$parent.max},min:function(){return this.$parent.min},step:function(){return this.$parent.step},showTooltip:function(){return this.$parent.showTooltip},precision:function(){return this.$parent.precision},currentPosition:function(){return(this.value-this.min)/(this.max-this.min)*100+"%"},enableFormat:function(){return this.$parent.formatTooltip instanceof Function},formatValue:function(){return this.enableFormat&&this.$parent.formatTooltip(this.value)||this.value},wrapperStyle:function(){return this.vertical?{bottom:this.currentPosition}:{left:this.currentPosition}}},watch:{dragging:function(t){this.$parent.dragging=t}},methods:{displayTooltip:function(){this.$refs.tooltip&&(this.$refs.tooltip.showPopper=!0)},hideTooltip:function(){this.$refs.tooltip&&(this.$refs.tooltip.showPopper=!1)},handleMouseEnter:function(){this.hovering=!0,this.displayTooltip()},handleMouseLeave:function(){this.hovering=!1,this.hideTooltip()},onButtonDown:function(t){this.disabled||(t.preventDefault(),this.onDragStart(t),window.addEventListener("mousemove",this.onDragging),window.addEventListener("touchmove",this.onDragging),window.addEventListener("mouseup",this.onDragEnd),window.addEventListener("touchend",this.onDragEnd),window.addEventListener("contextmenu",this.onDragEnd))},onLeftKeyDown:function(){this.disabled||(this.newPosition=parseFloat(this.currentPosition)-this.step/(this.max-this.min)*100,this.setPosition(this.newPosition),this.$parent.emitChange())},onRightKeyDown:function(){this.disabled||(this.newPosition=parseFloat(this.currentPosition)+this.step/(this.max-this.min)*100,this.setPosition(this.newPosition),this.$parent.emitChange())},onDragStart:function(t){this.dragging=!0,this.isClick=!0,"touchstart"===t.type&&(t.clientY=t.touches[0].clientY,t.clientX=t.touches[0].clientX),this.vertical?this.startY=t.clientY:this.startX=t.clientX,this.startPosition=parseFloat(this.currentPosition),this.newPosition=this.startPosition},onDragging:function(t){if(this.dragging){this.isClick=!1,this.displayTooltip(),this.$parent.resetSize();var e=0;"touchmove"===t.type&&(t.clientY=t.touches[0].clientY,t.clientX=t.touches[0].clientX),this.vertical?(this.currentY=t.clientY,e=(this.startY-this.currentY)/this.$parent.sliderSize*100):(this.currentX=t.clientX,e=(this.currentX-this.startX)/this.$parent.sliderSize*100),this.newPosition=this.startPosition+e,this.setPosition(this.newPosition)}},onDragEnd:function(){var t=this;this.dragging&&(setTimeout(function(){t.dragging=!1,t.hideTooltip(),t.isClick||(t.setPosition(t.newPosition),t.$parent.emitChange())},0),window.removeEventListener("mousemove",this.onDragging),window.removeEventListener("touchmove",this.onDragging),window.removeEventListener("mouseup",this.onDragEnd),window.removeEventListener("touchend",this.onDragEnd),window.removeEventListener("contextmenu",this.onDragEnd))},setPosition:function(t){var e=this;if(null!==t&&!isNaN(t)){t<0?t=0:t>100&&(t=100);var n=100/((this.max-this.min)/this.step),r=Math.round(t/n),i=r*n*(this.max-this.min)*.01+this.min;i=parseFloat(i.toFixed(this.precision)),this.$emit("input",i),this.$nextTick(function(){e.displayTooltip(),e.$refs.tooltip&&e.$refs.tooltip.updatePopper()}),this.dragging||this.value===this.oldValue||(this.oldValue=this.value)}}}},nc=ec,rc=r(nc,Zl,tc,!1,null,null,null);rc.options.__file="packages/slider/src/button.vue";var ic=rc.exports,oc={name:"ElMarker",props:{mark:{type:[String,Object]}},render:function(){var t=arguments[0],e="string"==typeof this.mark?this.mark:this.mark.label;return t("div",{class:"el-slider__marks-text",style:this.mark.style||{}},[e])}},ac={name:"ElSlider",mixins:[tt.a],inject:{elForm:{default:""}},props:{min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},value:{type:[Number,Array],default:0},showInput:{type:Boolean,default:!1},showInputControls:{type:Boolean,default:!0},inputSize:{type:String,default:"small"},showStops:{type:Boolean,default:!1},showTooltip:{type:Boolean,default:!0},formatTooltip:Function,disabled:{type:Boolean,default:!1},range:{type:Boolean,default:!1},vertical:{type:Boolean,default:!1},height:{type:String},debounce:{type:Number,default:300},label:{type:String},tooltipClass:String,marks:Object},components:{ElInputNumber:Ql.a,SliderButton:ic,SliderMarker:oc},data:function(){return{firstValue:null,secondValue:null,oldValue:null,dragging:!1,sliderSize:1}},watch:{value:function(t,e){this.dragging||Array.isArray(t)&&Array.isArray(e)&&t.every(function(t,n){return t===e[n]})||this.setValues()},dragging:function(t){t||this.setValues()},firstValue:function(t){this.range?this.$emit("input",[this.minValue,this.maxValue]):this.$emit("input",t)},secondValue:function(){this.range&&this.$emit("input",[this.minValue,this.maxValue])},min:function(){this.setValues()},max:function(){this.setValues()}},methods:{valueChanged:function(){var t=this;return this.range?![this.minValue,this.maxValue].every(function(e,n){return e===t.oldValue[n]}):this.value!==this.oldValue},setValues:function(){if(this.min>this.max)return void console.error("[Element Error][Slider]min should not be greater than max.");var t=this.value;this.range&&Array.isArray(t)?t[1]<this.min?this.$emit("input",[this.min,this.min]):t[0]>this.max?this.$emit("input",[this.max,this.max]):t[0]<this.min?this.$emit("input",[this.min,t[1]]):t[1]>this.max?this.$emit("input",[t[0],this.max]):(this.firstValue=t[0],this.secondValue=t[1],this.valueChanged()&&(this.dispatch("ElFormItem","el.form.change",[this.minValue,this.maxValue]),this.oldValue=t.slice())):this.range||"number"!=typeof t||isNaN(t)||(t<this.min?this.$emit("input",this.min):t>this.max?this.$emit("input",this.max):(this.firstValue=t,this.valueChanged()&&(this.dispatch("ElFormItem","el.form.change",t),this.oldValue=t)))},setPosition:function(t){var e=this.min+t*(this.max-this.min)/100;if(!this.range)return void this.$refs.button1.setPosition(t);var n=void 0;n=Math.abs(this.minValue-e)<Math.abs(this.maxValue-e)?this.firstValue<this.secondValue?"button1":"button2":this.firstValue>this.secondValue?"button1":"button2",this.$refs[n].setPosition(t)},onSliderClick:function(t){if(!this.sliderDisabled&&!this.dragging){if(this.resetSize(),this.vertical){var e=this.$refs.slider.getBoundingClientRect().bottom;this.setPosition((e-t.clientY)/this.sliderSize*100)}else{var n=this.$refs.slider.getBoundingClientRect().left;this.setPosition((t.clientX-n)/this.sliderSize*100)}this.emitChange()}},resetSize:function(){this.$refs.slider&&(this.sliderSize=this.$refs.slider["client"+(this.vertical?"Height":"Width")])},emitChange:function(){var t=this;this.$nextTick(function(){t.$emit("change",t.range?[t.minValue,t.maxValue]:t.value)})},getStopStyle:function(t){return this.vertical?{bottom:t+"%"}:{left:t+"%"}}},computed:{stops:function(){var t=this;if(!this.showStops||this.min>this.max)return[];if(0===this.step)return[];for(var e=(this.max-this.min)/this.step,n=100*this.step/(this.max-this.min),r=[],i=1;i<e;i++)r.push(i*n);return this.range?r.filter(function(e){return e<100*(t.minValue-t.min)/(t.max-t.min)||e>100*(t.maxValue-t.min)/(t.max-t.min)}):r.filter(function(e){return e>100*(t.firstValue-t.min)/(t.max-t.min)})},markList:function(){var t=this;return this.marks?Object.keys(this.marks).map(parseFloat).sort(function(t,e){return t-e}).filter(function(e){return e<=t.max&&e>=t.min}).map(function(e){return{point:e,position:100*(e-t.min)/(t.max-t.min),mark:t.marks[e]}}):[]},minValue:function(){return Math.min(this.firstValue,this.secondValue)},maxValue:function(){return Math.max(this.firstValue,this.secondValue)},barSize:function(){return this.range?100*(this.maxValue-this.minValue)/(this.max-this.min)+"%":100*(this.firstValue-this.min)/(this.max-this.min)+"%"},barStart:function(){return this.range?100*(this.minValue-this.min)/(this.max-this.min)+"%":"0%"},precision:function(){var t=[this.min,this.max,this.step].map(function(t){var e=(""+t).split(".")[1];return e?e.length:0});return Math.max.apply(null,t)},runwayStyle:function(){return this.vertical?{height:this.height}:{}},barStyle:function(){return this.vertical?{height:this.barSize,bottom:this.barStart}:{width:this.barSize,left:this.barStart}},sliderDisabled:function(){return this.disabled||(this.elForm||{}).disabled}},mounted:function(){var t=void 0;this.range?(Array.isArray(this.value)?(this.firstValue=Math.max(this.min,this.value[0]),this.secondValue=Math.min(this.max,this.value[1])):(this.firstValue=this.min,this.secondValue=this.max),this.oldValue=[this.firstValue,this.secondValue],t=this.firstValue+"-"+this.secondValue):("number"!=typeof this.value||isNaN(this.value)?this.firstValue=this.min:this.firstValue=Math.min(this.max,Math.max(this.min,this.value)),this.oldValue=this.firstValue,t=this.firstValue),this.$el.setAttribute("aria-valuetext",t),this.$el.setAttribute("aria-label",this.label?this.label:"slider between "+this.min+" and "+this.max),this.resetSize(),window.addEventListener("resize",this.resetSize)},beforeDestroy:function(){window.removeEventListener("resize",this.resetSize)}},sc=ac,uc=r(sc,Kl,Xl,!1,null,null,null);uc.options.__file="packages/slider/src/main.vue";var lc=uc.exports;lc.install=function(t){t.component(lc.name,lc)};var cc=lc,fc=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"el-loading-fade"},on:{"after-leave":t.handleAfterLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"el-loading-mask",class:[t.customClass,{"is-fullscreen":t.fullscreen}],style:{backgroundColor:t.background||""}},[n("div",{staticClass:"el-loading-spinner"},[t.spinner?n("i",{class:t.spinner}):n("svg",{staticClass:"circular",attrs:{viewBox:"25 25 50 50"}},[n("circle",{staticClass:"path",attrs:{cx:"50",cy:"50",r:"20",fill:"none"}})]),t.text?n("p",{staticClass:"el-loading-text"},[t._v(t._s(t.text))]):t._e()])])])},dc=[];fc._withStripped=!0;var hc={data:function(){return{text:null,spinner:null,background:null,fullscreen:!0,visible:!1,customClass:""}},methods:{handleAfterLeave:function(){this.$emit("after-leave")},setText:function(t){this.text=t}}},pc=hc,gc=r(pc,fc,dc,!1,null,null,null);gc.options.__file="packages/loading/src/loading.vue";var mc=gc.exports,vc=n(33),yc=n.n(vc),bc=ai.a.extend(mc),_c={};_c.install=function(t){if(!t.prototype.$isServer){var e=function(e,r){r.value?t.nextTick(function(){r.modifiers.fullscreen?(e.originalPosition=Object(ae.getStyle)(document.body,"position"),e.originalOverflow=Object(ae.getStyle)(document.body,"overflow"),e.maskStyle.zIndex=K.PopupManager.nextZIndex(),Object(ae.addClass)(e.mask,"is-fullscreen"),n(document.body,e,r)):(Object(ae.removeClass)(e.mask,"is-fullscreen"),r.modifiers.body?(e.originalPosition=Object(ae.getStyle)(document.body,"position"),["top","left"].forEach(function(t){var n="top"===t?"scrollTop":"scrollLeft";e.maskStyle[t]=e.getBoundingClientRect()[t]+document.body[n]+document.documentElement[n]-parseInt(Object(ae.getStyle)(document.body,"margin-"+t),10)+"px"}),["height","width"].forEach(function(t){e.maskStyle[t]=e.getBoundingClientRect()[t]+"px"}),n(document.body,e,r)):(e.originalPosition=Object(ae.getStyle)(e,"position"),n(e,e,r)))}):(yc()(e.instance,function(t){if(e.instance.hiding){e.domVisible=!1;var n=r.modifiers.fullscreen||r.modifiers.body?document.body:e;Object(ae.removeClass)(n,"el-loading-parent--relative"),Object(ae.removeClass)(n,"el-loading-parent--hidden"),e.instance.hiding=!1}},300,!0),e.instance.visible=!1,e.instance.hiding=!0)},n=function(e,n,r){n.domVisible||"none"===Object(ae.getStyle)(n,"display")||"hidden"===Object(ae.getStyle)(n,"visibility")?n.domVisible&&!0===n.instance.hiding&&(n.instance.visible=!0,n.instance.hiding=!1):(Object.keys(n.maskStyle).forEach(function(t){n.mask.style[t]=n.maskStyle[t]}),"absolute"!==n.originalPosition&&"fixed"!==n.originalPosition&&"sticky"!==n.originalPosition&&Object(ae.addClass)(e,"el-loading-parent--relative"),r.modifiers.fullscreen&&r.modifiers.lock&&Object(ae.addClass)(e,"el-loading-parent--hidden"),n.domVisible=!0,e.appendChild(n.mask),t.nextTick(function(){n.instance.hiding?n.instance.$emit("after-leave"):n.instance.visible=!0}),n.domInserted=!0)};t.directive("loading",{bind:function(t,n,r){var i=t.getAttribute("element-loading-text"),o=t.getAttribute("element-loading-spinner"),a=t.getAttribute("element-loading-background"),s=t.getAttribute("element-loading-custom-class"),u=r.context,l=new bc({el:document.createElement("div"),data:{text:u&&u[i]||i,spinner:u&&u[o]||o,background:u&&u[a]||a,customClass:u&&u[s]||s,fullscreen:!!n.modifiers.fullscreen}});t.instance=l,t.mask=l.$el,t.maskStyle={},n.value&&e(t,n)},update:function(t,n){t.instance.setText(t.getAttribute("element-loading-text")),n.oldValue!==n.value&&e(t,n)},unbind:function(t,n){t.domInserted&&(t.mask&&t.mask.parentNode&&t.mask.parentNode.removeChild(t.mask),e(t,{value:!1,modifiers:n.modifiers})),t.instance&&t.instance.$destroy()}})}};var wc=_c,xc=ai.a.extend(mc),kc={text:null,fullscreen:!0,body:!1,lock:!1,customClass:""},Sc=void 0;xc.prototype.originalPosition="",xc.prototype.originalOverflow="",xc.prototype.close=function(){var t=this;this.fullscreen&&(Sc=void 0),yc()(this,function(e){var n=t.fullscreen||t.body?document.body:t.target;Object(ae.removeClass)(n,"el-loading-parent--relative"),Object(ae.removeClass)(n,"el-loading-parent--hidden"),t.$el&&t.$el.parentNode&&t.$el.parentNode.removeChild(t.$el),t.$destroy()},300),this.visible=!1};var Cc=function(t,e,n){var r={};t.fullscreen?(n.originalPosition=Object(ae.getStyle)(document.body,"position"),n.originalOverflow=Object(ae.getStyle)(document.body,"overflow"),r.zIndex=K.PopupManager.nextZIndex()):t.body?(n.originalPosition=Object(ae.getStyle)(document.body,"position"),["top","left"].forEach(function(e){var n="top"===e?"scrollTop":"scrollLeft";r[e]=t.target.getBoundingClientRect()[e]+document.body[n]+document.documentElement[n]+"px"}),["height","width"].forEach(function(e){r[e]=t.target.getBoundingClientRect()[e]+"px"})):n.originalPosition=Object(ae.getStyle)(e,"position"),Object.keys(r).forEach(function(t){n.$el.style[t]=r[t]})},Ec=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!ai.a.prototype.$isServer){if(t=Ue()({},kc,t),"string"==typeof t.target&&(t.target=document.querySelector(t.target)),t.target=t.target||document.body,t.target!==document.body?t.fullscreen=!1:t.body=!0,t.fullscreen&&Sc)return Sc;var e=t.body?document.body:t.target,n=new xc({el:document.createElement("div"),data:t});return Cc(t,e,n),"absolute"!==n.originalPosition&&"fixed"!==n.originalPosition&&"sticky"!==n.originalPosition&&Object(ae.addClass)(e,"el-loading-parent--relative"),t.fullscreen&&t.lock&&Object(ae.addClass)(e,"el-loading-parent--hidden"),e.appendChild(n.$el),ai.a.nextTick(function(){n.visible=!0}),t.fullscreen&&(Sc=n),n}},Tc=Ec,Ac={install:function(t){t.use(wc),t.prototype.$loading=Tc},directive:wc,service:Tc},Oc=function(){var t=this,e=t.$createElement;return(t._self._c||e)("i",{class:"el-icon-"+t.name})},Pc=[];Oc._withStripped=!0;var Nc={name:"ElIcon",props:{name:String}},Dc=Nc,Mc=r(Dc,Oc,Pc,!1,null,null,null);Mc.options.__file="packages/icon/src/icon.vue";var Ic=Mc.exports;Ic.install=function(t){t.component(Ic.name,Ic)};var Rc=Ic,$c={name:"ElRow",componentName:"ElRow",props:{tag:{type:String,default:"div"},gutter:Number,type:String,justify:{type:String,default:"start"},align:String},computed:{style:function(){var t={};return this.gutter&&(t.marginLeft="-"+this.gutter/2+"px",t.marginRight=t.marginLeft),t}},render:function(t){return t(this.tag,{class:["el-row","start"!==this.justify?"is-justify-"+this.justify:"",this.align?"is-align-"+this.align:"",{"el-row--flex":"flex"===this.type}],style:this.style},this.$slots.default)}};$c.install=function(t){t.component($c.name,$c)};var Lc=$c,jc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fc={name:"ElCol",props:{span:{type:Number,default:24},tag:{type:String,default:"div"},offset:Number,pull:Number,push:Number,xs:[Number,Object],sm:[Number,Object],md:[Number,Object],lg:[Number,Object],xl:[Number,Object]},computed:{gutter:function(){for(var t=this.$parent;t&&"ElRow"!==t.$options.componentName;)t=t.$parent;return t?t.gutter:0}},render:function(t){var e=this,n=[],r={};return this.gutter&&(r.paddingLeft=this.gutter/2+"px",r.paddingRight=r.paddingLeft),["span","offset","pull","push"].forEach(function(t){(e[t]||0===e[t])&&n.push("span"!==t?"el-col-"+t+"-"+e[t]:"el-col-"+e[t])}),["xs","sm","md","lg","xl"].forEach(function(t){if("number"==typeof e[t])n.push("el-col-"+t+"-"+e[t]);else if("object"===jc(e[t])){var r=e[t];Object.keys(r).forEach(function(e){n.push("span"!==e?"el-col-"+t+"-"+e+"-"+r[e]:"el-col-"+t+"-"+r[e])})}}),t(this.tag,{class:["el-col",n],style:r},this.$slots.default)}};Fc.install=function(t){t.component(Fc.name,Fc)};var Bc=Fc,Vc=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition-group",{class:["el-upload-list","el-upload-list--"+t.listType,{"is-disabled":t.disabled}],attrs:{tag:"ul",name:"el-list"}},t._l(t.files,function(e){return n("li",{key:e.uid,class:["el-upload-list__item","is-"+e.status,t.focusing?"focusing":""],attrs:{tabindex:"0"},on:{keydown:function(n){if(!("button"in n)&&t._k(n.keyCode,"delete",[8,46],n.key,["Backspace","Delete","Del"]))return null;!t.disabled&&t.$emit("remove",e)},focus:function(e){t.focusing=!0},blur:function(e){t.focusing=!1},click:function(e){t.focusing=!1}}},[t._t("default",["uploading"!==e.status&&["picture-card","picture"].indexOf(t.listType)>-1?n("img",{staticClass:"el-upload-list__item-thumbnail",attrs:{src:e.url,alt:""}}):t._e(),n("a",{staticClass:"el-upload-list__item-name",on:{click:function(n){t.handleClick(e)}}},[n("i",{staticClass:"el-icon-document"}),t._v(t._s(e.name)+"\n ")]),n("label",{staticClass:"el-upload-list__item-status-label"},[n("i",{class:{"el-icon-upload-success":!0,"el-icon-circle-check":"text"===t.listType,"el-icon-check":["picture-card","picture"].indexOf(t.listType)>-1}})]),t.disabled?t._e():n("i",{staticClass:"el-icon-close",on:{click:function(n){t.$emit("remove",e)}}}),t.disabled?t._e():n("i",{staticClass:"el-icon-close-tip"},[t._v(t._s(t.t("el.upload.deleteTip")))]),"uploading"===e.status?n("el-progress",{attrs:{type:"picture-card"===t.listType?"circle":"line","stroke-width":"picture-card"===t.listType?6:2,percentage:t.parsePercentage(e.percentage)}}):t._e(),"picture-card"===t.listType?n("span",{staticClass:"el-upload-list__item-actions"},[t.handlePreview&&"picture-card"===t.listType?n("span",{staticClass:"el-upload-list__item-preview",on:{click:function(n){t.handlePreview(e)}}},[n("i",{staticClass:"el-icon-zoom-in"})]):t._e(),t.disabled?t._e():n("span",{staticClass:"el-upload-list__item-delete",on:{click:function(n){t.$emit("remove",e)}}},[n("i",{staticClass:"el-icon-delete"})])]):t._e()],{file:e})],2)}),0)},zc=[];Vc._withStripped=!0;var Uc=n(34),Hc=n.n(Uc),qc={name:"ElUploadList",mixins:[U.a],data:function(){return{focusing:!1}},components:{ElProgress:Hc.a},props:{files:{type:Array,default:function(){return[]}},disabled:{type:Boolean,default:!1},handlePreview:Function,listType:String},methods:{parsePercentage:function(t){return parseInt(t,10)},handleClick:function(t){this.handlePreview&&this.handlePreview(t)}}},Wc=qc,Gc=r(Wc,Vc,zc,!1,null,null,null);Gc.options.__file="packages/upload/src/upload-list.vue";var Yc=Gc.exports,Kc=n(24),Xc=n.n(Kc),Jc=function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"el-upload-dragger",class:{"is-dragover":t.dragover},on:{drop:function(e){return e.preventDefault(),t.onDrop(e)},dragover:function(e){return e.preventDefault(),t.onDragover(e)},dragleave:function(e){e.preventDefault(),t.dragover=!1}}},[t._t("default")],2)},Qc=[];Jc._withStripped=!0;var Zc={name:"ElUploadDrag",props:{disabled:Boolean},inject:{uploader:{default:""}},data:function(){return{dragover:!1}},methods:{onDragover:function(){this.disabled||(this.dragover=!0)},onDrop:function(t){if(!this.disabled&&this.uploader){var e=this.uploader.accept;if(this.dragover=!1,!e)return void this.$emit("file",t.dataTransfer.files);this.$emit("file",[].slice.call(t.dataTransfer.files).filter(function(t){var n=t.type,r=t.name,i=r.indexOf(".")>-1?"."+r.split(".").pop():"",o=n.replace(/\/.*$/,"");return e.split(",").map(function(t){return t.trim()}).filter(function(t){return t}).some(function(t){return/\..+$/.test(t)?i===t:/\/\*$/.test(t)?o===t.replace(/\/\*$/,""):!!/^[^\/]+\/[^\/]+$/.test(t)&&n===t})}))}}}},tf=Zc,ef=r(tf,Jc,Qc,!1,null,null,null);ef.options.__file="packages/upload/src/upload-dragger.vue";var nf=ef.exports,rf={inject:["uploader"],components:{UploadDragger:nf},props:{type:String,action:{type:String,required:!0},name:{type:String,default:"file"},data:Object,headers:Object,withCredentials:Boolean,multiple:Boolean,accept:String,onStart:Function,onProgress:Function,onSuccess:Function,onError:Function,beforeUpload:Function,drag:Boolean,onPreview:{type:Function,default:function(){}},onRemove:{type:Function,default:function(){}},fileList:Array,autoUpload:Boolean,listType:String,httpRequest:{type:Function,default:S},disabled:Boolean,limit:Number,onExceed:Function},data:function(){return{mouseover:!1,reqs:{}}},methods:{isImage:function(t){return-1!==t.indexOf("image")},handleChange:function(t){var e=t.target.files;e&&this.uploadFiles(e)},uploadFiles:function(t){var e=this;if(this.limit&&this.fileList.length+t.length>this.limit)return void(this.onExceed&&this.onExceed(t,this.fileList));var n=Array.prototype.slice.call(t);this.multiple||(n=n.slice(0,1)),0!==n.length&&n.forEach(function(t){e.onStart(t),e.autoUpload&&e.upload(t)})},upload:function(t){var e=this;if(this.$refs.input.value=null,!this.beforeUpload)return this.post(t);var n=this.beforeUpload(t);n&&n.then?n.then(function(n){var r=Object.prototype.toString.call(n);if("[object File]"===r||"[object Blob]"===r){"[object Blob]"===r&&(n=new File([n],t.name,{type:t.type}));for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);e.post(n)}else e.post(t)},function(){e.onRemove(null,t)}):!1!==n?this.post(t):this.onRemove(null,t)},abort:function(t){var e=this.reqs;if(t){var n=t;t.uid&&(n=t.uid),e[n]&&e[n].abort()}else Object.keys(e).forEach(function(t){e[t]&&e[t].abort(),delete e[t]})},post:function(t){var e=this,n=t.uid,r={headers:this.headers,withCredentials:this.withCredentials,file:t,data:this.data,filename:this.name,action:this.action,onProgress:function(n){e.onProgress(n,t)},onSuccess:function(r){e.onSuccess(r,t),delete e.reqs[n]},onError:function(r){e.onError(r,t),delete e.reqs[n]}},i=this.httpRequest(r);this.reqs[n]=i,i&&i.then&&i.then(r.onSuccess,r.onError)},handleClick:function(){this.disabled||(this.$refs.input.value=null,this.$refs.input.click())},handleKeydown:function(t){t.target===t.currentTarget&&(13!==t.keyCode&&32!==t.keyCode||this.handleClick())}},render:function(t){var e=this.handleClick,n=this.drag,r=this.name,i=this.handleChange,o=this.multiple,a=this.accept,s=this.listType,u=this.uploadFiles,l=this.disabled,c=this.handleKeydown,f={class:{"el-upload":!0},on:{click:e,keydown:c}};return f.class["el-upload--"+s]=!0,t("div",Xc()([f,{attrs:{tabindex:"0"}}]),[n?t("upload-dragger",{attrs:{disabled:l},on:{file:u}},[this.$slots.default]):this.$slots.default,t("input",{class:"el-upload__input",attrs:{type:"file",name:r,multiple:o,accept:a},ref:"input",on:{change:i}})])}},of=rf,af=r(of,void 0,void 0,!1,null,null,null);af.options.__file="packages/upload/src/upload.vue";var sf=af.exports,uf={name:"ElUpload",mixins:[Q.a],components:{ElProgress:Hc.a,UploadList:Yc,Upload:sf},provide:function(){return{uploader:this}},inject:{elForm:{default:""}},props:{action:{type:String,required:!0},headers:{type:Object,default:function(){return{}}},data:Object,multiple:Boolean,name:{type:String,default:"file"},drag:Boolean,dragger:Boolean,withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:String,type:{type:String,default:"select"},beforeUpload:Function,beforeRemove:Function,onRemove:{type:Function,default:C},onChange:{type:Function,default:C},onPreview:{type:Function},onSuccess:{type:Function,default:C},onProgress:{type:Function,default:C},onError:{type:Function,default:C},fileList:{type:Array,default:function(){return[]}},autoUpload:{type:Boolean,default:!0},listType:{type:String,default:"text"},httpRequest:Function,disabled:Boolean,limit:Number,onExceed:{type:Function,default:C}},data:function(){return{uploadFiles:[],dragOver:!1,draging:!1,tempIndex:1}},computed:{uploadDisabled:function(){return this.disabled||(this.elForm||{}).disabled}},watch:{listType:function(t){"picture-card"!==t&&"picture"!==t||(this.uploadFiles=this.uploadFiles.map(function(t){if(!t.url&&t.raw)try{t.url=URL.createObjectURL(t.raw)}catch(t){console.error("[Element Error][Upload]",t)}return t}))},fileList:{immediate:!0,handler:function(t){var e=this;this.uploadFiles=t.map(function(t){return t.uid=t.uid||Date.now()+e.tempIndex++,t.status=t.status||"success",t})}}},methods:{handleStart:function(t){t.uid=Date.now()+this.tempIndex++;var e={status:"ready",name:t.name,size:t.size,percentage:0,uid:t.uid,raw:t};if("picture-card"===this.listType||"picture"===this.listType)try{e.url=URL.createObjectURL(t)}catch(t){return void console.error("[Element Error][Upload]",t)}this.uploadFiles.push(e),this.onChange(e,this.uploadFiles)},handleProgress:function(t,e){var n=this.getFile(e);this.onProgress(t,n,this.uploadFiles),n.status="uploading",n.percentage=t.percent||0},handleSuccess:function(t,e){var n=this.getFile(e);n&&(n.status="success",n.response=t,this.onSuccess(t,n,this.uploadFiles),this.onChange(n,this.uploadFiles))},handleError:function(t,e){var n=this.getFile(e),r=this.uploadFiles;n.status="fail",r.splice(r.indexOf(n),1),this.onError(t,n,this.uploadFiles),this.onChange(n,this.uploadFiles)},handleRemove:function(t,e){var n=this;e&&(t=this.getFile(e));var r=function(){n.abort(t);var e=n.uploadFiles;e.splice(e.indexOf(t),1),n.onRemove(t,e)};if(this.beforeRemove){if("function"==typeof this.beforeRemove){var i=this.beforeRemove(t,this.uploadFiles);i&&i.then?i.then(function(){r()},C):!1!==i&&r()}}else r()},getFile:function(t){var e=this.uploadFiles,n=void 0;return e.every(function(e){return!(n=t.uid===e.uid?e:null)}),n},abort:function(t){this.$refs["upload-inner"].abort(t)},clearFiles:function(){this.uploadFiles=[]},submit:function(){var t=this;this.uploadFiles.filter(function(t){return"ready"===t.status}).forEach(function(e){t.$refs["upload-inner"].upload(e.raw)})},getMigratingConfig:function(){return{props:{"default-file-list":"default-file-list is renamed to file-list.","show-upload-list":"show-upload-list is renamed to show-file-list.","thumbnail-mode":"thumbnail-mode has been deprecated, you can implement the same effect according to this case: http://element.eleme.io/#/zh-CN/component/upload#yong-hu-tou-xiang-shang-chuan"}}}},beforeDestroy:function(){this.uploadFiles.forEach(function(t){t.url&&0===t.url.indexOf("blob:")&&URL.revokeObjectURL(t.url)})},render:function(t){var e=this,n=void 0;this.showFileList&&(n=t(Yc,{attrs:{disabled:this.uploadDisabled,listType:this.listType,files:this.uploadFiles,handlePreview:this.onPreview},on:{remove:this.handleRemove}},[function(t){if(e.$scopedSlots.file)return e.$scopedSlots.file({file:t.file})}]));var r={props:{type:this.type,drag:this.drag,action:this.action,multiple:this.multiple,"before-upload":this.beforeUpload,"with-credentials":this.withCredentials,headers:this.headers,name:this.name,data:this.data,accept:this.accept,fileList:this.uploadFiles,autoUpload:this.autoUpload,listType:this.listType,disabled:this.uploadDisabled,limit:this.limit,"on-exceed":this.onExceed,"on-start":this.handleStart,"on-progress":this.handleProgress,"on-success":this.handleSuccess,"on-error":this.handleError,"on-preview":this.onPreview,"on-remove":this.handleRemove,"http-request":this.httpRequest},ref:"upload-inner"},i=this.$slots.trigger||this.$slots.default,o=t("upload",r,[i]);return t("div",["picture-card"===this.listType?n:"",this.$slots.trigger?[o,this.$slots.default]:o,this.$slots.tip,"picture-card"!==this.listType?n:""])}},lf=uf,cf=r(lf,void 0,void 0,!1,null,null,null);cf.options.__file="packages/upload/src/index.vue";var ff=cf.exports;ff.install=function(t){t.component(ff.name,ff)};var df=ff,hf=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-progress",class:["el-progress--"+t.type,t.status?"is-"+t.status:"",{"el-progress--without-text":!t.showText,"el-progress--text-inside":t.textInside}],attrs:{role:"progressbar","aria-valuenow":t.percentage,"aria-valuemin":"0","aria-valuemax":"100"}},["line"===t.type?n("div",{staticClass:"el-progress-bar"},[n("div",{staticClass:"el-progress-bar__outer",style:{height:t.strokeWidth+"px",backgroundColor:t.defineBackColor}},[n("div",{staticClass:"el-progress-bar__inner",style:t.barStyle},[t.showText&&t.textInside?n("div",{staticClass:"el-progress-bar__innerText",style:{color:t.textColor}},[t._v(t._s(t.content))]):t._e()])])]):n("div",{staticClass:"el-progress-circle",style:{height:t.width+"px",width:t.width+"px"}},[n("svg",{attrs:{viewBox:"0 0 100 100"}},[n("path",{staticClass:"el-progress-circle__track",style:t.trailPathStyle,attrs:{d:t.trackPath,stroke:t.defineBackColor,"stroke-width":t.relativeStrokeWidth,fill:"none"}}),n("path",{staticClass:"el-progress-circle__path",style:t.circlePathStyle,attrs:{d:t.trackPath,stroke:t.stroke,fill:"none","stroke-linecap":t.strokeLinecap,"stroke-width":t.percentage?t.relativeStrokeWidth:0}})])]),t.showText&&!t.textInside?n("div",{staticClass:"el-progress__text",style:{fontSize:t.progressTextSize+"px",color:t.textColor}},[t.status?n("i",{class:t.iconClass}):[t._v(t._s(t.content))]],2):t._e()])},pf=[];hf._withStripped=!0;var gf={name:"ElProgress",props:{type:{type:String,default:"line",validator:function(t){return["line","circle","dashboard"].indexOf(t)>-1}},percentage:{type:Number,default:0,required:!0,validator:function(t){return t>=0&&t<=100}},status:{type:String,validator:function(t){return["success","exception","warning"].indexOf(t)>-1}},strokeWidth:{type:Number,default:6},strokeLinecap:{type:String,default:"round"},textInside:{type:Boolean,default:!1},width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:[String,Array,Function],default:""},defineBackColor:{type:[String,Array,Function],default:"#ebeef5"},textColor:{type:[String,Array,Function],default:"#606266"},format:Function},computed:{barStyle:function(){var t={};return t.width=this.percentage+"%",t.backgroundColor=this.getCurrentColor(this.percentage),t},relativeStrokeWidth:function(){return(this.strokeWidth/this.width*100).toFixed(1)},radius:function(){return"circle"===this.type||"dashboard"===this.type?parseInt(50-parseFloat(this.relativeStrokeWidth)/2,10):0},trackPath:function(){var t=this.radius,e="dashboard"===this.type;return"\n M 50 50\n m 0 "+(e?"":"-")+t+"\n a "+t+" "+t+" 0 1 1 0 "+(e?"-":"")+2*t+"\n a "+t+" "+t+" 0 1 1 0 "+(e?"":"-")+2*t+"\n "},perimeter:function(){return 2*Math.PI*this.radius},rate:function(){return"dashboard"===this.type?.75:1},strokeDashoffset:function(){return-1*this.perimeter*(1-this.rate)/2+"px"},trailPathStyle:function(){return{strokeDasharray:this.perimeter*this.rate+"px, "+this.perimeter+"px",strokeDashoffset:this.strokeDashoffset}},circlePathStyle:function(){return{strokeDasharray:this.perimeter*this.rate*(this.percentage/100)+"px, "+this.perimeter+"px",strokeDashoffset:this.strokeDashoffset,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease"}},stroke:function(){var t=void 0;if(this.color)t=this.getCurrentColor(this.percentage);else switch(this.status){case"success":t="#13ce66";break;case"exception":t="#ff4949";break;case"warning":t="#e6a23c";break;default:t="#20a0ff"}return t},iconClass:function(){return"warning"===this.status?"el-icon-warning":"line"===this.type?"success"===this.status?"el-icon-circle-check":"el-icon-circle-close":"success"===this.status?"el-icon-check":"el-icon-close"},progressTextSize:function(){return"line"===this.type?12+.4*this.strokeWidth:.111111*this.width+2},content:function(){return"function"==typeof this.format?this.format(this.percentage)||"":this.percentage+"%"}},methods:{getCurrentColor:function(t){return"function"==typeof this.color?this.color(t):"string"==typeof this.color?this.color:this.getLevelColor(t)},getLevelColor:function(t){for(var e=this.getColorArray().sort(function(t,e){return t.percentage-e.percentage}),n=0;n<e.length;n++)if(e[n].percentage>t)return e[n].color;return e[e.length-1].color},getColorArray:function(){var t=this.color,e=100/t.length;return t.map(function(t,n){return"string"==typeof t?{color:t,percentage:(n+1)*e}:t})}}},mf=gf,vf=r(mf,hf,pf,!1,null,null,null);vf.options.__file="packages/progress/src/progress.vue";var yf=vf.exports;yf.install=function(t){t.component(yf.name,yf)};var bf=yf,_f=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span",{staticClass:"el-spinner"},[n("svg",{staticClass:"el-spinner-inner",style:{width:t.radius/2+"px",height:t.radius/2+"px"},attrs:{viewBox:"0 0 50 50"}},[n("circle",{staticClass:"path",attrs:{cx:"25",cy:"25",r:"20",fill:"none",stroke:t.strokeColor,"stroke-width":t.strokeWidth}})])])},wf=[];_f._withStripped=!0;var xf={name:"ElSpinner",props:{type:String,radius:{type:Number,default:100},strokeWidth:{type:Number,default:5},strokeColor:{type:String,default:"#efefef"}}},kf=xf,Sf=r(kf,_f,wf,!1,null,null,null);Sf.options.__file="packages/spinner/src/spinner.vue";var Cf=Sf.exports;Cf.install=function(t){t.component(Cf.name,Cf)};var Ef=Cf,Tf=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"el-message-fade"},on:{"after-leave":t.handleAfterLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],class:["el-message",t.type&&!t.iconClass?"el-message--"+t.type:"",t.center?"is-center":"",t.showClose?"is-closable":"",t.customClass],style:t.positionStyle,attrs:{role:"alert"},on:{mouseenter:t.clearTimer,mouseleave:t.startTimer}},[t.iconClass?n("i",{class:t.iconClass}):n("i",{class:t.typeClass}),t._t("default",[t.dangerouslyUseHTMLString?n("p",{staticClass:"el-message__content",domProps:{innerHTML:t._s(t.message)}}):n("p",{staticClass:"el-message__content"},[t._v(t._s(t.message))])]),t.showClose?n("i",{staticClass:"el-message__closeBtn el-icon-close",on:{click:t.close}}):t._e()],2)])},Af=[];Tf._withStripped=!0;var Of={success:"success",info:"info",warning:"warning",error:"error"},Pf={data:function(){return{visible:!1,message:"",duration:3e3,type:"info",iconClass:"",customClass:"",onClose:null,showClose:!1,closed:!1,verticalOffset:20,timer:null,dangerouslyUseHTMLString:!1,center:!1}},computed:{typeClass:function(){return this.type&&!this.iconClass?"el-message__icon el-icon-"+Of[this.type]:""},positionStyle:function(){return{top:this.verticalOffset+"px"}}},watch:{closed:function(t){t&&(this.visible=!1)}},methods:{handleAfterLeave:function(){this.$destroy(!0),this.$el.parentNode.removeChild(this.$el)},close:function(){this.closed=!0,"function"==typeof this.onClose&&this.onClose(this)},clearTimer:function(){clearTimeout(this.timer)},startTimer:function(){var t=this;this.duration>0&&(this.timer=setTimeout(function(){t.closed||t.close()},this.duration))},keydown:function(t){27===t.keyCode&&(this.closed||this.close())}},mounted:function(){this.startTimer(),document.addEventListener("keydown",this.keydown)},beforeDestroy:function(){document.removeEventListener("keydown",this.keydown)}},Nf=Pf,Df=r(Nf,Tf,Af,!1,null,null,null);Df.options.__file="packages/message/src/main.vue";var Mf=Df.exports,If=n(16),Rf=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},$f=ai.a.extend(Mf),Lf=void 0,jf=[],Ff=1,Bf=function t(e){if(!ai.a.prototype.$isServer){e=e||{},"string"==typeof e&&(e={message:e});var n=e.onClose,r="message_"+Ff++;e.onClose=function(){t.close(r,n)},Lf=new $f({data:e}),Lf.id=r,Object(Ms.isVNode)(Lf.message)&&(Lf.$slots.default=[Lf.message],Lf.message=null),Lf.$mount(),document.body.appendChild(Lf.$el);var i=e.offset||20;return jf.forEach(function(t){i+=t.$el.offsetHeight+16}),Lf.verticalOffset=i,Lf.visible=!0,Lf.$el.style.zIndex=K.PopupManager.nextZIndex(),jf.push(Lf),Lf}};["success","warning","info","error"].forEach(function(t){Bf[t]=function(e){return Bf(Object(If.isObject)(e)&&!Object(Ms.isVNode)(e)?Rf({},e,{type:t}):{type:t,message:e})}}),Bf.close=function(t,e){for(var n=jf.length,r=-1,i=void 0,o=0;o<n;o++)if(t===jf[o].id){i=jf[o].$el.offsetHeight,r=o,"function"==typeof e&&e(jf[o]),jf.splice(o,1);break}if(!(n<=1||-1===r||r>jf.length-1))for(var a=r;a<n-1;a++){var s=jf[a].$el;s.style.top=parseInt(s.style.top,10)-i-16+"px"}},Bf.closeAll=function(){for(var t=jf.length-1;t>=0;t--)jf[t].close()};var Vf=Bf,zf=Vf,Uf=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-badge"},[t._t("default"),n("transition",{attrs:{name:"el-zoom-in-center"}},[n("sup",{directives:[{name:"show",rawName:"v-show",value:!t.hidden&&(t.content||0===t.content||t.isDot),expression:"!hidden && (content || content === 0 || isDot)"}],staticClass:"el-badge__content",class:[t.type?"el-badge__content--"+t.type:null,{"is-fixed":t.$slots.default,"is-dot":t.isDot}],domProps:{textContent:t._s(t.content)}})])],2)},Hf=[];Uf._withStripped=!0;var qf={name:"ElBadge",props:{value:[String,Number],max:Number,isDot:Boolean,hidden:Boolean,type:{type:String,validator:function(t){return["primary","success","warning","info","danger"].indexOf(t)>-1}}},computed:{content:function(){if(!this.isDot){var t=this.value,e=this.max;return"number"==typeof t&&"number"==typeof e&&e<t?e+"+":t}}}},Wf=qf,Gf=r(Wf,Uf,Hf,!1,null,null,null);Gf.options.__file="packages/badge/src/main.vue";var Yf=Gf.exports;Yf.install=function(t){t.component(Yf.name,Yf)};var Kf=Yf,Xf=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-card",class:t.shadow?"is-"+t.shadow+"-shadow":"is-always-shadow"},[t.$slots.header||t.header?n("div",{staticClass:"el-card__header"},[t._t("header",[t._v(t._s(t.header))])],2):t._e(),n("div",{staticClass:"el-card__body",style:t.bodyStyle},[t._t("default")],2)])},Jf=[];Xf._withStripped=!0;var Qf={name:"ElCard",props:{header:{},bodyStyle:{},shadow:{type:String}}},Zf=Qf,td=r(Zf,Xf,Jf,!1,null,null,null);td.options.__file="packages/card/src/main.vue";var ed=td.exports;ed.install=function(t){t.component(ed.name,ed)};var nd=ed,rd=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-rate",attrs:{role:"slider","aria-valuenow":t.currentValue,"aria-valuetext":t.text,"aria-valuemin":"0","aria-valuemax":t.max,tabindex:"0"},on:{keydown:t.handleKey}},[t._l(t.max,function(e,r){return n("span",{key:r,staticClass:"el-rate__item",style:{cursor:t.rateDisabled?"auto":"pointer"},on:{mousemove:function(n){t.setCurrentValue(e,n)},mouseleave:t.resetCurrentValue,click:function(n){t.selectValue(e)}}},[n("i",{staticClass:"el-rate__icon",class:[t.classes[e-1],{hover:t.hoverIndex===e}],style:t.getIconStyle(e)},[t.showDecimalIcon(e)?n("i",{staticClass:"el-rate__decimal",class:t.decimalIconClass,style:t.decimalStyle}):t._e()])])}),t.showText||t.showScore?n("span",{staticClass:"el-rate__text",style:{color:t.textColor}},[t._v(t._s(t.text))]):t._e()],2)},id=[];rd._withStripped=!0;var od={name:"ElRate",mixins:[Q.a],inject:{elForm:{default:""}},data:function(){return{pointerAtLeftHalf:!0,currentValue:this.value,hoverIndex:-1}},props:{value:{type:Number,default:0},lowThreshold:{type:Number,default:2},highThreshold:{type:Number,default:4},max:{type:Number,default:5},colors:{type:[Array,Object],default:function(){return["#F7BA2A","#F7BA2A","#F7BA2A"]}},voidColor:{type:String,default:"#C6D1DE"},disabledVoidColor:{type:String,default:"#EFF2F7"},iconClasses:{type:[Array,Object],default:function(){return["el-icon-star-on","el-icon-star-on","el-icon-star-on"]}},voidIconClass:{type:String,default:"el-icon-star-off"},disabledVoidIconClass:{type:String,default:"el-icon-star-on"},disabled:{type:Boolean,default:!1},allowHalf:{type:Boolean,default:!1},showText:{type:Boolean,default:!1},showScore:{type:Boolean,default:!1},textColor:{type:String,default:"#1f2d3d"},texts:{type:Array,default:function(){return["极差","失望","一般","满意","惊喜"]}},scoreTemplate:{type:String,default:"{value}"}},computed:{text:function(){var t="";return this.showScore?t=this.scoreTemplate.replace(/\{\s*value\s*\}/,this.rateDisabled?this.value:this.currentValue):this.showText&&(t=this.texts[Math.ceil(this.currentValue)-1]),t},decimalStyle:function(){var t="";return this.rateDisabled?t=this.valueDecimal+"%":this.allowHalf&&(t="50%"),{color:this.activeColor,width:t}},valueDecimal:function(){return 100*this.value-100*Math.floor(this.value)},classMap:function(){var t;return Array.isArray(this.iconClasses)?(t={},t[this.lowThreshold]=this.iconClasses[0],t[this.highThreshold]={value:this.iconClasses[1],excluded:!0},t[this.max]=this.iconClasses[2],t):this.iconClasses},decimalIconClass:function(){return this.getValueFromMap(this.value,this.classMap)},voidClass:function(){return this.rateDisabled?this.disabledVoidIconClass:this.voidIconClass},activeClass:function(){return this.getValueFromMap(this.currentValue,this.classMap)},colorMap:function(){var t;return Array.isArray(this.colors)?(t={},t[this.lowThreshold]=this.colors[0],t[this.highThreshold]={value:this.colors[1],excluded:!0},t[this.max]=this.colors[2],t):this.colors},activeColor:function(){return this.getValueFromMap(this.currentValue,this.colorMap)},classes:function(){var t=[],e=0,n=this.currentValue;for(this.allowHalf&&this.currentValue!==Math.floor(this.currentValue)&&n--;e<n;e++)t.push(this.activeClass);for(;e<this.max;e++)t.push(this.voidClass);return t},rateDisabled:function(){return this.disabled||(this.elForm||{}).disabled}},watch:{value:function(t){this.currentValue=t,this.pointerAtLeftHalf=this.value!==Math.floor(this.value)}},methods:{getMigratingConfig:function(){return{props:{"text-template":"text-template is renamed to score-template."}}},getValueFromMap:function(t,e){var n=Object.keys(e).filter(function(n){var r=e[n];return!!Object(If.isObject)(r)&&r.excluded?t<n:t<=n}).sort(function(t,e){return t-e}),r=e[n[0]];return Object(If.isObject)(r)?r.value:r||""},showDecimalIcon:function(t){var e=this.rateDisabled&&this.valueDecimal>0&&t-1<this.value&&t>this.value,n=this.allowHalf&&this.pointerAtLeftHalf&&t-.5<=this.currentValue&&t>this.currentValue;return e||n},getIconStyle:function(t){var e=this.rateDisabled?this.disabledVoidColor:this.voidColor;return{color:t<=this.currentValue?this.activeColor:e}},selectValue:function(t){this.rateDisabled||(this.allowHalf&&this.pointerAtLeftHalf?(this.$emit("input",this.currentValue),this.$emit("change",this.currentValue)):(this.$emit("input",t),this.$emit("change",t)))},handleKey:function(t){if(!this.rateDisabled){var e=this.currentValue,n=t.keyCode;38===n||39===n?(this.allowHalf?e+=.5:e+=1,t.stopPropagation(),t.preventDefault()):37!==n&&40!==n||(this.allowHalf?e-=.5:e-=1,t.stopPropagation(),t.preventDefault()),e=e<0?0:e,e=e>this.max?this.max:e,this.$emit("input",e),this.$emit("change",e)}},setCurrentValue:function(t,e){if(!this.rateDisabled){if(this.allowHalf){var n=e.target;Object(ae.hasClass)(n,"el-rate__item")&&(n=n.querySelector(".el-rate__icon")),Object(ae.hasClass)(n,"el-rate__decimal")&&(n=n.parentNode),this.pointerAtLeftHalf=2*e.offsetX<=n.clientWidth,this.currentValue=this.pointerAtLeftHalf?t-.5:t}else this.currentValue=t;this.hoverIndex=t}},resetCurrentValue:function(){this.rateDisabled||(this.allowHalf&&(this.pointerAtLeftHalf=this.value!==Math.floor(this.value)),this.currentValue=this.value,this.hoverIndex=-1)}},created:function(){this.value||this.$emit("input",0)}},ad=od,sd=r(ad,rd,id,!1,null,null,null);sd.options.__file="packages/rate/src/main.vue";var ud=sd.exports;ud.install=function(t){t.component(ud.name,ud)};var ld=ud,cd=function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"el-steps",class:[!t.simple&&"el-steps--"+t.direction,t.simple&&"el-steps--simple"]},[t._t("default")],2)},fd=[];cd._withStripped=!0;var dd={name:"ElSteps",mixins:[Q.a],props:{space:[Number,String],active:Number,direction:{type:String,default:"horizontal"},alignCenter:Boolean,simple:Boolean,finishStatus:{type:String,default:"finish"},processStatus:{type:String,default:"process"}},data:function(){return{steps:[],stepOffset:0}},methods:{getMigratingConfig:function(){return{props:{center:"center is removed."}}}},watch:{active:function(t,e){this.$emit("change",t,e)},steps:function(t){t.forEach(function(t,e){t.index=e})}}},hd=dd,pd=r(hd,cd,fd,!1,null,null,null);pd.options.__file="packages/steps/src/steps.vue";var gd=pd.exports;gd.install=function(t){t.component(gd.name,gd)};var md=gd,vd=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-step",class:[!t.isSimple&&"is-"+t.$parent.direction,t.isSimple&&"is-simple",t.isLast&&!t.space&&!t.isCenter&&"is-flex",t.isCenter&&!t.isVertical&&!t.isSimple&&"is-center"],style:t.style},[n("div",{staticClass:"el-step__head",class:"is-"+t.currentStatus},[n("div",{staticClass:"el-step__line",style:t.isLast?"":{marginRight:t.$parent.stepOffset+"px"}},[n("i",{staticClass:"el-step__line-inner",style:t.lineStyle})]),n("div",{staticClass:"el-step__icon",class:"is-"+(t.icon?"icon":"text")},["success"!==t.currentStatus&&"error"!==t.currentStatus?t._t("icon",[t.icon?n("i",{staticClass:"el-step__icon-inner",class:[t.icon]}):t._e(),t.icon||t.isSimple?t._e():n("div",{staticClass:"el-step__icon-inner"},[t._v(t._s(t.index+1))])]):n("i",{staticClass:"el-step__icon-inner is-status",class:["el-icon-"+("success"===t.currentStatus?"check":"close")]})],2)]),n("div",{staticClass:"el-step__main"},[n("div",{ref:"title",staticClass:"el-step__title",class:["is-"+t.currentStatus]},[t._t("title",[t._v(t._s(t.title))])],2),t.isSimple?n("div",{staticClass:"el-step__arrow"}):n("div",{staticClass:"el-step__description",class:["is-"+t.currentStatus]},[t._t("description",[t._v(t._s(t.description))])],2)])])},yd=[];vd._withStripped=!0;var bd={name:"ElStep",props:{title:String,icon:String,description:String,status:String},data:function(){return{index:-1,lineStyle:{},internalStatus:""}},beforeCreate:function(){this.$parent.steps.push(this)},beforeDestroy:function(){var t=this.$parent.steps,e=t.indexOf(this);e>=0&&t.splice(e,1)},computed:{currentStatus:function(){return this.status||this.internalStatus},prevStatus:function(){var t=this.$parent.steps[this.index-1];return t?t.currentStatus:"wait"},isCenter:function(){return this.$parent.alignCenter},isVertical:function(){return"vertical"===this.$parent.direction},isSimple:function(){return this.$parent.simple},isLast:function(){var t=this.$parent;return t.steps[t.steps.length-1]===this},stepsCount:function(){return this.$parent.steps.length},space:function(){var t=this.isSimple,e=this.$parent.space;return t?"":e},style:function(){var t={},e=this.$parent,n=e.steps.length,r="number"==typeof this.space?this.space+"px":this.space?this.space:100/(n-(this.isCenter?0:1))+"%";return t.flexBasis=r,this.isVertical?t:(this.isLast?t.maxWidth=100/this.stepsCount+"%":t.marginRight=-this.$parent.stepOffset+"px",t)}},methods:{updateStatus:function(t){var e=this.$parent.$children[this.index-1];t>this.index?this.internalStatus=this.$parent.finishStatus:t===this.index&&"error"!==this.prevStatus?this.internalStatus=this.$parent.processStatus:this.internalStatus="wait",e&&e.calcProgress(this.internalStatus)},calcProgress:function(t){var e=100,n={};n.transitionDelay=150*this.index+"ms",t===this.$parent.processStatus?(this.currentStatus,e=0):"wait"===t&&(e=0,n.transitionDelay=-150*this.index+"ms"),n.borderWidth=e&&!this.isSimple?"1px":0,"vertical"===this.$parent.direction?n.height=e+"%":n.width=e+"%",this.lineStyle=n}},mounted:function(){var t=this,e=this.$watch("index",function(n){t.$watch("$parent.active",t.updateStatus,{immediate:!0}),t.$watch("$parent.processStatus",function(){var e=t.$parent.active;t.updateStatus(e)},{immediate:!0}),e()})}},_d=bd,wd=r(_d,vd,yd,!1,null,null,null);wd.options.__file="packages/steps/src/step.vue";var xd=wd.exports;xd.install=function(t){t.component(xd.name,xd)};var kd=xd,Sd=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:t.carouselClasses,on:{mouseenter:function(e){return e.stopPropagation(),t.handleMouseEnter(e)},mouseleave:function(e){return e.stopPropagation(),t.handleMouseLeave(e)}}},[n("div",{staticClass:"el-carousel__container",style:{height:t.height}},[t.arrowDisplay?n("transition",{attrs:{name:"carousel-arrow-left"}},[n("button",{directives:[{name:"show",rawName:"v-show",value:("always"===t.arrow||t.hover)&&(t.loop||t.activeIndex>0),expression:"(arrow === 'always' || hover) && (loop || activeIndex > 0)"}],staticClass:"el-carousel__arrow el-carousel__arrow--left",attrs:{type:"button"},on:{mouseenter:function(e){t.handleButtonEnter("left")},mouseleave:t.handleButtonLeave,click:function(e){e.stopPropagation(),t.throttledArrowClick(t.activeIndex-1)}}},[n("i",{staticClass:"el-icon-arrow-left"})])]):t._e(),t.arrowDisplay?n("transition",{attrs:{name:"carousel-arrow-right"}},[n("button",{directives:[{name:"show",rawName:"v-show",value:("always"===t.arrow||t.hover)&&(t.loop||t.activeIndex<t.items.length-1),expression:"(arrow === 'always' || hover) && (loop || activeIndex < items.length - 1)"}],staticClass:"el-carousel__arrow el-carousel__arrow--right",attrs:{type:"button"},on:{mouseenter:function(e){t.handleButtonEnter("right")},mouseleave:t.handleButtonLeave,click:function(e){e.stopPropagation(),t.throttledArrowClick(t.activeIndex+1)}}},[n("i",{staticClass:"el-icon-arrow-right"})])]):t._e(),t._t("default")],2),"none"!==t.indicatorPosition?n("ul",{class:t.indicatorsClasses},t._l(t.items,function(e,r){return n("li",{key:r,class:["el-carousel__indicator","el-carousel__indicator--"+t.direction,{"is-active":r===t.activeIndex}],on:{mouseenter:function(e){t.throttledIndicatorHover(r)},click:function(e){e.stopPropagation(),t.handleIndicatorClick(r)}}},[n("button",{staticClass:"el-carousel__button"},[t.hasLabel?n("span",[t._v(t._s(e.label))]):t._e()])])}),0):t._e()])},Cd=[];Sd._withStripped=!0;var Ed=n(25),Td=n.n(Ed),Ad={name:"ElCarousel",props:{initialIndex:{type:Number,default:0},height:String,trigger:{type:String,default:"hover"},autoplay:{type:Boolean,default:!0},interval:{type:Number,default:3e3},indicatorPosition:String,indicator:{type:Boolean,default:!0},arrow:{type:String,default:"hover"},type:String,loop:{type:Boolean,default:!0},direction:{type:String,default:"horizontal",validator:function(t){return-1!==["horizontal","vertical"].indexOf(t)}}},data:function(){return{items:[],activeIndex:-1,containerWidth:0,timer:null,hover:!1}},computed:{arrowDisplay:function(){return"never"!==this.arrow&&"vertical"!==this.direction},hasLabel:function(){return this.items.some(function(t){return t.label.toString().length>0})},carouselClasses:function(){var t=["el-carousel","el-carousel--"+this.direction];return"card"===this.type&&t.push("el-carousel--card"),t},indicatorsClasses:function(){var t=["el-carousel__indicators","el-carousel__indicators--"+this.direction];return this.hasLabel&&t.push("el-carousel__indicators--labels"),"outside"!==this.indicatorPosition&&"card"!==this.type||t.push("el-carousel__indicators--outside"),t}},watch:{items:function(t){t.length>0&&this.setActiveItem(this.initialIndex)},activeIndex:function(t,e){this.resetItemPosition(e),e>-1&&this.$emit("change",t,e)},autoplay:function(t){t?this.startTimer():this.pauseTimer()},loop:function(){this.setActiveItem(this.activeIndex)},interval:function(){this.pauseTimer(),this.startTimer()}},methods:{handleMouseEnter:function(){this.hover=!0,this.pauseTimer()},handleMouseLeave:function(){this.hover=!1,this.startTimer()},itemInStage:function(t,e){var n=this.items.length;return e===n-1&&t.inStage&&this.items[0].active||t.inStage&&this.items[e+1]&&this.items[e+1].active?"left":!!(0===e&&t.inStage&&this.items[n-1].active||t.inStage&&this.items[e-1]&&this.items[e-1].active)&&"right"},handleButtonEnter:function(t){var e=this;"vertical"!==this.direction&&this.items.forEach(function(n,r){t===e.itemInStage(n,r)&&(n.hover=!0)})},handleButtonLeave:function(){"vertical"!==this.direction&&this.items.forEach(function(t){t.hover=!1})},updateItems:function(){this.items=this.$children.filter(function(t){return"ElCarouselItem"===t.$options.name})},resetItemPosition:function(t){var e=this;this.items.forEach(function(n,r){n.translateItem(r,e.activeIndex,t)})},playSlides:function(){this.activeIndex<this.items.length-1?this.activeIndex++:this.loop&&(this.activeIndex=0)},pauseTimer:function(){this.timer&&(clearInterval(this.timer),this.timer=null)},startTimer:function(){this.interval<=0||!this.autoplay||this.timer||(this.timer=setInterval(this.playSlides,this.interval))},resetTimer:function(){this.pauseTimer(),this.startTimer()},setActiveItem:function(t){if("string"==typeof t){var e=this.items.filter(function(e){return e.name===t});e.length>0&&(t=this.items.indexOf(e[0]))}if(t=Number(t),isNaN(t)||t!==Math.floor(t))return void console.warn("[Element Warn][Carousel]index must be an integer.");var n=this.items.length,r=this.activeIndex;this.activeIndex=t<0?this.loop?n-1:0:t>=n?this.loop?0:n-1:t,r===this.activeIndex&&this.resetItemPosition(r),this.resetTimer()},prev:function(){this.setActiveItem(this.activeIndex-1)},next:function(){this.setActiveItem(this.activeIndex+1)},handleIndicatorClick:function(t){this.activeIndex=t},handleIndicatorHover:function(t){"hover"===this.trigger&&t!==this.activeIndex&&(this.activeIndex=t)}},created:function(){var t=this;this.throttledArrowClick=Td()(300,!0,function(e){t.setActiveItem(e)}),this.throttledIndicatorHover=Td()(300,function(e){t.handleIndicatorHover(e)})},mounted:function(){var t=this;this.updateItems(),this.$nextTick(function(){Object(yr.addResizeListener)(t.$el,t.resetItemPosition),t.initialIndex<t.items.length&&t.initialIndex>=0&&(t.activeIndex=t.initialIndex),t.startTimer()})},beforeDestroy:function(){this.$el&&Object(yr.removeResizeListener)(this.$el,this.resetItemPosition),this.pauseTimer()}},Od=Ad,Pd=r(Od,Sd,Cd,!1,null,null,null);Pd.options.__file="packages/carousel/src/main.vue";var Nd=Pd.exports;Nd.install=function(t){t.component(Nd.name,Nd)};var Dd=Nd,Md={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}},Id={name:"Bar",props:{vertical:Boolean,size:String,move:Number},computed:{bar:function(){return Md[this.vertical?"vertical":"horizontal"]},wrap:function(){return this.$parent.wrap}},render:function(t){var e=this.size,n=this.move,r=this.bar;return t("div",{class:["el-scrollbar__bar","is-"+r.key],on:{mousedown:this.clickTrackHandler}},[t("div",{ref:"thumb",class:"el-scrollbar__thumb",on:{mousedown:this.clickThumbHandler},style:E({size:e,move:n,bar:r})})])},methods:{clickThumbHandler:function(t){t.ctrlKey||2===t.button||(this.startDrag(t),this[this.bar.axis]=t.currentTarget[this.bar.offset]-(t[this.bar.client]-t.currentTarget.getBoundingClientRect()[this.bar.direction]))},clickTrackHandler:function(t){var e=Math.abs(t.target.getBoundingClientRect()[this.bar.direction]-t[this.bar.client]),n=this.$refs.thumb[this.bar.offset]/2,r=100*(e-n)/this.$el[this.bar.offset];this.wrap[this.bar.scroll]=r*this.wrap[this.bar.scrollSize]/100},startDrag:function(t){t.stopImmediatePropagation(),this.cursorDown=!0,Object(ae.on)(document,"mousemove",this.mouseMoveDocumentHandler),Object(ae.on)(document,"mouseup",this.mouseUpDocumentHandler),document.onselectstart=function(){return!1}},mouseMoveDocumentHandler:function(t){if(!1!==this.cursorDown){var e=this[this.bar.axis];if(e){var n=-1*(this.$el.getBoundingClientRect()[this.bar.direction]-t[this.bar.client]),r=this.$refs.thumb[this.bar.offset]-e,i=100*(n-r)/this.$el[this.bar.offset];this.wrap[this.bar.scroll]=i*this.wrap[this.bar.scrollSize]/100}}},mouseUpDocumentHandler:function(t){this.cursorDown=!1,this[this.bar.axis]=0,Object(ae.off)(document,"mousemove",this.mouseMoveDocumentHandler),document.onselectstart=null}},destroyed:function(){Object(ae.off)(document,"mouseup",this.mouseUpDocumentHandler)}},Rd={name:"ElScrollbar",components:{Bar:Id},props:{native:Boolean,wrapStyle:{},wrapClass:{},viewClass:{},viewStyle:{},noresize:Boolean,tag:{type:String,default:"div"}},data:function(){return{sizeWidth:"0",sizeHeight:"0",moveX:0,moveY:0}},computed:{wrap:function(){return this.$refs.wrap}},render:function(t){var e=Ei()(),n=this.wrapStyle;if(e){var r="-"+e+"px",i="margin-bottom: "+r+"; margin-right: "+r+";";Array.isArray(this.wrapStyle)?(n=Object(H.toObject)(this.wrapStyle),n.marginRight=n.marginBottom=r):"string"==typeof this.wrapStyle?n+=i:n=i}var o=t(this.tag,{class:["el-scrollbar__view",this.viewClass],style:this.viewStyle,ref:"resize"},this.$slots.default),a=t("div",{ref:"wrap",style:n,on:{scroll:this.handleScroll},class:[this.wrapClass,"el-scrollbar__wrap",e?"":"el-scrollbar__wrap--hidden-default"]},[[o]]),s=void 0;return s=this.native?[t("div",{ref:"wrap",class:[this.wrapClass,"el-scrollbar__wrap"],style:n},[[o]])]:[a,t(Id,{attrs:{move:this.moveX,size:this.sizeWidth}}),t(Id,{attrs:{vertical:!0,move:this.moveY,size:this.sizeHeight}})],t("div",{class:"el-scrollbar"},s)},methods:{handleScroll:function(){var t=this.wrap;this.moveY=100*t.scrollTop/t.clientHeight,this.moveX=100*t.scrollLeft/t.clientWidth},update:function(){var t=void 0,e=void 0,n=this.wrap;n&&(t=100*n.clientHeight/n.scrollHeight,e=100*n.clientWidth/n.scrollWidth,this.sizeHeight=t<100?t+"%":"",this.sizeWidth=e<100?e+"%":"")}},mounted:function(){this.native||(this.$nextTick(this.update),!this.noresize&&Object(yr.addResizeListener)(this.$refs.resize,this.update))},beforeDestroy:function(){this.native||!this.noresize&&Object(yr.removeResizeListener)(this.$refs.resize,this.update)}};Rd.install=function(t){t.component(Rd.name,Rd)};var $d=Rd,Ld=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"show",rawName:"v-show",value:t.ready,expression:"ready"}],staticClass:"el-carousel__item",class:{"is-active":t.active,"el-carousel__item--card":"card"===t.$parent.type,"is-in-stage":t.inStage,"is-hover":t.hover,"is-animating":t.animating},style:t.itemStyle,on:{click:t.handleItemClick}},["card"===t.$parent.type?n("div",{directives:[{name:"show",rawName:"v-show",value:!t.active,expression:"!active"}],staticClass:"el-carousel__mask"}):t._e(),t._t("default")],2)},jd=[];Ld._withStripped=!0;var Fd={name:"ElCarouselItem",props:{name:String,label:{type:[String,Number],default:""}},data:function(){return{hover:!1,translate:0,scale:1,active:!1,ready:!1,inStage:!1,animating:!1}},methods:{processIndex:function(t,e,n){return 0===e&&t===n-1?-1:e===n-1&&0===t?n:t<e-1&&e-t>=n/2?n+1:t>e+1&&t-e>=n/2?-2:t},calcCardTranslate:function(t,e){var n=this.$parent.$el.offsetWidth;return this.inStage?n*(1.17*(t-e)+1)/4:t<e?-1.83*n/4:3.83*n/4},calcTranslate:function(t,e,n){return this.$parent.$el[n?"offsetHeight":"offsetWidth"]*(t-e)},translateItem:function(t,e,n){var r=this.$parent.type,i=this.parentDirection,o=this.$parent.items.length;if("card"!==r&&void 0!==n&&(this.animating=t===e||t===n),t!==e&&o>2&&this.$parent.loop&&(t=this.processIndex(t,e,o)),"card"===r)"vertical"===i&&console.warn("[Element Warn][Carousel]vertical direction is not supported in card mode"),this.inStage=Math.round(Math.abs(t-e))<=1,this.active=t===e,this.translate=this.calcCardTranslate(t,e),this.scale=this.active?1:.83;else{this.active=t===e;var a="vertical"===i;this.translate=this.calcTranslate(t,e,a),this.scale=1}this.ready=!0},handleItemClick:function(){var t=this.$parent;if(t&&"card"===t.type){var e=t.items.indexOf(this);t.setActiveItem(e)}}},computed:{parentDirection:function(){return this.$parent.direction},itemStyle:function(){var t="vertical"===this.parentDirection?"translateY":"translateX",e=t+"("+this.translate+"px) scale("+this.scale+")",n={transform:e};return Object(H.autoprefixer)(n)}},created:function(){this.$parent&&this.$parent.updateItems()},destroyed:function(){this.$parent&&this.$parent.updateItems()}},Bd=Fd,Vd=r(Bd,Ld,jd,!1,null,null,null);Vd.options.__file="packages/carousel/src/item.vue";var zd=Vd.exports;zd.install=function(t){t.component(zd.name,zd)};var Ud=zd,Hd=function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"el-collapse",attrs:{role:"tablist","aria-multiselectable":"true"}},[t._t("default")],2)},qd=[];Hd._withStripped=!0;var Wd={name:"ElCollapse",componentName:"ElCollapse",props:{accordion:Boolean,value:{type:[Array,String,Number],default:function(){return[]}}},data:function(){return{activeNames:[].concat(this.value)}},provide:function(){return{collapse:this}},watch:{value:function(t){this.activeNames=[].concat(t)}},methods:{setActiveNames:function(t){t=[].concat(t);var e=this.accordion?t[0]:t;this.activeNames=t,this.$emit("input",e),this.$emit("change",e)},handleItemClick:function(t){if(this.accordion)this.setActiveNames(!this.activeNames[0]&&0!==this.activeNames[0]||this.activeNames[0]!==t.name?t.name:"");else{var e=this.activeNames.slice(0),n=e.indexOf(t.name);n>-1?e.splice(n,1):e.push(t.name),this.setActiveNames(e)}}},created:function(){this.$on("item-click",this.handleItemClick)}},Gd=Wd,Yd=r(Gd,Hd,qd,!1,null,null,null);Yd.options.__file="packages/collapse/src/collapse.vue";var Kd=Yd.exports;Kd.install=function(t){t.component(Kd.name,Kd)};var Xd=Kd,Jd=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-collapse-item",class:{"is-active":t.isActive,"is-disabled":t.disabled}},[n("div",{attrs:{role:"tab","aria-expanded":t.isActive,"aria-controls":"el-collapse-content-"+t.id,"aria-describedby":"el-collapse-content-"+t.id}},[n("div",{staticClass:"el-collapse-item__header",class:{focusing:t.focusing,"is-active":t.isActive},attrs:{role:"button",id:"el-collapse-head-"+t.id,tabindex:t.disabled?void 0:0},on:{click:t.handleHeaderClick,keyup:function(e){return"button"in e||!t._k(e.keyCode,"space",32,e.key,[" ","Spacebar"])||!t._k(e.keyCode,"enter",13,e.key,"Enter")?(e.stopPropagation(),t.handleEnterClick(e)):null},focus:t.handleFocus,blur:function(e){t.focusing=!1}}},[t._t("title",[t._v(t._s(t.title))]),n("i",{staticClass:"el-collapse-item__arrow el-icon-arrow-right",class:{"is-active":t.isActive}})],2)]),n("el-collapse-transition",[n("div",{directives:[{name:"show",rawName:"v-show",value:t.isActive,expression:"isActive"}],staticClass:"el-collapse-item__wrap",attrs:{role:"tabpanel","aria-hidden":!t.isActive,"aria-labelledby":"el-collapse-head-"+t.id,id:"el-collapse-content-"+t.id}},[n("div",{staticClass:"el-collapse-item__content"},[t._t("default")],2)])])],1)},Qd=[];Jd._withStripped=!0;var Zd={name:"ElCollapseItem",componentName:"ElCollapseItem",mixins:[tt.a],components:{ElCollapseTransition:he.a},data:function(){return{contentWrapStyle:{height:"auto",display:"block"},contentHeight:0,focusing:!1,isClick:!1,id:Object(H.generateId)()}},inject:["collapse"],props:{title:String,name:{type:[String,Number],default:function(){return this._uid}},disabled:Boolean},computed:{isActive:function(){return this.collapse.activeNames.indexOf(this.name)>-1}},methods:{handleFocus:function(){var t=this;setTimeout(function(){t.isClick?t.isClick=!1:t.focusing=!0},50)},handleHeaderClick:function(){this.disabled||(this.dispatch("ElCollapse","item-click",this),this.focusing=!1,this.isClick=!0)},handleEnterClick:function(){this.dispatch("ElCollapse","item-click",this)}}},th=Zd,eh=r(th,Jd,Qd,!1,null,null,null);eh.options.__file="packages/collapse/src/collapse-item.vue";var nh=eh.exports;nh.install=function(t){t.component(nh.name,nh)};var rh=nh,ih=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:function(){return t.toggleDropDownVisible(!1)},expression:"() => toggleDropDownVisible(false)"}],ref:"reference",class:["el-cascader",t.realSize&&"el-cascader--"+t.realSize,{"is-disabled":t.isDisabled}],on:{mouseenter:function(e){t.inputHover=!0},mouseleave:function(e){t.inputHover=!1},click:function(){return t.toggleDropDownVisible(!t.readonly||void 0)},keydown:t.handleKeyDown}},[n("el-input",{ref:"input",class:{"is-focus":t.dropDownVisible},attrs:{size:t.realSize,placeholder:t.placeholder,readonly:t.readonly,disabled:t.isDisabled,"validate-event":!1},on:{focus:t.handleFocus,blur:t.handleBlur,input:t.handleInput},model:{value:t.multiple?t.presentText:t.inputValue,callback:function(e){t.multiple?t.presentText:t.inputValue=e},expression:"multiple ? presentText : inputValue"}},[n("template",{slot:"suffix"},[t.clearBtnVisible?n("i",{key:"clear",staticClass:"el-input__icon el-icon-circle-close",on:{click:function(e){return e.stopPropagation(),t.handleClear(e)}}}):n("i",{key:"arrow-down",class:["el-input__icon","el-icon-arrow-down",t.dropDownVisible&&"is-reverse"],on:{click:function(e){e.stopPropagation(),t.toggleDropDownVisible()}}})])],2),t.multiple?n("div",{staticClass:"el-cascader__tags"},[t._l(t.presentTags,function(e){return n("el-tag",{key:e.key,attrs:{type:"info",size:t.tagSize,hit:e.hitState,closable:e.closable,"disable-transitions":""},on:{close:function(n){t.deleteTag(e)}}},[n("span",[t._v(t._s(e.text))])])}),t.filterable&&!t.isDisabled?n("input",{directives:[{name:"model",rawName:"v-model.trim",value:t.inputValue,expression:"inputValue",modifiers:{trim:!0}}],staticClass:"el-cascader__search-input",attrs:{type:"text",placeholder:t.presentTags.length?"":t.placeholder},domProps:{value:t.inputValue},on:{input:[function(e){e.target.composing||(t.inputValue=e.target.value.trim())},function(e){return t.handleInput(t.inputValue,e)}],click:function(e){e.stopPropagation(),t.toggleDropDownVisible(!0)},keydown:function(e){return"button"in e||!t._k(e.keyCode,"delete",[8,46],e.key,["Backspace","Delete","Del"])?t.handleDelete(e):null},blur:function(e){t.$forceUpdate()}}}):t._e()],2):t._e(),n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":t.handleDropdownLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.dropDownVisible,expression:"dropDownVisible"}],ref:"popper",class:["el-popper","el-cascader__dropdown",t.popperClass]},[n("el-cascader-panel",{directives:[{name:"show",rawName:"v-show",value:!t.filtering,expression:"!filtering"}],ref:"panel",attrs:{options:t.options,props:t.config,border:!1,"render-label":t.$scopedSlots.default},on:{"expand-change":t.handleExpandChange,close:function(e){t.toggleDropDownVisible(!1)}},model:{value:t.checkedValue,callback:function(e){t.checkedValue=e},expression:"checkedValue"}}),t.filterable?n("el-scrollbar",{directives:[{name:"show",rawName:"v-show",value:t.filtering,expression:"filtering"}],ref:"suggestionPanel",staticClass:"el-cascader__suggestion-panel",attrs:{tag:"ul","view-class":"el-cascader__suggestion-list"},nativeOn:{keydown:function(e){return t.handleSuggestionKeyDown(e)}}},[t.suggestions.length?t._l(t.suggestions,function(e,r){return n("li",{key:e.uid,class:["el-cascader__suggestion-item",e.checked&&"is-checked"],attrs:{tabindex:-1},on:{click:function(e){t.handleSuggestionClick(r)}}},[n("span",[t._v(t._s(e.text))]),e.checked?n("i",{staticClass:"el-icon-check"}):t._e()])}):t._t("empty",[n("li",{staticClass:"el-cascader__empty-text"},[t._v(t._s(t.t("el.cascader.noMatch")))])])],2):t._e()],1)])],1)},oh=[];ih._withStripped=!0;var ah=n(43),sh=n.n(ah),uh=n(35),lh=n.n(uh),ch=lh.a.keys,fh={expandTrigger:{newProp:"expandTrigger",type:String},changeOnSelect:{newProp:"checkStrictly",type:Boolean},hoverThreshold:{newProp:"hoverThreshold",type:Number}},dh={props:{placement:{type:String,default:"bottom-start"},appendToBody:gt.a.props.appendToBody,visibleArrow:{type:Boolean,default:!0},arrowOffset:gt.a.props.arrowOffset,offset:gt.a.props.offset,boundariesPadding:gt.a.props.boundariesPadding,popperOptions:gt.a.props.popperOptions,transformOrigin:gt.a.props.transformOrigin},methods:gt.a.methods,data:gt.a.data,beforeDestroy:gt.a.beforeDestroy},hh={medium:36,small:32,mini:28},ph={name:"ElCascader",directives:{Clickoutside:ft.a},mixins:[dh,tt.a,U.a,Q.a],inject:{elForm:{default:""},elFormItem:{default:""}},components:{ElInput:V.a,ElTag:vr.a,ElScrollbar:vt.a,ElCascaderPanel:sh.a},props:{value:{},options:Array,props:Object,size:String,placeholder:{type:String,default:function(){return Object(ks.t)("el.cascader.placeholder")}},disabled:Boolean,clearable:Boolean,filterable:Boolean,filterMethod:Function,separator:{type:String,default:" / "},showAllLevels:{type:Boolean,default:!0},collapseTags:Boolean,debounce:{type:Number,default:300},beforeFilter:{type:Function,default:function(){return function(){}}},popperClass:String},data:function(){return{dropDownVisible:!1,checkedValue:this.value,inputHover:!1,inputValue:null,presentText:null,presentTags:[],checkedNodes:[],filtering:!1,suggestions:[],inputInitialHeight:0,pressDeleteCount:0}},computed:{realSize:function(){var t=(this.elFormItem||{}).elFormItemSize;return this.size||t||(this.$ELEMENT||{}).size},tagSize:function(){return["small","mini"].indexOf(this.realSize)>-1?"mini":"small"},isDisabled:function(){return this.disabled||(this.elForm||{}).disabled},config:function(){var t=this.props||{},e=this.$attrs;return Object.keys(fh).forEach(function(n){var r=fh[n],i=r.newProp,o=r.type,a=e[n]||e[Object(H.kebabCase)(n)];Object(He.isDef)(n)&&!Object(He.isDef)(t[i])&&(o===Boolean&&""===a&&(a=!0),t[i]=a)}),t},multiple:function(){return this.config.multiple},leafOnly:function(){return!this.config.checkStrictly},readonly:function(){return!this.filterable||this.multiple},clearBtnVisible:function(){return!(!this.clearable||this.isDisabled||this.filtering||!this.inputHover)&&(this.multiple?!!this.checkedNodes.filter(function(t){return!t.isDisabled}).length:!!this.presentText)},panel:function(){return this.$refs.panel}},watch:{disabled:function(){this.computePresentContent()},value:function(t){Object(H.isEqual)(t,this.checkedValue)||(this.checkedValue=t,this.computePresentContent())},checkedValue:function(t){var e=this.value,n=this.dropDownVisible,r=this.config,i=r.checkStrictly,o=r.multiple;Object(H.isEqual)(t,e)&&!Object(If.isUndefined)(e)||(this.computePresentContent(),o||i||!n||this.toggleDropDownVisible(!1),this.$emit("input",t),this.$emit("change",t),this.dispatch("ElFormItem","el.form.change",[t]))},options:{handler:function(){this.$nextTick(this.computePresentContent)},deep:!0},presentText:function(t){this.inputValue=t},presentTags:function(t,e){this.multiple&&(t.length||e.length)&&this.$nextTick(this.updateStyle)},filtering:function(t){this.$nextTick(this.updatePopper)}},mounted:function(){var t=this,e=this.$refs.input;e&&e.$el&&(this.inputInitialHeight=e.$el.offsetHeight||hh[this.realSize]||40),this.isEmptyValue(this.value)||this.computePresentContent(),this.filterHandler=lt()(this.debounce,function(){var e=t.inputValue;if(!e)return void(t.filtering=!1);var n=t.beforeFilter(e);n&&n.then?n.then(t.getSuggestions):!1!==n?t.getSuggestions():t.filtering=!1}),Object(yr.addResizeListener)(this.$el,this.updateStyle)},beforeDestroy:function(){Object(yr.removeResizeListener)(this.$el,this.updateStyle)},methods:{getMigratingConfig:function(){return{props:{"expand-trigger":"expand-trigger is removed, use `props.expandTrigger` instead.","change-on-select":"change-on-select is removed, use `props.checkStrictly` instead.","hover-threshold":"hover-threshold is removed, use `props.hoverThreshold` instead"},events:{"active-item-change":"active-item-change is renamed to expand-change"}}},toggleDropDownVisible:function(t){var e=this;if(!this.isDisabled){var n=this.dropDownVisible,r=this.$refs.input;t=Object(He.isDef)(t)?t:!n,t!==n&&(this.dropDownVisible=t,t&&this.$nextTick(function(){e.updatePopper(),e.panel.scrollIntoView()}),r.$refs.input.setAttribute("aria-expanded",t),this.$emit("visible-change",t))}},handleDropdownLeave:function(){this.filtering=!1,this.inputValue=this.presentText,this.doDestroy()},handleKeyDown:function(t){switch(t.keyCode){case ch.enter:this.toggleDropDownVisible();break;case ch.down:this.toggleDropDownVisible(!0),this.focusFirstNode(),t.preventDefault();break;case ch.esc:case ch.tab:this.toggleDropDownVisible(!1)}},handleFocus:function(t){this.$emit("focus",t)},handleBlur:function(t){this.$emit("blur",t)},handleInput:function(t,e){!this.dropDownVisible&&this.toggleDropDownVisible(!0),e&&e.isComposing||(t?this.filterHandler():this.filtering=!1)},handleClear:function(){this.presentText="",this.panel.clearCheckedNodes()},handleExpandChange:function(t){this.$nextTick(this.updatePopper.bind(this)),this.$emit("expand-change",t),this.$emit("active-item-change",t)},focusFirstNode:function(){var t=this;this.$nextTick(function(){var e=t.filtering,n=t.$refs,r=n.popper,i=n.suggestionPanel,o=null;if(e&&i)o=i.$el.querySelector(".el-cascader__suggestion-item");else{o=r.querySelector(".el-cascader-menu").querySelector('.el-cascader-node[tabindex="-1"]')}o&&(o.focus(),!e&&o.click())})},computePresentContent:function(){var t=this;this.$nextTick(function(){t.config.multiple?(t.computePresentTags(),t.presentText=t.presentTags.length?" ":null):t.computePresentText()})},isEmptyValue:function(t){var e=this.multiple,n=this.panel.config.emitPath;return!(!e&&!n)&&Object(H.isEmpty)(t)},computePresentText:function(){var t=this.checkedValue,e=this.config;if(!this.isEmptyValue(t)){var n=this.panel.getNodeByValue(t);if(n&&(e.checkStrictly||n.isLeaf))return void(this.presentText=n.getText(this.showAllLevels,this.separator))}this.presentText=null},computePresentTags:function(){var t=this.isDisabled,e=this.leafOnly,n=this.showAllLevels,r=this.separator,i=this.collapseTags,o=this.getCheckedNodes(e),a=[],s=function(e){return{node:e,key:e.uid,text:e.getText(n,r),hitState:!1,closable:!t&&!e.isDisabled}};if(o.length){var u=o[0],l=o.slice(1),c=l.length;a.push(s(u)),c&&(i?a.push({key:-1,text:"+ "+c,closable:!1}):l.forEach(function(t){return a.push(s(t))}))}this.checkedNodes=o,this.presentTags=a},getSuggestions:function(){var t=this,e=this.filterMethod;Object(If.isFunction)(e)||(e=function(t,e){return t.text.includes(e)});var n=this.panel.getFlattedNodes(this.leafOnly).filter(function(n){return!n.isDisabled&&(n.text=n.getText(t.showAllLevels,t.separator)||"",e(n,t.inputValue))});this.multiple?this.presentTags.forEach(function(t){t.hitState=!1}):n.forEach(function(e){e.checked=Object(H.isEqual)(t.checkedValue,e.getValueByOption())}),this.filtering=!0,this.suggestions=n,this.$nextTick(this.updatePopper)},handleSuggestionKeyDown:function(t){var e=t.keyCode,n=t.target;switch(e){case ch.enter:n.click();break;case ch.up:var r=n.previousElementSibling;r&&r.focus();break;case ch.down:var i=n.nextElementSibling;i&&i.focus();break;case ch.esc:case ch.tab:this.toggleDropDownVisible(!1)}},handleDelete:function(){var t=this.inputValue,e=this.pressDeleteCount,n=this.presentTags,r=n.length-1,i=n[r];this.pressDeleteCount=t?0:e+1,i&&this.pressDeleteCount&&(i.hitState?this.deleteTag(i):i.hitState=!0)},handleSuggestionClick:function(t){var e=this.multiple,n=this.suggestions[t];if(e){var r=n.checked;n.doCheck(!r),this.panel.calculateMultiCheckedValue()}else this.checkedValue=n.getValueByOption(),this.toggleDropDownVisible(!1)},deleteTag:function(t){var e=this.checkedValue,n=t.node.getValueByOption(),r=e.find(function(t){return Object(H.isEqual)(t,n)});this.checkedValue=e.filter(function(t){return!Object(H.isEqual)(t,n)}),this.$emit("remove-tag",r)},updateStyle:function(){var t=this.$el,e=this.inputInitialHeight;if(!this.$isServer&&t){var n=this.$refs.suggestionPanel,r=t.querySelector(".el-input__inner");if(r){var i=t.querySelector(".el-cascader__tags"),o=null;if(n&&(o=n.$el)){o.querySelector(".el-cascader__suggestion-list").style.minWidth=r.offsetWidth+"px"}if(i){var a=Math.round(i.getBoundingClientRect().height),s=Math.max(a+6,e)+"px";r.style.height=s,this.dropDownVisible&&this.updatePopper()}}}},getCheckedNodes:function(t){return this.panel.getCheckedNodes(t)}}},gh=ph,mh=r(gh,ih,oh,!1,null,null,null);mh.options.__file="packages/cascader/src/cascader.vue";var vh=mh.exports;vh.install=function(t){t.component(vh.name,vh)};var yh=vh,bh=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:t.hide,expression:"hide"}],class:["el-color-picker",t.colorDisabled?"is-disabled":"",t.colorSize?"el-color-picker--"+t.colorSize:""]},[t.colorDisabled?n("div",{staticClass:"el-color-picker__mask"}):t._e(),n("div",{staticClass:"el-color-picker__trigger",on:{click:t.handleTrigger}},[n("span",{staticClass:"el-color-picker__color",class:{"is-alpha":t.showAlpha}},[n("span",{staticClass:"el-color-picker__color-inner",style:{backgroundColor:t.displayedColor}}),t.value||t.showPanelColor?t._e():n("span",{staticClass:"el-color-picker__empty el-icon-close"})]),n("span",{directives:[{name:"show",rawName:"v-show",value:t.value||t.showPanelColor,expression:"value || showPanelColor"}],staticClass:"el-color-picker__icon el-icon-arrow-down"})]),n("picker-dropdown",{ref:"dropdown",class:["el-color-picker__panel",t.popperClass||""],attrs:{color:t.color,"show-alpha":t.showAlpha,predefine:t.predefine},on:{pick:t.confirmValue,clear:t.clearValue},model:{value:t.showPicker,callback:function(e){t.showPicker=e},expression:"showPicker"}})],1)},_h=[];bh._withStripped=!0;var wh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xh=function(t,e,n){return[t,e*n/((t=(2-e)*n)<1?t:2-t)||0,t/2]},kh=function(t){return"string"==typeof t&&-1!==t.indexOf(".")&&1===parseFloat(t)},Sh=function(t){return"string"==typeof t&&-1!==t.indexOf("%")},Ch=function(t,e){kh(t)&&(t="100%");var n=Sh(t);return t=Math.min(e,Math.max(0,parseFloat(t))),n&&(t=parseInt(t*e,10)/100),Math.abs(t-e)<1e-6?1:t%e/parseFloat(e)},Eh={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"},Th=function(t){var e=t.r,n=t.g,r=t.b,i=function(t){t=Math.min(Math.round(t),255);var e=Math.floor(t/16),n=t%16;return""+(Eh[e]||e)+(Eh[n]||n)};return isNaN(e)||isNaN(n)||isNaN(r)?"":"#"+i(e)+i(n)+i(r)},Ah={A:10,B:11,C:12,D:13,E:14,F:15},Oh=function(t){return 2===t.length?16*(Ah[t[0].toUpperCase()]||+t[0])+(Ah[t[1].toUpperCase()]||+t[1]):Ah[t[1].toUpperCase()]||+t[1]},Ph=function(t,e,n){e/=100,n/=100;var r=e,i=Math.max(n,.01),o=void 0,a=void 0;return n*=2,e*=n<=1?n:2-n,r*=i<=1?i:2-i,a=(n+e)/2,o=0===n?2*r/(i+r):2*e/(n+e),{h:t,s:100*o,v:100*a}},Nh=function(t,e,n){t=Ch(t,255),e=Ch(e,255),n=Ch(n,255);var r=Math.max(t,e,n),i=Math.min(t,e,n),o=void 0,a=void 0,s=r,u=r-i;if(a=0===r?0:u/r,r===i)o=0;else{switch(r){case t:o=(e-n)/u+(e<n?6:0);break;case e:o=(n-t)/u+2;break;case n:o=(t-e)/u+4}o/=6}return{h:360*o,s:100*a,v:100*s}},Dh=function(t,e,n){t=6*Ch(t,360),e=Ch(e,100),n=Ch(n,100);var r=Math.floor(t),i=t-r,o=n*(1-e),a=n*(1-i*e),s=n*(1-(1-i)*e),u=r%6,l=[n,a,o,o,s,n][u],c=[s,n,n,a,o,o][u],f=[o,o,s,n,n,a][u];return{r:Math.round(255*l),g:Math.round(255*c),b:Math.round(255*f)}},Mh=function(){function t(e){T(this,t),this._hue=0,this._saturation=100,this._value=100,this._alpha=100,this.enableAlpha=!1,this.format="hex",this.value="",e=e||{};for(var n in e)e.hasOwnProperty(n)&&(this[n]=e[n]);this.doOnChange()}return t.prototype.set=function(t,e){if(1!==arguments.length||"object"!==(void 0===t?"undefined":wh(t)))this["_"+t]=e,this.doOnChange();else for(var n in t)t.hasOwnProperty(n)&&this.set(n,t[n])},t.prototype.get=function(t){return this["_"+t]},t.prototype.toRgb=function(){return Dh(this._hue,this._saturation,this._value)},t.prototype.fromString=function(t){var e=this;if(!t)return this._hue=0,this._saturation=100,this._value=100,void this.doOnChange();var n=function(t,n,r){e._hue=Math.max(0,Math.min(360,t)),e._saturation=Math.max(0,Math.min(100,n)),e._value=Math.max(0,Math.min(100,r)),e.doOnChange()};if(-1!==t.indexOf("hsl")){var r=t.replace(/hsla|hsl|\(|\)/gm,"").split(/\s|,/g).filter(function(t){return""!==t}).map(function(t,e){return e>2?parseFloat(t):parseInt(t,10)});if(4===r.length?this._alpha=Math.floor(100*parseFloat(r[3])):3===r.length&&(this._alpha=100),r.length>=3){var i=Ph(r[0],r[1],r[2]);n(i.h,i.s,i.v)}}else if(-1!==t.indexOf("hsv")){var o=t.replace(/hsva|hsv|\(|\)/gm,"").split(/\s|,/g).filter(function(t){return""!==t}).map(function(t,e){return e>2?parseFloat(t):parseInt(t,10)});4===o.length?this._alpha=Math.floor(100*parseFloat(o[3])):3===o.length&&(this._alpha=100),o.length>=3&&n(o[0],o[1],o[2])}else if(-1!==t.indexOf("rgb")){var a=t.replace(/rgba|rgb|\(|\)/gm,"").split(/\s|,/g).filter(function(t){return""!==t}).map(function(t,e){return e>2?parseFloat(t):parseInt(t,10)});if(4===a.length?this._alpha=Math.floor(100*parseFloat(a[3])):3===a.length&&(this._alpha=100),a.length>=3){var s=Nh(a[0],a[1],a[2]),u=s.h,l=s.s,c=s.v;n(u,l,c)}}else if(-1!==t.indexOf("#")){var f=t.replace("#","").trim();if(!/^(?:[0-9a-fA-F]{3}){1,2}|[0-9a-fA-F]{8}$/.test(f))return;var d=void 0,h=void 0,p=void 0;3===f.length?(d=Oh(f[0]+f[0]),h=Oh(f[1]+f[1]),p=Oh(f[2]+f[2])):6!==f.length&&8!==f.length||(d=Oh(f.substring(0,2)),h=Oh(f.substring(2,4)),p=Oh(f.substring(4,6))),8===f.length?this._alpha=Math.floor(Oh(f.substring(6))/255*100):3!==f.length&&6!==f.length||(this._alpha=100);var g=Nh(d,h,p),m=g.h,v=g.s,y=g.v;n(m,v,y)}},t.prototype.compare=function(t){return Math.abs(t._hue-this._hue)<2&&Math.abs(t._saturation-this._saturation)<1&&Math.abs(t._value-this._value)<1&&Math.abs(t._alpha-this._alpha)<1},t.prototype.doOnChange=function(){var t=this._hue,e=this._saturation,n=this._value,r=this._alpha,i=this.format;if(this.enableAlpha)switch(i){case"hsl":var o=xh(t,e/100,n/100);this.value="hsla("+t+", "+Math.round(100*o[1])+"%, "+Math.round(100*o[2])+"%, "+r/100+")";break;case"hsv":this.value="hsva("+t+", "+Math.round(e)+"%, "+Math.round(n)+"%, "+r/100+")";break;default:var a=Dh(t,e,n),s=a.r,u=a.g,l=a.b;this.value="rgba("+s+", "+u+", "+l+", "+r/100+")"}else switch(i){case"hsl":var c=xh(t,e/100,n/100);this.value="hsl("+t+", "+Math.round(100*c[1])+"%, "+Math.round(100*c[2])+"%)";break;case"hsv":this.value="hsv("+t+", "+Math.round(e)+"%, "+Math.round(n)+"%)";break;case"rgb":var f=Dh(t,e,n),d=f.r,h=f.g,p=f.b;this.value="rgb("+d+", "+h+", "+p+")";break;default:this.value=Th(Dh(t,e,n))}},t}(),Ih=Mh,Rh=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":t.doDestroy}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.showPopper,expression:"showPopper"}],staticClass:"el-color-dropdown"},[n("div",{staticClass:"el-color-dropdown__main-wrapper"},[n("hue-slider",{ref:"hue",staticStyle:{float:"right"},attrs:{color:t.color,vertical:""}}),n("sv-panel",{ref:"sl",attrs:{color:t.color}})],1),t.showAlpha?n("alpha-slider",{ref:"alpha",attrs:{color:t.color}}):t._e(),t.predefine?n("predefine",{attrs:{color:t.color,colors:t.predefine}}):t._e(),n("div",{staticClass:"el-color-dropdown__btns"},[n("span",{staticClass:"el-color-dropdown__value"},[n("el-input",{attrs:{"validate-event":!1,size:"mini"},on:{blur:t.handleConfirm},nativeOn:{keyup:function(e){return"button"in e||!t._k(e.keyCode,"enter",13,e.key,"Enter")?t.handleConfirm(e):null}},model:{value:t.customInput,callback:function(e){t.customInput=e},expression:"customInput"}})],1),n("el-button",{staticClass:"el-color-dropdown__link-btn",attrs:{size:"mini",type:"text"},on:{click:function(e){t.$emit("clear")}}},[t._v("\n "+t._s(t.t("el.colorpicker.clear"))+"\n ")]),n("el-button",{staticClass:"el-color-dropdown__btn",attrs:{plain:"",size:"mini"},on:{click:t.confirmValue}},[t._v("\n "+t._s(t.t("el.colorpicker.confirm"))+"\n ")])],1)],1)])},$h=[];Rh._withStripped=!0;var Lh=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-color-svpanel",style:{backgroundColor:t.background}},[n("div",{staticClass:"el-color-svpanel__white"}),n("div",{staticClass:"el-color-svpanel__black"}),n("div",{staticClass:"el-color-svpanel__cursor",style:{top:t.cursorTop+"px",left:t.cursorLeft+"px"}},[n("div")])])},jh=[];Lh._withStripped=!0;var Fh=!1,Bh=function(t,e){if(!ai.a.prototype.$isServer){var n=function(t){e.drag&&e.drag(t)},r=function t(r){document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",t),document.onselectstart=null,document.ondragstart=null,Fh=!1,e.end&&e.end(r)};t.addEventListener("mousedown",function(t){Fh||(document.onselectstart=function(){return!1},document.ondragstart=function(){return!1},document.addEventListener("mousemove",n),document.addEventListener("mouseup",r),Fh=!0,e.start&&e.start(t))})}},Vh={name:"el-sl-panel",props:{color:{required:!0}},computed:{colorValue:function(){return{hue:this.color.get("hue"),value:this.color.get("value")}}},watch:{colorValue:function(){this.update()}},methods:{update:function(){var t=this.color.get("saturation"),e=this.color.get("value"),n=this.$el,r=n.clientWidth,i=n.clientHeight;this.cursorLeft=t*r/100,this.cursorTop=(100-e)*i/100,this.background="hsl("+this.color.get("hue")+", 100%, 50%)"},handleDrag:function(t){var e=this.$el,n=e.getBoundingClientRect(),r=t.clientX-n.left,i=t.clientY-n.top;r=Math.max(0,r),r=Math.min(r,n.width),i=Math.max(0,i),i=Math.min(i,n.height),this.cursorLeft=r,this.cursorTop=i,this.color.set({saturation:r/n.width*100,value:100-i/n.height*100})}},mounted:function(){var t=this;Bh(this.$el,{drag:function(e){t.handleDrag(e)},end:function(e){t.handleDrag(e)}}),this.update()},data:function(){return{cursorTop:0,cursorLeft:0,background:"hsl(0, 100%, 50%)"}}},zh=Vh,Uh=r(zh,Lh,jh,!1,null,null,null);Uh.options.__file="packages/color-picker/src/components/sv-panel.vue";var Hh=Uh.exports,qh=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-color-hue-slider",class:{"is-vertical":t.vertical}},[n("div",{ref:"bar",staticClass:"el-color-hue-slider__bar",on:{click:t.handleClick}}),n("div",{ref:"thumb",staticClass:"el-color-hue-slider__thumb",style:{left:t.thumbLeft+"px",top:t.thumbTop+"px"}})])},Wh=[];qh._withStripped=!0;var Gh={name:"el-color-hue-slider",props:{color:{required:!0},vertical:Boolean},data:function(){return{thumbLeft:0,thumbTop:0}},computed:{hueValue:function(){return this.color.get("hue")}},watch:{hueValue:function(){this.update()}},methods:{handleClick:function(t){var e=this.$refs.thumb;t.target!==e&&this.handleDrag(t)},handleDrag:function(t){var e=this.$el.getBoundingClientRect(),n=this.$refs.thumb,r=void 0;if(this.vertical){var i=t.clientY-e.top;i=Math.min(i,e.height-n.offsetHeight/2),i=Math.max(n.offsetHeight/2,i),r=Math.round((i-n.offsetHeight/2)/(e.height-n.offsetHeight)*360)}else{var o=t.clientX-e.left;o=Math.min(o,e.width-n.offsetWidth/2),o=Math.max(n.offsetWidth/2,o),r=Math.round((o-n.offsetWidth/2)/(e.width-n.offsetWidth)*360)}this.color.set("hue",r)},getThumbLeft:function(){if(this.vertical)return 0;var t=this.$el,e=this.color.get("hue");if(!t)return 0;var n=this.$refs.thumb;return Math.round(e*(t.offsetWidth-n.offsetWidth/2)/360)},getThumbTop:function(){if(!this.vertical)return 0;var t=this.$el,e=this.color.get("hue");if(!t)return 0;var n=this.$refs.thumb;return Math.round(e*(t.offsetHeight-n.offsetHeight/2)/360)},update:function(){this.thumbLeft=this.getThumbLeft(),this.thumbTop=this.getThumbTop()}},mounted:function(){var t=this,e=this.$refs,n=e.bar,r=e.thumb,i={drag:function(e){t.handleDrag(e)},end:function(e){t.handleDrag(e)}};Bh(n,i),Bh(r,i),this.update()}},Yh=Gh,Kh=r(Yh,qh,Wh,!1,null,null,null);Kh.options.__file="packages/color-picker/src/components/hue-slider.vue";var Xh=Kh.exports,Jh=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-color-alpha-slider",class:{"is-vertical":t.vertical}},[n("div",{ref:"bar",staticClass:"el-color-alpha-slider__bar",style:{background:t.background},on:{click:t.handleClick}}),n("div",{ref:"thumb",staticClass:"el-color-alpha-slider__thumb",style:{left:t.thumbLeft+"px",top:t.thumbTop+"px"}})])},Qh=[];Jh._withStripped=!0;var Zh={name:"el-color-alpha-slider",props:{color:{required:!0},vertical:Boolean},watch:{"color._alpha":function(){this.update()},"color.value":function(){this.update()}},methods:{handleClick:function(t){var e=this.$refs.thumb;t.target!==e&&this.handleDrag(t)},handleDrag:function(t){var e=this.$el.getBoundingClientRect(),n=this.$refs.thumb;if(this.vertical){var r=t.clientY-e.top;r=Math.max(n.offsetHeight/2,r),r=Math.min(r,e.height-n.offsetHeight/2),this.color.set("alpha",Math.round((r-n.offsetHeight/2)/(e.height-n.offsetHeight)*100))}else{var i=t.clientX-e.left;i=Math.max(n.offsetWidth/2,i),i=Math.min(i,e.width-n.offsetWidth/2),this.color.set("alpha",Math.round((i-n.offsetWidth/2)/(e.width-n.offsetWidth)*100))}},getThumbLeft:function(){if(this.vertical)return 0;var t=this.$el,e=this.color._alpha;if(!t)return 0;var n=this.$refs.thumb;return Math.round(e*(t.offsetWidth-n.offsetWidth/2)/100)},getThumbTop:function(){if(!this.vertical)return 0;var t=this.$el,e=this.color._alpha;if(!t)return 0;var n=this.$refs.thumb;return Math.round(e*(t.offsetHeight-n.offsetHeight/2)/100)},getBackground:function(){if(this.color&&this.color.value){var t=this.color.toRgb(),e=t.r,n=t.g,r=t.b;return"linear-gradient(to right, rgba("+e+", "+n+", "+r+", 0) 0%, rgba("+e+", "+n+", "+r+", 1) 100%)"}return null},update:function(){this.thumbLeft=this.getThumbLeft(),this.thumbTop=this.getThumbTop(),this.background=this.getBackground()}},data:function(){return{thumbLeft:0,thumbTop:0,background:null}},mounted:function(){var t=this,e=this.$refs,n=e.bar,r=e.thumb,i={drag:function(e){t.handleDrag(e)},end:function(e){t.handleDrag(e)}};Bh(n,i),Bh(r,i),this.update()}},tp=Zh,ep=r(tp,Jh,Qh,!1,null,null,null);ep.options.__file="packages/color-picker/src/components/alpha-slider.vue";var np=ep.exports,rp=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-color-predefine"},[n("div",{staticClass:"el-color-predefine__colors"},t._l(t.rgbaColors,function(e,r){return n("div",{key:t.colors[r],staticClass:"el-color-predefine__color-selector",class:{selected:e.selected,"is-alpha":e._alpha<100},on:{click:function(e){t.handleSelect(r)}}},[n("div",{style:{"background-color":e.value}})])}),0)])},ip=[];rp._withStripped=!0;var op={props:{colors:{type:Array,required:!0},color:{required:!0}},data:function(){return{rgbaColors:this.parseColors(this.colors,this.color)}},methods:{handleSelect:function(t){this.color.fromString(this.colors[t])},parseColors:function(t,e){return t.map(function(t){var n=new Ih;return n.enableAlpha=!0,n.format="rgba",n.fromString(t),n.selected=n.value===e.value,n})}},watch:{"$parent.currentColor":function(t){var e=new Ih;e.fromString(t),this.rgbaColors.forEach(function(t){t.selected=e.compare(t)})},colors:function(t){this.rgbaColors=this.parseColors(t,this.color)},color:function(t){this.rgbaColors=this.parseColors(this.colors,t)}}},ap=op,sp=r(ap,rp,ip,!1,null,null,null);sp.options.__file="packages/color-picker/src/components/predefine.vue";var up=sp.exports,lp={name:"el-color-picker-dropdown",mixins:[gt.a,U.a],components:{SvPanel:Hh,HueSlider:Xh,AlphaSlider:np,ElInput:V.a,ElButton:Pt.a,Predefine:up},props:{color:{required:!0},showAlpha:Boolean,predefine:Array},data:function(){return{customInput:""}},computed:{currentColor:function(){var t=this.$parent;return t.value||t.showPanelColor?t.color.value:""}},methods:{confirmValue:function(){this.$emit("pick")},handleConfirm:function(){this.color.fromString(this.customInput)}},mounted:function(){this.$parent.popperElm=this.popperElm=this.$el,this.referenceElm=this.$parent.$el},watch:{showPopper:function(t){var e=this;!0===t&&this.$nextTick(function(){var t=e.$refs,n=t.sl,r=t.hue,i=t.alpha;n&&n.update(),r&&r.update(),i&&i.update()})},currentColor:{immediate:!0,handler:function(t){this.customInput=t}}}},cp=lp,fp=r(cp,Rh,$h,!1,null,null,null);fp.options.__file="packages/color-picker/src/components/picker-dropdown.vue";var dp=fp.exports,hp={name:"ElColorPicker",mixins:[tt.a],props:{value:String,showAlpha:Boolean,colorFormat:String,disabled:Boolean,size:String,popperClass:String,predefine:Array},inject:{elForm:{default:""},elFormItem:{default:""}},directives:{Clickoutside:ft.a},computed:{displayedColor:function(){return this.value||this.showPanelColor?this.displayedRgb(this.color,this.showAlpha):"transparent"},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},colorSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},colorDisabled:function(){return this.disabled||(this.elForm||{}).disabled}},watch:{value:function(t){t?t&&t!==this.color.value&&this.color.fromString(t):this.showPanelColor=!1},color:{deep:!0,handler:function(){this.showPanelColor=!0}},displayedColor:function(t){if(this.showPicker){var e=new Ih({enableAlpha:this.showAlpha,format:this.colorFormat});e.fromString(this.value);t!==this.displayedRgb(e,this.showAlpha)&&this.$emit("active-change",t)}}},methods:{handleTrigger:function(){this.colorDisabled||(this.showPicker=!this.showPicker)},confirmValue:function(){var t=this.color.value;this.$emit("input",t),this.$emit("change",t),this.dispatch("ElFormItem","el.form.change",t),this.showPicker=!1},clearValue:function(){this.$emit("input",null),this.$emit("change",null),null!==this.value&&this.dispatch("ElFormItem","el.form.change",null),this.showPanelColor=!1,this.showPicker=!1,this.resetColor()},hide:function(){this.showPicker=!1,this.resetColor()},resetColor:function(){var t=this;this.$nextTick(function(e){t.value?t.color.fromString(t.value):t.showPanelColor=!1})},displayedRgb:function(t,e){if(!(t instanceof Ih))throw Error("color should be instance of Color Class");var n=t.toRgb(),r=n.r,i=n.g,o=n.b;return e?"rgba("+r+", "+i+", "+o+", "+t.get("alpha")/100+")":"rgb("+r+", "+i+", "+o+")"}},mounted:function(){var t=this.value;t&&this.color.fromString(t),this.popperElm=this.$refs.dropdown.$el},data:function(){return{color:new Ih({enableAlpha:this.showAlpha,format:this.colorFormat}),showPicker:!1,showPanelColor:!1}},components:{PickerDropdown:dp}},pp=hp,gp=r(pp,bh,_h,!1,null,null,null);gp.options.__file="packages/color-picker/src/main.vue";var mp=gp.exports;mp.install=function(t){t.component(mp.name,mp)};var vp=mp,yp=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-transfer"},[n("transfer-panel",t._b({ref:"leftPanel",attrs:{data:t.sourceData,title:t.titles[0]||t.t("el.transfer.titles.0"),"default-checked":t.leftDefaultChecked,placeholder:t.filterPlaceholder||t.t("el.transfer.filterPlaceholder")},on:{"checked-change":t.onSourceCheckedChange}},"transfer-panel",t.$props,!1),[t._t("left-footer")],2),n("div",{staticClass:"el-transfer__buttons"},[n("el-button",{class:["el-transfer__button",t.hasButtonTexts?"is-with-texts":""],attrs:{type:"primary",disabled:0===t.rightChecked.length},nativeOn:{click:function(e){return t.addToLeft(e)}}},[n("i",{staticClass:"el-icon-arrow-left"}),void 0!==t.buttonTexts[0]?n("span",[t._v(t._s(t.buttonTexts[0]))]):t._e()]),n("el-button",{class:["el-transfer__button",t.hasButtonTexts?"is-with-texts":""],attrs:{type:"primary",disabled:0===t.leftChecked.length},nativeOn:{click:function(e){return t.addToRight(e)}}},[void 0!==t.buttonTexts[1]?n("span",[t._v(t._s(t.buttonTexts[1]))]):t._e(),n("i",{staticClass:"el-icon-arrow-right"})])],1),n("transfer-panel",t._b({ref:"rightPanel",attrs:{data:t.targetData,title:t.titles[1]||t.t("el.transfer.titles.1"),"default-checked":t.rightDefaultChecked,placeholder:t.filterPlaceholder||t.t("el.transfer.filterPlaceholder")},on:{"checked-change":t.onTargetCheckedChange}},"transfer-panel",t.$props,!1),[t._t("right-footer")],2)],1)},bp=[];yp._withStripped=!0;var _p=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-transfer-panel"},[n("p",{staticClass:"el-transfer-panel__header"},[n("el-checkbox",{attrs:{indeterminate:t.isIndeterminate},on:{change:t.handleAllCheckedChange},model:{value:t.allChecked,callback:function(e){t.allChecked=e},expression:"allChecked"}},[t._v("\n "+t._s(t.title)+"\n "),n("span",[t._v(t._s(t.checkedSummary))])])],1),n("div",{class:["el-transfer-panel__body",t.hasFooter?"is-with-footer":""]},[t.filterable?n("el-input",{staticClass:"el-transfer-panel__filter",attrs:{size:"small",placeholder:t.placeholder},nativeOn:{mouseenter:function(e){t.inputHover=!0},mouseleave:function(e){t.inputHover=!1}},model:{value:t.query,callback:function(e){t.query=e},expression:"query"}},[n("i",{class:["el-input__icon","el-icon-"+t.inputIcon],attrs:{slot:"prefix"},on:{click:t.clearQuery},slot:"prefix"})]):t._e(),n("el-checkbox-group",{directives:[{name:"show",rawName:"v-show",value:!t.hasNoMatch&&t.data.length>0,expression:"!hasNoMatch && data.length > 0"}],staticClass:"el-transfer-panel__list",class:{"is-filterable":t.filterable},model:{value:t.checked,callback:function(e){t.checked=e},expression:"checked"}},t._l(t.filteredData,function(e){return n("el-checkbox",{key:e[t.keyProp],staticClass:"el-transfer-panel__item",attrs:{label:e[t.keyProp],disabled:e[t.disabledProp]}},[n("option-content",{attrs:{option:e}})],1)}),1),n("p",{directives:[{name:"show",rawName:"v-show",value:t.hasNoMatch,expression:"hasNoMatch"}],staticClass:"el-transfer-panel__empty"},[t._v(t._s(t.t("el.transfer.noMatch")))]),n("p",{directives:[{name:"show",rawName:"v-show",value:0===t.data.length&&!t.hasNoMatch,expression:"data.length === 0 && !hasNoMatch"}],staticClass:"el-transfer-panel__empty"},[t._v(t._s(t.t("el.transfer.noData")))])],1),t.hasFooter?n("p",{staticClass:"el-transfer-panel__footer"},[t._t("default")],2):t._e()])},wp=[];_p._withStripped=!0;var xp={mixins:[U.a],name:"ElTransferPanel",componentName:"ElTransferPanel",components:{ElCheckboxGroup:Bi.a,ElCheckbox:Qr.a,ElInput:V.a,OptionContent:{props:{option:Object},render:function(t){var e=function t(e){return"ElTransferPanel"===e.$options.componentName?e:e.$parent?t(e.$parent):e}(this),n=e.$parent||e;return e.renderContent?e.renderContent(t,this.option):n.$scopedSlots.default?n.$scopedSlots.default({option:this.option}):t("span",[this.option[e.labelProp]||this.option[e.keyProp]])}}},props:{data:{type:Array,default:function(){return[]}},renderContent:Function,placeholder:String,title:String,filterable:Boolean,format:Object,filterMethod:Function,defaultChecked:Array,props:Object},data:function(){return{checked:[],allChecked:!1,query:"",inputHover:!1,checkChangeByUser:!0}},watch:{checked:function(t,e){if(this.updateAllChecked(),this.checkChangeByUser){var n=t.concat(e).filter(function(n){return-1===t.indexOf(n)||-1===e.indexOf(n)});this.$emit("checked-change",t,n)}else this.$emit("checked-change",t),this.checkChangeByUser=!0},data:function(){var t=this,e=[],n=this.filteredData.map(function(e){return e[t.keyProp]});this.checked.forEach(function(t){n.indexOf(t)>-1&&e.push(t)}),this.checkChangeByUser=!1,this.checked=e},checkableData:function(){this.updateAllChecked()},defaultChecked:{immediate:!0,handler:function(t,e){var n=this;if(!e||t.length!==e.length||!t.every(function(t){return e.indexOf(t)>-1})){var r=[],i=this.checkableData.map(function(t){return t[n.keyProp]});t.forEach(function(t){i.indexOf(t)>-1&&r.push(t)}),this.checkChangeByUser=!1,this.checked=r}}}},computed:{filteredData:function(){var t=this;return this.data.filter(function(e){return"function"==typeof t.filterMethod?t.filterMethod(t.query,e):(e[t.labelProp]||e[t.keyProp].toString()).toLowerCase().indexOf(t.query.toLowerCase())>-1})},checkableData:function(){var t=this;return this.filteredData.filter(function(e){return!e[t.disabledProp]})},checkedSummary:function(){var t=this.checked.length,e=this.data.length,n=this.format,r=n.noChecked,i=n.hasChecked;return r&&i?t>0?i.replace(/\${checked}/g,t).replace(/\${total}/g,e):r.replace(/\${total}/g,e):t+"/"+e},isIndeterminate:function(){var t=this.checked.length;return t>0&&t<this.checkableData.length},hasNoMatch:function(){return this.query.length>0&&0===this.filteredData.length},inputIcon:function(){return this.query.length>0&&this.inputHover?"circle-close":"search"},labelProp:function(){return this.props.label||"label"},keyProp:function(){return this.props.key||"key"},disabledProp:function(){return this.props.disabled||"disabled"},hasFooter:function(){return!!this.$slots.default}},methods:{updateAllChecked:function(){var t=this,e=this.checkableData.map(function(e){return e[t.keyProp]});this.allChecked=e.length>0&&e.every(function(e){return t.checked.indexOf(e)>-1})},handleAllCheckedChange:function(t){var e=this;this.checked=t?this.checkableData.map(function(t){return t[e.keyProp]}):[]},clearQuery:function(){"circle-close"===this.inputIcon&&(this.query="")}}},kp=xp,Sp=r(kp,_p,wp,!1,null,null,null);Sp.options.__file="packages/transfer/src/transfer-panel.vue";var Cp=Sp.exports,Ep={name:"ElTransfer",mixins:[tt.a,U.a,Q.a],components:{TransferPanel:Cp,ElButton:Pt.a},props:{data:{type:Array,default:function(){return[]}},titles:{type:Array,default:function(){return[]}},buttonTexts:{type:Array,default:function(){return[]}},filterPlaceholder:{type:String,default:""},filterMethod:Function,leftDefaultChecked:{type:Array,default:function(){return[]}},rightDefaultChecked:{type:Array,default:function(){return[]}},renderContent:Function,value:{type:Array,default:function(){return[]}},format:{type:Object,default:function(){return{}}},filterable:Boolean,props:{type:Object,default:function(){return{label:"label",key:"key",disabled:"disabled"}}},targetOrder:{type:String,default:"original"}},data:function(){return{leftChecked:[],rightChecked:[]}},computed:{dataObj:function(){var t=this.props.key;return this.data.reduce(function(e,n){return(e[n[t]]=n)&&e},{})},sourceData:function(){var t=this;return this.data.filter(function(e){return-1===t.value.indexOf(e[t.props.key])})},targetData:function(){var t=this;return"original"===this.targetOrder?this.data.filter(function(e){return t.value.indexOf(e[t.props.key])>-1}):this.value.reduce(function(e,n){var r=t.dataObj[n];return r&&e.push(r),e},[])},hasButtonTexts:function(){return 2===this.buttonTexts.length}},watch:{value:function(t){this.dispatch("ElFormItem","el.form.change",t)}},methods:{getMigratingConfig:function(){return{props:{"footer-format":"footer-format is renamed to format."}}},onSourceCheckedChange:function(t,e){this.leftChecked=t,void 0!==e&&this.$emit("left-check-change",t,e)},onTargetCheckedChange:function(t,e){this.rightChecked=t,void 0!==e&&this.$emit("right-check-change",t,e)},addToLeft:function(){var t=this.value.slice();this.rightChecked.forEach(function(e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}),this.$emit("input",t),this.$emit("change",t,"left",this.rightChecked)},addToRight:function(){var t=this,e=this.value.slice(),n=[],r=this.props.key;this.data.forEach(function(e){var i=e[r];t.leftChecked.indexOf(i)>-1&&-1===t.value.indexOf(i)&&n.push(i)}),e="unshift"===this.targetOrder?n.concat(e):e.concat(n),this.$emit("input",e),this.$emit("change",e,"right",this.leftChecked)},clearQuery:function(t){"left"===t?this.$refs.leftPanel.query="":"right"===t&&(this.$refs.rightPanel.query="")}}},Tp=Ep,Ap=r(Tp,yp,bp,!1,null,null,null);Ap.options.__file="packages/transfer/src/main.vue";var Op=Ap.exports;Op.install=function(t){t.component(Op.name,Op)};var Pp=Op,Np=function(){var t=this,e=t.$createElement;return(t._self._c||e)("section",{staticClass:"el-container",class:{"is-vertical":t.isVertical}},[t._t("default")],2)},Dp=[];Np._withStripped=!0;var Mp={name:"ElContainer",componentName:"ElContainer",props:{direction:String},computed:{isVertical:function(){return"vertical"===this.direction||"horizontal"!==this.direction&&(!(!this.$slots||!this.$slots.default)&&this.$slots.default.some(function(t){var e=t.componentOptions&&t.componentOptions.tag;return"el-header"===e||"el-footer"===e}))}}},Ip=Mp,Rp=r(Ip,Np,Dp,!1,null,null,null);Rp.options.__file="packages/container/src/main.vue";var $p=Rp.exports;$p.install=function(t){t.component($p.name,$p)};var Lp=$p,jp=function(){var t=this,e=t.$createElement;return(t._self._c||e)("header",{staticClass:"el-header",style:{height:t.height}},[t._t("default")],2)},Fp=[];jp._withStripped=!0;var Bp={name:"ElHeader",componentName:"ElHeader",props:{height:{type:String,default:"60px"}}},Vp=Bp,zp=r(Vp,jp,Fp,!1,null,null,null);zp.options.__file="packages/header/src/main.vue";var Up=zp.exports;Up.install=function(t){t.component(Up.name,Up)};var Hp=Up,qp=function(){var t=this,e=t.$createElement;return(t._self._c||e)("aside",{staticClass:"el-aside",style:{width:t.width}},[t._t("default")],2)},Wp=[];qp._withStripped=!0;var Gp={name:"ElAside",componentName:"ElAside",props:{width:{type:String,default:"300px"}}},Yp=Gp,Kp=r(Yp,qp,Wp,!1,null,null,null);Kp.options.__file="packages/aside/src/main.vue";var Xp=Kp.exports;Xp.install=function(t){t.component(Xp.name,Xp)};var Jp=Xp,Qp=function(){var t=this,e=t.$createElement;return(t._self._c||e)("main",{staticClass:"el-main"},[t._t("default")],2)},Zp=[];Qp._withStripped=!0;var tg={name:"ElMain",componentName:"ElMain"},eg=tg,ng=r(eg,Qp,Zp,!1,null,null,null);ng.options.__file="packages/main/src/main.vue";var rg=ng.exports;rg.install=function(t){t.component(rg.name,rg)};var ig=rg,og=function(){var t=this,e=t.$createElement;return(t._self._c||e)("footer",{staticClass:"el-footer",style:{height:t.height}},[t._t("default")],2)},ag=[];og._withStripped=!0;var sg={name:"ElFooter",componentName:"ElFooter",props:{height:{type:String,default:"60px"}}},ug=sg,lg=r(ug,og,ag,!1,null,null,null);lg.options.__file="packages/footer/src/main.vue";var cg=lg.exports;cg.install=function(t){t.component(cg.name,cg)};var fg=cg,dg={name:"ElTimeline",props:{reverse:{type:Boolean,default:!1}},provide:function(){return{timeline:this}},render:function(){var t=arguments[0],e=this.reverse,n={"el-timeline":!0,"is-reverse":e},r=this.$slots.default||[];return e&&(r=r.reverse()),t("ul",{class:n},[r])}},hg=dg,pg=r(hg,void 0,void 0,!1,null,null,null);pg.options.__file="packages/timeline/src/main.vue";var gg=pg.exports;gg.install=function(t){t.component(gg.name,gg)};var mg=gg,vg=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("li",{staticClass:"el-timeline-item"},[n("div",{staticClass:"el-timeline-item__tail"}),t.$slots.dot?t._e():n("div",{staticClass:"el-timeline-item__node",class:["el-timeline-item__node--"+(t.size||""),"el-timeline-item__node--"+(t.type||"")],style:{backgroundColor:t.color}},[t.icon?n("i",{staticClass:"el-timeline-item__icon",class:t.icon}):t._e()]),t.$slots.dot?n("div",{staticClass:"el-timeline-item__dot"},[t._t("dot")],2):t._e(),n("div",{staticClass:"el-timeline-item__wrapper"},[t.hideTimestamp||"top"!==t.placement?t._e():n("div",{staticClass:"el-timeline-item__timestamp is-top"},[t._v("\n "+t._s(t.timestamp)+"\n ")]),n("div",{staticClass:"el-timeline-item__content"},[t._t("default")],2),t.hideTimestamp||"bottom"!==t.placement?t._e():n("div",{staticClass:"el-timeline-item__timestamp is-bottom"},[t._v("\n "+t._s(t.timestamp)+"\n ")])])])},yg=[];vg._withStripped=!0;var bg={name:"ElTimelineItem",inject:["timeline"],props:{timestamp:String,hideTimestamp:{type:Boolean,default:!1},placement:{type:String,default:"bottom"},type:String,color:String,size:{type:String,default:"normal"},icon:String}},_g=bg,wg=r(_g,vg,yg,!1,null,null,null);wg.options.__file="packages/timeline/src/item.vue";var xg=wg.exports;xg.install=function(t){t.component(xg.name,xg)};var kg=xg,Sg=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("a",t._b({class:["el-link",t.type?"el-link--"+t.type:"",t.disabled&&"is-disabled",t.underline&&!t.disabled&&"is-underline"],attrs:{href:t.disabled?null:t.href},on:{click:t.handleClick}},"a",t.$attrs,!1),[t.icon?n("i",{class:t.icon}):t._e(),t.$slots.default?n("span",{staticClass:"el-link--inner"},[t._t("default")],2):t._e(),t.$slots.icon?[t.$slots.icon?t._t("icon"):t._e()]:t._e()],2)},Cg=[];Sg._withStripped=!0;var Eg={name:"ElLink",props:{type:{type:String,default:"default"},underline:{type:Boolean,default:!0},disabled:Boolean,href:String,icon:String},methods:{handleClick:function(t){this.disabled||this.href||this.$emit("click",t)}}},Tg=Eg,Ag=r(Tg,Sg,Cg,!1,null,null,null);Ag.options.__file="packages/link/src/main.vue";var Og=Ag.exports;Og.install=function(t){t.component(Og.name,Og)};var Pg=Og,Ng=function(t,e){var n=e._c;return n("div",e._g(e._b({class:[e.data.staticClass,"el-divider","el-divider--"+e.props.direction]},"div",e.data.attrs,!1),e.listeners),[e.slots().default&&"vertical"!==e.props.direction?n("div",{class:["el-divider__text","is-"+e.props.contentPosition]},[e._t("default")],2):e._e()])},Dg=[];Ng._withStripped=!0;var Mg={name:"ElDivider",props:{direction:{type:String,default:"horizontal",validator:function(t){return-1!==["horizontal","vertical"].indexOf(t)}},contentPosition:{type:String,default:"center",validator:function(t){return-1!==["left","center","right"].indexOf(t)}}}},Ig=Mg,Rg=r(Ig,Ng,Dg,!0,null,null,null);Rg.options.__file="packages/divider/src/main.vue";var $g=Rg.exports;$g.install=function(t){t.component($g.name,$g)};var Lg=$g,jg=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-image"},[t.loading?t._t("placeholder",[n("div",{staticClass:"el-image__placeholder"})]):t.error?t._t("error",[n("div",{staticClass:"el-image__error"},[t._v(t._s(t.t("el.image.error")))])]):n("img",t._g(t._b({staticClass:"el-image__inner",class:{"el-image__inner--center":t.alignCenter,"el-image__preview":t.preview},style:t.imageStyle,attrs:{src:t.src},on:{click:t.clickHandler}},"img",t.$attrs,!1),t.$listeners)),t.preview?[t.showViewer?n("image-viewer",{attrs:{"z-index":t.zIndex,"initial-index":t.imageIndex,"on-close":t.closeViewer,"url-list":t.previewSrcList}}):t._e()]:t._e()],2)},Fg=[];jg._withStripped=!0;var Bg=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"viewer-fade"}},[n("div",{ref:"el-image-viewer__wrapper",staticClass:"el-image-viewer__wrapper",style:{"z-index":t.viewerZIndex},attrs:{tabindex:"-1"}},[n("div",{staticClass:"el-image-viewer__mask",on:{click:function(e){return e.target!==e.currentTarget?null:t.handleMaskClick(e)}}}),n("span",{staticClass:"el-image-viewer__btn el-image-viewer__close",on:{click:t.hide}},[n("i",{staticClass:"el-icon-close"})]),t.isSingle?t._e():[n("span",{staticClass:"el-image-viewer__btn el-image-viewer__prev",class:{"is-disabled":!t.infinite&&t.isFirst},on:{click:t.prev}},[n("i",{staticClass:"el-icon-arrow-left"})]),n("span",{staticClass:"el-image-viewer__btn el-image-viewer__next",class:{"is-disabled":!t.infinite&&t.isLast},on:{click:t.next}},[n("i",{staticClass:"el-icon-arrow-right"})])],n("div",{staticClass:"el-image-viewer__btn el-image-viewer__actions"},[n("div",{staticClass:"el-image-viewer__actions__inner"},[n("i",{staticClass:"el-icon-zoom-out",on:{click:function(e){t.handleActions("zoomOut")}}}),n("i",{staticClass:"el-icon-zoom-in",on:{click:function(e){t.handleActions("zoomIn")}}}),n("i",{staticClass:"el-image-viewer__actions__divider"}),n("i",{class:t.mode.icon,on:{click:t.toggleMode}}),n("i",{staticClass:"el-image-viewer__actions__divider"}),n("i",{staticClass:"el-icon-refresh-left",on:{click:function(e){t.handleActions("anticlocelise")}}}),n("i",{staticClass:"el-icon-refresh-right",on:{click:function(e){t.handleActions("clocelise")}}})])]),n("div",{staticClass:"el-image-viewer__canvas"},t._l(t.urlList,function(e,r){return r===t.index?n("img",{key:e,ref:"img",refInFor:!0,staticClass:"el-image-viewer__img",style:t.imgStyle,attrs:{src:t.currentImg},on:{load:t.handleImgLoad,error:t.handleImgError,mousedown:t.handleMouseDown}}):t._e()}),0)],2)])},Vg=[];Bg._withStripped=!0;var zg=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Ug={CONTAIN:{name:"contain",icon:"el-icon-full-screen"},ORIGINAL:{name:"original",icon:"el-icon-c-scale-to-original"}},Hg=Object(H.isFirefox)()?"DOMMouseScroll":"mousewheel",qg={name:"elImageViewer",props:{urlList:{type:Array,default:function(){return[]}},zIndex:{type:Number,default:2e3},onSwitch:{type:Function,default:function(){}},onClose:{type:Function,default:function(){}},initialIndex:{type:Number,default:0},appendToBody:{type:Boolean,default:!0},maskClosable:{type:Boolean,default:!0}},data:function(){return{index:this.initialIndex,isShow:!1,infinite:!0,loading:!1,mode:Ug.CONTAIN,transform:{scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}},computed:{isSingle:function(){return this.urlList.length<=1},isFirst:function(){return 0===this.index},isLast:function(){return this.index===this.urlList.length-1},currentImg:function(){return this.urlList[this.index]},imgStyle:function(){var t=this.transform,e=t.scale,n=t.deg,r=t.offsetX,i=t.offsetY,o=t.enableTransition,a={transform:"scale("+e+") rotate("+n+"deg)",transition:o?"transform .3s":"","margin-left":r+"px","margin-top":i+"px"};return this.mode===Ug.CONTAIN&&(a.maxWidth=a.maxHeight="100%"),a},viewerZIndex:function(){var t=K.PopupManager.nextZIndex();return this.zIndex>t?this.zIndex:t}},watch:{index:{handler:function(t){this.reset(),this.onSwitch(t)}},currentImg:function(t){var e=this;this.$nextTick(function(t){e.$refs.img[0].complete||(e.loading=!0)})}},methods:{hide:function(){this.deviceSupportUninstall(),this.onClose()},deviceSupportInstall:function(){var t=this;this._keyDownHandler=function(e){switch(e.stopPropagation(),e.keyCode){case 27:t.hide();break;case 32:t.toggleMode();break;case 37:t.prev();break;case 38:t.handleActions("zoomIn");break;case 39:t.next();break;case 40:t.handleActions("zoomOut")}},this._mouseWheelHandler=Object(H.rafThrottle)(function(e){(e.wheelDelta?e.wheelDelta:-e.detail)>0?t.handleActions("zoomIn",{zoomRate:.015,enableTransition:!1}):t.handleActions("zoomOut",{zoomRate:.015,enableTransition:!1})}),Object(ae.on)(document,"keydown",this._keyDownHandler),Object(ae.on)(document,Hg,this._mouseWheelHandler)},deviceSupportUninstall:function(){Object(ae.off)(document,"keydown",this._keyDownHandler),Object(ae.off)(document,Hg,this._mouseWheelHandler),this._keyDownHandler=null,this._mouseWheelHandler=null},handleImgLoad:function(t){this.loading=!1},handleImgError:function(t){this.loading=!1,t.target.alt="加载失败"},handleMouseDown:function(t){var e=this;if(!this.loading&&0===t.button){var n=this.transform,r=n.offsetX,i=n.offsetY,o=t.pageX,a=t.pageY;this._dragHandler=Object(H.rafThrottle)(function(t){e.transform.offsetX=r+t.pageX-o,e.transform.offsetY=i+t.pageY-a}),Object(ae.on)(document,"mousemove",this._dragHandler),Object(ae.on)(document,"mouseup",function(t){Object(ae.off)(document,"mousemove",e._dragHandler)}),t.preventDefault()}},handleMaskClick:function(){this.maskClosable&&this.hide()},reset:function(){this.transform={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}},toggleMode:function(){if(!this.loading){var t=Object.keys(Ug),e=Object.values(Ug),n=e.indexOf(this.mode),r=(n+1)%t.length;this.mode=Ug[t[r]],this.reset()}},prev:function(){if(!this.isFirst||this.infinite){var t=this.urlList.length;this.index=(this.index-1+t)%t}},next:function(){if(!this.isLast||this.infinite){var t=this.urlList.length;this.index=(this.index+1)%t}},handleActions:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.loading){var n=zg({zoomRate:.2,rotateDeg:90,enableTransition:!0},e),r=n.zoomRate,i=n.rotateDeg,o=n.enableTransition,a=this.transform;switch(t){case"zoomOut":a.scale>.2&&(a.scale=parseFloat((a.scale-r).toFixed(3)));break;case"zoomIn":a.scale=parseFloat((a.scale+r).toFixed(3));break;case"clocelise":a.deg+=i;break;case"anticlocelise":a.deg-=i}a.enableTransition=o}}},mounted:function(){this.deviceSupportInstall(),this.appendToBody&&document.body.appendChild(this.$el),this.$refs["el-image-viewer__wrapper"].focus()},destroyed:function(){this.appendToBody&&this.$el&&this.$el.parentNode&&this.$el.parentNode.removeChild(this.$el)}},Wg=qg,Gg=r(Wg,Bg,Vg,!1,null,null,null);Gg.options.__file="packages/image/src/image-viewer.vue";var Yg=Gg.exports,Kg=function(){return void 0!==document.documentElement.style.objectFit},Xg={NONE:"none",CONTAIN:"contain",COVER:"cover",FILL:"fill",SCALE_DOWN:"scale-down"},Jg="",Qg={name:"ElImage",mixins:[U.a],inheritAttrs:!1,components:{ImageViewer:Yg},props:{src:String,fit:String,lazy:Boolean,scrollContainer:{},previewSrcList:{type:Array,default:function(){return[]}},zIndex:{type:Number,default:2e3},initialIndex:Number},data:function(){return{loading:!0,error:!1,show:!this.lazy,imageWidth:0,imageHeight:0,showViewer:!1}},computed:{imageStyle:function(){var t=this.fit;return!this.$isServer&&t?Kg()?{"object-fit":t}:this.getImageStyle(t):{}},alignCenter:function(){return!this.$isServer&&!Kg()&&this.fit!==Xg.FILL},preview:function(){var t=this.previewSrcList;return Array.isArray(t)&&t.length>0},imageIndex:function(){var t=0,e=this.initialIndex;if(e>=0)return t=e;var n=this.previewSrcList.indexOf(this.src);return n>=0?t=n:t}},watch:{src:function(t){this.show&&this.loadImage()},show:function(t){t&&this.loadImage()}},mounted:function(){this.lazy?this.addLazyLoadListener():this.loadImage()},beforeDestroy:function(){this.lazy&&this.removeLazyLoadListener()},methods:{loadImage:function(){var t=this;if(!this.$isServer){this.loading=!0,this.error=!1;var e=new Image;e.onload=function(n){return t.handleLoad(n,e)},e.onerror=this.handleError.bind(this),Object.keys(this.$attrs).forEach(function(n){var r=t.$attrs[n];e.setAttribute(n,r)}),e.src=this.src}},handleLoad:function(t,e){this.imageWidth=e.width,this.imageHeight=e.height,this.loading=!1,this.error=!1},handleError:function(t){this.loading=!1,this.error=!0,this.$emit("error",t)},handleLazyLoad:function(){Object(ae.isInContainer)(this.$el,this._scrollContainer)&&(this.show=!0,this.removeLazyLoadListener())},addLazyLoadListener:function(){if(!this.$isServer){var t=this.scrollContainer,e=null;e=Object(If.isHtmlElement)(t)?t:Object(If.isString)(t)?document.querySelector(t):Object(ae.getScrollContainer)(this.$el),e&&(this._scrollContainer=e,this._lazyLoadHandler=Td()(200,this.handleLazyLoad),Object(ae.on)(e,"scroll",this._lazyLoadHandler),this.handleLazyLoad())}},removeLazyLoadListener:function(){var t=this._scrollContainer,e=this._lazyLoadHandler;!this.$isServer&&t&&e&&(Object(ae.off)(t,"scroll",e),this._scrollContainer=null,this._lazyLoadHandler=null)},getImageStyle:function(t){var e=this.imageWidth,n=this.imageHeight,r=this.$el,i=r.clientWidth,o=r.clientHeight;if(!(e&&n&&i&&o))return{};var a=e/n,s=i/o;if(t===Xg.SCALE_DOWN){t=e<i&&n<o?Xg.NONE:Xg.CONTAIN}switch(t){case Xg.NONE:return{width:"auto",height:"auto"};case Xg.CONTAIN:return a<s?{width:"auto"}:{height:"auto"};case Xg.COVER:return a<s?{height:"auto"}:{width:"auto"};default:return{}}},clickHandler:function(){this.preview&&(Jg=document.body.style.overflow,document.body.style.overflow="hidden",this.showViewer=!0)},closeViewer:function(){document.body.style.overflow=Jg,this.showViewer=!1}}},Zg=Qg,tm=r(Zg,jg,Fg,!1,null,null,null);tm.options.__file="packages/image/src/main.vue";var em=tm.exports;em.install=function(t){t.component(em.name,em)};var nm=em,rm=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-calendar"},[n("div",{staticClass:"el-calendar__header"},[n("div",{staticClass:"el-calendar__title"},[t._v("\n "+t._s(t.i18nDate)+"\n ")]),0===t.validatedRange.length?n("div",{staticClass:"el-calendar__button-group"},[n("el-button-group",[n("el-button",{attrs:{type:"plain",size:"mini"},on:{click:function(e){t.selectDate("prev-month")}}},[t._v("\n "+t._s(t.t("el.datepicker.prevMonth"))+"\n ")]),n("el-button",{attrs:{type:"plain",size:"mini"},on:{click:function(e){t.selectDate("today")}}},[t._v("\n "+t._s(t.t("el.datepicker.today"))+"\n ")]),n("el-button",{attrs:{type:"plain",size:"mini"},on:{click:function(e){t.selectDate("next-month")}}},[t._v("\n "+t._s(t.t("el.datepicker.nextMonth"))+"\n ")])],1)],1):t._e()]),0===t.validatedRange.length?n("div",{key:"no-range",staticClass:"el-calendar__body"},[n("date-table",{attrs:{date:t.date,"selected-day":t.realSelectedDay,"first-day-of-week":t.realFirstDayOfWeek},on:{pick:t.pickDay}})],1):n("div",{key:"has-range",staticClass:"el-calendar__body"},t._l(t.validatedRange,function(e,r){return n("date-table",{key:r,attrs:{date:e[0],"selected-day":t.realSelectedDay,range:e,"hide-header":0!==r,"first-day-of-week":t.realFirstDayOfWeek},on:{pick:t.pickDay}})}),1)])},im=[];rm._withStripped=!0;var om=n(20),am=n.n(om),sm={props:{selectedDay:String,range:{type:Array,validator:function(t){if(!t||!t.length)return!0;var e=t[0],n=t[1];return Object(ho.validateRangeInOneMonth)(e,n)}},date:Date,hideHeader:Boolean,firstDayOfWeek:Number},inject:["elCalendar"],methods:{toNestedArr:function(t){return Object(ho.range)(t.length/7).map(function(e,n){var r=7*n;return t.slice(r,r+7)})},getFormateDate:function(t,e){if(!t||-1===["prev","current","next"].indexOf(e))throw new Error("invalid day or type");var n=this.curMonthDatePrefix;return"prev"===e?n=this.prevMonthDatePrefix:"next"===e&&(n=this.nextMonthDatePrefix),t=("00"+t).slice(-2),n+"-"+t},getCellClass:function(t){var e=t.text,n=t.type,r=[n];if("current"===n){var i=this.getFormateDate(e,n);i===this.selectedDay&&r.push("is-selected"),i===this.formatedToday&&r.push("is-today")}return r},pickDay:function(t){var e=t.text,n=t.type,r=this.getFormateDate(e,n);this.$emit("pick",r)},cellRenderProxy:function(t){var e=t.text,n=t.type,r=this.$createElement,i=this.elCalendar.$scopedSlots.dateCell;if(!i)return r("span",[e]);var o=this.getFormateDate(e,n);return i({date:new Date(o),data:{isSelected:this.selectedDay===o,type:n+"-month",day:o}})}},computed:{WEEK_DAYS:function(){return Object(ho.getI18nSettings)().dayNames},prevMonthDatePrefix:function(){var t=new Date(this.date.getTime());return t.setDate(0),am.a.format(t,"yyyy-MM")},curMonthDatePrefix:function(){return am.a.format(this.date,"yyyy-MM")},nextMonthDatePrefix:function(){var t=new Date(this.date.getFullYear(),this.date.getMonth()+1,1);return am.a.format(t,"yyyy-MM")},formatedToday:function(){return this.elCalendar.formatedToday},isInRange:function(){return this.range&&this.range.length},rows:function(){var t=[];if(this.isInRange){var e=this.range,n=e[0],r=e[1],i=Object(ho.range)(r.getDate()-n.getDate()+1).map(function(t,e){return{text:n.getDate()+e,type:"current"}}),o=i.length%7;o=0===o?0:7-o;var a=Object(ho.range)(o).map(function(t,e){return{text:e+1,type:"next"}});t=i.concat(a)}else{var s=this.date,u=Object(ho.getFirstDayOfMonth)(s);u=0===u?7:u;var l="number"==typeof this.firstDayOfWeek?this.firstDayOfWeek:1,c=(7+u-l)%7;t=[].concat(Object(ho.getPrevMonthLastDays)(s,c).map(function(t){return{text:t,type:"prev"}}),Object(ho.getMonthDays)(s).map(function(t){return{text:t,type:"current"}}));var f=Object(ho.range)(42-t.length).map(function(t,e){return{text:e+1,type:"next"}});t=t.concat(f)}return this.toNestedArr(t)},weekDays:function(){var t=this.firstDayOfWeek,e=this.WEEK_DAYS;return"number"!=typeof t||0===t?e.slice():e.slice(t).concat(e.slice(0,t))}},render:function(){var t=this,e=arguments[0],n=this.hideHeader?null:e("thead",[this.weekDays.map(function(t){return e("th",{key:t},[t])})]);return e("table",{class:{"el-calendar-table":!0,"is-range":this.isInRange},attrs:{cellspacing:"0",cellpadding:"0"}},[n,e("tbody",[this.rows.map(function(n,r){return e("tr",{class:{"el-calendar-table__row":!0,"el-calendar-table__row--hide-border":0===r&&t.hideHeader},key:r},[n.map(function(n,r){return e("td",{key:r,class:t.getCellClass(n),on:{click:t.pickDay.bind(t,n)}},[e("div",{class:"el-calendar-day"},[t.cellRenderProxy(n)])])})])})])])}},um=sm,lm=r(um,void 0,void 0,!1,null,null,null);lm.options.__file="packages/calendar/src/date-table.vue";var cm=lm.exports,fm=["prev-month","today","next-month"],dm=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],hm={name:"ElCalendar",mixins:[U.a],components:{DateTable:cm,ElButton:Pt.a,ElButtonGroup:Dt.a},props:{value:[Date,String,Number],range:{type:Array,validator:function(t){return!Array.isArray(t)||2===t.length&&t.every(function(t){return"string"==typeof t||"number"==typeof t||t instanceof Date})}},firstDayOfWeek:{type:Number,default:1}},provide:function(){return{elCalendar:this}},methods:{pickDay:function(t){this.realSelectedDay=t},selectDate:function(t){if(-1===fm.indexOf(t))throw new Error("invalid type "+t);var e="";(e="prev-month"===t?this.prevMonthDatePrefix+"-01":"next-month"===t?this.nextMonthDatePrefix+"-01":this.formatedToday)!==this.formatedDate&&this.pickDay(e)},toDate:function(t){if(!t)throw new Error("invalid val");return t instanceof Date?t:new Date(t)},rangeValidator:function(t,e){var n=this.realFirstDayOfWeek,r=e?n:0===n?6:n-1,i=(e?"start":"end")+" of range should be "+dm[r]+".";return t.getDay()===r||(console.warn("[ElementCalendar]",i,"Invalid range will be ignored."),!1)}},computed:{prevMonthDatePrefix:function(){var t=new Date(this.date.getTime());return t.setDate(0),am.a.format(t,"yyyy-MM")},curMonthDatePrefix:function(){return am.a.format(this.date,"yyyy-MM")},nextMonthDatePrefix:function(){var t=new Date(this.date.getFullYear(),this.date.getMonth()+1,1);return am.a.format(t,"yyyy-MM")},formatedDate:function(){return am.a.format(this.date,"yyyy-MM-dd")},i18nDate:function(){var t=this.date.getFullYear(),e=this.date.getMonth()+1;return t+" "+this.t("el.datepicker.year")+" "+this.t("el.datepicker.month"+e)},formatedToday:function(){return am.a.format(this.now,"yyyy-MM-dd")},realSelectedDay:{get:function(){return this.value?this.formatedDate:this.selectedDay},set:function(t){this.selectedDay=t;var e=new Date(t);this.$emit("input",e)}},date:function(){if(this.value)return this.toDate(this.value);if(this.realSelectedDay){var t=this.selectedDay.split("-");return new Date(t[0],t[1]-1,t[2])}return this.validatedRange.length?this.validatedRange[0][0]:this.now},validatedRange:function(){var t=this,e=this.range;if(!e)return[];if(e=e.reduce(function(e,n,r){var i=t.toDate(n);return t.rangeValidator(i,0===r)&&(e=e.concat(i)),e},[]),2===e.length){var n=e,r=n[0],i=n[1];if(r>i)return console.warn("[ElementCalendar]end time should be greater than start time"),[];if(Object(ho.validateRangeInOneMonth)(r,i))return[[r,i]];var o=[],a=new Date(r.getFullYear(),r.getMonth()+1,1),s=this.toDate(a.getTime()-864e5);if(!Object(ho.validateRangeInOneMonth)(a,i))return console.warn("[ElementCalendar]start time and end time interval must not exceed two months"),[];o.push([r,s]);var u=this.realFirstDayOfWeek,l=a.getDay(),c=0;return l!==u&&(0===u?c=7-l:(c=u-l,c=c>0?c:7+c)),a=this.toDate(a.getTime()+864e5*c),a.getDate()<i.getDate()&&o.push([a,i]),o}return[]},realFirstDayOfWeek:function(){return this.firstDayOfWeek<1||this.firstDayOfWeek>6?0:Math.floor(this.firstDayOfWeek)}},data:function(){return{selectedDay:"",now:new Date}}},pm=hm,gm=r(pm,rm,im,!1,null,null,null);gm.options.__file="packages/calendar/src/main.vue";var mm=gm.exports;mm.install=function(t){t.component(mm.name,mm)};var vm=mm,ym=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"el-fade-in"}},[t.visible?n("div",{staticClass:"el-backtop",style:{right:t.styleRight,bottom:t.styleBottom},on:{click:function(e){return e.stopPropagation(),t.handleClick(e)}}},[t._t("default",[n("el-icon",{attrs:{name:"caret-top"}})])],2):t._e()])},bm=[];ym._withStripped=!0;var _m=function(t){return Math.pow(t,3)},wm=function(t){return t<.5?_m(2*t)/2:1-_m(2*(1-t))/2},xm={name:"ElBacktop",props:{visibilityHeight:{type:Number,default:200},target:[String],right:{type:Number,default:40},bottom:{type:Number,default:40}},data:function(){return{el:null,container:null,visible:!1}},computed:{styleBottom:function(){return this.bottom+"px"},styleRight:function(){return this.right+"px"}},mounted:function(){this.init(),this.throttledScrollHandler=Td()(300,this.onScroll),this.container.addEventListener("scroll",this.throttledScrollHandler)},methods:{init:function(){if(this.container=document,this.el=document.documentElement,this.target){if(this.el=document.querySelector(this.target),!this.el)throw new Error("target is not existed: "+this.target);this.container=this.el}},onScroll:function(){var t=this.el.scrollTop;this.visible=t>=this.visibilityHeight},handleClick:function(t){this.scrollToTop(),this.$emit("click",t)},scrollToTop:function(){var t=this.el,e=Date.now(),n=t.scrollTop,r=window.requestAnimationFrame||function(t){return setTimeout(t,16)};r(function i(){var o=(Date.now()-e)/500;o<1?(t.scrollTop=n*(1-wm(o)),r(i)):t.scrollTop=0})}},beforeDestroy:function(){this.container.removeEventListener("scroll",this.throttledScrollHandler)}},km=xm,Sm=r(km,ym,bm,!1,null,null,null);Sm.options.__file="packages/backtop/src/main.vue";var Cm=Sm.exports;Cm.install=function(t){t.component(Cm.name,Cm)};var Em=Cm,Tm=function(t,e){if(t===window&&(t=document.documentElement),1!==t.nodeType)return[];var n=window.getComputedStyle(t,null);return e?n[e]:n},Am=function(t){return Object.keys(t||{}).map(function(e){return[e,t[e]]})},Om=function(t,e){return t===window||t===document?document.documentElement[e]:t[e]},Pm=function(t){return Om(t,"offsetHeight")},Nm=function(t){return Om(t,"clientHeight")},Dm="ElInfiniteScroll",Mm={delay:{type:Number,default:200},distance:{type:Number,default:0},disabled:{type:Boolean,default:!1},immediate:{type:Boolean,default:!0}},Im=function(t,e){return Object(If.isHtmlElement)(t)?Am(Mm).reduce(function(n,r){var i=r[0],o=r[1],a=o.type,s=o.default,u=t.getAttribute("infinite-scroll-"+i);switch(u=Object(If.isUndefined)(e[u])?u:e[u],a){case Number:u=Number(u),u=Number.isNaN(u)?s:u;break;case Boolean:u=Object(If.isDefined)(u)?"false"!==u&&Boolean(u):s;break;default:u=a(u)}return n[i]=u,n},{}):{}},Rm=function(t){return t.getBoundingClientRect().top},$m=function(t){var e=this[Dm],n=e.el,r=e.vm,i=e.container,o=e.observer,a=Im(n,r),s=a.distance;if(!a.disabled){var u=i.getBoundingClientRect();if(u.width||u.height){var l=!1;if(i===n){var c=i.scrollTop+Nm(i);l=i.scrollHeight-c<=s}else l=Pm(n)+Rm(n)-Rm(i)-Pm(i)+Number.parseFloat(Tm(i,"borderBottomWidth"))<=s;l&&Object(If.isFunction)(t)?t.call(r):o&&(o.disconnect(),this[Dm].observer=null)}}},Lm={name:"InfiniteScroll",inserted:function(t,e,n){var r=e.value,i=n.context,o=Object(ae.getScrollContainer)(t,!0),a=Im(t,i),s=a.delay,u=a.immediate,l=lt()(s,$m.bind(t,r));if(t[Dm]={el:t,vm:i,container:o,onScroll:l},o&&(o.addEventListener("scroll",l),u)){(t[Dm].observer=new MutationObserver(l)).observe(o,{childList:!0,subtree:!0}),l()}},unbind:function(t){var e=t[Dm],n=e.container,r=e.onScroll;n&&n.removeEventListener("scroll",r)}};Lm.install=function(t){t.directive(Lm.name,Lm)};var jm=Lm,Fm=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-page-header"},[n("div",{staticClass:"el-page-header__left",on:{click:function(e){t.$emit("back")}}},[n("i",{staticClass:"el-icon-back"}),n("div",{staticClass:"el-page-header__title"},[t._t("title",[t._v(t._s(t.title))])],2)]),n("div",{staticClass:"el-page-header__content"},[t._t("content",[t._v(t._s(t.content))])],2)])},Bm=[];Fm._withStripped=!0;var Vm={name:"ElPageHeader",props:{title:{type:String,default:function(){return Object(ks.t)("el.pageHeader.title")}},content:String}},zm=Vm,Um=r(zm,Fm,Bm,!1,null,null,null);Um.options.__file="packages/page-header/src/main.vue";var Hm=Um.exports;Hm.install=function(t){t.component(Hm.name,Hm)};var qm=Hm,Wm=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:["el-cascader-panel",t.border&&"is-bordered"],on:{keydown:t.handleKeyDown}},t._l(t.menus,function(t,e){return n("cascader-menu",{key:e,ref:"menu",refInFor:!0,attrs:{index:e,nodes:t}})}),1)},Gm=[];Wm._withStripped=!0;var Ym=n(44),Km=n.n(Ym),Xm=function(t){return t.stopPropagation()},Jm={inject:["panel"],components:{ElCheckbox:Qr.a,ElRadio:Km.a},props:{node:{required:!0},nodeId:String},computed:{config:function(){return this.panel.config},isLeaf:function(){return this.node.isLeaf},isDisabled:function(){return this.node.isDisabled},checkedValue:function(){return this.panel.checkedValue},isChecked:function(){return this.node.isSameNode(this.checkedValue)},inActivePath:function(){return this.isInPath(this.panel.activePath)},inCheckedPath:function(){var t=this;return!!this.config.checkStrictly&&this.panel.checkedNodePaths.some(function(e){return t.isInPath(e)})},value:function(){return this.node.getValueByOption()}},methods:{handleExpand:function(){var t=this,e=this.panel,n=this.node,r=this.isDisabled,i=this.config,o=i.multiple;!i.checkStrictly&&r||n.loading||(i.lazy&&!n.loaded?e.lazyLoad(n,function(){var e=t.isLeaf;if(e||t.handleExpand(),o){var r=!!e&&n.checked;t.handleMultiCheckChange(r)}}):e.handleExpand(n))},handleCheckChange:function(){var t=this.panel,e=this.value,n=this.node;t.handleCheckChange(e),t.handleExpand(n)},handleMultiCheckChange:function(t){this.node.doCheck(t),this.panel.calculateMultiCheckedValue()},isInPath:function(t){var e=this.node;return(t[e.level-1]||{}).uid===e.uid},renderPrefix:function(t){var e=this.isLeaf,n=this.isChecked,r=this.config,i=r.checkStrictly;return r.multiple?this.renderCheckbox(t):i?this.renderRadio(t):e&&n?this.renderCheckIcon(t):null},renderPostfix:function(t){var e=this.node,n=this.isLeaf;return e.loading?this.renderLoadingIcon(t):n?null:this.renderExpandIcon(t)},renderCheckbox:function(t){var e=this.node,n=this.config,r=this.isDisabled,i={on:{change:this.handleMultiCheckChange},nativeOn:{}};return n.checkStrictly&&(i.nativeOn.click=Xm),t("el-checkbox",Xc()([{attrs:{value:e.checked,indeterminate:e.indeterminate,disabled:r}},i]))},renderRadio:function(t){var e=this.checkedValue,n=this.value,r=this.isDisabled;return Object(H.isEqual)(n,e)&&(n=e),t("el-radio",{attrs:{value:e,label:n,disabled:r},on:{change:this.handleCheckChange},nativeOn:{click:Xm}},[t("span")])},renderCheckIcon:function(t){return t("i",{class:"el-icon-check el-cascader-node__prefix"})},renderLoadingIcon:function(t){return t("i",{class:"el-icon-loading el-cascader-node__postfix"})},renderExpandIcon:function(t){return t("i",{class:"el-icon-arrow-right el-cascader-node__postfix"})},renderContent:function(t){var e=this.panel,n=this.node,r=e.renderLabelFn;return t("span",{class:"el-cascader-node__label"},[(r?r({node:n,data:n.data}):null)||n.label])}},render:function(t){var e=this,n=this.inActivePath,r=this.inCheckedPath,i=this.isChecked,o=this.isLeaf,a=this.isDisabled,s=this.config,u=this.nodeId,l=s.expandTrigger,c=s.checkStrictly,f=s.multiple,d=!c&&a,h={on:{}};return"click"===l?h.on.click=this.handleExpand:(h.on.mouseenter=function(t){e.handleExpand(),e.$emit("expand",t)},h.on.focus=function(t){e.handleExpand(),e.$emit("expand",t)}),!o||a||c||f||(h.on.click=this.handleCheckChange),t("li",Xc()([{attrs:{role:"menuitem",id:u,"aria-expanded":n,tabindex:d?null:-1},class:{"el-cascader-node":!0,"is-selectable":c,"in-active-path":n,"in-checked-path":r,"is-active":i,"is-disabled":d}},h]),[this.renderPrefix(t),this.renderContent(t),this.renderPostfix(t)])}},Qm=Jm,Zm=r(Qm,void 0,void 0,!1,null,null,null);Zm.options.__file="packages/cascader-panel/src/cascader-node.vue";var tv=Zm.exports,ev={name:"ElCascaderMenu",mixins:[U.a],inject:["panel"],components:{ElScrollbar:vt.a,CascaderNode:tv},props:{nodes:{type:Array,required:!0},index:Number},data:function(){return{activeNode:null,hoverTimer:null,id:Object(H.generateId)()}},computed:{isEmpty:function(){return!this.nodes.length},menuId:function(){return"cascader-menu-"+this.id+"-"+this.index}},methods:{handleExpand:function(t){this.activeNode=t.target},handleMouseMove:function(t){var e=this.activeNode,n=this.hoverTimer,r=this.$refs.hoverZone;if(e&&r)if(e.contains(t.target)){clearTimeout(n);var i=this.$el.getBoundingClientRect(),o=i.left,a=t.clientX-o,s=this.$el,u=s.offsetWidth,l=s.offsetHeight,c=e.offsetTop,f=c+e.offsetHeight;r.innerHTML='\n <path style="pointer-events: auto;" fill="transparent" d="M'+a+" "+c+" L"+u+" 0 V"+c+' Z" />\n <path style="pointer-events: auto;" fill="transparent" d="M'+a+" "+f+" L"+u+" "+l+" V"+f+' Z" />\n '}else n||(this.hoverTimer=setTimeout(this.clearHoverZone,this.panel.config.hoverThreshold))},clearHoverZone:function(){var t=this.$refs.hoverZone;t&&(t.innerHTML="")},renderEmptyText:function(t){return t("div",{class:"el-cascader-menu__empty-text"},[this.t("el.cascader.noData")])},renderNodeList:function(t){var e=this.menuId,n=this.panel.isHoverMenu,r={on:{}};return n&&(r.on.expand=this.handleExpand),[].concat(this.nodes.map(function(n,i){var o=n.hasChildren;return t("cascader-node",Xc()([{key:n.uid,attrs:{node:n,"node-id":e+"-"+i,"aria-haspopup":o,"aria-owns":o?e:null}},r]))}),[n?t("svg",{ref:"hoverZone",class:"el-cascader-menu__hover-zone"}):null])}},render:function(t){var e=this.isEmpty,n=this.menuId,r={nativeOn:{}};return this.panel.isHoverMenu&&(r.nativeOn.mousemove=this.handleMouseMove),t("el-scrollbar",Xc()([{attrs:{tag:"ul",role:"menu",id:n,"wrap-class":"el-cascader-menu__wrap","view-class":{"el-cascader-menu__list":!0,"is-empty":e}},class:"el-cascader-menu"},r]),[e?this.renderEmptyText(t):this.renderNodeList(t)])}},nv=ev,rv=r(nv,void 0,void 0,!1,null,null,null);rv.options.__file="packages/cascader-panel/src/cascader-menu.vue";var iv=rv.exports,ov=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),av=0,sv=function(){function t(e,n,r){A(this,t),this.data=e,this.config=n,this.parent=r||null,this.level=this.parent?this.parent.level+1:1,this.uid=av++,this.initState(),this.initChildren()}return t.prototype.initState=function(){var t=this.config,e=t.value,n=t.label;this.value=this.data[e],this.label=this.data[n],this.pathNodes=this.calculatePathNodes(),this.path=this.pathNodes.map(function(t){return t.value}),this.pathLabels=this.pathNodes.map(function(t){return t.label}),this.loading=!1,this.loaded=!1},t.prototype.initChildren=function(){var e=this,n=this.config,r=n.children,i=this.data[r];this.hasChildren=Array.isArray(i),this.children=(i||[]).map(function(r){return new t(r,n,e)})},t.prototype.calculatePathNodes=function(){for(var t=[this],e=this.parent;e;)t.unshift(e),e=e.parent;return t},t.prototype.getPath=function(){return this.path},t.prototype.getValue=function(){return this.value},t.prototype.getValueByOption=function(){return this.config.emitPath?this.getPath():this.getValue()},t.prototype.getText=function(t,e){return t?this.pathLabels.join(e):this.label},t.prototype.isSameNode=function(t){var e=this.getValueByOption();return this.config.multiple&&Array.isArray(t)?t.some(function(t){return Object(H.isEqual)(t,e)}):Object(H.isEqual)(t,e)},t.prototype.broadcast=function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var i="onParent"+Object(H.capitalize)(t);this.children.forEach(function(e){e&&(e.broadcast.apply(e,[t].concat(n)),e[i]&&e[i].apply(e,n))})},t.prototype.emit=function(t){var e=this.parent,n="onChild"+Object(H.capitalize)(t);if(e){for(var r=arguments.length,i=Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];e[n]&&e[n].apply(e,i),e.emit.apply(e,[t].concat(i))}},t.prototype.onParentCheck=function(t){this.isDisabled||this.setCheckState(t)},t.prototype.onChildCheck=function(){var t=this.children,e=t.filter(function(t){return!t.isDisabled}),n=!!e.length&&e.every(function(t){return t.checked});this.setCheckState(n)},t.prototype.setCheckState=function(t){var e=this.children.length,n=this.children.reduce(function(t,e){return t+(e.checked?1:e.indeterminate?.5:0)},0);this.checked=t,this.indeterminate=n!==e&&n>0},t.prototype.syncCheckState=function(t){var e=this.getValueByOption(),n=this.isSameNode(t,e);this.doCheck(n)},t.prototype.doCheck=function(t){this.checked!==t&&(this.config.checkStrictly?this.checked=t:(this.broadcast("check",t),this.setCheckState(t),this.emit("check")))},ov(t,[{key:"isDisabled",get:function(){var t=this.data,e=this.parent,n=this.config,r=n.disabled,i=n.checkStrictly;return t[r]||!i&&e&&e.isDisabled}},{key:"isLeaf",get:function(){var t=this.data,e=this.loaded,n=this.hasChildren,r=this.children,i=this.config,o=i.lazy,a=i.leaf;if(o){var s=Object(He.isDef)(t[a])?t[a]:!!e&&!r.length;return this.hasChildren=!s,s}return!n}}]),t}(),uv=sv,lv=function t(e,n){return e.reduce(function(e,r){return r.isLeaf?e.push(r):(!n&&e.push(r),e=e.concat(t(r.children,n))),e},[])},cv=function(){function t(e,n){O(this,t),this.config=n,this.initNodes(e)}return t.prototype.initNodes=function(t){var e=this;t=Object(H.coerceTruthyValueToArray)(t),this.nodes=t.map(function(t){return new uv(t,e.config)}),this.flattedNodes=this.getFlattedNodes(!1,!1),this.leafNodes=this.getFlattedNodes(!0,!1)},t.prototype.appendNode=function(t,e){var n=new uv(t,this.config,e);(e?e.children:this.nodes).push(n)},t.prototype.appendNodes=function(t,e){var n=this;t=Object(H.coerceTruthyValueToArray)(t),t.forEach(function(t){return n.appendNode(t,e)})},t.prototype.getNodes=function(){return this.nodes},t.prototype.getFlattedNodes=function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=t?this.leafNodes:this.flattedNodes;return e?n:lv(this.nodes,t)},t.prototype.getNodeByValue=function(t){var e=this.getFlattedNodes(!1,!this.config.lazy).filter(function(e){return Object(H.valueEquals)(e.path,t)||e.value===t});return e&&e.length?e[0]:null},t}(),fv=cv,dv=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},hv=lh.a.keys,pv={expandTrigger:"click",multiple:!1,checkStrictly:!1,emitPath:!0,lazy:!1,lazyLoad:H.noop,value:"value",label:"label",children:"children",leaf:"leaf",disabled:"disabled",hoverThreshold:500},gv=function(t){return!t.getAttribute("aria-owns")},mv=function(t,e){var n=t.parentNode;if(n){var r=n.querySelectorAll('.el-cascader-node[tabindex="-1"]');return r[Array.prototype.indexOf.call(r,t)+e]||null}return null},vv=function(t,e){if(t){var n=t.id.split("-");return Number(n[n.length-2])}},yv=function(t){t&&(t.focus(),!gv(t)&&t.click())},bv=function(t){if(t){var e=t.querySelector("input");e?e.click():gv(t)&&t.click()}},_v={name:"ElCascaderPanel",components:{CascaderMenu:iv},props:{value:{},options:Array,props:Object,border:{type:Boolean,default:!0},renderLabel:Function},provide:function(){return{panel:this}},data:function(){return{checkedValue:null,checkedNodePaths:[],store:[],menus:[],activePath:[],loadCount:0}},computed:{config:function(){return Ue()(dv({},pv),this.props||{})},multiple:function(){return this.config.multiple},checkStrictly:function(){return this.config.checkStrictly},leafOnly:function(){return!this.checkStrictly},isHoverMenu:function(){return"hover"===this.config.expandTrigger},renderLabelFn:function(){return this.renderLabel||this.$scopedSlots.default}},watch:{value:function(){this.syncCheckedValue(),this.checkStrictly&&this.calculateCheckedNodePaths()},options:{handler:function(){this.initStore()},immediate:!0,deep:!0},checkedValue:function(t){Object(H.isEqual)(t,this.value)||(this.checkStrictly&&this.calculateCheckedNodePaths(),this.$emit("input",t),this.$emit("change",t))}},mounted:function(){this.isEmptyValue(this.value)||this.syncCheckedValue()},methods:{initStore:function(){var t=this.config,e=this.options;t.lazy&&Object(H.isEmpty)(e)?this.lazyLoad():(this.store=new fv(e,t),this.menus=[this.store.getNodes()],this.syncMenuState())},syncCheckedValue:function(){var t=this.value,e=this.checkedValue;Object(H.isEqual)(t,e)||(this.activePath=[],this.checkedValue=t,this.syncMenuState())},syncMenuState:function(){var t=this.multiple,e=this.checkStrictly;this.syncActivePath(),t&&this.syncMultiCheckState(),e&&this.calculateCheckedNodePaths(),this.$nextTick(this.scrollIntoView)},syncMultiCheckState:function(){var t=this;this.getFlattedNodes(this.leafOnly).forEach(function(e){e.syncCheckState(t.checkedValue)})},isEmptyValue:function(t){var e=this.multiple,n=this.config,r=n.emitPath;return!(!e&&!r)&&Object(H.isEmpty)(t)},syncActivePath:function(){var t=this,e=this.store,n=this.multiple,r=this.activePath,i=this.checkedValue;if(Object(H.isEmpty)(r))if(this.isEmptyValue(i))this.activePath=[],this.menus=[e.getNodes()];else{var o=n?i[0]:i,a=this.getNodeByValue(o)||{},s=(a.pathNodes||[]).slice(0,-1);this.expandNodes(s)}else{var u=r.map(function(e){return t.getNodeByValue(e.getValue())});this.expandNodes(u)}},expandNodes:function(t){var e=this;t.forEach(function(t){return e.handleExpand(t,!0)})},calculateCheckedNodePaths:function(){var t=this,e=this.checkedValue,n=this.multiple,r=n?Object(H.coerceTruthyValueToArray)(e):[e];this.checkedNodePaths=r.map(function(e){var n=t.getNodeByValue(e);return n?n.pathNodes:[]})},handleKeyDown:function(t){var e=t.target;switch(t.keyCode){case hv.up:var n=mv(e,-1);yv(n);break;case hv.down:var r=mv(e,1);yv(r);break;case hv.left:var i=this.$refs.menu[vv(e)-1];if(i){var o=i.$el.querySelector('.el-cascader-node[aria-expanded="true"]');yv(o)}break;case hv.right:var a=this.$refs.menu[vv(e)+1];if(a){var s=a.$el.querySelector('.el-cascader-node[tabindex="-1"]');yv(s)}break;case hv.enter:bv(e);break;case hv.esc:case hv.tab:this.$emit("close");break;default:return}},handleExpand:function(t,e){var n=this.activePath,r=t.level,i=n.slice(0,r-1),o=this.menus.slice(0,r);if(t.isLeaf||(i.push(t),o.push(t.children)),this.activePath=i,this.menus=o,!e){var a=i.map(function(t){return t.getValue()}),s=n.map(function(t){return t.getValue()});Object(H.valueEquals)(a,s)||(this.$emit("active-item-change",a),this.$emit("expand-change",a))}},handleCheckChange:function(t){this.checkedValue=t},lazyLoad:function(t,e){var n=this,r=this.config;t||(t=t||{root:!0,level:0},this.store=new fv([],r),this.menus=[this.store.getNodes()]),t.loading=!0;var i=function(r){var i=t.root?null:t;if(r&&r.length&&n.store.appendNodes(r,i),t.loading=!1,t.loaded=!0,Array.isArray(n.checkedValue)){var o=n.checkedValue[n.loadCount++],a=n.config.value,s=n.config.leaf;if(Array.isArray(r)&&r.filter(function(t){return t[a]===o}).length>0){var u=n.store.getNodeByValue(o);u.data[s]||n.lazyLoad(u,function(){n.handleExpand(u)}),n.loadCount===n.checkedValue.length&&n.$parent.computePresentText()}}e&&e(r)};r.lazyLoad(t,i)},calculateMultiCheckedValue:function(){this.checkedValue=this.getCheckedNodes(this.leafOnly).map(function(t){return t.getValueByOption()})},scrollIntoView:function(){if(!this.$isServer){(this.$refs.menu||[]).forEach(function(t){var e=t.$el;if(e){var n=e.querySelector(".el-scrollbar__wrap"),r=e.querySelector(".el-cascader-node.is-active")||e.querySelector(".el-cascader-node.in-active-path");_r()(n,r)}})}},getNodeByValue:function(t){return this.store.getNodeByValue(t)},getFlattedNodes:function(t){var e=!this.config.lazy;return this.store.getFlattedNodes(t,e)},getCheckedNodes:function(t){var e=this.checkedValue;if(this.multiple)return this.getFlattedNodes(t).filter(function(t){return t.checked});return this.isEmptyValue(e)?[]:[this.getNodeByValue(e)]},clearCheckedNodes:function(){var t=this.config,e=this.leafOnly,n=t.multiple,r=t.emitPath;n?(this.getCheckedNodes(e).filter(function(t){return!t.isDisabled}).forEach(function(t){return t.doCheck(!1)}),this.calculateMultiCheckedValue()):this.checkedValue=r?[]:null}}},wv=_v,xv=r(wv,Wm,Gm,!1,null,null,null);xv.options.__file="packages/cascader-panel/src/cascader-panel.vue";var kv=xv.exports;kv.install=function(t){t.component(kv.name,kv)};var Sv=kv,Cv={name:"ElAvatar",props:{size:{type:[Number,String],validator:function(t){return"string"==typeof t?["large","medium","small"].includes(t):"number"==typeof t}},shape:{type:String,default:"circle",validator:function(t){return["circle","square"].includes(t)}},icon:String,src:String,alt:String,srcSet:String,error:Function,fit:{type:String,default:"cover"}},data:function(){return{isImageExist:!0}},computed:{avatarClass:function(){var t=this.size,e=this.icon,n=this.shape,r=["el-avatar"];return t&&"string"==typeof t&&r.push("el-avatar--"+t),e&&r.push("el-avatar--icon"),n&&r.push("el-avatar--"+n),r.join(" ")}},methods:{handleError:function(){var t=this.error;!1!==(t?t():void 0)&&(this.isImageExist=!1)},renderAvatar:function(){var t=this.$createElement,e=this.icon,n=this.src,r=this.alt,i=this.isImageExist,o=this.srcSet,a=this.fit;return i&&n?t("img",{attrs:{src:n,alt:r,srcSet:o},on:{error:this.handleError},style:{"object-fit":a}}):e?t("i",{class:e}):this.$slots.default}},render:function(){var t=arguments[0],e=this.avatarClass,n=this.size;return t("span",{class:e,style:"number"==typeof n?{height:n+"px",width:n+"px",lineHeight:n+"px"}:{}},[this.renderAvatar()])}},Ev=Cv,Tv=r(Ev,void 0,void 0,!1,null,null,null);Tv.options.__file="packages/avatar/src/main.vue";var Av=Tv.exports;Av.install=function(t){t.component(Av.name,Av)};var Ov=Av,Pv=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"el-drawer-fade"},on:{"after-enter":t.afterEnter,"after-leave":t.afterLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"el-drawer__wrapper",attrs:{tabindex:"-1"}},[n("div",{staticClass:"el-drawer__container",class:t.visible&&"el-drawer__open",attrs:{role:"document",tabindex:"-1"},on:{click:function(e){return e.target!==e.currentTarget?null:t.handleWrapperClick(e)}}},[n("div",{ref:"drawer",staticClass:"el-drawer",class:[t.direction,t.customClass],style:t.isHorizontal?"width: "+t.drawerSize:"height: "+t.drawerSize,attrs:{"aria-modal":"true","aria-labelledby":"el-drawer__title","aria-label":t.title,role:"dialog",tabindex:"-1"}},[t.withHeader?n("header",{staticClass:"el-drawer__header",attrs:{id:"el-drawer__title"}},[t._t("title",[n("span",{attrs:{role:"heading",title:t.title}},[t._v(t._s(t.title))])]),t.showClose?n("button",{staticClass:"el-drawer__close-btn",attrs:{"aria-label":"close "+(t.title||"drawer"),type:"button"},on:{click:t.closeDrawer}},[n("i",{staticClass:"el-dialog__close el-icon el-icon-close"})]):t._e()],2):t._e(),t.rendered?n("section",{staticClass:"el-drawer__body"},[t._t("default")],2):t._e()])])])])},Nv=[];Pv._withStripped=!0;var Dv={name:"ElDrawer",mixins:[X.a,tt.a],props:{appendToBody:{type:Boolean,default:!1},beforeClose:{type:Function},customClass:{type:String,default:""},closeOnPressEscape:{type:Boolean,default:!0},destroyOnClose:{type:Boolean,default:!1},modal:{type:Boolean,default:!0},direction:{type:String,default:"rtl",validator:function(t){return-1!==["ltr","rtl","ttb","btt"].indexOf(t)}},modalAppendToBody:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},size:{type:[Number,String],default:"30%"},title:{type:String,default:""},visible:{type:Boolean},wrapperClosable:{type:Boolean,default:!0},withHeader:{type:Boolean,default:!0}},computed:{isHorizontal:function(){return"rtl"===this.direction||"ltr"===this.direction},drawerSize:function(){return"number"==typeof this.size?this.size+"px":this.size}},data:function(){return{closed:!1,prevActiveElement:null}},watch:{visible:function(t){var e=this;t?(this.closed=!1,this.$emit("open"),this.appendToBody&&document.body.appendChild(this.$el),this.prevActiveElement=document.activeElement):(this.closed||(this.$emit("close"),!0===this.destroyOnClose&&(this.rendered=!1)),this.$nextTick(function(){e.prevActiveElement&&e.prevActiveElement.focus()}))}},methods:{afterEnter:function(){this.$emit("opened")},afterLeave:function(){this.$emit("closed")},hide:function(t){!1!==t&&(this.$emit("update:visible",!1),this.$emit("close"),!0===this.destroyOnClose&&(this.rendered=!1),this.closed=!0)},handleWrapperClick:function(){this.wrapperClosable&&this.closeDrawer()},closeDrawer:function(){"function"==typeof this.beforeClose?this.beforeClose(this.hide):this.hide()},handleClose:function(){this.closeDrawer()}},mounted:function(){this.visible&&(this.rendered=!0,this.open(),this.appendToBody&&document.body.appendChild(this.$el))},destroyed:function(){this.appendToBody&&this.$el&&this.$el.parentNode&&this.$el.parentNode.removeChild(this.$el)}},Mv=Dv,Iv=r(Mv,Pv,Nv,!1,null,null,null);Iv.options.__file="packages/drawer/src/main.vue";var Rv=Iv.exports;Rv.install=function(t){t.component(Rv.name,Rv)};var $v=Rv,Lv=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-statistic"},[t.title||t.$slots.title?n("div",{staticClass:"head"},[t._t("title",[n("span",{staticClass:"title"},[t._v("\n "+t._s(t.title)+"\n ")])])],2):t._e(),n("div",{staticClass:"con"},[t.prefix||t.$slots.prefix?n("span",{staticClass:"prefix"},[t._t("prefix",[t._v("\n "+t._s(t.prefix)+"\n ")])],2):t._e(),n("span",{staticClass:"number",style:t.valueStyle},[t._t("formatter",[t._v(" "+t._s(t.disposeValue))])],2),t.suffix||t.$slots.suffix?n("span",{staticClass:"suffix"},[t._t("suffix",[t._v("\n "+t._s(t.suffix)+"\n ")])],2):t._e()])])},jv=[];Lv._withStripped=!0;var Fv=n(28),Bv={name:"ElStatistic",data:function(){return{disposeValue:"",timeTask:null,REFRESH_INTERVAL:1e3/30}},props:{decimalSeparator:{type:String,default:"."},groupSeparator:{type:String,default:""},precision:{type:Number,default:null},value:{type:[String,Number,Date],default:""},prefix:{type:String,default:""},suffix:{type:String,default:""},title:{type:[String,Number],default:""},timeIndices:{type:Boolean,default:!1},valueStyle:{type:Object,default:function(){return{}}},format:{type:String,default:"HH:mm:ss:SSS"},rate:{type:Number,default:1e3}},created:function(){this.branch()},watch:{value:function(){this.branch()},groupSeparator:function(){this.dispose()},mulriple:function(){this.dispose()}},methods:{branch:function(){var t=this.timeIndices,e=this.countDown,n=this.dispose;t?e(this.value.valueOf()||this.value):n()},magnification:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:",",r=String(e).length;return t.replace(new RegExp("(\\d)(?=(\\d{"+(r-1)+"})+$)","g"),"$1"+n)},dispose:function(){var t=this.value,e=this.rate,n=this.groupSeparator;if(!Object(Fv.isNumber)(t))return!1;this.precision&&(t=t.toFixed(this.precision));var r=String(t).split("."),i=r[0],o=r[1];n&&(i=this.magnification(i,e,n));var a=""+i+(o?this.decimalSeparator+o:"");return this.disposeValue=a,a},diffDate:function(t,e){return Math.max(t-e,0)},suspend:function(t){return t?this.timeTask&&(clearInterval(this.timeTask),this.timeTask=null):this.branch(),this.disposeValue},formatTimeStr:function(t){var e=this.format,n=/\[[^\]]*]/g,r=(e.match(n)||[]).map(function(t){return t.slice(1,-1)}),i=[["Y",31536e6],["M",2592e6],["D",864e5],["H",36e5],["m",6e4],["s",1e3],["S",1]],o=Object(Fv.reduce)(i,function(e,n){var r=n[0];return e.replace(new RegExp(r+"+","g"),function(e){var r=Object(Fv.chain)(t).divide(n[1]).floor(0).value();return t-=Object(Fv.multiply)(r,n[1]),Object(Fv.padStart)(String(r),String(e).length,0)})},e),a=0;return o.replace(n,function(){var t=r[a];return a+=1,t})},stopTime:function(t){var e=!0;return t?(this.$emit("change",t),e=!1):(e=!0,this.suspend(!0),this.$emit("finish",!0)),e},countDown:function(t){var e=this.REFRESH_INTERVAL,n=this.timeTask,r=this.diffDate,i=this.formatTimeStr,o=this.stopTime,a=this.suspend;if(!n){var s=this;this.timeTask=setInterval(function(){var e=r(t,Date.now());s.disposeValue=i(e),o(e)},e),this.$once("hook:beforeDestroy",function(){a(!0)})}}}},Vv=Bv,zv=r(Vv,Lv,jv,!1,null,null,null);zv.options.__file="packages/statistic/src/main.vue";var Uv=zv.exports;Uv.install=function(t){t.component(Uv.name,Uv)};var Hv=Uv,qv=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-popover",t._b({attrs:{trigger:"click"},model:{value:t.visible,callback:function(e){t.visible=e},expression:"visible"}},"el-popover",t.$attrs,!1),[n("div",{staticClass:"el-popconfirm"},[n("p",{staticClass:"el-popconfirm__main"},[t.hideIcon?t._e():n("i",{staticClass:"el-popconfirm__icon",class:t.icon,style:{color:t.iconColor}}),t._v("\n "+t._s(t.title)+"\n ")]),n("div",{staticClass:"el-popconfirm__action"},[n("el-button",{attrs:{size:"mini",type:t.cancelButtonType},on:{click:t.cancel}},[t._v("\n "+t._s(t.displayCancelButtonText)+"\n ")]),n("el-button",{attrs:{size:"mini",type:t.confirmButtonType},on:{click:t.confirm}},[t._v("\n "+t._s(t.displayConfirmButtonText)+"\n ")])],1)]),t._t("reference",null,{slot:"reference"})],2)},Wv=[];qv._withStripped=!0;var Gv=n(45),Yv=n.n(Gv),Kv={name:"ElPopconfirm",props:{title:{type:String},confirmButtonText:{type:String},cancelButtonText:{type:String},confirmButtonType:{type:String,default:"primary"},cancelButtonType:{type:String,default:"text"},icon:{type:String,default:"el-icon-question"},iconColor:{type:String,default:"#f90"},hideIcon:{type:Boolean,default:!1}},components:{ElPopover:Yv.a,ElButton:Pt.a},data:function(){return{visible:!1}},computed:{displayConfirmButtonText:function(){return this.confirmButtonText||Object(ks.t)("el.popconfirm.confirmButtonText")},displayCancelButtonText:function(){return this.cancelButtonText||Object(ks.t)("el.popconfirm.cancelButtonText")}},methods:{confirm:function(){this.visible=!1,this.$emit("confirm")},cancel:function(){this.visible=!1,this.$emit("cancel")}}},Xv=Kv,Jv=r(Xv,qv,Wv,!1,null,null,null);Jv.options.__file="packages/popconfirm/src/main.vue";var Qv=Jv.exports;Qv.install=function(t){t.component(Qv.name,Qv)};var Zv=Qv,ty=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t.uiLoading?[n("div",t._b({class:["el-skeleton",t.animated?"is-animated":""]},"div",t.$attrs,!1),[t._l(t.count,function(e){return[t.loading?t._t("template",t._l(t.rows,function(r){return n("el-skeleton-item",{key:e+"-"+r,class:{"el-skeleton__paragraph":1!==r,"is-first":1===r,"is-last":r===t.rows&&t.rows>1},attrs:{variant:"p"}})})):t._e()]})],2)]:[t._t("default",null,null,t.$attrs)]],2)},ey=[];ty._withStripped=!0;var ny={name:"ElSkeleton",props:{animated:{type:Boolean,default:!1},count:{type:Number,default:1},rows:{type:Number,default:4},loading:{type:Boolean,default:!0},throttle:{type:Number,default:0}},watch:{loading:{handler:function(t){var e=this;if(this.throttle<=0)return void(this.uiLoading=t);t?(clearTimeout(this.timeoutHandle),this.timeoutHandle=setTimeout(function(){e.uiLoading=e.loading},this.throttle)):this.uiLoading=t},immediate:!0}},data:function(){return{uiLoading:this.throttle<=0&&this.loading}}},ry=ny,iy=r(ry,ty,ey,!1,null,null,null);iy.options.__file="packages/skeleton/src/index.vue";var oy=iy.exports;oy.install=function(t){t.component(oy.name,oy)};var ay=oy,sy=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:["el-skeleton__item","el-skeleton__"+t.variant]},["image"===t.variant?n("img-placeholder"):t._e()],1)},uy=[];sy._withStripped=!0;var ly=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("svg",{attrs:{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M64 896V128h896v768H64z m64-128l192-192 116.352 116.352L640 448l256 307.2V192H128v576z m224-480a96 96 0 1 1-0.064 192.064A96 96 0 0 1 352 288z"}})])},cy=[];ly._withStripped=!0;var fy={name:"ImgPlaceholder"},dy=fy,hy=r(dy,ly,cy,!1,null,null,null);hy.options.__file="packages/skeleton/src/img-placeholder.vue";var py,gy=hy.exports,my={name:"ElSkeletonItem",props:{variant:{type:String,default:"text"}},components:(py={},py[gy.name]=gy,py)},vy=my,yy=r(vy,sy,uy,!1,null,null,null);yy.options.__file="packages/skeleton/src/item.vue";var by=yy.exports;by.install=function(t){t.component(by.name,by)};var _y=by,wy=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-empty"},[n("div",{staticClass:"el-empty__image",style:t.imageStyle},[t.image?n("img",{attrs:{src:t.image,ondragstart:"return false"}}):t._t("image",[n("img-empty")])],2),n("div",{staticClass:"el-empty__description"},[t.$slots.description?t._t("description"):n("p",[t._v(t._s(t.emptyDescription))])],2),t.$slots.default?n("div",{staticClass:"el-empty__bottom"},[t._t("default")],2):t._e()])},xy=[];wy._withStripped=!0;var ky=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("svg",{attrs:{viewBox:"0 0 79 86",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}},[n("defs",[n("linearGradient",{attrs:{id:"linearGradient-1-"+t.id,x1:"38.8503086%",y1:"0%",x2:"61.1496914%",y2:"100%"}},[n("stop",{attrs:{"stop-color":"#FCFCFD",offset:"0%"}}),n("stop",{attrs:{"stop-color":"#EEEFF3",offset:"100%"}})],1),n("linearGradient",{attrs:{id:"linearGradient-2-"+t.id,x1:"0%",y1:"9.5%",x2:"100%",y2:"90.5%"}},[n("stop",{attrs:{"stop-color":"#FCFCFD",offset:"0%"}}),n("stop",{attrs:{"stop-color":"#E9EBEF",offset:"100%"}})],1),n("rect",{attrs:{id:"path-3-"+t.id,x:"0",y:"0",width:"17",height:"36"}})],1),n("g",{attrs:{id:"Illustrations",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"}},[n("g",{attrs:{id:"B-type",transform:"translate(-1268.000000, -535.000000)"}},[n("g",{attrs:{id:"Group-2",transform:"translate(1268.000000, 535.000000)"}},[n("path",{attrs:{id:"Oval-Copy-2",d:"M39.5,86 C61.3152476,86 79,83.9106622 79,81.3333333 C79,78.7560045 57.3152476,78 35.5,78 C13.6847524,78 0,78.7560045 0,81.3333333 C0,83.9106622 17.6847524,86 39.5,86 Z",fill:"#F7F8FC"}}),n("polygon",{attrs:{id:"Rectangle-Copy-14",fill:"#E5E7E9",transform:"translate(27.500000, 51.500000) scale(1, -1) translate(-27.500000, -51.500000) ",points:"13 58 53 58 42 45 2 45"}}),n("g",{attrs:{id:"Group-Copy",transform:"translate(34.500000, 31.500000) scale(-1, 1) rotate(-25.000000) translate(-34.500000, -31.500000) translate(7.000000, 10.000000)"}},[n("polygon",{attrs:{id:"Rectangle-Copy-10",fill:"#E5E7E9",transform:"translate(11.500000, 5.000000) scale(1, -1) translate(-11.500000, -5.000000) ",points:"2.84078316e-14 3 18 3 23 7 5 7"}}),n("polygon",{attrs:{id:"Rectangle-Copy-11",fill:"#EDEEF2",points:"-3.69149156e-15 7 38 7 38 43 -3.69149156e-15 43"}}),n("rect",{attrs:{id:"Rectangle-Copy-12",fill:"url(#linearGradient-1-"+t.id+")",transform:"translate(46.500000, 25.000000) scale(-1, 1) translate(-46.500000, -25.000000) ",x:"38",y:"7",width:"17",height:"36"}}),n("polygon",{attrs:{id:"Rectangle-Copy-13",fill:"#F8F9FB",transform:"translate(39.500000, 3.500000) scale(-1, 1) translate(-39.500000, -3.500000) ",points:"24 7 41 7 55 -3.63806207e-12 38 -3.63806207e-12"}})]),n("rect",{attrs:{id:"Rectangle-Copy-15",fill:"url(#linearGradient-2-"+t.id+")",x:"13",y:"45",width:"40",height:"36"}}),n("g",{attrs:{id:"Rectangle-Copy-17",transform:"translate(53.000000, 45.000000)"}},[n("mask",{attrs:{id:"mask-4-"+t.id,fill:"white"}},[n("use",{attrs:{"xlink:href":"#path-3-"+t.id}})]),n("use",{attrs:{id:"Mask",fill:"#E0E3E9",transform:"translate(8.500000, 18.000000) scale(-1, 1) translate(-8.500000, -18.000000) ","xlink:href":"#path-3-"+t.id}}),n("polygon",{attrs:{id:"Rectangle-Copy",fill:"#D5D7DE",mask:"url(#mask-4-"+t.id+")",transform:"translate(12.000000, 9.000000) scale(-1, 1) translate(-12.000000, -9.000000) ",points:"7 0 24 0 20 18 -1.70530257e-13 16"}})]),n("polygon",{attrs:{id:"Rectangle-Copy-18",fill:"#F8F9FB",transform:"translate(66.000000, 51.500000) scale(-1, 1) translate(-66.000000, -51.500000) ",points:"62 45 79 45 70 58 53 58"}})])])])])},Sy=[];ky._withStripped=!0;var Cy=0,Ey={name:"ImgEmpty",data:function(){return{id:++Cy}}},Ty=Ey,Ay=r(Ty,ky,Sy,!1,null,null,null);Ay.options.__file="packages/empty/src/img-empty.vue";var Oy,Py=Ay.exports,Ny={name:"ElEmpty",components:(Oy={},Oy[Py.name]=Py,Oy),props:{image:{type:String,default:""},imageSize:Number,description:{type:String,default:""}},computed:{emptyDescription:function(){return this.description||Object(ks.t)("el.empty.description")},imageStyle:function(){return{width:this.imageSize?this.imageSize+"px":""}}}},Dy=Ny,My=r(Dy,wy,xy,!1,null,null,null);My.options.__file="packages/empty/src/index.vue";var Iy=My.exports;Iy.install=function(t){t.component(Iy.name,Iy)};var Ry,$y=Iy,Ly=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},jy={name:"ElDescriptionsRow",props:{row:{type:Array}},inject:["elDescriptions"],render:function(t){var e=this.elDescriptions,n=(this.row||[]).map(function(t){return Ly({},t,{label:t.slots.label||t.props.label},["labelClassName","contentClassName","labelStyle","contentStyle"].reduce(function(n,r){return n[r]=t.props[r]||e[r],n},{}))});return"vertical"===e.direction?t("tbody",[t("tr",{class:"el-descriptions-row"},[n.map(function(n){var r;return t("th",{class:(r={"el-descriptions-item__cell":!0,"el-descriptions-item__label":!0,"has-colon":!e.border&&e.colon,"is-bordered-label":e.border},r[n.labelClassName]=!0,r),style:n.labelStyle,attrs:{colSpan:n.props.span}},[n.label])})]),t("tr",{class:"el-descriptions-row"},[n.map(function(e){return t("td",{class:["el-descriptions-item__cell","el-descriptions-item__content",e.contentClassName],style:e.contentStyle,attrs:{colSpan:e.props.span}},[e.slots.default])})])]):e.border?t("tbody",[t("tr",{class:"el-descriptions-row"},[n.map(function(n){var r;return[t("th",{class:(r={"el-descriptions-item__cell":!0,"el-descriptions-item__label":!0,"is-bordered-label":e.border},r[n.labelClassName]=!0,r),style:n.labelStyle,attrs:{colSpan:"1"}},[n.label]),t("td",{class:["el-descriptions-item__cell","el-descriptions-item__content",n.contentClassName],style:n.contentStyle,attrs:{colSpan:2*n.props.span-1}},[n.slots.default])]})])]):t("tbody",[t("tr",{class:"el-descriptions-row"},[n.map(function(n){var r;return t("td",{class:"el-descriptions-item el-descriptions-item__cell",attrs:{colSpan:n.props.span}},[t("div",{class:"el-descriptions-item__container"},[t("span",{class:(r={"el-descriptions-item__label":!0,"has-colon":e.colon},r[n.labelClassName]=!0,r),style:n.labelStyle},[n.label]),t("span",{class:["el-descriptions-item__content",n.contentClassName],style:n.contentStyle},[n.slots.default])])])})])])}},Fy=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},By={name:"ElDescriptions",components:(Ry={},Ry[jy.name]=jy,Ry),props:{border:{type:Boolean,default:!1},column:{type:Number,default:3},direction:{type:String,default:"horizontal"},size:{type:String},title:{type:String,default:""},extra:{type:String,default:""},labelStyle:{type:Object},contentStyle:{type:Object},labelClassName:{type:String,default:""},contentClassName:{type:String,default:""},colon:{type:Boolean,default:!0}},computed:{descriptionsSize:function(){return this.size||(this.$ELEMENT||{}).size}},provide:function(){return{elDescriptions:this}},methods:{getOptionProps:function(t){if(t.componentOptions){var e=t.componentOptions,n=e.propsData,r=void 0===n?{}:n,i=e.Ctor,o=void 0===i?{}:i,a=(o.options||{}).props||{},s={};for(var u in a){var l=a[u],c=l.default;void 0!==c&&(s[u]=Object(If.isFunction)(c)?c.call(t):c)}return Fy({},s,r)}return{}},getSlots:function(t){var e=this,n=t.componentOptions||{},r=t.children||n.children||[],i={};return r.forEach(function(t){if(!e.isEmptyElement(t)){var n=t.data&&t.data.slot||"default";i[n]=i[n]||[],"template"===t.tag?i[n].push(t.children):i[n].push(t)}}),Fy({},i)},isEmptyElement:function(t){return!(t.tag||t.text&&""!==t.text.trim())},filledNode:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return t.props||(t.props={}),e>n&&(t.props.span=n),r&&(t.props.span=n),t},getRows:function(){var t=this,e=(this.$slots.default||[]).filter(function(t){return t.tag&&t.componentOptions&&"ElDescriptionsItem"===t.componentOptions.Ctor.options.name}),n=e.map(function(e){return{props:t.getOptionProps(e),slots:t.getSlots(e),vnode:e}}),r=[],i=[],o=this.column;return n.forEach(function(n,a){var s=n.props.span||1;if(a===e.length-1)return i.push(t.filledNode(n,s,o,!0)),void r.push(i);s<o?(o-=s,i.push(n)):(i.push(t.filledNode(n,s,o)),r.push(i),o=t.column,i=[])}),r}},render:function(){var t=arguments[0],e=this.title,n=this.extra,r=this.border,i=this.descriptionsSize,o=this.$slots,a=this.getRows();return t("div",{class:"el-descriptions"},[e||n||o.title||o.extra?t("div",{class:"el-descriptions__header"},[t("div",{class:"el-descriptions__title"},[o.title?o.title:e]),t("div",{class:"el-descriptions__extra"},[o.extra?o.extra:n])]):null,t("div",{class:"el-descriptions__body"},[t("table",{class:["el-descriptions__table",{"is-bordered":r},i?"el-descriptions--"+i:""]},[a.map(function(e){return t(jy,{attrs:{row:e}})})])])])}};By.install=function(t){t.component(By.name,By)};var Vy=By,zy={name:"ElDescriptionsItem",props:{label:{type:String,default:""},span:{type:Number,default:1},contentClassName:{type:String,default:""},contentStyle:{type:Object},labelClassName:{type:String,default:""},labelStyle:{type:Object}},render:function(){return null}};zy.install=function(t){t.component(zy.name,zy)};var Uy=zy,Hy=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-result"},[n("div",{staticClass:"el-result__icon"},[t._t("icon",[n(t.iconElement,{tag:"component",class:t.iconElement})])],2),t.title||t.$slots.title?n("div",{staticClass:"el-result__title"},[t._t("title",[n("p",[t._v(t._s(t.title))])])],2):t._e(),t.subTitle||t.$slots.subTitle?n("div",{staticClass:"el-result__subtitle"},[t._t("subTitle",[n("p",[t._v(t._s(t.subTitle))])])],2):t._e(),t.$slots.extra?n("div",{staticClass:"el-result__extra"},[t._t("extra")],2):t._e()])},qy=[];Hy._withStripped=!0;var Wy=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("svg",{attrs:{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M34.5548098,16.4485711 C33.9612228,15.8504763 32.9988282,15.8504763 32.4052412,16.4485711 L32.4052412,16.4485711 L21.413757,27.5805811 L21.413757,27.5805811 L21.4034642,27.590855 C21.0097542,27.9781674 20.3766105,27.9729811 19.9892981,27.5792711 L19.9892981,27.5792711 L15.5947588,23.1121428 C15.0011718,22.514048 14.0387772,22.514048 13.4451902,23.1121428 C12.8516033,23.7102376 12.8516033,24.6799409 13.4451902,25.2780357 L13.4451902,25.2780357 L19.6260786,31.5514289 C20.2196656,32.1495237 21.1820602,32.1495237 21.7756472,31.5514289 L21.7756472,31.5514289 L34.5548098,18.614464 C35.1483967,18.0163692 35.1483967,17.0466659 34.5548098,16.4485711 Z"}})])},Gy=[];Wy._withStripped=!0;var Yy={name:"IconSuccess"},Ky=Yy,Xy=r(Ky,Wy,Gy,!1,null,null,null);Xy.options.__file="packages/result/src/icon-success.vue";var Jy=Xy.exports,Qy=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("svg",{attrs:{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M32.57818,15.42182 C32.0157534,14.8593933 31.1038797,14.8593933 30.541453,15.42182 L30.541453,15.42182 L24.0006789,21.9625941 L17.458547,15.42182 C16.8961203,14.8593933 15.9842466,14.8593933 15.42182,15.42182 C14.8593933,15.9842466 14.8593933,16.8961203 15.42182,17.458547 L15.42182,17.458547 L21.9639519,23.9993211 L15.42182,30.541453 C14.8593933,31.1038797 14.8593933,32.0157534 15.42182,32.57818 C15.9842466,33.1406067 16.8961203,33.1406067 17.458547,32.57818 L17.458547,32.57818 L24.0006789,26.0360481 L30.541453,32.57818 C31.1038797,33.1406067 32.0157534,33.1406067 32.57818,32.57818 C33.1406067,32.0157534 33.1406067,31.1038797 32.57818,30.541453 L32.57818,30.541453 L26.0374059,23.9993211 L32.57818,17.458547 C33.1406067,16.8961203 33.1406067,15.9842466 32.57818,15.42182 Z"}})])},Zy=[];Qy._withStripped=!0;var tb={name:"IconError"},eb=tb,nb=r(eb,Qy,Zy,!1,null,null,null);nb.options.__file="packages/result/src/icon-error.vue";var rb=nb.exports,ib=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("svg",{attrs:{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M24,31 C22.8954305,31 22,31.8954305 22,33 C22,34.1045695 22.8954305,35 24,35 C25.1045695,35 26,34.1045695 26,33 C26,31.8954305 25.1045695,31 24,31 Z M24,14 C23.1715729,14 22.5,14.6715729 22.5,15.5 L22.5,15.5 L22.5,27.5 C22.5,28.3284271 23.1715729,29 24,29 C24.8284271,29 25.5,28.3284271 25.5,27.5 L25.5,27.5 L25.5,15.5 C25.5,14.6715729 24.8284271,14 24,14 Z"}})])},ob=[];ib._withStripped=!0;var ab={name:"IconWarning"},sb=ab,ub=r(sb,ib,ob,!1,null,null,null);ub.options.__file="packages/result/src/icon-warning.vue";var lb=ub.exports,cb=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("svg",{attrs:{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M24,19 L21,19 C20.1715729,19 19.5,19.6715729 19.5,20.5 C19.5,21.3284271 20.1715729,22 21,22 L21,22 L22.5,22 L22.5,31 L21,31 C20.1715729,31 19.5,31.6715729 19.5,32.5 C19.5,33.3284271 20.1715729,34 21,34 L21,34 L27,34 C27.8284271,34 28.5,33.3284271 28.5,32.5 C28.5,31.6715729 27.8284271,31 27,31 L27,31 L25.5,31 L25.5,20.5 C25.5,19.6715729 24.8284271,19 24,19 L24,19 Z M24,13 C22.8954305,13 22,13.8954305 22,15 C22,16.1045695 22.8954305,17 24,17 C25.1045695,17 26,16.1045695 26,15 C26,13.8954305 25.1045695,13 24,13 Z"}})])},fb=[];cb._withStripped=!0;var db={name:"IconInfo"},hb=db,pb=r(hb,cb,fb,!1,null,null,null);pb.options.__file="packages/result/src/icon-info.vue";var gb,mb=pb.exports,vb={success:"icon-success",warning:"icon-warning",error:"icon-error",info:"icon-info"},yb={name:"ElResult",components:(gb={},gb[Jy.name]=Jy,gb[rb.name]=rb,gb[lb.name]=lb,gb[mb.name]=mb,gb),props:{title:{type:String,default:""},subTitle:{type:String,default:""},icon:{type:String,default:"info"}},computed:{iconElement:function(){var t=this.icon;return t&&vb[t]?vb[t]:"icon-info"}}},bb=yb,_b=r(bb,Hy,qy,!1,null,null,null);_b.options.__file="packages/result/src/index.vue";var wb=_b.exports;wb.install=function(t){t.component(wb.name,wb)};var xb=wb,kb=[W,ot,At,Lt,Ht,Jt,fe,_e,Oe,$e,Ke,rn,fn,bn,En,Mn,Bn,Gn,tr,Er,Tr,Ir,Vr,Yr,ro,lo,ja,Xa,ls,ys,_s,Qs,ou,du,Cu,Vu,Yu,Zu,El,Il,cc,Rc,Lc,Bc,df,bf,Ef,Kf,nd,ld,md,kd,Dd,$d,Ud,Xd,rh,yh,vp,Pp,Lp,Hp,Jp,ig,fg,mg,kg,Pg,Lg,nm,vm,Em,qm,Sv,Ov,$v,Hv,Zv,ay,_y,$y,Vy,Uy,xb,he.a],Sb=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ss.a.use(e.locale),Ss.a.i18n(e.i18n),kb.forEach(function(e){t.component(e.name,e)}),t.use(jm),t.use(Ac.directive),t.prototype.$ELEMENT={size:e.size||"",zIndex:e.zIndex||2e3},t.prototype.$loading=Ac.service,t.prototype.$msgbox=qs,t.prototype.$alert=qs.alert,t.prototype.$confirm=qs.confirm,t.prototype.$prompt=qs.prompt,t.prototype.$notify=Yl,t.prototype.$message=zf};"undefined"!=typeof window&&window.Vue&&Sb(window.Vue);e.default={version:"2.15.14",locale:Ss.a.use,i18n:Ss.a.i18n,install:Sb,CollapseTransition:he.a,Loading:Ac,Pagination:W,Dialog:ot,Autocomplete:At,Dropdown:Lt,DropdownMenu:Ht,DropdownItem:Jt,Menu:fe,Submenu:_e,MenuItem:Oe,MenuItemGroup:$e,Input:Ke,InputNumber:rn,Radio:fn,RadioGroup:bn,RadioButton:En,Checkbox:Mn,CheckboxButton:Bn,CheckboxGroup:Gn,Switch:tr,Select:Er,Option:Tr,OptionGroup:Ir,Button:Vr,ButtonGroup:Yr,Table:ro,TableColumn:lo,DatePicker:ja,TimeSelect:Xa,TimePicker:ls,Popover:ys,Tooltip:_s,MessageBox:qs,Breadcrumb:Qs,BreadcrumbItem:ou,Form:du,FormItem:Cu,Tabs:Vu,TabPane:Yu,Tag:Zu,Tree:El,Alert:Il,Notification:Yl,Slider:cc,Icon:Rc,Row:Lc,Col:Bc,Upload:df,Progress:bf,Spinner:Ef,Message:zf,Badge:Kf,Card:nd,Rate:ld,Steps:md,Step:kd,Carousel:Dd,Scrollbar:$d,CarouselItem:Ud,Collapse:Xd,CollapseItem:rh,Cascader:yh,ColorPicker:vp,Transfer:Pp,Container:Lp,Header:Hp,Aside:Jp,Main:ig,Footer:fg,Timeline:mg,TimelineItem:kg,Link:Pg,Divider:Lg,Image:nm,Calendar:vm,Backtop:Em,InfiniteScroll:jm,PageHeader:qm,CascaderPanel:Sv,Avatar:Ov,Drawer:$v,Statistic:Hv,Popconfirm:Zv,Skeleton:ay,SkeletonItem:_y,Empty:$y,Descriptions:Vy,DescriptionsItem:Uy,Result:xb}}]).default},function(t,e,n){t.exports=function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var i in t)e.d(r,i,function(e){return t[e]}.bind(null,i));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/dist/",e(e.s=87)}({0:function(t,e,n){"use strict";function r(t,e,n,r,i,o,a,s){var u="function"==typeof t?t.options:t;e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o);var l;if(a?(l=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(t,e){return l.call(e),c(t,e)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,l):[l]}return{exports:t,options:u}}n.d(e,"a",function(){return r})},10:function(t,e){t.exports=n(159)},2:function(t,e){t.exports=n(46)},22:function(t,e){t.exports=n(161)},3:function(t,e){t.exports=n(36)},30:function(t,e,n){"use strict";var r=n(2),i=n(3);e.a={bind:function(t,e,n){var o=null,a=void 0,s=Object(i.isMac)()?100:200,u=function(){return n.context[e.expression].apply()},l=function(){Date.now()-a<s&&u(),clearInterval(o),o=null};Object(r.on)(t,"mousedown",function(t){0===t.button&&(a=Date.now(),Object(r.once)(document,"mouseup",l),clearInterval(o),o=setInterval(u,s))})}}},87:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:["el-input-number",t.inputNumberSize?"el-input-number--"+t.inputNumberSize:"",{"is-disabled":t.inputNumberDisabled},{"is-without-controls":!t.controls},{"is-controls-right":t.controlsAtRight}],on:{dragstart:function(t){t.preventDefault()}}},[t.controls?n("span",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:t.decrease,expression:"decrease"}],staticClass:"el-input-number__decrease",class:{"is-disabled":t.minDisabled},attrs:{role:"button"},on:{keydown:function(e){return"button"in e||!t._k(e.keyCode,"enter",13,e.key,"Enter")?t.decrease(e):null}}},[n("i",{class:"el-icon-"+(t.controlsAtRight?"arrow-down":"minus")})]):t._e(),t.controls?n("span",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:t.increase,expression:"increase"}],staticClass:"el-input-number__increase",class:{"is-disabled":t.maxDisabled},attrs:{role:"button"},on:{keydown:function(e){return"button"in e||!t._k(e.keyCode,"enter",13,e.key,"Enter")?t.increase(e):null}}},[n("i",{class:"el-icon-"+(t.controlsAtRight?"arrow-up":"plus")})]):t._e(),n("el-input",{ref:"input",attrs:{value:t.displayValue,placeholder:t.placeholder,disabled:t.inputNumberDisabled,size:t.inputNumberSize,max:t.max,min:t.min,name:t.name,label:t.label},on:{blur:t.handleBlur,focus:t.handleFocus,input:t.handleInput,change:t.handleInputChange},nativeOn:{keydown:[function(e){return"button"in e||!t._k(e.keyCode,"up",38,e.key,["Up","ArrowUp"])?(e.preventDefault(),t.increase(e)):null},function(e){return"button"in e||!t._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"])?(e.preventDefault(),t.decrease(e)):null}]}})],1)},i=[];r._withStripped=!0;var o=n(10),a=n.n(o),s=n(22),u=n.n(s),l=n(30),c={name:"ElInputNumber",mixins:[u()("input")],inject:{elForm:{default:""},elFormItem:{default:""}},directives:{repeatClick:l.a},components:{ElInput:a.a},props:{step:{type:Number,default:1},stepStrictly:{type:Boolean,default:!1},max:{type:Number,default:1/0},min:{type:Number,default:-1/0},value:{},disabled:Boolean,size:String,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:""},name:String,label:String,placeholder:String,precision:{type:Number,validator:function(t){return t>=0&&t===parseInt(t,10)}}},data:function(){return{currentValue:0,userInput:null}},watch:{value:{immediate:!0,handler:function(t){var e=void 0===t?t:Number(t);if(void 0!==e){if(isNaN(e))return;if(this.stepStrictly){var n=this.getPrecision(this.step),r=Math.pow(10,n);e=Math.round(e/this.step)*r*this.step/r}void 0!==this.precision&&(e=this.toPrecision(e,this.precision))}e>=this.max&&(e=this.max),e<=this.min&&(e=this.min),this.currentValue=e,this.userInput=null,this.$emit("input",e)}}},computed:{minDisabled:function(){return this._decrease(this.value,this.step)<this.min},maxDisabled:function(){return this._increase(this.value,this.step)>this.max},numPrecision:function(){var t=this.value,e=this.step,n=this.getPrecision,r=this.precision,i=n(e);return void 0!==r?(i>r&&console.warn("[Element Warn][InputNumber]precision should not be less than the decimal places of step"),r):Math.max(n(t),i)},controlsAtRight:function(){return this.controls&&"right"===this.controlsPosition},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},inputNumberSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},inputNumberDisabled:function(){return this.disabled||!!(this.elForm||{}).disabled},displayValue:function(){if(null!==this.userInput)return this.userInput;var t=this.currentValue;if("number"==typeof t){if(this.stepStrictly){var e=this.getPrecision(this.step),n=Math.pow(10,e);t=Math.round(t/this.step)*n*this.step/n}void 0!==this.precision&&(t=t.toFixed(this.precision))}return t}},methods:{toPrecision:function(t,e){return void 0===e&&(e=this.numPrecision),parseFloat(Math.round(t*Math.pow(10,e))/Math.pow(10,e))},getPrecision:function(t){if(void 0===t)return 0;var e=t.toString(),n=e.indexOf("."),r=0;return-1!==n&&(r=e.length-n-1),r},_increase:function(t,e){if("number"!=typeof t&&void 0!==t)return this.currentValue;var n=Math.pow(10,this.numPrecision);return this.toPrecision((n*t+n*e)/n)},_decrease:function(t,e){if("number"!=typeof t&&void 0!==t)return this.currentValue;var n=Math.pow(10,this.numPrecision);return this.toPrecision((n*t-n*e)/n)},increase:function(){if(!this.inputNumberDisabled&&!this.maxDisabled){var t=this.value||0,e=this._increase(t,this.step);this.setCurrentValue(e)}},decrease:function(){if(!this.inputNumberDisabled&&!this.minDisabled){var t=this.value||0,e=this._decrease(t,this.step);this.setCurrentValue(e)}},handleBlur:function(t){this.$emit("blur",t)},handleFocus:function(t){this.$emit("focus",t)},setCurrentValue:function(t){var e=this.currentValue;"number"==typeof t&&void 0!==this.precision&&(t=this.toPrecision(t,this.precision)),t>=this.max&&(t=this.max),t<=this.min&&(t=this.min),e!==t&&(this.userInput=null,this.$emit("input",t),this.$emit("change",t,e),this.currentValue=t)},handleInput:function(t){this.userInput=t},handleInputChange:function(t){var e=""===t?void 0:Number(t);isNaN(e)&&""!==t||this.setCurrentValue(e),this.userInput=null},select:function(){this.$refs.input.select()}},mounted:function(){var t=this.$refs.input.$refs.input;t.setAttribute("role","spinbutton"),t.setAttribute("aria-valuemax",this.max),t.setAttribute("aria-valuemin",this.min),t.setAttribute("aria-valuenow",this.currentValue),t.setAttribute("aria-disabled",this.inputNumberDisabled)},updated:function(){if(this.$refs&&this.$refs.input){this.$refs.input.$refs.input.setAttribute("aria-valuenow",this.currentValue)}}},f=c,d=n(0),h=Object(d.a)(f,r,i,!1,null,null,null);h.options.__file="packages/input-number/src/input-number.vue";var p=h.exports;p.install=function(t){t.component(p.name,p)};e.default=p}})},function(t,e,n){"use strict";e.__esModule=!0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.default=function(t){function e(t){for(var e=arguments.length,n=Array(e>1?e-1:0),a=1;a<e;a++)n[a-1]=arguments[a];return 1===n.length&&"object"===r(n[0])&&(n=n[0]),n&&n.hasOwnProperty||(n={}),t.replace(o,function(e,r,o,a){var s=void 0;return"{"===t[a-1]&&"}"===t[a+e.length]?o:(s=(0,i.hasOwn)(n,o)?n[o]:null,null===s||void 0===s?"":s)})}return e};var i=n(36),o=/(%|)\{([0-9a-zA-Z_]+)\}/g},function(t,e,n){"use strict";e.__esModule=!0,e.default={el:{colorpicker:{confirm:"确定",clear:"清空"},datepicker:{now:"此刻",today:"今天",cancel:"取消",clear:"清空",confirm:"确定",selectDate:"选择日期",selectTime:"选择时间",startDate:"开始日期",startTime:"开始时间",endDate:"结束日期",endTime:"结束时间",prevYear:"前一年",nextYear:"后一年",prevMonth:"上个月",nextMonth:"下个月",year:"年",month1:"1 月",month2:"2 月",month3:"3 月",month4:"4 月",month5:"5 月",month6:"6 月",month7:"7 月",month8:"8 月",month9:"9 月",month10:"10 月",month11:"11 月",month12:"12 月",weeks:{sun:"日",mon:"一",tue:"二",wed:"三",thu:"四",fri:"五",sat:"六"},months:{jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月"}},select:{loading:"加载中",noMatch:"无匹配数据",noData:"无数据",placeholder:"请选择"},cascader:{noMatch:"无匹配数据",loading:"加载中",placeholder:"请选择",noData:"暂无数据"},pagination:{goto:"前往",pagesize:"条/页",total:"共 {total} 条",pageClassifier:"页"},messagebox:{title:"提示",confirm:"确定",cancel:"取消",error:"输入的数据不合法!"},upload:{deleteTip:"按 delete 键可删除",delete:"删除",preview:"查看图片",continue:"继续上传"},table:{emptyText:"暂无数据",confirmFilter:"筛选",resetFilter:"重置",clearFilter:"全部",sumText:"合计"},tree:{emptyText:"暂无数据"},transfer:{noMatch:"无匹配数据",noData:"无数据",titles:["列表 1","列表 2"],filterPlaceholder:"请输入搜索内容",noCheckedFormat:"共 {total} 项",hasCheckedFormat:"已选 {checked}/{total} 项"},image:{error:"加载失败"},pageHeader:{title:"返回"},popconfirm:{confirmButtonText:"确定",cancelButtonText:"取消"},empty:{description:"暂无数据"}}}},function(t,e,n){t.exports=function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var i in t)e.d(r,i,function(e){return t[e]}.bind(null,i));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/dist/",e(e.s=54)}({0:function(t,e,n){"use strict";function r(t,e,n,r,i,o,a,s){var u="function"==typeof t?t.options:t;e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o);var l;if(a?(l=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(t,e){return l.call(e),c(t,e)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,l):[l]}return{exports:t,options:u}}n.d(e,"a",function(){return r})},3:function(t,e){t.exports=n(36)},33:function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("li",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"el-select-dropdown__item",class:{selected:t.itemSelected,"is-disabled":t.disabled||t.groupDisabled||t.limitReached,hover:t.hover},on:{mouseenter:t.hoverItem,click:function(e){return e.stopPropagation(),t.selectOptionClick(e)}}},[t._t("default",[n("span",[t._v(t._s(t.currentLabel))])])],2)},i=[];r._withStripped=!0;var o=n(4),a=n.n(o),s=n(3),u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l={mixins:[a.a],name:"ElOption",componentName:"ElOption",inject:["select"],props:{value:{required:!0},label:[String,Number],created:Boolean,disabled:{type:Boolean,default:!1}},data:function(){return{index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}},computed:{isObject:function(){return"[object object]"===Object.prototype.toString.call(this.value).toLowerCase()},currentLabel:function(){return this.label||(this.isObject?"":this.value)},currentValue:function(){return this.value||this.label||""},itemSelected:function(){return this.select.multiple?this.contains(this.select.value,this.value):this.isEqual(this.value,this.select.value)},limitReached:function(){return!!this.select.multiple&&(!this.itemSelected&&(this.select.value||[]).length>=this.select.multipleLimit&&this.select.multipleLimit>0)}},watch:{currentLabel:function(){this.created||this.select.remote||this.dispatch("ElSelect","setSelected")},value:function(t,e){var n=this.select,r=n.remote,i=n.valueKey;if(!this.created&&!r){if(i&&"object"===(void 0===t?"undefined":u(t))&&"object"===(void 0===e?"undefined":u(e))&&t[i]===e[i])return;this.dispatch("ElSelect","setSelected")}}},methods:{isEqual:function(t,e){if(this.isObject){var n=this.select.valueKey;return Object(s.getValueByPath)(t,n)===Object(s.getValueByPath)(e,n)}return t===e},contains:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments[1];if(this.isObject){var n=this.select.valueKey;return t&&t.some(function(t){return Object(s.getValueByPath)(t,n)===Object(s.getValueByPath)(e,n)})}return t&&t.indexOf(e)>-1},handleGroupDisabled:function(t){this.groupDisabled=t},hoverItem:function(){this.disabled||this.groupDisabled||(this.select.hoverIndex=this.select.options.indexOf(this))},selectOptionClick:function(){!0!==this.disabled&&!0!==this.groupDisabled&&this.dispatch("ElSelect","handleOptionClick",[this,!0])},queryChange:function(t){this.visible=new RegExp(Object(s.escapeRegexpString)(t),"i").test(this.currentLabel)||this.created,this.visible||this.select.filteredOptionsCount--}},created:function(){this.select.options.push(this),this.select.cachedOptions.push(this),this.select.optionsCount++,this.select.filteredOptionsCount++,this.$on("queryChange",this.queryChange),this.$on("handleGroupDisabled",this.handleGroupDisabled)},beforeDestroy:function(){var t=this.select,e=t.selected,n=t.multiple,r=n?e:[e],i=this.select.cachedOptions.indexOf(this),o=r.indexOf(this);i>-1&&o<0&&this.select.cachedOptions.splice(i,1),this.select.onOptionDestroy(this.select.options.indexOf(this))}},c=l,f=n(0),d=Object(f.a)(c,r,i,!1,null,null,null);d.options.__file="packages/select/src/option.vue";e.a=d.exports},4:function(t,e){t.exports=n(66)},54:function(t,e,n){"use strict";n.r(e);var r=n(33);r.a.install=function(t){t.component(r.a.name,r.a)},e.default=r.a}})},function(t,e,n){t.exports=function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var i in t)e.d(r,i,function(e){return t[e]}.bind(null,i));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/dist/",e(e.s=78)}({0:function(t,e,n){"use strict";function r(t,e,n,r,i,o,a,s){var u="function"==typeof t?t.options:t;e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o);var l;if(a?(l=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(t,e){return l.call(e),c(t,e)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,l):[l]}return{exports:t,options:u}}n.d(e,"a",function(){return r})},2:function(t,e){t.exports=n(46)},3:function(t,e){t.exports=n(36)},5:function(t,e){t.exports=n(110)},7:function(t,e){t.exports=n(14)},78:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span",[n("transition",{attrs:{name:t.transition},on:{"after-enter":t.handleAfterEnter,"after-leave":t.handleAfterLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:!t.disabled&&t.showPopper,expression:"!disabled && showPopper"}],ref:"popper",staticClass:"el-popover el-popper",class:[t.popperClass,t.content&&"el-popover--plain"],style:{width:t.width+"px"},attrs:{role:"tooltip",id:t.tooltipId,"aria-hidden":t.disabled||!t.showPopper?"true":"false"}},[t.title?n("div",{staticClass:"el-popover__title",domProps:{textContent:t._s(t.title)}}):t._e(),t._t("default",[t._v(t._s(t.content))])],2)]),n("span",{ref:"wrapper",staticClass:"el-popover__reference-wrapper"},[t._t("reference")],2)],1)},i=[];r._withStripped=!0;var o=n(5),a=n.n(o),s=n(2),u=n(3),l={name:"ElPopover",mixins:[a.a],props:{trigger:{type:String,default:"click",validator:function(t){return["click","focus","hover","manual"].indexOf(t)>-1}},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:200},title:String,disabled:Boolean,content:String,reference:{},popperClass:String,width:{},visibleArrow:{default:!0},arrowOffset:{type:Number,default:0},transition:{type:String,default:"fade-in-linear"},tabindex:{type:Number,default:0}},computed:{tooltipId:function(){return"el-popover-"+Object(u.generateId)()}},watch:{showPopper:function(t){this.disabled||(t?this.$emit("show"):this.$emit("hide"))}},mounted:function(){var t=this,e=this.referenceElm=this.reference||this.$refs.reference,n=this.popper||this.$refs.popper;!e&&this.$refs.wrapper.children&&(e=this.referenceElm=this.$refs.wrapper.children[0]),e&&(Object(s.addClass)(e,"el-popover__reference"),e.setAttribute("aria-describedby",this.tooltipId),e.setAttribute("tabindex",this.tabindex),n.setAttribute("tabindex",0),"click"!==this.trigger&&(Object(s.on)(e,"focusin",function(){t.handleFocus();var n=e.__vue__;n&&"function"==typeof n.focus&&n.focus()}),Object(s.on)(n,"focusin",this.handleFocus),Object(s.on)(e,"focusout",this.handleBlur),Object(s.on)(n,"focusout",this.handleBlur)),Object(s.on)(e,"keydown",this.handleKeydown),Object(s.on)(e,"click",this.handleClick)),"click"===this.trigger?(Object(s.on)(e,"click",this.doToggle),Object(s.on)(document,"click",this.handleDocumentClick)):"hover"===this.trigger?(Object(s.on)(e,"mouseenter",this.handleMouseEnter),Object(s.on)(n,"mouseenter",this.handleMouseEnter),Object(s.on)(e,"mouseleave",this.handleMouseLeave),Object(s.on)(n,"mouseleave",this.handleMouseLeave)):"focus"===this.trigger&&(this.tabindex<0&&console.warn("[Element Warn][Popover]a negative taindex means that the element cannot be focused by tab key"),e.querySelector("input, textarea")?(Object(s.on)(e,"focusin",this.doShow),Object(s.on)(e,"focusout",this.doClose)):(Object(s.on)(e,"mousedown",this.doShow),Object(s.on)(e,"mouseup",this.doClose)))},beforeDestroy:function(){this.cleanup()},deactivated:function(){this.cleanup()},methods:{doToggle:function(){this.showPopper=!this.showPopper},doShow:function(){this.showPopper=!0},doClose:function(){this.showPopper=!1},handleFocus:function(){Object(s.addClass)(this.referenceElm,"focusing"),"click"!==this.trigger&&"focus"!==this.trigger||(this.showPopper=!0)},handleClick:function(){Object(s.removeClass)(this.referenceElm,"focusing")},handleBlur:function(){Object(s.removeClass)(this.referenceElm,"focusing"),"click"!==this.trigger&&"focus"!==this.trigger||(this.showPopper=!1)},handleMouseEnter:function(){var t=this;clearTimeout(this._timer),this.openDelay?this._timer=setTimeout(function(){t.showPopper=!0},this.openDelay):this.showPopper=!0},handleKeydown:function(t){27===t.keyCode&&"manual"!==this.trigger&&this.doClose()},handleMouseLeave:function(){var t=this;clearTimeout(this._timer),this.closeDelay?this._timer=setTimeout(function(){t.showPopper=!1},this.closeDelay):this.showPopper=!1},handleDocumentClick:function(t){var e=this.reference||this.$refs.reference,n=this.popper||this.$refs.popper;!e&&this.$refs.wrapper.children&&(e=this.referenceElm=this.$refs.wrapper.children[0]),this.$el&&e&&!this.$el.contains(t.target)&&!e.contains(t.target)&&n&&!n.contains(t.target)&&(this.showPopper=!1)},handleAfterEnter:function(){this.$emit("after-enter")},handleAfterLeave:function(){this.$emit("after-leave"),this.doDestroy()},cleanup:function(){(this.openDelay||this.closeDelay)&&clearTimeout(this._timer)}},destroyed:function(){var t=this.reference;Object(s.off)(t,"click",this.doToggle),Object(s.off)(t,"mouseup",this.doClose),Object(s.off)(t,"mousedown",this.doShow),Object(s.off)(t,"focusin",this.doShow),Object(s.off)(t,"focusout",this.doClose),Object(s.off)(t,"mousedown",this.doShow),Object(s.off)(t,"mouseup",this.doClose),Object(s.off)(t,"mouseleave",this.handleMouseLeave),Object(s.off)(t,"mouseenter",this.handleMouseEnter),Object(s.off)(document,"click",this.handleDocumentClick)}},c=l,f=n(0),d=Object(f.a)(c,r,i,!1,null,null,null);d.options.__file="packages/popover/src/main.vue";var h=d.exports,p=function(t,e,n){var r=e.expression?e.value:e.arg,i=n.context.$refs[r];i&&(Array.isArray(i)?i[0].$refs.reference=t:i.$refs.reference=t)},g={bind:function(t,e,n){p(t,e,n)},inserted:function(t,e,n){p(t,e,n)}},m=n(7);n.n(m).a.directive("popover",g),h.install=function(t){t.directive("popover",g),t.component(h.name,h)},h.directive=g;e.default=h}})},function(t,e){t.exports=function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var i in t)e.d(r,i,function(e){return t[e]}.bind(null,i));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/dist/",e(e.s=104)}({0:function(t,e,n){"use strict";function r(t,e,n,r,i,o,a,s){var u="function"==typeof t?t.options:t;e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o);var l;if(a?(l=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(t,e){return l.call(e),c(t,e)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,l):[l]}return{exports:t,options:u}}n.d(e,"a",function(){return r})},104:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-progress",class:["el-progress--"+t.type,t.status?"is-"+t.status:"",{"el-progress--without-text":!t.showText,"el-progress--text-inside":t.textInside}],attrs:{role:"progressbar","aria-valuenow":t.percentage,"aria-valuemin":"0","aria-valuemax":"100"}},["line"===t.type?n("div",{staticClass:"el-progress-bar"},[n("div",{staticClass:"el-progress-bar__outer",style:{height:t.strokeWidth+"px",backgroundColor:t.defineBackColor}},[n("div",{staticClass:"el-progress-bar__inner",style:t.barStyle},[t.showText&&t.textInside?n("div",{staticClass:"el-progress-bar__innerText",style:{color:t.textColor}},[t._v(t._s(t.content))]):t._e()])])]):n("div",{staticClass:"el-progress-circle",style:{height:t.width+"px",width:t.width+"px"}},[n("svg",{attrs:{viewBox:"0 0 100 100"}},[n("path",{staticClass:"el-progress-circle__track",style:t.trailPathStyle,attrs:{d:t.trackPath,stroke:t.defineBackColor,"stroke-width":t.relativeStrokeWidth,fill:"none"}}),n("path",{staticClass:"el-progress-circle__path",style:t.circlePathStyle,attrs:{d:t.trackPath,stroke:t.stroke,fill:"none","stroke-linecap":t.strokeLinecap,"stroke-width":t.percentage?t.relativeStrokeWidth:0}})])]),t.showText&&!t.textInside?n("div",{staticClass:"el-progress__text",style:{fontSize:t.progressTextSize+"px",color:t.textColor}},[t.status?n("i",{class:t.iconClass}):[t._v(t._s(t.content))]],2):t._e()])},i=[];r._withStripped=!0;var o={name:"ElProgress",props:{type:{type:String,default:"line",validator:function(t){return["line","circle","dashboard"].indexOf(t)>-1}},percentage:{type:Number,default:0,required:!0,validator:function(t){return t>=0&&t<=100}},status:{type:String,validator:function(t){return["success","exception","warning"].indexOf(t)>-1}},strokeWidth:{type:Number,default:6},strokeLinecap:{type:String,default:"round"},textInside:{type:Boolean,default:!1},width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:[String,Array,Function],default:""},defineBackColor:{type:[String,Array,Function],default:"#ebeef5"},textColor:{type:[String,Array,Function],default:"#606266"},format:Function},computed:{barStyle:function(){var t={};return t.width=this.percentage+"%",t.backgroundColor=this.getCurrentColor(this.percentage),t},relativeStrokeWidth:function(){return(this.strokeWidth/this.width*100).toFixed(1)},radius:function(){return"circle"===this.type||"dashboard"===this.type?parseInt(50-parseFloat(this.relativeStrokeWidth)/2,10):0},trackPath:function(){var t=this.radius,e="dashboard"===this.type;return"\n M 50 50\n m 0 "+(e?"":"-")+t+"\n a "+t+" "+t+" 0 1 1 0 "+(e?"-":"")+2*t+"\n a "+t+" "+t+" 0 1 1 0 "+(e?"":"-")+2*t+"\n "},perimeter:function(){return 2*Math.PI*this.radius},rate:function(){return"dashboard"===this.type?.75:1},strokeDashoffset:function(){return-1*this.perimeter*(1-this.rate)/2+"px"},trailPathStyle:function(){return{strokeDasharray:this.perimeter*this.rate+"px, "+this.perimeter+"px",strokeDashoffset:this.strokeDashoffset}},circlePathStyle:function(){return{strokeDasharray:this.perimeter*this.rate*(this.percentage/100)+"px, "+this.perimeter+"px",strokeDashoffset:this.strokeDashoffset,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease"}},stroke:function(){var t=void 0;if(this.color)t=this.getCurrentColor(this.percentage);else switch(this.status){case"success":t="#13ce66";break;case"exception":t="#ff4949";break;case"warning":t="#e6a23c";break;default:t="#20a0ff"}return t},iconClass:function(){return"warning"===this.status?"el-icon-warning":"line"===this.type?"success"===this.status?"el-icon-circle-check":"el-icon-circle-close":"success"===this.status?"el-icon-check":"el-icon-close"},progressTextSize:function(){return"line"===this.type?12+.4*this.strokeWidth:.111111*this.width+2},content:function(){return"function"==typeof this.format?this.format(this.percentage)||"":this.percentage+"%"}},methods:{getCurrentColor:function(t){return"function"==typeof this.color?this.color(t):"string"==typeof this.color?this.color:this.getLevelColor(t)},getLevelColor:function(t){for(var e=this.getColorArray().sort(function(t,e){return t.percentage-e.percentage}),n=0;n<e.length;n++)if(e[n].percentage>t)return e[n].color;return e[e.length-1].color},getColorArray:function(){var t=this.color,e=100/t.length;return t.map(function(t,n){return"string"==typeof t?{color:t,percentage:(n+1)*e}:t})}}},a=o,s=n(0),u=Object(s.a)(a,r,i,!1,null,null,null);u.options.__file="packages/progress/src/progress.vue";var l=u.exports;l.install=function(t){t.component(l.name,l)};e.default=l}})},function(t,e,n){t.exports=function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var i in t)e.d(r,i,function(e){return t[e]}.bind(null,i));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/dist/",e(e.s=62)}({0:function(t,e,n){"use strict";function r(t,e,n,r,i,o,a,s){var u="function"==typeof t?t.options:t;e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o);var l;if(a?(l=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(t,e){return l.call(e),c(t,e)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,l):[l]}return{exports:t,options:u}}n.d(e,"a",function(){return r})},10:function(t,e){t.exports=n(159)},12:function(t,e){t.exports=n(249)},15:function(t,e){t.exports=n(163)},16:function(t,e){t.exports=n(165)},19:function(t,e){t.exports=n(111)},21:function(t,e){t.exports=n(109)},22:function(t,e){t.exports=n(161)},3:function(t,e){t.exports=n(36)},31:function(t,e){t.exports=n(166)},33:function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("li",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"el-select-dropdown__item",class:{selected:t.itemSelected,"is-disabled":t.disabled||t.groupDisabled||t.limitReached,hover:t.hover},on:{mouseenter:t.hoverItem,click:function(e){return e.stopPropagation(),t.selectOptionClick(e)}}},[t._t("default",[n("span",[t._v(t._s(t.currentLabel))])])],2)},i=[];r._withStripped=!0;var o=n(4),a=n.n(o),s=n(3),u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l={mixins:[a.a],name:"ElOption",componentName:"ElOption",inject:["select"],props:{value:{required:!0},label:[String,Number],created:Boolean,disabled:{type:Boolean,default:!1}},data:function(){return{index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}},computed:{isObject:function(){return"[object object]"===Object.prototype.toString.call(this.value).toLowerCase()},currentLabel:function(){return this.label||(this.isObject?"":this.value)},currentValue:function(){return this.value||this.label||""},itemSelected:function(){return this.select.multiple?this.contains(this.select.value,this.value):this.isEqual(this.value,this.select.value)},limitReached:function(){return!!this.select.multiple&&(!this.itemSelected&&(this.select.value||[]).length>=this.select.multipleLimit&&this.select.multipleLimit>0)}},watch:{currentLabel:function(){this.created||this.select.remote||this.dispatch("ElSelect","setSelected")},value:function(t,e){var n=this.select,r=n.remote,i=n.valueKey;if(!this.created&&!r){if(i&&"object"===(void 0===t?"undefined":u(t))&&"object"===(void 0===e?"undefined":u(e))&&t[i]===e[i])return;this.dispatch("ElSelect","setSelected")}}},methods:{isEqual:function(t,e){if(this.isObject){var n=this.select.valueKey;return Object(s.getValueByPath)(t,n)===Object(s.getValueByPath)(e,n)}return t===e},contains:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments[1];if(this.isObject){var n=this.select.valueKey;return t&&t.some(function(t){return Object(s.getValueByPath)(t,n)===Object(s.getValueByPath)(e,n)})}return t&&t.indexOf(e)>-1},handleGroupDisabled:function(t){this.groupDisabled=t},hoverItem:function(){this.disabled||this.groupDisabled||(this.select.hoverIndex=this.select.options.indexOf(this))},selectOptionClick:function(){!0!==this.disabled&&!0!==this.groupDisabled&&this.dispatch("ElSelect","handleOptionClick",[this,!0])},queryChange:function(t){this.visible=new RegExp(Object(s.escapeRegexpString)(t),"i").test(this.currentLabel)||this.created,this.visible||this.select.filteredOptionsCount--}},created:function(){this.select.options.push(this),this.select.cachedOptions.push(this),this.select.optionsCount++,this.select.filteredOptionsCount++,this.$on("queryChange",this.queryChange),this.$on("handleGroupDisabled",this.handleGroupDisabled)},beforeDestroy:function(){var t=this.select,e=t.selected,n=t.multiple,r=n?e:[e],i=this.select.cachedOptions.indexOf(this),o=r.indexOf(this);i>-1&&o<0&&this.select.cachedOptions.splice(i,1),this.select.onOptionDestroy(this.select.options.indexOf(this))}},c=l,f=n(0),d=Object(f.a)(c,r,i,!1,null,null,null);d.options.__file="packages/select/src/option.vue";e.a=d.exports},38:function(t,e){t.exports=n(247)},4:function(t,e){t.exports=n(66)},5:function(t,e){t.exports=n(110)},6:function(t,e){t.exports=n(162)},62:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:t.handleClose,expression:"handleClose"}],staticClass:"el-select",class:[t.selectSize?"el-select--"+t.selectSize:""],on:{click:function(e){return e.stopPropagation(),t.toggleMenu(e)}}},[t.multiple?n("div",{ref:"tags",staticClass:"el-select__tags",style:{"max-width":t.inputWidth-32+"px",width:"100%"}},[t.collapseTags&&t.selected.length?n("span",[n("el-tag",{attrs:{closable:!t.selectDisabled,size:t.collapseTagSize,hit:t.selected[0].hitState,type:"info","disable-transitions":""},on:{close:function(e){t.deleteTag(e,t.selected[0])}}},[n("span",{staticClass:"el-select__tags-text"},[t._v(t._s(t.selected[0].currentLabel))])]),t.selected.length>1?n("el-tag",{attrs:{closable:!1,size:t.collapseTagSize,type:"info","disable-transitions":""}},[n("span",{staticClass:"el-select__tags-text"},[t._v("+ "+t._s(t.selected.length-1))])]):t._e()],1):t._e(),t.collapseTags?t._e():n("transition-group",{on:{"after-leave":t.resetInputHeight}},t._l(t.selected,function(e){return n("el-tag",{key:t.getValueKey(e),attrs:{closable:!t.selectDisabled,size:t.collapseTagSize,hit:e.hitState,type:"info","disable-transitions":""},on:{close:function(n){t.deleteTag(n,e)}}},[n("span",{staticClass:"el-select__tags-text"},[t._v(t._s(e.currentLabel))])])}),1),t.filterable?n("input",{directives:[{name:"model",rawName:"v-model",value:t.query,expression:"query"}],ref:"input",staticClass:"el-select__input",class:[t.selectSize?"is-"+t.selectSize:""],style:{"flex-grow":"1",width:t.inputLength/(t.inputWidth-32)+"%","max-width":t.inputWidth-42+"px"},attrs:{type:"text",disabled:t.selectDisabled,autocomplete:t.autoComplete||t.autocomplete},domProps:{value:t.query},on:{focus:t.handleFocus,blur:function(e){t.softFocus=!1},keyup:t.managePlaceholder,keydown:[t.resetInputState,function(e){if(!("button"in e)&&t._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"]))return null;e.preventDefault(),t.handleNavigate("next")},function(e){if(!("button"in e)&&t._k(e.keyCode,"up",38,e.key,["Up","ArrowUp"]))return null;e.preventDefault(),t.handleNavigate("prev")},function(e){return"button"in e||!t._k(e.keyCode,"enter",13,e.key,"Enter")?(e.preventDefault(),t.selectOption(e)):null},function(e){if(!("button"in e)&&t._k(e.keyCode,"esc",27,e.key,["Esc","Escape"]))return null;e.stopPropagation(),e.preventDefault(),t.visible=!1},function(e){return"button"in e||!t._k(e.keyCode,"delete",[8,46],e.key,["Backspace","Delete","Del"])?t.deletePrevTag(e):null},function(e){if(!("button"in e)&&t._k(e.keyCode,"tab",9,e.key,"Tab"))return null;t.visible=!1}],compositionstart:t.handleComposition,compositionupdate:t.handleComposition,compositionend:t.handleComposition,input:[function(e){e.target.composing||(t.query=e.target.value)},t.debouncedQueryChange]}}):t._e()],1):t._e(),n("el-input",{ref:"reference",class:{"is-focus":t.visible},attrs:{type:"text",placeholder:t.currentPlaceholder,name:t.name,id:t.id,autocomplete:t.autoComplete||t.autocomplete,size:t.selectSize,disabled:t.selectDisabled,readonly:t.readonly,"validate-event":!1,tabindex:t.multiple&&t.filterable?"-1":null},on:{focus:t.handleFocus,blur:t.handleBlur,input:t.debouncedOnInputChange,compositionstart:t.handleComposition,compositionupdate:t.handleComposition,compositionend:t.handleComposition},nativeOn:{keydown:[function(e){if(!("button"in e)&&t._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"]))return null;e.stopPropagation(),e.preventDefault(),t.handleNavigate("next")},function(e){if(!("button"in e)&&t._k(e.keyCode,"up",38,e.key,["Up","ArrowUp"]))return null;e.stopPropagation(),e.preventDefault(),t.handleNavigate("prev")},function(e){return"button"in e||!t._k(e.keyCode,"enter",13,e.key,"Enter")?(e.preventDefault(),t.selectOption(e)):null},function(e){if(!("button"in e)&&t._k(e.keyCode,"esc",27,e.key,["Esc","Escape"]))return null;e.stopPropagation(),e.preventDefault(),t.visible=!1},function(e){if(!("button"in e)&&t._k(e.keyCode,"tab",9,e.key,"Tab"))return null;t.visible=!1}],mouseenter:function(e){t.inputHovering=!0},mouseleave:function(e){t.inputHovering=!1}},model:{value:t.selectedLabel,callback:function(e){t.selectedLabel=e},expression:"selectedLabel"}},[t.$slots.prefix?n("template",{slot:"prefix"},[t._t("prefix")],2):t._e(),n("template",{slot:"suffix"},[n("i",{directives:[{name:"show",rawName:"v-show",value:!t.showClose,expression:"!showClose"}],class:["el-select__caret","el-input__icon","el-icon-"+t.iconClass]}),t.showClose?n("i",{staticClass:"el-select__caret el-input__icon el-icon-circle-close",on:{click:t.handleClearClick}}):t._e()])],2),n("transition",{attrs:{name:"el-zoom-in-top"},on:{"before-enter":t.handleMenuEnter,"after-leave":t.doDestroy}},[n("el-select-menu",{directives:[{name:"show",rawName:"v-show",value:t.visible&&!1!==t.emptyText,expression:"visible && emptyText !== false"}],ref:"popper",attrs:{"append-to-body":t.popperAppendToBody}},[n("el-scrollbar",{directives:[{name:"show",rawName:"v-show",value:t.options.length>0&&!t.loading,expression:"options.length > 0 && !loading"}],ref:"scrollbar",class:{"is-empty":!t.allowCreate&&t.query&&0===t.filteredOptionsCount},attrs:{tag:"ul","wrap-class":"el-select-dropdown__wrap","view-class":"el-select-dropdown__list"}},[t.showNewOption?n("el-option",{attrs:{value:t.query,created:""}}):t._e(),t._t("default")],2),t.emptyText&&(!t.allowCreate||t.loading||t.allowCreate&&0===t.options.length)?[t.$slots.empty?t._t("empty"):n("p",{staticClass:"el-select-dropdown__empty"},[t._v("\n "+t._s(t.emptyText)+"\n ")])]:t._e()],2)],1)],1)},i=[];r._withStripped=!0;var o=n(4),a=n.n(o),s=n(22),u=n.n(s),l=n(6),c=n.n(l),f=n(10),d=n.n(f),h=function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"el-select-dropdown el-popper",class:[{"is-multiple":t.$parent.multiple},t.popperClass],style:{minWidth:t.minWidth}},[t._t("default")],2)},p=[];h._withStripped=!0;var g=n(5),m=n.n(g),v={name:"ElSelectDropdown",componentName:"ElSelectDropdown",mixins:[m.a],props:{placement:{default:"bottom-start"},boundariesPadding:{default:0},popperOptions:{default:function(){return{gpuAcceleration:!1}}},visibleArrow:{default:!0},appendToBody:{type:Boolean,default:!0}},data:function(){return{minWidth:""}},computed:{popperClass:function(){return this.$parent.popperClass}},watch:{"$parent.inputWidth":function(){this.minWidth=this.$parent.$el.getBoundingClientRect().width+"px"}},mounted:function(){var t=this;this.referenceElm=this.$parent.$refs.reference.$el,this.$parent.popperElm=this.popperElm=this.$el,this.$on("updatePopper",function(){t.$parent.visible&&t.updatePopper()}),this.$on("destroyPopper",this.destroyPopper)}},y=v,b=n(0),_=Object(b.a)(y,h,p,!1,null,null,null);_.options.__file="packages/select/src/select-dropdown.vue";var w=_.exports,x=n(33),k=n(38),S=n.n(k),C=n(15),E=n.n(C),T=n(19),A=n.n(T),O=n(12),P=n.n(O),N=n(16),D=n(31),M=n.n(D),I=n(3),R={data:function(){return{hoverOption:-1}},computed:{optionsAllDisabled:function(){return this.options.filter(function(t){return t.visible}).every(function(t){return t.disabled})}},watch:{hoverIndex:function(t){var e=this;"number"==typeof t&&t>-1&&(this.hoverOption=this.options[t]||{}),this.options.forEach(function(t){t.hover=e.hoverOption===t})}},methods:{navigateOptions:function(t){var e=this;if(!this.visible)return void(this.visible=!0);if(0!==this.options.length&&0!==this.filteredOptionsCount&&!this.optionsAllDisabled){"next"===t?++this.hoverIndex===this.options.length&&(this.hoverIndex=0):"prev"===t&&--this.hoverIndex<0&&(this.hoverIndex=this.options.length-1);var n=this.options[this.hoverIndex];!0!==n.disabled&&!0!==n.groupDisabled&&n.visible||this.navigateOptions(t),this.$nextTick(function(){return e.scrollToOption(e.hoverOption)})}}}},$=n(21),L={mixins:[a.a,c.a,u()("reference"),R],name:"ElSelect",componentName:"ElSelect",inject:{elForm:{default:""},elFormItem:{default:""}},provide:function(){return{select:this}},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},readonly:function(){return!this.filterable||this.multiple||!Object(I.isIE)()&&!Object(I.isEdge)()&&!this.visible},showClose:function(){var t=this.multiple?Array.isArray(this.value)&&this.value.length>0:void 0!==this.value&&null!==this.value&&""!==this.value;return this.clearable&&!this.selectDisabled&&this.inputHovering&&t},iconClass:function(){return this.remote&&this.filterable?"":this.visible?"arrow-up is-reverse":"arrow-up"},debounce:function(){return this.remote?300:0},emptyText:function(){return this.loading?this.loadingText||this.t("el.select.loading"):(!this.remote||""!==this.query||0!==this.options.length)&&(this.filterable&&this.query&&this.options.length>0&&0===this.filteredOptionsCount?this.noMatchText||this.t("el.select.noMatch"):0===this.options.length?this.noDataText||this.t("el.select.noData"):null)},showNewOption:function(){var t=this,e=this.options.filter(function(t){return!t.created}).some(function(e){return e.currentLabel===t.query});return this.filterable&&this.allowCreate&&""!==this.query&&!e},selectSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},selectDisabled:function(){return this.disabled||(this.elForm||{}).disabled},collapseTagSize:function(){return["small","mini"].indexOf(this.selectSize)>-1?"mini":"small"},propPlaceholder:function(){return void 0!==this.placeholder?this.placeholder:this.t("el.select.placeholder")}},components:{ElInput:d.a,ElSelectMenu:w,ElOption:x.a,ElTag:S.a,ElScrollbar:E.a},directives:{Clickoutside:P.a},props:{name:String,id:String,value:{required:!0},autocomplete:{type:String,default:"off"},autoComplete:{type:String,validator:function(t){return!0}},automaticDropdown:Boolean,size:String,disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:String,remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String,required:!1},defaultFirstOption:Boolean,reserveKeyword:Boolean,valueKey:{type:String,default:"value"},collapseTags:Boolean,popperAppendToBody:{type:Boolean,default:!0}},data:function(){return{options:[],cachedOptions:[],createdLabel:null,createdSelected:!1,selected:this.multiple?[]:{},inputLength:20,inputWidth:0,initialInputHeight:0,cachedPlaceHolder:"",optionsCount:0,filteredOptionsCount:0,visible:!1,softFocus:!1,selectedLabel:"",hoverIndex:-1,query:"",previousQuery:null,inputHovering:!1,currentPlaceholder:"",menuVisibleOnFocus:!1,isOnComposition:!1,isSilentBlur:!1}},watch:{selectDisabled:function(){var t=this;this.$nextTick(function(){t.resetInputHeight()})},propPlaceholder:function(t){this.cachedPlaceHolder=this.currentPlaceholder=t},value:function(t,e){this.multiple&&(this.resetInputHeight(),t&&t.length>0||this.$refs.input&&""!==this.query?this.currentPlaceholder="":this.currentPlaceholder=this.cachedPlaceHolder,this.filterable&&!this.reserveKeyword&&(this.query="",this.handleQueryChange(this.query))),this.setSelected(),this.filterable&&!this.multiple&&(this.inputLength=20),Object(I.valueEquals)(t,e)||this.dispatch("ElFormItem","el.form.change",t)},visible:function(t){var e=this;t?(this.broadcast("ElSelectDropdown","updatePopper"),this.filterable&&(this.query=this.remote?"":this.selectedLabel,this.handleQueryChange(this.query),this.multiple?this.$refs.input.focus():(this.remote||(this.broadcast("ElOption","queryChange",""),this.broadcast("ElOptionGroup","queryChange")),this.selectedLabel&&(this.currentPlaceholder=this.selectedLabel,this.selectedLabel="")))):(this.broadcast("ElSelectDropdown","destroyPopper"),this.$refs.input&&this.$refs.input.blur(),this.query="",this.previousQuery=null,this.selectedLabel="",this.inputLength=20,this.menuVisibleOnFocus=!1,this.resetHoverIndex(),this.$nextTick(function(){e.$refs.input&&""===e.$refs.input.value&&0===e.selected.length&&(e.currentPlaceholder=e.cachedPlaceHolder)}),this.multiple||(this.selected&&(this.filterable&&this.allowCreate&&this.createdSelected&&this.createdLabel?this.selectedLabel=this.createdLabel:this.selectedLabel=this.selected.currentLabel,this.filterable&&(this.query=this.selectedLabel)),this.filterable&&(this.currentPlaceholder=this.cachedPlaceHolder))),this.$emit("visible-change",t)},options:function(){var t=this;if(!this.$isServer){this.$nextTick(function(){t.broadcast("ElSelectDropdown","updatePopper")}),this.multiple&&this.resetInputHeight();var e=this.$el.querySelectorAll("input");-1===[].indexOf.call(e,document.activeElement)&&this.setSelected(),this.defaultFirstOption&&(this.filterable||this.remote)&&this.filteredOptionsCount&&this.checkDefaultFirstOption()}}},methods:{handleNavigate:function(t){this.isOnComposition||this.navigateOptions(t)},handleComposition:function(t){var e=this,n=t.target.value;if("compositionend"===t.type)this.isOnComposition=!1,this.$nextTick(function(t){return e.handleQueryChange(n)});else{var r=n[n.length-1]||"";this.isOnComposition=!Object($.isKorean)(r)}},handleQueryChange:function(t){var e=this;if(this.previousQuery!==t&&!this.isOnComposition){if(null===this.previousQuery&&("function"==typeof this.filterMethod||"function"==typeof this.remoteMethod))return void(this.previousQuery=t);this.previousQuery=t,this.$nextTick(function(){e.visible&&e.broadcast("ElSelectDropdown","updatePopper")}),this.hoverIndex=-1,this.multiple&&this.filterable&&this.$nextTick(function(){var t=15*e.$refs.input.value.length+20;e.inputLength=e.collapseTags?Math.min(50,t):t,e.managePlaceholder(),e.resetInputHeight()}),this.remote&&"function"==typeof this.remoteMethod?(this.hoverIndex=-1,this.remoteMethod(t)):"function"==typeof this.filterMethod?(this.filterMethod(t),this.broadcast("ElOptionGroup","queryChange")):(this.filteredOptionsCount=this.optionsCount,this.broadcast("ElOption","queryChange",t),this.broadcast("ElOptionGroup","queryChange")),this.defaultFirstOption&&(this.filterable||this.remote)&&this.filteredOptionsCount&&this.checkDefaultFirstOption()}},scrollToOption:function(t){var e=Array.isArray(t)&&t[0]?t[0].$el:t.$el;if(this.$refs.popper&&e){var n=this.$refs.popper.$el.querySelector(".el-select-dropdown__wrap");M()(n,e)}this.$refs.scrollbar&&this.$refs.scrollbar.handleScroll()},handleMenuEnter:function(){var t=this;this.$nextTick(function(){return t.scrollToOption(t.selected)})},emitChange:function(t){Object(I.valueEquals)(this.value,t)||this.$emit("change",t)},getOption:function(t){for(var e=void 0,n="[object object]"===Object.prototype.toString.call(t).toLowerCase(),r="[object null]"===Object.prototype.toString.call(t).toLowerCase(),i="[object undefined]"===Object.prototype.toString.call(t).toLowerCase(),o=this.cachedOptions.length-1;o>=0;o--){var a=this.cachedOptions[o];if(n?Object(I.getValueByPath)(a.value,this.valueKey)===Object(I.getValueByPath)(t,this.valueKey):a.value===t){e=a;break}}if(e)return e;var s=n||r||i?"":String(t),u={value:t,currentLabel:s};return this.multiple&&(u.hitState=!1),u},setSelected:function(){var t=this;if(!this.multiple){var e=this.getOption(this.value);return e.created?(this.createdLabel=e.currentLabel,this.createdSelected=!0):this.createdSelected=!1,this.selectedLabel=e.currentLabel,this.selected=e,void(this.filterable&&(this.query=this.selectedLabel))}var n=[];Array.isArray(this.value)&&this.value.forEach(function(e){n.push(t.getOption(e))}),this.selected=n,this.$nextTick(function(){t.resetInputHeight()})},handleFocus:function(t){this.softFocus?this.softFocus=!1:((this.automaticDropdown||this.filterable)&&(this.filterable&&!this.visible&&(this.menuVisibleOnFocus=!0),this.visible=!0),this.$emit("focus",t))},blur:function(){this.visible=!1,this.$refs.reference.blur()},handleBlur:function(t){var e=this;setTimeout(function(){e.isSilentBlur?e.isSilentBlur=!1:e.$emit("blur",t)},50),this.softFocus=!1},handleClearClick:function(t){this.deleteSelected(t)},doDestroy:function(){this.$refs.popper&&this.$refs.popper.doDestroy()},handleClose:function(){this.visible=!1},toggleLastOptionHitState:function(t){if(Array.isArray(this.selected)){var e=this.selected[this.selected.length-1];if(e)return!0===t||!1===t?(e.hitState=t,t):(e.hitState=!e.hitState,e.hitState)}},deletePrevTag:function(t){if(t.target.value.length<=0&&!this.toggleLastOptionHitState()){var e=this.value.slice();e.pop(),this.$emit("input",e),this.emitChange(e)}},managePlaceholder:function(){""!==this.currentPlaceholder&&(this.currentPlaceholder=this.$refs.input.value?"":this.cachedPlaceHolder)},resetInputState:function(t){8!==t.keyCode&&this.toggleLastOptionHitState(!1),this.inputLength=15*this.$refs.input.value.length+20,this.resetInputHeight()},resetInputHeight:function(){var t=this;this.collapseTags&&!this.filterable||this.$nextTick(function(){if(t.$refs.reference){var e=t.$refs.reference.$el.childNodes,n=[].filter.call(e,function(t){return"INPUT"===t.tagName})[0],r=t.$refs.tags,i=r?Math.round(r.getBoundingClientRect().height):0,o=t.initialInputHeight||40;n.style.height=0===t.selected.length?o+"px":Math.max(r?i+(i>o?6:0):0,o)+"px",t.visible&&!1!==t.emptyText&&t.broadcast("ElSelectDropdown","updatePopper")}})},resetHoverIndex:function(){var t=this;setTimeout(function(){t.multiple?t.selected.length>0?t.hoverIndex=Math.min.apply(null,t.selected.map(function(e){return t.options.indexOf(e)})):t.hoverIndex=-1:t.hoverIndex=t.options.indexOf(t.selected)},300)},handleOptionSelect:function(t,e){var n=this;if(this.multiple){var r=(this.value||[]).slice(),i=this.getValueIndex(r,t.value);i>-1?r.splice(i,1):(this.multipleLimit<=0||r.length<this.multipleLimit)&&r.push(t.value),this.$emit("input",r),this.emitChange(r),t.created&&(this.query="",this.handleQueryChange(""),this.inputLength=20),this.filterable&&this.$refs.input.focus()}else this.$emit("input",t.value),this.emitChange(t.value),this.visible=!1;this.isSilentBlur=e,this.setSoftFocus(),this.visible||this.$nextTick(function(){n.scrollToOption(t)})},setSoftFocus:function(){this.softFocus=!0;var t=this.$refs.input||this.$refs.reference;t&&t.focus()},getValueIndex:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments[1];if("[object object]"===Object.prototype.toString.call(e).toLowerCase()){var n=this.valueKey,r=-1;return t.some(function(t,i){return Object(I.getValueByPath)(t,n)===Object(I.getValueByPath)(e,n)&&(r=i,!0)}),r}return t.indexOf(e)},toggleMenu:function(){this.selectDisabled||(this.menuVisibleOnFocus?this.menuVisibleOnFocus=!1:this.visible=!this.visible,this.visible&&(this.$refs.input||this.$refs.reference).focus())},selectOption:function(){this.visible?this.options[this.hoverIndex]&&this.handleOptionSelect(this.options[this.hoverIndex]):this.toggleMenu()},deleteSelected:function(t){t.stopPropagation();var e=this.multiple?[]:"";this.$emit("input",e),this.emitChange(e),this.visible=!1,this.$emit("clear")},deleteTag:function(t,e){var n=this.selected.indexOf(e);if(n>-1&&!this.selectDisabled){var r=this.value.slice();r.splice(n,1),this.$emit("input",r),this.emitChange(r),this.$emit("remove-tag",e.value)}t.stopPropagation()},onInputChange:function(){this.filterable&&this.query!==this.selectedLabel&&(this.query=this.selectedLabel,this.handleQueryChange(this.query))},onOptionDestroy:function(t){t>-1&&(this.optionsCount--,this.filteredOptionsCount--,this.options.splice(t,1))},resetInputWidth:function(){this.inputWidth=this.$refs.reference.$el.getBoundingClientRect().width},handleResize:function(){this.resetInputWidth(),this.multiple&&this.resetInputHeight()},checkDefaultFirstOption:function(){this.hoverIndex=-1;for(var t=!1,e=this.options.length-1;e>=0;e--)if(this.options[e].created){t=!0,this.hoverIndex=e;break}if(!t)for(var n=0;n!==this.options.length;++n){var r=this.options[n];if(this.query){if(!r.disabled&&!r.groupDisabled&&r.visible){this.hoverIndex=n;break}}else if(r.itemSelected){this.hoverIndex=n;break}}},getValueKey:function(t){return"[object object]"!==Object.prototype.toString.call(t.value).toLowerCase()?t.value:Object(I.getValueByPath)(t.value,this.valueKey)}},created:function(){var t=this;this.cachedPlaceHolder=this.currentPlaceholder=this.propPlaceholder,this.multiple&&!Array.isArray(this.value)&&this.$emit("input",[]),!this.multiple&&Array.isArray(this.value)&&this.$emit("input",""),this.debouncedOnInputChange=A()(this.debounce,function(){t.onInputChange()}),this.debouncedQueryChange=A()(this.debounce,function(e){t.handleQueryChange(e.target.value)}),this.$on("handleOptionClick",this.handleOptionSelect),this.$on("setSelected",this.setSelected)},mounted:function(){var t=this;this.multiple&&Array.isArray(this.value)&&this.value.length>0&&(this.currentPlaceholder=""),Object(N.addResizeListener)(this.$el,this.handleResize);var e=this.$refs.reference;if(e&&e.$el){var n={medium:36,small:32,mini:28},r=e.$el.querySelector("input");this.initialInputHeight=r.getBoundingClientRect().height||n[this.selectSize]}this.remote&&this.multiple&&this.resetInputHeight(),this.$nextTick(function(){e&&e.$el&&(t.inputWidth=e.$el.getBoundingClientRect().width)}),this.setSelected()},beforeDestroy:function(){this.$el&&this.handleResize&&Object(N.removeResizeListener)(this.$el,this.handleResize)}},j=L,F=Object(b.a)(j,r,i,!1,null,null,null);F.options.__file="packages/select/src/select.vue";var B=F.exports;B.install=function(t){t.component(B.name,B)};e.default=B}})},function(t,e,n){t.exports=function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var i in t)e.d(r,i,function(e){return t[e]}.bind(null,i));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/dist/",e(e.s=138)}({138:function(t,e,n){"use strict";n.r(e);var r=n(5),i=n.n(r),o=n(19),a=n.n(o),s=n(2),u=n(3),l=n(7),c=n.n(l),f={name:"ElTooltip",mixins:[i.a],props:{openDelay:{type:Number,default:0},disabled:Boolean,manual:Boolean,effect:{type:String,default:"dark"},arrowOffset:{type:Number,default:0},popperClass:String,content:String,visibleArrow:{default:!0},transition:{type:String,default:"el-fade-in-linear"},popperOptions:{default:function(){return{boundariesPadding:10,gpuAcceleration:!1}}},enterable:{type:Boolean,default:!0},hideAfter:{type:Number,default:0},tabindex:{type:Number,default:0}},data:function(){return{tooltipId:"el-tooltip-"+Object(u.generateId)(),timeoutPending:null,focusing:!1}},beforeCreate:function(){var t=this;this.$isServer||(this.popperVM=new c.a({data:{node:""},render:function(t){return this.node}}).$mount(),this.debounceClose=a()(200,function(){return t.handleClosePopper()}))},render:function(t){var e=this;this.popperVM&&(this.popperVM.node=t("transition",{attrs:{name:this.transition},on:{afterLeave:this.doDestroy}},[t("div",{on:{mouseleave:function(){e.setExpectedState(!1),e.debounceClose()},mouseenter:function(){e.setExpectedState(!0)}},ref:"popper",attrs:{role:"tooltip",id:this.tooltipId,"aria-hidden":this.disabled||!this.showPopper?"true":"false"},directives:[{name:"show",value:!this.disabled&&this.showPopper}],class:["el-tooltip__popper","is-"+this.effect,this.popperClass]},[this.$slots.content||this.content])]));var n=this.getFirstElement();if(!n)return null;var r=n.data=n.data||{};return r.staticClass=this.addTooltipClass(r.staticClass),n},mounted:function(){var t=this;this.referenceElm=this.$el,1===this.$el.nodeType&&(this.$el.setAttribute("aria-describedby",this.tooltipId),this.$el.setAttribute("tabindex",this.tabindex),Object(s.on)(this.referenceElm,"mouseenter",this.show),Object(s.on)(this.referenceElm,"mouseleave",this.hide),Object(s.on)(this.referenceElm,"focus",function(){if(!t.$slots.default||!t.$slots.default.length)return void t.handleFocus();var e=t.$slots.default[0].componentInstance;e&&e.focus?e.focus():t.handleFocus()}),Object(s.on)(this.referenceElm,"blur",this.handleBlur),Object(s.on)(this.referenceElm,"click",this.removeFocusing)),this.value&&this.popperVM&&this.popperVM.$nextTick(function(){t.value&&t.updatePopper()})},watch:{focusing:function(t){t?Object(s.addClass)(this.referenceElm,"focusing"):Object(s.removeClass)(this.referenceElm,"focusing")}},methods:{show:function(){this.setExpectedState(!0),this.handleShowPopper()},hide:function(){this.setExpectedState(!1),this.debounceClose()},handleFocus:function(){this.focusing=!0,this.show()},handleBlur:function(){this.focusing=!1,this.hide()},removeFocusing:function(){this.focusing=!1},addTooltipClass:function(t){return t?"el-tooltip "+t.replace("el-tooltip",""):"el-tooltip"},handleShowPopper:function(){var t=this;this.expectedState&&!this.manual&&(clearTimeout(this.timeout),this.timeout=setTimeout(function(){t.showPopper=!0},this.openDelay),this.hideAfter>0&&(this.timeoutPending=setTimeout(function(){t.showPopper=!1},this.hideAfter)))},handleClosePopper:function(){this.enterable&&this.expectedState||this.manual||(clearTimeout(this.timeout),this.timeoutPending&&clearTimeout(this.timeoutPending),this.showPopper=!1,this.disabled&&this.doDestroy())},setExpectedState:function(t){!1===t&&clearTimeout(this.timeoutPending),this.expectedState=t},getFirstElement:function(){var t=this.$slots.default;if(!Array.isArray(t))return null;for(var e=null,n=0;n<t.length;n++)if(t[n]&&t[n].tag){e=t[n];break}return e}},beforeDestroy:function(){this.popperVM&&this.popperVM.$destroy()},destroyed:function(){var t=this.referenceElm;1===t.nodeType&&(Object(s.off)(t,"mouseenter",this.show),Object(s.off)(t,"mouseleave",this.hide),Object(s.off)(t,"focus",this.handleFocus),Object(s.off)(t,"blur",this.handleBlur),Object(s.off)(t,"click",this.removeFocusing))}};f.install=function(t){t.component(f.name,f)};e.default=f},19:function(t,e){t.exports=n(111)},2:function(t,e){t.exports=n(46)},3:function(t,e){t.exports=n(36)},5:function(t,e){t.exports=n(110)},7:function(t,e){t.exports=n(14)}})},function(t,e,n){"use strict";e.__esModule=!0,e.default=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!t||!e)throw new Error("instance & callback is required");var i=!1,o=function(){i||(i=!0,e&&e.apply(null,arguments))};r?t.$once("after-leave",o):t.$on("after-leave",o),setTimeout(function(){o()},n+100)}},function(t,e,n){"use strict";e.__esModule=!0;var r,i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=n(164),a=function(t){return t&&t.__esModule?t:{default:t}}(o),s=s||{};s.Dialog=function(t,e,n){var o=this;if(this.dialogNode=t,null===this.dialogNode||"dialog"!==this.dialogNode.getAttribute("role"))throw new Error("Dialog() requires a DOM element with ARIA role of dialog.");"string"==typeof e?this.focusAfterClosed=document.getElementById(e):"object"===(void 0===e?"undefined":i(e))?this.focusAfterClosed=e:this.focusAfterClosed=null,"string"==typeof n?this.focusFirst=document.getElementById(n):"object"===(void 0===n?"undefined":i(n))?this.focusFirst=n:this.focusFirst=null,this.focusFirst?this.focusFirst.focus():a.default.focusFirstDescendant(this.dialogNode),this.lastFocus=document.activeElement,r=function(t){o.trapFocus(t)},this.addListeners()},s.Dialog.prototype.addListeners=function(){document.addEventListener("focus",r,!0)},s.Dialog.prototype.removeListeners=function(){document.removeEventListener("focus",r,!0)},s.Dialog.prototype.closeDialog=function(){var t=this;this.removeListeners(),this.focusAfterClosed&&setTimeout(function(){t.focusAfterClosed.focus()})},s.Dialog.prototype.trapFocus=function(t){a.default.IgnoreUtilFocusChanges||(this.dialogNode.contains(t.target)?this.lastFocus=t.target:(a.default.focusFirstDescendant(this.dialogNode),this.lastFocus===document.activeElement&&a.default.focusLastDescendant(this.dialogNode),this.lastFocus=document.activeElement))},e.default=s.Dialog},function(t,e,n){"use strict";function r(t,e,n,r){for(var i=e;i<n;i++)t[i]=r}e.__esModule=!0,e.validateRangeInOneMonth=e.extractTimeFormat=e.extractDateFormat=e.nextYear=e.prevYear=e.nextMonth=e.prevMonth=e.changeYearMonthAndClampDate=e.timeWithinRange=e.limitTimeRange=e.clearMilliseconds=e.clearTime=e.modifyWithTimeString=e.modifyTime=e.modifyDate=e.range=e.getRangeMinutes=e.getMonthDays=e.getPrevMonthLastDays=e.getRangeHours=e.getWeekNumber=e.getStartDateOfMonth=e.nextDate=e.prevDate=e.getFirstDayOfMonth=e.getDayCountOfYear=e.getDayCountOfMonth=e.parseDate=e.formatDate=e.isDateObject=e.isDate=e.toDate=e.getI18nSettings=void 0;var i=n(250),o=function(t){return t&&t.__esModule?t:{default:t}}(i),a=n(160),s=["sun","mon","tue","wed","thu","fri","sat"],u=["jan","feb","mar","apr","may","jun","jul","aug","sep","oct","nov","dec"],l=function(t,e){for(var n=[],r=t;r<=e;r++)n.push(r);return n},c=e.getI18nSettings=function(){return{dayNamesShort:s.map(function(t){return(0,a.t)("el.datepicker.weeks."+t)}),dayNames:s.map(function(t){return(0,a.t)("el.datepicker.weeks."+t)}),monthNamesShort:u.map(function(t){return(0,a.t)("el.datepicker.months."+t)}),monthNames:u.map(function(t,e){return(0,a.t)("el.datepicker.month"+(e+1))}),amPm:["am","pm"]}},f=e.toDate=function(t){return d(t)?new Date(t):null},d=e.isDate=function(t){return null!==t&&void 0!==t&&(!isNaN(new Date(t).getTime())&&!Array.isArray(t))},h=(e.isDateObject=function(t){return t instanceof Date},e.formatDate=function(t,e){return t=f(t),t?o.default.format(t,e||"yyyy-MM-dd",c()):""},e.parseDate=function(t,e){return o.default.parse(t,e||"yyyy-MM-dd",c())}),p=e.getDayCountOfMonth=function(t,e){return isNaN(+e)?31:new Date(t,+e+1,0).getDate()},g=(e.getDayCountOfYear=function(t){return t%400==0||t%100!=0&&t%4==0?366:365},e.getFirstDayOfMonth=function(t){var e=new Date(t.getTime());return e.setDate(1),e.getDay()},e.prevDate=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return new Date(t.getFullYear(),t.getMonth(),t.getDate()-e)}),m=(e.nextDate=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return new Date(t.getFullYear(),t.getMonth(),t.getDate()+e)},e.getStartDateOfMonth=function(t,e){var n=new Date(t,e,1),r=n.getDay();return 0===r?g(n,7):g(n,r)},e.getWeekNumber=function(t){if(!d(t))return null;var e=new Date(t.getTime());e.setHours(0,0,0,0),e.setDate(e.getDate()+3-(e.getDay()+6)%7);var n=new Date(e.getFullYear(),0,4);return 1+Math.round(((e.getTime()-n.getTime())/864e5-3+(n.getDay()+6)%7)/7)},e.getRangeHours=function(t){var e=[],n=[];if((t||[]).forEach(function(t){var e=t.map(function(t){return t.getHours()});n=n.concat(l(e[0],e[1]))}),n.length)for(var r=0;r<24;r++)e[r]=-1===n.indexOf(r);else for(var i=0;i<24;i++)e[i]=!1;return e},e.getPrevMonthLastDays=function(t,e){if(e<=0)return[];var n=new Date(t.getTime());n.setDate(0);var r=n.getDate();return m(e).map(function(t,n){return r-(e-n-1)})},e.getMonthDays=function(t){var e=new Date(t.getFullYear(),t.getMonth()+1,0),n=e.getDate();return m(n).map(function(t,e){return e+1})},e.getRangeMinutes=function(t,e){var n=new Array(60);return t.length>0?t.forEach(function(t){var i=t[0],o=t[1],a=i.getHours(),s=i.getMinutes(),u=o.getHours(),l=o.getMinutes();a===e&&u!==e?r(n,s,60,!0):a===e&&u===e?r(n,s,l+1,!0):a!==e&&u===e?r(n,0,l+1,!0):a<e&&u>e&&r(n,0,60,!0)}):r(n,0,60,!0),n},e.range=function(t){return Array.apply(null,{length:t}).map(function(t,e){return e})}),v=e.modifyDate=function(t,e,n,r){return new Date(e,n,r,t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds())},y=e.modifyTime=function(t,e,n,r){return new Date(t.getFullYear(),t.getMonth(),t.getDate(),e,n,r,t.getMilliseconds())},b=(e.modifyWithTimeString=function(t,e){return null!=t&&e?(e=h(e,"HH:mm:ss"),y(t,e.getHours(),e.getMinutes(),e.getSeconds())):t},e.clearTime=function(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate())},e.clearMilliseconds=function(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),0)},e.limitTimeRange=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"HH:mm:ss";if(0===e.length)return t;var r=function(t){return o.default.parse(o.default.format(t,n),n)},i=r(t),a=e.map(function(t){return t.map(r)});if(a.some(function(t){return i>=t[0]&&i<=t[1]}))return t;var s=a[0][0],u=a[0][0];return a.forEach(function(t){s=new Date(Math.min(t[0],s)),u=new Date(Math.max(t[1],s))}),v(i<s?s:u,t.getFullYear(),t.getMonth(),t.getDate())}),_=(e.timeWithinRange=function(t,e,n){return b(t,e,n).getTime()===t.getTime()},e.changeYearMonthAndClampDate=function(t,e,n){var r=Math.min(t.getDate(),p(e,n));return v(t,e,n,r)});e.prevMonth=function(t){var e=t.getFullYear(),n=t.getMonth();return 0===n?_(t,e-1,11):_(t,e,n-1)},e.nextMonth=function(t){var e=t.getFullYear(),n=t.getMonth();return 11===n?_(t,e+1,0):_(t,e,n+1)},e.prevYear=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=t.getFullYear(),r=t.getMonth();return _(t,n-e,r)},e.nextYear=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=t.getFullYear(),r=t.getMonth();return _(t,n+e,r)},e.extractDateFormat=function(t){return t.replace(/\W?m{1,2}|\W?ZZ/g,"").replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi,"").trim()},e.extractTimeFormat=function(t){return t.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?y{2,4}/g,"").trim()},e.validateRangeInOneMonth=function(t,e){return t.getMonth()===e.getMonth()&&t.getFullYear()===e.getFullYear()}},function(t,e,n){"use strict";(function(t,r){var i,o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};/**
  45. * @license
  46. * Lodash <https://lodash.com/>
  47. * Copyright JS Foundation and other contributors <https://js.foundation/>
  48. * Released under MIT license <https://lodash.com/license>
  49. * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
  50. * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
  51. */
  52. (function(){function a(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function s(t,e,n,r){for(var i=-1,o=null==t?0:t.length;++i<o;){var a=t[i];e(r,a,n(a),t)}return r}function u(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}function l(t,e){for(var n=null==t?0:t.length;n--&&!1!==e(t[n],n,t););return t}function c(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(!e(t[n],n,t))return!1;return!0}function f(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var a=t[n];e(a,n,t)&&(o[i++]=a)}return o}function d(t,e){return!!(null==t?0:t.length)&&k(t,e,0)>-1}function h(t,e,n){for(var r=-1,i=null==t?0:t.length;++r<i;)if(n(e,t[r]))return!0;return!1}function p(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}function g(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}function m(t,e,n,r){var i=-1,o=null==t?0:t.length;for(r&&o&&(n=t[++i]);++i<o;)n=e(n,t[i],i,t);return n}function v(t,e,n,r){var i=null==t?0:t.length;for(r&&i&&(n=t[--i]);i--;)n=e(n,t[i],i,t);return n}function y(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}function b(t){return t.split("")}function _(t){return t.match(Fe)||[]}function w(t,e,n){var r;return n(t,function(t,n,i){if(e(t,n,i))return r=n,!1}),r}function x(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++o<i;)if(e(t[o],o,t))return o;return-1}function k(t,e,n){return e===e?J(t,e,n):x(t,C,n)}function S(t,e,n,r){for(var i=n-1,o=t.length;++i<o;)if(r(t[i],e))return i;return-1}function C(t){return t!==t}function E(t,e){var n=null==t?0:t.length;return n?N(t,e)/n:Rt}function T(t){return function(e){return null==e?it:e[t]}}function A(t){return function(e){return null==t?it:t[e]}}function O(t,e,n,r,i){return i(t,function(t,i,o){n=r?(r=!1,t):e(n,t,i,o)}),n}function P(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}function N(t,e){for(var n,r=-1,i=t.length;++r<i;){var o=e(t[r]);o!==it&&(n=n===it?o:n+o)}return n}function D(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}function M(t,e){return p(e,function(e){return[e,t[e]]})}function I(t){return function(e){return t(e)}}function R(t,e){return p(e,function(e){return t[e]})}function $(t,e){return t.has(e)}function L(t,e){for(var n=-1,r=t.length;++n<r&&k(e,t[n],0)>-1;);return n}function j(t,e){for(var n=t.length;n--&&k(e,t[n],0)>-1;);return n}function F(t,e){for(var n=t.length,r=0;n--;)t[n]===e&&++r;return r}function B(t){return"\\"+Tn[t]}function V(t,e){return null==t?it:t[e]}function z(t){return yn.test(t)}function U(t){return bn.test(t)}function H(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}function q(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n}function W(t,e){return function(n){return t(e(n))}}function G(t,e){for(var n=-1,r=t.length,i=0,o=[];++n<r;){var a=t[n];a!==e&&a!==ct||(t[n]=ct,o[i++]=n)}return o}function Y(t,e){return"__proto__"==e?it:t[e]}function K(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}function X(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=[t,t]}),n}function J(t,e,n){for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}function Q(t,e,n){for(var r=n+1;r--;)if(t[r]===e)return r;return r}function Z(t){return z(t)?et(t):Hn(t)}function tt(t){return z(t)?nt(t):b(t)}function et(t){for(var e=mn.lastIndex=0;mn.test(t);)++e;return e}function nt(t){return t.match(mn)||[]}function rt(t){return t.match(vn)||[]}var it,ot=200,at="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",st="Expected a function",ut="__lodash_hash_undefined__",lt=500,ct="__lodash_placeholder__",ft=1,dt=2,ht=4,pt=1,gt=2,mt=1,vt=2,yt=4,bt=8,_t=16,wt=32,xt=64,kt=128,St=256,Ct=512,Et=30,Tt="...",At=800,Ot=16,Pt=1,Nt=2,Dt=1/0,Mt=9007199254740991,It=1.7976931348623157e308,Rt=NaN,$t=4294967295,Lt=$t-1,jt=$t>>>1,Ft=[["ary",kt],["bind",mt],["bindKey",vt],["curry",bt],["curryRight",_t],["flip",Ct],["partial",wt],["partialRight",xt],["rearg",St]],Bt="[object Arguments]",Vt="[object Array]",zt="[object AsyncFunction]",Ut="[object Boolean]",Ht="[object Date]",qt="[object DOMException]",Wt="[object Error]",Gt="[object Function]",Yt="[object GeneratorFunction]",Kt="[object Map]",Xt="[object Number]",Jt="[object Null]",Qt="[object Object]",Zt="[object Proxy]",te="[object RegExp]",ee="[object Set]",ne="[object String]",re="[object Symbol]",ie="[object Undefined]",oe="[object WeakMap]",ae="[object WeakSet]",se="[object ArrayBuffer]",ue="[object DataView]",le="[object Float32Array]",ce="[object Float64Array]",fe="[object Int8Array]",de="[object Int16Array]",he="[object Int32Array]",pe="[object Uint8Array]",ge="[object Uint8ClampedArray]",me="[object Uint16Array]",ve="[object Uint32Array]",ye=/\b__p \+= '';/g,be=/\b(__p \+=) '' \+/g,_e=/(__e\(.*?\)|\b__t\)) \+\n'';/g,we=/&(?:amp|lt|gt|quot|#39);/g,xe=/[&<>"']/g,ke=RegExp(we.source),Se=RegExp(xe.source),Ce=/<%-([\s\S]+?)%>/g,Ee=/<%([\s\S]+?)%>/g,Te=/<%=([\s\S]+?)%>/g,Ae=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Oe=/^\w*$/,Pe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ne=/[\\^$.*+?()[\]{}|]/g,De=RegExp(Ne.source),Me=/^\s+|\s+$/g,Ie=/^\s+/,Re=/\s+$/,$e=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Le=/\{\n\/\* \[wrapped with (.+)\] \*/,je=/,? & /,Fe=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Be=/\\(\\)?/g,Ve=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ze=/\w*$/,Ue=/^[-+]0x[0-9a-f]+$/i,He=/^0b[01]+$/i,qe=/^\[object .+?Constructor\]$/,We=/^0o[0-7]+$/i,Ge=/^(?:0|[1-9]\d*)$/,Ye=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ke=/($^)/,Xe=/['\n\r\u2028\u2029\\]/g,Je="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Qe="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ze="["+Qe+"]",tn="["+Je+"]",en="[a-z\\xdf-\\xf6\\xf8-\\xff]",nn="[^\\ud800-\\udfff"+Qe+"\\d+\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",rn="\\ud83c[\\udffb-\\udfff]",on="(?:\\ud83c[\\udde6-\\uddff]){2}",an="[\\ud800-\\udbff][\\udc00-\\udfff]",sn="[A-Z\\xc0-\\xd6\\xd8-\\xde]",un="(?:"+en+"|"+nn+")",ln="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",cn="(?:\\u200d(?:"+["[^\\ud800-\\udfff]",on,an].join("|")+")[\\ufe0e\\ufe0f]?"+ln+")*",fn="[\\ufe0e\\ufe0f]?"+ln+cn,dn="(?:"+["[\\u2700-\\u27bf]",on,an].join("|")+")"+fn,hn="(?:"+["[^\\ud800-\\udfff]"+tn+"?",tn,on,an,"[\\ud800-\\udfff]"].join("|")+")",pn=RegExp("['’]","g"),gn=RegExp(tn,"g"),mn=RegExp(rn+"(?="+rn+")|"+hn+fn,"g"),vn=RegExp([sn+"?"+en+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[Ze,sn,"$"].join("|")+")","(?:[A-Z\\xc0-\\xd6\\xd8-\\xde]|[^\\ud800-\\udfff\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\d+\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[Ze,sn+un,"$"].join("|")+")",sn+"?"+un+"+(?:['’](?:d|ll|m|re|s|t|ve))?",sn+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])","\\d+",dn].join("|"),"g"),yn=RegExp("[\\u200d\\ud800-\\udfff"+Je+"\\ufe0e\\ufe0f]"),bn=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,_n=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],wn=-1,xn={};xn[le]=xn[ce]=xn[fe]=xn[de]=xn[he]=xn[pe]=xn[ge]=xn[me]=xn[ve]=!0,xn[Bt]=xn[Vt]=xn[se]=xn[Ut]=xn[ue]=xn[Ht]=xn[Wt]=xn[Gt]=xn[Kt]=xn[Xt]=xn[Qt]=xn[te]=xn[ee]=xn[ne]=xn[oe]=!1;var kn={};kn[Bt]=kn[Vt]=kn[se]=kn[ue]=kn[Ut]=kn[Ht]=kn[le]=kn[ce]=kn[fe]=kn[de]=kn[he]=kn[Kt]=kn[Xt]=kn[Qt]=kn[te]=kn[ee]=kn[ne]=kn[re]=kn[pe]=kn[ge]=kn[me]=kn[ve]=!0,kn[Wt]=kn[Gt]=kn[oe]=!1;var Sn={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"},Cn={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},En={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Tn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},An=parseFloat,On=parseInt,Pn="object"===(void 0===t?"undefined":o(t))&&t&&t.Object===Object&&t,Nn="object"===("undefined"==typeof self?"undefined":o(self))&&self&&self.Object===Object&&self,Dn=Pn||Nn||Function("return this")(),Mn="object"===o(e)&&e&&!e.nodeType&&e,In=Mn&&"object"===o(r)&&r&&!r.nodeType&&r,Rn=In&&In.exports===Mn,$n=Rn&&Pn.process,Ln=function(){try{var t=In&&In.require&&In.require("util").types;return t||$n&&$n.binding&&$n.binding("util")}catch(t){}}(),jn=Ln&&Ln.isArrayBuffer,Fn=Ln&&Ln.isDate,Bn=Ln&&Ln.isMap,Vn=Ln&&Ln.isRegExp,zn=Ln&&Ln.isSet,Un=Ln&&Ln.isTypedArray,Hn=T("length"),qn=A(Sn),Wn=A(Cn),Gn=A(En),Yn=function t(e){function n(t){if(nu(t)&&!pd(t)&&!(t instanceof b)){if(t instanceof i)return t;if(hc.call(t,"__wrapped__"))return Zo(t)}return new i(t)}function r(){}function i(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=it}function b(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=$t,this.__views__=[]}function A(){var t=new b(this.__wrapped__);return t.__actions__=Ii(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Ii(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Ii(this.__views__),t}function J(){if(this.__filtered__){var t=new b(this);t.__dir__=-1,t.__filtered__=!0}else t=this.clone(),t.__dir__*=-1;return t}function et(){var t=this.__wrapped__.value(),e=this.__dir__,n=pd(t),r=e<0,i=n?t.length:0,o=So(0,i,this.__views__),a=o.start,s=o.end,u=s-a,l=r?s:a-1,c=this.__iteratees__,f=c.length,d=0,h=Uc(u,this.__takeCount__);if(!n||!r&&i==u&&h==u)return vi(t,this.__actions__);var p=[];t:for(;u--&&d<h;){l+=e;for(var g=-1,m=t[l];++g<f;){var v=c[g],y=v.iteratee,b=v.type,_=y(m);if(b==Nt)m=_;else if(!_){if(b==Pt)continue t;break t}}p[d++]=m}return p}function nt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Fe(){this.__data__=Zc?Zc(null):{},this.size=0}function Je(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}function Qe(t){var e=this.__data__;if(Zc){var n=e[t];return n===ut?it:n}return hc.call(e,t)?e[t]:it}function Ze(t){var e=this.__data__;return Zc?e[t]!==it:hc.call(e,t)}function tn(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Zc&&e===it?ut:e,this}function en(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function nn(){this.__data__=[],this.size=0}function rn(t){var e=this.__data__,n=Kn(e,t);return!(n<0)&&(n==e.length-1?e.pop():Tc.call(e,n,1),--this.size,!0)}function on(t){var e=this.__data__,n=Kn(e,t);return n<0?it:e[n][1]}function an(t){return Kn(this.__data__,t)>-1}function sn(t,e){var n=this.__data__,r=Kn(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}function un(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function ln(){this.size=0,this.__data__={hash:new nt,map:new(Kc||en),string:new nt}}function cn(t){var e=_o(this,t).delete(t);return this.size-=e?1:0,e}function fn(t){return _o(this,t).get(t)}function dn(t){return _o(this,t).has(t)}function hn(t,e){var n=_o(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}function mn(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new un;++e<n;)this.add(t[e])}function vn(t){return this.__data__.set(t,ut),this}function yn(t){return this.__data__.has(t)}function bn(t){var e=this.__data__=new en(t);this.size=e.size}function Sn(){this.__data__=new en,this.size=0}function Cn(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}function En(t){return this.__data__.get(t)}function Tn(t){return this.__data__.has(t)}function Pn(t,e){var n=this.__data__;if(n instanceof en){var r=n.__data__;if(!Kc||r.length<ot-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new un(r)}return n.set(t,e),this.size=n.size,this}function Nn(t,e){var n=pd(t),r=!n&&hd(t),i=!n&&!r&&md(t),o=!n&&!r&&!i&&wd(t),a=n||r||i||o,s=a?D(t.length,ac):[],u=s.length;for(var l in t)!e&&!hc.call(t,l)||a&&("length"==l||i&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||Do(l,u))||s.push(l);return s}function Mn(t){var e=t.length;return e?t[Qr(0,e-1)]:it}function In(t,e){return Ko(Ii(t),er(e,0,t.length))}function $n(t){return Ko(Ii(t))}function Ln(t,e,n){(n===it||zs(t[e],n))&&(n!==it||e in t)||Zn(t,e,n)}function Hn(t,e,n){var r=t[e];hc.call(t,e)&&zs(r,n)&&(n!==it||e in t)||Zn(t,e,n)}function Kn(t,e){for(var n=t.length;n--;)if(zs(t[n][0],e))return n;return-1}function Xn(t,e,n,r){return df(t,function(t,i,o){e(r,t,n(t),o)}),r}function Jn(t,e){return t&&Ri(e,Lu(e),t)}function Qn(t,e){return t&&Ri(e,ju(e),t)}function Zn(t,e,n){"__proto__"==e&&Nc?Nc(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function tr(t,e){for(var n=-1,r=e.length,i=Zl(r),o=null==t;++n<r;)i[n]=o?it:Iu(t,e[n]);return i}function er(t,e,n){return t===t&&(n!==it&&(t=t<=n?t:n),e!==it&&(t=t>=e?t:e)),t}function nr(t,e,n,r,i,o){var a,s=e&ft,l=e&dt,c=e&ht;if(n&&(a=i?n(t,r,i,o):n(t)),a!==it)return a;if(!eu(t))return t;var f=pd(t);if(f){if(a=To(t),!s)return Ii(t,a)}else{var d=Sf(t),h=d==Gt||d==Yt;if(md(t))return Si(t,s);if(d==Qt||d==Bt||h&&!i){if(a=l||h?{}:Ao(t),!s)return l?Li(t,Qn(a,t)):$i(t,Jn(a,t))}else{if(!kn[d])return i?t:{};a=Oo(t,d,s)}}o||(o=new bn);var p=o.get(t);if(p)return p;if(o.set(t,a),_d(t))return t.forEach(function(r){a.add(nr(r,e,n,r,t,o))}),a;if(yd(t))return t.forEach(function(r,i){a.set(i,nr(r,e,n,i,t,o))}),a;var g=c?l?mo:go:l?ju:Lu,m=f?it:g(t);return u(m||t,function(r,i){m&&(i=r,r=t[i]),Hn(a,i,nr(r,e,n,i,t,o))}),a}function rr(t){var e=Lu(t);return function(n){return ir(n,t,e)}}function ir(t,e,n){var r=n.length;if(null==t)return!r;for(t=ic(t);r--;){var i=n[r],o=e[i],a=t[i];if(a===it&&!(i in t)||!o(a))return!1}return!0}function or(t,e,n){if("function"!=typeof t)throw new sc(st);return Tf(function(){t.apply(it,n)},e)}function ar(t,e,n,r){var i=-1,o=d,a=!0,s=t.length,u=[],l=e.length;if(!s)return u;n&&(e=p(e,I(n))),r?(o=h,a=!1):e.length>=ot&&(o=$,a=!1,e=new mn(e));t:for(;++i<s;){var c=t[i],f=null==n?c:n(c);if(c=r||0!==c?c:0,a&&f===f){for(var g=l;g--;)if(e[g]===f)continue t;u.push(c)}else o(e,f,r)||u.push(c)}return u}function sr(t,e){var n=!0;return df(t,function(t,r,i){return n=!!e(t,r,i)}),n}function ur(t,e,n){for(var r=-1,i=t.length;++r<i;){var o=t[r],a=e(o);if(null!=a&&(s===it?a===a&&!hu(a):n(a,s)))var s=a,u=o}return u}function lr(t,e,n,r){var i=t.length;for(n=bu(n),n<0&&(n=-n>i?0:i+n),r=r===it||r>i?i:bu(r),r<0&&(r+=i),r=n>r?0:_u(r);n<r;)t[n++]=e;return t}function cr(t,e){var n=[];return df(t,function(t,r,i){e(t,r,i)&&n.push(t)}),n}function fr(t,e,n,r,i){var o=-1,a=t.length;for(n||(n=No),i||(i=[]);++o<a;){var s=t[o];e>0&&n(s)?e>1?fr(s,e-1,n,r,i):g(i,s):r||(i[i.length]=s)}return i}function dr(t,e){return t&&pf(t,e,Lu)}function hr(t,e){return t&&gf(t,e,Lu)}function pr(t,e){return f(e,function(e){return Qs(t[e])})}function gr(t,e){e=xi(e,t);for(var n=0,r=e.length;null!=t&&n<r;)t=t[Xo(e[n++])];return n&&n==r?t:it}function mr(t,e,n){var r=e(t);return pd(t)?r:g(r,n(t))}function vr(t){return null==t?t===it?ie:Jt:Pc&&Pc in ic(t)?ko(t):Uo(t)}function yr(t,e){return t>e}function br(t,e){return null!=t&&hc.call(t,e)}function _r(t,e){return null!=t&&e in ic(t)}function wr(t,e,n){return t>=Uc(e,n)&&t<zc(e,n)}function xr(t,e,n){for(var r=n?h:d,i=t[0].length,o=t.length,a=o,s=Zl(o),u=1/0,l=[];a--;){var c=t[a];a&&e&&(c=p(c,I(e))),u=Uc(c.length,u),s[a]=!n&&(e||i>=120&&c.length>=120)?new mn(a&&c):it}c=t[0];var f=-1,g=s[0];t:for(;++f<i&&l.length<u;){var m=c[f],v=e?e(m):m;if(m=n||0!==m?m:0,!(g?$(g,v):r(l,v,n))){for(a=o;--a;){var y=s[a];if(!(y?$(y,v):r(t[a],v,n)))continue t}g&&g.push(v),l.push(m)}}return l}function kr(t,e,n,r){return dr(t,function(t,i,o){e(r,n(t),i,o)}),r}function Sr(t,e,n){e=xi(e,t),t=qo(t,e);var r=null==t?t:t[Xo(ya(e))];return null==r?it:a(r,t,n)}function Cr(t){return nu(t)&&vr(t)==Bt}function Er(t){return nu(t)&&vr(t)==se}function Tr(t){return nu(t)&&vr(t)==Ht}function Ar(t,e,n,r,i){return t===e||(null==t||null==e||!nu(t)&&!nu(e)?t!==t&&e!==e:Or(t,e,n,r,Ar,i))}function Or(t,e,n,r,i,o){var a=pd(t),s=pd(e),u=a?Vt:Sf(t),l=s?Vt:Sf(e);u=u==Bt?Qt:u,l=l==Bt?Qt:l;var c=u==Qt,f=l==Qt,d=u==l;if(d&&md(t)){if(!md(e))return!1;a=!0,c=!1}if(d&&!c)return o||(o=new bn),a||wd(t)?co(t,e,n,r,i,o):fo(t,e,u,n,r,i,o);if(!(n&pt)){var h=c&&hc.call(t,"__wrapped__"),p=f&&hc.call(e,"__wrapped__");if(h||p){var g=h?t.value():t,m=p?e.value():e;return o||(o=new bn),i(g,m,n,r,o)}}return!!d&&(o||(o=new bn),ho(t,e,n,r,i,o))}function Pr(t){return nu(t)&&Sf(t)==Kt}function Nr(t,e,n,r){var i=n.length,o=i,a=!r;if(null==t)return!o;for(t=ic(t);i--;){var s=n[i];if(a&&s[2]?s[1]!==t[s[0]]:!(s[0]in t))return!1}for(;++i<o;){s=n[i];var u=s[0],l=t[u],c=s[1];if(a&&s[2]){if(l===it&&!(u in t))return!1}else{var f=new bn;if(r)var d=r(l,c,u,t,e,f);if(!(d===it?Ar(c,l,pt|gt,r,f):d))return!1}}return!0}function Dr(t){return!(!eu(t)||Lo(t))&&(Qs(t)?bc:qe).test(Jo(t))}function Mr(t){return nu(t)&&vr(t)==te}function Ir(t){return nu(t)&&Sf(t)==ee}function Rr(t){return nu(t)&&tu(t.length)&&!!xn[vr(t)]}function $r(t){return"function"==typeof t?t:null==t?Tl:"object"===(void 0===t?"undefined":o(t))?pd(t)?zr(t[0],t[1]):Vr(t):Rl(t)}function Lr(t){if(!jo(t))return Vc(t);var e=[];for(var n in ic(t))hc.call(t,n)&&"constructor"!=n&&e.push(n);return e}function jr(t){if(!eu(t))return zo(t);var e=jo(t),n=[];for(var r in t)("constructor"!=r||!e&&hc.call(t,r))&&n.push(r);return n}function Fr(t,e){return t<e}function Br(t,e){var n=-1,r=Us(t)?Zl(t.length):[];return df(t,function(t,i,o){r[++n]=e(t,i,o)}),r}function Vr(t){var e=wo(t);return 1==e.length&&e[0][2]?Bo(e[0][0],e[0][1]):function(n){return n===t||Nr(n,t,e)}}function zr(t,e){return Io(t)&&Fo(e)?Bo(Xo(t),e):function(n){var r=Iu(n,t);return r===it&&r===e?$u(n,t):Ar(e,r,pt|gt)}}function Ur(t,e,n,r,i){t!==e&&pf(e,function(o,a){if(eu(o))i||(i=new bn),Hr(t,e,a,n,Ur,r,i);else{var s=r?r(Y(t,a),o,a+"",t,e,i):it;s===it&&(s=o),Ln(t,a,s)}},ju)}function Hr(t,e,n,r,i,o,a){var s=Y(t,n),u=Y(e,n),l=a.get(u);if(l)return void Ln(t,n,l);var c=o?o(s,u,n+"",t,e,a):it,f=c===it;if(f){var d=pd(u),h=!d&&md(u),p=!d&&!h&&wd(u);c=u,d||h||p?pd(s)?c=s:Hs(s)?c=Ii(s):h?(f=!1,c=Si(u,!0)):p?(f=!1,c=Oi(u,!0)):c=[]:cu(u)||hd(u)?(c=s,hd(s)?c=xu(s):(!eu(s)||r&&Qs(s))&&(c=Ao(u))):f=!1}f&&(a.set(u,c),i(c,u,r,o,a),a.delete(u)),Ln(t,n,c)}function qr(t,e){var n=t.length;if(n)return e+=e<0?n:0,Do(e,n)?t[e]:it}function Wr(t,e,n){var r=-1;return e=p(e.length?e:[Tl],I(bo())),P(Br(t,function(t,n,i){return{criteria:p(e,function(e){return e(t)}),index:++r,value:t}}),function(t,e){return Ni(t,e,n)})}function Gr(t,e){return Yr(t,e,function(e,n){return $u(t,n)})}function Yr(t,e,n){for(var r=-1,i=e.length,o={};++r<i;){var a=e[r],s=gr(t,a);n(s,a)&&ii(o,xi(a,t),s)}return o}function Kr(t){return function(e){return gr(e,t)}}function Xr(t,e,n,r){var i=r?S:k,o=-1,a=e.length,s=t;for(t===e&&(e=Ii(e)),n&&(s=p(t,I(n)));++o<a;)for(var u=0,l=e[o],c=n?n(l):l;(u=i(s,c,u,r))>-1;)s!==t&&Tc.call(s,u,1),Tc.call(t,u,1);return t}function Jr(t,e){for(var n=t?e.length:0,r=n-1;n--;){var i=e[n];if(n==r||i!==o){var o=i;Do(i)?Tc.call(t,i,1):pi(t,i)}}return t}function Qr(t,e){return t+$c(Wc()*(e-t+1))}function Zr(t,e,n,r){for(var i=-1,o=zc(Rc((e-t)/(n||1)),0),a=Zl(o);o--;)a[r?o:++i]=t,t+=n;return a}function ti(t,e){var n="";if(!t||e<1||e>Mt)return n;do{e%2&&(n+=t),(e=$c(e/2))&&(t+=t)}while(e);return n}function ei(t,e){return Af(Ho(t,e,Tl),t+"")}function ni(t){return Mn(Xu(t))}function ri(t,e){var n=Xu(t);return Ko(n,er(e,0,n.length))}function ii(t,e,n,r){if(!eu(t))return t;e=xi(e,t);for(var i=-1,o=e.length,a=o-1,s=t;null!=s&&++i<o;){var u=Xo(e[i]),l=n;if(i!=a){var c=s[u];l=r?r(c,u,s):it,l===it&&(l=eu(c)?c:Do(e[i+1])?[]:{})}Hn(s,u,l),s=s[u]}return t}function oi(t){return Ko(Xu(t))}function ai(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),n=n>i?i:n,n<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=Zl(i);++r<i;)o[r]=t[r+e];return o}function si(t,e){var n;return df(t,function(t,r,i){return!(n=e(t,r,i))}),!!n}function ui(t,e,n){var r=0,i=null==t?r:t.length;if("number"==typeof e&&e===e&&i<=jt){for(;r<i;){var o=r+i>>>1,a=t[o];null!==a&&!hu(a)&&(n?a<=e:a<e)?r=o+1:i=o}return i}return li(t,e,Tl,n)}function li(t,e,n,r){e=n(e);for(var i=0,o=null==t?0:t.length,a=e!==e,s=null===e,u=hu(e),l=e===it;i<o;){var c=$c((i+o)/2),f=n(t[c]),d=f!==it,h=null===f,p=f===f,g=hu(f);if(a)var m=r||p;else m=l?p&&(r||d):s?p&&d&&(r||!h):u?p&&d&&!h&&(r||!g):!h&&!g&&(r?f<=e:f<e);m?i=c+1:o=c}return Uc(o,Lt)}function ci(t,e){for(var n=-1,r=t.length,i=0,o=[];++n<r;){var a=t[n],s=e?e(a):a;if(!n||!zs(s,u)){var u=s;o[i++]=0===a?0:a}}return o}function fi(t){return"number"==typeof t?t:hu(t)?Rt:+t}function di(t){if("string"==typeof t)return t;if(pd(t))return p(t,di)+"";if(hu(t))return cf?cf.call(t):"";var e=t+"";return"0"==e&&1/t==-Dt?"-0":e}function hi(t,e,n){var r=-1,i=d,o=t.length,a=!0,s=[],u=s;if(n)a=!1,i=h;else if(o>=ot){var l=e?null:_f(t);if(l)return K(l);a=!1,i=$,u=new mn}else u=e?[]:s;t:for(;++r<o;){var c=t[r],f=e?e(c):c;if(c=n||0!==c?c:0,a&&f===f){for(var p=u.length;p--;)if(u[p]===f)continue t;e&&u.push(f),s.push(c)}else i(u,f,n)||(u!==s&&u.push(f),s.push(c))}return s}function pi(t,e){return e=xi(e,t),null==(t=qo(t,e))||delete t[Xo(ya(e))]}function gi(t,e,n,r){return ii(t,e,n(gr(t,e)),r)}function mi(t,e,n,r){for(var i=t.length,o=r?i:-1;(r?o--:++o<i)&&e(t[o],o,t););return n?ai(t,r?0:o,r?o+1:i):ai(t,r?o+1:0,r?i:o)}function vi(t,e){var n=t;return n instanceof b&&(n=n.value()),m(e,function(t,e){return e.func.apply(e.thisArg,g([t],e.args))},n)}function yi(t,e,n){var r=t.length;if(r<2)return r?hi(t[0]):[];for(var i=-1,o=Zl(r);++i<r;)for(var a=t[i],s=-1;++s<r;)s!=i&&(o[i]=ar(o[i]||a,t[s],e,n));return hi(fr(o,1),e,n)}function bi(t,e,n){for(var r=-1,i=t.length,o=e.length,a={};++r<i;){var s=r<o?e[r]:it;n(a,t[r],s)}return a}function _i(t){return Hs(t)?t:[]}function wi(t){return"function"==typeof t?t:Tl}function xi(t,e){return pd(t)?t:Io(t,e)?[t]:Of(Su(t))}function ki(t,e,n){var r=t.length;return n=n===it?r:n,!e&&n>=r?t:ai(t,e,n)}function Si(t,e){if(e)return t.slice();var n=t.length,r=kc?kc(n):new t.constructor(n);return t.copy(r),r}function Ci(t){var e=new t.constructor(t.byteLength);return new xc(e).set(new xc(t)),e}function Ei(t,e){var n=e?Ci(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}function Ti(t){var e=new t.constructor(t.source,ze.exec(t));return e.lastIndex=t.lastIndex,e}function Ai(t){return lf?ic(lf.call(t)):{}}function Oi(t,e){var n=e?Ci(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function Pi(t,e){if(t!==e){var n=t!==it,r=null===t,i=t===t,o=hu(t),a=e!==it,s=null===e,u=e===e,l=hu(e);if(!s&&!l&&!o&&t>e||o&&a&&u&&!s&&!l||r&&a&&u||!n&&u||!i)return 1;if(!r&&!o&&!l&&t<e||l&&n&&i&&!r&&!o||s&&n&&i||!a&&i||!u)return-1}return 0}function Ni(t,e,n){for(var r=-1,i=t.criteria,o=e.criteria,a=i.length,s=n.length;++r<a;){var u=Pi(i[r],o[r]);if(u){if(r>=s)return u;return u*("desc"==n[r]?-1:1)}}return t.index-e.index}function Di(t,e,n,r){for(var i=-1,o=t.length,a=n.length,s=-1,u=e.length,l=zc(o-a,0),c=Zl(u+l),f=!r;++s<u;)c[s]=e[s];for(;++i<a;)(f||i<o)&&(c[n[i]]=t[i]);for(;l--;)c[s++]=t[i++];return c}function Mi(t,e,n,r){for(var i=-1,o=t.length,a=-1,s=n.length,u=-1,l=e.length,c=zc(o-s,0),f=Zl(c+l),d=!r;++i<c;)f[i]=t[i];for(var h=i;++u<l;)f[h+u]=e[u];for(;++a<s;)(d||i<o)&&(f[h+n[a]]=t[i++]);return f}function Ii(t,e){var n=-1,r=t.length;for(e||(e=Zl(r));++n<r;)e[n]=t[n];return e}function Ri(t,e,n,r){var i=!n;n||(n={});for(var o=-1,a=e.length;++o<a;){var s=e[o],u=r?r(n[s],t[s],s,n,t):it;u===it&&(u=t[s]),i?Zn(n,s,u):Hn(n,s,u)}return n}function $i(t,e){return Ri(t,xf(t),e)}function Li(t,e){return Ri(t,kf(t),e)}function ji(t,e){return function(n,r){var i=pd(n)?s:Xn,o=e?e():{};return i(n,t,bo(r,2),o)}}function Fi(t){return ei(function(e,n){var r=-1,i=n.length,o=i>1?n[i-1]:it,a=i>2?n[2]:it;for(o=t.length>3&&"function"==typeof o?(i--,o):it,a&&Mo(n[0],n[1],a)&&(o=i<3?it:o,i=1),e=ic(e);++r<i;){var s=n[r];s&&t(e,s,r,o)}return e})}function Bi(t,e){return function(n,r){if(null==n)return n;if(!Us(n))return t(n,r);for(var i=n.length,o=e?i:-1,a=ic(n);(e?o--:++o<i)&&!1!==r(a[o],o,a););return n}}function Vi(t){return function(e,n,r){for(var i=-1,o=ic(e),a=r(e),s=a.length;s--;){var u=a[t?s:++i];if(!1===n(o[u],u,o))break}return e}}function zi(t,e,n){function r(){return(this&&this!==Dn&&this instanceof r?o:t).apply(i?n:this,arguments)}var i=e&mt,o=qi(t);return r}function Ui(t){return function(e){e=Su(e);var n=z(e)?tt(e):it,r=n?n[0]:e.charAt(0),i=n?ki(n,1).join(""):e.slice(1);return r[t]()+i}}function Hi(t){return function(e){return m(xl(nl(e).replace(pn,"")),t,"")}}function qi(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=ff(t.prototype),r=t.apply(n,e);return eu(r)?r:n}}function Wi(t,e,n){function r(){for(var o=arguments.length,s=Zl(o),u=o,l=yo(r);u--;)s[u]=arguments[u];var c=o<3&&s[0]!==l&&s[o-1]!==l?[]:G(s,l);return(o-=c.length)<n?ro(t,e,Ki,r.placeholder,it,s,c,it,it,n-o):a(this&&this!==Dn&&this instanceof r?i:t,this,s)}var i=qi(t);return r}function Gi(t){return function(e,n,r){var i=ic(e);if(!Us(e)){var o=bo(n,3);e=Lu(e),n=function(t){return o(i[t],t,i)}}var a=t(e,n,r);return a>-1?i[o?e[a]:a]:it}}function Yi(t){return po(function(e){var n=e.length,r=n,o=i.prototype.thru;for(t&&e.reverse();r--;){var a=e[r];if("function"!=typeof a)throw new sc(st);if(o&&!s&&"wrapper"==vo(a))var s=new i([],!0)}for(r=s?r:n;++r<n;){a=e[r];var u=vo(a),l="wrapper"==u?wf(a):it;s=l&&$o(l[0])&&l[1]==(kt|bt|wt|St)&&!l[4].length&&1==l[9]?s[vo(l[0])].apply(s,l[3]):1==a.length&&$o(a)?s[u]():s.thru(a)}return function(){var t=arguments,r=t[0];if(s&&1==t.length&&pd(r))return s.plant(r).value();for(var i=0,o=n?e[i].apply(this,t):r;++i<n;)o=e[i].call(this,o);return o}})}function Ki(t,e,n,r,i,o,a,s,u,l){function c(){for(var v=arguments.length,y=Zl(v),b=v;b--;)y[b]=arguments[b];if(p)var _=yo(c),w=F(y,_);if(r&&(y=Di(y,r,i,p)),o&&(y=Mi(y,o,a,p)),v-=w,p&&v<l){var x=G(y,_);return ro(t,e,Ki,c.placeholder,n,y,x,s,u,l-v)}var k=d?n:this,S=h?k[t]:t;return v=y.length,s?y=Wo(y,s):g&&v>1&&y.reverse(),f&&u<v&&(y.length=u),this&&this!==Dn&&this instanceof c&&(S=m||qi(S)),S.apply(k,y)}var f=e&kt,d=e&mt,h=e&vt,p=e&(bt|_t),g=e&Ct,m=h?it:qi(t);return c}function Xi(t,e){return function(n,r){return kr(n,t,e(r),{})}}function Ji(t,e){return function(n,r){var i;if(n===it&&r===it)return e;if(n!==it&&(i=n),r!==it){if(i===it)return r;"string"==typeof n||"string"==typeof r?(n=di(n),r=di(r)):(n=fi(n),r=fi(r)),i=t(n,r)}return i}}function Qi(t){return po(function(e){return e=p(e,I(bo())),ei(function(n){var r=this;return t(e,function(t){return a(t,r,n)})})})}function Zi(t,e){e=e===it?" ":di(e);var n=e.length;if(n<2)return n?ti(e,t):e;var r=ti(e,Rc(t/Z(e)));return z(e)?ki(tt(r),0,t).join(""):r.slice(0,t)}function to(t,e,n,r){function i(){for(var e=-1,u=arguments.length,l=-1,c=r.length,f=Zl(c+u),d=this&&this!==Dn&&this instanceof i?s:t;++l<c;)f[l]=r[l];for(;u--;)f[l++]=arguments[++e];return a(d,o?n:this,f)}var o=e&mt,s=qi(t);return i}function eo(t){return function(e,n,r){return r&&"number"!=typeof r&&Mo(e,n,r)&&(n=r=it),e=yu(e),n===it?(n=e,e=0):n=yu(n),r=r===it?e<n?1:-1:yu(r),Zr(e,n,r,t)}}function no(t){return function(e,n){return"string"==typeof e&&"string"==typeof n||(e=wu(e),n=wu(n)),t(e,n)}}function ro(t,e,n,r,i,o,a,s,u,l){var c=e&bt,f=c?a:it,d=c?it:a,h=c?o:it,p=c?it:o;e|=c?wt:xt,(e&=~(c?xt:wt))&yt||(e&=~(mt|vt));var g=[t,e,i,h,f,p,d,s,u,l],m=n.apply(it,g);return $o(t)&&Ef(m,g),m.placeholder=r,Go(m,t,e)}function io(t){var e=rc[t];return function(t,n){if(t=wu(t),n=null==n?0:Uc(bu(n),292)){var r=(Su(t)+"e").split("e");return r=(Su(e(r[0]+"e"+(+r[1]+n)))+"e").split("e"),+(r[0]+"e"+(+r[1]-n))}return e(t)}}function oo(t){return function(e){var n=Sf(e);return n==Kt?q(e):n==ee?X(e):M(e,t(e))}}function ao(t,e,n,r,i,o,a,s){var u=e&vt;if(!u&&"function"!=typeof t)throw new sc(st);var l=r?r.length:0;if(l||(e&=~(wt|xt),r=i=it),a=a===it?a:zc(bu(a),0),s=s===it?s:bu(s),l-=i?i.length:0,e&xt){var c=r,f=i;r=i=it}var d=u?it:wf(t),h=[t,e,n,r,i,c,f,o,a,s];if(d&&Vo(h,d),t=h[0],e=h[1],n=h[2],r=h[3],i=h[4],s=h[9]=h[9]===it?u?0:t.length:zc(h[9]-l,0),!s&&e&(bt|_t)&&(e&=~(bt|_t)),e&&e!=mt)p=e==bt||e==_t?Wi(t,e,s):e!=wt&&e!=(mt|wt)||i.length?Ki.apply(it,h):to(t,e,n,r);else var p=zi(t,e,n);return Go((d?mf:Ef)(p,h),t,e)}function so(t,e,n,r){return t===it||zs(t,cc[n])&&!hc.call(r,n)?e:t}function uo(t,e,n,r,i,o){return eu(t)&&eu(e)&&(o.set(e,t),Ur(t,e,it,uo,o),o.delete(e)),t}function lo(t){return cu(t)?it:t}function co(t,e,n,r,i,o){var a=n&pt,s=t.length,u=e.length;if(s!=u&&!(a&&u>s))return!1;var l=o.get(t);if(l&&o.get(e))return l==e;var c=-1,f=!0,d=n&gt?new mn:it;for(o.set(t,e),o.set(e,t);++c<s;){var h=t[c],p=e[c];if(r)var g=a?r(p,h,c,e,t,o):r(h,p,c,t,e,o);if(g!==it){if(g)continue;f=!1;break}if(d){if(!y(e,function(t,e){if(!$(d,e)&&(h===t||i(h,t,n,r,o)))return d.push(e)})){f=!1;break}}else if(h!==p&&!i(h,p,n,r,o)){f=!1;break}}return o.delete(t),o.delete(e),f}function fo(t,e,n,r,i,o,a){switch(n){case ue:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case se:return!(t.byteLength!=e.byteLength||!o(new xc(t),new xc(e)));case Ut:case Ht:case Xt:return zs(+t,+e);case Wt:return t.name==e.name&&t.message==e.message;case te:case ne:return t==e+"";case Kt:var s=q;case ee:var u=r&pt;if(s||(s=K),t.size!=e.size&&!u)return!1;var l=a.get(t);if(l)return l==e;r|=gt,a.set(t,e);var c=co(s(t),s(e),r,i,o,a);return a.delete(t),c;case re:if(lf)return lf.call(t)==lf.call(e)}return!1}function ho(t,e,n,r,i,o){var a=n&pt,s=go(t),u=s.length;if(u!=go(e).length&&!a)return!1;for(var l=u;l--;){var c=s[l];if(!(a?c in e:hc.call(e,c)))return!1}var f=o.get(t);if(f&&o.get(e))return f==e;var d=!0;o.set(t,e),o.set(e,t);for(var h=a;++l<u;){c=s[l];var p=t[c],g=e[c];if(r)var m=a?r(g,p,c,e,t,o):r(p,g,c,t,e,o);if(!(m===it?p===g||i(p,g,n,r,o):m)){d=!1;break}h||(h="constructor"==c)}if(d&&!h){var v=t.constructor,y=e.constructor;v!=y&&"constructor"in t&&"constructor"in e&&!("function"==typeof v&&v instanceof v&&"function"==typeof y&&y instanceof y)&&(d=!1)}return o.delete(t),o.delete(e),d}function po(t){return Af(Ho(t,it,ca),t+"")}function go(t){return mr(t,Lu,xf)}function mo(t){return mr(t,ju,kf)}function vo(t){for(var e=t.name+"",n=ef[e],r=hc.call(ef,e)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==t)return i.name}return e}function yo(t){return(hc.call(n,"placeholder")?n:t).placeholder}function bo(){var t=n.iteratee||Al;return t=t===Al?$r:t,arguments.length?t(arguments[0],arguments[1]):t}function _o(t,e){var n=t.__data__;return Ro(e)?n["string"==typeof e?"string":"hash"]:n.map}function wo(t){for(var e=Lu(t),n=e.length;n--;){var r=e[n],i=t[r];e[n]=[r,i,Fo(i)]}return e}function xo(t,e){var n=V(t,e);return Dr(n)?n:it}function ko(t){var e=hc.call(t,Pc),n=t[Pc];try{t[Pc]=it;var r=!0}catch(t){}var i=mc.call(t);return r&&(e?t[Pc]=n:delete t[Pc]),i}function So(t,e,n){for(var r=-1,i=n.length;++r<i;){var o=n[r],a=o.size;switch(o.type){case"drop":t+=a;break;case"dropRight":e-=a;break;case"take":e=Uc(e,t+a);break;case"takeRight":t=zc(t,e-a)}}return{start:t,end:e}}function Co(t){var e=t.match(Le);return e?e[1].split(je):[]}function Eo(t,e,n){e=xi(e,t);for(var r=-1,i=e.length,o=!1;++r<i;){var a=Xo(e[r]);if(!(o=null!=t&&n(t,a)))break;t=t[a]}return o||++r!=i?o:!!(i=null==t?0:t.length)&&tu(i)&&Do(a,i)&&(pd(t)||hd(t))}function To(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&hc.call(t,"index")&&(n.index=t.index,n.input=t.input),n}function Ao(t){return"function"!=typeof t.constructor||jo(t)?{}:ff(Sc(t))}function Oo(t,e,n){var r=t.constructor;switch(e){case se:return Ci(t);case Ut:case Ht:return new r(+t);case ue:return Ei(t,n);case le:case ce:case fe:case de:case he:case pe:case ge:case me:case ve:return Oi(t,n);case Kt:return new r;case Xt:case ne:return new r(t);case te:return Ti(t);case ee:return new r;case re:return Ai(t)}}function Po(t,e){var n=e.length;if(!n)return t;var r=n-1;return e[r]=(n>1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace($e,"{\n/* [wrapped with "+e+"] */\n")}function No(t){return pd(t)||hd(t)||!!(Ac&&t&&t[Ac])}function Do(t,e){var n=void 0===t?"undefined":o(t);return!!(e=null==e?Mt:e)&&("number"==n||"symbol"!=n&&Ge.test(t))&&t>-1&&t%1==0&&t<e}function Mo(t,e,n){if(!eu(n))return!1;var r=void 0===e?"undefined":o(e);return!!("number"==r?Us(n)&&Do(e,n.length):"string"==r&&e in n)&&zs(n[e],t)}function Io(t,e){if(pd(t))return!1;var n=void 0===t?"undefined":o(t);return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!hu(t))||(Oe.test(t)||!Ae.test(t)||null!=e&&t in ic(e))}function Ro(t){var e=void 0===t?"undefined":o(t);return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}function $o(t){var e=vo(t),r=n[e];if("function"!=typeof r||!(e in b.prototype))return!1;if(t===r)return!0;var i=wf(r);return!!i&&t===i[0]}function Lo(t){return!!gc&&gc in t}function jo(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||cc)}function Fo(t){return t===t&&!eu(t)}function Bo(t,e){return function(n){return null!=n&&(n[t]===e&&(e!==it||t in ic(n)))}}function Vo(t,e){var n=t[1],r=e[1],i=n|r,o=i<(mt|vt|kt),a=r==kt&&n==bt||r==kt&&n==St&&t[7].length<=e[8]||r==(kt|St)&&e[7].length<=e[8]&&n==bt;if(!o&&!a)return t;r&mt&&(t[2]=e[2],i|=n&mt?0:yt);var s=e[3];if(s){var u=t[3];t[3]=u?Di(u,s,e[4]):s,t[4]=u?G(t[3],ct):e[4]}return s=e[5],s&&(u=t[5],t[5]=u?Mi(u,s,e[6]):s,t[6]=u?G(t[5],ct):e[6]),s=e[7],s&&(t[7]=s),r&kt&&(t[8]=null==t[8]?e[8]:Uc(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=i,t}function zo(t){var e=[];if(null!=t)for(var n in ic(t))e.push(n);return e}function Uo(t){return mc.call(t)}function Ho(t,e,n){return e=zc(e===it?t.length-1:e,0),function(){for(var r=arguments,i=-1,o=zc(r.length-e,0),s=Zl(o);++i<o;)s[i]=r[e+i];i=-1;for(var u=Zl(e+1);++i<e;)u[i]=r[i];return u[e]=n(s),a(t,this,u)}}function qo(t,e){return e.length<2?t:gr(t,ai(e,0,-1))}function Wo(t,e){for(var n=t.length,r=Uc(e.length,n),i=Ii(t);r--;){var o=e[r];t[r]=Do(o,n)?i[o]:it}return t}function Go(t,e,n){var r=e+"";return Af(t,Po(r,Qo(Co(r),n)))}function Yo(t){var e=0,n=0;return function(){var r=Hc(),i=Ot-(r-n);if(n=r,i>0){if(++e>=At)return arguments[0]}else e=0;return t.apply(it,arguments)}}function Ko(t,e){var n=-1,r=t.length,i=r-1;for(e=e===it?r:e;++n<e;){var o=Qr(n,i),a=t[o];t[o]=t[n],t[n]=a}return t.length=e,t}function Xo(t){if("string"==typeof t||hu(t))return t;var e=t+"";return"0"==e&&1/t==-Dt?"-0":e}function Jo(t){if(null!=t){try{return dc.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Qo(t,e){return u(Ft,function(n){var r="_."+n[0];e&n[1]&&!d(t,r)&&t.push(r)}),t.sort()}function Zo(t){if(t instanceof b)return t.clone();var e=new i(t.__wrapped__,t.__chain__);return e.__actions__=Ii(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}function ta(t,e,n){e=(n?Mo(t,e,n):e===it)?1:zc(bu(e),0);var r=null==t?0:t.length;if(!r||e<1)return[];for(var i=0,o=0,a=Zl(Rc(r/e));i<r;)a[o++]=ai(t,i,i+=e);return a}function ea(t){for(var e=-1,n=null==t?0:t.length,r=0,i=[];++e<n;){var o=t[e];o&&(i[r++]=o)}return i}function na(){var t=arguments.length;if(!t)return[];for(var e=Zl(t-1),n=arguments[0],r=t;r--;)e[r-1]=arguments[r];return g(pd(n)?Ii(n):[n],fr(e,1))}function ra(t,e,n){var r=null==t?0:t.length;return r?(e=n||e===it?1:bu(e),ai(t,e<0?0:e,r)):[]}function ia(t,e,n){var r=null==t?0:t.length;return r?(e=n||e===it?1:bu(e),e=r-e,ai(t,0,e<0?0:e)):[]}function oa(t,e){return t&&t.length?mi(t,bo(e,3),!0,!0):[]}function aa(t,e){return t&&t.length?mi(t,bo(e,3),!0):[]}function sa(t,e,n,r){var i=null==t?0:t.length;return i?(n&&"number"!=typeof n&&Mo(t,e,n)&&(n=0,r=i),lr(t,e,n,r)):[]}function ua(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:bu(n);return i<0&&(i=zc(r+i,0)),x(t,bo(e,3),i)}function la(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=r-1;return n!==it&&(i=bu(n),i=n<0?zc(r+i,0):Uc(i,r-1)),x(t,bo(e,3),i,!0)}function ca(t){return(null==t?0:t.length)?fr(t,1):[]}function fa(t){return(null==t?0:t.length)?fr(t,Dt):[]}function da(t,e){return(null==t?0:t.length)?(e=e===it?1:bu(e),fr(t,e)):[]}function ha(t){for(var e=-1,n=null==t?0:t.length,r={};++e<n;){var i=t[e];r[i[0]]=i[1]}return r}function pa(t){return t&&t.length?t[0]:it}function ga(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:bu(n);return i<0&&(i=zc(r+i,0)),k(t,e,i)}function ma(t){return(null==t?0:t.length)?ai(t,0,-1):[]}function va(t,e){return null==t?"":Bc.call(t,e)}function ya(t){var e=null==t?0:t.length;return e?t[e-1]:it}function ba(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=r;return n!==it&&(i=bu(n),i=i<0?zc(r+i,0):Uc(i,r-1)),e===e?Q(t,e,i):x(t,C,i,!0)}function _a(t,e){return t&&t.length?qr(t,bu(e)):it}function wa(t,e){return t&&t.length&&e&&e.length?Xr(t,e):t}function xa(t,e,n){return t&&t.length&&e&&e.length?Xr(t,e,bo(n,2)):t}function ka(t,e,n){return t&&t.length&&e&&e.length?Xr(t,e,it,n):t}function Sa(t,e){var n=[];if(!t||!t.length)return n;var r=-1,i=[],o=t.length;for(e=bo(e,3);++r<o;){var a=t[r];e(a,r,t)&&(n.push(a),i.push(r))}return Jr(t,i),n}function Ca(t){return null==t?t:Gc.call(t)}function Ea(t,e,n){var r=null==t?0:t.length;return r?(n&&"number"!=typeof n&&Mo(t,e,n)?(e=0,n=r):(e=null==e?0:bu(e),n=n===it?r:bu(n)),ai(t,e,n)):[]}function Ta(t,e){return ui(t,e)}function Aa(t,e,n){return li(t,e,bo(n,2))}function Oa(t,e){var n=null==t?0:t.length;if(n){var r=ui(t,e);if(r<n&&zs(t[r],e))return r}return-1}function Pa(t,e){return ui(t,e,!0)}function Na(t,e,n){return li(t,e,bo(n,2),!0)}function Da(t,e){if(null==t?0:t.length){var n=ui(t,e,!0)-1;if(zs(t[n],e))return n}return-1}function Ma(t){return t&&t.length?ci(t):[]}function Ia(t,e){return t&&t.length?ci(t,bo(e,2)):[]}function Ra(t){var e=null==t?0:t.length;return e?ai(t,1,e):[]}function $a(t,e,n){return t&&t.length?(e=n||e===it?1:bu(e),ai(t,0,e<0?0:e)):[]}function La(t,e,n){var r=null==t?0:t.length;return r?(e=n||e===it?1:bu(e),e=r-e,ai(t,e<0?0:e,r)):[]}function ja(t,e){return t&&t.length?mi(t,bo(e,3),!1,!0):[]}function Fa(t,e){return t&&t.length?mi(t,bo(e,3)):[]}function Ba(t){return t&&t.length?hi(t):[]}function Va(t,e){return t&&t.length?hi(t,bo(e,2)):[]}function za(t,e){return e="function"==typeof e?e:it,t&&t.length?hi(t,it,e):[]}function Ua(t){if(!t||!t.length)return[];var e=0;return t=f(t,function(t){if(Hs(t))return e=zc(t.length,e),!0}),D(e,function(e){return p(t,T(e))})}function Ha(t,e){if(!t||!t.length)return[];var n=Ua(t);return null==e?n:p(n,function(t){return a(e,it,t)})}function qa(t,e){return bi(t||[],e||[],Hn)}function Wa(t,e){return bi(t||[],e||[],ii)}function Ga(t){var e=n(t);return e.__chain__=!0,e}function Ya(t,e){return e(t),t}function Ka(t,e){return e(t)}function Xa(){return Ga(this)}function Ja(){return new i(this.value(),this.__chain__)}function Qa(){this.__values__===it&&(this.__values__=vu(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?it:this.__values__[this.__index__++]}}function Za(){return this}function ts(t){for(var e,n=this;n instanceof r;){var i=Zo(n);i.__index__=0,i.__values__=it,e?o.__wrapped__=i:e=i;var o=i;n=n.__wrapped__}return o.__wrapped__=t,e}function es(){var t=this.__wrapped__;if(t instanceof b){var e=t;return this.__actions__.length&&(e=new b(this)),e=e.reverse(),e.__actions__.push({func:Ka,args:[Ca],thisArg:it}),new i(e,this.__chain__)}return this.thru(Ca)}function ns(){return vi(this.__wrapped__,this.__actions__)}function rs(t,e,n){var r=pd(t)?c:sr;return n&&Mo(t,e,n)&&(e=it),r(t,bo(e,3))}function is(t,e){return(pd(t)?f:cr)(t,bo(e,3))}function os(t,e){return fr(fs(t,e),1)}function as(t,e){return fr(fs(t,e),Dt)}function ss(t,e,n){return n=n===it?1:bu(n),fr(fs(t,e),n)}function us(t,e){return(pd(t)?u:df)(t,bo(e,3))}function ls(t,e){return(pd(t)?l:hf)(t,bo(e,3))}function cs(t,e,n,r){t=Us(t)?t:Xu(t),n=n&&!r?bu(n):0;var i=t.length;return n<0&&(n=zc(i+n,0)),du(t)?n<=i&&t.indexOf(e,n)>-1:!!i&&k(t,e,n)>-1}function fs(t,e){return(pd(t)?p:Br)(t,bo(e,3))}function ds(t,e,n,r){return null==t?[]:(pd(e)||(e=null==e?[]:[e]),n=r?it:n,pd(n)||(n=null==n?[]:[n]),Wr(t,e,n))}function hs(t,e,n){var r=pd(t)?m:O,i=arguments.length<3;return r(t,bo(e,4),n,i,df)}function ps(t,e,n){var r=pd(t)?v:O,i=arguments.length<3;return r(t,bo(e,4),n,i,hf)}function gs(t,e){return(pd(t)?f:cr)(t,Os(bo(e,3)))}function ms(t){return(pd(t)?Mn:ni)(t)}function vs(t,e,n){return e=(n?Mo(t,e,n):e===it)?1:bu(e),(pd(t)?In:ri)(t,e)}function ys(t){return(pd(t)?$n:oi)(t)}function bs(t){if(null==t)return 0;if(Us(t))return du(t)?Z(t):t.length;var e=Sf(t);return e==Kt||e==ee?t.size:Lr(t).length}function _s(t,e,n){var r=pd(t)?y:si;return n&&Mo(t,e,n)&&(e=it),r(t,bo(e,3))}function ws(t,e){if("function"!=typeof e)throw new sc(st);return t=bu(t),function(){if(--t<1)return e.apply(this,arguments)}}function xs(t,e,n){return e=n?it:e,e=t&&null==e?t.length:e,ao(t,kt,it,it,it,it,e)}function ks(t,e){var n;if("function"!=typeof e)throw new sc(st);return t=bu(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=it),n}}function Ss(t,e,n){e=n?it:e;var r=ao(t,bt,it,it,it,it,it,e);return r.placeholder=Ss.placeholder,r}function Cs(t,e,n){e=n?it:e;var r=ao(t,_t,it,it,it,it,it,e);return r.placeholder=Cs.placeholder,r}function Es(t,e,n){function r(e){var n=d,r=h;return d=h=it,y=e,g=t.apply(r,n)}function i(t){return y=t,m=Tf(s,e),b?r(t):g}function o(t){var n=t-v,r=t-y,i=e-n;return _?Uc(i,p-r):i}function a(t){var n=t-v,r=t-y;return v===it||n>=e||n<0||_&&r>=p}function s(){var t=nd();if(a(t))return u(t);m=Tf(s,o(t))}function u(t){return m=it,w&&d?r(t):(d=h=it,g)}function l(){m!==it&&bf(m),y=0,d=v=h=m=it}function c(){return m===it?g:u(nd())}function f(){var t=nd(),n=a(t);if(d=arguments,h=this,v=t,n){if(m===it)return i(v);if(_)return m=Tf(s,e),r(v)}return m===it&&(m=Tf(s,e)),g}var d,h,p,g,m,v,y=0,b=!1,_=!1,w=!0;if("function"!=typeof t)throw new sc(st);return e=wu(e)||0,eu(n)&&(b=!!n.leading,_="maxWait"in n,p=_?zc(wu(n.maxWait)||0,e):p,w="trailing"in n?!!n.trailing:w),f.cancel=l,f.flush=c,f}function Ts(t){return ao(t,Ct)}function As(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new sc(st);var n=function n(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(As.Cache||un),n}function Os(t){if("function"!=typeof t)throw new sc(st);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}function Ps(t){return ks(2,t)}function Ns(t,e){if("function"!=typeof t)throw new sc(st);return e=e===it?e:bu(e),ei(t,e)}function Ds(t,e){if("function"!=typeof t)throw new sc(st);return e=null==e?0:zc(bu(e),0),ei(function(n){var r=n[e],i=ki(n,0,e);return r&&g(i,r),a(t,this,i)})}function Ms(t,e,n){var r=!0,i=!0;if("function"!=typeof t)throw new sc(st);return eu(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Es(t,e,{leading:r,maxWait:e,trailing:i})}function Is(t){return xs(t,1)}function Rs(t,e){return ud(wi(e),t)}function $s(){if(!arguments.length)return[];var t=arguments[0];return pd(t)?t:[t]}function Ls(t){return nr(t,ht)}function js(t,e){return e="function"==typeof e?e:it,nr(t,ht,e)}function Fs(t){return nr(t,ft|ht)}function Bs(t,e){return e="function"==typeof e?e:it,nr(t,ft|ht,e)}function Vs(t,e){return null==e||ir(t,e,Lu(e))}function zs(t,e){return t===e||t!==t&&e!==e}function Us(t){return null!=t&&tu(t.length)&&!Qs(t)}function Hs(t){return nu(t)&&Us(t)}function qs(t){return!0===t||!1===t||nu(t)&&vr(t)==Ut}function Ws(t){return nu(t)&&1===t.nodeType&&!cu(t)}function Gs(t){if(null==t)return!0;if(Us(t)&&(pd(t)||"string"==typeof t||"function"==typeof t.splice||md(t)||wd(t)||hd(t)))return!t.length;var e=Sf(t);if(e==Kt||e==ee)return!t.size;if(jo(t))return!Lr(t).length;for(var n in t)if(hc.call(t,n))return!1;return!0}function Ys(t,e){return Ar(t,e)}function Ks(t,e,n){n="function"==typeof n?n:it;var r=n?n(t,e):it;return r===it?Ar(t,e,it,n):!!r}function Xs(t){if(!nu(t))return!1;var e=vr(t);return e==Wt||e==qt||"string"==typeof t.message&&"string"==typeof t.name&&!cu(t)}function Js(t){return"number"==typeof t&&Fc(t)}function Qs(t){if(!eu(t))return!1;var e=vr(t);return e==Gt||e==Yt||e==zt||e==Zt}function Zs(t){return"number"==typeof t&&t==bu(t)}function tu(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=Mt}function eu(t){var e=void 0===t?"undefined":o(t);return null!=t&&("object"==e||"function"==e)}function nu(t){return null!=t&&"object"===(void 0===t?"undefined":o(t))}function ru(t,e){return t===e||Nr(t,e,wo(e))}function iu(t,e,n){return n="function"==typeof n?n:it,Nr(t,e,wo(e),n)}function ou(t){return lu(t)&&t!=+t}function au(t){if(Cf(t))throw new ec(at);return Dr(t)}function su(t){return null===t}function uu(t){return null==t}function lu(t){return"number"==typeof t||nu(t)&&vr(t)==Xt}function cu(t){if(!nu(t)||vr(t)!=Qt)return!1;var e=Sc(t);if(null===e)return!0;var n=hc.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&dc.call(n)==vc}function fu(t){return Zs(t)&&t>=-Mt&&t<=Mt}function du(t){return"string"==typeof t||!pd(t)&&nu(t)&&vr(t)==ne}function hu(t){return"symbol"===(void 0===t?"undefined":o(t))||nu(t)&&vr(t)==re}function pu(t){return t===it}function gu(t){return nu(t)&&Sf(t)==oe}function mu(t){return nu(t)&&vr(t)==ae}function vu(t){if(!t)return[];if(Us(t))return du(t)?tt(t):Ii(t);if(Oc&&t[Oc])return H(t[Oc]());var e=Sf(t);return(e==Kt?q:e==ee?K:Xu)(t)}function yu(t){if(!t)return 0===t?t:0;if((t=wu(t))===Dt||t===-Dt){return(t<0?-1:1)*It}return t===t?t:0}function bu(t){var e=yu(t),n=e%1;return e===e?n?e-n:e:0}function _u(t){return t?er(bu(t),0,$t):0}function wu(t){if("number"==typeof t)return t;if(hu(t))return Rt;if(eu(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=eu(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(Me,"");var n=He.test(t);return n||We.test(t)?On(t.slice(2),n?2:8):Ue.test(t)?Rt:+t}function xu(t){return Ri(t,ju(t))}function ku(t){return t?er(bu(t),-Mt,Mt):0===t?t:0}function Su(t){return null==t?"":di(t)}function Cu(t,e){var n=ff(t);return null==e?n:Jn(n,e)}function Eu(t,e){return w(t,bo(e,3),dr)}function Tu(t,e){return w(t,bo(e,3),hr)}function Au(t,e){return null==t?t:pf(t,bo(e,3),ju)}function Ou(t,e){return null==t?t:gf(t,bo(e,3),ju)}function Pu(t,e){return t&&dr(t,bo(e,3))}function Nu(t,e){return t&&hr(t,bo(e,3))}function Du(t){return null==t?[]:pr(t,Lu(t))}function Mu(t){return null==t?[]:pr(t,ju(t))}function Iu(t,e,n){var r=null==t?it:gr(t,e);return r===it?n:r}function Ru(t,e){return null!=t&&Eo(t,e,br)}function $u(t,e){return null!=t&&Eo(t,e,_r)}function Lu(t){return Us(t)?Nn(t):Lr(t)}function ju(t){return Us(t)?Nn(t,!0):jr(t)}function Fu(t,e){var n={};return e=bo(e,3),dr(t,function(t,r,i){Zn(n,e(t,r,i),t)}),n}function Bu(t,e){var n={};return e=bo(e,3),dr(t,function(t,r,i){Zn(n,r,e(t,r,i))}),n}function Vu(t,e){return zu(t,Os(bo(e)))}function zu(t,e){if(null==t)return{};var n=p(mo(t),function(t){return[t]});return e=bo(e),Yr(t,n,function(t,n){return e(t,n[0])})}function Uu(t,e,n){e=xi(e,t);var r=-1,i=e.length;for(i||(i=1,t=it);++r<i;){var o=null==t?it:t[Xo(e[r])];o===it&&(r=i,o=n),t=Qs(o)?o.call(t):o}return t}function Hu(t,e,n){return null==t?t:ii(t,e,n)}function qu(t,e,n,r){return r="function"==typeof r?r:it,null==t?t:ii(t,e,n,r)}function Wu(t,e,n){var r=pd(t),i=r||md(t)||wd(t);if(e=bo(e,4),null==n){var o=t&&t.constructor;n=i?r?new o:[]:eu(t)&&Qs(o)?ff(Sc(t)):{}}return(i?u:dr)(t,function(t,r,i){return e(n,t,r,i)}),n}function Gu(t,e){return null==t||pi(t,e)}function Yu(t,e,n){return null==t?t:gi(t,e,wi(n))}function Ku(t,e,n,r){return r="function"==typeof r?r:it,null==t?t:gi(t,e,wi(n),r)}function Xu(t){return null==t?[]:R(t,Lu(t))}function Ju(t){return null==t?[]:R(t,ju(t))}function Qu(t,e,n){return n===it&&(n=e,e=it),n!==it&&(n=wu(n),n=n===n?n:0),e!==it&&(e=wu(e),e=e===e?e:0),er(wu(t),e,n)}function Zu(t,e,n){return e=yu(e),n===it?(n=e,e=0):n=yu(n),t=wu(t),wr(t,e,n)}function tl(t,e,n){if(n&&"boolean"!=typeof n&&Mo(t,e,n)&&(e=n=it),n===it&&("boolean"==typeof e?(n=e,e=it):"boolean"==typeof t&&(n=t,t=it)),t===it&&e===it?(t=0,e=1):(t=yu(t),e===it?(e=t,t=0):e=yu(e)),t>e){var r=t;t=e,e=r}if(n||t%1||e%1){var i=Wc();return Uc(t+i*(e-t+An("1e-"+((i+"").length-1))),e)}return Qr(t,e)}function el(t){return Gd(Su(t).toLowerCase())}function nl(t){return(t=Su(t))&&t.replace(Ye,qn).replace(gn,"")}function rl(t,e,n){t=Su(t),e=di(e);var r=t.length;n=n===it?r:er(bu(n),0,r);var i=n;return(n-=e.length)>=0&&t.slice(n,i)==e}function il(t){return t=Su(t),t&&Se.test(t)?t.replace(xe,Wn):t}function ol(t){return t=Su(t),t&&De.test(t)?t.replace(Ne,"\\$&"):t}function al(t,e,n){t=Su(t),e=bu(e);var r=e?Z(t):0;if(!e||r>=e)return t;var i=(e-r)/2;return Zi($c(i),n)+t+Zi(Rc(i),n)}function sl(t,e,n){t=Su(t),e=bu(e);var r=e?Z(t):0;return e&&r<e?t+Zi(e-r,n):t}function ul(t,e,n){t=Su(t),e=bu(e);var r=e?Z(t):0;return e&&r<e?Zi(e-r,n)+t:t}function ll(t,e,n){return n||null==e?e=0:e&&(e=+e),qc(Su(t).replace(Ie,""),e||0)}function cl(t,e,n){return e=(n?Mo(t,e,n):e===it)?1:bu(e),ti(Su(t),e)}function fl(){var t=arguments,e=Su(t[0]);return t.length<3?e:e.replace(t[1],t[2])}function dl(t,e,n){return n&&"number"!=typeof n&&Mo(t,e,n)&&(e=n=it),(n=n===it?$t:n>>>0)?(t=Su(t),t&&("string"==typeof e||null!=e&&!bd(e))&&!(e=di(e))&&z(t)?ki(tt(t),0,n):t.split(e,n)):[]}function hl(t,e,n){return t=Su(t),n=null==n?0:er(bu(n),0,t.length),e=di(e),t.slice(n,n+e.length)==e}function pl(t,e,r){var i=n.templateSettings;r&&Mo(t,e,r)&&(e=it),t=Su(t),e=Ed({},e,i,so);var o,a,s=Ed({},e.imports,i.imports,so),u=Lu(s),l=R(s,u),c=0,f=e.interpolate||Ke,d="__p += '",h=oc((e.escape||Ke).source+"|"+f.source+"|"+(f===Te?Ve:Ke).source+"|"+(e.evaluate||Ke).source+"|$","g"),p="//# sourceURL="+("sourceURL"in e?e.sourceURL:"lodash.templateSources["+ ++wn+"]")+"\n";t.replace(h,function(e,n,r,i,s,u){return r||(r=i),d+=t.slice(c,u).replace(Xe,B),n&&(o=!0,d+="' +\n__e("+n+") +\n'"),s&&(a=!0,d+="';\n"+s+";\n__p += '"),r&&(d+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=u+e.length,e}),d+="';\n";var g=e.variable;g||(d="with (obj) {\n"+d+"\n}\n"),d=(a?d.replace(ye,""):d).replace(be,"$1").replace(_e,"$1;"),d="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var m=Yd(function(){return nc(u,p+"return "+d).apply(it,l)});if(m.source=d,Xs(m))throw m;return m}function gl(t){return Su(t).toLowerCase()}function ml(t){return Su(t).toUpperCase()}function vl(t,e,n){if((t=Su(t))&&(n||e===it))return t.replace(Me,"");if(!t||!(e=di(e)))return t;var r=tt(t),i=tt(e);return ki(r,L(r,i),j(r,i)+1).join("")}function yl(t,e,n){if((t=Su(t))&&(n||e===it))return t.replace(Re,"");if(!t||!(e=di(e)))return t;var r=tt(t);return ki(r,0,j(r,tt(e))+1).join("")}function bl(t,e,n){if((t=Su(t))&&(n||e===it))return t.replace(Ie,"");if(!t||!(e=di(e)))return t;var r=tt(t);return ki(r,L(r,tt(e))).join("")}function _l(t,e){var n=Et,r=Tt;if(eu(e)){var i="separator"in e?e.separator:i;n="length"in e?bu(e.length):n,r="omission"in e?di(e.omission):r}t=Su(t);var o=t.length;if(z(t)){var a=tt(t);o=a.length}if(n>=o)return t;var s=n-Z(r);if(s<1)return r;var u=a?ki(a,0,s).join(""):t.slice(0,s);if(i===it)return u+r;if(a&&(s+=u.length-s),bd(i)){if(t.slice(s).search(i)){var l,c=u;for(i.global||(i=oc(i.source,Su(ze.exec(i))+"g")),i.lastIndex=0;l=i.exec(c);)var f=l.index;u=u.slice(0,f===it?s:f)}}else if(t.indexOf(di(i),s)!=s){var d=u.lastIndexOf(i);d>-1&&(u=u.slice(0,d))}return u+r}function wl(t){return t=Su(t),t&&ke.test(t)?t.replace(we,Gn):t}function xl(t,e,n){return t=Su(t),e=n?it:e,e===it?U(t)?rt(t):_(t):t.match(e)||[]}function kl(t){var e=null==t?0:t.length,n=bo();return t=e?p(t,function(t){if("function"!=typeof t[1])throw new sc(st);return[n(t[0]),t[1]]}):[],ei(function(n){for(var r=-1;++r<e;){var i=t[r];if(a(i[0],this,n))return a(i[1],this,n)}})}function Sl(t){return rr(nr(t,ft))}function Cl(t){return function(){return t}}function El(t,e){return null==t||t!==t?e:t}function Tl(t){return t}function Al(t){return $r("function"==typeof t?t:nr(t,ft))}function Ol(t){return Vr(nr(t,ft))}function Pl(t,e){return zr(t,nr(e,ft))}function Nl(t,e,n){var r=Lu(e),i=pr(e,r);null!=n||eu(e)&&(i.length||!r.length)||(n=e,e=t,t=this,i=pr(e,Lu(e)));var o=!(eu(n)&&"chain"in n&&!n.chain),a=Qs(t);return u(i,function(n){var r=e[n];t[n]=r,a&&(t.prototype[n]=function(){var e=this.__chain__;if(o||e){var n=t(this.__wrapped__);return(n.__actions__=Ii(this.__actions__)).push({func:r,args:arguments,thisArg:t}),n.__chain__=e,n}return r.apply(t,g([this.value()],arguments))})}),t}function Dl(){return Dn._===this&&(Dn._=yc),this}function Ml(){}function Il(t){return t=bu(t),ei(function(e){return qr(e,t)})}function Rl(t){return Io(t)?T(Xo(t)):Kr(t)}function $l(t){return function(e){return null==t?it:gr(t,e)}}function Ll(){return[]}function jl(){return!1}function Fl(){return{}}function Bl(){return""}function Vl(){return!0}function zl(t,e){if((t=bu(t))<1||t>Mt)return[];var n=$t,r=Uc(t,$t);e=bo(e),t-=$t;for(var i=D(r,e);++n<t;)e(n);return i}function Ul(t){return pd(t)?p(t,Xo):hu(t)?[t]:Ii(Of(Su(t)))}function Hl(t){var e=++pc;return Su(t)+e}function ql(t){return t&&t.length?ur(t,Tl,yr):it}function Wl(t,e){return t&&t.length?ur(t,bo(e,2),yr):it}function Gl(t){return E(t,Tl)}function Yl(t,e){return E(t,bo(e,2))}function Kl(t){return t&&t.length?ur(t,Tl,Fr):it}function Xl(t,e){return t&&t.length?ur(t,bo(e,2),Fr):it}function Jl(t){return t&&t.length?N(t,Tl):0}function Ql(t,e){return t&&t.length?N(t,bo(e,2)):0}e=null==e?Dn:Yn.defaults(Dn.Object(),e,Yn.pick(Dn,_n));var Zl=e.Array,tc=e.Date,ec=e.Error,nc=e.Function,rc=e.Math,ic=e.Object,oc=e.RegExp,ac=e.String,sc=e.TypeError,uc=Zl.prototype,lc=nc.prototype,cc=ic.prototype,fc=e["__core-js_shared__"],dc=lc.toString,hc=cc.hasOwnProperty,pc=0,gc=function(){var t=/[^.]+$/.exec(fc&&fc.keys&&fc.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),mc=cc.toString,vc=dc.call(ic),yc=Dn._,bc=oc("^"+dc.call(hc).replace(Ne,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),_c=Rn?e.Buffer:it,wc=e.Symbol,xc=e.Uint8Array,kc=_c?_c.allocUnsafe:it,Sc=W(ic.getPrototypeOf,ic),Cc=ic.create,Ec=cc.propertyIsEnumerable,Tc=uc.splice,Ac=wc?wc.isConcatSpreadable:it,Oc=wc?wc.iterator:it,Pc=wc?wc.toStringTag:it,Nc=function(){try{var t=xo(ic,"defineProperty");return t({},"",{}),t}catch(t){}}(),Dc=e.clearTimeout!==Dn.clearTimeout&&e.clearTimeout,Mc=tc&&tc.now!==Dn.Date.now&&tc.now,Ic=e.setTimeout!==Dn.setTimeout&&e.setTimeout,Rc=rc.ceil,$c=rc.floor,Lc=ic.getOwnPropertySymbols,jc=_c?_c.isBuffer:it,Fc=e.isFinite,Bc=uc.join,Vc=W(ic.keys,ic),zc=rc.max,Uc=rc.min,Hc=tc.now,qc=e.parseInt,Wc=rc.random,Gc=uc.reverse,Yc=xo(e,"DataView"),Kc=xo(e,"Map"),Xc=xo(e,"Promise"),Jc=xo(e,"Set"),Qc=xo(e,"WeakMap"),Zc=xo(ic,"create"),tf=Qc&&new Qc,ef={},nf=Jo(Yc),rf=Jo(Kc),of=Jo(Xc),af=Jo(Jc),sf=Jo(Qc),uf=wc?wc.prototype:it,lf=uf?uf.valueOf:it,cf=uf?uf.toString:it,ff=function(){function t(){}return function(e){if(!eu(e))return{};if(Cc)return Cc(e);t.prototype=e;var n=new t;return t.prototype=it,n}}();n.templateSettings={escape:Ce,evaluate:Ee,interpolate:Te,variable:"",imports:{_:n}},n.prototype=r.prototype,n.prototype.constructor=n,i.prototype=ff(r.prototype),i.prototype.constructor=i,b.prototype=ff(r.prototype),b.prototype.constructor=b,nt.prototype.clear=Fe,nt.prototype.delete=Je,nt.prototype.get=Qe,nt.prototype.has=Ze,nt.prototype.set=tn,en.prototype.clear=nn,en.prototype.delete=rn,en.prototype.get=on,en.prototype.has=an,en.prototype.set=sn,un.prototype.clear=ln,un.prototype.delete=cn,un.prototype.get=fn,un.prototype.has=dn,un.prototype.set=hn,mn.prototype.add=mn.prototype.push=vn,mn.prototype.has=yn,bn.prototype.clear=Sn,bn.prototype.delete=Cn,bn.prototype.get=En,bn.prototype.has=Tn,bn.prototype.set=Pn;var df=Bi(dr),hf=Bi(hr,!0),pf=Vi(),gf=Vi(!0),mf=tf?function(t,e){return tf.set(t,e),t}:Tl,vf=Nc?function(t,e){return Nc(t,"toString",{configurable:!0,enumerable:!1,value:Cl(e),writable:!0})}:Tl,yf=ei,bf=Dc||function(t){return Dn.clearTimeout(t)},_f=Jc&&1/K(new Jc([,-0]))[1]==Dt?function(t){return new Jc(t)}:Ml,wf=tf?function(t){return tf.get(t)}:Ml,xf=Lc?function(t){return null==t?[]:(t=ic(t),f(Lc(t),function(e){return Ec.call(t,e)}))}:Ll,kf=Lc?function(t){for(var e=[];t;)g(e,xf(t)),t=Sc(t);return e}:Ll,Sf=vr;(Yc&&Sf(new Yc(new ArrayBuffer(1)))!=ue||Kc&&Sf(new Kc)!=Kt||Xc&&"[object Promise]"!=Sf(Xc.resolve())||Jc&&Sf(new Jc)!=ee||Qc&&Sf(new Qc)!=oe)&&(Sf=function(t){var e=vr(t),n=e==Qt?t.constructor:it,r=n?Jo(n):"";if(r)switch(r){case nf:return ue;case rf:return Kt;case of:return"[object Promise]";case af:return ee;case sf:return oe}return e});var Cf=fc?Qs:jl,Ef=Yo(mf),Tf=Ic||function(t,e){return Dn.setTimeout(t,e)},Af=Yo(vf),Of=function(t){var e=As(t,function(t){return n.size===lt&&n.clear(),t}),n=e.cache;return e}(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(Pe,function(t,n,r,i){e.push(r?i.replace(Be,"$1"):n||t)}),e}),Pf=ei(function(t,e){return Hs(t)?ar(t,fr(e,1,Hs,!0)):[]}),Nf=ei(function(t,e){var n=ya(e);return Hs(n)&&(n=it),Hs(t)?ar(t,fr(e,1,Hs,!0),bo(n,2)):[]}),Df=ei(function(t,e){var n=ya(e);return Hs(n)&&(n=it),Hs(t)?ar(t,fr(e,1,Hs,!0),it,n):[]}),Mf=ei(function(t){var e=p(t,_i);return e.length&&e[0]===t[0]?xr(e):[]}),If=ei(function(t){var e=ya(t),n=p(t,_i);return e===ya(n)?e=it:n.pop(),n.length&&n[0]===t[0]?xr(n,bo(e,2)):[]}),Rf=ei(function(t){var e=ya(t),n=p(t,_i);return e="function"==typeof e?e:it,e&&n.pop(),n.length&&n[0]===t[0]?xr(n,it,e):[]}),$f=ei(wa),Lf=po(function(t,e){var n=null==t?0:t.length,r=tr(t,e);return Jr(t,p(e,function(t){return Do(t,n)?+t:t}).sort(Pi)),r}),jf=ei(function(t){return hi(fr(t,1,Hs,!0))}),Ff=ei(function(t){var e=ya(t);return Hs(e)&&(e=it),hi(fr(t,1,Hs,!0),bo(e,2))}),Bf=ei(function(t){var e=ya(t);return e="function"==typeof e?e:it,hi(fr(t,1,Hs,!0),it,e)}),Vf=ei(function(t,e){return Hs(t)?ar(t,e):[]}),zf=ei(function(t){return yi(f(t,Hs))}),Uf=ei(function(t){var e=ya(t);return Hs(e)&&(e=it),yi(f(t,Hs),bo(e,2))}),Hf=ei(function(t){var e=ya(t);return e="function"==typeof e?e:it,yi(f(t,Hs),it,e)}),qf=ei(Ua),Wf=ei(function(t){var e=t.length,n=e>1?t[e-1]:it;return n="function"==typeof n?(t.pop(),n):it,Ha(t,n)}),Gf=po(function(t){var e=t.length,n=e?t[0]:0,r=this.__wrapped__,o=function(e){return tr(e,t)};return!(e>1||this.__actions__.length)&&r instanceof b&&Do(n)?(r=r.slice(n,+n+(e?1:0)),r.__actions__.push({func:Ka,args:[o],thisArg:it}),new i(r,this.__chain__).thru(function(t){return e&&!t.length&&t.push(it),t})):this.thru(o)}),Yf=ji(function(t,e,n){hc.call(t,n)?++t[n]:Zn(t,n,1)}),Kf=Gi(ua),Xf=Gi(la),Jf=ji(function(t,e,n){hc.call(t,n)?t[n].push(e):Zn(t,n,[e])}),Qf=ei(function(t,e,n){var r=-1,i="function"==typeof e,o=Us(t)?Zl(t.length):[];return df(t,function(t){o[++r]=i?a(e,t,n):Sr(t,e,n)}),o}),Zf=ji(function(t,e,n){Zn(t,n,e)}),td=ji(function(t,e,n){t[n?0:1].push(e)},function(){return[[],[]]}),ed=ei(function(t,e){if(null==t)return[];var n=e.length;return n>1&&Mo(t,e[0],e[1])?e=[]:n>2&&Mo(e[0],e[1],e[2])&&(e=[e[0]]),Wr(t,fr(e,1),[])}),nd=Mc||function(){return Dn.Date.now()},rd=ei(function(t,e,n){var r=mt;if(n.length){var i=G(n,yo(rd));r|=wt}return ao(t,r,e,n,i)}),id=ei(function(t,e,n){var r=mt|vt;if(n.length){var i=G(n,yo(id));r|=wt}return ao(e,r,t,n,i)}),od=ei(function(t,e){return or(t,1,e)}),ad=ei(function(t,e,n){return or(t,wu(e)||0,n)});As.Cache=un;var sd=yf(function(t,e){e=1==e.length&&pd(e[0])?p(e[0],I(bo())):p(fr(e,1),I(bo()));var n=e.length;return ei(function(r){for(var i=-1,o=Uc(r.length,n);++i<o;)r[i]=e[i].call(this,r[i]);return a(t,this,r)})}),ud=ei(function(t,e){var n=G(e,yo(ud));return ao(t,wt,it,e,n)}),ld=ei(function(t,e){var n=G(e,yo(ld));return ao(t,xt,it,e,n)}),cd=po(function(t,e){return ao(t,St,it,it,it,e)}),fd=no(yr),dd=no(function(t,e){return t>=e}),hd=Cr(function(){return arguments}())?Cr:function(t){return nu(t)&&hc.call(t,"callee")&&!Ec.call(t,"callee")},pd=Zl.isArray,gd=jn?I(jn):Er,md=jc||jl,vd=Fn?I(Fn):Tr,yd=Bn?I(Bn):Pr,bd=Vn?I(Vn):Mr,_d=zn?I(zn):Ir,wd=Un?I(Un):Rr,xd=no(Fr),kd=no(function(t,e){return t<=e}),Sd=Fi(function(t,e){if(jo(e)||Us(e))return void Ri(e,Lu(e),t);for(var n in e)hc.call(e,n)&&Hn(t,n,e[n])}),Cd=Fi(function(t,e){Ri(e,ju(e),t)}),Ed=Fi(function(t,e,n,r){Ri(e,ju(e),t,r)}),Td=Fi(function(t,e,n,r){Ri(e,Lu(e),t,r)}),Ad=po(tr),Od=ei(function(t,e){t=ic(t);var n=-1,r=e.length,i=r>2?e[2]:it;for(i&&Mo(e[0],e[1],i)&&(r=1);++n<r;)for(var o=e[n],a=ju(o),s=-1,u=a.length;++s<u;){var l=a[s],c=t[l];(c===it||zs(c,cc[l])&&!hc.call(t,l))&&(t[l]=o[l])}return t}),Pd=ei(function(t){return t.push(it,uo),a(Rd,it,t)}),Nd=Xi(function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=mc.call(e)),t[e]=n},Cl(Tl)),Dd=Xi(function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=mc.call(e)),hc.call(t,e)?t[e].push(n):t[e]=[n]},bo),Md=ei(Sr),Id=Fi(function(t,e,n){Ur(t,e,n)}),Rd=Fi(function(t,e,n,r){Ur(t,e,n,r)}),$d=po(function(t,e){var n={};if(null==t)return n;var r=!1;e=p(e,function(e){return e=xi(e,t),r||(r=e.length>1),e}),Ri(t,mo(t),n),r&&(n=nr(n,ft|dt|ht,lo));for(var i=e.length;i--;)pi(n,e[i]);return n}),Ld=po(function(t,e){return null==t?{}:Gr(t,e)}),jd=oo(Lu),Fd=oo(ju),Bd=Hi(function(t,e,n){return e=e.toLowerCase(),t+(n?el(e):e)}),Vd=Hi(function(t,e,n){return t+(n?"-":"")+e.toLowerCase()}),zd=Hi(function(t,e,n){return t+(n?" ":"")+e.toLowerCase()}),Ud=Ui("toLowerCase"),Hd=Hi(function(t,e,n){return t+(n?"_":"")+e.toLowerCase()}),qd=Hi(function(t,e,n){return t+(n?" ":"")+Gd(e)}),Wd=Hi(function(t,e,n){return t+(n?" ":"")+e.toUpperCase()}),Gd=Ui("toUpperCase"),Yd=ei(function(t,e){try{return a(t,it,e)}catch(t){return Xs(t)?t:new ec(t)}}),Kd=po(function(t,e){return u(e,function(e){e=Xo(e),Zn(t,e,rd(t[e],t))}),t}),Xd=Yi(),Jd=Yi(!0),Qd=ei(function(t,e){return function(n){return Sr(n,t,e)}}),Zd=ei(function(t,e){return function(n){return Sr(t,n,e)}}),th=Qi(p),eh=Qi(c),nh=Qi(y),rh=eo(),ih=eo(!0),oh=Ji(function(t,e){return t+e},0),ah=io("ceil"),sh=Ji(function(t,e){return t/e},1),uh=io("floor"),lh=Ji(function(t,e){return t*e},1),ch=io("round"),fh=Ji(function(t,e){return t-e},0);return n.after=ws,n.ary=xs,n.assign=Sd,n.assignIn=Cd,n.assignInWith=Ed,n.assignWith=Td,n.at=Ad,n.before=ks,n.bind=rd,n.bindAll=Kd,n.bindKey=id,n.castArray=$s,n.chain=Ga,n.chunk=ta,n.compact=ea,n.concat=na,n.cond=kl,n.conforms=Sl,n.constant=Cl,n.countBy=Yf,n.create=Cu,n.curry=Ss,n.curryRight=Cs,n.debounce=Es,n.defaults=Od,n.defaultsDeep=Pd,n.defer=od,n.delay=ad,n.difference=Pf,n.differenceBy=Nf,n.differenceWith=Df,n.drop=ra,n.dropRight=ia,n.dropRightWhile=oa,n.dropWhile=aa,n.fill=sa,n.filter=is,n.flatMap=os,n.flatMapDeep=as,n.flatMapDepth=ss,n.flatten=ca,n.flattenDeep=fa,n.flattenDepth=da,n.flip=Ts,n.flow=Xd,n.flowRight=Jd,n.fromPairs=ha,n.functions=Du,n.functionsIn=Mu,n.groupBy=Jf,n.initial=ma,n.intersection=Mf,n.intersectionBy=If,n.intersectionWith=Rf,n.invert=Nd,n.invertBy=Dd,n.invokeMap=Qf,n.iteratee=Al,n.keyBy=Zf,n.keys=Lu,n.keysIn=ju,n.map=fs,n.mapKeys=Fu,n.mapValues=Bu,n.matches=Ol,n.matchesProperty=Pl,n.memoize=As,n.merge=Id,n.mergeWith=Rd,n.method=Qd,n.methodOf=Zd,n.mixin=Nl,n.negate=Os,n.nthArg=Il,n.omit=$d,n.omitBy=Vu,n.once=Ps,n.orderBy=ds,n.over=th,n.overArgs=sd,n.overEvery=eh,n.overSome=nh,n.partial=ud,n.partialRight=ld,n.partition=td,n.pick=Ld,n.pickBy=zu,n.property=Rl,n.propertyOf=$l,n.pull=$f,n.pullAll=wa,n.pullAllBy=xa,n.pullAllWith=ka,n.pullAt=Lf,n.range=rh,n.rangeRight=ih,n.rearg=cd,n.reject=gs,n.remove=Sa,n.rest=Ns,n.reverse=Ca,n.sampleSize=vs,n.set=Hu,n.setWith=qu,n.shuffle=ys,n.slice=Ea,n.sortBy=ed,n.sortedUniq=Ma,n.sortedUniqBy=Ia,n.split=dl,n.spread=Ds,n.tail=Ra,n.take=$a,n.takeRight=La,n.takeRightWhile=ja,n.takeWhile=Fa,n.tap=Ya,n.throttle=Ms,n.thru=Ka,n.toArray=vu,n.toPairs=jd,n.toPairsIn=Fd,n.toPath=Ul,n.toPlainObject=xu,n.transform=Wu,n.unary=Is,n.union=jf,n.unionBy=Ff,n.unionWith=Bf,n.uniq=Ba,n.uniqBy=Va,n.uniqWith=za,n.unset=Gu,n.unzip=Ua,n.unzipWith=Ha,n.update=Yu,n.updateWith=Ku,n.values=Xu,n.valuesIn=Ju,n.without=Vf,n.words=xl,n.wrap=Rs,n.xor=zf,n.xorBy=Uf,n.xorWith=Hf,n.zip=qf,n.zipObject=qa,n.zipObjectDeep=Wa,n.zipWith=Wf,n.entries=jd,n.entriesIn=Fd,n.extend=Cd,n.extendWith=Ed,Nl(n,n),n.add=oh,n.attempt=Yd,n.camelCase=Bd,n.capitalize=el,n.ceil=ah,n.clamp=Qu,n.clone=Ls,n.cloneDeep=Fs,n.cloneDeepWith=Bs,n.cloneWith=js,n.conformsTo=Vs,n.deburr=nl,n.defaultTo=El,n.divide=sh,n.endsWith=rl,n.eq=zs,n.escape=il,n.escapeRegExp=ol,n.every=rs,n.find=Kf,n.findIndex=ua,n.findKey=Eu,n.findLast=Xf,n.findLastIndex=la,n.findLastKey=Tu,n.floor=uh,n.forEach=us,n.forEachRight=ls,n.forIn=Au,n.forInRight=Ou,n.forOwn=Pu,n.forOwnRight=Nu,n.get=Iu,n.gt=fd,n.gte=dd,n.has=Ru,n.hasIn=$u,n.head=pa,n.identity=Tl,n.includes=cs,n.indexOf=ga,n.inRange=Zu,n.invoke=Md,n.isArguments=hd,n.isArray=pd,n.isArrayBuffer=gd,n.isArrayLike=Us,n.isArrayLikeObject=Hs,n.isBoolean=qs,n.isBuffer=md,n.isDate=vd,n.isElement=Ws,n.isEmpty=Gs,n.isEqual=Ys,n.isEqualWith=Ks,n.isError=Xs,n.isFinite=Js,n.isFunction=Qs,n.isInteger=Zs,n.isLength=tu,n.isMap=yd,n.isMatch=ru,n.isMatchWith=iu,n.isNaN=ou,n.isNative=au,n.isNil=uu,n.isNull=su,n.isNumber=lu,n.isObject=eu,n.isObjectLike=nu,n.isPlainObject=cu,n.isRegExp=bd,n.isSafeInteger=fu,n.isSet=_d,n.isString=du,n.isSymbol=hu,n.isTypedArray=wd,n.isUndefined=pu,n.isWeakMap=gu,n.isWeakSet=mu,n.join=va,n.kebabCase=Vd,n.last=ya,n.lastIndexOf=ba,n.lowerCase=zd,n.lowerFirst=Ud,n.lt=xd,n.lte=kd,n.max=ql,n.maxBy=Wl,n.mean=Gl,n.meanBy=Yl,n.min=Kl,n.minBy=Xl,n.stubArray=Ll,n.stubFalse=jl,n.stubObject=Fl,n.stubString=Bl,n.stubTrue=Vl,n.multiply=lh,n.nth=_a,n.noConflict=Dl,n.noop=Ml,n.now=nd,n.pad=al,n.padEnd=sl,n.padStart=ul,n.parseInt=ll,n.random=tl,n.reduce=hs,n.reduceRight=ps,n.repeat=cl,n.replace=fl,n.result=Uu,n.round=ch,n.runInContext=t,n.sample=ms,n.size=bs,n.snakeCase=Hd,n.some=_s,n.sortedIndex=Ta,n.sortedIndexBy=Aa,n.sortedIndexOf=Oa,n.sortedLastIndex=Pa,n.sortedLastIndexBy=Na,n.sortedLastIndexOf=Da,n.startCase=qd,n.startsWith=hl,n.subtract=fh,n.sum=Jl,n.sumBy=Ql,n.template=pl,n.times=zl,n.toFinite=yu,n.toInteger=bu,n.toLength=_u,n.toLower=gl,n.toNumber=wu,n.toSafeInteger=ku,n.toString=Su,n.toUpper=ml,n.trim=vl,n.trimEnd=yl,n.trimStart=bl,n.truncate=_l,n.unescape=wl,n.uniqueId=Hl,n.upperCase=Wd,n.upperFirst=Gd,n.each=us,n.eachRight=ls,n.first=pa,Nl(n,function(){var t={};return dr(n,function(e,r){hc.call(n.prototype,r)||(t[r]=e)}),t}(),{chain:!1}),n.VERSION="4.17.10",u(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){n[t].placeholder=n}),u(["drop","take"],function(t,e){b.prototype[t]=function(n){n=n===it?1:zc(bu(n),0);var r=this.__filtered__&&!e?new b(this):this.clone();return r.__filtered__?r.__takeCount__=Uc(n,r.__takeCount__):r.__views__.push({size:Uc(n,$t),type:t+(r.__dir__<0?"Right":"")}),r},b.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}}),u(["filter","map","takeWhile"],function(t,e){var n=e+1,r=n==Pt||3==n;b.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:bo(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}}),u(["head","last"],function(t,e){var n="take"+(e?"Right":"");b.prototype[t]=function(){return this[n](1).value()[0]}}),u(["initial","tail"],function(t,e){var n="drop"+(e?"":"Right");b.prototype[t]=function(){return this.__filtered__?new b(this):this[n](1)}}),b.prototype.compact=function(){return this.filter(Tl)},b.prototype.find=function(t){return this.filter(t).head()},b.prototype.findLast=function(t){return this.reverse().find(t)},b.prototype.invokeMap=ei(function(t,e){return"function"==typeof t?new b(this):this.map(function(n){return Sr(n,t,e)})}),b.prototype.reject=function(t){return this.filter(Os(bo(t)))},b.prototype.slice=function(t,e){t=bu(t);var n=this;return n.__filtered__&&(t>0||e<0)?new b(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==it&&(e=bu(e),n=e<0?n.dropRight(-e):n.take(e-t)),n)},b.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},b.prototype.toArray=function(){return this.take($t)},dr(b.prototype,function(t,e){var r=/^(?:filter|find|map|reject)|While$/.test(e),o=/^(?:head|last)$/.test(e),a=n[o?"take"+("last"==e?"Right":""):e],s=o||/^find/.test(e);a&&(n.prototype[e]=function(){var e=this.__wrapped__,u=o?[1]:arguments,l=e instanceof b,c=u[0],f=l||pd(e),d=function(t){var e=a.apply(n,g([t],u));return o&&h?e[0]:e};f&&r&&"function"==typeof c&&1!=c.length&&(l=f=!1);var h=this.__chain__,p=!!this.__actions__.length,m=s&&!h,v=l&&!p;if(!s&&f){e=v?e:new b(this);var y=t.apply(e,u);return y.__actions__.push({func:Ka,args:[d],thisArg:it}),new i(y,h)}return m&&v?t.apply(this,u):(y=this.thru(d),m?o?y.value()[0]:y.value():y)})}),u(["pop","push","shift","sort","splice","unshift"],function(t){var e=uc[t],r=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",i=/^(?:pop|shift)$/.test(t);n.prototype[t]=function(){var t=arguments;if(i&&!this.__chain__){var n=this.value();return e.apply(pd(n)?n:[],t)}return this[r](function(n){return e.apply(pd(n)?n:[],t)})}}),dr(b.prototype,function(t,e){var r=n[e];if(r){var i=r.name+"";(ef[i]||(ef[i]=[])).push({name:e,func:r})}}),ef[Ki(it,vt).name]=[{name:"wrapper",func:it}],b.prototype.clone=A,b.prototype.reverse=J,b.prototype.value=et,n.prototype.at=Gf,n.prototype.chain=Xa,n.prototype.commit=Ja,n.prototype.next=Qa,n.prototype.plant=ts,n.prototype.reverse=es,n.prototype.toJSON=n.prototype.valueOf=n.prototype.value=ns,n.prototype.first=n.prototype.head,Oc&&(n.prototype[Oc]=Za),n}();"object"===o(n(261))&&n(261)?(Dn._=Yn,(i=function(){return Yn}.call(e,n,e,r))!==it&&(r.exports=i)):In?((In.exports=Yn)._=Yn,Mn._=Yn):Dn._=Yn}).call(void 0)}).call(e,n(20),n(1005)(t))},function(t,e,n){"use strict";var r,i;"function"==typeof Symbol&&Symbol.iterator;!function(o,a){r=a,void 0!==(i="function"==typeof r?r.call(e,n,e,t):r)&&(t.exports=i)}(0,function(){function t(t,e,n){this._reference=t.jquery?t[0]:t,this.state={};var r=void 0===e||null===e,i=e&&"[object Object]"===Object.prototype.toString.call(e);return this._popper=r||i?this.parse(i?e:{}):e.jquery?e[0]:e,this._options=Object.assign({},m,n),this._options.modifiers=this._options.modifiers.map(function(t){if(-1===this._options.modifiersIgnored.indexOf(t))return"applyStyle"===t&&this._popper.setAttribute("x-placement",this._options.placement),this.modifiers[t]||t}.bind(this)),this.state.position=this._getPosition(this._popper,this._reference),l(this._popper,{position:this.state.position,top:0}),this.update(),this._setupEventListeners(),this}function e(t){var e=t.style.display,n=t.style.visibility;t.style.display="block",t.style.visibility="hidden";var r=(t.offsetWidth,g.getComputedStyle(t)),i=parseFloat(r.marginTop)+parseFloat(r.marginBottom),o=parseFloat(r.marginLeft)+parseFloat(r.marginRight),a={width:t.offsetWidth+o,height:t.offsetHeight+i};return t.style.display=e,t.style.visibility=n,a}function n(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,function(t){return e[t]})}function r(t){var e=Object.assign({},t);return e.right=e.left+e.width,e.bottom=e.top+e.height,e}function i(t,e){var n,r=0;for(n in t){if(t[n]===e)return r;r++}return null}function o(t,e){return g.getComputedStyle(t,null)[e]}function a(t){var e=t.offsetParent;return e!==g.document.body&&e?e:g.document.documentElement}function s(t){var e=t.parentNode;return e?e===g.document?g.document.body.scrollTop||g.document.body.scrollLeft?g.document.body:g.document.documentElement:-1!==["scroll","auto"].indexOf(o(e,"overflow"))||-1!==["scroll","auto"].indexOf(o(e,"overflow-x"))||-1!==["scroll","auto"].indexOf(o(e,"overflow-y"))?e:s(t.parentNode):t}function u(t){return t!==g.document.body&&("fixed"===o(t,"position")||(t.parentNode?u(t.parentNode):t))}function l(t,e){function n(t){return""!==t&&!isNaN(parseFloat(t))&&isFinite(t)}Object.keys(e).forEach(function(r){var i="";-1!==["width","height","top","right","bottom","left"].indexOf(r)&&n(e[r])&&(i="px"),t.style[r]=e[r]+i})}function c(t){var e={};return t&&"[object Function]"===e.toString.call(t)}function f(t){var e={width:t.offsetWidth,height:t.offsetHeight,left:t.offsetLeft,top:t.offsetTop};return e.right=e.left+e.width,e.bottom=e.top+e.height,e}function d(t){var e=t.getBoundingClientRect(),n=-1!=navigator.userAgent.indexOf("MSIE"),r=n&&"HTML"===t.tagName?-t.scrollTop:e.top;return{left:e.left,top:r,right:e.right,bottom:e.bottom,width:e.right-e.left,height:e.bottom-r}}function h(t,e,n){var r=d(t),i=d(e);if(n){var o=s(e);i.top+=o.scrollTop,i.bottom+=o.scrollTop,i.left+=o.scrollLeft,i.right+=o.scrollLeft}return{top:r.top-i.top,left:r.left-i.left,bottom:r.top-i.top+r.height,right:r.left-i.left+r.width,width:r.width,height:r.height}}function p(t){for(var e=["","ms","webkit","moz","o"],n=0;n<e.length;n++){var r=e[n]?e[n]+t.charAt(0).toUpperCase()+t.slice(1):t;if(void 0!==g.document.body.style[r])return r}return null}var g=window,m={placement:"bottom",gpuAcceleration:!0,offset:0,boundariesElement:"viewport",boundariesPadding:5,preventOverflowOrder:["left","right","top","bottom"],flipBehavior:"flip",arrowElement:"[x-arrow]",arrowOffset:0,modifiers:["shift","offset","preventOverflow","keepTogether","arrow","flip","applyStyle"],modifiersIgnored:[],forceAbsolute:!1};return t.prototype.destroy=function(){return this._popper.removeAttribute("x-placement"),this._popper.style.left="",this._popper.style.position="",this._popper.style.top="",this._popper.style[p("transform")]="",this._removeEventListeners(),this._options.removeOnDestroy&&this._popper.remove(),this},t.prototype.update=function(){var t={instance:this,styles:{}};t.placement=this._options.placement,t._originalPlacement=this._options.placement,t.offsets=this._getOffsets(this._popper,this._reference,t.placement),t.boundaries=this._getBoundaries(t,this._options.boundariesPadding,this._options.boundariesElement),t=this.runModifiers(t,this._options.modifiers),"function"==typeof this.state.updateCallback&&this.state.updateCallback(t)},t.prototype.onCreate=function(t){return t(this),this},t.prototype.onUpdate=function(t){return this.state.updateCallback=t,this},t.prototype.parse=function(t){function e(t,e){e.forEach(function(e){t.classList.add(e)})}function n(t,e){e.forEach(function(e){t.setAttribute(e.split(":")[0],e.split(":")[1]||"")})}var r={tagName:"div",classNames:["popper"],attributes:[],parent:g.document.body,content:"",contentType:"text",arrowTagName:"div",arrowClassNames:["popper__arrow"],arrowAttributes:["x-arrow"]};t=Object.assign({},r,t);var i=g.document,o=i.createElement(t.tagName);if(e(o,t.classNames),n(o,t.attributes),"node"===t.contentType?o.appendChild(t.content.jquery?t.content[0]:t.content):"html"===t.contentType?o.innerHTML=t.content:o.textContent=t.content,t.arrowTagName){var a=i.createElement(t.arrowTagName);e(a,t.arrowClassNames),n(a,t.arrowAttributes),o.appendChild(a)}var s=t.parent.jquery?t.parent[0]:t.parent;if("string"==typeof s){if(s=i.querySelectorAll(t.parent),s.length>1&&console.warn("WARNING: the given `parent` query("+t.parent+") matched more than one element, the first one will be used"),0===s.length)throw"ERROR: the given `parent` doesn't exists!";s=s[0]}return s.length>1&&s instanceof Element==!1&&(console.warn("WARNING: you have passed as parent a list of elements, the first one will be used"),s=s[0]),s.appendChild(o),o},t.prototype._getPosition=function(t,e){var n=a(e);return this._options.forceAbsolute?"absolute":u(e,n)?"fixed":"absolute"},t.prototype._getOffsets=function(t,n,r){r=r.split("-")[0];var i={};i.position=this.state.position;var o="fixed"===i.position,s=h(n,a(t),o),u=e(t);return-1!==["right","left"].indexOf(r)?(i.top=s.top+s.height/2-u.height/2,i.left="left"===r?s.left-u.width:s.right):(i.left=s.left+s.width/2-u.width/2,i.top="top"===r?s.top-u.height:s.bottom),i.width=u.width,i.height=u.height,{popper:i,reference:s}},t.prototype._setupEventListeners=function(){if(this.state.updateBound=this.update.bind(this),g.addEventListener("resize",this.state.updateBound),"window"!==this._options.boundariesElement){var t=s(this._reference);t!==g.document.body&&t!==g.document.documentElement||(t=g),t.addEventListener("scroll",this.state.updateBound),this.state.scrollTarget=t}},t.prototype._removeEventListeners=function(){g.removeEventListener("resize",this.state.updateBound),"window"!==this._options.boundariesElement&&this.state.scrollTarget&&(this.state.scrollTarget.removeEventListener("scroll",this.state.updateBound),this.state.scrollTarget=null),this.state.updateBound=null},t.prototype._getBoundaries=function(t,e,n){var r,i,o={};if("window"===n){var u=g.document.body,l=g.document.documentElement;i=Math.max(u.scrollHeight,u.offsetHeight,l.clientHeight,l.scrollHeight,l.offsetHeight),r=Math.max(u.scrollWidth,u.offsetWidth,l.clientWidth,l.scrollWidth,l.offsetWidth),o={top:0,right:r,bottom:i,left:0}}else if("viewport"===n){var c=a(this._popper),d=s(this._popper),h=f(c),p="fixed"===t.offsets.popper.position?0:function(t){return t==document.body?Math.max(document.documentElement.scrollTop,document.body.scrollTop):t.scrollTop}(d),m="fixed"===t.offsets.popper.position?0:function(t){return t==document.body?Math.max(document.documentElement.scrollLeft,document.body.scrollLeft):t.scrollLeft}(d);o={top:0-(h.top-p),right:g.document.documentElement.clientWidth-(h.left-m),bottom:g.document.documentElement.clientHeight-(h.top-p),left:0-(h.left-m)}}else o=a(this._popper)===n?{top:0,left:0,right:n.clientWidth,bottom:n.clientHeight}:f(n);return o.left+=e,o.right-=e,o.top=o.top+e,o.bottom=o.bottom-e,o},t.prototype.runModifiers=function(t,e,n){var r=e.slice();return void 0!==n&&(r=this._options.modifiers.slice(0,i(this._options.modifiers,n))),r.forEach(function(e){c(e)&&(t=e.call(this,t))}.bind(this)),t},t.prototype.isModifierRequired=function(t,e){var n=i(this._options.modifiers,t);return!!this._options.modifiers.slice(0,n).filter(function(t){return t===e}).length},t.prototype.modifiers={},t.prototype.modifiers.applyStyle=function(t){var e,n={position:t.offsets.popper.position},r=Math.round(t.offsets.popper.left),i=Math.round(t.offsets.popper.top);return this._options.gpuAcceleration&&(e=p("transform"))?(n[e]="translate3d("+r+"px, "+i+"px, 0)",n.top=0,n.left=0):(n.left=r,n.top=i),Object.assign(n,t.styles),l(this._popper,n),this._popper.setAttribute("x-placement",t.placement),this.isModifierRequired(this.modifiers.applyStyle,this.modifiers.arrow)&&t.offsets.arrow&&l(t.arrowElement,t.offsets.arrow),t},t.prototype.modifiers.shift=function(t){var e=t.placement,n=e.split("-")[0],i=e.split("-")[1];if(i){var o=t.offsets.reference,a=r(t.offsets.popper),s={y:{start:{top:o.top},end:{top:o.top+o.height-a.height}},x:{start:{left:o.left},end:{left:o.left+o.width-a.width}}},u=-1!==["bottom","top"].indexOf(n)?"x":"y";t.offsets.popper=Object.assign(a,s[u][i])}return t},t.prototype.modifiers.preventOverflow=function(t){var e=this._options.preventOverflowOrder,n=r(t.offsets.popper),i={left:function(){var e=n.left;return n.left<t.boundaries.left&&(e=Math.max(n.left,t.boundaries.left)),{left:e}},right:function(){var e=n.left;return n.right>t.boundaries.right&&(e=Math.min(n.left,t.boundaries.right-n.width)),{left:e}},top:function(){var e=n.top;return n.top<t.boundaries.top&&(e=Math.max(n.top,t.boundaries.top)),{top:e}},bottom:function(){var e=n.top;return n.bottom>t.boundaries.bottom&&(e=Math.min(n.top,t.boundaries.bottom-n.height)),{top:e}}};return e.forEach(function(e){t.offsets.popper=Object.assign(n,i[e]())}),t},t.prototype.modifiers.keepTogether=function(t){var e=r(t.offsets.popper),n=t.offsets.reference,i=Math.floor;return e.right<i(n.left)&&(t.offsets.popper.left=i(n.left)-e.width),e.left>i(n.right)&&(t.offsets.popper.left=i(n.right)),e.bottom<i(n.top)&&(t.offsets.popper.top=i(n.top)-e.height),e.top>i(n.bottom)&&(t.offsets.popper.top=i(n.bottom)),t},t.prototype.modifiers.flip=function(t){if(!this.isModifierRequired(this.modifiers.flip,this.modifiers.preventOverflow))return console.warn("WARNING: preventOverflow modifier is required by flip modifier in order to work, be sure to include it before flip!"),t;if(t.flipped&&t.placement===t._originalPlacement)return t;var e=t.placement.split("-")[0],i=n(e),o=t.placement.split("-")[1]||"",a=[];return a="flip"===this._options.flipBehavior?[e,i]:this._options.flipBehavior,a.forEach(function(s,u){if(e===s&&a.length!==u+1){e=t.placement.split("-")[0],i=n(e);var l=r(t.offsets.popper),c=-1!==["right","bottom"].indexOf(e);(c&&Math.floor(t.offsets.reference[e])>Math.floor(l[i])||!c&&Math.floor(t.offsets.reference[e])<Math.floor(l[i]))&&(t.flipped=!0,t.placement=a[u+1],o&&(t.placement+="-"+o),t.offsets.popper=this._getOffsets(this._popper,this._reference,t.placement).popper,t=this.runModifiers(t,this._options.modifiers,this._flip))}}.bind(this)),t},t.prototype.modifiers.offset=function(t){var e=this._options.offset,n=t.offsets.popper;return-1!==t.placement.indexOf("left")?n.top-=e:-1!==t.placement.indexOf("right")?n.top+=e:-1!==t.placement.indexOf("top")?n.left-=e:-1!==t.placement.indexOf("bottom")&&(n.left+=e),t},t.prototype.modifiers.arrow=function(t){var n=this._options.arrowElement,i=this._options.arrowOffset;if("string"==typeof n&&(n=this._popper.querySelector(n)),!n)return t;if(!this._popper.contains(n))return console.warn("WARNING: `arrowElement` must be child of its popper element!"),t;if(!this.isModifierRequired(this.modifiers.arrow,this.modifiers.keepTogether))return console.warn("WARNING: keepTogether modifier is required by arrow modifier in order to work, be sure to include it before arrow!"),t;var o={},a=t.placement.split("-")[0],s=r(t.offsets.popper),u=t.offsets.reference,l=-1!==["left","right"].indexOf(a),c=l?"height":"width",f=l?"top":"left",d=l?"left":"top",h=l?"bottom":"right",p=e(n)[c];u[h]-p<s[f]&&(t.offsets.popper[f]-=s[f]-(u[h]-p)),u[f]+p>s[h]&&(t.offsets.popper[f]+=u[f]+p-s[h]);var g=u[f]+(i||u[c]/2-p/2),m=g-s[f];return m=Math.max(Math.min(s[c]-p-8,m),8),o[f]=m,o[d]="",t.offsets.arrow=o,t.arrowElement=n,t},Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:function(t){if(void 0===t||null===t)throw new TypeError("Cannot convert first argument to object");for(var e=Object(t),n=1;n<arguments.length;n++){var r=arguments[n];if(void 0!==r&&null!==r){r=Object(r);for(var i=Object.keys(r),o=0,a=i.length;o<a;o++){var s=i[o],u=Object.getOwnPropertyDescriptor(r,s);void 0!==u&&u.enumerable&&(e[s]=r[s])}}}return e}}),t})},function(t,e,n){"use strict";e.__esModule=!0;var r=n(14),i=function(t){return t&&t.__esModule?t:{default:t}}(r),o=n(46),a=!1,s=!1,u=void 0,l=function(){if(!i.default.prototype.$isServer){var t=f.modalDom;return t?a=!0:(a=!1,t=document.createElement("div"),f.modalDom=t,t.addEventListener("touchmove",function(t){t.preventDefault(),t.stopPropagation()}),t.addEventListener("click",function(){f.doOnModalClick&&f.doOnModalClick()})),t}},c={},f={modalFade:!0,getInstance:function(t){return c[t]},register:function(t,e){t&&e&&(c[t]=e)},deregister:function(t){t&&(c[t]=null,delete c[t])},nextZIndex:function(){return f.zIndex++},modalStack:[],doOnModalClick:function(){var t=f.modalStack[f.modalStack.length-1];if(t){var e=f.getInstance(t.id);e&&e.closeOnClickModal&&e.close()}},openModal:function(t,e,n,r,s){if(!i.default.prototype.$isServer&&t&&void 0!==e){this.modalFade=s;for(var u=this.modalStack,c=0,f=u.length;c<f;c++){if(u[c].id===t)return}var d=l();if((0,o.addClass)(d,"v-modal"),this.modalFade&&!a&&(0,o.addClass)(d,"v-modal-enter"),r){r.trim().split(/\s+/).forEach(function(t){return(0,o.addClass)(d,t)})}setTimeout(function(){(0,o.removeClass)(d,"v-modal-enter")},200),n&&n.parentNode&&11!==n.parentNode.nodeType?n.parentNode.appendChild(d):document.body.appendChild(d),e&&(d.style.zIndex=e),d.tabIndex=0,d.style.display="",this.modalStack.push({id:t,zIndex:e,modalClass:r})}},closeModal:function(t){var e=this.modalStack,n=l();if(e.length>0){var r=e[e.length-1];if(r.id===t){if(r.modalClass){r.modalClass.trim().split(/\s+/).forEach(function(t){return(0,o.removeClass)(n,t)})}e.pop(),e.length>0&&(n.style.zIndex=e[e.length-1].zIndex)}else for(var i=e.length-1;i>=0;i--)if(e[i].id===t){e.splice(i,1);break}}0===e.length&&(this.modalFade&&(0,o.addClass)(n,"v-modal-leave"),setTimeout(function(){0===e.length&&(n.parentNode&&n.parentNode.removeChild(n),n.style.display="none",f.modalDom=void 0),(0,o.removeClass)(n,"v-modal-leave")},200))}};Object.defineProperty(f,"zIndex",{configurable:!0,get:function(){return s||(u=u||(i.default.prototype.$ELEMENT||{}).zIndex||2e3,s=!0),u},set:function(t){u=t}});var d=function(){if(!i.default.prototype.$isServer&&f.modalStack.length>0){var t=f.modalStack[f.modalStack.length-1];if(!t)return;return f.getInstance(t.id)}};i.default.prototype.$isServer||window.addEventListener("keydown",function(t){if(27===t.keyCode){var e=d();e&&e.closeOnPressEscape&&(e.handleClose?e.handleClose():e.handleAction?e.handleAction("cancel"):e.close())}}),e.default=f},function(t,e,n){"use strict";function r(t){return null!==t&&"object"===(void 0===t?"undefined":i(t))&&(0,o.hasOwn)(t,"componentOptions")}e.__esModule=!0;var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.isVNode=r;var o=n(36)},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";var r=Object.prototype.toString,i=Math.max,o=function(t,e){for(var n=[],r=0;r<t.length;r+=1)n[r]=t[r];for(var i=0;i<e.length;i+=1)n[i+t.length]=e[i];return n},a=function(t,e){for(var n=[],r=e||0,i=0;r<t.length;r+=1,i+=1)n[i]=t[r];return n},s=function(t,e){for(var n="",r=0;r<t.length;r+=1)n+=t[r],r+1<t.length&&(n+=e);return n};t.exports=function(t){var e=this;if("function"!=typeof e||"[object Function]"!==r.apply(e))throw new TypeError("Function.prototype.bind called on incompatible "+e);for(var n,u=a(arguments,1),l=function(){if(this instanceof n){var r=e.apply(this,o(u,arguments));return Object(r)===r?r:this}return e.apply(t,o(u,arguments))},c=i(0,e.length-u.length),f=[],d=0;d<c;d++)f[d]="$"+d;if(n=Function("binder","return function ("+s(f,",")+"){ return binder.apply(this,arguments); }")(l),e.prototype){var h=function(){};h.prototype=e.prototype,n.prototype=new h,h.prototype=null}return n}},function(t,e,n){"use strict";var r={foo:{}},i=Object;t.exports=function(){return{__proto__:r}.foo===r.foo&&!({__proto__:null}instanceof i)}},function(t,e,n){"use strict";var r="undefined"!=typeof Symbol&&Symbol,i=n(911);t.exports=function(){return"function"==typeof r&&("function"==typeof Symbol&&("symbol"==typeof r("foo")&&("symbol"==typeof Symbol("bar")&&i())))}},function(t,e,n){"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),n=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;t[e]=42;for(e in t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var r=Object.getOwnPropertySymbols(t);if(1!==r.length||r[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(t,e);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},function(t,e,n){"use strict";var r=Function.prototype.call,i=Object.prototype.hasOwnProperty,o=n(168);t.exports=o.call(r,i)},function(t,e){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
  53. e.read=function(t,e,n,r,i){var o,a,s=8*i-r-1,u=(1<<s)-1,l=u>>1,c=-7,f=n?i-1:0,d=n?-1:1,h=t[e+f];for(f+=d,o=h&(1<<-c)-1,h>>=-c,c+=s;c>0;o=256*o+t[e+f],f+=d,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+t[e+f],f+=d,c-=8);if(0===o)o=1-l;else{if(o===u)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),o-=l}return(h?-1:1)*a*Math.pow(2,o-r)},e.write=function(t,e,n,r,i,o){var a,s,u,l=8*o-i-1,c=(1<<l)-1,f=c>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:o-1,p=r?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=c):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-a))<1&&(a--,u*=2),e+=a+f>=1?d/u:d*Math.pow(2,1-f),e*u>=2&&(a++,u/=2),a+f>=c?(s=0,a=c):a+f>=1?(s=(e*u-1)*Math.pow(2,i),a+=f):(s=e*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;t[n+h]=255&s,h+=p,s/=256,i-=8);for(a=a<<i|s,l+=i;l>0;t[n+h]=255&a,h+=p,a/=256,l-=8);t[n+h-p]|=128*g}},function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},function(t,e,n){var r,i;/*!
  54. * jQuery JavaScript Library v3.7.1
  55. * https://jquery.com/
  56. *
  57. * Copyright OpenJS Foundation and other contributors
  58. * Released under the MIT license
  59. * https://jquery.org/license
  60. *
  61. * Date: 2023-08-28T13:37Z
  62. */
  63. !function(e,n){"use strict";"object"==typeof t&&"object"==typeof t.exports?t.exports=e.document?n(e,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return n(t)}:n(e)}("undefined"!=typeof window?window:this,function(n,o){"use strict";function a(t,e,n){n=n||St;var r,i,o=n.createElement("script");if(o.text=t,e)for(r in Ct)(i=e[r]||e.getAttribute&&e.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function s(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?mt[vt.call(t)]||"object":typeof t}function u(t){var e=!!t&&"length"in t&&t.length,n=s(t);return!xt(t)&&!kt(t)&&("array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t)}function l(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}function c(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t}function f(t,e,n){return xt(e)?Tt.grep(t,function(t,r){return!!e.call(t,r,t)!==n}):e.nodeType?Tt.grep(t,function(t){return t===e!==n}):"string"!=typeof e?Tt.grep(t,function(t){return gt.call(e,t)>-1!==n}):Tt.filter(e,t,n)}function d(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}function h(t){var e={};return Tt.each(t.match(Ht)||[],function(t,n){e[n]=!0}),e}function p(t){return t}function g(t){throw t}function m(t,e,n,r){var i;try{t&&xt(i=t.promise)?i.call(t).done(e).fail(n):t&&xt(i=t.then)?i.call(t,e,n):e.apply(void 0,[t].slice(r))}catch(t){n.apply(void 0,[t])}}function v(){St.removeEventListener("DOMContentLoaded",v),n.removeEventListener("load",v),Tt.ready()}function y(t,e){return e.toUpperCase()}function b(t){return t.replace(Yt,"ms-").replace(Kt,y)}function _(){this.expando=Tt.expando+_.uid++}function w(t){return"true"===t||"false"!==t&&("null"===t?null:t===+t+""?+t:Zt.test(t)?JSON.parse(t):t)}function x(t,e,n){var r;if(void 0===n&&1===t.nodeType)if(r="data-"+e.replace(te,"-$&").toLowerCase(),"string"==typeof(n=t.getAttribute(r))){try{n=w(n)}catch(t){}Qt.set(t,e,n)}else n=void 0;return n}function k(t,e,n,r){var i,o,a=20,s=r?function(){return r.cur()}:function(){return Tt.css(t,e,"")},u=s(),l=n&&n[3]||(Tt.cssNumber[e]?"":"px"),c=t.nodeType&&(Tt.cssNumber[e]||"px"!==l&&+u)&&ne.exec(Tt.css(t,e));if(c&&c[3]!==l){for(u/=2,l=l||c[3],c=+u||1;a--;)Tt.style(t,e,c+l),(1-o)*(1-(o=s()/u||.5))<=0&&(a=0),c/=o;c*=2,Tt.style(t,e,c+l),n=n||[]}return n&&(c=+c||+u||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=c,r.end=i)),i}function S(t){var e,n=t.ownerDocument,r=t.nodeName,i=ue[r];return i||(e=n.body.appendChild(n.createElement(r)),i=Tt.css(e,"display"),e.parentNode.removeChild(e),"none"===i&&(i="block"),ue[r]=i,i)}function C(t,e){for(var n,r,i=[],o=0,a=t.length;o<a;o++)r=t[o],r.style&&(n=r.style.display,e?("none"===n&&(i[o]=Jt.get(r,"display")||null,i[o]||(r.style.display="")),""===r.style.display&&se(r)&&(i[o]=S(r))):"none"!==n&&(i[o]="none",Jt.set(r,"display",n)));for(o=0;o<a;o++)null!=i[o]&&(t[o].style.display=i[o]);return t}function E(t,e){var n;return n=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&l(t,e)?Tt.merge([t],n):n}function T(t,e){for(var n=0,r=t.length;n<r;n++)Jt.set(t[n],"globalEval",!e||Jt.get(e[n],"globalEval"))}function A(t,e,n,r,i){for(var o,a,u,l,c,f,d=e.createDocumentFragment(),h=[],p=0,g=t.length;p<g;p++)if((o=t[p])||0===o)if("object"===s(o))Tt.merge(h,o.nodeType?[o]:o);else if(he.test(o)){for(a=a||d.appendChild(e.createElement("div")),u=(ce.exec(o)||["",""])[1].toLowerCase(),l=de[u]||de._default,a.innerHTML=l[1]+Tt.htmlPrefilter(o)+l[2],f=l[0];f--;)a=a.lastChild;Tt.merge(h,a.childNodes),a=d.firstChild,a.textContent=""}else h.push(e.createTextNode(o));for(d.textContent="",p=0;o=h[p++];)if(r&&Tt.inArray(o,r)>-1)i&&i.push(o);else if(c=oe(o),a=E(d.appendChild(o),"script"),c&&T(a),n)for(f=0;o=a[f++];)fe.test(o.type||"")&&n.push(o);return d}function O(){return!0}function P(){return!1}function N(t,e,n,r,i,o){var a,s;if("object"==typeof e){"string"!=typeof n&&(r=r||n,n=void 0);for(s in e)N(t,s,n,r,e[s],o);return t}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=P;else if(!i)return t;return 1===o&&(a=i,i=function(t){return Tt().off(t),a.apply(this,arguments)},i.guid=a.guid||(a.guid=Tt.guid++)),t.each(function(){Tt.event.add(this,e,i,r,n)})}function D(t,e,n){if(!n)return void(void 0===Jt.get(t,e)&&Tt.event.add(t,e,O));Jt.set(t,e,!1),Tt.event.add(t,e,{namespace:!1,handler:function(t){var n,r=Jt.get(this,e);if(1&t.isTrigger&&this[e]){if(r)(Tt.event.special[e]||{}).delegateType&&t.stopPropagation();else if(r=dt.call(arguments),Jt.set(this,e,r),this[e](),n=Jt.get(this,e),Jt.set(this,e,!1),r!==n)return t.stopImmediatePropagation(),t.preventDefault(),n}else r&&(Jt.set(this,e,Tt.event.trigger(r[0],r.slice(1),this)),t.stopPropagation(),t.isImmediatePropagationStopped=O)}})}function M(t,e){return l(t,"table")&&l(11!==e.nodeType?e:e.firstChild,"tr")?Tt(t).children("tbody")[0]||t:t}function I(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function R(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function $(t,e){var n,r,i,o,a,s,u;if(1===e.nodeType){if(Jt.hasData(t)&&(o=Jt.get(t),u=o.events)){Jt.remove(e,"handle events");for(i in u)for(n=0,r=u[i].length;n<r;n++)Tt.event.add(e,i,u[i][n])}Qt.hasData(t)&&(a=Qt.access(t),s=Tt.extend({},a),Qt.set(e,s))}}function L(t,e){var n=e.nodeName.toLowerCase();"input"===n&&le.test(t.type)?e.checked=t.checked:"input"!==n&&"textarea"!==n||(e.defaultValue=t.defaultValue)}function j(t,e,n,r){e=ht(e);var i,o,s,u,l,c,f=0,d=t.length,h=d-1,p=e[0],g=xt(p);if(g||d>1&&"string"==typeof p&&!wt.checkClone&&me.test(p))return t.each(function(i){var o=t.eq(i);g&&(e[0]=p.call(this,i,o.html())),j(o,e,n,r)});if(d&&(i=A(e,t[0].ownerDocument,!1,t,r),o=i.firstChild,1===i.childNodes.length&&(i=o),o||r)){for(s=Tt.map(E(i,"script"),I),u=s.length;f<d;f++)l=i,f!==h&&(l=Tt.clone(l,!0,!0),u&&Tt.merge(s,E(l,"script"))),n.call(t[f],l,f);if(u)for(c=s[s.length-1].ownerDocument,Tt.map(s,R),f=0;f<u;f++)l=s[f],fe.test(l.type||"")&&!Jt.access(l,"globalEval")&&Tt.contains(c,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?Tt._evalUrl&&!l.noModule&&Tt._evalUrl(l.src,{nonce:l.nonce||l.getAttribute("nonce")},c):a(l.textContent.replace(ve,""),l,c))}return t}function F(t,e,n){for(var r,i=e?Tt.filter(e,t):t,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||Tt.cleanData(E(r)),r.parentNode&&(n&&oe(r)&&T(E(r,"script")),r.parentNode.removeChild(r));return t}function B(t,e,n){var r,i,o,a,s=be.test(e),u=t.style;return n=n||_e(t),n&&(a=n.getPropertyValue(e)||n[e],s&&a&&(a=a.replace(Dt,"$1")||void 0),""!==a||oe(t)||(a=Tt.style(t,e)),!wt.pixelBoxStyles()&&ye.test(a)&&xe.test(e)&&(r=u.width,i=u.minWidth,o=u.maxWidth,u.minWidth=u.maxWidth=u.width=a,a=n.width,u.width=r,u.minWidth=i,u.maxWidth=o)),void 0!==a?a+"":a}function V(t,e){return{get:function(){return t()?void delete this.get:(this.get=e).apply(this,arguments)}}}function z(t){for(var e=t[0].toUpperCase()+t.slice(1),n=ke.length;n--;)if((t=ke[n]+e)in Se)return t}function U(t){var e=Tt.cssProps[t]||Ce[t];return e||(t in Se?t:Ce[t]=z(t)||t)}function H(t,e,n){var r=ne.exec(e);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):e}function q(t,e,n,r,i,o){var a="width"===e?1:0,s=0,u=0,l=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(l+=Tt.css(t,n+re[a],!0,i)),r?("content"===n&&(u-=Tt.css(t,"padding"+re[a],!0,i)),"margin"!==n&&(u-=Tt.css(t,"border"+re[a]+"Width",!0,i))):(u+=Tt.css(t,"padding"+re[a],!0,i),"padding"!==n?u+=Tt.css(t,"border"+re[a]+"Width",!0,i):s+=Tt.css(t,"border"+re[a]+"Width",!0,i));return!r&&o>=0&&(u+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-o-u-s-.5))||0),u+l}function W(t,e,n){var r=_e(t),i=!wt.boxSizingReliable()||n,o=i&&"border-box"===Tt.css(t,"boxSizing",!1,r),a=o,s=B(t,e,r),u="offset"+e[0].toUpperCase()+e.slice(1);if(ye.test(s)){if(!n)return s;s="auto"}return(!wt.boxSizingReliable()&&o||!wt.reliableTrDimensions()&&l(t,"tr")||"auto"===s||!parseFloat(s)&&"inline"===Tt.css(t,"display",!1,r))&&t.getClientRects().length&&(o="border-box"===Tt.css(t,"boxSizing",!1,r),(a=u in t)&&(s=t[u])),(s=parseFloat(s)||0)+q(t,e,n||(o?"border":"content"),a,r,s)+"px"}function G(t,e,n,r,i){return new G.prototype.init(t,e,n,r,i)}function Y(){Pe&&(!1===St.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(Y):n.setTimeout(Y,Tt.fx.interval),Tt.fx.tick())}function K(){return n.setTimeout(function(){Oe=void 0}),Oe=Date.now()}function X(t,e){var n,r=0,i={height:t};for(e=e?1:0;r<4;r+=2-e)n=re[r],i["margin"+n]=i["padding"+n]=t;return e&&(i.opacity=i.width=t),i}function J(t,e,n){for(var r,i=(tt.tweeners[e]||[]).concat(tt.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,e,t))return r}function Q(t,e,n){var r,i,o,a,s,u,l,c,f="width"in e||"height"in e,d=this,h={},p=t.style,g=t.nodeType&&se(t),m=Jt.get(t,"fxshow");n.queue||(a=Tt._queueHooks(t,"fx"),null==a.unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,d.always(function(){d.always(function(){a.unqueued--,Tt.queue(t,"fx").length||a.empty.fire()})}));for(r in e)if(i=e[r],Ne.test(i)){if(delete e[r],o=o||"toggle"===i,i===(g?"hide":"show")){if("show"!==i||!m||void 0===m[r])continue;g=!0}h[r]=m&&m[r]||Tt.style(t,r)}if((u=!Tt.isEmptyObject(e))||!Tt.isEmptyObject(h)){f&&1===t.nodeType&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],l=m&&m.display,null==l&&(l=Jt.get(t,"display")),c=Tt.css(t,"display"),"none"===c&&(l?c=l:(C([t],!0),l=t.style.display||l,c=Tt.css(t,"display"),C([t]))),("inline"===c||"inline-block"===c&&null!=l)&&"none"===Tt.css(t,"float")&&(u||(d.done(function(){p.display=l}),null==l&&(c=p.display,l="none"===c?"":c)),p.display="inline-block")),n.overflow&&(p.overflow="hidden",d.always(function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]})),u=!1;for(r in h)u||(m?"hidden"in m&&(g=m.hidden):m=Jt.access(t,"fxshow",{display:l}),o&&(m.hidden=!g),g&&C([t],!0),d.done(function(){g||C([t]),Jt.remove(t,"fxshow");for(r in h)Tt.style(t,r,h[r])})),u=J(g?m[r]:0,r,d),r in m||(m[r]=u.start,g&&(u.end=u.start,u.start=0))}}function Z(t,e){var n,r,i,o,a;for(n in t)if(r=b(n),i=e[r],o=t[n],Array.isArray(o)&&(i=o[1],o=t[n]=o[0]),n!==r&&(t[r]=o,delete t[n]),(a=Tt.cssHooks[r])&&"expand"in a){o=a.expand(o),delete t[r];for(n in o)n in t||(t[n]=o[n],e[n]=i)}else e[r]=i}function tt(t,e,n){var r,i,o=0,a=tt.prefilters.length,s=Tt.Deferred().always(function(){delete u.elem}),u=function(){if(i)return!1;for(var e=Oe||K(),n=Math.max(0,l.startTime+l.duration-e),r=n/l.duration||0,o=1-r,a=0,u=l.tweens.length;a<u;a++)l.tweens[a].run(o);return s.notifyWith(t,[l,o,n]),o<1&&u?n:(u||s.notifyWith(t,[l,1,0]),s.resolveWith(t,[l]),!1)},l=s.promise({elem:t,props:Tt.extend({},e),opts:Tt.extend(!0,{specialEasing:{},easing:Tt.easing._default},n),originalProperties:e,originalOptions:n,startTime:Oe||K(),duration:n.duration,tweens:[],createTween:function(e,n){var r=Tt.Tween(t,l.opts,e,n,l.opts.specialEasing[e]||l.opts.easing);return l.tweens.push(r),r},stop:function(e){var n=0,r=e?l.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)l.tweens[n].run(1);return e?(s.notifyWith(t,[l,1,0]),s.resolveWith(t,[l,e])):s.rejectWith(t,[l,e]),this}}),c=l.props;for(Z(c,l.opts.specialEasing);o<a;o++)if(r=tt.prefilters[o].call(l,t,c,l.opts))return xt(r.stop)&&(Tt._queueHooks(l.elem,l.opts.queue).stop=r.stop.bind(r)),r;return Tt.map(c,J,l),xt(l.opts.start)&&l.opts.start.call(t,l),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always),Tt.fx.timer(Tt.extend(u,{elem:t,anim:l,queue:l.opts.queue})),l}function et(t){return(t.match(Ht)||[]).join(" ")}function nt(t){return t.getAttribute&&t.getAttribute("class")||""}function rt(t){return Array.isArray(t)?t:"string"==typeof t?t.match(Ht)||[]:[]}function it(t,e,n,r){var i;if(Array.isArray(e))Tt.each(e,function(e,i){n||Ue.test(t)?r(t,i):it(t+"["+("object"==typeof i&&null!=i?e:"")+"]",i,n,r)});else if(n||"object"!==s(e))r(t,e);else for(i in e)it(t+"["+i+"]",e[i],n,r)}function ot(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var r,i=0,o=e.toLowerCase().match(Ht)||[];if(xt(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(t[r]=t[r]||[]).unshift(n)):(t[r]=t[r]||[]).push(n)}}function at(t,e,n,r){function i(s){var u;return o[s]=!0,Tt.each(t[s]||[],function(t,s){var l=s(e,n,r);return"string"!=typeof l||a||o[l]?a?!(u=l):void 0:(e.dataTypes.unshift(l),i(l),!1)}),u}var o={},a=t===en;return i(e.dataTypes[0])||!o["*"]&&i("*")}function st(t,e){var n,r,i=Tt.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((i[n]?t:r||(r={}))[n]=e[n]);return r&&Tt.extend(!0,t,r),t}function ut(t,e,n){for(var r,i,o,a,s=t.contents,u=t.dataTypes;"*"===u[0];)u.shift(),void 0===r&&(r=t.mimeType||e.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){u.unshift(i);break}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||t.converters[i+" "+u[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==u[0]&&u.unshift(o),n[o]}function lt(t,e,n,r){var i,o,a,s,u,l={},c=t.dataTypes.slice();if(c[1])for(a in t.converters)l[a.toLowerCase()]=t.converters[a];for(o=c.shift();o;)if(t.responseFields[o]&&(n[t.responseFields[o]]=e),!u&&r&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),u=o,o=c.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(!(a=l[u+" "+o]||l["* "+o]))for(i in l)if(s=i.split(" "),s[1]===o&&(a=l[u+" "+s[0]]||l["* "+s[0]])){!0===a?a=l[i]:!0!==l[i]&&(o=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&t.throws)e=a(e);else try{e=a(e)}catch(t){return{state:"parsererror",error:a?t:"No conversion from "+u+" to "+o}}}return{state:"success",data:e}}var ct=[],ft=Object.getPrototypeOf,dt=ct.slice,ht=ct.flat?function(t){return ct.flat.call(t)}:function(t){return ct.concat.apply([],t)},pt=ct.push,gt=ct.indexOf,mt={},vt=mt.toString,yt=mt.hasOwnProperty,bt=yt.toString,_t=bt.call(Object),wt={},xt=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType&&"function"!=typeof t.item},kt=function(t){return null!=t&&t===t.window},St=n.document,Ct={type:!0,src:!0,nonce:!0,noModule:!0},Et=/HTML$/i,Tt=function(t,e){return new Tt.fn.init(t,e)};Tt.fn=Tt.prototype={jquery:"3.7.1",constructor:Tt,length:0,toArray:function(){return dt.call(this)},get:function(t){return null==t?dt.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=Tt.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return Tt.each(this,t)},map:function(t){return this.pushStack(Tt.map(this,function(e,n){return t.call(e,n,e)}))},slice:function(){return this.pushStack(dt.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(Tt.grep(this,function(t,e){return(e+1)%2}))},odd:function(){return this.pushStack(Tt.grep(this,function(t,e){return e%2}))},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(n>=0&&n<e?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:pt,sort:ct.sort,splice:ct.splice},Tt.extend=Tt.fn.extend=function(){var t,e,n,r,i,o,a=arguments[0]||{},s=1,u=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[s]||{},s++),"object"==typeof a||xt(a)||(a={}),s===u&&(a=this,s--);s<u;s++)if(null!=(t=arguments[s]))for(e in t)r=t[e],"__proto__"!==e&&a!==r&&(l&&r&&(Tt.isPlainObject(r)||(i=Array.isArray(r)))?(n=a[e],o=i&&!Array.isArray(n)?[]:i||Tt.isPlainObject(n)?n:{},i=!1,a[e]=Tt.extend(l,o,r)):void 0!==r&&(a[e]=r));return a},Tt.extend({expando:"jQuery"+("3.7.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isPlainObject:function(t){var e,n;return!(!t||"[object Object]"!==vt.call(t))&&(!(e=ft(t))||"function"==typeof(n=yt.call(e,"constructor")&&e.constructor)&&bt.call(n)===_t)},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},globalEval:function(t,e,n){a(t,{nonce:e&&e.nonce},n)},each:function(t,e){var n,r=0;if(u(t))for(n=t.length;r<n&&!1!==e.call(t[r],r,t[r]);r++);else for(r in t)if(!1===e.call(t[r],r,t[r]))break;return t},text:function(t){var e,n="",r=0,i=t.nodeType;if(!i)for(;e=t[r++];)n+=Tt.text(e);return 1===i||11===i?t.textContent:9===i?t.documentElement.textContent:3===i||4===i?t.nodeValue:n},makeArray:function(t,e){var n=e||[];return null!=t&&(u(Object(t))?Tt.merge(n,"string"==typeof t?[t]:t):pt.call(n,t)),n},inArray:function(t,e,n){return null==e?-1:gt.call(e,t,n)},isXMLDoc:function(t){var e=t&&t.namespaceURI,n=t&&(t.ownerDocument||t).documentElement;return!Et.test(e||n&&n.nodeName||"HTML")},merge:function(t,e){for(var n=+e.length,r=0,i=t.length;r<n;r++)t[i++]=e[r];return t.length=i,t},grep:function(t,e,n){for(var r=[],i=0,o=t.length,a=!n;i<o;i++)!e(t[i],i)!==a&&r.push(t[i]);return r},map:function(t,e,n){var r,i,o=0,a=[];if(u(t))for(r=t.length;o<r;o++)null!=(i=e(t[o],o,n))&&a.push(i);else for(o in t)null!=(i=e(t[o],o,n))&&a.push(i);return ht(a)},guid:1,support:wt}),"function"==typeof Symbol&&(Tt.fn[Symbol.iterator]=ct[Symbol.iterator]),Tt.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(t,e){mt["[object "+e+"]"]=e.toLowerCase()});var At=ct.pop,Ot=ct.sort,Pt=ct.splice,Nt="[\\x20\\t\\r\\n\\f]",Dt=new RegExp("^"+Nt+"+|((?:^|[^\\\\])(?:\\\\.)*)"+Nt+"+$","g");Tt.contains=function(t,e){var n=e&&e.parentNode;return t===n||!(!n||1!==n.nodeType||!(t.contains?t.contains(n):t.compareDocumentPosition&&16&t.compareDocumentPosition(n)))};var Mt=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;Tt.escapeSelector=function(t){return(t+"").replace(Mt,c)};var It=St,Rt=pt;!function(){function t(){try{return A.activeElement}catch(t){}}function e(t,n,r,i){var o,a,s,l,f,p,g,m=n&&n.ownerDocument,v=n?n.nodeType:9;if(r=r||[],"string"!=typeof t||!t||1!==v&&9!==v&&11!==v)return r;if(!i&&(c(n),n=n||A,P)){if(11!==v&&(f=et.exec(t)))if(o=f[1]){if(9===v){if(!(s=n.getElementById(o)))return r;if(s.id===o)return M.call(r,s),r}else if(m&&(s=m.getElementById(o))&&e.contains(n,s)&&s.id===o)return M.call(r,s),r}else{if(f[2])return M.apply(r,n.getElementsByTagName(t)),r;if((o=f[3])&&n.getElementsByClassName)return M.apply(r,n.getElementsByClassName(o)),r}if(!(B[t+" "]||N&&N.test(t))){if(g=t,m=n,1===v&&(K.test(t)||Y.test(t))){for(m=nt.test(t)&&u(n.parentNode)||n,m==n&&wt.scope||((l=n.getAttribute("id"))?l=Tt.escapeSelector(l):n.setAttribute("id",l=I)),p=d(t),a=p.length;a--;)p[a]=(l?"#"+l:":scope")+" "+h(p[a]);g=p.join(",")}try{return M.apply(r,m.querySelectorAll(g)),r}catch(e){B(t,!0)}finally{l===I&&n.removeAttribute("id")}}}return x(t.replace(Dt,"$1"),n,r,i)}function r(){function t(n,r){return e.push(n+" ")>S.cacheLength&&delete t[e.shift()],t[n+" "]=r}var e=[];return t}function i(t){return t[I]=!0,t}function o(t){var e=A.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function a(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&at(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function s(t){return i(function(e){return e=+e,i(function(n,r){for(var i,o=t([],n.length,e),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))})})}function u(t){return t&&void 0!==t.getElementsByTagName&&t}function c(t){var n,r=t?t.ownerDocument||t:It;return r!=A&&9===r.nodeType&&r.documentElement?(A=r,O=A.documentElement,P=!Tt.isXMLDoc(A),D=O.matches||O.webkitMatchesSelector||O.msMatchesSelector,O.msMatchesSelector&&It!=A&&(n=A.defaultView)&&n.top!==n&&n.addEventListener("unload",ot),wt.getById=o(function(t){return O.appendChild(t).id=Tt.expando,!A.getElementsByName||!A.getElementsByName(Tt.expando).length}),wt.disconnectedMatch=o(function(t){return D.call(t,"*")}),wt.scope=o(function(){return A.querySelectorAll(":scope")}),wt.cssHas=o(function(){try{return A.querySelector(":has(*,:jqfake)"),!1}catch(t){return!0}}),wt.getById?(S.filter.ID=function(t){var e=t.replace(rt,it);return function(t){return t.getAttribute("id")===e}},S.find.ID=function(t,e){if(void 0!==e.getElementById&&P){var n=e.getElementById(t);return n?[n]:[]}}):(S.filter.ID=function(t){var e=t.replace(rt,it);return function(t){var n=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}},S.find.ID=function(t,e){if(void 0!==e.getElementById&&P){var n,r,i,o=e.getElementById(t);if(o){if((n=o.getAttributeNode("id"))&&n.value===t)return[o];for(i=e.getElementsByName(t),r=0;o=i[r++];)if((n=o.getAttributeNode("id"))&&n.value===t)return[o]}return[]}}),S.find.TAG=function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):e.querySelectorAll(t)},S.find.CLASS=function(t,e){if(void 0!==e.getElementsByClassName&&P)return e.getElementsByClassName(t)},N=[],o(function(t){var e;O.appendChild(t).innerHTML="<a id='"+I+"' href='' disabled='disabled'></a><select id='"+I+"-\r\\' disabled='disabled'><option selected=''></option></select>",t.querySelectorAll("[selected]").length||N.push("\\["+Nt+"*(?:value|"+z+")"),t.querySelectorAll("[id~="+I+"-]").length||N.push("~="),t.querySelectorAll("a#"+I+"+*").length||N.push(".#.+[+~]"),t.querySelectorAll(":checked").length||N.push(":checked"),e=A.createElement("input"),e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),O.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&N.push(":enabled",":disabled"),e=A.createElement("input"),e.setAttribute("name",""),t.appendChild(e),t.querySelectorAll("[name='']").length||N.push("\\["+Nt+"*name"+Nt+"*="+Nt+"*(?:''|\"\")")}),wt.cssHas||N.push(":has"),N=N.length&&new RegExp(N.join("|")),V=function(t,n){if(t===n)return T=!0,0;var r=!t.compareDocumentPosition-!n.compareDocumentPosition;return r||(r=(t.ownerDocument||t)==(n.ownerDocument||n)?t.compareDocumentPosition(n):1,1&r||!wt.sortDetached&&n.compareDocumentPosition(t)===r?t===A||t.ownerDocument==It&&e.contains(It,t)?-1:n===A||n.ownerDocument==It&&e.contains(It,n)?1:E?gt.call(E,t)-gt.call(E,n):0:4&r?-1:1)},A):A}function f(){}function d(t,n){var r,i,o,a,s,u,l,c=j[t+" "];if(c)return n?0:c.slice(0);for(s=t,u=[],l=S.preFilter;s;){r&&!(i=G.exec(s))||(i&&(s=s.slice(i[0].length)||s),u.push(o=[])),r=!1,(i=Y.exec(s))&&(r=i.shift(),o.push({value:r,type:i[0].replace(Dt," ")}),s=s.slice(r.length));for(a in S.filter)!(i=Q[a].exec(s))||l[a]&&!(i=l[a](i))||(r=i.shift(),o.push({value:r,type:a,matches:i}),s=s.slice(r.length));if(!r)break}return n?s.length:s?e.error(t):j(t,u).slice(0)}function h(t){for(var e=0,n=t.length,r="";e<n;e++)r+=t[e].value;return r}function p(t,e,n){var r=e.dir,i=e.next,o=i||r,a=n&&"parentNode"===o,s=$++;return e.first?function(e,n,i){for(;e=e[r];)if(1===e.nodeType||a)return t(e,n,i);return!1}:function(e,n,u){var c,f,d=[R,s];if(u){for(;e=e[r];)if((1===e.nodeType||a)&&t(e,n,u))return!0}else for(;e=e[r];)if(1===e.nodeType||a)if(f=e[I]||(e[I]={}),i&&l(e,i))e=e[r]||e;else{if((c=f[o])&&c[0]===R&&c[1]===s)return d[2]=c[2];if(f[o]=d,d[2]=t(e,n,u))return!0}return!1}}function g(t){return t.length>1?function(e,n,r){for(var i=t.length;i--;)if(!t[i](e,n,r))return!1;return!0}:t[0]}function m(t,n,r){for(var i=0,o=n.length;i<o;i++)e(t,n[i],r);return r}function v(t,e,n,r,i){for(var o,a=[],s=0,u=t.length,l=null!=e;s<u;s++)(o=t[s])&&(n&&!n(o,r,i)||(a.push(o),l&&e.push(s)));return a}function y(t,e,n,r,o,a){return r&&!r[I]&&(r=y(r)),o&&!o[I]&&(o=y(o,a)),i(function(i,a,s,u){var l,c,f,d,h=[],p=[],g=a.length,y=i||m(e||"*",s.nodeType?[s]:s,[]),b=!t||!i&&e?y:v(y,h,t,s,u);if(n?(d=o||(i?t:g||r)?[]:a,n(b,d,s,u)):d=b,r)for(l=v(d,p),r(l,[],s,u),c=l.length;c--;)(f=l[c])&&(d[p[c]]=!(b[p[c]]=f));if(i){if(o||t){if(o){for(l=[],c=d.length;c--;)(f=d[c])&&l.push(b[c]=f);o(null,d=[],l,u)}for(c=d.length;c--;)(f=d[c])&&(l=o?gt.call(i,f):h[c])>-1&&(i[l]=!(a[l]=f))}}else d=v(d===a?d.splice(g,d.length):d),o?o(null,a,d,u):M.apply(a,d)})}function b(t){for(var e,n,r,i=t.length,o=S.relative[t[0].type],a=o||S.relative[" "],s=o?1:0,u=p(function(t){return t===e},a,!0),l=p(function(t){return gt.call(e,t)>-1},a,!0),c=[function(t,n,r){var i=!o&&(r||n!=C)||((e=n).nodeType?u(t,n,r):l(t,n,r));return e=null,i}];s<i;s++)if(n=S.relative[t[s].type])c=[p(g(c),n)];else{if(n=S.filter[t[s].type].apply(null,t[s].matches),n[I]){for(r=++s;r<i&&!S.relative[t[r].type];r++);return y(s>1&&g(c),s>1&&h(t.slice(0,s-1).concat({value:" "===t[s-2].type?"*":""})).replace(Dt,"$1"),n,s<r&&b(t.slice(s,r)),r<i&&b(t=t.slice(r)),r<i&&h(t))}c.push(n)}return g(c)}function _(t,e){var n=e.length>0,r=t.length>0,o=function(i,o,a,s,u){var l,f,d,h=0,p="0",g=i&&[],m=[],y=C,b=i||r&&S.find.TAG("*",u),_=R+=null==y?1:Math.random()||.1,w=b.length;for(u&&(C=o==A||o||u);p!==w&&null!=(l=b[p]);p++){if(r&&l){for(f=0,o||l.ownerDocument==A||(c(l),a=!P);d=t[f++];)if(d(l,o||A,a)){M.call(s,l);break}u&&(R=_)}n&&((l=!d&&l)&&h--,i&&g.push(l))}if(h+=p,n&&p!==h){for(f=0;d=e[f++];)d(g,m,o,a);if(i){if(h>0)for(;p--;)g[p]||m[p]||(m[p]=At.call(s));m=v(m)}M.apply(s,m),u&&!i&&m.length>0&&h+e.length>1&&Tt.uniqueSort(s)}return u&&(R=_,C=y),g};return n?i(o):o}function w(t,e){var n,r=[],i=[],o=F[t+" "];if(!o){for(e||(e=d(t)),n=e.length;n--;)o=b(e[n]),o[I]?r.push(o):i.push(o);o=F(t,_(i,r)),o.selector=t}return o}function x(t,e,n,r){var i,o,a,s,l,c="function"==typeof t&&t,f=!r&&d(t=c.selector||t);if(n=n||[],1===f.length){if(o=f[0]=f[0].slice(0),o.length>2&&"ID"===(a=o[0]).type&&9===e.nodeType&&P&&S.relative[o[1].type]){if(!(e=(S.find.ID(a.matches[0].replace(rt,it),e)||[])[0]))return n;c&&(e=e.parentNode),t=t.slice(o.shift().value.length)}for(i=Q.needsContext.test(t)?0:o.length;i--&&(a=o[i],!S.relative[s=a.type]);)if((l=S.find[s])&&(r=l(a.matches[0].replace(rt,it),nt.test(o[0].type)&&u(e.parentNode)||e))){if(o.splice(i,1),!(t=r.length&&h(o)))return M.apply(n,r),n;break}}return(c||w(t,f))(r,e,!P,n,!e||nt.test(t)&&u(e.parentNode)||e),n}var k,S,C,E,T,A,O,P,N,D,M=Rt,I=Tt.expando,R=0,$=0,L=r(),j=r(),F=r(),B=r(),V=function(t,e){return t===e&&(T=!0),0},z="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",U="(?:\\\\[\\da-fA-F]{1,6}"+Nt+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",H="\\["+Nt+"*("+U+")(?:"+Nt+"*([*^$|!~]?=)"+Nt+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+U+"))|)"+Nt+"*\\]",q=":("+U+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+H+")*)|.*)\\)|)",W=new RegExp(Nt+"+","g"),G=new RegExp("^"+Nt+"*,"+Nt+"*"),Y=new RegExp("^"+Nt+"*([>+~]|"+Nt+")"+Nt+"*"),K=new RegExp(Nt+"|>"),X=new RegExp(q),J=new RegExp("^"+U+"$"),Q={ID:new RegExp("^#("+U+")"),CLASS:new RegExp("^\\.("+U+")"),TAG:new RegExp("^("+U+"|[*])"),ATTR:new RegExp("^"+H),PSEUDO:new RegExp("^"+q),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+Nt+"*(even|odd|(([+-]|)(\\d*)n|)"+Nt+"*(?:([+-]|)"+Nt+"*(\\d+)|))"+Nt+"*\\)|)","i"),bool:new RegExp("^(?:"+z+")$","i"),needsContext:new RegExp("^"+Nt+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+Nt+"*((?:-\\d)?\\d*)"+Nt+"*\\)|)(?=[^-]|$)","i")},Z=/^(?:input|select|textarea|button)$/i,tt=/^h\d$/i,et=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,nt=/[+~]/,rt=new RegExp("\\\\[\\da-fA-F]{1,6}"+Nt+"?|\\\\([^\\r\\n\\f])","g"),it=function(t,e){var n="0x"+t.slice(1)-65536;return e||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},ot=function(){c()},at=p(function(t){return!0===t.disabled&&l(t,"fieldset")},{dir:"parentNode",next:"legend"});try{M.apply(ct=dt.call(It.childNodes),It.childNodes),ct[It.childNodes.length].nodeType}catch(t){M={apply:function(t,e){Rt.apply(t,dt.call(e))},call:function(t){Rt.apply(t,dt.call(arguments,1))}}}e.matches=function(t,n){return e(t,null,null,n)},e.matchesSelector=function(t,n){if(c(t),P&&!B[n+" "]&&(!N||!N.test(n)))try{var r=D.call(t,n);if(r||wt.disconnectedMatch||t.document&&11!==t.document.nodeType)return r}catch(t){B(n,!0)}return e(n,A,null,[t]).length>0},e.contains=function(t,e){return(t.ownerDocument||t)!=A&&c(t),Tt.contains(t,e)},e.attr=function(t,e){(t.ownerDocument||t)!=A&&c(t);var n=S.attrHandle[e.toLowerCase()],r=n&&yt.call(S.attrHandle,e.toLowerCase())?n(t,e,!P):void 0;return void 0!==r?r:t.getAttribute(e)},e.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},Tt.uniqueSort=function(t){var e,n=[],r=0,i=0;if(T=!wt.sortStable,E=!wt.sortStable&&dt.call(t,0),Ot.call(t,V),T){for(;e=t[i++];)e===t[i]&&(r=n.push(i));for(;r--;)Pt.call(t,n[r],1)}return E=null,t},Tt.fn.uniqueSort=function(){return this.pushStack(Tt.uniqueSort(dt.apply(this)))},S=Tt.expr={cacheLength:50,createPseudo:i,match:Q,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(rt,it),t[3]=(t[3]||t[4]||t[5]||"").replace(rt,it),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||e.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&e.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return Q.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&X.test(n)&&(e=d(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(rt,it).toLowerCase();return"*"===t?function(){return!0}:function(t){return l(t,e)}},CLASS:function(t){var e=L[t+" "];return e||(e=new RegExp("(^|"+Nt+")"+t+"("+Nt+"|$)"))&&L(t,function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(t,n,r){return function(i){var o=e.attr(i,t);return null==o?"!="===n:!n||(o+="","="===n?o===r:"!="===n?o!==r:"^="===n?r&&0===o.indexOf(r):"*="===n?r&&o.indexOf(r)>-1:"$="===n?r&&o.slice(-r.length)===r:"~="===n?(" "+o.replace(W," ")+" ").indexOf(r)>-1:"|="===n&&(o===r||o.slice(0,r.length+1)===r+"-"))}},CHILD:function(t,e,n,r,i){var o="nth"!==t.slice(0,3),a="last"!==t.slice(-4),s="of-type"===e;return 1===r&&0===i?function(t){return!!t.parentNode}:function(e,n,u){var c,f,d,h,p,g=o!==a?"nextSibling":"previousSibling",m=e.parentNode,v=s&&e.nodeName.toLowerCase(),y=!u&&!s,b=!1;if(m){if(o){for(;g;){for(d=e;d=d[g];)if(s?l(d,v):1===d.nodeType)return!1;p=g="only"===t&&!p&&"nextSibling"}return!0}if(p=[a?m.firstChild:m.lastChild],a&&y){for(f=m[I]||(m[I]={}),c=f[t]||[],h=c[0]===R&&c[1],b=h&&c[2],d=h&&m.childNodes[h];d=++h&&d&&d[g]||(b=h=0)||p.pop();)if(1===d.nodeType&&++b&&d===e){f[t]=[R,h,b];break}}else if(y&&(f=e[I]||(e[I]={}),c=f[t]||[],h=c[0]===R&&c[1],b=h),!1===b)for(;(d=++h&&d&&d[g]||(b=h=0)||p.pop())&&((s?!l(d,v):1!==d.nodeType)||!++b||(y&&(f=d[I]||(d[I]={}),f[t]=[R,b]),d!==e)););return(b-=i)===r||b%r==0&&b/r>=0}}},PSEUDO:function(t,n){var r,o=S.pseudos[t]||S.setFilters[t.toLowerCase()]||e.error("unsupported pseudo: "+t);return o[I]?o(n):o.length>1?(r=[t,t,"",n],S.setFilters.hasOwnProperty(t.toLowerCase())?i(function(t,e){for(var r,i=o(t,n),a=i.length;a--;)r=gt.call(t,i[a]),t[r]=!(e[r]=i[a])}):function(t){return o(t,0,r)}):o}},pseudos:{not:i(function(t){var e=[],n=[],r=w(t.replace(Dt,"$1"));return r[I]?i(function(t,e,n,i){for(var o,a=r(t,null,i,[]),s=t.length;s--;)(o=a[s])&&(t[s]=!(e[s]=o))}):function(t,i,o){return e[0]=t,r(e,null,o,n),e[0]=null,!n.pop()}}),has:i(function(t){return function(n){return e(t,n).length>0}}),contains:i(function(t){return t=t.replace(rt,it),function(e){return(e.textContent||Tt.text(e)).indexOf(t)>-1}}),lang:i(function(t){return J.test(t||"")||e.error("unsupported lang: "+t),t=t.replace(rt,it).toLowerCase(),function(e){var n;do{if(n=P?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(n=n.toLowerCase())===t||0===n.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(t){var e=n.location&&n.location.hash;return e&&e.slice(1)===t.id},root:function(t){return t===O},focus:function(e){return e===t()&&A.hasFocus()&&!!(e.type||e.href||~e.tabIndex)},enabled:a(!1),disabled:a(!0),checked:function(t){return l(t,"input")&&!!t.checked||l(t,"option")&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!S.pseudos.empty(t)},header:function(t){return tt.test(t.nodeName)},input:function(t){return Z.test(t.nodeName)},button:function(t){return l(t,"input")&&"button"===t.type||l(t,"button")},text:function(t){var e;return l(t,"input")&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:s(function(){return[0]}),last:s(function(t,e){return[e-1]}),eq:s(function(t,e,n){return[n<0?n+e:n]}),even:s(function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t}),odd:s(function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t}),lt:s(function(t,e,n){var r;for(r=n<0?n+e:n>e?e:n;--r>=0;)t.push(r);return t}),gt:s(function(t,e,n){for(var r=n<0?n+e:n;++r<e;)t.push(r);return t})}},S.pseudos.nth=S.pseudos.eq;for(k in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})S.pseudos[k]=function(t){return function(e){return l(e,"input")&&e.type===t}}(k);for(k in{submit:!0,reset:!0})S.pseudos[k]=function(t){return function(e){return(l(e,"input")||l(e,"button"))&&e.type===t}}(k);f.prototype=S.filters=S.pseudos,S.setFilters=new f,wt.sortStable=I.split("").sort(V).join("")===I,c(),wt.sortDetached=o(function(t){return 1&t.compareDocumentPosition(A.createElement("fieldset"))}),Tt.find=e,Tt.expr[":"]=Tt.expr.pseudos,Tt.unique=Tt.uniqueSort,e.compile=w,e.select=x,e.setDocument=c,e.tokenize=d,e.escape=Tt.escapeSelector,e.getText=Tt.text,e.isXML=Tt.isXMLDoc,e.selectors=Tt.expr,e.support=Tt.support,e.uniqueSort=Tt.uniqueSort}();var $t=function(t,e,n){for(var r=[],i=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(i&&Tt(t).is(n))break;r.push(t)}return r},Lt=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},jt=Tt.expr.match.needsContext,Ft=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;Tt.filter=function(t,e,n){var r=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===r.nodeType?Tt.find.matchesSelector(r,t)?[r]:[]:Tt.find.matches(t,Tt.grep(e,function(t){return 1===t.nodeType}))},Tt.fn.extend({find:function(t){var e,n,r=this.length,i=this;if("string"!=typeof t)return this.pushStack(Tt(t).filter(function(){for(e=0;e<r;e++)if(Tt.contains(i[e],this))return!0}));for(n=this.pushStack([]),e=0;e<r;e++)Tt.find(t,i[e],n);return r>1?Tt.uniqueSort(n):n},filter:function(t){return this.pushStack(f(this,t||[],!1))},not:function(t){return this.pushStack(f(this,t||[],!0))},is:function(t){return!!f(this,"string"==typeof t&&jt.test(t)?Tt(t):t||[],!1).length}});var Bt,Vt=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(Tt.fn.init=function(t,e,n){var r,i;if(!t)return this;if(n=n||Bt,"string"==typeof t){if(!(r="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:Vt.exec(t))||!r[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(r[1]){if(e=e instanceof Tt?e[0]:e,Tt.merge(this,Tt.parseHTML(r[1],e&&e.nodeType?e.ownerDocument||e:St,!0)),Ft.test(r[1])&&Tt.isPlainObject(e))for(r in e)xt(this[r])?this[r](e[r]):this.attr(r,e[r]);return this}return i=St.getElementById(r[2]),i&&(this[0]=i,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):xt(t)?void 0!==n.ready?n.ready(t):t(Tt):Tt.makeArray(t,this)}).prototype=Tt.fn,Bt=Tt(St);var zt=/^(?:parents|prev(?:Until|All))/,Ut={children:!0,contents:!0,next:!0,prev:!0};Tt.fn.extend({has:function(t){var e=Tt(t,this),n=e.length;return this.filter(function(){for(var t=0;t<n;t++)if(Tt.contains(this,e[t]))return!0})},closest:function(t,e){var n,r=0,i=this.length,o=[],a="string"!=typeof t&&Tt(t);if(!jt.test(t))for(;r<i;r++)for(n=this[r];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&Tt.find.matchesSelector(n,t))){o.push(n);break}return this.pushStack(o.length>1?Tt.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?gt.call(Tt(t),this[0]):gt.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(Tt.uniqueSort(Tt.merge(this.get(),Tt(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),Tt.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return $t(t,"parentNode")},parentsUntil:function(t,e,n){return $t(t,"parentNode",n)},next:function(t){return d(t,"nextSibling")},prev:function(t){return d(t,"previousSibling")},nextAll:function(t){return $t(t,"nextSibling")},prevAll:function(t){return $t(t,"previousSibling")},nextUntil:function(t,e,n){return $t(t,"nextSibling",n)},prevUntil:function(t,e,n){return $t(t,"previousSibling",n)},siblings:function(t){return Lt((t.parentNode||{}).firstChild,t)},children:function(t){return Lt(t.firstChild)},contents:function(t){return null!=t.contentDocument&&ft(t.contentDocument)?t.contentDocument:(l(t,"template")&&(t=t.content||t),Tt.merge([],t.childNodes))}},function(t,e){Tt.fn[t]=function(n,r){var i=Tt.map(this,e,n);return"Until"!==t.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=Tt.filter(r,i)),this.length>1&&(Ut[t]||Tt.uniqueSort(i),zt.test(t)&&i.reverse()),this.pushStack(i)}});var Ht=/[^\x20\t\r\n\f]+/g;Tt.Callbacks=function(t){t="string"==typeof t?h(t):Tt.extend({},t);var e,n,r,i,o=[],a=[],u=-1,l=function(){for(i=i||t.once,r=e=!0;a.length;u=-1)for(n=a.shift();++u<o.length;)!1===o[u].apply(n[0],n[1])&&t.stopOnFalse&&(u=o.length,n=!1);t.memory||(n=!1),e=!1,i&&(o=n?[]:"")},c={add:function(){return o&&(n&&!e&&(u=o.length-1,a.push(n)),function e(n){Tt.each(n,function(n,r){xt(r)?t.unique&&c.has(r)||o.push(r):r&&r.length&&"string"!==s(r)&&e(r)})}(arguments),n&&!e&&l()),this},remove:function(){return Tt.each(arguments,function(t,e){for(var n;(n=Tt.inArray(e,o,n))>-1;)o.splice(n,1),n<=u&&u--}),this},has:function(t){return t?Tt.inArray(t,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return i=a=[],o=n="",this},disabled:function(){return!o},lock:function(){return i=a=[],n||e||(o=n=""),this},locked:function(){return!!i},fireWith:function(t,n){return i||(n=n||[],n=[t,n.slice?n.slice():n],a.push(n),e||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!r}};return c},Tt.extend({Deferred:function(t){var e=[["notify","progress",Tt.Callbacks("memory"),Tt.Callbacks("memory"),2],["resolve","done",Tt.Callbacks("once memory"),Tt.Callbacks("once memory"),0,"resolved"],["reject","fail",Tt.Callbacks("once memory"),Tt.Callbacks("once memory"),1,"rejected"]],r="pending",i={state:function(){return r},always:function(){return o.done(arguments).fail(arguments),this},catch:function(t){return i.then(null,t)},pipe:function(){var t=arguments;return Tt.Deferred(function(n){Tt.each(e,function(e,r){var i=xt(t[r[4]])&&t[r[4]];o[r[1]](function(){var t=i&&i.apply(this,arguments);t&&xt(t.promise)?t.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,i?[t]:arguments)})}),t=null}).promise()},then:function(t,r,i){function o(t,e,r,i){return function(){var s=this,u=arguments,l=function(){var n,l;if(!(t<a)){if((n=r.apply(s,u))===e.promise())throw new TypeError("Thenable self-resolution");l=n&&("object"==typeof n||"function"==typeof n)&&n.then,xt(l)?i?l.call(n,o(a,e,p,i),o(a,e,g,i)):(a++,l.call(n,o(a,e,p,i),o(a,e,g,i),o(a,e,p,e.notifyWith))):(r!==p&&(s=void 0,u=[n]),(i||e.resolveWith)(s,u))}},c=i?l:function(){try{l()}catch(n){Tt.Deferred.exceptionHook&&Tt.Deferred.exceptionHook(n,c.error),t+1>=a&&(r!==g&&(s=void 0,u=[n]),e.rejectWith(s,u))}};t?c():(Tt.Deferred.getErrorHook?c.error=Tt.Deferred.getErrorHook():Tt.Deferred.getStackHook&&(c.error=Tt.Deferred.getStackHook()),n.setTimeout(c))}}var a=0;return Tt.Deferred(function(n){e[0][3].add(o(0,n,xt(i)?i:p,n.notifyWith)),e[1][3].add(o(0,n,xt(t)?t:p)),e[2][3].add(o(0,n,xt(r)?r:g))}).promise()},promise:function(t){return null!=t?Tt.extend(t,i):i}},o={};return Tt.each(e,function(t,n){var a=n[2],s=n[5];i[n[1]]=a.add,s&&a.add(function(){r=s},e[3-t][2].disable,e[3-t][3].disable,e[0][2].lock,e[0][3].lock),a.add(n[3].fire),o[n[0]]=function(){return o[n[0]+"With"](this===o?void 0:this,arguments),this},o[n[0]+"With"]=a.fireWith}),i.promise(o),t&&t.call(o,o),o},when:function(t){var e=arguments.length,n=e,r=Array(n),i=dt.call(arguments),o=Tt.Deferred(),a=function(t){return function(n){r[t]=this,i[t]=arguments.length>1?dt.call(arguments):n,--e||o.resolveWith(r,i)}};if(e<=1&&(m(t,o.done(a(n)).resolve,o.reject,!e),"pending"===o.state()||xt(i[n]&&i[n].then)))return o.then();for(;n--;)m(i[n],a(n),o.reject);return o.promise()}});var qt=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;Tt.Deferred.exceptionHook=function(t,e){n.console&&n.console.warn&&t&&qt.test(t.name)&&n.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},Tt.readyException=function(t){n.setTimeout(function(){throw t})};var Wt=Tt.Deferred();Tt.fn.ready=function(t){return Wt.then(t).catch(function(t){Tt.readyException(t)}),this},Tt.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--Tt.readyWait:Tt.isReady)||(Tt.isReady=!0,!0!==t&&--Tt.readyWait>0||Wt.resolveWith(St,[Tt]))}}),Tt.ready.then=Wt.then,"complete"===St.readyState||"loading"!==St.readyState&&!St.documentElement.doScroll?n.setTimeout(Tt.ready):(St.addEventListener("DOMContentLoaded",v),n.addEventListener("load",v));var Gt=function(t,e,n,r,i,o,a){var u=0,l=t.length,c=null==n;if("object"===s(n)){i=!0;for(u in n)Gt(t,e,u,n[u],!0,o,a)}else if(void 0!==r&&(i=!0,xt(r)||(a=!0),c&&(a?(e.call(t,r),e=null):(c=e,e=function(t,e,n){return c.call(Tt(t),n)})),e))for(;u<l;u++)e(t[u],n,a?r:r.call(t[u],u,e(t[u],n)));return i?t:c?e.call(t):l?e(t[0],n):o},Yt=/^-ms-/,Kt=/-([a-z])/g,Xt=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};_.uid=1,_.prototype={cache:function(t){var e=t[this.expando];return e||(e={},Xt(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,n){var r,i=this.cache(t);if("string"==typeof e)i[b(e)]=n;else for(r in e)i[b(r)]=e[r];return i},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][b(e)]},access:function(t,e,n){return void 0===e||e&&"string"==typeof e&&void 0===n?this.get(t,e):(this.set(t,e,n),void 0!==n?n:e)},remove:function(t,e){var n,r=t[this.expando];if(void 0!==r){if(void 0!==e){Array.isArray(e)?e=e.map(b):(e=b(e),e=e in r?[e]:e.match(Ht)||[]),n=e.length;for(;n--;)delete r[e[n]]}(void 0===e||Tt.isEmptyObject(r))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!Tt.isEmptyObject(e)}};var Jt=new _,Qt=new _,Zt=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,te=/[A-Z]/g;Tt.extend({hasData:function(t){return Qt.hasData(t)||Jt.hasData(t)},data:function(t,e,n){return Qt.access(t,e,n)},removeData:function(t,e){Qt.remove(t,e)},_data:function(t,e,n){return Jt.access(t,e,n)},_removeData:function(t,e){Jt.remove(t,e)}}),Tt.fn.extend({data:function(t,e){var n,r,i,o=this[0],a=o&&o.attributes;if(void 0===t){if(this.length&&(i=Qt.get(o),1===o.nodeType&&!Jt.get(o,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&(r=a[n].name,0===r.indexOf("data-")&&(r=b(r.slice(5)),x(o,r,i[r])));Jt.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof t?this.each(function(){Qt.set(this,t)}):Gt(this,function(e){var n;if(o&&void 0===e){if(void 0!==(n=Qt.get(o,t)))return n;if(void 0!==(n=x(o,t)))return n}else this.each(function(){Qt.set(this,t,e)})},null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each(function(){Qt.remove(this,t)})}}),Tt.extend({queue:function(t,e,n){var r;if(t)return e=(e||"fx")+"queue",r=Jt.get(t,e),n&&(!r||Array.isArray(n)?r=Jt.access(t,e,Tt.makeArray(n)):r.push(n)),r||[]},dequeue:function(t,e){e=e||"fx";var n=Tt.queue(t,e),r=n.length,i=n.shift(),o=Tt._queueHooks(t,e),a=function(){Tt.dequeue(t,e)};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===e&&n.unshift("inprogress"),delete o.stop,i.call(t,a,o)),!r&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return Jt.get(t,n)||Jt.access(t,n,{empty:Tt.Callbacks("once memory").add(function(){Jt.remove(t,[e+"queue",n])})})}}),Tt.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length<n?Tt.queue(this[0],t):void 0===e?this:this.each(function(){var n=Tt.queue(this,t,e);Tt._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&Tt.dequeue(this,t)})},dequeue:function(t){return this.each(function(){Tt.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,r=1,i=Tt.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";a--;)(n=Jt.get(o[a],t+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(e)}});var ee=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ne=new RegExp("^(?:([+-])=|)("+ee+")([a-z%]*)$","i"),re=["Top","Right","Bottom","Left"],ie=St.documentElement,oe=function(t){return Tt.contains(t.ownerDocument,t)},ae={composed:!0};ie.getRootNode&&(oe=function(t){return Tt.contains(t.ownerDocument,t)||t.getRootNode(ae)===t.ownerDocument});var se=function(t,e){return t=e||t,"none"===t.style.display||""===t.style.display&&oe(t)&&"none"===Tt.css(t,"display")},ue={};Tt.fn.extend({show:function(){return C(this,!0)},hide:function(){return C(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){se(this)?Tt(this).show():Tt(this).hide()})}});var le=/^(?:checkbox|radio)$/i,ce=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,fe=/^$|^module$|\/(?:java|ecma)script/i;!function(){var t=St.createDocumentFragment(),e=t.appendChild(St.createElement("div")),n=St.createElement("input");n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),e.appendChild(n),wt.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,e.innerHTML="<textarea>x</textarea>",wt.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue,e.innerHTML="<option></option>",wt.option=!!e.lastChild}();var de={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};de.tbody=de.tfoot=de.colgroup=de.caption=de.thead,de.th=de.td,wt.option||(de.optgroup=de.option=[1,"<select multiple='multiple'>","</select>"]);var he=/<|&#?\w+;/,pe=/^([^.]*)(?:\.(.+)|)/;Tt.event={global:{},add:function(t,e,n,r,i){var o,a,s,u,l,c,f,d,h,p,g,m=Jt.get(t);if(Xt(t))for(n.handler&&(o=n,n=o.handler,i=o.selector),i&&Tt.find.matchesSelector(ie,i),n.guid||(n.guid=Tt.guid++),(u=m.events)||(u=m.events=Object.create(null)),(a=m.handle)||(a=m.handle=function(e){return void 0!==Tt&&Tt.event.triggered!==e.type?Tt.event.dispatch.apply(t,arguments):void 0}),e=(e||"").match(Ht)||[""],l=e.length;l--;)s=pe.exec(e[l])||[],h=g=s[1],p=(s[2]||"").split(".").sort(),h&&(f=Tt.event.special[h]||{},h=(i?f.delegateType:f.bindType)||h,f=Tt.event.special[h]||{},c=Tt.extend({type:h,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&Tt.expr.match.needsContext.test(i),namespace:p.join(".")},o),(d=u[h])||(d=u[h]=[],d.delegateCount=0,f.setup&&!1!==f.setup.call(t,r,p,a)||t.addEventListener&&t.addEventListener(h,a)),f.add&&(f.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),i?d.splice(d.delegateCount++,0,c):d.push(c),Tt.event.global[h]=!0)},remove:function(t,e,n,r,i){var o,a,s,u,l,c,f,d,h,p,g,m=Jt.hasData(t)&&Jt.get(t);if(m&&(u=m.events)){for(e=(e||"").match(Ht)||[""],l=e.length;l--;)if(s=pe.exec(e[l])||[],h=g=s[1],p=(s[2]||"").split(".").sort(),h){for(f=Tt.event.special[h]||{},h=(r?f.delegateType:f.bindType)||h,d=u[h]||[],s=s[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=d.length;o--;)c=d[o],!i&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(d.splice(o,1),c.selector&&d.delegateCount--,f.remove&&f.remove.call(t,c));a&&!d.length&&(f.teardown&&!1!==f.teardown.call(t,p,m.handle)||Tt.removeEvent(t,h,m.handle),delete u[h])}else for(h in u)Tt.event.remove(t,h+e[l],n,r,!0);Tt.isEmptyObject(u)&&Jt.remove(t,"handle events")}},dispatch:function(t){var e,n,r,i,o,a,s=new Array(arguments.length),u=Tt.event.fix(t),l=(Jt.get(this,"events")||Object.create(null))[u.type]||[],c=Tt.event.special[u.type]||{};for(s[0]=u,e=1;e<arguments.length;e++)s[e]=arguments[e];if(u.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,u)){for(a=Tt.event.handlers.call(this,u,l),e=0;(i=a[e++])&&!u.isPropagationStopped();)for(u.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!u.isImmediatePropagationStopped();)u.rnamespace&&!1!==o.namespace&&!u.rnamespace.test(o.namespace)||(u.handleObj=o,u.data=o.data,void 0!==(r=((Tt.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,s))&&!1===(u.result=r)&&(u.preventDefault(),u.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,u),u.result}},handlers:function(t,e){var n,r,i,o,a,s=[],u=e.delegateCount,l=t.target;if(u&&l.nodeType&&!("click"===t.type&&t.button>=1))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==t.type||!0!==l.disabled)){for(o=[],a={},n=0;n<u;n++)r=e[n],i=r.selector+" ",void 0===a[i]&&(a[i]=r.needsContext?Tt(i,this).index(l)>-1:Tt.find(i,this,null,[l]).length),a[i]&&o.push(r);o.length&&s.push({elem:l,handlers:o})}return l=this,u<e.length&&s.push({elem:l,handlers:e.slice(u)}),s},addProp:function(t,e){Object.defineProperty(Tt.Event.prototype,t,{enumerable:!0,configurable:!0,get:xt(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(t){return t[Tt.expando]?t:new Tt.Event(t)},special:{load:{noBubble:!0},click:{setup:function(t){var e=this||t;return le.test(e.type)&&e.click&&l(e,"input")&&D(e,"click",!0),!1},trigger:function(t){var e=this||t;return le.test(e.type)&&e.click&&l(e,"input")&&D(e,"click"),!0},_default:function(t){var e=t.target;return le.test(e.type)&&e.click&&l(e,"input")&&Jt.get(e,"click")||l(e,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},Tt.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)},Tt.Event=function(t,e){if(!(this instanceof Tt.Event))return new Tt.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?O:P,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,e&&Tt.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[Tt.expando]=!0},Tt.Event.prototype={constructor:Tt.Event,isDefaultPrevented:P,isPropagationStopped:P,isImmediatePropagationStopped:P,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=O,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=O,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=O,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},Tt.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},Tt.event.addProp),Tt.each({focus:"focusin",blur:"focusout"},function(t,e){function n(t){if(St.documentMode){var n=Jt.get(this,"handle"),r=Tt.event.fix(t);r.type="focusin"===t.type?"focus":"blur",r.isSimulated=!0,n(t),r.target===r.currentTarget&&n(r)}else Tt.event.simulate(e,t.target,Tt.event.fix(t))}Tt.event.special[t]={setup:function(){var r;if(D(this,t,!0),!St.documentMode)return!1;r=Jt.get(this,e),r||this.addEventListener(e,n),Jt.set(this,e,(r||0)+1)},trigger:function(){return D(this,t),!0},teardown:function(){var t;if(!St.documentMode)return!1;t=Jt.get(this,e)-1,t?Jt.set(this,e,t):(this.removeEventListener(e,n),Jt.remove(this,e))},_default:function(e){return Jt.get(e.target,t)},delegateType:e},Tt.event.special[e]={setup:function(){var r=this.ownerDocument||this.document||this,i=St.documentMode?this:r,o=Jt.get(i,e);o||(St.documentMode?this.addEventListener(e,n):r.addEventListener(t,n,!0)),Jt.set(i,e,(o||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,i=St.documentMode?this:r,o=Jt.get(i,e)-1;o?Jt.set(i,e,o):(St.documentMode?this.removeEventListener(e,n):r.removeEventListener(t,n,!0),Jt.remove(i,e))}}}),Tt.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,e){Tt.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,r=this,i=t.relatedTarget,o=t.handleObj;return i&&(i===r||Tt.contains(r,i))||(t.type=o.origType,n=o.handler.apply(this,arguments),t.type=e),n}}}),Tt.fn.extend({on:function(t,e,n,r){return N(this,t,e,n,r)},one:function(t,e,n,r){return N(this,t,e,n,r,1)},off:function(t,e,n){var r,i;if(t&&t.preventDefault&&t.handleObj)return r=t.handleObj,Tt(t.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof t){for(i in t)this.off(i,e,t[i]);return this}return!1!==e&&"function"!=typeof e||(n=e,e=void 0),!1===n&&(n=P),this.each(function(){Tt.event.remove(this,t,n,e)})}});var ge=/<script|<style|<link/i,me=/checked\s*(?:[^=]|=\s*.checked.)/i,ve=/^\s*<!\[CDATA\[|\]\]>\s*$/g;Tt.extend({htmlPrefilter:function(t){return t},clone:function(t,e,n){var r,i,o,a,s=t.cloneNode(!0),u=oe(t);if(!(wt.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||Tt.isXMLDoc(t)))for(a=E(s),o=E(t),r=0,i=o.length;r<i;r++)L(o[r],a[r]);if(e)if(n)for(o=o||E(t),a=a||E(s),r=0,i=o.length;r<i;r++)$(o[r],a[r]);else $(t,s);return a=E(s,"script"),a.length>0&&T(a,!u&&E(t,"script")),s},cleanData:function(t){for(var e,n,r,i=Tt.event.special,o=0;void 0!==(n=t[o]);o++)if(Xt(n)){if(e=n[Jt.expando]){if(e.events)for(r in e.events)i[r]?Tt.event.remove(n,r):Tt.removeEvent(n,r,e.handle);n[Jt.expando]=void 0}n[Qt.expando]&&(n[Qt.expando]=void 0)}}}),Tt.fn.extend({detach:function(t){return F(this,t,!0)},remove:function(t){return F(this,t)},text:function(t){return Gt(this,function(t){return void 0===t?Tt.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)})},null,t,arguments.length)},append:function(){return j(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){M(this,t).appendChild(t)}})},prepend:function(){return j(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=M(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return j(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return j(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(Tt.cleanData(E(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return Tt.clone(this,t,e)})},html:function(t){return Gt(this,function(t){var e=this[0]||{},n=0,r=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!ge.test(t)&&!de[(ce.exec(t)||["",""])[1].toLowerCase()]){t=Tt.htmlPrefilter(t);try{for(;n<r;n++)e=this[n]||{},1===e.nodeType&&(Tt.cleanData(E(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=[];return j(this,arguments,function(e){var n=this.parentNode;Tt.inArray(this,t)<0&&(Tt.cleanData(E(this)),n&&n.replaceChild(e,this))},t)}}),Tt.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){Tt.fn[t]=function(t){for(var n,r=[],i=Tt(t),o=i.length-1,a=0;a<=o;a++)n=a===o?this:this.clone(!0),Tt(i[a])[e](n),pt.apply(r,n.get());return this.pushStack(r)}});var ye=new RegExp("^("+ee+")(?!px)[a-z%]+$","i"),be=/^--/,_e=function(t){var e=t.ownerDocument.defaultView;return e&&e.opener||(e=n),e.getComputedStyle(t)},we=function(t,e,n){var r,i,o={};for(i in e)o[i]=t.style[i],t.style[i]=e[i];r=n.call(t);for(i in e)t.style[i]=o[i];return r},xe=new RegExp(re.join("|"),"i");!function(){function t(){if(c){l.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",c.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",ie.appendChild(l).appendChild(c);var t=n.getComputedStyle(c);r="1%"!==t.top,u=12===e(t.marginLeft),c.style.right="60%",a=36===e(t.right),i=36===e(t.width),c.style.position="absolute",o=12===e(c.offsetWidth/3),ie.removeChild(l),c=null}}function e(t){return Math.round(parseFloat(t))}var r,i,o,a,s,u,l=St.createElement("div"),c=St.createElement("div");c.style&&(c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",wt.clearCloneStyle="content-box"===c.style.backgroundClip,Tt.extend(wt,{boxSizingReliable:function(){return t(),i},pixelBoxStyles:function(){return t(),a},pixelPosition:function(){return t(),r},reliableMarginLeft:function(){return t(),u},scrollboxSize:function(){return t(),o},reliableTrDimensions:function(){var t,e,r,i;return null==s&&(t=St.createElement("table"),e=St.createElement("tr"),r=St.createElement("div"),t.style.cssText="position:absolute;left:-11111px;border-collapse:separate",e.style.cssText="box-sizing:content-box;border:1px solid",e.style.height="1px",r.style.height="9px",r.style.display="block",ie.appendChild(t).appendChild(e).appendChild(r),i=n.getComputedStyle(e),s=parseInt(i.height,10)+parseInt(i.borderTopWidth,10)+parseInt(i.borderBottomWidth,10)===e.offsetHeight,ie.removeChild(t)),s}}))}();var ke=["Webkit","Moz","ms"],Se=St.createElement("div").style,Ce={},Ee=/^(none|table(?!-c[ea]).+)/,Te={position:"absolute",visibility:"hidden",display:"block"},Ae={letterSpacing:"0",fontWeight:"400"};Tt.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=B(t,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(t,e,n,r){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var i,o,a,s=b(e),u=be.test(e),l=t.style;if(u||(e=U(s)),a=Tt.cssHooks[e]||Tt.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(t,!1,r))?i:l[e];o=typeof n,"string"===o&&(i=ne.exec(n))&&i[1]&&(n=k(t,e,i),o="number"),null!=n&&n===n&&("number"!==o||u||(n+=i&&i[3]||(Tt.cssNumber[s]?"":"px")),wt.clearCloneStyle||""!==n||0!==e.indexOf("background")||(l[e]="inherit"),a&&"set"in a&&void 0===(n=a.set(t,n,r))||(u?l.setProperty(e,n):l[e]=n))}},css:function(t,e,n,r){var i,o,a,s=b(e);return be.test(e)||(e=U(s)),a=Tt.cssHooks[e]||Tt.cssHooks[s],a&&"get"in a&&(i=a.get(t,!0,n)),void 0===i&&(i=B(t,e,r)),"normal"===i&&e in Ae&&(i=Ae[e]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),Tt.each(["height","width"],function(t,e){Tt.cssHooks[e]={get:function(t,n,r){if(n)return!Ee.test(Tt.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?W(t,e,r):we(t,Te,function(){return W(t,e,r)})},set:function(t,n,r){var i,o=_e(t),a=!wt.scrollboxSize()&&"absolute"===o.position,s=a||r,u=s&&"border-box"===Tt.css(t,"boxSizing",!1,o),l=r?q(t,e,r,u,o):0;return u&&a&&(l-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(o[e])-q(t,e,"border",!1,o)-.5)),l&&(i=ne.exec(n))&&"px"!==(i[3]||"px")&&(t.style[e]=n,n=Tt.css(t,e)),H(t,n,l)}}}),Tt.cssHooks.marginLeft=V(wt.reliableMarginLeft,function(t,e){if(e)return(parseFloat(B(t,"marginLeft"))||t.getBoundingClientRect().left-we(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}))+"px"}),Tt.each({margin:"",padding:"",border:"Width"},function(t,e){Tt.cssHooks[t+e]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[t+re[r]+e]=o[r]||o[r-2]||o[0];return i}},"margin"!==t&&(Tt.cssHooks[t+e].set=H)}),Tt.fn.extend({css:function(t,e){return Gt(this,function(t,e,n){var r,i,o={},a=0;if(Array.isArray(e)){for(r=_e(t),i=e.length;a<i;a++)o[e[a]]=Tt.css(t,e[a],!1,r);return o}return void 0!==n?Tt.style(t,e,n):Tt.css(t,e)},t,e,arguments.length>1)}}),Tt.Tween=G,G.prototype={constructor:G,init:function(t,e,n,r,i,o){this.elem=t,this.prop=n,this.easing=i||Tt.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=r,this.unit=o||(Tt.cssNumber[n]?"":"px")},cur:function(){var t=G.propHooks[this.prop];return t&&t.get?t.get(this):G.propHooks._default.get(this)},run:function(t){var e,n=G.propHooks[this.prop];return this.options.duration?this.pos=e=Tt.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):G.propHooks._default.set(this),this}},G.prototype.init.prototype=G.prototype,G.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=Tt.css(t.elem,t.prop,""),e&&"auto"!==e?e:0)},set:function(t){Tt.fx.step[t.prop]?Tt.fx.step[t.prop](t):1!==t.elem.nodeType||!Tt.cssHooks[t.prop]&&null==t.elem.style[U(t.prop)]?t.elem[t.prop]=t.now:Tt.style(t.elem,t.prop,t.now+t.unit)}}},G.propHooks.scrollTop=G.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},Tt.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},Tt.fx=G.prototype.init,Tt.fx.step={};var Oe,Pe,Ne=/^(?:toggle|show|hide)$/,De=/queueHooks$/;Tt.Animation=Tt.extend(tt,{tweeners:{"*":[function(t,e){var n=this.createTween(t,e);return k(n.elem,t,ne.exec(e),n),n}]},tweener:function(t,e){xt(t)?(e=t,t=["*"]):t=t.match(Ht);for(var n,r=0,i=t.length;r<i;r++)n=t[r],tt.tweeners[n]=tt.tweeners[n]||[],tt.tweeners[n].unshift(e)},prefilters:[Q],prefilter:function(t,e){e?tt.prefilters.unshift(t):tt.prefilters.push(t)}}),Tt.speed=function(t,e,n){var r=t&&"object"==typeof t?Tt.extend({},t):{complete:n||!n&&e||xt(t)&&t,duration:t,easing:n&&e||e&&!xt(e)&&e};return Tt.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in Tt.fx.speeds?r.duration=Tt.fx.speeds[r.duration]:r.duration=Tt.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){xt(r.old)&&r.old.call(this),r.queue&&Tt.dequeue(this,r.queue)},r},Tt.fn.extend({fadeTo:function(t,e,n,r){return this.filter(se).css("opacity",0).show().end().animate({opacity:e},t,n,r)},animate:function(t,e,n,r){var i=Tt.isEmptyObject(t),o=Tt.speed(e,n,r),a=function(){var e=tt(this,Tt.extend({},t),o);(i||Jt.get(this,"finish"))&&e.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(t,e,n){var r=function(t){var e=t.stop;delete t.stop,e(n)};return"string"!=typeof t&&(n=e,e=t,t=void 0),e&&this.queue(t||"fx",[]),this.each(function(){var e=!0,i=null!=t&&t+"queueHooks",o=Tt.timers,a=Jt.get(this);if(i)a[i]&&a[i].stop&&r(a[i]);else for(i in a)a[i]&&a[i].stop&&De.test(i)&&r(a[i]);for(i=o.length;i--;)o[i].elem!==this||null!=t&&o[i].queue!==t||(o[i].anim.stop(n),e=!1,o.splice(i,1));!e&&n||Tt.dequeue(this,t)})},finish:function(t){return!1!==t&&(t=t||"fx"),this.each(function(){var e,n=Jt.get(this),r=n[t+"queue"],i=n[t+"queueHooks"],o=Tt.timers,a=r?r.length:0;for(n.finish=!0,Tt.queue(this,t,[]),i&&i.stop&&i.stop.call(this,!0),e=o.length;e--;)o[e].elem===this&&o[e].queue===t&&(o[e].anim.stop(!0),o.splice(e,1));for(e=0;e<a;e++)r[e]&&r[e].finish&&r[e].finish.call(this);delete n.finish})}}),Tt.each(["toggle","show","hide"],function(t,e){var n=Tt.fn[e];Tt.fn[e]=function(t,r,i){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(X(e,!0),t,r,i)}}),Tt.each({slideDown:X("show"),slideUp:X("hide"),slideToggle:X("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){Tt.fn[t]=function(t,n,r){return this.animate(e,t,n,r)}}),Tt.timers=[],Tt.fx.tick=function(){var t,e=0,n=Tt.timers;for(Oe=Date.now();e<n.length;e++)(t=n[e])()||n[e]!==t||n.splice(e--,1);n.length||Tt.fx.stop(),Oe=void 0},Tt.fx.timer=function(t){Tt.timers.push(t),Tt.fx.start()},Tt.fx.interval=13,Tt.fx.start=function(){Pe||(Pe=!0,Y())},Tt.fx.stop=function(){Pe=null},Tt.fx.speeds={slow:600,fast:200,_default:400},Tt.fn.delay=function(t,e){return t=Tt.fx?Tt.fx.speeds[t]||t:t,e=e||"fx",this.queue(e,function(e,r){var i=n.setTimeout(e,t);r.stop=function(){n.clearTimeout(i)}})},function(){var t=St.createElement("input"),e=St.createElement("select"),n=e.appendChild(St.createElement("option"));t.type="checkbox",wt.checkOn=""!==t.value,wt.optSelected=n.selected,t=St.createElement("input"),t.value="t",t.type="radio",wt.radioValue="t"===t.value}();var Me,Ie=Tt.expr.attrHandle;Tt.fn.extend({attr:function(t,e){return Gt(this,Tt.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){Tt.removeAttr(this,t)})}}),Tt.extend({attr:function(t,e,n){var r,i,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===t.getAttribute?Tt.prop(t,e,n):(1===o&&Tt.isXMLDoc(t)||(i=Tt.attrHooks[e.toLowerCase()]||(Tt.expr.match.bool.test(e)?Me:void 0)),void 0!==n?null===n?void Tt.removeAttr(t,e):i&&"set"in i&&void 0!==(r=i.set(t,n,e))?r:(t.setAttribute(e,n+""),n):i&&"get"in i&&null!==(r=i.get(t,e))?r:(r=Tt.find.attr(t,e),null==r?void 0:r))},attrHooks:{type:{set:function(t,e){if(!wt.radioValue&&"radio"===e&&l(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,r=0,i=e&&e.match(Ht);if(i&&1===t.nodeType)for(;n=i[r++];)t.removeAttribute(n)}}),Me={set:function(t,e,n){return!1===e?Tt.removeAttr(t,n):t.setAttribute(n,n),n}},Tt.each(Tt.expr.match.bool.source.match(/\w+/g),function(t,e){var n=Ie[e]||Tt.find.attr;Ie[e]=function(t,e,r){var i,o,a=e.toLowerCase();return r||(o=Ie[a],Ie[a]=i,i=null!=n(t,e,r)?a:null,Ie[a]=o),i}});var Re=/^(?:input|select|textarea|button)$/i,$e=/^(?:a|area)$/i;Tt.fn.extend({prop:function(t,e){return Gt(this,Tt.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each(function(){delete this[Tt.propFix[t]||t]})}}),Tt.extend({prop:function(t,e,n){var r,i,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&Tt.isXMLDoc(t)||(e=Tt.propFix[e]||e,i=Tt.propHooks[e]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(t,n,e))?r:t[e]=n:i&&"get"in i&&null!==(r=i.get(t,e))?r:t[e]},propHooks:{tabIndex:{get:function(t){var e=Tt.find.attr(t,"tabindex");return e?parseInt(e,10):Re.test(t.nodeName)||$e.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),wt.optSelected||(Tt.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),Tt.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){Tt.propFix[this.toLowerCase()]=this}),Tt.fn.extend({addClass:function(t){var e,n,r,i,o,a;return xt(t)?this.each(function(e){Tt(this).addClass(t.call(this,e,nt(this)))}):(e=rt(t),e.length?this.each(function(){if(r=nt(this),n=1===this.nodeType&&" "+et(r)+" "){for(o=0;o<e.length;o++)i=e[o],n.indexOf(" "+i+" ")<0&&(n+=i+" ");a=et(n),r!==a&&this.setAttribute("class",a)}}):this)},removeClass:function(t){var e,n,r,i,o,a;return xt(t)?this.each(function(e){Tt(this).removeClass(t.call(this,e,nt(this)))}):arguments.length?(e=rt(t),e.length?this.each(function(){if(r=nt(this),n=1===this.nodeType&&" "+et(r)+" "){for(o=0;o<e.length;o++)for(i=e[o];n.indexOf(" "+i+" ")>-1;)n=n.replace(" "+i+" "," ");a=et(n),r!==a&&this.setAttribute("class",a)}}):this):this.attr("class","")},toggleClass:function(t,e){var n,r,i,o,a=typeof t,s="string"===a||Array.isArray(t);return xt(t)?this.each(function(n){Tt(this).toggleClass(t.call(this,n,nt(this),e),e)}):"boolean"==typeof e&&s?e?this.addClass(t):this.removeClass(t):(n=rt(t),this.each(function(){if(s)for(o=Tt(this),i=0;i<n.length;i++)r=n[i],o.hasClass(r)?o.removeClass(r):o.addClass(r);else void 0!==t&&"boolean"!==a||(r=nt(this),r&&Jt.set(this,"__className__",r),this.setAttribute&&this.setAttribute("class",r||!1===t?"":Jt.get(this,"__className__")||""))}))},hasClass:function(t){var e,n,r=0;for(e=" "+t+" ";n=this[r++];)if(1===n.nodeType&&(" "+et(nt(n))+" ").indexOf(e)>-1)return!0;return!1}});var Le=/\r/g;Tt.fn.extend({val:function(t){var e,n,r,i=this[0];{if(arguments.length)return r=xt(t),this.each(function(n){var i;1===this.nodeType&&(i=r?t.call(this,n,Tt(this).val()):t,null==i?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=Tt.map(i,function(t){return null==t?"":t+""})),(e=Tt.valHooks[this.type]||Tt.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,i,"value")||(this.value=i))});if(i)return(e=Tt.valHooks[i.type]||Tt.valHooks[i.nodeName.toLowerCase()])&&"get"in e&&void 0!==(n=e.get(i,"value"))?n:(n=i.value,"string"==typeof n?n.replace(Le,""):null==n?"":n)}}}),Tt.extend({valHooks:{option:{get:function(t){var e=Tt.find.attr(t,"value");return null!=e?e:et(Tt.text(t))}},select:{get:function(t){var e,n,r,i=t.options,o=t.selectedIndex,a="select-one"===t.type,s=a?null:[],u=a?o+1:i.length;for(r=o<0?u:a?o:0;r<u;r++)if(n=i[r],(n.selected||r===o)&&!n.disabled&&(!n.parentNode.disabled||!l(n.parentNode,"optgroup"))){if(e=Tt(n).val(),a)return e;s.push(e)}return s},set:function(t,e){for(var n,r,i=t.options,o=Tt.makeArray(e),a=i.length;a--;)r=i[a],(r.selected=Tt.inArray(Tt.valHooks.option.get(r),o)>-1)&&(n=!0);return n||(t.selectedIndex=-1),o}}}}),Tt.each(["radio","checkbox"],function(){Tt.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=Tt.inArray(Tt(t).val(),e)>-1}},wt.checkOn||(Tt.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})});var je=n.location,Fe={guid:Date.now()},Be=/\?/;Tt.parseXML=function(t){var e,r;if(!t||"string"!=typeof t)return null;try{e=(new n.DOMParser).parseFromString(t,"text/xml")}catch(t){}return r=e&&e.getElementsByTagName("parsererror")[0],e&&!r||Tt.error("Invalid XML: "+(r?Tt.map(r.childNodes,function(t){return t.textContent}).join("\n"):t)),e};var Ve=/^(?:focusinfocus|focusoutblur)$/,ze=function(t){t.stopPropagation()};Tt.extend(Tt.event,{trigger:function(t,e,r,i){var o,a,s,u,l,c,f,d,h=[r||St],p=yt.call(t,"type")?t.type:t,g=yt.call(t,"namespace")?t.namespace.split("."):[];if(a=d=s=r=r||St,3!==r.nodeType&&8!==r.nodeType&&!Ve.test(p+Tt.event.triggered)&&(p.indexOf(".")>-1&&(g=p.split("."),p=g.shift(),g.sort()),l=p.indexOf(":")<0&&"on"+p,t=t[Tt.expando]?t:new Tt.Event(p,"object"==typeof t&&t),t.isTrigger=i?2:3,t.namespace=g.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=r),e=null==e?[t]:Tt.makeArray(e,[t]),f=Tt.event.special[p]||{},i||!f.trigger||!1!==f.trigger.apply(r,e))){if(!i&&!f.noBubble&&!kt(r)){for(u=f.delegateType||p,Ve.test(u+p)||(a=a.parentNode);a;a=a.parentNode)h.push(a),s=a;s===(r.ownerDocument||St)&&h.push(s.defaultView||s.parentWindow||n)}for(o=0;(a=h[o++])&&!t.isPropagationStopped();)d=a,t.type=o>1?u:f.bindType||p,c=(Jt.get(a,"events")||Object.create(null))[t.type]&&Jt.get(a,"handle"),c&&c.apply(a,e),(c=l&&a[l])&&c.apply&&Xt(a)&&(t.result=c.apply(a,e),!1===t.result&&t.preventDefault());return t.type=p,i||t.isDefaultPrevented()||f._default&&!1!==f._default.apply(h.pop(),e)||!Xt(r)||l&&xt(r[p])&&!kt(r)&&(s=r[l],s&&(r[l]=null),Tt.event.triggered=p,t.isPropagationStopped()&&d.addEventListener(p,ze),r[p](),t.isPropagationStopped()&&d.removeEventListener(p,ze),Tt.event.triggered=void 0,s&&(r[l]=s)),t.result}},simulate:function(t,e,n){var r=Tt.extend(new Tt.Event,n,{type:t,isSimulated:!0});Tt.event.trigger(r,null,e)}}),Tt.fn.extend({trigger:function(t,e){return this.each(function(){Tt.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];if(n)return Tt.event.trigger(t,e,n,!0)}});var Ue=/\[\]$/,He=/\r?\n/g,qe=/^(?:submit|button|image|reset|file)$/i,We=/^(?:input|select|textarea|keygen)/i;Tt.param=function(t,e){var n,r=[],i=function(t,e){var n=xt(e)?e():e;r[r.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==n?"":n)};if(null==t)return"";if(Array.isArray(t)||t.jquery&&!Tt.isPlainObject(t))Tt.each(t,function(){i(this.name,this.value)});else for(n in t)it(n,t[n],e,i);return r.join("&")},Tt.fn.extend({serialize:function(){return Tt.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=Tt.prop(this,"elements");return t?Tt.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!Tt(this).is(":disabled")&&We.test(this.nodeName)&&!qe.test(t)&&(this.checked||!le.test(t))}).map(function(t,e){var n=Tt(this).val();return null==n?null:Array.isArray(n)?Tt.map(n,function(t){return{name:e.name,value:t.replace(He,"\r\n")}}):{name:e.name,value:n.replace(He,"\r\n")}}).get()}});var Ge=/%20/g,Ye=/#.*$/,Ke=/([?&])_=[^&]*/,Xe=/^(.*?):[ \t]*([^\r\n]*)$/gm,Je=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Qe=/^(?:GET|HEAD)$/,Ze=/^\/\//,tn={},en={},nn="*/".concat("*"),rn=St.createElement("a");rn.href=je.href,Tt.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:je.href,type:"GET",isLocal:Je.test(je.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":nn,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":Tt.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?st(st(t,Tt.ajaxSettings),e):st(Tt.ajaxSettings,t)},ajaxPrefilter:ot(tn),ajaxTransport:ot(en),ajax:function(t,e){function r(t,e,r,s){var l,d,h,_,w,x=e;c||(c=!0,u&&n.clearTimeout(u),i=void 0,a=s||"",k.readyState=t>0?4:0,l=t>=200&&t<300||304===t,r&&(_=ut(p,k,r)),!l&&Tt.inArray("script",p.dataTypes)>-1&&Tt.inArray("json",p.dataTypes)<0&&(p.converters["text script"]=function(){}),_=lt(p,_,k,l),l?(p.ifModified&&(w=k.getResponseHeader("Last-Modified"),w&&(Tt.lastModified[o]=w),(w=k.getResponseHeader("etag"))&&(Tt.etag[o]=w)),204===t||"HEAD"===p.type?x="nocontent":304===t?x="notmodified":(x=_.state,d=_.data,h=_.error,l=!h)):(h=x,!t&&x||(x="error",t<0&&(t=0))),k.status=t,k.statusText=(e||x)+"",l?v.resolveWith(g,[d,x,k]):v.rejectWith(g,[k,x,h]),k.statusCode(b),b=void 0,f&&m.trigger(l?"ajaxSuccess":"ajaxError",[k,p,l?d:h]),y.fireWith(g,[k,x]),f&&(m.trigger("ajaxComplete",[k,p]),--Tt.active||Tt.event.trigger("ajaxStop")))}"object"==typeof t&&(e=t,t=void 0),e=e||{};var i,o,a,s,u,l,c,f,d,h,p=Tt.ajaxSetup({},e),g=p.context||p,m=p.context&&(g.nodeType||g.jquery)?Tt(g):Tt.event,v=Tt.Deferred(),y=Tt.Callbacks("once memory"),b=p.statusCode||{},_={},w={},x="canceled",k={readyState:0,getResponseHeader:function(t){var e;if(c){if(!s)for(s={};e=Xe.exec(a);)s[e[1].toLowerCase()+" "]=(s[e[1].toLowerCase()+" "]||[]).concat(e[2]);e=s[t.toLowerCase()+" "]}return null==e?null:e.join(", ")},getAllResponseHeaders:function(){return c?a:null},setRequestHeader:function(t,e){return null==c&&(t=w[t.toLowerCase()]=w[t.toLowerCase()]||t,_[t]=e),this},overrideMimeType:function(t){return null==c&&(p.mimeType=t),this},statusCode:function(t){var e;if(t)if(c)k.always(t[k.status]);else for(e in t)b[e]=[b[e],t[e]];return this},abort:function(t){var e=t||x;return i&&i.abort(e),r(0,e),this}};if(v.promise(k),p.url=((t||p.url||je.href)+"").replace(Ze,je.protocol+"//"),p.type=e.method||e.type||p.method||p.type,p.dataTypes=(p.dataType||"*").toLowerCase().match(Ht)||[""],null==p.crossDomain){l=St.createElement("a");try{l.href=p.url,l.href=l.href,p.crossDomain=rn.protocol+"//"+rn.host!=l.protocol+"//"+l.host}catch(t){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=Tt.param(p.data,p.traditional)),at(tn,p,e,k),c)return k;f=Tt.event&&p.global,f&&0==Tt.active++&&Tt.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!Qe.test(p.type),o=p.url.replace(Ye,""),p.hasContent?p.data&&p.processData&&0===(p.contentType||"").indexOf("application/x-www-form-urlencoded")&&(p.data=p.data.replace(Ge,"+")):(h=p.url.slice(o.length),p.data&&(p.processData||"string"==typeof p.data)&&(o+=(Be.test(o)?"&":"?")+p.data,delete p.data),!1===p.cache&&(o=o.replace(Ke,"$1"),h=(Be.test(o)?"&":"?")+"_="+Fe.guid+++h),p.url=o+h),p.ifModified&&(Tt.lastModified[o]&&k.setRequestHeader("If-Modified-Since",Tt.lastModified[o]),Tt.etag[o]&&k.setRequestHeader("If-None-Match",Tt.etag[o])),(p.data&&p.hasContent&&!1!==p.contentType||e.contentType)&&k.setRequestHeader("Content-Type",p.contentType),k.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+nn+"; q=0.01":""):p.accepts["*"]);for(d in p.headers)k.setRequestHeader(d,p.headers[d]);if(p.beforeSend&&(!1===p.beforeSend.call(g,k,p)||c))return k.abort();if(x="abort",y.add(p.complete),k.done(p.success),k.fail(p.error),i=at(en,p,e,k)){if(k.readyState=1,f&&m.trigger("ajaxSend",[k,p]),c)return k;p.async&&p.timeout>0&&(u=n.setTimeout(function(){k.abort("timeout")},p.timeout));try{c=!1,i.send(_,r)}catch(t){if(c)throw t;r(-1,t)}}else r(-1,"No Transport");return k},getJSON:function(t,e,n){return Tt.get(t,e,n,"json")},getScript:function(t,e){return Tt.get(t,void 0,e,"script")}}),Tt.each(["get","post"],function(t,e){Tt[e]=function(t,n,r,i){return xt(n)&&(i=i||r,r=n,n=void 0),Tt.ajax(Tt.extend({url:t,type:e,dataType:i,data:n,success:r},Tt.isPlainObject(t)&&t))}}),Tt.ajaxPrefilter(function(t){var e;for(e in t.headers)"content-type"===e.toLowerCase()&&(t.contentType=t.headers[e]||"")}),Tt._evalUrl=function(t,e,n){return Tt.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){Tt.globalEval(t,e,n)}})},Tt.fn.extend({wrapAll:function(t){var e;return this[0]&&(xt(t)&&(t=t.call(this[0])),e=Tt(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this},wrapInner:function(t){return xt(t)?this.each(function(e){Tt(this).wrapInner(t.call(this,e))}):this.each(function(){var e=Tt(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)})},wrap:function(t){var e=xt(t);return this.each(function(n){Tt(this).wrapAll(e?t.call(this,n):t)})},unwrap:function(t){return this.parent(t).not("body").each(function(){Tt(this).replaceWith(this.childNodes)}),this}}),Tt.expr.pseudos.hidden=function(t){return!Tt.expr.pseudos.visible(t)},Tt.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},Tt.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(t){}};var on={0:200,1223:204},an=Tt.ajaxSettings.xhr();wt.cors=!!an&&"withCredentials"in an,wt.ajax=an=!!an,Tt.ajaxTransport(function(t){var e,r;if(wt.cors||an&&!t.crossDomain)return{send:function(i,o){var a,s=t.xhr();if(s.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(a in t.xhrFields)s[a]=t.xhrFields[a];t.mimeType&&s.overrideMimeType&&s.overrideMimeType(t.mimeType),t.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest");for(a in i)s.setRequestHeader(a,i[a]);e=function(t){return function(){e&&(e=r=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===t?s.abort():"error"===t?"number"!=typeof s.status?o(0,"error"):o(s.status,s.statusText):o(on[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=e(),r=s.onerror=s.ontimeout=e("error"),void 0!==s.onabort?s.onabort=r:s.onreadystatechange=function(){4===s.readyState&&n.setTimeout(function(){e&&r()})},e=e("abort");try{s.send(t.hasContent&&t.data||null)}catch(t){if(e)throw t}},abort:function(){e&&e()}}}),Tt.ajaxPrefilter(function(t){t.crossDomain&&(t.contents.script=!1)}),Tt.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return Tt.globalEval(t),t}}}),Tt.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),Tt.ajaxTransport("script",function(t){if(t.crossDomain||t.scriptAttrs){var e,n;return{send:function(r,i){e=Tt("<script>").attr(t.scriptAttrs||{}).prop({charset:t.scriptCharset,src:t.url}).on("load error",n=function(t){e.remove(),n=null,t&&i("error"===t.type?404:200,t.type)}),St.head.appendChild(e[0])},abort:function(){n&&n()}}}});var sn=[],un=/(=)\?(?=&|$)|\?\?/;Tt.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=sn.pop()||Tt.expando+"_"+Fe.guid++;return this[t]=!0,t}}),Tt.ajaxPrefilter("json jsonp",function(t,e,r){var i,o,a,s=!1!==t.jsonp&&(un.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&un.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return i=t.jsonpCallback=xt(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(un,"$1"+i):!1!==t.jsonp&&(t.url+=(Be.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return a||Tt.error(i+" was not called"),a[0]},t.dataTypes[0]="json",o=n[i],n[i]=function(){a=arguments},r.always(function(){void 0===o?Tt(n).removeProp(i):n[i]=o,t[i]&&(t.jsonpCallback=e.jsonpCallback,sn.push(i)),a&&xt(o)&&o(a[0]),a=o=void 0}),"script"}),wt.createHTMLDocument=function(){var t=St.implementation.createHTMLDocument("").body;return t.innerHTML="<form></form><form></form>",2===t.childNodes.length}(),Tt.parseHTML=function(t,e,n){if("string"!=typeof t)return[];"boolean"==typeof e&&(n=e,e=!1);var r,i,o;return e||(wt.createHTMLDocument?(e=St.implementation.createHTMLDocument(""),r=e.createElement("base"),r.href=St.location.href,e.head.appendChild(r)):e=St),i=Ft.exec(t),o=!n&&[],i?[e.createElement(i[1])]:(i=A([t],e,o),o&&o.length&&Tt(o).remove(),Tt.merge([],i.childNodes))},Tt.fn.load=function(t,e,n){var r,i,o,a=this,s=t.indexOf(" ");return s>-1&&(r=et(t.slice(s)),t=t.slice(0,s)),xt(e)?(n=e,e=void 0):e&&"object"==typeof e&&(i="POST"),a.length>0&&Tt.ajax({url:t,type:i||"GET",dataType:"html",data:e}).done(function(t){o=arguments,a.html(r?Tt("<div>").append(Tt.parseHTML(t)).find(r):t)}).always(n&&function(t,e){a.each(function(){n.apply(this,o||[t.responseText,e,t])})}),this},Tt.expr.pseudos.animated=function(t){return Tt.grep(Tt.timers,function(e){return t===e.elem}).length},Tt.offset={setOffset:function(t,e,n){var r,i,o,a,s,u,l,c=Tt.css(t,"position"),f=Tt(t),d={};"static"===c&&(t.style.position="relative"),s=f.offset(),o=Tt.css(t,"top"),u=Tt.css(t,"left"),l=("absolute"===c||"fixed"===c)&&(o+u).indexOf("auto")>-1,l?(r=f.position(),a=r.top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),xt(e)&&(e=e.call(t,n,Tt.extend({},s))),null!=e.top&&(d.top=e.top-s.top+a),null!=e.left&&(d.left=e.left-s.left+i),"using"in e?e.using.call(t,d):f.css(d)}},Tt.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){Tt.offset.setOffset(this,t,e)});var e,n,r=this[0];if(r)return r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var t,e,n,r=this[0],i={top:0,left:0};if("fixed"===Tt.css(r,"position"))e=r.getBoundingClientRect();else{for(e=this.offset(),n=r.ownerDocument,t=r.offsetParent||n.documentElement;t&&(t===n.body||t===n.documentElement)&&"static"===Tt.css(t,"position");)t=t.parentNode;t&&t!==r&&1===t.nodeType&&(i=Tt(t).offset(),i.top+=Tt.css(t,"borderTopWidth",!0),i.left+=Tt.css(t,"borderLeftWidth",!0))}return{top:e.top-i.top-Tt.css(r,"marginTop",!0),left:e.left-i.left-Tt.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&"static"===Tt.css(t,"position");)t=t.offsetParent;return t||ie})}}),Tt.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,e){var n="pageYOffset"===e;Tt.fn[t]=function(r){return Gt(this,function(t,r,i){var o;if(kt(t)?o=t:9===t.nodeType&&(o=t.defaultView),void 0===i)return o?o[e]:t[r];o?o.scrollTo(n?o.pageXOffset:i,n?i:o.pageYOffset):t[r]=i},t,r,arguments.length)}}),Tt.each(["top","left"],function(t,e){Tt.cssHooks[e]=V(wt.pixelPosition,function(t,n){if(n)return n=B(t,e),ye.test(n)?Tt(t).position()[e]+"px":n})}),Tt.each({Height:"height",Width:"width"},function(t,e){Tt.each({padding:"inner"+t,content:e,"":"outer"+t},function(n,r){Tt.fn[r]=function(i,o){var a=arguments.length&&(n||"boolean"!=typeof i),s=n||(!0===i||!0===o?"margin":"border");return Gt(this,function(e,n,i){var o;return kt(e)?0===r.indexOf("outer")?e["inner"+t]:e.document.documentElement["client"+t]:9===e.nodeType?(o=e.documentElement,Math.max(e.body["scroll"+t],o["scroll"+t],e.body["offset"+t],o["offset"+t],o["client"+t])):void 0===i?Tt.css(e,n,s):Tt.style(e,n,i,s)},e,a?i:void 0,a)}})}),Tt.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){Tt.fn[e]=function(t){return this.on(e,t)}}),Tt.fn.extend({bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,r){return this.on(e,t,n,r)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)},hover:function(t,e){return this.on("mouseenter",t).on("mouseleave",e||t)}}),Tt.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(t,e){Tt.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}});var ln=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;Tt.proxy=function(t,e){var n,r,i;if("string"==typeof e&&(n=t[e],e=t,t=n),xt(t))return r=dt.call(arguments,2),i=function(){return t.apply(e||this,r.concat(dt.call(arguments)))},i.guid=t.guid=t.guid||Tt.guid++,i},Tt.holdReady=function(t){t?Tt.readyWait++:Tt.ready(!0)},Tt.isArray=Array.isArray,Tt.parseJSON=JSON.parse,Tt.nodeName=l,Tt.isFunction=xt,Tt.isWindow=kt,Tt.camelCase=b,Tt.type=s,Tt.now=Date.now,Tt.isNumeric=function(t){var e=Tt.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},Tt.trim=function(t){return null==t?"":(t+"").replace(ln,"$1")},r=[],void 0!==(i=function(){return Tt}.apply(e,r))&&(t.exports=i);var cn=n.jQuery,fn=n.$;return Tt.noConflict=function(t){return n.$===Tt&&(n.$=fn),t&&n.jQuery===Tt&&(n.jQuery=cn),Tt},void 0===o&&(n.jQuery=n.$=Tt),Tt})},function(t,e,n){t.exports=n(920)},function(t,e,n){"use strict";var r=!("undefined"==typeof window||!window.document||!window.document.createElement),i={canUseDOM:r,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:r&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:r&&!!window.screen,isInWorker:!r};t.exports=i},function(t,e){function n(){if(!y){y=!0;var t=navigator.userAgent,e=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(t),n=/(Mac OS X)|(Windows)|(Linux)/.exec(t);if(p=/\b(iPhone|iP[ao]d)/.exec(t),g=/\b(iP[ao]d)/.exec(t),d=/Android/i.exec(t),m=/FBAN\/\w+;/i.exec(t),v=/Mobile/i.exec(t),h=!!/Win64/.exec(t),e){r=e[1]?parseFloat(e[1]):e[5]?parseFloat(e[5]):NaN,r&&document&&document.documentMode&&(r=document.documentMode);var b=/(?:Trident\/(\d+.\d+))/.exec(t);u=b?parseFloat(b[1])+4:r,i=e[2]?parseFloat(e[2]):NaN,o=e[3]?parseFloat(e[3]):NaN,a=e[4]?parseFloat(e[4]):NaN,a?(e=/(?:Chrome\/(\d+\.\d+))/.exec(t),s=e&&e[1]?parseFloat(e[1]):NaN):s=NaN}else r=i=o=s=a=NaN;if(n){if(n[1]){var _=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(t);l=!_||parseFloat(_[1].replace("_","."))}else l=!1;c=!!n[2],f=!!n[3]}else l=c=f=!1}}var r,i,o,a,s,u,l,c,f,d,h,p,g,m,v,y=!1,b={ie:function(){return n()||r},ieCompatibilityMode:function(){return n()||u>r},ie64:function(){return b.ie()&&h},firefox:function(){return n()||i},opera:function(){return n()||o},webkit:function(){return n()||a},safari:function(){return b.webkit()},chrome:function(){return n()||s},windows:function(){return n()||c},osx:function(){return n()||l},linux:function(){return n()||f},iphone:function(){return n()||p},mobile:function(){return n()||p||g||d||v},nativeApp:function(){return n()||m},android:function(){return n()||d},ipad:function(){return n()||g}};t.exports=b},function(t,e,n){"use strict";/**
  64. * Checks if an event is supported in the current execution environment.
  65. *
  66. * NOTE: This will not work correctly for non-generic events such as `change`,
  67. * `reset`, `load`, `error`, and `select`.
  68. *
  69. * Borrows from Modernizr.
  70. *
  71. * @param {string} eventNameSuffix Event name, e.g. "click".
  72. * @param {?boolean} capture Check if the capture phase is supported.
  73. * @return {boolean} True if the event is supported.
  74. * @internal
  75. * @license Modernizr 3.0.0pre (Custom Build) | MIT
  76. */
  77. function r(t,e){if(!o.canUseDOM||e&&!("addEventListener"in document))return!1;var n="on"+t,r=n in document;if(!r){var a=document.createElement("div");a.setAttribute(n,"return;"),r="function"==typeof a[n]}return!r&&i&&"wheel"===t&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}var i,o=n(917);o.canUseDOM&&(i=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("","")),t.exports=r},function(t,e,n){"use strict";function r(t){var e=0,n=0,r=0,i=0;return"detail"in t&&(n=t.detail),"wheelDelta"in t&&(n=-t.wheelDelta/120),"wheelDeltaY"in t&&(n=-t.wheelDeltaY/120),"wheelDeltaX"in t&&(e=-t.wheelDeltaX/120),"axis"in t&&t.axis===t.HORIZONTAL_AXIS&&(e=n,n=0),r=e*a,i=n*a,"deltaY"in t&&(i=t.deltaY),"deltaX"in t&&(r=t.deltaX),(r||i)&&t.deltaMode&&(1==t.deltaMode?(r*=s,i*=s):(r*=u,i*=u)),r&&!e&&(e=r<1?-1:1),i&&!n&&(n=i<1?-1:1),{spinX:e,spinY:n,pixelX:r,pixelY:i}}var i=n(918),o=n(919),a=10,s=40,u=800;r.getEventType=function(){return i.firefox()?"DOMMouseScroll":o("wheel")?"wheel":"mousewheel"},t.exports=r},function(t,e,n){var r,i;!function(o,a){r=a,void 0!==(i="function"==typeof r?r.call(e,n,e,t):r)&&(t.exports=i)}(0,function(){function t(t,e,n){return t<e?e:t>n?n:t}function e(t){return 100*(-1+t)}function n(t,n,r){var i;return i="translate3d"===l.positionUsing?{transform:"translate3d("+e(t)+"%,0,0)"}:"translate"===l.positionUsing?{transform:"translate("+e(t)+"%,0)"}:{"margin-left":e(t)+"%"},i.transition="all "+n+"ms "+r,i}function r(t,e){return("string"==typeof t?t:a(t)).indexOf(" "+e+" ")>=0}function i(t,e){var n=a(t),i=n+e;r(n,e)||(t.className=i.substring(1))}function o(t,e){var n,i=a(t);r(t,e)&&(n=i.replace(" "+e+" "," "),t.className=n.substring(1,n.length-1))}function a(t){return(" "+(t.className||"")+" ").replace(/\s+/gi," ")}function s(t){t&&t.parentNode&&t.parentNode.removeChild(t)}var u={};u.version="0.2.0";var l=u.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};u.configure=function(t){var e,n;for(e in t)void 0!==(n=t[e])&&t.hasOwnProperty(e)&&(l[e]=n);return this},u.status=null,u.set=function(e){var r=u.isStarted();e=t(e,l.minimum,1),u.status=1===e?null:e;var i=u.render(!r),o=i.querySelector(l.barSelector),a=l.speed,s=l.easing;return i.offsetWidth,c(function(t){""===l.positionUsing&&(l.positionUsing=u.getPositioningCSS()),f(o,n(e,a,s)),1===e?(f(i,{transition:"none",opacity:1}),i.offsetWidth,setTimeout(function(){f(i,{transition:"all "+a+"ms linear",opacity:0}),setTimeout(function(){u.remove(),t()},a)},a)):setTimeout(t,a)}),this},u.isStarted=function(){return"number"==typeof u.status},u.start=function(){u.status||u.set(0);var t=function(){setTimeout(function(){u.status&&(u.trickle(),t())},l.trickleSpeed)};return l.trickle&&t(),this},u.done=function(t){return t||u.status?u.inc(.3+.5*Math.random()).set(1):this},u.inc=function(e){var n=u.status;return n?("number"!=typeof e&&(e=(1-n)*t(Math.random()*n,.1,.95)),n=t(n+e,0,.994),u.set(n)):u.start()},u.trickle=function(){return u.inc(Math.random()*l.trickleRate)},function(){var t=0,e=0;u.promise=function(n){return n&&"resolved"!==n.state()?(0===e&&u.start(),t++,e++,n.always(function(){e--,0===e?(t=0,u.done()):u.set((t-e)/t)}),this):this}}(),u.render=function(t){if(u.isRendered())return document.getElementById("nprogress");i(document.documentElement,"nprogress-busy");var n=document.createElement("div");n.id="nprogress",n.innerHTML=l.template;var r,o=n.querySelector(l.barSelector),a=t?"-100":e(u.status||0),c=document.querySelector(l.parent);return f(o,{transition:"all 0 linear",transform:"translate3d("+a+"%,0,0)"}),l.showSpinner||(r=n.querySelector(l.spinnerSelector))&&s(r),c!=document.body&&i(c,"nprogress-custom-parent"),c.appendChild(n),n},u.remove=function(){o(document.documentElement,"nprogress-busy"),o(document.querySelector(l.parent),"nprogress-custom-parent");var t=document.getElementById("nprogress");t&&s(t)},u.isRendered=function(){return!!document.getElementById("nprogress")},u.getPositioningCSS=function(){var t=document.body.style,e="WebkitTransform"in t?"Webkit":"MozTransform"in t?"Moz":"msTransform"in t?"ms":"OTransform"in t?"O":"";return e+"Perspective"in t?"translate3d":e+"Transform"in t?"translate":"margin"};var c=function(){function t(){var n=e.shift();n&&n(t)}var e=[];return function(n){e.push(n),1==e.length&&t()}}(),f=function(){function t(t){return t.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(t,e){return e.toUpperCase()})}function e(t){var e=document.body.style;if(t in e)return t;for(var n,r=i.length,o=t.charAt(0).toUpperCase()+t.slice(1);r--;)if((n=i[r]+o)in e)return n;return t}function n(n){return n=t(n),o[n]||(o[n]=e(n))}function r(t,e,r){e=n(e),t.style[e]=r}var i=["Webkit","O","Moz","ms"],o={};return function(t,e){var n,i,o=arguments;if(2==o.length)for(n in e)void 0!==(i=e[n])&&e.hasOwnProperty(n)&&r(t,n,i);else r(t,o[1],o[2])}}();return u})},function(t,e,n){(function(e){function r(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||nt.call(/e/,e))return e;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof t){var r=t<0?-at(-t):at(t);if(r!==t){var i=String(r),o=Q.call(e,i.length+1);return Z.call(i,n,"$&_")+"."+Z.call(Z.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Z.call(e,n,"$&_")}function i(t,e,n){var r="double"===(n.quoteStyle||e)?'"':"'";return r+t+r}function o(t){return Z.call(String(t),/"/g,"&quot;")}function a(t){return!("[object Array]"!==m(t)||ft&&"object"==typeof t&&ft in t)}function s(t){return!("[object Date]"!==m(t)||ft&&"object"==typeof t&&ft in t)}function u(t){return!("[object RegExp]"!==m(t)||ft&&"object"==typeof t&&ft in t)}function l(t){return!("[object Error]"!==m(t)||ft&&"object"==typeof t&&ft in t)}function c(t){return!("[object String]"!==m(t)||ft&&"object"==typeof t&&ft in t)}function f(t){return!("[object Number]"!==m(t)||ft&&"object"==typeof t&&ft in t)}function d(t){return!("[object Boolean]"!==m(t)||ft&&"object"==typeof t&&ft in t)}function h(t){if(ct)return t&&"object"==typeof t&&t instanceof Symbol;if("symbol"==typeof t)return!0;if(!t||"object"!=typeof t||!lt)return!1;try{return lt.call(t),!0}catch(t){}return!1}function p(t){if(!t||"object"!=typeof t||!st)return!1;try{return st.call(t),!0}catch(t){}return!1}function g(t,e){return vt.call(t,e)}function m(t){return K.call(t)}function v(t){if(t.name)return t.name;var e=J.call(X.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function y(t,e){if(t.indexOf)return t.indexOf(e);for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n;return-1}function b(t){if(!$||!t||"object"!=typeof t)return!1;try{$.call(t);try{B.call(t)}catch(t){return!0}return t instanceof Map}catch(t){}return!1}function _(t){if(!U||!t||"object"!=typeof t)return!1;try{U.call(t,U);try{q.call(t,q)}catch(t){return!0}return t instanceof WeakMap}catch(t){}return!1}function w(t){if(!G||!t||"object"!=typeof t)return!1;try{return G.call(t),!0}catch(t){}return!1}function x(t){if(!B||!t||"object"!=typeof t)return!1;try{B.call(t);try{$.call(t)}catch(t){return!0}return t instanceof Set}catch(t){}return!1}function k(t){if(!q||!t||"object"!=typeof t)return!1;try{q.call(t,q);try{U.call(t,U)}catch(t){return!0}return t instanceof WeakSet}catch(t){}return!1}function S(t){return!(!t||"object"!=typeof t)&&("undefined"!=typeof HTMLElement&&t instanceof HTMLElement||"string"==typeof t.nodeName&&"function"==typeof t.getAttribute)}function C(t,e){if(t.length>e.maxStringLength){var n=t.length-e.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return C(Q.call(t,0,e.maxStringLength),e)+r}return i(Z.call(Z.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,E),"single",e)}function E(t){var e=t.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return n?"\\"+n:"\\x"+(e<16?"0":"")+tt.call(e.toString(16))}function T(t){return"Object("+t+")"}function A(t){return t+" { ? }"}function O(t,e,n,r){return t+" ("+e+") {"+(r?D(n,r):it.call(n,", "))+"}"}function P(t){for(var e=0;e<t.length;e++)if(y(t[e],"\n")>=0)return!1;return!0}function N(t,e){var n;if("\t"===t.indent)n="\t";else{if(!("number"==typeof t.indent&&t.indent>0))return null;n=it.call(Array(t.indent+1)," ")}return{base:n,prev:it.call(Array(e+1),n)}}function D(t,e){if(0===t.length)return"";var n="\n"+e.prev+e.base;return n+it.call(t,","+n)+"\n"+e.prev}function M(t,e){var n=a(t),r=[];if(n){r.length=t.length;for(var i=0;i<t.length;i++)r[i]=g(t,i)?e(t[i],t):""}var o,s="function"==typeof ut?ut(t):[];if(ct){o={};for(var u=0;u<s.length;u++)o["$"+s[u]]=s[u]}for(var l in t)g(t,l)&&(n&&String(Number(l))===l&&l<t.length||ct&&o["$"+l]instanceof Symbol||(nt.call(/[^\w$]/,l)?r.push(e(l,t)+": "+e(t[l],t)):r.push(l+": "+e(t[l],t))));if("function"==typeof ut)for(var c=0;c<s.length;c++)dt.call(t,s[c])&&r.push("["+e(s[c])+"]: "+e(t[s[c]],t));return r}var I="function"==typeof Map&&Map.prototype,R=Object.getOwnPropertyDescriptor&&I?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,$=I&&R&&"function"==typeof R.get?R.get:null,L=I&&Map.prototype.forEach,j="function"==typeof Set&&Set.prototype,F=Object.getOwnPropertyDescriptor&&j?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,B=j&&F&&"function"==typeof F.get?F.get:null,V=j&&Set.prototype.forEach,z="function"==typeof WeakMap&&WeakMap.prototype,U=z?WeakMap.prototype.has:null,H="function"==typeof WeakSet&&WeakSet.prototype,q=H?WeakSet.prototype.has:null,W="function"==typeof WeakRef&&WeakRef.prototype,G=W?WeakRef.prototype.deref:null,Y=Boolean.prototype.valueOf,K=Object.prototype.toString,X=Function.prototype.toString,J=String.prototype.match,Q=String.prototype.slice,Z=String.prototype.replace,tt=String.prototype.toUpperCase,et=String.prototype.toLowerCase,nt=RegExp.prototype.test,rt=Array.prototype.concat,it=Array.prototype.join,ot=Array.prototype.slice,at=Math.floor,st="function"==typeof BigInt?BigInt.prototype.valueOf:null,ut=Object.getOwnPropertySymbols,lt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,ct="function"==typeof Symbol&&"object"==typeof Symbol.iterator,ft="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===ct?"object":"symbol")?Symbol.toStringTag:null,dt=Object.prototype.propertyIsEnumerable,ht=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null),pt=n(1009),gt=pt.custom,mt=h(gt)?gt:null;t.exports=function t(n,E,I,R){function j(e,n,r){if(n&&(R=ot.call(R),R.push(n)),r){var i={depth:F.depth};return g(F,"quoteStyle")&&(i.quoteStyle=F.quoteStyle),t(e,i,I+1,R)}return t(e,F,I+1,R)}var F=E||{};if(g(F,"quoteStyle")&&"single"!==F.quoteStyle&&"double"!==F.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(g(F,"maxStringLength")&&("number"==typeof F.maxStringLength?F.maxStringLength<0&&F.maxStringLength!==1/0:null!==F.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var z=!g(F,"customInspect")||F.customInspect;if("boolean"!=typeof z&&"symbol"!==z)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(g(F,"indent")&&null!==F.indent&&"\t"!==F.indent&&!(parseInt(F.indent,10)===F.indent&&F.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(g(F,"numericSeparator")&&"boolean"!=typeof F.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var U=F.numericSeparator;if(void 0===n)return"undefined";if(null===n)return"null";if("boolean"==typeof n)return n?"true":"false";if("string"==typeof n)return C(n,F);if("number"==typeof n){if(0===n)return 1/0/n>0?"0":"-0";var H=String(n);return U?r(n,H):H}if("bigint"==typeof n){var q=String(n)+"n";return U?r(n,q):q}var W=void 0===F.depth?5:F.depth;if(void 0===I&&(I=0),I>=W&&W>0&&"object"==typeof n)return a(n)?"[Array]":"[Object]";var G=N(F,I);if(void 0===R)R=[];else if(y(R,n)>=0)return"[Circular]";if("function"==typeof n&&!u(n)){var K=v(n),X=M(n,j);return"[Function"+(K?": "+K:" (anonymous)")+"]"+(X.length>0?" { "+it.call(X,", ")+" }":"")}if(h(n)){var J=ct?Z.call(String(n),/^(Symbol\(.*\))_[^)]*$/,"$1"):lt.call(n);return"object"!=typeof n||ct?J:T(J)}if(S(n)){for(var tt="<"+et.call(String(n.nodeName)),nt=n.attributes||[],at=0;at<nt.length;at++)tt+=" "+nt[at].name+"="+i(o(nt[at].value),"double",F);return tt+=">",n.childNodes&&n.childNodes.length&&(tt+="..."),tt+="</"+et.call(String(n.nodeName))+">"}if(a(n)){if(0===n.length)return"[]";var ut=M(n,j);return G&&!P(ut)?"["+D(ut,G)+"]":"[ "+it.call(ut,", ")+" ]"}if(l(n)){var gt=M(n,j);return"cause"in Error.prototype||!("cause"in n)||dt.call(n,"cause")?0===gt.length?"["+String(n)+"]":"{ ["+String(n)+"] "+it.call(gt,", ")+" }":"{ ["+String(n)+"] "+it.call(rt.call("[cause]: "+j(n.cause),gt),", ")+" }"}if("object"==typeof n&&z){if(mt&&"function"==typeof n[mt]&&pt)return pt(n,{depth:W-I});if("symbol"!==z&&"function"==typeof n.inspect)return n.inspect()}if(b(n)){var vt=[];return L&&L.call(n,function(t,e){vt.push(j(e,n,!0)+" => "+j(t,n))}),O("Map",$.call(n),vt,G)}if(x(n)){var yt=[];return V&&V.call(n,function(t){yt.push(j(t,n))}),O("Set",B.call(n),yt,G)}if(_(n))return A("WeakMap");if(k(n))return A("WeakSet");if(w(n))return A("WeakRef");if(f(n))return T(j(Number(n)));if(p(n))return T(j(st.call(n)));if(d(n))return T(Y.call(n));if(c(n))return T(j(String(n)));if("undefined"!=typeof window&&n===window)return"{ [object Window] }";if(n===e)return"{ [object globalThis] }";if(!s(n)&&!u(n)){var bt=M(n,j),_t=ht?ht(n)===Object.prototype:n instanceof Object||n.constructor===Object,wt=n instanceof Object?"":"null prototype",xt=!_t&&ft&&Object(n)===n&&ft in n?Q.call(m(n),8,-1):wt?"Object":"",kt=_t||"function"!=typeof n.constructor?"":n.constructor.name?n.constructor.name+" ":"",St=kt+(xt||wt?"["+it.call(rt.call([],xt||[],wt||[]),": ")+"] ":"");return 0===bt.length?St+"{}":G?St+"{"+D(bt,G)+"}":St+"{ "+it.call(bt,", ")+" }"}return String(n)};var vt=Object.prototype.hasOwnProperty||function(t){return t in this}}).call(e,n(20))},function(t,e,n){!function(e,n){t.exports=n()}(0,function(){return function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var i in t)e.d(r,i,function(e){return t[e]}.bind(null,i));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=0)}([function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"AnnotationLayerBuilder",{enumerable:!0,get:function(){return r.AnnotationLayerBuilder}}),Object.defineProperty(e,"DefaultAnnotationLayerFactory",{enumerable:!0,get:function(){return r.DefaultAnnotationLayerFactory}}),Object.defineProperty(e,"DefaultTextLayerFactory",{enumerable:!0,get:function(){return i.DefaultTextLayerFactory}}),Object.defineProperty(e,"TextLayerBuilder",{enumerable:!0,get:function(){return i.TextLayerBuilder}}),Object.defineProperty(e,"EventBus",{enumerable:!0,get:function(){return o.EventBus}}),Object.defineProperty(e,"NullL10n",{enumerable:!0,get:function(){return o.NullL10n}}),Object.defineProperty(e,"ProgressBar",{enumerable:!0,get:function(){return o.ProgressBar}}),Object.defineProperty(e,"PDFLinkService",{enumerable:!0,get:function(){return a.PDFLinkService}}),Object.defineProperty(e,"SimpleLinkService",{enumerable:!0,get:function(){return a.SimpleLinkService}}),Object.defineProperty(e,"DownloadManager",{enumerable:!0,get:function(){return s.DownloadManager}}),Object.defineProperty(e,"GenericL10n",{enumerable:!0,get:function(){return u.GenericL10n}}),Object.defineProperty(e,"PDFFindController",{enumerable:!0,get:function(){return l.PDFFindController}}),Object.defineProperty(e,"PDFHistory",{enumerable:!0,get:function(){return c.PDFHistory}}),Object.defineProperty(e,"PDFPageView",{enumerable:!0,get:function(){return f.PDFPageView}}),Object.defineProperty(e,"PDFSinglePageViewer",{enumerable:!0,get:function(){return d.PDFSinglePageViewer}}),Object.defineProperty(e,"PDFViewer",{enumerable:!0,get:function(){return h.PDFViewer}});var r=n(1),i=n(8),o=n(3),a=n(7),s=n(9),u=n(11),l=n(13),c=n(15),f=n(16),d=n(18),h=n(20)},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),t}Object.defineProperty(e,"__esModule",{value:!0}),e.DefaultAnnotationLayerFactory=e.AnnotationLayerBuilder=void 0;var a=n(2),s=n(3),u=n(7),l=function(){function t(e){var n=e.pageDiv,i=e.pdfPage,o=e.linkService,a=e.downloadManager,u=e.annotationStorage,l=void 0===u?null:u,c=e.imageResourcesPath,f=void 0===c?"":c,d=e.renderInteractiveForms,h=void 0===d||d,p=e.l10n,g=void 0===p?s.NullL10n:p;r(this,t),this.pageDiv=n,this.pdfPage=i,this.linkService=o,this.downloadManager=a,this.imageResourcesPath=f,this.renderInteractiveForms=h,this.l10n=g,this.annotationStorage=l,this.div=null,this._cancelled=!1}return o(t,[{key:"render",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"display";return this.pdfPage.getAnnotations({intent:n}).then(function(n){if(!e._cancelled&&0!==n.length){var r={viewport:t.clone({dontFlip:!0}),div:e.div,annotations:n,page:e.pdfPage,imageResourcesPath:e.imageResourcesPath,renderInteractiveForms:e.renderInteractiveForms,linkService:e.linkService,downloadManager:e.downloadManager,annotationStorage:e.annotationStorage};e.div?a.AnnotationLayer.update(r):(e.div=document.createElement("div"),e.div.className="annotationLayer",e.pageDiv.appendChild(e.div),r.div=e.div,a.AnnotationLayer.render(r),e.l10n.translate(e.div))}})}},{key:"cancel",value:function(){this._cancelled=!0}},{key:"hide",value:function(){this.div&&this.div.setAttribute("hidden","true")}}]),t}();e.AnnotationLayerBuilder=l;var c=function(){function t(){r(this,t)}return o(t,[{key:"createAnnotationLayerBuilder",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:s.NullL10n;return new l({pageDiv:t,pdfPage:e,imageResourcesPath:r,renderInteractiveForms:i,linkService:new u.SimpleLinkService,l10n:o,annotationStorage:n})}}]),t}();e.DefaultAnnotationLayerFactory=c},function(t,e,r){"use strict";var i;i="undefined"!=typeof window&&window["pdfjs-dist/build/pdf"]?window["pdfjs-dist/build/pdf"]:n(255),t.exports=i},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),t}function a(t){"@babel/helpers - typeof";return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function s(t,e){return d(t)||f(t,e)||l(t,e)||u()}function u(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function l(t,e){if(t){if("string"==typeof t)return c(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(t,e):void 0}}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function f(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}function d(t){if(Array.isArray(t))return t}function h(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}function p(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){function o(t){h(s,r,i,o,a,"next",t)}function a(t){h(s,r,i,o,a,"throw",t)}var s=t.apply(e,n);o(void 0)})}}function g(t,e){return e?t.replace(/\{\{\s*(\w+)\s*\}\}/g,function(t,n){return n in e?e[n]:"{{"+n+"}}"}):t}function m(t){var e=window.devicePixelRatio||1,n=t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1,r=e/n;return{sx:r,sy:r,scaled:1!==r}}function v(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=t.offsetParent;if(!r)return void console.error("offsetParent is not set -- cannot scroll");for(var i=t.offsetTop+t.clientTop,o=t.offsetLeft+t.clientLeft;r.clientHeight===r.scrollHeight&&r.clientWidth===r.scrollWidth||n&&"hidden"===getComputedStyle(r).overflow;)if(r.dataset._scaleY&&(i/=r.dataset._scaleY,o/=r.dataset._scaleX),i+=r.offsetTop,o+=r.offsetLeft,!(r=r.offsetParent))return;e&&(void 0!==e.top&&(i+=e.top),void 0!==e.left&&(o+=e.left,r.scrollLeft=o)),r.scrollTop=i}function y(t,e){var n=function(n){i||(i=window.requestAnimationFrame(function(){i=null;var n=t.scrollLeft,o=r.lastX;n!==o&&(r.right=n>o),r.lastX=n;var a=t.scrollTop,s=r.lastY;a!==s&&(r.down=a>s),r.lastY=a,e(r)}))},r={right:!0,down:!0,lastX:t.scrollLeft,lastY:t.scrollTop,_eventHandler:n},i=null;return t.addEventListener("scroll",n,!0),r}function b(t){for(var e=t.split("&"),n=Object.create(null),r=0,i=e.length;r<i;++r){var o=e[r].split("="),a=o[0].toLowerCase(),s=o.length>1?o[1]:null;n[decodeURIComponent(a)]=decodeURIComponent(s)}return n}function _(t,e){var n=0,r=t.length-1;if(r<0||!e(t[r]))return t.length;if(e(t[n]))return n;for(;n<r;){var i=n+r>>1;e(t[i])?r=i:n=i+1}return n}function w(t){if(Math.floor(t)===t)return[t,1];var e=1/t;if(e>8)return[1,8];if(Math.floor(e)===e)return[1,e];for(var n=t>1?e:t,r=0,i=1,o=1,a=1;;){var s=r+o,u=i+a;if(u>8)break;n<=s/u?(o=s,a=u):(r=s,i=u)}return n-r/i<o/a-n?n===t?[r,i]:[i,r]:n===t?[o,a]:[a,o]}function x(t,e){var n=t%e;return 0===n?t:Math.round(t-n+e)}function k(t){var e=t.view,n=t.userUnit,r=t.rotate,i=s(e,4),o=i[0],a=i[1],u=i[2],l=i[3],c=r%180!=0,f=(u-o)/72*n,d=(l-a)/72*n;return{width:c?d:f,height:c?f:d}}function S(t,e,n){if(t<2)return t;var r=e[t].div,i=r.offsetTop+r.clientTop;i>=n&&(r=e[t-1].div,i=r.offsetTop+r.clientTop);for(var o=t-2;o>=0&&(r=e[o].div,!(r.offsetTop+r.clientTop+r.clientHeight<=i));--o)t=o;return t}function C(t,e){function n(t){var e=t.div;return e.offsetTop+e.clientTop+e.clientHeight>a}function r(t){var e=t.div;return e.offsetLeft+e.clientLeft+e.clientWidth>u}var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=t.scrollTop,s=a+t.clientHeight,u=t.scrollLeft,l=u+t.clientWidth,c=[],f=e.length,d=0===f?0:_(e,o?r:n);d>0&&d<f&&!o&&(d=S(d,e,a));for(var h=o?l:-1,p=d;p<f;p++){var g=e[p],m=g.div,v=m.offsetLeft+m.clientLeft,y=m.offsetTop+m.clientTop,b=m.clientWidth,w=m.clientHeight,x=v+b,k=y+w;if(-1===h)k>=s&&(h=k);else if((o?v:y)>h)break;if(!(k<=a||y>=s||x<=u||v>=l)){var C=Math.max(0,a-y)+Math.max(0,k-s),E=Math.max(0,u-v)+Math.max(0,x-l),T=(w-C)*(b-E)*100/w/b|0;c.push({id:g.id,x:v,y:y,view:g,percent:T})}}var A=c[0],O=c[c.length-1];return i&&c.sort(function(t,e){var n=t.percent-e.percent;return Math.abs(n)>.001?-n:t.id-e.id}),{first:A,last:O,views:c}}function E(t){t.preventDefault()}function T(t){for(var e=0,n=t.length;e<n&&""===t[e].trim();)e++;return"data:"===t.substring(e,e+5).toLowerCase()}function A(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"document.pdf";if("string"!=typeof t)return e;if(T(t))return console.warn('getPDFFileNameFromURL: ignoring "data:" URL for performance reasons.'),e;var n=/^(?:(?:[^:]+:)?\/\/[^\/]+)?([^?#]*)(\?[^#]*)?(#.*)?$/,r=/[^\/?#=]+\.pdf\b(?!.*\.pdf\b)/i,i=n.exec(t),o=r.exec(i[1])||r.exec(i[2])||r.exec(i[3]);if(o&&(o=o[0],o.includes("%")))try{o=r.exec(decodeURIComponent(o))[0]}catch(t){}return o||e}function O(t){var e=Math.sqrt(t.deltaX*t.deltaX+t.deltaY*t.deltaY),n=Math.atan2(t.deltaY,t.deltaX);return-.25*Math.PI<n&&n<.75*Math.PI&&(e=-e),e}function P(t){var e=O(t);return 0===t.deltaMode?e/=900:1===t.deltaMode&&(e/=30),e}function N(t){return Number.isInteger(t)&&t%90==0}function D(t){return Number.isInteger(t)&&Object.values(z).includes(t)&&t!==z.UNKNOWN}function M(t){return Number.isInteger(t)&&Object.values(U).includes(t)&&t!==U.UNKNOWN}function I(t){return t.width<=t.height}function R(t){var e=t.target,n=t.name,r=t.delay,i=void 0===r?0:r;return new Promise(function(t,r){function o(r){e instanceof Y?e._off(n,s):e.removeEventListener(n,s),l&&clearTimeout(l),t(r)}if("object"!==a(e)||!n||"string"!=typeof n||!(Number.isInteger(i)&&i>=0))throw new Error("waitOnEventOrTimeout - invalid parameters.");var s=o.bind(null,W.EVENT);e instanceof Y?e._on(n,s):e.addEventListener(n,s);var u=o.bind(null,W.TIMEOUT),l=setTimeout(u,i)})}function $(t,e,n){return Math.min(Math.max(t,e),n)}function L(t,e){for(var n=[],r=t.length,i=0,o=0;o<r;++o)e(t[o])?n.push(t[o]):(t[i]=t[o],++i);for(var a=0;i<r;++a,++i)t[i]=n[a]}Object.defineProperty(e,"__esModule",{value:!0}),e.isValidRotation=N,e.isValidScrollMode=D,e.isValidSpreadMode=M,e.isPortraitOrientation=I,e.clamp=$,e.getPDFFileNameFromURL=A,e.noContextMenuHandler=E,e.parseQueryString=b,e.backtrackBeforeAllVisibleElements=S,e.getVisibleElements=C,e.roundToDivide=x,e.getPageSizeInches=k,e.approximateFraction=w,e.getOutputScale=m,e.scrollIntoView=v,e.watchScroll=y,e.binarySearchFirstItem=_,e.normalizeWheelEventDirection=O,e.normalizeWheelEventDelta=P,e.waitOnEventOrTimeout=R,e.moveToEndOfArray=L,e.WaitOnType=e.animationStarted=e.ProgressBar=e.EventBus=e.NullL10n=e.SpreadMode=e.ScrollMode=e.TextLayerMode=e.RendererType=e.PresentationModeState=e.VERTICAL_PADDING=e.SCROLLBAR_PADDING=e.MAX_AUTO_SCALE=e.UNKNOWN_SCALE=e.MAX_SCALE=e.MIN_SCALE=e.DEFAULT_SCALE=e.DEFAULT_SCALE_VALUE=e.CSS_UNITS=e.AutoPrintRegExp=void 0;var j=function(t){return t&&t.__esModule?t:{default:t}}(n(4));e.CSS_UNITS=96/72;e.DEFAULT_SCALE_VALUE="auto";e.DEFAULT_SCALE=1;e.MIN_SCALE=.1;e.MAX_SCALE=10;e.UNKNOWN_SCALE=0;e.MAX_AUTO_SCALE=1.25;e.SCROLLBAR_PADDING=40;e.VERTICAL_PADDING=5;var F={UNKNOWN:0,NORMAL:1,CHANGING:2,FULLSCREEN:3};e.PresentationModeState=F;var B={CANVAS:"canvas",SVG:"svg"};e.RendererType=B;var V={DISABLE:0,ENABLE:1,ENABLE_ENHANCE:2};e.TextLayerMode=V;var z={UNKNOWN:-1,VERTICAL:0,HORIZONTAL:1,WRAPPED:2};e.ScrollMode=z;var U={UNKNOWN:-1,NONE:0,ODD:1,EVEN:2};e.SpreadMode=U;var H=/\bprint\s*\(/;e.AutoPrintRegExp=H;var q={getLanguage:function(){return p(j.default.mark(function t(){return j.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return","en-us");case 1:case"end":return t.stop()}},t)}))()},getDirection:function(){return p(j.default.mark(function t(){return j.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return","ltr");case 1:case"end":return t.stop()}},t)}))()},get:function(t,e,n){return p(j.default.mark(function t(){return j.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",g(n,e));case 1:case"end":return t.stop()}},t)}))()},translate:function(t){return p(j.default.mark(function t(){return j.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}},t)}))()}};e.NullL10n=q;var W={EVENT:"event",TIMEOUT:"timeout"};e.WaitOnType=W;var G=new Promise(function(t){window.requestAnimationFrame(t)});e.animationStarted=G;var Y=function(){function t(e){r(this,t),this._listeners=Object.create(null)}return o(t,[{key:"on",value:function(t,e){this._on(t,e,{external:!0})}},{key:"off",value:function(t,e){this._off(t,e,{external:!0})}},{key:"dispatch",value:function(t){var e=this._listeners[t];if(e&&0!==e.length){var n,r=Array.prototype.slice.call(arguments,1);e.slice(0).forEach(function(t){var e=t.listener;if(t.external)return n||(n=[]),void n.push(e);e.apply(null,r)}),n&&(n.forEach(function(t){t.apply(null,r)}),n=null)}}},{key:"_on",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=this._listeners[t];r||(this._listeners[t]=r=[]),r.push({listener:e,external:!0===(n&&n.external)})}},{key:"_off",value:function(t,e){var n=(arguments.length>2&&void 0!==arguments[2]&&arguments[2],this._listeners[t]);if(n)for(var r=0,i=n.length;r<i;r++)if(n[r].listener===e)return void n.splice(r,1)}}]),t}();e.EventBus=Y;var K=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.height,o=n.width,a=n.units;r(this,t),this.visible=!0,this.div=document.querySelector(e+" .progress"),this.bar=this.div.parentNode,this.height=i||100,this.width=o||100,this.units=a||"%",this.div.style.height=this.height+this.units,this.percent=0}return o(t,[{key:"_updateBar",value:function(){if(this._indeterminate)return this.div.classList.add("indeterminate"),void(this.div.style.width=this.width+this.units);this.div.classList.remove("indeterminate");var t=this.width*this._percent/100;this.div.style.width=t+this.units}},{key:"setWidth",value:function(t){if(t){var e=t.parentNode,n=e.offsetWidth-t.offsetWidth;n>0&&(this.bar.style.width="calc(100% - ".concat(n,"px)"))}}},{key:"hide",value:function(){this.visible&&(this.visible=!1,this.bar.classList.add("hidden"),document.body.classList.remove("loadingInProgress"))}},{key:"show",value:function(){this.visible||(this.visible=!0,document.body.classList.add("loadingInProgress"),this.bar.classList.remove("hidden"))}},{key:"percent",get:function(){return this._percent},set:function(t){this._indeterminate=isNaN(t),this._percent=$(t,0,100),this._updateBar()}}]),t}();e.ProgressBar=K},function(t,e,n){"use strict";t.exports=n(5)},function(t,e,n){"use strict";(function(t){function e(t){"@babel/helpers - typeof";return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var n=function(t){function n(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}function r(t,e,n,r){var i=e&&e.prototype instanceof o?e:o,a=Object.create(i.prototype),s=new p(r||[]);return a._invoke=c(t,n,s),a}function i(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}function o(){}function a(){}function s(){}function u(t){["next","throw","return"].forEach(function(e){n(t,e,function(t){return this._invoke(e,t)})})}function l(t,n){function r(o,a,s,u){var l=i(t[o],t,a);if("throw"!==l.type){var c=l.arg,f=c.value;return f&&"object"===e(f)&&b.call(f,"__await")?n.resolve(f.__await).then(function(t){r("next",t,s,u)},function(t){r("throw",t,s,u)}):n.resolve(f).then(function(t){c.value=t,s(c)},function(t){return r("throw",t,s,u)})}u(l.arg)}function o(t,e){function i(){return new n(function(n,i){r(t,e,n,i)})}return a=a?a.then(i,i):i()}var a;this._invoke=o}function c(t,e,n){var r=S;return function(o,a){if(r===E)throw new Error("Generator is already running");if(r===T){if("throw"===o)throw a;return m()}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var u=f(s,n);if(u){if(u===A)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===S)throw r=T,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=E;var l=i(t,e,n);if("normal"===l.type){if(r=n.done?T:C,l.arg===A)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r=T,n.method="throw",n.arg=l.arg)}}}function f(t,e){var n=t.iterator[e.method];if(n===v){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=v,f(t,e),"throw"===e.method))return A;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return A}var r=i(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,A;var o=r.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=v),e.delegate=null,A):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,A)}function d(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function h(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function p(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(d,this),this.reset(!0)}function g(t){if(t){var e=t[w];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function e(){for(;++n<t.length;)if(b.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=v,e.done=!0,e};return r.next=r}}return{next:m}}function m(){return{value:v,done:!0}}var v,y=Object.prototype,b=y.hasOwnProperty,_="function"==typeof Symbol?Symbol:{},w=_.iterator||"@@iterator",x=_.asyncIterator||"@@asyncIterator",k=_.toStringTag||"@@toStringTag";try{n({},"")}catch(t){n=function(t,e,n){return t[e]=n}}t.wrap=r;var S="suspendedStart",C="suspendedYield",E="executing",T="completed",A={},O={};O[w]=function(){return this};var P=Object.getPrototypeOf,N=P&&P(P(g([])));N&&N!==y&&b.call(N,w)&&(O=N);var D=s.prototype=o.prototype=Object.create(O);return a.prototype=D.constructor=s,s.constructor=a,a.displayName=n(s,k,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===a||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,n(t,k,"GeneratorFunction")),t.prototype=Object.create(D),t},t.awrap=function(t){return{__await:t}},u(l.prototype),l.prototype[x]=function(){return this},t.AsyncIterator=l,t.async=function(e,n,i,o,a){void 0===a&&(a=Promise);var s=new l(r(e,n,i,o),a);return t.isGeneratorFunction(n)?s:s.next().then(function(t){return t.done?t.value:s.next()})},u(D),n(D,k,"Generator"),D[w]=function(){return this},D.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=g,p.prototype={constructor:p,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=v,this.done=!1,this.delegate=null,this.method="next",this.arg=v,this.tryEntries.forEach(h),!t)for(var e in this)"t"===e.charAt(0)&&b.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=v)},stop:function(){this.done=!0;var t=this.tryEntries[0],e=t.completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){function e(e,r){return o.type="throw",o.arg=t,n.next=e,r&&(n.method="next",n.arg=v),!!r}if(this.done)throw t;for(var n=this,r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],o=i.completion;if("root"===i.tryLoc)return e("end");if(i.tryLoc<=this.prev){var a=b.call(i,"catchLoc"),s=b.call(i,"finallyLoc");if(a&&s){if(this.prev<i.catchLoc)return e(i.catchLoc,!0);if(this.prev<i.finallyLoc)return e(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return e(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return e(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&b.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=t,o.arg=e,i?(this.method="next",this.next=i.finallyLoc,A):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),A},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),h(n),A}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;h(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:g(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=v),A}},t}("object"===e(t)?t.exports:{});try{regeneratorRuntime=n}catch(t){Function("r","regeneratorRuntime = r")(n)}}).call(this,n(6)(t))},function(t,e,n){"use strict";t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,n){"use strict";function r(t){"@babel/helpers - typeof";return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function a(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}function s(t){if(!Array.isArray(t))return!1;var e=t.length;if(e<2)return!1;var n=t[0];if(!("object"===r(n)&&Number.isInteger(n.num)&&Number.isInteger(n.gen)||Number.isInteger(n)&&n>=0))return!1;var i=t[1];if("object"!==r(i)||"string"!=typeof i.name)return!1;var o=!0;switch(i.name){case"XYZ":if(5!==e)return!1;break;case"Fit":case"FitB":return 2===e;case"FitH":case"FitBH":case"FitV":case"FitBV":if(3!==e)return!1;break;case"FitR":if(6!==e)return!1;o=!1;break;default:return!1}for(var a=2;a<e;a++){var s=t[a];if(!("number"==typeof s||o&&null===s))return!1}return!0}Object.defineProperty(e,"__esModule",{value:!0}),e.SimpleLinkService=e.PDFLinkService=void 0;var u=n(3),l=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.eventBus,r=e.externalLinkTarget,o=void 0===r?null:r,a=e.externalLinkRel,s=void 0===a?null:a,u=e.externalLinkEnabled,l=void 0===u||u,c=e.ignoreDestinationZoom,f=void 0!==c&&c;i(this,t),this.eventBus=n,this.externalLinkTarget=o,this.externalLinkRel=s,this.externalLinkEnabled=l,this._ignoreDestinationZoom=f,this.baseUrl=null,this.pdfDocument=null,this.pdfViewer=null,this.pdfHistory=null,this._pagesRefCache=null}return a(t,[{key:"setDocument",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.baseUrl=e,this.pdfDocument=t,this._pagesRefCache=Object.create(null)}},{key:"setViewer",value:function(t){this.pdfViewer=t}},{key:"setHistory",value:function(t){this.pdfHistory=t}},{key:"navigateTo",value:function(t){var e=this,n=function n(r){var i,o=r.namedDest,a=r.explicitDest,s=a[0];if(s instanceof Object){if(null===(i=e._cachedPageNumber(s)))return void e.pdfDocument.getPageIndex(s).then(function(t){e.cachePageRef(t+1,s),n({namedDest:o,explicitDest:a})}).catch(function(){console.error('PDFLinkService.navigateTo: "'.concat(s,'" is not ')+'a valid page reference, for dest="'.concat(t,'".'))})}else{if(!Number.isInteger(s))return void console.error('PDFLinkService.navigateTo: "'.concat(s,'" is not ')+'a valid destination reference, for dest="'.concat(t,'".'));i=s+1}if(!i||i<1||i>e.pagesCount)return void console.error('PDFLinkService.navigateTo: "'.concat(i,'" is not ')+'a valid page number, for dest="'.concat(t,'".'));e.pdfHistory&&(e.pdfHistory.pushCurrentPosition(),e.pdfHistory.push({namedDest:o,explicitDest:a,pageNumber:i})),e.pdfViewer.scrollPageIntoView({pageNumber:i,destArray:a,ignoreDestinationZoom:e._ignoreDestinationZoom})};new Promise(function(n,r){if("string"==typeof t)return void e.pdfDocument.getDestination(t).then(function(e){n({namedDest:t,explicitDest:e})});n({namedDest:"",explicitDest:t})}).then(function(e){if(!Array.isArray(e.explicitDest))return void console.error('PDFLinkService.navigateTo: "'.concat(e.explicitDest,'" is')+' not a valid destination array, for dest="'.concat(t,'".'));n(e)})}},{key:"getDestinationHash",value:function(t){if("string"==typeof t)return this.getAnchorUrl("#"+escape(t));if(Array.isArray(t)){var e=JSON.stringify(t);return this.getAnchorUrl("#"+escape(e))}return this.getAnchorUrl("")}},{key:"getAnchorUrl",value:function(t){return(this.baseUrl||"")+t}},{key:"setHash",value:function(t){var e,n;if(t.includes("=")){var r=(0,u.parseQueryString)(t);if("search"in r&&this.eventBus.dispatch("findfromurlhash",{source:this,query:r.search.replace(/"/g,""),phraseSearch:"true"===r.phrase}),"page"in r&&(e=0|r.page||1),"zoom"in r){var i=r.zoom.split(","),o=i[0],a=parseFloat(o);o.includes("Fit")?"Fit"===o||"FitB"===o?n=[null,{name:o}]:"FitH"===o||"FitBH"===o||"FitV"===o||"FitBV"===o?n=[null,{name:o},i.length>1?0|i[1]:null]:"FitR"===o?5!==i.length?console.error('PDFLinkService.setHash: Not enough parameters for "FitR".'):n=[null,{name:o},0|i[1],0|i[2],0|i[3],0|i[4]]:console.error('PDFLinkService.setHash: "'.concat(o,'" is not ')+"a valid zoom value."):n=[null,{name:"XYZ"},i.length>1?0|i[1]:null,i.length>2?0|i[2]:null,a?a/100:o]}n?this.pdfViewer.scrollPageIntoView({pageNumber:e||this.page,destArray:n,allowNegativeOffset:!0}):e&&(this.page=e),"pagemode"in r&&this.eventBus.dispatch("pagemode",{source:this,mode:r.pagemode}),"nameddest"in r&&this.navigateTo(r.nameddest)}else{n=unescape(t);try{n=JSON.parse(n),Array.isArray(n)||(n=n.toString())}catch(t){}if("string"==typeof n||s(n))return void this.navigateTo(n);console.error('PDFLinkService.setHash: "'.concat(unescape(t),'" is not ')+"a valid destination.")}}},{key:"executeNamedAction",value:function(t){switch(t){case"GoBack":this.pdfHistory&&this.pdfHistory.back();break;case"GoForward":this.pdfHistory&&this.pdfHistory.forward();break;case"NextPage":this.page<this.pagesCount&&this.page++;break;case"PrevPage":this.page>1&&this.page--;break;case"LastPage":this.page=this.pagesCount;break;case"FirstPage":this.page=1}this.eventBus.dispatch("namedaction",{source:this,action:t})}},{key:"cachePageRef",value:function(t,e){if(e){var n=0===e.gen?"".concat(e.num,"R"):"".concat(e.num,"R").concat(e.gen);this._pagesRefCache[n]=t}}},{key:"_cachedPageNumber",value:function(t){var e=0===t.gen?"".concat(t.num,"R"):"".concat(t.num,"R").concat(t.gen);return this._pagesRefCache&&this._pagesRefCache[e]||null}},{key:"isPageVisible",value:function(t){return this.pdfViewer.isPageVisible(t)}},{key:"pagesCount",get:function(){return this.pdfDocument?this.pdfDocument.numPages:0}},{key:"page",get:function(){return this.pdfViewer.currentPageNumber},set:function(t){this.pdfViewer.currentPageNumber=t}},{key:"rotation",get:function(){return this.pdfViewer.pagesRotation},set:function(t){this.pdfViewer.pagesRotation=t}}]),t}();e.PDFLinkService=l;var c=function(){function t(){i(this,t),this.externalLinkTarget=null,this.externalLinkRel=null,this.externalLinkEnabled=!0,this._ignoreDestinationZoom=!1}return a(t,[{key:"navigateTo",value:function(t){}},{key:"getDestinationHash",value:function(t){return"#"}},{key:"getAnchorUrl",value:function(t){return"#"}},{key:"setHash",value:function(t){}},{key:"executeNamedAction",value:function(t){}},{key:"cachePageRef",value:function(t,e){}},{key:"isPageVisible",value:function(t){return!0}},{key:"pagesCount",get:function(){return 0}},{key:"page",get:function(){return 0},set:function(t){}},{key:"rotation",get:function(){return 0},set:function(t){}}]),t}();e.SimpleLinkService=c},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),t}Object.defineProperty(e,"__esModule",{value:!0}),e.DefaultTextLayerFactory=e.TextLayerBuilder=void 0;var a=n(2),s=function(){function t(e){var n=e.textLayerDiv,i=e.eventBus,o=e.pageIndex,a=e.viewport,s=e.findController,u=void 0===s?null:s,l=e.enhanceTextSelection,c=void 0!==l&&l;r(this,t),this.textLayerDiv=n,this.eventBus=i,this.textContent=null,this.textContentItemsStr=[],this.textContentStream=null,this.renderingDone=!1,this.pageIdx=o,this.pageNumber=this.pageIdx+1,this.matches=[],this.viewport=a,this.textDivs=[],this.findController=u,this.textLayerRenderTask=null,this.enhanceTextSelection=c,this._onUpdateTextLayerMatches=null,this._bindMouse()}return o(t,[{key:"_finishRendering",value:function(){if(this.renderingDone=!0,!this.enhanceTextSelection){var t=document.createElement("div");t.className="endOfContent",this.textLayerDiv.appendChild(t)}this.eventBus.dispatch("textlayerrendered",{source:this,pageNumber:this.pageNumber,numTextDivs:this.textDivs.length})}},{key:"render",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if((this.textContent||this.textContentStream)&&!this.renderingDone){this.cancel(),this.textDivs=[];var n=document.createDocumentFragment();this.textLayerRenderTask=(0,a.renderTextLayer)({textContent:this.textContent,textContentStream:this.textContentStream,container:n,viewport:this.viewport,textDivs:this.textDivs,textContentItemsStr:this.textContentItemsStr,timeout:e,enhanceTextSelection:this.enhanceTextSelection}),this.textLayerRenderTask.promise.then(function(){t.textLayerDiv.appendChild(n),t._finishRendering(),t._updateMatches()},function(t){}),this._onUpdateTextLayerMatches||(this._onUpdateTextLayerMatches=function(e){e.pageIndex!==t.pageIdx&&-1!==e.pageIndex||t._updateMatches()},this.eventBus._on("updatetextlayermatches",this._onUpdateTextLayerMatches))}}},{key:"cancel",value:function(){this.textLayerRenderTask&&(this.textLayerRenderTask.cancel(),this.textLayerRenderTask=null),this._onUpdateTextLayerMatches&&(this.eventBus._off("updatetextlayermatches",this._onUpdateTextLayerMatches),this._onUpdateTextLayerMatches=null)}},{key:"setTextContentStream",value:function(t){this.cancel(),this.textContentStream=t}},{key:"setTextContent",value:function(t){this.cancel(),this.textContent=t}},{key:"_convertMatches",value:function(t,e){if(!t)return[];for(var n=this.findController,r=this.textContentItemsStr,i=0,o=0,a=r.length-1,s=n.state.query.length,u=[],l=0,c=t.length;l<c;l++){for(var f=t[l];i!==a&&f>=o+r[i].length;)o+=r[i].length,i++;i===r.length&&console.error("Could not find a matching mapping");var d={begin:{divIdx:i,offset:f-o}};for(f+=e?e[l]:s;i!==a&&f>o+r[i].length;)o+=r[i].length,i++;d.end={divIdx:i,offset:f-o},u.push(d)}return u}},{key:"_renderMatches",value:function(t){function e(t,e){var r=t.divIdx;a[r].textContent="",n(r,0,t.offset,e)}function n(t,e,n,r){var i=a[t],s=o[t].substring(e,n),u=document.createTextNode(s);if(r){var l=document.createElement("span");return l.className=r,l.appendChild(u),void i.appendChild(l)}i.appendChild(u)}if(0!==t.length){var r=this.findController,i=this.pageIdx,o=this.textContentItemsStr,a=this.textDivs,s=i===r.selected.pageIdx,u=r.selected.matchIdx,l=r.state.highlightAll,c=null,f={divIdx:-1,offset:void 0},d=u,h=d+1;if(l)d=0,h=t.length;else if(!s)return;for(var p=d;p<h;p++){var g=t[p],m=g.begin,v=g.end,y=s&&p===u,b=y?" selected":"";if(y&&r.scrollMatchIntoView({element:a[m.divIdx],pageIndex:i,matchIndex:u}),c&&m.divIdx===c.divIdx?n(c.divIdx,c.offset,m.offset):(null!==c&&n(c.divIdx,c.offset,f.offset),e(m)),m.divIdx===v.divIdx)n(m.divIdx,m.offset,v.offset,"highlight"+b);else{n(m.divIdx,m.offset,f.offset,"highlight begin"+b);for(var _=m.divIdx+1,w=v.divIdx;_<w;_++)a[_].className="highlight middle"+b;e(v,"highlight end"+b)}c=v}c&&n(c.divIdx,c.offset,f.offset)}}},{key:"_updateMatches",value:function(){if(this.renderingDone){for(var t=this.findController,e=this.matches,n=this.pageIdx,r=this.textContentItemsStr,i=this.textDivs,o=-1,a=0,s=e.length;a<s;a++){for(var u=e[a],l=Math.max(o,u.begin.divIdx),c=l,f=u.end.divIdx;c<=f;c++){var d=i[c];d.textContent=r[c],d.className=""}o=u.end.divIdx+1}if(t&&t.highlightMatches){var h=t.pageMatches[n]||null,p=t.pageMatchesLength[n]||null;this.matches=this._convertMatches(h,p),this._renderMatches(this.matches)}}}},{key:"_bindMouse",value:function(){var t=this,e=this.textLayerDiv,n=null;e.addEventListener("mousedown",function(r){if(t.enhanceTextSelection&&t.textLayerRenderTask)return t.textLayerRenderTask.expandTextDivs(!0),void(n&&(clearTimeout(n),n=null));var i=e.querySelector(".endOfContent");if(i){var o=r.target!==e;if(o=o&&"none"!==window.getComputedStyle(i).getPropertyValue("-moz-user-select")){var a=e.getBoundingClientRect(),s=Math.max(0,(r.pageY-a.top)/a.height);i.style.top=(100*s).toFixed(2)+"%"}i.classList.add("active")}}),e.addEventListener("mouseup",function(){if(t.enhanceTextSelection&&t.textLayerRenderTask)return void(n=setTimeout(function(){t.textLayerRenderTask&&t.textLayerRenderTask.expandTextDivs(!1),n=null},300));var r=e.querySelector(".endOfContent");r&&(r.style.top="",r.classList.remove("active"))})}}]),t}();e.TextLayerBuilder=s;var u=function(){function t(){r(this,t)}return o(t,[{key:"createTextLayerBuilder",value:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4?arguments[4]:void 0;return new s({textLayerDiv:t,pageIndex:e,viewport:n,enhanceTextSelection:r,eventBus:i})}}]),t}();e.DefaultTextLayerFactory=u},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),t}function a(t,e){var n=document.createElement("a");if(!n.click)throw new Error('DownloadManager: "a.click()" is not supported.');n.href=t,n.target="_parent","download"in n&&(n.download=e),(document.body||document.documentElement).appendChild(n),n.click(),n.remove()}Object.defineProperty(e,"__esModule",{value:!0}),e.DownloadManager=void 0;var s=n(2),u=n(10),l=function(){function t(){r(this,t)}return o(t,[{key:"downloadUrl",value:function(t,e){(0,s.createValidAbsoluteUrl)(t,"http://example.com")&&a(t+"#pdfjs.action=download",e)}},{key:"downloadData",value:function(t,e,n){if(navigator.msSaveBlob)return void navigator.msSaveBlob(new Blob([t],{type:n}),e);a((0,s.createObjectURL)(t,n,u.viewerCompatibilityParams.disableCreateObjectURL),e)}},{key:"download",value:function(t,e,n){arguments.length>3&&void 0!==arguments[3]&&arguments[3];return navigator.msSaveBlob?void(navigator.msSaveBlob(t,n)||this.downloadUrl(e,n)):u.viewerCompatibilityParams.disableCreateObjectURL?void this.downloadUrl(e,n):void a(URL.createObjectURL(t),n)}}]),t}();e.DownloadManager=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.viewerCompatibilityParams=void 0;var r=Object.create(null),i="undefined"!=typeof navigator&&navigator.userAgent||"",o="undefined"!=typeof navigator&&navigator.platform||"",a="undefined"!=typeof navigator&&navigator.maxTouchPoints||1,s=/Android/.test(i),u=/Trident/.test(i),l=/\b(iPad|iPhone|iPod)(?=;)/.test(i)||"MacIntel"===o&&a>1,c=/CriOS/.test(i);!function(){(u||c)&&(r.disableCreateObjectURL=!0)}(),function(){(l||s)&&(r.maxCanvasPixels=5242880)}();var f=Object.freeze(r);e.viewerCompatibilityParams=f},function(t,e,n){"use strict";function r(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}function i(t){return function(){var e=this,n=arguments;return new Promise(function(i,o){function a(t){r(u,i,o,a,s,"next",t)}function s(t){r(u,i,o,a,s,"throw",t)}var u=t.apply(e,n);a(void 0)})}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function s(t,e,n){return e&&a(t.prototype,e),n&&a(t,n),t}Object.defineProperty(e,"__esModule",{value:!0}),e.GenericL10n=void 0;var u=function(t){return t&&t.__esModule?t:{default:t}}(n(4));n(12);var l=document.webL10n,c=function(){function t(e){o(this,t),this._lang=e,this._ready=new Promise(function(t,n){l.setLanguage(e,function(){t(l)})})}return s(t,[{key:"getLanguage",value:function(){function t(){return e.apply(this,arguments)}var e=i(u.default.mark(function t(){var e;return u.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._ready;case 2:return e=t.sent,t.abrupt("return",e.getLanguage());case 4:case"end":return t.stop()}},t,this)}));return t}()},{key:"getDirection",value:function(){function t(){return e.apply(this,arguments)}var e=i(u.default.mark(function t(){var e;return u.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._ready;case 2:return e=t.sent,t.abrupt("return",e.getDirection());case 4:case"end":return t.stop()}},t,this)}));return t}()},{key:"get",value:function(){function t(t,n,r){return e.apply(this,arguments)}var e=i(u.default.mark(function t(e,n,r){var i;return u.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._ready;case 2:return i=t.sent,t.abrupt("return",i.get(e,n,r));case 4:case"end":return t.stop()}},t,this)}));return t}()},{key:"translate",value:function(){function t(t){return e.apply(this,arguments)}var e=i(u.default.mark(function t(e){var n;return u.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._ready;case 2:return n=t.sent,t.abrupt("return",n.translate(e));case 4:case"end":return t.stop()}},t,this)}));return t}()}]),t}();e.GenericL10n=c},function(t,e,n){"use strict";document.webL10n=function(t,e,n){function r(){return e.querySelectorAll('link[type="application/l10n"]')}function i(){var t=e.querySelector('script[type="application/l10n"]');return t?JSON.parse(t.innerHTML):null}function o(t){return t?t.querySelectorAll("*[data-l10n-id]"):[]}function a(t){if(!t)return{};var e=t.getAttribute("data-l10n-id"),n=t.getAttribute("data-l10n-args"),r={};if(n)try{r=JSON.parse(n)}catch(t){console.warn("could not parse arguments for #"+e)}return{id:e,args:r}}function s(t,e,n){e=e||function(t){},n=n||function(){};var r=new XMLHttpRequest;r.open("GET",t,S),r.overrideMimeType&&r.overrideMimeType("text/plain; charset=utf-8"),r.onreadystatechange=function(){4==r.readyState&&(200==r.status||0===r.status?e(r.responseText):n())},r.onerror=n,r.ontimeout=n;try{r.send(null)}catch(t){n()}}function u(t,e,n,r){function i(t){return t.lastIndexOf("\\")<0?t:t.replace(/\\\\/g,"\\").replace(/\\n/g,"\n").replace(/\\r/g,"\r").replace(/\\t/g,"\t").replace(/\\b/g,"\b").replace(/\\f/g,"\f").replace(/\\{/g,"{").replace(/\\}/g,"}").replace(/\\"/g,'"').replace(/\\'/g,"'")}function o(t,n){function r(t,n,r){function s(){for(;;){if(!p.length)return void r();var t=p.shift();if(!c.test(t)){if(n){if(y=f.exec(t)){g=y[1].toLowerCase(),v="*"!==g&&g!==e&&g!==m;continue}if(v)continue;if(y=d.exec(t))return void o(a+y[1],s)}var l=t.match(h);l&&3==l.length&&(u[l[1]]=i(l[2]))}}}var p=t.replace(l,"").split(/[\r\n]+/),g="*",m=e.split("-",1)[0],v=!1,y="";s()}function o(t,e){s(t,function(t){r(t,!1,e)},function(){console.warn(t+" not found."),e()})}var u={},l=/^\s*|\s*$/,c=/^\s*#|^\s*$/,f=/^\s*\[(.*)\]\s*$/,d=/^\s*@import\s+url\((.*)\)\s*$/i,h=/^([^=\s]*)\s*=\s*(.+)$/;r(t,!0,function(){n(u)})}var a=t.replace(/[^\/]*$/,"")||"./";s(t,function(t){b+=t,o(t,function(t){for(var e in t){var r,i,o=e.lastIndexOf(".");o>0?(r=e.substring(0,o),i=e.substring(o+1)):(r=e,i=_),y[r]||(y[r]={}),y[r][i]=t[e]}n&&n()})},r)}function l(t,e){function n(t){var e=t.href;this.load=function(t,n){u(e,t,n,function(){console.warn(e+" not found."),console.warn('"'+t+'" resource not found'),w="",n()})}}t&&(t=t.toLowerCase()),e=e||function(){},c(),w=t;var o=r(),a=o.length;if(0===a){var s=i();if(s&&s.locales&&s.default_locale){if(console.log("using the embedded JSON directory, early way out"),!(y=s.locales[t])){var l=s.default_locale.toLowerCase();for(var f in s.locales){if((f=f.toLowerCase())===t){y=s.locales[t];break}f===l&&(y=s.locales[l])}}e()}else console.log("no resource to load, early way out");return void(k="complete")}var d=null,h=0;d=function(){++h>=a&&(e(),k="complete")};for(var p=0;p<a;p++){new n(o[p]).load(t,d)}}function c(){y={},b="",w=""}function f(t){function e(t,e){return-1!==e.indexOf(t)}function n(t,e,n){return e<=t&&t<=n}var r={af:3,ak:4,am:4,ar:1,asa:3,az:0,be:11,bem:3,bez:3,bg:3,bh:4,bm:0,bn:3,bo:0,br:20,brx:3,bs:11,ca:3,cgg:3,chr:3,cs:12,cy:17,da:3,de:3,dv:3,dz:0,ee:3,el:3,en:3,eo:3,es:3,et:3,eu:3,fa:0,ff:5,fi:3,fil:4,fo:3,fr:5,fur:3,fy:3,ga:8,gd:24,gl:3,gsw:3,gu:3,guw:4,gv:23,ha:3,haw:3,he:2,hi:4,hr:11,hu:0,id:0,ig:0,ii:0,is:3,it:3,iu:7,ja:0,jmc:3,jv:0,ka:0,kab:5,kaj:3,kcg:3,kde:0,kea:0,kk:3,kl:3,km:0,kn:0,ko:0,ksb:3,ksh:21,ku:3,kw:7,lag:18,lb:3,lg:3,ln:4,lo:0,lt:10,lv:6,mas:3,mg:4,mk:16,ml:3,mn:3,mo:9,mr:3,ms:0,mt:15,my:0,nah:3,naq:7,nb:3,nd:3,ne:3,nl:3,nn:3,no:3,nr:3,nso:4,ny:3,nyn:3,om:3,or:3,pa:3,pap:3,pl:13,ps:3,pt:3,rm:3,ro:9,rof:3,ru:11,rwk:3,sah:0,saq:3,se:7,seh:3,ses:0,sg:0,sh:11,shi:19,sk:12,sl:14,sma:7,smi:7,smj:7,smn:7,sms:7,sn:3,so:3,sq:3,sr:11,ss:3,ssy:3,st:3,sv:3,sw:3,syr:3,ta:3,te:3,teo:3,th:0,ti:4,tig:3,tk:3,tl:4,tn:3,to:0,tr:0,ts:3,tzm:22,uk:11,ur:3,ve:3,vi:0,vun:3,wa:4,wae:3,wo:0,xh:3,xog:3,yo:0,zh:0,zu:3},i={0:function(t){return"other"},1:function(t){return n(t%100,3,10)?"few":0===t?"zero":n(t%100,11,99)?"many":2==t?"two":1==t?"one":"other"},2:function(t){return 0!==t&&t%10==0?"many":2==t?"two":1==t?"one":"other"},3:function(t){return 1==t?"one":"other"},4:function(t){return n(t,0,1)?"one":"other"},5:function(t){return n(t,0,2)&&2!=t?"one":"other"},6:function(t){return 0===t?"zero":t%10==1&&t%100!=11?"one":"other"},7:function(t){return 2==t?"two":1==t?"one":"other"},8:function(t){return n(t,3,6)?"few":n(t,7,10)?"many":2==t?"two":1==t?"one":"other"},9:function(t){return 0===t||1!=t&&n(t%100,1,19)?"few":1==t?"one":"other"},10:function(t){return n(t%10,2,9)&&!n(t%100,11,19)?"few":t%10!=1||n(t%100,11,19)?"other":"one"},11:function(t){return n(t%10,2,4)&&!n(t%100,12,14)?"few":t%10==0||n(t%10,5,9)||n(t%100,11,14)?"many":t%10==1&&t%100!=11?"one":"other"},12:function(t){return n(t,2,4)?"few":1==t?"one":"other"},13:function(t){return n(t%10,2,4)&&!n(t%100,12,14)?"few":1!=t&&n(t%10,0,1)||n(t%10,5,9)||n(t%100,12,14)?"many":1==t?"one":"other"},14:function(t){return n(t%100,3,4)?"few":t%100==2?"two":t%100==1?"one":"other"},15:function(t){return 0===t||n(t%100,2,10)?"few":n(t%100,11,19)?"many":1==t?"one":"other"},16:function(t){return t%10==1&&11!=t?"one":"other"},17:function(t){return 3==t?"few":0===t?"zero":6==t?"many":2==t?"two":1==t?"one":"other"},18:function(t){return 0===t?"zero":n(t,0,2)&&0!==t&&2!=t?"one":"other"},19:function(t){return n(t,2,10)?"few":n(t,0,1)?"one":"other"},20:function(t){return!n(t%10,3,4)&&t%10!=9||n(t%100,10,19)||n(t%100,70,79)||n(t%100,90,99)?t%1e6==0&&0!==t?"many":t%10!=2||e(t%100,[12,72,92])?t%10!=1||e(t%100,[11,71,91])?"other":"one":"two":"few"},21:function(t){return 0===t?"zero":1==t?"one":"other"},22:function(t){return n(t,0,1)||n(t,11,99)?"one":"other"},23:function(t){return n(t%10,1,2)||t%20==0?"one":"other"},24:function(t){return n(t,3,10)||n(t,13,19)?"few":e(t,[2,12])?"two":e(t,[1,11])?"one":"other"}},o=r[t.replace(/-.*$/,"")];return o in i?i[o]:(console.warn("plural form unknown for ["+t+"]"),function(){return"other"})}function d(t,e,n){var r=y[t];if(!r){if(console.warn("#"+t+" is undefined."),!n)return null;r=n}var i={};for(var o in r){var a=r[o];a=h(a,e,t,o),a=p(a,e,t),i[o]=a}return i}function h(t,e,n,r){var i=/\{\[\s*([a-zA-Z]+)\(([a-zA-Z]+)\)\s*\]\}/,o=i.exec(t);if(!o||!o.length)return t;var a,s=o[1],u=o[2];if(e&&u in e?a=e[u]:u in y&&(a=y[u]),s in x){t=(0,x[s])(t,a,n,r)}return t}function p(t,e,n){var r=/\{\{\s*(.+?)\s*\}\}/g;return t.replace(r,function(t,r){return e&&r in e?e[r]:r in y?y[r]:(console.log("argument {{"+r+"}} for #"+n+" is undefined."),t)})}function g(t){var n=a(t);if(n.id){var r=d(n.id,n.args);if(!r)return void console.warn("#"+n.id+" is undefined.");if(r[_]){if(0===m(t))t[_]=r[_];else{for(var i=t.childNodes,o=!1,s=0,u=i.length;s<u;s++)3===i[s].nodeType&&/\S/.test(i[s].nodeValue)&&(o?i[s].nodeValue="":(i[s].nodeValue=r[_],o=!0));if(!o){var l=e.createTextNode(r[_]);t.insertBefore(l,t.firstChild)}}delete r[_]}for(var c in r)t[c]=r[c]}}function m(t){if(t.children)return t.children.length;if(void 0!==t.childElementCount)return t.childElementCount;for(var e=0,n=0;n<t.childNodes.length;n++)e+=1===t.nodeType?1:0;return e}function v(t){t=t||e.documentElement;for(var n=o(t),r=n.length,i=0;i<r;i++)g(n[i]);g(t)}var y={},b="",_="textContent",w="",x={},k="loading",S=!0;return x.plural=function(t,e,n,r){var i=parseFloat(e);if(isNaN(i))return t;if(r!=_)return t;x._pluralRules||(x._pluralRules=f(w));var o="["+x._pluralRules(i)+"]";return 0===i&&n+"[zero]"in y?t=y[n+"[zero]"][r]:1==i&&n+"[one]"in y?t=y[n+"[one]"][r]:2==i&&n+"[two]"in y?t=y[n+"[two]"][r]:n+o in y?t=y[n+o][r]:n+"[other]"in y&&(t=y[n+"[other]"][r]),t},{get:function(t,e,n){var r=t.lastIndexOf("."),i=_;r>0&&(i=t.substring(r+1),t=t.substring(0,r));var o;n&&(o={},o[i]=n);var a=d(t,e,o);return a&&i in a?a[i]:"{{"+t+"}}"},getData:function(){return y},getText:function(){return b},getLanguage:function(){return w},setLanguage:function(t,e){l(t,function(){e&&e()})},getDirection:function(){var t=["ar","he","fa","ps","ur"],e=w.split("-",1)[0];return t.indexOf(e)>=0?"rtl":"ltr"},translate:v,getReadyState:function(){return k},ready:function(n){n&&("complete"==k||"interactive"==k?t.setTimeout(function(){n()}):e.addEventListener&&e.addEventListener("localized",function t(){e.removeEventListener("localized",t),n()}))}}}(window,document)},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),t}function a(t){if(!d){var e=Object.keys(f).join("");d=new RegExp("[".concat(e,"]"),"g")}return t.replace(d,function(t){return f[t]})}Object.defineProperty(e,"__esModule",{value:!0}),e.PDFFindController=e.FindState=void 0;var s=n(2),u=n(14),l=n(3),c={FOUND:0,NOT_FOUND:1,WRAPPED:2,PENDING:3};e.FindState=c;var f={"‘":"'","’":"'","‚":"'","‛":"'","“":'"',"”":'"',"„":'"',"‟":'"',"¼":"1/4","½":"1/2","¾":"3/4"},d=null,h=function(){function t(e){var n=e.linkService,i=e.eventBus;r(this,t),this._linkService=n,this._eventBus=i,this._reset(),i._on("findbarclose",this._onFindBarClose.bind(this))}return o(t,[{key:"setDocument",value:function(t){this._pdfDocument&&this._reset(),t&&(this._pdfDocument=t,this._firstPageCapability.resolve())}},{key:"executeCommand",value:function(t,e){var n=this;if(e){var r=this._pdfDocument;(null===this._state||this._shouldDirtyMatch(t,e))&&(this._dirtyMatch=!0),this._state=e,"findhighlightallchange"!==t&&this._updateUIState(c.PENDING),this._firstPageCapability.promise.then(function(){if(n._pdfDocument&&(!r||n._pdfDocument===r)){n._extractText();var e=!n._highlightMatches,i=!!n._findTimeout;n._findTimeout&&(clearTimeout(n._findTimeout),n._findTimeout=null),"find"===t?n._findTimeout=setTimeout(function(){n._nextMatch(),n._findTimeout=null},250):n._dirtyMatch?n._nextMatch():"findagain"===t?(n._nextMatch(),e&&n._state.highlightAll&&n._updateAllPages()):"findhighlightallchange"===t?(i?n._nextMatch():n._highlightMatches=!0,n._updateAllPages()):n._nextMatch()}})}}},{key:"scrollMatchIntoView",value:function(t){var e=t.element,n=void 0===e?null:e,r=t.pageIndex,i=void 0===r?-1:r,o=t.matchIndex,a=void 0===o?-1:o;if(this._scrollMatches&&n&&-1!==a&&a===this._selected.matchIdx&&-1!==i&&i===this._selected.pageIdx){this._scrollMatches=!1;var s={top:-50,left:-400};(0,l.scrollIntoView)(n,s,!0)}}},{key:"_reset",value:function(){this._highlightMatches=!1,this._scrollMatches=!1,this._pdfDocument=null,this._pageMatches=[],this._pageMatchesLength=[],this._state=null,this._selected={pageIdx:-1,matchIdx:-1},this._offset={pageIdx:null,matchIdx:null,wrapped:!1},this._extractTextPromises=[],this._pageContents=[],this._matchesCountTotal=0,this._pagesToSearch=null,this._pendingFindMatches=Object.create(null),this._resumePageIdx=null,this._dirtyMatch=!1,clearTimeout(this._findTimeout),this._findTimeout=null,this._firstPageCapability=(0,s.createPromiseCapability)()}},{key:"_shouldDirtyMatch",value:function(t,e){if(e.query!==this._state.query)return!0;switch(t){case"findagain":var n=this._selected.pageIdx+1,r=this._linkService;return n>=1&&n<=r.pagesCount&&n!==r.page&&!r.isPageVisible(n);case"findhighlightallchange":return!1}return!0}},{key:"_prepareMatches",value:function(t,e,n){t.sort(function(t,e){return t.match===e.match?t.matchLength-e.matchLength:t.match-e.match});for(var r=0,i=t.length;r<i;r++)(function(e){var n=t[e],r=t[e+1];if(e<t.length-1&&n.match===r.match)return n.skipped=!0,!0;for(var i=e-1;i>=0;i--){var o=t[i];if(!o.skipped){if(o.match+o.matchLength<n.match)break;if(o.match+o.matchLength>=n.match+n.matchLength)return n.skipped=!0,!0}}return!1})(r)||(e.push(t[r].match),n.push(t[r].matchLength))}},{key:"_isEntireWord",value:function(t,e,n){if(e>0){var r=t.charCodeAt(e),i=t.charCodeAt(e-1);if((0,u.getCharacterType)(r)===(0,u.getCharacterType)(i))return!1}var o=e+n-1;if(o<t.length-1){var a=t.charCodeAt(o),s=t.charCodeAt(o+1);if((0,u.getCharacterType)(a)===(0,u.getCharacterType)(s))return!1}return!0}},{key:"_calculatePhraseMatch",value:function(t,e,n,r){for(var i=[],o=t.length,a=-o;;){if(-1===(a=n.indexOf(t,a+o)))break;r&&!this._isEntireWord(n,a,o)||i.push(a)}this._pageMatches[e]=i}},{key:"_calculateWordMatch",value:function(t,e,n,r){for(var i=[],o=t.match(/\S+/g),a=0,s=o.length;a<s;a++)for(var u=o[a],l=u.length,c=-l;;){if(-1===(c=n.indexOf(u,c+l)))break;r&&!this._isEntireWord(n,c,l)||i.push({match:c,matchLength:l,skipped:!1})}this._pageMatchesLength[e]=[],this._pageMatches[e]=[],this._prepareMatches(i,this._pageMatches[e],this._pageMatchesLength[e])}},{key:"_calculateMatch",value:function(t){var e=this._pageContents[t],n=this._query,r=this._state,i=r.caseSensitive,o=r.entireWord,a=r.phraseSearch;if(0!==n.length){i||(e=e.toLowerCase(),n=n.toLowerCase()),a?this._calculatePhraseMatch(n,t,e,o):this._calculateWordMatch(n,t,e,o),this._state.highlightAll&&this._updatePage(t),this._resumePageIdx===t&&(this._resumePageIdx=null,this._nextPageMatch());var s=this._pageMatches[t].length;s>0&&(this._matchesCountTotal+=s,this._updateUIResultsCount())}}},{key:"_extractText",value:function(){var t=this;if(!(this._extractTextPromises.length>0))for(var e=Promise.resolve(),n=0,r=this._linkService.pagesCount;n<r;n++)!function(n,r){var i=(0,s.createPromiseCapability)();t._extractTextPromises[n]=i.promise,e=e.then(function(){return t._pdfDocument.getPage(n+1).then(function(t){return t.getTextContent({normalizeWhitespace:!0})}).then(function(e){for(var r=e.items,o=[],s=0,u=r.length;s<u;s++)o.push(r[s].str);t._pageContents[n]=a(o.join("")),i.resolve(n)},function(e){console.error("Unable to get text content for page ".concat(n+1),e),t._pageContents[n]="",i.resolve(n)})})}(n)}},{key:"_updatePage",value:function(t){this._scrollMatches&&this._selected.pageIdx===t&&(this._linkService.page=t+1),this._eventBus.dispatch("updatetextlayermatches",{source:this,pageIndex:t})}},{key:"_updateAllPages",value:function(){this._eventBus.dispatch("updatetextlayermatches",{source:this,pageIndex:-1})}},{key:"_nextMatch",value:function(){var t=this,e=this._state.findPrevious,n=this._linkService.page-1,r=this._linkService.pagesCount;if(this._highlightMatches=!0,this._dirtyMatch){this._dirtyMatch=!1,this._selected.pageIdx=this._selected.matchIdx=-1,this._offset.pageIdx=n,this._offset.matchIdx=null,this._offset.wrapped=!1,this._resumePageIdx=null,this._pageMatches.length=0,this._pageMatchesLength.length=0,this._matchesCountTotal=0,this._updateAllPages();for(var i=0;i<r;i++)!0!==this._pendingFindMatches[i]&&(this._pendingFindMatches[i]=!0,this._extractTextPromises[i].then(function(e){delete t._pendingFindMatches[e],t._calculateMatch(e)}))}if(""===this._query)return void this._updateUIState(c.FOUND);if(!this._resumePageIdx){var o=this._offset;if(this._pagesToSearch=r,null!==o.matchIdx){var a=this._pageMatches[o.pageIdx].length;if(!e&&o.matchIdx+1<a||e&&o.matchIdx>0)return o.matchIdx=e?o.matchIdx-1:o.matchIdx+1,void this._updateMatch(!0);this._advanceOffsetPage(e)}this._nextPageMatch()}}},{key:"_matchesReady",value:function(t){var e=this._offset,n=t.length,r=this._state.findPrevious;return n?(e.matchIdx=r?n-1:0,this._updateMatch(!0),!0):(this._advanceOffsetPage(r),!!(e.wrapped&&(e.matchIdx=null,this._pagesToSearch<0))&&(this._updateMatch(!1),!0))}},{key:"_nextPageMatch",value:function(){null!==this._resumePageIdx&&console.error("There can only be one pending page.");var t=null;do{var e=this._offset.pageIdx;if(!(t=this._pageMatches[e])){this._resumePageIdx=e;break}}while(!this._matchesReady(t))}},{key:"_advanceOffsetPage",value:function(t){var e=this._offset,n=this._linkService.pagesCount;e.pageIdx=t?e.pageIdx-1:e.pageIdx+1,e.matchIdx=null,this._pagesToSearch--,(e.pageIdx>=n||e.pageIdx<0)&&(e.pageIdx=t?n-1:0,e.wrapped=!0)}},{key:"_updateMatch",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=c.NOT_FOUND,n=this._offset.wrapped;if(this._offset.wrapped=!1,t){var r=this._selected.pageIdx;this._selected.pageIdx=this._offset.pageIdx,this._selected.matchIdx=this._offset.matchIdx,e=n?c.WRAPPED:c.FOUND,-1!==r&&r!==this._selected.pageIdx&&this._updatePage(r)}this._updateUIState(e,this._state.findPrevious),-1!==this._selected.pageIdx&&(this._scrollMatches=!0,this._updatePage(this._selected.pageIdx))}},{key:"_onFindBarClose",value:function(t){var e=this,n=this._pdfDocument;this._firstPageCapability.promise.then(function(){!e._pdfDocument||n&&e._pdfDocument!==n||(e._findTimeout&&(clearTimeout(e._findTimeout),e._findTimeout=null),e._resumePageIdx&&(e._resumePageIdx=null,e._dirtyMatch=!0),e._updateUIState(c.FOUND),e._highlightMatches=!1,e._updateAllPages())})}},{key:"_requestMatchesCount",value:function(){var t=this._selected,e=t.pageIdx,n=t.matchIdx,r=0,i=this._matchesCountTotal;if(-1!==n){for(var o=0;o<e;o++)r+=this._pageMatches[o]&&this._pageMatches[o].length||0;r+=n+1}return(r<1||r>i)&&(r=i=0),{current:r,total:i}}},{key:"_updateUIResultsCount",value:function(){this._eventBus.dispatch("updatefindmatchescount",{source:this,matchesCount:this._requestMatchesCount()})}},{key:"_updateUIState",value:function(t,e){this._eventBus.dispatch("updatefindcontrolstate",{source:this,state:t,previous:e,matchesCount:this._requestMatchesCount(),rawQuery:this._state?this._state.query:null})}},{key:"highlightMatches",get:function(){return this._highlightMatches}},{key:"pageMatches",get:function(){return this._pageMatches}},{key:"pageMatchesLength",get:function(){return this._pageMatchesLength}},{key:"selected",get:function(){return this._selected}},{key:"state",get:function(){return this._state}},{key:"_query",get:function(){return this._state.query!==this._rawQuery&&(this._rawQuery=this._state.query,this._normalizedQuery=a(this._state.query)),this._normalizedQuery}}]),t}();e.PDFFindController=h},function(t,e,n){"use strict";function r(t){return t<11904}function i(t){return 0==(65408&t)}function o(t){return t>=97&&t<=122||t>=65&&t<=90}function a(t){return t>=48&&t<=57}function s(t){return 32===t||9===t||13===t||10===t}function u(t){return t>=13312&&t<=40959||t>=63744&&t<=64255}function l(t){return t>=12448&&t<=12543}function c(t){return t>=12352&&t<=12447}function f(t){return t>=65376&&t<=65439}function d(t){return 3584==(65408&t)}function h(t){return r(t)?i(t)?s(t)?p.SPACE:o(t)||a(t)||95===t?p.ALPHA_LETTER:p.PUNCT:d(t)?p.THAI_LETTER:160===t?p.SPACE:p.ALPHA_LETTER:u(t)?p.HAN_LETTER:l(t)?p.KATAKANA_LETTER:c(t)?p.HIRAGANA_LETTER:f(t)?p.HALFWIDTH_KATAKANA_LETTER:p.ALPHA_LETTER}Object.defineProperty(e,"__esModule",{value:!0}),e.getCharacterType=h,e.CharacterType=void 0;var p={SPACE:0,ALPHA_LETTER:1,PUNCT:2,HAN_LETTER:3,KATAKANA_LETTER:4,HIRAGANA_LETTER:5,HALFWIDTH_KATAKANA_LETTER:6,THAI_LETTER:7};e.CharacterType=p},function(t,e,n){"use strict";function r(t){"@babel/helpers - typeof";return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){return l(t)||u(t,e)||a(t,e)||o()}function o(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function a(t,e){if(t){if("string"==typeof t)return s(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(t,e):void 0}}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function u(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}function l(t){if(Array.isArray(t))return t}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function d(t,e,n){return e&&f(t.prototype,e),n&&f(t,n),t}function h(){return document.location.hash}function p(t,e){return"string"==typeof t&&"string"==typeof e&&(t===e||(0,m.parseQueryString)(t).nameddest===e)}function g(t,e){function n(t,e){if(r(t)!==r(e))return!1;if(Array.isArray(t)||Array.isArray(e))return!1;if(null!==t&&"object"===r(t)&&null!==e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(var i in t)if(!n(t[i],e[i]))return!1;return!0}return t===e||Number.isNaN(t)&&Number.isNaN(e)}if(!Array.isArray(t)||!Array.isArray(e))return!1;if(t.length!==e.length)return!1;for(var i=0,o=t.length;i<o;i++)if(!n(t[i],e[i]))return!1;return!0}Object.defineProperty(e,"__esModule",{value:!0}),e.isDestHashesEqual=p,e.isDestArraysEqual=g,e.PDFHistory=void 0;var m=n(3),v=function(){function t(e){var n=this,r=e.linkService,i=e.eventBus;c(this,t),this.linkService=r,this.eventBus=i,this._initialized=!1,this._fingerprint="",this.reset(),this._boundEvents=null,this._isViewerInPresentationMode=!1,this.eventBus._on("presentationmodechanged",function(t){n._isViewerInPresentationMode=t.active||t.switchInProgress}),this.eventBus._on("pagesinit",function(){n._isPagesLoaded=!1;var t=function t(e){n.eventBus._off("pagesloaded",t),n._isPagesLoaded=!!e.pagesCount};n.eventBus._on("pagesloaded",t)})}return d(t,[{key:"initialize",value:function(t){var e=t.fingerprint,n=t.resetHistory,r=void 0!==n&&n,i=t.updateUrl,o=void 0!==i&&i;if(!e||"string"!=typeof e)return void console.error('PDFHistory.initialize: The "fingerprint" must be a non-empty string.');this._initialized&&this.reset();var a=""!==this._fingerprint&&this._fingerprint!==e;this._fingerprint=e,this._updateUrl=!0===o,this._initialized=!0,this._bindEvents();var s=window.history.state;if(this._popStateInProgress=!1,this._blockHashChange=0,this._currentHash=h(),this._numPositionUpdates=0,this._uid=this._maxUid=0,this._destination=null,this._position=null,!this._isValidState(s,!0)||r){var u=this._parseCurrentHash(!0),l=u.hash,c=u.page,f=u.rotation;return!l||a||r?void this._pushOrReplaceState(null,!0):void this._pushOrReplaceState({hash:l,page:c,rotation:f},!0)}var d=s.destination;this._updateInternalState(d,s.uid,!0),this._uid>this._maxUid&&(this._maxUid=this._uid),void 0!==d.rotation&&(this._initialRotation=d.rotation),d.dest?(this._initialBookmark=JSON.stringify(d.dest),this._destination.page=null):d.hash?this._initialBookmark=d.hash:d.page&&(this._initialBookmark="page=".concat(d.page))}},{key:"reset",value:function(){this._initialized&&(this._pageHide(),this._initialized=!1,this._unbindEvents()),this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),this._initialBookmark=null,this._initialRotation=null}},{key:"push",value:function(t){var e=this,n=t.namedDest,r=void 0===n?null:n,i=t.explicitDest,o=t.pageNumber;if(this._initialized){if(r&&"string"!=typeof r)return void console.error("PDFHistory.push: "+'"'.concat(r,'" is not a valid namedDest parameter.'));if(!Array.isArray(i))return void console.error("PDFHistory.push: "+'"'.concat(i,'" is not a valid explicitDest parameter.'));if(!(Number.isInteger(o)&&o>0&&o<=this.linkService.pagesCount)&&(null!==o||this._destination))return void console.error("PDFHistory.push: "+'"'.concat(o,'" is not a valid pageNumber parameter.'));var a=r||JSON.stringify(i);if(a){var s=!1;if(this._destination&&(p(this._destination.hash,a)||g(this._destination.dest,i))){if(this._destination.page)return;s=!0}this._popStateInProgress&&!s||(this._pushOrReplaceState({dest:i,hash:a,page:o,rotation:this.linkService.rotation},s),this._popStateInProgress||(this._popStateInProgress=!0,Promise.resolve().then(function(){e._popStateInProgress=!1})))}}}},{key:"pushCurrentPosition",value:function(){this._initialized&&!this._popStateInProgress&&this._tryPushCurrentPosition()}},{key:"back",value:function(){if(this._initialized&&!this._popStateInProgress){var t=window.history.state;this._isValidState(t)&&t.uid>0&&window.history.back()}}},{key:"forward",value:function(){if(this._initialized&&!this._popStateInProgress){var t=window.history.state;this._isValidState(t)&&t.uid<this._maxUid&&window.history.forward()}}},{key:"_pushOrReplaceState",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e||!this._destination,r={fingerprint:this._fingerprint,uid:n?this._uid:this._uid+1,destination:t};this._updateInternalState(t,r.uid);var i;if(this._updateUrl&&t&&t.hash){var o=document.location.href.split("#")[0];o.startsWith("file://")||(i="".concat(o,"#").concat(t.hash))}n?window.history.replaceState(r,"",i):(this._maxUid=this._uid,window.history.pushState(r,"",i))}},{key:"_tryPushCurrentPosition",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this._position){var e=this._position;if(t&&(e=Object.assign(Object.create(null),this._position),e.temporary=!0),!this._destination)return void this._pushOrReplaceState(e);if(this._destination.temporary)return void this._pushOrReplaceState(e,!0);if(this._destination.hash!==e.hash&&(this._destination.page||!(this._numPositionUpdates<=50))){var n=!1;if(this._destination.page>=e.first&&this._destination.page<=e.page){if(this._destination.dest||!this._destination.first)return;n=!0}this._pushOrReplaceState(e,n)}}}},{key:"_isValidState",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!t)return!1;if(t.fingerprint!==this._fingerprint){if(!e)return!1;if("string"!=typeof t.fingerprint||t.fingerprint.length!==this._fingerprint.length)return!1;var n=performance.getEntriesByType("navigation"),o=i(n,1),a=o[0];if(!a||"reload"!==a.type)return!1}return!(!Number.isInteger(t.uid)||t.uid<0)&&(null!==t.destination&&"object"===r(t.destination))}},{key:"_updateInternalState",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),n&&t&&t.temporary&&delete t.temporary,this._destination=t,this._uid=e,this._numPositionUpdates=0}},{key:"_parseCurrentHash",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=unescape(h()).substring(1),n=(0,m.parseQueryString)(e),r=n.nameddest||"",i=0|n.page;return Number.isInteger(i)&&i>0&&i<=this.linkService.pagesCount&&!(t&&r.length>0)||(i=null),{hash:e,page:i,rotation:this.linkService.rotation}}},{key:"_updateViewarea",value:function(t){var e=this,n=t.location;this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),this._position={hash:this._isViewerInPresentationMode?"page=".concat(n.pageNumber):n.pdfOpenParams.substring(1),page:this.linkService.page,first:n.pageNumber,rotation:n.rotation},this._popStateInProgress||(this._isPagesLoaded&&this._destination&&!this._destination.page&&this._numPositionUpdates++,this._updateViewareaTimeout=setTimeout(function(){e._popStateInProgress||e._tryPushCurrentPosition(!0),e._updateViewareaTimeout=null},1e3))}},{key:"_popState",value:function(t){var e=this,n=t.state,r=h(),i=this._currentHash!==r;if(this._currentHash=r,!n){this._uid++;var o=this._parseCurrentHash(),a=o.hash,s=o.page,u=o.rotation;return void this._pushOrReplaceState({hash:a,page:s,rotation:u},!0)}if(this._isValidState(n)){this._popStateInProgress=!0,i&&(this._blockHashChange++,(0,m.waitOnEventOrTimeout)({target:window,name:"hashchange",delay:1e3}).then(function(){e._blockHashChange--}));var l=n.destination;this._updateInternalState(l,n.uid,!0),this._uid>this._maxUid&&(this._maxUid=this._uid),(0,m.isValidRotation)(l.rotation)&&(this.linkService.rotation=l.rotation),l.dest?this.linkService.navigateTo(l.dest):l.hash?this.linkService.setHash(l.hash):l.page&&(this.linkService.page=l.page),Promise.resolve().then(function(){e._popStateInProgress=!1})}}},{key:"_pageHide",value:function(){this._destination&&!this._destination.temporary||this._tryPushCurrentPosition()}},{key:"_bindEvents",value:function(){this._boundEvents||(this._boundEvents={updateViewarea:this._updateViewarea.bind(this),popState:this._popState.bind(this),pageHide:this._pageHide.bind(this)},this.eventBus._on("updateviewarea",this._boundEvents.updateViewarea),window.addEventListener("popstate",this._boundEvents.popState),window.addEventListener("pagehide",this._boundEvents.pageHide))}},{key:"_unbindEvents",value:function(){this._boundEvents&&(this.eventBus._off("updateviewarea",this._boundEvents.updateViewarea),window.removeEventListener("popstate",this._boundEvents.popState),window.removeEventListener("pagehide",this._boundEvents.pageHide),this._boundEvents=null)}},{key:"popStateInProgress",get:function(){return this._initialized&&(this._popStateInProgress||this._blockHashChange>0)}},{key:"initialBookmark",get:function(){return this._initialized?this._initialBookmark:null}},{key:"initialRotation",get:function(){return this._initialized?this._initialRotation:null}}]),t}();e.PDFHistory=v},function(t,e,n){"use strict";function r(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}function i(t){return function(){var e=this,n=arguments;return new Promise(function(i,o){function a(t){r(u,i,o,a,s,"next",t)}function s(t){r(u,i,o,a,s,"throw",t)}var u=t.apply(e,n);a(void 0)})}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function s(t,e,n){return e&&a(t.prototype,e),n&&a(t,n),t}Object.defineProperty(e,"__esModule",{value:!0}),e.PDFPageView=void 0;var u=function(t){return t&&t.__esModule?t:{default:t}}(n(4)),l=n(3),c=n(2),f=n(17),d=n(10),h=d.viewerCompatibilityParams.maxCanvasPixels||16777216,p=function(){function t(e){o(this,t);var n=e.container,r=e.defaultViewport;this.id=e.id,this.renderingId="page"+this.id,this.pdfPage=null,this.pageLabel=null,this.rotation=0,this.scale=e.scale||l.DEFAULT_SCALE,this.viewport=r,this.pdfPageRotate=r.rotation,this._annotationStorage=e.annotationStorage||null,this._optionalContentConfigPromise=e.optionalContentConfigPromise||null,this.hasRestrictedScaling=!1,this.textLayerMode=Number.isInteger(e.textLayerMode)?e.textLayerMode:l.TextLayerMode.ENABLE,this.imageResourcesPath=e.imageResourcesPath||"",this.renderInteractiveForms="boolean"!=typeof e.renderInteractiveForms||e.renderInteractiveForms,this.useOnlyCssZoom=e.useOnlyCssZoom||!1,this.maxCanvasPixels=e.maxCanvasPixels||h,this.eventBus=e.eventBus,this.renderingQueue=e.renderingQueue,this.textLayerFactory=e.textLayerFactory,this.annotationLayerFactory=e.annotationLayerFactory,this.renderer=e.renderer||l.RendererType.CANVAS,this.enableWebGL=e.enableWebGL||!1,this.l10n=e.l10n||l.NullL10n,this.paintTask=null,this.paintedViewportMap=new WeakMap,this.renderingState=f.RenderingStates.INITIAL,this.resume=null,this.error=null,this.annotationLayer=null,this.textLayer=null,this.zoomLayer=null;var i=document.createElement("div");i.className="page",i.style.width=Math.floor(this.viewport.width)+"px",i.style.height=Math.floor(this.viewport.height)+"px",i.setAttribute("data-page-number",this.id),this.div=i,n.appendChild(i)}return s(t,[{key:"setPdfPage",value:function(t){this.pdfPage=t,this.pdfPageRotate=t.rotate;var e=(this.rotation+this.pdfPageRotate)%360;this.viewport=t.getViewport({scale:this.scale*l.CSS_UNITS,rotation:e}),this.stats=t.stats,this.reset()}},{key:"destroy",value:function(){this.reset(),this.pdfPage&&this.pdfPage.cleanup()}},{key:"_renderAnnotationLayer",value:function(){function t(){return e.apply(this,arguments)}var e=i(u.default.mark(function t(){var e;return u.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e=null,t.prev=1,t.next=4,this.annotationLayer.render(this.viewport,"display");case 4:t.next=9;break;case 6:t.prev=6,t.t0=t.catch(1),e=t.t0;case 9:return t.prev=9,this.eventBus.dispatch("annotationlayerrendered",{source:this,pageNumber:this.id,error:e}),t.finish(9);case 12:case"end":return t.stop()}},t,this,[[1,6,9,12]])}));return t}()},{key:"_resetZoomLayer",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.zoomLayer){var e=this.zoomLayer.firstChild;this.paintedViewportMap.delete(e),e.width=0,e.height=0,t&&this.zoomLayer.remove(),this.zoomLayer=null}}},{key:"reset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.cancelRendering(e),this.renderingState=f.RenderingStates.INITIAL;var n=this.div;n.style.width=Math.floor(this.viewport.width)+"px",n.style.height=Math.floor(this.viewport.height)+"px";for(var r=n.childNodes,i=t&&this.zoomLayer||null,o=e&&this.annotationLayer&&this.annotationLayer.div||null,a=r.length-1;a>=0;a--){var s=r[a];i!==s&&o!==s&&n.removeChild(s)}n.removeAttribute("data-loaded"),o?this.annotationLayer.hide():this.annotationLayer&&(this.annotationLayer.cancel(),this.annotationLayer=null),i||(this.canvas&&(this.paintedViewportMap.delete(this.canvas),this.canvas.width=0,this.canvas.height=0,delete this.canvas),this._resetZoomLayer()),this.svg&&(this.paintedViewportMap.delete(this.svg),delete this.svg),this.loadingIconDiv=document.createElement("div"),this.loadingIconDiv.className="loadingIcon",n.appendChild(this.loadingIconDiv)}},{key:"update",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this.scale=t||this.scale,void 0!==e&&(this.rotation=e),n instanceof Promise&&(this._optionalContentConfigPromise=n);var r=(this.rotation+this.pdfPageRotate)%360;if(this.viewport=this.viewport.clone({scale:this.scale*l.CSS_UNITS,rotation:r}),this.svg)return this.cssTransform(this.svg,!0),void this.eventBus.dispatch("pagerendered",{source:this,pageNumber:this.id,cssTransform:!0,timestamp:performance.now()});var i=!1;if(this.canvas&&this.maxCanvasPixels>0){var o=this.outputScale;(Math.floor(this.viewport.width)*o.sx|0)*(Math.floor(this.viewport.height)*o.sy|0)>this.maxCanvasPixels&&(i=!0)}if(this.canvas){if(this.useOnlyCssZoom||this.hasRestrictedScaling&&i)return this.cssTransform(this.canvas,!0),void this.eventBus.dispatch("pagerendered",{source:this,pageNumber:this.id,cssTransform:!0,timestamp:performance.now()});this.zoomLayer||this.canvas.hasAttribute("hidden")||(this.zoomLayer=this.canvas.parentNode,this.zoomLayer.style.position="absolute")}this.zoomLayer&&this.cssTransform(this.zoomLayer.firstChild),this.reset(!0,!0)}},{key:"cancelRendering",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.paintTask&&(this.paintTask.cancel(),this.paintTask=null),this.resume=null,this.textLayer&&(this.textLayer.cancel(),this.textLayer=null),!t&&this.annotationLayer&&(this.annotationLayer.cancel(),this.annotationLayer=null)}},{key:"cssTransform",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.viewport.width,r=this.viewport.height,i=this.div;t.style.width=t.parentNode.style.width=i.style.width=Math.floor(n)+"px",t.style.height=t.parentNode.style.height=i.style.height=Math.floor(r)+"px";var o=this.viewport.rotation-this.paintedViewportMap.get(t).rotation,a=Math.abs(o),s=1,u=1;90!==a&&270!==a||(s=r/n,u=n/r);var l="rotate("+o+"deg) scale("+s+","+u+")";if(t.style.transform=l,this.textLayer){var c=this.textLayer.viewport,f=this.viewport.rotation-c.rotation,d=Math.abs(f),h=n/c.width;90!==d&&270!==d||(h=n/c.height);var p,g,m=this.textLayer.textLayerDiv;switch(d){case 0:p=g=0;break;case 90:p=0,g="-"+m.style.height;break;case 180:p="-"+m.style.width,g="-"+m.style.height;break;case 270:p="-"+m.style.width,g=0;break;default:console.error("Bad rotation value.")}m.style.transform="rotate("+d+"deg) scale("+h+", "+h+") translate("+p+", "+g+")",m.style.transformOrigin="0% 0%"}e&&this.annotationLayer&&this._renderAnnotationLayer()}},{key:"getPagePoint",value:function(t,e){return this.viewport.convertToPdfPoint(t,e)}},{key:"draw",value:function(){var t=this;this.renderingState!==f.RenderingStates.INITIAL&&(console.error("Must be in new state before drawing"),this.reset());var e=this.div,n=this.pdfPage;if(!n)return this.renderingState=f.RenderingStates.FINISHED,this.loadingIconDiv&&(e.removeChild(this.loadingIconDiv),delete this.loadingIconDiv),Promise.reject(new Error("pdfPage is not loaded"));this.renderingState=f.RenderingStates.RUNNING;var r=document.createElement("div");r.style.width=e.style.width,r.style.height=e.style.height,r.classList.add("canvasWrapper"),this.annotationLayer&&this.annotationLayer.div?e.insertBefore(r,this.annotationLayer.div):e.appendChild(r);var o=null;if(this.textLayerMode!==l.TextLayerMode.DISABLE&&this.textLayerFactory){var a=document.createElement("div");a.className="textLayer",a.style.width=r.style.width,a.style.height=r.style.height,this.annotationLayer&&this.annotationLayer.div?e.insertBefore(a,this.annotationLayer.div):e.appendChild(a),o=this.textLayerFactory.createTextLayerBuilder(a,this.id-1,this.viewport,this.textLayerMode===l.TextLayerMode.ENABLE_ENHANCE,this.eventBus)}this.textLayer=o;var s=null;this.renderingQueue&&(s=function(e){if(!t.renderingQueue.isHighestPriority(t))return t.renderingState=f.RenderingStates.PAUSED,void(t.resume=function(){t.renderingState=f.RenderingStates.RUNNING,e()});e()});var d=function(){var r=i(u.default.mark(function r(i){return u.default.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(h===t.paintTask&&(t.paintTask=null),!(i instanceof c.RenderingCancelledException)){r.next=4;break}return t.error=null,r.abrupt("return");case 4:if(t.renderingState=f.RenderingStates.FINISHED,t.loadingIconDiv&&(e.removeChild(t.loadingIconDiv),delete t.loadingIconDiv),t._resetZoomLayer(!0),t.error=i,t.stats=n.stats,t.eventBus.dispatch("pagerendered",{source:t,pageNumber:t.id,cssTransform:!1,timestamp:performance.now()}),!i){r.next=12;break}throw i;case 12:case"end":return r.stop()}},r)}));return function(t){return r.apply(this,arguments)}}(),h=this.renderer===l.RendererType.SVG?this.paintOnSvg(r):this.paintOnCanvas(r);h.onRenderContinue=s,this.paintTask=h;var p=h.promise.then(function(){return d(null).then(function(){if(o){var t=n.streamTextContent({normalizeWhitespace:!0});o.setTextContentStream(t),o.render()}})},function(t){return d(t)});return this.annotationLayerFactory&&(this.annotationLayer||(this.annotationLayer=this.annotationLayerFactory.createAnnotationLayerBuilder(e,n,this._annotationStorage,this.imageResourcesPath,this.renderInteractiveForms,this.l10n)),this._renderAnnotationLayer()),e.setAttribute("data-loaded",!0),this.eventBus.dispatch("pagerender",{source:this,pageNumber:this.id}),p}},{key:"paintOnCanvas",value:function(t){var e=(0,c.createPromiseCapability)(),n={promise:e.promise,onRenderContinue:function(t){t()},cancel:function(){y.cancel()}},r=this.viewport,i=document.createElement("canvas");this.l10n.get("page_canvas",{page:this.id},"Page {{page}}").then(function(t){i.setAttribute("aria-label",t)}),i.setAttribute("hidden","hidden");var o=!0,a=function(){o&&(i.removeAttribute("hidden"),o=!1)};t.appendChild(i),this.canvas=i,i.mozOpaque=!0;var s=i.getContext("2d",{alpha:!1}),u=(0,l.getOutputScale)(s);if(this.outputScale=u,this.useOnlyCssZoom){var f=r.clone({scale:l.CSS_UNITS});u.sx*=f.width/r.width,u.sy*=f.height/r.height,u.scaled=!0}if(this.maxCanvasPixels>0){var d=r.width*r.height,h=Math.sqrt(this.maxCanvasPixels/d);u.sx>h||u.sy>h?(u.sx=h,u.sy=h,u.scaled=!0,this.hasRestrictedScaling=!0):this.hasRestrictedScaling=!1}var p=(0,l.approximateFraction)(u.sx),g=(0,l.approximateFraction)(u.sy);i.width=(0,l.roundToDivide)(r.width*u.sx,p[0]),i.height=(0,l.roundToDivide)(r.height*u.sy,g[0]),i.style.width=(0,l.roundToDivide)(r.width,p[1])+"px",i.style.height=(0,l.roundToDivide)(r.height,g[1])+"px",this.paintedViewportMap.set(i,r);var m=u.scaled?[u.sx,0,0,u.sy,0,0]:null,v={canvasContext:s,transform:m,viewport:this.viewport,enableWebGL:this.enableWebGL,renderInteractiveForms:this.renderInteractiveForms,optionalContentConfigPromise:this._optionalContentConfigPromise},y=this.pdfPage.render(v);return y.onContinue=function(t){a(),n.onRenderContinue?n.onRenderContinue(t):t()},y.promise.then(function(){a(),e.resolve(void 0)},function(t){a(),e.reject(t)}),n}},{key:"paintOnSvg",value:function(t){var e=this,n=!1,r=function(){if(n)throw new c.RenderingCancelledException("Rendering cancelled, page ".concat(e.id),"svg")},i=this.pdfPage,o=this.viewport.clone({scale:l.CSS_UNITS});return{promise:i.getOperatorList().then(function(n){return r(),new c.SVGGraphics(i.commonObjs,i.objs).getSVG(n,o).then(function(n){r(),e.svg=n,e.paintedViewportMap.set(n,o),n.style.width=t.style.width,n.style.height=t.style.height,e.renderingState=f.RenderingStates.FINISHED,t.appendChild(n)})}),onRenderContinue:function(t){t()},cancel:function(){n=!0}}}},{key:"setPageLabel",value:function(t){this.pageLabel="string"==typeof t?t:null,null!==this.pageLabel?this.div.setAttribute("data-page-label",this.pageLabel):this.div.removeAttribute("data-page-label")}},{key:"width",get:function(){return this.viewport.width}},{key:"height",get:function(){return this.viewport.height}}]),t}();e.PDFPageView=p},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),t}Object.defineProperty(e,"__esModule",{value:!0}),e.PDFRenderingQueue=e.RenderingStates=void 0;var a={INITIAL:0,RUNNING:1,PAUSED:2,FINISHED:3};e.RenderingStates=a;var s=function(){function t(){r(this,t),this.pdfViewer=null,this.pdfThumbnailViewer=null,this.onIdle=null,this.highestPriorityPage=null,this.idleTimeout=null,this.printing=!1,this.isThumbnailViewEnabled=!1}return o(t,[{key:"setViewer",value:function(t){this.pdfViewer=t}},{key:"setThumbnailViewer",value:function(t){this.pdfThumbnailViewer=t}},{key:"isHighestPriority",value:function(t){return this.highestPriorityPage===t.renderingId}},{key:"renderHighestPriority",value:function(t){this.idleTimeout&&(clearTimeout(this.idleTimeout),this.idleTimeout=null),this.pdfViewer.forceRendering(t)||this.pdfThumbnailViewer&&this.isThumbnailViewEnabled&&this.pdfThumbnailViewer.forceRendering()||this.printing||this.onIdle&&(this.idleTimeout=setTimeout(this.onIdle.bind(this),3e4))}},{key:"getHighestPriority",value:function(t,e,n){var r=t.views,i=r.length;if(0===i)return null;for(var o=0;o<i;++o){var a=r[o].view;if(!this.isViewFinished(a))return a}if(n){var s=t.last.id;if(e[s]&&!this.isViewFinished(e[s]))return e[s]}else{var u=t.first.id-2;if(e[u]&&!this.isViewFinished(e[u]))return e[u]}return null}},{key:"isViewFinished",value:function(t){return t.renderingState===a.FINISHED}},{key:"renderView",value:function(t){var e=this;switch(t.renderingState){case a.FINISHED:return!1;case a.PAUSED:this.highestPriorityPage=t.renderingId,t.resume();break;case a.RUNNING:this.highestPriorityPage=t.renderingId;break;case a.INITIAL:this.highestPriorityPage=t.renderingId,t.draw().finally(function(){e.renderHighestPriority()}).catch(function(t){console.error('renderView: "'.concat(t,'"'))})}return!0}}]),t}();e.PDFRenderingQueue=s},function(t,e,n){"use strict";function r(t){"@babel/helpers - typeof";return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function a(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}function s(t,e,n){return(s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=u(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(n):i.value}})(t,e,n||t)}function u(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=g(t)););return t}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function f(t){var e=p();return function(){var n,r=g(t);if(e){var i=g(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return d(this,n)}}function d(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?h(t):e}function h(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function p(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}function g(t){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.PDFSinglePageViewer=void 0;var m=n(19),v=n(2),y=function(t){function e(t){var r;return i(this,e),r=n.call(this,t),r.eventBus._on("pagesinit",function(t){r._ensurePageViewVisible()}),r}l(e,t);var n=f(e);return a(e,[{key:"_resetView",value:function(){s(g(e.prototype),"_resetView",this).call(this),this._previousPageNumber=1,this._shadowViewer=document.createDocumentFragment(),this._updateScrollDown=null}},{key:"_ensurePageViewVisible",value:function(){var t=this._pages[this._currentPageNumber-1],e=this._pages[this._previousPageNumber-1],n=this.viewer.childNodes;switch(n.length){case 0:this.viewer.appendChild(t.div);break;case 1:if(n[0]!==e.div)throw new Error("_ensurePageViewVisible: Unexpected previously visible page.");if(t===e)break;this._shadowViewer.appendChild(e.div),this.viewer.appendChild(t.div),this.container.scrollTop=0;break;default:throw new Error("_ensurePageViewVisible: Only one page should be visible at a time.")}this._previousPageNumber=this._currentPageNumber}},{key:"_scrollUpdate",value:function(){this._updateScrollDown&&this._updateScrollDown(),s(g(e.prototype),"_scrollUpdate",this).call(this)}},{key:"_scrollIntoView",value:function(t){var n=this,r=t.pageDiv,i=t.pageSpot,o=void 0===i?null:i,a=t.pageNumber,u=void 0===a?null:a;u&&this._setCurrentPageNumber(u);var l=this._currentPageNumber>=this._previousPageNumber;this._ensurePageViewVisible(),this.update(),s(g(e.prototype),"_scrollIntoView",this).call(this,{pageDiv:r,pageSpot:o,pageNumber:u}),this._updateScrollDown=function(){n.scroll.down=l,n._updateScrollDown=null}}},{key:"_getVisiblePages",value:function(){return this._getCurrentVisiblePage()}},{key:"_updateHelper",value:function(t){}},{key:"_updateScrollMode",value:function(){}},{key:"_updateSpreadMode",value:function(){}},{key:"_viewerElement",get:function(){return(0,v.shadow)(this,"_viewerElement",this._shadowViewer)}},{key:"_isScrollModeHorizontal",get:function(){return(0,v.shadow)(this,"_isScrollModeHorizontal",!1)}}]),e}(m.BaseViewer);e.PDFSinglePageViewer=y},function(t,e,n){"use strict";function r(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=i(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}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 a,s=!0,u=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}function i(t,e){if(t){if("string"==typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(t,e):void 0}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function u(t,e,n){return e&&s(t.prototype,e),n&&s(t,n),t}function l(t){var e=[];this.push=function(n){var r=e.indexOf(n);r>=0&&e.splice(r,1),e.push(n),e.length>t&&e.shift().destroy()},this.resize=function(n,r){if(t=n,r){for(var i=new Set,o=0,a=r.length;o<a;++o)i.add(r[o].id);(0,f.moveToEndOfArray)(e,function(t){return i.has(t.id)})}for(;e.length>t;)e.shift().destroy()}}function c(t,e){return e===t||Math.abs(e-t)<1e-15}Object.defineProperty(e,"__esModule",{value:!0}),e.BaseViewer=void 0;var f=n(3),d=n(17),h=n(1),p=n(2),g=n(16),m=n(7),v=n(8),y=function(){function t(e){var n=this;if(a(this,t),this.constructor===t)throw new Error("Cannot initialize BaseViewer.");if(this._name=this.constructor.name,this.container=e.container,this.viewer=e.viewer||e.container.firstElementChild,!(this.container instanceof HTMLDivElement&&this.viewer instanceof HTMLDivElement))throw new Error("Invalid `container` and/or `viewer` option.");this.eventBus=e.eventBus,this.linkService=e.linkService||new m.SimpleLinkService,this.downloadManager=e.downloadManager||null,this.findController=e.findController||null,this.removePageBorders=e.removePageBorders||!1,this.textLayerMode=Number.isInteger(e.textLayerMode)?e.textLayerMode:f.TextLayerMode.ENABLE,this.imageResourcesPath=e.imageResourcesPath||"",this.renderInteractiveForms="boolean"!=typeof e.renderInteractiveForms||e.renderInteractiveForms,this.enablePrintAutoRotate=e.enablePrintAutoRotate||!1,this.renderer=e.renderer||f.RendererType.CANVAS,this.enableWebGL=e.enableWebGL||!1,this.useOnlyCssZoom=e.useOnlyCssZoom||!1,this.maxCanvasPixels=e.maxCanvasPixels,this.l10n=e.l10n||f.NullL10n,this.defaultRenderingQueue=!e.renderingQueue,this.defaultRenderingQueue?(this.renderingQueue=new d.PDFRenderingQueue,this.renderingQueue.setViewer(this)):this.renderingQueue=e.renderingQueue,this.scroll=(0,f.watchScroll)(this.container,this._scrollUpdate.bind(this)),this.presentationModeState=f.PresentationModeState.UNKNOWN,this._onBeforeDraw=this._onAfterDraw=null,this._resetView(),this.removePageBorders&&this.viewer.classList.add("removePageBorders"),Promise.resolve().then(function(){n.eventBus.dispatch("baseviewerinit",{source:n})})}return u(t,[{key:"getPageView",value:function(t){return this._pages[t]}},{key:"_setCurrentPageNumber",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this._currentPageNumber===t?(e&&this._resetCurrentPageView(),!0):0<t&&t<=this.pagesCount&&(this._currentPageNumber=t,this.eventBus.dispatch("pagechanging",{source:this,pageNumber:t,pageLabel:this._pageLabels&&this._pageLabels[t-1]}),e&&this._resetCurrentPageView(),!0)}},{key:"_onePageRenderedOrForceFetch",value:function(){return this.container.offsetParent&&0!==this._getVisiblePages().views.length?this._onePageRenderedCapability.promise:Promise.resolve()}},{key:"setDocument",value:function(t){var e=this;if(this.pdfDocument&&(this._cancelRendering(),this._resetView(),this.findController&&this.findController.setDocument(null)),this.pdfDocument=t,t){var n=t.numPages,r=t.getPage(1),i=t.annotationStorage,o=t.getOptionalContentConfig();this._pagesCapability.promise.then(function(){e.eventBus.dispatch("pagesloaded",{source:e,pagesCount:n})}),this._onBeforeDraw=function(t){var n=e._pages[t.pageNumber-1];n&&e._buffer.push(n)},this.eventBus._on("pagerender",this._onBeforeDraw),this._onAfterDraw=function(t){t.cssTransform||e._onePageRenderedCapability.settled||(e._onePageRenderedCapability.resolve(),e.eventBus._off("pagerendered",e._onAfterDraw),e._onAfterDraw=null)},this.eventBus._on("pagerendered",this._onAfterDraw),r.then(function(r){e._firstPageCapability.resolve(r),e._optionalContentConfigPromise=o;for(var a=e.currentScale,s=r.getViewport({scale:a*f.CSS_UNITS}),u=e.textLayerMode!==f.TextLayerMode.DISABLE?e:null,l=1;l<=n;++l){var c=new g.PDFPageView({container:e._viewerElement,eventBus:e.eventBus,id:l,scale:a,defaultViewport:s.clone(),annotationStorage:i,optionalContentConfigPromise:o,renderingQueue:e.renderingQueue,textLayerFactory:u,textLayerMode:e.textLayerMode,annotationLayerFactory:e,imageResourcesPath:e.imageResourcesPath,renderInteractiveForms:e.renderInteractiveForms,renderer:e.renderer,enableWebGL:e.enableWebGL,useOnlyCssZoom:e.useOnlyCssZoom,maxCanvasPixels:e.maxCanvasPixels,l10n:e.l10n});e._pages.push(c)}var d=e._pages[0];d&&(d.setPdfPage(r),e.linkService.cachePageRef(1,r.ref)),e._spreadMode!==f.SpreadMode.NONE&&e._updateSpreadMode(),e._onePageRenderedOrForceFetch().then(function(){if(e.findController&&e.findController.setDocument(t),t.loadingParams.disableAutoFetch||n>7500)return void e._pagesCapability.resolve();var r=n-1;if(r<=0)return void e._pagesCapability.resolve();for(var i=2;i<=n;++i)!function(n){t.getPage(n).then(function(t){var i=e._pages[n-1];i.pdfPage||i.setPdfPage(t),e.linkService.cachePageRef(n,t.ref),0==--r&&e._pagesCapability.resolve()},function(t){console.error("Unable to get page ".concat(n," to initialize viewer"),t),0==--r&&e._pagesCapability.resolve()})}(i)}),e.eventBus.dispatch("pagesinit",{source:e}),e.defaultRenderingQueue&&e.update()}).catch(function(t){console.error("Unable to initialize viewer",t)})}}},{key:"setPageLabels",value:function(t){if(this.pdfDocument){t?Array.isArray(t)&&this.pdfDocument.numPages===t.length?this._pageLabels=t:(this._pageLabels=null,console.error("".concat(this._name,".setPageLabels: Invalid page labels."))):this._pageLabels=null;for(var e=0,n=this._pages.length;e<n;e++){var r=this._pages[e],i=this._pageLabels&&this._pageLabels[e];r.setPageLabel(i)}}}},{key:"_resetView",value:function(){this._pages=[],this._currentPageNumber=1,this._currentScale=f.UNKNOWN_SCALE,this._currentScaleValue=null,this._pageLabels=null,this._buffer=new l(10),this._location=null,this._pagesRotation=0,this._optionalContentConfigPromise=null,this._pagesRequests=new WeakMap,this._firstPageCapability=(0,p.createPromiseCapability)(),this._onePageRenderedCapability=(0,p.createPromiseCapability)(),this._pagesCapability=(0,p.createPromiseCapability)(),this._scrollMode=f.ScrollMode.VERTICAL,this._spreadMode=f.SpreadMode.NONE,this._onBeforeDraw&&(this.eventBus._off("pagerender",this._onBeforeDraw),this._onBeforeDraw=null),this._onAfterDraw&&(this.eventBus._off("pagerendered",this._onAfterDraw),this._onAfterDraw=null),this.viewer.textContent="",this._updateScrollMode()}},{key:"_scrollUpdate",value:function(){0!==this.pagesCount&&this.update()}},{key:"_scrollIntoView",value:function(t){var e=t.pageDiv,n=t.pageSpot,r=void 0===n?null:n;t.pageNumber;(0,f.scrollIntoView)(e,r)}},{key:"_setScaleUpdatePages",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(this._currentScaleValue=e.toString(),c(this._currentScale,t))return void(r&&this.eventBus.dispatch("scalechanging",{source:this,scale:t,presetValue:e}));for(var i=0,o=this._pages.length;i<o;i++)this._pages[i].update(t);if(this._currentScale=t,!n){var a,s=this._currentPageNumber;!this._location||this.isInPresentationMode||this.isChangingPresentationMode||(s=this._location.pageNumber,a=[null,{name:"XYZ"},this._location.left,this._location.top,null]),this.scrollPageIntoView({pageNumber:s,destArray:a,allowNegativeOffset:!0})}this.eventBus.dispatch("scalechanging",{source:this,scale:t,presetValue:r?e:void 0}),this.defaultRenderingQueue&&this.update()}},{key:"_setScale",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=parseFloat(t);if(n>0)this._setScaleUpdatePages(n,t,e,!1);else{var r=this._pages[this._currentPageNumber-1];if(!r)return;var i=this.isInPresentationMode||this.removePageBorders,o=i?0:f.SCROLLBAR_PADDING,a=i?0:f.VERTICAL_PADDING;if(!i&&this._isScrollModeHorizontal){var s=[a,o];o=s[0],a=s[1]}var u=(this.container.clientWidth-o)/r.width*r.scale,l=(this.container.clientHeight-a)/r.height*r.scale;switch(t){case"page-actual":n=1;break;case"page-width":n=u;break;case"page-height":n=l;break;case"page-fit":n=Math.min(u,l);break;case"auto":var c=(0,f.isPortraitOrientation)(r)?u:Math.min(l,u);n=Math.min(f.MAX_AUTO_SCALE,c);break;default:return void console.error("".concat(this._name,'._setScale: "').concat(t,'" is an unknown zoom value.'))}this._setScaleUpdatePages(n,t,e,!0)}}},{key:"_resetCurrentPageView",value:function(){this.isInPresentationMode&&this._setScale(this._currentScaleValue,!0);var t=this._pages[this._currentPageNumber-1];this._scrollIntoView({pageDiv:t.div})}},{key:"scrollPageIntoView",value:function(t){var e=t.pageNumber,n=t.destArray,r=void 0===n?null:n,i=t.allowNegativeOffset,o=void 0!==i&&i,a=t.ignoreDestinationZoom,s=void 0!==a&&a;if(this.pdfDocument){var u=Number.isInteger(e)&&this._pages[e-1];if(!u)return void console.error("".concat(this._name,".scrollPageIntoView: ")+'"'.concat(e,'" is not a valid pageNumber parameter.'));if(this.isInPresentationMode||!r)return void this._setCurrentPageNumber(e,!0);var l,c,d=0,h=0,p=0,g=0,m=u.rotation%180!=0,v=(m?u.height:u.width)/u.scale/f.CSS_UNITS,y=(m?u.width:u.height)/u.scale/f.CSS_UNITS,b=0;switch(r[1].name){case"XYZ":d=r[2],h=r[3],b=r[4],d=null!==d?d:0,h=null!==h?h:y;break;case"Fit":case"FitB":b="page-fit";break;case"FitH":case"FitBH":h=r[2],b="page-width",null===h&&this._location&&(d=this._location.left,h=this._location.top);break;case"FitV":case"FitBV":d=r[2],p=v,g=y,b="page-height";break;case"FitR":d=r[2],h=r[3],p=r[4]-d,g=r[5]-h;var _=this.removePageBorders?0:f.SCROLLBAR_PADDING,w=this.removePageBorders?0:f.VERTICAL_PADDING;l=(this.container.clientWidth-_)/p/f.CSS_UNITS,c=(this.container.clientHeight-w)/g/f.CSS_UNITS,b=Math.min(Math.abs(l),Math.abs(c));break;default:return void console.error("".concat(this._name,".scrollPageIntoView: ")+'"'.concat(r[1].name,'" is not a valid destination type.'))}if(s||(b&&b!==this._currentScale?this.currentScaleValue=b:this._currentScale===f.UNKNOWN_SCALE&&(this.currentScaleValue=f.DEFAULT_SCALE_VALUE)),"page-fit"===b&&!r[4])return void this._scrollIntoView({pageDiv:u.div,pageNumber:e});var x=[u.viewport.convertToViewportPoint(d,h),u.viewport.convertToViewportPoint(d+p,h+g)],k=Math.min(x[0][0],x[1][0]),S=Math.min(x[0][1],x[1][1]);o||(k=Math.max(k,0),S=Math.max(S,0)),this._scrollIntoView({pageDiv:u.div,pageSpot:{left:k,top:S},pageNumber:e})}}},{key:"_updateLocation",value:function(t){var e=this._currentScale,n=this._currentScaleValue,r=parseFloat(n)===e?Math.round(1e4*e)/100:n,i=t.id,o="#page="+i;o+="&zoom="+r;var a=this._pages[i-1],s=this.container,u=a.getPagePoint(s.scrollLeft-t.x,s.scrollTop-t.y),l=Math.round(u[0]),c=Math.round(u[1]);o+=","+l+","+c,this._location={pageNumber:i,scale:r,top:c,left:l,rotation:this._pagesRotation,pdfOpenParams:o}}},{key:"_updateHelper",value:function(t){throw new Error("Not implemented: _updateHelper")}},{key:"update",value:function(){var t=this._getVisiblePages(),e=t.views,n=e.length;if(0!==n){var r=Math.max(10,2*n+1);this._buffer.resize(r,e),this.renderingQueue.renderHighestPriority(t),this._updateHelper(e),this._updateLocation(t.first),this.eventBus.dispatch("updateviewarea",{source:this,location:this._location})}}},{key:"containsElement",value:function(t){return this.container.contains(t)}},{key:"focus",value:function(){this.container.focus()}},{key:"_getCurrentVisiblePage",value:function(){if(!this.pagesCount)return{views:[]};var t=this._pages[this._currentPageNumber-1],e=t.div,n={id:t.id,x:e.offsetLeft+e.clientLeft,y:e.offsetTop+e.clientTop,view:t};return{first:n,last:n,views:[n]}}},{key:"_getVisiblePages",value:function(){return(0,f.getVisibleElements)(this.container,this._pages,!0,this._isScrollModeHorizontal)}},{key:"isPageVisible",value:function(t){return!!this.pdfDocument&&(t<1||t>this.pagesCount?(console.error("".concat(this._name,'.isPageVisible: "').concat(t,'" is out of bounds.')),!1):this._getVisiblePages().views.some(function(e){return e.id===t}))}},{key:"cleanup",value:function(){for(var t=0,e=this._pages.length;t<e;t++)this._pages[t]&&this._pages[t].renderingState!==d.RenderingStates.FINISHED&&this._pages[t].reset()}},{key:"_cancelRendering",value:function(){for(var t=0,e=this._pages.length;t<e;t++)this._pages[t]&&this._pages[t].cancelRendering()}},{key:"_ensurePdfPageLoaded",value:function(t){var e=this;if(t.pdfPage)return Promise.resolve(t.pdfPage);if(this._pagesRequests.has(t))return this._pagesRequests.get(t);var n=this.pdfDocument.getPage(t.id).then(function(n){return t.pdfPage||t.setPdfPage(n),e._pagesRequests.delete(t),n}).catch(function(n){console.error("Unable to get page for page view",n),e._pagesRequests.delete(t)});return this._pagesRequests.set(t,n),n}},{key:"forceRendering",value:function(t){var e=this,n=t||this._getVisiblePages(),r=this._isScrollModeHorizontal?this.scroll.right:this.scroll.down,i=this.renderingQueue.getHighestPriority(n,this._pages,r);return!!i&&(this._ensurePdfPageLoaded(i).then(function(){e.renderingQueue.renderView(i)}),!0)}},{key:"createTextLayerBuilder",value:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4?arguments[4]:void 0;return new v.TextLayerBuilder({textLayerDiv:t,eventBus:i,pageIndex:e,viewport:n,findController:this.isInPresentationMode?null:this.findController,enhanceTextSelection:!this.isInPresentationMode&&r})}},{key:"createAnnotationLayerBuilder",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:f.NullL10n;return new h.AnnotationLayerBuilder({pageDiv:t,pdfPage:e,annotationStorage:n,imageResourcesPath:r,renderInteractiveForms:i,linkService:this.linkService,downloadManager:this.downloadManager,l10n:o})}},{key:"getPagesOverview",value:function(){var t=this._pages.map(function(t){var e=t.pdfPage.getViewport({scale:1});return{width:e.width,height:e.height,rotation:e.rotation}});return this.enablePrintAutoRotate?t.map(function(t){return(0,f.isPortraitOrientation)(t)?t:{width:t.height,height:t.width,rotation:(t.rotation+90)%360}}):t}},{key:"_updateScrollMode",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=this._scrollMode,n=this.viewer;n.classList.toggle("scrollHorizontal",e===f.ScrollMode.HORIZONTAL),n.classList.toggle("scrollWrapped",e===f.ScrollMode.WRAPPED),this.pdfDocument&&t&&(this._currentScaleValue&&isNaN(this._currentScaleValue)&&this._setScale(this._currentScaleValue,!0),this._setCurrentPageNumber(t,!0),this.update())}},{key:"_updateSpreadMode",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(this.pdfDocument){var e=this.viewer,n=this._pages;if(e.textContent="",this._spreadMode===f.SpreadMode.NONE)for(var r=0,i=n.length;r<i;++r)e.appendChild(n[r].div);else for(var o=this._spreadMode-1,a=null,s=0,u=n.length;s<u;++s)null===a?(a=document.createElement("div"),a.className="spread",e.appendChild(a)):s%2===o&&(a=a.cloneNode(!1),e.appendChild(a)),a.appendChild(n[s].div);t&&(this._setCurrentPageNumber(t,!0),this.update())}}},{key:"pagesCount",get:function(){return this._pages.length}},{key:"pageViewsReady",get:function(){return!!this._pagesCapability.settled&&this._pages.every(function(t){return t&&t.pdfPage})}},{key:"currentPageNumber",get:function(){return this._currentPageNumber},set:function(t){if(!Number.isInteger(t))throw new Error("Invalid page number.");this.pdfDocument&&(this._setCurrentPageNumber(t,!0)||console.error("".concat(this._name,'.currentPageNumber: "').concat(t,'" is not a valid page.')))}},{key:"currentPageLabel",get:function(){return this._pageLabels&&this._pageLabels[this._currentPageNumber-1]},set:function(t){if(this.pdfDocument){var e=0|t;if(this._pageLabels){var n=this._pageLabels.indexOf(t);n>=0&&(e=n+1)}this._setCurrentPageNumber(e,!0)||console.error("".concat(this._name,'.currentPageLabel: "').concat(t,'" is not a valid page.'))}}},{key:"currentScale",get:function(){return this._currentScale!==f.UNKNOWN_SCALE?this._currentScale:f.DEFAULT_SCALE},set:function(t){if(isNaN(t))throw new Error("Invalid numeric scale.");this.pdfDocument&&this._setScale(t,!1)}},{key:"currentScaleValue",get:function(){return this._currentScaleValue},set:function(t){this.pdfDocument&&this._setScale(t,!1)}},{key:"pagesRotation",get:function(){return this._pagesRotation},set:function(t){if(!(0,f.isValidRotation)(t))throw new Error("Invalid pages rotation angle.");if(this.pdfDocument&&this._pagesRotation!==t){this._pagesRotation=t;for(var e=this._currentPageNumber,n=0,r=this._pages.length;n<r;n++){var i=this._pages[n];i.update(i.scale,t)}this._currentScaleValue&&this._setScale(this._currentScaleValue,!0),this.eventBus.dispatch("rotationchanging",{source:this,pagesRotation:t,pageNumber:e}),this.defaultRenderingQueue&&this.update()}}},{key:"firstPagePromise",get:function(){return this.pdfDocument?this._firstPageCapability.promise:null}},{key:"onePageRendered",get:function(){return this.pdfDocument?this._onePageRenderedCapability.promise:null}},{key:"pagesPromise",get:function(){return this.pdfDocument?this._pagesCapability.promise:null}},{key:"_viewerElement",get:function(){throw new Error("Not implemented: _viewerElement")}},{key:"_isScrollModeHorizontal",get:function(){return!this.isInPresentationMode&&this._scrollMode===f.ScrollMode.HORIZONTAL}},{key:"isInPresentationMode",get:function(){return this.presentationModeState===f.PresentationModeState.FULLSCREEN}},{key:"isChangingPresentationMode",get:function(){return this.presentationModeState===f.PresentationModeState.CHANGING}},{key:"isHorizontalScrollbarEnabled",get:function(){return!this.isInPresentationMode&&this.container.scrollWidth>this.container.clientWidth}},{key:"isVerticalScrollbarEnabled",get:function(){return!this.isInPresentationMode&&this.container.scrollHeight>this.container.clientHeight}},{key:"hasEqualPageSizes",get:function(){for(var t=this._pages[0],e=1,n=this._pages.length;e<n;++e){var r=this._pages[e];if(r.width!==t.width||r.height!==t.height)return!1}return!0}},{key:"optionalContentConfigPromise",get:function(){return this.pdfDocument?this._optionalContentConfigPromise?this._optionalContentConfigPromise:this.pdfDocument.getOptionalContentConfig():Promise.resolve(null)},set:function(t){if(!(t instanceof Promise))throw new Error("Invalid optionalContentConfigPromise: ".concat(t));if(this.pdfDocument&&this._optionalContentConfigPromise){this._optionalContentConfigPromise=t;var e,n=r(this._pages);try{for(n.s();!(e=n.n()).done;){var i=e.value;i.update(i.scale,i.rotation,t)}}catch(t){n.e(t)}finally{n.f()}this.update(),this.eventBus.dispatch("optionalcontentconfigchanged",{source:this,promise:t})}}},{key:"scrollMode",get:function(){return this._scrollMode},set:function(t){if(this._scrollMode!==t){if(!(0,f.isValidScrollMode)(t))throw new Error("Invalid scroll mode: ".concat(t));this._scrollMode=t,this.eventBus.dispatch("scrollmodechanged",{source:this,mode:t}),this._updateScrollMode(this._currentPageNumber)}}},{key:"spreadMode",get:function(){return this._spreadMode},set:function(t){if(this._spreadMode!==t){if(!(0,f.isValidSpreadMode)(t))throw new Error("Invalid spread mode: ".concat(t));this._spreadMode=t,this.eventBus.dispatch("spreadmodechanged",{source:this,mode:t}),this._updateSpreadMode(this._currentPageNumber)}}}]),t}();e.BaseViewer=y},function(t,e,n){"use strict";function r(t){"@babel/helpers - typeof";return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=o(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},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 a,s=!0,u=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}function o(t,e){if(t){if("string"==typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(t,e):void 0}}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function l(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t}function c(t,e,n){return(c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=f(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(n):i.value}})(t,e,n||t)}function f(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=y(t)););return t}function d(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&h(t,e)}function h(t,e){return(h=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function p(t){var e=v();return function(){var n,r=y(t);if(e){var i=y(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return g(this,n)}}function g(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?m(t):e}function m(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function v(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}function y(t){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.PDFViewer=void 0;var b=n(19),_=n(2),w=function(t){function e(){return s(this,e),n.apply(this,arguments)}d(e,t);var n=p(e);return l(e,[{key:"_scrollIntoView",value:function(t){var n=t.pageDiv,r=t.pageSpot,i=void 0===r?null:r,o=t.pageNumber,a=void 0===o?null:o;if(!i&&!this.isInPresentationMode){var s=n.offsetLeft+n.clientLeft,u=s+n.clientWidth,l=this.container,f=l.scrollLeft,d=l.clientWidth;(this._isScrollModeHorizontal||s<f||u>f+d)&&(i={left:0,top:0})}c(y(e.prototype),"_scrollIntoView",this).call(this,{pageDiv:n,pageSpot:i,pageNumber:a})}},{key:"_getVisiblePages",value:function(){return this.isInPresentationMode?this._getCurrentVisiblePage():c(y(e.prototype),"_getVisiblePages",this).call(this)}},{key:"_updateHelper",value:function(t){if(!this.isInPresentationMode){var e,n=this._currentPageNumber,r=!1,o=i(t);try{for(o.s();!(e=o.n()).done;){var a=e.value;if(a.percent<100)break;if(a.id===n){r=!0;break}}}catch(t){o.e(t)}finally{o.f()}r||(n=t[0].id),this._setCurrentPageNumber(n)}}},{key:"_viewerElement",get:function(){return(0,_.shadow)(this,"_viewerElement",this.viewer)}}]),e}(b.BaseViewer);e.PDFViewer=w}])})},function(t,e,n){(function(t,e){!function(t,e){e()}(0,function(){"use strict";function n(){}function r(t,e){return function(){t.apply(e,arguments)}}function i(t){if(!(this instanceof i))throw new TypeError("Promises must be constructed via new");if("function"!=typeof t)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],c(t,this)}function o(t,e){for(;3===t._state;)t=t._value;if(0===t._state)return void t._deferreds.push(e);t._handled=!0,i._immediateFn(function(){var n=1===t._state?e.onFulfilled:e.onRejected;if(null===n)return void(1===t._state?a:s)(e.promise,t._value);var r;try{r=n(t._value)}catch(t){return void s(e.promise,t)}a(e.promise,r)})}function a(t,e){try{if(e===t)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if(e instanceof i)return t._state=3,t._value=e,void u(t);if("function"==typeof n)return void c(r(n,e),t)}t._state=1,t._value=e,u(t)}catch(e){s(t,e)}}function s(t,e){t._state=2,t._value=e,u(t)}function u(t){2===t._state&&0===t._deferreds.length&&i._immediateFn(function(){t._handled||i._unhandledRejectionFn(t._value)});for(var e=0,n=t._deferreds.length;e<n;e++)o(t,t._deferreds[e]);t._deferreds=null}function l(t,e,n){this.onFulfilled="function"==typeof t?t:null,this.onRejected="function"==typeof e?e:null,this.promise=n}function c(t,e){var n=!1;try{t(function(t){n||(n=!0,a(e,t))},function(t){n||(n=!0,s(e,t))})}catch(t){if(n)return;n=!0,s(e,t)}}var f=setTimeout;i.prototype.catch=function(t){return this.then(null,t)},i.prototype.then=function(t,e){var r=new this.constructor(n);return o(this,new l(t,e,r)),r},i.prototype.finally=function(t){var e=this.constructor;return this.then(function(n){return e.resolve(t()).then(function(){return n})},function(n){return e.resolve(t()).then(function(){return e.reject(n)})})},i.all=function(t){return new i(function(e,n){function r(t,a){try{if(a&&("object"==typeof a||"function"==typeof a)){var s=a.then;if("function"==typeof s)return void s.call(a,function(e){r(t,e)},n)}i[t]=a,0==--o&&e(i)}catch(t){n(t)}}if(!t||void 0===t.length)throw new TypeError("Promise.all accepts an array");var i=Array.prototype.slice.call(t);if(0===i.length)return e([]);for(var o=i.length,a=0;a<i.length;a++)r(a,i[a])})},i.resolve=function(t){return t&&"object"==typeof t&&t.constructor===i?t:new i(function(e){e(t)})},i.reject=function(t){return new i(function(e,n){n(t)})},i.race=function(t){return new i(function(e,n){for(var r=0,i=t.length;r<i;r++)t[r].then(e,n)})},i._immediateFn="function"==typeof t&&function(e){t(e)}||function(t){f(t,0)},i._unhandledRejectionFn=function(t){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",t)};var d=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==e)return e;throw new Error("unable to locate global object")}();d.Promise||(d.Promise=i)})}).call(e,n(172).setImmediate,n(20))},function(t,e,n){"use strict";var r=n(927),i=n(926),o=n(170);t.exports={formats:o,parse:i,stringify:r}},function(t,e,n){"use strict";var r=n(256),i=Object.prototype.hasOwnProperty,o=Array.isArray,a={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(t){return t.replace(/&#(\d+);/g,function(t,e){return String.fromCharCode(parseInt(e,10))})},u=function(t,e){return t&&"string"==typeof t&&e.comma&&t.indexOf(",")>-1?t.split(","):t},l=function(t,e){var n,l={__proto__:null},c=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,f=e.parameterLimit===1/0?void 0:e.parameterLimit,d=c.split(e.delimiter,f),h=-1,p=e.charset;if(e.charsetSentinel)for(n=0;n<d.length;++n)0===d[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===d[n]?p="utf-8":"utf8=%26%2310003%3B"===d[n]&&(p="iso-8859-1"),h=n,n=d.length);for(n=0;n<d.length;++n)if(n!==h){var g,m,v=d[n],y=v.indexOf("]="),b=-1===y?v.indexOf("="):y+1;-1===b?(g=e.decoder(v,a.decoder,p,"key"),m=e.strictNullHandling?null:""):(g=e.decoder(v.slice(0,b),a.decoder,p,"key"),m=r.maybeMap(u(v.slice(b+1),e),function(t){return e.decoder(t,a.decoder,p,"value")})),m&&e.interpretNumericEntities&&"iso-8859-1"===p&&(m=s(m)),v.indexOf("[]=")>-1&&(m=o(m)?[m]:m),i.call(l,g)?l[g]=r.combine(l[g],m):l[g]=m}return l},c=function(t,e,n,r){for(var i=r?e:u(e,n),o=t.length-1;o>=0;--o){var a,s=t[o];if("[]"===s&&n.parseArrays)a=[].concat(i);else{a=n.plainObjects?Object.create(null):{};var l="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,c=parseInt(l,10);n.parseArrays||""!==l?!isNaN(c)&&s!==l&&String(c)===l&&c>=0&&n.parseArrays&&c<=n.arrayLimit?(a=[],a[c]=i):"__proto__"!==l&&(a[l]=i):a={0:i}}i=a}return i},f=function(t,e,n,r){if(t){var o=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,a=/(\[[^[\]]*])/,s=/(\[[^[\]]*])/g,u=n.depth>0&&a.exec(o),l=u?o.slice(0,u.index):o,f=[];if(l){if(!n.plainObjects&&i.call(Object.prototype,l)&&!n.allowPrototypes)return;f.push(l)}for(var d=0;n.depth>0&&null!==(u=s.exec(o))&&d<n.depth;){if(d+=1,!n.plainObjects&&i.call(Object.prototype,u[1].slice(1,-1))&&!n.allowPrototypes)return;f.push(u[1])}return u&&f.push("["+o.slice(u.index)+"]"),c(f,e,n,r)}},d=function(t){if(!t)return a;if(null!==t.decoder&&void 0!==t.decoder&&"function"!=typeof t.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var e=void 0===t.charset?a.charset:t.charset;return{allowDots:void 0===t.allowDots?a.allowDots:!!t.allowDots,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof t.allowSparse?t.allowSparse:a.allowSparse,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:a.arrayLimit,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:a.comma,decoder:"function"==typeof t.decoder?t.decoder:a.decoder,delimiter:"string"==typeof t.delimiter||r.isRegExp(t.delimiter)?t.delimiter:a.delimiter,depth:"number"==typeof t.depth||!1===t.depth?+t.depth:a.depth,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:a.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:a.strictNullHandling}};t.exports=function(t,e){var n=d(e);if(""===t||null===t||void 0===t)return n.plainObjects?Object.create(null):{};for(var i="string"==typeof t?l(t,n):t,o=n.plainObjects?Object.create(null):{},a=Object.keys(i),s=0;s<a.length;++s){var u=a[s],c=f(u,i[u],n,"string"==typeof t);o=r.merge(o,c,n)}return!0===n.allowSparse?o:r.compact(o)}},function(t,e,n){"use strict";var r=n(932),i=n(256),o=n(170),a=Object.prototype.hasOwnProperty,s={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},u=Array.isArray,l=Array.prototype.push,c=function(t,e){l.apply(t,u(e)?e:[e])},f=Date.prototype.toISOString,d=o.default,h={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:i.encode,encodeValuesOnly:!1,format:d,formatter:o.formatters[d],indices:!1,serializeDate:function(t){return f.call(t)},skipNulls:!1,strictNullHandling:!1},p=function(t){return"string"==typeof t||"number"==typeof t||"boolean"==typeof t||"symbol"==typeof t||"bigint"==typeof t},g={},m=function t(e,n,o,a,s,l,f,d,m,v,y,b,_,w,x,k){for(var S=e,C=k,E=0,T=!1;void 0!==(C=C.get(g))&&!T;){var A=C.get(e);if(E+=1,void 0!==A){if(A===E)throw new RangeError("Cyclic object value");T=!0}void 0===C.get(g)&&(E=0)}if("function"==typeof d?S=d(n,S):S instanceof Date?S=y(S):"comma"===o&&u(S)&&(S=i.maybeMap(S,function(t){return t instanceof Date?y(t):t})),null===S){if(s)return f&&!w?f(n,h.encoder,x,"key",b):n;S=""}if(p(S)||i.isBuffer(S)){if(f){return[_(w?n:f(n,h.encoder,x,"key",b))+"="+_(f(S,h.encoder,x,"value",b))]}return[_(n)+"="+_(String(S))]}var O=[];if(void 0===S)return O;var P;if("comma"===o&&u(S))w&&f&&(S=i.maybeMap(S,f)),P=[{value:S.length>0?S.join(",")||null:void 0}];else if(u(d))P=d;else{var N=Object.keys(S);P=m?N.sort(m):N}for(var D=a&&u(S)&&1===S.length?n+"[]":n,M=0;M<P.length;++M){var I=P[M],R="object"==typeof I&&void 0!==I.value?I.value:S[I];if(!l||null!==R){var $=u(S)?"function"==typeof o?o(D,I):D:D+(v?"."+I:"["+I+"]");k.set(e,E);var L=r();L.set(g,k),c(O,t(R,$,o,a,s,l,"comma"===o&&w&&u(S)?null:f,d,m,v,y,b,_,w,x,L))}}return O},v=function(t){if(!t)return h;if(null!==t.encoder&&void 0!==t.encoder&&"function"!=typeof t.encoder)throw new TypeError("Encoder has to be a function.");var e=t.charset||h.charset;if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=o.default;if(void 0!==t.format){if(!a.call(o.formatters,t.format))throw new TypeError("Unknown format option provided.");n=t.format}var r=o.formatters[n],i=h.filter;return("function"==typeof t.filter||u(t.filter))&&(i=t.filter),{addQueryPrefix:"boolean"==typeof t.addQueryPrefix?t.addQueryPrefix:h.addQueryPrefix,allowDots:void 0===t.allowDots?h.allowDots:!!t.allowDots,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:h.charsetSentinel,delimiter:void 0===t.delimiter?h.delimiter:t.delimiter,encode:"boolean"==typeof t.encode?t.encode:h.encode,encoder:"function"==typeof t.encoder?t.encoder:h.encoder,encodeValuesOnly:"boolean"==typeof t.encodeValuesOnly?t.encodeValuesOnly:h.encodeValuesOnly,filter:i,format:n,formatter:r,serializeDate:"function"==typeof t.serializeDate?t.serializeDate:h.serializeDate,skipNulls:"boolean"==typeof t.skipNulls?t.skipNulls:h.skipNulls,sort:"function"==typeof t.sort?t.sort:null,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:h.strictNullHandling}};t.exports=function(t,e){var n,i,o=t,a=v(e);"function"==typeof a.filter?(i=a.filter,o=i("",o)):u(a.filter)&&(i=a.filter,n=i);var l=[];if("object"!=typeof o||null===o)return"";var f;f=e&&e.arrayFormat in s?e.arrayFormat:e&&"indices"in e?e.indices?"indices":"repeat":"indices";var d=s[f];if(e&&"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var h="comma"===d&&e&&e.commaRoundTrip;n||(n=Object.keys(o)),a.sort&&n.sort(a.sort);for(var p=r(),g=0;g<n.length;++g){var y=n[g];a.skipNulls&&null===o[y]||c(l,m(o[y],y,d,h,a.strictNullHandling,a.skipNulls,a.encode?a.encoder:null,a.filter,a.sort,a.allowDots,a.serializeDate,a.format,a.formatter,a.encodeValuesOnly,a.charset,p))}var b=l.join(a.delimiter),_=!0===a.addQueryPrefix?"?":"";return a.charsetSentinel&&("iso-8859-1"===a.charset?_+="utf8=%26%2310003%3B&":_+="utf8=%E2%9C%93&"),b.length>0?_+b:""}},function(t,e,n){(function(e){/*!
  78. * Quill Editor v1.3.7
  79. * https://quilljs.com/
  80. * Copyright (c) 2014, Jason Chen
  81. * Copyright (c) 2013, salesforce.com
  82. */
  83. !function(e,n){t.exports=n()}("undefined"!=typeof self&&self,function(){return function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=109)}([function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(17),i=n(18),o=n(19),a=n(45),s=n(46),u=n(47),l=n(48),c=n(49),f=n(12),d=n(32),h=n(33),p=n(31),g=n(1),m={Scope:g.Scope,create:g.create,find:g.find,query:g.query,register:g.register,Container:r.default,Format:i.default,Leaf:o.default,Embed:l.default,Scroll:a.default,Block:u.default,Inline:s.default,Text:c.default,Attributor:{Attribute:f.default,Class:d.default,Style:h.default,Store:p.default}};e.default=m},function(t,e,n){"use strict";function r(t,e){var n=o(t);if(null==n)throw new u("Unable to create "+t+" blot");var r=n;return new r(t instanceof Node||t.nodeType===Node.TEXT_NODE?t:r.create(e),e)}function i(t,n){return void 0===n&&(n=!1),null==t?null:null!=t[e.DATA_KEY]?t[e.DATA_KEY].blot:n?i(t.parentNode,n):null}function o(t,e){void 0===e&&(e=h.ANY);var n;if("string"==typeof t)n=d[t]||l[t];else if(t instanceof Text||t.nodeType===Node.TEXT_NODE)n=d.text;else if("number"==typeof t)t&h.LEVEL&h.BLOCK?n=d.block:t&h.LEVEL&h.INLINE&&(n=d.inline);else if(t instanceof HTMLElement){var r=(t.getAttribute("class")||"").split(/\s+/);for(var i in r)if(n=c[r[i]])break;n=n||f[t.tagName]}return null==n?null:e&h.LEVEL&n.scope&&e&h.TYPE&n.scope?n:null}function a(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(t.length>1)return t.map(function(t){return a(t)});var n=t[0];if("string"!=typeof n.blotName&&"string"!=typeof n.attrName)throw new u("Invalid definition");if("abstract"===n.blotName)throw new u("Cannot register abstract class");if(d[n.blotName||n.attrName]=n,"string"==typeof n.keyName)l[n.keyName]=n;else if(null!=n.className&&(c[n.className]=n),null!=n.tagName){Array.isArray(n.tagName)?n.tagName=n.tagName.map(function(t){return t.toUpperCase()}):n.tagName=n.tagName.toUpperCase();var r=Array.isArray(n.tagName)?n.tagName:[n.tagName];r.forEach(function(t){null!=f[t]&&null!=n.className||(f[t]=n)})}return n}var s=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var u=function(t){function e(e){var n=this;return e="[Parchment] "+e,n=t.call(this,e)||this,n.message=e,n.name=n.constructor.name,n}return s(e,t),e}(Error);e.ParchmentError=u;var l={},c={},f={},d={};e.DATA_KEY="__blot";var h;!function(t){t[t.TYPE=3]="TYPE",t[t.LEVEL=12]="LEVEL",t[t.ATTRIBUTE=13]="ATTRIBUTE",t[t.BLOT=14]="BLOT",t[t.INLINE=7]="INLINE",t[t.BLOCK=11]="BLOCK",t[t.BLOCK_BLOT=10]="BLOCK_BLOT",t[t.INLINE_BLOT=6]="INLINE_BLOT",t[t.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",t[t.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",t[t.ANY=15]="ANY"}(h=e.Scope||(e.Scope={})),e.create=r,e.find=i,e.query=o,e.register=a},function(t,e,n){var r=n(51),i=n(11),o=n(3),a=n(20),s=String.fromCharCode(0),u=function(t){Array.isArray(t)?this.ops=t:null!=t&&Array.isArray(t.ops)?this.ops=t.ops:this.ops=[]};u.prototype.insert=function(t,e){var n={};return 0===t.length?this:(n.insert=t,null!=e&&"object"==typeof e&&Object.keys(e).length>0&&(n.attributes=e),this.push(n))},u.prototype.delete=function(t){return t<=0?this:this.push({delete:t})},u.prototype.retain=function(t,e){if(t<=0)return this;var n={retain:t};return null!=e&&"object"==typeof e&&Object.keys(e).length>0&&(n.attributes=e),this.push(n)},u.prototype.push=function(t){var e=this.ops.length,n=this.ops[e-1];if(t=o(!0,{},t),"object"==typeof n){if("number"==typeof t.delete&&"number"==typeof n.delete)return this.ops[e-1]={delete:n.delete+t.delete},this;if("number"==typeof n.delete&&null!=t.insert&&(e-=1,"object"!=typeof(n=this.ops[e-1])))return this.ops.unshift(t),this;if(i(t.attributes,n.attributes)){if("string"==typeof t.insert&&"string"==typeof n.insert)return this.ops[e-1]={insert:n.insert+t.insert},"object"==typeof t.attributes&&(this.ops[e-1].attributes=t.attributes),this;if("number"==typeof t.retain&&"number"==typeof n.retain)return this.ops[e-1]={retain:n.retain+t.retain},"object"==typeof t.attributes&&(this.ops[e-1].attributes=t.attributes),this}}return e===this.ops.length?this.ops.push(t):this.ops.splice(e,0,t),this},u.prototype.chop=function(){var t=this.ops[this.ops.length-1];return t&&t.retain&&!t.attributes&&this.ops.pop(),this},u.prototype.filter=function(t){return this.ops.filter(t)},u.prototype.forEach=function(t){this.ops.forEach(t)},u.prototype.map=function(t){return this.ops.map(t)},u.prototype.partition=function(t){var e=[],n=[];return this.forEach(function(r){(t(r)?e:n).push(r)}),[e,n]},u.prototype.reduce=function(t,e){return this.ops.reduce(t,e)},u.prototype.changeLength=function(){return this.reduce(function(t,e){return e.insert?t+a.length(e):e.delete?t-e.delete:t},0)},u.prototype.length=function(){return this.reduce(function(t,e){return t+a.length(e)},0)},u.prototype.slice=function(t,e){t=t||0,"number"!=typeof e&&(e=1/0);for(var n=[],r=a.iterator(this.ops),i=0;i<e&&r.hasNext();){var o;i<t?o=r.next(t-i):(o=r.next(e-i),n.push(o)),i+=a.length(o)}return new u(n)},u.prototype.compose=function(t){var e=a.iterator(this.ops),n=a.iterator(t.ops),r=[],o=n.peek();if(null!=o&&"number"==typeof o.retain&&null==o.attributes){for(var s=o.retain;"insert"===e.peekType()&&e.peekLength()<=s;)s-=e.peekLength(),r.push(e.next());o.retain-s>0&&n.next(o.retain-s)}for(var l=new u(r);e.hasNext()||n.hasNext();)if("insert"===n.peekType())l.push(n.next());else if("delete"===e.peekType())l.push(e.next());else{var c=Math.min(e.peekLength(),n.peekLength()),f=e.next(c),d=n.next(c);if("number"==typeof d.retain){var h={};"number"==typeof f.retain?h.retain=c:h.insert=f.insert;var p=a.attributes.compose(f.attributes,d.attributes,"number"==typeof f.retain);if(p&&(h.attributes=p),l.push(h),!n.hasNext()&&i(l.ops[l.ops.length-1],h)){var g=new u(e.rest());return l.concat(g).chop()}}else"number"==typeof d.delete&&"number"==typeof f.retain&&l.push(d)}return l.chop()},u.prototype.concat=function(t){var e=new u(this.ops.slice());return t.ops.length>0&&(e.push(t.ops[0]),e.ops=e.ops.concat(t.ops.slice(1))),e},u.prototype.diff=function(t,e){if(this.ops===t.ops)return new u;var n=[this,t].map(function(e){return e.map(function(n){if(null!=n.insert)return"string"==typeof n.insert?n.insert:s;var r=e===t?"on":"with";throw new Error("diff() called "+r+" non-document")}).join("")}),o=new u,l=r(n[0],n[1],e),c=a.iterator(this.ops),f=a.iterator(t.ops);return l.forEach(function(t){for(var e=t[1].length;e>0;){var n=0;switch(t[0]){case r.INSERT:n=Math.min(f.peekLength(),e),o.push(f.next(n));break;case r.DELETE:n=Math.min(e,c.peekLength()),c.next(n),o.delete(n);break;case r.EQUAL:n=Math.min(c.peekLength(),f.peekLength(),e);var s=c.next(n),u=f.next(n);i(s.insert,u.insert)?o.retain(n,a.attributes.diff(s.attributes,u.attributes)):o.push(u).delete(n)}e-=n}}),o.chop()},u.prototype.eachLine=function(t,e){e=e||"\n";for(var n=a.iterator(this.ops),r=new u,i=0;n.hasNext();){if("insert"!==n.peekType())return;var o=n.peek(),s=a.length(o)-n.peekLength(),l="string"==typeof o.insert?o.insert.indexOf(e,s)-s:-1;if(l<0)r.push(n.next());else if(l>0)r.push(n.next(l));else{if(!1===t(r,n.next(1).attributes||{},i))return;i+=1,r=new u}}r.length()>0&&t(r,{},i)},u.prototype.transform=function(t,e){if(e=!!e,"number"==typeof t)return this.transformPosition(t,e);for(var n=a.iterator(this.ops),r=a.iterator(t.ops),i=new u;n.hasNext()||r.hasNext();)if("insert"!==n.peekType()||!e&&"insert"===r.peekType())if("insert"===r.peekType())i.push(r.next());else{var o=Math.min(n.peekLength(),r.peekLength()),s=n.next(o),l=r.next(o);if(s.delete)continue;l.delete?i.push(l):i.retain(o,a.attributes.transform(s.attributes,l.attributes,e))}else i.retain(a.length(n.next()));return i.chop()},u.prototype.transformPosition=function(t,e){e=!!e;for(var n=a.iterator(this.ops),r=0;n.hasNext()&&r<=t;){var i=n.peekLength(),o=n.peekType();n.next(),"delete"!==o?("insert"===o&&(r<t||!e)&&(t+=i),r+=i):t-=Math.min(i,t-r)}return t},t.exports=u},function(t,e){"use strict";var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=function(t){return"function"==typeof Array.isArray?Array.isArray(t):"[object Array]"===r.call(t)},s=function(t){if(!t||"[object Object]"!==r.call(t))return!1;var e=n.call(t,"constructor"),i=t.constructor&&t.constructor.prototype&&n.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!e&&!i)return!1;var o;for(o in t);return void 0===o||n.call(t,o)},u=function(t,e){i&&"__proto__"===e.name?i(t,e.name,{enumerable:!0,configurable:!0,value:e.newValue,writable:!0}):t[e.name]=e.newValue},l=function(t,e){if("__proto__"===e){if(!n.call(t,e))return;if(o)return o(t,e).value}return t[e]};t.exports=function t(){var e,n,r,i,o,c,f=arguments[0],d=1,h=arguments.length,p=!1;for("boolean"==typeof f&&(p=f,f=arguments[1]||{},d=2),(null==f||"object"!=typeof f&&"function"!=typeof f)&&(f={});d<h;++d)if(null!=(e=arguments[d]))for(n in e)r=l(f,n),i=l(e,n),f!==i&&(p&&i&&(s(i)||(o=a(i)))?(o?(o=!1,c=r&&a(r)?r:[]):c=r&&s(r)?r:{},u(f,{name:n,newValue:t(p,c,i)})):void 0!==i&&u(f,{name:n,newValue:i}));return f}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==t?e:("function"==typeof t.formats&&(e=(0,f.default)(e,t.formats())),null==t.parent||"scroll"==t.parent.blotName||t.parent.statics.scope!==t.statics.scope?e:s(t.parent,e))}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BlockEmbed=e.bubbleFormats=void 0;var u=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),l=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;if(void 0!==a)return a.call(r)},c=n(3),f=r(c),d=n(2),h=r(d),p=n(0),g=r(p),m=n(16),v=r(m),y=n(6),b=r(y),_=n(7),w=r(_),x=function(t){function e(){return i(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,t),u(e,[{key:"attach",value:function(){l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"attach",this).call(this),this.attributes=new g.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return(new h.default).insert(this.value(),(0,f.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(t,e){var n=g.default.query(t,g.default.Scope.BLOCK_ATTRIBUTE);null!=n&&this.attributes.attribute(n,e)}},{key:"formatAt",value:function(t,e,n,r){this.format(n,r)}},{key:"insertAt",value:function(t,n,r){if("string"==typeof n&&n.endsWith("\n")){var i=g.default.create(k.blotName);this.parent.insertBefore(i,0===t?this:this.next),i.insertAt(0,n.slice(0,-1))}else l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,t,n,r)}}]),e}(g.default.Embed);x.scope=g.default.Scope.BLOCK_BLOT;var k=function(t){function e(t){i(this,e);var n=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.cache={},n}return a(e,t),u(e,[{key:"delta",value:function(){return null==this.cache.delta&&(this.cache.delta=this.descendants(g.default.Leaf).reduce(function(t,e){return 0===e.length()?t:t.insert(e.value(),s(e))},new h.default).insert("\n",s(this))),this.cache.delta}},{key:"deleteAt",value:function(t,n){l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"deleteAt",this).call(this,t,n),this.cache={}}},{key:"formatAt",value:function(t,n,r,i){n<=0||(g.default.query(r,g.default.Scope.BLOCK)?t+n===this.length()&&this.format(r,i):l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"formatAt",this).call(this,t,Math.min(n,this.length()-t-1),r,i),this.cache={})}},{key:"insertAt",value:function(t,n,r){if(null!=r)return l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,t,n,r);if(0!==n.length){var i=n.split("\n"),o=i.shift();o.length>0&&(t<this.length()-1||null==this.children.tail?l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,Math.min(t,this.length()-1),o):this.children.tail.insertAt(this.children.tail.length(),o),this.cache={});var a=this;i.reduce(function(t,e){return a=a.split(t,!0),a.insertAt(0,e),e.length},t+o.length)}}},{key:"insertBefore",value:function(t,n){var r=this.children.head;l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertBefore",this).call(this,t,n),r instanceof v.default&&r.remove(),this.cache={}}},{key:"length",value:function(){return null==this.cache.length&&(this.cache.length=l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"length",this).call(this)+1),this.cache.length}},{key:"moveChildren",value:function(t,n){l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"moveChildren",this).call(this,t,n),this.cache={}}},{key:"optimize",value:function(t){l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t),this.cache={}}},{key:"path",value:function(t){return l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"path",this).call(this,t,!0)}},{key:"removeChild",value:function(t){l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"removeChild",this).call(this,t),this.cache={}}},{key:"split",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(n&&(0===t||t>=this.length()-1)){var r=this.clone();return 0===t?(this.parent.insertBefore(r,this),this):(this.parent.insertBefore(r,this.next),r)}var i=l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"split",this).call(this,t,n);return this.cache={},i}}]),e}(g.default.Block);k.blotName="block",k.tagName="P",k.defaultChild="break",k.allowedChildren=[b.default,g.default.Embed,w.default],e.bubbleFormats=s,e.BlockEmbed=x,e.default=k},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(e=(0,E.default)(!0,{container:t,modules:{clipboard:!0,keyboard:!0,history:!0}},e),e.theme&&e.theme!==D.DEFAULTS.theme){if(e.theme=D.import("themes/"+e.theme),null==e.theme)throw new Error("Invalid theme "+e.theme+". Did you register it?")}else e.theme=P.default;var n=(0,E.default)(!0,{},e.theme.DEFAULTS);[n,e].forEach(function(t){t.modules=t.modules||{},Object.keys(t.modules).forEach(function(e){!0===t.modules[e]&&(t.modules[e]={})})});var r=Object.keys(n.modules).concat(Object.keys(e.modules)),i=r.reduce(function(t,e){var n=D.import("modules/"+e);return null==n?N.error("Cannot load "+e+" module. Are you sure you registered it?"):t[e]=n.DEFAULTS||{},t},{});return null!=e.modules&&e.modules.toolbar&&e.modules.toolbar.constructor!==Object&&(e.modules.toolbar={container:e.modules.toolbar}),e=(0,E.default)(!0,{},D.DEFAULTS,{modules:i},n,e),["bounds","container","scrollingContainer"].forEach(function(t){"string"==typeof e[t]&&(e[t]=document.querySelector(e[t]))}),e.modules=Object.keys(e.modules).reduce(function(t,n){return e.modules[n]&&(t[n]=e.modules[n]),t},{}),e}function s(t,e,n,r){if(this.options.strict&&!this.isEnabled()&&e===y.default.sources.USER)return new p.default;var i=null==n?null:this.getSelection(),o=this.editor.delta,a=t();if(null!=i&&(!0===n&&(n=i.index),null==r?i=l(i,a,e):0!==r&&(i=l(i,n,r,e)),this.setSelection(i,y.default.sources.SILENT)),a.length()>0){var s,u=[y.default.events.TEXT_CHANGE,a,o,e];if((s=this.emitter).emit.apply(s,[y.default.events.EDITOR_CHANGE].concat(u)),e!==y.default.sources.SILENT){var c;(c=this.emitter).emit.apply(c,u)}}return a}function u(t,e,n,r,i){var o={};return"number"==typeof t.index&&"number"==typeof t.length?"number"!=typeof e?(i=r,r=n,n=e,e=t.length,t=t.index):(e=t.length,t=t.index):"number"!=typeof e&&(i=r,r=n,n=e,e=0),"object"===(void 0===n?"undefined":c(n))?(o=n,i=r):"string"==typeof n&&(null!=r?o[n]=r:i=n),i=i||y.default.sources.API,[t,e,o,i]}function l(t,e,n,r){if(null==t)return null;var i=void 0,o=void 0;if(e instanceof p.default){var a=[t.index,t.index+t.length].map(function(t){return e.transformPosition(t,r!==y.default.sources.USER)}),s=f(a,2);i=s[0],o=s[1]}else{var u=[t.index,t.index+t.length].map(function(t){return t<e||t===e&&r===y.default.sources.USER?t:n>=0?t+n:Math.max(e,t+n)}),l=f(u,2);i=l[0],o=l[1]}return new k.Range(i,o-i)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.overload=e.expandConfig=void 0;var c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f=function(){function t(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),d=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();n(50);var h=n(2),p=r(h),g=n(14),m=r(g),v=n(8),y=r(v),b=n(9),_=r(b),w=n(0),x=r(w),k=n(15),S=r(k),C=n(3),E=r(C),T=n(10),A=r(T),O=n(34),P=r(O),N=(0,A.default)("quill"),D=function(){function t(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(o(this,t),this.options=a(e,r),this.container=this.options.container,null==this.container)return N.error("Invalid Quill container",e);this.options.debug&&t.debug(this.options.debug);var i=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new y.default,this.scroll=x.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new m.default(this.scroll),this.selection=new S.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(y.default.events.EDITOR_CHANGE,function(t){t===y.default.events.TEXT_CHANGE&&n.root.classList.toggle("ql-blank",n.editor.isBlank())}),this.emitter.on(y.default.events.SCROLL_UPDATE,function(t,e){var r=n.selection.lastRange,i=r&&0===r.length?r.index:void 0;s.call(n,function(){return n.editor.update(null,e,i)},t)});var u=this.clipboard.convert("<div class='ql-editor' style=\"white-space: normal;\">"+i+"<p><br></p></div>");this.setContents(u),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return d(t,null,[{key:"debug",value:function(t){!0===t&&(t="log"),A.default.level(t)}},{key:"find",value:function(t){return t.__quill||x.default.find(t)}},{key:"import",value:function(t){return null==this.imports[t]&&N.error("Cannot import "+t+". Are you sure it was registered?"),this.imports[t]}},{key:"register",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!=typeof t){var i=t.attrName||t.blotName;"string"==typeof i?this.register("formats/"+i,t,e):Object.keys(t).forEach(function(r){n.register(r,t[r],e)})}else null==this.imports[t]||r||N.warn("Overwriting "+t+" with",e),this.imports[t]=e,(t.startsWith("blots/")||t.startsWith("formats/"))&&"abstract"!==e.blotName?x.default.register(e):t.startsWith("modules")&&"function"==typeof e.register&&e.register()}}]),d(t,[{key:"addContainer",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof t){var n=t;t=document.createElement("div"),t.classList.add(n)}return this.container.insertBefore(t,e),t}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(t,e,n){var r=this,i=u(t,e,n),o=f(i,4);return t=o[0],e=o[1],n=o[3],s.call(this,function(){return r.editor.deleteText(t,e)},n,t,-1*e)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(t),this.container.classList.toggle("ql-disabled",!t)}},{key:"focus",value:function(){var t=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=t,this.scrollIntoView()}},{key:"format",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:y.default.sources.API;return s.call(this,function(){var r=n.getSelection(!0),o=new p.default;if(null==r)return o;if(x.default.query(t,x.default.Scope.BLOCK))o=n.editor.formatLine(r.index,r.length,i({},t,e));else{if(0===r.length)return n.selection.format(t,e),o;o=n.editor.formatText(r.index,r.length,i({},t,e))}return n.setSelection(r,y.default.sources.SILENT),o},r)}},{key:"formatLine",value:function(t,e,n,r,i){var o=this,a=void 0,l=u(t,e,n,r,i),c=f(l,4);return t=c[0],e=c[1],a=c[2],i=c[3],s.call(this,function(){return o.editor.formatLine(t,e,a)},i,t,0)}},{key:"formatText",value:function(t,e,n,r,i){var o=this,a=void 0,l=u(t,e,n,r,i),c=f(l,4);return t=c[0],e=c[1],a=c[2],i=c[3],s.call(this,function(){return o.editor.formatText(t,e,a)},i,t,0)}},{key:"getBounds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=void 0;n="number"==typeof t?this.selection.getBounds(t,e):this.selection.getBounds(t.index,t.length);var r=this.container.getBoundingClientRect();return{bottom:n.bottom-r.top,height:n.height,left:n.left-r.left,right:n.right-r.left,top:n.top-r.top,width:n.width}}},{key:"getContents",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-t,n=u(t,e),r=f(n,2);return t=r[0],e=r[1],this.editor.getContents(t,e)}},{key:"getFormat",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"number"==typeof t?this.editor.getFormat(t,e):this.editor.getFormat(t.index,t.length)}},{key:"getIndex",value:function(t){return t.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(t){return this.scroll.leaf(t)}},{key:"getLine",value:function(t){return this.scroll.line(t)}},{key:"getLines",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!=typeof t?this.scroll.lines(t.index,t.length):this.scroll.lines(t,e)}},{key:"getModule",value:function(t){return this.theme.modules[t]}},{key:"getSelection",value:function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-t,n=u(t,e),r=f(n,2);return t=r[0],e=r[1],this.editor.getText(t,e)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(e,n,r){var i=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.sources.API;return s.call(this,function(){return i.editor.insertEmbed(e,n,r)},o,e)}},{key:"insertText",value:function(t,e,n,r,i){var o=this,a=void 0,l=u(t,0,n,r,i),c=f(l,4);return t=c[0],a=c[2],i=c[3],s.call(this,function(){return o.editor.insertText(t,e,a)},i,t,e.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(t,e,n){this.clipboard.dangerouslyPasteHTML(t,e,n)}},{key:"removeFormat",value:function(t,e,n){var r=this,i=u(t,e,n),o=f(i,4);return t=o[0],e=o[1],n=o[3],s.call(this,function(){return r.editor.removeFormat(t,e)},n,t)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:y.default.sources.API;return s.call(this,function(){t=new p.default(t);var n=e.getLength(),r=e.editor.deleteText(0,n),i=e.editor.applyDelta(t),o=i.ops[i.ops.length-1];return null!=o&&"string"==typeof o.insert&&"\n"===o.insert[o.insert.length-1]&&(e.editor.deleteText(e.getLength()-1,1),i.delete(1)),r.compose(i)},n)}},{key:"setSelection",value:function(e,n,r){if(null==e)this.selection.setRange(null,n||t.sources.API);else{var i=u(e,n,r),o=f(i,4);e=o[0],n=o[1],r=o[3],this.selection.setRange(new k.Range(e,n),r),r!==y.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:y.default.sources.API,n=(new p.default).insert(t);return this.setContents(n,e)}},{key:"update",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:y.default.sources.USER,e=this.scroll.update(t);return this.selection.update(t),e}},{key:"updateContents",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:y.default.sources.API;return s.call(this,function(){return t=new p.default(t),e.editor.applyDelta(t,n)},n,!0)}}]),t}();D.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},D.events=y.default.events,D.sources=y.default.sources,D.version="1.3.7",D.imports={delta:p.default,parchment:x.default,"core/module":_.default,"core/theme":P.default},e.expandConfig=a,e.overload=u,e.default=D},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var s=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),u=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;if(void 0!==a)return a.call(r)},l=n(7),c=r(l),f=n(0),d=r(f),h=function(t){function e(){return i(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,t),s(e,[{key:"formatAt",value:function(t,n,r,i){if(e.compare(this.statics.blotName,r)<0&&d.default.query(r,d.default.Scope.BLOT)){var o=this.isolate(t,n);i&&o.wrap(r,i)}else u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"formatAt",this).call(this,t,n,r,i)}},{key:"optimize",value:function(t){if(u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t),this.parent instanceof e&&e.compare(this.statics.blotName,this.parent.statics.blotName)>0){var n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}}],[{key:"compare",value:function(t,n){var r=e.order.indexOf(t),i=e.order.indexOf(n);return r>=0||i>=0?r-i:t===n?0:t<n?-1:1}}]),e}(d.default.Inline);h.allowedChildren=[h,d.default.Embed,c.default],h.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],e.default=h},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var a=n(0),s=function(t){return t&&t.__esModule?t:{default:t}}(a),u=function(t){function e(){return r(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return o(e,t),e}(s.default.Text);e.default=u},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var s=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),u=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;if(void 0!==a)return a.call(r)},l=n(54),c=r(l),f=n(10),d=r(f),h=(0,d.default)("quill:events");["selectionchange","mousedown","mouseup","click"].forEach(function(t){document.addEventListener(t,function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(t){if(t.__quill&&t.__quill.emitter){var n;(n=t.__quill.emitter).handleDOM.apply(n,e)}})})});var p=function(t){function e(){i(this,e);var t=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t.listeners={},t.on("error",h.error),t}return a(e,t),s(e,[{key:"emit",value:function(){h.log.apply(h,arguments),u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];(this.listeners[t.type]||[]).forEach(function(e){var r=e.node,i=e.handler;(t.target===r||r.contains(t.target))&&i.apply(void 0,[t].concat(n))})}},{key:"listenDOM",value:function(t,e,n){this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push({node:e,handler:n})}}]),e}(c.default);p.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},p.sources={API:"api",SILENT:"silent",USER:"user"},e.default=p},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var i=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r(this,t),this.quill=e,this.options=n};i.DEFAULTS={},e.default=i},function(t,e,n){"use strict";function r(t){if(o.indexOf(t)<=o.indexOf(a)){for(var e,n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];(e=console)[t].apply(e,r)}}function i(t){return o.reduce(function(e,n){return e[n]=r.bind(console,n,t),e},{})}Object.defineProperty(e,"__esModule",{value:!0});var o=["error","warn","log","info"],a="warn";r.level=i.level=function(t){a=t},e.default=i},function(t,e,n){function r(t){return null===t||void 0===t}function i(t){return!(!t||"object"!=typeof t||"number"!=typeof t.length)&&("function"==typeof t.copy&&"function"==typeof t.slice&&!(t.length>0&&"number"!=typeof t[0]))}function o(t,e,n){var o,c;if(r(t)||r(e))return!1;if(t.prototype!==e.prototype)return!1;if(u(t))return!!u(e)&&(t=a.call(t),e=a.call(e),l(t,e,n));if(i(t)){if(!i(e))return!1;if(t.length!==e.length)return!1;for(o=0;o<t.length;o++)if(t[o]!==e[o])return!1;return!0}try{var f=s(t),d=s(e)}catch(t){return!1}if(f.length!=d.length)return!1;for(f.sort(),d.sort(),o=f.length-1;o>=0;o--)if(f[o]!=d[o])return!1;for(o=f.length-1;o>=0;o--)if(c=f[o],!l(t[c],e[c],n))return!1;return typeof t==typeof e}var a=Array.prototype.slice,s=n(52),u=n(53),l=t.exports=function(t,e,n){return n||(n={}),t===e||(t instanceof Date&&e instanceof Date?t.getTime()===e.getTime():!t||!e||"object"!=typeof t&&"object"!=typeof e?n.strict?t===e:t==e:o(t,e,n))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=function(){function t(t,e,n){void 0===n&&(n={}),this.attrName=t,this.keyName=e;var i=r.Scope.TYPE&r.Scope.ATTRIBUTE;null!=n.scope?this.scope=n.scope&r.Scope.LEVEL|i:this.scope=r.Scope.ATTRIBUTE,null!=n.whitelist&&(this.whitelist=n.whitelist)}return t.keys=function(t){return[].map.call(t.attributes,function(t){return t.name})},t.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(t.setAttribute(this.keyName,e),!0)},t.prototype.canAdd=function(t,e){return null!=r.query(t,r.Scope.BLOT&(this.scope|r.Scope.TYPE))&&(null==this.whitelist||("string"==typeof e?this.whitelist.indexOf(e.replace(/["']/g,""))>-1:this.whitelist.indexOf(e)>-1))},t.prototype.remove=function(t){t.removeAttribute(this.keyName)},t.prototype.value=function(t){var e=t.getAttribute(this.keyName);return this.canAdd(t,e)&&e?e:""},t}();e.default=i},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Code=void 0;var s=function(){function t(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),u=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),l=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;if(void 0!==a)return a.call(r)},c=n(2),f=r(c),d=n(0),h=r(d),p=n(4),g=r(p),m=n(6),v=r(m),y=n(7),b=r(y),_=function(t){function e(){return i(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,t),e}(v.default);_.blotName="code",_.tagName="CODE";var w=function(t){function e(){return i(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,t),u(e,[{key:"delta",value:function(){var t=this,e=this.domNode.textContent;return e.endsWith("\n")&&(e=e.slice(0,-1)),e.split("\n").reduce(function(e,n){return e.insert(n).insert("\n",t.formats())},new f.default)}},{key:"format",value:function(t,n){if(t!==this.statics.blotName||!n){var r=this.descendant(b.default,this.length()-1),i=s(r,1),o=i[0];null!=o&&o.deleteAt(o.length()-1,1),l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n)}}},{key:"formatAt",value:function(t,n,r,i){if(0!==n&&null!=h.default.query(r,h.default.Scope.BLOCK)&&(r!==this.statics.blotName||i!==this.statics.formats(this.domNode))){var o=this.newlineIndex(t);if(!(o<0||o>=t+n)){var a=this.newlineIndex(t,!0)+1,s=o-a+1,u=this.isolate(a,s),l=u.next;u.format(r,i),l instanceof e&&l.formatAt(0,t-a+n-s,r,i)}}}},{key:"insertAt",value:function(t,e,n){if(null==n){var r=this.descendant(b.default,t),i=s(r,2),o=i[0],a=i[1];o.insertAt(a,e)}}},{key:"length",value:function(){var t=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?t:t+1}},{key:"newlineIndex",value:function(t){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1])return this.domNode.textContent.slice(0,t).lastIndexOf("\n");var e=this.domNode.textContent.slice(t).indexOf("\n");return e>-1?t+e:-1}},{key:"optimize",value:function(t){this.domNode.textContent.endsWith("\n")||this.appendChild(h.default.create("text","\n")),l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===n.statics.formats(n.domNode)&&(n.optimize(t),n.moveChildren(this),n.remove())}},{key:"replace",value:function(t){l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replace",this).call(this,t),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(t){var e=h.default.find(t);null==e?t.parentNode.removeChild(t):e instanceof h.default.Embed?e.remove():e.unwrap()})}}],[{key:"create",value:function(t){var n=l(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return n.setAttribute("spellcheck",!1),n}},{key:"formats",value:function(){return!0}}]),e}(g.default);w.blotName="code-block",w.tagName="PRE",w.TAB=" ",e.Code=_,e.default=w},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){return Object.keys(e).reduce(function(n,r){return null==t[r]?n:(e[r]===t[r]?n[r]=e[r]:Array.isArray(e[r])?e[r].indexOf(t[r])<0&&(n[r]=e[r].concat([t[r]])):n[r]=[e[r],t[r]],n)},{})}function s(t){return t.reduce(function(t,e){if(1===e.insert){var n=(0,E.default)(e.attributes);return delete n.image,t.insert({image:e.attributes.image},n)}if(null==e.attributes||!0!==e.attributes.list&&!0!==e.attributes.bullet||(e=(0,E.default)(e),e.attributes.list?e.attributes.list="ordered":(e.attributes.list="bullet",delete e.attributes.bullet)),"string"==typeof e.insert){var r=e.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return t.insert(r,e.attributes)}return t.push(e)},new d.default)}Object.defineProperty(e,"__esModule",{value:!0});var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l=function(){function t(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),c=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),f=n(2),d=r(f),h=n(20),p=r(h),g=n(0),m=r(g),v=n(13),y=r(v),b=n(24),_=r(b),w=n(4),x=r(w),k=n(16),S=r(k),C=n(21),E=r(C),T=n(11),A=r(T),O=n(3),P=r(O),N=/^[ -~]*$/,D=function(){function t(e){o(this,t),this.scroll=e,this.delta=this.getDelta()}return c(t,[{key:"applyDelta",value:function(t){var e=this,n=!1;this.scroll.update();var r=this.scroll.length();return this.scroll.batchStart(),t=s(t),t.reduce(function(t,i){var o=i.retain||i.delete||i.insert.length||1,a=i.attributes||{};if(null!=i.insert){if("string"==typeof i.insert){var s=i.insert;s.endsWith("\n")&&n&&(n=!1,s=s.slice(0,-1)),t>=r&&!s.endsWith("\n")&&(n=!0),e.scroll.insertAt(t,s);var c=e.scroll.line(t),f=l(c,2),d=f[0],h=f[1],g=(0,P.default)({},(0,w.bubbleFormats)(d));if(d instanceof x.default){var v=d.descendant(m.default.Leaf,h),y=l(v,1),b=y[0];g=(0,P.default)(g,(0,w.bubbleFormats)(b))}a=p.default.attributes.diff(g,a)||{}}else if("object"===u(i.insert)){var _=Object.keys(i.insert)[0];if(null==_)return t;e.scroll.insertAt(t,_,i.insert[_])}r+=o}return Object.keys(a).forEach(function(n){e.scroll.formatAt(t,o,n,a[n])}),t+o},0),t.reduce(function(t,n){return"number"==typeof n.delete?(e.scroll.deleteAt(t,n.delete),t):t+(n.retain||n.insert.length||1)},0),this.scroll.batchEnd(),this.update(t)}},{key:"deleteText",value:function(t,e){return this.scroll.deleteAt(t,e),this.update((new d.default).retain(t).delete(e))}},{key:"formatLine",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(r).forEach(function(i){if(null==n.scroll.whitelist||n.scroll.whitelist[i]){var o=n.scroll.lines(t,Math.max(e,1)),a=e;o.forEach(function(e){var o=e.length();if(e instanceof y.default){var s=t-e.offset(n.scroll),u=e.newlineIndex(s+a)-s+1;e.formatAt(s,u,i,r[i])}else e.format(i,r[i]);a-=o})}}),this.scroll.optimize(),this.update((new d.default).retain(t).retain(e,(0,E.default)(r)))}},{key:"formatText",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(r).forEach(function(i){n.scroll.formatAt(t,e,i,r[i])}),this.update((new d.default).retain(t).retain(e,(0,E.default)(r)))}},{key:"getContents",value:function(t,e){return this.delta.slice(t,t+e)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(t,e){return t.concat(e.delta())},new d.default)}},{key:"getFormat",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[],r=[];0===e?this.scroll.path(t).forEach(function(t){var e=l(t,1),i=e[0];i instanceof x.default?n.push(i):i instanceof m.default.Leaf&&r.push(i)}):(n=this.scroll.lines(t,e),r=this.scroll.descendants(m.default.Leaf,t,e));var i=[n,r].map(function(t){if(0===t.length)return{};for(var e=(0,w.bubbleFormats)(t.shift());Object.keys(e).length>0;){var n=t.shift();if(null==n)return e;e=a((0,w.bubbleFormats)(n),e)}return e});return P.default.apply(P.default,i)}},{key:"getText",value:function(t,e){return this.getContents(t,e).filter(function(t){return"string"==typeof t.insert}).map(function(t){return t.insert}).join("")}},{key:"insertEmbed",value:function(t,e,n){return this.scroll.insertAt(t,e,n),this.update((new d.default).retain(t).insert(i({},e,n)))}},{key:"insertText",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e=e.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(t,e),Object.keys(r).forEach(function(i){n.scroll.formatAt(t,e.length,i,r[i])}),this.update((new d.default).retain(t).insert(e,(0,E.default)(r)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var t=this.scroll.children.head;return t.statics.blotName===x.default.blotName&&(!(t.children.length>1)&&t.children.head instanceof S.default)}},{key:"removeFormat",value:function(t,e){var n=this.getText(t,e),r=this.scroll.line(t+e),i=l(r,2),o=i[0],a=i[1],s=0,u=new d.default;null!=o&&(s=o instanceof y.default?o.newlineIndex(a)-a+1:o.length()-a,u=o.delta().slice(a,a+s-1).insert("\n"));var c=this.getContents(t,e+s),f=c.diff((new d.default).insert(n).concat(u)),h=(new d.default).retain(t).concat(f);return this.applyDelta(h)}},{key:"update",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=this.delta;if(1===e.length&&"characterData"===e[0].type&&e[0].target.data.match(N)&&m.default.find(e[0].target)){var i=m.default.find(e[0].target),o=(0,w.bubbleFormats)(i),a=i.offset(this.scroll),s=e[0].oldValue.replace(_.default.CONTENTS,""),u=(new d.default).insert(s),l=(new d.default).insert(i.value());t=(new d.default).retain(a).concat(u.diff(l,n)).reduce(function(t,e){return e.insert?t.insert(e.insert,o):t.push(e)},new d.default),this.delta=r.compose(t)}else this.delta=this.getDelta(),t&&(0,A.default)(r.compose(t),this.delta)||(t=r.diff(this.delta,n));return t}}]),t}();e.default=D},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){try{e.parentNode}catch(t){return!1}return e instanceof Text&&(e=e.parentNode),t.contains(e)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Range=void 0;var s=function(){function t(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),u=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),l=n(0),c=r(l),f=n(21),d=r(f),h=n(11),p=r(h),g=n(8),m=r(g),v=n(10),y=r(v),b=(0,y.default)("quill:selection"),_=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;o(this,t),this.index=e,this.length=n},w=function(){function t(e,n){var r=this;o(this,t),this.emitter=n,this.scroll=e,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=c.default.create("cursor",this),this.lastRange=this.savedRange=new _(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){r.mouseDown||setTimeout(r.update.bind(r,m.default.sources.USER),1)}),this.emitter.on(m.default.events.EDITOR_CHANGE,function(t,e){t===m.default.events.TEXT_CHANGE&&e.length()>0&&r.update(m.default.sources.SILENT)}),this.emitter.on(m.default.events.SCROLL_BEFORE_UPDATE,function(){if(r.hasFocus()){var t=r.getNativeRange();null!=t&&t.start.node!==r.cursor.textNode&&r.emitter.once(m.default.events.SCROLL_UPDATE,function(){try{r.setNativeRange(t.start.node,t.start.offset,t.end.node,t.end.offset)}catch(t){}})}}),this.emitter.on(m.default.events.SCROLL_OPTIMIZE,function(t,e){if(e.range){var n=e.range,i=n.startNode,o=n.startOffset,a=n.endNode,s=n.endOffset;r.setNativeRange(i,o,a,s)}}),this.update(m.default.sources.SILENT)}return u(t,[{key:"handleComposition",value:function(){var t=this;this.root.addEventListener("compositionstart",function(){t.composing=!0}),this.root.addEventListener("compositionend",function(){if(t.composing=!1,t.cursor.parent){var e=t.cursor.restore();if(!e)return;setTimeout(function(){t.setNativeRange(e.startNode,e.startOffset,e.endNode,e.endOffset)},1)}})}},{key:"handleDragging",value:function(){var t=this;this.emitter.listenDOM("mousedown",document.body,function(){t.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){t.mouseDown=!1,t.update(m.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(t,e){if(null==this.scroll.whitelist||this.scroll.whitelist[t]){this.scroll.update();var n=this.getNativeRange();if(null!=n&&n.native.collapsed&&!c.default.query(t,c.default.Scope.BLOCK)){if(n.start.node!==this.cursor.textNode){var r=c.default.find(n.start.node,!1);if(null==r)return;if(r instanceof c.default.Leaf){var i=r.split(n.start.offset);r.parent.insertBefore(this.cursor,i)}else r.insertBefore(this.cursor,n.start.node);this.cursor.attach()}this.cursor.format(t,e),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.scroll.length();t=Math.min(t,n-1),e=Math.min(t+e,n-1)-t;var r=void 0,i=this.scroll.leaf(t),o=s(i,2),a=o[0],u=o[1];if(null==a)return null;var l=a.position(u,!0),c=s(l,2);r=c[0],u=c[1];var f=document.createRange();if(e>0){f.setStart(r,u);var d=this.scroll.leaf(t+e),h=s(d,2);if(a=h[0],u=h[1],null==a)return null;var p=a.position(u,!0),g=s(p,2);return r=g[0],u=g[1],f.setEnd(r,u),f.getBoundingClientRect()}var m="left",v=void 0;return r instanceof Text?(u<r.data.length?(f.setStart(r,u),f.setEnd(r,u+1)):(f.setStart(r,u-1),f.setEnd(r,u),m="right"),v=f.getBoundingClientRect()):(v=a.domNode.getBoundingClientRect(),u>0&&(m="right")),{bottom:v.top+v.height,height:v.height,left:v[m],right:v[m],top:v.top,width:0}}},{key:"getNativeRange",value:function(){var t=document.getSelection();if(null==t||t.rangeCount<=0)return null;var e=t.getRangeAt(0);if(null==e)return null;var n=this.normalizeNative(e);return b.info("getNativeRange",n),n}},{key:"getRange",value:function(){var t=this.getNativeRange();return null==t?[null,null]:[this.normalizedToRange(t),t]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(t){var e=this,n=[[t.start.node,t.start.offset]];t.native.collapsed||n.push([t.end.node,t.end.offset]);var r=n.map(function(t){var n=s(t,2),r=n[0],i=n[1],o=c.default.find(r,!0),a=o.offset(e.scroll);return 0===i?a:o instanceof c.default.Container?a+o.length():a+o.index(r,i)}),o=Math.min(Math.max.apply(Math,i(r)),this.scroll.length()-1),a=Math.min.apply(Math,[o].concat(i(r)));return new _(a,o-a)}},{key:"normalizeNative",value:function(t){if(!a(this.root,t.startContainer)||!t.collapsed&&!a(this.root,t.endContainer))return null;var e={start:{node:t.startContainer,offset:t.startOffset},end:{node:t.endContainer,offset:t.endOffset},native:t};return[e.start,e.end].forEach(function(t){for(var e=t.node,n=t.offset;!(e instanceof Text)&&e.childNodes.length>0;)if(e.childNodes.length>n)e=e.childNodes[n],n=0;else{if(e.childNodes.length!==n)break;e=e.lastChild,n=e instanceof Text?e.data.length:e.childNodes.length+1}t.node=e,t.offset=n}),e}},{key:"rangeToNative",value:function(t){var e=this,n=t.collapsed?[t.index]:[t.index,t.index+t.length],r=[],i=this.scroll.length();return n.forEach(function(t,n){t=Math.min(i-1,t);var o=void 0,a=e.scroll.leaf(t),u=s(a,2),l=u[0],c=u[1],f=l.position(c,0!==n),d=s(f,2);o=d[0],c=d[1],r.push(o,c)}),r.length<2&&(r=r.concat(r)),r}},{key:"scrollIntoView",value:function(t){var e=this.lastRange;if(null!=e){var n=this.getBounds(e.index,e.length);if(null!=n){var r=this.scroll.length()-1,i=this.scroll.line(Math.min(e.index,r)),o=s(i,1),a=o[0],u=a;if(e.length>0){var l=this.scroll.line(Math.min(e.index+e.length,r));u=s(l,1)[0]}if(null!=a&&null!=u){var c=t.getBoundingClientRect();n.top<c.top?t.scrollTop-=c.top-n.top:n.bottom>c.bottom&&(t.scrollTop+=n.bottom-c.bottom)}}}}},{key:"setNativeRange",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e,i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(b.info("setNativeRange",t,e,n,r),null==t||null!=this.root.parentNode&&null!=t.parentNode&&null!=n.parentNode){var o=document.getSelection();if(null!=o)if(null!=t){this.hasFocus()||this.root.focus();var a=(this.getNativeRange()||{}).native;if(null==a||i||t!==a.startContainer||e!==a.startOffset||n!==a.endContainer||r!==a.endOffset){"BR"==t.tagName&&(e=[].indexOf.call(t.parentNode.childNodes,t),t=t.parentNode),"BR"==n.tagName&&(r=[].indexOf.call(n.parentNode.childNodes,n),n=n.parentNode);var s=document.createRange();s.setStart(t,e),s.setEnd(n,r),o.removeAllRanges(),o.addRange(s)}}else o.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:m.default.sources.API;if("string"==typeof e&&(n=e,e=!1),b.info("setRange",t),null!=t){var r=this.rangeToNative(t);this.setNativeRange.apply(this,i(r).concat([e]))}else this.setNativeRange(null);this.update(n)}},{key:"update",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:m.default.sources.USER,e=this.lastRange,n=this.getRange(),r=s(n,2),i=r[0],o=r[1];if(this.lastRange=i,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,p.default)(e,this.lastRange)){var a;!this.composing&&null!=o&&o.native.collapsed&&o.start.node!==this.cursor.textNode&&this.cursor.restore();var u=[m.default.events.SELECTION_CHANGE,(0,d.default)(this.lastRange),(0,d.default)(e),t];if((a=this.emitter).emit.apply(a,[m.default.events.EDITOR_CHANGE].concat(u)),t!==m.default.sources.SILENT){var l;(l=this.emitter).emit.apply(l,u)}}}}]),t}();e.Range=_,e.default=w},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),s=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;if(void 0!==a)return a.call(r)},u=n(0),l=function(t){return t&&t.__esModule?t:{default:t}}(u),c=function(t){function e(){return r(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return o(e,t),a(e,[{key:"insertInto",value:function(t,n){0===t.children.length?s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertInto",this).call(this,t,n):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),e}(l.default.Embed);c.blotName="break",c.tagName="BR",e.default=c},function(t,e,n){"use strict";function r(t){var e=s.find(t);if(null==e)try{e=s.create(t)}catch(n){e=s.create(s.Scope.INLINE),[].slice.call(t.childNodes).forEach(function(t){e.domNode.appendChild(t)}),t.parentNode&&t.parentNode.replaceChild(e.domNode,t),e.attach()}return e}var i=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(44),a=n(30),s=n(1),u=function(t){function e(e){var n=t.call(this,e)||this;return n.build(),n}return i(e,t),e.prototype.appendChild=function(t){this.insertBefore(t)},e.prototype.attach=function(){t.prototype.attach.call(this),this.children.forEach(function(t){t.attach()})},e.prototype.build=function(){var t=this;this.children=new o.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(e){try{var n=r(e);t.insertBefore(n,t.children.head||void 0)}catch(t){if(t instanceof s.ParchmentError)return;throw t}})},e.prototype.deleteAt=function(t,e){if(0===t&&e===this.length())return this.remove();this.children.forEachAt(t,e,function(t,e,n){t.deleteAt(e,n)})},e.prototype.descendant=function(t,n){var r=this.children.find(n),i=r[0],o=r[1];return null==t.blotName&&t(i)||null!=t.blotName&&i instanceof t?[i,o]:i instanceof e?i.descendant(t,o):[null,-1]},e.prototype.descendants=function(t,n,r){void 0===n&&(n=0),void 0===r&&(r=Number.MAX_VALUE);var i=[],o=r;return this.children.forEachAt(n,r,function(n,r,a){(null==t.blotName&&t(n)||null!=t.blotName&&n instanceof t)&&i.push(n),n instanceof e&&(i=i.concat(n.descendants(t,r,o))),o-=a}),i},e.prototype.detach=function(){this.children.forEach(function(t){t.detach()}),t.prototype.detach.call(this)},e.prototype.formatAt=function(t,e,n,r){this.children.forEachAt(t,e,function(t,e,i){t.formatAt(e,i,n,r)})},e.prototype.insertAt=function(t,e,n){var r=this.children.find(t),i=r[0],o=r[1];if(i)i.insertAt(o,e,n);else{var a=null==n?s.create("text",e):s.create(e,n);this.appendChild(a)}},e.prototype.insertBefore=function(t,e){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some(function(e){return t instanceof e}))throw new s.ParchmentError("Cannot insert "+t.statics.blotName+" into "+this.statics.blotName);t.insertInto(this,e)},e.prototype.length=function(){return this.children.reduce(function(t,e){return t+e.length()},0)},e.prototype.moveChildren=function(t,e){this.children.forEach(function(n){t.insertBefore(n,e)})},e.prototype.optimize=function(e){if(t.prototype.optimize.call(this,e),0===this.children.length)if(null!=this.statics.defaultChild){var n=s.create(this.statics.defaultChild);this.appendChild(n),n.optimize(e)}else this.remove()},e.prototype.path=function(t,n){void 0===n&&(n=!1);var r=this.children.find(t,n),i=r[0],o=r[1],a=[[this,t]];return i instanceof e?a.concat(i.path(o,n)):(null!=i&&a.push([i,o]),a)},e.prototype.removeChild=function(t){this.children.remove(t)},e.prototype.replace=function(n){n instanceof e&&n.moveChildren(this),t.prototype.replace.call(this,n)},e.prototype.split=function(t,e){if(void 0===e&&(e=!1),!e){if(0===t)return this;if(t===this.length())return this.next}var n=this.clone();return this.parent.insertBefore(n,this.next),this.children.forEachAt(t,this.length(),function(t,r,i){t=t.split(r,e),n.appendChild(t)}),n},e.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},e.prototype.update=function(t,e){var n=this,i=[],o=[];t.forEach(function(t){t.target===n.domNode&&"childList"===t.type&&(i.push.apply(i,t.addedNodes),o.push.apply(o,t.removedNodes))}),o.forEach(function(t){if(!(null!=t.parentNode&&"IFRAME"!==t.tagName&&document.body.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var e=s.find(t);null!=e&&(null!=e.domNode.parentNode&&e.domNode.parentNode!==n.domNode||e.detach())}}),i.filter(function(t){return t.parentNode==n.domNode}).sort(function(t,e){return t===e?0:t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(t){var e=null;null!=t.nextSibling&&(e=s.find(t.nextSibling));var i=r(t);i.next==e&&null!=i.next||(null!=i.parent&&i.parent.removeChild(n),n.insertBefore(i,e||void 0))})},e}(a.default);e.default=u},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(12),o=n(31),a=n(17),s=n(1),u=function(t){function e(e){var n=t.call(this,e)||this;return n.attributes=new o.default(n.domNode),n}return r(e,t),e.formats=function(t){return"string"==typeof this.tagName||(Array.isArray(this.tagName)?t.tagName.toLowerCase():void 0)},e.prototype.format=function(t,e){var n=s.query(t);n instanceof i.default?this.attributes.attribute(n,e):e&&(null==n||t===this.statics.blotName&&this.formats()[t]===e||this.replaceWith(t,e))},e.prototype.formats=function(){var t=this.attributes.values(),e=this.statics.formats(this.domNode);return null!=e&&(t[this.statics.blotName]=e),t},e.prototype.replaceWith=function(e,n){var r=t.prototype.replaceWith.call(this,e,n);return this.attributes.copy(r),r},e.prototype.update=function(e,n){var r=this;t.prototype.update.call(this,e,n),e.some(function(t){return t.target===r.domNode&&"attributes"===t.type})&&this.attributes.build()},e.prototype.wrap=function(n,r){var i=t.prototype.wrap.call(this,n,r);return i instanceof e&&i.statics.scope===this.statics.scope&&this.attributes.move(i),i},e}(a.default);e.default=u},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(30),o=n(1),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.value=function(t){return!0},e.prototype.index=function(t,e){return this.domNode===t||this.domNode.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(e,1):-1},e.prototype.position=function(t,e){var n=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return t>0&&(n+=1),[this.parent.domNode,n]},e.prototype.value=function(){var t;return t={},t[this.statics.blotName]=this.statics.value(this.domNode)||!0,t},e.scope=o.Scope.INLINE_BLOT,e}(i.default);e.default=a},function(t,e,n){function r(t){this.ops=t,this.index=0,this.offset=0}var i=n(11),o=n(3),a={attributes:{compose:function(t,e,n){"object"!=typeof t&&(t={}),"object"!=typeof e&&(e={});var r=o(!0,{},e);n||(r=Object.keys(r).reduce(function(t,e){return null!=r[e]&&(t[e]=r[e]),t},{}));for(var i in t)void 0!==t[i]&&void 0===e[i]&&(r[i]=t[i]);return Object.keys(r).length>0?r:void 0},diff:function(t,e){"object"!=typeof t&&(t={}),"object"!=typeof e&&(e={});var n=Object.keys(t).concat(Object.keys(e)).reduce(function(n,r){return i(t[r],e[r])||(n[r]=void 0===e[r]?null:e[r]),n},{});return Object.keys(n).length>0?n:void 0},transform:function(t,e,n){if("object"!=typeof t)return e;if("object"==typeof e){if(!n)return e;var r=Object.keys(e).reduce(function(n,r){return void 0===t[r]&&(n[r]=e[r]),n},{});return Object.keys(r).length>0?r:void 0}}},iterator:function(t){return new r(t)},length:function(t){return"number"==typeof t.delete?t.delete:"number"==typeof t.retain?t.retain:"string"==typeof t.insert?t.insert.length:1}};r.prototype.hasNext=function(){return this.peekLength()<1/0},r.prototype.next=function(t){t||(t=1/0);var e=this.ops[this.index];if(e){var n=this.offset,r=a.length(e);if(t>=r-n?(t=r-n,this.index+=1,this.offset=0):this.offset+=t,"number"==typeof e.delete)return{delete:t};var i={};return e.attributes&&(i.attributes=e.attributes),"number"==typeof e.retain?i.retain=t:"string"==typeof e.insert?i.insert=e.insert.substr(n,t):i.insert=e.insert,i}return{retain:1/0}},r.prototype.peek=function(){return this.ops[this.index]},r.prototype.peekLength=function(){return this.ops[this.index]?a.length(this.ops[this.index])-this.offset:1/0},r.prototype.peekType=function(){return this.ops[this.index]?"number"==typeof this.ops[this.index].delete?"delete":"number"==typeof this.ops[this.index].retain?"retain":"insert":"retain"},r.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var t=this.offset,e=this.index,n=this.next(),r=this.ops.slice(this.index);return this.offset=t,this.index=e,[n].concat(r)}return[]},t.exports=a},function(t,n){var r=function(){"use strict";function t(t,e){return null!=e&&t instanceof e}function n(r,i,o,a,f){function d(r,o){if(null===r)return null;if(0===o)return r;var m,v;if("object"!=typeof r)return r;if(t(r,u))m=new u;else if(t(r,l))m=new l;else if(t(r,c))m=new c(function(t,e){r.then(function(e){t(d(e,o-1))},function(t){e(d(t,o-1))})});else if(n.__isArray(r))m=[];else if(n.__isRegExp(r))m=new RegExp(r.source,s(r)),r.lastIndex&&(m.lastIndex=r.lastIndex);else if(n.__isDate(r))m=new Date(r.getTime());else{if(g&&e.isBuffer(r))return m=e.allocUnsafe?e.allocUnsafe(r.length):new e(r.length),r.copy(m),m;t(r,Error)?m=Object.create(r):void 0===a?(v=Object.getPrototypeOf(r),m=Object.create(v)):(m=Object.create(a),v=a)}if(i){var y=h.indexOf(r);if(-1!=y)return p[y];h.push(r),p.push(m)}t(r,u)&&r.forEach(function(t,e){var n=d(e,o-1),r=d(t,o-1);m.set(n,r)}),t(r,l)&&r.forEach(function(t){var e=d(t,o-1);m.add(e)});for(var b in r){var _;v&&(_=Object.getOwnPropertyDescriptor(v,b)),_&&null==_.set||(m[b]=d(r[b],o-1))}if(Object.getOwnPropertySymbols)for(var w=Object.getOwnPropertySymbols(r),b=0;b<w.length;b++){var x=w[b],k=Object.getOwnPropertyDescriptor(r,x);(!k||k.enumerable||f)&&(m[x]=d(r[x],o-1),k.enumerable||Object.defineProperty(m,x,{enumerable:!1}))}if(f)for(var S=Object.getOwnPropertyNames(r),b=0;b<S.length;b++){var C=S[b],k=Object.getOwnPropertyDescriptor(r,C);k&&k.enumerable||(m[C]=d(r[C],o-1),Object.defineProperty(m,C,{enumerable:!1}))}return m}"object"==typeof i&&(o=i.depth,a=i.prototype,f=i.includeNonEnumerable,i=i.circular);var h=[],p=[],g=void 0!==e;return void 0===i&&(i=!0),void 0===o&&(o=1/0),d(r,o)}function r(t){return Object.prototype.toString.call(t)}function i(t){return"object"==typeof t&&"[object Date]"===r(t)}function o(t){return"object"==typeof t&&"[object Array]"===r(t)}function a(t){return"object"==typeof t&&"[object RegExp]"===r(t)}function s(t){var e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),e}var u;try{u=Map}catch(t){u=function(){}}var l;try{l=Set}catch(t){l=function(){}}var c;try{c=Promise}catch(t){c=function(){}}return n.clonePrototype=function(t){if(null===t)return null;var e=function(){};return e.prototype=t,new e},n.__objToStr=r,n.__isDate=i,n.__isArray=o,n.__isRegExp=a,n.__getRegExpFlags=s,n}();"object"==typeof t&&t.exports&&(t.exports=r)},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return t instanceof m.default||t instanceof g.BlockEmbed}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),c=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;if(void 0!==a)return a.call(r)},f=n(0),d=r(f),h=n(8),p=r(h),g=n(4),m=r(g),v=n(16),y=r(v),b=n(13),_=r(b),w=n(25),x=r(w),k=function(t){function e(t,n){i(this,e);var r=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r.emitter=n.emitter,Array.isArray(n.whitelist)&&(r.whitelist=n.whitelist.reduce(function(t,e){return t[e]=!0,t},{})),r.domNode.addEventListener("DOMNodeInserted",function(){}),r.optimize(),r.enable(),r}return a(e,t),l(e,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(t,n){var r=this.line(t),i=u(r,2),o=i[0],a=i[1],s=this.line(t+n),l=u(s,1),f=l[0];if(c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"deleteAt",this).call(this,t,n),null!=f&&o!==f&&a>0){if(o instanceof g.BlockEmbed||f instanceof g.BlockEmbed)return void this.optimize();if(o instanceof _.default){var d=o.newlineIndex(o.length(),!0);if(d>-1&&(o=o.split(d+1))===f)return void this.optimize()}else if(f instanceof _.default){var h=f.newlineIndex(0);h>-1&&f.split(h+1)}var p=f.children.head instanceof y.default?null:f.children.head;o.moveChildren(f,p),o.remove()}this.optimize()}},{key:"enable",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.domNode.setAttribute("contenteditable",t)}},{key:"formatAt",value:function(t,n,r,i){(null==this.whitelist||this.whitelist[r])&&(c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"formatAt",this).call(this,t,n,r,i),this.optimize())}},{key:"insertAt",value:function(t,n,r){if(null==r||null==this.whitelist||this.whitelist[n]){if(t>=this.length())if(null==r||null==d.default.query(n,d.default.Scope.BLOCK)){var i=d.default.create(this.statics.defaultChild);this.appendChild(i),null==r&&n.endsWith("\n")&&(n=n.slice(0,-1)),i.insertAt(0,n,r)}else{var o=d.default.create(n,r);this.appendChild(o)}else c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,t,n,r);this.optimize()}}},{key:"insertBefore",value:function(t,n){if(t.statics.scope===d.default.Scope.INLINE_BLOT){var r=d.default.create(this.statics.defaultChild);r.appendChild(t),t=r}c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertBefore",this).call(this,t,n)}},{key:"leaf",value:function(t){return this.path(t).pop()||[null,-1]}},{key:"line",value:function(t){return t===this.length()?this.line(t-1):this.descendant(s,t)}},{key:"lines",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return function t(e,n,r){var i=[],o=r;return e.children.forEachAt(n,r,function(e,n,r){s(e)?i.push(e):e instanceof d.default.Container&&(i=i.concat(t(e,n,o))),o-=r}),i}(this,t,e)}},{key:"optimize",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t,n),t.length>0&&this.emitter.emit(p.default.events.SCROLL_OPTIMIZE,t,n))}},{key:"path",value:function(t){return c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"path",this).call(this,t).slice(1)}},{key:"update",value:function(t){if(!0!==this.batch){var n=p.default.sources.USER;"string"==typeof t&&(n=t),Array.isArray(t)||(t=this.observer.takeRecords()),t.length>0&&this.emitter.emit(p.default.events.SCROLL_BEFORE_UPDATE,n,t),c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"update",this).call(this,t.concat([])),t.length>0&&this.emitter.emit(p.default.events.SCROLL_UPDATE,n,t)}}}]),e}(d.default.Scroll);k.blotName="scroll",k.className="ql-editor",k.tagName="DIV",k.defaultChild="block",k.allowedChildren=[m.default,g.BlockEmbed,x.default],e.default=k},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function u(t,e){var n,r=t===F.keys.LEFT?"prefix":"suffix";return n={key:t,shiftKey:e,altKey:null},i(n,r,/^$/),i(n,"handler",function(n){var r=n.index;t===F.keys.RIGHT&&(r+=n.length+1);var i=this.quill.getLeaf(r);return!(v(i,1)[0]instanceof P.default.Embed)||(t===F.keys.LEFT?e?this.quill.setSelection(n.index-1,n.length+1,D.default.sources.USER):this.quill.setSelection(n.index-1,D.default.sources.USER):e?this.quill.setSelection(n.index,n.length+1,D.default.sources.USER):this.quill.setSelection(n.index+n.length+1,D.default.sources.USER),!1)}),n}function l(t,e){if(!(0===t.index||this.quill.getLength()<=1)){var n=this.quill.getLine(t.index),r=v(n,1),i=r[0],o={};if(0===e.offset){var a=this.quill.getLine(t.index-1),s=v(a,1),u=s[0];if(null!=u&&u.length()>1){var l=i.formats(),c=this.quill.getFormat(t.index-1,1);o=A.default.attributes.diff(l,c)||{}}}var f=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(e.prefix)?2:1;this.quill.deleteText(t.index-f,f,D.default.sources.USER),Object.keys(o).length>0&&this.quill.formatLine(t.index-f,f,o,D.default.sources.USER),this.quill.focus()}}function c(t,e){var n=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(e.suffix)?2:1;if(!(t.index>=this.quill.getLength()-n)){var r={},i=0,o=this.quill.getLine(t.index),a=v(o,1),s=a[0];if(e.offset>=s.length()-1){var u=this.quill.getLine(t.index+1),l=v(u,1),c=l[0];if(c){var f=s.formats(),d=this.quill.getFormat(t.index,1);r=A.default.attributes.diff(f,d)||{},i=c.length()}}this.quill.deleteText(t.index,n,D.default.sources.USER),Object.keys(r).length>0&&this.quill.formatLine(t.index+i-1,n,r,D.default.sources.USER)}}function f(t){var e=this.quill.getLines(t),n={};if(e.length>1){var r=e[0].formats(),i=e[e.length-1].formats();n=A.default.attributes.diff(i,r)||{}}this.quill.deleteText(t,D.default.sources.USER),Object.keys(n).length>0&&this.quill.formatLine(t.index,1,n,D.default.sources.USER),this.quill.setSelection(t.index,D.default.sources.SILENT),this.quill.focus()}function d(t,e){var n=this;t.length>0&&this.quill.scroll.deleteAt(t.index,t.length);var r=Object.keys(e.format).reduce(function(t,n){return P.default.query(n,P.default.Scope.BLOCK)&&!Array.isArray(e.format[n])&&(t[n]=e.format[n]),t},{});this.quill.insertText(t.index,"\n",r,D.default.sources.USER),this.quill.setSelection(t.index+1,D.default.sources.SILENT),this.quill.focus(),Object.keys(e.format).forEach(function(t){null==r[t]&&(Array.isArray(e.format[t])||"link"!==t&&n.quill.format(t,e.format[t],D.default.sources.USER))})}function h(t){return{key:F.keys.TAB,shiftKey:!t,format:{"code-block":!0},handler:function(e){var n=P.default.query("code-block"),r=e.index,i=e.length,o=this.quill.scroll.descendant(n,r),a=v(o,2),s=a[0],u=a[1];if(null!=s){var l=this.quill.getIndex(s),c=s.newlineIndex(u,!0)+1,f=s.newlineIndex(l+u+i),d=s.domNode.textContent.slice(c,f).split("\n");u=0,d.forEach(function(e,o){t?(s.insertAt(c+u,n.TAB),u+=n.TAB.length,0===o?r+=n.TAB.length:i+=n.TAB.length):e.startsWith(n.TAB)&&(s.deleteAt(c+u,n.TAB.length),u-=n.TAB.length,0===o?r-=n.TAB.length:i-=n.TAB.length),u+=e.length+1}),this.quill.update(D.default.sources.USER),this.quill.setSelection(r,i,D.default.sources.SILENT)}}}}function p(t){return{key:t[0].toUpperCase(),shortKey:!0,handler:function(e,n){this.quill.format(t,!n.format[t],D.default.sources.USER)}}}function g(t){if("string"==typeof t||"number"==typeof t)return g({key:t});if("object"===(void 0===t?"undefined":m(t))&&(t=(0,_.default)(t,!1)),"string"==typeof t.key)if(null!=F.keys[t.key.toUpperCase()])t.key=F.keys[t.key.toUpperCase()];else{if(1!==t.key.length)return null;t.key=t.key.toUpperCase().charCodeAt(0)}return t.shortKey&&(t[j]=t.shortKey,delete t.shortKey),t}Object.defineProperty(e,"__esModule",{value:!0}),e.SHORTKEY=e.default=void 0;var m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},v=function(){function t(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),y=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),b=n(21),_=r(b),w=n(11),x=r(w),k=n(3),S=r(k),C=n(2),E=r(C),T=n(20),A=r(T),O=n(0),P=r(O),N=n(5),D=r(N),M=n(10),I=r(M),R=n(9),$=r(R),L=(0,I.default)("quill:keyboard"),j=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",F=function(t){function e(t,n){o(this,e);var r=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.bindings={},Object.keys(r.options.bindings).forEach(function(e){("list autofill"!==e||null==t.scroll.whitelist||t.scroll.whitelist.list)&&r.options.bindings[e]&&r.addBinding(r.options.bindings[e])}),r.addBinding({key:e.keys.ENTER,shiftKey:null},d),r.addBinding({key:e.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){}),/Firefox/i.test(navigator.userAgent)?(r.addBinding({key:e.keys.BACKSPACE},{collapsed:!0},l),r.addBinding({key:e.keys.DELETE},{collapsed:!0},c)):(r.addBinding({key:e.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},l),r.addBinding({key:e.keys.DELETE},{collapsed:!0,suffix:/^.?$/},c)),r.addBinding({key:e.keys.BACKSPACE},{collapsed:!1},f),r.addBinding({key:e.keys.DELETE},{collapsed:!1},f),r.addBinding({key:e.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},l),r.listen(),r}return s(e,t),y(e,null,[{key:"match",value:function(t,e){return e=g(e),!["altKey","ctrlKey","metaKey","shiftKey"].some(function(n){return!!e[n]!==t[n]&&null!==e[n]})&&e.key===(t.which||t.keyCode)}}]),y(e,[{key:"addBinding",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=g(t);if(null==r||null==r.key)return L.warn("Attempted to add invalid keyboard binding",r);"function"==typeof e&&(e={handler:e}),"function"==typeof n&&(n={handler:n}),r=(0,S.default)(r,e,n),this.bindings[r.key]=this.bindings[r.key]||[],this.bindings[r.key].push(r)}},{key:"listen",value:function(){var t=this;this.quill.root.addEventListener("keydown",function(n){if(!n.defaultPrevented){var r=n.which||n.keyCode,i=(t.bindings[r]||[]).filter(function(t){return e.match(n,t)});if(0!==i.length){var o=t.quill.getSelection();if(null!=o&&t.quill.hasFocus()){var a=t.quill.getLine(o.index),s=v(a,2),u=s[0],l=s[1],c=t.quill.getLeaf(o.index),f=v(c,2),d=f[0],h=f[1],p=0===o.length?[d,h]:t.quill.getLeaf(o.index+o.length),g=v(p,2),y=g[0],b=g[1],_=d instanceof P.default.Text?d.value().slice(0,h):"",w=y instanceof P.default.Text?y.value().slice(b):"",k={collapsed:0===o.length,empty:0===o.length&&u.length()<=1,format:t.quill.getFormat(o),offset:l,prefix:_,suffix:w};i.some(function(e){if(null!=e.collapsed&&e.collapsed!==k.collapsed)return!1;if(null!=e.empty&&e.empty!==k.empty)return!1;if(null!=e.offset&&e.offset!==k.offset)return!1;if(Array.isArray(e.format)){if(e.format.every(function(t){return null==k.format[t]}))return!1}else if("object"===m(e.format)&&!Object.keys(e.format).every(function(t){return!0===e.format[t]?null!=k.format[t]:!1===e.format[t]?null==k.format[t]:(0,x.default)(e.format[t],k.format[t])}))return!1;return!(null!=e.prefix&&!e.prefix.test(k.prefix))&&(!(null!=e.suffix&&!e.suffix.test(k.suffix))&&!0!==e.handler.call(t,o,k))})&&n.preventDefault()}}}})}}]),e}($.default);F.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},F.DEFAULTS={bindings:{bold:p("bold"),italic:p("italic"),underline:p("underline"),indent:{key:F.keys.TAB,format:["blockquote","indent","list"],handler:function(t,e){if(e.collapsed&&0!==e.offset)return!0;this.quill.format("indent","+1",D.default.sources.USER)}},outdent:{key:F.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(t,e){if(e.collapsed&&0!==e.offset)return!0;this.quill.format("indent","-1",D.default.sources.USER)}},"outdent backspace":{key:F.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(t,e){null!=e.format.indent?this.quill.format("indent","-1",D.default.sources.USER):null!=e.format.list&&this.quill.format("list",!1,D.default.sources.USER)}},"indent code-block":h(!0),"outdent code-block":h(!1),"remove tab":{key:F.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(t){this.quill.deleteText(t.index-1,1,D.default.sources.USER)}},tab:{key:F.keys.TAB,handler:function(t){this.quill.history.cutoff();var e=(new E.default).retain(t.index).delete(t.length).insert("\t");this.quill.updateContents(e,D.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(t.index+1,D.default.sources.SILENT)}},"list empty enter":{key:F.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(t,e){this.quill.format("list",!1,D.default.sources.USER),e.format.indent&&this.quill.format("indent",!1,D.default.sources.USER)}},"checklist enter":{key:F.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(t){var e=this.quill.getLine(t.index),n=v(e,2),r=n[0],i=n[1],o=(0,S.default)({},r.formats(),{list:"checked"}),a=(new E.default).retain(t.index).insert("\n",o).retain(r.length()-i-1).retain(1,{list:"unchecked"});this.quill.updateContents(a,D.default.sources.USER),this.quill.setSelection(t.index+1,D.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:F.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(t,e){var n=this.quill.getLine(t.index),r=v(n,2),i=r[0],o=r[1],a=(new E.default).retain(t.index).insert("\n",e.format).retain(i.length()-o-1).retain(1,{header:null});this.quill.updateContents(a,D.default.sources.USER),this.quill.setSelection(t.index+1,D.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(t,e){var n=e.prefix.length,r=this.quill.getLine(t.index),i=v(r,2),o=i[0],a=i[1];if(a>n)return!0;var s=void 0;switch(e.prefix.trim()){case"[]":case"[ ]":s="unchecked";break;case"[x]":s="checked";break;case"-":case"*":s="bullet";break;default:s="ordered"}this.quill.insertText(t.index," ",D.default.sources.USER),this.quill.history.cutoff();var u=(new E.default).retain(t.index-a).delete(n+1).retain(o.length()-2-a).retain(1,{list:s});this.quill.updateContents(u,D.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(t.index-n,D.default.sources.SILENT)}},"code exit":{key:F.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(t){var e=this.quill.getLine(t.index),n=v(e,2),r=n[0],i=n[1],o=(new E.default).retain(t.index+r.length()-i-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(o,D.default.sources.USER)}},"embed left":u(F.keys.LEFT,!1),"embed left shift":u(F.keys.LEFT,!0),"embed right":u(F.keys.RIGHT,!1),"embed right shift":u(F.keys.RIGHT,!0)}},e.default=F,e.SHORTKEY=j},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var s=function(){function t(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),u=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;if(void 0!==a)return a.call(r)},l=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),c=n(0),f=r(c),d=n(7),h=r(d),p=function(t){function e(t,n){i(this,e);var r=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r.selection=n,r.textNode=document.createTextNode(e.CONTENTS),r.domNode.appendChild(r.textNode),r._length=0,r}return a(e,t),l(e,null,[{key:"value",value:function(){}}]),l(e,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(t,n){if(0!==this._length)return u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n);for(var r=this,i=0;null!=r&&r.statics.scope!==f.default.Scope.BLOCK_BLOT;)i+=r.offset(r.parent),r=r.parent;null!=r&&(this._length=e.CONTENTS.length,r.optimize(),r.formatAt(i,e.CONTENTS.length,t,n),this._length=0)}},{key:"index",value:function(t,n){return t===this.textNode?0:u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"index",this).call(this,t,n)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!this.selection.composing&&null!=this.parent){var t=this.textNode,n=this.selection.getNativeRange(),r=void 0,i=void 0,o=void 0;if(null!=n&&n.start.node===t&&n.end.node===t){var a=[t,n.start.offset,n.end.offset];r=a[0],i=a[1],o=a[2]}for(;null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==e.CONTENTS){var u=this.textNode.data.split(e.CONTENTS).join("");this.next instanceof h.default?(r=this.next.domNode,this.next.insertAt(0,u),this.textNode.data=e.CONTENTS):(this.textNode.data=u,this.parent.insertBefore(f.default.create(this.textNode),this),this.textNode=document.createTextNode(e.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),null!=i){var l=[i,o].map(function(t){return Math.max(0,Math.min(r.data.length,t-1))}),c=s(l,2);return i=c[0],o=c[1],{startNode:r,startOffset:i,endNode:r,endOffset:o}}}}},{key:"update",value:function(t,e){var n=this;if(t.some(function(t){return"characterData"===t.type&&t.target===n.textNode})){var r=this.restore();r&&(e.range=r)}}},{key:"value",value:function(){return""}}]),e}(f.default.Embed);p.blotName="cursor",p.className="ql-cursor",p.tagName="span",p.CONTENTS="\ufeff",e.default=p},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var s=n(0),u=r(s),l=n(4),c=r(l),f=function(t){function e(){return i(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,t),e}(u.default.Container);f.allowedChildren=[c.default,l.BlockEmbed,f],e.default=f},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.ColorStyle=e.ColorClass=e.ColorAttributor=void 0;var a=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),s=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;if(void 0!==a)return a.call(r)},u=n(0),l=function(t){return t&&t.__esModule?t:{default:t}}(u),c=function(t){function e(){return r(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return o(e,t),a(e,[{key:"value",value:function(t){var n=s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"value",this).call(this,t);return n.startsWith("rgb(")?(n=n.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+n.split(",").map(function(t){return("00"+parseInt(t).toString(16)).slice(-2)}).join("")):n}}]),e}(l.default.Attributor.Style),f=new l.default.Attributor.Class("color","ql-color",{scope:l.default.Scope.INLINE}),d=new c("color","color",{scope:l.default.Scope.INLINE});e.ColorAttributor=c,e.ColorClass=f,e.ColorStyle=d},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function a(t,e){var n=document.createElement("a");n.href=t;var r=n.href.slice(0,n.href.indexOf(":"));return e.indexOf(r)>-1}Object.defineProperty(e,"__esModule",{value:!0}),e.sanitize=e.default=void 0;var s=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),u=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;if(void 0!==a)return a.call(r)},l=n(6),c=function(t){return t&&t.__esModule?t:{default:t}}(l),f=function(t){function e(){return r(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return o(e,t),s(e,[{key:"format",value:function(t,n){if(t!==this.statics.blotName||!n)return u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n);n=this.constructor.sanitize(n),this.domNode.setAttribute("href",n)}}],[{key:"create",value:function(t){var n=u(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return t=this.sanitize(t),n.setAttribute("href",t),n.setAttribute("rel","noopener noreferrer"),n.setAttribute("target","_blank"),n}},{key:"formats",value:function(t){return t.getAttribute("href")}},{key:"sanitize",value:function(t){return a(t,this.PROTOCOL_WHITELIST)?t:this.SANITIZED_URL}}]),e}(c.default);f.blotName="link",f.tagName="A",f.SANITIZED_URL="about:blank",f.PROTOCOL_WHITELIST=["http","https","mailto","tel"],e.default=f,e.sanitize=a},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){t.setAttribute(e,!("true"===t.getAttribute(e)))}Object.defineProperty(e,"__esModule",{value:!0});var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),u=n(23),l=r(u),c=n(107),f=r(c),d=0,h=function(){function t(e){var n=this;i(this,t),this.select=e,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",function(){n.togglePicker()}),this.label.addEventListener("keydown",function(t){switch(t.keyCode){case l.default.keys.ENTER:n.togglePicker();break;case l.default.keys.ESCAPE:n.escape(),t.preventDefault()}}),this.select.addEventListener("change",this.update.bind(this))}return s(t,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),o(this.label,"aria-expanded"),o(this.options,"aria-hidden")}},{key:"buildItem",value:function(t){var e=this,n=document.createElement("span");return n.tabIndex="0",n.setAttribute("role","button"),n.classList.add("ql-picker-item"),t.hasAttribute("value")&&n.setAttribute("data-value",t.getAttribute("value")),t.textContent&&n.setAttribute("data-label",t.textContent),n.addEventListener("click",function(){e.selectItem(n,!0)}),n.addEventListener("keydown",function(t){switch(t.keyCode){case l.default.keys.ENTER:e.selectItem(n,!0),t.preventDefault();break;case l.default.keys.ESCAPE:e.escape(),t.preventDefault()}}),n}},{key:"buildLabel",value:function(){var t=document.createElement("span");return t.classList.add("ql-picker-label"),t.innerHTML=f.default,t.tabIndex="0",t.setAttribute("role","button"),t.setAttribute("aria-expanded","false"),this.container.appendChild(t),t}},{key:"buildOptions",value:function(){var t=this,e=document.createElement("span");e.classList.add("ql-picker-options"),e.setAttribute("aria-hidden","true"),e.tabIndex="-1",e.id="ql-picker-options-"+d,d+=1,this.label.setAttribute("aria-controls",e.id),this.options=e,[].slice.call(this.select.options).forEach(function(n){var r=t.buildItem(n);e.appendChild(r),!0===n.selected&&t.selectItem(r)}),this.container.appendChild(e)}},{key:"buildPicker",value:function(){var t=this;[].slice.call(this.select.attributes).forEach(function(e){t.container.setAttribute(e.name,e.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var t=this;this.close(),setTimeout(function(){return t.label.focus()},1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.container.querySelector(".ql-selected");if(t!==n&&(null!=n&&n.classList.remove("ql-selected"),null!=t&&(t.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(t.parentNode.children,t),t.hasAttribute("data-value")?this.label.setAttribute("data-value",t.getAttribute("data-value")):this.label.removeAttribute("data-value"),t.hasAttribute("data-label")?this.label.setAttribute("data-label",t.getAttribute("data-label")):this.label.removeAttribute("data-label"),e))){if("function"==typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===("undefined"==typeof Event?"undefined":a(Event))){var r=document.createEvent("Event");r.initEvent("change",!0,!0),this.select.dispatchEvent(r)}this.close()}}},{key:"update",value:function(){var t=void 0;if(this.select.selectedIndex>-1){var e=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];t=this.select.options[this.select.selectedIndex],this.selectItem(e)}else this.selectItem(null);var n=null!=t&&t!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}]),t}();e.default=h},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=r(i),a=n(5),s=r(a),u=n(4),l=r(u),c=n(16),f=r(c),d=n(25),h=r(d),p=n(24),g=r(p),m=n(35),v=r(m),y=n(6),b=r(y),_=n(22),w=r(_),x=n(7),k=r(x),S=n(55),C=r(S),E=n(42),T=r(E),A=n(23),O=r(A);s.default.register({"blots/block":l.default,"blots/block/embed":u.BlockEmbed,"blots/break":f.default,"blots/container":h.default,"blots/cursor":g.default,"blots/embed":v.default,"blots/inline":b.default,"blots/scroll":w.default,"blots/text":k.default,"modules/clipboard":C.default,"modules/history":T.default,"modules/keyboard":O.default}),o.default.register(l.default,f.default,g.default,b.default,w.default,k.default),e.default=s.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=function(){function t(t){this.domNode=t,this.domNode[r.DATA_KEY]={blot:this}}return Object.defineProperty(t.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),t.create=function(t){if(null==this.tagName)throw new r.ParchmentError("Blot definition missing tagName");var e;return Array.isArray(this.tagName)?("string"==typeof t&&(t=t.toUpperCase(),parseInt(t).toString()===t&&(t=parseInt(t))),e="number"==typeof t?document.createElement(this.tagName[t-1]):this.tagName.indexOf(t)>-1?document.createElement(t):document.createElement(this.tagName[0])):e=document.createElement(this.tagName),this.className&&e.classList.add(this.className),e},t.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)},t.prototype.clone=function(){var t=this.domNode.cloneNode(!1);return r.create(t)},t.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[r.DATA_KEY]},t.prototype.deleteAt=function(t,e){this.isolate(t,e).remove()},t.prototype.formatAt=function(t,e,n,i){var o=this.isolate(t,e);if(null!=r.query(n,r.Scope.BLOT)&&i)o.wrap(n,i);else if(null!=r.query(n,r.Scope.ATTRIBUTE)){var a=r.create(this.statics.scope);o.wrap(a),a.format(n,i)}},t.prototype.insertAt=function(t,e,n){var i=null==n?r.create("text",e):r.create(e,n),o=this.split(t);this.parent.insertBefore(i,o)},t.prototype.insertInto=function(t,e){void 0===e&&(e=null),null!=this.parent&&this.parent.children.remove(this);var n=null;t.children.insertBefore(this,e),null!=e&&(n=e.domNode),this.domNode.parentNode==t.domNode&&this.domNode.nextSibling==n||t.domNode.insertBefore(this.domNode,n),this.parent=t,this.attach()},t.prototype.isolate=function(t,e){var n=this.split(t);return n.split(e),n},t.prototype.length=function(){return 1},t.prototype.offset=function(t){return void 0===t&&(t=this.parent),null==this.parent||this==t?0:this.parent.children.offset(this)+this.parent.offset(t)},t.prototype.optimize=function(t){null!=this.domNode[r.DATA_KEY]&&delete this.domNode[r.DATA_KEY].mutations},t.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},t.prototype.replace=function(t){null!=t.parent&&(t.parent.insertBefore(this,t.next),t.remove())},t.prototype.replaceWith=function(t,e){var n="string"==typeof t?r.create(t,e):t;return n.replace(this),n},t.prototype.split=function(t,e){return 0===t?this:this.next},t.prototype.update=function(t,e){},t.prototype.wrap=function(t,e){var n="string"==typeof t?r.create(t,e):t;return null!=this.parent&&this.parent.insertBefore(n,this.next),n.appendChild(this),n},t.blotName="abstract",t}();e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(12),i=n(32),o=n(33),a=n(1),s=function(){function t(t){this.attributes={},this.domNode=t,this.build()}return t.prototype.attribute=function(t,e){e?t.add(this.domNode,e)&&(null!=t.value(this.domNode)?this.attributes[t.attrName]=t:delete this.attributes[t.attrName]):(t.remove(this.domNode),delete this.attributes[t.attrName])},t.prototype.build=function(){var t=this;this.attributes={};var e=r.default.keys(this.domNode),n=i.default.keys(this.domNode),s=o.default.keys(this.domNode);e.concat(n).concat(s).forEach(function(e){var n=a.query(e,a.Scope.ATTRIBUTE);n instanceof r.default&&(t.attributes[n.attrName]=n)})},t.prototype.copy=function(t){var e=this;Object.keys(this.attributes).forEach(function(n){var r=e.attributes[n].value(e.domNode);t.format(n,r)})},t.prototype.move=function(t){var e=this;this.copy(t),Object.keys(this.attributes).forEach(function(t){e.attributes[t].remove(e.domNode)}),this.attributes={}},t.prototype.values=function(){var t=this;return Object.keys(this.attributes).reduce(function(e,n){return e[n]=t.attributes[n].value(t.domNode),e},{})},t}();e.default=s},function(t,e,n){"use strict";function r(t,e){return(t.getAttribute("class")||"").split(/\s+/).filter(function(t){return 0===t.indexOf(e+"-")})}var i=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(12),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.keys=function(t){return(t.getAttribute("class")||"").split(/\s+/).map(function(t){return t.split("-").slice(0,-1).join("-")})},e.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(this.remove(t),t.classList.add(this.keyName+"-"+e),!0)},e.prototype.remove=function(t){r(t,this.keyName).forEach(function(e){t.classList.remove(e)}),0===t.classList.length&&t.removeAttribute("class")},e.prototype.value=function(t){var e=r(t,this.keyName)[0]||"",n=e.slice(this.keyName.length+1);return this.canAdd(t,n)?n:""},e}(o.default);e.default=a},function(t,e,n){"use strict";function r(t){var e=t.split("-"),n=e.slice(1).map(function(t){return t[0].toUpperCase()+t.slice(1)}).join("");return e[0]+n}var i=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(12),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.keys=function(t){return(t.getAttribute("style")||"").split(";").map(function(t){return t.split(":")[0].trim()})},e.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(t.style[r(this.keyName)]=e,!0)},e.prototype.remove=function(t){t.style[r(this.keyName)]="",t.getAttribute("style")||t.removeAttribute("style")},e.prototype.value=function(t){var e=t.style[r(this.keyName)];return this.canAdd(t,e)?e:""},e}(o.default);e.default=a},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function(){function t(e,n){r(this,t),this.quill=e,this.options=n,this.modules={}}return i(t,[{key:"init",value:function(){var t=this;Object.keys(this.options.modules).forEach(function(e){null==t.modules[e]&&t.addModule(e)})}},{key:"addModule",value:function(t){var e=this.quill.constructor.import("modules/"+t);return this.modules[t]=new e(this.quill,this.options.modules[t]||{}),this.modules[t]}}]),t}();o.DEFAULTS={modules:{}},o.themes={default:o},e.default=o},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var s=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),u=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;if(void 0!==a)return a.call(r)},l=n(0),c=r(l),f=n(7),d=r(f),h="\ufeff",p=function(t){function e(t){i(this,e);var n=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.contentNode=document.createElement("span"),n.contentNode.setAttribute("contenteditable",!1),[].slice.call(n.domNode.childNodes).forEach(function(t){n.contentNode.appendChild(t)}),n.leftGuard=document.createTextNode(h),n.rightGuard=document.createTextNode(h),n.domNode.appendChild(n.leftGuard),n.domNode.appendChild(n.contentNode),n.domNode.appendChild(n.rightGuard),n}return a(e,t),s(e,[{key:"index",value:function(t,n){return t===this.leftGuard?0:t===this.rightGuard?1:u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"index",this).call(this,t,n)}},{key:"restore",value:function(t){var e=void 0,n=void 0,r=t.data.split(h).join("");if(t===this.leftGuard)if(this.prev instanceof d.default){var i=this.prev.length();this.prev.insertAt(i,r),e={startNode:this.prev.domNode,startOffset:i+r.length}}else n=document.createTextNode(r),this.parent.insertBefore(c.default.create(n),this),e={startNode:n,startOffset:r.length};else t===this.rightGuard&&(this.next instanceof d.default?(this.next.insertAt(0,r),e={startNode:this.next.domNode,startOffset:r.length}):(n=document.createTextNode(r),this.parent.insertBefore(c.default.create(n),this.next),e={startNode:n,startOffset:r.length}));return t.data=h,e}},{key:"update",value:function(t,e){var n=this;t.forEach(function(t){if("characterData"===t.type&&(t.target===n.leftGuard||t.target===n.rightGuard)){var r=n.restore(t.target);r&&(e.range=r)}})}}]),e}(c.default.Embed);e.default=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AlignStyle=e.AlignClass=e.AlignAttribute=void 0;var r=n(0),i=function(t){return t&&t.__esModule?t:{default:t}}(r),o={scope:i.default.Scope.BLOCK,whitelist:["right","center","justify"]},a=new i.default.Attributor.Attribute("align","align",o),s=new i.default.Attributor.Class("align","ql-align",o),u=new i.default.Attributor.Style("align","text-align",o);e.AlignAttribute=a,e.AlignClass=s,e.AlignStyle=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BackgroundStyle=e.BackgroundClass=void 0;var r=n(0),i=function(t){return t&&t.__esModule?t:{default:t}}(r),o=n(26),a=new i.default.Attributor.Class("background","ql-bg",{scope:i.default.Scope.INLINE}),s=new o.ColorAttributor("background","background-color",{scope:i.default.Scope.INLINE});e.BackgroundClass=a,e.BackgroundStyle=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DirectionStyle=e.DirectionClass=e.DirectionAttribute=void 0;var r=n(0),i=function(t){return t&&t.__esModule?t:{default:t}}(r),o={scope:i.default.Scope.BLOCK,whitelist:["rtl"]},a=new i.default.Attributor.Attribute("direction","dir",o),s=new i.default.Attributor.Class("direction","ql-direction",o),u=new i.default.Attributor.Style("direction","direction",o);e.DirectionAttribute=a,e.DirectionClass=s,e.DirectionStyle=u},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.FontClass=e.FontStyle=void 0;var a=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),s=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;if(void 0!==a)return a.call(r)},u=n(0),l=function(t){return t&&t.__esModule?t:{default:t}}(u),c={scope:l.default.Scope.INLINE,whitelist:["serif","monospace"]},f=new l.default.Attributor.Class("font","ql-font",c),d=function(t){function e(){return r(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return o(e,t),a(e,[{key:"value",value:function(t){return s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"value",this).call(this,t).replace(/["']/g,"")}}]),e}(l.default.Attributor.Style),h=new d("font","font-family",c);e.FontStyle=h,e.FontClass=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SizeStyle=e.SizeClass=void 0;var r=n(0),i=function(t){return t&&t.__esModule?t:{default:t}}(r),o=new i.default.Attributor.Class("size","ql-size",{scope:i.default.Scope.INLINE,whitelist:["small","large","huge"]}),a=new i.default.Attributor.Style("size","font-size",{scope:i.default.Scope.INLINE,whitelist:["10px","18px","32px"]});e.SizeClass=o,e.SizeStyle=a},function(t,e,n){"use strict";t.exports={align:{"":n(76),center:n(77),right:n(78),justify:n(79)},background:n(80),blockquote:n(81),bold:n(82),clean:n(83),code:n(58),"code-block":n(58),color:n(84),direction:{"":n(85),rtl:n(86)},float:{center:n(87),full:n(88),left:n(89),right:n(90)},formula:n(91),header:{1:n(92),2:n(93)},italic:n(94),image:n(95),indent:{"+1":n(96),"-1":n(97)},link:n(98),list:{ordered:n(99),bullet:n(100),check:n(101)},script:{sub:n(102),super:n(103)},strike:n(104),underline:n(105),video:n(106)}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){var e=t.ops[t.ops.length-1];return null!=e&&(null!=e.insert?"string"==typeof e.insert&&e.insert.endsWith("\n"):null!=e.attributes&&Object.keys(e.attributes).some(function(t){return null!=f.default.query(t,f.default.Scope.BLOCK)}))}function u(t){var e=t.reduce(function(t,e){return t+=e.delete||0},0),n=t.length()-e;return s(t)&&(n-=1),n}Object.defineProperty(e,"__esModule",{value:!0}),e.getLastChangeIndex=e.default=void 0;var l=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),c=n(0),f=r(c),d=n(5),h=r(d),p=n(9),g=r(p),m=function(t){function e(t,n){i(this,e);var r=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.lastRecorded=0,r.ignoreChange=!1,r.clear(),r.quill.on(h.default.events.EDITOR_CHANGE,function(t,e,n,i){t!==h.default.events.TEXT_CHANGE||r.ignoreChange||(r.options.userOnly&&i!==h.default.sources.USER?r.transform(e):r.record(e,n))}),r.quill.keyboard.addBinding({key:"Z",shortKey:!0},r.undo.bind(r)),r.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},r.redo.bind(r)),/Win/i.test(navigator.platform)&&r.quill.keyboard.addBinding({key:"Y",shortKey:!0},r.redo.bind(r)),r}return a(e,t),l(e,[{key:"change",value:function(t,e){if(0!==this.stack[t].length){var n=this.stack[t].pop();this.stack[e].push(n),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(n[t],h.default.sources.USER),this.ignoreChange=!1;var r=u(n[t]);this.quill.setSelection(r)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(t,e){if(0!==t.ops.length){this.stack.redo=[];var n=this.quill.getContents().diff(e),r=Date.now();if(this.lastRecorded+this.options.delay>r&&this.stack.undo.length>0){var i=this.stack.undo.pop();n=n.compose(i.undo),t=i.redo.compose(t)}else this.lastRecorded=r;this.stack.undo.push({redo:t,undo:n}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(t){this.stack.undo.forEach(function(e){e.undo=t.transform(e.undo,!0),e.redo=t.transform(e.redo,!0)}),this.stack.redo.forEach(function(e){e.undo=t.transform(e.undo,!0),e.redo=t.transform(e.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),e}(g.default);m.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},e.default=m,e.getLastChangeIndex=u},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){var e=t.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||t.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return e?(e[1]||"https")+"://www.youtube.com/embed/"+e[2]+"?showinfo=0":(e=t.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(e[1]||"https")+"://player.vimeo.com/video/"+e[2]+"/":t}function u(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];e.forEach(function(e){var r=document.createElement("option");e===n?r.setAttribute("selected","selected"):r.setAttribute("value",e),t.appendChild(r)})}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BaseTooltip=void 0;var l=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),c=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;if(void 0!==a)return a.call(r)},f=n(3),d=r(f),h=n(2),p=r(h),g=n(8),m=r(g),v=n(23),y=r(v),b=n(34),_=r(b),w=n(59),x=r(w),k=n(60),S=r(k),C=n(28),E=r(C),T=n(61),A=r(T),O=[!1,"center","right","justify"],P=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],N=[!1,"serif","monospace"],D=["1","2","3",!1],M=["small",!1,"large","huge"],I=function(t){function e(t,n){i(this,e);var r=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n)),a=function e(n){if(!document.body.contains(t.root))return document.body.removeEventListener("click",e);null==r.tooltip||r.tooltip.root.contains(n.target)||document.activeElement===r.tooltip.textbox||r.quill.hasFocus()||r.tooltip.hide(),null!=r.pickers&&r.pickers.forEach(function(t){t.container.contains(n.target)||t.close()})};return t.emitter.listenDOM("click",document.body,a),r}return a(e,t),l(e,[{key:"addModule",value:function(t){var n=c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"addModule",this).call(this,t);return"toolbar"===t&&this.extendToolbar(n),n}},{key:"buildButtons",value:function(t,e){t.forEach(function(t){(t.getAttribute("class")||"").split(/\s+/).forEach(function(n){if(n.startsWith("ql-")&&(n=n.slice("ql-".length),null!=e[n]))if("direction"===n)t.innerHTML=e[n][""]+e[n].rtl;else if("string"==typeof e[n])t.innerHTML=e[n];else{var r=t.value||"";null!=r&&e[n][r]&&(t.innerHTML=e[n][r])}})})}},{key:"buildPickers",value:function(t,e){var n=this;this.pickers=t.map(function(t){if(t.classList.contains("ql-align"))return null==t.querySelector("option")&&u(t,O),new S.default(t,e.align);if(t.classList.contains("ql-background")||t.classList.contains("ql-color")){var n=t.classList.contains("ql-background")?"background":"color";return null==t.querySelector("option")&&u(t,P,"background"===n?"#ffffff":"#000000"),new x.default(t,e[n])}return null==t.querySelector("option")&&(t.classList.contains("ql-font")?u(t,N):t.classList.contains("ql-header")?u(t,D):t.classList.contains("ql-size")&&u(t,M)),new E.default(t)});var r=function(){n.pickers.forEach(function(t){t.update()})};this.quill.on(m.default.events.EDITOR_CHANGE,r)}}]),e}(_.default);I.DEFAULTS=(0,d.default)(!0,{},_.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var t=this,e=this.container.querySelector("input.ql-image[type=file]");null==e&&(e=document.createElement("input"),e.setAttribute("type","file"),e.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),e.classList.add("ql-image"),e.addEventListener("change",function(){if(null!=e.files&&null!=e.files[0]){var n=new FileReader;n.onload=function(n){var r=t.quill.getSelection(!0);t.quill.updateContents((new p.default).retain(r.index).delete(r.length).insert({image:n.target.result}),m.default.sources.USER),t.quill.setSelection(r.index+1,m.default.sources.SILENT),e.value=""},n.readAsDataURL(e.files[0])}}),this.container.appendChild(e)),e.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var R=function(t){function e(t,n){i(this,e);var r=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.textbox=r.root.querySelector('input[type="text"]'),r.listen(),r}return a(e,t),l(e,[{key:"listen",value:function(){var t=this;this.textbox.addEventListener("keydown",function(e){y.default.match(e,"enter")?(t.save(),e.preventDefault()):y.default.match(e,"escape")&&(t.cancel(),e.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"link",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=e?this.textbox.value=e:t!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+t)||""),this.root.setAttribute("data-mode",t)}},{key:"restoreFocus",value:function(){var t=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=t}},{key:"save",value:function(){var t=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var e=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",t,m.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",t,m.default.sources.USER)),this.quill.root.scrollTop=e;break;case"video":t=s(t);case"formula":if(!t)break;var n=this.quill.getSelection(!0);if(null!=n){var r=n.index+n.length;this.quill.insertEmbed(r,this.root.getAttribute("data-mode"),t,m.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(r+1," ",m.default.sources.USER),this.quill.setSelection(r+2,m.default.sources.USER)}}this.textbox.value="",this.hide()}}]),e}(A.default);e.BaseTooltip=R,e.default=I},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(){this.head=this.tail=null,this.length=0}return t.prototype.append=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.insertBefore(t[0],null),t.length>1&&this.append.apply(this,t.slice(1))},t.prototype.contains=function(t){for(var e,n=this.iterator();e=n();)if(e===t)return!0;return!1},t.prototype.insertBefore=function(t,e){t&&(t.next=e,null!=e?(t.prev=e.prev,null!=e.prev&&(e.prev.next=t),e.prev=t,e===this.head&&(this.head=t)):null!=this.tail?(this.tail.next=t,t.prev=this.tail,this.tail=t):(t.prev=null,this.head=this.tail=t),this.length+=1)},t.prototype.offset=function(t){for(var e=0,n=this.head;null!=n;){if(n===t)return e;e+=n.length(),n=n.next}return-1},t.prototype.remove=function(t){this.contains(t)&&(null!=t.prev&&(t.prev.next=t.next),null!=t.next&&(t.next.prev=t.prev),t===this.head&&(this.head=t.next),t===this.tail&&(this.tail=t.prev),this.length-=1)},t.prototype.iterator=function(t){return void 0===t&&(t=this.head),function(){var e=t;return null!=t&&(t=t.next),e}},t.prototype.find=function(t,e){void 0===e&&(e=!1);for(var n,r=this.iterator();n=r();){var i=n.length();if(t<i||e&&t===i&&(null==n.next||0!==n.next.length()))return[n,t];t-=i}return[null,0]},t.prototype.forEach=function(t){for(var e,n=this.iterator();e=n();)t(e)},t.prototype.forEachAt=function(t,e,n){if(!(e<=0))for(var r,i=this.find(t),o=i[0],a=i[1],s=t-a,u=this.iterator(o);(r=u())&&s<t+e;){var l=r.length();t>s?n(r,t-s,Math.min(e,s+l-t)):n(r,0,Math.min(l,t+e-s)),s+=l}},t.prototype.map=function(t){return this.reduce(function(e,n){return e.push(t(n)),e},[])},t.prototype.reduce=function(t,e){for(var n,r=this.iterator();n=r();)e=t(e,n);return e},t}();e.default=r},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(17),o=n(1),a={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},s=function(t){function e(e){var n=t.call(this,e)||this;return n.scroll=n,n.observer=new MutationObserver(function(t){n.update(t)}),n.observer.observe(n.domNode,a),n.attach(),n}return r(e,t),e.prototype.detach=function(){t.prototype.detach.call(this),this.observer.disconnect()},e.prototype.deleteAt=function(e,n){this.update(),0===e&&n===this.length()?this.children.forEach(function(t){t.remove()}):t.prototype.deleteAt.call(this,e,n)},e.prototype.formatAt=function(e,n,r,i){this.update(),t.prototype.formatAt.call(this,e,n,r,i)},e.prototype.insertAt=function(e,n,r){this.update(),t.prototype.insertAt.call(this,e,n,r)},e.prototype.optimize=function(e,n){var r=this;void 0===e&&(e=[]),void 0===n&&(n={}),t.prototype.optimize.call(this,n);for(var a=[].slice.call(this.observer.takeRecords());a.length>0;)e.push(a.pop());for(var s=function(t,e){void 0===e&&(e=!0),null!=t&&t!==r&&null!=t.domNode.parentNode&&(null==t.domNode[o.DATA_KEY].mutations&&(t.domNode[o.DATA_KEY].mutations=[]),e&&s(t.parent))},u=function(t){null!=t.domNode[o.DATA_KEY]&&null!=t.domNode[o.DATA_KEY].mutations&&(t instanceof i.default&&t.children.forEach(u),t.optimize(n))},l=e,c=0;l.length>0;c+=1){if(c>=100)throw new Error("[Parchment] Maximum optimize iterations reached");for(l.forEach(function(t){var e=o.find(t.target,!0);null!=e&&(e.domNode===t.target&&("childList"===t.type?(s(o.find(t.previousSibling,!1)),[].forEach.call(t.addedNodes,function(t){var e=o.find(t,!1);s(e,!1),e instanceof i.default&&e.children.forEach(function(t){s(t,!1)})})):"attributes"===t.type&&s(e.prev)),s(e))}),this.children.forEach(u),l=[].slice.call(this.observer.takeRecords()),a=l.slice();a.length>0;)e.push(a.pop())}},e.prototype.update=function(e,n){var r=this;void 0===n&&(n={}),e=e||this.observer.takeRecords(),e.map(function(t){var e=o.find(t.target,!0);return null==e?null:null==e.domNode[o.DATA_KEY].mutations?(e.domNode[o.DATA_KEY].mutations=[t],e):(e.domNode[o.DATA_KEY].mutations.push(t),null)}).forEach(function(t){null!=t&&t!==r&&null!=t.domNode[o.DATA_KEY]&&t.update(t.domNode[o.DATA_KEY].mutations||[],n)}),null!=this.domNode[o.DATA_KEY].mutations&&t.prototype.update.call(this,this.domNode[o.DATA_KEY].mutations,n),this.optimize(e,n)},e.blotName="scroll",e.defaultChild="block",e.scope=o.Scope.BLOCK_BLOT,e.tagName="DIV",e}(i.default);e.default=s},function(t,e,n){"use strict";function r(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(var n in t)if(t[n]!==e[n])return!1;return!0}var i=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(18),a=n(1),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.formats=function(n){if(n.tagName!==e.tagName)return t.formats.call(this,n)},e.prototype.format=function(n,r){var i=this;n!==this.statics.blotName||r?t.prototype.format.call(this,n,r):(this.children.forEach(function(t){t instanceof o.default||(t=t.wrap(e.blotName,!0)),i.attributes.copy(t)}),this.unwrap())},e.prototype.formatAt=function(e,n,r,i){if(null!=this.formats()[r]||a.query(r,a.Scope.ATTRIBUTE)){this.isolate(e,n).format(r,i)}else t.prototype.formatAt.call(this,e,n,r,i)},e.prototype.optimize=function(n){t.prototype.optimize.call(this,n);var i=this.formats();if(0===Object.keys(i).length)return this.unwrap();var o=this.next;o instanceof e&&o.prev===this&&r(i,o.formats())&&(o.moveChildren(this),o.remove())},e.blotName="inline",e.scope=a.Scope.INLINE_BLOT,e.tagName="SPAN",e}(o.default);e.default=s},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(18),o=n(1),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.formats=function(n){var r=o.query(e.blotName).tagName;if(n.tagName!==r)return t.formats.call(this,n)},e.prototype.format=function(n,r){null!=o.query(n,o.Scope.BLOCK)&&(n!==this.statics.blotName||r?t.prototype.format.call(this,n,r):this.replaceWith(e.blotName))},e.prototype.formatAt=function(e,n,r,i){null!=o.query(r,o.Scope.BLOCK)?this.format(r,i):t.prototype.formatAt.call(this,e,n,r,i)},e.prototype.insertAt=function(e,n,r){if(null==r||null!=o.query(n,o.Scope.INLINE))t.prototype.insertAt.call(this,e,n,r);else{var i=this.split(e),a=o.create(n,r);i.parent.insertBefore(a,i)}},e.prototype.update=function(e,n){navigator.userAgent.match(/Trident/)?this.build():t.prototype.update.call(this,e,n)},e.blotName="block",e.scope=o.Scope.BLOCK_BLOT,e.tagName="P",e}(i.default);e.default=a},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(19),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.formats=function(t){},e.prototype.format=function(e,n){t.prototype.formatAt.call(this,0,this.length(),e,n)},e.prototype.formatAt=function(e,n,r,i){0===e&&n===this.length()?this.format(r,i):t.prototype.formatAt.call(this,e,n,r,i)},e.prototype.formats=function(){return this.statics.formats(this.domNode)},e}(i.default);e.default=o},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(19),o=n(1),a=function(t){function e(e){var n=t.call(this,e)||this;return n.text=n.statics.value(n.domNode),n}return r(e,t),e.create=function(t){return document.createTextNode(t)},e.value=function(t){var e=t.data;return e.normalize&&(e=e.normalize()),e},e.prototype.deleteAt=function(t,e){this.domNode.data=this.text=this.text.slice(0,t)+this.text.slice(t+e)},e.prototype.index=function(t,e){return this.domNode===t?e:-1},e.prototype.insertAt=function(e,n,r){null==r?(this.text=this.text.slice(0,e)+n+this.text.slice(e),this.domNode.data=this.text):t.prototype.insertAt.call(this,e,n,r)},e.prototype.length=function(){return this.text.length},e.prototype.optimize=function(n){t.prototype.optimize.call(this,n),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof e&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},e.prototype.position=function(t,e){return void 0===e&&(e=!1),[this.domNode,t]},e.prototype.split=function(t,e){if(void 0===e&&(e=!1),!e){if(0===t)return this;if(t===this.length())return this.next}var n=o.create(this.domNode.splitText(t));return this.parent.insertBefore(n,this.next),this.text=this.statics.value(this.domNode),n},e.prototype.update=function(t,e){var n=this;t.some(function(t){return"characterData"===t.type&&t.target===n.domNode})&&(this.text=this.statics.value(this.domNode))},e.prototype.value=function(){return this.text},e.blotName="text",e.scope=o.Scope.INLINE_BLOT,e}(i.default);e.default=a},function(t,e,n){"use strict";var r=document.createElement("div");if(r.classList.toggle("test-class",!1),r.classList.contains("test-class")){var i=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(t,e){return arguments.length>1&&!this.contains(t)==!e?e:i.call(this,t)}}String.prototype.startsWith||(String.prototype.startsWith=function(t,e){return e=e||0,this.substr(e,t.length)===t}),String.prototype.endsWith||(String.prototype.endsWith=function(t,e){var n=this.toString();("number"!=typeof e||!isFinite(e)||Math.floor(e)!==e||e>n.length)&&(e=n.length),e-=t.length;var r=n.indexOf(t,e);return-1!==r&&r===e}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(t){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof t)throw new TypeError("predicate must be a function");for(var e,n=Object(this),r=n.length>>>0,i=arguments[1],o=0;o<r;o++)if(e=n[o],t.call(i,e,o,n))return e}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})},function(t,e){function n(t,e,n){if(t==e)return t?[[m,t]]:[];(n<0||t.length<n)&&(n=null);var i=a(t,e),o=t.substring(0,i);t=t.substring(i),e=e.substring(i),i=s(t,e);var u=t.substring(t.length-i);t=t.substring(0,t.length-i),e=e.substring(0,e.length-i);var c=r(t,e);return o&&c.unshift([m,o]),u&&c.push([m,u]),l(c),null!=n&&(c=f(c,n)),c=d(c)}function r(t,e){var r;if(!t)return[[g,e]];if(!e)return[[p,t]];var o=t.length>e.length?t:e,a=t.length>e.length?e:t,s=o.indexOf(a);if(-1!=s)return r=[[g,o.substring(0,s)],[m,a],[g,o.substring(s+a.length)]],t.length>e.length&&(r[0][0]=r[2][0]=p),r;if(1==a.length)return[[p,t],[g,e]];var l=u(t,e);if(l){var c=l[0],f=l[1],d=l[2],h=l[3],v=l[4],y=n(c,d),b=n(f,h);return y.concat([[m,v]],b)}return i(t,e)}function i(t,e){for(var n=t.length,r=e.length,i=Math.ceil((n+r)/2),a=i,s=2*i,u=new Array(s),l=new Array(s),c=0;c<s;c++)u[c]=-1,l[c]=-1;u[a+1]=0,l[a+1]=0;for(var f=n-r,d=f%2!=0,h=0,m=0,v=0,y=0,b=0;b<i;b++){for(var _=-b+h;_<=b-m;_+=2){var w,x=a+_;w=_==-b||_!=b&&u[x-1]<u[x+1]?u[x+1]:u[x-1]+1;for(var k=w-_;w<n&&k<r&&t.charAt(w)==e.charAt(k);)w++,k++;if(u[x]=w,w>n)m+=2;else if(k>r)h+=2;else if(d){var S=a+f-_;if(S>=0&&S<s&&-1!=l[S]){var C=n-l[S];if(w>=C)return o(t,e,w,k)}}}for(var E=-b+v;E<=b-y;E+=2){var C,S=a+E;C=E==-b||E!=b&&l[S-1]<l[S+1]?l[S+1]:l[S-1]+1;for(var T=C-E;C<n&&T<r&&t.charAt(n-C-1)==e.charAt(r-T-1);)C++,T++;if(l[S]=C,C>n)y+=2;else if(T>r)v+=2;else if(!d){var x=a+f-E;if(x>=0&&x<s&&-1!=u[x]){var w=u[x],k=a+w-x;if(C=n-C,w>=C)return o(t,e,w,k)}}}}return[[p,t],[g,e]]}function o(t,e,r,i){var o=t.substring(0,r),a=e.substring(0,i),s=t.substring(r),u=e.substring(i),l=n(o,a),c=n(s,u);return l.concat(c)}function a(t,e){if(!t||!e||t.charAt(0)!=e.charAt(0))return 0;for(var n=0,r=Math.min(t.length,e.length),i=r,o=0;n<i;)t.substring(o,i)==e.substring(o,i)?(n=i,o=n):r=i,i=Math.floor((r-n)/2+n);return i}function s(t,e){if(!t||!e||t.charAt(t.length-1)!=e.charAt(e.length-1))return 0;for(var n=0,r=Math.min(t.length,e.length),i=r,o=0;n<i;)t.substring(t.length-i,t.length-o)==e.substring(e.length-i,e.length-o)?(n=i,o=n):r=i,i=Math.floor((r-n)/2+n);return i}function u(t,e){function n(t,e,n){for(var r,i,o,u,l=t.substring(n,n+Math.floor(t.length/4)),c=-1,f="";-1!=(c=e.indexOf(l,c+1));){var d=a(t.substring(n),e.substring(c)),h=s(t.substring(0,n),e.substring(0,c));f.length<h+d&&(f=e.substring(c-h,c)+e.substring(c,c+d),r=t.substring(0,n-h),i=t.substring(n+d),o=e.substring(0,c-h),u=e.substring(c+d))}return 2*f.length>=t.length?[r,i,o,u,f]:null}var r=t.length>e.length?t:e,i=t.length>e.length?e:t;if(r.length<4||2*i.length<r.length)return null;var o,u=n(r,i,Math.ceil(r.length/4)),l=n(r,i,Math.ceil(r.length/2));if(!u&&!l)return null;o=l?u&&u[4].length>l[4].length?u:l:u;var c,f,d,h;return t.length>e.length?(c=o[0],f=o[1],d=o[2],h=o[3]):(d=o[0],h=o[1],c=o[2],f=o[3]),[c,f,d,h,o[4]]}function l(t){t.push([m,""]);for(var e,n=0,r=0,i=0,o="",u="";n<t.length;)switch(t[n][0]){case g:i++,u+=t[n][1],n++;break;case p:r++,o+=t[n][1],n++;break;case m:r+i>1?(0!==r&&0!==i&&(e=a(u,o),0!==e&&(n-r-i>0&&t[n-r-i-1][0]==m?t[n-r-i-1][1]+=u.substring(0,e):(t.splice(0,0,[m,u.substring(0,e)]),n++),u=u.substring(e),o=o.substring(e)),0!==(e=s(u,o))&&(t[n][1]=u.substring(u.length-e)+t[n][1],u=u.substring(0,u.length-e),o=o.substring(0,o.length-e))),0===r?t.splice(n-i,r+i,[g,u]):0===i?t.splice(n-r,r+i,[p,o]):t.splice(n-r-i,r+i,[p,o],[g,u]),n=n-r-i+(r?1:0)+(i?1:0)+1):0!==n&&t[n-1][0]==m?(t[n-1][1]+=t[n][1],t.splice(n,1)):n++,i=0,r=0,o="",u=""}""===t[t.length-1][1]&&t.pop();var c=!1;for(n=1;n<t.length-1;)t[n-1][0]==m&&t[n+1][0]==m&&(t[n][1].substring(t[n][1].length-t[n-1][1].length)==t[n-1][1]?(t[n][1]=t[n-1][1]+t[n][1].substring(0,t[n][1].length-t[n-1][1].length),t[n+1][1]=t[n-1][1]+t[n+1][1],t.splice(n-1,1),c=!0):t[n][1].substring(0,t[n+1][1].length)==t[n+1][1]&&(t[n-1][1]+=t[n+1][1],t[n][1]=t[n][1].substring(t[n+1][1].length)+t[n+1][1],t.splice(n+1,1),c=!0)),n++;c&&l(t)}function c(t,e){if(0===e)return[m,t];for(var n=0,r=0;r<t.length;r++){var i=t[r];if(i[0]===p||i[0]===m){var o=n+i[1].length;if(e===o)return[r+1,t];if(e<o){t=t.slice();var a=e-n,s=[i[0],i[1].slice(0,a)],u=[i[0],i[1].slice(a)];return t.splice(r,1,s,u),[r+1,t]}n=o}}throw new Error("cursor_pos is out of bounds!")}function f(t,e){var n=c(t,e),r=n[1],i=n[0],o=r[i],a=r[i+1];if(null==o)return t;if(o[0]!==m)return t;if(null!=a&&o[1]+a[1]===a[1]+o[1])return r.splice(i,2,a,o),h(r,i,2);if(null!=a&&0===a[1].indexOf(o[1])){r.splice(i,2,[a[0],o[1]],[0,o[1]]);var s=a[1].slice(o[1].length);return s.length>0&&r.splice(i+2,0,[a[0],s]),h(r,i,3)}return t}function d(t){for(var e=!1,n=function(t){return t.charCodeAt(0)>=56320&&t.charCodeAt(0)<=57343},r=2;r<t.length;r+=1)t[r-2][0]===m&&function(t){return t.charCodeAt(t.length-1)>=55296&&t.charCodeAt(t.length-1)<=56319}(t[r-2][1])&&t[r-1][0]===p&&n(t[r-1][1])&&t[r][0]===g&&n(t[r][1])&&(e=!0,t[r-1][1]=t[r-2][1].slice(-1)+t[r-1][1],t[r][1]=t[r-2][1].slice(-1)+t[r][1],t[r-2][1]=t[r-2][1].slice(0,-1));if(!e)return t;for(var i=[],r=0;r<t.length;r+=1)t[r][1].length>0&&i.push(t[r]);return i}function h(t,e,n){for(var r=e+n-1;r>=0&&r>=e-1;r--)if(r+1<t.length){var i=t[r],o=t[r+1];i[0]===o[1]&&t.splice(r,2,[i[0],i[1]+o[1]])}return t}var p=-1,g=1,m=0,v=n;v.INSERT=g,v.DELETE=p,v.EQUAL=m,t.exports=v},function(t,e){function n(t){var e=[];for(var n in t)e.push(n);return e}e=t.exports="function"==typeof Object.keys?Object.keys:n,e.shim=n},function(t,e){function n(t){return"[object Arguments]"==Object.prototype.toString.call(t)}function r(t){return t&&"object"==typeof t&&"number"==typeof t.length&&Object.prototype.hasOwnProperty.call(t,"callee")&&!Object.prototype.propertyIsEnumerable.call(t,"callee")||!1}var i="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();e=t.exports=i?n:r,e.supported=n,e.unsupported=r},function(t,e){"use strict";function n(){}function r(t,e,n){this.fn=t,this.context=e,this.once=n||!1}function i(){this._events=new n,this._eventsCount=0}var o=Object.prototype.hasOwnProperty,a="~";Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(a=!1)),i.prototype.eventNames=function(){var t,e,n=[];if(0===this._eventsCount)return n;for(e in t=this._events)o.call(t,e)&&n.push(a?e.slice(1):e);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(t)):n},i.prototype.listeners=function(t,e){var n=a?a+t:t,r=this._events[n];if(e)return!!r;if(!r)return[];if(r.fn)return[r.fn];for(var i=0,o=r.length,s=new Array(o);i<o;i++)s[i]=r[i].fn;return s},i.prototype.emit=function(t,e,n,r,i,o){var s=a?a+t:t;if(!this._events[s])return!1;var u,l,c=this._events[s],f=arguments.length;if(c.fn){switch(c.once&&this.removeListener(t,c.fn,void 0,!0),f){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,e),!0;case 3:return c.fn.call(c.context,e,n),!0;case 4:return c.fn.call(c.context,e,n,r),!0;case 5:return c.fn.call(c.context,e,n,r,i),!0;case 6:return c.fn.call(c.context,e,n,r,i,o),!0}for(l=1,u=new Array(f-1);l<f;l++)u[l-1]=arguments[l];c.fn.apply(c.context,u)}else{var d,h=c.length;for(l=0;l<h;l++)switch(c[l].once&&this.removeListener(t,c[l].fn,void 0,!0),f){case 1:c[l].fn.call(c[l].context);break;case 2:c[l].fn.call(c[l].context,e);break;case 3:c[l].fn.call(c[l].context,e,n);break;case 4:c[l].fn.call(c[l].context,e,n,r);break;default:if(!u)for(d=1,u=new Array(f-1);d<f;d++)u[d-1]=arguments[d];c[l].fn.apply(c[l].context,u)}}return!0},i.prototype.on=function(t,e,n){var i=new r(e,n||this),o=a?a+t:t;return this._events[o]?this._events[o].fn?this._events[o]=[this._events[o],i]:this._events[o].push(i):(this._events[o]=i,this._eventsCount++),this},i.prototype.once=function(t,e,n){var i=new r(e,n||this,!0),o=a?a+t:t;return this._events[o]?this._events[o].fn?this._events[o]=[this._events[o],i]:this._events[o].push(i):(this._events[o]=i,this._eventsCount++),this},i.prototype.removeListener=function(t,e,r,i){var o=a?a+t:t;if(!this._events[o])return this;if(!e)return 0==--this._eventsCount?this._events=new n:delete this._events[o],this;var s=this._events[o];if(s.fn)s.fn!==e||i&&!s.once||r&&s.context!==r||(0==--this._eventsCount?this._events=new n:delete this._events[o]);else{for(var u=0,l=[],c=s.length;u<c;u++)(s[u].fn!==e||i&&!s[u].once||r&&s[u].context!==r)&&l.push(s[u]);l.length?this._events[o]=1===l.length?l[0]:l:0==--this._eventsCount?this._events=new n:delete this._events[o]}return this},i.prototype.removeAllListeners=function(t){var e;return t?(e=a?a+t:t,this._events[e]&&(0==--this._eventsCount?this._events=new n:delete this._events[e])):(this._events=new n,this._eventsCount=0),this},i.prototype.off=i.prototype.removeListener,i.prototype.addListener=i.prototype.on,i.prototype.setMaxListeners=function(){return this},i.prefixed=a,i.EventEmitter=i,void 0!==t&&(t.exports=i)},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function u(t,e,n){return"object"===(void 0===e?"undefined":k(e))?Object.keys(e).reduce(function(t,n){return u(t,n,e[n])},t):t.reduce(function(t,r){return r.attributes&&r.attributes[e]?t.push(r):t.insert(r.insert,(0,T.default)({},i({},e,n),r.attributes))},new O.default)}function l(t){if(t.nodeType!==Node.ELEMENT_NODE)return{};return t["__ql-computed-style"]||(t["__ql-computed-style"]=window.getComputedStyle(t))}function c(t,e){for(var n="",r=t.ops.length-1;r>=0&&n.length<e.length;--r){var i=t.ops[r];if("string"!=typeof i.insert)break;n=i.insert+n}return n.slice(-1*e.length)===e}function f(t){return 0!==t.childNodes.length&&["block","list-item"].indexOf(l(t).display)>-1}function d(t,e,n){return t.nodeType===t.TEXT_NODE?n.reduce(function(e,n){return n(t,e)},new O.default):t.nodeType===t.ELEMENT_NODE?[].reduce.call(t.childNodes||[],function(r,i){var o=d(i,e,n);return i.nodeType===t.ELEMENT_NODE&&(o=e.reduce(function(t,e){return e(i,t)},o),o=(i[G]||[]).reduce(function(t,e){return e(i,t)},o)),r.concat(o)},new O.default):new O.default}function h(t,e,n){return u(n,t,!0)}function p(t,e){var n=N.default.Attributor.Attribute.keys(t),r=N.default.Attributor.Class.keys(t),i=N.default.Attributor.Style.keys(t),o={};return n.concat(r).concat(i).forEach(function(e){var n=N.default.query(e,N.default.Scope.ATTRIBUTE);null!=n&&(o[n.attrName]=n.value(t),o[n.attrName])||(n=K[e],null==n||n.attrName!==e&&n.keyName!==e||(o[n.attrName]=n.value(t)||void 0),null==(n=X[e])||n.attrName!==e&&n.keyName!==e||(n=X[e],o[n.attrName]=n.value(t)||void 0))}),Object.keys(o).length>0&&(e=u(e,o)),e}function g(t,e){var n=N.default.query(t);if(null==n)return e;if(n.prototype instanceof N.default.Embed){var r={},i=n.value(t);null!=i&&(r[n.blotName]=i,e=(new O.default).insert(r,n.formats(t)))}else"function"==typeof n.formats&&(e=u(e,n.blotName,n.formats(t)));return e}function m(t,e){return c(e,"\n")||e.insert("\n"),e}function v(){return new O.default}function y(t,e){var n=N.default.query(t);if(null==n||"list-item"!==n.blotName||!c(e,"\n"))return e;for(var r=-1,i=t.parentNode;!i.classList.contains("ql-clipboard");)"list"===(N.default.query(i)||{}).blotName&&(r+=1),i=i.parentNode;return r<=0?e:e.compose((new O.default).retain(e.length()-1).retain(1,{indent:r}))}function b(t,e){return c(e,"\n")||(f(t)||e.length()>0&&t.nextSibling&&f(t.nextSibling))&&e.insert("\n"),e}function _(t,e){if(f(t)&&null!=t.nextElementSibling&&!c(e,"\n\n")){var n=t.offsetHeight+parseFloat(l(t).marginTop)+parseFloat(l(t).marginBottom);t.nextElementSibling.offsetTop>t.offsetTop+1.5*n&&e.insert("\n")}return e}function w(t,e){var n={},r=t.style||{};return r.fontStyle&&"italic"===l(t).fontStyle&&(n.italic=!0),r.fontWeight&&(l(t).fontWeight.startsWith("bold")||parseInt(l(t).fontWeight)>=700)&&(n.bold=!0),Object.keys(n).length>0&&(e=u(e,n)),parseFloat(r.textIndent||0)>0&&(e=(new O.default).insert("\t").concat(e)),e}function x(t,e){var n=t.data;if("O:P"===t.parentNode.tagName)return e.insert(n.trim());if(0===n.trim().length&&t.parentNode.classList.contains("ql-clipboard"))return e;if(!l(t.parentNode).whiteSpace.startsWith("pre")){var r=function(t,e){return e=e.replace(/[^\u00a0]/g,""),e.length<1&&t?" ":e};n=n.replace(/\r\n/g," ").replace(/\n/g," "),n=n.replace(/\s\s+/g,r.bind(r,!0)),(null==t.previousSibling&&f(t.parentNode)||null!=t.previousSibling&&f(t.previousSibling))&&(n=n.replace(/^\s+/,r.bind(r,!1))),(null==t.nextSibling&&f(t.parentNode)||null!=t.nextSibling&&f(t.nextSibling))&&(n=n.replace(/\s+$/,r.bind(r,!1)))}return e.insert(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.matchText=e.matchSpacing=e.matchNewline=e.matchBlot=e.matchAttributor=e.default=void 0;var k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},S=function(){function t(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),C=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),E=n(3),T=r(E),A=n(2),O=r(A),P=n(0),N=r(P),D=n(5),M=r(D),I=n(10),R=r(I),$=n(9),L=r($),j=n(36),F=n(37),B=n(13),V=r(B),z=n(26),U=n(38),H=n(39),q=n(40),W=(0,R.default)("quill:clipboard"),G="__ql-matcher",Y=[[Node.TEXT_NODE,x],[Node.TEXT_NODE,b],["br",m],[Node.ELEMENT_NODE,b],[Node.ELEMENT_NODE,g],[Node.ELEMENT_NODE,_],[Node.ELEMENT_NODE,p],[Node.ELEMENT_NODE,w],["li",y],["b",h.bind(h,"bold")],["i",h.bind(h,"italic")],["style",v]],K=[j.AlignAttribute,U.DirectionAttribute].reduce(function(t,e){return t[e.keyName]=e,t},{}),X=[j.AlignStyle,F.BackgroundStyle,z.ColorStyle,U.DirectionStyle,H.FontStyle,q.SizeStyle].reduce(function(t,e){return t[e.keyName]=e,t},{}),J=function(t){function e(t,n){o(this,e);var r=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.quill.root.addEventListener("paste",r.onPaste.bind(r)),r.container=r.quill.addContainer("ql-clipboard"),r.container.setAttribute("contenteditable",!0),r.container.setAttribute("tabindex",-1),r.matchers=[],Y.concat(r.options.matchers).forEach(function(t){var e=S(t,2),i=e[0],o=e[1];(n.matchVisual||o!==_)&&r.addMatcher(i,o)}),r}return s(e,t),C(e,[{key:"addMatcher",value:function(t,e){this.matchers.push([t,e])}},{key:"convert",value:function(t){if("string"==typeof t)return this.container.innerHTML=t.replace(/\>\r?\n +\</g,"><"),this.convert();var e=this.quill.getFormat(this.quill.selection.savedRange.index);if(e[V.default.blotName]){var n=this.container.innerText;return this.container.innerHTML="",(new O.default).insert(n,i({},V.default.blotName,e[V.default.blotName]))}var r=this.prepareMatching(),o=S(r,2),a=o[0],s=o[1],u=d(this.container,a,s);return c(u,"\n")&&null==u.ops[u.ops.length-1].attributes&&(u=u.compose((new O.default).retain(u.length()-1).delete(1))),W.log("convert",this.container.innerHTML,u),this.container.innerHTML="",u}},{key:"dangerouslyPasteHTML",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:M.default.sources.API;if("string"==typeof t)this.quill.setContents(this.convert(t),e),this.quill.setSelection(0,M.default.sources.SILENT);else{var r=this.convert(e);this.quill.updateContents((new O.default).retain(t).concat(r),n),this.quill.setSelection(t+r.length(),M.default.sources.SILENT)}}},{key:"onPaste",value:function(t){var e=this;if(!t.defaultPrevented&&this.quill.isEnabled()){var n=this.quill.getSelection(),r=(new O.default).retain(n.index),i=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(M.default.sources.SILENT),setTimeout(function(){r=r.concat(e.convert()).delete(n.length),e.quill.updateContents(r,M.default.sources.USER),e.quill.setSelection(r.length()-n.length,M.default.sources.SILENT),e.quill.scrollingContainer.scrollTop=i,e.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var t=this,e=[],n=[];return this.matchers.forEach(function(r){var i=S(r,2),o=i[0],a=i[1];switch(o){case Node.TEXT_NODE:n.push(a);break;case Node.ELEMENT_NODE:e.push(a);break;default:[].forEach.call(t.container.querySelectorAll(o),function(t){t[G]=t[G]||[],t[G].push(a)})}}),[e,n]}}]),e}(L.default);J.DEFAULTS={matchers:[],matchVisual:!0},e.default=J,e.matchAttributor=p,e.matchBlot=g,e.matchNewline=b,e.matchSpacing=_,e.matchText=x},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),s=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;if(void 0!==a)return a.call(r)},u=n(6),l=function(t){return t&&t.__esModule?t:{default:t}}(u),c=function(t){function e(){return r(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return o(e,t),a(e,[{key:"optimize",value:function(t){s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return s(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),e}(l.default);c.blotName="bold",c.tagName=["STRONG","B"],e.default=c},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function u(t,e,n){var r=document.createElement("button");r.setAttribute("type","button"),r.classList.add("ql-"+e),null!=n&&(r.value=n),t.appendChild(r)}function l(t,e){Array.isArray(e[0])||(e=[e]),e.forEach(function(e){var n=document.createElement("span");n.classList.add("ql-formats"),e.forEach(function(t){if("string"==typeof t)u(n,t);else{var e=Object.keys(t)[0],r=t[e];Array.isArray(r)?c(n,e,r):u(n,e,r)}}),t.appendChild(n)})}function c(t,e,n){var r=document.createElement("select");r.classList.add("ql-"+e),n.forEach(function(t){var e=document.createElement("option");!1!==t?e.setAttribute("value",t):e.setAttribute("selected","selected"),r.appendChild(e)}),t.appendChild(r)}Object.defineProperty(e,"__esModule",{value:!0}),e.addControls=e.default=void 0;var f=function(){function t(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),d=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),h=n(2),p=r(h),g=n(0),m=r(g),v=n(5),y=r(v),b=n(10),_=r(b),w=n(9),x=r(w),k=(0,_.default)("quill:toolbar"),S=function(t){function e(t,n){o(this,e);var r=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));if(Array.isArray(r.options.container)){var i=document.createElement("div");l(i,r.options.container),t.container.parentNode.insertBefore(i,t.container),r.container=i}else"string"==typeof r.options.container?r.container=document.querySelector(r.options.container):r.container=r.options.container;if(!(r.container instanceof HTMLElement)){var s;return s=k.error("Container required for toolbar",r.options),a(r,s)}return r.container.classList.add("ql-toolbar"),r.controls=[],r.handlers={},Object.keys(r.options.handlers).forEach(function(t){r.addHandler(t,r.options.handlers[t])}),[].forEach.call(r.container.querySelectorAll("button, select"),function(t){r.attach(t)}),r.quill.on(y.default.events.EDITOR_CHANGE,function(t,e){t===y.default.events.SELECTION_CHANGE&&r.update(e)}),r.quill.on(y.default.events.SCROLL_OPTIMIZE,function(){var t=r.quill.selection.getRange(),e=f(t,1),n=e[0];r.update(n)}),r}return s(e,t),d(e,[{key:"addHandler",value:function(t,e){this.handlers[t]=e}},{key:"attach",value:function(t){var e=this,n=[].find.call(t.classList,function(t){return 0===t.indexOf("ql-")});if(n){if(n=n.slice("ql-".length),"BUTTON"===t.tagName&&t.setAttribute("type","button"),null==this.handlers[n]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[n])return void k.warn("ignoring attaching to disabled format",n,t);if(null==m.default.query(n))return void k.warn("ignoring attaching to nonexistent format",n,t)}var r="SELECT"===t.tagName?"change":"click";t.addEventListener(r,function(r){var o=void 0;if("SELECT"===t.tagName){if(t.selectedIndex<0)return;var a=t.options[t.selectedIndex];o=!a.hasAttribute("selected")&&(a.value||!1)}else o=!t.classList.contains("ql-active")&&(t.value||!t.hasAttribute("value")),r.preventDefault();e.quill.focus();var s=e.quill.selection.getRange(),u=f(s,1),l=u[0];if(null!=e.handlers[n])e.handlers[n].call(e,o);else if(m.default.query(n).prototype instanceof m.default.Embed){if(!(o=prompt("Enter "+n)))return;e.quill.updateContents((new p.default).retain(l.index).delete(l.length).insert(i({},n,o)),y.default.sources.USER)}else e.quill.format(n,o,y.default.sources.USER);e.update(l)}),this.controls.push([n,t])}}},{key:"update",value:function(t){var e=null==t?{}:this.quill.getFormat(t);this.controls.forEach(function(n){var r=f(n,2),i=r[0],o=r[1];if("SELECT"===o.tagName){var a=void 0;if(null==t)a=null;else if(null==e[i])a=o.querySelector("option[selected]");else if(!Array.isArray(e[i])){var s=e[i];"string"==typeof s&&(s=s.replace(/\"/g,'\\"')),a=o.querySelector('option[value="'+s+'"]')}null==a?(o.value="",o.selectedIndex=-1):a.selected=!0}else if(null==t)o.classList.remove("ql-active");else if(o.hasAttribute("value")){var u=e[i]===o.getAttribute("value")||null!=e[i]&&e[i].toString()===o.getAttribute("value")||null==e[i]&&!o.getAttribute("value");o.classList.toggle("ql-active",u)}else o.classList.toggle("ql-active",null!=e[i])})}}]),e}(x.default);S.DEFAULTS={},S.DEFAULTS={container:null,handlers:{clean:function(){var t=this,e=this.quill.getSelection();if(null!=e)if(0==e.length){var n=this.quill.getFormat();Object.keys(n).forEach(function(e){null!=m.default.query(e,m.default.Scope.INLINE)&&t.quill.format(e,!1)})}else this.quill.removeFormat(e,y.default.sources.USER)},direction:function(t){var e=this.quill.getFormat().align;"rtl"===t&&null==e?this.quill.format("align","right",y.default.sources.USER):t||"right"!==e||this.quill.format("align",!1,y.default.sources.USER),this.quill.format("direction",t,y.default.sources.USER)},indent:function(t){var e=this.quill.getSelection(),n=this.quill.getFormat(e),r=parseInt(n.indent||0);if("+1"===t||"-1"===t){var i="+1"===t?1:-1;"rtl"===n.direction&&(i*=-1),this.quill.format("indent",r+i,y.default.sources.USER)}},link:function(t){!0===t&&(t=prompt("Enter link URL:")),this.quill.format("link",t,y.default.sources.USER)},list:function(t){var e=this.quill.getSelection(),n=this.quill.getFormat(e);"check"===t?"checked"===n.list||"unchecked"===n.list?this.quill.format("list",!1,y.default.sources.USER):this.quill.format("list","unchecked",y.default.sources.USER):this.quill.format("list",t,y.default.sources.USER)}}},e.default=S,e.addControls=l},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),s=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;if(void 0!==a)return a.call(r)},u=n(28),l=function(t){return t&&t.__esModule?t:{default:t}}(u),c=function(t){function e(t,n){r(this,e);var o=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o.label.innerHTML=n,o.container.classList.add("ql-color-picker"),[].slice.call(o.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(t){t.classList.add("ql-primary")}),o}return o(e,t),a(e,[{key:"buildItem",value:function(t){var n=s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"buildItem",this).call(this,t);return n.style.backgroundColor=t.getAttribute("value")||"",n}},{key:"selectItem",value:function(t,n){s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"selectItem",this).call(this,t,n);var r=this.label.querySelector(".ql-color-label"),i=t?t.getAttribute("data-value")||"":"";r&&("line"===r.tagName?r.style.stroke=i:r.style.fill=i)}}]),e}(l.default);e.default=c},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),s=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;if(void 0!==a)return a.call(r)},u=n(28),l=function(t){return t&&t.__esModule?t:{default:t}}(u),c=function(t){function e(t,n){r(this,e);var o=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o.container.classList.add("ql-icon-picker"),[].forEach.call(o.container.querySelectorAll(".ql-picker-item"),function(t){t.innerHTML=n[t.getAttribute("data-value")||""]}),o.defaultItem=o.container.querySelector(".ql-selected"),o.selectItem(o.defaultItem),o}return o(e,t),a(e,[{key:"selectItem",value:function(t,n){s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"selectItem",this).call(this,t,n),t=t||this.defaultItem,this.label.innerHTML=t.innerHTML}}]),e}(l.default);e.default=c},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function(){function t(e,n){var i=this;r(this,t),this.quill=e,this.boundsContainer=n||document.body,this.root=e.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){i.root.style.marginTop=-1*i.quill.root.scrollTop+"px"}),this.hide()}return i(t,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(t){var e=t.left+t.width/2-this.root.offsetWidth/2,n=t.bottom+this.quill.root.scrollTop;this.root.style.left=e+"px",this.root.style.top=n+"px",this.root.classList.remove("ql-flip");var r=this.boundsContainer.getBoundingClientRect(),i=this.root.getBoundingClientRect(),o=0;if(i.right>r.right&&(o=r.right-i.right,this.root.style.left=e+o+"px"),i.left<r.left&&(o=r.left-i.left,this.root.style.left=e+o+"px"),i.bottom>r.bottom){var a=i.bottom-i.top,s=t.bottom-t.top+a;this.root.style.top=n-s+"px",this.root.classList.add("ql-flip")}return o}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),t}();e.default=o},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var s=function(){function t(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),u=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;if(void 0!==a)return a.call(r)},l=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),c=n(3),f=r(c),d=n(8),h=r(d),p=n(43),g=r(p),m=n(27),v=r(m),y=n(15),b=n(41),_=r(b),w=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],x=function(t){function e(t,n){i(this,e),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=w);var r=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.quill.container.classList.add("ql-snow"),r}return a(e,t),l(e,[{key:"extendToolbar",value:function(t){t.container.classList.add("ql-snow"),this.buildButtons([].slice.call(t.container.querySelectorAll("button")),_.default),this.buildPickers([].slice.call(t.container.querySelectorAll("select")),_.default),this.tooltip=new k(this.quill,this.options.bounds),t.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(e,n){t.handlers.link.call(t,!n.format.link)})}}]),e}(g.default);x.DEFAULTS=(0,f.default)(!0,{},g.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(t){if(t){var e=this.quill.getSelection();if(null==e||0==e.length)return;var n=this.quill.getText(e);/^\S+@\S+\.\S+$/.test(n)&&0!==n.indexOf("mailto:")&&(n="mailto:"+n);this.quill.theme.tooltip.edit("link",n)}else this.quill.format("link",!1)}}}}});var k=function(t){function e(t,n){i(this,e);var r=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.preview=r.root.querySelector("a.ql-preview"),r}return a(e,t),l(e,[{key:"listen",value:function(){var t=this;u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(e){t.root.classList.contains("ql-editing")?t.save():t.edit("link",t.preview.textContent),e.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(e){if(null!=t.linkRange){var n=t.linkRange;t.restoreFocus(),t.quill.formatText(n,"link",!1,h.default.sources.USER),delete t.linkRange}e.preventDefault(),t.hide()}),this.quill.on(h.default.events.SELECTION_CHANGE,function(e,n,r){if(null!=e){if(0===e.length&&r===h.default.sources.USER){var i=t.quill.scroll.descendant(v.default,e.index),o=s(i,2),a=o[0],u=o[1];if(null!=a){t.linkRange=new y.Range(e.index-u,a.length());var l=v.default.formats(a.domNode);return t.preview.textContent=l,t.preview.setAttribute("href",l),t.show(),void t.position(t.quill.getBounds(t.linkRange))}}else delete t.linkRange;t.hide()}})}},{key:"show",value:function(){u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),e}(p.BaseTooltip);k.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),e.default=x},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(29),o=r(i),a=n(36),s=n(38),u=n(64),l=n(65),c=r(l),f=n(66),d=r(f),h=n(67),p=r(h),g=n(37),m=n(26),v=n(39),y=n(40),b=n(56),_=r(b),w=n(68),x=r(w),k=n(27),S=r(k),C=n(69),E=r(C),T=n(70),A=r(T),O=n(71),P=r(O),N=n(72),D=r(N),M=n(73),I=r(M),R=n(13),$=r(R),L=n(74),j=r(L),F=n(75),B=r(F),V=n(57),z=r(V),U=n(41),H=r(U),q=n(28),W=r(q),G=n(59),Y=r(G),K=n(60),X=r(K),J=n(61),Q=r(J),Z=n(108),tt=r(Z),et=n(62),nt=r(et);o.default.register({"attributors/attribute/direction":s.DirectionAttribute,"attributors/class/align":a.AlignClass,"attributors/class/background":g.BackgroundClass,"attributors/class/color":m.ColorClass,"attributors/class/direction":s.DirectionClass,"attributors/class/font":v.FontClass,"attributors/class/size":y.SizeClass,"attributors/style/align":a.AlignStyle,"attributors/style/background":g.BackgroundStyle,"attributors/style/color":m.ColorStyle,"attributors/style/direction":s.DirectionStyle,"attributors/style/font":v.FontStyle,"attributors/style/size":y.SizeStyle},!0),o.default.register({"formats/align":a.AlignClass,"formats/direction":s.DirectionClass,"formats/indent":u.IndentClass,"formats/background":g.BackgroundStyle,"formats/color":m.ColorStyle,"formats/font":v.FontClass,"formats/size":y.SizeClass,"formats/blockquote":c.default,"formats/code-block":$.default,"formats/header":d.default,"formats/list":p.default,"formats/bold":_.default,"formats/code":R.Code,"formats/italic":x.default,"formats/link":S.default,"formats/script":E.default,"formats/strike":A.default,"formats/underline":P.default,"formats/image":D.default,"formats/video":I.default,"formats/list/item":h.ListItem,"modules/formula":j.default,"modules/syntax":B.default,"modules/toolbar":z.default,"themes/bubble":tt.default,"themes/snow":nt.default,"ui/icons":H.default,"ui/picker":W.default,"ui/icon-picker":X.default,"ui/color-picker":Y.default,"ui/tooltip":Q.default},!0),e.default=o.default},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.IndentClass=void 0;var a=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),s=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;if(void 0!==a)return a.call(r)},u=n(0),l=function(t){return t&&t.__esModule?t:{default:t}}(u),c=function(t){function e(){return r(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return o(e,t),a(e,[{key:"add",value:function(t,n){if("+1"===n||"-1"===n){var r=this.value(t)||0;n="+1"===n?r+1:r-1}return 0===n?(this.remove(t),!0):s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"add",this).call(this,t,n)}},{key:"canAdd",value:function(t,n){return s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"canAdd",this).call(this,t,n)||s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"canAdd",this).call(this,t,parseInt(n))}},{key:"value",value:function(t){return parseInt(s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"value",this).call(this,t))||void 0}}]),e}(l.default.Attributor.Class),f=new c("indent","ql-indent",{scope:l.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});e.IndentClass=f},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var a=n(4),s=function(t){return t&&t.__esModule?t:{default:t}}(a),u=function(t){function e(){return r(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return o(e,t),e}(s.default);u.blotName="blockquote",u.tagName="blockquote",e.default=u},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),s=n(4),u=function(t){return t&&t.__esModule?t:{default:t}}(s),l=function(t){function e(){return r(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return o(e,t),a(e,null,[{key:"formats",value:function(t){return this.tagName.indexOf(t.tagName)+1}}]),e}(u.default);l.blotName="header",l.tagName=["H1","H2","H3","H4","H5","H6"],e.default=l},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.ListItem=void 0;var u=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),l=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;if(void 0!==a)return a.call(r)},c=n(0),f=r(c),d=n(4),h=r(d),p=n(25),g=r(p),m=function(t){function e(){return o(this,e),a(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return s(e,t),u(e,[{key:"format",value:function(t,n){t!==v.blotName||n?l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n):this.replaceWith(f.default.create(this.statics.scope))}},{key:"remove",value:function(){null==this.prev&&null==this.next?this.parent.remove():l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(t,n){return this.parent.isolate(this.offset(this.parent),this.length()),t===this.parent.statics.blotName?(this.parent.replaceWith(t,n),this):(this.parent.unwrap(),l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replaceWith",this).call(this,t,n))}}],[{key:"formats",value:function(t){return t.tagName===this.tagName?void 0:l(e.__proto__||Object.getPrototypeOf(e),"formats",this).call(this,t)}}]),e}(h.default);m.blotName="list-item",m.tagName="LI";var v=function(t){function e(t){o(this,e);var n=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t)),r=function(e){if(e.target.parentNode===t){var r=n.statics.formats(t),i=f.default.find(e.target);"checked"===r?i.format("list","unchecked"):"unchecked"===r&&i.format("list","checked")}};return t.addEventListener("touchstart",r),t.addEventListener("mousedown",r),n}return s(e,t),u(e,null,[{key:"create",value:function(t){var n="ordered"===t?"OL":"UL",r=l(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,n);return"checked"!==t&&"unchecked"!==t||r.setAttribute("data-checked","checked"===t),r}},{key:"formats",value:function(t){return"OL"===t.tagName?"ordered":"UL"===t.tagName?t.hasAttribute("data-checked")?"true"===t.getAttribute("data-checked")?"checked":"unchecked":"bullet":void 0}}]),u(e,[{key:"format",value:function(t,e){this.children.length>0&&this.children.tail.format(t,e)}},{key:"formats",value:function(){return i({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(t,n){if(t instanceof m)l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertBefore",this).call(this,t,n);else{var r=null==n?this.length():n.offset(this),i=this.split(r);i.parent.insertBefore(t,i)}}},{key:"optimize",value:function(t){l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&n.domNode.tagName===this.domNode.tagName&&n.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(n.moveChildren(this),n.remove())}},{key:"replace",value:function(t){if(t.statics.blotName!==this.statics.blotName){var n=f.default.create(this.statics.defaultChild);t.moveChildren(n),this.appendChild(n)}l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replace",this).call(this,t)}}]),e}(g.default);v.blotName="list",v.scope=f.default.Scope.BLOCK_BLOT,v.tagName=["OL","UL"],v.defaultChild="list-item",v.allowedChildren=[m],e.ListItem=m,e.default=v},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var a=n(56),s=function(t){return t&&t.__esModule?t:{default:t}}(a),u=function(t){function e(){return r(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return o(e,t),e}(s.default);u.blotName="italic",u.tagName=["EM","I"],e.default=u},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),s=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;if(void 0!==a)return a.call(r)},u=n(6),l=function(t){return t&&t.__esModule?t:{default:t}}(u),c=function(t){function e(){return r(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return o(e,t),a(e,null,[{key:"create",value:function(t){return"super"===t?document.createElement("sup"):"sub"===t?document.createElement("sub"):s(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t)}},{key:"formats",value:function(t){return"SUB"===t.tagName?"sub":"SUP"===t.tagName?"super":void 0}}]),e}(l.default);c.blotName="script",c.tagName=["SUB","SUP"],e.default=c},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var a=n(6),s=function(t){return t&&t.__esModule?t:{default:t}}(a),u=function(t){function e(){return r(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return o(e,t),e}(s.default);u.blotName="strike",u.tagName="S",e.default=u},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var a=n(6),s=function(t){return t&&t.__esModule?t:{default:t}}(a),u=function(t){function e(){return r(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return o(e,t),e}(s.default);u.blotName="underline",u.tagName="U",e.default=u},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),s=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;if(void 0!==a)return a.call(r)},u=n(0),l=function(t){return t&&t.__esModule?t:{default:t}}(u),c=n(27),f=["alt","height","width"],d=function(t){function e(){return r(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return o(e,t),a(e,[{key:"format",value:function(t,n){f.indexOf(t)>-1?n?this.domNode.setAttribute(t,n):this.domNode.removeAttribute(t):s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n)}}],[{key:"create",value:function(t){var n=s(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return"string"==typeof t&&n.setAttribute("src",this.sanitize(t)),n}},{key:"formats",value:function(t){return f.reduce(function(e,n){return t.hasAttribute(n)&&(e[n]=t.getAttribute(n)),e},{})}},{key:"match",value:function(t){return/\.(jpe?g|gif|png)$/.test(t)||/^data:image\/.+;base64/.test(t)}},{key:"sanitize",value:function(t){return(0,c.sanitize)(t,["http","https","data"])?t:"//:0"}},{key:"value",value:function(t){return t.getAttribute("src")}}]),e}(l.default.Embed);d.blotName="image",d.tagName="IMG",e.default=d},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),s=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;if(void 0!==a)return a.call(r)},u=n(4),l=n(27),c=function(t){return t&&t.__esModule?t:{default:t}}(l),f=["height","width"],d=function(t){function e(){return r(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return o(e,t),a(e,[{key:"format",value:function(t,n){f.indexOf(t)>-1?n?this.domNode.setAttribute(t,n):this.domNode.removeAttribute(t):s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n)}}],[{key:"create",value:function(t){var n=s(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return n.setAttribute("frameborder","0"),n.setAttribute("allowfullscreen",!0),n.setAttribute("src",this.sanitize(t)),n}},{key:"formats",value:function(t){return f.reduce(function(e,n){return t.hasAttribute(n)&&(e[n]=t.getAttribute(n)),e},{})}},{key:"sanitize",value:function(t){return c.default.sanitize(t)}},{key:"value",value:function(t){return t.getAttribute("src")}}]),e}(u.BlockEmbed);d.blotName="video",d.className="ql-video",d.tagName="IFRAME",e.default=d},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.FormulaBlot=void 0;var s=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),u=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;if(void 0!==a)return a.call(r)},l=n(35),c=r(l),f=n(5),d=r(f),h=n(9),p=r(h),g=function(t){function e(){return i(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,t),s(e,null,[{key:"create",value:function(t){var n=u(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return"string"==typeof t&&(window.katex.render(t,n,{throwOnError:!1,errorColor:"#f00"}),n.setAttribute("data-value",t)),n}},{key:"value",value:function(t){return t.getAttribute("data-value")}}]),e}(c.default);g.blotName="formula",g.className="ql-formula",g.tagName="SPAN";var m=function(t){function e(){i(this,e);var t=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));if(null==window.katex)throw new Error("Formula module requires KaTeX.");return t}return a(e,t),s(e,null,[{key:"register",value:function(){d.default.register(g,!0)}}]),e}(p.default);e.FormulaBlot=g,e.default=m},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.CodeToken=e.CodeBlock=void 0;var s=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),u=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;if(void 0!==a)return a.call(r)},l=n(0),c=r(l),f=n(5),d=r(f),h=n(9),p=r(h),g=n(13),m=r(g),v=function(t){function e(){return i(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,t),s(e,[{key:"replaceWith",value:function(t){this.domNode.textContent=this.domNode.textContent,this.attach(),u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replaceWith",this).call(this,t)}},{key:"highlight",value:function(t){var e=this.domNode.textContent;this.cachedText!==e&&((e.trim().length>0||null==this.cachedText)&&(this.domNode.innerHTML=t(e),this.domNode.normalize(),this.attach()),this.cachedText=e)}}]),e}(m.default);v.className="ql-syntax";var y=new c.default.Attributor.Class("token","hljs",{scope:c.default.Scope.INLINE}),b=function(t){function e(t,n){i(this,e);var r=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));if("function"!=typeof r.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var a=null;return r.quill.on(d.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(a),a=setTimeout(function(){r.highlight(),a=null},r.options.interval)}),r.highlight(),r}return a(e,t),s(e,null,[{key:"register",value:function(){d.default.register(y,!0),d.default.register(v,!0)}}]),s(e,[{key:"highlight",value:function(){var t=this;if(!this.quill.selection.composing){this.quill.update(d.default.sources.USER);var e=this.quill.getSelection();this.quill.scroll.descendants(v).forEach(function(e){e.highlight(t.options.highlight)}),this.quill.update(d.default.sources.SILENT),null!=e&&this.quill.setSelection(e,d.default.sources.SILENT)}}}]),e}(p.default);b.DEFAULTS={highlight:function(){return null==window.hljs?null:function(t){return window.hljs.highlightAuto(t).value}}(),interval:1e3},e.CodeBlock=v,e.CodeToken=y,e.default=b},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(t,e){t.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(t,e){t.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(t,e){t.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(t,e){t.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BubbleTooltip=void 0;var s=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;if(void 0!==a)return a.call(r)},u=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),l=n(3),c=r(l),f=n(8),d=r(f),h=n(43),p=r(h),g=n(15),m=n(41),v=r(m),y=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],b=function(t){function e(t,n){i(this,e),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=y);var r=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.quill.container.classList.add("ql-bubble"),r}return a(e,t),u(e,[{key:"extendToolbar",value:function(t){this.tooltip=new _(this.quill,this.options.bounds),this.tooltip.root.appendChild(t.container),this.buildButtons([].slice.call(t.container.querySelectorAll("button")),v.default),this.buildPickers([].slice.call(t.container.querySelectorAll("select")),v.default)}}]),e}(p.default);b.DEFAULTS=(0,c.default)(!0,{},p.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(t){t?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var _=function(t){function e(t,n){i(this,e);var r=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.quill.on(d.default.events.EDITOR_CHANGE,function(t,e,n,i){if(t===d.default.events.SELECTION_CHANGE)if(null!=e&&e.length>0&&i===d.default.sources.USER){r.show(),r.root.style.left="0px",r.root.style.width="",r.root.style.width=r.root.offsetWidth+"px";var o=r.quill.getLines(e.index,e.length);if(1===o.length)r.position(r.quill.getBounds(e));else{var a=o[o.length-1],s=r.quill.getIndex(a),u=Math.min(a.length()-1,e.index+e.length-s),l=r.quill.getBounds(new g.Range(s,u));r.position(l)}}else document.activeElement!==r.textbox&&r.quill.hasFocus()&&r.hide()}),r}return a(e,t),u(e,[{key:"listen",value:function(){var t=this;s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){t.root.classList.remove("ql-editing")}),this.quill.on(d.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!t.root.classList.contains("ql-hidden")){var e=t.quill.getSelection();null!=e&&t.position(t.quill.getBounds(e))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(t){var n=s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"position",this).call(this,t),r=this.root.querySelector(".ql-tooltip-arrow");if(r.style.marginLeft="",0===n)return n;r.style.marginLeft=-1*n-r.offsetWidth/2+"px"}}]),e}(h.BaseTooltip);_.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),e.BubbleTooltip=_,e.default=b},function(t,e,n){t.exports=n(63)}]).default})}).call(e,n(182).Buffer)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){function n(t,e){function n(){o&&(o=!1,t()),a&&i()}function r(){g(n)}function i(){var t=Date.now();if(o){if(t-s<m)return;a=!0}else o=!0,a=!1,setTimeout(r,e);s=t}var o=!1,a=!1,s=0;return i}function r(t){return parseFloat(t)||0}function i(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.reduce(function(e,n){return e+r(t["border-"+n+"-width"])},0)}function o(t){for(var e=["top","right","bottom","left"],n={},i=0,o=e;i<o.length;i++){var a=o[i],s=t["padding-"+a];n[a]=r(s)}return n}function a(t){var e=t.getBBox();return f(0,0,e.width,e.height)}function s(t){var e=t.clientWidth,n=t.clientHeight;if(!e&&!n)return k;var a=x(t).getComputedStyle(t),s=o(a),l=s.left+s.right,c=s.top+s.bottom,d=r(a.width),h=r(a.height);if("border-box"===a.boxSizing&&(Math.round(d+l)!==e&&(d-=i(a,"left","right")+l),Math.round(h+c)!==n&&(h-=i(a,"top","bottom")+c)),!u(t)){var p=Math.round(d+l)-e,g=Math.round(h+c)-n;1!==Math.abs(p)&&(d-=p),1!==Math.abs(g)&&(h-=g)}return f(s.left,s.top,d,h)}function u(t){return t===x(t).document.documentElement}function l(t){return h?S(t)?a(t):s(t):k}function c(t){var e=t.x,n=t.y,r=t.width,i=t.height,o="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,a=Object.create(o.prototype);return w(a,{x:e,y:n,width:r,height:i,top:n,right:e+r,bottom:i+n,left:e}),a}function f(t,e,n,r){return{x:t,y:e,width:n,height:r}}var d=function(){function t(t,e){var n=-1;return t.some(function(t,r){return t[0]===e&&(n=r,!0)}),n}return"undefined"!=typeof Map?Map:function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var n=t(this.__entries__,e),r=this.__entries__[n];return r&&r[1]},e.prototype.set=function(e,n){var r=t(this.__entries__,e);~r?this.__entries__[r][1]=n:this.__entries__.push([e,n])},e.prototype.delete=function(e){var n=this.__entries__,r=t(n,e);~r&&n.splice(r,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var n=0,r=this.__entries__;n<r.length;n++){var i=r[n];t.call(e,i[1],i[0])}},e}()}(),h="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,p=function(){return void 0!==t&&t.Math===Math?t:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")()}(),g=function(){return"function"==typeof requestAnimationFrame?requestAnimationFrame.bind(p):function(t){return setTimeout(function(){return t(Date.now())},1e3/60)}}(),m=2,v=20,y=["top","right","bottom","left","width","height","size","weight"],b="undefined"!=typeof MutationObserver,_=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=n(this.refresh.bind(this),v)}return t.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},t.prototype.removeObserver=function(t){var e=this.observers_,n=e.indexOf(t);~n&&e.splice(n,1),!e.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},t.prototype.updateObservers_=function(){var t=this.observers_.filter(function(t){return t.gatherActive(),t.hasActive()});return t.forEach(function(t){return t.broadcastActive()}),t.length>0},t.prototype.connect_=function(){h&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),b?(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)},t.prototype.disconnect_=function(){h&&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)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,n=void 0===e?"":e;y.some(function(t){return!!~n.indexOf(t)})&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),w=function(t,e){for(var n=0,r=Object.keys(e);n<r.length;n++){var i=r[n];Object.defineProperty(t,i,{value:e[i],enumerable:!1,writable:!1,configurable:!0})}return t},x=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||p},k=f(0,0,0,0),S=function(){return"undefined"!=typeof SVGGraphicsElement?function(t){return t instanceof x(t).SVGGraphicsElement}:function(t){return t instanceof x(t).SVGElement&&"function"==typeof t.getBBox}}(),C=function(){function t(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=f(0,0,0,0),this.target=t}return t.prototype.isActive=function(){var t=l(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},t}(),E=function(){function t(t,e){var n=c(e);w(this,{target:t,contentRect:n})}return t}(),T=function(){function t(t,e,n){if(this.activeObservations_=[],this.observations_=new d,"function"!=typeof t)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=e,this.callbackCtx_=n}return t.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof x(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)||(e.set(t,new C(t)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof x(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)&&(e.delete(t),e.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(e){e.isActive()&&t.activeObservations_.push(e)})},t.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,e=this.activeObservations_.map(function(t){return new E(t.target,t.broadcastRect())});this.callback_.call(t,e,t),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),A="undefined"!=typeof WeakMap?new WeakMap:new d,O=function(){function t(e){if(!(this instanceof t))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=_.getInstance(),r=new T(e,n,this);A.set(this,r)}return t}();["observe","unobserve","disconnect"].forEach(function(t){O.prototype[t]=function(){var e;return(e=A.get(this))[t].apply(e,arguments)}});var P=function(){return void 0!==p.ResizeObserver?p.ResizeObserver:O}();e.default=P}.call(e,n(20))},function(t,e,n){"use strict";var r=n(67),i=n(596),o=n(254)(),a=n(253),s=r("%TypeError%"),u=r("%Math.floor%");t.exports=function(t,e){if("function"!=typeof t)throw new s("`fn` is not a function");if("number"!=typeof e||e<0||e>4294967295||u(e)!==e)throw new s("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],r=!0,l=!0;if("length"in t&&a){var c=a(t,"length");c&&!c.configurable&&(r=!1),c&&!c.writable&&(l=!1)}return(r||l||!n)&&(o?i(t,"length",e,!0,!0):i(t,"length",e)),t}},function(t,e,n){(function(t,e){!function(t,n){"use strict";function r(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n<e.length;n++)e[n]=arguments[n+1];var r={callback:t,args:e};return l[u]=r,s(u),u++}function i(t){delete l[t]}function o(t){var e=t.callback,r=t.args;switch(r.length){case 0:e();break;case 1:e(r[0]);break;case 2:e(r[0],r[1]);break;case 3:e(r[0],r[1],r[2]);break;default:e.apply(n,r)}}function a(t){if(c)setTimeout(a,0,t);else{var e=l[t];if(e){c=!0;try{o(e)}finally{i(t),c=!1}}}}if(!t.setImmediate){var s,u=1,l={},c=!1,f=t.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(t);d=d&&d.setTimeout?d:t,"[object process]"==={}.toString.call(t.process)?function(){s=function(t){e.nextTick(function(){a(t)})}}():function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?function(){var e="setImmediate$"+Math.random()+"$",n=function(n){n.source===t&&"string"==typeof n.data&&0===n.data.indexOf(e)&&a(+n.data.slice(e.length))};t.addEventListener?t.addEventListener("message",n,!1):t.attachEvent("onmessage",n),s=function(n){t.postMessage(e+n,"*")}}():t.MessageChannel?function(){var t=new MessageChannel;t.port1.onmessage=function(t){a(t.data)},s=function(e){t.port2.postMessage(e)}}():f&&"onreadystatechange"in f.createElement("script")?function(){var t=f.documentElement;s=function(e){var n=f.createElement("script");n.onreadystatechange=function(){a(e),n.onreadystatechange=null,t.removeChild(n),n=null},t.appendChild(n)}}():function(){s=function(t){setTimeout(a,0,t)}}(),d.setImmediate=r,d.clearImmediate=i}}("undefined"==typeof self?void 0===t?this:t:self)}).call(e,n(20),n(169))},function(t,e,n){"use strict";var r=n(67),i=n(347),o=n(922),a=r("%TypeError%"),s=r("%WeakMap%",!0),u=r("%Map%",!0),l=i("WeakMap.prototype.get",!0),c=i("WeakMap.prototype.set",!0),f=i("WeakMap.prototype.has",!0),d=i("Map.prototype.get",!0),h=i("Map.prototype.set",!0),p=i("Map.prototype.has",!0),g=function(t,e){for(var n,r=t;null!==(n=r.next);r=n)if(n.key===e)return r.next=n.next,n.next=t.next,t.next=n,n},m=function(t,e){var n=g(t,e);return n&&n.value},v=function(t,e,n){var r=g(t,e);r?r.value=n:t.next={key:e,next:t.next,value:n}},y=function(t,e){return!!g(t,e)};t.exports=function(){var t,e,n,r={assert:function(t){if(!r.has(t))throw new a("Side channel does not contain "+o(t))},get:function(r){if(s&&r&&("object"==typeof r||"function"==typeof r)){if(t)return l(t,r)}else if(u){if(e)return d(e,r)}else if(n)return m(n,r)},has:function(r){if(s&&r&&("object"==typeof r||"function"==typeof r)){if(t)return f(t,r)}else if(u){if(e)return p(e,r)}else if(n)return y(n,r);return!1},set:function(r,i){s&&r&&("object"==typeof r||"function"==typeof r)?(t||(t=new s),c(t,r,i)):u?(e||(e=new u),h(e,r,i)):(n||(n={key:{},next:null}),v(n,r,i))}};return r}},function(t,e,n){"use strict";/**!
  84. * Sortable 1.10.2
  85. * @author RubaXa <trash@rubaxa.org>
  86. * @author owenm <owen23355@gmail.com>
  87. * @license MIT
  88. */
  89. function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o(){return o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},o.apply(this,arguments)}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){i(t,e,n[e])})}return t}function s(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}function u(t,e){if(null==t)return{};var n,r,i=s(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function l(t){return c(t)||f(t)||d()}function c(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}function f(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}function d(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function h(t){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(t)}function p(t,e,n){t.addEventListener(e,n,!Bt&&Wt)}function g(t,e,n){t.removeEventListener(e,n,!Bt&&Wt)}function m(t,e){if(e){if(">"===e[0]&&(e=e.substring(1)),t)try{if(t.matches)return t.matches(e);if(t.msMatchesSelector)return t.msMatchesSelector(e);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(e)}catch(t){return!1}return!1}}function v(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function y(t,e,n,r){if(t){n=n||document;do{if(null!=e&&(">"===e[0]?t.parentNode===n&&m(t,e):m(t,e))||r&&t===n)return t;if(t===n)break}while(t=v(t))}return null}function b(t,e,n){if(t&&e)if(t.classList)t.classList[n?"add":"remove"](e);else{var r=(" "+t.className+" ").replace(Gt," ").replace(" "+e+" "," ");t.className=(r+(n?" "+e:"")).replace(Gt," ")}}function _(t,e,n){var r=t&&t.style;if(r){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(n=t.currentStyle),void 0===e?n:n[e];e in r||-1!==e.indexOf("webkit")||(e="-webkit-"+e),r[e]=n+("string"==typeof n?"":"px")}}function w(t,e){var n="";if("string"==typeof t)n=t;else do{var r=_(t,"transform");r&&"none"!==r&&(n=r+" "+n)}while(!e&&(t=t.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(n)}function x(t,e,n){if(t){var r=t.getElementsByTagName(e),i=0,o=r.length;if(n)for(;i<o;i++)n(r[i],i);return r}return[]}function k(){var t=document.scrollingElement;return t||document.documentElement}function S(t,e,n,r,i){if(t.getBoundingClientRect||t===window){var o,a,s,u,l,c,f;if(t!==window&&t!==k()?(o=t.getBoundingClientRect(),a=o.top,s=o.left,u=o.bottom,l=o.right,c=o.height,f=o.width):(a=0,s=0,u=window.innerHeight,l=window.innerWidth,c=window.innerHeight,f=window.innerWidth),(e||n)&&t!==window&&(i=i||t.parentNode,!Bt))do{if(i&&i.getBoundingClientRect&&("none"!==_(i,"transform")||n&&"static"!==_(i,"position"))){var d=i.getBoundingClientRect();a-=d.top+parseInt(_(i,"border-top-width")),s-=d.left+parseInt(_(i,"border-left-width")),u=a+o.height,l=s+o.width;break}}while(i=i.parentNode);if(r&&t!==window){var h=w(i||t),p=h&&h.a,g=h&&h.d;h&&(a/=g,s/=p,f/=p,c/=g,u=a+c,l=s+f)}return{top:a,left:s,bottom:u,right:l,width:f,height:c}}}function C(t,e,n){for(var r=N(t,!0),i=S(t)[e];r;){var o=S(r)[n];if(!("top"===n||"left"===n?i>=o:i<=o))return r;if(r===k())break;r=N(r,!1)}return!1}function E(t,e,n){for(var r=0,i=0,o=t.children;i<o.length;){if("none"!==o[i].style.display&&o[i]!==q.ghost&&o[i]!==q.dragged&&y(o[i],n.draggable,t,!1)){if(r===e)return o[i];r++}i++}return null}function T(t,e){for(var n=t.lastElementChild;n&&(n===q.ghost||"none"===_(n,"display")||e&&!m(n,e));)n=n.previousElementSibling;return n||null}function A(t,e){var n=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)"TEMPLATE"===t.nodeName.toUpperCase()||t===q.clone||e&&!m(t,e)||n++;return n}function O(t){var e=0,n=0,r=k();if(t)do{var i=w(t),o=i.a,a=i.d;e+=t.scrollLeft*o,n+=t.scrollTop*a}while(t!==r&&(t=t.parentNode));return[e,n]}function P(t,e){for(var n in t)if(t.hasOwnProperty(n))for(var r in e)if(e.hasOwnProperty(r)&&e[r]===t[n][r])return Number(n);return-1}function N(t,e){if(!t||!t.getBoundingClientRect)return k();var n=t,r=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var i=_(n);if(n.clientWidth<n.scrollWidth&&("auto"==i.overflowX||"scroll"==i.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==i.overflowY||"scroll"==i.overflowY)){if(!n.getBoundingClientRect||n===document.body)return k();if(r||e)return n;r=!0}}}while(n=n.parentNode);return k()}function D(t,e){if(t&&e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function M(t,e){return Math.round(t.top)===Math.round(e.top)&&Math.round(t.left)===Math.round(e.left)&&Math.round(t.height)===Math.round(e.height)&&Math.round(t.width)===Math.round(e.width)}function I(t,e){return function(){if(!pt){var n=arguments,r=this;1===n.length?t.call(r,n[0]):t.apply(r,n),pt=setTimeout(function(){pt=void 0},e)}}}function R(){clearTimeout(pt),pt=void 0}function $(t,e,n){t.scrollLeft+=e,t.scrollTop+=n}function L(t){var e=window.Polymer,n=window.jQuery||window.Zepto;return e&&e.dom?e.dom(t).cloneNode(!0):n?n(t).clone(!0)[0]:t.cloneNode(!0)}function j(t,e){_(t,"position","absolute"),_(t,"top",e.top),_(t,"left",e.left),_(t,"width",e.width),_(t,"height",e.height)}function F(t){_(t,"position",""),_(t,"top",""),_(t,"left",""),_(t,"width",""),_(t,"height","")}function B(){var t,e=[];return{captureAnimationState:function(){if(e=[],this.options.animation){[].slice.call(this.el.children).forEach(function(t){if("none"!==_(t,"display")&&t!==q.ghost){e.push({target:t,rect:S(t)});var n=a({},e[e.length-1].rect);if(t.thisAnimationDuration){var r=w(t,!0);r&&(n.top-=r.f,n.left-=r.e)}t.fromRect=n}})}},addAnimationState:function(t){e.push(t)},removeAnimationState:function(t){e.splice(P(e,{target:t}),1)},animateAll:function(n){var r=this;if(!this.options.animation)return clearTimeout(t),void("function"==typeof n&&n());var i=!1,o=0;e.forEach(function(t){var e=0,n=t.target,a=n.fromRect,s=S(n),u=n.prevFromRect,l=n.prevToRect,c=t.rect,f=w(n,!0);f&&(s.top-=f.f,s.left-=f.e),n.toRect=s,n.thisAnimationDuration&&M(u,s)&&!M(a,s)&&(c.top-s.top)/(c.left-s.left)==(a.top-s.top)/(a.left-s.left)&&(e=z(c,u,l,r.options)),M(s,a)||(n.prevFromRect=a,n.prevToRect=s,e||(e=r.options.animation),r.animate(n,c,s,e)),e&&(i=!0,o=Math.max(o,e),clearTimeout(n.animationResetTimer),n.animationResetTimer=setTimeout(function(){n.animationTime=0,n.prevFromRect=null,n.fromRect=null,n.prevToRect=null,n.thisAnimationDuration=null},e),n.thisAnimationDuration=e)}),clearTimeout(t),i?t=setTimeout(function(){"function"==typeof n&&n()},o):"function"==typeof n&&n(),e=[]},animate:function(t,e,n,r){if(r){_(t,"transition",""),_(t,"transform","");var i=w(this.el),o=i&&i.a,a=i&&i.d,s=(e.left-n.left)/(o||1),u=(e.top-n.top)/(a||1);t.animatingX=!!s,t.animatingY=!!u,_(t,"transform","translate3d("+s+"px,"+u+"px,0)"),V(t),_(t,"transition","transform "+r+"ms"+(this.options.easing?" "+this.options.easing:"")),_(t,"transform","translate3d(0,0,0)"),"number"==typeof t.animated&&clearTimeout(t.animated),t.animated=setTimeout(function(){_(t,"transition",""),_(t,"transform",""),t.animated=!1,t.animatingX=!1,t.animatingY=!1},r)}}}}function V(t){return t.offsetWidth}function z(t,e,n,r){return Math.sqrt(Math.pow(e.top-t.top,2)+Math.pow(e.left-t.left,2))/Math.sqrt(Math.pow(e.top-n.top,2)+Math.pow(e.left-n.left,2))*r.animation}function U(t){var e=t.sortable,n=t.rootEl,r=t.name,i=t.targetEl,o=t.cloneEl,s=t.toEl,u=t.fromEl,l=t.oldIndex,c=t.newIndex,f=t.oldDraggableIndex,d=t.newDraggableIndex,h=t.originalEvent,p=t.putSortable,g=t.extraEventProperties;if(e=e||n&&n[Yt]){var m,v=e.options,y="on"+r.charAt(0).toUpperCase()+r.substr(1);!window.CustomEvent||Bt||Vt?(m=document.createEvent("Event"),m.initEvent(r,!0,!0)):m=new CustomEvent(r,{bubbles:!0,cancelable:!0}),m.to=s||n,m.from=u||n,m.item=i||n,m.clone=o,m.oldIndex=l,m.newIndex=c,m.oldDraggableIndex=f,m.newDraggableIndex=d,m.originalEvent=h,m.pullMode=p?p.lastPutMode:void 0;var b=a({},g,Jt.getEventProperties(r,e));for(var _ in b)m[_]=b[_];n&&n.dispatchEvent(m),v[y]&&v[y].call(e,m)}}function H(t){U(a({putSortable:At,cloneEl:wt,targetEl:gt,rootEl:yt,oldIndex:kt,oldDraggableIndex:Ct,newIndex:St,newDraggableIndex:Et},t))}function q(t,e){if(!t||!t.nodeType||1!==t.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=e=o({},e),t[Yt]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return de(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(t,e){t.setData("Text",e.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==q.supportPointer&&"PointerEvent"in window,emptyInsertThreshold:5};Jt.initializePlugins(this,t,n);for(var r in n)!(r in e)&&(e[r]=n[r]);ge(e);for(var i in this)"_"===i.charAt(0)&&"function"==typeof this[i]&&(this[i]=this[i].bind(this));this.nativeDraggable=!e.forceFallback&&ce,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?p(t,"pointerdown",this._onTapStart):(p(t,"mousedown",this._onTapStart),p(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(p(t,"dragover",this),p(t,"dragenter",this)),ee.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),o(this,B())}function W(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move"),t.cancelable&&t.preventDefault()}function G(t,e,n,r,i,o,a,s){var u,l,c=t[Yt],f=c.options.onMove;return!window.CustomEvent||Bt||Vt?(u=document.createEvent("Event"),u.initEvent("move",!0,!0)):u=new CustomEvent("move",{bubbles:!0,cancelable:!0}),u.to=e,u.from=t,u.dragged=n,u.draggedRect=r,u.related=i||e,u.relatedRect=o||S(e),u.willInsertAfter=s,u.originalEvent=a,t.dispatchEvent(u),f&&(l=f.call(c,u,a)),l}function Y(t){t.draggable=!1}function K(){oe=!1}function X(t,e,n){var r=S(T(n.el,n.options.draggable));return e?t.clientX>r.right+10||t.clientX<=r.right&&t.clientY>r.bottom&&t.clientX>=r.left:t.clientX>r.right&&t.clientY>r.top||t.clientX<=r.right&&t.clientY>r.bottom+10}function J(t,e,n,r,i,o,a,s){var u=r?t.clientY:t.clientX,l=r?n.height:n.width,c=r?n.top:n.left,f=r?n.bottom:n.right,d=!1;if(!a)if(s&&jt<l*i){if(!ne&&(1===Lt?u>c+l*o/2:u<f-l*o/2)&&(ne=!0),ne)d=!0;else if(1===Lt?u<c+jt:u>f-jt)return-Lt}else if(u>c+l*(1-i)/2&&u<f-l*(1-i)/2)return Q(e);return d=d||a,d&&(u<c+l*o/2||u>f-l*o/2)?u>c+l/2?1:-1:0}function Q(t){return A(gt)<A(t)?1:-1}function Z(t){for(var e=t.tagName+t.className+t.src+t.href+t.textContent,n=e.length,r=0;n--;)r+=e.charCodeAt(n);return r.toString(36)}function tt(t){ae.length=0;for(var e=t.getElementsByTagName("input"),n=e.length;n--;){var r=e[n];r.checked&&ae.push(r)}}function et(t){return setTimeout(t,0)}function nt(t){return clearTimeout(t)}function rt(){function t(){this.defaults={scroll:!0,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var t in this)"_"===t.charAt(0)&&"function"==typeof this[t]&&(this[t]=this[t].bind(this))}return t.prototype={dragStarted:function(t){var e=t.originalEvent;this.sortable.nativeDraggable?p(document,"dragover",this._handleAutoScroll):this.options.supportPointer?p(document,"pointermove",this._handleFallbackAutoScroll):e.touches?p(document,"touchmove",this._handleFallbackAutoScroll):p(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){var e=t.originalEvent;this.options.dragOverBubble||e.rootEl||this._handleAutoScroll(e)},drop:function(){this.sortable.nativeDraggable?g(document,"dragover",this._handleAutoScroll):(g(document,"pointermove",this._handleFallbackAutoScroll),g(document,"touchmove",this._handleFallbackAutoScroll),g(document,"mousemove",this._handleFallbackAutoScroll)),ot(),it(),R()},nulling:function(){Se=we=_e=Te=Ce=xe=ke=null,Ee.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(t,e){var n=this,r=(t.touches?t.touches[0]:t).clientX,i=(t.touches?t.touches[0]:t).clientY,o=document.elementFromPoint(r,i);if(Se=t,e||Vt||Bt||Ut){Ae(t,this.options,o,e);var a=N(o,!0);!Te||Ce&&r===xe&&i===ke||(Ce&&ot(),Ce=setInterval(function(){var o=N(document.elementFromPoint(r,i),!0);o!==a&&(a=o,it()),Ae(t,n.options,o,e)},10),xe=r,ke=i)}else{if(!this.options.bubbleScroll||N(o,!0)===k())return void it();Ae(t,this.options,N(o,!1),!1)}}},o(t,{pluginName:"scroll",initializeByDefault:!0})}function it(){Ee.forEach(function(t){clearInterval(t.pid)}),Ee=[]}function ot(){clearInterval(Ce)}function at(){}function st(){}function ut(){function t(){this.defaults={swapClass:"sortable-swap-highlight"}}return t.prototype={dragStart:function(t){var e=t.dragEl;Pe=e},dragOverValid:function(t){var e=t.completed,n=t.target,r=t.onMove,i=t.activeSortable,o=t.changed,a=t.cancel;if(i.options.swap){var s=this.sortable.el,u=this.options;if(n&&n!==s){var l=Pe;!1!==r(n)?(b(n,u.swapClass,!0),Pe=n):Pe=null,l&&l!==Pe&&b(l,u.swapClass,!1)}o(),e(!0),a()}},drop:function(t){var e=t.activeSortable,n=t.putSortable,r=t.dragEl,i=n||this.sortable,o=this.options;Pe&&b(Pe,o.swapClass,!1),Pe&&(o.swap||n&&n.options.swap)&&r!==Pe&&(i.captureAnimationState(),i!==e&&e.captureAnimationState(),lt(r,Pe),i.animateAll(),i!==e&&e.animateAll())},nulling:function(){Pe=null}},o(t,{pluginName:"swap",eventProperties:function(){return{swapItem:Pe}}})}function lt(t,e){var n,r,i=t.parentNode,o=e.parentNode;i&&o&&!i.isEqualNode(e)&&!o.isEqualNode(t)&&(n=A(t),r=A(e),i.isEqualNode(o)&&n<r&&r++,i.insertBefore(e,i.children[n]),o.insertBefore(t,o.children[r]))}function ct(){function t(t){for(var e in this)"_"===e.charAt(0)&&"function"==typeof this[e]&&(this[e]=this[e].bind(this));t.options.supportPointer?p(document,"pointerup",this._deselectMultiDrag):(p(document,"mouseup",this._deselectMultiDrag),p(document,"touchend",this._deselectMultiDrag)),p(document,"keydown",this._checkKeyDown),p(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(e,n){var r="";$e.length&&De===t?$e.forEach(function(t,e){r+=(e?", ":"")+t.textContent}):r=n.textContent,e.setData("Text",r)}}}return t.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(t){var e=t.dragEl;Me=e},delayEnded:function(){this.isMultiDrag=~$e.indexOf(Me)},setupClone:function(t){var e=t.sortable,n=t.cancel;if(this.isMultiDrag){for(var r=0;r<$e.length;r++)Le.push(L($e[r])),Le[r].sortableIndex=$e[r].sortableIndex,Le[r].draggable=!1,Le[r].style["will-change"]="",b(Le[r],this.options.selectedClass,!1),$e[r]===Me&&b(Le[r],this.options.chosenClass,!1);e._hideClone(),n()}},clone:function(t){var e=t.sortable,n=t.rootEl,r=t.dispatchSortableEvent,i=t.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||$e.length&&De===e&&(dt(!0,n),r("clone"),i()))},showClone:function(t){var e=t.cloneNowShown,n=t.rootEl,r=t.cancel;this.isMultiDrag&&(dt(!1,n),Le.forEach(function(t){_(t,"display","")}),e(),Re=!1,r())},hideClone:function(t){var e=this,n=(t.sortable,t.cloneNowHidden),r=t.cancel;this.isMultiDrag&&(Le.forEach(function(t){_(t,"display","none"),e.options.removeCloneOnHide&&t.parentNode&&t.parentNode.removeChild(t)}),n(),Re=!0,r())},dragStartGlobal:function(t){t.sortable;!this.isMultiDrag&&De&&De.multiDrag._deselectMultiDrag(),$e.forEach(function(t){t.sortableIndex=A(t)}),$e=$e.sort(function(t,e){return t.sortableIndex-e.sortableIndex}),Be=!0},dragStarted:function(t){var e=this,n=t.sortable;if(this.isMultiDrag){if(this.options.sort&&(n.captureAnimationState(),this.options.animation)){$e.forEach(function(t){t!==Me&&_(t,"position","absolute")});var r=S(Me,!1,!0,!0);$e.forEach(function(t){t!==Me&&j(t,r)}),Fe=!0,je=!0}n.animateAll(function(){Fe=!1,je=!1,e.options.animation&&$e.forEach(function(t){F(t)}),e.options.sort&&ht()})}},dragOver:function(t){var e=t.target,n=t.completed,r=t.cancel;Fe&&~$e.indexOf(e)&&(n(!1),r())},revert:function(t){var e=t.fromSortable,n=t.rootEl,r=t.sortable,i=t.dragRect;$e.length>1&&($e.forEach(function(t){r.addAnimationState({target:t,rect:Fe?S(t):i}),F(t),t.fromRect=i,e.removeAnimationState(t)}),Fe=!1,ft(!this.options.removeCloneOnHide,n))},dragOverCompleted:function(t){var e=t.sortable,n=t.isOwner,r=t.insertion,i=t.activeSortable,o=t.parentEl,a=t.putSortable,s=this.options;if(r){if(n&&i._hideClone(),je=!1,s.animation&&$e.length>1&&(Fe||!n&&!i.options.sort&&!a)){var u=S(Me,!1,!0,!0);$e.forEach(function(t){t!==Me&&(j(t,u),o.appendChild(t))}),Fe=!0}if(!n)if(Fe||ht(),$e.length>1){var l=Re;i._showClone(e),i.options.animation&&!Re&&l&&Le.forEach(function(t){i.addAnimationState({target:t,rect:Ie}),t.fromRect=Ie,t.thisAnimationDuration=null})}else i._showClone(e)}},dragOverAnimationCapture:function(t){var e=t.dragRect,n=t.isOwner,r=t.activeSortable;if($e.forEach(function(t){t.thisAnimationDuration=null}),r.options.animation&&!n&&r.multiDrag.isMultiDrag){Ie=o({},e);var i=w(Me,!0);Ie.top-=i.f,Ie.left-=i.e}},dragOverAnimationComplete:function(){Fe&&(Fe=!1,ht())},drop:function(t){var e=t.originalEvent,n=t.rootEl,r=t.parentEl,i=t.sortable,o=t.dispatchSortableEvent,a=t.oldIndex,s=t.putSortable,u=s||this.sortable;if(e){var l=this.options,c=r.children;if(!Be)if(l.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),b(Me,l.selectedClass,!~$e.indexOf(Me)),~$e.indexOf(Me))$e.splice($e.indexOf(Me),1),Ne=null,U({sortable:i,rootEl:n,name:"deselect",targetEl:Me,originalEvt:e});else{if($e.push(Me),U({sortable:i,rootEl:n,name:"select",targetEl:Me,originalEvt:e}),e.shiftKey&&Ne&&i.el.contains(Ne)){var f=A(Ne),d=A(Me);if(~f&&~d&&f!==d){var h,p;for(d>f?(p=f,h=d):(p=d,h=f+1);p<h;p++)~$e.indexOf(c[p])||(b(c[p],l.selectedClass,!0),$e.push(c[p]),U({sortable:i,rootEl:n,name:"select",targetEl:c[p],originalEvt:e}))}}else Ne=Me;De=u}if(Be&&this.isMultiDrag){if((r[Yt].options.sort||r!==n)&&$e.length>1){var g=S(Me),m=A(Me,":not(."+this.options.selectedClass+")");if(!je&&l.animation&&(Me.thisAnimationDuration=null),u.captureAnimationState(),!je&&(l.animation&&(Me.fromRect=g,$e.forEach(function(t){if(t.thisAnimationDuration=null,t!==Me){var e=Fe?S(t):g;t.fromRect=e,u.addAnimationState({target:t,rect:e})}})),ht(),$e.forEach(function(t){c[m]?r.insertBefore(t,c[m]):r.appendChild(t),m++}),a===A(Me))){var v=!1;$e.forEach(function(t){if(t.sortableIndex!==A(t))return void(v=!0)}),v&&o("update")}$e.forEach(function(t){F(t)}),u.animateAll()}De=u}(n===r||s&&"clone"!==s.lastPutMode)&&Le.forEach(function(t){t.parentNode&&t.parentNode.removeChild(t)})}},nullingGlobal:function(){this.isMultiDrag=Be=!1,Le.length=0},destroyGlobal:function(){this._deselectMultiDrag(),g(document,"pointerup",this._deselectMultiDrag),g(document,"mouseup",this._deselectMultiDrag),g(document,"touchend",this._deselectMultiDrag),g(document,"keydown",this._checkKeyDown),g(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(t){if(!(void 0!==Be&&Be||De!==this.sortable||t&&y(t.target,this.options.draggable,this.sortable.el,!1)||t&&0!==t.button))for(;$e.length;){var e=$e[0];b(e,this.options.selectedClass,!1),$e.shift(),U({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:e,originalEvt:t})}},_checkKeyDown:function(t){t.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(t){t.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},o(t,{pluginName:"multiDrag",utils:{select:function(t){var e=t.parentNode[Yt];e&&e.options.multiDrag&&!~$e.indexOf(t)&&(De&&De!==e&&(De.multiDrag._deselectMultiDrag(),De=e),b(t,e.options.selectedClass,!0),$e.push(t))},deselect:function(t){var e=t.parentNode[Yt],n=$e.indexOf(t);e&&e.options.multiDrag&&~n&&(b(t,e.options.selectedClass,!1),$e.splice(n,1))}},eventProperties:function(){var t=this,e=[],n=[];return $e.forEach(function(r){e.push({multiDragElement:r,index:r.sortableIndex});var i;i=Fe&&r!==Me?-1:Fe?A(r,":not(."+t.options.selectedClass+")"):A(r),n.push({multiDragElement:r,index:i})}),{items:l($e),clones:[].concat(Le),oldIndicies:e,newIndicies:n}},optionListeners:{multiDragKey:function(t){return t=t.toLowerCase(),"ctrl"===t?t="Control":t.length>1&&(t=t.charAt(0).toUpperCase()+t.substr(1)),t}}})}function ft(t,e){$e.forEach(function(n,r){var i=e.children[n.sortableIndex+(t?Number(r):0)];i?e.insertBefore(n,i):e.appendChild(n)})}function dt(t,e){Le.forEach(function(n,r){var i=e.children[n.sortableIndex+(t?Number(r):0)];i?e.insertBefore(n,i):e.appendChild(n)})}function ht(){$e.forEach(function(t){t!==Me&&t.parentNode&&t.parentNode.removeChild(t)})}Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"MultiDrag",function(){return ct}),n.d(e,"Sortable",function(){return q}),n.d(e,"Swap",function(){return ut});var pt,gt,mt,vt,yt,bt,_t,wt,xt,kt,St,Ct,Et,Tt,At,Ot,Pt,Nt,Dt,Mt,It,Rt,$t,Lt,jt,Ft,Bt=h(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Vt=h(/Edge/i),zt=h(/firefox/i),Ut=h(/safari/i)&&!h(/chrome/i)&&!h(/android/i),Ht=h(/iP(ad|od|hone)/i),qt=h(/chrome/i)&&h(/android/i),Wt={capture:!1,passive:!1},Gt=/\s+/g,Yt="Sortable"+(new Date).getTime(),Kt=[],Xt={initializeByDefault:!0},Jt={mount:function(t){for(var e in Xt)!Xt.hasOwnProperty(e)||e in t||(t[e]=Xt[e]);Kt.push(t)},pluginEvent:function(t,e,n){var r=this;this.eventCanceled=!1,n.cancel=function(){r.eventCanceled=!0};var i=t+"Global";Kt.forEach(function(r){e[r.pluginName]&&(e[r.pluginName][i]&&e[r.pluginName][i](a({sortable:e},n)),e.options[r.pluginName]&&e[r.pluginName][t]&&e[r.pluginName][t](a({sortable:e},n)))})},initializePlugins:function(t,e,n,r){Kt.forEach(function(r){var i=r.pluginName;if(t.options[i]||r.initializeByDefault){var a=new r(t,e,t.options);a.sortable=t,a.options=t.options,t[i]=a,o(n,a.defaults)}});for(var i in t.options)if(t.options.hasOwnProperty(i)){var a=this.modifyOption(t,i,t.options[i]);void 0!==a&&(t.options[i]=a)}},getEventProperties:function(t,e){var n={};return Kt.forEach(function(r){"function"==typeof r.eventProperties&&o(n,r.eventProperties.call(e[r.pluginName],t))}),n},modifyOption:function(t,e,n){var r;return Kt.forEach(function(i){t[i.pluginName]&&i.optionListeners&&"function"==typeof i.optionListeners[e]&&(r=i.optionListeners[e].call(t[i.pluginName],n))}),r}},Qt=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.evt,i=u(n,["evt"]);Jt.pluginEvent.bind(q)(t,e,a({dragEl:gt,parentEl:mt,ghostEl:vt,rootEl:yt,nextEl:bt,lastDownEl:_t,cloneEl:wt,cloneHidden:xt,dragStarted:Rt,putSortable:At,activeSortable:q.active,originalEvent:r,oldIndex:kt,oldDraggableIndex:Ct,newIndex:St,newDraggableIndex:Et,hideGhostForTarget:me,unhideGhostForTarget:ve,cloneNowHidden:function(){xt=!0},cloneNowShown:function(){xt=!1},dispatchSortableEvent:function(t){H({sortable:e,name:t,originalEvent:r})}},i))},Zt=!1,te=!1,ee=[],ne=!1,re=!1,ie=[],oe=!1,ae=[],se="undefined"!=typeof document,ue=Ht,le=Vt||Bt?"cssFloat":"float",ce=se&&!qt&&!Ht&&"draggable"in document.createElement("div"),fe=function(){if(se){if(Bt)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto","auto"===t.style.pointerEvents}}(),de=function(t,e){var n=_(t),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),i=E(t,0,e),o=E(t,1,e),a=i&&_(i),s=o&&_(o),u=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+S(i).width,l=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+S(o).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(i&&a.float&&"none"!==a.float){var c="left"===a.float?"left":"right";return!o||"both"!==s.clear&&s.clear!==c?"horizontal":"vertical"}return i&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||u>=r&&"none"===n[le]||o&&"none"===n[le]&&u+l>r)?"vertical":"horizontal"},he=function(t,e,n){var r=n?t.left:t.top,i=n?t.right:t.bottom,o=n?t.width:t.height,a=n?e.left:e.top,s=n?e.right:e.bottom,u=n?e.width:e.height;return r===a||i===s||r+o/2===a+u/2},pe=function(t,e){var n;return ee.some(function(r){if(!T(r)){var i=S(r),o=r[Yt].options.emptyInsertThreshold,a=t>=i.left-o&&t<=i.right+o,s=e>=i.top-o&&e<=i.bottom+o;return o&&a&&s?n=r:void 0}}),n},ge=function(t){function e(t,n){return function(r,i,o,a){var s=r.options.group.name&&i.options.group.name&&r.options.group.name===i.options.group.name;if(null==t&&(n||s))return!0;if(null==t||!1===t)return!1;if(n&&"clone"===t)return t;if("function"==typeof t)return e(t(r,i,o,a),n)(r,i,o,a);var u=(n?r:i).options.group.name;return!0===t||"string"==typeof t&&t===u||t.join&&t.indexOf(u)>-1}}var n={},i=t.group;i&&"object"==r(i)||(i={name:i}),n.name=i.name,n.checkPull=e(i.pull,!0),n.checkPut=e(i.put),n.revertClone=i.revertClone,t.group=n},me=function(){!fe&&vt&&_(vt,"display","none")},ve=function(){!fe&&vt&&_(vt,"display","")};se&&document.addEventListener("click",function(t){if(te)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),te=!1,!1},!0);var ye=function(t){if(gt){t=t.touches?t.touches[0]:t;var e=pe(t.clientX,t.clientY);if(e){var n={};for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);n.target=n.rootEl=e,n.preventDefault=void 0,n.stopPropagation=void 0,e[Yt]._onDragOver(n)}}},be=function(t){gt&&gt.parentNode[Yt]._isOutsideThisEl(t.target)};q.prototype={constructor:q,_isOutsideThisEl:function(t){this.el.contains(t)||t===this.el||($t=null)},_getDirection:function(t,e){return"function"==typeof this.options.direction?this.options.direction.call(this,t,e,gt):this.options.direction},_onTapStart:function(t){if(t.cancelable){var e=this,n=this.el,r=this.options,i=r.preventOnFilter,o=t.type,a=t.touches&&t.touches[0]||t.pointerType&&"touch"===t.pointerType&&t,s=(a||t).target,u=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||s,l=r.filter;if(tt(n),!gt&&!(/mousedown|pointerdown/.test(o)&&0!==t.button||r.disabled||u.isContentEditable||(s=y(s,r.draggable,n,!1))&&s.animated||_t===s)){if(kt=A(s),Ct=A(s,r.draggable),"function"==typeof l){if(l.call(this,t,s,this))return H({sortable:e,rootEl:u,name:"filter",targetEl:s,toEl:n,fromEl:n}),Qt("filter",e,{evt:t}),void(i&&t.cancelable&&t.preventDefault())}else if(l&&(l=l.split(",").some(function(r){if(r=y(u,r.trim(),n,!1))return H({sortable:e,rootEl:r,name:"filter",targetEl:s,fromEl:n,toEl:n}),Qt("filter",e,{evt:t}),!0})))return void(i&&t.cancelable&&t.preventDefault());r.handle&&!y(u,r.handle,n,!1)||this._prepareDragStart(t,a,s)}}},_prepareDragStart:function(t,e,n){var r,i=this,o=i.el,a=i.options,s=o.ownerDocument;if(n&&!gt&&n.parentNode===o){var u=S(n);if(yt=o,gt=n,mt=gt.parentNode,bt=gt.nextSibling,_t=n,Tt=a.group,q.dragged=gt,Ot={target:gt,clientX:(e||t).clientX,clientY:(e||t).clientY},Mt=Ot.clientX-u.left,It=Ot.clientY-u.top,this._lastX=(e||t).clientX,this._lastY=(e||t).clientY,gt.style["will-change"]="all",r=function(){if(Qt("delayEnded",i,{evt:t}),q.eventCanceled)return void i._onDrop();i._disableDelayedDragEvents(),!zt&&i.nativeDraggable&&(gt.draggable=!0),i._triggerDragStart(t,e),H({sortable:i,name:"choose",originalEvent:t}),b(gt,a.chosenClass,!0)},a.ignore.split(",").forEach(function(t){x(gt,t.trim(),Y)}),p(s,"dragover",ye),p(s,"mousemove",ye),p(s,"touchmove",ye),p(s,"mouseup",i._onDrop),p(s,"touchend",i._onDrop),p(s,"touchcancel",i._onDrop),zt&&this.nativeDraggable&&(this.options.touchStartThreshold=4,gt.draggable=!0),Qt("delayStart",this,{evt:t}),!a.delay||a.delayOnTouchOnly&&!e||this.nativeDraggable&&(Vt||Bt))r();else{if(q.eventCanceled)return void this._onDrop();p(s,"mouseup",i._disableDelayedDrag),p(s,"touchend",i._disableDelayedDrag),p(s,"touchcancel",i._disableDelayedDrag),p(s,"mousemove",i._delayedDragTouchMoveHandler),p(s,"touchmove",i._delayedDragTouchMoveHandler),a.supportPointer&&p(s,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(r,a.delay)}}},_delayedDragTouchMoveHandler:function(t){var e=t.touches?t.touches[0]:t;Math.max(Math.abs(e.clientX-this._lastX),Math.abs(e.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){gt&&Y(gt),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;g(t,"mouseup",this._disableDelayedDrag),g(t,"touchend",this._disableDelayedDrag),g(t,"touchcancel",this._disableDelayedDrag),g(t,"mousemove",this._delayedDragTouchMoveHandler),g(t,"touchmove",this._delayedDragTouchMoveHandler),g(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,e){e=e||"touch"==t.pointerType&&t,!this.nativeDraggable||e?this.options.supportPointer?p(document,"pointermove",this._onTouchMove):e?p(document,"touchmove",this._onTouchMove):p(document,"mousemove",this._onTouchMove):(p(gt,"dragend",this),p(yt,"dragstart",this._onDragStart));try{document.selection?et(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch(t){}},_dragStarted:function(t,e){if(Zt=!1,yt&&gt){Qt("dragStarted",this,{evt:e}),this.nativeDraggable&&p(document,"dragover",be);var n=this.options;!t&&b(gt,n.dragClass,!1),b(gt,n.ghostClass,!0),q.active=this,t&&this._appendGhost(),H({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if(Pt){this._lastX=Pt.clientX,this._lastY=Pt.clientY,me();for(var t=document.elementFromPoint(Pt.clientX,Pt.clientY),e=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(Pt.clientX,Pt.clientY))!==e;)e=t;if(gt.parentNode[Yt]._isOutsideThisEl(t),e)do{if(e[Yt]){if(e[Yt]._onDragOver({clientX:Pt.clientX,clientY:Pt.clientY,target:t,rootEl:e})&&!this.options.dragoverBubble)break}t=e}while(e=e.parentNode);ve()}},_onTouchMove:function(t){if(Ot){var e=this.options,n=e.fallbackTolerance,r=e.fallbackOffset,i=t.touches?t.touches[0]:t,o=vt&&w(vt,!0),a=vt&&o&&o.a,s=vt&&o&&o.d,u=ue&&Ft&&O(Ft),l=(i.clientX-Ot.clientX+r.x)/(a||1)+(u?u[0]-ie[0]:0)/(a||1),c=(i.clientY-Ot.clientY+r.y)/(s||1)+(u?u[1]-ie[1]:0)/(s||1);if(!q.active&&!Zt){if(n&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))<n)return;this._onDragStart(t,!0)}if(vt){o?(o.e+=l-(Nt||0),o.f+=c-(Dt||0)):o={a:1,b:0,c:0,d:1,e:l,f:c};var f="matrix(".concat(o.a,",").concat(o.b,",").concat(o.c,",").concat(o.d,",").concat(o.e,",").concat(o.f,")");_(vt,"webkitTransform",f),_(vt,"mozTransform",f),_(vt,"msTransform",f),_(vt,"transform",f),Nt=l,Dt=c,Pt=i}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!vt){var t=this.options.fallbackOnBody?document.body:yt,e=S(gt,!0,ue,!0,t),n=this.options;if(ue){for(Ft=t;"static"===_(Ft,"position")&&"none"===_(Ft,"transform")&&Ft!==document;)Ft=Ft.parentNode;Ft!==document.body&&Ft!==document.documentElement?(Ft===document&&(Ft=k()),e.top+=Ft.scrollTop,e.left+=Ft.scrollLeft):Ft=k(),ie=O(Ft)}vt=gt.cloneNode(!0),b(vt,n.ghostClass,!1),b(vt,n.fallbackClass,!0),b(vt,n.dragClass,!0),_(vt,"transition",""),_(vt,"transform",""),_(vt,"box-sizing","border-box"),_(vt,"margin",0),_(vt,"top",e.top),_(vt,"left",e.left),_(vt,"width",e.width),_(vt,"height",e.height),_(vt,"opacity","0.8"),_(vt,"position",ue?"absolute":"fixed"),_(vt,"zIndex","100000"),_(vt,"pointerEvents","none"),q.ghost=vt,t.appendChild(vt),_(vt,"transform-origin",Mt/parseInt(vt.style.width)*100+"% "+It/parseInt(vt.style.height)*100+"%")}},_onDragStart:function(t,e){var n=this,r=t.dataTransfer,i=n.options;if(Qt("dragStart",this,{evt:t}),q.eventCanceled)return void this._onDrop();Qt("setupClone",this),q.eventCanceled||(wt=L(gt),wt.draggable=!1,wt.style["will-change"]="",this._hideClone(),b(wt,this.options.chosenClass,!1),q.clone=wt),n.cloneId=et(function(){Qt("clone",n),q.eventCanceled||(n.options.removeCloneOnHide||yt.insertBefore(wt,gt),n._hideClone(),H({sortable:n,name:"clone"}))}),!e&&b(gt,i.dragClass,!0),e?(te=!0,n._loopId=setInterval(n._emulateDragOver,50)):(g(document,"mouseup",n._onDrop),g(document,"touchend",n._onDrop),g(document,"touchcancel",n._onDrop),r&&(r.effectAllowed="move",i.setData&&i.setData.call(n,r,gt)),p(document,"drop",n),_(gt,"transform","translateZ(0)")),Zt=!0,n._dragStartId=et(n._dragStarted.bind(n,e,t)),p(document,"selectstart",n),Rt=!0,Ut&&_(document.body,"user-select","none")},_onDragOver:function(t){function e(e,n){Qt(e,w,a({evt:t,isOwner:g,axis:l?"vertical":"horizontal",revert:u,dragRect:o,targetRect:s,canSort:m,fromSortable:v,target:f,completed:r,onMove:function(e,n){return G(yt,c,gt,o,e,S(e),t,n)},changed:i},n))}function n(){e("dragOverAnimationCapture"),w.captureAnimationState(),w!==v&&v.captureAnimationState()}function r(n){return e("dragOverCompleted",{insertion:n}),n&&(g?p._hideClone():p._showClone(w),w!==v&&(b(gt,At?At.options.ghostClass:p.options.ghostClass,!1),b(gt,d.ghostClass,!0)),At!==w&&w!==q.active?At=w:w===q.active&&At&&(At=null),v===w&&(w._ignoreWhileAnimating=f),w.animateAll(function(){e("dragOverAnimationComplete"),w._ignoreWhileAnimating=null}),w!==v&&(v.animateAll(),v._ignoreWhileAnimating=null)),(f===gt&&!gt.animated||f===c&&!f.animated)&&($t=null),d.dragoverBubble||t.rootEl||f===document||(gt.parentNode[Yt]._isOutsideThisEl(t.target),!n&&ye(t)),!d.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),x=!0}function i(){St=A(gt),Et=A(gt,d.draggable),H({sortable:w,name:"change",toEl:c,newIndex:St,newDraggableIndex:Et,originalEvent:t})}var o,s,u,l,c=this.el,f=t.target,d=this.options,h=d.group,p=q.active,g=Tt===h,m=d.sort,v=At||p,w=this,x=!1;if(!oe){if(void 0!==t.preventDefault&&t.cancelable&&t.preventDefault(),f=y(f,d.draggable,c,!0),e("dragOver"),q.eventCanceled)return x;if(gt.contains(t.target)||f.animated&&f.animatingX&&f.animatingY||w._ignoreWhileAnimating===f)return r(!1);if(te=!1,p&&!d.disabled&&(g?m||(u=!yt.contains(gt)):At===this||(this.lastPutMode=Tt.checkPull(this,p,gt,t))&&h.checkPut(this,p,gt,t))){if(l="vertical"===this._getDirection(t,f),o=S(gt),e("dragOverValid"),q.eventCanceled)return x;if(u)return mt=yt,n(),this._hideClone(),e("revert"),q.eventCanceled||(bt?yt.insertBefore(gt,bt):yt.appendChild(gt)),r(!0);var k=T(c,d.draggable);if(!k||X(t,l,this)&&!k.animated){if(k===gt)return r(!1);if(k&&c===t.target&&(f=k),f&&(s=S(f)),!1!==G(yt,c,gt,o,f,s,t,!!f))return n(),c.appendChild(gt),mt=c,i(),r(!0)}else if(f.parentNode===c){s=S(f);var E,O=0,P=gt.parentNode!==c,N=!he(gt.animated&&gt.toRect||o,f.animated&&f.toRect||s,l),D=l?"top":"left",M=C(f,"top","top")||C(gt,"top","top"),I=M?M.scrollTop:void 0;$t!==f&&(E=s[D],ne=!1,re=!N&&d.invertSwap||P),O=J(t,f,s,l,N?1:d.swapThreshold,null==d.invertedSwapThreshold?d.swapThreshold:d.invertedSwapThreshold,re,$t===f);var R;if(0!==O){var L=A(gt);do{L-=O,R=mt.children[L]}while(R&&("none"===_(R,"display")||R===vt))}if(0===O||R===f)return r(!1);$t=f,Lt=O;var j=f.nextElementSibling,F=!1;F=1===O;var B=G(yt,c,gt,o,f,s,t,F);if(!1!==B)return 1!==B&&-1!==B||(F=1===B),oe=!0,setTimeout(K,30),n(),F&&!j?c.appendChild(gt):f.parentNode.insertBefore(gt,F?j:f),M&&$(M,0,I-M.scrollTop),mt=gt.parentNode,void 0===E||re||(jt=Math.abs(E-S(f)[D])),i(),r(!0)}if(c.contains(gt))return r(!1)}return!1}},_ignoreWhileAnimating:null,_offMoveEvents:function(){g(document,"mousemove",this._onTouchMove),g(document,"touchmove",this._onTouchMove),g(document,"pointermove",this._onTouchMove),g(document,"dragover",ye),g(document,"mousemove",ye),g(document,"touchmove",ye)},_offUpEvents:function(){var t=this.el.ownerDocument;g(t,"mouseup",this._onDrop),g(t,"touchend",this._onDrop),g(t,"pointerup",this._onDrop),g(t,"touchcancel",this._onDrop),g(document,"selectstart",this)},_onDrop:function(t){var e=this.el,n=this.options;if(St=A(gt),Et=A(gt,n.draggable),Qt("drop",this,{evt:t}),mt=gt&&gt.parentNode,St=A(gt),Et=A(gt,n.draggable),q.eventCanceled)return void this._nulling();Zt=!1,re=!1,ne=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),nt(this.cloneId),nt(this._dragStartId),this.nativeDraggable&&(g(document,"drop",this),g(e,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Ut&&_(document.body,"user-select",""),_(gt,"transform",""),t&&(Rt&&(t.cancelable&&t.preventDefault(),!n.dropBubble&&t.stopPropagation()),vt&&vt.parentNode&&vt.parentNode.removeChild(vt),(yt===mt||At&&"clone"!==At.lastPutMode)&&wt&&wt.parentNode&&wt.parentNode.removeChild(wt),gt&&(this.nativeDraggable&&g(gt,"dragend",this),Y(gt),gt.style["will-change"]="",Rt&&!Zt&&b(gt,At?At.options.ghostClass:this.options.ghostClass,!1),b(gt,this.options.chosenClass,!1),H({sortable:this,name:"unchoose",toEl:mt,newIndex:null,newDraggableIndex:null,originalEvent:t}),yt!==mt?(St>=0&&(H({rootEl:mt,name:"add",toEl:mt,fromEl:yt,originalEvent:t}),H({sortable:this,name:"remove",toEl:mt,originalEvent:t}),H({rootEl:mt,name:"sort",toEl:mt,fromEl:yt,originalEvent:t}),H({sortable:this,name:"sort",toEl:mt,originalEvent:t})),At&&At.save()):St!==kt&&St>=0&&(H({sortable:this,name:"update",toEl:mt,originalEvent:t}),H({sortable:this,name:"sort",toEl:mt,originalEvent:t})),q.active&&(null!=St&&-1!==St||(St=kt,Et=Ct),H({sortable:this,name:"end",toEl:mt,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){Qt("nulling",this),yt=gt=mt=vt=bt=wt=_t=xt=Ot=Pt=Rt=St=Et=kt=Ct=$t=Lt=At=Tt=q.dragged=q.ghost=q.clone=q.active=null,ae.forEach(function(t){t.checked=!0}),ae.length=Nt=Dt=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":gt&&(this._onDragOver(t),W(t));break;case"selectstart":t.preventDefault()}},toArray:function(){for(var t,e=[],n=this.el.children,r=0,i=n.length,o=this.options;r<i;r++)t=n[r],y(t,o.draggable,this.el,!1)&&e.push(t.getAttribute(o.dataIdAttr)||Z(t));return e},sort:function(t){var e={},n=this.el;this.toArray().forEach(function(t,r){var i=n.children[r];y(i,this.options.draggable,n,!1)&&(e[t]=i)},this),t.forEach(function(t){e[t]&&(n.removeChild(e[t]),n.appendChild(e[t]))})},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,e){return y(t,e||this.options.draggable,this.el,!1)},option:function(t,e){var n=this.options;if(void 0===e)return n[t];var r=Jt.modifyOption(this,t,e);n[t]=void 0!==r?r:e,"group"===t&&ge(n)},destroy:function(){Qt("destroy",this);var t=this.el;t[Yt]=null,g(t,"mousedown",this._onTapStart),g(t,"touchstart",this._onTapStart),g(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(g(t,"dragover",this),g(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(t){t.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),ee.splice(ee.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!xt){if(Qt("hideClone",this),q.eventCanceled)return;_(wt,"display","none"),this.options.removeCloneOnHide&&wt.parentNode&&wt.parentNode.removeChild(wt),xt=!0}},_showClone:function(t){if("clone"!==t.lastPutMode)return void this._hideClone();if(xt){if(Qt("showClone",this),q.eventCanceled)return;yt.contains(gt)&&!this.options.group.revertClone?yt.insertBefore(wt,gt):bt?yt.insertBefore(wt,bt):yt.appendChild(wt),this.options.group.revertClone&&this.animate(gt,wt),_(wt,"display",""),xt=!1}}},se&&p(document,"touchmove",function(t){(q.active||Zt)&&t.cancelable&&t.preventDefault()}),q.utils={on:p,off:g,css:_,find:x,is:function(t,e){return!!y(t,e,t,!1)},extend:D,throttle:I,closest:y,toggleClass:b,clone:L,index:A,nextTick:et,cancelNextTick:nt,detectDirection:de,getChild:E},q.get=function(t){return t[Yt]},q.mount=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];e[0].constructor===Array&&(e=e[0]),e.forEach(function(t){if(!t.prototype||!t.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(t));t.utils&&(q.utils=a({},q.utils,t.utils)),Jt.mount(t)})},q.create=function(t,e){return new q(t,e)},q.version="1.10.2";var _e,we,xe,ke,Se,Ce,Ee=[],Te=!1,Ae=I(function(t,e,n,r){if(e.scroll){var i,o=(t.touches?t.touches[0]:t).clientX,a=(t.touches?t.touches[0]:t).clientY,s=e.scrollSensitivity,u=e.scrollSpeed,l=k(),c=!1;we!==n&&(we=n,it(),_e=e.scroll,i=e.scrollFn,!0===_e&&(_e=N(n,!0)));var f=0,d=_e;do{var h=d,p=S(h),g=p.top,m=p.bottom,v=p.left,y=p.right,b=p.width,w=p.height,x=void 0,C=void 0,E=h.scrollWidth,T=h.scrollHeight,A=_(h),O=h.scrollLeft,P=h.scrollTop;h===l?(x=b<E&&("auto"===A.overflowX||"scroll"===A.overflowX||"visible"===A.overflowX),C=w<T&&("auto"===A.overflowY||"scroll"===A.overflowY||"visible"===A.overflowY)):(x=b<E&&("auto"===A.overflowX||"scroll"===A.overflowX),C=w<T&&("auto"===A.overflowY||"scroll"===A.overflowY));var D=x&&(Math.abs(y-o)<=s&&O+b<E)-(Math.abs(v-o)<=s&&!!O),M=C&&(Math.abs(m-a)<=s&&P+w<T)-(Math.abs(g-a)<=s&&!!P);if(!Ee[f])for(var I=0;I<=f;I++)Ee[I]||(Ee[I]={});Ee[f].vx==D&&Ee[f].vy==M&&Ee[f].el===h||(Ee[f].el=h,Ee[f].vx=D,Ee[f].vy=M,clearInterval(Ee[f].pid),0==D&&0==M||(c=!0,Ee[f].pid=setInterval(function(){r&&0===this.layer&&q.active._onTouchMove(Se);var e=Ee[this.layer].vy?Ee[this.layer].vy*u:0,n=Ee[this.layer].vx?Ee[this.layer].vx*u:0;"function"==typeof i&&"continue"!==i.call(q.dragged.parentNode[Yt],n,e,t,Se,Ee[this.layer].el)||$(Ee[this.layer].el,n,e)}.bind({layer:f}),24))),f++}while(e.bubbleScroll&&d!==l&&(d=N(d,!1)));Te=c}},30),Oe=function(t){var e=t.originalEvent,n=t.putSortable,r=t.dragEl,i=t.activeSortable,o=t.dispatchSortableEvent,a=t.hideGhostForTarget,s=t.unhideGhostForTarget;if(e){var u=n||i;a();var l=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e,c=document.elementFromPoint(l.clientX,l.clientY);s(),u&&!u.el.contains(c)&&(o("spill"),this.onSpill({dragEl:r,putSortable:n}))}};at.prototype={startIndex:null,dragStart:function(t){var e=t.oldDraggableIndex;this.startIndex=e},onSpill:function(t){var e=t.dragEl,n=t.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var r=E(this.sortable.el,this.startIndex,this.options);r?this.sortable.el.insertBefore(e,r):this.sortable.el.appendChild(e),this.sortable.animateAll(),n&&n.animateAll()},drop:Oe},o(at,{pluginName:"revertOnSpill"}),st.prototype={onSpill:function(t){var e=t.dragEl,n=t.putSortable,r=n||this.sortable;r.captureAnimationState(),e.parentNode&&e.parentNode.removeChild(e),r.animateAll()},drop:Oe},o(st,{pluginName:"removeOnSpill"});var Pe,Ne,De,Me,Ie,Re,$e=[],Le=[],je=!1,Fe=!1,Be=!1;q.mount(new rt),q.mount(st,at),e.default=q},function(t,e,n){(function(t,e){!function(){"use strict";function n(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=e.concat(n);return t.apply(null,i)}}function r(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n}function i(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))}function o(t,e,n,r,i){return t(n,r)?nt.some(n):$(i)&&i(n)?nt.none():e(n,r,i)}function a(t){"@babel/helpers - typeof";return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function l(t,e,n){return l=u()?Reflect.construct:function(t,e,n){var r=[null];r.push.apply(r,e);var i=Function.bind.apply(t,r),o=new i;return n&&s(o,n.prototype),o},l.apply(null,arguments)}function c(t){return f(t)||d(t)||h(t)||g()}function f(t){if(Array.isArray(t))return p(t)}function d(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function h(t,e){if(t){if("string"==typeof t)return p(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(t,e):void 0}}function p(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function g(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function m(t){return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return vx(t,e,r)}}function v(t,e){lx&&lx(t,null);for(var n=e.length;n--;){var r=e[n];if("string"==typeof r){var i=kx(r);i!==r&&(cx(e)||(e[n]=i),r=i)}t[r]=!0}return t}function y(t){var e,n=gx(null);for(e in t)vx(ux,t,[e])&&(n[e]=t[e]);return n}function b(t,e){function n(t){return console.warn("fallback value for",t),null}for(;null!==t;){var r=dx(t,e);if(r){if(r.get)return m(r.get);if("function"==typeof r.value)return m(r.value)}t=fx(t)}return n}function _(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Kx(),e=function(t){return _(t)};if(e.version="2.3.8",e.removed=[],!t||!t.document||9!==t.document.nodeType)return e.isSupported=!1,e;var n=t.document,r=t.document,i=t.DocumentFragment,o=t.HTMLTemplateElement,s=t.Node,u=t.Element,l=t.NodeFilter,f=t.NamedNodeMap,d=void 0===f?t.NamedNodeMap||t.MozNamedAttrMap:f,h=t.HTMLFormElement,p=t.DOMParser,g=t.trustedTypes,m=u.prototype,w=b(m,"cloneNode"),x=b(m,"nextSibling"),k=b(m,"childNodes"),S=b(m,"parentNode");if("function"==typeof o){var C=r.createElement("template");C.content&&C.content.ownerDocument&&(r=C.content.ownerDocument)}var E=Xx(g,n),T=E?E.createHTML(""):"",A=r,O=A.implementation,P=A.createNodeIterator,N=A.createDocumentFragment,D=A.getElementsByTagName,M=n.importNode,I={};try{I=y(r).documentMode?r.documentMode:{}}catch(t){}var R={};e.isSupported="function"==typeof S&&O&&void 0!==O.createHTMLDocument&&9!==I;var $,L,j=Vx,F=zx,B=Ux,V=Hx,z=Wx,U=Gx,H=qx,q=null,W=v({},[].concat(c(Px),c(Nx),c(Dx),c(Ix),c($x))),G=null,Y=v({},[].concat(c(Lx),c(jx),c(Fx),c(Bx))),K=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),X=null,J=null,Q=!0,Z=!0,tt=!1,et=!1,nt=!1,rt=!1,it=!1,ot=!1,at=!1,st=!1,ut=!0,lt=!0,ct=!1,ft={},dt=null,ht=v({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),pt=null,gt=v({},["audio","video","img","source","image","track"]),mt=null,vt=v({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),yt="http://www.w3.org/1998/Math/MathML",bt="http://www.w3.org/2000/svg",_t="http://www.w3.org/1999/xhtml",wt=_t,xt=!1,kt=["application/xhtml+xml","text/html"],St=null,Ct=r.createElement("form"),Et=function(t){return t instanceof RegExp||t instanceof Function},Tt=function(t){St&&St===t||(t&&"object"===a(t)||(t={}),t=y(t),q="ALLOWED_TAGS"in t?v({},t.ALLOWED_TAGS):W,G="ALLOWED_ATTR"in t?v({},t.ALLOWED_ATTR):Y,mt="ADD_URI_SAFE_ATTR"in t?v(y(vt),t.ADD_URI_SAFE_ATTR):vt,pt="ADD_DATA_URI_TAGS"in t?v(y(gt),t.ADD_DATA_URI_TAGS):gt,dt="FORBID_CONTENTS"in t?v({},t.FORBID_CONTENTS):ht,X="FORBID_TAGS"in t?v({},t.FORBID_TAGS):{},J="FORBID_ATTR"in t?v({},t.FORBID_ATTR):{},ft="USE_PROFILES"in t&&t.USE_PROFILES,Q=!1!==t.ALLOW_ARIA_ATTR,Z=!1!==t.ALLOW_DATA_ATTR,tt=t.ALLOW_UNKNOWN_PROTOCOLS||!1,et=t.SAFE_FOR_TEMPLATES||!1,nt=t.WHOLE_DOCUMENT||!1,ot=t.RETURN_DOM||!1,at=t.RETURN_DOM_FRAGMENT||!1,st=t.RETURN_TRUSTED_TYPE||!1,it=t.FORCE_BODY||!1,ut=!1!==t.SANITIZE_DOM,lt=!1!==t.KEEP_CONTENT,ct=t.IN_PLACE||!1,H=t.ALLOWED_URI_REGEXP||H,wt=t.NAMESPACE||_t,t.CUSTOM_ELEMENT_HANDLING&&Et(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(K.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&Et(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(K.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(K.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),$=$=-1===kt.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,L="application/xhtml+xml"===$?function(t){return t}:kx,et&&(Z=!1),at&&(ot=!0),ft&&(q=v({},c($x)),G=[],!0===ft.html&&(v(q,Px),v(G,Lx)),!0===ft.svg&&(v(q,Nx),v(G,jx),v(G,Bx)),!0===ft.svgFilters&&(v(q,Dx),v(G,jx),v(G,Bx)),!0===ft.mathMl&&(v(q,Ix),v(G,Fx),v(G,Bx))),t.ADD_TAGS&&(q===W&&(q=y(q)),v(q,t.ADD_TAGS)),t.ADD_ATTR&&(G===Y&&(G=y(G)),v(G,t.ADD_ATTR)),t.ADD_URI_SAFE_ATTR&&v(mt,t.ADD_URI_SAFE_ATTR),t.FORBID_CONTENTS&&(dt===ht&&(dt=y(dt)),v(dt,t.FORBID_CONTENTS)),lt&&(q["#text"]=!0),nt&&v(q,["html","head","body"]),q.table&&(v(q,["tbody"]),delete X.tbody),hx&&hx(t),St=t)},At=v({},["mi","mo","mn","ms","mtext"]),Ot=v({},["foreignobject","desc","title","annotation-xml"]),Pt=v({},["title","style","font","a","script"]),Nt=v({},Nx);v(Nt,Dx),v(Nt,Mx);var Dt=v({},Ix);v(Dt,Rx);var Mt=function(t){var e=S(t);e&&e.tagName||(e={namespaceURI:_t,tagName:"template"});var n=kx(t.tagName),r=kx(e.tagName);return t.namespaceURI===bt?e.namespaceURI===_t?"svg"===n:e.namespaceURI===yt?"svg"===n&&("annotation-xml"===r||At[r]):Boolean(Nt[n]):t.namespaceURI===yt?e.namespaceURI===_t?"math"===n:e.namespaceURI===bt?"math"===n&&Ot[r]:Boolean(Dt[n]):t.namespaceURI===_t&&(!(e.namespaceURI===bt&&!Ot[r])&&(!(e.namespaceURI===yt&&!At[r])&&(!Dt[n]&&(Pt[n]||!Nt[n]))))},It=function(t){xx(e.removed,{element:t});try{t.parentNode.removeChild(t)}catch(e){try{t.outerHTML=T}catch(e){t.remove()}}},Rt=function(t,n){try{xx(e.removed,{attribute:n.getAttributeNode(t),from:n})}catch(t){xx(e.removed,{attribute:null,from:n})}if(n.removeAttribute(t),"is"===t&&!G[t])if(ot||at)try{It(n)}catch(t){}else try{n.setAttribute(t,"")}catch(t){}},$t=function(t){var e,n;if(it)t="<remove></remove>"+t;else{var i=Sx(t,/^[\r\n\t ]+/);n=i&&i[0]}"application/xhtml+xml"===$&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");var o=E?E.createHTML(t):t;if(wt===_t)try{e=(new p).parseFromString(o,$)}catch(t){}if(!e||!e.documentElement){e=O.createDocument(wt,"template",null);try{e.documentElement.innerHTML=xt?"":o}catch(t){}}var a=e.body||e.documentElement;return t&&n&&a.insertBefore(r.createTextNode(n),a.childNodes[0]||null),wt===_t?D.call(e,nt?"html":"body")[0]:nt?e.documentElement:a},Lt=function(t){return P.call(t.ownerDocument||t,t,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT,null,!1)},jt=function(t){return t instanceof h&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||!(t.attributes instanceof d)||"function"!=typeof t.removeAttribute||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore)},Ft=function(t){return"object"===a(s)?t instanceof s:t&&"object"===a(t)&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},Bt=function(t,n,r){R[t]&&_x(R[t],function(t){t.call(e,n,r,St)})},Vt=function(t){var n;if(Bt("beforeSanitizeElements",t,null),jt(t))return It(t),!0;if(Ax(/[\u0080-\uFFFF]/,t.nodeName))return It(t),!0;var r=L(t.nodeName);if(Bt("uponSanitizeElement",t,{tagName:r,allowedTags:q}),t.hasChildNodes()&&!Ft(t.firstElementChild)&&(!Ft(t.content)||!Ft(t.content.firstElementChild))&&Ax(/<[/\w]/g,t.innerHTML)&&Ax(/<[/\w]/g,t.textContent))return It(t),!0;if("select"===r&&Ax(/<template/i,t.innerHTML))return It(t),!0;if(!q[r]||X[r]){if(!X[r]&&Ut(r)){if(K.tagNameCheck instanceof RegExp&&Ax(K.tagNameCheck,r))return!1;if(K.tagNameCheck instanceof Function&&K.tagNameCheck(r))return!1}if(lt&&!dt[r]){var i=S(t)||t.parentNode,o=k(t)||t.childNodes;if(o&&i)for(var a=o.length,s=a-1;s>=0;--s)i.insertBefore(w(o[s],!0),x(t))}return It(t),!0}return t instanceof u&&!Mt(t)?(It(t),!0):"noscript"!==r&&"noembed"!==r||!Ax(/<\/no(script|embed)/i,t.innerHTML)?(et&&3===t.nodeType&&(n=t.textContent,n=Cx(n,j," "),n=Cx(n,F," "),t.textContent!==n&&(xx(e.removed,{element:t.cloneNode()}),t.textContent=n)),Bt("afterSanitizeElements",t,null),!1):(It(t),!0)},zt=function(t,e,n){if(ut&&("id"===e||"name"===e)&&(n in r||n in Ct))return!1;if(Z&&!J[e]&&Ax(B,e));else if(Q&&Ax(V,e));else if(!G[e]||J[e]){if(!(Ut(t)&&(K.tagNameCheck instanceof RegExp&&Ax(K.tagNameCheck,t)||K.tagNameCheck instanceof Function&&K.tagNameCheck(t))&&(K.attributeNameCheck instanceof RegExp&&Ax(K.attributeNameCheck,e)||K.attributeNameCheck instanceof Function&&K.attributeNameCheck(e))||"is"===e&&K.allowCustomizedBuiltInElements&&(K.tagNameCheck instanceof RegExp&&Ax(K.tagNameCheck,n)||K.tagNameCheck instanceof Function&&K.tagNameCheck(n))))return!1}else if(mt[e]);else if(Ax(H,Cx(n,U,"")));else if("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==Ex(n,"data:")||!pt[t]){if(tt&&!Ax(z,Cx(n,U,"")));else if(n)return!1}else;return!0},Ut=function(t){return t.indexOf("-")>0},Ht=function(t){var n,r,i,o;Bt("beforeSanitizeAttributes",t,null);var a=t.attributes;if(a){var s={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:G};for(o=a.length;o--;){n=a[o];var u=n,l=u.name,c=u.namespaceURI;if(r="value"===l?n.value:Tx(n.value),i=L(l),s.attrName=i,s.attrValue=r,s.keepAttr=!0,s.forceKeepAttr=void 0,Bt("uponSanitizeAttribute",t,s),r=s.attrValue,!s.forceKeepAttr&&(Rt(l,t),s.keepAttr))if(Ax(/\/>/i,r))Rt(l,t);else{et&&(r=Cx(r,j," "),r=Cx(r,F," "));var f=L(t.nodeName);if(zt(f,i,r))try{c?t.setAttributeNS(c,l,r):t.setAttribute(l,r),wx(e.removed)}catch(t){}}}Bt("afterSanitizeAttributes",t,null)}},qt=function t(e){var n,r=Lt(e);for(Bt("beforeSanitizeShadowDOM",e,null);n=r.nextNode();)Bt("uponSanitizeShadowNode",n,null),Vt(n)||(n.content instanceof i&&t(n.content),Ht(n));Bt("afterSanitizeShadowDOM",e,null)};return e.sanitize=function(r,o){var u,l,c,f,d;if(xt=!r,xt&&(r="\x3c!--\x3e"),"string"!=typeof r&&!Ft(r)){if("function"!=typeof r.toString)throw Ox("toString is not a function");if("string"!=typeof(r=r.toString()))throw Ox("dirty is not a string, aborting")}if(!e.isSupported){if("object"===a(t.toStaticHTML)||"function"==typeof t.toStaticHTML){if("string"==typeof r)return t.toStaticHTML(r);if(Ft(r))return t.toStaticHTML(r.outerHTML)}return r}if(rt||Tt(o),e.removed=[],"string"==typeof r&&(ct=!1),ct){if(r.nodeName){var h=L(r.nodeName);if(!q[h]||X[h])throw Ox("root node is forbidden and cannot be sanitized in-place")}}else if(r instanceof s)u=$t("\x3c!----\x3e"),l=u.ownerDocument.importNode(r,!0),1===l.nodeType&&"BODY"===l.nodeName?u=l:"HTML"===l.nodeName?u=l:u.appendChild(l);else{if(!ot&&!et&&!nt&&-1===r.indexOf("<"))return E&&st?E.createHTML(r):r;if(!(u=$t(r)))return ot?null:st?T:""}u&&it&&It(u.firstChild);for(var p=Lt(ct?r:u);c=p.nextNode();)3===c.nodeType&&c===f||Vt(c)||(c.content instanceof i&&qt(c.content),Ht(c),f=c);if(f=null,ct)return r;if(ot){if(at)for(d=N.call(u.ownerDocument);u.firstChild;)d.appendChild(u.firstChild);else d=u;return G.shadowroot&&(d=M.call(n,d,!0)),d}var g=nt?u.outerHTML:u.innerHTML;return nt&&q["!doctype"]&&u.ownerDocument&&u.ownerDocument.doctype&&u.ownerDocument.doctype.name&&Ax(Yx,u.ownerDocument.doctype.name)&&(g="<!DOCTYPE "+u.ownerDocument.doctype.name+">\n"+g),et&&(g=Cx(g,j," "),g=Cx(g,F," ")),E&&st?E.createHTML(g):g},e.setConfig=function(t){Tt(t),rt=!0},e.clearConfig=function(){St=null,rt=!1},e.isValidAttribute=function(t,e,n){St||Tt({});var r=L(t),i=L(e);return zt(r,i,n)},e.addHook=function(t,e){"function"==typeof e&&(R[t]=R[t]||[],xx(R[t],e))},e.removeHook=function(t){if(R[t])return wx(R[t])},e.removeHooks=function(t){R[t]&&(R[t]=[])},e.removeAllHooks=function(){R={}},e}function w(t,e,n){var r=e.backstage.shared,i=function(t){switch(t){case"bc-bc":return Yw;case"tc-tc":return Gw;case"tc-bc":return Rc;case"bc-tc":default:return $c}},o=function(t){t.length>0&&ht(t,function(e,n){0===n?e.moveRel(null,"banner"):e.moveRel(t[n-1].getEl(),"bc-tc")})};return{open:function(e,o){var a=!e.closeButton&&e.timeout&&(e.timeout>0||e.timeout<0),s=function(){o(),$w.hide(l)},u=xl(hk.sketch({text:e.text,level:ut(["success","error","warning","warn","info"],e.type)?e.type:void 0,progress:!0===e.progressBar,icon:nt.from(e.icon),closeButton:!a,onAction:s,iconProvider:r.providers.icons,translationProvider:r.providers.translate})),l=xl($w.sketch(J({dom:{tag:"div",classes:["tox-notifications-container"]},lazySink:r.getSink,fireDismissalEventInstead:{}},r.header.isPositionedAtTop()?{}:{fireRepositionEventInstead:{}})));n.add(l),e.timeout>0&&ex.setTimeout(function(){s()},e.timeout);var c=function(){var e=Qr(_e.fromDom(t.getContentAreaContainer())),n=ti(),r=bc(n.x,e.x,e.right),i=bc(n.y,e.y,e.bottom),o=Math.max(e.right,n.right),a=Math.max(e.bottom,n.bottom);return nt.some(Jr(r,i,o-r,a-i))};return{close:s,moveTo:function(t,e){$w.showAt(l,kl(u),{anchor:{type:"makeshift",x:t,y:e}})},moveRel:function(t,e){var n=kl(u),o={maxHeightFunction:md()};if("banner"!==e&&R(t)){var a=i(e),s={type:"node",root:jn(),node:nt.some(_e.fromDom(t)),overrides:o,layouts:{onRtl:function(){return[a]},onLtr:function(){return[a]}}};$w.showWithinBounds(l,n,{anchor:s},c)}else{var f=J(J({},r.anchors.banner()),{overrides:o});$w.showWithinBounds(l,n,{anchor:f},c)}},text:function(t){hk.updateText(u,t)},settings:e,getEl:function(){return u.element.dom},progressBar:{value:function(t){hk.updateProgress(u,t)}}}},close:function(t){t.close()},reposition:o,getArgs:function(t){return t.settings}}}function x(t,e){var n,r,i,o,a,s,u,l=[],c=[],f=null!==(n=e.document)&&void 0!==n?n:document,d=null!==(r=e.root)&&void 0!==r?r:f,h=_e.fromDom(f),p=_e.fromDom(d.getElementById(null!==(i=e.handle)&&void 0!==i?i:t)),g=function(t){var n=t.raw,r=k$(f);C$(n),t.prevent(),a=n.button,s=n.screenX,u=n.screenY;var i=Qn(p,"cursor");o=_e.fromTag("div",f),Xn(o,{position:"absolute",top:"0",left:"0",width:r.width+"px",height:r.height+"px","z-index":"2147483647",opacity:"0.0001",cursor:i}),Nr(Fn(h),o),c.push(Kf(h,"mousemove",m),Kf(h,"touchmove",m),Kf(h,"mouseup",v),Kf(h,"touchend",v)),e.start(n)},m=function(t){var n=t.raw;if(C$(n),n.button!==a)return v(t);n.deltaX=n.screenX-s,n.deltaY=n.screenY-u,t.prevent(),e.drag(n)},v=function(t){C$(t.raw),ht(c,function(t){return t.unbind()}),c=[],$r(o),e.stop&&e.stop(t.raw)},y=function(){ht(c.concat(l),function(t){return t.unbind()}),c=[],l=[],R(o)&&$r(o)};return l.push(Kf(p,"mousedown",g),Kf(p,"touchstart",g)),{destroy:y}}function k(){var t=[],e=-1,n=function(n){var r=t.splice(++e);return t.push(n),{state:n,removed:r}},r=function(){if(o())return t[--e]},i=function(){if(a())return t[++e]},o=function(){return e>0},a=function(){return-1!==e&&e<t.length-1};return{data:t,add:n,undo:r,redo:i,canUndo:o,canRedo:a}}var S=function(t){var e=typeof t;return null===t?"null":"object"===e&&(Array.prototype.isPrototypeOf(t)||t.constructor&&"Array"===t.constructor.name)?"array":"object"===e&&(String.prototype.isPrototypeOf(t)||t.constructor&&"String"===t.constructor.name)?"string":e},C=function(t){return function(e){return S(e)===t}},E=function(t){return function(e){return typeof e===t}},T=function(t){return function(e){return t===e}},A=C("string"),O=C("object"),P=C("array"),N=T(null),D=E("boolean"),M=T(void 0),I=function(t){return null===t||void 0===t},R=function(t){return!I(t)},$=E("function"),L=E("number"),j=function(t,e){if(P(t)){for(var n=0,r=t.length;n<r;++n)if(!e(t[n]))return!1;return!0}return!1},F=function(){},B=function(t){return function(){return t()}},V=function(t,e){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return t(e.apply(null,n))}},z=function(t,e){return function(n){return t(e(n))}},U=function(t){return function(){return t}},H=function(t){return t},q=function(t,e){return t===e},W=function(t){return function(e){return!t(e)}},G=function(t){return function(){throw new Error(t)}},Y=U(!1),K=U(!0),X=tinymce.util.Tools.resolve("tinymce.ThemeManager"),J=function(){return J=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},J.apply(this,arguments)},Q=function(){return Z},Z=function(){var t=function(t){return t()},e=H;return{fold:function(t,e){return t()},isSome:Y,isNone:K,getOr:e,getOrThunk:t,getOrDie:function(t){throw new Error(t||"error: getOrDie called on none.")},getOrNull:U(null),getOrUndefined:U(void 0),or:e,orThunk:t,map:Q,each:F,bind:Q,exists:Y,forall:K,filter:function(){return Q()},toArray:function(){return[]},toString:U("none()")}}(),tt=function(t){var e=U(t),n=function(){return i},r=function(e){return e(t)},i={fold:function(e,n){return n(t)},isSome:K,isNone:Y,getOr:e,getOrThunk:e,getOrDie:e,getOrNull:e,getOrUndefined:e,or:n,orThunk:n,map:function(e){return tt(e(t))},each:function(e){e(t)},bind:r,exists:r,forall:r,filter:function(e){return e(t)?i:Z},toArray:function(){return[t]},toString:function(){return"some("+t+")"}};return i},et=function(t){return null===t||void 0===t?Z:tt(t)},nt={some:tt,none:Q,from:et},rt=Array.prototype.slice,it=Array.prototype.indexOf,ot=Array.prototype.push,at=function(t,e){return it.call(t,e)},st=function(t,e){var n=at(t,e);return-1===n?nt.none():nt.some(n)},ut=function(t,e){return at(t,e)>-1},lt=function(t,e){for(var n=0,r=t.length;n<r;n++){if(e(t[n],n))return!0}return!1},ct=function(t,e){for(var n=[],r=0;r<t;r++)n.push(e(r));return n},ft=function(t,e){for(var n=[],r=0;r<t.length;r+=e){var i=rt.call(t,r,r+e);n.push(i)}return n},dt=function(t,e){for(var n=t.length,r=new Array(n),i=0;i<n;i++){var o=t[i];r[i]=e(o,i)}return r},ht=function(t,e){for(var n=0,r=t.length;n<r;n++){e(t[n],n)}},pt=function(t,e){for(var n=t.length-1;n>=0;n--){e(t[n],n)}},gt=function(t,e){for(var n=[],r=[],i=0,o=t.length;i<o;i++){var a=t[i];(e(a,i)?n:r).push(a)}return{pass:n,fail:r}},mt=function(t,e){for(var n=[],r=0,i=t.length;r<i;r++){var o=t[r];e(o,r)&&n.push(o)}return n},vt=function(t,e,n){return pt(t,function(t,r){n=e(n,t,r)}),n},yt=function(t,e,n){return ht(t,function(t,r){n=e(n,t,r)}),n},bt=function(t,e,n){for(var r=0,i=t.length;r<i;r++){var o=t[r];if(e(o,r))return nt.some(o);if(n(o,r))break}return nt.none()},_t=function(t,e){return bt(t,e,Y)},wt=function(t,e){for(var n=0,r=t.length;n<r;n++){if(e(t[n],n))return nt.some(n)}return nt.none()},xt=function(t){for(var e=[],n=0,r=t.length;n<r;++n){if(!P(t[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+t);ot.apply(e,t[n])}return e},kt=function(t,e){return xt(dt(t,e))},St=function(t,e){for(var n=0,r=t.length;n<r;++n){if(!0!==e(t[n],n))return!1}return!0},Ct=function(t){var e=rt.call(t,0);return e.reverse(),e},Et=function(t,e){return mt(t,function(t){return!ut(e,t)})},Tt=function(t,e){for(var n={},r=0,i=t.length;r<i;r++){var o=t[r];n[String(o)]=e(o,r)}return n},At=function(t){return[t]},Ot=function(t,e){var n=rt.call(t,0);return n.sort(e),n},Pt=function(t,e){return e>=0&&e<t.length?nt.some(t[e]):nt.none()},Nt=function(t){return Pt(t,0)},Dt=function(t){return Pt(t,t.length-1)},Mt=$(Array.from)?Array.from:function(t){return rt.call(t)},It=function(t,e){for(var n=0;n<t.length;n++){var r=e(t[n],n);if(r.isSome())return r}return nt.none()},Rt=Object.keys,$t=Object.hasOwnProperty,Lt=function(t,e){for(var n=Rt(t),r=0,i=n.length;r<i;r++){var o=n[r];e(t[o],o)}},jt=function(t,e){return Ft(t,function(t,n){return{k:n,v:e(t,n)}})},Ft=function(t,e){var n={};return Lt(t,function(t,r){var i=e(t,r);n[i.k]=i.v}),n},Bt=function(t){return function(e,n){t[n]=e}},Vt=function(t,e,n,r){var i={};return Lt(t,function(t,i){(e(t,i)?n:r)(t,i)}),i},zt=function(t,e){var n={};return Vt(t,e,Bt(n),F),n},Ut=function(t,e){var n=[];return Lt(t,function(t,r){n.push(e(t,r))}),n},Ht=function(t,e){for(var n=Rt(t),r=0,i=n.length;r<i;r++){var o=n[r],a=t[o];if(e(a,o,t))return nt.some(a)}return nt.none()},qt=function(t){return Ut(t,H)},Wt=function(t,e){return Gt(t,e)?nt.from(t[e]):nt.none()},Gt=function(t,e){return $t.call(t,e)},Yt=function(t,e){return Gt(t,e)&&void 0!==t[e]&&null!==t[e]},Kt=function(t,e,n){return void 0===n&&(n=q),t.exists(function(t){return n(t,e)})},Xt=function(t,e,n){return void 0===n&&(n=q),Zt(t,e,n).getOr(t.isNone()&&e.isNone())},Jt=function(t){for(var e=[],n=function(t){e.push(t)},r=0;r<t.length;r++)t[r].each(n);return e},Qt=function(t){for(var e=[],n=0;n<t.length;n++){var r=t[n];if(!r.isSome())return nt.none();e.push(r.getOrDie())}return nt.some(e)},Zt=function(t,e,n){return t.isSome()&&e.isSome()?nt.some(n(t.getOrDie(),e.getOrDie())):nt.none()},te=function(t,e,n,r){return t.isSome()&&e.isSome()&&n.isSome()?nt.some(r(t.getOrDie(),e.getOrDie(),n.getOrDie())):nt.none()},ee=function(t,e){return void 0!==t&&null!==t?nt.some(e(t)):nt.none()},ne=function(t,e){return t?nt.some(e):nt.none()},re=function(t,e){return t+e},ie=function(t,e){return t.substring(e)},oe=function(t,e,n){return""===e||t.length>=e.length&&t.substr(n,n+e.length)===e},ae=function(t,e){return le(t,e)?ie(t,e.length):t},se=function(t,e){return ce(t,e)?t:re(t,e)},ue=function(t,e){return-1!==t.indexOf(e)},le=function(t,e){return oe(t,e,0)},ce=function(t,e){return oe(t,e,t.length-e.length)},fe=function(t){return function(e){return e.replace(t,"")}}(/^\s+|\s+$/g),de=function(t){return t.length>0},he=function(t){return!de(t)},pe=function(t){return void 0!==t.style&&$(t.style.getPropertyValue)},ge=function(t,e){var n=e||document,r=n.createElement("div");if(r.innerHTML=t,!r.hasChildNodes()||r.childNodes.length>1)throw console.error("HTML does not have a single root node",t),new Error("HTML must have a single root node");return ye(r.childNodes[0])},me=function(t,e){var n=e||document,r=n.createElement(t);return ye(r)},ve=function(t,e){var n=e||document,r=n.createTextNode(t);return ye(r)},ye=function(t){if(null===t||void 0===t)throw new Error("Node cannot be null or undefined");return{dom:t}},be=function(t,e,n){return nt.from(t.dom.elementFromPoint(e,n)).map(ye)},_e={fromHtml:ge,fromTag:me,fromText:ve,fromDom:ye,fromPoint:be};"undefined"!=typeof window?window:Function("return this;")();var we,xe=function(t){return t.dom.nodeName.toLowerCase()},ke=function(t){return t.dom.nodeType},Se=function(t){return function(e){return ke(e)===t}},Ce=Se(1),Ee=Se(3),Te=Se(9),Ae=Se(11),Oe=function(t){var e,n=!1;return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return n||(n=!0,e=t.apply(null,r)),e}},Pe=function(t,e,n,r){var i=t.isiOS()&&!0===/ipad/i.test(n),o=t.isiOS()&&!i,a=t.isiOS()||t.isAndroid(),s=a||r("(pointer:coarse)"),u=i||!o&&a&&r("(min-device-width:768px)"),l=o||a&&!u,c=e.isSafari()&&t.isiOS()&&!1===/safari/i.test(n),f=!l&&!u&&!c;return{isiPad:U(i),isiPhone:U(o),isTablet:U(u),isPhone:U(l),isTouch:U(s),isAndroid:t.isAndroid,isiOS:t.isiOS,isWebView:U(c),isDesktop:U(f)}},Ne=function(t,e){for(var n=0;n<t.length;n++){var r=t[n];if(r.test(e))return r}},De=function(t,e){var n=Ne(t,e);if(!n)return{major:0,minor:0};var r=function(t){return Number(e.replace(n,"$"+t))};return Re(r(1),r(2))},Me=function(t,e){var n=String(e).toLowerCase();return 0===t.length?Ie():De(t,n)},Ie=function(){return Re(0,0)},Re=function(t,e){return{major:t,minor:e}},$e={nu:Re,detect:Me,unknown:Ie},Le=function(t,e){return It(e.brands,function(e){var n=e.brand.toLowerCase();return _t(t,function(t){var e;return n===(null===(e=t.brand)||void 0===e?void 0:e.toLowerCase())}).map(function(t){return{current:t.name,version:$e.nu(parseInt(e.version,10),0)}})})},je=function(t,e){var n=String(e).toLowerCase();return _t(t,function(t){return t.search(n)})},Fe=function(t,e){return je(t,e).map(function(t){var n=$e.detect(t.versionRegexes,e);return{current:t.name,version:n}})},Be=function(t,e){return je(t,e).map(function(t){var n=$e.detect(t.versionRegexes,e);return{current:t.name,version:n}})},Ve=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,ze=function(t){return function(e){return ue(e,t)}},Ue=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(t){return ue(t,"edge/")&&ue(t,"chrome")&&ue(t,"safari")&&ue(t,"applewebkit")}},{name:"Chrome",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,Ve],search:function(t){return ue(t,"chrome")&&!ue(t,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(t){return ue(t,"msie")||ue(t,"trident")}},{name:"Opera",versionRegexes:[Ve,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:ze("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:ze("firefox")},{name:"Safari",versionRegexes:[Ve,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(t){return(ue(t,"safari")||ue(t,"mobile/"))&&ue(t,"applewebkit")}}],He=[{name:"Windows",search:ze("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(t){return ue(t,"iphone")||ue(t,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:ze("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:ze("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:ze("linux"),versionRegexes:[]},{name:"Solaris",search:ze("sunos"),versionRegexes:[]},{name:"FreeBSD",search:ze("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:ze("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],qe={browsers:U(Ue),oses:U(He)},We=function(){return Ge({current:void 0,version:$e.unknown()})},Ge=function(t){var e=t.current,n=t.version,r=function(t){return function(){return e===t}};return{current:e,version:n,isEdge:r("Edge"),isChrome:r("Chrome"),isIE:r("IE"),isOpera:r("Opera"),isFirefox:r("Firefox"),isSafari:r("Safari")}},Ye={unknown:We,nu:Ge,edge:U("Edge"),chrome:U("Chrome"),ie:U("IE"),opera:U("Opera"),firefox:U("Firefox"),safari:U("Safari")},Ke=function(){return Xe({current:void 0,version:$e.unknown()})},Xe=function(t){var e=t.current,n=t.version,r=function(t){return function(){return e===t}};return{current:e,version:n,isWindows:r("Windows"),isiOS:r("iOS"),isAndroid:r("Android"),isOSX:r("OSX"),isLinux:r("Linux"),isSolaris:r("Solaris"),isFreeBSD:r("FreeBSD"),isChromeOS:r("ChromeOS")}},Je={unknown:Ke,nu:Xe,windows:U("Windows"),ios:U("iOS"),android:U("Android"),linux:U("Linux"),osx:U("OSX"),solaris:U("Solaris"),freebsd:U("FreeBSD"),chromeos:U("ChromeOS")},Qe=function(t,e,n){var r=qe.browsers(),i=qe.oses(),o=e.bind(function(t){return Le(r,t)}).orThunk(function(){return Fe(r,t)}).fold(Ye.unknown,Ye.nu),a=Be(i,t).fold(Je.unknown,Je.nu);return{browser:o,os:a,deviceType:Pe(a,o,t,n)}},Ze={detect:Qe},tn=function(t){return window.matchMedia(t).matches},en=Oe(function(){return Ze.detect(navigator.userAgent,nt.from(navigator.userAgentData),tn)}),nn=function(){return en()},rn=function(t,e,n){return 0!=(t.compareDocumentPosition(e)&n)},on=function(t,e){return rn(t,e,Node.DOCUMENT_POSITION_CONTAINED_BY)},an=function(t,e){var n=t.dom;if(1!==n.nodeType)return!1;var r=n;if(void 0!==r.matches)return r.matches(e);if(void 0!==r.msMatchesSelector)return r.msMatchesSelector(e);if(void 0!==r.webkitMatchesSelector)return r.webkitMatchesSelector(e);if(void 0!==r.mozMatchesSelector)return r.mozMatchesSelector(e);throw new Error("Browser lacks native selectors")},sn=function(t){return 1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType||0===t.childElementCount},un=function(t,e){var n=void 0===e?document:e.dom;return sn(n)?[]:dt(n.querySelectorAll(t),_e.fromDom)},ln=function(t,e){var n=void 0===e?document:e.dom;return sn(n)?nt.none():nt.from(n.querySelector(t)).map(_e.fromDom)},cn=function(t,e){return t.dom===e.dom},fn=function(t,e){var n=t.dom,r=e.dom;return n!==r&&n.contains(r)},dn=function(t,e){return on(t.dom,e.dom)},hn=function(t,e){return nn().browser.isIE()?dn(t,e):fn(t,e)},pn=function(t){return _e.fromDom(t.dom.ownerDocument)},gn=function(t){return Te(t)?t:pn(t)},mn=function(t){return _e.fromDom(gn(t).dom.documentElement)},vn=function(t){return _e.fromDom(gn(t).dom.defaultView)},yn=function(t){return nt.from(t.dom.parentNode).map(_e.fromDom)},bn=function(t){return yn(t)},_n=function(t){return nt.from(t.dom.offsetParent).map(_e.fromDom)},wn=function(t){return nt.from(t.dom.nextSibling).map(_e.fromDom)},xn=function(t){return dt(t.dom.childNodes,_e.fromDom)},kn=function(t,e){var n=t.dom.childNodes;return nt.from(n[e]).map(_e.fromDom)},Sn=function(t){return kn(t,0)},Cn=function(t,e){return{element:t,offset:e}},En=function(t,e){var n=xn(t);return n.length>0&&e<n.length?Cn(n[e],0):Cn(t,e)},Tn=function(t){return Ae(t)&&R(t.dom.host)},An=$(Element.prototype.attachShadow)&&$(Node.prototype.getRootNode),On=U(An),Pn=An?function(t){return _e.fromDom(t.dom.getRootNode())}:gn,Nn=function(t){return Tn(t)?t:_e.fromDom(gn(t).dom.body)},Dn=function(t){return Mn(t).isSome()},Mn=function(t){var e=Pn(t);return Tn(e)?nt.some(e):nt.none()},In=function(t){return _e.fromDom(t.dom.host)},Rn=function(t){if(On()&&R(t.target)){var e=_e.fromDom(t.target);if(Ce(e)&&$n(e)&&t.composed&&t.composedPath){var n=t.composedPath();if(n)return Nt(n)}}return nt.from(t.target)},$n=function(t){return R(t.dom.shadowRoot)},Ln=function(t){var e=Ee(t)?t.dom.parentNode:t.dom;if(void 0===e||null===e||null===e.ownerDocument)return!1;var n=e.ownerDocument;return Mn(_e.fromDom(e)).fold(function(){return n.body.contains(e)},z(Ln,In))},jn=function(){return Fn(_e.fromDom(document))},Fn=function(t){var e=t.dom.body;if(null===e||void 0===e)throw new Error("Body is not available yet");return _e.fromDom(e)},Bn=function(t,e,n){if(!(A(n)||D(n)||L(n)))throw console.error("Invalid call to Attribute.set. Key ",e,":: Value ",n,":: Element ",t),new Error("Attribute value was not simple");t.setAttribute(e,n+"")},Vn=function(t,e,n){Bn(t.dom,e,n)},zn=function(t,e){var n=t.dom;Lt(e,function(t,e){Bn(n,e,t)})},Un=function(t,e){var n=t.dom.getAttribute(e);return null===n?void 0:n},Hn=function(t,e){return nt.from(Un(t,e))},qn=function(t,e){var n=t.dom;return!(!n||!n.hasAttribute)&&n.hasAttribute(e)},Wn=function(t,e){t.dom.removeAttribute(e)},Gn=function(t,e,n){if(!A(n))throw console.error("Invalid call to CSS.set. Property ",e,":: Value ",n,":: Element ",t),new Error("CSS value must be a string: "+n);pe(t)&&t.style.setProperty(e,n)},Yn=function(t,e){pe(t)&&t.style.removeProperty(e)},Kn=function(t,e,n){var r=t.dom;Gn(r,e,n)},Xn=function(t,e){var n=t.dom;Lt(e,function(t,e){Gn(n,e,t)})},Jn=function(t,e){var n=t.dom;Lt(e,function(t,e){t.fold(function(){Yn(n,e)},function(t){Gn(n,e,t)})})},Qn=function(t,e){var n=t.dom,r=window.getComputedStyle(n),i=r.getPropertyValue(e);return""!==i||Ln(t)?i:Zn(n,e)},Zn=function(t,e){return pe(t)?t.style.getPropertyValue(e):""},tr=function(t,e){var n=t.dom,r=Zn(n,e);return nt.from(r).filter(function(t){return t.length>0})},er=function(t){var e={},n=t.dom;if(pe(n))for(var r=0;r<n.style.length;r++){var i=n.style.item(r);e[i]=n.style[i]}return e},nr=function(t,e,n){var r=_e.fromTag(t);return Kn(r,e,n),tr(r,e).isSome()},rr=function(t,e){var n=t.dom;Yn(n,e),Kt(Hn(t,"style").map(fe),"")&&Wn(t,"style")},ir=function(t){return t.dom.offsetWidth},or=function(t,e){var n=function(e,n){if(!L(n)&&!n.match(/^[0-9]+$/))throw new Error(t+".set accepts only positive integer values. Value was "+n);var r=e.dom;pe(r)&&(r.style[t]=n+"px")},r=function(n){var r=e(n);if(r<=0||null===r){var i=Qn(n,t);return parseFloat(i)||0}return r},i=r,o=function(t,e){return yt(e,function(e,n){var r=Qn(t,n),i=void 0===r?0:parseInt(r,10);return isNaN(i)?e:e+i},0)};return{set:n,get:r,getOuter:i,aggregate:o,max:function(t,e,n){var r=o(t,n);return e>r?e-r:0}}},ar=or("height",function(t){var e=t.dom;return Ln(t)?e.getBoundingClientRect().height:e.offsetHeight}),sr=function(t){return ar.get(t)},ur=function(t){return ar.getOuter(t)},lr=function(t,e){var n=["margin-top","border-top-width","padding-top","padding-bottom","border-bottom-width","margin-bottom"],r=ar.max(t,e,n);Kn(t,"max-height",r+"px")},cr=function(t,e){return{left:t,top:e,translate:function(n,r){return cr(t+n,e+r)}}},fr=cr,dr=function(t){var e=t.getBoundingClientRect();return fr(e.left,e.top)},hr=function(t,e){return void 0!==t?t:void 0!==e?e:0},pr=function(t){var e=t.dom.ownerDocument,n=e.body,r=e.defaultView,i=e.documentElement;if(n===t.dom)return fr(n.offsetLeft,n.offsetTop);var o=hr(null===r||void 0===r?void 0:r.pageYOffset,i.scrollTop),a=hr(null===r||void 0===r?void 0:r.pageXOffset,i.scrollLeft),s=hr(i.clientTop,n.clientTop),u=hr(i.clientLeft,n.clientLeft);return gr(t).translate(a-u,o-s)},gr=function(t){var e=t.dom,n=e.ownerDocument,r=n.body;return r===e?fr(r.offsetLeft,r.offsetTop):Ln(t)?dr(e):fr(0,0)},mr=or("width",function(t){return t.dom.offsetWidth}),vr=function(t,e){return mr.set(t,e)},yr=function(t){return mr.get(t)},br=function(t){return mr.getOuter(t)},_r=function(t,e){var n=["margin-left","border-left-width","padding-left","padding-right","border-right-width","margin-right"],r=mr.max(t,e,n);Kn(t,"max-width",r+"px")},wr=function(t,e,n,r,i,o,a){return{target:t,x:e,y:n,stop:r,prevent:i,kill:o,raw:a}},xr=function(t){var e=_e.fromDom(Rn(t).getOr(t.target)),n=function(){return t.stopPropagation()},r=function(){return t.preventDefault()},i=V(r,n);return wr(e,t.clientX,t.clientY,n,r,i,t)},kr=function(t,e){return function(n){t(n)&&e(xr(n))}},Sr=function(t,e,r,i,o){var a=kr(r,i);return t.dom.addEventListener(e,a,o),{unbind:n(Tr,t,e,a,o)}},Cr=function(t,e,n,r){return Sr(t,e,n,r,!1)},Er=function(t,e,n,r){return Sr(t,e,n,r,!0)},Tr=function(t,e,n,r){t.dom.removeEventListener(e,n,r)},Ar=function(t,e){yn(t).each(function(n){n.dom.insertBefore(e.dom,t.dom)})},Or=function(t,e){wn(t).fold(function(){yn(t).each(function(t){Nr(t,e)})},function(t){Ar(t,e)})},Pr=function(t,e){Sn(t).fold(function(){Nr(t,e)},function(n){t.dom.insertBefore(e.dom,n.dom)})},Nr=function(t,e){t.dom.appendChild(e.dom)},Dr=function(t,e,n){kn(t,n).fold(function(){Nr(t,e)},function(t){Ar(t,e)})},Mr=function(t,e){ht(e,function(e){Ar(t,e)})},Ir=function(t,e){ht(e,function(e){Nr(t,e)})},Rr=function(t){t.dom.textContent="",ht(xn(t),function(t){$r(t)})},$r=function(t){var e=t.dom;null!==e.parentNode&&e.parentNode.removeChild(e)},Lr=function(t){var e=xn(t);e.length>0&&Mr(t,e),$r(t)},jr=function(t){var e=void 0!==t?t.dom:document,n=e.body.scrollLeft||e.documentElement.scrollLeft,r=e.body.scrollTop||e.documentElement.scrollTop;return fr(n,r)},Fr=function(t,e,n){var r=void 0!==n?n.dom:document,i=r.defaultView;i&&i.scrollTo(t,e)},Br=function(t){var e=void 0===t?window:t;return nn().browser.isFirefox()?nt.none():nt.from(e.visualViewport)},Vr=function(t,e,n,r){return{x:t,y:e,width:n,height:r,right:t+n,bottom:e+r}},zr=function(t){var e=void 0===t?window:t,n=e.document,r=jr(_e.fromDom(n));return Br(e).fold(function(){var t=e.document.documentElement,n=t.clientWidth,i=t.clientHeight;return Vr(r.left,r.top,n,i)},function(t){return Vr(Math.max(t.pageLeft,r.left),Math.max(t.pageTop,r.top),t.width,t.height)})},Ur=function(t,e){return t.view(e).fold(U([]),function(e){var n=t.owner(e);return[e].concat(Ur(t,n))})},Hr=function(t,e){var n=e.owner(t),r=Ur(e,n);return nt.some(r)},qr=function(t){var e;return(t.dom===document?nt.none():nt.from(null===(e=t.dom.defaultView)||void 0===e?void 0:e.frameElement)).map(_e.fromDom)},Wr=function(t){return pn(t)},Gr=Object.freeze({__proto__:null,view:qr,owner:Wr}),Yr=function(t){var e=_e.fromDom(document),r=jr(e);return Hr(t,Gr).fold(n(pr,t),function(e){var n=gr(t),i=vt(e,function(t,e){var n=gr(e);return{left:t.left+n.left,top:t.top+n.top}},{left:0,top:0});return fr(i.left+n.left+r.left,i.top+n.top+r.top)})},Kr=function(t,e,n){return{point:t,width:e,height:n}},Xr=function(t,e,n,r){return{x:t,y:e,width:n,height:r}},Jr=function(t,e,n,r){return{x:t,y:e,width:n,height:r,right:t+n,bottom:e+r}},Qr=function(t){var e=pr(t),n=br(t),r=ur(t);return Jr(e.left,e.top,n,r)},Zr=function(t){var e=Yr(t),n=br(t),r=ur(t);return Jr(e.left,e.top,n,r)},ti=function(){return zr(window)},ei=function(t){var e=function(e){return ei(t)},n=function(e){return ei(t)},r=function(e){return ei(e(t))},i=function(e){return ei(t)},o=function(e){e(t)},a=function(e){return e(t)},s=function(e,n){return n(t)},u=function(e){return e(t)},l=function(e){return e(t)},c=function(){return nt.some(t)};return{isValue:K,isError:Y,getOr:U(t),getOrThunk:U(t),getOrDie:U(t),or:e,orThunk:n,fold:s,map:r,mapError:i,each:o,bind:a,exists:u,forall:l,toOptional:c}},ni=function(t){var e=function(t){return t()},n=function(){return G(String(t))()},r=H,i=function(t){return t()},o=function(e){return ni(t)},a=function(e){return ni(e(t))},s=function(e){return ni(t)};return{isValue:Y,isError:K,getOr:H,getOrThunk:e,getOrDie:n,or:r,orThunk:i,fold:function(e,n){return e(t)},map:o,mapError:a,each:F,bind:s,exists:Y,forall:K,toOptional:nt.none}},ri=function(t,e){return t.fold(function(){return ni(e)},ei)},ii={value:ei,error:ni,fromOption:ri};!function(t){t[t.Error=0]="Error",t[t.Value=1]="Value"}(we||(we={}));var oi=function(t,e,n){return t.stype===we.Error?e(t.serror):n(t.svalue)},ai=function(t){var e=[],n=[];return ht(t,function(t){oi(t,function(t){return n.push(t)},function(t){return e.push(t)})}),{values:e,errors:n}},si=function(t,e){return t.stype===we.Error?{stype:we.Error,serror:e(t.serror)}:t},ui=function(t,e){return t.stype===we.Value?{stype:we.Value,svalue:e(t.svalue)}:t},li=function(t,e){return t.stype===we.Value?e(t.svalue):t},ci=function(t,e){return t.stype===we.Error?e(t.serror):t},fi=function(t){return{stype:we.Value,svalue:t}},di=function(t){return{stype:we.Error,serror:t}},hi=function(t){return oi(t,ii.error,ii.value)},pi=function(t){return t.fold(di,fi)},gi={fromResult:pi,toResult:hi,svalue:fi,partition:ai,serror:di,bind:li,bindError:ci,map:ui,mapError:si,fold:oi},mi=function(t,e,n,r){return{tag:"field",key:t,newKey:e,presence:n,prop:r}},vi=function(t,e){return{tag:"custom",newKey:t,instantiator:e}},yi=function(t,e,n){switch(t.tag){case"field":return e(t.key,t.newKey,t.presence,t.prop);case"custom":return n(t.newKey,t.instantiator)}},bi=function(t,e){return e},_i=function(t,e){return O(t)&&O(e)?xi(t,e):e},wi=function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(0===e.length)throw new Error("Can't merge zero objects");for(var r={},i=0;i<e.length;i++){var o=e[i];for(var a in o)Gt(o,a)&&(r[a]=t(r[a],o[a]))}return r}},xi=wi(_i),ki=wi(bi),Si=function(){return{tag:"required",process:{}}},Ci=function(t){return{tag:"defaultedThunk",process:t}},Ei=function(t){return Ci(U(t))},Ti=function(){return{tag:"option",process:{}}},Ai=function(t){return{tag:"mergeWithThunk",process:t}},Oi=function(t,e){return t.length>0?gi.svalue(xi(e,ki.apply(void 0,t))):gi.svalue(e)},Pi=function(t){return V(gi.serror,xt)(t)},Ni=function(t,e){var n=gi.partition(t);return n.errors.length>0?Pi(n.errors):Oi(n.values,e)},Di=function(t){var e=gi.partition(t);return e.errors.length>0?Pi(e.errors):gi.svalue(e.values)},Mi={consolidateObj:Ni,consolidateArr:Di},Ii=function(t){return O(t)&&Rt(t).length>100?" removed due to size":JSON.stringify(t,null,2)},Ri=function(t){var e=t.length>10?t.slice(0,10).concat([{path:[],getErrorInfo:U("... (only showing first ten failures)")}]):t;return dt(e,function(t){return"Failed path: ("+t.path.join(" > ")+")\n"+t.getErrorInfo()})},$i=function(t,e){return gi.serror([{path:t,getErrorInfo:e}])},Li=function(t,e,n){return $i(t,function(){return'Could not find valid *required* value for "'+e+'" in '+Ii(n)})},ji=function(t,e){return $i(t,function(){return'Choice schema did not contain choice key: "'+e+'"'})},Fi=function(t,e,n){return $i(t,function(){return'The chosen schema: "'+n+'" did not exist in branches: '+Ii(e)})},Bi=function(t,e){return $i(t,function(){return"There are unsupported fields: ["+e.join(", ")+"] specified"})},Vi=function(t,e){return $i(t,U(e))},zi=function(t){var e=function(e,n){return gi.bindError(t(n),function(t){return Vi(e,t)})},n=U("val");return{extract:e,toString:n}},Ui=zi(gi.svalue),Hi=function(t,e,n,r){return Wt(e,n).fold(function(){return Li(t,n,e)},r)},qi=function(t,e,n,r){return r(Wt(t,e).getOrThunk(function(){return n(t)}))},Wi=function(t,e,n){return n(Wt(t,e))},Gi=function(t,e,n,r){return r(Wt(t,e).map(function(e){return!0===e?n(t):e}))},Yi=function(t,e,n,r,i){var o=function(t){return i.extract(e.concat([r]),t)},a=function(t){return t.fold(function(){return gi.svalue(nt.none())},function(t){var n=i.extract(e.concat([r]),t);return gi.map(n,nt.some)})};switch(t.tag){case"required":return Hi(e,n,r,o);case"defaultedThunk":return qi(n,r,t.process,o);case"option":return Wi(n,r,a);case"defaultedOptionThunk":return Gi(n,r,t.process,a);case"mergeWithThunk":return qi(n,r,U({}),function(e){var r=xi(t.process(n),e);return o(r)})}},Ki=function(t,e,n){for(var r={},i=[],o=0,a=n;o<a.length;o++){var s=a[o];yi(s,function(n,o,a,s){var u=Yi(a,t,e,n,s);gi.fold(u,function(t){i.push.apply(i,t)},function(t){r[o]=t})},function(t,n){r[t]=n(e)})}return i.length>0?gi.serror(i):gi.svalue(r)},Xi=function(t){var e=function(e,n){return t().extract(e,n)},n=function(){return t().toString()};return{extract:e,toString:n}},Ji=function(t){return Rt(zt(t,R))},Qi=function(t){var e=Zi(t),n=vt(t,function(t,e){return yi(e,function(e){var n;return xi(t,(n={},n[e]=!0,n))},U(t))},{});return{extract:function(t,r){var i=D(r)?[]:Ji(r),o=mt(i,function(t){return!Yt(n,t)});return 0===o.length?e.extract(t,r):Bi(t,o)},toString:e.toString}},Zi=function(t){var e=function(e,n){return Ki(e,n,t)},n=function(){return"obj{\n"+dt(t,function(t){return yi(t,function(t,e,n,r){return t+" -> "+r.toString()},function(t,e){return"state("+t+")"})}).join("\n")+"}"};return{extract:e,toString:n}},to=function(t){var e=function(e,n){var r=dt(n,function(n,r){return t.extract(e.concat(["["+r+"]"]),n)});return Mi.consolidateArr(r)},n=function(){return"array("+t.toString()+")"};return{extract:e,toString:n}},eo=function(t){var e=function(e,n){for(var r=[],i=0,o=t;i<o.length;i++){var a=o[i],s=a.extract(e,n);if(s.stype===we.Value)return s;r.push(s)}return Mi.consolidateArr(r)},n=function(){return"oneOf("+dt(t,function(t){return t.toString()}).join(", ")+")"};return{extract:e,toString:n}},no=function(t,e){var n=function(e,n){return to(zi(t)).extract(e,n)},r=function(t,r){var i=Rt(r),o=n(t,i);return gi.bind(o,function(n){var i=dt(n,function(t){return mi(t,t,Si(),e)});return Zi(i).extract(t,r)})},i=function(){return"setOf("+e.toString()+")"};return{extract:r,toString:i}},ro=function(t,e){var n=Oe(e),r=function(t,e){return n().extract(t,e)},i=function(){return n().toString()};return{extract:r,toString:i}},io=V(to,Zi),oo=U(Ui),ao=function(t,e){return zi(function(n){var r=typeof n;return t(n)?gi.svalue(n):gi.serror("Expected type: "+e+" but got: "+r)})},so=ao(L,"number"),uo=ao(A,"string"),lo=ao(D,"boolean"),co=ao($,"function"),fo=function(t){if(Object(t)!==t)return!0;switch({}.toString.call(t).slice(8,-1)){case"Boolean":case"Number":case"String":case"Date":case"RegExp":case"Blob":case"FileList":case"ImageData":case"ImageBitmap":case"ArrayBuffer":return!0;case"Array":case"Object":return Object.keys(t).every(function(e){return fo(t[e])});default:return!1}},ho=zi(function(t){return fo(t)?gi.svalue(t):gi.serror("Expected value to be acceptable for sending via postMessage")}),po=function(t,e,n,r){return Wt(n,r).fold(function(){return Fi(t,n,r)},function(n){return n.extract(t.concat(["branch: "+r]),e)})},go=function(t,e){var n=function(n,r){return Wt(r,t).fold(function(){return ji(n,t)},function(t){return po(n,r,e,t)})},r=function(){return"chooseOn("+t+"). Possible values: "+Rt(e)};return{extract:n,toString:r}},mo=function(t){return zi(function(e){return t(e).fold(gi.serror,gi.svalue)})},vo=function(t,e){return no(function(e){return gi.fromResult(t(e))},e)},yo=function(t,e,n){var r=e.extract([t],n);return gi.mapError(r,function(t){return{input:n,errors:t}})},bo=function(t,e,n){return gi.toResult(yo(t,e,n))},_o=function(t){return t.fold(function(t){throw new Error(xo(t))},H)},wo=function(t,e,n){return _o(bo(t,e,n))},xo=function(t){return"Errors: \n"+Ri(t.errors).join("\n")+"\n\nInput object: "+Ii(t.input)},ko=function(t,e){return go(t,jt(e,Zi))},So=mi,Co=vi,Eo=function(t){return mo(function(e){return ut(t,e)?ii.value(e):ii.error('Unsupported value: "'+e+'", choose one of "'+t.join(", ")+'".')})},To=function(t){return So(t,t,Si(),oo())},Ao=function(t,e){return So(t,t,Si(),e)},Oo=function(t){return Ao(t,so)},Po=function(t){return Ao(t,uo)},No=function(t,e){return So(t,t,Si(),Eo(e))},Do=function(t){return Ao(t,co)},Mo=function(t,e){return So(t,t,Ti(),zi(function(n){return gi.serror("The field: "+t+" is forbidden. "+e)}))},Io=function(t,e){return So(t,t,Si(),Zi(e))},Ro=function(t,e){return So(t,t,Si(),io(e))},$o=function(t,e){return So(t,t,Si(),to(e))},Lo=function(t){return So(t,t,Ti(),oo())},jo=function(t,e){return So(t,t,Ti(),e)},Fo=function(t){return jo(t,so)},Bo=function(t){return jo(t,uo)},Vo=function(t){return jo(t,co)},zo=function(t,e){return jo(t,to(e))},Uo=function(t,e){return jo(t,Zi(e))},Ho=function(t,e){return jo(t,Qi(e))},qo=function(t,e){return So(t,t,Ei(e),oo())},Wo=function(t,e,n){return So(t,t,Ei(e),n)},Go=function(t,e){return Wo(t,e,so)},Yo=function(t,e){return Wo(t,e,uo)},Ko=function(t,e,n){return Wo(t,e,Eo(n))},Xo=function(t,e){return Wo(t,e,lo)},Jo=function(t,e){return Wo(t,e,co)},Qo=function(t,e,n){return Wo(t,e,to(n))},Zo=function(t,e,n){return Wo(t,e,Zi(n))},ta=function(t){var e=t;return{get:function(){return e},set:function(t){e=t}}},ea=function(t){if(!P(t))throw new Error("cases must be an array");if(0===t.length)throw new Error("there must be at least one case");var e=[],n={};return ht(t,function(r,i){var o=Rt(r);if(1!==o.length)throw new Error("one and only one name per case");var a=o[0],s=r[a];if(void 0!==n[a])throw new Error("duplicate key detected:"+a);if("cata"===a)throw new Error("cannot have a case named cata (sorry)");if(!P(s))throw new Error("case arguments must be an array");e.push(a),n[a]=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=n.length;if(o!==s.length)throw new Error("Wrong number of arguments to case "+a+". Expected "+s.length+" ("+s+"), got "+o);var u=function(t){var r=Rt(t);if(e.length!==r.length)throw new Error("Wrong number of arguments to match. Expected: "+e.join(",")+"\nActual: "+r.join(","));if(!St(e,function(t){return ut(r,t)}))throw new Error("Not all branches were specified when using match. Specified: "+r.join(", ")+"\nRequired: "+e.join(", "));return t[a].apply(null,n)};return{fold:function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];if(e.length!==t.length)throw new Error("Wrong number of arguments to fold. Expected "+t.length+", got "+e.length);return e[i].apply(null,n)},match:u,log:function(t){console.log(t,{constructors:e,constructor:a,params:n})}}}}),n},na={generate:ea};na.generate([{bothErrors:["error1","error2"]},{firstError:["error1","value2"]},{secondError:["value1","error2"]},{bothValues:["value1","value2"]}]);var ra,ia,oa=function(t){var e=[],n=[];return ht(t,function(t){t.fold(function(t){e.push(t)},function(t){n.push(t)})}),{errors:e,values:n}},aa=function(t,e){var n={};return Lt(t,function(t,r){ut(e,r)||(n[r]=t)}),n},sa=function(t,e){var n;return n={},n[t]=e,n},ua=function(t){var e={};return ht(t,function(t){e[t.key]=t.value}),e},la=function(t,e){return aa(t,e)},ca=function(t,e){return sa(t,e)},fa=function(t){return ua(t)},da=function(t,e){return 0===t.length?ii.value(e):ii.value(xi(e,ki.apply(void 0,t)))},ha=function(t){return ii.error(xt(t))},pa=function(t,e){var n=oa(t);return n.errors.length>0?ha(n.errors):da(n.values,e)},ga=function(t){return $(t)?t:Y},ma=function(t,e,n){for(var r=t.dom,i=ga(n);r.parentNode;){r=r.parentNode;var o=_e.fromDom(r),a=e(o);if(a.isSome())return a;if(i(o))break}return nt.none()},va=function(t,e,n){var r=e(t),i=ga(n);return r.orThunk(function(){return i(t)?nt.none():ma(t,e,i)})},ya=function(t,e){return cn(t.element,e.event.target)},ba={can:K,abort:Y,run:F},_a=function(t){if(!Yt(t,"can")&&!Yt(t,"abort")&&!Yt(t,"run"))throw new Error("EventHandler defined by: "+JSON.stringify(t,null,2)+" does not have can, abort, or run!");return J(J({},ba),t)},wa=function(t,e){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return yt(t,function(t,r){return t&&e(r).apply(void 0,n)},!0)}},xa=function(t,e){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return yt(t,function(t,r){return t||e(r).apply(void 0,n)},!1)}},ka=function(t){return $(t)?{can:K,abort:Y,run:t}:t},Sa=function(t){return{can:wa(t,function(t){return t.can}),abort:xa(t,function(t){return t.abort}),run:function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];ht(t,function(t){t.run.apply(void 0,e)})}}},Ca=U,Ea=Ca("touchstart"),Ta=Ca("touchmove"),Aa=Ca("touchend"),Oa=Ca("touchcancel"),Pa=Ca("mousedown"),Na=Ca("mousemove"),Da=Ca("mouseout"),Ma=Ca("mouseup"),Ia=Ca("mouseover"),Ra=Ca("focusin"),$a=Ca("focusout"),La=Ca("keydown"),ja=Ca("keyup"),Fa=Ca("input"),Ba=Ca("change"),Va=Ca("click"),za=Ca("transitioncancel"),Ua=Ca("transitionend"),Ha=Ca("transitionstart"),qa=Ca("selectstart"),Wa=function(t){return U("alloy."+t)},Ga={tap:Wa("tap")},Ya=Wa("focus"),Ka=Wa("blur.post"),Xa=Wa("paste.post"),Ja=Wa("receive"),Qa=Wa("execute"),Za=Wa("focus.item"),ts=Ga.tap,es=Wa("longpress"),ns=Wa("sandbox.close"),rs=Wa("typeahead.cancel"),is=Wa("system.init"),os=Wa("system.touchmove"),as=Wa("system.touchend"),ss=Wa("system.scroll"),us=Wa("system.resize"),ls=Wa("system.attached"),cs=Wa("system.detached"),fs=Wa("system.dismissRequested"),ds=Wa("system.repositionRequested"),hs=Wa("focusmanager.shifted"),ps=Wa("slotcontainer.visibility"),gs=Wa("change.tab"),ms=Wa("dismiss.tab"),vs=Wa("highlight"),ys=Wa("dehighlight"),bs=function(t,e){ks(t,t.element,e,{})},_s=function(t,e,n){ks(t,t.element,e,n)},ws=function(t){bs(t,Qa())},xs=function(t,e,n){ks(t,e,n,{})},ks=function(t,e,n,r){var i=J({target:e},r);t.getSystem().triggerEvent(n,e,i)},Ss=function(t,e,n,r){t.getSystem().triggerEvent(n,e,r.event)},Cs=function(t){return fa(t)},Es=function(t,e){return{key:t,value:_a({abort:e})}},Ts=function(t){return{key:t,value:_a({run:function(t,e){e.event.prevent()}})}},As=function(t,e){return{key:t,value:_a({run:e})}},Os=function(t,e,n){return{key:t,value:_a({run:function(t,r){e.apply(void 0,[t,r].concat(n))}})}},Ps=function(t){return function(e){return{key:t,value:_a({run:function(t,n){ya(t,n)&&e(t,n)}})}}},Ns=function(t,e){return As(t,function(n,r){n.getSystem().getByUid(e).each(function(e){Ss(e,e.element,t,r)})})},Ds=function(t,e,n){var r=e.partUids[n];return Ns(t,r)},Ms=function(t,e){return As(t,function(t,n){var r=n.event,i=t.getSystem().getByDom(r.target).getOrThunk(function(){return va(r.target,function(e){return t.getSystem().getByDom(e).toOptional()},Y).getOr(t)});e(t,i,n)})},Is=function(t){return As(t,function(t,e){e.cut()})},Rs=function(t){return As(t,function(t,e){e.stop()})},$s=function(t,e){return Ps(t)(e)},Ls=Ps(ls()),js=Ps(cs()),Fs=Ps(is()),Bs=function(t){return function(e){return As(t,e)}}(Qa()),Vs=function(t,e){var n=e||document,r=n.createElement("div");return r.innerHTML=t,xn(_e.fromDom(r))},zs=function(t){return t.dom.innerHTML},Us=function(t,e){var n=pn(t),r=n.dom,i=_e.fromDom(r.createDocumentFragment()),o=Vs(e,r);Ir(i,o),Rr(t),Nr(t,i)},Hs=function(t){var e=_e.fromTag("div"),n=_e.fromDom(t.dom.cloneNode(!0));return Nr(e,n),zs(e)},qs=function(t,e){return _e.fromDom(t.dom.cloneNode(e))},Ws=function(t){return qs(t,!1)},Gs=function(t){if(Tn(t))return"#shadow-root";var e=Ws(t);return Hs(e)},Ys=function(t){return Gs(t)},Ks=function(t,e,n){return cn(e,t.element)&&!cn(e,n)},Xs=Cs([function(t,e){return{key:t,value:_a({can:e})}}(Ya(),function(t,e){var n=e.event,r=n.originator,i=n.target;return!Ks(t,r,i)||(console.warn(Ya()+" did not get interpreted by the desired target. \nOriginator: "+Ys(r)+"\nTarget: "+Ys(i)+"\nCheck the "+Ya()+" event handlers"),!1)})]),Js=Object.freeze({__proto__:null,events:Xs}),Qs=0,Zs=function(t){var e=new Date,n=e.getTime(),r=Math.floor(1e9*Math.random());return Qs++,t+"_"+r+Qs+String(n)},tu=U("alloy-id-"),eu=U("data-alloy-id"),nu=tu(),ru=eu(),iu=function(t,e){var n=Zs(nu+t);return ou(e,n),n},ou=function(t,e){Object.defineProperty(t.dom,ru,{value:e,writable:!0})},au=function(t){var e=Ce(t)?t.dom[ru]:null;return nt.from(e)},su=function(t){return Zs(t)},uu=H,lu=function(t){var e=function(e){return"The component must be in a context to execute: "+e+(t?"\n"+Ys(t().element)+" is not in context.":"")},n=function(t){return function(){throw new Error(e(t))}},r=function(t){return function(){console.warn(e(t))}};return{debugInfo:U("fake"),triggerEvent:r("triggerEvent"),triggerFocus:r("triggerFocus"),triggerEscape:r("triggerEscape"),broadcast:r("broadcast"),broadcastOn:r("broadcastOn"),broadcastEvent:r("broadcastEvent"),build:n("build"),addToWorld:n("addToWorld"),removeFromWorld:n("removeFromWorld"),addToGui:n("addToGui"),removeFromGui:n("removeFromGui"),getByUid:n("getByUid"),getByDom:n("getByDom"),isConnected:Y}},cu=lu(),fu=function(t,e,n){var r=n.toString(),i=r.indexOf(")")+1,o=r.indexOf("("),a=r.substring(o+1,i-1).split(/,\s*/);return t.toFunctionAnnotation=function(){return{name:e,parameters:du(a.slice(0,1).concat(a.slice(3)))}},t},du=function(t){return dt(t,function(t){return ce(t,"/*")?t.substring(0,t.length-"/*".length):t})},hu=function(t,e){var n=t.toString(),r=n.indexOf(")")+1,i=n.indexOf("("),o=n.substring(i+1,r-1).split(/,\s*/);return t.toFunctionAnnotation=function(){return{name:e,parameters:du(o)}},t},pu=function(t,e){var n=e.toString(),r=n.indexOf(")")+1,i=n.indexOf("("),o=n.substring(i+1,r-1).split(/,\s*/);return t.toFunctionAnnotation=function(){return{name:"OVERRIDE",parameters:du(o.slice(1))}},t},gu=Zs("alloy-premade"),mu=function(t){return ca(gu,t)},vu=function(t){return Wt(t,gu)},yu=function(t){return pu(function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return t.apply(void 0,i([e.getApis(),e],n,!1))},t)},bu={init:function(){return _u({readState:U("No State required")})}},_u=function(t){return t},wu=function(t,e){var n=dt(e,function(t){return Uo(t.name(),[To("config"),qo("state",bu)])}),r=bo("component.behaviours",Zi(n),t.behaviours).fold(function(e){throw new Error(xo(e)+"\nComplete spec:\n"+JSON.stringify(t,null,2))},H);return{list:e,data:jt(r,function(t){var e=t.map(function(t){return{config:t.config,state:t.state.init(t.config)}});return U(e)})}},xu=function(t){return t.list},ku=function(t){return t.data},Su=function(t,e){var n={};return Lt(t,function(t,r){Lt(t,function(t,i){var o=Wt(n,i).getOr([]);n[i]=o.concat([e(r,t)])})}),n},Cu=function(t){return{classes:M(t.classes)?[]:t.classes,attributes:M(t.attributes)?{}:t.attributes,styles:M(t.styles)?{}:t.styles}},Eu=function(t,e){return J(J({},t),{attributes:J(J({},t.attributes),e.attributes),styles:J(J({},t.styles),e.styles),classes:t.classes.concat(e.classes)})},Tu=function(t,e,n,r){var i=J({},e);ht(n,function(e){i[e.name()]=e.exhibit(t,r)});var o=Su(i,function(t,e){return{name:t,modification:e}}),a=function(t){return vt(t,function(t,e){return J(J({},e.modification),t)},{})},s=vt(o.classes,function(t,e){return e.modification.concat(t)},[]),u=a(o.attributes),l=a(o.styles);return Cu({classes:s,attributes:u,styles:l})},Au=function(t,e,n,r){try{var i=Ot(n,function(n,i){var o=n[e],a=i[e],s=r.indexOf(o),u=r.indexOf(a);if(-1===s)throw new Error("The ordering for "+t+" does not have an entry for "+o+".\nOrder specified: "+JSON.stringify(r,null,2));if(-1===u)throw new Error("The ordering for "+t+" does not have an entry for "+a+".\nOrder specified: "+JSON.stringify(r,null,2));return s<u?-1:u<s?1:0});return ii.value(i)}catch(t){return ii.error([t])}},Ou=function(t,e){return{handler:t,purpose:e}},Pu=function(t,e){return{cHandler:t,purpose:e}},Nu=function(t,e){return Pu(n.apply(void 0,[t.handler].concat(e)),t.purpose)},Du=function(t){return t.cHandler},Mu=function(t,e){return{name:t,handler:e}},Iu=function(t,e){var n={};return ht(t,function(t){n[t.name()]=t.handlers(e)}),n},Ru=function(t,e,n){var r=J(J({},n),Iu(e,t));return Su(r,Mu)},$u=function(t,e,n,r){var i=Ru(t,n,r);return Bu(i,e)},Lu=function(t){var e=ka(t);return function(t,n){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];var o=[t,n].concat(r);e.abort.apply(void 0,o)?n.stop():e.can.apply(void 0,o)&&e.run.apply(void 0,o)}},ju=function(t,e){return ii.error(["The event ("+t+') has more than one behaviour that listens to it.\nWhen this occurs, you must specify an event ordering for the behaviours in your spec (e.g. [ "listing", "toggling" ]).\nThe behaviours that can trigger it are: '+JSON.stringify(dt(e,function(t){return t.name}),null,2)])},Fu=function(t,e,n){var r=e[n];return r?Au("Event: "+n,"name",t,r).map(function(t){var e=dt(t,function(t){return t.handler});return Sa(e)}):ju(n,t)},Bu=function(t,e){var n=Ut(t,function(t,n){return(1===t.length?ii.value(t[0].handler):Fu(t,e,n)).map(function(r){var i=Lu(r),o=t.length>1?mt(e[n],function(e){return lt(t,function(t){return t.name===e})}).join(" > "):t[0].name;return ca(n,Ou(i,o))})});return pa(n,{})},Vu="alloy.base.behaviour",zu=Zi([So("dom","dom",Si(),Zi([To("tag"),qo("styles",{}),qo("classes",[]),qo("attributes",{}),Lo("value"),Lo("innerHtml")])),To("components"),To("uid"),qo("events",{}),qo("apis",{}),So("eventOrder","eventOrder",function(t){return Ai(U(t))}((ra={},ra[Qa()]=["disabling",Vu,"toggling","typeaheadevents"],ra[Ya()]=[Vu,"focusing","keying"],ra[is()]=[Vu,"disabling","toggling","representing"],ra[Fa()]=[Vu,"representing","streaming","invalidating"],ra[cs()]=[Vu,"representing","item-events","tooltipping"],ra[Pa()]=["focusing",Vu,"item-type-events"],ra[Ea()]=["focusing",Vu,"item-type-events"],ra[Ia()]=["item-type-events","tooltipping"],ra[Ja()]=["receiving","reflecting","tooltipping"],ra)),oo()),Lo("domModification")]),Uu=function(t){return bo("custom.definition",zu,t)},Hu=function(t){return J(J({},t.dom),{uid:t.uid,domChildren:dt(t.components,function(t){return t.element})})},qu=function(t){return t.domModification.fold(function(){return Cu({})},Cu)},Wu=function(t){return t.events},Gu=function(t,e){var n=Un(t,e);return void 0===n||""===n?[]:n.split(" ")},Yu=function(t,e,n){var r=Gu(t,e),i=r.concat([n]);return Vn(t,e,i.join(" ")),!0},Ku=function(t,e,n){var r=mt(Gu(t,e),function(t){return t!==n});return r.length>0?Vn(t,e,r.join(" ")):Wn(t,e),!1},Xu=function(t){return void 0!==t.dom.classList},Ju=function(t){return Gu(t,"class")},Qu=function(t,e){return Yu(t,"class",e)},Zu=function(t,e){return Ku(t,"class",e)},tl=function(t,e){Xu(t)?t.dom.classList.add(e):Qu(t,e)},el=function(t){0===(Xu(t)?t.dom.classList:Ju(t)).length&&Wn(t,"class")},nl=function(t,e){if(Xu(t)){t.dom.classList.remove(e)}else Zu(t,e);el(t)},rl=function(t,e){return Xu(t)&&t.dom.classList.contains(e)},il=function(t,e){ht(e,function(e){tl(t,e)})},ol=function(t,e){ht(e,function(e){nl(t,e)})},al=function(t,e){return St(e,function(e){return rl(t,e)})},sl=function(t){return t.dom.value},ul=function(t,e){if(void 0===e)throw new Error("Value.set was undefined");t.dom.value=e},ll=function(t){var e=_e.fromTag(t.tag);zn(e,t.attributes),il(e,t.classes),Xn(e,t.styles),t.innerHtml.each(function(t){return Us(e,t)});var n=t.domChildren;return Ir(e,n),t.value.each(function(t){ul(e,t)}),t.uid,ou(e,t.uid),e},cl=function(t){var e=Wt(t,"behaviours").getOr({});return kt(Rt(e),function(t){var n=e[t];return R(n)?[n.me]:[]})},fl=function(t,e){return wu(t,e)},dl=function(t){var e=cl(t);return fl(t,e)},hl=function(t,e,n){var r=Hu(t),i=qu(t),o={"alloy.base.modification":i},a=e.length>0?Tu(n,o,e,r):i;return Eu(r,a)},pl=function(t,e,n){var r={"alloy.base.behaviour":Wu(t)};return $u(n,t.eventOrder,e,r).getOrDie()},gl=function(t){var e=function(){return y},n=ta(cu),r=_o(Uu(t)),i=dl(t),o=xu(i),a=ku(i),s=hl(r,o,a),u=ll(s),l=pl(r,o,a),c=ta(r.components),f=function(t){n.set(t)},d=function(){n.set(lu(e))},h=function(){var t=xn(u),e=kt(t,function(t){return n.get().getByDom(t).fold(function(){return[]},At)});c.set(e)},p=function(e){var n=a;return($(n[e.name()])?n[e.name()]:function(){throw new Error("Could not find "+e.name()+" in "+JSON.stringify(t,null,2))})()},g=function(t){return $(a[t.name()])},m=function(){return r.apis},v=function(t){return a[t]().map(function(t){return t.state.readState()}).getOr("not enabled")},y={uid:t.uid,getSystem:n.get,config:p,hasConfigured:g,spec:t,readState:v,getApis:m,connect:f,disconnect:d,element:u,syncComponents:h,components:c.get,events:l};return y},ml=function(t){var e=Wt(t,"components").getOr([]);return dt(e,xl)},vl=function(t){var e=uu(t),n=e.events,i=r(e,["events"]),o=ml(i),a=J(J({},i),{events:J(J({},Js),n),components:o});return ii.value(gl(a))},yl=function(t){var e=_e.fromText(t);return bl({element:e})},bl=function(t){var e=wo("external.component",Qi([To("element"),Lo("uid")]),t),n=ta(lu()),r=function(t){n.set(t)},i=function(){n.set(lu(function(){return a}))},o=e.uid.getOrThunk(function(){return su("external")});ou(e.element,o);var a={uid:o,getSystem:n.get,config:nt.none,hasConfigured:Y,connect:r,disconnect:i,getApis:function(){return{}},element:e.element,spec:t,readState:U("No state"),syncComponents:F,components:U([]),events:{}};return mu(a)},_l=su,wl=function(t){return Gt(t,"uid")},xl=function(t){return vu(t).getOrThunk(function(){var e=wl(t)?t:J({uid:_l("")},t);return vl(e).getOrDie()})},kl=mu,Sl=function(t,e,n){for(var r=t.dom,i=$(n)?n:Y;r.parentNode;){r=r.parentNode;var o=_e.fromDom(r);if(e(o))return nt.some(o);if(i(o))break}return nt.none()},Cl=function(t,e,n){return o(function(t,e){return e(t)},Sl,t,e,n)},El=function(t,e){var n=function(t){return e(_e.fromDom(t))};return _t(t.dom.childNodes,n).map(_e.fromDom)},Tl=function(t,e){var n=function(t){for(var r=0;r<t.childNodes.length;r++){var i=_e.fromDom(t.childNodes[r]);if(e(i))return nt.some(i);var o=n(t.childNodes[r]);if(o.isSome())return o}return nt.none()};return n(t.dom)},Al=function(t,e,n){return Cl(t,e,n).isSome()},Ol=function(t,e,n){return Sl(t,function(t){return an(t,e)},n)},Pl=function(t,e){return El(t,function(t){return an(t,e)})},Nl=function(t,e){return ln(e,t)},Dl=function(t,e,n){return o(function(t,e){return an(t,e)},Ol,t,e,n)},Ml=function(t){return Cl(t,function(t){if(!Ce(t))return!1;var e=Un(t,"id");return void 0!==e&&e.indexOf("aria-owns")>-1}).bind(function(t){var e=Un(t,"id"),n=Pn(t);return Nl(n,'[aria-owns="'+e+'"]')})},Il=function(){var t=Zs("aria-owns");return{id:t,link:function(e){Vn(e,"aria-owns",t)},unlink:function(t){Wn(t,"aria-owns")}}},Rl=function(t,e){return Ml(e).exists(function(e){return $l(t,e)})},$l=function(t,e){return Al(e,function(e){return cn(e,t.element)},Y)||Rl(t,e)};!function(t){t[t.STOP=0]="STOP",t[t.NORMAL=1]="NORMAL",t[t.LOGGING=2]="LOGGING"}(ia||(ia={}));var Ll=ta({}),jl=function(t,e){var n=[],r=(new Date).getTime();return{logEventCut:function(t,e,r){n.push({outcome:"cut",target:e,purpose:r})},logEventStopped:function(t,e,r){n.push({outcome:"stopped",target:e,purpose:r})},logNoParent:function(t,e,r){n.push({outcome:"no-parent",target:e,purpose:r})},logEventNoHandlers:function(t,e){n.push({outcome:"no-handlers-left",target:e})},logEventResponse:function(t,e,r){n.push({outcome:"response",purpose:r,target:e})},write:function(){var i=(new Date).getTime();ut(["mousemove","mouseover","mouseout",is()],t)||console.log(t,{event:t,time:i-r,target:e.dom,sequence:dt(n,function(t){return ut(["cut","stopped","response"],t.outcome)?"{"+t.purpose+"} "+t.outcome+" at ("+Ys(t.target)+")":t.outcome})})}}},Fl=function(t,e,n){switch(Wt(Ll.get(),t).orThunk(function(){var e=Rt(Ll.get());return It(e,function(e){return t.indexOf(e)>-1?nt.some(Ll.get()[e]):nt.none()})}).getOr(ia.NORMAL)){case ia.NORMAL:return n(Hl());case ia.LOGGING:var r=jl(t,e),i=n(r);return r.write(),i;case ia.STOP:return!0}},Bl=["alloy/data/Fields","alloy/debugging/Debugging"],Vl=function(){var t=new Error;if(void 0!==t.stack){var e=t.stack.split("\n");return _t(e,function(t){return t.indexOf("alloy")>0&&!lt(Bl,function(e){return t.indexOf(e)>-1})}).getOr("unknown")}return"unknown"},zl={logEventCut:F,logEventStopped:F,logNoParent:F,logEventNoHandlers:F,logEventResponse:F,write:F},Ul=function(t,e,n){return Fl(t,e,n)},Hl=U(zl),ql=U([To("menu"),To("selectedMenu")]),Wl=U([To("item"),To("selectedItem")]);U(Zi(Wl().concat(ql())));var Gl=U(Zi(Wl())),Yl=Io("initSize",[To("numColumns"),To("numRows")]),Kl=function(){return Io("markers",[To("backgroundMenu")].concat(ql()).concat(Wl()))},Xl=function(t){return Io("markers",dt(t,To))},Jl=function(t,e,n){return Vl(),So(e,e,n,mo(function(t){return ii.value(function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t.apply(void 0,e)})}))},Ql=function(t){return Jl(0,t,Ei(F))},Zl=function(t){return Jl(0,t,Ei(nt.none))},tc=function(t){return Jl(0,t,Si())},ec=function(t){return Jl(0,t,Si())},nc=function(t,e){return Co(t,U(e))},rc=function(t){return Co(t,H)},ic=U(Yl),oc=function(t,e,n,r,i,o,a,s){return void 0===s&&(s=!1),{x:t,y:e,bubble:n,direction:r,placement:i,restriction:o,label:a+"-"+i,alwaysFit:s}},ac=na.generate([{southeast:[]},{southwest:[]},{northeast:[]},{northwest:[]},{south:[]},{north:[]},{east:[]},{west:[]}]),sc=function(t,e,n,r,i,o,a,s,u){return t.fold(e,n,r,i,o,a,s,u)},uc=function(t,e,n,r){return t.fold(e,e,r,r,e,r,n,n)},lc=function(t,e,n,r){return t.fold(e,r,e,r,n,n,e,r)},cc=ac.southeast,fc=ac.southwest,dc=ac.northeast,hc=ac.northwest,pc=ac.south,gc=ac.north,mc=ac.east,vc=ac.west,yc=function(t,e,n,r){var i=t+e;return i>r?n:i<n?r:i},bc=function(t,e,n){return Math.min(Math.max(t,e),n)},_c=function(t,e){switch(e){case 1:return t.x;case 0:return t.x+t.width;case 2:return t.y;case 3:return t.y+t.height}},wc=function(t,e){return Tt(["left","right","top","bottom"],function(n){return Wt(e,n).map(function(e){return _c(t,e)})})},xc=function(t,e,n){var r=function(r,i){return e[r].map(function(e){var o="top"===r||"bottom"===r,a=o?n.top:n.left,s="left"===r||"top"===r?Math.max:Math.min,u=s(e,i)+a;return o?bc(u,t.y,t.bottom):bc(u,t.x,t.right)}).getOr(i)},i=r("left",t.x),o=r("top",t.y),a=r("right",t.right),s=r("bottom",t.bottom);return Jr(i,o,a-i,s-o)},kc=function(t){return t.x},Sc=function(t,e){return t.x+t.width/2-e.width/2},Cc=function(t,e){return t.x+t.width-e.width},Ec=function(t,e){return t.y-e.height},Tc=function(t){return t.y+t.height},Ac=function(t,e){return t.y+t.height/2-e.height/2},Oc=function(t){return t.x+t.width},Pc=function(t,e){return t.x-e.width},Nc=function(t,e,n){return oc(kc(t),Tc(t),n.southeast(),cc(),"southeast",wc(t,{left:1,top:3}),"layout")},Dc=function(t,e,n){return oc(Cc(t,e),Tc(t),n.southwest(),fc(),"southwest",wc(t,{right:0,top:3}),"layout")},Mc=function(t,e,n){return oc(kc(t),Ec(t,e),n.northeast(),dc(),"northeast",wc(t,{left:1,bottom:2}),"layout")},Ic=function(t,e,n){return oc(Cc(t,e),Ec(t,e),n.northwest(),hc(),"northwest",wc(t,{right:0,bottom:2}),"layout")},Rc=function(t,e,n){return oc(Sc(t,e),Ec(t,e),n.north(),gc(),"north",wc(t,{bottom:2}),"layout")},$c=function(t,e,n){return oc(Sc(t,e),Tc(t),n.south(),pc(),"south",wc(t,{top:3}),"layout")},Lc=function(t,e,n){return oc(Oc(t),Ac(t,e),n.east(),mc(),"east",wc(t,{left:0}),"layout")},jc=function(t,e,n){return oc(Pc(t,e),Ac(t,e),n.west(),vc(),"west",wc(t,{right:1}),"layout")},Fc=function(){return[Nc,Dc,Mc,Ic,$c,Rc,Lc,jc]},Bc=function(){return[Dc,Nc,Ic,Mc,$c,Rc,Lc,jc]},Vc=function(){return[Mc,Ic,Nc,Dc,Rc,$c]},zc=function(){return[Ic,Mc,Dc,Nc,Rc,$c]},Uc=function(){return[Nc,Dc,Mc,Ic,$c,Rc]},Hc=function(){return[Dc,Nc,Ic,Mc,$c,Rc]},qc=function(t,e){return e.universal?t:mt(t,function(t){return ut(e.channels,t)})},Wc=function(t){return Cs([As(Ja(),function(e,n){var r=t.channels,i=Rt(r),o=n,a=qc(i,o);ht(a,function(t){var n=r[t],i=n.schema,a=wo("channel["+t+"] data\nReceiver: "+Ys(e.element),i,o.data);n.onReceive(e,a)})})])},Gc=Object.freeze({__proto__:null,events:Wc}),Yc=[Ao("channels",vo(ii.value,Qi([tc("onReceive"),qo("schema",oo())])))],Kc=function(t,e,n){return Bs(function(r){n(r,t,e)})},Xc=function(t,e,n){return Fs(function(r,i){n(r,t,e)})},Jc=function(t,e,n,r,i,o){var a=Qi(t),s=Uo(e,[Ho("config",t)]);return ef(a,s,e,n,r,i,o)},Qc=function(t,e,n,r,i,o){var a=t,s=Uo(e,[jo("config",t)]);return ef(a,s,e,n,r,i,o)},Zc=function(t,e,n){return fu(function(r){for(var i=[],o=1;o<arguments.length;o++)i[o-1]=arguments[o];var a=[r].concat(i);return r.config({name:U(t)}).fold(function(){throw new Error("We could not find any behaviour configuration for: "+t+". Using API: "+n)},function(t){var n=Array.prototype.slice.call(a,1);return e.apply(void 0,[r,t.config,t.state].concat(n))})},n,e)},tf=function(t){return{key:t,value:void 0}},ef=function(t,e,r,i,o,a,s){var u=function(t){return Yt(t,r)?t[r]():nt.none()},l=jt(o,function(t,e){return Zc(r,t,e)}),c=jt(a,function(t,e){return hu(t,e)}),f=J(J(J({},c),l),{revoke:n(tf,r),config:function(e){var n=wo(r+"-config",t,e);return{key:r,value:{config:n,me:f,configAsRaw:Oe(function(){return wo(r+"-config",t,e)}),initialConfig:e,state:s}}},schema:U(e),exhibit:function(t,e){return Zt(u(t),Wt(i,"exhibit"),function(t,n){return n(e,t.config,t.state)}).getOrThunk(function(){return Cu({})})},name:U(r),handlers:function(t){return u(t).map(function(t){return Wt(i,"events").getOr(function(){return{}})(t.config,t.state)}).getOr({})}});return f},nf=function(t){return fa(t)},rf=Qi([To("fields"),To("name"),qo("active",{}),qo("apis",{}),qo("state",bu),qo("extra",{})]),of=function(t){var e=wo("Creating behaviour: "+t.name,rf,t);return Jc(e.fields,e.name,e.active,e.apis,e.extra,e.state)},af=Qi([To("branchKey"),To("branches"),To("name"),qo("active",{}),qo("apis",{}),qo("state",bu),qo("extra",{})]),sf=function(t){var e=wo("Creating behaviour: "+t.name,af,t);return Qc(ko(e.branchKey,e.branches),e.name,e.active,e.apis,e.extra,e.state)},uf=U(void 0),lf=of({fields:Yc,name:"receiving",active:Gc}),cf=function(t,e){return Cu({classes:[],styles:e.useFixed()?{}:{position:"relative"}})},ff=Object.freeze({__proto__:null,exhibit:cf}),df=function(){return _e.fromDom(document)},hf=function(t){return t.dom.focus()},pf=function(t){return t.dom.blur()},gf=function(t){var e=Pn(t).dom;return t.dom===e.activeElement},mf=function(t){return void 0===t&&(t=df()),nt.from(t.dom.activeElement).map(_e.fromDom)},vf=function(t){return mf(Pn(t)).filter(function(e){return t.dom.contains(e.dom)})},yf=function(t,e){var n=Pn(e),r=mf(n).bind(function(t){var n=function(e){return cn(t,e)};return n(e)?nt.some(e):Tl(e,n)}),i=t(e);return r.each(function(t){mf(n).filter(function(e){return cn(e,t)}).fold(function(){hf(t)},F)}),i},bf=function(t,e,n,r,i){var o=function(t){return t+"px"};return{position:t,left:e.map(o),top:n.map(o),right:r.map(o),bottom:i.map(o)}},_f=function(t){return J(J({},t),{position:nt.some(t.position)})},wf=function(t,e){Jn(t,_f(e))},xf=na.generate([{none:[]},{relative:["x","y","width","height"]},{fixed:["x","y","width","height"]}]),kf=function(t,e,n,r,i,o){var a=e.rect,s=a.x-n,u=a.y-r,l=a.width,c=a.height,f=i-(s+l),d=o-(u+c),h=nt.some(s),p=nt.some(u),g=nt.some(f),m=nt.some(d),v=nt.none();return sc(e.direction,function(){return bf(t,h,p,v,v)},function(){return bf(t,v,p,g,v)},function(){return bf(t,h,v,v,m)},function(){return bf(t,v,v,g,m)},function(){return bf(t,h,p,v,v)},function(){return bf(t,h,v,v,m)},function(){return bf(t,h,p,v,v)},function(){return bf(t,v,p,g,v)})},Sf=function(t,e){return t.fold(function(){var t=e.rect;return bf("absolute",nt.some(t.x),nt.some(t.y),nt.none(),nt.none())},function(t,n,r,i){return kf("absolute",e,t,n,r,i)},function(t,n,r,i){return kf("fixed",e,t,n,r,i)})},Cf=function(t,e){var r=n(Yr,e),i=t.fold(r,r,function(){var t=jr();return Yr(e).translate(-t.left,-t.top)}),o=br(e),a=ur(e);return Jr(i.left,i.top,o,a)},Ef=function(t,e){return e.fold(function(){return t.fold(ti,ti,Jr)},function(e){return t.fold(e,e,function(){var n=e(),r=Tf(t,n.x,n.y);return Jr(r.left,r.top,n.width,n.height)})})},Tf=function(t,e,n){var r=fr(e,n),i=function(){var t=jr();return r.translate(-t.left,-t.top)};return t.fold(U(r),U(r),i)},Af=function(t,e,n,r){return t.fold(e,n,r)};xf.none;var Of,Pf=xf.relative,Nf=xf.fixed,Df=function(t,e){return{anchorBox:t,origin:e}},Mf=function(t,e){return Df(t,e)},If=function(t,e){Vn(t,"data-alloy-placement",e)},Rf=function(t){return Hn(t,"data-alloy-placement")},$f=function(t){return Wn(t,"data-alloy-placement")},Lf=na.generate([{fit:["reposition"]},{nofit:["reposition","visibleW","visibleH","isVisible"]}]),jf=function(t,e){var n=e.x,r=e.y,i=e.right,o=e.bottom,a=t.x,s=t.y,u=t.right,l=t.bottom,c=t.width,f=t.height,d=a>=n&&a<=i,h=s>=r&&s<=o,p=d&&h,g=u<=i&&u>=n,m=l<=o&&l>=r;return{originInBounds:p,sizeInBounds:g&&m,visibleW:Math.min(c,a>=n?i-a:u-n),visibleH:Math.min(f,s>=r?o-s:l-r)}},Ff=function(t,e){var n=e.x,r=e.y,i=e.right,o=e.bottom,a=t.x,s=t.y,u=t.width,l=t.height,c=Math.max(n,i-u),f=Math.max(r,o-l),d=bc(a,n,c),h=bc(s,r,f),p=Math.min(d+u,i)-d,g=Math.min(h+l,o)-h;return Jr(d,h,p,g)},Bf=function(t,e,n){var r=U(e.bottom-n.y),i=U(n.bottom-e.y),o=uc(t,i,i,r),a=U(e.right-n.x),s=U(n.right-e.x);return{maxWidth:lc(t,s,s,a),maxHeight:o}},Vf=function(t,e,n,r){var i=t.bubble,o=i.offset,a=xc(r,t.restriction,o),s=t.x+o.left,u=t.y+o.top,l=Jr(s,u,e,n),c=jf(l,a),f=c.originInBounds,d=c.sizeInBounds,h=c.visibleW,p=c.visibleH,g=f&&d,m=g?l:Ff(l,a),v=m.width>0&&m.height>0,y=Bf(t.direction,m,r),b=y.maxWidth,_=y.maxHeight,w={rect:m,maxHeight:_,maxWidth:b,direction:t.direction,placement:t.placement,classes:{on:i.classesOn,off:i.classesOff},layout:t.label,testY:u};return g||t.alwaysFit?Lf.fit(w):Lf.nofit(w,h,p,v)},zf=function(t,e,r,i,o,a){var s=i.width,u=i.height,l=function(e,n,l,c,f){var d=e(r,i,o,t,a),h=Vf(d,s,u,a);return h.fold(U(h),function(t,e,r,i){return(f===i?r>c||e>l:!f&&i)?h:Lf.nofit(n,l,c,f)})};return yt(e,function(t,e){var r=n(l,e);return t.fold(U(t),r)},Lf.nofit({rect:r,maxHeight:i.height,maxWidth:i.width,direction:cc(),placement:"southeast",classes:{on:[],off:[]},layout:"none",testY:r.y},-1,-1,!1)).fold(H,H)},Uf=function(t){var e=ta(nt.none()),n=function(){return e.get().each(t)};return{clear:function(){n(),e.set(nt.none())},isSet:function(){return e.get().isSome()},get:function(){return e.get()},set:function(t){n(),e.set(nt.some(t))}}},Hf=function(){return Uf(function(t){return t.destroy()})},qf=function(){return Uf(function(t){return t.unbind()})},Wf=function(){var t=Hf(),e=function(e){return t.get().each(e)};return J(J({},t),{run:e})},Gf=function(){var t=Uf(F),e=function(e){return t.get().each(e)};return J(J({},t),{on:e})},Yf=K,Kf=function(t,e,n){return Cr(t,e,Yf,n)},Xf=function(t,e,n){return Er(t,e,Yf,n)},Jf=xr,Qf=["top","bottom","right","left"],Zf="data-alloy-transition-timer",td=function(t,e){return al(t,e.classes)},ed=function(t,e,n){return n.exists(function(n){var r=t.mode;return"all"===r||n[r]!==e[r]})},nd=function(t,e){var n=function(t){return parseFloat(t).toFixed(3)};return Ht(e,function(e,r){var i=t[r].map(n),o=e.map(n);return!Xt(i,o)}).isSome()},rd=function(t){var e=function(e){var n=Qn(t,e),r=A(n)?n.split(/\s*,\s*/):[];return mt(r,de)},n=function(t){if(A(t)&&/^[\d.]+/.test(t)){var e=parseFloat(t);return ce(t,"ms")?e:1e3*e}return 0},r=e("transition-delay"),i=e("transition-duration");return yt(i,function(t,e,i){var o=n(r[i])+n(e);return Math.max(t,o)},0)},id=function(t,e){var n,r=qf(),i=qf(),o=function(e){var n,r=null!==(n=e.raw.pseudoElement)&&void 0!==n?n:"";return cn(e.target,t)&&he(r)&&ut(Qf,e.raw.propertyName)},a=function(a){if(I(a)||o(a)){r.clear(),i.clear();var s=null===a||void 0===a?void 0:a.raw.type;(I(s)||s===Ua())&&(clearTimeout(n),Wn(t,Zf),ol(t,e.classes))}},s=function(){r.set(Kf(t,Ua(),a)),i.set(Kf(t,za(),a))};if("ontransitionstart"in t.dom)var u=Kf(t,Ha(),function(t){o(t)&&(u.unbind(),s())});else s();var l=rd(t);requestAnimationFrame(function(){n=setTimeout(a,l+17),Vn(t,Zf,n)})},od=function(t,e){il(t,e.classes),Hn(t,Zf).each(function(e){clearTimeout(parseInt(e,10)),Wn(t,Zf)}),id(t,e)},ad=function(t,e,n,r,i,o){var a=ed(r,i,o);if(a||td(t,r)){Kn(t,"position",n.position);var s=Cf(e,t),u=Sf(e,J(J({},i),{rect:s})),l=Tt(Qf,function(t){return u[t]});nd(n,l)&&(Jn(t,l),a&&od(t,r),ir(t))}else ol(t,r.classes)},sd=function(t){return{width:br(t),height:ur(t)}},ud=function(t,e,n,r){rr(e,"max-height"),rr(e,"max-width");var i=sd(e);return zf(e,r.preference,t,i,n,r.bounds)},ld=function(t,e){var n=e.classes;ol(t,n.off),il(t,n.on)},cd=function(t,e,n){(0,n.maxHeightFunction)(t,e.maxHeight)},fd=function(t,e,n){(0,n.maxWidthFunction)(t,e.maxWidth)},dd=function(t,e,n){var r=Sf(n.origin,e);n.transition.each(function(i){ad(t,n.origin,r,i,e,n.lastPlacement)}),wf(t,r)},hd=function(t,e){If(t,e.placement)},pd=function(t,e){lr(t,Math.floor(e))},gd=U(function(t,e){pd(t,e),Xn(t,{"overflow-x":"hidden","overflow-y":"auto"})}),md=U(function(t,e){pd(t,e)}),vd=function(t,e,n){return void 0===t[e]?n:t[e]},yd=function(t,e,n,r,i,o,a,s){var u=vd(a,"maxHeightFunction",gd()),l=vd(a,"maxWidthFunction",F),c=t.anchorBox,f=t.origin,d={bounds:Ef(f,o),origin:f,preference:r,maxHeightFunction:u,maxWidthFunction:l,lastPlacement:i,transition:s};return bd(c,e,n,d)},bd=function(t,e,n,r){var i=ud(t,e,n,r);return dd(e,i,r),hd(e,i),ld(e,i),cd(e,i,r),fd(e,i,r),{layout:i.layout,placement:i.placement}},_d=["valignCentre","alignLeft","alignRight","alignCentre","top","bottom","left","right","inset"],wd=function(t,e,n,r){void 0===r&&(r=1);var i=t*r,o=e*r,a=function(t){return Wt(n,t).getOr([])},s=function(t,e,n){var r=Et(_d,n);return{offset:fr(t,e),classesOn:kt(n,a),classesOff:kt(r,a)}};return{southeast:function(){return s(-t,e,["top","alignLeft"])},southwest:function(){return s(t,e,["top","alignRight"])},south:function(){return s(-t/2,e,["top","alignCentre"])},northeast:function(){return s(-t,-e,["bottom","alignLeft"])},northwest:function(){return s(t,-e,["bottom","alignRight"])},north:function(){return s(-t/2,-e,["bottom","alignCentre"])},east:function(){return s(t,-e/2,["valignCentre","left"])},west:function(){return s(-t,-e/2,["valignCentre","right"])},insetNortheast:function(){return s(i,o,["top","alignLeft","inset"])},insetNorthwest:function(){return s(-i,o,["top","alignRight","inset"])},insetNorth:function(){return s(-i/2,o,["top","alignCentre","inset"])},insetSoutheast:function(){return s(i,-o,["bottom","alignLeft","inset"])},insetSouthwest:function(){return s(-i,-o,["bottom","alignRight","inset"])},insetSouth:function(){return s(-i/2,-o,["bottom","alignCentre","inset"])},insetEast:function(){return s(-i,-o/2,["valignCentre","right","inset"])},insetWest:function(){return s(i,-o/2,["valignCentre","left","inset"])}}},xd=function(){return wd(0,0,{})},kd=H,Sd=function(t,e){return function(n){return"rtl"===Cd(n)?e:t}},Cd=function(t){return"rtl"===Qn(t,"direction")?"rtl":"ltr"};!function(t){t.TopToBottom="toptobottom",t.BottomToTop="bottomtotop"}(Of||(Of={}));var Ed="data-alloy-vertical-dir",Td=function(t){return Al(t,function(t){return Ce(t)&&Un(t,"data-alloy-vertical-dir")===Of.BottomToTop})},Ad=function(){return Uo("layouts",[To("onLtr"),To("onRtl"),Lo("onBottomLtr"),Lo("onBottomRtl")])},Od=function(t,e,n,r,i,o,a){var s=a.map(Td).getOr(!1),u=e.layouts.map(function(e){return e.onLtr(t)}),l=e.layouts.map(function(e){return e.onRtl(t)}),c=s?e.layouts.bind(function(e){return e.onBottomLtr.map(function(e){return e(t)})}).or(u).getOr(i):u.getOr(n),f=s?e.layouts.bind(function(e){return e.onBottomRtl.map(function(e){return e(t)})}).or(l).getOr(o):l.getOr(r);return Sd(c,f)(t)},Pd=function(t,e,n){var r=e.hotspot,i=Cf(n,r.element),o=Od(t.element,e,Uc(),Hc(),Vc(),zc(),nt.some(e.hotspot.element));return nt.some(kd({anchorBox:i,bubble:e.bubble.getOr(xd()),overrides:e.overrides,layouts:o,placer:nt.none()}))},Nd=[To("hotspot"),Lo("bubble"),qo("overrides",{}),Ad(),nc("placement",Pd)],Dd=function(t,e,n){var r=Tf(n,e.x,e.y),i=Jr(r.left,r.top,e.width,e.height),o=Od(t.element,e,Fc(),Bc(),Fc(),Bc(),nt.none());return nt.some(kd({anchorBox:i,bubble:e.bubble,overrides:e.overrides,layouts:o,placer:nt.none()}))},Md=[To("x"),To("y"),qo("height",0),qo("width",0),qo("bubble",xd()),qo("overrides",{}),Ad(),nc("placement",Dd)],Id=na.generate([{screen:["point"]},{absolute:["point","scrollLeft","scrollTop"]}]),Rd=function(t){return t.fold(H,function(t,e,n){return t.translate(-e,-n)})},$d=function(t){return t.fold(H,H)},Ld=function(t){return yt(t,function(t,e){return t.translate(e.left,e.top)},fr(0,0))},jd=function(t){var e=dt(t,Rd);return Ld(e)},Fd=function(t){var e=dt(t,$d);return Ld(e)},Bd=Id.screen,Vd=Id.absolute,zd=function(t,e,n){var r=vn(n.root).dom,i=function(e){var n=pn(e),r=pn(t.element);return cn(n,r)};return nt.from(r.frameElement).map(_e.fromDom).filter(i).map(pr)},Ud=function(t,e,n){var r=pn(t.element),i=jr(r),o=zd(t,0,n).getOr(i);return Vd(o,i.left,i.top)},Hd=function(t,e,n,r){var i=Bd(fr(t,e));return nt.some(Kr(i,n,r))},qd=function(t,e,n,r,i){return t.map(function(t){var o=[e,t.point],a=Af(r,function(){return Fd(o)},function(){return Fd(o)},function(){return jd(o)}),s=Xr(a.left,a.top,t.width,t.height),u=n.showAbove?Vc():Uc(),l=n.showAbove?zc():Hc(),c=Od(i,n,u,l,u,l,nt.none());return kd({anchorBox:s,bubble:n.bubble.getOr(xd()),overrides:n.overrides,layouts:c,placer:nt.none()})})},Wd=function(t,e,n){var r=Ud(t,0,e);return e.node.filter(Ln).bind(function(i){var o=i.dom.getBoundingClientRect(),a=Hd(o.left,o.top,o.width,o.height),s=e.node.getOr(t.element);return qd(a,r,e,n,s)})},Gd=[To("node"),To("root"),Lo("bubble"),Ad(),qo("overrides",{}),qo("showAbove",!1),nc("placement",Wd)],Yd=function(t,e,n,r){return{start:t,soffset:e,finish:n,foffset:r}},Kd={create:Yd},Xd=na.generate([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),Jd=function(t,e,n,r){return t.fold(e,n,r)},Qd=function(t){return t.fold(H,H,H)},Zd=Xd.before,th=Xd.on,eh=Xd.after,nh={before:Zd,on:th,after:eh,cata:Jd,getStart:Qd},rh=na.generate([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),ih=function(t){return rh.exact(t.start,t.soffset,t.finish,t.foffset)},oh=function(t){return t.match({domRange:function(t){return _e.fromDom(t.startContainer)},relative:function(t,e){return nh.getStart(t)},exact:function(t,e,n,r){return t}})},ah=rh.domRange,sh=rh.relative,uh=rh.exact,lh=function(t){var e=oh(t);return vn(e)},ch=Kd.create,fh={domRange:ah,relative:sh,exact:uh,exactFromRange:ih,getWin:lh,range:ch},dh=function(t,e){e.fold(function(e){t.setStartBefore(e.dom)},function(e,n){t.setStart(e.dom,n)},function(e){t.setStartAfter(e.dom)})},hh=function(t,e){e.fold(function(e){t.setEndBefore(e.dom)},function(e,n){t.setEnd(e.dom,n)},function(e){t.setEndAfter(e.dom)})},ph=function(t,e,n){var r=t.document.createRange();return dh(r,e),hh(r,n),r},gh=function(t,e,n,r,i){var o=t.document.createRange();return o.setStart(e.dom,n),o.setEnd(r.dom,i),o},mh=function(t){return{left:t.left,top:t.top,right:t.right,bottom:t.bottom,width:t.width,height:t.height}},vh=function(t){var e=t.getClientRects(),n=e.length>0?e[0]:t.getBoundingClientRect();return n.width>0||n.height>0?nt.some(n).map(mh):nt.none()},yh=function(t){var e=t.getBoundingClientRect();return e.width>0||e.height>0?nt.some(e).map(mh):nt.none()},bh=na.generate([{ltr:["start","soffset","finish","foffset"]},{rtl:["start","soffset","finish","foffset"]}]),_h=function(t,e,n){return e(_e.fromDom(n.startContainer),n.startOffset,_e.fromDom(n.endContainer),n.endOffset)},wh=function(t,e){return e.match({domRange:function(t){return{ltr:U(t),rtl:nt.none}},relative:function(e,n){return{ltr:Oe(function(){return ph(t,e,n)}),rtl:Oe(function(){return nt.some(ph(t,n,e))})}},exact:function(e,n,r,i){return{ltr:Oe(function(){return gh(t,e,n,r,i)}),rtl:Oe(function(){return nt.some(gh(t,r,i,e,n))})}}})},xh=function(t,e){var n=e.ltr();if(n.collapsed){return e.rtl().filter(function(t){return!1===t.collapsed}).map(function(t){return bh.rtl(_e.fromDom(t.endContainer),t.endOffset,_e.fromDom(t.startContainer),t.startOffset)}).getOrThunk(function(){return _h(0,bh.ltr,n)})}return _h(0,bh.ltr,n)},kh=function(t,e){var n=wh(t,e);return xh(0,n)},Sh=function(t,e){return kh(t,e).match({ltr:function(e,n,r,i){var o=t.document.createRange();return o.setStart(e.dom,n),o.setEnd(r.dom,i),o},rtl:function(e,n,r,i){var o=t.document.createRange();return o.setStart(r.dom,i),o.setEnd(e.dom,n),o}})};bh.ltr,bh.rtl;var Ch,Eh=function(t,e){var n=function(n){if(!t(n))throw new Error("Can only get "+e+" value of a "+e+" node");return r(n).getOr("")},r=function(e){return t(e)?nt.from(e.dom.nodeValue):nt.none()};return{get:n,getOption:r,set:function(n,r){if(!t(n))throw new Error("Can only set raw "+e+" value of a "+e+" node");n.dom.nodeValue=r}}}(Ee,"text"),Th=function(t){return Eh.get(t)},Ah=function(t){return Eh.getOption(t)},Oh=function(t){return"img"===xe(t)?1:Ah(t).fold(function(){return xn(t).length},function(t){return t.length})},Ph=function(t){return Ah(t).filter(function(t){return 0!==t.trim().length||t.indexOf(" ")>-1}).isSome()},Nh=["img","br"],Dh=function(t){return Ph(t)||ut(Nh,xe(t))},Mh=function(t){return Ih(t,Dh)},Ih=function(t,e){var n=function(t){for(var r=xn(t),i=r.length-1;i>=0;i--){var o=r[i];if(e(o))return nt.some(o);var a=n(o);if(a.isSome())return a}return nt.none()};return n(t)},Rh=function(t,e){return un(e,t)},$h=function(t,e,n,r){var i=pn(t),o=i.dom.createRange();return o.setStart(t.dom,e),o.setEnd(n.dom,r),o},Lh=function(t,e,n,r){var i=$h(t,e,n,r),o=cn(t,n)&&e===r;return i.collapsed&&!o},jh=function(t){return nt.from(t.getSelection())},Fh=function(t){if(t.rangeCount>0){var e=t.getRangeAt(0),n=t.getRangeAt(t.rangeCount-1);return nt.some(Kd.create(_e.fromDom(e.startContainer),e.startOffset,_e.fromDom(n.endContainer),n.endOffset))}return nt.none()},Bh=function(t){if(null===t.anchorNode||null===t.focusNode)return Fh(t);var e=_e.fromDom(t.anchorNode),n=_e.fromDom(t.focusNode);return Lh(e,t.anchorOffset,n,t.focusOffset)?nt.some(Kd.create(e,t.anchorOffset,n,t.focusOffset)):Fh(t)},Vh=function(t){return jh(t).filter(function(t){return t.rangeCount>0}).bind(Bh)},zh=function(t,e){var n=Sh(t,e);return vh(n)},Uh=function(t,e){var n=Sh(t,e);return yh(n)},Hh=function(t,e){return{element:t,offset:e}},qh=function(t,e){var n=xn(t);if(0===n.length)return Hh(t,e);if(e<n.length)return Hh(n[e],0);var r=n[n.length-1],i=Ee(r)?Th(r).length:xn(r).length;return Hh(r,i)},Wh=function(t,e){return Ee(t)?Hh(t,e):qh(t,e)},Gh=function(t,e){return e.getSelection.getOrThunk(function(){return function(){return Vh(t)}})().map(function(t){var e=Wh(t.start,t.soffset),n=Wh(t.finish,t.foffset);return fh.range(e.element,e.offset,n.element,n.offset)})},Yh=function(t,e,n){var r=vn(e.root).dom,i=Ud(t,0,e),o=Gh(r,e).bind(function(t){return Uh(r,fh.exactFromRange(t)).orThunk(function(){var e=_e.fromText("\ufeff");Ar(t.start,e);var n=zh(r,fh.exact(e,0,e,1));return $r(e),n}).bind(function(t){return Hd(t.left,t.top,t.width,t.height)})}),a=Gh(r,e).bind(function(t){return Ce(t.start)?nt.some(t.start):bn(t.start)}),s=a.getOr(t.element);return qd(o,i,e,n,s)},Kh=[Lo("getSelection"),To("root"),Lo("bubble"),Ad(),qo("overrides",{}),qo("showAbove",!1),nc("placement",Yh)],Xh=function(t){return t.x+t.width},Jh=function(t,e){return t.x-e.width},Qh=function(t,e){return t.y-e.height+t.height},Zh=function(t){return t.y},tp=function(t,e,n){return oc(Xh(t),Zh(t),n.southeast(),cc(),"southeast",wc(t,{left:0,top:2}),"link-layout")},ep=function(t,e,n){return oc(Jh(t,e),Zh(t),n.southwest(),fc(),"southwest",wc(t,{right:1,top:2}),"link-layout")},np=function(t,e,n){return oc(Xh(t),Qh(t,e),n.northeast(),dc(),"northeast",wc(t,{left:0,bottom:3}),"link-layout")},rp=function(t,e,n){return oc(Jh(t,e),Qh(t,e),n.northwest(),hc(),"northwest",wc(t,{right:1,bottom:3}),"link-layout")},ip=function(){return[tp,ep,np,rp]},op=function(){return[ep,tp,rp,np]},ap=function(t,e,n){var r=Cf(n,e.item.element),i=Od(t.element,e,ip(),op(),ip(),op(),nt.none());return nt.some(kd({anchorBox:r,bubble:xd(),overrides:e.overrides,layouts:i,placer:nt.none()}))},sp=[To("item"),Ad(),qo("overrides",{}),nc("placement",ap)],up=ko("type",{selection:Kh,node:Gd,hotspot:Nd,submenu:sp,makeshift:Md}),lp=[$o("classes",uo),Ko("mode","all",["all","layout","placement"])],cp=[qo("useFixed",Y),Lo("getBounds")],fp=[Ao("anchor",up),Uo("transition",lp)],dp=function(){var t=document.documentElement;return Nf(0,0,t.clientWidth,t.clientHeight)},hp=function(t){var e=pr(t.element),n=t.element.dom.getBoundingClientRect();return Pf(e.left,e.top,n.width,n.height)},pp=function(t,e,n,r,i,o,a){var s=Mf(n.anchorBox,e);return yd(s,i.element,n.bubble,n.layouts,o,r,n.overrides,a)},gp=function(t,e,n,r,i){mp(t,e,n,r,i,nt.none())},mp=function(t,e,n,r,i,o){var a=o.map(Qr);return vp(t,e,n,r,i,a)},vp=function(t,e,n,r,i,o){var a=wo("placement.info",Zi(fp),i),s=a.anchor,u=r.element,l=n.get(r.uid);yf(function(){Kn(u,"position","fixed");var i=tr(u,"visibility");Kn(u,"visibility","hidden");var c=e.useFixed()?dp():hp(t),f=s.placement,d=o.map(U).or(e.getBounds);f(t,s,c).each(function(e){var i=e.placer.getOr(pp),o=i(t,c,e,d,r,l,a.transition);n.set(r.uid,o)}),i.fold(function(){rr(u,"visibility")},function(t){Kn(u,"visibility",t)}),tr(u,"left").isNone()&&tr(u,"top").isNone()&&tr(u,"right").isNone()&&tr(u,"bottom").isNone()&&Kt(tr(u,"position"),"fixed")&&rr(u,"position")},u)},yp=function(t,e,n){return e.useFixed()?"fixed":"absolute"},bp=function(t,e,n,r){var i=r.element;ht(["position","left","right","top","bottom"],function(t){return rr(i,t)}),$f(i),n.clear(r.uid)},_p=Object.freeze({__proto__:null,position:gp,positionWithin:mp,positionWithinBounds:vp,getMode:yp,reset:bp}),wp=function(){var t={},e=function(e,n){t[e]=n},n=function(e){return Wt(t,e)},r=function(e){R(e)?delete t[e]:t={}};return _u({readState:function(){return t},clear:r,set:e,get:n})},xp=Object.freeze({__proto__:null,init:wp}),kp=of({fields:cp,name:"positioning",active:ff,apis:_p,state:xp}),Sp=function(t){bs(t,cs());var e=t.components();ht(e,Sp)},Cp=function(t){var e=t.components();ht(e,Cp),bs(t,ls())},Ep=function(t,e){Nr(t.element,e.element)},Tp=function(t){ht(t.components(),function(t){return $r(t.element)}),Rr(t.element),t.syncComponents()},Ap=function(t,e){var n=t.components();Tp(t);var r=Et(n,e);ht(r,function(e){Sp(e),t.getSystem().removeFromWorld(e)}),ht(e,function(e){e.getSystem().isConnected()?Ep(t,e):(t.getSystem().addToWorld(e),Ep(t,e),Ln(t.element)&&Cp(e)),t.syncComponents()})},Op=function(t,e){Pp(t,e,Nr)},Pp=function(t,e,n){t.getSystem().addToWorld(e),n(t.element,e.element),Ln(t.element)&&Cp(e),t.syncComponents()},Np=function(t){Sp(t),$r(t.element),t.getSystem().removeFromWorld(t)},Dp=function(t){var e=yn(t.element).bind(function(e){return t.getSystem().getByDom(e).toOptional()});Np(t),e.each(function(t){t.syncComponents()})},Mp=function(t){var e=t.components();ht(e,Np),Rr(t.element),t.syncComponents()},Ip=function(t,e){$p(t,e,Nr)},Rp=function(t,e){$p(t,e,Or)},$p=function(t,e,n){n(t,e.element);var r=xn(e.element);ht(r,function(t){e.getByDom(t).each(Cp)})},Lp=function(t){var e=xn(t.element);ht(e,function(e){t.getByDom(e).each(Sp)}),$r(t.element)},jp=function(t,e,n,r){n.get().each(function(e){Mp(t)});var i=e.getAttachPoint(t);Op(i,t);var o=t.getSystem().build(r);return Op(t,o),n.set(o),o},Fp=function(t,e,n,r){var i=jp(t,e,n,r);return e.onOpen(t,i),i},Bp=function(t,e,n,r){return n.get().map(function(){return jp(t,e,n,r)})},Vp=function(t,e,n,r,i){Yp(t,e),Fp(t,e,n,r),i(),Xp(t,e)},zp=function(t,e,n){n.get().each(function(r){Mp(t),Dp(t),e.onClose(t,r),n.clear()})},Up=function(t,e,n){return n.isOpen()},Hp=function(t,e,n,r){return Up(0,0,n)&&n.get().exists(function(n){return e.isPartOf(t,n,r)})},qp=function(t,e,n){return n.get()},Wp=function(t,e,n,r){tr(t.element,e).fold(function(){Wn(t.element,n)},function(e){Vn(t.element,n,e)}),Kn(t.element,e,r)},Gp=function(t,e,n){Hn(t.element,n).fold(function(){return rr(t.element,e)},function(n){return Kn(t.element,e,n)})},Yp=function(t,e,n){var r=e.getAttachPoint(t);Kn(t.element,"position",kp.getMode(r)),Wp(t,"visibility",e.cloakVisibilityAttr,"hidden")},Kp=function(t){return lt(["top","left","right","bottom"],function(e){return tr(t,e).isSome()})},Xp=function(t,e,n){Kp(t.element)||rr(t.element,"position"),Gp(t,"visibility",e.cloakVisibilityAttr)},Jp=Object.freeze({__proto__:null,cloak:Yp,decloak:Xp,open:Fp,openWhileCloaked:Vp,close:zp,isOpen:Up,isPartOf:Hp,getState:qp,setContent:Bp}),Qp=function(t,e){return Cs([As(ns(),function(n,r){zp(n,t,e)})])},Zp=Object.freeze({__proto__:null,events:Qp}),tg=[Ql("onOpen"),Ql("onClose"),To("isPartOf"),To("getAttachPoint"),qo("cloakVisibilityAttr","data-precloak-visibility")],eg=function(){var t=Gf(),e=U("not-implemented");return _u({readState:e,isOpen:t.isSet,clear:t.clear,set:t.set,get:t.get})},ng=Object.freeze({__proto__:null,init:eg}),rg=of({fields:tg,name:"sandboxing",active:Zp,apis:Jp,state:ng}),ig=U("dismiss.popups"),og=U("reposition.popups"),ag=U("mouse.released"),sg=Qi([qo("isExtraPart",Y),Uo("fireEventInstead",[qo("event",fs())])]),ug=function(t){var e,n=wo("Dismissal",sg,t);return e={},e[ig()]={schema:Qi([To("target")]),onReceive:function(t,e){if(rg.isOpen(t)){rg.isPartOf(t,e.target)||n.isExtraPart(t,e.target)||n.fireEventInstead.fold(function(){return rg.close(t)},function(e){return bs(t,e.event)})}}},e},lg=Qi([Uo("fireEventInstead",[qo("event",ds())]),Do("doReposition")]),cg=function(t){var e,n=wo("Reposition",lg,t);return e={},e[og()]={onReceive:function(t){rg.isOpen(t)&&n.fireEventInstead.fold(function(){return n.doReposition(t)},function(e){return bs(t,e.event)})}},e},fg=function(t,e,n){e.store.manager.onLoad(t,e,n)},dg=function(t,e,n){e.store.manager.onUnload(t,e,n)},hg=function(t,e,n,r){e.store.manager.setValue(t,e,n,r)},pg=function(t,e,n){return e.store.manager.getValue(t,e,n)},gg=function(t,e,n){return n},mg=Object.freeze({__proto__:null,onLoad:fg,onUnload:dg,setValue:hg,getValue:pg,getState:gg}),vg=function(t,e){var n=t.resetOnDom?[Ls(function(n,r){fg(n,t,e)}),js(function(n,r){dg(n,t,e)})]:[Xc(t,e,fg)];return Cs(n)},yg=Object.freeze({__proto__:null,events:vg}),bg=function(){var t=ta(null),e=function(){return{mode:"memory",value:t.get()}},n=function(){return null===t.get()},r=function(){t.set(null)};return _u({set:t.set,get:t.get,isNotSet:n,clear:r,readState:e})},_g=function(){return _u({readState:F})},wg=function(){var t=ta({}),e=ta({}),n=function(){return{mode:"dataset",dataByValue:t.get(),dataByText:e.get()}},r=function(){t.set({}),e.set({})};return _u({readState:n,lookup:function(n){return Wt(t.get(),n).orThunk(function(){return Wt(e.get(),n)})},update:function(n){var r=t.get(),i=e.get(),o={},a={};ht(n,function(t){o[t.value]=t,Wt(t,"meta").each(function(e){Wt(e,"text").each(function(e){a[e]=t})})}),t.set(J(J({},r),o)),e.set(J(J({},i),a))},clear:r})},xg=function(t){return t.store.manager.state(t)},kg=Object.freeze({__proto__:null,memory:bg,dataset:wg,manual:_g,init:xg}),Sg=function(t,e,n,r){var i=e.store;n.update([r]),i.setValue(t,r),e.onSetValue(t,r)},Cg=function(t,e,n){var r=e.store,i=r.getDataKey(t);return n.lookup(i).getOrThunk(function(){return r.getFallbackEntry(i)})},Eg=function(t,e,n){e.store.initialValue.each(function(r){Sg(t,e,n,r)})},Tg=function(t,e,n){n.clear()},Ag=[Lo("initialValue"),To("getFallbackEntry"),To("getDataKey"),To("setValue"),nc("manager",{setValue:Sg,getValue:Cg,onLoad:Eg,onUnload:Tg,state:wg})],Og=function(t,e,n){return e.store.getValue(t)},Pg=function(t,e,n,r){e.store.setValue(t,r),e.onSetValue(t,r)},Ng=function(t,e,n){e.store.initialValue.each(function(n){e.store.setValue(t,n)})},Dg=[To("getValue"),qo("setValue",F),Lo("initialValue"),nc("manager",{setValue:Pg,getValue:Og,onLoad:Ng,onUnload:F,state:bu.init})],Mg=function(t,e,n,r){n.set(r),e.onSetValue(t,r)},Ig=function(t,e,n){return n.get()},Rg=function(t,e,n){e.store.initialValue.each(function(t){n.isNotSet()&&n.set(t)})},$g=function(t,e,n){n.clear()},Lg=[Lo("initialValue"),nc("manager",{setValue:Mg,getValue:Ig,onLoad:Rg,onUnload:$g,state:bg})],jg=[Wo("store",{mode:"memory"},ko("mode",{memory:Lg,manual:Dg,dataset:Ag})),Ql("onSetValue"),qo("resetOnDom",!1)],Fg=of({fields:jg,name:"representing",active:yg,apis:mg,extra:{setValueFrom:function(t,e){var n=Fg.getValue(e);Fg.setValue(t,n)}},state:kg}),Bg=function(t,e){return Zo(t,{},dt(e,function(e){return Mo(e.name(),"Cannot configure "+e.name()+" for "+t)}).concat([Co("dump",H)]))},Vg=function(t){return t.dump},zg=function(t,e){return J(J({},nf(e)),t.dump)},Ug={field:Bg,augment:zg,get:Vg},Hg=na.generate([{single:["required","valueThunk"]},{multiple:["required","valueThunks"]}]),qg=function(t){return Gt(t,"uiType")},Wg=function(t,e,n,r){return t.exists(function(t){return t!==n.owner})?Hg.single(!0,U(n)):Wt(r,n.name).fold(function(){throw new Error("Unknown placeholder component: "+n.name+"\nKnown: ["+Rt(r)+"]\nNamespace: "+t.getOr("none")+"\nSpec: "+JSON.stringify(n,null,2))},function(t){return t.replace()})},Gg=function(t,e,n,r){return qg(n)&&"placeholder"===n.uiType?Wg(t,0,n,r):Hg.single(!1,U(n))},Yg=function(t,e,n,r){return Gg(t,0,n,r).fold(function(i,o){var a=qg(n)?o(e,n.config,n.validated):o(e),s=Wt(a,"components").getOr([]),u=kt(s,function(n){return Yg(t,e,n,r)});return[J(J({},a),{components:u})]},function(t,r){if(qg(n)){var i=r(e,n.config,n.validated);return n.validated.preprocess.getOr(H)(i)}return r(e)})},Kg=function(t,e,n,r){return kt(n,function(n){return Yg(t,e,n,r)})},Xg=function(t,e){var n=!1,r=function(){return n},i=function(){if(n)throw new Error("Trying to use the same placeholder more than once: "+t);return n=!0,e},o=function(){return e.fold(function(t,e){return t},function(t,e){return t})};return{name:U(t),required:o,used:r,replace:i}},Jg=function(t,e,n,r){var i=jt(r,function(t,e){return Xg(e,t)}),o=Kg(t,e,n,i);return Lt(i,function(n){if(!1===n.used()&&n.required())throw new Error("Placeholder: "+n.name()+" was not found in components list\nNamespace: "+t.getOr("none")+"\nComponents: "+JSON.stringify(e.components,null,2))}),o},Qg=Hg.single,Zg=Hg.multiple,tm=U("placeholder"),em=na.generate([{required:["data"]},{external:["data"]},{optional:["data"]},{group:["data"]}]),nm=qo("factory",{sketch:H}),rm=qo("schema",[]),im=To("name"),om=So("pname","pname",Ci(function(t){return"<alloy."+Zs(t.name)+">"}),oo()),am=Co("schema",function(){return[Lo("preprocess")]}),sm=qo("defaults",U({})),um=qo("overrides",U({})),lm=Zi([nm,rm,im,om,sm,um]),cm=Zi([nm,rm,im,sm,um]),fm=Zi([nm,rm,im,om,sm,um]),dm=Zi([nm,am,im,To("unit"),om,sm,um]),hm=function(t){return t.fold(nt.some,nt.none,nt.some,nt.some)},pm=function(t){var e=function(t){return t.name};return t.fold(e,e,e,e)},gm=function(t){return t.fold(H,H,H,H)},mm=function(t,e){return function(n){var r=wo("Converting part type",e,n);return t(r)}},vm=mm(em.required,lm),ym=mm(em.external,cm),bm=mm(em.optional,fm),_m=mm(em.group,dm),wm=U("entirety"),xm=Object.freeze({__proto__:null,required:vm,external:ym,optional:bm,group:_m,asNamedPart:hm,name:pm,asCommon:gm,original:wm}),km=function(t,e,n,r){return xi(e.defaults(t,n,r),n,{uid:t.partUids[e.name]},e.overrides(t,n,r))},Sm=function(t,e,n){var r={},i={};return ht(n,function(t){t.fold(function(t){r[t.pname]=Qg(!0,function(e,n,r){return t.factory.sketch(km(e,t,n,r))})},function(t){var n=e.parts[t.name];i[t.name]=U(t.factory.sketch(km(e,t,n[wm()]),n))},function(t){r[t.pname]=Qg(!1,function(e,n,r){return t.factory.sketch(km(e,t,n,r))})},function(t){r[t.pname]=Zg(!0,function(e,n,r){var i=e[t.name];return dt(i,function(n){return t.factory.sketch(xi(t.defaults(e,n,r),n,t.overrides(e,n)))})})})}),{internals:U(r),externals:U(i)}},Cm=function(t,e){var n={};return ht(e,function(e){hm(e).each(function(e){var r=Em(t,e.pname);n[e.name]=function(n){var i=wo("Part: "+e.name+" in "+t,Zi(e.schema),n);return J(J({},r),{config:n,validated:i})}})}),n},Em=function(t,e){return{uiType:tm(),owner:t,name:e}},Tm=function(t,e,n){return{uiType:tm(),owner:t,name:e,config:n,validated:{}}},Am=function(t){return kt(t,function(t){return t.fold(nt.none,nt.some,nt.none,nt.none).map(function(t){return Io(t.name,t.schema.concat([rc(wm())]))}).toArray()})},Om=function(t){return dt(t,pm)},Pm=function(t,e,n){return Sm(0,e,n)},Nm=function(t,e,n){return Jg(nt.some(t),e,e.components,n)},Dm=function(t,e,n){var r=e.partUids[n];return t.getSystem().getByUid(r).toOptional()},Mm=function(t,e,n){return Dm(t,e,n).getOrDie("Could not find part: "+n)},Im=function(t,e,n){var r={},i=e.partUids,o=t.getSystem();return ht(n,function(t){r[t]=U(o.getByUid(i[t]))}),r},Rm=function(t,e){var n=t.getSystem();return jt(e.partUids,function(t,e){return U(n.getByUid(t))})},$m=function(t){return Rt(t.partUids)},Lm=function(t,e,n){var r={},i=e.partUids,o=t.getSystem();return ht(n,function(t){r[t]=U(o.getByUid(i[t]).getOrDie())}),r},jm=function(t,e){var n=Om(e);return fa(dt(n,function(e){return{key:e,value:t+"-"+e}}))},Fm=function(t){return So("partUids","partUids",Ai(function(e){return jm(e.uid,t)}),oo())},Bm=Object.freeze({__proto__:null,generate:Cm,generateOne:Tm,schemas:Am,names:Om,substitutes:Pm,components:Nm,defaultUids:jm,defaultUidsSchema:Fm,getAllParts:Rm,getAllPartNames:$m,getPart:Dm,getPartOrDie:Mm,getParts:Im,getPartsOrDie:Lm}),Vm=function(t,e){return(t.length>0?[Io("parts",t)]:[]).concat([To("uid"),qo("dom",{}),qo("components",[]),rc("originalSpec"),qo("debug.sketcher",{})]).concat(e)},zm=function(t,e,n,r,i){var o=Vm(r,i);return wo(t+" [SpecSchema]",Qi(o.concat(e)),n)},Um=function(t,e,n,r){var i=Wm(r);return n(zm(t,e,i,[],[]),i)},Hm=function(t,e,n,r,i){var o=Wm(i),a=Am(n),s=Fm(n),u=zm(t,e,o,a,[s]),l=Pm(0,u,n);return r(u,Nm(t,u,l.internals()),o,l.externals())},qm=function(t){return Gt(t,"uid")},Wm=function(t){return qm(t)?t:J(J({},t),{uid:su("uid")})},Gm=function(t){return void 0!==t.uid},Ym=Qi([To("name"),To("factory"),To("configFields"),qo("apis",{}),qo("extraApis",{})]),Km=Qi([To("name"),To("factory"),To("configFields"),To("partFields"),qo("apis",{}),qo("extraApis",{})]),Xm=function(t){var e=wo("Sketcher for "+t.name,Ym,t),n=function(t){return Um(e.name,e.configFields,e.factory,t)},r=jt(e.apis,yu),i=jt(e.extraApis,function(t,e){return hu(t,e)});return J(J({name:e.name,configFields:e.configFields,sketch:n},r),i)},Jm=function(t){var e=wo("Sketcher for "+t.name,Km,t),n=function(t){return Hm(e.name,e.configFields,e.partFields,e.factory,t)},r=Cm(e.name,e.partFields),i=jt(e.apis,yu),o=jt(e.extraApis,function(t,e){return hu(t,e)});return J(J({name:e.name,partFields:e.partFields,configFields:e.configFields,sketch:n,parts:r},i),o)},Qm=function(t){return"input"===xe(t)&&"radio"!==Un(t,"type")||"textarea"===xe(t)},Zm=function(t,e,n){return e.find(t)},tv=Object.freeze({__proto__:null,getCurrent:Zm}),ev=[To("find")],nv=of({fields:ev,name:"composing",apis:tv}),rv=["input","button","textarea","select"],iv=function(t,e,n){(e.disabled()?dv:hv)(t,e)},ov=function(t,e){return!0===e.useNative&&ut(rv,xe(t.element))},av=function(t){return qn(t.element,"disabled")},sv=function(t){Vn(t.element,"disabled","disabled")},uv=function(t){Wn(t.element,"disabled")},lv=function(t){return"true"===Un(t.element,"aria-disabled")},cv=function(t){Vn(t.element,"aria-disabled","true")},fv=function(t){Vn(t.element,"aria-disabled","false")},dv=function(t,e,n){e.disableClass.each(function(e){tl(t.element,e)}),(ov(t,e)?sv:cv)(t),e.onDisabled(t)},hv=function(t,e,n){e.disableClass.each(function(e){nl(t.element,e)}),(ov(t,e)?uv:fv)(t),e.onEnabled(t)},pv=function(t,e){return ov(t,e)?av(t):lv(t)},gv=function(t,e,n,r){(r?dv:hv)(t,e)},mv=Object.freeze({__proto__:null,enable:hv,disable:dv,isDisabled:pv,onLoad:iv,set:gv}),vv=function(t,e){return Cu({classes:e.disabled()?e.disableClass.toArray():[]})},yv=function(t,e){return Cs([Es(Qa(),function(e,n){return pv(e,t)}),Xc(t,e,iv)])},bv=Object.freeze({__proto__:null,exhibit:vv,events:yv}),_v=[Jo("disabled",Y),qo("useNative",!0),Lo("disableClass"),Ql("onDisabled"),Ql("onEnabled")],wv=of({fields:_v,name:"disabling",active:bv,apis:mv}),xv=function(t,e,n,r){var i=Rh(t.element,"."+e.highlightClass);ht(i,function(n){lt(r,function(t){return t.element===n})||(nl(n,e.highlightClass),t.getSystem().getByDom(n).each(function(n){e.onDehighlight(t,n),bs(n,ys())}))})},kv=function(t,e,n){return xv(t,e,0,[])},Sv=function(t,e,n,r){Pv(t,e,n,r)&&(nl(r.element,e.highlightClass),e.onDehighlight(t,r),bs(r,ys()))},Cv=function(t,e,n,r){xv(t,e,0,[r]),Pv(t,e,n,r)||(tl(r.element,e.highlightClass),e.onHighlight(t,r),bs(r,vs()))},Ev=function(t,e,n){Mv(t,e).each(function(r){Cv(t,e,n,r)})},Tv=function(t,e,n){Iv(t,e).each(function(r){Cv(t,e,n,r)})},Av=function(t,e,n,r){Dv(t,e,n,r).fold(function(t){throw t},function(r){Cv(t,e,n,r)})},Ov=function(t,e,n,r){var i=jv(t,e);_t(i,r).each(function(r){Cv(t,e,n,r)})},Pv=function(t,e,n,r){return rl(r.element,e.highlightClass)},Nv=function(t,e,n){return Nl(t.element,"."+e.highlightClass).bind(function(e){return t.getSystem().getByDom(e).toOptional()})},Dv=function(t,e,n,r){var i=Rh(t.element,"."+e.itemClass);return nt.from(i[r]).fold(function(){return ii.error(new Error("No element found with index "+r))},t.getSystem().getByDom)},Mv=function(t,e,n){return Nl(t.element,"."+e.itemClass).bind(function(e){return t.getSystem().getByDom(e).toOptional()})},Iv=function(t,e,n){var r=Rh(t.element,"."+e.itemClass);return(r.length>0?nt.some(r[r.length-1]):nt.none()).bind(function(e){return t.getSystem().getByDom(e).toOptional()})},Rv=function(t,e,n,r){var i=Rh(t.element,"."+e.itemClass);return wt(i,function(t){return rl(t,e.highlightClass)}).bind(function(e){var n=yc(e,r,0,i.length-1);return t.getSystem().getByDom(i[n]).toOptional()})},$v=function(t,e,n){return Rv(t,e,0,-1)},Lv=function(t,e,n){return Rv(t,e,0,1)},jv=function(t,e,n){var r=Rh(t.element,"."+e.itemClass);return Jt(dt(r,function(e){return t.getSystem().getByDom(e).toOptional()}))},Fv=Object.freeze({__proto__:null,dehighlightAll:kv,dehighlight:Sv,highlight:Cv,highlightFirst:Ev,highlightLast:Tv,highlightAt:Av,highlightBy:Ov,isHighlighted:Pv,getHighlighted:Nv,getFirst:Mv,getLast:Iv,getPrevious:$v,getNext:Lv,getCandidates:jv}),Bv=[To("highlightClass"),To("itemClass"),Ql("onHighlight"),Ql("onDehighlight")],Vv=of({fields:Bv,name:"highlighting",apis:Fv}),zv=[8],Uv=[9],Hv=[13],qv=[27],Wv=[32],Gv=[37],Yv=[38],Kv=[39],Xv=[40],Jv=function(t,e,n){var r=Ct(t.slice(0,e)),i=Ct(t.slice(e+1));return _t(r.concat(i),n)},Qv=function(t,e,n){var r=Ct(t.slice(0,e));return _t(r,n)},Zv=function(t,e,n){var r=t.slice(0,e),i=t.slice(e+1);return _t(i.concat(r),n)},ty=function(t,e,n){var r=t.slice(e+1);return _t(r,n)},ey=function(t){return function(e){var n=e.raw;return ut(t,n.which)}},ny=function(t){return function(e){return St(t,function(t){return t(e)})}},ry=function(t){return!0===t.raw.shiftKey},iy=function(t){return!0===t.raw.ctrlKey},oy=W(ry),ay=function(t,e){return{matches:t,classification:e}},sy=function(t,e){return _t(t,function(t){return t.matches(e)}).map(function(t){return t.classification})},uy=function(t,e,n){e.exists(function(t){return n.exists(function(e){return cn(e,t)})})||_s(t,hs(),{prevFocus:e,newFocus:n})},ly=function(){var t=function(t){return vf(t.element)};return{get:t,set:function(e,n){var r=t(e);e.getSystem().triggerFocus(n,e.element);var i=t(e);uy(e,r,i)}}},cy=function(){var t=function(t){return Vv.getHighlighted(t).map(function(t){return t.element})};return{get:t,set:function(e,n){var r=t(e);e.getSystem().getByDom(n).fold(F,function(t){Vv.highlight(e,t)});var i=t(e);uy(e,r,i)}}};!function(t){t.OnFocusMode="onFocus",t.OnEnterOrSpaceMode="onEnterOrSpace",t.OnApiMode="onApi"}(Ch||(Ch={}));var fy=function(t,e,n,r,i){var o=function(){return t.concat([qo("focusManager",ly()),Wo("focusInside","onFocus",mo(function(t){return ut(["onFocus","onEnterOrSpace","onApi"],t)?ii.value(t):ii.error("Invalid value for focusInside")})),nc("handler",u),nc("state",e),nc("sendFocusIn",i)])},a=function(t,e,n,r,i){var o=n(t,e,r,i);return sy(o,e.event).bind(function(n){return n(t,e,r,i)})},s=function(t,e){var o=t.focusInside!==Ch.OnFocusMode?nt.none():i(t).map(function(n){return As(Ya(),function(r,i){n(r,t,e),i.stop()})}),s=function(n,r){var o=ey(Wv.concat(Hv))(r.event);t.focusInside===Ch.OnEnterOrSpaceMode&&o&&ya(n,r)&&i(t).each(function(i){i(n,t,e),r.stop()})},u=[As(La(),function(r,i){a(r,i,n,t,e).fold(function(){s(r,i)},function(t){i.stop()})}),As(ja(),function(n,i){a(n,i,r,t,e).each(function(t){i.stop()})})];return Cs(o.toArray().concat(u))},u={schema:o,processKey:a,toEvents:s};return u},dy=function(t){var e=[Lo("onEscape"),Lo("onEnter"),qo("selector",'[data-alloy-tabstop="true"]:not(:disabled)'),qo("firstTabstop",0),qo("useTabstopAt",K),Lo("visibilitySelector")].concat([t]),r=function(t,e){var n=t.visibilitySelector.bind(function(t){return Dl(e,t)}).getOr(e);return sr(n)>0},i=function(t,e){var n=Rh(t.element,e.selector),i=mt(n,function(t){return r(e,t)});return nt.from(i[e.firstTabstop])},o=function(t,e){return e.focusManager.get(t).bind(function(t){return Dl(t,e.selector)})},a=function(t,e){return r(t,e)&&t.useTabstopAt(e)},s=function(t,e,n){i(t,e).each(function(n){e.focusManager.set(t,n)})},u=function(t,e,n,r,i){return i(e,n,function(t){return a(r,t)}).fold(function(){return r.cyclic?nt.some(!0):nt.none()},function(e){return r.focusManager.set(t,e),nt.some(!0)})},l=function(t,e,r,i){var a=Rh(t.element,r.selector);return o(t,r).bind(function(e){return wt(a,n(cn,e)).bind(function(e){return u(t,a,e,r,i)})})},c=function(t,e,n){var r=n.cyclic?Jv:Qv;return l(t,0,n,r)},f=function(t,e,n){var r=n.cyclic?Zv:ty;return l(t,0,n,r)},d=function(t,e,n){return n.onEnter.bind(function(n){return n(t,e)})},h=function(t,e,n){return n.onEscape.bind(function(n){return n(t,e)})},p=U([ay(ny([ry,ey(Uv)]),c),ay(ey(Uv),f),ay(ey(qv),h),ay(ny([oy,ey(Hv)]),d)]),g=U([]);return fy(e,bu.init,p,g,function(){return nt.some(s)})},hy=dy(Co("cyclic",Y)),py=dy(Co("cyclic",K)),gy=function(t,e,n){return xs(t,n,Qa()),nt.some(!0)},my=function(t,e,n){return Qm(n)&&ey(Wv)(e.event)?nt.none():gy(t,0,n)},vy=function(t,e){return nt.some(!0)},yy=[qo("execute",my),qo("useSpace",!1),qo("useEnter",!0),qo("useControlEnter",!1),qo("useDown",!1)],by=function(t,e,n){return n.execute(t,e,t.element)},_y=function(t,e,n,r){var i=n.useSpace&&!Qm(t.element)?Wv:[],o=n.useEnter?Hv:[],a=n.useDown?Xv:[],s=i.concat(o).concat(a);return[ay(ey(s),by)].concat(n.useControlEnter?[ay(ny([iy,ey(Hv)]),by)]:[])},wy=function(t,e,n,r){return n.useSpace&&!Qm(t.element)?[ay(ey(Wv),vy)]:[]},xy=fy(yy,bu.init,_y,wy,function(){return nt.none()}),ky=function(){var t=Gf(),e=function(e,n){t.set({numRows:e,numColumns:n})},n=function(){return t.get().map(function(t){return t.numRows})},r=function(){return t.get().map(function(t){return t.numColumns})};return _u({readState:function(){return t.get().map(function(t){return{numRows:String(t.numRows),numColumns:String(t.numColumns)}}).getOr({numRows:"?",numColumns:"?"})},setGridSize:e,getNumRows:n,getNumColumns:r})},Sy=function(t){return t.state(t)},Cy=Object.freeze({__proto__:null,flatgrid:ky,init:Sy}),Ey=function(t){return function(e,n,r,i){var o=t(e.element);return Py(o,e,n,r,i)}},Ty=function(t,e){var n=Sd(t,e);return Ey(n)},Ay=function(t,e){var n=Sd(e,t);return Ey(n)},Oy=function(t){return function(e,n,r,i){return Py(t,e,n,r,i)}},Py=function(t,e,n,r,i){return r.focusManager.get(e).bind(function(n){return t(e.element,n,r,i)}).map(function(t){return r.focusManager.set(e,t),!0})},Ny=Oy,Dy=Oy,My=Oy,Iy=function(t){return t.offsetWidth<=0&&t.offsetHeight<=0},Ry=function(t){return!Iy(t.dom)},$y=function(t,e){return wt(t,e).map(function(e){return{index:e,candidates:t}})},Ly=function(t,e,n){var r=function(t){return cn(t,e)},i=Rh(t,n),o=mt(i,Ry);return $y(o,r)},jy=function(t,e){return wt(t,function(t){return cn(e,t)})},Fy=function(t,e,n,r){return r(Math.floor(e/n),e%n).bind(function(e){var r=e.row*n+e.column;return r>=0&&r<t.length?nt.some(t[r]):nt.none()})},By=function(t,e,n,r,i){return Fy(t,e,r,function(e,o){var a=e===n-1,s=a?t.length-e*r:r,u=yc(o,i,0,s-1);return nt.some({row:e,column:u})})},Vy=function(t,e,n,r,i){return Fy(t,e,r,function(e,o){var a=yc(e,i,0,n-1),s=a===n-1,u=s?t.length-a*r:r,l=bc(o,0,u-1);return nt.some({row:a,column:l})})},zy=function(t,e,n,r){return By(t,e,n,r,1)},Uy=function(t,e,n,r){return By(t,e,n,r,-1)},Hy=function(t,e,n,r){return Vy(t,e,n,r,-1)},qy=function(t,e,n,r){return Vy(t,e,n,r,1)},Wy=[To("selector"),qo("execute",my),Zl("onEscape"),qo("captureTab",!1),ic()],Gy=function(t,e,n){Nl(t.element,e.selector).each(function(n){e.focusManager.set(t,n)})},Yy=function(t,e){return e.focusManager.get(t).bind(function(t){return Dl(t,e.selector)})},Ky=function(t,e,n,r){return Yy(t,n).bind(function(r){return n.execute(t,e,r)})},Xy=function(t){return function(e,n,r,i){return Ly(e,n,r.selector).bind(function(e){return t(e.candidates,e.index,i.getNumRows().getOr(r.initSize.numRows),i.getNumColumns().getOr(r.initSize.numColumns))})}},Jy=function(t,e,n){return n.captureTab?nt.some(!0):nt.none()},Qy=function(t,e,n){return n.onEscape(t,e)},Zy=Xy(Uy),tb=Xy(zy),eb=Xy(Hy),nb=Xy(qy),rb=U([ay(ey(Gv),Ty(Zy,tb)),ay(ey(Kv),Ay(Zy,tb)),ay(ey(Yv),Ny(eb)),ay(ey(Xv),Dy(nb)),ay(ny([ry,ey(Uv)]),Jy),ay(ny([oy,ey(Uv)]),Jy),ay(ey(qv),Qy),ay(ey(Wv.concat(Hv)),Ky)]),ib=U([ay(ey(Wv),vy)]),ob=fy(Wy,ky,rb,ib,function(){return nt.some(Gy)}),ab=function(t,e,n,r){var i=function(t){return"button"===xe(t)&&"disabled"===Un(t,"disabled")},o=function(t,e,n){var a=yc(e,r,0,n.length-1);return a===t?nt.none():i(n[a])?o(t,a,n):nt.from(n[a])};return Ly(t,n,e).bind(function(t){var e=t.index,n=t.candidates;return o(e,e,n)})},sb=[To("selector"),qo("getInitial",nt.none),qo("execute",my),Zl("onEscape"),qo("executeOnMove",!1),qo("allowVertical",!0)],ub=function(t,e){return e.focusManager.get(t).bind(function(t){return Dl(t,e.selector)})},lb=function(t,e,n){return ub(t,n).bind(function(r){return n.execute(t,e,r)})},cb=function(t,e,n){e.getInitial(t).orThunk(function(){return Nl(t.element,e.selector)}).each(function(n){e.focusManager.set(t,n)})},fb=function(t,e,n){return ab(t,n.selector,e,-1)},db=function(t,e,n){return ab(t,n.selector,e,1)},hb=function(t){return function(e,n,r,i){return t(e,n,r,i).bind(function(){return r.executeOnMove?lb(e,n,r):nt.some(!0)})}},pb=function(t,e,n){return n.onEscape(t,e)},gb=function(t,e,n,r){var i=Gv.concat(n.allowVertical?Yv:[]),o=Kv.concat(n.allowVertical?Xv:[]);return[ay(ey(i),hb(Ty(fb,db))),ay(ey(o),hb(Ay(fb,db))),ay(ey(Hv),lb),ay(ey(Wv),lb),ay(ey(qv),pb)]},mb=U([ay(ey(Wv),vy)]),vb=fy(sb,bu.init,gb,mb,function(){return nt.some(cb)}),yb=function(t,e,n){return nt.from(t[e]).bind(function(t){return nt.from(t[n]).map(function(t){return{rowIndex:e,columnIndex:n,cell:t}})})},bb=function(t,e,n,r){var i=t[e],o=i.length,a=yc(n,r,0,o-1);return yb(t,e,a)},_b=function(t,e,n,r){var i=yc(n,r,0,t.length-1),o=t[i].length,a=bc(e,0,o-1);return yb(t,i,a)},wb=function(t,e,n,r){var i=t[e],o=i.length,a=bc(n+r,0,o-1);return yb(t,e,a)},xb=function(t,e,n,r){var i=bc(n+r,0,t.length-1),o=t[i].length,a=bc(e,0,o-1);return yb(t,i,a)},kb=function(t,e,n){return bb(t,e,n,1)},Sb=function(t,e,n){return bb(t,e,n,-1)},Cb=function(t,e,n){return _b(t,n,e,-1)},Eb=function(t,e,n){return _b(t,n,e,1)},Tb=function(t,e,n){return wb(t,e,n,-1)},Ab=function(t,e,n){return wb(t,e,n,1)},Ob=function(t,e,n){return xb(t,n,e,-1)},Pb=function(t,e,n){return xb(t,n,e,1)},Nb=[Io("selectors",[To("row"),To("cell")]),qo("cycles",!0),qo("previousSelector",nt.none),qo("execute",my)],Db=function(t,e,n){e.previousSelector(t).orThunk(function(){var n=e.selectors;return Nl(t.element,n.cell)}).each(function(n){e.focusManager.set(t,n)})},Mb=function(t,e,n){return vf(t.element).bind(function(r){return n.execute(t,e,r)})},Ib=function(t,e){return dt(t,function(t){return Rh(t,e.selectors.cell)})},Rb=function(t,e){return function(n,r,i){var o=i.cycles?t:e;return Dl(r,i.selectors.row).bind(function(t){var e=Rh(t,i.selectors.cell);return jy(e,r).bind(function(e){var r=Rh(n,i.selectors.row);return jy(r,t).bind(function(t){var n=Ib(r,i);return o(n,t,e).map(function(t){return t.cell})})})})}},$b=Rb(Sb,Tb),Lb=Rb(kb,Ab),jb=Rb(Cb,Ob),Fb=Rb(Eb,Pb),Bb=U([ay(ey(Gv),Ty($b,Lb)),ay(ey(Kv),Ay($b,Lb)),ay(ey(Yv),Ny(jb)),ay(ey(Xv),Dy(Fb)),ay(ey(Wv.concat(Hv)),Mb)]),Vb=U([ay(ey(Wv),vy)]),zb=fy(Nb,bu.init,Bb,Vb,function(){return nt.some(Db)}),Ub=[To("selector"),qo("execute",my),qo("moveOnTab",!1)],Hb=function(t,e,n){return n.focusManager.get(t).bind(function(r){return n.execute(t,e,r)})},qb=function(t,e,n){Nl(t.element,e.selector).each(function(n){e.focusManager.set(t,n)})},Wb=function(t,e,n){return ab(t,n.selector,e,-1)},Gb=function(t,e,n){return ab(t,n.selector,e,1)},Yb=function(t,e,n,r){return n.moveOnTab?My(Wb)(t,e,n,r):nt.none()},Kb=function(t,e,n,r){return n.moveOnTab?My(Gb)(t,e,n,r):nt.none()},Xb=U([ay(ey(Yv),My(Wb)),ay(ey(Xv),My(Gb)),ay(ny([ry,ey(Uv)]),Yb),ay(ny([oy,ey(Uv)]),Kb),ay(ey(Hv),Hb),ay(ey(Wv),Hb)]),Jb=U([ay(ey(Wv),vy)]),Qb=fy(Ub,bu.init,Xb,Jb,function(){return nt.some(qb)}),Zb=[Zl("onSpace"),Zl("onEnter"),Zl("onShiftEnter"),Zl("onLeft"),Zl("onRight"),Zl("onTab"),Zl("onShiftTab"),Zl("onUp"),Zl("onDown"),Zl("onEscape"),qo("stopSpaceKeyup",!1),Lo("focusIn")],t_=function(t,e,n){return[ay(ey(Wv),n.onSpace),ay(ny([oy,ey(Hv)]),n.onEnter),ay(ny([ry,ey(Hv)]),n.onShiftEnter),ay(ny([ry,ey(Uv)]),n.onShiftTab),ay(ny([oy,ey(Uv)]),n.onTab),ay(ey(Yv),n.onUp),ay(ey(Xv),n.onDown),ay(ey(Gv),n.onLeft),ay(ey(Kv),n.onRight),ay(ey(Wv),n.onSpace),ay(ey(qv),n.onEscape)]},e_=function(t,e,n){return n.stopSpaceKeyup?[ay(ey(Wv),vy)]:[]},n_=fy(Zb,bu.init,t_,e_,function(t){return t.focusIn}),r_=hy.schema(),i_=py.schema(),o_=vb.schema(),a_=ob.schema(),s_=zb.schema(),u_=xy.schema(),l_=Qb.schema(),c_=n_.schema(),f_=Object.freeze({__proto__:null,acyclic:r_,cyclic:i_,flow:o_,flatgrid:a_,matrix:s_,execution:u_,menu:l_,special:c_}),d_=function(t){return Yt(t,"setGridSize")},h_=sf({branchKey:"mode",branches:f_,name:"keying",active:{events:function(t,e){return t.handler.toEvents(t,e)}},apis:{focusIn:function(t,e,n){e.sendFocusIn(e).fold(function(){t.getSystem().triggerFocus(t.element,t.element)},function(r){r(t,e,n)})},setGridSize:function(t,e,n,r,i){d_(n)?n.setGridSize(r,i):console.error("Layout does not support setGridSize")}},state:Cy}),p_=function(t,e,n,r){yf(function(){var e=dt(r,t.getSystem().build);Ap(t,e)},t.element)},g_=function(t,e,n,r){var i=t.getSystem().build(r);Pp(t,i,n)},m_=function(t,e,n,r){g_(t,0,Nr,r)},v_=function(t,e,n,r){g_(t,0,Pr,r)},y_=function(t,e,n,r){var i=b_(t);_t(i,function(t){return cn(r.element,t.element)}).each(Dp)},b_=function(t,e){return t.components()},__=function(t,e,n,r,i){var o=b_(t);return nt.from(o[r]).map(function(e){return y_(t,0,0,e),i.each(function(e){g_(t,0,function(t,e){Dr(t,e,r)},e)}),e})},w_=function(t,e,n,r,i){var o=b_(t);return wt(o,r).bind(function(e){return __(t,0,0,e,i)})},x_=Object.freeze({__proto__:null,append:m_,prepend:v_,remove:y_,replaceAt:__,replaceBy:w_,set:p_,contents:b_}),k_=of({fields:[],name:"replacing",apis:x_}),S_=function(t,e){var n=Cs(e);return of({fields:[To("enabled")],name:t,active:{events:U(n)}})},C_=function(t,e){return{key:t,value:{config:{},me:S_(t,e),configAsRaw:U({}),initialConfig:{},state:bu}}},E_=function(t,e){e.ignore||(hf(t.element),e.onFocus(t))},T_=function(t,e){e.ignore||pf(t.element)},A_=function(t){return gf(t.element)},O_=Object.freeze({__proto__:null,focus:E_,blur:T_,isFocused:A_}),P_=function(t,e){var n=e.ignore?{}:{attributes:{tabindex:"-1"}};return Cu(n)},N_=function(t){return Cs([As(Ya(),function(e,n){E_(e,t),n.stop()})].concat(t.stopMousedown?[As(Pa(),function(t,e){e.event.prevent()})]:[]))},D_=Object.freeze({__proto__:null,exhibit:P_,events:N_}),M_=[Ql("onFocus"),qo("stopMousedown",!1),qo("ignore",!1)],I_=of({fields:M_,name:"focusing",active:D_,apis:O_}),R_=function(t,e,n){var r=e.aria;r.update(t,r,n.get())},$_=function(t,e,n){e.toggleClass.each(function(e){n.get()?tl(t.element,e):nl(t.element,e)})},L_=function(t,e,n){B_(t,e,n,!n.get())},j_=function(t,e,n){n.set(!0),$_(t,e,n),R_(t,e,n)},F_=function(t,e,n){n.set(!1),$_(t,e,n),R_(t,e,n)},B_=function(t,e,n,r){(r?j_:F_)(t,e,n)},V_=function(t,e,n){return n.get()},z_=function(t,e,n){B_(t,e,n,e.selected)},U_=Object.freeze({__proto__:null,onLoad:z_,toggle:L_,isOn:V_,on:j_,off:F_,set:B_}),H_=function(){return Cu({})},q_=function(t,e){var n=Kc(t,e,L_),r=Xc(t,e,z_);return Cs(xt([t.toggleOnExecute?[n]:[],[r]]))},W_=Object.freeze({__proto__:null,exhibit:H_,events:q_}),G_=function(t,e,n){Vn(t.element,"aria-pressed",n),e.syncWithExpanded&&X_(t,e,n)},Y_=function(t,e,n){Vn(t.element,"aria-selected",n)},K_=function(t,e,n){Vn(t.element,"aria-checked",n)},X_=function(t,e,n){Vn(t.element,"aria-expanded",n)},J_=[qo("selected",!1),Lo("toggleClass"),qo("toggleOnExecute",!0),Wo("aria",{mode:"none"},ko("mode",{pressed:[qo("syncWithExpanded",!1),nc("update",G_)],checked:[nc("update",K_)],expanded:[nc("update",X_)],selected:[nc("update",Y_)],none:[nc("update",F)]}))],Q_=of({fields:J_,name:"toggling",active:W_,apis:U_,state:function(t){return{init:function(){var e=ta(t);return{get:function(){return e.get()},set:function(t){return e.set(t)},clear:function(){return e.set(t)},readState:function(){return e.get()}}}}}(!1)}),Z_=function(){var t=function(t,e){e.stop(),ws(t)};return[As(Va(),t),As(ts(),t),Is(Ea()),Is(Pa())]},tw=function(t){var e=function(t){return Bs(function(e,n){t(e),n.stop()})};return Cs(xt([t.map(e).toArray(),Z_()]))},ew=function(t){(vf(t.element).isNone()||I_.isFocused(t))&&(I_.isFocused(t)||I_.focus(t),_s(t,"alloy.item-hover",{item:t}))},nw=function(t){_s(t,"alloy.item-focus",{item:t})},rw=U("alloy.item-hover"),iw=U("alloy.item-focus"),ow=function(t){return{dom:t.dom,domModification:J(J({},t.domModification),{attributes:J(J(J({role:t.toggling.isSome()?"menuitemcheckbox":"menuitem"},t.domModification.attributes),{"aria-haspopup":t.hasSubmenu}),t.hasSubmenu?{"aria-expanded":!1}:{})}),behaviours:Ug.augment(t.itemBehaviours,[t.toggling.fold(Q_.revoke,function(t){return Q_.config(J({aria:{mode:"checked"}},t))}),I_.config({ignore:t.ignoreFocus,stopMousedown:t.ignoreFocus,onFocus:function(t){nw(t)}}),h_.config({mode:"execution"}),Fg.config({store:{mode:"memory",initialValue:t.data}}),C_("item-type-events",i(i([],Z_(),!0),[As(Ia(),ew),As(Za(),I_.focus)],!1))]),components:t.components,eventOrder:t.eventOrder}},aw=[To("data"),To("components"),To("dom"),qo("hasSubmenu",!1),Lo("toggling"),Ug.field("itemBehaviours",[Q_,I_,h_,Fg]),qo("ignoreFocus",!1),qo("domModification",{}),nc("builder",ow),qo("eventOrder",{})],sw=function(t){return{dom:t.dom,components:t.components,events:Cs([Rs(Za())])}},uw=[To("dom"),To("components"),nc("builder",sw)],lw=U("item-widget"),cw=U([vm({name:"widget",overrides:function(t){return{behaviours:nf([Fg.config({store:{mode:"manual",getValue:function(e){return t.data},setValue:F}})])}}})]),fw=function(t){var e=Pm(lw(),t,cw()),n=Nm(lw(),t,e.internals()),r=function(e){return Dm(e,t,"widget").map(function(t){return h_.focusIn(t),t})},i=function(e,n){return Qm(n.event.target)?nt.none():function(){return t.autofocus?(n.setSource(e.element),nt.none()):nt.none()}()};return{dom:t.dom,components:n,domModification:t.domModification,events:Cs([Bs(function(t,e){r(t).each(function(t){e.stop()})}),As(Ia(),ew),As(Za(),function(e,n){t.autofocus?r(e):I_.focus(e)})]),behaviours:Ug.augment(t.widgetBehaviours,[Fg.config({store:{mode:"memory",initialValue:t.data}}),I_.config({ignore:t.ignoreFocus,onFocus:function(t){nw(t)}}),h_.config({mode:"special",focusIn:t.autofocus?function(t){r(t)}:uf(),onLeft:i,onRight:i,onEscape:function(e,n){return I_.isFocused(e)||t.autofocus?t.autofocus?(n.setSource(e.element),nt.none()):nt.none():(I_.focus(e),nt.some(!0))}})])}},dw=[To("uid"),To("data"),To("components"),To("dom"),qo("autofocus",!1),qo("ignoreFocus",!1),Ug.field("widgetBehaviours",[Fg,I_,h_]),qo("domModification",{}),Fm(cw()),nc("builder",fw)],hw=ko("type",{widget:dw,item:aw,separator:uw}),pw=function(t,e){return{mode:"flatgrid",selector:"."+t.markers.item,initSize:{numColumns:e.initSize.numColumns,numRows:e.initSize.numRows},focusManager:t.focusManager}},gw=function(t,e){return{mode:"matrix",selectors:{row:e.rowSelector,cell:"."+t.markers.item},focusManager:t.focusManager}},mw=function(t,e){return{mode:"menu",selector:"."+t.markers.item,moveOnTab:e.moveOnTab,focusManager:t.focusManager}},vw=U([_m({factory:{sketch:function(t){var e=wo("menu.spec item",hw,t);return e.builder(e)}},name:"items",unit:"item",defaults:function(t,e){return Gt(e,"uid")?e:J(J({},e),{uid:su("item")})},overrides:function(t,e){return{type:e.type,ignoreFocus:t.fakeFocus,domModification:{classes:[t.markers.item]}}}})]),yw=U([To("value"),To("items"),To("dom"),To("components"),qo("eventOrder",{}),Bg("menuBehaviours",[Vv,Fg,nv,h_]),Wo("movement",{mode:"menu",moveOnTab:!0},ko("mode",{grid:[ic(),nc("config",pw)],matrix:[nc("config",gw),To("rowSelector")],menu:[qo("moveOnTab",!0),nc("config",mw)]})),function(){return Ao("markers",Gl())}(),qo("fakeFocus",!1),qo("focusManager",ly()),Ql("onHighlight")]),bw=U("alloy.menu-focus"),_w=function(t,e,n,r){return{uid:t.uid,dom:t.dom,markers:t.markers,behaviours:zg(t.menuBehaviours,[Vv.config({highlightClass:t.markers.selectedItem,itemClass:t.markers.item,onHighlight:t.onHighlight}),Fg.config({store:{mode:"memory",initialValue:t.value}}),nv.config({find:nt.some}),h_.config(t.movement.config(t,t.movement))]),events:Cs([As(iw(),function(t,e){var n=e.event;t.getSystem().getByDom(n.target).each(function(n){Vv.highlight(t,n),e.stop(),_s(t,bw(),{menu:t,item:n})})}),As(rw(),function(t,e){var n=e.event.item;Vv.highlight(t,n)})]),components:e,eventOrder:t.eventOrder,domModification:{attributes:{role:"menu"}}}},ww=Jm({name:"Menu",configFields:yw(),partFields:vw(),factory:_w}),xw=function(t){return Ft(t,function(t,e){return{k:t,v:e}})},kw=function(t,e,n,r){return Wt(n,r).bind(function(r){return Wt(t,r).bind(function(r){var i=kw(t,e,n,r);return nt.some([r].concat(i))})}).getOr([])},Sw=function(t,e){var n={};Lt(t,function(t,e){ht(t,function(t){n[t]=e})});var r=e,i=xw(e),o=jt(i,function(t,e){return[e].concat(kw(n,r,i,e))});return jt(n,function(t){return Wt(o,t).getOr([t])})},Cw=function(){var t=ta({}),e=ta({}),n=ta({}),r=Gf(),i=ta({}),o=function(){t.set({}),e.set({}),n.set({}),r.clear()},a=function(){return r.get().isNone()},s=function(t,n){var r;e.set(J(J({},e.get()),(r={},r[t]={type:"prepared",menu:n},r)))},u=function(o,a,s,u){r.set(o),t.set(s),e.set(a),i.set(u);var l=Sw(u,s);n.set(l)},l=function(e){return Ht(t.get(),function(t,n){return t===e})},c=function(t,e,n){return g(t).bind(function(r){return l(t).bind(function(t){return e(t).map(function(t){return{triggeredMenu:r,triggeringItem:t,triggeringPath:n}})})})},f=function(t,e){var i=mt(v(t).toArray(),function(t){return g(t).isSome()});return Wt(n.get(),t).bind(function(t){var n=Ct(i.concat(t)),o=kt(n,function(t,i){return c(t,e,n.slice(0,i+1)).fold(function(){return Kt(r.get(),t)?[]:[nt.none()]},function(t){return[nt.some(t)]})});return Qt(o)})},d=function(e){return Wt(t.get(),e).map(function(t){return[t].concat(Wt(n.get(),e).getOr([]))})},h=function(t){return Wt(n.get(),t).bind(function(t){return t.length>1?nt.some(t.slice(1)):nt.none()})},p=function(t){return Wt(n.get(),t)},g=function(t){return m(t).bind(Ew)},m=function(t){return Wt(e.get(),t)},v=function(e){return Wt(t.get(),e)};return{setMenuBuilt:s,setContents:u,expand:d,refresh:p,collapse:h,lookupMenu:m,lookupItem:v,otherMenus:function(t){var e=i.get();return Et(Rt(e),t)},getPrimary:function(){return r.get().bind(g)},getMenus:function(){return e.get()},clear:o,isClear:a,getTriggeringPath:f}},Ew=function(t){return"prepared"===t.type?nt.some(t.menu):nt.none()},Tw={init:Cw,extractPreparedMenu:Ew},Aw=function(t,e){var n,r=Gf(),i=function(e,n,r){return jt(r,function(r,i){var o=function(){return ww.sketch(J(J({},r),{value:i,markers:t.markers,fakeFocus:t.fakeFocus,onHighlight:t.onHighlight,focusManager:t.fakeFocus?cy():ly()}))};return i===n?{type:"prepared",menu:e.getSystem().build(o())}:{type:"notbuilt",nbMenu:o}})},o=Tw.init(),a=function(e){var n=i(e,t.data.primary,t.data.menus),r=l();return o.setContents(t.data.primary,n,t.data.expansions,r),o.getPrimary()},s=function(t){return Fg.getValue(t).value},u=function(t,e,n){return It(e,function(t){if(!t.getSystem().isConnected())return nt.none();var e=Vv.getCandidates(t);return _t(e,function(t){return s(t)===n})})},l=function(e){return jt(t.data.menus,function(t,e){return kt(t.items,function(t){return"separator"===t.type?[]:[t.data.value]})})},c=function(t,e){Vv.highlight(t,e),Vv.getHighlighted(e).orThunk(function(){return Vv.getFirst(e)}).each(function(e){xs(t,e.element,Za())})},f=function(t,e){return Jt(dt(e,function(e){return t.lookupMenu(e).bind(function(t){return"prepared"===t.type?nt.some(t.menu):nt.none()})}))},d=function(e,n,r){var i=f(n,n.otherMenus(r));ht(i,function(n){ol(n.element,[t.markers.backgroundMenu]),t.stayInDom||k_.remove(e,n)})},h=function(e){return r.get().getOrThunk(function(){var n={},i=Rh(e.element,"."+t.markers.item),o=mt(i,function(t){return"true"===Un(t,"aria-haspopup")});return ht(o,function(t){e.getSystem().getByDom(t).each(function(t){var e=s(t);n[e]=t})}),r.set(n),n})},p=function(t,e){var n=h(t);Lt(n,function(t,n){var r=ut(e,n);Vn(t.element,"aria-expanded",r)})},g=function(e,n,r){return nt.from(r[0]).bind(function(i){return n.lookupMenu(i).bind(function(i){if("notbuilt"===i.type)return nt.none();var o=i.menu,a=f(n,r.slice(1));return ht(a,function(e){tl(e.element,t.markers.backgroundMenu)}),Ln(o.element)||k_.append(e,kl(o)),ol(o.element,[t.markers.backgroundMenu]),c(e,o),d(e,n,r),nt.some(o)})})};!function(t){t[t.HighlightSubmenu=0]="HighlightSubmenu",t[t.HighlightParent=1]="HighlightParent"}(n||(n={}));var m=function(t,e,n){if("notbuilt"===n.type){var r=t.getSystem().build(n.nbMenu());return o.setMenuBuilt(e,r),r}return n.menu},v=function(e,r,i){if(void 0===i&&(i=n.HighlightSubmenu),r.hasConfigured(wv)&&wv.isDisabled(r))return nt.some(r);var a=s(r);return o.expand(a).bind(function(a){return p(e,a),nt.from(a[0]).bind(function(s){return o.lookupMenu(s).bind(function(u){var l=m(e,s,u);return Ln(l.element)||k_.append(e,kl(l)),t.onOpenSubmenu(e,r,l,Ct(a)),i===n.HighlightSubmenu?(Vv.highlightFirst(l),g(e,o,a)):(Vv.dehighlightAll(l),nt.some(r))})})})},y=function(e,n){var r=s(n);return o.collapse(r).bind(function(r){return p(e,r),g(e,o,r).map(function(r){return t.onCollapseMenu(e,n,r),r})})},b=function(t,e){var n=s(e);return o.refresh(n).bind(function(e){return p(t,e),g(t,o,e)})},_=function(t,e){return Qm(e.element)?nt.none():v(t,e,n.HighlightSubmenu)},w=function(t,e){return Qm(e.element)?nt.none():y(t,e)},x=function(e,n){return y(e,n).orThunk(function(){return t.onEscape(e,n).map(function(){return e})})},k=function(e){return function(n,r){return Dl(r.getSource(),"."+t.markers.item).bind(function(t){return n.getSystem().getByDom(t).toOptional().bind(function(t){return e(n,t).map(K)})})}},S=Cs([As(bw(),function(t,e){var n=e.event.item;o.lookupItem(s(n)).each(function(){var n=e.event.menu;Vv.highlight(t,n);var r=s(e.event.item);o.refresh(r).each(function(e){return d(t,o,e)})})}),Bs(function(e,r){var i=r.event.target;e.getSystem().getByDom(i).each(function(r){0===s(r).indexOf("collapse-item")&&y(e,r),v(e,r,n.HighlightSubmenu).fold(function(){t.onExecute(e,r)},F)})}),Ls(function(e,n){a(e).each(function(n){k_.append(e,kl(n)),t.onOpenMenu(e,n),t.highlightImmediately&&c(e,n)})})].concat(t.navigateOnHover?[As(rw(),function(e,r){var i=r.event.item;b(e,i),v(e,i,n.HighlightParent),t.onHover(e,i)})]:[])),C=function(t){return Vv.getHighlighted(t).bind(Vv.getHighlighted)},E=function(t){C(t).each(function(e){y(t,e)})},T=function(t){o.getPrimary().each(function(e){c(t,e)})},A=function(t){return nt.from(t.components()[0]).filter(function(t){return"menu"===Un(t.element,"role")})},O=function(e){o.getPrimary().bind(function(t){return C(e).bind(function(t){var e=s(t),n=qt(o.getMenus()),r=Jt(dt(n,Tw.extractPreparedMenu));return o.getTriggeringPath(e,function(t){return u(0,r,t)})}).map(function(e){return{primary:t,triggeringPath:e}})}).fold(function(){A(e).each(function(n){t.onRepositionMenu(e,n,[])})},function(n){var r=n.primary,i=n.triggeringPath;t.onRepositionMenu(e,r,i)})},P={collapseMenu:E,highlightPrimary:T,repositionMenus:O};return{uid:t.uid,dom:t.dom,markers:t.markers,behaviours:zg(t.tmenuBehaviours,[h_.config({mode:"special",onRight:k(_),onLeft:k(w),onEscape:k(x),focusIn:function(t,e){o.getPrimary().each(function(e){xs(t,e.element,Za())})}}),Vv.config({highlightClass:t.markers.selectedMenu,itemClass:t.markers.menu}),nv.config({find:function(t){return Vv.getHighlighted(t)}}),k_.config({})]),eventOrder:t.eventOrder,apis:P,events:S}},Ow=U("collapse-item"),Pw=function(t,e,n){return{primary:t,menus:e,expansions:n}},Nw=function(t,e){return{primary:t,menus:ca(t,e),expansions:{}}},Dw=function(t){return{value:Zs(Ow()),meta:{text:t}}},Mw=Xm({name:"TieredMenu",configFields:[ec("onExecute"),ec("onEscape"),tc("onOpenMenu"),tc("onOpenSubmenu"),Ql("onRepositionMenu"),Ql("onCollapseMenu"),qo("highlightImmediately",!0),Io("data",[To("primary"),To("menus"),To("expansions")]),qo("fakeFocus",!1),Ql("onHighlight"),Ql("onHover"),Kl(),To("dom"),qo("navigateOnHover",!0),qo("stayInDom",!1),Bg("tmenuBehaviours",[h_,Vv,nv,k_]),qo("eventOrder",{})],apis:{collapseMenu:function(t,e){t.collapseMenu(e)},highlightPrimary:function(t,e){t.highlightPrimary(e)},repositionMenus:function(t,e){t.repositionMenus(e)}},factory:Aw,extraApis:{tieredData:Pw,singleData:Nw,collapseItem:Dw}}),Iw=function(t,e,n,r,i){var o=function(){return t.lazySink(e)},a="horizontal"===r.type?{layouts:{onLtr:function(){return Uc()},onRtl:function(){return Hc()}}}:{},s=function(t){return 2===t.length},u=function(t){return s(t)?a:{}};return Mw.sketch({dom:{tag:"div"},data:r.data,markers:r.menu.markers,highlightImmediately:r.menu.highlightImmediately,onEscape:function(){return rg.close(e),t.onEscape.map(function(t){return t(e)}),nt.some(!0)},onExecute:function(){return nt.some(!0)},onOpenMenu:function(t,e){kp.positionWithinBounds(o().getOrDie(),e,n,i())},onOpenSubmenu:function(t,e,n,r){var i=o().getOrDie();kp.position(i,n,{anchor:J({type:"submenu",item:e},u(r))})},onRepositionMenu:function(t,e,r){var a=o().getOrDie();kp.positionWithinBounds(a,e,n,i()),ht(r,function(t){var e=u(t.triggeringPath);kp.position(a,t.triggeredMenu,{anchor:J({type:"submenu",item:t.triggeringItem},e)})})}})},Rw=function(t,e){var n=function(e,n){return t.getRelated(e).exists(function(t){return $l(t,n)})},r=function(t,e){rg.setContent(t,e)},i=function(t,e,n){o(t,e,n,nt.none())},o=function(t,e,n,r){a(t,e,n,function(){return r.map(function(t){return Qr(t)})})},a=function(e,n,r,i){var o=t.lazySink(e).getOrDie();rg.openWhileCloaked(e,n,function(){return kp.positionWithinBounds(o,e,r,i())}),Fg.setValue(e,nt.some({mode:"position",config:r,getBounds:i}))},s=function(t,e,n){u(t,e,n,nt.none)},u=function(e,n,r,i){var o=Iw(t,e,n,r,i);rg.open(e,o),Fg.setValue(e,nt.some({mode:"menu",menu:o}))},l=function(t){rg.isOpen(t)&&(Fg.setValue(t,nt.none()),rg.close(t))},c=function(t){return rg.getState(t)},f=function(e){rg.isOpen(e)&&Fg.getValue(e).each(function(n){switch(n.mode){case"menu":rg.getState(e).each(Mw.repositionMenus);break;case"position":var r=t.lazySink(e).getOrDie();kp.positionWithinBounds(r,e,n.config,n.getBounds())}})},d={setContent:r,showAt:i,showWithin:o,showWithinBounds:a,showMenuAt:s,showMenuWithinBounds:u,hide:l,getContent:c,reposition:f,isOpen:rg.isOpen};return{uid:t.uid,dom:t.dom,behaviours:zg(t.inlineBehaviours,[rg.config({isPartOf:function(t,e,r){return $l(e,r)||n(t,r)},getAttachPoint:function(e){return t.lazySink(e).getOrDie()},onOpen:function(e){t.onShow(e)},onClose:function(e){t.onHide(e)}}),Fg.config({store:{mode:"memory",initialValue:nt.none()}}),lf.config({channels:J(J({},ug(J({isExtraPart:e.isExtraPart},t.fireDismissalEventInstead.map(function(t){return{fireEventInstead:{event:t.event}}}).getOr({})))),cg(J(J({},t.fireRepositionEventInstead.map(function(t){return{fireEventInstead:{event:t.event}}}).getOr({})),{doReposition:f})))})]),eventOrder:t.eventOrder,apis:d}},$w=Xm({name:"InlineView",configFields:[To("lazySink"),Ql("onShow"),Ql("onHide"),Vo("onEscape"),Bg("inlineBehaviours",[rg,Fg,lf]),Uo("fireDismissalEventInstead",[qo("event",fs())]),Uo("fireRepositionEventInstead",[qo("event",ds())]),qo("getRelated",nt.none),qo("isExtraPart",Y),qo("eventOrder",nt.none)],factory:Rw,apis:{showAt:function(t,e,n,r){t.showAt(e,n,r)},showWithin:function(t,e,n,r,i){t.showWithin(e,n,r,i)},showWithinBounds:function(t,e,n,r,i){t.showWithinBounds(e,n,r,i)},showMenuAt:function(t,e,n,r){t.showMenuAt(e,n,r)},showMenuWithinBounds:function(t,e,n,r,i){t.showMenuWithinBounds(e,n,r,i)},hide:function(t,e){t.hide(e)},isOpen:function(t,e){return t.isOpen(e)},getContent:function(t,e){return t.getContent(e)},setContent:function(t,e,n){t.setContent(e,n)},reposition:function(t,e){t.reposition(e)}}}),Lw=function(t){return t.x},jw=function(t,e){return t.x+t.width/2-e.width/2},Fw=function(t,e){return t.x+t.width-e.width},Bw=function(t){return t.y},Vw=function(t,e){return t.y+t.height-e.height},zw=function(t,e){return t.y+t.height/2-e.height/2},Uw=function(t,e,n){return oc(Fw(t,e),Vw(t,e),n.insetSouthwest(),hc(),"southwest",wc(t,{right:0,bottom:3}),"layout-inset")},Hw=function(t,e,n){return oc(Lw(t),Vw(t,e),n.insetSoutheast(),dc(),"southeast",wc(t,{left:1,bottom:3}),"layout-inset")},qw=function(t,e,n){return oc(Fw(t,e),Bw(t),n.insetNorthwest(),fc(),"northwest",wc(t,{right:0,top:2}),"layout-inset")},Ww=function(t,e,n){return oc(Lw(t),Bw(t),n.insetNortheast(),cc(),"northeast",wc(t,{left:1,top:2}),"layout-inset")},Gw=function(t,e,n){return oc(jw(t,e),Bw(t),n.insetNorth(),pc(),"north",wc(t,{top:2}),"layout-inset")},Yw=function(t,e,n){return oc(jw(t,e),Vw(t,e),n.insetSouth(),gc(),"south",wc(t,{bottom:3}),"layout-inset")},Kw=function(t,e,n){return oc(Fw(t,e),zw(t,e),n.insetEast(),vc(),"east",wc(t,{right:0}),"layout-inset")},Xw=function(t,e,n){return oc(Lw(t),zw(t,e),n.insetWest(),mc(),"west",wc(t,{left:1}),"layout-inset")},Jw=function(t){switch(t){case"north":return Gw;case"northeast":return Ww;case"northwest":return qw;case"south":return Yw;case"southeast":return Hw;case"southwest":return Uw;case"east":return Kw;case"west":return Xw}},Qw=function(t,e,n,r,i){return Rf(r).map(Jw).getOr(Gw)(t,e,n,r,i)},Zw=function(t){switch(t){case"north":return Yw;case"northeast":return Hw;case"northwest":return Uw;case"south":return Gw;case"southeast":return Ww;case"southwest":return qw;case"east":return Xw;case"west":return Kw}},tx=function(t,e,n,r,i){return Rf(r).map(Zw).getOr(Gw)(t,e,n,r,i)},ex=tinymce.util.Tools.resolve("tinymce.util.Delay"),nx=function(t){var e=tw(t.action),n=t.dom.tag,r=function(e){return Wt(t.dom,"attributes").bind(function(t){return Wt(t,e)})};return{uid:t.uid,dom:t.dom,components:t.components,events:e,behaviours:Ug.augment(t.buttonBehaviours,[I_.config({}),h_.config({mode:"execution",useSpace:!0,useEnter:!0})]),domModification:{attributes:function(){if("button"===n){var t=r("type").getOr("button"),e=r("role").map(function(t){return{role:t}}).getOr({});return J({type:t},e)}return{role:r("role").getOr("button")}}()},eventOrder:t.eventOrder}},rx=Xm({name:"Button",factory:nx,configFields:[qo("uid",void 0),To("dom"),qo("components",[]),Ug.field("buttonBehaviours",[I_,h_]),Lo("action"),Lo("role"),qo("eventOrder",{})]}),ix=function(t){var e=void 0!==t.dom.attributes?t.dom.attributes:[];return yt(e,function(t,e){var n;return"class"===e.name?t:J(J({},t),(n={},n[e.name]=e.value,n))},{})},ox=function(t){return Array.prototype.slice.call(t.dom.classList,0)},ax=function(t){var e=_e.fromHtml(t),n=xn(e),r=ix(e),i=ox(e),o=0===n.length?{}:{innerHtml:zs(e)};return J({tag:xe(e),classes:i,attributes:r},o)},sx=function(t){var e=Gm(t)&&Yt(t,"uid")?t.uid:su("memento");return{get:function(t){return t.getSystem().getByUid(e).getOrDie()},getOpt:function(t){return t.getSystem().getByUid(e).toOptional()},asSpec:function(){return J(J({},t),{uid:e})}}},ux=Object.hasOwnProperty,lx=Object.setPrototypeOf,cx=Object.isFrozen,fx=Object.getPrototypeOf,dx=Object.getOwnPropertyDescriptor,hx=Object.freeze,px=Object.seal,gx=Object.create,mx="undefined"!=typeof Reflect&&Reflect,vx=mx.apply,yx=mx.construct;vx||(vx=function(t,e,n){return t.apply(e,n)}),hx||(hx=function(t){return t}),px||(px=function(t){return t}),yx||(yx=function(t,e){return l(t,c(e))});var bx,_x=m(Array.prototype.forEach),wx=m(Array.prototype.pop),xx=m(Array.prototype.push),kx=m(String.prototype.toLowerCase),Sx=m(String.prototype.match),Cx=m(String.prototype.replace),Ex=m(String.prototype.indexOf),Tx=m(String.prototype.trim),Ax=m(RegExp.prototype.test),Ox=function(t){return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return yx(t,n)}}(TypeError),Px=hx(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Nx=hx(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Dx=hx(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Mx=hx(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Ix=hx(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),Rx=hx(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),$x=hx(["#text"]),Lx=hx(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),jx=hx(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Fx=hx(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Bx=hx(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Vx=px(/\{\{[\w\W]*|[\w\W]*\}\}/gm),zx=px(/<%[\w\W]*|[\w\W]*%>/gm),Ux=px(/^data-[\-\w.\u00B7-\uFFFF]/),Hx=px(/^aria-[\-\w]+$/),qx=px(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Wx=px(/^(?:\w+script|data):/i),Gx=px(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Yx=px(/^html$/i),Kx=function(){return"undefined"==typeof window?null:window},Xx=function(t,e){if("object"!==a(t)||"function"!=typeof t.createPolicy)return null;var n=null;e.currentScript&&e.currentScript.hasAttribute("data-tt-policy-suffix")&&(n=e.currentScript.getAttribute("data-tt-policy-suffix"));var r="dompurify"+(n?"#"+n:"");try{return t.createPolicy(r,{createHTML:function(t){return t}})}catch(t){return console.warn("TrustedTypes policy "+r+" could not be created."),null}},Jx=_(),Qx=function(t){return Jx().sanitize(t)},Zx=tinymce.util.Tools.resolve("tinymce.util.I18n"),tk={indent:!0,outdent:!0,"table-insert-column-after":!0,"table-insert-column-before":!0,"paste-column-after":!0,"paste-column-before":!0,"unordered-list":!0,"list-bull-circle":!0,"list-bull-default":!0,"list-bull-square":!0},ek=function(t){return function(){return Wt(t,"temporary-placeholder").getOr("!not found!")}},nk=function(t,e){var n=t.toLowerCase();if(Zx.isRtl()){var r=se(n,"-rtl");return Gt(e,r)?r:n}return n},rk=function(t,e){return Wt(e,nk(t,e))},ik=function(t,e){var n=e();return rk(t,n).getOrThunk(ek(n))},ok=function(t,e,n){var r=e();return rk(t,r).or(n).getOrThunk(ek(r))},ak=function(t){return!!Zx.isRtl()&&Gt(tk,t)},sk=function(){return C_("add-focusable",[Ls(function(t){Pl(t.element,"svg").each(function(t){return Vn(t,"focusable","false")})})])},uk=function(t,e,n,r){var o,a,s=ak(e)?["tox-icon--flip"]:[],u=Wt(n,nk(e,n)).or(r).getOrThunk(ek(n));return{dom:{tag:t.tag,attributes:null!==(o=t.attributes)&&void 0!==o?o:{},classes:t.classes.concat(s),innerHtml:u},behaviours:nf(i(i([],null!==(a=t.behaviours)&&void 0!==a?a:[],!0),[sk()],!1))}},lk=function(t,e,n,r){return void 0===r&&(r=nt.none()),uk(e,t,n(),r)},ck=function(t,e,n){var r=n(),i=_t(t,function(t){return Gt(r,nk(t,r))});return uk(e,i.getOr("temporary-placeholder"),r,nt.none())},fk={success:"checkmark",error:"warning",err:"error",warning:"warning",warn:"warning",info:"info"},dk=function(t){var e=sx({dom:ax("<p>"+Qx(t.translationProvider(t.text))+"</p>"),behaviours:nf([k_.config({})])}),n=function(t){return{dom:{tag:"div",classes:["tox-bar"],attributes:{style:"width: "+t+"%"}}}},r=function(t){return{dom:{tag:"div",classes:["tox-text"],innerHtml:t+"%"}}},i=sx({dom:{tag:"div",classes:t.progress?["tox-progress-bar","tox-progress-indicator"]:["tox-progress-bar"]},components:[{dom:{tag:"div",classes:["tox-bar-container"]},components:[n(0)]},r(0)],behaviours:nf([k_.config({})])}),o=function(t,e){t.getSystem().isConnected()&&i.getOpt(t).each(function(t){k_.set(t,[{dom:{tag:"div",classes:["tox-bar-container"]},components:[n(e)]},r(e)])})},a=function(t,n){if(t.getSystem().isConnected()){var r=e.get(t);k_.set(r,[yl(n)])}},s={updateProgress:o,updateText:a},u=xt([t.icon.toArray(),t.level.toArray(),t.level.bind(function(t){return nt.from(fk[t])}).toArray()]),l=sx(rx.sketch({dom:{tag:"button",classes:["tox-notification__dismiss","tox-button","tox-button--naked","tox-button--icon"]},components:[lk("close",{tag:"div",classes:["tox-icon"],attributes:{"aria-label":t.translationProvider("Close")}},t.iconProvider)],action:function(e){t.onAction(e)}})),c=ck(u,{tag:"div",classes:["tox-notification__icon"]},t.iconProvider),f={dom:{tag:"div",classes:["tox-notification__body"]},components:[e.asSpec()],behaviours:nf([k_.config({})])},d=[c,f];return{uid:t.uid,dom:{tag:"div",attributes:{role:"alert"},classes:t.level.map(function(t){return["tox-notification","tox-notification--in","tox-notification--"+t]}).getOr(["tox-notification","tox-notification--in"])},behaviours:nf([I_.config({}),C_("notification-events",[As(Ra(),function(t){l.getOpt(t).each(I_.focus)})])]),components:d.concat(t.progress?[i.asSpec()]:[]).concat(t.closeButton?[l.asSpec()]:[]),apis:s}},hk=Xm({name:"Notification",factory:dk,configFields:[Lo("level"),To("progress"),To("icon"),To("onAction"),To("text"),To("iconProvider"),To("translationProvider"),Xo("closeButton",!0)],apis:{updateProgress:function(t,e,n){t.updateProgress(e,n)},updateText:function(t,e,n){t.updateText(e,n)}}}),pk=function(t,e){var n=null;return{cancel:function(){N(n)||(clearTimeout(n),n=null)},throttle:function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];N(n)&&(n=setTimeout(function(){n=null,t.apply(null,r)},e))}}},gk=function(t,e){var n=null,r=function(){N(n)||(clearTimeout(n),n=null)};return{cancel:r,throttle:function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];r(),n=setTimeout(function(){n=null,t.apply(null,i)},e)}}},mk=tinymce.util.Tools.resolve("tinymce.dom.TextSeeker"),vk=function(t,e){return t.isBlock(e)||ut(["BR","IMG","HR","INPUT"],e.nodeName)||"false"===t.getContentEditable(e)},yk=function(t,e,n,r,i){var o=mk(t,function(e){return vk(t,e)});return nt.from(o.backwards(e,n,r,i))},bk=function(t,e){return _k(_e.fromDom(t.selection.getNode())).getOrThunk(function(){var n=_e.fromHtml('<span data-mce-autocompleter="1" data-mce-bogus="1"></span>',t.getDoc());return Nr(n,_e.fromDom(e.extractContents())),e.insertNode(n.dom),yn(n).each(function(t){return t.dom.normalize()}),Mh(n).map(function(e){t.selection.setCursorLocation(e.dom,Oh(e))}),n})},_k=function(t){return Dl(t,"[data-mce-autocompleter]")},wk=function(t){return t.collapsed&&3===t.startContainer.nodeType},xk=function(t){return t.toString().replace(/\u00A0/g," ").replace(/\uFEFF/g,"")},kk=function(t){return""!==t&&-1!=="  \f\n\r\t\v".indexOf(t)},Sk=function(t,e){return t.substring(e.length)},Ck=function(t,e,n){var r;for(r=e-1;r>=0;r--){var i=t.charAt(r);if(kk(i))return nt.none();if(i===n)break}return nt.some(r)},Ek=function(t,e,n,r){if(void 0===r&&(r=0),!wk(e))return nt.none();var i=function(t,e,r){return Ck(r,e,n).getOr(e)},o=t.getParent(e.startContainer,t.isBlock)||t.getRoot();return yk(t,e.startContainer,e.startOffset,i,o).bind(function(t){var i=e.cloneRange();if(i.setStart(t.container,t.offset),i.setEnd(e.endContainer,e.endOffset),i.collapsed)return nt.none();var o=xk(i);return 0!==o.lastIndexOf(n)||Sk(o,n).length<r?nt.none():nt.some({text:Sk(o,n),range:i,triggerChar:n})})},Tk=function(t,e,n,r){return void 0===r&&(r=0),_k(_e.fromDom(e.startContainer)).fold(function(){return Ek(t,e,n,r)},function(e){var r=t.createRng();r.selectNode(e.dom);var i=xk(r);return nt.some({range:r,text:Sk(i,n),triggerChar:n})})},Ak=function(t,e){e.on("keypress compositionend",t.onKeypress.throttle),e.on("remove",t.onKeypress.cancel);var n=function(t,e){_s(t,La(),{raw:e})};e.on("keydown",function(e){var r=function(){return t.getView().bind(Vv.getHighlighted)};8===e.which&&t.onKeypress.throttle(e),t.isActive()&&(27===e.which&&t.cancelIfNecessary(),t.isMenuOpen()?13===e.which?(r().each(ws),e.preventDefault()):40===e.which?(r().fold(function(){t.getView().each(Vv.highlightFirst)},function(t){n(t,e)}),e.preventDefault(),e.stopImmediatePropagation()):37!==e.which&&38!==e.which&&39!==e.which||r().each(function(t){n(t,e),e.preventDefault(),e.stopImmediatePropagation()}):13!==e.which&&38!==e.which&&40!==e.which||t.cancelIfNecessary())}),e.on("NodeChange",function(e){t.isActive()&&!t.isProcessingAction()&&_k(_e.fromDom(e.element)).isNone()&&t.cancelIfNecessary()})},Ok={setup:Ak},Pk=tinymce.util.Tools.resolve("tinymce.util.Promise"),Nk=function(t,e){return{container:t,offset:e}},Dk=function(t){return 3===t.nodeType},Mk=function(t){return 1===t.nodeType},Ik=function(t){if(Dk(t))return Nk(t,t.data.length);var e=t.childNodes;return e.length>0?Ik(e[e.length-1]):Nk(t,e.length)},Rk=function(t,e){var n=t.childNodes;return n.length>0&&e<n.length?Rk(n[e],0):n.length>0&&Mk(t)&&n.length===e?Ik(n[n.length-1]):Nk(t,e)},$k=function(t,e){return yk(t,e.container,e.offset,function(t,e){return 0===e?-1:e},t.getRoot()).filter(function(t){var e=t.container.data.charAt(t.offset-1);return!kk(e)}).isSome()},Lk=function(t){return function(e){var n=Rk(e.startContainer,e.startOffset);return!$k(t,n)}},jk=function(t,e,n){return It(n.triggerChars,function(n){return Tk(t,e,n)})},Fk=function(t,e){var n=e(),r=t.selection.getRng();return jk(t.dom,r,n).bind(function(n){return Bk(t,e,n)})},Bk=function(t,e,n,r){void 0===r&&(r={});var i=e(),o=t.selection.getRng(),a=o.startContainer.nodeValue,s=mt(i.lookupByChar(n.triggerChar),function(e){return n.text.length>=e.minChars&&e.matches.getOrThunk(function(){return Lk(t.dom)})(n.range,a,n.text)});if(0===s.length)return nt.none();var u=Pk.all(dt(s,function(t){return t.fetch(n.text,t.maxResults,r).then(function(e){return{matchText:n.text,items:e,columns:t.columns,onAction:t.onAction,highlightOn:t.highlightOn}})}));return nt.some({lookupData:u,context:n})},Vk=Zi([Po("type"),Bo("text")]),zk=function(t){return bo("separatormenuitem",Vk,t)},Uk=Zi([qo("type","autocompleteitem"),qo("active",!1),qo("disabled",!1),qo("meta",{}),Po("value"),Bo("text"),Bo("icon")]),Hk=Zi([Po("type"),Po("ch"),Go("minChars",1),qo("columns",1),Go("maxResults",10),Vo("matches"),Do("fetch"),Do("onAction"),Qo("highlightOn",[],uo)]),qk=function(t){return bo("Autocompleter.Separator",Vk,t)},Wk=function(t){return bo("Autocompleter.Item",Uk,t)},Gk=function(t){return bo("Autocompleter",Hk,t)},Yk=[Xo("disabled",!1),Bo("tooltip"),Bo("icon"),Bo("text"),Jo("onSetup",function(){return F})],Kk=Zi([Po("type"),Do("onAction")].concat(Yk)),Xk=function(t){return bo("toolbarbutton",Kk,t)},Jk=[Xo("active",!1)].concat(Yk),Qk=Zi(Jk.concat([Po("type"),Do("onAction")])),Zk=function(t){return bo("ToggleButton",Qk,t)},tS=[Jo("predicate",Y),Ko("scope","node",["node","editor"]),Ko("position","selection",["node","selection","line"])],eS=Yk.concat([qo("type","contextformbutton"),qo("primary",!1),Do("onAction"),Co("original",H)]),nS=Jk.concat([qo("type","contextformbutton"),qo("primary",!1),Do("onAction"),Co("original",H)]),rS=Yk.concat([qo("type","contextformbutton")]),iS=Jk.concat([qo("type","contextformtogglebutton")]),oS=ko("type",{contextformbutton:eS,contextformtogglebutton:nS}),aS=Zi([qo("type","contextform"),Jo("initValue",U("")),Bo("label"),$o("commands",oS),jo("launch",ko("type",{contextformbutton:rS,contextformtogglebutton:iS}))].concat(tS)),sS=function(t){return bo("ContextForm",aS,t)},uS=Zi([qo("type","contexttoolbar"),Po("items")].concat(tS)),lS=function(t){return bo("ContextToolbar",uS,t)},cS=function(t){var e={};return ht(t,function(t){e[t]={}}),Rt(e)},fS=function(t){var e=t.ui.registry.getAll().popups,n=jt(e,function(t){return Gk(t).fold(function(t){throw new Error(xo(t))},H)}),r=cS(Ut(n,function(t){return t.ch})),i=qt(n);return{dataset:n,triggerChars:r,lookupByChar:function(t){return mt(i,function(e){return e.ch===t})}}};!function(t){t[t.CLOSE_ON_EXECUTE=0]="CLOSE_ON_EXECUTE",t[t.BUBBLE_TO_SANDBOX=1]="BUBBLE_TO_SANDBOX"}(bx||(bx={}));var dS,hS=bx,pS="tox-menu-nav__js",gS={normal:pS,color:"tox-swatch"},mS="tox-collection__item-label",vS="tox-collection__item--active",yS=function(t){return Wt(gS,t).getOr(pS)},bS=function(t){return"color"===t?"tox-swatches":"tox-menu"},_S=function(t){return{backgroundMenu:"tox-background-menu",selectedMenu:"tox-selected-menu",selectedItem:"tox-collection__item--active",hasIcons:"tox-menu--has-icons",menu:bS(t),tieredMenu:"tox-tiered-menu"}},wS=function(t){var e=_S(t);return{backgroundMenu:e.backgroundMenu,selectedMenu:e.selectedMenu,menu:e.menu,selectedItem:e.selectedItem,item:yS(t)}},xS=function(t,e,n){var r=_S(n);return{tag:"div",classes:xt([[r.menu,"tox-menu-"+e+"-column"],t?[r.hasIcons]:[]])}},kS=[ww.parts.items({})],SS=function(t,e,n){var r=_S(n);return{dom:{tag:"div",classes:xt([[r.tieredMenu]])},markers:wS(n)}},CS=function(t,e){return function(n){var r=ft(n,e);return dt(r,function(e){return{dom:t,components:e}})}},ES=function(t){return{dom:{tag:"div",classes:["tox-menu","tox-swatches-menu"]},components:[{dom:{tag:"div",classes:["tox-swatches"]},components:[ww.parts.items({preprocess:"auto"!==t?CS({tag:"div",classes:["tox-swatches__row"]},t):H})]}]}},TS=function(t){return{dom:{tag:"div",classes:["tox-menu","tox-collection","tox-collection--toolbar","tox-collection--toolbar-lg"]},components:[ww.parts.items({preprocess:CS({tag:"div",classes:["tox-collection__group"]},t)})]}},AS=function(t,e){var n=[],r=[];return ht(t,function(t,i){e(t,i)?(r.length>0&&n.push(r),r=[],Gt(t.dom,"innerHtml")&&r.push(t)):r.push(t)}),r.length>0&&n.push(r),dt(n,function(t){return{dom:{tag:"div",classes:["tox-collection__group"]},components:t}})},OS=function(t,e,n){return{dom:{tag:"div",classes:["tox-menu","tox-collection"].concat(1===t?["tox-collection--list"]:["tox-collection--grid"])},components:[ww.parts.items({preprocess:function(n){return"auto"!==t&&t>1?CS({tag:"div",classes:["tox-collection__group"]},t)(n):AS(n,function(t,n){return"separator"===e[n].type})}})]}},PS=function(t,e){return{dom:{tag:"div",classes:["tox-collection","tox-collection--horizontal"]},components:[ww.parts.items({preprocess:function(e){return AS(e,function(e,n){return"separator"===t[n].type})}})]}},NS=function(t){return lt(t,function(t){return"icon"in t&&void 0!==t.icon})},DS=function(t){return console.error(xo(t)),console.log(t),nt.none()},MS=function(t,e,n,r,i){var o=PS(n);return{value:t,dom:o.dom,components:o.components,items:n}},IS=function(t,e,n,r,i){if("color"===i){var o=ES(r);return{value:t,dom:o.dom,components:o.components,items:n}}if("normal"===i&&"auto"===r){var o=OS(r,n);return{value:t,dom:o.dom,components:o.components,items:n}}if("normal"===i&&1===r){var o=OS(1,n);return{value:t,dom:o.dom,components:o.components,items:n}}if("normal"===i){var o=OS(r,n);return{value:t,dom:o.dom,components:o.components,items:n}}if("listpreview"===i&&"auto"!==r){var o=TS(r);return{value:t,dom:o.dom,components:o.components,items:n}}return{value:t,dom:xS(e,r,i),components:kS,items:n}},RS=[Po("type"),Po("src"),Bo("alt"),Qo("classes",[],uo)],$S=Zi(RS),LS=[Po("type"),Po("text"),Bo("name"),Qo("classes",["tox-collection__item-label"],uo)],jS=Zi(LS),FS=Xi(function(){return go("type",{cardimage:$S,cardtext:jS,cardcontainer:BS})}),BS=Zi([Po("type"),Yo("direction","horizontal"),Yo("align","left"),Yo("valign","middle"),$o("items",FS)]),VS=[Xo("disabled",!1),Bo("text"),Bo("shortcut"),So("value","value",Ci(function(){return Zs("menuitem-value")}),oo()),qo("meta",{})],zS=Zi([Po("type"),Bo("label"),$o("items",FS),Jo("onSetup",function(){return F}),Jo("onAction",F)].concat(VS)),US=function(t){return bo("cardmenuitem",zS,t)},HS=Zi([Po("type"),Xo("active",!1),Bo("icon")].concat(VS)),qS=function(t){return bo("choicemenuitem",HS,t)},WS=[Po("type"),Po("fancytype"),Jo("onAction",F)],GS=[qo("initData",{})].concat(WS),YS=[Zo("initData",{},[Xo("allowCustomColors",!0),zo("colors",oo())])].concat(WS),KS=ko("fancytype",{inserttable:GS,colorswatch:YS}),XS=function(t){return bo("fancymenuitem",KS,t)},JS=Zi([Po("type"),Jo("onSetup",function(){return F}),Jo("onAction",F),Bo("icon")].concat(VS)),QS=function(t){return bo("menuitem",JS,t)},ZS=Zi([Po("type"),Do("getSubmenuItems"),Jo("onSetup",function(){return F}),Bo("icon")].concat(VS)),tC=function(t){return bo("nestedmenuitem",ZS,t)},eC=Zi([Po("type"),Bo("icon"),Xo("active",!1),Jo("onSetup",function(){return F}),Do("onAction")].concat(VS)),nC=function(t){return bo("togglemenuitem",eC,t)},rC=function(t,e,n){var r=Rh(t.element,"."+n);if(r.length>0){var i=wt(r,function(t){var n=t.dom.getBoundingClientRect().top,i=r[0].dom.getBoundingClientRect().top;return Math.abs(n-i)>e}).getOr(r.length);return nt.some({numColumns:i,numRows:Math.ceil(r.length/i)})}return nt.none()},iC=function(t,e){return nf([C_(t,e)])},oC=function(t){return iC(Zs("unnamed-events"),t)},aC={namedEvents:iC,unnamedEvents:oC},sC=Zs("tooltip.exclusive"),uC=Zs("tooltip.show"),lC=Zs("tooltip.hide"),cC=function(t,e,n){t.getSystem().broadcastOn([sC],{})},fC=function(t,e,n,r){n.getTooltip().each(function(t){t.getSystem().isConnected()&&k_.set(t,r)})},dC=Object.freeze({__proto__:null,hideAllExclusive:cC,setComponents:fC}),hC=function(t,e){var n=function(n){e.getTooltip().each(function(r){Dp(r),t.onHide(n,r),e.clearTooltip()}),e.clearTimer()},r=function(n){if(!e.isShowing()){cC(n);var r=t.lazySink(n).getOrDie(),i=n.getSystem().build({dom:t.tooltipDom,components:t.tooltipComponents,events:Cs("normal"===t.mode?[As(Ia(),function(t){bs(n,uC)}),As(Da(),function(t){bs(n,lC)})]:[]),behaviours:nf([k_.config({})])});e.setTooltip(i),Op(r,i),t.onShow(n,i),kp.position(r,i,{anchor:t.anchor(n)})}};return Cs(xt([[As(uC,function(n){e.resetTimer(function(){r(n)},t.delay)}),As(lC,function(r){e.resetTimer(function(){n(r)},t.delay)}),As(Ja(),function(t,e){var r=e;r.universal||ut(r.channels,sC)&&n(t)}),js(function(t){n(t)})],"normal"===t.mode?[As(Ra(),function(t){bs(t,uC)}),As(Ka(),function(t){bs(t,lC)}),As(Ia(),function(t){bs(t,uC)}),As(Da(),function(t){bs(t,lC)})]:[As(vs(),function(t,e){bs(t,uC)}),As(ys(),function(t){bs(t,lC)})]]))},pC=Object.freeze({__proto__:null,events:hC}),gC=[To("lazySink"),To("tooltipDom"),qo("exclusive",!0),qo("tooltipComponents",[]),qo("delay",300),Ko("mode","normal",["normal","follow-highlight"]),qo("anchor",function(t){return{type:"hotspot",hotspot:t,layouts:{onLtr:U([$c,Rc,Nc,Mc,Dc,Ic]),onRtl:U([$c,Rc,Nc,Mc,Dc,Ic])}}}),Ql("onHide"),Ql("onShow")],mC=function(){var t=Gf(),e=Gf(),n=function(){t.on(clearTimeout)},r=function(e,r){n(),t.set(setTimeout(e,r))},i=U("not-implemented");return _u({getTooltip:e.get,isShowing:e.isSet,setTooltip:e.set,clearTooltip:e.clear,clearTimer:n,resetTimer:r,readState:i})},vC=Object.freeze({__proto__:null,init:mC}),yC=of({fields:gC,name:"tooltipping",active:pC,state:vC,apis:dC}),bC=function(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")},_C=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),wC=tinymce.util.Tools.resolve("tinymce.EditorManager"),xC=function(t){var e=t.getParam("skin"),n=t.getParam("skin_url");if(!1!==e){var r=e||"oxide";n=n?t.documentBaseURI.toAbsolute(n):wC.baseURL+"/skins/ui/"+r}return n},kC=function(t){return t.getParam("readonly",!1,"boolean")},SC=function(t){return!1===t.getParam("skin")},CC=function(t){return t.getParam("height",Math.max(t.getElement().offsetHeight,200))},EC=function(t){return t.getParam("width",_C.DOM.getStyle(t.getElement(),"width"))},TC=function(t){return nt.from(t.getParam("min_width")).filter(L)},AC=function(t){return nt.from(t.getParam("min_height")).filter(L)},OC=function(t){return nt.from(t.getParam("max_width")).filter(L)},PC=function(t){return nt.from(t.getParam("max_height")).filter(L)},NC=function(t){return nt.from(t.getParam("style_formats")).filter(P)},DC=function(t){return t.getParam("style_formats_merge",!1,"boolean")},MC=function(t){return t.getParam("lineheight_formats","1 1.1 1.2 1.3 1.4 1.5 2","string").split(" ")},IC=function(t){return t.getParam("content_langs",void 0,"array")},RC=function(t){return t.getParam("removed_menuitems","")},$C=function(t){return!1!==t.getParam("menubar",!0,"boolean")},LC=function(t){var e=t.getParam("toolbar",!0),n=!0===e,r=A(e),i=P(e)&&e.length>0;return!FC(t)&&(i||r||n)},jC=function(t){var e=ct(9,function(e){return t.getParam("toolbar"+(e+1),!1,"string")}),n=mt(e,function(t){return"string"==typeof t});return n.length>0?nt.some(n):nt.none()},FC=function(t){return jC(t).fold(function(){return t.getParam("toolbar",[],"string[]").length>0},K)};!function(t){t.default="wrap",t.floating="floating",t.sliding="sliding",t.scrolling="scrolling"}(dS||(dS={}));var BC,VC=function(t){return t.getParam("toolbar_mode","","string")};!function(t){t.auto="auto",t.top="top",t.bottom="bottom"}(BC||(BC={}));var zC,UC,HC=function(t){return t.getParam("toolbar_groups",{},"object")},qC=function(t){return t.getParam("toolbar_location",BC.auto,"string")},WC=function(t){return qC(t)===BC.bottom},GC=function(t){return t.getParam("fixed_toolbar_container","","string")},YC=function(t){return t.getParam("fixed_toolbar_container_target")},KC=function(t){return t.getParam("toolbar_persist",!1,"boolean")},XC=function(t){if(!t.inline)return nt.none();var e=GC(t);if(e.length>0)return Nl(jn(),e);var n=YC(t);return R(n)?nt.some(_e.fromDom(n)):nt.none()},JC=function(t){return t.inline&&XC(t).isSome()},QC=function(t){return XC(t).getOrThunk(function(){return Nn(Pn(_e.fromDom(t.getElement())))})},ZC=function(t){return t.inline&&!$C(t)&&!LC(t)&&!FC(t)},tE=function(t){return(t.getParam("toolbar_sticky",!1,"boolean")||t.inline)&&!JC(t)&&!ZC(t)},eE=function(t){return t.getParam("toolbar_sticky_offset",0,"number")},nE=function(t){return t.getParam("draggable_modal",!1,"boolean")},rE=function(t){var e=t.getParam("menu");return e?jt(e,function(t){return J(J({},t),{items:t.items})}):{}},iE=function(t){return t.getParam("menubar")},oE=function(t){return t.getParam("toolbar",!0)},aE=function(t){return t.getParam("file_picker_callback")},sE=function(t){return t.getParam("file_picker_types")},uE=function(t){return t.getParam("file_browser_callback_types")},lE=function(t){return!1===t.getParam("typeahead_urls")},cE=function(t){return t.getParam("anchor_top","#top")},fE=function(t){return t.getParam("anchor_bottom","#bottom")},dE=function(t){var e=t.getParam("file_picker_validator_handler",void 0,"function");return void 0===e?t.getParam("filepicker_validator_handler",void 0,"function"):e},hE=Zi([function(t){return Ao(t,lo)}("readonly")]),pE=function(t,e){var n=t.outerContainer,r=n.element;e&&(t.mothership.broadcastOn([ig()],{target:r}),t.uiMothership.broadcastOn([ig()],{target:r})),t.mothership.broadcastOn(["silver.readonly"],{readonly:e}),t.uiMothership.broadcastOn(["silver.readonly"],{readonly:e})},gE=function(t,e){t.on("init",function(){t.mode.isReadOnly()&&pE(e,!0)}),t.on("SwitchMode",function(){return pE(e,t.mode.isReadOnly())}),kC(t)&&t.setMode("readonly")},mE=function(){var t;return lf.config({channels:(t={},t["silver.readonly"]={schema:hE,onReceive:function(t,e){wv.set(t,e.readonly)}},t)})},vE=function(t){return wv.config({disabled:t,disableClass:"tox-collection__item--state-disabled"})},yE=function(t){return wv.config({disabled:t})},bE=function(t){return wv.config({disabled:t,disableClass:"tox-tbtn--disabled"})},_E=function(t){return wv.config({disabled:t,disableClass:"tox-tbtn--disabled",useNative:!1})},wE={item:vE,button:yE,splitButton:bE,toolbarButton:_E},xE=function(t,e){var n=t.getApi(e);return function(t){t(n)}},kE=function(t,e){return Ls(function(n){xE(t,n)(function(n){var r=t.onSetup(n);$(r)&&e.set(r)})})},SE=function(t,e){return js(function(n){return xE(t,n)(e.get())})},CE=function(t,e){return Bs(function(n,r){xE(t,n)(t.onAction),t.triggersSubmenu||e!==hS.CLOSE_ON_EXECUTE||(bs(n,ns()),r.stop())})},EE=(zC={},zC[Qa()]=["disabling","alloy.base.behaviour","toggling","item-events"],zC),TE=Jt,AE=function(t,e,n,r){var i=ta(F);return{type:"item",dom:e.dom,components:TE(e.optComponents),data:t.data,eventOrder:EE,hasSubmenu:t.triggersSubmenu,itemBehaviours:nf([C_("item-events",[CE(t,n),kE(t,i),SE(t,i)]),wE.item(function(){return t.disabled||r.isDisabled()}),mE(),k_.config({})].concat(t.itemBehaviours))}},OE=function(t){return{value:t.value,meta:J({text:t.text.getOr("")},t.meta)}},PE=tinymce.util.Tools.resolve("tinymce.Env"),NE=function(t){var e={alt:"&#x2325;",ctrl:"&#x2303;",shift:"&#x21E7;",meta:"&#x2318;",access:"&#x2303;&#x2325;"},n={meta:"Ctrl",access:"Shift+Alt"},r=PE.mac?e:n,i=t.split("+"),o=dt(i,function(t){var e=t.toLowerCase().trim();return Gt(r,e)?r[e]:t});return PE.mac?o.join(""):o.join("+")},DE=function(t,e,n){return void 0===n&&(n=["tox-collection__item-icon"]),lk(t,{tag:"div",classes:n},e)},ME=function(t){return{dom:{tag:"div",classes:[mS]},components:[yl(Zx.translate(t))]}},IE=function(t,e){return{dom:{tag:"div",classes:e,innerHtml:t}}},RE=function(t,e){return{dom:{tag:"div",classes:[mS]},components:[{dom:{tag:t.tag,styles:t.styles},components:[yl(Zx.translate(e))]}]}},$E=function(t){return{dom:{tag:"div",classes:["tox-collection__item-accessory"],innerHtml:NE(t)}}},LE=function(t){return DE("checkmark",t,["tox-collection__item-checkmark"])},jE=function(t){return DE("chevron-right",t,["tox-collection__item-caret"])},FE=function(t){return DE("chevron-down",t,["tox-collection__item-caret"])},BE=function(t,e){var n="vertical"===t.direction?"tox-collection__item-container--column":"tox-collection__item-container--row",r="left"===t.align?"tox-collection__item-container--align-left":"tox-collection__item-container--align-right";return{dom:{tag:"div",classes:["tox-collection__item-container",n,r,function(){switch(t.valign){case"top":return"tox-collection__item-container--valign-top";case"middle":return"tox-collection__item-container--valign-middle";case"bottom":return"tox-collection__item-container--valign-bottom"}}()]},components:e}},VE=function(t,e,n){return{dom:{tag:"img",classes:e,attributes:{src:t,alt:n.getOr("")}}}},zE=function(t,e,n){var r=t.ariaLabel,o=t.value,a=t.iconContent.map(function(t){return ok(t,e.icons,n)});return{dom:function(){var t=a.getOr(""),n=r.map(function(t){return{title:e.translate(t)}}).getOr({}),s={tag:"div",attributes:n,classes:["tox-swatch"]};return"custom"===o?J(J({},s),{tag:"button",classes:i(i([],s.classes,!0),["tox-swatches__picker-btn"],!1),innerHtml:t}):"remove"===o?J(J({},s),{classes:i(i([],s.classes,!0),["tox-swatch--remove"],!1),innerHtml:t}):J(J({},s),{attributes:J(J({},s.attributes),{"data-mce-color":o}),styles:{"background-color":o}})}(),optComponents:[]}},UE=function(t){var e=t.map(function(t){return{attributes:{title:Zx.translate(t)}}}).getOr({});return J({tag:"div",classes:[pS,"tox-collection__item"]},e)},HE=function(t,e,r,i){var o={tag:"div",classes:["tox-collection__item-icon"]},a=function(t){return lk(t,o,e.icons,i)},s=function(){return nt.some({dom:o})},u=r?t.iconContent.map(a).orThunk(s):nt.none(),l=t.checkMark,c=nt.from(t.meta).fold(function(){return ME},function(t){return Gt(t,"style")?n(RE,t.style):ME}),f=t.htmlContent.fold(function(){return t.textContent.map(c)},function(t){return nt.some(IE(t,[mS]))});return{dom:UE(t.ariaLabel),optComponents:[u,f,t.shortcutContent.map($E),l,t.caret]}},qE=function(t,e,n,r){return void 0===r&&(r=nt.none()),"color"===t.presets?zE(t,e,r):HE(t,e,n,r)},WE=function(t,e){return Wt(t,"tooltipWorker").map(function(t){return[yC.config({lazySink:e.getSink,tooltipDom:{tag:"div",classes:["tox-tooltip-worker-container"]},tooltipComponents:[],anchor:function(t){return{type:"submenu",item:t,overrides:{maxHeightFunction:md}}},mode:"follow-highlight",onShow:function(e,n){t(function(t){yC.setComponents(e,[bl({element:_e.fromDom(t)})])})}})]}).getOr([])},GE=function(t){return _C.DOM.encode(t)},YE=function(t,e){var n=Zx.translate(t),r=GE(n);if(e.length>0){var i=new RegExp(bC(e),"gi");return r.replace(i,function(t){return'<span class="tox-autocompleter-highlight">'+t+"</span>"})}return r},KE=function(t,e,n,r,i,o,a,s){void 0===s&&(s=!0);var u=qE({presets:r,textContent:nt.none(),htmlContent:n?t.text.map(function(t){return YE(t,e)}):nt.none(),ariaLabel:t.text,iconContent:t.icon,shortcutContent:nt.none(),checkMark:nt.none(),caret:nt.none(),value:t.value},a.providers,s,t.icon);return AE({data:OE(t),disabled:t.disabled,getApi:U({}),onAction:function(e){return i(t.value,t.meta)},onSetup:U(F),triggersSubmenu:!1,itemBehaviours:WE(t.meta,a)},u,o,a.providers)},XE=function(t,e){return dt(t,function(t){switch(t.type){case"cardcontainer":return BE(t,XE(t.items,e));case"cardimage":return VE(t.src,t.classes,t.alt);case"cardtext":var n=t.name.exists(function(t){return ut(e.cardText.highlightOn,t)}),r=n?nt.from(e.cardText.matchText).getOr(""):"";return IE(YE(t.text,r),t.classes)}})},JE=function(t,e,n,r){var i=function(t){return{isDisabled:function(){return wv.isDisabled(t)},setDisabled:function(e){wv.set(t,e),ht(Rh(t.element,"*"),function(n){t.getSystem().getByDom(n).each(function(t){t.hasConfigured(wv)&&wv.set(t,e)})})}}},o={dom:UE(t.label),optComponents:[nt.some({dom:{tag:"div",classes:["tox-collection__item-container","tox-collection__item-container--row"]},components:XE(t.items,r)})]};return AE({data:OE(J({text:nt.none()},t)),disabled:t.disabled,getApi:i,onAction:t.onAction,onSetup:t.onSetup,triggersSubmenu:!1,itemBehaviours:nt.from(r.itemBehaviours).getOr([])},o,e,n.providers)},QE=function(t,e,n,r,i,o,a,s){void 0===s&&(s=!0);var u=function(t){return{setActive:function(e){Q_.set(t,e)},isActive:function(){return Q_.isOn(t)},isDisabled:function(){return wv.isDisabled(t)},setDisabled:function(e){return wv.set(t,e)}}},l=qE({presets:n,textContent:e?t.text:nt.none(),htmlContent:nt.none(),ariaLabel:t.text,iconContent:t.icon,shortcutContent:e?t.shortcut:nt.none(),checkMark:e?nt.some(LE(a.icons)):nt.none(),caret:nt.none(),value:t.value},a,s);return xi(AE({data:OE(t),disabled:t.disabled,getApi:u,onAction:function(e){return r(t.value)},onSetup:function(t){return t.setActive(i),F},triggersSubmenu:!1,itemBehaviours:[]},l,o,a),{toggling:{toggleClass:"tox-collection__item--enabled",toggleOnExecute:!1,selected:t.active}})},ZE=Cm(lw(),cw()),tT=function(t){return{value:t}},eT=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,nT=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,rT=function(t){return eT.test(t)||nT.test(t)},iT=function(t){return ae(t,"#").toUpperCase()},oT=function(t){return rT(t)?nt.some({value:iT(t)}):nt.none()},aT=function(t){return{value:t.value.replace(eT,function(t,e,n,r){return e+e+n+n+r+r})}},sT=function(t){var e=aT(t),n=nT.exec(e.value);return null===n?["FFFFFF","FF","FF","FF"]:n},uT=function(t){var e=t.toString(16);return(1===e.length?"0"+e:e).toUpperCase()},lT=function(t){var e=uT(t.red)+uT(t.green)+uT(t.blue);return tT(e)},cT=Math.min,fT=Math.max,dT=Math.round,hT=/^rgb\((\d+),\s*(\d+),\s*(\d+)\)/,pT=/^rgba\((\d+),\s*(\d+),\s*(\d+),\s*(\d?(?:\.\d+)?)\)/,gT=function(t,e,n,r){return{red:t,green:e,blue:n,alpha:r}},mT=function(t){var e=parseInt(t,10);return e.toString()===t&&e>=0&&e<=255},vT=function(t){var e,n,r,i=(t.hue||0)%360,o=t.saturation/100,a=t.value/100;if(o=fT(0,cT(o,1)),a=fT(0,cT(a,1)),0===o)return e=n=r=dT(255*a),gT(e,n,r,1);var s=i/60,u=a*o,l=u*(1-Math.abs(s%2-1)),c=a-u;switch(Math.floor(s)){case 0:e=u,n=l,r=0;break;case 1:e=l,n=u,r=0;break;case 2:e=0,n=u,r=l;break;case 3:e=0,n=l,r=u;break;case 4:e=l,n=0,r=u;break;case 5:e=u,n=0,r=l;break;default:e=n=r=0}return e=dT(255*(e+c)),n=dT(255*(n+c)),r=dT(255*(r+c)),gT(e,n,r,1)},yT=function(t){var e=sT(t),n=parseInt(e[1],16),r=parseInt(e[2],16),i=parseInt(e[3],16);return gT(n,r,i,1)},bT=function(t,e,n,r){var i=parseInt(t,10),o=parseInt(e,10),a=parseInt(n,10),s=parseFloat(r);return gT(i,o,a,s)},_T=function(t){if("transparent"===t)return nt.some(gT(0,0,0,0));var e=hT.exec(t);if(null!==e)return nt.some(bT(e[1],e[2],e[3],"1"));var n=pT.exec(t);return null!==n?nt.some(bT(n[1],n[2],n[3],n[4])):nt.none()},wT=function(t){return"rgba("+t.red+","+t.green+","+t.blue+","+t.alpha+")"},xT=gT(255,0,0,1),kT=function(t){return t.fire("SkinLoaded")},ST=function(t,e){return t.fire("SkinLoadError",e)},CT=function(t){return t.fire("ResizeEditor")},ET=function(t,e){return t.fire("ResizeContent",e)},TT=function(t,e){return t.fire("ScrollContent",e)},AT=function(t,e){return t.fire("TextColorChange",e)},OT=function(t,e,n){return{hue:t,saturation:e,value:n}},PT=function(t){var e=0,n=0,r=0,i=t.red/255,o=t.green/255,a=t.blue/255,s=Math.min(i,Math.min(o,a)),u=Math.max(i,Math.max(o,a));if(s===u)return r=s,OT(0,0,100*r);var l=i===s?o-a:a===s?i-o:a-i;return e=i===s?3:a===s?1:5,e=60*(e-l/(u-s)),n=(u-s)/u,r=u,OT(Math.round(e),Math.round(100*n),Math.round(100*r))},NT=function(t){return PT(yT(t))},DT=function(t){return lT(vT(t))},MT=function(t){return oT(t).orThunk(function(){return _T(t).map(lT)}).getOrThunk(function(){var e=document.createElement("canvas");e.height=1,e.width=1;var n=e.getContext("2d");n.clearRect(0,0,e.width,e.height),n.fillStyle="#FFFFFF",n.fillStyle=t,n.fillRect(0,0,1,1);var r=n.getImageData(0,0,1,1).data,i=r[0],o=r[1],a=r[2],s=r[3];return lT(gT(i,o,a,s))})},IT=tinymce.util.Tools.resolve("tinymce.util.LocalStorage"),RT="tinymce-custom-colors",$T="choiceitem",LT=[{type:$T,text:"Light Green",value:"#BFEDD2"},{type:$T,text:"Light Yellow",value:"#FBEEB8"},{type:$T,text:"Light Red",value:"#F8CAC6"},{type:$T,text:"Light Purple",value:"#ECCAFA"},{type:$T,text:"Light Blue",value:"#C2E0F4"},{type:$T,text:"Green",value:"#2DC26B"},{type:$T,text:"Yellow",value:"#F1C40F"},{type:$T,text:"Red",value:"#E03E2D"},{type:$T,text:"Purple",value:"#B96AD9"},{type:$T,text:"Blue",value:"#3598DB"},{type:$T,text:"Dark Turquoise",value:"#169179"},{type:$T,text:"Orange",value:"#E67E23"},{type:$T,text:"Dark Red",value:"#BA372A"},{type:$T,text:"Dark Purple",value:"#843FA1"},{type:$T,text:"Dark Blue",value:"#236FA1"},{type:$T,text:"Light Gray",value:"#ECF0F1"},{type:$T,text:"Medium Gray",value:"#CED4D9"},{type:$T,text:"Gray",value:"#95A5A6"},{type:$T,text:"Dark Gray",value:"#7E8C8D"},{type:$T,text:"Navy Blue",value:"#34495E"},{type:$T,text:"Black",value:"#000000"},{type:$T,text:"White",value:"#ffffff"}],jT=function(t){void 0===t&&(t=10);var e=IT.getItem(RT),n=A(e)?JSON.parse(e):[],r=function(e){return t-e.length<0?e.slice(0,t):e}(n),i=function(t){r.splice(t,1)};return{add:function(e){st(r,e).each(i),r.unshift(e),r.length>t&&r.pop(),IT.setItem(RT,JSON.stringify(r))},state:function(){return r.slice(0)}}}(10),FT=function(t){for(var e=[],n=0;n<t.length;n+=2)e.push({text:t[n+1],value:"#"+MT(t[n]).value,type:"choiceitem"});return e},BT=function(t,e){return t.getParam("color_cols",e,"number")},VT=function(t){return!1!==t.getParam("custom_colors")},zT=function(t){return t.getParam("color_map")},UT=function(t){var e=zT(t);return void 0!==e?FT(e):LT},HT=function(){return dt(jT.state(),function(t){return{type:$T,text:t,value:t}})},qT=function(t){jT.add(t)},WT=function(t,e){var n;return t.dom.getParents(t.selection.getStart(),function(t){var r;(r=t.style["forecolor"===e?"color":"background-color"])&&(n=n||r)}),nt.from(n)},GT=function(t,e,n){t.undoManager.transact(function(){t.focus(),t.formatter.apply(e,{value:n}),t.nodeChanged()})},YT=function(t,e){t.undoManager.transact(function(){t.focus(),t.formatter.remove(e,{value:null},null,!0),t.nodeChanged()})},KT=function(t){t.addCommand("mceApplyTextcolor",function(e,n){GT(t,e,n)}),t.addCommand("mceRemoveTextcolor",function(e){YT(t,e)})},XT=function(t){return Math.max(5,Math.ceil(Math.sqrt(t)))},JT=function(t){var e=UT(t),n=XT(e.length);return BT(t,n)},QT=function(t){var e={type:"choiceitem",text:"Remove color",icon:"color-swatch-remove-color",value:"remove"},n={type:"choiceitem",text:"Custom color",icon:"color-picker",value:"custom"};return t?[e,n]:[e]},ZT=function(t,e,n,r){if("custom"===n){oA(t)(function(n){n.each(function(n){qT(n),t.execCommand("mceApplyTextcolor",e,n),r(n)})},"#000000")}else"remove"===n?(r(""),t.execCommand("mceRemoveTextcolor",e)):(r(n),t.execCommand("mceApplyTextcolor",e,n))},tA=function(t,e){return t.concat(HT().concat(QT(e)))},eA=function(t,e){return function(n){n(tA(t,e))}},nA=function(t,e,n){var r="forecolor"===e?"tox-icon-text-color__color":"tox-icon-highlight-bg-color__color";t.setIconFill(r,n)},rA=function(t,e,n,r,i){t.ui.registry.addSplitButton(e,{tooltip:r,presets:"color",icon:"forecolor"===e?"text-color":"highlight-bg-color",select:function(e){return WT(t,n).bind(function(t){return _T(t).map(function(t){var n=lT(t).value;return ue(e.toLowerCase(),n)})}).getOr(!1)},columns:JT(t),fetch:eA(UT(t),VT(t)),onAction:function(e){ZT(t,n,i.get(),F)},onItemAction:function(r,o){ZT(t,n,o,function(n){i.set(n),AT(t,{name:e,color:n})})},onSetup:function(n){nA(n,e,i.get());var r=function(t){t.name===e&&nA(n,t.name,t.color)};return t.on("TextColorChange",r),function(){t.off("TextColorChange",r)}}})},iA=function(t,e,n,r){t.ui.registry.addNestedMenuItem(e,{text:r,icon:"forecolor"===e?"text-color":"highlight-bg-color",getSubmenuItems:function(){return[{type:"fancymenuitem",fancytype:"colorswatch",onAction:function(e){ZT(t,n,e.value,F)}}]}})},oA=function(t){return function(e,n){var r=!1,i=function(n){var i=n.getData(),o=i.colorpicker;r?(e(nt.from(o)),n.close()):t.windowManager.alert(t.translate(["Invalid hex color code: {0}",o]))},o=function(t,e){"hex-valid"===e.name&&(r=e.value)},a={colorpicker:n};t.windowManager.open({title:"Color Picker",size:"normal",body:{type:"panel",items:[{type:"colorpicker",name:"colorpicker",label:"Color"}]},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:a,onAction:o,onSubmit:i,onClose:F,onCancel:function(){e(nt.none())}})}},aA=function(t){KT(t);var e=ta("#000000"),n=ta("#000000");rA(t,"forecolor","forecolor","Text color",e),rA(t,"backcolor","hilitecolor","Background color",n),iA(t,"forecolor","forecolor","Text color"),iA(t,"backcolor","hilitecolor","Background color")},sA=function(t,e,n,r,i,o,a,s){var u=NS(e),l="color"!==i?"normal":"color",c=uA(e,n,r,l,o,a,s);return IS(t,u,c,r,i)},uA=function(t,e,n,r,i,o,a){return Jt(dt(t,function(s){return"choiceitem"===s.type?qS(s).fold(DS,function(u){return nt.some(QE(u,1===n,r,e,o(s.value),i,a,NS(t)))}):nt.none()}))},lA=function(t,e){var n=wS(e);return 1===t?{mode:"menu",moveOnTab:!0}:"auto"===t?{mode:"grid",selector:"."+n.item,initSize:{numColumns:1,numRows:1}}:{mode:"matrix",rowSelector:"."+("color"===e?"tox-swatches__row":"tox-collection__group")}},cA=function(t,e){return 1===t?{mode:"menu",moveOnTab:!1,selector:".tox-collection__item"}:"auto"===t?{mode:"flatgrid",selector:".tox-collection__item",initSize:{numColumns:1,numRows:1}}:{mode:"matrix",selectors:{row:"color"===e?".tox-swatches__row":".tox-collection__group",cell:"color"===e?".tox-swatch":".tox-collection__item"}}},fA=function(t,e){var n=dA(t,e),r=e.colorinput.getColorCols(),i=sA(Zs("menu-value"),n,function(e){t.onAction({value:e})},r,"color",hS.CLOSE_ON_EXECUTE,Y,e.shared.providers),o=J(J({},i),{markers:wS("color"),movement:lA(r,"color")});return{type:"widget",data:{value:Zs("widget-id")},dom:{tag:"div",classes:["tox-fancymenuitem"]},autofocus:!0,components:[ZE.widget(ww.sketch(o))]}},dA=function(t,e){var n=t.initData.allowCustomColors&&e.colorinput.hasCustomColors();return t.initData.colors.fold(function(){return tA(e.colorinput.getColors(),n)},function(t){return t.concat(QT(n))})},hA=Zs("cell-over"),pA=Zs("cell-execute"),gA=function(t,e,n){var r,i=function(n){return _s(n,hA,{row:t,col:e})},o=function(n){return _s(n,pA,{row:t,col:e})},a=function(t,e){e.stop(),o(t)};return xl({dom:{tag:"div",attributes:(r={role:"button"},r["aria-labelledby"]=n,r)},behaviours:nf([C_("insert-table-picker-cell",[As(Ia(),I_.focus),As(Qa(),o),As(Va(),a),As(ts(),a)]),Q_.config({toggleClass:"tox-insert-table-picker__selected",toggleOnExecute:!1}),I_.config({onFocus:i})])})},mA=function(t,e,n){for(var r=[],i=0;i<e;i++){for(var o=[],a=0;a<n;a++)o.push(gA(i,a,t));r.push(o)}return r},vA=function(t,e,n,r,i){for(var o=0;o<r;o++)for(var a=0;a<i;a++)Q_.set(t[o][a],o<=e&&a<=n)},yA=function(t){return kt(t,function(t){return dt(t,kl)})},bA=function(t,e){return yl(e+"x"+t)},_A=function(t){var e=Zs("size-label"),n=mA(e,10,10),r=bA(0,0),i=sx({dom:{tag:"span",classes:["tox-insert-table-picker__label"],attributes:{id:e}},components:[r],behaviours:nf([k_.config({})])});return{type:"widget",data:{value:Zs("widget-id")},dom:{tag:"div",classes:["tox-fancymenuitem"]},autofocus:!0,components:[ZE.widget({dom:{tag:"div",classes:["tox-insert-table-picker"]},components:yA(n).concat(i.asSpec()),behaviours:nf([C_("insert-table-picker",[Ls(function(t){k_.set(i.get(t),[r])}),Ms(hA,function(t,e,r){var o=r.event,a=o.row,s=o.col;vA(n,a,s,10,10),k_.set(i.get(t),[bA(a+1,s+1)])}),Ms(pA,function(e,n,r){var i=r.event,o=i.row,a=i.col;t.onAction({numRows:o+1,numColumns:a+1}),bs(e,ns())})]),h_.config({initSize:{numRows:10,numColumns:10},mode:"flatgrid",selector:'[role="button"]'})])})]}},wA={inserttable:_A,colorswatch:fA},xA=function(t,e){return Wt(wA,t.fancytype).map(function(n){return n(t,e)})},kA=function(t,e,n,r,i){void 0===r&&(r=!0),void 0===i&&(i=!1);var o=i?FE(n.icons):jE(n.icons),a=function(t){return{isDisabled:function(){return wv.isDisabled(t)},setDisabled:function(e){return wv.set(t,e)}}},s=qE({presets:"normal",iconContent:t.icon,textContent:t.text,htmlContent:nt.none(),ariaLabel:t.text,caret:nt.some(o),checkMark:nt.none(),shortcutContent:t.shortcut},n,r);return AE({data:OE(t),getApi:a,disabled:t.disabled,onAction:F,onSetup:t.onSetup,triggersSubmenu:!0,itemBehaviours:[]},s,e,n)},SA=function(t,e,n,r){void 0===r&&(r=!0);var i=function(t){return{isDisabled:function(){return wv.isDisabled(t)},setDisabled:function(e){return wv.set(t,e)}}},o=qE({presets:"normal",iconContent:t.icon,textContent:t.text,htmlContent:nt.none(),ariaLabel:t.text,caret:nt.none(),checkMark:nt.none(),shortcutContent:t.shortcut},n,r);return AE({data:OE(t),getApi:i,disabled:t.disabled,onAction:t.onAction,onSetup:t.onSetup,triggersSubmenu:!1,itemBehaviours:[]},o,e,n)},CA=function(t){var e=t.text.fold(function(){return{}},function(t){return{innerHtml:t}});return{type:"separator",dom:J({tag:"div",classes:["tox-collection__item","tox-collection__group-heading"]},e),components:[]}},EA=function(t,e,n,r){void 0===r&&(r=!0);var i=function(t){return{setActive:function(e){Q_.set(t,e)},isActive:function(){return Q_.isOn(t)},isDisabled:function(){return wv.isDisabled(t)},setDisabled:function(e){return wv.set(t,e)}}},o=qE({iconContent:t.icon,textContent:t.text,htmlContent:nt.none(),ariaLabel:t.text,checkMark:nt.some(LE(n.icons)),caret:nt.none(),shortcutContent:t.shortcut,presets:"normal",meta:t.meta},n,r);return xi(AE({data:OE(t),disabled:t.disabled,getApi:i,onAction:t.onAction,onSetup:t.onSetup,triggersSubmenu:!1,itemBehaviours:[]},o,e,n),{toggling:{toggleClass:"tox-collection__item--enabled",toggleOnExecute:!1,selected:t.active}})},TA=KE,AA=CA,OA=SA,PA=kA,NA=EA,DA=xA,MA=JE;!function(t){t[t.ContentFocus=0]="ContentFocus",t[t.UiFocus=1]="UiFocus"}(UC||(UC={}));var IA=function(t,e,n,r,i){var o=n.shared.providers,a=function(t){return i?J(J({},t),{shortcut:nt.none(),icon:t.text.isSome()?nt.none():t.icon}):t};switch(t.type){case"menuitem":return QS(t).fold(DS,function(t){return nt.some(OA(a(t),e,o,r))});case"nestedmenuitem":return tC(t).fold(DS,function(t){return nt.some(PA(a(t),e,o,r,i))});case"togglemenuitem":return nC(t).fold(DS,function(t){return nt.some(NA(a(t),e,o,r))});case"separator":return zk(t).fold(DS,function(t){return nt.some(AA(t))});case"fancymenuitem":return XS(t).fold(DS,function(t){return DA(a(t),n)});default:return console.error("Unknown item in general menu",t),nt.none()}},RA=function(t,e,n,r,i,o,a){var s=1===r,u=!s||NS(t);return Jt(dt(t,function(t){switch(t.type){case"separator":return qk(t).fold(DS,function(t){return nt.some(AA(t))});case"cardmenuitem":return US(t).fold(DS,function(t){return nt.some(MA(J(J({},t),{onAction:function(e){t.onAction(e),n(t.value,t.meta)}}),i,o,{itemBehaviours:WE(t.meta,o),cardText:{matchText:e,highlightOn:a}}))});case"autocompleteitem":default:return Wk(t).fold(DS,function(t){return nt.some(TA(t,e,s,"normal",n,i,o,u))})}}))},$A=function(t,e,n,r,i){var o=NS(e),a=Jt(dt(e,function(t){var e=function(t){return i?!Gt(t,"text"):o},a=function(t){return IA(t,n,r,e(t),i)};return a("nestedmenuitem"===t.type&&t.getSubmenuItems().length<=0?J(J({},t),{disabled:!0}):t)}));return(i?MS:IS)(t,o,a,1,"normal")},LA=function(t){return Mw.singleData(t.value,t)},jA=function(t,e,n,r){var i=n===UC.ContentFocus?cy():ly(),o=lA(e,r),a=wS(r);return{dom:t.dom,components:t.components,items:t.items,value:t.value,markers:{selectedItem:a.selectedItem,item:a.item},movement:o,fakeFocus:n===UC.ContentFocus,focusManager:i,menuBehaviours:aC.unnamedEvents("auto"!==e?[]:[Ls(function(t,e){rC(t,4,a.item).each(function(e){var n=e.numColumns,r=e.numRows;h_.setGridSize(t,r,n)})})])}},FA=function(t,e){var n=Gf(),r=ta(!1),i=xl($w.sketch({dom:{tag:"div",classes:["tox-autocompleter"]},components:[],fireDismissalEventInstead:{},inlineBehaviours:nf([C_("dismissAutocompleter",[As(fs(),function(){return u()})])]),lazySink:e.getSink})),o=function(){return $w.isOpen(i)},a=function(){return n.get().isSome()},s=function(){a()&&$w.hide(i)},u=function(){if(a()){var e=n.get().map(function(t){return t.element});_k(e.getOr(_e.fromDom(t.selection.getNode()))).each(Lr),s(),n.clear(),r.set(!1)}},l=Oe(function(){return fS(t)}),c=function(n,i){var o=It(i,function(t){return nt.from(t.columns)}).getOr(1);return kt(i,function(i){var a=i.items;return RA(a,i.matchText,function(e,o){var a=t.selection.getRng();Tk(t.dom,a,n).fold(function(){return console.error("Lost context. Cursor probably moved")},function(t){var n=t.range,a={hide:function(){u()},reload:function(t){s(),p(t)}};r.set(!0),i.onAction(a,n,e,o),r.set(!1)})},o,hS.BUBBLE_TO_SANDBOX,e,i.highlightOn)})},f=function(e){if(!a()){var i=bk(t,e.range);n.set({triggerChar:e.triggerChar,element:i,matchLength:e.text.length}),r.set(!1)}},d=function(e,n,r,o){e.matchLength=n.text.length;var a=It(r,function(t){return nt.from(t.columns)}).getOr(1);$w.showAt(i,ww.sketch(jA(IS("autocompleter-value",!0,o,a,"normal"),a,UC.ContentFocus,"normal")),{anchor:{type:"node",root:_e.fromDom(t.getBody()),node:nt.from(e.element)}}),$w.getContent(i).each(Vv.highlightFirst)},h=function(e){return n.get().map(function(n){return Tk(t.dom,t.selection.getRng(),n.triggerChar).bind(function(n){return Bk(t,l,n,e)})}).getOrThunk(function(){return Fk(t,l)})},p=function(t){h(t).fold(u,function(t){f(t.context),t.lookupData.then(function(e){n.get().map(function(n){var r=t.context;if(n.triggerChar===r.triggerChar){var i=c(r.triggerChar,e);i.length>0?d(n,r,e,i):r.text.length-n.matchLength>=10?u():s()}})})})},g=gk(function(t){27!==t.which&&p()},50),m={onKeypress:g,cancelIfNecessary:u,isMenuOpen:o,isActive:a,isProcessingAction:r.get,getView:function(){return $w.getContent(i)}};!1===t.hasPlugin("rtc")&&Ok.setup(m,t)},BA={register:FA},VA=function(t,e,n){return Dl(t,e,n).isSome()},zA=function(t,e){var n=null,r=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];n=setTimeout(function(){t.apply(null,r),n=null},e)};return{cancel:function(){null!==n&&(clearTimeout(n),n=null)},schedule:r}},UA=function(t){var e=t.raw;return void 0===e.touches||1!==e.touches.length?nt.none():nt.some(e.touches[0])},HA=function(t,e){var n=Math.abs(t.clientX-e.x),r=Math.abs(t.clientY-e.y);return n>5||r>5},qA=function(t){var e=Gf(),n=ta(!1),r=zA(function(e){t.triggerEvent(es(),e),n.set(!0)},400),i=function(t){return UA(t).each(function(i){r.cancel();var o={x:i.clientX,y:i.clientY,target:t.target};r.schedule(t),n.set(!1),e.set(o)}),nt.none()},o=function(t){return r.cancel(),UA(t).each(function(t){e.on(function(n){HA(t,n)&&e.clear()})}),nt.none()},a=function(i){r.cancel();var o=function(t){return cn(t.target,i.target)};return e.get().filter(o).map(function(e){return n.get()?(i.prevent(),!1):t.triggerEvent(ts(),i)})},s=fa([{key:Ea(),value:i},{key:Ta(),value:o},{key:Aa(),value:a}]);return{fireIfReady:function(t,e){return Wt(s,e).bind(function(e){return e(t)})}}},WA=function(t){return t.raw.which===zv[0]&&!ut(["input","textarea"],xe(t.target))&&!VA(t.target,'[contenteditable="true"]')},GA=function(){return nn().browser.isFirefox()},YA=function(t,e){return GA()?Xf(t,"focus",e):Kf(t,"focusin",e)},KA=function(t,e){return GA()?Xf(t,"blur",e):Kf(t,"focusout",e)},XA=function(t,e){var n=J({stopBackspace:!0},e),r=["touchstart","touchmove","touchend","touchcancel","gesturestart","mousedown","mouseup","mouseover","mousemove","mouseout","click"],i=qA(n),o=dt(r.concat(["selectstart","input","contextmenu","change","transitionend","transitioncancel","drag","dragstart","dragend","dragenter","dragleave","dragover","drop","keyup"]),function(e){return Kf(t,e,function(t){i.fireIfReady(t,e).each(function(e){e&&t.kill()}),n.triggerEvent(e,t)&&t.kill()})}),a=Gf(),s=Kf(t,"paste",function(t){i.fireIfReady(t,"paste").each(function(e){e&&t.kill()}),n.triggerEvent("paste",t)&&t.kill(),a.set(setTimeout(function(){n.triggerEvent(Xa(),t)},0))}),u=Kf(t,"keydown",function(t){n.triggerEvent("keydown",t)?t.kill():n.stopBackspace&&WA(t)&&t.prevent()}),l=YA(t,function(t){n.triggerEvent("focusin",t)&&t.kill()}),c=Gf(),f=KA(t,function(t){n.triggerEvent("focusout",t)&&t.kill(),c.set(setTimeout(function(){n.triggerEvent(Ka(),t)},0))});return{unbind:function(){ht(o,function(t){t.unbind()}),u.unbind(),l.unbind(),f.unbind(),s.unbind(),a.on(clearTimeout),c.on(clearTimeout)}}},JA=function(t,e){var n=Wt(t,"target").getOr(e);return ta(n)},QA=function(t,e){var n=ta(!1),r=ta(!1);return{stop:function(){n.set(!0)},cut:function(){r.set(!0)},isStopped:n.get,isCut:r.get,event:t,setSource:e.set,getSource:e.get}},ZA=function(t){var e=ta(!1);return{stop:function(){e.set(!0)},cut:F,isStopped:e.get,isCut:Y,event:t,setSource:G("Cannot set source of a broadcasted event"),getSource:G("Cannot get source of a broadcasted event")}},tO=na.generate([{stopped:[]},{resume:["element"]},{complete:[]}]),eO=function(t,e,n,r,i,o){var a=t(e,r),s=QA(n,i);return a.fold(function(){return o.logEventNoHandlers(e,r),tO.complete()},function(t){var n=t.descHandler;return Du(n)(s),s.isStopped()?(o.logEventStopped(e,t.element,n.purpose),tO.stopped()):s.isCut()?(o.logEventCut(e,t.element,n.purpose),tO.complete()):yn(t.element).fold(function(){return o.logNoParent(e,t.element,n.purpose),tO.complete()},function(r){return o.logEventResponse(e,t.element,n.purpose),tO.resume(r)})})},nO=function(t,e,n,r,i,o){return eO(t,e,n,r,i,o).fold(K,function(r){return nO(t,e,n,r,i,o)},Y)},rO=function(t,e,n,r,i){var o=JA(n,r);return eO(t,e,n,r,o,i)},iO=function(t,e,n){var r=ZA(e);return ht(t,function(t){var e=t.descHandler;Du(e)(r)}),r.isStopped()},oO=function(t,e,n,r){return aO(t,e,n,n.target,r)},aO=function(t,e,n,r,i){var o=JA(n,r);return nO(t,e,n,r,o,i)},sO=function(t,e){return{element:t,descHandler:e}},uO=function(t,e){return{id:t,descHandler:e}},lO=function(){var t={},e=function(e,n,r){Lt(r,function(r,i){var o=void 0!==t[i]?t[i]:{};o[n]=Nu(r,e),t[i]=o})},n=function(t,e){return au(e).bind(function(e){return Wt(t,e)}).map(function(t){return sO(e,t)})},r=function(e){return Wt(t,e).map(function(t){return Ut(t,function(t,e){return uO(e,t)})}).getOr([])},i=function(e,r,i){return Wt(t,r).bind(function(t){return va(i,function(e){return n(t,e)},e)})};return{registerId:e,unregisterId:function(e){Lt(t,function(t,n){Gt(t,e)&&delete t[e]})},filterByType:r,find:i}},cO=function(){var t=lO(),e={},n=function(t){var e=t.element;return au(e).getOrThunk(function(){return iu("uid-",t.element)})},r=function(t,n){var r=e[n];if(r!==t)throw new Error('The tagId "'+n+'" is already used by: '+Ys(r.element)+"\nCannot use it for: "+Ys(t.element)+"\nThe conflicting element is"+(Ln(r.element)?" ":" not ")+"already in the DOM");o(t)},i=function(i){var o=n(i);Yt(e,o)&&r(i,o);var a=[i];t.registerId(a,o,i.events),e[o]=i},o=function(n){au(n.element).each(function(n){delete e[n],t.unregisterId(n)})},a=function(e){return t.filterByType(e)};return{find:function(e,n,r){return t.find(e,n,r)},filter:a,register:i,unregister:o,getById:function(t){return Wt(e,t)}}},fO=function(t){var e=t.dom,n=e.attributes,i=r(e,["attributes"]);return{uid:t.uid,dom:J({tag:"div",attributes:J({role:"presentation"},n)},i),components:t.components,behaviours:Vg(t.containerBehaviours),events:t.events,domModification:t.domModification,eventOrder:t.eventOrder}},dO=Xm({name:"Container",factory:fO,configFields:[qo("components",[]),Bg("containerBehaviours",[]),qo("events",{}),qo("domModification",{}),qo("eventOrder",{})]}),hO=function(t){var e=function(e){return yn(t.element).fold(K,function(t){return cn(e,t)})},n=cO(),r=function(t,r){return n.find(e,t,r)},i=XA(t.element,{triggerEvent:function(t,e){return Ul(t,e.target,function(n){return oO(r,t,e,n)})}}),o={debugInfo:U("real"),triggerEvent:function(t,e,n){Ul(t,e,function(i){return aO(r,t,n,e,i)})},triggerFocus:function(t,e){au(t).fold(function(){hf(t)},function(n){Ul(Ya(),t,function(n){return rO(r,Ya(),{originator:e,kill:F,prevent:F,target:t},t,n),!1})})},triggerEscape:function(t,e){o.triggerEvent("keydown",t.element,e.event)},getByUid:function(t){return g(t)},getByDom:function(t){return m(t)},build:xl,addToGui:function(t){u(t)},removeFromGui:function(t){l(t)},addToWorld:function(t){a(t)},removeFromWorld:function(t){s(t)},broadcast:function(t){d(t)},broadcastOn:function(t,e){h(t,e)},broadcastEvent:function(t,e){p(t,e)},isConnected:K},a=function(t){t.connect(o),Ee(t.element)||(n.register(t),ht(t.components(),a),o.triggerEvent(is(),t.element,{target:t.element}))},s=function(t){Ee(t.element)||(ht(t.components(),s),n.unregister(t)),t.disconnect()},u=function(e){Op(t,e)},l=function(t){Dp(t)},c=function(){i.unbind(),$r(t.element)},f=function(t){var e=n.filter(Ja());ht(e,function(e){var n=e.descHandler;Du(n)(t)})},d=function(t){f({universal:!0,data:t})},h=function(t,e){f({universal:!1,channels:t,data:e})},p=function(t,e){var r=n.filter(t);return iO(r,e)},g=function(t){return n.getById(t).fold(function(){return ii.error(new Error('Could not find component with uid: "'+t+'" in system.'))},ii.value)},m=function(t){var e=au(t).getOr("not found");return g(e)};return a(t),{root:t,element:t.element,destroy:c,add:u,remove:l,getByUid:g,getByDom:m,addToWorld:a,removeFromWorld:s,broadcast:d,broadcastOn:h,broadcastEvent:p}},pO=function(t,e){return{dom:{tag:"div",classes:["tox-bar","tox-form__controls-h-stack"]},components:dt(t.items,e.interpreter)}},gO=U([qo("prefix","form-field"),Bg("fieldBehaviours",[nv,Fg])]),mO=U([bm({schema:[To("dom")],name:"label"}),bm({factory:{sketch:function(t){return{uid:t.uid,dom:{tag:"span",styles:{display:"none"},attributes:{"aria-hidden":"true"},innerHtml:t.text}}}},schema:[To("text")],name:"aria-descriptor"}),vm({factory:{sketch:function(t){var e=la(t,["factory"]);return t.factory.sketch(e)}},schema:[To("factory")],name:"field"})]),vO=function(t,e,n,r){var i=zg(t.fieldBehaviours,[nv.config({find:function(e){return Dm(e,t,"field")}}),Fg.config({store:{mode:"manual",getValue:function(t){return nv.getCurrent(t).bind(Fg.getValue)},setValue:function(t,e){nv.getCurrent(t).each(function(t){Fg.setValue(t,e)})}}})]),o=Cs([Ls(function(e,n){var r=Im(e,t,["label","field","aria-descriptor"]);r.field().each(function(e){var n=Zs(t.prefix);r.label().each(function(t){Vn(t.element,"for",n),Vn(e.element,"id",n)}),r["aria-descriptor"]().each(function(n){var r=Zs(t.prefix);Vn(n.element,"id",r),Vn(e.element,"aria-describedby",r)})})})]),a={getField:function(e){return Dm(e,t,"field")},getLabel:function(e){return Dm(e,t,"label")}};return{uid:t.uid,dom:t.dom,components:e,behaviours:i,events:o,apis:a}},yO=Jm({name:"FormField",configFields:gO(),partFields:mO(),factory:vO,apis:{getField:function(t,e){return t.getField(e)},getLabel:function(t,e){return t.getLabel(e)}}}),bO=function(t,e){return Cu({attributes:fa([{key:e.tabAttr,value:"true"}])})},_O=Object.freeze({__proto__:null,exhibit:bO}),wO=[qo("tabAttr","data-alloy-tabstop")],xO=of({fields:wO,name:"tabstopping",active:_O}),kO=tinymce.util.Tools.resolve("tinymce.html.Entities"),SO=function(t,e,n,r){var i=EO(t,e,n,r);return yO.sketch(i)},CO=function(t,e){return SO(t,e,[],[])},EO=function(t,e,n,r){return{dom:AO(n),components:t.toArray().concat([e]),fieldBehaviours:nf(r)}},TO=function(){return AO([])},AO=function(t){return{tag:"div",classes:["tox-form__group"].concat(t)}},OO=function(t,e){return yO.parts.label({dom:{tag:"label",classes:["tox-label"],innerHtml:e.translate(t)}})},PO=Zs("form-component-change"),NO=Zs("form-close"),DO=Zs("form-cancel"),MO=Zs("form-action"),IO=Zs("form-submit"),RO=Zs("form-block"),$O=Zs("form-unblock"),LO=Zs("form-tabchange"),jO=Zs("form-resize"),FO=function(t,e){var n,r=t.label.map(function(t){return OO(t,e)}),i=function(t){return function(e,n){Dl(n.event.target,"[data-collection-item-value]").each(function(r){t(e,n,r,Un(r,"data-collection-item-value"))})}},o=function(n,r){var i=dt(r,function(n){var r=Zx.translate(n.text),i=1===t.columns?'<div class="tox-collection__item-label">'+r+"</div>":"",o='<div class="tox-collection__item-icon">'+n.icon+"</div>",a={_:" "," - ":" ","-":" "},s=r.replace(/\_| \- |\-/g,function(t){return a[t]});return'<div class="tox-collection__item'+(e.isDisabled()?" tox-collection__item--state-disabled":"")+'" tabindex="-1" data-collection-item-value="'+kO.encodeAllRaw(n.value)+'" title="'+s+'" aria-label="'+s+'">'+o+i+"</div>"}),o="auto"!==t.columns&&t.columns>1?ft(i,t.columns):[i],a=dt(o,function(t){return'<div class="tox-collection__group">'+t.join("")+"</div>"});Us(n.element,a.join(""))},a=i(function(n,r,i,o){r.stop(),e.isDisabled()||_s(n,MO,{name:t.name,value:o})}),s=[As(Ia(),i(function(t,e,n){hf(n)})),As(Va(),a),As(ts(),a),As(Ra(),i(function(t,e,n){Nl(t.element,"."+vS).each(function(t){nl(t,vS)}),tl(n,vS)})),As($a(),i(function(t){Nl(t.element,"."+vS).each(function(t){nl(t,vS)})})),Bs(i(function(e,n,r,i){_s(e,MO,{name:t.name,value:i})}))],u=function(t,e){return dt(Rh(t.element,".tox-collection__item"),e)},l=yO.parts.field({dom:{tag:"div",classes:["tox-collection"].concat(1!==t.columns?["tox-collection--grid"]:["tox-collection--list"])},components:[],factory:{sketch:H},behaviours:nf([wv.config({disabled:e.isDisabled,onDisabled:function(t){u(t,function(t){tl(t,"tox-collection__item--state-disabled"),Vn(t,"aria-disabled",!0)})},onEnabled:function(t){u(t,function(t){nl(t,"tox-collection__item--state-disabled"),Wn(t,"aria-disabled")})}}),mE(),k_.config({}),Fg.config({store:{mode:"memory",initialValue:[]},onSetValue:function(e,n){o(e,n),"auto"===t.columns&&rC(e,5,"tox-collection__item").each(function(t){var n=t.numRows,r=t.numColumns;h_.setGridSize(e,n,r)}),bs(e,jO)}}),xO.config({}),h_.config(cA(t.columns,"normal")),C_("collection-events",s)]),eventOrder:(n={},n[Qa()]=["disabling","alloy.base.behaviour","collection-events"],n)});return SO(r,l,["tox-form__group--collection"],[])},BO=U([Lo("data"),qo("inputAttributes",{}),qo("inputStyles",{}),qo("tag","input"),qo("inputClasses",[]),Ql("onSetValue"),qo("styles",{}),qo("eventOrder",{}),Bg("inputBehaviours",[Fg,I_]),qo("selectOnFocus",!0)]),VO=function(t){return nf([I_.config({onFocus:t.selectOnFocus?function(t){var e=t.element,n=sl(e);e.dom.setSelectionRange(0,n.length)}:F})])},zO=function(t){return J(J({},VO(t)),zg(t.inputBehaviours,[Fg.config({store:J(J({mode:"manual"},t.data.map(function(t){return{initialValue:t}}).getOr({})),{getValue:function(t){return sl(t.element)},setValue:function(t,e){sl(t.element)!==e&&ul(t.element,e)}}),onSetValue:t.onSetValue})]))},UO=function(t){return{tag:t.tag,attributes:J({type:"text"},t.inputAttributes),styles:t.inputStyles,classes:t.inputClasses}},HO=function(t,e){return{uid:t.uid,dom:UO(t),components:[],behaviours:zO(t),eventOrder:t.eventOrder}},qO=Xm({name:"Input",configFields:BO(),factory:HO}),WO={},GO={exports:WO};!function(n,r,i,o){!function(t,e){"object"==typeof r&&void 0!==i?i.exports=e():"function"==typeof n&&n.amd?n(e):(t="undefined"!=typeof globalThis?globalThis:t||self,t.EphoxContactWrapper=e())}(this,function(){var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{},r={exports:{}};!function(t){!function(n){function r(){}function i(t,e){return function(){t.apply(e,arguments)}}function o(t){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof t)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],f(t,this)}function a(t,e){for(;3===t._state;)t=t._value;if(0===t._state)return void t._deferreds.push(e);t._handled=!0,o._immediateFn(function(){var n=1===t._state?e.onFulfilled:e.onRejected;if(null===n)return void(1===t._state?s:u)(e.promise,t._value);var r;try{r=n(t._value)}catch(t){return void u(e.promise,t)}s(e.promise,r)})}function s(t,e){try{if(e===t)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if(e instanceof o)return t._state=3,t._value=e,void l(t);if("function"==typeof n)return void f(i(n,e),t)}t._state=1,t._value=e,l(t)}catch(e){u(t,e)}}function u(t,e){t._state=2,t._value=e,l(t)}function l(t){2===t._state&&0===t._deferreds.length&&o._immediateFn(function(){t._handled||o._unhandledRejectionFn(t._value)});for(var e=0,n=t._deferreds.length;e<n;e++)a(t,t._deferreds[e]);t._deferreds=null}function c(t,e,n){this.onFulfilled="function"==typeof t?t:null,this.onRejected="function"==typeof e?e:null,this.promise=n}function f(t,e){var n=!1;try{t(function(t){n||(n=!0,s(e,t))},function(t){n||(n=!0,u(e,t))})}catch(t){if(n)return;n=!0,u(e,t)}}var d=setTimeout;o.prototype.catch=function(t){return this.then(null,t)},o.prototype.then=function(t,e){var n=new this.constructor(r);return a(this,new c(t,e,n)),n},o.all=function(t){var e=Array.prototype.slice.call(t);return new o(function(t,n){function r(o,a){try{if(a&&("object"==typeof a||"function"==typeof a)){var s=a.then;if("function"==typeof s)return void s.call(a,function(t){r(o,t)},n)}e[o]=a,0==--i&&t(e)}catch(t){n(t)}}if(0===e.length)return t([]);for(var i=e.length,o=0;o<e.length;o++)r(o,e[o])})},o.resolve=function(t){return t&&"object"==typeof t&&t.constructor===o?t:new o(function(e){e(t)})},o.reject=function(t){return new o(function(e,n){n(t)})},o.race=function(t){return new o(function(e,n){for(var r=0,i=t.length;r<i;r++)t[r].then(e,n)})},o._immediateFn="function"==typeof e?function(t){e(t)}:function(t){d(t,0)},o._unhandledRejectionFn=function(t){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",t)},o._setImmediateFn=function(t){o._immediateFn=t},o._setUnhandledRejectionFn=function(t){o._unhandledRejectionFn=t},t.exports?t.exports=o:n.Promise||(n.Promise=o)}(n)}(r);var i=r.exports;return{boltExport:function(){return"undefined"!=typeof window?window:Function("return this;")()}().Promise||i}})}(void 0,WO,GO);var YO,KO=GO.exports.boltExport,XO=function(t){var e=nt.none(),n=[],r=function(t){return XO(function(e){i(function(n){e(t(n))})})},i=function(t){a()?u(t):n.push(t)},o=function(t){a()||(e=nt.some(t),s(n),n=[])},a=function(){return e.isSome()},s=function(t){ht(t,u)},u=function(t){e.each(function(e){setTimeout(function(){t(e)},0)})};return t(o),{get:i,map:r,isReady:a}},JO=function(t){return XO(function(e){e(t)})},QO={nu:XO,pure:JO},ZO=function(t){setTimeout(function(){throw t},0)},tP=function(t){var e=function(e){t().then(e,ZO)};return{map:function(e){return tP(function(){return t().then(e)})},bind:function(e){return tP(function(){return t().then(function(t){return e(t).toPromise()})})},anonBind:function(e){return tP(function(){return t().then(function(){return e.toPromise()})})},toLazy:function(){return QO.nu(e)},toCached:function(){var e=null;return tP(function(){return null===e&&(e=t()),e})},toPromise:t,get:e}},eP=function(t){return tP(function(){return new KO(t)})},nP=function(t){return tP(function(){return KO.resolve(t)})},rP={nu:eP,pure:nP},iP=["input","textarea"],oP=function(t){var e=xe(t);return ut(iP,e)},aP=function(t,e){var n=e.getRoot(t).getOr(t.element);nl(n,e.invalidClass),e.notify.each(function(e){oP(t.element)&&Vn(t.element,"aria-invalid",!1),e.getContainer(t).each(function(t){Us(t,e.validHtml)}),e.onValid(t)})},sP=function(t,e,n,r){var i=e.getRoot(t).getOr(t.element);tl(i,e.invalidClass),e.notify.each(function(e){oP(t.element)&&Vn(t.element,"aria-invalid",!0),e.getContainer(t).each(function(t){Us(t,r)}),e.onInvalid(t,r)})},uP=function(t,e,n){return e.validator.fold(function(){return rP.pure(ii.value(!0))},function(e){return e.validate(t)})},lP=function(t,e,n){return e.notify.each(function(e){e.onValidate(t)}),uP(t,e).map(function(n){return t.getSystem().isConnected()?n.fold(function(n){return sP(t,e,0,n),ii.error(n)},function(n){return aP(t,e),ii.value(n)}):ii.error("No longer in system")})},cP=function(t,e){var n=e.getRoot(t).getOr(t.element);return rl(n,e.invalidClass)},fP=Object.freeze({__proto__:null,markValid:aP,markInvalid:sP,query:uP,run:lP,isInvalid:cP}),dP=function(t,e){return t.validator.map(function(e){return Cs([As(e.onEvent,function(e){lP(e,t).get(H)})].concat(e.validateOnLoad?[Ls(function(e){lP(e,t).get(F)})]:[]))}).getOr({})},hP=Object.freeze({__proto__:null,events:dP}),pP=[To("invalidClass"),qo("getRoot",nt.none),Uo("notify",[qo("aria","alert"),qo("getContainer",nt.none),qo("validHtml",""),Ql("onValid"),Ql("onInvalid"),Ql("onValidate")]),Uo("validator",[To("validate"),qo("onEvent","input"),qo("validateOnLoad",!0)])],gP=of({fields:pP,name:"invalidating",active:hP,apis:fP,extra:{validation:function(t){return function(e){var n=Fg.getValue(e);return rP.pure(t(n))}}}}),mP=function(t,e,n,r){return n.getOrCreate(t,e,r)},vP=Object.freeze({__proto__:null,getCoupled:mP}),yP=[Ao("others",vo(ii.value,oo()))],bP=function(){var t={},e=function(e,n,r){var i=Rt(n.others);if(i)return Wt(t,r).getOrThunk(function(){var i=Wt(n.others,r).getOrDie("No information found for coupled component: "+r),o=i(e),a=e.getSystem().build(o);return t[r]=a,a});throw new Error("Cannot find coupled component: "+r+". Known coupled components: "+JSON.stringify(i,null,2))},n=U({});return _u({readState:n,getOrCreate:e})},_P=Object.freeze({__proto__:null,init:bP}),wP=of({fields:yP,name:"coupling",apis:vP,state:_P}),xP=U("sink"),kP=U(bm({name:xP(),overrides:U({dom:{tag:"div"},behaviours:nf([kp.config({useFixed:K})]),events:Cs([Is(La()),Is(Pa()),Is(Va())])})}));!function(t){t[t.HighlightFirst=0]="HighlightFirst",t[t.HighlightNone=1]="HighlightNone"}(YO||(YO={}));var SP,CP,EP=function(t,e){var n=t.getHotspot(e).getOr(e),r=t.getAnchorOverrides();return t.layouts.fold(function(){return{type:"hotspot",hotspot:n,overrides:r}},function(t){return{type:"hotspot",hotspot:n,overrides:r,layouts:t}})},TP=function(t,e,n){return(0,t.fetch)(n).map(e)},AP=function(t,e,n,r,i,o,a){var s=TP(t,e,r),u=MP(r,t);return s.map(function(t){return t.bind(function(t){return nt.from(Mw.sketch(J(J({},o.menu()),{uid:su(""),data:t,highlightImmediately:a===YO.HighlightFirst,onOpenMenu:function(t,e){var r=u().getOrDie();kp.position(r,e,{anchor:n}),rg.decloak(i)},onOpenSubmenu:function(t,e,n){var r=u().getOrDie();kp.position(r,n,{anchor:{type:"submenu",item:e}}),rg.decloak(i)},onRepositionMenu:function(t,e,r){var i=u().getOrDie();kp.position(i,e,{anchor:n}),ht(r,function(t){kp.position(i,t.triggeredMenu,{anchor:{type:"submenu",item:t.triggeringItem}})})},onEscape:function(){return I_.focus(r),rg.close(i),nt.some(!0)}})))})})},OP=function(t,e,n,r,i,o,a){var s=EP(t,n);return AP(t,e,s,n,r,i,a).map(function(t){return t.fold(function(){rg.isOpen(r)&&rg.close(r)},function(t){rg.cloak(r),rg.open(r,t),o(r)}),r})},PP=function(t,e,n,r,i,o,a){return rg.close(r),rP.pure(r)},NP=function(t,e,n,r,i,o){var a=wP.getCoupled(n,"sandbox");return(rg.isOpen(a)?PP:OP)(t,e,n,a,r,i,o)},DP=function(t,e,n){var r=nv.getCurrent(e).getOr(e),i=yr(t.element);n?Kn(r.element,"min-width",i+"px"):vr(r.element,i)},MP=function(t,e){return t.getSystem().getByUid(e.uid+"-"+xP()).map(function(t){return function(){return ii.value(t)}}).getOrThunk(function(){return e.lazySink.fold(function(){return function(){return ii.error(new Error("No internal sink is specified, nor could an external sink be found"))}},function(e){return function(){return e(t)}})})},IP=function(t){rg.getState(t).each(function(t){Mw.repositionMenus(t)})},RP=function(t,e,n){var r=Il(),i=function(i,o){var a=EP(t,e);r.link(e.element),t.matchWidth&&DP(a.hotspot,o,t.useMinWidth),t.onOpen(a,i,o),void 0!==n&&void 0!==n.onOpen&&n.onOpen(i,o)},o=function(t,i){r.unlink(e.element),void 0!==n&&void 0!==n.onClose&&n.onClose(t,i)},a=MP(e,t);return{dom:{tag:"div",classes:t.sandboxClasses,attributes:{id:r.id,role:"listbox"}},behaviours:Ug.augment(t.sandboxBehaviours,[Fg.config({store:{mode:"memory",initialValue:e}}),rg.config({onOpen:i,onClose:o,isPartOf:function(t,n,r){return $l(n,r)||$l(e,r)},getAttachPoint:function(){return a().getOrDie()}}),nv.config({find:function(t){return rg.getState(t).bind(function(t){return nv.getCurrent(t)})}}),lf.config({channels:J(J({},ug({isExtraPart:Y})),cg({doReposition:IP}))})])}},$P=function(t){var e=wP.getCoupled(t,"sandbox");IP(e)},LP=function(){return[qo("sandboxClasses",[]),Ug.field("sandboxBehaviours",[nv,lf,rg,Fg])]},jP=U([To("dom"),To("fetch"),Ql("onOpen"),Zl("onExecute"),qo("getHotspot",nt.some),qo("getAnchorOverrides",U({})),Ad(),Bg("dropdownBehaviours",[Q_,wP,h_,I_]),To("toggleClass"),qo("eventOrder",{}),Lo("lazySink"),qo("matchWidth",!1),qo("useMinWidth",!1),Lo("role")].concat(LP())),FP=U([ym({schema:[Kl()],name:"menu",defaults:function(t){return{onExecute:t.onExecute}}}),kP()]),BP=function(t,e,n,r){var i,o=function(t){rg.getState(t).each(function(t){Mw.highlightPrimary(t)})},a=function(e){NP(t,H,e,r,o,YO.HighlightFirst).get(F)},s={expand:function(e){Q_.isOn(e)||NP(t,H,e,r,F,YO.HighlightNone).get(F)},open:function(e){Q_.isOn(e)||NP(t,H,e,r,F,YO.HighlightFirst).get(F)},isOpen:Q_.isOn,close:function(e){Q_.isOn(e)&&NP(t,H,e,r,F,YO.HighlightFirst).get(F)},repositionMenus:function(t){Q_.isOn(t)&&$P(t)}},u=function(t,e){return ws(t),nt.some(!0)};return{uid:t.uid,dom:t.dom,components:e,behaviours:zg(t.dropdownBehaviours,[Q_.config({toggleClass:t.toggleClass,aria:{mode:"expanded"}}),wP.config({others:{sandbox:function(e){return RP(t,e,{onOpen:function(){return Q_.on(e)},onClose:function(){return Q_.off(e)}})}}}),h_.config({mode:"special",onSpace:u,onEnter:u,onDown:function(t,e){if(VP.isOpen(t)){var n=wP.getCoupled(t,"sandbox");o(n)}else VP.open(t);return nt.some(!0)},onEscape:function(t,e){return VP.isOpen(t)?(VP.close(t),nt.some(!0)):nt.none()}}),I_.config({})]),events:tw(nt.some(a)),eventOrder:J(J({},t.eventOrder),(i={},i[Qa()]=["disabling","toggling","alloy.base.behaviour"],i)),apis:s,domModification:{attributes:J(J({"aria-haspopup":"true"},t.role.fold(function(){return{}},function(t){return{role:t}})),"button"===t.dom.tag?{type:function(e){return Wt(t.dom,"attributes").bind(function(t){return Wt(t,e)})}("type").getOr("button")}:{})}}},VP=Jm({name:"Dropdown",configFields:jP(),partFields:FP(),factory:BP,apis:{open:function(t,e){return t.open(e)},expand:function(t,e){return t.expand(e)},close:function(t,e){return t.close(e)},isOpen:function(t,e){return t.isOpen(e)},repositionMenus:function(t,e){return t.repositionMenus(e)}}}),zP=function(){return Cu({styles:{"-webkit-user-select":"none","user-select":"none","-ms-user-select":"none","-moz-user-select":"-moz-none"},attributes:{unselectable:"on"}})},UP=function(){return Cs([Es(qa(),K)])},HP=Object.freeze({__proto__:null,events:UP,exhibit:zP}),qP=of({fields:[],name:"unselecting",active:HP}),WP=function(t,e){return VP.sketch({dom:t.dom,components:t.components,toggleClass:"mce-active",dropdownBehaviours:nf([wE.button(e.providers.isDisabled),mE(),qP.config({}),xO.config({})]),layouts:t.layouts,sandboxClasses:["tox-dialog__popups"],lazySink:e.getSink,fetch:function(n){return rP.nu(function(e){return t.fetch(e)}).map(function(r){return nt.from(LA(xi(sA(Zs("menu-value"),r,function(e){t.onItemAction(n,e)},t.columns,t.presets,hS.CLOSE_ON_EXECUTE,Y,e.providers),{movement:lA(t.columns,t.presets)})))})},parts:{menu:SS(0,0,t.presets)}})},GP=Zs("color-input-change"),YP=Zs("color-swatch-change"),KP=Zs("color-picker-cancel"),XP=function(t,e,n){var r=yO.parts.field({factory:qO,inputClasses:["tox-textfield"],onSetValue:function(t){return gP.run(t).get(F)},inputBehaviours:nf([wv.config({disabled:e.providers.isDisabled}),mE(),xO.config({}),gP.config({invalidClass:"tox-textbox-field-invalid",getRoot:function(t){return yn(t.element)},notify:{onValid:function(t){var e=Fg.getValue(t);_s(t,GP,{color:e})}},validator:{validateOnLoad:!1,validate:function(t){var e=Fg.getValue(t);if(0===e.length)return rP.pure(ii.value(!0));var n=_e.fromTag("span");Kn(n,"background-color",e);var r=tr(n,"background-color").fold(function(){return ii.error("blah")},function(t){return ii.value(e)});return rP.pure(r)}}})]),selectOnFocus:!1}),i=t.label.map(function(t){return OO(t,e.providers)}),o=function(t,e){_s(t,YP,{value:e})},a=function(t,e){s.getOpt(t).each(function(t){"custom"===e?n.colorPicker(function(e){e.fold(function(){return bs(t,KP)},function(e){o(t,e),qT(e)})},"#ffffff"):"remove"===e?o(t,""):o(t,e)})},s=sx(WP({dom:{tag:"span",attributes:{"aria-label":e.providers.translate("Color swatch")}},layouts:{onRtl:function(){return[Dc,Nc,$c]},onLtr:function(){return[Nc,Dc,$c]}},components:[],fetch:eA(n.getColors(),n.hasCustomColors()),columns:n.getColorCols(),presets:"color",onItemAction:a},e));return yO.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:i.toArray().concat([{dom:{tag:"div",classes:["tox-color-input"]},components:[r,s.asSpec()]}]),fieldBehaviours:nf([C_("form-field-events",[As(GP,function(e,n){s.getOpt(e).each(function(t){Kn(t.element,"background-color",n.event.color)}),_s(e,PO,{name:t.name})}),As(YP,function(t,e){yO.getField(t).each(function(n){Fg.setValue(n,e.event.value),nv.getCurrent(t).each(I_.focus)})}),As(KP,function(t,e){yO.getField(t).each(function(e){nv.getCurrent(t).each(I_.focus)})})])])})},JP=bm({schema:[To("dom")],name:"label"}),QP=function(t){return bm({name:t+"-edge",overrides:function(e){return e.model.manager.edgeActions[t].fold(function(){return{}},function(t){return{events:Cs([Os(Ea(),function(e,n,r){return t(e,r)},[e]),Os(Pa(),function(e,n,r){return t(e,r)},[e]),Os(Na(),function(e,n,r){r.mouseIsDown.get()&&t(e,r)},[e])])}})}})},ZP=QP("top-left"),tN=QP("top"),eN=QP("top-right"),nN=QP("right"),rN=QP("bottom-right"),iN=QP("bottom"),oN=QP("bottom-left"),aN=QP("left"),sN=vm({name:"thumb",defaults:U({dom:{styles:{position:"absolute"}}}),overrides:function(t){return{events:Cs([Ds(Ea(),t,"spectrum"),Ds(Ta(),t,"spectrum"),Ds(Aa(),t,"spectrum"),Ds(Pa(),t,"spectrum"),Ds(Na(),t,"spectrum"),Ds(Ma(),t,"spectrum")])}}}),uN=vm({schema:[Co("mouseIsDown",function(){return ta(!1)})],name:"spectrum",overrides:function(t){var e=t.model,n=e.manager,r=function(e,r){return n.getValueFromEvent(r).map(function(r){return n.setValueFrom(e,t,r)})};return{behaviours:nf([h_.config({mode:"special",onLeft:function(e){return n.onLeft(e,t)},onRight:function(e){return n.onRight(e,t)},onUp:function(e){return n.onUp(e,t)},onDown:function(e){return n.onDown(e,t)}}),I_.config({})]),events:Cs([As(Ea(),r),As(Ta(),r),As(Pa(),r),As(Na(),function(e,n){t.mouseIsDown.get()&&r(e,n)})])}}}),lN=[JP,aN,nN,tN,iN,ZP,eN,oN,rN,sN,uN],cN=U("slider.change.value"),fN=function(t){return-1!==t.type.indexOf("touch")},dN=function(t){var e=t.event.raw;if(fN(e)){var n=e;return void 0!==n.touches&&1===n.touches.length?nt.some(n.touches[0]).map(function(t){return fr(t.clientX,t.clientY)}):nt.none()}var r=e;return void 0!==r.clientX?nt.some(r).map(function(t){return fr(t.clientX,t.clientY)}):nt.none()},hN=function(t){return t.model.minX},pN=function(t){return t.model.minY},gN=function(t){return t.model.minX-1},mN=function(t){return t.model.minY-1},vN=function(t){return t.model.maxX},yN=function(t){return t.model.maxY},bN=function(t){return t.model.maxX+1},_N=function(t){return t.model.maxY+1},wN=function(t,e,n){return e(t)-n(t)},xN=function(t){return wN(t,vN,hN)},kN=function(t){return wN(t,yN,pN)},SN=function(t){return xN(t)/2},CN=function(t){return kN(t)/2},EN=function(t){return t.stepSize},TN=function(t){return t.snapToGrid},AN=function(t){return t.snapStart},ON=function(t){return t.rounded},PN=function(t,e){return void 0!==t[e+"-edge"]},NN=function(t){return PN(t,"left")},DN=function(t){return PN(t,"right")},MN=function(t){return PN(t,"top")},IN=function(t){return PN(t,"bottom")},RN=function(t){return t.model.value.get()},$N=function(t){return{x:t}},LN=function(t){return{y:t}},jN=function(t,e){return{x:t,y:e}},FN=function(t,e){_s(t,cN(),{value:e})},BN=function(t,e){FN(t,jN(gN(e),mN(e)))},VN=function(t,e){FN(t,LN(mN(e)))},zN=function(t,e){FN(t,jN(SN(e),mN(e)))},UN=function(t,e){FN(t,jN(bN(e),mN(e)))},HN=function(t,e){FN(t,$N(bN(e)))},qN=function(t,e){FN(t,jN(bN(e),CN(e)))},WN=function(t,e){FN(t,jN(bN(e),_N(e)))},GN=function(t,e){FN(t,LN(_N(e)))},YN=function(t,e){FN(t,jN(SN(e),_N(e)))},KN=function(t,e){FN(t,jN(gN(e),_N(e)))},XN=function(t,e){FN(t,$N(gN(e)))},JN=function(t,e){FN(t,jN(gN(e),CN(e)))},QN=function(t,e,n,r){return t<e?t:t>n?n:t===e?e-1:Math.max(e,t-r)},ZN=function(t,e,n,r){return t>n?t:t<e?e:t===n?n+1:Math.min(n,t+r)},tD=function(t,e,n){return Math.max(e,Math.min(n,t))},eD=function(t,e,n,r,i){return i.fold(function(){var i=t-e,o=Math.round(i/r)*r;return tD(e+o,e-1,n+1)},function(e){var i=(t-e)%r,o=Math.round(i/r),a=Math.floor((t-e)/r),s=Math.floor((n-e)/r),u=Math.min(s,a+o),l=e+u*r;return Math.max(e,l)})},nD=function(t,e,n){return Math.min(n,Math.max(t,e))-e},rD=function(t){var e=t.min,n=t.max,r=t.range,i=t.value,o=t.step,a=t.snap,s=t.snapStart,u=t.rounded,l=t.hasMinEdge,c=t.hasMaxEdge,f=t.minBound,d=t.maxBound,h=t.screenRange,p=l?e-1:e,g=c?n+1:n;if(i<f)return p;if(i>d)return g;var m=nD(i,f,d),v=tD(m/h*r+e,p,g);return a&&v>=e&&v<=n?eD(v,e,n,o,s):u?Math.round(v):v},iD=function(t){var e=t.min,n=t.max,r=t.range,i=t.value,o=t.hasMinEdge,a=t.hasMaxEdge,s=t.maxBound,u=t.maxOffset,l=t.centerMinEdge,c=t.centerMaxEdge;return i<e?o?0:l:i>n?a?s:c:(i-e)/r*u},oD=function(t){return t.element.dom.getBoundingClientRect()},aD=function(t,e){return t[e]},sD=function(t){var e=oD(t);return aD(e,"left")},uD=function(t){var e=oD(t);return aD(e,"right")},lD=function(t){var e=oD(t);return aD(e,"top")},cD=function(t){var e=oD(t);return aD(e,"bottom")},fD=function(t){var e=oD(t);return aD(e,"width")},dD=function(t){var e=oD(t);return aD(e,"height")},hD=function(t,e,n){return(t+e)/2-n},pD=function(t,e){var n=oD(t),r=oD(e),i=aD(n,"left"),o=aD(n,"right"),a=aD(r,"left");return hD(i,o,a)},gD=function(t,e){var n=oD(t),r=oD(e),i=aD(n,"top"),o=aD(n,"bottom"),a=aD(r,"top");return hD(i,o,a)},mD=function(t,e){_s(t,cN(),{value:e})},vD=function(t){return{x:t}},yD=function(t,e,n){var r={min:hN(e),max:vN(e),range:xN(e),value:n,step:EN(e),snap:TN(e),snapStart:AN(e),rounded:ON(e),hasMinEdge:NN(e),hasMaxEdge:DN(e),minBound:sD(t),maxBound:uD(t),screenRange:fD(t)};return rD(r)},bD=function(t,e,n){var r=yD(t,e,n),i=vD(r);return mD(t,i),r},_D=function(t,e){var n=hN(e);mD(t,vD(n))},wD=function(t,e){var n=vN(e);mD(t,vD(n))},xD=function(t,e,n){var r=t>0?ZN:QN,i=r(RN(n).x,hN(n),vN(n),EN(n));return mD(e,vD(i)),nt.some(i)},kD=function(t){return function(e,n){return xD(t,e,n).map(K)}},SD=function(t){return dN(t).map(function(t){return t.left})},CD=function(t,e,n,r,i){var o=fD(t),a=r.bind(function(e){return nt.some(pD(e,t))}).getOr(0),s=i.bind(function(e){return nt.some(pD(e,t))}).getOr(o),u={min:hN(e),max:vN(e),range:xN(e),value:n,hasMinEdge:NN(e),hasMaxEdge:DN(e),minBound:sD(t),minOffset:0,maxBound:uD(t),maxOffset:o,centerMinEdge:a,centerMaxEdge:s};return iD(u)},ED=function(t,e,n,r,i,o){var a=CD(e,o,n,r,i);return sD(e)-sD(t)+a},TD=function(t,e,n,r){var i=RN(n),o=ED(t,r.getSpectrum(t),i.x,r.getLeftEdge(t),r.getRightEdge(t),n),a=yr(e.element)/2;Kn(e.element,"left",o-a+"px")},AD=kD(-1),OD=kD(1),PD=nt.none,ND=nt.none,DD={"top-left":nt.none(),top:nt.none(),"top-right":nt.none(),right:nt.some(HN),"bottom-right":nt.none(),bottom:nt.none(),"bottom-left":nt.none(),left:nt.some(XN)},MD=Object.freeze({__proto__:null,setValueFrom:bD,setToMin:_D,setToMax:wD,findValueOfOffset:yD,getValueFromEvent:SD,findPositionOfValue:ED,setPositionFromValue:TD,onLeft:AD,onRight:OD,onUp:PD,onDown:ND,edgeActions:DD}),ID=function(t,e){_s(t,cN(),{value:e})},RD=function(t){return{y:t}},$D=function(t,e,n){var r={min:pN(e),max:yN(e),range:kN(e),value:n,step:EN(e),snap:TN(e),snapStart:AN(e),rounded:ON(e),hasMinEdge:MN(e),hasMaxEdge:IN(e),minBound:lD(t),maxBound:cD(t),screenRange:dD(t)};return rD(r)},LD=function(t,e,n){var r=$D(t,e,n),i=RD(r);return ID(t,i),r},jD=function(t,e){var n=pN(e);ID(t,RD(n))},FD=function(t,e){var n=yN(e);ID(t,RD(n))},BD=function(t,e,n){var r=t>0?ZN:QN,i=r(RN(n).y,pN(n),yN(n),EN(n));return ID(e,RD(i)),nt.some(i)},VD=function(t){return function(e,n){return BD(t,e,n).map(K)}},zD=function(t){return dN(t).map(function(t){return t.top})},UD=function(t,e,n,r,i){var o=dD(t),a=r.bind(function(e){return nt.some(gD(e,t))}).getOr(0),s=i.bind(function(e){return nt.some(gD(e,t))}).getOr(o),u={min:pN(e),max:yN(e),range:kN(e),value:n,hasMinEdge:MN(e),hasMaxEdge:IN(e),minBound:lD(t),minOffset:0,maxBound:cD(t),maxOffset:o,centerMinEdge:a,centerMaxEdge:s};return iD(u)},HD=function(t,e,n,r,i,o){var a=UD(e,o,n,r,i);return lD(e)-lD(t)+a},qD=function(t,e,n,r){var i=RN(n),o=HD(t,r.getSpectrum(t),i.y,r.getTopEdge(t),r.getBottomEdge(t),n),a=sr(e.element)/2;Kn(e.element,"top",o-a+"px")},WD=nt.none,GD=nt.none,YD=VD(-1),KD=VD(1),XD={"top-left":nt.none(),top:nt.some(VN),"top-right":nt.none(),right:nt.none(),"bottom-right":nt.none(),bottom:nt.some(GN),"bottom-left":nt.none(),left:nt.none()},JD=Object.freeze({__proto__:null,setValueFrom:LD,setToMin:jD,setToMax:FD,findValueOfOffset:$D,getValueFromEvent:zD,findPositionOfValue:HD,setPositionFromValue:qD,onLeft:WD,onRight:GD,onUp:YD,onDown:KD,edgeActions:XD}),QD=function(t,e){_s(t,cN(),{value:e})},ZD=function(t,e){return{x:t,y:e}},tM=function(t,e,n){var r=yD(t,e,n.left),i=$D(t,e,n.top),o=ZD(r,i);return QD(t,o),o},eM=function(t,e,n,r){var i=t>0?ZN:QN,o=e?RN(r).x:i(RN(r).x,hN(r),vN(r),EN(r)),a=e?i(RN(r).y,pN(r),yN(r),EN(r)):RN(r).y;return QD(n,ZD(o,a)),nt.some(o)},nM=function(t,e){return function(n,r){return eM(t,e,n,r).map(K)}},rM=function(t,e){var n=hN(e),r=pN(e);QD(t,ZD(n,r))},iM=function(t,e){var n=vN(e),r=yN(e);QD(t,ZD(n,r))},oM=function(t){return dN(t)},aM=function(t,e,n,r){var i=RN(n),o=ED(t,r.getSpectrum(t),i.x,r.getLeftEdge(t),r.getRightEdge(t),n),a=HD(t,r.getSpectrum(t),i.y,r.getTopEdge(t),r.getBottomEdge(t),n),s=yr(e.element)/2,u=sr(e.element)/2;Kn(e.element,"left",o-s+"px"),Kn(e.element,"top",a-u+"px")},sM=nM(-1,!1),uM=nM(1,!1),lM=nM(-1,!0),cM=nM(1,!0),fM={"top-left":nt.some(BN),top:nt.some(zN),"top-right":nt.some(UN),right:nt.some(qN),"bottom-right":nt.some(WN),bottom:nt.some(YN),"bottom-left":nt.some(KN),left:nt.some(JN)},dM=Object.freeze({__proto__:null,setValueFrom:tM,setToMin:rM,setToMax:iM,getValueFromEvent:oM,setPositionFromValue:aM,onLeft:sM,onRight:uM,onUp:lM,onDown:cM,edgeActions:fM}),hM=[qo("stepSize",1),qo("onChange",F),qo("onChoose",F),qo("onInit",F),qo("onDragStart",F),qo("onDragEnd",F),qo("snapToGrid",!1),qo("rounded",!0),Lo("snapStart"),Ao("model",ko("mode",{x:[qo("minX",0),qo("maxX",100),Co("value",function(t){return ta(t.mode.minX)}),To("getInitialValue"),nc("manager",MD)],y:[qo("minY",0),qo("maxY",100),Co("value",function(t){return ta(t.mode.minY)}),To("getInitialValue"),nc("manager",JD)],xy:[qo("minX",0),qo("maxX",100),qo("minY",0),qo("maxY",100),Co("value",function(t){return ta({x:t.mode.minX,y:t.mode.minY})}),To("getInitialValue"),nc("manager",dM)]})),Bg("sliderBehaviours",[h_,Fg]),Co("mouseIsDown",function(){return ta(!1)})],pM=function(t,e,n,r){var i,o=function(e){return Mm(e,t,"thumb")},a=function(e){return Mm(e,t,"spectrum")},s=function(e){return Dm(e,t,"left-edge")},u=function(e){return Dm(e,t,"right-edge")},l=function(e){return Dm(e,t,"top-edge")},c=function(e){return Dm(e,t,"bottom-edge")},f=t.model,d=f.manager,h=function(e,n){d.setPositionFromValue(e,n,t,{getLeftEdge:s,getRightEdge:u,getTopEdge:l,getBottomEdge:c,getSpectrum:a})},p=function(t,e){f.value.set(e);var n=o(t);h(t,n)},g=function(e,n){p(e,n);var r=o(e);return t.onChange(e,r,n),nt.some(!0)},m=function(e){d.setToMin(e,t)},v=function(e){d.setToMax(e,t)},y=function(e){var n=t.mouseIsDown.get();t.mouseIsDown.set(!1),n&&function(){Dm(e,t,"thumb").each(function(n){var r=f.value.get();t.onChoose(e,n,r)})}()},b=function(e,n){n.stop(),t.mouseIsDown.set(!0),t.onDragStart(e,o(e))},_=function(e,n){n.stop(),t.onDragEnd(e,o(e)),y(e)};return{uid:t.uid,dom:t.dom,components:e,behaviours:zg(t.sliderBehaviours,[h_.config({mode:"special",focusIn:function(e){return Dm(e,t,"spectrum").map(h_.focusIn).map(K)}}),Fg.config({store:{mode:"manual",getValue:function(t){return f.value.get()}}}),lf.config({channels:(i={},i[ag()]={onReceive:y},i)})]),events:Cs([As(cN(),function(t,e){g(t,e.event.value)}),Ls(function(e,n){var r=f.getInitialValue();f.value.set(r);var i=o(e);h(e,i);var s=a(e);t.onInit(e,i,s,f.value.get())}),As(Ea(),b),As(Aa(),_),As(Pa(),b),As(Ma(),_)]),apis:{resetToMin:m,resetToMax:v,setValue:p,refresh:h},domModification:{styles:{position:"relative"}}}},gM=Jm({name:"Slider",configFields:hM,partFields:lN,factory:pM,apis:{setValue:function(t,e,n){t.setValue(e,n)},resetToMin:function(t,e){t.resetToMin(e)},resetToMax:function(t,e){t.resetToMax(e)},refresh:function(t,e){t.refresh(e)}}}),mM=Zs("rgb-hex-update"),vM=Zs("slider-update"),yM=Zs("palette-update"),bM=function(t,e){var n=gM.parts.spectrum({dom:{tag:"div",classes:[e("hue-slider-spectrum")],attributes:{role:"presentation"}}}),r=gM.parts.thumb({dom:{tag:"div",classes:[e("hue-slider-thumb")],attributes:{role:"presentation"}}});return gM.sketch({dom:{tag:"div",classes:[e("hue-slider")],attributes:{role:"presentation"}},rounded:!1,model:{mode:"y",getInitialValue:U({y:0})},components:[n,r],sliderBehaviours:nf([I_.config({})]),onChange:function(t,e,n){_s(t,vM,{value:n})}})},_M=[Bg("formBehaviours",[Fg])],wM=function(t){return"<alloy.field."+t+">"},xM=function(t){var e=function(){var t=[];return{field:function(e,n){return t.push(e),Tm("form",wM(e),n)},record:U(t)}}(),n=t(e),r=e.record(),i=dt(r,function(t){return vm({name:t,pname:wM(t)})});return Hm("form",_M,i,SM,n)},kM=function(t,e){return t.fold(function(){return ii.error(e)},ii.value)},SM=function(t,e){return{uid:t.uid,dom:t.dom,components:e,behaviours:zg(t.formBehaviours,[Fg.config({store:{mode:"manual",getValue:function(e){var n=Rm(e,t);return jt(n,function(t,e){return t().bind(function(t){var n=nv.getCurrent(t);return kM(n,new Error("Cannot find a current component to extract the value from for form part '"+e+"': "+Ys(t.element)))}).map(Fg.getValue)})},setValue:function(e,n){Lt(n,function(n,r){Dm(e,t,r).each(function(t){nv.getCurrent(t).each(function(t){Fg.setValue(t,n)})})})}}})]),apis:{getField:function(e,n){return Dm(e,t,n).bind(nv.getCurrent)}}}},CM={getField:yu(function(t,e,n){return t.getField(e,n)}),sketch:xM},EM=Zs("valid-input"),TM=Zs("invalid-input"),AM=Zs("validating-input"),OM=function(t,e,n,r){var i=function(n,r){return gP.config({invalidClass:e("invalid"),notify:{onValidate:function(t){_s(t,AM,{type:n})},onValid:function(t){_s(t,EM,{type:n,value:Fg.getValue(t)})},onInvalid:function(t){_s(t,TM,{type:n,value:Fg.getValue(t)})}},validator:{validate:function(e){var n=Fg.getValue(e),i=r(n)?ii.value(!0):ii.error(t("aria.input.invalid"));return rP.pure(i)},validateOnLoad:!1}})},o=function(n,r,o,a,s){var u=t("colorcustom.rgb.range"),l=yO.parts.label({dom:{tag:"label",innerHtml:o,attributes:{"aria-label":a}}}),c=yO.parts.field({data:s,factory:qO,inputAttributes:J({type:"text"},"hex"===r?{"aria-live":"polite"}:{}),inputClasses:[e("textfield")],inputBehaviours:nf([i(r,n),xO.config({})]),onSetValue:function(t){if(gP.isInvalid(t)){gP.run(t).get(F)}}}),f=[l,c],d="hex"!==r?[yO.parts["aria-descriptor"]({text:u})]:[];return{dom:{tag:"div",attributes:{role:"presentation"}},components:f.concat(d)}},a=function(t,e){var n=lT(e);return CM.getField(t,"hex").each(function(e){I_.isFocused(e)||Fg.setValue(t,{hex:n.value})}),n},s=function(t,e){var n=e.red,r=e.green,i=e.blue;Fg.setValue(t,{red:n,green:r,blue:i})},u=sx({dom:{tag:"div",classes:[e("rgba-preview")],styles:{"background-color":"white"},attributes:{role:"presentation"}}}),l=function(t,e){u.getOpt(t).each(function(t){Kn(t.element,"background-color","#"+e.value)})};return Xm({factory:function(){var i={red:ta(nt.some(255)),green:ta(nt.some(255)),blue:ta(nt.some(255)),hex:ta(nt.some("ffffff"))},c=function(t,e){var n=yT(e);s(t,n),p(n)},f=function(t){return i[t].get()},d=function(t,e){i[t].set(e)},h=function(){return f("red").bind(function(t){return f("green").bind(function(e){return f("blue").map(function(n){return gT(t,e,n,1)})})})},p=function(t){var e=t.red,n=t.green,r=t.blue;d("red",nt.some(e)),d("green",nt.some(n)),d("blue",nt.some(r))},g=function(t,e){var n=e.event;"hex"!==n.type?d(n.type,nt.none()):r(t)},m=function(t,e){n(t);var r=tT(e);d("hex",nt.some(e));var i=yT(r);s(t,i),p(i),_s(t,mM,{hex:r}),l(t,r)},v=function(t,e,n){var r=parseInt(n,10);d(e,nt.some(r)),h().each(function(e){var n=a(t,e);_s(t,mM,{hex:n}),l(t,n)})},y=function(t){return"hex"===t.type},b=function(t,e){var n=e.event;y(n)?m(t,n.value):v(t,n.type,n.value)},_=function(e){return{label:t("colorcustom.rgb."+e+".label"),description:t("colorcustom.rgb."+e+".description")}},w=_("red"),x=_("green"),k=_("blue"),S=_("hex");return xi(CM.sketch(function(n){return{dom:{tag:"form",classes:[e("rgb-form")],attributes:{"aria-label":t("aria.color.picker")}},components:[n.field("red",yO.sketch(o(mT,"red",w.label,w.description,255))),n.field("green",yO.sketch(o(mT,"green",x.label,x.description,255))),n.field("blue",yO.sketch(o(mT,"blue",k.label,k.description,255))),n.field("hex",yO.sketch(o(rT,"hex",S.label,S.description,"ffffff"))),u.asSpec()],formBehaviours:nf([gP.config({invalidClass:e("form-invalid")}),C_("rgb-form-events",[As(EM,b),As(TM,g),As(AM,g)])])}}),{apis:{updateHex:function(t,e){Fg.setValue(t,{hex:e.value}),c(t,e),l(t,e)}}})},name:"RgbForm",configFields:[],apis:{updateHex:function(t,e,n){t.updateHex(e,n)}},extraApis:{}})},PM=function(t,e){var n=gM.parts.spectrum({dom:{tag:"canvas",attributes:{role:"presentation"},classes:[e("sv-palette-spectrum")]}}),r=gM.parts.thumb({dom:{tag:"div",attributes:{role:"presentation"},classes:[e("sv-palette-thumb")],innerHtml:"<div class="+e("sv-palette-inner-thumb")+' role="presentation"></div>'}}),i=function(t,e){var n=t.width,r=t.height,i=t.getContext("2d");if(null!==i){i.fillStyle=e,i.fillRect(0,0,n,r);var o=i.createLinearGradient(0,0,n,0);o.addColorStop(0,"rgba(255,255,255,1)"),o.addColorStop(1,"rgba(255,255,255,0)"),i.fillStyle=o,i.fillRect(0,0,n,r);var a=i.createLinearGradient(0,0,0,r);a.addColorStop(0,"rgba(0,0,0,0)"),a.addColorStop(1,"rgba(0,0,0,1)"),i.fillStyle=a,i.fillRect(0,0,n,r)}},o=function(t,e){var n=t.components()[0].element.dom,r=OT(e,100,100),o=vT(r);i(n,wT(o))},a=function(t,e){var n=PT(yT(e));gM.setValue(t,{x:n.saturation,y:100-n.value})};return Xm({factory:function(t){var o=U({x:0,y:0}),a=function(t,e,n){_s(t,yM,{value:n})},s=function(t,e,n,r){i(n.element.dom,wT(xT))},u=nf([nv.config({find:nt.some}),I_.config({})]);return gM.sketch({dom:{tag:"div",attributes:{role:"presentation"},classes:[e("sv-palette")]},model:{mode:"xy",getInitialValue:o},rounded:!1,components:[n,r],onChange:a,onInit:s,sliderBehaviours:u})},name:"SaturationBrightnessPalette",configFields:[],apis:{setHue:function(t,e,n){o(e,n)},setThumb:function(t,e,n){a(e,n)}},extraApis:{}})},NM=function(t,e){var n=function(n){var r=OM(t,e,n.onValidHex,n.onInvalidHex),i=PM(0,e),o=function(t){return(100-t)/100*360},a=function(t){return 100-t/360*100},s={paletteRgba:ta(xT),paletteHue:ta(0)},u=sx(bM(0,e)),l=sx(i.sketch({})),c=sx(r.sketch({})),f=function(t,e,n){l.getOpt(t).each(function(t){i.setHue(t,n)})},d=function(t,e){c.getOpt(t).each(function(t){r.updateHex(t,e)})},h=function(t,e,n){u.getOpt(t).each(function(t){gM.setValue(t,{y:a(n)})})},p=function(t,e){l.getOpt(t).each(function(t){i.setThumb(t,e)})},g=function(t,e){var n=yT(t);s.paletteRgba.set(n),s.paletteHue.set(e)},m=function(t,e,n,r){g(e,n),ht(r,function(r){r(t,e,n)})};return{uid:n.uid,dom:n.dom,components:[l.asSpec(),u.asSpec(),c.asSpec()],behaviours:nf([C_("colour-picker-events",[As(mM,function(){var t=[f,h,p];return function(e,n){var r=n.event.hex,i=NT(r);m(e,r,i.hue,t)}}()),As(yM,function(){var t=[d];return function(e,n){var r=n.event.value,i=s.paletteHue.get(),o=OT(i,r.x,100-r.y),a=DT(o);m(e,a,i,t)}}()),As(vM,function(){var t=[f,d];return function(e,n){var r=o(n.event.value.y),i=s.paletteRgba.get(),a=PT(i),u=OT(r,a.saturation,a.value),l=DT(u);m(e,l,r,t)}}())]),nv.config({find:function(t){return c.getOpt(t)}}),h_.config({mode:"acyclic"})])}};return Xm({name:"ColourPicker",configFields:[To("dom"),qo("onValidHex",F),qo("onInvalidHex",F)],factory:n})},DM=function(){return nv.config({find:nt.some})},MM=function(t){return nv.config({find:t.getOpt})},IM=function(t){return nv.config({find:function(e){return kn(e.element,t).bind(function(t){return e.getSystem().getByDom(t).toOptional()})}})},RM={self:DM,memento:MM,childAt:IM},$M={"colorcustom.rgb.red.label":"R","colorcustom.rgb.red.description":"Red component","colorcustom.rgb.green.label":"G","colorcustom.rgb.green.description":"Green component","colorcustom.rgb.blue.label":"B","colorcustom.rgb.blue.description":"Blue component","colorcustom.rgb.hex.label":"#","colorcustom.rgb.hex.description":"Hex color code","colorcustom.rgb.range":"Range 0 to 255","colorcustom.sb.saturation":"Saturation","colorcustom.sb.brightness":"Brightness","colorcustom.sb.picker":"Saturation and Brightness Picker","colorcustom.sb.palette":"Saturation and Brightness Palette","colorcustom.sb.instructions":"Use arrow keys to select saturation and brightness, on x and y axes","colorcustom.hue.hue":"Hue","colorcustom.hue.slider":"Hue Slider","colorcustom.hue.palette":"Hue Palette","colorcustom.hue.instructions":"Use arrow keys to select a hue","aria.color.picker":"Color Picker","aria.input.invalid":"Invalid input"},LM=function(t){return $M[t]},jM=function(t){return LM(t)},FM=function(t){var e=function(t){return"tox-"+t},n=NM(jM,e),r=function(t){_s(t,MO,{name:"hex-valid",value:!0})},i=function(t){_s(t,MO,{name:"hex-valid",value:!1})},o=sx(n.sketch({dom:{tag:"div",classes:[e("color-picker-container")],attributes:{role:"presentation"}},onValidHex:r,onInvalidHex:i}));return{dom:{tag:"div"},components:[o.asSpec()],behaviours:nf([Fg.config({store:{mode:"manual",getValue:function(t){var e=o.get(t);return nv.getCurrent(e).bind(function(t){return Fg.getValue(t).hex}).map(function(t){return"#"+t}).getOr("")},setValue:function(t,e){var n=/^#([a-fA-F0-9]{3}(?:[a-fA-F0-9]{3})?)/,r=n.exec(e),i=o.get(t);nv.getCurrent(i).fold(function(){console.log("Can not find form")},function(t){Fg.setValue(t,{hex:nt.from(r[1]).getOr("")}),CM.getField(t,"hex").each(function(t){bs(t,Fa())})})}}}),RM.self()])}},BM=tinymce.util.Tools.resolve("tinymce.Resource"),VM=function(t){return Gt(t,"init")},zM=function(t){var e=Gf(),n=sx({dom:{tag:t.tag}}),r=Gf();return{dom:{tag:"div",classes:["tox-custom-editor"]},behaviours:nf([C_("custom-editor-events",[Ls(function(i){n.getOpt(i).each(function(n){(VM(t)?t.init(n.element.dom):BM.load(t.scriptId,t.scriptUrl).then(function(e){return e(n.element.dom,t.settings)})).then(function(t){r.on(function(e){t.setValue(e)}),r.clear(),e.set(t)})})})]),Fg.config({store:{mode:"manual",getValue:function(){return e.get().fold(function(){return r.get().getOr("")},function(t){return t.getValue()})},setValue:function(t,n){e.get().fold(function(){r.set(n)},function(t){return t.setValue(n)})}}}),RM.self()]),components:[n.asSpec()]}},UM=tinymce.util.Tools.resolve("tinymce.util.Tools"),HM=Zi([qo("preprocess",H),qo("postprocess",H)]),qM=function(t,e){var n=wo("RepresentingConfigs.memento processors",HM,e);return Fg.config({store:{mode:"manual",getValue:function(e){var r=t.get(e),i=Fg.getValue(r);return n.postprocess(i)},setValue:function(e,r){var i=n.preprocess(r),o=t.get(e);Fg.setValue(o,i)}}})},WM=function(t,e,n){return Fg.config(xi({store:{mode:"manual",getValue:e,setValue:n}},t.map(function(t){return{store:{initialValue:t}}}).getOr({})))},GM=function(t,e,n){return WM(t,function(t){return e(t.element)},function(t,e){return n(t.element,e)})},YM=function(t){return GM(t,sl,ul)},KM=function(t){return GM(t,zs,Us)},XM=function(t){return Fg.config({store:{mode:"memory",initialValue:t}})},JM={memento:qM,withElement:GM,withComp:WM,domValue:YM,domHtml:KM,memory:XM},QM=function(t,e){var n=UM.explode(e.getSetting("images_file_types","jpeg,jpg,jpe,jfi,jif,jfif,png,gif,bmp,webp","string")),r=function(t){return lt(n,function(e){return ce(t.name.toLowerCase(),"."+e.toLowerCase())})};return mt(Mt(t),r)},ZM=function(t,e){var n=function(t,e){e.stop()},r=function(t){return function(e,n){ht(t,function(t){t(e,n)})}},i=function(t,e){if(!wv.isDisabled(t)){var n=e.event.raw;a(t,n.dataTransfer.files)}},o=function(t,e){var n=e.event.raw.target;a(t,n.files)},a=function(n,r){Fg.setValue(n,QM(r,e)),_s(n,PO,{name:t.name})},s=sx({dom:{tag:"input",attributes:{type:"file",accept:"image/*"},styles:{display:"none"}},behaviours:nf([C_("input-file-events",[Is(Va()),Is(ts())])])}),u=function(t){return{uid:t.uid,dom:{tag:"div",classes:["tox-dropzone-container"]},behaviours:nf([JM.memory([]),RM.self(),wv.config({}),Q_.config({toggleClass:"dragenter",toggleOnExecute:!1}),C_("dropzone-events",[As("dragenter",r([n,Q_.toggle])),As("dragleave",r([n,Q_.toggle])),As("dragover",n),As("drop",r([n,i])),As(Ba(),o)])]),components:[{dom:{tag:"div",classes:["tox-dropzone"],styles:{}},components:[{dom:{tag:"p",innerHtml:e.translate("Drop an image here")}},rx.sketch({dom:{tag:"button",innerHtml:e.translate("Browse for an image"),styles:{position:"relative"},classes:["tox-button","tox-button--secondary"]},components:[s.asSpec()],action:function(t){s.get(t).element.dom.click()},buttonBehaviours:nf([xO.config({}),wE.button(e.isDisabled),mE()])})]}]}},l=t.label.map(function(t){return OO(t,e)}),c=yO.parts.field({factory:{sketch:u}});return SO(l,c,["tox-form__group--stretched"],[])},tI=function(t,e){return{dom:{tag:"div",classes:["tox-form__grid","tox-form__grid--"+t.columns+"col"]},components:dt(t.items,e.interpreter)}},eI=Zs("alloy-fake-before-tabstop"),nI=Zs("alloy-fake-after-tabstop"),rI=function(t){return{dom:{tag:"div",styles:{width:"1px",height:"1px",outline:"none"},attributes:{tabindex:"0"},classes:t},behaviours:nf([I_.config({ignore:!0}),xO.config({})])}},iI=function(t){return{dom:{tag:"div",classes:["tox-navobj"]},components:[rI([eI]),t,rI([nI])],behaviours:nf([RM.childAt(1)])}},oI=function(t,e){_s(t,La(),{raw:{which:9,shiftKey:e}})},aI=function(t,e){var n=e.element;rl(n,eI)?oI(t,!0):rl(n,nI)&&oI(t,!1)},sI=function(t){return VA(t,["."+eI,"."+nI].join(","),Y)},uI=!(nn().browser.isIE()||nn().browser.isEdge()),lI=function(t){var e=ta("");return{getValue:function(t){return e.get()},setValue:function(n,r){if(t)Vn(n.element,"srcdoc",r);else{Vn(n.element,"src","javascript:''");var i=n.element.dom.contentWindow.document;i.open(),i.write(r),i.close()}e.set(r)}}},cI=function(t,e){var n=uI&&t.sandboxed,r=J(J({},t.label.map(function(t){return{title:t}}).getOr({})),n?{sandbox:"allow-scripts allow-same-origin"}:{}),i=lI(n),o=t.label.map(function(t){return OO(t,e)}),a=function(t){return iI({uid:t.uid,dom:{tag:"iframe",attributes:r},behaviours:nf([xO.config({}),I_.config({}),JM.withComp(nt.none(),i.getValue,i.setValue)])})},s=yO.parts.field({factory:{sketch:a}});return SO(o,s,["tox-form__group--stretched"],[])},fI=function(t,e){return pI(document.createElement("canvas"),t,e)},dI=function(t){var e=fI(t.width,t.height);return hI(e).drawImage(t,0,0),e},hI=function(t){return t.getContext("2d")},pI=function(t,e,n){return t.width=e,t.height=n,t},gI=function(t){return t.naturalWidth||t.width},mI=function(t){return t.naturalHeight||t.height},vI=function(t){return new KO(function(e,n){var r=URL.createObjectURL(t),i=new Image,o=function(){i.removeEventListener("load",a),i.removeEventListener("error",s)},a=function(){o(),e(i)},s=function(){o(),n("Unable to load data of type "+t.type+": "+r)};i.addEventListener("load",a),i.addEventListener("error",s),i.src=r,i.complete&&setTimeout(a,0)})},yI=function(t){var e=t.split(","),n=/data:([^;]+)/.exec(e[0]);if(!n)return nt.none();for(var r=n[1],i=e[1],o=atob(i),a=o.length,s=Math.ceil(a/1024),u=new Array(s),l=0;l<s;++l){for(var c=1024*l,f=Math.min(c+1024,a),d=new Array(f-c),h=c,p=0;h<f;++p,++h)d[p]=o[h].charCodeAt(0);u[l]=new Uint8Array(d)}return nt.some(new Blob(u,{type:r}))},bI=function(t){return new KO(function(e,n){yI(t).fold(function(){n("uri is not base64: "+t)},e)})},_I=function(t,e,n){return e=e||"image/png",$(HTMLCanvasElement.prototype.toBlob)?new KO(function(r,i){t.toBlob(function(t){t?r(t):i()},e,n)}):bI(t.toDataURL(e,n))},wI=function(t,e,n){return e=e||"image/png",t.toDataURL(e,n)},xI=function(t){return vI(t).then(function(t){SI(t);var e=fI(gI(t),mI(t));return hI(e).drawImage(t,0,0),e})},kI=function(t){return new KO(function(e){var n=new FileReader;n.onloadend=function(){e(n.result)},n.readAsDataURL(t)})},SI=function(t){URL.revokeObjectURL(t.src)},CI=function(t,e,n){var r=e.type,i=U(r),o=function(){return KO.resolve(e)},a=U(n),s=function(){return n.split(",")[1]},u=function(e,n){return t.then(function(t){return _I(t,e,n)})},l=function(e,n){return t.then(function(t){return wI(t,e,n)})};return{getType:i,toBlob:o,toDataURL:a,toBase64:s,toAdjustedBlob:u,toAdjustedDataURL:l,toAdjustedBase64:function(t,e){return l(t,e).then(function(t){return t.split(",")[1]})},toCanvas:function(){return t.then(dI)}}},EI=function(t){return kI(t).then(function(e){return CI(xI(t),t,e)})},TI=function(t,e){return _I(t,e).then(function(e){return CI(KO.resolve(t),e,t.toDataURL())})},AI=function(t){return EI(t)},OI=function(t,e,n){var r="string"==typeof t?parseFloat(t):t;return r>n?r=n:r<e&&(r=e),r},PI=function(){return[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1]},NI=[0,.01,.02,.04,.05,.06,.07,.08,.1,.11,.12,.14,.15,.16,.17,.18,.2,.21,.22,.24,.25,.27,.28,.3,.32,.34,.36,.38,.4,.42,.44,.46,.48,.5,.53,.56,.59,.62,.65,.68,.71,.74,.77,.8,.83,.86,.89,.92,.95,.98,1,1.06,1.12,1.18,1.24,1.3,1.36,1.42,1.48,1.54,1.6,1.66,1.72,1.78,1.84,1.9,1.96,2,2.12,2.25,2.37,2.5,2.62,2.75,2.87,3,3.2,3.4,3.6,3.8,4,4.3,4.7,4.9,5,5.5,6,6.5,6.8,7,7.3,7.5,7.8,8,8.4,8.7,9,9.4,9.6,9.8,10],DI=function(t,e){for(var n,r=[],i=new Array(25),o=0;o<5;o++){for(var a=0;a<5;a++)r[a]=e[a+5*o];for(var a=0;a<5;a++){n=0;for(var s=0;s<5;s++)n+=t[a+5*s]*r[s];i[a+5*o]=n}}return i},MI=function(t,e){var n;return e=OI(e,-1,1),e*=100,e<0?n=127+e/100*127:(n=e%1,n=0===n?NI[e]:NI[Math.floor(e)]*(1-n)+NI[Math.floor(e)+1]*n,n=127*n+127),DI(t,[n/127,0,0,0,.5*(127-n),0,n/127,0,0,.5*(127-n),0,0,n/127,0,.5*(127-n),0,0,0,1,0,0,0,0,0,1])},II=function(t,e){return e=OI(255*e,-255,255),DI(t,[1,0,0,0,e,0,1,0,0,e,0,0,1,0,e,0,0,0,1,0,0,0,0,0,1])},RI=function(t,e,n,r){return e=OI(e,0,2),n=OI(n,0,2),r=OI(r,0,2),DI(t,[e,0,0,0,0,0,n,0,0,0,0,0,r,0,0,0,0,0,1,0,0,0,0,0,1])},$I=function(t,e){return t.toCanvas().then(function(n){return LI(n,t.getType(),e)})},LI=function(t,e,n){var r=hI(t),i=function(t,e){for(var n,r,i,o,a=t.data,s=e[0],u=e[1],l=e[2],c=e[3],f=e[4],d=e[5],h=e[6],p=e[7],g=e[8],m=e[9],v=e[10],y=e[11],b=e[12],_=e[13],w=e[14],x=e[15],k=e[16],S=e[17],C=e[18],E=e[19],T=0;T<a.length;T+=4)n=a[T],r=a[T+1],i=a[T+2],o=a[T+3],a[T]=n*s+r*u+i*l+o*c+f,a[T+1]=n*d+r*h+i*p+o*g+m,a[T+2]=n*v+r*y+i*b+o*_+w,a[T+3]=n*x+r*k+i*S+o*C+E;return t}(r.getImageData(0,0,t.width,t.height),n);return r.putImageData(i,0,0),TI(t,e)},jI=function(t,e){return t.toCanvas().then(function(n){return FI(n,t.getType(),e)})},FI=function(t,e,n){var r=hI(t),i=r.getImageData(0,0,t.width,t.height),o=r.getImageData(0,0,t.width,t.height);return o=function(t,e,n){for(var r=function(t,e,n){return t>n?t=n:t<e&&(t=e),t},i=Math.round(Math.sqrt(n.length)),o=Math.floor(i/2),a=t.data,s=e.data,u=t.width,l=t.height,c=0;c<l;c++)for(var f=0;f<u;f++){for(var d=0,h=0,p=0,g=0;g<i;g++)for(var m=0;m<i;m++){var v=r(f+m-o,0,u-1),y=r(c+g-o,0,l-1),b=4*(y*u+v),_=n[g*i+m];d+=a[b]*_,h+=a[b+1]*_,p+=a[b+2]*_}var w=4*(c*u+f);s[w]=r(d,0,255),s[w+1]=r(h,0,255),s[w+2]=r(p,0,255)}return e}(i,o,n),r.putImageData(o,0,0),TI(t,e)},BI=function(t){return function(e,n){return $I(e,t(PI(),n))}},VI=function(t){return function(e){return $I(e,t)}}([-1,0,0,0,255,0,-1,0,0,255,0,0,-1,0,255,0,0,0,1,0,0,0,0,0,1]),zI=BI(II),UI=BI(MI),HI=function(t,e,n,r){return $I(t,RI(PI(),e,n,r))},qI=function(t){return function(e){return jI(e,t)}}([0,-1,0,-1,5,-1,0,-1,0]),WI=function(t){var e=function(e,n,r){for(var i=hI(e),o=new Array(256),a=0;a<o.length;a++)o[a]=t(a,r);var s=function(t,e){for(var n=t.data,r=0;r<n.length;r+=4)n[r]=e[n[r]],n[r+1]=e[n[r+1]],n[r+2]=e[n[r+2]];return t}(i.getImageData(0,0,e.width,e.height),o);return i.putImageData(s,0,0),TI(e,n)};return function(t,n){return t.toCanvas().then(function(r){return e(r,t.getType(),n)})}}(function(t,e){return 255*Math.pow(t/255,1-e)}),GI=function(t,e,n){var r=gI(t),i=mI(t),o=e/r,a=n/i,s=!1;(o<.5||o>2)&&(o=o<.5?.5:2,s=!0),(a<.5||a>2)&&(a=a<.5?.5:2,s=!0);var u=YI(t,o,a);return s?u.then(function(t){return GI(t,e,n)}):u},YI=function(t,e,n){return new KO(function(r){var i=gI(t),o=mI(t),a=Math.floor(i*e),s=Math.floor(o*n),u=fI(a,s);hI(u).drawImage(t,0,0,i,o,0,0,a,s),r(u)})},KI=function(t,e){void 0===e&&(e=2);var n=Math.pow(10,e),r=Math.round(t*n);return Math.ceil(r/n)},XI=function(t,e){return t.toCanvas().then(function(n){return JI(n,t.getType(),e)})},JI=function(t,e,n){var r=n<0?360+n:n,i=r*Math.PI/180,o=t.width,a=t.height,s=Math.sin(i),u=Math.cos(i),l=KI(Math.abs(o*u)+Math.abs(a*s)),c=KI(Math.abs(o*s)+Math.abs(a*u)),f=fI(l,c),d=hI(f);return d.translate(l/2,c/2),d.rotate(i),d.drawImage(t,-o/2,-a/2),TI(f,e)},QI=function(t,e){return t.toCanvas().then(function(n){return ZI(n,t.getType(),e)})},ZI=function(t,e,n){var r=fI(t.width,t.height),i=hI(r);return"v"===n?(i.scale(1,-1),i.drawImage(t,0,-r.height)):(i.scale(-1,1),i.drawImage(t,-r.width,0)),TI(r,e)},tR=function(t,e,n,r,i){return t.toCanvas().then(function(o){return eR(o,t.getType(),e,n,r,i)})},eR=function(t,e,n,r,i,o){var a=fI(i,o);return hI(a).drawImage(t,-n,-r),TI(a,e)},nR=function(t,e,n){return t.toCanvas().then(function(r){return GI(r,e,n).then(function(e){return TI(e,t.getType())})})},rR=function(t){return VI(t)},iR=function(t){return qI(t)},oR=function(t,e){return WI(t,e)},aR=function(t,e,n,r){return HI(t,e,n,r)},sR=function(t,e){return zI(t,e)},uR=function(t,e){return UI(t,e)},lR=function(t,e){return QI(t,e)},cR=function(t,e,n,r,i){return tR(t,e,n,r,i)},fR=function(t,e,n){return nR(t,e,n)},dR=function(t,e){return XI(t,e)},hR=function(t,e,n){return lk(t,{tag:"span",classes:["tox-icon","tox-tbtn__icon-wrap"],behaviours:n},e)},pR=function(t,e){return hR(t,e,[])},gR=function(t,e){return hR(t,e,[k_.config({})])},mR=function(t,e,n){return{dom:{tag:"span",innerHtml:n.translate(t),classes:[e+"__select-label"]},behaviours:nf([k_.config({})])}},vR=Zs("toolbar.button.execute"),yR=function(t){return Bs(function(e,n){xE(t,e)(function(n){_s(e,vR,{buttonApi:n}),t.onAction(n)})})},bR=(SP={},SP[Qa()]=["disabling","alloy.base.behaviour","toggling","toolbar-button-events"],SP),_R=Zs("update-menu-text"),wR=Zs("update-menu-icon"),xR=function(t,e,r){var o=ta(F),a=t.text.map(function(t){return sx(mR(t,e,r.providers))}),s=t.icon.map(function(t){return sx(gR(t,r.providers.icons))}),u=function(t,e){var n=Fg.getValue(t);return I_.focus(n),_s(n,"keydown",{raw:e.event.raw}),VP.close(n),nt.some(!0)},l=t.role.fold(function(){return{}},function(t){return{role:t}}),c=t.tooltip.fold(function(){return{}},function(t){var e=r.providers.translate(t);return{title:e,"aria-label":e}}),f=lk("chevron-down",{tag:"div",classes:[e+"__select-chevron"]},r.providers.icons);return sx(VP.sketch(J(J(J({},t.uid?{uid:t.uid}:{}),l),{dom:{tag:"button",classes:[e,e+"--select"].concat(dt(t.classes,function(t){return e+"--"+t})),attributes:J({},c)},components:TE([s.map(function(t){return t.asSpec()}),a.map(function(t){return t.asSpec()}),nt.some(f)]),matchWidth:!0,useMinWidth:!0,dropdownBehaviours:nf(i(i([],t.dropdownBehaviours,!0),[wE.button(function(){return t.disabled||r.providers.isDisabled()}),mE(),qP.config({}),k_.config({}),C_("dropdown-events",[kE(t,o),SE(t,o)]),C_("menubutton-update-display-text",[As(_R,function(t,e){a.bind(function(e){return e.getOpt(t)}).each(function(t){k_.set(t,[yl(r.providers.translate(e.event.text))])})}),As(wR,function(t,e){s.bind(function(e){return e.getOpt(t)}).each(function(t){k_.set(t,[gR(e.event.icon,r.providers.icons)])})})])],!1)),eventOrder:xi(bR,{mousedown:["focusing","alloy.base.behaviour","item-type-events","normal-dropdown-events"]}),sandboxBehaviours:nf([h_.config({mode:"special",onLeft:u,onRight:u})]),lazySink:r.getSink,toggleClass:e+"--active",parts:{menu:SS(0,t.columns,t.presets)},fetch:function(e){return rP.nu(n(t.fetch,e))}}))).asSpec()},kR=function(t){return A(t)},SR=function(t){return"separator"===t.type},CR=function(t){return Gt(t,"getSubmenuItems")},ER={type:"separator"},TR=function(t,e){var n=yt(t,function(t,n){return kR(n)?""===n?t:"|"===n?t.length>0&&!SR(t[t.length-1])?t.concat([ER]):t:Gt(e,n.toLowerCase())?t.concat([e[n.toLowerCase()]]):t:t.concat([n])},[]);return n.length>0&&SR(n[n.length-1])&&n.pop(),n},AR=function(t,e){var n=t.getSubmenuItems(),r=NR(n,e);return{item:t,menus:xi(r.menus,ca(t.value,r.items)),expansions:xi(r.expansions,ca(t.value,t.value))}},OR=function(t,e){return CR(t)?AR(t,e):{item:t,menus:{},expansions:{}}},PR=function(t){if(SR(t))return t;var e=Wt(t,"value").getOrThunk(function(){return Zs("generated-menu-item")});return xi({value:e},t)},NR=function(t,e){var n=TR(A(t)?t.split(" "):t,e);return vt(n,function(t,n){var r=PR(n),i=OR(r,e);return{menus:xi(t.menus,i.menus),items:[i.item].concat(t.items),expansions:xi(t.expansions,i.expansions)}},{menus:{},expansions:{},items:[]})},DR=function(t,e,n,r){var i=Zs("primary-menu"),o=NR(t,n.shared.providers.menuItems());if(0===o.items.length)return nt.none();var a=$A(i,o.items,e,n,r),s=jt(o.menus,function(t,r){return $A(r,t,e,n,!1)}),u=xi(s,ca(i,a));return nt.from(Mw.tieredData(i,u,o.expansions))},MR=function(t){return{isDisabled:function(){return wv.isDisabled(t)},setDisabled:function(e){return wv.set(t,e)},setActive:function(e){var n=t.element;e?(tl(n,"tox-tbtn--enabled"),Vn(n,"aria-pressed",!0)):(nl(n,"tox-tbtn--enabled"),Wn(n,"aria-pressed"))},isActive:function(){return rl(t.element,"tox-tbtn--enabled")}}},IR=function(t,e,n,r){return xR({text:t.text,icon:t.icon,tooltip:t.tooltip,role:r,fetch:function(e,r){t.fetch(function(t){r(DR(t,hS.CLOSE_ON_EXECUTE,n,!1))})},onSetup:t.onSetup,getApi:MR,columns:1,presets:"normal",classes:[],dropdownBehaviours:[xO.config({})]},e,n.shared)},RR=function(t,e,n){var r=function(t){return function(r){var i=!r.isActive();r.setActive(i),t.storage.set(i),n.shared.getSink().each(function(n){e().getOpt(n).each(function(e){hf(e.element),_s(e,MO,{name:t.name,value:t.storage.get()})})})}},i=function(t){return function(e){e.setActive(t.storage.get())}};return function(e){e(dt(t,function(t){var e=t.text.fold(function(){return{}},function(t){return{text:t}});return J(J({type:t.type,active:!1},e),{onAction:r(t),onSetup:i(t)})}))}},$R=function(t,e,n,r,i,o){void 0===n&&(n=[]);var a=e.fold(function(){return{}},function(t){return{action:t}}),s=J({buttonBehaviours:nf([wE.button(function(){return t.disabled||o.isDisabled()}),mE(),xO.config({}),C_("button press",[Ts("click"),Ts("mousedown")])].concat(n)),eventOrder:{click:["button press","alloy.base.behaviour"],mousedown:["button press","alloy.base.behaviour"]}},a),u=xi(s,{dom:r});return xi(u,{components:i})},LR=function(t,e,n,r){void 0===r&&(r=[]);var i=t.tooltip.map(function(t){return{"aria-label":n.translate(t),title:n.translate(t)}}).getOr({}),o={tag:"button",classes:["tox-tbtn"],attributes:i},a=t.icon.map(function(t){return pR(t,n.icons)}),s=TE([a]);return $R(t,e,r,o,s,n)},jR=function(t,e,n,r){void 0===r&&(r=[]);var i=LR(t,nt.some(e),n,r);return rx.sketch(i)},FR=function(t,e,n,r,o){void 0===r&&(r=[]),void 0===o&&(o=[]);var a=n.translate(t.text),s=t.icon?t.icon.map(function(t){return pR(t,n.icons)}):nt.none(),u=s.isSome()?TE([s]):[],l=s.isSome()?{}:{innerHtml:a},c=i(i(i(i([],t.primary||t.borderless?["tox-button"]:["tox-button","tox-button--secondary"],!0),s.isSome()?["tox-button--icon"]:[],!0),t.borderless?["tox-button--naked"]:[],!0),o,!0),f=J(J({tag:"button",classes:c},l),{attributes:{title:a}});return $R(t,e,r,f,u,n)},BR=function(t,e,n,r,i){void 0===r&&(r=[]),void 0===i&&(i=[]);var o=FR(t,nt.some(e),n,r,i);return rx.sketch(o)},VR=function(t,e){return function(n){"custom"===e?_s(n,MO,{name:t,value:{}}):"submit"===e?bs(n,IO):"cancel"===e?bs(n,DO):console.error("Unknown button type: ",e)}},zR=function(t,e){return"menu"===e},UR=function(t,e){return"custom"===e||"cancel"===e||"submit"===e},HR=function(t,e,n){if(zR(0,e)){var r=function(){return a},i=t,o=J(J({},t),{onSetup:function(e){return e.setDisabled(t.disabled),F},fetch:RR(i.items,r,n)}),a=sx(IR(o,"tox-tbtn",n,nt.none()));return a.asSpec()}if(UR(0,e)){var s=VR(t.name,e),u=J(J({},t),{borderless:!1});return BR(u,s,n.shared.providers,[])}console.error("Unknown footer button type: ",e)},qR=function(t,e){var n=VR(t.name,"custom");return CO(nt.none(),yO.parts.field(J({factory:rx},FR(t,nt.some(n),e,[JM.memory(""),RM.self()]))))},WR=U([qo("field1Name","field1"),qo("field2Name","field2"),tc("onLockedChange"),Xl(["lockClass"]),qo("locked",!1),Ug.field("coupledFieldBehaviours",[nv,Fg])]),GR=function(t,e,n){return Dm(t,e,n).bind(nv.getCurrent)},YR=function(t,e){return vm({factory:yO,name:t,overrides:function(t){return{fieldBehaviours:nf([C_("coupled-input-behaviour",[As(Fa(),function(n){GR(n,t,e).each(function(e){Dm(n,t,"lock").each(function(r){Q_.isOn(r)&&t.onLockedChange(n,e,r)})})})])])}}})},KR=U([YR("field1","field2"),YR("field2","field1"),vm({factory:rx,schema:[To("dom")],name:"lock",overrides:function(t){return{buttonBehaviours:nf([Q_.config({selected:t.locked,toggleClass:t.markers.lockClass,aria:{mode:"pressed"}})])}}})]),XR=function(t,e,n,r){return{uid:t.uid,dom:t.dom,components:e,behaviours:Ug.augment(t.coupledFieldBehaviours,[nv.config({find:nt.some}),Fg.config({store:{mode:"manual",getValue:function(e){var n,r=Lm(e,t,["field1","field2"]);return n={},n[t.field1Name]=Fg.getValue(r.field1()),n[t.field2Name]=Fg.getValue(r.field2()),n},setValue:function(e,n){var r=Lm(e,t,["field1","field2"]);Yt(n,t.field1Name)&&Fg.setValue(r.field1(),n[t.field1Name]),Yt(n,t.field2Name)&&Fg.setValue(r.field2(),n[t.field2Name])}}})]),apis:{getField1:function(e){return Dm(e,t,"field1")},getField2:function(e){return Dm(e,t,"field2")},getLock:function(e){return Dm(e,t,"lock")}}}},JR=Jm({name:"FormCoupledInputs",configFields:WR(),partFields:KR(),factory:XR,apis:{getField1:function(t,e){return t.getField1(e)},getField2:function(t,e){return t.getField2(e)},getLock:function(t,e){return t.getLock(e)}}}),QR=function(t){var e={"":0,px:0,pt:1,mm:1,pc:2,ex:2,em:2,ch:2,rem:2,cm:3,in:4,"%":4},n=t.value.toFixed(function(t){return t in e?e[t]:1}(t.unit));return-1!==n.indexOf(".")&&(n=n.replace(/\.?0*$/,"")),n+t.unit},ZR=function(t){var e=/^\s*(\d+(?:\.\d+)?)\s*(|cm|mm|in|px|pt|pc|em|ex|ch|rem|vw|vh|vmin|vmax|%)\s*$/,n=e.exec(t);if(null!==n){var r=parseFloat(n[1]),i=n[2];return ii.value({value:r,unit:i})}return ii.error(t)},t$=function(t,e){var n={"":96,px:96,pt:72,cm:2.54,pc:12,mm:25.4,in:1},r=function(t){return Gt(n,t)};return t.unit===e?nt.some(t.value):r(t.unit)&&r(e)?n[t.unit]===n[e]?nt.some(t.value):nt.some(t.value/n[t.unit]*n[e]):nt.none()},e$=function(t){return nt.none()},n$=function(t,e){return function(n){return t$(n,e).map(function(n){return{value:n*t,unit:e}})}},r$=function(t,e){var n=ZR(t).toOptional(),r=ZR(e).toOptional();return Zt(n,r,function(t,e){return t$(t,e.unit).map(function(t){return e.value/t}).map(function(t){return n$(t,e.unit)}).getOr(e$)}).getOr(e$)},i$=function(t,e){var n=e$,r=Zs("ratio-event"),i=function(t){return lk(t,{tag:"span",classes:["tox-icon","tox-lock-icon__"+t]},e.icons)},o=JR.parts.lock({dom:{tag:"button",classes:["tox-lock","tox-button","tox-button--naked","tox-button--icon"],attributes:{title:e.translate(t.label.getOr("Constrain proportions"))}},components:[i("lock"),i("unlock")],buttonBehaviours:nf([wv.config({disabled:function(){return t.disabled||e.isDisabled()}}),mE(),xO.config({})])}),a=function(t){return{dom:{tag:"div",classes:["tox-form__group"]},components:t}},s=function(n){return yO.parts.field({factory:qO,inputClasses:["tox-textfield"],inputBehaviours:nf([wv.config({disabled:function(){return t.disabled||e.isDisabled()}}),mE(),xO.config({}),C_("size-input-events",[As(Ra(),function(t,e){_s(t,r,{isField1:n})}),As(Ba(),function(e,n){_s(e,PO,{name:t.name})})])]),selectOnFocus:!1})},u=function(t){return{dom:{tag:"label",classes:["tox-label"],innerHtml:e.translate(t)}}},l=JR.parts.field1(a([yO.parts.label(u("Width")),s(!0)])),c=JR.parts.field2(a([yO.parts.label(u("Height")),s(!1)]));return JR.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:[{dom:{tag:"div",classes:["tox-form__controls-h-stack"]},components:[l,c,a([u("&nbsp;"),o])]}],field1Name:"width",field2Name:"height",locked:!0,markers:{lockClass:"tox-locked"},onLockedChange:function(t,e,r){ZR(Fg.getValue(t)).each(function(t){n(t).each(function(t){Fg.setValue(e,QR(t))})})},coupledFieldBehaviours:nf([wv.config({disabled:function(){return t.disabled||e.isDisabled()},onDisabled:function(t){JR.getField1(t).bind(yO.getField).each(wv.disable),JR.getField2(t).bind(yO.getField).each(wv.disable),JR.getLock(t).each(wv.disable)},onEnabled:function(t){JR.getField1(t).bind(yO.getField).each(wv.enable),JR.getField2(t).bind(yO.getField).each(wv.enable),JR.getLock(t).each(wv.enable)}}),mE(),C_("size-input-events2",[As(r,function(t,e){var r=e.event.isField1,i=r?JR.getField1(t):JR.getField2(t),o=r?JR.getField2(t):JR.getField1(t),a=i.map(Fg.getValue).getOr(""),s=o.map(Fg.getValue).getOr("");n=r$(a,s)})])])})},o$=U(Zs("undo")),a$=U(Zs("redo")),s$=U(Zs("zoom")),u$=U(Zs("back")),l$=U(Zs("apply")),c$=U(Zs("swap")),f$=U(Zs("transform")),d$=U(Zs("temp-transform")),h$=U(Zs("transform-apply")),p$={undo:o$,redo:a$,zoom:s$,back:u$,apply:l$,swap:c$,transform:f$,tempTransform:d$,transformApply:h$},g$=U("save-state"),m$=U("disable"),v$=U("enable"),y$={formActionEvent:MO,saveState:g$,disable:m$,enable:v$},b$=function(t,e){var n=function(t,n,r,i){return sx(BR({name:t,text:t,disabled:r,primary:i,icon:nt.none(),borderless:!1},n,e))},r=function(t,n,r,i){return sx(jR({name:t,icon:nt.some(t),tooltip:nt.some(n),disabled:i,primary:!1,borderless:!1},r,e))},i=function(t,e){t.map(function(t){var n=t.get(e);n.hasConfigured(wv)&&wv.disable(n)})},o=function(t,e){t.map(function(t){var n=t.get(e);n.hasConfigured(wv)&&wv.enable(n)})},a={tag:"div",classes:["tox-image-tools__toolbar","tox-image-tools-edit-panel"]},s=F,u=function(t,e,n){_s(t,e,n)},l=function(t){return bs(t,y$.disable())},c=function(t){return bs(t,y$.enable())},f=function(t,e){l(t),u(t,p$.transform(),{transform:e}),c(t)},d=function(t,e){l(t),u(t,p$.tempTransform(),{transform:e}),c(t)},h=function(t){return function(){at.getOpt(t).each(function(t){k_.set(t,[it])})}},p=function(t,e){l(t),u(t,p$.transformApply(),{transform:e,swap:h(t)}),c(t)},g=function(){return n("Back",function(t){return u(t,p$.back(),{swap:h(t)})},!1,!1)},m=function(){return sx({dom:{tag:"div",classes:["tox-spacer"]},behaviours:nf([wv.config({})])})},v=function(){return n("Apply",function(t){return u(t,p$.apply(),{swap:h(t)})},!0,!0)},y=function(){return function(e){var n=t.getRect();return cR(e,n.x,n.y,n.w,n.h)}},b=[g(),m(),n("Apply",function(e){var n=y();p(e,n),t.hideCrop()},!1,!0)],_=dO.sketch({dom:a,components:b.map(function(t){return t.asSpec()}),containerBehaviours:nf([C_("image-tools-crop-buttons-events",[As(y$.disable(),function(t,e){i(b,t)}),As(y$.enable(),function(t,e){o(b,t)})])])}),w=sx(i$({name:"size",label:nt.none(),constrain:!0,disabled:!1},e)),x=function(t,e){return function(n){return fR(n,t,e)}},k=[g(),m(),w,m(),n("Apply",function(t){w.getOpt(t).each(function(e){var n=Fg.getValue(e),r=parseInt(n.width,10),i=parseInt(n.height,10),o=x(r,i);p(t,o)})},!1,!0)],S=dO.sketch({dom:a,components:k.map(function(t){return t.asSpec()}),containerBehaviours:nf([C_("image-tools-resize-buttons-events",[As(y$.disable(),function(t,e){i(k,t)}),As(y$.enable(),function(t,e){o(k,t)})])])}),C=function(t,e){return function(n){return t(n,e)}},E=C(lR,"h"),T=C(lR,"v"),A=C(dR,-90),O=C(dR,90),P=function(t,e){d(t,e)},N=[g(),m(),r("flip-horizontally","Flip horizontally",function(t){P(t,E)},!1),r("flip-vertically","Flip vertically",function(t){P(t,T)},!1),r("rotate-left","Rotate counterclockwise",function(t){P(t,A)},!1),r("rotate-right","Rotate clockwise",function(t){P(t,O)},!1),m(),v()],D=dO.sketch({dom:a,components:N.map(function(t){return t.asSpec()}),containerBehaviours:nf([C_("image-tools-fliprotate-buttons-events",[As(y$.disable(),function(t,e){i(N,t)}),As(y$.enable(),function(t,e){o(N,t)})])])}),M=function(t,n,r,i,o){var a=gM.parts.label({dom:{tag:"label",classes:["tox-label"],innerHtml:e.translate(t)}}),s=gM.parts.spectrum({dom:{tag:"div",classes:["tox-slider__rail"],attributes:{role:"presentation"}}}),u=gM.parts.thumb({dom:{tag:"div",classes:["tox-slider__handle"],attributes:{role:"presentation"}}});return sx(gM.sketch({dom:{tag:"div",classes:["tox-slider"],attributes:{role:"presentation"}},model:{mode:"x",minX:r,maxX:o,getInitialValue:U({x:i})},components:[a,s,u],sliderBehaviours:nf([I_.config({})]),onChoose:n}))},I=function(t,e,n,r,i){return M(t,function(t,n,r){var i=C(e,r.x/100);f(t,i)},n,r,i)},R=function(t,e,n,r,i){return[g(),I(t,e,n,r,i),v()]},$=function(t,e,n,r,s){var u=R(t,e,n,r,s);return dO.sketch({dom:a,components:u.map(function(t){return t.asSpec()}),containerBehaviours:nf([C_("image-tools-filter-panel-buttons-events",[As(y$.disable(),function(t,e){i(u,t)}),As(y$.enable(),function(t,e){o(u,t)})])])})},L=[g(),m(),v()],j=dO.sketch({dom:a,components:L.map(function(t){return t.asSpec()})}),B=$("Brightness",sR,-100,0,100),V=$("Contrast",uR,-100,0,100),z=$("Gamma",oR,-100,0,100),H=function(t,e,n){return function(r){return aR(r,t,e,n)}},q=function(t){return M(t,function(t,e,n){var r=W.getOpt(t),i=Y.getOpt(t),o=G.getOpt(t);r.each(function(e){i.each(function(n){o.each(function(r){var i=Fg.getValue(e).x/100,o=Fg.getValue(r).x/100,a=Fg.getValue(n).x/100,s=H(i,o,a);f(t,s)})})})},0,100,200)},W=q("R"),G=q("G"),Y=q("B"),K=[g(),W,G,Y,v()],X=dO.sketch({dom:a,components:K.map(function(t){return t.asSpec()})}),J=function(t,e,n){return function(r){var i=function(){at.getOpt(r).each(function(e){k_.set(e,[t]),n(e)})};u(r,p$.swap(),{transform:e,swap:i})}},Q=function(e){t.showCrop()},Z=function(e){w.getOpt(e).each(function(e){var n=t.getMeasurements(),r=n.width,i=n.height;Fg.setValue(e,{width:r,height:i})})},tt=nt.some(iR),et=nt.some(rR),rt=[r("crop","Crop",J(_,nt.none(),Q),!1),r("resize","Resize",J(S,nt.none(),Z),!1),r("orientation","Orientation",J(D,nt.none(),s),!1),r("brightness","Brightness",J(B,nt.none(),s),!1),r("sharpen","Sharpen",J(j,tt,s),!1),r("contrast","Contrast",J(V,nt.none(),s),!1),r("color-levels","Color levels",J(X,nt.none(),s),!1),r("gamma","Gamma",J(z,nt.none(),s),!1),r("invert","Invert",J(j,et,s),!1)],it=dO.sketch({dom:a,components:rt.map(function(t){return t.asSpec()})}),ot=dO.sketch({dom:{tag:"div"},components:[it],containerBehaviours:nf([k_.config({})])}),at=sx(ot);return{memContainer:at,getApplyButton:function(t){return at.getOpt(t).map(function(t){var e=t.components()[0];return e.components()[e.components().length-1]})}}},_$=tinymce.util.Tools.resolve("tinymce.geom.Rect"),w$=tinymce.util.Tools.resolve("tinymce.util.Observable"),x$=tinymce.util.Tools.resolve("tinymce.util.VK"),k$=function(t){var e=Math.max,n=t.documentElement,r=t.body,i=e(n.scrollWidth,r.scrollWidth),o=e(n.clientWidth,r.clientWidth),a=e(n.offsetWidth,r.offsetWidth),s=e(n.scrollHeight,r.scrollHeight),u=e(n.clientHeight,r.clientHeight),l=e(n.offsetHeight,r.offsetHeight);return{width:i<a?o:i,height:s<l?u:s}},S$=function(t){return R(t.changedTouches)},C$=function(t){if(S$(t))for(var e="screenX screenY pageX pageY clientX clientY".split(" "),n=0;n<e.length;n++)t[e[n]]=t.changedTouches[0][e[n]]},E$=0,T$=function(t,e,n,r,o){var a,s=[],u="tox-crid-"+E$++,l=_e.fromDom(r),c=[{name:"move",xMul:0,yMul:0,deltaX:1,deltaY:1,deltaW:0,deltaH:0,label:"Crop Mask"},{name:"nw",xMul:0,yMul:0,deltaX:1,deltaY:1,deltaW:-1,deltaH:-1,label:"Top Left Crop Handle"},{name:"ne",xMul:1,yMul:0,deltaX:0,deltaY:1,deltaW:1,deltaH:-1,label:"Top Right Crop Handle"},{name:"sw",xMul:0,yMul:1,deltaX:1,deltaY:0,deltaW:-1,deltaH:1,label:"Bottom Left Crop Handle"},{name:"se",xMul:1,yMul:1,deltaX:0,deltaY:0,deltaW:1,deltaH:1,label:"Bottom Right Crop Handle"}],f=["top","right","bottom","left"],d=function(t,e){return{x:e.x+t.x,y:e.y+t.y,w:e.w,h:e.h}},h=function(t,e){return{x:e.x-t.x,y:e.y-t.y,w:e.w,h:e.h}},p=function(){return h(n,t)},g=function(e,r,i,o){var a=r.x+i*e.deltaX,s=r.y+o*e.deltaY,u=Math.max(20,r.w+i*e.deltaW),l=Math.max(20,r.h+o*e.deltaH),c=t=_$.clamp({x:a,y:s,w:u,h:l},n,"move"===e.name);c=h(n,c),S.fire("updateRect",{rect:c}),_(c)},m=function(t){var e=i(i([],dt(c,function(t){return"#"+u+"-"+t.name}),!0),dt(f,function(t){return"#"+u+"-"+t}),!0).join(","),n=Rh(l,e);t?ht(n,function(t){return rr(t,"display")}):ht(n,function(t){return Kn(t,"display","none")})},v=function(t){var n=function(t,e){Nl(l,"#"+u+"-"+t).each(function(t){Xn(t,{left:e.x+"px",top:e.y+"px",width:Math.max(0,e.w)+"px",height:Math.max(0,e.h)+"px"})})};ht(c,function(e){Nl(l,"#"+u+"-"+e.name).each(function(n){Xn(n,{left:t.w*e.xMul+t.x+"px",top:t.h*e.yMul+t.y+"px"})})}),n("top",{x:e.x,y:e.y,w:e.w,h:t.y-e.y}),n("right",{x:t.x+t.w,y:t.y,w:e.w-t.x-t.w+e.x,h:t.h}),n("bottom",{x:e.x,y:t.y+t.h,w:e.w,h:e.h-t.y-t.h+e.y}),n("left",{x:e.x,y:t.y,w:t.x-e.x,h:t.h}),n("move",t)},y=function(e){t=e,v(t)},b=function(n){e=n,v(t)},_=function(t){y(d(n,t))},w=function(e){n=e,v(t)},k=function(){ht(a,function(t){return t.destroy()}),a=[],ht(s,function(t){return t.unbind()}),s=[]};!function(){var e=function(e){var n;return x(u,{document:r.ownerDocument,root:Pn(l).dom,handle:u+"-"+e.name,start:function(){n=t},drag:function(t){g(e,n,t.deltaX,t.deltaY)}})},n=_e.fromTag("div");zn(n,{id:u,class:"tox-croprect-container",role:"grid","aria-dropeffect":"execute"}),Nr(l,n),ht(f,function(t){Nl(l,"#"+u).each(function(e){var n=_e.fromTag("div");zn(n,{id:u+"-"+t,class:"tox-croprect-block","data-mce-bogus":"all"}),Kn(n,"display","none"),Nr(e,n)})}),ht(c,function(t){Nl(l,"#"+u).each(function(e){var n=_e.fromTag("div");zn(n,{id:u+"-"+t.name,"aria-label":t.label,"aria-grabbed":"false","data-mce-bogus":"all",role:"gridcell",tabindex:"-1",title:t.label}),il(n,["tox-croprect-handle","tox-croprect-handle-"+t.name]),Kn(n,"display","none"),Nr(e,n)})}),a=dt(c,e),v(t);var i=function(t){Vn(t.target,"aria-grabbed","focus"===t.raw.type?"true":"false")},d=function(e){var n;ht(c,function(t){if(Un(e.target,"id")===u+"-"+t.name)return n=t,!1});var r=function(t,e,r,i,o){t.stopPropagation(),t.preventDefault(),g(n,r,i,o)};switch(e.raw.keyCode){case x$.LEFT:r(e,0,t,-10,0);break;case x$.RIGHT:r(e,0,t,10,0);break;case x$.UP:r(e,0,t,0,-10);break;case x$.DOWN:r(e,0,t,0,10);break;case x$.ENTER:case x$.SPACEBAR:e.prevent(),o()}};s.push(Kf(l,"focusin",i),Kf(l,"focusout",i),Kf(l,"keydown",d))}();var S=J(J({},w$),{toggleVisibility:m,setClampRect:w,setRect:y,getInnerRect:p,setInnerRect:_,setViewPortRect:b,destroy:k});return S},A$={create:T$},O$=function(t){return new Pk(function(e){var n=function(){t.removeEventListener("load",n),e(t)};t.complete?e(t):t.addEventListener("load",n)})},P$=function(t){var e=sx({dom:{tag:"div",classes:["tox-image-tools__image-bg"],attributes:{role:"presentation"}}}),n=ta(1),r=Wf(),i=ta({x:0,y:0,w:1,h:1}),o=ta({x:0,y:0,w:1,h:1}),a=function(t,o){p.getOpt(t).each(function(t){var a=n.get(),s=yr(t.element),u=sr(t.element),l=o.dom.naturalWidth*a,c=o.dom.naturalHeight*a,f=Math.max(0,s/2-l/2),d=Math.max(0,u/2-c/2),h={left:f.toString()+"px",top:d.toString()+"px",width:l.toString()+"px",height:c.toString()+"px",position:"absolute"};Xn(o,h),e.getOpt(t).each(function(t){Xn(t.element,h)}),r.run(function(t){var e=i.get();t.setRect({x:e.x*a+f,y:e.y*a+d,w:e.w*a,h:e.h*a}),t.setClampRect({x:f,y:d,w:l,h:c}),t.setViewPortRect({x:0,y:0,w:s,h:u})})})},s=function(t,e){p.getOpt(t).each(function(t){var r=yr(t.element),i=sr(t.element),o=e.dom.naturalWidth,a=e.dom.naturalHeight,s=Math.min(r/o,i/a);s>=1?n.set(1):n.set(s)})},u=function(t,e){var n=_e.fromTag("img");return Vn(n,"src",e),O$(n.dom).then(function(){t.getSystem().isConnected()&&p.getOpt(t).map(function(t){var e=bl({element:n});k_.replaceAt(t,1,nt.some(e));var r=o.get(),u={x:0,y:0,w:n.dom.naturalWidth,h:n.dom.naturalHeight};o.set(u);var l=_$.inflate(u,-20,-20);i.set(l),r.w===u.w&&r.h===u.h||s(t,n),a(t,n)})})},l=function(t,e){var r=n.get(),i=e>0?Math.min(2,r+.1):Math.max(.1,r-.1);n.set(i),p.getOpt(t).each(function(t){var e=t.components()[1].element;a(t,e)})},c=function(){r.run(function(t){t.toggleVisibility(!0)})},f=function(){r.run(function(t){t.toggleVisibility(!1)})},d=function(){return i.get()},h=dO.sketch({dom:{tag:"div",classes:["tox-image-tools__image"]},components:[e.asSpec(),{dom:{tag:"img",attributes:{src:t}}},{dom:{tag:"div"},behaviours:nf([C_("image-panel-crop-events",[Ls(function(t){p.getOpt(t).each(function(t){var e=t.element.dom,o=A$.create({x:10,y:10,w:100,h:100},{x:0,y:0,w:200,h:200},{x:0,y:0,w:200,h:200},e,F);o.toggleVisibility(!1),o.on("updateRect",function(t){var e=t.rect,r=n.get(),o={x:Math.round(e.x/r),y:Math.round(e.y/r),w:Math.round(e.w/r),h:Math.round(e.h/r)};i.set(o)}),r.set(o)})}),js(function(){r.clear()})])])}],containerBehaviours:nf([k_.config({}),C_("image-panel-events",[Ls(function(e){u(e,t)})])])}),p=sx(h);return{memContainer:p,updateSrc:u,zoom:l,showCrop:c,hideCrop:f,getRect:d,getMeasurements:function(){var t=o.get();return{width:t.w,height:t.h}}}},N$=function(t,e,n,r,i){return jR({name:t,icon:nt.some(e),disabled:n,tooltip:nt.some(t),primary:!1,borderless:!1},r,i)},D$=function(t,e){e?wv.enable(t):wv.disable(t)},M$=function(t){var e=function(t,e,i){n.getOpt(t).each(function(t){D$(t,e)}),r.getOpt(t).each(function(t){D$(t,i)})},n=sx(N$("Undo","undo",!0,function(t){_s(t,p$.undo(),{direction:1})},t)),r=sx(N$("Redo","redo",!0,function(t){_s(t,p$.redo(),{direction:1})},t));return{container:dO.sketch({dom:{tag:"div",classes:["tox-image-tools__toolbar","tox-image-tools__sidebar"]},components:[n.asSpec(),r.asSpec(),N$("Zoom in","zoom-in",!1,function(t){_s(t,p$.zoom(),{direction:1})},t),N$("Zoom out","zoom-out",!1,function(t){_s(t,p$.zoom(),{direction:-1})},t)]}),updateButtonUndoStates:e}},I$=function(t){var e=ta(t),n=Gf(),r=k();r.add(t);var i=function(){return e.get()},o=function(t){e.set(t)},a=function(){return n.get().getOrThunk(e.get)},s=function(t){var e=u(t);return f(),n.set(e),e.url},u=function(t){return{blob:t,url:URL.createObjectURL(t)}},l=function(t){URL.revokeObjectURL(t.url)},c=function(t){UM.each(t,l)},f=function(){n.on(l),n.clear()},d=function(t){var e=u(t);o(e);var n=r.add(e).removed;return c(n),e.url};return{getBlobState:i,setBlobState:o,addBlobState:d,getTempState:a,updateTempState:s,addTempState:function(t){var e=u(t);return n.set(e),e.url},applyTempState:function(t){return n.get().fold(F,function(e){d(e.blob),t()})},destroyTempState:f,undo:function(){var t=r.undo();return o(t),t.url},redo:function(){var t=r.redo();return o(t),t.url},getHistoryStates:function(){return{undoEnabled:r.canUndo(),redoEnabled:r.canRedo()}}}},R$=function(t,e){var n=I$(t.currentState),r=function(t,e){var n=e.event.direction;k.zoom(t,n)},i=function(t){var e=n.getHistoryStates();S.updateButtonUndoStates(t,e.undoEnabled,e.redoEnabled),_s(t,y$.formActionEvent,{name:y$.saveState(),value:e.undoEnabled})},o=function(t){S.updateButtonUndoStates(t,!1,!1)},a=function(t,e){var r=n.undo();f(t,r).then(function(e){c(t),i(t)})},s=function(t,e){var r=n.redo();f(t,r).then(function(e){c(t),i(t)})},u=function(t){return t.toBlob()},l=function(t){_s(t,y$.formActionEvent,{name:y$.disable(),value:{}})},c=function(t){C.getApplyButton(t).each(function(t){wv.enable(t)}),_s(t,y$.formActionEvent,{name:y$.enable(),value:{}})},f=function(t,e){return l(t),k.updateSrc(t,e)},d=function(t,e,n,r,o){l(t),AI(e).then(n).then(u).then(r).then(function(e){return f(t,e)}).then(function(){i(t),o(),c(t)}).catch(function(e){console.log(e),t.getSystem().isConnected()&&c(t)})},h=function(t,e,r){var i=n.getBlobState().blob;d(t,i,e,function(t){return n.updateTempState(t)},r)},p=function(t,e){var r=n.getTempState().blob;d(t,r,e,function(t){return n.addTempState(t)},F)},g=function(t,e,r){var i=n.getBlobState().blob;d(t,i,e,function(e){var r=n.addBlobState(e);return v(t),r},r)},m=function(t,e){var r=function(){v(t),(0,e.event.swap)()};n.applyTempState(r)},v=function(t){var e=n.getBlobState().url;return n.destroyTempState(),i(t),e},y=function(t){var e=v(t);f(t,e).then(function(e){c(t)})},b=function(t,e){y(t),(0,e.event.swap)(),k.hideCrop()},_=function(t,e){return h(t,e.event.transform,F)},w=function(t,e){return p(t,e.event.transform)},x=function(t,e){return g(t,e.event.transform,e.event.swap)},k=P$(t.currentState.url),S=M$(e),C=b$(k,e),E=function(t,e){o(t);var n=e.event.transform,r=e.event.swap;n.fold(function(){r()},function(e){h(t,e,r)})};return{dom:{tag:"div",attributes:{role:"presentation"}},components:[C.memContainer.asSpec(),k.memContainer.asSpec(),S.container],behaviours:nf([Fg.config({store:{mode:"manual",getValue:function(){return n.getBlobState()}}}),C_("image-tools-events",[As(p$.undo(),a),As(p$.redo(),s),As(p$.zoom(),r),As(p$.back(),b),As(p$.apply(),m),As(p$.transform(),_),As(p$.tempTransform(),w),As(p$.transformApply(),x),As(p$.swap(),E)]),RM.self()])}},$$=function(t,e){return{dom:{tag:"div",classes:["tox-form__group"]},components:[{dom:{tag:"label",innerHtml:e.providers.translate(t.label),classes:["tox-label"]}}].concat(dt(t.items,e.interpreter)),behaviours:nf([RM.self(),k_.config({}),JM.domHtml(nt.none()),h_.config({mode:"acyclic"})])}},L$=function(t){return!Gt(t,"items")},j$=function(t,e,n,r){return dt(n,function(n){return L$(n)?{type:"togglemenuitem",text:n.text,value:n.value,active:n.value===r,onAction:function(){Fg.setValue(t,n.value),_s(t,PO,{name:e}),I_.focus(t)}}:{type:"nestedmenuitem",text:n.text,getSubmenuItems:function(){return j$(t,e,n.items,r)}}})},F$=function(t,e){return It(t,function(t){return L$(t)?ne(t.value===e,t):F$(t.items,e)})},B$=function(t,e){var n=e.shared.providers,r=Nt(t.items).filter(L$),i=t.label.map(function(t){return OO(t,n)}),o=yO.parts.field({dom:{},factory:{sketch:function(n){return xR({uid:n.uid,text:r.map(function(t){return t.text}),icon:nt.none(),tooltip:t.label,role:nt.none(),fetch:function(n,r){var i=j$(n,t.name,t.items,Fg.getValue(n));r(DR(i,hS.CLOSE_ON_EXECUTE,e,!1))},onSetup:U(F),getApi:U({}),columns:1,presets:"normal",classes:[],dropdownBehaviours:[xO.config({}),Fg.config({store:{mode:"manual",initialValue:r.map(function(t){return t.value}).getOr(""),getValue:function(t){return Un(t.element,"data-value")},setValue:function(e,n){F$(t.items,n).each(function(t){Vn(e.element,"data-value",t.value),_s(e,_R,{text:t.text})})}}})]},"tox-listbox",e.shared)}}}),a={dom:{tag:"div",classes:["tox-listboxfield"]},components:[o]};return yO.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:xt([i.toArray(),[a]]),fieldBehaviours:nf([wv.config({disabled:U(t.disabled),onDisabled:function(t){yO.getField(t).each(wv.disable)},onEnabled:function(t){yO.getField(t).each(wv.enable)}})])})},V$=function(t,e){return{dom:{tag:"div",classes:t.classes},components:dt(t.items,e.shared.interpreter)}},z$=function(t,e){var n=dt(t.options,function(t){return{dom:{tag:"option",value:t.value,innerHtml:t.text}}}),r=t.data.map(function(t){return ca("initialValue",t)}).getOr({});return{uid:t.uid,dom:{tag:"select",classes:t.selectClasses,attributes:t.selectAttributes},components:n,behaviours:zg(t.selectBehaviours,[I_.config({}),Fg.config({store:J({mode:"manual",getValue:function(t){return sl(t.element)},setValue:function(e,n){_t(t.options,function(t){return t.value===n}).isSome()&&ul(e.element,n)}},r)})])}},U$=Xm({name:"HtmlSelect",configFields:[To("options"),Bg("selectBehaviours",[I_,Fg]),qo("selectClasses",[]),qo("selectAttributes",{}),Lo("data")],factory:z$}),H$=function(t,e){var n=dt(t.items,function(t){return{text:e.translate(t.text),value:t.value}}),r=t.label.map(function(t){return OO(t,e)}),i=yO.parts.field({dom:{},selectAttributes:{size:t.size},options:n,factory:U$,selectBehaviours:nf([wv.config({disabled:function(){return t.disabled||e.isDisabled()}}),xO.config({}),C_("selectbox-change",[As(Ba(),function(e,n){_s(e,PO,{name:t.name})})])])}),o=t.size>1?nt.none():nt.some(lk("chevron-down",{tag:"div",classes:["tox-selectfield__icon-js"]},e.icons)),a={dom:{tag:"div",classes:["tox-selectfield"]},components:xt([[i],o.toArray()])};return yO.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:xt([r.toArray(),[a]]),fieldBehaviours:nf([wv.config({disabled:function(){return t.disabled||e.isDisabled()},onDisabled:function(t){yO.getField(t).each(wv.disable)},onEnabled:function(t){yO.getField(t).each(wv.enable)}}),mE()])})},q$=function(t,e){var n=function(t){return{dom:{tag:"th",innerHtml:e.translate(t)}}},r=function(t){return{dom:{tag:"td",innerHtml:e.translate(t)}}},i=function(t){return{dom:{tag:"tr"},components:dt(t,r)}};return{dom:{tag:"table",classes:["tox-dialog__table"]},components:[function(t){return{dom:{tag:"thead"},components:[{dom:{tag:"tr"},components:dt(t,n)}]}}(t.header),function(t){return{dom:{tag:"tbody"},components:dt(t,i)}}(t.cells)],behaviours:nf([xO.config({}),I_.config({})])}},W$=function(t,e){var n=t.label.map(function(t){return OO(t,e)}),r=[wv.config({disabled:function(){return t.disabled||e.isDisabled()}}),mE(),h_.config({mode:"execution",useEnter:!0!==t.multiline,useControlEnter:!0===t.multiline,execute:function(t){return bs(t,IO),nt.some(!0)}}),C_("textfield-change",[As(Fa(),function(e,n){_s(e,PO,{name:t.name})}),As(Xa(),function(e,n){_s(e,PO,{name:t.name})})]),xO.config({})],i=t.validation.map(function(t){return gP.config({getRoot:function(t){return yn(t.element)},invalidClass:"tox-invalid",validator:{validate:function(e){var n=Fg.getValue(e),r=t.validator(n);return rP.pure(!0===r?ii.value(n):ii.error(r))},validateOnLoad:t.validateOnLoad}})}).toArray(),o=t.placeholder.fold(U({}),function(t){return{placeholder:e.translate(t)}}),a=t.inputMode.fold(U({}),function(t){return{inputmode:t}}),s=J(J({},o),a),u=yO.parts.field({tag:!0===t.multiline?"textarea":"input",inputAttributes:s,inputClasses:[t.classname],inputBehaviours:nf(xt([r,i])),selectOnFocus:!1,factory:qO}),l=t.flex?["tox-form__group--stretched"]:[],c=l.concat(t.maximized?["tox-form-group--maximize"]:[]),f=[wv.config({disabled:function(){return t.disabled||e.isDisabled()},onDisabled:function(t){yO.getField(t).each(wv.disable)},onEnabled:function(t){yO.getField(t).each(wv.enable)}}),mE()];return SO(n,u,c,f)},G$=function(t,e){return W$({name:t.name,multiline:!1,label:t.label,inputMode:t.inputMode,placeholder:t.placeholder,flex:!1,disabled:t.disabled,classname:"tox-textfield",validation:nt.none(),maximized:t.maximized},e)},Y$=function(t,e){return W$({name:t.name,multiline:!0,label:t.label,inputMode:nt.none(),placeholder:t.placeholder,flex:!0,disabled:t.disabled,classname:"tox-textarea",validation:nt.none(),maximized:t.maximized},e)},K$=function(t,e){var n=t.stream.streams,r=n.setup(t,e);return Cs([As(t.event,r),js(function(){return e.cancel()})].concat(t.cancelEvent.map(function(t){return[As(t,function(){return e.cancel()})]}).getOr([])))},X$=Object.freeze({__proto__:null,events:K$}),J$=function(t){var e=ta(null);return _u({readState:function(){return{timer:null!==e.get()?"set":"unset"}},setTimer:function(t){e.set(t)},cancel:function(){var t=e.get();null!==t&&t.cancel()}})},Q$=function(t){return t.stream.streams.state(t)},Z$=Object.freeze({__proto__:null,throttle:J$,init:Q$}),tL=function(t,e){var n=t.stream,r=gk(t.onStream,n.delay);return e.setTimer(r),function(t,e){r.throttle(t,e),n.stopEvent&&e.stop()}},eL=[Ao("stream",ko("mode",{throttle:[To("delay"),qo("stopEvent",!0),nc("streams",{setup:tL,state:J$})]})),qo("event","input"),Lo("cancelEvent"),tc("onStream")],nL=of({fields:eL,name:"streaming",active:X$,state:Z$}),rL=function(t,e,n){var r=Fg.getValue(n);Fg.setValue(e,r),oL(e)},iL=function(t,e){var n=t.element,r=sl(n),i=n.dom;"number"!==Un(n,"type")&&e(i,r)},oL=function(t){iL(t,function(t,e){return t.setSelectionRange(e.length,e.length)})},aL=function(t,e){iL(t,function(t,n){return t.setSelectionRange(e,n.length)})},sL=function(t,e,n){if(t.selectsOver){var r=Fg.getValue(e),i=t.getDisplayText(r),o=Fg.getValue(n);return 0===t.getDisplayText(o).indexOf(i)?nt.some(function(){rL(0,e,n),aL(e,i.length)}):nt.none()}return nt.none()},uL=U("alloy.typeahead.itemexecute"),lL=function(t,e,n,r){var i=function(e,n,i){t.previewing.set(!1);var o=wP.getCoupled(e,"sandbox");if(rg.isOpen(o))nv.getCurrent(o).each(function(t){Vv.getHighlighted(t).fold(function(){i(t)},function(){Ss(o,t.element,"keydown",n)})});else{var s=function(t){nv.getCurrent(t).each(i)};OP(t,a(e),e,o,r,s,YO.HighlightFirst).get(F)}},o=VO(t),a=function(t){return function(e){return e.map(function(e){var n=qt(e.menus),r=kt(n,function(t){return mt(t.items,function(t){return"item"===t.type})});return Fg.getState(t).update(dt(r,function(t){return t.data})),e})}},s=[I_.config({}),Fg.config({onSetValue:t.onSetValue,store:J({mode:"dataset",getDataKey:function(t){return sl(t.element)},getFallbackEntry:function(t){return{value:t,meta:{}}},setValue:function(e,n){ul(e.element,t.model.getDisplayText(n))}},t.initialData.map(function(t){return ca("initialValue",t)}).getOr({}))}),nL.config({stream:{mode:"throttle",delay:t.responseTime,stopEvent:!1},onStream:function(e,n){var i=wP.getCoupled(e,"sandbox");if(I_.isFocused(e)&&sl(e.element).length>=t.minChars){var o=nv.getCurrent(i).bind(function(t){return Vv.getHighlighted(t).map(Fg.getValue)});t.previewing.set(!0);var s=function(e){nv.getCurrent(i).each(function(e){o.fold(function(){t.model.selectsOver&&Vv.highlightFirst(e)},function(t){Vv.highlightBy(e,function(e){return Fg.getValue(e).value===t.value}),Vv.getHighlighted(e).orThunk(function(){return Vv.highlightFirst(e),nt.none()})})})};OP(t,a(e),e,i,r,s,YO.HighlightFirst).get(F)}},cancelEvent:rs()}),h_.config({mode:"special",onDown:function(t,e){return i(t,e,Vv.highlightFirst),nt.some(!0)},onEscape:function(t){var e=wP.getCoupled(t,"sandbox");return rg.isOpen(e)?(rg.close(e),nt.some(!0)):nt.none()},onUp:function(t,e){return i(t,e,Vv.highlightLast),nt.some(!0)},onEnter:function(e){var n=wP.getCoupled(e,"sandbox"),r=rg.isOpen(n);if(r&&!t.previewing.get())return nv.getCurrent(n).bind(function(t){return Vv.getHighlighted(t)}).map(function(t){return _s(e,uL(),{item:t}),!0});var i=Fg.getValue(e);return bs(e,rs()),t.onExecute(n,e,i),r&&rg.close(n),nt.some(!0)}}),Q_.config({toggleClass:t.markers.openClass,aria:{mode:"expanded"}}),wP.config({others:{sandbox:function(e){return RP(t,e,{onOpen:function(){return Q_.on(e)},onClose:function(){return Q_.off(e)}})}}}),C_("typeaheadevents",[Bs(function(e){var n=F;NP(t,a(e),e,r,n,YO.HighlightFirst).get(F)}),As(uL(),function(e,n){var r=wP.getCoupled(e,"sandbox");rL(t.model,e,n.event.item),bs(e,rs()),t.onItemExecute(e,r,n.event.item,Fg.getValue(e)),rg.close(r),oL(e)})].concat(t.dismissOnBlur?[As(Ka(),function(t){var e=wP.getCoupled(t,"sandbox");vf(e.element).isNone()&&rg.close(e)})]:[]))];return{uid:t.uid,dom:UO(xi(t,{inputAttributes:{role:"combobox","aria-autocomplete":"list","aria-haspopup":"true"}})),behaviours:J(J({},o),zg(t.typeaheadBehaviours,s)),eventOrder:t.eventOrder}},cL=U([Lo("lazySink"),To("fetch"),qo("minChars",5),qo("responseTime",1e3),Ql("onOpen"),qo("getHotspot",nt.some),qo("getAnchorOverrides",U({})),qo("layouts",nt.none()),qo("eventOrder",{}),Zo("model",{},[qo("getDisplayText",function(t){return void 0!==t.meta&&void 0!==t.meta.text?t.meta.text:t.value}),qo("selectsOver",!0),qo("populateFromBrowse",!0)]),Ql("onSetValue"),Zl("onExecute"),Ql("onItemExecute"),qo("inputClasses",[]),qo("inputAttributes",{}),qo("inputStyles",{}),qo("matchWidth",!0),qo("useMinWidth",!1),qo("dismissOnBlur",!0),Xl(["openClass"]),Lo("initialData"),Bg("typeaheadBehaviours",[I_,Fg,nL,h_,Q_,wP]),Co("previewing",function(){return ta(!0)})].concat(BO()).concat(LP())),fL=U([ym({schema:[Kl()],name:"menu",overrides:function(t){return{fakeFocus:!0,onHighlight:function(e,n){t.previewing.get()?e.getSystem().getByUid(t.uid).each(function(r){sL(t.model,r,n).fold(function(){return Vv.dehighlight(e,n)},function(t){return t()})}):e.getSystem().getByUid(t.uid).each(function(e){t.model.populateFromBrowse&&rL(t.model,e,n)}),t.previewing.set(!1)},onExecute:function(e,n){return e.getSystem().getByUid(t.uid).toOptional().map(function(t){return _s(t,uL(),{item:n}),!0})},onHover:function(e,n){t.previewing.set(!1),e.getSystem().getByUid(t.uid).each(function(e){t.model.populateFromBrowse&&rL(t.model,e,n)})}}}})]),dL=Jm({name:"Typeahead",configFields:cL(),partFields:fL(),factory:lL}),hL=function(t){var e=function(){return hL(t.toCached())},n=function(e){return hL(t.bind(function(t){return t.fold(function(t){return rP.pure(ii.error(t))},function(t){return e(t)})}))},r=function(e){return hL(t.map(function(t){return t.bind(e)}))},i=function(e){return hL(t.map(function(t){return t.map(e)}))},o=function(e){return hL(t.map(function(t){return t.mapError(e)}))},a=function(e,n){return t.map(function(t){return t.fold(e,n)})},s=function(e,n){return hL(rP.nu(function(r){var i=!1,o=setTimeout(function(){i=!0,r(ii.error(n()))},e);t.get(function(t){i||(clearTimeout(o),r(t))})}))};return J(J({},t),{toCached:e,bindFuture:n,bindResult:r,mapResult:i,mapError:o,foldResult:a,withTimeout:s})},pL=function(t){return hL(rP.nu(t))},gL=function(t){return hL(rP.pure(ii.value(t)))},mL=function(t){return hL(rP.pure(ii.error(t)))},vL=function(t){return hL(rP.pure(t))},yL=function(t){return hL(t.map(ii.value))},bL=function(t){return pL(function(e){t.then(function(t){e(ii.value(t))},function(t){e(ii.error(t))})})},_L={nu:pL,wrap:hL,pure:gL,value:gL,error:mL,fromResult:vL,fromFuture:yL,fromPromise:bL},wL={type:"separator"},xL=function(t){return{type:"menuitem",value:t.url,text:t.title,meta:{attach:t.attach},onAction:F}},kL=function(t,e){return{type:"menuitem",value:e,text:t,meta:{attach:void 0},onAction:F}},SL=function(t){return dt(t,xL)},CL=function(t,e){return mt(e,function(e){return e.type===t})},EL=function(t,e){return SL(CL(t,e))},TL=function(t){return EL("header",t.targets)},AL=function(t){return EL("anchor",t.targets)},OL=function(t){return nt.from(t.anchorTop).map(function(t){return kL("<top>",t)}).toArray()},PL=function(t){return nt.from(t.anchorBottom).map(function(t){return kL("<bottom>",t)}).toArray()},NL=function(t){return dt(t,function(t){return kL(t,t)})},DL=function(t){return yt(t,function(t,e){return 0===t.length||0===e.length?t.concat(e):t.concat(wL,e)},[])},ML=function(t,e){var n=t.toLowerCase();return mt(e,function(t){var e=void 0!==t.meta&&void 0!==t.meta.text?t.meta.text:t.text;return ue(e.toLowerCase(),n)||ue(t.value.toLowerCase(),n)})},IL=function(t,e,n){var r=Fg.getValue(e),i=void 0!==r.meta.text?r.meta.text:r.value;return n.getLinkInformation().fold(function(){return[]},function(e){var r=ML(i,NL(n.getHistory(t)));return"file"===t?DL([r,ML(i,TL(e)),ML(i,xt([OL(e),AL(e),PL(e)]))]):r})},RL=Zs("aria-invalid"),$L=function(t,e,n){var r,i=e.shared.providers,o=function(e){var r=Fg.getValue(e);n.addToHistory(r.value,t.filetype)},a=yO.parts.field({factory:dL,dismissOnBlur:!0,inputClasses:["tox-textfield"],sandboxClasses:["tox-dialog__popups"],inputAttributes:{"aria-errormessage":RL,type:"url"},minChars:0,responseTime:0,fetch:function(r){var i=IL(t.filetype,r,n),o=DR(i,hS.BUBBLE_TO_SANDBOX,e,!1);return rP.pure(o)},getHotspot:function(t){return d.getOpt(t)},onSetValue:function(t,e){t.hasConfigured(gP)&&gP.run(t).get(F)},typeaheadBehaviours:nf(xt([n.getValidationHandler().map(function(e){return gP.config({getRoot:function(t){return yn(t.element)},invalidClass:"tox-control-wrap--status-invalid",notify:{onInvalid:function(t,e){u.getOpt(t).each(function(t){Vn(t.element,"title",i.translate(e))})}},validator:{validate:function(n){var r=Fg.getValue(n);return _L.nu(function(n){e({type:t.filetype,url:r.value},function(t){if("invalid"===t.status){var e=ii.error(t.message);n(e)}else{var r=ii.value(t.message);n(r)}})})},validateOnLoad:!1}})}).toArray(),[wv.config({disabled:function(){return t.disabled||i.isDisabled()}}),xO.config({}),C_("urlinput-events",xt(["file"===t.filetype?[As(Fa(),function(e){_s(e,PO,{name:t.name})})]:[],[As(Ba(),function(e){_s(e,PO,{name:t.name}),o(e)}),As(Xa(),function(e){_s(e,PO,{name:t.name}),o(e)})]]))]])),eventOrder:(r={},r[Fa()]=["streaming","urlinput-events","invalidating"],r),model:{getDisplayText:function(t){return t.value},selectsOver:!1,populateFromBrowse:!1},markers:{openClass:"tox-textfield--popup-open"},lazySink:e.shared.getSink,parts:{menu:SS(0,0,"normal")},onExecute:function(t,e,n){_s(e,IO,{})},onItemExecute:function(e,n,r,i){o(e),_s(e,PO,{name:t.name})}}),s=t.label.map(function(t){return OO(t,i)}),u=sx(function(t,e,n,r){return void 0===n&&(n=t),void 0===r&&(r=t),lk(n,{tag:"div",classes:["tox-icon","tox-control-wrap__status-icon-"+t],attributes:J({title:i.translate(r),"aria-live":"polite"},e.fold(function(){return{}},function(t){return{id:t}}))},i.icons)}("invalid",nt.some(RL),"warning")),l=sx({dom:{tag:"div",classes:["tox-control-wrap__status-icon-wrap"]},components:[u.asSpec()]}),c=n.getUrlPicker(t.filetype),f=Zs("browser.url.event"),d=sx({dom:{tag:"div",classes:["tox-control-wrap"]},components:[a,l.asSpec()],behaviours:nf([wv.config({disabled:function(){return t.disabled||i.isDisabled()}})])}),h=sx(BR({name:t.name,icon:nt.some("browse"),text:t.label.getOr(""),disabled:t.disabled,primary:!1,borderless:!0},function(t){return bs(t,f)},i,[],["tox-browse-url"])),p=function(e){nv.getCurrent(e).each(function(n){var r=Fg.getValue(n),i=J({fieldname:t.name},r);c.each(function(r){r(i).get(function(r){Fg.setValue(n,r),_s(e,PO,{name:t.name})})})})};return yO.sketch({dom:TO(),components:s.toArray().concat([function(){return{dom:{tag:"div",classes:["tox-form__controls-h-stack"]},components:xt([[d.asSpec()],c.map(function(){return h.asSpec()}).toArray()])}}()]),fieldBehaviours:nf([wv.config({disabled:function(){return t.disabled||i.isDisabled()},onDisabled:function(t){yO.getField(t).each(wv.disable),h.getOpt(t).each(wv.disable)},onEnabled:function(t){yO.getField(t).each(wv.enable),h.getOpt(t).each(wv.enable)}}),mE(),C_("url-input-events",[As(f,p)])])})},LL=function(t,e){return dO.sketch({dom:{tag:"div",attributes:{role:"alert"},classes:["tox-notification","tox-notification--in","tox-notification--"+t.level]},components:[{dom:{tag:"div",classes:["tox-notification__icon"]},components:[rx.sketch({dom:{tag:"button",classes:["tox-button","tox-button--naked","tox-button--icon"],innerHtml:ik(t.icon,e.icons),attributes:{title:e.translate(t.iconTooltip)}},action:function(e){_s(e,MO,{name:"alert-banner",value:t.url})},buttonBehaviours:nf([sk()])})]},{dom:{tag:"div",classes:["tox-notification__body"],innerHtml:e.translate(t.text)}}]})},jL=function(t,e){var n=Fg.config({store:{mode:"manual",getValue:function(t){return t.element.dom.checked},setValue:function(t,e){t.element.dom.checked=e}}}),r=function(t){return t.element.dom.click(),nt.some(!0)},i=yO.parts.field({factory:{sketch:H},dom:{tag:"input",classes:["tox-checkbox__input"],attributes:{type:"checkbox"}},behaviours:nf([RM.self(),wv.config({disabled:function(){return t.disabled||e.isDisabled()}}),xO.config({}),I_.config({}),n,h_.config({mode:"special",onEnter:r,onSpace:r,stopSpaceKeyup:!0}),C_("checkbox-events",[As(Ba(),function(e,n){_s(e,PO,{name:t.name})})])])}),o=yO.parts.label({dom:{tag:"span",classes:["tox-checkbox__label"],innerHtml:e.translate(t.label)},behaviours:nf([qP.config({})])}),a=function(t){return lk("checked"===t?"selected":"unselected",{tag:"span",classes:["tox-icon","tox-checkbox-icon__"+t]},e.icons)},s=sx({dom:{tag:"div",classes:["tox-checkbox__icons"]},components:[a("checked"),a("unchecked")]});return yO.sketch({dom:{tag:"label",classes:["tox-checkbox"]},components:[i,s.asSpec(),o],fieldBehaviours:nf([wv.config({disabled:function(){return t.disabled||e.isDisabled()},disableClass:"tox-checkbox--disabled",onDisabled:function(t){yO.getField(t).each(wv.disable)},onEnabled:function(t){yO.getField(t).each(wv.enable)}}),mE()])})},FL=function(t){return"presentation"===t.presets?dO.sketch({dom:{tag:"div",classes:["tox-form__group"],innerHtml:t.html}}):dO.sketch({dom:{tag:"div",classes:["tox-form__group"],innerHtml:t.html,attributes:{role:"document"}},containerBehaviours:nf([xO.config({}),I_.config({})])})},BL=function(t){return function(e,n,r){return Wt(n,"name").fold(function(){return t(n,r)},function(i){return e.field(i,t(n,r))})}},VL={bar:BL(function(t,e){return pO(t,e.shared)}),collection:BL(function(t,e){return FO(t,e.shared.providers)}),alertbanner:BL(function(t,e){return LL(t,e.shared.providers)}),input:BL(function(t,e){return G$(t,e.shared.providers)}),textarea:BL(function(t,e){return Y$(t,e.shared.providers)}),label:BL(function(t,e){return $$(t,e.shared)}),iframe:function(t){return function(e,n,r){var i=xi(n,{source:"dynamic"});return BL(t)(e,i,r)}}(function(t,e){return cI(t,e.shared.providers)}),button:BL(function(t,e){return qR(t,e.shared.providers)}),checkbox:BL(function(t,e){return jL(t,e.shared.providers)}),colorinput:BL(function(t,e){return XP(t,e.shared,e.colorinput)}),colorpicker:BL(FM),dropzone:BL(function(t,e){return ZM(t,e.shared.providers)}),grid:BL(function(t,e){return tI(t,e.shared)}),listbox:BL(function(t,e){return B$(t,e)}),selectbox:BL(function(t,e){return H$(t,e.shared.providers)}),sizeinput:BL(function(t,e){return i$(t,e.shared.providers)}),urlinput:BL(function(t,e){return $L(t,e,e.urlinput)}),customeditor:BL(zM),htmlpanel:BL(FL),imagetools:BL(function(t,e){return R$(t,e.shared.providers)}),table:BL(function(t,e){return q$(t,e.shared.providers)}),panel:BL(function(t,e){return V$(t,e)})},zL={field:function(t,e){return e}},UL=function(t,e,n){var r=xi(n,{shared:{interpreter:function(e){return HL(t,e,r)}}});return HL(t,e,r)},HL=function(t,e,n){return Wt(VL,e.type).fold(function(){return console.error('Unknown factory type "'+e.type+'", defaulting to container: ',e),e},function(r){return r(t,e,n)})},qL=function(t,e){return HL(zL,t,e)},WL={valignCentre:[],alignCentre:[],alignLeft:[],alignRight:[],right:[],left:[],bottom:[],top:[]},GL=function(t,e,n){var r={maxHeightFunction:md()},i=function(){return{type:"node",root:Nn(t()),node:nt.from(t()),bubble:wd(12,12,WL),layouts:{onRtl:function(){return[Ww]},onLtr:function(){return[qw]}},overrides:r}},o=function(){return{type:"hotspot",hotspot:e(),bubble:wd(-12,12,WL),layouts:{onRtl:function(){return[Nc]},onLtr:function(){return[Dc]}},overrides:r}};return function(){return n()?i():o()}},YL=function(t,e,n){var r=function(){return{type:"node",root:Nn(t()),node:nt.from(t()),layouts:{onRtl:function(){return[Gw]},onLtr:function(){return[Gw]}}}},i=function(){return{type:"hotspot",hotspot:e(),layouts:{onRtl:function(){return[$c]},onLtr:function(){return[$c]}}}};return function(){return n()?r():i()}},KL=function(t,e){return function(){return{type:"selection",root:e(),getSelection:function(){var e=t.selection.getRng();return nt.some(fh.range(_e.fromDom(e.startContainer),e.startOffset,_e.fromDom(e.endContainer),e.endOffset))}}}},XL=function(t){return function(e){return{type:"node",root:t(),node:e}}},JL=function(t,e,n){var r=JC(t),i=function(){return _e.fromDom(t.getBody())},o=function(){return _e.fromDom(t.getContentAreaContainer())},a=function(){return r||!n()};return{inlineDialog:GL(o,e,a),banner:YL(o,e,a),cursor:KL(t,i),node:XL(i)}},QL=function(t){return function(e,n){oA(t)(e,n)}},ZL=function(t){return function(){return VT(t)}},tj=function(t){return function(){return UT(t)}},ej=function(t){return function(){return JT(t)}},nj=function(t){return{colorPicker:QL(t),hasCustomColors:ZL(t),getColors:tj(t),getColorCols:ej(t)}},rj=function(t){return function(){return nE(t)}},ij=function(t){return{isDraggableModal:rj(t)}},oj=function(t){var e=ta(WC(t)?"bottom":"top");return{isPositionedAtTop:function(){return"top"===e.get()},getDockingMode:e.get,setDockingMode:e.set}},aj=[{title:"Headings",items:[{title:"Heading 1",format:"h1"},{title:"Heading 2",format:"h2"},{title:"Heading 3",format:"h3"},{title:"Heading 4",format:"h4"},{title:"Heading 5",format:"h5"},{title:"Heading 6",format:"h6"}]},{title:"Inline",items:[{title:"Bold",format:"bold"},{title:"Italic",format:"italic"},{title:"Underline",format:"underline"},{title:"Strikethrough",format:"strikethrough"},{title:"Superscript",format:"superscript"},{title:"Subscript",format:"subscript"},{title:"Code",format:"code"}]},{title:"Blocks",items:[{title:"Paragraph",format:"p"},{title:"Blockquote",format:"blockquote"},{title:"Div",format:"div"},{title:"Pre",format:"pre"}]},{title:"Align",items:[{title:"Left",format:"alignleft"},{title:"Center",format:"aligncenter"},{title:"Right",format:"alignright"},{title:"Justify",format:"alignjustify"}]}],sj=function(t){return Gt(t,"items")},uj=function(t){return Gt(t,"block")},lj=function(t){return Gt(t,"inline")},cj=function(t){return Gt(t,"selector")},fj=function(t){return yt(t,function(t,e){if(sj(e)){var n=fj(e.items);return{customFormats:t.customFormats.concat(n.customFormats),formats:t.formats.concat([{title:e.title,items:n.formats}])}}if(lj(e)||uj(e)||cj(e)){var r=A(e.name)?e.name:e.title.toLowerCase(),i="custom-"+r;return{customFormats:t.customFormats.concat([{name:i,format:e}]),formats:t.formats.concat([{title:e.title,format:i,icon:e.icon}])}}return J(J({},t),{formats:t.formats.concat(e)})},{customFormats:[],formats:[]})},dj=function(t,e){var n=fj(e),r=function(e){ht(e,function(e){t.formatter.has(e.name)||t.formatter.register(e.name,e.format)})};return t.formatter?r(n.customFormats):t.on("init",function(){r(n.customFormats)}),n.formats},hj=function(t){return NC(t).map(function(e){var n=dj(t,e);return DC(t)?aj.concat(n):n}).getOr(aj)},pj=function(t,e,n){var r={type:"formatter",isSelected:e(t.format),getStylePreview:n(t.format)};return xi(t,r)},gj=function(t,e,n,r){var i=function(t){return pj(t,n,r)},o=function(t){return xi(t,{type:"submenu"})},a=function(e){var i=A(e.name)?e.name:Zs(e.title),o="custom-"+i,a={type:"formatter",format:o,isSelected:n(o),getStylePreview:r(o)},s=xi(e,a);return t.formatter.register(i,s),s},s=function(t){return dt(t,function(t){var e=Rt(t);if(Yt(t,"items")){var n=s(t.items);return xi(o(t),{getStyleItems:U(n)})}return Yt(t,"format")?i(t):1===e.length&&ut(e,"title")?xi(t,{type:"separator"}):a(t)})};return s(e)},mj=function(t){var e=function(e){return function(){return t.formatter.match(e)}},n=function(e){return function(){var n=t.formatter.get(e);return void 0!==n?nt.some({tag:n.length>0?n[0].inline||n[0].block||"div":"div",styles:t.dom.parseStyle(t.formatter.getCssText(e))}):nt.none()}},r=function(t){var e=t.items;return void 0!==e&&e.length>0?kt(e,r):[t.format]},i=ta([]),o=ta([]),a=ta([]),s=ta([]),u=ta(!1);return t.on("PreInit",function(a){var s=hj(t),u=gj(t,s,e,n);i.set(u),o.set(kt(u,r))}),t.on("addStyleModifications",function(i){var o=gj(t,i.items,e,n);a.set(o),u.set(i.replace),s.set(kt(o,r))}),{getData:function(){var t=u.get()?[]:i.get(),e=a.get();return t.concat(e)},getFlattenedKeys:function(){var t=u.get()?[]:o.get(),e=s.get();return t.concat(e)}}},vj=function(t){return R(t)&&1===t.nodeType},yj=UM.trim,bj=function(t){return function(e){if(vj(e)){if(e.contentEditable===t)return!0;if(e.getAttribute("data-mce-contenteditable")===t)return!0}return!1}},_j=bj("true"),wj=bj("false"),xj=function(t,e,n,r,i){return{type:t,title:e,url:n,level:r,attach:i}},kj=function(t){for(;t=t.parentNode;){var e=t.contentEditable;if(e&&"inherit"!==e)return _j(t)}return!1},Sj=function(t,e){return dt(Rh(_e.fromDom(e),t),function(t){return t.dom})},Cj=function(t){return t.innerText||t.textContent},Ej=function(t){return t.id?t.id:Zs("h")},Tj=function(t){return t&&"A"===t.nodeName&&void 0!==(t.id||t.name)},Aj=function(t){return Tj(t)&&Pj(t)},Oj=function(t){return t&&/^(H[1-6])$/.test(t.nodeName)},Pj=function(t){return kj(t)&&!wj(t)},Nj=function(t){return Oj(t)&&Pj(t)},Dj=function(t){return Oj(t)?parseInt(t.nodeName.substr(1),10):0},Mj=function(t){var e=Ej(t),n=function(){t.id=e};return xj("header",Cj(t),"#"+e,Dj(t),n)},Ij=function(t){var e=t.id||t.name,n=Cj(t);return xj("anchor",n||"#"+e,"#"+e,0,F)},Rj=function(t){return dt(mt(t,Nj),Mj)},$j=function(t){return dt(mt(t,Aj),Ij)},Lj=function(t){return Sj("h1,h2,h3,h4,h5,h6,a:not([href])",t)},jj=function(t){return yj(t.title).length>0},Fj=function(t){var e=Lj(t);return mt(Rj(e).concat($j(e)),jj)},Bj={find:Fj},Vj="tinymce-url-history",zj=function(t){return A(t)&&/^https?/.test(t)},Uj=function(t){return P(t)&&t.length<=5&&St(t,zj)},Hj=function(t){return O(t)&&Ht(t,function(t){return!Uj(t)}).isNone()},qj=function(){var t=IT.getItem(Vj);if(null===t)return{};var e;try{e=JSON.parse(t)}catch(t){if(t instanceof SyntaxError)return console.log("Local storage "+Vj+" was not valid JSON",t),{};throw t}return Hj(e)?e:(console.log("Local storage "+Vj+" was not valid format",e),{})},Wj=function(t){if(!Hj(t))throw new Error("Bad format for history:\n"+JSON.stringify(t));IT.setItem(Vj,JSON.stringify(t))},Gj=function(t){var e=qj();return Wt(e,t).getOr([])},Yj=function(t,e){if(zj(t)){var n=qj(),r=Wt(n,e).getOr([]),i=mt(r,function(e){return e!==t});n[e]=[t].concat(i).slice(0,5),Wj(n)}},Kj=function(t){return!!t},Xj=function(t){return jt(UM.makeMap(t,/[, ]/),Kj)},Jj=function(t){return nt.from(aE(t)).filter($)},Qj=function(t){var e=nt.some(sE(t)).filter(Kj),n=nt.some(uE(t)).filter(Kj),r=e.or(n).map(Xj);return Jj(t).fold(Y,function(t){return r.fold(K,function(t){return Rt(t).length>0&&t})})},Zj=function(t,e){var n=Qj(t);return D(n)?n?Jj(t):nt.none():n[e]?Jj(t):nt.none()},tF=function(t,e){return Zj(t,e).map(function(n){return function(r){return rP.nu(function(i){var o=function(t,e){if(!A(t))throw new Error("Expected value to be string");if(void 0!==e&&!O(e))throw new Error("Expected meta to be a object");i({value:t,meta:e})},a=J({filetype:e,fieldname:r.fieldname},nt.from(r.meta).getOr({}));n.call(t,o,r.value,a)})}})},eF=function(t){return nt.from(t).filter(A).getOrUndefined()},nF=function(t){return lE(t)?nt.none():nt.some({targets:Bj.find(t.getBody()),anchorTop:eF(cE(t)),anchorBottom:eF(fE(t))})},rF=function(t){return nt.from(dE(t))},iF=function(t){return{getHistory:Gj,addToHistory:Yj,getLinkInformation:function(){return nF(t)},getValidationHandler:function(){return rF(t)},getUrlPicker:function(e){return tF(t,e)}}},oF=function(t,e,n){var r=ta(!1),i=oj(e),o={shared:{providers:{icons:function(){return e.ui.registry.getAll().icons},menuItems:function(){return e.ui.registry.getAll().menuItems},translate:Zx.translate,isDisabled:function(){return e.mode.isReadOnly()||e.ui.isDisabled()},getSetting:e.getParam.bind(e)},interpreter:function(t){return qL(t,o)},anchors:JL(e,n,i.isPositionedAtTop),header:i,getSink:function(){return ii.value(t)}},urlinput:iF(e),styleselect:mj(e),colorinput:nj(e),dialog:ij(e),isContextMenuOpen:function(){return r.get()},setContextMenuState:function(t){return r.set(t)}};return o},aF=function(t,e,n){var r=function(t,r){ht([e,n],function(e){e.broadcastEvent(t,r)})},i=function(t,r){ht([e,n],function(e){e.broadcastOn([t],r)})},o=function(t){return i(ig(),{target:t.target})},a=df(),s=Kf(a,"touchstart",o),u=Kf(a,"touchmove",function(t){return r(os(),t)}),l=Kf(a,"touchend",function(t){return r(as(),t)}),c=Kf(a,"mousedown",o),f=Kf(a,"mouseup",function(t){0===t.raw.button&&i(ag(),{target:t.target})}),d=function(t){return i(ig(),{target:_e.fromDom(t.target)})},h=function(t){0===t.button&&i(ag(),{target:_e.fromDom(t.target)})},p=function(){ht(t.editorManager.get(),function(e){t!==e&&e.fire("DismissPopups",{relatedTarget:t})})},g=function(t){return r(ss(),Jf(t))},m=function(t){i(og(),{}),r(us(),Jf(t))},v=function(){return i(og(),{})},y=function(e){e.state&&i(ig(),{target:_e.fromDom(t.getContainer())})},b=function(t){i(ig(),{target:_e.fromDom(t.relatedTarget.getContainer())})};t.on("PostRender",function(){t.on("click",d),t.on("tap",d),t.on("mouseup",h),t.on("mousedown",p),t.on("ScrollWindow",g),t.on("ResizeWindow",m),t.on("ResizeEditor",v),t.on("AfterProgressState",y),t.on("DismissPopups",b)}),t.on("remove",function(){t.off("click",d),t.off("tap",d),t.off("mouseup",h),t.off("mousedown",p),t.off("ScrollWindow",g),t.off("ResizeWindow",m),t.off("ResizeEditor",v),t.off("AfterProgressState",y),t.off("DismissPopups",b),c.unbind(),s.unbind(),u.unbind(),l.unbind(),f.unbind()}),t.on("detach",function(){Lp(e),Lp(n),e.destroy(),n.destroy()})},sF=Bm,uF=xm,lF=U([qo("shell",!1),To("makeItem"),qo("setupItem",F),Ug.field("listBehaviours",[k_])]),cF=function(){return{behaviours:nf([k_.config({})])}},fF=bm({name:"items",overrides:cF}),dF=U([fF]),hF=U("CustomList"),pF=function(t,e,n,r){var i=function(e,n){a(e).fold(function(){throw console.error("Custom List was defined to not be a shell, but no item container was specified in components"),new Error("Custom List was defined to not be a shell, but no item container was specified in components")},function(r){var i=k_.contents(r),o=n.length,a=o-i.length,s=a>0?ct(a,function(){return t.makeItem()}):[],u=i.slice(o);ht(u,function(t){return k_.remove(r,t)}),ht(s,function(t){return k_.append(r,t)});var l=k_.contents(r);ht(l,function(r,i){t.setupItem(e,r,n[i],i)})})},o=t.shell?{behaviours:[k_.config({})],components:[]}:{behaviours:[],components:e},a=function(e){return t.shell?nt.some(e):Dm(e,t,"items")};return{uid:t.uid,dom:t.dom,components:o.components,behaviours:zg(t.listBehaviours,o.behaviours),apis:{setItems:i}}},gF=Jm({name:hF(),configFields:lF(),partFields:dF(),factory:pF,apis:{setItems:function(t,e,n){t.setItems(e,n)}}}),mF=U([To("dom"),qo("shell",!0),Bg("toolbarBehaviours",[k_])]),vF=function(){return{behaviours:nf([k_.config({})])}},yF=U([bm({name:"groups",overrides:vF})]),bF=function(t,e,n,r){var i=function(t,e){o(t).fold(function(){throw console.error("Toolbar was defined to not be a shell, but no groups container was specified in components"),new Error("Toolbar was defined to not be a shell, but no groups container was specified in components")},function(t){k_.set(t,e)})},o=function(e){return t.shell?nt.some(e):Dm(e,t,"groups")},a=t.shell?{behaviours:[k_.config({})],components:[]}:{behaviours:[],components:e};return{uid:t.uid,dom:t.dom,components:a.components,behaviours:zg(t.toolbarBehaviours,a.behaviours),apis:{setGroups:i},domModification:{attributes:{role:"group"}}}},_F=Jm({name:"Toolbar",configFields:mF(),partFields:yF(),factory:bF,apis:{setGroups:function(t,e,n){t.setGroups(e,n)}}}),wF=F,xF=Y,kF=U([]),SF=Object.freeze({__proto__:null,setup:wF,isDocked:xF,getBehaviours:kF}),CF=function(t){return(Kt(tr(t,"position"),"fixed")?nt.none():_n(t)).orThunk(function(){var e=_e.fromTag("span");return yn(t).bind(function(t){Nr(t,e);var n=_n(e);return $r(e),n})})},EF=function(t){return CF(t).map(pr).getOrThunk(function(){return fr(0,0)})},TF=na.generate([{static:[]},{absolute:["positionCss"]},{fixed:["positionCss"]}]),AF=function(t,e){var n=t.element;tl(n,e.transitionClass),nl(n,e.fadeOutClass),tl(n,e.fadeInClass),e.onShow(t)},OF=function(t,e){var n=t.element;tl(n,e.transitionClass),nl(n,e.fadeInClass),tl(n,e.fadeOutClass),e.onHide(t)},PF=function(t,e){return t.y<e.bottom&&t.bottom>e.y},NF=function(t,e){return t.y>=e.y},DF=function(t,e){return t.bottom<=e.bottom},MF=function(t,e,n){return St(t,function(t){switch(t){case"bottom":return DF(e,n);case"top":return NF(e,n)}})},IF=function(t,e){return e.getInitialPos().map(function(e){return Jr(e.bounds.x,e.bounds.y,yr(t),sr(t))})},RF=function(t,e,n){n.setInitialPos({style:er(t),position:Qn(t,"position")||"static",bounds:e})},$F=function(t,e,n){return n.getInitialPos().bind(function(r){switch(n.clearInitialPos(),r.position){case"static":return nt.some(TF.static());case"absolute":var i=CF(t).map(Qr).getOrThunk(function(){return Qr(jn())});return nt.some(TF.absolute(bf("absolute",Wt(r.style,"left").map(function(t){return e.x-i.x}),Wt(r.style,"top").map(function(t){return e.y-i.y}),Wt(r.style,"right").map(function(t){return i.right-e.right}),Wt(r.style,"bottom").map(function(t){return i.bottom-e.bottom}))));default:return nt.none()}})},LF=function(t,e,n){return IF(t,n).filter(function(t){return MF(n.getModes(),t,e)}).bind(function(e){return $F(t,e,n)})},jF=function(t,e,n){var r=Qr(t);if(MF(n.getModes(),r,e))return nt.none();RF(t,r,n);var i=ti(),o=r.x-i.x,a=e.y-i.y,s=i.bottom-e.bottom,u=r.y<=e.y;return nt.some(TF.fixed(bf("fixed",nt.some(o),u?nt.some(a):nt.none(),nt.none(),u?nt.none():nt.some(s))))},FF=function(t,e,n){var r=t.element;return Kt(tr(r,"position"),"fixed")?LF(r,e,n):jF(r,e,n)},BF=function(t,e){var n=t.element;return IF(n,e).bind(function(t){return $F(n,t,e)})},VF=function(t,e,n){n.setDocked(!1),ht(["left","right","top","bottom","position"],function(e){return rr(t.element,e)}),e.onUndocked(t)},zF=function(t,e,n,r){var i="fixed"===r.position;n.setDocked(i),wf(t.element,r),(i?e.onDocked:e.onUndocked)(t)},UF=function(t,e,n,r,i){void 0===i&&(i=!1),e.contextual.each(function(e){e.lazyContext(t).each(function(o){var a=PF(o,r);if(a!==n.isVisible())if(n.setVisible(a),i&&!a)il(t.element,[e.fadeOutClass]),e.onHide(t);else{var s=a?AF:OF;s(t,e)}})})},HF=function(t,e,n){var r=e.lazyViewport(t);n.isDocked()&&UF(t,e,n,r),FF(t,r,n).each(function(i){i.fold(function(){return VF(t,e,n)},function(r){return zF(t,e,n,r)},function(i){UF(t,e,n,r,!0),zF(t,e,n,i)})})},qF=function(t,e,n){var r=t.element;n.setDocked(!1),BF(t,n).each(function(r){r.fold(function(){return VF(t,e,n)},function(r){return zF(t,e,n,r)},F)}),n.setVisible(!0),e.contextual.each(function(e){ol(r,[e.fadeInClass,e.fadeOutClass,e.transitionClass]),e.onShow(t)}),WF(t,e,n)},WF=function(t,e,n){t.getSystem().isConnected()&&HF(t,e,n)},GF=function(t,e,n){n.isDocked()&&qF(t,e,n)},YF=function(t,e,n){return n.isDocked()},KF=function(t,e,n,r){return n.setModes(r)},XF=function(t,e,n){return n.getModes()},JF=Object.freeze({__proto__:null,refresh:WF,reset:GF,isDocked:YF,getModes:XF,setModes:KF}),QF=function(t,e){return Cs([$s(Ua(),function(n,r){t.contextual.each(function(t){if(rl(n.element,t.transitionClass)){ol(n.element,[t.transitionClass,t.fadeInClass]);(e.isVisible()?t.onShown:t.onHidden)(n)}r.stop()})}),As(ss(),function(n,r){WF(n,t,e)}),As(us(),function(n,r){GF(n,t,e)})])},ZF=Object.freeze({__proto__:null,events:QF}),tB=[Uo("contextual",[Po("fadeInClass"),Po("fadeOutClass"),Po("transitionClass"),Do("lazyContext"),Ql("onShow"),Ql("onShown"),Ql("onHide"),Ql("onHidden")]),Jo("lazyViewport",ti),Qo("modes",["top","bottom"],uo),Ql("onDocked"),Ql("onUndocked")],eB=function(t){var e=ta(!1),n=ta(!0),r=Gf(),i=ta(t.modes),o=function(){return"docked: "+e.get()+", visible: "+n.get()+", modes: "+i.get().join(",")};return _u({isDocked:e.get,setDocked:e.set,getInitialPos:r.get,setInitialPos:r.set,clearInitialPos:r.clear,isVisible:n.get,setVisible:n.set,getModes:i.get,setModes:i.set,readState:o})},nB=Object.freeze({__proto__:null,init:eB}),rB=of({fields:tB,name:"docking",active:ZF,apis:JF,state:nB}),iB=U(Zs("toolbar-height-change")),oB={fadeInClass:"tox-editor-dock-fadein",fadeOutClass:"tox-editor-dock-fadeout",transitionClass:"tox-editor-dock-transition"},aB=function(t,e){var n=pn(e),r=n.dom.defaultView.innerHeight,i=jr(n),o=_e.fromDom(t.elm),a=Zr(o),s=sr(o),u=a.y,l=u+s,c=pr(e),f=sr(e),d=c.top,h=d+f,p=Math.abs(d-i.top)<2,g=Math.abs(h-(i.top+r))<2;if(p&&u<h)Fr(i.left,u-f,n);else if(g&&l>d){var m=u-r+s+f;Fr(i.left,m,n)}},sB=function(t,e){return ut(rB.getModes(t),e)},uB=function(t){var e=function(t){return ur(t)+(parseInt(Qn(t,"margin-top"),10)||0)+(parseInt(Qn(t,"margin-bottom"),10)||0)},n=t.element;yn(n).each(function(r){var i="padding-"+rB.getModes(t)[0];if(rB.isDocked(t)){var o=yr(r);Kn(n,"width",o+"px"),Kn(r,i,e(n)+"px")}else rr(n,"width"),rr(r,i)})},lB=function(t,e){e?(nl(t,oB.fadeOutClass),il(t,[oB.transitionClass,oB.fadeInClass])):(nl(t,oB.fadeInClass),il(t,[oB.fadeOutClass,oB.transitionClass]))},cB=function(t,e){var n=_e.fromDom(t.getContainer());e?(tl(n,"tox-tinymce--toolbar-sticky-on"),nl(n,"tox-tinymce--toolbar-sticky-off")):(tl(n,"tox-tinymce--toolbar-sticky-off"),nl(n,"tox-tinymce--toolbar-sticky-on"))},fB=function(t,e){var n=pn(e);mf(n).filter(function(t){return!cn(e,t)}).filter(function(e){return cn(e,_e.fromDom(n.dom.body))||hn(t,e)}).each(function(){return hf(e)})},dB=function(t,e){return vf(t).orThunk(function(){return e().toOptional().bind(function(t){return vf(t.element)})})},hB=function(t,e,n){t.inline||(e.header.isPositionedAtTop()||t.on("ResizeEditor",function(){n().each(rB.reset)}),t.on("ResizeWindow ResizeEditor",function(){n().each(uB)}),t.on("SkinLoaded",function(){n().each(function(t){rB.isDocked(t)?rB.reset(t):rB.refresh(t)})}),t.on("FullscreenStateChanged",function(){n().each(rB.reset)})),t.on("AfterScrollIntoView",function(t){n().each(function(e){rB.refresh(e);var n=e.element;Ry(n)&&aB(t,n)})}),t.on("PostRender",function(){cB(t,!1)})},pB=function(t){return t().map(rB.isDocked).getOr(!1)},gB=function(){var t;return[lf.config({channels:(t={},t[iB()]={onReceive:uB},t)})]},mB=function(t,e){var n=Gf(),r=e.getSink,o=function(t){r().each(function(e){return t(e.element)})},a=function(e){t.inline||uB(e),cB(t,rB.isDocked(e)),e.getSystem().broadcastOn([og()],{}),r().each(function(t){return t.getSystem().broadcastOn([og()],{})})},s=t.inline?[]:gB();return i([I_.config({}),rB.config({contextual:J({lazyContext:function(e){var n=ur(e.element),r=t.inline?t.getContentAreaContainer():t.getContainer(),i=Qr(_e.fromDom(r)),o=i.height-n,a=i.y+(sB(e,"top")?0:n);return nt.some(Jr(i.x,a,i.width,o))},onShow:function(){o(function(t){return lB(t,!0)})},onShown:function(t){o(function(t){return ol(t,[oB.transitionClass,oB.fadeInClass])}),n.get().each(function(e){fB(t.element,e),n.clear()})},onHide:function(t){dB(t.element,r).fold(n.clear,n.set),o(function(t){return lB(t,!1)})},onHidden:function(){o(function(t){return ol(t,[oB.transitionClass])})}},oB),lazyViewport:function(e){var n=ti(),r=eE(t),i=n.y+(sB(e,"top")?r:0),o=n.height-(sB(e,"bottom")?r:0);return Jr(n.x,i,n.width,o)},modes:[e.header.getDockingMode()],onDocked:a,onUndocked:a})],s,!0)},vB=Object.freeze({__proto__:null,setup:hB,isDocked:pB,getBehaviours:mB}),yB=function(t){var e=t.editor,n=t.sticky?mB:kF;return{uid:t.uid,dom:t.dom,components:t.components,behaviours:nf(n(e,t.sharedBackstage))}},bB=Zi([Po("type"),Ao("items",eo([io([Po("name"),$o("items",uo)]),uo]))].concat(Yk)),_B=function(t){return bo("GroupToolbarButton",bB,t)},wB=[Bo("text"),Bo("tooltip"),Bo("icon"),Do("fetch"),Jo("onSetup",function(){return F})],xB=Zi(i([Po("type")],wB,!0)),kB=function(t){return bo("menubutton",xB,t)},SB=Zi([Po("type"),Bo("tooltip"),Bo("icon"),Bo("text"),Vo("select"),Do("fetch"),Jo("onSetup",function(){return F}),Ko("presets","normal",["normal","color","listpreview"]),qo("columns",1),Do("onAction"),Do("onItemAction")]),CB=function(t){return bo("SplitButton",SB,t)},EB=function(t,e){var n=function(t,n){var r=dt(n,function(t){var n={type:"menubutton",text:t.text,fetch:function(e){e(t.getItems())}},r=kB(n).mapError(function(t){return xo(t)}).getOrDie();return IR(r,"tox-mbtn",e.backstage,nt.some("menuitem"))});k_.set(t,r)},r={focus:h_.focusIn,setMenus:n};return{uid:t.uid,dom:t.dom,components:[],behaviours:nf([k_.config({}),C_("menubar-events",[Ls(function(e){t.onSetup(e)}),As(Ia(),function(t,e){Nl(t.element,".tox-mbtn--active").each(function(n){Dl(e.event.target,".tox-mbtn").each(function(e){cn(n,e)||t.getSystem().getByDom(n).each(function(n){t.getSystem().getByDom(e).each(function(t){VP.expand(t),VP.close(n),I_.focus(t)})})})})}),As(hs(),function(t,e){e.event.prevFocus.bind(function(e){return t.getSystem().getByDom(e).toOptional()}).each(function(n){e.event.newFocus.bind(function(e){return t.getSystem().getByDom(e).toOptional()}).each(function(t){VP.isOpen(n)&&(VP.expand(t),VP.close(n))})})})]),h_.config({mode:"flow",selector:".tox-mbtn",onEscape:function(e){return t.onEscape(e),nt.some(!0)}}),xO.config({})]),apis:r,domModification:{attributes:{role:"menubar"}}}},TB=Xm({factory:EB,name:"silver.Menubar",configFields:[To("dom"),To("uid"),To("onEscape"),To("backstage"),qo("onSetup",F)],apis:{focus:function(t,e){t.focus(e)},setMenus:function(t,e,n){t.setMenus(e,n)}}}),AB=function(t,e){return e.getAnimationRoot.fold(function(){return t.element},function(e){return e(t)})},OB=function(t){return t.dimension.property},PB=function(t,e){return t.dimension.getDimension(e)},NB=function(t,e){var n=AB(t,e);ol(n,[e.shrinkingClass,e.growingClass])},DB=function(t,e){nl(t.element,e.openClass),tl(t.element,e.closedClass),Kn(t.element,OB(e),"0px"),ir(t.element)},MB=function(t,e){nl(t.element,e.closedClass),tl(t.element,e.openClass),rr(t.element,OB(e))},IB=function(t,e,n,r){n.setCollapsed(),Kn(t.element,OB(e),PB(e,t.element)),ir(t.element),NB(t,e),DB(t,e),e.onStartShrink(t),e.onShrunk(t)},RB=function(t,e,n,r){var i=r.getOrThunk(function(){return PB(e,t.element)});n.setCollapsed(),Kn(t.element,OB(e),i),ir(t.element);var o=AB(t,e);nl(o,e.growingClass),tl(o,e.shrinkingClass),DB(t,e),e.onStartShrink(t)},$B=function(t,e,n){var r=PB(e,t.element);("0px"===r?IB:RB)(t,e,n,nt.some(r))},LB=function(t,e,n){var r=AB(t,e),i=rl(r,e.shrinkingClass),o=PB(e,t.element);MB(t,e);var a=PB(e,t.element),s=function(){Kn(t.element,OB(e),o),ir(t.element)},u=function(){DB(t,e)};(i?s:u)(),nl(r,e.shrinkingClass),tl(r,e.growingClass),MB(t,e),Kn(t.element,OB(e),a),n.setExpanded(),e.onStartGrow(t)},jB=function(t,e,n){if(n.isExpanded()){rr(t.element,OB(e));var r=PB(e,t.element);Kn(t.element,OB(e),r)}},FB=function(t,e,n){n.isExpanded()||LB(t,e,n)},BB=function(t,e,n){n.isExpanded()&&$B(t,e,n)},VB=function(t,e,n){n.isExpanded()&&IB(t,e,n)},zB=function(t,e,n){return n.isExpanded()},UB=function(t,e,n){return n.isCollapsed()},HB=function(t,e,n){var r=AB(t,e);return!0===rl(r,e.growingClass)},qB=function(t,e,n){var r=AB(t,e);return!0===rl(r,e.shrinkingClass)},WB=function(t,e,n){return HB(t,e)||qB(t,e)},GB=function(t,e,n){(n.isExpanded()?$B:LB)(t,e,n)},YB=Object.freeze({__proto__:null,refresh:jB,grow:FB,shrink:BB,immediateShrink:VB,hasGrown:zB,hasShrunk:UB,isGrowing:HB,isShrinking:qB,isTransitioning:WB,toggleGrow:GB,disableTransitions:NB}),KB=function(t,e,n){var r=e.expanded;return Cu(r?{classes:[e.openClass],styles:{}}:{classes:[e.closedClass],styles:ca(e.dimension.property,"0px")})},XB=function(t,e){return Cs([$s(Ua(),function(n,r){r.event.raw.propertyName===t.dimension.property&&(NB(n,t),e.isExpanded()&&rr(n.element,t.dimension.property),(e.isExpanded()?t.onGrown:t.onShrunk)(n))})])},JB=Object.freeze({__proto__:null,exhibit:KB,events:XB}),QB=[To("closedClass"),To("openClass"),To("shrinkingClass"),To("growingClass"),Lo("getAnimationRoot"),Ql("onShrunk"),Ql("onStartShrink"),Ql("onGrown"),Ql("onStartGrow"),qo("expanded",!1),Ao("dimension",ko("property",{width:[nc("property","width"),nc("getDimension",function(t){return yr(t)+"px"})],height:[nc("property","height"),nc("getDimension",function(t){return sr(t)+"px"})]}))],ZB=function(t){var e=ta(t.expanded),r=function(){return"expanded: "+e.get()};return _u({isExpanded:function(){return!0===e.get()},isCollapsed:function(){return!1===e.get()},setCollapsed:n(e.set,!1),setExpanded:n(e.set,!0),readState:r})},tV=Object.freeze({__proto__:null,init:ZB}),eV=of({fields:QB,name:"sliding",active:JB,apis:YB,state:tV}),nV=[Bg("slotBehaviours",[])],rV=function(t){return"<alloy.field."+t+">"},iV=function(t){var e=function(){var t=[];return{slot:function(e,n){return t.push(e),Tm("container",rV(e),n)},record:U(t)}}(),n=t(e),r=e.record(),i=dt(r,function(t){return vm({name:t,pname:rV(t)})});return Hm("container",nV,i,oV,n)},oV=function(t,e){var n=function(e){return $m(t)},r=function(e,n){return Dm(e,t,n)},i=function(e,n){return function(r,i){return Dm(r,t,i).map(function(t){return e(t,i)}).getOr(n)}},o=function(t,e){return"true"!==Un(t.element,"aria-hidden")},a=function(t,e){if(!o(t)){var n=t.element;rr(n,"display"),Wn(n,"aria-hidden"),_s(t,ps(),{name:e,visible:!0})}},s=function(t,e){if(o(t)){var n=t.element;Kn(n,"display","none"),Vn(n,"aria-hidden","true"),_s(t,ps(),{name:e,visible:!1})}},u=i(o,!1),l=i(s),c=function(t){return function(e,n){ht(n,function(n){return t(e,n)})}}(l),f=function(t){return c(t,n())},d=i(a),h={getSlotNames:n,getSlot:r,isShowing:u,hideSlot:l,hideAllSlots:f,showSlot:d};return{uid:t.uid,dom:t.dom,components:e,behaviours:Vg(t.slotBehaviours),apis:h}},aV=jt({getSlotNames:function(t,e){return t.getSlotNames(e)},getSlot:function(t,e,n){return t.getSlot(e,n)},isShowing:function(t,e,n){return t.isShowing(e,n)},hideSlot:function(t,e,n){return t.hideSlot(e,n)},hideAllSlots:function(t,e){return t.hideAllSlots(e)},showSlot:function(t,e,n){return t.showSlot(e,n)}},function(t){return yu(t)}),sV=J(J({},aV),{sketch:iV}),uV=Zi([Bo("icon"),Bo("tooltip"),Jo("onShow",F),Jo("onHide",F),Jo("onSetup",function(){return F})]),lV=function(t){return bo("sidebar",uV,t)},cV=function(t){var e=t.ui.registry.getAll().sidebars;ht(Rt(e),function(n){var r=e[n],i=function(){return Kt(nt.from(t.queryCommandValue("ToggleSidebar")),n)};t.ui.registry.addToggleButton(n,{icon:r.icon,tooltip:r.tooltip,onAction:function(e){t.execCommand("ToggleSidebar",!1,n),e.setActive(i())},onSetup:function(e){var n=function(){return e.setActive(i())};return t.on("ToggleSidebar",n),function(){t.off("ToggleSidebar",n)}}})})},fV=function(t){return{element:function(){return t.element.dom}}},dV=function(t,e){var n=dt(Rt(e),function(t){var n=e[t],r=_o(lV(n));return{name:t,getApi:fV,onSetup:r.onSetup,onShow:r.onShow,onHide:r.onHide}});return dt(n,function(e){var r=ta(F);return t.slot(e.name,{dom:{tag:"div",classes:["tox-sidebar__pane"]},behaviours:aC.unnamedEvents([kE(e,r),SE(e,r),As(ps(),function(t,e){var r=e.event;_t(n,function(t){return t.name===r.name}).each(function(e){(r.visible?e.onShow:e.onHide)(e.getApi(t))})})])})})},hV=function(t){return sV.sketch(function(e){return{dom:{tag:"div",classes:["tox-sidebar__pane-container"]},components:dV(e,t),slotBehaviours:aC.unnamedEvents([Ls(function(t){return sV.hideAllSlots(t)})])}})},pV=function(t,e){nv.getCurrent(t).each(function(t){return k_.set(t,[hV(e)])})},gV=function(t,e){nv.getCurrent(t).each(function(t){nv.getCurrent(t).each(function(n){eV.hasGrown(t)?sV.isShowing(n,e)?eV.shrink(t):(sV.hideAllSlots(n),sV.showSlot(n,e)):(sV.hideAllSlots(n),sV.showSlot(n,e),eV.grow(t))})})},mV=function(t){return nv.getCurrent(t).bind(function(t){return eV.isGrowing(t)||eV.hasGrown(t)?nv.getCurrent(t).bind(function(t){return _t(sV.getSlotNames(t),function(e){return sV.isShowing(t,e)})}):nt.none()})},vV=Zs("FixSizeEvent"),yV=Zs("AutoSizeEvent"),bV=function(t){return{uid:t.uid,dom:{tag:"div",classes:["tox-sidebar"],attributes:{role:"complementary"}},components:[{dom:{tag:"div",classes:["tox-sidebar__slider"]},components:[],behaviours:nf([xO.config({}),I_.config({}),eV.config({dimension:{property:"width"},closedClass:"tox-sidebar--sliding-closed",openClass:"tox-sidebar--sliding-open",shrinkingClass:"tox-sidebar--sliding-shrinking",growingClass:"tox-sidebar--sliding-growing",onShrunk:function(t){nv.getCurrent(t).each(sV.hideAllSlots),bs(t,yV)},onGrown:function(t){bs(t,yV)},onStartGrow:function(t){_s(t,vV,{width:tr(t.element,"width").getOr("")})},onStartShrink:function(t){_s(t,vV,{width:yr(t.element)+"px"})}}),k_.config({}),nv.config({find:function(t){var e=k_.contents(t);return Nt(e)}})])}],behaviours:nf([RM.childAt(0),C_("sidebar-sliding-events",[As(vV,function(t,e){Kn(t.element,"width",e.event.width)}),As(yV,function(t,e){rr(t.element,"width")})])])}},_V=function(t,e,n,r){Vn(t.element,"aria-busy",!0);var i=e.getRoot(t).getOr(t),o=nf([h_.config({mode:"special",onTab:function(){return nt.some(!0)},onShiftTab:function(){return nt.some(!0)}}),I_.config({})]),a=r(i,o),s=i.getSystem().build(a);k_.append(i,kl(s)),s.hasConfigured(h_)&&e.focus&&h_.focusIn(s),n.isBlocked()||e.onBlock(t),n.blockWith(function(){return k_.remove(i,s)})},wV=function(t,e,n){Wn(t.element,"aria-busy"),n.isBlocked()&&e.onUnblock(t),n.clear()},xV=Object.freeze({__proto__:null,block:_V,unblock:wV}),kV=[Jo("getRoot",nt.none),Xo("focus",!0),Ql("onBlock"),Ql("onUnblock")],SV=function(){var t=Hf(),e=function(e){t.set({destroy:e})};return _u({readState:t.isSet,blockWith:e,clear:t.clear,isBlocked:t.isSet})},CV=Object.freeze({__proto__:null,init:SV}),EV=of({fields:kV,name:"blocking",apis:xV,state:CV}),TV=function(t){return function(e,n){return{dom:{tag:"div",attributes:{"aria-label":t.translate("Loading..."),tabindex:"0"},classes:["tox-throbber__busy-spinner"]},components:[{dom:ax('<div class="tox-spinner"><div></div><div></div><div></div></div>')}]}}},AV=function(t){return nv.getCurrent(t).each(function(t){return hf(t.element)})},OV=function(t,e){nt.from(t.iframeElement).map(_e.fromDom).each(function(t){e?(Hn(t,"tabindex").each(function(e){return Vn(t,"data-mce-tabindex",e)}),Vn(t,"tabindex",-1)):(Wn(t,"tabindex"),Hn(t,"data-mce-tabindex").each(function(e){Vn(t,"tabindex",e),Wn(t,"data-mce-tabindex")}))})},PV=function(t,e,n,r){var i=e.element;if(OV(t,n),n)EV.block(e,TV(r)),rr(i,"display"),Wn(i,"aria-hidden"),t.hasFocus()&&AV(e);else{var o=nv.getCurrent(e).exists(function(t){return gf(t.element)});EV.unblock(e),Kn(i,"display","none"),Vn(i,"aria-hidden","true"),o&&t.focus()}},NV=function(t){return{uid:t.uid,dom:{tag:"div",attributes:{"aria-hidden":"true"},classes:["tox-throbber"],styles:{display:"none"}},behaviours:nf([k_.config({}),EV.config({focus:!1}),nv.config({find:function(t){return Nt(t.components())}})]),components:[]}},DV=function(t){return"focusin"===t.type},MV=function(t){if(DV(t)){return(t.composed?Nt(t.composedPath()):nt.from(t.target)).map(_e.fromDom).filter(Ce).exists(function(t){return rl(t,"mce-pastebin")})}return!1},IV=function(t,e,n){var r=ta(!1),i=Gf(),o=function(n){r.get()&&!MV(n)&&(n.preventDefault(),AV(e()),t.editorManager.setActive(t))};t.inline||t.on("PreInit",function(){t.dom.bind(t.getWin(),"focusin",o),t.on("BeforeExecCommand",function(t){"mcefocus"===t.command.toLowerCase()&&!0!==t.value&&o(t)})});var a=function(i){i!==r.get()&&(r.set(i),PV(t,e(),i,n.providers),t.fire("AfterProgressState",{state:i}))};t.on("ProgressState",function(e){if(i.on(ex.clearTimeout),L(e.time)){var n=ex.setEditorTimeout(t,function(){return a(e.state)},e.time);i.set(n)}else a(e.state),i.clear()})},RV=function(t,e){var n={len:0,list:[]};return yt(t,function(t,n){return e(n,t.len).fold(U(t),function(e){return{len:e.finish,list:t.list.concat([e])}})},n).list},$V=function(t,e,n){return{within:t,extra:e,withinWidth:n}},LV=function(t,e,n){var r=RV(t,function(t,e){var r=n(t);return nt.some({element:t,start:e,finish:e+r,width:r})}),i=mt(r,function(t){return t.finish<=e}),o=vt(i,function(t,e){return t+e.width},0);return{within:i,extra:r.slice(i.length),withinWidth:o}},jV=function(t){return dt(t,function(t){return t.element})},FV=function(t,e,n){var r=jV(t.concat(e));return $V(r,[],n)},BV=function(t,e,n,r){var i=jV(t).concat([n]);return $V(i,jV(e),r)},VV=function(t,e,n){return $V(jV(t),[],n)},zV=function(t,e,n){var r=LV(e,t,n);return 0===r.extra.length?nt.some(r):nt.none()},UV=function(t,e,n,r){var i=zV(t,e,n).getOrThunk(function(){return LV(e,t-n(r),n)}),o=i.within,a=i.extra,s=i.withinWidth;return 1===a.length&&a[0].width<=n(r)?FV(o,a,s):a.length>=1?BV(o,a,r,s):VV(o,0,s)},HV=function(t,e){var n=dt(e,function(t){return kl(t)});_F.setGroups(t,n)},qV=function(t){return It(t,function(t){return vf(t.element).bind(function(e){return t.getSystem().getByDom(e).toOptional()})})},WV=function(t,e,n){var r=e.builtGroups.get();if(0!==r.length){var i=Mm(t,e,"primary"),o=wP.getCoupled(t,"overflowGroup");Kn(i.element,"visibility","hidden");var a=r.concat([o]),s=qV(a);n([]),HV(i,a);var u=yr(i.element),l=UV(u,e.builtGroups.get(),function(t){return yr(t.element)},o);0===l.extra.length?(k_.remove(i,o),n([])):(HV(i,l.within),n(l.extra)),rr(i.element,"visibility"),ir(i.element),s.each(I_.focus)}},GV=U([Bg("splitToolbarBehaviours",[wP]),Co("builtGroups",function(){return ta([])})]),YV=U([Xl(["overflowToggledClass"]),Vo("getOverflowBounds"),To("lazySink"),Co("overflowGroups",function(){return ta([])})].concat(GV())),KV=U([vm({factory:_F,schema:mF(),name:"primary"}),ym({schema:mF(),name:"overflow"}),ym({name:"overflow-button"}),ym({name:"overflow-group"})]),XV=U(function(t,e){_r(t,Math.floor(e))}),JV=U([Xl(["toggledClass"]),To("lazySink"),Do("fetch"),Vo("getBounds"),Uo("fireDismissalEventInstead",[qo("event",fs())]),Ad()]),QV=U([ym({name:"button",overrides:function(t){return{dom:{attributes:{"aria-haspopup":"true"}},buttonBehaviours:nf([Q_.config({toggleClass:t.markers.toggledClass,aria:{mode:"expanded"},toggleOnExecute:!1})])}}}),ym({factory:_F,schema:mF(),name:"toolbar",overrides:function(t){return{toolbarBehaviours:nf([h_.config({mode:"cyclic",onEscape:function(e){return Dm(e,t,"button").each(I_.focus),nt.none()}})])}}})]),ZV=function(t,e){var n=wP.getCoupled(t,"toolbarSandbox");rg.isOpen(n)?rg.close(n):rg.open(n,e.toolbar())},tz=function(t,e,n,r){var i=n.getBounds.map(function(t){return t()}),o=n.lazySink(t).getOrDie();kp.positionWithinBounds(o,e,{anchor:{type:"hotspot",hotspot:t,layouts:r,overrides:{maxWidthFunction:XV()}}},i)},ez=function(t,e,n,r,i){_F.setGroups(e,i),tz(t,e,n,r),Q_.on(t)},nz=function(t,e,n){var r=Il(),i=function(i,o){n.fetch().get(function(i){ez(t,o,n,e.layouts,i),r.link(t.element),h_.focusIn(o)})},o=function(){Q_.off(t),I_.focus(t),r.unlink(t.element)};return{dom:{tag:"div",attributes:{id:r.id}},behaviours:nf([h_.config({mode:"special",onEscape:function(t){return rg.close(t),nt.some(!0)}}),rg.config({onOpen:i,onClose:o,isPartOf:function(e,n,r){return $l(n,r)||$l(t,r)},getAttachPoint:function(){return n.lazySink(t).getOrDie()}}),lf.config({channels:J(J({},ug(J({isExtraPart:Y},n.fireDismissalEventInstead.map(function(t){return{fireEventInstead:{event:t.event}}}).getOr({})))),cg({doReposition:function(){rg.getState(wP.getCoupled(t,"toolbarSandbox")).each(function(r){tz(t,r,n,e.layouts)})}}))})])}},rz=function(t,e,n,r){return J(J({},rx.sketch(J(J({},r.button()),{action:function(t){ZV(t,r)},buttonBehaviours:Ug.augment({dump:r.button().buttonBehaviours},[wP.config({others:{toolbarSandbox:function(e){return nz(e,n,t)}}})])}))),{apis:{setGroups:function(e,r){rg.getState(wP.getCoupled(e,"toolbarSandbox")).each(function(i){ez(e,i,t,n.layouts,r)})},reposition:function(e){rg.getState(wP.getCoupled(e,"toolbarSandbox")).each(function(r){tz(e,r,t,n.layouts)})},toggle:function(t){ZV(t,r)},getToolbar:function(t){return rg.getState(wP.getCoupled(t,"toolbarSandbox"))},isOpen:function(t){return rg.isOpen(wP.getCoupled(t,"toolbarSandbox"))}}})},iz=Jm({name:"FloatingToolbarButton",factory:rz,configFields:JV(),partFields:QV(),apis:{setGroups:function(t,e,n){t.setGroups(e,n)},reposition:function(t,e){t.reposition(e)},toggle:function(t,e){t.toggle(e)},getToolbar:function(t,e){return t.getToolbar(e)},isOpen:function(t,e){return t.isOpen(e)}}}),oz=U([To("items"),Xl(["itemSelector"]),Bg("tgroupBehaviours",[h_])]),az=U([_m({name:"items",unit:"item"})]),sz=function(t,e,n,r){return{uid:t.uid,dom:t.dom,components:e,behaviours:zg(t.tgroupBehaviours,[h_.config({mode:"flow",selector:t.markers.itemSelector})]),domModification:{attributes:{role:"toolbar"}}}},uz=Jm({name:"ToolbarGroup",configFields:oz(),partFields:az(),factory:sz}),lz=function(t){return dt(t,function(t){return kl(t)})},cz=function(t,e,n){WV(t,n,function(r){n.overflowGroups.set(r),e.getOpt(t).each(function(t){iz.setGroups(t,lz(r))})})},fz=function(t,e,n,r){var i=sx(iz.sketch({fetch:function(){return rP.nu(function(e){e(lz(t.overflowGroups.get()))})},layouts:{onLtr:function(){return[Dc,Nc]},onRtl:function(){return[Nc,Dc]},onBottomLtr:function(){return[Ic,Mc]},onBottomRtl:function(){return[Mc,Ic]}},getBounds:n.getOverflowBounds,lazySink:t.lazySink,fireDismissalEventInstead:{},markers:{toggledClass:t.markers.overflowToggledClass},parts:{button:r["overflow-button"](),toolbar:r.overflow()}}));return{uid:t.uid,dom:t.dom,components:e,behaviours:zg(t.splitToolbarBehaviours,[wP.config({others:{overflowGroup:function(){return uz.sketch(J(J({},r["overflow-group"]()),{items:[i.asSpec()]}))}}})]),apis:{setGroups:function(e,n){t.builtGroups.set(dt(n,e.getSystem().build)),cz(e,i,t)},refresh:function(e){return cz(e,i,t)},toggle:function(t){i.getOpt(t).each(function(t){iz.toggle(t)})},isOpen:function(t){return i.getOpt(t).map(iz.isOpen).getOr(!1)},reposition:function(t){i.getOpt(t).each(function(t){iz.reposition(t)})},getOverflow:function(t){return i.getOpt(t).bind(iz.getToolbar)}},domModification:{attributes:{role:"group"}}}},dz=Jm({name:"SplitFloatingToolbar",configFields:YV(),partFields:KV(),factory:fz,apis:{setGroups:function(t,e,n){t.setGroups(e,n)},refresh:function(t,e){t.refresh(e)},reposition:function(t,e){t.reposition(e)},toggle:function(t,e){t.toggle(e)},isOpen:function(t,e){return t.isOpen(e)},getOverflow:function(t,e){return t.getOverflow(e)}}}),hz=U([Xl(["closedClass","openClass","shrinkingClass","growingClass","overflowToggledClass"]),Ql("onOpened"),Ql("onClosed")].concat(GV())),pz=U([vm({factory:_F,schema:mF(),name:"primary"}),vm({factory:_F,schema:mF(),name:"overflow",overrides:function(t){return{toolbarBehaviours:nf([eV.config({dimension:{property:"height"},closedClass:t.markers.closedClass,openClass:t.markers.openClass,shrinkingClass:t.markers.shrinkingClass,growingClass:t.markers.growingClass,onShrunk:function(e){Dm(e,t,"overflow-button").each(function(t){Q_.off(t),I_.focus(t)}),t.onClosed(e)},onGrown:function(e){h_.focusIn(e),t.onOpened(e)},onStartGrow:function(e){Dm(e,t,"overflow-button").each(Q_.on)}}),h_.config({mode:"acyclic",onEscape:function(e){return Dm(e,t,"overflow-button").each(I_.focus),nt.some(!0)}})])}}}),ym({name:"overflow-button",overrides:function(t){return{buttonBehaviours:nf([Q_.config({toggleClass:t.markers.overflowToggledClass,aria:{mode:"pressed"},toggleOnExecute:!1})])}}}),ym({name:"overflow-group"})]),gz=function(t,e){return Dm(t,e,"overflow").map(eV.hasGrown).getOr(!1)},mz=function(t,e){Dm(t,e,"overflow-button").bind(function(){return Dm(t,e,"overflow")}).each(function(n){vz(t,e),eV.toggleGrow(n)})},vz=function(t,e){Dm(t,e,"overflow").each(function(n){WV(t,e,function(t){var e=dt(t,function(t){return kl(t)});_F.setGroups(n,e)}),Dm(t,e,"overflow-button").each(function(t){eV.hasGrown(n)&&Q_.on(t)}),eV.refresh(n)})},yz=function(t,e,n,r){var i=function(e,n){var r=dt(n,e.getSystem().build);t.builtGroups.set(r)};return{uid:t.uid,dom:t.dom,components:e,behaviours:zg(t.splitToolbarBehaviours,[wP.config({others:{overflowGroup:function(t){return uz.sketch(J(J({},r["overflow-group"]()),{items:[rx.sketch(J(J({},r["overflow-button"]()),{action:function(e){bs(t,"alloy.toolbar.toggle")}}))]}))}}}),C_("toolbar-toggle-events",[As("alloy.toolbar.toggle",function(e){mz(e,t)})])]),apis:{setGroups:function(e,n){i(e,n),vz(e,t)},refresh:function(e){return vz(e,t)},toggle:function(e){return mz(e,t)},isOpen:function(e){return gz(e,t)}},domModification:{attributes:{role:"group"}}}},bz=Jm({name:"SplitSlidingToolbar",configFields:hz(),partFields:pz(),factory:yz,apis:{setGroups:function(t,e,n){t.setGroups(e,n)},refresh:function(t,e){t.refresh(e)},toggle:function(t,e){t.toggle(e)},isOpen:function(t,e){return t.isOpen(e)}}}),_z=function(t){var e=t.title.fold(function(){return{}},function(t){return{attributes:{title:t}}});return{dom:J({tag:"div",classes:["tox-toolbar__group"]},e),components:[uz.parts.items({})],items:t.items,markers:{itemSelector:"*:not(.tox-split-button) > .tox-tbtn:not([disabled]), .tox-split-button:not([disabled]), .tox-toolbar-nav-js:not([disabled])"},tgroupBehaviours:nf([xO.config({}),I_.config({})])}},wz=function(t){return uz.sketch(_z(t))},xz=function(t,e){var n=Ls(function(e){var n=dt(t.initGroups,wz);_F.setGroups(e,n)});return nf([wE.toolbarButton(t.providers.isDisabled),mE(),h_.config({mode:e,onEscape:t.onEscape,selector:".tox-toolbar__group"}),C_("toolbar-events",[n])])},kz=function(t){var e=t.cyclicKeying?"cyclic":"acyclic";return{uid:t.uid,dom:{tag:"div",classes:["tox-toolbar-overlord"]},parts:{"overflow-group":_z({title:nt.none(),items:[]}),"overflow-button":LR({name:"more",icon:nt.some("more-drawer"),disabled:!1,tooltip:nt.some("More..."),primary:!1,borderless:!1},nt.none(),t.providers)},splitToolbarBehaviours:xz(t,e)}},Sz=function(t){var e=kz(t),n=dz.parts.primary({dom:{tag:"div",classes:["tox-toolbar__primary"]}});return dz.sketch(J(J({},e),{lazySink:t.getSink,getOverflowBounds:function(){var e=t.moreDrawerData.lazyHeader().element,n=Zr(e),r=mn(e),i=Zr(r),o=Math.max(r.dom.scrollHeight,i.height);return Jr(n.x+4,i.y,n.width-8,o)},parts:J(J({},e.parts),{overflow:{dom:{tag:"div",classes:["tox-toolbar__overflow"],attributes:t.attributes}}}),components:[n],markers:{overflowToggledClass:"tox-tbtn--enabled"}}))},Cz=function(t){var e=bz.parts.primary({dom:{tag:"div",classes:["tox-toolbar__primary"]}}),n=bz.parts.overflow({dom:{tag:"div",classes:["tox-toolbar__overflow"]}}),r=kz(t);return bz.sketch(J(J({},r),{components:[e,n],markers:{openClass:"tox-toolbar__overflow--open",closedClass:"tox-toolbar__overflow--closed",growingClass:"tox-toolbar__overflow--growing",shrinkingClass:"tox-toolbar__overflow--shrinking",overflowToggledClass:"tox-tbtn--enabled"},onOpened:function(t){t.getSystem().broadcastOn([iB()],{type:"opened"})},onClosed:function(t){t.getSystem().broadcastOn([iB()],{type:"closed"})}}))},Ez=function(t){var e=t.cyclicKeying?"cyclic":"acyclic";return _F.sketch({uid:t.uid,dom:{tag:"div",classes:["tox-toolbar"].concat(t.type===dS.scrolling?["tox-toolbar--scrolling"]:[])},components:[_F.parts.groups({})],toolbarBehaviours:xz(t,e)})},Tz=function(t,e,n){var r={getSocket:function(e){return sF.getPart(e,t,"socket")},setSidebar:function(e,n){sF.getPart(e,t,"sidebar").each(function(t){return pV(t,n)})},toggleSidebar:function(e,n){sF.getPart(e,t,"sidebar").each(function(t){return gV(t,n)})},whichSidebar:function(e){return sF.getPart(e,t,"sidebar").bind(mV).getOrNull()},getHeader:function(e){return sF.getPart(e,t,"header")},getToolbar:function(e){return sF.getPart(e,t,"toolbar")},setToolbar:function(e,n){sF.getPart(e,t,"toolbar").each(function(t){t.getApis().setGroups(t,n)})},setToolbars:function(e,n){sF.getPart(e,t,"multiple-toolbar").each(function(t){gF.setItems(t,n)})},refreshToolbar:function(e){sF.getPart(e,t,"toolbar").each(function(t){return t.getApis().refresh(t)})},toggleToolbarDrawer:function(e){sF.getPart(e,t,"toolbar").each(function(t){ee(t.getApis().toggle,function(e){return e(t)})})},isToolbarDrawerToggled:function(e){return sF.getPart(e,t,"toolbar").bind(function(t){return nt.from(t.getApis().isOpen).map(function(e){return e(t)})}).getOr(!1)},getThrobber:function(e){return sF.getPart(e,t,"throbber")},focusToolbar:function(e){sF.getPart(e,t,"toolbar").orThunk(function(){return sF.getPart(e,t,"multiple-toolbar")}).each(function(t){h_.focusIn(t)})},setMenubar:function(e,n){sF.getPart(e,t,"menubar").each(function(t){TB.setMenus(t,n)})},focusMenubar:function(e){sF.getPart(e,t,"menubar").each(function(t){TB.focus(t)})}};return{uid:t.uid,dom:t.dom,components:e,apis:r,behaviours:t.behaviours}},Az=uF.optional({factory:TB,name:"menubar",schema:[To("backstage")]}),Oz=function(t){return t.type===dS.sliding?Cz:t.type===dS.floating?Sz:Ez},Pz=uF.optional({factory:{sketch:function(t){return gF.sketch({uid:t.uid,dom:t.dom,listBehaviours:nf([h_.config({mode:"acyclic",selector:".tox-toolbar"})]),makeItem:function(){return Ez({type:t.type,uid:Zs("multiple-toolbar-item"),cyclicKeying:!1,initGroups:[],providers:t.providers,onEscape:function(){return t.onEscape(),nt.some(!0)}})},setupItem:function(t,e,n,r){_F.setGroups(e,n)},shell:!0})}},name:"multiple-toolbar",schema:[To("dom"),To("onEscape")]}),Nz=uF.optional({factory:{sketch:function(t){return Oz(t)({type:t.type,uid:t.uid,onEscape:function(){return t.onEscape(),nt.some(!0)},cyclicKeying:!1,initGroups:[],getSink:t.getSink,providers:t.providers,moreDrawerData:{lazyToolbar:t.lazyToolbar,lazyMoreButton:t.lazyMoreButton,lazyHeader:t.lazyHeader},attributes:t.attributes})}},name:"toolbar",schema:[To("dom"),To("onEscape"),To("getSink")]}),Dz=uF.optional({factory:{sketch:yB},name:"header",schema:[To("dom")]}),Mz=uF.optional({name:"socket",schema:[To("dom")]}),Iz=uF.optional({factory:{sketch:bV},name:"sidebar",schema:[To("dom")]}),Rz=uF.optional({factory:{sketch:NV},name:"throbber",schema:[To("dom")]}),$z=Jm({name:"OuterContainer",factory:Tz,configFields:[To("dom"),To("behaviours")],partFields:[Dz,Az,Nz,Pz,Mz,Iz,Rz],apis:{getSocket:function(t,e){return t.getSocket(e)},setSidebar:function(t,e,n){t.setSidebar(e,n)},toggleSidebar:function(t,e,n){t.toggleSidebar(e,n)},whichSidebar:function(t,e){return t.whichSidebar(e)},getHeader:function(t,e){return t.getHeader(e)},getToolbar:function(t,e){return t.getToolbar(e)},setToolbar:function(t,e,n){var r=dt(n,function(t){return wz(t)});t.setToolbar(e,r)},setToolbars:function(t,e,n){var r=dt(n,function(t){return dt(t,wz)});t.setToolbars(e,r)},refreshToolbar:function(t,e){return t.refreshToolbar(e)},toggleToolbarDrawer:function(t,e){t.toggleToolbarDrawer(e)},isToolbarDrawerToggled:function(t,e){return t.isToolbarDrawerToggled(e)},getThrobber:function(t,e){return t.getThrobber(e)},setMenubar:function(t,e,n){t.setMenubar(e,n)},focusMenubar:function(t,e){t.focusMenubar(e)},focusToolbar:function(t,e){t.focusToolbar(e)}}}),Lz={file:{title:"File",items:"newdocument restoredraft | preview | export print | deleteallconversations"},edit:{title:"Edit",items:"undo redo | cut copy paste pastetext | selectall | searchreplace"},view:{title:"View",items:"code | visualaid visualchars visualblocks | spellchecker | preview fullscreen | showcomments"},insert:{title:"Insert",items:"image link media addcomment pageembed template codesample inserttable | charmap emoticons hr | pagebreak nonbreaking anchor toc | insertdatetime"},format:{title:"Format",items:"bold italic underline strikethrough superscript subscript codeformat | formats blockformats fontformats fontsizes align lineheight | forecolor backcolor | language | removeformat"},tools:{title:"Tools",items:"spellchecker spellcheckerlanguage | a11ycheck code wordcount"},table:{title:"Table",items:"inserttable | cell row column | advtablesort | tableprops deletetable"},help:{title:"Help",items:"help"}},jz=function(t,e,n){var r=RC(n).split(/[ ,]/);return{text:t.title,getItems:function(){return kt(t.items,function(t){var n=t.toLowerCase();return 0===n.trim().length?[]:lt(r,function(t){return t===n})?[]:"separator"===n||"|"===n?[{type:"separator"}]:e.menuItems[n]?[e.menuItems[n]]:[]})}}},Fz=function(t){return"string"==typeof t?t.split(" "):t},Bz=function(t,e){var n=J(J({},Lz),e.menus),r=Rt(e.menus).length>0,i=Fz(void 0===e.menubar||!0===e.menubar?"file edit view insert format tools table help":!1===e.menubar?"":e.menubar),o=mt(i,function(t){var n=Gt(Lz,t);return r?n||Wt(e.menus,t).exists(function(t){return Gt(t,"items")}):n}),a=dt(o,function(r){var i=n[r];return jz({title:i.title,items:Fz(i.items)},e,t)});return mt(a,function(t){var e=function(t){return"separator"!==t.type};return t.getItems().length>0&&lt(t.getItems(),e)})},Vz=function(t){var e=function(){t._skinLoaded=!0,kT(t)};return function(){t.initialized?e():t.on("init",e)}},zz=function(t,e){return function(){return ST(t,{message:e})}},Uz=function(t,e,n){return new Pk(function(r,i){n.load(e,r,i),t.on("remove",function(){return n.unload(e)})})},Hz=function(t,e){return Uz(t,e+"/skin.min.css",t.ui.styleSheetLoader)},qz=function(t,e){if(Dn(_e.fromDom(t.getElement())))return Uz(t,e+"/skin.shadowdom.min.css",_C.DOM.styleSheetLoader);return Pk.resolve()},Wz=function(t,e){var n=xC(e);n&&e.contentCSS.push(n+(t?"/content.inline":"/content")+".min.css"),!1===SC(e)&&A(n)?Pk.all([Hz(e,n),qz(e,n)]).then(Vz(e),zz(e,"Skin could not be loaded")):Vz(e)()},Gz=n(Wz,!1),Yz=n(Wz,!0),Kz=function(t,e){return function(n){var r=qf(),i=function(){n.setActive(t.formatter.match(e));var i=t.formatter.formatChanged(e,n.setActive);r.set(i)};return t.initialized?i():t.once("init",i),function(){t.off("init",i),r.clear()}}},Xz=function(t,e,n){return function(r){var i=function(){return n(r)},o=function(){n(r),t.on(e,i)};return t.initialized?o():t.once("init",o),function(){t.off("init",o),t.off(e,i)}}},Jz=function(t){return function(e){return function(){t.undoManager.transact(function(){t.focus(),t.execCommand("mceToggleFormat",!1,e.format)})}}},Qz=function(t,e){return function(){return t.execCommand(e)}},Zz=function(t,e,n){var r=function(t,r,o,a){var s=e.shared.providers.translate(t.title);if("separator"===t.type)return nt.some({type:"separator",text:s});if("submenu"===t.type){var u=kt(t.getStyleItems(),function(t){return i(t,r,a)});return 0===r&&u.length<=0?nt.none():nt.some({type:"nestedmenuitem",text:s,disabled:u.length<=0,getSubmenuItems:function(){return kt(t.getStyleItems(),function(t){return i(t,r,a)})}})}return nt.some(J({type:"togglemenuitem",text:s,icon:t.icon,active:t.isSelected(a),disabled:o,onAction:n.onAction(t)},t.getStylePreview().fold(function(){return{}},function(t){return{meta:{style:t}}})))},i=function(t,e,i){var o="formatter"===t.type&&n.isInvalid(t);return 0===e?o?[]:r(t,e,!1,i).toArray():r(t,e,o,i).toArray()},o=function(t){var e=n.getCurrentValue(),r=n.shouldHide?0:1;return kt(t,function(t){return i(t,r,e)})};return{validateItems:o,getFetch:function(t,e){return function(n,r){var i=e(),a=o(i);r(DR(a,hS.CLOSE_ON_EXECUTE,t,!1))}}}},tU=function(t,e,n){var r=n.dataset,i="basic"===r.type?function(){return dt(r.data,function(t){return pj(t,n.isSelectedFor,n.getPreviewFor)})}:r.getData;return{items:Zz(0,e,n),getStyleItems:i}},eU=function(t,e,n){var r=tU(0,e,n),i=r.items,o=r.getStyleItems,a=function(t){return{getComponent:U(t)}},s=Xz(t,"NodeChange",function(t){var e=t.getComponent();n.updateText(e)});return xR({text:n.icon.isSome()?nt.none():n.text,icon:n.icon,tooltip:nt.from(n.tooltip),role:nt.none(),fetch:i.getFetch(e,o),onSetup:s,getApi:a,columns:1,presets:"normal",classes:n.icon.isSome()?[]:["bespoke"],dropdownBehaviours:[]},"tox-tbtn",e.shared)},nU=function(t){return dt(t,function(t){var e=t,n=t,r=t.split("=");return r.length>1&&(e=r[0],n=r[1]),{title:e,format:n}})},rU=function(t){return{type:"basic",data:t}};!function(t){t[t.SemiColon=0]="SemiColon",t[t.Space=1]="Space"}(CP||(CP={}));var iU,oU=function(t,e){return e===CP.SemiColon?t.replace(/;$/,"").split(";"):t.split(" ")},aU=function(t,e,n,r){var i=t.getParam(e,n,"string");return{type:"basic",data:nU(oU(i,r))}},sU=[{title:"Left",icon:"align-left",format:"alignleft",command:"JustifyLeft"},{title:"Center",icon:"align-center",format:"aligncenter",command:"JustifyCenter"},{title:"Right",icon:"align-right",format:"alignright",command:"JustifyRight"},{title:"Justify",icon:"align-justify",format:"alignjustify",command:"JustifyFull"}],uU=function(t){var e=function(){return _t(sU,function(e){return t.formatter.match(e.format)})},n=function(e){return function(){return t.formatter.match(e)}},r=function(t){return nt.none},i=function(t){var n=e(),r=n.fold(U("left"),function(t){return t.title.toLowerCase()});_s(t,wR,{icon:"align-"+r})},o=rU(sU),a=function(e){return function(){return _t(sU,function(t){return t.format===e.format}).each(function(e){return t.execCommand(e.command)})}};return{tooltip:"Align",text:nt.none(),icon:nt.some("align-left"),isSelectedFor:n,getCurrentValue:nt.none,getPreviewFor:r,onAction:a,updateText:i,dataset:o,shouldHide:!1,isInvalid:function(e){return!t.formatter.canApply(e.format)}}},lU=function(t,e){return eU(t,e,uU(t))},cU=function(t,e){var n=tU(0,e,uU(t));t.ui.registry.addNestedMenuItem("align",{text:e.shared.providers.translate("Align"),getSubmenuItems:function(){return n.items.validateItems(n.getStyleItems())}})},fU=["-apple-system","Segoe UI","Roboto","Helvetica Neue","sans-serif"],dU=function(t){var e=t.split(/\s*,\s*/);return dt(e,function(t){return t.replace(/^['"]+|['"]+$/g,"")})},hU=function(t){return 0===t.indexOf("-apple-system")&&function(){var e=dU(t.toLowerCase());return St(fU,function(t){return e.indexOf(t.toLowerCase())>-1})}()},pU=function(t){var e=function(){var e=function(t){return t?dU(t)[0]:""},n=t.queryCommandValue("FontName"),r=s.data,i=n?n.toLowerCase():"";return{matchOpt:_t(r,function(t){var n=t.format;return n.toLowerCase()===i||e(n).toLowerCase()===e(i).toLowerCase()}).orThunk(function(){return ne(hU(i),{title:"System Font",format:i})}),font:n}},n=function(t){return function(e){return e.exists(function(e){return e.format===t})}},r=function(){return e().matchOpt},i=function(t){return function(){return nt.some({tag:"div",styles:-1===t.indexOf("dings")?{"font-family":t}:{}})}},o=function(e){return function(){t.undoManager.transact(function(){t.focus(),t.execCommand("FontName",!1,e.format)})}},a=function(t){var n=e(),r=n.matchOpt,i=n.font,o=r.fold(U(i),function(t){return t.title});_s(t,_R,{text:o})},s=aU(t,"font_formats","Andale Mono=andale mono,monospace;Arial=arial,helvetica,sans-serif;Arial Black=arial black,sans-serif;Book Antiqua=book antiqua,palatino,serif;Comic Sans MS=comic sans ms,sans-serif;Courier New=courier new,courier,monospace;Georgia=georgia,palatino,serif;Helvetica=helvetica,arial,sans-serif;Impact=impact,sans-serif;Symbol=symbol;Tahoma=tahoma,arial,helvetica,sans-serif;Terminal=terminal,monaco,monospace;Times New Roman=times new roman,times,serif;Trebuchet MS=trebuchet ms,geneva,sans-serif;Verdana=verdana,geneva,sans-serif;Webdings=webdings;Wingdings=wingdings,zapf dingbats",CP.SemiColon);return{tooltip:"Fonts",text:nt.some("System Font"),icon:nt.none(),isSelectedFor:n,getCurrentValue:r,getPreviewFor:i,onAction:o,updateText:a,dataset:s,shouldHide:!1,isInvalid:Y}},gU=function(t,e){return eU(t,e,pU(t))},mU=function(t,e){var n=tU(0,e,pU(t));t.ui.registry.addNestedMenuItem("fontformats",{text:e.shared.providers.translate("Fonts"),getSubmenuItems:function(){return n.items.validateItems(n.getStyleItems())}})},vU={"8pt":"1","10pt":"2","12pt":"3","14pt":"4","18pt":"5","24pt":"6","36pt":"7"},yU={"xx-small":"7pt","x-small":"8pt",small:"10pt",medium:"12pt",large:"14pt","x-large":"18pt","xx-large":"24pt"},bU=function(t,e){var n=Math.pow(10,e);return Math.round(t*n)/n},_U=function(t,e){return/[0-9.]+px$/.test(t)?bU(72*parseInt(t,10)/96,e||0)+"pt":Wt(yU,t).getOr(t)},wU=function(t){return Wt(vU,t).getOr("")},xU=function(t){var e=function(){var e=nt.none(),n=s.data,r=t.queryCommandValue("FontSize");if(r)for(var i=3;e.isNone()&&i>=0;i--)!function(t){var i=_U(r,t),o=wU(i);e=_t(n,function(t){return t.format===r||t.format===i||t.format===o})}(i);return{matchOpt:e,size:r}},n=function(t){return function(e){return e.exists(function(e){return e.format===t})}},r=function(){return e().matchOpt},i=U(nt.none),o=function(e){return function(){t.undoManager.transact(function(){t.focus(),t.execCommand("FontSize",!1,e.format)})}},a=function(t){var n=e(),r=n.matchOpt,i=n.size,o=r.fold(U(i),function(t){return t.title});_s(t,_R,{text:o})},s=aU(t,"fontsize_formats","8pt 10pt 12pt 14pt 18pt 24pt 36pt",CP.Space);return{tooltip:"Font sizes",text:nt.some("12pt"),icon:nt.none(),isSelectedFor:n,getPreviewFor:i,getCurrentValue:r,onAction:o,updateText:a,dataset:s,shouldHide:!1,isInvalid:Y}},kU=function(t,e){return eU(t,e,xU(t))},SU=function(t,e){var n=tU(0,e,xU(t));t.ui.registry.addNestedMenuItem("fontsizes",{text:"Font sizes",getSubmenuItems:function(){return n.items.validateItems(n.getStyleItems())}})},CU=function(t,e){var n=e(),r=dt(n,function(t){return t.format});return nt.from(t.formatter.closest(r)).bind(function(t){return _t(n,function(e){return e.format===t})}).orThunk(function(){return ne(t.formatter.match("p"),{title:"Paragraph",format:"p"})})},EU=function(t){var e=function(e){return function(){return t.formatter.match(e)}},n=function(e){return function(){var n=t.formatter.get(e);return nt.some({tag:n.length>0?n[0].inline||n[0].block||"div":"div",styles:t.dom.parseStyle(t.formatter.getCssText(e))})}},r=function(e){var n=CU(t,function(){return i.data}),r=n.fold(U("Paragraph"),function(t){return t.title});_s(e,_R,{text:r})},i=aU(t,"block_formats","Paragraph=p;Heading 1=h1;Heading 2=h2;Heading 3=h3;Heading 4=h4;Heading 5=h5;Heading 6=h6;Preformatted=pre",CP.SemiColon);return{tooltip:"Blocks",text:nt.some("Paragraph"),icon:nt.none(),isSelectedFor:e,getCurrentValue:nt.none,getPreviewFor:n,onAction:Jz(t),updateText:r,dataset:i,shouldHide:!1,isInvalid:function(e){return!t.formatter.canApply(e.format)}}},TU=function(t,e){return eU(t,e,EU(t))},AU=function(t,e){var n=tU(0,e,EU(t));t.ui.registry.addNestedMenuItem("blockformats",{text:"Blocks",getSubmenuItems:function(){return n.items.validateItems(n.getStyleItems())}})},OU=function(t,e){var n=function(e){return function(){return t.formatter.match(e)}},r=function(e){return function(){var n=t.formatter.get(e);return void 0!==n?nt.some({tag:n.length>0?n[0].inline||n[0].block||"div":"div",styles:t.dom.parseStyle(t.formatter.getCssText(e))}):nt.none()}},i=function(e){var n=function(t){var e=t.items;return void 0!==e&&e.length>0?kt(e,n):[{title:t.title,format:t.format}]},r=kt(hj(t),n),i=CU(t,U(r)),o=i.fold(U("Paragraph"),function(t){return t.title});_s(e,_R,{text:o})};return{tooltip:"Formats",text:nt.some("Paragraph"),icon:nt.none(),isSelectedFor:n,getCurrentValue:nt.none,getPreviewFor:r,onAction:Jz(t),updateText:i,shouldHide:t.getParam("style_formats_autohide",!1,"boolean"),isInvalid:function(e){return!t.formatter.canApply(e.format)},dataset:e}},PU=function(t,e){var n=J({type:"advanced"},e.styleselect);return eU(t,e,OU(t,n))},NU=function(t,e){var n=J({type:"advanced"},e.styleselect),r=tU(0,e,OU(t,n));t.ui.registry.addNestedMenuItem("formats",{text:"Formats",getSubmenuItems:function(){return r.items.validateItems(r.getStyleItems())}})},DU=function(t,e){var n=function(n,r){t.updateState.each(function(t){var i=t(n,r);e.set(i)}),t.renderComponents.each(function(t){var i=t(r,e.get()),o=dt(i,n.getSystem().build);Ap(n,o)})};return Cs([As(Ja(),function(e,r){var i=r;if(!i.universal){var o=t.channel;ut(i.channels,o)&&n(e,i.data)}}),Ls(function(e,r){t.initialData.each(function(t){n(e,t)})})])},MU=Object.freeze({__proto__:null,events:DU}),IU=function(t,e,n){return n},RU=Object.freeze({__proto__:null,getState:IU}),$U=[To("channel"),Lo("renderComponents"),Lo("updateState"),Lo("initialData")],LU=function(){var t=ta(nt.none()),e=function(){return t.set(nt.none())};return{readState:function(){return t.get().getOr("none")},get:t.get,set:t.set,clear:e}},jU=Object.freeze({__proto__:null,init:LU}),FU=of({fields:$U,name:"reflecting",active:MU,apis:RU,state:jU}),BU=U([To("toggleClass"),To("fetch"),tc("onExecute"),qo("getHotspot",nt.some),qo("getAnchorOverrides",U({})),Ad(),tc("onItemExecute"),Lo("lazySink"),To("dom"),Ql("onOpen"),Bg("splitDropdownBehaviours",[wP,h_,I_]),qo("matchWidth",!1),qo("useMinWidth",!1),qo("eventOrder",{}),Lo("role")].concat(LP())),VU=vm({factory:rx,schema:[To("dom")],name:"arrow",defaults:function(){return{buttonBehaviours:nf([I_.revoke()])}},overrides:function(t){return{dom:{tag:"span",attributes:{role:"presentation"}},action:function(e){e.getSystem().getByUid(t.uid).each(ws)},buttonBehaviours:nf([Q_.config({toggleOnExecute:!1,toggleClass:t.toggleClass})])}}}),zU=vm({factory:rx,schema:[To("dom")],name:"button",defaults:function(){return{buttonBehaviours:nf([I_.revoke()])}},overrides:function(t){return{dom:{tag:"span",attributes:{role:"presentation"}},action:function(e){e.getSystem().getByUid(t.uid).each(function(n){t.onExecute(n,e)})}}}}),UU=U([VU,zU,bm({factory:{sketch:function(t){return{uid:t.uid,dom:{tag:"span",styles:{display:"none"},attributes:{"aria-hidden":"true"},innerHtml:t.text}}}},schema:[To("text")],name:"aria-descriptor"}),ym({schema:[Kl()],name:"menu",defaults:function(t){return{onExecute:function(e,n){e.getSystem().getByUid(t.uid).each(function(r){t.onItemExecute(r,e,n)})}}}}),kP()]),HU=function(t,e,n,r){var i,o=function(t){nv.getCurrent(t).each(function(t){Vv.highlightFirst(t),h_.focusIn(t)})},a=function(e){NP(t,H,e,r,o,YO.HighlightFirst).get(F)},s=function(t){return a(t),nt.some(!0)},u=function(e){var n=Mm(e,t,"button");return ws(n),nt.some(!0)},l=J(J({},Cs([Ls(function(e,n){Dm(e,t,"aria-descriptor").each(function(t){var n=Zs("aria");Vn(t.element,"id",n),Vn(e.element,"aria-describedby",n)})})])),tw(nt.some(a))),c={repositionMenus:function(t){Q_.isOn(t)&&$P(t)}};return{uid:t.uid,dom:t.dom,components:e,apis:c,eventOrder:J(J({},t.eventOrder),(i={},i[Qa()]=["disabling","toggling","alloy.base.behaviour"],i)),events:l,behaviours:zg(t.splitDropdownBehaviours,[wP.config({others:{sandbox:function(e){var n=Mm(e,t,"arrow");return RP(t,e,{onOpen:function(){Q_.on(n),Q_.on(e)},onClose:function(){Q_.off(n),Q_.off(e)}})}}}),h_.config({mode:"special",onSpace:u,onEnter:u,onDown:s}),I_.config({}),Q_.config({toggleOnExecute:!1,aria:{mode:"expanded"}})]),domModification:{attributes:{role:t.role.getOr("button"),"aria-haspopup":!0}}}},qU=Jm({name:"SplitDropdown",configFields:BU(),partFields:UU(),factory:HU,apis:{repositionMenus:function(t,e){return t.repositionMenus(e)}}}),WU=function(t){return{isDisabled:function(){return wv.isDisabled(t)},setDisabled:function(e){return wv.set(t,e)}}},GU=function(t){return{setActive:function(e){Q_.set(t,e)},isActive:function(){return Q_.isOn(t)},isDisabled:function(){return wv.isDisabled(t)},setDisabled:function(e){return wv.set(t,e)}}},YU=function(t,e){return t.map(function(t){return{"aria-label":e.translate(t),title:e.translate(t)}}).getOr({})},KU=Zs("focus-button"),XU=function(t,e,n,r,i,o){var a;return{dom:{tag:"button",classes:["tox-tbtn"].concat(e.isSome()?["tox-tbtn--select"]:[]),attributes:YU(n,o)},components:TE([t.map(function(t){return pR(t,o.icons)}),e.map(function(t){return mR(t,"tox-tbtn",o)})]),eventOrder:(a={},a[Pa()]=["focusing","alloy.base.behaviour","common-button-display-events"],a),buttonBehaviours:nf([wE.toolbarButton(o.isDisabled),mE(),C_("common-button-display-events",[As(Pa(),function(t,e){e.event.prevent(),bs(t,KU)})])].concat(r.map(function(n){return FU.config({channel:n,initialData:{icon:t,text:e},renderComponents:function(t,e){return TE([t.icon.map(function(t){return pR(t,o.icons)}),t.text.map(function(t){return mR(t,"tox-tbtn",o)})])}})}).toArray()).concat(i.getOr([])))}},JU=function(t,e,n,r){var i=e.shared;return iz.sketch({lazySink:i.getSink,fetch:function(){return rP.nu(function(e){e(dt(n(t.items),wz))})},markers:{toggledClass:"tox-tbtn--enabled"},parts:{button:XU(t.icon,t.text,t.tooltip,nt.none(),nt.none(),i.providers),toolbar:{dom:{tag:"div",classes:["tox-toolbar__overflow"],attributes:r}}}})},QU=function(t,e,n){var r=ta(F),i=XU(t.icon,t.text,t.tooltip,nt.none(),nt.none(),n);return rx.sketch({dom:i.dom,components:i.components,eventOrder:bR,buttonBehaviours:nf([C_("toolbar-button-events",[yR({onAction:t.onAction,getApi:e.getApi}),kE(e,r),SE(e,r)]),wE.toolbarButton(function(){return t.disabled||n.isDisabled()}),mE()].concat(e.toolbarButtonBehaviours))})},ZU=function(t,e){return tH(t,e,[])},tH=function(t,e,n){return QU(t,{toolbarButtonBehaviours:[].concat(n.length>0?[C_("toolbarButtonWith",n)]:[]),getApi:WU,onSetup:t.onSetup},e)},eH=function(t,e){return nH(t,e,[])},nH=function(t,e,n){return xi(QU(t,{toolbarButtonBehaviours:[k_.config({}),Q_.config({toggleClass:"tox-tbtn--enabled",aria:{mode:"pressed"},toggleOnExecute:!1})].concat(n.length>0?[C_("toolbarToggleButtonWith",n)]:[]),getApi:GU,onSetup:t.onSetup},e))},rH=function(t,e,n){return function(r){return rP.nu(function(t){return e.fetch(t)}).map(function(i){return nt.from(LA(xi(sA(Zs("menu-value"),i,function(n){e.onItemAction(t(r),n)},e.columns,e.presets,hS.CLOSE_ON_EXECUTE,e.select.getOr(Y),n),{movement:lA(e.columns,e.presets),menuBehaviours:aC.unnamedEvents("auto"!==e.columns?[]:[Ls(function(t,n){rC(t,4,yS(e.presets)).each(function(e){var n=e.numRows,r=e.numColumns;h_.setGridSize(t,n,r)})})])})))})}},iH=function(t,e){var n,r=Zs("channel-update-split-dropdown-display"),i=function(t){return{isDisabled:function(){return wv.isDisabled(t)},setDisabled:function(e){return wv.set(t,e)},setIconFill:function(e,n){Nl(t.element,'svg path[id="'+e+'"], rect[id="'+e+'"]').each(function(t){Vn(t,"fill",n)})},setIconStroke:function(e,n){Nl(t.element,'svg path[id="'+e+'"], rect[id="'+e+'"]').each(function(t){Vn(t,"stroke",n)})},setActive:function(e){Vn(t.element,"aria-pressed",e),Nl(t.element,"span").each(function(n){t.getSystem().getByDom(n).each(function(t){return Q_.set(t,e)})})},isActive:function(){return Nl(t.element,"span").exists(function(e){return t.getSystem().getByDom(e).exists(Q_.isOn)})}}},o=ta(F),a={getApi:i,onSetup:t.onSetup};return qU.sketch({dom:{tag:"div",classes:["tox-split-button"],attributes:J({"aria-pressed":!1},YU(t.tooltip,e.providers))},onExecute:function(e){t.onAction(i(e))},onItemExecute:function(t,e,n){},splitDropdownBehaviours:nf([wE.splitButton(e.providers.isDisabled),mE(),C_("split-dropdown-events",[As(KU,I_.focus),kE(a,o),SE(a,o)]),qP.config({})]),eventOrder:(n={},n[ls()]=["alloy.base.behaviour","split-dropdown-events"],n),toggleClass:"tox-tbtn--enabled",lazySink:e.getSink,fetch:rH(i,t,e.providers),parts:{menu:SS(0,t.columns,t.presets)},components:[qU.parts.button(XU(t.icon,t.text,nt.none(),nt.some(r),nt.some([Q_.config({toggleClass:"tox-tbtn--enabled",toggleOnExecute:!1})]),e.providers)),qU.parts.arrow({dom:{tag:"button",classes:["tox-tbtn","tox-split-button__chevron"],innerHtml:ik("chevron-down",e.providers.icons)},buttonBehaviours:nf([wE.splitButton(e.providers.isDisabled),mE(),sk()])}),qU.parts["aria-descriptor"]({text:e.providers.translate("To open the popup, press Shift+Enter")})]})},oH=[{name:"history",items:["undo","redo"]},{name:"styles",items:["styleselect"]},{name:"formatting",items:["bold","italic"]},{name:"alignment",items:["alignleft","aligncenter","alignright","alignjustify"]},{name:"indentation",items:["outdent","indent"]},{name:"permanent pen",items:["permanentpen"]},{name:"comments",items:["addcomment"]}],aH=function(t,e){return function(n,r,i){var o=t(n).mapError(function(t){return xo(t)}).getOrDie();return e(o,r,i)}},sH={button:aH(Xk,function(t,e){return ZU(t,e.backstage.shared.providers)}),togglebutton:aH(Zk,function(t,e){return eH(t,e.backstage.shared.providers)}),menubutton:aH(kB,function(t,e){return IR(t,"tox-tbtn",e.backstage,nt.none())}),splitbutton:aH(CB,function(t,e){return iH(t,e.backstage.shared)}),grouptoolbarbutton:aH(_B,function(t,e,n){var r,i=n.ui.registry.getAll().buttons,o=function(t){return gH(n,{buttons:i,toolbar:t,allowToolbarGroups:!1},e,nt.none())},a=(r={},r[Ed]=e.backstage.shared.header.isPositionedAtTop()?Of.TopToBottom:Of.BottomToTop,r);switch(VC(n)){case dS.floating:return JU(t,e.backstage,o,a);default:throw new Error("Toolbar groups are only supported when using floating toolbar mode")}}),styleSelectButton:function(t,e){return PU(t,e.backstage)},fontsizeSelectButton:function(t,e){return kU(t,e.backstage)},fontSelectButton:function(t,e){return gU(t,e.backstage)},formatButton:function(t,e){return TU(t,e.backstage)},alignMenuButton:function(t,e){return lU(t,e.backstage)}},uH=function(t,e,n){return Wt(sH,t.type).fold(function(){return console.error("skipping button defined by",t),nt.none()},function(r){return nt.some(r(t,e,n))})},lH={styleselect:sH.styleSelectButton,fontsizeselect:sH.fontsizeSelectButton,fontselect:sH.fontSelectButton,formatselect:sH.formatButton,align:sH.alignMenuButton},cH=function(t){var e=dt(oH,function(e){var n=mt(e.items,function(e){return Gt(t,e)||Gt(lH,e)});return{name:e.name,items:n}});return mt(e,function(t){return t.items.length>0})},fH=function(t){var e=t.split("|");return dt(e,function(t){return{items:t.trim().split(" ")}})},dH=function(t){return j(t,function(t){return Gt(t,"name")&&Gt(t,"items")})},hH=function(t){var e=t.toolbar,n=t.buttons;return!1===e?[]:void 0===e||!0===e?cH(n):A(e)?fH(e):dH(e)?e:(console.error("Toolbar type should be string, string[], boolean or ToolbarGroup[]"),[])},pH=function(t,e,n,r,i,o){return Wt(e,n.toLowerCase()).orThunk(function(){return o.bind(function(t){return It(t,function(t){return Wt(e,t+n.toLowerCase())})})}).fold(function(){return Wt(lH,n.toLowerCase()).map(function(e){return e(t,i)}).orThunk(function(){return nt.none()})},function(e){return"grouptoolbarbutton"!==e.type||r?uH(e,i,t):(console.warn("Ignoring the '"+n+"' toolbar button. Group toolbar buttons are only supported when using floating toolbar mode and cannot be nested."),nt.none())})},gH=function(t,e,n,r){var i=hH(e),o=dt(i,function(i){var o=kt(i.items,function(i){return 0===i.trim().length?[]:pH(t,e.buttons,i,e.allowToolbarGroups,n,r).toArray()});return{title:nt.from(t.translate(i.name)),items:o}});return mt(o,function(t){return t.items.length>0})},mH=function(t,e,n,r){var i=e.outerContainer,o=n.toolbar,a=n.buttons;if(j(o,A)){var s=o.map(function(e){var i={toolbar:e,buttons:a,allowToolbarGroups:n.allowToolbarGroups};return gH(t,i,{backstage:r},nt.none())});$z.setToolbars(i,s)}else $z.setToolbar(i,gH(t,n,{backstage:r},nt.none()))},vH=nn(),yH=vH.os.isiOS()&&vH.os.version.major<=12,bH=function(t,e){var n=t.dom,r=t.getWin(),i=t.getDoc().documentElement,o=ta(fr(r.innerWidth,r.innerHeight)),a=ta(fr(i.offsetWidth,i.offsetHeight)),s=function(){var e=o.get();e.left===r.innerWidth&&e.top===r.innerHeight||(o.set(fr(r.innerWidth,r.innerHeight)),ET(t))},u=function(){var e=t.getDoc().documentElement,n=a.get();n.left===e.offsetWidth&&n.top===e.offsetHeight||(a.set(fr(e.offsetWidth,e.offsetHeight)),ET(t))},l=function(e){return TT(t,e)};n.bind(r,"resize",s),n.bind(r,"scroll",l);var c=Xf(_e.fromDom(t.getBody()),"load",u),f=e.uiMothership.element;t.on("hide",function(){Kn(f,"display","none")}),t.on("show",function(){rr(f,"display")}),t.on("NodeChange",u),t.on("remove",function(){c.unbind(),n.unbind(r,"resize",s),n.unbind(r,"scroll",l),r=null})},_H=function(t,e,n,r,i){var o=ta(0),a=e.outerContainer;Gz(t);var s=_e.fromDom(i.targetNode),u=Nn(Pn(s));Rp(s,e.mothership),Ip(u,e.uiMothership),t.on("PostRender",function(){mH(t,e,n,r),o.set(t.getWin().innerWidth),$z.setMenubar(a,Bz(t,n)),$z.setSidebar(a,n.sidebar),bH(t,e)});var l=$z.getSocket(a).getOrDie("Could not find expected socket element");if(yH){Xn(l.element,{overflow:"scroll","-webkit-overflow-scrolling":"touch"});var c=pk(function(){t.fire("ScrollContent")},20),f=Kf(l.element,"scroll",c.throttle);t.on("remove",f.unbind)}gE(t,e),t.addCommand("ToggleSidebar",function(e,n){$z.toggleSidebar(a,n),t.fire("ToggleSidebar")}),t.addQueryValueHandler("ToggleSidebar",function(){return $z.whichSidebar(a)});var d=VC(t),h=function(){$z.refreshToolbar(e.outerContainer)};d!==dS.sliding&&d!==dS.floating||t.on("ResizeWindow ResizeEditor ResizeContent",function(){var e=t.getWin().innerWidth;e!==o.get()&&(h(),o.set(e))});var p={enable:function(){pE(e,!1)},disable:function(){pE(e,!0)},isDisabled:function(){return wv.isDisabled(a)}};return{iframeContainer:l.element.dom,editorContainer:a.element.dom,api:p}},wH=Object.freeze({__proto__:null,render:_H}),xH=function(t){return/^[0-9\.]+(|px)$/i.test(""+t)?nt.some(parseInt(""+t,10)):nt.none()},kH=function(t){return L(t)?t+"px":t},SH=function(t,e,n){var r=e.filter(function(e){return t<e}),i=n.filter(function(e){return t>e});return r.or(i).getOr(t)},CH=function(t){var e=CC(t),n=AC(t),r=PC(t);return xH(e).map(function(t){return SH(t,n,r)})},EH=function(t){return CH(t).getOr(CC(t))},TH=function(t){var e=EC(t),n=TC(t),r=OC(t);return xH(e).map(function(t){return SH(t,n,r)})},AH=function(t){return TH(t).getOr(EC(t))},OH=function(t,e,n,r,i){var o=n.uiMothership,a=n.outerContainer,s=_C.DOM,u=JC(t),l=tE(t),c=OC(t).or(TH(t)),f=r.shared.header,d=f.isPositionedAtTop,h=VC(t),p=h===dS.sliding||h===dS.floating,g=ta(!1),m=function(){return g.get()&&!t.removed},v=function(t){return p?t.fold(U(0),function(t){return t.components().length>1?sr(t.components()[1].element):0}):0},y=function(n){switch(qC(t)){case BC.auto:var r=$z.getToolbar(a),i=v(r),o=sr(n.element)-i,s=Qr(e);if(s.y>o)return"top";var u=mn(e),l=Math.max(u.dom.scrollHeight,sr(u));if(s.bottom<l-o)return"bottom";return ti().bottom<s.bottom-o?"bottom":"top";case BC.bottom:return"bottom";case BC.top:default:return"top"}},b=function(t){var e=i.get();rB.setModes(e,[t]),f.setDockingMode(t);var n=d()?Of.TopToBottom:Of.BottomToTop;Vn(e.element,Ed,n)},_=function(){var t=c.getOrThunk(function(){var t=xH(Qn(jn(),"margin-left")).getOr(0);return yr(jn())-pr(e).left+t});Kn(i.get().element,"max-width",t+"px")},w=function(){var t=$z.getToolbar(a),n=v(t),r=Qr(e),o=d()?Math.max(r.y-sr(i.get().element)+n,0):r.bottom;Xn(a.element,{position:"absolute",top:Math.round(o)+"px",left:Math.round(r.x)+"px"})},x=function(){o.broadcastOn([og()],{})},k=function(t){if(void 0===t&&(t=!1),m()){if(u||_(),p&&$z.refreshToolbar(a),u||w(),l){var e=i.get();t?rB.reset(e):rB.refresh(e)}x()}},S=function(t){if(void 0===t&&(t=!0),!u&&l&&m()){var e=f.getDockingMode(),n=y(i.get());n!==e&&(b(n),t&&k(!0))}};return{isVisible:m,isPositionedAtTop:d,show:function(){g.set(!0),Kn(a.element,"display","flex"),s.addClass(t.getBody(),"mce-edit-focus"),rr(o.element,"display"),S(!1),k()},hide:function(){g.set(!1),n.outerContainer&&(Kn(a.element,"display","none"),s.removeClass(t.getBody(),"mce-edit-focus")),Kn(o.element,"display","none")},update:k,updateMode:S,repositionPopups:x}},PH=function(t,e){var n=Qr(t);return{pos:e?n.y:n.bottom,bounds:n}},NH=function(t,e,n,r){var i=ta(PH(e,n.isPositionedAtTop())),o=function(r){var o=PH(e,n.isPositionedAtTop()),a=o.pos,s=o.bounds,u=i.get(),l=u.pos,c=u.bounds,f=s.height!==c.height||s.width!==c.width;i.set({pos:a,bounds:s}),f&&ET(t,r),n.isVisible()&&(l!==a?n.update(!0):f&&(n.updateMode(),n.repositionPopups()))};r||(t.on("activate",n.show),t.on("deactivate",n.hide)),t.on("SkinLoaded ResizeWindow",function(){return n.update(!0)}),t.on("NodeChange keydown",function(t){ex.requestAnimationFrame(function(){return o(t)})}),t.on("ScrollWindow",function(){return n.updateMode()});var a=qf();a.set(Xf(_e.fromDom(t.getBody()),"load",o)),t.on("remove",function(){a.clear()})},DH=function(t,e,n,r,i){var o=e.mothership,a=e.uiMothership,s=e.outerContainer,u=ta(null),l=_e.fromDom(i.targetNode),c=OH(t,l,e,r,u),f=KC(t);Yz(t);var d=function(){if(u.get())return void c.show();u.set($z.getHeader(s).getOrDie());var i=QC(t);Ip(i,o),Ip(i,a),mH(t,e,n,r),$z.setMenubar(s,Bz(t,n)),c.show(),NH(t,l,c,f),t.nodeChanged()};t.on("show",d),t.on("hide",c.hide),f||(t.on("focus",d),t.on("blur",c.hide)),t.on("init",function(){(t.hasFocus()||f)&&d()}),gE(t,e);var h={show:function(){c.show()},hide:function(){c.hide()},enable:function(){pE(e,!1)},disable:function(){pE(e,!0)},isDisabled:function(){return wv.isDisabled(s)}};return{editorContainer:s.element.dom,api:h}},MH=Object.freeze({__proto__:null,render:DH}),IH=function(t){return{hide:function(){return bs(t,ns())},getValue:function(){return Fg.getValue(t)}}},RH=function(t,e){return As(vR,function(n,r){var i=t.get(n),o=IH(i);e.onAction(o,r.event.buttonApi)})},$H=function(t,e,n){var i=e.original;i.primary;var o=r(i,["primary"]),a=_o(Xk(J(J({},o),{type:"button",onAction:F})));return tH(a,n.backstage.shared.providers,[RH(t,e)])},LH=function(t,e,n){var i=e.original;i.primary;var o=r(i,["primary"]),a=_o(Zk(J(J({},o),{type:"togglebutton",onAction:F})));return nH(a,n.backstage.shared.providers,[RH(t,e)])},jH=function(t,e,n){var r={backstage:{shared:{providers:n}}};return"contextformtogglebutton"===e.type?LH(t,e,r):$H(t,e,r)},FH=function(t,e,n){var r=dt(e,function(e){return sx(jH(t,e,n))});return{asSpecs:function(){return dt(r,function(t){return t.asSpec()})},findPrimary:function(t){return It(e,function(e,n){return e.primary?nt.from(r[n]).bind(function(e){return e.getOpt(t)}).filter(W(wv.isDisabled)):nt.none()})}}},BH=function(t,e){var n=t.label.fold(function(){return{}},function(t){return{"aria-label":t}}),r=sx(qO.sketch({inputClasses:["tox-toolbar-textfield","tox-toolbar-nav-js"],data:t.initValue(),inputAttributes:n,selectOnFocus:!0,inputBehaviours:nf([h_.config({mode:"special",onEnter:function(t){return i.findPrimary(t).map(function(t){return ws(t),!0})},onLeft:function(t,e){return e.cut(),nt.none()},onRight:function(t,e){return e.cut(),nt.none()}})])})),i=FH(r,t.commands,e);return[{title:nt.none(),items:[r.asSpec()]},{title:nt.none(),items:i.asSpecs()}]},VH=function(t,e,n){return Ez({type:t,uid:Zs("context-toolbar"),initGroups:BH(e,n),onEscape:nt.none,cyclicKeying:!0,providers:n})},zH={renderContextForm:VH,buildInitGroups:BH},UH=function(t,e,n){return void 0===n&&(n=.01),e.bottom-t.y>=n&&t.bottom-e.y>=n},HH=function(t){var e=t.getBoundingClientRect();if(e.height<=0&&e.width<=0){var n=En(_e.fromDom(t.startContainer),t.startOffset).element;return(Ee(n)?yn(n):nt.some(n)).filter(Ce).map(function(t){return t.dom.getBoundingClientRect()}).getOr(e)}return e},qH=function(t){var e=t.selection.getRng(),n=HH(e);if(t.inline){var r=jr();return Jr(r.left+n.left,r.top+n.top,n.width,n.height)}var i=Zr(_e.fromDom(t.getBody()));return Jr(i.x+n.left,i.y+n.top,n.width,n.height)},WH=function(t,e){return e.filter(Ln).map(Zr).getOrThunk(function(){return qH(t)})},GH=function(t,e,n){var r=Math.max(t.x+n,e.x);return{x:r,width:Math.min(t.right-n,e.right)-r}},YH=function(t,e,n,r,i,o){var a=_e.fromDom(t.getContainer()),s=Nl(a,".tox-editor-header").getOr(a),u=Qr(s),l=u.y>=e.bottom,c=r&&!l;if(t.inline&&c)return{y:Math.max(u.bottom+o,n.y),bottom:n.bottom};if(t.inline&&!c)return{y:n.y,bottom:Math.min(u.y-o,n.bottom)};var f="line"===i?Qr(a):e;return c?{y:Math.max(u.bottom+o,n.y),bottom:Math.min(f.bottom-o,n.bottom)}:{y:Math.max(f.y+o,n.y),bottom:Math.min(u.y-o,n.bottom)}},KH=function(t,e,n,r){void 0===r&&(r=0);var i=zr(window),o=Qr(_e.fromDom(t.getContentAreaContainer())),a=$C(t)||LC(t)||FC(t),s=GH(o,i,r),u=s.x,l=s.width;if(t.inline&&!a)return Jr(u,i.y,l,i.height);var c=e.header.isPositionedAtTop(),f=YH(t,o,i,c,n,r),d=f.y,h=f.bottom;return Jr(u,d,l,h-d)},XH={valignCentre:[],alignCentre:[],alignLeft:["tox-pop--align-left"],alignRight:["tox-pop--align-right"],right:["tox-pop--right"],left:["tox-pop--left"],bottom:["tox-pop--bottom"],top:["tox-pop--top"],inset:["tox-pop--inset"]},JH={maxHeightFunction:md(),maxWidthFunction:XV()},QH=function(t,e){var n=t.selection.getRng(),r=En(_e.fromDom(n.startContainer),n.startOffset);return n.startContainer===n.endContainer&&n.startOffset===n.endOffset-1&&cn(r.element,e)},ZH=function(t,e,n){var r=tr(t,"position");Kn(t,"position",e);var i=n(t);return r.each(function(e){return Kn(t,"position",e)}),i},tq=function(t){return"node"===t},eq=function(t,e,n,r,i){var o=qH(t),a=r.lastElement().exists(function(t){return cn(n,t)});return QH(t,n)?a?Qw:Gw:a?ZH(e,r.getMode(),function(){return UH(o,Qr(e))&&!r.isReposition()?tx:Qw}):("fixed"===r.getMode()?i.y+jr().top:i.y)+(sr(e)+12)<=o.y?Gw:Yw},nq=function(t,e,n,r){var i=function(e){return function(r,i,o,a,s){var u=eq(t,a,e,n,s),l=J(J({},r),{y:s.y,height:s.height});return J(J({},u(l,i,o,a,s)),{alwaysFit:!0})}},o=function(t){return tq(r)?[i(t)]:[]},a={onLtr:function(t){return[Rc,$c,Mc,Nc,Ic,Dc].concat(o(t))},onRtl:function(t){return[Rc,$c,Ic,Dc,Mc,Nc].concat(o(t))}},s={onLtr:function(t){return[$c,Nc,Dc,Mc,Ic,Rc].concat(o(t))},onRtl:function(t){return[$c,Dc,Nc,Ic,Mc,Rc].concat(o(t))}};return e?s:a},rq=function(t,e,n,r){return"line"===e?{bubble:wd(12,0,XH),layouts:{onLtr:function(){return[Lc]},onRtl:function(){return[jc]}},overrides:JH}:{bubble:wd(0,12,XH,1/12),layouts:nq(t,n,r,e),overrides:JH}},iq=function(t,e){var n=mt(e,function(e){return e.predicate(t.dom)}),r=gt(n,function(t){return"contexttoolbar"===t.type});return{contextToolbars:r.pass,contextForms:r.fail}},oq=function(t){if(t.length<=1)return t;var e=function(e){return lt(t,function(t){return t.position===e})},n=function(e){return mt(t,function(t){return t.position===e})},r=e("selection"),i=e("node");if(r||i){if(i&&r){var o=n("node"),a=dt(n("selection"),function(t){return J(J({},t),{position:"node"})});return o.concat(a)}return n(r?"selection":"node")}return n("line")},aq=function(t){if(t.length<=1)return t;var e=function(e){return _t(t,function(t){return t.position===e})};return e("selection").orThunk(function(){return e("node")}).orThunk(function(){return e("line")}).map(function(t){return t.position}).fold(function(){return[]},function(e){return mt(t,function(t){return t.position===e})})},sq=function(t,e,n){var r=iq(t,e);if(r.contextForms.length>0)return nt.some({elem:t,toolbars:[r.contextForms[0]]});var i=iq(t,n);if(i.contextForms.length>0)return nt.some({elem:t,toolbars:[i.contextForms[0]]});if(r.contextToolbars.length>0||i.contextToolbars.length>0){var o=oq(r.contextToolbars.concat(i.contextToolbars));return nt.some({elem:t,toolbars:o})}return nt.none()},uq=function(t,e,n){return t(e)?nt.none():ma(e,function(t){if(Ce(t)){var e=iq(t,n.inNodeScope),r=e.contextToolbars,i=e.contextForms,o=i.length>0?i:aq(r);return o.length>0?nt.some({elem:t,toolbars:o}):nt.none()}return nt.none()},t)},lq=function(t,e){var n=_e.fromDom(e.getBody()),r=function(t){return cn(t,n)},i=_e.fromDom(e.selection.getNode());return function(t){return!r(t)&&!hn(n,t)}(i)?nt.none():sq(i,t.inNodeScope,t.inEditorScope).orThunk(function(){return uq(r,i,t)})},cq=function(t,e){var n={},r=[],i=[],o={},a={},s=function(t,s){var u=_o(sS(s));n[t]=u,u.launch.map(function(n){o["form:"+t]=J(J({},s.launch),{type:"contextformtogglebutton"===n.type?"togglebutton":"button",onAction:function(){e(u)}})}),"editor"===u.scope?i.push(u):r.push(u),a[t]=u},u=function(t,e){lS(e).each(function(n){"editor"===e.scope?i.push(n):r.push(n),a[t]=n})},l=Rt(t);return ht(l,function(e){var n=t[e];"contextform"===n.type?s(e,n):"contexttoolbar"===n.type&&u(e,n)}),{forms:n,inNodeScope:r,inEditorScope:i,lookupTable:a,formNavigators:o}},fq=Zs("forward-slide"),dq=Zs("backward-slide"),hq=Zs("change-slide-event"),pq=function(t){var e=ta([]);return $w.sketch({dom:{tag:"div",classes:["tox-pop"]},fireDismissalEventInstead:{event:"doNotDismissYet"},onShow:function(t){e.set([]),$w.getContent(t).each(function(t){rr(t.element,"visibility")}),nl(t.element,"tox-pop--resizing"),rr(t.element,"width")},inlineBehaviours:nf([C_("context-toolbar-events",[$s(Ua(),function(t,e){"width"===e.event.raw.propertyName&&(nl(t.element,"tox-pop--resizing"),rr(t.element,"width"))}),As(hq,function(t,e){var n=t.element;rr(n,"width");var r=yr(n);$w.setContent(t,e.event.contents),tl(n,"tox-pop--resizing");var i=yr(n);Kn(n,"width",r+"px"),$w.getContent(t).each(function(t){e.event.focus.bind(function(t){return hf(t),vf(n)}).orThunk(function(){return h_.focusIn(t),mf(Pn(n))})}),ex.setTimeout(function(){Kn(t.element,"width",i+"px")},0)}),As(fq,function(t,n){$w.getContent(t).each(function(n){e.set(e.get().concat([{bar:n,focus:mf(Pn(t.element))}]))}),_s(t,hq,{contents:n.event.forwardContents,focus:nt.none()})}),As(dq,function(t,n){Dt(e.get()).each(function(n){e.set(e.get().slice(0,e.get().length-1)),_s(t,hq,{contents:kl(n.bar),focus:n.focus})})})]),h_.config({mode:"special",onEscape:function(n){return Dt(e.get()).fold(function(){return t.onEscape()},function(t){return bs(n,dq),nt.some(!0)})}})]),lazySink:function(){return ii.value(t.sink)}})},gq=function(t,e,n,r){var i=r.backstage,o=i.shared,a=nn().deviceType.isTouch,s=Gf(),u=Gf(),l=Gf(),c=xl(pq({sink:n,onEscape:function(){return t.focus(),nt.some(!0)}})),f=function(){var e=l.get().getOr("node"),n=tq(e)?1:0;return KH(t,o,e,n)},d=function(){return!(t.removed||a()&&i.isContextMenuOpen())},h=function(t){return Kt(Zt(t,s.get(),cn),!0)},p=function(){if(d()){var e=f(),n=Kt(l.get(),"node")?WH(t,s.get()):qH(t);return e.height<=0||!UH(n,e)}return!0},g=function(){s.clear(),u.clear(),l.clear(),$w.hide(c)},m=function(){if($w.isOpen(c)){var t=c.element;rr(t,"display"),p()?Kn(t,"display","none"):(u.set(0),$w.reposition(c))}},v=function(e){return{dom:{tag:"div",classes:["tox-pop__dialog"]},components:[e],behaviours:nf([h_.config({mode:"acyclic"}),C_("pop-dialog-wrap-events",[Ls(function(e){t.shortcuts.add("ctrl+F9","focus statusbar",function(){return h_.focusIn(e)})}),js(function(e){t.shortcuts.remove("ctrl+F9")})])])}},y=Oe(function(){return cq(e,function(t){var e=w([t]);_s(c,fq,{forwardContents:v(e)})})}),b=function(e,n){return gH(t,{buttons:e,toolbar:n.items,allowToolbarGroups:!1},r,nt.some(["form:"]))},_=function(t,e){return zH.buildInitGroups(t,e)},w=function(e){var n=t.ui.registry.getAll().buttons,r=y(),i=J(J({},n),r.formNavigators),a=VC(t)===dS.scrolling?dS.scrolling:dS.default,s=xt(dt(e,function(t){return"contexttoolbar"===t.type?b(i,t):_(t,o.providers)}));return Ez({type:a,uid:Zs("context-toolbar"),initGroups:s,onEscape:nt.none,cyclicKeying:!0,providers:o.providers})},x=function(e,r){var i="node"===e?o.anchors.node(r):o.anchors.cursor(),l=rq(t,e,a(),{lastElement:s.get,isReposition:function(){return Kt(u.get(),0)},getMode:function(){return kp.getMode(n)}});return xi(i,l)},k=function(t,e){if(S.cancel(),d()){var r=w(t),i=t[0].position,o=x(i,e);l.set(i),u.set(1);var a=c.element;rr(a,"display"),h(e)||(nl(a,"tox-pop--transition"),kp.reset(n,c)),$w.showWithinBounds(c,v(r),{anchor:o,transition:{classes:["tox-pop--transition"],mode:"placement"}},function(){return nt.some(f())}),e.fold(s.clear,s.set),p()&&Kn(a,"display","none")}},S=gk(function(){if(t.hasFocus()&&!t.removed)if(rl(c.element,"tox-pop--transition"))S.throttle();else{var e=y();lq(e,t).fold(g,function(t){k(t.toolbars,nt.some(t.elem))})}},17);t.on("init",function(){t.on("remove",g),t.on("ScrollContent ScrollWindow ObjectResized ResizeEditor longpress",m),t.on("click keyup focus SetContent",S.throttle),t.on("contexttoolbar-hide",g),t.on("contexttoolbar-show",function(e){var n=y();Wt(n.lookupTable,e.toolbarKey).each(function(n){k([n],ne(e.target!==t,e.target)),$w.getContent(c).each(h_.focusIn)})}),t.on("focusout",function(e){ex.setEditorTimeout(t,function(){vf(n.element).isNone()&&vf(c.element).isNone()&&g()},0)}),t.on("SwitchMode",function(){t.mode.isReadOnly()&&g()}),t.on("AfterProgressState",function(e){e.state?g():t.hasFocus()&&S.throttle()}),t.on("NodeChange",function(t){vf(c.element).fold(S.throttle,F)})})},mq=function(t){ht([{name:"alignleft",text:"Align left",cmd:"JustifyLeft",icon:"align-left"},{name:"aligncenter",text:"Align center",cmd:"JustifyCenter",icon:"align-center"},{name:"alignright",text:"Align right",cmd:"JustifyRight",icon:"align-right"},{name:"alignjustify",text:"Justify",cmd:"JustifyFull",icon:"align-justify"}],function(e){t.ui.registry.addToggleButton(e.name,{tooltip:e.text,icon:e.icon,onAction:Qz(t,e.cmd),onSetup:Kz(t,e.name)})}),t.ui.registry.addButton("alignnone",{tooltip:"No alignment",icon:"align-none",onAction:Qz(t,"JustifyNone")})},vq={unsupportedLength:["em","ex","cap","ch","ic","rem","lh","rlh","vw","vh","vi","vb","vmin","vmax","cm","mm","Q","in","pc","pt","px"],fixed:["px","pt"],relative:["%"],empty:[""]},yq=function(){var t=function(t){return"(?:"+t+")?"},e=["Infinity","[0-9]+\\."+t("[0-9]+")+t("[eE][+-]?[0-9]+"),"\\.[0-9]+"+t("[eE][+-]?[0-9]+"),"[0-9]+"+t("[eE][+-]?[0-9]+")].join("|"),n="[+-]?(?:"+e+")";return new RegExp("^("+n+")(.*)$")}(),bq=function(t,e){return lt(e,function(e){return lt(vq[e],function(e){return t===e})})},_q=function(t,e){return nt.from(yq.exec(t)).bind(function(t){var n=Number(t[1]),r=t[2];return bq(r,e)?nt.some({value:n,unit:r}):nt.none()})},wq=function(t,e){return _q(t,e).map(function(t){return t.value+t.unit})},xq=function(t,e){var n=function(){var n=e.getOptions(t),r=e.getCurrent(t).map(e.hash),i=Gf();return dt(n,function(n){return{type:"togglemenuitem",text:e.display(n),onSetup:function(o){var a=function(t){t&&(i.on(function(t){return t.setActive(!1)}),i.set(o)),o.setActive(t)};a(Kt(r,e.hash(n)));var s=e.watcher(t,n,a);return function(){i.clear(),s()}},onAction:function(){return e.setCurrent(t,n)}}})};t.ui.registry.addMenuButton(e.name,{tooltip:e.text,icon:e.icon,fetch:function(t){return t(n())},onSetup:e.onToolbarSetup}),t.ui.registry.addNestedMenuItem(e.name,{type:"nestedmenuitem",text:e.text,getSubmenuItems:n,onSetup:e.onMenuSetup})},kq={name:"lineheight",text:"Line height",icon:"line-height",getOptions:MC,hash:function(t){return wq(t,["fixed","relative","empty"]).getOr(t)},display:H,watcher:function(t,e,n){return t.formatter.formatChanged("lineheight",n,!1,{value:e}).unbind},getCurrent:function(t){return nt.from(t.queryCommandValue("LineHeight"))},setCurrent:function(t,e){return t.execCommand("LineHeight",!1,e)}},Sq=function(t){return nt.from(IC(t)).map(function(e){return{name:"language",text:"Language",icon:"language",getOptions:U(e),hash:function(t){return M(t.customCode)?t.code:t.code+"/"+t.customCode},display:function(t){return t.title},watcher:function(t,e,n){return t.formatter.formatChanged("lang",n,!1,{value:e.code,customValue:e.customCode}).unbind},getCurrent:function(t){var e=_e.fromDom(t.selection.getNode());return va(e,function(t){return nt.some(t).filter(Ce).bind(function(t){return Hn(t,"lang").map(function(e){return{code:e,customCode:Hn(t,"data-mce-lang").getOrUndefined(),title:""}})})})},setCurrent:function(t,e){return t.execCommand("Lang",!1,e)},onToolbarSetup:function(e){var n=qf();return e.setActive(t.formatter.match("lang",{},void 0,!0)),n.set(t.formatter.formatChanged("lang",e.setActive,!0)),n.clear}}})},Cq=function(t){xq(t,kq),Sq(t).each(function(e){return xq(t,e)})},Eq=function(t,e){cU(t,e),mU(t,e),NU(t,e),AU(t,e),SU(t,e)},Tq=function(t){return Xz(t,"NodeChange",function(e){e.setDisabled(!t.queryCommandState("outdent"))})},Aq=function(t){t.ui.registry.addButton("outdent",{tooltip:"Decrease indent",icon:"outdent",onSetup:Tq(t),onAction:Qz(t,"outdent")}),t.ui.registry.addButton("indent",{tooltip:"Increase indent",icon:"indent",onAction:Qz(t,"indent")})},Oq=function(t){Aq(t)},Pq=function(t,e){return function(){t.execCommand("mceToggleFormat",!1,e)}},Nq=function(t){UM.each([{name:"bold",text:"Bold",icon:"bold"},{name:"italic",text:"Italic",icon:"italic"},{name:"underline",text:"Underline",icon:"underline"},{name:"strikethrough",text:"Strikethrough",icon:"strike-through"},{name:"subscript",text:"Subscript",icon:"subscript"},{name:"superscript",text:"Superscript",icon:"superscript"}],function(e,n){t.ui.registry.addToggleButton(e.name,{tooltip:e.text,icon:e.icon,onSetup:Kz(t,e.name),onAction:Pq(t,e.name)})});for(var e=1;e<=6;e++){var n="h"+e;t.ui.registry.addToggleButton(n,{text:n.toUpperCase(),tooltip:"Heading "+e,onSetup:Kz(t,n),onAction:Pq(t,n)})}},Dq=function(t){UM.each([{name:"cut",text:"Cut",action:"Cut",icon:"cut"},{name:"copy",text:"Copy",action:"Copy",icon:"copy"},{name:"paste",text:"Paste",action:"Paste",icon:"paste"},{name:"help",text:"Help",action:"mceHelp",icon:"help"},{name:"selectall",text:"Select all",action:"SelectAll",icon:"select-all"},{name:"newdocument",text:"New document",action:"mceNewDocument",icon:"new-document"},{name:"removeformat",text:"Clear formatting",action:"RemoveFormat",icon:"remove-formatting"},{name:"remove",text:"Remove",action:"Delete",icon:"remove"}],function(e){t.ui.registry.addButton(e.name,{tooltip:e.text,icon:e.icon,onAction:Qz(t,e.action)})})},Mq=function(t){UM.each([{name:"blockquote",text:"Blockquote",action:"mceBlockQuote",icon:"quote"}],function(e){t.ui.registry.addToggleButton(e.name,{tooltip:e.text,icon:e.icon,onAction:Qz(t,e.action),onSetup:Kz(t,e.name)})})},Iq=function(t){Nq(t),Dq(t),Mq(t)},Rq=function(t){UM.each([{name:"bold",text:"Bold",action:"Bold",icon:"bold",shortcut:"Meta+B"},{name:"italic",text:"Italic",action:"Italic",icon:"italic",shortcut:"Meta+I"},{name:"underline",text:"Underline",action:"Underline",icon:"underline",shortcut:"Meta+U"},{name:"strikethrough",text:"Strikethrough",action:"Strikethrough",icon:"strike-through",shortcut:""},{name:"subscript",text:"Subscript",action:"Subscript",icon:"subscript",shortcut:""},{name:"superscript",text:"Superscript",action:"Superscript",icon:"superscript",shortcut:""},{name:"removeformat",text:"Clear formatting",action:"RemoveFormat",icon:"remove-formatting",shortcut:""},{name:"newdocument",text:"New document",action:"mceNewDocument",icon:"new-document",shortcut:""},{name:"cut",text:"Cut",action:"Cut",icon:"cut",shortcut:"Meta+X"},{name:"copy",text:"Copy",action:"Copy",icon:"copy",shortcut:"Meta+C"},{name:"paste",text:"Paste",action:"Paste",icon:"paste",shortcut:"Meta+V"},{name:"selectall",text:"Select all",action:"SelectAll",icon:"select-all",shortcut:"Meta+A"}],function(e){t.ui.registry.addMenuItem(e.name,{text:e.text,icon:e.icon,shortcut:e.shortcut,onAction:Qz(t,e.action)})}),t.ui.registry.addMenuItem("codeformat",{text:"Code",icon:"sourcecode",onAction:Pq(t,"code")})},$q=function(t){Iq(t),Rq(t)},Lq=function(t,e){return Xz(t,"Undo Redo AddUndo TypingUndo ClearUndos SwitchMode",function(n){n.setDisabled(t.mode.isReadOnly()||!t.undoManager[e]())})},jq=function(t){t.ui.registry.addMenuItem("undo",{text:"Undo",icon:"undo",shortcut:"Meta+Z",onSetup:Lq(t,"hasUndo"),onAction:Qz(t,"undo")}),t.ui.registry.addMenuItem("redo",{text:"Redo",icon:"redo",shortcut:"Meta+Y",onSetup:Lq(t,"hasRedo"),onAction:Qz(t,"redo")})},Fq=function(t){t.ui.registry.addButton("undo",{tooltip:"Undo",icon:"undo",disabled:!0,onSetup:Lq(t,"hasUndo"),onAction:Qz(t,"undo")}),t.ui.registry.addButton("redo",{tooltip:"Redo",icon:"redo",disabled:!0,onSetup:Lq(t,"hasRedo"),onAction:Qz(t,"redo")})},Bq=function(t){jq(t),Fq(t)},Vq=function(t){return Xz(t,"VisualAid",function(e){e.setActive(t.hasVisual)})},zq=function(t){t.ui.registry.addToggleMenuItem("visualaid",{text:"Visual aids",onSetup:Vq(t),onAction:Qz(t,"mceToggleVisualAid")})},Uq=function(t){t.ui.registry.addButton("visualaid",{tooltip:"Visual aids",text:"Visual aids",onAction:Qz(t,"mceToggleVisualAid")})},Hq=function(t){Uq(t),zq(t)},qq=function(t,e){mq(t),$q(t),Eq(t,e),Bq(t),aA(t),Hq(t),Oq(t),Cq(t)},Wq=function(t,e){return{type:"makeshift",x:t,y:e}},Gq=function(t,e,n){return Wq(t.x+e,t.y+n)},Yq=function(t){return"longpress"===t.type||0===t.type.indexOf("touch")},Kq=function(t){if(Yq(t)){var e=t.touches[0];return Wq(e.pageX,e.pageY)}return Wq(t.pageX,t.pageY)},Xq=function(t){if(Yq(t)){var e=t.touches[0];return Wq(e.clientX,e.clientY)}return Wq(t.clientX,t.clientY)},Jq=function(t,e){var n=_C.DOM.getPos(t);return Gq(e,n.x,n.y)},Qq=function(t,e){return"contextmenu"===e.type||"longpress"===e.type?t.inline?Kq(e):Jq(t.getContentAreaContainer(),Xq(e)):Zq(t)},Zq=function(t){return{type:"selection",root:_e.fromDom(t.selection.getNode())}},tW=function(t){return{type:"node",node:nt.some(_e.fromDom(t.selection.getNode())),root:_e.fromDom(t.getBody())}},eW=function(t,e,n){switch(n){case"node":return tW(t);case"point":return Qq(t,e);case"selection":return Zq(t)}},nW=function(t,e,n,r,i,o){var a=n(),s=eW(t,e,o);DR(a,hS.CLOSE_ON_EXECUTE,r,!1).map(function(t){e.preventDefault(),$w.showMenuAt(i,{anchor:s},{menu:{markers:wS("normal")},data:t})})},rW={onLtr:function(){return[$c,Nc,Dc,Mc,Ic,Rc,Gw,Yw,Ww,Hw,qw,Uw]},onRtl:function(){return[$c,Dc,Nc,Ic,Mc,Rc,Gw,Yw,qw,Uw,Ww,Hw]}},iW={valignCentre:[],alignCentre:[],alignLeft:["tox-pop--align-left"],alignRight:["tox-pop--align-right"],right:["tox-pop--right"],left:["tox-pop--left"],bottom:["tox-pop--bottom"],top:["tox-pop--top"]},oW=function(t,e){var n=t.selection;if(n.isCollapsed()||e.touches.length<1)return!1;var r=e.touches[0],i=n.getRng();return zh(t.getWin(),fh.domRange(i)).exists(function(t){return t.left<=r.clientX&&t.right>=r.clientX&&t.top<=r.clientY&&t.bottom>=r.clientY})},aW=function(t){var e=t.selection.getRng(),n=function(){ex.setEditorTimeout(t,function(){t.selection.setRng(e)},10),o()};t.once("touchend",n);var r=function(t){t.preventDefault(),t.stopImmediatePropagation()};t.on("mousedown",r,!0);var i=function(){return o()};t.once("longpresscancel",i);var o=function(){t.off("touchend",n),t.off("longpresscancel",i),t.off("mousedown",r)}},sW=function(t,e,n){var r=eW(t,e,n);return J({bubble:wd(0,"point"===n?12:0,iW),layouts:rW,overrides:{maxWidthFunction:XV(),maxHeightFunction:md()}},r)},uW=function(t,e,n,r,i,o,a){var s=sW(t,e,o);DR(n,hS.CLOSE_ON_EXECUTE,r,!0).map(function(n){e.preventDefault(),$w.showMenuWithinBounds(i,{anchor:s},{menu:{markers:wS("normal"),highlightImmediately:a},data:n,type:"horizontal"},function(){return nt.some(KH(t,r.shared,"node"===o?"node":"selection"))}),t.fire("contexttoolbar-hide")})},lW=function(t,e,n,r,i,o){var a=nn(),s=a.os.isiOS(),u=a.os.isOSX(),l=a.os.isAndroid(),c=a.deviceType.isTouch(),f=function(){return!(l||s||u&&c)},d=function(){var a=n();uW(t,e,a,r,i,o,f())};if((u||s)&&"node"!==o){var h=function(){aW(t),d()};oW(t,e)?h():(t.once("selectionchange",h),t.once("touchend",function(){return t.off("selectionchange",h)}))}else d()},cW=function(t){return"string"==typeof t?t.split(/[ ,]/):t},fW=function(t){return t.getParam("contextmenu_never_use_native",!1,"boolean")},dW=function(t,e,n){var r=t.ui.registry.getAll().contextMenus;return nt.from(t.getParam(e)).map(cW).getOrThunk(function(){return mt(cW(n),function(t){return Gt(r,t)})})},hW=function(t){return!1===t.getParam("contextmenu")},pW=function(t){return dW(t,"contextmenu","link linkchecker image imagetools table spellchecker configurepermanentpen")},gW=function(t){return t.getParam("contextmenu_avoid_overlap","","string")},mW=function(t){return A(t)?"|"===t:"separator"===t.type},vW={type:"separator"},yW=function(t){var e=function(t){return{text:t.text,icon:t.icon,disabled:t.disabled,shortcut:t.shortcut}};if(A(t))return t;switch(t.type){case"separator":return vW;case"submenu":return J(J({type:"nestedmenuitem"},e(t)),{getSubmenuItems:function(){var e=t.getSubmenuItems();return A(e)?e:dt(e,yW)}});default:return J(J({type:"menuitem"},e(t)),{onAction:B(t.onAction)})}},bW=function(t,e){if(0===e.length)return t;var n=Dt(t).filter(function(t){return!mW(t)}),r=n.fold(function(){return[]},function(t){return[vW]});return t.concat(r).concat(e).concat([vW])},_W=function(t,e,n){var r=yt(e,function(e,r){return Wt(t,r.toLowerCase()).map(function(t){var r=t.update(n);if(A(r))return bW(e,r.split(" "));if(r.length>0){var i=dt(r,yW);return bW(e,i)}return e}).getOrThunk(function(){return e.concat([r])})},[]);return r.length>0&&mW(r[r.length-1])&&r.pop(),r},wW=function(t,e){return e.ctrlKey&&!fW(t)},xW=function(t,e){return"longpress"!==e.type&&(2!==e.button||e.target===t.getBody()&&""===e.pointerType)},kW=function(t,e){return xW(t,e)?t.selection.getStart(!0):e.target},SW=function(t,e){var n=gW(t),r=xW(t,e)?"selection":"point";if(de(n)){var i=kW(t,e);return VA(_e.fromDom(i),n)?"node":r}return r},CW=function(t,e,n){var r=nn(),i=r.deviceType.isTouch,o=xl($w.sketch({dom:{tag:"div"},lazySink:e,onEscape:function(){return t.focus()},onShow:function(){return n.setContextMenuState(!0)},onHide:function(){return n.setContextMenuState(!1)},fireDismissalEventInstead:{},inlineBehaviours:nf([C_("dismissContextMenu",[As(fs(),function(e,n){rg.close(e),t.focus()})])])})),a=function(t){return $w.hide(o)},s=function(e){if(fW(t)&&e.preventDefault(),!wW(t,e)&&!hW(t)){var r=SW(t,e),a=function(){var n=kW(t,e),r=t.ui.registry.getAll(),i=pW(t);return _W(r.contextMenus,i,n)};(i()?lW:nW)(t,e,a,n,o,r)}};t.on("init",function(){var e="ResizeEditor ScrollContent ScrollWindow longpresscancel"+(i()?"":" ResizeWindow");t.on(e,a),t.on("longpress contextmenu",s)})},EW=na.generate([{offset:["x","y"]},{absolute:["x","y"]},{fixed:["x","y"]}]),TW=function(t){return function(e){return e.translate(-t.left,-t.top)}},AW=function(t){return function(e){return e.translate(t.left,t.top)}},OW=function(t){return function(e,n){return yt(t,function(t,e){return e(t)},fr(e,n))}},PW=function(t,e,n){return t.fold(OW([AW(n),TW(e)]),OW([TW(e)]),OW([]))},NW=function(t,e,n){return t.fold(OW([AW(n)]),OW([]),OW([AW(e)]))},DW=function(t,e,n){return t.fold(OW([]),OW([TW(n)]),OW([AW(e),TW(n)]))},MW=function(t,e,n,r,i,o){var a=NW(t,i,o),s=NW(e,i,o);return Math.abs(a.left-s.left)<=n&&Math.abs(a.top-s.top)<=r},IW=function(t,e,n,r,i,o){var a=NW(t,i,o),s=NW(e,i,o),u=Math.abs(a.left-s.left),l=Math.abs(a.top-s.top);return fr(u,l)},RW=function(t,e,n){var r=t.fold(function(t,e){return{position:nt.some("absolute"),left:nt.some(t+"px"),top:nt.some(e+"px")}},function(t,e){return{position:nt.some("absolute"),left:nt.some(t-n.left+"px"),top:nt.some(e-n.top+"px")}},function(t,e){return{position:nt.some("fixed"),left:nt.some(t+"px"),top:nt.some(e+"px")}});return J({right:nt.none(),bottom:nt.none()},r)},$W=function(t,e,n){return t.fold(function(t,r){return jW(t+e,r+n)},function(t,r){return FW(t+e,r+n)},function(t,r){return BW(t+e,r+n)})},LW=function(t,e,n,r){var i=function(t,i){return function(o,a){var s=t(e,n,r);return i(o.getOr(s.left),a.getOr(s.top))}};return t.fold(i(DW,jW),i(NW,FW),i(PW,BW))},jW=EW.offset,FW=EW.absolute,BW=EW.fixed,VW=function(t,e){var n=Un(t,e);return M(n)?NaN:parseInt(n,10)},zW=function(t,e){var n=t.element,r=VW(n,e.leftAttr),i=VW(n,e.topAttr);return isNaN(r)||isNaN(i)?nt.none():nt.some(fr(r,i))},UW=function(t,e,n){var r=t.element;Vn(r,e.leftAttr,n.left+"px"),Vn(r,e.topAttr,n.top+"px")},HW=function(t,e){var n=t.element;Wn(n,e.leftAttr),Wn(n,e.topAttr)},qW=function(t,e,n,r){return zW(t,e).fold(function(){return n},function(t){return BW(t.left+r.left,t.top+r.top)})},WW=function(t,e,n,r,i,o){var a=qW(t,e,n,r),s=e.mustSnap?KW(t,e,a,i,o):XW(t,e,a,i,o),u=PW(a,i,o);return UW(t,e,u),s.fold(function(){return{coord:BW(u.left,u.top),extra:nt.none()}},function(t){return{coord:t.output,extra:t.extra}})},GW=function(t,e){HW(t,e)},YW=function(t,e,n,r){return It(t,function(t){var i=t.sensor;return MW(e,i,t.range.left,t.range.top,n,r)?nt.some({output:LW(t.output,e,n,r),extra:t.extra}):nt.none()})},KW=function(t,e,n,r,i){var o=e.getSnapPoints(t);return YW(o,n,r,i).orThunk(function(){return yt(o,function(t,e){var o=e.sensor,a=IW(n,o,e.range.left,e.range.top,r,i);return t.deltas.fold(function(){return{deltas:nt.some(a),snap:nt.some(e)}},function(n){return(a.left+a.top)/2<=(n.left+n.top)/2?{deltas:nt.some(a),snap:nt.some(e)}:t})},{deltas:nt.none(),snap:nt.none()}).snap.map(function(t){return{output:LW(t.output,n,r,i),extra:t.extra}})})},XW=function(t,e,n,r,i){var o=e.getSnapPoints(t);return YW(o,n,r,i)},JW=function(t,e,n){return{coord:LW(t.output,t.output,e,n),extra:t.extra}},QW=function(t,e,n,r){var i=e.getTarget(t.element);if(e.repositionTarget){var o=pn(t.element),a=jr(o),s=EF(i),u=JW(r,a,s),l=RW(u.coord,0,s);Jn(i,l)}},ZW=Object.freeze({__proto__:null,snapTo:QW}),tG=function(t){yn(t.element).filter(Ce).each(function(t){Hn(t,"data-initial-z-index").fold(function(){return rr(t,"z-index")},function(e){return Kn(t,"z-index",e)}),Wn(t,"data-initial-z-index")})},eG=function(t){yn(t.element).filter(Ce).each(function(e){tr(e,"z-index").each(function(t){Vn(e,"data-initial-z-index",t)}),Kn(e,"z-index",Qn(t.element,"z-index"))})},nG=function(t,e){t.getSystem().addToGui(e),eG(e)},rG=function(t){tG(t),t.getSystem().removeFromGui(t)},iG=function(t,e,n){return t.getSystem().build(dO.sketch({dom:{styles:{left:"0px",top:"0px",width:"100%",height:"100%",position:"fixed","z-index":"1000000000000000"},classes:[e]},events:n}))},oG=Uo("snaps",[To("getSnapPoints"),Ql("onSensor"),To("leftAttr"),To("topAttr"),qo("lazyViewport",ti),qo("mustSnap",!1)]),aG=[qo("useFixed",Y),To("blockerClass"),qo("getTarget",H),qo("onDrag",F),qo("repositionTarget",!0),qo("onDrop",F),Jo("getBounds",ti),oG],sG=function(t){return te(tr(t,"left"),tr(t,"top"),tr(t,"position"),function(t,e,n){return("fixed"===n?BW:jW)(parseInt(t,10),parseInt(e,10))}).getOrThunk(function(){var e=pr(t);return FW(e.left,e.top)})},uG=function(t,e,n,r,i){var o=i.bounds,a=NW(e,n,r),s=bc(a.left,o.x,o.x+o.width-i.width),u=bc(a.top,o.y,o.y+o.height-i.height),l=FW(s,u);return e.fold(function(){var t=DW(l,n,r);return jW(t.left,t.top)},U(l),function(){var t=PW(l,n,r);return BW(t.left,t.top)})},lG=function(t,e,n,r,i,o,a){var s=e.fold(function(){var t=$W(n,o.left,o.top),e=PW(t,r,i);return BW(e.left,e.top)},function(e){var a=WW(t,e,n,o,r,i);return a.extra.each(function(n){e.onSensor(t,n)}),a.coord});return uG(0,s,r,i,a)},cG=function(t,e,n,r){var i=e.getTarget(t.element);if(e.repositionTarget){var o=pn(t.element),a=jr(o),s=EF(i),u=sG(i),l=lG(t,e.snaps,u,a,s,r,n),c=RW(l,0,s);Jn(i,c)}e.onDrag(t,i,r)},fG=function(t,e){return{bounds:t.getBounds(),height:ur(e.element),width:br(e.element)}},dG=function(t,e,n,r,i){var o=n.update(r,i),a=n.getStartData().getOrThunk(function(){return fG(e,t)});o.each(function(n){cG(t,e,a,n)})},hG=function(t,e,n,r){e.each(rG),n.snaps.each(function(e){GW(t,e)});var i=n.getTarget(t.element);r.reset(),n.onDrop(t,i)},pG=function(t){return function(e,n){var r=function(t){n.setStartData(fG(e,t))};return Cs(i([As(ss(),function(t){n.getStartData().each(function(){return r(t)})})],t(e,n,r),!0))}},gG=function(t){return Cs([As(Pa(),t.forceDrop),As(Ma(),t.drop),As(Na(),function(e,n){t.move(n.event)}),As(Da(),t.delayDrop)])},mG=function(t){return nt.from(fr(t.x,t.y))},vG=function(t,e){return fr(e.left-t.left,e.top-t.top)},yG=Object.freeze({__proto__:null,getData:mG,getDelta:vG}),bG=function(t,e,n){return[As(Pa(),function(r,i){if(0===i.event.raw.button){i.stop();var o=function(){return hG(r,nt.some(u),t,e)},a=zA(o,200),s={drop:o,delayDrop:a.schedule,forceDrop:o,move:function(n){a.cancel(),dG(r,t,e,yG,n)}},u=iG(r,t.blockerClass,gG(s));!function(){n(r),nG(r,u)}()}})]},_G=i(i([],aG,!0),[nc("dragger",{handlers:pG(bG)})],!1),wG=function(t){return Cs([As(Ea(),t.forceDrop),As(Aa(),t.drop),As(Oa(),t.drop),As(Ta(),function(e,n){t.move(n.event)})])},xG=function(t){var e=t[0];return nt.some(fr(e.clientX,e.clientY))},kG=function(t){var e=t.raw,n=e.touches;return 1===n.length?xG(n):nt.none()},SG=function(t,e){return fr(e.left-t.left,e.top-t.top)},CG=Object.freeze({__proto__:null,getData:kG,getDelta:SG}),EG=function(t,e,n){var r=Gf(),i=function(n){hG(n,r.get(),t,e),r.clear()};return[As(Ea(),function(o,a){a.stop();var s=function(){return i(o)},u={drop:s,delayDrop:F,forceDrop:s,move:function(n){dG(o,t,e,CG,n)}},l=iG(o,t.blockerClass,wG(u));r.set(l);!function(){n(o),nG(o,l)}()}),As(Ta(),function(n,r){r.stop(),dG(n,t,e,CG,r.event)}),As(Aa(),function(t,e){e.stop(),i(t)}),As(Oa(),i)]},TG=i(i([],aG,!0),[nc("dragger",{handlers:pG(EG)})],!1),AG=function(t,e,n){return i(i([],bG(t,e,n),!0),EG(t,e,n),!0)},OG=i(i([],aG,!0),[nc("dragger",{handlers:pG(AG)})],!1),PG=_G,NG=TG,DG=OG,MG=Object.freeze({__proto__:null,mouse:PG,touch:NG,mouseOrTouch:DG}),IG=function(){var t=nt.none(),e=nt.none(),n=function(){t=nt.none(),e=nt.none()},r=function(e,n){var r=t.map(function(t){return e.getDelta(t,n)});return t=nt.some(n),r},i=function(t,e){return t.getData(e).bind(function(e){return r(t,e)})},o=function(t){e=nt.some(t)},a=function(){return e},s=U({});return _u({readState:s,reset:n,update:i,getStartData:a,setStartData:o})},RG=Object.freeze({__proto__:null,init:IG}),$G=sf({branchKey:"mode",branches:MG,name:"dragging",active:{events:function(t,e){return t.dragger.handlers(t,e)}},extra:{snap:function(t){return{sensor:t.sensor,range:t.range,output:t.output,extra:nt.from(t.extra)}}},state:RG,apis:ZW}),LG=function(t,e,n,r,i,o){return t.fold(function(){return $G.snap({sensor:FW(n-20,r-20),range:fr(i,o),output:FW(nt.some(n),nt.some(r)),extra:{td:e}})},function(t){var i=n-20,o=r-20,a=t.element.dom.getBoundingClientRect();return $G.snap({sensor:FW(i,o),range:fr(40,40),output:FW(nt.some(n-a.width/2),nt.some(r-a.height/2)),extra:{td:e}})})},jG=function(t,e,n){var r=function(t,e){return t.exists(function(t){return cn(t,e)})};return{getSnapPoints:t,leftAttr:"data-drag-left",topAttr:"data-drag-top",onSensor:function(t,i){var o=i.td;r(e.get(),o)||(e.set(o),n(o))},mustSnap:!0}},FG=function(t){return sx(rx.sketch({dom:{tag:"div",classes:["tox-selector"]},buttonBehaviours:nf([$G.config({mode:"mouseOrTouch",blockerClass:"blocker",snaps:t}),qP.config({})]),eventOrder:{mousedown:["dragging","alloy.base.behaviour"],touchstart:["dragging","alloy.base.behaviour"]}}))},BG=function(t,e){var n=ta([]),r=ta([]),i=ta(!1),o=Gf(),a=Gf(),s=function(t){var n=Zr(t);return LG(h.getOpt(e),t,n.x,n.y,n.width,n.height)},u=function(){return dt(n.get(),function(t){return s(t)})},l=function(t){var n=Zr(t);return LG(p.getOpt(e),t,n.right,n.bottom,n.width,n.height)},c=function(){return dt(r.get(),function(t){return l(t)})},f=jG(u,o,function(e){a.get().each(function(n){t.fire("TableSelectorChange",{start:e,finish:n})})}),d=jG(c,a,function(e){o.get().each(function(n){t.fire("TableSelectorChange",{start:n,finish:e})})}),h=FG(f),p=FG(d),g=xl(h.asSpec()),m=xl(p.asSpec()),v=function(e,n,r,i){var o=n.dom.getBoundingClientRect();rr(e.element,"display");var a=vn(_e.fromDom(t.getBody())).dom.innerHeight,s=r(o),u=i(o,a);(s||u)&&Kn(e.element,"display","none")},y=function(t,e,n,r){var i=n(e);$G.snapTo(t,i),v(t,e,function(t){return t[r]<0},function(t,e){return t[r]>e})},b=function(t){return y(g,t,s,"top")},_=function(){return o.get().each(b)},w=function(t){return y(m,t,l,"bottom")},x=function(){return a.get().each(w)};nn().deviceType.isTouch()&&(t.on("TableSelectionChange",function(t){i.get()||(Op(e,g),Op(e,m),i.set(!0)),o.set(t.start),a.set(t.finish),t.otherCells.each(function(e){n.set(e.upOrLeftCells),r.set(e.downOrRightCells),b(t.start),w(t.finish)})}),t.on("ResizeEditor ResizeWindow ScrollContent",function(){_(),x()}),t.on("TableSelectionClear",function(){i.get()&&(Dp(g),Dp(m),i.set(!1)),o.clear(),a.clear()}))},VG=function(t){if(1===t.nodeType){if("BR"===t.nodeName||t.getAttribute("data-mce-bogus"))return!0;if("bookmark"===t.getAttribute("data-mce-type"))return!0}return!1},zG=function(t,e,n){e.delimiter||(e.delimiter="»");var r=function(r){var i=r||[],o=dt(i,function(e,r){return rx.sketch({dom:{tag:"div",classes:["tox-statusbar__path-item"],attributes:{role:"button","data-index":r,"tab-index":-1,"aria-level":r+1},innerHtml:e.name},action:function(n){t.focus(),t.selection.select(e.element),t.nodeChanged()},buttonBehaviours:nf([wE.button(n.isDisabled),mE()])})}),a={dom:{tag:"div",classes:["tox-statusbar__path-divider"],attributes:{"aria-hidden":!0},innerHtml:" "+e.delimiter+" "}};return yt(o.slice(1),function(t,e){var n=t;return n.push(a),n.push(e),n},[o[0]])},i=function(e){for(var n=[],r=e.length;r-- >0;){var i=e[r];if(1===i.nodeType&&!VG(i)){var o=t.fire("ResolveName",{name:i.nodeName.toLowerCase(),target:i});if(o.isDefaultPrevented()||n.push({name:o.name,element:i}),o.isPropagationStopped())break}}return n};return{dom:{tag:"div",classes:["tox-statusbar__path"],attributes:{role:"navigation"}},behaviours:nf([h_.config({mode:"flow",selector:"div[role=button]"}),wv.config({disabled:n.isDisabled}),mE(),xO.config({}),k_.config({}),C_("elementPathEvents",[Ls(function(e,n){t.shortcuts.add("alt+F11","focus statusbar elementpath",function(){return h_.focusIn(e)}),t.on("NodeChange",function(t){var n=i(t.parents);n.length>0?k_.set(e,r(n)):k_.set(e,[])})})])]),components:[]}};!function(t){t[t.None=0]="None",t[t.Both=1]="Both",t[t.Vertical=2]="Vertical"}(iU||(iU={}));var UG=function(t,e,n,r,i){var o={};return o.height=SH(r+e.top,AC(t),PC(t)),n===iU.Both&&(o.width=SH(i+e.left,TC(t),OC(t))),o},HG=function(t,e,n){var r=_e.fromDom(t.getContainer()),i=UG(t,e,n,sr(r),yr(r));Lt(i,function(t,e){return Kn(r,e,kH(t))}),CT(t)},qG=function(t){var e=!t.hasPlugin("autoresize"),n=t.getParam("resize",e);return!1===n?iU.None:"both"===n?iU.Both:iU.Vertical},WG=function(t,e,n,r){var i=fr(20*n,20*r);return HG(t,i,e),nt.some(!0)},GG=function(t,e){var n=qG(t);return n===iU.None?nt.none():nt.some(lk("resize-handle",{tag:"div",classes:["tox-statusbar__resize-handle"],attributes:{title:e.translate("Resize")},behaviours:[$G.config({mode:"mouse",repositionTarget:!1,onDrag:function(e,r,i){return HG(t,i,n)},blockerClass:"tox-blocker"}),h_.config({mode:"special",onLeft:function(){return WG(t,n,-1,0)},onRight:function(){return WG(t,n,1,0)},onUp:function(){return WG(t,n,0,-1)},onDown:function(){return WG(t,n,0,1)}}),xO.config({}),I_.config({})]},e.icons))},YG=function(t,e){var n,r=function(t,n,r){return k_.set(t,[yl(e.translate(["{0} "+r,n[r]]))])};return rx.sketch({dom:{tag:"button",classes:["tox-statusbar__wordcount"]},components:[],buttonBehaviours:nf([wE.button(e.isDisabled),mE(),xO.config({}),k_.config({}),Fg.config({store:{mode:"memory",initialValue:{mode:"words",count:{words:0,characters:0}}}}),C_("wordcount-events",[Bs(function(t){var e=Fg.getValue(t),n="words"===e.mode?"characters":"words";Fg.setValue(t,{mode:n,count:e.count}),r(t,e.count,n)}),Ls(function(e){t.on("wordCountUpdate",function(t){var n=Fg.getValue(e).mode;Fg.setValue(e,{mode:n,count:t.wordCount}),r(e,t.wordCount,n)})})])]),eventOrder:(n={},n[Qa()]=["disabling","alloy.base.behaviour","wordcount-events"],n)})},KG=function(t,e){var n=function(){var t=Zx.translate(["Powered by {0}","Tiny"]);return{dom:{tag:"span",classes:["tox-statusbar__branding"],innerHtml:'<a href="https://www.tiny.cloud/?utm_campaign=editor_referral&amp;utm_medium=poweredby&amp;utm_source=tinymce&amp;utm_content=v5" rel="noopener" target="_blank" tabindex="-1" aria-label="'+t+'">'+t+"</a>"}}},r=function(){var r=[];return t.getParam("elementpath",!0,"boolean")&&r.push(zG(t,{},e)),t.hasPlugin("wordcount")&&r.push(YG(t,e)),t.getParam("branding",!0,"boolean")&&r.push(n()),r.length>0?[{dom:{tag:"div",classes:["tox-statusbar__text-container"]},components:r}]:[]};return{dom:{tag:"div",classes:["tox-statusbar"]},components:function(){var n=r(),i=GG(t,e);return n.concat(i.toArray())}()}},XG=function(t){var e,n=t.inline,r=n?MH:wH,i=tE(t)?vB:SF,o=nt.none(),a=nn(),s=a.browser.isIE(),u=s?["tox-platform-ie"]:[],l=a.deviceType.isTouch(),c=l?["tox-platform-touch"]:[],f=WC(t),d=QC(t),h=Zx.isRtl()?{attributes:{dir:"rtl"}}:{},p={attributes:(e={},e[Ed]=f?Of.BottomToTop:Of.TopToBottom,e)},g=function(){return o.bind($z.getHeader)},m=function(){return i.isDocked(g)},v=function(){Kn(G.element,"width",document.body.clientWidth+"px")},y=xl(function(){var t=cn(jn(),d)&&"grid"===Qn(d,"display"),e={dom:J({tag:"div",classes:["tox","tox-silver-sink","tox-tinymce-aux"].concat(u).concat(c)},h),behaviours:nf([kp.config({useFixed:function(){return m()}})])},n={dom:{styles:{width:document.body.clientWidth+"px"}},events:Cs([As(us(),v)])};return xi(e,t?n:{})}()),b=function(){return ii.value(y)},_=sx({dom:{tag:"div",classes:["tox-anchorbar"]}}),w=function(){return o.bind(function(t){return _.getOpt(t)}).getOrDie("Could not find a anchor bar element")},x=function(){return o.bind(function(t){return $z.getToolbar(t)}).getOrDie("Could not find more toolbar element")},k=function(){return o.bind(function(t){return $z.getThrobber(t)}).getOrDie("Could not find throbber element")},S=oF(y,t,w),C=$z.parts.menubar({dom:{tag:"div",classes:["tox-menubar"]},backstage:S,onEscape:function(){t.focus()}}),E=VC(t),T=$z.parts.toolbar(J({dom:{tag:"div",classes:["tox-toolbar"]},getSink:b,providers:S.shared.providers,onEscape:function(){t.focus()},type:E,lazyToolbar:x,lazyHeader:function(){return g().getOrDie("Could not find header element")}},p)),A=$z.parts["multiple-toolbar"]({dom:{tag:"div",classes:["tox-toolbar-overlord"]},providers:S.shared.providers,onEscape:function(){t.focus()},type:E}),O=$z.parts.socket({dom:{tag:"div",classes:["tox-edit-area"]}}),P=$z.parts.sidebar({dom:{tag:"div",classes:["tox-sidebar"]}}),N=$z.parts.throbber({dom:{tag:"div",classes:["tox-throbber"]},backstage:S}),D=t.getParam("statusbar",!0,"boolean"),M=D&&!n?nt.some(KG(t,S.shared.providers)):nt.none(),I={dom:{tag:"div",classes:["tox-sidebar-wrap"]},components:[O,P]},R=FC(t),$=LC(t),L=$C(t),j=$z.parts.header({dom:J({tag:"div",classes:["tox-editor-header"]},p),components:xt([L?[C]:[],function(){return R?[A]:$?[T]:[]}(),JC(t)?[]:[_.asSpec()]]),sticky:tE(t),editor:t,sharedBackstage:S.shared}),B=xt([f?[]:[j],n?[]:[I],f?[j]:[]]),V={dom:{tag:"div",classes:["tox-editor-container"]},components:B},z=xt([[V],n?[]:M.toArray(),[N]]),U=ZC(t),H=J(J({role:"application"},Zx.isRtl()?{dir:"rtl"}:{}),U?{"aria-hidden":"true"}:{}),q=xl($z.sketch({dom:{tag:"div",classes:["tox","tox-tinymce"].concat(n?["tox-tinymce-inline"]:[]).concat(f?["tox-tinymce--toolbar-bottom"]:[]).concat(c).concat(u),styles:J({visibility:"hidden"},U?{opacity:"0",border:"0"}:{}),attributes:H},components:z,behaviours:nf([mE(),wv.config({disableClass:"tox-tinymce--disabled"}),h_.config({mode:"cyclic",selector:".tox-menubar, .tox-toolbar, .tox-toolbar__primary, .tox-toolbar__overflow--open, .tox-sidebar__overflow--open, .tox-statusbar__path, .tox-statusbar__wordcount, .tox-statusbar__branding a, .tox-statusbar__resize-handle"})])}));o=nt.some(q),t.shortcuts.add("alt+F9","focus menubar",function(){$z.focusMenubar(q)}),t.shortcuts.add("alt+F10","focus toolbar",function(){$z.focusToolbar(q)}),t.addCommand("ToggleToolbarDrawer",function(){$z.toggleToolbarDrawer(q)}),t.addQueryStateHandler("ToggleToolbarDrawer",function(){return $z.isToolbarDrawerToggled(q)});var W=hO(q),G=hO(y);aF(t,W,G);var Y=function(){return{channels:{broadcastAll:G.broadcast,broadcastOn:G.broadcastOn,register:F}}},K=function(){var e=kH(EH(t)),n=kH(AH(t));return t.inline||(nr("div","width",n)&&Kn(q.element,"width",n),nr("div","height",e)?Kn(q.element,"height",e):Kn(q.element,"height","200px")),e};return{mothership:W,uiMothership:G,backstage:S,renderUI:function(){i.setup(t,S.shared,g),qq(t,S),CW(t,b,S),cV(t),IV(t,k,S.shared),jt(HC(t),function(e,n){t.ui.registry.addGroupToolbarButton(n,e)});var e=t.ui.registry.getAll(),n=e.buttons,o=e.menuItems,a=e.contextToolbars,s=e.sidebars,u=jC(t),l={menuItems:o,menus:rE(t),menubar:iE(t),toolbar:u.getOrThunk(function(){return oE(t)}),allowToolbarGroups:E===dS.floating,buttons:n,sidebar:s};gq(t,a,y,{backstage:S}),BG(t,y);var c=t.getElement(),f=K(),d={mothership:W,uiMothership:G,outerContainer:q},h={targetNode:c,height:f};return r.render(t,d,l,S,h)},getUi:Y}},JG=function(t,e){var n=nt.from(Un(t,"id")).fold(function(){var t=Zs("dialog-describe");return Vn(e,"id",t),t},H);Vn(t,"aria-describedby",n)},QG=function(t,e){var n=Hn(t,"id").fold(function(){var t=Zs("dialog-label");return Vn(e,"id",t),t},H);Vn(t,"aria-labelledby",n)},ZG=U([To("lazySink"),Lo("dragBlockClass"),Jo("getBounds",ti),qo("useTabstopAt",K),qo("eventOrder",{}),Bg("modalBehaviours",[h_]),Zl("onExecute"),ec("onEscape")]),tY={sketch:H},eY=U([bm({name:"draghandle",overrides:function(t,e){return{behaviours:nf([$G.config({mode:"mouse",getTarget:function(t){return Ol(t,'[role="dialog"]').getOr(t)},blockerClass:t.dragBlockClass.getOrDie(new Error("The drag blocker class was not specified for a dialog with a drag handle: \n"+JSON.stringify(e,null,2)).message),getBounds:t.getDragBounds})])}}}),vm({schema:[To("dom")],name:"title"}),vm({factory:tY,schema:[To("dom")],name:"close"}),vm({factory:tY,schema:[To("dom")],name:"body"}),bm({factory:tY,schema:[To("dom")],name:"footer"}),ym({factory:{sketch:function(t,e){return J(J({},t),{dom:e.dom,components:e.components})}},schema:[qo("dom",{tag:"div",styles:{position:"fixed",left:"0px",top:"0px",right:"0px",bottom:"0px"}}),qo("components",[])],name:"blocker"})]),nY=function(t,e,n,r){var i,o=Gf(),a=function(e){o.set(e);var n=t.lazySink(e).getOrDie(),i=r.blocker(),a=n.getSystem().build(J(J({},i),{components:i.components.concat([kl(e)]),behaviours:nf([I_.config({}),C_("dialog-blocker-events",[$s(Ra(),function(){h_.focusIn(e)})])])}));Op(n,a),h_.focusIn(e)},s=function(t){o.clear(),yn(t.element).each(function(e){t.getSystem().getByDom(e).each(function(t){Dp(t)})})},u=function(e){return Mm(e,t,"body")},l=function(e){return Mm(e,t,"footer")},c=function(t,e){EV.block(t,e)},f=function(t){EV.unblock(t)},d=Zs("modal-events"),h=J(J({},t.eventOrder),(i={},i[ls()]=[d].concat(t.eventOrder["alloy.system.attached"]||[]),i));return{uid:t.uid,dom:t.dom,components:e,apis:{show:a,hide:s,getBody:u,getFooter:l,setIdle:f,setBusy:c},eventOrder:h,domModification:{attributes:{role:"dialog","aria-modal":"true"}},behaviours:zg(t.modalBehaviours,[k_.config({}),h_.config({mode:"cyclic",onEnter:t.onExecute,onEscape:t.onEscape,useTabstopAt:t.useTabstopAt}),EV.config({getRoot:o.get}),C_(d,[Ls(function(e){QG(e.element,Mm(e,t,"title").element),JG(e.element,Mm(e,t,"body").element)})])])}},rY=Jm({name:"ModalDialog",configFields:ZG(),partFields:eY(),factory:nY,apis:{show:function(t,e){t.show(e)},hide:function(t,e){t.hide(e)},getBody:function(t,e){return t.getBody(e)},getFooter:function(t,e){return t.getFooter(e)},setBusy:function(t,e,n){t.setBusy(e,n)},setIdle:function(t,e){t.setIdle(e)}}}),iY=Zi([Po("type"),Po("name")].concat(VS)),oY=lo,aY=[So("name","name",Ci(function(){return Zs("button-name")}),uo),Bo("icon"),Ko("align","end",["start","end"]),Xo("primary",!1),Xo("disabled",!1)],sY=i(i([],aY,!0),[Po("text")],!1),uY=i([No("type",["submit","cancel","custom"])],sY,!0),lY=i([No("type",["menu"]),Bo("text"),Bo("tooltip"),Bo("icon"),$o("items",iY)],aY,!0),cY=ko("type",{submit:uY,cancel:uY,custom:uY,menu:lY}),fY=[Po("type"),Po("text"),No("level",["info","warn","error","success"]),Po("icon"),qo("url","")],dY=Zi(fY),hY=function(t){return[Po("type"),t]},pY=[Po("type"),Po("text"),Xo("disabled",!1),Xo("primary",!1),So("name","name",Ci(function(){return Zs("button-name")}),uo),Bo("icon"),Xo("borderless",!1)],gY=Zi(pY),mY=[Po("type"),Po("name"),Po("label"),Xo("disabled",!1)],vY=Zi(mY),yY=lo,bY=[Po("type"),Po("name")],_Y=bY.concat([Bo("label")]),wY=_Y.concat([qo("columns","auto")]),xY=Zi(wY),kY=io([Po("value"),Po("text"),Po("icon")]),SY=_Y,CY=Zi(SY),EY=uo,TY=_Y,AY=Zi(TY),OY=uo,PY=bY.concat([Yo("tag","textarea"),Po("scriptId"),Po("scriptUrl"),function(t,e){return Wo(t,e,ho)}("settings",void 0)]),NY=bY.concat([Yo("tag","textarea"),Do("init")]),DY=mo(function(t){return bo("customeditor.old",Qi(NY),t).orThunk(function(){return bo("customeditor.new",Qi(PY),t)})}),MY=uo,IY=_Y,RY=Zi(IY),$Y=function(){return to(Ui)}(),LY=function(t){return[Po("type"),Oo("columns"),t]},jY=[Po("type"),Po("html"),Ko("presets","presentation",["presentation","document"])],FY=Zi(jY),BY=_Y.concat([Xo("sandboxed",!0)]),VY=Zi(BY),zY=uo,UY=_Y.concat([Ao("currentState",Zi([To("blob"),Po("url")]))]),HY=Zi(UY),qY=_Y.concat([Bo("inputMode"),Bo("placeholder"),Xo("maximized",!1),Xo("disabled",!1)]),WY=Zi(qY),GY=uo,YY=function(t){return[Po("type"),Po("label"),t]},KY=[Po("text"),Po("value")],XY=[Po("text"),$o("items",function(t,e){return ro(0,e)}(0,function(){return JY}))],JY=eo([Zi(KY),Zi(XY)]),QY=_Y.concat([$o("items",JY),Xo("disabled",!1)]),ZY=Zi(QY),tK=uo,eK=_Y.concat([Ro("items",[Po("text"),Po("value")]),Go("size",1),Xo("disabled",!1)]),nK=Zi(eK),rK=uo,iK=_Y.concat([Xo("constrain",!0),Xo("disabled",!1)]),oK=Zi(iK),aK=Zi([Po("width"),Po("height")]),sK=[Po("type"),$o("header",uo),$o("cells",to(uo))],uK=Zi(sK),lK=_Y.concat([Bo("placeholder"),Xo("maximized",!1),Xo("disabled",!1)]),cK=Zi(lK),fK=uo,dK=_Y.concat([Ko("filetype","file",["image","media","file"]),qo("disabled",!1)]),hK=Zi(dK),pK=Zi([Po("value"),qo("meta",{})]),gK=function(t){return So("items","items",Si(),to(mo(function(e){return bo("Checking item of "+t,mK,e).fold(function(t){return ii.error(xo(t))},function(t){return ii.value(t)})})))},mK=Xi(function(){return go("type",{alertbanner:dY,bar:Zi(hY(gK("bar"))),button:gY,checkbox:vY,colorinput:CY,colorpicker:AY,dropzone:RY,grid:Zi(LY(gK("grid"))),iframe:VY,input:WY,listbox:ZY,selectbox:nK,sizeinput:oK,textarea:cK,urlinput:hK,customeditor:DY,htmlpanel:FY,imagetools:HY,collection:xY,label:Zi(YY(gK("label"))),table:uK,panel:yK})}),vK=[Po("type"),qo("classes",[]),$o("items",mK)],yK=Zi(vK),bK=[So("name","name",Ci(function(){return Zs("tab-name")}),uo),Po("title"),$o("items",mK)],_K=[Po("type"),Ro("tabs",bK)],wK=Zi(_K),xK=sY,kK=cY,SK=Zi([Po("title"),Ao("body",go("type",{panel:yK,tabpanel:wK})),Yo("size","normal"),$o("buttons",kK),qo("initialData",{}),Jo("onAction",F),Jo("onChange",F),Jo("onSubmit",F),Jo("onClose",F),Jo("onCancel",F),qo("onTabChange",F)]),CK=function(t){return bo("dialog",SK,t)},EK=Zi(i([No("type",["cancel","custom"])],xK,!0)),TK=Zi([Po("title"),Po("url"),Fo("height"),Fo("width"),zo("buttons",EK),Jo("onAction",F),Jo("onCancel",F),Jo("onClose",F),Jo("onMessage",F)]),AK=function(t){return bo("dialog",TK,t)},OK=function(t){return O(t)?[t].concat(kt(qt(t),OK)):P(t)?kt(t,OK):[]},PK=function(t){return A(t.type)&&A(t.name)},NK={checkbox:yY,colorinput:EY,colorpicker:OY,dropzone:$Y,input:GY,iframe:zY,sizeinput:aK,selectbox:rK,listbox:tK,size:aK,textarea:fK,urlinput:pK,customeditor:MY,collection:kY,togglemenuitem:oY},DK=function(t){return nt.from(NK[t.type])},MK=function(t){return mt(OK(t),PK)},IK=function(t){var e=MK(t),n=kt(e,function(t){return DK(t).fold(function(){return[]},function(e){return[Ao(t.name,e)]})});return Zi(n)},RK=function(t){return{internalDialog:_o(CK(t)),dataValidator:IK(t),initialData:t.initialData}},$K={open:function(t,e){var n=RK(e);return t(n.internalDialog,n.initialData,n.dataValidator)},openUrl:function(t,e){return t(_o(AK(e)))},redial:function(t){return RK(t)}},LK=function(t){var e=[],n={};return Lt(t,function(t,r){t.fold(function(){e.push(r)},function(t){n[r]=t})}),e.length>0?ii.error(e):ii.value(n)},jK=function(t,e){var n=sx(CM.sketch(function(n){return{dom:{tag:"div",classes:["tox-form"].concat(t.classes)},components:dt(t.items,function(t){return UL(n,t,e)})}}));return{dom:{tag:"div",classes:["tox-dialog__body"]},components:[{dom:{tag:"div",classes:["tox-dialog__body-content"]},components:[n.asSpec()]}],behaviours:nf([h_.config({mode:"acyclic",useTabstopAt:W(sI)}),RM.memento(n),JM.memento(n,{postprocess:function(t){return LK(t).fold(function(t){return console.error(t),{}},H)}})])}},FK=function(t,e){return{uid:t.uid,dom:t.dom,components:t.components,events:tw(t.action),behaviours:zg(t.tabButtonBehaviours,[I_.config({}),h_.config({mode:"execution",useSpace:!0,useEnter:!0}),Fg.config({store:{mode:"memory",initialValue:t.value}})]),domModification:t.domModification}},BK=Xm({name:"TabButton",configFields:[qo("uid",void 0),To("value"),So("dom","dom",Ai(function(){return{attributes:{role:"tab",id:Zs("aria"),"aria-selected":"false"}}}),oo()),Lo("action"),qo("domModification",{}),Bg("tabButtonBehaviours",[I_,h_,Fg]),To("view")],factory:FK}),VK=U([To("tabs"),To("dom"),qo("clickToDismiss",!1),Bg("tabbarBehaviours",[Vv,h_]),Xl(["tabClass","selectedClass"])]),zK=_m({factory:BK,name:"tabs",unit:"tab",overrides:function(t){var e=function(t,e){Vv.dehighlight(t,e),_s(t,ms(),{tabbar:t,button:e})},n=function(t,e){Vv.highlight(t,e),_s(t,gs(),{tabbar:t,button:e})};return{action:function(r){var i=r.getSystem().getByUid(t.uid).getOrDie(),o=Vv.isHighlighted(i,r);!function(){return o&&t.clickToDismiss?e:o?F:n}()(i,r)},domModification:{classes:[t.markers.tabClass]}}}}),UK=U([zK]),HK=function(t,e,n,r){return{uid:t.uid,dom:t.dom,components:e,"debug.sketcher":"Tabbar",domModification:{attributes:{role:"tablist"}},behaviours:zg(t.tabbarBehaviours,[Vv.config({highlightClass:t.markers.selectedClass,itemClass:t.markers.tabClass,onHighlight:function(t,e){Vn(e.element,"aria-selected","true")},onDehighlight:function(t,e){Vn(e.element,"aria-selected","false")}}),h_.config({mode:"flow",getInitial:function(t){return Vv.getHighlighted(t).map(function(t){return t.element})},selector:"."+t.markers.tabClass,executeOnMove:!0})])}},qK=Jm({name:"Tabbar",configFields:VK(),partFields:UK(),factory:HK}),WK=function(t,e){return{uid:t.uid,dom:t.dom,behaviours:zg(t.tabviewBehaviours,[k_.config({})]),domModification:{attributes:{role:"tabpanel"}}}},GK=Xm({name:"Tabview",configFields:[Bg("tabviewBehaviours",[k_])],factory:WK}),YK=U([qo("selectFirst",!0),Ql("onChangeTab"),Ql("onDismissTab"),qo("tabs",[]),Bg("tabSectionBehaviours",[])]),KK=vm({factory:qK,schema:[To("dom"),Io("markers",[To("tabClass"),To("selectedClass")])],name:"tabbar",defaults:function(t){return{tabs:t.tabs}}}),XK=vm({factory:GK,name:"tabview"}),JK=U([KK,XK]),QK=function(t,e,n,r){var i=function(e){var n=Fg.getValue(e);Dm(e,t,"tabview").each(function(r){_t(t.tabs,function(t){return t.value===n}).each(function(n){var i=n.view();Hn(e.element,"id").each(function(t){Vn(r.element,"aria-labelledby",t)}),k_.set(r,i),t.onChangeTab(r,e,i)})})},o=function(e,n){Dm(e,t,"tabbar").each(function(t){n(t).each(ws)})};return{uid:t.uid,dom:t.dom,components:e,behaviours:Vg(t.tabSectionBehaviours),events:Cs(xt([t.selectFirst?[Ls(function(t,e){o(t,Vv.getFirst)})]:[],[As(gs(),function(t,e){var n=e.event.button;i(n)}),As(ms(),function(e,n){var r=n.event.button;t.onDismissTab(e,r)})]])),apis:{getViewItems:function(e){return Dm(e,t,"tabview").map(function(t){return k_.contents(t)}).getOr([])},showTab:function(t,e){o(t,function(t){var n=Vv.getCandidates(t);return _t(n,function(t){return Fg.getValue(t)===e}).filter(function(e){return!Vv.isHighlighted(t,e)})})}}}},ZK=Jm({name:"TabSection",configFields:YK(),partFields:JK(),factory:QK,apis:{getViewItems:function(t,e){return t.getViewItems(e)},showTab:function(t,e,n){t.showTab(e,n)}}}),tX=function(t,e,n){return dt(t,function(r,i){k_.set(n,t[i].view());var o=e.dom.getBoundingClientRect();return k_.set(n,[]),o.height})},eX=function(t){return Nt(Ot(t,function(t,e){return t>e?-1:t<e?1:0}))},nX=function(t,e,n){var r,i=mn(t).dom,o=Ol(t,".tox-dialog-wrap").getOr(t),a="fixed"===Qn(o,"position");r=a?Math.max(i.clientHeight,window.innerHeight):Math.max(i.offsetHeight,i.scrollHeight);var s=sr(e),u=e.dom.offsetLeft>=n.dom.offsetLeft+yr(n),l=u?Math.max(sr(n),s):s,c=parseInt(Qn(t,"margin-top"),10)||0,f=parseInt(Qn(t,"margin-bottom"),10)||0;return r-(sr(t)+c+f-l)},rX=function(t,e){Nt(t).each(function(t){return ZK.showTab(e,t.value)})},iX=function(t,e){Kn(t,"height",e+"px"),nn().browser.isIE()?rr(t,"flex-basis"):Kn(t,"flex-basis",e+"px")},oX=function(t,e,n){Ol(t,'[role="dialog"]').each(function(t){Nl(t,'[role="tablist"]').each(function(r){n.get().map(function(n){return Kn(e,"height","0"),Kn(e,"flex-basis","0"),Math.min(n,nX(t,e,r))}).each(function(t){iX(e,t)})})})},aX=function(t){return Nl(t,'[role="tabpanel"]')},sX=function(t){return{smartTabHeight:function(){var e=Gf();return{extraEvents:[Ls(function(n){var r=n.element;aX(r).each(function(i){Kn(i,"visibility","hidden"),n.getSystem().getByDom(i).toOptional().each(function(n){var r=tX(t,i,n);eX(r).fold(e.clear,e.set)}),oX(r,i,e),rr(i,"visibility"),rX(t,n),ex.requestAnimationFrame(function(){oX(r,i,e)})})}),As(us(),function(t){var n=t.element;aX(n).each(function(t){oX(n,t,e)})}),As(jO,function(t,n){var r=t.element;aX(r).each(function(t){var n=mf(Pn(t));Kn(t,"visibility","hidden");var i=tr(t,"height").map(function(t){return parseInt(t,10)});rr(t,"height"),rr(t,"flex-basis");var o=t.dom.getBoundingClientRect().height;i.forall(function(t){return o>t})?(e.set(o),oX(r,t,e)):i.each(function(e){iX(t,e)}),rr(t,"visibility"),n.each(hf)})})],selectFirst:!1}}(),naiveTabHeight:function(){return{extraEvents:[],selectFirst:!0}}()}},uX=function(t,e){var n=ta({}),r=function(t){var e=Fg.getValue(t),r=LK(e).getOr({}),i=n.get(),o=xi(i,r);n.set(o)},i=function(t){var e=n.get();Fg.setValue(t,e)},o=ta(null),a=dt(t.tabs,function(t){return{value:t.name,dom:{tag:"div",classes:["tox-dialog__body-nav-item"],innerHtml:e.shared.providers.translate(t.title)},view:function(){return[CM.sketch(function(n){return{dom:{tag:"div",classes:["tox-form"]},components:dt(t.items,function(t){return UL(n,t,e)}),formBehaviours:nf([h_.config({mode:"acyclic",useTabstopAt:W(sI)}),C_("TabView.form.events",[Ls(i),js(r)]),lf.config({channels:fa([{key:"send-data-to-section",value:{onReceive:r}},{key:"send-data-to-view",value:{onReceive:i}}])})])}})]}}}),s=sX(a).smartTabHeight;return ZK.sketch({dom:{tag:"div",classes:["tox-dialog__body"]},onChangeTab:function(t,e,n){var r=Fg.getValue(e);_s(t,LO,{name:r,oldName:o.get()}),o.set(r)},tabs:a,components:[ZK.parts.tabbar({dom:{tag:"div",classes:["tox-dialog__body-nav"]},components:[qK.parts.tabs({})],markers:{tabClass:"tox-tab",selectedClass:"tox-dialog__body-nav-item--active"},tabbarBehaviours:nf([xO.config({})])}),ZK.parts.tabview({dom:{tag:"div",classes:["tox-dialog__body-content"]}})],selectFirst:s.selectFirst,tabSectionBehaviours:nf([C_("tabpanel",s.extraEvents),h_.config({mode:"acyclic"}),nv.config({find:function(t){return Nt(ZK.getViewItems(t))}}),Fg.config({store:{mode:"manual",getValue:function(t){return t.getSystem().broadcastOn(["send-data-to-section"],{}),n.get()},setValue:function(t,e){n.set(e),t.getSystem().broadcastOn(["send-data-to-view"],{})}}})])})},lX=Zs("update-dialog"),cX=Zs("update-title"),fX=Zs("update-body"),dX=Zs("update-footer"),hX=Zs("body-send-message"),pX=function(t,e,n,r){var i=function(t){switch(t.body.type){case"tabpanel":return[uX(t.body,n)];default:return[jK(t.body,n)]}},o=function(t,e){return nt.some({isTabPanel:function(){return"tabpanel"===e.body.type}})},a={"aria-live":"polite"};return{dom:{tag:"div",classes:["tox-dialog__content-js"],attributes:J(J({},e.map(function(t){return{id:t}}).getOr({})),r?a:{})},components:[],behaviours:nf([RM.childAt(0),FU.config({channel:fX,updateState:o,renderComponents:i,initialData:t})])}},gX=function(t,e,n,r){return pX(t,nt.some(e),n,r)},mX=function(t,e){var n=pX(t,nt.none(),e,!1);return rY.parts.body(n)},vX=function(t){var e={dom:{tag:"div",classes:["tox-dialog__content-js"]},components:[{dom:{tag:"div",classes:["tox-dialog__body-iframe"]},components:[iI({dom:{tag:"iframe",attributes:{src:t.url}},behaviours:nf([xO.config({}),I_.config({})])})]}],behaviours:nf([h_.config({mode:"acyclic",useTabstopAt:W(sI)})])};return rY.parts.body(e)},yX=PE.deviceType.isTouch(),bX=function(t,e){return{dom:{tag:"div",styles:{display:"none"},classes:["tox-dialog__header"]},components:[t,e]}},_X=function(t,e){return rY.parts.close(rx.sketch({dom:{tag:"button",classes:["tox-button","tox-button--icon","tox-button--naked"],attributes:{type:"button","aria-label":e.translate("Close")}},action:t,buttonBehaviours:nf([xO.config({})])}))},wX=function(){return rY.parts.title({dom:{tag:"div",classes:["tox-dialog__title"],innerHtml:"",styles:{display:"none"}}})},xX=function(t,e){return rY.parts.body({dom:{tag:"div",classes:["tox-dialog__body"]},components:[{dom:{tag:"div",classes:["tox-dialog__body-content"]},components:[{dom:ax("<p>"+Qx(e.translate(t))+"</p>")}]}]})},kX=function(t){return rY.parts.footer({dom:{tag:"div",classes:["tox-dialog__footer"]},components:t})},SX=function(t,e){return[dO.sketch({dom:{tag:"div",classes:["tox-dialog__footer-start"]},components:t}),dO.sketch({dom:{tag:"div",classes:["tox-dialog__footer-end"]},components:e})]},CX=function(t){var e;return rY.sketch({lazySink:t.lazySink,onEscape:function(e){return t.onEscape(e),nt.some(!0)},useTabstopAt:function(t){return!sI(t)},dom:{tag:"div",classes:["tox-dialog"].concat(t.extraClasses),styles:J({position:"relative"},t.extraStyles)},components:i([t.header,t.body],t.footer.toArray(),!0),parts:{blocker:{dom:ax('<div class="tox-dialog-wrap"></div>'),components:[{dom:{tag:"div",classes:yX?["tox-dialog-wrap__backdrop","tox-dialog-wrap__backdrop--opaque"]:["tox-dialog-wrap__backdrop"]}}]}},dragBlockClass:"tox-dialog-wrap",modalBehaviours:nf(i([I_.config({}),C_("dialog-events",t.dialogEvents.concat([$s(Ra(),function(t,e){h_.focusIn(t)})])),C_("scroll-lock",[Ls(function(){tl(jn(),"tox-dialog__disable-scroll")}),js(function(){nl(jn(),"tox-dialog__disable-scroll")})])],t.extraBehaviours,!0)),eventOrder:J((e={},e[Qa()]=["dialog-events"],e[ls()]=["scroll-lock","dialog-events","alloy.base.behaviour"],e[cs()]=["alloy.base.behaviour","dialog-events","scroll-lock"],e),t.eventOrder)})},EX=function(t){return rx.sketch({dom:{tag:"button",classes:["tox-button","tox-button--icon","tox-button--naked"],attributes:{type:"button","aria-label":t.translate("Close"),title:t.translate("Close")}},components:[lk("close",{tag:"div",classes:["tox-icon"]},t.icons)],action:function(t){bs(t,DO)}})},TX=function(t,e,n){var r=function(t){return[yl(n.translate(t.title))]};return{dom:{tag:"div",classes:["tox-dialog__title"],attributes:J({},e.map(function(t){return{id:t}}).getOr({}))},components:r(t),behaviours:nf([FU.config({channel:cX,renderComponents:r})])}},AX=function(){return{dom:ax('<div class="tox-dialog__draghandle"></div>')}},OX=function(t,e,n){return dO.sketch({dom:ax('<div class="tox-dialog__header"></div>'),components:[TX(t,nt.some(e),n),AX(),EX(n)],containerBehaviours:nf([$G.config({mode:"mouse",blockerClass:"blocker",getTarget:function(t){return Dl(t,'[role="dialog"]').getOrDie()},snaps:{getSnapPoints:function(){return[]},leftAttr:"data-drag-left",topAttr:"data-drag-top"}})])})},PX=function(t,e){var n=rY.parts.title(TX(t,nt.none(),e)),r=rY.parts.draghandle(AX()),i=rY.parts.close(EX(e)),o=[n].concat(t.draggable?[r]:[]).concat([i]);return dO.sketch({dom:ax('<div class="tox-dialog__header"></div>'),components:o})},NX=function(t,e){return PX({title:e.shared.providers.translate(t),draggable:e.dialog.isDraggableModal()},e.shared.providers)},DX=function(t,e,n){return{dom:{tag:"div",classes:["tox-dialog__busy-spinner"],attributes:{"aria-label":n.translate(t)},styles:{left:"0px",right:"0px",bottom:"0px",top:"0px",position:"absolute"}},behaviours:e,components:[{dom:ax('<div class="tox-spinner"><div></div><div></div><div></div></div>')}]}},MX=function(t,e,n){return{onClose:function(){return n.closeWindow()},onBlock:function(n){rY.setBusy(t(),function(t,r){return DX(n.message,r,e)})},onUnblock:function(){rY.setIdle(t())}}},IX=function(t,e,n,r){var o,a=function(t,e){return nt.some(e)};return xl(CX(J(J({},t),{lazySink:r.shared.getSink,extraBehaviours:i([FU.config({channel:lX,updateState:a,initialData:e}),JM.memory({})],t.extraBehaviours,!0),onEscape:function(t){bs(t,DO)},dialogEvents:n,eventOrder:(o={},o[Ja()]=[FU.name(),lf.name()],o[ls()]=["scroll-lock",FU.name(),"messages","dialog-events","alloy.base.behaviour"],o[cs()]=["alloy.base.behaviour","dialog-events","messages",FU.name(),"scroll-lock"],o)})))},RX=function(t){var e=function(t){var e=dt(t.items,function(t){var e=ta(!1);return J(J({},t),{storage:e})});return J(J({},t),{items:e})};return dt(t,function(t){return"menu"===t.type?e(t):t})},$X=function(t){return yt(t,function(t,e){if("menu"===e.type){return yt(e.items,function(t,e){return t[e.name]=e.storage,t},t)}return t},{})},LX=function(t,e){return[Ms(Ra(),aI),t(NO,function(t,n){e.onClose(),n.onClose()}),t(DO,function(t,e,n,r){e.onCancel(t),bs(r,NO)}),As($O,function(t,n){return e.onUnblock()}),As(RO,function(t,n){return e.onBlock(n.event)})]},jX=function(t,e){var n=function(e,n){return As(e,function(e,i){r(e,function(r,o){n(t(),r,i.event,e)})})},r=function(t,e){FU.getState(t).get().each(function(n){e(n,t)})};return i(i([],LX(n,e),!0),[n(MO,function(t,e,n){e.onAction(t,{name:n.name})})],!1)},FX=function(t,e,n){var r=function(e,n){return As(e,function(e,r){o(e,function(i,o){n(t(),i,r.event,e)})})},o=function(t,e){FU.getState(t).get().each(function(n){e(n.internalDialog,t)})};return i(i([],LX(r,e),!0),[r(IO,function(t,e){return e.onSubmit(t)}),r(PO,function(t,e,n){e.onChange(t,{name:n.name})}),r(MO,function(t,e,r,i){var o=function(){return h_.focusIn(i)},a=function(t){return qn(t,"disabled")||Hn(t,"aria-disabled").exists(function(t){return"true"===t})},s=Pn(i.element),u=mf(s);e.onAction(t,{name:r.name,value:r.value}),mf(s).fold(o,function(t){a(t)?o():u.exists(function(e){return hn(t,e)&&a(e)})?o():n().toOptional().filter(function(e){return!hn(e.element,t)}).each(o)})}),r(LO,function(t,e,n){e.onTabChange(t,{newTabName:n.name,oldTabName:n.oldName})}),js(function(e){var n=t();Fg.setValue(e,n.getData())})],!1)},BX={initUrlDialog:jX,initDialog:FX},VX=function(t,e){return HR(t,t.type,e)},zX=function(t,e,n){return _t(e,function(t){return t.name===n}).bind(function(e){return e.memento.getOpt(t)})},UX=function(t,e){var n=e.map(function(t){return t.footerButtons}).getOr([]),r=gt(n,function(t){return"start"===t.align}),i=function(t,e){return dO.sketch({dom:{tag:"div",classes:["tox-dialog__footer-"+t]},components:dt(e,function(t){return t.memento.asSpec()})})};return[i("start",r.pass),i("end",r.fail)]},HX=function(t,e){var n=function(t,n){var r=dt(n.buttons,function(t){var n=sx(VX(t,e));return{name:t.name,align:t.align,memento:n}}),i=function(t,e){return zX(t,r,e)};return nt.some({lookupByName:i,footerButtons:r})};return{dom:ax('<div class="tox-dialog__footer"></div>'),components:[],behaviours:nf([FU.config({channel:dX,initialData:t,updateState:n,renderComponents:UX})])}},qX=function(t,e){return HX(t,e)},WX=function(t,e){return rY.parts.footer(HX(t,e))},GX=function(t,e){if(t.getRoot().getSystem().isConnected()){var n=nv.getCurrent(t.getFormWrapper()).getOr(t.getFormWrapper());return CM.getField(n,e).fold(function(){var r=t.getFooter();return FU.getState(r).get().bind(function(t){return t.lookupByName(n,e)})},function(t){return nt.some(t)})}return nt.none()},YX=function(t,e){var n=t.getRoot();return FU.getState(n).get().map(function(t){return _o(bo("data",t.dataValidator,e))}).getOr(e)},KX=function(t,e,n){var r=function(e){var n=t.getRoot();n.getSystem().isConnected()&&e(n)},i=function(){var e=t.getRoot(),r=e.getSystem().isConnected()?t.getFormWrapper():e,i=Fg.getValue(r),o=jt(n,function(t){return t.get()});return J(J({},i),o)},o=function(e){r(function(r){var i=p.getData(),o=J(J({},i),e),a=YX(t,o),s=t.getFormWrapper();Fg.setValue(s,a),Lt(n,function(t,e){Gt(o,e)&&t.set(o[e])})})},a=function(e){GX(t,e).each(wv.disable)},s=function(e){GX(t,e).each(wv.enable)},u=function(e){GX(t,e).each(I_.focus)},l=function(t){if(!A(t))throw new Error("The dialogInstanceAPI.block function should be passed a blocking message of type string as an argument");r(function(e){_s(e,RO,{message:t})})},c=function(){r(function(t){bs(t,$O)})},f=function(e){r(function(n){var r=t.getBody();FU.getState(r).get().exists(function(t){return t.isTabPanel()})&&nv.getCurrent(r).each(function(t){ZK.showTab(t,e)})})},d=function(t){r(function(n){var r=e(t);n.getSystem().broadcastOn([lX],r),n.getSystem().broadcastOn([cX],r.internalDialog),n.getSystem().broadcastOn([fX],r.internalDialog),n.getSystem().broadcastOn([dX],r.internalDialog),p.setData(r.initialData)})},h=function(){r(function(t){bs(t,NO)})},p={getData:i,setData:o,disable:a,enable:s,focus:u,block:l,unblock:c,showTab:f,redial:d,close:h};return p},XX=function(t){switch(t){case"large":return["tox-dialog--width-lg"];case"medium":return["tox-dialog--width-md"];default:return[]}},JX=function(t,e,n){var r=NX(t.internalDialog.title,n),i=mX({body:t.internalDialog.body},n),o=RX(t.internalDialog.buttons),a=$X(o),s=WX({buttons:o},n),u=BX.initDialog(function(){return h},MX(function(){return f},n.shared.providers,e),n.shared.getSink),l=XX(t.internalDialog.size),c={header:r,body:i,footer:nt.some(s),extraClasses:l,extraBehaviours:[],extraStyles:{}},f=IX(c,t,u,n),d=function(){var t=function(){var t=rY.getBody(f);return nv.getCurrent(t).getOr(t)};return{getRoot:U(f),getBody:function(){return rY.getBody(f)},getFooter:function(){return rY.getFooter(f)},getFormWrapper:t}}(),h=KX(d,e.redial,a);return{dialog:f,instanceApi:h}},QX=function(t,e,n,r){var i,o,a=Zs("dialog-label"),s=Zs("dialog-content"),u=function(t,e){return nt.some(e)},l=sx(OX({title:t.internalDialog.title,draggable:!0},a,n.shared.providers)),c=sx(gX({body:t.internalDialog.body},s,n,r)),f=RX(t.internalDialog.buttons),d=$X(f),h=sx(qX({buttons:f},n)),p=BX.initDialog(function(){return m},{onBlock:function(t){EV.block(g,function(e,r){return DX(t.message,r,n.shared.providers)})},onUnblock:function(){EV.unblock(g)},onClose:function(){return e.closeWindow()}},n.shared.getSink),g=xl({dom:{tag:"div",classes:["tox-dialog","tox-dialog-inline"],attributes:(i={role:"dialog"},i["aria-labelledby"]=a,i["aria-describedby"]=s,i)},eventOrder:(o={},o[Ja()]=[FU.name(),lf.name()],o[Qa()]=["execute-on-form"],o[ls()]=["reflecting","execute-on-form"],o),behaviours:nf([h_.config({mode:"cyclic",onEscape:function(t){return bs(t,NO),nt.some(!0)},useTabstopAt:function(t){return!sI(t)&&("button"!==xe(t)||"disabled"!==Un(t,"disabled"))}}),FU.config({channel:lX,updateState:u,initialData:t}),I_.config({}),C_("execute-on-form",p.concat([$s(Ra(),function(t,e){h_.focusIn(t)})])),EV.config({getRoot:function(){return nt.some(g)}}),k_.config({}),JM.memory({})]),components:[l.asSpec(),c.asSpec(),h.asSpec()]}),m=KX({getRoot:U(g),getFooter:function(){return h.get(g)},getBody:function(){return c.get(g)},getFormWrapper:function(){var t=c.get(g);return nv.getCurrent(t).getOr(t)}},e.redial,d);return{dialog:g,instanceApi:m}},ZX=tinymce.util.Tools.resolve("tinymce.util.URI"),tJ=function(t){var e=function(e){t.getSystem().isConnected()&&e(t)};return{block:function(t){if(!A(t))throw new Error("The urlDialogInstanceAPI.block function should be passed a blocking message of type string as an argument");e(function(e){_s(e,RO,{message:t})})},unblock:function(){e(function(t){bs(t,$O)})},close:function(){e(function(t){bs(t,NO)})},sendMessage:function(t){e(function(e){e.getSystem().broadcastOn([hX],t)})}}},eJ=["insertContent","setContent","execCommand","close","block","unblock"],nJ=function(t){return O(t)&&-1!==eJ.indexOf(t.mceAction)},rJ=function(t){return!nJ(t)&&O(t)&&Gt(t,"mceAction")},iJ=function(t,e,n){switch(n.mceAction){case"insertContent":t.insertContent(n.content);break;case"setContent":t.setContent(n.content);break;case"execCommand":var r=!!D(n.ui)&&n.ui;t.execCommand(n.cmd,r,n.value);break;case"close":e.close();break;case"block":e.block(n.message);break;case"unblock":e.unblock()}},oJ=function(t,e,n,r){var i,o=NX(t.title,r),a=vX(t),s=t.buttons.bind(function(t){return 0===t.length?nt.none():nt.some(WX({buttons:t},r))}),u=BX.initUrlDialog(function(){return v},MX(function(){return m},r.shared.providers,e)),l=J(J({},t.height.fold(function(){return{}},function(t){return{height:t+"px","max-height":t+"px"}})),t.width.fold(function(){return{}},function(t){return{width:t+"px","max-width":t+"px"}})),c=t.width.isNone()&&t.height.isNone()?["tox-dialog--width-lg"]:[],f=new ZX(t.url,{base_uri:new ZX(window.location.href)}),d=f.protocol+"://"+f.host+(f.port?":"+f.port:""),h=qf(),p=[C_("messages",[Ls(function(){var e=Kf(_e.fromDom(window),"message",function(e){if(f.isSameOrigin(new ZX(e.raw.origin))){var r=e.raw.data;nJ(r)?iJ(n,v,r):rJ(r)&&t.onMessage(v,r)}});h.set(e)}),js(h.clear)]),lf.config({channels:(i={},i[hX]={onReceive:function(t,e){Nl(t.element,"iframe").each(function(t){t.dom.contentWindow.postMessage(e,d)})}},i)})],g={header:o,body:a,footer:s,extraClasses:c,extraBehaviours:p,extraStyles:l},m=IX(g,t,u,r),v=tJ(m);return{dialog:m,instanceApi:v}},aJ=function(t){var e=t.backstage.shared;return{open:function(n,r){var i=function(){rY.hide(u),r()},o=sx(HR({name:"close-alert",text:"OK",primary:!0,align:"end",disabled:!1,icon:nt.none()},"cancel",t.backstage)),a=wX(),s=_X(i,e.providers),u=xl(CX({lazySink:function(){return e.getSink()},header:bX(a,s),body:xX(n,e.providers),footer:nt.some(kX(SX([],[o.asSpec()]))),onEscape:i,extraClasses:["tox-alert-dialog"],extraBehaviours:[],extraStyles:{},dialogEvents:[As(DO,i)],eventOrder:{}}));rY.show(u);var l=o.get(u);I_.focus(l)}}},sJ=function(t){var e=t.backstage.shared;return{open:function(n,r){var i=function(t){rY.hide(l),r(t)},o=sx(HR({name:"yes",text:"Yes",primary:!0,align:"end",disabled:!1,icon:nt.none()},"submit",t.backstage)),a=HR({name:"no",text:"No",primary:!1,align:"end",disabled:!1,icon:nt.none()},"cancel",t.backstage),s=wX(),u=_X(function(){return i(!1)},e.providers),l=xl(CX({lazySink:function(){return e.getSink()},header:bX(s,u),body:xX(n,e.providers),footer:nt.some(kX(SX([],[a,o.asSpec()]))),onEscape:function(){return i(!1)},extraClasses:["tox-confirm-dialog"],extraBehaviours:[],extraStyles:{},dialogEvents:[As(DO,function(){return i(!1)}),As(IO,function(){return i(!0)})],eventOrder:{}}));rY.show(l);var c=o.get(l);I_.focus(c)}}},uJ=function(t,e){return _o(bo("data",e,t))},lJ=function(t){return VA(t,".tox-alert-dialog")||VA(t,".tox-confirm-dialog")},cJ=function(t,e,n){return e&&n?[]:[rB.config({contextual:{lazyContext:function(){return nt.some(Qr(_e.fromDom(t.getContentAreaContainer())))},fadeInClass:"tox-dialog-dock-fadein",fadeOutClass:"tox-dialog-dock-fadeout",transitionClass:"tox-dialog-dock-transition"},modes:["top"]})]},fJ=function(t){var e=t.backstage,n=t.editor,r=tE(n),o=aJ(t),a=sJ(t),s=function(t,n,r){return void 0!==n&&"toolbar"===n.inline?f(t,e.shared.anchors.inlineDialog(),r,n.ariaAttrs):void 0!==n&&"cursor"===n.inline?f(t,e.shared.anchors.cursor(),r,n.ariaAttrs):c(t,r)},u=function(t,e){return l(t,e)},l=function(t,r){var i=function(t){var i=oJ(t,{closeWindow:function(){rY.hide(i.dialog),r(i.instanceApi)}},n,e);return rY.show(i.dialog),i.instanceApi};return $K.openUrl(i,t)},c=function(t,n){var r=function(t,r,i){var o=r,a={dataValidator:i,initialData:o,internalDialog:t},s=JX(a,{redial:$K.redial,closeWindow:function(){rY.hide(s.dialog),n(s.instanceApi)}},e);return rY.show(s.dialog),s.instanceApi.setData(o),s.instanceApi};return $K.open(r,t)},f=function(t,o,a,s){var u=function(t,u,l){var c=uJ(u,l),f=Gf(),d=e.shared.header.isPositionedAtTop(),h={dataValidator:l,initialData:c,internalDialog:t},p=function(){return f.on(function(t){$w.reposition(t),rB.refresh(t)})},g=QX(h,{redial:$K.redial,closeWindow:function(){f.on($w.hide),n.off("ResizeEditor",p),f.clear(),a(g.instanceApi)}},e,s),m=xl($w.sketch(J(J({lazySink:e.shared.getSink,dom:{tag:"div",classes:[]},fireDismissalEventInstead:{}},d?{}:{fireRepositionEventInstead:{}}),{inlineBehaviours:nf(i([C_("window-manager-inline-events",[As(fs(),function(t,e){bs(g.dialog,DO)})])],cJ(n,r,d),!0)),isExtraPart:function(t,e){return lJ(e)}})));return f.set(m),$w.showWithin(m,kl(g.dialog),{anchor:o},nt.some(jn())),r&&d||(rB.refresh(m),n.on("ResizeEditor",p)),g.instanceApi.setData(c),h_.focusIn(g.dialog),g.instanceApi};return $K.open(u,t)},d=function(t,e){a.open(t,function(t){e(t)})};return{open:s,openUrl:u,alert:function(t,e){o.open(t,function(){e()})},close:function(t){t.close()},confirm:d}};!function(){X.add("silver",function(t){var e=XG(t),n=e.uiMothership,r=e.backstage,i=e.renderUI,o=e.getUi;BA.register(t,r.shared);var a=fJ({editor:t,backstage:r});return{renderUI:i,getWindowManagerImpl:U(a),getNotificationManagerImpl:function(){return w(t,{backstage:r},n)},ui:o()}})}()}()}).call(e,n(20),n(172).setImmediate)},function(t,e,n){(function(e,n){!function(){"use strict";function r(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=e.concat(n);return t.apply(null,i)}}function i(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n}function o(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))}function a(t,e,n,r,i){return t(n,r)?dt.some(n):Y(i)&&i(n)?dt.none():e(n,r,i)}function s(){function t(n,r){return e.push(n+" ")>no.cacheLength&&delete t[e.shift()],t[n+" "]=r}var e=[];return t}function u(t){return t[tu]=!0,t}function l(t,e){var n=e&&t,r=n&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||lu)-(~t.sourceIndex||lu);if(r)return r;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function c(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function f(t){return function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t}}function d(t){return u(function(e){return e=+e,u(function(n,r){for(var i,o=t([],n.length,e),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))})})}function h(t){return t&&typeof t.getElementsByTagName!==uu&&t}function p(){}function g(t){for(var e=0,n=t.length,r="";e<n;e++)r+=t[e].value;return r}function m(t,e,n){var r=e.dir,i=n&&"parentNode"===r,o=ru++;return e.first?function(e,n,o){for(;e=e[r];)if(1===e.nodeType||i)return t(e,n,o)}:function(e,n,a){var s,u,l=[nu,o];if(a){for(;e=e[r];)if((1===e.nodeType||i)&&t(e,n,a))return!0}else for(;e=e[r];)if(1===e.nodeType||i){if(u=e[tu]||(e[tu]={}),(s=u[r])&&s[0]===nu&&s[1]===o)return l[2]=s[2];if(u[r]=l,l[2]=t(e,n,a))return!0}}}function v(t){return t.length>1?function(e,n,r){for(var i=t.length;i--;)if(!t[i](e,n,r))return!1;return!0}:t[0]}function y(t,e,n){for(var r=0,i=e.length;r<i;r++)$u(t,e[r],n);return n}function b(t,e,n,r,i){for(var o,a=[],s=0,u=t.length,l=null!=e;s<u;s++)(o=t[s])&&(n&&!n(o,r,i)||(a.push(o),l&&e.push(s)));return a}function _(t,e,n,r,i,o){return r&&!r[tu]&&(r=_(r)),i&&!i[tu]&&(i=_(i,o)),u(function(o,a,s,u){var l,c,f,d=[],h=[],p=a.length,g=o||y(e||"*",s.nodeType?[s]:s,[]),m=!t||!o&&e?g:b(g,d,t,s,u),v=n?i||(o?t:p||r)?[]:a:m;if(n&&n(m,v,s,u),r)for(l=b(v,h),r(l,[],s,u),c=l.length;c--;)(f=l[c])&&(v[h[c]]=!(m[h[c]]=f));if(o){if(i||t){if(i){for(l=[],c=v.length;c--;)(f=v[c])&&l.push(m[c]=f);i(null,v=[],l,u)}for(c=v.length;c--;)(f=v[c])&&(l=i?mu.call(o,f):d[c])>-1&&(o[l]=!(a[l]=f))}}else v=b(v===a?v.splice(p,v.length):v),i?i(null,a,v,u):pu.apply(a,v)})}function w(t){for(var e,n,r,i=t.length,o=no.relative[t[0].type],a=o||no.relative[" "],s=o?1:0,u=m(function(t){return t===e},a,!0),l=m(function(t){return mu.call(e,t)>-1},a,!0),c=[function(t,n,r){var i=!o&&(r||n!==uo)||((e=n).nodeType?u(t,n,r):l(t,n,r));return e=null,i}];s<i;s++)if(n=no.relative[t[s].type])c=[m(v(c),n)];else{if(n=no.filter[t[s].type].apply(null,t[s].matches),n[tu]){for(r=++s;r<i&&!no.relative[t[r].type];r++);return _(s>1&&v(c),s>1&&g(t.slice(0,s-1).concat({value:" "===t[s-2].type?"*":""})).replace(wu,"$1"),n,s<r&&w(t.slice(s,r)),r<i&&w(t=t.slice(r)),r<i&&g(t))}c.push(n)}return v(c)}function x(t,e){var n=e.length>0,r=t.length>0,i=function(i,o,a,s,u){var l,c,f,d=0,h="0",p=i&&[],g=[],m=uo,v=i||r&&no.find.TAG("*",u),y=nu+=null==m?1:Math.random()||.1,_=v.length;for(u&&(uo=o!==ho&&o);h!==_&&null!=(l=v[h]);h++){if(r&&l){for(c=0;f=t[c++];)if(f(l,o,a)){s.push(l);break}u&&(nu=y)}n&&((l=!f&&l)&&d--,i&&p.push(l))}if(d+=h,n&&h!==d){for(c=0;f=e[c++];)f(p,g,o,a);if(i){if(d>0)for(;h--;)p[h]||g[h]||(g[h]=du.call(s));g=b(g)}pu.apply(s,g),u&&!i&&g.length>0&&d+e.length>1&&$u.uniqueSort(s)}return u&&(nu=y,uo=m),p};return n?u(i):i}function k(t,e){var n,r,i=function(e,n){return At(n,function(n){return t.is(n,e)})},o=function(e){return t.getParents(e,null,t.getRoot())};return{selectorChangedWithUnbind:function(t,a){return n||(n={},r={},e.on("NodeChange",function(t){var e=t.element,a=o(e),s={};_n.each(n,function(t,e){i(e,a).each(function(n){r[e]||(wt(t,function(t){t(!0,{node:n,selector:e,parents:a})}),r[e]=t),s[e]=t})}),_n.each(r,function(t,n){s[n]||(delete r[n],_n.each(t,function(t){t(!1,{node:e,selector:n,parents:a})}))})})),n[t]||(n[t]=[]),n[t].push(a),i(t,o(e.selection.getStart())).each(function(){r[t]=n[t]}),{unbind:function(){AE(n,t,a),AE(r,t,a)}}}}}function S(){var t=function(){throw new Error("Theme did not provide a WindowManager implementation.")};return{open:t,openUrl:t,alert:t,confirm:t,close:t,getParams:t,setParams:t}}var C=function(t){if(null===t)return"null";if(void 0===t)return"undefined";var e=typeof t;return"object"===e&&(Array.prototype.isPrototypeOf(t)||t.constructor&&"Array"===t.constructor.name)?"array":"object"===e&&(String.prototype.isPrototypeOf(t)||t.constructor&&"String"===t.constructor.name)?"string":e},E=function(t){return-1!==["undefined","boolean","number","string","function","xml","null"].indexOf(t)},T=function(t,e){return Array.prototype.slice.call(t).sort(e)},A=function(t,e){return O(function(n,r){return t.eq(e(n),e(r))})},O=function(t){return{eq:t}},P=O(function(t,e){return t===e}),N=P,D=function(t){return O(function(e,n){if(e.length!==n.length)return!1;for(var r=e.length,i=0;i<r;i++)if(!t.eq(e[i],n[i]))return!1;return!0})},M=function(t,e){return A(D(t),function(t){return T(t,e)})},I=function(t){return O(function(e,n){var r=Object.keys(e),i=Object.keys(n);if(!M(N).eq(r,i))return!1;for(var o=r.length,a=0;a<o;a++){var s=r[a];if(!t.eq(e[s],n[s]))return!1}return!0})},R=O(function(t,e){if(t===e)return!0;var n=C(t);return n===C(e)&&(E(n)?t===e:"array"===n?D(R).eq(t,e):"object"===n&&I(R).eq(t,e))}),$=function(t){var e=typeof t;return null===t?"null":"object"===e&&(Array.prototype.isPrototypeOf(t)||t.constructor&&"Array"===t.constructor.name)?"array":"object"===e&&(String.prototype.isPrototypeOf(t)||t.constructor&&"String"===t.constructor.name)?"string":e},L=function(t){return function(e){return $(e)===t}},j=function(t){return function(e){return typeof e===t}},F=function(t){return function(e){return t===e}},B=L("string"),V=L("object"),z=L("array"),U=F(null),H=j("boolean"),q=F(void 0),W=function(t){return null===t||void 0===t},G=function(t){return!W(t)},Y=j("function"),K=j("number"),X=function(){},J=function(t,e){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return t(e.apply(null,n))}},Q=function(t,e){return function(n){return t(e(n))}},Z=function(t){return function(){return t}},tt=function(t){return t},et=function(t,e){return t===e},nt=function(t){return function(e){return!t(e)}},rt=function(t){return function(){throw new Error(t)}},it=function(t){return t()},ot=function(t){t()},at=Z(!1),st=Z(!0),ut=function(){return lt},lt=function(){var t=function(t){return t()},e=tt;return{fold:function(t,e){return t()},isSome:at,isNone:st,getOr:e,getOrThunk:t,getOrDie:function(t){throw new Error(t||"error: getOrDie called on none.")},getOrNull:Z(null),getOrUndefined:Z(void 0),or:e,orThunk:t,map:ut,each:X,bind:ut,exists:at,forall:st,filter:function(){return ut()},toArray:function(){return[]},toString:Z("none()")}}(),ct=function(t){var e=Z(t),n=function(){return i},r=function(e){return e(t)},i={fold:function(e,n){return n(t)},isSome:st,isNone:at,getOr:e,getOrThunk:e,getOrDie:e,getOrNull:e,getOrUndefined:e,or:n,orThunk:n,map:function(e){return ct(e(t))},each:function(e){e(t)},bind:r,exists:r,forall:r,filter:function(e){return e(t)?i:lt},toArray:function(){return[t]},toString:function(){return"some("+t+")"}};return i},ft=function(t){return null===t||void 0===t?lt:ct(t)},dt={some:ct,none:ut,from:ft},ht=Array.prototype.slice,pt=Array.prototype.indexOf,gt=Array.prototype.push,mt=function(t,e){return pt.call(t,e)},vt=function(t,e){var n=mt(t,e);return-1===n?dt.none():dt.some(n)},yt=function(t,e){return mt(t,e)>-1},bt=function(t,e){for(var n=0,r=t.length;n<r;n++){if(e(t[n],n))return!0}return!1},_t=function(t,e){for(var n=t.length,r=new Array(n),i=0;i<n;i++){var o=t[i];r[i]=e(o,i)}return r},wt=function(t,e){for(var n=0,r=t.length;n<r;n++){e(t[n],n)}},xt=function(t,e){for(var n=t.length-1;n>=0;n--){e(t[n],n)}},kt=function(t,e){for(var n=[],r=[],i=0,o=t.length;i<o;i++){var a=t[i];(e(a,i)?n:r).push(a)}return{pass:n,fail:r}},St=function(t,e){for(var n=[],r=0,i=t.length;r<i;r++){var o=t[r];e(o,r)&&n.push(o)}return n},Ct=function(t,e,n){return xt(t,function(t,r){n=e(n,t,r)}),n},Et=function(t,e,n){return wt(t,function(t,r){n=e(n,t,r)}),n},Tt=function(t,e,n){for(var r=0,i=t.length;r<i;r++){var o=t[r];if(e(o,r))return dt.some(o);if(n(o,r))break}return dt.none()},At=function(t,e){return Tt(t,e,at)},Ot=function(t,e){for(var n=0,r=t.length;n<r;n++){if(e(t[n],n))return dt.some(n)}return dt.none()},Pt=function(t){for(var e=[],n=0,r=t.length;n<r;++n){if(!z(t[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+t);gt.apply(e,t[n])}return e},Nt=function(t,e){return Pt(_t(t,e))},Dt=function(t,e){for(var n=0,r=t.length;n<r;++n){if(!0!==e(t[n],n))return!1}return!0},Mt=function(t){var e=ht.call(t,0);return e.reverse(),e},It=function(t,e){return St(t,function(t){return!yt(e,t)})},Rt=function(t,e){for(var n={},r=0,i=t.length;r<i;r++){var o=t[r];n[String(o)]=e(o,r)}return n},$t=function(t,e){var n=ht.call(t,0);return n.sort(e),n},Lt=function(t,e){return e>=0&&e<t.length?dt.some(t[e]):dt.none()},jt=function(t){return Lt(t,0)},Ft=function(t){return Lt(t,t.length-1)},Bt=Y(Array.from)?Array.from:function(t){return ht.call(t)},Vt=function(t,e){for(var n=0;n<t.length;n++){var r=e(t[n],n);if(r.isSome())return r}return dt.none()},zt=Object.keys,Ut=Object.hasOwnProperty,Ht=function(t,e){for(var n=zt(t),r=0,i=n.length;r<i;r++){var o=n[r];e(t[o],o)}},qt=function(t,e){return Wt(t,function(t,n){return{k:n,v:e(t,n)}})},Wt=function(t,e){var n={};return Ht(t,function(t,r){var i=e(t,r);n[i.k]=i.v}),n},Gt=function(t){return function(e,n){t[n]=e}},Yt=function(t,e,n,r){var i={};return Ht(t,function(t,i){(e(t,i)?n:r)(t,i)}),i},Kt=function(t,e){var n={},r={};return Yt(t,e,Gt(n),Gt(r)),{t:n,f:r}},Xt=function(t,e){var n={};return Yt(t,e,Gt(n),X),n},Jt=function(t,e){var n=[];return Ht(t,function(t,r){n.push(e(t,r))}),n},Qt=function(t){return Jt(t,tt)},Zt=function(t,e){return te(t,e)?dt.from(t[e]):dt.none()},te=function(t,e){return Ut.call(t,e)},ee=function(t,e){return te(t,e)&&void 0!==t[e]&&null!==t[e]},ne=function(t,e,n){return void 0===n&&(n=R),I(n).eq(t,e)},re=Array.isArray,ie=function(t){if(re(t))return t;for(var e=[],n=0,r=t.length;n<r;n++)e[n]=t[n];return e},oe=function(t,e,n){var r,i;if(!t)return!1;if(n=n||t,void 0!==t.length){for(r=0,i=t.length;r<i;r++)if(!1===e.call(n,t[r],r,t))return!1}else for(r in t)if(te(t,r)&&!1===e.call(n,t[r],r,t))return!1;return!0},ae=function(t,e){var n=[];return oe(t,function(r,i){n.push(e(r,i,t))}),n},se=function(t,e){var n=[];return oe(t,function(r,i){e&&!e(r,i,t)||n.push(r)}),n},ue=function(t,e){if(t)for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n;return-1},le=function(t,e,n,r){for(var i=q(n)?t[0]:n,o=0;o<t.length;o++)i=e.call(r,i,t[o],o);return i},ce=function(t,e,n){var r,i;for(r=0,i=t.length;r<i;r++)if(e.call(n,t[r],r,t))return r;return-1},fe=function(t){return t[t.length-1]},de=function(){return de=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},de.apply(this,arguments)},he=function(t){var e,n=!1;return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return n||(n=!0,e=t.apply(null,r)),e}},pe=function(t,e,n,r){var i=t.isiOS()&&!0===/ipad/i.test(n),o=t.isiOS()&&!i,a=t.isiOS()||t.isAndroid(),s=a||r("(pointer:coarse)"),u=i||!o&&a&&r("(min-device-width:768px)"),l=o||a&&!u,c=e.isSafari()&&t.isiOS()&&!1===/safari/i.test(n),f=!l&&!u&&!c;return{isiPad:Z(i),isiPhone:Z(o),isTablet:Z(u),isPhone:Z(l),isTouch:Z(s),isAndroid:t.isAndroid,isiOS:t.isiOS,isWebView:Z(c),isDesktop:Z(f)}},ge=function(t,e){for(var n=0;n<t.length;n++){var r=t[n];if(r.test(e))return r}},me=function(t,e){var n=ge(t,e);if(!n)return{major:0,minor:0};var r=function(t){return Number(e.replace(n,"$"+t))};return be(r(1),r(2))},ve=function(t,e){var n=String(e).toLowerCase();return 0===t.length?ye():me(t,n)},ye=function(){return be(0,0)},be=function(t,e){return{major:t,minor:e}},_e={nu:be,detect:ve,unknown:ye},we=function(t,e){return Vt(e.brands,function(e){var n=e.brand.toLowerCase();return At(t,function(t){var e;return n===(null===(e=t.brand)||void 0===e?void 0:e.toLowerCase())}).map(function(t){return{current:t.name,version:_e.nu(parseInt(e.version,10),0)}})})},xe=function(t,e){var n=String(e).toLowerCase();return At(t,function(t){return t.search(n)})},ke=function(t,e){return xe(t,e).map(function(t){var n=_e.detect(t.versionRegexes,e);return{current:t.name,version:n}})},Se=function(t,e){return xe(t,e).map(function(t){var n=_e.detect(t.versionRegexes,e);return{current:t.name,version:n}})},Ce=function(t,e){return t.substring(e)},Ee=function(t,e,n){return""===e||t.length>=e.length&&t.substr(n,n+e.length)===e},Te=function(t,e){return Oe(t,e)?Ce(t,e.length):t},Ae=function(t,e){return-1!==t.indexOf(e)},Oe=function(t,e){return Ee(t,e,0)},Pe=function(t){return function(e){return e.replace(t,"")}},Ne=Pe(/^\s+|\s+$/g),De=Pe(/^\s+/g),Me=Pe(/\s+$/g),Ie=function(t){return t.length>0},Re=function(t){return!Ie(t)},$e=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,Le=function(t){return function(e){return Ae(e,t)}},je=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(t){return Ae(t,"edge/")&&Ae(t,"chrome")&&Ae(t,"safari")&&Ae(t,"applewebkit")}},{name:"Chrome",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,$e],search:function(t){return Ae(t,"chrome")&&!Ae(t,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(t){return Ae(t,"msie")||Ae(t,"trident")}},{name:"Opera",versionRegexes:[$e,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:Le("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:Le("firefox")},{name:"Safari",versionRegexes:[$e,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(t){return(Ae(t,"safari")||Ae(t,"mobile/"))&&Ae(t,"applewebkit")}}],Fe=[{name:"Windows",search:Le("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(t){return Ae(t,"iphone")||Ae(t,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:Le("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:Le("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:Le("linux"),versionRegexes:[]},{name:"Solaris",search:Le("sunos"),versionRegexes:[]},{name:"FreeBSD",search:Le("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:Le("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],Be={browsers:Z(je),oses:Z(Fe)},Ve=function(){return ze({current:void 0,version:_e.unknown()})},ze=function(t){var e=t.current,n=t.version,r=function(t){return function(){return e===t}};return{current:e,version:n,isEdge:r("Edge"),isChrome:r("Chrome"),isIE:r("IE"),isOpera:r("Opera"),isFirefox:r("Firefox"),isSafari:r("Safari")}},Ue={unknown:Ve,nu:ze,edge:Z("Edge"),chrome:Z("Chrome"),ie:Z("IE"),opera:Z("Opera"),firefox:Z("Firefox"),safari:Z("Safari")},He=function(){return qe({current:void 0,version:_e.unknown()})},qe=function(t){var e=t.current,n=t.version,r=function(t){return function(){return e===t}};return{current:e,version:n,isWindows:r("Windows"),isiOS:r("iOS"),isAndroid:r("Android"),isOSX:r("OSX"),isLinux:r("Linux"),isSolaris:r("Solaris"),isFreeBSD:r("FreeBSD"),isChromeOS:r("ChromeOS")}},We={unknown:He,nu:qe,windows:Z("Windows"),ios:Z("iOS"),android:Z("Android"),linux:Z("Linux"),osx:Z("OSX"),solaris:Z("Solaris"),freebsd:Z("FreeBSD"),chromeos:Z("ChromeOS")},Ge=function(t,e,n){var r=Be.browsers(),i=Be.oses(),o=e.bind(function(t){return we(r,t)}).orThunk(function(){return ke(r,t)}).fold(Ue.unknown,Ue.nu),a=Se(i,t).fold(We.unknown,We.nu);return{browser:o,os:a,deviceType:pe(a,o,t,n)}},Ye={detect:Ge},Ke=function(t){return window.matchMedia(t).matches},Xe=he(function(){return Ye.detect(navigator.userAgent,dt.from(navigator.userAgentData),Ke)}),Je=function(){return Xe()},Qe=navigator.userAgent,Ze=Je(),tn=Ze.browser,en=Ze.os,nn=Ze.deviceType,rn=/WebKit/.test(Qe)&&!tn.isEdge(),on="FormData"in window&&"FileReader"in window&&"URL"in window&&!!URL.createObjectURL,an=-1!==Qe.indexOf("Windows Phone"),sn={opera:tn.isOpera(),webkit:rn,ie:!(!tn.isIE()&&!tn.isEdge())&&tn.version.major,gecko:tn.isFirefox(),mac:en.isOSX()||en.isiOS(),iOS:nn.isiPad()||nn.isiPhone(),android:en.isAndroid(),contentEditable:!0,transparentSrc:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",caretAfter:!0,range:window.getSelection&&"Range"in window,documentMode:tn.isIE()?document.documentMode||7:10,fileApi:on,ceFalse:!0,cacheSuffix:null,container:null,experimentalShadowDom:!1,canHaveCSP:!tn.isIE(),desktop:nn.isDesktop(),windowsPhone:an,browser:{current:tn.current,version:tn.version,isChrome:tn.isChrome,isEdge:tn.isEdge,isFirefox:tn.isFirefox,isIE:tn.isIE,isOpera:tn.isOpera,isSafari:tn.isSafari},os:{current:en.current,version:en.version,isAndroid:en.isAndroid,isChromeOS:en.isChromeOS,isFreeBSD:en.isFreeBSD,isiOS:en.isiOS,isLinux:en.isLinux,isOSX:en.isOSX,isSolaris:en.isSolaris,isWindows:en.isWindows},deviceType:{isDesktop:nn.isDesktop,isiPad:nn.isiPad,isiPhone:nn.isiPhone,isPhone:nn.isPhone,isTablet:nn.isTablet,isTouch:nn.isTouch,isWebView:nn.isWebView}},un=/^\s*|\s*$/g,ln=function(t){return null===t||void 0===t?"":(""+t).replace(un,"")},cn=function(t,e){return e?!("array"!==e||!re(t))||typeof t===e:void 0!==t},fn=function(t,e,n){var r;for(t=t||[],e=e||",","string"==typeof t&&(t=t.split(e)),n=n||{},r=t.length;r--;)n[t[r]]={};return n},dn=te,hn=function(t,e,n){var r,i,o,a=this,s=0;t=/^((static) )?([\w.]+)(:([\w.]+))?/.exec(t);var u=t[3].match(/(^|\.)(\w+)$/i)[2],l=a.createNS(t[3].replace(/\.\w+$/,""),n);if(!l[u]){if("static"===t[2])return l[u]=e,void(this.onCreate&&this.onCreate(t[2],t[3],l[u]));e[u]||(e[u]=function(){},s=1),l[u]=e[u],a.extend(l[u].prototype,e),t[5]&&(r=a.resolve(t[5]).prototype,i=t[5].match(/\.(\w+)$/i)[1],o=l[u],l[u]=s?function(){return r[i].apply(this,arguments)}:function(){return this.parent=r[i],o.apply(this,arguments)},l[u].prototype[u]=l[u],a.each(r,function(t,e){l[u].prototype[e]=r[e]}),a.each(e,function(t,e){r[e]?l[u].prototype[e]=function(){return this.parent=r[e],t.apply(this,arguments)}:e!==u&&(l[u].prototype[e]=t)})),a.each(e.static,function(t,e){l[u][e]=t})}},pn=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=0;r<e.length;r++){var i=e[r];for(var o in i)if(te(i,o)){var a=i[o];void 0!==a&&(t[o]=a)}}return t},gn=function(t,e,n,r){r=r||this,t&&(n&&(t=t[n]),oe(t,function(t,i){if(!1===e.call(r,t,i,n))return!1;gn(t,e,n,r)}))},mn=function(t,e){var n,r;for(e=e||window,t=t.split("."),n=0;n<t.length;n++)r=t[n],e[r]||(e[r]={}),e=e[r];return e},vn=function(t,e){var n,r;for(e=e||window,t=t.split("."),n=0,r=t.length;n<r&&(e=e[t[n]]);n++);return e},yn=function(t,e){return!t||cn(t,"array")?t:ae(t.split(e||","),ln)},bn=function(t){var e=sn.cacheSuffix;return e&&(t+=(-1===t.indexOf("?")?"?":"&")+e),t},_n={trim:ln,isArray:re,is:cn,toArray:ie,makeMap:fn,each:oe,map:ae,grep:se,inArray:ue,hasOwn:dn,extend:pn,create:hn,walk:gn,createNS:mn,resolve:vn,explode:yn,_addCacheSuffix:bn},wn=function(t,e){var n=e||document,r=n.createElement("div");if(r.innerHTML=t,!r.hasChildNodes()||r.childNodes.length>1)throw console.error("HTML does not have a single root node",t),new Error("HTML must have a single root node");return Sn(r.childNodes[0])},xn=function(t,e){var n=e||document,r=n.createElement(t);return Sn(r)},kn=function(t,e){var n=e||document,r=n.createTextNode(t);return Sn(r)},Sn=function(t){if(null===t||void 0===t)throw new Error("Node cannot be null or undefined");return{dom:t}},Cn=function(t,e,n){return dt.from(t.dom.elementFromPoint(e,n)).map(Sn)},En={fromHtml:wn,fromTag:xn,fromText:kn,fromDom:Sn,fromPoint:Cn},Tn=function(t,e){var n=[],r=function(t){return n.push(t),e(t)},i=e(t);do{i=i.bind(r)}while(i.isSome());return n},An=function(t,e,n){return 0!=(t.compareDocumentPosition(e)&n)},On=function(t,e){return An(t,e,Node.DOCUMENT_POSITION_CONTAINED_BY)},Pn=function(t,e){var n=t.dom;if(1!==n.nodeType)return!1;var r=n;if(void 0!==r.matches)return r.matches(e);if(void 0!==r.msMatchesSelector)return r.msMatchesSelector(e);if(void 0!==r.webkitMatchesSelector)return r.webkitMatchesSelector(e);if(void 0!==r.mozMatchesSelector)return r.mozMatchesSelector(e);throw new Error("Browser lacks native selectors")},Nn=function(t){return 1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType||0===t.childElementCount},Dn=function(t,e){var n=void 0===e?document:e.dom;return Nn(n)?[]:_t(n.querySelectorAll(t),En.fromDom)},Mn=function(t,e){var n=void 0===e?document:e.dom;return Nn(n)?dt.none():dt.from(n.querySelector(t)).map(En.fromDom)},In=function(t,e){return t.dom===e.dom},Rn=function(t,e){var n=t.dom,r=e.dom;return n!==r&&n.contains(r)},$n=function(t,e){return On(t.dom,e.dom)},Ln=function(t,e){return Je().browser.isIE()?$n(t,e):Rn(t,e)};"undefined"!=typeof window?window:Function("return this;")();var jn=function(t){return t.dom.nodeName.toLowerCase()},Fn=function(t){return t.dom.nodeType},Bn=function(t){return function(e){return Fn(e)===t}},Vn=function(t){return 8===Fn(t)||"#comment"===jn(t)},zn=Bn(1),Un=Bn(3),Hn=Bn(9),qn=Bn(11),Wn=function(t){return function(e){return zn(e)&&jn(e)===t}},Gn=function(t){return En.fromDom(t.dom.ownerDocument)},Yn=function(t){return Hn(t)?t:Gn(t)},Kn=function(t){return En.fromDom(Yn(t).dom.documentElement)},Xn=function(t){return En.fromDom(Yn(t).dom.defaultView)},Jn=function(t){return dt.from(t.dom.parentNode).map(En.fromDom)},Qn=function(t,e){for(var n=Y(e)?e:at,r=t.dom,i=[];null!==r.parentNode&&void 0!==r.parentNode;){var o=r.parentNode,a=En.fromDom(o);if(i.push(a),!0===n(a))break;r=o}return i},Zn=function(t){var e=function(e){return St(e,function(e){return!In(t,e)})};return Jn(t).map(ir).map(e).getOr([])},tr=function(t){return dt.from(t.dom.previousSibling).map(En.fromDom)},er=function(t){return dt.from(t.dom.nextSibling).map(En.fromDom)},nr=function(t){return Mt(Tn(t,tr))},rr=function(t){return Tn(t,er)},ir=function(t){return _t(t.dom.childNodes,En.fromDom)},or=function(t,e){var n=t.dom.childNodes;return dt.from(n[e]).map(En.fromDom)},ar=function(t){return or(t,0)},sr=function(t){return or(t,t.dom.childNodes.length-1)},ur=function(t){return t.dom.childNodes.length},lr=function(t){var e=t.dom.head;if(null===e||void 0===e)throw new Error("Head is not available yet");return En.fromDom(e)},cr=function(t){return qn(t)&&G(t.dom.host)},fr=Y(Element.prototype.attachShadow)&&Y(Node.prototype.getRootNode),dr=Z(fr),hr=fr?function(t){return En.fromDom(t.dom.getRootNode())}:Yn,pr=function(t){return cr(t)?t:lr(Yn(t))},gr=function(t){var e=hr(t);return cr(e)?dt.some(e):dt.none()},mr=function(t){return En.fromDom(t.dom.host)},vr=function(t){if(dr()&&G(t.target)){var e=En.fromDom(t.target);if(zn(e)&&yr(e)&&t.composed&&t.composedPath){var n=t.composedPath();if(n)return jt(n)}}return dt.from(t.target)},yr=function(t){return G(t.dom.shadowRoot)},br=function(t,e){Jn(t).each(function(n){n.dom.insertBefore(e.dom,t.dom)})},_r=function(t,e){er(t).fold(function(){Jn(t).each(function(t){xr(t,e)})},function(t){br(t,e)})},wr=function(t,e){ar(t).fold(function(){xr(t,e)},function(n){t.dom.insertBefore(e.dom,n.dom)})},xr=function(t,e){t.dom.appendChild(e.dom)},kr=function(t,e){br(t,e),xr(e,t)},Sr=function(t,e){wt(e,function(e){br(t,e)})},Cr=function(t,e){wt(e,function(e){xr(t,e)})},Er=function(t){t.dom.textContent="",wt(ir(t),function(t){Tr(t)})},Tr=function(t){var e=t.dom;null!==e.parentNode&&e.parentNode.removeChild(e)},Ar=function(t){var e=ir(t);e.length>0&&Sr(t,e),Tr(t)},Or=function(t){var e=Un(t)?t.dom.parentNode:t.dom;if(void 0===e||null===e||null===e.ownerDocument)return!1;var n=e.ownerDocument;return gr(En.fromDom(e)).fold(function(){return n.body.contains(e)},Q(Or,mr))},Pr=function(t,e){return{left:t,top:e,translate:function(n,r){return Pr(t+n,e+r)}}},Nr=Pr,Dr=function(t){var e=t.getBoundingClientRect();return Nr(e.left,e.top)},Mr=function(t,e){return void 0!==t?t:void 0!==e?e:0},Ir=function(t){var e=t.dom.ownerDocument,n=e.body,r=e.defaultView,i=e.documentElement;if(n===t.dom)return Nr(n.offsetLeft,n.offsetTop);var o=Mr(null===r||void 0===r?void 0:r.pageYOffset,i.scrollTop),a=Mr(null===r||void 0===r?void 0:r.pageXOffset,i.scrollLeft),s=Mr(i.clientTop,n.clientTop),u=Mr(i.clientLeft,n.clientLeft);return Rr(t).translate(a-u,o-s)},Rr=function(t){var e=t.dom,n=e.ownerDocument,r=n.body;return r===e?Nr(r.offsetLeft,r.offsetTop):Or(t)?Dr(e):Nr(0,0)},$r=function(t){var e=void 0!==t?t.dom:document,n=e.body.scrollLeft||e.documentElement.scrollLeft,r=e.body.scrollTop||e.documentElement.scrollTop;return Nr(n,r)},Lr=function(t,e,n){var r=void 0!==n?n.dom:document,i=r.defaultView;i&&i.scrollTo(t,e)},jr=function(t,e){Je().browser.isSafari()&&Y(t.dom.scrollIntoViewIfNeeded)?t.dom.scrollIntoViewIfNeeded(!1):t.dom.scrollIntoView(e)},Fr=function(t){var e=void 0===t?window:t;return Je().browser.isFirefox()?dt.none():dt.from(e.visualViewport)},Br=function(t,e,n,r){return{x:t,y:e,width:n,height:r,right:t+n,bottom:e+r}},Vr=function(t){var e=void 0===t?window:t,n=e.document,r=$r(En.fromDom(n));return Fr(e).fold(function(){var t=e.document.documentElement,n=t.clientWidth,i=t.clientHeight;return Br(r.left,r.top,n,i)},function(t){return Br(Math.max(t.pageLeft,r.left),Math.max(t.pageTop,r.top),t.width,t.height)})},zr=function(t){return function(e){return!!e&&e.nodeType===t}},Ur=function(t){return!!t&&!Object.getPrototypeOf(t)},Hr=zr(1),qr=function(t){var e=t.map(function(t){return t.toLowerCase()});return function(t){if(t&&t.nodeName){var n=t.nodeName.toLowerCase();return yt(e,n)}return!1}},Wr=function(t,e){var n=e.toLowerCase().split(" ");return function(e){if(Hr(e))for(var r=0;r<n.length;r++){var i=e.ownerDocument.defaultView.getComputedStyle(e,null),o=i?i.getPropertyValue(t):null;if(o===n[r])return!0}return!1}},Gr=function(t){return function(e){return Hr(e)&&e.hasAttribute(t)}},Yr=function(t){return Hr(t)&&t.hasAttribute("data-mce-bogus")},Kr=function(t){return Hr(t)&&"all"===t.getAttribute("data-mce-bogus")},Xr=function(t){return Hr(t)&&"TABLE"===t.tagName},Jr=function(t){return function(e){if(Hr(e)){if(e.contentEditable===t)return!0;if(e.getAttribute("data-mce-contenteditable")===t)return!0}return!1}},Qr=qr(["textarea","input"]),Zr=zr(3),ti=zr(8),ei=zr(9),ni=zr(11),ri=qr(["br"]),ii=qr(["img"]),oi=Jr("true"),ai=Jr("false"),si=qr(["td","th"]),ui=qr(["video","audio","object","embed"]),li=function(t,e,n){return void 0===n&&(n=et),t.exists(function(t){return n(t,e)})},ci=function(t){for(var e=[],n=function(t){e.push(t)},r=0;r<t.length;r++)t[r].each(n);return e},fi=function(t,e,n){return t.isSome()&&e.isSome()?dt.some(n(t.getOrDie(),e.getOrDie())):dt.none()},di=function(t,e,n,r){return t.isSome()&&e.isSome()&&n.isSome()?dt.some(r(t.getOrDie(),e.getOrDie(),n.getOrDie())):dt.none()},hi=function(t,e){return t?dt.some(e):dt.none()},pi=function(t){return void 0!==t.style&&Y(t.style.getPropertyValue)},gi=function(t,e,n){if(!(B(n)||H(n)||K(n)))throw console.error("Invalid call to Attribute.set. Key ",e,":: Value ",n,":: Element ",t),new Error("Attribute value was not simple");t.setAttribute(e,n+"")},mi=function(t,e,n){gi(t.dom,e,n)},vi=function(t,e){var n=t.dom;Ht(e,function(t,e){gi(n,e,t)})},yi=function(t,e){var n=t.dom.getAttribute(e);return null===n?void 0:n},bi=function(t,e){return dt.from(yi(t,e))},_i=function(t,e){var n=t.dom;return!(!n||!n.hasAttribute)&&n.hasAttribute(e)},wi=function(t,e){t.dom.removeAttribute(e)},xi=function(t){return Et(t.dom.attributes,function(t,e){return t[e.name]=e.value,t},{})},ki=function(t,e,n){if(!B(n))throw console.error("Invalid call to CSS.set. Property ",e,":: Value ",n,":: Element ",t),new Error("CSS value must be a string: "+n);pi(t)&&t.style.setProperty(e,n)},Si=function(t,e){var n=t.dom;Ht(e,function(t,e){ki(n,e,t)})},Ci=function(t,e){var n=t.dom,r=window.getComputedStyle(n),i=r.getPropertyValue(e);return""!==i||Or(t)?i:Ei(n,e)},Ei=function(t,e){return pi(t)?t.style.getPropertyValue(e):""},Ti=function(t,e){var n=t.dom,r=Ei(n,e);return dt.from(r).filter(function(t){return t.length>0})},Ai=function(t){var e={},n=t.dom;if(pi(n))for(var r=0;r<n.style.length;r++){var i=n.style.item(r);e[i]=n.style[i]}return e},Oi=function(t){return t.dom.offsetWidth},Pi=Je().browser,Ni=function(t){return At(t,zn)},Di=function(t){return Pi.isFirefox()&&"table"===jn(t)?Ni(ir(t)).filter(function(t){return"caption"===jn(t)}).bind(function(t){return Ni(rr(t)).map(function(e){var n=e.dom.offsetTop,r=t.dom.offsetTop,i=t.dom.offsetHeight;return n<=r?-i:0})}).getOr(0):0},Mi=function(t,e){return t.children&&yt(t.children,e)},Ii=function(t,e,n){var r=0,i=0,o=t.ownerDocument;if(n=n||t,e){if(n===t&&e.getBoundingClientRect&&"static"===Ci(En.fromDom(t),"position")){var a=e.getBoundingClientRect();return r=a.left+(o.documentElement.scrollLeft||t.scrollLeft)-o.documentElement.clientLeft,i=a.top+(o.documentElement.scrollTop||t.scrollTop)-o.documentElement.clientTop,{x:r,y:i}}for(var s=e;s&&s!==n&&s.nodeType&&!Mi(s,n);){var u=s;r+=u.offsetLeft||0,i+=u.offsetTop||0,s=u.offsetParent}for(s=e.parentNode;s&&s!==n&&s.nodeType&&!Mi(s,n);)r-=s.scrollLeft||0,i-=s.scrollTop||0,s=s.parentNode;i+=Di(En.fromDom(e))}return{x:r,y:i}},Ri={},$i={exports:Ri};!function(t,r,i,o){!function(e,n){"object"==typeof r&&void 0!==i?i.exports=n():"function"==typeof t&&t.amd?t(n):(e="undefined"!=typeof globalThis?globalThis:e||self,e.EphoxContactWrapper=n())}(this,function(){var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},r={exports:{}};!function(e){!function(t){function r(){}function i(t,e){return function(){t.apply(e,arguments)}}function o(t){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof t)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],f(t,this)}function a(t,e){for(;3===t._state;)t=t._value;if(0===t._state)return void t._deferreds.push(e);t._handled=!0,o._immediateFn(function(){var n=1===t._state?e.onFulfilled:e.onRejected;if(null===n)return void(1===t._state?s:u)(e.promise,t._value);var r;try{r=n(t._value)}catch(t){return void u(e.promise,t)}s(e.promise,r)})}function s(t,e){try{if(e===t)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if(e instanceof o)return t._state=3,t._value=e,void l(t);if("function"==typeof n)return void f(i(n,e),t)}t._state=1,t._value=e,l(t)}catch(e){u(t,e)}}function u(t,e){t._state=2,t._value=e,l(t)}function l(t){2===t._state&&0===t._deferreds.length&&o._immediateFn(function(){t._handled||o._unhandledRejectionFn(t._value)});for(var e=0,n=t._deferreds.length;e<n;e++)a(t,t._deferreds[e]);t._deferreds=null}function c(t,e,n){this.onFulfilled="function"==typeof t?t:null,this.onRejected="function"==typeof e?e:null,this.promise=n}function f(t,e){var n=!1;try{t(function(t){n||(n=!0,s(e,t))},function(t){n||(n=!0,u(e,t))})}catch(t){if(n)return;n=!0,u(e,t)}}var d=setTimeout;o.prototype.catch=function(t){return this.then(null,t)},o.prototype.then=function(t,e){var n=new this.constructor(r);return a(this,new c(t,e,n)),n},o.all=function(t){var e=Array.prototype.slice.call(t);return new o(function(t,n){function r(o,a){try{if(a&&("object"==typeof a||"function"==typeof a)){var s=a.then;if("function"==typeof s)return void s.call(a,function(t){r(o,t)},n)}e[o]=a,0==--i&&t(e)}catch(t){n(t)}}if(0===e.length)return t([]);for(var i=e.length,o=0;o<e.length;o++)r(o,e[o])})},o.resolve=function(t){return t&&"object"==typeof t&&t.constructor===o?t:new o(function(e){e(t)})},o.reject=function(t){return new o(function(e,n){n(t)})},o.race=function(t){return new o(function(e,n){for(var r=0,i=t.length;r<i;r++)t[r].then(e,n)})},o._immediateFn="function"==typeof n?function(t){n(t)}:function(t){d(t,0)},o._unhandledRejectionFn=function(t){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",t)},o._setImmediateFn=function(t){o._immediateFn=t},o._setUnhandledRejectionFn=function(t){o._unhandledRejectionFn=t},e.exports?e.exports=o:t.Promise||(t.Promise=o)}(t)}(r);var i=r.exports;return{boltExport:function(){return"undefined"!=typeof window?window:Function("return this;")()}().Promise||i}})}(void 0,Ri,$i);var Li=$i.exports.boltExport,ji=function(t){var e=dt.none(),n=[],r=function(t){return ji(function(e){i(function(n){e(t(n))})})},i=function(t){a()?u(t):n.push(t)},o=function(t){a()||(e=dt.some(t),s(n),n=[])},a=function(){return e.isSome()},s=function(t){wt(t,u)},u=function(t){e.each(function(e){setTimeout(function(){t(e)},0)})};return t(o),{get:i,map:r,isReady:a}},Fi=function(t){return ji(function(e){e(t)})},Bi={nu:ji,pure:Fi},Vi=function(t){setTimeout(function(){throw t},0)},zi=function(t){var e=function(e){t().then(e,Vi)};return{map:function(e){return zi(function(){return t().then(e)})},bind:function(e){return zi(function(){return t().then(function(t){return e(t).toPromise()})})},anonBind:function(e){return zi(function(){return t().then(function(){return e.toPromise()})})},toLazy:function(){return Bi.nu(e)},toCached:function(){var e=null;return zi(function(){return null===e&&(e=t()),e})},toPromise:t,get:e}},Ui=function(t){return zi(function(){return new Li(t)})},Hi=function(t){return zi(function(){return Li.resolve(t)})},qi={nu:Ui,pure:Hi},Wi=function(t,e){return e(function(e){var n=[],r=0,i=function(i){return function(o){n[i]=o,++r>=t.length&&e(n)}};0===t.length?e([]):wt(t,function(t,e){t.get(i(e))})})},Gi=function(t){return Wi(t,qi.nu)},Yi=function(t){var e=function(e){return Yi(t)},n=function(e){return Yi(t)},r=function(e){return Yi(e(t))},i=function(e){return Yi(t)},o=function(e){e(t)},a=function(e){return e(t)},s=function(e,n){return n(t)},u=function(e){return e(t)},l=function(e){return e(t)},c=function(){return dt.some(t)};return{isValue:st,isError:at,getOr:Z(t),getOrThunk:Z(t),getOrDie:Z(t),or:e,orThunk:n,fold:s,map:r,mapError:i,each:o,bind:a,exists:u,forall:l,toOptional:c}},Ki=function(t){var e=function(t){return t()},n=function(){return rt(String(t))()},r=tt,i=function(t){return t()},o=function(e){return Ki(t)},a=function(e){return Ki(e(t))},s=function(e){return Ki(t)};return{isValue:at,isError:st,getOr:tt,getOrThunk:e,getOrDie:n,or:r,orThunk:i,fold:function(e,n){return e(t)},map:o,mapError:a,each:X,bind:s,exists:at,forall:st,toOptional:dt.none}},Xi=function(t,e){return t.fold(function(){return Ki(e)},Yi)},Ji={value:Yi,error:Ki,fromOption:Xi},Qi=function(t){if(!z(t))throw new Error("cases must be an array");if(0===t.length)throw new Error("there must be at least one case");var e=[],n={};return wt(t,function(r,i){var o=zt(r);if(1!==o.length)throw new Error("one and only one name per case");var a=o[0],s=r[a];if(void 0!==n[a])throw new Error("duplicate key detected:"+a);if("cata"===a)throw new Error("cannot have a case named cata (sorry)");if(!z(s))throw new Error("case arguments must be an array");e.push(a),n[a]=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=n.length;if(o!==s.length)throw new Error("Wrong number of arguments to case "+a+". Expected "+s.length+" ("+s+"), got "+o);var u=function(t){var r=zt(t);if(e.length!==r.length)throw new Error("Wrong number of arguments to match. Expected: "+e.join(",")+"\nActual: "+r.join(","));if(!Dt(e,function(t){return yt(r,t)}))throw new Error("Not all branches were specified when using match. Specified: "+r.join(", ")+"\nRequired: "+e.join(", "));return t[a].apply(null,n)};return{fold:function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];if(e.length!==t.length)throw new Error("Wrong number of arguments to fold. Expected "+t.length+", got "+e.length);return e[i].apply(null,n)},match:u,log:function(t){console.log(t,{constructors:e,constructor:a,params:n})}}}}),n},Zi={generate:Qi};Zi.generate([{bothErrors:["error1","error2"]},{firstError:["error1","value2"]},{secondError:["value1","error2"]},{bothValues:["value1","value2"]}]);var to,eo,no,ro,io,oo,ao,so,uo,lo,co,fo,ho,po,go,mo,vo,yo,bo,_o=function(t){return t.fold(tt,tt)},wo=function(t,e,n){for(var r=t.dom,i=Y(n)?n:at;r.parentNode;){r=r.parentNode;var o=En.fromDom(r);if(e(o))return dt.some(o);if(i(o))break}return dt.none()},xo=function(t,e,n){return a(function(t,e){return e(t)},wo,t,e,n)},ko=function(t,e){var n=t.dom;return n.parentNode?So(En.fromDom(n.parentNode),function(n){return!In(t,n)&&e(n)}):dt.none()},So=function(t,e){var n=function(t){return e(En.fromDom(t))};return At(t.dom.childNodes,n).map(En.fromDom)},Co=function(t,e,n){return wo(t,function(t){return Pn(t,e)},n)},Eo=function(t,e){return Mn(e,t)},To=function(t,e,n){return a(function(t,e){return Pn(t,e)},Co,t,e,n)},Ao=window.Promise?window.Promise:Li,Oo=function(t,e){for(var n=window.requestAnimationFrame,r=["ms","moz","webkit"],i=function(t){window.setTimeout(t,0)},o=0;o<r.length&&!n;o++)n=window[r[o]+"RequestAnimationFrame"];n||(n=i),n(t,e)},Po=function(t,e){return"number"!=typeof e&&(e=0),setTimeout(t,e)},No=function(t,e){return"number"!=typeof e&&(e=1),setInterval(t,e)},Do=function(t){return clearTimeout(t)},Mo=function(t){return clearInterval(t)},Io=function(t,e){var n,r=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];clearTimeout(n),n=Po(function(){t.apply(this,r)},e)};return r.stop=function(){clearTimeout(n)},r},Ro={requestAnimationFrame:function(t,e){if(to)return void to.then(t);to=new Ao(function(t){e||(e=document.body),Oo(t,e)}).then(t)},setTimeout:Po,setInterval:No,setEditorTimeout:function(t,e,n){return Po(function(){t.removed||e()},n)},setEditorInterval:function(t,e,n){var r=No(function(){t.removed?clearInterval(r):e()},n);return r},debounce:Io,throttle:Io,clearInterval:Mo,clearTimeout:Do},$o=function(t,e){void 0===e&&(e={});var n=0,r={},i=En.fromDom(t),o=Yn(i),a=e.maxLoadTime||5e3,s=function(t){e.referrerPolicy=t},u=function(t){xr(pr(i),t)},l=function(t){var e=pr(i);Eo(e,"#"+t).each(Tr)},c=function(t){return Zt(r,t).getOrThunk(function(){return{id:"mce-u"+n++,passed:[],failed:[],count:0}})},f=function(n,i,s){var l,f=_n._addCacheSuffix(n),d=c(f);r[f]=d,d.count++;var h=function(t,e){for(var n=t.length;n--;)t[n]();d.status=e,d.passed=[],d.failed=[],l&&(l.onload=null,l.onerror=null,l=null)},p=function(){return h(d.passed,2)},g=function(){return h(d.failed,3)},m=function(t,e){t()||(Date.now()-b<a?Ro.setTimeout(e):g())},v=function(){m(function(){for(var e=t.styleSheets,n=e.length;n--;){var r=e[n],i=r.ownerNode;if(i&&i.id===l.id)return p(),!0}return!1},v)};if(i&&d.passed.push(i),s&&d.failed.push(s),1!==d.status){if(2===d.status)return void p();if(3===d.status)return void g();d.status=1;var y=En.fromTag("link",o.dom);vi(y,{rel:"stylesheet",type:"text/css",id:d.id});var b=Date.now();e.contentCssCors&&mi(y,"crossOrigin","anonymous"),e.referrerPolicy&&mi(y,"referrerpolicy",e.referrerPolicy),l=y.dom,l.onload=v,l.onerror=g,u(y),mi(y,"href",f)}},d=function(t){return qi.nu(function(e){f(t,J(e,Z(Ji.value(t))),J(e,Z(Ji.error(t))))})},h=function(t,e,n){Gi(_t(t,d)).get(function(t){var r=kt(t,function(t){return t.isValue()});r.fail.length>0?n(r.fail.map(_o)):e(r.pass.map(_o))})},p=function(t){var e=_n._addCacheSuffix(t);Zt(r,e).each(function(t){0==--t.count&&(delete r[e],l(t.id))})};return{load:f,loadAll:h,unload:p,unloadAll:function(t){wt(t,function(t){p(t)})},_setReferrerPolicy:s}},Lo=function(){var t=new WeakMap;return{forElement:function(e,n){var r=hr(e),i=r.dom;return dt.from(t.get(i)).getOrThunk(function(){var e=$o(i,n);return t.set(i,e),e})}}}(),jo=function(){function t(t,e){this.node=t,this.rootNode=e,this.current=this.current.bind(this),this.next=this.next.bind(this),this.prev=this.prev.bind(this),this.prev2=this.prev2.bind(this)}return t.prototype.current=function(){return this.node},t.prototype.next=function(t){return this.node=this.findSibling(this.node,"firstChild","nextSibling",t),this.node},t.prototype.prev=function(t){return this.node=this.findSibling(this.node,"lastChild","previousSibling",t),this.node},t.prototype.prev2=function(t){return this.node=this.findPreviousNode(this.node,"lastChild","previousSibling",t),this.node},t.prototype.findSibling=function(t,e,n,r){var i,o;if(t){if(!r&&t[e])return t[e];if(t!==this.rootNode){if(i=t[n])return i;for(o=t.parentNode;o&&o!==this.rootNode;o=o.parentNode)if(i=o[n])return i}}},t.prototype.findPreviousNode=function(t,e,n,r){var i,o,a;if(t){if(i=t[n],this.rootNode&&i===this.rootNode)return;if(i){if(!r)for(a=i[e];a;a=a[e])if(!a[e])return a;return i}if((o=t.parentNode)&&o!==this.rootNode)return o}},t}(),Fo=["article","aside","details","div","dt","figcaption","footer","form","fieldset","header","hgroup","html","main","nav","section","summary","body","p","dl","multicol","dd","figure","address","center","blockquote","h1","h2","h3","h4","h5","h6","listing","xmp","pre","plaintext","menu","dir","ul","ol","li","hr","table","tbody","thead","tfoot","th","tr","td","caption"],Bo=["td","th"],Vo=["thead","tbody","tfoot"],zo=["h1","h2","h3","h4","h5","h6","p","div","address","pre","form","blockquote","center","dir","fieldset","header","footer","article","section","hgroup","aside","nav","figure"],Uo=["h1","h2","h3","h4","h5","h6"],Ho=["li","dd","dt"],qo=["ul","ol","dl"],Wo=["pre","script","textarea","style"],Go=function(t){var e;return function(n){return e=e||Rt(t,st),te(e,jn(n))}},Yo=Go(Uo),Ko=Go(Fo),Xo=function(t){return"table"===jn(t)},Jo=function(t){return zn(t)&&!Ko(t)},Qo=function(t){return zn(t)&&"br"===jn(t)},Zo=Go(zo),ta=Go(qo),ea=Go(Ho),na=Go(Vo),ra=Go(Bo),ia=Go(Wo),oa=function(t,e,n){return Co(t,e,n).isSome()},aa=function(t){return"\ufeff"===t},sa=function(t){return t.replace(/\uFEFF/g,"")},ua="\ufeff",la=aa,ca=sa,fa=Hr,da=Zr,ha=function(t){return da(t)&&(t=t.parentNode),fa(t)&&t.hasAttribute("data-mce-caret")},pa=function(t){return da(t)&&la(t.data)},ga=function(t){return ha(t)||pa(t)},ma=function(t){return t.firstChild!==t.lastChild||!ri(t.firstChild)},va=function(t,e){var n=t.ownerDocument,r=n.createTextNode(ua),i=t.parentNode;if(e){var o=t.previousSibling;if(da(o)){if(ga(o))return o;if(ka(o))return o.splitText(o.data.length-1)}i.insertBefore(r,t)}else{var o=t.nextSibling;if(da(o)){if(ga(o))return o;if(xa(o))return o.splitText(1),o}t.nextSibling?i.insertBefore(r,t.nextSibling):i.appendChild(r)}return r},ya=function(t){var e=t.container();return!!Zr(e)&&(e.data.charAt(t.offset())===ua||t.isAtStart()&&pa(e.previousSibling))},ba=function(t){var e=t.container();return!!Zr(e)&&(e.data.charAt(t.offset()-1)===ua||t.isAtEnd()&&pa(e.nextSibling))},_a=function(){var t=document.createElement("br");return t.setAttribute("data-mce-bogus","1"),t},wa=function(t,e,n){var r=e.ownerDocument,i=r.createElement(t);i.setAttribute("data-mce-caret",n?"before":"after"),i.setAttribute("data-mce-bogus","all"),i.appendChild(_a());var o=e.parentNode;return n?o.insertBefore(i,e):e.nextSibling?o.insertBefore(i,e.nextSibling):o.appendChild(i),i},xa=function(t){return da(t)&&t.data[0]===ua},ka=function(t){return da(t)&&t.data[t.data.length-1]===ua},Sa=function(t){var e=t.getElementsByTagName("br"),n=e[e.length-1];Yr(n)&&n.parentNode.removeChild(n)},Ca=function(t){return t&&t.hasAttribute("data-mce-caret")?(Sa(t),t.removeAttribute("data-mce-caret"),t.removeAttribute("data-mce-bogus"),t.removeAttribute("style"),t.removeAttribute("_moz_abspos"),t):null},Ea=function(t){return ha(t.startContainer)},Ta=oi,Aa=ai,Oa=ri,Pa=Zr,Na=qr(["script","style","textarea"]),Da=qr(["img","input","textarea","hr","iframe","video","audio","object","embed"]),Ma=qr(["table"]),Ia=ga,Ra=function(t){return!Ia(t)&&(Pa(t)?!Na(t.parentNode):Da(t)||Oa(t)||Ma(t)||La(t))},$a=function(t){return Hr(t)&&"true"===t.getAttribute("unselectable")},La=function(t){return!1===$a(t)&&Aa(t)},ja=function(t,e){for(t=t.parentNode;t&&t!==e;t=t.parentNode){if(La(t))return!1;if(Ta(t))return!0}return!0},Fa=function(t){return!!La(t)&&!0!==Et(Bt(t.getElementsByTagName("*")),function(t,e){return t||Ta(e)},!1)},Ba=function(t){return Da(t)||Fa(t)},Va=function(t,e){return Ra(t)&&ja(t,e)},za=/^[ \t\r\n]*$/,Ua=function(t){return za.test(t)},Ha=function(t,e){var n=En.fromDom(e),i=En.fromDom(t);return oa(i,"pre,code",r(In,n))},qa=function(t,e){return Zr(t)&&Ua(t.data)&&!1===Ha(t,e)},Wa=function(t){return Hr(t)&&"A"===t.nodeName&&!t.hasAttribute("href")&&(t.hasAttribute("name")||t.hasAttribute("id"))},Ga=function(t,e){return Ra(t)&&!1===qa(t,e)||Wa(t)||Ya(t)},Ya=Gr("data-mce-bookmark"),Ka=Gr("data-mce-bogus"),Xa=function(t,e){return function(n){return Hr(n)&&n.getAttribute(t)===e}}("data-mce-bogus","all"),Ja=function(t,e){var n=0;if(Ga(t,t))return!1;var r=t.firstChild;if(!r)return!0;var i=new jo(r,t);do{if(e){if(Xa(r)){r=i.next(!0);continue}if(Ka(r)){r=i.next();continue}}if(ri(r))n++,r=i.next();else{if(Ga(r,t))return!1;r=i.next()}}while(r);return n<=1},Qa=function(t,e){return void 0===e&&(e=!0),Ja(t.dom,e)},Za=function(t){return"span"===t.nodeName.toLowerCase()},ts=function(t,e){return G(t)&&(Ga(t,e)||Jo(En.fromDom(t)))},es=function(t,e){var n=new jo(t,e).prev(!1),r=new jo(t,e).next(!1),i=q(n)||ts(n,e),o=q(r)||ts(r,e);return i&&o},ns=function(t){return Za(t)&&"bookmark"===t.getAttribute("data-mce-type")},rs=function(t,e){return Zr(t)&&t.data.length>0&&es(t,e)},is=function(t){return!!Hr(t)&&t.childNodes.length>0},os=function(t){return ni(t)||ei(t)},as=function(t,e,n){var r=n||e;if(Hr(e)&&ns(e))return e;for(var i=e.childNodes,o=i.length-1;o>=0;o--)as(t,i[o],r);if(Hr(e)){var a=e.childNodes;1===a.length&&ns(a[0])&&e.parentNode.insertBefore(a[0],e)}return os(e)||Ga(e,r)||is(e)||rs(e,r)||t.remove(e),e},ss=_n.makeMap,us=/[&<>\"\u0060\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ls=/[<>&\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,cs=/[<>&\"\']/g,fs=/&#([a-z0-9]+);?|&([a-z0-9]+);/gi,ds={128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"},hs={'"':"&quot;","'":"&#39;","<":"&lt;",">":"&gt;","&":"&amp;","`":"&#96;"},ps={"&lt;":"<","&gt;":">","&amp;":"&","&quot;":'"',"&apos;":"'"},gs=function(t){var e=En.fromTag("div").dom;return e.innerHTML=t,e.textContent||e.innerText||t},ms=function(t,e){var n,r,i,o={};if(t){for(t=t.split(","),e=e||10,n=0;n<t.length;n+=2)r=String.fromCharCode(parseInt(t[n],e)),hs[r]||(i="&"+t[n+1]+";",o[r]=i,o[i]=r);return o}},vs=ms("50,nbsp,51,iexcl,52,cent,53,pound,54,curren,55,yen,56,brvbar,57,sect,58,uml,59,copy,5a,ordf,5b,laquo,5c,not,5d,shy,5e,reg,5f,macr,5g,deg,5h,plusmn,5i,sup2,5j,sup3,5k,acute,5l,micro,5m,para,5n,middot,5o,cedil,5p,sup1,5q,ordm,5r,raquo,5s,frac14,5t,frac12,5u,frac34,5v,iquest,60,Agrave,61,Aacute,62,Acirc,63,Atilde,64,Auml,65,Aring,66,AElig,67,Ccedil,68,Egrave,69,Eacute,6a,Ecirc,6b,Euml,6c,Igrave,6d,Iacute,6e,Icirc,6f,Iuml,6g,ETH,6h,Ntilde,6i,Ograve,6j,Oacute,6k,Ocirc,6l,Otilde,6m,Ouml,6n,times,6o,Oslash,6p,Ugrave,6q,Uacute,6r,Ucirc,6s,Uuml,6t,Yacute,6u,THORN,6v,szlig,70,agrave,71,aacute,72,acirc,73,atilde,74,auml,75,aring,76,aelig,77,ccedil,78,egrave,79,eacute,7a,ecirc,7b,euml,7c,igrave,7d,iacute,7e,icirc,7f,iuml,7g,eth,7h,ntilde,7i,ograve,7j,oacute,7k,ocirc,7l,otilde,7m,ouml,7n,divide,7o,oslash,7p,ugrave,7q,uacute,7r,ucirc,7s,uuml,7t,yacute,7u,thorn,7v,yuml,ci,fnof,sh,Alpha,si,Beta,sj,Gamma,sk,Delta,sl,Epsilon,sm,Zeta,sn,Eta,so,Theta,sp,Iota,sq,Kappa,sr,Lambda,ss,Mu,st,Nu,su,Xi,sv,Omicron,t0,Pi,t1,Rho,t3,Sigma,t4,Tau,t5,Upsilon,t6,Phi,t7,Chi,t8,Psi,t9,Omega,th,alpha,ti,beta,tj,gamma,tk,delta,tl,epsilon,tm,zeta,tn,eta,to,theta,tp,iota,tq,kappa,tr,lambda,ts,mu,tt,nu,tu,xi,tv,omicron,u0,pi,u1,rho,u2,sigmaf,u3,sigma,u4,tau,u5,upsilon,u6,phi,u7,chi,u8,psi,u9,omega,uh,thetasym,ui,upsih,um,piv,812,bull,816,hellip,81i,prime,81j,Prime,81u,oline,824,frasl,88o,weierp,88h,image,88s,real,892,trade,89l,alefsym,8cg,larr,8ch,uarr,8ci,rarr,8cj,darr,8ck,harr,8dl,crarr,8eg,lArr,8eh,uArr,8ei,rArr,8ej,dArr,8ek,hArr,8g0,forall,8g2,part,8g3,exist,8g5,empty,8g7,nabla,8g8,isin,8g9,notin,8gb,ni,8gf,prod,8gh,sum,8gi,minus,8gn,lowast,8gq,radic,8gt,prop,8gu,infin,8h0,ang,8h7,and,8h8,or,8h9,cap,8ha,cup,8hb,int,8hk,there4,8hs,sim,8i5,cong,8i8,asymp,8j0,ne,8j1,equiv,8j4,le,8j5,ge,8k2,sub,8k3,sup,8k4,nsub,8k6,sube,8k7,supe,8kl,oplus,8kn,otimes,8l5,perp,8m5,sdot,8o8,lceil,8o9,rceil,8oa,lfloor,8ob,rfloor,8p9,lang,8pa,rang,9ea,loz,9j0,spades,9j3,clubs,9j5,hearts,9j6,diams,ai,OElig,aj,oelig,b0,Scaron,b1,scaron,bo,Yuml,m6,circ,ms,tilde,802,ensp,803,emsp,809,thinsp,80c,zwnj,80d,zwj,80e,lrm,80f,rlm,80j,ndash,80k,mdash,80o,lsquo,80p,rsquo,80q,sbquo,80s,ldquo,80t,rdquo,80u,bdquo,810,dagger,811,Dagger,81g,permil,81p,lsaquo,81q,rsaquo,85c,euro",32),ys=function(t,e){return t.replace(e?us:ls,function(t){return hs[t]||t})},bs=function(t){return(""+t).replace(cs,function(t){return hs[t]||t})},_s=function(t,e){return t.replace(e?us:ls,function(t){return t.length>1?"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";":hs[t]||"&#"+t.charCodeAt(0)+";"})},ws=function(t,e,n){return n=n||vs,t.replace(e?us:ls,function(t){return hs[t]||n[t]||t})},xs=function(t,e){var n=ms(e)||vs,r=function(t,e){return t.replace(e?us:ls,function(t){return void 0!==hs[t]?hs[t]:void 0!==n[t]?n[t]:t.length>1?"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";":"&#"+t.charCodeAt(0)+";"})},i=function(t,e){return ws(t,e,n)},o=ss(t.replace(/\+/g,","));return o.named&&o.numeric?r:o.named?e?i:ws:o.numeric?_s:ys},ks=function(t){return t.replace(fs,function(t,e){return e?(e="x"===e.charAt(0).toLowerCase()?parseInt(e.substr(1),16):parseInt(e,10),e>65535?(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e))):ds[e]||String.fromCharCode(e)):ps[t]||vs[t]||gs(t)})},Ss={encodeRaw:ys,encodeAllRaw:bs,encodeNumeric:_s,encodeNamed:ws,getEncodeFunc:xs,decode:ks},Cs={},Es={},Ts=_n.makeMap,As=_n.each,Os=_n.extend,Ps=_n.explode,Ns=_n.inArray,Ds=function(t,e){return t=_n.trim(t),t?t.split(e||" "):[]},Ms=function(t,e){var n=Ts(t," ",Ts(t.toUpperCase()," "));return Os(n,e)},Is=function(t){return Ms("td th li dt dd figcaption caption details summary",t.getTextBlockElements())},Rs=function(t){var e,n,r,i,o,a,s={},u=function(t,n,r){var i,o,a,u=function(t,e){var n,r,i={};for(n=0,r=t.length;n<r;n++)i[t[n]]=e||{};return i};r=r||[],n=n||"","string"==typeof r&&(r=Ds(r));var l=Ds(t);for(i=l.length;i--;)o=Ds([e,n].join(" ")),a={attributes:u(o),attributesOrder:o,children:u(r,Es)},s[l[i]]=a},l=function(t,e){var n,r,i,o,a=Ds(t);n=a.length;for(var u=Ds(e);n--;)for(r=s[a[n]],i=0,o=u.length;i<o;i++)r.attributes[u[i]]={},r.attributesOrder.push(u[i])};return Cs[t]?Cs[t]:(e="id accesskey class dir lang style tabindex title role",n="address blockquote div dl fieldset form h1 h2 h3 h4 h5 h6 hr menu ol p pre table ul",r="a abbr b bdo br button cite code del dfn em embed i iframe img input ins kbd label map noscript object q s samp script select small span strong sub sup textarea u var #text #comment","html4"!==t&&(e+=" contenteditable contextmenu draggable dropzone hidden spellcheck translate",n+=" article aside details dialog figure main header footer hgroup section nav",r+=" audio canvas command datalist mark meter output picture progress time wbr video ruby bdi keygen"),"html5-strict"!==t&&(e+=" xml:lang",a="acronym applet basefont big font strike tt",r=[r,a].join(" "),As(Ds(a),function(t){u(t,"",r)}),o="center dir isindex noframes",n=[n,o].join(" "),i=[n,r].join(" "),As(Ds(o),function(t){u(t,"",i)})),i=i||[n,r].join(" "),u("html","manifest","head body"),u("head","","base command link meta noscript script style title"),u("title hr noscript br"),u("base","href target"),u("link","href rel media hreflang type sizes hreflang"),u("meta","name http-equiv content charset"),u("style","media type scoped"),u("script","src async defer type charset"),u("body","onafterprint onbeforeprint onbeforeunload onblur onerror onfocus onhashchange onload onmessage onoffline ononline onpagehide onpageshow onpopstate onresize onscroll onstorage onunload",i),u("address dt dd div caption","",i),u("h1 h2 h3 h4 h5 h6 pre p abbr code var samp kbd sub sup i b u bdo span legend em strong small s cite dfn","",r),u("blockquote","cite",i),u("ol","reversed start type","li"),u("ul","","li"),u("li","value",i),u("dl","","dt dd"),u("a","href target rel media hreflang type",r),u("q","cite",r),u("ins del","cite datetime",i),u("img","src sizes srcset alt usemap ismap width height"),u("iframe","src name width height",i),u("embed","src type width height"),u("object","data type typemustmatch name usemap form width height",[i,"param"].join(" ")),u("param","name value"),u("map","name",[i,"area"].join(" ")),u("area","alt coords shape href target rel media hreflang type"),u("table","border","caption colgroup thead tfoot tbody tr"+("html4"===t?" col":"")),u("colgroup","span","col"),u("col","span"),u("tbody thead tfoot","","tr"),u("tr","","td th"),u("td","colspan rowspan headers",i),u("th","colspan rowspan headers scope abbr",i),u("form","accept-charset action autocomplete enctype method name novalidate target",i),u("fieldset","disabled form name",[i,"legend"].join(" ")),u("label","form for",r),u("input","accept alt autocomplete checked dirname disabled form formaction formenctype formmethod formnovalidate formtarget height list max maxlength min multiple name pattern readonly required size src step type value width"),u("button","disabled form formaction formenctype formmethod formnovalidate formtarget name type value","html4"===t?i:r),u("select","disabled form multiple name required size","option optgroup"),u("optgroup","disabled label","option"),u("option","disabled label selected value"),u("textarea","cols dirname disabled form maxlength name readonly required rows wrap"),u("menu","type label",[i,"li"].join(" ")),u("noscript","",i),"html4"!==t&&(u("wbr"),u("ruby","",[r,"rt rp"].join(" ")),u("figcaption","",i),u("mark rt rp summary bdi","",r),u("canvas","width height",i),u("video","src crossorigin poster preload autoplay mediagroup loop muted controls width height buffered",[i,"track source"].join(" ")),u("audio","src crossorigin preload autoplay mediagroup loop muted controls buffered volume",[i,"track source"].join(" ")),u("picture","","img source"),u("source","src srcset type media sizes"),u("track","kind src srclang label default"),u("datalist","",[r,"option"].join(" ")),u("article section nav aside main header footer","",i),u("hgroup","","h1 h2 h3 h4 h5 h6"),u("figure","",[i,"figcaption"].join(" ")),u("time","datetime",r),u("dialog","open",i),u("command","type label icon disabled checked radiogroup command"),u("output","for form name",r),u("progress","value max",r),u("meter","value min max low high optimum",r),u("details","open",[i,"summary"].join(" ")),u("keygen","autofocus challenge disabled form keytype name")),"html5-strict"!==t&&(l("script","language xml:space"),l("style","xml:space"),l("object","declare classid code codebase codetype archive standby align border hspace vspace"),l("embed","align name hspace vspace"),l("param","valuetype type"),l("a","charset name rev shape coords"),l("br","clear"),l("applet","codebase archive code object alt name width height align hspace vspace"),l("img","name longdesc align border hspace vspace"),l("iframe","longdesc frameborder marginwidth marginheight scrolling align"),l("font basefont","size color face"),l("input","usemap align"),l("select"),l("textarea"),l("h1 h2 h3 h4 h5 h6 div p legend caption","align"),l("ul","type compact"),l("li","type"),l("ol dl menu dir","compact"),l("pre","width xml:space"),l("hr","align noshade size width"),l("isindex","prompt"),l("table","summary width frame rules cellspacing cellpadding align bgcolor"),l("col","width align char charoff valign"),l("colgroup","width align char charoff valign"),l("thead","align char charoff valign"),l("tr","align char charoff valign bgcolor"),l("th","axis align char charoff valign nowrap bgcolor width height"),l("form","accept"),l("td","abbr axis scope align char charoff valign nowrap bgcolor width height"),l("tfoot","align char charoff valign"),l("tbody","align char charoff valign"),l("area","nohref"),l("body","background bgcolor text link vlink alink")),"html4"!==t&&(l("input button select textarea","autofocus"),l("input textarea","placeholder"),l("a","download"),l("link script img","crossorigin"),l("img","loading"),l("iframe","sandbox seamless allowfullscreen loading")),As(Ds("a form meter progress dfn"),function(t){s[t]&&delete s[t].children[t]}),delete s.caption.children.table,delete s.script,Cs[t]=s,s)},$s=function(t,e){var n;return t&&(n={},"string"==typeof t&&(t={"*":t}),As(t,function(t,r){n[r]=n[r.toUpperCase()]="map"===e?Ts(t,/[, ]/):Ps(t,/[, ]/)})),n},Ls=function(t){var e={},n={},r=[],i={},o={},a=function(e,n,r){var i=t[e];return i?i=Ts(i,/[, ]/,Ts(i.toUpperCase(),/[, ]/)):(i=Cs[e])||(i=Ms(n,r),Cs[e]=i),i};t=t||{};var s=Rs(t.schema);!1===t.verify_html&&(t.valid_elements="*[*]");var u=$s(t.valid_styles),l=$s(t.invalid_styles,"map"),c=$s(t.valid_classes,"map"),f=a("whitespace_elements","pre script noscript style textarea video audio iframe object code"),d=a("self_closing_elements","colgroup dd dt li option p td tfoot th thead tr"),h=a("short_ended_elements","area base basefont br col frame hr img input isindex link meta param embed source wbr track"),p=a("boolean_attributes","checked compact declare defer disabled ismap multiple nohref noresize noshade nowrap readonly selected autoplay loop controls"),g=a("non_empty_elements","td th iframe video audio object script code pre",h),m=a("move_caret_before_on_enter_elements","td th iframe video audio object script code table",h),v=a("text_block_elements","h1 h2 h3 h4 h5 h6 p div address pre form blockquote center dir fieldset header footer article section hgroup aside main nav figure"),y=a("block_elements","hr table tbody thead tfoot th tr td li ol ul caption dl dt dd noscript menu isindex option datalist select optgroup figcaption details summary",v),b=a("text_inline_elements","span strong b em i font s strike u var cite dfn code mark q sup sub samp");As((t.special||"script noscript iframe noframes noembed title style textarea xmp").split(" "),function(t){o[t]=new RegExp("</"+t+"[^>]*>","gi")});var _=function(t){return new RegExp("^"+t.replace(/([?+*])/g,".$1")+"$")},w=function(t){var n,i,o,a,s,u,l,c,f,d,h,p,g,m,v,y,b,w,x=/^([#+\-])?([^\[!\/]+)(?:\/([^\[!]+))?(?:(!?)\[([^\]]+)])?$/,k=/^([!\-])?(\w+[\\:]:\w+|[^=:<]+)?(?:([=:<])(.*))?$/,S=/[*?+]/;if(t){var C=Ds(t,",");for(e["@"]&&(y=e["@"].attributes,b=e["@"].attributesOrder),n=0,i=C.length;n<i;n++)if(s=x.exec(C[n])){if(m=s[1],f=s[2],v=s[3],c=s[5],p={},g=[],u={attributes:p,attributesOrder:g},"#"===m&&(u.paddEmpty=!0),"-"===m&&(u.removeEmpty=!0),"!"===s[4]&&(u.removeEmptyAttrs=!0),y&&(Ht(y,function(t,e){p[e]=t}),g.push.apply(g,b)),c)for(c=Ds(c,"|"),o=0,a=c.length;o<a;o++)if(s=k.exec(c[o])){if(l={},h=s[1],d=s[2].replace(/[\\:]:/g,":"),m=s[3],w=s[4],"!"===h&&(u.attributesRequired=u.attributesRequired||[],u.attributesRequired.push(d),l.required=!0),"-"===h){delete p[d],g.splice(Ns(g,d),1);continue}m&&("="===m&&(u.attributesDefault=u.attributesDefault||[],u.attributesDefault.push({name:d,value:w}),l.defaultValue=w),":"===m&&(u.attributesForced=u.attributesForced||[],u.attributesForced.push({name:d,value:w}),l.forcedValue=w),"<"===m&&(l.validValues=Ts(w,"?"))),S.test(d)?(u.attributePatterns=u.attributePatterns||[],l.pattern=_(d),u.attributePatterns.push(l)):(p[d]||g.push(d),p[d]=l)}y||"@"!==f||(y=p,b=g),v&&(u.outputName=f,e[v]=u),S.test(f)?(u.pattern=_(f),r.push(u)):e[f]=u}}},x=function(t){e={},r=[],w(t),As(s,function(t,e){n[e]=t.children})},k=function(t){var r=/^(~)?(.+)$/;t&&(Cs.text_block_elements=Cs.block_elements=null,As(Ds(t,","),function(t){var o=r.exec(t),a="~"===o[1],s=a?"span":"div",u=o[2];if(n[u]=n[s],i[u]=s,a||(y[u.toUpperCase()]={},y[u]={}),!e[u]){var l=e[s];l=Os({},l),delete l.removeEmptyAttrs,delete l.removeEmpty,e[u]=l}As(n,function(t,e){t[s]&&(n[e]=t=Os({},n[e]),t[u]=t[s])})}))},S=function(e){var r=/^([+\-]?)([A-Za-z0-9_\-.\u00b7\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u037d\u037f-\u1fff\u200c-\u200d\u203f-\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]+)\[([^\]]+)]$/;Cs[t.schema]=null,e&&As(Ds(e,","),function(t){var e,i,o=r.exec(t);o&&(i=o[1],e=i?n[o[2]]:n[o[2]]={"#comment":{}},e=n[o[2]],As(Ds(o[3],"|"),function(t){"-"===i?delete e[t]:e[t]={}}))})},C=function(t){var n,i=e[t];if(i)return i;for(n=r.length;n--;)if(i=r[n],i.pattern.test(t))return i};t.valid_elements?x(t.valid_elements):(As(s,function(t,r){e[r]={attributes:t.attributes,attributesOrder:t.attributesOrder},n[r]=t.children}),"html5"!==t.schema&&As(Ds("strong/b em/i"),function(t){var n=Ds(t,"/");e[n[1]].outputName=n[0]}),As(b,function(n,r){e[r]&&(t.padd_empty_block_inline_children&&(e[r].paddInEmptyBlock=!0),e[r].removeEmpty=!0)}),As(Ds("ol ul blockquote a table tbody"),function(t){e[t]&&(e[t].removeEmpty=!0)}),As(Ds("p h1 h2 h3 h4 h5 h6 th td pre div address caption li"),function(t){e[t].paddEmpty=!0}),As(Ds("span"),function(t){e[t].removeEmptyAttrs=!0})),k(t.custom_elements),S(t.valid_children),w(t.extended_valid_elements),S("+ol[ul|ol],+ul[ul|ol]"),As({dd:"dl",dt:"dl",li:"ul ol",td:"tr",th:"tr",tr:"tbody thead tfoot",tbody:"table",thead:"table",tfoot:"table",legend:"fieldset",area:"map",param:"video audio object"},function(t,n){e[n]&&(e[n].parentsRequired=Ds(t))}),t.invalid_elements&&As(Ps(t.invalid_elements),function(t){e[t]&&delete e[t]}),C("span")||w("span[!data-mce-type|*]");var E=Z(u),T=Z(l),A=Z(c),O=Z(p),P=Z(y),N=Z(v),D=Z(b),M=Z(h),I=Z(d),R=Z(g),$=Z(m),L=Z(f),j=Z(o),F=function(t,e){var r=n[t.toLowerCase()];return!(!r||!r[e.toLowerCase()])},B=function(t,e){var n,r,i=C(t);if(i){if(!e)return!0;if(i.attributes[e])return!0;if(n=i.attributePatterns)for(r=n.length;r--;)if(n[r].pattern.test(t))return!0}return!1},V=Z(i);return{children:n,elements:e,getValidStyles:E,getValidClasses:A,getBlockElements:P,getInvalidStyles:T,getShortEndedElements:M,getTextBlockElements:N,getTextInlineElements:D,getBoolAttrs:O,getElementRule:C,getSelfClosingElements:I,getNonEmptyElements:R,getMoveCaretBeforeOnEnterElements:$,getWhiteSpaceElements:L,getSpecialElements:j,isValidChild:F,isValid:B,getCustomElements:V,addValidElements:w,setValidElements:x,addCustomElements:k,addValidChildren:S}},js=function(t,e,n,r){var i=function(t){return t=parseInt(t,10).toString(16),t.length>1?t:"0"+t};return"#"+i(e)+i(n)+i(r)},Fs=function(t,e){var n,r,i,o=this,a=/rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)/gi,s=/(?:url(?:(?:\(\s*\"([^\"]+)\"\s*\))|(?:\(\s*\'([^\']+)\'\s*\))|(?:\(\s*([^)\s]+)\s*\))))|(?:\'([^\']+)\')|(?:\"([^\"]+)\")/gi,u=/\s*([^:]+):\s*([^;]+);?/g,l=/\s+$/,c={};t=t||{},e&&(r=e.getValidStyles(),i=e.getInvalidStyles());var f="\\\" \\' \\; \\: ; : \ufeff".split(" ");for(n=0;n<f.length;n++)c[f[n]]="\ufeff"+n,c["\ufeff"+n]=f[n];return{toHex:function(t){return t.replace(a,js)},parse:function(e){var r,i,f,d,h={},p=t.url_converter,g=t.url_converter_scope||o,m=function(t,e,r){var i=h[t+"-top"+e];if(i){var o=h[t+"-right"+e];if(o){var a=h[t+"-bottom"+e];if(a){var s=h[t+"-left"+e];if(s){var u=[i,o,a,s];for(n=u.length-1;n--&&u[n]===u[n+1];);n>-1&&r||(h[t+e]=-1===n?u[0]:u.join(" "),delete h[t+"-top"+e],delete h[t+"-right"+e],delete h[t+"-bottom"+e],delete h[t+"-left"+e])}}}}},v=function(t){var e,n=h[t];if(n){for(n=n.split(" "),e=n.length;e--;)if(n[e]!==n[0])return!1;return h[t]=n[0],!0}},y=function(t){return d=!0,c[t]},b=function(t,e){return d&&(t=t.replace(/\uFEFF[0-9]/g,function(t){return c[t]})),e||(t=t.replace(/\\([\'\";:])/g,"$1")),t},_=function(t){return String.fromCharCode(parseInt(t.slice(1),16))},w=function(t){return t.replace(/\\[0-9a-f]+/gi,_)},x=function(e,n,r,i,o,a){if(o=o||a)return o=b(o),"'"+o.replace(/\'/g,"\\'")+"'";if(n=b(n||r||i),!t.allow_script_urls){var s=n.replace(/[\s\r\n]+/g,"");if(/(java|vb)script:/i.test(s))return"";if(!t.allow_svg_data_urls&&/^data:image\/svg/i.test(s))return""}return p&&(n=p.call(g,n,"style")),"url('"+n.replace(/\'/g,"\\'")+"')"};if(e){for(e=e.replace(/[\u0000-\u001F]/g,""),e=e.replace(/\\[\"\';:\uFEFF]/g,y).replace(/\"[^\"]+\"|\'[^\']+\'/g,function(t){return t.replace(/[;:]/g,y)});r=u.exec(e);)if(u.lastIndex=r.index+r[0].length,i=r[1].replace(l,"").toLowerCase(),f=r[2].replace(l,""),i&&f){if(i=w(i),f=w(f),-1!==i.indexOf("\ufeff")||-1!==i.indexOf('"'))continue;if(!t.allow_script_urls&&("behavior"===i||/expression\s*\(|\/\*|\*\//.test(f)))continue;"font-weight"===i&&"700"===f?f="bold":"color"!==i&&"background-color"!==i||(f=f.toLowerCase()),f=f.replace(a,js),f=f.replace(s,x),h[i]=d?b(f,!0):f}m("border","",!0),m("border","-width"),m("border","-color"),m("border","-style"),m("padding",""),m("margin",""),function(t,e,n,r){v(e)&&v(n)&&v(r)&&(h[t]=h[e]+" "+h[n]+" "+h[r],delete h[e],delete h[n],delete h[r])}("border","border-width","border-style","border-color"),"medium none"===h.border&&delete h.border,"none"===h["border-image"]&&delete h["border-image"]}return h},serialize:function(t,e){var n="",o=function(e){var i,o=r[e];if(o)for(var a=0,s=o.length;a<s;a++)e=o[a],(i=t[e])&&(n+=(n.length>0?" ":"")+e+": "+i+";")},a=function(t,e){var n=i["*"];return(!n||!n[t])&&!((n=i[e])&&n[t])};return e&&r?(o("*"),o(e)):Ht(t,function(t,r){!t||i&&!a(r,e)||(n+=(n.length>0?" ":"")+r+": "+t+";")}),n}}},Bs={keyLocation:!0,layerX:!0,layerY:!0,returnValue:!0,webkitMovementX:!0,webkitMovementY:!0,keyIdentifier:!0,mozPressure:!0},Vs=function(t){return t instanceof Event||Y(t.initEvent)},zs=function(t){return t.isDefaultPrevented===st||t.isDefaultPrevented===at},Us=function(t){return W(t.preventDefault)||Vs(t)},Hs=function(t,e){var n=null!==e&&void 0!==e?e:{};for(var r in t)te(Bs,r)||(n[r]=t[r]);return G(n.composedPath)&&(n.composedPath=function(){return t.composedPath()}),n},qs=function(t,e,n,r){var i,o=Hs(e,r);return o.type=t,W(o.target)&&(o.target=null!==(i=o.srcElement)&&void 0!==i?i:n),Us(e)&&(o.preventDefault=function(){o.defaultPrevented=!0,o.isDefaultPrevented=st,Y(e.preventDefault)?e.preventDefault():Vs(e)&&(e.returnValue=!1)},o.stopPropagation=function(){o.cancelBubble=!0,o.isPropagationStopped=st,Y(e.stopPropagation)?e.stopPropagation():Vs(e)&&(e.cancelBubble=!0)},o.stopImmediatePropagation=function(){o.isImmediatePropagationStopped=st,o.stopPropagation()},zs(o)||(o.isDefaultPrevented=!0===o.defaultPrevented?st:at,o.isPropagationStopped=!0===o.cancelBubble?st:at,o.isImmediatePropagationStopped=at)),o},Ws="mce-data-",Gs=/^(?:mouse|contextmenu)|click/,Ys=function(t,e,n,r){t.addEventListener?t.addEventListener(e,n,r||!1):t.attachEvent&&t.attachEvent("on"+e,n)},Ks=function(t,e,n,r){t.removeEventListener?t.removeEventListener(e,n,r||!1):t.detachEvent&&t.detachEvent("on"+e,n)},Xs=function(t){return G(t)&&Gs.test(t.type)},Js=function(t,e){var n=qs(t.type,t,document,e);if(Xs(t)&&q(t.pageX)&&!q(t.clientX)){var r=n.target.ownerDocument||document,i=r.documentElement,o=r.body,a=n;a.pageX=t.clientX+(i&&i.scrollLeft||o&&o.scrollLeft||0)-(i&&i.clientLeft||o&&o.clientLeft||0),a.pageY=t.clientY+(i&&i.scrollTop||o&&o.scrollTop||0)-(i&&i.clientTop||o&&o.clientTop||0)}return q(n.metaKey)&&(n.metaKey=!1),n},Qs=function(t,e,n){var r=t.document,i={type:"ready"};if(n.domLoaded)return void e(i);var o=function(){Ks(t,"DOMContentLoaded",o),Ks(t,"load",o),n.domLoaded||(n.domLoaded=!0,e(i)),t=null};!function(){return"complete"===r.readyState||"interactive"===r.readyState&&r.body}()?Ys(t,"DOMContentLoaded",o):o(),n.domLoaded||Ys(t,"load",o)},Zs=function(){function t(){this.domLoaded=!1,this.events={},this.count=1,this.expando=Ws+(+new Date).toString(32),this.hasMouseEnterLeave="onmouseenter"in document.documentElement,this.hasFocusIn="onfocusin"in document.documentElement,this.count=1}return t.prototype.bind=function(t,e,n,r){var i,o,a,s,u,l,c,f=this,d=window,h=function(t){f.executeHandlers(Js(t||d.event),i)};if(t&&3!==t.nodeType&&8!==t.nodeType){t[f.expando]?i=t[f.expando]:(i=f.count++,t[f.expando]=i,f.events[i]={}),r=r||t;var p=e.split(" ");for(a=p.length;a--;)s=p[a],l=h,u=c=!1,"DOMContentLoaded"===s&&(s="ready"),f.domLoaded&&"ready"===s&&"complete"===t.readyState?n.call(r,Js({type:s})):(f.hasMouseEnterLeave||(u=f.mouseEnterLeave[s])&&(l=function(t){var e=t.currentTarget,n=t.relatedTarget;if(n&&e.contains)n=e.contains(n);else for(;n&&n!==e;)n=n.parentNode;n||(t=Js(t||d.event),t.type="mouseout"===t.type?"mouseleave":"mouseenter",t.target=e,f.executeHandlers(t,i))}),f.hasFocusIn||"focusin"!==s&&"focusout"!==s||(c=!0,u="focusin"===s?"focus":"blur",l=function(t){t=Js(t||d.event),t.type="focus"===t.type?"focusin":"focusout",f.executeHandlers(t,i)}),o=f.events[i][s],o?"ready"===s&&f.domLoaded?n(Js({type:s})):o.push({func:n,scope:r}):(f.events[i][s]=o=[{func:n,scope:r}],o.fakeName=u,o.capture=c,o.nativeHandler=l,"ready"===s?Qs(t,l,f):Ys(t,u||s,l,c)));return t=o=null,n}},t.prototype.unbind=function(t,e,n){var r,i,o,a,s;if(!t||3===t.nodeType||8===t.nodeType)return this;var u=t[this.expando];if(u){if(s=this.events[u],e){var l=e.split(" ");for(i=l.length;i--;)if(a=l[i],r=s[a]){if(n)for(o=r.length;o--;)if(r[o].func===n){var c=r.nativeHandler,f=r.fakeName,d=r.capture;r=r.slice(0,o).concat(r.slice(o+1)),r.nativeHandler=c,r.fakeName=f,r.capture=d,s[a]=r}n&&0!==r.length||(delete s[a],Ks(t,r.fakeName||a,r.nativeHandler,r.capture))}}else Ht(s,function(e,n){Ks(t,e.fakeName||n,e.nativeHandler,e.capture)}),s={};for(a in s)if(te(s,a))return this;delete this.events[u];try{delete t[this.expando]}catch(e){t[this.expando]=null}}return this},t.prototype.fire=function(t,e,n){var r;if(!t||3===t.nodeType||8===t.nodeType)return this;var i=Js({type:e,target:t},n);do{r=t[this.expando],r&&this.executeHandlers(i,r),t=t.parentNode||t.ownerDocument||t.defaultView||t.parentWindow}while(t&&!i.isPropagationStopped());return this},t.prototype.clean=function(t){var e,n;if(!t||3===t.nodeType||8===t.nodeType)return this;if(t[this.expando]&&this.unbind(t),t.getElementsByTagName||(t=t.document),t&&t.getElementsByTagName)for(this.unbind(t),n=t.getElementsByTagName("*"),e=n.length;e--;)t=n[e],t[this.expando]&&this.unbind(t);return this},t.prototype.destroy=function(){this.events={}},t.prototype.cancel=function(t){return t&&(t.preventDefault(),t.stopImmediatePropagation()),!1},t.prototype.executeHandlers=function(t,e){var n=this.events[e],r=n&&n[t.type];if(r)for(var i=0,o=r.length;i<o;i++){var a=r[i];if(a&&!1===a.func.call(a.scope,t)&&t.preventDefault(),t.isImmediatePropagationStopped())return}},t.Event=new t,t}(),tu="sizzle"+-new Date,eu=window.document,nu=0,ru=0,iu=s(),ou=s(),au=s(),su=function(t,e){return t===e&&(co=!0),0},uu="undefined",lu=1<<31,cu={}.hasOwnProperty,fu=[],du=fu.pop,hu=fu.push,pu=fu.push,gu=fu.slice,mu=fu.indexOf||function(t){for(var e=0,n=this.length;e<n;e++)if(this[e]===t)return e;return-1},vu="[\\x20\\t\\r\\n\\f]",yu="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",bu="\\["+vu+"*("+yu+")(?:"+vu+"*([*^$|!~]?=)"+vu+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+yu+"))|)"+vu+"*\\]",_u=":("+yu+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+bu+")*)|.*)\\)|)",wu=new RegExp("^"+vu+"+|((?:^|[^\\\\])(?:\\\\.)*)"+vu+"+$","g"),xu=new RegExp("^"+vu+"*,"+vu+"*"),ku=new RegExp("^"+vu+"*([>+~]|"+vu+")"+vu+"*"),Su=new RegExp("="+vu+"*([^\\]'\"]*?)"+vu+"*\\]","g"),Cu=new RegExp(_u),Eu=new RegExp("^"+yu+"$"),Tu={ID:new RegExp("^#("+yu+")"),CLASS:new RegExp("^\\.("+yu+")"),TAG:new RegExp("^("+yu+"|[*])"),ATTR:new RegExp("^"+bu),PSEUDO:new RegExp("^"+_u),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+vu+"*(even|odd|(([+-]|)(\\d*)n|)"+vu+"*(?:([+-]|)"+vu+"*(\\d+)|))"+vu+"*\\)|)","i"),bool:new RegExp("^(?:checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped)$","i"),needsContext:new RegExp("^"+vu+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+vu+"*((?:-\\d)?\\d*)"+vu+"*\\)|)(?=[^-]|$)","i")},Au=/^(?:input|select|textarea|button)$/i,Ou=/^h\d$/i,Pu=/^[^{]+\{\s*\[native \w/,Nu=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Du=/[+~]/,Mu=/'|\\/g,Iu=new RegExp("\\\\([\\da-f]{1,6}"+vu+"?|("+vu+")|.)","ig"),Ru=function(t,e,n){var r="0x"+e-65536;return r!==r||n?e:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)};try{pu.apply(fu=gu.call(eu.childNodes),eu.childNodes),fu[eu.childNodes.length].nodeType}catch(t){pu={apply:fu.length?function(t,e){hu.apply(t,gu.call(e))}:function(t,e){for(var n=t.length,r=0;t[n++]=e[r++];);t.length=n-1}}}var $u=function(t,e,n,r){var i,o,a,s,u,l,c,f,d,p;if((e?e.ownerDocument||e:eu)!==ho&&fo(e),e=e||ho,n=n||[],!t||"string"!=typeof t)return n;if(1!==(s=e.nodeType)&&9!==s)return[];if(go&&!r){if(i=Nu.exec(t))if(a=i[1]){if(9===s){if(!(o=e.getElementById(a))||!o.parentNode)return n;if(o.id===a)return n.push(o),n}else if(e.ownerDocument&&(o=e.ownerDocument.getElementById(a))&&bo(e,o)&&o.id===a)return n.push(o),n}else{if(i[2])return pu.apply(n,e.getElementsByTagName(t)),n;if((a=i[3])&&eo.getElementsByClassName)return pu.apply(n,e.getElementsByClassName(a)),n}if(eo.qsa&&(!mo||!mo.test(t))){if(f=c=tu,d=e,p=9===s&&t,1===s&&"object"!==e.nodeName.toLowerCase()){for(l=oo(t),(c=e.getAttribute("id"))?f=c.replace(Mu,"\\$&"):e.setAttribute("id",f),f="[id='"+f+"'] ",u=l.length;u--;)l[u]=f+g(l[u]);d=Du.test(t)&&h(e.parentNode)||e,p=l.join(",")}if(p)try{return pu.apply(n,d.querySelectorAll(p)),n}catch(t){}finally{c||e.removeAttribute("id")}}}return so(t.replace(wu,"$1"),e,n,r)};eo=$u.support={},io=$u.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},fo=$u.setDocument=function(t){var e,n=t?t.ownerDocument||t:eu,r=n.defaultView;return n!==ho&&9===n.nodeType&&n.documentElement?(ho=n,po=n.documentElement,go=!io(n),r&&r!==function(t){try{return t.top}catch(t){}return null}(r)&&(r.addEventListener?r.addEventListener("unload",function(){fo()},!1):r.attachEvent&&r.attachEvent("onunload",function(){fo()})),eo.attributes=!0,eo.getElementsByTagName=!0,eo.getElementsByClassName=Pu.test(n.getElementsByClassName),eo.getById=!0,no.find.ID=function(t,e){if(typeof e.getElementById!==uu&&go){var n=e.getElementById(t);return n&&n.parentNode?[n]:[]}},no.filter.ID=function(t){var e=t.replace(Iu,Ru);return function(t){return t.getAttribute("id")===e}},no.find.TAG=eo.getElementsByTagName?function(t,e){if(typeof e.getElementsByTagName!==uu)return e.getElementsByTagName(t)}:function(t,e){var n,r=[],i=0,o=e.getElementsByTagName(t);if("*"===t){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},no.find.CLASS=eo.getElementsByClassName&&function(t,e){if(go)return e.getElementsByClassName(t)},vo=[],mo=[],eo.disconnectedMatch=!0,mo=mo.length&&new RegExp(mo.join("|")),vo=vo.length&&new RegExp(vo.join("|")),e=Pu.test(po.compareDocumentPosition),bo=e||Pu.test(po.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,r=e&&e.parentNode;return t===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):t.compareDocumentPosition&&16&t.compareDocumentPosition(r)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},su=e?function(t,e){if(t===e)return co=!0,0;var r=!t.compareDocumentPosition-!e.compareDocumentPosition;return r||(r=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1,1&r||!eo.sortDetached&&e.compareDocumentPosition(t)===r?t===n||t.ownerDocument===eu&&bo(eu,t)?-1:e===n||e.ownerDocument===eu&&bo(eu,e)?1:lo?mu.call(lo,t)-mu.call(lo,e):0:4&r?-1:1)}:function(t,e){if(t===e)return co=!0,0;var r,i=0,o=t.parentNode,a=e.parentNode,s=[t],u=[e];if(!o||!a)return t===n?-1:e===n?1:o?-1:a?1:lo?mu.call(lo,t)-mu.call(lo,e):0;if(o===a)return l(t,e);for(r=t;r=r.parentNode;)s.unshift(r);for(r=e;r=r.parentNode;)u.unshift(r);for(;s[i]===u[i];)i++;return i?l(s[i],u[i]):s[i]===eu?-1:u[i]===eu?1:0},n):ho},$u.matches=function(t,e){return $u(t,null,null,e)},$u.matchesSelector=function(t,e){if((t.ownerDocument||t)!==ho&&fo(t),e=e.replace(Su,"='$1']"),eo.matchesSelector&&go&&(!vo||!vo.test(e))&&(!mo||!mo.test(e)))try{var n=yo.call(t,e);if(n||eo.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(t){}return $u(e,ho,null,[t]).length>0},$u.contains=function(t,e){return(t.ownerDocument||t)!==ho&&fo(t),bo(t,e)},$u.attr=function(t,e){(t.ownerDocument||t)!==ho&&fo(t);var n=no.attrHandle[e.toLowerCase()],r=n&&cu.call(no.attrHandle,e.toLowerCase())?n(t,e,!go):void 0;return void 0!==r?r:eo.attributes||!go?t.getAttribute(e):(r=t.getAttributeNode(e))&&r.specified?r.value:null},$u.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},$u.uniqueSort=function(t){var e,n=[],r=0,i=0;if(co=!eo.detectDuplicates,lo=!eo.sortStable&&t.slice(0),t.sort(su),co){for(;e=t[i++];)e===t[i]&&(r=n.push(i));for(;r--;)t.splice(n[r],1)}return lo=null,t},ro=$u.getText=function(t){var e,n="",r=0,i=t.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=ro(t)}else if(3===i||4===i)return t.nodeValue}else for(;e=t[r++];)n+=ro(e);return n},no=$u.selectors={cacheLength:50,createPseudo:u,match:Tu,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(Iu,Ru),t[3]=(t[3]||t[4]||t[5]||"").replace(Iu,Ru),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||$u.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&$u.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return Tu.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&Cu.test(n)&&(e=oo(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(Iu,Ru).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=iu[t+" "];return e||(e=new RegExp("(^|"+vu+")"+t+"("+vu+"|$)"))&&iu(t,function(t){return e.test("string"==typeof t.className&&t.className||typeof t.getAttribute!==uu&&t.getAttribute("class")||"")})},ATTR:function(t,e,n){return function(r){var i=$u.attr(r,t);return null==i?"!="===e:!e||(i+="","="===e?i===n:"!="===e?i!==n:"^="===e?n&&0===i.indexOf(n):"*="===e?n&&i.indexOf(n)>-1:"$="===e?n&&i.slice(-n.length)===n:"~="===e?(" "+i+" ").indexOf(n)>-1:"|="===e&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(t,e,n,r,i){var o="nth"!==t.slice(0,3),a="last"!==t.slice(-4),s="of-type"===e;return 1===r&&0===i?function(t){return!!t.parentNode}:function(e,n,u){var l,c,f,d,h,p,g=o!==a?"nextSibling":"previousSibling",m=e.parentNode,v=s&&e.nodeName.toLowerCase(),y=!u&&!s;if(m){if(o){for(;g;){for(f=e;f=f[g];)if(s?f.nodeName.toLowerCase()===v:1===f.nodeType)return!1;p=g="only"===t&&!p&&"nextSibling"}return!0}if(p=[a?m.firstChild:m.lastChild],a&&y){for(c=m[tu]||(m[tu]={}),l=c[t]||[],h=l[0]===nu&&l[1],d=l[0]===nu&&l[2],f=h&&m.childNodes[h];f=++h&&f&&f[g]||(d=h=0)||p.pop();)if(1===f.nodeType&&++d&&f===e){c[t]=[nu,h,d];break}}else if(y&&(l=(e[tu]||(e[tu]={}))[t])&&l[0]===nu)d=l[1];else for(;(f=++h&&f&&f[g]||(d=h=0)||p.pop())&&((s?f.nodeName.toLowerCase()!==v:1!==f.nodeType)||!++d||(y&&((f[tu]||(f[tu]={}))[t]=[nu,d]),f!==e)););return(d-=i)===r||d%r==0&&d/r>=0}}},PSEUDO:function(t,e){var n,r=no.pseudos[t]||no.setFilters[t.toLowerCase()]||$u.error("unsupported pseudo: "+t);return r[tu]?r(e):r.length>1?(n=[t,t,"",e],no.setFilters.hasOwnProperty(t.toLowerCase())?u(function(t,n){for(var i,o=r(t,e),a=o.length;a--;)i=mu.call(t,o[a]),t[i]=!(n[i]=o[a])}):function(t){return r(t,0,n)}):r}},pseudos:{not:u(function(t){var e=[],n=[],r=ao(t.replace(wu,"$1"));return r[tu]?u(function(t,e,n,i){for(var o,a=r(t,null,i,[]),s=t.length;s--;)(o=a[s])&&(t[s]=!(e[s]=o))}):function(t,i,o){return e[0]=t,r(e,null,o,n),e[0]=null,!n.pop()}}),has:u(function(t){return function(e){return $u(t,e).length>0}}),contains:u(function(t){return t=t.replace(Iu,Ru),function(e){return(e.textContent||e.innerText||ro(e)).indexOf(t)>-1}}),lang:u(function(t){return Eu.test(t||"")||$u.error("unsupported lang: "+t),t=t.replace(Iu,Ru).toLowerCase(),function(e){var n;do{if(n=go?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(n=n.toLowerCase())===t||0===n.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(t){var e=window.location&&window.location.hash;return e&&e.slice(1)===t.id},root:function(t){return t===po},focus:function(t){return t===ho.activeElement&&(!ho.hasFocus||ho.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:function(t){return!1===t.disabled},disabled:function(t){return!0===t.disabled},checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!no.pseudos.empty(t)},header:function(t){return Ou.test(t.nodeName)},input:function(t){return Au.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:d(function(){return[0]}),last:d(function(t,e){return[e-1]}),eq:d(function(t,e,n){return[n<0?n+e:n]}),even:d(function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t}),odd:d(function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t}),lt:d(function(t,e,n){for(var r=n<0?n+e:n;--r>=0;)t.push(r);return t}),gt:d(function(t,e,n){for(var r=n<0?n+e:n;++r<e;)t.push(r);return t})}},no.pseudos.nth=no.pseudos.eq,wt(["radio","checkbox","file","password","image"],function(t){no.pseudos[t]=c(t)}),wt(["submit","reset"],function(t){no.pseudos[t]=f(t)}),p.prototype=no.filters=no.pseudos,no.setFilters=new p,oo=$u.tokenize=function(t,e){var n,r,i,o,a,s,u,l=ou[t+" "];if(l)return e?0:l.slice(0);for(a=t,s=[],u=no.preFilter;a;){n&&!(r=xu.exec(a))||(r&&(a=a.slice(r[0].length)||a),s.push(i=[])),n=!1,(r=ku.exec(a))&&(n=r.shift(),i.push({value:n,type:r[0].replace(wu," ")}),a=a.slice(n.length));for(o in no.filter)no.filter.hasOwnProperty(o)&&(!(r=Tu[o].exec(a))||u[o]&&!(r=u[o](r))||(n=r.shift(),i.push({value:n,type:o,matches:r}),a=a.slice(n.length)));if(!n)break}return e?a.length:a?$u.error(t):ou(t,s).slice(0)},ao=$u.compile=function(t,e){var n,r=[],i=[],o=au[t+" "];if(!o){for(e||(e=oo(t)),n=e.length;n--;)o=w(e[n]),o[tu]?r.push(o):i.push(o);o=au(t,x(i,r)),o.selector=t}return o},so=$u.select=function(t,e,n,r){var i,o,a,s,u,l="function"==typeof t&&t,c=!r&&oo(t=l.selector||t);if(n=n||[],1===c.length){if(o=c[0]=c[0].slice(0),o.length>2&&"ID"===(a=o[0]).type&&eo.getById&&9===e.nodeType&&go&&no.relative[o[1].type]){if(!(e=(no.find.ID(a.matches[0].replace(Iu,Ru),e)||[])[0]))return n;l&&(e=e.parentNode),t=t.slice(o.shift().value.length)}for(i=Tu.needsContext.test(t)?0:o.length;i--&&(a=o[i],!no.relative[s=a.type]);)if((u=no.find[s])&&(r=u(a.matches[0].replace(Iu,Ru),Du.test(o[0].type)&&h(e.parentNode)||e))){if(o.splice(i,1),!(t=r.length&&g(o)))return pu.apply(n,r),n;break}}return(l||ao(t,c))(r,e,!go,n,Du.test(t)&&h(e.parentNode)||e),n},eo.sortStable=tu.split("").sort(su).join("")===tu,eo.detectDuplicates=!!co,fo(),eo.sortDetached=!0;var Lu=document,ju=Array.prototype.push,Fu=Array.prototype.slice,Bu=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,Vu=Zs.Event,zu=_n.makeMap("children,contents,next,prev"),Uu=function(t){return void 0!==t},Hu=function(t){return"string"==typeof t},qu=function(t){return t&&t===t.window},Wu=function(t,e){e=e||Lu;var n=e.createElement("div"),r=e.createDocumentFragment();n.innerHTML=t;for(var i;i=n.firstChild;)r.appendChild(i);return r},Gu=function(t,e,n,r){var i;if(Hu(e))e=Wu(e,ul(t[0]));else if(e.length&&!e.nodeType){if(e=dl.makeArray(e),r)for(i=e.length-1;i>=0;i--)Gu(t,e[i],n,r);else for(i=0;i<e.length;i++)Gu(t,e[i],n,r);return t}if(e.nodeType)for(i=t.length;i--;)n.call(t[i],e);return t},Yu=function(t,e){return t&&e&&-1!==(" "+t.className+" ").indexOf(" "+e+" ")},Ku=function(t,e,n){var r,i;return e=dl(e)[0],t.each(function(){var t=this;n&&r===t.parentNode?i.appendChild(t):(r=t.parentNode,i=e.cloneNode(!1),t.parentNode.insertBefore(i,t),i.appendChild(t))}),t},Xu=_n.makeMap("fillOpacity fontWeight lineHeight opacity orphans widows zIndex zoom"," "),Ju=_n.makeMap("checked compact declare defer disabled ismap multiple nohref noshade nowrap readonly selected"," "),Qu={for:"htmlFor",class:"className",readonly:"readOnly"},Zu={float:"cssFloat"},tl={},el={},nl=function(t,e){return new dl.fn.init(t,e)},rl=function(t,e){var n;if(e.indexOf)return e.indexOf(t);for(n=e.length;n--;)if(e[n]===t)return n;return-1},il=/^\s*|\s*$/g,ol=function(t){return null===t||void 0===t?"":(""+t).replace(il,"")},al=function(t,e){var n,r,i,o;if(t)if(void 0===(n=t.length)){for(r in t)if(t.hasOwnProperty(r)&&(o=t[r],!1===e.call(o,r,o)))break}else for(i=0;i<n&&(o=t[i],!1!==e.call(o,i,o));i++);return t},sl=function(t,e){var n=[];return al(t,function(t,r){e(r,t)&&n.push(r)}),n},ul=function(t){return t?9===t.nodeType?t:t.ownerDocument:Lu};nl.fn=nl.prototype={constructor:nl,selector:"",context:null,length:0,init:function(t,e){var n,r,i=this;if(!t)return i;if(t.nodeType)return i.context=i[0]=t,i.length=1,i;if(e&&e.nodeType)i.context=e;else{if(e)return dl(t).attr(e);i.context=e=document}if(Hu(t)){if(i.selector=t,!(n="<"===t.charAt(0)&&">"===t.charAt(t.length-1)&&t.length>=3?[null,t,null]:Bu.exec(t)))return dl(e).find(t);if(n[1])for(r=Wu(t,ul(e)).firstChild;r;)ju.call(i,r),r=r.nextSibling;else{if(!(r=ul(e).getElementById(n[2])))return i;if(r.id!==n[2])return i.find(t);i.length=1,i[0]=r}}else this.add(t,!1);return i},toArray:function(){return _n.toArray(this)},add:function(t,e){var n,r,i=this;if(Hu(t))return i.add(dl(t));if(!1!==e)for(n=dl.unique(i.toArray().concat(dl.makeArray(t))),i.length=n.length,r=0;r<n.length;r++)i[r]=n[r];else ju.apply(i,dl.makeArray(t));return i},attr:function(t,e){var n,r=this;if("object"==typeof t)al(t,function(t,e){r.attr(t,e)});else{if(!Uu(e)){if(r[0]&&1===r[0].nodeType){if((n=tl[t])&&n.get)return n.get(r[0],t);if(Ju[t])return r.prop(t)?t:void 0;e=r[0].getAttribute(t,2),null===e&&(e=void 0)}return e}this.each(function(){var n;if(1===this.nodeType){if((n=tl[t])&&n.set)return void n.set(this,e);null===e?this.removeAttribute(t,2):this.setAttribute(t,e,2)}})}return r},removeAttr:function(t){return this.attr(t,null)},prop:function(t,e){var n=this;if("object"==typeof(t=Qu[t]||t))al(t,function(t,e){n.prop(t,e)});else{if(!Uu(e))return n[0]&&n[0].nodeType&&t in n[0]?n[0][t]:e;this.each(function(){1===this.nodeType&&(this[t]=e)})}return n},css:function(t,e){var n,r,i=this,o=function(t){return t.replace(/-(\D)/g,function(t,e){return e.toUpperCase()})},a=function(t){return t.replace(/[A-Z]/g,function(t){return"-"+t})};if("object"==typeof t)al(t,function(t,e){i.css(t,e)});else if(Uu(e))t=o(t),"number"!=typeof e||Xu[t]||(e=e.toString()+"px"),i.each(function(){var n=this.style;if((r=el[t])&&r.set)return void r.set(this,e);try{this.style[Zu[t]||t]=e}catch(t){}null!==e&&""!==e||(n.removeProperty?n.removeProperty(a(t)):n.removeAttribute(t))});else{if(n=i[0],(r=el[t])&&r.get)return r.get(n);if(!n.ownerDocument.defaultView)return n.currentStyle?n.currentStyle[o(t)]:"";try{return n.ownerDocument.defaultView.getComputedStyle(n,null).getPropertyValue(a(t))}catch(t){return}}return i},remove:function(){for(var t,e=this,n=this.length;n--;)t=e[n],Vu.clean(t),t.parentNode&&t.parentNode.removeChild(t);return this},empty:function(){for(var t,e=this,n=this.length;n--;)for(t=e[n];t.firstChild;)t.removeChild(t.firstChild);return this},html:function(t){var e,n=this;if(Uu(t)){e=n.length;try{for(;e--;)n[e].innerHTML=t}catch(r){dl(n[e]).empty().append(t)}return n}return n[0]?n[0].innerHTML:""},text:function(t){var e,n=this;if(Uu(t)){for(e=n.length;e--;)"innerText"in n[e]?n[e].innerText=t:n[0].textContent=t;return n}return n[0]?n[0].innerText||n[0].textContent:""},append:function(){return Gu(this,arguments,function(t){(1===this.nodeType||this.host&&1===this.host.nodeType)&&this.appendChild(t)})},prepend:function(){return Gu(this,arguments,function(t){(1===this.nodeType||this.host&&1===this.host.nodeType)&&this.insertBefore(t,this.firstChild)},!0)},before:function(){var t=this;return t[0]&&t[0].parentNode?Gu(t,arguments,function(t){this.parentNode.insertBefore(t,this)}):t},after:function(){var t=this;return t[0]&&t[0].parentNode?Gu(t,arguments,function(t){this.parentNode.insertBefore(t,this.nextSibling)},!0):t},appendTo:function(t){return dl(t).append(this),this},prependTo:function(t){return dl(t).prepend(this),this},replaceWith:function(t){return this.before(t).remove()},wrap:function(t){return Ku(this,t)},wrapAll:function(t){return Ku(this,t,!0)},wrapInner:function(t){return this.each(function(){dl(this).contents().wrapAll(t)}),this},unwrap:function(){return this.parent().each(function(){dl(this).replaceWith(this.childNodes)})},clone:function(){var t=[];return this.each(function(){t.push(this.cloneNode(!0))}),dl(t)},addClass:function(t){return this.toggleClass(t,!0)},removeClass:function(t){return this.toggleClass(t,!1)},toggleClass:function(t,e){var n=this;return"string"!=typeof t?n:(-1!==t.indexOf(" ")?al(t.split(" "),function(){n.toggleClass(this,e)}):n.each(function(n,r){var i=Yu(r,t);if(i!==e){var o=r.className;i?r.className=ol((" "+o+" ").replace(" "+t+" "," ")):r.className+=o?" "+t:t}}),n)},hasClass:function(t){return Yu(this[0],t)},each:function(t){return al(this,t)},on:function(t,e){return this.each(function(){Vu.bind(this,t,e)})},off:function(t,e){return this.each(function(){Vu.unbind(this,t,e)})},trigger:function(t){return this.each(function(){"object"==typeof t?Vu.fire(this,t.type,t):Vu.fire(this,t)})},show:function(){return this.css("display","")},hide:function(){return this.css("display","none")},slice:function(){return dl(Fu.apply(this,arguments))},eq:function(t){return-1===t?this.slice(t):this.slice(t,+t+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},find:function(t){var e,n,r=[];for(e=0,n=this.length;e<n;e++)dl.find(t,this[e],r);return dl(r)},filter:function(t){return dl("function"==typeof t?sl(this.toArray(),function(e,n){return t(n,e)}):dl.filter(t,this.toArray()))},closest:function(t){var e=[];return t instanceof dl&&(t=t[0]),this.each(function(n,r){for(;r;){if("string"==typeof t&&dl(r).is(t)){e.push(r);break}if(r===t){e.push(r);break}r=r.parentNode}}),dl(e)},offset:function(t){var e,n,r,i,o=0,a=0;return t?this.css(t):(e=this[0],e&&(n=e.ownerDocument,r=n.documentElement,e.getBoundingClientRect&&(i=e.getBoundingClientRect(),o=i.left+(r.scrollLeft||n.body.scrollLeft)-r.clientLeft,a=i.top+(r.scrollTop||n.body.scrollTop)-r.clientTop)),{left:o,top:a})},push:ju,sort:Array.prototype.sort,splice:Array.prototype.splice},_n.extend(nl,{extend:_n.extend,makeArray:function(t){return qu(t)||t.nodeType?[t]:_n.toArray(t)},inArray:rl,isArray:_n.isArray,each:al,trim:ol,grep:sl,find:$u,expr:$u.selectors,unique:$u.uniqueSort,text:$u.getText,contains:$u.contains,filter:function(t,e,n){var r=e.length;for(n&&(t=":not("+t+")");r--;)1!==e[r].nodeType&&e.splice(r,1);return e=1===e.length?dl.find.matchesSelector(e[0],t)?[e[0]]:[]:dl.find.matches(t,e)}});var ll=function(t,e,n){var r=[],i=t[e];for("string"!=typeof n&&n instanceof dl&&(n=n[0]);i&&9!==i.nodeType;){if(void 0!==n){if(i===n)break;if("string"==typeof n&&dl(i).is(n))break}1===i.nodeType&&r.push(i),i=i[e]}return r},cl=function(t,e,n,r){var i=[];for(r instanceof dl&&(r=r[0]);t;t=t[e])if(!n||t.nodeType===n){if(void 0!==r){if(t===r)break;if("string"==typeof r&&dl(t).is(r))break}i.push(t)}return i},fl=function(t,e,n){for(t=t[e];t;t=t[e])if(t.nodeType===n)return t;return null};al({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return ll(t,"parentNode")},next:function(t){return fl(t,"nextSibling",1)},prev:function(t){return fl(t,"previousSibling",1)},children:function(t){return cl(t.firstChild,"nextSibling",1)},contents:function(t){return _n.toArray(("iframe"===t.nodeName?t.contentDocument||t.contentWindow.document:t).childNodes)}},function(t,e){nl.fn[t]=function(n){var r=this,i=[];r.each(function(){var t=e.call(i,this,n,i);t&&(dl.isArray(t)?i.push.apply(i,t):i.push(t))}),this.length>1&&(zu[t]||(i=dl.unique(i)),0===t.indexOf("parents")&&(i=i.reverse()));var o=dl(i);return n?o.filter(n):o}}),al({parentsUntil:function(t,e){return ll(t,"parentNode",e)},nextUntil:function(t,e){return cl(t,"nextSibling",1,e).slice(1)},prevUntil:function(t,e){return cl(t,"previousSibling",1,e).slice(1)}},function(t,e){nl.fn[t]=function(n,r){var i=this,o=[];i.each(function(){var t=e.call(o,this,n,o);t&&(dl.isArray(t)?o.push.apply(o,t):o.push(t))}),this.length>1&&(o=dl.unique(o),0!==t.indexOf("parents")&&"prevUntil"!==t||(o=o.reverse()));var a=dl(o);return r?a.filter(r):a}}),nl.fn.is=function(t){return!!t&&this.filter(t).length>0},nl.fn.init.prototype=nl.fn,nl.overrideDefaults=function(t){var e,n=function(r,i){return e=e||t(),0===arguments.length&&(r=e.element),i||(i=e.context),new n.fn.init(r,i)};return dl.extend(n,this),n},nl.attrHooks=tl,nl.cssHooks=el;var dl=nl,hl=_n.each,pl=_n.grep,gl=sn.ie,ml=/^([a-z0-9],?)+$/i,vl=function(t,e,n){var r=e.keep_values,i={set:function(t,r,i){e.url_converter&&null!==r&&(r=e.url_converter.call(e.url_converter_scope||n(),r,i,t[0])),t.attr("data-mce-"+i,r).attr(i,r)},get:function(t,e){return t.attr("data-mce-"+e)||t.attr(e)}},o={style:{set:function(e,n){if(null!==n&&"object"==typeof n)return void e.css(n);r&&e.attr("data-mce-style",n),null!==n&&"string"==typeof n?(e.removeAttr("style"),e.css(t.parse(n))):e.attr("style",n)},get:function(e){var n=e.attr("data-mce-style")||e.attr("style");return n=t.serialize(t.parse(n),e[0].nodeName)}}};return r&&(o.href=o.src=i),o},yl=function(t,e){var n=e.attr("style"),r=t.serialize(t.parse(n),e[0].nodeName);r||(r=null),e.attr("data-mce-style",r)},bl=function(t,e){var n,r,i=0;if(t)for(n=t.nodeType,t=t.previousSibling;t;t=t.previousSibling)r=t.nodeType,(!e||3!==r||r!==n&&t.nodeValue.length)&&(i++,n=r);return i},_l=function(t,e){void 0===e&&(e={});var n={},r=window,i={},o=0,a=Lo.forElement(En.fromDom(t),{contentCssCors:e.contentCssCors,referrerPolicy:e.referrerPolicy}),s=[],u=e.schema?e.schema:Ls({}),l=Fs({url_converter:e.url_converter,url_converter_scope:e.url_converter_scope},e.schema),c=e.ownEvents?new Zs:Zs.Event,f=u.getBlockElements(),d=dl.overrideDefaults(function(){return{context:t,element:At.getRoot()}}),h=function(t){if("string"==typeof t)return!!f[t];if(t){var e=t.nodeType;if(e)return!(1!==e||!f[t.nodeName])}return!1},p=function(e){return e&&t&&B(e)?t.getElementById(e):e},g=function(t){return d("string"==typeof t?p(t):t)},m=function(t,e,n){var r,i,o=g(t);return o.length&&(r=Ot[e],i=r&&r.get?r.get(o,e):o.attr(e)),void 0===i&&(i=n||""),i},v=function(t){var e=p(t);return e?e.attributes:[]},y=function(t,n,r){""===r&&(r=null);var i=g(t),o=i.attr(n);if(i.length){var a=Ot[n];a&&a.set?a.set(i,r,n):i.attr(n,r),o!==r&&e.onSetAttrib&&e.onSetAttrib({attrElm:i,attrName:n,attrValue:r})}},b=function(e,n){if(!gl||1!==e.nodeType||n)return e.cloneNode(n);var r=t.createElement(e.nodeName);return hl(v(e),function(t){y(r,t.nodeName,m(e,t.nodeName))}),r},_=function(){return e.root_element||t.body},w=function(t){var e=Vr(t);return{x:e.x,y:e.y,w:e.width,h:e.height}},x=function(e,n){return Ii(t.body,p(e),n)},k=function(t,n,r){var i=B(n)?g(t).css(n,r):g(t).css(n);e.update_styles&&yl(l,i)},S=function(t,n){var r=g(t).css(n);e.update_styles&&yl(l,r)},C=function(t,e,n){var r=g(t);return n?r.css(e):(e=e.replace(/-(\D)/g,function(t,e){return e.toUpperCase()}),"float"===e&&(e=sn.browser.isIE()?"styleFloat":"cssFloat"),r[0]&&r[0].style?r[0].style[e]:void 0)},E=function(t){var e,n;return t=p(t),e=C(t,"width"),n=C(t,"height"),-1===e.indexOf("px")&&(e=0),-1===n.indexOf("px")&&(n=0),{w:parseInt(e,10)||t.offsetWidth||t.clientWidth,h:parseInt(n,10)||t.offsetHeight||t.clientHeight}},T=function(t){t=p(t);var e=x(t),n=E(t);return{x:e.x,y:e.y,w:n.w,h:n.h}},A=function(t,e){var n;if(!t)return!1;if(!Array.isArray(t)){if("*"===e)return 1===t.nodeType;if(ml.test(e)){var r=e.toLowerCase().split(/,/),i=t.nodeName.toLowerCase();for(n=r.length-1;n>=0;n--)if(r[n]===i)return!0;return!1}if(t.nodeType&&1!==t.nodeType)return!1}var o=Array.isArray(t)?t:[t];return $u(e,o[0].ownerDocument||o[0],null,o).length>0},O=function(t,e,n,r){var i,o=[],a=p(t);for(r=void 0===r,n=n||("BODY"!==_().nodeName?_().parentNode:null),_n.is(e,"string")&&(i=e,e="*"===e?function(t){return 1===t.nodeType}:function(t){return A(t,i)});a&&!(a===n||W(a.nodeType)||ei(a)||ni(a));){if(!e||"function"==typeof e&&e(a)){if(!r)return[a];o.push(a)}a=a.parentNode}return r?o:null},P=function(t,e,n){var r=O(t,e,n,!1);return r&&r.length>0?r[0]:null},N=function(t,e,n){var r=e;if(t)for("string"==typeof e&&(r=function(t){return A(t,e)}),t=t[n];t;t=t[n])if("function"==typeof r&&r(t))return t;return null},D=function(t,e){return N(t,e,"nextSibling")},M=function(t,e){return N(t,e,"previousSibling")},I=function(n,r){return $u(n,p(r)||e.root_element||t,[])},R=function(t,e,n){var r,i="string"==typeof t?p(t):t;if(!i)return!1;if(_n.isArray(i)&&(i.length||0===i.length))return r=[],hl(i,function(t,i){t&&r.push(e.call(n,"string"==typeof t?p(t):t,i))}),r;var o=n||this;return e.call(o,i)},$=function(t,e){g(t).each(function(t,n){hl(e,function(t,e){y(n,e,t)})})},L=function(t,e){var n=g(t);gl?n.each(function(t,n){if(!1!==n.canHaveHTML){for(;n.firstChild;)n.removeChild(n.firstChild);try{n.innerHTML="<br>"+e,n.removeChild(n.firstChild)}catch(t){dl("<div></div>").html("<br>"+e).contents().slice(1).appendTo(n)}return e}}):n.html(e)},j=function(e,n,r,i,o){return R(e,function(e){var a="string"==typeof n?t.createElement(n):n;return $(a,r),i&&("string"!=typeof i&&i.nodeType?a.appendChild(i):"string"==typeof i&&L(a,i)),o?a:e.appendChild(a)})},F=function(e,n,r){return j(t.createElement(e),e,n,r,!0)},V=Ss.decode,z=Ss.encodeAllRaw,U=function(t,e,n){var r,i="";i+="<"+t;for(r in e)ee(e,r)&&(i+=" "+r+'="'+z(e[r])+'"');return void 0!==n?i+">"+n+"</"+t+">":i+" />"},H=function(e){var n,r=t.createElement("div"),i=t.createDocumentFragment();for(i.appendChild(r),e&&(r.innerHTML=e);n=r.firstChild;)i.appendChild(n);return i.removeChild(r),i},q=function(t,e){var n=g(t);return e?n.each(function(){for(var t;t=this.firstChild;)3===t.nodeType&&0===t.data.length?this.removeChild(t):this.parentNode.insertBefore(t,this)}).remove():n.remove(),n.length>1?n.toArray():n[0]},G=function(t){return R(t,function(t){var e,n=t.attributes;for(e=n.length-1;e>=0;e--)t.removeAttributeNode(n.item(e))})},Y=function(t){return l.parse(t)},K=function(t,e){return l.serialize(t,e)},J=function(e){var r,i;if(At!==_l.DOM&&t===document){if(n[e])return;n[e]=!0}i=t.getElementById("mceDefaultStyles"),i||(i=t.createElement("style"),i.id="mceDefaultStyles",i.type="text/css",r=t.getElementsByTagName("head")[0],r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i)),i.styleSheet?i.styleSheet.cssText+=e:i.appendChild(t.createTextNode(e))},Q=function(t){t||(t=""),wt(t.split(","),function(t){i[t]=!0,a.load(t,X)})},tt=function(t,e,n){g(t).toggleClass(e,n).each(function(){""===this.className&&dl(this).attr("class",null)})},et=function(t,e){g(t).addClass(e)},nt=function(t,e){tt(t,e,!1)},rt=function(t,e){return g(t).hasClass(e)},it=function(t){g(t).show()},ot=function(t){g(t).hide()},at=function(t){return"none"===g(t).css("display")},st=function(t){return(t||"mce_")+o++},ut=function(t){var e="string"==typeof t?p(t):t;return Hr(e)?e.outerHTML:dl("<div></div>").append(dl(e).clone()).html()},lt=function(t,e){g(t).each(function(){try{if("outerHTML"in this)return void(this.outerHTML=e)}catch(t){}q(dl(this).html(e),!0)})},ct=function(t,e){var n=p(e);return R(t,function(t){var e=n.parentNode,r=n.nextSibling;return r?e.insertBefore(t,r):e.appendChild(t),t})},ft=function(t,e,n){return R(e,function(e){return _n.is(e,"array")&&(t=t.cloneNode(!0)),n&&hl(pl(e.childNodes),function(e){t.appendChild(e)}),e.parentNode.replaceChild(t,e)})},dt=function(t,e){var n;return t.nodeName!==e.toUpperCase()&&(n=F(e),hl(v(t),function(e){y(n,e.nodeName,m(t,e.nodeName))}),ft(n,t,!0)),n||t},ht=function(t,e){for(var n,r=t;r;){for(n=e;n&&r!==n;)n=n.parentNode;if(r===n)break;r=r.parentNode}return!r&&t.ownerDocument?t.ownerDocument.documentElement:r},pt=function(t){return l.toHex(_n.trim(t))},gt=function(t){if(Hr(t)){var e="a"===t.nodeName.toLowerCase()&&!m(t,"href")&&m(t,"id");if(m(t,"name")||m(t,"data-mce-bookmark")||e)return!0}return!1},mt=function(t,e){var n,r,i=0;if(gt(t))return!1;if(t=t.firstChild){var o=new jo(t,t.parentNode),a=u?u.getWhiteSpaceElements():{};e=e||(u?u.getNonEmptyElements():null);do{if(n=t.nodeType,Hr(t)){var s=t.getAttribute("data-mce-bogus");if(s){t=o.next("all"===s);continue}if(r=t.nodeName.toLowerCase(),e&&e[r]){if("br"===r){i++,t=o.next();continue}return!1}if(gt(t))return!1}if(8===n)return!1;if(3===n&&!Ua(t.nodeValue))return!1;if(3===n&&t.parentNode&&a[t.parentNode.nodeName]&&Ua(t.nodeValue))return!1;t=o.next()}while(t)}return i<=1},vt=function(){return t.createRange()},yt=function(t,e,n){var r,i,o,a=vt();if(t&&e)return a.setStart(t.parentNode,bl(t)),a.setEnd(e.parentNode,bl(e)),r=a.extractContents(),a=vt(),a.setStart(e.parentNode,bl(e)+1),a.setEnd(t.parentNode,bl(t)+1),i=a.extractContents(),o=t.parentNode,o.insertBefore(as(At,r),t),n?o.insertBefore(n,t):o.insertBefore(e,t),o.insertBefore(as(At,i),t),q(t),n||e},bt=function(n,i,o,a){if(_n.isArray(n)){for(var u=n.length,l=[];u--;)l[u]=bt(n[u],i,o,a);return l}return!e.collect||n!==t&&n!==r||s.push([n,i,o,a]),c.bind(n,i,o,a||At)},_t=function(e,n,i){if(_n.isArray(e)){for(var o=e.length,a=[];o--;)a[o]=_t(e[o],n,i);return a}if(s.length>0&&(e===t||e===r))for(var o=s.length;o--;){var u=s[o];e!==u[0]||n&&n!==u[1]||i&&i!==u[2]||c.unbind(u[0],u[1],u[2])}return c.unbind(e,n,i)},xt=function(t,e,n){return c.fire(t,e,n)},kt=function(t){if(t&&Hr(t)){var e=t.getAttribute("data-mce-contenteditable");return e&&"inherit"!==e?e:"inherit"!==t.contentEditable?t.contentEditable:null}return null},St=function(t){for(var e=_(),n=null;t&&t!==e&&null===(n=kt(t));t=t.parentNode);return n},Ct=function(){if(s.length>0)for(var t=s.length;t--;){var e=s[t];c.unbind(e[0],e[1],e[2])}Ht(i,function(t,e){a.unload(e),delete i[e]}),$u.setDocument&&$u.setDocument()},Et=function(t,e){if(gl){for(;t;){if(e===t)return!0;t=t.parentNode}return!1}return t===e||e.contains(t)},Tt=function(t){return"startContainer: "+t.startContainer.nodeName+", startOffset: "+t.startOffset+", endContainer: "+t.endContainer.nodeName+", endOffset: "+t.endOffset},At={doc:t,settings:e,win:r,files:i,stdMode:!0,boxModel:!0,styleSheetLoader:a,boundEvents:s,styles:l,schema:u,events:c,isBlock:h,$:d,$$:g,root:null,clone:b,getRoot:_,getViewPort:w,getRect:T,getSize:E,getParent:P,getParents:O,get:p,getNext:D,getPrev:M,select:I,is:A,add:j,create:F,createHTML:U,createFragment:H,remove:q,setStyle:k,getStyle:C,setStyles:S,removeAllAttribs:G,setAttrib:y,setAttribs:$,getAttrib:m,getPos:x,parseStyle:Y,serializeStyle:K,addStyle:J,loadCSS:Q,addClass:et,removeClass:nt,hasClass:rt,toggleClass:tt,show:it,hide:ot,isHidden:at,uniqueId:st,setHTML:L,getOuterHTML:ut,setOuterHTML:lt,decode:V,encode:z,insertAfter:ct,replace:ft,rename:dt,findCommonAncestor:ht,toHex:pt,run:R,getAttribs:v,isEmpty:mt,createRng:vt,nodeIndex:bl,split:yt,bind:bt,unbind:_t,fire:xt,getContentEditable:kt,getContentEditableParent:St,destroy:Ct,isChildOf:Et,dumpRng:Tt},Ot=vl(l,e,Z(At));return At};_l.DOM=_l(document),_l.nodeIndex=bl;var wl=_l.DOM,xl=_n.each,kl=_n.grep,Sl=function(){function t(t){void 0===t&&(t={}),this.states={},this.queue=[],this.scriptLoadedCallbacks={},this.queueLoadedCallbacks=[],this.loading=0,this.settings=t}return t.prototype._setReferrerPolicy=function(t){this.settings.referrerPolicy=t},t.prototype.loadScript=function(t,e,n){var r,i=wl,o=function(){i.remove(u),r&&(r.onerror=r.onload=r=null)},a=function(){o(),e()},s=function(){o(),Y(n)?n():"undefined"!=typeof console&&console.log&&console.log("Failed to load script: "+t)},u=i.uniqueId();r=document.createElement("script"),r.id=u,r.type="text/javascript",r.src=_n._addCacheSuffix(t),this.settings.referrerPolicy&&i.setAttrib(r,"referrerpolicy",this.settings.referrerPolicy),r.onload=a,r.onerror=s,(document.getElementsByTagName("head")[0]||document.body).appendChild(r)},t.prototype.isDone=function(t){return 2===this.states[t]},t.prototype.markDone=function(t){this.states[t]=2},t.prototype.add=function(t,e,n,r){var i=this.states[t];this.queue.push(t),void 0===i&&(this.states[t]=0),e&&(this.scriptLoadedCallbacks[t]||(this.scriptLoadedCallbacks[t]=[]),this.scriptLoadedCallbacks[t].push({success:e,failure:r,scope:n||this}))},t.prototype.load=function(t,e,n,r){return this.add(t,e,n,r)},t.prototype.remove=function(t){delete this.states[t],delete this.scriptLoadedCallbacks[t]},t.prototype.loadQueue=function(t,e,n){this.loadScripts(this.queue,t,e,n)},t.prototype.loadScripts=function(t,e,n,r){var i=this,o=[],a=function(t,e){xl(i.scriptLoadedCallbacks[e],function(e){Y(e[t])&&e[t].call(e.scope)}),i.scriptLoadedCallbacks[e]=void 0};i.queueLoadedCallbacks.push({success:e,failure:r,scope:n||this});var s=function(){var e=kl(t);if(t.length=0,xl(e,function(t){return 2===i.states[t]?void a("success",t):3===i.states[t]?void a("failure",t):void(1!==i.states[t]&&(i.states[t]=1,i.loading++,i.loadScript(t,function(){i.states[t]=2,i.loading--,a("success",t),s()},function(){i.states[t]=3,i.loading--,o.push(t),a("failure",t),s()})))}),!i.loading){var n=i.queueLoadedCallbacks.slice(0);i.queueLoadedCallbacks.length=0,xl(n,function(t){0===o.length?Y(t.success)&&t.success.call(t.scope):Y(t.failure)&&t.failure.call(t.scope,o)})}};s()},t.ScriptLoader=new t,t}(),Cl=function(t){var e=t;return{get:function(){return e},set:function(t){e=t}}},El=function(t){return V(t)&&te(t,"raw")},Tl=function(t){return z(t)&&t.length>1},Al={},Ol=Cl("en"),Pl=function(){return Zt(Al,Ol.get())},Nl=function(){return qt(Al,function(t){return de({},t)})},Dl=function(t){t&&Ol.set(t)},Ml=function(){return Ol.get()},Il=function(t,e){var n=Al[t];n||(Al[t]=n={}),Ht(e,function(t,e){n[e.toLowerCase()]=t})},Rl=function(t){var e=Pl().getOr({}),n=function(t){return Y(t)?Object.prototype.toString.call(t):r(t)?"":""+t},r=function(t){return""===t||null===t||void 0===t},i=function(t){var r=n(t);return Zt(e,r.toLowerCase()).map(n).getOr(r)},o=function(t){return t.replace(/{context:\w+}$/,"")};if(r(t))return"";if(El(t))return n(t.raw);if(Tl(t)){var a=t.slice(1);return o(i(t[0]).replace(/\{([0-9]+)\}/g,function(t,e){return te(a,e)?n(a[e]):t}))}return o(i(t))},$l=function(){return Pl().bind(function(t){return Zt(t,"_dir")}).exists(function(t){return"rtl"===t})},Ll=function(t){return te(Al,t)},jl={getData:Nl,setCode:Dl,getCode:Ml,add:Il,translate:Rl,isRtl:$l,hasCode:Ll},Fl=function(){var t=[],e={},n={},r=[],i=function(t,e){var n=St(r,function(n){return n.name===t&&n.state===e});wt(n,function(t){return t.callback()})},o=function(t){if(n[t])return n[t].instance},a=function(t){var e;return n[t]&&(e=n[t].dependencies),e||[]},s=function(t,n){!1!==Fl.languageLoad&&p(t,function(){var r=jl.getCode(),i=","+(n||"")+",";!r||n&&-1===i.indexOf(","+r+",")||Sl.ScriptLoader.add(e[t]+"/langs/"+r+".js")},"loaded")},u=function(e,r,o){var a=r;return t.push(a),n[e]={instance:a,dependencies:o},i(e,"added"),a},l=function(t){delete e[t],delete n[t]},c=function(t,e){return"object"==typeof e?e:"string"==typeof t?{prefix:"",resource:e,suffix:""}:{prefix:t.prefix,resource:e,suffix:t.suffix}},f=function(t,n){var r=e[t];wt(n,function(t){Sl.ScriptLoader.add(r+"/"+t)})},d=function(t,e,n,r){var i=a(t);wt(i,function(t){var n=c(e,t);h(n.resource,n,void 0,void 0)}),n&&(r?n.call(r):n.call(Sl))},h=function(t,r,o,a,s){if(!e[t]){var u="string"==typeof r?r:r.prefix+r.resource+r.suffix;0!==u.indexOf("/")&&-1===u.indexOf("://")&&(u=Fl.baseURL+"/"+u),e[t]=u.substring(0,u.lastIndexOf("/"));var l=function(){i(t,"loaded"),d(t,r,o,a)};n[t]?l():Sl.ScriptLoader.add(u,l,a,s)}},p=function(t,i,o){void 0===o&&(o="added"),te(n,t)&&"added"===o?i():te(e,t)&&"loaded"===o?i():r.push({name:t,state:o,callback:i})};return{items:t,urls:e,lookup:n,_listeners:r,get:o,dependencies:a,requireLangPack:s,add:u,remove:l,createUrl:c,addComponents:f,load:h,waitFor:p}};Fl.languageLoad=!0,Fl.baseURL="",Fl.PluginManager=Fl(),Fl.ThemeManager=Fl();var Bl=function(t){var e=Cl(dt.none()),n=function(){return e.get().each(t)};return{clear:function(){n(),e.set(dt.none())},isSet:function(){return e.get().isSome()},get:function(){return e.get()},set:function(t){n(),e.set(dt.some(t))}}},Vl=function(){var t=Bl(X),e=function(e){return t.get().each(e)};return de(de({},t),{on:e})},zl=function(t,e){var n=null;return{cancel:function(){U(n)||(clearTimeout(n),n=null)},throttle:function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];U(n)&&(n=setTimeout(function(){n=null,t.apply(null,r)},e))}}},Ul=function(t,e){var n=null,r=function(){U(n)||(clearTimeout(n),n=null)};return{cancel:r,throttle:function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];r(),n=setTimeout(function(){n=null,t.apply(null,i)},e)}}},Hl=function(t,e){var n=yi(t,e);return void 0===n||""===n?[]:n.split(" ")},ql=function(t,e,n){var r=Hl(t,e),i=r.concat([n]);return mi(t,e,i.join(" ")),!0},Wl=function(t,e,n){var r=St(Hl(t,e),function(t){return t!==n});return r.length>0?mi(t,e,r.join(" ")):wi(t,e),!1},Gl=function(t){return void 0!==t.dom.classList},Yl=function(t){return Hl(t,"class")},Kl=function(t,e){return ql(t,"class",e)},Xl=function(t,e){return Wl(t,"class",e)},Jl=function(t,e){Gl(t)?t.dom.classList.add(e):Kl(t,e)},Ql=function(t){0===(Gl(t)?t.dom.classList:Yl(t)).length&&wi(t,"class")},Zl=function(t,e){if(Gl(t)){t.dom.classList.remove(e)}else Xl(t,e);Ql(t)},tc=function(t,e){return Gl(t)&&t.dom.classList.contains(e)},ec=function(t,e){var n=[];return wt(ir(t),function(t){e(t)&&(n=n.concat([t])),n=n.concat(ec(t,e))}),n},nc=function(t,e){return Dn(e,t)},rc=Z("mce-annotation"),ic=Z("data-mce-annotation"),oc=Z("data-mce-annotation-uid"),ac=function(t,e){var n=t.selection.getRng(),r=En.fromDom(n.startContainer),i=En.fromDom(t.getBody()),o=e.fold(function(){return"."+rc()},function(t){return"["+ic()+'="'+t+'"]'}),a=or(r,n.startOffset).getOr(r),s=To(a,o,function(t){return In(t,i)}),u=function(t,e){return _i(t,e)?dt.some(yi(t,e)):dt.none()};return s.bind(function(e){return u(e,""+oc()).bind(function(n){return u(e,""+ic()).map(function(e){var r=uc(t,n);return{uid:n,name:e,elements:r}})})})},sc=function(t){return zn(t)&&tc(t,rc())},uc=function(t,e){var n=En.fromDom(t.getBody());return nc(n,"["+oc()+'="'+e+'"]')},lc=function(t,e){var n=En.fromDom(t.getBody()),r=nc(n,"["+ic()+'="'+e+'"]'),i={};return wt(r,function(t){var e=yi(t,oc()),n=Zt(i,e).getOr([]);i[e]=n.concat([t])}),i},cc=function(t,e){var n=Cl({}),r=function(){return{listeners:[],previous:Vl()}},i=function(t,e){o(t,function(t){return e(t),t})},o=function(t,e){var i=n.get(),o=Zt(i,t).getOrThunk(r),a=e(o);i[t]=a,n.set(i)},a=function(t,e,n){i(t,function(r){wt(r.listeners,function(r){return r(!0,t,{uid:e,nodes:_t(n,function(t){return t.dom})})})})},s=function(t){i(t,function(e){wt(e.listeners,function(e){return e(!1,t)})})},u=Ul(function(){var e=n.get(),r=$t(zt(e));wt(r,function(e){o(e,function(n){var r=n.previous.get();return ac(t,dt.some(e)).fold(function(){r.isSome()&&(s(e),n.previous.clear())},function(t){var e=t.uid,i=t.name,o=t.elements;li(r,e)||(a(i,e,o),n.previous.set(e))}),{previous:n.previous,listeners:n.listeners}})})},30);return t.on("remove",function(){u.cancel()}),t.on("NodeChange",function(){u.throttle()}),{addListener:function(t,e){o(t,function(t){return{previous:t.previous,listeners:t.listeners.concat([e])}})}}},fc=function(t,e){var n=function(t){return dt.from(t.attr(ic())).bind(e.lookup)};t.on("init",function(){t.serializer.addNodeFilter("span",function(t){wt(t,function(t){n(t).each(function(e){!1===e.persistent&&t.unwrap()})})})})},dc=function(){var t={};return{register:function(e,n){t[e]={name:e,settings:n}},lookup:function(e){return Zt(t,e).map(function(t){return t.settings})}}},hc=0,pc=function(t){var e=new Date,n=e.getTime(),r=Math.floor(1e9*Math.random());return hc++,t+"_"+r+hc+String(n)},gc=function(t,e){wt(e,function(e){Jl(t,e)})},mc=function(t,e){var n=e||document,r=n.createElement("div");return r.innerHTML=t,ir(En.fromDom(r))},vc=function(t){return _t(t,En.fromDom)},yc=function(t){return t.dom.innerHTML},bc=function(t,e){var n=Gn(t),r=n.dom,i=En.fromDom(r.createDocumentFragment()),o=mc(e,r);Cr(i,o),Er(t),xr(t,i)},_c=function(t,e){return En.fromDom(t.dom.cloneNode(e))},wc=function(t){return _c(t,!1)},xc=function(t){return _c(t,!0)},kc=function(t,e,n){void 0===n&&(n=at);var r=new jo(t,e),i=function(t){var e;do{e=r[t]()}while(e&&!Zr(e)&&!n(e));return dt.from(e).filter(Zr)};return{current:function(){return dt.from(r.current()).filter(Zr)},next:function(){return i("next")},prev:function(){return i("prev")},prev2:function(){return i("prev2")}}},Sc=function(t,e){var n=e||function(e){return t.isBlock(e)||ri(e)||ai(e)},r=function(t,e,n,i){if(Zr(t)){var o=i(t,e,t.data);if(-1!==o)return dt.some({container:t,offset:o})}return n().bind(function(t){return r(t.container,t.offset,n,i)})};return{backwards:function(t,e,i,o){var a=kc(t,o,n);return r(t,e,function(){return a.prev().map(function(t){return{container:t,offset:t.length}})},i).getOrNull()},forwards:function(t,e,i,o){var a=kc(t,o,n);return r(t,e,function(){return a.next().map(function(t){return{container:t,offset:0}})},i).getOrNull()}}},Cc=Math.round,Ec=function(t){return t?{left:Cc(t.left),top:Cc(t.top),bottom:Cc(t.bottom),right:Cc(t.right),width:Cc(t.width),height:Cc(t.height)}:{left:0,top:0,bottom:0,right:0,width:0,height:0}},Tc=function(t,e){return t=Ec(t),e?t.right=t.left:(t.left=t.left+t.width,t.right=t.left),t.width=0,t},Ac=function(t,e){return t.left===e.left&&t.top===e.top&&t.bottom===e.bottom&&t.right===e.right},Oc=function(t,e,n){return t>=0&&t<=Math.min(e.height,n.height)/2},Pc=function(t,e){var n=Math.min(e.height/2,t.height/2);return t.bottom-n<e.top||!(t.top>e.bottom)&&Oc(e.top-t.bottom,t,e)},Nc=function(t,e){return t.top>e.bottom||!(t.bottom<e.top)&&Oc(e.bottom-t.top,t,e)},Dc=function(t,e,n){return e>=t.left&&e<=t.right&&n>=t.top&&n<=t.bottom},Mc=function(t,e,n){return Math.min(Math.max(t,e),n)},Ic=function(t){var e=t.startContainer,n=t.startOffset;return e.hasChildNodes()&&t.endOffset===n+1?e.childNodes[n]:null},Rc=function(t,e){if(Hr(t)&&t.hasChildNodes()){var n=t.childNodes;return n[Mc(e,0,n.length-1)]}return t},$c=function(t,e){return e<0&&Hr(t)&&t.hasChildNodes()?void 0:Rc(t,e)},Lc=new RegExp("[̀-ͯ҃-҇҈-҉֑-ֽֿׁ-ׂׄ-ׇׅؐ-ًؚ-ٰٟۖ-ۜ۟-ۤۧ-۪ۨ-ܑۭܰ-݊ަ-ް߫-߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࣣ-ंऺ़ु-ै्॑-ॗॢ-ॣঁ়াু-ৄ্ৗৢ-ৣਁ-ਂ਼ੁ-ੂੇ-ੈੋ-੍ੑੰ-ੱੵઁ-ં઼ુ-ૅે-ૈ્ૢ-ૣଁ଼ାିୁ-ୄ୍ୖୗୢ-ୣஂாீ்ௗఀా-ీె-ైొ-్ౕ-ౖౢ-ౣಁ಼ಿೂೆೌ-್ೕ-ೖೢ-ೣഁാു-ൄ്ൗൢ-ൣ්ාි-ුූෟัิ-ฺ็-๎ັິ-ູົ-ຼ່-ໍ༘-ཱ༹༙༵༷-ཾྀ-྄྆-྇ྍ-ྗྙ-ྼ࿆ိ-ူဲ-့္-်ွ-ှၘ-ၙၞ-ၠၱ-ၴႂႅ-ႆႍႝ፝-፟ᜒ-᜔ᜲ-᜴ᝒ-ᝓᝲ-ᝳ឴-឵ិ-ួំ៉-៓៝᠋-᠍ᢩᤠ-ᤢᤧ-ᤨᤲ᤹-᤻ᨗ-ᨘᨛᩖᩘ-ᩞ᩠ᩢᩥ-ᩬᩳ-᩿᩼᪰-᪽᪾ᬀ-ᬃ᬴ᬶ-ᬺᬼᭂ᭫-᭳ᮀ-ᮁᮢ-ᮥᮨ-ᮩ᮫-ᮭ᯦ᯨ-ᯩᯭᯯ-ᯱᰬ-ᰳᰶ-᰷᳐-᳔᳒-᳢᳠-᳨᳭᳴᳸-᳹᷀-᷵᷼-᷿‌-‍⃐-⃜⃝-⃠⃡⃢-⃤⃥-⃰⳯-⵿⳱ⷠ-〪ⷿ-〭〮-゙〯-゚꙯꙰-꙲ꙴ-꙽ꚞ-ꚟ꛰-꛱ꠂ꠆ꠋꠥ-ꠦ꣄꣠-꣱ꤦ-꤭ꥇ-ꥑꦀ-ꦂ꦳ꦶ-ꦹꦼꧥꨩ-ꨮꨱ-ꨲꨵ-ꨶꩃꩌꩼꪰꪲ-ꪴꪷ-ꪸꪾ-꪿꫁ꫬ-ꫭ꫶ꯥꯨ꯭ﬞ︀-️︠-゙︯-゚]"),jc=function(t){return"string"==typeof t&&t.charCodeAt(0)>=768&&Lc.test(t)},Fc=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){for(var n=0;n<t.length;n++)if(t[n](e))return!0;return!1}},Bc=Hr,Vc=Ra,zc=Wr("display","block table"),Uc=Wr("float","left right"),Hc=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){for(var n=0;n<t.length;n++)if(!t[n](e))return!1;return!0}}(Bc,Vc,nt(Uc)),qc=nt(Wr("white-space","pre pre-line pre-wrap")),Wc=Zr,Gc=ri,Yc=_l.nodeIndex,Kc=$c,Xc=function(t){return"createRange"in t?t.createRange():_l.DOM.createRng()},Jc=function(t){return t&&/[\r\n\t ]/.test(t)},Qc=function(t){return!!t.setStart&&!!t.setEnd},Zc=function(t){var e=t.startContainer,n=t.startOffset;if(Jc(t.toString())&&qc(e.parentNode)&&Zr(e)){var r=e.data;if(Jc(r[n-1])||Jc(r[n+1]))return!0}return!1},tf=function(t){var e=t.ownerDocument,n=Xc(e),r=e.createTextNode(" "),i=t.parentNode;i.insertBefore(r,t),n.setStart(r,0),n.setEnd(r,1);var o=Ec(n.getBoundingClientRect());return i.removeChild(r),o},ef=function(t){var e=t.startContainer,n=t.endContainer,r=t.startOffset,i=t.endOffset;if(e===n&&Zr(n)&&0===r&&1===i){var o=t.cloneRange();return o.setEndAfter(n),rf(o)}return null},nf=function(t){return 0===t.left&&0===t.right&&0===t.top&&0===t.bottom},rf=function(t){var e,n=t.getClientRects();return e=Ec(n.length>0?n[0]:t.getBoundingClientRect()),!Qc(t)&&Gc(t)&&nf(e)?tf(t):nf(e)&&Qc(t)?ef(t):e},of=function(t,e){var n=Tc(t,e);return n.width=1,n.right=n.left+1,n},af=function(t){var e=[],n=function(t){0!==t.height&&(e.length>0&&Ac(t,e[e.length-1])||e.push(t))},r=function(t,r){var i=Xc(t.ownerDocument);if(r<t.data.length){if(jc(t.data[r]))return e;if(jc(t.data[r-1])&&(i.setStart(t,r),i.setEnd(t,r+1),!Zc(i)))return n(of(rf(i),!1)),e}r>0&&(i.setStart(t,r-1),i.setEnd(t,r),Zc(i)||n(of(rf(i),!1))),r<t.data.length&&(i.setStart(t,r),i.setEnd(t,r+1),Zc(i)||n(of(rf(i),!0)))},i=t.container(),o=t.offset();if(Wc(i))return r(i,o),e;if(Bc(i))if(t.isAtEnd()){var a=Kc(i,o);Wc(a)&&r(a,a.data.length),Hc(a)&&!Gc(a)&&n(of(rf(a),!1))}else{var a=Kc(i,o);if(Wc(a)&&r(a,0),Hc(a)&&t.isAtEnd())return n(of(rf(a),!1)),e;var s=Kc(t.container(),t.offset()-1);Hc(s)&&!Gc(s)&&(zc(s)||zc(a)||!Hc(a))&&n(of(rf(s),!1)),Hc(a)&&n(of(rf(a),!0))}return e},sf=function(t,e,n){var r=function(){return Wc(t),0===e},i=function(){return Wc(t)?e>=t.data.length:e>=t.childNodes.length},o=function(){var n=Xc(t.ownerDocument);return n.setStart(t,e),n.setEnd(t,e),n},a=function(){return n||(n=af(sf(t,e))),n},s=function(){return a().length>0},u=function(n){return n&&t===n.container()&&e===n.offset()},l=function(n){return Kc(t,n?e-1:e)};return{container:Z(t),offset:Z(e),toRange:o,getClientRects:a,isVisible:s,isAtStart:r,isAtEnd:i,isEqual:u,getNode:l}};sf.fromRangeStart=function(t){return sf(t.startContainer,t.startOffset)},sf.fromRangeEnd=function(t){return sf(t.endContainer,t.endOffset)},sf.after=function(t){return sf(t.parentNode,Yc(t)+1)},sf.before=function(t){return sf(t.parentNode,Yc(t))},sf.isAbove=function(t,e){return fi(jt(e.getClientRects()),Ft(t.getClientRects()),Pc).getOr(!1)},sf.isBelow=function(t,e){return fi(Ft(e.getClientRects()),jt(t.getClientRects()),Nc).getOr(!1)},sf.isAtStart=function(t){return!!t&&t.isAtStart()},sf.isAtEnd=function(t){return!!t&&t.isAtEnd()},sf.isTextPosition=function(t){return!!t&&Zr(t.container())},sf.isElementPosition=function(t){return!1===sf.isTextPosition(t)};var uf,lf=function(t,e){Zr(e)&&0===e.data.length&&t.remove(e)},cf=function(t,e,n){e.insertNode(n),lf(t,n.previousSibling),lf(t,n.nextSibling)},ff=function(t,e,n){var r=dt.from(n.firstChild),i=dt.from(n.lastChild);e.insertNode(n),r.each(function(e){return lf(t,e.previousSibling)}),i.each(function(e){return lf(t,e.nextSibling)})},df=function(t,e,n){ni(n)?ff(t,e,n):cf(t,e,n)},hf=Zr,pf=Yr,gf=_l.nodeIndex,mf=function(t){var e=t.parentNode;return pf(e)?mf(e):e},vf=function(t){return t?le(t.childNodes,function(t,e){return pf(e)&&"BR"!==e.nodeName?t=t.concat(vf(e)):t.push(e),t},[]):[]},yf=function(t,e){for(;(t=t.previousSibling)&&hf(t);)e+=t.data.length;return e},bf=function(t){return function(e){return t===e}},_f=function(t){var e,n;e=vf(mf(t)),n=ce(e,bf(t),t),e=e.slice(0,n+1);var r=le(e,function(t,n,r){return hf(n)&&hf(e[r-1])&&t++,t},0);return e=se(e,qr([t.nodeName])),(n=ce(e,bf(t),t))-r},wf=function(t){return(hf(t)?"text()":t.nodeName.toLowerCase())+"["+_f(t)+"]"},xf=function(t,e,n){var r=[];for(e=e.parentNode;e!==t&&(!n||!n(e));e=e.parentNode)r.push(e);return r},kf=function(t,e){var n,r,i,o,a,s=[];return n=e.container(),r=e.offset(),hf(n)?i=yf(n,r):(o=n.childNodes,r>=o.length?(i="after",r=o.length-1):i="before",n=o[r]),s.push(wf(n)),a=xf(t,n),a=se(a,nt(Yr)),s=s.concat(ae(a,function(t){return wf(t)})),s.reverse().join("/")+","+i},Sf=function(t,e,n){var r=vf(t);return r=se(r,function(t,e){return!hf(t)||!hf(r[e-1])}),r=se(r,qr([e])),r[n]},Cf=function(t,e){for(var n,r=t,i=0;hf(r);){if(n=r.data.length,e>=i&&e<=i+n){t=r,e-=i;break}if(!hf(r.nextSibling)){t=r,e=n;break}i+=n,r=r.nextSibling}return hf(t)&&e>t.data.length&&(e=t.data.length),sf(t,e)},Ef=function(t,e){var n;if(!e)return null;var r=e.split(","),i=r[0].split("/");n=r.length>1?r[1]:"before";var o=le(i,function(t,e){var n=/([\w\-\(\)]+)\[([0-9]+)\]/.exec(e);return n?("text()"===n[1]&&(n[1]="#text"),Sf(t,n[1],parseInt(n[2],10))):null},t);return o?hf(o)?Cf(o,parseInt(n,10)):(n="after"===n?gf(o)+1:gf(o),sf(o.parentNode,n)):null},Tf=ai,Af=function(t,e,n){var r,i;for(i=t(e.data.slice(0,n)).length,r=e.previousSibling;r&&Zr(r);r=r.previousSibling)i+=t(r.data).length;return i},Of=function(t,e,n,r,i){var o,a=r[i?"startContainer":"endContainer"],s=r[i?"startOffset":"endOffset"],u=[],l=0,c=t.getRoot();for(Zr(a)?u.push(n?Af(e,a,s):s):(o=a.childNodes,s>=o.length&&o.length&&(l=1,s=Math.max(0,o.length-1)),u.push(t.nodeIndex(o[s],n)+l));a&&a!==c;a=a.parentNode)u.push(t.nodeIndex(a,n));return u},Pf=function(t,e,n,r){var i=e.dom,o={};return o.start=Of(i,t,n,r,!0),e.isCollapsed()||(o.end=Of(i,t,n,r,!1)),Ea(r)&&(o.isFakeCaret=!0),o},Nf=function(t,e,n){var r=0;return _n.each(t.select(e),function(t){if("all"!==t.getAttribute("data-mce-bogus"))return t!==n&&void r++}),r},Df=function(t,e){var n,r,i,o=e?"start":"end";n=t[o+"Container"],r=t[o+"Offset"],Hr(n)&&"TR"===n.nodeName&&(i=n.childNodes,(n=i[Math.min(e?r:r-1,i.length-1)])&&(r=e?0:n.childNodes.length,t["set"+(e?"Start":"End")](n,r)))},Mf=function(t){return Df(t,!0),Df(t,!1),t},If=function(t,e){var n;if(Hr(t)&&(t=Rc(t,e),Tf(t)))return t;if(ga(t)){if(Zr(t)&&ha(t)&&(t=t.parentNode),n=t.previousSibling,Tf(n))return n;if(n=t.nextSibling,Tf(n))return n}},Rf=function(t){return If(t.startContainer,t.startOffset)||If(t.endContainer,t.endOffset)},$f=function(t,e,n){var r=n.getNode(),i=r?r.nodeName:null,o=n.getRng();if(Tf(r)||"IMG"===i)return{name:i,index:Nf(n.dom,i,r)};var a=Rf(o);return a?(i=a.tagName,{name:i,index:Nf(n.dom,i,a)}):Pf(t,n,e,o)},Lf=function(t){var e=t.getRng();return{start:kf(t.dom.getRoot(),sf.fromRangeStart(e)),end:kf(t.dom.getRoot(),sf.fromRangeEnd(e))}},jf=function(t){return{rng:t.getRng()}},Ff=function(t,e,n){var r={"data-mce-type":"bookmark",id:e,style:"overflow:hidden;line-height:0px"};return n?t.create("span",r,"&#xFEFF;"):t.create("span",r)},Bf=function(t,e){var n=t.dom,r=t.getRng(),i=n.uniqueId(),o=t.isCollapsed(),a=t.getNode(),s=a.nodeName;if("IMG"===s)return{name:s,index:Nf(n,s,a)};var u=Mf(r.cloneRange());if(!o){u.collapse(!1);var l=Ff(n,i+"_end",e);df(n,u,l)}r=Mf(r),r.collapse(!0);var c=Ff(n,i+"_start",e);return df(n,r,c),t.moveToBookmark({id:i,keep:!0}),{id:i}},Vf=function(t,e,n){return 2===e?$f(ca,n,t):3===e?Lf(t):e?jf(t):Bf(t,!1)},zf=r($f,tt,!0),Uf=_l.DOM,Hf=function(t,e,n){var r=t.getParam(e,n);if(-1!==r.indexOf("=")){var i=t.getParam(e,"","hash");return Zt(i,t.id).getOr(n)}return r},qf=function(t){return t.getParam("iframe_attrs",{})},Wf=function(t){return t.getParam("doctype","<!DOCTYPE html>")},Gf=function(t){return t.getParam("document_base_url","")},Yf=function(t){return Hf(t,"body_id","tinymce")},Kf=function(t){return Hf(t,"body_class","")},Xf=function(t){return t.getParam("content_security_policy","")},Jf=function(t){return t.getParam("br_in_pre",!0)},Qf=function(t){if(t.getParam("force_p_newlines",!1))return"p";var e=t.getParam("forced_root_block","p");return!1===e?"":!0===e?"p":e},Zf=function(t){return t.getParam("forced_root_block_attrs",{})},td=function(t){return t.getParam("br_newline_selector",".mce-toc h2,figcaption,caption")},ed=function(t){return t.getParam("no_newline_selector","")},nd=function(t){return t.getParam("keep_styles",!0)},rd=function(t){return t.getParam("end_container_on_empty_block",!1)},id=function(t){return _n.explode(t.getParam("font_size_style_values","xx-small,x-small,small,medium,large,x-large,xx-large"))},od=function(t){return _n.explode(t.getParam("font_size_classes",""))},ad=function(t){return t.getParam("images_dataimg_filter",st,"function")},sd=function(t){return t.getParam("automatic_uploads",!0,"boolean")},ud=function(t){return t.getParam("images_reuse_filename",!1,"boolean")},ld=function(t){return t.getParam("images_replace_blob_uris",!0,"boolean")},cd=function(t){return t.getParam("icons","","string")},fd=function(t){return t.getParam("icons_url","","string")},dd=function(t){return t.getParam("images_upload_url","","string")},hd=function(t){return t.getParam("images_upload_base_path","","string")},pd=function(t){return t.getParam("images_upload_credentials",!1,"boolean")},gd=function(t){return t.getParam("images_upload_handler",null,"function")},md=function(t){return t.getParam("content_css_cors",!1,"boolean")},vd=function(t){return t.getParam("referrer_policy","","string")},yd=function(t){return t.getParam("language","en","string")},bd=function(t){return t.getParam("language_url","","string")},_d=function(t){return t.getParam("indent_use_margin",!1)},wd=function(t){return t.getParam("indentation","40px","string")},xd=function(t){var e=t.getParam("content_css");return B(e)?_t(e.split(","),Ne):z(e)?e:!1===e||t.inline?[]:["default"]},kd=function(t){var e=t.getParam("font_css",[]);return z(e)?e:_t(e.split(","),Ne)},Sd=function(t){return t.getParam("directionality",jl.isRtl()?"rtl":void 0)},Cd=function(t){return t.getParam("inline_boundaries_selector","a[href],code,.mce-annotation","string")},Ed=function(t){var e=t.getParam("object_resizing");return!1!==e&&!sn.iOS&&(B(e)?e:"table,img,figure.image,div,video,iframe")},Td=function(t){return t.getParam("resize_img_proportional",!0,"boolean")},Ad=function(t){return t.getParam("placeholder",Uf.getAttrib(t.getElement(),"placeholder"),"string")},Od=function(t){return t.getParam("event_root")},Pd=function(t){return t.getParam("service_message")},Nd=function(t){return t.getParam("theme")},Dd=function(t){return t.getParam("validate")},Md=function(t){return!1!==t.getParam("inline_boundaries")},Id=function(t){return t.getParam("formats")},Rd=function(t){var e=t.getParam("preview_styles","font-family font-size font-weight font-style text-decoration text-transform color background-color border border-radius outline text-shadow");return B(e)?e:""},$d=function(t){return t.getParam("format_empty_lines",!1,"boolean")},Ld=function(t){return t.getParam("custom_ui_selector","","string")},jd=function(t){return t.getParam("theme_url")},Fd=function(t){return t.getParam("inline")},Bd=function(t){return t.getParam("hidden_input")},Vd=function(t){return t.getParam("submit_patch")},zd=function(t){return"xml"===t.getParam("encoding")},Ud=function(t){return t.getParam("add_form_submit_trigger")},Hd=function(t){return t.getParam("add_unload_trigger")},qd=function(t){return""!==Qf(t)},Wd=function(t){return t.getParam("custom_undo_redo_levels",0,"number")},Gd=function(t){return t.getParam("disable_nodechange")},Yd=function(t){return t.getParam("readonly")},Kd=function(t){return t.getParam("content_css_cors")},Xd=function(t){return t.getParam("plugins","","string")},Jd=function(t){return t.getParam("external_plugins")},Qd=function(t){return t.getParam("block_unsupported_drop",!0,"boolean")},Zd=function(t){return t.getParam("visual",!0,"boolean")},th=function(t){return t.getParam("visual_table_class","mce-item-table","string")},eh=function(t){return t.getParam("visual_anchor_class","mce-item-anchor","string")},nh=function(t){return t.getParam("iframe_aria_text","Rich Text Area. Press ALT-0 for help.","string")},rh=Hr,ih=Zr,oh=function(t){var e=t.parentNode;e&&e.removeChild(t)},ah=function(t){var e=ca(t);return{count:t.length-e.length,text:e}},sh=function(t){for(var e;-1!==(e=t.data.lastIndexOf(ua));)t.deleteData(e,1)},uh=function(t,e){return ph(t),e},lh=function(t,e){var n=ah(t.data.substr(0,e.offset())),r=ah(t.data.substr(e.offset()));return(n.text+r.text).length>0?(sh(t),sf(t,e.offset()-n.count)):e},ch=function(t,e){var n=e.container(),r=vt(Bt(n.childNodes),t).map(function(t){return t<e.offset()?sf(n,e.offset()-1):e}).getOr(e);return ph(t),r},fh=function(t,e){return ih(t)&&e.container()===t?lh(t,e):uh(t,e)},dh=function(t,e){return e.container()===t.parentNode?ch(t,e):uh(t,e)},hh=function(t,e){return sf.isTextPosition(e)?fh(t,e):dh(t,e)},ph=function(t){rh(t)&&ga(t)&&(ma(t)?t.removeAttribute("data-mce-caret"):oh(t)),ih(t)&&(sh(t),0===t.data.length&&oh(t))},gh=Je().browser,mh=ai,vh=ui,yh=si,bh=function(t,e,n){var r,i,o=Tc(e.getBoundingClientRect(),n);if("BODY"===t.tagName){var a=t.ownerDocument.documentElement;r=t.scrollLeft||a.scrollLeft,i=t.scrollTop||a.scrollTop}else{var s=t.getBoundingClientRect();r=t.scrollLeft-s.left,i=t.scrollTop-s.top}o.left+=r,o.right+=r,o.top+=i,o.bottom+=i,o.width=1;var u=e.offsetWidth-e.clientWidth;return u>0&&(n&&(u*=-1),o.left+=u,o.right+=u),o},_h=function(t){for(var e=nc(En.fromDom(t),"*[contentEditable=false],video,audio,embed,object"),n=0;n<e.length;n++){var r=e[n].dom,i=r.previousSibling;if(ka(i)){var o=i.data;1===o.length?i.parentNode.removeChild(i):i.deleteData(o.length-1,1)}if(i=r.nextSibling,xa(i)){var o=i.data;1===o.length?i.parentNode.removeChild(i):i.deleteData(0,1)}}},wh=function(t,e,n,r){var i,o,a=Vl(),s=Qf(t),u=s.length>0?s:"p",l=function(t,r){var i;if(c(),yh(r))return null;if(!n(r))return o=va(r,t),i=r.ownerDocument.createRange(),kh(o.nextSibling)?(i.setStart(o,0),i.setEnd(o,0)):(i.setStart(o,1),i.setEnd(o,1)),i;o=wa(u,r,t);var s=bh(e,r,t);dl(o).css("top",s.top);var l=dl('<div class="mce-visual-caret" data-mce-bogus="all"></div>').css(de({},s)).appendTo(e)[0];return a.set({caret:l,element:r,before:t}),t&&dl(l).addClass("mce-visual-caret-before"),f(),i=r.ownerDocument.createRange(),i.setStart(o,0),i.setEnd(o,0),i},c=function(){_h(e),o&&(ph(o),o=null),a.on(function(t){dl(t.caret).remove(),a.clear()}),i&&(Ro.clearInterval(i),i=void 0)},f=function(){i=Ro.setInterval(function(){r()?dl("div.mce-visual-caret",e).toggleClass("mce-visual-caret-hidden"):dl("div.mce-visual-caret",e).addClass("mce-visual-caret-hidden")},500)},d=function(){a.on(function(t){var n=bh(e,t.element,t.before);dl(t.caret).css(de({},n))})},h=function(){return Ro.clearInterval(i)};return{show:l,hide:c,getCss:function(){return".mce-visual-caret {position: absolute;background-color: black;background-color: currentcolor;}.mce-visual-caret-hidden {display: none;}*[data-mce-caret] {position: absolute;left: -1000px;right: auto;top: 0;margin: 0;padding: 0;}"},reposition:d,destroy:h}},xh=function(){return gh.isIE()||gh.isEdge()||gh.isFirefox()},kh=function(t){return mh(t)||vh(t)},Sh=function(t){return kh(t)||Xr(t)&&xh()},Ch=ai,Eh=ui,Th=Wr("display","block table table-cell table-caption list-item"),Ah=ga,Oh=ha,Ph=Hr,Nh=Ra,Dh=function(t){return t>0},Mh=function(t){return t<0},Ih=function(t,e){for(var n;n=t(e);)if(!Oh(n))return n;return null},Rh=function(t,e,n,r,i){var o=new jo(t,r),a=Ch(t)||Oh(t);if(Mh(e)){if(a&&(t=Ih(o.prev.bind(o),!0),n(t)))return t;for(;t=Ih(o.prev.bind(o),i);)if(n(t))return t}if(Dh(e)){if(a&&(t=Ih(o.next.bind(o),!0),n(t)))return t;for(;t=Ih(o.next.bind(o),i);)if(n(t))return t}return null},$h=function(t,e){for(;t&&t!==e;){if(Th(t))return t;t=t.parentNode}return null},Lh=function(t,e,n){return $h(t.container(),n)===$h(e.container(),n)},jh=function(t,e){if(!e)return null;var n=e.container(),r=e.offset();return Ph(n)?n.childNodes[r+t]:null},Fh=function(t,e){var n=e.ownerDocument.createRange();return t?(n.setStartBefore(e),n.setEndBefore(e)):(n.setStartAfter(e),n.setEndAfter(e)),n},Bh=function(t,e,n){return $h(e,t)===$h(n,t)},Vh=function(t,e,n){for(var r=t?"previousSibling":"nextSibling";n&&n!==e;){var i=n[r];if(Ah(i)&&(i=i[r]),Ch(i)||Eh(i)){if(Bh(e,i,n))return i;break}if(Nh(i))break;n=n.parentNode}return null},zh=r(Fh,!0),Uh=r(Fh,!1),Hh=function(t,e,n){var i,o=r(Vh,!0,e),a=r(Vh,!1,e),s=n.startContainer,u=n.startOffset;if(ha(s)){Ph(s)||(s=s.parentNode);var l=s.getAttribute("data-mce-caret");if("before"===l&&(i=s.nextSibling,Sh(i)))return zh(i);if("after"===l&&(i=s.previousSibling,Sh(i)))return Uh(i)}if(!n.collapsed)return n;if(Zr(s)){if(Ah(s)){if(1===t){if(i=a(s))return zh(i);if(i=o(s))return Uh(i)}if(-1===t){if(i=o(s))return Uh(i);if(i=a(s))return zh(i)}return n}if(ka(s)&&u>=s.data.length-1)return 1===t&&(i=a(s))?zh(i):n;if(xa(s)&&u<=1)return-1===t&&(i=o(s))?Uh(i):n;if(u===s.data.length)return i=a(s),i?zh(i):n;if(0===u)return i=o(s),i?Uh(i):n}return n},qh=function(t,e){return dt.from(jh(t?0:-1,e)).filter(Ch)},Wh=function(t,e,n){var r=Hh(t,e,n);return-1===t?sf.fromRangeStart(r):sf.fromRangeEnd(r)},Gh=function(t){return dt.from(t.getNode()).map(En.fromDom)},Yh=function(t){return dt.from(t.getNode(!0)).map(En.fromDom)},Kh=function(t,e){for(;e=t(e);)if(e.isVisible())return e;return e},Xh=function(t,e){var n=Lh(t,e);return!(n||!ri(t.getNode()))||n};!function(t){t[t.Backwards=-1]="Backwards",t[t.Forwards=1]="Forwards"}(uf||(uf={}));var Jh=ai,Qh=Zr,Zh=Hr,tp=ri,ep=Ra,np=Ba,rp=Va,ip=function(t,e){for(var n=[];t&&t!==e;)n.push(t),t=t.parentNode;return n},op=function(t,e){return t.hasChildNodes()&&e<t.childNodes.length?t.childNodes[e]:null},ap=function(t,e){if(Dh(t)){if(ep(e.previousSibling)&&!Qh(e.previousSibling))return sf.before(e);if(Qh(e))return sf(e,0)}if(Mh(t)){if(ep(e.nextSibling)&&!Qh(e.nextSibling))return sf.after(e);if(Qh(e))return sf(e,e.data.length)}return Mh(t)?tp(e)?sf.before(e):sf.after(e):sf.before(e)},sp=function(t,e){var n=e.nextSibling;return n&&ep(n)?Qh(n)?sf(n,0):sf.before(n):up(uf.Forwards,sf.after(e),t)},up=function(t,e,n){var r,i,o,a;if(!Zh(n)||!e)return null;if(e.isEqual(sf.after(n))&&n.lastChild){if(a=sf.after(n.lastChild),Mh(t)&&ep(n.lastChild)&&Zh(n.lastChild))return tp(n.lastChild)?sf.before(n.lastChild):a}else a=e;var s=a.container(),u=a.offset();if(Qh(s)){if(Mh(t)&&u>0)return sf(s,--u);if(Dh(t)&&u<s.length)return sf(s,++u);r=s}else{if(Mh(t)&&u>0&&(i=op(s,u-1),ep(i)))return!np(i)&&(o=Rh(i,t,rp,i))?Qh(o)?sf(o,o.data.length):sf.after(o):Qh(i)?sf(i,i.data.length):sf.before(i);if(Dh(t)&&u<s.childNodes.length&&(i=op(s,u),ep(i)))return tp(i)?sp(n,i):!np(i)&&(o=Rh(i,t,rp,i))?Qh(o)?sf(o,0):sf.before(o):Qh(i)?sf(i,0):sf.after(i);r=i||a.getNode()}if((Dh(t)&&a.isAtEnd()||Mh(t)&&a.isAtStart())&&(r=Rh(r,t,st,n,!0),rp(r,n)))return ap(t,r);i=Rh(r,t,rp,n);var l=fe(St(ip(s,n),Jh));return!l||i&&l.contains(i)?i?ap(t,i):null:a=Dh(t)?sf.after(l):sf.before(l)},lp=function(t){return{next:function(e){return up(uf.Forwards,e,t)},prev:function(e){return up(uf.Backwards,e,t)}}},cp=function(t,e,n){var r=t?sf.before(n):sf.after(n);return vp(t,e,r)},fp=function(t){return ri(t)?sf.before(t):sf.after(t)},dp=function(t){return sf.isTextPosition(t)?0===t.offset():Ra(t.getNode())},hp=function(t){if(sf.isTextPosition(t)){var e=t.container();return t.offset()===e.data.length}return Ra(t.getNode(!0))},pp=function(t,e){return!sf.isTextPosition(t)&&!sf.isTextPosition(e)&&t.getNode()===e.getNode(!0)},gp=function(t){return!sf.isTextPosition(t)&&ri(t.getNode())},mp=function(t,e,n){return t?!pp(e,n)&&!gp(e)&&hp(e)&&dp(n):!pp(n,e)&&dp(e)&&hp(n)},vp=function(t,e,n){var r=lp(e);return dt.from(t?r.next(n):r.prev(n))},yp=function(t,e,n){return vp(t,e,n).bind(function(r){return Lh(n,r,e)&&mp(t,n,r)?vp(t,e,r):dt.some(r)})},bp=function(t,e,n,r){return yp(t,e,n).bind(function(n){return r(n)?bp(t,e,n,r):dt.some(n)})},_p=function(t,e){var n=t?e.firstChild:e.lastChild;return Zr(n)?dt.some(sf(n,t?0:n.data.length)):n?Ra(n)?dt.some(t?sf.before(n):fp(n)):cp(t,e,n):dt.none()},wp=r(vp,!0),xp=r(vp,!1),kp=r(_p,!0),Sp=r(_p,!1),Cp=function(t){return Hr(t)&&"_mce_caret"===t.id},Ep=function(t,e){for(;e&&e!==t;){if("_mce_caret"===e.id)return e;e=e.parentNode}return null},Tp=function(t){return B(t.start)},Ap=function(t){return te(t,"rng")},Op=function(t){return te(t,"id")},Pp=function(t){return te(t,"name")},Np=function(t){return _n.isArray(t.start)},Dp=function(t,e){return Hr(e)&&t.isBlock(e)&&!e.innerHTML&&!sn.ie&&(e.innerHTML='<br data-mce-bogus="1" />'),e},Mp=function(t,e){var n,r=t.createRng();return n=Ef(t.getRoot(),e.start),r.setStart(n.container(),n.offset()),n=Ef(t.getRoot(),e.end),r.setEnd(n.container(),n.offset()),r},Ip=function(t,e){var n=t.ownerDocument.createTextNode(ua);t.appendChild(n),e.setStart(n,0),e.setEnd(n,0)},Rp=function(t){return!1===t.hasChildNodes()},$p=function(t,e){return Sp(t).fold(at,function(t){return e.setStart(t.container(),t.offset()),e.setEnd(t.container(),t.offset()),!0})},Lp=function(t,e,n){return!(!Rp(e)||!Ep(t,e))&&(Ip(e,n),!0)},jp=function(t,e,n,r){var i,o,a,s,u=n[e?"start":"end"],l=t.getRoot();if(u){for(a=u[0],o=l,i=u.length-1;i>=1;i--){if(s=o.childNodes,Lp(l,o,r))return!0;if(u[i]>s.length-1)return!!Lp(l,o,r)||$p(o,r);o=s[u[i]]}3===o.nodeType&&(a=Math.min(u[0],o.nodeValue.length)),1===o.nodeType&&(a=Math.min(u[0],o.childNodes.length)),e?r.setStart(o,a):r.setEnd(o,a)}return!0},Fp=function(t){return Zr(t)&&t.data.length>0},Bp=function(t,e,n){var r,i,o,a,s,u,l=t.get(n.id+"_"+e),c=n.keep;if(l){if(r=l.parentNode,"start"===e?(c?l.hasChildNodes()?(r=l.firstChild,i=1):Fp(l.nextSibling)?(r=l.nextSibling,i=0):Fp(l.previousSibling)?(r=l.previousSibling,i=l.previousSibling.data.length):(r=l.parentNode,i=t.nodeIndex(l)+1):i=t.nodeIndex(l),s=r,u=i):(c?l.hasChildNodes()?(r=l.firstChild,i=1):Fp(l.previousSibling)?(r=l.previousSibling,i=l.previousSibling.data.length):(r=l.parentNode,i=t.nodeIndex(l)):i=t.nodeIndex(l),s=r,u=i),!c){for(a=l.previousSibling,o=l.nextSibling,_n.each(_n.grep(l.childNodes),function(t){Zr(t)&&(t.nodeValue=t.nodeValue.replace(/\uFEFF/g,""))});l=t.get(n.id+"_"+e);)t.remove(l,!0);a&&o&&a.nodeType===o.nodeType&&Zr(a)&&!sn.opera&&(i=a.nodeValue.length,a.appendData(o.nodeValue),t.remove(o),s=a,u=i)}return dt.some(sf(s,u))}return dt.none()},Vp=function(t,e){var n=t.createRng();return jp(t,!0,e,n)&&jp(t,!1,e,n)?dt.some(n):dt.none()},zp=function(t,e){var n=Bp(t,"start",e),r=Bp(t,"end",e);return fi(n,r.or(n),function(e,n){var r=t.createRng();return r.setStart(Dp(t,e.container()),e.offset()),r.setEnd(Dp(t,n.container()),n.offset()),r})},Up=function(t,e){return dt.from(t.select(e.name)[e.index]).map(function(e){var n=t.createRng();return n.selectNode(e),n})},Hp=function(t,e){var n=t.dom;if(e){if(Np(e))return Vp(n,e);if(Tp(e))return dt.some(Mp(n,e));if(Op(e))return zp(n,e);if(Pp(e))return Up(n,e);if(Ap(e))return dt.some(e.rng)}return dt.none()},qp=function(t,e,n){return Vf(t,e,n)},Wp=function(t,e){Hp(t,e).each(function(e){t.setRng(e)})},Gp=function(t){return Hr(t)&&"SPAN"===t.tagName&&"bookmark"===t.getAttribute("data-mce-type")},Yp=function(t){return function(e){return t===e}}(" "),Kp=function(t){return""!==t&&-1!==" \f\n\r\t\v".indexOf(t)},Xp=function(t){return!Kp(t)&&!Yp(t)},Jp=function(t){return!!t.nodeType},Qp=function(t){return t&&/^(IMG)$/.test(t.nodeName)},Zp=function(t,e,n){var r=n.startOffset,i=n.startContainer;if((i!==n.endContainer||!Qp(i.childNodes[r]))&&Hr(i)){var o=i.childNodes,a=void 0;r<o.length?(i=o[r],a=new jo(i,t.getParent(i,t.isBlock))):(i=o[o.length-1],a=new jo(i,t.getParent(i,t.isBlock)),a.next(!0));for(var s=a.current();s;s=a.next())if(Zr(s)&&!rg(s))return n.setStart(s,0),void e.setRng(n)}},tg=function(t,e,n){if(t){var r=e?"nextSibling":"previousSibling";for(t=n?t:t[r];t;t=t[r])if(Hr(t)||!rg(t))return t}},eg=function(t,e){return Jp(e)&&(e=e.nodeName),!!t.schema.getTextBlockElements()[e.toLowerCase()]},ng=function(t,e,n){return t.schema.isValidChild(e,n)},rg=function(t,e){if(void 0===e&&(e=!1),G(t)&&Zr(t)){var n=e?t.data.replace(/ /g," "):t.data;return Ua(n)}return!1},ig=function(t){return G(t)&&Zr(t)&&0===t.length},og=function(t,e){return Y(t)?t=t(e):G(e)&&(t=t.replace(/%(\w+)/g,function(t,n){return e[n]||t})),t},ag=function(t,e){return t=t||"",e=e||"",t=""+(t.nodeName||t),e=""+(e.nodeName||e),t.toLowerCase()===e.toLowerCase()},sg=function(t,e,n){return"color"!==n&&"backgroundColor"!==n||(e=t.toHex(e)),"fontWeight"===n&&700===e&&(e="bold"),"fontFamily"===n&&(e=e.replace(/[\'\"]/g,"").replace(/,\s+/g,",")),""+e},ug=function(t,e,n){return sg(t,t.getStyle(e,n),n)},lg=function(t,e){var n;return t.getParent(e,function(e){return(n=t.getStyle(e,"text-decoration"))&&"none"!==n}),n},cg=function(t,e,n){return t.getParents(e,n,t.getRoot())},fg=function(t,e){var n=function(t){var e=function(t){return t.length>1&&"%"===t.charAt(0)};return bt(["styles","attributes"],function(n){return Zt(t,n).exists(function(t){var n=z(t)?t:Qt(t);return bt(n,e)})})};return bt(t.formatter.get(e),n)},dg=function(t,e,n){var r=["inline","block","selector","attributes","styles","classes"],i=function(t){return Xt(t,function(t,e){return bt(r,function(t){return t===e})})};return bt(t.formatter.get(e),function(e){var r=i(e);return bt(t.formatter.get(n),function(t){var e=i(t);return ne(r,e)})})},hg=function(t){return ee(t,"block")},pg=function(t){return ee(t,"selector")},gg=function(t){return ee(t,"inline")},mg=function(t){return pg(t)&&gg(t)&&li(Zt(t,"mixed"),!0)},vg=function(t){return pg(t)&&!1!==t.expand&&!gg(t)},yg=Gp,bg=cg,_g=rg,wg=eg,xg=function(t){return ri(t)&&t.getAttribute("data-mce-bogus")&&!t.nextSibling},kg=function(t,e){for(var n=e;n;){if(Hr(n)&&t.getContentEditable(n))return"false"===t.getContentEditable(n)?n:e;n=n.parentNode}return e},Sg=function(t,e,n,r){for(var i=e.data,o=n;t?o>=0:o<i.length;t?o--:o++)if(r(i.charAt(o)))return t?o+1:o;return-1},Cg=function(t,e,n){return Sg(t,e,n,function(t){return Yp(t)||Kp(t)})},Eg=function(t,e,n){return Sg(t,e,n,Xp)},Tg=function(t,e,n,r,i,o){var a,s=t.getParent(n,t.isBlock)||e,u=function(e,n,r){var o=Sc(t),u=i?o.backwards:o.forwards;return dt.from(u(e,n,function(t,e){return yg(t.parentNode)?-1:(a=t,r(i,t,e))},s))};return u(n,r,Cg).bind(function(t){return o?u(t.container,t.offset+(i?-1:0),Eg):dt.some(t)}).orThunk(function(){return a?dt.some({container:a,offset:i?0:a.length}):dt.none()})},Ag=function(t,e,n,r,i){Zr(r)&&Re(r.data)&&r[i]&&(r=r[i]);for(var o=bg(t,r),a=0;a<o.length;a++)for(var s=0;s<e.length;s++){var u=e[s];if((!G(u.collapsed)||u.collapsed===n.collapsed)&&(pg(u)&&t.is(o[a],u.selector)))return o[a]}return r},Og=function(t,e,n,r){var i=n,o=t.dom,a=o.getRoot(),s=e[0];if(hg(s)&&(i=s.wrapper?null:o.getParent(n,s.block,a)),!i){var u=o.getParent(n,"LI,TD,TH");i=o.getParent(Zr(n)?n.parentNode:n,function(e){return e!==a&&wg(t,e)},u)}if(i&&hg(s)&&s.wrapper&&(i=bg(o,i,"ul,ol").reverse()[0]||i),!i)for(i=n;i[r]&&!o.isBlock(i[r])&&(i=i[r],!ag(i,"br")););return i||n},Pg=function(t,e,n,r){var i=n.parentNode;return!G(n[r])&&(!(i!==e&&!W(i)&&!t.isBlock(i))||Pg(t,e,i,r))},Ng=function(t,e,n,r,i){var o=n,a=i?"previousSibling":"nextSibling",s=t.getRoot();if(Zr(n)&&!_g(n)&&(i?r>0:r<n.data.length))return n;for(;;){if(!e[0].block_expand&&t.isBlock(o))return o;for(var u=o[a];u;u=u[a]){var l=Zr(u)&&!Pg(t,s,u,a);if(!yg(u)&&!xg(u)&&!_g(u,l))return o}if(o===s||o.parentNode===s){n=o;break}o=o.parentNode}return n},Dg=function(t){return yg(t.parentNode)||yg(t)},Mg=function(t,e,n,r){void 0===r&&(r=!1);var i=e.startContainer,o=e.startOffset,a=e.endContainer,s=e.endOffset,u=t.dom,l=n[0];if(Hr(i)&&i.hasChildNodes()&&(i=Rc(i,o),Zr(i)&&(o=0)),Hr(a)&&a.hasChildNodes()&&(a=Rc(a,e.collapsed?s:s-1),Zr(a)&&(s=a.nodeValue.length)),i=kg(u,i),a=kg(u,a),Dg(i)&&(i=yg(i)?i:i.parentNode,i=e.collapsed?i.previousSibling||i:i.nextSibling||i,Zr(i)&&(o=e.collapsed?i.length:0)),Dg(a)&&(a=yg(a)?a:a.parentNode,a=e.collapsed?a.nextSibling||a:a.previousSibling||a,Zr(a)&&(s=e.collapsed?0:a.length)),e.collapsed){Tg(u,t.getBody(),i,o,!0,r).each(function(t){var e=t.container,n=t.offset;i=e,o=n});Tg(u,t.getBody(),a,s,!1,r).each(function(t){var e=t.container,n=t.offset;a=e,s=n})}return(gg(l)||l.block_expand)&&(gg(l)&&Zr(i)&&0!==o||(i=Ng(u,n,i,o,!0)),gg(l)&&Zr(a)&&s!==a.nodeValue.length||(a=Ng(u,n,a,s,!1))),vg(l)&&(i=Ag(u,n,e,i,"previousSibling"),a=Ag(u,n,e,a,"nextSibling")),(hg(l)||pg(l))&&(i=Og(t,n,i,"previousSibling"),a=Og(t,n,a,"nextSibling"),hg(l)&&(u.isBlock(i)||(i=Ng(u,n,i,o,!0)),u.isBlock(a)||(a=Ng(u,n,a,s,!1)))),Hr(i)&&(o=u.nodeIndex(i),i=i.parentNode),Hr(a)&&(s=u.nodeIndex(a)+1,a=a.parentNode),{startContainer:i,startOffset:o,endContainer:a,endOffset:s}},Ig=function(t,e,n){var r=e.startOffset,i=Rc(e.startContainer,r),o=e.endOffset,a=Rc(e.endContainer,o-1),s=function(t){var e=t[0];Zr(e)&&e===i&&r>=e.data.length&&t.splice(0,1);var n=t[t.length-1];return 0===o&&t.length>0&&n===a&&Zr(n)&&t.splice(t.length-1,1),t},u=function(t,e,n){for(var r=[];t&&t!==n;t=t[e])r.push(t);return r},l=function(e,n){return t.getParent(e,function(t){return t.parentNode===n},n)},c=function(t,e,r){for(var i=r?"nextSibling":"previousSibling",o=t,a=o.parentNode;o&&o!==e;o=a){a=o.parentNode;var l=u(o===t?o:o[i],i);l.length&&(r||l.reverse(),n(s(l)))}};if(i===a)return n(s([i]));var f=t.findCommonAncestor(i,a);if(t.isChildOf(i,a))return c(i,f,!0);if(t.isChildOf(a,i))return c(a,f);var d=l(i,f)||i,h=l(a,f)||a;c(i,d,!0);var p=u(d===i?d:d.nextSibling,"nextSibling",h===a?h.nextSibling:h);p.length&&n(s(p)),c(a,h)},Rg=function(t){var e=[];if(t)for(var n=0;n<t.rangeCount;n++)e.push(t.getRangeAt(n));return e},$g=function(t){return Nt(t,function(t){var e=Ic(t);return e?[En.fromDom(e)]:[]})},Lg=function(t){return Rg(t).length>1},jg=function(t){return St($g(t),ra)},Fg=function(t){return nc(t,"td[data-mce-selected],th[data-mce-selected]")},Bg=function(t,e){var n=Fg(e);return n.length>0?n:jg(t)},Vg=function(t){return Bg(Rg(t.selection.getSel()),En.fromDom(t.getBody()))},zg=function(t,e){return Co(t,"table",e)},Ug=function(t){var e=t.startContainer,n=t.startOffset;return Zr(e)?0===n?dt.some(En.fromDom(e)):dt.none():dt.from(e.childNodes[n]).map(En.fromDom)},Hg=function(t){var e=t.endContainer,n=t.endOffset;return Zr(e)?n===e.data.length?dt.some(En.fromDom(e)):dt.none():dt.from(e.childNodes[n-1]).map(En.fromDom)},qg=function(t){return ar(t).fold(Z([t]),function(e){return[t].concat(qg(e))})},Wg=function(t){return sr(t).fold(Z([t]),function(e){return"br"===jn(e)?tr(e).map(function(e){return[t].concat(Wg(e))}).getOr([]):[t].concat(Wg(e))})},Gg=function(t,e){return fi(Ug(e),Hg(e),function(e,n){var i=At(qg(t),r(In,e)),o=At(Wg(t),r(In,n));return i.isSome()&&o.isSome()}).getOr(!1)},Yg=function(t,e,n,r){var i=n,o=new jo(n,i),a=Xt(t.schema.getMoveCaretBeforeOnEnterElements(),function(t,e){return!yt(["td","th","table"],e.toLowerCase())});do{if(Zr(n)&&0!==_n.trim(n.nodeValue).length)return void(r?e.setStart(n,0):e.setEnd(n,n.nodeValue.length));if(a[n.nodeName])return void(r?e.setStartBefore(n):"BR"===n.nodeName?e.setEndBefore(n):e.setEndAfter(n))}while(n=r?o.next():o.prev());"BODY"===i.nodeName&&(r?e.setStart(i,0):e.setEnd(i,i.childNodes.length))},Kg=function(t){var e=t.selection.getSel();return e&&e.rangeCount>0},Xg=function(t,e){var n=Vg(t);n.length>0?wt(n,function(n){var r=n.dom,i=t.dom.createRng();i.setStartBefore(r),i.setEndAfter(r),e(i,!0)}):e(t.selection.getRng(),!1)},Jg=function(t,e,n){var r=Bf(t,e);n(r),t.moveToBookmark(r)},Qg=function(t,e){var n=function(n){if(!t(n))throw new Error("Can only get "+e+" value of a "+e+" node");return r(n).getOr("")},r=function(e){return t(e)?dt.from(e.dom.nodeValue):dt.none()};return{get:n,getOption:r,set:function(n,r){if(!t(n))throw new Error("Can only set raw "+e+" value of a "+e+" node");n.dom.nodeValue=r}}}(Un,"text"),Zg=function(t){return Qg.get(t)},tm=function(t){return Un(t)&&Zg(t)===ua},em=function(t,e,n,r){return Jn(e).fold(function(){return"skipping"},function(i){return"br"===r||tm(e)?"valid":sc(e)?"existing":Cp(e.dom)?"caret":ng(t,n,r)&&ng(t,jn(i),n)?"valid":"invalid-child"})},nm=function(t,e){var n=Mg(t,e,[{inline:"span"}]);e.setStart(n.startContainer,n.startOffset),e.setEnd(n.endContainer,n.endOffset),t.selection.setRng(e)},rm=function(t,e,n,r){var o=e.uid,a=void 0===o?pc("mce-annotation"):o,s=i(e,["uid"]),u=En.fromTag("span",t);Jl(u,rc()),mi(u,""+oc(),a),mi(u,""+ic(),n);var l=r(a,s),c=l.attributes,f=void 0===c?{}:c,d=l.classes,h=void 0===d?[]:d;return vi(u,f),gc(u,h),u},im=function(t,e,n,r,i){var o=[],a=rm(t.getDoc(),i,n,r),s=Vl(),u=function(){s.clear()},l=function(){return s.get().getOrThunk(function(){var t=wc(a);return o.push(t),s.set(t),t})},c=function(t){wt(t,f)},f=function(e){switch(em(t,e,"span",jn(e))){case"invalid-child":u();var n=ir(e);c(n),u();break;case"valid":var r=l();kr(e,r)}},d=function(t){var e=_t(t,En.fromDom);c(e)};return Ig(t.dom,e,function(t){u(),d(t)}),o},om=function(t,e,n,r){t.undoManager.transact(function(){var i=t.selection,o=i.getRng(),a=Vg(t).length>0;if(o.collapsed&&!a&&nm(t,o),i.getRng().collapsed&&!a){var s=rm(t.getDoc(),r,e,n.decorate);bc(s," "),i.getRng().insertNode(s.dom),i.select(s.dom)}else Jg(i,!1,function(){Xg(t,function(i){im(t,i,e,n.decorate,r)})})})},am=function(t){var e=dc();fc(t,e);var n=cc(t);return{register:function(t,n){e.register(t,n)},annotate:function(n,r){e.lookup(n).each(function(e){om(t,n,e,r)})},annotationChanged:function(t,e){n.addListener(t,e)},remove:function(e){ac(t,dt.some(e)).each(function(t){var e=t.elements;wt(e,Ar)})},getAll:function(e){var n=lc(t,e);return qt(n,function(t){return _t(t,function(t){return t.dom})})}}},sm=function(t){return{getBookmark:r(qp,t),moveToBookmark:r(Wp,t)}};sm.isBookmarkNode=Gp;var um=function(t,e){for(;e&&e!==t;){if(oi(e)||ai(e))return e;e=e.parentNode}return null},lm=function(t,e,n){if(n.collapsed)return!1;if(sn.browser.isIE()&&n.startOffset===n.endOffset-1&&n.startContainer===n.endContainer){var r=n.startContainer.childNodes[n.startOffset];if(Hr(r))return bt(r.getClientRects(),function(n){return Dc(n,t,e)})}return bt(n.getClientRects(),function(n){return Dc(n,t,e)})},cm=function(t,e){return t.fire("PreProcess",e)},fm=function(t,e){return t.fire("PostProcess",e)},dm=function(t){return t.fire("remove")},hm=function(t){return t.fire("detach")},pm=function(t,e){return t.fire("SwitchMode",{mode:e})},gm=function(t,e,n,r,i){t.fire("ObjectResizeStart",{target:e,width:n,height:r,origin:i})},mm=function(t,e,n,r,i){t.fire("ObjectResized",{target:e,width:n,height:r,origin:i})},vm=function(t){return t.fire("PreInit")},ym=function(t){return t.fire("PostRender")},bm=function(t){return t.fire("Init")},_m=function(t,e){return t.fire("PlaceholderToggle",{state:e})},wm=function(t,e,n){return t.fire(e,n)},xm=function(t,e,n,r){return t.fire("FormatApply",{format:e,node:n,vars:r})},km=function(t,e,n,r){return t.fire("FormatRemove",{format:e,node:n,vars:r})},Sm={BACKSPACE:8,DELETE:46,DOWN:40,ENTER:13,ESC:27,LEFT:37,RIGHT:39,SPACEBAR:32,TAB:9,UP:38,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,modifierPressed:function(t){return t.shiftKey||t.ctrlKey||t.altKey||Sm.metaKeyPressed(t)},metaKeyPressed:function(t){return sn.mac?t.metaKey:t.ctrlKey&&!t.altKey}},Cm=ai,Em=function(t,e){var n,r,i,o,a,s,u,l,c,f,d,h,p,g,m,v=e.dom,y=_n.each,b=e.getDoc(),_=document,w=Math.abs,x=Math.round,k=e.getBody(),S={nw:[0,0,-1,-1],ne:[1,0,1,-1],se:[1,1,1,1],sw:[0,1,-1,1]},C=function(t){return t&&("IMG"===t.nodeName||e.dom.is(t,"figure.image"))},E=function(t){return ui(t)||v.hasClass(t,"mce-preview-object")},T=function(t,e){if("longpress"===t.type||0===t.type.indexOf("touch")){var n=t.touches[0];return C(t.target)&&!lm(n.clientX,n.clientY,e)}return C(t.target)&&!lm(t.clientX,t.clientY,e)},A=function(t){var n=t.target;T(t,e.selection.getRng())&&!t.isDefaultPrevented()&&e.selection.select(n)},O=function(t){return v.is(t,"figure.image")?[t.querySelector("img")]:v.hasClass(t,"mce-preview-object")&&G(t.firstElementChild)?[t,t.firstElementChild]:[t]},P=function(t){var n=Ed(e);return!!n&&("false"!==t.getAttribute("data-mce-resize")&&(t!==e.getBody()&&(v.hasClass(t,"mce-preview-object")?Pn(En.fromDom(t.firstElementChild),n):Pn(En.fromDom(t),n))))},N=function(t){return E(t)?v.create("img",{src:sn.transparentSrc}):t.cloneNode(!0)},D=function(t,n,r){if(G(r)){var i=O(t);wt(i,function(t){t.style[n]||!e.schema.isValid(t.nodeName.toLowerCase(),n)?v.setStyle(t,n,r):v.setAttrib(t,n,""+r)})}},M=function(t,e,n){D(t,"width",e),D(t,"height",n)},I=function(t){var a,y,b,_,S;a=t.screenX-s,y=t.screenY-u,h=a*o[2]+l,p=y*o[3]+c,h=h<5?5:h,p=p<5?5:p,b=(C(n)||E(n))&&!1!==Td(e)?!Sm.modifierPressed(t):Sm.modifierPressed(t),b&&(w(a)>w(y)?(p=x(h*f),h=x(p/f)):(h=x(p/f),p=x(h*f))),M(r,h,p),_=o.startPos.x+a,S=o.startPos.y+y,_=_>0?_:0,S=S>0?S:0,v.setStyles(i,{left:_,top:S,display:"block"}),i.innerHTML=h+" &times; "+p,o[2]<0&&r.clientWidth<=h&&v.setStyle(r,"left",void 0+(l-h)),o[3]<0&&r.clientHeight<=p&&v.setStyle(r,"top",void 0+(c-p)),a=k.scrollWidth-g,y=k.scrollHeight-m,a+y!==0&&v.setStyles(i,{left:_-a,top:S-y}),d||(gm(e,n,l,c,"corner-"+o.name),d=!0)},R=function(){var t=d;d=!1,t&&(D(n,"width",h),D(n,"height",p)),v.unbind(b,"mousemove",I),v.unbind(b,"mouseup",R),_!==b&&(v.unbind(_,"mousemove",I),v.unbind(_,"mouseup",R)),v.remove(r),v.remove(i),v.remove(a),$(n),t&&(mm(e,n,h,p,"corner-"+o.name),v.setAttrib(n,"style",v.getAttrib(n,"style"))),e.nodeChanged()},$=function(t){B();var d=v.getPos(t,k),w=d.x,x=d.y,C=t.getBoundingClientRect(),E=C.width||C.right-C.left,T=C.height||C.bottom-C.top;n!==t&&(L(),n=t,h=p=0);var A=e.fire("ObjectSelected",{target:t}),D=v.getAttrib(n,"data-mce-selected","1");P(t)&&!A.isDefaultPrevented()?y(S,function(t,e){var d,h=function(d){var h=O(n)[0];s=d.screenX,u=d.screenY,l=h.clientWidth,c=h.clientHeight,f=c/l,o=t,o.name=e,o.startPos={x:E*t[0]+w,y:T*t[1]+x},g=k.scrollWidth,m=k.scrollHeight,a=v.add(k,"div",{class:"mce-resize-backdrop","data-mce-bogus":"all"}),v.setStyles(a,{position:"fixed",left:"0",top:"0",width:"100%",height:"100%"}),r=N(n),v.addClass(r,"mce-clonedresizable"),v.setAttrib(r,"data-mce-bogus","all"),r.contentEditable="false",v.setStyles(r,{left:w,top:x,margin:0}),M(r,E,T),r.removeAttribute("data-mce-selected"),k.appendChild(r),v.bind(b,"mousemove",I),v.bind(b,"mouseup",R),_!==b&&(v.bind(_,"mousemove",I),v.bind(_,"mouseup",R)),i=v.add(k,"div",{class:"mce-resize-helper","data-mce-bogus":"all"},l+" &times; "+c)};d=v.get("mceResizeHandle"+e),d&&v.remove(d),d=v.add(k,"div",{id:"mceResizeHandle"+e,"data-mce-bogus":"all",class:"mce-resizehandle",unselectable:!0,style:"cursor:"+e+"-resize; margin:0; padding:0"}),11===sn.ie&&(d.contentEditable=!1),v.bind(d,"mousedown",function(t){t.stopImmediatePropagation(),t.preventDefault(),h(t)}),t.elm=d,v.setStyles(d,{left:E*t[0]+w-d.offsetWidth/2,top:T*t[1]+x-d.offsetHeight/2})}):L(),v.getAttrib(n,"data-mce-selected")||n.setAttribute("data-mce-selected",D)},L=function(){B(),n&&n.removeAttribute("data-mce-selected"),Ht(S,function(t,e){var n=v.get("mceResizeHandle"+e);n&&(v.unbind(n),v.remove(n))})},j=function(n){var r,i,o=function(t,e){if(t)do{if(t===e)return!0}while(t=t.parentNode)};if(!d&&!e.removed){if(y(v.select("img[data-mce-selected],hr[data-mce-selected]"),function(t){t.removeAttribute("data-mce-selected")}),i="mousedown"===n.type?n.target:t.getNode(),i=v.$(i).closest("table,img,figure.image,hr,video,span.mce-preview-object")[0],o(i,k)&&(V(),r=t.getStart(!0),o(r,i)&&o(t.getEnd(!0),i)))return void $(i);L()}},F=function(t){return Cm(um(e.getBody(),t))},B=function(){Ht(S,function(t){t.elm&&(v.unbind(t.elm),delete t.elm)})},V=function(){try{e.getDoc().execCommand("enableObjectResizing",!1,"false")}catch(t){}};return e.on("init",function(){if(V(),sn.browser.isIE()||sn.browser.isEdge()){e.on("mousedown click",function(t){var n=t.target,r=n.nodeName;d||!/^(TABLE|IMG|HR)$/.test(r)||F(n)||(2!==t.button&&e.selection.select(n,"TABLE"===r),"mousedown"===t.type&&e.nodeChanged())});var t=function(t){var n=function(t){Ro.setEditorTimeout(e,function(){return e.selection.select(t)})};if(F(t.target)||ui(t.target))return t.preventDefault(),void n(t.target);/^(TABLE|IMG|HR)$/.test(t.target.nodeName)&&(t.preventDefault(),"IMG"===t.target.tagName&&n(t.target))};v.bind(k,"mscontrolselect",t),e.on("remove",function(){return v.unbind(k,"mscontrolselect",t)})}var r=Ro.throttle(function(t){e.composing||j(t)});e.on("NodeChange ResizeEditor ResizeWindow ResizeContent drop",r),e.on("keyup compositionend",function(t){n&&"TABLE"===n.nodeName&&r(t)}),e.on("hide blur",L),e.on("contextmenu longpress",A,!0)}),e.on("remove",B),{isResizable:P,showResizeRect:$,hideResizeRect:L,updateResizeRect:j,destroy:function(){n=r=a=null}}},Tm=function(t){return oi(t)||ai(t)},Am=function(t,e,n){for(;t&&t!==e;){if(n(t))return t;t=t.parentNode}return null},Om=function(t,e,n){var r,i=n.elementFromPoint(t,e),o=n.body.createTextRange();if(i&&"HTML"!==i.tagName||(i=n.body),o.moveToElementText(i),r=_n.toArray(o.getClientRects()),r=r.sort(function(t,n){return t=Math.abs(Math.max(t.top-e,t.bottom-e)),n=Math.abs(Math.max(n.top-e,n.bottom-e)),t-n}),r.length>0){e=(r[0].bottom+r[0].top)/2;try{return o.moveToPoint(t,e),o.collapse(!0),o}catch(t){}}return null},Pm=function(t,e){var n=t&&t.parentElement?t.parentElement():null;return ai(Am(n,e,Tm))?null:t},Nm=function(t,e,n){var r,i,o=n;if(o.caretPositionFromPoint)(i=o.caretPositionFromPoint(t,e))&&(r=n.createRange(),r.setStart(i.offsetNode,i.offset),r.collapse(!0));else if(o.caretRangeFromPoint)r=o.caretRangeFromPoint(t,e);else if(o.body.createTextRange){r=o.body.createTextRange();try{r.moveToPoint(t,e),r.collapse(!0)}catch(i){r=Om(t,e,n)}return Pm(r,n.body)}return r},Dm=function(t,e){return t&&e&&t.startContainer===e.startContainer&&t.startOffset===e.startOffset&&t.endContainer===e.endContainer&&t.endOffset===e.endOffset},Mm=function(t,e,n){for(;t&&t!==e;){if(n(t))return t;t=t.parentNode}return null},Im=function(t,e,n){return null!==Mm(t,e,n)},Rm=function(t,e,n){return Im(t,e,function(t){return t.nodeName===n})},$m=function(t){return t&&"TABLE"===t.nodeName},Lm=function(t){return t&&/^(TD|TH|CAPTION)$/.test(t.nodeName)},jm=function(t,e){return ga(t)&&!1===Im(t,e,Cp)},Fm=function(t,e,n){for(var r=new jo(e,t.getParent(e.parentNode,t.isBlock)||t.getRoot());e=r[n?"prev":"next"]();)if(ri(e))return!0},Bm=function(t,e){return t.previousSibling&&t.previousSibling.nodeName===e},Vm=function(t,e){for(;e&&e!==t;){if(ai(e))return!0;e=e.parentNode}return!1},zm=function(t,e,n,r,i){var o,a,s=t.getRoot(),u=t.schema.getNonEmptyElements(),l=t.getParent(i.parentNode,t.isBlock)||s;if(r&&ri(i)&&e&&t.isEmpty(l))return dt.some(sf(i.parentNode,t.nodeIndex(i)));for(var c=new jo(i,l);a=c[r?"prev":"next"]();){if("false"===t.getContentEditableParent(a)||jm(a,s))return dt.none();if(Zr(a)&&a.nodeValue.length>0)return!1===Rm(a,s,"A")?dt.some(sf(a,r?a.nodeValue.length:0)):dt.none();if(t.isBlock(a)||u[a.nodeName.toLowerCase()])return dt.none();o=a}return n&&o?dt.some(sf(o,0)):dt.none()},Um=function(t,e,n,r){var i,o,a,s,u=t.getRoot(),l=!1;i=r[(n?"start":"end")+"Container"],o=r[(n?"start":"end")+"Offset"];var c=Hr(i)&&o===i.childNodes.length,f=t.schema.getNonEmptyElements();if(s=n,ga(i))return dt.none();if(Hr(i)&&o>i.childNodes.length-1&&(s=!1),ei(i)&&(i=u,o=0),i===u){if(s&&(a=i.childNodes[o>0?o-1:0])){if(ga(a))return dt.none();if(f[a.nodeName]||$m(a))return dt.none()}if(i.hasChildNodes()){if(o=Math.min(!s&&o>0?o-1:o,i.childNodes.length-1),i=i.childNodes[o],o=Zr(i)&&c?i.data.length:0,!e&&i===u.lastChild&&$m(i))return dt.none();if(Vm(u,i)||ga(i))return dt.none();if(i.hasChildNodes()&&!1===$m(i)){a=i;var d=new jo(i,u);do{if(ai(a)||ga(a)){l=!1;break}if(Zr(a)&&a.nodeValue.length>0){o=s?0:a.nodeValue.length,i=a,l=!0;break}if(f[a.nodeName.toLowerCase()]&&!Lm(a)){o=t.nodeIndex(a),i=a.parentNode,s||o++,l=!0;break}}while(a=s?d.next():d.prev())}}}return e&&(Zr(i)&&0===o&&zm(t,c,e,!0,i).each(function(t){i=t.container(),o=t.offset(),l=!0}),Hr(i)&&(a=i.childNodes[o],a||(a=i.childNodes[o-1]),!a||!ri(a)||Bm(a,"A")||Fm(t,a,!1)||Fm(t,a,!0)||zm(t,c,e,!0,a).each(function(t){i=t.container(),o=t.offset(),l=!0}))),s&&!e&&Zr(i)&&o===i.nodeValue.length&&zm(t,c,e,!1,i).each(function(t){i=t.container(),o=t.offset(),l=!0}),l?dt.some(sf(i,o)):dt.none()},Hm=function(t,e){var n=e.collapsed,r=e.cloneRange(),i=sf.fromRangeStart(e);return Um(t,n,!0,r).each(function(t){n&&sf.isAbove(i,t)||r.setStart(t.container(),t.offset())}),n||Um(t,n,!1,r).each(function(t){r.setEnd(t.container(),t.offset())}),n&&r.collapse(!0),Dm(e,r)?dt.none():dt.some(r)},qm=function(t,e){return t.splitText(e)},Wm=function(t){var e=t.startContainer,n=t.startOffset,r=t.endContainer,i=t.endOffset;return e===r&&Zr(e)?n>0&&n<e.nodeValue.length&&(r=qm(e,n),e=r.previousSibling,i>n?(i-=n,e=r=qm(r,i).previousSibling,i=r.nodeValue.length,n=0):i=0):(Zr(e)&&n>0&&n<e.nodeValue.length&&(e=qm(e,n),n=0),Zr(r)&&i>0&&i<r.nodeValue.length&&(r=qm(r,i).previousSibling,i=r.nodeValue.length)),{startContainer:e,startOffset:n,endContainer:r,endOffset:i}},Gm=function(t){return{walk:function(e,n){return Ig(t,e,n)},split:Wm,normalize:function(e){return Hm(t,e).fold(at,function(t){return e.setStart(t.startContainer,t.startOffset),e.setEnd(t.endContainer,t.endOffset),!0})}}};Gm.compareRanges=Dm,Gm.getCaretRangeFromPoint=Nm,Gm.getSelectedNode=Ic,Gm.getNode=Rc;var Ym,Km=function(t,e){var n=function(e,n){if(!K(n)&&!n.match(/^[0-9]+$/))throw new Error(t+".set accepts only positive integer values. Value was "+n);var r=e.dom;pi(r)&&(r.style[t]=n+"px")},r=function(n){var r=e(n);if(r<=0||null===r){var i=Ci(n,t);return parseFloat(i)||0}return r},i=r,o=function(t,e){return Et(e,function(e,n){var r=Ci(t,n),i=void 0===r?0:parseInt(r,10);return isNaN(i)?e:e+i},0)};return{set:n,get:r,getOuter:i,aggregate:o,max:function(t,e,n){var r=o(t,n);return e>r?e-r:0}}}("height",function(t){var e=t.dom;return Or(t)?e.getBoundingClientRect().height:e.offsetHeight}),Xm=function(t){return Km.get(t)},Jm=function(t,e){return t.view(e).fold(Z([]),function(e){var n=t.owner(e);return[e].concat(Jm(t,n))})},Qm=function(t,e){var n=e.owner(t);return Jm(e,n)},Zm=function(t){var e;return(t.dom===document?dt.none():dt.from(null===(e=t.dom.defaultView)||void 0===e?void 0:e.frameElement)).map(En.fromDom)},tv=function(t){return Yn(t)},ev=Object.freeze({__proto__:null,view:Zm,owner:tv}),nv=function(t){var e=En.fromDom(document),n=$r(e),r=Qm(t,ev),i=Rr(t),o=Ct(r,function(t,e){var n=Rr(e);return{left:t.left+n.left,top:t.top+n.top}},{left:0,top:0});return Nr(o.left+i.left+n.left,o.top+i.top+n.top)},rv=function(t){return"textarea"===jn(t)},iv=function(t,e){return t.fire("ScrollIntoView",e).isDefaultPrevented()},ov=function(t,e){t.fire("AfterScrollIntoView",e)},av=function(t,e){var n=ir(t);if(0===n.length||rv(t))return{element:t,offset:e};if(e<n.length&&!rv(n[e]))return{element:n[e],offset:0};var r=n[n.length-1];return rv(r)?{element:t,offset:e}:"img"===jn(r)?{element:r,offset:1}:Un(r)?{element:r,offset:Zg(r).length}:{element:r,offset:ir(r).length}},sv=function(t,e){var n=Ir(t),r=Xm(t);return{element:t,bottom:n.top+r,height:r,pos:n,cleanup:e}},uv=function(t,e){var n=av(t,e),r=En.fromHtml('<span data-mce-bogus="all" style="display: inline-block;">\ufeff</span>');return br(n.element,r),sv(r,function(){return Tr(r)})},lv=function(t){return sv(En.fromDom(t),X)},cv=function(t,e,n,r){pv(t,function(i,o){return dv(t,e,n,r)},n)},fv=function(t,e,n,r,i){var o={elm:r.element.dom,alignToTop:i};if(!iv(t,o)){n(e,$r(e).top,r,i),ov(t,o)}},dv=function(t,e,n,r){var i=En.fromDom(t.getBody()),o=En.fromDom(t.getDoc());Oi(i);var a=uv(En.fromDom(n.startContainer),n.startOffset);fv(t,o,e,a,r),a.cleanup()},hv=function(t,e,n,r){var i=En.fromDom(t.getDoc());fv(t,i,n,lv(e),r)},pv=function(t,e,n){var r=n.startContainer,i=n.startOffset,o=n.endContainer,a=n.endOffset;e(En.fromDom(r),En.fromDom(o));var s=t.dom.createRng();s.setStart(r,i),s.setEnd(o,a),t.selection.setRng(n)},gv=function(t,e,n,r){var i=t.pos;if(n)Lr(i.left,i.top,r);else{var o=i.top-e+t.height;Lr(i.left,o,r)}},mv=function(t,e,n,r,i){var o=n+e,a=r.pos.top,s=r.bottom,u=s-a>=n;if(a<e)gv(r,n,!1!==i,t);else if(a>o){var l=u?!1!==i:!0===i;gv(r,n,l,t)}else s>o&&!u&&gv(r,n,!0===i,t)},vv=function(t,e,n,r){var i=t.dom.defaultView.innerHeight;mv(t,e,i,n,r)},yv=function(t,e,n,r){var i=t.dom.defaultView.innerHeight;mv(t,e,i,n,r);var o=nv(n.element),a=Vr(window);o.top<a.y?jr(n.element,!1!==r):o.top>a.bottom&&jr(n.element,!0===r)},bv=function(t,e,n){return cv(t,vv,e,n)},_v=function(t,e,n){return hv(t,e,vv,n)},wv=function(t,e,n){return cv(t,yv,e,n)},xv=function(t,e,n){return hv(t,e,yv,n)},kv=function(t,e,n){(t.inline?_v:xv)(t,e,n)},Sv=function(t,e,n){(t.inline?bv:wv)(t,e,n)},Cv=function(){return En.fromDom(document)},Ev=function(t){return t.dom.focus()},Tv=function(t){var e=hr(t).dom;return t.dom===e.activeElement},Av=function(t){return void 0===t&&(t=Cv()),dt.from(t.dom.activeElement).map(En.fromDom)},Ov=function(t){return Av(hr(t)).filter(function(e){return t.dom.contains(e.dom)})},Pv=function(t,e,n,r){return{start:t,soffset:e,finish:n,foffset:r}},Nv={create:Pv},Dv=Zi.generate([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),Mv=function(t,e,n,r){return t.fold(e,n,r)},Iv=function(t){return t.fold(tt,tt,tt)},Rv=Dv.before,$v=Dv.on,Lv=Dv.after,jv={before:Rv,on:$v,after:Lv,cata:Mv,getStart:Iv},Fv=Zi.generate([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),Bv=function(t){return Fv.exact(t.start,t.soffset,t.finish,t.foffset)},Vv=function(t){return t.match({domRange:function(t){return En.fromDom(t.startContainer)},relative:function(t,e){return jv.getStart(t)},exact:function(t,e,n,r){return t}})},zv=Fv.domRange,Uv=Fv.relative,Hv=Fv.exact,qv=function(t){var e=Vv(t);return Xn(e)},Wv=Nv.create,Gv={domRange:zv,relative:Uv,exact:Hv,exactFromRange:Bv,getWin:qv,range:Wv},Yv=Je().browser,Kv=function(t,e){var n=Un(e)?Zg(e).length:ir(e).length+1;return t>n?n:t<0?0:t},Xv=function(t){return Gv.range(t.start,Kv(t.soffset,t.start),t.finish,Kv(t.foffset,t.finish))},Jv=function(t,e){return!Ur(e.dom)&&(Ln(t,e)||In(t,e))},Qv=function(t){return function(e){return Jv(t,e.start)&&Jv(t,e.finish)}},Zv=function(t){return!0===t.inline||Yv.isIE()},ty=function(t){return Gv.range(En.fromDom(t.startContainer),t.startOffset,En.fromDom(t.endContainer),t.endOffset)},ey=function(t){var e=t.getSelection();return(e&&0!==e.rangeCount?dt.from(e.getRangeAt(0)):dt.none()).map(ty)},ny=function(t){var e=Xn(t);return ey(e.dom).filter(Qv(t))},ry=function(t,e){return dt.from(e).filter(Qv(t)).map(Xv)},iy=function(t){var e=document.createRange();try{return e.setStart(t.start.dom,t.soffset),e.setEnd(t.finish.dom,t.foffset),dt.some(e)}catch(t){return dt.none()}},oy=function(t){var e=Zv(t)?ny(En.fromDom(t.getBody())):dt.none();t.bookmark=e.isSome()?e:t.bookmark},ay=function(t,e){var n=En.fromDom(t.getBody()),r=Zv(t)?dt.from(e):dt.none(),i=r.map(ty).filter(Qv(n));t.bookmark=i.isSome()?i:t.bookmark},sy=function(t){return(t.bookmark?t.bookmark:dt.none()).bind(function(e){return ry(En.fromDom(t.getBody()),e)}).bind(iy)},uy=function(t){sy(t).each(function(e){return t.selection.setRng(e)})},ly=function(t){var e=t.className.toString();return-1!==e.indexOf("tox-")||-1!==e.indexOf("mce-")},cy={isEditorUIElement:ly},fy=function(t){return"nodechange"===t.type&&t.selectionChange},dy=function(t,e){var n=function(){e.throttle()};_l.DOM.bind(document,"mouseup",n),t.on("remove",function(){_l.DOM.unbind(document,"mouseup",n)})},hy=function(t){t.on("focusout",function(){oy(t)})},py=function(t,e){t.on("mouseup touchend",function(t){e.throttle()})},gy=function(t,e){Je().browser.isIE()?hy(t):py(t,e),t.on("keyup NodeChange",function(e){fy(e)||oy(t)})},my=function(t){var e=zl(function(){oy(t)},0);t.on("init",function(){t.inline&&dy(t,e),gy(t,e)}),t.on("remove",function(){e.cancel()})},vy=_l.DOM,yy=function(t){return cy.isEditorUIElement(t)},by=function(t){var e=t.classList;return void 0!==e&&(e.contains("tox-edit-area")||e.contains("tox-edit-area__iframe")||e.contains("mce-content-body"))},_y=function(t,e){var n=Ld(t);return null!==vy.getParent(e,function(e){return yy(e)||!!n&&t.dom.is(e,n)})},wy=function(t){try{var e=hr(En.fromDom(t.getElement()));return Av(e).fold(function(){return document.body},function(t){return t.dom})}catch(t){return document.body}},xy=function(t,e){var n=e.editor;my(n),n.on("focusin",function(){var e=t.focusedEditor;e!==n&&(e&&e.fire("blur",{focusedEditor:n}),t.setActive(n),t.focusedEditor=n,n.fire("focus",{blurredEditor:e}),n.focus(!0))}),n.on("focusout",function(){Ro.setEditorTimeout(n,function(){var e=t.focusedEditor;_y(n,wy(n))||e!==n||(n.fire("blur",{focusedEditor:null}),t.focusedEditor=null)})}),Ym||(Ym=function(e){var n=t.activeEditor;n&&vr(e).each(function(e){e.ownerDocument===document&&(e===document.body||_y(n,e)||t.focusedEditor!==n||(n.fire("blur",{focusedEditor:null}),t.focusedEditor=null))})},vy.bind(document,"focusin",Ym))},ky=function(t,e){t.focusedEditor===e.editor&&(t.focusedEditor=null),t.activeEditor||(vy.unbind(document,"focusin",Ym),Ym=null)},Sy=function(t){t.on("AddEditor",r(xy,t)),t.on("RemoveEditor",r(ky,t))},Cy=function(t,e){return t.dom.getParent(e,function(e){return"true"===t.dom.getContentEditable(e)})},Ey=function(t){return t.collapsed?dt.from(Rc(t.startContainer,t.startOffset)).map(En.fromDom):dt.none()},Ty=function(t,e){return Ey(e).bind(function(e){return na(e)?dt.some(e):!1===Ln(t,e)?dt.some(t):dt.none()})},Ay=function(t,e){Ty(En.fromDom(t.getBody()),e).bind(function(t){return kp(t.dom)}).fold(function(){t.selection.normalize()},function(e){return t.selection.setRng(e.toRange())})},Oy=function(t){if(t.setActive)try{t.setActive()}catch(e){t.focus()}else t.focus()},Py=function(t){return Tv(t)||Ov(t).isSome()},Ny=function(t){return t.iframeElement&&Tv(En.fromDom(t.iframeElement))},Dy=function(t){var e=t.getBody();return e&&Py(En.fromDom(e))},My=function(t){var e=hr(En.fromDom(t.getElement()));return Av(e).filter(function(e){return!by(e.dom)&&_y(t,e.dom)}).isSome()},Iy=function(t){return t.inline?Dy(t):Ny(t)},Ry=function(t){return Iy(t)||My(t)},$y=function(t){var e=t.selection,n=t.getBody(),r=e.getRng();t.quirks.refreshContentEditable(),void 0!==t.bookmark&&!1===Iy(t)&&sy(t).each(function(e){t.selection.setRng(e),r=e});var i=Cy(t,e.getNode());if(t.$.contains(n,i))return Oy(i),Ay(t,r),void Ly(t);t.inline||(sn.opera||Oy(n),t.getWin().focus()),(sn.gecko||t.inline)&&(Oy(n),Ay(t,r)),Ly(t)},Ly=function(t){return t.editorManager.setActive(t)},jy=function(t,e){t.removed||(e?Ly(t):$y(t))},Fy=function(t,e,n,r,i){var o=n?e.startContainer:e.endContainer,a=n?e.startOffset:e.endOffset;return dt.from(o).map(En.fromDom).map(function(t){return r&&e.collapsed?t:or(t,i(t,a)).getOr(t)}).bind(function(t){return zn(t)?dt.some(t):Jn(t).filter(zn)}).map(function(t){return t.dom}).getOr(t)},By=function(t,e,n){return Fy(t,e,!0,n,function(t,e){return Math.min(ur(t),e)})},Vy=function(t,e,n){return Fy(t,e,!1,n,function(t,e){return e>0?e-1:e})},zy=function(t,e){for(var n=t;t&&Zr(t)&&0===t.length;)t=e?t.nextSibling:t.previousSibling;return t||n},Uy=function(t,e){var n,r,i;if(!e)return t;r=e.startContainer,i=e.endContainer;var o=e.startOffset,a=e.endOffset;return n=e.commonAncestorContainer,!e.collapsed&&(r===i&&a-o<2&&r.hasChildNodes()&&(n=r.childNodes[o]),3===r.nodeType&&3===i.nodeType&&(r=r.length===o?zy(r.nextSibling,!0):r.parentNode,i=0===a?zy(i.previousSibling,!1):i.parentNode,r&&r===i))?r:n&&3===n.nodeType?n.parentNode:n},Hy=function(t,e,n,r){var i,o=[],a=t.getRoot();if(n=t.getParent(n||By(a,e,e.collapsed),t.isBlock),r=t.getParent(r||Vy(a,e,e.collapsed),t.isBlock),n&&n!==a&&o.push(n),n&&r&&n!==r){i=n;for(var s=new jo(n,a);(i=s.next())&&i!==r;)t.isBlock(i)&&o.push(i)}return r&&n!==r&&r!==a&&o.push(r),o},qy=function(t,e,n){return dt.from(e).map(function(e){var r=t.nodeIndex(e),i=t.createRng();return i.setStart(e.parentNode,r),i.setEnd(e.parentNode,r+1),n&&(Yg(t,i,e,!0),Yg(t,i,e,!1)),i})},Wy=function(t,e){return _t(e,function(e){var n=t.fire("GetSelectionRange",{range:e});return n.range!==e?n.range:e})},Gy={"#text":3,"#comment":8,"#cdata":4,"#pi":7,"#doctype":10,"#document-fragment":11},Yy=function(t,e,n){var r=n?"lastChild":"firstChild",i=n?"prev":"next";if(t[r])return t[r];if(t!==e){var o=t[i];if(o)return o;for(var a=t.parent;a&&a!==e;a=a.parent)if(o=a[i])return o}},Ky=function(t){if(!Ua(t.value))return!1;var e=t.parent;return!e||"span"===e.name&&!e.attr("style")||!/^[ ]+$/.test(t.value)},Xy=function(t){var e="a"===t.name&&!t.attr("href")&&t.attr("id");return t.attr("name")||t.attr("id")&&!t.firstChild||t.attr("data-mce-bookmark")||e},Jy=function(){function t(t,e){this.name=t,this.type=e,1===e&&(this.attributes=[],this.attributes.map={})}return t.create=function(e,n){var r=new t(e,Gy[e]||1);return n&&Ht(n,function(t,e){r.attr(e,t)}),r},t.prototype.replace=function(t){var e=this;return t.parent&&t.remove(),e.insert(t,e),e.remove(),e},t.prototype.attr=function(t,e){var n,r=this;if("string"!=typeof t)return void 0!==t&&null!==t&&Ht(t,function(t,e){r.attr(e,t)}),r;if(n=r.attributes){if(void 0!==e){if(null===e){if(t in n.map){delete n.map[t];for(var i=n.length;i--;)if(n[i].name===t)return n.splice(i,1),r}return r}if(t in n.map){for(var i=n.length;i--;)if(n[i].name===t){n[i].value=e;break}}else n.push({name:t,value:e});return n.map[t]=e,r}return n.map[t]}},t.prototype.clone=function(){var e,n=this,r=new t(n.name,n.type);if(e=n.attributes){var i=[];i.map={};for(var o=0,a=e.length;o<a;o++){var s=e[o];"id"!==s.name&&(i[i.length]={name:s.name,value:s.value},i.map[s.name]=s.value)}r.attributes=i}return r.value=n.value,r.shortEnded=n.shortEnded,r},t.prototype.wrap=function(t){var e=this;return e.parent.insert(t,e),t.append(e),e},t.prototype.unwrap=function(){for(var t=this,e=t.firstChild;e;){var n=e.next;t.insert(e,t,!0),e=n}t.remove()},t.prototype.remove=function(){var t=this,e=t.parent,n=t.next,r=t.prev;return e&&(e.firstChild===t?(e.firstChild=n,n&&(n.prev=null)):r.next=n,e.lastChild===t?(e.lastChild=r,r&&(r.next=null)):n.prev=r,t.parent=t.next=t.prev=null),t},t.prototype.append=function(t){var e=this;t.parent&&t.remove();var n=e.lastChild;return n?(n.next=t,t.prev=n,e.lastChild=t):e.lastChild=e.firstChild=t,t.parent=e,t},t.prototype.insert=function(t,e,n){t.parent&&t.remove();var r=e.parent||this;return n?(e===r.firstChild?r.firstChild=t:e.prev.next=t,t.prev=e.prev,t.next=e,e.prev=t):(e===r.lastChild?r.lastChild=t:e.next.prev=t,t.next=e.next,t.prev=e,e.next=t),t.parent=r,t},t.prototype.getAll=function(t){for(var e=this,n=[],r=e.firstChild;r;r=Yy(r,e))r.name===t&&n.push(r);return n},t.prototype.children=function(){for(var t=this,e=[],n=t.firstChild;n;n=n.next)e.push(n);return e},t.prototype.empty=function(){var t=this;if(t.firstChild){for(var e=[],n=t.firstChild;n;n=Yy(n,t))e.push(n);for(var r=e.length;r--;){var n=e[r];n.parent=n.firstChild=n.lastChild=n.next=n.prev=null}}return t.firstChild=t.lastChild=null,t},t.prototype.isEmpty=function(t,e,n){void 0===e&&(e={});var r=this,i=r.firstChild;if(Xy(r))return!1;if(i)do{if(1===i.type){if(i.attr("data-mce-bogus"))continue;if(t[i.name])return!1;if(Xy(i))return!1}if(8===i.type)return!1;if(3===i.type&&!Ky(i))return!1;if(3===i.type&&i.parent&&e[i.parent.name]&&Ua(i.value))return!1;if(n&&n(i))return!1}while(i=Yy(i,r));return!0},t.prototype.walk=function(t){return Yy(this,null,t)},t}(),Qy=function(t){return(0===t.length?"":_t(t,function(t){return"["+t+"]"}).join(",")+",")+'[data-mce-bogus="all"]'},Zy=function(t,e){return t.querySelectorAll(Qy(e))},tb=function(t){return document.createTreeWalker(t,NodeFilter.SHOW_COMMENT,null,!1)},eb=function(t){return null!==tb(t).nextNode()},nb=function(t,e){return null!==t.querySelector(Qy(e))},rb=function(t,e){wt(Zy(t,e),function(t){var n=En.fromDom(t);"all"===yi(n,"data-mce-bogus")?Tr(n):wt(e,function(t){_i(n,t)&&wi(n,t)})})},ib=function(t){for(var e=tb(t),n=e.nextNode();null!==n;){var r=e.currentNode;n=e.nextNode(),B(r.nodeValue)&&-1!==r.nodeValue.indexOf(ua)&&Tr(En.fromDom(r))}},ob=function(t){return t.cloneNode(!0)},ab=function(t,e){var n=t;return eb(t)?(n=ob(t),ib(n),nb(n,e)&&rb(n,e)):nb(t,e)&&(n=ob(t),rb(n,e)),n},sb=function(t,e){var n=Qf(t),r=new RegExp("^(<"+n+"[^>]*>(&nbsp;|&#160;|\\s| |<br \\/>|)<\\/"+n+">[\r\n]*|<br \\/>[\r\n]*)$");return e.replace(r,"")},ub=function(t,e){return de(de({},t),{format:e,get:!0,getInner:!0})},lb=function(t,e,n,r){var i,o=ub(e,n),a=e.no_events?o:t.fire("BeforeGetContent",o);return i="raw"===a.format?_n.trim(ca(ab(r,t.serializer.getTempAttrs()).innerHTML)):"text"===a.format?t.dom.isEmpty(r)?"":ca(r.innerText||r.textContent):"tree"===a.format?t.serializer.serialize(r,a):sb(t,t.serializer.serialize(r,a)),yt(["text","tree"],a.format)||ia(En.fromDom(r))?a.content=i:a.content=_n.trim(i),a.no_events?a.content:t.fire("GetContent",a).content},cb=function(t,e,n){return dt.from(t.getBody()).fold(Z("tree"===e.format?new Jy("body",11):""),function(r){return lb(t,e,n,r)})},fb=_n.each,db=function(t){return{compare:function(e,n){if(e.nodeName!==n.nodeName)return!1;var r=function(e){var n={};return fb(t.getAttribs(e),function(r){var i=r.nodeName.toLowerCase();0!==i.indexOf("_")&&"style"!==i&&0!==i.indexOf("data-")&&(n[i]=t.getAttrib(e,i))}),n},i=function(t,e){var n,r;for(r in t)if(te(t,r)){if(void 0===(n=e[r]))return!1;if(t[r]!==n)return!1;delete e[r]}for(r in e)if(te(e,r))return!1;return!0};return!!i(r(e),r(n))&&(!!i(t.parseStyle(t.getAttrib(e,"style")),t.parseStyle(t.getAttrib(n,"style")))&&(!Gp(e)&&!Gp(n)))}}},hb=_n.makeMap,pb=function(t){var e=[];t=t||{};var n=t.indent,r=hb(t.indent_before||""),i=hb(t.indent_after||""),o=Ss.getEncodeFunc(t.entity_encoding||"raw",t.entities),a="html"===t.element_format;return{start:function(t,s,u){var l,c,f,d;if(n&&r[t]&&e.length>0&&(d=e[e.length-1],d.length>0&&"\n"!==d&&e.push("\n")),e.push("<",t),s)for(l=0,c=s.length;l<c;l++)f=s[l],e.push(" ",f.name,'="',o(f.value,!0),'"');e[e.length]=!u||a?">":" />",u&&n&&i[t]&&e.length>0&&(d=e[e.length-1],d.length>0&&"\n"!==d&&e.push("\n"))},end:function(t){var r;e.push("</",t,">"),n&&i[t]&&e.length>0&&(r=e[e.length-1],r.length>0&&"\n"!==r&&e.push("\n"))},text:function(t,n){t.length>0&&(e[e.length]=n?t:o(t))},cdata:function(t){e.push("<![CDATA[",t,"]]>")},comment:function(t){e.push("\x3c!--",t,"--\x3e")},pi:function(t,r){r?e.push("<?",t," ",o(r),"?>"):e.push("<?",t,"?>"),n&&e.push("\n")},doctype:function(t){e.push("<!DOCTYPE",t,">",n?"\n":"")},reset:function(){e.length=0},getContent:function(){return e.join("").replace(/\n$/,"")}}},gb=function(t,e){void 0===e&&(e=Ls());var n=pb(t);return t=t||{},t.validate=!("validate"in t)||t.validate,{serialize:function(r){var i=t.validate,o={3:function(t){n.text(t.value,t.raw)},8:function(t){n.comment(t.value)},7:function(t){n.pi(t.name,t.value)},10:function(t){n.doctype(t.value)},4:function(t){n.cdata(t.value)},11:function(t){if(t=t.firstChild)do{a(t)}while(t=t.next)}};n.reset();var a=function(t){var r=o[t.type];if(r)r(t);else{var s=t.name,u=t.shortEnded,l=t.attributes;if(i&&l&&l.length>1){var c=[];c.map={};var f=e.getElementRule(t.name);if(f){for(var d=0,h=f.attributesOrder.length;d<h;d++){var p=f.attributesOrder[d];if(p in l.map){var g=l.map[p];c.map[p]=g,c.push({name:p,value:g})}}for(var d=0,h=l.length;d<h;d++){var p=l[d].name;if(!(p in c.map)){var g=l.map[p];c.map[p]=g,c.push({name:p,value:g})}}l=c}}if(n.start(t.name,l,u),!u){if(t=t.firstChild)do{a(t)}while(t=t.next);n.end(s)}}};return 1!==r.type||t.inner?o[11](r):a(r),n.getContent()}}},mb=new Set;!function(){wt(["margin","margin-left","margin-right","margin-top","margin-bottom","padding","padding-left","padding-right","padding-top","padding-bottom","border","border-width","border-style","border-color","background","background-attachment","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","float","position","left","right","top","bottom","z-index","display","transform","width","max-width","min-width","height","max-height","min-height","overflow","overflow-x","overflow-y","text-overflow","vertical-align","transition","transition-delay","transition-duration","transition-property","transition-timing-function"],function(t){mb.add(t)})}();var vb=["font","text-decoration","text-emphasis"],yb=function(t,e){return zt(t.parseStyle(t.getAttrib(e,"style")))},bb=function(t){return mb.has(t)},_b=function(t,e){return Dt(yb(t,e),function(t){return!bb(t)})},wb=function(t){return St(t,function(t){return bt(vb,function(e){return Oe(t,e)})})},xb=function(t,e,n){var r=yb(t,e),i=yb(t,n),o=function(r){var i=t.getStyle(e,r),o=t.getStyle(n,r);return Ie(i)&&Ie(o)&&i!==o};return bt(r,function(t){var e=function(e){return bt(e,function(e){return e===t})};if(!e(i)&&e(vb)){var n=wb(i);return bt(n,o)}return o(t)})},kb=function(t,e,n){return dt.from(n.container()).filter(Zr).exists(function(r){var i=t?0:-1;return e(r.data.charAt(n.offset()+i))})},Sb=r(kb,!0,Kp),Cb=r(kb,!1,Kp),Eb=function(t){var e=t.container();return Zr(e)&&(0===e.data.length||la(e.data)&&sm.isBookmarkNode(e.parentNode))},Tb=function(t,e){return function(n){return dt.from(jh(t?0:-1,n)).filter(e).isSome()}},Ab=function(t){return ii(t)&&"block"===Ci(En.fromDom(t),"display")},Ob=function(t){return ai(t)&&!Kr(t)},Pb=Tb(!0,Ab),Nb=Tb(!1,Ab),Db=Tb(!0,ui),Mb=Tb(!1,ui),Ib=Tb(!0,Xr),Rb=Tb(!1,Xr),$b=Tb(!0,Ob),Lb=Tb(!1,Ob),jb=function(t){for(var e=[],n=t.dom;n;)e.push(En.fromDom(n)),n=n.lastChild;return e},Fb=function(t){var e=nc(t,"br"),n=St(jb(t).slice(-1),Qo);e.length===n.length&&wt(n,Tr)},Bb=function(t){Er(t),xr(t,En.fromHtml('<br data-mce-bogus="1">'))},Vb=function(t){sr(t).each(function(e){tr(e).each(function(n){Ko(t)&&Qo(e)&&Ko(n)&&Tr(e)})})},zb=function(t){return t.slice(0,-1)},Ub=function(t,e,n){return Ln(e,t)?zb(Qn(t,function(t){return n(t)||In(t,e)})):[]},Hb=function(t,e){return Ub(t,e,at)},qb=function(t,e){return[t].concat(Hb(t,e))},Wb=function(t,e,n){return bp(t,e,n,Eb)},Gb=function(t,e){return At(qb(En.fromDom(e.container()),t),Ko)},Yb=function(t,e,n){return Wb(t,e.dom,n).forall(function(t){return Gb(e,n).fold(function(){return!1===Lh(t,n,e.dom)},function(r){return!1===Lh(t,n,e.dom)&&Ln(r,En.fromDom(t.container()))})})},Kb=function(t,e,n){return Gb(e,n).fold(function(){return Wb(t,e.dom,n).forall(function(t){return!1===Lh(t,n,e.dom)})},function(e){return Wb(t,e.dom,n).isNone()})},Xb=r(Kb,!1),Jb=r(Kb,!0),Qb=r(Yb,!1),Zb=r(Yb,!0),t_=function(t){return Gh(t).exists(Qo)},e_=function(t,e,n){var r=St(qb(En.fromDom(n.container()),e),Ko),i=jt(r).getOr(e);return vp(t,i.dom,n).filter(t_)},n_=function(t,e){return Gh(e).exists(Qo)||e_(!0,t,e).isSome()},r_=function(t,e){return Yh(e).exists(Qo)||e_(!1,t,e).isSome()},i_=r(e_,!1),o_=r(e_,!0),a_=function(t){return sf.isTextPosition(t)&&!t.isAtStart()&&!t.isAtEnd()},s_=function(t,e){var n=St(qb(En.fromDom(e.container()),t),Ko);return jt(n).getOr(t)},u_=function(t,e){return a_(e)?Cb(e):Cb(e)||xp(s_(t,e).dom,e).exists(Cb)},l_=function(t,e){return a_(e)?Sb(e):Sb(e)||wp(s_(t,e).dom,e).exists(Sb)},c_=function(t){return yt(["pre","pre-wrap"],t)},f_=function(t){return Gh(t).bind(function(t){return xo(t,zn)}).exists(function(t){return c_(Ci(t,"white-space"))})},d_=function(t,e){return xp(t.dom,e).isNone()},h_=function(t,e){return wp(t.dom,e).isNone()},p_=function(t,e){return d_(t,e)||h_(t,e)||Xb(t,e)||Jb(t,e)||r_(t,e)||n_(t,e)},g_=function(t,e){return!f_(e)&&(p_(t,e)||u_(t,e)||l_(t,e))},m_=function(t,e){return!f_(e)&&(Xb(t,e)||Qb(t,e)||r_(t,e)||u_(t,e))},v_=function(t){var e=t.container(),n=t.offset();return Zr(e)&&n<e.data.length?sf(e,n+1):t},y_=function(t,e){return!f_(e)&&(Jb(t,e)||Zb(t,e)||n_(t,e)||l_(t,e))},b_=function(t,e){return m_(t,e)||y_(t,v_(e))},__=function(t,e){return Yp(t.charAt(e))},w_=function(t){var e=t.container();return Zr(e)&&Ae(e.data," ")},x_=function(t){var e=t.split("");return _t(e,function(t,n){return Yp(t)&&n>0&&n<e.length-1&&Xp(e[n-1])&&Xp(e[n+1])?" ":t}).join("")},k_=function(t,e){var n=e.data,r=sf(e,0);return!(!__(n,0)||b_(t,r))&&(e.data=" "+n.slice(1),!0)},S_=function(t){var e=t.data,n=x_(e);return n!==e&&(t.data=n,!0)},C_=function(t,e){var n=e.data,r=sf(e,n.length-1);return!(!__(n,n.length-1)||b_(t,r))&&(e.data=n.slice(0,-1)+" ",!0)},E_=function(t,e){return dt.some(e).filter(w_).bind(function(e){var n=e.container();return k_(t,n)||S_(n)||C_(t,n)?dt.some(e):dt.none()})},T_=function(t){var e=En.fromDom(t.getBody());t.selection.isCollapsed()&&E_(e,sf.fromRangeStart(t.selection.getRng())).each(function(e){t.selection.setRng(e.toRange())})},A_=function(t,e,n){return Et(t,function(r,i){return Kp(i)||Yp(i)?r.previousCharIsSpace||""===r.str&&e||r.str.length===t.length-1&&n?{previousCharIsSpace:!1,str:r.str+" "}:{previousCharIsSpace:!0,str:r.str+" "}:{previousCharIsSpace:!1,str:r.str+i}},{previousCharIsSpace:!1,str:""}).str},O_=function(t,e,n){if(0!==n){var r=En.fromDom(t),i=wo(r,Ko).getOr(r),o=t.data.slice(e,e+n),a=e+n>=t.data.length&&y_(i,sf(t,t.data.length)),s=0===e&&m_(i,sf(t,0));t.replaceData(e,n,A_(o,s,a))}},P_=function(t,e){var n=t.data.slice(e),r=n.length-De(n).length;O_(t,e,r)},N_=function(t,e){var n=t.data.slice(0,e),r=n.length-Me(n).length;O_(t,e-r,r)},D_=function(t,e,n,r){void 0===r&&(r=!0);var i=Me(t.data).length,o=r?t:e,a=r?e:t;return r?o.appendData(a.data):o.insertData(0,a.data),Tr(En.fromDom(a)),n&&P_(o,i),o},M_=function(t,e){var n=t.container(),r=t.offset();return!1===sf.isTextPosition(t)&&n===e.parentNode&&r>sf.before(e).offset()},I_=function(t,e){return M_(e,t)?sf(e.container(),e.offset()-1):e},R_=function(t){return Zr(t)?sf(t,0):sf.before(t)},$_=function(t){return Zr(t)?sf(t,t.data.length):sf.after(t)},L_=function(t){return Ra(t.previousSibling)?dt.some($_(t.previousSibling)):t.previousSibling?Sp(t.previousSibling):dt.none()},j_=function(t){return Ra(t.nextSibling)?dt.some(R_(t.nextSibling)):t.nextSibling?kp(t.nextSibling):dt.none()},F_=function(t,e){var n=sf.before(e.previousSibling?e.previousSibling:e.parentNode);return xp(t,n).fold(function(){return wp(t,sf.after(e))},dt.some)},B_=function(t,e){return wp(t,sf.after(e)).fold(function(){return xp(t,sf.before(e))},dt.some)},V_=function(t,e){return L_(e).orThunk(function(){return j_(e)}).orThunk(function(){return F_(t,e)})},z_=function(t,e){return j_(e).orThunk(function(){return L_(e)}).orThunk(function(){return B_(t,e)})},U_=function(t,e,n){return t?z_(e,n):V_(e,n)},H_=function(t,e,n){return U_(t,e,n).map(r(I_,n))},q_=function(t,e,n){n.fold(function(){t.focus()},function(n){t.selection.setRng(n.toRange(),e)})},W_=function(t){return function(e){return e.dom===t}},G_=function(t,e){return e&&te(t.schema.getBlockElements(),jn(e))},Y_=function(t){if(Qa(t)){var e=En.fromHtml('<br data-mce-bogus="1">');return Er(t),xr(t,e),dt.some(sf.before(e.dom))}return dt.none()},K_=function(t,e,n){var r=tr(t).filter(Un),i=er(t).filter(Un);return Tr(t),di(r,i,e,function(t,e,r){var i=t.dom,o=e.dom,a=i.data.length;return D_(i,o,n),r.container()===o?sf(i,a):r}).orThunk(function(){return n&&(r.each(function(t){return N_(t.dom,t.dom.length)}),i.each(function(t){return P_(t.dom,0)})),e})},X_=function(t,e){return te(t.schema.getTextInlineElements(),jn(e))},J_=function(t,e,n,i){void 0===i&&(i=!0);var o=H_(e,t.getBody(),n.dom),a=wo(n,r(G_,t),W_(t.getBody())),s=K_(n,o,X_(t,n));t.dom.isEmpty(t.getBody())?(t.setContent(""),t.selection.setCursorLocation()):a.bind(Y_).fold(function(){i&&q_(t,e,s)},function(n){i&&q_(t,e,dt.some(n))})},Q_=function(t){return function(e){return In(t,e)}},Z_=function(t){return nc(t,"td,th")},tw=function(t,e){var n=function(t){return zg(En.fromDom(t),e)},r=n(t.startContainer),i=n(t.endContainer),o=r.isSome(),a=i.isSome(),s=fi(r,i,In).getOr(!1);return{startTable:r,endTable:i,isStartInTable:o,isEndInTable:a,isSameTable:s,isMultiTable:!s&&o&&a}},ew=function(t,e){return{start:t,end:e}},nw=function(t,e,n){return{rng:t,table:e,cells:n}},rw=Zi.generate([{singleCellTable:["rng","cell"]},{fullTable:["table"]},{partialTable:["cells","outsideDetails"]},{multiTable:["startTableCells","endTableCells","betweenRng"]}]),iw=function(t,e){return To(En.fromDom(t),"td,th",e)},ow=function(t){return!In(t.start,t.end)},aw=function(t,e){return zg(t.start,e).bind(function(n){return zg(t.end,e).bind(function(t){return hi(In(n,t),n)})})},sw=function(t,e){return!ow(t)&&aw(t,e).exists(function(t){var e=t.dom.rows;return 1===e.length&&1===e[0].cells.length})},uw=function(t,e){var n=iw(t.startContainer,e),r=iw(t.endContainer,e);return fi(n,r,ew)},lw=function(t){return function(e){return zg(e,t).bind(function(t){return Ft(Z_(t)).map(function(t){return ew(e,t)})})}},cw=function(t){return function(e){return zg(e,t).bind(function(t){return jt(Z_(t)).map(function(t){return ew(t,e)})})}},fw=function(t){return function(e){return aw(e,t).map(function(t){return nw(e,t,Z_(t))})}},dw=function(t,e,n,r){if(n.collapsed||!t.forall(ow))return dt.none();if(e.isSameTable){var i=t.bind(fw(r));return dt.some({start:i,end:i})}var o=iw(n.startContainer,r),a=iw(n.endContainer,r),s=o.bind(lw(r)).bind(fw(r)),u=a.bind(cw(r)).bind(fw(r));return dt.some({start:s,end:u})},hw=function(t,e){return Ot(t,function(t){return In(t,e)})},pw=function(t){return fi(hw(t.cells,t.rng.start),hw(t.cells,t.rng.end),function(e,n){return t.cells.slice(e,n+1)})},gw=function(t,e,n){return t.exists(function(t){return sw(t,n)&&Gg(t.start,e)})},mw=function(t,e){var n=e.startTable,r=e.endTable,i=t.cloneRange();return n.each(function(t){return i.setStartAfter(t.dom)}),r.each(function(t){return i.setEndBefore(t.dom)}),i},vw=function(t,e,n,r){return dw(t,e,n,r).bind(function(t){var e=t.start,n=t.end;return e.or(n)}).bind(function(t){var r=e.isSameTable,i=pw(t).getOr([]);if(r&&t.cells.length===i.length)return dt.some(rw.fullTable(t.table));if(i.length>0){if(r)return dt.some(rw.partialTable(i,dt.none()));var o=mw(n,e);return dt.some(rw.partialTable(i,dt.some(de(de({},e),{rng:o}))))}return dt.none()})},yw=function(t,e,n,r){return dw(t,e,n,r).bind(function(t){var r=t.start,i=t.end,o=r.bind(pw).getOr([]),a=i.bind(pw).getOr([]);if(o.length>0&&a.length>0){var s=mw(n,e);return dt.some(rw.multiTable(o,a,s))}return dt.none()})},bw=function(t,e){var n=Q_(t),r=uw(e,n),i=tw(e,n);return gw(r,e,n)?r.map(function(t){return rw.singleCellTable(e,t.start)}):i.isMultiTable?yw(r,i,e,n):vw(r,i,e,n)},_w=function(t){return(Vn(t)?tr(t):sr(t)).bind(_w).orThunk(function(){return dt.some(t)})},ww=function(t){return wt(t,function(t){wi(t,"contenteditable"),Bb(t)})},xw=function(t,e){return dt.from(t.dom.getParent(e,t.dom.isBlock)).map(En.fromDom)},kw=function(t,e,n){n.each(function(n){e?Tr(n):(Bb(n),t.selection.setCursorLocation(n.dom,0))})},Sw=function(t,e,n,r){var i=n.cloneRange();r?(i.setStart(n.startContainer,n.startOffset),i.setEndAfter(e.dom.lastChild)):(i.setStartBefore(e.dom.firstChild),i.setEnd(n.endContainer,n.endOffset)),Aw(t,i,e,!1)},Cw=function(t){var e=Vg(t),n=En.fromDom(t.selection.getNode());si(n.dom)&&Qa(n)?t.selection.setCursorLocation(n.dom,0):t.selection.collapse(!0),e.length>1&&bt(e,function(t){return In(t,n)})&&mi(n,"data-mce-selected","1")},Ew=function(t,e,n){var r=t.selection.getRng(),i=n.bind(function(n){var i=n.rng,o=n.isStartInTable,a=xw(t,o?i.endContainer:i.startContainer);i.deleteContents(),kw(t,o,a.filter(Qa));var s=o?e[0]:e[e.length-1];return Sw(t,s,r,o),Qa(s)?dt.none():dt.some(o?e.slice(1):e.slice(0,-1))}).getOr(e);return ww(i),Cw(t),!0},Tw=function(t,e,n,r){var i=t.selection.getRng(),o=e[0],a=n[n.length-1];Sw(t,o,i,!0),Sw(t,a,i,!1);var s=Qa(o)?e:e.slice(1),u=Qa(a)?n:n.slice(0,-1);return ww(s.concat(u)),r.deleteContents(),Cw(t),!0},Aw=function(t,e,n,r){void 0===r&&(r=!0),e.deleteContents();var i=_w(n).getOr(n),o=En.fromDom(t.dom.getParent(i.dom,t.dom.isBlock));if(Qa(o)&&(Bb(o),r&&t.selection.setCursorLocation(o.dom,0)),!In(n,o)){var a=li(Jn(o),n)?[]:Zn(o);wt(a.concat(ir(n)),function(t){In(t,o)||Ln(t,o)||!Qa(t)||Tr(t)})}return!0},Ow=function(t,e){return J_(t,!1,e),!0},Pw=function(t,e,n){return bw(e,n).map(function(e){return e.fold(r(Aw,t),r(Ow,t),r(Ew,t),r(Tw,t))})},Nw=function(t,e){return Lw(t,e)},Dw=function(t,e,n,r){return Rw(e,r).fold(function(){return Pw(t,e,n)},function(e){return Nw(t,e)}).getOr(!1)},Mw=function(t,e,n){var r=En.fromDom(t.getBody()),i=t.selection.getRng();return 0!==n.length?Ew(t,n,dt.none()):Dw(t,r,i,e)},Iw=function(t,e){return At(qb(e,t),ra)},Rw=function(t,e){return At(qb(e,t),Wn("caption"))},$w=function(t,e,n,r,i){return yp(n,t.getBody(),i).bind(function(t){return Iw(e,En.fromDom(t.getNode())).map(function(t){return!1===In(t,r)})})},Lw=function(t,e){return Bb(e),t.selection.setCursorLocation(e.dom,0),dt.some(!0)},jw=function(t,e,n,r){return kp(t.dom).bind(function(i){return Sp(t.dom).map(function(t){return e?n.isEqual(i)&&r.isEqual(t):n.isEqual(t)&&r.isEqual(i)})}).getOr(!0)},Fw=function(t,e){return Lw(t,e)},Bw=function(t,e,n){return Rw(t,En.fromDom(n.getNode())).map(function(t){return!1===In(t,e)})},Vw=function(t,e,n,r,i){return yp(n,t.getBody(),i).bind(function(o){return jw(r,n,i,o)?Fw(t,r):Bw(e,r,o)}).or(dt.some(!0))},zw=function(t,e,n,r){var i=sf.fromRangeStart(t.selection.getRng());return Iw(n,r).bind(function(r){return Qa(r)?Lw(t,r):$w(t,n,e,r,i)}).getOr(!1)},Uw=function(t,e,n,r){var i=sf.fromRangeStart(t.selection.getRng());return Qa(r)?Lw(t,r):Vw(t,n,e,r,i)},Hw=function(t,e){return t?Ib(e):Rb(e)},qw=function(t,e){var n=sf.fromRangeStart(t.selection.getRng());return Hw(e,n)||vp(e,t.getBody(),n).exists(function(t){return Hw(e,t)})},Ww=function(t,e,n){var r=En.fromDom(t.getBody());return Rw(r,n).fold(function(){return zw(t,e,r,n)||qw(t,e)},function(n){return Uw(t,e,r,n).getOr(!1)})},Gw=function(t,e){var n=En.fromDom(t.selection.getStart(!0)),r=Vg(t);return t.selection.isCollapsed()&&0===r.length?Ww(t,e,n):Mw(t,n,r)},Yw=function(t,e,n,r){var i=document.createRange();return i.setStart(t,e),i.setEnd(n,r),i},Kw=function(t){var e=sf.fromRangeStart(t),n=sf.fromRangeEnd(t),r=t.commonAncestorContainer;return vp(!1,r,n).map(function(i){return!Lh(e,n,r)&&Lh(e,i,r)?Yw(e.container(),e.offset(),i.container(),i.offset()):t}).getOr(t)},Xw=function(t){return t.collapsed?t:Kw(t)},Jw=function(t){return t.firstChild&&t.firstChild===t.lastChild},Qw=function(t){return"br"===t.name||" "===t.value},Zw=function(t,e){return t.getBlockElements()[e.name]&&Jw(e)&&Qw(e.firstChild)},tx=function(t,e){var n=t.getNonEmptyElements();return e&&(e.isEmpty(n)||Zw(t,e))},ex=function(t,e){var n=e.firstChild,r=e.lastChild;return n&&"meta"===n.name&&(n=n.next),r&&"mce_marker"===r.attr("id")&&(r=r.prev),tx(t,r)&&(r=r.prev),!(!n||n!==r)&&("ul"===n.name||"ol"===n.name)},nx=function(t){var e=t.firstChild,n=t.lastChild;return e&&"META"===e.nodeName&&e.parentNode.removeChild(e),n&&"mce_marker"===n.id&&n.parentNode.removeChild(n),t},rx=function(t,e,n){var r=e.serialize(n),i=t.createFragment(r);return nx(i)},ix=function(t){return St(t.childNodes,function(t){return"LI"===t.nodeName})},ox=function(t){return" "===t.data||ri(t)},ax=function(t){return t&&t.firstChild&&t.firstChild===t.lastChild&&ox(t.firstChild)},sx=function(t){return!t.firstChild||ax(t)},ux=function(t){return t.length>0&&sx(t[t.length-1])?t.slice(0,-1):t},lx=function(t,e){var n=t.getParent(e,t.isBlock);return n&&"LI"===n.nodeName?n:null},cx=function(t,e){return!!lx(t,e)},fx=function(t,e){var n=e.cloneRange(),r=e.cloneRange();return n.setStartBefore(t),r.setEndAfter(t),[n.cloneContents(),r.cloneContents()]},dx=function(t,e){var n=sf.before(t),r=lp(e),i=r.next(n);return i?i.toRange():null},hx=function(t,e){var n=sf.after(t),r=lp(e),i=r.prev(n);return i?i.toRange():null},px=function(t,e,n,r){var i=fx(t,r),o=t.parentNode;return o.insertBefore(i[0],t),_n.each(e,function(e){o.insertBefore(e,t)}),o.insertBefore(i[1],t),o.removeChild(t),hx(e[e.length-1],n)},gx=function(t,e,n){var r=t.parentNode;return _n.each(e,function(e){r.insertBefore(e,t)}),dx(t,n)},mx=function(t,e,n,r){return r.insertAfter(e.reverse(),t),hx(e[0],n)},vx=function(t,e,n,r){var i=rx(e,t,r),o=lx(e,n.startContainer),a=ux(ix(i.firstChild)),s=e.getRoot(),u=function(t){var r=sf.fromRangeStart(n),i=lp(e.getRoot()),a=1===t?i.prev(r):i.next(r);return!a||lx(e,a.getNode())!==o};return u(1)?gx(o,a,s):u(2)?mx(o,a,s,e):px(o,a,s,n)},yx=function(t,e,n){var r=En.fromDom(t.getRoot());return n=m_(r,sf.fromRangeStart(e))?n.replace(/^ /,"&nbsp;"):n.replace(/^&nbsp;/," "),n=y_(r,sf.fromRangeEnd(e))?n.replace(/(&nbsp;| )(<br( \/)>)?$/,"&nbsp;"):n.replace(/&nbsp;(<br( \/)?>)?$/," ")},bx=si,_x=function(t,e,n){if(null!==n){return n===t.getParent(e.endContainer,bx)&&Gg(En.fromDom(n),e)}return!1},wx=function(t,e,n){if("all"===n.getAttribute("data-mce-bogus"))n.parentNode.insertBefore(t.dom.createFragment(e),n);else{var r=n.firstChild,i=n.lastChild;!r||r===i&&"BR"===r.nodeName?t.dom.setHTML(n,e):t.selection.setContent(e)}},xx=function(t,e){dt.from(t.getParent(e,"td,th")).map(En.fromDom).each(Vb)},kx=function(t,e){var n=t.schema.getTextInlineElements(),r=t.dom;if(e){var i=t.getBody(),o=db(r);_n.each(r.select("*[data-mce-fragment]"),function(t){if(G(n[t.nodeName.toLowerCase()])&&_b(r,t))for(var e=t.parentNode;G(e)&&e!==i;e=e.parentNode){var a=xb(r,t,e);if(a)break;if(o.compare(e,t)){r.remove(t,!0);break}}})}},Sx=function(t){for(var e=t;e=e.walk();)1===e.type&&e.attr("data-mce-fragment","1")},Cx=function(t){_n.each(t.getElementsByTagName("*"),function(t){t.removeAttribute("data-mce-fragment")})},Ex=function(t){return!!t.getAttribute("data-mce-fragment")},Tx=function(t,e){return e&&!t.schema.getShortEndedElements()[e.nodeName]},Ax=function(t,e){var n,r=t.dom,i=t.selection;if(e){i.scrollIntoView(e);var o=um(t.getBody(),e);if("false"===r.getContentEditable(o))return r.remove(e),void i.select(o);var a=r.createRng(),s=e.previousSibling;if(Zr(s)){if(a.setStart(s,s.nodeValue.length),!sn.ie){var u=e.nextSibling;Zr(u)&&(s.appendData(u.data),u.parentNode.removeChild(u))}}else a.setStartBefore(e),a.setEndBefore(e);var l=r.getParent(e,r.isBlock);r.remove(e),l&&r.isEmpty(l)&&(t.$(l).empty(),a.setStart(l,0),a.setEnd(l,0),bx(l)||Ex(l)||!(n=function(e){var n=sf.fromRangeStart(e);if(n=lp(t.getBody()).next(n))return n.toRange()}(a))?r.add(l,r.create("br",{"data-mce-bogus":"1"})):(a=n,r.remove(l))),i.setRng(a)}},Ox=function(t){var e=t.dom,n=Xw(t.selection.getRng());t.selection.setRng(n);var r=e.getParent(n.startContainer,bx);_x(e,n,r)?Aw(t,n,En.fromDom(r)):t.getDoc().execCommand("Delete",!1,null)},Px=function(t,e,n){var r,i,o,a=t.selection,s=t.dom;/^ | $/.test(e)&&(e=yx(s,a.getRng(),e));var u=t.parser,l=n.merge,c=gb({validate:Dd(t)},t.schema),f='<span id="mce_marker" data-mce-type="bookmark">&#xFEFF;</span>',d=t.fire("BeforeSetContent",{content:e,format:"html",selection:!0,paste:n.paste});if(d.isDefaultPrevented())return void t.fire("SetContent",{content:d.content,format:"html",selection:!0,paste:n.paste});e=d.content,-1===e.indexOf("{$caret}")&&(e+="{$caret}"),e=e.replace(/\{\$caret\}/,f),i=a.getRng();var h=i.startContainer||(i.parentElement?i.parentElement():null),p=t.getBody();h===p&&a.isCollapsed()&&s.isBlock(p.firstChild)&&Tx(t,p.firstChild)&&s.isEmpty(p.firstChild)&&(i=s.createRng(),i.setStart(p.firstChild,0),i.setEnd(p.firstChild,0),a.setRng(i)),a.isCollapsed()||Ox(t),r=a.getNode();var g={context:r.nodeName.toLowerCase(),data:n.data,insert:!0},m=u.parse(e,g);if(!0===n.paste&&ex(t.schema,m)&&cx(s,r))return i=vx(c,s,a.getRng(),m),a.setRng(i),void t.fire("SetContent",d);if(Sx(m),o=m.lastChild,"mce_marker"===o.attr("id")){var v=o;for(o=o.prev;o;o=o.walk(!0))if(3===o.type||!s.isBlock(o.name)){t.schema.isValidChild(o.parent.name,"span")&&o.parent.insert(v,o,"br"===o.name);break}}if(t._selectionOverrides.showBlockCaretContainer(r),g.invalid){t.selection.setContent(f),r=a.getNode();var y=t.getBody();for(9===r.nodeType?r=o=y:o=r;o!==y;)r=o,o=o.parentNode;e=r===y?y.innerHTML:s.getOuterHTML(r),e=c.serialize(u.parse(e.replace(/<span (id="mce_marker"|id=mce_marker).+?<\/span>/i,function(){return c.serialize(m)}))),r===y?s.setHTML(y,e):s.setOuterHTML(r,e)}else e=c.serialize(m),wx(t,e,r);kx(t,l),Ax(t,s.get("mce_marker")),Cx(t.getBody()),xx(s,a.getStart()),t.fire("SetContent",d),t.addVisual()},Nx=function(t,e){e(t),t.firstChild&&Nx(t.firstChild,e),t.next&&Nx(t.next,e)},Dx=function(t,e,n){var r={},i={},o=[];n.firstChild&&Nx(n.firstChild,function(n){wt(t,function(t){t.name===n.name&&(r[t.name]?r[t.name].nodes.push(n):r[t.name]={filter:t,nodes:[n]})}),wt(e,function(t){"string"==typeof n.attr(t.name)&&(i[t.name]?i[t.name].nodes.push(n):i[t.name]={filter:t,nodes:[n]})})});for(var a in r)te(r,a)&&o.push(r[a]);for(var s in i)te(i,s)&&o.push(i[s]);return o},Mx=function(t,e,n){var r=Dx(t,e,n);wt(r,function(t){wt(t.filter.callbacks,function(e){e(t.nodes,t.filter.name,{})})})},Ix=function(t){return t instanceof Jy},Rx=function(t){Iy(t)&&kp(t.getBody()).each(function(e){var n=e.getNode(),r=Xr(n)?kp(n).getOr(e):e;t.selection.setRng(r.toRange())})},$x=function(t,e,n){t.dom.setHTML(t.getBody(),e),!0!==n&&Rx(t)},Lx=function(t,e,n,r){if(0===n.length||/^\s+$/.test(n)){var i='<br data-mce-bogus="1">';"TABLE"===e.nodeName?n="<tr><td>"+i+"</td></tr>":/^(UL|OL)$/.test(e.nodeName)&&(n="<li>"+i+"</li>");var o=Qf(t);o&&t.schema.isValidChild(e.nodeName.toLowerCase(),o.toLowerCase())?(n=i,n=t.dom.createHTML(o,Zf(t),n)):n||(n='<br data-mce-bogus="1">'),$x(t,n,r.no_selection),t.fire("SetContent",r)}else"raw"!==r.format&&(n=gb({validate:t.validate},t.schema).serialize(t.parser.parse(n,{isRootContent:!0,insert:!0}))),r.content=ia(En.fromDom(e))?n:_n.trim(n),$x(t,r.content,r.no_selection),r.no_events||t.fire("SetContent",r);return r.content},jx=function(t,e,n,r){Mx(t.parser.getNodeFilters(),t.parser.getAttributeFilters(),n);var i=gb({validate:t.validate},t.schema).serialize(n);return r.content=ia(En.fromDom(e))?i:_n.trim(i),$x(t,r.content,r.no_selection),r.no_events||t.fire("SetContent",r),n},Fx=function(t,e){return de(de({format:"html"},t),{set:!0,content:Ix(e)?"":e})},Bx=function(t,e,n){var r=Fx(n,e),i=n.no_events?r:t.fire("BeforeSetContent",r);return Ix(e)||(e=i.content),dt.from(t.getBody()).fold(Z(e),function(n){return Ix(e)?jx(t,n,e,i):Lx(t,n,e,i)})},Vx=function(t,e){return ko(t,e).isSome()},zx=function(t){return Y(t)?t:at},Ux=function(t,e,n){for(var r=t.dom,i=zx(n);r.parentNode;){r=r.parentNode;var o=En.fromDom(r),a=e(o);if(a.isSome())return a;if(i(o))break}return dt.none()},Hx=function(t,e,n){var r=e(t),i=zx(n);return r.orThunk(function(){return i(t)?dt.none():Ux(t,e,i)})},qx=ag,Wx=function(t,e,n){var r=t.formatter.get(n);if(r)for(var i=0;i<r.length;i++){var o=r[i];if(pg(o)&&!1===o.inherit&&t.dom.is(e,o.selector))return!0}return!1},Gx=function(t,e,n,r,i){var o=t.dom.getRoot();return e!==o&&(e=t.dom.getParent(e,function(e){return!!Wx(t,e,n)||(e.parentNode===o||!!Xx(t,e,n,r,!0))}),!!Xx(t,e,n,r,i))},Yx=function(t,e,n){return!!qx(e,n.inline)||(!!qx(e,n.block)||(n.selector?1===e.nodeType&&t.is(e,n.selector):void 0))},Kx=function(t,e,n,r,i,o){var a=n[r];if(Y(n.onmatch))return n.onmatch(e,n,r);if(a)if(q(a.length)){for(var s in a)if(te(a,s)){var u="attributes"===r?t.getAttrib(e,s):ug(t,e,s),l=og(a[s],o),c=W(u)||Re(u);if(c&&W(l))continue;if(i&&c&&!n.exact)return!1;if((!i||n.exact)&&!qx(u,sg(t,l,s)))return!1}}else for(var f=0;f<a.length;f++)if("attributes"===r?t.getAttrib(e,a[f]):ug(t,e,a[f]))return!0;return!0},Xx=function(t,e,n,r,i){var o=t.formatter.get(n),a=t.dom;if(o&&e)for(var s=0;s<o.length;s++){var u=o[s];if(Yx(t.dom,e,u)&&Kx(a,e,u,"attributes",i,r)&&Kx(a,e,u,"styles",i,r)){var l=u.classes;if(l)for(var c=0;c<l.length;c++)if(!t.dom.hasClass(e,og(l[c],r)))return;return u}}},Jx=function(t,e,n,r,i){if(r)return Gx(t,r,e,n,i);if(r=t.selection.getNode(),Gx(t,r,e,n,i))return!0;var o=t.selection.getStart();return!(o===r||!Gx(t,o,e,n,i))},Qx=function(t,e,n){var r=[],i={},o=t.selection.getStart();return t.dom.getParent(o,function(o){for(var a=0;a<e.length;a++){var s=e[a];!i[s]&&Xx(t,o,s,n)&&(i[s]=!0,r.push(s))}},t.dom.getRoot()),r},Zx=function(t,e){var n=function(e){return In(e,En.fromDom(t.getBody()))},r=function(e,n){return Xx(t,e.dom,n)?dt.some(n):dt.none()};return dt.from(t.selection.getStart(!0)).bind(function(t){return Hx(En.fromDom(t),function(t){return Vt(e,function(e){return r(t,e)})},n)}).getOrNull()},tk=function(t,e){var n=t.formatter.get(e),r=t.dom;if(n)for(var i=t.selection.getStart(),o=cg(r,i),a=n.length-1;a>=0;a--){var s=n[a];if(!pg(s)||G(s.defaultBlock))return!0;for(var u=o.length-1;u>=0;u--)if(r.is(o[u],s.selector))return!0}return!1},ek=function(t,e,n){return Et(n,function(n,r){var i=fg(t,r);return t.formatter.matchNode(e,r,{},i)?n.concat([r]):n},[])},nk=ua,rk=function(t,e){return t.importNode(e,!0)},ik=function(t){for(var e=[];t;){if(3===t.nodeType&&t.nodeValue!==nk||t.childNodes.length>1)return[];1===t.nodeType&&e.push(t),t=t.firstChild}return e},ok=function(t){return ik(t).length>0},ak=function(t){if(t){var e=new jo(t,t);for(t=e.current();t;t=e.next())if(Zr(t))return t}return null},sk=function(t){var e=En.fromTag("span");return vi(e,{id:"_mce_caret","data-mce-bogus":"1","data-mce-type":"format-caret"}),t&&xr(e,En.fromText(nk)),e},uk=function(t){var e=ak(t);return e&&e.nodeValue.charAt(0)===nk&&e.deleteData(0,1),e},lk=function(t,e,n){void 0===n&&(n=!0);var r=t.dom,i=t.selection;if(ok(e))J_(t,!1,En.fromDom(e),n);else{var o=i.getRng(),a=r.getParent(e,r.isBlock),s=o.startContainer,u=o.startOffset,l=o.endContainer,c=o.endOffset,f=uk(e);r.remove(e,!0),s===f&&u>0&&o.setStart(f,u-1),l===f&&c>0&&o.setEnd(f,c-1),a&&r.isEmpty(a)&&Bb(En.fromDom(a)),i.setRng(o)}},ck=function(t,e,n){void 0===n&&(n=!0);var r=t.dom,i=t.selection;if(e)lk(t,e,n);else if(!(e=Ep(t.getBody(),i.getStart())))for(;e=r.get("_mce_caret");)lk(t,e,!1)},fk=function(t,e,n){var i=t.dom,o=i.getParent(n,r(eg,t));o&&i.isEmpty(o)?n.parentNode.replaceChild(e,n):(Fb(En.fromDom(n)),i.isEmpty(n)?n.parentNode.replaceChild(e,n):i.insertAfter(e,n))},dk=function(t,e){return t.appendChild(e),e},hk=function(t,e){var n=Ct(t,function(t,e){return dk(t,e.cloneNode(!1))},e);return dk(n,n.ownerDocument.createTextNode(nk))},pk=function(t,e,n,r,i,o){var a=t.formatter,s=t.dom,u=St(zt(a.get()),function(t){return t!==r&&!Ae(t,"removeformat")}),l=ek(t,n,u);if(St(l,function(e){return!dg(t,e,r)}).length>0){var c=n.cloneNode(!1);return s.add(e,c),a.remove(r,i,c,o),s.remove(c),dt.some(c)}return dt.none()},gk=function(t,e,n){var r,i,o=t.selection,a=o.getRng(),s=a.startOffset,u=a.startContainer,l=u.nodeValue;(r=Ep(t.getBody(),o.getStart()))&&(i=ak(r));var c=/[^\s\u00a0\u00ad\u200b\ufeff]/;if(l&&s>0&&s<l.length&&c.test(l.charAt(s))&&c.test(l.charAt(s-1))){var f=o.getBookmark();a.collapse(!0);var d=Mg(t,a,t.formatter.get(e));d=Wm(d),t.formatter.apply(e,n,d),o.moveToBookmark(f)}else r&&i.nodeValue===nk?t.formatter.apply(e,n,r):(r=rk(t.getDoc(),sk(!0).dom),i=r.firstChild,a.insertNode(r),s=1,t.formatter.apply(e,n,r)),o.setCursorLocation(i,s)},mk=function(t,e,n,r){var i,o,a,s=t.dom,u=t.selection,l=[],c=u.getRng(),f=c.startContainer,d=c.startOffset;for(o=f,3===f.nodeType&&(d!==f.nodeValue.length&&(i=!0),o=o.parentNode);o;){if(Xx(t,o,e,n,r)){a=o;break}o.nextSibling&&(i=!0),l.push(o),o=o.parentNode}if(a)if(i){var h=u.getBookmark();c.collapse(!0);var p=Mg(t,c,t.formatter.get(e),!0);p=Wm(p),t.formatter.remove(e,n,p,r),u.moveToBookmark(h)}else{var g=Ep(t.getBody(),a),m=sk(!1).dom;fk(t,m,null!==g?g:a);var v=pk(t,m,a,e,n,r),y=hk(l.concat(v.toArray()),m);lk(t,g,!1),u.setCursorLocation(y,1),s.isEmpty(a)&&s.remove(a)}},vk=function(t,e){var n=t.selection,r=t.getBody();ck(t,null,!1),8!==e&&46!==e||!n.isCollapsed()||n.getStart().innerHTML!==nk||ck(t,Ep(r,n.getStart())),37!==e&&39!==e||ck(t,Ep(r,n.getStart()))},yk=function(t){t.on("mouseup keydown",function(e){vk(t,e.keyCode)})},bk=function(t,e){var n=sk(!1),r=hk(e,n.dom);return br(En.fromDom(t),n),Tr(En.fromDom(t)),sf(r,0)},_k=function(t,e){var n=t.schema.getTextInlineElements();return te(n,jn(e))&&!Cp(e.dom)&&!Yr(e.dom)},wk=function(t){return Cp(t.dom)&&ok(t.dom)},xk={},kk=se,Sk=oe,Ck=function(t,e){Sk(xk[t],function(t){t(e)})};!function(t,e){xk[t]||(xk[t]=[]),xk[t].push(e)}("pre",function(t){var e,n=t.selection.getRng(),r=function(t){return o(t.previousSibling)&&-1!==ue(e,t.previousSibling)},i=function(t,e){dl(e).remove(),dl(t).append("<br><br>").append(e.childNodes)},o=qr(["pre"]);n.collapsed||(e=t.selection.getSelectedBlocks(),Sk(kk(kk(e,o),r),function(t){i(t.previousSibling,t)}))});var Ek=_n.each,Tk=function(t){return Hr(t)&&!Gp(t)&&!Cp(t)&&!Yr(t)},Ak=function(t,e){for(var n=t;n;n=n[e]){if(Zr(n)&&Ie(n.data))return t;if(Hr(n)&&!Gp(n))return n}return t},Ok=function(t,e,n){var r=db(t);if(e&&n&&(e=Ak(e,"previousSibling"),n=Ak(n,"nextSibling"),r.compare(e,n))){for(var i=e.nextSibling;i&&i!==n;){var o=i;i=i.nextSibling,e.appendChild(o)}return t.remove(n),_n.each(_n.grep(n.childNodes),function(t){e.appendChild(t)}),e}return n},Pk=function(t,e,n,r){if(r&&!1!==e.merge_siblings){var i=Ok(t,tg(r),r);Ok(t,i,tg(i,!0))}},Nk=function(t,e,n){if(e.clear_child_styles){var r=e.links?"*:not(a)":"*";Ek(t.select(r,n),function(n){Tk(n)&&Ek(e.styles,function(e,r){t.setStyle(n,r,"")})})}},Dk=function(t,e,n){Ek(t.childNodes,function(t){Tk(t)&&(e(t)&&n(t),t.hasChildNodes()&&Dk(t,e,n))})},Mk=function(t,e){"SPAN"===e.nodeName&&0===t.getAttribs(e).length&&t.remove(e,!0)},Ik=function(t,e){return function(n){return!(!n||!ug(t,n,e))}},Rk=function(t,e,n){return function(r){t.setStyle(r,e,n),""===r.getAttribute("style")&&r.removeAttribute("style"),Mk(t,r)}},$k=Zi.generate([{keep:[]},{rename:["name"]},{removed:[]}]),Lk=/^(src|href|style)$/,jk=_n.each,Fk=ag,Bk=function(t){return/^(TR|TH|TD)$/.test(t.nodeName)},Vk=function(t,e,n){return t.isChildOf(e,n)&&e!==n&&!t.isBlock(n)},zk=function(t,e,n){var r=e[n?"startContainer":"endContainer"],i=e[n?"startOffset":"endOffset"];if(Hr(r)){var o=r.childNodes.length-1;!n&&i&&i--,r=r.childNodes[i>o?o:i]}return Zr(r)&&n&&i>=r.nodeValue.length&&(r=new jo(r,t.getBody()).next()||r),Zr(r)&&!n&&0===i&&(r=new jo(r,t.getBody()).prev()||r),r},Uk=function(t,e){var n=e?"firstChild":"lastChild";if(Bk(t)&&t[n]){var r=t[n];return"TR"===t.nodeName?r[n]||r:r}return t},Hk=function(t,e,n,r){var i=t.create(n,r);return e.parentNode.insertBefore(i,e),i.appendChild(e),i},qk=function(t,e,n,r,i){var o=En.fromDom(e),a=En.fromDom(t.create(r,i)),s=n?rr(o):nr(o);return Cr(a,s),n?(br(o,a),wr(a,o)):(_r(o,a),xr(a,o)),a.dom},Wk=function(t,e,n){return!(!gg(n)||!Fk(e,n.inline))||(!(!hg(n)||!Fk(e,n.block))||(pg(n)?Hr(e)&&t.is(e,n.selector):void 0))},Gk=function(t,e){return e.links&&"A"===t.nodeName},Yk=function(t,e,n,r){var i=tg(e,n,r);return W(i)||"BR"===i.nodeName||t.isBlock(i)},Kk=function(t,e,n){var r,i=e.parentNode,o=t.dom,a=Qf(t);hg(n)&&(a?i===o.getRoot()&&(n.list_block&&Fk(e,n.list_block)||wt(Bt(e.childNodes),function(e){ng(t,a,e.nodeName.toLowerCase())?r?r.appendChild(e):(r=Hk(o,e,a),o.setAttribs(r,t.settings.forced_root_block_attrs)):r=null})):o.isBlock(e)&&!o.isBlock(i)&&(Yk(o,e,!1)||Yk(o,e.firstChild,!0,!0)||e.insertBefore(o.create("br"),e.firstChild),Yk(o,e,!0)||Yk(o,e.lastChild,!1,!0)||e.appendChild(o.create("br")))),mg(n)&&!Fk(n.inline,e)||o.remove(e,!0)},Xk=function(t,e,n,r,i){var o,a=t.dom;if(!Wk(a,r,e)&&!Gk(r,e))return $k.keep();var s=r;if(gg(e)&&"all"===e.remove&&z(e.preserve_attributes)){var u=St(a.getAttribs(s),function(t){return yt(e.preserve_attributes,t.name.toLowerCase())});if(a.removeAllAttribs(s),wt(u,function(t){return a.setAttrib(s,t.name,t.value)}),u.length>0)return $k.rename("span")}if("all"!==e.remove){jk(e.styles,function(t,r){t=sg(a,og(t,n),r+""),K(r)&&(r=t,i=null),(e.remove_similar||!i||Fk(ug(a,i,r),t))&&a.setStyle(s,r,""),o=!0}),o&&""===a.getAttrib(s,"style")&&(s.removeAttribute("style"),s.removeAttribute("data-mce-style")),jk(e.attributes,function(t,r){var o;if(t=og(t,n),K(r)&&(r=t,i=null),e.remove_similar||!i||Fk(a.getAttrib(i,r),t)){if("class"===r&&(t=a.getAttrib(s,r))&&(o="",wt(t.split(/\s+/),function(t){/mce\-\w+/.test(t)&&(o+=(o?" ":"")+t)}),o))return void a.setAttrib(s,r,o);if(Lk.test(r)&&s.removeAttribute("data-mce-"+r),"style"===r&&qr(["li"])(s)&&"none"===a.getStyle(s,"list-style-type"))return s.removeAttribute(r),void a.setStyle(s,"list-style-type","none");"class"===r&&s.removeAttribute("className"),s.removeAttribute(r)}}),jk(e.classes,function(t){t=og(t,n),i&&!a.hasClass(i,t)||a.removeClass(s,t)});for(var l=a.getAttribs(s),c=0;c<l.length;c++){var f=l[c].nodeName;if(0!==f.indexOf("_")&&0!==f.indexOf("data-"))return $k.keep()}}return"none"!==e.remove?(Kk(t,s,e),$k.removed()):$k.keep()},Jk=function(t,e,n,r,i){return Xk(t,e,n,r,i).fold(at,function(e){return t.dom.rename(r,e),!0},st)},Qk=function(t,e,n,r,i){var o;return wt(cg(t.dom,e.parentNode).reverse(),function(e){if(!o&&"_start"!==e.id&&"_end"!==e.id){var a=Xx(t,e,n,r,i);a&&!1!==a.split&&(o=e)}}),o},Zk=function(t,e,n,r){return Xk(t,e,n,r,r).fold(Z(r),function(e){return t.dom.createFragment().appendChild(r),t.dom.rename(r,e)},Z(null))},tS=function(t,e,n,r,i,o,a,s){var u,l,c,f=t.dom;if(n){for(var d=n.parentNode,h=r.parentNode;h&&h!==d;h=h.parentNode){u=f.clone(h,!1);for(var p=0;p<e.length&&null!==(u=Zk(t,e[p],s,u));p++);u&&(l&&u.appendChild(l),c||(c=u),l=u)}!o||a.mixed&&f.isBlock(n)||(r=f.split(n,r)),l&&(i.parentNode.insertBefore(l,i),c.appendChild(i),gg(a)&&Pk(f,a,0,l))}return r},eS=function(t,e,n,r,i){var o=t.formatter.get(e),a=o[0],s=!0,u=t.dom,l=t.selection,c=function(r){var s=Qk(t,r,e,n,i);return tS(t,o,s,r,r,!0,a,n)},f=function(t){return Gp(t)&&Hr(t)&&("_start"===t.id||"_end"===t.id)},d=function(e){return bt(o,function(r){return Jk(t,r,n,e,e)})},h=function(e){var n=!0,r=!1;Hr(e)&&u.getContentEditable(e)&&(n=s,s="true"===u.getContentEditable(e),r=!0);var i=Bt(e.childNodes);if(s&&!r){var l=d(e),c=l||bt(o,function(t){return Yx(u,e,t)}),f=e.parentNode;!c&&G(f)&&vg(a)&&d(f)}if(a.deep&&i.length){for(var p=0;p<i.length;p++)h(i[p]);r&&(s=n)}wt(["underline","line-through","overline"],function(n){Hr(e)&&t.dom.getStyle(e,"text-decoration")===n&&e.parentNode&&lg(u,e.parentNode)===n&&Jk(t,{deep:!1,exact:!0,inline:"span",styles:{textDecoration:n}},null,e)})},p=function(t){var e=u.get(t?"_start":"_end"),n=e[t?"firstChild":"lastChild"];return f(n)&&(n=n[t?"firstChild":"lastChild"]),Zr(n)&&0===n.data.length&&(n=t?e.previousSibling||e.nextSibling:e.nextSibling||e.previousSibling),u.remove(e,!0),n},g=function(e){var n,r,i=Mg(t,e,o,e.collapsed);if(a.split){if(i=Wm(i),n=zk(t,i,!0),r=zk(t,i),n!==r){if(n=Uk(n,!0),r=Uk(r,!1),Vk(u,n,r)){var s=dt.from(n.firstChild).getOr(n);return c(qk(u,s,!0,"span",{id:"_start","data-mce-type":"bookmark"})),void p(!0)}if(Vk(u,r,n)){var s=dt.from(r.lastChild).getOr(r);return c(qk(u,s,!1,"span",{id:"_end","data-mce-type":"bookmark"})),void p(!1)}n=Hk(u,n,"span",{id:"_start","data-mce-type":"bookmark"}),r=Hk(u,r,"span",{id:"_end","data-mce-type":"bookmark"});var l=u.createRng();l.setStartAfter(n),l.setEndBefore(r),Ig(u,l,function(t){wt(t,function(t){Gp(t)||Gp(t.parentNode)||c(t)})}),c(n),c(r),n=p(!0),r=p()}else n=r=c(n);i.startContainer=n.parentNode?n.parentNode:n,i.startOffset=u.nodeIndex(n),i.endContainer=r.parentNode?r.parentNode:r,i.endOffset=u.nodeIndex(r)+1}Ig(u,i,function(t){wt(t,h)})};if(r){if(Jp(r)){var m=u.createRng();m.setStartBefore(r),m.setEndAfter(r),g(m)}else g(r);return void km(t,e,r,n)}if("false"===u.getContentEditable(l.getNode())){r=l.getNode();for(var v=0;v<o.length&&(!o[v].ceFalseOverride||!Jk(t,o[v],n,r,r));v++);return void km(t,e,r,n)}l.isCollapsed()&&gg(a)&&!Vg(t).length?mk(t,e,n,i):(Jg(l,!0,function(){Xg(t,g)}),gg(a)&&Jx(t,e,n,l.getStart())&&Zp(u,l,l.getRng()),t.nodeChanged()),km(t,e,r,n)},nS=_n.each,rS=function(t,e,n,r){var i=function(e){if(1===e.nodeType&&e.parentNode&&1===e.parentNode.nodeType){var n=lg(t,e.parentNode);t.getStyle(e,"color")&&n?t.setStyle(e,"text-decoration",n):t.getStyle(e,"text-decoration")===n&&t.setStyle(e,"text-decoration",null)}};e.styles&&(e.styles.color||e.styles.textDecoration)&&(_n.walk(r,i,"childNodes"),i(r))},iS=function(t,e,n,r){e.styles&&e.styles.backgroundColor&&Dk(r,Ik(t,"fontSize"),Rk(t,"backgroundColor",og(e.styles.backgroundColor,n)))},oS=function(t,e,n,r){!gg(e)||"sub"!==e.inline&&"sup"!==e.inline||(Dk(r,Ik(t,"fontSize"),Rk(t,"fontSize","")),t.remove(t.select("sup"===e.inline?"sub":"sup",r),!0))},aS=function(t,e,n,r){nS(e,function(e){gg(e)&&nS(t.dom.select(e.inline,r),function(r){Tk(r)&&Jk(t,e,n,r,e.exact?r:null)}),Nk(t.dom,e,r)})},sS=function(t,e,n,r,i){Xx(t,i.parentNode,n,r)&&Jk(t,e,r,i)||e.merge_with_parents&&t.dom.getParent(i.parentNode,function(o){if(Xx(t,o,n,r))return Jk(t,e,r,i),!0})},uS=_n.each,lS=function(t){return Hr(t)&&!Gp(t)&&!Cp(t)&&!Yr(t)},cS=function(t,e,n,r){if($d(t)&&gg(e)){var i=Is(t.schema),o=Vx(En.fromDom(n),function(t){return Cp(t.dom)});return ee(i,r)&&Qa(En.fromDom(n.parentNode),!1)&&!o}return!1},fS=function(t,e,n,r){var i=t.formatter.get(e),o=i[0],a=!r&&t.selection.isCollapsed(),s=t.dom,u=t.selection,l=function(t,e){if(void 0===e&&(e=o),Y(e.onformat)&&e.onformat(t,e,n,r),uS(e.styles,function(e,r){s.setStyle(t,r,og(e,n))}),e.styles){var i=s.getAttrib(t,"style");i&&s.setAttrib(t,"data-mce-style",i)}uS(e.attributes,function(e,r){s.setAttrib(t,r,og(e,n))}),uS(e.classes,function(e){e=og(e,n),s.hasClass(t,e)||s.addClass(t,e)})},c=function(t,e){var n=!1;return uS(t,function(t){if(!pg(t))return!1;if(!G(t.collapsed)||t.collapsed===a)return s.is(e,t.selector)&&!Cp(e)?(l(e,t),n=!0,!1):void 0}),n},f=function(t){if(B(t)){var e=s.create(t);return l(e),e}return null},d=function(r,a,s){var u=[],d=!0,h=o.inline||o.block,p=f(h);Ig(r,a,function(a){var f,g=function(a){var m=!1,v=d,y=a.nodeName.toLowerCase(),b=a.parentNode,_=b.nodeName.toLowerCase();if(Hr(a)&&r.getContentEditable(a)&&(v=d,d="true"===r.getContentEditable(a),m=!0),ri(a)&&!cS(t,o,a,_))return f=null,void(hg(o)&&r.remove(a));if(hg(o)&&o.wrapper&&Xx(t,a,e,n))return void(f=null);if(d&&!m&&hg(o)&&!o.wrapper&&eg(t,y)&&ng(t,_,h)){var w=r.rename(a,h);return l(w),u.push(w),void(f=null)}if(pg(o)){var x=c(i,a);if(!x&&G(b)&&vg(o)&&(x=c(i,b)),!gg(o)||x)return void(f=null)}!d||m||!ng(t,h,y)||!ng(t,_,h)||!s&&Zr(a)&&la(a.data)||Cp(a)||gg(o)&&r.isBlock(a)?(f=null,wt(Bt(a.childNodes),g),m&&(d=v),f=null):(f||(f=r.clone(p,!1),a.parentNode.insertBefore(f,a),u.push(f)),f.appendChild(a))};wt(a,g)}),!0===o.links&&wt(u,function(t){var e=function(t){"A"===t.nodeName&&l(t,o),wt(Bt(t.childNodes),e)};e(t)}),wt(u,function(a){var s=function(t){var e=0;return wt(t.childNodes,function(t){ig(t)||Gp(t)||e++}),e}(a);if((u.length>1||!r.isBlock(a))&&0===s)return void r.remove(a,!0);(gg(o)||hg(o)&&o.wrapper)&&(o.exact||1!==s||(a=function(t){return At(t.childNodes,lS).filter(function(t){return Yx(r,t,o)}).map(function(e){var n=r.clone(e,!1);return l(n),r.replace(n,t,!0),r.remove(e,!0),n}).getOr(t)}(a)),aS(t,i,n,a),sS(t,o,e,n,a),iS(r,o,n,a),rS(r,o,0,a),oS(r,o,0,a),Pk(r,o,0,a))})};if("false"===s.getContentEditable(u.getNode())){r=u.getNode();for(var h=0,p=i.length;h<p;h++){var g=i[h];if(g.ceFalseOverride&&pg(g)&&s.is(r,g.selector)){l(r,g);break}}return void xm(t,e,r,n)}if(o){if(r)if(Jp(r)){if(!c(i,r)){var m=s.createRng();m.setStartBefore(r),m.setEndAfter(r),d(s,Mg(t,m,i),!0)}}else d(s,r,!0);else if(a&&gg(o)&&!Vg(t).length)gk(t,e,n);else{var v=u.getNode(),y=i[0];t.settings.forced_root_block||!y.defaultBlock||s.getParent(v,s.isBlock)||fS(t,y.defaultBlock),u.setRng(Xw(u.getRng())),Jg(u,!0,function(){Xg(t,function(e,n){var r=n?e:Mg(t,e,i);d(s,r,!1)})}),Zp(s,u,u.getRng()),t.nodeChanged()}Ck(e,t)}xm(t,e,r,n)},dS=function(t){return te(t,"vars")},hS=function(t,e){t.set({}),e.on("NodeChange",function(n){vS(e,n.element,t.get())}),e.on("FormatApply FormatRemove",function(n){var r=dt.from(n.node).map(function(t){return Jp(t)?t:t.startContainer}).bind(function(t){return Hr(t)?dt.some(t):dt.from(t.parentElement)}).getOrThunk(function(){return pS(e)});vS(e,r,t.get())})},pS=function(t){return t.selection.getStart()},gS=function(t,e,n,r,i){return Tt(e,function(e){var o=t.formatter.matchNode(e,n,null!==i&&void 0!==i?i:{},r);return!q(o)},function(e){return!!Wx(t,e,n)||!r&&G(t.formatter.matchNode(e,n,i,!0))})},mS=function(t,e){var n=null!==e&&void 0!==e?e:pS(t);return St(cg(t.dom,n),function(t){return Hr(t)&&!Yr(t)})},vS=function(t,e,n){var r=mS(t,e);Ht(n,function(n,i){var o=function(n){var o=gS(t,r,i,n.similar,dS(n)?n.vars:void 0),a=o.isSome();if(n.state.get()!==a){n.state.set(a);var s=o.getOr(e);dS(n)?n.callback(a,{node:s,format:i,parents:r}):wt(n.callbacks,function(t){return t(a,{node:s,format:i,parents:r})})}};wt([n.withSimilar,n.withoutSimilar],o),wt(n.withVars,o)})},yS=function(t,e,n,r,i,o){var a=e.get();wt(n.split(","),function(e){var n=Zt(a,e).getOrThunk(function(){var t={withSimilar:{state:Cl(!1),similar:!0,callbacks:[]},withoutSimilar:{state:Cl(!1),similar:!1,callbacks:[]},withVars:[]};return a[e]=t,t}),s=function(){var n=mS(t);return gS(t,n,e,i,o).isSome()};if(q(o)){var u=i?n.withSimilar:n.withoutSimilar;u.callbacks.push(r),1===u.callbacks.length&&u.state.set(s())}else n.withVars.push({state:Cl(s()),similar:i,vars:o,callback:r})}),e.set(a)},bS=function(t,e,n){var r=t.get();wt(e.split(","),function(t){return Zt(r,t).each(function(e){r[t]={withSimilar:de(de({},e.withSimilar),{callbacks:St(e.withSimilar.callbacks,function(t){return t!==n})}),withoutSimilar:de(de({},e.withoutSimilar),{callbacks:St(e.withoutSimilar.callbacks,function(t){return t!==n})}),withVars:St(e.withVars,function(t){return t.callback!==n})}})}),t.set(r)},_S=function(t,e,n,r,i,o){return null===e.get()&&hS(e,t),yS(t,e,n,r,i,o),{unbind:function(){return bS(e,n,r)}}},wS=function(t,e,n,r){var i=t.formatter.get(e);!Jx(t,e,n,r)||"toggle"in i[0]&&!i[0].toggle?fS(t,e,n,r):eS(t,e,n,r)},xS=function(t,e){var n=e||document,r=n.createDocumentFragment();return wt(t,function(t){r.appendChild(t.dom)}),En.fromDom(r)},kS=function(t,e,n){return{element:t,width:e,rows:n}},SS=function(t,e){return{element:t,cells:e}},CS=function(t,e){return{x:t,y:e}},ES=function(t,e){var n=parseInt(yi(t,e),10);return isNaN(n)?1:n},TS=function(t,e,n,r,i){for(var o=ES(i,"rowspan"),a=ES(i,"colspan"),s=t.rows,u=n;u<n+o;u++){s[u]||(s[u]=SS(xc(r),[]));for(var l=e;l<e+a;l++){s[u].cells[l]=u===n&&l===e?i:wc(i)}}},AS=function(t,e,n){var r=t.rows;return!!(r[n]?r[n].cells:[])[e]},OS=function(t,e,n){for(;AS(t,e,n);)e++;return e},PS=function(t){return Et(t,function(t,e){return e.cells.length>t?e.cells.length:t},0)},NS=function(t,e){for(var n=t.rows,r=0;r<n.length;r++)for(var i=n[r].cells,o=0;o<i.length;o++)if(In(i[o],e))return dt.some(CS(o,r));return dt.none()},DS=function(t,e,n,r,i){for(var o=[],a=t.rows,s=n;s<=i;s++){var u=a[s].cells,l=e<r?u.slice(e,r+1):u.slice(r,e+1);o.push(SS(a[s].element,l))}return o},MS=function(t,e,n){var r=e.x,i=e.y,o=n.x,a=n.y,s=i<a?DS(t,r,i,o,a):DS(t,r,a,o,i);return kS(t.element,PS(s),s)},IS=function(t,e){var n=wc(t.element),r=En.fromTag("tbody");return Cr(r,e),xr(n,r),n},RS=function(t){return _t(t.rows,function(t){var e=_t(t.cells,function(t){var e=xc(t);return wi(e,"colspan"),wi(e,"rowspan"),e}),n=wc(t.element);return Cr(n,e),n})},$S=function(t){var e=kS(wc(t),0,[]);return wt(nc(t,"tr"),function(t,n){wt(nc(t,"td,th"),function(r,i){TS(e,OS(e,i,n),n,t,r)})}),kS(e.element,PS(e.rows),e.rows)},LS=function(t){return IS(t,RS(t))},jS=function(t,e,n){return NS(t,e).bind(function(e){return NS(t,n).map(function(n){return MS(t,e,n)})})},FS=function(t){return At(t,function(t){return"ul"===jn(t)||"ol"===jn(t)})},BS=function(t,e){return At(t,function(t){return"li"===jn(t)&&Gg(t,e)}).fold(Z([]),function(e){return FS(t).map(function(t){var e=En.fromTag(jn(t)),n=Xt(Ai(t),function(t,e){return Oe(e,"list-style")});return Si(e,n),[En.fromTag("li"),e]}).getOr([])})},VS=function(t,e){var n=Et(e,function(t,e){return xr(e,t),e},t);return e.length>0?xS([n]):n},zS=function(t){return ea(t)?Jn(t).filter(ta).fold(Z([]),function(e){return[t,e]}):ta(t)?[t]:[]},US=function(t,e){var n=En.fromDom(e.commonAncestorContainer),r=qb(n,t),i=St(r,function(t){return Jo(t)||Yo(t)}),o=BS(r,e),a=i.concat(o.length?o:zS(n));return _t(a,wc)},HS=function(){return xS([])},qS=function(t,e){return VS(En.fromDom(e.cloneContents()),US(t,e))},WS=function(t,e){return Co(e,"table",r(In,t))},GS=function(t,e){return WS(t,e[0]).bind(function(t){var n=e[0],r=e[e.length-1],i=$S(t);return jS(i,n,r).map(function(t){return xS([LS(t)])})}).getOrThunk(HS)},YS=function(t,e){return e.length>0&&e[0].collapsed?HS():qS(t,e[0])},KS=function(t,e){var n=Bg(e,t);return n.length>0?GS(t,n):YS(t,e)},XS=function(t){return t.replace(/^[ \f\n\r\t\v]+/,"")},JS=function(t,e){return e>=0&&e<t.length&&Kp(t.charAt(e))},QS=function(t,e){var n=ca(t.innerText);return e?XS(n):n},ZS=function(t){return t.map(function(t){return t.nodeName}).getOr("div").toLowerCase()},tC=function(t){return dt.from(t.selection.getRng()).map(function(e){var n=dt.from(t.dom.getParent(e.commonAncestorContainer,t.dom.isBlock)),r=t.getBody(),i=ZS(n),o=sn.browser.isIE()&&"pre"!==i,a=t.dom.add(r,i,{"data-mce-bogus":"all",style:"overflow: hidden; opacity: 0;"},e.cloneContents()),s=QS(a,o),u=ca(a.textContent);if(t.dom.remove(a),JS(u,0)||JS(u,u.length-1)){var l=n.getOr(r),c=QS(l,o),f=c.indexOf(s);if(-1===f)return s;var d=JS(c,f-1),h=JS(c,f+s.length);return(d?" ":"")+s+(h?" ":"")}return s}).getOr("")},eC=function(t,e){var n=t.selection.getRng(),r=t.dom.create("body"),i=t.selection.getSel(),o=Wy(t,Rg(i)),a=e.contextual?KS(En.fromDom(t.getBody()),o).dom:n.cloneContents();return a&&r.appendChild(a),t.selection.serializer.serialize(r,e)},nC=function(t,e){return de(de({},t),{format:e,get:!0,selection:!0})},rC=function(t,e,n){void 0===n&&(n={});var r=nC(n,e),i=t.fire("BeforeGetContent",r);if(i.isDefaultPrevented())return t.fire("GetContent",i),i.content;if("text"===i.format)return tC(t);i.getInner=!0;var o=eC(t,i);return"tree"===i.format?o:(i.content=t.selection.isCollapsed()?"":o,t.fire("GetContent",i),i.content)},iC=function(t,e){var n=t.length+e.length+2,r=new Array(n),i=new Array(n),o=function(t,e,n){return{start:t,end:e,diag:n}},a=function(n,r,i,o,s){var l=u(n,r,i,o);if(null===l||l.start===r&&l.diag===r-o||l.end===n&&l.diag===n-i)for(var c=n,f=i;c<r||f<o;)c<r&&f<o&&t[c]===e[f]?(s.push([0,t[c]]),++c,++f):r-n>o-i?(s.push([2,t[c]]),++c):(s.push([1,e[f]]),++f);else{a(n,l.start,i,l.start-l.diag,s);for(var d=l.start;d<l.end;++d)s.push([0,t[d]]);a(l.end,r,l.end-l.diag,o,s)}},s=function(n,r,i,a){for(var s=n;s-r<a&&s<i&&t[s]===e[s-r];)++s;return o(n,s,r)},u=function(n,o,a,u){var l=o-n,c=u-a;if(0===l||0===c)return null;var f=l-c,d=c+l,h=(d%2==0?d:d+1)/2;r[1+h]=n,i[1+h]=o+1;var p,g,m,v,y;for(p=0;p<=h;++p){for(g=-p;g<=p;g+=2){for(m=g+h,g===-p||g!==p&&r[m-1]<r[m+1]?r[m]=r[m+1]:r[m]=r[m-1]+1,v=r[m],y=v-n+a-g;v<o&&y<u&&t[v]===e[y];)r[m]=++v,++y;if(f%2!=0&&f-p<=g&&g<=f+p&&i[m-f]<=r[m])return s(i[m-f],g+n-a,o,u)}for(g=f-p;g<=f+p;g+=2){for(m=g+h-f,g===f-p||g!==f+p&&i[m+1]<=i[m-1]?i[m]=i[m+1]-1:i[m]=i[m-1],v=i[m]-1,y=v-n+a-g;v>=n&&y>=a&&t[v]===e[y];)i[m]=v--,y--;if(f%2==0&&-p<=g&&g<=p&&i[m]<=r[m+f])return s(i[m],g+n-a,o,u)}}},l=[];return a(0,t.length,0,e.length,l),l},oC=function(t){return Hr(t)?t.outerHTML:Zr(t)?Ss.encodeRaw(t.data,!1):ti(t)?"\x3c!--"+t.data+"--\x3e":""},aC=function(t){var e,n=document.createElement("div"),r=document.createDocumentFragment();for(t&&(n.innerHTML=t);e=n.firstChild;)r.appendChild(e);return r},sC=function(t,e,n){var r=aC(e);if(t.hasChildNodes()&&n<t.childNodes.length){var i=t.childNodes[n];i.parentNode.insertBefore(r,i)}else t.appendChild(r)},uC=function(t,e){if(t.hasChildNodes()&&e<t.childNodes.length){var n=t.childNodes[e];n.parentNode.removeChild(n)}},lC=function(t,e){var n=0;wt(t,function(t){0===t[0]?n++:1===t[0]?(sC(e,t[1],n),n++):2===t[0]&&uC(e,n)})},cC=function(t,e){return St(_t(Bt(t.childNodes),e?J(ca,oC):oC),function(t){return t.length>0})},fC=function(t,e){var n=_t(Bt(e.childNodes),oC);return lC(iC(n,t),e),e},dC=he(function(){return document.implementation.createHTMLDocument("undo")}),hC=function(t){return null!==t.querySelector("iframe")},pC=function(t){return{type:"fragmented",fragments:t,content:"",bookmark:null,beforeBookmark:null}},gC=function(t){return{type:"complete",fragments:null,content:t,bookmark:null,beforeBookmark:null}},mC=function(t){var e=t.serializer.getTempAttrs(),n=ab(t.getBody(),e);return hC(n)?pC(cC(n,!0)):gC(ca(n.innerHTML))},vC=function(t,e,n){var r=n?e.beforeBookmark:e.bookmark;"fragmented"===e.type?fC(e.fragments,t.getBody()):t.setContent(e.content,{format:"raw",no_selection:!G(r)||!Np(r)||!r.isFakeCaret}),t.selection.moveToBookmark(r)},yC=function(t){return"fragmented"===t.type?t.fragments.join(""):t.content},bC=function(t){var e=En.fromTag("body",dC());return bc(e,yC(t)),wt(nc(e,"*[data-mce-bogus]"),Ar),yc(e)},_C=function(t,e){return yC(t)===yC(e)},wC=function(t,e){return bC(t)===bC(e)},xC=function(t,e){return!(!t||!e)&&(!!_C(t,e)||wC(t,e))},kC=function(t){return 0===t.get()},SC=function(t,e,n){kC(n)&&(t.typing=e)},CC=function(t,e){t.typing&&(SC(t,!1,e),t.add())},EC=function(t){t.typing&&(t.typing=!1,t.add())},TC=function(t,e,n){kC(e)&&n.set(zf(t.selection))},AC=function(t,e,n,r,i,o,a){var s=mC(t);if(o=o||{},o=_n.extend(o,s),!1===kC(r)||t.removed)return null;var u=e.data[n.get()];if(t.fire("BeforeAddUndo",{level:o,lastLevel:u,originalEvent:a}).isDefaultPrevented())return null;if(u&&xC(u,o))return null;e.data[n.get()]&&i.get().each(function(t){e.data[n.get()].beforeBookmark=t});var l=Wd(t);if(l&&e.data.length>l){for(var c=0;c<e.data.length-1;c++)e.data[c]=e.data[c+1];e.data.length--,n.set(e.data.length)}o.bookmark=zf(t.selection),n.get()<e.data.length-1&&(e.data.length=n.get()+1),e.data.push(o),n.set(e.data.length-1);var f={level:o,lastLevel:u,originalEvent:a};return n.get()>0?(t.setDirty(!0),t.fire("AddUndo",f),t.fire("change",f)):t.fire("AddUndo",f),o},OC=function(t,e,n){e.data=[],n.set(0),e.typing=!1,t.fire("ClearUndos")},PC=function(t,e,n,r,i){if(e.transact(r)){var o=e.data[n.get()].bookmark,a=e.data[n.get()-1];vC(t,a,!0),e.transact(i)&&(e.data[n.get()-1].beforeBookmark=o)}},NC=function(t,e,n){var r;return e.get()<n.length-1&&(e.set(e.get()+1),r=n[e.get()],vC(t,r,!1),t.setDirty(!0),t.fire("Redo",{level:r})),r},DC=function(t,e,n,r){var i;return e.typing&&(e.add(),e.typing=!1,SC(e,!1,n)),r.get()>0&&(r.set(r.get()-1),i=e.data[r.get()],vC(t,i,!0),t.setDirty(!0),t.fire("Undo",{level:i})),i},MC=function(t){t.clear(),t.add()},IC=function(t,e,n){return n.get()>0||e.typing&&e.data[0]&&!xC(mC(t),e.data[0])},RC=function(t,e){return e.get()<t.data.length-1&&!t.typing},$C=function(t,e,n){return CC(t,e),t.beforeChange(),t.ignore(n),t.add()},LC=function(t,e){try{t.set(t.get()+1),e()}finally{t.set(t.get()-1)}},jC=function(t,e){var n=t.dom,r=G(e)?e:t.getBody();q(t.hasVisual)&&(t.hasVisual=Zd(t)),wt(n.select("table,a",r),function(e){switch(e.nodeName){case"TABLE":var r=th(t),i=n.getAttrib(e,"border");i&&"0"!==i||!t.hasVisual?n.removeClass(e,r):n.addClass(e,r);break;case"A":if(!n.getAttrib(e,"href")){var o=n.getAttrib(e,"name")||e.id,a=eh(t);o&&t.hasVisual?n.addClass(e,a):n.removeClass(e,a)}}}),t.fire("VisualAid",{element:e,hasVisual:t.hasVisual})},FC=function(t){return{undoManager:{beforeChange:function(e,n){return TC(t,e,n)},add:function(e,n,r,i,o,a){return AC(t,e,n,r,i,o,a)},undo:function(e,n,r){return DC(t,e,n,r)},redo:function(e,n){return NC(t,e,n)},clear:function(e,n){return OC(t,e,n)},reset:function(t){return MC(t)},hasUndo:function(e,n){return IC(t,e,n)},hasRedo:function(t,e){return RC(t,e)},transact:function(t,e,n){return $C(t,e,n)},ignore:function(t,e){return LC(t,e)},extra:function(e,n,r,i){return PC(t,e,n,r,i)}},formatter:{match:function(e,n,r,i){return Jx(t,e,n,r,i)},matchAll:function(e,n){return Qx(t,e,n)},matchNode:function(e,n,r,i){return Xx(t,e,n,r,i)},canApply:function(e){return tk(t,e)},closest:function(e){return Zx(t,e)},apply:function(e,n,r){return fS(t,e,n,r)},remove:function(e,n,r,i){return eS(t,e,n,r,i)},toggle:function(e,n,r){return wS(t,e,n,r)},formatChanged:function(e,n,r,i,o){return _S(t,e,n,r,i,o)}},editor:{getContent:function(e,n){return cb(t,e,n)},setContent:function(e,n){return Bx(t,e,n)},insertContent:function(e,n){return Px(t,e,n)},addVisual:function(e){return jC(t,e)}},selection:{getContent:function(e,n){return rC(t,e,n)}},raw:{getModel:function(){return dt.none()}}}},BC=function(t){var e=function(t){return V(t)?t:{}},n=t.undoManager,r=t.formatter,i=t.editor,o=t.selection,a=t.raw;return{undoManager:{beforeChange:n.beforeChange,add:n.add,undo:n.undo,redo:n.redo,clear:n.clear,reset:n.reset,hasUndo:n.hasUndo,hasRedo:n.hasRedo,transact:function(t,e,r){return n.transact(r)},ignore:function(t,e){return n.ignore(e)},extra:function(t,e,r,i){return n.extra(r,i)}},formatter:{match:function(t,n,i,o){return r.match(t,e(n),o)},matchAll:r.matchAll,matchNode:r.matchNode,canApply:function(t){return r.canApply(t)},closest:function(t){return r.closest(t)},apply:function(t,n,i){return r.apply(t,e(n))},remove:function(t,n,i,o){return r.remove(t,e(n))},toggle:function(t,n,i){return r.toggle(t,e(n))},formatChanged:function(t,e,n,i,o){return r.formatChanged(e,n,i,o)}},editor:{getContent:function(t,e){return i.getContent(t)},setContent:function(t,e){return i.setContent(t,e)},insertContent:function(t,e){return i.insertContent(t)},addVisual:i.addVisual},selection:{getContent:function(t,e){return o.getContent(e)}},raw:{getModel:function(){return dt.some(a.getRawModel())}}}},VC=function(){var t=Z(null),e=Z("");return{undoManager:{beforeChange:X,add:t,undo:t,redo:t,clear:X,reset:X,hasUndo:at,hasRedo:at,transact:t,ignore:X,extra:X},formatter:{match:at,matchAll:Z([]),matchNode:Z(void 0),canApply:at,closest:e,apply:X,remove:X,toggle:X,formatChanged:Z({unbind:X})},editor:{getContent:e,setContent:e,insertContent:X,addVisual:X},selection:{getContent:e},raw:{getModel:Z(dt.none())}}},zC=function(t){return te(t.plugins,"rtc")},UC=function(t){return Zt(t.plugins,"rtc").bind(function(t){return dt.from(t.setup)})},HC=function(t){var e=t;return UC(t).fold(function(){return e.rtcInstance=FC(t),dt.none()},function(t){return e.rtcInstance=VC(),dt.some(function(){return t().then(function(t){return e.rtcInstance=BC(t),t.rtc.isRemote})})})},qC=function(t){return t.rtcInstance?t.rtcInstance:FC(t)},WC=function(t){var e=t.rtcInstance;if(e)return e;throw new Error("Failed to get RTC instance not yet initialized.")},GC=function(t,e,n){WC(t).undoManager.beforeChange(e,n)},YC=function(t,e,n,r,i,o,a){return WC(t).undoManager.add(e,n,r,i,o,a)},KC=function(t,e,n,r){return WC(t).undoManager.undo(e,n,r)},XC=function(t,e,n){return WC(t).undoManager.redo(e,n)},JC=function(t,e,n){WC(t).undoManager.clear(e,n)},QC=function(t,e){WC(t).undoManager.reset(e)},ZC=function(t,e,n){return WC(t).undoManager.hasUndo(e,n)},tE=function(t,e,n){return WC(t).undoManager.hasRedo(e,n)},eE=function(t,e,n,r){return WC(t).undoManager.transact(e,n,r)},nE=function(t,e,n){WC(t).undoManager.ignore(e,n)},rE=function(t,e,n,r,i){WC(t).undoManager.extra(e,n,r,i)},iE=function(t,e,n,r,i){return WC(t).formatter.match(e,n,r,i)},oE=function(t,e,n){return WC(t).formatter.matchAll(e,n)},aE=function(t,e,n,r,i){return WC(t).formatter.matchNode(e,n,r,i)},sE=function(t,e){return WC(t).formatter.canApply(e)},uE=function(t,e){return WC(t).formatter.closest(e)},lE=function(t,e,n,r){WC(t).formatter.apply(e,n,r)},cE=function(t,e,n,r,i){WC(t).formatter.remove(e,n,r,i)},fE=function(t,e,n,r){WC(t).formatter.toggle(e,n,r)},dE=function(t,e,n,r,i,o){return WC(t).formatter.formatChanged(e,n,r,i,o)},hE=function(t,e,n){return qC(t).editor.getContent(e,n)},pE=function(t,e,n){return qC(t).editor.setContent(e,n)},gE=function(t,e,n){return qC(t).editor.insertContent(e,n)},mE=function(t,e,n){return WC(t).selection.getContent(e,n)},vE=function(t,e){return WC(t).editor.addVisual(e)},yE=function(t,e){void 0===e&&(e={});var n=e.format?e.format:"html";return mE(t,n,e)},bE=function(t){return 0===t.dom.length?(Tr(t),dt.none()):dt.some(t)},_E=function(t,e){return t.filter(function(t){return sm.isBookmarkNode(t.dom)}).bind(e?er:tr)},wE=function(t,e,n,r){var i=t.dom,o=e.dom,a=r?i.length:o.length;r?(D_(i,o,!1,!r),n.setStart(o,a)):(D_(o,i,!1,!r),n.setEnd(o,a))},xE=function(t,e){Jn(t).each(function(n){var r=t.dom;e&&m_(n,sf(r,0))?P_(r,0):!e&&y_(n,sf(r,r.length))&&N_(r,r.length)})},kE=function(t,e,n,r){t.bind(function(t){return(r?N_:P_)(t.dom,r?t.dom.length:0),e.filter(Un).map(function(e){return wE(t,e,n,r)})}).orThunk(function(){return _E(e,r).or(e).filter(Un).map(function(t){return xE(t,r)})})},SE=function(t,e){var n=dt.from(e.firstChild).map(En.fromDom),r=dt.from(e.lastChild).map(En.fromDom);t.deleteContents(),t.insertNode(e);var i=n.bind(tr).filter(Un).bind(bE),o=r.bind(er).filter(Un).bind(bE);kE(i,n,t,!0),kE(o,r,t,!1),t.collapse(!1)},CE=function(t,e){return de(de({format:"html"},t),{set:!0,selection:!0,content:e})},EE=function(t,e){if("raw"!==e.format){var n=t.selection.getRng(),r=t.dom.getParent(n.commonAncestorContainer,t.dom.isBlock),i=r?{context:r.nodeName.toLowerCase()}:{},o=t.parser.parse(e.content,de(de({isRootContent:!0,forced_root_block:!1},i),e));return gb({validate:t.validate},t.schema).serialize(o)}return e.content},TE=function(t,e,n){void 0===n&&(n={});var r=CE(n,e),i=r;if(!r.no_events){var o=t.fire("BeforeSetContent",r);if(o.isDefaultPrevented())return void t.fire("SetContent",o);i=o}i.content=EE(t,i);var a=t.selection.getRng();SE(a,a.createContextualFragment(i.content)),t.selection.setRng(a),Sv(t,a),i.no_events||t.fire("SetContent",i)},AE=function(t,e,n){if(t&&te(t,e)){var r=St(t[e],function(t){return t!==n});0===r.length?delete t[e]:t[e]=r}},OE=function(t){return!!t.select},PE=function(t){return!(!t||!t.ownerDocument)&&Ln(En.fromDom(t.ownerDocument),En.fromDom(t))},NE=function(t){return!!t&&(!!OE(t)||PE(t.startContainer)&&PE(t.endContainer))},DE=function(t,e,n,r){var i,o,a=k(t,r).selectorChangedWithUnbind,s=function(e,n){var i=t.createRng();G(e)&&G(n)?(i.setStart(e,n),i.setEnd(e,n),b(i),m(!1)):(Yg(t,i,r.getBody(),!0),b(i))},u=function(t){return yE(r,t)},l=function(t,e){return TE(r,t,e)},c=function(t){return By(r.getBody(),y(),t)},f=function(t){return Vy(r.getBody(),y(),t)},d=function(t,e){return M.getBookmark(t,e)},h=function(t){return M.moveToBookmark(t)},p=function(e,n){return qy(t,e,n).each(b),e},g=function(){var t=y(),e=v();return!(!t||t.item)&&(t.compareEndPoints?0===t.compareEndPoints("StartToEnd",t):!e||t.collapsed)},m=function(t){var e=y();e.collapse(!!t),b(e)},v=function(){return e.getSelection?e.getSelection():e.document.selection},y=function(){var n,a,s,u=function(t,e,n){try{return e.compareBoundaryPoints(t,n)}catch(t){return-1}},l=e.document;if(void 0!==r.bookmark&&!1===Iy(r)){var c=sy(r);if(c.isSome())return c.map(function(t){return Wy(r,[t])[0]}).getOr(l.createRange())}try{(n=v())&&!Ur(n.anchorNode)&&(a=n.rangeCount>0?n.getRangeAt(0):n.createRange?n.createRange():l.createRange(),a=Wy(r,[a])[0])}catch(t){}return a||(a=l.createRange?l.createRange():l.body.createTextRange()),a.setStart&&9===a.startContainer.nodeType&&a.collapsed&&(s=t.getRoot(),a.setStart(s,0),a.setEnd(s,0)),i&&o&&(0===u(a.START_TO_START,a,i)&&0===u(a.END_TO_END,a,i)?a=o:(i=null,o=null)),a},b=function(t,e){var n;if(NE(t)){var a=OE(t)?t:null;if(a){o=null;try{a.select()}catch(t){}}else{var s=v();if(t=r.fire("SetSelectionRange",{range:t,forward:e}).range,s){o=t;try{s.removeAllRanges(),s.addRange(t)}catch(t){}!1===e&&s.extend&&(s.collapse(t.endContainer,t.endOffset),s.extend(t.startContainer,t.startOffset)),i=s.rangeCount>0?s.getRangeAt(0):null}t.collapsed||t.startContainer!==t.endContainer||!s.setBaseAndExtent||sn.ie||t.endOffset-t.startOffset<2&&t.startContainer.hasChildNodes()&&(n=t.startContainer.childNodes[t.startOffset])&&"IMG"===n.tagName&&(s.setBaseAndExtent(t.startContainer,t.startOffset,t.endContainer,t.endOffset),s.anchorNode===t.startContainer&&s.focusNode===t.endContainer||s.setBaseAndExtent(n,0,n,1)),r.fire("AfterSetSelectionRange",{range:t,forward:e})}}},_=function(e){return l(t.getOuterHTML(e)),e},w=function(){return Uy(r.getBody(),y())},x=function(e,n){return Hy(t,y(),e,n)},S=function(){var e=v(),n=null===e||void 0===e?void 0:e.anchorNode,r=null===e||void 0===e?void 0:e.focusNode;if(!e||!n||!r||Ur(n)||Ur(r))return!0;var i=t.createRng();i.setStart(n,e.anchorOffset),i.collapse(!0);var o=t.createRng();return o.setStart(r,e.focusOffset),o.collapse(!0),i.compareBoundaryPoints(i.START_TO_START,o)<=0},C=function(){var e=y(),n=v();if(!Lg(n)&&Kg(r)){var i=Hm(t,e);return i.each(function(t){b(t,S())}),i.getOr(e)}return e},E=function(t,e){return a(t,e),D},T=function(){for(var e,n=t.getRoot();n&&"BODY"!==n.nodeName;){if(n.scrollHeight>n.clientHeight){e=n;break}n=n.parentNode}return e},A=function(t,e){G(t)?kv(r,t,e):Sv(r,y(),e)},O=function(t,e){return b(Nm(t,e,r.getDoc()))},P=function(){var t=y();return t.collapsed?sf.fromRangeStart(t).getClientRects()[0]:t.getBoundingClientRect()},N=function(){e=i=o=null,I.destroy()},D={bookmarkManager:null,controlSelection:null,dom:t,win:e,serializer:n,editor:r,collapse:m,setCursorLocation:s,getContent:u,setContent:l,getBookmark:d,moveToBookmark:h,select:p,isCollapsed:g,isForward:S,setNode:_,getNode:w,getSel:v,setRng:b,getRng:y,getStart:c,getEnd:f,getSelectedBlocks:x,normalize:C,selectorChanged:E,selectorChangedWithUnbind:a,getScrollContainer:T,scrollIntoView:A,placeCaretAt:O,getBoundingClientRect:P,destroy:N},M=sm(D),I=Em(D,r);return D.bookmarkManager=M,D.controlSelection=I,D},ME=function(t,e){wt(e,function(e){t.attr(e,null)})},IE=function(t,e,n){t.addNodeFilter("font",function(t){wt(t,function(t){var r=e.parse(t.attr("style")),i=t.attr("color"),o=t.attr("face"),a=t.attr("size");i&&(r.color=i),o&&(r["font-family"]=o),a&&(r["font-size"]=n[parseInt(t.attr("size"),10)-1]),t.name="span",t.attr("style",e.serialize(r)),ME(t,["color","face","size"])})})},RE=function(t,e){t.addNodeFilter("strike",function(t){wt(t,function(t){var n=e.parse(t.attr("style"));n["text-decoration"]="line-through",t.name="span",t.attr("style",e.serialize(n))})})},$E=function(t,e){var n=Fs();e.convert_fonts_to_spans&&IE(t,n,_n.explode(e.font_size_legacy_values)),RE(t,n)},LE=function(t,e){e.inline_styles&&$E(t,e)},jE=function(t){return new Ao(function(e,n){var r=function(){n("Cannot convert "+t+" to Blob. Resource might not exist or is inaccessible.")};try{var i=new XMLHttpRequest;i.open("GET",t,!0),i.responseType="blob",i.onload=function(){200===i.status?e(i.response):r()},i.onerror=r,i.send()}catch(t){r()}})},FE=function(t){var e,n=decodeURIComponent(t).split(","),r=/data:([^;]+)/.exec(n[0]);return r&&(e=r[1]),{type:e,data:n[1]}},BE=function(t,e){var n;try{n=atob(e)}catch(t){return dt.none()}for(var r=new Uint8Array(n.length),i=0;i<r.length;i++)r[i]=n.charCodeAt(i);return dt.some(new Blob([r],{type:t}))},VE=function(t){return new Ao(function(e){var n=FE(t),r=n.type,i=n.data;BE(r,i).fold(function(){return e(new Blob([]))},e)})},zE=function(t){return 0===t.indexOf("blob:")?jE(t):0===t.indexOf("data:")?VE(t):null},UE=function(t){return new Ao(function(e){var n=new FileReader;n.onloadend=function(){e(n.result)},n.readAsDataURL(t)})},HE=0,qE=function(t){return(t||"blobid")+HE++},WE=function(t,e,n,r){var i,o;if(0===e.src.indexOf("blob:"))return o=t.getByUri(e.src),void(o?n({image:e,blobInfo:o}):zE(e.src).then(function(r){UE(r).then(function(a){i=FE(a).data,o=t.create(qE(),r,i),t.add(o),n({image:e,blobInfo:o})})},function(t){r(t)}));var a=FE(e.src),s=a.data,u=a.type;i=s,o=t.getByData(i,u),o?n({image:e,blobInfo:o}):zE(e.src).then(function(r){o=t.create(qE(),r,i),t.add(o),n({image:e,blobInfo:o})},function(t){r(t)})},GE=function(t){return t?Bt(t.getElementsByTagName("img")):[]},YE=function(t,e){var n={};return{findAll:function(r,i){i||(i=st);var o=St(GE(r),function(e){var n=e.src;return!!sn.fileApi&&(!e.hasAttribute("data-mce-bogus")&&(!e.hasAttribute("data-mce-placeholder")&&(!(!n||n===sn.transparentSrc)&&(0===n.indexOf("blob:")?!t.isUploaded(n)&&i(e):0===n.indexOf("data:")&&i(e)))))}),a=_t(o,function(t){if(void 0!==n[t.src])return new Ao(function(e){n[t.src].then(function(n){if("string"==typeof n)return n;e({image:t,blobInfo:n.blobInfo})})});var r=new Ao(function(n,r){WE(e,t,n,r)}).then(function(t){return delete n[t.image.src],t}).catch(function(e){return delete n[t.src],e});return n[t.src]=r,r});return Ao.all(a)}}},KE=function(t){for(var e,n=/data:[^;<"'\s]+;base64,([a-z0-9\+\/=\s]+)/gi,r=[],i={},o=pc("img"),a=0,s=0;e=n.exec(t);){var u=e[0],l=o+"_"+s++;i[l]=u,a<e.index&&r.push(t.substr(a,e.index-a)),r.push(l),a=e.index+u.length}var c=new RegExp(o+"_[0-9]+","g");return 0===a?{prefix:o,uris:i,html:t,re:c}:(a<t.length&&r.push(t.substr(a)),{prefix:o,uris:i,html:r.join(""),re:c})},XE=function(t,e){return t.replace(e.re,function(t){return Zt(e.uris,t).getOr(t)})},JE=function(t){var e=/data:([^;]+);base64,([a-z0-9\+\/=\s]+)/i.exec(t);return e?dt.some({type:e[1],data:decodeURIComponent(e[2])}):dt.none()},QE=function(t,e,n,r){(t.padd_empty_with_br||e.insert)&&n[r.name]?r.empty().append(new Jy("br",1)).shortEnded=!0:r.empty().append(new Jy("#text",3)).value=" "},ZE=function(t){return tT(t,"#text")&&" "===t.firstChild.value},tT=function(t,e){return t&&t.firstChild&&t.firstChild===t.lastChild&&t.firstChild.name===e},eT=function(t,e){var n=t.getElementRule(e.name);return n&&n.paddEmpty},nT=function(t,e,n,r){return r.isEmpty(e,n,function(e){return eT(t,e)})},rT=function(t,e){return t&&(te(e,t.name)||"br"===t.name)},iT=function(t){return G(t.attr("data-mce-bogus"))},oT=function(t){return t.attr("src")===sn.transparentSrc||G(t.attr("data-mce-placeholder"))},aT=function(t,e){if(e.images_dataimg_filter){var n=new Image;return n.src=t.attr("src"),Ht(t.attributes.map,function(t,e){n.setAttribute(e,t)}),e.images_dataimg_filter(n)}return!0},sT=function(t,e){var n=e.blob_cache,r=function(t){var r=t.attr("src");oT(t)||iT(t)||JE(r).filter(function(){return aT(t,e)}).bind(function(t){var e=t.type,r=t.data;return dt.from(n.getByData(r,e)).orThunk(function(){return BE(e,r).map(function(t){var e=n.create(qE(),t,r);return n.add(e),e})})}).each(function(e){t.attr("src",e.blobUri())})};n&&t.addAttributeFilter("src",function(t){return wt(t,r)})},uT=function(t,e){var n=t.schema;e.remove_trailing_brs&&t.addNodeFilter("br",function(t,r,i){var o,a,s,u,l,c,f,d,h=t.length,p=_n.extend({},n.getBlockElements()),g=n.getNonEmptyElements(),m=n.getWhiteSpaceElements();for(p.body=1,o=0;o<h;o++)if(a=t[o],s=a.parent,p[a.parent.name]&&a===s.lastChild){for(l=a.prev;l;){if("span"!==(c=l.name)||"bookmark"!==l.attr("data-mce-type")){"br"===c&&(a=null);break}l=l.prev}a&&(a.remove(),nT(n,g,m,s)&&(f=n.getElementRule(s.name))&&(f.removeEmpty?s.remove():f.paddEmpty&&QE(e,i,p,s)))}else{for(u=a;s&&s.firstChild===u&&s.lastChild===u&&(u=s,!p[s.name]);)s=s.parent;u===s&&!0!==e.padd_empty_with_br&&(d=new Jy("#text",3),d.value=" ",a.replace(d))}}),t.addAttributeFilter("href",function(t){var n=t.length,r=function(t){return t.split(" ").filter(function(t){return t.length>0}).concat(["noopener"]).sort().join(" ")};if(!e.allow_unsafe_link_target)for(;n--;){var i=t[n];"a"===i.name&&"_blank"===i.attr("target")&&i.attr("rel",function(t){var e=t?_n.trim(t):"";return/\b(noopener)\b/g.test(e)?e:r(e)}(i.attr("rel")))}}),e.allow_html_in_named_anchor||t.addAttributeFilter("id,name",function(t){for(var e,n,r,i,o=t.length;o--;)if(i=t[o],"a"===i.name&&i.firstChild&&!i.attr("href")){r=i.parent,e=i.lastChild;do{n=e.prev,r.insert(e,i),e=n}while(e)}}),e.fix_list_elements&&t.addNodeFilter("ul,ol",function(t){for(var e,n,r=t.length;r--;)if(e=t[r],n=e.parent,"ul"===n.name||"ol"===n.name)if(e.prev&&"li"===e.prev.name)e.prev.append(e);else{var i=new Jy("li",1);i.attr("style","list-style-type: none"),e.wrap(i)}}),e.validate&&n.getValidClasses()&&t.addAttributeFilter("class",function(t){for(var e=n.getValidClasses(),r=t.length;r--;){for(var i=t[r],o=i.attr("class").split(" "),a="",s=0;s<o.length;s++){var u=o[s],l=!1,c=e["*"];c&&c[u]&&(l=!0),c=e[i.name],!l&&c&&c[u]&&(l=!0),l&&(a&&(a+=" "),a+=u)}a.length||(a=null),i.attr("class",a)}}),sT(t,e)},lT=_n.each,cT=_n.trim,fT="source protocol authority userInfo user password host port relative path directory file query anchor".split(" "),dT={ftp:21,http:80,https:443,mailto:25},hT=["img","video"],pT=function(t,e){return G(t)?!t:!G(e)||!yt(hT,e)},gT=function(t,e,n){return!t.allow_html_data_urls&&(/^data:image\//i.test(e)?pT(t.allow_svg_data_urls,n)&&/^data:image\/svg\+xml/i.test(e):/^data:/i.test(e))},mT=function(){function t(e,n){e=cT(e),this.settings=n||{};var r=this.settings.base_uri,i=this;if(/^([\w\-]+):([^\/]{2})/i.test(e)||/^\s*#/.test(e))return void(i.source=e);var o=0===e.indexOf("//");if(0!==e.indexOf("/")||o||(e=(r?r.protocol||"http":"http")+"://mce_host"+e),!/^[\w\-]*:?\/\//.test(e)){var a=this.settings.base_uri?this.settings.base_uri.path:new t(document.location.href).directory;if(this.settings.base_uri&&""==this.settings.base_uri.protocol)e="//mce_host"+i.toAbsPath(a,e);else{var s=/([^#?]*)([#?]?.*)/.exec(e);e=(r&&r.protocol||"http")+"://mce_host"+i.toAbsPath(a,s[1])+s[2]}}e=e.replace(/@@/g,"(mce_at)");var u=/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@\/]*):?([^:@\/]*))?@)?(\[[a-zA-Z0-9:.%]+\]|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/.exec(e);lT(fT,function(t,e){var n=u[e];n&&(n=n.replace(/\(mce_at\)/g,"@@")),i[t]=n}),r&&(i.protocol||(i.protocol=r.protocol),i.userInfo||(i.userInfo=r.userInfo),i.port||"mce_host"!==i.host||(i.port=r.port),i.host&&"mce_host"!==i.host||(i.host=r.host),i.source=""),o&&(i.protocol="")}return t.parseDataUri=function(t){var e,n=decodeURIComponent(t).split(","),r=/data:([^;]+)/.exec(n[0]);return r&&(e=r[1]),{type:e,data:n[1]}},t.isDomSafe=function(t,e,n){if(void 0===n&&(n={}),n.allow_script_urls)return!0;var r=Ss.decode(t).replace(/[\s\u0000-\u001F]+/g,"");try{r=decodeURIComponent(r)}catch(t){r=unescape(r)}return!/((java|vb)script|mhtml):/i.test(r)&&!gT(n,r,e)},t.getDocumentBaseUrl=function(t){var e;return e=0!==t.protocol.indexOf("http")&&"file:"!==t.protocol?t.href:t.protocol+"//"+t.host+t.pathname,/^[^:]+:\/\/\/?[^\/]+\//.test(e)&&(e=e.replace(/[\?#].*$/,"").replace(/[\/\\][^\/]+$/,""),/[\/\\]$/.test(e)||(e+="/")),e},t.prototype.setPath=function(t){var e=/^(.*?)\/?(\w+)?$/.exec(t);this.path=e[0],this.directory=e[1],this.file=e[2],this.source="",this.getURI()},t.prototype.toRelative=function(e){var n;if("./"===e)return e;var r=new t(e,{base_uri:this});if("mce_host"!==r.host&&this.host!==r.host&&r.host||this.port!==r.port||this.protocol!==r.protocol&&""!==r.protocol)return r.getURI();var i=this.getURI(),o=r.getURI();return i===o||"/"===i.charAt(i.length-1)&&i.substr(0,i.length-1)===o?i:(n=this.toRelPath(this.path,r.path),r.query&&(n+="?"+r.query),r.anchor&&(n+="#"+r.anchor),n)},t.prototype.toAbsolute=function(e,n){var r=new t(e,{base_uri:this});return r.getURI(n&&this.isSameOrigin(r))},t.prototype.isSameOrigin=function(t){if(this.host==t.host&&this.protocol==t.protocol){if(this.port==t.port)return!0;var e=dT[this.protocol];if(e&&(this.port||e)==(t.port||e))return!0}return!1},t.prototype.toRelPath=function(t,e){var n,r,i=0,o="",a=t.substring(0,t.lastIndexOf("/")).split("/"),s=e.split("/");if(a.length>=s.length)for(n=0,r=a.length;n<r;n++)if(n>=s.length||a[n]!==s[n]){i=n+1;break}if(a.length<s.length)for(n=0,r=s.length;n<r;n++)if(n>=a.length||a[n]!==s[n]){i=n+1;break}if(1===i)return e;for(n=0,r=a.length-(i-1);n<r;n++)o+="../";for(n=i-1,r=s.length;n<r;n++)o+=n!==i-1?"/"+s[n]:s[n];return o},t.prototype.toAbsPath=function(t,e){var n,r,i=0,o=[],a=/\/$/.test(e)?"/":"",s=t.split("/"),u=e.split("/");for(lT(s,function(t){t&&o.push(t)}),s=o,n=u.length-1,o=[];n>=0;n--)0!==u[n].length&&"."!==u[n]&&(".."!==u[n]?i>0?i--:o.push(u[n]):i++);return n=s.length-i,r=n<=0?Mt(o).join("/"):s.slice(0,n).join("/")+"/"+Mt(o).join("/"),0!==r.indexOf("/")&&(r="/"+r),a&&r.lastIndexOf("/")!==r.length-1&&(r+=a),r},t.prototype.getURI=function(t){void 0===t&&(t=!1);var e;return this.source&&!t||(e="",t||(this.protocol?e+=this.protocol+"://":e+="//",this.userInfo&&(e+=this.userInfo+"@"),this.host&&(e+=this.host),this.port&&(e+=":"+this.port)),this.path&&(e+=this.path),this.query&&(e+="?"+this.query),this.anchor&&(e+="#"+this.anchor),this.source=e),this.source},t}(),vT=_n.makeMap("button,fieldset,form,iframe,img,image,input,object,output,select,textarea"),yT=function(t){return 0===t.indexOf("data-")||0===t.indexOf("aria-")},bT=he(function(){return document.implementation.createHTMLDocument("parser")}),_T=function(t,e,n){for(var r=/<([!?\/])?([A-Za-z0-9\-_:.]+)/g,i=/(?:\s(?:[^'">]+(?:"[^"]*"|'[^']*'))*[^"'>]*(?:"[^">]*|'[^'>]*)?|\s*|\/)>/g,o=t.getShortEndedElements(),a=1,s=n;0!==a;)for(r.lastIndex=s;;){var u=r.exec(e);if(null===u)return s;if("!"===u[1]){s=Oe(u[2],"--")?xT(e,!1,u.index+"!--".length):xT(e,!0,u.index+1);break}i.lastIndex=r.lastIndex;var l=i.exec(e);if(!U(l)&&l.index===r.lastIndex){"/"===u[1]?a-=1:te(o,u[2])||(a+=1),s=r.lastIndex+l[0].length;break}}return s},wT=function(t,e){return/^\s*\[if [\w\W]+\]>.*<!\[endif\](--!?)?>/.test(t.substr(e))},xT=function(t,e,n){void 0===n&&(n=0);var r=t.toLowerCase();if(-1!==r.indexOf("[if ",n)&&wT(r,n)){var i=r.indexOf("[endif]",n);return r.indexOf(">",i)}if(e){var o=r.indexOf(">",n);return-1!==o?o:r.length}var a=/--!?>/g;a.lastIndex=n;var s=a.exec(t);return s?s.index+s[0].length:r.length},kT=function(t,e){var n=t.exec(e);if(n){var r=n[1],i=n[2];return"string"==typeof r&&"data-mce-bogus"===r.toLowerCase()?i:null}return null},ST=function(t,e){void 0===e&&(e=Ls()),t=t||{};var n=bT(),r=n.createElement("form");!1!==t.fix_self_closing&&(t.fix_self_closing=!0);var i=t.comment?t.comment:X,o=t.cdata?t.cdata:X,a=t.text?t.text:X,s=t.start?t.start:X,u=t.end?t.end:X,l=t.pi?t.pi:X,c=t.doctype?t.doctype:X,f=function(f,d){void 0===d&&(d="html");for(var h,p,g,m,v,y,b,_,w,x,k,S,C,E,T,A,O,P,N,D,M=f.html,I=0,R=[],$=0,L=Ss.decode,j=_n.makeMap("src,href,data,background,action,formaction,poster,xlink:href"),F="html"===d?0:1,B=function(t){var e,n;for(e=R.length;e--&&R[e].name!==t;);if(e>=0){for(n=R.length-1;n>=e;n--)t=R[n],t.valid&&u(t.name);R.length=e}},V=function(t,e){return a(XE(t,f),e)},z=function(e){""!==e&&(">"===e.charAt(0)&&(e=" "+e),t.allow_conditional_comments||"[if"!==e.substr(0,3).toLowerCase()||(e=" "+e),i(XE(e,f)))},U=function(t){return XE(t,f)},H=function(t,e){var n=t||"",r=!Oe(n,"--"),i=xT(M,r,e);return t=M.substr(e,i-e),z(r?n+t:t),i+1},q=(function(e,i,o,a,s){if(i=i.toLowerCase(),o=U(i in X?i:L(o||a||s||"")),J&&!_&&!1===yT(i)){var u=E[i];if(!u&&T){for(var l=T.length;l--&&(u=T[l],!u.pattern.test(i)););-1===l&&(u=null)}if(!u)return;if(u.validValues&&!(o in u.validValues))return}("name"===i||"id"===i)&&e in vT&&(o in n||o in r)||j[i]&&!mT.isDomSafe(o,e,t)||_&&(i in j||0===i.indexOf("on"))||(m.map[i]=o,m.push({name:i,value:o}))}),W=new RegExp("<(?:(?:!--([\\w\\W]*?)--!?>)|(?:!\\[CDATA\\[([\\w\\W]*?)\\]\\]>)|(?:![Dd][Oo][Cc][Tt][Yy][Pp][Ee]([\\w\\W]*?)>)|(?:!(--)?)|(?:\\?([^\\s\\/<>]+) ?([\\w\\W]*?)[?/]>)|(?:\\/([A-Za-z][A-Za-z0-9\\-_\\:\\.]*)>)|(?:([A-Za-z][A-Za-z0-9\\-_:.]*)(\\s(?:[^'\">]+(?:\"[^\"]*\"|'[^']*'))*[^\"'>]*(?:\"[^\">]*|'[^'>]*)?|\\s*|\\/)>))","g"),G=/([\w:\-]+)(?:\s*=\s*(?:(?:\"((?:[^\"])*)\")|(?:\'((?:[^\'])*)\')|([^>\s]+)))?/g,Y=e.getShortEndedElements(),K=t.self_closing_elements||e.getSelfClosingElements(),X=e.getBoolAttrs(),J=t.validate,Q=t.remove_internals,Z=t.fix_self_closing,tt=e.getSpecialElements(),et=M+">";h=W.exec(et);){var nt=h[0];if(I<h.index&&V(L(M.substr(I,h.index-I))),p=h[7])p=p.toLowerCase(),":"===p.charAt(0)&&(p=p.substr(1)),B(p);else if(p=h[8]){if(h.index+nt.length>M.length){V(L(M.substr(h.index))),I=h.index+nt.length;continue}p=p.toLowerCase(),":"===p.charAt(0)&&(p=p.substr(1)),w=p in Y,Z&&K[p]&&R.length>0&&R[R.length-1].name===p&&B(p);var rt=kT(G,h[9]);if(null!==rt){if("all"===rt){I=_T(e,M,W.lastIndex),W.lastIndex=I;continue}k=!1}if(!J||(x=e.getElementRule(p))){if(k=!0,J&&(E=x.attributes,T=x.attributePatterns),(C=h[9])?(_=-1!==C.indexOf("data-mce-type"),_&&Q&&(k=!1),m=[],m.map={},C.replace(G,function(t,e,n,r,i){return q(p,e,n,r,i),""})):(m=[],m.map={}),J&&!_){if(A=x.attributesRequired,O=x.attributesDefault,P=x.attributesForced,N=x.removeEmptyAttrs,N&&!m.length&&(k=!1),P)for(v=P.length;v--;)S=P[v],b=S.name,D=S.value,"{$uid}"===D&&(D="mce_"+$++),m.map[b]=D,m.push({name:b,value:D});if(O)for(v=O.length;v--;)S=O[v],(b=S.name)in m.map||(D=S.value,"{$uid}"===D&&(D="mce_"+$++),m.map[b]=D,m.push({name:b,value:D}));if(A){for(v=A.length;v--&&!(A[v]in m.map););-1===v&&(k=!1)}if(S=m.map["data-mce-bogus"]){if("all"===S){I=_T(e,M,W.lastIndex),W.lastIndex=I;continue}k=!1}}k&&s(p,m,w)}else k=!1;if(g=tt[p]){g.lastIndex=I=h.index+nt.length,(h=g.exec(M))?(k&&(y=M.substr(I,h.index-I)),I=h.index+h[0].length):(y=M.substr(I),I=M.length),k&&(y.length>0&&V(y,!0),u(p)),W.lastIndex=I;continue}w||(C&&C.indexOf("/")===C.length-1?k&&u(p):R.push({name:p,valid:k}))}else if(p=h[1])z(p);else if(p=h[2]){var it=1===F||t.preserve_cdata||R.length>0&&e.isValidChild(R[R.length-1].name,"#cdata");if(!it){I=H("",h.index+2),W.lastIndex=I;continue}o(p)}else if(p=h[3])c(p);else{if((p=h[4])||"<!"===nt){I=H(p,h.index+nt.length),W.lastIndex=I;continue}if(p=h[5]){if(1!==F){I=H("?",h.index+2),W.lastIndex=I;continue}l(p,h[6])}}I=h.index+nt.length}for(I<M.length&&V(L(M.substr(I))),v=R.length-1;v>=0;v--)p=R[v],p.valid&&u(p.name)};return{parse:function(t,e){void 0===e&&(e="html"),f(KE(t),e)}}};ST.findEndTag=_T;var CT=_n.makeMap,ET=_n.each,TT=_n.explode,AT=_n.extend,OT=function(t,e){void 0===e&&(e=Ls());var n={},r=[],i={},o={};t=t||{},t.validate=!("validate"in t)||t.validate,t.root_name=t.root_name||"body";var a=function(t){for(var n=CT("tr,td,th,tbody,thead,tfoot,table"),r=e.getNonEmptyElements(),i=e.getWhiteSpaceElements(),o=e.getTextBlockElements(),a=e.getSpecialElements(),u=function(t,n){if(void 0===n&&(n=t.parent),a[t.name])t.empty().remove();else{for(var r=t.children(),i=0,o=r;i<o.length;i++){var s=o[i];e.isValidChild(n.name,s.name)||u(s,n)}t.unwrap()}},l=0;l<t.length;l++){var c=t[l],f=void 0,d=void 0,h=void 0;if(c.parent&&!c.fixed)if(o[c.name]&&"li"===c.parent.name){for(var p=c.next;p&&o[p.name];)p.name="li",p.fixed=!0,c.parent.insert(p,c.parent),p=p.next;c.unwrap()}else{var g=[c];for(f=c.parent;f&&!e.isValidChild(f.name,c.name)&&!n[f.name];f=f.parent)g.push(f);if(f&&g.length>1)if(e.isValidChild(f.name,c.name)){g.reverse(),d=s(g[0].clone());for(var m=d,v=0;v<g.length-1;v++){e.isValidChild(m.name,g[v].name)?(h=s(g[v].clone()),m.append(h)):h=m;for(var y=g[v].firstChild;y&&y!==g[v+1];){var b=y.next;h.append(y),y=b}m=h}nT(e,r,i,d)?f.insert(c,g[0],!0):(f.insert(d,g[0],!0),f.insert(c,d)),f=g[0],(nT(e,r,i,f)||tT(f,"br"))&&f.empty().remove()}else u(c);else if(c.parent){if("li"===c.name){var p=c.prev;if(p&&("ul"===p.name||"ol"===p.name)){p.append(c);continue}if((p=c.next)&&("ul"===p.name||"ol"===p.name)){p.insert(c,p.firstChild,!0);continue}c.wrap(s(new Jy("ul",1)));continue}e.isValidChild(c.parent.name,"div")&&e.isValidChild("div",c.name)?c.wrap(s(new Jy("div",1))):u(c)}}}},s=function(t){var e=t.name;if(e in n){var a=i[e];a?a.push(t):i[e]=[t]}for(var s=r.length;s--;){var u=r[s].name;if(u in t.attributes.map){var a=o[u];a?a.push(t):o[u]=[t]}}return t},u=function(t,e){ET(TT(t),function(t){var r=n[t];r||(n[t]=r=[]),r.push(e)})},l=function(){var t=[];for(var e in n)te(n,e)&&t.push({name:e,callbacks:n[e]});return t},c=function(t,e){ET(TT(t),function(t){var n;for(n=0;n<r.length;n++)if(r[n].name===t)return void r[n].callbacks.push(e);r.push({name:t,callbacks:[e]})})},f=function(){return[].concat(r)},d=function(s,u){var l,c,f,d,h,p,g,m,v=[];u=u||{},i={},o={};var y=AT(CT("script,style,head,html,body,title,meta,param"),e.getBlockElements()),b=Is(e),_=e.getNonEmptyElements(),w=e.children,x=t.validate,k="forced_root_block"in u?u.forced_root_block:t.forced_root_block,S=function(t){return!1===t?"":!0===t?"p":t}(k),C=e.getWhiteSpaceElements(),E=/^[ \t\r\n]+/,T=/[ \t\r\n]+$/,A=/[ \t\r\n]+/g,O=/^[ \t\r\n]+$/,P=te(C,u.context)||te(C,t.root_name),N=function(t,e){var r,o=new Jy(t,e);return t in n&&(r=i[t],r?r.push(o):i[t]=[o]),o},D=function(t){for(var n=e.getBlockElements(),r=t.prev;r&&3===r.type;){var i=r.value.replace(T,"");if(i.length>0)return void(r.value=i);var o=r.next;if(o){if(3===o.type&&o.value.length){r=r.prev;continue}if(!n[o.name]&&"script"!==o.name&&"style"!==o.name){r=r.prev;continue}}var a=r.prev;r.remove(),r=a}},M=function(t){for(var n=t;G(n);){if(n.name in b)return nT(e,_,C,n);n=n.parent}return!1},I=ST({validate:x,document:t.document,allow_html_data_urls:t.allow_html_data_urls,allow_svg_data_urls:t.allow_svg_data_urls,allow_script_urls:t.allow_script_urls,allow_conditional_comments:t.allow_conditional_comments,preserve_cdata:t.preserve_cdata,self_closing_elements:function(t){var e={};for(var n in t)"li"!==n&&"p"!==n&&(e[n]=t[n]);return e}(e.getSelfClosingElements()),cdata:function(t){m.append(N("#cdata",4)).value=t},text:function(t,e){var n;P||(t=t.replace(A," "),rT(m.lastChild,y)&&(t=t.replace(E,""))),0!==t.length&&(n=N("#text",3),n.raw=!!e,m.append(n).value=t)},comment:function(t){m.append(N("#comment",8)).value=t},pi:function(t,e){m.append(N(t,7)).value=e,D(m)},doctype:function(t){m.append(N("#doctype",10)).value=t,D(m)},start:function(t,n,i){var a=x?e.getElementRule(t):{};if(a){var s=N(a.outputName||t,1);s.attributes=n,s.shortEnded=i,m.append(s);var u=w[m.name];u&&w[s.name]&&!u[s.name]&&v.push(s);for(var l=r.length;l--;){var c=r[l].name;c in n.map&&(p=o[c],p?p.push(s):o[c]=[s])}y[t]&&D(s),i||(m=s),!P&&C[t]&&(P=!0)}},end:function(n){var r,i,o,a=x?e.getElementRule(n):{};if(a){if(y[n]&&!P){if((r=m.firstChild)&&3===r.type)if(i=r.value.replace(E,""),i.length>0)r.value=i,r=r.next;else for(o=r.next,r.remove(),r=o;r&&3===r.type;)i=r.value,o=r.next,(0===i.length||O.test(i))&&(r.remove(),r=o),r=o;if((r=m.lastChild)&&3===r.type)if(i=r.value.replace(T,""),i.length>0)r.value=i,r=r.prev;else for(o=r.prev,r.remove(),r=o;r&&3===r.type;)i=r.value,o=r.prev,(0===i.length||O.test(i))&&(r.remove(),r=o),r=o}P&&C[n]&&(P=!1);var s=nT(e,_,C,m),l=m.parent;a.paddInEmptyBlock&&s&&M(m)?QE(t,u,y,m):a.removeEmpty&&s?y[m.name]?m.empty().remove():m.unwrap():a.paddEmpty&&(ZE(m)||s)&&QE(t,u,y,m),m=l}}},e),R=m=new Jy(u.context||t.root_name,11);if(I.parse(s,u.format),x&&v.length&&(u.context?u.invalid=!0:a(v)),S&&("body"===R.name||u.isRootContent)&&function(){var n=R.firstChild,r=null,i=function(t){t&&(n=t.firstChild,n&&3===n.type&&(n.value=n.value.replace(E,"")),(n=t.lastChild)&&3===n.type&&(n.value=n.value.replace(T,"")))};if(e.isValidChild(R.name,S.toLowerCase())){for(;n;){var o=n.next;3===n.type||1===n.type&&"p"!==n.name&&!y[n.name]&&!n.attr("data-mce-type")?r?r.append(n):(r=N(S,1),r.attr(t.forced_root_block_attrs),R.insert(r,n),r.append(n)):(i(r),r=null),n=o}i(r)}}(),!u.invalid){for(g in i)if(te(i,g)){for(p=n[g],l=i[g],d=l.length;d--;)l[d].parent||l.splice(d,1);for(c=0,f=p.length;c<f;c++)p[c](l,g,u)}for(c=0,f=r.length;c<f;c++)if(p=r[c],p.name in o){for(l=o[p.name],d=l.length;d--;)l[d].parent||l.splice(d,1);for(d=0,h=p.callbacks.length;d<h;d++)p.callbacks[d](l,p.name,u)}}return R},h={schema:e,addAttributeFilter:c,getAttributeFilters:f,addNodeFilter:u,getNodeFilters:l,filterNode:s,parse:d};return uT(h,t),LE(h,t),h},PT=function(t,e,n){t.addAttributeFilter("data-mce-tabindex",function(t,e){for(var n=t.length;n--;){var r=t[n];r.attr("tabindex",r.attr("data-mce-tabindex")),r.attr(e,null)}}),t.addAttributeFilter("src,href,style",function(t,r){for(var i="data-mce-"+r,o=e.url_converter,a=e.url_converter_scope,s=t.length;s--;){var u=t[s],l=u.attr(i);void 0!==l?(u.attr(r,l.length>0?l:null),u.attr(i,null)):(l=u.attr(r),"style"===r?l=n.serializeStyle(n.parseStyle(l),u.name):o&&(l=o.call(a,l,r,u.name)),u.attr(r,l.length>0?l:null))}}),t.addAttributeFilter("class",function(t){for(var e=t.length;e--;){var n=t[e],r=n.attr("class");r&&(r=n.attr("class").replace(/(?:^|\s)mce-item-\w+(?!\S)/g,""),n.attr("class",r.length>0?r:null))}}),t.addAttributeFilter("data-mce-type",function(t,e,n){for(var r=t.length;r--;){var i=t[r];if("bookmark"===i.attr("data-mce-type")&&!n.cleanup){dt.from(i.firstChild).exists(function(t){return!la(t.value)})?i.unwrap():i.remove()}}}),t.addNodeFilter("noscript",function(t){for(var e=t.length;e--;){var n=t[e].firstChild;n&&(n.value=Ss.decode(n.value))}}),t.addNodeFilter("script,style",function(t,n){for(var r=function(t){return t.replace(/(<!--\[CDATA\[|\]\]-->)/g,"\n").replace(/^[\r\n]*|[\r\n]*$/g,"").replace(/^\s*((<!--)?(\s*\/\/)?\s*<!\[CDATA\[|(<!--\s*)?\/\*\s*<!\[CDATA\[\s*\*\/|(\/\/)?\s*<!--|\/\*\s*<!--\s*\*\/)\s*[\r\n]*/gi,"").replace(/\s*(\/\*\s*\]\]>\s*\*\/(-->)?|\s*\/\/\s*\]\]>(-->)?|\/\/\s*(-->)?|\]\]>|\/\*\s*-->\s*\*\/|\s*-->\s*)\s*$/g,"")},i=t.length;i--;){var o=t[i],a=o.firstChild?o.firstChild.value:"";if("script"===n){var s=o.attr("type");s&&o.attr("type","mce-no/type"===s?null:s.replace(/^mce\-/,"")),"xhtml"===e.element_format&&a.length>0&&(o.firstChild.value="// <![CDATA[\n"+r(a)+"\n// ]]>")}else"xhtml"===e.element_format&&a.length>0&&(o.firstChild.value="\x3c!--\n"+r(a)+"\n--\x3e")}}),t.addNodeFilter("#comment",function(t){for(var r=t.length;r--;){var i=t[r];e.preserve_cdata&&0===i.value.indexOf("[CDATA[")?(i.name="#cdata",i.type=4,i.value=n.decode(i.value.replace(/^\[CDATA\[|\]\]$/g,""))):0===i.value.indexOf("mce:protected ")&&(i.name="#text",i.type=3,i.raw=!0,i.value=unescape(i.value).substr(14))}}),t.addNodeFilter("xml:namespace,input",function(t,e){for(var n=t.length;n--;){var r=t[n];7===r.type?r.remove():1===r.type&&("input"!==e||r.attr("type")||r.attr("type","text"))}}),t.addAttributeFilter("data-mce-type",function(e){wt(e,function(e){"format-caret"===e.attr("data-mce-type")&&(e.isEmpty(t.schema.getNonEmptyElements())?e.remove():e.unwrap())})}),t.addAttributeFilter("data-mce-src,data-mce-href,data-mce-style,data-mce-selected,data-mce-expando,data-mce-type,data-mce-resize,data-mce-placeholder",function(t,e){for(var n=t.length;n--;)t[n].attr(e,null)})},NT=function(t){var e=function(t){return t&&"br"===t.name},n=t.lastChild;if(e(n)){var r=n.prev;e(r)&&(n.remove(),r.remove())}},DT=function(t,e,n){var r,i=t.dom,o=e.cloneNode(!0),a=document.implementation;if(a.createHTMLDocument){var s=a.createHTMLDocument("");_n.each("BODY"===o.nodeName?o.childNodes:[o],function(t){s.body.appendChild(s.importNode(t,!0))}),o="BODY"!==o.nodeName?s.body.firstChild:s.body,r=i.doc,i.doc=s}return cm(t,de(de({},n),{node:o})),r&&(i.doc=r),o},MT=function(t,e){return t&&t.hasEventListeners("PreProcess")&&!e.no_events},IT=function(t,e,n){return MT(t,n)?DT(t,e,n):e},RT=function(t,e,n){-1===_n.inArray(e,n)&&(t.addAttributeFilter(n,function(t,e){for(var n=t.length;n--;)t[n].attr(e,null)}),e.push(n))},$T=function(t,e,n){if(!e.no_events&&t){return fm(t,de(de({},e),{content:n})).content}return n},LT=function(t,e,n){var r=ca(n.getInner?e.innerHTML:t.getOuterHTML(e));return n.selection||ia(En.fromDom(e))?r:_n.trim(r)},jT=function(t,e,n){var r=n.selection?de({forced_root_block:!1},n):n,i=t.parse(e,r);return NT(i),i},FT=function(t,e,n){return gb(t,e).serialize(n)},BT=function(t,e,n,r,i){var o=FT(e,n,r);return $T(t,i,o)},VT=function(t,e){var n=["data-mce-selected"],i=e&&e.dom?e.dom:_l.DOM,o=e&&e.schema?e.schema:Ls(t);t.entity_encoding=t.entity_encoding||"named",t.remove_trailing_brs=!("remove_trailing_brs"in t)||t.remove_trailing_brs;var a=OT(t,o);PT(a,t,i);var s=function(n,r){void 0===r&&(r={});var s=de({format:"html"},r),u=IT(e,n,s),l=LT(i,u,s),c=jT(a,l,s);return"tree"===s.format?c:BT(e,t,o,c,s)};return{schema:o,addNodeFilter:a.addNodeFilter,addAttributeFilter:a.addAttributeFilter,serialize:s,addRules:o.addValidElements,setRules:o.setValidElements,addTempAttr:r(RT,a,n),getTempAttrs:Z(n),getNodeFilters:a.getNodeFilters,getAttributeFilters:a.getAttributeFilters}},zT=function(t,e){var n=VT(t,e);return{schema:n.schema,addNodeFilter:n.addNodeFilter,addAttributeFilter:n.addAttributeFilter,serialize:n.serialize,addRules:n.addRules,setRules:n.setRules,addTempAttr:n.addTempAttr,getTempAttrs:n.getTempAttrs,getNodeFilters:n.getNodeFilters,getAttributeFilters:n.getAttributeFilters}},UT=function(t,e){void 0===e&&(e={});var n=e.format?e.format:"html";return hE(t,e,n)},HT=function(t,e,n){return void 0===n&&(n={}),pE(t,e,n)},qT=_l.DOM,WT=function(t){qT.setStyle(t.id,"display",t.orgDisplay)},GT=function(t){return dt.from(t).each(function(t){return t.destroy()})},YT=function(t){t.contentAreaContainer=t.formElement=t.container=t.editorContainer=null,t.bodyElement=t.contentDocument=t.contentWindow=null,t.iframeElement=t.targetElm=null,t.selection&&(t.selection=t.selection.win=t.selection.dom=t.selection.dom.doc=null)},KT=function(t){var e=t.formElement;e&&(e._mceOldSubmit&&(e.submit=e._mceOldSubmit,e._mceOldSubmit=null),qT.unbind(e,"submit reset",t.formEventDelegate))},XT=function(t){if(!t.removed){var e=t._selectionOverrides,n=t.editorUpload,r=t.getBody(),i=t.getElement();r&&t.save({is_removing:!0}),t.removed=!0,t.unbindAllNativeEvents(),t.hasHiddenInput&&i&&qT.remove(i.nextSibling),dm(t),t.editorManager.remove(t),!t.inline&&r&&WT(t),hm(t),qT.remove(t.getContainer()),GT(e),GT(n),t.destroy()}},JT=function(t,e){var n=t.selection,r=t.dom;if(!t.destroyed){if(!e&&!t.removed)return void t.remove();e||(t.editorManager.off("beforeunload",t._beforeUnload),t.theme&&t.theme.destroy&&t.theme.destroy(),GT(n),GT(r)),KT(t),YT(t),t.destroyed=!0}},QT=function(t,e){return V(t)&&V(e)?ZT(t,e):e},ZT=function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(0===e.length)throw new Error("Can't merge zero objects");for(var r={},i=0;i<e.length;i++){var o=e[i];for(var a in o)te(o,a)&&(r[a]=t(r[a],o[a]))}return r}}(QT),tA="autoresize_on_init,content_editable_state,convert_fonts_to_spans,inline_styles,padd_empty_with_br,block_elements,boolean_attributes,editor_deselector,editor_selector,elements,file_browser_callback_types,filepicker_validator_handler,force_hex_style_colors,force_p_newlines,gecko_spellcheck,images_dataimg_filter,media_scripts,mode,move_caret_before_on_enter_elements,non_empty_elements,self_closing_elements,short_ended_elements,special,spellchecker_select_languages,spellchecker_whitelist,tab_focus,table_responsive_width,text_block_elements,text_inline_elements,toolbar_drawer,types,validate,whitespace_elements,paste_word_valid_elements,paste_retain_style_properties,paste_convert_word_fake_lists".split(","),eA="bbcode,colorpicker,contextmenu,fullpage,legacyoutput,spellchecker,textcolor".split(","),nA="imagetools,toc".split(","),rA=function(t){var e=St(tA,function(e){return te(t,e)}),n=t.forced_root_block;return!1!==n&&""!==n||e.push("forced_root_block (false only)"),$t(e)},iA=function(t){var e=_n.makeMap(t.plugins," "),n=function(t){return te(e,t)},r=o(o([],St(eA,n),!0),Nt(nA,function(t){return n(t)?[t+" (moving to premium)"]:[]}),!0);return $t(r)},oA=function(t,e){var n=rA(t),r=iA(e),i=r.length>0,o=n.length>0,a="mobile"===e.theme;if(i||o||a){var s=a?"\n\nThemes:\n- mobile":"",u=i?"\n\nPlugins:\n- "+r.join("\n- "):"",l=o?"\n\nSettings:\n- "+n.join("\n- "):"";console.warn("The following deprecated features are currently enabled, these will be removed in TinyMCE 6.0. See https://www.tiny.cloud/docs/release-notes/6.0-upcoming-changes/ for more information."+s+u+l)}},aA=function(t,e){return{sections:Z(t),settings:Z(e)}},sA=Je().deviceType,uA=sA.isTouch(),lA=sA.isPhone(),cA=sA.isTablet(),fA=["lists","autolink","autosave"],dA={table_grid:!1,object_resizing:!1,resize:!1},hA=function(t){var e=z(t)?t.join(" "):t,n=_t(B(e)?e.split(" "):[],Ne);return St(n,function(t){return t.length>0})},pA=function(t){return St(t,r(yt,fA))},gA=function(t,e){var n=Kt(e,function(e,n){return yt(t,n)});return aA(n.t,n.f)},mA=function(t,e,n){void 0===n&&(n={});var r=t.sections(),i=Zt(r,e).getOr({});return _n.extend({},n,i)},vA=function(t,e){return te(t.sections(),e)},yA=function(t,e,n){var r=t.sections();return vA(t,e)&&r[e].theme===n},bA=function(t,e){return vA(t,e)?t.sections()[e]:{}},_A=function(t,e){return Zt(t,"toolbar_mode").orThunk(function(){return Zt(t,"toolbar_drawer").map(function(t){return!1===t?"wrap":t})}).getOr(e)},wA=function(t,e,n,r,i){var o={id:e,theme:"silver",toolbar_mode:_A(t,"floating"),plugins:"",document_base_url:n,add_form_submit_trigger:!0,submit_patch:!0,add_unload_trigger:!0,convert_urls:!0,relative_urls:!0,remove_script_host:!0,object_resizing:!0,doctype:"<!DOCTYPE html>",visual:!0,font_size_legacy_values:"xx-small,small,medium,large,x-large,xx-large,300%",forced_root_block:"p",hidden_input:!0,inline_styles:!0,convert_fonts_to_spans:!0,indent:!0,indent_before:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,th,ul,ol,li,dl,dt,dd,area,table,thead,tfoot,tbody,tr,section,summary,article,hgroup,aside,figure,figcaption,option,optgroup,datalist",indent_after:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,th,ul,ol,li,dl,dt,dd,area,table,thead,tfoot,tbody,tr,section,summary,article,hgroup,aside,figure,figcaption,option,optgroup,datalist",entity_encoding:"named",url_converter:i.convertURL,url_converter_scope:i};return de(de({},o),r?dA:{})},xA=function(t,e){var n={resize:!1,toolbar_mode:_A(t,"scrolling"),toolbar_sticky:!1},r={menubar:!1};return de(de(de({},dA),n),e?r:{})},kA=function(t,e){var n=e.external_plugins?e.external_plugins:{};return t&&t.external_plugins?_n.extend({},t.external_plugins,n):n},SA=function(t,e){return[].concat(hA(t)).concat(hA(e))},CA=function(t,e,n,r){return t&&yA(e,"mobile","mobile")?pA(r):t&&vA(e,"mobile")?r:n},EA=function(t,e,n,r){var i=hA(n.forced_plugins),o=hA(r.plugins),a=bA(e,"mobile"),s=a.plugins?hA(a.plugins):o,u=CA(t,e,o,s),l=SA(i,u);if(sn.browser.isIE()&&yt(l,"rtc"))throw new Error("RTC plugin is not supported on IE 11.");return _n.extend(r,{plugins:l.join(" ")})},TA=function(t,e){return t&&vA(e,"mobile")},AA=function(t,e,n,r,i){var o=t?{mobile:xA(i.mobile||{},e)}:{},a=gA(["mobile"],ZT(o,i)),s=_n.extend(n,r,a.settings(),TA(t,a)?mA(a,"mobile"):{},{validate:!0,external_plugins:kA(r,a.settings())});return EA(t,a,r,s)},OA=function(t,e,n,r,i){var o=wA(i,e,n,uA,t),a=AA(lA||cA,lA,o,r,i);return!1!==a.deprecation_warnings&&oA(i,a),a},PA=function(t,e,n){return dt.from(e.settings[n]).filter(t)},NA=function(t){var e={};return"string"==typeof t?wt(t.indexOf("=")>0?t.split(/[;,](?![^=;,]*(?:[;,]|$))/):t.split(","),function(t){var n=t.split("=");n.length>1?e[_n.trim(n[0])]=_n.trim(n[1]):e[_n.trim(n[0])]=_n.trim(n[0])}):e=t,e},DA=function(t){return function(e){return z(e)&&Dt(e,t)}},MA=function(t,e,n,r){var i=e in t.settings?t.settings[e]:n;return"hash"===r?NA(i):"string"===r?PA(B,t,e).getOr(n):"number"===r?PA(K,t,e).getOr(n):"boolean"===r?PA(H,t,e).getOr(n):"object"===r?PA(V,t,e).getOr(n):"array"===r?PA(z,t,e).getOr(n):"string[]"===r?PA(DA(B),t,e).getOr(n):"function"===r?PA(Y,t,e).getOr(n):i},IA=function(){var t={};return{add:function(e,n){t[e]=n},get:function(e){return t[e]?t[e]:{icons:{}}},has:function(e){return te(t,e)}}}(),RA=function(t,e){return e.dom[t]},$A=function(t,e){return parseInt(Ci(e,t),10)},LA=r(RA,"clientWidth"),jA=r(RA,"clientHeight"),FA=r($A,"margin-top"),BA=r($A,"margin-left"),VA=function(t){return t.dom.getBoundingClientRect()},zA=function(t,e,n){var r=LA(t),i=jA(t);return e>=0&&n>=0&&e<=r&&n<=i},UA=function(t,e,n,r){var i=VA(e);return{x:n-(t?i.left+e.dom.clientLeft+BA(e):0),y:r-(t?i.top+e.dom.clientTop+FA(e):0)}},HA=function(t,e,n){var r=En.fromDom(t.getBody()),i=t.inline?r:Kn(r),o=UA(t.inline,i,e,n);return zA(i,o.x,o.y)},qA=function(t){return dt.from(t).map(En.fromDom)},WA=function(t){var e=t.inline?t.getBody():t.getContentAreaContainer();return qA(e).map(Or).getOr(!1)},GA=function(){var t=function(){throw new Error("Theme did not provide a NotificationManager implementation.")};return{open:t,close:t,reposition:t,getArgs:t}},YA=function(t){var e=[],n=function(){var e=t.theme;return e&&e.getNotificationManagerImpl?e.getNotificationManagerImpl():GA()},r=function(){return dt.from(e[0])},i=function(t,e){return!(t.type!==e.type||t.text!==e.text||t.progressBar||t.timeout||e.progressBar||e.timeout)},o=function(){e.length>0&&n().reposition(e)},a=function(t){e.push(t)},s=function(t){Ot(e,function(e){return e===t}).each(function(t){e.splice(t,1)})},u=function(u,l){if(void 0===l&&(l=!0),!t.removed&&WA(t))return l&&t.fire("BeforeOpenNotification",{notification:u}),At(e,function(t){return i(n().getArgs(t),u)}).getOrThunk(function(){t.editorManager.setActive(t);var e=n().open(u,function(){s(e),o(),r().fold(function(){return t.focus()},function(t){return Ev(En.fromDom(t.getEl()))})});return a(e),o(),t.fire("OpenNotification",{notification:de({},e)}),e})},l=function(){r().each(function(t){n().close(t),s(t),o()})},c=Z(e);return function(t){t.on("SkinLoaded",function(){var e=Pd(t);e&&u({text:e,type:"warning",timeout:0},!1),o()}),t.on("show ResizeEditor ResizeWindow NodeChange",function(){Ro.requestAnimationFrame(o)}),t.on("remove",function(){wt(e.slice(),function(t){n().close(t)})})}(t),{open:u,close:l,getNotifications:c}},KA=Fl.PluginManager,XA=Fl.ThemeManager,JA=function(t){var e=[],n=function(){var e=t.theme;return e&&e.getWindowManagerImpl?e.getWindowManagerImpl():S()},r=function(t,e){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return e?e.apply(t,n):void 0}},i=function(e){t.fire("OpenWindow",{dialog:e})},o=function(e){t.fire("CloseWindow",{dialog:e})},a=function(t){e.push(t),i(t)},s=function(n){o(n),e=St(e,function(t){return t!==n}),0===e.length&&t.focus()},u=function(){return dt.from(e[e.length-1])},l=function(e){t.editorManager.setActive(t),oy(t);var n=e();return a(n),n},c=function(t,e){return l(function(){return n().open(t,e,s)})},f=function(t){return l(function(){return n().openUrl(t,s)})},d=function(t,e,i){var o=n();o.alert(t,r(i||o,e))},h=function(t,e,i){var o=n();o.confirm(t,r(i||o,e))},p=function(){u().each(function(t){n().close(t),s(t)})};return t.on("remove",function(){wt(e,function(t){n().close(t)})}),{open:c,openUrl:f,alert:d,confirm:h,close:p}},QA=function(t,e){t.notificationManager.open({type:"error",text:e})},ZA=function(t,e){t._skinLoaded?QA(t,e):t.on("SkinLoaded",function(){QA(t,e)})},tO=function(t,e){ZA(t,jl.translate(["Failed to upload image: {0}",e]))},eO=function(t,e,n){wm(t,e,{message:n}),console.error(n)},nO=function(t,e,n){return n?"Failed to load "+t+": "+n+" from url "+e:"Failed to load "+t+" url: "+e},rO=function(t,e,n){eO(t,"PluginLoadError",nO("plugin",e,n))},iO=function(t,e,n){eO(t,"IconsLoadError",nO("icons",e,n))},oO=function(t,e,n){eO(t,"LanguageLoadError",nO("language",e,n))},aO=function(t,e,n){var r=jl.translate(["Failed to initialize plugin: {0}",e]);wm(t,"PluginLoadError",{message:r}),sO(r,n),ZA(t,r)},sO=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=window.console;r&&(r.error?r.error.apply(r,o([t],e,!1)):r.log.apply(r,o([t],e,!1)))},uO=function(t){return/^[a-z0-9\-]+$/i.test(t)},lO=function(t){return fO(t,xd(t))},cO=function(t){return fO(t,kd(t))},fO=function(t,e){var n=t.editorManager.baseURL+"/skins/content",r=t.editorManager.suffix,i="content"+r+".css",o=!0===t.inline;return _t(e,function(e){return uO(e)&&!o?n+"/"+e+"/"+i:t.documentBaseURI.toAbsolute(e)})},dO=function(t){t.contentCSS=t.contentCSS.concat(lO(t),cO(t))},hO=function(){var t={},e=function(t,e){return{status:t,resultUri:e}},n=function(e){return e in t};return{hasBlobUri:n,getResultUri:function(e){var n=t[e];return n?n.resultUri:null},isPending:function(e){return!!n(e)&&1===t[e].status},isUploaded:function(e){return!!n(e)&&2===t[e].status},markPending:function(n){t[n]=e(1,null)},markUploaded:function(n,r){t[n]=e(2,r)},removeFailed:function(e){delete t[e]},destroy:function(){t={}}}},pO=0,gO=function(){var t=function(){return Math.round(4294967295*Math.random()).toString(36)};return"s"+(new Date).getTime().toString(36)+t()+t()+t()},mO=function(t){return t+pO+++gO()},vO=function(){var t=[],e=function(t){return{"image/jpeg":"jpg","image/jpg":"jpg","image/gif":"gif","image/png":"png","image/apng":"apng","image/avif":"avif","image/svg+xml":"svg","image/webp":"webp","image/bmp":"bmp","image/tiff":"tiff"}[t.toLowerCase()]||"dat"},n=function(t,e,n,i,o){if(B(t)){return r({id:t,name:i,filename:o,blob:e,base64:n})}if(V(t))return r(t);throw new Error("Unknown input type")},r=function(t){if(!t.blob||!t.base64)throw new Error("blob and base64 representations of the image are required for BlobInfo to be created");var n=t.id||mO("blobid"),r=t.name||n,i=t.blob;return{id:Z(n),name:Z(r),filename:Z(t.filename||r+"."+e(i.type)),blob:Z(i),base64:Z(t.base64),blobUri:Z(t.blobUri||URL.createObjectURL(i)),uri:Z(t.uri)}},i=function(e){a(e.id())||t.push(e)},o=function(e){return At(t,e).getOrUndefined()},a=function(t){return o(function(e){return e.id()===t})};return{create:n,add:i,get:a,getByUri:function(t){return o(function(e){return e.blobUri()===t})},getByData:function(t,e){return o(function(n){return n.base64()===t&&n.blob().type===e})},findFirst:o,removeByUri:function(e){t=St(t,function(t){return t.blobUri()!==e||(URL.revokeObjectURL(t.blobUri()),!1)})},destroy:function(){wt(t,function(t){URL.revokeObjectURL(t.blobUri())}),t=[]}}},yO=function(t,e){var n={},r=function(t,e){return t?t.replace(/\/$/,"")+"/"+e.replace(/^\//,""):e},i=function(t,n,i,o){var a=new XMLHttpRequest;a.open("POST",e.url),a.withCredentials=e.credentials,a.upload.onprogress=function(t){o(t.loaded/t.total*100)},a.onerror=function(){i("Image upload failed due to a XHR Transport error. Code: "+a.status)},a.onload=function(){if(a.status<200||a.status>=300)return void i("HTTP Error: "+a.status);var t=JSON.parse(a.responseText);if(!t||"string"!=typeof t.location)return void i("Invalid JSON: "+a.responseText);n(r(e.basePath,t.location))};var s=new FormData;s.append("file",t.blob(),t.filename()),a.send(s)},o=function(){return new Ao(function(t){t([])})},a=function(t,e){return{url:e,blobInfo:t,status:!0}},s=function(t,e,n){return{url:"",blobInfo:t,status:!1,error:{message:e,options:n}}},u=function(t,e){_n.each(n[t],function(t){t(e)}),delete n[t]},l=function(e,n,r){return t.markPending(e.blobUri()),new Ao(function(i){var o,l;try{var c=function(){o&&(o.close(),l=X)},f=function(n){c(),t.markUploaded(e.blobUri(),n),u(e.blobUri(),a(e,n)),i(a(e,n))},d=function(n,r){var o=r||{};c(),t.removeFailed(e.blobUri()),u(e.blobUri(),s(e,n,o)),i(s(e,n,o))};l=function(t){t<0||t>100||dt.from(o).orThunk(function(){return dt.from(r).map(it)}).each(function(e){o=e,e.progressBar.value(t)})},n(e,f,d,l)}catch(t){i(s(e,t.message,{}))}})},c=function(t){return t===i},f=function(t){var e=t.blobUri();return new Ao(function(t){n[e]=n[e]||[],n[e].push(t)})},d=function(n,r){return n=_n.grep(n,function(e){return!t.isUploaded(e.blobUri())}),Ao.all(_n.map(n,function(n){return t.isPending(n.blobUri())?f(n):l(n,e.handler,r)}))},h=function(t,n){return!e.url&&c(e.handler)?o():d(t,n)};return!1===Y(e.handler)&&(e.handler=i),{upload:h}},bO=function(t){return function(){return t.notificationManager.open({text:t.translate("Image uploading..."),type:"info",timeout:-1,progressBar:!0})}},_O=function(t,e){return yO(e,{url:dd(t),basePath:hd(t),credentials:pd(t),handler:gd(t)})},wO=function(t){var e=hO(),n=_O(t,e);return{upload:function(e,r){return void 0===r&&(r=!0),n.upload(e,r?bO(t):void 0)}}},xO=function(t){var e=Cl(null);return t.on("change AddUndo",function(t){e.set(de({},t.level))}),{fireIfChanged:function(){var n=t.undoManager.data;Ft(n).filter(function(t){return!xC(e.get(),t)}).each(function(e){t.setDirty(!0),t.fire("change",{level:e,lastLevel:Lt(n,n.length-2).getOrNull()})})}}},kO=function(t){var e,n,r=vO(),i=hO(),o=[],a=xO(t),s=function(e){return function(n){return t.selection?e(n):[]}},u=function(t){return t+(-1===t.indexOf("?")?"?":"&")+(new Date).getTime()},l=function(t,e,n){var r=0;do{-1!==(r=t.indexOf(e,r))&&(t=t.substring(0,r)+n+t.substr(r+e.length),r+=n.length-e.length+1)}while(-1!==r);return t},c=function(t,e,n){var r='src="'+n+'"'+(n===sn.transparentSrc?' data-mce-placeholder="1"':"");return t=l(t,'src="'+e+'"',r),t=l(t,'data-mce-src="'+e+'"','data-mce-src="'+n+'"')},f=function(e,n){wt(t.undoManager.data,function(t){"fragmented"===t.type?t.fragments=_t(t.fragments,function(t){return c(t,e,n)}):t.content=c(t.content,e,n)})},d=function(e,n){var r=t.convertURL(n,"src");f(e.src,n),t.$(e).attr({src:ud(t)?u(n):n,"data-mce-src":r})},h=function(n){return e||(e=_O(t,i)),v().then(s(function(i){var o=_t(i,function(t){return t.blobInfo});return e.upload(o,bO(t)).then(s(function(e){var o=[],s=_t(e,function(e,n){var a=i[n].blobInfo,s=i[n].image;return e.status&&ld(t)?(r.removeByUri(s.src),zC(t)||d(s,e.url)):e.error&&(e.error.options.remove&&(f(s.getAttribute("src"),sn.transparentSrc),o.push(s)),tO(t,e.error.message)),{element:s,status:e.status,uploadUri:e.url,blobInfo:a}});return s.length>0&&a.fireIfChanged(),o.length>0&&(zC(t)?console.error("Removing images on failed uploads is currently unsupported for RTC"):t.undoManager.transact(function(){wt(o,function(e){t.dom.remove(e),r.removeByUri(e.src)})})),n&&n(s),s}))}))},p=function(e){if(sd(t))return h(e)},g=function(e){if(!1===Dt(o,function(t){return t(e)}))return!1;if(0===e.getAttribute("src").indexOf("data:")){return ad(t)(e)}return!0},m=function(t){o.push(t)},v=function(){return n||(n=YE(i,r)),n.findAll(t.getBody(),g).then(s(function(e){return e=St(e,function(e){return"string"!=typeof e||(ZA(t,e),!1)}),zC(t)||wt(e,function(t){f(t.image.src,t.blobInfo.blobUri()),t.image.src=t.blobInfo.blobUri(),t.image.removeAttribute("data-mce-src")}),e}))},y=function(){r.destroy(),i.destroy(),n=e=null},b=function(e){return e.replace(/src="(blob:[^"]+)"/g,function(e,n){var o=i.getResultUri(n);if(o)return'src="'+o+'"';var a=r.getByUri(n);if(a||(a=Et(t.editorManager.get(),function(t,e){return t||e.editorUpload&&e.editorUpload.blobCache.getByUri(n)},null)),a){return'src="data:'+a.blob().type+";base64,"+a.base64()+'"'}return e})};return t.on("SetContent",function(){sd(t)?p():v()}),t.on("RawSaveContent",function(t){t.content=b(t.content)}),t.on("GetContent",function(t){t.source_view||"raw"===t.format||"tree"===t.format||(t.content=b(t.content))}),t.on("PostRender",function(){t.parser.addNodeFilter("img",function(t){wt(t,function(t){var e=t.attr("src");if(!r.getByUri(e)){var n=i.getResultUri(e);n&&t.attr("src",n)}})})}),{blobCache:r,addFilter:m,uploadImages:h,uploadImagesAuto:p,scanForImages:v,destroy:y}},SO=function(t){var e={valigntop:[{selector:"td,th",styles:{verticalAlign:"top"}}],valignmiddle:[{selector:"td,th",styles:{verticalAlign:"middle"}}],valignbottom:[{selector:"td,th",styles:{verticalAlign:"bottom"}}],alignleft:[{selector:"figure.image",collapsed:!1,classes:"align-left",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"left"},inherit:!1,preview:!1,defaultBlock:"div"},{selector:"img,table,audio,video",collapsed:!1,styles:{float:"left"},preview:"font-family font-size"}],aligncenter:[{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"center"},inherit:!1,preview:"font-family font-size",defaultBlock:"div"},{selector:"figure.image",collapsed:!1,classes:"align-center",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"img,audio,video",collapsed:!1,styles:{display:"block",marginLeft:"auto",marginRight:"auto"},preview:!1},{selector:"table",collapsed:!1,styles:{marginLeft:"auto",marginRight:"auto"},preview:"font-family font-size"}],alignright:[{selector:"figure.image",collapsed:!1,classes:"align-right",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"right"},inherit:!1,preview:"font-family font-size",defaultBlock:"div"},{selector:"img,table,audio,video",collapsed:!1,styles:{float:"right"},preview:"font-family font-size"}],alignjustify:[{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"justify"},inherit:!1,defaultBlock:"div",preview:"font-family font-size"}],bold:[{inline:"strong",remove:"all",preserve_attributes:["class","style"]},{inline:"span",styles:{fontWeight:"bold"}},{inline:"b",remove:"all",preserve_attributes:["class","style"]}],italic:[{inline:"em",remove:"all",preserve_attributes:["class","style"]},{inline:"span",styles:{fontStyle:"italic"}},{inline:"i",remove:"all",preserve_attributes:["class","style"]}],underline:[{inline:"span",styles:{textDecoration:"underline"},exact:!0},{inline:"u",remove:"all",preserve_attributes:["class","style"]}],strikethrough:[{inline:"span",styles:{textDecoration:"line-through"},exact:!0},{inline:"strike",remove:"all",preserve_attributes:["class","style"]},{inline:"s",remove:"all",preserve_attributes:["class","style"]}],forecolor:{inline:"span",styles:{color:"%value"},links:!0,remove_similar:!0,clear_child_styles:!0},hilitecolor:{inline:"span",styles:{backgroundColor:"%value"},links:!0,remove_similar:!0,clear_child_styles:!0},fontname:{inline:"span",toggle:!1,styles:{fontFamily:"%value"},clear_child_styles:!0},fontsize:{inline:"span",toggle:!1,styles:{fontSize:"%value"},clear_child_styles:!0},lineheight:{selector:"h1,h2,h3,h4,h5,h6,p,li,td,th,div",defaultBlock:"p",styles:{lineHeight:"%value"}},fontsize_class:{inline:"span",attributes:{class:"%value"}},blockquote:{block:"blockquote",wrapper:!0,remove:"all"},subscript:{inline:"sub"},superscript:{inline:"sup"},code:{inline:"code"},link:{inline:"a",selector:"a",remove:"all",split:!0,deep:!0,onmatch:function(t,e,n){return Hr(t)&&t.hasAttribute("href")},onformat:function(e,n,r){_n.each(r,function(n,r){t.setAttrib(e,r,n)})}},lang:{inline:"span",clear_child_styles:!0,remove_similar:!0,attributes:{lang:"%value","data-mce-lang":function(t){var e;return null!==(e=null===t||void 0===t?void 0:t.customValue)&&void 0!==e?e:null}}},removeformat:[{selector:"b,strong,em,i,font,u,strike,s,sub,sup,dfn,code,samp,kbd,var,cite,mark,q,del,ins,small",remove:"all",split:!0,expand:!1,block_expand:!0,deep:!0},{selector:"span",attributes:["style","class"],remove:"empty",split:!0,expand:!1,deep:!0},{selector:"*",attributes:["style","class"],split:!1,expand:!1,deep:!0}]};return _n.each("p h1 h2 h3 h4 h5 h6 div address pre dt dd samp".split(/\s/),function(t){e[t]={block:t,remove:"all"}}),e},CO=function(t){var e={},n=function(t){return G(t)?e[t]:e},r=function(t){return te(e,t)},i=function(t,n){t&&(B(t)?(z(n)||(n=[n]),wt(n,function(t){q(t.deep)&&(t.deep=!pg(t)),q(t.split)&&(t.split=!pg(t)||gg(t)),q(t.remove)&&pg(t)&&!gg(t)&&(t.remove="none"),pg(t)&&gg(t)&&(t.mixed=!0,t.block_expand=!0),B(t.classes)&&(t.classes=t.classes.split(/\s+/))}),e[t]=n):Ht(t,function(t,e){i(e,t)}))},o=function(t){return t&&e[t]&&delete e[t],e};return i(SO(t.dom)),i(Id(t)),{get:n,has:r,register:i,unregister:o}},EO=_n.each,TO=_l.DOM,AO=function(t,e){var n,r,i,o=e&&e.schema||Ls({}),a=function(t,e){e.classes.length&&TO.addClass(t,e.classes.join(" ")),TO.setAttribs(t,e.attrs)},s=function(t){r="string"==typeof t?{name:t,classes:[],attrs:{}}:t;var e=TO.create(r.name);return a(e,r),e},u=function(t,e){var n="string"!=typeof t?t.nodeName.toLowerCase():t,r=o.getElementRule(n),i=r&&r.parentsRequired;return!(!i||!i.length)&&(e&&-1!==_n.inArray(i,e)?e:i[0])},l=function(t,e,n){var r,i,o=e.length>0&&e[0],a=o&&o.name,c=u(t,a);if(c)a===c?(i=e[0],e=e.slice(1)):i=c;else if(o)i=e[0],e=e.slice(1);else if(!n)return t;return i&&(r=s(i),r.appendChild(t)),n&&(r||(r=TO.create("div"),r.appendChild(t)),_n.each(n,function(e){var n=s(e);r.insertBefore(n,t)})),l(r,e,i&&i.siblings)};return t&&t.length?(r=t[0],n=s(r),i=TO.create("div"),i.appendChild(l(n,t.slice(1),r.siblings)),i):""},OO=function(t){var e,n={classes:[],attrs:{}};return t=n.selector=_n.trim(t),"*"!==t&&(e=t.replace(/(?:([#\.]|::?)([\w\-]+)|(\[)([^\]]+)\]?)/g,function(t,e,r,i,o){switch(e){case"#":n.attrs.id=r;break;case".":n.classes.push(r);break;case":":-1!==_n.inArray("checked disabled enabled read-only required".split(" "),r)&&(n.attrs[r]=r)}if("["===i){var a=o.match(/([\w\-]+)(?:\=\"([^\"]+))?/);a&&(n.attrs[a[1]]=a[2])}return""})),n.name=e||"div",n},PO=function(t){return t&&"string"==typeof t?(t=t.split(/\s*,\s*/)[0],t=t.replace(/\s*(~\+|~|\+|>)\s*/g,"$1"),_n.map(t.split(/(?:>|\s+(?![^\[\]]+\]))/),function(t){var e=_n.map(t.split(/(?:~\+|~|\+)/),OO),n=e.pop();return e.length&&(n.siblings=e),n}).reverse()):[]},NO=function(t,e){var n,r,i,o="",a=Rd(t);if(""===a)return"";var s=function(t){return t.replace(/%(\w+)/g,"")};if("string"==typeof e){if(!(e=t.formatter.get(e)))return;e=e[0]}if("preview"in e){var u=Zt(e,"preview");if(li(u,!1))return"";a=u.getOr(a)}n=e.block||e.inline||"span";var l=PO(e.selector);l.length?(l[0].name||(l[0].name=n),n=e.selector,r=AO(l,t)):r=AO([n],t);var c=TO.select(n,r)[0]||r.firstChild;return EO(e.styles,function(t,e){var n=s(t);n&&TO.setStyle(c,e,n)}),EO(e.attributes,function(t,e){var n=s(t);n&&TO.setAttrib(c,e,n)}),EO(e.classes,function(t){var e=s(t);TO.hasClass(c,e)||TO.addClass(c,e)}),t.fire("PreviewFormats"),TO.setStyles(r,{position:"absolute",left:-65535}),t.getBody().appendChild(r),i=TO.getStyle(t.getBody(),"fontSize",!0),i=/px$/.test(i)?parseInt(i,10):0,EO(a.split(" "),function(e){var n=TO.getStyle(c,e,!0);if(!("background-color"===e&&/transparent|rgba\s*\([^)]+,\s*0\)/.test(n)&&(n=TO.getStyle(t.getBody(),e,!0),"#ffffff"===TO.toHex(n).toLowerCase())||"color"===e&&"#000000"===TO.toHex(n).toLowerCase())){if("font-size"===e&&/em|%$/.test(n)){if(0===i)return;n=parseFloat(n)/(/%$/.test(n)?100:1)*i+"px"}"border"===e&&n&&(o+="padding:0 2px;"),o+=e+":"+n+";"}}),t.fire("AfterPreviewFormats"),TO.remove(r),o},DO=function(t){t.addShortcut("meta+b","","Bold"),t.addShortcut("meta+i","","Italic"),t.addShortcut("meta+u","","Underline");for(var e=1;e<=6;e++)t.addShortcut("access+"+e,"",["FormatBlock",!1,"h"+e]);t.addShortcut("access+7","",["FormatBlock",!1,"p"]),t.addShortcut("access+8","",["FormatBlock",!1,"div"]),t.addShortcut("access+9","",["FormatBlock",!1,"address"])},MO=function(t){var e=CO(t),n=Cl(null);return DO(t),yk(t),{get:e.get,has:e.has,register:e.register,unregister:e.unregister,apply:function(e,n,r){lE(t,e,n,r)},remove:function(e,n,r,i){cE(t,e,n,r,i)},toggle:function(e,n,r){fE(t,e,n,r)},match:function(e,n,r,i){return iE(t,e,n,r,i)},closest:function(e){return uE(t,e)},matchAll:function(e,n){return oE(t,e,n)},matchNode:function(e,n,r,i){return aE(t,e,n,r,i)},canApply:function(e){return sE(t,e)},formatChanged:function(e,r,i,o){return dE(t,n,e,r,i,o)},getCssText:r(NO,t)}},IO=function(t){switch(t.toLowerCase()){case"undo":case"redo":case"mcerepaint":case"mcefocus":return!0;default:return!1}},RO=function(t,e,n){var r=Cl(!1),i=function(t){SC(e,!1,n),e.add({},t)};t.on("init",function(){e.add()}),t.on("BeforeExecCommand",function(t){var r=t.command;IO(r)||(CC(e,n),e.beforeChange())}),t.on("ExecCommand",function(t){var e=t.command;IO(e)||i(t)}),t.on("ObjectResizeStart cut",function(){e.beforeChange()}),t.on("SaveContent ObjectResized blur",i),t.on("dragend",i),t.on("keyup",function(n){var o=n.keyCode;n.isDefaultPrevented()||((o>=33&&o<=36||o>=37&&o<=40||45===o||n.ctrlKey)&&(i(),t.nodeChanged()),46!==o&&8!==o||t.nodeChanged(),r.get()&&e.typing&&!1===xC(mC(t),e.data[0])&&(!1===t.isDirty()&&(t.setDirty(!0),t.fire("change",{level:e.data[0],lastLevel:null})),t.fire("TypingUndo"),r.set(!1),t.nodeChanged()))}),t.on("keydown",function(t){var o=t.keyCode;if(!t.isDefaultPrevented()){if(o>=33&&o<=36||o>=37&&o<=40||45===o)return void(e.typing&&i(t));var a=t.ctrlKey&&!t.altKey||t.metaKey;!(o<16||o>20)||224===o||91===o||e.typing||a||(e.beforeChange(),SC(e,!0,n),e.add({},t),r.set(!0))}}),t.on("mousedown",function(t){e.typing&&i(t)});var o=function(t){return"insertReplacementText"===t.inputType},a=function(t){return"insertText"===t.inputType&&null===t.data},s=function(t){return"insertFromPaste"===t.inputType||"insertFromDrop"===t.inputType};t.on("input",function(t){t.inputType&&(o(t)||a(t)||s(t))&&i(t)}),t.on("AddUndo Undo Redo ClearUndos",function(e){e.isDefaultPrevented()||t.nodeChanged()})},$O=function(t){t.addShortcut("meta+z","","Undo"),t.addShortcut("meta+y,meta+shift+z","","Redo")},LO=function(t){var e=Vl(),n=Cl(0),r=Cl(0),i={data:[],typing:!1,beforeChange:function(){GC(t,n,e)},add:function(o,a){return YC(t,i,r,n,e,o,a)},undo:function(){return KC(t,i,n,r)},redo:function(){return XC(t,r,i.data)},clear:function(){JC(t,i,r)},reset:function(){QC(t,i)},hasUndo:function(){return ZC(t,i,r)},hasRedo:function(){return tE(t,i,r)},transact:function(e){return eE(t,i,n,e)},ignore:function(e){nE(t,n,e)},extra:function(e,n){rE(t,i,r,e,n)}};return zC(t)||RO(t,i,n),$O(t),i},jO=[9,27,Sm.HOME,Sm.END,19,20,44,144,145,33,34,45,16,17,18,91,92,93,Sm.DOWN,Sm.UP,Sm.LEFT,Sm.RIGHT].concat(sn.browser.isFirefox()?[224]:[]),FO=function(t){return"keydown"===t.type||"keyup"===t.type},BO=function(t){var e=t.keyCode;return e===Sm.BACKSPACE||e===Sm.DELETE},VO=function(t){if(FO(t)){var e=t.keyCode;return!BO(t)&&(Sm.metaKeyPressed(t)||t.altKey||e>=112&&e<=123||yt(jO,e))}return!1},zO=function(t){return FO(t)&&!(BO(t)||"keyup"===t.type&&229===t.keyCode)},UO=function(t,e,n){if(Qa(En.fromDom(e),!1)){var r=""===n,i=e.firstElementChild;return!i||!t.getStyle(e.firstElementChild,"padding-left")&&!t.getStyle(e.firstElementChild,"padding-right")&&(r?!t.isBlock(i):n===i.nodeName.toLowerCase())}return!1},HO=function(t){var e=t.dom,n=Qf(t),r=Ad(t),i=function(o,a){if(!VO(o)){var s=t.getBody(),u=!zO(o)&&UO(e,s,n);(""!==e.getAttrib(s,"data-mce-placeholder")!==u||a)&&(e.setAttrib(s,"data-mce-placeholder",u?r:null),e.setAttrib(s,"aria-placeholder",u?r:null),_m(t,u),t.on(u?"keydown":"keyup",i),t.off(u?"keyup":"keydown",i))}};r&&t.on("init",function(e){i(e,!0),t.on("change SetContent ExecCommand",i),t.on("paste",function(e){return Ro.setEditorTimeout(t,function(){return i(e)})})})},qO=/[\u0591-\u07FF\uFB1D-\uFDFF\uFE70-\uFEFC]/,WO=function(t){return qO.test(t)},GO=function(t,e){return Pn(En.fromDom(e),Cd(t))},YO=function(t){return"rtl"===_l.DOM.getStyle(t,"direction",!0)||WO(t.textContent)},KO=function(t,e,n){return St(_l.DOM.getParents(n.container(),"*",e),t)},XO=function(t,e,n){var r=KO(t,e,n);return dt.from(r[r.length-1])},JO=function(t,e,n){var r=$h(e,t),i=$h(n,t);return r&&r===i},QO=function(t){return ya(t)||ba(t)},ZO=function(t,e){if(!e)return e;var n=e.container(),r=e.offset();return t?pa(n)?Zr(n.nextSibling)?sf(n.nextSibling,0):sf.after(n):ya(e)?sf(n,r+1):e:pa(n)?Zr(n.previousSibling)?sf(n.previousSibling,n.previousSibling.data.length):sf.before(n):ba(e)?sf(n,r-1):e},tP=r(ZO,!0),eP=r(ZO,!1),nP=function(t){return function(e){return In(t,En.fromDom(e.dom.parentNode))}},rP=function(t){return Zo(t)||ea(t)},iP=function(t,e){return Ln(t,e)?xo(e,rP,nP(t)):dt.none()},oP=function(t){var e=t.getBody(),n=e.firstChild&&t.dom.isBlock(e.firstChild)?e.firstChild:e;t.selection.setCursorLocation(n,0)},aP=function(t){t.dom.isEmpty(t.getBody())&&(t.setContent(""),oP(t))},sP=function(t,e,n){return fi(kp(n),Sp(n),function(r,i){var o=ZO(!0,r),a=ZO(!1,i),s=ZO(!1,e);return t?wp(n,s).exists(function(t){return t.isEqual(a)&&e.isEqual(o)}):xp(n,s).exists(function(t){return t.isEqual(o)&&e.isEqual(a)})}).getOr(!0)},uP=function(t,e){return{block:t,position:e}},lP=function(t,e){return{from:t,to:e}},cP=function(t,e){var n=En.fromDom(t),r=En.fromDom(e.container());return iP(n,r).map(function(t){return uP(t,e)})},fP=function(t){return!1===In(t.from.block,t.to.block)},dP=function(t){return Jn(t.from.block).bind(function(e){return Jn(t.to.block).filter(function(t){return In(e,t)})}).isSome()},hP=function(t){return!1===ai(t.from.block.dom)&&!1===ai(t.to.block.dom)},pP=function(t,e,n){return ri(n.position.getNode())&&!1===Qa(n.block)?_p(!1,n.block.dom).bind(function(r){return r.isEqual(n.position)?vp(e,t,r).bind(function(e){return cP(t,e)}):dt.some(n)}).getOr(n):n},gP=function(t,e,n){var r=cP(t,sf.fromRangeStart(n)),i=r.bind(function(n){return vp(e,t,n.position).bind(function(n){return cP(t,n).map(function(n){return pP(t,e,n)})})});return fi(r,i,lP).filter(function(t){return fP(t)&&dP(t)&&hP(t)})},mP=function(t,e,n){return n.collapsed?gP(t,e,n):dt.none()},vP=function(t){var e=ir(t);return Ot(e,Ko).fold(Z(e),function(t){return e.slice(0,t)})},yP=function(t){var e=vP(t);return wt(e,Tr),e},bP=function(t,e){var n=qb(e,t);return At(n.reverse(),function(t){return Qa(t)}).each(Tr)},_P=function(t){return 0===St(nr(t),function(t){return!Qa(t)}).length},wP=function(t,e,n,r){if(Qa(n))return Bb(n),kp(n.dom);_P(r)&&Qa(e)&&br(r,En.fromTag("br"));var i=xp(n.dom,sf.before(r.dom));return wt(yP(e),function(t){br(r,t)}),bP(t,e),i},xP=function(t,e,n){if(Qa(n))return Tr(n),Qa(e)&&Bb(e),kp(e.dom);var r=Sp(n.dom);return wt(yP(e),function(t){xr(n,t)}),bP(t,e),r},kP=function(t,e){var n=qb(e,t);return dt.from(n[n.length-1])},SP=function(t,e){return Ln(e,t)?kP(e,t):dt.none()},CP=function(t,e){_p(t,e.dom).map(function(t){return t.getNode()}).map(En.fromDom).filter(Qo).each(Tr)},EP=function(t,e,n){return CP(!0,e),CP(!1,n),SP(e,n).fold(r(xP,t,e,n),r(wP,t,e,n))},TP=function(t,e,n,r){return e?EP(t,r,n):EP(t,n,r)},AP=function(t,e){var n=En.fromDom(t.getBody()),r=mP(n.dom,e,t.selection.getRng()).bind(function(t){return TP(n,e,t.from.block,t.to.block)});return r.each(function(e){t.selection.setRng(e.toRange())}),r.isSome()},OP=function(t,e){var n=e.getRng();return fi(iP(t,En.fromDom(n.startContainer)),iP(t,En.fromDom(n.endContainer)),function(r,i){return!1===In(r,i)&&(n.deleteContents(),TP(t,!0,r,i).each(function(t){e.setRng(t.toRange())}),!0)}).getOr(!1)},PP=function(t,e){var n=En.fromDom(e),i=r(In,t);return wo(n,ra,i).isSome()},NP=function(t,e){return PP(t,e.startContainer)||PP(t,e.endContainer)},DP=function(t,e){var n=xp(t.dom,sf.fromRangeStart(e)).isNone(),r=wp(t.dom,sf.fromRangeEnd(e)).isNone();return!NP(t,e)&&n&&r},MP=function(t){return t.setContent(""),t.selection.setCursorLocation(),!0},IP=function(t){var e=En.fromDom(t.getBody()),n=t.selection.getRng();return DP(e,n)?MP(t):OP(e,t.selection)},RP=function(t,e){return!t.selection.isCollapsed()&&IP(t)},$P=oi,LP=ai,jP=function(t,e,n,r,i){return dt.from(e._selectionOverrides.showCaret(t,n,r,i))},FP=function(t){var e=t.ownerDocument.createRange();return e.selectNode(t),e},BP=function(t,e){return t.fire("BeforeObjectSelected",{target:e}).isDefaultPrevented()?dt.none():dt.some(FP(e))},VP=function(t,e,n){var r=Hh(1,t.getBody(),e),i=sf.fromRangeStart(r),o=i.getNode();if(kh(o))return jP(1,t,o,!i.isAtEnd(),!1);var a=i.getNode(!0);if(kh(a))return jP(1,t,a,!1,!1);var s=t.dom.getParent(i.getNode(),function(t){return LP(t)||$P(t)});return kh(s)?jP(1,t,s,!1,n):dt.none()},zP=function(t,e,n){return e.collapsed?VP(t,e,n).getOr(e):e},UP=function(t){return $b(t)||Db(t)},HP=function(t){return Lb(t)||Mb(t)},qP=function(t,e){Zr(e)&&0===e.data.length&&t.remove(e)},WP=function(t,e,n,r,i,o){return jP(r,t,o.getNode(!i),i,!0).each(function(n){if(e.collapsed){var r=e.cloneRange();i?r.setEnd(n.startContainer,n.startOffset):r.setStart(n.endContainer,n.endOffset),r.deleteContents()}else e.deleteContents();t.selection.setRng(n)}),qP(t.dom,n),!0},GP=function(t,e){var n=t.selection.getRng();if(!Zr(n.commonAncestorContainer))return!1;var i=e?uf.Forwards:uf.Backwards,o=lp(t.getBody()),a=r(Kh,e?o.next:o.prev),s=e?UP:HP,u=Wh(i,t.getBody(),n),l=ZO(e,a(u));if(!l||!Xh(u,l))return!1;if(s(l))return WP(t,n,u.getNode(),i,e,l);var c=a(l);return!!(c&&s(c)&&Xh(l,c))&&WP(t,n,u.getNode(),i,e,c)},YP=function(t,e){return GP(t,e)},KP=function(t){return ra(En.fromDom(t))||ea(En.fromDom(t))},XP=Zi.generate([{remove:["element"]},{moveToElement:["element"]},{moveToPosition:["position"]}]),JP=function(t,e){var n=e.getNode(!1===t),r=t?"after":"before";return Hr(n)&&n.getAttribute("data-mce-caret")===r},QP=function(t,e,n,r){var i=function(e){return Jo(En.fromDom(e))&&!Lh(n,r,t)};return qh(!e,n).fold(function(){return qh(e,r).fold(at,i)},i)},ZP=function(t,e,n,r){var i=r.getNode(!1===e);return iP(En.fromDom(t),En.fromDom(n.getNode())).map(function(t){return Qa(t)?XP.remove(t.dom):XP.moveToElement(i)}).orThunk(function(){return dt.some(XP.moveToElement(i))})},tN=function(t,e,n){return vp(e,t,n).bind(function(r){return KP(r.getNode())?dt.none():QP(t,e,n,r)?dt.none():e&&ai(r.getNode())?ZP(t,e,n,r):!1===e&&ai(r.getNode(!0))?ZP(t,e,n,r):e&&Lb(n)?dt.some(XP.moveToPosition(r)):!1===e&&$b(n)?dt.some(XP.moveToPosition(r)):dt.none()})},eN=function(t,e){return t&&ai(e.nextSibling)?dt.some(XP.moveToElement(e.nextSibling)):!1===t&&ai(e.previousSibling)?dt.some(XP.moveToElement(e.previousSibling)):dt.none()},nN=function(t,e,n){return n.fold(function(t){return dt.some(XP.remove(t))},function(t){return dt.some(XP.moveToElement(t))},function(n){return Lh(e,n,t)?dt.none():dt.some(XP.moveToPosition(n))})},rN=function(t,e,n){return JP(e,n)?eN(e,n.getNode(!1===e)).fold(function(){return tN(t,e,n)},dt.some):tN(t,e,n).bind(function(e){return nN(t,n,e)})},iN=function(t,e,n){var r=Hh(e?1:-1,t,n),i=sf.fromRangeStart(r),o=En.fromDom(t);return!1===e&&Lb(i)?dt.some(XP.remove(i.getNode(!0))):e&&$b(i)?dt.some(XP.remove(i.getNode())):!1===e&&$b(i)&&r_(o,i)?i_(o,i).map(function(t){return XP.remove(t.getNode())}):e&&Lb(i)&&n_(o,i)?o_(o,i).map(function(t){return XP.remove(t.getNode())}):rN(t,e,i)},oN=function(t,e){return function(n){return t._selectionOverrides.hideFakeCaret(),J_(t,e,En.fromDom(n)),!0}},aN=function(t,e){return function(n){var r=e?sf.before(n):sf.after(n);return t.selection.setRng(r.toRange()),!0}},sN=function(t){return function(e){return t.selection.setRng(e.toRange()),!0}},uN=function(t,e){return dt.from(um(t.getBody(),e))},lN=function(t,e){var n=t.selection.getNode();return uN(t,n).filter(ai).fold(function(){return iN(t.getBody(),e,t.selection.getRng()).exists(function(n){return n.fold(oN(t,e),aN(t,e),sN(t))})},st)},cN=function(t){wt(nc(t,".mce-offscreen-selection"),Tr)},fN=function(t,e){var n=t.selection.getNode();if(ai(n)&&!si(n)){return uN(t,n.parentNode).filter(ai).fold(function(){return cN(En.fromDom(t.getBody())),J_(t,e,En.fromDom(t.selection.getNode())),aP(t),!0},st)}return!1},dN=function(t){var e=t.dom,n=t.selection,r=um(t.getBody(),n.getNode());if(oi(r)&&e.isBlock(r)&&e.isEmpty(r)){var i=e.create("br",{"data-mce-bogus":"1"});e.setHTML(r,""),r.appendChild(i),n.setRng(sf.before(i).toRange())}return!0},hN=function(t,e){return t.selection.isCollapsed()?lN(t,e):fN(t,e)},pN=function(t,e){var n=sf.fromRangeStart(t.selection.getRng());return vp(e,t.getBody(),n).filter(function(t){return e?Pb(t):Nb(t)}).bind(function(t){return dt.from(jh(e?0:-1,t))}).exists(function(e){return t.selection.select(e),!0})},gN=function(t,e){return!!t.selection.isCollapsed()&&pN(t,e)},mN=Zr,vN=function(t){return mN(t)&&t.data[0]===ua},yN=function(t){return mN(t)&&t.data[t.data.length-1]===ua},bN=function(t){return t.ownerDocument.createTextNode(ua)},_N=function(t){if(mN(t.previousSibling))return yN(t.previousSibling)?t.previousSibling:(t.previousSibling.appendData(ua),t.previousSibling);if(mN(t))return vN(t)?t:(t.insertData(0,ua),t);var e=bN(t);return t.parentNode.insertBefore(e,t),e},wN=function(t){if(mN(t.nextSibling))return vN(t.nextSibling)?t.nextSibling:(t.nextSibling.insertData(0,ua),t.nextSibling);if(mN(t))return yN(t)?t:(t.appendData(ua),t);var e=bN(t);return t.nextSibling?t.parentNode.insertBefore(e,t.nextSibling):t.parentNode.appendChild(e),e},xN=function(t,e){return t?_N(e):wN(e)},kN=r(xN,!0),SN=r(xN,!1),CN=function(t,e){return Zr(t.container())?xN(e,t.container()):xN(e,t.getNode())},EN=function(t,e){var n=e.get();return n&&t.container()===n&&pa(n)},TN=function(t,e){return e.fold(function(e){ph(t.get());var n=kN(e);return t.set(n),dt.some(sf(n,n.length-1))},function(e){return kp(e).map(function(e){if(EN(e,t))return sf(t.get(),1);ph(t.get());var n=CN(e,!0);return t.set(n),sf(n,1)})},function(e){return Sp(e).map(function(e){if(EN(e,t))return sf(t.get(),t.get().length-1);ph(t.get());var n=CN(e,!1);return t.set(n),sf(n,n.length-1)})},function(e){ph(t.get());var n=SN(e);return t.set(n),dt.some(sf(n,1))})},AN=function(t,e){for(var n=0;n<t.length;n++){var r=t[n].apply(null,e);if(r.isSome())return r}return dt.none()},ON=Zi.generate([{before:["element"]},{start:["element"]},{end:["element"]},{after:["element"]}]),PN=function(t,e){var n=$h(e,t);return n||t},NN=function(t,e,n){var i=tP(n),o=PN(e,i.container());return XO(t,o,i).fold(function(){return wp(o,i).bind(r(XO,t,o)).map(function(t){return ON.before(t)})},dt.none)},DN=function(t,e){return null===Ep(t,e)},MN=function(t,e,n){return XO(t,e,n).filter(r(DN,e))},IN=function(t,e,n){var r=eP(n);return MN(t,e,r).bind(function(t){return xp(t,r).isNone()?dt.some(ON.start(t)):dt.none()})},RN=function(t,e,n){var r=tP(n);return MN(t,e,r).bind(function(t){return wp(t,r).isNone()?dt.some(ON.end(t)):dt.none()})},$N=function(t,e,n){var i=eP(n),o=PN(e,i.container());return XO(t,o,i).fold(function(){return xp(o,i).bind(r(XO,t,o)).map(function(t){return ON.after(t)})},dt.none)},LN=function(t){return!1===YO(FN(t))},jN=function(t,e,n){return AN([NN,IN,RN,$N],[t,e,n]).filter(LN)},FN=function(t){return t.fold(tt,tt,tt,tt)},BN=function(t){return t.fold(Z("before"),Z("start"),Z("end"),Z("after"))},VN=function(t){return t.fold(ON.before,ON.before,ON.after,ON.after)},zN=function(t){return t.fold(ON.start,ON.start,ON.end,ON.end)},UN=function(t,e){return BN(t)===BN(e)&&FN(t)===FN(e)},HN=function(t,e,n,r,i,o){return fi(XO(e,n,r),XO(e,n,i),function(e,r){return e!==r&&JO(n,e,r)?ON.after(t?e:r):o}).getOr(o)},qN=function(t,e){return t.fold(st,function(t){return!UN(t,e)})},WN=function(t,e,n,i,o){var a=ZO(t,o);return vp(t,n,a).map(r(ZO,t)).fold(function(){return i.map(VN)},function(o){return jN(e,n,o).map(r(HN,t,e,n,a,o)).filter(r(qN,i))}).filter(LN)},GN=function(t,e){return t?e.fold(J(dt.some,ON.start),dt.none,J(dt.some,ON.after),dt.none):e.fold(dt.none,J(dt.some,ON.before),dt.none,J(dt.some,ON.end))},YN=function(t,e,n,i){var o=ZO(t,i),a=jN(e,n,o);return jN(e,n,o).bind(r(GN,t)).orThunk(function(){return WN(t,e,n,a,i)})};r(YN,!1),r(YN,!0);var KN,XN=function(t){return Y(t.selection.getSel().modify)},JN=function(t,e,n){var r=t?1:-1;return e.setRng(sf(n.container(),n.offset()+r).toRange()),e.getSel().modify("move",t?"forward":"backward","word"),!0},QN=function(t,e){var n=e.selection.getRng(),r=t?sf.fromRangeEnd(n):sf.fromRangeStart(n);return!!XN(e)&&(t&&ya(r)?JN(!0,e.selection,r):!(t||!ba(r))&&JN(!1,e.selection,r))};!function(t){t[t.Br=0]="Br",t[t.Block=1]="Block",t[t.Wrap=2]="Wrap",t[t.Eol=3]="Eol"}(KN||(KN={}));var ZN,tD=function(t,e){return t===uf.Backwards?Mt(e):e},eD=function(t,e,n){return t===uf.Forwards?e.next(n):e.prev(n)},nD=function(t,e,n,r){return ri(r.getNode(e===uf.Forwards))?KN.Br:!1===Lh(n,r)?KN.Block:KN.Wrap},rD=function(t,e,n,r){for(var i=lp(n),o=r,a=[];o;){var s=eD(e,i,o);if(!s)break;if(ri(s.getNode(!1)))return e===uf.Forwards?{positions:tD(e,a).concat([s]),breakType:KN.Br,breakAt:dt.some(s)}:{positions:tD(e,a),breakType:KN.Br,breakAt:dt.some(s)};if(s.isVisible()){if(t(o,s)){var u=nD(0,e,o,s);return{positions:tD(e,a),breakType:u,breakAt:dt.some(s)}}a.push(s),o=s}else o=s}return{positions:tD(e,a),breakType:KN.Eol,breakAt:dt.none()}},iD=function(t,e,n,r){return e(n,r).breakAt.map(function(r){var i=e(n,r).positions;return t===uf.Backwards?i.concat(r):[r].concat(i)}).getOr([])},oD=function(t,e){return Et(t,function(t,n){return t.fold(function(){return dt.some(n)},function(r){return fi(jt(r.getClientRects()),jt(n.getClientRects()),function(t,i){var o=Math.abs(e-t.left);return Math.abs(e-i.left)<=o?n:r}).or(t)})},dt.none())},aD=function(t,e){return jt(e.getClientRects()).bind(function(e){return oD(t,e.left)})},sD=r(rD,sf.isAbove,-1),uD=r(rD,sf.isBelow,1),lD=r(iD,-1,sD),cD=r(iD,1,uD),fD=function(t,e){return sD(t,e).breakAt.isNone()},dD=function(t,e){return uD(t,e).breakAt.isNone()},hD=function(t){return kp(t).map(function(e){return[e].concat(uD(t,e).positions)}).getOr([])},pD=function(t){return Sp(t).map(function(e){return sD(t,e).positions.concat(e)}).getOr([])},gD=function(t){var e=function(e){return _t(e,function(e){var n=Ec(e);return n.node=t,n})};if(Hr(t))return e(t.getClientRects());if(Zr(t)){var n=t.ownerDocument.createRange();return n.setStart(t,0),n.setEnd(t,t.data.length),e(n.getClientRects())}},mD=function(t){return Nt(t,gD)};!function(t){t[t.Up=-1]="Up",t[t.Down=1]="Down"}(ZN||(ZN={}));var vD,yD,bD=function(t,e,n,r){for(;r=Rh(r,t,Va,e);)if(n(r))return},_D=function(t,e,n,r,i,o){var a=0,s=[],u=function(r){var o=mD([r]);-1===t&&(o=o.reverse());for(var u=0;u<o.length;u++){var c=o[u];if(!n(c,l)){if(s.length>0&&e(c,fe(s))&&a++,c.line=a,i(c))return!0;s.push(c)}}},l=fe(o.getClientRects());if(!l)return s;var c=o.getNode();return u(c),bD(t,r,u,c),s},wD=function(t,e){return e.line>t},xD=function(t,e){return e.line===t},kD=r(_D,ZN.Up,Pc,Nc),SD=r(_D,ZN.Down,Nc,Pc),CD=function(t,e,n,r){var i,o,a,s,u=lp(e),l=[],c=0,f=function(e){return fe(1===t?e.getClientRects():e.getClientRects())};1===t?(i=u.next,o=Nc,a=Pc,s=sf.after(r)):(i=u.prev,o=Pc,a=Nc,s=sf.before(r));var d=f(s);do{if(s.isVisible()){var h=f(s);if(!a(h,d)){l.length>0&&o(h,fe(l))&&c++;var p=Ec(h);if(p.position=s,p.line=c,n(p))return l;l.push(p)}}}while(s=i(s));return l},ED=function(t){return function(e){return wD(t,e)}},TD=function(t){return function(e){return xD(t,e)}},AD=ai,OD=Rh,PD=function(t,e){return Math.abs(t.left-e)},ND=function(t,e){return Math.abs(t.right-e)},DD=function(t,e){return t>=e.left&&t<=e.right},MD=function(t,e){return t>=e.top&&t<=e.bottom},ID=function(t){return ee(t,"node")},RD=function(t,e,n){return void 0===n&&(n=st),le(t,function(t,r){if(DD(e,r))return n(r)?r:t;if(DD(e,t))return n(t)?t:r;var i=Math.min(PD(t,e),ND(t,e)),o=Math.min(PD(r,e),ND(r,e));return o===i&&ID(r)&&AD(r.node)?r:o<i?r:t})},$D=function(t,e,n,r,i){var o=OD(r,t,Va,e,!i);do{if(!o||n(o))return}while(o=OD(o,t,Va,e))},LD=function(t,e,n){void 0===n&&(n=!0);var i=[],o=function(t,n){var r=St(mD([n]),function(n){return!t(n,e)});return i=i.concat(r),0===r.length};return i.push(e),$D(ZN.Up,t,r(o,Pc),e.node,n),$D(ZN.Down,t,r(o,Nc),e.node,n),i},jD=function(t){return St(Bt(t.getElementsByTagName("*")),Sh)},FD=function(t,e){return{node:t.node,before:PD(t,e)<ND(t,e)}},BD=function(t,e,n){var i=mD(jD(t)),o=St(i,r(MD,n)),a=function(t){return!Xr(t.node)&&!ui(t.node)},s=RD(o,e,a);if(s){var u=a(s);if((s=RD(LD(t,s,u),e,a))&&Sh(s.node))return FD(s,e)}return null},VD=function(t,e){t.selection.setRng(e),Sv(t,t.selection.getRng())},zD=function(t,e,n){return dt.some(zP(t,e,n))},UD=function(t,e,n,i,o,a){var s=e===uf.Forwards,u=lp(t.getBody()),l=r(Kh,s?u.next:u.prev),c=s?i:o;if(!n.collapsed){var f=Ic(n);if(a(f))return jP(e,t,f,e===uf.Backwards,!1)}var d=Wh(e,t.getBody(),n);if(c(d))return BP(t,d.getNode(!s));var h=ZO(s,l(d)),p=Ea(n);if(!h)return p?dt.some(n):dt.none();if(c(h))return jP(e,t,h.getNode(!s),s,!1);var g=l(h);return g&&c(g)&&Xh(h,g)?jP(e,t,g.getNode(!s),s,!1):p?zD(t,h.toRange(),!1):dt.none()},HD=function(t,e,n,r,i,o){var a=Wh(e,t.getBody(),n),s=fe(a.getClientRects()),u=e===ZN.Down;if(!s)return dt.none();var l=u?SD:kD,c=l(t.getBody(),ED(1),a),f=St(c,TD(1)),d=s.left,h=RD(f,d);if(h&&o(h.node)){var p=Math.abs(d-h.left),g=Math.abs(d-h.right);return jP(e,t,h.node,p<g,!1)}var m;if(m=r(a)?a.getNode():i(a)?a.getNode(!0):Ic(n)){var v=CD(e,t.getBody(),ED(1),m),y=RD(St(v,TD(1)),d);if(y)return zD(t,y.position.toRange(),!1);if(y=fe(St(v,TD(0))))return zD(t,y.position.toRange(),!1)}return 0===f.length?qD(t,u).filter(u?i:r).map(function(e){return zP(t,e.toRange(),!1)}):dt.none()},qD=function(t,e){var n=t.selection.getRng(),r=t.getBody();if(e){var i=sf.fromRangeEnd(n),o=uD(r,i);return Ft(o.positions)}var i=sf.fromRangeStart(n),o=sD(r,i);return jt(o.positions)},WD=function(t,e,n){return qD(t,e).filter(n).exists(function(e){return t.selection.setRng(e.toRange()),!0})},GD=function(t,e){var n=t.dom.createRng();n.setStart(e.container(),e.offset()),n.setEnd(e.container(),e.offset()),t.selection.setRng(n)},YD=function(t,e){t?e.setAttribute("data-mce-selected","inline-boundary"):e.removeAttribute("data-mce-selected")},KD=function(t,e,n){return TN(e,n).map(function(e){return GD(t,e),n})},XD=function(t,e,n){var i=t.getBody(),o=sf.fromRangeStart(t.selection.getRng()),a=r(GO,t);return YN(n,a,i,o).bind(function(n){return KD(t,e,n)})},JD=function(t,e,n){var i=_t(nc(En.fromDom(e.getRoot()),'*[data-mce-selected="inline-boundary"]'),function(t){return t.dom}),o=St(i,t),a=St(n,t);wt(It(o,a),r(YD,!1)),wt(It(a,o),r(YD,!0))},QD=function(t,e){if(t.selection.isCollapsed()&&!0!==t.composing&&e.get()){var n=sf.fromRangeStart(t.selection.getRng());sf.isTextPosition(n)&&!1===QO(n)&&(GD(t,hh(e.get(),n)),e.set(null))}},ZD=function(t,e,n,r){if(e.selection.isCollapsed()){var i=St(r,t);wt(i,function(r){var i=sf.fromRangeStart(e.selection.getRng());jN(t,e.getBody(),i).bind(function(t){return KD(e,n,t)})})}},tM=function(t,e,n){return!!Md(t)&&XD(t,e,n).isSome()},eM=function(t,e,n){return!!Md(e)&&QN(t,e)},nM=function(t){var e=Cl(null),n=r(GO,t);return t.on("NodeChange",function(r){!Md(t)||sn.browser.isIE()&&r.initial||(JD(n,t.dom,r.parents),QD(t,e),ZD(n,t,e,r.parents))}),e},rM=r(eM,!0),iM=r(eM,!1),oM=function(t,e,n){if(Md(t)){var i=qD(t,e).getOrThunk(function(){var n=t.selection.getRng();return e?sf.fromRangeEnd(n):sf.fromRangeStart(n)});return jN(r(GO,t),t.getBody(),i).exists(function(e){var r=VN(e);return TN(n,r).exists(function(e){return GD(t,e),!0})})}return!1},aM=function(t,e){var n=document.createRange();return n.setStart(t.container(),t.offset()),n.setEnd(e.container(),e.offset()),n},sM=function(t){return fi(kp(t),Sp(t),function(e,n){var r=ZO(!0,e),i=ZO(!1,n);return wp(t,r).forall(function(t){return t.isEqual(i)})}).getOr(!0)},uM=function(t,e){return function(n){return TN(e,n).exists(function(e){return GD(t,e),!0})}},lM=function(t,e,n,i){var o=t.getBody(),a=r(GO,t);t.undoManager.ignore(function(){t.selection.setRng(aM(n,i)),t.execCommand("Delete"),jN(a,o,sf.fromRangeStart(t.selection.getRng())).map(zN).map(uM(t,e))}),t.nodeChanged()},cM=function(t,e){var n=$h(e,t);return n||t},fM=function(t,e,n,i){var o=cM(t.getBody(),i.container()),a=r(GO,t),s=jN(a,o,i);return s.bind(function(t){return n?t.fold(Z(dt.some(zN(t))),dt.none,Z(dt.some(VN(t))),dt.none):t.fold(dt.none,Z(dt.some(VN(t))),dt.none,Z(dt.some(zN(t))))}).map(uM(t,e)).getOrThunk(function(){var r=yp(n,o,i),u=r.bind(function(t){return jN(a,o,t)});return fi(s,u,function(){return XO(a,o,i).exists(function(e){return!!sM(e)&&(J_(t,n,En.fromDom(e)),!0)})}).orThunk(function(){return u.bind(function(o){return r.map(function(r){return n?lM(t,e,i,r):lM(t,e,r,i),!0})})}).getOr(!1)})},dM=function(t,e,n){if(t.selection.isCollapsed()&&Md(t)){var r=sf.fromRangeStart(t.selection.getRng());return fM(t,e,n,r)}return!1},hM=function(t,e){var n=qb(e,t);return Ot(n,Ko).fold(Z(n),function(t){return n.slice(0,t)})},pM=function(t){return 1===ur(t)},gM=function(t,e,n,i){var o=r(_k,e),a=_t(St(i,o),function(t){return t.dom});if(0===a.length)J_(e,t,n);else{var s=bk(n.dom,a);e.selection.setRng(s.toRange())}},mM=function(t,e){var n=En.fromDom(t.getBody()),r=En.fromDom(t.selection.getStart()),i=St(hM(n,r),pM);return Ft(i).exists(function(n){var r=sf.fromRangeStart(t.selection.getRng());return!(!sP(e,r,n.dom)||wk(n))&&(gM(e,t,n,i),!0)})},vM=function(t,e){return!!t.selection.isCollapsed()&&mM(t,e)},yM=function(t,e,n){return t._selectionOverrides.hideFakeCaret(),J_(t,e,En.fromDom(n)),!0},bM=function(t,e){var n=e?Db:Mb,r=e?uf.Forwards:uf.Backwards,i=Wh(r,t.getBody(),t.selection.getRng());return n(i)?yM(t,e,i.getNode(!e)):dt.from(ZO(e,i)).filter(function(t){return n(t)&&Xh(i,t)}).exists(function(n){return yM(t,e,n.getNode(!e))})},_M=function(t,e){var n=t.selection.getNode();return!!ui(n)&&yM(t,e,n)},wM=function(t,e){return t.selection.isCollapsed()?bM(t,e):_M(t,e)},xM=function(t){return xo(t,function(t){return oi(t.dom)||ai(t.dom)}).exists(function(t){return oi(t.dom)})},kM=function(t){var e=parseInt(t,10);return isNaN(e)?0:e},SM=function(t,e){return(t||Xo(e)?"margin":"padding")+("rtl"===Ci(e,"direction")?"-right":"-left")},CM=function(t,e,n,r,i,o){var a=SM(n,En.fromDom(o));if("outdent"===e){var s=Math.max(0,kM(o.style[a])-r);t.setStyle(o,a,s?s+i:"")}else{var s=kM(o.style[a])+r+i;t.setStyle(o,a,s)}},EM=function(t,e){return Dt(e,function(e){var n=SM(_d(t),e),r=Ti(e,n).map(kM).getOr(0);return"false"!==t.dom.getContentEditable(e.dom)&&r>0})},TM=function(t){var e=PM(t);return!t.mode.isReadOnly()&&(e.length>1||EM(t,e))},AM=function(t){return ta(t)||ea(t)},OM=function(t){return Jn(t).exists(AM)},PM=function(t){return St(vc(t.selection.getSelectedBlocks()),function(t){return!AM(t)&&!OM(t)&&xM(t)})},NM=function(t,e){var n=t.dom,r=t.selection,i=t.formatter,o=wd(t),a=/[a-z%]+$/i.exec(o)[0],s=parseInt(o,10),u=_d(t),l=Qf(t);t.queryCommandState("InsertUnorderedList")||t.queryCommandState("InsertOrderedList")||""!==l||n.getParent(r.getNode(),n.isBlock)||i.apply("div"),wt(PM(t),function(t){CM(n,e,u,s,a,t.dom)})},DM=function(t,e){if(t.selection.isCollapsed()&&TM(t)){var n=t.dom,r=t.selection.getRng(),i=sf.fromRangeStart(r),o=n.getParent(r.startContainer,n.isBlock);if(null!==o&&Xb(En.fromDom(o),i))return NM(t,"outdent"),!0}return!1},MM=function(t,e){t.getDoc().execCommand(e,!1,null)},IM=function(t,e){DM(t)||hN(t,!1)||YP(t,!1)||dM(t,e,!1)||AP(t,!1)||Gw(t)||gN(t,!1)||wM(t,!1)||RP(t)||vM(t,!1)||(MM(t,"Delete"),aP(t))},RM=function(t,e){hN(t,!0)||YP(t,!0)||dM(t,e,!0)||AP(t,!0)||Gw(t)||gN(t,!0)||wM(t,!0)||RP(t)||vM(t,!0)||MM(t,"ForwardDelete")},$M=function(t,e){t.addCommand("delete",function(){IM(t,e)}),t.addCommand("forwardDelete",function(){RM(t,e)})},LM=function(t){return void 0===t.touches||1!==t.touches.length?dt.none():dt.some(t.touches[0])},jM=function(t,e){var n=Math.abs(t.clientX-e.x),r=Math.abs(t.clientY-e.y);return n>5||r>5},FM=function(t){var e=Vl(),n=Cl(!1),r=Ul(function(e){t.fire("longpress",de(de({},e),{type:"longpress"})),n.set(!0)},400);t.on("touchstart",function(t){LM(t).each(function(i){r.cancel();var o={x:i.clientX,y:i.clientY,target:t.target};r.throttle(t),n.set(!1),e.set(o)})},!0),t.on("touchmove",function(i){r.cancel(),LM(i).each(function(r){e.on(function(i){jM(r,i)&&(e.clear(),n.set(!1),t.fire("longpresscancel"))})})},!0),t.on("touchend touchcancel",function(i){r.cancel(),"touchcancel"!==i.type&&e.get().filter(function(t){return t.target.isEqualNode(i.target)}).each(function(){n.get()?i.preventDefault():t.fire("tap",de(de({},i),{type:"tap"}))})},!0)},BM=function(t,e){return te(t,e.nodeName)},VM=function(t,e){return!!Zr(e)||!!Hr(e)&&(!BM(t,e)&&!Gp(e))},zM=function(t,e,n){return bt(Hb(En.fromDom(n),En.fromDom(e)),function(e){return BM(t,e.dom)})},UM=function(t,e){if(Zr(e)){if(0===e.nodeValue.length)return!0;if(/^\s+$/.test(e.nodeValue)&&(!e.nextSibling||BM(t,e.nextSibling)))return!0}return!1},HM=function(t){var e,n,r,i=t.dom,o=t.selection,a=t.schema,s=a.getBlockElements(),u=o.getStart(),l=t.getBody(),c=Qf(t);if(u&&Hr(u)&&c){var f=l.nodeName.toLowerCase();if(a.isValidChild(f,c.toLowerCase())&&!zM(s,l,u)){var d=o.getRng(),h=d.startContainer,p=d.startOffset,g=d.endContainer,m=d.endOffset,v=Iy(t);for(u=l.firstChild;u;)if(VM(s,u)){if(UM(s,u)){n=u,u=u.nextSibling,i.remove(n);continue}e||(e=i.create(c,Zf(t)),u.parentNode.insertBefore(e,u),r=!0),n=u,u=u.nextSibling,e.appendChild(n)}else e=null,u=u.nextSibling;r&&v&&(d.setStart(h,p),d.setEnd(g,m),o.setRng(d),t.nodeChanged())}}},qM=function(t){Qf(t)&&t.on("NodeChange",r(HM,t))},WM=function(t){return Eo(En.fromDom(t.getBody()),"*[data-mce-caret]").map(function(t){return t.dom}).getOrNull()},GM=function(t){t.selection.setRng(t.selection.getRng())},YM=function(t,e){e.hasAttribute("data-mce-caret")&&(Ca(e),GM(t),t.selection.scrollIntoView(e))},KM=function(t,e){var n=WM(t);if(n)return"compositionstart"===e.type?(e.preventDefault(),e.stopPropagation(),void YM(t,n)):void(ma(n)&&(YM(t,n),t.undoManager.add()))},XM=function(t){t.on("keyup compositionstart",r(KM,t))},JM=ai,QM=function(t,e,n){return UD(e,t,n,$b,Lb,JM)},ZM=function(t,e,n){return HD(e,t,n,function(t){return $b(t)||Ib(t)},function(t){return Lb(t)||Rb(t)},JM)},tI=function(t){var e=t.dom.create(Qf(t));return(!sn.ie||sn.ie>=11)&&(e.innerHTML='<br data-mce-bogus="1">'),e},eI=function(t,e,n){var i=lp(t.getBody()),o=r(Kh,1===e?i.next:i.prev);if(n.collapsed&&qd(t)){var a=t.dom.getParent(n.startContainer,"PRE");if(!a)return;if(!o(sf.fromRangeStart(n))){var s=tI(t);1===e?t.$(a).after(s):t.$(a).before(s),t.selection.select(s,!0),t.selection.collapse()}}},nI=function(t,e){var n=e?uf.Forwards:uf.Backwards,r=t.selection.getRng();return QM(n,t,r).orThunk(function(){return eI(t,n,r),dt.none()})},rI=function(t,e){var n=e?1:-1,r=t.selection.getRng();return ZM(n,t,r).orThunk(function(){return eI(t,n,r),dt.none()})},iI=function(t,e){return nI(t,e).exists(function(e){return VD(t,e),!0})},oI=function(t,e){return rI(t,e).exists(function(e){return VD(t,e),!0})},aI=function(t,e){return WD(t,e,e?Lb:$b)},sI=function(t){return yt(["figcaption"],jn(t))},uI=function(t){var e=document.createRange();return e.setStartBefore(t.dom),e.setEndBefore(t.dom),e},lI=function(t,e,n){n?xr(t,e):wr(t,e)},cI=function(t,e){var n=En.fromTag("br");return lI(t,n,e),uI(n)},fI=function(t,e,n,r){var i=En.fromTag(n),o=En.fromTag("br");return vi(i,r),xr(i,o),lI(t,i,e),uI(o)},dI=function(t,e,n,r){return""===e?cI(t,r):fI(t,r,e,n)},hI=function(t,e){var n=r(In,e);return xo(En.fromDom(t.container()),Ko,n).filter(sI)},pI=function(t,e,n){return e?dD(t.dom,n):fD(t.dom,n)},gI=function(t,e){var n=En.fromDom(t.getBody()),r=sf.fromRangeStart(t.selection.getRng()),i=Qf(t),o=Zf(t);return hI(r,n).exists(function(){if(pI(n,e,r)){var a=dI(n,i,o,e);return t.selection.setRng(a),!0}return!1})},mI=function(t,e){return!!t.selection.isCollapsed()&&gI(t,e)},vI=function(t){return _t(t,function(t){return de({shiftKey:!1,altKey:!1,ctrlKey:!1,metaKey:!1,keyCode:0,action:X},t)})},yI=function(t,e){return e.keyCode===t.keyCode&&e.shiftKey===t.shiftKey&&e.altKey===t.altKey&&e.ctrlKey===t.ctrlKey&&e.metaKey===t.metaKey},bI=function(t,e){return Nt(vI(t),function(t){return yI(t,e)?[t]:[]})},_I=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return function(){return t.apply(null,e)}},wI=function(t,e){return At(bI(t,e),function(t){return t.action()})},xI=function(t,e){var n=e?uf.Forwards:uf.Backwards,r=t.selection.getRng();return UD(t,n,r,Db,Mb,ui).exists(function(e){return VD(t,e),!0})},kI=function(t,e){var n=e?1:-1,r=t.selection.getRng();return HD(t,n,r,Db,Mb,ui).exists(function(e){return VD(t,e),!0})},SI=function(t,e){return WD(t,e,e?Mb:Db)},CI=function(t,e){return{left:t.left-e,top:t.top-e,right:t.right+2*e,bottom:t.bottom+2*e,width:t.width+e,height:t.height+e}},EI=function(t,e){return Nt(e,function(e){var n=CI(Ec(e.getBoundingClientRect()),-1);return[{x:n.left,y:t(n),cell:e},{x:n.right,y:t(n),cell:e}]})},TI=function(t,e,n){return Et(t,function(t,r){return t.fold(function(){return dt.some(r)},function(t){var i=Math.sqrt(Math.abs(t.x-e)+Math.abs(t.y-n)),o=Math.sqrt(Math.abs(r.x-e)+Math.abs(r.y-n));return dt.some(o<i?r:t)})},dt.none())},AI=function(t,e,n,r,i){var o=nc(En.fromDom(n),"td,th,caption").map(function(t){return t.dom}),a=St(EI(t,o),function(t){return e(t,i)});return TI(a,r,i).map(function(t){return t.cell})},OI=function(t){return t.bottom},PI=function(t){return t.top},NI=function(t,e){return t.y<e},DI=function(t,e){return t.y>e},MI=r(AI,OI,NI),II=r(AI,PI,DI),RI=function(t,e){return jt(e.getClientRects()).bind(function(e){return MI(t,e.left,e.top)}).bind(function(t){return aD(pD(t),e)})},$I=function(t,e){return Ft(e.getClientRects()).bind(function(e){return II(t,e.left,e.top)}).bind(function(t){return aD(hD(t),e)})},LI=function(t,e,n){return n.breakAt.exists(function(n){return t(e,n).breakAt.isSome()})},jI=function(t){return t.breakType===KN.Wrap&&0===t.positions.length},FI=function(t){return t.breakType===KN.Br&&1===t.positions.length},BI=function(t,e,n){var r=t(e,n);return jI(r)||!ri(n.getNode())&&FI(r)?!LI(t,e,r):r.breakAt.isNone()},VI=r(BI,sD),zI=r(BI,uD),UI=function(t,e,n){var r=sf.fromRangeStart(e);return _p(!t,n).exists(function(t){return t.isEqual(r)})},HI=function(t,e,n,r){var i=t.selection.getRng(),o=e?1:-1;return!(!xh()||!UI(e,i,n))&&(jP(o,t,n,!e,!1).each(function(e){VD(t,e)}),!0)},qI=function(t,e,n){return RI(e,n).orThunk(function(){return jt(n.getClientRects()).bind(function(n){return oD(lD(t,sf.before(e)),n.left)})}).getOr(sf.before(e))},WI=function(t,e,n){return $I(e,n).orThunk(function(){return jt(n.getClientRects()).bind(function(n){return oD(cD(t,sf.after(e)),n.left)})}).getOr(sf.after(e))},GI=function(t,e){var n=e.getNode(t);return Hr(n)&&"TABLE"===n.nodeName?dt.some(n):dt.none()},YI=function(t,e,n,r){var i=Qf(e);i?e.undoManager.transact(function(){var r=En.fromTag(i);vi(r,Zf(e)),xr(r,En.fromTag("br")),t?_r(En.fromDom(n),r):br(En.fromDom(n),r);var o=e.dom.createRng();o.setStart(r.dom,0),o.setEnd(r.dom,0),VD(e,o)}):VD(e,r.toRange())},KI=function(t,e,n){var r=!1===e;(e?GI(!0,n):GI(!1,n)).fold(function(){return VD(t,n.toRange())},function(i){return _p(r,t.getBody()).filter(function(t){return t.isEqual(n)}).fold(function(){return VD(t,n.toRange())},function(r){return YI(e,t,i,n)})})},XI=function(t,e,n,r){var i=t.selection.getRng(),o=sf.fromRangeStart(i),a=t.getBody();if(!e&&VI(r,o)){var s=qI(a,n,o);return KI(t,e,s),!0}if(e&&zI(r,o)){var s=WI(a,n,o);return KI(t,e,s),!0}return!1},JI=function(t,e,n){return dt.from(t.dom.getParent(t.selection.getNode(),"td,th")).bind(function(r){return dt.from(t.dom.getParent(r,"table")).map(function(i){return n(t,e,i,r)})}).getOr(!1)},QI=function(t,e){return JI(t,e,HI)},ZI=function(t,e){return JI(t,e,XI)},tR=function(t,e,n){var r=Je().os;wI([{keyCode:Sm.RIGHT,action:_I(iI,t,!0)},{keyCode:Sm.LEFT,action:_I(iI,t,!1)},{keyCode:Sm.UP,action:_I(oI,t,!1)},{keyCode:Sm.DOWN,action:_I(oI,t,!0)},{keyCode:Sm.RIGHT,action:_I(QI,t,!0)},{keyCode:Sm.LEFT,action:_I(QI,t,!1)},{keyCode:Sm.UP,action:_I(ZI,t,!1)},{keyCode:Sm.DOWN,action:_I(ZI,t,!0)},{keyCode:Sm.RIGHT,action:_I(xI,t,!0)},{keyCode:Sm.LEFT,action:_I(xI,t,!1)},{keyCode:Sm.UP,action:_I(kI,t,!1)},{keyCode:Sm.DOWN,action:_I(kI,t,!0)},{keyCode:Sm.RIGHT,action:_I(tM,t,e,!0)},{keyCode:Sm.LEFT,action:_I(tM,t,e,!1)},{keyCode:Sm.RIGHT,ctrlKey:!r.isOSX(),altKey:r.isOSX(),action:_I(rM,t,e)},{keyCode:Sm.LEFT,ctrlKey:!r.isOSX(),altKey:r.isOSX(),action:_I(iM,t,e)},{keyCode:Sm.UP,action:_I(mI,t,!1)},{keyCode:Sm.DOWN,action:_I(mI,t,!0)}],n).each(function(t){n.preventDefault()})},eR=function(t,e){t.on("keydown",function(n){!1===n.isDefaultPrevented()&&tR(t,e,n)})},nR=function(t,e,n){wI([{keyCode:Sm.BACKSPACE,action:_I(DM,t,!1)},{keyCode:Sm.BACKSPACE,action:_I(hN,t,!1)},{keyCode:Sm.DELETE,action:_I(hN,t,!0)},{keyCode:Sm.BACKSPACE,action:_I(YP,t,!1)},{keyCode:Sm.DELETE,action:_I(YP,t,!0)},{keyCode:Sm.BACKSPACE,action:_I(dM,t,e,!1)},{keyCode:Sm.DELETE,action:_I(dM,t,e,!0)},{keyCode:Sm.BACKSPACE,action:_I(Gw,t,!1)},{keyCode:Sm.DELETE,action:_I(Gw,t,!0)},{keyCode:Sm.BACKSPACE,action:_I(gN,t,!1)},{keyCode:Sm.DELETE,action:_I(gN,t,!0)},{keyCode:Sm.BACKSPACE,action:_I(wM,t,!1)},{keyCode:Sm.DELETE,action:_I(wM,t,!0)},{keyCode:Sm.BACKSPACE,action:_I(RP,t,!1)},{keyCode:Sm.DELETE,action:_I(RP,t,!0)},{keyCode:Sm.BACKSPACE,action:_I(AP,t,!1)},{keyCode:Sm.DELETE,action:_I(AP,t,!0)},{keyCode:Sm.BACKSPACE,action:_I(vM,t,!1)},{keyCode:Sm.DELETE,action:_I(vM,t,!0)}],n).each(function(t){n.preventDefault()})},rR=function(t,e){wI([{keyCode:Sm.BACKSPACE,action:_I(dN,t)},{keyCode:Sm.DELETE,action:_I(dN,t)}],e)},iR=function(t,e){t.on("keydown",function(n){!1===n.isDefaultPrevented()&&nR(t,e,n)}),t.on("keyup",function(e){!1===e.isDefaultPrevented()&&rR(t,e)})},oR=function(t){for(;t;){if(1===t.nodeType||3===t.nodeType&&t.data&&/[\r\n\s]/.test(t.data))return t;t=t.nextSibling}},aR=function(t,e){var n,r=e,i=t.dom,o=t.schema.getMoveCaretBeforeOnEnterElements();if(e){if(/^(LI|DT|DD)$/.test(e.nodeName)){var a=oR(e.firstChild);a&&/^(UL|OL|DL)$/.test(a.nodeName)&&e.insertBefore(i.doc.createTextNode(" "),e.firstChild)}var s=i.createRng();if(e.normalize(),e.hasChildNodes()){for(var u=new jo(e,e);n=u.current();){if(Zr(n)){s.setStart(n,0),s.setEnd(n,0);break}if(o[n.nodeName.toLowerCase()]){s.setStartBefore(n),s.setEndBefore(n);break}r=n,n=u.next()}n||(s.setStart(r,0),s.setEnd(r,0))}else ri(e)?e.nextSibling&&i.isBlock(e.nextSibling)?(s.setStartBefore(e),s.setEndBefore(e)):(s.setStartAfter(e),s.setEndAfter(e)):(s.setStart(e,0),s.setEnd(e,0));t.selection.setRng(s),Sv(t,s)}},sR=function(t,e){var n,r,i=t.getRoot();for(n=e;n!==i&&"false"!==t.getContentEditable(n);)"true"===t.getContentEditable(n)&&(r=n),n=n.parentNode;return n!==i?r:i},uR=function(t){return dt.from(t.dom.getParent(t.selection.getStart(!0),t.dom.isBlock))},lR=function(t){return uR(t).fold(Z(""),function(t){return t.nodeName.toUpperCase()})},cR=function(t){return uR(t).filter(function(t){return ea(En.fromDom(t))}).isSome()},fR=function(t,e){return t.firstChild&&t.firstChild.nodeName===e},dR=function(t){var e;return(null===(e=t.parentNode)||void 0===e?void 0:e.firstChild)===t},hR=function(t,e){return t&&t.parentNode&&t.parentNode.nodeName===e},pR=function(t){return t&&/^(OL|UL|LI)$/.test(t.nodeName)},gR=function(t){return pR(t)&&pR(t.parentNode)},mR=function(t){var e=t.parentNode;return/^(LI|DT|DD)$/.test(e.nodeName)?e:t},vR=function(t,e,n){for(var r=t[n?"firstChild":"lastChild"];r&&!Hr(r);)r=r[n?"nextSibling":"previousSibling"];return r===e},yR=function(t,e,n,r,i){var o=t.dom,a=t.selection.getRng();if(n!==t.getBody()){gR(n)&&(i="LI");var s=i?e(i):o.create("BR");if(vR(n,r,!0)&&vR(n,r,!1))if(hR(n,"LI")){var u=mR(n);o.insertAfter(s,u),dR(n)?o.remove(u):o.remove(n)}else o.replace(s,n);else if(vR(n,r,!0))hR(n,"LI")?(o.insertAfter(s,mR(n)),s.appendChild(o.doc.createTextNode(" ")),s.appendChild(n)):n.parentNode.insertBefore(s,n),o.remove(r);else if(vR(n,r,!1))o.insertAfter(s,mR(n)),o.remove(r);else{n=mR(n);var l=a.cloneRange();l.setStartAfter(r),l.setEndAfter(n);var c=l.extractContents();"LI"===i&&fR(c,"LI")?(s=c.firstChild,o.insertAfter(c,n)):(o.insertAfter(c,n),o.insertAfter(s,n)),o.remove(r)}aR(t,s)}},bR=function(t){wt(ec(En.fromDom(t),Un),function(t){var e=t.dom;e.nodeValue=ca(e.nodeValue)})},_R=function(t,e){return e&&"A"===e.nodeName&&t.isEmpty(e)},wR=function(t){return t&&/^(TD|TH|CAPTION)$/.test(t.nodeName)},xR=function(t){t.innerHTML='<br data-mce-bogus="1">'},kR=function(t,e){return t.nodeName===e||t.previousSibling&&t.previousSibling.nodeName===e},SR=function(t,e){return e&&t.isBlock(e)&&!/^(TD|TH|CAPTION|FORM)$/.test(e.nodeName)&&!/^(fixed|absolute)/i.test(e.style.position)&&"true"!==t.getContentEditable(e)},CR=function(t,e,n){var r,i=n,o=[];if(i){for(;i=i.firstChild;){if(t.isBlock(i))return;Hr(i)&&!e[i.nodeName.toLowerCase()]&&o.push(i)}for(r=o.length;r--;)i=o[r],!i.hasChildNodes()||i.firstChild===i.lastChild&&""===i.firstChild.nodeValue?t.remove(i):_R(t,i)&&t.remove(i)}},ER=function(t,e,n){return!1===Zr(e)?n:t?1===n&&e.data.charAt(n-1)===ua?0:n:n===e.data.length-1&&e.data.charAt(n)===ua?e.data.length:n},TR=function(t){var e=t.cloneRange();return e.setStart(t.startContainer,ER(!0,t.startContainer,t.startOffset)),e.setEnd(t.endContainer,ER(!1,t.endContainer,t.endOffset)),e},AR=function(t){do{Zr(t)&&(t.nodeValue=t.nodeValue.replace(/^[\r\n]+/,"")),t=t.firstChild}while(t)},OR=function(t,e){var n,r,i=t.getRoot();for(n=e;n!==i&&"false"!==t.getContentEditable(n);)"true"===t.getContentEditable(n)&&(r=n),n=n.parentNode;return n!==i?r:i},PR=function(t,e,n){var r=t.dom;dt.from(n.style).map(r.parseStyle).each(function(t){var n=Ai(En.fromDom(e)),i=de(de({},n),t);r.setStyles(e,i)});var i=dt.from(n.class).map(function(t){return t.split(/\s+/)}),a=dt.from(e.className).map(function(t){return St(t.split(/\s+/),function(t){return""!==t})});fi(i,a,function(t,n){var i=St(n,function(e){return!yt(t,e)}),a=o(o([],t,!0),i,!0);r.setAttrib(e,"class",a.join(" "))});var s=["style","class"],u=Xt(n,function(t,e){return!yt(s,e)});r.setAttribs(e,u)},NR=function(t,e){var n=Qf(t);if(n&&n.toLowerCase()===e.tagName.toLowerCase()){var r=Zf(t);PR(t,e,r)}},DR=function(t,e,n,r,i){var o,a,s,u,l,c,f=e||"P",d=t.dom,h=OR(d,r);if(!(a=d.getParent(r,d.isBlock))||!SR(d,a)){if(a=a||h,c=a===t.getBody()||wR(a)?a.nodeName.toLowerCase():a.parentNode.nodeName.toLowerCase(),!a.hasChildNodes())return o=d.create(f),NR(t,o),a.appendChild(o),n.setStart(o,0),n.setEnd(o,0),o;for(u=r;u.parentNode!==a;)u=u.parentNode;for(;u&&!d.isBlock(u);)s=u,u=u.previousSibling;if(s&&t.schema.isValidChild(c,f.toLowerCase())){for(o=d.create(f),NR(t,o),s.parentNode.insertBefore(o,s),u=s;u&&!d.isBlock(u);)l=u.nextSibling,o.appendChild(u),u=l;n.setStart(r,i),n.setEnd(r,i)}}return r},MR=function(t,e){e.normalize();var n=e.lastChild;n&&!/^(left|right)$/gi.test(t.getStyle(n,"float",!0))||t.add(e,"br")},IR=function(t,e){var n,r,i,o,a,s,u,l,c,f,d=t.dom,h=t.schema,p=h.getNonEmptyElements(),g=t.selection.getRng(),m=function(e){var n,i,a,s=r,u=h.getTextInlineElements();if(n=e||"TABLE"===l||"HR"===l?d.create(e||c):o.cloneNode(!1),a=n,!1===nd(t))d.setAttrib(n,"style",null),d.setAttrib(n,"class",null);else do{if(u[s.nodeName]){if(Cp(s)||Gp(s))continue;i=s.cloneNode(!1),d.setAttrib(i,"id",""),n.hasChildNodes()?(i.appendChild(n.firstChild),n.appendChild(i)):(a=i,n.appendChild(i))}}while((s=s.parentNode)&&s!==w);return NR(t,n),xR(a),n},v=function(t){var e,n,a=ER(t,r,i);if(Zr(r)&&(t?a>0:a<r.nodeValue.length))return!1;if(r.parentNode===o&&f&&!t)return!0;if(t&&Hr(r)&&r===o.firstChild)return!0;if(kR(r,"TABLE")||kR(r,"HR"))return f&&!t||!f&&t;var s=new jo(r,o);for(Zr(r)&&(t&&0===a?s.prev():t||a!==r.nodeValue.length||s.next());e=s.current();){if(Hr(e)){if(!e.getAttribute("data-mce-bogus")&&(n=e.nodeName.toLowerCase(),p[n]&&"br"!==n))return!1}else if(Zr(e)&&!Ua(e.nodeValue))return!1;t?s.prev():s.next()}return!0},y=function(){a=/^(H[1-6]|PRE|FIGURE)$/.test(l)&&"HGROUP"!==x?m(c):m(),rd(t)&&SR(d,u)&&d.isEmpty(o)?a=d.split(u,o):d.insertAfter(a,o),aR(t,a)};Hm(d,g).each(function(t){g.setStart(t.startContainer,t.startOffset),g.setEnd(t.endContainer,t.endOffset)}),r=g.startContainer,i=g.startOffset,c=Qf(t);var b=!(!e||!e.shiftKey),_=!(!e||!e.ctrlKey);Hr(r)&&r.hasChildNodes()&&(f=i>r.childNodes.length-1,r=r.childNodes[Math.min(i,r.childNodes.length-1)]||r,i=f&&Zr(r)?r.nodeValue.length:0);var w=OR(d,r);if(w){(c&&!b||!c&&b)&&(r=DR(t,c,g,r,i)),o=d.getParent(r,d.isBlock),u=o?d.getParent(o.parentNode,d.isBlock):null,l=o?o.nodeName.toUpperCase():"";var x=u?u.nodeName.toUpperCase():"";if("LI"!==x||_||(o=u,u=u.parentNode,l=x),/^(LI|DT|DD)$/.test(l)&&d.isEmpty(o))return void yR(t,m,u,o,c);c&&o===t.getBody()||(c=c||"P",ha(o)?(a=Ca(o),d.isEmpty(o)&&xR(o),NR(t,a),aR(t,a)):v()?y():v(!0)?(a=o.parentNode.insertBefore(m(),o),aR(t,kR(o,"HR")?a:o)):(n=TR(g).cloneRange(),n.setEndAfter(o),s=n.extractContents(),bR(s),AR(s),a=s.firstChild,d.insertAfter(s,o),CR(d,p,a),MR(d,o),d.isEmpty(o)&&xR(o),a.normalize(),d.isEmpty(a)?(d.remove(a),y()):(NR(t,a),aR(t,a))),d.setAttrib(a,"id",""),t.fire("NewBlock",{newBlock:a}))}},RR=function(t,e,n){for(var r,i=new jo(e,n),o=t.getNonEmptyElements();r=i.next();)if(o[r.nodeName.toLowerCase()]||r.length>0)return!0},$R=function(t,e,n){var r=t.dom.createRng();n?(r.setStartBefore(e),r.setEndBefore(e)):(r.setStartAfter(e),r.setEndAfter(e)),t.selection.setRng(r),Sv(t,r)},LR=function(t,e){var n,r,i=t.selection,o=t.dom,a=i.getRng();Hm(o,a).each(function(t){a.setStart(t.startContainer,t.startOffset),a.setEnd(t.endContainer,t.endOffset)});var s=a.startOffset,u=a.startContainer;if(1===u.nodeType&&u.hasChildNodes()){var l=s>u.childNodes.length-1;u=u.childNodes[Math.min(s,u.childNodes.length-1)]||u,s=l&&3===u.nodeType?u.nodeValue.length:0}var c=o.getParent(u,o.isBlock),f=c?o.getParent(c.parentNode,o.isBlock):null,d=f?f.nodeName.toUpperCase():"",h=!(!e||!e.ctrlKey);"LI"!==d||h||(c=f),u&&3===u.nodeType&&s>=u.nodeValue.length&&(RR(t.schema,u,c)||(n=o.create("br"),a.insertNode(n),a.setStartAfter(n),a.setEndAfter(n),r=!0)),n=o.create("br"),df(o,a,n),$R(t,n,r),t.undoManager.add()},jR=function(t,e){var n=En.fromTag("br");br(En.fromDom(e),n),t.undoManager.add()},FR=function(t,e){VR(t.getBody(),e)||_r(En.fromDom(e),En.fromTag("br"));var n=En.fromTag("br");_r(En.fromDom(e),n),$R(t,n.dom,!1),t.undoManager.add()},BR=function(t){return ri(t.getNode())},VR=function(t,e){return!!BR(sf.after(e))||wp(t,sf.after(e)).map(function(t){return ri(t.getNode())}).getOr(!1)},zR=function(t){return t&&"A"===t.nodeName&&"href"in t},UR=function(t){return t.fold(at,zR,zR,at)},HR=function(t){var e=r(GO,t),n=sf.fromRangeStart(t.selection.getRng());return jN(e,t.getBody(),n).filter(UR)},qR=function(t,e){e.fold(X,r(jR,t),r(FR,t),X)},WR=function(t,e){var n=HR(t);n.isSome()?n.each(r(qR,t)):LR(t,e)},GR=function(t,e){return uR(t).filter(function(t){return e.length>0&&Pn(En.fromDom(t),e)}).isSome()},YR=function(t){return GR(t,td(t))},KR=function(t){return GR(t,ed(t))},XR=Zi.generate([{br:[]},{block:[]},{none:[]}]),JR=function(t,e){return KR(t)},QR=function(t){return function(e,n){return""===Qf(e)===t}},ZR=function(t){return function(e,n){return cR(e)===t}},t$=function(t,e){return function(n,r){return lR(n)===t.toUpperCase()===e}},e$=function(t){return t$("pre",t)},n$=function(){return t$("summary",!0)},r$=function(t){return function(e,n){return Jf(e)===t}},i$=function(t,e){return YR(t)},o$=function(t,e){return e},a$=function(t){var e=Qf(t),n=sR(t.dom,t.selection.getStart());return n&&t.schema.isValidChild(n.nodeName,e||"P")},s$=function(t,e){return function(n,r){return Et(t,function(t,e){return t&&e(n,r)},!0)?dt.some(e):dt.none()}},u$=function(t,e){return AN([s$([JR],XR.none()),s$([n$()],XR.br()),s$([e$(!0),r$(!1),o$],XR.br()),s$([e$(!0),r$(!1)],XR.block()),s$([e$(!0),r$(!0),o$],XR.block()),s$([e$(!0),r$(!0)],XR.br()),s$([ZR(!0),o$],XR.br()),s$([ZR(!0)],XR.block()),s$([QR(!0),o$,a$],XR.block()),s$([QR(!0)],XR.br()),s$([i$],XR.br()),s$([QR(!1),o$],XR.br()),s$([a$],XR.block())],[t,!(!e||!e.shiftKey)]).getOr(XR.none())},l$=function(t,e){u$(t,e).fold(function(){WR(t,e)},function(){IR(t,e)},X)},c$=function(t,e){e.isDefaultPrevented()||(e.preventDefault(),EC(t.undoManager),t.undoManager.transact(function(){!1===t.selection.isCollapsed()&&t.execCommand("Delete"),l$(t,e)}))},f$=function(t){t.on("keydown",function(e){e.keyCode===Sm.ENTER&&c$(t,e)})},d$=function(t,e,n){wI([{keyCode:Sm.END,action:_I(aI,t,!0)},{keyCode:Sm.HOME,action:_I(aI,t,!1)},{keyCode:Sm.END,action:_I(SI,t,!0)},{keyCode:Sm.HOME,action:_I(SI,t,!1)},{keyCode:Sm.END,action:_I(oM,t,!0,e)},{keyCode:Sm.HOME,action:_I(oM,t,!1,e)}],n).each(function(t){n.preventDefault()})},h$=function(t,e){t.on("keydown",function(n){!1===n.isDefaultPrevented()&&d$(t,e,n)})},p$=Je().browser,g$=function(t){var e=zl(function(){t.composing||T_(t)},0);p$.isIE()&&(t.on("keypress",function(t){e.throttle()}),t.on("remove",function(t){e.cancel()}))},m$=function(t){g$(t),t.on("input",function(e){!1===e.isComposing&&T_(t)})},v$=Je(),y$=function(t,e,n){wI([{keyCode:Sm.PAGE_UP,action:_I(oM,t,!1,e)},{keyCode:Sm.PAGE_DOWN,action:_I(oM,t,!0,e)}],n)},b$=function(t){return t.stopImmediatePropagation()},_$=function(t){return t.keyCode===Sm.PAGE_UP||t.keyCode===Sm.PAGE_DOWN},w$=function(t,e,n){n&&!t.get()?e.on("NodeChange",b$,!0):!n&&t.get()&&e.off("NodeChange",b$),t.set(n)},x$=function(t,e){if(!v$.os.isOSX()){var n=Cl(!1);t.on("keydown",function(e){_$(e)&&w$(n,t,!0)}),t.on("keyup",function(r){!1===r.isDefaultPrevented()&&y$(t,e,r),_$(r)&&n.get()&&(w$(n,t,!1),t.nodeChanged())})}},k$=function(t,e){var n=e.container(),r=e.offset();return Zr(n)?(n.insertData(r,t),dt.some(sf(n,r+t.length))):Gh(e).map(function(n){var r=En.fromText(t);return e.isAtEnd()?_r(n,r):br(n,r),sf(r.dom,t.length)})},S$=r(k$," "),C$=r(k$," "),E$=function(t){return function(e){return e.fold(function(e){return xp(t.dom,sf.before(e))},function(t){return kp(t)},function(t){return Sp(t)},function(e){return wp(t.dom,sf.after(e))})}},T$=function(t,e){return function(n){return g_(t,n)?S$(e):C$(e)}},A$=function(t){return function(e){return t.selection.setRng(e.toRange()),t.nodeChanged(),!0}},O$=function(t){var e=sf.fromRangeStart(t.selection.getRng()),n=En.fromDom(t.getBody());if(t.selection.isCollapsed()){var i=r(GO,t),o=sf.fromRangeStart(t.selection.getRng());return jN(i,t.getBody(),o).bind(E$(n)).bind(T$(n,e)).exists(A$(t))}return!1},P$=function(t,e){wI([{keyCode:Sm.SPACEBAR,action:_I(O$,t)}],e).each(function(t){e.preventDefault()})},N$=function(t){t.on("keydown",function(e){!1===e.isDefaultPrevented()&&P$(t,e)})},D$=function(t){var e=nM(t);return XM(t),eR(t,e),iR(t,e),f$(t),N$(t),m$(t),h$(t,e),x$(t,e),e},M$=function(t){return zC(t)?Cl(null):D$(t)},I$=function(){function t(t){this.lastPath=[],this.editor=t;var e,n=this;"onselectionchange"in t.getDoc()||t.on("NodeChange click mouseup keyup focus",function(n){var r=t.selection.getRng(),i={startContainer:r.startContainer,startOffset:r.startOffset,endContainer:r.endContainer,endOffset:r.endOffset};"nodechange"!==n.type&&Dm(i,e)||t.fire("SelectionChange"),e=i}),t.on("contextmenu",function(){t.fire("SelectionChange")}),t.on("SelectionChange",function(){var e=t.selection.getStart(!0);!e||!sn.range&&t.selection.isCollapsed()||Kg(t)&&!n.isSameElementPath(e)&&t.dom.isChildOf(e,t.getBody())&&t.nodeChanged({selectionChange:!0})}),t.on("mouseup",function(e){!e.isDefaultPrevented()&&Kg(t)&&("IMG"===t.selection.getNode().nodeName?Ro.setEditorTimeout(t,function(){t.nodeChanged()}):t.nodeChanged())})}return t.prototype.nodeChanged=function(t){var e,n,r,i=this.editor.selection;this.editor.initialized&&i&&!Gd(this.editor)&&!this.editor.mode.isReadOnly()&&(r=this.editor.getBody(),e=i.getStart(!0)||r,e.ownerDocument===this.editor.getDoc()&&this.editor.dom.isChildOf(e,r)||(e=r),n=[],this.editor.dom.getParent(e,function(t){if(t===r)return!0;n.push(t)}),t=t||{},t.element=e,t.parents=n,this.editor.fire("NodeChange",t))},t.prototype.isSameElementPath=function(t){var e,n=this.editor.$(t).parentsUntil(this.editor.getBody()).add(t);if(n.length===this.lastPath.length){for(e=n.length;e>=0&&n[e]===this.lastPath[e];e--);if(-1===e)return this.lastPath=n,!0}return this.lastPath=n,!1},t}(),R$=function(t){t.on("click",function(e){t.dom.getParent(e.target,"details")&&e.preventDefault()})},$$=function(t){t.parser.addNodeFilter("details",function(t){wt(t,function(t){t.attr("data-mce-open",t.attr("open")),t.attr("open","open")})}),t.serializer.addNodeFilter("details",function(t){wt(t,function(t){var e=t.attr("data-mce-open");t.attr("open",B(e)?e:null),t.attr("data-mce-open",null)})})},L$=function(t){R$(t),$$(t)},j$=function(t){return Hr(t)&&Zo(En.fromDom(t))},F$=function(t){var e=t.selection.getRng(),n=sf.fromRangeStart(e),r=sf.fromRangeEnd(e);if(sf.isElementPosition(n)){var i=n.container();j$(i)&&kp(i).each(function(t){return e.setStart(t.container(),t.offset())})}if(sf.isElementPosition(r)){var i=n.container();j$(i)&&Sp(i).each(function(t){return e.setEnd(t.container(),t.offset())})}t.selection.setRng(Xw(e))},B$=function(t){t.on("click",function(e){e.detail>=3&&F$(t)})},V$=function(t){var e=t.getBoundingClientRect(),n=t.ownerDocument,r=n.documentElement,i=n.defaultView;return{top:e.top+i.pageYOffset-r.clientTop,left:e.left+i.pageXOffset-r.clientLeft}},z$=function(t){return t.inline?V$(t.getBody()):{left:0,top:0}},U$=function(t){var e=t.getBody();return t.inline?{left:e.scrollLeft,top:e.scrollTop}:{left:0,top:0}},H$=function(t){var e=t.getBody(),n=t.getDoc().documentElement,r={left:e.scrollLeft,top:e.scrollTop},i={left:e.scrollLeft||n.scrollLeft,top:e.scrollTop||n.scrollTop};return t.inline?r:i},q$=function(t,e){if(e.target.ownerDocument!==t.getDoc()){var n=V$(t.getContentAreaContainer()),r=H$(t);return{left:e.pageX-n.left+r.left,top:e.pageY-n.top+r.top}}return{left:e.pageX,top:e.pageY}},W$=function(t,e,n){return{pageX:n.left-t.left+e.left,pageY:n.top-t.top+e.top}},G$=function(t,e){return W$(z$(t),U$(t),q$(t,e))},Y$=ai,K$=oi,X$=function(t,e){return Y$(e)&&e!==t},J$=function(t,e,n){return e!==n&&!t.dom.isChildOf(e,n)&&!Y$(e)},Q$=function(t){var e=t.cloneNode(!0);return e.removeAttribute("data-mce-selected"),e},Z$=function(t,e,n,r){var i=t.dom,o=e.cloneNode(!0);i.setStyles(o,{width:n,height:r}),i.setAttrib(o,"data-mce-selected",null);var a=i.create("div",{class:"mce-drag-container","data-mce-bogus":"all",unselectable:"on",contenteditable:"false"});return i.setStyles(a,{position:"absolute",opacity:.5,overflow:"hidden",border:0,padding:0,margin:0,width:n,height:r}),i.setStyles(o,{margin:0,boxSizing:"border-box"}),a.appendChild(o),a},tL=function(t,e){t.parentNode!==e&&e.appendChild(t)},eL=function(t,e,n,r,i,o){var a=0,s=0;t.style.left=e.pageX+"px",t.style.top=e.pageY+"px",e.pageX+n>i&&(a=e.pageX+n-i),e.pageY+r>o&&(s=e.pageY+r-o),t.style.width=n-a+"px",t.style.height=r-s+"px"},nL=function(t){t&&t.parentNode&&t.parentNode.removeChild(t)},rL=function(t){return 0===t.button},iL=function(t,e){return{pageX:e.pageX-t.relX,pageY:e.pageY+5}},oL=function(t,e){return function(n){if(rL(n)){var r=At(e.dom.getParents(n.target),Fc(Y$,K$)).getOr(null);if(X$(e.getBody(),r)){var i=e.dom.getPos(r),o=e.getBody(),a=e.getDoc().documentElement;t.set({element:r,dragging:!1,screenX:n.screenX,screenY:n.screenY,maxX:(e.inline?o.scrollWidth:a.offsetWidth)-2,maxY:(e.inline?o.scrollHeight:a.offsetHeight)-2,relX:n.pageX-i.x,relY:n.pageY-i.y,width:r.offsetWidth,height:r.offsetHeight,ghost:Z$(e,r,r.offsetWidth,r.offsetHeight)})}}}},aL=function(t,e){var n=Ro.throttle(function(t,n){e._selectionOverrides.hideFakeCaret(),e.selection.placeCaretAt(t,n)},0);return e.on("remove",n.stop),function(r){return t.on(function(t){var i=Math.max(Math.abs(r.screenX-t.screenX),Math.abs(r.screenY-t.screenY));if(!t.dragging&&i>10){if(e.fire("dragstart",{target:t.element}).isDefaultPrevented())return;t.dragging=!0,e.focus()}if(t.dragging){var o=iL(t,G$(e,r));tL(t.ghost,e.getBody()),eL(t.ghost,o,t.width,t.height,t.maxX,t.maxY),n(r.clientX,r.clientY)}})}},sL=function(t){var e=t.getSel().getRangeAt(0),n=e.startContainer;return 3===n.nodeType?n.parentNode:n},uL=function(t,e){return function(n){t.on(function(t){if(t.dragging){if(J$(e,sL(e.selection),t.element)){var r=Q$(t.element);e.fire("drop",{clientX:n.clientX,clientY:n.clientY}).isDefaultPrevented()||e.undoManager.transact(function(){nL(t.element),e.insertContent(e.dom.getOuterHTML(r)),e._selectionOverrides.hideFakeCaret()})}e.fire("dragend")}}),cL(t)}},lL=function(t,e){return function(){t.on(function(t){t.dragging&&e.fire("dragend")}),cL(t)}},cL=function(t){t.on(function(t){nL(t.ghost)}),t.clear()},fL=function(t){var e=Vl(),n=_l.DOM,r=document,i=oL(e,t),o=aL(e,t),a=uL(e,t),s=lL(e,t);t.on("mousedown",i),t.on("mousemove",o),t.on("mouseup",a),n.bind(r,"mousemove",o),n.bind(r,"mouseup",s),t.on("remove",function(){n.unbind(r,"mousemove",o),n.unbind(r,"mouseup",s)}),t.on("keydown",function(t){t.keyCode===Sm.ESC&&s()})},dL=function(t){t.on("drop",function(e){var n=void 0!==e.clientX?t.getDoc().elementFromPoint(e.clientX,e.clientY):null;(Y$(n)||"false"===t.dom.getContentEditableParent(n))&&e.preventDefault()})},hL=function(t){var e=function(e){if(!e.isDefaultPrevented()){var n=e.dataTransfer;n&&(yt(n.types,"Files")||n.files.length>0)&&(e.preventDefault(),"drop"===e.type&&ZA(t,"Dropped file type is not supported"))}},n=function(n){_y(t,n.target)&&e(n)},r=function(){var r=_l.DOM,i=t.dom,o=document,a=t.inline?t.getBody():t.getDoc(),s=["drop","dragover"];wt(s,function(t){r.bind(o,t,n),i.bind(a,t,e)}),t.on("remove",function(){wt(s,function(t){r.unbind(o,t,n),i.unbind(a,t,e)})})};t.on("init",function(){Ro.setEditorTimeout(t,r,0)})},pL=function(t){fL(t),dL(t),Qd(t)&&hL(t)},gL=function(t){var e=zl(function(){if(!t.removed&&t.getBody().contains(document.activeElement)){var e=t.selection.getRng();if(e.collapsed){var n=zP(t,e,!1);t.selection.setRng(n)}}},0);t.on("focus",function(){e.throttle()}),t.on("blur",function(){e.cancel()})},mL=function(t){t.on("init",function(){t.on("focusin",function(e){var n=e.target;if(ui(n)){var r=um(t.getBody(),n),i=ai(r)?r:n;t.selection.getNode()!==i&&BP(t,i).each(function(e){return t.selection.setRng(e)})}})})},vL=oi,yL=ai,bL=function(t,e){return um(t.getBody(),e)},_L=function(t){var e,n=t.selection,r=t.dom,i=r.isBlock,o=t.getBody(),a=wh(t,o,i,function(){return Iy(t)}),s="sel-"+r.uniqueId(),u=function(t){return r.hasClass(t,"mce-offscreen-selection")},l=function(t){return t!==o&&(yL(t)||ui(t))&&r.isChildOf(t,o)},c=function(t){return $b(t)||Lb(t)||Db(t)||Mb(t)},f=function(){var t=r.get(s);return t?t.getElementsByTagName("*")[0]:t},d=function(t){t&&n.setRng(t)},h=n.getRng,p=function(e,r,i,o){return void 0===o&&(o=!0),t.fire("ShowCaret",{target:r,direction:e,before:i}).isDefaultPrevented()?null:(o&&n.scrollIntoView(r,-1===e),a.show(i,r))},g=function(t){t.hasAttribute("data-mce-caret")&&(Ca(t),d(h()),n.scrollIntoView(t))},m=function(t){return ga(t)||xa(t)||ka(t)},v=function(t){return m(t.startContainer)||m(t.endContainer)},y=function(e){var n=t.schema.getShortEndedElements(),i=r.createRng(),o=e.startContainer,a=e.startOffset,s=e.endContainer,u=e.endOffset;return te(n,o.nodeName.toLowerCase())?0===a?i.setStartBefore(o):i.setStartAfter(o):i.setStart(o,a),te(n,s.nodeName.toLowerCase())?0===u?i.setEndBefore(s):i.setEndAfter(s):i.setEnd(s,u),i},b=function(e,i,o){var a=t.$,u=Eo(En.fromDom(t.getBody()),"#"+s).fold(function(){return a([])},function(t){return a([t.dom])});0===u.length&&(u=a('<div data-mce-bogus="all" class="mce-offscreen-selection"></div>').attr("id",s),u.appendTo(t.getBody()));var l=r.createRng();i===o&&sn.ie?(u.empty().append('<p style="font-size: 0" data-mce-bogus="all"> </p>').append(i),l.setStartAfter(u[0].firstChild.firstChild),l.setEndAfter(i)):(u.empty().append(" ").append(i).append(" "),l.setStart(u[0].firstChild,1),l.setEnd(u[0].lastChild,0)),u.css({top:r.getPos(e,t.getBody()).y}),u[0].focus();var c=n.getSel();return c.removeAllRanges(),c.addRange(l),l},_=function(n){var i=n.cloneNode(!0),o=t.fire("ObjectSelected",{target:n,targetClone:i});if(o.isDefaultPrevented())return null;var a=b(n,o.targetClone,i),s=En.fromDom(n);return wt(nc(En.fromDom(t.getBody()),"*[data-mce-selected]"),function(t){In(s,t)||wi(t,"data-mce-selected")}),r.getAttrib(n,"data-mce-selected")||n.setAttribute("data-mce-selected","1"),e=n,S(),a},w=function(t,e){if(!t)return null;if(t.collapsed){if(!v(t)){var n=e?1:-1,i=Wh(n,o,t),a=i.getNode(!e);if(Sh(a))return p(n,a,!!e&&!i.isAtEnd(),!1);var s=i.getNode(e);if(Sh(s))return p(n,s,!e&&!i.isAtEnd(),!1)}return null}var u=t.startContainer,c=t.startOffset,f=t.endOffset;if(3===u.nodeType&&0===c&&yL(u.parentNode)&&(u=u.parentNode,c=r.nodeIndex(u),u=u.parentNode),1!==u.nodeType)return null;if(f===c+1&&u===t.endContainer){var d=u.childNodes[c];if(l(d))return _(d)}return null},x=function(){e&&e.removeAttribute("data-mce-selected"),Eo(En.fromDom(t.getBody()),"#"+s).each(Tr),e=null},k=function(){a.destroy(),e=null},S=function(){a.hide()};return sn.ceFalse&&!zC(t)&&function(){t.on("mouseup",function(e){var n=h();n.collapsed&&HA(t,e.clientX,e.clientY)&&VP(t,n,!1).each(d)}),t.on("click",function(e){var i=bL(t,e.target);i&&(yL(i)&&(e.preventDefault(),t.focus()),vL(i)&&r.isChildOf(i,n.getNode())&&x())}),t.on("blur NewBlock",x),t.on("ResizeWindow FullscreenStateChanged",a.reposition);var s=function(t){var e=t.firstChild;if(W(e))return!1;var n=sf.before(e);if(ri(n.getNode())&&1===t.childNodes.length)return!c(n);var r=lp(t),i=r.next(n);return i&&!c(i)},g=function(t,e){return r.getParent(t,i)===r.getParent(e,i)},m=function(e,n){var o=r.getParent(e,i),a=r.getParent(n,i);return!W(o)&&(!(e===a||!r.isChildOf(o,a)||!1!==yL(bL(t,o)))||!r.isChildOf(a,o)&&!g(o,a)&&s(o))};t.on("tap",function(e){var n=e.target,r=bL(t,n);yL(r)?(e.preventDefault(),BP(t,r).each(w)):l(n)&&BP(t,n).each(w)},!0),t.on("mousedown",function(e){var i=e.target;if((i===o||"HTML"===i.nodeName||r.isChildOf(i,o))&&!1!==HA(t,e.clientX,e.clientY)){var a=bL(t,i);if(a)yL(a)?(e.preventDefault(),BP(t,a).each(w)):(x(),vL(a)&&e.shiftKey||lm(e.clientX,e.clientY,n.getRng())||(S(),n.placeCaretAt(e.clientX,e.clientY)));else if(l(i))BP(t,i).each(w);else if(!1===Sh(i)){x(),S();var s=BD(o,e.clientX,e.clientY);if(s&&!m(i,s.node)){e.preventDefault();var u=p(1,s.node,s.before,!1);d(u),t.getBody().focus()}}}}),t.on("keypress",function(t){Sm.modifierPressed(t)||yL(n.getNode())&&t.preventDefault()}),t.on("GetSelectionRange",function(t){var n=t.range;if(e){if(!e.parentNode)return void(e=null);n=n.cloneRange(),n.selectNode(e),t.range=n}}),t.on("SetSelectionRange",function(t){t.range=y(t.range);var e=w(t.range,t.forward);e&&(t.range=e)});var b=function(t){return"mcepastebin"===t.id};t.on("AfterSetSelectionRange",function(t){var e=t.range,n=e.startContainer.parentNode;v(e)||b(n)||S(),u(n)||x()}),t.on("copy",function(t){var e=t.clipboardData;if(!t.isDefaultPrevented()&&t.clipboardData&&!sn.ie){var n=f();n&&(t.preventDefault(),e.clearData(),e.setData("text/html",n.outerHTML),e.setData("text/plain",n.outerText||n.innerText))}}),pL(t),gL(t),mL(t)}(),{showCaret:p,showBlockCaretContainer:g,hideFakeCaret:S,destroy:k}},wL=function(t){var e=_n.each,n=Sm.BACKSPACE,r=Sm.DELETE,i=t.dom,o=t.selection,a=t.parser,s=sn.gecko,u=sn.ie,l=sn.webkit,c=u?"Text":"URL",f=function(e,n){try{t.getDoc().execCommand(e,!1,n)}catch(t){}},d=function(t){return t.isDefaultPrevented()},h=function(e){var n,r;e.dataTransfer&&(t.selection.isCollapsed()&&"IMG"===e.target.tagName&&o.select(e.target),n=t.selection.getContent(),n.length>0&&(r="data:text/mce-internal,"+escape(t.id)+","+escape(n),e.dataTransfer.setData(c,r)))},p=function(t){var e;return t.dataTransfer&&(e=t.dataTransfer.getData(c))&&e.indexOf("data:text/mce-internal,")>=0?(e=e.substr("data:text/mce-internal,".length).split(","),{id:unescape(e[0]),html:unescape(e[1])}):null},g=function(e,n){t.queryCommandSupported("mceInsertClipboardContent")?t.execCommand("mceInsertClipboardContent",!1,{content:e,internal:n}):t.execCommand("mceInsertContent",!1,e)},m=function(){var e=function(t){var e=i.create("body"),n=t.cloneContents();return e.appendChild(n),o.serializer.serialize(e,{format:"html"})},a=function(n){var r=e(n),o=i.createRng();return o.selectNode(t.getBody()),r===e(o)};t.on("keydown",function(e){var o,s,u=e.keyCode;if(!d(e)&&(u===r||u===n)){if(o=t.selection.isCollapsed(),s=t.getBody(),o&&!i.isEmpty(s))return;if(!o&&!a(t.selection.getRng()))return;e.preventDefault(),t.setContent(""),s.firstChild&&i.isBlock(s.firstChild)?t.selection.setCursorLocation(s.firstChild,0):t.selection.setCursorLocation(s,0),t.nodeChanged()}})},v=function(){t.shortcuts.add("meta+a",null,"SelectAll")},y=function(){t.inline||i.bind(t.getDoc(),"mousedown mouseup",function(e){var n;if(e.target===t.getDoc().documentElement)if(n=o.getRng(),t.getBody().focus(),"mousedown"===e.type){if(ga(n.startContainer))return;o.placeCaretAt(e.clientX,e.clientY)}else o.setRng(n)})},b=function(){t.on("keydown",function(e){if(!d(e)&&e.keyCode===n){if(!t.getBody().getElementsByTagName("hr").length)return;if(o.isCollapsed()&&0===o.getRng().startOffset){var r=o.getNode(),a=r.previousSibling;if("HR"===r.nodeName)return i.remove(r),void e.preventDefault();a&&a.nodeName&&"hr"===a.nodeName.toLowerCase()&&(i.remove(a),e.preventDefault())}}})},_=function(){Range.prototype.getClientRects||t.on("mousedown",function(e){if(!d(e)&&"HTML"===e.target.nodeName){var n=t.getBody();n.blur(),Ro.setEditorTimeout(t,function(){n.focus()})}})},w=function(){t.on("click",function(e){var n=e.target;/^(IMG|HR)$/.test(n.nodeName)&&"false"!==i.getContentEditableParent(n)&&(e.preventDefault(),t.selection.select(n),t.nodeChanged()),"A"===n.nodeName&&i.hasClass(n,"mce-item-anchor")&&(e.preventDefault(),o.select(n))})},x=function(){var n=function(){var n=i.getAttribs(o.getStart().cloneNode(!1));return function(){var r=o.getStart();r!==t.getBody()&&(i.setAttrib(r,"style",null),e(n,function(t){r.setAttributeNode(t.cloneNode(!0))}))}},r=function(){return!o.isCollapsed()&&i.getParent(o.getStart(),i.isBlock)!==i.getParent(o.getEnd(),i.isBlock)};t.on("keypress",function(e){var i;if(!d(e)&&(8===e.keyCode||46===e.keyCode)&&r())return i=n(),t.getDoc().execCommand("delete",!1,null),i(),e.preventDefault(),!1}),i.bind(t.getDoc(),"cut",function(e){var i;!d(e)&&r()&&(i=n(),Ro.setEditorTimeout(t,function(){i()}))})},k=function(){t.on("keydown",function(t){if(!d(t)&&t.keyCode===n&&o.isCollapsed()&&0===o.getRng().startOffset){var e=o.getNode().previousSibling;if(e&&e.nodeName&&"table"===e.nodeName.toLowerCase())return t.preventDefault(),!1}})},S=function(){t.on("keydown",function(e){var n,r;if(!d(e)&&e.keyCode===Sm.BACKSPACE){n=o.getRng();var a=n.startContainer,s=n.startOffset,u=i.getRoot();if(r=a,n.collapsed&&0===s){for(;r&&r.parentNode&&r.parentNode.firstChild===r&&r.parentNode!==u;)r=r.parentNode;"BLOCKQUOTE"===r.tagName&&(t.formatter.toggle("blockquote",null,r),n=i.createRng(),n.setStart(a,0),n.setEnd(a,0),o.setRng(n))}}})},C=function(){var e=function(){f("StyleWithCSS",!1),f("enableInlineTableEditing",!1),Ed(t)||f("enableObjectResizing",!1)};Yd(t)||t.on("BeforeExecCommand mousedown",e)},E=function(){var n=function(){e(i.select("a"),function(t){var e=t.parentNode,n=i.getRoot();if(e.lastChild===t){for(;e&&!i.isBlock(e);){if(e.parentNode.lastChild!==e||e===n)return;e=e.parentNode}i.add(e,"br",{"data-mce-bogus":1})}})};t.on("SetContent ExecCommand",function(t){"setcontent"!==t.type&&"mceInsertLink"!==t.command||n()})},T=function(){Qf(t)&&t.on("init",function(){f("DefaultParagraphSeparator",Qf(t))})},A=function(){t.on("keyup focusin mouseup",function(t){Sm.modifierPressed(t)||o.normalize()},!0)},O=function(){t.contentStyles.push("img:-moz-broken {-moz-force-broken-image-icon:1;min-width:24px;min-height:24px}")},P=function(){t.inline||t.on("keydown",function(){document.activeElement===document.body&&t.getWin().focus()})},N=function(){t.inline||(t.contentStyles.push("body {min-height: 150px}"),t.on("click",function(e){var n;if("HTML"===e.target.nodeName){if(sn.ie>11)return void t.getBody().focus();n=t.selection.getRng(),t.getBody().focus(),t.selection.setRng(n),t.selection.normalize(),t.nodeChanged()}}))},D=function(){sn.mac&&t.on("keydown",function(e){if(Sm.metaKeyPressed(e)&&!e.shiftKey&&(37===e.keyCode||39===e.keyCode)){e.preventDefault();t.selection.getSel().modify("move",37===e.keyCode?"backward":"forward","lineboundary")}})},M=function(){f("AutoUrlDetect",!1)},I=function(){t.on("click",function(t){var e=t.target;do{if("A"===e.tagName)return void t.preventDefault()}while(e=e.parentNode)}),t.contentStyles.push(".mce-content-body {-webkit-touch-callout: none}")},R=function(){t.on("init",function(){t.dom.bind(t.getBody(),"submit",function(t){t.preventDefault()})})},$=function(){a.addNodeFilter("br",function(t){for(var e=t.length;e--;)"Apple-interchange-newline"===t[e].attr("class")&&t[e].remove()})},L=function(){t.on("dragstart",function(t){h(t)}),t.on("drop",function(e){if(!d(e)){var n=p(e);if(n&&n.id!==t.id){e.preventDefault();var r=Nm(e.x,e.y,t.getDoc());o.setRng(r),g(n.html,!0)}}})},j=X,F=function(){if(!s||t.removed)return!1;var e=t.selection.getSel();return!e||!e.rangeCount||0===e.rangeCount};return zC(t)?function(){l&&(y(),w(),R(),v(),sn.iOS&&(P(),N(),I())),s&&(_(),C(),O(),D())}():function(){S(),m(),sn.windowsPhone||A(),l&&(y(),w(),T(),R(),k(),$(),sn.iOS?(P(),N(),I()):v()),sn.ie>=11&&(N(),k()),sn.ie&&(v(),M(),L()),s&&(b(),_(),x(),C(),E(),O(),D(),k())}(),{refreshContentEditable:j,isHidden:F}},xL=_l.DOM,kL=function(t,e){var n=En.fromDom(t.getBody()),r=pr(hr(n)),i=En.fromTag("style");mi(i,"type","text/css"),xr(i,En.fromText(e)),xr(r,i),t.on("remove",function(){Tr(i)})},SL=function(t){return t.inline?t.getElement().nodeName.toLowerCase():void 0},CL=function(t){return Xt(t,function(t){return!1===q(t)})},EL=function(t){var e=t.settings;return CL({block_elements:e.block_elements,boolean_attributes:e.boolean_attributes,custom_elements:e.custom_elements,extended_valid_elements:e.extended_valid_elements,invalid_elements:e.invalid_elements,invalid_styles:e.invalid_styles,move_caret_before_on_enter_elements:e.move_caret_before_on_enter_elements,non_empty_elements:e.non_empty_elements,schema:e.schema,self_closing_elements:e.self_closing_elements,short_ended_elements:e.short_ended_elements,special:e.special,text_block_elements:e.text_block_elements,text_inline_elements:e.text_inline_elements,valid_children:e.valid_children,valid_classes:e.valid_classes,valid_elements:e.valid_elements,valid_styles:e.valid_styles,verify_html:e.verify_html,whitespace_elements:e.whitespace_elements,padd_empty_block_inline_children:e.format_empty_lines})},TL=function(t){var e=t.settings,n=t.editorUpload.blobCache;return CL({allow_conditional_comments:e.allow_conditional_comments,allow_html_data_urls:e.allow_html_data_urls,allow_svg_data_urls:e.allow_svg_data_urls,allow_html_in_named_anchor:e.allow_html_in_named_anchor,allow_script_urls:e.allow_script_urls,allow_unsafe_link_target:e.allow_unsafe_link_target,convert_fonts_to_spans:e.convert_fonts_to_spans,fix_list_elements:e.fix_list_elements,font_size_legacy_values:e.font_size_legacy_values,forced_root_block:e.forced_root_block,forced_root_block_attrs:e.forced_root_block_attrs,padd_empty_with_br:e.padd_empty_with_br,preserve_cdata:e.preserve_cdata,remove_trailing_brs:e.remove_trailing_brs,inline_styles:e.inline_styles,root_name:SL(t),validate:!0,blob_cache:n,document:t.getDoc(),images_dataimg_filter:e.images_dataimg_filter})},AL=function(t){var e=t.settings;return de(de(de({},TL(t)),EL(t)),CL({url_converter:e.url_converter,url_converter_scope:e.url_converter_scope,element_format:e.element_format,entities:e.entities,entity_encoding:e.entity_encoding,indent:e.indent,indent_after:e.indent_after,indent_before:e.indent_before}))},OL=function(t){var e=OT(TL(t),t.schema);return e.addAttributeFilter("src,href,style,tabindex",function(e,n){for(var r,i,o=e.length,a=t.dom,s="data-mce-"+n;o--;)if(r=e[o],(i=r.attr(n))&&!r.attr(s)){if(0===i.indexOf("data:")||0===i.indexOf("blob:"))continue;"style"===n?(i=a.serializeStyle(a.parseStyle(i),r.name),i.length||(i=null),r.attr(s,i),r.attr(n,i)):"tabindex"===n?(r.attr(s,i),r.attr(n,null)):r.attr(s,t.convertURL(i,n,r.name))}}),e.addNodeFilter("script",function(t){for(var e=t.length;e--;){var n=t[e],r=n.attr("type")||"no/type";0!==r.indexOf("mce-")&&n.attr("type","mce-"+r)}}),t.settings.preserve_cdata&&e.addNodeFilter("#cdata",function(e){for(var n=e.length;n--;){var r=e[n];r.type=8,r.name="#comment",r.value="[CDATA["+t.dom.encode(r.value)+"]]"}}),e.addNodeFilter("p,h1,h2,h3,h4,h5,h6,div",function(e){for(var n=e.length,r=t.schema.getNonEmptyElements();n--;){var i=e[n];i.isEmpty(r)&&0===i.getAll("br").length&&(i.append(new Jy("br",1)).shortEnded=!0)}}),e},PL=function(t){t.settings.auto_focus&&Ro.setEditorTimeout(t,function(){var e;e=!0===t.settings.auto_focus?t:t.editorManager.get(t.settings.auto_focus),e.destroyed||e.focus()},100)},NL=function(t){var e=t.dom.getRoot();t.inline||Kg(t)&&t.selection.getStart(!0)!==e||kp(e).each(function(e){var n=e.getNode(),r=Xr(n)?kp(n).getOr(e):e;sn.browser.isIE()?ay(t,r.toRange()):t.selection.setRng(r.toRange())})},DL=function(t){t.bindPendingEventDelegates(),t.initialized=!0,bm(t),t.focus(!0),NL(t),t.nodeChanged({initial:!0}),t.execCallback("init_instance_callback",t),PL(t)},ML=function(t){return t.inline?t.ui.styleSheetLoader:t.dom.styleSheetLoader},IL=function(t,e,n){var r=[new Ao(function(n,r){return ML(t).loadAll(e,n,r)})];return t.inline?r:r.concat([new Ao(function(e,r){return t.ui.styleSheetLoader.loadAll(n,e,r)})])},RL=function(t){var e=ML(t),n=kd(t),r=t.contentCSS,i=function(){e.unloadAll(r),t.inline||t.ui.styleSheetLoader.unloadAll(n)},o=function(){t.removed?i():t.on("remove",i)};if(t.contentStyles.length>0){var a="";_n.each(t.contentStyles,function(t){a+=t+"\r\n"}),t.dom.addStyle(a)}var s=Ao.all(IL(t,r,n)).then(o).catch(o);return t.settings.content_style&&kL(t,t.settings.content_style),s},$L=function(t){var e=t.settings,n=t.getDoc(),r=t.getBody();vm(t),e.browser_spellcheck||e.gecko_spellcheck||(n.body.spellcheck=!1,xL.setAttrib(r,"spellcheck","false")),t.quirks=wL(t),ym(t);var i=Sd(t);void 0!==i&&(r.dir=i),e.protect&&t.on("BeforeSetContent",function(t){_n.each(e.protect,function(e){t.content=t.content.replace(e,function(t){return"\x3c!--mce:protected "+escape(t)+"--\x3e"})})}),t.on("SetContent",function(){t.addVisual(t.getBody())}),t.on("compositionstart compositionend",function(e){t.composing="compositionstart"===e.type})},LL=function(t){zC(t)||t.load({initial:!0,format:"html"}),t.startContent=t.getContent({format:"raw"})},jL=function(t){!0!==t.removed&&(LL(t),DL(t))},FL=function(t,e){var n=t.settings,r=t.getElement(),i=t.getDoc();n.inline||(t.getElement().style.visibility=t.orgVisibility),e||t.inline||(i.open(),i.write(t.iframeHTML),i.close()),t.inline&&(xL.addClass(r,"mce-content-body"),t.contentDocument=i=document,t.contentWindow=window,t.bodyElement=r,t.contentAreaContainer=r);var o=t.getBody();o.disabled=!0,t.readonly=!!n.readonly,t.readonly||(t.inline&&"static"===xL.getStyle(o,"position",!0)&&(o.style.position="relative"),o.contentEditable=t.getParam("content_editable_state",!0)),o.disabled=!1,t.editorUpload=kO(t),t.schema=Ls(EL(t)),t.dom=_l(i,{keep_values:!0,url_converter:t.convertURL,url_converter_scope:t,hex_colors:n.force_hex_style_colors,update_styles:!0,root_element:t.inline?t.getBody():null,collect:function(){return t.inline},schema:t.schema,contentCssCors:md(t),referrerPolicy:vd(t),onSetAttrib:function(e){t.fire("SetAttrib",e)}}),t.parser=OL(t),t.serializer=zT(AL(t),t),t.selection=DE(t.dom,t.getWin(),t.serializer,t),t.annotator=am(t),t.formatter=MO(t),t.undoManager=LO(t),t._nodeChangeDispatcher=new I$(t),t._selectionOverrides=_L(t),FM(t),L$(t),zC(t)||B$(t);var a=M$(t);$M(t,a),qM(t),HO(t);var s=HC(t);$L(t),s.fold(function(){RL(t).then(function(){return jL(t)})},function(e){t.setProgressState(!0),RL(t).then(function(){e().then(function(e){t.setProgressState(!1),jL(t)},function(e){t.notificationManager.open({type:"error",text:String(e)}),jL(t)})})})},BL=_l.DOM,VL=function(t,e){if(document.domain!==window.location.hostname&&sn.browser.isIE()){var n=mO("mce");t[n]=function(){FL(t)};var r='javascript:(function(){document.open();document.domain="'+document.domain+'";var ed = window.parent.tinymce.get("'+t.id+'");document.write(ed.iframeHTML);document.close();ed.'+n+"(true);})()";return BL.setAttrib(e,"src",r),!0}return!1},zL=function(t,e,n,r){var i=En.fromTag("iframe");return vi(i,r),vi(i,{id:t+"_ifr",frameBorder:"0",allowTransparency:"true",title:e}),Jl(i,"tox-edit-area__iframe"),i},UL=function(t){var e=Wf(t)+"<html><head>";Gf(t)!==t.documentBaseUrl&&(e+='<base href="'+t.documentBaseURI.getURI()+'" />'),e+='<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />';var n=Yf(t),r=Kf(t),i=t.translate(nh(t));return Xf(t)&&(e+='<meta http-equiv="Content-Security-Policy" content="'+Xf(t)+'" />'),e+='</head><body id="'+n+'" class="mce-content-body '+r+'" data-id="'+t.id+'" aria-label="'+i+'"><br></body></html>'},HL=function(t,e){var n=t.translate("Rich Text Area"),r=zL(t.id,n,e.height,qf(t)).dom;r.onload=function(){r.onload=null,t.fire("load")};var i=VL(t,r);return t.contentAreaContainer=e.iframeContainer,t.iframeElement=r,t.iframeHTML=UL(t),BL.add(e.iframeContainer,r),i},qL=function(t,e){var n=HL(t,e);e.editorContainer&&(BL.get(e.editorContainer).style.display=t.orgDisplay,t.hidden=BL.isHidden(e.editorContainer)),t.getElement().style.display="none",BL.setAttrib(t.id,"aria-hidden","true"),n||FL(t)},WL=_l.DOM,GL=function(t,e,n){var r=KA.get(n),i=KA.urls[n]||t.documentBaseUrl.replace(/\/$/,"");if(n=_n.trim(n),r&&-1===_n.inArray(e,n)){if(_n.each(KA.dependencies(n),function(n){GL(t,e,n)}),t.plugins[n])return;try{var o=new r(t,i,t.$);t.plugins[n]=o,o.init&&(o.init(t,i),e.push(n))}catch(e){aO(t,n,e)}}},YL=function(t){return t.replace(/^\-/,"")},KL=function(t){var e=[];_n.each(Xd(t).split(/[ ,]/),function(n){GL(t,e,YL(n))})},XL=function(t){var e=_n.trim(cd(t)),n=t.ui.registry.getAll().icons,r=de(de({},IA.get("default").icons),IA.get(e).icons);Ht(r,function(e,r){te(n,r)||t.ui.registry.addIcon(r,e)})},JL=function(t){var e=Nd(t);if(B(e)){t.settings.theme=YL(e);var n=XA.get(e);t.theme=new n(t,XA.urls[e]),t.theme.init&&t.theme.init(t,XA.urls[e]||t.documentBaseUrl.replace(/\/$/,""),t.$)}else t.theme={}},QL=function(t){return t.theme.renderUI()},ZL=function(t){var e=t.getElement(),n=Nd(t),r=n(t,e);return r.editorContainer.nodeType&&(r.editorContainer.id=r.editorContainer.id||t.id+"_parent"),r.iframeContainer&&r.iframeContainer.nodeType&&(r.iframeContainer.id=r.iframeContainer.id||t.id+"_iframecontainer"),r.height=r.iframeHeight?r.iframeHeight:e.offsetHeight,r},tj=function(t){return{editorContainer:t,iframeContainer:t,api:{}}},ej=function(t){var e=WL.create("div");return WL.insertAfter(e,t),tj(e)},nj=function(t){var e=t.getElement();return t.inline?tj(null):ej(e)},rj=function(t){var e=t.getElement();return t.orgDisplay=e.style.display,B(Nd(t))?QL(t):Y(Nd(t))?ZL(t):nj(t)},ij=function(t,e){var n={show:dt.from(e.show).getOr(X),hide:dt.from(e.hide).getOr(X),disable:dt.from(e.disable).getOr(X),isDisabled:dt.from(e.isDisabled).getOr(at),enable:function(){t.mode.isReadOnly()||dt.from(e.enable).map(ot)}};t.ui=de(de({},t.ui),n)},oj=function(t){t.fire("ScriptsLoaded"),XL(t),JL(t),KL(t);var e=rj(t);ij(t,dt.from(e.api).getOr({}));var n={editorContainer:e.editorContainer,iframeContainer:e.iframeContainer};return t.editorContainer=n.editorContainer?n.editorContainer:null,dO(t),t.inline?FL(t):qL(t,n)},aj=_l.DOM,sj=function(t){return"-"===t.charAt(0)},uj=function(t,e){var n=yd(e),r=bd(e);if(!1===jl.hasCode(n)&&"en"!==n){var i=""!==r?r:e.editorManager.baseURL+"/langs/"+n+".js";t.add(i,X,void 0,function(){oO(e,i,n)})}},lj=function(t,e,n,r){var i=Nd(e);if(B(i)){if(!sj(i)&&!te(XA.urls,i)){var o=jd(e);o?XA.load(i,e.documentBaseURI.toAbsolute(o)):XA.load(i,"themes/"+i+"/theme"+n+".js")}t.loadQueue(function(){XA.waitFor(i,r)})}else r()},cj=function(t){return dt.from(fd(t)).filter(function(t){return t.length>0}).map(function(t){return{url:t,name:dt.none()}})},fj=function(t,e,n){return dt.from(e).filter(function(t){return t.length>0&&!IA.has(t)}).map(function(e){return{url:t.editorManager.baseURL+"/icons/"+e+"/icons"+n+".js",name:dt.some(e)}})},dj=function(t,e,n){var r=fj(e,"default",n),i=cj(e).orThunk(function(){return fj(e,cd(e),"")});wt(ci([r,i]),function(n){t.add(n.url,X,void 0,function(){iO(e,n.url,n.name.getOrUndefined())})})},hj=function(t,e){_n.each(Jd(t),function(e,n){KA.load(n,e,X,void 0,function(){rO(t,e,n)}),t.settings.plugins+=" "+n}),_n.each(Xd(t).split(/[ ,]/),function(n){if((n=_n.trim(n))&&!KA.urls[n])if(sj(n)){n=n.substr(1,n.length);var r=KA.dependencies(n);_n.each(r,function(n){var r={prefix:"plugins/",resource:n,suffix:"/plugin"+e+".js"},i=KA.createUrl(r,n);KA.load(i.resource,i,X,void 0,function(){rO(t,i.prefix+i.resource+i.suffix,i.resource)})})}else{var i={prefix:"plugins/",resource:n,suffix:"/plugin"+e+".js"};KA.load(n,i,X,void 0,function(){rO(t,i.prefix+i.resource+i.suffix,n)})}})},pj=function(t,e){var n=Sl.ScriptLoader;lj(n,t,e,function(){uj(n,t),dj(n,t,e),hj(t,e),n.loadQueue(function(){t.removed||oj(t)},t,function(){t.removed||oj(t)})})},gj=function(t,e){return Lo.forElement(t,{contentCssCors:Kd(e),referrerPolicy:vd(e)})},mj=function(t){var e=t.id;jl.setCode(yd(t));var n=function(){aj.unbind(window,"ready",n),t.render()};if(!Zs.Event.domLoaded)return void aj.bind(window,"ready",n);if(t.getElement()&&sn.contentEditable){var r=En.fromDom(t.getElement()),i=xi(r);t.on("remove",function(){xt(r.dom.attributes,function(t){return wi(r,t.name)}),vi(r,i)}),t.ui.styleSheetLoader=gj(r,t),Fd(t)?t.inline=!0:(t.orgVisibility=t.getElement().style.visibility,t.getElement().style.visibility="hidden");var o=t.getElement().form||aj.getParent(e,"form");o&&(t.formElement=o,Bd(t)&&!Qr(t.getElement())&&(aj.insertAfter(aj.create("input",{type:"hidden",name:e}),e),t.hasHiddenInput=!0),t.formEventDelegate=function(e){t.fire(e.type,e)},aj.bind(o,"submit reset",t.formEventDelegate),t.on("reset",function(){t.resetContent()}),!Vd(t)||o.submit.nodeType||o.submit.length||o._mceOldSubmit||(o._mceOldSubmit=o.submit,o.submit=function(){return t.editorManager.triggerSave(),t.setDirty(!1),o._mceOldSubmit(o)})),t.windowManager=JA(t),t.notificationManager=YA(t),zd(t)&&t.on("GetContent",function(t){t.save&&(t.content=aj.encode(t.content))}),Ud(t)&&t.on("submit",function(){t.initialized&&t.save()}),Hd(t)&&(t._beforeUnload=function(){!t.initialized||t.destroyed||t.isHidden()||t.save({format:"raw",no_events:!0,set_dirty:!1})},t.editorManager.on("BeforeUnload",t._beforeUnload)),t.editorManager.add(t),pj(t,t.suffix)}},vj=function(t,e){return vE(t,e)},yj={"font-size":"size","font-family":"face"},bj=function(t,e,n){var r=function(e){return Ti(e,t).orThunk(function(){return"font"===jn(e)?Zt(yj,t).bind(function(t){return bi(e,t)}):dt.none()})},i=function(t){return In(En.fromDom(e),t)};return Hx(En.fromDom(n),function(t){return r(t)},i)},_j=function(t){return t.replace(/[\'\"\\]/g,"").replace(/,\s+/g,",")},wj=function(t,e){return dt.from(_l.DOM.getStyle(e,t,!0))},xj=function(t){return function(e,n){return dt.from(n).map(En.fromDom).filter(zn).bind(function(n){return bj(t,e,n.dom).or(wj(t,n.dom))}).getOr("")}},kj=xj("font-size"),Sj=J(_j,xj("font-family")),Cj=function(t){return kp(t.getBody()).map(function(t){var e=t.container();return Zr(e)?e.parentNode:e})},Ej=function(t){return dt.from(t.selection.getRng()).bind(function(e){var n=t.getBody();return e.startContainer===n&&0===e.startOffset?dt.none():dt.from(t.selection.getStart(!0))})},Tj=function(t,e){return Ej(t).orThunk(r(Cj,t)).map(En.fromDom).filter(zn).bind(e)},Aj=function(t,e){return Tj(t,Q(dt.some,e))},Oj=function(t,e){if(/^[0-9.]+$/.test(e)){var n=parseInt(e,10);if(n>=1&&n<=7){var r=id(t),i=od(t);return i?i[n-1]||e:r[n-1]||e}return e}return e},Pj=function(t){var e=t.split(/\s*,\s*/);return _t(e,function(t){return-1===t.indexOf(" ")||Oe(t,'"')||Oe(t,"'")?t:"'"+t+"'"}).join(",")},Nj=function(t,e){var n=Oj(t,e);t.formatter.toggle("fontname",{value:Pj(n)}),t.nodeChanged()},Dj=function(t){return Aj(t,function(e){return Sj(t.getBody(),e.dom)}).getOr("")},Mj=function(t,e){t.formatter.toggle("fontsize",{value:Oj(t,e)}),t.nodeChanged()},Ij=function(t){return Aj(t,function(e){return kj(t.getBody(),e.dom)}).getOr("")},Rj=function(t){return Aj(t,function(e){var n=En.fromDom(t.getBody()),i=Hx(e,function(t){return Ti(t,"line-height")},r(In,n)),o=function(){var t=parseFloat(Ci(e,"line-height")),n=parseFloat(Ci(e,"font-size"));return String(t/n)};return i.getOrThunk(o)}).getOr("")},$j=function(t,e){t.formatter.toggle("lineheight",{value:String(e)}),t.nodeChanged()},Lj=function(t){if("string"!=typeof t){var e=_n.extend({paste:t.paste,data:{paste:t.paste}},t);return{content:t.content,details:e}}return{content:t,details:{}}},jj=function(t,e){var n=Lj(e);gE(t,n.content,n.details)},Fj=_n.each,Bj=_n.map,Vj=_n.inArray,zj=function(){function t(t){this.commands={state:{},exec:{},value:{}},this.editor=t,this.setupCommands(t)}return t.prototype.execCommand=function(t,e,n,r){var i,o=!1,a=this;if(!a.editor.removed){if("mcefocus"!==t.toLowerCase()&&(/^(mceAddUndoLevel|mceEndUndoLevel|mceBeginUndoLevel|mceRepaint)$/.test(t)||r&&r.skip_focus?uy(a.editor):a.editor.focus()),r=a.editor.fire("BeforeExecCommand",{command:t,ui:e,value:n}),r.isDefaultPrevented())return!1;var s=t.toLowerCase();if(i=a.commands.exec[s])return i(s,e,n),a.editor.fire("ExecCommand",{command:t,ui:e,value:n}),!0;if(Fj(this.editor.plugins,function(r){if(r.execCommand&&r.execCommand(t,e,n))return a.editor.fire("ExecCommand",{command:t,ui:e,value:n}),o=!0,!1}),o)return o;if(a.editor.theme&&a.editor.theme.execCommand&&a.editor.theme.execCommand(t,e,n))return a.editor.fire("ExecCommand",{command:t,ui:e,value:n}),!0;try{o=a.editor.getDoc().execCommand(t,e,n)}catch(t){}return!!o&&(a.editor.fire("ExecCommand",{command:t,ui:e,value:n}),!0)}},t.prototype.queryCommandState=function(t){var e;if(!this.editor.quirks.isHidden()&&!this.editor.removed){if(t=t.toLowerCase(),e=this.commands.state[t])return e(t);try{return this.editor.getDoc().queryCommandState(t)}catch(t){}return!1}},t.prototype.queryCommandValue=function(t){var e;if(!this.editor.quirks.isHidden()&&!this.editor.removed){if(t=t.toLowerCase(),e=this.commands.value[t])return e(t);try{return this.editor.getDoc().queryCommandValue(t)}catch(t){}}},t.prototype.addCommands=function(t,e){void 0===e&&(e="exec");var n=this;Fj(t,function(t,r){Fj(r.toLowerCase().split(","),function(r){n.commands[e][r]=t})})},t.prototype.addCommand=function(t,e,n){var r=this;t=t.toLowerCase(),this.commands.exec[t]=function(t,i,o,a){return e.call(n||r.editor,i,o,a)}},t.prototype.queryCommandSupported=function(t){if(t=t.toLowerCase(),this.commands.exec[t])return!0;try{return this.editor.getDoc().queryCommandSupported(t)}catch(t){}return!1},t.prototype.addQueryStateHandler=function(t,e,n){var r=this;t=t.toLowerCase(),this.commands.state[t]=function(){return e.call(n||r.editor)}},t.prototype.addQueryValueHandler=function(t,e,n){var r=this;t=t.toLowerCase(),this.commands.value[t]=function(){return e.call(n||r.editor)}},t.prototype.hasCustomCommand=function(t){return t=t.toLowerCase(),!!this.commands.exec[t]},t.prototype.execNativeCommand=function(t,e,n){return void 0===e&&(e=!1),void 0===n&&(n=null),this.editor.getDoc().execCommand(t,e,n)},t.prototype.isFormatMatch=function(t){return this.editor.formatter.match(t)},t.prototype.toggleFormat=function(t,e){this.editor.formatter.toggle(t,e),this.editor.nodeChanged()},t.prototype.storeSelection=function(t){this.selectionBookmark=this.editor.selection.getBookmark(t)},t.prototype.restoreSelection=function(){this.editor.selection.moveToBookmark(this.selectionBookmark)},t.prototype.setupCommands=function(t){var e=this;this.addCommands({"mceResetDesignMode,mceBeginUndoLevel":X,"mceEndUndoLevel,mceAddUndoLevel":function(){t.undoManager.add()},mceFocus:function(e,n,r){jy(t,r)},"Cut,Copy,Paste":function(n){var r,i=t.getDoc();try{e.execNativeCommand(n)}catch(t){r=!0}if("paste"!==n||i.queryCommandEnabled(n)||(r=!0),r||!i.queryCommandSupported(n)){var o=t.translate("Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X/C/V keyboard shortcuts instead.");sn.mac&&(o=o.replace(/Ctrl\+/g,"⌘+")),t.notificationManager.open({text:o,type:"error"})}},unlink:function(){if(t.selection.isCollapsed()){var e=t.dom.getParent(t.selection.getStart(),"a");return void(e&&t.dom.remove(e,!0))}t.formatter.remove("link")},"JustifyLeft,JustifyCenter,JustifyRight,JustifyFull,JustifyNone":function(n){var r=n.substring(7);"full"===r&&(r="justify"),Fj("left,center,right,justify".split(","),function(e){r!==e&&t.formatter.remove("align"+e)}),"none"!==r&&e.toggleFormat("align"+r)},"InsertUnorderedList,InsertOrderedList":function(n){var r;e.execNativeCommand(n);var i=t.dom.getParent(t.selection.getNode(),"ol,ul");i&&(r=i.parentNode,/^(H[1-6]|P|ADDRESS|PRE)$/.test(r.nodeName)&&(e.storeSelection(),t.dom.split(r,i),e.restoreSelection()))},"Bold,Italic,Underline,Strikethrough,Superscript,Subscript":function(t){e.toggleFormat(t)},"ForeColor,HiliteColor":function(t,n,r){e.toggleFormat(t,{value:r})},FontName:function(e,n,r){Nj(t,r)},FontSize:function(e,n,r){Mj(t,r)},LineHeight:function(e,n,r){$j(t,r)},Lang:function(t,n,r){e.toggleFormat(t,{value:r.code,customValue:r.customCode})},RemoveFormat:function(e){t.formatter.remove(e)},mceBlockQuote:function(){e.toggleFormat("blockquote")},FormatBlock:function(t,n,r){return e.toggleFormat(r||"p")},mceCleanup:function(){var e=t.selection.getBookmark();t.setContent(t.getContent()),t.selection.moveToBookmark(e)},mceRemoveNode:function(n,r,i){var o=i||t.selection.getNode();o!==t.getBody()&&(e.storeSelection(),t.dom.remove(o,!0),e.restoreSelection())},mceSelectNodeDepth:function(e,n,r){var i=0;t.dom.getParent(t.selection.getNode(),function(e){if(1===e.nodeType&&i++===r)return t.selection.select(e),!1},t.getBody())},mceSelectNode:function(e,n,r){t.selection.select(r)},mceInsertContent:function(e,n,r){jj(t,r)},mceInsertRawHTML:function(e,n,r){t.selection.setContent("tiny_mce_marker");var i=t.getContent();t.setContent(i.replace(/tiny_mce_marker/g,function(){return r}))},mceInsertNewLine:function(e,n,r){l$(t,r)},mceToggleFormat:function(t,n,r){e.toggleFormat(r)},mceSetContent:function(e,n,r){t.setContent(r)},"Indent,Outdent":function(e){NM(t,e)},mceRepaint:X,InsertHorizontalRule:function(){t.execCommand("mceInsertContent",!1,"<hr />")},mceToggleVisualAid:function(){t.hasVisual=!t.hasVisual,t.addVisual()},mceReplaceContent:function(e,n,r){t.execCommand("mceInsertContent",!1,r.replace(/\{\$selection\}/g,t.selection.getContent({format:"text"})))},mceInsertLink:function(e,n,r){"string"==typeof r&&(r={href:r});var i=t.dom.getParent(t.selection.getNode(),"a");r.href=r.href.replace(/ /g,"%20"),i&&r.href||t.formatter.remove("link"),r.href&&t.formatter.apply("link",r,i)},selectAll:function(){var e=t.dom.getParent(t.selection.getStart(),oi);if(e){var n=t.dom.createRng();n.selectNodeContents(e),t.selection.setRng(n)}},mceNewDocument:function(){t.setContent("")},InsertLineBreak:function(e,n,r){return WR(t,r),!0}});var n=function(e){return function(){var n=t.selection,r=n.isCollapsed()?[t.dom.getParent(n.getNode(),t.dom.isBlock)]:n.getSelectedBlocks(),i=Bj(r,function(n){return!!t.formatter.matchNode(n,e)});return-1!==Vj(i,!0)}};e.addCommands({JustifyLeft:n("alignleft"),JustifyCenter:n("aligncenter"),JustifyRight:n("alignright"),JustifyFull:n("alignjustify"),"Bold,Italic,Underline,Strikethrough,Superscript,Subscript":function(t){return e.isFormatMatch(t)},mceBlockQuote:function(){return e.isFormatMatch("blockquote")},Outdent:function(){return TM(t)},"InsertUnorderedList,InsertOrderedList":function(e){var n=t.dom.getParent(t.selection.getNode(),"ul,ol");return n&&("insertunorderedlist"===e&&"UL"===n.tagName||"insertorderedlist"===e&&"OL"===n.tagName)}},"state"),e.addCommands({Undo:function(){t.undoManager.undo()},Redo:function(){t.undoManager.redo()}}),e.addQueryValueHandler("FontName",function(){return Dj(t)},this),e.addQueryValueHandler("FontSize",function(){return Ij(t)},this),e.addQueryValueHandler("LineHeight",function(){return Rj(t)},this)},t}(),Uj=function(t,e,n){tc(t,e)&&!1===n?Zl(t,e):n&&Jl(t,e)},Hj=function(t,e,n){try{t.getDoc().execCommand(e,!1,String(n))}catch(t){}},qj=function(t,e){t.dom.contentEditable=e?"true":"false"},Wj=function(t){wt(nc(t,'*[contenteditable="true"]'),function(t){mi(t,"data-mce-contenteditable","true"),qj(t,!1)})},Gj=function(t){wt(nc(t,'*[data-mce-contenteditable="true"]'),function(t){wi(t,"data-mce-contenteditable"),qj(t,!0)})},Yj=function(t){dt.from(t.selection.getNode()).each(function(t){t.removeAttribute("data-mce-selected")})},Kj=function(t){t.selection.setRng(t.selection.getRng())},Xj=function(t,e){var n=En.fromDom(t.getBody());Uj(n,"mce-content-readonly",e),e?(t.selection.controlSelection.hideResizeRect(),t._selectionOverrides.hideFakeCaret(),Yj(t),t.readonly=!0,qj(n,!1),Wj(n)):(t.readonly=!1,qj(n,!0),Gj(n),Hj(t,"StyleWithCSS",!1),Hj(t,"enableInlineTableEditing",!1),Hj(t,"enableObjectResizing",!1),Ry(t)&&t.focus(),Kj(t),t.nodeChanged())},Jj=function(t){return t.readonly},Qj=function(t){t.parser.addAttributeFilter("contenteditable",function(e){Jj(t)&&wt(e,function(t){t.attr("data-mce-contenteditable",t.attr("contenteditable")),t.attr("contenteditable","false")})}),t.serializer.addAttributeFilter("data-mce-contenteditable",function(e){Jj(t)&&wt(e,function(t){t.attr("contenteditable",t.attr("data-mce-contenteditable"))})}),t.serializer.addTempAttr("data-mce-contenteditable")},Zj=function(t){t.serializer?Qj(t):t.on("PreInit",function(){Qj(t)})},tF=function(t){return"click"===t.type},eF=function(t,e){return To(e,"a",function(e){return In(e,En.fromDom(t.getBody()))}).bind(function(t){return bi(t,"href")})},nF=function(t,e){if(tF(e)&&!Sm.metaKeyPressed(e)){var n=En.fromDom(e.target);eF(t,n).each(function(n){if(e.preventDefault(),/^#/.test(n)){var r=t.dom.select(n+',[name="'+Te(n,"#")+'"]');r.length&&t.selection.scrollIntoView(r[0],!0)}else window.open(n,"_blank","rel=noopener noreferrer,menubar=yes,toolbar=yes,location=yes,status=yes,resizable=yes,scrollbars=yes")})}},rF=function(t){t.on("ShowCaret",function(e){Jj(t)&&e.preventDefault()}),t.on("ObjectSelected",function(e){Jj(t)&&e.preventDefault()})},iF=_n.makeMap("focus blur focusin focusout click dblclick mousedown mouseup mousemove mouseover beforepaste paste cut copy selectionchange mouseout mouseenter mouseleave wheel keydown keypress keyup input beforeinput contextmenu dragstart dragend dragover draggesture dragdrop drop drag submit compositionstart compositionend compositionupdate touchstart touchmove touchend touchcancel"," "),oF=function(){function t(t){this.bindings={},this.settings=t||{},this.scope=this.settings.scope||this,this.toggleEvent=this.settings.toggleEvent||at}return t.isNative=function(t){return!!iF[t.toLowerCase()]},t.prototype.fire=function(t,e){var n=t.toLowerCase(),r=qs(n,e||{},this.scope);this.settings.beforeFire&&this.settings.beforeFire(r);var i=this.bindings[n];if(i)for(var o=0,a=i.length;o<a;o++){var s=i[o];if(!s.removed){if(s.once&&this.off(n,s.func),r.isImmediatePropagationStopped())return r;if(!1===s.func.call(this.scope,r))return r.preventDefault(),r}}return r},t.prototype.on=function(t,e,n,r){if(!1===e&&(e=at),e){var i={func:e,removed:!1};r&&_n.extend(i,r);for(var a=t.toLowerCase().split(" "),s=a.length;s--;){var u=a[s],l=this.bindings[u];l||(l=[],this.toggleEvent(u,!0)),l=n?o([i],l,!0):o(o([],l,!0),[i],!1),this.bindings[u]=l}}return this},t.prototype.off=function(t,e){var n=this;if(t)for(var r=t.toLowerCase().split(" "),i=r.length;i--;){var o=r[i],a=this.bindings[o];if(!o)return Ht(this.bindings,function(t,e){n.toggleEvent(e,!1),delete n.bindings[e]}),this;if(a){if(e){var s=kt(a,function(t){return t.func===e});a=s.fail,this.bindings[o]=a,wt(s.pass,function(t){t.removed=!0})}else a.length=0;a.length||(this.toggleEvent(t,!1),delete this.bindings[o])}}else Ht(this.bindings,function(t,e){n.toggleEvent(e,!1)}),this.bindings={};return this},t.prototype.once=function(t,e,n){return this.on(t,e,n,{once:!0})},t.prototype.has=function(t){return t=t.toLowerCase(),!(!this.bindings[t]||0===this.bindings[t].length)},t}(),aF=function(t){return t._eventDispatcher||(t._eventDispatcher=new oF({scope:t,toggleEvent:function(e,n){oF.isNative(e)&&t.toggleNativeEvent&&t.toggleNativeEvent(e,n)}})),t._eventDispatcher},sF={fire:function(t,e,n){var r=this;if(r.removed&&"remove"!==t&&"detach"!==t)return e;var i=aF(r).fire(t,e);if(!1!==n&&r.parent)for(var o=r.parent();o&&!i.isPropagationStopped();)o.fire(t,i,!1),o=o.parent();return i},on:function(t,e,n){return aF(this).on(t,e,n)},off:function(t,e){return aF(this).off(t,e)},once:function(t,e){return aF(this).once(t,e)},hasEventListeners:function(t){return aF(this).has(t)}},uF=_l.DOM,lF=function(t,e){if("selectionchange"===e)return t.getDoc();if(!t.inline&&/^mouse|touch|click|contextmenu|drop|dragover|dragend/.test(e))return t.getDoc().documentElement;var n=Od(t);return n?(t.eventRoot||(t.eventRoot=uF.select(n)[0]),t.eventRoot):t.getBody()},cF=function(t){return!t.hidden&&!Jj(t)},fF=function(t,e,n){cF(t)?t.fire(e,n):Jj(t)&&nF(t,n)},dF=function(t,e){var n;if(t.delegates||(t.delegates={}),!t.delegates[e]&&!t.removed){var r=lF(t,e);if(Od(t)){if(vD||(vD={},t.editorManager.on("removeEditor",function(){t.editorManager.activeEditor||vD&&(Ht(vD,function(e,n){t.dom.unbind(lF(t,n))}),vD=null)})),vD[e])return;n=function(n){for(var r=n.target,i=t.editorManager.get(),o=i.length;o--;){var a=i[o].getBody();(a===r||uF.isChildOf(r,a))&&fF(i[o],e,n)}},vD[e]=n,uF.bind(r,e,n)}else n=function(n){fF(t,e,n)},uF.bind(r,e,n),t.delegates[e]=n}},hF=de(de({},sF),{bindPendingEventDelegates:function(){var t=this;_n.each(t._pendingNativeEvents,function(e){dF(t,e)})},toggleNativeEvent:function(t,e){var n=this;"focus"!==t&&"blur"!==t&&(n.removed||(e?n.initialized?dF(n,t):n._pendingNativeEvents?n._pendingNativeEvents.push(t):n._pendingNativeEvents=[t]:n.initialized&&(n.dom.unbind(lF(n,t),t,n.delegates[t]),delete n.delegates[t])))},unbindAllNativeEvents:function(){var t=this,e=t.getBody(),n=t.dom;t.delegates&&(Ht(t.delegates,function(e,n){t.dom.unbind(lF(t,n),n,e)}),delete t.delegates),!t.inline&&e&&n&&(e.onload=null,n.unbind(t.getWin()),n.unbind(t.getDoc())),n&&(n.unbind(e),n.unbind(t.getContainer()))}}),pF=["design","readonly"],gF=function(t,e,n,r){var i=n[e.get()],o=n[r];try{o.activate()}catch(t){return void console.error("problem while activating editor mode "+r+":",t)}i.deactivate(),i.editorReadOnly!==o.editorReadOnly&&Xj(t,o.editorReadOnly),e.set(r),pm(t,r)},mF=function(t,e,n,r){if(r!==n.get()){if(!te(e,r))throw new Error("Editor mode '"+r+"' is invalid");t.initialized?gF(t,n,e,r):t.on("init",function(){return gF(t,n,e,r)})}},vF=function(t,e,n){var r;if(yt(pF,e))throw new Error("Cannot override default mode "+e);return de(de({},t),(r={},r[e]=de(de({},n),{deactivate:function(){try{n.deactivate()}catch(t){console.error("problem while deactivating editor mode "+e+":",t)}}}),r))},yF=function(t){var e=Cl("design"),n=Cl({design:{activate:X,deactivate:X,editorReadOnly:!1},readonly:{activate:X,deactivate:X,editorReadOnly:!0}});return Zj(t),rF(t),{isReadOnly:function(){return Jj(t)},set:function(r){return mF(t,n.get(),e,r)},get:function(){return e.get()},register:function(t,e){n.set(vF(n.get(),t,e))}}},bF=_n.each,_F=_n.explode,wF={f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123},xF=_n.makeMap("alt,ctrl,shift,meta,access"),kF=function(t){var e,n={};bF(_F(t.toLowerCase(),"+"),function(t){t in xF?n[t]=!0:/^[0-9]{2,}$/.test(t)?n.keyCode=parseInt(t,10):(n.charCode=t.charCodeAt(0),n.keyCode=wF[t]||t.toUpperCase().charCodeAt(0))});var r=[n.keyCode];for(e in xF)n[e]?r.push(e):n[e]=!1;return n.id=r.join(","),n.access&&(n.alt=!0,sn.mac?n.ctrl=!0:n.shift=!0),n.meta&&(sn.mac?n.meta=!0:(n.ctrl=!0,n.meta=!1)),n},SF=function(){function t(t){this.shortcuts={},this.pendingPatterns=[],this.editor=t;var e=this;t.on("keyup keypress keydown",function(t){!e.hasModifier(t)&&!e.isFunctionKey(t)||t.isDefaultPrevented()||(bF(e.shortcuts,function(n){if(e.matchShortcut(t,n))return e.pendingPatterns=n.subpatterns.slice(0),"keydown"===t.type&&e.executeShortcutAction(n),!0}),e.matchShortcut(t,e.pendingPatterns[0])&&(1===e.pendingPatterns.length&&"keydown"===t.type&&e.executeShortcutAction(e.pendingPatterns[0]),e.pendingPatterns.shift()))})}return t.prototype.add=function(t,e,n,r){var i=this,o=i.normalizeCommandFunc(n);return bF(_F(_n.trim(t)),function(t){var n=i.createShortcut(t,e,o,r);i.shortcuts[n.id]=n}),!0},t.prototype.remove=function(t){var e=this.createShortcut(t);return!!this.shortcuts[e.id]&&(delete this.shortcuts[e.id],!0)},t.prototype.normalizeCommandFunc=function(t){var e=this,n=t;return"string"==typeof n?function(){e.editor.execCommand(n,!1,null)}:_n.isArray(n)?function(){e.editor.execCommand(n[0],n[1],n[2])}:n},t.prototype.createShortcut=function(t,e,n,r){var i=_n.map(_F(t,">"),kF);return i[i.length-1]=_n.extend(i[i.length-1],{func:n,scope:r||this.editor}),_n.extend(i[0],{desc:this.editor.translate(e),subpatterns:i.slice(1)})},t.prototype.hasModifier=function(t){return t.altKey||t.ctrlKey||t.metaKey},t.prototype.isFunctionKey=function(t){return"keydown"===t.type&&t.keyCode>=112&&t.keyCode<=123},t.prototype.matchShortcut=function(t,e){return!!e&&(e.ctrl===t.ctrlKey&&e.meta===t.metaKey&&(e.alt===t.altKey&&e.shift===t.shiftKey&&(!!(t.keyCode===e.keyCode||t.charCode&&t.charCode===e.charCode)&&(t.preventDefault(),!0))))},t.prototype.executeShortcutAction=function(t){return t.func?t.func.call(t.scope):null},t}(),CF=function(){var t={},e={},n={},r={},i={},o={},a={},s=function(t,e){return function(n,r){return t[n.toLowerCase()]=de(de({},r),{type:e})}},u=function(t,e){return r[t.toLowerCase()]=e};return{addButton:s(t,"button"),addGroupToolbarButton:s(t,"grouptoolbarbutton"),addToggleButton:s(t,"togglebutton"),addMenuButton:s(t,"menubutton"),addSplitButton:s(t,"splitbutton"),addMenuItem:s(e,"menuitem"),addNestedMenuItem:s(e,"nestedmenuitem"),addToggleMenuItem:s(e,"togglemenuitem"),addAutocompleter:s(n,"autocompleter"),addContextMenu:s(i,"contextmenu"),addContextToolbar:s(o,"contexttoolbar"),addContextForm:s(o,"contextform"),addSidebar:s(a,"sidebar"),addIcon:u,getAll:function(){return{buttons:t,menuItems:e,icons:r,popups:n,contextMenus:i,contextToolbars:o,sidebars:a}}}},EF=function(){var t=CF();return{addAutocompleter:t.addAutocompleter,addButton:t.addButton,addContextForm:t.addContextForm,addContextMenu:t.addContextMenu,addContextToolbar:t.addContextToolbar,addIcon:t.addIcon,addMenuButton:t.addMenuButton,addMenuItem:t.addMenuItem,addNestedMenuItem:t.addNestedMenuItem,addSidebar:t.addSidebar,addSplitButton:t.addSplitButton,addToggleButton:t.addToggleButton,addGroupToolbarButton:t.addGroupToolbarButton,addToggleMenuItem:t.addToggleMenuItem,getAll:t.getAll}},TF=_l.DOM,AF=_n.extend,OF=_n.each,PF=_n.resolve,NF=sn.ie,DF=function(){function t(t,e,n){var r=this;this.plugins={},this.contentCSS=[],this.contentStyles=[],this.loadedCSS={},this.isNotDirty=!1,this.editorManager=n,this.documentBaseUrl=n.documentBaseURL,AF(this,hF),this.settings=OA(this,t,this.documentBaseUrl,n.defaultSettings,e),this.settings.suffix&&(n.suffix=this.settings.suffix),this.suffix=n.suffix,this.settings.base_url&&n._setBaseUrl(this.settings.base_url),this.baseUri=n.baseURI,this.settings.referrer_policy&&(Sl.ScriptLoader._setReferrerPolicy(this.settings.referrer_policy),_l.DOM.styleSheetLoader._setReferrerPolicy(this.settings.referrer_policy)),Fl.languageLoad=this.settings.language_load,Fl.baseURL=n.baseURL,this.id=t,this.setDirty(!1),this.documentBaseURI=new mT(this.settings.document_base_url,{base_uri:this.baseUri}),this.baseURI=this.baseUri,this.inline=!!this.settings.inline,this.shortcuts=new SF(this),this.editorCommands=new zj(this),this.settings.cache_suffix&&(sn.cacheSuffix=this.settings.cache_suffix.replace(/^[\?\&]+/,"")),this.ui={registry:EF(),styleSheetLoader:void 0,show:X,hide:X,enable:X,disable:X,isDisabled:at};var i=this,o=yF(i);this.mode=o,this.setMode=o.set,n.fire("SetupEditor",{editor:this}),this.execCallback("setup",this),this.$=dl.overrideDefaults(function(){return{context:r.inline?r.getBody():r.getDoc(),element:r.getBody()}})}return t.prototype.render=function(){mj(this)},t.prototype.focus=function(t){this.execCommand("mceFocus",!1,t)},t.prototype.hasFocus=function(){return Iy(this)},t.prototype.execCallback=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r,i=this,o=i.settings[t];if(o)return i.callbackLookup&&(r=i.callbackLookup[t])&&(o=r.func,r=r.scope),"string"==typeof o&&(r=o.replace(/\.\w+$/,""),r=r?PF(r):0,o=PF(o),i.callbackLookup=i.callbackLookup||{},i.callbackLookup[t]={func:o,scope:r}),o.apply(r||i,e)},t.prototype.translate=function(t){return jl.translate(t)},t.prototype.getParam=function(t,e,n){return MA(this,t,e,n)},t.prototype.hasPlugin=function(t,e){return!(!yt(Xd(this).split(/[ ,]/),t)||e&&void 0===KA.get(t))},t.prototype.nodeChanged=function(t){this._nodeChangeDispatcher.nodeChanged(t)},t.prototype.addCommand=function(t,e,n){this.editorCommands.addCommand(t,e,n)},t.prototype.addQueryStateHandler=function(t,e,n){this.editorCommands.addQueryStateHandler(t,e,n)},t.prototype.addQueryValueHandler=function(t,e,n){this.editorCommands.addQueryValueHandler(t,e,n)},t.prototype.addShortcut=function(t,e,n,r){this.shortcuts.add(t,e,n,r)},t.prototype.execCommand=function(t,e,n,r){return this.editorCommands.execCommand(t,e,n,r)},t.prototype.queryCommandState=function(t){return this.editorCommands.queryCommandState(t)},t.prototype.queryCommandValue=function(t){return this.editorCommands.queryCommandValue(t)},t.prototype.queryCommandSupported=function(t){return this.editorCommands.queryCommandSupported(t)},t.prototype.show=function(){var t=this;t.hidden&&(t.hidden=!1,t.inline?t.getBody().contentEditable="true":(TF.show(t.getContainer()),TF.hide(t.id)),t.load(),t.fire("show"))},t.prototype.hide=function(){var t=this,e=t.getDoc();t.hidden||(NF&&e&&!t.inline&&e.execCommand("SelectAll"),t.save(),t.inline?(t.getBody().contentEditable="false",t===t.editorManager.focusedEditor&&(t.editorManager.focusedEditor=null)):(TF.hide(t.getContainer()),TF.setStyle(t.id,"display",t.orgDisplay)),t.hidden=!0,t.fire("hide"))},t.prototype.isHidden=function(){return!!this.hidden},t.prototype.setProgressState=function(t,e){this.fire("ProgressState",{state:t,time:e})},t.prototype.load=function(t){var e,n=this,r=n.getElement();if(n.removed)return"";if(r){t=t||{},t.load=!0;var i=Qr(r)?r.value:r.innerHTML;return e=n.setContent(i,t),t.element=r,t.no_events||n.fire("LoadContent",t),t.element=r=null,e}},t.prototype.save=function(t){var e,n,r=this,i=r.getElement();if(i&&r.initialized&&!r.removed)return t=t||{},t.save=!0,t.element=i,e=t.content=r.getContent(t),t.no_events||r.fire("SaveContent",t),"raw"===t.format&&r.fire("RawSaveContent",t),e=t.content,Qr(i)?i.value=e:(!t.is_removing&&r.inline||(i.innerHTML=e),(n=TF.getParent(r.id,"form"))&&OF(n.elements,function(t){if(t.name===r.id)return t.value=e,!1})),t.element=i=null,!1!==t.set_dirty&&r.setDirty(!1),e},t.prototype.setContent=function(t,e){return HT(this,t,e)},t.prototype.getContent=function(t){return UT(this,t)},t.prototype.insertContent=function(t,e){e&&(t=AF({content:t},e)),this.execCommand("mceInsertContent",!1,t)},t.prototype.resetContent=function(t){void 0===t?HT(this,this.startContent,{format:"raw"}):HT(this,t),this.undoManager.reset(),this.setDirty(!1),this.nodeChanged()},t.prototype.isDirty=function(){return!this.isNotDirty},t.prototype.setDirty=function(t){var e=!this.isNotDirty;this.isNotDirty=!t,t&&t!==e&&this.fire("dirty")},t.prototype.getContainer=function(){var t=this;return t.container||(t.container=TF.get(t.editorContainer||t.id+"_parent")),t.container},t.prototype.getContentAreaContainer=function(){return this.contentAreaContainer},t.prototype.getElement=function(){return this.targetElm||(this.targetElm=TF.get(this.id)),this.targetElm},t.prototype.getWin=function(){var t,e=this;return e.contentWindow||(t=e.iframeElement)&&(e.contentWindow=t.contentWindow),e.contentWindow},t.prototype.getDoc=function(){var t,e=this;return e.contentDocument||(t=e.getWin())&&(e.contentDocument=t.document),e.contentDocument},t.prototype.getBody=function(){var t=this.getDoc();return this.bodyElement||(t?t.body:null)},t.prototype.convertURL=function(t,e,n){var r=this,i=r.settings;return i.urlconverter_callback?r.execCallback("urlconverter_callback",t,n,!0,e):!i.convert_urls||n&&"LINK"===n.nodeName||0===t.indexOf("file:")||0===t.length?t:i.relative_urls?r.documentBaseURI.toRelative(t):t=r.documentBaseURI.toAbsolute(t,i.remove_script_host)},t.prototype.addVisual=function(t){vj(this,t)},t.prototype.remove=function(){XT(this)},t.prototype.destroy=function(t){JT(this,t)},t.prototype.uploadImages=function(t){return this.editorUpload.uploadImages(t)},t.prototype._scanForImages=function(){return this.editorUpload.scanForImages()},t.prototype.addButton=function(){throw new Error("editor.addButton has been removed in tinymce 5x, use editor.ui.registry.addButton or editor.ui.registry.addToggleButton or editor.ui.registry.addSplitButton instead")},t.prototype.addSidebar=function(){throw new Error("editor.addSidebar has been removed in tinymce 5x, use editor.ui.registry.addSidebar instead")},t.prototype.addMenuItem=function(){throw new Error("editor.addMenuItem has been removed in tinymce 5x, use editor.ui.registry.addMenuItem instead")},t.prototype.addContextToolbar=function(){throw new Error("editor.addContextToolbar has been removed in tinymce 5x, use editor.ui.registry.addContextToolbar instead")},t}(),MF=_l.DOM,IF=_n.explode,RF=_n.each,$F=_n.extend,LF=0,jF=!1,FF=[],BF=[],VF=function(t){return"length"!==t},zF=function(t){var e=t.type;RF(GF.get(),function(n){switch(e){case"scroll":n.fire("ScrollWindow",t);break;case"resize":n.fire("ResizeWindow",t)}})},UF=function(t){t!==jF&&(t?dl(window).on("resize scroll",zF):dl(window).off("resize scroll",zF),jF=t)},HF=function(t){var e=BF;delete FF[t.id];for(var n=0;n<FF.length;n++)if(FF[n]===t){FF.splice(n,1);break}return BF=St(BF,function(e){return t!==e}),GF.activeEditor===t&&(GF.activeEditor=BF.length>0?BF[0]:null),GF.focusedEditor===t&&(GF.focusedEditor=null),e.length!==BF.length},qF=function(t){return t&&t.initialized&&!(t.getContainer()||t.getBody()).parentNode&&(HF(t),t.unbindAllNativeEvents(),t.destroy(!0),t.removed=!0,t=null),t},WF="CSS1Compat"!==document.compatMode,GF=de(de({},sF),{baseURI:null,baseURL:null,defaultSettings:{},documentBaseURL:null,suffix:null,$:dl,majorVersion:"5",minorVersion:"10.8",releaseDate:"2023-10-19",editors:FF,i18n:jl,activeEditor:null,focusedEditor:null,settings:{},setup:function(){var t,e,n=this,r="";e=mT.getDocumentBaseUrl(document.location),/^[^:]+:\/\/\/?[^\/]+\//.test(e)&&(e=e.replace(/[\?#].*$/,"").replace(/[\/\\][^\/]+$/,""),/[\/\\]$/.test(e)||(e+="/"));var i=window.tinymce||window.tinyMCEPreInit;if(i)t=i.base||i.baseURL,r=i.suffix;else{for(var o=document.getElementsByTagName("script"),a=0;a<o.length;a++){var s=o[a].src||"";if(""!==s){var u=s.substring(s.lastIndexOf("/"));if(/tinymce(\.full|\.jquery|)(\.min|\.dev|)\.js/.test(s)){-1!==u.indexOf(".min")&&(r=".min"),t=s.substring(0,s.lastIndexOf("/"));break}}}if(!t&&document.currentScript){var s=document.currentScript.src;-1!==s.indexOf(".min")&&(r=".min"),t=s.substring(0,s.lastIndexOf("/"))}}n.baseURL=new mT(e).toAbsolute(t),n.documentBaseURL=e,n.baseURI=new mT(n.baseURL),n.suffix=r,Sy(n)},overrideDefaults:function(t){var e=t.base_url;e&&this._setBaseUrl(e);var n=t.suffix;t.suffix&&(this.suffix=n),this.defaultSettings=t;var r=t.plugin_base_urls;void 0!==r&&Ht(r,function(t,e){Fl.PluginManager.urls[e]=t})},init:function(t){var e,n=this,r=_n.makeMap("area base basefont br col frame hr img input isindex link meta param embed source wbr track colgroup option table tbody tfoot thead tr th td script noscript style textarea video audio iframe object menu"," "),i=function(t,e){return t.inline&&e.tagName.toLowerCase()in r},o=function(t){var e=t.id;return e||(e=Zt(t,"name").filter(function(t){return!MF.get(t)}).getOrThunk(MF.uniqueId),t.setAttribute("id",e)),e},a=function(e){var r=t[e];if(r)return r.apply(n,[])},s=function(t,e){return e.constructor===RegExp?e.test(t.className):MF.hasClass(t,e)},u=function(t){var e=[];if(sn.browser.isIE()&&sn.browser.version.major<11)return sO("TinyMCE does not support the browser you are using. For a list of supported browsers please see: https://www.tinymce.com/docs/get-started/system-requirements/"),[];if(WF)return sO("Failed to initialize the editor as the document is not in standards mode. TinyMCE requires standards mode."),[];if(t.types)return RF(t.types,function(t){e=e.concat(MF.select(t.selector))}),e;if(t.selector)return MF.select(t.selector);if(t.target)return[t.target];switch(t.mode){case"exact":var n=t.elements||"";n.length>0&&RF(IF(n),function(t){var n=MF.get(t);n?e.push(n):RF(document.forms,function(n){RF(n.elements,function(n){n.name===t&&(t="mce_editor_"+LF++,MF.setAttrib(n,"id",t),e.push(n))})})});break;case"textareas":case"specific_textareas":RF(MF.select("textarea"),function(n){t.editor_deselector&&s(n,t.editor_deselector)||t.editor_selector&&!s(n,t.editor_selector)||e.push(n)})}return e},l=function(t){e=t},c=function(){var e,r=0,s=[],f=function(t,i,o){var a=new DF(t,i,n);s.push(a),a.on("init",function(){++r===e.length&&l(s)}),a.targetElm=a.targetElm||o,a.render()};if(MF.unbind(window,"ready",c),a("onpageload"),e=dl.unique(u(t)),t.types)return void RF(t.types,function(n){_n.each(e,function(e){return!MF.is(e,n.selector)||(f(o(e),$F({},t,n),e),!1)})});_n.each(e,function(t){qF(n.get(t.id))}),e=_n.grep(e,function(t){return!n.get(t.id)}),0===e.length?l([]):RF(e,function(e){i(t,e)?sO("Could not initialize inline editor on invalid inline target element",e):f(o(e),t,e)})};return n.settings=t,MF.bind(window,"ready",c),new Ao(function(t){e?t(e):l=function(e){t(e)}})},get:function(t){return 0===arguments.length?BF.slice(0):B(t)?At(BF,function(e){return e.id===t}).getOr(null):K(t)&&BF[t]?BF[t]:null},add:function(t){var e=this;return FF[t.id]===t?t:(null===e.get(t.id)&&(VF(t.id)&&(FF[t.id]=t),FF.push(t),BF.push(t)),UF(!0),e.activeEditor=t,e.fire("AddEditor",{editor:t}),yD||(yD=function(t){var n=e.fire("BeforeUnload");if(n.returnValue)return t.preventDefault(),t.returnValue=n.returnValue,n.returnValue},window.addEventListener("beforeunload",yD)),t)},createEditor:function(t,e){return this.add(new DF(t,e,this))},remove:function(t){var e,n,r=this;if(t)return B(t)?void RF(MF.select(t),function(t){(n=r.get(t.id))&&r.remove(n)}):(n=t,U(r.get(n.id))?null:(HF(n)&&r.fire("RemoveEditor",{editor:n}),0===BF.length&&window.removeEventListener("beforeunload",yD),n.remove(),UF(BF.length>0),n));for(e=BF.length-1;e>=0;e--)r.remove(BF[e])},execCommand:function(t,e,n){var r=this,i=r.get(n);switch(t){case"mceAddEditor":return r.get(n)||new DF(n,r.settings,r).render(),!0;case"mceRemoveEditor":return i&&i.remove(),!0;case"mceToggleEditor":return i?(i.isHidden()?i.show():i.hide(),!0):(r.execCommand("mceAddEditor",!1,n),!0)}return!!r.activeEditor&&r.activeEditor.execCommand(t,e,n)},triggerSave:function(){RF(BF,function(t){t.save()})},addI18n:function(t,e){jl.add(t,e)},translate:function(t){return jl.translate(t)},setActive:function(t){var e=this.activeEditor;this.activeEditor!==t&&(e&&e.fire("deactivate",{relatedTarget:t}),t.fire("activate",{relatedTarget:e})),this.activeEditor=t},_setBaseUrl:function(t){this.baseURL=new mT(this.documentBaseURL).toAbsolute(t.replace(/\/+$/,"")),this.baseURI=new mT(this.baseURL)}});GF.setup();var YF,KF,XF=Math.min,JF=Math.max,QF=Math.round,ZF=function(t,e,n){var r=e.x,i=e.y,o=t.w,a=t.h,s=e.w,u=e.h,l=(n||"").split("");return"b"===l[0]&&(i+=u),"r"===l[1]&&(r+=s),"c"===l[0]&&(i+=QF(u/2)),"c"===l[1]&&(r+=QF(s/2)),"b"===l[3]&&(i-=a),"r"===l[4]&&(r-=o),"c"===l[3]&&(i-=QF(a/2)),"c"===l[4]&&(r-=QF(o/2)),iB(r,i,o,a)},tB=function(t,e,n,r){var i,o;for(o=0;o<r.length;o++)if(i=ZF(t,e,r[o]),i.x>=n.x&&i.x+i.w<=n.w+n.x&&i.y>=n.y&&i.y+i.h<=n.h+n.y)return r[o];return null},eB=function(t,e,n){return iB(t.x-e,t.y-n,t.w+2*e,t.h+2*n)},nB=function(t,e){var n=JF(t.x,e.x),r=JF(t.y,e.y),i=XF(t.x+t.w,e.x+e.w),o=XF(t.y+t.h,e.y+e.h);return i-n<0||o-r<0?null:iB(n,r,i-n,o-r)},rB=function(t,e,n){var r=t.x,i=t.y,o=t.x+t.w,a=t.y+t.h,s=e.x+e.w,u=e.y+e.h,l=JF(0,e.x-r),c=JF(0,e.y-i),f=JF(0,o-s),d=JF(0,a-u);return r+=l,i+=c,n&&(o+=l,a+=c,r-=f,i-=d),o-=f,a-=d,iB(r,i,o-r,a-i)},iB=function(t,e,n,r){return{x:t,y:e,w:n,h:r}},oB=function(t){return iB(t.left,t.top,t.width,t.height)},aB={inflate:eB,relativePosition:ZF,findBestRelativePosition:tB,intersect:nB,clamp:rB,create:iB,fromClientRect:oB},sB=function(t,e,n){void 0===n&&(n=1e3);var r=!1,i=null,o=function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];r||(r=!0,null!==i&&(clearTimeout(i),i=null),t.apply(null,e))}},a=o(t),s=o(e);return{start:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];r||null!==i||(i=setTimeout(function(){return s.apply(null,t)},n))},resolve:a,reject:s}},uB=function(){var t={},e={};return{load:function(n,r){var i='Script at URL "'+r+'" failed to load',o='Script at URL "'+r+"\" did not call `tinymce.Resource.add('"+n+"', data)` within 1 second";if(void 0!==t[n])return t[n];var a=new Ao(function(t,a){var s=sB(t,a);e[n]=s.resolve,Sl.ScriptLoader.loadScript(r,function(){return s.start(o)},function(){return s.reject(i)})});return t[n]=a,a},add:function(n,r){void 0!==e[n]&&(e[n](r),delete e[n]),t[n]=Ao.resolve(r)}}}(),lB=_n.each,cB=_n.extend,fB=function(){};fB.extend=YF=function(t){var e=this,n=e.prototype,r=function(){var t,e,n,r=this;if(!KF&&(r.init&&r.init.apply(r,arguments),e=r.Mixins))for(t=e.length;t--;)n=e[t],n.init&&n.init.apply(r,arguments)},i=function(){return this},o=function(t,e){return function(){var r=this,i=r._super;r._super=n[t];var o=e.apply(r,arguments);return r._super=i,o}};KF=!0;var a=new e;return KF=!1,t.Mixins&&(lB(t.Mixins,function(e){for(var n in e)"init"!==n&&(t[n]=e[n])}),n.Mixins&&(t.Mixins=n.Mixins.concat(t.Mixins))),t.Methods&&lB(t.Methods.split(","),function(e){t[e]=i}),t.Properties&&lB(t.Properties.split(","),function(e){var n="_"+e;t[e]=function(t){var e=this;return void 0!==t?(e[n]=t,e):e[n]}}),t.Statics&&lB(t.Statics,function(t,e){r[e]=t}),t.Defaults&&n.Defaults&&(t.Defaults=cB({},n.Defaults,t.Defaults)),Ht(t,function(t,e){"function"==typeof t&&n[e]?a[e]=o(e,t):a[e]=t}),r.prototype=a,r.constructor=r,r.extend=YF,r};var dB,hB=Math.min,pB=Math.max,gB=Math.round,mB=function(t){var e={},n=0,r=0,i=0,o=function(t,e,n){var r,i,o;r=0,i=0,o=0,t/=255,e/=255,n/=255;var a=hB(t,hB(e,n)),s=pB(t,pB(e,n));if(a===s)return o=a,{h:0,s:0,v:100*o};var u=t===a?e-n:n===a?t-e:n-t;return r=t===a?3:n===a?1:5,r=60*(r-u/(s-a)),i=(s-a)/s,o=s,{h:gB(r),s:gB(100*i),v:gB(100*o)}},a=function(t,e,o){if(t=(parseInt(t,10)||0)%360,e=parseInt(e,10)/100,o=parseInt(o,10)/100,e=pB(0,hB(e,1)),o=pB(0,hB(o,1)),0===e)return void(n=r=i=gB(255*o));var a=t/60,s=o*e,u=s*(1-Math.abs(a%2-1)),l=o-s;switch(Math.floor(a)){case 0:n=s,r=u,i=0;break;case 1:n=u,r=s,i=0;break;case 2:n=0,r=s,i=u;break;case 3:n=0,r=u,i=s;break;case 4:n=u,r=0,i=s;break;case 5:n=s,r=0,i=u;break;default:n=r=i=0}n=gB(255*(n+l)),r=gB(255*(r+l)),i=gB(255*(i+l))},s=function(){var t=function(t){return t=parseInt(t,10).toString(16),t.length>1?t:"0"+t};return"#"+t(n)+t(r)+t(i)},u=function(){return{r:n,g:r,b:i}},l=function(){return o(n,r,i)},c=function(t){var o;return"object"==typeof t?"r"in t?(n=t.r,r=t.g,i=t.b):"v"in t&&a(t.h,t.s,t.v):(o=/rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)[^\)]*\)/gi.exec(t))?(n=parseInt(o[1],10),r=parseInt(o[2],10),i=parseInt(o[3],10)):(o=/#([0-F]{2})([0-F]{2})([0-F]{2})/gi.exec(t))?(n=parseInt(o[1],16),r=parseInt(o[2],16),i=parseInt(o[3],16)):(o=/#([0-F])([0-F])([0-F])/gi.exec(t))&&(n=parseInt(o[1]+o[1],16),r=parseInt(o[2]+o[2],16),i=parseInt(o[3]+o[3],16)),n=n<0?0:n>255?255:n,r=r<0?0:r>255?255:r,i=i<0?0:i>255?255:i,e};return t&&c(t),e.toRgb=u,e.toHsv=l,e.toHex=s,e.parse=c,e},vB=function(t){var e=JSON.stringify(t);return B(e)?e.replace(/[\u0080-\uFFFF]/g,function(t){var e=t.charCodeAt(0).toString(16);return"\\u"+"0000".substring(e.length)+e}):e},yB={serialize:vB,parse:function(t){try{return JSON.parse(t)}catch(t){}}},bB={callbacks:{},count:0,send:function(t){var e=this,n=_l.DOM,r=void 0!==t.count?t.count:e.count,i="tinymce_jsonp_"+r;e.callbacks[r]=function(o){n.remove(i),delete e.callbacks[r],t.callback(o)},n.add(n.doc.body,"script",{id:i,src:t.url,type:"text/javascript"}),e.count++}},_B=de(de({},sF),{send:function(t){var e,n=0,r=function(){!t.async||4===e.readyState||n++>1e4?(t.success&&n<1e4&&200===e.status?t.success.call(t.success_scope,""+e.responseText,e,t):t.error&&t.error.call(t.error_scope,n>1e4?"TIMED_OUT":"GENERAL",e,t),e=null):Ro.setTimeout(r,10)};if(t.scope=t.scope||this,t.success_scope=t.success_scope||t.scope,t.error_scope=t.error_scope||t.scope,t.async=!1!==t.async,t.data=t.data||"",_B.fire("beforeInitialize",{settings:t}),e=new XMLHttpRequest,e.overrideMimeType&&e.overrideMimeType(t.content_type),e.open(t.type||(t.data?"POST":"GET"),t.url,t.async),t.crossDomain&&(e.withCredentials=!0),t.content_type&&e.setRequestHeader("Content-Type",t.content_type),t.requestheaders&&_n.each(t.requestheaders,function(t){e.setRequestHeader(t.key,t.value)}),e.setRequestHeader("X-Requested-With","XMLHttpRequest"),e=_B.fire("beforeSend",{xhr:e,settings:t}).xhr,e.send(t.data),!t.async)return r();Ro.setTimeout(r,10)}}),wB=_n.extend,xB=function(){function t(t){this.settings=wB({},t),this.count=0}return t.sendRPC=function(e){return(new t).send(e)},t.prototype.send=function(t){var e=t.error,n=t.success,r=wB(this.settings,t);r.success=function(t,i){t=yB.parse(t),void 0===t&&(t={error:"JSON Parse error."}),t.error?e.call(r.error_scope||r.scope,t.error,i):n.call(r.success_scope||r.scope,t.result)},r.error=function(t,n){e&&e.call(r.error_scope||r.scope,t,n)},r.data=yB.serialize({id:t.id||"c"+this.count++,method:t.method,params:t.params}),r.content_type="application/json",_B.send(r)},t}();try{var kB="__storage_test__";dB=window.localStorage,dB.setItem(kB,kB),dB.removeItem(kB)}catch(t){dB=function(){return function(){var t={},e=[],n={getItem:function(e){var n=t[e];return n||null},setItem:function(n,r){e.push(n),t[n]=String(r)},key:function(t){return e[t]},removeItem:function(n){e=e.filter(function(t){return t===n}),delete t[n]},clear:function(){e=[],t={}},length:0};return Object.defineProperty(n,"length",{get:function(){return e.length},configurable:!1,enumerable:!1}),n}()}()}var SB=dB,CB={geom:{Rect:aB},util:{Promise:Ao,Delay:Ro,Tools:_n,VK:Sm,URI:mT,Class:fB,EventDispatcher:oF,Observable:sF,I18n:jl,XHR:_B,JSON:yB,JSONRequest:xB,JSONP:bB,LocalStorage:SB,Color:mB,ImageUploader:wO},dom:{EventUtils:Zs,Sizzle:$u,DomQuery:dl,TreeWalker:jo,TextSeeker:Sc,DOMUtils:_l,ScriptLoader:Sl,RangeUtils:Gm,Serializer:zT,StyleSheetLoader:$o,ControlSelection:Em,BookmarkManager:sm,Selection:DE,Event:Zs.Event},html:{Styles:Fs,Entities:Ss,Node:Jy,Schema:Ls,SaxParser:ST,DomParser:OT,Writer:pb,Serializer:gb},Env:sn,AddOnManager:Fl,Annotator:am,Formatter:MO,UndoManager:LO,EditorCommands:zj,WindowManager:JA,NotificationManager:YA,EditorObservable:hF,Shortcuts:SF,Editor:DF,FocusManager:cy,EditorManager:GF,DOM:_l.DOM,ScriptLoader:Sl.ScriptLoader,PluginManager:KA,ThemeManager:XA,IconManager:IA,Resource:uB,trim:_n.trim,isArray:_n.isArray,is:_n.is,toArray:_n.toArray,makeMap:_n.makeMap,each:_n.each,map:_n.map,grep:_n.grep,inArray:_n.inArray,extend:_n.extend,create:_n.create,walk:_n.walk,createNS:_n.createNS,resolve:_n.resolve,explode:_n.explode,_addCacheSuffix:_n._addCacheSuffix,isOpera:sn.opera,isWebKit:sn.webkit,isIE:sn.ie,isGecko:sn.gecko,isMac:sn.mac},EB=_n.extend(GF,CB);!function(t){window.tinymce=t,window.tinyMCE=t}(EB),function(e){try{t.exports=e}catch(t){}}(EB)}()}).call(e,n(20),n(172).setImmediate)},,,,,,,,,function(t,e,n){!function(e,n){t.exports=n()}(self,function(){return function(){function t(r){var i=n[r];if(void 0!==i)return i.exports;var o=n[r]={id:r,exports:{}};return e[r](o,o.exports,t),o.exports}var e={5299:function(t,e,n){var r=n(7698);t.exports=r},6820:function(t,e,n){var r=n(6243);t.exports=r},3688:function(t,e,n){var r=n(1955);t.exports=r},2548:function(t,e,n){var r=n(1798);t.exports=r},4234:function(t,e,n){var r=n(2073);t.exports=r},1610:function(t,e,n){var r=n(7795);t.exports=r},281:function(t,e,n){var r=n(2547);t.exports=r},4493:function(t,e,n){n(7971),n(3242);var r=n(4058);t.exports=r.Array.from},2383:function(t,e,n){n(1501);var r=n(5703);t.exports=r("Array").filter},3866:function(t,e,n){n(8787);var r=n(5703);t.exports=r("Array").map},4900:function(t,e,n){n(186);var r=n(5703);t.exports=r("Array").slice},3830:function(t,e,n){n(6274),n(7971);var r=n(2902);t.exports=r},2480:function(t,e,n){var r=n(7046),i=n(2383),o=Array.prototype;t.exports=function(t){var e=t.filter;return t===o||r(o,t)&&e===o.filter?i:e}},8287:function(t,e,n){var r=n(7046),i=n(3866),o=Array.prototype;t.exports=function(t){var e=t.map;return t===o||r(o,t)&&e===o.map?i:e}},9601:function(t,e,n){var r=n(7046),i=n(4900),o=Array.prototype;t.exports=function(t){var e=t.slice;return t===o||r(o,t)&&e===o.slice?i:e}},8430:function(t,e,n){n(6614);var r=n(4058);t.exports=r.Object.values},7473:function(t,e,n){n(5906),n(5967),n(5824),n(8555),n(2615),n(1732),n(5903),n(1825),n(8394),n(5915),n(1766),n(2737),n(9911),n(4315),n(3131),n(4714),n(659),n(9120),n(5327),n(1502);var r=n(4058);t.exports=r.Symbol},7385:function(t,e,n){t.exports=n(4225)},2209:function(t,e,n){t.exports=n(478)},4442:function(t,e,n){t.exports=n(1675)},6942:function(t,e,n){t.exports=n(8698)},1493:function(t,e,n){t.exports=n(7088)},4437:function(t,e,n){t.exports=n(9360)},6600:function(t,e,n){t.exports=n(2201)},4225:function(t,e,n){var r=n(5299);t.exports=r},478:function(t,e,n){var r=n(6820);t.exports=r},1675:function(t,e,n){var r=n(3688);t.exports=r},8698:function(t,e,n){var r=n(2548);t.exports=r},7088:function(t,e,n){var r=n(4234);t.exports=r},9360:function(t,e,n){var r=n(1610);t.exports=r},2201:function(t,e,n){var r=n(281);n(8783),n(3975),n(5799),n(1943),n(6774),n(5414),n(620),n(6172),t.exports=r},4883:function(t,e,n){var r=n(7475),i=n(9826),o=TypeError;t.exports=function(t){if(r(t))return t;throw o(i(t)+" is not a function")}},1851:function(t,e,n){var r=n(7475),i=String,o=TypeError;t.exports=function(t){if("object"==typeof t||r(t))return t;throw o("Can't set "+i(t)+" as a prototype")}},8479:function(t){t.exports=function(){}},6059:function(t,e,n){var r=n(941),i=String,o=TypeError;t.exports=function(t){if(r(t))return t;throw o(i(t)+" is not an object")}},1354:function(t,e,n){"use strict";var r=n(6843),i=n(8834),o=n(9678),a=n(5196),s=n(6782),u=n(4284),l=n(623),c=n(5449),f=n(3476),d=n(2902),h=Array;t.exports=function(t){var e=o(t),n=u(this),p=arguments.length,g=p>1?arguments[1]:void 0,m=void 0!==g;m&&(g=r(g,p>2?arguments[2]:void 0));var v,y,b,_,w,x,k=d(e),S=0;if(!k||this===h&&s(k))for(v=l(e),y=n?new this(v):h(v);v>S;S++)x=m?g(e[S],S):e[S],c(y,S,x);else for(w=(_=f(e,k)).next,y=n?new this:[];!(b=i(w,_)).done;S++)x=m?a(_,g,[b.value,S],!0):b.value,c(y,S,x);return y.length=S,y}},1692:function(t,e,n){var r=n(4529),i=n(9413),o=n(623),a=function(t){return function(e,n,a){var s,u=r(e),l=o(u),c=i(a,l);if(t&&n!=n){for(;l>c;)if((s=u[c++])!=s)return!0}else for(;l>c;c++)if((t||c in u)&&u[c]===n)return t||c||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},3610:function(t,e,n){var r=n(6843),i=n(5329),o=n(7026),a=n(9678),s=n(623),u=n(4692),l=i([].push),c=function(t){var e=1==t,n=2==t,i=3==t,c=4==t,f=6==t,d=7==t,h=5==t||f;return function(p,g,m,v){for(var y,b,_=a(p),w=o(_),x=r(g,m),k=s(w),S=0,C=v||u,E=e?C(p,k):n||d?C(p,0):void 0;k>S;S++)if((h||S in w)&&(b=x(y=w[S],S,_),t))if(e)E[S]=b;else if(b)switch(t){case 3:return!0;case 5:return y;case 6:return S;case 2:l(E,y)}else switch(t){case 4:return!1;case 7:l(E,y)}return f?-1:i||c?c:E}};t.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterReject:c(7)}},568:function(t,e,n){var r=n(5981),i=n(9813),o=n(3385),a=i("species");t.exports=function(t){return o>=51||!r(function(){var e=[];return(e.constructor={})[a]=function(){return{foo:1}},1!==e[t](Boolean).foo})}},5790:function(t,e,n){var r=n(9413),i=n(623),o=n(5449),a=Array,s=Math.max;t.exports=function(t,e,n){for(var u=i(t),l=r(e,u),c=r(void 0===n?u:n,u),f=a(s(c-l,0)),d=0;l<c;l++,d++)o(f,d,t[l]);return f.length=d,f}},3765:function(t,e,n){var r=n(5329);t.exports=r([].slice)},5693:function(t,e,n){var r=n(1052),i=n(4284),o=n(941),a=n(9813)("species"),s=Array;t.exports=function(t){var e;return r(t)&&(e=t.constructor,(i(e)&&(e===s||r(e.prototype))||o(e)&&null===(e=e[a]))&&(e=void 0)),void 0===e?s:e}},4692:function(t,e,n){var r=n(5693);t.exports=function(t,e){return new(r(t))(0===e?0:e)}},5196:function(t,e,n){var r=n(6059),i=n(7609);t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(e){i(t,"throw",e)}}},1385:function(t,e,n){var r=n(9813)("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(t){}t.exports=function(t,e){if(!e&&!i)return!1;var n=!1;try{var o={};o[r]=function(){return{next:function(){return{done:n=!0}}}},t(o)}catch(t){}return n}},2532:function(t,e,n){var r=n(5329),i=r({}.toString),o=r("".slice);t.exports=function(t){return o(i(t),8,-1)}},9697:function(t,e,n){var r=n(2885),i=n(7475),o=n(2532),a=n(9813)("toStringTag"),s=Object,u="Arguments"==o(function(){return arguments}());t.exports=r?o:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=s(t),a))?n:u?o(e):"Object"==(r=o(e))&&i(e.callee)?"Arguments":r}},4160:function(t,e,n){var r=n(5981);t.exports=!r(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})},1046:function(t,e,n){"use strict";var r=n(5143).IteratorPrototype,i=n(9290),o=n(1887),a=n(904),s=n(2077),u=function(){return this};t.exports=function(t,e,n,l){var c=e+" Iterator";return t.prototype=i(r,{next:o(+!l,n)}),a(t,c,!1,!0),s[c]=u,t}},2029:function(t,e,n){var r=n(5746),i=n(5988),o=n(1887);t.exports=r?function(t,e,n){return i.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},1887:function(t){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},5449:function(t,e,n){"use strict";var r=n(3894),i=n(5988),o=n(1887);t.exports=function(t,e,n){var a=r(e);a in t?i.f(t,a,o(0,n)):t[a]=n}},5929:function(t,e,n){var r=n(2029);t.exports=function(t,e,n,i){return i&&i.enumerable?t[e]=n:r(t,e,n),t}},5609:function(t,e,n){var r=n(1899),i=Object.defineProperty;t.exports=function(t,e){try{i(r,t,{value:e,configurable:!0,writable:!0})}catch(n){r[t]=e}return e}},7771:function(t,e,n){"use strict";var r=n(6887),i=n(8834),o=n(2529),a=n(9417),s=n(7475),u=n(1046),l=n(249),c=n(8929),f=n(904),d=n(2029),h=n(5929),p=n(9813),g=n(2077),m=n(5143),v=a.PROPER,y=a.CONFIGURABLE,b=m.IteratorPrototype,_=m.BUGGY_SAFARI_ITERATORS,w=p("iterator"),x="keys",k="values",S="entries",C=function(){return this};t.exports=function(t,e,n,a,p,m,E){u(n,e,a);var T,A,O,P=function(t){if(t===p&&R)return R;if(!_&&t in M)return M[t];switch(t){case x:case k:case S:return function(){return new n(this,t)}}return function(){return new n(this)}},N=e+" Iterator",D=!1,M=t.prototype,I=M[w]||M["@@iterator"]||p&&M[p],R=!_&&I||P(p),$="Array"==e&&M.entries||I;if($&&(T=l($.call(new t)))!==Object.prototype&&T.next&&(o||l(T)===b||(c?c(T,b):s(T[w])||h(T,w,C)),f(T,N,!0,!0),o&&(g[N]=C)),v&&p==k&&I&&I.name!==k&&(!o&&y?d(M,"name",k):(D=!0,R=function(){return i(I,this)})),p)if(A={values:P(k),keys:m?R:P(x),entries:P(S)},E)for(O in A)(_||D||!(O in M))&&h(M,O,A[O]);else r({target:e,proto:!0,forced:_||D},A);return o&&!E||M[w]===R||h(M,w,R,{name:p}),g[e]=R,A}},6349:function(t,e,n){var r=n(4058),i=n(953),o=n(1477),a=n(5988).f;t.exports=function(t){var e=r.Symbol||(r.Symbol={});i(e,t)||a(e,t,{value:o.f(t)})}},5746:function(t,e,n){var r=n(5981);t.exports=!r(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})},1333:function(t,e,n){var r=n(1899),i=n(941),o=r.document,a=i(o)&&i(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},6796:function(t){var e=TypeError;t.exports=function(t){if(t>9007199254740991)throw e("Maximum allowed index exceeded");return t}},3281:function(t){t.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}},2861:function(t,e,n){var r=n(626);t.exports=r("navigator","userAgent")||""},3385:function(t,e,n){var r,i,o=n(1899),a=n(2861),s=o.process,u=o.Deno,l=s&&s.versions||u&&u.version,c=l&&l.v8;c&&(i=(r=c.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(i=+r[1]),t.exports=i},5703:function(t,e,n){var r=n(4058);t.exports=function(t){return r[t+"Prototype"]}},6759:function(t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},6887:function(t,e,n){"use strict";var r=n(1899),i=n(9730),o=n(5329),a=n(7475),s=n(9677).f,u=n(7252),l=n(4058),c=n(6843),f=n(2029),d=n(953),h=function(t){var e=function(n,r,o){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,r)}return new t(n,r,o)}return i(t,this,arguments)};return e.prototype=t.prototype,e};t.exports=function(t,e){var n,i,p,g,m,v,y,b,_=t.target,w=t.global,x=t.stat,k=t.proto,S=w?r:x?r[_]:(r[_]||{}).prototype,C=w?l:l[_]||f(l,_,{})[_],E=C.prototype;for(p in e)n=!u(w?p:_+(x?".":"#")+p,t.forced)&&S&&d(S,p),m=C[p],n&&(v=t.dontCallGetSet?(b=s(S,p))&&b.value:S[p]),g=n&&v?v:e[p],n&&typeof m==typeof g||(y=t.bind&&n?c(g,r):t.wrap&&n?h(g):k&&a(g)?o(g):g,(t.sham||g&&g.sham||m&&m.sham)&&f(y,"sham",!0),f(C,p,y),k&&(d(l,i=_+"Prototype")||f(l,i,{}),f(l[i],p,g),t.real&&E&&!E[p]&&f(E,p,g)))}},5981:function(t){t.exports=function(t){try{return!!t()}catch(t){return!0}}},9730:function(t,e,n){var r=n(8285),i=Function.prototype,o=i.apply,a=i.call;t.exports="object"==typeof Reflect&&Reflect.apply||(r?a.bind(o):function(){return a.apply(o,arguments)})},6843:function(t,e,n){var r=n(5329),i=n(4883),o=n(8285),a=r(r.bind);t.exports=function(t,e){return i(t),void 0===e?t:o?a(t,e):function(){return t.apply(e,arguments)}}},8285:function(t,e,n){var r=n(5981);t.exports=!r(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})},8834:function(t,e,n){var r=n(8285),i=Function.prototype.call;t.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},9417:function(t,e,n){var r=n(5746),i=n(953),o=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,s=i(o,"name"),u=s&&"something"===function(){}.name,l=s&&(!r||r&&a(o,"name").configurable);t.exports={EXISTS:s,PROPER:u,CONFIGURABLE:l}},5329:function(t,e,n){var r=n(8285),i=Function.prototype,o=i.bind,a=i.call,s=r&&o.bind(a,a);t.exports=r?function(t){return t&&s(t)}:function(t){return t&&function(){return a.apply(t,arguments)}}},626:function(t,e,n){var r=n(4058),i=n(1899),o=n(7475),a=function(t){return o(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?a(r[t])||a(i[t]):r[t]&&r[t][e]||i[t]&&i[t][e]}},2902:function(t,e,n){var r=n(9697),i=n(4229),o=n(2077),a=n(9813)("iterator");t.exports=function(t){if(null!=t)return i(t,a)||i(t,"@@iterator")||o[r(t)]}},3476:function(t,e,n){var r=n(8834),i=n(4883),o=n(6059),a=n(9826),s=n(2902),u=TypeError;t.exports=function(t,e){var n=arguments.length<2?s(t):e;if(i(n))return o(r(n,t));throw u(a(t)+" is not iterable")}},4229:function(t,e,n){var r=n(4883);t.exports=function(t,e){var n=t[e];return null==n?void 0:r(n)}},1899:function(t,e,n){var r=function(t){return t&&t.Math==Math&&t};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},953:function(t,e,n){var r=n(5329),i=n(9678),o=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return o(i(t),e)}},7748:function(t){t.exports={}},5463:function(t,e,n){var r=n(626);t.exports=r("document","documentElement")},2840:function(t,e,n){var r=n(5746),i=n(5981),o=n(1333);t.exports=!r&&!i(function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a})},7026:function(t,e,n){var r=n(5329),i=n(5981),o=n(2532),a=Object,s=r("".split);t.exports=i(function(){return!a("z").propertyIsEnumerable(0)})?function(t){return"String"==o(t)?s(t,""):a(t)}:a},1302:function(t,e,n){var r=n(5329),i=n(7475),o=n(3030),a=r(Function.toString);i(o.inspectSource)||(o.inspectSource=function(t){return a(t)}),t.exports=o.inspectSource},5402:function(t,e,n){var r,i,o,a=n(8019),s=n(1899),u=n(5329),l=n(941),c=n(2029),f=n(953),d=n(3030),h=n(4262),p=n(7748),g="Object already initialized",m=s.TypeError,v=s.WeakMap;if(a||d.state){var y=d.state||(d.state=new v),b=u(y.get),_=u(y.has),w=u(y.set);r=function(t,e){if(_(y,t))throw new m(g);return e.facade=t,w(y,t,e),e},i=function(t){return b(y,t)||{}},o=function(t){return _(y,t)}}else{var x=h("state");p[x]=!0,r=function(t,e){if(f(t,x))throw new m(g);return e.facade=t,c(t,x,e),e},i=function(t){return f(t,x)?t[x]:{}},o=function(t){return f(t,x)}}t.exports={set:r,get:i,has:o,enforce:function(t){return o(t)?i(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!l(e)||(n=i(e)).type!==t)throw m("Incompatible receiver, "+t+" required");return n}}}},6782:function(t,e,n){var r=n(9813),i=n(2077),o=r("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||a[o]===t)}},1052:function(t,e,n){var r=n(2532);t.exports=Array.isArray||function(t){return"Array"==r(t)}},7475:function(t){t.exports=function(t){return"function"==typeof t}},4284:function(t,e,n){var r=n(5329),i=n(5981),o=n(7475),a=n(9697),s=n(626),u=n(1302),l=function(){},c=[],f=s("Reflect","construct"),d=/^\s*(?:class|function)\b/,h=r(d.exec),p=!d.exec(l),g=function(t){if(!o(t))return!1;try{return f(l,c,t),!0}catch(t){return!1}},m=function(t){if(!o(t))return!1;switch(a(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return p||!!h(d,u(t))}catch(t){return!0}};m.sham=!0,t.exports=!f||i(function(){var t;return g(g.call)||!g(Object)||!g(function(){t=!0})||t})?m:g},7252:function(t,e,n){var r=n(5981),i=n(7475),o=/#|\.prototype\./,a=function(t,e){var n=u[s(t)];return n==c||n!=l&&(i(e)?r(e):!!e)},s=a.normalize=function(t){return String(t).replace(o,".").toLowerCase()},u=a.data={},l=a.NATIVE="N",c=a.POLYFILL="P";t.exports=a},941:function(t,e,n){var r=n(7475);t.exports=function(t){return"object"==typeof t?null!==t:r(t)}},2529:function(t){t.exports=!0},6664:function(t,e,n){var r=n(626),i=n(7475),o=n(7046),a=n(2302),s=Object;t.exports=a?function(t){return"symbol"==typeof t}:function(t){var e=r("Symbol");return i(e)&&o(e.prototype,s(t))}},7609:function(t,e,n){var r=n(8834),i=n(6059),o=n(4229);t.exports=function(t,e,n){var a,s;i(t);try{if(!(a=o(t,"return"))){if("throw"===e)throw n;return n}a=r(a,t)}catch(t){s=!0,a=t}if("throw"===e)throw n;if(s)throw a;return i(a),n}},5143:function(t,e,n){"use strict";var r,i,o,a=n(5981),s=n(7475),u=n(9290),l=n(249),c=n(5929),f=n(9813),d=n(2529),h=f("iterator"),p=!1;[].keys&&("next"in(o=[].keys())?(i=l(l(o)))!==Object.prototype&&(r=i):p=!0),null==r||a(function(){var t={};return r[h].call(t)!==t})?r={}:d&&(r=u(r)),s(r[h])||c(r,h,function(){return this}),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:p}},2077:function(t){t.exports={}},623:function(t,e,n){var r=n(3057);t.exports=function(t){return r(t.length)}},5331:function(t){var e=Math.ceil,n=Math.floor;t.exports=Math.trunc||function(t){var r=+t;return(r>0?n:e)(r)}},5366:function(t,e,n){var r=n(2497);t.exports=r&&!!Symbol.for&&!!Symbol.keyFor},2497:function(t,e,n){var r=n(3385),i=n(5981);t.exports=!!Object.getOwnPropertySymbols&&!i(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41})},8019:function(t,e,n){var r=n(1899),i=n(7475),o=n(1302),a=r.WeakMap;t.exports=i(a)&&/native code/.test(o(a))},9290:function(t,e,n){var r,i=n(6059),o=n(9938),a=n(6759),s=n(7748),u=n(5463),l=n(1333),c=n(4262)("IE_PROTO"),f=function(){},d=function(t){return"<script>"+t+"<\/script>"},h=function(t){t.write(d("")),t.close();var e=t.parentWindow.Object;return t=null,e},p=function(){try{r=new ActiveXObject("htmlfile")}catch(t){}var t,e;p="undefined"!=typeof document?document.domain&&r?h(r):((e=l("iframe")).style.display="none",u.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(d("document.F=Object")),t.close(),t.F):h(r);for(var n=a.length;n--;)delete p.prototype[a[n]];return p()};s[c]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(f.prototype=i(t),n=new f,f.prototype=null,n[c]=t):n=p(),void 0===e?n:o.f(n,e)}},9938:function(t,e,n){var r=n(5746),i=n(3937),o=n(5988),a=n(6059),s=n(4529),u=n(4771);e.f=r&&!i?Object.defineProperties:function(t,e){a(t);for(var n,r=s(e),i=u(e),l=i.length,c=0;l>c;)o.f(t,n=i[c++],r[n]);return t}},5988:function(t,e,n){var r=n(5746),i=n(2840),o=n(3937),a=n(6059),s=n(3894),u=TypeError,l=Object.defineProperty,c=Object.getOwnPropertyDescriptor;e.f=r?o?function(t,e,n){if(a(t),e=s(e),a(n),"function"==typeof t&&"prototype"===e&&"value"in n&&"writable"in n&&!n.writable){var r=c(t,e);r&&r.writable&&(t[e]=n.value,n={configurable:"configurable"in n?n.configurable:r.configurable,enumerable:"enumerable"in n?n.enumerable:r.enumerable,writable:!1})}return l(t,e,n)}:l:function(t,e,n){if(a(t),e=s(e),a(n),i)try{return l(t,e,n)}catch(t){}if("get"in n||"set"in n)throw u("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},9677:function(t,e,n){var r=n(5746),i=n(8834),o=n(6760),a=n(1887),s=n(4529),u=n(3894),l=n(953),c=n(2840),f=Object.getOwnPropertyDescriptor;e.f=r?f:function(t,e){if(t=s(t),e=u(e),c)try{return f(t,e)}catch(t){}if(l(t,e))return a(!i(o.f,t,e),t[e])}},684:function(t,e,n){var r=n(2532),i=n(4529),o=n(946).f,a=n(5790),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return s&&"Window"==r(t)?function(t){try{return o(t)}catch(t){return a(s)}}(t):o(i(t))}},946:function(t,e,n){var r=n(5629),i=n(6759).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},7857:function(t,e){e.f=Object.getOwnPropertySymbols},249:function(t,e,n){var r=n(953),i=n(7475),o=n(9678),a=n(4262),s=n(4160),u=a("IE_PROTO"),l=Object,c=l.prototype;t.exports=s?l.getPrototypeOf:function(t){var e=o(t);if(r(e,u))return e[u];var n=e.constructor;return i(n)&&e instanceof n?n.prototype:e instanceof l?c:null}},7046:function(t,e,n){var r=n(5329);t.exports=r({}.isPrototypeOf)},5629:function(t,e,n){var r=n(5329),i=n(953),o=n(4529),a=n(1692).indexOf,s=n(7748),u=r([].push);t.exports=function(t,e){var n,r=o(t),l=0,c=[];for(n in r)!i(s,n)&&i(r,n)&&u(c,n);for(;e.length>l;)i(r,n=e[l++])&&(~a(c,n)||u(c,n));return c}},4771:function(t,e,n){var r=n(5629),i=n(6759);t.exports=Object.keys||function(t){return r(t,i)}},6760:function(t,e){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,i=r&&!n.call({1:2},1);e.f=i?function(t){var e=r(this,t);return!!e&&e.enumerable}:n},8929:function(t,e,n){var r=n(5329),i=n(6059),o=n(1851);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=r(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return i(n),o(r),e?t(n,r):n.__proto__=r,n}}():void 0)},8810:function(t,e,n){var r=n(5746),i=n(5329),o=n(4771),a=n(4529),s=i(n(6760).f),u=i([].push),l=function(t){return function(e){for(var n,i=a(e),l=o(i),c=l.length,f=0,d=[];c>f;)n=l[f++],r&&!s(i,n)||u(d,t?[n,i[n]]:i[n]);return d}};t.exports={entries:l(!0),values:l(!1)}},5623:function(t,e,n){"use strict";var r=n(2885),i=n(9697);t.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},9811:function(t,e,n){var r=n(8834),i=n(7475),o=n(941),a=TypeError;t.exports=function(t,e){var n,s;if("string"===e&&i(n=t.toString)&&!o(s=r(n,t)))return s;if(i(n=t.valueOf)&&!o(s=r(n,t)))return s;if("string"!==e&&i(n=t.toString)&&!o(s=r(n,t)))return s;throw a("Can't convert object to primitive value")}},4058:function(t){t.exports={}},8219:function(t){var e=TypeError;t.exports=function(t){if(null==t)throw e("Can't call method on "+t);return t}},904:function(t,e,n){var r=n(2885),i=n(5988).f,o=n(2029),a=n(953),s=n(5623),u=n(9813)("toStringTag");t.exports=function(t,e,n,l){if(t){var c=n?t:t.prototype;a(c,u)||i(c,u,{configurable:!0,value:e}),l&&!r&&o(c,"toString",s)}}},4262:function(t,e,n){var r=n(8726),i=n(9418),o=r("keys");t.exports=function(t){return o[t]||(o[t]=i(t))}},3030:function(t,e,n){var r=n(1899),i=n(5609),o="__core-js_shared__",a=r[o]||i(o,{});t.exports=a},8726:function(t,e,n){var r=n(2529),i=n(3030);(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.24.1",mode:r?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.24.1/LICENSE",source:"https://github.com/zloirock/core-js"})},4620:function(t,e,n){var r=n(5329),i=n(2435),o=n(5803),a=n(8219),s=r("".charAt),u=r("".charCodeAt),l=r("".slice),c=function(t){return function(e,n){var r,c,f=o(a(e)),d=i(n),h=f.length;return d<0||d>=h?t?"":void 0:(r=u(f,d))<55296||r>56319||d+1===h||(c=u(f,d+1))<56320||c>57343?t?s(f,d):r:t?l(f,d,d+2):c-56320+(r-55296<<10)+65536}};t.exports={codeAt:c(!1),charAt:c(!0)}},9630:function(t,e,n){var r=n(8834),i=n(626),o=n(9813),a=n(5929);t.exports=function(){var t=i("Symbol"),e=t&&t.prototype,n=e&&e.valueOf,s=o("toPrimitive");e&&!e[s]&&a(e,s,function(t){return r(n,this)},{arity:1})}},9413:function(t,e,n){var r=n(2435),i=Math.max,o=Math.min;t.exports=function(t,e){var n=r(t);return n<0?i(n+e,0):o(n,e)}},4529:function(t,e,n){var r=n(7026),i=n(8219);t.exports=function(t){return r(i(t))}},2435:function(t,e,n){var r=n(5331);t.exports=function(t){var e=+t;return e!=e||0===e?0:r(e)}},3057:function(t,e,n){var r=n(2435),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},9678:function(t,e,n){var r=n(8219),i=Object;t.exports=function(t){return i(r(t))}},6935:function(t,e,n){var r=n(8834),i=n(941),o=n(6664),a=n(4229),s=n(9811),u=n(9813),l=TypeError,c=u("toPrimitive");t.exports=function(t,e){if(!i(t)||o(t))return t;var n,u=a(t,c);if(u){if(void 0===e&&(e="default"),n=r(u,t,e),!i(n)||o(n))return n;throw l("Can't convert object to primitive value")}return void 0===e&&(e="number"),s(t,e)}},3894:function(t,e,n){var r=n(6935),i=n(6664);t.exports=function(t){var e=r(t,"string");return i(e)?e:e+""}},2885:function(t,e,n){var r={};r[n(9813)("toStringTag")]="z",t.exports="[object z]"===String(r)},5803:function(t,e,n){var r=n(9697),i=String;t.exports=function(t){if("Symbol"===r(t))throw TypeError("Cannot convert a Symbol value to a string");return i(t)}},9826:function(t){var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},9418:function(t,e,n){var r=n(5329),i=0,o=Math.random(),a=r(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+a(++i+o,36)}},2302:function(t,e,n){var r=n(2497);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3937:function(t,e,n){var r=n(5746),i=n(5981);t.exports=r&&i(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},1477:function(t,e,n){var r=n(9813);e.f=r},9813:function(t,e,n){var r=n(1899),i=n(8726),o=n(953),a=n(9418),s=n(2497),u=n(2302),l=i("wks"),c=r.Symbol,f=c&&c.for,d=u?c:c&&c.withoutSetter||a;t.exports=function(t){if(!o(l,t)||!s&&"string"!=typeof l[t]){var e="Symbol."+t;s&&o(c,t)?l[t]=c[t]:l[t]=u&&f?f(e):d(e)}return l[t]}},5906:function(t,e,n){"use strict";var r=n(6887),i=n(5981),o=n(1052),a=n(941),s=n(9678),u=n(623),l=n(6796),c=n(5449),f=n(4692),d=n(568),h=n(9813),p=n(3385),g=h("isConcatSpreadable"),m=p>=51||!i(function(){var t=[];return t[g]=!1,t.concat()[0]!==t}),v=d("concat"),y=function(t){if(!a(t))return!1;var e=t[g];return void 0!==e?!!e:o(t)};r({target:"Array",proto:!0,arity:1,forced:!m||!v},{concat:function(t){var e,n,r,i,o,a=s(this),d=f(a,0),h=0;for(e=-1,r=arguments.length;e<r;e++)if(y(o=-1===e?a:arguments[e]))for(i=u(o),l(h+i),n=0;n<i;n++,h++)n in o&&c(d,h,o[n]);else l(h+1),c(d,h++,o);return d.length=h,d}})},1501:function(t,e,n){"use strict";var r=n(6887),i=n(3610).filter;r({target:"Array",proto:!0,forced:!n(568)("filter")},{filter:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},3242:function(t,e,n){var r=n(6887),i=n(1354);r({target:"Array",stat:!0,forced:!n(1385)(function(t){Array.from(t)})},{from:i})},6274:function(t,e,n){"use strict";var r=n(4529),i=n(8479),o=n(2077),a=n(5402),s=n(5988).f,u=n(7771),l=n(2529),c=n(5746),f="Array Iterator",d=a.set,h=a.getterFor(f);t.exports=u(Array,"Array",function(t,e){d(this,{type:f,target:r(t),index:0,kind:e})},function(){var t=h(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}},"values");var p=o.Arguments=o.Array;if(i("keys"),i("values"),i("entries"),!l&&c&&"values"!==p.name)try{s(p,"name",{value:"values"})}catch(t){}},8787:function(t,e,n){"use strict";var r=n(6887),i=n(3610).map;r({target:"Array",proto:!0,forced:!n(568)("map")},{map:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},186:function(t,e,n){"use strict";var r=n(6887),i=n(1052),o=n(4284),a=n(941),s=n(9413),u=n(623),l=n(4529),c=n(5449),f=n(9813),d=n(568),h=n(3765),p=d("slice"),g=f("species"),m=Array,v=Math.max;r({target:"Array",proto:!0,forced:!p},{slice:function(t,e){var n,r,f,d=l(this),p=u(d),y=s(t,p),b=s(void 0===e?p:e,p);if(i(d)&&(n=d.constructor,(o(n)&&(n===m||i(n.prototype))||a(n)&&null===(n=n[g]))&&(n=void 0),n===m||void 0===n))return h(d,y,b);for(r=new(void 0===n?m:n)(v(b-y,0)),f=0;y<b;y++,f++)y in d&&c(r,f,d[y]);return r.length=f,r}})},2619:function(t,e,n){var r=n(6887),i=n(626),o=n(9730),a=n(8834),s=n(5329),u=n(5981),l=n(1052),c=n(7475),f=n(941),d=n(6664),h=n(3765),p=n(2497),g=i("JSON","stringify"),m=s(/./.exec),v=s("".charAt),y=s("".charCodeAt),b=s("".replace),_=s(1..toString),w=/[\uD800-\uDFFF]/g,x=/^[\uD800-\uDBFF]$/,k=/^[\uDC00-\uDFFF]$/,S=!p||u(function(){var t=i("Symbol")();return"[null]"!=g([t])||"{}"!=g({a:t})||"{}"!=g(Object(t))}),C=u(function(){return'"\\udf06\\ud834"'!==g("��")||'"\\udead"'!==g("�")}),E=function(t,e){var n=h(arguments),r=e;if((f(e)||void 0!==t)&&!d(t))return l(e)||(e=function(t,e){if(c(r)&&(e=a(r,this,t,e)),!d(e))return e}),n[1]=e,o(g,null,n)},T=function(t,e,n){var r=v(n,e-1),i=v(n,e+1);return m(x,t)&&!m(k,i)||m(k,t)&&!m(x,r)?"\\u"+_(y(t,0),16):t};g&&r({target:"JSON",stat:!0,arity:3,forced:S||C},{stringify:function(t,e,n){var r=h(arguments),i=o(S?E:g,null,r);return C&&"string"==typeof i?b(i,w,T):i}})},9120:function(t,e,n){var r=n(1899);n(904)(r.JSON,"JSON",!0)},5327:function(){},7144:function(t,e,n){var r=n(6887),i=n(2497),o=n(5981),a=n(7857),s=n(9678);r({target:"Object",stat:!0,forced:!i||o(function(){a.f(1)})},{getOwnPropertySymbols:function(t){var e=a.f;return e?e(s(t)):[]}})},5967:function(){},6614:function(t,e,n){var r=n(6887),i=n(8810).values;r({target:"Object",stat:!0},{values:function(t){return i(t)}})},1502:function(){},7971:function(t,e,n){"use strict";var r=n(4620).charAt,i=n(5803),o=n(5402),a=n(7771),s="String Iterator",u=o.set,l=o.getterFor(s);a(String,"String",function(t){u(this,{type:s,string:i(t),index:0})},function(){var t,e=l(this),n=e.string,i=e.index;return i>=n.length?{value:void 0,done:!0}:(t=r(n,i),e.index+=t.length,{value:t,done:!1})})},8555:function(t,e,n){n(6349)("asyncIterator")},8616:function(t,e,n){"use strict";var r=n(6887),i=n(1899),o=n(8834),a=n(5329),s=n(2529),u=n(5746),l=n(2497),c=n(5981),f=n(953),d=n(7046),h=n(6059),p=n(4529),g=n(3894),m=n(5803),v=n(1887),y=n(9290),b=n(4771),_=n(946),w=n(684),x=n(7857),k=n(9677),S=n(5988),C=n(9938),E=n(6760),T=n(5929),A=n(8726),O=n(4262),P=n(7748),N=n(9418),D=n(9813),M=n(1477),I=n(6349),R=n(9630),$=n(904),L=n(5402),j=n(3610).forEach,F=O("hidden"),B="Symbol",V=L.set,z=L.getterFor(B),U=Object.prototype,H=i.Symbol,q=H&&H.prototype,W=i.TypeError,G=i.QObject,Y=k.f,K=S.f,X=w.f,J=E.f,Q=a([].push),Z=A("symbols"),tt=A("op-symbols"),et=A("wks"),nt=!G||!G.prototype||!G.prototype.findChild,rt=u&&c(function(){return 7!=y(K({},"a",{get:function(){return K(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=Y(U,e);r&&delete U[e],K(t,e,n),r&&t!==U&&K(U,e,r)}:K,it=function(t,e){var n=Z[t]=y(q);return V(n,{type:B,tag:t,description:e}),u||(n.description=e),n},ot=function(t,e,n){t===U&&ot(tt,e,n),h(t);var r=g(e);return h(n),f(Z,r)?(n.enumerable?(f(t,F)&&t[F][r]&&(t[F][r]=!1),n=y(n,{enumerable:v(0,!1)})):(f(t,F)||K(t,F,v(1,{})),t[F][r]=!0),rt(t,r,n)):K(t,r,n)},at=function(t,e){h(t);var n=p(e),r=b(n).concat(ct(n));return j(r,function(e){u&&!o(st,n,e)||ot(t,e,n[e])}),t},st=function(t){var e=g(t),n=o(J,this,e);return!(this===U&&f(Z,e)&&!f(tt,e))&&(!(n||!f(this,e)||!f(Z,e)||f(this,F)&&this[F][e])||n)},ut=function(t,e){var n=p(t),r=g(e);if(n!==U||!f(Z,r)||f(tt,r)){var i=Y(n,r);return!i||!f(Z,r)||f(n,F)&&n[F][r]||(i.enumerable=!0),i}},lt=function(t){var e=X(p(t)),n=[];return j(e,function(t){f(Z,t)||f(P,t)||Q(n,t)}),n},ct=function(t){var e=t===U,n=X(e?tt:p(t)),r=[];return j(n,function(t){!f(Z,t)||e&&!f(U,t)||Q(r,Z[t])}),r};l||(H=function(){if(d(q,this))throw W("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?m(arguments[0]):void 0,e=N(t),n=function(t){this===U&&o(n,tt,t),f(this,F)&&f(this[F],e)&&(this[F][e]=!1),rt(this,e,v(1,t))};return u&&nt&&rt(U,e,{configurable:!0,set:n}),it(e,t)},T(q=H.prototype,"toString",function(){return z(this).tag}),T(H,"withoutSetter",function(t){return it(N(t),t)}),E.f=st,S.f=ot,C.f=at,k.f=ut,_.f=w.f=lt,x.f=ct,M.f=function(t){return it(D(t),t)},u&&(K(q,"description",{configurable:!0,get:function(){return z(this).description}}),s||T(U,"propertyIsEnumerable",st,{unsafe:!0}))),r({global:!0,constructor:!0,wrap:!0,forced:!l,sham:!l},{Symbol:H}),j(b(et),function(t){I(t)}),r({target:B,stat:!0,forced:!l},{useSetter:function(){nt=!0},useSimple:function(){nt=!1}}),r({target:"Object",stat:!0,forced:!l,sham:!u},{create:function(t,e){return void 0===e?y(t):at(y(t),e)},defineProperty:ot,defineProperties:at,getOwnPropertyDescriptor:ut}),r({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:lt}),R(),$(H,B),P[F]=!0},2615:function(){},4523:function(t,e,n){var r=n(6887),i=n(626),o=n(953),a=n(5803),s=n(8726),u=n(5366),l=s("string-to-symbol-registry"),c=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!u},{for:function(t){var e=a(t);if(o(l,e))return l[e];var n=i("Symbol")(e);return l[e]=n,c[n]=e,n}})},1732:function(t,e,n){n(6349)("hasInstance")},5903:function(t,e,n){n(6349)("isConcatSpreadable")},1825:function(t,e,n){n(6349)("iterator")},5824:function(t,e,n){n(8616),n(4523),n(8608),n(2619),n(7144)},8608:function(t,e,n){var r=n(6887),i=n(953),o=n(6664),a=n(9826),s=n(8726),u=n(5366),l=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!u},{keyFor:function(t){if(!o(t))throw TypeError(a(t)+" is not a symbol");if(i(l,t))return l[t]}})},5915:function(t,e,n){n(6349)("matchAll")},8394:function(t,e,n){n(6349)("match")},1766:function(t,e,n){n(6349)("replace")},2737:function(t,e,n){n(6349)("search")},9911:function(t,e,n){n(6349)("species")},4315:function(t,e,n){n(6349)("split")},3131:function(t,e,n){var r=n(6349),i=n(9630);r("toPrimitive"),i()},4714:function(t,e,n){var r=n(626),i=n(6349),o=n(904);i("toStringTag"),o(r("Symbol"),"Symbol")},659:function(t,e,n){n(6349)("unscopables")},8783:function(t,e,n){n(6349)("asyncDispose")},3975:function(t,e,n){n(6349)("dispose")},5799:function(t,e,n){n(6349)("matcher")},1943:function(t,e,n){n(6349)("metadataKey")},5414:function(t,e,n){n(6349)("metadata")},6774:function(t,e,n){n(6349)("observable")},620:function(t,e,n){n(6349)("patternMatch")},6172:function(t,e,n){n(6349)("replaceAll")},7634:function(t,e,n){n(6274);var r=n(3281),i=n(1899),o=n(9697),a=n(2029),s=n(2077),u=n(9813)("toStringTag");for(var l in r){var c=i[l],f=c&&c.prototype;f&&o(f)!==u&&a(f,u,l),s[l]=s.Array}},7698:function(t,e,n){var r=n(4493);t.exports=r},6243:function(t,e,n){var r=n(3830);n(7634),t.exports=r},1955:function(t,e,n){var r=n(2480);t.exports=r},1798:function(t,e,n){var r=n(8287);t.exports=r},2073:function(t,e,n){var r=n(9601);t.exports=r},7795:function(t,e,n){var r=n(8430);t.exports=r},2547:function(t,e,n){var r=n(7473);n(7634),t.exports=r},824:function(t,e,n){"use strict";n.r(e);var r=n(8081),i=n.n(r),o=n(3645),a=n.n(o)()(i());a.push([t.id,".distpicker-address-wrapper{color:#9caebf}.distpicker-address-wrapper select{padding:.5rem .75rem;height:40px;font-size:1rem;line-height:1.25;color:#464a4c;background-color:#fff;background-image:none;-webkit-background-clip:padding-box;background-clip:padding-box;border:1px solid rgba(0,0,0,0.15);border-radius:.25rem;-webkit-transition:border-color ease-in-out .15s,-webkit-box-shadow ease-in-out .15s;transition:border-color ease-in-out .15s,-webkit-box-shadow ease-in-out .15s;-o-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s,-webkit-box-shadow ease-in-out .15s}.distpicker-address-wrapper select option{font-weight:normal;display:block;white-space:pre;min-height:1.2em;padding:0px 2px 1px}.distpicker-address-wrapper ul{margin:0;padding:0}.distpicker-address-wrapper ul li{list-style:none}.distpicker-address-wrapper .address-header{background-color:#fff}.distpicker-address-wrapper .address-header ul{display:flex;justify-content:space-around;align-items:stretch}.distpicker-address-wrapper .address-header ul li{display:inline-block;padding:10px 10px 7px}.distpicker-address-wrapper .address-header ul li.active{border-bottom:#52697f solid 3px;color:#52697f}.distpicker-address-wrapper .address-container{background-color:#fff}.distpicker-address-wrapper .address-container ul{height:100%;overflow:auto}.distpicker-address-wrapper .address-container ul li{padding:8px 10px;border-top:1px solid #f6f6f6}.distpicker-address-wrapper .address-container ul li.active{color:#52697f}.disabled-color{background:#f8f8f8}\n",""]),e.default=a},3645:function(t){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var n="",r=void 0!==e[5];return e[4]&&(n+="@supports (".concat(e[4],") {")),e[2]&&(n+="@media ".concat(e[2]," {")),r&&(n+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),n+=t(e),r&&(n+="}"),e[2]&&(n+="}"),e[4]&&(n+="}"),n}).join("")},e.i=function(t,n,r,i,o){"string"==typeof t&&(t=[[null,t,void 0]]);var a={};if(r)for(var s=0;s<this.length;s++){var u=this[s][0];null!=u&&(a[u]=!0)}for(var l=0;l<t.length;l++){var c=[].concat(t[l]);r&&a[c[0]]||(void 0!==o&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=o),n&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=n):c[2]=n),i&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=i):c[4]="".concat(i)),e.push(c))}},e}},8081:function(t){"use strict";t.exports=function(t){return t[1]}},8846:function(t,e,n){var r=n(824);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals),(0,n(5346).Z)("664ad884",r,!1,{})},5346:function(t,e,n){"use strict";function r(t,e){for(var n=[],r={},i=0;i<e.length;i++){var o=e[i],a=o[0],s={id:t+":"+i,css:o[1],media:o[2],sourceMap:o[3]};r[a]?r[a].parts.push(s):n.push(r[a]={id:a,parts:[s]})}return n}function i(t,e,n,i){m=n,y=i||{};var a=r(t,e);return o(a),function(e){for(var n=[],i=0;i<a.length;i++){var s=a[i];(u=d[s.id]).refs--,n.push(u)}for(e?o(a=r(t,e)):a=[],i=0;i<n.length;i++){var u;if(0===(u=n[i]).refs){for(var l=0;l<u.parts.length;l++)u.parts[l]();delete d[u.id]}}}}function o(t){for(var e=0;e<t.length;e++){var n=t[e],r=d[n.id];if(r){r.refs++;for(var i=0;i<r.parts.length;i++)r.parts[i](n.parts[i]);for(;i<n.parts.length;i++)r.parts.push(s(n.parts[i]));r.parts.length>n.parts.length&&(r.parts.length=n.parts.length)}else{var o=[];for(i=0;i<n.parts.length;i++)o.push(s(n.parts[i]));d[n.id]={id:n.id,refs:1,parts:o}}}}function a(){var t=document.createElement("style");return t.type="text/css",h.appendChild(t),t}function s(t){var e,n,r=document.querySelector("style["+b+'~="'+t.id+'"]');if(r){if(m)return v;r.parentNode.removeChild(r)}if(_){var i=g++;r=p||(p=a()),e=u.bind(null,r,i,!1),n=u.bind(null,r,i,!0)}else r=a(),e=l.bind(null,r),n=function(){r.parentNode.removeChild(r)};return e(t),function(r){if(r){if(r.css===t.css&&r.media===t.media&&r.sourceMap===t.sourceMap)return;e(t=r)}else n()}}function u(t,e,n,r){var i=n?"":r.css;if(t.styleSheet)t.styleSheet.cssText=w(e,i);else{var o=document.createTextNode(i),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(o,a[e]):t.appendChild(o)}}function l(t,e){var n=e.css,r=e.media,i=e.sourceMap;if(r&&t.setAttribute("media",r),y.ssrId&&t.setAttribute(b,e.id),i&&(n+="\n/*# sourceURL="+i.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}n.d(e,{Z:function(){return i}});var c="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!c)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var f,d={},h=c&&(document.head||document.getElementsByTagName("head")[0]),p=null,g=0,m=!1,v=function(){},y=null,b="data-vue-ssr-id",_="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase()),w=(f=[],function(t,e){return f[t]=e,f.filter(Boolean).join("\n")})},349:function(t,e,n){t.exports=n(7385)},9389:function(t,e,n){t.exports=n(2209)},3324:function(t,e,n){t.exports=n(4442)},8946:function(t,e,n){t.exports=n(6942)},5704:function(t,e,n){t.exports=n(1493)},1082:function(t,e,n){t.exports=n(4437)},2472:function(t,e,n){t.exports=n(6600)}},n={};t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,{a:n}),n},t.d=function(e,n){for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},t.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),t.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},t.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};return function(){"use strict";function e(t){return null==t||"string"==(e=t,m()(n=Object.prototype.toString.call(e)).call(n,8,-1).toLowerCase())&&0==(t=t.replace(/\s+/g,"")).length;var e,n}function n(t){return!e(t)&&!i(t)&&6==t.toString().length&&!isNaN(parseInt(t))}function i(t){return/[\u4E00-\u9FA5]/.test(t)}function o(t,e){var n,r,i=m()(n=t.toString()).call(n,0,2)+"0000";return"city"==e?{provinceCode:i,cityCode:t}:"area"==e?{provinceCode:i,cityCode:m()(r=t.toString()).call(r,0,4)+"00"}:void 0}function a(t,e){var n=void 0!==_()&&x()(t)||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){var n;if(t){if("string"==typeof t)return s(t,e);var r=m()(n=Object.prototype.toString.call(t)).call(n,8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?y()(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){u=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw o}}}}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}t.d(r,{default:function(){return O}});var u=t(8946),l=t.n(u),c=t(3324),f=t.n(c),d=function(){var t=this,e=t._self._c;return e("div",{class:t.wrapper},["mobile"!==t.type?[e("label",[e("select",{directives:[{name:"model",rawName:"v-model",value:t.currentProvince,expression:"currentProvince"}],attrs:{disabled:t.disabled||t.provinceDisabled},on:{change:[function(e){var n,r=l()(n=f()(Array.prototype).call(e.target.options,function(t){return t.selected})).call(n,function(t){return"_value"in t?t._value:t.value});t.currentProvince=e.target.multiple?r:r[0]},t.getCities]}},[e("option",{domProps:{value:t.placeholders.province}},[t._v(t._s(t.placeholders.province))]),t._v(" "),t._l(t.provinces,function(n,r){return e("option",{key:r,domProps:{value:n}},[t._v("\n "+t._s(n)+"\n ")])})],2)]),t._v(" "),t.onlyProvince?t._e():[e("label",[e("select",{directives:[{name:"model",rawName:"v-model",value:t.currentCity,expression:"currentCity"}],attrs:{disabled:t.disabled||t.cityDisabled},on:{change:[function(e){var n,r=l()(n=f()(Array.prototype).call(e.target.options,function(t){return t.selected})).call(n,function(t){return"_value"in t?t._value:t.value});t.currentCity=e.target.multiple?r:r[0]},t.getAreas]}},[e("option",{domProps:{value:t.placeholders.city}},[t._v(t._s(t.placeholders.city))]),t._v(" "),t._l(t.cities,function(n,r){return e("option",{key:r,domProps:{value:n}},[t._v("\n "+t._s(n)+"\n ")])})],2)]),t._v(" "),e("label",[t.hideArea?t._e():e("select",{directives:[{name:"model",rawName:"v-model",value:t.currentArea,expression:"currentArea"}],attrs:{disabled:t.disabled||t.areaDisabled},on:{change:[function(e){var n,r=l()(n=f()(Array.prototype).call(e.target.options,function(t){return t.selected})).call(n,function(t){return"_value"in t?t._value:t.value});t.currentArea=e.target.multiple?r:r[0]},t.changeArea]}},[e("option",{domProps:{value:t.placeholders.area}},[t._v(t._s(t.placeholders.area))]),t._v(" "),t._l(t.areas,function(n,r){return e("option",{key:r,domProps:{value:n}},[t._v("\n "+t._s(n)+"\n ")])})],2)])]]:[e("div",{class:t.addressHeader},[e("ul",[e("li",{class:{active:1===t.tab},on:{click:t.resetProvince}},[t._v(t._s(t.currentProvince&&!t.staticPlaceholder?t.currentProvince:t.placeholders.province))]),t._v(" "),t.onlyProvince?t._e():[t.showCityTab?e("li",{class:{active:2===t.tab},on:{click:t.resetCity}},[t._v(t._s(t.currentCity&&!t.staticPlaceholder?t.currentCity:t.placeholders.city))]):t._e(),t._v(" "),t.showAreaTab&&!t.hideArea?e("li",{class:{active:3===t.tab}},[t._v(t._s(t.currentArea&&!t.staticPlaceholder?t.currentArea:t.placeholders.area))]):t._e()]],2)]),t._v(" "),e("div",{class:t.addressContainer},[1===t.tab?e("ul",t._l(t.provinces,function(n,r){return e("li",{key:r,class:{active:n===t.currentProvince},on:{click:function(e){return t.chooseProvince(n)}}},[t._v("\n "+t._s(n)+"\n ")])}),0):t._e(),t._v(" "),t.onlyProvince?t._e():[2===t.tab?e("ul",t._l(t.cities,function(n,r){return e("li",{key:r,class:{active:n===t.currentCity},on:{click:function(e){return t.chooseCity(n)}}},[t._v("\n "+t._s(n)+"\n ")])}),0):t._e(),t._v(" "),3!==t.tab||t.hideArea?t._e():e("ul",t._l(t.areas,function(n,r){return e("li",{key:r,class:{active:n===t.currentArea},on:{click:function(e){return t.chooseArea(n)}}},[t._v("\n "+t._s(n)+"\n ")])}),0)]],2)]],2)};d._withStripped=!0;var h=t(1082),p=t.n(h),g=t(5704),m=t.n(g),v=t(349),y=t.n(v),b=t(2472),_=t.n(b),w=t(9389),x=t.n(w),k={11e4:"北京市",12e4:"天津市",13e4:"河北省",14e4:"山西省",15e4:"内蒙古自治区",21e4:"辽宁省",22e4:"吉林省",23e4:"黑龙江省",31e4:"上海市",32e4:"江苏省",33e4:"浙江省",34e4:"安徽省",35e4:"福建省",36e4:"江西省",37e4:"山东省",41e4:"河南省",42e4:"湖北省",43e4:"湖南省",44e4:"广东省",45e4:"广西壮族自治区",46e4:"海南省",5e5:"重庆市",51e4:"四川省",52e4:"贵州省",53e4:"云南省",54e4:"西藏自治区",61e4:"陕西省",62e4:"甘肃省",63e4:"青海省",64e4:"宁夏回族自治区",65e4:"新疆维吾尔自治区",71e4:"台湾省",81e4:"香港特别行政区",82e4:"澳门特别行政区",9e5:"海外"},S={11e4:{110100:"北京市"},12e4:{120100:"天津市"},13e4:{130100:"石家庄市",130200:"唐山市",130300:"秦皇岛市",130400:"邯郸市",130500:"邢台市",130600:"保定市",130700:"张家口市",130800:"承德市",130900:"沧州市",131e3:"廊坊市",131100:"衡水市"},14e4:{140100:"太原市",140200:"大同市",140300:"阳泉市",140400:"长治市",140500:"晋城市",140600:"朔州市",140700:"晋中市",140800:"运城市",140900:"忻州市",141e3:"临汾市",141100:"吕梁市"},15e4:{150100:"呼和浩特市",150200:"包头市",150300:"乌海市",150400:"赤峰市",150500:"通辽市",150600:"鄂尔多斯市",150700:"呼伦贝尔市",150800:"巴彦淖尔市",150900:"乌兰察布市",152200:"兴安盟",152500:"锡林郭勒盟",152900:"阿拉善盟"},21e4:{210100:"沈阳市",210200:"大连市",210300:"鞍山市",210400:"抚顺市",210500:"本溪市",210600:"丹东市",210700:"锦州市",210800:"营口市",210900:"阜新市",211e3:"辽阳市",211100:"盘锦市",211200:"铁岭市",211300:"朝阳市",211400:"葫芦岛市"},22e4:{220100:"长春市",220200:"吉林市",220300:"四平市",220400:"辽源市",220500:"通化市",220600:"白山市",220700:"松原市",220800:"白城市",222400:"延边朝鲜族自治州"},23e4:{230100:"哈尔滨市",230200:"齐齐哈尔市",230300:"鸡西市",230400:"鹤岗市",230500:"双鸭山市",230600:"大庆市",230700:"伊春市",230800:"佳木斯市",230900:"七台河市",231e3:"牡丹江市",231100:"黑河市",231200:"绥化市",232700:"大兴安岭地区"},31e4:{310100:"上海市"},32e4:{320100:"南京市",320200:"无锡市",320300:"徐州市",320400:"常州市",320500:"苏州市",320600:"南通市",320700:"连云港市",320800:"淮安市",320900:"盐城市",321e3:"扬州市",321100:"镇江市",321200:"泰州市",321300:"宿迁市"},33e4:{330100:"杭州市",330200:"宁波市",330300:"温州市",330400:"嘉兴市",330500:"湖州市",330600:"绍兴市",330700:"金华市",330800:"衢州市",330900:"舟山市",331e3:"台州市",331100:"丽水市"},34e4:{340100:"合肥市",340200:"芜湖市",340300:"蚌埠市",340400:"淮南市",340500:"马鞍山市",340600:"淮北市",340700:"铜陵市",340800:"安庆市",341e3:"黄山市",341100:"滁州市",341200:"阜阳市",341300:"宿州市",341500:"六安市",341600:"亳州市",341700:"池州市",341800:"宣城市"},35e4:{350100:"福州市",350200:"厦门市",350300:"莆田市",350400:"三明市",350500:"泉州市",350600:"漳州市",350700:"南平市",350800:"龙岩市",350900:"宁德市"},36e4:{360100:"南昌市",360200:"景德镇市",360300:"萍乡市",360400:"九江市",360500:"新余市",360600:"鹰潭市",360700:"赣州市",360800:"吉安市",360900:"宜春市",361e3:"抚州市",361100:"上饶市"},37e4:{370100:"济南市",370200:"青岛市",370300:"淄博市",370400:"枣庄市",370500:"东营市",370600:"烟台市",370700:"潍坊市",370800:"济宁市",370900:"泰安市",371e3:"威海市",371100:"日照市",371300:"临沂市",371400:"德州市",371500:"聊城市",371600:"滨州市",371700:"菏泽市"},41e4:{410100:"郑州市",410200:"开封市",410300:"洛阳市",410400:"平顶山市",410500:"安阳市",410600:"鹤壁市",410700:"新乡市",410800:"焦作市",410900:"濮阳市",411e3:"许昌市",411100:"漯河市",411200:"三门峡市",411300:"南阳市",411400:"商丘市",411500:"信阳市",411600:"周口市",411700:"驻马店市",419e3:"省直辖县"},42e4:{420100:"武汉市",420200:"黄石市",420300:"十堰市",420500:"宜昌市",420600:"襄阳市",420700:"鄂州市",420800:"荆门市",420900:"孝感市",421e3:"荆州市",421100:"黄冈市",421200:"咸宁市",421300:"随州市",422800:"恩施土家族苗族自治州",429e3:"省直辖县"},43e4:{430100:"长沙市",430200:"株洲市",430300:"湘潭市",430400:"衡阳市",430500:"邵阳市",430600:"岳阳市",430700:"常德市",430800:"张家界市",430900:"益阳市",431e3:"郴州市",431100:"永州市",431200:"怀化市",431300:"娄底市",433100:"湘西土家族苗族自治州"},44e4:{440100:"广州市",440200:"韶关市",440300:"深圳市",440400:"珠海市",440500:"汕头市",440600:"佛山市",440700:"江门市",440800:"湛江市",440900:"茂名市",441200:"肇庆市",441300:"惠州市",441400:"梅州市",441500:"汕尾市",441600:"河源市",441700:"阳江市",441800:"清远市",441900:"东莞市",442e3:"中山市",445100:"潮州市",445200:"揭阳市",445300:"云浮市"},45e4:{450100:"南宁市",450200:"柳州市",450300:"桂林市",450400:"梧州市",450500:"北海市",450600:"防城港市",450700:"钦州市",450800:"贵港市",450900:"玉林市",451e3:"百色市",451100:"贺州市",451200:"河池市",451300:"来宾市",451400:"崇左市"},46e4:{460100:"海口市",460200:"三亚市",460300:"三沙市",460400:"儋州市"},5e5:{500100:"重庆市",500200:"县"},51e4:{510100:"成都市",510300:"自贡市",510400:"攀枝花市",510500:"泸州市",510600:"德阳市",510700:"绵阳市",510800:"广元市",510900:"遂宁市",511e3:"内江市",511100:"乐山市",511300:"南充市",511400:"眉山市",511500:"宜宾市",511600:"广安市",511700:"达州市",511800:"雅安市",511900:"巴中市",512e3:"资阳市",513200:"阿坝藏族羌族自治州",513300:"甘孜藏族自治州",513400:"凉山彝族自治州"},52e4:{520100:"贵阳市",520200:"六盘水市",520300:"遵义市",520400:"安顺市",520500:"毕节市",520600:"铜仁市",522300:"黔西南布依族苗族自治州",522600:"黔东南苗族侗族自治州",522700:"黔南布依族苗族自治州"},53e4:{530100:"昆明市",530300:"曲靖市",530400:"玉溪市",530500:"保山市",530600:"昭通市",530700:"丽江市",530800:"普洱市",530900:"临沧市",532300:"楚雄彝族自治州",532500:"红河哈尼族彝族自治州",532600:"文山壮族苗族自治州",532800:"西双版纳傣族自治州",532900:"大理白族自治州",533100:"德宏傣族景颇族自治州",533300:"怒江傈僳族自治州",533400:"迪庆藏族自治州"},54e4:{540100:"拉萨市",540200:"日喀则市",540300:"昌都市",540400:"林芝市",540500:"山南市",540600:"那曲市",542500:"阿里地区"},61e4:{610100:"西安市",610200:"铜川市",610300:"宝鸡市",610400:"咸阳市",610500:"渭南市",610600:"延安市",610700:"汉中市",610800:"榆林市",610900:"安康市",611e3:"商洛市"},62e4:{620100:"兰州市",620200:"嘉峪关市",620300:"金昌市",620400:"白银市",620500:"天水市",620600:"武威市",620700:"张掖市",620800:"平凉市",620900:"酒泉市",621e3:"庆阳市",621100:"定西市",621200:"陇南市",622900:"临夏回族自治州",623e3:"甘南藏族自治州"},63e4:{630100:"西宁市",630200:"海东市",632200:"海北藏族自治州",632300:"黄南藏族自治州",632500:"海南藏族自治州",632600:"果洛藏族自治州",632700:"玉树藏族自治州",632800:"海西蒙古族藏族自治州"},64e4:{640100:"银川市",640200:"石嘴山市",640300:"吴忠市",640400:"固原市",640500:"中卫市"},65e4:{650100:"乌鲁木齐市",650200:"克拉玛依市",650400:"吐鲁番市",650500:"哈密市",652300:"昌吉回族自治州",652700:"博尔塔拉蒙古自治州",652800:"巴音郭楞蒙古自治州",652900:"阿克苏地区",653e3:"克孜勒苏柯尔克孜自治州",653100:"喀什地区",653200:"和田地区",654e3:"伊犁哈萨克自治州",654200:"塔城地区",654300:"阿勒泰地区"},71e4:{710100:"台北市",710200:"高雄市",710300:"台南市",710400:"台中市",710500:"金门县",710600:"南投县",710700:"基隆市",710800:"新竹市",710900:"嘉义市",711100:"新北市",711200:"宜兰县",711300:"新竹县",711400:"桃园县",711500:"苗栗县",711700:"彰化县",711900:"嘉义县",712100:"云林县",712400:"屏东县",712500:"台东县",712600:"花莲县",712700:"澎湖县",712800:"连江县"},81e4:{810100:"香港岛",810200:"九龙",810300:"新界"},82e4:{820100:"澳门半岛",820200:"离岛"},9e5:{900100:"其它市"}},C={110100:{110101:"东城区",110102:"西城区",110105:"朝阳区",110106:"丰台区",110107:"石景山区",110108:"海淀区",110109:"门头沟区",110111:"房山区",110112:"通州区",110113:"顺义区",110114:"昌平区",110115:"大兴区",110116:"怀柔区",110117:"平谷区",110118:"密云区",110119:"延庆区"},120100:{120101:"和平区",120102:"河东区",120103:"河西区",120104:"南开区",120105:"河北区",120106:"红桥区",120110:"东丽区",120111:"西青区",120112:"津南区",120113:"北辰区",120114:"武清区",120115:"宝坻区",120116:"滨海新区",120117:"宁河区",120118:"静海区",120119:"蓟州区"},130100:{130102:"长安区",130104:"桥西区",130105:"新华区",130107:"井陉矿区",130108:"裕华区",130109:"藁城区",130110:"鹿泉区",130111:"栾城区",130121:"井陉县",130123:"正定县",130125:"行唐县",130126:"灵寿县",130127:"高邑县",130128:"深泽县",130129:"赞皇县",130130:"无极县",130131:"平山县",130132:"元氏县",130133:"赵县",130171:"石家庄高新技术产业开发区",130172:"石家庄循环化工园区",130181:"辛集市",130183:"晋州市",130184:"新乐市"},130200:{130202:"路南区",130203:"路北区",130204:"古冶区",130205:"开平区",130207:"丰南区",130208:"丰润区",130209:"曹妃甸区",130224:"滦南县",130225:"乐亭县",130227:"迁西县",130229:"玉田县",130271:"河北唐山芦台经济开发区",130272:"唐山市汉沽管理区",130273:"唐山高新技术产业开发区",130274:"河北唐山海港经济开发区",130281:"遵化市",130283:"迁安市",130284:"滦州市"},130300:{130302:"海港区",130303:"山海关区",130304:"北戴河区",130306:"抚宁区",130321:"青龙满族自治县",130322:"昌黎县",130324:"卢龙县",130371:"秦皇岛市经济技术开发区",130372:"北戴河新区"},130400:{130402:"邯山区",130403:"丛台区",130404:"复兴区",130406:"峰峰矿区",130407:"肥乡区",130408:"永年区",130423:"临漳县",130424:"成安县",130425:"大名县",130426:"涉县",130427:"磁县",130430:"邱县",130431:"鸡泽县",130432:"广平县",130433:"馆陶县",130434:"魏县",130435:"曲周县",130471:"邯郸经济技术开发区",130473:"邯郸冀南新区",130481:"武安市"},130500:{130502:"襄都区",130503:"信都区",130505:"任泽区",130506:"南和区",130522:"临城县",130523:"内丘县",130524:"柏乡县",130525:"隆尧县",130528:"宁晋县",130529:"巨鹿县",130530:"新河县",130531:"广宗县",130532:"平乡县",130533:"威县",130534:"清河县",130535:"临西县",130571:"河北邢台经济开发区",130581:"南宫市",130582:"沙河市"},130600:{130602:"竞秀区",130606:"莲池区",130607:"满城区",130608:"清苑区",130609:"徐水区",130623:"涞水县",130624:"阜平县",130626:"定兴县",130627:"唐县",130628:"高阳县",130629:"容城县",130630:"涞源县",130631:"望都县",130632:"安新县",130633:"易县",130634:"曲阳县",130635:"蠡县",130636:"顺平县",130637:"博野县",130638:"雄县",130671:"保定高新技术产业开发区",130672:"保定白沟新城",130681:"涿州市",130682:"定州市",130683:"安国市",130684:"高碑店市"},130700:{130702:"桥东区",130703:"桥西区",130705:"宣化区",130706:"下花园区",130708:"万全区",130709:"崇礼区",130722:"张北县",130723:"康保县",130724:"沽源县",130725:"尚义县",130726:"蔚县",130727:"阳原县",130728:"怀安县",130730:"怀来县",130731:"涿鹿县",130732:"赤城县",130771:"张家口经济开发区",130772:"张家口市察北管理区",130773:"张家口市塞北管理区"},130800:{130802:"双桥区",130803:"双滦区",130804:"鹰手营子矿区",130821:"承德县",130822:"兴隆县",130824:"滦平县",130825:"隆化县",130826:"丰宁满族自治县",130827:"宽城满族自治县",130828:"围场满族蒙古族自治县",130871:"承德高新技术产业开发区",130881:"平泉市"},130900:{130902:"新华区",130903:"运河区",130921:"沧县",130922:"青县",130923:"东光县",130924:"海兴县",130925:"盐山县",130926:"肃宁县",130927:"南皮县",130928:"吴桥县",130929:"献县",130930:"孟村回族自治县",130971:"河北沧州经济开发区",130972:"沧州高新技术产业开发区",130973:"沧州渤海新区",130981:"泊头市",130982:"任丘市",130983:"黄骅市",130984:"河间市"},131e3:{131002:"安次区",131003:"广阳区",131022:"固安县",131023:"永清县",131024:"香河县",131025:"大城县",131026:"文安县",131028:"大厂回族自治县",131071:"廊坊经济技术开发区",131081:"霸州市",131082:"三河市"},131100:{131102:"桃城区",131103:"冀州区",131121:"枣强县",131122:"武邑县",131123:"武强县",131124:"饶阳县",131125:"安平县",131126:"故城县",131127:"景县",131128:"阜城县",131171:"河北衡水高新技术产业开发区",131172:"衡水滨湖新区",131182:"深州市"},140100:{140105:"小店区",140106:"迎泽区",140107:"杏花岭区",140108:"尖草坪区",140109:"万柏林区",140110:"晋源区",140121:"清徐县",140122:"阳曲县",140123:"娄烦县",140171:"山西转型综合改革示范区",140181:"古交市"},140200:{140212:"新荣区",140213:"平城区",140214:"云冈区",140215:"云州区",140221:"阳高县",140222:"天镇县",140223:"广灵县",140224:"灵丘县",140225:"浑源县",140226:"左云县",140271:"山西大同经济开发区"},140300:{140302:"城区",140303:"矿区",140311:"郊区",140321:"平定县",140322:"盂县"},140400:{140403:"潞州区",140404:"上党区",140405:"屯留区",140406:"潞城区",140423:"襄垣县",140425:"平顺县",140426:"黎城县",140427:"壶关县",140428:"长子县",140429:"武乡县",140430:"沁县",140431:"沁源县",140471:"山西长治高新技术产业园区"},140500:{140502:"城区",140521:"沁水县",140522:"阳城县",140524:"陵川县",140525:"泽州县",140581:"高平市"},140600:{140602:"朔城区",140603:"平鲁区",140621:"山阴县",140622:"应县",140623:"右玉县",140671:"山西朔州经济开发区",140681:"怀仁市"},140700:{140702:"榆次区",140703:"太谷区",140721:"榆社县",140722:"左权县",140723:"和顺县",140724:"昔阳县",140725:"寿阳县",140727:"祁县",140728:"平遥县",140729:"灵石县",140781:"介休市"},140800:{140802:"盐湖区",140821:"临猗县",140822:"万荣县",140823:"闻喜县",140824:"稷山县",140825:"新绛县",140826:"绛县",140827:"垣曲县",140828:"夏县",140829:"平陆县",140830:"芮城县",140881:"永济市",140882:"河津市"},140900:{140902:"忻府区",140921:"定襄县",140922:"五台县",140923:"代县",140924:"繁峙县",140925:"宁武县",140926:"静乐县",140927:"神池县",140928:"五寨县",140929:"岢岚县",140930:"河曲县",140931:"保德县",140932:"偏关县",140971:"五台山风景名胜区",140981:"原平市"},141e3:{141002:"尧都区",141021:"曲沃县",141022:"翼城县",141023:"襄汾县",141024:"洪洞县",141025:"古县",141026:"安泽县",141027:"浮山县",141028:"吉县",141029:"乡宁县",141030:"大宁县",141031:"隰县",141032:"永和县",141033:"蒲县",141034:"汾西县",141081:"侯马市",141082:"霍州市"},141100:{141102:"离石区",141121:"文水县",141122:"交城县",141123:"兴县",141124:"临县",141125:"柳林县",141126:"石楼县",141127:"岚县",141128:"方山县",141129:"中阳县",141130:"交口县",141181:"孝义市",141182:"汾阳市"},150100:{150102:"新城区",150103:"回民区",150104:"玉泉区",150105:"赛罕区",150121:"土默特左旗",150122:"托克托县",150123:"和林格尔县",150124:"清水河县",150125:"武川县",150172:"呼和浩特经济技术开发区"},150200:{150202:"东河区",150203:"昆都仑区",150204:"青山区",150205:"石拐区",150206:"白云鄂博矿区",150207:"九原区",150221:"土默特右旗",150222:"固阳县",150223:"达尔罕茂明安联合旗",150271:"包头稀土高新技术产业开发区"},150300:{150302:"海勃湾区",150303:"海南区",150304:"乌达区"},150400:{150402:"红山区",150403:"元宝山区",150404:"松山区",150421:"阿鲁科尔沁旗",150422:"巴林左旗",150423:"巴林右旗",150424:"林西县",150425:"克什克腾旗",150426:"翁牛特旗",150428:"喀喇沁旗",150429:"宁城县",150430:"敖汉旗"},150500:{150502:"科尔沁区",150521:"科尔沁左翼中旗",150522:"科尔沁左翼后旗",150523:"开鲁县",150524:"库伦旗",150525:"奈曼旗",150526:"扎鲁特旗",150571:"通辽经济技术开发区",150581:"霍林郭勒市"},150600:{150602:"东胜区",150603:"康巴什区",150621:"达拉特旗",150622:"准格尔旗",150623:"鄂托克前旗",150624:"鄂托克旗",150625:"杭锦旗",150626:"乌审旗",150627:"伊金霍洛旗"},150700:{150702:"海拉尔区",150703:"扎赉诺尔区",150721:"阿荣旗",150722:"莫力达瓦达斡尔族自治旗",150723:"鄂伦春自治旗",150724:"鄂温克族自治旗",150725:"陈巴尔虎旗",150726:"新巴尔虎左旗",150727:"新巴尔虎右旗",150781:"满洲里市",150782:"牙克石市",150783:"扎兰屯市",150784:"额尔古纳市",150785:"根河市"},150800:{150802:"临河区",150821:"五原县",150822:"磴口县",150823:"乌拉特前旗",150824:"乌拉特中旗",150825:"乌拉特后旗",150826:"杭锦后旗"},150900:{150902:"集宁区",150921:"卓资县",150922:"化德县",150923:"商都县",150924:"兴和县",150925:"凉城县",150926:"察哈尔右翼前旗",150927:"察哈尔右翼中旗",150928:"察哈尔右翼后旗",150929:"四子王旗",150981:"丰镇市"},152200:{152201:"乌兰浩特市",152202:"阿尔山市",152221:"科尔沁右翼前旗",152222:"科尔沁右翼中旗",152223:"扎赉特旗",152224:"突泉县"},152500:{152501:"二连浩特市",152502:"锡林浩特市",152522:"阿巴嘎旗",152523:"苏尼特左旗",152524:"苏尼特右旗",152525:"东乌珠穆沁旗",152526:"西乌珠穆沁旗",152527:"太仆寺旗",152528:"镶黄旗",152529:"正镶白旗",152530:"正蓝旗",152531:"多伦县",152571:"乌拉盖管委会"},152900:{152921:"阿拉善左旗",152922:"阿拉善右旗",152923:"额济纳旗",152971:"内蒙古阿拉善高新技术产业开发区"},210100:{210102:"和平区",210103:"沈河区",210104:"大东区",210105:"皇姑区",210106:"铁西区",210111:"苏家屯区",210112:"浑南区",210113:"沈北新区",210114:"于洪区",210115:"辽中区",210123:"康平县",210124:"法库县",210181:"新民市"},210200:{210202:"中山区",210203:"西岗区",210204:"沙河口区",210211:"甘井子区",210212:"旅顺口区",210213:"金州区",210214:"普兰店区",210224:"长海县",210281:"瓦房店市",210283:"庄河市"},210300:{210302:"铁东区",210303:"铁西区",210304:"立山区",210311:"千山区",210321:"台安县",210323:"岫岩满族自治县",210381:"海城市"},210400:{210402:"新抚区",210403:"东洲区",210404:"望花区",210411:"顺城区",210421:"抚顺县",210422:"新宾满族自治县",210423:"清原满族自治县"},210500:{210502:"平山区",210503:"溪湖区",210504:"明山区",210505:"南芬区",210521:"本溪满族自治县",210522:"桓仁满族自治县"},210600:{210602:"元宝区",210603:"振兴区",210604:"振安区",210624:"宽甸满族自治县",210681:"东港市",210682:"凤城市"},210700:{210702:"古塔区",210703:"凌河区",210711:"太和区",210726:"黑山县",210727:"义县",210781:"凌海市",210782:"北镇市"},210800:{210802:"站前区",210803:"西市区",210804:"鲅鱼圈区",210811:"老边区",210881:"盖州市",210882:"大石桥市"},210900:{210902:"海州区",210903:"新邱区",210904:"太平区",210905:"清河门区",210911:"细河区",210921:"阜新蒙古族自治县",210922:"彰武县"},211e3:{211002:"白塔区",211003:"文圣区",211004:"宏伟区",211005:"弓长岭区",211011:"太子河区",211021:"辽阳县",211081:"灯塔市"},211100:{211102:"双台子区",211103:"兴隆台区",211104:"大洼区",211122:"盘山县"},211200:{211202:"银州区",211204:"清河区",211221:"铁岭县",211223:"西丰县",211224:"昌图县",211281:"调兵山市",211282:"开原市"},211300:{211302:"双塔区",211303:"龙城区",211321:"朝阳县",211322:"建平县",211324:"喀喇沁左翼蒙古族自治县",211381:"北票市",211382:"凌源市"},211400:{211402:"连山区",211403:"龙港区",211404:"南票区",211421:"绥中县",211422:"建昌县",211481:"兴城市"},220100:{220102:"南关区",220103:"宽城区",220104:"朝阳区",220105:"二道区",220106:"绿园区",220112:"双阳区",220113:"九台区",220122:"农安县",220171:"长春经济技术开发区",220172:"长春净月高新技术产业开发区",220173:"长春高新技术产业开发区",220174:"长春汽车经济技术开发区",220182:"榆树市",220183:"德惠市",220184:"公主岭市"},220200:{220202:"昌邑区",220203:"龙潭区",220204:"船营区",220211:"丰满区",220221:"永吉县",220271:"吉林经济开发区",220272:"吉林高新技术产业开发区",220273:"吉林中国新加坡食品区",220281:"蛟河市",220282:"桦甸市",220283:"舒兰市",220284:"磐石市"},220300:{220302:"铁西区",220303:"铁东区",220322:"梨树县",220323:"伊通满族自治县",220382:"双辽市"},220400:{220402:"龙山区",220403:"西安区",220421:"东丰县",220422:"东辽县"},220500:{220502:"东昌区",220503:"二道江区",220521:"通化县",220523:"辉南县",220524:"柳河县",220581:"梅河口市",220582:"集安市"},220600:{220602:"浑江区",220605:"江源区",220621:"抚松县",220622:"靖宇县",220623:"长白朝鲜族自治县",220681:"临江市"},220700:{220702:"宁江区",220721:"前郭尔罗斯蒙古族自治县",220722:"长岭县",220723:"乾安县",220771:"吉林松原经济开发区",220781:"扶余市"},220800:{220802:"洮北区",220821:"镇赉县",220822:"通榆县",220871:"吉林白城经济开发区",220881:"洮南市",220882:"大安市"},222400:{222401:"延吉市",222402:"图们市",222403:"敦化市",222404:"珲春市",222405:"龙井市",222406:"和龙市",222424:"汪清县",222426:"安图县"},230100:{230102:"道里区",230103:"南岗区",230104:"道外区",230108:"平房区",230109:"松北区",230110:"香坊区",230111:"呼兰区",230112:"阿城区",230113:"双城区",230123:"依兰县",230124:"方正县",230125:"宾县",230126:"巴彦县",230127:"木兰县",230128:"通河县",230129:"延寿县",230183:"尚志市",230184:"五常市"},230200:{230202:"龙沙区",230203:"建华区",230204:"铁锋区",230205:"昂昂溪区",230206:"富拉尔基区",230207:"碾子山区",230208:"梅里斯达斡尔族区",230221:"龙江县",230223:"依安县",230224:"泰来县",230225:"甘南县",230227:"富裕县",230229:"克山县",230230:"克东县",230231:"拜泉县",230281:"讷河市"},230300:{230302:"鸡冠区",230303:"恒山区",230304:"滴道区",230305:"梨树区",230306:"城子河区",230307:"麻山区",230321:"鸡东县",230381:"虎林市",230382:"密山市"},230400:{230402:"向阳区",230403:"工农区",230404:"南山区",230405:"兴安区",230406:"东山区",230407:"兴山区",230421:"萝北县",230422:"绥滨县"},230500:{230502:"尖山区",230503:"岭东区",230505:"四方台区",230506:"宝山区",230521:"集贤县",230522:"友谊县",230523:"宝清县",230524:"饶河县"},230600:{230602:"萨尔图区",230603:"龙凤区",230604:"让胡路区",230605:"红岗区",230606:"大同区",230621:"肇州县",230622:"肇源县",230623:"林甸县",230624:"杜尔伯特蒙古族自治县",230671:"大庆高新技术产业开发区"},230700:{230717:"伊美区",230718:"乌翠区",230719:"友好区",230722:"嘉荫县",230723:"汤旺县",230724:"丰林县",230725:"大箐山县",230726:"南岔县",230751:"金林区",230781:"铁力市"},230800:{230803:"向阳区",230804:"前进区",230805:"东风区",230811:"郊区",230822:"桦南县",230826:"桦川县",230828:"汤原县",230881:"同江市",230882:"富锦市",230883:"抚远市"},230900:{230902:"新兴区",230903:"桃山区",230904:"茄子河区",230921:"勃利县"},231e3:{231002:"东安区",231003:"阳明区",231004:"爱民区",231005:"西安区",231025:"林口县",231071:"牡丹江经济技术开发区",231081:"绥芬河市",231083:"海林市",231084:"宁安市",231085:"穆棱市",231086:"东宁市"},231100:{231102:"爱辉区",231123:"逊克县",231124:"孙吴县",231181:"北安市",231182:"五大连池市",231183:"嫩江市"},231200:{231202:"北林区",231221:"望奎县",231222:"兰西县",231223:"青冈县",231224:"庆安县",231225:"明水县",231226:"绥棱县",231281:"安达市",231282:"肇东市",231283:"海伦市"},232700:{232701:"漠河市",232721:"呼玛县",232722:"塔河县",232761:"加格达奇区",232762:"松岭区",232763:"新林区",232764:"呼中区"},310100:{310101:"黄浦区",310104:"徐汇区",310105:"长宁区",310106:"静安区",310107:"普陀区",310109:"虹口区",310110:"杨浦区",310112:"闵行区",310113:"宝山区",310114:"嘉定区",310115:"浦东新区",310116:"金山区",310117:"松江区",310118:"青浦区",310120:"奉贤区",310151:"崇明区"},320100:{320102:"玄武区",320104:"秦淮区",320105:"建邺区",320106:"鼓楼区",320111:"浦口区",320113:"栖霞区",320114:"雨花台区",320115:"江宁区",320116:"六合区",320117:"溧水区",320118:"高淳区"},320200:{320205:"锡山区",320206:"惠山区",320211:"滨湖区",320213:"梁溪区",320214:"新吴区",320281:"江阴市",320282:"宜兴市"},320300:{320302:"鼓楼区",320303:"云龙区",320305:"贾汪区",320311:"泉山区",320312:"铜山区",320321:"丰县",320322:"沛县",320324:"睢宁县",320371:"徐州经济技术开发区",320381:"新沂市",320382:"邳州市"},320400:{320402:"天宁区",320404:"钟楼区",320411:"新北区",320412:"武进区",320413:"金坛区",320481:"溧阳市"},320500:{320505:"虎丘区",320506:"吴中区",320507:"相城区",320508:"姑苏区",320509:"吴江区",320571:"苏州工业园区",320581:"常熟市",320582:"张家港市",320583:"昆山市",320585:"太仓市"},320600:{320612:"通州区",320613:"崇川区",320614:"海门区",320623:"如东县",320671:"南通经济技术开发区",320681:"启东市",320682:"如皋市",320685:"海安市"},320700:{320703:"连云区",320706:"海州区",320707:"赣榆区",320722:"东海县",320723:"灌云县",320724:"灌南县",320771:"连云港经济技术开发区",320772:"连云港高新技术产业开发区"},320800:{320803:"淮安区",320804:"淮阴区",320812:"清江浦区",320813:"洪泽区",320826:"涟水县",320830:"盱眙县",320831:"金湖县",320871:"淮安经济技术开发区"},320900:{320902:"亭湖区",320903:"盐都区",320904:"大丰区",320921:"响水县",320922:"滨海县",320923:"阜宁县",320924:"射阳县",320925:"建湖县",320971:"盐城经济技术开发区",320981:"东台市"},321e3:{321002:"广陵区",321003:"邗江区",321012:"江都区",321023:"宝应县",321071:"扬州经济技术开发区",321081:"仪征市",321084:"高邮市"},321100:{321102:"京口区",321111:"润州区",321112:"丹徒区",321171:"镇江新区",321181:"丹阳市",321182:"扬中市",321183:"句容市"},321200:{321202:"海陵区",321203:"高港区",321204:"姜堰区",321271:"泰州医药高新技术产业开发区",321281:"兴化市",321282:"靖江市",321283:"泰兴市"},321300:{321302:"宿城区",321311:"宿豫区",321322:"沭阳县",321323:"泗阳县",321324:"泗洪县",321371:"宿迁经济技术开发区"},330100:{330102:"上城区",330105:"拱墅区",330106:"西湖区",330108:"滨江区",330109:"萧山区",330110:"余杭区",330111:"富阳区",330112:"临安区",330113:"临平区",330114:"钱塘区",330122:"桐庐县",330127:"淳安县",330182:"建德市"},330200:{330203:"海曙区",330205:"江北区",330206:"北仑区",330211:"镇海区",330212:"鄞州区",330213:"奉化区",330225:"象山县",330226:"宁海县",330281:"余姚市",330282:"慈溪市"},330300:{330302:"鹿城区",330303:"龙湾区",330304:"瓯海区",330305:"洞头区",330324:"永嘉县",330326:"平阳县",330327:"苍南县",330328:"文成县",330329:"泰顺县",330371:"温州经济技术开发区",330381:"瑞安市",330382:"乐清市",330383:"龙港市"},330400:{330402:"南湖区",330411:"秀洲区",330421:"嘉善县",330424:"海盐县",330481:"海宁市",330482:"平湖市",330483:"桐乡市"},330500:{330502:"吴兴区",330503:"南浔区",330521:"德清县",330522:"长兴县",330523:"安吉县"},330600:{330602:"越城区",330603:"柯桥区",330604:"上虞区",330624:"新昌县",330681:"诸暨市",330683:"嵊州市"},330700:{330702:"婺城区",330703:"金东区",330723:"武义县",330726:"浦江县",330727:"磐安县",330781:"兰溪市",330782:"义乌市",330783:"东阳市",330784:"永康市"},330800:{330802:"柯城区",330803:"衢江区",330822:"常山县",330824:"开化县",330825:"龙游县",330881:"江山市"},330900:{330902:"定海区",330903:"普陀区",330921:"岱山县",330922:"嵊泗县"},331e3:{331002:"椒江区",331003:"黄岩区",331004:"路桥区",331022:"三门县",331023:"天台县",331024:"仙居县",331081:"温岭市",331082:"临海市",331083:"玉环市"},331100:{331102:"莲都区",331121:"青田县",331122:"缙云县",331123:"遂昌县",331124:"松阳县",331125:"云和县",331126:"庆元县",331127:"景宁畲族自治县",331181:"龙泉市"},340100:{340102:"瑶海区",340103:"庐阳区",340104:"蜀山区",340111:"包河区",340121:"长丰县",340122:"肥东县",340123:"肥西县",340124:"庐江县",340171:"合肥高新技术产业开发区",340172:"合肥经济技术开发区",340173:"合肥新站高新技术产业开发区",340181:"巢湖市"},340200:{340202:"镜湖区",340207:"鸠江区",340209:"弋江区",340210:"湾沚区",340212:"繁昌区",340223:"南陵县",340271:"芜湖经济技术开发区",340272:"安徽芜湖三山经济开发区",340281:"无为市"},340300:{340302:"龙子湖区",340303:"蚌山区",340304:"禹会区",340311:"淮上区",340321:"怀远县",340322:"五河县",340323:"固镇县",340371:"蚌埠市高新技术开发区",340372:"蚌埠市经济开发区"},340400:{340402:"大通区",340403:"田家庵区",340404:"谢家集区",340405:"八公山区",340406:"潘集区",340421:"凤台县",340422:"寿县"},340500:{340503:"花山区",340504:"雨山区",340506:"博望区",340521:"当涂县",340522:"含山县",340523:"和县"},340600:{340602:"杜集区",340603:"相山区",340604:"烈山区",340621:"濉溪县"},340700:{340705:"铜官区",340706:"义安区",340711:"郊区",340722:"枞阳县"},340800:{340802:"迎江区",340803:"大观区",340811:"宜秀区",340822:"怀宁县",340825:"太湖县",340826:"宿松县",340827:"望江县",340828:"岳西县",340871:"安徽安庆经济开发区",340881:"桐城市",340882:"潜山市"},341e3:{341002:"屯溪区",341003:"黄山区",341004:"徽州区",341021:"歙县",341022:"休宁县",341023:"黟县",341024:"祁门县"},341100:{341102:"琅琊区",341103:"南谯区",341122:"来安县",341124:"全椒县",341125:"定远县",341126:"凤阳县",341171:"中新苏滁高新技术产业开发区",341172:"滁州经济技术开发区",341181:"天长市",341182:"明光市"},341200:{341202:"颍州区",341203:"颍东区",341204:"颍泉区",341221:"临泉县",341222:"太和县",341225:"阜南县",341226:"颍上县",341271:"阜阳合肥现代产业园区",341272:"阜阳经济技术开发区",341282:"界首市"},341300:{341302:"埇桥区",341321:"砀山县",341322:"萧县",341323:"灵璧县",341324:"泗县",341371:"宿州马鞍山现代产业园区",341372:"宿州经济技术开发区"},341500:{341502:"金安区",341503:"裕安区",341504:"叶集区",341522:"霍邱县",341523:"舒城县",341524:"金寨县",341525:"霍山县"},341600:{341602:"谯城区",341621:"涡阳县",341622:"蒙城县",341623:"利辛县"},341700:{341702:"贵池区",341721:"东至县",341722:"石台县",341723:"青阳县"},341800:{341802:"宣州区",341821:"郎溪县",341823:"泾县",341824:"绩溪县",341825:"旌德县",341871:"宣城市经济开发区",341881:"宁国市",341882:"广德市"},350100:{350102:"鼓楼区",350103:"台江区",350104:"仓山区",350105:"马尾区",350111:"晋安区",350112:"长乐区",350121:"闽侯县",350122:"连江县",350123:"罗源县",350124:"闽清县",350125:"永泰县",350128:"平潭县",350181:"福清市"},350200:{350203:"思明区",350205:"海沧区",350206:"湖里区",350211:"集美区",350212:"同安区",350213:"翔安区"},350300:{350302:"城厢区",350303:"涵江区",350304:"荔城区",350305:"秀屿区",350322:"仙游县"},350400:{350404:"三元区",350405:"沙县区",350421:"明溪县",350423:"清流县",350424:"宁化县",350425:"大田县",350426:"尤溪县",350428:"将乐县",350429:"泰宁县",350430:"建宁县",350481:"永安市"},350500:{350502:"鲤城区",350503:"丰泽区",350504:"洛江区",350505:"泉港区",350521:"惠安县",350524:"安溪县",350525:"永春县",350526:"德化县",350527:"金门县",350581:"石狮市",350582:"晋江市",350583:"南安市"},350600:{350602:"芗城区",350603:"龙文区",350604:"龙海区",350605:"长泰区",350622:"云霄县",350623:"漳浦县",350624:"诏安县",350626:"东山县",350627:"南靖县",350628:"平和县",350629:"华安县"},350700:{350702:"延平区",350703:"建阳区",350721:"顺昌县",350722:"浦城县",350723:"光泽县",350724:"松溪县",350725:"政和县",350781:"邵武市",350782:"武夷山市",350783:"建瓯市"},350800:{350802:"新罗区",350803:"永定区",350821:"长汀县",350823:"上杭县",350824:"武平县",350825:"连城县",350881:"漳平市"},350900:{350902:"蕉城区",350921:"霞浦县",350922:"古田县",350923:"屏南县",350924:"寿宁县",350925:"周宁县",350926:"柘荣县",350981:"福安市",350982:"福鼎市"},360100:{360102:"东湖区",360103:"西湖区",360104:"青云谱区",360111:"青山湖区",360112:"新建区",360113:"红谷滩区",360121:"南昌县",360123:"安义县",360124:"进贤县"},360200:{360202:"昌江区",360203:"珠山区",360222:"浮梁县",360281:"乐平市"},360300:{360302:"安源区",360313:"湘东区",360321:"莲花县",360322:"上栗县",360323:"芦溪县"},360400:{360402:"濂溪区",360403:"浔阳区",360404:"柴桑区",360423:"武宁县",360424:"修水县",360425:"永修县",360426:"德安县",360428:"都昌县",360429:"湖口县",360430:"彭泽县",360481:"瑞昌市",360482:"共青城市",360483:"庐山市"},360500:{360502:"渝水区",360521:"分宜县"},360600:{360602:"月湖区",360603:"余江区",360681:"贵溪市"},360700:{360702:"章贡区",360703:"南康区",360704:"赣县区",360722:"信丰县",360723:"大余县",360724:"上犹县",360725:"崇义县",360726:"安远县",360728:"定南县",360729:"全南县",360730:"宁都县",360731:"于都县",360732:"兴国县",360733:"会昌县",360734:"寻乌县",360735:"石城县",360781:"瑞金市",360783:"龙南市"},360800:{360802:"吉州区",360803:"青原区",360821:"吉安县",360822:"吉水县",360823:"峡江县",360824:"新干县",360825:"永丰县",360826:"泰和县",360827:"遂川县",360828:"万安县",360829:"安福县",360830:"永新县",360881:"井冈山市"},360900:{360902:"袁州区",360921:"奉新县",360922:"万载县",360923:"上高县",360924:"宜丰县",360925:"靖安县",360926:"铜鼓县",360981:"丰城市",360982:"樟树市",360983:"高安市"},361e3:{361002:"临川区",361003:"东乡区",361021:"南城县",361022:"黎川县",361023:"南丰县",361024:"崇仁县",361025:"乐安县",361026:"宜黄县",361027:"金溪县",361028:"资溪县",361030:"广昌县"},361100:{361102:"信州区",361103:"广丰区",361104:"广信区",361123:"玉山县",361124:"铅山县",361125:"横峰县",361126:"弋阳县",361127:"余干县",361128:"鄱阳县",361129:"万年县",361130:"婺源县",361181:"德兴市"},370100:{370102:"历下区",370103:"市中区",370104:"槐荫区",370105:"天桥区",370112:"历城区",370113:"长清区",370114:"章丘区",370115:"济阳区",370116:"莱芜区",370117:"钢城区",370124:"平阴县",370126:"商河县",370171:"济南高新技术产业开发区"},370200:{370202:"市南区",370203:"市北区",370211:"黄岛区",370212:"崂山区",370213:"李沧区",370214:"城阳区",370215:"即墨区",370271:"青岛高新技术产业开发区",370281:"胶州市",370283:"平度市",370285:"莱西市"},370300:{370302:"淄川区",370303:"张店区",370304:"博山区",370305:"临淄区",370306:"周村区",370321:"桓台县",370322:"高青县",370323:"沂源县"},370400:{370402:"市中区",370403:"薛城区",370404:"峄城区",370405:"台儿庄区",370406:"山亭区",370481:"滕州市"},370500:{370502:"东营区",370503:"河口区",370505:"垦利区",370522:"利津县",370523:"广饶县",370571:"东营经济技术开发区",370572:"东营港经济开发区"},370600:{370602:"芝罘区",370611:"福山区",370612:"牟平区",370613:"莱山区",370614:"蓬莱区",370671:"烟台高新技术产业开发区",370672:"烟台经济技术开发区",370681:"龙口市",370682:"莱阳市",370683:"莱州市",370685:"招远市",370686:"栖霞市",370687:"海阳市"},370700:{370702:"潍城区",370703:"寒亭区",370704:"坊子区",370705:"奎文区",370724:"临朐县",370725:"昌乐县",370772:"潍坊滨海经济技术开发区",370781:"青州市",370782:"诸城市",370783:"寿光市",370784:"安丘市",370785:"高密市",370786:"昌邑市"},370800:{370811:"任城区",370812:"兖州区",370826:"微山县",370827:"鱼台县",370828:"金乡县",370829:"嘉祥县",370830:"汶上县",370831:"泗水县",370832:"梁山县",370871:"济宁高新技术产业开发区",370881:"曲阜市",370883:"邹城市"},370900:{370902:"泰山区",370911:"岱岳区",370921:"宁阳县",370923:"东平县",370982:"新泰市",370983:"肥城市"},371e3:{371002:"环翠区",371003:"文登区",371071:"威海火炬高技术产业开发区",371072:"威海经济技术开发区",371073:"威海临港经济技术开发区",371082:"荣成市",371083:"乳山市"},371100:{371102:"东港区",371103:"岚山区",371121:"五莲县",371122:"莒县",371171:"日照经济技术开发区"},371300:{371302:"兰山区",371311:"罗庄区",371312:"河东区",371321:"沂南县",371322:"郯城县",371323:"沂水县",371324:"兰陵县",371325:"费县",371326:"平邑县",371327:"莒南县",371328:"蒙阴县",371329:"临沭县",371371:"临沂高新技术产业开发区"},371400:{371402:"德城区",371403:"陵城区",371422:"宁津县",371423:"庆云县",371424:"临邑县",371425:"齐河县",371426:"平原县",371427:"夏津县",371428:"武城县",371471:"德州经济技术开发区",371472:"德州运河经济开发区",371481:"乐陵市",371482:"禹城市"},371500:{371502:"东昌府区",371503:"茌平区",371521:"阳谷县",371522:"莘县",371524:"东阿县",371525:"冠县",371526:"高唐县",371581:"临清市"},371600:{371602:"滨城区",371603:"沾化区",371621:"惠民县",371622:"阳信县",371623:"无棣县",371625:"博兴县",371681:"邹平市"},371700:{371702:"牡丹区",371703:"定陶区",371721:"曹县",371722:"单县",371723:"成武县",371724:"巨野县",371725:"郓城县",371726:"鄄城县",371728:"东明县",371771:"菏泽经济技术开发区",371772:"菏泽高新技术开发区"},410100:{410102:"中原区",410103:"二七区",410104:"管城回族区",410105:"金水区",410106:"上街区",410108:"惠济区",410122:"中牟县",410171:"郑州经济技术开发区",410172:"郑州高新技术产业开发区",410173:"郑州航空港经济综合实验区",410181:"巩义市",410182:"荥阳市",410183:"新密市",410184:"新郑市",410185:"登封市"},410200:{410202:"龙亭区",410203:"顺河回族区",410204:"鼓楼区",410205:"禹王台区",410212:"祥符区",410221:"杞县",410222:"通许县",410223:"尉氏县",410225:"兰考县"},410300:{410302:"老城区",410303:"西工区",410304:"瀍河回族区",410305:"涧西区",410307:"偃师区",410308:"孟津区",410311:"洛龙区",410323:"新安县",410324:"栾川县",410325:"嵩县",410326:"汝阳县",410327:"宜阳县",410328:"洛宁县",410329:"伊川县",410371:"洛阳高新技术产业开发区"},410400:{410402:"新华区",410403:"卫东区",410404:"石龙区",410411:"湛河区",410421:"宝丰县",410422:"叶县",410423:"鲁山县",410425:"郏县",410471:"平顶山高新技术产业开发区",410472:"平顶山市城乡一体化示范区",410481:"舞钢市",410482:"汝州市"},410500:{410502:"文峰区",410503:"北关区",410505:"殷都区",410506:"龙安区",410522:"安阳县",410523:"汤阴县",410526:"滑县",410527:"内黄县",410571:"安阳高新技术产业开发区",410581:"林州市"},410600:{410602:"鹤山区",410603:"山城区",410611:"淇滨区",410621:"浚县",410622:"淇县",410671:"鹤壁经济技术开发区"},410700:{410702:"红旗区",410703:"卫滨区",410704:"凤泉区",410711:"牧野区",410721:"新乡县",410724:"获嘉县",410725:"原阳县",410726:"延津县",410727:"封丘县",410771:"新乡高新技术产业开发区",410772:"新乡经济技术开发区",410773:"新乡市平原城乡一体化示范区",410781:"卫辉市",410782:"辉县市",410783:"长垣市"},410800:{410802:"解放区",410803:"中站区",410804:"马村区",410811:"山阳区",410821:"修武县",410822:"博爱县",410823:"武陟县",410825:"温县",410871:"焦作城乡一体化示范区",410882:"沁阳市",410883:"孟州市"},410900:{410902:"华龙区",410922:"清丰县",410923:"南乐县",410926:"范县",410927:"台前县",410928:"濮阳县",410971:"河南濮阳工业园区",410972:"濮阳经济技术开发区"},411e3:{411002:"魏都区",411003:"建安区",411024:"鄢陵县",411025:"襄城县",411071:"许昌经济技术开发区",411081:"禹州市",411082:"长葛市"},411100:{411102:"源汇区",411103:"郾城区",411104:"召陵区",411121:"舞阳县",411122:"临颍县",411171:"漯河经济技术开发区"},411200:{411202:"湖滨区",411203:"陕州区",411221:"渑池县",411224:"卢氏县",411271:"河南三门峡经济开发区",411281:"义马市",411282:"灵宝市"},411300:{411302:"宛城区",411303:"卧龙区",411321:"南召县",411322:"方城县",411323:"西峡县",411324:"镇平县",411325:"内乡县",411326:"淅川县",411327:"社旗县",411328:"唐河县",411329:"新野县",411330:"桐柏县",411371:"南阳高新技术产业开发区",411372:"南阳市城乡一体化示范区",411381:"邓州市"},411400:{411402:"梁园区",411403:"睢阳区",411421:"民权县",411422:"睢县",411423:"宁陵县",411424:"柘城县",411425:"虞城县",411426:"夏邑县",411471:"豫东综合物流产业聚集区",411472:"河南商丘经济开发区",411481:"永城市"},411500:{411502:"浉河区",411503:"平桥区",411521:"罗山县",411522:"光山县",411523:"新县",411524:"商城县",411525:"固始县",411526:"潢川县",411527:"淮滨县",411528:"息县",411571:"信阳高新技术产业开发区"},411600:{411602:"川汇区",411603:"淮阳区",411621:"扶沟县",411622:"西华县",411623:"商水县",411624:"沈丘县",411625:"郸城县",411627:"太康县",411628:"鹿邑县",411671:"河南周口经济开发区",411681:"项城市"},411700:{411702:"驿城区",411721:"西平县",411722:"上蔡县",411723:"平舆县",411724:"正阳县",411725:"确山县",411726:"泌阳县",411727:"汝南县",411728:"遂平县",411729:"新蔡县",411771:"河南驻马店经济开发区"},419e3:{419001:"济源市"},420100:{420102:"江岸区",420103:"江汉区",420104:"硚口区",420105:"汉阳区",420106:"武昌区",420107:"青山区",420111:"洪山区",420112:"东西湖区",420113:"汉南区",420114:"蔡甸区",420115:"江夏区",420116:"黄陂区",420117:"新洲区"},420200:{420202:"黄石港区",420203:"西塞山区",420204:"下陆区",420205:"铁山区",420222:"阳新县",420281:"大冶市"},420300:{420302:"茅箭区",420303:"张湾区",420304:"郧阳区",420322:"郧西县",420323:"竹山县",420324:"竹溪县",420325:"房县",420381:"丹江口市"},420500:{420502:"西陵区",420503:"伍家岗区",420504:"点军区",420505:"猇亭区",420506:"夷陵区",420525:"远安县",420526:"兴山县",420527:"秭归县",420528:"长阳土家族自治县",420529:"五峰土家族自治县",420581:"宜都市",420582:"当阳市",420583:"枝江市"},420600:{420602:"襄城区",420606:"樊城区",420607:"襄州区",420624:"南漳县",420625:"谷城县",420626:"保康县",420682:"老河口市",420683:"枣阳市",420684:"宜城市"},420700:{420702:"梁子湖区",420703:"华容区",420704:"鄂城区"},420800:{420802:"东宝区",420804:"掇刀区",420822:"沙洋县",420881:"钟祥市",420882:"京山市"},420900:{420902:"孝南区",420921:"孝昌县",420922:"大悟县",420923:"云梦县",420981:"应城市",420982:"安陆市",420984:"汉川市"},421e3:{421002:"沙市区",421003:"荆州区",421022:"公安县",421024:"江陵县",421071:"荆州经济技术开发区",421081:"石首市",421083:"洪湖市",421087:"松滋市",421088:"监利市"},421100:{421102:"黄州区",421121:"团风县",421122:"红安县",421123:"罗田县",421124:"英山县",421125:"浠水县",421126:"蕲春县",421127:"黄梅县",421171:"龙感湖管理区",421181:"麻城市",421182:"武穴市"},421200:{421202:"咸安区",421221:"嘉鱼县",421222:"通城县",421223:"崇阳县",421224:"通山县",421281:"赤壁市"},421300:{421303:"曾都区",421321:"随县",421381:"广水市"},422800:{422801:"恩施市",422802:"利川市",422822:"建始县",422823:"巴东县",422825:"宣恩县",422826:"咸丰县",422827:"来凤县",422828:"鹤峰县"},429e3:{429004:"仙桃市",429005:"潜江市",429006:"天门市",429021:"神农架林区"},430100:{430102:"芙蓉区",430103:"天心区",430104:"岳麓区",430105:"开福区",430111:"雨花区",430112:"望城区",430121:"长沙县",430181:"浏阳市",430182:"宁乡市"},430200:{430202:"荷塘区",430203:"芦淞区",430204:"石峰区",430211:"天元区",430212:"渌口区",430223:"攸县",430224:"茶陵县",430225:"炎陵县",430271:"云龙示范区",430281:"醴陵市"},430300:{430302:"雨湖区",430304:"岳塘区",430321:"湘潭县",430371:"湖南湘潭高新技术产业园区",430372:"湘潭昭山示范区",430373:"湘潭九华示范区",430381:"湘乡市",430382:"韶山市"},430400:{430405:"珠晖区",430406:"雁峰区",430407:"石鼓区",430408:"蒸湘区",430412:"南岳区",430421:"衡阳县",430422:"衡南县",430423:"衡山县",430424:"衡东县",430426:"祁东县",430471:"衡阳综合保税区",430472:"湖南衡阳高新技术产业园区",430473:"湖南衡阳松木经济开发区",430481:"耒阳市",430482:"常宁市"},430500:{430502:"双清区",430503:"大祥区",430511:"北塔区",430522:"新邵县",430523:"邵阳县",430524:"隆回县",430525:"洞口县",430527:"绥宁县",430528:"新宁县",430529:"城步苗族自治县",430581:"武冈市",430582:"邵东市"},430600:{430602:"岳阳楼区",430603:"云溪区",430611:"君山区",430621:"岳阳县",430623:"华容县",430624:"湘阴县",430626:"平江县",430671:"岳阳市屈原管理区",430681:"汨罗市",430682:"临湘市"},430700:{430702:"武陵区",430703:"鼎城区",430721:"安乡县",430722:"汉寿县",430723:"澧县",430724:"临澧县",430725:"桃源县",430726:"石门县",430771:"常德市西洞庭管理区",430781:"津市市"},430800:{430802:"永定区",430811:"武陵源区",430821:"慈利县",430822:"桑植县"},430900:{430902:"资阳区",430903:"赫山区",430921:"南县",430922:"桃江县",430923:"安化县",430971:"益阳市大通湖管理区",430972:"湖南益阳高新技术产业园区",430981:"沅江市"},431e3:{431002:"北湖区",431003:"苏仙区",431021:"桂阳县",431022:"宜章县",431023:"永兴县",431024:"嘉禾县",431025:"临武县",431026:"汝城县",431027:"桂东县",431028:"安仁县",431081:"资兴市"},431100:{431102:"零陵区",431103:"冷水滩区",431122:"东安县",431123:"双牌县",431124:"道县",431125:"江永县",431126:"宁远县",431127:"蓝山县",431128:"新田县",431129:"江华瑶族自治县",431171:"永州经济技术开发区",431173:"永州市回龙圩管理区",431181:"祁阳市"},431200:{431202:"鹤城区",431221:"中方县",431222:"沅陵县",431223:"辰溪县",431224:"溆浦县",431225:"会同县",431226:"麻阳苗族自治县",431227:"新晃侗族自治县",431228:"芷江侗族自治县",431229:"靖州苗族侗族自治县",431230:"通道侗族自治县",431271:"怀化市洪江管理区",431281:"洪江市"},431300:{431302:"娄星区",431321:"双峰县",431322:"新化县",431381:"冷水江市",431382:"涟源市"},433100:{433101:"吉首市",433122:"泸溪县",433123:"凤凰县",433124:"花垣县",433125:"保靖县",433126:"古丈县",433127:"永顺县",433130:"龙山县"},440100:{440103:"荔湾区",440104:"越秀区",440105:"海珠区",440106:"天河区",440111:"白云区",440112:"黄埔区",440113:"番禺区",440114:"花都区",440115:"南沙区",440117:"从化区",440118:"增城区"},440200:{440203:"武江区",440204:"浈江区",440205:"曲江区",440222:"始兴县",440224:"仁化县",440229:"翁源县",440232:"乳源瑶族自治县",440233:"新丰县",440281:"乐昌市",440282:"南雄市"},440300:{440303:"罗湖区",440304:"福田区",440305:"南山区",440306:"宝安区",440307:"龙岗区",440308:"盐田区",440309:"龙华区",440310:"坪山区",440311:"光明区"},440400:{440402:"香洲区",440403:"斗门区",440404:"金湾区"},440500:{440507:"龙湖区",440511:"金平区",440512:"濠江区",440513:"潮阳区",440514:"潮南区",440515:"澄海区",440523:"南澳县"},440600:{440604:"禅城区",440605:"南海区",440606:"顺德区",440607:"三水区",440608:"高明区"},440700:{440703:"蓬江区",440704:"江海区",440705:"新会区",440781:"台山市",440783:"开平市",440784:"鹤山市",440785:"恩平市"},440800:{440802:"赤坎区",440803:"霞山区",440804:"坡头区",440811:"麻章区",440823:"遂溪县",440825:"徐闻县",440881:"廉江市",440882:"雷州市",440883:"吴川市"},440900:{440902:"茂南区",440904:"电白区",440981:"高州市",440982:"化州市",440983:"信宜市"},441200:{441202:"端州区",441203:"鼎湖区",441204:"高要区",441223:"广宁县",441224:"怀集县",441225:"封开县",441226:"德庆县",441284:"四会市"},441300:{441302:"惠城区",441303:"惠阳区",441322:"博罗县",441323:"惠东县",441324:"龙门县"},441400:{441402:"梅江区",441403:"梅县区",441422:"大埔县",441423:"丰顺县",441424:"五华县",441426:"平远县",441427:"蕉岭县",441481:"兴宁市"},441500:{441502:"城区",441521:"海丰县",441523:"陆河县",441581:"陆丰市"},441600:{441602:"源城区",441621:"紫金县",441622:"龙川县",441623:"连平县",441624:"和平县",441625:"东源县"},441700:{441702:"江城区",441704:"阳东区",441721:"阳西县",441781:"阳春市"},441800:{441802:"清城区",441803:"清新区",441821:"佛冈县",441823:"阳山县",441825:"连山壮族瑶族自治县",441826:"连南瑶族自治县",441881:"英德市",441882:"连州市"},441900:{44190011:"常平镇",441900003:"东城街道",441900004:"南城街道",441900005:"万江街道",441900006:"莞城街道",441900101:"石碣镇",441900102:"石龙镇",441900103:"茶山镇",441900104:"石排镇",441900105:"企石镇",441900106:"横沥镇",441900107:"桥头镇",441900108:"谢岗镇",441900109:"东坑镇",441900111:"寮步镇",441900112:"樟木头镇",441900113:"大朗镇",441900114:"黄江镇",441900115:"清溪镇",441900116:"塘厦镇",441900117:"凤岗镇",441900118:"大岭山镇",441900119:"长安镇",441900121:"虎门镇",441900122:"厚街镇",441900123:"沙田镇",441900124:"道滘镇",441900125:"洪梅镇",441900126:"麻涌镇",441900127:"望牛墩镇",441900128:"中堂镇",441900129:"高埗镇",441900401:"松山湖",441900402:"东莞港",441900403:"东莞生态园",441900404:"东莞滨海湾新区"},442e3:{44200011:"横栏镇",442000001:"石岐街道",442000002:"东区街道",442000003:"中山港街道",442000004:"西区街道",442000005:"南区街道",442000006:"五桂山街道",442000007:"民众街道",442000008:"南朗街道",442000101:"黄圃镇",442000103:"东凤镇",442000105:"古镇镇",442000106:"沙溪镇",442000107:"坦洲镇",442000108:"港口镇",442000109:"三角镇",442000111:"南头镇",442000112:"阜沙镇",442000114:"三乡镇",442000115:"板芙镇",442000116:"大涌镇",442000117:"神湾镇",442000118:"小榄镇"},445100:{445102:"湘桥区",445103:"潮安区",445122:"饶平县"},445200:{445202:"榕城区",445203:"揭东区",445222:"揭西县",445224:"惠来县",445281:"普宁市"},445300:{445302:"云城区",445303:"云安区",445321:"新兴县",445322:"郁南县",445381:"罗定市"},450100:{450102:"兴宁区",450103:"青秀区",450105:"江南区",450107:"西乡塘区",450108:"良庆区",450109:"邕宁区",450110:"武鸣区",450123:"隆安县",450124:"马山县",450125:"上林县",450126:"宾阳县",450181:"横州市"},450200:{450202:"城中区",450203:"鱼峰区",450204:"柳南区",450205:"柳北区",450206:"柳江区",450222:"柳城县",450223:"鹿寨县",450224:"融安县",450225:"融水苗族自治县",450226:"三江侗族自治县"},450300:{450302:"秀峰区",450303:"叠彩区",450304:"象山区",450305:"七星区",450311:"雁山区",450312:"临桂区",450321:"阳朔县",450323:"灵川县",450324:"全州县",450325:"兴安县",450326:"永福县",450327:"灌阳县",450328:"龙胜各族自治县",450329:"资源县",450330:"平乐县",450332:"恭城瑶族自治县",450381:"荔浦市"},450400:{450403:"万秀区",450405:"长洲区",450406:"龙圩区",450421:"苍梧县",450422:"藤县",450423:"蒙山县",450481:"岑溪市"},450500:{450502:"海城区",450503:"银海区",450512:"铁山港区",450521:"合浦县"},450600:{450602:"港口区",450603:"防城区",450621:"上思县",450681:"东兴市"},450700:{450702:"钦南区",450703:"钦北区",450721:"灵山县",450722:"浦北县"},450800:{450802:"港北区",450803:"港南区",450804:"覃塘区",450821:"平南县",450881:"桂平市"},450900:{450902:"玉州区",450903:"福绵区",450921:"容县",450922:"陆川县",450923:"博白县",450924:"兴业县",450981:"北流市"},451e3:{451002:"右江区",451003:"田阳区",451022:"田东县",451024:"德保县",451026:"那坡县",451027:"凌云县",451028:"乐业县",451029:"田林县",451030:"西林县",451031:"隆林各族自治县",451081:"靖西市",451082:"平果市"},451100:{451102:"八步区",451103:"平桂区",451121:"昭平县",451122:"钟山县",451123:"富川瑶族自治县"},451200:{451202:"金城江区",451203:"宜州区",451221:"南丹县",451222:"天峨县",451223:"凤山县",451224:"东兰县",451225:"罗城仫佬族自治县",451226:"环江毛南族自治县",451227:"巴马瑶族自治县",451228:"都安瑶族自治县",451229:"大化瑶族自治县"},451300:{451302:"兴宾区",451321:"忻城县",451322:"象州县",451323:"武宣县",451324:"金秀瑶族自治县",451381:"合山市"},451400:{451402:"江州区",451421:"扶绥县",451422:"宁明县",451423:"龙州县",451424:"大新县",451425:"天等县",451481:"凭祥市"},460100:{460105:"秀英区",460106:"龙华区",460107:"琼山区",460108:"美兰区"},460200:{460202:"海棠区",460203:"吉阳区",460204:"天涯区",460205:"崖州区"},460300:{460321:"西沙群岛",460322:"南沙群岛",460323:"中沙群岛的岛礁及其海域"},460400:{4604001:"那大镇",4604005:"华南热作学院",460400101:"和庆镇",460400102:"南丰镇",460400103:"大成镇",460400104:"雅星镇",460400105:"兰洋镇",460400106:"光村镇",460400107:"木棠镇",460400108:"海头镇",460400109:"峨蔓镇",460400111:"王五镇",460400112:"白马井镇",460400113:"中和镇",460400114:"排浦镇",460400115:"东成镇",460400116:"新州镇",460400499:"洋浦经济开发区"},500100:{500101:"万州区",500102:"涪陵区",500103:"渝中区",500104:"大渡口区",500105:"江北区",500106:"沙坪坝区",500107:"九龙坡区",500108:"南岸区",500109:"北碚区",500110:"綦江区",500111:"大足区",500112:"渝北区",500113:"巴南区",500114:"黔江区",500115:"长寿区",500116:"江津区",500117:"合川区",500118:"永川区",500119:"南川区",500120:"璧山区",500151:"铜梁区",500152:"潼南区",500153:"荣昌区",500154:"开州区",500155:"梁平区",500156:"武隆区"},500200:{500229:"城口县",500230:"丰都县",500231:"垫江县",500233:"忠县",500235:"云阳县",500236:"奉节县",500237:"巫山县",500238:"巫溪县",500240:"石柱土家族自治县",500241:"秀山土家族苗族自治县",500242:"酉阳土家族苗族自治县",500243:"彭水苗族土家族自治县"},510100:{510104:"锦江区",510105:"青羊区",510106:"金牛区",510107:"武侯区",510108:"成华区",510112:"龙泉驿区",510113:"青白江区",510114:"新都区",510115:"温江区",510116:"双流区",510117:"郫都区",510118:"新津区",510121:"金堂县",510129:"大邑县",510131:"蒲江县",510156:"天府新区",510181:"都江堰市",510182:"彭州市",510183:"邛崃市",510184:"崇州市",510185:"简阳市"},510300:{510302:"自流井区",510303:"贡井区",510304:"大安区",510311:"沿滩区",510321:"荣县",510322:"富顺县"},510400:{510402:"东区",510403:"西区",510411:"仁和区",510421:"米易县",510422:"盐边县"},510500:{510502:"江阳区",510503:"纳溪区",510504:"龙马潭区",510521:"泸县",510522:"合江县",510524:"叙永县",510525:"古蔺县"},510600:{510603:"旌阳区",510604:"罗江区",510623:"中江县",510681:"广汉市",510682:"什邡市",510683:"绵竹市"},510700:{510703:"涪城区",510704:"游仙区",510705:"安州区",510722:"三台县",510723:"盐亭县",510725:"梓潼县",510726:"北川羌族自治县",510727:"平武县",510781:"江油市"},510800:{510802:"利州区",510811:"昭化区",510812:"朝天区",510821:"旺苍县",510822:"青川县",510823:"剑阁县",510824:"苍溪县"},510900:{510903:"船山区",510904:"安居区",510921:"蓬溪县",510923:"大英县",510981:"射洪市"},511e3:{511002:"市中区",511011:"东兴区",511024:"威远县",511025:"资中县",511071:"内江经济开发区",511083:"隆昌市"},511100:{511102:"市中区",511111:"沙湾区",511112:"五通桥区",511113:"金口河区",511123:"犍为县",511124:"井研县",511126:"夹江县",511129:"沐川县",511132:"峨边彝族自治县",511133:"马边彝族自治县",511181:"峨眉山市"},511300:{511302:"顺庆区",511303:"高坪区",511304:"嘉陵区",511321:"南部县",511322:"营山县",511323:"蓬安县",511324:"仪陇县",511325:"西充县",511381:"阆中市"},511400:{511402:"东坡区",511403:"彭山区",511421:"仁寿县",511423:"洪雅县",511424:"丹棱县",511425:"青神县"},511500:{511502:"翠屏区",511503:"南溪区",511504:"叙州区",511523:"江安县",511524:"长宁县",511525:"高县",511526:"珙县",511527:"筠连县",511528:"兴文县",511529:"屏山县"},511600:{511602:"广安区",511603:"前锋区",511621:"岳池县",511622:"武胜县",511623:"邻水县",511681:"华蓥市"},511700:{511702:"通川区",511703:"达川区",511722:"宣汉县",511723:"开江县",511724:"大竹县",511725:"渠县",511771:"达州经济开发区",511781:"万源市"},511800:{511802:"雨城区",511803:"名山区",511822:"荥经县",511823:"汉源县",511824:"石棉县",511825:"天全县",511826:"芦山县",511827:"宝兴县"},511900:{511902:"巴州区",511903:"恩阳区",511921:"通江县",511922:"南江县",511923:"平昌县",511971:"巴中经济开发区"},512e3:{512002:"雁江区",512021:"安岳县",512022:"乐至县"},513200:{513201:"马尔康市",513221:"汶川县",513222:"理县",513223:"茂县",513224:"松潘县",513225:"九寨沟县",513226:"金川县",513227:"小金县",513228:"黑水县",513230:"壤塘县",513231:"阿坝县",513232:"若尔盖县",513233:"红原县"},513300:{513301:"康定市",513322:"泸定县",513323:"丹巴县",513324:"九龙县",513325:"雅江县",513326:"道孚县",513327:"炉霍县",513328:"甘孜县",513329:"新龙县",513330:"德格县",513331:"白玉县",513332:"石渠县",513333:"色达县",513334:"理塘县",513335:"巴塘县",513336:"乡城县",513337:"稻城县",513338:"得荣县"},513400:{513401:"西昌市",513402:"会理市",513422:"木里藏族自治县",513423:"盐源县",513424:"德昌县",513426:"会东县",513427:"宁南县",513428:"普格县",513429:"布拖县",513430:"金阳县",513431:"昭觉县",513432:"喜德县",513433:"冕宁县",513434:"越西县",513435:"甘洛县",513436:"美姑县",513437:"雷波县"},520100:{520102:"南明区",520103:"云岩区",520111:"花溪区",520112:"乌当区",520113:"白云区",520115:"观山湖区",520121:"开阳县",520122:"息烽县",520123:"修文县",520181:"清镇市"},520200:{520201:"钟山区",520203:"六枝特区",520204:"水城区",520281:"盘州市"},520300:{520302:"红花岗区",520303:"汇川区",520304:"播州区",520322:"桐梓县",520323:"绥阳县",520324:"正安县",520325:"道真仡佬族苗族自治县",520326:"务川仡佬族苗族自治县",520327:"凤冈县",520328:"湄潭县",520329:"余庆县",520330:"习水县",520381:"赤水市",520382:"仁怀市"},520400:{520402:"西秀区",520403:"平坝区",520422:"普定县",520423:"镇宁布依族苗族自治县",520424:"关岭布依族苗族自治县",520425:"紫云苗族布依族自治县"},520500:{520502:"七星关区",520521:"大方县",520523:"金沙县",520524:"织金县",520525:"纳雍县",520526:"威宁彝族回族苗族自治县",520527:"赫章县",520581:"黔西市"},520600:{520602:"碧江区",520603:"万山区",520621:"江口县",520622:"玉屏侗族自治县",520623:"石阡县",520624:"思南县",520625:"印江土家族苗族自治县",520626:"德江县",520627:"沿河土家族自治县",520628:"松桃苗族自治县"},522300:{522301:"兴义市",522302:"兴仁市",522323:"普安县",522324:"晴隆县",522325:"贞丰县",522326:"望谟县",522327:"册亨县",522328:"安龙县"},522600:{522601:"凯里市",522622:"黄平县",522623:"施秉县",522624:"三穗县",522625:"镇远县",522626:"岑巩县",522627:"天柱县",522628:"锦屏县",522629:"剑河县",522630:"台江县",522631:"黎平县",522632:"榕江县",522633:"从江县",522634:"雷山县",522635:"麻江县",522636:"丹寨县"},522700:{522701:"都匀市",522702:"福泉市",522722:"荔波县",522723:"贵定县",522725:"瓮安县",522726:"独山县",522727:"平塘县",522728:"罗甸县",522729:"长顺县",522730:"龙里县",522731:"惠水县",522732:"三都水族自治县"},530100:{530102:"五华区",530103:"盘龙区",530111:"官渡区",530112:"西山区",530113:"东川区",530114:"呈贡区",530115:"晋宁区",530124:"富民县",530125:"宜良县",530126:"石林彝族自治县",530127:"嵩明县",530128:"禄劝彝族苗族自治县",530129:"寻甸回族彝族自治县",530181:"安宁市"},530300:{530302:"麒麟区",530303:"沾益区",530304:"马龙区",530322:"陆良县",530323:"师宗县",530324:"罗平县",530325:"富源县",530326:"会泽县",530381:"宣威市"},530400:{530402:"红塔区",530403:"江川区",530423:"通海县",530424:"华宁县",530425:"易门县",530426:"峨山彝族自治县",530427:"新平彝族傣族自治县",530428:"元江哈尼族彝族傣族自治县",530481:"澄江市"},530500:{530502:"隆阳区",530521:"施甸县",530523:"龙陵县",530524:"昌宁县",530581:"腾冲市"},530600:{530602:"昭阳区",530621:"鲁甸县",530622:"巧家县",530623:"盐津县",530624:"大关县",530625:"永善县",530626:"绥江县",530627:"镇雄县",530628:"彝良县",530629:"威信县",530681:"水富市"},530700:{530702:"古城区",530721:"玉龙纳西族自治县",530722:"永胜县",530723:"华坪县",530724:"宁蒗彝族自治县"},530800:{530802:"思茅区",530821:"宁洱哈尼族彝族自治县",530822:"墨江哈尼族自治县",530823:"景东彝族自治县",530824:"景谷傣族彝族自治县",530825:"镇沅彝族哈尼族拉祜族自治县",530826:"江城哈尼族彝族自治县",530827:"孟连傣族拉祜族佤族自治县",530828:"澜沧拉祜族自治县",530829:"西盟佤族自治县"},530900:{530902:"临翔区",530921:"凤庆县",530922:"云县",530923:"永德县",530924:"镇康县",530925:"双江拉祜族佤族布朗族傣族自治县",530926:"耿马傣族佤族自治县",530927:"沧源佤族自治县"},532300:{532301:"楚雄市",532302:"禄丰市",532322:"双柏县",532323:"牟定县",532324:"南华县",532325:"姚安县",532326:"大姚县",532327:"永仁县",532328:"元谋县",532329:"武定县"},532500:{532501:"个旧市",532502:"开远市",532503:"蒙自市",532504:"弥勒市",532523:"屏边苗族自治县",532524:"建水县",532525:"石屏县",532527:"泸西县",532528:"元阳县",532529:"红河县",532530:"金平苗族瑶族傣族自治县",532531:"绿春县",532532:"河口瑶族自治县"},532600:{532601:"文山市",532622:"砚山县",532623:"西畴县",532624:"麻栗坡县",532625:"马关县",532626:"丘北县",532627:"广南县",532628:"富宁县"},532800:{532801:"景洪市",532822:"勐海县",532823:"勐腊县"},532900:{532901:"大理市",532922:"漾濞彝族自治县",532923:"祥云县",532924:"宾川县",532925:"弥渡县",532926:"南涧彝族自治县",532927:"巍山彝族回族自治县",532928:"永平县",532929:"云龙县",532930:"洱源县",532931:"剑川县",532932:"鹤庆县"},533100:{533102:"瑞丽市",533103:"芒市",533122:"梁河县",533123:"盈江县",533124:"陇川县"},533300:{533301:"泸水市",533323:"福贡县",533324:"贡山独龙族怒族自治县",533325:"兰坪白族普米族自治县"},533400:{533401:"香格里拉市",533422:"德钦县",533423:"维西傈僳族自治县"},540100:{540102:"城关区",540103:"堆龙德庆区",540104:"达孜区",540121:"林周县",540122:"当雄县",540123:"尼木县",540124:"曲水县",540127:"墨竹工卡县",540171:"格尔木藏青工业园区",540172:"拉萨经济技术开发区",540173:"西藏文化旅游创意园区",540174:"达孜工业园区"},540200:{540202:"桑珠孜区",540221:"南木林县",540222:"江孜县",540223:"定日县",540224:"萨迦县",540225:"拉孜县",540226:"昂仁县",540227:"谢通门县",540228:"白朗县",540229:"仁布县",540230:"康马县",540231:"定结县",540232:"仲巴县",540233:"亚东县",540234:"吉隆县",540235:"聂拉木县",540236:"萨嘎县",540237:"岗巴县"},540300:{540302:"卡若区",540321:"江达县",540322:"贡觉县",540323:"类乌齐县",540324:"丁青县",540325:"察雅县",540326:"八宿县",540327:"左贡县",540328:"芒康县",540329:"洛隆县",540330:"边坝县"},540400:{540402:"巴宜区",540421:"工布江达县",540422:"米林县",540423:"墨脱县",540424:"波密县",540425:"察隅县",540426:"朗县"},540500:{540502:"乃东区",540521:"扎囊县",540522:"贡嘎县",540523:"桑日县",540524:"琼结县",540525:"曲松县",540526:"措美县",540527:"洛扎县",540528:"加查县",540529:"隆子县",540530:"错那县",540531:"浪卡子县"},540600:{540602:"色尼区",540621:"嘉黎县",540622:"比如县",540623:"聂荣县",540624:"安多县",540625:"申扎县",540626:"索县",540627:"班戈县",540628:"巴青县",540629:"尼玛县",540630:"双湖县"},542500:{542521:"普兰县",542522:"札达县",542523:"噶尔县",542524:"日土县",542525:"革吉县",542526:"改则县",542527:"措勤县"},610100:{610102:"新城区",610103:"碑林区",610104:"莲湖区",610111:"灞桥区",610112:"未央区",610113:"雁塔区",610114:"阎良区",610115:"临潼区",610116:"长安区",610117:"高陵区",610118:"鄠邑区",610122:"蓝田县",610124:"周至县"},610200:{610202:"王益区",610203:"印台区",610204:"耀州区",610222:"宜君县"},610300:{610302:"渭滨区",610303:"金台区",610304:"陈仓区",610305:"凤翔区",610323:"岐山县",610324:"扶风县",610326:"眉县",610327:"陇县",610328:"千阳县",610329:"麟游县",610330:"凤县",610331:"太白县"},610400:{610402:"秦都区",610403:"杨陵区",610404:"渭城区",610422:"三原县",610423:"泾阳县",610424:"乾县",610425:"礼泉县",610426:"永寿县",610428:"长武县",610429:"旬邑县",610430:"淳化县",610431:"武功县",610481:"兴平市",610482:"彬州市"},610500:{610502:"临渭区",610503:"华州区",610522:"潼关县",610523:"大荔县",610524:"合阳县",610525:"澄城县",610526:"蒲城县",610527:"白水县",610528:"富平县",610581:"韩城市",610582:"华阴市"},610600:{610602:"宝塔区",610603:"安塞区",610621:"延长县",610622:"延川县",610625:"志丹县",610626:"吴起县",610627:"甘泉县",610628:"富县",610629:"洛川县",610630:"宜川县",610631:"黄龙县",610632:"黄陵县",610681:"子长市"},610700:{610702:"汉台区",610703:"南郑区",610722:"城固县",610723:"洋县",610724:"西乡县",610725:"勉县",610726:"宁强县",610727:"略阳县",610728:"镇巴县",610729:"留坝县",610730:"佛坪县"},610800:{610802:"榆阳区",610803:"横山区",610822:"府谷县",610824:"靖边县",610825:"定边县",610826:"绥德县",610827:"米脂县",610828:"佳县",610829:"吴堡县",610830:"清涧县",610831:"子洲县",610881:"神木市"},610900:{610902:"汉滨区",610921:"汉阴县",610922:"石泉县",610923:"宁陕县",610924:"紫阳县",610925:"岚皋县",610926:"平利县",610927:"镇坪县",610929:"白河县",610981:"旬阳市"},611e3:{611002:"商州区",611021:"洛南县",611022:"丹凤县",611023:"商南县",611024:"山阳县",611025:"镇安县",611026:"柞水县"},620100:{620102:"城关区",620103:"七里河区",620104:"西固区",620105:"安宁区",620111:"红古区",620121:"永登县",620122:"皋兰县",620123:"榆中县",620171:"兰州新区"},620200:{6202011:"新城镇",620201001:"雄关街道",620201002:"钢城街道",620201101:"峪泉镇",620201102:"文殊镇"},620300:{620302:"金川区",620321:"永昌县"},620400:{620402:"白银区",620403:"平川区",620421:"靖远县",620422:"会宁县",620423:"景泰县"},620500:{620502:"秦州区",620503:"麦积区",620521:"清水县",620522:"秦安县",620523:"甘谷县",620524:"武山县",620525:"张家川回族自治县"},620600:{620602:"凉州区",620621:"民勤县",620622:"古浪县",620623:"天祝藏族自治县"},620700:{620702:"甘州区",620721:"肃南裕固族自治县",620722:"民乐县",620723:"临泽县",620724:"高台县",620725:"山丹县"},620800:{620802:"崆峒区",620821:"泾川县",620822:"灵台县",620823:"崇信县",620825:"庄浪县",620826:"静宁县",620881:"华亭市"},620900:{620902:"肃州区",620921:"金塔县",620922:"瓜州县",620923:"肃北蒙古族自治县",620924:"阿克塞哈萨克族自治县",620981:"玉门市",620982:"敦煌市"},621e3:{621002:"西峰区",621021:"庆城县",621022:"环县",621023:"华池县",621024:"合水县",621025:"正宁县",621026:"宁县",621027:"镇原县"},621100:{621102:"安定区",621121:"通渭县",621122:"陇西县",621123:"渭源县",621124:"临洮县",621125:"漳县",621126:"岷县"},621200:{621202:"武都区",621221:"成县",621222:"文县",621223:"宕昌县",621224:"康县",621225:"西和县",621226:"礼县",621227:"徽县",621228:"两当县"},622900:{622901:"临夏市",622921:"临夏县",622922:"康乐县",622923:"永靖县",622924:"广河县",622925:"和政县",622926:"东乡族自治县",622927:"积石山保安族东乡族撒拉族自治县"},623e3:{623001:"合作市",623021:"临潭县",623022:"卓尼县",623023:"舟曲县",623024:"迭部县",623025:"玛曲县",623026:"碌曲县",623027:"夏河县"},630100:{630102:"城东区",630103:"城中区",630104:"城西区",630105:"城北区",630106:"湟中区",630121:"大通回族土族自治县",630123:"湟源县"},630200:{630202:"乐都区",630203:"平安区",630222:"民和回族土族自治县",630223:"互助土族自治县",630224:"化隆回族自治县",630225:"循化撒拉族自治县"},632200:{632221:"门源回族自治县",632222:"祁连县",632223:"海晏县",632224:"刚察县"},632300:{632301:"同仁市",632322:"尖扎县",632323:"泽库县",632324:"河南蒙古族自治县"},632500:{632521:"共和县",632522:"同德县",632523:"贵德县",632524:"兴海县",632525:"贵南县"},632600:{632621:"玛沁县",632622:"班玛县",632623:"甘德县",632624:"达日县",632625:"久治县",632626:"玛多县"},632700:{632701:"玉树市",632722:"杂多县",632723:"称多县",632724:"治多县",632725:"囊谦县",632726:"曲麻莱县"},632800:{632801:"格尔木市",632802:"德令哈市",632803:"茫崖市",632821:"乌兰县",632822:"都兰县",632823:"天峻县",632857:"大柴旦行政委员会"},640100:{640104:"兴庆区",640105:"西夏区",640106:"金凤区",640121:"永宁县",640122:"贺兰县",640181:"灵武市"},640200:{640202:"大武口区",640205:"惠农区",640221:"平罗县"},640300:{640302:"利通区",640303:"红寺堡区",640323:"盐池县",640324:"同心县",640381:"青铜峡市"},640400:{640402:"原州区",640422:"西吉县",640423:"隆德县",640424:"泾源县",640425:"彭阳县"},640500:{640502:"沙坡头区",640521:"中宁县",640522:"海原县"},650100:{650102:"天山区",650103:"沙依巴克区",650104:"新市区",650105:"水磨沟区",650106:"头屯河区",650107:"达坂城区",650109:"米东区",650121:"乌鲁木齐县"},650200:{650202:"独山子区",650203:"克拉玛依区",650204:"白碱滩区",650205:"乌尔禾区"},650400:{650402:"高昌区",650421:"鄯善县",650422:"托克逊县"},650500:{650502:"伊州区",650521:"巴里坤哈萨克自治县",650522:"伊吾县"},652300:{652301:"昌吉市",652302:"阜康市",652323:"呼图壁县",652324:"玛纳斯县",652325:"奇台县",652327:"吉木萨尔县",652328:"木垒哈萨克自治县"},652700:{652701:"博乐市",652702:"阿拉山口市",652722:"精河县",652723:"温泉县"},652800:{652801:"库尔勒市",652822:"轮台县",652823:"尉犁县",652824:"若羌县",652825:"且末县",652826:"焉耆回族自治县",652827:"和静县",652828:"和硕县",652829:"博湖县",652871:"库尔勒经济技术开发区"},652900:{652901:"阿克苏市",652902:"库车市",652922:"温宿县",652924:"沙雅县",652925:"新和县",652926:"拜城县",652927:"乌什县",652928:"阿瓦提县",652929:"柯坪县"},653e3:{653001:"阿图什市",653022:"阿克陶县",653023:"阿合奇县",653024:"乌恰县"},653100:{653101:"喀什市",653121:"疏附县",653122:"疏勒县",653123:"英吉沙县",653124:"泽普县",653125:"莎车县",653126:"叶城县",653127:"麦盖提县",653128:"岳普湖县",653129:"伽师县",653130:"巴楚县",653131:"塔什库尔干塔吉克自治县"},653200:{653201:"和田市",653221:"和田县",653222:"墨玉县",653223:"皮山县",653224:"洛浦县",653225:"策勒县",653226:"于田县",653227:"民丰县"},654e3:{654002:"伊宁市",654003:"奎屯市",654004:"霍尔果斯市",654021:"伊宁县",654022:"察布查尔锡伯自治县",654023:"霍城县",654024:"巩留县",654025:"新源县",654026:"昭苏县",654027:"特克斯县",654028:"尼勒克县"},654200:{654201:"塔城市",654202:"乌苏市",654203:"沙湾市",654221:"额敏县",654224:"托里县",654225:"裕民县",654226:"和布克赛尔蒙古自治县"},654300:{654301:"阿勒泰市",654321:"布尔津县",654322:"富蕴县",654323:"福海县",654324:"哈巴河县",654325:"青河县",654326:"吉木乃县"},710100:{710101:"中正区",710102:"大同区",710103:"中山区",710104:"松山区",710105:"大安区",710106:"万华区",710107:"信义区",710108:"士林区",710109:"北投区",710110:"内湖区",710111:"南港区",710112:"文山区",710199:"其它区"},710200:{710201:"新兴区",710202:"前金区",710203:"芩雅区",710204:"盐埕区",710205:"鼓山区",710206:"旗津区",710207:"前镇区",710208:"三民区",710209:"左营区",710210:"楠梓区",710211:"小港区",710241:"苓雅区",710242:"仁武区",710243:"大社区",710244:"冈山区",710245:"路竹区",710246:"阿莲区",710247:"田寮区",710248:"燕巢区",710249:"桥头区",710250:"梓官区",710251:"弥陀区",710252:"永安区",710253:"湖内区",710254:"凤山区",710255:"大寮区",710256:"林园区",710257:"鸟松区",710258:"大树区",710259:"旗山区",710260:"美浓区",710261:"六龟区",710262:"内门区",710263:"杉林区",710264:"甲仙区",710265:"桃源区",710266:"那玛夏区",710267:"茂林区",710268:"茄萣区",710299:"其它区"},710300:{710301:"中西区",710302:"东区",710303:"南区",710304:"北区",710305:"安平区",710306:"安南区",710339:"永康区",710340:"归仁区",710341:"新化区",710342:"左镇区",710343:"玉井区",710344:"楠西区",710345:"南化区",710346:"仁德区",710347:"关庙区",710348:"龙崎区",710349:"官田区",710350:"麻豆区",710351:"佳里区",710352:"西港区",710353:"七股区",710354:"将军区",710355:"学甲区",710356:"北门区",710357:"新营区",710358:"后壁区",710359:"白河区",710360:"东山区",710361:"六甲区",710362:"下营区",710363:"柳营区",710364:"盐水区",710365:"善化区",710366:"大内区",710367:"山上区",710368:"新市区",710369:"安定区",710399:"其它区"},710400:{710401:"中区",710402:"东区",710403:"南区",710404:"西区",710405:"北区",710406:"北屯区",710407:"西屯区",710408:"南屯区",710431:"太平区",710432:"大里区",710433:"雾峰区",710434:"乌日区",710435:"丰原区",710436:"后里区",710437:"石冈区",710438:"东势区",710439:"和平区",710440:"新社区",710441:"潭子区",710442:"大雅区",710443:"神冈区",710444:"大肚区",710445:"沙鹿区",710446:"龙井区",710447:"梧栖区",710448:"清水区",710449:"大甲区",710450:"外埔区",710451:"大安区",710499:"其它区"},710500:{710507:"金沙镇",710508:"金湖镇",710509:"金宁乡",710510:"金城镇",710511:"烈屿乡",710512:"乌坵乡"},710600:{710614:"南投市",710615:"中寮乡",710616:"草屯镇",710617:"国姓乡",710618:"埔里镇",710619:"仁爱乡",710620:"名间乡",710621:"集集镇",710622:"水里乡",710623:"鱼池乡",710624:"信义乡",710625:"竹山镇",710626:"鹿谷乡"},710700:{710701:"仁爱区",710702:"信义区",710703:"中正区",710704:"中山区",710705:"安乐区",710706:"暖暖区",710707:"七堵区",710799:"其它区"},710800:{710801:"东区",710802:"北区",710803:"香山区",710899:"其它区"},710900:{710901:"东区",710902:"西区",710999:"其它区"},711100:{711130:"万里区",711132:"板桥区",711133:"汐止区",711134:"深坑区",711135:"石碇区",711136:"瑞芳区",711137:"平溪区",711138:"双溪区",711139:"贡寮区",711140:"新店区",711141:"坪林区",711142:"乌来区",711143:"永和区",711144:"中和区",711145:"土城区",711146:"三峡区",711147:"树林区",711148:"莺歌区",711149:"三重区",711150:"新庄区",711151:"泰山区",711152:"林口区",711153:"芦洲区",711154:"五股区",711155:"八里区",711156:"淡水区",711157:"三芝区",711158:"石门区"},711200:{711287:"宜兰市",711288:"头城镇",711289:"礁溪乡",711290:"壮围乡",711291:"员山乡",711292:"罗东镇",711293:"三星乡",711294:"大同乡",711295:"五结乡",711296:"冬山乡",711297:"苏澳镇",711298:"南澳乡",711299:"钓鱼台"},711300:{711387:"竹北市",711388:"湖口乡",711389:"新丰乡",711390:"新埔镇",711391:"关西镇",711392:"芎林乡",711393:"宝山乡",711394:"竹东镇",711395:"五峰乡",711396:"横山乡",711397:"尖石乡",711398:"北埔乡",711399:"峨眉乡"},711400:{711414:"中坜区",711415:"平镇区",711417:"杨梅区",711418:"新屋区",711419:"观音区",711420:"桃园区",711421:"龟山区",711422:"八德区",711423:"大溪区",711425:"大园区",711426:"芦竹区",711487:"中坜市",711488:"平镇市",711489:"龙潭乡",711490:"杨梅市",711491:"新屋乡",711492:"观音乡",711493:"桃园市",711494:"龟山乡",711495:"八德市",711496:"大溪镇",711497:"复兴乡",711498:"大园乡",711499:"芦竹乡"},711500:{711520:"头份市",711582:"竹南镇",711583:"头份镇",711584:"三湾乡",711585:"南庄乡",711586:"狮潭乡",711587:"后龙镇",711588:"通霄镇",711589:"苑里镇",711590:"苗栗市",711591:"造桥乡",711592:"头屋乡",711593:"公馆乡",711594:"大湖乡",711595:"泰安乡",711596:"铜锣乡",711597:"三义乡",711598:"西湖乡",711599:"卓兰镇"},711700:{711736:"员林市",711774:"彰化市",711775:"芬园乡",711776:"花坛乡",711777:"秀水乡",711778:"鹿港镇",711779:"福兴乡",711780:"线西乡",711781:"和美镇",711782:"伸港乡",711783:"员林镇",711784:"社头乡",711785:"永靖乡",711786:"埔心乡",711787:"溪湖镇",711788:"大村乡",711789:"埔盐乡",711790:"田中镇",711791:"北斗镇",711792:"田尾乡",711793:"埤头乡",711794:"溪州乡",711795:"竹塘乡",711796:"二林镇",711797:"大城乡",711798:"芳苑乡",711799:"二水乡"},711900:{711982:"番路乡",711983:"梅山乡",711984:"竹崎乡",711985:"阿里山乡",711986:"中埔乡",711987:"大埔乡",711988:"水上乡",711989:"鹿草乡",711990:"太保市",711991:"朴子市",711992:"东石乡",711993:"六脚乡",711994:"新港乡",711995:"民雄乡",711996:"大林镇",711997:"溪口乡",711998:"义竹乡",711999:"布袋镇"},712100:{712180:"斗南镇",712181:"大埤乡",712182:"虎尾镇",712183:"土库镇",712184:"褒忠乡",712185:"东势乡",712186:"台西乡",712187:"仑背乡",712188:"麦寮乡",712189:"斗六市",712190:"林内乡",712191:"古坑乡",712192:"莿桐乡",712193:"西螺镇",712194:"二仑乡",712195:"北港镇",712196:"水林乡",712197:"口湖乡",712198:"四湖乡",712199:"元长乡"},712400:{712451:"崁顶乡",712467:"屏东市",712468:"三地门乡",712469:"雾台乡",712470:"玛家乡",712471:"九如乡",712472:"里港乡",712473:"高树乡",712474:"盐埔乡",712475:"长治乡",712476:"麟洛乡",712477:"竹田乡",712478:"内埔乡",712479:"万丹乡",712480:"潮州镇",712481:"泰武乡",712482:"来义乡",712483:"万峦乡",712484:"莰顶乡",712485:"新埤乡",712486:"南州乡",712487:"林边乡",712488:"东港镇",712489:"琉球乡",712490:"佳冬乡",712491:"新园乡",712492:"枋寮乡",712493:"枋山乡",712494:"春日乡",712495:"狮子乡",712496:"车城乡",712497:"牡丹乡",712498:"恒春镇",712499:"满州乡"},712500:{712584:"台东市",712585:"绿岛乡",712586:"兰屿乡",712587:"延平乡",712588:"卑南乡",712589:"鹿野乡",712590:"关山镇",712591:"海端乡",712592:"池上乡",712593:"东河乡",712594:"成功镇",712595:"长滨乡",712596:"金峰乡",712597:"大武乡",712598:"达仁乡",712599:"太麻里乡"},712600:{712686:"花莲市",712687:"新城乡",712688:"太鲁阁",712689:"秀林乡",712690:"吉安乡",712691:"寿丰乡",712692:"凤林镇",712693:"光复乡",712694:"丰滨乡",712695:"瑞穗乡",712696:"万荣乡",712697:"玉里镇",712698:"卓溪乡",712699:"富里乡"},712700:{712794:"马公市",712795:"西屿乡",712796:"望安乡",712797:"七美乡",712798:"白沙乡",712799:"湖西乡"},712800:{712896:"南竿乡",712897:"北竿乡",712898:"东引乡",712899:"莒光乡"},810100:{810101:"中西区",810102:"湾仔区",810103:"东区",810104:"南区"},810200:{810201:"九龙城区",810202:"油尖旺区",810203:"深水埗区",810204:"黄大仙区",810205:"观塘区"},810300:{810301:"北区",810302:"大埔区",810303:"沙田区",810304:"西贡区",810305:"元朗区",810306:"屯门区",810307:"荃湾区",810308:"葵青区",810309:"离岛区"},820100:{820101:"澳门半岛"},820200:{820201:"离岛"},900100:{900101:"其它区"}},E={name:"v-distpicker",props:{province:{type:[String,Number],default:""},city:{type:[String,Number],default:""},area:{type:[String,Number],default:""},type:{type:String,default:""},hideArea:{type:Boolean,default:!1},onlyProvince:{type:Boolean,default:!1},staticPlaceholder:{type:Boolean,default:!1},placeholders:{type:Object,default:function(){return{province:"省",city:"市",area:"区"}}},provinceSource:Object,citySource:Object,areaSource:Object,disabled:{type:Boolean,default:!1},provinceDisabled:{type:Boolean,default:!1},cityDisabled:{type:Boolean,default:!1},areaDisabled:{type:Boolean,default:!1},addressHeader:{type:String,default:"address-header"},addressContainer:{type:String,default:"address-container"},wrapper:{type:String,default:"distpicker-address-wrapper"}},data:function(){return{tab:1,showCityTab:!1,showAreaTab:!1,provinces:[],cities:[],areas:[],provinceData:{},cityData:{},areaData:{},currentProvince:"",currentCity:"",currentArea:""}},created:function(){this.provinceData=this.provinceSource||k,this.cityData=this.citySource||S,this.areaData=this.areaSource||C;var t=this.province,r=this.city;if(n(this.area)){var i=o(this.area,"area"),a=i.provinceCode,s=i.cityCode;this.currentProvince=this.getProvinceVal(a,!1)||this.placeholders.province,t=a,this.currentCity=this.getCityVal(s,!1)||this.placeholders.city,r=s}var u=this.getCodeValue(this.area,"area").name;if(this.currentArea=u||this.placeholders.area,e(this.currentProvince)){var l=this.getCodeValue(t,"province").name;this.currentProvince=l||this.placeholders.province}if(e(this.currentCity)){var c=this.getCodeValue(r,"city").name;this.currentCity=c||this.placeholders.city}"mobile"!==this.type?(this.provinces=this.getProvinceList(),this.cities=this.getCityList(t),this.areas=this.getAreaList(r)):!this.area||this.hideArea||this.onlyProvince?r&&this.hideArea&&!this.onlyProvince?(this.tab=2,this.showCityTab=!0,this.cities=this.getCityList(this.province)):this.provinces=this.getProvinceList():(this.tab=3,this.showCityTab=!0,this.showAreaTab=!0,this.areas=this.getAreaList(r))},watch:{currentProvince:function(t){this.$emit("change-province",this.setData(t,"province")),this.onlyProvince&&this.emit("change")},currentCity:function(t){this.$emit("change-city",this.setData(t,"city")),this.hideArea&&this.emit("change")},currentArea:function(t){this.$emit("change-area",this.setData(t,"area")),this.emit("change")},province:function(t){var e=this.province||this.placeholders.province,n=this.getCodeValue(e,"province"),r=n.name,i=n.code;this.currentProvince=r,this.cities=this.getCityList(i)},city:function(t){var e=this.city||this.placeholders.city,n=this.getCodeValue(e,"city",this.cities),r=n.name,i=n.code;this.currentCity=r,this.areas=this.getAreaList(i)},area:function(t){var e=this.area||this.placeholders.area;this.changeAreaCode(e)}},methods:{setData:function(t,n){var r="";if(!e(t))switch(n){case"area":r=this.currentArea==this.placeholders.area?"":this.getAreaVal(t,!0,this.areas);break;case"city":r=t==this.placeholders.city?"":this.getCityVal(t,!0,this.cities);break;case"province":r=t==this.placeholders.province?"":this.getProvinceVal(t,!0)}return{code:r,value:t}},emit:function(t){var e={province:this.setData(this.currentProvince,"province")};this.onlyProvince||this.$set(e,"city",this.setData(this.currentCity,"city")),this.onlyProvince||this.hideArea||this.$set(e,"area",this.setData(this.currentArea,"area")),this.$emit(t,e)},changeArea:function(){this.$emit("area",this.setData(this.currentArea,"area")),this.emit("selected")},getCities:function(){this.currentCity=this.placeholders.city,this.currentArea=this.placeholders.area,this.cities=this.getCityList(this.currentProvince),this.$emit("province",this.setData(this.currentProvince,"province")),this.onlyProvince&&this.emit("selected"),this.cleanList(),0===this.cities.length&&(this.tab=1,this.showCityTab=!1)},getAreas:function(){this.currentArea=this.placeholders.area;var t=this.getCodeValue(this.currentCity,"city",this.cities).code;this.areas=this.getAreaList(t),this.$emit("city",this.setData(this.currentCity,"city")),this.hideArea&&this.emit("selected"),0===this.areas.length&&(this.tab=2,this.showAreaTab=!1)},resetProvince:function(){this.tab=1,this.provinces=this.getProvinceList(),this.showCityTab=!1,this.showAreaTab=!1},resetCity:function(){this.tab=2,this.showCityTab=!0,this.showAreaTab=!1,this.getCities()},chooseProvince:function(t){this.currentProvince=t,this.tab=2,this.showCityTab=!0,this.showAreaTab=!1,this.getCities()},chooseCity:function(t){this.currentCity=t,this.tab=3,this.showCityTab=!0,this.showAreaTab=!0,this.getAreas()},chooseArea:function(t){this.currentArea=t,this.changeArea()},cleanList:function(){this.areas=[]},changeAreaCode:function(t){if(n(t)){var e=o(t,"area"),r=e.provinceCode,i=e.cityCode;this.currentProvince=this.getProvinceVal(r,!1),this.currentCity=this.getCityVal(i,!1),this.cities=this.getCityList(r),this.areas=this.getAreaList(i)}var a=this.getCodeValue(t,"area").name;this.currentArea=a},getCityList:function(t){var e=i(t)?this.getProvinceVal(t,!0):t;return this.cityData[e]||[]},getAreaList:function(t){var e=i(t)?this.getCityVal(t,!0):t;return this.areaData[e]||[]},getProvinceList:function(){return this.provinceData},getTransformData:function(t,e,n,r){if(r){if(n[e]==t)return e}else if(e==t)return n[e];return null},getCityVal:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2?arguments[2]:void 0;if(n)for(var r in n){var i=this.getTransformData(t,r,n,e);if(i)return i}else{var o,s=p()(this.cityData),u=a(s);try{for(u.s();!(o=u.n()).done;){var l=o.value;for(var c in l){var f=this.getTransformData(t,c,l,e);if(f)return f}}}catch(t){u.e(t)}finally{u.f()}}return t},getProvinceVal:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];for(var n in this.provinceData){var r=this.getTransformData(t,n,this.provinceData,e);if(r)return r}return t},getAreaVal:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2?arguments[2]:void 0;if(n)for(var r in n){var i=this.getTransformData(t,r,n,e);if(i)return i}else{var o,s=p()(this.areaData),u=a(s);try{for(u.s();!(o=u.n()).done;){var l=o.value;for(var c in l){var f=this.getTransformData(t,c,l,e);if(f)return f}}}catch(t){u.e(t)}finally{u.f()}}return t},getCodeValue:function(t,n,r){if(e(t))return{name:"",value:""};var o="";switch(n){case"area":o=this.getAreaVal(t,i(t),r);break;case"city":o=this.getCityVal(t,i(t),r);break;case"province":o=this.getProvinceVal(t,i(t))}return i(t)?{name:t,code:o}:{name:o,code:t}}}},T=E;t(8846);var A=function(t,e,n,r,i,o,a,s){var u,l="function"==typeof t?t.options:t;if(e&&(l.render=e,l.staticRenderFns=[],l._compiled=!0),u)if(l.functional){l._injectStyles=u;var c=l.render;l.render=function(t,e){return u.call(e),c(t,e)}}else{var f=l.beforeCreate;l.beforeCreate=f?[].concat(f,u):[u]}return{exports:t,options:l}}(T,d),O=A.exports}(),r.default}()})},function(t,e,n){!function(e,r){t.exports=r(n(946),n(14))}(0,function(t,e){return function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=6)}([function(e,n){e.exports=t},function(t,e,n){"use strict";function r(){var t={},e=!1,n=0,i=arguments.length;for("[object Boolean]"===Object.prototype.toString.call(arguments[0])&&(e=arguments[0],n++);n<i;n++){var o=arguments[n];!function(n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e&&"[object Object]"===Object.prototype.toString.call(n[i])?t[i]=r(!0,t[i],n[i]):t[i]=n[i])}(o)}return t}e.a=r},function(t,n){t.exports=e},function(t,e,n){"use strict";var r=n(0),i=n.n(r),o=n(1),a=n(2),s=n.n(a),u=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.images,r=void 0===e?[]:e,a=t.options,u=void 0===a?{}:a;u=n.i(o.a)(u,{inline:!1});var l=s.a.extend({render:function(t){return t("div",{style:{display:"none"},class:["__viewer-token"]},r.map(function(e){return t("img",{attrs:"string"==typeof e?{src:e}:e})}))}}),c=new l;c.$mount(),document.body.appendChild(c.$el);var f=new i.a(c.$el,u),d=f.destroy.bind(f);return f.destroy=function(){return d(),c.$destroy(),document.body.removeChild(c.$el),f},f.show(),c.$el.addEventListener("hidden",function(){this.viewer===f&&f.destroy()}),f};e.a=u},function(t,e,n){"use strict";(function(t){var r=n(0),i=n.n(r),o=n(7),a=(n.n(o),n(2)),s=n.n(a),u=function(){function e(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];s.a.nextTick(function(){o&&!r(t)||(n||!t["$"+g]?(l(t),t["$"+g]=new i.a(t,e),d("Viewer created")):(t["$"+g].update(),d("Viewer updated")))})}function r(t){var e=t.innerHTML.match(/<img([\w\W]+?)[\\/]?>/g),n=e?e.join(""):void 0;return t.__viewerImageDiffCache===n?(d("Element change detected, but image(s) has not changed"),!1):(d("Image change detected"),t.__viewerImageDiffCache=n,!0)}function a(e,n,r,i){c(e);var o=t.MutationObserver||t.WebKitMutationObserver||t.MozMutationObserver;if(!o)return void d("Observer not supported");var a=new o(function(t){t.forEach(function(t){d("Viewer mutation:"+t.type),r(e,n,i,!0)})}),s={attributes:!0,childList:!0,characterData:!0,subtree:!0};a.observe(e,s),e.__viewerMutationObserver=a,d("Observer created")}function u(t,e,n,r){var i=e.expression,o=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/;if(!i||!o.test(i))return void d("Only simple dot-delimited paths can create watcher");t.__viewerUnwatch=n.context.$watch(i,function(e,n){d("Change detected by watcher: ",i),r(t,e,!0)},{deep:!0}),d("Watcher created, expression: ",i)}function l(t){t["$"+g]&&(t["$"+g].destroy(),delete t["$"+g],d("Viewer destroyed"))}function c(t){t.__viewerMutationObserver&&(t.__viewerMutationObserver.disconnect(),delete t.__viewerMutationObserver,d("Observer destroyed"))}function f(t){t.__viewerUnwatch&&(t.__viewerUnwatch(),delete t.__viewerUnwatch,d("Watcher destroyed"))}function d(){var t;v&&(t=console).log.apply(t,arguments)}var h=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},p=h.name,g=void 0===p?"viewer":p,m=h.debug,v=void 0!==m&&m;return{bind:function(t,r,i){d("Viewer bind");var s=n.i(o.debounce)(50,e);s(t,r.value),u(t,r,i,s),r.modifiers.static||a(t,r.value,s,r.modifiers.rebuild)},unbind:function(t,e){d("Viewer unbind"),c(t),f(t),l(t)}}};e.a=u}).call(e,n(9))},function(t,e,n){var r=n(10)(n(8),n(11),null,null);r.options.__file="/Volumes/public/Workspace/web/v-viewer/src/component.vue",r.esModule&&Object.keys(r.esModule).some(function(t){return"default"!==t&&"__esModule"!==t})&&console.error("named exports are not supported in *.vue files."),r.options.functional&&console.error("[vue-loader] component.vue: functional components are not supported with templates, they should use render functions."),t.exports=r.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),o=n.n(i),a=n(5),s=n.n(a),u=n(4),l=n(3);n.d(e,"component",function(){return s.a}),n.d(e,"directive",function(){return u.a}),n.d(e,"api",function(){return l.a}),n.d(e,"Viewer",function(){return o.a}),e.default={install:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=e.name,a=void 0===i?"viewer":i,c=e.debug,f=void 0!==c&&c,d=e.defaultOptions;o.a.setDefaults(d),t.component(a,n.i(r.a)(s.a,{name:a})),t.directive(a,n.i(u.a)({name:a,debug:f})),t.prototype["$"+a+"Api"]=l.a},setDefaults:function(t){o.a.setDefaults(t)}}},function(t,e,n){var r,i,o,a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};!function(n,s){"object"===a(e)&&void 0!==t?s(e):(i=[e],r=s,void 0!==(o="function"==typeof r?r.apply(e,i):r)&&(t.exports=o))}(0,function(t){"use strict";function e(t,e,n,r){function i(){s&&clearTimeout(s)}function o(){i(),u=!0}function a(){function o(){l=Date.now(),n.apply(h,f)}function a(){s=void 0}for(var c=arguments.length,f=new Array(c),d=0;d<c;d++)f[d]=arguments[d];var h=this,p=Date.now()-l;u||(r&&!s&&o(),i(),void 0===r&&p>t?o():!0!==e&&(s=setTimeout(r?a:o,void 0===r?t-p:t)))}var s,u=!1,l=0;return"boolean"!=typeof e&&(r=n,n=e,e=void 0),a.cancel=o,a}function n(t,n,r){return void 0===r?e(t,n,!1):e(t,r,!1!==n)}t.debounce=n,t.throttle=e,Object.defineProperty(t,"__esModule",{value:!0})})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n.n(r);e.default={props:{images:{type:Array},rebuild:{type:Boolean,default:!1},trigger:{},options:{type:Object}},data:function(){return{}},computed:{},methods:{onChange:function(){this.rebuild?this.rebuildViewer():this.updateViewer()},rebuildViewer:function(){this.destroyViewer(),this.createViewer()},updateViewer:function(){this.$viewer?(this.$viewer.update(),this.$emit("inited",this.$viewer)):this.createViewer()},destroyViewer:function(){this.$viewer&&this.$viewer.destroy()},createViewer:function(){this.$viewer=new i.a(this.$el,this.options),this.$emit("inited",this.$viewer)}},watch:{images:function(){var t=this;this.$nextTick(function(){t.onChange()})},trigger:{handler:function(){var t=this;this.$nextTick(function(){t.onChange()})},deep:!0},options:{handler:function(){var t=this;this.$nextTick(function(){t.rebuildViewer()})},deep:!0}},mounted:function(){this.createViewer()},destroyed:function(){this.destroyViewer()}}},function(t,e){var n,r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"===("undefined"==typeof window?"undefined":r(window))&&(n=window)}t.exports=n},function(t,e){t.exports=function(t,e,n,r){var i,o=t=t||{},a=typeof t.default;"object"!==a&&"function"!==a||(i=t,o=t.default);var s="function"==typeof o?o.options:o;if(e&&(s.render=e.render,s.staticRenderFns=e.staticRenderFns),n&&(s._scopeId=n),r){var u=Object.create(s.computed||null);Object.keys(r).forEach(function(t){var e=r[t];u[t]=function(){return e}}),s.computed=u}return{esModule:i,exports:o,options:s}}},function(t,e,n){t.exports={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",[t._t("default",null,{images:t.images,options:t.options})],2)},staticRenderFns:[]},t.exports.render._withStripped=!0}])})},function(t,e,n){/*!
  90. * Viewer.js v1.11.6
  91. * https://fengyuanchen.github.io/viewerjs
  92. *
  93. * Copyright 2015-present Chen Fengyuan
  94. * Released under the MIT license
  95. *
  96. * Date: 2023-09-17T03:16:38.052Z
  97. */
  98. !function(e,n){t.exports=n()}(0,function(){"use strict";function t(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function e(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?t(Object(r),!0).forEach(function(t){a(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):t(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function n(t){"@babel/helpers - typeof";return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,u(r.key),r)}}function o(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function a(t,e,n){return e=u(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function s(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function u(t){var e=s(t,"string");return"symbol"==typeof e?e:String(e)}function l(t){return"string"==typeof t}function c(t){return"number"==typeof t&&!ht(t)}function f(t){return void 0===t}function d(t){return"object"===n(t)&&null!==t}function h(t){if(!d(t))return!1;try{var e=t.constructor,n=e.prototype;return e&&n&&pt.call(n,"isPrototypeOf")}catch(t){return!1}}function p(t){return"function"==typeof t}function g(t,e){if(t&&p(e))if(Array.isArray(t)||c(t.length)){var n,r=t.length;for(n=0;n<r&&!1!==e.call(t,t[n],n,t);n+=1);}else d(t)&&Object.keys(t).forEach(function(n){e.call(t,t[n],n,t)});return t}function m(t,e){var n=t.style;g(e,function(t,e){mt.test(e)&&c(t)&&(t+="px"),n[e]=t})}function v(t){return l(t)?t.replace(/&(?!amp;|quot;|#39;|lt;|gt;)/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;"):t}function y(t,e){return!(!t||!e)&&(t.classList?t.classList.contains(e):t.className.indexOf(e)>-1)}function b(t,e){if(t&&e){if(c(t.length))return void g(t,function(t){b(t,e)});if(t.classList)return void t.classList.add(e);var n=t.className.trim();n?n.indexOf(e)<0&&(t.className="".concat(n," ").concat(e)):t.className=e}}function _(t,e){if(t&&e)return c(t.length)?void g(t,function(t){_(t,e)}):t.classList?void t.classList.remove(e):void(t.className.indexOf(e)>=0&&(t.className=t.className.replace(e,"")))}function w(t,e,n){if(e)return c(t.length)?void g(t,function(t){w(t,e,n)}):void(n?b(t,e):_(t,e))}function x(t){return t.replace(vt,"$1-$2").toLowerCase()}function k(t,e){return d(t[e])?t[e]:t.dataset?t.dataset[e]:t.getAttribute("data-".concat(x(e)))}function S(t,e,n){d(n)?t[e]=n:t.dataset?t.dataset[e]=n:t.setAttribute("data-".concat(x(e)),n)}function C(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=n;e.trim().split(ft).forEach(function(e){if(!yt){var o=t.listeners;o&&o[e]&&o[e][n]&&(i=o[e][n],delete o[e][n],0===Object.keys(o[e]).length&&delete o[e],0===Object.keys(o).length&&delete t.listeners)}t.removeEventListener(e,i,r)})}function E(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=n;e.trim().split(ft).forEach(function(e){if(r.once&&!yt){var o=t.listeners,a=void 0===o?{}:o;i=function(){delete a[e][n],t.removeEventListener(e,i,r);for(var o=arguments.length,s=new Array(o),u=0;u<o;u++)s[u]=arguments[u];n.apply(t,s)},a[e]||(a[e]={}),a[e][n]&&t.removeEventListener(e,a[e][n],r),a[e][n]=i,t.listeners=a}t.addEventListener(e,i,r)})}function T(t,n,r,i){var o;return p(Event)&&p(CustomEvent)?o=new CustomEvent(n,e({bubbles:!0,cancelable:!0,detail:r},i)):(o=document.createEvent("CustomEvent"),o.initCustomEvent(n,!0,!0,r)),t.dispatchEvent(o)}function A(t){var e=t.getBoundingClientRect();return{left:e.left+(window.pageXOffset-document.documentElement.clientLeft),top:e.top+(window.pageYOffset-document.documentElement.clientTop)}}function O(t){var e=t.rotate,n=t.scaleX,r=t.scaleY,i=t.translateX,o=t.translateY,a=[];c(i)&&0!==i&&a.push("translateX(".concat(i,"px)")),c(o)&&0!==o&&a.push("translateY(".concat(o,"px)")),c(e)&&0!==e&&a.push("rotate(".concat(e,"deg)")),c(n)&&1!==n&&a.push("scaleX(".concat(n,")")),c(r)&&1!==r&&a.push("scaleY(".concat(r,")"));var s=a.length?a.join(" "):"none";return{WebkitTransform:s,msTransform:s,transform:s}}function P(t){return l(t)?decodeURIComponent(t.replace(/^.*\//,"").replace(/[?&#].*$/,"")):""}function N(t,e,n){var r=document.createElement("img");if(t.naturalWidth&&!bt)return n(t.naturalWidth,t.naturalHeight),r;var i=document.body||document.documentElement;return r.onload=function(){n(r.width,r.height),bt||i.removeChild(r)},g(e.inheritedAttributes,function(e){var n=t.getAttribute(e);null!==n&&r.setAttribute(e,n)}),r.src=t.src,bt||(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 D(t){switch(t){case 2:return X;case 3:return K;case 4:return Y;default:return""}}function M(t){var n=e({},t),r=[];return g(t,function(t,e){delete n[e],g(n,function(e){var n=Math.abs(t.startX-e.startX),i=Math.abs(t.startY-e.startY),o=Math.abs(t.endX-e.endX),a=Math.abs(t.endY-e.endY),s=Math.sqrt(n*n+i*i),u=Math.sqrt(o*o+a*a),l=(u-s)/s;r.push(l)})}),r.sort(function(t,e){return Math.abs(t)<Math.abs(e)}),r[0]}function I(t,n){var r=t.pageX,i=t.pageY,o={endX:r,endY:i};return n?o:e({timeStamp:Date.now(),startX:r,startY:i},o)}function R(t){var e=0,n=0,r=0;return g(t,function(t){var i=t.startX,o=t.startY;e+=i,n+=o,r+=1}),e/=r,n/=r,{pageX:e,pageY:n}}var $={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},L="undefined"!=typeof window&&void 0!==window.document,j=L?window:{},F=!(!L||!j.document.documentElement)&&"ontouchstart"in j.document.documentElement,B=!!L&&"PointerEvent"in j,V="".concat("viewer","-active"),z="".concat("viewer","-close"),U="".concat("viewer","-fade"),H="".concat("viewer","-fixed"),q="".concat("viewer","-fullscreen"),W="".concat("viewer","-fullscreen-exit"),G="".concat("viewer","-hide"),Y="".concat("viewer","-hide-md-down"),K="".concat("viewer","-hide-sm-down"),X="".concat("viewer","-hide-xs-down"),J="".concat("viewer","-in"),Q="".concat("viewer","-invisible"),Z="".concat("viewer","-loading"),tt="".concat("viewer","-move"),et="".concat("viewer","-open"),nt="".concat("viewer","-show"),rt="".concat("viewer","-transition"),it=F?"touchend touchcancel":"mouseup",ot=F?"touchmove":"mousemove",at=F?"touchstart":"mousedown",st=B?"pointerdown":at,ut=B?"pointermove":ot,lt=B?"pointerup pointercancel":it,ct="".concat("viewer","Action"),ft=/\s\s*/,dt=["zoom-in","zoom-out","one-to-one","reset","prev","play","next","rotate-left","rotate-right","flip-horizontal","flip-vertical"],ht=Number.isNaN||j.isNaN,pt=Object.prototype.hasOwnProperty,gt=Object.assign||function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return d(t)&&n.length>0&&n.forEach(function(e){d(e)&&Object.keys(e).forEach(function(n){t[n]=e[n]})}),t},mt=/^(?:width|height|left|top|marginLeft|marginTop)$/,vt=/([a-z\d])([A-Z])/g,yt=function(){var t=!1;if(L){var e=!1,n=function(){},r=Object.defineProperty({},"once",{get:function(){return t=!0,e},set:function(t){e=t}});j.addEventListener("test",n,r),j.removeEventListener("test",n,r)}return t}(),bt=j.navigator&&/Version\/\d+(\.\d+)+?\s+Safari/i.test(j.navigator.userAgent),_t={render:function(){this.initContainer(),this.initViewer(),this.initList(),this.renderViewer()},initBody:function(){var t=this.element.ownerDocument,e=t.body||t.documentElement;this.body=e,this.scrollbarWidth=window.innerWidth-t.documentElement.clientWidth,this.initialBodyPaddingRight=e.style.paddingRight,this.initialBodyComputedPaddingRight=window.getComputedStyle(e).paddingRight},initContainer:function(){this.containerData={width:window.innerWidth,height:window.innerHeight}},initViewer:function(){var t,e=this.options,n=this.parent;e.inline&&(t={width:Math.max(n.offsetWidth,e.minWidth),height:Math.max(n.offsetHeight,e.minHeight)},this.parentData=t),!this.fulled&&t||(t=this.containerData),this.viewerData=gt({},t)},renderViewer:function(){this.options.inline&&!this.fulled&&m(this.viewer,this.viewerData)},initList:function(){var t=this,e=this.element,n=this.options,r=this.list,i=[];r.innerHTML="",g(this.images,function(e,o){var a=e.src,s=e.alt||P(a),u=t.getImageURL(e);if(a||u){var l=document.createElement("li"),c=document.createElement("img");g(n.inheritedAttributes,function(t){var n=e.getAttribute(t);null!==n&&c.setAttribute(t,n)}),n.navbar&&(c.src=a||u),c.alt=s,c.setAttribute("data-original-url",u||a),l.setAttribute("data-index",o),l.setAttribute("data-viewer-action","view"),l.setAttribute("role","button"),n.keyboard&&l.setAttribute("tabindex",0),l.appendChild(c),r.appendChild(l),i.push(l)}}),this.items=i,g(i,function(e){var r,i,o=e.firstElementChild;S(o,"filled",!0),n.loading&&b(e,Z),E(o,"load",r=function(r){C(o,"error",i),n.loading&&_(e,Z),t.loadImage(r)},{once:!0}),E(o,"error",i=function(){C(o,"load",r),n.loading&&_(e,Z)},{once:!0})}),n.transition&&E(e,"viewed",function(){b(r,rt)},{once:!0})},renderList:function(){var t=this.index,e=this.items[t];if(e){var n=e.nextElementSibling,r=parseInt(window.getComputedStyle(n||e).marginLeft,10),i=e.offsetWidth,o=i+r;m(this.list,gt({width:o*this.length-r},O({translateX:(this.viewerData.width-i)/2-o*t})))}},resetList:function(){var t=this.list;t.innerHTML="",_(t,rt),m(t,O({translateX:0}))},initImage:function(t){var e,n=this,r=this.options,i=this.image,o=this.viewerData,a=this.footer.offsetHeight,s=o.width,u=Math.max(o.height-a,a),l=this.imageData||{};this.imageInitializing={abort:function(){e.onload=null}},e=N(i,r,function(e,i){var o=e/i,a=Math.max(0,Math.min(1,r.initialCoverage)),f=s,d=u;n.imageInitializing=!1,u*o>s?d=s/o:f=u*o,a=c(a)?a:.9,f=Math.min(f*a,e),d=Math.min(d*a,i);var h=(s-f)/2,p=(u-d)/2,g={left:h,top:p,x:h,y:p,width:f,height:d,oldRatio:1,ratio:f/e,aspectRatio:o,naturalWidth:e,naturalHeight:i},m=gt({},g);r.rotatable&&(g.rotate=l.rotate||0,m.rotate=0),r.scalable&&(g.scaleX=l.scaleX||1,g.scaleY=l.scaleY||1,m.scaleX=1,m.scaleY=1),n.imageData=g,n.initialImageData=m,t&&t()})},renderImage:function(t){var e=this,n=this.image,r=this.imageData;if(m(n,gt({width:r.width,height:r.height,marginLeft:r.x,marginTop:r.y},O(r))),t)if((this.viewing||this.moving||this.rotating||this.scaling||this.zooming)&&this.options.transition&&y(n,rt)){var i=function(){e.imageRendering=!1,t()};this.imageRendering={abort:function(){C(n,"transitionend",i)}},E(n,"transitionend",i,{once:!0})}else t()},resetImage:function(){var t=this.image;t&&(this.viewing&&this.viewing.abort(),t.parentNode.removeChild(t),this.image=null,this.title.innerHTML="")}},wt={bind:function(){var t=this.options,e=this.viewer,n=this.canvas,r=this.element.ownerDocument;E(e,"click",this.onClick=this.click.bind(this)),E(e,"dragstart",this.onDragStart=this.dragstart.bind(this)),E(n,st,this.onPointerDown=this.pointerdown.bind(this)),E(r,ut,this.onPointerMove=this.pointermove.bind(this)),E(r,lt,this.onPointerUp=this.pointerup.bind(this)),E(r,"keydown",this.onKeyDown=this.keydown.bind(this)),E(window,"resize",this.onResize=this.resize.bind(this)),t.zoomable&&t.zoomOnWheel&&E(e,"wheel",this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),t.toggleOnDblclick&&E(n,"dblclick",this.onDblclick=this.dblclick.bind(this))},unbind:function(){var t=this.options,e=this.viewer,n=this.canvas,r=this.element.ownerDocument;C(e,"click",this.onClick),C(e,"dragstart",this.onDragStart),C(n,st,this.onPointerDown),C(r,ut,this.onPointerMove),C(r,lt,this.onPointerUp),C(r,"keydown",this.onKeyDown),C(window,"resize",this.onResize),t.zoomable&&t.zoomOnWheel&&C(e,"wheel",this.onWheel,{passive:!1,capture:!0}),t.toggleOnDblclick&&C(n,"dblclick",this.onDblclick)}},xt={click:function(t){var e=this.options,n=this.imageData,r=t.target,i=k(r,ct);switch(i||"img"!==r.localName||"li"!==r.parentElement.localName||(r=r.parentElement,i=k(r,ct)),F&&t.isTrusted&&r===this.canvas&&clearTimeout(this.clickCanvasTimeout),i){case"mix":this.played?this.stop():e.inline?this.fulled?this.exit():this.full():this.hide();break;case"hide":this.pointerMoved||this.hide();break;case"view":this.view(k(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(e.loop);break;case"play":this.play(e.fullscreen);break;case"next":this.next(e.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(t){t.preventDefault(),this.viewed&&t.target===this.image&&(F&&t.isTrusted&&clearTimeout(this.doubleClickImageTimeout),this.toggle(t.isTrusted?t:t.detail&&t.detail.originalEvent))},load:function(){var t=this;this.timeout&&(clearTimeout(this.timeout),this.timeout=!1);var e=this.element,n=this.options,r=this.image,i=this.index,o=this.viewerData;_(r,Q),n.loading&&_(this.canvas,Z),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(){w(r,tt,n.movable),w(r,rt,n.transition),t.renderImage(function(){t.viewed=!0,t.viewing=!1,p(n.viewed)&&E(e,"viewed",n.viewed,{once:!0}),T(e,"viewed",{originalImage:t.images[i],index:i,image:r},{cancelable:!1})})})},loadImage:function(t){var e=t.target,n=e.parentNode,r=n.offsetWidth||30,i=n.offsetHeight||50,o=!!k(e,"filled");N(e,this.options,function(t,n){var a=t/n,s=r,u=i;i*a>r?o?s=i*a:u=r/a:o?u=r/a:s=i*a,m(e,gt({width:s,height:u},O({translateX:(r-s)/2,translateY:(i-u)/2})))})},keydown:function(t){var e=this.options;if(e.keyboard){var n=t.keyCode||t.which||t.charCode;switch(n){case 13:this.viewer.contains(t.target)&&this.click(t)}if(this.fulled)switch(n){case 27:this.played?this.stop():e.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(e.loop);break;case 38:t.preventDefault(),this.zoom(e.zoomRatio,!0);break;case 39:this.played&&this.playing?this.playing.next():this.next(e.loop);break;case 40:t.preventDefault(),this.zoom(-e.zoomRatio,!0);break;case 48:case 49:t.ctrlKey&&(t.preventDefault(),this.toggle())}}},dragstart:function(t){"img"===t.target.localName&&t.preventDefault()},pointerdown:function(t){var e=this.options,n=this.pointers,r=t.buttons,i=t.button;if(this.pointerMoved=!1,!(!this.viewed||this.showing||this.viewing||this.hiding||("mousedown"===t.type||"pointerdown"===t.type&&"mouse"===t.pointerType)&&(c(r)&&1!==r||c(i)&&0!==i||t.ctrlKey))){t.preventDefault(),t.changedTouches?g(t.changedTouches,function(t){n[t.identifier]=I(t)}):n[t.pointerId||0]=I(t);var o=!!e.movable&&"move";e.zoomOnTouch&&e.zoomable&&Object.keys(n).length>1?o="zoom":e.slideOnTouch&&("touch"===t.pointerType||"touchstart"===t.type)&&this.isSwitchable()&&(o="switch"),!e.transition||"move"!==o&&"zoom"!==o||_(this.image,rt),this.action=o}},pointermove:function(t){var e=this.pointers,n=this.action;this.viewed&&n&&(t.preventDefault(),t.changedTouches?g(t.changedTouches,function(t){gt(e[t.identifier]||{},I(t,!0))}):gt(e[t.pointerId||0]||{},I(t,!0)),this.change(t))},pointerup:function(t){var e,n=this,r=this.options,i=this.action,o=this.pointers;t.changedTouches?g(t.changedTouches,function(t){e=o[t.identifier],delete o[t.identifier]}):(e=o[t.pointerId||0],delete o[t.pointerId||0]),i&&(t.preventDefault(),!r.transition||"move"!==i&&"zoom"!==i||b(this.image,rt),this.action=!1,F&&"zoom"!==i&&e&&Date.now()-e.timeStamp<500&&(clearTimeout(this.clickCanvasTimeout),clearTimeout(this.doubleClickImageTimeout),r.toggleOnDblclick&&this.viewed&&t.target===this.image?this.imageClicked?(this.imageClicked=!1,this.doubleClickImageTimeout=setTimeout(function(){T(n.image,"dblclick",{originalEvent:t})},50)):(this.imageClicked=!0,this.doubleClickImageTimeout=setTimeout(function(){n.imageClicked=!1},500)):(this.imageClicked=!1,r.backdrop&&"static"!==r.backdrop&&t.target===this.canvas&&(this.clickCanvasTimeout=setTimeout(function(){T(n.canvas,"click",{originalEvent:t})},50)))))},resize:function(){var t=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(){t.renderImage()}),this.played)){if(this.options.fullscreen&&this.fulled&&!(document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement))return void this.stop();g(this.player.getElementsByTagName("img"),function(e){E(e,"load",t.loadImage.bind(t),{once:!0}),T(e,"load")})}},wheel:function(t){var e=this;if(this.viewed&&(t.preventDefault(),!this.wheeling)){this.wheeling=!0,setTimeout(function(){e.wheeling=!1},50);var n=Number(this.options.zoomRatio)||.1,r=1;t.deltaY?r=t.deltaY>0?1:-1:t.wheelDelta?r=-t.wheelDelta/120:t.detail&&(r=t.detail>0?1:-1),this.zoom(-r*n,!0,null,t)}}},kt={show:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=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(t),this;if(p(n.show)&&E(e,"show",n.show,{once:!0}),!1===T(e,"show")||!this.ready)return this;this.hiding&&this.transitioning.abort(),this.showing=!0,this.open();var r=this.viewer;if(_(r,G),r.setAttribute("role","dialog"),r.setAttribute("aria-labelledby",this.title.id),r.setAttribute("aria-modal",!0),r.removeAttribute("aria-hidden"),n.transition&&!t){var i=this.shown.bind(this);this.transitioning={abort:function(){C(r,"transitionend",i),_(r,J)}},b(r,rt),r.initialOffsetWidth=r.offsetWidth,E(r,"transitionend",i,{once:!0}),b(r,J)}else b(r,J),this.shown();return this},hide:function(){var t=this,e=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(p(r.hide)&&E(n,"hide",r.hide,{once:!0}),!1===T(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(){_(i,J),t.hidden()};if(r.transition&&!e){var s=function e(n){n&&n.target===i&&(C(i,"transitionend",e),t.hidden())},u=function(){y(i,rt)?(E(i,"transitionend",s),_(i,J)):a()};this.transitioning={abort:function(){t.viewed&&y(o,rt)?C(o,"transitionend",u):y(i,rt)&&C(i,"transitionend",s)}},this.viewed&&y(o,rt)?(E(o,"transitionend",u,{once:!0}),this.zoomTo(0,!1,null,null,!0)):u()}else a();return this},view:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.options.initialViewIndex;if(e=Number(e)||0,this.hiding||this.played||e<0||e>=this.length||this.viewed&&e===this.index)return this;if(!this.isShown)return this.index=e,this.show();this.viewing&&this.viewing.abort();var n=this.element,r=this.options,i=this.title,o=this.canvas,a=this.items[e],s=a.querySelector("img"),u=k(s,"originalUrl"),l=s.getAttribute("alt"),c=document.createElement("img");if(g(r.inheritedAttributes,function(t){var e=s.getAttribute(t);null!==e&&c.setAttribute(t,e)}),c.src=u,c.alt=l,p(r.view)&&E(n,"view",r.view,{once:!0}),!1===T(n,"view",{originalImage:this.images[e],index:e,image:c})||!this.isShown||this.hiding||this.played)return this;var f=this.items[this.index];f&&(_(f,V),f.removeAttribute("aria-selected")),b(a,V),a.setAttribute("aria-selected",!0),r.focus&&a.focus(),this.image=c,this.viewed=!1,this.index=e,this.imageData={},b(c,Q),r.loading&&b(o,Z),o.innerHTML="",o.appendChild(c),this.renderList(),i.innerHTML="";var d,h,m=function(){var e=t.imageData,n=Array.isArray(r.title)?r.title[1]:r.title;i.innerHTML=v(p(n)?n.call(t,c,e):"".concat(l," (").concat(e.naturalWidth," × ").concat(e.naturalHeight,")"))};return E(n,"viewed",m,{once:!0}),this.viewing={abort:function(){C(n,"viewed",m),c.complete?t.imageRendering?t.imageRendering.abort():t.imageInitializing&&t.imageInitializing.abort():(c.src="",C(c,"load",d),t.timeout&&clearTimeout(t.timeout))}},c.complete?this.load():(E(c,"load",d=function(){C(c,"error",h),t.load()},{once:!0}),E(c,"error",h=function(){C(c,"load",d),t.timeout&&(clearTimeout(t.timeout),t.timeout=!1),_(c,Q),r.loading&&_(t.canvas,Z)},{once:!0}),this.timeout&&clearTimeout(this.timeout),this.timeout=setTimeout(function(){_(c,Q),t.timeout=!1},1e3)),this},prev:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.index-1;return e<0&&(e=t?this.length-1:0),this.view(e),this},next:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.length-1,n=this.index+1;return n>e&&(n=t?0:e),this.view(n),this},move:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,n=this.imageData;return this.moveTo(f(t)?t:n.x+Number(t),f(e)?e:n.y+Number(e)),this},moveTo:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=this.element,o=this.options,a=this.imageData;if(t=Number(t),n=Number(n),this.viewed&&!this.played&&o.movable){var s=a.x,u=a.y,l=!1;if(c(t)?l=!0:t=s,c(n)?l=!0:n=u,l){if(p(o.move)&&E(i,"move",o.move,{once:!0}),!1===T(i,"move",{x:t,y:n,oldX:s,oldY:u,originalEvent:r}))return this;a.x=t,a.y=n,a.left=t,a.top=n,this.moving=!0,this.renderImage(function(){e.moving=!1,p(o.moved)&&E(i,"moved",o.moved,{once:!0}),T(i,"moved",{x:t,y:n,oldX:s,oldY:u,originalEvent:r},{cancelable:!1})})}}return this},rotate:function(t){return this.rotateTo((this.imageData.rotate||0)+Number(t)),this},rotateTo:function(t){var e=this,n=this.element,r=this.options,i=this.imageData;if(t=Number(t),c(t)&&this.viewed&&!this.played&&r.rotatable){var o=i.rotate;if(p(r.rotate)&&E(n,"rotate",r.rotate,{once:!0}),!1===T(n,"rotate",{degree:t,oldDegree:o}))return this;i.rotate=t,this.rotating=!0,this.renderImage(function(){e.rotating=!1,p(r.rotated)&&E(n,"rotated",r.rotated,{once:!0}),T(n,"rotated",{degree:t,oldDegree:o},{cancelable:!1})})}return this},scaleX:function(t){return this.scale(t,this.imageData.scaleY),this},scaleY:function(t){return this.scale(this.imageData.scaleX,t),this},scale:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,r=this.element,i=this.options,o=this.imageData;if(t=Number(t),n=Number(n),this.viewed&&!this.played&&i.scalable){var a=o.scaleX,s=o.scaleY,u=!1;if(c(t)?u=!0:t=a,c(n)?u=!0:n=s,u){if(p(i.scale)&&E(r,"scale",i.scale,{once:!0}),!1===T(r,"scale",{scaleX:t,scaleY:n,oldScaleX:a,oldScaleY:s}))return this;o.scaleX=t,o.scaleY=n,this.scaling=!0,this.renderImage(function(){e.scaling=!1,p(i.scaled)&&E(r,"scaled",i.scaled,{once:!0}),T(r,"scaled",{scaleX:t,scaleY:n,oldScaleX:a,oldScaleY:s},{cancelable:!1})})}}return this},zoom:function(t){var e=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 t=Number(t),t=t<0?1/(1-t):1+t,this.zoomTo(i.width*t/i.naturalWidth,e,n,r),this},zoomTo:function(t){var e=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,u=this.pointers,l=this.imageData,f=l.x,d=l.y,g=l.width,m=l.height,v=l.naturalWidth,y=l.naturalHeight;if(t=Math.max(0,t),c(t)&&this.viewed&&!this.played&&(o||s.zoomable)){if(!o){var b=Math.max(.01,s.minZoomRatio),_=Math.min(100,s.maxZoomRatio);t=Math.min(Math.max(t,b),_)}if(i)switch(i.type){case"wheel":s.zoomRatio>=.055&&t>.95&&t<1.05&&(t=1);break;case"pointermove":case"touchmove":case"mousemove":t>.99&&t<1.01&&(t=1)}var w=v*t,x=y*t,k=w-g,S=x-m,C=l.ratio;if(p(s.zoom)&&E(a,"zoom",s.zoom,{once:!0}),!1===T(a,"zoom",{ratio:t,oldRatio:C,originalEvent:i}))return this;if(this.zooming=!0,i){var O=A(this.viewer),P=u&&Object.keys(u).length>0?R(u):{pageX:i.pageX,pageY:i.pageY};l.x-=k*((P.pageX-O.left-f)/g),l.y-=S*((P.pageY-O.top-d)/m)}else h(r)&&c(r.x)&&c(r.y)?(l.x-=k*((r.x-f)/g),l.y-=S*((r.y-d)/m)):(l.x-=k/2,l.y-=S/2);l.left=l.x,l.top=l.y,l.width=w,l.height=x,l.oldRatio=C,l.ratio=t,this.renderImage(function(){e.zooming=!1,p(s.zoomed)&&E(a,"zoomed",s.zoomed,{once:!0}),T(a,"zoomed",{ratio:t,oldRatio:C,originalEvent:i},{cancelable:!1})}),n&&this.tooltip()}return this},play:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.isShown||this.played)return this;var n=this.element,r=this.options;if(p(r.play)&&E(n,"play",r.play,{once:!0}),!1===T(n,"play"))return this;var i=this.player,o=this.loadImage.bind(this),a=[],s=0,u=0;if(this.played=!0,this.onLoadWhenPlay=o,e&&this.requestFullscreen(e),b(i,nt),g(this.items,function(t,e){var n=t.querySelector("img"),l=document.createElement("img");l.src=k(n,"originalUrl"),l.alt=n.getAttribute("alt"),l.referrerPolicy=n.referrerPolicy,s+=1,b(l,U),w(l,rt,r.transition),y(t,V)&&(b(l,J),u=e),a.push(l),E(l,"load",o,{once:!0}),i.appendChild(l)}),c(r.interval)&&r.interval>0){var l=function e(){clearTimeout(t.playing.timeout),_(a[u],J),u-=1,u=u>=0?u:s-1,b(a[u],J),t.playing.timeout=setTimeout(e,r.interval)},f=function e(){clearTimeout(t.playing.timeout),_(a[u],J),u+=1,u=u<s?u:0,b(a[u],J),t.playing.timeout=setTimeout(e,r.interval)};s>1&&(this.playing={prev:l,next:f,timeout:setTimeout(f,r.interval)})}return this},stop:function(){var t=this;if(!this.played)return this;var e=this.element,n=this.options;if(p(n.stop)&&E(e,"stop",n.stop,{once:!0}),!1===T(e,"stop"))return this;var r=this.player;return clearTimeout(this.playing.timeout),this.playing=!1,this.played=!1,g(r.getElementsByTagName("img"),function(e){C(e,"load",t.onLoadWhenPlay)}),_(r,nt),r.innerHTML="",this.exitFullscreen(),this},full:function(){var t=this,e=this.options,n=this.viewer,r=this.image,i=this.list;return!this.isShown||this.played||this.fulled||!e.inline?this:(this.fulled=!0,this.open(),b(this.button,W),e.transition&&(_(i,rt),this.viewed&&_(r,rt)),b(n,H),n.setAttribute("role","dialog"),n.setAttribute("aria-labelledby",this.title.id),n.setAttribute("aria-modal",!0),n.removeAttribute("style"),m(n,{zIndex:e.zIndex}),e.focus&&this.enforceFocus(),this.initContainer(),this.viewerData=gt({},this.containerData),this.renderList(),this.viewed&&this.initImage(function(){t.renderImage(function(){e.transition&&setTimeout(function(){b(r,rt),b(i,rt)},0)})}),this)},exit:function(){var t=this,e=this.options,n=this.viewer,r=this.image,i=this.list;return this.isShown&&!this.played&&this.fulled&&e.inline?(this.fulled=!1,this.close(),_(this.button,W),e.transition&&(_(i,rt),this.viewed&&_(r,rt)),e.focus&&this.clearEnforceFocus(),n.removeAttribute("role"),n.removeAttribute("aria-labelledby"),n.removeAttribute("aria-modal"),_(n,H),m(n,{zIndex:e.zIndexInline}),this.viewerData=gt({},this.parentData),this.renderViewer(),this.renderList(),this.viewed&&this.initImage(function(){t.renderImage(function(){e.transition&&setTimeout(function(){b(r,rt),b(i,rt)},0)})}),this):this},tooltip:function(){var t=this,e=this.options,n=this.tooltipBox,r=this.imageData;return this.viewed&&!this.played&&e.tooltip?(n.textContent="".concat(Math.round(100*r.ratio),"%"),this.tooltipping?clearTimeout(this.tooltipping):e.transition?(this.fading&&T(n,"transitionend"),b(n,nt),b(n,U),b(n,rt),n.removeAttribute("aria-hidden"),n.initialOffsetWidth=n.offsetWidth,b(n,J)):(b(n,nt),n.removeAttribute("aria-hidden")),this.tooltipping=setTimeout(function(){e.transition?(E(n,"transitionend",function(){_(n,nt),_(n,U),_(n,rt),n.setAttribute("aria-hidden",!0),t.fading=!1},{once:!0}),_(n,J),t.fading=!0):(_(n,nt),n.setAttribute("aria-hidden",!0)),t.tooltipping=!1},1e3),this):this},toggle:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return 1===this.imageData.ratio?this.zoomTo(this.imageData.oldRatio,!0,null,t):this.zoomTo(1,!0,null,t),this},reset:function(){return this.viewed&&!this.played&&(this.imageData=gt({},this.initialImageData),this.renderImage()),this},update:function(){var t=this,e=this.element,n=this.options,r=this.isImg;if(r&&!e.parentNode)return this.destroy();var i=[];if(g(r?[e]:e.querySelectorAll("img"),function(e){p(n.filter)?n.filter.call(t,e)&&i.push(e):t.getImageURL(e)&&i.push(e)}),!i.length)return this;if(this.images=i,this.length=i.length,this.ready){var o=[];if(g(this.items,function(t,e){var n=t.querySelector("img"),r=i[e];r&&n?r.src===n.src&&r.alt===n.alt||o.push(e):o.push(e)}),m(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];b(s,V),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 t=this.element,e=this.options;return t.viewer?(this.destroyed=!0,this.ready?(this.played&&this.stop(),e.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)):e.inline&&(this.delaying?this.delaying.abort():this.initializing&&this.initializing.abort()),e.inline||C(t,"click",this.onStart),t.viewer=void 0,this):this}},St={getImageURL:function(t){var e=this.options.url;return e=l(e)?t.getAttribute(e):p(e)?e.call(this,t):""},enforceFocus:function(){var t=this;this.clearEnforceFocus(),E(document,"focusin",this.onFocusin=function(e){var n=t.viewer,r=e.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&&(C(document,"focusin",this.onFocusin),this.onFocusin=null)},open:function(){var t=this.body;b(t,et),this.scrollbarWidth>0&&(t.style.paddingRight="".concat(this.scrollbarWidth+(parseFloat(this.initialBodyComputedPaddingRight)||0),"px"))},close:function(){var t=this.body;_(t,et),this.scrollbarWidth>0&&(t.style.paddingRight=this.initialBodyPaddingRight)},shown:function(){var t=this.element,e=this.options,n=this.viewer;this.fulled=!0,this.isShown=!0,this.render(),this.bind(),this.showing=!1,e.focus&&(n.focus(),this.enforceFocus()),p(e.shown)&&E(t,"shown",e.shown,{once:!0}),!1!==T(t,"shown")&&this.ready&&this.isShown&&!this.hiding&&this.view(this.index)},hidden:function(){var t=this.element,e=this.options,n=this.viewer;e.fucus&&this.clearEnforceFocus(),this.close(),this.unbind(),b(n,G),n.removeAttribute("role"),n.removeAttribute("aria-labelledby"),n.removeAttribute("aria-modal"),n.setAttribute("aria-hidden",!0),this.resetList(),this.resetImage(),this.fulled=!1,this.viewed=!1,this.isShown=!1,this.hiding=!1,this.destroyed||(p(e.hidden)&&E(t,"hidden",e.hidden,{once:!0}),T(t,"hidden",null,{cancelable:!1}))},requestFullscreen:function(t){var e=this.element.ownerDocument;if(this.fulled&&!(e.fullscreenElement||e.webkitFullscreenElement||e.mozFullScreenElement||e.msFullscreenElement)){var n=e.documentElement;n.requestFullscreen?h(t)?n.requestFullscreen(t):n.requestFullscreen():n.webkitRequestFullscreen?n.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT):n.mozRequestFullScreen?n.mozRequestFullScreen():n.msRequestFullscreen&&n.msRequestFullscreen()}},exitFullscreen:function(){var t=this.element.ownerDocument;this.fulled&&(t.fullscreenElement||t.webkitFullscreenElement||t.mozFullScreenElement||t.msFullscreenElement)&&(t.exitFullscreen?t.exitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():t.msExitFullscreen&&t.msExitFullscreen())},change:function(t){var e=this.options,n=this.pointers,r=n[Object.keys(n)[0]];if(r){var i=r.endX-r.startX,o=r.endY-r.startY;switch(this.action){case"move":0===i&&0===o||(this.pointerMoved=!0,this.move(i,o,t));break;case"zoom":this.zoom(M(n),!1,null,t);break;case"switch":this.action="switched";var a=Math.abs(i);a>1&&a>Math.abs(o)&&(this.pointers={},i>1?this.prev(e.loop):i<-1&&this.next(e.loop))}g(n,function(t){t.startX=t.endX,t.startY=t.endY})}},isSwitchable:function(){var t=this.imageData,e=this.viewerData;return this.length>1&&t.x>=0&&t.y>=0&&t.width<=e.width&&t.height<=e.height}},Ct=j.Viewer,Et=function(t){return function(){return t+=1}}(-1),Tt=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(r(this,t),!e||1!==e.nodeType)throw new Error("The first argument is required and must be an element.");this.element=e,this.options=gt({},$,h(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=Et(),this.init()}return o(t,[{key:"init",value:function(){var t=this,e=this.element,n=this.options;if(!e.viewer){e.viewer=this,n.focus&&!n.keyboard&&(n.focus=!1);var r="img"===e.localName,i=[];if(g(r?[e]:e.querySelectorAll("img"),function(e){p(n.filter)?n.filter.call(t,e)&&i.push(e):t.getImageURL(e)&&i.push(e)}),this.isImg=r,this.length=i.length,this.images=i,this.initBody(),f(document.createElement("viewer").style.transition)&&(n.transition=!1),n.inline){var o=0,a=function(){if((o+=1)===t.length){var e;t.initializing=!1,t.delaying={abort:function(){clearTimeout(e)}},e=setTimeout(function(){t.delaying=!1,t.build()},0)}};this.initializing={abort:function(){g(i,function(t){t.complete||(C(t,"load",a),C(t,"error",a))})}},g(i,function(t){if(t.complete)a();else{var e,n;E(t,"load",e=function(){C(t,"error",n),a()},{once:!0}),E(t,"error",n=function(){C(t,"load",e),a()},{once:!0})}})}else E(e,"click",this.onStart=function(e){var r=e.target;"img"!==r.localName||p(n.filter)&&!n.filter.call(t,r)||t.view(t.images.indexOf(r))})}}},{key:"build",value:function(){if(!this.ready){var t=this.element,e=this.options,n=t.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")),u=i.querySelector(".".concat("viewer","-button")),d=i.querySelector(".".concat("viewer","-canvas"));if(this.parent=n,this.viewer=i,this.title=o,this.toolbar=a,this.navbar=s,this.button=u,this.canvas=d,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),b(o,e.title?D(Array.isArray(e.title)?e.title[0]:e.title):G),b(s,e.navbar?D(e.navbar):G),w(u,G,!e.button),e.keyboard&&u.setAttribute("tabindex",0),e.backdrop&&(b(i,"".concat("viewer","-backdrop")),e.inline||"static"===e.backdrop||S(d,ct,"hide")),l(e.className)&&e.className&&e.className.split(ft).forEach(function(t){b(i,t)}),e.toolbar){var v=document.createElement("ul"),y=h(e.toolbar),_=dt.slice(0,3),k=dt.slice(7,9),C=dt.slice(9);y||b(a,D(e.toolbar)),g(y?e.toolbar:dt,function(t,n){var r=y&&h(t),i=y?x(n):t,o=r&&!f(t.show)?t.show:t;if(o&&(e.zoomable||-1===_.indexOf(i))&&(e.rotatable||-1===k.indexOf(i))&&(e.scalable||-1===C.indexOf(i))){var a=r&&!f(t.size)?t.size:t,s=r&&!f(t.click)?t.click:t,u=document.createElement("li");e.keyboard&&u.setAttribute("tabindex",0),u.setAttribute("role","button"),b(u,"".concat("viewer","-").concat(i)),p(s)||S(u,ct,i),c(o)&&b(u,D(o)),-1!==["small","large"].indexOf(a)?b(u,"".concat("viewer","-").concat(a)):"play"===i&&b(u,"".concat("viewer","-large")),p(s)&&E(u,"click",s),v.appendChild(u)}}),a.appendChild(v)}else b(a,G);if(!e.rotatable){var A=a.querySelectorAll('li[class*="rotate"]');b(A,Q),g(A,function(t){a.appendChild(t)})}if(e.inline)b(u,q),m(i,{zIndex:e.zIndexInline}),"static"===window.getComputedStyle(n).position&&m(n,{position:"relative"}),n.insertBefore(i,t.nextSibling);else{b(u,z),b(i,H),b(i,U),b(i,G),m(i,{zIndex:e.zIndex});var O=e.container;l(O)&&(O=t.ownerDocument.querySelector(O)),O||(O=this.body),O.appendChild(i)}if(e.inline&&(this.render(),this.bind(),this.isShown=!0),this.ready=!0,p(e.ready)&&E(t,"ready",e.ready,{once:!0}),!1===T(t,"ready"))return void(this.ready=!1);this.ready&&e.inline&&this.view(this.index)}}}],[{key:"noConflict",value:function(){return window.Viewer=Ct,t}},{key:"setDefaults",value:function(t){gt($,h(t)&&t)}}]),t}();return gt(Tt.prototype,_t,wt,xt,kt,St),Tt})},function(t,e,n){var r=n(349),i={autoSetContainer:!1,appendToBody:!0},o={install:function(t){var e="3."===t.version.slice(0,2)?t.config.globalProperties:t.prototype;e.$clipboardConfig=i,e.$copyText=function(t,e){return new Promise(function(n,o){var a=document.createElement("button"),s=new r(a,{text:function(){return t},action:function(){return"copy"},container:"object"==typeof e?e:document.body});s.on("success",function(t){s.destroy(),n(t)}),s.on("error",function(t){s.destroy(),o(t)}),i.appendToBody&&document.body.appendChild(a),a.click(),i.appendToBody&&document.body.removeChild(a)})},t.directive("clipboard",{bind:function(t,e,n){if("success"===e.arg)t._vClipboard_success=e.value;else if("error"===e.arg)t._vClipboard_error=e.value;else{var o=new r(t,{text:function(){return e.value},action:function(){return"cut"===e.arg?"cut":"copy"},container:i.autoSetContainer?t:void 0});o.on("success",function(e){var n=t._vClipboard_success;n&&n(e)}),o.on("error",function(e){var n=t._vClipboard_error;n&&n(e)}),t._vClipboard=o}},update:function(t,e){"success"===e.arg?t._vClipboard_success=e.value:"error"===e.arg?t._vClipboard_error=e.value:(t._vClipboard.text=function(){return e.value},t._vClipboard.action=function(){return"cut"===e.arg?"cut":"copy"})},unbind:function(t,e){t._vClipboard&&("success"===e.arg?delete t._vClipboard_success:"error"===e.arg?delete t._vClipboard_error:(t._vClipboard.destroy(),delete t._vClipboard))}})},config:i};t.exports=o},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";var r=n(949),i=n.n(r);e.a=function(t){var e=t.createLoadingTask,n=t.PDFJSWrapper;return{createLoadingTask:e,render:function(t){return t("span",{attrs:{style:"position: relative; display: block"}},[t("canvas",{attrs:{style:"display: inline-block; width: 100%; height: 100%; vertical-align: top"},ref:"canvas"}),t("span",{style:"display: inline-block; width: 100%; height: 100%",class:"annotationLayer",ref:"annotationLayer"}),t(i.a,{props:{initial:!0},on:{resize:this.resize}})])},props:{src:{type:[String,Object,Uint8Array],default:""},page:{type:Number,default:1},rotate:{type:Number}},watch:{src:function(){this.pdf.loadDocument(this.src)},page:function(){this.pdf.loadPage(this.page,this.rotate)},rotate:function(){this.pdf.renderPage(this.rotate)}},methods:{resize:function(t){if(null!==this.$el.parentNode&&(0!==t.width||0!==t.height)){this.$refs.canvas.style.height=this.$refs.canvas.offsetWidth*(this.$refs.canvas.height/this.$refs.canvas.width)+"px";var e=this.pdf.getResolutionScale();(e<.85||e>1.15)&&this.pdf.renderPage(this.rotate)}},print:function(t,e){this.pdf.printPage(t,e)}},mounted:function(){this.pdf=new n(this.$refs.canvas,this.$refs.annotationLayer,this.$emit.bind(this)),this.$on("loaded",function(){this.pdf.loadPage(this.page,this.rotate)}),this.$on("page-size",function(t,e){this.$refs.canvas.style.height=this.$refs.canvas.offsetWidth*(e/t)+"px"}),this.pdf.loadDocument(this.src)},destroyed:function(){this.pdf.destroy()}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(923),i=(n.n(r),Promise.resolve());e.default=function(t){function e(t){return"object"==typeof t&&null!==t&&!0===t.__PDFDocumentLoadingTask}function n(e,n){var r;if("string"==typeof e)r={url:e};else if(e instanceof Uint8Array)r={data:e};else{if("object"!=typeof e||null===e)throw new TypeError("invalid src type");r=Object.assign({},e)}n&&n.withCredentials&&(r.withCredentials=n.withCredentials);var i=t.getDocument(r);return i.__PDFDocumentLoadingTask=!0,n&&n.onPassword&&(i.onPassword=n.onPassword),n&&n.onProgress&&(i.onProgress=n.onProgress),i}function o(o,a,s){function u(){o.getContext("2d").clearRect(0,0,o.width,o.height)}function l(){for(;a.firstChild;)a.removeChild(a.firstChild)}var c=null,f=null,d=null,h=!1;o.getContext("2d").save(),this.destroy=function(){null!==c&&(i=c.destroy(),c=null)},this.getResolutionScale=function(){return o.offsetWidth/o.width},this.printPage=function(t,e){function n(){o.parentNode.removeChild(o)}if(null!==f){var r=void 0===t?150:t,i=r/72,o=document.createElement("iframe");new Promise(function(t,e){o.frameBorder="0",o.scrolling="no",o.width="0px;",o.height="0px;",o.style.cssText="position: absolute; top: 0; left: 0",o.onload=function(){t(this.contentWindow)},window.document.body.appendChild(o)}).then(function(t){return t.document.title="",c.getPage(1).then(function(e){var n=e.getViewport({scale:1});return t.document.head.appendChild(t.document.createElement("style")).textContent="@supports ((size:A4) and (size:1pt 1pt)) {@page { margin: 1pt; size: "+n.width*i/(96/72)+"pt "+n.height*i/(96/72)+"pt; }}@media print {body { margin: 0 }canvas { page-break-before: avoid; page-break-after: always; page-break-inside: avoid }}@media screen {body { margin: 0 }}",t})}).then(function(t){for(var r=[],o=1;o<=c.numPages;++o)void 0!==e&&-1===e.indexOf(o)||r.push(c.getPage(o).then(function(e){var n=e.getViewport({scale:1}),r=t.document.body.appendChild(t.document.createElement("canvas"));return r.width=n.width*i,r.height=n.height*i,e.render({canvasContext:r.getContext("2d"),transform:[i,0,0,i,0,0],viewport:n,intent:"print"}).promise}));Promise.all(r).then(function(){t.focus(),t.document.queryCommandSupported("print")?t.document.execCommand("print",!1,null):t.print(),n()}).catch(function(t){n(),s("error",t)})})}},this.renderPage=function(e){if(null!==d){if(h)return;return h=!0,void d.cancel().catch(function(t){s("error",t)})}if(null!==f){var n=(void 0===f.rotate?0:f.rotate)+(void 0===e?0:e),u=o.offsetWidth/f.getViewport({scale:1}).width*(window.devicePixelRatio||1),p=f.getViewport({scale:u,rotation:n});s("page-size",p.width,p.height,u),o.width=p.width,o.height=p.height,d=f.render({canvasContext:o.getContext("2d"),viewport:p}),a.style.visibility="hidden",l();var g={scrollPageIntoView:function(t){s("link-clicked",t.pageNumber)}},m=new r.PDFLinkService;m.setDocument(c),m.setViewer(g),i=i.then(function(){var n=f.getAnnotations({intent:"display"}).then(function(e){t.AnnotationLayer.render({viewport:p.clone({dontFlip:!0}),div:a,annotations:e,page:f,linkService:m,renderInteractiveForms:!1})}),r=d.promise.then(function(){a.style.visibility="",h=!1,d=null}).catch(function(n){if(d=null,n instanceof t.RenderingCancelledException)return h=!1,void this.renderPage(e);s("error",n)}.bind(this));return Promise.all([n,r])}.bind(this))}},this.forEachPage=function(t){var e=c.numPages;!function n(r){c.getPage(r).then(t).then(function(){++r<=e&&n(r)})}(1)},this.loadPage=function(t,e){f=null,null!==c&&(i=i.then(function(){return c.getPage(t)}).then(function(t){f=t,this.renderPage(e),s("page-loaded",t.pageNumber)}.bind(this)).catch(function(t){u(),l(),s("error",t)}))},this.loadDocument=function(r){if(c=null,f=null,s("num-pages",void 0),!r)return o.removeAttribute("width"),o.removeAttribute("height"),void l();i=i.then(function(){var i;if(e(r)){if(r.destroyed)return void s("error",new Error("loadingTask has been destroyed"));i=r}else i=n(r,{onPassword:function(e,n){var r;switch(n){case t.PasswordResponses.NEED_PASSWORD:r="NEED_PASSWORD";break;case t.PasswordResponses.INCORRECT_PASSWORD:r="INCORRECT_PASSWORD"}s("password",e,r)},onProgress:function(t){var e=t.loaded/t.total;s("progress",Math.min(e,1))}});return i.promise}).then(function(t){c=t,s("num-pages",t.numPages),s("loaded")}).catch(function(t){u(),l(),s("error",t)})},a.style.transformOrigin="0 0"}return{createLoadingTask:n,PDFJSWrapper:o}}},function(t,e,n){!function(e,r){t.exports=r(n(928))}(0,function(t){return function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/",e(e.s=2)}([function(e,n){e.exports=t},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(4),i=n.n(r),o=n(6),a=n(5),s=a(i.a,o.a,!1,null,null,null);e.default=s.exports},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.install=e.quillEditor=e.Quill=void 0;var i=n(0),o=r(i),a=n(1),s=r(a),u=window.Quill||o.default,l=function(t,e){e&&(s.default.props.globalOptions.default=function(){return e}),t.component(s.default.name,s.default)},c={Quill:u,quillEditor:s.default,install:l};e.default=c,e.Quill=u,e.quillEditor=s.default,e.install=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={theme:"snow",boundary:document.body,modules:{toolbar:[["bold","italic","underline","strike"],["blockquote","code-block"],[{header:1},{header:2}],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{indent:"-1"},{indent:"+1"}],[{direction:"rtl"}],[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{font:[]}],[{align:[]}],["clean"],["link","image","video"]]},placeholder:"Insert text here ...",readOnly:!1}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=r(i),a=n(3),s=r(a),u=window.Quill||o.default;"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(t,e){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(t),r=1;r<arguments.length;r++){var i=arguments[r];if(null!=i)for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}return n},writable:!0,configurable:!0}),e.default={name:"quill-editor",data:function(){return{_options:{},_content:"",defaultOptions:s.default}},props:{content:String,value:String,disabled:{type:Boolean,default:!1},options:{type:Object,required:!1,default:function(){return{}}},globalOptions:{type:Object,required:!1,default:function(){return{}}}},mounted:function(){this.initialize()},beforeDestroy:function(){this.quill=null,delete this.quill},methods:{initialize:function(){var t=this;this.$el&&(this._options=Object.assign({},this.defaultOptions,this.globalOptions,this.options),this.quill=new u(this.$refs.editor,this._options),this.quill.enable(!1),(this.value||this.content)&&this.quill.pasteHTML(this.value||this.content),this.disabled||this.quill.enable(!0),this.quill.on("selection-change",function(e){e?t.$emit("focus",t.quill):t.$emit("blur",t.quill)}),this.quill.on("text-change",function(e,n,r){var i=t.$refs.editor.children[0].innerHTML,o=t.quill,a=t.quill.getText();"<p><br></p>"===i&&(i=""),t._content=i,t.$emit("input",t._content),t.$emit("change",{html:i,text:a,quill:o})}),this.$emit("ready",this.quill))}},watch:{content:function(t,e){this.quill&&(t&&t!==this._content?(this._content=t,this.quill.pasteHTML(t)):t||this.quill.setText(""))},value:function(t,e){this.quill&&(t&&t!==this._content?(this._content=t,this.quill.pasteHTML(t)):t||this.quill.setText(""))},disabled:function(t,e){this.quill&&this.quill.enable(!t)}}}},function(t,e){t.exports=function(t,e,n,r,i,o){var a,s=t=t||{},u=typeof t.default;"object"!==u&&"function"!==u||(a=t,s=t.default);var l="function"==typeof s?s.options:s;e&&(l.render=e.render,l.staticRenderFns=e.staticRenderFns,l._compiled=!0),n&&(l.functional=!0),i&&(l._scopeId=i);var c;if(o?(c=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},l._ssrRegister=c):r&&(c=r),c){var f=l.functional,d=f?l.render:l.beforeCreate;f?(l._injectStyles=c,l.render=function(t,e){return c.call(e),d(t,e)}):l.beforeCreate=d?[].concat(d,c):[c]}return{esModule:a,exports:s,options:l}}},function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"quill-editor"},[t._t("toolbar"),t._v(" "),n("div",{ref:"editor"})],2)},i=[],o={render:r,staticRenderFns:i};e.a=o}])})},function(t,e){t.exports=function(t,e){for(var n=[],r={},i=0;i<e.length;i++){var o=e[i],a=o[0],s=o[1],u=o[2],l=o[3],c={id:t+":"+i,css:s,media:u,sourceMap:l};r[a]?r[a].parts.push(c):n.push(r[a]={id:a,parts:[c]})}return n}},function(t,e,n){!function(e,r){t.exports=r(n(933))}("undefined"!=typeof self&&self,function(t){return function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var i in t)e.d(r,i,function(e){return t[e]}.bind(null,i));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s="fb15")}({"01f9":function(t,e,n){"use strict";var r=n("2d00"),i=n("5ca1"),o=n("2aba"),a=n("32e9"),s=n("84f2"),u=n("41a0"),l=n("7f20"),c=n("38fd"),f=n("2b4c")("iterator"),d=!([].keys&&"next"in[].keys()),h=function(){return this};t.exports=function(t,e,n,p,g,m,v){u(n,e,p);var y,b,_,w=function(t){if(!d&&t in C)return C[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},x=e+" Iterator",k="values"==g,S=!1,C=t.prototype,E=C[f]||C["@@iterator"]||g&&C[g],T=E||w(g),A=g?k?w("entries"):T:void 0,O="Array"==e?C.entries||E:E;if(O&&(_=c(O.call(new t)))!==Object.prototype&&_.next&&(l(_,x,!0),r||"function"==typeof _[f]||a(_,f,h)),k&&E&&"values"!==E.name&&(S=!0,T=function(){return E.call(this)}),r&&!v||!d&&!S&&C[f]||a(C,f,T),s[e]=T,s[x]=h,g)if(y={values:k?T:w("values"),keys:m?T:w("keys"),entries:A},v)for(b in y)b in C||o(C,b,y[b]);else i(i.P+i.F*(d||S),e,y);return y}},"02f4":function(t,e,n){var r=n("4588"),i=n("be13");t.exports=function(t){return function(e,n){var o,a,s=String(i(e)),u=r(n),l=s.length;return u<0||u>=l?t?"":void 0:(o=s.charCodeAt(u),o<55296||o>56319||u+1===l||(a=s.charCodeAt(u+1))<56320||a>57343?t?s.charAt(u):o:t?s.slice(u,u+2):a-56320+(o-55296<<10)+65536)}}},"0390":function(t,e,n){"use strict";var r=n("02f4")(!0);t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},"0bfb":function(t,e,n){"use strict";var r=n("cb7c");t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},"0d58":function(t,e,n){var r=n("ce10"),i=n("e11e");t.exports=Object.keys||function(t){return r(t,i)}},1495:function(t,e,n){var r=n("86cc"),i=n("cb7c"),o=n("0d58");t.exports=n("9e1e")?Object.defineProperties:function(t,e){i(t);for(var n,a=o(e),s=a.length,u=0;s>u;)r.f(t,n=a[u++],e[n]);return t}},"214f":function(t,e,n){"use strict";n("b0c5");var r=n("2aba"),i=n("32e9"),o=n("79e5"),a=n("be13"),s=n("2b4c"),u=n("520a"),l=s("species"),c=!o(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}),f=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();t.exports=function(t,e,n){var d=s(t),h=!o(function(){var e={};return e[d]=function(){return 7},7!=""[t](e)}),p=h?!o(function(){var e=!1,n=/a/;return n.exec=function(){return e=!0,null},"split"===t&&(n.constructor={},n.constructor[l]=function(){return n}),n[d](""),!e}):void 0;if(!h||!p||"replace"===t&&!c||"split"===t&&!f){var g=/./[d],m=n(a,d,""[t],function(t,e,n,r,i){return e.exec===u?h&&!i?{done:!0,value:g.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}}),v=m[0],y=m[1];r(String.prototype,t,v),i(RegExp.prototype,d,2==e?function(t,e){return y.call(t,this,e)}:function(t){return y.call(t,this)})}}},"230e":function(t,e,n){var r=n("d3f4"),i=n("7726").document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},"23c6":function(t,e,n){var r=n("2d95"),i=n("2b4c")("toStringTag"),o="Arguments"==r(function(){return arguments}()),a=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,n,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=a(e=Object(t),i))?n:o?r(e):"Object"==(s=r(e))&&"function"==typeof e.callee?"Arguments":s}},2621:function(t,e){e.f=Object.getOwnPropertySymbols},"2aba":function(t,e,n){var r=n("7726"),i=n("32e9"),o=n("69a8"),a=n("ca5a")("src"),s=n("fa5b"),u=(""+s).split("toString");n("8378").inspectSource=function(t){return s.call(t)},(t.exports=function(t,e,n,s){var l="function"==typeof n;l&&(o(n,"name")||i(n,"name",e)),t[e]!==n&&(l&&(o(n,a)||i(n,a,t[e]?""+t[e]:u.join(String(e)))),t===r?t[e]=n:s?t[e]?t[e]=n:i(t,e,n):(delete t[e],i(t,e,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[a]||s.call(this)})},"2aeb":function(t,e,n){var r=n("cb7c"),i=n("1495"),o=n("e11e"),a=n("613b")("IE_PROTO"),s=function(){},u=function(){var t,e=n("230e")("iframe"),r=o.length;for(e.style.display="none",n("fab2").appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("<script>document.F=Object<\/script>"),t.close(),u=t.F;r--;)delete u.prototype[o[r]];return u()};t.exports=Object.create||function(t,e){var n;return null!==t?(s.prototype=r(t),n=new s,s.prototype=null,n[a]=t):n=u(),void 0===e?n:i(n,e)}},"2b4c":function(t,e,n){var r=n("5537")("wks"),i=n("ca5a"),o=n("7726").Symbol,a="function"==typeof o;(t.exports=function(t){return r[t]||(r[t]=a&&o[t]||(a?o:i)("Symbol."+t))}).store=r},"2d00":function(t,e){t.exports=!1},"2d95":function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},"2fdb":function(t,e,n){"use strict";var r=n("5ca1"),i=n("d2c8");r(r.P+r.F*n("5147")("includes"),"String",{includes:function(t){return!!~i(this,t,"includes").indexOf(t,arguments.length>1?arguments[1]:void 0)}})},"32e9":function(t,e,n){var r=n("86cc"),i=n("4630");t.exports=n("9e1e")?function(t,e,n){return r.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},"38fd":function(t,e,n){var r=n("69a8"),i=n("4bf8"),o=n("613b")("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),r(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},"41a0":function(t,e,n){"use strict";var r=n("2aeb"),i=n("4630"),o=n("7f20"),a={};n("32e9")(a,n("2b4c")("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(a,{next:i(1,n)}),o(t,e+" Iterator")}},"456d":function(t,e,n){var r=n("4bf8"),i=n("0d58");n("5eda")("keys",function(){return function(t){return i(r(t))}})},4588:function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},4630:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"4bf8":function(t,e,n){var r=n("be13");t.exports=function(t){return Object(r(t))}},5147:function(t,e,n){var r=n("2b4c")("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[r]=!1,!"/./"[t](e)}catch(t){}}return!0}},"520a":function(t,e,n){"use strict";var r=n("0bfb"),i=RegExp.prototype.exec,o=String.prototype.replace,a=i,s=function(){var t=/a/,e=/b*/g;return i.call(t,"a"),i.call(e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),u=void 0!==/()??/.exec("")[1];(s||u)&&(a=function(t){var e,n,a,l,c=this;return u&&(n=new RegExp("^"+c.source+"$(?!\\s)",r.call(c))),s&&(e=c.lastIndex),a=i.call(c,t),s&&a&&(c.lastIndex=c.global?a.index+a[0].length:e),u&&a&&a.length>1&&o.call(a[0],n,function(){for(l=1;l<arguments.length-2;l++)void 0===arguments[l]&&(a[l]=void 0)}),a}),t.exports=a},"52a7":function(t,e){e.f={}.propertyIsEnumerable},5537:function(t,e,n){var r=n("8378"),i=n("7726"),o=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n("2d00")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},"5ca1":function(t,e,n){var r=n("7726"),i=n("8378"),o=n("32e9"),a=n("2aba"),s=n("9b43"),u=function(t,e,n){var l,c,f,d,h=t&u.F,p=t&u.G,g=t&u.S,m=t&u.P,v=t&u.B,y=p?r:g?r[e]||(r[e]={}):(r[e]||{}).prototype,b=p?i:i[e]||(i[e]={}),_=b.prototype||(b.prototype={});p&&(n=e);for(l in n)c=!h&&y&&void 0!==y[l],f=(c?y:n)[l],d=v&&c?s(f,r):m&&"function"==typeof f?s(Function.call,f):f,y&&a(y,l,f,t&u.U),b[l]!=f&&o(b,l,d),m&&_[l]!=f&&(_[l]=f)};r.core=i,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},"5eda":function(t,e,n){var r=n("5ca1"),i=n("8378"),o=n("79e5");t.exports=function(t,e){var n=(i.Object||{})[t]||Object[t],a={};a[t]=e(n),r(r.S+r.F*o(function(){n(1)}),"Object",a)}},"5f1b":function(t,e,n){"use strict";var r=n("23c6"),i=RegExp.prototype.exec;t.exports=function(t,e){var n=t.exec;if("function"==typeof n){var o=n.call(t,e);if("object"!=typeof o)throw new TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==r(t))throw new TypeError("RegExp#exec called on incompatible receiver");return i.call(t,e)}},"613b":function(t,e,n){var r=n("5537")("keys"),i=n("ca5a");t.exports=function(t){return r[t]||(r[t]=i(t))}},"626a":function(t,e,n){var r=n("2d95");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},6762:function(t,e,n){"use strict";var r=n("5ca1"),i=n("c366")(!0);r(r.P,"Array",{includes:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")("includes")},6821:function(t,e,n){var r=n("626a"),i=n("be13");t.exports=function(t){return r(i(t))}},"69a8":function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},"6a99":function(t,e,n){var r=n("d3f4");t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},7333:function(t,e,n){"use strict";var r=n("0d58"),i=n("2621"),o=n("52a7"),a=n("4bf8"),s=n("626a"),u=Object.assign;t.exports=!u||n("79e5")(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=u({},t)[n]||Object.keys(u({},e)).join("")!=r})?function(t,e){for(var n=a(t),u=arguments.length,l=1,c=i.f,f=o.f;u>l;)for(var d,h=s(arguments[l++]),p=c?r(h).concat(c(h)):r(h),g=p.length,m=0;g>m;)f.call(h,d=p[m++])&&(n[d]=h[d]);return n}:u},7726:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"77f1":function(t,e,n){var r=n("4588"),i=Math.max,o=Math.min;t.exports=function(t,e){return t=r(t),t<0?i(t+e,0):o(t,e)}},"79e5":function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},"7f20":function(t,e,n){var r=n("86cc").f,i=n("69a8"),o=n("2b4c")("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,o)&&r(t,o,{configurable:!0,value:e})}},8378:function(t,e){var n=t.exports={version:"2.6.5"};"number"==typeof __e&&(__e=n)},"84f2":function(t,e){t.exports={}},"86cc":function(t,e,n){var r=n("cb7c"),i=n("c69a"),o=n("6a99"),a=Object.defineProperty;e.f=n("9e1e")?Object.defineProperty:function(t,e,n){if(r(t),e=o(e,!0),r(n),i)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},"9b43":function(t,e,n){var r=n("d8e8");t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},"9c6c":function(t,e,n){var r=n("2b4c")("unscopables"),i=Array.prototype;void 0==i[r]&&n("32e9")(i,r,{}),t.exports=function(t){i[r][t]=!0}},"9def":function(t,e,n){var r=n("4588"),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},"9e1e":function(t,e,n){t.exports=!n("79e5")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},a352:function(e,n){e.exports=t},a481:function(t,e,n){"use strict";var r=n("cb7c"),i=n("4bf8"),o=n("9def"),a=n("4588"),s=n("0390"),u=n("5f1b"),l=Math.max,c=Math.min,f=Math.floor,d=/\$([$&`']|\d\d?|<[^>]*>)/g,h=/\$([$&`']|\d\d?)/g,p=function(t){return void 0===t?t:String(t)};n("214f")("replace",2,function(t,e,n,g){function m(t,e,r,o,a,s){var u=r+t.length,l=o.length,c=h;return void 0!==a&&(a=i(a),c=d),n.call(s,c,function(n,i){var s;switch(i.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,r);case"'":return e.slice(u);case"<":s=a[i.slice(1,-1)];break;default:var c=+i;if(0===c)return n;if(c>l){var d=f(c/10);return 0===d?n:d<=l?void 0===o[d-1]?i.charAt(1):o[d-1]+i.charAt(1):n}s=o[c-1]}return void 0===s?"":s})}return[function(r,i){var o=t(this),a=void 0==r?void 0:r[e];return void 0!==a?a.call(r,o,i):n.call(String(o),r,i)},function(t,e){var i=g(n,t,this,e);if(i.done)return i.value;var f=r(t),d=String(this),h="function"==typeof e;h||(e=String(e));var v=f.global;if(v){var y=f.unicode;f.lastIndex=0}for(var b=[];;){var _=u(f,d);if(null===_)break;if(b.push(_),!v)break;""===String(_[0])&&(f.lastIndex=s(d,o(f.lastIndex),y))}for(var w="",x=0,k=0;k<b.length;k++){_=b[k];for(var S=String(_[0]),C=l(c(a(_.index),d.length),0),E=[],T=1;T<_.length;T++)E.push(p(_[T]));var A=_.groups;if(h){var O=[S].concat(E,C,d);void 0!==A&&O.push(A);var P=String(e.apply(void 0,O))}else P=m(S,d,C,E,A,e);C>=x&&(w+=d.slice(x,C)+P,x=C+S.length)}return w+d.slice(x)}]})},aae3:function(t,e,n){var r=n("d3f4"),i=n("2d95"),o=n("2b4c")("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[o])?!!e:"RegExp"==i(t))}},ac6a:function(t,e,n){for(var r=n("cadf"),i=n("0d58"),o=n("2aba"),a=n("7726"),s=n("32e9"),u=n("84f2"),l=n("2b4c"),c=l("iterator"),f=l("toStringTag"),d=u.Array,h={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},p=i(h),g=0;g<p.length;g++){var m,v=p[g],y=h[v],b=a[v],_=b&&b.prototype;if(_&&(_[c]||s(_,c,d),_[f]||s(_,f,v),u[v]=d,y))for(m in r)_[m]||o(_,m,r[m],!0)}},b0c5:function(t,e,n){"use strict";var r=n("520a");n("5ca1")({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},be13:function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},c366:function(t,e,n){var r=n("6821"),i=n("9def"),o=n("77f1");t.exports=function(t){return function(e,n,a){var s,u=r(e),l=i(u.length),c=o(a,l);if(t&&n!=n){for(;l>c;)if((s=u[c++])!=s)return!0}else for(;l>c;c++)if((t||c in u)&&u[c]===n)return t||c||0;return!t&&-1}}},c649:function(t,e,n){"use strict";(function(t){function r(t){null!==t.parentElement&&t.parentElement.removeChild(t)}function i(t,e,n){var r=0===n?t.children[0]:t.children[n-1].nextSibling;t.insertBefore(e,r)}n.d(e,"c",function(){return i}),n.d(e,"a",function(){return s}),n.d(e,"b",function(){return o}),n.d(e,"d",function(){return r});var o=(n("a481"),function(){return"undefined"!=typeof window?window.console:t.console}()),a=/-(\w)/g,s=function(t){var e=Object.create(null);return function(n){return e[n]||(e[n]=t(n))}}(function(t){return t.replace(a,function(t,e){return e?e.toUpperCase():""})})}).call(this,n("c8ba"))},c69a:function(t,e,n){t.exports=!n("9e1e")&&!n("79e5")(function(){return 7!=Object.defineProperty(n("230e")("div"),"a",{get:function(){return 7}}).a})},c8ba:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},ca5a:function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},cadf:function(t,e,n){"use strict";var r=n("9c6c"),i=n("d53b"),o=n("84f2"),a=n("6821");t.exports=n("01f9")(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,i(1)):"keys"==e?i(0,n):"values"==e?i(0,t[n]):i(0,[n,t[n]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},cb7c:function(t,e,n){var r=n("d3f4");t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},ce10:function(t,e,n){var r=n("69a8"),i=n("6821"),o=n("c366")(!1),a=n("613b")("IE_PROTO");t.exports=function(t,e){var n,s=i(t),u=0,l=[];for(n in s)n!=a&&r(s,n)&&l.push(n);for(;e.length>u;)r(s,n=e[u++])&&(~o(l,n)||l.push(n));return l}},d2c8:function(t,e,n){var r=n("aae3"),i=n("be13");t.exports=function(t,e,n){if(r(e))throw TypeError("String#"+n+" doesn't accept regex!");return String(i(t))}},d3f4:function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},d53b:function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},d8e8:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},e11e:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},f559:function(t,e,n){"use strict";var r=n("5ca1"),i=n("9def"),o=n("d2c8"),a="".startsWith;r(r.P+r.F*n("5147")("startsWith"),"String",{startsWith:function(t){var e=o(this,t,"startsWith"),n=i(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),r=String(t);return a?a.call(e,r,n):e.slice(n,n+r.length)===r}})},f6fd:function(t,e){!function(t){var e=t.getElementsByTagName("script");"currentScript"in t||Object.defineProperty(t,"currentScript",{get:function(){try{throw new Error}catch(r){var t,n=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(r.stack)||[!1])[1];for(t in e)if(e[t].src==n||"interactive"==e[t].readyState)return e[t];return null}}})}(document)},f751:function(t,e,n){var r=n("5ca1");r(r.S+r.F,"Object",{assign:n("7333")})},fa5b:function(t,e,n){t.exports=n("5537")("native-function-to-string",Function.toString)},fab2:function(t,e,n){var r=n("7726").document;t.exports=r&&r.documentElement},fb15:function(t,e,n){"use strict";function r(t){if(Array.isArray(t))return t}function i(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function a(t,e){if(t){if("string"==typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(t,e):void 0}}function s(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function u(t,e){return r(t)||i(t,e)||a(t,e)||s()}function l(t){if(Array.isArray(t))return o(t)}function c(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}function f(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function d(t){return l(t)||c(t)||a(t)||f()}function h(t,e,n){return void 0===n?t:(t=t||{},t[e]=n,t)}function p(t,e){return t.map(function(t){return t.elm}).indexOf(e)}function g(t,e,n,r){if(!t)return[];var i=t.map(function(t){return t.elm}),o=e.length-r,a=d(e).map(function(t,e){return e>=o?i.length:i.indexOf(t)});return n?a.filter(function(t){return-1!==t}):a}function m(t,e){var n=this;this.$nextTick(function(){return n.$emit(t.toLowerCase(),e)})}function v(t){var e=this;return function(n){null!==e.realList&&e["onDrag"+t](n),m.call(e,t,n)}}function y(t){return["transition-group","TransitionGroup"].includes(t)}function b(t){if(!t||1!==t.length)return!1;var e=u(t,1),n=e[0].componentOptions;return!!n&&y(n.tag)}function _(t,e,n){return t[n]||(e[n]?e[n]():void 0)}function w(t,e,n){var r=0,i=0,o=_(e,n,"header");o&&(r=o.length,t=t?[].concat(d(o),d(t)):d(o));var a=_(e,n,"footer");return a&&(i=a.length,t=t?[].concat(d(t),d(a)):d(a)),{children:t,headerOffset:r,footerOffset:i}}function x(t,e){var n=null,r=function(t,e){n=h(n,t,e)};if(r("attrs",Object.keys(t).filter(function(t){return"id"===t||t.startsWith("data-")}).reduce(function(e,n){return e[n]=t[n],e},{})),!e)return n;var i=e.on,o=e.props,a=e.attrs;return r("on",i),r("props",o),Object.assign(n.attrs,a),n}if(n.r(e),"undefined"!=typeof window){n("f6fd");var k;(k=window.document.currentScript)&&(k=k.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=k[1])}var S=(n("f751"),n("f559"),n("ac6a"),n("cadf"),n("456d"),n("6762"),n("2fdb"),n("a352")),C=n.n(S),E=n("c649"),T=["Start","Add","Remove","Update","End"],A=["Choose","Unchoose","Sort","Filter","Clone"],O=["Move"].concat(T,A).map(function(t){return"on"+t}),P=null,N={options:Object,list:{type:Array,required:!1,default:null},value:{type:Array,required:!1,default:null},noTransitionOnDrag:{type:Boolean,default:!1},clone:{type:Function,default:function(t){return t}},element:{type:String,default:"div"},tag:{type:String,default:null},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},D={name:"draggable",inheritAttrs:!1,props:N,data:function(){return{transitionMode:!1,noneFunctionalComponentMode:!1}},render:function(t){var e=this.$slots.default;this.transitionMode=b(e);var n=w(e,this.$slots,this.$scopedSlots),r=n.children,i=n.headerOffset,o=n.footerOffset;this.headerOffset=i,this.footerOffset=o;var a=x(this.$attrs,this.componentData);return t(this.getTag(),a,r)},created:function(){null!==this.list&&null!==this.value&&E.b.error("Value and list props are mutually exclusive! Please set one or another."),"div"!==this.element&&E.b.warn("Element props is deprecated please use tag props instead. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#element-props"),void 0!==this.options&&E.b.warn("Options props is deprecated, add sortable options directly as vue.draggable item, or use v-bind. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#options-props")},mounted:function(){var t=this;if(this.noneFunctionalComponentMode=this.getTag().toLowerCase()!==this.$el.nodeName.toLowerCase()&&!this.getIsFunctional(),this.noneFunctionalComponentMode&&this.transitionMode)throw new Error("Transition-group inside component is not supported. Please alter tag value or remove transition-group. Current tag value: ".concat(this.getTag()));var e={};T.forEach(function(n){e["on"+n]=v.call(t,n)}),A.forEach(function(n){e["on"+n]=m.bind(t,n)});var n=Object.keys(this.$attrs).reduce(function(e,n){return e[Object(E.a)(n)]=t.$attrs[n],e},{}),r=Object.assign({},this.options,n,e,{onMove:function(e,n){return t.onDragMove(e,n)}});!("draggable"in r)&&(r.draggable=">*"),this._sortable=new C.a(this.rootContainer,r),this.computeIndexes()},beforeDestroy:function(){void 0!==this._sortable&&this._sortable.destroy()},computed:{rootContainer:function(){return this.transitionMode?this.$el.children[0]:this.$el},realList:function(){return this.list?this.list:this.value}},watch:{options:{handler:function(t){this.updateOptions(t)},deep:!0},$attrs:{handler:function(t){this.updateOptions(t)},deep:!0},realList:function(){this.computeIndexes()}},methods:{getIsFunctional:function(){var t=this._vnode.fnOptions;return t&&t.functional},getTag:function(){return this.tag||this.element},updateOptions:function(t){for(var e in t){var n=Object(E.a)(e);-1===O.indexOf(n)&&this._sortable.option(n,t[e])}},getChildrenNodes:function(){if(this.noneFunctionalComponentMode)return this.$children[0].$slots.default;var t=this.$slots.default;return this.transitionMode?t[0].child.$slots.default:t},computeIndexes:function(){var t=this;this.$nextTick(function(){t.visibleIndexes=g(t.getChildrenNodes(),t.rootContainer.children,t.transitionMode,t.footerOffset)})},getUnderlyingVm:function(t){var e=p(this.getChildrenNodes()||[],t);return-1===e?null:{index:e,element:this.realList[e]}},getUnderlyingPotencialDraggableComponent:function(t){var e=t.__vue__;return e&&e.$options&&y(e.$options._componentTag)?e.$parent:!("realList"in e)&&1===e.$children.length&&"realList"in e.$children[0]?e.$children[0]:e},emitChanges:function(t){var e=this;this.$nextTick(function(){e.$emit("change",t)})},alterList:function(t){if(this.list)return void t(this.list);var e=d(this.value);t(e),this.$emit("input",e)},spliceList:function(){var t=arguments,e=function(e){return e.splice.apply(e,d(t))};this.alterList(e)},updatePosition:function(t,e){var n=function(n){return n.splice(e,0,n.splice(t,1)[0])};this.alterList(n)},getRelatedContextFromMoveEvent:function(t){var e=t.to,n=t.related,r=this.getUnderlyingPotencialDraggableComponent(e);if(!r)return{component:r};var i=r.realList,o={list:i,component:r};if(e!==n&&i&&r.getUnderlyingVm){var a=r.getUnderlyingVm(n);if(a)return Object.assign(a,o)}return o},getVmIndex:function(t){var e=this.visibleIndexes,n=e.length;return t>n-1?n:e[t]},getComponent:function(){return this.$slots.default[0].componentInstance},resetTransitionData:function(t){if(this.noTransitionOnDrag&&this.transitionMode){this.getChildrenNodes()[t].data=null;var e=this.getComponent();e.children=[],e.kept=void 0}},onDragStart:function(t){this.context=this.getUnderlyingVm(t.item),t.item._underlying_vm_=this.clone(this.context.element),P=t.item},onDragAdd:function(t){var e=t.item._underlying_vm_;if(void 0!==e){Object(E.d)(t.item);var n=this.getVmIndex(t.newIndex);this.spliceList(n,0,e),this.computeIndexes();var r={element:e,newIndex:n};this.emitChanges({added:r})}},onDragRemove:function(t){if(Object(E.c)(this.rootContainer,t.item,t.oldIndex),"clone"===t.pullMode)return void Object(E.d)(t.clone);var e=this.context.index;this.spliceList(e,1);var n={element:this.context.element,oldIndex:e};this.resetTransitionData(e),this.emitChanges({removed:n})},onDragUpdate:function(t){Object(E.d)(t.item),Object(E.c)(t.from,t.item,t.oldIndex);var e=this.context.index,n=this.getVmIndex(t.newIndex);this.updatePosition(e,n);var r={element:this.context.element,oldIndex:e,newIndex:n};this.emitChanges({moved:r})},updateProperty:function(t,e){t.hasOwnProperty(e)&&(t[e]+=this.headerOffset)},computeFutureIndex:function(t,e){if(!t.element)return 0;var n=d(e.to.children).filter(function(t){return"none"!==t.style.display}),r=n.indexOf(e.related),i=t.component.getVmIndex(r);return-1===n.indexOf(P)&&e.willInsertAfter?i+1:i},onDragMove:function(t,e){var n=this.move;if(!n||!this.realList)return!0;var r=this.getRelatedContextFromMoveEvent(t),i=this.context,o=this.computeFutureIndex(r,t);return Object.assign(i,{futureIndex:o}),n(Object.assign({},t,{relatedContext:r,draggedContext:i}),e)},onDragEnd:function(){this.computeIndexes(),P=null}}};"undefined"!=typeof window&&"Vue"in window&&window.Vue.component("draggable",D);var M=D;e.default=M}}).default})},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,n){t.exports=function(){return new Worker(n.p+"1f28762560442f7121b4.worker.js")}},,,,,,,,,,function(t,e){t.exports=function(){var t=[];return t.toString=function(){for(var t=[],e=0;e<this.length;e++){var n=this[e];n[2]?t.push("@media "+n[2]+"{"+n[1]+"}"):t.push(n[1])}return t.join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},i=0;i<this.length;i++){var o=this[i][0];"number"==typeof o&&(r[o]=!0)}for(i=0;i<e.length;i++){var a=e[i];"number"==typeof a[0]&&r[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),t.push(a))}},t}},function(t,e,n){function r(t){for(var e=0;e<t.length;e++){var n=t[e],r=c[n.id];if(r){r.refs++;for(var i=0;i<r.parts.length;i++)r.parts[i](n.parts[i]);for(;i<n.parts.length;i++)r.parts.push(o(n.parts[i]));r.parts.length>n.parts.length&&(r.parts.length=n.parts.length)}else{for(var a=[],i=0;i<n.parts.length;i++)a.push(o(n.parts[i]));c[n.id]={id:n.id,refs:1,parts:a}}}}function i(){var t=document.createElement("style");return t.type="text/css",f.appendChild(t),t}function o(t){var e,n,r=document.querySelector('style[data-vue-ssr-id~="'+t.id+'"]');if(r){if(p)return g;r.parentNode.removeChild(r)}if(m){var o=h++;r=d||(d=i()),e=a.bind(null,r,o,!1),n=a.bind(null,r,o,!0)}else r=i(),e=s.bind(null,r),n=function(){r.parentNode.removeChild(r)};return e(t),function(r){if(r){if(r.css===t.css&&r.media===t.media&&r.sourceMap===t.sourceMap)return;e(t=r)}else n()}}function a(t,e,n,r){var i=n?"":r.css;if(t.styleSheet)t.styleSheet.cssText=v(e,i);else{var o=document.createTextNode(i),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(o,a[e]):t.appendChild(o)}}function s(t,e){var n=e.css,r=e.media,i=e.sourceMap;if(r&&t.setAttribute("media",r),i&&(n+="\n/*# sourceURL="+i.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}var u="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!u)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var l=n(1003),c={},f=u&&(document.head||document.getElementsByTagName("head")[0]),d=null,h=0,p=!1,g=function(){},m="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());t.exports=function(t,e,n){p=n;var i=l(t,e);return r(i),function(e){for(var n=[],o=0;o<i.length;o++){var a=i[o],s=c[a.id];s.refs--,n.push(s)}e?(i=l(t,e),r(i)):i=[];for(var o=0;o<n.length;o++){var s=n[o];if(0===s.refs){for(var u=0;u<s.parts.length;u++)s.parts[u]();delete c[s.id]}}}};var v=function(){var t=[];return function(e,n){return t[e]=n,t.filter(Boolean).join("\n")}}()}]);