vendor.1ad0555965871ff5ead4.js 4.3 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. webpackJsonp([0],{"++K3":function(e,t){var n,r,i,a,o,s,l,c,u,h,d,f,p,A,g,m=!1;function v(){if(!m){m=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),v=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(f=/\b(iPhone|iP[ao]d)/.exec(e),p=/\b(iP[ao]d)/.exec(e),h=/Android/i.exec(e),A=/FBAN\/\w+;/i.exec(e),g=/Mobile/i.exec(e),d=!!/Win64/.exec(e),t){(n=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN)&&document&&document.documentMode&&(n=document.documentMode);var y=/(?:Trident\/(\d+.\d+))/.exec(e);s=y?parseFloat(y[1])+4:n,r=t[2]?parseFloat(t[2]):NaN,i=t[3]?parseFloat(t[3]):NaN,(a=t[4]?parseFloat(t[4]):NaN)?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),o=t&&t[1]?parseFloat(t[1]):NaN):o=NaN}else n=r=i=o=a=NaN;if(v){if(v[1]){var b=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);l=!b||parseFloat(b[1].replace("_","."))}else l=!1;c=!!v[2],u=!!v[3]}else l=c=u=!1}}var y={ie:function(){return v()||n},ieCompatibilityMode:function(){return v()||s>n},ie64:function(){return y.ie()&&d},firefox:function(){return v()||r},opera:function(){return v()||i},webkit:function(){return v()||a},safari:function(){return y.webkit()},chrome:function(){return v()||o},windows:function(){return v()||c},osx:function(){return v()||l},linux:function(){return v()||u},iphone:function(){return v()||f},mobile:function(){return v()||f||p||h||g},nativeApp:function(){return v()||A},android:function(){return v()||h},ipad:function(){return v()||p}};e.exports=y},"+E39":function(e,t,n){e.exports=!n("S82l")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},"+ZMJ":function(e,t,n){var r=n("lOnJ");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},"+tPU":function(e,t,n){n("xGkn");for(var r=n("7KvD"),i=n("hJx8"),a=n("/bQp"),o=n("dSzd")("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),l=0;l<s.length;l++){var c=s[l],u=r[c],h=u&&u.prototype;h&&!h[o]&&i(h,o,c),a[c]=a.Array}},"//Fk":function(e,t,n){e.exports={default:n("U5ju"),__esModule:!0}},"/bQp":function(e,t){e.exports={}},"/n6Q":function(e,t,n){n("zQR9"),n("+tPU"),e.exports=n("Kh4W").f("iterator")},"/ocq":function(e,t,n){"use strict";
  2. /*!
  3. * vue-router v3.5.1
  4. * (c) 2021 Evan You
  5. * @license MIT
  6. */function r(e,t){0}function i(e,t){for(var n in t)e[n]=t[n];return e}var a=/[!'()*]/g,o=function(e){return"%"+e.charCodeAt(0).toString(16)},s=/%2C/g,l=function(e){return encodeURIComponent(e).replace(a,o).replace(s,",")};function c(e){try{return decodeURIComponent(e)}catch(e){0}return e}var u=function(e){return null==e||"object"==typeof e?e:String(e)};function h(e){var t={};return(e=e.trim().replace(/^(\?|#|&)/,""))?(e.split("&").forEach(function(e){var n=e.replace(/\+/g," ").split("="),r=c(n.shift()),i=n.length>0?c(n.join("=")):null;void 0===t[r]?t[r]=i:Array.isArray(t[r])?t[r].push(i):t[r]=[t[r],i]}),t):t}function d(e){var t=e?Object.keys(e).map(function(t){var n=e[t];if(void 0===n)return"";if(null===n)return l(t);if(Array.isArray(n)){var r=[];return n.forEach(function(e){void 0!==e&&(null===e?r.push(l(t)):r.push(l(t)+"="+l(e)))}),r.join("&")}return l(t)+"="+l(n)}).filter(function(e){return e.length>0}).join("&"):null;return t?"?"+t:""}var f=/\/?$/;function p(e,t,n,r){var i=r&&r.options.stringifyQuery,a=t.query||{};try{a=A(a)}catch(e){}var o={name:t.name||e&&e.name,meta:e&&e.meta||{},path:t.path||"/",hash:t.hash||"",query:a,params:t.params||{},fullPath:m(t,i),matched:e?function(e){var t=[];for(;e;)t.unshift(e),e=e.parent;return t}(e):[]};return n&&(o.redirectedFrom=m(n,i)),Object.freeze(o)}function A(e){if(Array.isArray(e))return e.map(A);if(e&&"object"==typeof e){var t={};for(var n in e)t[n]=A(e[n]);return t}return e}var g=p(null,{path:"/"});function m(e,t){var n=e.path,r=e.query;void 0===r&&(r={});var i=e.hash;return void 0===i&&(i=""),(n||"/")+(t||d)(r)+i}function v(e,t,n){return t===g?e===t:!!t&&(e.path&&t.path?e.path.replace(f,"")===t.path.replace(f,"")&&(n||e.hash===t.hash&&y(e.query,t.query)):!(!e.name||!t.name)&&(e.name===t.name&&(n||e.hash===t.hash&&y(e.query,t.query)&&y(e.params,t.params))))}function y(e,t){if(void 0===e&&(e={}),void 0===t&&(t={}),!e||!t)return e===t;var n=Object.keys(e).sort(),r=Object.keys(t).sort();return n.length===r.length&&n.every(function(n,i){var a=e[n];if(r[i]!==n)return!1;var o=t[n];return null==a||null==o?a===o:"object"==typeof a&&"object"==typeof o?y(a,o):String(a)===String(o)})}function b(e){for(var t=0;t<e.matched.length;t++){var n=e.matched[t];for(var r in n.instances){var i=n.instances[r],a=n.enteredCbs[r];if(i&&a){delete n.enteredCbs[r];for(var o=0;o<a.length;o++)i._isBeingDestroyed||a[o](i)}}}}var w={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(e,t){var n=t.props,r=t.children,a=t.parent,o=t.data;o.routerView=!0;for(var s=a.$createElement,l=n.name,c=a.$route,u=a._routerViewCache||(a._routerViewCache={}),h=0,d=!1;a&&a._routerRoot!==a;){var f=a.$vnode?a.$vnode.data:{};f.routerView&&h++,f.keepAlive&&a._directInactive&&a._inactive&&(d=!0),a=a.$parent}if(o.routerViewDepth=h,d){var p=u[l],A=p&&p.component;return A?(p.configProps&&x(A,o,p.route,p.configProps),s(A,o,r)):s()}var g=c.matched[h],m=g&&g.components[l];if(!g||!m)return u[l]=null,s();u[l]={component:m},o.registerRouteInstance=function(e,t){var n=g.instances[l];(t&&n!==e||!t&&n===e)&&(g.instances[l]=t)},(o.hook||(o.hook={})).prepatch=function(e,t){g.instances[l]=t.componentInstance},o.hook.init=function(e){e.data.keepAlive&&e.componentInstance&&e.componentInstance!==g.instances[l]&&(g.instances[l]=e.componentInstance),b(c)};var v=g.props&&g.props[l];return v&&(i(u[l],{route:c,configProps:v}),x(m,o,c,v)),s(m,o,r)}};function x(e,t,n,r){var a=t.props=function(e,t){switch(typeof t){case"undefined":return;case"object":return t;case"function":return t(e);case"boolean":return t?e.params:void 0;default:0}}(n,r);if(a){a=t.props=i({},a);var o=t.attrs=t.attrs||{};for(var s in a)e.props&&s in e.props||(o[s]=a[s],delete a[s])}}function _(e,t,n){var r=e.charAt(0);if("/"===r)return e;if("?"===r||"#"===r)return t+e;var i=t.split("/");n&&i[i.length-1]||i.pop();for(var a=e.replace(/^\//,"").split("/"),o=0;o<a.length;o++){var s=a[o];".."===s?i.pop():"."!==s&&i.push(s)}return""!==i[0]&&i.unshift(""),i.join("/")}function C(e){return e.replace(/\/\//g,"/")}var S=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)},k=H,B=F,E=function(e,t){return P(F(e,t),t)},T=P,I=U,M=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function F(e,t){for(var n,r=[],i=0,a=0,o="",s=t&&t.delimiter||"/";null!=(n=M.exec(e));){var l=n[0],c=n[1],u=n.index;if(o+=e.slice(a,u),a=u+l.length,c)o+=c[1];else{var h=e[a],d=n[2],f=n[3],p=n[4],A=n[5],g=n[6],m=n[7];o&&(r.push(o),o="");var v=null!=d&&null!=h&&h!==d,y="+"===g||"*"===g,b="?"===g||"*"===g,w=n[2]||s,x=p||A;r.push({name:f||i++,prefix:d||"",delimiter:w,optional:b,repeat:y,partial:v,asterisk:!!m,pattern:x?L(x):m?".*":"[^"+O(w)+"]+?"})}}return a<e.length&&(o+=e.substr(a)),o&&r.push(o),r}function D(e){return encodeURI(e).replace(/[\/?#]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function P(e,t){for(var n=new Array(e.length),r=0;r<e.length;r++)"object"==typeof e[r]&&(n[r]=new RegExp("^(?:"+e[r].pattern+")$",N(t)));return function(t,r){for(var i="",a=t||{},o=(r||{}).pretty?D:encodeURIComponent,s=0;s<e.length;s++){var l=e[s];if("string"!=typeof l){var c,u=a[l.name];if(null==u){if(l.optional){l.partial&&(i+=l.prefix);continue}throw new TypeError('Expected "'+l.name+'" to be defined')}if(S(u)){if(!l.repeat)throw new TypeError('Expected "'+l.name+'" to not repeat, but received `'+JSON.stringify(u)+"`");if(0===u.length){if(l.optional)continue;throw new TypeError('Expected "'+l.name+'" to not be empty')}for(var h=0;h<u.length;h++){if(c=o(u[h]),!n[s].test(c))throw new TypeError('Expected all "'+l.name+'" to match "'+l.pattern+'", but received `'+JSON.stringify(c)+"`");i+=(0===h?l.prefix:l.delimiter)+c}}else{if(c=l.asterisk?encodeURI(u).replace(/[?#]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}):o(u),!n[s].test(c))throw new TypeError('Expected "'+l.name+'" to match "'+l.pattern+'", but received "'+c+'"');i+=l.prefix+c}}else i+=l}return i}}function O(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function L(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function R(e,t){return e.keys=t,e}function N(e){return e&&e.sensitive?"":"i"}function U(e,t,n){S(t)||(n=t||n,t=[]);for(var r=(n=n||{}).strict,i=!1!==n.end,a="",o=0;o<e.length;o++){var s=e[o];if("string"==typeof s)a+=O(s);else{var l=O(s.prefix),c="(?:"+s.pattern+")";t.push(s),s.repeat&&(c+="(?:"+l+c+")*"),a+=c=s.optional?s.partial?l+"("+c+")?":"(?:"+l+"("+c+"))?":l+"("+c+")"}}var u=O(n.delimiter||"/"),h=a.slice(-u.length)===u;return r||(a=(h?a.slice(0,-u.length):a)+"(?:"+u+"(?=$))?"),a+=i?"$":r&&h?"":"(?="+u+"|$)",R(new RegExp("^"+a,N(n)),t)}function H(e,t,n){return S(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return R(e,t)}(e,t):S(e)?function(e,t,n){for(var r=[],i=0;i<e.length;i++)r.push(H(e[i],t,n).source);return R(new RegExp("(?:"+r.join("|")+")",N(n)),t)}(e,t,n):function(e,t,n){return U(F(e,n),t,n)}(e,t,n)}k.parse=B,k.compile=E,k.tokensToFunction=T,k.tokensToRegExp=I;var j=Object.create(null);function Q(e,t,n){t=t||{};try{var r=j[e]||(j[e]=k.compile(e));return"string"==typeof t.pathMatch&&(t[0]=t.pathMatch),r(t,{pretty:!0})}catch(e){return""}finally{delete t[0]}}function z(e,t,n,r){var a="string"==typeof e?{path:e}:e;if(a._normalized)return a;if(a.name){var o=(a=i({},e)).params;return o&&"object"==typeof o&&(a.params=i({},o)),a}if(!a.path&&a.params&&t){(a=i({},a))._normalized=!0;var s=i(i({},t.params),a.params);if(t.name)a.name=t.name,a.params=s;else if(t.matched.length){var l=t.matched[t.matched.length-1].path;a.path=Q(l,s,t.path)}else 0;return a}var c=function(e){var t="",n="",r=e.indexOf("#");r>=0&&(t=e.slice(r),e=e.slice(0,r));var i=e.indexOf("?");return i>=0&&(n=e.slice(i+1),e=e.slice(0,i)),{path:e,query:n,hash:t}}(a.path||""),d=t&&t.path||"/",f=c.path?_(c.path,d,n||a.append):d,p=function(e,t,n){void 0===t&&(t={});var r,i=n||h;try{r=i(e||"")}catch(e){r={}}for(var a in t){var o=t[a];r[a]=Array.isArray(o)?o.map(u):u(o)}return r}(c.query,a.query,r&&r.options.parseQuery),A=a.hash||c.hash;return A&&"#"!==A.charAt(0)&&(A="#"+A),{_normalized:!0,path:f,query:p,hash:A}}var V,G=[String,Object],$=[String,Array],q=function(){},W={name:"RouterLink",props:{to:{type:G,required:!0},tag:{type:String,default:"a"},custom:Boolean,exact:Boolean,exactPath:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,ariaCurrentValue:{type:String,default:"page"},event:{type:$,default:"click"}},render:function(e){var t=this,n=this.$router,r=this.$route,a=n.resolve(this.to,r,this.append),o=a.location,s=a.route,l=a.href,c={},u=n.options.linkActiveClass,h=n.options.linkExactActiveClass,d=null==u?"router-link-active":u,A=null==h?"router-link-exact-active":h,g=null==this.activeClass?d:this.activeClass,m=null==this.exactActiveClass?A:this.exactActiveClass,y=s.redirectedFrom?p(null,z(s.redirectedFrom),null,n):s;c[m]=v(r,y,this.exactPath),c[g]=this.exact||this.exactPath?c[m]:function(e,t){return 0===e.path.replace(f,"/").indexOf(t.path.replace(f,"/"))&&(!t.hash||e.hash===t.hash)&&function(e,t){for(var n in t)if(!(n in e))return!1;return!0}(e.query,t.query)}(r,y);var b=c[m]?this.ariaCurrentValue:null,w=function(e){K(e)&&(t.replace?n.replace(o,q):n.push(o,q))},x={click:K};Array.isArray(this.event)?this.event.forEach(function(e){x[e]=w}):x[this.event]=w;var _={class:c},C=!this.$scopedSlots.$hasNormal&&this.$scopedSlots.default&&this.$scopedSlots.default({href:l,route:s,navigate:w,isActive:c[g],isExactActive:c[m]});if(C){if(1===C.length)return C[0];if(C.length>1||!C.length)return 0===C.length?e():e("span",{},C)}if("a"===this.tag)_.on=x,_.attrs={href:l,"aria-current":b};else{var S=function e(t){if(t)for(var n,r=0;r<t.length;r++){if("a"===(n=t[r]).tag)return n;if(n.children&&(n=e(n.children)))return n}}(this.$slots.default);if(S){S.isStatic=!1;var k=S.data=i({},S.data);for(var B in k.on=k.on||{},k.on){var E=k.on[B];B in x&&(k.on[B]=Array.isArray(E)?E:[E])}for(var T in x)T in k.on?k.on[T].push(x[T]):k.on[T]=w;var I=S.data.attrs=i({},S.data.attrs);I.href=l,I["aria-current"]=b}else _.on=x}return e(this.tag,_,this.$slots.default)}};function K(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey||e.defaultPrevented||void 0!==e.button&&0!==e.button)){if(e.currentTarget&&e.currentTarget.getAttribute){var t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Y(e){if(!Y.installed||V!==e){Y.installed=!0,V=e;var t=function(e){return void 0!==e},n=function(e,n){var r=e.$options._parentVnode;t(r)&&t(r=r.data)&&t(r=r.registerRouteInstance)&&r(e,n)};e.mixin({beforeCreate:function(){t(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),e.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,n(this,this)},destroyed:function(){n(this)}}),Object.defineProperty(e.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(e.prototype,"$route",{get:function(){return this._routerRoot._route}}),e.component("RouterView",w),e.component("RouterLink",W);var r=e.config.optionMergeStrategies;r.beforeRouteEnter=r.beforeRouteLeave=r.beforeRouteUpdate=r.created}}var X="undefined"!=typeof window;function J(e,t,n,r,i){var a=t||[],o=n||Object.create(null),s=r||Object.create(null);e.forEach(function(e){!function e(t,n,r,i,a,o){var s=i.path;var l=i.name;0;var c=i.pathToRegexpOptions||{};var u=function(e,t,n){n||(e=e.replace(/\/$/,""));if("/"===e[0])return e;if(null==t)return e;return C(t.path+"/"+e)}(s,a,c.strict);"boolean"==typeof i.caseSensitive&&(c.sensitive=i.caseSensitive);var h={path:u,regex:function(e,t){var n=k(e,[],t);return n}(u,c),components:i.components||{default:i.component},alias:i.alias?"string"==typeof i.alias?[i.alias]:i.alias:[],instances:{},enteredCbs:{},name:l,parent:a,matchAs:o,redirect:i.redirect,beforeEnter:i.beforeEnter,meta:i.meta||{},props:null==i.props?{}:i.components?i.props:{default:i.props}};i.children&&i.children.forEach(function(i){var a=o?C(o+"/"+i.path):void 0;e(t,n,r,i,h,a)});n[h.path]||(t.push(h.path),n[h.path]=h);if(void 0!==i.alias)for(var d=Array.isArray(i.alias)?i.alias:[i.alias],f=0;f<d.length;++f){var p=d[f];0;var A={path:p,children:i.children};e(t,n,r,A,a,h.path||"/")}l&&(r[l]||(r[l]=h))}(a,o,s,e,i)});for(var l=0,c=a.length;l<c;l++)"*"===a[l]&&(a.push(a.splice(l,1)[0]),c--,l--);return{pathList:a,pathMap:o,nameMap:s}}function Z(e,t){var n=J(e),r=n.pathList,i=n.pathMap,a=n.nameMap;function o(e,n,o){var s=z(e,n,!1,t),c=s.name;if(c){var u=a[c];if(!u)return l(null,s);var h=u.regex.keys.filter(function(e){return!e.optional}).map(function(e){return e.name});if("object"!=typeof s.params&&(s.params={}),n&&"object"==typeof n.params)for(var d in n.params)!(d in s.params)&&h.indexOf(d)>-1&&(s.params[d]=n.params[d]);return s.path=Q(u.path,s.params),l(u,s,o)}if(s.path){s.params={};for(var f=0;f<r.length;f++){var p=r[f],A=i[p];if(ee(A.regex,s.path,s.params))return l(A,s,o)}}return l(null,s)}function s(e,n){var r=e.redirect,i="function"==typeof r?r(p(e,n,null,t)):r;if("string"==typeof i&&(i={path:i}),!i||"object"!=typeof i)return l(null,n);var s=i,c=s.name,u=s.path,h=n.query,d=n.hash,f=n.params;if(h=s.hasOwnProperty("query")?s.query:h,d=s.hasOwnProperty("hash")?s.hash:d,f=s.hasOwnProperty("params")?s.params:f,c){a[c];return o({_normalized:!0,name:c,query:h,hash:d,params:f},void 0,n)}if(u){var A=function(e,t){return _(e,t.parent?t.parent.path:"/",!0)}(u,e);return o({_normalized:!0,path:Q(A,f),query:h,hash:d},void 0,n)}return l(null,n)}function l(e,n,r){return e&&e.redirect?s(e,r||n):e&&e.matchAs?function(e,t,n){var r=o({_normalized:!0,path:Q(n,t.params)});if(r){var i=r.matched,a=i[i.length-1];return t.params=r.params,l(a,t)}return l(null,t)}(0,n,e.matchAs):p(e,n,r,t)}return{match:o,addRoute:function(e,t){var n="object"!=typeof e?a[e]:void 0;J([t||e],r,i,a,n),n&&J(n.alias.map(function(e){return{path:e,children:[t]}}),r,i,a,n)},getRoutes:function(){return r.map(function(e){return i[e]})},addRoutes:function(e){J(e,r,i,a)}}}function ee(e,t,n){var r=t.match(e);if(!r)return!1;if(!n)return!0;for(var i=1,a=r.length;i<a;++i){var o=e.keys[i-1];o&&(n[o.name||"pathMatch"]="string"==typeof r[i]?c(r[i]):r[i])}return!0}var te=X&&window.performance&&window.performance.now?window.performance:Date;function ne(){return te.now().toFixed(3)}var re=ne();function ie(){return re}function ae(e){return re=e}var oe=Object.create(null);function se(){"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual");var e=window.location.protocol+"//"+window.location.host,t=window.location.href.replace(e,""),n=i({},window.history.state);return n.key=ie(),window.history.replaceState(n,"",t),window.addEventListener("popstate",ue),function(){window.removeEventListener("popstate",ue)}}function le(e,t,n,r){if(e.app){var i=e.options.scrollBehavior;i&&e.app.$nextTick(function(){var a=function(){var e=ie();if(e)return oe[e]}(),o=i.call(e,t,n,r?a:null);o&&("function"==typeof o.then?o.then(function(e){Ae(e,a)}).catch(function(e){0}):Ae(o,a))})}}function ce(){var e=ie();e&&(oe[e]={x:window.pageXOffset,y:window.pageYOffset})}function ue(e){ce(),e.state&&e.state.key&&ae(e.state.key)}function he(e){return fe(e.x)||fe(e.y)}function de(e){return{x:fe(e.x)?e.x:window.pageXOffset,y:fe(e.y)?e.y:window.pageYOffset}}function fe(e){return"number"==typeof e}var pe=/^#\d/;function Ae(e,t){var n,r="object"==typeof e;if(r&&"string"==typeof e.selector){var i=pe.test(e.selector)?document.getElementById(e.selector.slice(1)):document.querySelector(e.selector);if(i){var a=e.offset&&"object"==typeof e.offset?e.offset:{};t=function(e,t){var n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{x:r.left-n.left-t.x,y:r.top-n.top-t.y}}(i,a={x:fe((n=a).x)?n.x:0,y:fe(n.y)?n.y:0})}else he(e)&&(t=de(e))}else r&&he(e)&&(t=de(e));t&&("scrollBehavior"in document.documentElement.style?window.scrollTo({left:t.x,top:t.y,behavior:e.behavior}):window.scrollTo(t.x,t.y))}var ge,me=X&&((-1===(ge=window.navigator.userAgent).indexOf("Android 2.")&&-1===ge.indexOf("Android 4.0")||-1===ge.indexOf("Mobile Safari")||-1!==ge.indexOf("Chrome")||-1!==ge.indexOf("Windows Phone"))&&window.history&&"function"==typeof window.history.pushState);function ve(e,t){ce();var n=window.history;try{if(t){var r=i({},n.state);r.key=ie(),n.replaceState(r,"",e)}else n.pushState({key:ae(ne())},"",e)}catch(n){window.location[t?"replace":"assign"](e)}}function ye(e){ve(e,!0)}function be(e,t,n){var r=function(i){i>=e.length?n():e[i]?t(e[i],function(){r(i+1)}):r(i+1)};r(0)}var we={redirected:2,aborted:4,cancelled:8,duplicated:16};function xe(e,t){return Ce(e,t,we.redirected,'Redirected when going from "'+e.fullPath+'" to "'+function(e){if("string"==typeof e)return e;if("path"in e)return e.path;var t={};return Se.forEach(function(n){n in e&&(t[n]=e[n])}),JSON.stringify(t,null,2)}(t)+'" via a navigation guard.')}function _e(e,t){return Ce(e,t,we.cancelled,'Navigation cancelled from "'+e.fullPath+'" to "'+t.fullPath+'" with a new navigation.')}function Ce(e,t,n,r){var i=new Error(r);return i._isRouter=!0,i.from=e,i.to=t,i.type=n,i}var Se=["params","query","hash"];function ke(e){return Object.prototype.toString.call(e).indexOf("Error")>-1}function Be(e,t){return ke(e)&&e._isRouter&&(null==t||e.type===t)}function Ee(e){return function(t,n,r){var i=!1,a=0,o=null;Te(e,function(e,t,n,s){if("function"==typeof e&&void 0===e.cid){i=!0,a++;var l,c=Fe(function(t){var i;((i=t).__esModule||Me&&"Module"===i[Symbol.toStringTag])&&(t=t.default),e.resolved="function"==typeof t?t:V.extend(t),n.components[s]=t,--a<=0&&r()}),u=Fe(function(e){var t="Failed to resolve async component "+s+": "+e;o||(o=ke(e)?e:new Error(t),r(o))});try{l=e(c,u)}catch(e){u(e)}if(l)if("function"==typeof l.then)l.then(c,u);else{var h=l.component;h&&"function"==typeof h.then&&h.then(c,u)}}}),i||r()}}function Te(e,t){return Ie(e.map(function(e){return Object.keys(e.components).map(function(n){return t(e.components[n],e.instances[n],e,n)})}))}function Ie(e){return Array.prototype.concat.apply([],e)}var Me="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;function Fe(e){var t=!1;return function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];if(!t)return t=!0,e.apply(this,n)}}var De=function(e,t){this.router=e,this.base=function(e){if(!e)if(X){var t=document.querySelector("base");e=(e=t&&t.getAttribute("href")||"/").replace(/^https?:\/\/[^\/]+/,"")}else e="/";"/"!==e.charAt(0)&&(e="/"+e);return e.replace(/\/$/,"")}(t),this.current=g,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[],this.listeners=[]};function Pe(e,t,n,r){var i=Te(e,function(e,r,i,a){var o=function(e,t){"function"!=typeof e&&(e=V.extend(e));return e.options[t]}(e,t);if(o)return Array.isArray(o)?o.map(function(e){return n(e,r,i,a)}):n(o,r,i,a)});return Ie(r?i.reverse():i)}function Oe(e,t){if(t)return function(){return e.apply(t,arguments)}}De.prototype.listen=function(e){this.cb=e},De.prototype.onReady=function(e,t){this.ready?e():(this.readyCbs.push(e),t&&this.readyErrorCbs.push(t))},De.prototype.onError=function(e){this.errorCbs.push(e)},De.prototype.transitionTo=function(e,t,n){var r,i=this;try{r=this.router.match(e,this.current)}catch(e){throw this.errorCbs.forEach(function(t){t(e)}),e}var a=this.current;this.confirmTransition(r,function(){i.updateRoute(r),t&&t(r),i.ensureURL(),i.router.afterHooks.forEach(function(e){e&&e(r,a)}),i.ready||(i.ready=!0,i.readyCbs.forEach(function(e){e(r)}))},function(e){n&&n(e),e&&!i.ready&&(Be(e,we.redirected)&&a===g||(i.ready=!0,i.readyErrorCbs.forEach(function(t){t(e)})))})},De.prototype.confirmTransition=function(e,t,n){var i=this,a=this.current;this.pending=e;var o,s,l=function(e){!Be(e)&&ke(e)&&(i.errorCbs.length?i.errorCbs.forEach(function(t){t(e)}):(r(),console.error(e))),n&&n(e)},c=e.matched.length-1,u=a.matched.length-1;if(v(e,a)&&c===u&&e.matched[c]===a.matched[u])return this.ensureURL(),l(((s=Ce(o=a,e,we.duplicated,'Avoided redundant navigation to current location: "'+o.fullPath+'".')).name="NavigationDuplicated",s));var h=function(e,t){var n,r=Math.max(e.length,t.length);for(n=0;n<r&&e[n]===t[n];n++);return{updated:t.slice(0,n),activated:t.slice(n),deactivated:e.slice(n)}}(this.current.matched,e.matched),d=h.updated,f=h.deactivated,p=h.activated,A=function(t,n){if(i.pending!==e)return l(_e(a,e));try{t(e,a,function(t){!1===t?(i.ensureURL(!0),l(function(e,t){return Ce(e,t,we.aborted,'Navigation aborted from "'+e.fullPath+'" to "'+t.fullPath+'" via a navigation guard.')}(a,e))):ke(t)?(i.ensureURL(!0),l(t)):"string"==typeof t||"object"==typeof t&&("string"==typeof t.path||"string"==typeof t.name)?(l(xe(a,e)),"object"==typeof t&&t.replace?i.replace(t):i.push(t)):n(t)})}catch(e){l(e)}};be([].concat(function(e){return Pe(e,"beforeRouteLeave",Oe,!0)}(f),this.router.beforeHooks,function(e){return Pe(e,"beforeRouteUpdate",Oe)}(d),p.map(function(e){return e.beforeEnter}),Ee(p)),A,function(){be(function(e){return Pe(e,"beforeRouteEnter",function(e,t,n,r){return function(e,t,n){return function(r,i,a){return e(r,i,function(e){"function"==typeof e&&(t.enteredCbs[n]||(t.enteredCbs[n]=[]),t.enteredCbs[n].push(e)),a(e)})}}(e,n,r)})}(p).concat(i.router.resolveHooks),A,function(){if(i.pending!==e)return l(_e(a,e));i.pending=null,t(e),i.router.app&&i.router.app.$nextTick(function(){b(e)})})})},De.prototype.updateRoute=function(e){this.current=e,this.cb&&this.cb(e)},De.prototype.setupListeners=function(){},De.prototype.teardown=function(){this.listeners.forEach(function(e){e()}),this.listeners=[],this.current=g,this.pending=null};var Le=function(e){function t(t,n){e.call(this,t,n),this._startLocation=Re(this.base)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.setupListeners=function(){var e=this;if(!(this.listeners.length>0)){var t=this.router,n=t.options.scrollBehavior,r=me&&n;r&&this.listeners.push(se());var i=function(){var n=e.current,i=Re(e.base);e.current===g&&i===e._startLocation||e.transitionTo(i,function(e){r&&le(t,e,n,!0)})};window.addEventListener("popstate",i),this.listeners.push(function(){window.removeEventListener("popstate",i)})}},t.prototype.go=function(e){window.history.go(e)},t.prototype.push=function(e,t,n){var r=this,i=this.current;this.transitionTo(e,function(e){ve(C(r.base+e.fullPath)),le(r.router,e,i,!1),t&&t(e)},n)},t.prototype.replace=function(e,t,n){var r=this,i=this.current;this.transitionTo(e,function(e){ye(C(r.base+e.fullPath)),le(r.router,e,i,!1),t&&t(e)},n)},t.prototype.ensureURL=function(e){if(Re(this.base)!==this.current.fullPath){var t=C(this.base+this.current.fullPath);e?ve(t):ye(t)}},t.prototype.getCurrentLocation=function(){return Re(this.base)},t}(De);function Re(e){var t=window.location.pathname;return e&&0===t.toLowerCase().indexOf(e.toLowerCase())&&(t=t.slice(e.length)),(t||"/")+window.location.search+window.location.hash}var Ne=function(e){function t(t,n,r){e.call(this,t,n),r&&function(e){var t=Re(e);if(!/^\/#/.test(t))return window.location.replace(C(e+"/#"+t)),!0}(this.base)||Ue()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.setupListeners=function(){var e=this;if(!(this.listeners.length>0)){var t=this.router.options.scrollBehavior,n=me&&t;n&&this.listeners.push(se());var r=function(){var t=e.current;Ue()&&e.transitionTo(He(),function(r){n&&le(e.router,r,t,!0),me||ze(r.fullPath)})},i=me?"popstate":"hashchange";window.addEventListener(i,r),this.listeners.push(function(){window.removeEventListener(i,r)})}},t.prototype.push=function(e,t,n){var r=this,i=this.current;this.transitionTo(e,function(e){Qe(e.fullPath),le(r.router,e,i,!1),t&&t(e)},n)},t.prototype.replace=function(e,t,n){var r=this,i=this.current;this.transitionTo(e,function(e){ze(e.fullPath),le(r.router,e,i,!1),t&&t(e)},n)},t.prototype.go=function(e){window.history.go(e)},t.prototype.ensureURL=function(e){var t=this.current.fullPath;He()!==t&&(e?Qe(t):ze(t))},t.prototype.getCurrentLocation=function(){return He()},t}(De);function Ue(){var e=He();return"/"===e.charAt(0)||(ze("/"+e),!1)}function He(){var e=window.location.href,t=e.indexOf("#");return t<0?"":e=e.slice(t+1)}function je(e){var t=window.location.href,n=t.indexOf("#");return(n>=0?t.slice(0,n):t)+"#"+e}function Qe(e){me?ve(je(e)):window.location.hash=e}function ze(e){me?ye(je(e)):window.location.replace(je(e))}var Ve=function(e){function t(t,n){e.call(this,t,n),this.stack=[],this.index=-1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.push=function(e,t,n){var r=this;this.transitionTo(e,function(e){r.stack=r.stack.slice(0,r.index+1).concat(e),r.index++,t&&t(e)},n)},t.prototype.replace=function(e,t,n){var r=this;this.transitionTo(e,function(e){r.stack=r.stack.slice(0,r.index).concat(e),t&&t(e)},n)},t.prototype.go=function(e){var t=this,n=this.index+e;if(!(n<0||n>=this.stack.length)){var r=this.stack[n];this.confirmTransition(r,function(){var e=t.current;t.index=n,t.updateRoute(r),t.router.afterHooks.forEach(function(t){t&&t(r,e)})},function(e){Be(e,we.duplicated)&&(t.index=n)})}},t.prototype.getCurrentLocation=function(){var e=this.stack[this.stack.length-1];return e?e.fullPath:"/"},t.prototype.ensureURL=function(){},t}(De),Ge=function(e){void 0===e&&(e={}),this.app=null,this.apps=[],this.options=e,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=Z(e.routes||[],this);var t=e.mode||"hash";switch(this.fallback="history"===t&&!me&&!1!==e.fallback,this.fallback&&(t="hash"),X||(t="abstract"),this.mode=t,t){case"history":this.history=new Le(this,e.base);break;case"hash":this.history=new Ne(this,e.base,this.fallback);break;case"abstract":this.history=new Ve(this,e.base);break;default:0}},$e={currentRoute:{configurable:!0}};function qe(e,t){return e.push(t),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}Ge.prototype.match=function(e,t,n){return this.matcher.match(e,t,n)},$e.currentRoute.get=function(){return this.history&&this.history.current},Ge.prototype.init=function(e){var t=this;if(this.apps.push(e),e.$once("hook:destroyed",function(){var n=t.apps.indexOf(e);n>-1&&t.apps.splice(n,1),t.app===e&&(t.app=t.apps[0]||null),t.app||t.history.teardown()}),!this.app){this.app=e;var n=this.history;if(n instanceof Le||n instanceof Ne){var r=function(e){n.setupListeners(),function(e){var r=n.current,i=t.options.scrollBehavior;me&&i&&"fullPath"in e&&le(t,e,r,!1)}(e)};n.transitionTo(n.getCurrentLocation(),r,r)}n.listen(function(e){t.apps.forEach(function(t){t._route=e})})}},Ge.prototype.beforeEach=function(e){return qe(this.beforeHooks,e)},Ge.prototype.beforeResolve=function(e){return qe(this.resolveHooks,e)},Ge.prototype.afterEach=function(e){return qe(this.afterHooks,e)},Ge.prototype.onReady=function(e,t){this.history.onReady(e,t)},Ge.prototype.onError=function(e){this.history.onError(e)},Ge.prototype.push=function(e,t,n){var r=this;if(!t&&!n&&"undefined"!=typeof Promise)return new Promise(function(t,n){r.history.push(e,t,n)});this.history.push(e,t,n)},Ge.prototype.replace=function(e,t,n){var r=this;if(!t&&!n&&"undefined"!=typeof Promise)return new Promise(function(t,n){r.history.replace(e,t,n)});this.history.replace(e,t,n)},Ge.prototype.go=function(e){this.history.go(e)},Ge.prototype.back=function(){this.go(-1)},Ge.prototype.forward=function(){this.go(1)},Ge.prototype.getMatchedComponents=function(e){var t=e?e.matched?e:this.resolve(e).route:this.currentRoute;return t?[].concat.apply([],t.matched.map(function(e){return Object.keys(e.components).map(function(t){return e.components[t]})})):[]},Ge.prototype.resolve=function(e,t,n){var r=z(e,t=t||this.history.current,n,this),i=this.match(r,t),a=i.redirectedFrom||i.fullPath;return{location:r,route:i,href:function(e,t,n){var r="hash"===n?"#"+t:t;return e?C(e+"/"+r):r}(this.history.base,a,this.mode),normalizedTo:r,resolved:i}},Ge.prototype.getRoutes=function(){return this.matcher.getRoutes()},Ge.prototype.addRoute=function(e,t){this.matcher.addRoute(e,t),this.history.current!==g&&this.history.transitionTo(this.history.getCurrentLocation())},Ge.prototype.addRoutes=function(e){this.matcher.addRoutes(e),this.history.current!==g&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(Ge.prototype,$e),Ge.install=Y,Ge.version="3.5.1",Ge.isNavigationFailure=Be,Ge.NavigationFailureType=we,Ge.START_LOCATION=g,X&&window.Vue&&window.Vue.use(Ge),t.a=Ge},"02w1":function(e,t,n){"use strict";t.__esModule=!0,t.removeResizeListener=t.addResizeListener=void 0;var r,i=n("z+gd"),a=(r=i)&&r.__esModule?r:{default:r};var o="undefined"==typeof window,s=function(e){var t=e,n=Array.isArray(t),r=0;for(t=n?t:t[Symbol.iterator]();;){var i;if(n){if(r>=t.length)break;i=t[r++]}else{if((r=t.next()).done)break;i=r.value}var a=i.target.__resizeListeners__||[];a.length&&a.forEach(function(e){e()})}};t.addResizeListener=function(e,t){o||(e.__resizeListeners__||(e.__resizeListeners__=[],e.__ro__=new a.default(s),e.__ro__.observe(e)),e.__resizeListeners__.push(t))},t.removeResizeListener=function(e,t){e&&e.__resizeListeners__&&(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),e.__resizeListeners__.length||e.__ro__.disconnect())}},"06OY":function(e,t,n){var r=n("3Eo+")("meta"),i=n("EqjI"),a=n("D2L2"),o=n("evD5").f,s=0,l=Object.isExtensible||function(){return!0},c=!n("S82l")(function(){return l(Object.preventExtensions({}))}),u=function(e){o(e,r,{value:{i:"O"+ ++s,w:{}}})},h=e.exports={KEY:r,NEED:!1,fastKey:function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!a(e,r)){if(!l(e))return"F";if(!t)return"E";u(e)}return e[r].i},getWeak:function(e,t){if(!a(e,r)){if(!l(e))return!0;if(!t)return!1;u(e)}return e[r].w},onFreeze:function(e){return c&&h.NEED&&l(e)&&!a(e,r)&&u(e),e}}},"0kY3":function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=114)}({0:function(e,t,n){"use strict";function r(e,t,n,r,i,a,o,s){var l,c="function"==typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),a&&(c._scopeId="data-v-"+a),o?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},c._ssrRegister=l):i&&(l=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,l):[l]}return{exports:e,options:c}}n.d(t,"a",function(){return r})},10:function(e,t){e.exports=n("HJMx")},114:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:["el-input-number",e.inputNumberSize?"el-input-number--"+e.inputNumberSize:"",{"is-disabled":e.inputNumberDisabled},{"is-without-controls":!e.controls},{"is-controls-right":e.controlsAtRight}],on:{dragstart:function(e){e.preventDefault()}}},[e.controls?n("span",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:e.decrease,expression:"decrease"}],staticClass:"el-input-number__decrease",class:{"is-disabled":e.minDisabled},attrs:{role:"button"},on:{keydown:function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?e.decrease(t):null}}},[n("i",{class:"el-icon-"+(e.controlsAtRight?"arrow-down":"minus")})]):e._e(),e.controls?n("span",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:e.increase,expression:"increase"}],staticClass:"el-input-number__increase",class:{"is-disabled":e.maxDisabled},attrs:{role:"button"},on:{keydown:function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?e.increase(t):null}}},[n("i",{class:"el-icon-"+(e.controlsAtRight?"arrow-up":"plus")})]):e._e(),n("el-input",{ref:"input",attrs:{value:e.displayValue,placeholder:e.placeholder,disabled:e.inputNumberDisabled,size:e.inputNumberSize,max:e.max,min:e.min,name:e.name,label:e.label},on:{blur:e.handleBlur,focus:e.handleFocus,input:e.handleInput,change:e.handleInputChange},nativeOn:{keydown:[function(t){return"button"in t||!e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"])?(t.preventDefault(),e.increase(t)):null},function(t){return"button"in t||!e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?(t.preventDefault(),e.decrease(t)):null}]}})],1)};r._withStripped=!0;var i=n(10),a=n.n(i),o=n(22),s=n.n(o),l=n(30),c={name:"ElInputNumber",mixins:[s()("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(e){return e>=0&&e===parseInt(e,10)}}},data:function(){return{currentValue:0,userInput:null}},watch:{value:{immediate:!0,handler:function(e){var t=void 0===e?e:Number(e);if(void 0!==t){if(isNaN(t))return;if(this.stepStrictly){var n=this.getPrecision(this.step),r=Math.pow(10,n);t=Math.round(t/this.step)*r*this.step/r}void 0!==this.precision&&(t=this.toPrecision(t,this.precision))}t>=this.max&&(t=this.max),t<=this.min&&(t=this.min),this.currentValue=t,this.userInput=null,this.$emit("input",t)}}},computed:{minDisabled:function(){return this._decrease(this.value,this.step)<this.min},maxDisabled:function(){return this._increase(this.value,this.step)>this.max},numPrecision:function(){var e=this.value,t=this.step,n=this.getPrecision,r=this.precision,i=n(t);return void 0!==r?(i>r&&console.warn("[Element Warn][InputNumber]precision should not be less than the decimal places of step"),r):Math.max(n(e),i)},controlsAtRight:function(){return this.controls&&"right"===this.controlsPosition},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},inputNumberSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},inputNumberDisabled:function(){return this.disabled||!!(this.elForm||{}).disabled},displayValue:function(){if(null!==this.userInput)return this.userInput;var e=this.currentValue;if("number"==typeof e){if(this.stepStrictly){var t=this.getPrecision(this.step),n=Math.pow(10,t);e=Math.round(e/this.step)*n*this.step/n}void 0!==this.precision&&(e=e.toFixed(this.precision))}return e}},methods:{toPrecision:function(e,t){return void 0===t&&(t=this.numPrecision),parseFloat(Math.round(e*Math.pow(10,t))/Math.pow(10,t))},getPrecision:function(e){if(void 0===e)return 0;var t=e.toString(),n=t.indexOf("."),r=0;return-1!==n&&(r=t.length-n-1),r},_increase:function(e,t){if("number"!=typeof e&&void 0!==e)return this.currentValue;var n=Math.pow(10,this.numPrecision);return this.toPrecision((n*e+n*t)/n)},_decrease:function(e,t){if("number"!=typeof e&&void 0!==e)return this.currentValue;var n=Math.pow(10,this.numPrecision);return this.toPrecision((n*e-n*t)/n)},increase:function(){if(!this.inputNumberDisabled&&!this.maxDisabled){var e=this.value||0,t=this._increase(e,this.step);this.setCurrentValue(t)}},decrease:function(){if(!this.inputNumberDisabled&&!this.minDisabled){var e=this.value||0,t=this._decrease(e,this.step);this.setCurrentValue(t)}},handleBlur:function(e){this.$emit("blur",e)},handleFocus:function(e){this.$emit("focus",e)},setCurrentValue:function(e){var t=this.currentValue;"number"==typeof e&&void 0!==this.precision&&(e=this.toPrecision(e,this.precision)),e>=this.max&&(e=this.max),e<=this.min&&(e=this.min),t!==e&&(this.userInput=null,this.$emit("input",e),this.$emit("change",e,t),this.currentValue=e)},handleInput:function(e){this.userInput=e},handleInputChange:function(e){var t=""===e?void 0:Number(e);isNaN(t)&&""!==e||this.setCurrentValue(t),this.userInput=null},select:function(){this.$refs.input.select()}},mounted:function(){var e=this.$refs.input.$refs.input;e.setAttribute("role","spinbutton"),e.setAttribute("aria-valuemax",this.max),e.setAttribute("aria-valuemin",this.min),e.setAttribute("aria-valuenow",this.currentValue),e.setAttribute("aria-disabled",this.inputNumberDisabled)},updated:function(){this.$refs&&this.$refs.input&&this.$refs.input.$refs.input.setAttribute("aria-valuenow",this.currentValue)}},u=n(0),h=Object(u.a)(c,r,[],!1,null,null,null);h.options.__file="packages/input-number/src/input-number.vue";var d=h.exports;d.install=function(e){e.component(d.name,d)};t.default=d},2:function(e,t){e.exports=n("2kvA")},22:function(e,t){e.exports=n("1oZe")},30:function(e,t,n){"use strict";var r=n(2);t.a={bind:function(e,t,n){var i=null,a=void 0,o=function(){return n.context[t.expression].apply()},s=function(){Date.now()-a<100&&o(),clearInterval(i),i=null};Object(r.on)(e,"mousedown",function(e){0===e.button&&(a=Date.now(),Object(r.once)(document,"mouseup",s),clearInterval(i),i=setInterval(o,100))})}}}})},"1Xk4":function(e,t,n){"use strict";var r=n("awF4"),i=n("Rl2i"),a=n("sD9O"),o=n("q+vg");function s(e,t,n){var r=e;return i(t)?(n=t,"string"==typeof e&&(r={uri:e})):r=o(t,{uri:e}),r.callback=n,r}function l(e,t,n){return c(t=s(e,t,n))}function c(e){if(void 0===e.callback)throw new Error("callback argument missing");var t=!1,n=function(n,r,i){t||(t=!0,e.callback(n,r,i))};function r(e){return clearTimeout(u),e instanceof Error||(e=new Error(""+(e||"Unknown XMLHttpRequest Error"))),e.statusCode=0,n(e,m)}function i(){if(!s){var t;clearTimeout(u),t=e.useXDR&&void 0===c.status?200:1223===c.status?204:c.status;var r=m,i=null;return 0!==t?(r={body:function(){var e=void 0;if(e=c.response?c.response:c.responseText||function(e){if("document"===e.responseType)return e.responseXML;var t=e.responseXML&&"parsererror"===e.responseXML.documentElement.nodeName;return""!==e.responseType||t?null:e.responseXML}(c),g)try{e=JSON.parse(e)}catch(e){}return e}(),statusCode:t,method:d,headers:{},url:h,rawRequest:c},c.getAllResponseHeaders&&(r.headers=a(c.getAllResponseHeaders()))):i=new Error("Internal XMLHttpRequest Error"),n(i,r,r.body)}}var o,s,c=e.xhr||null;c||(c=e.cors||e.useXDR?new l.XDomainRequest:new l.XMLHttpRequest);var u,h=c.url=e.uri||e.url,d=c.method=e.method||"GET",f=e.body||e.data,p=c.headers=e.headers||{},A=!!e.sync,g=!1,m={body:void 0,headers:{},statusCode:0,method:d,url:h,rawRequest:c};if("json"in e&&!1!==e.json&&(g=!0,p.accept||p.Accept||(p.Accept="application/json"),"GET"!==d&&"HEAD"!==d&&(p["content-type"]||p["Content-Type"]||(p["Content-Type"]="application/json"),f=JSON.stringify(!0===e.json?f:e.json))),c.onreadystatechange=function(){4===c.readyState&&setTimeout(i,0)},c.onload=i,c.onerror=r,c.onprogress=function(){},c.onabort=function(){s=!0},c.ontimeout=r,c.open(d,h,!A,e.username,e.password),A||(c.withCredentials=!!e.withCredentials),!A&&e.timeout>0&&(u=setTimeout(function(){if(!s){s=!0,c.abort("timeout");var e=new Error("XMLHttpRequest timeout");e.code="ETIMEDOUT",r(e)}},e.timeout)),c.setRequestHeader)for(o in p)p.hasOwnProperty(o)&&c.setRequestHeader(o,p[o]);else if(e.headers&&!function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}(e.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in e&&(c.responseType=e.responseType),"beforeSend"in e&&"function"==typeof e.beforeSend&&e.beforeSend(c),c.send(f||null),c}e.exports=l,l.XMLHttpRequest=r.XMLHttpRequest||function(){},l.XDomainRequest="withCredentials"in new l.XMLHttpRequest?l.XMLHttpRequest:r.XDomainRequest,function(e,t){for(var n=0;n<e.length;n++)t(e[n])}(["get","put","post","patch","head","delete"],function(e){l["delete"===e?"del":e]=function(t,n,r){return(n=s(t,n,r)).method=e.toUpperCase(),c(n)}})},"1kS7":function(e,t){t.f=Object.getOwnPropertySymbols},"1oZe":function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){return{methods:{focus:function(){this.$refs[e].focus()}}}}},"21It":function(e,t,n){"use strict";var r=n("FtD3");e.exports=function(e,t,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},"2KxR":function(e,t){e.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e}},"2kvA":function(e,t,n){"use strict";t.__esModule=!0,t.isInContainer=t.getScrollContainer=t.isScroll=t.getStyle=t.once=t.off=t.on=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.hasClass=p,t.addClass=function(e,t){if(!e)return;for(var n=e.className,r=(t||"").split(" "),i=0,a=r.length;i<a;i++){var o=r[i];o&&(e.classList?e.classList.add(o):p(e,o)||(n+=" "+o))}e.classList||(e.className=n)},t.removeClass=function(e,t){if(!e||!t)return;for(var n=t.split(" "),r=" "+e.className+" ",i=0,a=n.length;i<a;i++){var o=n[i];o&&(e.classList?e.classList.remove(o):p(e,o)&&(r=r.replace(" "+o+" "," ")))}e.classList||(e.className=u(r))},t.setStyle=function e(t,n,i){if(!t||!n)return;if("object"===(void 0===n?"undefined":r(n)))for(var a in n)n.hasOwnProperty(a)&&e(t,a,n[a]);else"opacity"===(n=h(n))&&c<9?t.style.filter=isNaN(i)?"":"alpha(opacity="+100*i+")":t.style[n]=i};var i,a=n("7+uW");var o=((i=a)&&i.__esModule?i:{default:i}).default.prototype.$isServer,s=/([\:\-\_]+(.))/g,l=/^moz([A-Z])/,c=o?0:Number(document.documentMode),u=function(e){return(e||"").replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g,"")},h=function(e){return e.replace(s,function(e,t,n,r){return r?n.toUpperCase():n}).replace(l,"Moz$1")},d=t.on=!o&&document.addEventListener?function(e,t,n){e&&t&&n&&e.addEventListener(t,n,!1)}:function(e,t,n){e&&t&&n&&e.attachEvent("on"+t,n)},f=t.off=!o&&document.removeEventListener?function(e,t,n){e&&t&&e.removeEventListener(t,n,!1)}:function(e,t,n){e&&t&&e.detachEvent("on"+t,n)};t.once=function(e,t,n){d(e,t,function r(){n&&n.apply(this,arguments),f(e,t,r)})};function p(e,t){if(!e||!t)return!1;if(-1!==t.indexOf(" "))throw new Error("className should not contain space.");return e.classList?e.classList.contains(t):(" "+e.className+" ").indexOf(" "+t+" ")>-1}var A=t.getStyle=c<9?function(e,t){if(!o){if(!e||!t)return null;"float"===(t=h(t))&&(t="styleFloat");try{switch(t){case"opacity":try{return e.filters.item("alpha").opacity/100}catch(e){return 1}default:return e.style[t]||e.currentStyle?e.currentStyle[t]:null}}catch(n){return e.style[t]}}}:function(e,t){if(!o){if(!e||!t)return null;"float"===(t=h(t))&&(t="cssFloat");try{var n=document.defaultView.getComputedStyle(e,"");return e.style[t]||n?n[t]:null}catch(n){return e.style[t]}}};var g=t.isScroll=function(e,t){if(!o)return A(e,null!==t||void 0!==t?t?"overflow-y":"overflow-x":"overflow").match(/(scroll|auto)/)};t.getScrollContainer=function(e,t){if(!o){for(var n=e;n;){if([window,document,document.documentElement].includes(n))return window;if(g(n,t))return n;n=n.parentNode}return n}},t.isInContainer=function(e,t){if(o||!e||!t)return!1;var n=e.getBoundingClientRect(),r=void 0;return r=[window,document,document.documentElement,null,void 0].includes(t)?{top:0,right:window.innerWidth,bottom:window.innerHeight,left:0}:t.getBoundingClientRect(),n.top<r.bottom&&n.bottom>r.top&&n.right>r.left&&n.left<r.right}},"3Eo+":function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},"3fo+":function(e,t,n){e.exports=n("YAhB")},"3fs2":function(e,t,n){var r=n("RY/4"),i=n("dSzd")("iterator"),a=n("/bQp");e.exports=n("FeBl").getIteratorMethod=function(e){if(void 0!=e)return e[i]||e["@@iterator"]||a[r(e)]}},"4mcu":function(e,t){e.exports=function(){}},"52gC":function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},"5PlU":function(e,t,n){var r=n("RY/4"),i=n("dSzd")("iterator"),a=n("/bQp");e.exports=n("FeBl").isIterable=function(e){var t=Object(e);return void 0!==t[i]||"@@iterator"in t||a.hasOwnProperty(r(t))}},"5QVw":function(e,t,n){e.exports={default:n("BwfY"),__esModule:!0}},"5VQ+":function(e,t,n){"use strict";var r=n("cGG2");e.exports=function(e,t){r.forEach(e,function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])})}},"6Twh":function(e,t,n){"use strict";t.__esModule=!0,t.default=function(){if(a.default.prototype.$isServer)return 0;if(void 0!==o)return o;var e=document.createElement("div");e.className="el-scrollbar__wrap",e.style.visibility="hidden",e.style.width="100px",e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e);var t=e.offsetWidth;e.style.overflow="scroll";var n=document.createElement("div");n.style.width="100%",e.appendChild(n);var r=n.offsetWidth;return e.parentNode.removeChild(e),o=t-r};var r,i=n("7+uW"),a=(r=i)&&r.__esModule?r:{default:r};var o=void 0},"7+uW":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){
  7. /*!
  8. * Vue.js v2.6.12
  9. * (c) 2014-2020 Evan You
  10. * Released under the MIT License.
  11. */
  12. var n=Object.freeze({});function r(e){return void 0===e||null===e}function i(e){return void 0!==e&&null!==e}function a(e){return!0===e}function o(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e||"boolean"==typeof e}function s(e){return null!==e&&"object"==typeof e}var l=Object.prototype.toString;function c(e){return"[object Object]"===l.call(e)}function u(e){return"[object RegExp]"===l.call(e)}function h(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function d(e){return i(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function f(e){return null==e?"":Array.isArray(e)||c(e)&&e.toString===l?JSON.stringify(e,null,2):String(e)}function p(e){var t=parseFloat(e);return isNaN(t)?e:t}function A(e,t){for(var n=Object.create(null),r=e.split(","),i=0;i<r.length;i++)n[r[i]]=!0;return t?function(e){return n[e.toLowerCase()]}:function(e){return n[e]}}var g=A("slot,component",!0),m=A("key,ref,slot,slot-scope,is");function v(e,t){if(e.length){var n=e.indexOf(t);if(n>-1)return e.splice(n,1)}}var y=Object.prototype.hasOwnProperty;function b(e,t){return y.call(e,t)}function w(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}var x=/-(\w)/g,_=w(function(e){return e.replace(x,function(e,t){return t?t.toUpperCase():""})}),C=w(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}),S=/\B([A-Z])/g,k=w(function(e){return e.replace(S,"-$1").toLowerCase()});var B=Function.prototype.bind?function(e,t){return e.bind(t)}:function(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n};function E(e,t){t=t||0;for(var n=e.length-t,r=new Array(n);n--;)r[n]=e[n+t];return r}function T(e,t){for(var n in t)e[n]=t[n];return e}function I(e){for(var t={},n=0;n<e.length;n++)e[n]&&T(t,e[n]);return t}function M(e,t,n){}var F=function(e,t,n){return!1},D=function(e){return e};function P(e,t){if(e===t)return!0;var n=s(e),r=s(t);if(!n||!r)return!n&&!r&&String(e)===String(t);try{var i=Array.isArray(e),a=Array.isArray(t);if(i&&a)return e.length===t.length&&e.every(function(e,n){return P(e,t[n])});if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(i||a)return!1;var o=Object.keys(e),l=Object.keys(t);return o.length===l.length&&o.every(function(n){return P(e[n],t[n])})}catch(e){return!1}}function O(e,t){for(var n=0;n<e.length;n++)if(P(e[n],t))return n;return-1}function L(e){var t=!1;return function(){t||(t=!0,e.apply(this,arguments))}}var R="data-server-rendered",N=["component","directive","filter"],U=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"],H={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:F,isReservedAttr:F,isUnknownElement:F,getTagNamespace:M,parsePlatformTagName:D,mustUseProp:F,async:!0,_lifecycleHooks:U},j=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;function Q(e){var t=(e+"").charCodeAt(0);return 36===t||95===t}function z(e,t,n,r){Object.defineProperty(e,t,{value:n,enumerable:!!r,writable:!0,configurable:!0})}var V=new RegExp("[^"+j.source+".$_\\d]");var G,$="__proto__"in{},q="undefined"!=typeof window,W="undefined"!=typeof WXEnvironment&&!!WXEnvironment.platform,K=W&&WXEnvironment.platform.toLowerCase(),Y=q&&window.navigator.userAgent.toLowerCase(),X=Y&&/msie|trident/.test(Y),J=Y&&Y.indexOf("msie 9.0")>0,Z=Y&&Y.indexOf("edge/")>0,ee=(Y&&Y.indexOf("android"),Y&&/iphone|ipad|ipod|ios/.test(Y)||"ios"===K),te=(Y&&/chrome\/\d+/.test(Y),Y&&/phantomjs/.test(Y),Y&&Y.match(/firefox\/(\d+)/)),ne={}.watch,re=!1;if(q)try{var ie={};Object.defineProperty(ie,"passive",{get:function(){re=!0}}),window.addEventListener("test-passive",null,ie)}catch(e){}var ae=function(){return void 0===G&&(G=!q&&!W&&void 0!==e&&(e.process&&"server"===e.process.env.VUE_ENV)),G},oe=q&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function se(e){return"function"==typeof e&&/native code/.test(e.toString())}var le,ce="undefined"!=typeof Symbol&&se(Symbol)&&"undefined"!=typeof Reflect&&se(Reflect.ownKeys);le="undefined"!=typeof Set&&se(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var ue=M,he=0,de=function(){this.id=he++,this.subs=[]};de.prototype.addSub=function(e){this.subs.push(e)},de.prototype.removeSub=function(e){v(this.subs,e)},de.prototype.depend=function(){de.target&&de.target.addDep(this)},de.prototype.notify=function(){var e=this.subs.slice();for(var t=0,n=e.length;t<n;t++)e[t].update()},de.target=null;var fe=[];function pe(e){fe.push(e),de.target=e}function Ae(){fe.pop(),de.target=fe[fe.length-1]}var ge=function(e,t,n,r,i,a,o,s){this.tag=e,this.data=t,this.children=n,this.text=r,this.elm=i,this.ns=void 0,this.context=a,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=t&&t.key,this.componentOptions=o,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=s,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1},me={child:{configurable:!0}};me.child.get=function(){return this.componentInstance},Object.defineProperties(ge.prototype,me);var ve=function(e){void 0===e&&(e="");var t=new ge;return t.text=e,t.isComment=!0,t};function ye(e){return new ge(void 0,void 0,void 0,String(e))}function be(e){var t=new ge(e.tag,e.data,e.children&&e.children.slice(),e.text,e.elm,e.context,e.componentOptions,e.asyncFactory);return t.ns=e.ns,t.isStatic=e.isStatic,t.key=e.key,t.isComment=e.isComment,t.fnContext=e.fnContext,t.fnOptions=e.fnOptions,t.fnScopeId=e.fnScopeId,t.asyncMeta=e.asyncMeta,t.isCloned=!0,t}var we=Array.prototype,xe=Object.create(we);["push","pop","shift","unshift","splice","sort","reverse"].forEach(function(e){var t=we[e];z(xe,e,function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];var i,a=t.apply(this,n),o=this.__ob__;switch(e){case"push":case"unshift":i=n;break;case"splice":i=n.slice(2)}return i&&o.observeArray(i),o.dep.notify(),a})});var _e=Object.getOwnPropertyNames(xe),Ce=!0;function Se(e){Ce=e}var ke=function(e){var t;this.value=e,this.dep=new de,this.vmCount=0,z(e,"__ob__",this),Array.isArray(e)?($?(t=xe,e.__proto__=t):function(e,t,n){for(var r=0,i=n.length;r<i;r++){var a=n[r];z(e,a,t[a])}}(e,xe,_e),this.observeArray(e)):this.walk(e)};function Be(e,t){var n;if(s(e)&&!(e instanceof ge))return b(e,"__ob__")&&e.__ob__ instanceof ke?n=e.__ob__:Ce&&!ae()&&(Array.isArray(e)||c(e))&&Object.isExtensible(e)&&!e._isVue&&(n=new ke(e)),t&&n&&n.vmCount++,n}function Ee(e,t,n,r,i){var a=new de,o=Object.getOwnPropertyDescriptor(e,t);if(!o||!1!==o.configurable){var s=o&&o.get,l=o&&o.set;s&&!l||2!==arguments.length||(n=e[t]);var c=!i&&Be(n);Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){var t=s?s.call(e):n;return de.target&&(a.depend(),c&&(c.dep.depend(),Array.isArray(t)&&function e(t){for(var n=void 0,r=0,i=t.length;r<i;r++)(n=t[r])&&n.__ob__&&n.__ob__.dep.depend(),Array.isArray(n)&&e(n)}(t))),t},set:function(t){var r=s?s.call(e):n;t===r||t!=t&&r!=r||s&&!l||(l?l.call(e,t):n=t,c=!i&&Be(t),a.notify())}})}}function Te(e,t,n){if(Array.isArray(e)&&h(t))return e.length=Math.max(e.length,t),e.splice(t,1,n),n;if(t in e&&!(t in Object.prototype))return e[t]=n,n;var r=e.__ob__;return e._isVue||r&&r.vmCount?n:r?(Ee(r.value,t,n),r.dep.notify(),n):(e[t]=n,n)}function Ie(e,t){if(Array.isArray(e)&&h(t))e.splice(t,1);else{var n=e.__ob__;e._isVue||n&&n.vmCount||b(e,t)&&(delete e[t],n&&n.dep.notify())}}ke.prototype.walk=function(e){for(var t=Object.keys(e),n=0;n<t.length;n++)Ee(e,t[n])},ke.prototype.observeArray=function(e){for(var t=0,n=e.length;t<n;t++)Be(e[t])};var Me=H.optionMergeStrategies;function Fe(e,t){if(!t)return e;for(var n,r,i,a=ce?Reflect.ownKeys(t):Object.keys(t),o=0;o<a.length;o++)"__ob__"!==(n=a[o])&&(r=e[n],i=t[n],b(e,n)?r!==i&&c(r)&&c(i)&&Fe(r,i):Te(e,n,i));return e}function De(e,t,n){return n?function(){var r="function"==typeof t?t.call(n,n):t,i="function"==typeof e?e.call(n,n):e;return r?Fe(r,i):i}:t?e?function(){return Fe("function"==typeof t?t.call(this,this):t,"function"==typeof e?e.call(this,this):e)}:t:e}function Pe(e,t){var n=t?e?e.concat(t):Array.isArray(t)?t:[t]:e;return n?function(e){for(var t=[],n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}(n):n}function Oe(e,t,n,r){var i=Object.create(e||null);return t?T(i,t):i}Me.data=function(e,t,n){return n?De(e,t,n):t&&"function"!=typeof t?e:De(e,t)},U.forEach(function(e){Me[e]=Pe}),N.forEach(function(e){Me[e+"s"]=Oe}),Me.watch=function(e,t,n,r){if(e===ne&&(e=void 0),t===ne&&(t=void 0),!t)return Object.create(e||null);if(!e)return t;var i={};for(var a in T(i,e),t){var o=i[a],s=t[a];o&&!Array.isArray(o)&&(o=[o]),i[a]=o?o.concat(s):Array.isArray(s)?s:[s]}return i},Me.props=Me.methods=Me.inject=Me.computed=function(e,t,n,r){if(!e)return t;var i=Object.create(null);return T(i,e),t&&T(i,t),i},Me.provide=De;var Le=function(e,t){return void 0===t?e:t};function Re(e,t,n){if("function"==typeof t&&(t=t.options),function(e,t){var n=e.props;if(n){var r,i,a={};if(Array.isArray(n))for(r=n.length;r--;)"string"==typeof(i=n[r])&&(a[_(i)]={type:null});else if(c(n))for(var o in n)i=n[o],a[_(o)]=c(i)?i:{type:i};e.props=a}}(t),function(e,t){var n=e.inject;if(n){var r=e.inject={};if(Array.isArray(n))for(var i=0;i<n.length;i++)r[n[i]]={from:n[i]};else if(c(n))for(var a in n){var o=n[a];r[a]=c(o)?T({from:a},o):{from:o}}}}(t),function(e){var t=e.directives;if(t)for(var n in t){var r=t[n];"function"==typeof r&&(t[n]={bind:r,update:r})}}(t),!t._base&&(t.extends&&(e=Re(e,t.extends,n)),t.mixins))for(var r=0,i=t.mixins.length;r<i;r++)e=Re(e,t.mixins[r],n);var a,o={};for(a in e)s(a);for(a in t)b(e,a)||s(a);function s(r){var i=Me[r]||Le;o[r]=i(e[r],t[r],n,r)}return o}function Ne(e,t,n,r){if("string"==typeof n){var i=e[t];if(b(i,n))return i[n];var a=_(n);if(b(i,a))return i[a];var o=C(a);return b(i,o)?i[o]:i[n]||i[a]||i[o]}}function Ue(e,t,n,r){var i=t[e],a=!b(n,e),o=n[e],s=Qe(Boolean,i.type);if(s>-1)if(a&&!b(i,"default"))o=!1;else if(""===o||o===k(e)){var l=Qe(String,i.type);(l<0||s<l)&&(o=!0)}if(void 0===o){o=function(e,t,n){if(!b(t,"default"))return;var r=t.default;0;if(e&&e.$options.propsData&&void 0===e.$options.propsData[n]&&void 0!==e._props[n])return e._props[n];return"function"==typeof r&&"Function"!==He(t.type)?r.call(e):r}(r,i,e);var c=Ce;Se(!0),Be(o),Se(c)}return o}function He(e){var t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:""}function je(e,t){return He(e)===He(t)}function Qe(e,t){if(!Array.isArray(t))return je(t,e)?0:-1;for(var n=0,r=t.length;n<r;n++)if(je(t[n],e))return n;return-1}function ze(e,t,n){pe();try{if(t)for(var r=t;r=r.$parent;){var i=r.$options.errorCaptured;if(i)for(var a=0;a<i.length;a++)try{if(!1===i[a].call(r,e,t,n))return}catch(e){Ge(e,r,"errorCaptured hook")}}Ge(e,t,n)}finally{Ae()}}function Ve(e,t,n,r,i){var a;try{(a=n?e.apply(t,n):e.call(t))&&!a._isVue&&d(a)&&!a._handled&&(a.catch(function(e){return ze(e,r,i+" (Promise/async)")}),a._handled=!0)}catch(e){ze(e,r,i)}return a}function Ge(e,t,n){if(H.errorHandler)try{return H.errorHandler.call(null,e,t,n)}catch(t){t!==e&&$e(t,null,"config.errorHandler")}$e(e,t,n)}function $e(e,t,n){if(!q&&!W||"undefined"==typeof console)throw e;console.error(e)}var qe,We=!1,Ke=[],Ye=!1;function Xe(){Ye=!1;var e=Ke.slice(0);Ke.length=0;for(var t=0;t<e.length;t++)e[t]()}if("undefined"!=typeof Promise&&se(Promise)){var Je=Promise.resolve();qe=function(){Je.then(Xe),ee&&setTimeout(M)},We=!0}else if(X||"undefined"==typeof MutationObserver||!se(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())qe="undefined"!=typeof setImmediate&&se(setImmediate)?function(){setImmediate(Xe)}:function(){setTimeout(Xe,0)};else{var Ze=1,et=new MutationObserver(Xe),tt=document.createTextNode(String(Ze));et.observe(tt,{characterData:!0}),qe=function(){Ze=(Ze+1)%2,tt.data=String(Ze)},We=!0}function nt(e,t){var n;if(Ke.push(function(){if(e)try{e.call(t)}catch(e){ze(e,t,"nextTick")}else n&&n(t)}),Ye||(Ye=!0,qe()),!e&&"undefined"!=typeof Promise)return new Promise(function(e){n=e})}var rt=new le;function it(e){!function e(t,n){var r,i;var a=Array.isArray(t);if(!a&&!s(t)||Object.isFrozen(t)||t instanceof ge)return;if(t.__ob__){var o=t.__ob__.dep.id;if(n.has(o))return;n.add(o)}if(a)for(r=t.length;r--;)e(t[r],n);else for(i=Object.keys(t),r=i.length;r--;)e(t[i[r]],n)}(e,rt),rt.clear()}var at=w(function(e){var t="&"===e.charAt(0),n="~"===(e=t?e.slice(1):e).charAt(0),r="!"===(e=n?e.slice(1):e).charAt(0);return{name:e=r?e.slice(1):e,once:n,capture:r,passive:t}});function ot(e,t){function n(){var e=arguments,r=n.fns;if(!Array.isArray(r))return Ve(r,null,arguments,t,"v-on handler");for(var i=r.slice(),a=0;a<i.length;a++)Ve(i[a],null,e,t,"v-on handler")}return n.fns=e,n}function st(e,t,n,i,o,s){var l,c,u,h;for(l in e)c=e[l],u=t[l],h=at(l),r(c)||(r(u)?(r(c.fns)&&(c=e[l]=ot(c,s)),a(h.once)&&(c=e[l]=o(h.name,c,h.capture)),n(h.name,c,h.capture,h.passive,h.params)):c!==u&&(u.fns=c,e[l]=u));for(l in t)r(e[l])&&i((h=at(l)).name,t[l],h.capture)}function lt(e,t,n){var o;e instanceof ge&&(e=e.data.hook||(e.data.hook={}));var s=e[t];function l(){n.apply(this,arguments),v(o.fns,l)}r(s)?o=ot([l]):i(s.fns)&&a(s.merged)?(o=s).fns.push(l):o=ot([s,l]),o.merged=!0,e[t]=o}function ct(e,t,n,r,a){if(i(t)){if(b(t,n))return e[n]=t[n],a||delete t[n],!0;if(b(t,r))return e[n]=t[r],a||delete t[r],!0}return!1}function ut(e){return o(e)?[ye(e)]:Array.isArray(e)?function e(t,n){var s=[];var l,c,u,h;for(l=0;l<t.length;l++)r(c=t[l])||"boolean"==typeof c||(u=s.length-1,h=s[u],Array.isArray(c)?c.length>0&&(ht((c=e(c,(n||"")+"_"+l))[0])&&ht(h)&&(s[u]=ye(h.text+c[0].text),c.shift()),s.push.apply(s,c)):o(c)?ht(h)?s[u]=ye(h.text+c):""!==c&&s.push(ye(c)):ht(c)&&ht(h)?s[u]=ye(h.text+c.text):(a(t._isVList)&&i(c.tag)&&r(c.key)&&i(n)&&(c.key="__vlist"+n+"_"+l+"__"),s.push(c)));return s}(e):void 0}function ht(e){return i(e)&&i(e.text)&&!1===e.isComment}function dt(e,t){if(e){for(var n=Object.create(null),r=ce?Reflect.ownKeys(e):Object.keys(e),i=0;i<r.length;i++){var a=r[i];if("__ob__"!==a){for(var o=e[a].from,s=t;s;){if(s._provided&&b(s._provided,o)){n[a]=s._provided[o];break}s=s.$parent}if(!s)if("default"in e[a]){var l=e[a].default;n[a]="function"==typeof l?l.call(t):l}else 0}}return n}}function ft(e,t){if(!e||!e.length)return{};for(var n={},r=0,i=e.length;r<i;r++){var a=e[r],o=a.data;if(o&&o.attrs&&o.attrs.slot&&delete o.attrs.slot,a.context!==t&&a.fnContext!==t||!o||null==o.slot)(n.default||(n.default=[])).push(a);else{var s=o.slot,l=n[s]||(n[s]=[]);"template"===a.tag?l.push.apply(l,a.children||[]):l.push(a)}}for(var c in n)n[c].every(pt)&&delete n[c];return n}function pt(e){return e.isComment&&!e.asyncFactory||" "===e.text}function At(e,t,r){var i,a=Object.keys(t).length>0,o=e?!!e.$stable:!a,s=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(o&&r&&r!==n&&s===r.$key&&!a&&!r.$hasNormal)return r;for(var l in i={},e)e[l]&&"$"!==l[0]&&(i[l]=gt(t,l,e[l]))}else i={};for(var c in t)c in i||(i[c]=mt(t,c));return e&&Object.isExtensible(e)&&(e._normalized=i),z(i,"$stable",o),z(i,"$key",s),z(i,"$hasNormal",a),i}function gt(e,t,n){var r=function(){var e=arguments.length?n.apply(null,arguments):n({});return(e=e&&"object"==typeof e&&!Array.isArray(e)?[e]:ut(e))&&(0===e.length||1===e.length&&e[0].isComment)?void 0:e};return n.proxy&&Object.defineProperty(e,t,{get:r,enumerable:!0,configurable:!0}),r}function mt(e,t){return function(){return e[t]}}function vt(e,t){var n,r,a,o,l;if(Array.isArray(e)||"string"==typeof e)for(n=new Array(e.length),r=0,a=e.length;r<a;r++)n[r]=t(e[r],r);else if("number"==typeof e)for(n=new Array(e),r=0;r<e;r++)n[r]=t(r+1,r);else if(s(e))if(ce&&e[Symbol.iterator]){n=[];for(var c=e[Symbol.iterator](),u=c.next();!u.done;)n.push(t(u.value,n.length)),u=c.next()}else for(o=Object.keys(e),n=new Array(o.length),r=0,a=o.length;r<a;r++)l=o[r],n[r]=t(e[l],l,r);return i(n)||(n=[]),n._isVList=!0,n}function yt(e,t,n,r){var i,a=this.$scopedSlots[e];a?(n=n||{},r&&(n=T(T({},r),n)),i=a(n)||t):i=this.$slots[e]||t;var o=n&&n.slot;return o?this.$createElement("template",{slot:o},i):i}function bt(e){return Ne(this.$options,"filters",e)||D}function wt(e,t){return Array.isArray(e)?-1===e.indexOf(t):e!==t}function xt(e,t,n,r,i){var a=H.keyCodes[t]||n;return i&&r&&!H.keyCodes[t]?wt(i,r):a?wt(a,e):r?k(r)!==t:void 0}function _t(e,t,n,r,i){if(n)if(s(n)){var a;Array.isArray(n)&&(n=I(n));var o=function(o){if("class"===o||"style"===o||m(o))a=e;else{var s=e.attrs&&e.attrs.type;a=r||H.mustUseProp(t,s,o)?e.domProps||(e.domProps={}):e.attrs||(e.attrs={})}var l=_(o),c=k(o);l in a||c in a||(a[o]=n[o],i&&((e.on||(e.on={}))["update:"+o]=function(e){n[o]=e}))};for(var l in n)o(l)}else;return e}function Ct(e,t){var n=this._staticTrees||(this._staticTrees=[]),r=n[e];return r&&!t?r:(kt(r=n[e]=this.$options.staticRenderFns[e].call(this._renderProxy,null,this),"__static__"+e,!1),r)}function St(e,t,n){return kt(e,"__once__"+t+(n?"_"+n:""),!0),e}function kt(e,t,n){if(Array.isArray(e))for(var r=0;r<e.length;r++)e[r]&&"string"!=typeof e[r]&&Bt(e[r],t+"_"+r,n);else Bt(e,t,n)}function Bt(e,t,n){e.isStatic=!0,e.key=t,e.isOnce=n}function Et(e,t){if(t)if(c(t)){var n=e.on=e.on?T({},e.on):{};for(var r in t){var i=n[r],a=t[r];n[r]=i?[].concat(i,a):a}}else;return e}function Tt(e,t,n,r){t=t||{$stable:!n};for(var i=0;i<e.length;i++){var a=e[i];Array.isArray(a)?Tt(a,t,n):a&&(a.proxy&&(a.fn.proxy=!0),t[a.key]=a.fn)}return r&&(t.$key=r),t}function It(e,t){for(var n=0;n<t.length;n+=2){var r=t[n];"string"==typeof r&&r&&(e[t[n]]=t[n+1])}return e}function Mt(e,t){return"string"==typeof e?t+e:e}function Ft(e){e._o=St,e._n=p,e._s=f,e._l=vt,e._t=yt,e._q=P,e._i=O,e._m=Ct,e._f=bt,e._k=xt,e._b=_t,e._v=ye,e._e=ve,e._u=Tt,e._g=Et,e._d=It,e._p=Mt}function Dt(e,t,r,i,o){var s,l=this,c=o.options;b(i,"_uid")?(s=Object.create(i))._original=i:(s=i,i=i._original);var u=a(c._compiled),h=!u;this.data=e,this.props=t,this.children=r,this.parent=i,this.listeners=e.on||n,this.injections=dt(c.inject,i),this.slots=function(){return l.$slots||At(e.scopedSlots,l.$slots=ft(r,i)),l.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return At(e.scopedSlots,this.slots())}}),u&&(this.$options=c,this.$slots=this.slots(),this.$scopedSlots=At(e.scopedSlots,this.$slots)),c._scopeId?this._c=function(e,t,n,r){var a=Qt(s,e,t,n,r,h);return a&&!Array.isArray(a)&&(a.fnScopeId=c._scopeId,a.fnContext=i),a}:this._c=function(e,t,n,r){return Qt(s,e,t,n,r,h)}}function Pt(e,t,n,r,i){var a=be(e);return a.fnContext=n,a.fnOptions=r,t.slot&&((a.data||(a.data={})).slot=t.slot),a}function Ot(e,t){for(var n in t)e[_(n)]=t[n]}Ft(Dt.prototype);var Lt={init:function(e,t){if(e.componentInstance&&!e.componentInstance._isDestroyed&&e.data.keepAlive){var n=e;Lt.prepatch(n,n)}else{(e.componentInstance=function(e,t){var n={_isComponent:!0,_parentVnode:e,parent:t},r=e.data.inlineTemplate;i(r)&&(n.render=r.render,n.staticRenderFns=r.staticRenderFns);return new e.componentOptions.Ctor(n)}(e,Jt)).$mount(t?e.elm:void 0,t)}},prepatch:function(e,t){var r=t.componentOptions;!function(e,t,r,i,a){0;var o=i.data.scopedSlots,s=e.$scopedSlots,l=!!(o&&!o.$stable||s!==n&&!s.$stable||o&&e.$scopedSlots.$key!==o.$key),c=!!(a||e.$options._renderChildren||l);e.$options._parentVnode=i,e.$vnode=i,e._vnode&&(e._vnode.parent=i);if(e.$options._renderChildren=a,e.$attrs=i.data.attrs||n,e.$listeners=r||n,t&&e.$options.props){Se(!1);for(var u=e._props,h=e.$options._propKeys||[],d=0;d<h.length;d++){var f=h[d],p=e.$options.props;u[f]=Ue(f,p,t,e)}Se(!0),e.$options.propsData=t}r=r||n;var A=e.$options._parentListeners;e.$options._parentListeners=r,Xt(e,r,A),c&&(e.$slots=ft(a,i.context),e.$forceUpdate());0}(t.componentInstance=e.componentInstance,r.propsData,r.listeners,t,r.children)},insert:function(e){var t,n=e.context,r=e.componentInstance;r._isMounted||(r._isMounted=!0,nn(r,"mounted")),e.data.keepAlive&&(n._isMounted?((t=r)._inactive=!1,an.push(t)):tn(r,!0))},destroy:function(e){var t=e.componentInstance;t._isDestroyed||(e.data.keepAlive?function e(t,n){if(n&&(t._directInactive=!0,en(t)))return;if(!t._inactive){t._inactive=!0;for(var r=0;r<t.$children.length;r++)e(t.$children[r]);nn(t,"deactivated")}}(t,!0):t.$destroy())}},Rt=Object.keys(Lt);function Nt(e,t,o,l,c){if(!r(e)){var u=o.$options._base;if(s(e)&&(e=u.extend(e)),"function"==typeof e){var h;if(r(e.cid)&&void 0===(e=function(e,t){if(a(e.error)&&i(e.errorComp))return e.errorComp;if(i(e.resolved))return e.resolved;var n=Vt;n&&i(e.owners)&&-1===e.owners.indexOf(n)&&e.owners.push(n);if(a(e.loading)&&i(e.loadingComp))return e.loadingComp;if(n&&!i(e.owners)){var o=e.owners=[n],l=!0,c=null,u=null;n.$on("hook:destroyed",function(){return v(o,n)});var h=function(e){for(var t=0,n=o.length;t<n;t++)o[t].$forceUpdate();e&&(o.length=0,null!==c&&(clearTimeout(c),c=null),null!==u&&(clearTimeout(u),u=null))},f=L(function(n){e.resolved=Gt(n,t),l?o.length=0:h(!0)}),p=L(function(t){i(e.errorComp)&&(e.error=!0,h(!0))}),A=e(f,p);return s(A)&&(d(A)?r(e.resolved)&&A.then(f,p):d(A.component)&&(A.component.then(f,p),i(A.error)&&(e.errorComp=Gt(A.error,t)),i(A.loading)&&(e.loadingComp=Gt(A.loading,t),0===A.delay?e.loading=!0:c=setTimeout(function(){c=null,r(e.resolved)&&r(e.error)&&(e.loading=!0,h(!1))},A.delay||200)),i(A.timeout)&&(u=setTimeout(function(){u=null,r(e.resolved)&&p(null)},A.timeout)))),l=!1,e.loading?e.loadingComp:e.resolved}}(h=e,u)))return function(e,t,n,r,i){var a=ve();return a.asyncFactory=e,a.asyncMeta={data:t,context:n,children:r,tag:i},a}(h,t,o,l,c);t=t||{},Sn(e),i(t.model)&&function(e,t){var n=e.model&&e.model.prop||"value",r=e.model&&e.model.event||"input";(t.attrs||(t.attrs={}))[n]=t.model.value;var a=t.on||(t.on={}),o=a[r],s=t.model.callback;i(o)?(Array.isArray(o)?-1===o.indexOf(s):o!==s)&&(a[r]=[s].concat(o)):a[r]=s}(e.options,t);var f=function(e,t,n){var a=t.options.props;if(!r(a)){var o={},s=e.attrs,l=e.props;if(i(s)||i(l))for(var c in a){var u=k(c);ct(o,l,c,u,!0)||ct(o,s,c,u,!1)}return o}}(t,e);if(a(e.options.functional))return function(e,t,r,a,o){var s=e.options,l={},c=s.props;if(i(c))for(var u in c)l[u]=Ue(u,c,t||n);else i(r.attrs)&&Ot(l,r.attrs),i(r.props)&&Ot(l,r.props);var h=new Dt(r,l,o,a,e),d=s.render.call(null,h._c,h);if(d instanceof ge)return Pt(d,r,h.parent,s);if(Array.isArray(d)){for(var f=ut(d)||[],p=new Array(f.length),A=0;A<f.length;A++)p[A]=Pt(f[A],r,h.parent,s);return p}}(e,f,t,o,l);var p=t.on;if(t.on=t.nativeOn,a(e.options.abstract)){var A=t.slot;t={},A&&(t.slot=A)}!function(e){for(var t=e.hook||(e.hook={}),n=0;n<Rt.length;n++){var r=Rt[n],i=t[r],a=Lt[r];i===a||i&&i._merged||(t[r]=i?Ut(a,i):a)}}(t);var g=e.options.name||c;return new ge("vue-component-"+e.cid+(g?"-"+g:""),t,void 0,void 0,void 0,o,{Ctor:e,propsData:f,listeners:p,tag:c,children:l},h)}}}function Ut(e,t){var n=function(n,r){e(n,r),t(n,r)};return n._merged=!0,n}var Ht=1,jt=2;function Qt(e,t,n,l,c,u){return(Array.isArray(n)||o(n))&&(c=l,l=n,n=void 0),a(u)&&(c=jt),function(e,t,n,o,l){if(i(n)&&i(n.__ob__))return ve();i(n)&&i(n.is)&&(t=n.is);if(!t)return ve();0;Array.isArray(o)&&"function"==typeof o[0]&&((n=n||{}).scopedSlots={default:o[0]},o.length=0);l===jt?o=ut(o):l===Ht&&(o=function(e){for(var t=0;t<e.length;t++)if(Array.isArray(e[t]))return Array.prototype.concat.apply([],e);return e}(o));var c,u;if("string"==typeof t){var h;u=e.$vnode&&e.$vnode.ns||H.getTagNamespace(t),c=H.isReservedTag(t)?new ge(H.parsePlatformTagName(t),n,o,void 0,void 0,e):n&&n.pre||!i(h=Ne(e.$options,"components",t))?new ge(t,n,o,void 0,void 0,e):Nt(h,n,e,o,t)}else c=Nt(t,n,e,o);return Array.isArray(c)?c:i(c)?(i(u)&&function e(t,n,o){t.ns=n;"foreignObject"===t.tag&&(n=void 0,o=!0);if(i(t.children))for(var s=0,l=t.children.length;s<l;s++){var c=t.children[s];i(c.tag)&&(r(c.ns)||a(o)&&"svg"!==c.tag)&&e(c,n,o)}}(c,u),i(n)&&function(e){s(e.style)&&it(e.style);s(e.class)&&it(e.class)}(n),c):ve()}(e,t,n,l,c)}var zt,Vt=null;function Gt(e,t){return(e.__esModule||ce&&"Module"===e[Symbol.toStringTag])&&(e=e.default),s(e)?t.extend(e):e}function $t(e){return e.isComment&&e.asyncFactory}function qt(e){if(Array.isArray(e))for(var t=0;t<e.length;t++){var n=e[t];if(i(n)&&(i(n.componentOptions)||$t(n)))return n}}function Wt(e,t){zt.$on(e,t)}function Kt(e,t){zt.$off(e,t)}function Yt(e,t){var n=zt;return function r(){null!==t.apply(null,arguments)&&n.$off(e,r)}}function Xt(e,t,n){zt=e,st(t,n||{},Wt,Kt,Yt,e),zt=void 0}var Jt=null;function Zt(e){var t=Jt;return Jt=e,function(){Jt=t}}function en(e){for(;e&&(e=e.$parent);)if(e._inactive)return!0;return!1}function tn(e,t){if(t){if(e._directInactive=!1,en(e))return}else if(e._directInactive)return;if(e._inactive||null===e._inactive){e._inactive=!1;for(var n=0;n<e.$children.length;n++)tn(e.$children[n]);nn(e,"activated")}}function nn(e,t){pe();var n=e.$options[t],r=t+" hook";if(n)for(var i=0,a=n.length;i<a;i++)Ve(n[i],e,null,e,r);e._hasHookEvent&&e.$emit("hook:"+t),Ae()}var rn=[],an=[],on={},sn=!1,ln=!1,cn=0;var un=0,hn=Date.now;if(q&&!X){var dn=window.performance;dn&&"function"==typeof dn.now&&hn()>document.createEvent("Event").timeStamp&&(hn=function(){return dn.now()})}function fn(){var e,t;for(un=hn(),ln=!0,rn.sort(function(e,t){return e.id-t.id}),cn=0;cn<rn.length;cn++)(e=rn[cn]).before&&e.before(),t=e.id,on[t]=null,e.run();var n=an.slice(),r=rn.slice();cn=rn.length=an.length=0,on={},sn=ln=!1,function(e){for(var t=0;t<e.length;t++)e[t]._inactive=!0,tn(e[t],!0)}(n),function(e){var t=e.length;for(;t--;){var n=e[t],r=n.vm;r._watcher===n&&r._isMounted&&!r._isDestroyed&&nn(r,"updated")}}(r),oe&&H.devtools&&oe.emit("flush")}var pn=0,An=function(e,t,n,r,i){this.vm=e,i&&(e._watcher=this),e._watchers.push(this),r?(this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync,this.before=r.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++pn,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new le,this.newDepIds=new le,this.expression="","function"==typeof t?this.getter=t:(this.getter=function(e){if(!V.test(e)){var t=e.split(".");return function(e){for(var n=0;n<t.length;n++){if(!e)return;e=e[t[n]]}return e}}}(t),this.getter||(this.getter=M)),this.value=this.lazy?void 0:this.get()};An.prototype.get=function(){var e;pe(this);var t=this.vm;try{e=this.getter.call(t,t)}catch(e){if(!this.user)throw e;ze(e,t,'getter for watcher "'+this.expression+'"')}finally{this.deep&&it(e),Ae(),this.cleanupDeps()}return e},An.prototype.addDep=function(e){var t=e.id;this.newDepIds.has(t)||(this.newDepIds.add(t),this.newDeps.push(e),this.depIds.has(t)||e.addSub(this))},An.prototype.cleanupDeps=function(){for(var e=this.deps.length;e--;){var t=this.deps[e];this.newDepIds.has(t.id)||t.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},An.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():function(e){var t=e.id;if(null==on[t]){if(on[t]=!0,ln){for(var n=rn.length-1;n>cn&&rn[n].id>e.id;)n--;rn.splice(n+1,0,e)}else rn.push(e);sn||(sn=!0,nt(fn))}}(this)},An.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||s(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(e){ze(e,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},An.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},An.prototype.depend=function(){for(var e=this.deps.length;e--;)this.deps[e].depend()},An.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||v(this.vm._watchers,this);for(var e=this.deps.length;e--;)this.deps[e].removeSub(this);this.active=!1}};var gn={enumerable:!0,configurable:!0,get:M,set:M};function mn(e,t,n){gn.get=function(){return this[t][n]},gn.set=function(e){this[t][n]=e},Object.defineProperty(e,n,gn)}function vn(e){e._watchers=[];var t=e.$options;t.props&&function(e,t){var n=e.$options.propsData||{},r=e._props={},i=e.$options._propKeys=[],a=!e.$parent;a||Se(!1);var o=function(a){i.push(a);var o=Ue(a,t,n,e);Ee(r,a,o),a in e||mn(e,"_props",a)};for(var s in t)o(s);Se(!0)}(e,t.props),t.methods&&function(e,t){e.$options.props;for(var n in t)e[n]="function"!=typeof t[n]?M:B(t[n],e)}(e,t.methods),t.data?function(e){var t=e.$options.data;c(t=e._data="function"==typeof t?function(e,t){pe();try{return e.call(t,t)}catch(e){return ze(e,t,"data()"),{}}finally{Ae()}}(t,e):t||{})||(t={});var n=Object.keys(t),r=e.$options.props,i=(e.$options.methods,n.length);for(;i--;){var a=n[i];0,r&&b(r,a)||Q(a)||mn(e,"_data",a)}Be(t,!0)}(e):Be(e._data={},!0),t.computed&&function(e,t){var n=e._computedWatchers=Object.create(null),r=ae();for(var i in t){var a=t[i],o="function"==typeof a?a:a.get;0,r||(n[i]=new An(e,o||M,M,yn)),i in e||bn(e,i,a)}}(e,t.computed),t.watch&&t.watch!==ne&&function(e,t){for(var n in t){var r=t[n];if(Array.isArray(r))for(var i=0;i<r.length;i++)_n(e,n,r[i]);else _n(e,n,r)}}(e,t.watch)}var yn={lazy:!0};function bn(e,t,n){var r=!ae();"function"==typeof n?(gn.get=r?wn(t):xn(n),gn.set=M):(gn.get=n.get?r&&!1!==n.cache?wn(t):xn(n.get):M,gn.set=n.set||M),Object.defineProperty(e,t,gn)}function wn(e){return function(){var t=this._computedWatchers&&this._computedWatchers[e];if(t)return t.dirty&&t.evaluate(),de.target&&t.depend(),t.value}}function xn(e){return function(){return e.call(this,this)}}function _n(e,t,n,r){return c(n)&&(r=n,n=n.handler),"string"==typeof n&&(n=e[n]),e.$watch(t,n,r)}var Cn=0;function Sn(e){var t=e.options;if(e.super){var n=Sn(e.super);if(n!==e.superOptions){e.superOptions=n;var r=function(e){var t,n=e.options,r=e.sealedOptions;for(var i in n)n[i]!==r[i]&&(t||(t={}),t[i]=n[i]);return t}(e);r&&T(e.extendOptions,r),(t=e.options=Re(n,e.extendOptions)).name&&(t.components[t.name]=e)}}return t}function kn(e){this._init(e)}function Bn(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var n=this,r=n.cid,i=e._Ctor||(e._Ctor={});if(i[r])return i[r];var a=e.name||n.options.name;var o=function(e){this._init(e)};return(o.prototype=Object.create(n.prototype)).constructor=o,o.cid=t++,o.options=Re(n.options,e),o.super=n,o.options.props&&function(e){var t=e.options.props;for(var n in t)mn(e.prototype,"_props",n)}(o),o.options.computed&&function(e){var t=e.options.computed;for(var n in t)bn(e.prototype,n,t[n])}(o),o.extend=n.extend,o.mixin=n.mixin,o.use=n.use,N.forEach(function(e){o[e]=n[e]}),a&&(o.options.components[a]=o),o.superOptions=n.options,o.extendOptions=e,o.sealedOptions=T({},o.options),i[r]=o,o}}function En(e){return e&&(e.Ctor.options.name||e.tag)}function Tn(e,t){return Array.isArray(e)?e.indexOf(t)>-1:"string"==typeof e?e.split(",").indexOf(t)>-1:!!u(e)&&e.test(t)}function In(e,t){var n=e.cache,r=e.keys,i=e._vnode;for(var a in n){var o=n[a];if(o){var s=En(o.componentOptions);s&&!t(s)&&Mn(n,a,r,i)}}}function Mn(e,t,n,r){var i=e[t];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),e[t]=null,v(n,t)}!function(e){e.prototype._init=function(e){var t=this;t._uid=Cn++,t._isVue=!0,e&&e._isComponent?function(e,t){var n=e.$options=Object.create(e.constructor.options),r=t._parentVnode;n.parent=t.parent,n._parentVnode=r;var i=r.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}(t,e):t.$options=Re(Sn(t.constructor),e||{},t),t._renderProxy=t,t._self=t,function(e){var t=e.$options,n=t.parent;if(n&&!t.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}(t),function(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&Xt(e,t)}(t),function(e){e._vnode=null,e._staticTrees=null;var t=e.$options,r=e.$vnode=t._parentVnode,i=r&&r.context;e.$slots=ft(t._renderChildren,i),e.$scopedSlots=n,e._c=function(t,n,r,i){return Qt(e,t,n,r,i,!1)},e.$createElement=function(t,n,r,i){return Qt(e,t,n,r,i,!0)};var a=r&&r.data;Ee(e,"$attrs",a&&a.attrs||n,null,!0),Ee(e,"$listeners",t._parentListeners||n,null,!0)}(t),nn(t,"beforeCreate"),function(e){var t=dt(e.$options.inject,e);t&&(Se(!1),Object.keys(t).forEach(function(n){Ee(e,n,t[n])}),Se(!0))}(t),vn(t),function(e){var t=e.$options.provide;t&&(e._provided="function"==typeof t?t.call(e):t)}(t),nn(t,"created"),t.$options.el&&t.$mount(t.$options.el)}}(kn),function(e){var t={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(e.prototype,"$data",t),Object.defineProperty(e.prototype,"$props",n),e.prototype.$set=Te,e.prototype.$delete=Ie,e.prototype.$watch=function(e,t,n){if(c(t))return _n(this,e,t,n);(n=n||{}).user=!0;var r=new An(this,e,t,n);if(n.immediate)try{t.call(this,r.value)}catch(e){ze(e,this,'callback for immediate watcher "'+r.expression+'"')}return function(){r.teardown()}}}(kn),function(e){var t=/^hook:/;e.prototype.$on=function(e,n){var r=this;if(Array.isArray(e))for(var i=0,a=e.length;i<a;i++)r.$on(e[i],n);else(r._events[e]||(r._events[e]=[])).push(n),t.test(e)&&(r._hasHookEvent=!0);return r},e.prototype.$once=function(e,t){var n=this;function r(){n.$off(e,r),t.apply(n,arguments)}return r.fn=t,n.$on(e,r),n},e.prototype.$off=function(e,t){var n=this;if(!arguments.length)return n._events=Object.create(null),n;if(Array.isArray(e)){for(var r=0,i=e.length;r<i;r++)n.$off(e[r],t);return n}var a,o=n._events[e];if(!o)return n;if(!t)return n._events[e]=null,n;for(var s=o.length;s--;)if((a=o[s])===t||a.fn===t){o.splice(s,1);break}return n},e.prototype.$emit=function(e){var t=this,n=t._events[e];if(n){n=n.length>1?E(n):n;for(var r=E(arguments,1),i='event handler for "'+e+'"',a=0,o=n.length;a<o;a++)Ve(n[a],t,r,t,i)}return t}}(kn),function(e){e.prototype._update=function(e,t){var n=this,r=n.$el,i=n._vnode,a=Zt(n);n._vnode=e,n.$el=i?n.__patch__(i,e):n.__patch__(n.$el,e,t,!1),a(),r&&(r.__vue__=null),n.$el&&(n.$el.__vue__=n),n.$vnode&&n.$parent&&n.$vnode===n.$parent._vnode&&(n.$parent.$el=n.$el)},e.prototype.$forceUpdate=function(){this._watcher&&this._watcher.update()},e.prototype.$destroy=function(){var e=this;if(!e._isBeingDestroyed){nn(e,"beforeDestroy"),e._isBeingDestroyed=!0;var t=e.$parent;!t||t._isBeingDestroyed||e.$options.abstract||v(t.$children,e),e._watcher&&e._watcher.teardown();for(var n=e._watchers.length;n--;)e._watchers[n].teardown();e._data.__ob__&&e._data.__ob__.vmCount--,e._isDestroyed=!0,e.__patch__(e._vnode,null),nn(e,"destroyed"),e.$off(),e.$el&&(e.$el.__vue__=null),e.$vnode&&(e.$vnode.parent=null)}}}(kn),function(e){Ft(e.prototype),e.prototype.$nextTick=function(e){return nt(e,this)},e.prototype._render=function(){var e,t=this,n=t.$options,r=n.render,i=n._parentVnode;i&&(t.$scopedSlots=At(i.data.scopedSlots,t.$slots,t.$scopedSlots)),t.$vnode=i;try{Vt=t,e=r.call(t._renderProxy,t.$createElement)}catch(n){ze(n,t,"render"),e=t._vnode}finally{Vt=null}return Array.isArray(e)&&1===e.length&&(e=e[0]),e instanceof ge||(e=ve()),e.parent=i,e}}(kn);var Fn=[String,RegExp,Array],Dn={KeepAlive:{name:"keep-alive",abstract:!0,props:{include:Fn,exclude:Fn,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)Mn(this.cache,e,this.keys)},mounted:function(){var e=this;this.$watch("include",function(t){In(e,function(e){return Tn(t,e)})}),this.$watch("exclude",function(t){In(e,function(e){return!Tn(t,e)})})},render:function(){var e=this.$slots.default,t=qt(e),n=t&&t.componentOptions;if(n){var r=En(n),i=this.include,a=this.exclude;if(i&&(!r||!Tn(i,r))||a&&r&&Tn(a,r))return t;var o=this.cache,s=this.keys,l=null==t.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):t.key;o[l]?(t.componentInstance=o[l].componentInstance,v(s,l),s.push(l)):(o[l]=t,s.push(l),this.max&&s.length>parseInt(this.max)&&Mn(o,s[0],s,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}}};!function(e){var t={get:function(){return H}};Object.defineProperty(e,"config",t),e.util={warn:ue,extend:T,mergeOptions:Re,defineReactive:Ee},e.set=Te,e.delete=Ie,e.nextTick=nt,e.observable=function(e){return Be(e),e},e.options=Object.create(null),N.forEach(function(t){e.options[t+"s"]=Object.create(null)}),e.options._base=e,T(e.options.components,Dn),function(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=E(arguments,1);return n.unshift(this),"function"==typeof e.install?e.install.apply(e,n):"function"==typeof e&&e.apply(null,n),t.push(e),this}}(e),function(e){e.mixin=function(e){return this.options=Re(this.options,e),this}}(e),Bn(e),function(e){N.forEach(function(t){e[t]=function(e,n){return n?("component"===t&&c(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"==typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}})}(e)}(kn),Object.defineProperty(kn.prototype,"$isServer",{get:ae}),Object.defineProperty(kn.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(kn,"FunctionalRenderContext",{value:Dt}),kn.version="2.6.12";var Pn=A("style,class"),On=A("input,textarea,option,select,progress"),Ln=function(e,t,n){return"value"===n&&On(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},Rn=A("contenteditable,draggable,spellcheck"),Nn=A("events,caret,typing,plaintext-only"),Un=function(e,t){return Vn(t)||"false"===t?"false":"contenteditable"===e&&Nn(t)?t:"true"},Hn=A("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),jn="http://www.w3.org/1999/xlink",Qn=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},zn=function(e){return Qn(e)?e.slice(6,e.length):""},Vn=function(e){return null==e||!1===e};function Gn(e){for(var t=e.data,n=e,r=e;i(r.componentInstance);)(r=r.componentInstance._vnode)&&r.data&&(t=$n(r.data,t));for(;i(n=n.parent);)n&&n.data&&(t=$n(t,n.data));return function(e,t){if(i(e)||i(t))return qn(e,Wn(t));return""}(t.staticClass,t.class)}function $n(e,t){return{staticClass:qn(e.staticClass,t.staticClass),class:i(e.class)?[e.class,t.class]:t.class}}function qn(e,t){return e?t?e+" "+t:e:t||""}function Wn(e){return Array.isArray(e)?function(e){for(var t,n="",r=0,a=e.length;r<a;r++)i(t=Wn(e[r]))&&""!==t&&(n&&(n+=" "),n+=t);return n}(e):s(e)?function(e){var t="";for(var n in e)e[n]&&(t&&(t+=" "),t+=n);return t}(e):"string"==typeof e?e:""}var Kn={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},Yn=A("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),Xn=A("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),Jn=function(e){return Yn(e)||Xn(e)};function Zn(e){return Xn(e)?"svg":"math"===e?"math":void 0}var er=Object.create(null);var tr=A("text,number,password,search,email,tel,url");function nr(e){if("string"==typeof e){var t=document.querySelector(e);return t||document.createElement("div")}return e}var rr=Object.freeze({createElement:function(e,t){var n=document.createElement(e);return"select"!==e?n:(t.data&&t.data.attrs&&void 0!==t.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n)},createElementNS:function(e,t){return document.createElementNS(Kn[e],t)},createTextNode:function(e){return document.createTextNode(e)},createComment:function(e){return document.createComment(e)},insertBefore:function(e,t,n){e.insertBefore(t,n)},removeChild:function(e,t){e.removeChild(t)},appendChild:function(e,t){e.appendChild(t)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},tagName:function(e){return e.tagName},setTextContent:function(e,t){e.textContent=t},setStyleScope:function(e,t){e.setAttribute(t,"")}}),ir={create:function(e,t){ar(t)},update:function(e,t){e.data.ref!==t.data.ref&&(ar(e,!0),ar(t))},destroy:function(e){ar(e,!0)}};function ar(e,t){var n=e.data.ref;if(i(n)){var r=e.context,a=e.componentInstance||e.elm,o=r.$refs;t?Array.isArray(o[n])?v(o[n],a):o[n]===a&&(o[n]=void 0):e.data.refInFor?Array.isArray(o[n])?o[n].indexOf(a)<0&&o[n].push(a):o[n]=[a]:o[n]=a}}var or=new ge("",{},[]),sr=["create","activate","update","remove","destroy"];function lr(e,t){return e.key===t.key&&(e.tag===t.tag&&e.isComment===t.isComment&&i(e.data)===i(t.data)&&function(e,t){if("input"!==e.tag)return!0;var n,r=i(n=e.data)&&i(n=n.attrs)&&n.type,a=i(n=t.data)&&i(n=n.attrs)&&n.type;return r===a||tr(r)&&tr(a)}(e,t)||a(e.isAsyncPlaceholder)&&e.asyncFactory===t.asyncFactory&&r(t.asyncFactory.error))}function cr(e,t,n){var r,a,o={};for(r=t;r<=n;++r)i(a=e[r].key)&&(o[a]=r);return o}var ur={create:hr,update:hr,destroy:function(e){hr(e,or)}};function hr(e,t){(e.data.directives||t.data.directives)&&function(e,t){var n,r,i,a=e===or,o=t===or,s=fr(e.data.directives,e.context),l=fr(t.data.directives,t.context),c=[],u=[];for(n in l)r=s[n],i=l[n],r?(i.oldValue=r.value,i.oldArg=r.arg,Ar(i,"update",t,e),i.def&&i.def.componentUpdated&&u.push(i)):(Ar(i,"bind",t,e),i.def&&i.def.inserted&&c.push(i));if(c.length){var h=function(){for(var n=0;n<c.length;n++)Ar(c[n],"inserted",t,e)};a?lt(t,"insert",h):h()}u.length&&lt(t,"postpatch",function(){for(var n=0;n<u.length;n++)Ar(u[n],"componentUpdated",t,e)});if(!a)for(n in s)l[n]||Ar(s[n],"unbind",e,e,o)}(e,t)}var dr=Object.create(null);function fr(e,t){var n,r,i=Object.create(null);if(!e)return i;for(n=0;n<e.length;n++)(r=e[n]).modifiers||(r.modifiers=dr),i[pr(r)]=r,r.def=Ne(t.$options,"directives",r.name);return i}function pr(e){return e.rawName||e.name+"."+Object.keys(e.modifiers||{}).join(".")}function Ar(e,t,n,r,i){var a=e.def&&e.def[t];if(a)try{a(n.elm,e,n,r,i)}catch(r){ze(r,n.context,"directive "+e.name+" "+t+" hook")}}var gr=[ir,ur];function mr(e,t){var n=t.componentOptions;if(!(i(n)&&!1===n.Ctor.options.inheritAttrs||r(e.data.attrs)&&r(t.data.attrs))){var a,o,s=t.elm,l=e.data.attrs||{},c=t.data.attrs||{};for(a in i(c.__ob__)&&(c=t.data.attrs=T({},c)),c)o=c[a],l[a]!==o&&vr(s,a,o);for(a in(X||Z)&&c.value!==l.value&&vr(s,"value",c.value),l)r(c[a])&&(Qn(a)?s.removeAttributeNS(jn,zn(a)):Rn(a)||s.removeAttribute(a))}}function vr(e,t,n){e.tagName.indexOf("-")>-1?yr(e,t,n):Hn(t)?Vn(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):Rn(t)?e.setAttribute(t,Un(t,n)):Qn(t)?Vn(n)?e.removeAttributeNS(jn,zn(t)):e.setAttributeNS(jn,t,n):yr(e,t,n)}function yr(e,t,n){if(Vn(n))e.removeAttribute(t);else{if(X&&!J&&"TEXTAREA"===e.tagName&&"placeholder"===t&&""!==n&&!e.__ieph){var r=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",r)};e.addEventListener("input",r),e.__ieph=!0}e.setAttribute(t,n)}}var br={create:mr,update:mr};function wr(e,t){var n=t.elm,a=t.data,o=e.data;if(!(r(a.staticClass)&&r(a.class)&&(r(o)||r(o.staticClass)&&r(o.class)))){var s=Gn(t),l=n._transitionClasses;i(l)&&(s=qn(s,Wn(l))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var xr,_r,Cr,Sr,kr,Br,Er={create:wr,update:wr},Tr=/[\w).+\-_$\]]/;function Ir(e){var t,n,r,i,a,o=!1,s=!1,l=!1,c=!1,u=0,h=0,d=0,f=0;for(r=0;r<e.length;r++)if(n=t,t=e.charCodeAt(r),o)39===t&&92!==n&&(o=!1);else if(s)34===t&&92!==n&&(s=!1);else if(l)96===t&&92!==n&&(l=!1);else if(c)47===t&&92!==n&&(c=!1);else if(124!==t||124===e.charCodeAt(r+1)||124===e.charCodeAt(r-1)||u||h||d){switch(t){case 34:s=!0;break;case 39:o=!0;break;case 96:l=!0;break;case 40:d++;break;case 41:d--;break;case 91:h++;break;case 93:h--;break;case 123:u++;break;case 125:u--}if(47===t){for(var p=r-1,A=void 0;p>=0&&" "===(A=e.charAt(p));p--);A&&Tr.test(A)||(c=!0)}}else void 0===i?(f=r+1,i=e.slice(0,r).trim()):g();function g(){(a||(a=[])).push(e.slice(f,r).trim()),f=r+1}if(void 0===i?i=e.slice(0,r).trim():0!==f&&g(),a)for(r=0;r<a.length;r++)i=Mr(i,a[r]);return i}function Mr(e,t){var n=t.indexOf("(");if(n<0)return'_f("'+t+'")('+e+")";var r=t.slice(0,n),i=t.slice(n+1);return'_f("'+r+'")('+e+(")"!==i?","+i:i)}function Fr(e,t){console.error("[Vue compiler]: "+e)}function Dr(e,t){return e?e.map(function(e){return e[t]}).filter(function(e){return e}):[]}function Pr(e,t,n,r,i){(e.props||(e.props=[])).push(Vr({name:t,value:n,dynamic:i},r)),e.plain=!1}function Or(e,t,n,r,i){(i?e.dynamicAttrs||(e.dynamicAttrs=[]):e.attrs||(e.attrs=[])).push(Vr({name:t,value:n,dynamic:i},r)),e.plain=!1}function Lr(e,t,n,r){e.attrsMap[t]=n,e.attrsList.push(Vr({name:t,value:n},r))}function Rr(e,t,n,r,i,a,o,s){(e.directives||(e.directives=[])).push(Vr({name:t,rawName:n,value:r,arg:i,isDynamicArg:a,modifiers:o},s)),e.plain=!1}function Nr(e,t,n){return n?"_p("+t+',"'+e+'")':e+t}function Ur(e,t,r,i,a,o,s,l){var c;(i=i||n).right?l?t="("+t+")==='click'?'contextmenu':("+t+")":"click"===t&&(t="contextmenu",delete i.right):i.middle&&(l?t="("+t+")==='click'?'mouseup':("+t+")":"click"===t&&(t="mouseup")),i.capture&&(delete i.capture,t=Nr("!",t,l)),i.once&&(delete i.once,t=Nr("~",t,l)),i.passive&&(delete i.passive,t=Nr("&",t,l)),i.native?(delete i.native,c=e.nativeEvents||(e.nativeEvents={})):c=e.events||(e.events={});var u=Vr({value:r.trim(),dynamic:l},s);i!==n&&(u.modifiers=i);var h=c[t];Array.isArray(h)?a?h.unshift(u):h.push(u):c[t]=h?a?[u,h]:[h,u]:u,e.plain=!1}function Hr(e,t){return e.rawAttrsMap[":"+t]||e.rawAttrsMap["v-bind:"+t]||e.rawAttrsMap[t]}function jr(e,t,n){var r=Qr(e,":"+t)||Qr(e,"v-bind:"+t);if(null!=r)return Ir(r);if(!1!==n){var i=Qr(e,t);if(null!=i)return JSON.stringify(i)}}function Qr(e,t,n){var r;if(null!=(r=e.attrsMap[t]))for(var i=e.attrsList,a=0,o=i.length;a<o;a++)if(i[a].name===t){i.splice(a,1);break}return n&&delete e.attrsMap[t],r}function zr(e,t){for(var n=e.attrsList,r=0,i=n.length;r<i;r++){var a=n[r];if(t.test(a.name))return n.splice(r,1),a}}function Vr(e,t){return t&&(null!=t.start&&(e.start=t.start),null!=t.end&&(e.end=t.end)),e}function Gr(e,t,n){var r=n||{},i=r.number,a="$$v";r.trim&&(a="(typeof $$v === 'string'? $$v.trim(): $$v)"),i&&(a="_n("+a+")");var o=$r(t,a);e.model={value:"("+t+")",expression:JSON.stringify(t),callback:"function ($$v) {"+o+"}"}}function $r(e,t){var n=function(e){if(e=e.trim(),xr=e.length,e.indexOf("[")<0||e.lastIndexOf("]")<xr-1)return(Sr=e.lastIndexOf("."))>-1?{exp:e.slice(0,Sr),key:'"'+e.slice(Sr+1)+'"'}:{exp:e,key:null};_r=e,Sr=kr=Br=0;for(;!Wr();)Kr(Cr=qr())?Xr(Cr):91===Cr&&Yr(Cr);return{exp:e.slice(0,kr),key:e.slice(kr+1,Br)}}(e);return null===n.key?e+"="+t:"$set("+n.exp+", "+n.key+", "+t+")"}function qr(){return _r.charCodeAt(++Sr)}function Wr(){return Sr>=xr}function Kr(e){return 34===e||39===e}function Yr(e){var t=1;for(kr=Sr;!Wr();)if(Kr(e=qr()))Xr(e);else if(91===e&&t++,93===e&&t--,0===t){Br=Sr;break}}function Xr(e){for(var t=e;!Wr()&&(e=qr())!==t;);}var Jr,Zr="__r",ei="__c";function ti(e,t,n){var r=Jr;return function i(){null!==t.apply(null,arguments)&&ii(e,i,n,r)}}var ni=We&&!(te&&Number(te[1])<=53);function ri(e,t,n,r){if(ni){var i=un,a=t;t=a._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=i||e.timeStamp<=0||e.target.ownerDocument!==document)return a.apply(this,arguments)}}Jr.addEventListener(e,t,re?{capture:n,passive:r}:n)}function ii(e,t,n,r){(r||Jr).removeEventListener(e,t._wrapper||t,n)}function ai(e,t){if(!r(e.data.on)||!r(t.data.on)){var n=t.data.on||{},a=e.data.on||{};Jr=t.elm,function(e){if(i(e[Zr])){var t=X?"change":"input";e[t]=[].concat(e[Zr],e[t]||[]),delete e[Zr]}i(e[ei])&&(e.change=[].concat(e[ei],e.change||[]),delete e[ei])}(n),st(n,a,ri,ii,ti,t.context),Jr=void 0}}var oi,si={create:ai,update:ai};function li(e,t){if(!r(e.data.domProps)||!r(t.data.domProps)){var n,a,o=t.elm,s=e.data.domProps||{},l=t.data.domProps||{};for(n in i(l.__ob__)&&(l=t.data.domProps=T({},l)),s)n in l||(o[n]="");for(n in l){if(a=l[n],"textContent"===n||"innerHTML"===n){if(t.children&&(t.children.length=0),a===s[n])continue;1===o.childNodes.length&&o.removeChild(o.childNodes[0])}if("value"===n&&"PROGRESS"!==o.tagName){o._value=a;var c=r(a)?"":String(a);ci(o,c)&&(o.value=c)}else if("innerHTML"===n&&Xn(o.tagName)&&r(o.innerHTML)){(oi=oi||document.createElement("div")).innerHTML="<svg>"+a+"</svg>";for(var u=oi.firstChild;o.firstChild;)o.removeChild(o.firstChild);for(;u.firstChild;)o.appendChild(u.firstChild)}else if(a!==s[n])try{o[n]=a}catch(e){}}}}function ci(e,t){return!e.composing&&("OPTION"===e.tagName||function(e,t){var n=!0;try{n=document.activeElement!==e}catch(e){}return n&&e.value!==t}(e,t)||function(e,t){var n=e.value,r=e._vModifiers;if(i(r)){if(r.number)return p(n)!==p(t);if(r.trim)return n.trim()!==t.trim()}return n!==t}(e,t))}var ui={create:li,update:li},hi=w(function(e){var t={},n=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach(function(e){if(e){var r=e.split(n);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t});function di(e){var t=fi(e.style);return e.staticStyle?T(e.staticStyle,t):t}function fi(e){return Array.isArray(e)?I(e):"string"==typeof e?hi(e):e}var pi,Ai=/^--/,gi=/\s*!important$/,mi=function(e,t,n){if(Ai.test(t))e.style.setProperty(t,n);else if(gi.test(n))e.style.setProperty(k(t),n.replace(gi,""),"important");else{var r=yi(t);if(Array.isArray(n))for(var i=0,a=n.length;i<a;i++)e.style[r]=n[i];else e.style[r]=n}},vi=["Webkit","Moz","ms"],yi=w(function(e){if(pi=pi||document.createElement("div").style,"filter"!==(e=_(e))&&e in pi)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<vi.length;n++){var r=vi[n]+t;if(r in pi)return r}});function bi(e,t){var n=t.data,a=e.data;if(!(r(n.staticStyle)&&r(n.style)&&r(a.staticStyle)&&r(a.style))){var o,s,l=t.elm,c=a.staticStyle,u=a.normalizedStyle||a.style||{},h=c||u,d=fi(t.data.style)||{};t.data.normalizedStyle=i(d.__ob__)?T({},d):d;var f=function(e,t){var n,r={};if(t)for(var i=e;i.componentInstance;)(i=i.componentInstance._vnode)&&i.data&&(n=di(i.data))&&T(r,n);(n=di(e.data))&&T(r,n);for(var a=e;a=a.parent;)a.data&&(n=di(a.data))&&T(r,n);return r}(t,!0);for(s in h)r(f[s])&&mi(l,s,"");for(s in f)(o=f[s])!==h[s]&&mi(l,s,null==o?"":o)}}var wi={create:bi,update:bi},xi=/\s+/;function _i(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(xi).forEach(function(t){return e.classList.add(t)}):e.classList.add(t);else{var n=" "+(e.getAttribute("class")||"")+" ";n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function Ci(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(xi).forEach(function(t){return e.classList.remove(t)}):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{for(var n=" "+(e.getAttribute("class")||"")+" ",r=" "+t+" ";n.indexOf(r)>=0;)n=n.replace(r," ");(n=n.trim())?e.setAttribute("class",n):e.removeAttribute("class")}}function Si(e){if(e){if("object"==typeof e){var t={};return!1!==e.css&&T(t,ki(e.name||"v")),T(t,e),t}return"string"==typeof e?ki(e):void 0}}var ki=w(function(e){return{enterClass:e+"-enter",enterToClass:e+"-enter-to",enterActiveClass:e+"-enter-active",leaveClass:e+"-leave",leaveToClass:e+"-leave-to",leaveActiveClass:e+"-leave-active"}}),Bi=q&&!J,Ei="transition",Ti="animation",Ii="transition",Mi="transitionend",Fi="animation",Di="animationend";Bi&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Ii="WebkitTransition",Mi="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Fi="WebkitAnimation",Di="webkitAnimationEnd"));var Pi=q?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function Oi(e){Pi(function(){Pi(e)})}function Li(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),_i(e,t))}function Ri(e,t){e._transitionClasses&&v(e._transitionClasses,t),Ci(e,t)}function Ni(e,t,n){var r=Hi(e,t),i=r.type,a=r.timeout,o=r.propCount;if(!i)return n();var s=i===Ei?Mi:Di,l=0,c=function(){e.removeEventListener(s,u),n()},u=function(t){t.target===e&&++l>=o&&c()};setTimeout(function(){l<o&&c()},a+1),e.addEventListener(s,u)}var Ui=/\b(transform|all)(,|$)/;function Hi(e,t){var n,r=window.getComputedStyle(e),i=(r[Ii+"Delay"]||"").split(", "),a=(r[Ii+"Duration"]||"").split(", "),o=ji(i,a),s=(r[Fi+"Delay"]||"").split(", "),l=(r[Fi+"Duration"]||"").split(", "),c=ji(s,l),u=0,h=0;return t===Ei?o>0&&(n=Ei,u=o,h=a.length):t===Ti?c>0&&(n=Ti,u=c,h=l.length):h=(n=(u=Math.max(o,c))>0?o>c?Ei:Ti:null)?n===Ei?a.length:l.length:0,{type:n,timeout:u,propCount:h,hasTransform:n===Ei&&Ui.test(r[Ii+"Property"])}}function ji(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max.apply(null,t.map(function(t,n){return Qi(t)+Qi(e[n])}))}function Qi(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}function zi(e,t){var n=e.elm;i(n._leaveCb)&&(n._leaveCb.cancelled=!0,n._leaveCb());var a=Si(e.data.transition);if(!r(a)&&!i(n._enterCb)&&1===n.nodeType){for(var o=a.css,l=a.type,c=a.enterClass,u=a.enterToClass,h=a.enterActiveClass,d=a.appearClass,f=a.appearToClass,A=a.appearActiveClass,g=a.beforeEnter,m=a.enter,v=a.afterEnter,y=a.enterCancelled,b=a.beforeAppear,w=a.appear,x=a.afterAppear,_=a.appearCancelled,C=a.duration,S=Jt,k=Jt.$vnode;k&&k.parent;)S=k.context,k=k.parent;var B=!S._isMounted||!e.isRootInsert;if(!B||w||""===w){var E=B&&d?d:c,T=B&&A?A:h,I=B&&f?f:u,M=B&&b||g,F=B&&"function"==typeof w?w:m,D=B&&x||v,P=B&&_||y,O=p(s(C)?C.enter:C);0;var R=!1!==o&&!J,N=$i(F),U=n._enterCb=L(function(){R&&(Ri(n,I),Ri(n,T)),U.cancelled?(R&&Ri(n,E),P&&P(n)):D&&D(n),n._enterCb=null});e.data.show||lt(e,"insert",function(){var t=n.parentNode,r=t&&t._pending&&t._pending[e.key];r&&r.tag===e.tag&&r.elm._leaveCb&&r.elm._leaveCb(),F&&F(n,U)}),M&&M(n),R&&(Li(n,E),Li(n,T),Oi(function(){Ri(n,E),U.cancelled||(Li(n,I),N||(Gi(O)?setTimeout(U,O):Ni(n,l,U)))})),e.data.show&&(t&&t(),F&&F(n,U)),R||N||U()}}}function Vi(e,t){var n=e.elm;i(n._enterCb)&&(n._enterCb.cancelled=!0,n._enterCb());var a=Si(e.data.transition);if(r(a)||1!==n.nodeType)return t();if(!i(n._leaveCb)){var o=a.css,l=a.type,c=a.leaveClass,u=a.leaveToClass,h=a.leaveActiveClass,d=a.beforeLeave,f=a.leave,A=a.afterLeave,g=a.leaveCancelled,m=a.delayLeave,v=a.duration,y=!1!==o&&!J,b=$i(f),w=p(s(v)?v.leave:v);0;var x=n._leaveCb=L(function(){n.parentNode&&n.parentNode._pending&&(n.parentNode._pending[e.key]=null),y&&(Ri(n,u),Ri(n,h)),x.cancelled?(y&&Ri(n,c),g&&g(n)):(t(),A&&A(n)),n._leaveCb=null});m?m(_):_()}function _(){x.cancelled||(!e.data.show&&n.parentNode&&((n.parentNode._pending||(n.parentNode._pending={}))[e.key]=e),d&&d(n),y&&(Li(n,c),Li(n,h),Oi(function(){Ri(n,c),x.cancelled||(Li(n,u),b||(Gi(w)?setTimeout(x,w):Ni(n,l,x)))})),f&&f(n,x),y||b||x())}}function Gi(e){return"number"==typeof e&&!isNaN(e)}function $i(e){if(r(e))return!1;var t=e.fns;return i(t)?$i(Array.isArray(t)?t[0]:t):(e._length||e.length)>1}function qi(e,t){!0!==t.data.show&&zi(t)}var Wi=function(e){var t,n,s={},l=e.modules,c=e.nodeOps;for(t=0;t<sr.length;++t)for(s[sr[t]]=[],n=0;n<l.length;++n)i(l[n][sr[t]])&&s[sr[t]].push(l[n][sr[t]]);function u(e){var t=c.parentNode(e);i(t)&&c.removeChild(t,e)}function h(e,t,n,r,o,l,u){if(i(e.elm)&&i(l)&&(e=l[u]=be(e)),e.isRootInsert=!o,!function(e,t,n,r){var o=e.data;if(i(o)){var l=i(e.componentInstance)&&o.keepAlive;if(i(o=o.hook)&&i(o=o.init)&&o(e,!1),i(e.componentInstance))return d(e,t),f(n,e.elm,r),a(l)&&function(e,t,n,r){for(var a,o=e;o.componentInstance;)if(o=o.componentInstance._vnode,i(a=o.data)&&i(a=a.transition)){for(a=0;a<s.activate.length;++a)s.activate[a](or,o);t.push(o);break}f(n,e.elm,r)}(e,t,n,r),!0}}(e,t,n,r)){var h=e.data,A=e.children,g=e.tag;i(g)?(e.elm=e.ns?c.createElementNS(e.ns,g):c.createElement(g,e),v(e),p(e,A,t),i(h)&&m(e,t),f(n,e.elm,r)):a(e.isComment)?(e.elm=c.createComment(e.text),f(n,e.elm,r)):(e.elm=c.createTextNode(e.text),f(n,e.elm,r))}}function d(e,t){i(e.data.pendingInsert)&&(t.push.apply(t,e.data.pendingInsert),e.data.pendingInsert=null),e.elm=e.componentInstance.$el,g(e)?(m(e,t),v(e)):(ar(e),t.push(e))}function f(e,t,n){i(e)&&(i(n)?c.parentNode(n)===e&&c.insertBefore(e,t,n):c.appendChild(e,t))}function p(e,t,n){if(Array.isArray(t))for(var r=0;r<t.length;++r)h(t[r],n,e.elm,null,!0,t,r);else o(e.text)&&c.appendChild(e.elm,c.createTextNode(String(e.text)))}function g(e){for(;e.componentInstance;)e=e.componentInstance._vnode;return i(e.tag)}function m(e,n){for(var r=0;r<s.create.length;++r)s.create[r](or,e);i(t=e.data.hook)&&(i(t.create)&&t.create(or,e),i(t.insert)&&n.push(e))}function v(e){var t;if(i(t=e.fnScopeId))c.setStyleScope(e.elm,t);else for(var n=e;n;)i(t=n.context)&&i(t=t.$options._scopeId)&&c.setStyleScope(e.elm,t),n=n.parent;i(t=Jt)&&t!==e.context&&t!==e.fnContext&&i(t=t.$options._scopeId)&&c.setStyleScope(e.elm,t)}function y(e,t,n,r,i,a){for(;r<=i;++r)h(n[r],a,e,t,!1,n,r)}function b(e){var t,n,r=e.data;if(i(r))for(i(t=r.hook)&&i(t=t.destroy)&&t(e),t=0;t<s.destroy.length;++t)s.destroy[t](e);if(i(t=e.children))for(n=0;n<e.children.length;++n)b(e.children[n])}function w(e,t,n){for(;t<=n;++t){var r=e[t];i(r)&&(i(r.tag)?(x(r),b(r)):u(r.elm))}}function x(e,t){if(i(t)||i(e.data)){var n,r=s.remove.length+1;for(i(t)?t.listeners+=r:t=function(e,t){function n(){0==--n.listeners&&u(e)}return n.listeners=t,n}(e.elm,r),i(n=e.componentInstance)&&i(n=n._vnode)&&i(n.data)&&x(n,t),n=0;n<s.remove.length;++n)s.remove[n](e,t);i(n=e.data.hook)&&i(n=n.remove)?n(e,t):t()}else u(e.elm)}function _(e,t,n,r){for(var a=n;a<r;a++){var o=t[a];if(i(o)&&lr(e,o))return a}}function C(e,t,n,o,l,u){if(e!==t){i(t.elm)&&i(o)&&(t=o[l]=be(t));var d=t.elm=e.elm;if(a(e.isAsyncPlaceholder))i(t.asyncFactory.resolved)?B(e.elm,t,n):t.isAsyncPlaceholder=!0;else if(a(t.isStatic)&&a(e.isStatic)&&t.key===e.key&&(a(t.isCloned)||a(t.isOnce)))t.componentInstance=e.componentInstance;else{var f,p=t.data;i(p)&&i(f=p.hook)&&i(f=f.prepatch)&&f(e,t);var A=e.children,m=t.children;if(i(p)&&g(t)){for(f=0;f<s.update.length;++f)s.update[f](e,t);i(f=p.hook)&&i(f=f.update)&&f(e,t)}r(t.text)?i(A)&&i(m)?A!==m&&function(e,t,n,a,o){for(var s,l,u,d=0,f=0,p=t.length-1,A=t[0],g=t[p],m=n.length-1,v=n[0],b=n[m],x=!o;d<=p&&f<=m;)r(A)?A=t[++d]:r(g)?g=t[--p]:lr(A,v)?(C(A,v,a,n,f),A=t[++d],v=n[++f]):lr(g,b)?(C(g,b,a,n,m),g=t[--p],b=n[--m]):lr(A,b)?(C(A,b,a,n,m),x&&c.insertBefore(e,A.elm,c.nextSibling(g.elm)),A=t[++d],b=n[--m]):lr(g,v)?(C(g,v,a,n,f),x&&c.insertBefore(e,g.elm,A.elm),g=t[--p],v=n[++f]):(r(s)&&(s=cr(t,d,p)),r(l=i(v.key)?s[v.key]:_(v,t,d,p))?h(v,a,e,A.elm,!1,n,f):lr(u=t[l],v)?(C(u,v,a,n,f),t[l]=void 0,x&&c.insertBefore(e,u.elm,A.elm)):h(v,a,e,A.elm,!1,n,f),v=n[++f]);d>p?y(e,r(n[m+1])?null:n[m+1].elm,n,f,m,a):f>m&&w(t,d,p)}(d,A,m,n,u):i(m)?(i(e.text)&&c.setTextContent(d,""),y(d,null,m,0,m.length-1,n)):i(A)?w(A,0,A.length-1):i(e.text)&&c.setTextContent(d,""):e.text!==t.text&&c.setTextContent(d,t.text),i(p)&&i(f=p.hook)&&i(f=f.postpatch)&&f(e,t)}}}function S(e,t,n){if(a(n)&&i(e.parent))e.parent.data.pendingInsert=t;else for(var r=0;r<t.length;++r)t[r].data.hook.insert(t[r])}var k=A("attrs,class,staticClass,staticStyle,key");function B(e,t,n,r){var o,s=t.tag,l=t.data,c=t.children;if(r=r||l&&l.pre,t.elm=e,a(t.isComment)&&i(t.asyncFactory))return t.isAsyncPlaceholder=!0,!0;if(i(l)&&(i(o=l.hook)&&i(o=o.init)&&o(t,!0),i(o=t.componentInstance)))return d(t,n),!0;if(i(s)){if(i(c))if(e.hasChildNodes())if(i(o=l)&&i(o=o.domProps)&&i(o=o.innerHTML)){if(o!==e.innerHTML)return!1}else{for(var u=!0,h=e.firstChild,f=0;f<c.length;f++){if(!h||!B(h,c[f],n,r)){u=!1;break}h=h.nextSibling}if(!u||h)return!1}else p(t,c,n);if(i(l)){var A=!1;for(var g in l)if(!k(g)){A=!0,m(t,n);break}!A&&l.class&&it(l.class)}}else e.data!==t.text&&(e.data=t.text);return!0}return function(e,t,n,o){if(!r(t)){var l,u=!1,d=[];if(r(e))u=!0,h(t,d);else{var f=i(e.nodeType);if(!f&&lr(e,t))C(e,t,d,null,null,o);else{if(f){if(1===e.nodeType&&e.hasAttribute(R)&&(e.removeAttribute(R),n=!0),a(n)&&B(e,t,d))return S(t,d,!0),e;l=e,e=new ge(c.tagName(l).toLowerCase(),{},[],void 0,l)}var p=e.elm,A=c.parentNode(p);if(h(t,d,p._leaveCb?null:A,c.nextSibling(p)),i(t.parent))for(var m=t.parent,v=g(t);m;){for(var y=0;y<s.destroy.length;++y)s.destroy[y](m);if(m.elm=t.elm,v){for(var x=0;x<s.create.length;++x)s.create[x](or,m);var _=m.data.hook.insert;if(_.merged)for(var k=1;k<_.fns.length;k++)_.fns[k]()}else ar(m);m=m.parent}i(A)?w([e],0,0):i(e.tag)&&b(e)}}return S(t,d,u),t.elm}i(e)&&b(e)}}({nodeOps:rr,modules:[br,Er,si,ui,wi,q?{create:qi,activate:qi,remove:function(e,t){!0!==e.data.show?Vi(e,t):t()}}:{}].concat(gr)});J&&document.addEventListener("selectionchange",function(){var e=document.activeElement;e&&e.vmodel&&na(e,"input")});var Ki={inserted:function(e,t,n,r){"select"===n.tag?(r.elm&&!r.elm._vOptions?lt(n,"postpatch",function(){Ki.componentUpdated(e,t,n)}):Yi(e,t,n.context),e._vOptions=[].map.call(e.options,Zi)):("textarea"===n.tag||tr(e.type))&&(e._vModifiers=t.modifiers,t.modifiers.lazy||(e.addEventListener("compositionstart",ea),e.addEventListener("compositionend",ta),e.addEventListener("change",ta),J&&(e.vmodel=!0)))},componentUpdated:function(e,t,n){if("select"===n.tag){Yi(e,t,n.context);var r=e._vOptions,i=e._vOptions=[].map.call(e.options,Zi);if(i.some(function(e,t){return!P(e,r[t])}))(e.multiple?t.value.some(function(e){return Ji(e,i)}):t.value!==t.oldValue&&Ji(t.value,i))&&na(e,"change")}}};function Yi(e,t,n){Xi(e,t,n),(X||Z)&&setTimeout(function(){Xi(e,t,n)},0)}function Xi(e,t,n){var r=t.value,i=e.multiple;if(!i||Array.isArray(r)){for(var a,o,s=0,l=e.options.length;s<l;s++)if(o=e.options[s],i)a=O(r,Zi(o))>-1,o.selected!==a&&(o.selected=a);else if(P(Zi(o),r))return void(e.selectedIndex!==s&&(e.selectedIndex=s));i||(e.selectedIndex=-1)}}function Ji(e,t){return t.every(function(t){return!P(t,e)})}function Zi(e){return"_value"in e?e._value:e.value}function ea(e){e.target.composing=!0}function ta(e){e.target.composing&&(e.target.composing=!1,na(e.target,"input"))}function na(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function ra(e){return!e.componentInstance||e.data&&e.data.transition?e:ra(e.componentInstance._vnode)}var ia={model:Ki,show:{bind:function(e,t,n){var r=t.value,i=(n=ra(n)).data&&n.data.transition,a=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;r&&i?(n.data.show=!0,zi(n,function(){e.style.display=a})):e.style.display=r?a:"none"},update:function(e,t,n){var r=t.value;!r!=!t.oldValue&&((n=ra(n)).data&&n.data.transition?(n.data.show=!0,r?zi(n,function(){e.style.display=e.__vOriginalDisplay}):Vi(n,function(){e.style.display="none"})):e.style.display=r?e.__vOriginalDisplay:"none")},unbind:function(e,t,n,r,i){i||(e.style.display=e.__vOriginalDisplay)}}},aa={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function oa(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?oa(qt(t.children)):e}function sa(e){var t={},n=e.$options;for(var r in n.propsData)t[r]=e[r];var i=n._parentListeners;for(var a in i)t[_(a)]=i[a];return t}function la(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}var ca=function(e){return e.tag||$t(e)},ua=function(e){return"show"===e.name},ha={name:"transition",props:aa,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(ca)).length){0;var r=this.mode;0;var i=n[0];if(function(e){for(;e=e.parent;)if(e.data.transition)return!0}(this.$vnode))return i;var a=oa(i);if(!a)return i;if(this._leaving)return la(e,i);var s="__transition-"+this._uid+"-";a.key=null==a.key?a.isComment?s+"comment":s+a.tag:o(a.key)?0===String(a.key).indexOf(s)?a.key:s+a.key:a.key;var l=(a.data||(a.data={})).transition=sa(this),c=this._vnode,u=oa(c);if(a.data.directives&&a.data.directives.some(ua)&&(a.data.show=!0),u&&u.data&&!function(e,t){return t.key===e.key&&t.tag===e.tag}(a,u)&&!$t(u)&&(!u.componentInstance||!u.componentInstance._vnode.isComment)){var h=u.data.transition=T({},l);if("out-in"===r)return this._leaving=!0,lt(h,"afterLeave",function(){t._leaving=!1,t.$forceUpdate()}),la(e,i);if("in-out"===r){if($t(a))return c;var d,f=function(){d()};lt(l,"afterEnter",f),lt(l,"enterCancelled",f),lt(h,"delayLeave",function(e){d=e})}}return i}}},da=T({tag:String,moveClass:String},aa);function fa(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function pa(e){e.data.newPos=e.elm.getBoundingClientRect()}function Aa(e){var t=e.data.pos,n=e.data.newPos,r=t.left-n.left,i=t.top-n.top;if(r||i){e.data.moved=!0;var a=e.elm.style;a.transform=a.WebkitTransform="translate("+r+"px,"+i+"px)",a.transitionDuration="0s"}}delete da.mode;var ga={Transition:ha,TransitionGroup:{props:da,beforeMount:function(){var e=this,t=this._update;this._update=function(n,r){var i=Zt(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,i(),t.call(e,n,r)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],a=this.children=[],o=sa(this),s=0;s<i.length;s++){var l=i[s];if(l.tag)if(null!=l.key&&0!==String(l.key).indexOf("__vlist"))a.push(l),n[l.key]=l,(l.data||(l.data={})).transition=o;else;}if(r){for(var c=[],u=[],h=0;h<r.length;h++){var d=r[h];d.data.transition=o,d.data.pos=d.elm.getBoundingClientRect(),n[d.key]?c.push(d):u.push(d)}this.kept=e(t,null,c),this.removed=u}return e(t,null,a)},updated:function(){var e=this.prevChildren,t=this.moveClass||(this.name||"v")+"-move";e.length&&this.hasMove(e[0].elm,t)&&(e.forEach(fa),e.forEach(pa),e.forEach(Aa),this._reflow=document.body.offsetHeight,e.forEach(function(e){if(e.data.moved){var n=e.elm,r=n.style;Li(n,t),r.transform=r.WebkitTransform=r.transitionDuration="",n.addEventListener(Mi,n._moveCb=function e(r){r&&r.target!==n||r&&!/transform$/.test(r.propertyName)||(n.removeEventListener(Mi,e),n._moveCb=null,Ri(n,t))})}}))},methods:{hasMove:function(e,t){if(!Bi)return!1;if(this._hasMove)return this._hasMove;var n=e.cloneNode();e._transitionClasses&&e._transitionClasses.forEach(function(e){Ci(n,e)}),_i(n,t),n.style.display="none",this.$el.appendChild(n);var r=Hi(n);return this.$el.removeChild(n),this._hasMove=r.hasTransform}}}};kn.config.mustUseProp=Ln,kn.config.isReservedTag=Jn,kn.config.isReservedAttr=Pn,kn.config.getTagNamespace=Zn,kn.config.isUnknownElement=function(e){if(!q)return!0;if(Jn(e))return!1;if(e=e.toLowerCase(),null!=er[e])return er[e];var t=document.createElement(e);return e.indexOf("-")>-1?er[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:er[e]=/HTMLUnknownElement/.test(t.toString())},T(kn.options.directives,ia),T(kn.options.components,ga),kn.prototype.__patch__=q?Wi:M,kn.prototype.$mount=function(e,t){return function(e,t,n){return e.$el=t,e.$options.render||(e.$options.render=ve),nn(e,"beforeMount"),new An(e,function(){e._update(e._render(),n)},M,{before:function(){e._isMounted&&!e._isDestroyed&&nn(e,"beforeUpdate")}},!0),n=!1,null==e.$vnode&&(e._isMounted=!0,nn(e,"mounted")),e}(this,e=e&&q?nr(e):void 0,t)},q&&setTimeout(function(){H.devtools&&oe&&oe.emit("init",kn)},0);var ma=/\{\{((?:.|\r?\n)+?)\}\}/g,va=/[-.*+?^${}()|[\]\/\\]/g,ya=w(function(e){var t=e[0].replace(va,"\\$&"),n=e[1].replace(va,"\\$&");return new RegExp(t+"((?:.|\\n)+?)"+n,"g")});function ba(e,t){var n=t?ya(t):ma;if(n.test(e)){for(var r,i,a,o=[],s=[],l=n.lastIndex=0;r=n.exec(e);){(i=r.index)>l&&(s.push(a=e.slice(l,i)),o.push(JSON.stringify(a)));var c=Ir(r[1].trim());o.push("_s("+c+")"),s.push({"@binding":c}),l=i+r[0].length}return l<e.length&&(s.push(a=e.slice(l)),o.push(JSON.stringify(a))),{expression:o.join("+"),tokens:s}}}var wa={staticKeys:["staticClass"],transformNode:function(e,t){t.warn;var n=Qr(e,"class");n&&(e.staticClass=JSON.stringify(n));var r=jr(e,"class",!1);r&&(e.classBinding=r)},genData:function(e){var t="";return e.staticClass&&(t+="staticClass:"+e.staticClass+","),e.classBinding&&(t+="class:"+e.classBinding+","),t}};var xa,_a={staticKeys:["staticStyle"],transformNode:function(e,t){t.warn;var n=Qr(e,"style");n&&(e.staticStyle=JSON.stringify(hi(n)));var r=jr(e,"style",!1);r&&(e.styleBinding=r)},genData:function(e){var t="";return e.staticStyle&&(t+="staticStyle:"+e.staticStyle+","),e.styleBinding&&(t+="style:("+e.styleBinding+"),"),t}},Ca=function(e){return(xa=xa||document.createElement("div")).innerHTML=e,xa.textContent},Sa=A("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),ka=A("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),Ba=A("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),Ea=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,Ta=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,Ia="[a-zA-Z_][\\-\\.0-9_a-zA-Z"+j.source+"]*",Ma="((?:"+Ia+"\\:)?"+Ia+")",Fa=new RegExp("^<"+Ma),Da=/^\s*(\/?)>/,Pa=new RegExp("^<\\/"+Ma+"[^>]*>"),Oa=/^<!DOCTYPE [^>]+>/i,La=/^<!\--/,Ra=/^<!\[/,Na=A("script,style,textarea",!0),Ua={},Ha={"&lt;":"<","&gt;":">","&quot;":'"',"&amp;":"&","&#10;":"\n","&#9;":"\t","&#39;":"'"},ja=/&(?:lt|gt|quot|amp|#39);/g,Qa=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,za=A("pre,textarea",!0),Va=function(e,t){return e&&za(e)&&"\n"===t[0]};function Ga(e,t){var n=t?Qa:ja;return e.replace(n,function(e){return Ha[e]})}var $a,qa,Wa,Ka,Ya,Xa,Ja,Za,eo=/^@|^v-on:/,to=/^v-|^@|^:|^#/,no=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,ro=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,io=/^\(|\)$/g,ao=/^\[.*\]$/,oo=/:(.*)$/,so=/^:|^\.|^v-bind:/,lo=/\.[^.\]]+(?=[^\]]*$)/g,co=/^v-slot(:|$)|^#/,uo=/[\r\n]/,ho=/\s+/g,fo=w(Ca),po="_empty_";function Ao(e,t,n){return{type:1,tag:e,attrsList:t,attrsMap:function(e){for(var t={},n=0,r=e.length;n<r;n++)t[e[n].name]=e[n].value;return t}(t),rawAttrsMap:{},parent:n,children:[]}}function go(e,t){$a=t.warn||Fr,Xa=t.isPreTag||F,Ja=t.mustUseProp||F,Za=t.getTagNamespace||F;var n=t.isReservedTag||F;(function(e){return!!e.component||!n(e.tag)}),Wa=Dr(t.modules,"transformNode"),Ka=Dr(t.modules,"preTransformNode"),Ya=Dr(t.modules,"postTransformNode"),qa=t.delimiters;var r,i,a=[],o=!1!==t.preserveWhitespace,s=t.whitespace,l=!1,c=!1;function u(e){if(h(e),l||e.processed||(e=mo(e,t)),a.length||e===r||r.if&&(e.elseif||e.else)&&yo(r,{exp:e.elseif,block:e}),i&&!e.forbidden)if(e.elseif||e.else)o=e,(s=function(e){var t=e.length;for(;t--;){if(1===e[t].type)return e[t];e.pop()}}(i.children))&&s.if&&yo(s,{exp:o.elseif,block:o});else{if(e.slotScope){var n=e.slotTarget||'"default"';(i.scopedSlots||(i.scopedSlots={}))[n]=e}i.children.push(e),e.parent=i}var o,s;e.children=e.children.filter(function(e){return!e.slotScope}),h(e),e.pre&&(l=!1),Xa(e.tag)&&(c=!1);for(var u=0;u<Ya.length;u++)Ya[u](e,t)}function h(e){if(!c)for(var t;(t=e.children[e.children.length-1])&&3===t.type&&" "===t.text;)e.children.pop()}return function(e,t){for(var n,r,i=[],a=t.expectHTML,o=t.isUnaryTag||F,s=t.canBeLeftOpenTag||F,l=0;e;){if(n=e,r&&Na(r)){var c=0,u=r.toLowerCase(),h=Ua[u]||(Ua[u]=new RegExp("([\\s\\S]*?)(</"+u+"[^>]*>)","i")),d=e.replace(h,function(e,n,r){return c=r.length,Na(u)||"noscript"===u||(n=n.replace(/<!\--([\s\S]*?)-->/g,"$1").replace(/<!\[CDATA\[([\s\S]*?)]]>/g,"$1")),Va(u,n)&&(n=n.slice(1)),t.chars&&t.chars(n),""});l+=e.length-d.length,e=d,k(u,l-c,l)}else{var f=e.indexOf("<");if(0===f){if(La.test(e)){var p=e.indexOf("--\x3e");if(p>=0){t.shouldKeepComment&&t.comment(e.substring(4,p),l,l+p+3),_(p+3);continue}}if(Ra.test(e)){var A=e.indexOf("]>");if(A>=0){_(A+2);continue}}var g=e.match(Oa);if(g){_(g[0].length);continue}var m=e.match(Pa);if(m){var v=l;_(m[0].length),k(m[1],v,l);continue}var y=C();if(y){S(y),Va(y.tagName,e)&&_(1);continue}}var b=void 0,w=void 0,x=void 0;if(f>=0){for(w=e.slice(f);!(Pa.test(w)||Fa.test(w)||La.test(w)||Ra.test(w)||(x=w.indexOf("<",1))<0);)f+=x,w=e.slice(f);b=e.substring(0,f)}f<0&&(b=e),b&&_(b.length),t.chars&&b&&t.chars(b,l-b.length,l)}if(e===n){t.chars&&t.chars(e);break}}function _(t){l+=t,e=e.substring(t)}function C(){var t=e.match(Fa);if(t){var n,r,i={tagName:t[1],attrs:[],start:l};for(_(t[0].length);!(n=e.match(Da))&&(r=e.match(Ta)||e.match(Ea));)r.start=l,_(r[0].length),r.end=l,i.attrs.push(r);if(n)return i.unarySlash=n[1],_(n[0].length),i.end=l,i}}function S(e){var n=e.tagName,l=e.unarySlash;a&&("p"===r&&Ba(n)&&k(r),s(n)&&r===n&&k(n));for(var c=o(n)||!!l,u=e.attrs.length,h=new Array(u),d=0;d<u;d++){var f=e.attrs[d],p=f[3]||f[4]||f[5]||"",A="a"===n&&"href"===f[1]?t.shouldDecodeNewlinesForHref:t.shouldDecodeNewlines;h[d]={name:f[1],value:Ga(p,A)}}c||(i.push({tag:n,lowerCasedTag:n.toLowerCase(),attrs:h,start:e.start,end:e.end}),r=n),t.start&&t.start(n,h,c,e.start,e.end)}function k(e,n,a){var o,s;if(null==n&&(n=l),null==a&&(a=l),e)for(s=e.toLowerCase(),o=i.length-1;o>=0&&i[o].lowerCasedTag!==s;o--);else o=0;if(o>=0){for(var c=i.length-1;c>=o;c--)t.end&&t.end(i[c].tag,n,a);i.length=o,r=o&&i[o-1].tag}else"br"===s?t.start&&t.start(e,[],!0,n,a):"p"===s&&(t.start&&t.start(e,[],!1,n,a),t.end&&t.end(e,n,a))}k()}(e,{warn:$a,expectHTML:t.expectHTML,isUnaryTag:t.isUnaryTag,canBeLeftOpenTag:t.canBeLeftOpenTag,shouldDecodeNewlines:t.shouldDecodeNewlines,shouldDecodeNewlinesForHref:t.shouldDecodeNewlinesForHref,shouldKeepComment:t.comments,outputSourceRange:t.outputSourceRange,start:function(e,n,o,s,h){var d=i&&i.ns||Za(e);X&&"svg"===d&&(n=function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];xo.test(r.name)||(r.name=r.name.replace(_o,""),t.push(r))}return t}(n));var f,p=Ao(e,n,i);d&&(p.ns=d),"style"!==(f=p).tag&&("script"!==f.tag||f.attrsMap.type&&"text/javascript"!==f.attrsMap.type)||ae()||(p.forbidden=!0);for(var A=0;A<Ka.length;A++)p=Ka[A](p,t)||p;l||(!function(e){null!=Qr(e,"v-pre")&&(e.pre=!0)}(p),p.pre&&(l=!0)),Xa(p.tag)&&(c=!0),l?function(e){var t=e.attrsList,n=t.length;if(n)for(var r=e.attrs=new Array(n),i=0;i<n;i++)r[i]={name:t[i].name,value:JSON.stringify(t[i].value)},null!=t[i].start&&(r[i].start=t[i].start,r[i].end=t[i].end);else e.pre||(e.plain=!0)}(p):p.processed||(vo(p),function(e){var t=Qr(e,"v-if");if(t)e.if=t,yo(e,{exp:t,block:e});else{null!=Qr(e,"v-else")&&(e.else=!0);var n=Qr(e,"v-else-if");n&&(e.elseif=n)}}(p),function(e){null!=Qr(e,"v-once")&&(e.once=!0)}(p)),r||(r=p),o?u(p):(i=p,a.push(p))},end:function(e,t,n){var r=a[a.length-1];a.length-=1,i=a[a.length-1],u(r)},chars:function(e,t,n){if(i&&(!X||"textarea"!==i.tag||i.attrsMap.placeholder!==e)){var r,a,u,h=i.children;if(e=c||e.trim()?"script"===(r=i).tag||"style"===r.tag?e:fo(e):h.length?s?"condense"===s&&uo.test(e)?"":" ":o?" ":"":"")c||"condense"!==s||(e=e.replace(ho," ")),!l&&" "!==e&&(a=ba(e,qa))?u={type:2,expression:a.expression,tokens:a.tokens,text:e}:" "===e&&h.length&&" "===h[h.length-1].text||(u={type:3,text:e}),u&&h.push(u)}},comment:function(e,t,n){if(i){var r={type:3,text:e,isComment:!0};0,i.children.push(r)}}}),r}function mo(e,t){var n,r;!function(e){var t=jr(e,"key");if(t){e.key=t}}(e),e.plain=!e.key&&!e.scopedSlots&&!e.attrsList.length,(r=jr(n=e,"ref"))&&(n.ref=r,n.refInFor=function(e){for(var t=e;t;){if(void 0!==t.for)return!0;t=t.parent}return!1}(n)),function(e){var t;"template"===e.tag?(t=Qr(e,"scope"),e.slotScope=t||Qr(e,"slot-scope")):(t=Qr(e,"slot-scope"))&&(e.slotScope=t);var n=jr(e,"slot");n&&(e.slotTarget='""'===n?'"default"':n,e.slotTargetDynamic=!(!e.attrsMap[":slot"]&&!e.attrsMap["v-bind:slot"]),"template"===e.tag||e.slotScope||Or(e,"slot",n,Hr(e,"slot")));if("template"===e.tag){var r=zr(e,co);if(r){0;var i=bo(r),a=i.name,o=i.dynamic;e.slotTarget=a,e.slotTargetDynamic=o,e.slotScope=r.value||po}}else{var s=zr(e,co);if(s){0;var l=e.scopedSlots||(e.scopedSlots={}),c=bo(s),u=c.name,h=c.dynamic,d=l[u]=Ao("template",[],e);d.slotTarget=u,d.slotTargetDynamic=h,d.children=e.children.filter(function(e){if(!e.slotScope)return e.parent=d,!0}),d.slotScope=s.value||po,e.children=[],e.plain=!1}}}(e),function(e){"slot"===e.tag&&(e.slotName=jr(e,"name"))}(e),function(e){var t;(t=jr(e,"is"))&&(e.component=t);null!=Qr(e,"inline-template")&&(e.inlineTemplate=!0)}(e);for(var i=0;i<Wa.length;i++)e=Wa[i](e,t)||e;return function(e){var t,n,r,i,a,o,s,l,c=e.attrsList;for(t=0,n=c.length;t<n;t++){if(r=i=c[t].name,a=c[t].value,to.test(r))if(e.hasBindings=!0,(o=wo(r.replace(to,"")))&&(r=r.replace(lo,"")),so.test(r))r=r.replace(so,""),a=Ir(a),(l=ao.test(r))&&(r=r.slice(1,-1)),o&&(o.prop&&!l&&"innerHtml"===(r=_(r))&&(r="innerHTML"),o.camel&&!l&&(r=_(r)),o.sync&&(s=$r(a,"$event"),l?Ur(e,'"update:"+('+r+")",s,null,!1,0,c[t],!0):(Ur(e,"update:"+_(r),s,null,!1,0,c[t]),k(r)!==_(r)&&Ur(e,"update:"+k(r),s,null,!1,0,c[t])))),o&&o.prop||!e.component&&Ja(e.tag,e.attrsMap.type,r)?Pr(e,r,a,c[t],l):Or(e,r,a,c[t],l);else if(eo.test(r))r=r.replace(eo,""),(l=ao.test(r))&&(r=r.slice(1,-1)),Ur(e,r,a,o,!1,0,c[t],l);else{var u=(r=r.replace(to,"")).match(oo),h=u&&u[1];l=!1,h&&(r=r.slice(0,-(h.length+1)),ao.test(h)&&(h=h.slice(1,-1),l=!0)),Rr(e,r,i,a,h,l,o,c[t])}else Or(e,r,JSON.stringify(a),c[t]),!e.component&&"muted"===r&&Ja(e.tag,e.attrsMap.type,r)&&Pr(e,r,"true",c[t])}}(e),e}function vo(e){var t;if(t=Qr(e,"v-for")){var n=function(e){var t=e.match(no);if(!t)return;var n={};n.for=t[2].trim();var r=t[1].trim().replace(io,""),i=r.match(ro);i?(n.alias=r.replace(ro,"").trim(),n.iterator1=i[1].trim(),i[2]&&(n.iterator2=i[2].trim())):n.alias=r;return n}(t);n&&T(e,n)}}function yo(e,t){e.ifConditions||(e.ifConditions=[]),e.ifConditions.push(t)}function bo(e){var t=e.name.replace(co,"");return t||"#"!==e.name[0]&&(t="default"),ao.test(t)?{name:t.slice(1,-1),dynamic:!0}:{name:'"'+t+'"',dynamic:!1}}function wo(e){var t=e.match(lo);if(t){var n={};return t.forEach(function(e){n[e.slice(1)]=!0}),n}}var xo=/^xmlns:NS\d+/,_o=/^NS\d+:/;function Co(e){return Ao(e.tag,e.attrsList.slice(),e.parent)}var So=[wa,_a,{preTransformNode:function(e,t){if("input"===e.tag){var n,r=e.attrsMap;if(!r["v-model"])return;if((r[":type"]||r["v-bind:type"])&&(n=jr(e,"type")),r.type||n||!r["v-bind"]||(n="("+r["v-bind"]+").type"),n){var i=Qr(e,"v-if",!0),a=i?"&&("+i+")":"",o=null!=Qr(e,"v-else",!0),s=Qr(e,"v-else-if",!0),l=Co(e);vo(l),Lr(l,"type","checkbox"),mo(l,t),l.processed=!0,l.if="("+n+")==='checkbox'"+a,yo(l,{exp:l.if,block:l});var c=Co(e);Qr(c,"v-for",!0),Lr(c,"type","radio"),mo(c,t),yo(l,{exp:"("+n+")==='radio'"+a,block:c});var u=Co(e);return Qr(u,"v-for",!0),Lr(u,":type",n),mo(u,t),yo(l,{exp:i,block:u}),o?l.else=!0:s&&(l.elseif=s),l}}}}];var ko,Bo,Eo={expectHTML:!0,modules:So,directives:{model:function(e,t,n){n;var r=t.value,i=t.modifiers,a=e.tag,o=e.attrsMap.type;if(e.component)return Gr(e,r,i),!1;if("select"===a)!function(e,t,n){var r='var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;return '+(n&&n.number?"_n(val)":"val")+"});";r=r+" "+$r(t,"$event.target.multiple ? $$selectedVal : $$selectedVal[0]"),Ur(e,"change",r,null,!0)}(e,r,i);else if("input"===a&&"checkbox"===o)!function(e,t,n){var r=n&&n.number,i=jr(e,"value")||"null",a=jr(e,"true-value")||"true",o=jr(e,"false-value")||"false";Pr(e,"checked","Array.isArray("+t+")?_i("+t+","+i+")>-1"+("true"===a?":("+t+")":":_q("+t+","+a+")")),Ur(e,"change","var $$a="+t+",$$el=$event.target,$$c=$$el.checked?("+a+"):("+o+");if(Array.isArray($$a)){var $$v="+(r?"_n("+i+")":i)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+$r(t,"$$a.concat([$$v])")+")}else{$$i>-1&&("+$r(t,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")+")}}else{"+$r(t,"$$c")+"}",null,!0)}(e,r,i);else if("input"===a&&"radio"===o)!function(e,t,n){var r=n&&n.number,i=jr(e,"value")||"null";Pr(e,"checked","_q("+t+","+(i=r?"_n("+i+")":i)+")"),Ur(e,"change",$r(t,i),null,!0)}(e,r,i);else if("input"===a||"textarea"===a)!function(e,t,n){var r=e.attrsMap.type,i=n||{},a=i.lazy,o=i.number,s=i.trim,l=!a&&"range"!==r,c=a?"change":"range"===r?Zr:"input",u="$event.target.value";s&&(u="$event.target.value.trim()"),o&&(u="_n("+u+")");var h=$r(t,u);l&&(h="if($event.target.composing)return;"+h),Pr(e,"value","("+t+")"),Ur(e,c,h,null,!0),(s||o)&&Ur(e,"blur","$forceUpdate()")}(e,r,i);else if(!H.isReservedTag(a))return Gr(e,r,i),!1;return!0},text:function(e,t){t.value&&Pr(e,"textContent","_s("+t.value+")",t)},html:function(e,t){t.value&&Pr(e,"innerHTML","_s("+t.value+")",t)}},isPreTag:function(e){return"pre"===e},isUnaryTag:Sa,mustUseProp:Ln,canBeLeftOpenTag:ka,isReservedTag:Jn,getTagNamespace:Zn,staticKeys:function(e){return e.reduce(function(e,t){return e.concat(t.staticKeys||[])},[]).join(",")}(So)},To=w(function(e){return A("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(e?","+e:""))});function Io(e,t){e&&(ko=To(t.staticKeys||""),Bo=t.isReservedTag||F,function e(t){t.static=function(e){if(2===e.type)return!1;if(3===e.type)return!0;return!(!e.pre&&(e.hasBindings||e.if||e.for||g(e.tag)||!Bo(e.tag)||function(e){for(;e.parent;){if("template"!==(e=e.parent).tag)return!1;if(e.for)return!0}return!1}(e)||!Object.keys(e).every(ko)))}(t);if(1===t.type){if(!Bo(t.tag)&&"slot"!==t.tag&&null==t.attrsMap["inline-template"])return;for(var n=0,r=t.children.length;n<r;n++){var i=t.children[n];e(i),i.static||(t.static=!1)}if(t.ifConditions)for(var a=1,o=t.ifConditions.length;a<o;a++){var s=t.ifConditions[a].block;e(s),s.static||(t.static=!1)}}}(e),function e(t,n){if(1===t.type){if((t.static||t.once)&&(t.staticInFor=n),t.static&&t.children.length&&(1!==t.children.length||3!==t.children[0].type))return void(t.staticRoot=!0);if(t.staticRoot=!1,t.children)for(var r=0,i=t.children.length;r<i;r++)e(t.children[r],n||!!t.for);if(t.ifConditions)for(var a=1,o=t.ifConditions.length;a<o;a++)e(t.ifConditions[a].block,n)}}(e,!1))}var Mo=/^([\w$_]+|\([^)]*?\))\s*=>|^function(?:\s+[\w$]+)?\s*\(/,Fo=/\([^)]*?\);*$/,Do=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,Po={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},Oo={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]},Lo=function(e){return"if("+e+")return null;"},Ro={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:Lo("$event.target !== $event.currentTarget"),ctrl:Lo("!$event.ctrlKey"),shift:Lo("!$event.shiftKey"),alt:Lo("!$event.altKey"),meta:Lo("!$event.metaKey"),left:Lo("'button' in $event && $event.button !== 0"),middle:Lo("'button' in $event && $event.button !== 1"),right:Lo("'button' in $event && $event.button !== 2")};function No(e,t){var n=t?"nativeOn:":"on:",r="",i="";for(var a in e){var o=Uo(e[a]);e[a]&&e[a].dynamic?i+=a+","+o+",":r+='"'+a+'":'+o+","}return r="{"+r.slice(0,-1)+"}",i?n+"_d("+r+",["+i.slice(0,-1)+"])":n+r}function Uo(e){if(!e)return"function(){}";if(Array.isArray(e))return"["+e.map(function(e){return Uo(e)}).join(",")+"]";var t=Do.test(e.value),n=Mo.test(e.value),r=Do.test(e.value.replace(Fo,""));if(e.modifiers){var i="",a="",o=[];for(var s in e.modifiers)if(Ro[s])a+=Ro[s],Po[s]&&o.push(s);else if("exact"===s){var l=e.modifiers;a+=Lo(["ctrl","shift","alt","meta"].filter(function(e){return!l[e]}).map(function(e){return"$event."+e+"Key"}).join("||"))}else o.push(s);return o.length&&(i+=function(e){return"if(!$event.type.indexOf('key')&&"+e.map(Ho).join("&&")+")return null;"}(o)),a&&(i+=a),"function($event){"+i+(t?"return "+e.value+"($event)":n?"return ("+e.value+")($event)":r?"return "+e.value:e.value)+"}"}return t||n?e.value:"function($event){"+(r?"return "+e.value:e.value)+"}"}function Ho(e){var t=parseInt(e,10);if(t)return"$event.keyCode!=="+t;var n=Po[e],r=Oo[e];return"_k($event.keyCode,"+JSON.stringify(e)+","+JSON.stringify(n)+",$event.key,"+JSON.stringify(r)+")"}var jo={on:function(e,t){e.wrapListeners=function(e){return"_g("+e+","+t.value+")"}},bind:function(e,t){e.wrapData=function(n){return"_b("+n+",'"+e.tag+"',"+t.value+","+(t.modifiers&&t.modifiers.prop?"true":"false")+(t.modifiers&&t.modifiers.sync?",true":"")+")"}},cloak:M},Qo=function(e){this.options=e,this.warn=e.warn||Fr,this.transforms=Dr(e.modules,"transformCode"),this.dataGenFns=Dr(e.modules,"genData"),this.directives=T(T({},jo),e.directives);var t=e.isReservedTag||F;this.maybeComponent=function(e){return!!e.component||!t(e.tag)},this.onceId=0,this.staticRenderFns=[],this.pre=!1};function zo(e,t){var n=new Qo(t);return{render:"with(this){return "+(e?Vo(e,n):'_c("div")')+"}",staticRenderFns:n.staticRenderFns}}function Vo(e,t){if(e.parent&&(e.pre=e.pre||e.parent.pre),e.staticRoot&&!e.staticProcessed)return Go(e,t);if(e.once&&!e.onceProcessed)return $o(e,t);if(e.for&&!e.forProcessed)return Wo(e,t);if(e.if&&!e.ifProcessed)return qo(e,t);if("template"!==e.tag||e.slotTarget||t.pre){if("slot"===e.tag)return function(e,t){var n=e.slotName||'"default"',r=Jo(e,t),i="_t("+n+(r?","+r:""),a=e.attrs||e.dynamicAttrs?ts((e.attrs||[]).concat(e.dynamicAttrs||[]).map(function(e){return{name:_(e.name),value:e.value,dynamic:e.dynamic}})):null,o=e.attrsMap["v-bind"];!a&&!o||r||(i+=",null");a&&(i+=","+a);o&&(i+=(a?"":",null")+","+o);return i+")"}(e,t);var n;if(e.component)n=function(e,t,n){var r=t.inlineTemplate?null:Jo(t,n,!0);return"_c("+e+","+Ko(t,n)+(r?","+r:"")+")"}(e.component,e,t);else{var r;(!e.plain||e.pre&&t.maybeComponent(e))&&(r=Ko(e,t));var i=e.inlineTemplate?null:Jo(e,t,!0);n="_c('"+e.tag+"'"+(r?","+r:"")+(i?","+i:"")+")"}for(var a=0;a<t.transforms.length;a++)n=t.transforms[a](e,n);return n}return Jo(e,t)||"void 0"}function Go(e,t){e.staticProcessed=!0;var n=t.pre;return e.pre&&(t.pre=e.pre),t.staticRenderFns.push("with(this){return "+Vo(e,t)+"}"),t.pre=n,"_m("+(t.staticRenderFns.length-1)+(e.staticInFor?",true":"")+")"}function $o(e,t){if(e.onceProcessed=!0,e.if&&!e.ifProcessed)return qo(e,t);if(e.staticInFor){for(var n="",r=e.parent;r;){if(r.for){n=r.key;break}r=r.parent}return n?"_o("+Vo(e,t)+","+t.onceId+++","+n+")":Vo(e,t)}return Go(e,t)}function qo(e,t,n,r){return e.ifProcessed=!0,function e(t,n,r,i){if(!t.length)return i||"_e()";var a=t.shift();return a.exp?"("+a.exp+")?"+o(a.block)+":"+e(t,n,r,i):""+o(a.block);function o(e){return r?r(e,n):e.once?$o(e,n):Vo(e,n)}}(e.ifConditions.slice(),t,n,r)}function Wo(e,t,n,r){var i=e.for,a=e.alias,o=e.iterator1?","+e.iterator1:"",s=e.iterator2?","+e.iterator2:"";return e.forProcessed=!0,(r||"_l")+"(("+i+"),function("+a+o+s+"){return "+(n||Vo)(e,t)+"})"}function Ko(e,t){var n="{",r=function(e,t){var n=e.directives;if(!n)return;var r,i,a,o,s="directives:[",l=!1;for(r=0,i=n.length;r<i;r++){a=n[r],o=!0;var c=t.directives[a.name];c&&(o=!!c(e,a,t.warn)),o&&(l=!0,s+='{name:"'+a.name+'",rawName:"'+a.rawName+'"'+(a.value?",value:("+a.value+"),expression:"+JSON.stringify(a.value):"")+(a.arg?",arg:"+(a.isDynamicArg?a.arg:'"'+a.arg+'"'):"")+(a.modifiers?",modifiers:"+JSON.stringify(a.modifiers):"")+"},")}if(l)return s.slice(0,-1)+"]"}(e,t);r&&(n+=r+","),e.key&&(n+="key:"+e.key+","),e.ref&&(n+="ref:"+e.ref+","),e.refInFor&&(n+="refInFor:true,"),e.pre&&(n+="pre:true,"),e.component&&(n+='tag:"'+e.tag+'",');for(var i=0;i<t.dataGenFns.length;i++)n+=t.dataGenFns[i](e);if(e.attrs&&(n+="attrs:"+ts(e.attrs)+","),e.props&&(n+="domProps:"+ts(e.props)+","),e.events&&(n+=No(e.events,!1)+","),e.nativeEvents&&(n+=No(e.nativeEvents,!0)+","),e.slotTarget&&!e.slotScope&&(n+="slot:"+e.slotTarget+","),e.scopedSlots&&(n+=function(e,t,n){var r=e.for||Object.keys(t).some(function(e){var n=t[e];return n.slotTargetDynamic||n.if||n.for||Yo(n)}),i=!!e.if;if(!r)for(var a=e.parent;a;){if(a.slotScope&&a.slotScope!==po||a.for){r=!0;break}a.if&&(i=!0),a=a.parent}var o=Object.keys(t).map(function(e){return Xo(t[e],n)}).join(",");return"scopedSlots:_u(["+o+"]"+(r?",null,true":"")+(!r&&i?",null,false,"+function(e){var t=5381,n=e.length;for(;n;)t=33*t^e.charCodeAt(--n);return t>>>0}(o):"")+")"}(e,e.scopedSlots,t)+","),e.model&&(n+="model:{value:"+e.model.value+",callback:"+e.model.callback+",expression:"+e.model.expression+"},"),e.inlineTemplate){var a=function(e,t){var n=e.children[0];0;if(n&&1===n.type){var r=zo(n,t.options);return"inlineTemplate:{render:function(){"+r.render+"},staticRenderFns:["+r.staticRenderFns.map(function(e){return"function(){"+e+"}"}).join(",")+"]}"}}(e,t);a&&(n+=a+",")}return n=n.replace(/,$/,"")+"}",e.dynamicAttrs&&(n="_b("+n+',"'+e.tag+'",'+ts(e.dynamicAttrs)+")"),e.wrapData&&(n=e.wrapData(n)),e.wrapListeners&&(n=e.wrapListeners(n)),n}function Yo(e){return 1===e.type&&("slot"===e.tag||e.children.some(Yo))}function Xo(e,t){var n=e.attrsMap["slot-scope"];if(e.if&&!e.ifProcessed&&!n)return qo(e,t,Xo,"null");if(e.for&&!e.forProcessed)return Wo(e,t,Xo);var r=e.slotScope===po?"":String(e.slotScope),i="function("+r+"){return "+("template"===e.tag?e.if&&n?"("+e.if+")?"+(Jo(e,t)||"undefined")+":undefined":Jo(e,t)||"undefined":Vo(e,t))+"}",a=r?"":",proxy:true";return"{key:"+(e.slotTarget||'"default"')+",fn:"+i+a+"}"}function Jo(e,t,n,r,i){var a=e.children;if(a.length){var o=a[0];if(1===a.length&&o.for&&"template"!==o.tag&&"slot"!==o.tag){var s=n?t.maybeComponent(o)?",1":",0":"";return""+(r||Vo)(o,t)+s}var l=n?function(e,t){for(var n=0,r=0;r<e.length;r++){var i=e[r];if(1===i.type){if(Zo(i)||i.ifConditions&&i.ifConditions.some(function(e){return Zo(e.block)})){n=2;break}(t(i)||i.ifConditions&&i.ifConditions.some(function(e){return t(e.block)}))&&(n=1)}}return n}(a,t.maybeComponent):0,c=i||es;return"["+a.map(function(e){return c(e,t)}).join(",")+"]"+(l?","+l:"")}}function Zo(e){return void 0!==e.for||"template"===e.tag||"slot"===e.tag}function es(e,t){return 1===e.type?Vo(e,t):3===e.type&&e.isComment?(r=e,"_e("+JSON.stringify(r.text)+")"):"_v("+(2===(n=e).type?n.expression:ns(JSON.stringify(n.text)))+")";var n,r}function ts(e){for(var t="",n="",r=0;r<e.length;r++){var i=e[r],a=ns(i.value);i.dynamic?n+=i.name+","+a+",":t+='"'+i.name+'":'+a+","}return t="{"+t.slice(0,-1)+"}",n?"_d("+t+",["+n.slice(0,-1)+"])":t}function ns(e){return e.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}new RegExp("\\b"+"do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,super,throw,while,yield,delete,export,import,return,switch,default,extends,finally,continue,debugger,function,arguments".split(",").join("\\b|\\b")+"\\b"),new RegExp("\\b"+"delete,typeof,void".split(",").join("\\s*\\([^\\)]*\\)|\\b")+"\\s*\\([^\\)]*\\)");function rs(e,t){try{return new Function(e)}catch(n){return t.push({err:n,code:e}),M}}function is(e){var t=Object.create(null);return function(n,r,i){(r=T({},r)).warn;delete r.warn;var a=r.delimiters?String(r.delimiters)+n:n;if(t[a])return t[a];var o=e(n,r);var s={},l=[];return s.render=rs(o.render,l),s.staticRenderFns=o.staticRenderFns.map(function(e){return rs(e,l)}),t[a]=s}}var as,os,ss=(as=function(e,t){var n=go(e.trim(),t);!1!==t.optimize&&Io(n,t);var r=zo(n,t);return{ast:n,render:r.render,staticRenderFns:r.staticRenderFns}},function(e){function t(t,n){var r=Object.create(e),i=[],a=[],o=function(e,t,n){(n?a:i).push(e)};if(n)for(var s in n.modules&&(r.modules=(e.modules||[]).concat(n.modules)),n.directives&&(r.directives=T(Object.create(e.directives||null),n.directives)),n)"modules"!==s&&"directives"!==s&&(r[s]=n[s]);r.warn=o;var l=as(t.trim(),r);return l.errors=i,l.tips=a,l}return{compile:t,compileToFunctions:is(t)}})(Eo),ls=(ss.compile,ss.compileToFunctions);function cs(e){return(os=os||document.createElement("div")).innerHTML=e?'<a href="\n"/>':'<div a="\n"/>',os.innerHTML.indexOf("&#10;")>0}var us=!!q&&cs(!1),hs=!!q&&cs(!0),ds=w(function(e){var t=nr(e);return t&&t.innerHTML}),fs=kn.prototype.$mount;kn.prototype.$mount=function(e,t){if((e=e&&nr(e))===document.body||e===document.documentElement)return this;var n=this.$options;if(!n.render){var r=n.template;if(r)if("string"==typeof r)"#"===r.charAt(0)&&(r=ds(r));else{if(!r.nodeType)return this;r=r.innerHTML}else e&&(r=function(e){if(e.outerHTML)return e.outerHTML;var t=document.createElement("div");return t.appendChild(e.cloneNode(!0)),t.innerHTML}(e));if(r){0;var i=ls(r,{outputSourceRange:!1,shouldDecodeNewlines:us,shouldDecodeNewlinesForHref:hs,delimiters:n.delimiters,comments:n.comments},this),a=i.render,o=i.staticRenderFns;n.render=a,n.staticRenderFns=o}}return fs.call(this,e,t)},kn.compile=ls,t.default=kn}.call(t,n("DuR2"))},"76UX":function(e,t,n){"use strict";var r="undefined"!=typeof Symbol&&Symbol,i=n("9MlZ");e.exports=function(){return"function"==typeof r&&("function"==typeof Symbol&&("symbol"==typeof r("foo")&&("symbol"==typeof Symbol("bar")&&i())))}},"77Pl":function(e,t,n){var r=n("EqjI");e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},"7GwW":function(e,t,n){"use strict";var r=n("cGG2"),i=n("21It"),a=n("p1b6"),o=n("DQCr"),s=n("Oi+a"),l=n("oJlt"),c=n("GHBc"),u=n("FtD3");e.exports=function(e){return new Promise(function(t,n){var h=e.data,d=e.headers;r.isFormData(h)&&delete d["Content-Type"];var f=new XMLHttpRequest;if(e.auth){var p=e.auth.username||"",A=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";d.Authorization="Basic "+btoa(p+":"+A)}var g=s(e.baseURL,e.url);if(f.open(e.method.toUpperCase(),o(g,e.params,e.paramsSerializer),!0),f.timeout=e.timeout,f.onreadystatechange=function(){if(f&&4===f.readyState&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in f?l(f.getAllResponseHeaders()):null,a={data:e.responseType&&"text"!==e.responseType?f.response:f.responseText,status:f.status,statusText:f.statusText,headers:r,config:e,request:f};i(t,n,a),f=null}},f.onabort=function(){f&&(n(u("Request aborted",e,"ECONNABORTED",f)),f=null)},f.onerror=function(){n(u("Network Error",e,null,f)),f=null},f.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(u(t,e,"ECONNABORTED",f)),f=null},r.isStandardBrowserEnv()){var m=(e.withCredentials||c(g))&&e.xsrfCookieName?a.read(e.xsrfCookieName):void 0;m&&(d[e.xsrfHeaderName]=m)}if("setRequestHeader"in f&&r.forEach(d,function(e,t){void 0===h&&"content-type"===t.toLowerCase()?delete d[t]:f.setRequestHeader(t,e)}),r.isUndefined(e.withCredentials)||(f.withCredentials=!!e.withCredentials),e.responseType)try{f.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&f.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&f.upload&&f.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(e){f&&(f.abort(),n(e),f=null)}),h||(h=null),f.send(h)})}},"7J9s":function(e,t,n){"use strict";t.__esModule=!0,t.PopupManager=void 0;var r=l(n("7+uW")),i=l(n("jmaC")),a=l(n("OAzY")),o=l(n("6Twh")),s=n("2kvA");function l(e){return e&&e.__esModule?e:{default:e}}var c=1,u=void 0;t.default={props:{visible:{type:Boolean,default:!1},openDelay:{},closeDelay:{},zIndex:{},modal:{type:Boolean,default:!1},modalFade:{type:Boolean,default:!0},modalClass:{},modalAppendToBody:{type:Boolean,default:!1},lockScroll:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!1},closeOnClickModal:{type:Boolean,default:!1}},beforeMount:function(){this._popupId="popup-"+c++,a.default.register(this._popupId,this)},beforeDestroy:function(){a.default.deregister(this._popupId),a.default.closeModal(this._popupId),this.restoreBodyStyle()},data:function(){return{opened:!1,bodyPaddingRight:null,computedBodyPaddingRight:0,withoutHiddenClass:!0,rendered:!1}},watch:{visible:function(e){var t=this;if(e){if(this._opening)return;this.rendered?this.open():(this.rendered=!0,r.default.nextTick(function(){t.open()}))}else this.close()}},methods:{open:function(e){var t=this;this.rendered||(this.rendered=!0);var n=(0,i.default)({},this.$props||this,e);this._closeTimer&&(clearTimeout(this._closeTimer),this._closeTimer=null),clearTimeout(this._openTimer);var r=Number(n.openDelay);r>0?this._openTimer=setTimeout(function(){t._openTimer=null,t.doOpen(n)},r):this.doOpen(n)},doOpen:function(e){if(!this.$isServer&&(!this.willOpen||this.willOpen())&&!this.opened){this._opening=!0;var t=this.$el,n=e.modal,r=e.zIndex;if(r&&(a.default.zIndex=r),n&&(this._closing&&(a.default.closeModal(this._popupId),this._closing=!1),a.default.openModal(this._popupId,a.default.nextZIndex(),this.modalAppendToBody?void 0:t,e.modalClass,e.modalFade),e.lockScroll)){this.withoutHiddenClass=!(0,s.hasClass)(document.body,"el-popup-parent--hidden"),this.withoutHiddenClass&&(this.bodyPaddingRight=document.body.style.paddingRight,this.computedBodyPaddingRight=parseInt((0,s.getStyle)(document.body,"paddingRight"),10)),u=(0,o.default)();var i=document.documentElement.clientHeight<document.body.scrollHeight,l=(0,s.getStyle)(document.body,"overflowY");u>0&&(i||"scroll"===l)&&this.withoutHiddenClass&&(document.body.style.paddingRight=this.computedBodyPaddingRight+u+"px"),(0,s.addClass)(document.body,"el-popup-parent--hidden")}"static"===getComputedStyle(t).position&&(t.style.position="absolute"),t.style.zIndex=a.default.nextZIndex(),this.opened=!0,this.onOpen&&this.onOpen(),this.doAfterOpen()}},doAfterOpen:function(){this._opening=!1},close:function(){var e=this;if(!this.willClose||this.willClose()){null!==this._openTimer&&(clearTimeout(this._openTimer),this._openTimer=null),clearTimeout(this._closeTimer);var t=Number(this.closeDelay);t>0?this._closeTimer=setTimeout(function(){e._closeTimer=null,e.doClose()},t):this.doClose()}},doClose:function(){this._closing=!0,this.onClose&&this.onClose(),this.lockScroll&&setTimeout(this.restoreBodyStyle,200),this.opened=!1,this.doAfterClose()},doAfterClose:function(){a.default.closeModal(this._popupId),this._closing=!1},restoreBodyStyle:function(){this.modal&&this.withoutHiddenClass&&(document.body.style.paddingRight=this.bodyPaddingRight,(0,s.removeClass)(document.body,"el-popup-parent--hidden")),this.withoutHiddenClass=!0}}},t.PopupManager=a.default},"7KvD":function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"7UMu":function(e,t,n){var r=n("R9M2");e.exports=Array.isArray||function(e){return"Array"==r(e)}},"7ar3":function(e,t,n){"use strict";var r=SyntaxError,i=Function,a=TypeError,o=function(e){try{return i('"use strict"; return ('+e+").constructor;")()}catch(e){}},s=Object.getOwnPropertyDescriptor;if(s)try{s({},"")}catch(e){s=null}var l=function(){throw new a},c=s?function(){try{return arguments.callee,l}catch(e){try{return s(arguments,"callee").get}catch(e){return l}}}():l,u=n("76UX")(),h=Object.getPrototypeOf||function(e){return e.__proto__},d={},f="undefined"==typeof Uint8Array?void 0:h(Uint8Array),p={"%AggregateError%":"undefined"==typeof AggregateError?void 0:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"%ArrayIteratorPrototype%":u?h([][Symbol.iterator]()):void 0,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":d,"%AsyncGenerator%":d,"%AsyncGeneratorFunction%":d,"%AsyncIteratorPrototype%":d,"%Atomics%":"undefined"==typeof Atomics?void 0:Atomics,"%BigInt%":"undefined"==typeof BigInt?void 0:BigInt,"%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%":d,"%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%":u?h(h([][Symbol.iterator]())):void 0,"%JSON%":"object"==typeof JSON?JSON:void 0,"%Map%":"undefined"==typeof Map?void 0:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&u?h((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&&u?h((new Set)[Symbol.iterator]()):void 0,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":u?h(""[Symbol.iterator]()):void 0,"%Symbol%":u?Symbol:void 0,"%SyntaxError%":r,"%ThrowTypeError%":c,"%TypedArray%":f,"%TypeError%":a,"%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},A={"%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"]},g=n("PiFy"),m=n("XfW5"),v=g.call(Function.call,Array.prototype.concat),y=g.call(Function.apply,Array.prototype.splice),b=g.call(Function.call,String.prototype.replace),w=g.call(Function.call,String.prototype.slice),x=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,_=/\\(\\)?/g,C=function(e,t){var n,i=e;if(m(A,i)&&(i="%"+(n=A[i])[0]+"%"),m(p,i)){var s=p[i];if(s===d&&(s=function e(t){var n;if("%AsyncFunction%"===t)n=o("async function () {}");else if("%GeneratorFunction%"===t)n=o("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=o("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&(n=h(i.prototype))}return p[t]=n,n}(i)),void 0===s&&!t)throw new a("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:i,value:s}}throw new r("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new a('"allowMissing" argument must be a boolean');var n=function(e){var t=w(e,0,1),n=w(e,-1);if("%"===t&&"%"!==n)throw new r("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new r("invalid intrinsic syntax, expected opening `%`");var i=[];return b(e,x,function(e,t,n,r){i[i.length]=n?b(r,_,"$1"):t||e}),i}(e),i=n.length>0?n[0]:"",o=C("%"+i+"%",t),l=o.name,c=o.value,u=!1,h=o.alias;h&&(i=h[0],y(n,v([0,1],h)));for(var d=1,f=!0;d<n.length;d+=1){var A=n[d],g=w(A,0,1),S=w(A,-1);if(('"'===g||"'"===g||"`"===g||'"'===S||"'"===S||"`"===S)&&g!==S)throw new r("property names with quotes must have matching quotes");if("constructor"!==A&&f||(u=!0),m(p,l="%"+(i+="."+A)+"%"))c=p[l];else if(null!=c){if(!(A in c)){if(!t)throw new a("base intrinsic for "+e+" exists, but the property is not available.");return}if(s&&d+1>=n.length){var k=s(c,A);c=(f=!!k)&&"get"in k&&!("originalValue"in k.get)?k.get:c[A]}else f=m(c,A),c=c[A];f&&!u&&(p[l]=c)}}return c}},"82Mu":function(e,t,n){var r=n("7KvD"),i=n("L42u").set,a=r.MutationObserver||r.WebKitMutationObserver,o=r.process,s=r.Promise,l="process"==n("R9M2")(o);e.exports=function(){var e,t,n,c=function(){var r,i;for(l&&(r=o.domain)&&r.exit();e;){i=e.fn,e=e.next;try{i()}catch(r){throw e?n():t=void 0,r}}t=void 0,r&&r.enter()};if(l)n=function(){o.nextTick(c)};else if(!a||r.navigator&&r.navigator.standalone)if(s&&s.resolve){var u=s.resolve(void 0);n=function(){u.then(c)}}else n=function(){i.call(r,c)};else{var h=!0,d=document.createTextNode("");new a(c).observe(d,{characterData:!0}),n=function(){d.data=h=!h}}return function(r){var i={fn:r,next:void 0};t&&(t.next=i),e||(e=i,n()),t=i}}},"835U":function(e,t,n){"use strict";t.__esModule=!0,t.isString=function(e){return"[object String]"===Object.prototype.toString.call(e)},t.isObject=function(e){return"[object Object]"===Object.prototype.toString.call(e)},t.isHtmlElement=function(e){return e&&e.nodeType===Node.ELEMENT_NODE};t.isFunction=function(e){return e&&"[object Function]"==={}.toString.call(e)},t.isUndefined=function(e){return void 0===e},t.isDefined=function(e){return void 0!==e&&null!==e}},"880/":function(e,t,n){e.exports=n("hJx8")},"8hRR":function(e,t,n){e.exports={default:n("B0bq"),__esModule:!0}},"94VQ":function(e,t,n){"use strict";var r=n("Yobk"),i=n("X8DO"),a=n("e6n0"),o={};n("hJx8")(o,n("dSzd")("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=r(o,{next:i(1,n)}),a(e,t+" Iterator")}},"9Gld":function(e,t,n){e.exports={default:n("u/Zb"),__esModule:!0}},"9MlZ":function(e,t,n){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},"9bBU":function(e,t,n){n("mClu");var r=n("FeBl").Object;e.exports=function(e,t,n){return r.defineProperty(e,t,n)}},AMCD:function(e,t,n){"use strict";t.__esModule=!0,t.validateRangeInOneMonth=t.extractTimeFormat=t.extractDateFormat=t.nextYear=t.prevYear=t.nextMonth=t.prevMonth=t.changeYearMonthAndClampDate=t.timeWithinRange=t.limitTimeRange=t.clearMilliseconds=t.clearTime=t.modifyWithTimeString=t.modifyTime=t.modifyDate=t.range=t.getRangeMinutes=t.getMonthDays=t.getPrevMonthLastDays=t.getRangeHours=t.getWeekNumber=t.getStartDateOfMonth=t.nextDate=t.prevDate=t.getFirstDayOfMonth=t.getDayCountOfYear=t.getDayCountOfMonth=t.parseDate=t.formatDate=t.isDateObject=t.isDate=t.toDate=t.getI18nSettings=void 0;var r,i=n("eNfa"),a=(r=i)&&r.__esModule?r:{default:r},o=n("urW8");var s=["sun","mon","tue","wed","thu","fri","sat"],l=["jan","feb","mar","apr","may","jun","jul","aug","sep","oct","nov","dec"],c=t.getI18nSettings=function(){return{dayNamesShort:s.map(function(e){return(0,o.t)("el.datepicker.weeks."+e)}),dayNames:s.map(function(e){return(0,o.t)("el.datepicker.weeks."+e)}),monthNamesShort:l.map(function(e){return(0,o.t)("el.datepicker.months."+e)}),monthNames:l.map(function(e,t){return(0,o.t)("el.datepicker.month"+(t+1))}),amPm:["am","pm"]}},u=t.toDate=function(e){return h(e)?new Date(e):null},h=t.isDate=function(e){return null!==e&&void 0!==e&&(!isNaN(new Date(e).getTime())&&!Array.isArray(e))},d=(t.isDateObject=function(e){return e instanceof Date},t.formatDate=function(e,t){return(e=u(e))?a.default.format(e,t||"yyyy-MM-dd",c()):""},t.parseDate=function(e,t){return a.default.parse(e,t||"yyyy-MM-dd",c())}),f=t.getDayCountOfMonth=function(e,t){return 3===t||5===t||8===t||10===t?30:1===t?e%4==0&&e%100!=0||e%400==0?29:28:31},p=(t.getDayCountOfYear=function(e){return e%400==0||e%100!=0&&e%4==0?366:365},t.getFirstDayOfMonth=function(e){var t=new Date(e.getTime());return t.setDate(1),t.getDay()},t.prevDate=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return new Date(e.getFullYear(),e.getMonth(),e.getDate()-t)});t.nextDate=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return new Date(e.getFullYear(),e.getMonth(),e.getDate()+t)},t.getStartDateOfMonth=function(e,t){var n=new Date(e,t,1),r=n.getDay();return p(n,0===r?7:r)},t.getWeekNumber=function(e){if(!h(e))return null;var t=new Date(e.getTime());t.setHours(0,0,0,0),t.setDate(t.getDate()+3-(t.getDay()+6)%7);var n=new Date(t.getFullYear(),0,4);return 1+Math.round(((t.getTime()-n.getTime())/864e5-3+(n.getDay()+6)%7)/7)},t.getRangeHours=function(e){var t=[],n=[];if((e||[]).forEach(function(e){var t=e.map(function(e){return e.getHours()});n=n.concat(function(e,t){for(var n=[],r=e;r<=t;r++)n.push(r);return n}(t[0],t[1]))}),n.length)for(var r=0;r<24;r++)t[r]=-1===n.indexOf(r);else for(var i=0;i<24;i++)t[i]=!1;return t},t.getPrevMonthLastDays=function(e,t){if(t<=0)return[];var n=new Date(e.getTime());n.setDate(0);var r=n.getDate();return g(t).map(function(e,n){return r-(t-n-1)})},t.getMonthDays=function(e){var t=new Date(e.getFullYear(),e.getMonth()+1,0).getDate();return g(t).map(function(e,t){return t+1})};function A(e,t,n,r){for(var i=t;i<n;i++)e[i]=r}t.getRangeMinutes=function(e,t){var n=new Array(60);return e.length>0?e.forEach(function(e){var r=e[0],i=e[1],a=r.getHours(),o=r.getMinutes(),s=i.getHours(),l=i.getMinutes();a===t&&s!==t?A(n,o,60,!0):a===t&&s===t?A(n,o,l+1,!0):a!==t&&s===t?A(n,0,l+1,!0):a<t&&s>t&&A(n,0,60,!0)}):A(n,0,60,!0),n};var g=t.range=function(e){return Array.apply(null,{length:e}).map(function(e,t){return t})},m=t.modifyDate=function(e,t,n,r){return new Date(t,n,r,e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())},v=t.modifyTime=function(e,t,n,r){return new Date(e.getFullYear(),e.getMonth(),e.getDate(),t,n,r,e.getMilliseconds())},y=(t.modifyWithTimeString=function(e,t){return null!=e&&t?(t=d(t,"HH:mm:ss"),v(e,t.getHours(),t.getMinutes(),t.getSeconds())):e},t.clearTime=function(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate())},t.clearMilliseconds=function(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),0)},t.limitTimeRange=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"HH:mm:ss";if(0===t.length)return e;var r=function(e){return a.default.parse(a.default.format(e,n),n)},i=r(e),o=t.map(function(e){return e.map(r)});if(o.some(function(e){return i>=e[0]&&i<=e[1]}))return e;var s=o[0][0],l=o[0][0];return o.forEach(function(e){s=new Date(Math.min(e[0],s)),l=new Date(Math.max(e[1],s))}),m(i<s?s:l,e.getFullYear(),e.getMonth(),e.getDate())}),b=(t.timeWithinRange=function(e,t,n){return y(e,t,n).getTime()===e.getTime()},t.changeYearMonthAndClampDate=function(e,t,n){var r=Math.min(e.getDate(),f(t,n));return m(e,t,n,r)});t.prevMonth=function(e){var t=e.getFullYear(),n=e.getMonth();return 0===n?b(e,t-1,11):b(e,t,n-1)},t.nextMonth=function(e){var t=e.getFullYear(),n=e.getMonth();return 11===n?b(e,t+1,0):b(e,t,n+1)},t.prevYear=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=e.getFullYear(),r=e.getMonth();return b(e,n-t,r)},t.nextYear=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=e.getFullYear(),r=e.getMonth();return b(e,n+t,r)},t.extractDateFormat=function(e){return e.replace(/\W?m{1,2}|\W?ZZ/g,"").replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi,"").trim()},t.extractTimeFormat=function(e){return e.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?y{2,4}/g,"").trim()},t.validateRangeInOneMonth=function(e,t){return e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()}},AopE:function(e,t,n){"use strict";var r=n("7+uW"),i=n("R32S");const a=r.default.extend(i.a);let o,s;const l=(e={})=>{"string"==typeof e&&(e={url:e}),e.show=!0,Object.keys(s).map(t=>{void 0==e[t]&&(e[t]=s[t])}),(o=new a({data:e})).$mount();let t=o.$el;return document.body.appendChild(t),o},c=(e,t={})=>{s=t,e.prototype.$hevueImgPreview=l};"undefined"!=typeof window&&window.Vue&&c(window.Vue),t.a=c},B0bq:function(e,t,n){n("fWfb"),e.exports=n("FeBl").Object.getOwnPropertySymbols},BO1k:function(e,t,n){e.exports={default:n("fxRn"),__esModule:!0}},BwfY:function(e,t,n){n("fWfb"),n("M6a0"),n("OYls"),n("QWe/"),e.exports=n("FeBl").Symbol},C4MV:function(e,t,n){e.exports={default:n("9bBU"),__esModule:!0}},CXw9:function(e,t,n){"use strict";var r,i,a,o,s=n("O4g8"),l=n("7KvD"),c=n("+ZMJ"),u=n("RY/4"),h=n("kM2E"),d=n("EqjI"),f=n("lOnJ"),p=n("2KxR"),A=n("NWt+"),g=n("t8x9"),m=n("L42u").set,v=n("82Mu")(),y=n("qARP"),b=n("dNDb"),w=n("iUbK"),x=n("fJUb"),_=l.TypeError,C=l.process,S=C&&C.versions,k=S&&S.v8||"",B=l.Promise,E="process"==u(C),T=function(){},I=i=y.f,M=!!function(){try{var e=B.resolve(1),t=(e.constructor={})[n("dSzd")("species")]=function(e){e(T,T)};return(E||"function"==typeof PromiseRejectionEvent)&&e.then(T)instanceof t&&0!==k.indexOf("6.6")&&-1===w.indexOf("Chrome/66")}catch(e){}}(),F=function(e){var t;return!(!d(e)||"function"!=typeof(t=e.then))&&t},D=function(e,t){if(!e._n){e._n=!0;var n=e._c;v(function(){for(var r=e._v,i=1==e._s,a=0,o=function(t){var n,a,o,s=i?t.ok:t.fail,l=t.resolve,c=t.reject,u=t.domain;try{s?(i||(2==e._h&&L(e),e._h=1),!0===s?n=r:(u&&u.enter(),n=s(r),u&&(u.exit(),o=!0)),n===t.promise?c(_("Promise-chain cycle")):(a=F(n))?a.call(n,l,c):l(n)):c(r)}catch(e){u&&!o&&u.exit(),c(e)}};n.length>a;)o(n[a++]);e._c=[],e._n=!1,t&&!e._h&&P(e)})}},P=function(e){m.call(l,function(){var t,n,r,i=e._v,a=O(e);if(a&&(t=b(function(){E?C.emit("unhandledRejection",i,e):(n=l.onunhandledrejection)?n({promise:e,reason:i}):(r=l.console)&&r.error&&r.error("Unhandled promise rejection",i)}),e._h=E||O(e)?2:1),e._a=void 0,a&&t.e)throw t.v})},O=function(e){return 1!==e._h&&0===(e._a||e._c).length},L=function(e){m.call(l,function(){var t;E?C.emit("rejectionHandled",e):(t=l.onrejectionhandled)&&t({promise:e,reason:e._v})})},R=function(e){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),D(t,!0))},N=function(e){var t,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw _("Promise can't be resolved itself");(t=F(e))?v(function(){var r={_w:n,_d:!1};try{t.call(e,c(N,r,1),c(R,r,1))}catch(e){R.call(r,e)}}):(n._v=e,n._s=1,D(n,!1))}catch(e){R.call({_w:n,_d:!1},e)}}};M||(B=function(e){p(this,B,"Promise","_h"),f(e),r.call(this);try{e(c(N,this,1),c(R,this,1))}catch(e){R.call(this,e)}},(r=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n("xH/j")(B.prototype,{then:function(e,t){var n=I(g(this,B));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=E?C.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&D(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),a=function(){var e=new r;this.promise=e,this.resolve=c(N,e,1),this.reject=c(R,e,1)},y.f=I=function(e){return e===B||e===o?new a(e):i(e)}),h(h.G+h.W+h.F*!M,{Promise:B}),n("e6n0")(B,"Promise"),n("bRrM")("Promise"),o=n("FeBl").Promise,h(h.S+h.F*!M,"Promise",{reject:function(e){var t=I(this);return(0,t.reject)(e),t.promise}}),h(h.S+h.F*(s||!M),"Promise",{resolve:function(e){return x(s&&this===o?B:this,e)}}),h(h.S+h.F*!(M&&n("dY0y")(function(e){B.all(e).catch(T)})),"Promise",{all:function(e){var t=this,n=I(t),r=n.resolve,i=n.reject,a=b(function(){var n=[],a=0,o=1;A(e,!1,function(e){var s=a++,l=!1;n.push(void 0),o++,t.resolve(e).then(function(e){l||(l=!0,n[s]=e,--o||r(n))},i)}),--o||r(n)});return a.e&&i(a.v),n.promise},race:function(e){var t=this,n=I(t),r=n.reject,i=b(function(){A(e,!1,function(e){t.resolve(e).then(n.resolve,r)})});return i.e&&r(i.v),n.promise}})},Cdx3:function(e,t,n){var r=n("sB3e"),i=n("lktj");n("uqUo")("keys",function(){return function(e){return i(r(e))}})},CwSZ:function(e,t,n){"use strict";var r=n("Zoe1"),i=n("p8xL"),a=n("XgCd"),o=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},l=Array.isArray,c=Array.prototype.push,u=function(e,t){c.apply(e,l(t)?t:[t])},h=Date.prototype.toISOString,d=a.default,f={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:i.encode,encodeValuesOnly:!1,format:d,formatter:a.formatters[d],indices:!1,serializeDate:function(e){return h.call(e)},skipNulls:!1,strictNullHandling:!1},p=function e(t,n,a,o,s,c,h,d,p,A,g,m,v,y,b){var w,x=t;if(b.has(t))throw new RangeError("Cyclic object value");if("function"==typeof h?x=h(n,x):x instanceof Date?x=A(x):"comma"===a&&l(x)&&(x=i.maybeMap(x,function(e){return e instanceof Date?A(e):e})),null===x){if(o)return c&&!v?c(n,f.encoder,y,"key",g):n;x=""}if("string"==typeof(w=x)||"number"==typeof w||"boolean"==typeof w||"symbol"==typeof w||"bigint"==typeof w||i.isBuffer(x))return c?[m(v?n:c(n,f.encoder,y,"key",g))+"="+m(c(x,f.encoder,y,"value",g))]:[m(n)+"="+m(String(x))];var _,C=[];if(void 0===x)return C;if("comma"===a&&l(x))_=[{value:x.length>0?x.join(",")||null:void 0}];else if(l(h))_=h;else{var S=Object.keys(x);_=d?S.sort(d):S}for(var k=0;k<_.length;++k){var B=_[k],E="object"==typeof B&&void 0!==B.value?B.value:x[B];if(!s||null!==E){var T=l(x)?"function"==typeof a?a(n,B):n:n+(p?"."+B:"["+B+"]");b.set(t,!0);var I=r();u(C,e(E,T,a,o,s,c,h,d,p,A,g,m,v,y,I))}}return C};e.exports=function(e,t){var n,i=e,c=function(e){if(!e)return f;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||f.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=a.default;if(void 0!==e.format){if(!o.call(a.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r=a.formatters[n],i=f.filter;return("function"==typeof e.filter||l(e.filter))&&(i=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:f.addQueryPrefix,allowDots:void 0===e.allowDots?f.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:f.charsetSentinel,delimiter:void 0===e.delimiter?f.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:f.encode,encoder:"function"==typeof e.encoder?e.encoder:f.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:f.encodeValuesOnly,filter:i,format:n,formatter:r,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:f.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:f.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:f.strictNullHandling}}(t);"function"==typeof c.filter?i=(0,c.filter)("",i):l(c.filter)&&(n=c.filter);var h,d=[];if("object"!=typeof i||null===i)return"";h=t&&t.arrayFormat in s?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var A=s[h];n||(n=Object.keys(i)),c.sort&&n.sort(c.sort);for(var g=r(),m=0;m<n.length;++m){var v=n[m];c.skipNulls&&null===i[v]||u(d,p(i[v],v,A,c.strictNullHandling,c.skipNulls,c.encode?c.encoder:null,c.filter,c.sort,c.allowDots,c.serializeDate,c.format,c.formatter,c.encodeValuesOnly,c.charset,g))}var y=d.join(c.delimiter),b=!0===c.addQueryPrefix?"?":"";return c.charsetSentinel&&("iso-8859-1"===c.charset?b+="utf8=%26%2310003%3B&":b+="utf8=%E2%9C%93&"),y.length>0?b+y:""}},D2L2:function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},DDCP:function(e,t,n){"use strict";var r=n("p8xL"),i=Object.prototype.hasOwnProperty,a=Array.isArray,o={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(e){return e.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},l=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},c=function(e,t,n,r){if(e){var a=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,o=/(\[[^[\]]*])/g,s=n.depth>0&&/(\[[^[\]]*])/.exec(a),c=s?a.slice(0,s.index):a,u=[];if(c){if(!n.plainObjects&&i.call(Object.prototype,c)&&!n.allowPrototypes)return;u.push(c)}for(var h=0;n.depth>0&&null!==(s=o.exec(a))&&h<n.depth;){if(h+=1,!n.plainObjects&&i.call(Object.prototype,s[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(s[1])}return s&&u.push("["+a.slice(s.index)+"]"),function(e,t,n,r){for(var i=r?t:l(t,n),a=e.length-1;a>=0;--a){var o,s=e[a];if("[]"===s&&n.parseArrays)o=[].concat(i);else{o=n.plainObjects?Object.create(null):{};var c="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,u=parseInt(c,10);n.parseArrays||""!==c?!isNaN(u)&&s!==c&&String(u)===c&&u>=0&&n.parseArrays&&u<=n.arrayLimit?(o=[])[u]=i:o[c]=i:o={0:i}}i=o}return i}(u,t,n,r)}};e.exports=function(e,t){var n=function(e){if(!e)return o;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?o.charset:e.charset;return{allowDots:void 0===e.allowDots?o.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:o.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:o.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:o.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:o.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:o.comma,decoder:"function"==typeof e.decoder?e.decoder:o.decoder,delimiter:"string"==typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:o.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:o.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:o.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:o.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:o.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:o.strictNullHandling}}(t);if(""===e||null===e||void 0===e)return n.plainObjects?Object.create(null):{};for(var u="string"==typeof e?function(e,t){var n,c={},u=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,h=t.parameterLimit===1/0?void 0:t.parameterLimit,d=u.split(t.delimiter,h),f=-1,p=t.charset;if(t.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"),f=n,n=d.length);for(n=0;n<d.length;++n)if(n!==f){var A,g,m=d[n],v=m.indexOf("]="),y=-1===v?m.indexOf("="):v+1;-1===y?(A=t.decoder(m,o.decoder,p,"key"),g=t.strictNullHandling?null:""):(A=t.decoder(m.slice(0,y),o.decoder,p,"key"),g=r.maybeMap(l(m.slice(y+1),t),function(e){return t.decoder(e,o.decoder,p,"value")})),g&&t.interpretNumericEntities&&"iso-8859-1"===p&&(g=s(g)),m.indexOf("[]=")>-1&&(g=a(g)?[g]:g),i.call(c,A)?c[A]=r.combine(c[A],g):c[A]=g}return c}(e,n):e,h=n.plainObjects?Object.create(null):{},d=Object.keys(u),f=0;f<d.length;++f){var p=d[f],A=c(p,u[p],n,"string"==typeof e);h=r.merge(h,A,n)}return!0===n.allowSparse?h:r.compact(h)}},DQCr:function(e,t,n){"use strict";var r=n("cGG2");function i(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var a;if(n)a=n(t);else if(r.isURLSearchParams(t))a=t.toString();else{var o=[];r.forEach(t,function(e,t){null!==e&&void 0!==e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),o.push(i(t)+"="+i(e))}))}),a=o.join("&")}if(a){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}},DQJY:function(e,t,n){"use strict";t.__esModule=!0;var r,i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=n("hyEB"),o=(r=a)&&r.__esModule?r:{default:r};var s,l=l||{};l.Dialog=function(e,t,n){var r=this;if(this.dialogNode=e,null===this.dialogNode||"dialog"!==this.dialogNode.getAttribute("role"))throw new Error("Dialog() requires a DOM element with ARIA role of dialog.");"string"==typeof t?this.focusAfterClosed=document.getElementById(t):"object"===(void 0===t?"undefined":i(t))?this.focusAfterClosed=t: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():o.default.focusFirstDescendant(this.dialogNode),this.lastFocus=document.activeElement,s=function(e){r.trapFocus(e)},this.addListeners()},l.Dialog.prototype.addListeners=function(){document.addEventListener("focus",s,!0)},l.Dialog.prototype.removeListeners=function(){document.removeEventListener("focus",s,!0)},l.Dialog.prototype.closeDialog=function(){var e=this;this.removeListeners(),this.focusAfterClosed&&setTimeout(function(){e.focusAfterClosed.focus()})},l.Dialog.prototype.trapFocus=function(e){o.default.IgnoreUtilFocusChanges||(this.dialogNode.contains(e.target)?this.lastFocus=e.target:(o.default.focusFirstDescendant(this.dialogNode),this.lastFocus===document.activeElement&&o.default.focusLastDescendant(this.dialogNode),this.lastFocus=document.activeElement))},t.default=l.Dialog},DUeU:function(e,t,n){"use strict";var r=n("cGG2");e.exports=function(e,t){t=t||{};var n={},i=["url","method","data"],a=["headers","auth","proxy","params"],o=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],s=["validateStatus"];function l(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function c(i){r.isUndefined(t[i])?r.isUndefined(e[i])||(n[i]=l(void 0,e[i])):n[i]=l(e[i],t[i])}r.forEach(i,function(e){r.isUndefined(t[e])||(n[e]=l(void 0,t[e]))}),r.forEach(a,c),r.forEach(o,function(i){r.isUndefined(t[i])?r.isUndefined(e[i])||(n[i]=l(void 0,e[i])):n[i]=l(void 0,t[i])}),r.forEach(s,function(r){r in t?n[r]=l(e[r],t[r]):r in e&&(n[r]=l(void 0,e[r]))});var u=i.concat(a).concat(o).concat(s),h=Object.keys(e).concat(Object.keys(t)).filter(function(e){return-1===u.indexOf(e)});return r.forEach(h,c),n}},Dd8w:function(e,t,n){"use strict";t.__esModule=!0;var r,i=n("woOf"),a=(r=i)&&r.__esModule?r:{default:r};t.default=a.default||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}},Dia2:function(e,t,n){
  13. /**
  14. * @license
  15. * Video.js 6.13.0 <http://videojs.com/>
  16. * Copyright Brightcove, Inc. <https://www.brightcove.com/>
  17. * Available under Apache License Version 2.0
  18. * <https://github.com/videojs/video.js/blob/master/LICENSE>
  19. *
  20. * Includes vtt.js <https://github.com/mozilla/vtt.js>
  21. * Available under Apache License Version 2.0
  22. * <https://github.com/mozilla/vtt.js/blob/master/LICENSE>
  23. */
  24. function r(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var i,a=r(n("awF4")),o=r(n("dwO+")),s=r(n("sN1u")),l=r(n("I/+Z")),c=r(n("1Xk4")),u=r(n("ciWi")),h="6.13.0",d=a.navigator&&a.navigator.userAgent||"",f=/AppleWebKit\/([\d.]+)/i.exec(d),p=f?parseFloat(f.pop()):null,A=/iPad/i.test(d),g=/iPhone/i.test(d)&&!A,m=/iPod/i.test(d),v=g||A||m,y=(i=d.match(/OS (\d+)_/i))&&i[1]?i[1]:null,b=/Android/i.test(d),w=function(){var e=d.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!e)return null;var t=e[1]&&parseFloat(e[1]),n=e[2]&&parseFloat(e[2]);return t&&n?parseFloat(e[1]+"."+e[2]):t||null}(),x=b&&/webkit/i.test(d)&&w<2.3,_=b&&w<5&&p<537,C=/Firefox/i.test(d),S=/Edge/i.test(d),k=!S&&(/Chrome/i.test(d)||/CriOS/i.test(d)),B=function(){var e=d.match(/(Chrome|CriOS)\/(\d+)/);return e&&e[2]?parseFloat(e[2]):null}(),E=/MSIE\s8\.0/.test(d),T=function(){var e=/MSIE\s(\d+)\.\d/.exec(d),t=e&&parseFloat(e[1]);return!t&&/Trident\/7.0/i.test(d)&&/rv:11.0/.test(d)&&(t=11),t}(),I=/Safari/i.test(d)&&!k&&!b&&!S,M=(I||v)&&!k,F=ee()&&("ontouchstart"in a||a.navigator.maxTouchPoints||a.DocumentTouch&&a.document instanceof a.DocumentTouch),D=ee()&&"backgroundSize"in a.document.createElement("video").style,P=(Object.freeze||Object)({IS_IPAD:A,IS_IPHONE:g,IS_IPOD:m,IS_IOS:v,IOS_VERSION:y,IS_ANDROID:b,ANDROID_VERSION:w,IS_OLD_ANDROID:x,IS_NATIVE_ANDROID:_,IS_FIREFOX:C,IS_EDGE:S,IS_CHROME:k,CHROME_VERSION:B,IS_IE8:E,IE_VERSION:T,IS_SAFARI:I,IS_ANY_SAFARI:M,TOUCH_ENABLED:F,BACKGROUND_SIZE_SUPPORTED:D}),O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},L=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},R=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},N=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},U=function(e,t){return e.raw=t,e},H=Object.prototype.toString,j=function(e){return V(e)?Object.keys(e):[]};function Q(e,t){j(e).forEach(function(n){return t(e[n],n)})}function z(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Object.assign?Object.assign.apply(Object,[e].concat(n)):(n.forEach(function(t){t&&Q(t,function(t,n){e[n]=t})}),e)}function V(e){return!!e&&"object"===(void 0===e?"undefined":O(e))}function G(e){return V(e)&&"[object Object]"===H.call(e)&&e.constructor===Object}var $=[],q=function(e,t){return function(n,r,i,o){var s=t.levels[r],l=new RegExp("^("+s+")$");if("log"!==n&&i.unshift(n.toUpperCase()+":"),i.unshift(e+":"),$&&$.push([].concat(i)),a.console){var c=a.console[n];c||"debug"!==n||(c=a.console.info||a.console.log),c&&s&&l.test(n)&&(o&&(i=i.map(function(e){if(V(e)||Array.isArray(e))try{return JSON.stringify(e)}catch(t){return String(e)}return String(e)}).join(" ")),c.apply?c[Array.isArray(i)?"apply":"call"](a.console,i):c(i))}}};var W=function e(t){var n="info",r=void 0,i=function e(){for(var t=e.stringify||T&&T<11,i=arguments.length,a=Array(i),o=0;o<i;o++)a[o]=arguments[o];r("log",n,a,t)};return r=q(t,i),i.createLogger=function(n){return e(t+": "+n)},i.levels={all:"debug|log|warn|error",off:"",debug:"debug|log|warn|error",info:"log|warn|error",warn:"warn|error",error:"error",DEFAULT:n},i.level=function(e){if("string"==typeof e){if(!i.levels.hasOwnProperty(e))throw new Error('"'+e+'" in not a valid log level');n=e}return n},(i.history=function(){return $?[].concat($):[]}).filter=function(e){return($||[]).filter(function(t){return new RegExp(".*"+e+".*").test(t[0])})},i.history.clear=function(){$&&($.length=0)},i.history.disable=function(){null!==$&&($.length=0,$=null)},i.history.enable=function(){null===$&&($=[])},i.error=function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return r("error",n,t)},i.warn=function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return r("warn",n,t)},i.debug=function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return r("debug",n,t)},i}("VIDEOJS"),K=W.createLogger;function Y(e,t){if(!e||!t)return"";if("function"==typeof a.getComputedStyle){var n=a.getComputedStyle(e);return n?n[t]:""}return e.currentStyle[t]||""}var X=U(["Setting attributes in the second argument of createEl()\n has been deprecated. Use the third argument instead.\n createEl(type, properties, attributes). Attempting to set "," to ","."],["Setting attributes in the second argument of createEl()\n has been deprecated. Use the third argument instead.\n createEl(type, properties, attributes). Attempting to set "," to ","."]);function J(e){return"string"==typeof e&&/\S/.test(e)}function Z(e){if(/\s/.test(e))throw new Error("class has illegal whitespace characters")}function ee(){return o===a.document&&void 0!==o.createElement}function te(e){return V(e)&&1===e.nodeType}function ne(){try{return a.parent!==a.self}catch(e){return!0}}function re(e){return function(t,n){if(!J(t))return o[e](null);J(n)&&(n=o.querySelector(n));var r=te(n)?n:o;return r[e]&&r[e](t)}}function ie(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"div",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments[3],i=o.createElement(e);return Object.getOwnPropertyNames(t).forEach(function(e){var n=t[e];-1!==e.indexOf("aria-")||"role"===e||"type"===e?(W.warn(s(X,e,n)),i.setAttribute(e,n)):"textContent"===e?ae(i,n):i[e]=n}),Object.getOwnPropertyNames(n).forEach(function(e){i.setAttribute(e,n[e])}),r&&Ce(i,r),i}function ae(e,t){return void 0===e.textContent?e.innerText=t:e.textContent=t,e}function oe(e,t){t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)}function se(e,t){return Z(t),e.classList?e.classList.contains(t):(n=t,new RegExp("(^|\\s)"+n+"($|\\s)")).test(e.className);var n}function le(e,t){return e.classList?e.classList.add(t):se(e,t)||(e.className=(e.className+" "+t).trim()),e}function ce(e,t){return e.classList?e.classList.remove(t):(Z(t),e.className=e.className.split(/\s+/).filter(function(e){return e!==t}).join(" ")),e}function ue(e,t,n){var r=se(e,t);if("function"==typeof n&&(n=n(e,t)),"boolean"!=typeof n&&(n=!r),n!==r)return n?le(e,t):ce(e,t),e}function he(e,t){Object.getOwnPropertyNames(t).forEach(function(n){var r=t[n];null===r||void 0===r||!1===r?e.removeAttribute(n):e.setAttribute(n,!0===r?"":r)})}function de(e){var t={},n=",autoplay,controls,playsinline,loop,muted,default,defaultMuted,";if(e&&e.attributes&&e.attributes.length>0)for(var r=e.attributes,i=r.length-1;i>=0;i--){var a=r[i].name,o=r[i].value;"boolean"!=typeof e[a]&&-1===n.indexOf(","+a+",")||(o=null!==o),t[a]=o}return t}function fe(e,t){return e.getAttribute(t)}function pe(e,t,n){e.setAttribute(t,n)}function Ae(e,t){e.removeAttribute(t)}function ge(){o.body.focus(),o.onselectstart=function(){return!1}}function me(){o.onselectstart=function(){return!0}}function ve(e){if(e&&e.getBoundingClientRect&&e.parentNode){var t=e.getBoundingClientRect(),n={};return["bottom","height","left","right","top","width"].forEach(function(e){void 0!==t[e]&&(n[e]=t[e])}),n.height||(n.height=parseFloat(Y(e,"height"))),n.width||(n.width=parseFloat(Y(e,"width"))),n}}function ye(e){var t=void 0;if(e.getBoundingClientRect&&e.parentNode&&(t=e.getBoundingClientRect()),!t)return{left:0,top:0};var n=o.documentElement,r=o.body,i=n.clientLeft||r.clientLeft||0,s=a.pageXOffset||r.scrollLeft,l=t.left+s-i,c=n.clientTop||r.clientTop||0,u=a.pageYOffset||r.scrollTop,h=t.top+u-c;return{left:Math.round(l),top:Math.round(h)}}function be(e,t){var n={},r=ye(e),i=e.offsetWidth,a=e.offsetHeight,o=r.top,s=r.left,l=t.pageY,c=t.pageX;return t.changedTouches&&(c=t.changedTouches[0].pageX,l=t.changedTouches[0].pageY),n.y=Math.max(0,Math.min(1,(o-l+a)/a)),n.x=Math.max(0,Math.min(1,(c-s)/i)),n}function we(e){return V(e)&&3===e.nodeType}function xe(e){for(;e.firstChild;)e.removeChild(e.firstChild);return e}function _e(e){return"function"==typeof e&&(e=e()),(Array.isArray(e)?e:[e]).map(function(e){return"function"==typeof e&&(e=e()),te(e)||we(e)?e:"string"==typeof e&&/\S/.test(e)?o.createTextNode(e):void 0}).filter(function(e){return e})}function Ce(e,t){return _e(t).forEach(function(t){return e.appendChild(t)}),e}function Se(e,t){return Ce(xe(e),t)}function ke(e){return void 0===e.button&&void 0===e.buttons||(0===e.button&&void 0===e.buttons||(9===T||0===e.button&&1===e.buttons))}var Be=re("querySelector"),Ee=re("querySelectorAll"),Te=(Object.freeze||Object)({isReal:ee,isEl:te,isInFrame:ne,createEl:ie,textContent:ae,prependTo:oe,hasClass:se,addClass:le,removeClass:ce,toggleClass:ue,setAttributes:he,getAttributes:de,getAttribute:fe,setAttribute:pe,removeAttribute:Ae,blockTextSelection:ge,unblockTextSelection:me,getBoundingClientRect:ve,findPosition:ye,getPointerPosition:be,isTextNode:we,emptyEl:xe,normalizeContent:_e,appendContent:Ce,insertContent:Se,isSingleLeftClick:ke,$:Be,$$:Ee}),Ie=1;function Me(){return Ie++}var Fe={},De="vdata"+(new Date).getTime();function Pe(e){var t=e[De];return t||(t=e[De]=Me()),Fe[t]||(Fe[t]={}),Fe[t]}function Oe(e){var t=e[De];return!!t&&!!Object.getOwnPropertyNames(Fe[t]).length}function Le(e){var t=e[De];if(t){delete Fe[t];try{delete e[De]}catch(t){e.removeAttribute?e.removeAttribute(De):e[De]=null}}}function Re(e,t){var n=Pe(e);0===n.handlers[t].length&&(delete n.handlers[t],e.removeEventListener?e.removeEventListener(t,n.dispatcher,!1):e.detachEvent&&e.detachEvent("on"+t,n.dispatcher)),Object.getOwnPropertyNames(n.handlers).length<=0&&(delete n.handlers,delete n.dispatcher,delete n.disabled),0===Object.getOwnPropertyNames(n).length&&Le(e)}function Ne(e,t,n,r){n.forEach(function(n){e(t,n,r)})}function Ue(e){function t(){return!0}function n(){return!1}if(!e||!e.isPropagationStopped){var r=e||a.event;for(var i in e={},r)"layerX"!==i&&"layerY"!==i&&"keyLocation"!==i&&"webkitMovementX"!==i&&"webkitMovementY"!==i&&("returnValue"===i&&r.preventDefault||(e[i]=r[i]));if(e.target||(e.target=e.srcElement||o),e.relatedTarget||(e.relatedTarget=e.fromElement===e.target?e.toElement:e.fromElement),e.preventDefault=function(){r.preventDefault&&r.preventDefault(),e.returnValue=!1,r.returnValue=!1,e.defaultPrevented=!0},e.defaultPrevented=!1,e.stopPropagation=function(){r.stopPropagation&&r.stopPropagation(),e.cancelBubble=!0,r.cancelBubble=!0,e.isPropagationStopped=t},e.isPropagationStopped=n,e.stopImmediatePropagation=function(){r.stopImmediatePropagation&&r.stopImmediatePropagation(),e.isImmediatePropagationStopped=t,e.stopPropagation()},e.isImmediatePropagationStopped=n,null!==e.clientX&&void 0!==e.clientX){var s=o.documentElement,l=o.body;e.pageX=e.clientX+(s&&s.scrollLeft||l&&l.scrollLeft||0)-(s&&s.clientLeft||l&&l.clientLeft||0),e.pageY=e.clientY+(s&&s.scrollTop||l&&l.scrollTop||0)-(s&&s.clientTop||l&&l.clientTop||0)}e.which=e.charCode||e.keyCode,null!==e.button&&void 0!==e.button&&(e.button=1&e.button?0:4&e.button?1:2&e.button?2:0)}return e}var He=!1;!function(){try{var e=Object.defineProperty({},"passive",{get:function(){He=!0}});a.addEventListener("test",null,e),a.removeEventListener("test",null,e)}catch(e){}}();var je=["touchstart","touchmove"];function Qe(e,t,n){if(Array.isArray(t))return Ne(Qe,e,t,n);var r=Pe(e);if(r.handlers||(r.handlers={}),r.handlers[t]||(r.handlers[t]=[]),n.guid||(n.guid=Me()),r.handlers[t].push(n),r.dispatcher||(r.disabled=!1,r.dispatcher=function(t,n){if(!r.disabled){t=Ue(t);var i=r.handlers[t.type];if(i)for(var a=i.slice(0),o=0,s=a.length;o<s&&!t.isImmediatePropagationStopped();o++)try{a[o].call(e,t,n)}catch(e){W.error(e)}}}),1===r.handlers[t].length)if(e.addEventListener){var i=!1;He&&je.indexOf(t)>-1&&(i={passive:!0}),e.addEventListener(t,r.dispatcher,i)}else e.attachEvent&&e.attachEvent("on"+t,r.dispatcher)}function ze(e,t,n){if(Oe(e)){var r=Pe(e);if(r.handlers){if(Array.isArray(t))return Ne(ze,e,t,n);var i=function(e,t){r.handlers[t]=[],Re(e,t)};if(void 0!==t){var a=r.handlers[t];if(a)if(n){if(n.guid)for(var o=0;o<a.length;o++)a[o].guid===n.guid&&a.splice(o--,1);Re(e,t)}else i(e,t)}else for(var s in r.handlers)Object.prototype.hasOwnProperty.call(r.handlers||{},s)&&i(e,s)}}}function Ve(e,t,n){var r=Oe(e)?Pe(e):{},i=e.parentNode||e.ownerDocument;if("string"==typeof t?t={type:t,target:e}:t.target||(t.target=e),t=Ue(t),r.dispatcher&&r.dispatcher.call(e,t,n),i&&!t.isPropagationStopped()&&!0===t.bubbles)Ve.call(null,i,t,n);else if(!i&&!t.defaultPrevented){var a=Pe(t.target);t.target[t.type]&&(a.disabled=!0,"function"==typeof t.target[t.type]&&t.target[t.type](),a.disabled=!1)}return!t.defaultPrevented}function Ge(e,t,n){if(Array.isArray(t))return Ne(Ge,e,t,n);var r=function r(){ze(e,t,r),n.apply(this,arguments)};r.guid=n.guid=n.guid||Me(),Qe(e,t,r)}var $e=(Object.freeze||Object)({fixEvent:Ue,on:Qe,off:ze,trigger:Ve,one:Ge}),qe=!1,We=void 0,Ke=function(){if(ee()&&!1!==We.options.autoSetup){var e=o.getElementsByTagName("video"),t=o.getElementsByTagName("audio"),n=o.getElementsByTagName("video-js"),r=[];if(e&&e.length>0)for(var i=0,a=e.length;i<a;i++)r.push(e[i]);if(t&&t.length>0)for(var s=0,l=t.length;s<l;s++)r.push(t[s]);if(n&&n.length>0)for(var c=0,u=n.length;c<u;c++)r.push(n[c]);if(r&&r.length>0)for(var h=0,d=r.length;h<d;h++){var f=r[h];if(!f||!f.getAttribute){Ye(1);break}void 0===f.player&&null!==f.getAttribute("data-setup")&&We(f)}else qe||Ye(1)}};function Ye(e,t){t&&(We=t),a.setTimeout(Ke,e)}ee()&&"complete"===o.readyState?qe=!0:Ge(a,"load",function(){qe=!0});var Xe=function(e){var t=o.createElement("style");return t.className=e,t},Je=function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.textContent=t},Ze=function(e,t,n){t.guid||(t.guid=Me());var r=function(){return t.apply(e,arguments)};return r.guid=n?n+"_"+t.guid:t.guid,r},et=function(e,t){var n=Date.now();return function(){var r=Date.now();r-n>=t&&(e.apply(void 0,arguments),n=r)}},tt=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:a,i=void 0,o=function(){var a=this,o=arguments,s=function(){i=null,s=null,n||e.apply(a,o)};!i&&n&&e.apply(a,o),r.clearTimeout(i),i=r.setTimeout(s,t)};return o.cancel=function(){r.clearTimeout(i),i=null},o},nt=function(){};nt.prototype.allowedEvents_={},nt.prototype.on=function(e,t){var n=this.addEventListener;this.addEventListener=function(){},Qe(this,e,t),this.addEventListener=n},nt.prototype.addEventListener=nt.prototype.on,nt.prototype.off=function(e,t){ze(this,e,t)},nt.prototype.removeEventListener=nt.prototype.off,nt.prototype.one=function(e,t){var n=this.addEventListener;this.addEventListener=function(){},Ge(this,e,t),this.addEventListener=n},nt.prototype.trigger=function(e){var t=e.type||e;"string"==typeof e&&(e={type:t}),e=Ue(e),this.allowedEvents_[t]&&this["on"+t]&&this["on"+t](e),Ve(this,e)},nt.prototype.dispatchEvent=nt.prototype.trigger;var rt=function(e){return e instanceof nt||!!e.eventBusEl_&&["on","one","off","trigger"].every(function(t){return"function"==typeof e[t]})},it=function(e){return"string"==typeof e&&/\S/.test(e)||Array.isArray(e)&&!!e.length},at=function(e){if(!e.nodeName&&!rt(e))throw new Error("Invalid target; must be a DOM node or evented object.")},ot=function(e){if(!it(e))throw new Error("Invalid event type; must be a non-empty string or array.")},st=function(e){if("function"!=typeof e)throw new Error("Invalid listener; must be a function.")},lt=function(e,t){var n=t.length<3||t[0]===e||t[0]===e.eventBusEl_,r=void 0,i=void 0,a=void 0;return n?(r=e.eventBusEl_,t.length>=3&&t.shift(),i=t[0],a=t[1]):(r=t[0],i=t[1],a=t[2]),at(r),ot(i),st(a),{isTargetingSelf:n,target:r,type:i,listener:a=Ze(e,a)}},ct=function(e,t,n,r){at(e),e.nodeName?$e[t](e,n,r):e[t](n,r)},ut={on:function(){for(var e=this,t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=lt(this,n),a=i.isTargetingSelf,o=i.target,s=i.type,l=i.listener;if(ct(o,"on",s,l),!a){var c=function(){return e.off(o,s,l)};c.guid=l.guid;var u=function(){return e.off("dispose",c)};u.guid=l.guid,ct(this,"on","dispose",c),ct(o,"on","dispose",u)}},one:function(){for(var e=this,t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=lt(this,n),a=i.isTargetingSelf,o=i.target,s=i.type,l=i.listener;if(a)ct(o,"one",s,l);else{var c=function t(){for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];e.off(o,s,t),l.apply(null,r)};c.guid=l.guid,ct(o,"one",s,c)}},off:function(e,t,n){if(!e||it(e))ze(this.eventBusEl_,e,t);else{var r=e,i=t;at(r),ot(i),st(n),n=Ze(this,n),this.off("dispose",n),r.nodeName?(ze(r,i,n),ze(r,"dispose",n)):rt(r)&&(r.off(i,n),r.off("dispose",n))}},trigger:function(e,t){return Ve(this.eventBusEl_,e,t)}};function ht(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).eventBusKey;if(t){if(!e[t].nodeName)throw new Error('The eventBusKey "'+t+'" does not refer to an element.');e.eventBusEl_=e[t]}else e.eventBusEl_=ie("span",{className:"vjs-event-bus"});return z(e,ut),e.on("dispose",function(){e.off(),a.setTimeout(function(){e.eventBusEl_=null},0)}),e}var dt={state:{},setState:function(e){var t=this;"function"==typeof e&&(e=e());var n=void 0;return Q(e,function(e,r){t.state[r]!==e&&((n=n||{})[r]={from:t.state[r],to:e}),t.state[r]=e}),n&&rt(this)&&this.trigger({changes:n,type:"statechanged"}),n}};function ft(e,t){return z(e,dt),e.state=z({},e.state,t),"function"==typeof e.handleStateChanged&&rt(e)&&e.on("statechanged",e.handleStateChanged),e}function pt(e){return"string"!=typeof e?e:e.charAt(0).toUpperCase()+e.slice(1)}function At(){for(var e={},t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(function(t){t&&Q(t,function(t,n){G(t)?(G(e[n])||(e[n]={}),e[n]=At(e[n],t)):e[n]=t})}),e}var gt=function(){function e(t,n,r){if(L(this,e),!t&&this.play?this.player_=t=this:this.player_=t,this.options_=At({},this.options_),n=this.options_=At(this.options_,n),this.id_=n.id||n.el&&n.el.id,!this.id_){var i=t&&t.id&&t.id()||"no_player";this.id_=i+"_component_"+Me()}this.name_=n.name||null,n.el?this.el_=n.el:!1!==n.createEl&&(this.el_=this.createEl()),!1!==n.evented&&ht(this,{eventBusKey:this.el_?"el_":null}),ft(this,this.constructor.defaultState),this.children_=[],this.childIndex_={},this.childNameIndex_={},!1!==n.initChildren&&this.initChildren(),this.ready(r),!1!==n.reportTouchActivity&&this.enableTouchActivity()}return e.prototype.dispose=function(){if(this.trigger({type:"dispose",bubbles:!1}),this.children_)for(var e=this.children_.length-1;e>=0;e--)this.children_[e].dispose&&this.children_[e].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.el_&&(this.el_.parentNode&&this.el_.parentNode.removeChild(this.el_),Le(this.el_),this.el_=null),this.player_=null},e.prototype.player=function(){return this.player_},e.prototype.options=function(e){return W.warn("this.options() has been deprecated and will be moved to the constructor in 6.0"),e?(this.options_=At(this.options_,e),this.options_):this.options_},e.prototype.el=function(){return this.el_},e.prototype.createEl=function(e,t,n){return ie(e,t,n)},e.prototype.localize=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,r=this.player_.language&&this.player_.language(),i=this.player_.languages&&this.player_.languages(),a=i&&i[r],o=r&&r.split("-")[0],s=i&&i[o],l=n;return a&&a[e]?l=a[e]:s&&s[e]&&(l=s[e]),t&&(l=l.replace(/\{(\d+)\}/g,function(e,n){var r=t[n-1],i=r;return void 0===r&&(i=e),i})),l},e.prototype.contentEl=function(){return this.contentEl_||this.el_},e.prototype.id=function(){return this.id_},e.prototype.name=function(){return this.name_},e.prototype.children=function(){return this.children_},e.prototype.getChildById=function(e){return this.childIndex_[e]},e.prototype.getChild=function(e){if(e)return e=pt(e),this.childNameIndex_[e]},e.prototype.addChild=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.children_.length,i=void 0,a=void 0;if("string"==typeof t){a=pt(t);var o=n.componentClass||a;n.name=a;var s=e.getComponent(o);if(!s)throw new Error("Component "+o+" does not exist");if("function"!=typeof s)return null;i=new s(this.player_||this,n)}else i=t;if(this.children_.splice(r,0,i),"function"==typeof i.id&&(this.childIndex_[i.id()]=i),(a=a||i.name&&pt(i.name()))&&(this.childNameIndex_[a]=i),"function"==typeof i.el&&i.el()){var l=this.contentEl().children[r]||null;this.contentEl().insertBefore(i.el(),l)}return i},e.prototype.removeChild=function(e){if("string"==typeof e&&(e=this.getChild(e)),e&&this.children_){for(var t=!1,n=this.children_.length-1;n>=0;n--)if(this.children_[n]===e){t=!0,this.children_.splice(n,1);break}if(t){this.childIndex_[e.id()]=null,this.childNameIndex_[e.name()]=null;var r=e.el();r&&r.parentNode===this.contentEl()&&this.contentEl().removeChild(e.el())}}},e.prototype.initChildren=function(){var t=this,n=this.options_.children;if(n){var r=this.options_,i=void 0,a=e.getComponent("Tech");(i=Array.isArray(n)?n:Object.keys(n)).concat(Object.keys(this.options_).filter(function(e){return!i.some(function(t){return"string"==typeof t?e===t:e===t.name})})).map(function(e){var r=void 0,i=void 0;return"string"==typeof e?i=n[r=e]||t.options_[r]||{}:(r=e.name,i=e),{name:r,opts:i}}).filter(function(t){var n=e.getComponent(t.opts.componentClass||pt(t.name));return n&&!a.isTech(n)}).forEach(function(e){var n=e.name,i=e.opts;if(void 0!==r[n]&&(i=r[n]),!1!==i){!0===i&&(i={}),i.playerOptions=t.options_.playerOptions;var a=t.addChild(n,i);a&&(t[n]=a)}})}},e.prototype.buildCSSClass=function(){return""},e.prototype.ready=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e)return this.isReady_?void(t?e.call(this):this.setTimeout(e,1)):(this.readyQueue_=this.readyQueue_||[],void this.readyQueue_.push(e))},e.prototype.triggerReady=function(){this.isReady_=!0,this.setTimeout(function(){var e=this.readyQueue_;this.readyQueue_=[],e&&e.length>0&&e.forEach(function(e){e.call(this)},this),this.trigger("ready")},1)},e.prototype.$=function(e,t){return Be(e,t||this.contentEl())},e.prototype.$$=function(e,t){return Ee(e,t||this.contentEl())},e.prototype.hasClass=function(e){return se(this.el_,e)},e.prototype.addClass=function(e){le(this.el_,e)},e.prototype.removeClass=function(e){ce(this.el_,e)},e.prototype.toggleClass=function(e,t){ue(this.el_,e,t)},e.prototype.show=function(){this.removeClass("vjs-hidden")},e.prototype.hide=function(){this.addClass("vjs-hidden")},e.prototype.lockShowing=function(){this.addClass("vjs-lock-showing")},e.prototype.unlockShowing=function(){this.removeClass("vjs-lock-showing")},e.prototype.getAttribute=function(e){return fe(this.el_,e)},e.prototype.setAttribute=function(e,t){pe(this.el_,e,t)},e.prototype.removeAttribute=function(e){Ae(this.el_,e)},e.prototype.width=function(e,t){return this.dimension("width",e,t)},e.prototype.height=function(e,t){return this.dimension("height",e,t)},e.prototype.dimensions=function(e,t){this.width(e,!0),this.height(t)},e.prototype.dimension=function(e,t,n){if(void 0!==t)return null!==t&&t==t||(t=0),-1!==(""+t).indexOf("%")||-1!==(""+t).indexOf("px")?this.el_.style[e]=t:this.el_.style[e]="auto"===t?"":t+"px",void(n||this.trigger("componentresize"));if(!this.el_)return 0;var r=this.el_.style[e],i=r.indexOf("px");return-1!==i?parseInt(r.slice(0,i),10):parseInt(this.el_["offset"+pt(e)],10)},e.prototype.currentDimension=function(e){var t=0;if("width"!==e&&"height"!==e)throw new Error("currentDimension only accepts width or height value");if("function"==typeof a.getComputedStyle){var n=a.getComputedStyle(this.el_);t=n.getPropertyValue(e)||n[e]}if(0===(t=parseFloat(t))){var r="offset"+pt(e);t=this.el_[r]}return t},e.prototype.currentDimensions=function(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}},e.prototype.currentWidth=function(){return this.currentDimension("width")},e.prototype.currentHeight=function(){return this.currentDimension("height")},e.prototype.focus=function(){this.el_.focus()},e.prototype.blur=function(){this.el_.blur()},e.prototype.emitTapEvents=function(){var e=0,t=null,n=void 0;this.on("touchstart",function(r){1===r.touches.length&&(t={pageX:r.touches[0].pageX,pageY:r.touches[0].pageY},e=(new Date).getTime(),n=!0)}),this.on("touchmove",function(e){if(e.touches.length>1)n=!1;else if(t){var r=e.touches[0].pageX-t.pageX,i=e.touches[0].pageY-t.pageY;Math.sqrt(r*r+i*i)>10&&(n=!1)}});var r=function(){n=!1};this.on("touchleave",r),this.on("touchcancel",r),this.on("touchend",function(r){(t=null,!0===n)&&((new Date).getTime()-e<200&&(r.preventDefault(),this.trigger("tap")))})},e.prototype.enableTouchActivity=function(){if(this.player()&&this.player().reportUserActivity){var e=Ze(this.player(),this.player().reportUserActivity),t=void 0;this.on("touchstart",function(){e(),this.clearInterval(t),t=this.setInterval(e,250)});var n=function(n){e(),this.clearInterval(t)};this.on("touchmove",e),this.on("touchend",n),this.on("touchcancel",n)}},e.prototype.setTimeout=function(e,t){var n,r,i=this;return e=Ze(this,e),n=a.setTimeout(function(){i.off("dispose",r),e()},t),(r=function(){return i.clearTimeout(n)}).guid="vjs-timeout-"+n,this.on("dispose",r),n},e.prototype.clearTimeout=function(e){a.clearTimeout(e);var t=function(){};return t.guid="vjs-timeout-"+e,this.off("dispose",t),e},e.prototype.setInterval=function(e,t){var n=this;e=Ze(this,e);var r=a.setInterval(e,t),i=function(){return n.clearInterval(r)};return i.guid="vjs-interval-"+r,this.on("dispose",i),r},e.prototype.clearInterval=function(e){a.clearInterval(e);var t=function(){};return t.guid="vjs-interval-"+e,this.off("dispose",t),e},e.prototype.requestAnimationFrame=function(e){var t,n,r=this;return this.supportsRaf_?(e=Ze(this,e),t=a.requestAnimationFrame(function(){r.off("dispose",n),e()}),(n=function(){return r.cancelAnimationFrame(t)}).guid="vjs-raf-"+t,this.on("dispose",n),t):this.setTimeout(e,1e3/60)},e.prototype.cancelAnimationFrame=function(e){if(this.supportsRaf_){a.cancelAnimationFrame(e);var t=function(){};return t.guid="vjs-raf-"+e,this.off("dispose",t),e}return this.clearTimeout(e)},e.registerComponent=function(t,n){if("string"!=typeof t||!t)throw new Error('Illegal component name, "'+t+'"; must be a non-empty string.');var r=e.getComponent("Tech"),i=r&&r.isTech(n),a=e===n||e.prototype.isPrototypeOf(n.prototype);if(i||!a){var o=void 0;throw o=i?"techs must be registered using Tech.registerTech()":"must be a Component subclass",new Error('Illegal component, "'+t+'"; '+o+".")}t=pt(t),e.components_||(e.components_={});var s=e.getComponent("Player");if("Player"===t&&s&&s.players){var l=s.players,c=Object.keys(l);if(l&&c.length>0&&c.map(function(e){return l[e]}).every(Boolean))throw new Error("Can not register Player component after player has been created.")}return e.components_[t]=n,n},e.getComponent=function(t){if(t)return t=pt(t),e.components_&&e.components_[t]?e.components_[t]:void 0},e}();function mt(e,t,n,r){return function(e,t,n){if("number"!=typeof t||t<0||t>n)throw new Error("Failed to execute '"+e+"' on 'TimeRanges': The index provided ("+t+") is non-numeric or out of bounds (0-"+n+").")}(e,r,n.length-1),n[r][t]}function vt(e){return void 0===e||0===e.length?{length:0,start:function(){throw new Error("This TimeRanges object is empty")},end:function(){throw new Error("This TimeRanges object is empty")}}:{length:e.length,start:mt.bind(null,"start",0,e),end:mt.bind(null,"end",1,e)}}function yt(e,t){return Array.isArray(e)?vt(e):void 0===e||void 0===t?vt():vt([[e,t]])}function bt(e,t){var n=0,r=void 0,i=void 0;if(!t)return 0;e&&e.length||(e=yt(0,0));for(var a=0;a<e.length;a++)r=e.start(a),(i=e.end(a))>t&&(i=t),n+=i-r;return n/t}gt.prototype.supportsRaf_="function"==typeof a.requestAnimationFrame&&"function"==typeof a.cancelAnimationFrame,gt.registerComponent("Component",gt);for(var wt={},xt=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],_t=xt[0],Ct=void 0,St=0;St<xt.length;St++)if(xt[St][1]in o){Ct=xt[St];break}if(Ct)for(var kt=0;kt<Ct.length;kt++)wt[_t[kt]]=Ct[kt];function Bt(e){if(e instanceof Bt)return e;"number"==typeof e?this.code=e:"string"==typeof e?this.message=e:V(e)&&("number"==typeof e.code&&(this.code=e.code),z(this,e)),this.message||(this.message=Bt.defaultMessages[this.code]||"")}Bt.prototype.code=0,Bt.prototype.message="",Bt.prototype.status=null,Bt.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],Bt.defaultMessages={1:"You aborted the media playback",2:"A network error caused the media download to fail part-way.",3:"The media playback was aborted due to a corruption problem or because the media used features your browser did not support.",4:"The media could not be loaded, either because the server or network failed or because the format is not supported.",5:"The media is encrypted and we do not have the keys to decrypt it."};for(var Et=0;Et<Bt.errorTypes.length;Et++)Bt[Bt.errorTypes[Et]]=Et,Bt.prototype[Bt.errorTypes[Et]]=Et;function Tt(e){return void 0!==e&&null!==e&&"function"==typeof e.then}function It(e){Tt(e)&&e.then(null,function(e){})}var Mt=function(e){return["kind","label","language","id","inBandMetadataTrackDispatchType","mode","src"].reduce(function(t,n,r){return e[n]&&(t[n]=e[n]),t},{cues:e.cues&&Array.prototype.map.call(e.cues,function(e){return{startTime:e.startTime,endTime:e.endTime,text:e.text,id:e.id}})})},Ft=function(e){var t=e.$$("track"),n=Array.prototype.map.call(t,function(e){return e.track});return Array.prototype.map.call(t,function(e){var t=Mt(e.track);return e.src&&(t.src=e.src),t}).concat(Array.prototype.filter.call(e.textTracks(),function(e){return-1===n.indexOf(e)}).map(Mt))},Dt=function(e,t){return e.forEach(function(e){var n=t.addRemoteTextTrack(e).track;!e.src&&e.cues&&e.cues.forEach(function(e){return n.addCue(e)})}),t.textTracks()},Pt="vjs-modal-dialog",Ot=function(e){function t(n,r){L(this,t);var i=N(this,e.call(this,n,r));return i.opened_=i.hasBeenOpened_=i.hasBeenFilled_=!1,i.closeable(!i.options_.uncloseable),i.content(i.options_.content),i.contentEl_=ie("div",{className:Pt+"-content"},{role:"document"}),i.descEl_=ie("p",{className:Pt+"-description vjs-control-text",id:i.el().getAttribute("aria-describedby")}),ae(i.descEl_,i.description()),i.el_.appendChild(i.descEl_),i.el_.appendChild(i.contentEl_),i}return R(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":this.id()+"_description","aria-hidden":"true","aria-label":this.label(),role:"dialog"})},t.prototype.dispose=function(){this.contentEl_=null,this.descEl_=null,this.previouslyActiveEl_=null,e.prototype.dispose.call(this)},t.prototype.buildCSSClass=function(){return Pt+" vjs-hidden "+e.prototype.buildCSSClass.call(this)},t.prototype.handleKeyPress=function(e){27===e.which&&this.closeable()&&this.close()},t.prototype.label=function(){return this.localize(this.options_.label||"Modal Window")},t.prototype.description=function(){var e=this.options_.description||this.localize("This is a modal window.");return this.closeable()&&(e+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button.")),e},t.prototype.open=function(){if(!this.opened_){var e=this.player();this.trigger("beforemodalopen"),this.opened_=!0,(this.options_.fillAlways||!this.hasBeenOpened_&&!this.hasBeenFilled_)&&this.fill(),this.wasPlaying_=!e.paused(),this.options_.pauseOnOpen&&this.wasPlaying_&&e.pause(),this.closeable()&&this.on(this.el_.ownerDocument,"keydown",Ze(this,this.handleKeyPress)),this.hadControls_=e.controls(),e.controls(!1),this.show(),this.conditionalFocus_(),this.el().setAttribute("aria-hidden","false"),this.trigger("modalopen"),this.hasBeenOpened_=!0}},t.prototype.opened=function(e){return"boolean"==typeof e&&this[e?"open":"close"](),this.opened_},t.prototype.close=function(){if(this.opened_){var e=this.player();this.trigger("beforemodalclose"),this.opened_=!1,this.wasPlaying_&&this.options_.pauseOnOpen&&e.play(),this.closeable()&&this.off(this.el_.ownerDocument,"keydown",Ze(this,this.handleKeyPress)),this.hadControls_&&e.controls(!0),this.hide(),this.el().setAttribute("aria-hidden","true"),this.trigger("modalclose"),this.conditionalBlur_(),this.options_.temporary&&this.dispose()}},t.prototype.closeable=function(e){if("boolean"==typeof e){var t=this.closeable_=!!e,n=this.getChild("closeButton");if(t&&!n){var r=this.contentEl_;this.contentEl_=this.el_,n=this.addChild("closeButton",{controlText:"Close Modal Dialog"}),this.contentEl_=r,this.on(n,"close",this.close)}!t&&n&&(this.off(n,"close",this.close),this.removeChild(n),n.dispose())}return this.closeable_},t.prototype.fill=function(){this.fillWith(this.content())},t.prototype.fillWith=function(e){var t=this.contentEl(),n=t.parentNode,r=t.nextSibling;this.trigger("beforemodalfill"),this.hasBeenFilled_=!0,n.removeChild(t),this.empty(),Se(t,e),this.trigger("modalfill"),r?n.insertBefore(t,r):n.appendChild(t);var i=this.getChild("closeButton");i&&n.appendChild(i.el_)},t.prototype.empty=function(){this.trigger("beforemodalempty"),xe(this.contentEl()),this.trigger("modalempty")},t.prototype.content=function(e){return void 0!==e&&(this.content_=e),this.content_},t.prototype.conditionalFocus_=function(){var e=o.activeElement,t=this.player_.el_;this.previouslyActiveEl_=null,(t.contains(e)||t===e)&&(this.previouslyActiveEl_=e,this.focus(),this.on(o,"keydown",this.handleKeyDown))},t.prototype.conditionalBlur_=function(){this.previouslyActiveEl_&&(this.previouslyActiveEl_.focus(),this.previouslyActiveEl_=null),this.off(o,"keydown",this.handleKeyDown)},t.prototype.handleKeyDown=function(e){if(9===e.which){for(var t=this.focusableEls_(),n=this.el_.querySelector(":focus"),r=void 0,i=0;i<t.length;i++)if(n===t[i]){r=i;break}o.activeElement===this.el_&&(r=0),e.shiftKey&&0===r?(t[t.length-1].focus(),e.preventDefault()):e.shiftKey||r!==t.length-1||(t[0].focus(),e.preventDefault())}},t.prototype.focusableEls_=function(){var e=this.el_.querySelectorAll("*");return Array.prototype.filter.call(e,function(e){return(e instanceof a.HTMLAnchorElement||e instanceof a.HTMLAreaElement)&&e.hasAttribute("href")||(e instanceof a.HTMLInputElement||e instanceof a.HTMLSelectElement||e instanceof a.HTMLTextAreaElement||e instanceof a.HTMLButtonElement)&&!e.hasAttribute("disabled")||e instanceof a.HTMLIFrameElement||e instanceof a.HTMLObjectElement||e instanceof a.HTMLEmbedElement||e.hasAttribute("tabindex")&&-1!==e.getAttribute("tabindex")||e.hasAttribute("contenteditable")})},t}(gt);Ot.prototype.options_={pauseOnOpen:!0,temporary:!0},gt.registerComponent("ModalDialog",Ot);var Lt=function(e){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;L(this,t);var i=N(this,e.call(this));if(!r&&(r=i,E))for(var a in r=o.createElement("custom"),t.prototype)"constructor"!==a&&(r[a]=t.prototype[a]);r.tracks_=[],Object.defineProperty(r,"length",{get:function(){return this.tracks_.length}});for(var s=0;s<n.length;s++)r.addTrack(n[s]);return N(i,r)}return R(t,e),t.prototype.addTrack=function(e){var t=this.tracks_.length;""+t in this||Object.defineProperty(this,t,{get:function(){return this.tracks_[t]}}),-1===this.tracks_.indexOf(e)&&(this.tracks_.push(e),this.trigger({track:e,type:"addtrack"}))},t.prototype.removeTrack=function(e){for(var t=void 0,n=0,r=this.length;n<r;n++)if(this[n]===e){(t=this[n]).off&&t.off(),this.tracks_.splice(n,1);break}t&&this.trigger({track:t,type:"removetrack"})},t.prototype.getTrackById=function(e){for(var t=null,n=0,r=this.length;n<r;n++){var i=this[n];if(i.id===e){t=i;break}}return t},t}(nt);for(var Rt in Lt.prototype.allowedEvents_={change:"change",addtrack:"addtrack",removetrack:"removetrack"},Lt.prototype.allowedEvents_)Lt.prototype["on"+Rt]=null;var Nt=function(e,t){for(var n=0;n<e.length;n++)Object.keys(e[n]).length&&t.id!==e[n].id&&(e[n].enabled=!1)},Ut=function(e){function t(){var n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];L(this,t);for(var i=void 0,a=r.length-1;a>=0;a--)if(r[a].enabled){Nt(r,r[a]);break}if(E){for(var s in i=o.createElement("custom"),Lt.prototype)"constructor"!==s&&(i[s]=Lt.prototype[s]);for(var l in t.prototype)"constructor"!==l&&(i[l]=t.prototype[l])}return(i=n=N(this,e.call(this,r,i))).changing_=!1,N(n,i)}return R(t,e),t.prototype.addTrack=function(t){var n=this;t.enabled&&Nt(this,t),e.prototype.addTrack.call(this,t),t.addEventListener&&t.addEventListener("enabledchange",function(){n.changing_||(n.changing_=!0,Nt(n,t),n.changing_=!1,n.trigger("change"))})},t}(Lt),Ht=function(e,t){for(var n=0;n<e.length;n++)Object.keys(e[n]).length&&t.id!==e[n].id&&(e[n].selected=!1)},jt=function(e){function t(){var n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];L(this,t);for(var i=void 0,a=r.length-1;a>=0;a--)if(r[a].selected){Ht(r,r[a]);break}if(E){for(var s in i=o.createElement("custom"),Lt.prototype)"constructor"!==s&&(i[s]=Lt.prototype[s]);for(var l in t.prototype)"constructor"!==l&&(i[l]=t.prototype[l])}return(i=n=N(this,e.call(this,r,i))).changing_=!1,Object.defineProperty(i,"selectedIndex",{get:function(){for(var e=0;e<this.length;e++)if(this[e].selected)return e;return-1},set:function(){}}),N(n,i)}return R(t,e),t.prototype.addTrack=function(t){var n=this;t.selected&&Ht(this,t),e.prototype.addTrack.call(this,t),t.addEventListener&&t.addEventListener("selectedchange",function(){n.changing_||(n.changing_=!0,Ht(n,t),n.changing_=!1,n.trigger("change"))})},t}(Lt),Qt=function(e){function t(){var n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];L(this,t);var i=void 0;if(E){for(var a in i=o.createElement("custom"),Lt.prototype)"constructor"!==a&&(i[a]=Lt.prototype[a]);for(var s in t.prototype)"constructor"!==s&&(i[s]=t.prototype[s])}return n=N(this,e.call(this,r,i)),N(n,i=n)}return R(t,e),t.prototype.addTrack=function(t){e.prototype.addTrack.call(this,t),t.addEventListener("modechange",Ze(this,function(){this.trigger("change")}));-1===["metadata","chapters"].indexOf(t.kind)&&t.addEventListener("modechange",Ze(this,function(){this.trigger("selectedlanguagechange")}))},t}(Lt),zt=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];L(this,e);var n=this;if(E)for(var r in n=o.createElement("custom"),e.prototype)"constructor"!==r&&(n[r]=e.prototype[r]);n.trackElements_=[],Object.defineProperty(n,"length",{get:function(){return this.trackElements_.length}});for(var i=0,a=t.length;i<a;i++)n.addTrackElement_(t[i]);if(E)return n}return e.prototype.addTrackElement_=function(e){var t=this.trackElements_.length;""+t in this||Object.defineProperty(this,t,{get:function(){return this.trackElements_[t]}}),-1===this.trackElements_.indexOf(e)&&this.trackElements_.push(e)},e.prototype.getTrackElementByTrack_=function(e){for(var t=void 0,n=0,r=this.trackElements_.length;n<r;n++)if(e===this.trackElements_[n].track){t=this.trackElements_[n];break}return t},e.prototype.removeTrackElement_=function(e){for(var t=0,n=this.trackElements_.length;t<n;t++)if(e===this.trackElements_[t]){this.trackElements_.splice(t,1);break}},e}(),Vt=function(){function e(t){L(this,e);var n=this;if(E)for(var r in n=o.createElement("custom"),e.prototype)"constructor"!==r&&(n[r]=e.prototype[r]);if(e.prototype.setCues_.call(n,t),Object.defineProperty(n,"length",{get:function(){return this.length_}}),E)return n}return e.prototype.setCues_=function(e){var t=this.length||0,n=0,r=e.length;this.cues_=e,this.length_=e.length;var i=function(e){""+e in this||Object.defineProperty(this,""+e,{get:function(){return this.cues_[e]}})};if(t<r)for(n=t;n<r;n++)i.call(this,n)},e.prototype.getCueById=function(e){for(var t=null,n=0,r=this.length;n<r;n++){var i=this[n];if(i.id===e){t=i;break}}return t},e}(),Gt={alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"},$t={alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"},qt={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"},Wt={disabled:"disabled",hidden:"hidden",showing:"showing"},Kt=function(e){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};L(this,t);var r=N(this,e.call(this)),i=r;if(E)for(var a in i=o.createElement("custom"),t.prototype)"constructor"!==a&&(i[a]=t.prototype[a]);var s={id:n.id||"vjs_track_"+Me(),kind:n.kind||"",label:n.label||"",language:n.language||""},l=function(e){Object.defineProperty(i,e,{get:function(){return s[e]},set:function(){}})};for(var c in s)l(c);return N(r,i)}return R(t,e),t}(nt),Yt=function(e){var t=["protocol","hostname","port","pathname","search","hash","host"],n=o.createElement("a");n.href=e;var r=""===n.host&&"file:"!==n.protocol,i=void 0;r&&((i=o.createElement("div")).innerHTML='<a href="'+e+'"></a>',n=i.firstChild,i.setAttribute("style","display:none; position:absolute;"),o.body.appendChild(i));for(var s={},l=0;l<t.length;l++)s[t[l]]=n[t[l]];return"http:"===s.protocol&&(s.host=s.host.replace(/:80$/,"")),"https:"===s.protocol&&(s.host=s.host.replace(/:443$/,"")),s.protocol||(s.protocol=a.location.protocol),r&&o.body.removeChild(i),s},Xt=function(e){if(!e.match(/^https?:\/\//)){var t=o.createElement("div");t.innerHTML='<a href="'+e+'">x</a>',e=t.firstChild.href}return e},Jt=function(e){if("string"==typeof e){var t=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/i.exec(e);if(t)return t.pop().toLowerCase()}return""},Zt=function(e){var t=a.location,n=Yt(e);return(":"===n.protocol?t.protocol:n.protocol)+n.host!==t.protocol+t.host},en=(Object.freeze||Object)({parseUrl:Yt,getAbsoluteURL:Xt,getFileExtension:Jt,isCrossOrigin:Zt}),tn=function(e,t){var n=new a.WebVTT.Parser(a,a.vttjs,a.WebVTT.StringDecoder()),r=[];n.oncue=function(e){t.addCue(e)},n.onparsingerror=function(e){r.push(e)},n.onflush=function(){t.trigger({type:"loadeddata",target:t})},n.parse(e),r.length>0&&(a.console&&a.console.groupCollapsed&&a.console.groupCollapsed("Text Track parsing errors for "+t.src),r.forEach(function(e){return W.error(e)}),a.console&&a.console.groupEnd&&a.console.groupEnd()),n.flush()},nn=function(e,t){var n={uri:e},r=Zt(e);r&&(n.cors=r),c(n,Ze(this,function(e,n,r){if(e)return W.error(e,n);if(t.loaded_=!0,"function"!=typeof a.WebVTT){if(t.tech_){var i=function(){return tn(r,t)};t.tech_.on("vttjsloaded",i),t.tech_.on("vttjserror",function(){W.error("vttjs failed to load, stopping trying to process "+t.src),t.tech_.off("vttjsloaded",i)})}}else tn(r,t)}))},rn=function(e){function t(){var n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(L(this,t),!r.tech)throw new Error("A tech was not provided.");var i=At(r,{kind:qt[r.kind]||"subtitles",language:r.language||r.srclang||""}),a=Wt[i.mode]||"disabled",o=i.default;"metadata"!==i.kind&&"chapters"!==i.kind||(a="hidden");var s=n=N(this,e.call(this,i));if(s.tech_=i.tech,E)for(var l in t.prototype)"constructor"!==l&&(s[l]=t.prototype[l]);s.cues_=[],s.activeCues_=[];var c=new Vt(s.cues_),u=new Vt(s.activeCues_),h=!1,d=Ze(s,function(){this.activeCues=this.activeCues,h&&(this.trigger("cuechange"),h=!1)});return"disabled"!==a&&s.tech_.ready(function(){s.tech_.on("timeupdate",d)},!0),Object.defineProperty(s,"default",{get:function(){return o},set:function(){}}),Object.defineProperty(s,"mode",{get:function(){return a},set:function(e){var t=this;Wt[e]&&("disabled"!==(a=e)?this.tech_.ready(function(){t.tech_.on("timeupdate",d)},!0):this.tech_.off("timeupdate",d),this.trigger("modechange"))}}),Object.defineProperty(s,"cues",{get:function(){return this.loaded_?c:null},set:function(){}}),Object.defineProperty(s,"activeCues",{get:function(){if(!this.loaded_)return null;if(0===this.cues.length)return u;for(var e=this.tech_.currentTime(),t=[],n=0,r=this.cues.length;n<r;n++){var i=this.cues[n];i.startTime<=e&&i.endTime>=e?t.push(i):i.startTime===i.endTime&&i.startTime<=e&&i.startTime+.5>=e&&t.push(i)}if(h=!1,t.length!==this.activeCues_.length)h=!0;else for(var a=0;a<t.length;a++)-1===this.activeCues_.indexOf(t[a])&&(h=!0);return this.activeCues_=t,u.setCues_(this.activeCues_),u},set:function(){}}),i.src?(s.src=i.src,nn(i.src,s)):s.loaded_=!0,N(n,s)}return R(t,e),t.prototype.addCue=function(e){var t=e;if(a.vttjs&&!(e instanceof a.vttjs.VTTCue)){for(var n in t=new a.vttjs.VTTCue(e.startTime,e.endTime,e.text),e)n in t||(t[n]=e[n]);t.id=e.id,t.originalCue_=e}for(var r=this.tech_.textTracks(),i=0;i<r.length;i++)r[i]!==this&&r[i].removeCue(t);this.cues_.push(t),this.cues.setCues_(this.cues_)},t.prototype.removeCue=function(e){for(var t=this.cues_.length;t--;){var n=this.cues_[t];if(n===e||n.originalCue_&&n.originalCue_===e){this.cues_.splice(t,1),this.cues.setCues_(this.cues_);break}}},t}(Kt);rn.prototype.allowedEvents_={cuechange:"cuechange"};var an=function(e){function t(){var n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};L(this,t);var i=At(r,{kind:$t[r.kind]||""}),a=n=N(this,e.call(this,i)),o=!1;if(E)for(var s in t.prototype)"constructor"!==s&&(a[s]=t.prototype[s]);return Object.defineProperty(a,"enabled",{get:function(){return o},set:function(e){"boolean"==typeof e&&e!==o&&(o=e,this.trigger("enabledchange"))}}),i.enabled&&(a.enabled=i.enabled),a.loaded_=!0,N(n,a)}return R(t,e),t}(Kt),on=function(e){function t(){var n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};L(this,t);var i=At(r,{kind:Gt[r.kind]||""}),a=n=N(this,e.call(this,i)),o=!1;if(E)for(var s in t.prototype)"constructor"!==s&&(a[s]=t.prototype[s]);return Object.defineProperty(a,"selected",{get:function(){return o},set:function(e){"boolean"==typeof e&&e!==o&&(o=e,this.trigger("selectedchange"))}}),i.selected&&(a.selected=i.selected),N(n,a)}return R(t,e),t}(Kt),sn=0,ln=2,cn=function(e){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};L(this,t);var r=N(this,e.call(this)),i=void 0,a=r;if(E)for(var s in a=o.createElement("custom"),t.prototype)"constructor"!==s&&(a[s]=t.prototype[s]);var l=new rn(n);return a.kind=l.kind,a.src=l.src,a.srclang=l.language,a.label=l.label,a.default=l.default,Object.defineProperty(a,"readyState",{get:function(){return i}}),Object.defineProperty(a,"track",{get:function(){return l}}),i=sn,l.addEventListener("loadeddata",function(){i=ln,a.trigger({type:"load",target:a})}),E?N(r,a):r}return R(t,e),t}(nt);cn.prototype.allowedEvents_={load:"load"},cn.NONE=sn,cn.LOADING=1,cn.LOADED=ln,cn.ERROR=3;var un={audio:{ListClass:Ut,TrackClass:an,capitalName:"Audio"},video:{ListClass:jt,TrackClass:on,capitalName:"Video"},text:{ListClass:Qt,TrackClass:rn,capitalName:"Text"}};Object.keys(un).forEach(function(e){un[e].getterName=e+"Tracks",un[e].privateName=e+"Tracks_"});var hn={remoteText:{ListClass:Qt,TrackClass:rn,capitalName:"RemoteText",getterName:"remoteTextTracks",privateName:"remoteTextTracks_"},remoteTextEl:{ListClass:zt,TrackClass:cn,capitalName:"RemoteTextTrackEls",getterName:"remoteTextTrackEls",privateName:"remoteTextTrackEls_"}},dn=At(un,hn);hn.names=Object.keys(hn),un.names=Object.keys(un),dn.names=[].concat(hn.names).concat(un.names);var fn=function(e){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};L(this,t),n.reportTouchActivity=!1;var i=N(this,e.call(this,null,n,r));return i.hasStarted_=!1,i.on("playing",function(){this.hasStarted_=!0}),i.on("loadstart",function(){this.hasStarted_=!1}),dn.names.forEach(function(e){var t=dn[e];n&&n[t.getterName]&&(i[t.privateName]=n[t.getterName])}),i.featuresProgressEvents||i.manualProgressOn(),i.featuresTimeupdateEvents||i.manualTimeUpdatesOn(),["Text","Audio","Video"].forEach(function(e){!1===n["native"+e+"Tracks"]&&(i["featuresNative"+e+"Tracks"]=!1)}),!1===n.nativeCaptions||!1===n.nativeTextTracks?i.featuresNativeTextTracks=!1:!0!==n.nativeCaptions&&!0!==n.nativeTextTracks||(i.featuresNativeTextTracks=!0),i.featuresNativeTextTracks||i.emulateTextTracks(),i.autoRemoteTextTracks_=new dn.text.ListClass,i.initTrackListeners(),n.nativeControlsForTouch||i.emitTapEvents(),i.constructor&&(i.name_=i.constructor.name||"Unknown Tech"),i}return R(t,e),t.prototype.triggerSourceset=function(e){var t=this;this.isReady_||this.one("ready",function(){return t.setTimeout(function(){return t.triggerSourceset(e)},1)}),this.trigger({src:e,type:"sourceset"})},t.prototype.manualProgressOn=function(){this.on("durationchange",this.onDurationChange),this.manualProgress=!0,this.one("ready",this.trackProgress)},t.prototype.manualProgressOff=function(){this.manualProgress=!1,this.stopTrackingProgress(),this.off("durationchange",this.onDurationChange)},t.prototype.trackProgress=function(e){this.stopTrackingProgress(),this.progressInterval=this.setInterval(Ze(this,function(){var e=this.bufferedPercent();this.bufferedPercent_!==e&&this.trigger("progress"),this.bufferedPercent_=e,1===e&&this.stopTrackingProgress()}),500)},t.prototype.onDurationChange=function(e){this.duration_=this.duration()},t.prototype.buffered=function(){return yt(0,0)},t.prototype.bufferedPercent=function(){return bt(this.buffered(),this.duration_)},t.prototype.stopTrackingProgress=function(){this.clearInterval(this.progressInterval)},t.prototype.manualTimeUpdatesOn=function(){this.manualTimeUpdates=!0,this.on("play",this.trackCurrentTime),this.on("pause",this.stopTrackingCurrentTime)},t.prototype.manualTimeUpdatesOff=function(){this.manualTimeUpdates=!1,this.stopTrackingCurrentTime(),this.off("play",this.trackCurrentTime),this.off("pause",this.stopTrackingCurrentTime)},t.prototype.trackCurrentTime=function(){this.currentTimeInterval&&this.stopTrackingCurrentTime(),this.currentTimeInterval=this.setInterval(function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},250)},t.prototype.stopTrackingCurrentTime=function(){this.clearInterval(this.currentTimeInterval),this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},t.prototype.dispose=function(){this.clearTracks(un.names),this.manualProgress&&this.manualProgressOff(),this.manualTimeUpdates&&this.manualTimeUpdatesOff(),e.prototype.dispose.call(this)},t.prototype.clearTracks=function(e){var t=this;(e=[].concat(e)).forEach(function(e){for(var n=t[e+"Tracks"]()||[],r=n.length;r--;){var i=n[r];"text"===e&&t.removeRemoteTextTrack(i),n.removeTrack(i)}})},t.prototype.cleanupAutoTextTracks=function(){for(var e=this.autoRemoteTextTracks_||[],t=e.length;t--;){var n=e[t];this.removeRemoteTextTrack(n)}},t.prototype.reset=function(){},t.prototype.error=function(e){return void 0!==e&&(this.error_=new Bt(e),this.trigger("error")),this.error_},t.prototype.played=function(){return this.hasStarted_?yt(0,0):yt()},t.prototype.setCurrentTime=function(){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},t.prototype.initTrackListeners=function(){var e=this;un.names.forEach(function(t){var n=un[t],r=function(){e.trigger(t+"trackchange")},i=e[n.getterName]();i.addEventListener("removetrack",r),i.addEventListener("addtrack",r),e.on("dispose",function(){i.removeEventListener("removetrack",r),i.removeEventListener("addtrack",r)})})},t.prototype.addWebVttScript_=function(){var e=this;if(!a.WebVTT)if(o.body.contains(this.el())){if(!this.options_["vtt.js"]&&G(u)&&Object.keys(u).length>0)return void this.trigger("vttjsloaded");var t=o.createElement("script");t.src=this.options_["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.12.4/vtt.min.js",t.onload=function(){e.trigger("vttjsloaded")},t.onerror=function(){e.trigger("vttjserror")},this.on("dispose",function(){t.onload=null,t.onerror=null}),a.WebVTT=!0,this.el().parentNode.appendChild(t)}else this.ready(this.addWebVttScript_)},t.prototype.emulateTextTracks=function(){var e=this,t=this.textTracks(),n=this.remoteTextTracks(),r=function(e){return t.addTrack(e.track)},i=function(e){return t.removeTrack(e.track)};n.on("addtrack",r),n.on("removetrack",i),this.addWebVttScript_();var a=function(){return e.trigger("texttrackchange")},o=function(){a();for(var e=0;e<t.length;e++){var n=t[e];n.removeEventListener("cuechange",a),"showing"===n.mode&&n.addEventListener("cuechange",a)}};o(),t.addEventListener("change",o),t.addEventListener("addtrack",o),t.addEventListener("removetrack",o),this.on("dispose",function(){n.off("addtrack",r),n.off("removetrack",i),t.removeEventListener("change",o),t.removeEventListener("addtrack",o),t.removeEventListener("removetrack",o);for(var e=0;e<t.length;e++){t[e].removeEventListener("cuechange",a)}})},t.prototype.addTextTrack=function(e,t,n){if(!e)throw new Error("TextTrack kind is required but was not provided");return function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},a=e.textTracks();i.kind=t,n&&(i.label=n),r&&(i.language=r),i.tech=e;var o=new dn.text.TrackClass(i);return a.addTrack(o),o}(this,e,t,n)},t.prototype.createRemoteTextTrack=function(e){var t=At(e,{tech:this});return new hn.remoteTextEl.TrackClass(t)},t.prototype.addRemoteTextTrack=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments[1],r=this.createRemoteTextTrack(t);return!0!==n&&!1!==n&&(W.warn('Calling addRemoteTextTrack without explicitly setting the "manualCleanup" parameter to `true` is deprecated and default to `false` in future version of video.js'),n=!0),this.remoteTextTrackEls().addTrackElement_(r),this.remoteTextTracks().addTrack(r.track),!0!==n&&this.ready(function(){return e.autoRemoteTextTracks_.addTrack(r.track)}),r},t.prototype.removeRemoteTextTrack=function(e){var t=this.remoteTextTrackEls().getTrackElementByTrack_(e);this.remoteTextTrackEls().removeTrackElement_(t),this.remoteTextTracks().removeTrack(e),this.autoRemoteTextTracks_.removeTrack(e)},t.prototype.getVideoPlaybackQuality=function(){return{}},t.prototype.setPoster=function(){},t.prototype.playsinline=function(){},t.prototype.setPlaysinline=function(){},t.prototype.canPlayType=function(){return""},t.canPlayType=function(){return""},t.canPlaySource=function(e,n){return t.canPlayType(e.type)},t.isTech=function(e){return e.prototype instanceof t||e instanceof t||e===t},t.registerTech=function(e,n){if(t.techs_||(t.techs_={}),!t.isTech(n))throw new Error("Tech "+e+" must be a Tech");if(!t.canPlayType)throw new Error("Techs must have a static canPlayType method on them");if(!t.canPlaySource)throw new Error("Techs must have a static canPlaySource method on them");return e=pt(e),t.techs_[e]=n,"Tech"!==e&&t.defaultTechOrder_.push(e),n},t.getTech=function(e){if(e)return e=pt(e),t.techs_&&t.techs_[e]?t.techs_[e]:a&&a.videojs&&a.videojs[e]?(W.warn("The "+e+" tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)"),a.videojs[e]):void 0},t}(gt);dn.names.forEach(function(e){var t=dn[e];fn.prototype[t.getterName]=function(){return this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName]}}),fn.prototype.featuresVolumeControl=!0,fn.prototype.featuresMuteControl=!0,fn.prototype.featuresFullscreenResize=!1,fn.prototype.featuresPlaybackRate=!1,fn.prototype.featuresProgressEvents=!1,fn.prototype.featuresSourceset=!1,fn.prototype.featuresTimeupdateEvents=!1,fn.prototype.featuresNativeTextTracks=!1,fn.withSourceHandlers=function(e){e.registerSourceHandler=function(t,n){var r=e.sourceHandlers;r||(r=e.sourceHandlers=[]),void 0===n&&(n=r.length),r.splice(n,0,t)},e.canPlayType=function(t){for(var n=e.sourceHandlers||[],r=void 0,i=0;i<n.length;i++)if(r=n[i].canPlayType(t))return r;return""},e.selectSourceHandler=function(t,n){for(var r=e.sourceHandlers||[],i=0;i<r.length;i++)if(r[i].canHandleSource(t,n))return r[i];return null},e.canPlaySource=function(t,n){var r=e.selectSourceHandler(t,n);return r?r.canHandleSource(t,n):""};["seekable","seeking","duration"].forEach(function(e){var t=this[e];"function"==typeof t&&(this[e]=function(){return this.sourceHandler_&&this.sourceHandler_[e]?this.sourceHandler_[e].apply(this.sourceHandler_,arguments):t.apply(this,arguments)})},e.prototype),e.prototype.setSource=function(t){var n=e.selectSourceHandler(t,this.options_);n||(e.nativeSourceHandler?n=e.nativeSourceHandler:W.error("No source hander found for the current source.")),this.disposeSourceHandler(),this.off("dispose",this.disposeSourceHandler),n!==e.nativeSourceHandler&&(this.currentSource_=t),this.sourceHandler_=n.handleSource(t,this,this.options_),this.on("dispose",this.disposeSourceHandler)},e.prototype.disposeSourceHandler=function(){this.currentSource_&&(this.clearTracks(["audio","video"]),this.currentSource_=null),this.cleanupAutoTextTracks(),this.sourceHandler_&&(this.sourceHandler_.dispose&&this.sourceHandler_.dispose(),this.sourceHandler_=null)}},gt.registerComponent("Tech",fn),fn.registerTech("Tech",fn),fn.defaultTechOrder_=[];var pn={},An={},gn={};function mn(e,t,n){e.setTimeout(function(){return function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];var r=arguments[2];var i=arguments[3];var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[];var o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];var s=n[0],l=n.slice(1);if("string"==typeof s)e(t,pn[s],r,i,a,o);else if(s){var c=function(e,t){var n=An[e.id()],r=null;if(void 0===n||null===n)return r=t(e),An[e.id()]=[[t,r]],r;for(var i=0;i<n.length;i++){var a=n[i],o=a[0],s=a[1];o===t&&(r=s)}null===r&&(r=t(e),n.push([t,r]));return r}(i,s);if(!c.setSource)return a.push(c),e(t,l,r,i,a,o);c.setSource(z({},t),function(n,s){if(n)return e(t,l,r,i,a,o);a.push(c),e(s,t.type===s.type?l:pn[s.type],r,i,a,o)})}else l.length?e(t,l,r,i,a,o):o?r(t,a):e(t,pn["*"],r,i,a,!0)}(t,pn[t.type],n,e)},1)}function vn(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i="call"+pt(n),a=e.reduce(xn(i),r),o=a===gn,s=o?null:t[n](a);return function(e,t,n,r){for(var i=e.length-1;i>=0;i--){var a=e[i];a[t]&&a[t](r,n)}}(e,n,s,o),s}var yn={buffered:1,currentTime:1,duration:1,seekable:1,played:1,paused:1},bn={setCurrentTime:1},wn={play:1,pause:1};function xn(e){return function(t,n){return t===gn?gn:n[e]?n[e](t):t}}var _n={opus:"video/ogg",ogv:"video/ogg",mp4:"video/mp4",mov:"video/mp4",m4v:"video/mp4",mkv:"video/x-matroska",mp3:"audio/mpeg",aac:"audio/aac",oga:"audio/ogg",m3u8:"application/x-mpegURL"},Cn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=Jt(e);return _n[t.toLowerCase()]||""};function Sn(e){var t=Cn(e.src);return!e.type&&t&&(e.type=t),e}var kn=function(e){function t(n,r,i){L(this,t);var a=At({createEl:!1},r),o=N(this,e.call(this,n,a,i));if(r.playerOptions.sources&&0!==r.playerOptions.sources.length)n.src(r.playerOptions.sources);else for(var s=0,l=r.playerOptions.techOrder;s<l.length;s++){var c=pt(l[s]),u=fn.getTech(c);if(c||(u=gt.getComponent(c)),u&&u.isSupported()){n.loadTech_(c);break}}return o}return R(t,e),t}(gt);gt.registerComponent("MediaLoader",kn);var Bn=function(e){function t(n,r){L(this,t);var i=N(this,e.call(this,n,r));return i.emitTapEvents(),i.enable(),i}return R(t,e),t.prototype.createEl=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"div",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};n=z({innerHTML:'<span aria-hidden="true" class="vjs-icon-placeholder"></span>',className:this.buildCSSClass(),tabIndex:0},n),"button"===t&&W.error("Creating a ClickableComponent with an HTML element of "+t+" is not supported; use a Button instead."),r=z({role:"button"},r),this.tabIndex_=n.tabIndex;var i=e.prototype.createEl.call(this,t,n,r);return this.createControlTextEl(i),i},t.prototype.dispose=function(){this.controlTextEl_=null,e.prototype.dispose.call(this)},t.prototype.createControlTextEl=function(e){return this.controlTextEl_=ie("span",{className:"vjs-control-text"},{"aria-live":"polite"}),e&&e.appendChild(this.controlTextEl_),this.controlText(this.controlText_,e),this.controlTextEl_},t.prototype.controlText=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.el();if(void 0===e)return this.controlText_||"Need Text";var n=this.localize(e);this.controlText_=e,ae(this.controlTextEl_,n),this.nonIconControl||t.setAttribute("title",n)},t.prototype.buildCSSClass=function(){return"vjs-control vjs-button "+e.prototype.buildCSSClass.call(this)},t.prototype.enable=function(){this.enabled_||(this.enabled_=!0,this.removeClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","false"),void 0!==this.tabIndex_&&this.el_.setAttribute("tabIndex",this.tabIndex_),this.on(["tap","click"],this.handleClick),this.on("focus",this.handleFocus),this.on("blur",this.handleBlur))},t.prototype.disable=function(){this.enabled_=!1,this.addClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","true"),void 0!==this.tabIndex_&&this.el_.removeAttribute("tabIndex"),this.off(["tap","click"],this.handleClick),this.off("focus",this.handleFocus),this.off("blur",this.handleBlur)},t.prototype.handleClick=function(e){},t.prototype.handleFocus=function(e){Qe(o,"keydown",Ze(this,this.handleKeyPress))},t.prototype.handleKeyPress=function(t){32===t.which||13===t.which?(t.preventDefault(),this.trigger("click")):e.prototype.handleKeyPress&&e.prototype.handleKeyPress.call(this,t)},t.prototype.handleBlur=function(e){ze(o,"keydown",Ze(this,this.handleKeyPress))},t}(gt);gt.registerComponent("ClickableComponent",Bn);var En=function(e){function t(n,r){L(this,t);var i=N(this,e.call(this,n,r));return i.update(),n.on("posterchange",Ze(i,i.update)),i}return R(t,e),t.prototype.dispose=function(){this.player().off("posterchange",this.update),e.prototype.dispose.call(this)},t.prototype.createEl=function(){var e=ie("div",{className:"vjs-poster",tabIndex:-1});return D||(this.fallbackImg_=ie("img"),e.appendChild(this.fallbackImg_)),e},t.prototype.update=function(e){var t=this.player().poster();this.setSrc(t),t?this.show():this.hide()},t.prototype.setSrc=function(e){if(this.fallbackImg_)this.fallbackImg_.src=e;else{var t="";e&&(t='url("'+e+'")'),this.el_.style.backgroundImage=t}},t.prototype.handleClick=function(e){this.player_.controls()&&(this.player_.paused()?It(this.player_.play()):this.player_.pause())},t}(Bn);gt.registerComponent("PosterImage",En);var Tn={monospace:"monospace",sansSerif:"sans-serif",serif:"serif",monospaceSansSerif:'"Andale Mono", "Lucida Console", monospace',monospaceSerif:'"Courier New", monospace',proportionalSansSerif:"sans-serif",proportionalSerif:"serif",casual:'"Comic Sans MS", Impact, fantasy',script:'"Monotype Corsiva", cursive',smallcaps:'"Andale Mono", "Lucida Console", monospace, sans-serif'};function In(e,t){var n=void 0;if(4===e.length)n=e[1]+e[1]+e[2]+e[2]+e[3]+e[3];else{if(7!==e.length)throw new Error("Invalid color code provided, "+e+"; must be formatted as e.g. #f0e or #f604e2.");n=e.slice(1)}return"rgba("+parseInt(n.slice(0,2),16)+","+parseInt(n.slice(2,4),16)+","+parseInt(n.slice(4,6),16)+","+t+")"}function Mn(e,t,n){try{e.style[t]=n}catch(e){return}}var Fn=function(e){function t(n,r,i){L(this,t);var o=N(this,e.call(this,n,r,i)),s=Ze(o,o.updateDisplay);return n.on("loadstart",Ze(o,o.toggleDisplay)),n.on("texttrackchange",s),n.on("loadstart",Ze(o,o.preselectTrack)),n.ready(Ze(o,function(){if(n.tech_&&n.tech_.featuresNativeTextTracks)this.hide();else{n.on("fullscreenchange",s),n.on("playerresize",s),a.addEventListener&&a.addEventListener("orientationchange",s),n.on("dispose",function(){return a.removeEventListener("orientationchange",s)});for(var e=this.options_.playerOptions.tracks||[],t=0;t<e.length;t++)this.player_.addRemoteTextTrack(e[t],!0);this.preselectTrack()}})),o}return R(t,e),t.prototype.preselectTrack=function(){for(var e={captions:1,subtitles:1},t=this.player_.textTracks(),n=this.player_.cache_.selectedLanguage,r=void 0,i=void 0,a=void 0,o=0;o<t.length;o++){var s=t[o];n&&n.enabled&&n.language===s.language?s.kind===n.kind?a=s:a||(a=s):n&&!n.enabled?(a=null,r=null,i=null):s.default&&("descriptions"!==s.kind||r?s.kind in e&&!i&&(i=s):r=s)}a?a.mode="showing":i?i.mode="showing":r&&(r.mode="showing")},t.prototype.toggleDisplay=function(){this.player_.tech_&&this.player_.tech_.featuresNativeTextTracks?this.hide():this.show()},t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-text-track-display"},{"aria-live":"off","aria-atomic":"true"})},t.prototype.clearDisplay=function(){"function"==typeof a.WebVTT&&a.WebVTT.processCues(a,[],this.el_)},t.prototype.updateDisplay=function(){var e=this.player_.textTracks();this.clearDisplay();for(var t=null,n=null,r=e.length;r--;){var i=e[r];"showing"===i.mode&&("descriptions"===i.kind?t=i:n=i)}n?("off"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","off"),this.updateForTrack(n)):t&&("assertive"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","assertive"),this.updateForTrack(t))},t.prototype.updateForTrack=function(e){if("function"==typeof a.WebVTT&&e.activeCues){for(var t=[],n=0;n<e.activeCues.length;n++)t.push(e.activeCues[n]);if(a.WebVTT.processCues(a,t,this.el_),this.player_.textTrackSettings)for(var r=this.player_.textTrackSettings.getValues(),i=t.length;i--;){var o=t[i];if(o){var s=o.displayState;if(r.color&&(s.firstChild.style.color=r.color),r.textOpacity&&Mn(s.firstChild,"color",In(r.color||"#fff",r.textOpacity)),r.backgroundColor&&(s.firstChild.style.backgroundColor=r.backgroundColor),r.backgroundOpacity&&Mn(s.firstChild,"backgroundColor",In(r.backgroundColor||"#000",r.backgroundOpacity)),r.windowColor&&(r.windowOpacity?Mn(s,"backgroundColor",In(r.windowColor,r.windowOpacity)):s.style.backgroundColor=r.windowColor),r.edgeStyle&&("dropshadow"===r.edgeStyle?s.firstChild.style.textShadow="2px 2px 3px #222, 2px 2px 4px #222, 2px 2px 5px #222":"raised"===r.edgeStyle?s.firstChild.style.textShadow="1px 1px #222, 2px 2px #222, 3px 3px #222":"depressed"===r.edgeStyle?s.firstChild.style.textShadow="1px 1px #ccc, 0 1px #ccc, -1px -1px #222, 0 -1px #222":"uniform"===r.edgeStyle&&(s.firstChild.style.textShadow="0 0 4px #222, 0 0 4px #222, 0 0 4px #222, 0 0 4px #222")),r.fontPercent&&1!==r.fontPercent){var l=a.parseFloat(s.style.fontSize);s.style.fontSize=l*r.fontPercent+"px",s.style.height="auto",s.style.top="auto",s.style.bottom="2px"}r.fontFamily&&"default"!==r.fontFamily&&("small-caps"===r.fontFamily?s.firstChild.style.fontVariant="small-caps":s.firstChild.style.fontFamily=Tn[r.fontFamily])}}}},t}(gt);gt.registerComponent("TextTrackDisplay",Fn);var Dn=function(e){function t(){return L(this,t),N(this,e.apply(this,arguments))}return R(t,e),t.prototype.createEl=function(){var t=this.player_.isAudio(),n=this.localize(t?"Audio Player":"Video Player"),r=ie("span",{className:"vjs-control-text",innerHTML:this.localize("{1} is loading.",[n])}),i=e.prototype.createEl.call(this,"div",{className:"vjs-loading-spinner",dir:"ltr"});return i.appendChild(r),i},t}(gt);gt.registerComponent("LoadingSpinner",Dn);var Pn=function(e){function t(){return L(this,t),N(this,e.apply(this,arguments))}return R(t,e),t.prototype.createEl=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};t=z({innerHTML:'<span aria-hidden="true" class="vjs-icon-placeholder"></span>',className:this.buildCSSClass()},t),n=z({type:"button"},n);var r=gt.prototype.createEl.call(this,"button",t,n);return this.createControlTextEl(r),r},t.prototype.addChild=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.constructor.name;return W.warn("Adding an actionable (user controllable) child to a Button ("+n+") is not supported; use a ClickableComponent instead."),gt.prototype.addChild.call(this,e,t)},t.prototype.enable=function(){e.prototype.enable.call(this),this.el_.removeAttribute("disabled")},t.prototype.disable=function(){e.prototype.disable.call(this),this.el_.setAttribute("disabled","disabled")},t.prototype.handleKeyPress=function(t){32!==t.which&&13!==t.which&&e.prototype.handleKeyPress.call(this,t)},t}(Bn);gt.registerComponent("Button",Pn);var On=function(e){function t(n,r){L(this,t);var i=N(this,e.call(this,n,r));return i.mouseused_=!1,i.on("mousedown",i.handleMouseDown),i}return R(t,e),t.prototype.buildCSSClass=function(){return"vjs-big-play-button"},t.prototype.handleClick=function(e){var t=this.player_.play();if(this.mouseused_&&e.clientX&&e.clientY)It(t);else{var n=this.player_.getChild("controlBar"),r=n&&n.getChild("playToggle");if(r){var i=function(){return r.focus()};Tt(t)?t.then(i,function(){}):this.setTimeout(i,1)}else this.player_.focus()}},t.prototype.handleKeyPress=function(t){this.mouseused_=!1,e.prototype.handleKeyPress.call(this,t)},t.prototype.handleMouseDown=function(e){this.mouseused_=!0},t}(Pn);On.prototype.controlText_="Play Video",gt.registerComponent("BigPlayButton",On);var Ln=function(e){function t(n,r){L(this,t);var i=N(this,e.call(this,n,r));return i.controlText(r&&r.controlText||i.localize("Close")),i}return R(t,e),t.prototype.buildCSSClass=function(){return"vjs-close-button "+e.prototype.buildCSSClass.call(this)},t.prototype.handleClick=function(e){this.trigger({type:"close",bubbles:!1})},t}(Pn);gt.registerComponent("CloseButton",Ln);var Rn=function(e){function t(n,r){L(this,t);var i=N(this,e.call(this,n,r));return i.on(n,"play",i.handlePlay),i.on(n,"pause",i.handlePause),i.on(n,"ended",i.handleEnded),i}return R(t,e),t.prototype.buildCSSClass=function(){return"vjs-play-control "+e.prototype.buildCSSClass.call(this)},t.prototype.handleClick=function(e){this.player_.paused()?this.player_.play():this.player_.pause()},t.prototype.handleSeeked=function(e){this.removeClass("vjs-ended"),this.player_.paused()?this.handlePause(e):this.handlePlay(e)},t.prototype.handlePlay=function(e){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.controlText("Pause")},t.prototype.handlePause=function(e){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.controlText("Play")},t.prototype.handleEnded=function(e){this.removeClass("vjs-playing"),this.addClass("vjs-ended"),this.controlText("Replay"),this.one(this.player_,"seeked",this.handleSeeked)},t}(Pn);Rn.prototype.controlText_="Play",gt.registerComponent("PlayToggle",Rn);var Nn=function(e,t){e=e<0?0:e;var n=Math.floor(e%60),r=Math.floor(e/60%60),i=Math.floor(e/3600),a=Math.floor(t/60%60),o=Math.floor(t/3600);return(isNaN(e)||e===1/0)&&(i=r=n="-"),(i=i>0||o>0?i+":":"")+(r=((i||a>=10)&&r<10?"0"+r:r)+":")+(n=n<10?"0"+n:n)},Un=Nn;var Hn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return Un(e,t)},jn=function(e){function t(n,r){L(this,t);var i=N(this,e.call(this,n,r));return i.throttledUpdateContent=et(Ze(i,i.updateContent),25),i.on(n,"timeupdate",i.throttledUpdateContent),i}return R(t,e),t.prototype.createEl=function(t){var n=this.buildCSSClass(),r=e.prototype.createEl.call(this,"div",{className:n+" vjs-time-control vjs-control",innerHTML:'<span class="vjs-control-text">'+this.localize(this.labelText_)+" </span>"});return this.contentEl_=ie("span",{className:n+"-display"},{"aria-live":"off"}),this.updateTextNode_(),r.appendChild(this.contentEl_),r},t.prototype.dispose=function(){this.contentEl_=null,this.textNode_=null,e.prototype.dispose.call(this)},t.prototype.updateTextNode_=function(){if(this.contentEl_){for(;this.contentEl_.firstChild;)this.contentEl_.removeChild(this.contentEl_.firstChild);this.textNode_=o.createTextNode(this.formattedTime_||this.formatTime_(0)),this.contentEl_.appendChild(this.textNode_)}},t.prototype.formatTime_=function(e){return Hn(e)},t.prototype.updateFormattedTime_=function(e){var t=this.formatTime_(e);t!==this.formattedTime_&&(this.formattedTime_=t,this.requestAnimationFrame(this.updateTextNode_))},t.prototype.updateContent=function(e){},t}(gt);jn.prototype.labelText_="Time",jn.prototype.controlText_="Time",gt.registerComponent("TimeDisplay",jn);var Qn=function(e){function t(n,r){L(this,t);var i=N(this,e.call(this,n,r));return i.on(n,"ended",i.handleEnded),i}return R(t,e),t.prototype.buildCSSClass=function(){return"vjs-current-time"},t.prototype.updateContent=function(e){var t=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();this.updateFormattedTime_(t)},t.prototype.handleEnded=function(e){this.player_.duration()&&this.updateFormattedTime_(this.player_.duration())},t}(jn);Qn.prototype.labelText_="Current Time",Qn.prototype.controlText_="Current Time",gt.registerComponent("CurrentTimeDisplay",Qn);var zn=function(e){function t(n,r){L(this,t);var i=N(this,e.call(this,n,r));return i.on(n,"durationchange",i.updateContent),i.on(n,"loadedmetadata",i.throttledUpdateContent),i}return R(t,e),t.prototype.buildCSSClass=function(){return"vjs-duration"},t.prototype.updateContent=function(e){var t=this.player_.duration();t&&this.duration_!==t&&(this.duration_=t,this.updateFormattedTime_(t))},t}(jn);zn.prototype.labelText_="Duration",zn.prototype.controlText_="Duration",gt.registerComponent("DurationDisplay",zn);var Vn=function(e){function t(){return L(this,t),N(this,e.apply(this,arguments))}return R(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider",innerHTML:"<div><span>/</span></div>"})},t}(gt);gt.registerComponent("TimeDivider",Vn);var Gn=function(e){function t(n,r){L(this,t);var i=N(this,e.call(this,n,r));return i.on(n,"durationchange",i.throttledUpdateContent),i.on(n,"ended",i.handleEnded),i}return R(t,e),t.prototype.buildCSSClass=function(){return"vjs-remaining-time"},t.prototype.formatTime_=function(t){return"-"+e.prototype.formatTime_.call(this,t)},t.prototype.updateContent=function(e){this.player_.duration()&&(this.player_.remainingTimeDisplay?this.updateFormattedTime_(this.player_.remainingTimeDisplay()):this.updateFormattedTime_(this.player_.remainingTime()))},t.prototype.handleEnded=function(e){this.player_.duration()&&this.updateFormattedTime_(0)},t}(jn);Gn.prototype.labelText_="Remaining Time",Gn.prototype.controlText_="Remaining Time",gt.registerComponent("RemainingTimeDisplay",Gn);var $n=function(e){function t(n,r){L(this,t);var i=N(this,e.call(this,n,r));return i.updateShowing(),i.on(i.player(),"durationchange",i.updateShowing),i}return R(t,e),t.prototype.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-live-control vjs-control"});return this.contentEl_=ie("div",{className:"vjs-live-display",innerHTML:'<span class="vjs-control-text">'+this.localize("Stream Type")+" </span>"+this.localize("LIVE")},{"aria-live":"off"}),t.appendChild(this.contentEl_),t},t.prototype.dispose=function(){this.contentEl_=null,e.prototype.dispose.call(this)},t.prototype.updateShowing=function(e){this.player().duration()===1/0?this.show():this.hide()},t}(gt);gt.registerComponent("LiveDisplay",$n);var qn=function(e){function t(n,r){L(this,t);var i=N(this,e.call(this,n,r));return i.bar=i.getChild(i.options_.barName),i.vertical(!!i.options_.vertical),i.enable(),i}return R(t,e),t.prototype.enabled=function(){return this.enabled_},t.prototype.enable=function(){this.enabled()||(this.on("mousedown",this.handleMouseDown),this.on("touchstart",this.handleMouseDown),this.on("focus",this.handleFocus),this.on("blur",this.handleBlur),this.on("click",this.handleClick),this.on(this.player_,"controlsvisible",this.update),this.playerEvent&&this.on(this.player_,this.playerEvent,this.update),this.removeClass("disabled"),this.setAttribute("tabindex",0),this.enabled_=!0)},t.prototype.disable=function(){if(this.enabled()){var e=this.bar.el_.ownerDocument;this.off("mousedown",this.handleMouseDown),this.off("touchstart",this.handleMouseDown),this.off("focus",this.handleFocus),this.off("blur",this.handleBlur),this.off("click",this.handleClick),this.off(this.player_,"controlsvisible",this.update),this.off(e,"mousemove",this.handleMouseMove),this.off(e,"mouseup",this.handleMouseUp),this.off(e,"touchmove",this.handleMouseMove),this.off(e,"touchend",this.handleMouseUp),this.removeAttribute("tabindex"),this.addClass("disabled"),this.playerEvent&&this.off(this.player_,this.playerEvent,this.update),this.enabled_=!1}},t.prototype.createEl=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.className=n.className+" vjs-slider",n=z({tabIndex:0},n),r=z({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},r),e.prototype.createEl.call(this,t,n,r)},t.prototype.handleMouseDown=function(e){var t=this.bar.el_.ownerDocument;"mousedown"===e.type&&e.preventDefault(),"touchstart"!==e.type||k||e.preventDefault(),ge(),this.addClass("vjs-sliding"),this.trigger("slideractive"),this.on(t,"mousemove",this.handleMouseMove),this.on(t,"mouseup",this.handleMouseUp),this.on(t,"touchmove",this.handleMouseMove),this.on(t,"touchend",this.handleMouseUp),this.handleMouseMove(e)},t.prototype.handleMouseMove=function(e){},t.prototype.handleMouseUp=function(){var e=this.bar.el_.ownerDocument;me(),this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),this.off(e,"mousemove",this.handleMouseMove),this.off(e,"mouseup",this.handleMouseUp),this.off(e,"touchmove",this.handleMouseMove),this.off(e,"touchend",this.handleMouseUp),this.update()},t.prototype.update=function(){if(this.el_){var e=this.getPercent(),t=this.bar;if(t){("number"!=typeof e||e!=e||e<0||e===1/0)&&(e=0);var n=(100*e).toFixed(2)+"%",r=t.el().style;return this.vertical()?r.height=n:r.width=n,e}}},t.prototype.calculateDistance=function(e){var t=be(this.el_,e);return this.vertical()?t.y:t.x},t.prototype.handleFocus=function(){this.on(this.bar.el_.ownerDocument,"keydown",this.handleKeyPress)},t.prototype.handleKeyPress=function(e){37===e.which||40===e.which?(e.preventDefault(),this.stepBack()):38!==e.which&&39!==e.which||(e.preventDefault(),this.stepForward())},t.prototype.handleBlur=function(){this.off(this.bar.el_.ownerDocument,"keydown",this.handleKeyPress)},t.prototype.handleClick=function(e){e.stopImmediatePropagation(),e.preventDefault()},t.prototype.vertical=function(e){if(void 0===e)return this.vertical_||!1;this.vertical_=!!e,this.vertical_?this.addClass("vjs-slider-vertical"):this.addClass("vjs-slider-horizontal")},t}(gt);gt.registerComponent("Slider",qn);var Wn=function(e){function t(n,r){L(this,t);var i=N(this,e.call(this,n,r));return i.partEls_=[],i.on(n,"progress",i.update),i}return R(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-load-progress",innerHTML:'<span class="vjs-control-text"><span>'+this.localize("Loaded")+"</span>: 0%</span>"})},t.prototype.dispose=function(){this.partEls_=null,e.prototype.dispose.call(this)},t.prototype.update=function(e){var t=this.player_.buffered(),n=this.player_.duration(),r=this.player_.bufferedEnd(),i=this.partEls_,a=function(e,t){var n=e/t||0;return 100*(n>=1?1:n)+"%"};this.el_.style.width=a(r,n);for(var o=0;o<t.length;o++){var s=t.start(o),l=t.end(o),c=i[o];c||(c=this.el_.appendChild(ie()),i[o]=c),c.style.left=a(s,r),c.style.width=a(l-s,r)}for(var u=i.length;u>t.length;u--)this.el_.removeChild(i[u-1]);i.length=t.length},t}(gt);gt.registerComponent("LoadProgressBar",Wn);var Kn=function(e){function t(){return L(this,t),N(this,e.apply(this,arguments))}return R(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-time-tooltip"})},t.prototype.update=function(e,t,n){var r=ve(this.el_),i=ve(this.player_.el()),a=e.width*t;if(i&&r){var o=e.left-i.left+a,s=e.width-a+(i.right-e.right),l=r.width/2;o<l?l+=l-o:s<l&&(l=s),l<0?l=0:l>r.width&&(l=r.width),this.el_.style.right="-"+l+"px",ae(this.el_,n)}},t}(gt);gt.registerComponent("TimeTooltip",Kn);var Yn=function(e){function t(){return L(this,t),N(this,e.apply(this,arguments))}return R(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar",innerHTML:'<span class="vjs-control-text"><span>'+this.localize("Progress")+"</span>: 0%</span>"})},t.prototype.update=function(e,t){var n=this;this.rafId_&&this.cancelAnimationFrame(this.rafId_),this.rafId_=this.requestAnimationFrame(function(){var r=n.player_.scrubbing()?n.player_.getCache().currentTime:n.player_.currentTime(),i=Hn(r,n.player_.duration()),a=n.getChild("timeTooltip");a&&a.update(e,t,i)})},t}(gt);Yn.prototype.options_={children:[]},T&&!(T>8)||v||b||Yn.prototype.options_.children.push("timeTooltip"),gt.registerComponent("PlayProgressBar",Yn);var Xn=function(e){function t(n,r){L(this,t);var i=N(this,e.call(this,n,r));return i.update=et(Ze(i,i.update),25),i}return R(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},t.prototype.update=function(e,t){var n=this;this.rafId_&&this.cancelAnimationFrame(this.rafId_),this.rafId_=this.requestAnimationFrame(function(){var r=n.player_.duration(),i=Hn(t*r,r);n.el_.style.left=e.width*t+"px",n.getChild("timeTooltip").update(e,t,i)})},t}(gt);Xn.prototype.options_={children:["timeTooltip"]},gt.registerComponent("MouseTimeDisplay",Xn);var Jn=function(e){function t(n,r){L(this,t);var i=N(this,e.call(this,n,r));return i.setEventHandlers_(),i}return R(t,e),t.prototype.setEventHandlers_=function(){var e=this;this.update=et(Ze(this,this.update),30),this.on(this.player_,"timeupdate",this.update),this.on(this.player_,"ended",this.handleEnded),this.updateInterval=null,this.on(this.player_,["playing"],function(){e.clearInterval(e.updateInterval),e.updateInterval=e.setInterval(function(){e.requestAnimationFrame(function(){e.update()})},30)}),this.on(this.player_,["ended","pause","waiting"],function(){e.clearInterval(e.updateInterval)}),this.on(this.player_,["timeupdate","ended"],this.update)},t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":this.localize("Progress Bar")})},t.prototype.update_=function(e,t){var n=this.player_.duration();this.el_.setAttribute("aria-valuenow",(100*t).toFixed(2)),this.el_.setAttribute("aria-valuetext",this.localize("progress bar timing: currentTime={1} duration={2}",[Hn(e,n),Hn(n,n)],"{1} of {2}")),this.bar.update(ve(this.el_),t)},t.prototype.update=function(t){var n=e.prototype.update.call(this);return this.update_(this.getCurrentTime_(),n),n},t.prototype.getCurrentTime_=function(){return this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime()},t.prototype.handleEnded=function(e){this.update_(this.player_.duration(),1)},t.prototype.getPercent=function(){var e=this.getCurrentTime_()/this.player_.duration();return e>=1?1:e},t.prototype.handleMouseDown=function(t){ke(t)&&(t.stopPropagation(),this.player_.scrubbing(!0),this.videoWasPlaying=!this.player_.paused(),this.player_.pause(),e.prototype.handleMouseDown.call(this,t))},t.prototype.handleMouseMove=function(e){if(ke(e)){var t=this.calculateDistance(e)*this.player_.duration();t===this.player_.duration()&&(t-=.1),this.player_.currentTime(t)}},t.prototype.enable=function(){e.prototype.enable.call(this);var t=this.getChild("mouseTimeDisplay");t&&t.show()},t.prototype.disable=function(){e.prototype.disable.call(this);var t=this.getChild("mouseTimeDisplay");t&&t.hide()},t.prototype.handleMouseUp=function(t){e.prototype.handleMouseUp.call(this,t),t&&t.stopPropagation(),this.player_.scrubbing(!1),this.player_.trigger({type:"timeupdate",target:this,manuallyTriggered:!0}),this.videoWasPlaying&&It(this.player_.play())},t.prototype.stepForward=function(){this.player_.currentTime(this.player_.currentTime()+5)},t.prototype.stepBack=function(){this.player_.currentTime(this.player_.currentTime()-5)},t.prototype.handleAction=function(e){this.player_.paused()?this.player_.play():this.player_.pause()},t.prototype.handleKeyPress=function(t){32===t.which||13===t.which?(t.preventDefault(),this.handleAction(t)):e.prototype.handleKeyPress&&e.prototype.handleKeyPress.call(this,t)},t}(qn);Jn.prototype.options_={children:["loadProgressBar","playProgressBar"],barName:"playProgressBar"},T&&!(T>8)||v||b||Jn.prototype.options_.children.splice(1,0,"mouseTimeDisplay"),Jn.prototype.playerEvent="timeupdate",gt.registerComponent("SeekBar",Jn);var Zn=function(e){function t(n,r){L(this,t);var i=N(this,e.call(this,n,r));return i.handleMouseMove=et(Ze(i,i.handleMouseMove),25),i.throttledHandleMouseSeek=et(Ze(i,i.handleMouseSeek),25),i.enable(),i}return R(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},t.prototype.handleMouseMove=function(e){var t=this.getChild("seekBar");if(t){var n=t.getChild("mouseTimeDisplay"),r=t.el(),i=ve(r),a=be(r,e).x;a>1?a=1:a<0&&(a=0),n&&n.update(i,a)}},t.prototype.handleMouseSeek=function(e){var t=this.getChild("seekBar");t&&t.handleMouseMove(e)},t.prototype.enabled=function(){return this.enabled_},t.prototype.disable=function(){this.children().forEach(function(e){return e.disable&&e.disable()}),this.enabled()&&(this.off(["mousedown","touchstart"],this.handleMouseDown),this.off(this.el_,"mousemove",this.handleMouseMove),this.handleMouseUp(),this.addClass("disabled"),this.enabled_=!1)},t.prototype.enable=function(){this.children().forEach(function(e){return e.enable&&e.enable()}),this.enabled()||(this.on(["mousedown","touchstart"],this.handleMouseDown),this.on(this.el_,"mousemove",this.handleMouseMove),this.removeClass("disabled"),this.enabled_=!0)},t.prototype.handleMouseDown=function(e){var t=this.el_.ownerDocument,n=this.getChild("seekBar");n&&n.handleMouseDown(e),this.on(t,"mousemove",this.throttledHandleMouseSeek),this.on(t,"touchmove",this.throttledHandleMouseSeek),this.on(t,"mouseup",this.handleMouseUp),this.on(t,"touchend",this.handleMouseUp)},t.prototype.handleMouseUp=function(e){var t=this.el_.ownerDocument,n=this.getChild("seekBar");n&&n.handleMouseUp(e),this.off(t,"mousemove",this.throttledHandleMouseSeek),this.off(t,"touchmove",this.throttledHandleMouseSeek),this.off(t,"mouseup",this.handleMouseUp),this.off(t,"touchend",this.handleMouseUp)},t}(gt);Zn.prototype.options_={children:["seekBar"]},gt.registerComponent("ProgressControl",Zn);var er=function(e){function t(n,r){L(this,t);var i=N(this,e.call(this,n,r));return i.on(n,"fullscreenchange",i.handleFullscreenChange),!1===o[wt.fullscreenEnabled]&&i.disable(),i}return R(t,e),t.prototype.buildCSSClass=function(){return"vjs-fullscreen-control "+e.prototype.buildCSSClass.call(this)},t.prototype.handleFullscreenChange=function(e){this.player_.isFullscreen()?this.controlText("Non-Fullscreen"):this.controlText("Fullscreen")},t.prototype.handleClick=function(e){this.player_.isFullscreen()?this.player_.exitFullscreen():this.player_.requestFullscreen()},t}(Pn);er.prototype.controlText_="Fullscreen",gt.registerComponent("FullscreenToggle",er);var tr=function(e,t){t.tech_&&!t.tech_.featuresVolumeControl&&e.addClass("vjs-hidden"),e.on(t,"loadstart",function(){t.tech_.featuresVolumeControl?e.removeClass("vjs-hidden"):e.addClass("vjs-hidden")})},nr=function(e){function t(){return L(this,t),N(this,e.apply(this,arguments))}return R(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-level",innerHTML:'<span class="vjs-control-text"></span>'})},t}(gt);gt.registerComponent("VolumeLevel",nr);var rr=function(e){function t(n,r){L(this,t);var i=N(this,e.call(this,n,r));return i.on("slideractive",i.updateLastVolume_),i.on(n,"volumechange",i.updateARIAAttributes),n.ready(function(){return i.updateARIAAttributes()}),i}return R(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":this.localize("Volume Level"),"aria-live":"polite"})},t.prototype.handleMouseDown=function(t){ke(t)&&e.prototype.handleMouseDown.call(this,t)},t.prototype.handleMouseMove=function(e){ke(e)&&(this.checkMuted(),this.player_.volume(this.calculateDistance(e)))},t.prototype.checkMuted=function(){this.player_.muted()&&this.player_.muted(!1)},t.prototype.getPercent=function(){return this.player_.muted()?0:this.player_.volume()},t.prototype.stepForward=function(){this.checkMuted(),this.player_.volume(this.player_.volume()+.1)},t.prototype.stepBack=function(){this.checkMuted(),this.player_.volume(this.player_.volume()-.1)},t.prototype.updateARIAAttributes=function(e){var t=this.player_.muted()?0:this.volumeAsPercentage_();this.el_.setAttribute("aria-valuenow",t),this.el_.setAttribute("aria-valuetext",t+"%")},t.prototype.volumeAsPercentage_=function(){return Math.round(100*this.player_.volume())},t.prototype.updateLastVolume_=function(){var e=this,t=this.player_.volume();this.one("sliderinactive",function(){0===e.player_.volume()&&e.player_.lastVolume_(t)})},t}(qn);rr.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},rr.prototype.playerEvent="volumechange",gt.registerComponent("VolumeBar",rr);var ir=function(e){function t(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};L(this,t),r.vertical=r.vertical||!1,(void 0===r.volumeBar||G(r.volumeBar))&&(r.volumeBar=r.volumeBar||{},r.volumeBar.vertical=r.vertical);var i=N(this,e.call(this,n,r));return tr(i,n),i.throttledHandleMouseMove=et(Ze(i,i.handleMouseMove),25),i.on("mousedown",i.handleMouseDown),i.on("touchstart",i.handleMouseDown),i.on(i.volumeBar,["focus","slideractive"],function(){i.volumeBar.addClass("vjs-slider-active"),i.addClass("vjs-slider-active"),i.trigger("slideractive")}),i.on(i.volumeBar,["blur","sliderinactive"],function(){i.volumeBar.removeClass("vjs-slider-active"),i.removeClass("vjs-slider-active"),i.trigger("sliderinactive")}),i}return R(t,e),t.prototype.createEl=function(){var t="vjs-volume-horizontal";return this.options_.vertical&&(t="vjs-volume-vertical"),e.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control "+t})},t.prototype.handleMouseDown=function(e){var t=this.el_.ownerDocument;this.on(t,"mousemove",this.throttledHandleMouseMove),this.on(t,"touchmove",this.throttledHandleMouseMove),this.on(t,"mouseup",this.handleMouseUp),this.on(t,"touchend",this.handleMouseUp)},t.prototype.handleMouseUp=function(e){var t=this.el_.ownerDocument;this.off(t,"mousemove",this.throttledHandleMouseMove),this.off(t,"touchmove",this.throttledHandleMouseMove),this.off(t,"mouseup",this.handleMouseUp),this.off(t,"touchend",this.handleMouseUp)},t.prototype.handleMouseMove=function(e){this.volumeBar.handleMouseMove(e)},t}(gt);ir.prototype.options_={children:["volumeBar"]},gt.registerComponent("VolumeControl",ir);var ar=function(e,t){t.tech_&&!t.tech_.featuresMuteControl&&e.addClass("vjs-hidden"),e.on(t,"loadstart",function(){t.tech_.featuresMuteControl?e.removeClass("vjs-hidden"):e.addClass("vjs-hidden")})},or=function(e){function t(n,r){L(this,t);var i=N(this,e.call(this,n,r));return ar(i,n),i.on(n,["loadstart","volumechange"],i.update),i}return R(t,e),t.prototype.buildCSSClass=function(){return"vjs-mute-control "+e.prototype.buildCSSClass.call(this)},t.prototype.handleClick=function(e){var t=this.player_.volume(),n=this.player_.lastVolume_();if(0===t){var r=n<.1?.1:n;this.player_.volume(r),this.player_.muted(!1)}else this.player_.muted(!this.player_.muted())},t.prototype.update=function(e){this.updateIcon_(),this.updateControlText_()},t.prototype.updateIcon_=function(){var e=this.player_.volume(),t=3;v&&this.player_.muted(this.player_.tech_.el_.muted),0===e||this.player_.muted()?t=0:e<.33?t=1:e<.67&&(t=2);for(var n=0;n<4;n++)ce(this.el_,"vjs-vol-"+n);le(this.el_,"vjs-vol-"+t)},t.prototype.updateControlText_=function(){var e=this.player_.muted()||0===this.player_.volume()?"Unmute":"Mute";this.controlText()!==e&&this.controlText(e)},t}(Pn);or.prototype.controlText_="Mute",gt.registerComponent("MuteToggle",or);var sr=function(e){function t(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};L(this,t),void 0!==r.inline?r.inline=r.inline:r.inline=!0,(void 0===r.volumeControl||G(r.volumeControl))&&(r.volumeControl=r.volumeControl||{},r.volumeControl.vertical=!r.inline);var i=N(this,e.call(this,n,r));return i.on(n,["loadstart"],i.volumePanelState_),i.on(i.volumeControl,["slideractive"],i.sliderActive_),i.on(i.volumeControl,["sliderinactive"],i.sliderInactive_),i}return R(t,e),t.prototype.sliderActive_=function(){this.addClass("vjs-slider-active")},t.prototype.sliderInactive_=function(){this.removeClass("vjs-slider-active")},t.prototype.volumePanelState_=function(){this.volumeControl.hasClass("vjs-hidden")&&this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-hidden"),this.volumeControl.hasClass("vjs-hidden")&&!this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-mute-toggle-only")},t.prototype.createEl=function(){var t="vjs-volume-panel-horizontal";return this.options_.inline||(t="vjs-volume-panel-vertical"),e.prototype.createEl.call(this,"div",{className:"vjs-volume-panel vjs-control "+t})},t}(gt);sr.prototype.options_={children:["muteToggle","volumeControl"]},gt.registerComponent("VolumePanel",sr);var lr=function(e){function t(n,r){L(this,t);var i=N(this,e.call(this,n,r));return r&&(i.menuButton_=r.menuButton),i.focusedChild_=-1,i.on("keydown",i.handleKeyPress),i}return R(t,e),t.prototype.addItem=function(e){this.addChild(e),e.on("click",Ze(this,function(t){this.menuButton_&&(this.menuButton_.unpressButton(),"CaptionSettingsMenuItem"!==e.name()&&this.menuButton_.focus())}))},t.prototype.createEl=function(){var t=this.options_.contentElType||"ul";this.contentEl_=ie(t,{className:"vjs-menu-content"}),this.contentEl_.setAttribute("role","menu");var n=e.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});return n.appendChild(this.contentEl_),Qe(n,"click",function(e){e.preventDefault(),e.stopImmediatePropagation()}),n},t.prototype.dispose=function(){this.contentEl_=null,e.prototype.dispose.call(this)},t.prototype.handleKeyPress=function(e){37===e.which||40===e.which?(e.preventDefault(),this.stepForward()):38!==e.which&&39!==e.which||(e.preventDefault(),this.stepBack())},t.prototype.stepForward=function(){var e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_+1),this.focus(e)},t.prototype.stepBack=function(){var e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_-1),this.focus(e)},t.prototype.focus=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=this.children().slice();t.length&&t[0].className&&/vjs-menu-title/.test(t[0].className)&&t.shift(),t.length>0&&(e<0?e=0:e>=t.length&&(e=t.length-1),this.focusedChild_=e,t[e].el_.focus())},t}(gt);gt.registerComponent("Menu",lr);var cr=function(e){function t(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};L(this,t);var i=N(this,e.call(this,n,r));i.menuButton_=new Pn(n,r),i.menuButton_.controlText(i.controlText_),i.menuButton_.el_.setAttribute("aria-haspopup","true");var a=Pn.prototype.buildCSSClass();return i.menuButton_.el_.className=i.buildCSSClass()+" "+a,i.menuButton_.removeClass("vjs-control"),i.addChild(i.menuButton_),i.update(),i.enabled_=!0,i.on(i.menuButton_,"tap",i.handleClick),i.on(i.menuButton_,"click",i.handleClick),i.on(i.menuButton_,"focus",i.handleFocus),i.on(i.menuButton_,"blur",i.handleBlur),i.on("keydown",i.handleSubmenuKeyPress),i}return R(t,e),t.prototype.update=function(){var e=this.createMenu();this.menu&&(this.menu.dispose(),this.removeChild(this.menu)),this.menu=e,this.addChild(e),this.buttonPressed_=!1,this.menuButton_.el_.setAttribute("aria-expanded","false"),this.items&&this.items.length<=this.hideThreshold_?this.hide():this.show()},t.prototype.createMenu=function(){var e=new lr(this.player_,{menuButton:this});if(this.hideThreshold_=0,this.options_.title){var t=ie("li",{className:"vjs-menu-title",innerHTML:pt(this.options_.title),tabIndex:-1});this.hideThreshold_+=1,e.children_.unshift(t),oe(t,e.contentEl())}if(this.items=this.createItems(),this.items)for(var n=0;n<this.items.length;n++)e.addItem(this.items[n]);return e},t.prototype.createItems=function(){},t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildWrapperCSSClass()},{})},t.prototype.buildWrapperCSSClass=function(){var t="vjs-menu-button";return!0===this.options_.inline?t+="-inline":t+="-popup","vjs-menu-button "+t+" "+Pn.prototype.buildCSSClass()+" "+e.prototype.buildCSSClass.call(this)},t.prototype.buildCSSClass=function(){var t="vjs-menu-button";return!0===this.options_.inline?t+="-inline":t+="-popup","vjs-menu-button "+t+" "+e.prototype.buildCSSClass.call(this)},t.prototype.controlText=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.menuButton_.el();return this.menuButton_.controlText(e,t)},t.prototype.handleClick=function(e){this.one(this.menu.contentEl(),"mouseleave",Ze(this,function(e){this.unpressButton(),this.el_.blur()})),this.buttonPressed_?this.unpressButton():this.pressButton()},t.prototype.focus=function(){this.menuButton_.focus()},t.prototype.blur=function(){this.menuButton_.blur()},t.prototype.handleFocus=function(){Qe(o,"keydown",Ze(this,this.handleKeyPress))},t.prototype.handleBlur=function(){ze(o,"keydown",Ze(this,this.handleKeyPress))},t.prototype.handleKeyPress=function(e){27===e.which||9===e.which?(this.buttonPressed_&&this.unpressButton(),9!==e.which&&(e.preventDefault(),this.menuButton_.el_.focus())):38!==e.which&&40!==e.which||this.buttonPressed_||(this.pressButton(),e.preventDefault())},t.prototype.handleSubmenuKeyPress=function(e){27!==e.which&&9!==e.which||(this.buttonPressed_&&this.unpressButton(),9!==e.which&&(e.preventDefault(),this.menuButton_.el_.focus()))},t.prototype.pressButton=function(){if(this.enabled_){if(this.buttonPressed_=!0,this.menu.lockShowing(),this.menuButton_.el_.setAttribute("aria-expanded","true"),v&&ne())return;this.menu.focus()}},t.prototype.unpressButton=function(){this.enabled_&&(this.buttonPressed_=!1,this.menu.unlockShowing(),this.menuButton_.el_.setAttribute("aria-expanded","false"))},t.prototype.disable=function(){this.unpressButton(),this.enabled_=!1,this.addClass("vjs-disabled"),this.menuButton_.disable()},t.prototype.enable=function(){this.enabled_=!0,this.removeClass("vjs-disabled"),this.menuButton_.enable()},t}(gt);gt.registerComponent("MenuButton",cr);var ur=function(e){function t(n,r){L(this,t);var i=r.tracks,a=N(this,e.call(this,n,r));if(a.items.length<=1&&a.hide(),!i)return N(a);var o=Ze(a,a.update);return i.addEventListener("removetrack",o),i.addEventListener("addtrack",o),a.player_.on("ready",o),a.player_.on("dispose",function(){i.removeEventListener("removetrack",o),i.removeEventListener("addtrack",o)}),a}return R(t,e),t}(cr);gt.registerComponent("TrackButton",ur);var hr=function(e){function t(n,r){L(this,t);var i=N(this,e.call(this,n,r));return i.selectable=r.selectable,i.isSelected_=r.selected||!1,i.multiSelectable=r.multiSelectable,i.selected(i.isSelected_),i.selectable?i.multiSelectable?i.el_.setAttribute("role","menuitemcheckbox"):i.el_.setAttribute("role","menuitemradio"):i.el_.setAttribute("role","menuitem"),i}return R(t,e),t.prototype.createEl=function(t,n,r){return this.nonIconControl=!0,e.prototype.createEl.call(this,"li",z({className:"vjs-menu-item",innerHTML:'<span class="vjs-menu-item-text">'+this.localize(this.options_.label)+"</span>",tabIndex:-1},n),r)},t.prototype.handleClick=function(e){this.selected(!0)},t.prototype.selected=function(e){this.selectable&&(e?(this.addClass("vjs-selected"),this.el_.setAttribute("aria-checked","true"),this.controlText(", selected"),this.isSelected_=!0):(this.removeClass("vjs-selected"),this.el_.setAttribute("aria-checked","false"),this.controlText(""),this.isSelected_=!1))},t}(Bn);gt.registerComponent("MenuItem",hr);var dr=function(e){function t(n,r){L(this,t);var i=r.track,s=n.textTracks();r.label=i.label||i.language||"Unknown",r.selected="showing"===i.mode;var l=N(this,e.call(this,n,r));l.track=i;var c=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];l.handleTracksChange.apply(l,t)},u=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];l.handleSelectedLanguageChange.apply(l,t)};if(n.on(["loadstart","texttrackchange"],c),s.addEventListener("change",c),s.addEventListener("selectedlanguagechange",u),l.on("dispose",function(){n.off(["loadstart","texttrackchange"],c),s.removeEventListener("change",c),s.removeEventListener("selectedlanguagechange",u)}),void 0===s.onchange){var h=void 0;l.on(["tap","click"],function(){if("object"!==O(a.Event))try{h=new a.Event("change")}catch(e){}h||(h=o.createEvent("Event")).initEvent("change",!0,!0),s.dispatchEvent(h)})}return l.handleTracksChange(),l}return R(t,e),t.prototype.handleClick=function(t){var n=this.track.kind,r=this.track.kinds,i=this.player_.textTracks();if(r||(r=[n]),e.prototype.handleClick.call(this,t),i)for(var a=0;a<i.length;a++){var o=i[a];o===this.track&&r.indexOf(o.kind)>-1?"showing"!==o.mode&&(o.mode="showing"):"disabled"!==o.mode&&(o.mode="disabled")}},t.prototype.handleTracksChange=function(e){var t="showing"===this.track.mode;t!==this.isSelected_&&this.selected(t)},t.prototype.handleSelectedLanguageChange=function(e){if("showing"===this.track.mode){var t=this.player_.cache_.selectedLanguage;if(t&&t.enabled&&t.language===this.track.language&&t.kind!==this.track.kind)return;this.player_.cache_.selectedLanguage={enabled:!0,language:this.track.language,kind:this.track.kind}}},t.prototype.dispose=function(){this.track=null,e.prototype.dispose.call(this)},t}(hr);gt.registerComponent("TextTrackMenuItem",dr);var fr=function(e){function t(n,r){return L(this,t),r.track={player:n,kind:r.kind,kinds:r.kinds,default:!1,mode:"disabled"},r.kinds||(r.kinds=[r.kind]),r.label?r.track.label=r.label:r.track.label=r.kinds.join(" and ")+" off",r.selectable=!0,r.multiSelectable=!1,N(this,e.call(this,n,r))}return R(t,e),t.prototype.handleTracksChange=function(e){for(var t=this.player().textTracks(),n=!0,r=0,i=t.length;r<i;r++){var a=t[r];if(this.options_.kinds.indexOf(a.kind)>-1&&"showing"===a.mode){n=!1;break}}n!==this.isSelected_&&this.selected(n)},t.prototype.handleSelectedLanguageChange=function(e){for(var t=this.player().textTracks(),n=!0,r=0,i=t.length;r<i;r++){var a=t[r];if(["captions","descriptions","subtitles"].indexOf(a.kind)>-1&&"showing"===a.mode){n=!1;break}}n&&(this.player_.cache_.selectedLanguage={enabled:!1})},t}(dr);gt.registerComponent("OffTextTrackMenuItem",fr);var pr=function(e){function t(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return L(this,t),r.tracks=n.textTracks(),N(this,e.call(this,n,r))}return R(t,e),t.prototype.createItems=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:dr,n=void 0;this.label_&&(n=this.label_+" off"),e.push(new fr(this.player_,{kinds:this.kinds_,kind:this.kind_,label:n})),this.hideThreshold_+=1;var r=this.player_.textTracks();Array.isArray(this.kinds_)||(this.kinds_=[this.kind_]);for(var i=0;i<r.length;i++){var a=r[i];if(this.kinds_.indexOf(a.kind)>-1){var o=new t(this.player_,{track:a,selectable:!0,multiSelectable:!1});o.addClass("vjs-"+a.kind+"-menu-item"),e.push(o)}}return e},t}(ur);gt.registerComponent("TextTrackButton",pr);var Ar=function(e){function t(n,r){L(this,t);var i=r.track,a=r.cue,o=n.currentTime();r.selectable=!0,r.multiSelectable=!1,r.label=a.text,r.selected=a.startTime<=o&&o<a.endTime;var s=N(this,e.call(this,n,r));return s.track=i,s.cue=a,i.addEventListener("cuechange",Ze(s,s.update)),s}return R(t,e),t.prototype.handleClick=function(t){e.prototype.handleClick.call(this),this.player_.currentTime(this.cue.startTime),this.update(this.cue.startTime)},t.prototype.update=function(e){var t=this.cue,n=this.player_.currentTime();this.selected(t.startTime<=n&&n<t.endTime)},t}(hr);gt.registerComponent("ChaptersTrackMenuItem",Ar);var gr=function(e){function t(n,r,i){return L(this,t),N(this,e.call(this,n,r,i))}return R(t,e),t.prototype.buildCSSClass=function(){return"vjs-chapters-button "+e.prototype.buildCSSClass.call(this)},t.prototype.buildWrapperCSSClass=function(){return"vjs-chapters-button "+e.prototype.buildWrapperCSSClass.call(this)},t.prototype.update=function(t){this.track_&&(!t||"addtrack"!==t.type&&"removetrack"!==t.type)||this.setTrack(this.findChaptersTrack()),e.prototype.update.call(this)},t.prototype.setTrack=function(e){if(this.track_!==e){if(this.updateHandler_||(this.updateHandler_=this.update.bind(this)),this.track_){var t=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);t&&t.removeEventListener("load",this.updateHandler_),this.track_=null}if(this.track_=e,this.track_){this.track_.mode="hidden";var n=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);n&&n.addEventListener("load",this.updateHandler_)}}},t.prototype.findChaptersTrack=function(){for(var e=this.player_.textTracks()||[],t=e.length-1;t>=0;t--){var n=e[t];if(n.kind===this.kind_)return n}},t.prototype.getMenuCaption=function(){return this.track_&&this.track_.label?this.track_.label:this.localize(pt(this.kind_))},t.prototype.createMenu=function(){return this.options_.title=this.getMenuCaption(),e.prototype.createMenu.call(this)},t.prototype.createItems=function(){var e=[];if(!this.track_)return e;var t=this.track_.cues;if(!t)return e;for(var n=0,r=t.length;n<r;n++){var i=t[n],a=new Ar(this.player_,{track:this.track_,cue:i});e.push(a)}return e},t}(pr);gr.prototype.kind_="chapters",gr.prototype.controlText_="Chapters",gt.registerComponent("ChaptersButton",gr);var mr=function(e){function t(n,r,i){L(this,t);var a=N(this,e.call(this,n,r,i)),o=n.textTracks(),s=Ze(a,a.handleTracksChange);return o.addEventListener("change",s),a.on("dispose",function(){o.removeEventListener("change",s)}),a}return R(t,e),t.prototype.handleTracksChange=function(e){for(var t=this.player().textTracks(),n=!1,r=0,i=t.length;r<i;r++){var a=t[r];if(a.kind!==this.kind_&&"showing"===a.mode){n=!0;break}}n?this.disable():this.enable()},t.prototype.buildCSSClass=function(){return"vjs-descriptions-button "+e.prototype.buildCSSClass.call(this)},t.prototype.buildWrapperCSSClass=function(){return"vjs-descriptions-button "+e.prototype.buildWrapperCSSClass.call(this)},t}(pr);mr.prototype.kind_="descriptions",mr.prototype.controlText_="Descriptions",gt.registerComponent("DescriptionsButton",mr);var vr=function(e){function t(n,r,i){return L(this,t),N(this,e.call(this,n,r,i))}return R(t,e),t.prototype.buildCSSClass=function(){return"vjs-subtitles-button "+e.prototype.buildCSSClass.call(this)},t.prototype.buildWrapperCSSClass=function(){return"vjs-subtitles-button "+e.prototype.buildWrapperCSSClass.call(this)},t}(pr);vr.prototype.kind_="subtitles",vr.prototype.controlText_="Subtitles",gt.registerComponent("SubtitlesButton",vr);var yr=function(e){function t(n,r){L(this,t),r.track={player:n,kind:r.kind,label:r.kind+" settings",selectable:!1,default:!1,mode:"disabled"},r.selectable=!1,r.name="CaptionSettingsMenuItem";var i=N(this,e.call(this,n,r));return i.addClass("vjs-texttrack-settings"),i.controlText(", opens "+r.kind+" settings dialog"),i}return R(t,e),t.prototype.handleClick=function(e){this.player().getChild("textTrackSettings").open()},t}(dr);gt.registerComponent("CaptionSettingsMenuItem",yr);var br=function(e){function t(n,r,i){return L(this,t),N(this,e.call(this,n,r,i))}return R(t,e),t.prototype.buildCSSClass=function(){return"vjs-captions-button "+e.prototype.buildCSSClass.call(this)},t.prototype.buildWrapperCSSClass=function(){return"vjs-captions-button "+e.prototype.buildWrapperCSSClass.call(this)},t.prototype.createItems=function(){var t=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(t.push(new yr(this.player_,{kind:this.kind_})),this.hideThreshold_+=1),e.prototype.createItems.call(this,t)},t}(pr);br.prototype.kind_="captions",br.prototype.controlText_="Captions",gt.registerComponent("CaptionsButton",br);var wr=function(e){function t(){return L(this,t),N(this,e.apply(this,arguments))}return R(t,e),t.prototype.createEl=function(t,n,r){var i='<span class="vjs-menu-item-text">'+this.localize(this.options_.label);return"captions"===this.options_.track.kind&&(i+='\n <span aria-hidden="true" class="vjs-icon-placeholder"></span>\n <span class="vjs-control-text"> '+this.localize("Captions")+"</span>\n "),i+="</span>",e.prototype.createEl.call(this,t,z({innerHTML:i},n),r)},t}(dr);gt.registerComponent("SubsCapsMenuItem",wr);var xr=function(e){function t(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};L(this,t);var i=N(this,e.call(this,n,r));return i.label_="subtitles",["en","en-us","en-ca","fr-ca"].indexOf(i.player_.language_)>-1&&(i.label_="captions"),i.menuButton_.controlText(pt(i.label_)),i}return R(t,e),t.prototype.buildCSSClass=function(){return"vjs-subs-caps-button "+e.prototype.buildCSSClass.call(this)},t.prototype.buildWrapperCSSClass=function(){return"vjs-subs-caps-button "+e.prototype.buildWrapperCSSClass.call(this)},t.prototype.createItems=function(){var t=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(t.push(new yr(this.player_,{kind:this.label_})),this.hideThreshold_+=1),t=e.prototype.createItems.call(this,t,wr)},t}(pr);xr.prototype.kinds_=["captions","subtitles"],xr.prototype.controlText_="Subtitles",gt.registerComponent("SubsCapsButton",xr);var _r=function(e){function t(n,r){L(this,t);var i=r.track,a=n.audioTracks();r.label=i.label||i.language||"Unknown",r.selected=i.enabled;var o=N(this,e.call(this,n,r));o.track=i,o.addClass("vjs-"+i.kind+"-menu-item");var s=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];o.handleTracksChange.apply(o,t)};return a.addEventListener("change",s),o.on("dispose",function(){a.removeEventListener("change",s)}),o}return R(t,e),t.prototype.createEl=function(t,n,r){var i='<span class="vjs-menu-item-text">'+this.localize(this.options_.label);return"main-desc"===this.options_.track.kind&&(i+='\n <span aria-hidden="true" class="vjs-icon-placeholder"></span>\n <span class="vjs-control-text"> '+this.localize("Descriptions")+"</span>\n "),i+="</span>",e.prototype.createEl.call(this,t,z({innerHTML:i},n),r)},t.prototype.handleClick=function(t){var n=this.player_.audioTracks();e.prototype.handleClick.call(this,t);for(var r=0;r<n.length;r++){var i=n[r];i.enabled=i===this.track}},t.prototype.handleTracksChange=function(e){this.selected(this.track.enabled)},t}(hr);gt.registerComponent("AudioTrackMenuItem",_r);var Cr=function(e){function t(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return L(this,t),r.tracks=n.audioTracks(),N(this,e.call(this,n,r))}return R(t,e),t.prototype.buildCSSClass=function(){return"vjs-audio-button "+e.prototype.buildCSSClass.call(this)},t.prototype.buildWrapperCSSClass=function(){return"vjs-audio-button "+e.prototype.buildWrapperCSSClass.call(this)},t.prototype.createItems=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.hideThreshold_=1;for(var t=this.player_.audioTracks(),n=0;n<t.length;n++){var r=t[n];e.push(new _r(this.player_,{track:r,selectable:!0,multiSelectable:!1}))}return e},t}(ur);Cr.prototype.controlText_="Audio Track",gt.registerComponent("AudioTrackButton",Cr);var Sr=function(e){function t(n,r){L(this,t);var i=r.rate,a=parseFloat(i,10);r.label=i,r.selected=1===a,r.selectable=!0,r.multiSelectable=!1;var o=N(this,e.call(this,n,r));return o.label=i,o.rate=a,o.on(n,"ratechange",o.update),o}return R(t,e),t.prototype.handleClick=function(t){e.prototype.handleClick.call(this),this.player().playbackRate(this.rate)},t.prototype.update=function(e){this.selected(this.player().playbackRate()===this.rate)},t}(hr);Sr.prototype.contentElType="button",gt.registerComponent("PlaybackRateMenuItem",Sr);var kr=function(e){function t(n,r){L(this,t);var i=N(this,e.call(this,n,r));return i.updateVisibility(),i.updateLabel(),i.on(n,"loadstart",i.updateVisibility),i.on(n,"ratechange",i.updateLabel),i}return R(t,e),t.prototype.createEl=function(){var t=e.prototype.createEl.call(this);return this.labelEl_=ie("div",{className:"vjs-playback-rate-value",innerHTML:"1x"}),t.appendChild(this.labelEl_),t},t.prototype.dispose=function(){this.labelEl_=null,e.prototype.dispose.call(this)},t.prototype.buildCSSClass=function(){return"vjs-playback-rate "+e.prototype.buildCSSClass.call(this)},t.prototype.buildWrapperCSSClass=function(){return"vjs-playback-rate "+e.prototype.buildWrapperCSSClass.call(this)},t.prototype.createMenu=function(){var e=new lr(this.player()),t=this.playbackRates();if(t)for(var n=t.length-1;n>=0;n--)e.addChild(new Sr(this.player(),{rate:t[n]+"x"}));return e},t.prototype.updateARIAAttributes=function(){this.el().setAttribute("aria-valuenow",this.player().playbackRate())},t.prototype.handleClick=function(e){for(var t=this.player().playbackRate(),n=this.playbackRates(),r=n[0],i=0;i<n.length;i++)if(n[i]>t){r=n[i];break}this.player().playbackRate(r)},t.prototype.playbackRates=function(){return this.options_.playbackRates||this.options_.playerOptions&&this.options_.playerOptions.playbackRates},t.prototype.playbackRateSupported=function(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0},t.prototype.updateVisibility=function(e){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")},t.prototype.updateLabel=function(e){this.playbackRateSupported()&&(this.labelEl_.innerHTML=this.player().playbackRate()+"x")},t}(cr);kr.prototype.controlText_="Playback Rate",gt.registerComponent("PlaybackRateMenuButton",kr);var Br=function(e){function t(){return L(this,t),N(this,e.apply(this,arguments))}return R(t,e),t.prototype.buildCSSClass=function(){return"vjs-spacer "+e.prototype.buildCSSClass.call(this)},t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},t}(gt);gt.registerComponent("Spacer",Br);var Er=function(e){function t(){return L(this,t),N(this,e.apply(this,arguments))}return R(t,e),t.prototype.buildCSSClass=function(){return"vjs-custom-control-spacer "+e.prototype.buildCSSClass.call(this)},t.prototype.createEl=function(){var t=e.prototype.createEl.call(this,{className:this.buildCSSClass()});return t.innerHTML=" ",t},t}(Br);gt.registerComponent("CustomControlSpacer",Er);var Tr=function(e){function t(){return L(this,t),N(this,e.apply(this,arguments))}return R(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-control-bar",dir:"ltr"})},t}(gt);Tr.prototype.options_={children:["playToggle","volumePanel","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subsCapsButton","audioTrackButton","fullscreenToggle"]},gt.registerComponent("ControlBar",Tr);var Ir=function(e){function t(n,r){L(this,t);var i=N(this,e.call(this,n,r));return i.on(n,"error",i.open),i}return R(t,e),t.prototype.buildCSSClass=function(){return"vjs-error-display "+e.prototype.buildCSSClass.call(this)},t.prototype.content=function(){var e=this.player().error();return e?this.localize(e.message):""},t}(Ot);Ir.prototype.options_=At(Ot.prototype.options_,{pauseOnOpen:!1,fillAlways:!0,temporary:!1,uncloseable:!0}),gt.registerComponent("ErrorDisplay",Ir);var Mr=["#000","Black"],Fr=["#00F","Blue"],Dr=["#0FF","Cyan"],Pr=["#0F0","Green"],Or=["#F0F","Magenta"],Lr=["#F00","Red"],Rr=["#FFF","White"],Nr=["#FF0","Yellow"],Ur=["1","Opaque"],Hr=["0.5","Semi-Transparent"],jr=["0","Transparent"],Qr={backgroundColor:{selector:".vjs-bg-color > select",id:"captions-background-color-%s",label:"Color",options:[Mr,Rr,Lr,Pr,Fr,Nr,Or,Dr]},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Transparency",options:[Ur,Hr,jr]},color:{selector:".vjs-fg-color > select",id:"captions-foreground-color-%s",label:"Color",options:[Rr,Mr,Lr,Pr,Fr,Nr,Or,Dr]},edgeStyle:{selector:".vjs-edge-style > select",id:"%s",label:"Text Edge Style",options:[["none","None"],["raised","Raised"],["depressed","Depressed"],["uniform","Uniform"],["dropshadow","Dropshadow"]]},fontFamily:{selector:".vjs-font-family > select",id:"captions-font-family-%s",label:"Font Family",options:[["proportionalSansSerif","Proportional Sans-Serif"],["monospaceSansSerif","Monospace Sans-Serif"],["proportionalSerif","Proportional Serif"],["monospaceSerif","Monospace Serif"],["casual","Casual"],["script","Script"],["small-caps","Small Caps"]]},fontPercent:{selector:".vjs-font-percent > select",id:"captions-font-size-%s",label:"Font Size",options:[["0.50","50%"],["0.75","75%"],["1.00","100%"],["1.25","125%"],["1.50","150%"],["1.75","175%"],["2.00","200%"],["3.00","300%"],["4.00","400%"]],default:2,parser:function(e){return"1.00"===e?null:Number(e)}},textOpacity:{selector:".vjs-text-opacity > select",id:"captions-foreground-opacity-%s",label:"Transparency",options:[Ur,Hr]},windowColor:{selector:".vjs-window-color > select",id:"captions-window-color-%s",label:"Color"},windowOpacity:{selector:".vjs-window-opacity > select",id:"captions-window-opacity-%s",label:"Transparency",options:[jr,Hr,Ur]}};function zr(e,t){if(t&&(e=t(e)),e&&"none"!==e)return e}Qr.windowColor.options=Qr.backgroundColor.options;var Vr=function(e){function t(n,r){L(this,t),r.temporary=!1;var i=N(this,e.call(this,n,r));return i.updateDisplay=Ze(i,i.updateDisplay),i.fill(),i.hasBeenOpened_=i.hasBeenFilled_=!0,i.endDialog=ie("p",{className:"vjs-control-text",textContent:i.localize("End of dialog window.")}),i.el().appendChild(i.endDialog),i.setDefaults(),void 0===r.persistTextTrackSettings&&(i.options_.persistTextTrackSettings=i.options_.playerOptions.persistTextTrackSettings),i.on(i.$(".vjs-done-button"),"click",function(){i.saveSettings(),i.close()}),i.on(i.$(".vjs-default-button"),"click",function(){i.setDefaults(),i.updateDisplay()}),Q(Qr,function(e){i.on(i.$(e.selector),"change",i.updateDisplay)}),i.options_.persistTextTrackSettings&&i.restoreSettings(),i}return R(t,e),t.prototype.dispose=function(){this.endDialog=null,e.prototype.dispose.call(this)},t.prototype.createElSelect_=function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"label",i=Qr[e],a=i.id.replace("%s",this.id_),o=[n,a].join(" ").trim();return["<"+r+' id="'+a+'" class="'+("label"===r?"vjs-label":"")+'">',this.localize(i.label),"</"+r+">",'<select aria-labelledby="'+o+'">'].concat(i.options.map(function(e){var n=a+"-"+e[1].replace(/\W+/g,"");return['<option id="'+n+'" value="'+e[0]+'" ','aria-labelledby="'+o+" "+n+'">',t.localize(e[1]),"</option>"].join("")})).concat("</select>").join("")},t.prototype.createElFgColor_=function(){var e="captions-text-legend-"+this.id_;return['<fieldset class="vjs-fg-color vjs-track-setting">','<legend id="'+e+'">',this.localize("Text"),"</legend>",this.createElSelect_("color",e),'<span class="vjs-text-opacity vjs-opacity">',this.createElSelect_("textOpacity",e),"</span>","</fieldset>"].join("")},t.prototype.createElBgColor_=function(){var e="captions-background-"+this.id_;return['<fieldset class="vjs-bg-color vjs-track-setting">','<legend id="'+e+'">',this.localize("Background"),"</legend>",this.createElSelect_("backgroundColor",e),'<span class="vjs-bg-opacity vjs-opacity">',this.createElSelect_("backgroundOpacity",e),"</span>","</fieldset>"].join("")},t.prototype.createElWinColor_=function(){var e="captions-window-"+this.id_;return['<fieldset class="vjs-window-color vjs-track-setting">','<legend id="'+e+'">',this.localize("Window"),"</legend>",this.createElSelect_("windowColor",e),'<span class="vjs-window-opacity vjs-opacity">',this.createElSelect_("windowOpacity",e),"</span>","</fieldset>"].join("")},t.prototype.createElColors_=function(){return ie("div",{className:"vjs-track-settings-colors",innerHTML:[this.createElFgColor_(),this.createElBgColor_(),this.createElWinColor_()].join("")})},t.prototype.createElFont_=function(){return ie("div",{className:"vjs-track-settings-font",innerHTML:['<fieldset class="vjs-font-percent vjs-track-setting">',this.createElSelect_("fontPercent","","legend"),"</fieldset>",'<fieldset class="vjs-edge-style vjs-track-setting">',this.createElSelect_("edgeStyle","","legend"),"</fieldset>",'<fieldset class="vjs-font-family vjs-track-setting">',this.createElSelect_("fontFamily","","legend"),"</fieldset>"].join("")})},t.prototype.createElControls_=function(){var e=this.localize("restore all settings to the default values");return ie("div",{className:"vjs-track-settings-controls",innerHTML:['<button type="button" class="vjs-default-button" title="'+e+'">',this.localize("Reset"),'<span class="vjs-control-text"> '+e+"</span>","</button>",'<button type="button" class="vjs-done-button">'+this.localize("Done")+"</button>"].join("")})},t.prototype.content=function(){return[this.createElColors_(),this.createElFont_(),this.createElControls_()]},t.prototype.label=function(){return this.localize("Caption Settings Dialog")},t.prototype.description=function(){return this.localize("Beginning of dialog window. Escape will cancel and close the window.")},t.prototype.buildCSSClass=function(){return e.prototype.buildCSSClass.call(this)+" vjs-text-track-settings"},t.prototype.getValues=function(){var e=this;return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return j(e).reduce(function(n,r){return t(n,e[r],r)},n)}(Qr,function(t,n,r){var i,a,o=(i=e.$(n.selector),a=n.parser,zr(i.options[i.options.selectedIndex].value,a));return void 0!==o&&(t[r]=o),t},{})},t.prototype.setValues=function(e){var t=this;Q(Qr,function(n,r){!function(e,t,n){if(t)for(var r=0;r<e.options.length;r++)if(zr(e.options[r].value,n)===t){e.selectedIndex=r;break}}(t.$(n.selector),e[r],n.parser)})},t.prototype.setDefaults=function(){var e=this;Q(Qr,function(t){var n=t.hasOwnProperty("default")?t.default:0;e.$(t.selector).selectedIndex=n})},t.prototype.restoreSettings=function(){var e=void 0;try{e=JSON.parse(a.localStorage.getItem("vjs-text-track-settings"))}catch(e){W.warn(e)}e&&this.setValues(e)},t.prototype.saveSettings=function(){if(this.options_.persistTextTrackSettings){var e=this.getValues();try{Object.keys(e).length?a.localStorage.setItem("vjs-text-track-settings",JSON.stringify(e)):a.localStorage.removeItem("vjs-text-track-settings")}catch(e){W.warn(e)}}},t.prototype.updateDisplay=function(){var e=this.player_.getChild("textTrackDisplay");e&&e.updateDisplay()},t.prototype.conditionalBlur_=function(){this.previouslyActiveEl_=null,this.off(o,"keydown",this.handleKeyDown);var e=this.player_.controlBar,t=e&&e.subsCapsButton,n=e&&e.captionsButton;t?t.focus():n&&n.focus()},t}(Ot);gt.registerComponent("TextTrackSettings",Vr);var Gr=function(e){function t(n,r){L(this,t);var i=r.ResizeObserver||a.ResizeObserver;null===r.ResizeObserver&&(i=!1);var o=At({createEl:!i},r),s=N(this,e.call(this,n,o));return s.ResizeObserver=r.ResizeObserver||a.ResizeObserver,s.loadListener_=null,s.resizeObserver_=null,s.debouncedHandler_=tt(function(){s.resizeHandler()},100,!1,s),i?(s.resizeObserver_=new s.ResizeObserver(s.debouncedHandler_),s.resizeObserver_.observe(n.el())):(s.loadListener_=function(){s.el_&&s.el_.contentWindow&&Qe(s.el_.contentWindow,"resize",s.debouncedHandler_)},s.one("load",s.loadListener_)),s}return R(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"iframe",{className:"vjs-resize-manager"})},t.prototype.resizeHandler=function(){this.player_&&this.player_.trigger&&this.player_.trigger("playerresize")},t.prototype.dispose=function(){this.debouncedHandler_&&this.debouncedHandler_.cancel(),this.resizeObserver_&&(this.player_.el()&&this.resizeObserver_.unobserve(this.player_.el()),this.resizeObserver_.disconnect()),this.el_&&this.el_.contentWindow&&ze(this.el_.contentWindow,"resize",this.debouncedHandler_),this.loadListener_&&this.off("load",this.loadListener_),this.ResizeObserver=null,this.resizeObserver=null,this.debouncedHandler_=null,this.loadListener_=null},t}(gt);gt.registerComponent("ResizeManager",Gr);var $r=function(e){var t=e.el();if(t.hasAttribute("src"))return e.triggerSourceset(t.src),!0;var n=e.$$("source"),r=[],i="";if(!n.length)return!1;for(var a=0;a<n.length;a++){var o=n[a].src;o&&-1===r.indexOf(o)&&r.push(o)}return!!r.length&&(1===r.length&&(i=r[0]),e.triggerSourceset(i),!0)},qr={};E||(qr=Object.defineProperty({},"innerHTML",{get:function(){return this.cloneNode(!0).innerHTML},set:function(e){var t=o.createElement(this.nodeName.toLowerCase());t.innerHTML=e;for(var n=o.createDocumentFragment();t.childNodes.length;)n.appendChild(t.childNodes[0]);return this.innerText="",a.Element.prototype.appendChild.call(this,n),this.innerHTML}}));var Wr=function(e,t){for(var n={},r=0;r<e.length&&!((n=Object.getOwnPropertyDescriptor(e[r],t))&&n.set&&n.get);r++);return n.enumerable=!0,n.configurable=!0,n},Kr=function(e){var t=e.el();if(!t.resetSourceWatch_){var n={},r=function(e){return Wr([e.el(),a.HTMLMediaElement.prototype,a.Element.prototype,qr],"innerHTML")}(e),i=function(n){return function(){for(var r=arguments.length,i=Array(r),a=0;a<r;a++)i[a]=arguments[a];var o=n.apply(t,i);return $r(e),o}};["append","appendChild","insertAdjacentHTML"].forEach(function(e){t[e]&&(n[e]=t[e],t[e]=i(n[e]))}),Object.defineProperty(t,"innerHTML",At(r,{set:i(r.set)})),t.resetSourceWatch_=function(){t.resetSourceWatch_=null,Object.keys(n).forEach(function(e){t[e]=n[e]}),Object.defineProperty(t,"innerHTML",r)},e.one("sourceset",t.resetSourceWatch_)}},Yr={};E||(Yr=Object.defineProperty({},"src",{get:function(){return this.hasAttribute("src")?Xt(a.Element.prototype.getAttribute.call(this,"src")):""},set:function(e){return a.Element.prototype.setAttribute.call(this,"src",e),e}}));var Xr=function(e){if(e.featuresSourceset){var t=e.el();if(!t.resetSourceset_){var n=function(e){return Wr([e.el(),a.HTMLMediaElement.prototype,Yr],"src")}(e),r=t.setAttribute,i=t.load;Object.defineProperty(t,"src",At(n,{set:function(r){var i=n.set.call(t,r);return e.triggerSourceset(t.src),i}})),t.setAttribute=function(n,i){var a=r.call(t,n,i);return/src/i.test(n)&&e.triggerSourceset(t.src),a},t.load=function(){var n=i.call(t);return $r(e)||(e.triggerSourceset(""),Kr(e)),n},t.currentSrc?e.triggerSourceset(t.currentSrc):$r(e)||Kr(e),t.resetSourceset_=function(){t.resetSourceset_=null,t.load=i,t.setAttribute=r,Object.defineProperty(t,"src",n),t.resetSourceWatch_&&t.resetSourceWatch_()}}}},Jr=U(["Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.\n This may prevent text tracks from loading."],["Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.\n This may prevent text tracks from loading."]),Zr=function(e){function t(n,r){L(this,t);var i=N(this,e.call(this,n,r)),a=n.source,o=!1;if(a&&(i.el_.currentSrc!==a.src||n.tag&&3===n.tag.initNetworkState_)?i.setSource(a):i.handleLateInit_(i.el_),n.enableSourceset&&i.setupSourcesetHandling_(),i.el_.hasChildNodes()){for(var l=i.el_.childNodes,c=l.length,u=[];c--;){var h=l[c];"track"===h.nodeName.toLowerCase()&&(i.featuresNativeTextTracks?(i.remoteTextTrackEls().addTrackElement_(h),i.remoteTextTracks().addTrack(h.track),i.textTracks().addTrack(h.track),o||i.el_.hasAttribute("crossorigin")||!Zt(h.src)||(o=!0)):u.push(h))}for(var d=0;d<u.length;d++)i.el_.removeChild(u[d])}return i.proxyNativeTracks_(),i.featuresNativeTextTracks&&o&&W.warn(s(Jr)),i.restoreMetadataTracksInIOSNativePlayer_(),(F||g||_)&&!0===n.nativeControlsForTouch&&i.setControls(!0),i.proxyWebkitFullscreen_(),i.triggerReady(),i}return R(t,e),t.prototype.dispose=function(){this.el_&&this.el_.resetSourceset_&&this.el_.resetSourceset_(),t.disposeMediaElement(this.el_),this.options_=null,e.prototype.dispose.call(this)},t.prototype.setupSourcesetHandling_=function(){Xr(this)},t.prototype.restoreMetadataTracksInIOSNativePlayer_=function(){var e=this.textTracks(),t=void 0,n=function(){t=[];for(var n=0;n<e.length;n++){var r=e[n];"metadata"===r.kind&&t.push({track:r,storedMode:r.mode})}};n(),e.addEventListener("change",n),this.on("dispose",function(){return e.removeEventListener("change",n)});var r=function n(){for(var r=0;r<t.length;r++){var i=t[r];"disabled"===i.track.mode&&i.track.mode!==i.storedMode&&(i.track.mode=i.storedMode)}e.removeEventListener("change",n)};this.on("webkitbeginfullscreen",function(){e.removeEventListener("change",n),e.removeEventListener("change",r),e.addEventListener("change",r)}),this.on("webkitendfullscreen",function(){e.removeEventListener("change",n),e.addEventListener("change",n),e.removeEventListener("change",r)})},t.prototype.proxyNativeTracks_=function(){var e=this;un.names.forEach(function(t){var n=un[t],r=e.el()[n.getterName],i=e[n.getterName]();if(e["featuresNative"+n.capitalName+"Tracks"]&&r&&r.addEventListener){var a={change:function(e){i.trigger({type:"change",target:i,currentTarget:i,srcElement:i})},addtrack:function(e){i.addTrack(e.track)},removetrack:function(e){i.removeTrack(e.track)}},o=function(){for(var e=[],t=0;t<i.length;t++){for(var n=!1,a=0;a<r.length;a++)if(r[a]===i[t]){n=!0;break}n||e.push(i[t])}for(;e.length;)i.removeTrack(e.shift())};Object.keys(a).forEach(function(t){var n=a[t];r.addEventListener(t,n),e.on("dispose",function(e){return r.removeEventListener(t,n)})}),e.on("loadstart",o),e.on("dispose",function(t){return e.off("loadstart",o)})}})},t.prototype.createEl=function(){var e=this.options_.tag;if(!e||!this.options_.playerElIngest&&!this.movingMediaElementInDOM){if(e){var n=e.cloneNode(!0);e.parentNode&&e.parentNode.insertBefore(n,e),t.disposeMediaElement(e),e=n}else{e=o.createElement("video");var r=At({},this.options_.tag&&de(this.options_.tag));F&&!0===this.options_.nativeControlsForTouch||delete r.controls,he(e,z(r,{id:this.options_.techId,class:"vjs-tech"}))}e.playerId=this.options_.playerId}void 0!==this.options_.preload&&pe(e,"preload",this.options_.preload);for(var i=["loop","muted","playsinline","autoplay"],a=0;a<i.length;a++){var s=i[a],l=this.options_[s];void 0!==l&&(l?pe(e,s,s):Ae(e,s),e[s]=l)}return e},t.prototype.handleLateInit_=function(e){if(0!==e.networkState&&3!==e.networkState){if(0===e.readyState){var t=!1,n=function(){t=!0};this.on("loadstart",n);var r=function(){t||this.trigger("loadstart")};return this.on("loadedmetadata",r),void this.ready(function(){this.off("loadstart",n),this.off("loadedmetadata",r),t||this.trigger("loadstart")})}var i=["loadstart"];i.push("loadedmetadata"),e.readyState>=2&&i.push("loadeddata"),e.readyState>=3&&i.push("canplay"),e.readyState>=4&&i.push("canplaythrough"),this.ready(function(){i.forEach(function(e){this.trigger(e)},this)})}},t.prototype.setCurrentTime=function(e){try{this.el_.currentTime=e}catch(e){W(e,"Video is not ready. (Video.js)")}},t.prototype.duration=function(){var e=this;if(this.el_.duration===1/0&&b&&k&&0===this.el_.currentTime){return this.on("timeupdate",function t(){e.el_.currentTime>0&&(e.el_.duration===1/0&&e.trigger("durationchange"),e.off("timeupdate",t))}),NaN}return this.el_.duration||NaN},t.prototype.width=function(){return this.el_.offsetWidth},t.prototype.height=function(){return this.el_.offsetHeight},t.prototype.proxyWebkitFullscreen_=function(){var e=this;if("webkitDisplayingFullscreen"in this.el_){var t=function(){this.trigger("fullscreenchange",{isFullscreen:!1})},n=function(){"webkitPresentationMode"in this.el_&&"picture-in-picture"!==this.el_.webkitPresentationMode&&(this.one("webkitendfullscreen",t),this.trigger("fullscreenchange",{isFullscreen:!0}))};this.on("webkitbeginfullscreen",n),this.on("dispose",function(){e.off("webkitbeginfullscreen",n),e.off("webkitendfullscreen",t)})}},t.prototype.supportsFullScreen=function(){if("function"==typeof this.el_.webkitEnterFullScreen){var e=a.navigator&&a.navigator.userAgent||"";if(/Android/.test(e)||!/Chrome|Mac OS X 10.5/.test(e))return!0}return!1},t.prototype.enterFullScreen=function(){var e=this.el_;e.paused&&e.networkState<=e.HAVE_METADATA?(this.el_.play(),this.setTimeout(function(){e.pause(),e.webkitEnterFullScreen()},0)):e.webkitEnterFullScreen()},t.prototype.exitFullScreen=function(){this.el_.webkitExitFullScreen()},t.prototype.src=function(e){if(void 0===e)return this.el_.src;this.setSrc(e)},t.prototype.reset=function(){t.resetMediaElement(this.el_)},t.prototype.currentSrc=function(){return this.currentSource_?this.currentSource_.src:this.el_.currentSrc},t.prototype.setControls=function(e){this.el_.controls=!!e},t.prototype.addTextTrack=function(t,n,r){return this.featuresNativeTextTracks?this.el_.addTextTrack(t,n,r):e.prototype.addTextTrack.call(this,t,n,r)},t.prototype.createRemoteTextTrack=function(t){if(!this.featuresNativeTextTracks)return e.prototype.createRemoteTextTrack.call(this,t);var n=o.createElement("track");return t.kind&&(n.kind=t.kind),t.label&&(n.label=t.label),(t.language||t.srclang)&&(n.srclang=t.language||t.srclang),t.default&&(n.default=t.default),t.id&&(n.id=t.id),t.src&&(n.src=t.src),n},t.prototype.addRemoteTextTrack=function(t,n){var r=e.prototype.addRemoteTextTrack.call(this,t,n);return this.featuresNativeTextTracks&&this.el().appendChild(r),r},t.prototype.removeRemoteTextTrack=function(t){if(e.prototype.removeRemoteTextTrack.call(this,t),this.featuresNativeTextTracks)for(var n=this.$$("track"),r=n.length;r--;)t!==n[r]&&t!==n[r].track||this.el().removeChild(n[r])},t.prototype.getVideoPlaybackQuality=function(){if("function"==typeof this.el().getVideoPlaybackQuality)return this.el().getVideoPlaybackQuality();var e={};return void 0!==this.el().webkitDroppedFrameCount&&void 0!==this.el().webkitDecodedFrameCount&&(e.droppedVideoFrames=this.el().webkitDroppedFrameCount,e.totalVideoFrames=this.el().webkitDecodedFrameCount),a.performance&&"function"==typeof a.performance.now?e.creationTime=a.performance.now():a.performance&&a.performance.timing&&"number"==typeof a.performance.timing.navigationStart&&(e.creationTime=a.Date.now()-a.performance.timing.navigationStart),e},t}(fn);if(ee()){Zr.TEST_VID=o.createElement("video");var ei=o.createElement("track");ei.kind="captions",ei.srclang="en",ei.label="English",Zr.TEST_VID.appendChild(ei)}Zr.isSupported=function(){try{Zr.TEST_VID.volume=.5}catch(e){return!1}return!(!Zr.TEST_VID||!Zr.TEST_VID.canPlayType)},Zr.canPlayType=function(e){return Zr.TEST_VID.canPlayType(e)},Zr.canPlaySource=function(e,t){return Zr.canPlayType(e.type)},Zr.canControlVolume=function(){try{var e=Zr.TEST_VID.volume;return Zr.TEST_VID.volume=e/2+.1,e!==Zr.TEST_VID.volume}catch(e){return!1}},Zr.canMuteVolume=function(){try{var e=Zr.TEST_VID.muted;return Zr.TEST_VID.muted=!e,Zr.TEST_VID.muted?pe(Zr.TEST_VID,"muted","muted"):Ae(Zr.TEST_VID,"muted"),e!==Zr.TEST_VID.muted}catch(e){return!1}},Zr.canControlPlaybackRate=function(){if(b&&k&&B<58)return!1;try{var e=Zr.TEST_VID.playbackRate;return Zr.TEST_VID.playbackRate=e/2+.1,e!==Zr.TEST_VID.playbackRate}catch(e){return!1}},Zr.canOverrideAttributes=function(){if(E)return!1;try{var e=function(){};Object.defineProperty(o.createElement("video"),"src",{get:e,set:e}),Object.defineProperty(o.createElement("audio"),"src",{get:e,set:e}),Object.defineProperty(o.createElement("video"),"innerHTML",{get:e,set:e}),Object.defineProperty(o.createElement("audio"),"innerHTML",{get:e,set:e})}catch(e){return!1}return!0},Zr.supportsNativeTextTracks=function(){return M||v&&k},Zr.supportsNativeVideoTracks=function(){return!(!Zr.TEST_VID||!Zr.TEST_VID.videoTracks)},Zr.supportsNativeAudioTracks=function(){return!(!Zr.TEST_VID||!Zr.TEST_VID.audioTracks)},Zr.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","resize","volumechange"],Zr.prototype.featuresVolumeControl=Zr.canControlVolume(),Zr.prototype.featuresMuteControl=Zr.canMuteVolume(),Zr.prototype.featuresPlaybackRate=Zr.canControlPlaybackRate(),Zr.prototype.featuresSourceset=Zr.canOverrideAttributes(),Zr.prototype.movingMediaElementInDOM=!v,Zr.prototype.featuresFullscreenResize=!0,Zr.prototype.featuresProgressEvents=!0,Zr.prototype.featuresTimeupdateEvents=!0,Zr.prototype.featuresNativeTextTracks=Zr.supportsNativeTextTracks(),Zr.prototype.featuresNativeVideoTracks=Zr.supportsNativeVideoTracks(),Zr.prototype.featuresNativeAudioTracks=Zr.supportsNativeAudioTracks();var ti=Zr.TEST_VID&&Zr.TEST_VID.constructor.prototype.canPlayType,ni=/^application\/(?:x-|vnd\.apple\.)mpegurl/i,ri=/^video\/mp4/i;Zr.patchCanPlayType=function(){w>=4&&!C&&!k?Zr.TEST_VID.constructor.prototype.canPlayType=function(e){return e&&ni.test(e)?"maybe":ti.call(this,e)}:x&&(Zr.TEST_VID.constructor.prototype.canPlayType=function(e){return e&&ri.test(e)?"maybe":ti.call(this,e)})},Zr.unpatchCanPlayType=function(){var e=Zr.TEST_VID.constructor.prototype.canPlayType;return Zr.TEST_VID.constructor.prototype.canPlayType=ti,e},Zr.patchCanPlayType(),Zr.disposeMediaElement=function(e){if(e){for(e.parentNode&&e.parentNode.removeChild(e);e.hasChildNodes();)e.removeChild(e.firstChild);e.removeAttribute("src"),"function"==typeof e.load&&function(){try{e.load()}catch(e){}}()}},Zr.resetMediaElement=function(e){if(e){for(var t=e.querySelectorAll("source"),n=t.length;n--;)e.removeChild(t[n]);e.removeAttribute("src"),"function"==typeof e.load&&function(){try{e.load()}catch(e){}}()}},["muted","defaultMuted","autoplay","controls","loop","playsinline"].forEach(function(e){Zr.prototype[e]=function(){return this.el_[e]||this.el_.hasAttribute(e)}}),["muted","defaultMuted","autoplay","loop","playsinline"].forEach(function(e){Zr.prototype["set"+pt(e)]=function(t){this.el_[e]=t,t?this.el_.setAttribute(e,e):this.el_.removeAttribute(e)}}),["paused","currentTime","buffered","volume","poster","preload","error","seeking","seekable","ended","playbackRate","defaultPlaybackRate","played","networkState","readyState","videoWidth","videoHeight"].forEach(function(e){Zr.prototype[e]=function(){return this.el_[e]}}),["volume","src","poster","preload","playbackRate","defaultPlaybackRate"].forEach(function(e){Zr.prototype["set"+pt(e)]=function(t){this.el_[e]=t}}),["pause","load","play"].forEach(function(e){Zr.prototype[e]=function(){return this.el_[e]()}}),fn.withSourceHandlers(Zr),Zr.nativeSourceHandler={},Zr.nativeSourceHandler.canPlayType=function(e){try{return Zr.TEST_VID.canPlayType(e)}catch(e){return""}},Zr.nativeSourceHandler.canHandleSource=function(e,t){if(e.type)return Zr.nativeSourceHandler.canPlayType(e.type);if(e.src){var n=Jt(e.src);return Zr.nativeSourceHandler.canPlayType("video/"+n)}return""},Zr.nativeSourceHandler.handleSource=function(e,t,n){t.setSrc(e.src)},Zr.nativeSourceHandler.dispose=function(){},Zr.registerSourceHandler(Zr.nativeSourceHandler),fn.registerTech("Html5",Zr);var ii=U(["\n Using the tech directly can be dangerous. I hope you know what you're doing.\n See https://github.com/videojs/video.js/issues/2617 for more info.\n "],["\n Using the tech directly can be dangerous. I hope you know what you're doing.\n See https://github.com/videojs/video.js/issues/2617 for more info.\n "]),ai=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","resize","volumechange","texttrackchange"],oi={canplay:"CanPlay",canplaythrough:"CanPlayThrough",playing:"Playing",seeked:"Seeked"},si=["tiny","xsmall","small","medium","large","xlarge","huge"],li={};si.forEach(function(e){var t="x"===e.charAt(0)?"x-"+e.substring(1):e;li[e]="vjs-layout-"+t});var ci={tiny:210,xsmall:320,small:425,medium:768,large:1440,xlarge:2560,huge:1/0},ui=function(e){function t(n,r,i){if(L(this,t),n.id=n.id||r.id||"vjs_video_"+Me(),(r=z(t.getTagSettings(n),r)).initChildren=!1,r.createEl=!1,r.evented=!1,r.reportTouchActivity=!1,!r.language)if("function"==typeof n.closest){var a=n.closest("[lang]");a&&a.getAttribute&&(r.language=a.getAttribute("lang"))}else for(var o=n;o&&1===o.nodeType;){if(de(o).hasOwnProperty("lang")){r.language=o.getAttribute("lang");break}o=o.parentNode}var s=N(this,e.call(this,null,r,i));if(s.log=K(s.id_),s.isPosterFromTech_=!1,s.queuedCallbacks_=[],s.isReady_=!1,s.hasStarted_=!1,s.userActive_=!1,!s.options_||!s.options_.techOrder||!s.options_.techOrder.length)throw new Error("No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?");if(s.tag=n,s.tagAttributes=n&&de(n),s.language(s.options_.language),r.languages){var l={};Object.getOwnPropertyNames(r.languages).forEach(function(e){l[e.toLowerCase()]=r.languages[e]}),s.languages_=l}else s.languages_=t.prototype.options_.languages;s.cache_={},s.poster_=r.poster||"",s.controls_=!!r.controls,s.cache_.lastVolume=1,n.controls=!1,n.removeAttribute("controls"),n.hasAttribute("autoplay")?s.options_.autoplay=!0:s.autoplay(s.options_.autoplay),s.scrubbing_=!1,s.el_=s.createEl(),s.cache_.lastPlaybackRate=s.defaultPlaybackRate(),ht(s,{eventBusKey:"el_"});var c=At(s.options_);if(r.plugins){var u=r.plugins;Object.keys(u).forEach(function(e){if("function"!=typeof this[e])throw new Error('plugin "'+e+'" does not exist');this[e](u[e])},s)}s.options_.playerOptions=c,s.middleware_=[],s.initChildren(),s.isAudio("audio"===n.nodeName.toLowerCase()),s.controls()?s.addClass("vjs-controls-enabled"):s.addClass("vjs-controls-disabled"),s.el_.setAttribute("role","region"),s.isAudio()?s.el_.setAttribute("aria-label",s.localize("Audio Player")):s.el_.setAttribute("aria-label",s.localize("Video Player")),s.isAudio()&&s.addClass("vjs-audio"),s.flexNotSupported_()&&s.addClass("vjs-no-flex"),v||s.addClass("vjs-workinghover"),t.players[s.id_]=s;var d=h.split(".")[0];return s.addClass("vjs-v"+d),s.userActive(!0),s.reportUserActivity(),s.one("play",s.listenForUserActivity_),s.on("fullscreenchange",s.handleFullscreenChange_),s.on("stageclick",s.handleStageClick_),s.breakpoints(s.options_.breakpoints),s.responsive(s.options_.responsive),s.changingSrc_=!1,s.playWaitingForReady_=!1,s.playOnLoadstart_=null,s}return R(t,e),t.prototype.dispose=function(){this.trigger("dispose"),this.off("dispose"),this.styleEl_&&this.styleEl_.parentNode&&(this.styleEl_.parentNode.removeChild(this.styleEl_),this.styleEl_=null),t.players[this.id_]=null,this.tag&&this.tag.player&&(this.tag.player=null),this.el_&&this.el_.player&&(this.el_.player=null),this.tech_&&(this.tech_.dispose(),this.isPosterFromTech_=!1,this.poster_=""),this.playerElIngest_&&(this.playerElIngest_=null),this.tag&&(this.tag=null),An[this.id()]=null,e.prototype.dispose.call(this)},t.prototype.createEl=function(){var t=this.tag,n=void 0,r=this.playerElIngest_=t.parentNode&&t.parentNode.hasAttribute&&t.parentNode.hasAttribute("data-vjs-player"),i="video-js"===this.tag.tagName.toLowerCase();r?n=this.el_=t.parentNode:i||(n=this.el_=e.prototype.createEl.call(this,"div"));var s=de(t);if(i){for(n=this.el_=t,t=this.tag=o.createElement("video");n.children.length;)t.appendChild(n.firstChild);se(n,"video-js")||le(n,"video-js"),n.appendChild(t),r=this.playerElIngest_=n,["autoplay","controls","crossOrigin","defaultMuted","defaultPlaybackRate","loop","muted","playbackRate","src","volume"].forEach(function(e){void 0!==n[e]&&(t[e]=n[e])})}if(t.setAttribute("tabindex","-1"),s.tabindex="-1",T&&(t.setAttribute("role","application"),s.role="application"),t.removeAttribute("width"),t.removeAttribute("height"),"width"in s&&delete s.width,"height"in s&&delete s.height,Object.getOwnPropertyNames(s).forEach(function(e){"class"===e?(n.className+=" "+s[e],i&&(t.className+=" "+s[e])):(n.setAttribute(e,s[e]),i&&t.setAttribute(e,s[e]))}),t.playerId=t.id,t.id+="_html5_api",t.className="vjs-tech",t.player=n.player=this,this.addClass("vjs-paused"),!0!==a.VIDEOJS_NO_DYNAMIC_STYLE){this.styleEl_=Xe("vjs-styles-dimensions");var l=Be(".vjs-styles-defaults"),c=Be("head");c.insertBefore(this.styleEl_,l?l.nextSibling:c.firstChild)}this.fill_=!1,this.fluid_=!1,this.width(this.options_.width),this.height(this.options_.height),this.fill(this.options_.fill),this.fluid(this.options_.fluid),this.aspectRatio(this.options_.aspectRatio);for(var u=t.getElementsByTagName("a"),h=0;h<u.length;h++){var d=u.item(h);le(d,"vjs-hidden"),d.setAttribute("hidden","hidden")}return t.initNetworkState_=t.networkState,t.parentNode&&!r&&t.parentNode.insertBefore(n,t),oe(t,n),this.children_.unshift(t),this.el_.setAttribute("lang",this.language_),this.el_=n,n},t.prototype.width=function(e){return this.dimension("width",e)},t.prototype.height=function(e){return this.dimension("height",e)},t.prototype.dimension=function(e,t){var n=e+"_";if(void 0===t)return this[n]||0;if(""===t)return this[n]=void 0,void this.updateStyleEl_();var r=parseFloat(t);isNaN(r)?W.error('Improper value "'+t+'" supplied for for '+e):(this[n]=r,this.updateStyleEl_())},t.prototype.fluid=function(e){if(void 0===e)return!!this.fluid_;this.fluid_=!!e,e?(this.addClass("vjs-fluid"),this.fill(!1)):this.removeClass("vjs-fluid"),this.updateStyleEl_()},t.prototype.fill=function(e){if(void 0===e)return!!this.fill_;this.fill_=!!e,e?(this.addClass("vjs-fill"),this.fluid(!1)):this.removeClass("vjs-fill")},t.prototype.aspectRatio=function(e){if(void 0===e)return this.aspectRatio_;if(!/^\d+\:\d+$/.test(e))throw new Error("Improper value supplied for aspect ratio. The format should be width:height, for example 16:9.");this.aspectRatio_=e,this.fluid(!0),this.updateStyleEl_()},t.prototype.updateStyleEl_=function(){if(!0!==a.VIDEOJS_NO_DYNAMIC_STYLE){var e=void 0,t=void 0,n=void 0,r=(void 0!==this.aspectRatio_&&"auto"!==this.aspectRatio_?this.aspectRatio_:this.videoWidth()>0?this.videoWidth()+":"+this.videoHeight():"16:9").split(":"),i=r[1]/r[0];e=void 0!==this.width_?this.width_:void 0!==this.height_?this.height_/i:this.videoWidth()||300,t=void 0!==this.height_?this.height_:e*i,n=/^[^a-zA-Z]/.test(this.id())?"dimensions-"+this.id():this.id()+"-dimensions",this.addClass(n),Je(this.styleEl_,"\n ."+n+" {\n width: "+e+"px;\n height: "+t+"px;\n }\n\n ."+n+".vjs-fluid {\n padding-top: "+100*i+"%;\n }\n ")}else{var o="number"==typeof this.width_?this.width_:this.options_.width,s="number"==typeof this.height_?this.height_:this.options_.height,l=this.tech_&&this.tech_.el();l&&(o>=0&&(l.width=o),s>=0&&(l.height=s))}},t.prototype.loadTech_=function(e,t){var n=this;this.tech_&&this.unloadTech_();var r=pt(e),i=e.charAt(0).toLowerCase()+e.slice(1);"Html5"!==r&&this.tag&&(fn.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=r,this.isReady_=!1;var a={source:t,autoplay:"string"!=typeof this.autoplay()&&this.autoplay(),nativeControlsForTouch:this.options_.nativeControlsForTouch,playerId:this.id(),techId:this.id()+"_"+i+"_api",playsinline:this.options_.playsinline,preload:this.options_.preload,loop:this.options_.loop,muted:this.options_.muted,poster:this.poster(),language:this.language(),playerElIngest:this.playerElIngest_||!1,"vtt.js":this.options_["vtt.js"],canOverridePoster:!!this.options_.techCanOverridePoster,enableSourceset:this.options_.enableSourceset};dn.names.forEach(function(e){var t=dn[e];a[t.getterName]=n[t.privateName]}),z(a,this.options_[r]),z(a,this.options_[i]),z(a,this.options_[e.toLowerCase()]),this.tag&&(a.tag=this.tag),t&&t.src===this.cache_.src&&this.cache_.currentTime>0&&(a.startTime=this.cache_.currentTime);var o=fn.getTech(e);if(!o)throw new Error("No Tech named '"+r+"' exists! '"+r+"' should be registered using videojs.registerTech()'");this.tech_=new o(a),this.tech_.ready(Ze(this,this.handleTechReady_),!0),Dt(this.textTracksJson_||[],this.tech_),ai.forEach(function(e){n.on(n.tech_,e,n["handleTech"+pt(e)+"_"])}),Object.keys(oi).forEach(function(e){n.on(n.tech_,e,function(t){0===n.tech_.playbackRate()&&n.tech_.seeking()?n.queuedCallbacks_.push({callback:n["handleTech"+oi[e]+"_"].bind(n),event:t}):n["handleTech"+oi[e]+"_"](t)})}),this.on(this.tech_,"loadstart",this.handleTechLoadStart_),this.on(this.tech_,"sourceset",this.handleTechSourceset_),this.on(this.tech_,"waiting",this.handleTechWaiting_),this.on(this.tech_,"ended",this.handleTechEnded_),this.on(this.tech_,"seeking",this.handleTechSeeking_),this.on(this.tech_,"play",this.handleTechPlay_),this.on(this.tech_,"firstplay",this.handleTechFirstPlay_),this.on(this.tech_,"pause",this.handleTechPause_),this.on(this.tech_,"durationchange",this.handleTechDurationChange_),this.on(this.tech_,"fullscreenchange",this.handleTechFullscreenChange_),this.on(this.tech_,"error",this.handleTechError_),this.on(this.tech_,"loadedmetadata",this.updateStyleEl_),this.on(this.tech_,"posterchange",this.handleTechPosterChange_),this.on(this.tech_,"textdata",this.handleTechTextData_),this.on(this.tech_,"ratechange",this.handleTechRateChange_),this.usingNativeControls(this.techGet_("controls")),this.controls()&&!this.usingNativeControls()&&this.addTechControlsListeners_(),this.tech_.el().parentNode===this.el()||"Html5"===r&&this.tag||oe(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)},t.prototype.unloadTech_=function(){var e=this;dn.names.forEach(function(t){var n=dn[t];e[n.privateName]=e[n.getterName]()}),this.textTracksJson_=Ft(this.tech_),this.isReady_=!1,this.tech_.dispose(),this.tech_=!1,this.isPosterFromTech_&&(this.poster_="",this.trigger("posterchange")),this.isPosterFromTech_=!1},t.prototype.tech=function(e){return void 0===e&&W.warn(s(ii)),this.tech_},t.prototype.addTechControlsListeners_=function(){this.removeTechControlsListeners_(),this.on(this.tech_,"mousedown",this.handleTechClick_),this.on(this.tech_,"touchstart",this.handleTechTouchStart_),this.on(this.tech_,"touchmove",this.handleTechTouchMove_),this.on(this.tech_,"touchend",this.handleTechTouchEnd_),this.on(this.tech_,"tap",this.handleTechTap_)},t.prototype.removeTechControlsListeners_=function(){this.off(this.tech_,"tap",this.handleTechTap_),this.off(this.tech_,"touchstart",this.handleTechTouchStart_),this.off(this.tech_,"touchmove",this.handleTechTouchMove_),this.off(this.tech_,"touchend",this.handleTechTouchEnd_),this.off(this.tech_,"mousedown",this.handleTechClick_)},t.prototype.handleTechReady_=function(){if(this.triggerReady(),this.cache_.volume&&this.techCall_("setVolume",this.cache_.volume),this.handleTechPosterChange_(),this.handleTechDurationChange_(),(this.src()||this.currentSrc())&&this.tag&&this.options_.autoplay&&this.paused())try{delete this.tag.poster}catch(e){W("deleting tag.poster throws in some browsers",e)}},t.prototype.handleTechLoadStart_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-seeking"),this.error(null),this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):(this.trigger("loadstart"),this.trigger("firstplay")),this.manualAutoplay_(this.autoplay())},t.prototype.manualAutoplay_=function(e){var t=this;if(this.tech_&&"string"==typeof e){var n=function(){var e=t.muted();t.muted(!0);var n=t.play();if(n&&n.then&&n.catch)return n.catch(function(n){t.muted(e)})},r=void 0;if("any"===e?(r=this.play())&&r.then&&r.catch&&r.catch(function(){return n()}):r="muted"===e?n():this.play(),r&&r.then&&r.catch)return r.then(function(){t.trigger({type:"autoplay-success",autoplay:e})}).catch(function(n){t.trigger({type:"autoplay-failure",autoplay:e})})}},t.prototype.updateSourceCaches_=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e,n="";"string"!=typeof t&&(t=e.src,n=e.type),this.cache_.source=this.cache_.source||{},this.cache_.sources=this.cache_.sources||[],t&&!n&&(n=function(e,t){if(!t)return"";if(e.cache_.source.src===t&&e.cache_.source.type)return e.cache_.source.type;var n=e.cache_.sources.filter(function(e){return e.src===t});if(n.length)return n[0].type;for(var r=e.$$("source"),i=0;i<r.length;i++){var a=r[i];if(a.type&&a.src&&a.src===t)return a.type}return Cn(t)}(this,t)),this.cache_.source=At({},e,{src:t,type:n});for(var r=this.cache_.sources.filter(function(e){return e.src&&e.src===t}),i=[],a=this.$$("source"),o=[],s=0;s<a.length;s++){var l=de(a[s]);i.push(l),l.src&&l.src===t&&o.push(l.src)}o.length&&!r.length?this.cache_.sources=i:r.length||(this.cache_.sources=[this.cache_.source]),this.cache_.src=t},t.prototype.handleTechSourceset_=function(e){var t=this;if(!this.changingSrc_){var n=function(e){return t.updateSourceCaches_(e)},r=this.currentSource().src,i=e.src;if(r&&!/^blob:/.test(r)&&/^blob:/.test(i)&&(!this.lastSource_||this.lastSource_.tech!==i&&this.lastSource_.player!==r)&&(n=function(){}),n(i),!e.src){this.tech_.one(["sourceset","loadstart"],function e(n){if("sourceset"!==n.type){var r=t.techGet("currentSrc");t.lastSource_.tech=r,t.updateSourceCaches_(r)}t.tech_.off(["sourceset","loadstart"],e)})}}this.lastSource_={player:this.currentSource().src,tech:e.src},this.trigger({src:e.src,type:"sourceset"})},t.prototype.hasStarted=function(e){if(void 0===e)return this.hasStarted_;e!==this.hasStarted_&&(this.hasStarted_=e,this.hasStarted_?(this.addClass("vjs-has-started"),this.trigger("firstplay")):this.removeClass("vjs-has-started"))},t.prototype.handleTechPlay_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0),this.trigger("play")},t.prototype.handleTechRateChange_=function(){this.tech_.playbackRate()>0&&0===this.cache_.lastPlaybackRate&&(this.queuedCallbacks_.forEach(function(e){return e.callback(e.event)}),this.queuedCallbacks_=[]),this.cache_.lastPlaybackRate=this.tech_.playbackRate(),this.trigger("ratechange")},t.prototype.handleTechWaiting_=function(){var e=this;this.addClass("vjs-waiting"),this.trigger("waiting"),this.one("timeupdate",function(){return e.removeClass("vjs-waiting")})},t.prototype.handleTechCanPlay_=function(){this.removeClass("vjs-waiting"),this.trigger("canplay")},t.prototype.handleTechCanPlayThrough_=function(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")},t.prototype.handleTechPlaying_=function(){this.removeClass("vjs-waiting"),this.trigger("playing")},t.prototype.handleTechSeeking_=function(){this.addClass("vjs-seeking"),this.trigger("seeking")},t.prototype.handleTechSeeked_=function(){this.removeClass("vjs-seeking"),this.trigger("seeked")},t.prototype.handleTechFirstPlay_=function(){this.options_.starttime&&(W.warn("Passing the `starttime` option to the player will be deprecated in 6.0"),this.currentTime(this.options_.starttime)),this.addClass("vjs-has-started"),this.trigger("firstplay")},t.prototype.handleTechPause_=function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")},t.prototype.handleTechEnded_=function(){this.addClass("vjs-ended"),this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")},t.prototype.handleTechDurationChange_=function(){this.duration(this.techGet_("duration"))},t.prototype.handleTechClick_=function(e){ke(e)&&this.controls_&&(this.paused()?It(this.play()):this.pause())},t.prototype.handleTechTap_=function(){this.userActive(!this.userActive())},t.prototype.handleTechTouchStart_=function(){this.userWasActive=this.userActive()},t.prototype.handleTechTouchMove_=function(){this.userWasActive&&this.reportUserActivity()},t.prototype.handleTechTouchEnd_=function(e){e.preventDefault()},t.prototype.handleFullscreenChange_=function(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")},t.prototype.handleStageClick_=function(){this.reportUserActivity()},t.prototype.handleTechFullscreenChange_=function(e,t){t&&this.isFullscreen(t.isFullscreen),this.trigger("fullscreenchange")},t.prototype.handleTechError_=function(){var e=this.tech_.error();this.error(e)},t.prototype.handleTechTextData_=function(){var e=null;arguments.length>1&&(e=arguments[1]),this.trigger("textdata",e)},t.prototype.getCache=function(){return this.cache_},t.prototype.techCall_=function(e,t){this.ready(function(){if(e in bn)return function(e,t,n,r){return t[n](e.reduce(xn(n),r))}(this.middleware_,this.tech_,e,t);if(e in wn)return vn(this.middleware_,this.tech_,e,t);try{this.tech_&&this.tech_[e](t)}catch(e){throw W(e),e}},!0)},t.prototype.techGet_=function(e){if(this.tech_&&this.tech_.isReady_){if(e in yn)return function(e,t,n){return e.reduceRight(xn(n),t[n]())}(this.middleware_,this.tech_,e);if(e in wn)return vn(this.middleware_,this.tech_,e);try{return this.tech_[e]()}catch(t){if(void 0===this.tech_[e])throw W("Video.js: "+e+" method not defined for "+this.techName_+" playback technology.",t),t;if("TypeError"===t.name)throw W("Video.js: "+e+" unavailable on "+this.techName_+" playback technology element.",t),this.tech_.isReady_=!1,t;throw W(t),t}}},t.prototype.play=function(){var e=this,t=this.options_.Promise||a.Promise;return t?new t(function(t){e.play_(t)}):this.play_()},t.prototype.play_=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:It;if(this.playOnLoadstart_&&this.off("loadstart",this.playOnLoadstart_),this.isReady_){if(!this.changingSrc_&&(this.src()||this.currentSrc()))return void t(this.techGet_("play"));this.playOnLoadstart_=function(){e.playOnLoadstart_=null,t(e.play())},this.one("loadstart",this.playOnLoadstart_)}else{if(this.playWaitingForReady_)return;this.playWaitingForReady_=!0,this.ready(function(){e.playWaitingForReady_=!1,t(e.play())})}},t.prototype.pause=function(){this.techCall_("pause")},t.prototype.paused=function(){return!1!==this.techGet_("paused")},t.prototype.played=function(){return this.techGet_("played")||yt(0,0)},t.prototype.scrubbing=function(e){if(void 0===e)return this.scrubbing_;this.scrubbing_=!!e,e?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing")},t.prototype.currentTime=function(e){return void 0!==e?(e<0&&(e=0),void this.techCall_("setCurrentTime",e)):(this.cache_.currentTime=this.techGet_("currentTime")||0,this.cache_.currentTime)},t.prototype.duration=function(e){if(void 0===e)return void 0!==this.cache_.duration?this.cache_.duration:NaN;(e=parseFloat(e))<0&&(e=1/0),e!==this.cache_.duration&&(this.cache_.duration=e,e===1/0?this.addClass("vjs-live"):this.removeClass("vjs-live"),this.trigger("durationchange"))},t.prototype.remainingTime=function(){return this.duration()-this.currentTime()},t.prototype.remainingTimeDisplay=function(){return Math.floor(this.duration())-Math.floor(this.currentTime())},t.prototype.buffered=function(){var e=this.techGet_("buffered");return e&&e.length||(e=yt(0,0)),e},t.prototype.bufferedPercent=function(){return bt(this.buffered(),this.duration())},t.prototype.bufferedEnd=function(){var e=this.buffered(),t=this.duration(),n=e.end(e.length-1);return n>t&&(n=t),n},t.prototype.volume=function(e){var t=void 0;return void 0!==e?(t=Math.max(0,Math.min(1,parseFloat(e))),this.cache_.volume=t,this.techCall_("setVolume",t),void(t>0&&this.lastVolume_(t))):(t=parseFloat(this.techGet_("volume")),isNaN(t)?1:t)},t.prototype.muted=function(e){if(void 0===e)return this.techGet_("muted")||!1;this.techCall_("setMuted",e)},t.prototype.defaultMuted=function(e){return void 0!==e?this.techCall_("setDefaultMuted",e):this.techGet_("defaultMuted")||!1},t.prototype.lastVolume_=function(e){if(void 0===e||0===e)return this.cache_.lastVolume;this.cache_.lastVolume=e},t.prototype.supportsFullScreen=function(){return this.techGet_("supportsFullScreen")||!1},t.prototype.isFullscreen=function(e){if(void 0===e)return!!this.isFullscreen_;this.isFullscreen_=!!e},t.prototype.requestFullscreen=function(){var e=wt;this.isFullscreen(!0),e.requestFullscreen?(Qe(o,e.fullscreenchange,Ze(this,function t(n){this.isFullscreen(o[e.fullscreenElement]),!1===this.isFullscreen()&&ze(o,e.fullscreenchange,t),this.trigger("fullscreenchange")})),this.el_[e.requestFullscreen]()):this.tech_.supportsFullScreen()?this.techCall_("enterFullScreen"):(this.enterFullWindow(),this.trigger("fullscreenchange"))},t.prototype.exitFullscreen=function(){var e=wt;this.isFullscreen(!1),e.requestFullscreen?o[e.exitFullscreen]():this.tech_.supportsFullScreen()?this.techCall_("exitFullScreen"):(this.exitFullWindow(),this.trigger("fullscreenchange"))},t.prototype.enterFullWindow=function(){this.isFullWindow=!0,this.docOrigOverflow=o.documentElement.style.overflow,Qe(o,"keydown",Ze(this,this.fullWindowOnEscKey)),o.documentElement.style.overflow="hidden",le(o.body,"vjs-full-window"),this.trigger("enterFullWindow")},t.prototype.fullWindowOnEscKey=function(e){27===e.keyCode&&(!0===this.isFullscreen()?this.exitFullscreen():this.exitFullWindow())},t.prototype.exitFullWindow=function(){this.isFullWindow=!1,ze(o,"keydown",this.fullWindowOnEscKey),o.documentElement.style.overflow=this.docOrigOverflow,ce(o.body,"vjs-full-window"),this.trigger("exitFullWindow")},t.prototype.canPlayType=function(e){for(var t=void 0,n=0,r=this.options_.techOrder;n<r.length;n++){var i=r[n],a=fn.getTech(i);if(a||(a=gt.getComponent(i)),a){if(a.isSupported()&&(t=a.canPlayType(e)))return t}else W.error('The "'+i+'" tech is undefined. Skipped browser support check for that tech.')}return""},t.prototype.selectSource=function(e){var t,n=this,r=this.options_.techOrder.map(function(e){return[e,fn.getTech(e)]}).filter(function(e){var t=e[0],n=e[1];return n?n.isSupported():(W.error('The "'+t+'" tech is undefined. Skipped browser support check for that tech.'),!1)}),i=function(e,t,n){var r=void 0;return e.some(function(e){return t.some(function(t){if(r=n(e,t))return!0})}),r},a=function(e,t){var r=e[0];if(e[1].canPlaySource(t,n.options_[r.toLowerCase()]))return{source:t,tech:r}};return(this.options_.sourceOrder?i(e,r,(t=a,function(e,n){return t(n,e)})):i(r,e,a))||!1},t.prototype.src=function(e){var t=this;if(void 0===e)return this.cache_.src||"";var n=function e(t){if(Array.isArray(t)){var n=[];t.forEach(function(t){t=e(t),Array.isArray(t)?n=n.concat(t):V(t)&&n.push(t)}),t=n}else t="string"==typeof t&&t.trim()?[Sn({src:t})]:V(t)&&"string"==typeof t.src&&t.src&&t.src.trim()?[Sn(t)]:[];return t}(e);n.length?(this.changingSrc_=!0,this.cache_.sources=n,this.updateSourceCaches_(n[0]),mn(this,n[0],function(e,r){var i,a;if(t.middleware_=r,t.cache_.sources=n,t.updateSourceCaches_(e),t.src_(e))return n.length>1?t.src(n.slice(1)):(t.changingSrc_=!1,t.setTimeout(function(){this.error({code:4,message:this.localize(this.options_.notSupportedMessage)})},0),void t.triggerReady());i=r,a=t.tech_,i.forEach(function(e){return e.setTech&&e.setTech(a)})})):this.setTimeout(function(){this.error({code:4,message:this.localize(this.options_.notSupportedMessage)})},0)},t.prototype.src_=function(e){var t,n,r=this,i=this.selectSource([e]);return!i||(t=i.tech,n=this.techName_,pt(t)!==pt(n)?(this.changingSrc_=!0,this.loadTech_(i.tech,i.source),this.tech_.ready(function(){r.changingSrc_=!1}),!1):(this.ready(function(){this.tech_.constructor.prototype.hasOwnProperty("setSource")?this.techCall_("setSource",e):this.techCall_("src",e.src),this.changingSrc_=!1},!0),!1))},t.prototype.load=function(){this.techCall_("load")},t.prototype.reset=function(){this.tech_&&this.tech_.clearTracks("text"),this.loadTech_(this.options_.techOrder[0],null),this.techCall_("reset")},t.prototype.currentSources=function(){var e=this.currentSource(),t=[];return 0!==Object.keys(e).length&&t.push(e),this.cache_.sources||t},t.prototype.currentSource=function(){return this.cache_.source||{}},t.prototype.currentSrc=function(){return this.currentSource()&&this.currentSource().src||""},t.prototype.currentType=function(){return this.currentSource()&&this.currentSource().type||""},t.prototype.preload=function(e){return void 0!==e?(this.techCall_("setPreload",e),void(this.options_.preload=e)):this.techGet_("preload")},t.prototype.autoplay=function(e){if(void 0===e)return this.options_.autoplay||!1;var t=void 0;"string"==typeof e&&/(any|play|muted)/.test(e)?(this.options_.autoplay=e,this.manualAutoplay_(e),t=!1):this.options_.autoplay=!!e,t=t||this.options_.autoplay,this.tech_&&this.techCall_("setAutoplay",t)},t.prototype.playsinline=function(e){return void 0!==e?(this.techCall_("setPlaysinline",e),this.options_.playsinline=e,this):this.techGet_("playsinline")},t.prototype.loop=function(e){return void 0!==e?(this.techCall_("setLoop",e),void(this.options_.loop=e)):this.techGet_("loop")},t.prototype.poster=function(e){if(void 0===e)return this.poster_;e||(e=""),e!==this.poster_&&(this.poster_=e,this.techCall_("setPoster",e),this.isPosterFromTech_=!1,this.trigger("posterchange"))},t.prototype.handleTechPosterChange_=function(){if((!this.poster_||this.options_.techCanOverridePoster)&&this.tech_&&this.tech_.poster){var e=this.tech_.poster()||"";e!==this.poster_&&(this.poster_=e,this.isPosterFromTech_=!0,this.trigger("posterchange"))}},t.prototype.controls=function(e){if(void 0===e)return!!this.controls_;e=!!e,this.controls_!==e&&(this.controls_=e,this.usingNativeControls()&&this.techCall_("setControls",e),this.controls_?(this.removeClass("vjs-controls-disabled"),this.addClass("vjs-controls-enabled"),this.trigger("controlsenabled"),this.usingNativeControls()||this.addTechControlsListeners_()):(this.removeClass("vjs-controls-enabled"),this.addClass("vjs-controls-disabled"),this.trigger("controlsdisabled"),this.usingNativeControls()||this.removeTechControlsListeners_()))},t.prototype.usingNativeControls=function(e){if(void 0===e)return!!this.usingNativeControls_;e=!!e,this.usingNativeControls_!==e&&(this.usingNativeControls_=e,this.usingNativeControls_?(this.addClass("vjs-using-native-controls"),this.trigger("usingnativecontrols")):(this.removeClass("vjs-using-native-controls"),this.trigger("usingcustomcontrols")))},t.prototype.error=function(e){return void 0===e?this.error_||null:null===e?(this.error_=e,this.removeClass("vjs-error"),void(this.errorDisplay&&this.errorDisplay.close())):(this.error_=new Bt(e),this.addClass("vjs-error"),W.error("(CODE:"+this.error_.code+" "+Bt.errorTypes[this.error_.code]+")",this.error_.message,this.error_),void this.trigger("error"))},t.prototype.reportUserActivity=function(e){this.userActivity_=!0},t.prototype.userActive=function(e){if(void 0===e)return this.userActive_;if((e=!!e)!==this.userActive_){if(this.userActive_=e,this.userActive_)return this.userActivity_=!0,this.removeClass("vjs-user-inactive"),this.addClass("vjs-user-active"),void this.trigger("useractive");this.tech_&&this.tech_.one("mousemove",function(e){e.stopPropagation(),e.preventDefault()}),this.userActivity_=!1,this.removeClass("vjs-user-active"),this.addClass("vjs-user-inactive"),this.trigger("userinactive")}},t.prototype.listenForUserActivity_=function(){var e=void 0,t=void 0,n=void 0,r=Ze(this,this.reportUserActivity);this.on("mousedown",function(){r(),this.clearInterval(e),e=this.setInterval(r,250)}),this.on("mousemove",function(e){e.screenX===t&&e.screenY===n||(t=e.screenX,n=e.screenY,r())}),this.on("mouseup",function(t){r(),this.clearInterval(e)}),this.on("keydown",r),this.on("keyup",r);var i=void 0;this.setInterval(function(){if(this.userActivity_){this.userActivity_=!1,this.userActive(!0),this.clearTimeout(i);var e=this.options_.inactivityTimeout;e<=0||(i=this.setTimeout(function(){this.userActivity_||this.userActive(!1)},e))}},250)},t.prototype.playbackRate=function(e){if(void 0===e)return this.tech_&&this.tech_.featuresPlaybackRate?this.cache_.lastPlaybackRate||this.techGet_("playbackRate"):1;this.techCall_("setPlaybackRate",e)},t.prototype.defaultPlaybackRate=function(e){return void 0!==e?this.techCall_("setDefaultPlaybackRate",e):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("defaultPlaybackRate"):1},t.prototype.isAudio=function(e){if(void 0===e)return!!this.isAudio_;this.isAudio_=!!e},t.prototype.addTextTrack=function(e,t,n){if(this.tech_)return this.tech_.addTextTrack(e,t,n)},t.prototype.addRemoteTextTrack=function(e,t){if(this.tech_)return this.tech_.addRemoteTextTrack(e,t)},t.prototype.removeRemoteTextTrack=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).track,t=void 0===e?arguments[0]:e;if(this.tech_)return this.tech_.removeRemoteTextTrack(t)},t.prototype.getVideoPlaybackQuality=function(){return this.techGet_("getVideoPlaybackQuality")},t.prototype.videoWidth=function(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0},t.prototype.videoHeight=function(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0},t.prototype.language=function(e){if(void 0===e)return this.language_;this.language_=String(e).toLowerCase()},t.prototype.languages=function(){return At(t.prototype.options_.languages,this.languages_)},t.prototype.toJSON=function(){var e=At(this.options_),t=e.tracks;e.tracks=[];for(var n=0;n<t.length;n++){var r=t[n];(r=At(r)).player=void 0,e.tracks[n]=r}return e},t.prototype.createModal=function(e,t){var n=this;(t=t||{}).content=e||"";var r=new Ot(this,t);return this.addChild(r),r.on("dispose",function(){n.removeChild(r)}),r.open(),r},t.prototype.updateCurrentBreakpoint_=function(){if(this.responsive())for(var e=this.currentBreakpoint(),t=this.currentWidth(),n=0;n<si.length;n++){var r=si[n];if(t<=this.breakpoints_[r]){if(e===r)return;e&&this.removeClass(li[e]),this.addClass(li[r]),this.breakpoint_=r;break}}},t.prototype.removeCurrentBreakpoint_=function(){var e=this.currentBreakpointClass();this.breakpoint_="",e&&this.removeClass(e)},t.prototype.breakpoints=function(e){return void 0===e?z(this.breakpoints_):(this.breakpoint_="",this.breakpoints_=z({},ci,e),this.updateCurrentBreakpoint_(),z(this.breakpoints_))},t.prototype.responsive=function(e){return void 0===e?this.responsive_:(e=Boolean(e))!==this.responsive_?(this.responsive_=e,e?(this.on("playerresize",this.updateCurrentBreakpoint_),this.updateCurrentBreakpoint_()):(this.off("playerresize",this.updateCurrentBreakpoint_),this.removeCurrentBreakpoint_()),e):void 0},t.prototype.currentBreakpoint=function(){return this.breakpoint_},t.prototype.currentBreakpointClass=function(){return li[this.breakpoint_]||""},t.getTagSettings=function(e){var t={sources:[],tracks:[]},n=de(e),r=n["data-setup"];if(se(e,"vjs-fill")&&(n.fill=!0),se(e,"vjs-fluid")&&(n.fluid=!0),null!==r){var i=l(r||"{}"),a=i[0],o=i[1];a&&W.error(a),z(n,o)}if(z(t,n),e.hasChildNodes())for(var s=e.childNodes,c=0,u=s.length;c<u;c++){var h=s[c],d=h.nodeName.toLowerCase();"source"===d?t.sources.push(de(h)):"track"===d&&t.tracks.push(de(h))}return t},t.prototype.flexNotSupported_=function(){var e=o.createElement("i");return!("flexBasis"in e.style||"webkitFlexBasis"in e.style||"mozFlexBasis"in e.style||"msFlexBasis"in e.style||"msFlexOrder"in e.style)},t}(gt);dn.names.forEach(function(e){var t=dn[e];ui.prototype[t.getterName]=function(){return this.tech_?this.tech_[t.getterName]():(this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName])}}),ui.players={};var hi=a.navigator;ui.prototype.options_={techOrder:fn.defaultTechOrder_,html5:{},flash:{},inactivityTimeout:2e3,playbackRates:[],children:["mediaLoader","posterImage","textTrackDisplay","loadingSpinner","bigPlayButton","controlBar","errorDisplay","textTrackSettings"],language:hi&&(hi.languages&&hi.languages[0]||hi.userLanguage||hi.language)||"en",languages:{},notSupportedMessage:"No compatible source was found for this media.",breakpoints:{},responsive:!1},E||ui.prototype.options_.children.push("resizeManager"),["ended","seeking","seekable","networkState","readyState"].forEach(function(e){ui.prototype[e]=function(){return this.techGet_(e)}}),ai.forEach(function(e){ui.prototype["handleTech"+pt(e)+"_"]=function(){return this.trigger(e)}}),gt.registerComponent("Player",ui);var di={},fi=function(e){return di.hasOwnProperty(e)},pi=function(e){return fi(e)?di[e]:void 0},Ai=function(e,t){e.activePlugins_=e.activePlugins_||{},e.activePlugins_[t]=!0},gi=function(e,t,n){var r=(n?"before":"")+"pluginsetup";e.trigger(r,t),e.trigger(r+":"+t.name,t)},mi=function(e,t){return t.prototype.name=e,function(){gi(this,{name:e,plugin:t,instance:null},!0);for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];var a=new(Function.prototype.bind.apply(t,[null].concat([this].concat(r))));return this[e]=function(){return a},gi(this,a.getEventHash()),a}},vi=function(){function e(t){if(L(this,e),this.constructor===e)throw new Error("Plugin must be sub-classed; not directly instantiated.");this.player=t,ht(this),delete this.trigger,ft(this,this.constructor.defaultState),Ai(t,this.name),this.dispose=Ze(this,this.dispose),t.on("dispose",this.dispose)}return e.prototype.version=function(){return this.constructor.VERSION},e.prototype.getEventHash=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.name=this.name,e.plugin=this.constructor,e.instance=this,e},e.prototype.trigger=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Ve(this.eventBusEl_,e,this.getEventHash(t))},e.prototype.handleStateChanged=function(e){},e.prototype.dispose=function(){var e=this.name,t=this.player;this.trigger("dispose"),this.off(),t.off("dispose",this.dispose),t.activePlugins_[e]=!1,this.player=this.state=null,t[e]=mi(e,di[e])},e.isBasic=function(t){var n="string"==typeof t?pi(t):t;return"function"==typeof n&&!e.prototype.isPrototypeOf(n.prototype)},e.registerPlugin=function(t,n){if("string"!=typeof t)throw new Error('Illegal plugin name, "'+t+'", must be a string, was '+(void 0===t?"undefined":O(t))+".");if(fi(t))W.warn('A plugin named "'+t+'" already exists. You may want to avoid re-registering plugins!');else if(ui.prototype.hasOwnProperty(t))throw new Error('Illegal plugin name, "'+t+'", cannot share a name with an existing player method!');if("function"!=typeof n)throw new Error('Illegal plugin for "'+t+'", must be a function, was '+(void 0===n?"undefined":O(n))+".");return di[t]=n,"plugin"!==t&&(e.isBasic(n)?ui.prototype[t]=function(e,t){var n=function(){gi(this,{name:e,plugin:t,instance:null},!0);var n=t.apply(this,arguments);return Ai(this,e),gi(this,{name:e,plugin:t,instance:n}),n};return Object.keys(t).forEach(function(e){n[e]=t[e]}),n}(t,n):ui.prototype[t]=mi(t,n)),n},e.deregisterPlugin=function(e){if("plugin"===e)throw new Error("Cannot de-register base plugin.");fi(e)&&(delete di[e],delete ui.prototype[e])},e.getPlugins=function(){var e=void 0;return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:Object.keys(di)).forEach(function(t){var n=pi(t);n&&((e=e||{})[t]=n)}),e},e.getPluginVersion=function(e){var t=pi(e);return t&&t.VERSION||""},e}();vi.getPlugin=pi,vi.BASE_PLUGIN_NAME="plugin",vi.registerPlugin("plugin",vi),ui.prototype.usingPlugin=function(e){return!!this.activePlugins_&&!0===this.activePlugins_[e]},ui.prototype.hasPlugin=function(e){return!!fi(e)};"undefined"==typeof HTMLVideoElement&&ee()&&(o.createElement("video"),o.createElement("audio"),o.createElement("track"),o.createElement("video-js"));var yi=function(e){return 0===e.indexOf("#")?e.slice(1):e};function bi(e,t,n){var r=bi.getPlayer(e);if(r)return t&&W.warn('Player "'+e+'" is already initialised. Options will not be applied.'),n&&r.ready(n),r;var i="string"==typeof e?Be("#"+yi(e)):e;if(!te(i))throw new TypeError("The element or ID supplied is not valid. (videojs)");o.body.contains(i)||W.warn("The element supplied is not included in the DOM"),t=t||{},bi.hooks("beforesetup").forEach(function(e){var n=e(i,At(t));V(n)&&!Array.isArray(n)?t=At(t,n):W.error("please return an object in beforesetup hooks")});var a=gt.getComponent("Player");return r=new a(i,t,n),bi.hooks("setup").forEach(function(e){return e(r)}),r}if(bi.hooks_={},bi.hooks=function(e,t){return bi.hooks_[e]=bi.hooks_[e]||[],t&&(bi.hooks_[e]=bi.hooks_[e].concat(t)),bi.hooks_[e]},bi.hook=function(e,t){bi.hooks(e,t)},bi.hookOnce=function(e,t){bi.hooks(e,[].concat(t).map(function(t){return function n(){return bi.removeHook(e,n),t.apply(void 0,arguments)}}))},bi.removeHook=function(e,t){var n=bi.hooks(e).indexOf(t);return!(n<=-1)&&(bi.hooks_[e]=bi.hooks_[e].slice(),bi.hooks_[e].splice(n,1),!0)},!0!==a.VIDEOJS_NO_DYNAMIC_STYLE&&ee()){var wi=Be(".vjs-styles-defaults");if(!wi){wi=Xe("vjs-styles-defaults");var xi=Be("head");xi&&xi.insertBefore(wi,xi.firstChild),Je(wi,"\n .video-js {\n width: 300px;\n height: 150px;\n }\n\n .vjs-fluid {\n padding-top: 56.25%\n }\n ")}}Ye(1,bi),bi.VERSION=h,bi.options=ui.prototype.options_,bi.getPlayers=function(){return ui.players},bi.getPlayer=function(e){var t=ui.players,n=void 0;if("string"==typeof e){var r=yi(e),i=t[r];if(i)return i;n=Be("#"+r)}else n=e;if(te(n)){var a=n,o=a.player,s=a.playerId;if(o||t[s])return o||t[s]}},bi.getAllPlayers=function(){return Object.keys(ui.players).map(function(e){return ui.players[e]}).filter(Boolean)},bi.players=ui.players,bi.getComponent=gt.getComponent,bi.registerComponent=function(e,t){fn.isTech(t)&&W.warn("The "+e+" tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)"),gt.registerComponent.call(gt,e,t)},bi.getTech=fn.getTech,bi.registerTech=fn.registerTech,bi.use=function(e,t){pn[e]=pn[e]||[],pn[e].push(t)},!E&&Object.defineProperty?(Object.defineProperty(bi,"middleware",{value:{},writeable:!1,enumerable:!0}),Object.defineProperty(bi.middleware,"TERMINATOR",{value:gn,writeable:!1,enumerable:!0})):bi.middleware={TERMINATOR:gn},bi.browser=P,bi.TOUCH_ENABLED=F,bi.extend=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=function(){e.apply(this,arguments)},r={};for(var i in"object"===(void 0===t?"undefined":O(t))?(t.constructor!==Object.prototype.constructor&&(n=t.constructor),r=t):"function"==typeof t&&(n=t),function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":O(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.super_=t)}(n,e),r)r.hasOwnProperty(i)&&(n.prototype[i]=r[i]);return n},bi.mergeOptions=At,bi.bind=Ze,bi.registerPlugin=vi.registerPlugin,bi.deregisterPlugin=vi.deregisterPlugin,bi.plugin=function(e,t){return W.warn("videojs.plugin() is deprecated; use videojs.registerPlugin() instead"),vi.registerPlugin(e,t)},bi.getPlugins=vi.getPlugins,bi.getPlugin=vi.getPlugin,bi.getPluginVersion=vi.getPluginVersion,bi.addLanguage=function(e,t){var n;return e=(""+e).toLowerCase(),bi.options.languages=At(bi.options.languages,((n={})[e]=t,n)),bi.options.languages[e]},bi.log=W,bi.createLogger=K,bi.createTimeRange=bi.createTimeRanges=yt,bi.formatTime=Hn,bi.setFormatTime=function(e){Un=e},bi.resetFormatTime=function(){Un=Nn},bi.parseUrl=Yt,bi.isCrossOrigin=Zt,bi.EventTarget=nt,bi.on=Qe,bi.one=Ge,bi.off=ze,bi.trigger=Ve,bi.xhr=c,bi.TextTrack=rn,bi.AudioTrack=an,bi.VideoTrack=on,["isEl","isTextNode","createEl","hasClass","addClass","removeClass","toggleClass","setAttributes","getAttributes","emptyEl","appendContent","insertContent"].forEach(function(e){bi[e]=function(){return W.warn("videojs."+e+"() is deprecated; use videojs.dom."+e+"() instead"),Te[e].apply(null,arguments)}}),bi.computedStyle=Y,bi.dom=Te,bi.url=en,e.exports=bi},DuR2:function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},DvOw:function(e,t){var n={"":!0,up:!0};function r(e){return"number"==typeof e&&e>=0&&e<=100}e.exports=function(){var e=100,t=3,i=0,a=100,o=0,s=100,l="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return e},set:function(t){if(!r(t))throw new Error("Width must be between 0 and 100.");e=t}},lines:{enumerable:!0,get:function(){return t},set:function(e){if("number"!=typeof e)throw new TypeError("Lines must be set to a number.");t=e}},regionAnchorY:{enumerable:!0,get:function(){return a},set:function(e){if(!r(e))throw new Error("RegionAnchorX must be between 0 and 100.");a=e}},regionAnchorX:{enumerable:!0,get:function(){return i},set:function(e){if(!r(e))throw new Error("RegionAnchorY must be between 0 and 100.");i=e}},viewportAnchorY:{enumerable:!0,get:function(){return s},set:function(e){if(!r(e))throw new Error("ViewportAnchorY must be between 0 and 100.");s=e}},viewportAnchorX:{enumerable:!0,get:function(){return o},set:function(e){if(!r(e))throw new Error("ViewportAnchorX must be between 0 and 100.");o=e}},scroll:{enumerable:!0,get:function(){return l},set:function(e){var t=function(e){return"string"==typeof e&&!!n[e.toLowerCase()]&&e.toLowerCase()}(e);if(!1===t)throw new SyntaxError("An invalid or illegal string was specified.");l=t}}})}},"E/in":function(e,t,n){"use strict";t.__esModule=!0,t.isDef=function(e){return void 0!==e&&null!==e},t.isKorean=function(e){return/([(\uAC00-\uD7AF)|(\u3130-\u318F)])+/gi.test(e)}},EAZf:function(e,t,n){var r;r=function(e,t){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.i=function(e){return e},n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=6)}([function(t,n){t.exports=e},function(e,t,n){"use strict";t.a=function e(){var t={};var n=!1;var r=0;var i=arguments.length;"[object Boolean]"===Object.prototype.toString.call(arguments[0])&&(n=arguments[0],r++);function a(r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n&&"[object Object]"===Object.prototype.toString.call(r[i])?t[i]=e(!0,t[i],r[i]):t[i]=r[i])}for(;r<i;r++){var o=arguments[r];a(o)}return t}},function(e,n){e.exports=t},function(e,t,n){"use strict";var r=n(0),i=n.n(r),a=n(1),o=n(2),s=n.n(o);t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.images,r=void 0===t?[]:t,o=e.options,l=void 0===o?{}:o;l=n.i(a.a)(l,{inline:!1});var c=new(s.a.extend({render:function(e){return e("div",{style:{display:"none"},class:["__viewer-token"]},r.map(function(t){return e("img",{attrs:"string"==typeof t?{src:t}:t})}))}}));c.$mount(),document.body.appendChild(c.$el);var u=new i.a(c.$el,l),h=u.destroy.bind(u);return u.destroy=function(){return h(),c.$destroy(),document.body.removeChild(c.$el),u},u.show(),c.$el.addEventListener("hidden",function(){this.viewer===u&&u.destroy()}),u}},function(e,t,n){"use strict";(function(e){var r=n(0),i=n.n(r),a=n(7),o=(n.n(a),n(2)),s=n.n(o);t.a=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.name,o=void 0===r?"viewer":r,l=t.debug,c=void 0!==l&&l;function u(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];s.a.nextTick(function(){r&&!function(e){var t=e.innerHTML.match(/<img([\w\W]+?)[\\/]?>/g),n=t?t.join(""):void 0;return e.__viewerImageDiffCache===n?(f("Element change detected, but image(s) has not changed"),!1):(f("Image change detected"),e.__viewerImageDiffCache=n,!0)}(e)||(n||!e["$"+o]?(h(e),e["$"+o]=new i.a(e,t),f("Viewer created")):(e["$"+o].update(),f("Viewer updated")))})}function h(e){e["$"+o]&&(e["$"+o].destroy(),delete e["$"+o],f("Viewer destroyed"))}function d(e){e.__viewerMutationObserver&&(e.__viewerMutationObserver.disconnect(),delete e.__viewerMutationObserver,f("Observer destroyed"))}function f(){var e;c&&(e=console).log.apply(e,arguments)}var p={bind:function(t,r,i){f("Viewer bind");var o=n.i(a.debounce)(50,u);o(t,r.value),function(e,t,n,r){var i=t.expression;i&&/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/.test(i)?(e.__viewerUnwatch=n.context.$watch(i,function(t,n){f("Change detected by watcher: ",i),r(e,t,!0)},{deep:!0}),f("Watcher created, expression: ",i)):f("Only simple dot-delimited paths can create watcher")}(t,r,i,o),r.modifiers.static||function(t,n,r,i){d(t);var a=e.MutationObserver||e.WebKitMutationObserver||e.MozMutationObserver;if(a){var o=new a(function(e){e.forEach(function(e){f("Viewer mutation:"+e.type),r(t,n,i,!0)})});o.observe(t,{attributes:!0,childList:!0,characterData:!0,subtree:!0}),t.__viewerMutationObserver=o,f("Observer created")}else f("Observer not supported")}(t,r.value,o,r.modifiers.rebuild)},unbind:function(e,t){f("Viewer unbind"),d(e),function(e){e.__viewerUnwatch&&(e.__viewerUnwatch(),delete e.__viewerUnwatch,f("Watcher destroyed"))}(e),h(e)}};return p}}).call(t,n(9))},function(e,t,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(e){return"default"!==e&&"__esModule"!==e})&&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."),e.exports=r.exports},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=n(0),a=n.n(i),o=n(5),s=n.n(o),l=n(4),c=n(3);n.d(t,"component",function(){return s.a}),n.d(t,"directive",function(){return l.a}),n.d(t,"api",function(){return c.a}),n.d(t,"Viewer",function(){return a.a}),t.default={install:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t.name,o=void 0===i?"viewer":i,u=t.debug,h=void 0!==u&&u,d=t.defaultOptions;a.a.setDefaults(d),e.component(o,n.i(r.a)(s.a,{name:o})),e.directive(o,n.i(l.a)({name:o,debug:h})),e.prototype["$"+o+"Api"]=c.a},setDefaults:function(e){a.a.setDefaults(e)}}},function(e,t,n){var r,i,a,o,s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};o=function(e){"use strict";function t(e,t,n,r){var i,a=!1,o=0;function s(){i&&clearTimeout(i)}function l(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];var h=this,d=Date.now()-o;function f(){o=Date.now(),n.apply(h,c)}a||(r&&!i&&f(),s(),void 0===r&&d>e?f():!0!==t&&(i=setTimeout(r?function(){i=void 0}:f,void 0===r?e-d:e)))}return"boolean"!=typeof t&&(r=n,n=t,t=void 0),l.cancel=function(){s(),a=!0},l}e.debounce=function(e,n,r){return void 0===r?t(e,n,!1):t(e,r,!1!==n)},e.throttle=t,Object.defineProperty(e,"__esModule",{value:!0})},"object"===s(t)&&void 0!==e?o(t):(i=[t],void 0===(a="function"==typeof(r=o)?r.apply(t,i):r)||(e.exports=a))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n.n(r);t.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 e=this;this.$nextTick(function(){e.onChange()})},trigger:{handler:function(){var e=this;this.$nextTick(function(){e.onChange()})},deep:!0},options:{handler:function(){var e=this;this.$nextTick(function(){e.rebuildViewer()})},deep:!0}},mounted:function(){this.createViewer()},destroyed:function(){this.destroyViewer()}}},function(e,t){var n,r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"===("undefined"==typeof window?"undefined":r(window))&&(n=window)}e.exports=n},function(e,t){e.exports=function(e,t,n,r){var i,a=e=e||{},o=typeof e.default;"object"!==o&&"function"!==o||(i=e,a=e.default);var s="function"==typeof a?a.options:a;if(t&&(s.render=t.render,s.staticRenderFns=t.staticRenderFns),n&&(s._scopeId=n),r){var l=Object.create(s.computed||null);Object.keys(r).forEach(function(e){var t=r[e];l[e]=function(){return t}}),s.computed=l}return{esModule:i,exports:a,options:s}}},function(e,t,n){e.exports={render:function(){var e=this.$createElement;return(this._self._c||e)("div",[this._t("default",null,{images:this.images,options:this.options})],2)},staticRenderFns:[]},e.exports.render._withStripped=!0}])},e.exports=r(n("IinW"),n("7+uW"))},EGZi:function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},EKTV:function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=83)}({0:function(e,t,n){"use strict";function r(e,t,n,r,i,a,o,s){var l,c="function"==typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),a&&(c._scopeId="data-v-"+a),o?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},c._ssrRegister=l):i&&(l=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,l):[l]}return{exports:e,options:c}}n.d(t,"a",function(){return r})},4:function(e,t){e.exports=n("fPll")},83:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("label",{staticClass:"el-checkbox",class:[e.border&&e.checkboxSize?"el-checkbox--"+e.checkboxSize:"",{"is-disabled":e.isDisabled},{"is-bordered":e.border},{"is-checked":e.isChecked}],attrs:{id:e.id}},[n("span",{staticClass:"el-checkbox__input",class:{"is-disabled":e.isDisabled,"is-checked":e.isChecked,"is-indeterminate":e.indeterminate,"is-focus":e.focus},attrs:{tabindex:!!e.indeterminate&&0,role:!!e.indeterminate&&"checkbox","aria-checked":!!e.indeterminate&&"mixed"}},[n("span",{staticClass:"el-checkbox__inner"}),e.trueLabel||e.falseLabel?n("input",{directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],staticClass:"el-checkbox__original",attrs:{type:"checkbox","aria-hidden":e.indeterminate?"true":"false",name:e.name,disabled:e.isDisabled,"true-value":e.trueLabel,"false-value":e.falseLabel},domProps:{checked:Array.isArray(e.model)?e._i(e.model,null)>-1:e._q(e.model,e.trueLabel)},on:{change:[function(t){var n=e.model,r=t.target,i=r.checked?e.trueLabel:e.falseLabel;if(Array.isArray(n)){var a=e._i(n,null);r.checked?a<0&&(e.model=n.concat([null])):a>-1&&(e.model=n.slice(0,a).concat(n.slice(a+1)))}else e.model=i},e.handleChange],focus:function(t){e.focus=!0},blur:function(t){e.focus=!1}}}):n("input",{directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],staticClass:"el-checkbox__original",attrs:{type:"checkbox","aria-hidden":e.indeterminate?"true":"false",disabled:e.isDisabled,name:e.name},domProps:{value:e.label,checked:Array.isArray(e.model)?e._i(e.model,e.label)>-1:e.model},on:{change:[function(t){var n=e.model,r=t.target,i=!!r.checked;if(Array.isArray(n)){var a=e.label,o=e._i(n,a);r.checked?o<0&&(e.model=n.concat([a])):o>-1&&(e.model=n.slice(0,o).concat(n.slice(o+1)))}else e.model=i},e.handleChange],focus:function(t){e.focus=!0},blur:function(t){e.focus=!1}}})]),e.$slots.default||e.label?n("span",{staticClass:"el-checkbox__label"},[e._t("default"),e.$slots.default?e._e():[e._v(e._s(e.label))]],2):e._e()])};r._withStripped=!0;var i=n(4),a={name:"ElCheckbox",mixins:[n.n(i).a],inject:{elForm:{default:""},elFormItem:{default:""}},componentName:"ElCheckbox",data:function(){return{selfModel:!1,focus:!1,isLimitExceeded:!1}},computed:{model:{get:function(){return this.isGroup?this.store:void 0!==this.value?this.value:this.selfModel},set:function(e){this.isGroup?(this.isLimitExceeded=!1,void 0!==this._checkboxGroup.min&&e.length<this._checkboxGroup.min&&(this.isLimitExceeded=!0),void 0!==this._checkboxGroup.max&&e.length>this._checkboxGroup.max&&(this.isLimitExceeded=!0),!1===this.isLimitExceeded&&this.dispatch("ElCheckboxGroup","input",[e])):(this.$emit("input",e),this.selfModel=e)}},isChecked:function(){return"[object Boolean]"==={}.toString.call(this.model)?this.model:Array.isArray(this.model)?this.model.indexOf(this.label)>-1:null!==this.model&&void 0!==this.model?this.model===this.trueLabel:void 0},isGroup:function(){for(var e=this.$parent;e;){if("ElCheckboxGroup"===e.$options.componentName)return this._checkboxGroup=e,!0;e=e.$parent}return!1},store:function(){return this._checkboxGroup?this._checkboxGroup.value:this.value},isLimitDisabled:function(){var e=this._checkboxGroup,t=e.max,n=e.min;return!(!t&&!n)&&this.model.length>=t&&!this.isChecked||this.model.length<=n&&this.isChecked},isDisabled:function(){return this.isGroup?this._checkboxGroup.disabled||this.disabled||(this.elForm||{}).disabled||this.isLimitDisabled:this.disabled||(this.elForm||{}).disabled},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},checkboxSize:function(){var e=this.size||this._elFormItemSize||(this.$ELEMENT||{}).size;return this.isGroup&&this._checkboxGroup.checkboxGroupSize||e}},props:{value:{},label:{},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:String,trueLabel:[String,Number],falseLabel:[String,Number],id:String,controls:String,border:Boolean,size:String},methods:{addToStore:function(){Array.isArray(this.model)&&-1===this.model.indexOf(this.label)?this.model.push(this.label):this.model=this.trueLabel||!0},handleChange:function(e){var t=this;if(!this.isLimitExceeded){var n=void 0;n=e.target.checked?void 0===this.trueLabel||this.trueLabel:void 0!==this.falseLabel&&this.falseLabel,this.$emit("change",n,e),this.$nextTick(function(){t.isGroup&&t.dispatch("ElCheckboxGroup","change",[t._checkboxGroup.value])})}}},created:function(){this.checked&&this.addToStore()},mounted:function(){this.indeterminate&&this.$el.setAttribute("aria-controls",this.controls)},watch:{value:function(e){this.dispatch("ElFormItem","el.form.change",e)}}},o=n(0),s=Object(o.a)(a,r,[],!1,null,null,null);s.options.__file="packages/checkbox/src/checkbox.vue";var l=s.exports;l.install=function(e){e.component(l.name,l)};t.default=l}})},EKta:function(e,t,n){"use strict";t.byteLength=function(e){var t=c(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,r=c(e),o=r[0],s=r[1],l=new a(function(e,t,n){return 3*(t+n)/4-n}(0,o,s)),u=0,h=s>0?o-4:o;for(n=0;n<h;n+=4)t=i[e.charCodeAt(n)]<<18|i[e.charCodeAt(n+1)]<<12|i[e.charCodeAt(n+2)]<<6|i[e.charCodeAt(n+3)],l[u++]=t>>16&255,l[u++]=t>>8&255,l[u++]=255&t;2===s&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,l[u++]=255&t);1===s&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,l[u++]=t>>8&255,l[u++]=255&t);return l},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,a=[],o=0,s=n-i;o<s;o+=16383)a.push(u(e,o,o+16383>s?s:o+16383));1===i?(t=e[n-1],a.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],a.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return a.join("")};for(var r=[],i=[],a="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=o.length;s<l;++s)r[s]=o[s],i[o.charCodeAt(s)]=s;function c(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function u(e,t,n){for(var i,a,o=[],s=t;s<n;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),o.push(r[(a=i)>>18&63]+r[a>>12&63]+r[a>>6&63]+r[63&a]);return o.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},EqBC:function(e,t,n){"use strict";var r=n("kM2E"),i=n("FeBl"),a=n("7KvD"),o=n("t8x9"),s=n("fJUb");r(r.P+r.R,"Promise",{finally:function(e){var t=o(this,i.Promise||a.Promise),n="function"==typeof e;return this.then(n?function(n){return s(t,e()).then(function(){return n})}:e,n?function(n){return s(t,e()).then(function(){throw n})}:e)}})},EqjI:function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},EuP9:function(e,t,n){"use strict";(function(e){
  25. /*!
  26. * The buffer module from node.js, for the browser.
  27. *
  28. * @author Feross Aboukhadijeh <http://feross.org>
  29. * @license MIT
  30. */
  31. var r=n("EKta"),i=n("ujcs"),a=n("sOR5");function o(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(o()<t)throw new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=l.prototype:(null===e&&(e=new l(t)),e.length=t),e}function l(e,t,n){if(!(l.TYPED_ARRAY_SUPPORT||this instanceof l))return new l(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return h(this,e)}return c(this,e,t,n)}function c(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);l.TYPED_ARRAY_SUPPORT?(e=t).__proto__=l.prototype:e=d(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!l.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|p(t,n),i=(e=s(e,r)).write(t,n);i!==r&&(e=e.slice(0,i));return e}(e,t,n):function(e,t){if(l.isBuffer(t)){var n=0|f(t.length);return 0===(e=s(e,n)).length?e:(t.copy(e,0,0,n),e)}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?s(e,0):d(e,t);if("Buffer"===t.type&&a(t.data))return d(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function h(e,t){if(u(t),e=s(e,t<0?0:0|f(t)),!l.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function d(e,t){var n=t.length<0?0:0|f(t.length);e=s(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function f(e){if(e>=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|e}function p(e,t){if(l.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return H(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return j(e).length;default:if(r)return H(e).length;t=(""+t).toLowerCase(),r=!0}}function A(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function g(e,t,n,r,i){if(0===e.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:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=l.from(t,r)),l.isBuffer(t))return 0===t.length?-1:m(e,t,n,r,i);if("number"==typeof t)return t&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):m(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function m(e,t,n,r,i){var a,o=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;o=2,s/=2,l/=2,n/=2}function c(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){var u=-1;for(a=n;a<s;a++)if(c(e,a)===c(t,-1===u?0:a-u)){if(-1===u&&(u=a),a-u+1===l)return u*o}else-1!==u&&(a-=a-u),u=-1}else for(n+l>s&&(n=s-l),a=n;a>=0;a--){for(var h=!0,d=0;d<l;d++)if(c(e,a+d)!==c(t,d)){h=!1;break}if(h)return a}return-1}function v(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var a=t.length;if(a%2!=0)throw new TypeError("Invalid hex string");r>a/2&&(r=a/2);for(var o=0;o<r;++o){var s=parseInt(t.substr(2*o,2),16);if(isNaN(s))return o;e[n+o]=s}return o}function y(e,t,n,r){return Q(H(t,e.length-n),e,n,r)}function b(e,t,n,r){return Q(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function w(e,t,n,r){return b(e,t,n,r)}function x(e,t,n,r){return Q(j(t),e,n,r)}function _(e,t,n,r){return Q(function(e,t){for(var n,r,i,a=[],o=0;o<e.length&&!((t-=2)<0);++o)n=e.charCodeAt(o),r=n>>8,i=n%256,a.push(i),a.push(r);return a}(t,e.length-n),e,n,r)}function C(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function S(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var a,o,s,l,c=e[i],u=null,h=c>239?4:c>223?3:c>191?2:1;if(i+h<=n)switch(h){case 1:c<128&&(u=c);break;case 2:128==(192&(a=e[i+1]))&&(l=(31&c)<<6|63&a)>127&&(u=l);break;case 3:a=e[i+1],o=e[i+2],128==(192&a)&&128==(192&o)&&(l=(15&c)<<12|(63&a)<<6|63&o)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:a=e[i+1],o=e[i+2],s=e[i+3],128==(192&a)&&128==(192&o)&&128==(192&s)&&(l=(15&c)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&l<1114112&&(u=l)}null===u?(u=65533,h=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),i+=h}return function(e){var t=e.length;if(t<=k)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=k));return n}(r)}t.Buffer=l,t.SlowBuffer=function(e){+e!=e&&(e=0);return l.alloc(+e)},t.INSPECT_MAX_BYTES=50,l.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=o(),l.poolSize=8192,l._augment=function(e){return e.__proto__=l.prototype,e},l.from=function(e,t,n){return c(null,e,t,n)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(e,t,n){return function(e,t,n,r){return u(t),t<=0?s(e,t):void 0!==n?"string"==typeof r?s(e,t).fill(n,r):s(e,t).fill(n):s(e,t)}(null,e,t,n)},l.allocUnsafe=function(e){return h(null,e)},l.allocUnsafeSlow=function(e){return h(null,e)},l.isBuffer=function(e){return!(null==e||!e._isBuffer)},l.compare=function(e,t){if(!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,a=Math.min(n,r);i<a;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,t){if(!a(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=l.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var o=e[n];if(!l.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(r,i),i+=o.length}return r},l.byteLength=p,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)A(this,t,t+1);return this},l.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)A(this,t,t+3),A(this,t+1,t+2);return this},l.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)A(this,t,t+7),A(this,t+1,t+6),A(this,t+2,t+5),A(this,t+3,t+4);return this},l.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?S(this,0,e):function(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return T(this,t,n);case"utf8":case"utf-8":return S(this,t,n);case"ascii":return B(this,t,n);case"latin1":case"binary":return E(this,t,n);case"base64":return C(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}.apply(this,arguments)},l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},l.prototype.compare=function(e,t,n,r,i){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var a=i-r,o=n-t,s=Math.min(a,o),c=this.slice(r,i),u=e.slice(t,n),h=0;h<s;++h)if(c[h]!==u[h]){a=c[h],o=u[h];break}return a<o?-1:o<a?1:0},l.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},l.prototype.indexOf=function(e,t,n){return g(this,e,t,n,!0)},l.prototype.lastIndexOf=function(e,t,n){return g(this,e,t,n,!1)},l.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var a=!1;;)switch(r){case"hex":return v(this,e,t,n);case"utf8":case"utf-8":return y(this,e,t,n);case"ascii":return b(this,e,t,n);case"latin1":case"binary":return w(this,e,t,n);case"base64":return x(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _(this,e,t,n);default:if(a)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),a=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var k=4096;function B(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function E(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function T(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",a=t;a<n;++a)i+=U(e[a]);return i}function I(e,t,n){for(var r=e.slice(t,n),i="",a=0;a<r.length;a+=2)i+=String.fromCharCode(r[a]+256*r[a+1]);return i}function M(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function F(e,t,n,r,i,a){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<a)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function D(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,a=Math.min(e.length-n,2);i<a;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function P(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,a=Math.min(e.length-n,4);i<a;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function O(e,t,n,r,i,a){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function L(e,t,n,r,a){return a||O(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function R(e,t,n,r,a){return a||O(e,0,n,8),i.write(e,t,n,r,52,8),n+8}l.prototype.slice=function(e,t){var n,r=this.length;if(e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),l.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=l.prototype;else{var i=t-e;n=new l(i,void 0);for(var a=0;a<i;++a)n[a]=this[a+e]}return n},l.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||M(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return r},l.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||M(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},l.prototype.readUInt8=function(e,t){return t||M(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,t){return t||M(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,t){return t||M(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,t){return t||M(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUInt32BE=function(e,t){return t||M(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||M(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},l.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||M(e,t,this.length);for(var r=t,i=1,a=this[e+--r];r>0&&(i*=256);)a+=this[e+--r]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},l.prototype.readInt8=function(e,t){return t||M(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){t||M(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){t||M(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return t||M(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return t||M(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return t||M(e,4,this.length),i.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return t||M(e,4,this.length),i.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return t||M(e,8,this.length),i.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return t||M(e,8,this.length),i.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||F(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,a=0;for(this[t]=255&e;++a<n&&(i*=256);)this[t+a]=e/i&255;return t+n},l.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||F(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,a=1;for(this[t+i]=255&e;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+n},l.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,1,255,0),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):D(this,e,t,!0),t+2},l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):D(this,e,t,!1),t+2},l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):P(this,e,t,!0),t+4},l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):P(this,e,t,!1),t+4},l.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);F(this,e,t,n,i-1,-i)}var a=0,o=1,s=0;for(this[t]=255&e;++a<n&&(o*=256);)e<0&&0===s&&0!==this[t+a-1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},l.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);F(this,e,t,n,i-1,-i)}var a=n-1,o=1,s=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,1,127,-128),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):D(this,e,t,!0),t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):D(this,e,t,!1),t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):P(this,e,t,!0),t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):P(this,e,t,!1),t+4},l.prototype.writeFloatLE=function(e,t,n){return L(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return L(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return R(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return R(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i,a=r-n;if(this===e&&n<t&&t<r)for(i=a-1;i>=0;--i)e[i+t]=this[i+n];else if(a<1e3||!l.TYPED_ARRAY_SUPPORT)for(i=0;i<a;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+a),t);return a},l.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!l.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var a;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(a=t;a<n;++a)this[a]=e;else{var o=l.isBuffer(e)?e:H(new l(e,r).toString()),s=o.length;for(a=0;a<n-t;++a)this[a+t]=o[a%s]}return this};var N=/[^+\/0-9A-Za-z-_]/g;function U(e){return e<16?"0"+e.toString(16):e.toString(16)}function H(e,t){var n;t=t||1/0;for(var r=e.length,i=null,a=[],o=0;o<r;++o){if((n=e.charCodeAt(o))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function j(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(N,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function Q(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}}).call(t,n("DuR2"))},FeBl:function(e,t){var n=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},FtD3:function(e,t,n){"use strict";var r=n("t8qj");e.exports=function(e,t,n,i,a){var o=new Error(e);return r(o,t,n,i,a)}},"G5/o":function(e,t,n){n("uqUo")("getOwnPropertyNames",function(){return n("Rrel").f})},GHBc:function(e,t,n){"use strict";var r=n("cGG2");e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=i(window.location.href),function(t){var n=r.isString(t)?i(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},GegP:function(e,t){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=119)}({0:function(e,t,n){"use strict";function r(e,t,n,r,i,a,o,s){var l,c="function"==typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),a&&(c._scopeId="data-v-"+a),o?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},c._ssrRegister=l):i&&(l=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,l):[l]}return{exports:e,options:c}}n.d(t,"a",function(){return r})},119:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-progress",class:["el-progress--"+e.type,e.status?"is-"+e.status:"",{"el-progress--without-text":!e.showText,"el-progress--text-inside":e.textInside}],attrs:{role:"progressbar","aria-valuenow":e.percentage,"aria-valuemin":"0","aria-valuemax":"100"}},["line"===e.type?n("div",{staticClass:"el-progress-bar"},[n("div",{staticClass:"el-progress-bar__outer",style:{height:e.strokeWidth+"px"}},[n("div",{staticClass:"el-progress-bar__inner",style:e.barStyle},[e.showText&&e.textInside?n("div",{staticClass:"el-progress-bar__innerText"},[e._v(e._s(e.content))]):e._e()])])]):n("div",{staticClass:"el-progress-circle",style:{height:e.width+"px",width:e.width+"px"}},[n("svg",{attrs:{viewBox:"0 0 100 100"}},[n("path",{staticClass:"el-progress-circle__track",style:e.trailPathStyle,attrs:{d:e.trackPath,stroke:"#e5e9f2","stroke-width":e.relativeStrokeWidth,fill:"none"}}),n("path",{staticClass:"el-progress-circle__path",style:e.circlePathStyle,attrs:{d:e.trackPath,stroke:e.stroke,fill:"none","stroke-linecap":e.strokeLinecap,"stroke-width":e.percentage?e.relativeStrokeWidth:0}})])]),e.showText&&!e.textInside?n("div",{staticClass:"el-progress__text",style:{fontSize:e.progressTextSize+"px"}},[e.status?n("i",{class:e.iconClass}):[e._v(e._s(e.content))]],2):e._e()])};r._withStripped=!0;var i={name:"ElProgress",props:{type:{type:String,default:"line",validator:function(e){return["line","circle","dashboard"].indexOf(e)>-1}},percentage:{type:Number,default:0,required:!0,validator:function(e){return e>=0&&e<=100}},status:{type:String,validator:function(e){return["success","exception","warning"].indexOf(e)>-1}},strokeWidth:{type:Number,default:6},strokeLinecap:{type:String,default:"round"},textInside:{type:Boolean,default:!1},width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:[String,Array,Function],default:""},format:Function},computed:{barStyle:function(){var e={};return e.width=this.percentage+"%",e.backgroundColor=this.getCurrentColor(this.percentage),e},relativeStrokeWidth:function(){return(this.strokeWidth/this.width*100).toFixed(1)},radius:function(){return"circle"===this.type||"dashboard"===this.type?parseInt(50-parseFloat(this.relativeStrokeWidth)/2,10):0},trackPath:function(){var e=this.radius,t="dashboard"===this.type;return"\n M 50 50\n m 0 "+(t?"":"-")+e+"\n a "+e+" "+e+" 0 1 1 0 "+(t?"-":"")+2*e+"\n a "+e+" "+e+" 0 1 1 0 "+(t?"":"-")+2*e+"\n "},perimeter:function(){return 2*Math.PI*this.radius},rate:function(){return"dashboard"===this.type?.75:1},strokeDashoffset:function(){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 e=void 0;if(this.color)e=this.getCurrentColor(this.percentage);else switch(this.status){case"success":e="#13ce66";break;case"exception":e="#ff4949";break;case"warning":e="#e6a23c";break;default:e="#20a0ff"}return e},iconClass:function(){return"warning"===this.status?"el-icon-warning":"line"===this.type?"success"===this.status?"el-icon-circle-check":"el-icon-circle-close":"success"===this.status?"el-icon-check":"el-icon-close"},progressTextSize:function(){return"line"===this.type?12+.4*this.strokeWidth:.111111*this.width+2},content:function(){return"function"==typeof this.format?this.format(this.percentage)||"":this.percentage+"%"}},methods:{getCurrentColor:function(e){return"function"==typeof this.color?this.color(e):"string"==typeof this.color?this.color:this.getLevelColor(e)},getLevelColor:function(e){for(var t=this.getColorArray().sort(function(e,t){return e.percentage-t.percentage}),n=0;n<t.length;n++)if(t[n].percentage>e)return t[n].color;return t[t.length-1].color},getColorArray:function(){var e=this.color,t=100/e.length;return e.map(function(e,n){return"string"==typeof e?{color:e,percentage:(n+1)*t}:e})}}},a=n(0),o=Object(a.a)(i,r,[],!1,null,null,null);o.options.__file="packages/progress/src/progress.vue";var s=o.exports;s.install=function(e){e.component(s.name,s)};t.default=s}})},GybJ:function(e,t,n){var r="function"==typeof Map&&Map.prototype,i=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,a=r&&i&&"function"==typeof i.get?i.get:null,o=r&&Map.prototype.forEach,s="function"==typeof Set&&Set.prototype,l=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,c=s&&l&&"function"==typeof l.get?l.get:null,u=s&&Set.prototype.forEach,h="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,d="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,f=Boolean.prototype.valueOf,p=Object.prototype.toString,A=Function.prototype.toString,g=String.prototype.match,m="function"==typeof BigInt?BigInt.prototype.valueOf:null,v=Object.getOwnPropertySymbols,y="function"==typeof Symbol?Symbol.prototype.toString:null,b=Object.prototype.propertyIsEnumerable,w=n(5).custom,x=w&&k(w)?w:null;function _(e,t,n){var r="double"===(n.quoteStyle||t)?'"':"'";return r+e+r}function C(e){return String(e).replace(/"/g,"&quot;")}function S(e){return"[object Array]"===T(e)}function k(e){return"[object Symbol]"===T(e)}e.exports=function e(t,n,r,i){var s=n||{};if(E(s,"quoteStyle")&&"single"!==s.quoteStyle&&"double"!==s.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(E(s,"maxStringLength")&&("number"==typeof s.maxStringLength?s.maxStringLength<0&&s.maxStringLength!==1/0:null!==s.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var l=!E(s,"customInspect")||s.customInspect;if("boolean"!=typeof l)throw new TypeError('option "customInspect", if provided, must be `true` or `false`');if(E(s,"indent")&&null!==s.indent&&"\t"!==s.indent&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw new TypeError('options "indent" must be "\\t", an integer > 0, or `null`');if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return function e(t,n){if(t.length>n.maxStringLength){var r=t.length-n.maxStringLength,i="... "+r+" more character"+(r>1?"s":"");return e(t.slice(0,n.maxStringLength),n)+i}var a=t.replace(/(['\\])/g,"\\$1").replace(/[\x00-\x1f]/g,M);return _(a,"single",n)}(t,s);if("number"==typeof t)return 0===t?1/0/t>0?"0":"-0":String(t);if("bigint"==typeof t)return String(t)+"n";var p=void 0===s.depth?5:s.depth;if(void 0===r&&(r=0),r>=p&&p>0&&"object"==typeof t)return S(t)?"[Array]":"[Object]";var v=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=Array(e.indent+1).join(" ")}return{base:n,prev:Array(t+1).join(n)}}(s,r);if(void 0===i)i=[];else if(I(i,t)>=0)return"[Circular]";function b(t,n,a){if(n&&(i=i.slice()).push(n),a){var o={depth:s.depth};return E(s,"quoteStyle")&&(o.quoteStyle=s.quoteStyle),e(t,o,r+1,i)}return e(t,s,r+1,i)}if("function"==typeof t){var w=function(e){if(e.name)return e.name;var t=g.call(A.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),B=L(t,b);return"[Function"+(w?": "+w:" (anonymous)")+"]"+(B.length>0?" { "+B.join(", ")+" }":"")}if(k(t)){var R=y.call(t);return"object"==typeof t?F(R):R}if(function(e){if(!e||"object"!=typeof e)return!1;if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"==typeof e.nodeName&&"function"==typeof e.getAttribute}(t)){for(var N="<"+String(t.nodeName).toLowerCase(),U=t.attributes||[],H=0;H<U.length;H++)N+=" "+U[H].name+"="+_(C(U[H].value),"double",s);return N+=">",t.childNodes&&t.childNodes.length&&(N+="..."),N+="</"+String(t.nodeName).toLowerCase()+">"}if(S(t)){if(0===t.length)return"[]";var j=L(t,b);return v&&!function(e){for(var t=0;t<e.length;t++)if(I(e[t],"\n")>=0)return!1;return!0}(j)?"["+O(j,v)+"]":"[ "+j.join(", ")+" ]"}if(function(e){return"[object Error]"===T(e)}(t)){var Q=L(t,b);return 0===Q.length?"["+String(t)+"]":"{ ["+String(t)+"] "+Q.join(", ")+" }"}if("object"==typeof t&&l){if(x&&"function"==typeof t[x])return t[x]();if("function"==typeof t.inspect)return t.inspect()}if(function(e){if(!a||!e||"object"!=typeof e)return!1;try{a.call(e);try{c.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var z=[];return o.call(t,function(e,n){z.push(b(n,t,!0)+" => "+b(e,t))}),P("Map",a.call(t),z,v)}if(function(e){if(!c||!e||"object"!=typeof e)return!1;try{c.call(e);try{a.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var V=[];return u.call(t,function(e){V.push(b(e,t))}),P("Set",c.call(t),V,v)}if(function(e){if(!h||!e||"object"!=typeof e)return!1;try{h.call(e,h);try{d.call(e,d)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return D("WeakMap");if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{d.call(e,d);try{h.call(e,h)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return D("WeakSet");if(function(e){return"[object Number]"===T(e)}(t))return F(b(Number(t)));if(function(e){return"[object BigInt]"===T(e)}(t))return F(b(m.call(t)));if(function(e){return"[object Boolean]"===T(e)}(t))return F(f.call(t));if(function(e){return"[object String]"===T(e)}(t))return F(b(String(t)));if(!function(e){return"[object Date]"===T(e)}(t)&&!function(e){return"[object RegExp]"===T(e)}(t)){var G=L(t,b);return 0===G.length?"{}":v?"{"+O(G,v)+"}":"{ "+G.join(", ")+" }"}return String(t)};var B=Object.prototype.hasOwnProperty||function(e){return e in this};function E(e,t){return B.call(e,t)}function T(e){return p.call(e)}function I(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function M(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+t.toString(16).toUpperCase()}function F(e){return"Object("+e+")"}function D(e){return e+" { ? }"}function P(e,t,n,r){return e+" ("+t+") {"+(r?O(n,r):n.join(", "))+"}"}function O(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+e.join(","+n)+"\n"+t.prev}function L(e,t){var n=S(e),r=[];if(n){r.length=e.length;for(var i=0;i<e.length;i++)r[i]=E(e,i)?t(e[i],e):""}for(var a in e)E(e,a)&&(n&&String(Number(a))===a&&a<e.length||(/[^\w$]/.test(a)?r.push(t(a,e)+": "+t(e[a],e)):r.push(a+": "+t(e[a],e))));if("function"==typeof v)for(var o=v(e),s=0;s<o.length;s++)b.call(e,o[s])&&r.push("["+t(o[s])+"]: "+t(e[o[s]],e));return r}},H8dH:function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!e||!t)throw new Error("instance & callback is required");var i=!1,a=function(){i||(i=!0,t&&t.apply(null,arguments))};r?e.$once("after-leave",a):e.$on("after-leave",a),setTimeout(function(){a()},n+100)}},HJMx:function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=76)}({0:function(e,t,n){"use strict";function r(e,t,n,r,i,a,o,s){var l,c="function"==typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),a&&(c._scopeId="data-v-"+a),o?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},c._ssrRegister=l):i&&(l=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,l):[l]}return{exports:e,options:c}}n.d(t,"a",function(){return r})},11:function(e,t){e.exports=n("aW5l")},21:function(e,t){e.exports=n("E/in")},4:function(e,t){e.exports=n("fPll")},76:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:["textarea"===e.type?"el-textarea":"el-input",e.inputSize?"el-input--"+e.inputSize:"",{"is-disabled":e.inputDisabled,"is-exceed":e.inputExceed,"el-input-group":e.$slots.prepend||e.$slots.append,"el-input-group--append":e.$slots.append,"el-input-group--prepend":e.$slots.prepend,"el-input--prefix":e.$slots.prefix||e.prefixIcon,"el-input--suffix":e.$slots.suffix||e.suffixIcon||e.clearable||e.showPassword}],on:{mouseenter:function(t){e.hovering=!0},mouseleave:function(t){e.hovering=!1}}},["textarea"!==e.type?[e.$slots.prepend?n("div",{staticClass:"el-input-group__prepend"},[e._t("prepend")],2):e._e(),"textarea"!==e.type?n("input",e._b({ref:"input",staticClass:"el-input__inner",attrs:{tabindex:e.tabindex,type:e.showPassword?e.passwordVisible?"text":"password":e.type,disabled:e.inputDisabled,readonly:e.readonly,autocomplete:e.autoComplete||e.autocomplete,"aria-label":e.label},on:{compositionstart:e.handleCompositionStart,compositionupdate:e.handleCompositionUpdate,compositionend:e.handleCompositionEnd,input:e.handleInput,focus:e.handleFocus,blur:e.handleBlur,change:e.handleChange}},"input",e.$attrs,!1)):e._e(),e.$slots.prefix||e.prefixIcon?n("span",{staticClass:"el-input__prefix"},[e._t("prefix"),e.prefixIcon?n("i",{staticClass:"el-input__icon",class:e.prefixIcon}):e._e()],2):e._e(),e.getSuffixVisible()?n("span",{staticClass:"el-input__suffix"},[n("span",{staticClass:"el-input__suffix-inner"},[e.showClear&&e.showPwdVisible&&e.isWordLimitVisible?e._e():[e._t("suffix"),e.suffixIcon?n("i",{staticClass:"el-input__icon",class:e.suffixIcon}):e._e()],e.showClear?n("i",{staticClass:"el-input__icon el-icon-circle-close el-input__clear",on:{mousedown:function(e){e.preventDefault()},click:e.clear}}):e._e(),e.showPwdVisible?n("i",{staticClass:"el-input__icon el-icon-view el-input__clear",on:{click:e.handlePasswordVisible}}):e._e(),e.isWordLimitVisible?n("span",{staticClass:"el-input__count"},[n("span",{staticClass:"el-input__count-inner"},[e._v("\n "+e._s(e.textLength)+"/"+e._s(e.upperLimit)+"\n ")])]):e._e()],2),e.validateState?n("i",{staticClass:"el-input__icon",class:["el-input__validateIcon",e.validateIcon]}):e._e()]):e._e(),e.$slots.append?n("div",{staticClass:"el-input-group__append"},[e._t("append")],2):e._e()]:n("textarea",e._b({ref:"textarea",staticClass:"el-textarea__inner",style:e.textareaStyle,attrs:{tabindex:e.tabindex,disabled:e.inputDisabled,readonly:e.readonly,autocomplete:e.autoComplete||e.autocomplete,"aria-label":e.label},on:{compositionstart:e.handleCompositionStart,compositionupdate:e.handleCompositionUpdate,compositionend:e.handleCompositionEnd,input:e.handleInput,focus:e.handleFocus,blur:e.handleBlur,change:e.handleChange}},"textarea",e.$attrs,!1)),e.isWordLimitVisible&&"textarea"===e.type?n("span",{staticClass:"el-input__count"},[e._v(e._s(e.textLength)+"/"+e._s(e.upperLimit))]):e._e()],2)};r._withStripped=!0;var i=n(4),a=n.n(i),o=n(11),s=n.n(o),l=void 0,c="\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important\n",u=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function h(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;l||(l=document.createElement("textarea"),document.body.appendChild(l));var r=function(e){var t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),r=parseFloat(t.getPropertyValue("padding-bottom"))+parseFloat(t.getPropertyValue("padding-top")),i=parseFloat(t.getPropertyValue("border-bottom-width"))+parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:u.map(function(e){return e+":"+t.getPropertyValue(e)}).join(";"),paddingSize:r,borderSize:i,boxSizing:n}}(e),i=r.paddingSize,a=r.borderSize,o=r.boxSizing,s=r.contextStyle;l.setAttribute("style",s+";"+c),l.value=e.value||e.placeholder||"";var h=l.scrollHeight,d={};"border-box"===o?h+=a:"content-box"===o&&(h-=i),l.value="";var f=l.scrollHeight-i;if(null!==t){var p=f*t;"border-box"===o&&(p=p+i+a),h=Math.max(p,h),d.minHeight=p+"px"}if(null!==n){var A=f*n;"border-box"===o&&(A=A+i+a),h=Math.min(A,h)}return d.height=h+"px",l.parentNode&&l.parentNode.removeChild(l),l=null,d}var d=n(9),f=n.n(d),p=n(21),A={name:"ElInput",componentName:"ElInput",mixins:[a.a,s.a],inheritAttrs:!1,inject:{elForm:{default:""},elFormItem:{default:""}},data:function(){return{textareaCalcStyle:{},hovering:!1,focused:!1,isComposing:!1,passwordVisible:!1}},props:{value:[String,Number],size:String,resize:String,form:String,disabled:Boolean,readonly:Boolean,type:{type:String,default:"text"},autosize:{type:[Boolean,Object],default:!1},autocomplete:{type:String,default:"off"},autoComplete:{type:String,validator:function(e){return!0}},validateEvent:{type:Boolean,default:!0},suffixIcon:String,prefixIcon:String,label:String,clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},tabindex:String},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},validateState:function(){return this.elFormItem?this.elFormItem.validateState:""},needStatusIcon:function(){return!!this.elForm&&this.elForm.statusIcon},validateIcon:function(){return{validating:"el-icon-loading",success:"el-icon-circle-check",error:"el-icon-circle-close"}[this.validateState]},textareaStyle:function(){return f()({},this.textareaCalcStyle,{resize:this.resize})},inputSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},inputDisabled:function(){return this.disabled||(this.elForm||{}).disabled},nativeInputValue:function(){return null===this.value||void 0===this.value?"":String(this.value)},showClear:function(){return this.clearable&&!this.inputDisabled&&!this.readonly&&this.nativeInputValue&&(this.focused||this.hovering)},showPwdVisible:function(){return this.showPassword&&!this.inputDisabled&&!this.readonly&&(!!this.nativeInputValue||this.focused)},isWordLimitVisible:function(){return this.showWordLimit&&this.$attrs.maxlength&&("text"===this.type||"textarea"===this.type)&&!this.inputDisabled&&!this.readonly&&!this.showPassword},upperLimit:function(){return this.$attrs.maxlength},textLength:function(){return"number"==typeof this.value?String(this.value).length:(this.value||"").length},inputExceed:function(){return this.isWordLimitVisible&&this.textLength>this.upperLimit}},watch:{value:function(e){this.$nextTick(this.resizeTextarea),this.validateEvent&&this.dispatch("ElFormItem","el.form.change",[e])},nativeInputValue:function(){this.setNativeInputValue()},type:function(){var e=this;this.$nextTick(function(){e.setNativeInputValue(),e.resizeTextarea(),e.updateIconOffset()})}},methods:{focus:function(){this.getInput().focus()},blur:function(){this.getInput().blur()},getMigratingConfig:function(){return{props:{icon:"icon is removed, use suffix-icon / prefix-icon instead.","on-icon-click":"on-icon-click is removed."},events:{click:"click is removed."}}},handleBlur:function(e){this.focused=!1,this.$emit("blur",e),this.validateEvent&&this.dispatch("ElFormItem","el.form.blur",[this.value])},select:function(){this.getInput().select()},resizeTextarea:function(){if(!this.$isServer){var e=this.autosize;if("textarea"===this.type)if(e){var t=e.minRows,n=e.maxRows;this.textareaCalcStyle=h(this.$refs.textarea,t,n)}else this.textareaCalcStyle={minHeight:h(this.$refs.textarea).minHeight}}},setNativeInputValue:function(){var e=this.getInput();e&&e.value!==this.nativeInputValue&&(e.value=this.nativeInputValue)},handleFocus:function(e){this.focused=!0,this.$emit("focus",e)},handleCompositionStart:function(){this.isComposing=!0},handleCompositionUpdate:function(e){var t=e.target.value,n=t[t.length-1]||"";this.isComposing=!Object(p.isKorean)(n)},handleCompositionEnd:function(e){this.isComposing&&(this.isComposing=!1,this.handleInput(e))},handleInput:function(e){this.isComposing||e.target.value!==this.nativeInputValue&&(this.$emit("input",e.target.value),this.$nextTick(this.setNativeInputValue))},handleChange:function(e){this.$emit("change",e.target.value)},calcIconOffset:function(e){var t=[].slice.call(this.$el.querySelectorAll(".el-input__"+e)||[]);if(t.length){for(var n=null,r=0;r<t.length;r++)if(t[r].parentNode===this.$el){n=t[r];break}if(n){var i={suffix:"append",prefix:"prepend"}[e];this.$slots[i]?n.style.transform="translateX("+("suffix"===e?"-":"")+this.$el.querySelector(".el-input-group__"+i).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(){this.passwordVisible=!this.passwordVisible,this.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)}},g=n(0),m=Object(g.a)(A,r,[],!1,null,null,null);m.options.__file="packages/input/src/input.vue";var v=m.exports;v.install=function(e){e.component(v.name,v)};t.default=v},9:function(e,t){e.exports=n("jmaC")}})},HzcN:function(e,t,n){var r=n("uY1a"),i=n("ON3O");e.exports={throttle:r,debounce:i}},"I/+Z":function(e,t){e.exports=function(e,t){var n,r=null;try{n=JSON.parse(e,t)}catch(e){r=e}return[r,n]}},ISYW:function(e,t,n){"use strict";t.__esModule=!0;var r,i=n("7+uW"),a=(r=i)&&r.__esModule?r:{default:r},o=n("2kvA");var s=[],l="@@clickoutsideContext",c=void 0,u=0;function h(e,t,n){return function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!(n&&n.context&&r.target&&i.target)||e.contains(r.target)||e.contains(i.target)||e===r.target||n.context.popperElm&&(n.context.popperElm.contains(r.target)||n.context.popperElm.contains(i.target))||(t.expression&&e[l].methodName&&n.context[e[l].methodName]?n.context[e[l].methodName]():e[l].bindingFn&&e[l].bindingFn())}}!a.default.prototype.$isServer&&(0,o.on)(document,"mousedown",function(e){return c=e}),!a.default.prototype.$isServer&&(0,o.on)(document,"mouseup",function(e){s.forEach(function(t){return t[l].documentHandler(e,c)})}),t.default={bind:function(e,t,n){s.push(e);var r=u++;e[l]={id:r,documentHandler:h(e,t,n),methodName:t.expression,bindingFn:t.value}},update:function(e,t,n){e[l].documentHandler=h(e,t,n),e[l].methodName=t.expression,e[l].bindingFn=t.value},unbind:function(e){for(var t=s.length,n=0;n<t;n++)if(s[n][l].id===e[l].id){s.splice(n,1);break}delete e[l]}}},Ibhu:function(e,t,n){var r=n("D2L2"),i=n("TcQ7"),a=n("vFc/")(!1),o=n("ax3d")("IE_PROTO");e.exports=function(e,t){var n,s=i(e),l=0,c=[];for(n in s)n!=o&&r(s,n)&&c.push(n);for(;t.length>l;)r(s,n=t[l++])&&(~a(c,n)||c.push(n));return c}},IinW:function(e,t,n){
  32. /*!
  33. * Viewer.js v1.10.5
  34. * https://fengyuanchen.github.io/viewerjs
  35. *
  36. * Copyright 2015-present Chen Fengyuan
  37. * Released under the MIT license
  38. *
  39. * Date: 2022-04-05T08:21:02.491Z
  40. */
  41. var r;r=function(){"use strict";function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function t(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?e(Object(r),!0).forEach(function(e){i(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):e(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function n(e){"@babel/helpers - typeof";return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a={backdrop:!0,button:!0,navbar:!0,title:!0,toolbar:!0,className:"",container:"body",filter:null,fullscreen:!0,inheritedAttributes:["crossOrigin","decoding","isMap","loading","referrerPolicy","sizes","srcset","useMap"],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},o="undefined"!=typeof window&&void 0!==window.document,s=o?window:{},l=!(!o||!s.document.documentElement)&&"ontouchstart"in s.document.documentElement,c=!!o&&"PointerEvent"in s,u="".concat("viewer","-active"),h="".concat("viewer","-close"),d="".concat("viewer","-fade"),f="".concat("viewer","-fixed"),p="".concat("viewer","-fullscreen"),A="".concat("viewer","-fullscreen-exit"),g="".concat("viewer","-hide"),m="".concat("viewer","-hide-md-down"),v="".concat("viewer","-hide-sm-down"),y="".concat("viewer","-hide-xs-down"),b="".concat("viewer","-in"),w="".concat("viewer","-invisible"),x="".concat("viewer","-loading"),_="".concat("viewer","-move"),C="".concat("viewer","-open"),S="".concat("viewer","-show"),k="".concat("viewer","-transition"),B=c?"pointerdown":l?"touchstart":"mousedown",E=c?"pointermove":l?"touchmove":"mousemove",T=c?"pointerup pointercancel":l?"touchend touchcancel":"mouseup",I="".concat("viewer","Action"),M=/\s\s*/,F=["zoom-in","zoom-out","one-to-one","reset","prev","play","next","rotate-left","rotate-right","flip-horizontal","flip-vertical"];function D(e){return"string"==typeof e}var P=Number.isNaN||s.isNaN;function O(e){return"number"==typeof e&&!P(e)}function L(e){return void 0===e}function R(e){return"object"===n(e)&&null!==e}var N=Object.prototype.hasOwnProperty;function U(e){if(!R(e))return!1;try{var t=e.constructor,n=t.prototype;return t&&n&&N.call(n,"isPrototypeOf")}catch(e){return!1}}function H(e){return"function"==typeof e}function j(e,t){if(e&&H(t))if(Array.isArray(e)||O(e.length)){var n,r=e.length;for(n=0;n<r&&!1!==t.call(e,e[n],n,e);n+=1);}else R(e)&&Object.keys(e).forEach(function(n){t.call(e,e[n],n,e)});return e}var Q=Object.assign||function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return R(e)&&n.length>0&&n.forEach(function(t){R(t)&&Object.keys(t).forEach(function(n){e[n]=t[n]})}),e},z=/^(?:width|height|left|top|marginLeft|marginTop)$/;function V(e,t){var n=e.style;j(t,function(e,t){z.test(t)&&O(e)&&(e+="px"),n[t]=e})}function G(e,t){return!(!e||!t)&&(e.classList?e.classList.contains(t):e.className.indexOf(t)>-1)}function $(e,t){if(e&&t)if(O(e.length))j(e,function(e){$(e,t)});else if(e.classList)e.classList.add(t);else{var n=e.className.trim();n?n.indexOf(t)<0&&(e.className="".concat(n," ").concat(t)):e.className=t}}function q(e,t){e&&t&&(O(e.length)?j(e,function(e){q(e,t)}):e.classList?e.classList.remove(t):e.className.indexOf(t)>=0&&(e.className=e.className.replace(t,"")))}function W(e,t,n){t&&(O(e.length)?j(e,function(e){W(e,t,n)}):n?$(e,t):q(e,t))}var K=/([a-z\d])([A-Z])/g;function Y(e){return e.replace(K,"$1-$2").toLowerCase()}function X(e,t){return R(e[t])?e[t]:e.dataset?e.dataset[t]:e.getAttribute("data-".concat(Y(t)))}function J(e,t,n){R(n)?e[t]=n:e.dataset?e.dataset[t]=n:e.setAttribute("data-".concat(Y(t)),n)}var Z=function(){var e=!1;if(o){var t=!1,n=function(){},r=Object.defineProperty({},"once",{get:function(){return e=!0,t},set:function(e){t=e}});s.addEventListener("test",n,r),s.removeEventListener("test",n,r)}return e}();function ee(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=n;t.trim().split(M).forEach(function(t){if(!Z){var a=e.listeners;a&&a[t]&&a[t][n]&&(i=a[t][n],delete a[t][n],0===Object.keys(a[t]).length&&delete a[t],0===Object.keys(a).length&&delete e.listeners)}e.removeEventListener(t,i,r)})}function te(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=n;t.trim().split(M).forEach(function(t){if(r.once&&!Z){var a=e.listeners,o=void 0===a?{}:a;i=function(){delete o[t][n],e.removeEventListener(t,i,r);for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];n.apply(e,s)},o[t]||(o[t]={}),o[t][n]&&e.removeEventListener(t,o[t][n],r),o[t][n]=i,e.listeners=o}e.addEventListener(t,i,r)})}function ne(e,n,r,i){var a;return H(Event)&&H(CustomEvent)?a=new CustomEvent(n,t({bubbles:!0,cancelable:!0,detail:r},i)):(a=document.createEvent("CustomEvent")).initCustomEvent(n,!0,!0,r),e.dispatchEvent(a)}function re(e){var t=e.rotate,n=e.scaleX,r=e.scaleY,i=e.translateX,a=e.translateY,o=[];O(i)&&0!==i&&o.push("translateX(".concat(i,"px)")),O(a)&&0!==a&&o.push("translateY(".concat(a,"px)")),O(t)&&0!==t&&o.push("rotate(".concat(t,"deg)")),O(n)&&1!==n&&o.push("scaleX(".concat(n,")")),O(r)&&1!==r&&o.push("scaleY(".concat(r,")"));var s=o.length?o.join(" "):"none";return{WebkitTransform:s,msTransform:s,transform:s}}var ie=s.navigator&&/(Macintosh|iPhone|iPod|iPad).*AppleWebKit/i.test(s.navigator.userAgent);function ae(e,t,n){var r=document.createElement("img");if(e.naturalWidth&&!ie)return n(e.naturalWidth,e.naturalHeight),r;var i=document.body||document.documentElement;return r.onload=function(){n(r.width,r.height),ie||i.removeChild(r)},j(t.inheritedAttributes,function(t){var n=e.getAttribute(t);null!==n&&r.setAttribute(t,n)}),r.src=e.src,ie||(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 oe(e){switch(e){case 2:return y;case 3:return v;case 4:return m;default:return""}}function se(e,n){var r=e.pageX,i=e.pageY,a={endX:r,endY:i};return n?a:t({timeStamp:Date.now(),startX:r,startY:i},a)}var le,ce={render:function(){this.initContainer(),this.initViewer(),this.initList(),this.renderViewer()},initBody:function(){var e=this.element.ownerDocument,t=e.body||e.documentElement;this.body=t,this.scrollbarWidth=window.innerWidth-e.documentElement.clientWidth,this.initialBodyPaddingRight=t.style.paddingRight,this.initialBodyComputedPaddingRight=window.getComputedStyle(t).paddingRight},initContainer:function(){this.containerData={width:window.innerWidth,height:window.innerHeight}},initViewer:function(){var e,t=this.options,n=this.parent;t.inline&&(e={width:Math.max(n.offsetWidth,t.minWidth),height:Math.max(n.offsetHeight,t.minHeight)},this.parentData=e),!this.fulled&&e||(e=this.containerData),this.viewerData=Q({},e)},renderViewer:function(){this.options.inline&&!this.fulled&&V(this.viewer,this.viewerData)},initList:function(){var e=this,t=this.element,n=this.options,r=this.list,i=[];r.innerHTML="",j(this.images,function(t,a){var o=t.src,s=t.alt||function(e){return D(e)?decodeURIComponent(e.replace(/^.*\//,"").replace(/[?&#].*$/,"")):""}(o),l=e.getImageURL(t);if(o||l){var c=document.createElement("li"),u=document.createElement("img");j(n.inheritedAttributes,function(e){var n=t.getAttribute(e);null!==n&&u.setAttribute(e,n)}),u.src=o||l,u.alt=s,u.setAttribute("data-original-url",l||o),c.setAttribute("data-index",a),c.setAttribute("data-viewer-action","view"),c.setAttribute("role","button"),n.keyboard&&c.setAttribute("tabindex",0),c.appendChild(u),r.appendChild(c),i.push(c)}}),this.items=i,j(i,function(t){var r,i,a=t.firstElementChild;J(a,"filled",!0),n.loading&&$(t,x),te(a,"load",r=function(r){ee(a,"error",i),n.loading&&q(t,x),e.loadImage(r)},{once:!0}),te(a,"error",i=function(){ee(a,"load",r),n.loading&&q(t,x)},{once:!0})}),n.transition&&te(t,"viewed",function(){$(r,k)},{once:!0})},renderList:function(){var e=this.index,t=this.items[e];if(t){var n=t.nextElementSibling,r=parseInt(window.getComputedStyle(n||t).marginLeft,10),i=t.offsetWidth,a=i+r;V(this.list,Q({width:a*this.length-r},re({translateX:(this.viewerData.width-i)/2-a*e})))}},resetList:function(){var e=this.list;e.innerHTML="",q(e,k),V(e,re({translateX:0}))},initImage:function(e){var t,n=this,r=this.options,i=this.image,a=this.viewerData,o=this.footer.offsetHeight,s=a.width,l=Math.max(a.height-o,o),c=this.imageData||{};this.imageInitializing={abort:function(){t.onload=null}},t=ae(i,r,function(t,i){var a=t/i,o=s,u=l;n.imageInitializing=!1,l*a>s?u=s/a:o=l*a,o=Math.min(.9*o,t),u=Math.min(.9*u,i);var h=(s-o)/2,d=(l-u)/2,f={left:h,top:d,x:h,y:d,width:o,height:u,oldRatio:1,ratio:o/t,aspectRatio:a,naturalWidth:t,naturalHeight:i},p=Q({},f);r.rotatable&&(f.rotate=c.rotate||0,p.rotate=0),r.scalable&&(f.scaleX=c.scaleX||1,f.scaleY=c.scaleY||1,p.scaleX=1,p.scaleY=1),n.imageData=f,n.initialImageData=p,e&&e()})},renderImage:function(e){var t=this,n=this.image,r=this.imageData;if(V(n,Q({width:r.width,height:r.height,marginLeft:r.x,marginTop:r.y},re(r))),e)if((this.viewing||this.moving||this.rotating||this.scaling||this.zooming)&&this.options.transition&&G(n,k)){var i=function(){t.imageRendering=!1,e()};this.imageRendering={abort:function(){ee(n,"transitionend",i)}},te(n,"transitionend",i,{once:!0})}else e()},resetImage:function(){if(this.viewing||this.viewed){var e=this.image;this.viewing&&this.viewing.abort(),e.parentNode.removeChild(e),this.image=null}}},ue={bind:function(){var e=this.options,t=this.viewer,n=this.canvas,r=this.element.ownerDocument;te(t,"click",this.onClick=this.click.bind(this)),te(t,"dragstart",this.onDragStart=this.dragstart.bind(this)),te(n,B,this.onPointerDown=this.pointerdown.bind(this)),te(r,E,this.onPointerMove=this.pointermove.bind(this)),te(r,T,this.onPointerUp=this.pointerup.bind(this)),te(r,"keydown",this.onKeyDown=this.keydown.bind(this)),te(window,"resize",this.onResize=this.resize.bind(this)),e.zoomable&&e.zoomOnWheel&&te(t,"wheel",this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),e.toggleOnDblclick&&te(n,"dblclick",this.onDblclick=this.dblclick.bind(this))},unbind:function(){var e=this.options,t=this.viewer,n=this.canvas,r=this.element.ownerDocument;ee(t,"click",this.onClick),ee(t,"dragstart",this.onDragStart),ee(n,B,this.onPointerDown),ee(r,E,this.onPointerMove),ee(r,T,this.onPointerUp),ee(r,"keydown",this.onKeyDown),ee(window,"resize",this.onResize),e.zoomable&&e.zoomOnWheel&&ee(t,"wheel",this.onWheel,{passive:!1,capture:!0}),e.toggleOnDblclick&&ee(n,"dblclick",this.onDblclick)}},he={click:function(e){var t=this.options,n=this.imageData,r=e.target,i=X(r,I);switch(i||"img"!==r.localName||"li"!==r.parentElement.localName||(i=X(r=r.parentElement,I)),l&&e.isTrusted&&r===this.canvas&&clearTimeout(this.clickCanvasTimeout),i){case"mix":this.played?this.stop():t.inline?this.fulled?this.exit():this.full():this.hide();break;case"hide":this.hide();break;case"view":this.view(X(r,"index"));break;case"zoom-in":this.zoom(.1,!0);break;case"zoom-out":this.zoom(-.1,!0);break;case"one-to-one":this.toggle();break;case"reset":this.reset();break;case"prev":this.prev(t.loop);break;case"play":this.play(t.fullscreen);break;case"next":this.next(t.loop);break;case"rotate-left":this.rotate(-90);break;case"rotate-right":this.rotate(90);break;case"flip-horizontal":this.scaleX(-n.scaleX||-1);break;case"flip-vertical":this.scaleY(-n.scaleY||-1);break;default:this.played&&this.stop()}},dblclick:function(e){e.preventDefault(),this.viewed&&e.target===this.image&&(l&&e.isTrusted&&clearTimeout(this.doubleClickImageTimeout),this.toggle(e.isTrusted?e:e.detail&&e.detail.originalEvent))},load:function(){var e=this;this.timeout&&(clearTimeout(this.timeout),this.timeout=!1);var t=this.element,n=this.options,r=this.image,i=this.index,a=this.viewerData;q(r,w),n.loading&&q(this.canvas,x),r.style.cssText="height:0;"+"margin-left:".concat(a.width/2,"px;")+"margin-top:".concat(a.height/2,"px;")+"max-width:none!important;position:relative;width:0;",this.initImage(function(){W(r,_,n.movable),W(r,k,n.transition),e.renderImage(function(){e.viewed=!0,e.viewing=!1,H(n.viewed)&&te(t,"viewed",n.viewed,{once:!0}),ne(t,"viewed",{originalImage:e.images[i],index:i,image:r},{cancelable:!1})})})},loadImage:function(e){var t=e.target,n=t.parentNode,r=n.offsetWidth||30,i=n.offsetHeight||50,a=!!X(t,"filled");ae(t,this.options,function(e,n){var o=e/n,s=r,l=i;i*o>r?a?s=i*o:l=r/o:a?l=r/o:s=i*o,V(t,Q({width:s,height:l},re({translateX:(r-s)/2,translateY:(i-l)/2})))})},keydown:function(e){var t=this.options;if(t.keyboard){var n=e.keyCode||e.which||e.charCode;switch(n){case 13:this.viewer.contains(e.target)&&this.click(e)}if(this.fulled)switch(n){case 27:this.played?this.stop():t.inline?this.fulled&&this.exit():this.hide();break;case 32:this.played&&this.stop();break;case 37:this.prev(t.loop);break;case 38:e.preventDefault(),this.zoom(t.zoomRatio,!0);break;case 39:this.next(t.loop);break;case 40:e.preventDefault(),this.zoom(-t.zoomRatio,!0);break;case 48:case 49:e.ctrlKey&&(e.preventDefault(),this.toggle())}}},dragstart:function(e){"img"===e.target.localName&&e.preventDefault()},pointerdown:function(e){var t=this.options,n=this.pointers,r=e.buttons,i=e.button;if(!(!this.viewed||this.showing||this.viewing||this.hiding||("mousedown"===e.type||"pointerdown"===e.type&&"mouse"===e.pointerType)&&(O(r)&&1!==r||O(i)&&0!==i||e.ctrlKey))){e.preventDefault(),e.changedTouches?j(e.changedTouches,function(e){n[e.identifier]=se(e)}):n[e.pointerId||0]=se(e);var a=!!t.movable&&"move";t.zoomOnTouch&&t.zoomable&&Object.keys(n).length>1?a="zoom":t.slideOnTouch&&("touch"===e.pointerType||"touchstart"===e.type)&&this.isSwitchable()&&(a="switch"),!t.transition||"move"!==a&&"zoom"!==a||q(this.image,k),this.action=a}},pointermove:function(e){var t=this.pointers,n=this.action;this.viewed&&n&&(e.preventDefault(),e.changedTouches?j(e.changedTouches,function(e){Q(t[e.identifier]||{},se(e,!0))}):Q(t[e.pointerId||0]||{},se(e,!0)),this.change(e))},pointerup:function(e){var t,n=this,r=this.options,i=this.action,a=this.pointers;e.changedTouches?j(e.changedTouches,function(e){t=a[e.identifier],delete a[e.identifier]}):(t=a[e.pointerId||0],delete a[e.pointerId||0]),i&&(e.preventDefault(),!r.transition||"move"!==i&&"zoom"!==i||$(this.image,k),this.action=!1,l&&"zoom"!==i&&t&&Date.now()-t.timeStamp<500&&(clearTimeout(this.clickCanvasTimeout),clearTimeout(this.doubleClickImageTimeout),r.toggleOnDblclick&&this.viewed&&e.target===this.image?this.imageClicked?(this.imageClicked=!1,this.doubleClickImageTimeout=setTimeout(function(){ne(n.image,"dblclick",{originalEvent:e})},50)):(this.imageClicked=!0,this.doubleClickImageTimeout=setTimeout(function(){n.imageClicked=!1},500)):(this.imageClicked=!1,r.backdrop&&"static"!==r.backdrop&&e.target===this.canvas&&(this.clickCanvasTimeout=setTimeout(function(){ne(n.canvas,"click",{originalEvent:e})},50)))))},resize:function(){var e=this;if(this.isShown&&!this.hiding&&(this.fulled&&(this.close(),this.initBody(),this.open()),this.initContainer(),this.initViewer(),this.renderViewer(),this.renderList(),this.viewed&&this.initImage(function(){e.renderImage()}),this.played)){if(this.options.fullscreen&&this.fulled&&!(document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement))return void this.stop();j(this.player.getElementsByTagName("img"),function(t){te(t,"load",e.loadImage.bind(e),{once:!0}),ne(t,"load")})}},wheel:function(e){var t=this;if(this.viewed&&(e.preventDefault(),!this.wheeling)){this.wheeling=!0,setTimeout(function(){t.wheeling=!1},50);var n=Number(this.options.zoomRatio)||.1,r=1;e.deltaY?r=e.deltaY>0?1:-1:e.wheelDelta?r=-e.wheelDelta/120:e.detail&&(r=e.detail>0?1:-1),this.zoom(-r*n,!0,e)}}},de={show:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.element,n=this.options;if(n.inline||this.showing||this.isShown||this.showing)return this;if(!this.ready)return this.build(),this.ready&&this.show(e),this;if(H(n.show)&&te(t,"show",n.show,{once:!0}),!1===ne(t,"show")||!this.ready)return this;this.hiding&&this.transitioning.abort(),this.showing=!0,this.open();var r=this.viewer;if(q(r,g),r.setAttribute("role","dialog"),r.setAttribute("aria-labelledby",this.title.id),r.setAttribute("aria-modal",!0),r.removeAttribute("aria-hidden"),n.transition&&!e){var i=this.shown.bind(this);this.transitioning={abort:function(){ee(r,"transitionend",i),q(r,b)}},$(r,k),r.initialOffsetWidth=r.offsetWidth,te(r,"transitionend",i,{once:!0}),$(r,b)}else $(r,b),this.shown();return this},hide:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=this.element,r=this.options;if(r.inline||this.hiding||!this.isShown&&!this.showing)return this;if(H(r.hide)&&te(n,"hide",r.hide,{once:!0}),!1===ne(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,a=this.image,o=function(){q(i,b),e.hidden()};if(r.transition&&!t){var s=function t(n){n&&n.target===i&&(ee(i,"transitionend",t),e.hidden())},l=function(){G(i,k)?(te(i,"transitionend",s),q(i,b)):o()};this.transitioning={abort:function(){e.viewed&&G(a,k)?ee(a,"transitionend",l):G(i,k)&&ee(i,"transitionend",s)}},this.viewed&&G(a,k)?(te(a,"transitionend",l,{once:!0}),this.zoomTo(0,!1,null,!0)):l()}else o();return this},view:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.options.initialViewIndex;if(t=Number(t)||0,this.hiding||this.played||t<0||t>=this.length||this.viewed&&t===this.index)return this;if(!this.isShown)return this.index=t,this.show();this.viewing&&this.viewing.abort();var n=this.element,r=this.options,i=this.title,a=this.canvas,o=this.items[t],s=o.querySelector("img"),l=X(s,"originalUrl"),c=s.getAttribute("alt"),h=document.createElement("img");if(j(r.inheritedAttributes,function(e){var t=s.getAttribute(e);null!==t&&h.setAttribute(e,t)}),h.src=l,h.alt=c,H(r.view)&&te(n,"view",r.view,{once:!0}),!1===ne(n,"view",{originalImage:this.images[t],index:t,image:h})||!this.isShown||this.hiding||this.played)return this;var d=this.items[this.index];d&&(q(d,u),d.removeAttribute("aria-selected")),$(o,u),o.setAttribute("aria-selected",!0),r.focus&&o.focus(),this.image=h,this.viewed=!1,this.index=t,this.imageData={},$(h,w),r.loading&&$(a,x),a.innerHTML="",a.appendChild(h),this.renderList(),i.innerHTML="";var f,p,A=function(){var t,n=e.imageData,a=Array.isArray(r.title)?r.title[1]:r.title;i.innerHTML=D(t=H(a)?a.call(e,h,n):"".concat(c," (").concat(n.naturalWidth," × ").concat(n.naturalHeight,")"))?t.replace(/&(?!amp;|quot;|#39;|lt;|gt;)/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;"):t};return te(n,"viewed",A,{once:!0}),this.viewing={abort:function(){ee(n,"viewed",A),h.complete?e.imageRendering?e.imageRendering.abort():e.imageInitializing&&e.imageInitializing.abort():(h.src="",ee(h,"load",f),e.timeout&&clearTimeout(e.timeout))}},h.complete?this.load():(te(h,"load",f=function(){ee(h,"error",p),e.load()},{once:!0}),te(h,"error",p=function(){ee(h,"load",f),e.timeout&&(clearTimeout(e.timeout),e.timeout=!1),q(h,w),r.loading&&q(e.canvas,x)},{once:!0}),this.timeout&&clearTimeout(this.timeout),this.timeout=setTimeout(function(){q(h,w),e.timeout=!1},1e3)),this},prev:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.index-1;return t<0&&(t=e?this.length-1:0),this.view(t),this},next:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.length-1,n=this.index+1;return n>t&&(n=e?0:t),this.view(n),this},move:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=this.imageData;return this.moveTo(L(e)?e:n.x+Number(e),L(t)?t:n.y+Number(t)),this},moveTo:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=this.element,a=this.options,o=this.imageData;if(e=Number(e),n=Number(n),this.viewed&&!this.played&&a.movable){var s=o.x,l=o.y,c=!1;if(O(e)?c=!0:e=s,O(n)?c=!0:n=l,c){if(H(a.move)&&te(i,"move",a.move,{once:!0}),!1===ne(i,"move",{x:e,y:n,oldX:s,oldY:l,originalEvent:r}))return this;o.x=e,o.y=n,o.left=e,o.top=n,this.moving=!0,this.renderImage(function(){t.moving=!1,H(a.moved)&&te(i,"moved",a.moved,{once:!0}),ne(i,"moved",{x:e,y:n,oldX:s,oldY:l,originalEvent:r},{cancelable:!1})})}}return this},rotate:function(e){return this.rotateTo((this.imageData.rotate||0)+Number(e)),this},rotateTo:function(e){var t=this,n=this.element,r=this.options,i=this.imageData;if(O(e=Number(e))&&this.viewed&&!this.played&&r.rotatable){var a=i.rotate;if(H(r.rotate)&&te(n,"rotate",r.rotate,{once:!0}),!1===ne(n,"rotate",{degree:e,oldDegree:a}))return this;i.rotate=e,this.rotating=!0,this.renderImage(function(){t.rotating=!1,H(r.rotated)&&te(n,"rotated",r.rotated,{once:!0}),ne(n,"rotated",{degree:e,oldDegree:a},{cancelable:!1})})}return this},scaleX:function(e){return this.scale(e,this.imageData.scaleY),this},scaleY:function(e){return this.scale(this.imageData.scaleX,e),this},scale:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,r=this.element,i=this.options,a=this.imageData;if(e=Number(e),n=Number(n),this.viewed&&!this.played&&i.scalable){var o=a.scaleX,s=a.scaleY,l=!1;if(O(e)?l=!0:e=o,O(n)?l=!0:n=s,l){if(H(i.scale)&&te(r,"scale",i.scale,{once:!0}),!1===ne(r,"scale",{scaleX:e,scaleY:n,oldScaleX:o,oldScaleY:s}))return this;a.scaleX=e,a.scaleY=n,this.scaling=!0,this.renderImage(function(){t.scaling=!1,H(i.scaled)&&te(r,"scaled",i.scaled,{once:!0}),ne(r,"scaled",{scaleX:e,scaleY:n,oldScaleX:o,oldScaleY:s},{cancelable:!1})})}}return this},zoom:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=this.imageData;return e=(e=Number(e))<0?1/(1-e):1+e,this.zoomTo(r.width*e/r.naturalWidth,t,n),this},zoomTo:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=this.element,o=this.options,s=this.pointers,l=this.imageData,c=l.x,u=l.y,h=l.width,d=l.height,f=l.naturalWidth,p=l.naturalHeight;if(O(e=Math.max(0,e))&&this.viewed&&!this.played&&(i||o.zoomable)){if(!i){var A=Math.max(.01,o.minZoomRatio),g=Math.min(100,o.maxZoomRatio);e=Math.min(Math.max(e,A),g)}if(r)switch(r.type){case"wheel":o.zoomRatio>=.055&&e>.95&&e<1.05&&(e=1);break;case"pointermove":case"touchmove":case"mousemove":e>.99&&e<1.01&&(e=1)}var m=f*e,v=p*e,y=m-h,b=v-d,w=l.ratio;if(H(o.zoom)&&te(a,"zoom",o.zoom,{once:!0}),!1===ne(a,"zoom",{ratio:e,oldRatio:w,originalEvent:r}))return this;if(this.zooming=!0,r){var x=function(e){var t=e.getBoundingClientRect();return{left:t.left+(window.pageXOffset-document.documentElement.clientLeft),top:t.top+(window.pageYOffset-document.documentElement.clientTop)}}(this.viewer),_=s&&Object.keys(s).length>0?function(e){var t=0,n=0,r=0;return j(e,function(e){var i=e.startX,a=e.startY;t+=i,n+=a,r+=1}),{pageX:t/=r,pageY:n/=r}}(s):{pageX:r.pageX,pageY:r.pageY};l.x-=y*((_.pageX-x.left-c)/h),l.y-=b*((_.pageY-x.top-u)/d)}else l.x-=y/2,l.y-=b/2;l.left=l.x,l.top=l.y,l.width=m,l.height=v,l.oldRatio=w,l.ratio=e,this.renderImage(function(){t.zooming=!1,H(o.zoomed)&&te(a,"zoomed",o.zoomed,{once:!0}),ne(a,"zoomed",{ratio:e,oldRatio:w,originalEvent:r},{cancelable:!1})}),n&&this.tooltip()}return this},play:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.isShown||this.played)return this;var n=this.element,r=this.options;if(H(r.play)&&te(n,"play",r.play,{once:!0}),!1===ne(n,"play"))return this;var i=this.player,a=this.loadImage.bind(this),o=[],s=0,l=0;if(this.played=!0,this.onLoadWhenPlay=a,t&&this.requestFullscreen(t),$(i,S),j(this.items,function(e,t){var n=e.querySelector("img"),c=document.createElement("img");c.src=X(n,"originalUrl"),c.alt=n.getAttribute("alt"),c.referrerPolicy=n.referrerPolicy,s+=1,$(c,d),W(c,k,r.transition),G(e,u)&&($(c,b),l=t),o.push(c),te(c,"load",a,{once:!0}),i.appendChild(c)}),O(r.interval)&&r.interval>0){var c=function t(){e.playing=setTimeout(function(){q(o[l],b),$(o[l=(l+=1)<s?l:0],b),t()},r.interval)};s>1&&c()}return this},stop:function(){var e=this;if(!this.played)return this;var t=this.element,n=this.options;if(H(n.stop)&&te(t,"stop",n.stop,{once:!0}),!1===ne(t,"stop"))return this;var r=this.player;return this.played=!1,clearTimeout(this.playing),j(r.getElementsByTagName("img"),function(t){ee(t,"load",e.onLoadWhenPlay)}),q(r,S),r.innerHTML="",this.exitFullscreen(),this},full:function(){var e=this,t=this.options,n=this.viewer,r=this.image,i=this.list;return!this.isShown||this.played||this.fulled||!t.inline?this:(this.fulled=!0,this.open(),$(this.button,A),t.transition&&(q(i,k),this.viewed&&q(r,k)),$(n,f),n.setAttribute("role","dialog"),n.setAttribute("aria-labelledby",this.title.id),n.setAttribute("aria-modal",!0),n.removeAttribute("style"),V(n,{zIndex:t.zIndex}),t.focus&&this.enforceFocus(),this.initContainer(),this.viewerData=Q({},this.containerData),this.renderList(),this.viewed&&this.initImage(function(){e.renderImage(function(){t.transition&&setTimeout(function(){$(r,k),$(i,k)},0)})}),this)},exit:function(){var e=this,t=this.options,n=this.viewer,r=this.image,i=this.list;return this.isShown&&!this.played&&this.fulled&&t.inline?(this.fulled=!1,this.close(),q(this.button,A),t.transition&&(q(i,k),this.viewed&&q(r,k)),t.focus&&this.clearEnforceFocus(),n.removeAttribute("role"),n.removeAttribute("aria-labelledby"),n.removeAttribute("aria-modal"),q(n,f),V(n,{zIndex:t.zIndexInline}),this.viewerData=Q({},this.parentData),this.renderViewer(),this.renderList(),this.viewed&&this.initImage(function(){e.renderImage(function(){t.transition&&setTimeout(function(){$(r,k),$(i,k)},0)})}),this):this},tooltip:function(){var e=this,t=this.options,n=this.tooltipBox,r=this.imageData;return this.viewed&&!this.played&&t.tooltip?(n.textContent="".concat(Math.round(100*r.ratio),"%"),this.tooltipping?clearTimeout(this.tooltipping):t.transition?(this.fading&&ne(n,"transitionend"),$(n,S),$(n,d),$(n,k),n.removeAttribute("aria-hidden"),n.initialOffsetWidth=n.offsetWidth,$(n,b)):($(n,S),n.removeAttribute("aria-hidden")),this.tooltipping=setTimeout(function(){t.transition?(te(n,"transitionend",function(){q(n,S),q(n,d),q(n,k),n.setAttribute("aria-hidden",!0),e.fading=!1},{once:!0}),q(n,b),e.fading=!0):(q(n,S),n.setAttribute("aria-hidden",!0)),e.tooltipping=!1},1e3),this):this},toggle:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return 1===this.imageData.ratio?this.zoomTo(this.imageData.oldRatio,!0,e):this.zoomTo(1,!0,e),this},reset:function(){return this.viewed&&!this.played&&(this.imageData=Q({},this.initialImageData),this.renderImage()),this},update:function(){var e=this,t=this.element,n=this.options,r=this.isImg;if(r&&!t.parentNode)return this.destroy();var i=[];if(j(r?[t]:t.querySelectorAll("img"),function(t){H(n.filter)?n.filter.call(e,t)&&i.push(t):e.getImageURL(t)&&i.push(t)}),!i.length)return this;if(this.images=i,this.length=i.length,this.ready){var a=[];if(j(this.items,function(e,t){var n=e.querySelector("img"),r=i[t];r&&n&&r.src===n.src&&r.alt===n.alt||a.push(t)}),V(this.list,{width:"auto"}),this.initList(),this.isShown)if(this.length){if(this.viewed){var o=a.indexOf(this.index);if(o>=0)this.viewed=!1,this.view(Math.max(Math.min(this.index-o,this.length-1),0));else{var s=this.items[this.index];$(s,u),s.setAttribute("aria-selected",!0)}}}else this.image=null,this.viewed=!1,this.index=0,this.imageData={},this.canvas.innerHTML="",this.title.innerHTML=""}else this.build();return this},destroy:function(){var e=this.element,t=this.options;return e.viewer?(this.destroyed=!0,this.ready?(this.played&&this.stop(),t.inline?(this.fulled&&this.exit(),this.unbind()):this.isShown?(this.viewing&&(this.imageRendering?this.imageRendering.abort():this.imageInitializing&&this.imageInitializing.abort()),this.hiding&&this.transitioning.abort(),this.hidden()):this.showing&&(this.transitioning.abort(),this.hidden()),this.ready=!1,this.viewer.parentNode.removeChild(this.viewer)):t.inline&&(this.delaying?this.delaying.abort():this.initializing&&this.initializing.abort()),t.inline||ee(e,"click",this.onStart),e.viewer=void 0,this):this}},fe={getImageURL:function(e){var t=this.options.url;return t=D(t)?e.getAttribute(t):H(t)?t.call(this,e):""},enforceFocus:function(){var e=this;this.clearEnforceFocus(),te(document,"focusin",this.onFocusin=function(t){var n=e.viewer,r=t.target;if(r!==document&&r!==n&&!n.contains(r)){for(;r;){if(null!==r.getAttribute("tabindex")||"true"===r.getAttribute("aria-modal"))return;r=r.parentElement}n.focus()}})},clearEnforceFocus:function(){this.onFocusin&&(ee(document,"focusin",this.onFocusin),this.onFocusin=null)},open:function(){var e=this.body;$(e,C),e.style.paddingRight="".concat(this.scrollbarWidth+(parseFloat(this.initialBodyComputedPaddingRight)||0),"px")},close:function(){var e=this.body;q(e,C),e.style.paddingRight=this.initialBodyPaddingRight},shown:function(){var e=this.element,t=this.options,n=this.viewer;this.fulled=!0,this.isShown=!0,this.render(),this.bind(),this.showing=!1,t.focus&&(n.focus(),this.enforceFocus()),H(t.shown)&&te(e,"shown",t.shown,{once:!0}),!1!==ne(e,"shown")&&this.ready&&this.isShown&&!this.hiding&&this.view(this.index)},hidden:function(){var e=this.element,t=this.options,n=this.viewer;t.fucus&&this.clearEnforceFocus(),this.fulled=!1,this.viewed=!1,this.isShown=!1,this.close(),this.unbind(),$(n,g),n.removeAttribute("role"),n.removeAttribute("aria-labelledby"),n.removeAttribute("aria-modal"),n.setAttribute("aria-hidden",!0),this.resetList(),this.resetImage(),this.hiding=!1,this.destroyed||(H(t.hidden)&&te(e,"hidden",t.hidden,{once:!0}),ne(e,"hidden",null,{cancelable:!1}))},requestFullscreen:function(e){var t=this.element.ownerDocument;if(this.fulled&&!(t.fullscreenElement||t.webkitFullscreenElement||t.mozFullScreenElement||t.msFullscreenElement)){var n=t.documentElement;n.requestFullscreen?U(e)?n.requestFullscreen(e):n.requestFullscreen():n.webkitRequestFullscreen?n.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT):n.mozRequestFullScreen?n.mozRequestFullScreen():n.msRequestFullscreen&&n.msRequestFullscreen()}},exitFullscreen:function(){var e=this.element.ownerDocument;this.fulled&&(e.fullscreenElement||e.webkitFullscreenElement||e.mozFullScreenElement||e.msFullscreenElement)&&(e.exitFullscreen?e.exitFullscreen():e.webkitExitFullscreen?e.webkitExitFullscreen():e.mozCancelFullScreen?e.mozCancelFullScreen():e.msExitFullscreen&&e.msExitFullscreen())},change:function(e){var n=this.options,r=this.pointers,i=r[Object.keys(r)[0]];if(i){var a=i.endX-i.startX,o=i.endY-i.startY;switch(this.action){case"move":this.move(a,o,e);break;case"zoom":this.zoom(function(e){var n=t({},e),r=[];return j(e,function(e,t){delete n[t],j(n,function(t){var n=Math.abs(e.startX-t.startX),i=Math.abs(e.startY-t.startY),a=Math.abs(e.endX-t.endX),o=Math.abs(e.endY-t.endY),s=Math.sqrt(n*n+i*i),l=(Math.sqrt(a*a+o*o)-s)/s;r.push(l)})}),r.sort(function(e,t){return Math.abs(e)<Math.abs(t)}),r[0]}(r),!1,e);break;case"switch":this.action="switched";var s=Math.abs(a);s>1&&s>Math.abs(o)&&(this.pointers={},a>1?this.prev(n.loop):a<-1&&this.next(n.loop))}j(r,function(e){e.startX=e.endX,e.startY=e.endY})}},isSwitchable:function(){var e=this.imageData,t=this.viewerData;return this.length>1&&e.x>=0&&e.y>=0&&e.width<=t.width&&e.height<=t.height}},pe=s.Viewer,Ae=(le=-1,function(){return le+=1}),ge=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!t||1!==t.nodeType)throw new Error("The first argument is required and must be an element.");this.element=t,this.options=Q({},a,U(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.id=Ae(),this.init()}var t,n,i;return t=e,i=[{key:"noConflict",value:function(){return window.Viewer=pe,e}},{key:"setDefaults",value:function(e){Q(a,U(e)&&e)}}],(n=[{key:"init",value:function(){var e=this,t=this.element,n=this.options;if(!t.viewer){t.viewer=this,n.focus&&!n.keyboard&&(n.focus=!1);var r="img"===t.localName,i=[];if(j(r?[t]:t.querySelectorAll("img"),function(t){H(n.filter)?n.filter.call(e,t)&&i.push(t):e.getImageURL(t)&&i.push(t)}),this.isImg=r,this.length=i.length,this.images=i,this.initBody(),L(document.createElement("viewer").style.transition)&&(n.transition=!1),n.inline){var a=0,o=function(){var t;(a+=1)===e.length&&(e.initializing=!1,e.delaying={abort:function(){clearTimeout(t)}},t=setTimeout(function(){e.delaying=!1,e.build()},0))};this.initializing={abort:function(){j(i,function(e){e.complete||(ee(e,"load",o),ee(e,"error",o))})}},j(i,function(e){var t,n;e.complete?o():(te(e,"load",t=function(){ee(e,"error",n),o()},{once:!0}),te(e,"error",n=function(){ee(e,"load",t),o()},{once:!0}))})}else te(t,"click",this.onStart=function(t){var r=t.target;"img"!==r.localName||H(n.filter)&&!n.filter.call(e,r)||e.view(e.images.indexOf(r))})}}},{key:"build",value:function(){if(!this.ready){var e=this.element,t=this.options,n=e.parentNode,r=document.createElement("div");r.innerHTML='<div class="viewer-container" tabindex="-1" touch-action="none"><div class="viewer-canvas"></div><div class="viewer-footer"><div class="viewer-title"></div><div class="viewer-toolbar"></div><div class="viewer-navbar"><ul class="viewer-list" role="navigation"></ul></div></div><div class="viewer-tooltip" role="alert" aria-hidden="true"></div><div class="viewer-button" data-viewer-action="mix" role="button"></div><div class="viewer-player"></div></div>';var i=r.querySelector(".".concat("viewer","-container")),a=i.querySelector(".".concat("viewer","-title")),o=i.querySelector(".".concat("viewer","-toolbar")),s=i.querySelector(".".concat("viewer","-navbar")),l=i.querySelector(".".concat("viewer","-button")),c=i.querySelector(".".concat("viewer","-canvas"));if(this.parent=n,this.viewer=i,this.title=a,this.toolbar=o,this.navbar=s,this.button=l,this.canvas=c,this.footer=i.querySelector(".".concat("viewer","-footer")),this.tooltipBox=i.querySelector(".".concat("viewer","-tooltip")),this.player=i.querySelector(".".concat("viewer","-player")),this.list=i.querySelector(".".concat("viewer","-list")),i.id="".concat("viewer").concat(this.id),a.id="".concat("viewer","Title").concat(this.id),$(a,t.title?oe(Array.isArray(t.title)?t.title[0]:t.title):g),$(s,t.navbar?oe(t.navbar):g),W(l,g,!t.button),t.keyboard&&l.setAttribute("tabindex",0),t.backdrop&&($(i,"".concat("viewer","-backdrop")),t.inline||"static"===t.backdrop||J(c,I,"hide")),D(t.className)&&t.className&&t.className.split(M).forEach(function(e){$(i,e)}),t.toolbar){var u=document.createElement("ul"),A=U(t.toolbar),m=F.slice(0,3),v=F.slice(7,9),y=F.slice(9);A||$(o,oe(t.toolbar)),j(A?t.toolbar:F,function(e,n){var r=A&&U(e),i=A?Y(n):e,a=r&&!L(e.show)?e.show:e;if(a&&(t.zoomable||-1===m.indexOf(i))&&(t.rotatable||-1===v.indexOf(i))&&(t.scalable||-1===y.indexOf(i))){var o=r&&!L(e.size)?e.size:e,s=r&&!L(e.click)?e.click:e,l=document.createElement("li");t.keyboard&&l.setAttribute("tabindex",0),l.setAttribute("role","button"),$(l,"".concat("viewer","-").concat(i)),H(s)||J(l,I,i),O(a)&&$(l,oe(a)),-1!==["small","large"].indexOf(o)?$(l,"".concat("viewer","-").concat(o)):"play"===i&&$(l,"".concat("viewer","-large")),H(s)&&te(l,"click",s),u.appendChild(l)}}),o.appendChild(u)}else $(o,g);if(!t.rotatable){var b=o.querySelectorAll('li[class*="rotate"]');$(b,w),j(b,function(e){o.appendChild(e)})}if(t.inline)$(l,p),V(i,{zIndex:t.zIndexInline}),"static"===window.getComputedStyle(n).position&&V(n,{position:"relative"}),n.insertBefore(i,e.nextSibling);else{$(l,h),$(i,f),$(i,d),$(i,g),V(i,{zIndex:t.zIndex});var x=t.container;D(x)&&(x=e.ownerDocument.querySelector(x)),x||(x=this.body),x.appendChild(i)}t.inline&&(this.render(),this.bind(),this.isShown=!0),this.ready=!0,H(t.ready)&&te(e,"ready",t.ready,{once:!0}),!1!==ne(e,"ready")?this.ready&&t.inline&&this.view(this.index):this.ready=!1}}}])&&r(t.prototype,n),i&&r(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();return Q(ge.prototype,ce,ue,he,de,fe),ge},e.exports=r()},Itbc:function(e,t,n){("undefined"!=typeof window?window:{}).pdfjsWorker=n("wk5V")},"JP+z":function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},K6ED:function(e,t,n){e.exports={default:n("cnlX"),__esModule:!0}},KCLY:function(e,t,n){"use strict";(function(t){var r=n("cGG2"),i=n("5VQ+"),a={"Content-Type":"application/x-www-form-urlencoded"};function o(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var s,l={adapter:("undefined"!=typeof XMLHttpRequest?s=n("7GwW"):void 0!==t&&"[object process]"===Object.prototype.toString.call(t)&&(s=n("7GwW")),s),transformRequest:[function(e,t){return i(t,"Accept"),i(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(o(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)?(o(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300}};l.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],function(e){l.headers[e]={}}),r.forEach(["post","put","patch"],function(e){l.headers[e]=r.merge(a)}),e.exports=l}).call(t,n("W2nU"))},Kh4W:function(e,t,n){t.f=n("dSzd")},L42u:function(e,t,n){var r,i,a,o=n("+ZMJ"),s=n("knuC"),l=n("RPLV"),c=n("ON07"),u=n("7KvD"),h=u.process,d=u.setImmediate,f=u.clearImmediate,p=u.MessageChannel,A=u.Dispatch,g=0,m={},v=function(){var e=+this;if(m.hasOwnProperty(e)){var t=m[e];delete m[e],t()}},y=function(e){v.call(e.data)};d&&f||(d=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return m[++g]=function(){s("function"==typeof e?e:Function(e),t)},r(g),g},f=function(e){delete m[e]},"process"==n("R9M2")(h)?r=function(e){h.nextTick(o(v,e,1))}:A&&A.now?r=function(e){A.now(o(v,e,1))}:p?(a=(i=new p).port2,i.port1.onmessage=y,r=o(a.postMessage,a,1)):u.addEventListener&&"function"==typeof postMessage&&!u.importScripts?(r=function(e){u.postMessage(e+"","*")},u.addEventListener("message",y,!1)):r="onreadystatechange"in c("script")?function(e){l.appendChild(c("script")).onreadystatechange=function(){l.removeChild(this),v.call(e)}}:function(e){setTimeout(o(v,e,1),0)}),e.exports={set:d,clear:f}},LKZe:function(e,t,n){var r=n("NpIQ"),i=n("X8DO"),a=n("TcQ7"),o=n("MmMw"),s=n("D2L2"),l=n("SfB7"),c=Object.getOwnPropertyDescriptor;t.f=n("+E39")?c:function(e,t){if(e=a(e),t=o(t,!0),l)try{return c(e,t)}catch(e){}if(s(e,t))return i(!r.f.call(e,t),e[t])}},M6a0:function(e,t){},MU5D:function(e,t,n){var r=n("R9M2");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},Mhyx:function(e,t,n){var r=n("/bQp"),i=n("dSzd")("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||a[i]===e)}},MmMw:function(e,t,n){var r=n("EqjI");e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},NMof:function(e,t,n){"use strict";var r,i;"function"==typeof Symbol&&Symbol.iterator;void 0===(i="function"==typeof(r=function(){var e=window,t={placement:"bottom",gpuAcceleration:!0,offset:0,boundariesElement:"viewport",boundariesPadding:5,preventOverflowOrder:["left","right","top","bottom"],flipBehavior:"flip",arrowElement:"[x-arrow]",arrowOffset:0,modifiers:["shift","offset","preventOverflow","keepTogether","arrow","flip","applyStyle"],modifiersIgnored:[],forceAbsolute:!1};function n(e,n,r){this._reference=e.jquery?e[0]:e,this.state={};var i=void 0===n||null===n,a=n&&"[object Object]"===Object.prototype.toString.call(n);return this._popper=i||a?this.parse(a?n:{}):n.jquery?n[0]:n,this._options=Object.assign({},t,r),this._options.modifiers=this._options.modifiers.map(function(e){if(-1===this._options.modifiersIgnored.indexOf(e))return"applyStyle"===e&&this._popper.setAttribute("x-placement",this._options.placement),this.modifiers[e]||e}.bind(this)),this.state.position=this._getPosition(this._popper,this._reference),u(this._popper,{position:this.state.position,top:0}),this.update(),this._setupEventListeners(),this}function r(t){var n=t.style.display,r=t.style.visibility;t.style.display="block",t.style.visibility="hidden";t.offsetWidth;var i=e.getComputedStyle(t),a=parseFloat(i.marginTop)+parseFloat(i.marginBottom),o=parseFloat(i.marginLeft)+parseFloat(i.marginRight),s={width:t.offsetWidth+o,height:t.offsetHeight+a};return t.style.display=n,t.style.visibility=r,s}function i(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(e){return t[e]})}function a(e){var t=Object.assign({},e);return t.right=t.left+t.width,t.bottom=t.top+t.height,t}function o(e,t){var n,r=0;for(n in e){if(e[n]===t)return r;r++}return null}function s(t,n){return e.getComputedStyle(t,null)[n]}function l(t){var n=t.offsetParent;return n!==e.document.body&&n?n:e.document.documentElement}function c(t){var n=t.parentNode;return n?n===e.document?e.document.body.scrollTop||e.document.body.scrollLeft?e.document.body:e.document.documentElement:-1!==["scroll","auto"].indexOf(s(n,"overflow"))||-1!==["scroll","auto"].indexOf(s(n,"overflow-x"))||-1!==["scroll","auto"].indexOf(s(n,"overflow-y"))?n:c(t.parentNode):t}function u(e,t){Object.keys(t).forEach(function(n){var r,i="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&(""!==(r=t[n])&&!isNaN(parseFloat(r))&&isFinite(r))&&(i="px"),e.style[n]=t[n]+i})}function h(e){var t={width:e.offsetWidth,height:e.offsetHeight,left:e.offsetLeft,top:e.offsetTop};return t.right=t.left+t.width,t.bottom=t.top+t.height,t}function d(e){var t=e.getBoundingClientRect(),n=-1!=navigator.userAgent.indexOf("MSIE")&&"HTML"===e.tagName?-e.scrollTop:t.top;return{left:t.left,top:n,right:t.right,bottom:t.bottom,width:t.right-t.left,height:t.bottom-n}}function f(t){for(var n=["","ms","webkit","moz","o"],r=0;r<n.length;r++){var i=n[r]?n[r]+t.charAt(0).toUpperCase()+t.slice(1):t;if(void 0!==e.document.body.style[i])return i}return null}return n.prototype.destroy=function(){return this._popper.removeAttribute("x-placement"),this._popper.style.left="",this._popper.style.position="",this._popper.style.top="",this._popper.style[f("transform")]="",this._removeEventListeners(),this._options.removeOnDestroy&&this._popper.remove(),this},n.prototype.update=function(){var e={instance:this,styles:{}};e.placement=this._options.placement,e._originalPlacement=this._options.placement,e.offsets=this._getOffsets(this._popper,this._reference,e.placement),e.boundaries=this._getBoundaries(e,this._options.boundariesPadding,this._options.boundariesElement),e=this.runModifiers(e,this._options.modifiers),"function"==typeof this.state.updateCallback&&this.state.updateCallback(e)},n.prototype.onCreate=function(e){return e(this),this},n.prototype.onUpdate=function(e){return this.state.updateCallback=e,this},n.prototype.parse=function(t){var n={tagName:"div",classNames:["popper"],attributes:[],parent:e.document.body,content:"",contentType:"text",arrowTagName:"div",arrowClassNames:["popper__arrow"],arrowAttributes:["x-arrow"]};t=Object.assign({},n,t);var r=e.document,i=r.createElement(t.tagName);if(s(i,t.classNames),l(i,t.attributes),"node"===t.contentType?i.appendChild(t.content.jquery?t.content[0]:t.content):"html"===t.contentType?i.innerHTML=t.content:i.textContent=t.content,t.arrowTagName){var a=r.createElement(t.arrowTagName);s(a,t.arrowClassNames),l(a,t.arrowAttributes),i.appendChild(a)}var o=t.parent.jquery?t.parent[0]:t.parent;if("string"==typeof o){if((o=r.querySelectorAll(t.parent)).length>1&&console.warn("WARNING: the given `parent` query("+t.parent+") matched more than one element, the first one will be used"),0===o.length)throw"ERROR: the given `parent` doesn't exists!";o=o[0]}return o.length>1&&o instanceof Element==!1&&(console.warn("WARNING: you have passed as parent a list of elements, the first one will be used"),o=o[0]),o.appendChild(i),i;function s(e,t){t.forEach(function(t){e.classList.add(t)})}function l(e,t){t.forEach(function(t){e.setAttribute(t.split(":")[0],t.split(":")[1]||"")})}},n.prototype._getPosition=function(t,n){l(n);return this._options.forceAbsolute?"absolute":function t(n){if(n===e.document.body)return!1;if("fixed"===s(n,"position"))return!0;return n.parentNode?t(n.parentNode):n}(n)?"fixed":"absolute"},n.prototype._getOffsets=function(e,t,n){n=n.split("-")[0];var i={};i.position=this.state.position;var a="fixed"===i.position,o=function(e,t,n){var r=d(e),i=d(t);if(n){var a=c(t);i.top+=a.scrollTop,i.bottom+=a.scrollTop,i.left+=a.scrollLeft,i.right+=a.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}}(t,l(e),a),s=r(e);return-1!==["right","left"].indexOf(n)?(i.top=o.top+o.height/2-s.height/2,i.left="left"===n?o.left-s.width:o.right):(i.left=o.left+o.width/2-s.width/2,i.top="top"===n?o.top-s.height:o.bottom),i.width=s.width,i.height=s.height,{popper:i,reference:o}},n.prototype._setupEventListeners=function(){if(this.state.updateBound=this.update.bind(this),e.addEventListener("resize",this.state.updateBound),"window"!==this._options.boundariesElement){var t=c(this._reference);t!==e.document.body&&t!==e.document.documentElement||(t=e),t.addEventListener("scroll",this.state.updateBound),this.state.scrollTarget=t}},n.prototype._removeEventListeners=function(){e.removeEventListener("resize",this.state.updateBound),"window"!==this._options.boundariesElement&&this.state.scrollTarget&&(this.state.scrollTarget.removeEventListener("scroll",this.state.updateBound),this.state.scrollTarget=null),this.state.updateBound=null},n.prototype._getBoundaries=function(t,n,r){var i,a,o={};if("window"===r){var s=e.document.body,u=e.document.documentElement;i=Math.max(s.scrollHeight,s.offsetHeight,u.clientHeight,u.scrollHeight,u.offsetHeight),o={top:0,right:Math.max(s.scrollWidth,s.offsetWidth,u.clientWidth,u.scrollWidth,u.offsetWidth),bottom:i,left:0}}else if("viewport"===r){var d=l(this._popper),f=c(this._popper),p=h(d),A="fixed"===t.offsets.popper.position?0:(a=f)==document.body?Math.max(document.documentElement.scrollTop,document.body.scrollTop):a.scrollTop,g="fixed"===t.offsets.popper.position?0:function(e){return e==document.body?Math.max(document.documentElement.scrollLeft,document.body.scrollLeft):e.scrollLeft}(f);o={top:0-(p.top-A),right:e.document.documentElement.clientWidth-(p.left-g),bottom:e.document.documentElement.clientHeight-(p.top-A),left:0-(p.left-g)}}else o=l(this._popper)===r?{top:0,left:0,right:r.clientWidth,bottom:r.clientHeight}:h(r);return o.left+=n,o.right-=n,o.top=o.top+n,o.bottom=o.bottom-n,o},n.prototype.runModifiers=function(e,t,n){var r=t.slice();return void 0!==n&&(r=this._options.modifiers.slice(0,o(this._options.modifiers,n))),r.forEach(function(t){var n;(n=t)&&"[object Function]"==={}.toString.call(n)&&(e=t.call(this,e))}.bind(this)),e},n.prototype.isModifierRequired=function(e,t){var n=o(this._options.modifiers,e);return!!this._options.modifiers.slice(0,n).filter(function(e){return e===t}).length},n.prototype.modifiers={},n.prototype.modifiers.applyStyle=function(e){var t,n={position:e.offsets.popper.position},r=Math.round(e.offsets.popper.left),i=Math.round(e.offsets.popper.top);return this._options.gpuAcceleration&&(t=f("transform"))?(n[t]="translate3d("+r+"px, "+i+"px, 0)",n.top=0,n.left=0):(n.left=r,n.top=i),Object.assign(n,e.styles),u(this._popper,n),this._popper.setAttribute("x-placement",e.placement),this.isModifierRequired(this.modifiers.applyStyle,this.modifiers.arrow)&&e.offsets.arrow&&u(e.arrowElement,e.offsets.arrow),e},n.prototype.modifiers.shift=function(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var i=e.offsets.reference,o=a(e.offsets.popper),s={y:{start:{top:i.top},end:{top:i.top+i.height-o.height}},x:{start:{left:i.left},end:{left:i.left+i.width-o.width}}},l=-1!==["bottom","top"].indexOf(n)?"x":"y";e.offsets.popper=Object.assign(o,s[l][r])}return e},n.prototype.modifiers.preventOverflow=function(e){var t=this._options.preventOverflowOrder,n=a(e.offsets.popper),r={left:function(){var t=n.left;return n.left<e.boundaries.left&&(t=Math.max(n.left,e.boundaries.left)),{left:t}},right:function(){var t=n.left;return n.right>e.boundaries.right&&(t=Math.min(n.left,e.boundaries.right-n.width)),{left:t}},top:function(){var t=n.top;return n.top<e.boundaries.top&&(t=Math.max(n.top,e.boundaries.top)),{top:t}},bottom:function(){var t=n.top;return n.bottom>e.boundaries.bottom&&(t=Math.min(n.top,e.boundaries.bottom-n.height)),{top:t}}};return t.forEach(function(t){e.offsets.popper=Object.assign(n,r[t]())}),e},n.prototype.modifiers.keepTogether=function(e){var t=a(e.offsets.popper),n=e.offsets.reference,r=Math.floor;return t.right<r(n.left)&&(e.offsets.popper.left=r(n.left)-t.width),t.left>r(n.right)&&(e.offsets.popper.left=r(n.right)),t.bottom<r(n.top)&&(e.offsets.popper.top=r(n.top)-t.height),t.top>r(n.bottom)&&(e.offsets.popper.top=r(n.bottom)),e},n.prototype.modifiers.flip=function(e){if(!this.isModifierRequired(this.modifiers.flip,this.modifiers.preventOverflow))return console.warn("WARNING: preventOverflow modifier is required by flip modifier in order to work, be sure to include it before flip!"),e;if(e.flipped&&e.placement===e._originalPlacement)return e;var t=e.placement.split("-")[0],n=i(t),r=e.placement.split("-")[1]||"",o=[];return(o="flip"===this._options.flipBehavior?[t,n]:this._options.flipBehavior).forEach(function(s,l){if(t===s&&o.length!==l+1){t=e.placement.split("-")[0],n=i(t);var c=a(e.offsets.popper),u=-1!==["right","bottom"].indexOf(t);(u&&Math.floor(e.offsets.reference[t])>Math.floor(c[n])||!u&&Math.floor(e.offsets.reference[t])<Math.floor(c[n]))&&(e.flipped=!0,e.placement=o[l+1],r&&(e.placement+="-"+r),e.offsets.popper=this._getOffsets(this._popper,this._reference,e.placement).popper,e=this.runModifiers(e,this._options.modifiers,this._flip))}}.bind(this)),e},n.prototype.modifiers.offset=function(e){var t=this._options.offset,n=e.offsets.popper;return-1!==e.placement.indexOf("left")?n.top-=t:-1!==e.placement.indexOf("right")?n.top+=t:-1!==e.placement.indexOf("top")?n.left-=t:-1!==e.placement.indexOf("bottom")&&(n.left+=t),e},n.prototype.modifiers.arrow=function(e){var t=this._options.arrowElement,n=this._options.arrowOffset;if("string"==typeof t&&(t=this._popper.querySelector(t)),!t)return e;if(!this._popper.contains(t))return console.warn("WARNING: `arrowElement` must be child of its popper element!"),e;if(!this.isModifierRequired(this.modifiers.arrow,this.modifiers.keepTogether))return console.warn("WARNING: keepTogether modifier is required by arrow modifier in order to work, be sure to include it before arrow!"),e;var i={},o=e.placement.split("-")[0],s=a(e.offsets.popper),l=e.offsets.reference,c=-1!==["left","right"].indexOf(o),u=c?"height":"width",h=c?"top":"left",d=c?"left":"top",f=c?"bottom":"right",p=r(t)[u];l[f]-p<s[h]&&(e.offsets.popper[h]-=s[h]-(l[f]-p)),l[h]+p>s[f]&&(e.offsets.popper[h]+=l[h]+p-s[f]);var A=l[h]+(n||l[u]/2-p/2)-s[h];return A=Math.max(Math.min(s[u]-p-8,A),8),i[h]=A,i[d]="",e.offsets.arrow=i,e.arrowElement=t,e},Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(void 0===e||null===e)throw new TypeError("Cannot convert first argument to object");for(var t=Object(e),n=1;n<arguments.length;n++){var r=arguments[n];if(void 0!==r&&null!==r){r=Object(r);for(var i=Object.keys(r),a=0,o=i.length;a<o;a++){var s=i[a],l=Object.getOwnPropertyDescriptor(r,s);void 0!==l&&l.enumerable&&(t[s]=r[s])}}}return t}}),n})?r.call(t,n,t,e):r)||(e.exports=i)},"NWt+":function(e,t,n){var r=n("+ZMJ"),i=n("msXi"),a=n("Mhyx"),o=n("77Pl"),s=n("QRG4"),l=n("3fs2"),c={},u={};(t=e.exports=function(e,t,n,h,d){var f,p,A,g,m=d?function(){return e}:l(e),v=r(n,h,t?2:1),y=0;if("function"!=typeof m)throw TypeError(e+" is not iterable!");if(a(m)){for(f=s(e.length);f>y;y++)if((g=t?v(o(p=e[y])[0],p[1]):v(e[y]))===c||g===u)return g}else for(A=m.call(e);!(p=A.next()).done;)if((g=i(A,v,p.value,t))===c||g===u)return g}).BREAK=c,t.RETURN=u},NYxO:function(e,t,n){"use strict";(function(e){var n=("undefined"!=typeof window?window:void 0!==e?e:{}).__VUE_DEVTOOLS_GLOBAL_HOOK__;function r(e,t){if(void 0===t&&(t=[]),null===e||"object"!=typeof e)return e;var n,i=(n=function(t){return t.original===e},t.filter(n)[0]);if(i)return i.copy;var a=Array.isArray(e)?[]:{};return t.push({original:e,copy:a}),Object.keys(e).forEach(function(n){a[n]=r(e[n],t)}),a}function i(e,t){Object.keys(e).forEach(function(n){return t(e[n],n)})}function a(e){return null!==e&&"object"==typeof e}var o=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var n=e.state;this.state=("function"==typeof n?n():n)||{}},s={namespaced:{configurable:!0}};s.namespaced.get=function(){return!!this._rawModule.namespaced},o.prototype.addChild=function(e,t){this._children[e]=t},o.prototype.removeChild=function(e){delete this._children[e]},o.prototype.getChild=function(e){return this._children[e]},o.prototype.hasChild=function(e){return e in this._children},o.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},o.prototype.forEachChild=function(e){i(this._children,e)},o.prototype.forEachGetter=function(e){this._rawModule.getters&&i(this._rawModule.getters,e)},o.prototype.forEachAction=function(e){this._rawModule.actions&&i(this._rawModule.actions,e)},o.prototype.forEachMutation=function(e){this._rawModule.mutations&&i(this._rawModule.mutations,e)},Object.defineProperties(o.prototype,s);var l=function(e){this.register([],e,!1)};l.prototype.get=function(e){return e.reduce(function(e,t){return e.getChild(t)},this.root)},l.prototype.getNamespace=function(e){var t=this.root;return e.reduce(function(e,n){return e+((t=t.getChild(n)).namespaced?n+"/":"")},"")},l.prototype.update=function(e){!function e(t,n,r){0;n.update(r);if(r.modules)for(var i in r.modules){if(!n.getChild(i))return void 0;e(t.concat(i),n.getChild(i),r.modules[i])}}([],this.root,e)},l.prototype.register=function(e,t,n){var r=this;void 0===n&&(n=!0);var a=new o(t,n);0===e.length?this.root=a:this.get(e.slice(0,-1)).addChild(e[e.length-1],a);t.modules&&i(t.modules,function(t,i){r.register(e.concat(i),t,n)})},l.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1],r=t.getChild(n);r&&r.runtime&&t.removeChild(n)},l.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1];return!!t&&t.hasChild(n)};var c;var u=function(e){var t=this;void 0===e&&(e={}),!c&&"undefined"!=typeof window&&window.Vue&&v(window.Vue);var r=e.plugins;void 0===r&&(r=[]);var i=e.strict;void 0===i&&(i=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new l(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new c,this._makeLocalGettersCache=Object.create(null);var a=this,o=this.dispatch,s=this.commit;this.dispatch=function(e,t){return o.call(a,e,t)},this.commit=function(e,t,n){return s.call(a,e,t,n)},this.strict=i;var u=this._modules.root.state;A(this,u,[],this._modules.root),p(this,u),r.forEach(function(e){return e(t)}),(void 0!==e.devtools?e.devtools:c.config.devtools)&&function(e){n&&(e._devtoolHook=n,n.emit("vuex:init",e),n.on("vuex:travel-to-state",function(t){e.replaceState(t)}),e.subscribe(function(e,t){n.emit("vuex:mutation",e,t)},{prepend:!0}),e.subscribeAction(function(e,t){n.emit("vuex:action",e,t)},{prepend:!0}))}(this)},h={state:{configurable:!0}};function d(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function f(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;A(e,n,[],e._modules.root,!0),p(e,n,t)}function p(e,t,n){var r=e._vm;e.getters={},e._makeLocalGettersCache=Object.create(null);var a={};i(e._wrappedGetters,function(t,n){a[n]=function(e,t){return function(){return e(t)}}(t,e),Object.defineProperty(e.getters,n,{get:function(){return e._vm[n]},enumerable:!0})});var o=c.config.silent;c.config.silent=!0,e._vm=new c({data:{$$state:t},computed:a}),c.config.silent=o,e.strict&&function(e){e._vm.$watch(function(){return this._data.$$state},function(){0},{deep:!0,sync:!0})}(e),r&&(n&&e._withCommit(function(){r._data.$$state=null}),c.nextTick(function(){return r.$destroy()}))}function A(e,t,n,r,i){var a=!n.length,o=e._modules.getNamespace(n);if(r.namespaced&&(e._modulesNamespaceMap[o],e._modulesNamespaceMap[o]=r),!a&&!i){var s=g(t,n.slice(0,-1)),l=n[n.length-1];e._withCommit(function(){c.set(s,l,r.state)})}var u=r.context=function(e,t,n){var r=""===t,i={dispatch:r?e.dispatch:function(n,r,i){var a=m(n,r,i),o=a.payload,s=a.options,l=a.type;return s&&s.root||(l=t+l),e.dispatch(l,o)},commit:r?e.commit:function(n,r,i){var a=m(n,r,i),o=a.payload,s=a.options,l=a.type;s&&s.root||(l=t+l),e.commit(l,o,s)}};return Object.defineProperties(i,{getters:{get:r?function(){return e.getters}:function(){return function(e,t){if(!e._makeLocalGettersCache[t]){var n={},r=t.length;Object.keys(e.getters).forEach(function(i){if(i.slice(0,r)===t){var a=i.slice(r);Object.defineProperty(n,a,{get:function(){return e.getters[i]},enumerable:!0})}}),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}(e,t)}},state:{get:function(){return g(e.state,n)}}}),i}(e,o,n);r.forEachMutation(function(t,n){!function(e,t,n,r){(e._mutations[t]||(e._mutations[t]=[])).push(function(t){n.call(e,r.state,t)})}(e,o+n,t,u)}),r.forEachAction(function(t,n){var r=t.root?n:o+n,i=t.handler||t;!function(e,t,n,r){(e._actions[t]||(e._actions[t]=[])).push(function(t){var i,a=n.call(e,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:e.getters,rootState:e.state},t);return(i=a)&&"function"==typeof i.then||(a=Promise.resolve(a)),e._devtoolHook?a.catch(function(t){throw e._devtoolHook.emit("vuex:error",t),t}):a})}(e,r,i,u)}),r.forEachGetter(function(t,n){!function(e,t,n,r){if(e._wrappedGetters[t])return void 0;e._wrappedGetters[t]=function(e){return n(r.state,r.getters,e.state,e.getters)}}(e,o+n,t,u)}),r.forEachChild(function(r,a){A(e,t,n.concat(a),r,i)})}function g(e,t){return t.reduce(function(e,t){return e[t]},e)}function m(e,t,n){return a(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}function v(e){c&&e===c||
  42. /*!
  43. * vuex v3.6.2
  44. * (c) 2021 Evan You
  45. * @license MIT
  46. */
  47. function(e){if(Number(e.version.split(".")[0])>=2)e.mixin({beforeCreate:n});else{var t=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[n].concat(e.init):n,t.call(this,e)}}function n(){var e=this.$options;e.store?this.$store="function"==typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}(c=e)}h.state.get=function(){return this._vm._data.$$state},h.state.set=function(e){0},u.prototype.commit=function(e,t,n){var r=this,i=m(e,t,n),a=i.type,o=i.payload,s=(i.options,{type:a,payload:o}),l=this._mutations[a];l&&(this._withCommit(function(){l.forEach(function(e){e(o)})}),this._subscribers.slice().forEach(function(e){return e(s,r.state)}))},u.prototype.dispatch=function(e,t){var n=this,r=m(e,t),i=r.type,a=r.payload,o={type:i,payload:a},s=this._actions[i];if(s){try{this._actionSubscribers.slice().filter(function(e){return e.before}).forEach(function(e){return e.before(o,n.state)})}catch(e){0}var l=s.length>1?Promise.all(s.map(function(e){return e(a)})):s[0](a);return new Promise(function(e,t){l.then(function(t){try{n._actionSubscribers.filter(function(e){return e.after}).forEach(function(e){return e.after(o,n.state)})}catch(e){0}e(t)},function(e){try{n._actionSubscribers.filter(function(e){return e.error}).forEach(function(t){return t.error(o,n.state,e)})}catch(e){0}t(e)})})}},u.prototype.subscribe=function(e,t){return d(e,this._subscribers,t)},u.prototype.subscribeAction=function(e,t){return d("function"==typeof e?{before:e}:e,this._actionSubscribers,t)},u.prototype.watch=function(e,t,n){var r=this;return this._watcherVM.$watch(function(){return e(r.state,r.getters)},t,n)},u.prototype.replaceState=function(e){var t=this;this._withCommit(function(){t._vm._data.$$state=e})},u.prototype.registerModule=function(e,t,n){void 0===n&&(n={}),"string"==typeof e&&(e=[e]),this._modules.register(e,t),A(this,this.state,e,this._modules.get(e),n.preserveState),p(this,this.state)},u.prototype.unregisterModule=function(e){var t=this;"string"==typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit(function(){var n=g(t.state,e.slice(0,-1));c.delete(n,e[e.length-1])}),f(this)},u.prototype.hasModule=function(e){return"string"==typeof e&&(e=[e]),this._modules.isRegistered(e)},u.prototype.hotUpdate=function(e){this._modules.update(e),f(this,!0)},u.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(u.prototype,h);var y=C(function(e,t){var n={};return _(t).forEach(function(t){var r=t.key,i=t.val;n[r]=function(){var t=this.$store.state,n=this.$store.getters;if(e){var r=S(this.$store,"mapState",e);if(!r)return;t=r.context.state,n=r.context.getters}return"function"==typeof i?i.call(this,t,n):t[i]},n[r].vuex=!0}),n}),b=C(function(e,t){var n={};return _(t).forEach(function(t){var r=t.key,i=t.val;n[r]=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];var r=this.$store.commit;if(e){var a=S(this.$store,"mapMutations",e);if(!a)return;r=a.context.commit}return"function"==typeof i?i.apply(this,[r].concat(t)):r.apply(this.$store,[i].concat(t))}}),n}),w=C(function(e,t){var n={};return _(t).forEach(function(t){var r=t.key,i=t.val;i=e+i,n[r]=function(){if(!e||S(this.$store,"mapGetters",e))return this.$store.getters[i]},n[r].vuex=!0}),n}),x=C(function(e,t){var n={};return _(t).forEach(function(t){var r=t.key,i=t.val;n[r]=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];var r=this.$store.dispatch;if(e){var a=S(this.$store,"mapActions",e);if(!a)return;r=a.context.dispatch}return"function"==typeof i?i.apply(this,[r].concat(t)):r.apply(this.$store,[i].concat(t))}}),n});function _(e){return function(e){return Array.isArray(e)||a(e)}(e)?Array.isArray(e)?e.map(function(e){return{key:e,val:e}}):Object.keys(e).map(function(t){return{key:t,val:e[t]}}):[]}function C(e){return function(t,n){return"string"!=typeof t?(n=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,n)}}function S(e,t,n){return e._modulesNamespaceMap[n]}function k(e,t,n){var r=n?e.groupCollapsed:e.group;try{r.call(e,t)}catch(n){e.log(t)}}function B(e){try{e.groupEnd()}catch(t){e.log("—— log end ——")}}function E(){var e=new Date;return" @ "+T(e.getHours(),2)+":"+T(e.getMinutes(),2)+":"+T(e.getSeconds(),2)+"."+T(e.getMilliseconds(),3)}function T(e,t){return n="0",r=t-e.toString().length,new Array(r+1).join(n)+e;var n,r}var I={Store:u,install:v,version:"3.6.2",mapState:y,mapMutations:b,mapGetters:w,mapActions:x,createNamespacedHelpers:function(e){return{mapState:y.bind(null,e),mapGetters:w.bind(null,e),mapMutations:b.bind(null,e),mapActions:x.bind(null,e)}},createLogger:function(e){void 0===e&&(e={});var t=e.collapsed;void 0===t&&(t=!0);var n=e.filter;void 0===n&&(n=function(e,t,n){return!0});var i=e.transformer;void 0===i&&(i=function(e){return e});var a=e.mutationTransformer;void 0===a&&(a=function(e){return e});var o=e.actionFilter;void 0===o&&(o=function(e,t){return!0});var s=e.actionTransformer;void 0===s&&(s=function(e){return e});var l=e.logMutations;void 0===l&&(l=!0);var c=e.logActions;void 0===c&&(c=!0);var u=e.logger;return void 0===u&&(u=console),function(e){var h=r(e.state);void 0!==u&&(l&&e.subscribe(function(e,o){var s=r(o);if(n(e,h,s)){var l=E(),c=a(e),d="mutation "+e.type+l;k(u,d,t),u.log("%c prev state","color: #9E9E9E; font-weight: bold",i(h)),u.log("%c mutation","color: #03A9F4; font-weight: bold",c),u.log("%c next state","color: #4CAF50; font-weight: bold",i(s)),B(u)}h=s}),c&&e.subscribeAction(function(e,n){if(o(e,n)){var r=E(),i=s(e),a="action "+e.type+r;k(u,a,t),u.log("%c action","color: #03A9F4; font-weight: bold",i),B(u)}}))}}};t.a=I}).call(t,n("DuR2"))},NpIQ:function(e,t){t.f={}.propertyIsEnumerable},O4g8:function(e,t){e.exports=!0},OAzY:function(e,t,n){"use strict";t.__esModule=!0;var r,i=n("7+uW"),a=(r=i)&&r.__esModule?r:{default:r},o=n("2kvA");var s=!1,l=!1,c=void 0,u=function(){if(!a.default.prototype.$isServer){var e=d.modalDom;return e?s=!0:(s=!1,e=document.createElement("div"),d.modalDom=e,e.addEventListener("touchmove",function(e){e.preventDefault(),e.stopPropagation()}),e.addEventListener("click",function(){d.doOnModalClick&&d.doOnModalClick()})),e}},h={},d={modalFade:!0,getInstance:function(e){return h[e]},register:function(e,t){e&&t&&(h[e]=t)},deregister:function(e){e&&(h[e]=null,delete h[e])},nextZIndex:function(){return d.zIndex++},modalStack:[],doOnModalClick:function(){var e=d.modalStack[d.modalStack.length-1];if(e){var t=d.getInstance(e.id);t&&t.closeOnClickModal&&t.close()}},openModal:function(e,t,n,r,i){if(!a.default.prototype.$isServer&&e&&void 0!==t){this.modalFade=i;for(var l=this.modalStack,c=0,h=l.length;c<h;c++){if(l[c].id===e)return}var d=u();if((0,o.addClass)(d,"v-modal"),this.modalFade&&!s&&(0,o.addClass)(d,"v-modal-enter"),r)r.trim().split(/\s+/).forEach(function(e){return(0,o.addClass)(d,e)});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),t&&(d.style.zIndex=t),d.tabIndex=0,d.style.display="",this.modalStack.push({id:e,zIndex:t,modalClass:r})}},closeModal:function(e){var t=this.modalStack,n=u();if(t.length>0){var r=t[t.length-1];if(r.id===e){if(r.modalClass)r.modalClass.trim().split(/\s+/).forEach(function(e){return(0,o.removeClass)(n,e)});t.pop(),t.length>0&&(n.style.zIndex=t[t.length-1].zIndex)}else for(var i=t.length-1;i>=0;i--)if(t[i].id===e){t.splice(i,1);break}}0===t.length&&(this.modalFade&&(0,o.addClass)(n,"v-modal-leave"),setTimeout(function(){0===t.length&&(n.parentNode&&n.parentNode.removeChild(n),n.style.display="none",d.modalDom=void 0),(0,o.removeClass)(n,"v-modal-leave")},200))}};Object.defineProperty(d,"zIndex",{configurable:!0,get:function(){return l||(c=c||(a.default.prototype.$ELEMENT||{}).zIndex||2e3,l=!0),c},set:function(e){c=e}});a.default.prototype.$isServer||window.addEventListener("keydown",function(e){if(27===e.keyCode){var t=function(){if(!a.default.prototype.$isServer&&d.modalStack.length>0){var e=d.modalStack[d.modalStack.length-1];if(!e)return;return d.getInstance(e.id)}}();t&&t.closeOnPressEscape&&(t.handleClose?t.handleClose():t.handleAction?t.handleAction("cancel"):t.close())}}),t.default=d},ON07:function(e,t,n){var r=n("EqjI"),i=n("7KvD").document,a=r(i)&&r(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},ON3O:function(e,t,n){var r=n("uY1a");e.exports=function(e,t,n){return void 0===n?r(e,t,!1):r(e,n,!1!==t)}},OYls:function(e,t,n){n("crlp")("asyncIterator")},"Oi+a":function(e,t,n){"use strict";var r=n("dIwP"),i=n("qRfI");e.exports=function(e,t){return e&&!r(t)?i(e,t):t}},OvRC:function(e,t,n){e.exports={default:n("oM7Q"),__esModule:!0}},PiFy:function(e,t,n){"use strict";var r=n("fRHV");e.exports=Function.prototype.bind||r},PzxK:function(e,t,n){var r=n("D2L2"),i=n("sB3e"),a=n("ax3d")("IE_PROTO"),o=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,a)?e[a]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?o:null}},QRG4:function(e,t,n){var r=n("UuGF"),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},"QWe/":function(e,t,n){n("crlp")("observable")},R4wc:function(e,t,n){var r=n("kM2E");r(r.S+r.F,"Object",{assign:n("To3L")})},R9M2:function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},RDoK:function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=116)}({0:function(e,t,n){"use strict";function r(e,t,n,r,i,a,o,s){var l,c="function"==typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),a&&(c._scopeId="data-v-"+a),o?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},c._ssrRegister=l):i&&(l=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,l):[l]}return{exports:e,options:c}}n.d(t,"a",function(){return r})},116:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("label",{staticClass:"el-radio",class:[e.border&&e.radioSize?"el-radio--"+e.radioSize:"",{"is-disabled":e.isDisabled},{"is-focus":e.focus},{"is-bordered":e.border},{"is-checked":e.model===e.label}],attrs:{role:"radio","aria-checked":e.model===e.label,"aria-disabled":e.isDisabled,tabindex:e.tabIndex},on:{keydown:function(t){if(!("button"in t)&&e._k(t.keyCode,"space",32,t.key,[" ","Spacebar"]))return null;t.stopPropagation(),t.preventDefault(),e.model=e.isDisabled?e.model:e.label}}},[n("span",{staticClass:"el-radio__input",class:{"is-disabled":e.isDisabled,"is-checked":e.model===e.label}},[n("span",{staticClass:"el-radio__inner"}),n("input",{directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],ref:"radio",staticClass:"el-radio__original",attrs:{type:"radio","aria-hidden":"true",name:e.name,disabled:e.isDisabled,tabindex:"-1"},domProps:{value:e.label,checked:e._q(e.model,e.label)},on:{focus:function(t){e.focus=!0},blur:function(t){e.focus=!1},change:[function(t){e.model=e.label},e.handleChange]}})]),n("span",{staticClass:"el-radio__label",on:{keydown:function(e){e.stopPropagation()}}},[e._t("default"),e.$slots.default?e._e():[e._v(e._s(e.label))]],2)])};r._withStripped=!0;var i=n(4),a={name:"ElRadio",mixins:[n.n(i).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 e=this.$parent;e;){if("ElRadioGroup"===e.$options.componentName)return this._radioGroup=e,!0;e=e.$parent}return!1},model:{get:function(){return this.isGroup?this._radioGroup.value:this.value},set:function(e){this.isGroup?this.dispatch("ElRadioGroup","input",[e]):this.$emit("input",e),this.$refs.radio&&(this.$refs.radio.checked=this.model===this.label)}},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},radioSize:function(){var e=this.size||this._elFormItemSize||(this.$ELEMENT||{}).size;return this.isGroup&&this._radioGroup.radioGroupSize||e},isDisabled:function(){return this.isGroup?this._radioGroup.disabled||this.disabled||(this.elForm||{}).disabled:this.disabled||(this.elForm||{}).disabled},tabIndex:function(){return this.isDisabled||this.isGroup&&this.model!==this.label?-1:0}},methods:{handleChange:function(){var e=this;this.$nextTick(function(){e.$emit("change",e.model),e.isGroup&&e.dispatch("ElRadioGroup","handleChange",e.model)})}}},o=n(0),s=Object(o.a)(a,r,[],!1,null,null,null);s.options.__file="packages/radio/src/radio.vue";var l=s.exports;l.install=function(e){e.component(l.name,l)};t.default=l},4:function(e,t){e.exports=n("fPll")}})},RPLV:function(e,t,n){var r=n("7KvD").document;e.exports=r&&r.documentElement},"RY/4":function(e,t,n){var r=n("R9M2"),i=n("dSzd")("toStringTag"),a="Arguments"==r(function(){return arguments}());e.exports=function(e){var t,n,o;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),i))?n:a?r(t):"Object"==(o=r(t))&&"function"==typeof t.callee?"Arguments":o}},Rl2i:function(e,t){e.exports=function(e){if(!e)return!1;var t=n.call(e);return"[object Function]"===t||"function"==typeof e&&"[object RegExp]"!==t||"undefined"!=typeof window&&(e===window.setTimeout||e===window.alert||e===window.confirm||e===window.prompt)};var n=Object.prototype.toString},Rrel:function(e,t,n){var r=n("TcQ7"),i=n("n0T6").f,a={}.toString,o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return o&&"[object Window]"==a.call(e)?function(e){try{return i(e)}catch(e){return o.slice()}}(e):i(r(e))}},S82l:function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},SLDG:function(e,t,n){"use strict";e.exports=function(e){return"object"==typeof e&&!0===e.isAxiosError}},STLj:function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=53)}({0:function(e,t,n){"use strict";function r(e,t,n,r,i,a,o,s){var l,c="function"==typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),a&&(c._scopeId="data-v-"+a),o?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},c._ssrRegister=l):i&&(l=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,l):[l]}return{exports:e,options:c}}n.d(t,"a",function(){return r})},3:function(e,t){e.exports=n("ylDJ")},33:function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("li",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-select-dropdown__item",class:{selected:e.itemSelected,"is-disabled":e.disabled||e.groupDisabled||e.limitReached,hover:e.hover},on:{mouseenter:e.hoverItem,click:function(t){return t.stopPropagation(),e.selectOptionClick(t)}}},[e._t("default",[n("span",[e._v(e._s(e.currentLabel))])])],2)};r._withStripped=!0;var i=n(4),a=n.n(i),o=n(3),s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},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(e,t){var n=this.select,r=n.remote,i=n.valueKey;if(!this.created&&!r){if(i&&"object"===(void 0===e?"undefined":s(e))&&"object"===(void 0===t?"undefined":s(t))&&e[i]===t[i])return;this.dispatch("ElSelect","setSelected")}}},methods:{isEqual:function(e,t){if(this.isObject){var n=this.select.valueKey;return Object(o.getValueByPath)(e,n)===Object(o.getValueByPath)(t,n)}return e===t},contains:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];if(this.isObject){var n=this.select.valueKey;return e&&e.some(function(e){return Object(o.getValueByPath)(e,n)===Object(o.getValueByPath)(t,n)})}return e&&e.indexOf(t)>-1},handleGroupDisabled:function(e){this.groupDisabled=e},hoverItem:function(){this.disabled||this.groupDisabled||(this.select.hoverIndex=this.select.options.indexOf(this))},selectOptionClick:function(){!0!==this.disabled&&!0!==this.groupDisabled&&this.dispatch("ElSelect","handleOptionClick",[this,!0])},queryChange:function(e){this.visible=new RegExp(Object(o.escapeRegexpString)(e),"i").test(this.currentLabel)||this.created,this.visible||this.select.filteredOptionsCount--}},created:function(){this.select.options.push(this),this.select.cachedOptions.push(this),this.select.optionsCount++,this.select.filteredOptionsCount++,this.$on("queryChange",this.queryChange),this.$on("handleGroupDisabled",this.handleGroupDisabled)},beforeDestroy:function(){var e=this.select,t=e.selected,n=e.multiple?t:[t],r=this.select.cachedOptions.indexOf(this),i=n.indexOf(this);r>-1&&i<0&&this.select.cachedOptions.splice(r,1),this.select.onOptionDestroy(this.select.options.indexOf(this))}},c=n(0),u=Object(c.a)(l,r,[],!1,null,null,null);u.options.__file="packages/select/src/option.vue";t.a=u.exports},4:function(e,t){e.exports=n("fPll")},53:function(e,t,n){"use strict";n.r(t);var r=n(33);r.a.install=function(e){e.component(r.a.name,r.a)},t.default=r.a}})},SXzR:function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=74)}({0:function(e,t,n){"use strict";function r(e,t,n,r,i,a,o,s){var l,c="function"==typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),a&&(c._scopeId="data-v-"+a),o?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},c._ssrRegister=l):i&&(l=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,l):[l]}return{exports:e,options:c}}n.d(t,"a",function(){return r})},2:function(e,t){e.exports=n("2kvA")},3:function(e,t){e.exports=n("ylDJ")},5:function(e,t){e.exports=n("fKx3")},7:function(e,t){e.exports=n("7+uW")},74:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("span",[n("transition",{attrs:{name:e.transition},on:{"after-enter":e.handleAfterEnter,"after-leave":e.handleAfterLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:!e.disabled&&e.showPopper,expression:"!disabled && showPopper"}],ref:"popper",staticClass:"el-popover el-popper",class:[e.popperClass,e.content&&"el-popover--plain"],style:{width:e.width+"px"},attrs:{role:"tooltip",id:e.tooltipId,"aria-hidden":e.disabled||!e.showPopper?"true":"false"}},[e.title?n("div",{staticClass:"el-popover__title",domProps:{textContent:e._s(e.title)}}):e._e(),e._t("default",[e._v(e._s(e.content))])],2)]),n("span",{ref:"wrapper",staticClass:"el-popover__reference-wrapper"},[e._t("reference")],2)],1)};r._withStripped=!0;var i=n(5),a=n.n(i),o=n(2),s=n(3),l={name:"ElPopover",mixins:[a.a],props:{trigger:{type:String,default:"click",validator:function(e){return["click","focus","hover","manual"].indexOf(e)>-1}},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:200},title:String,disabled:Boolean,content:String,reference:{},popperClass:String,width:{},visibleArrow:{default:!0},arrowOffset:{type:Number,default:0},transition:{type:String,default:"fade-in-linear"},tabindex:{type:Number,default:0}},computed:{tooltipId:function(){return"el-popover-"+Object(s.generateId)()}},watch:{showPopper:function(e){this.disabled||(e?this.$emit("show"):this.$emit("hide"))}},mounted:function(){var e=this,t=this.referenceElm=this.reference||this.$refs.reference,n=this.popper||this.$refs.popper;!t&&this.$refs.wrapper.children&&(t=this.referenceElm=this.$refs.wrapper.children[0]),t&&(Object(o.addClass)(t,"el-popover__reference"),t.setAttribute("aria-describedby",this.tooltipId),t.setAttribute("tabindex",this.tabindex),n.setAttribute("tabindex",0),"click"!==this.trigger&&(Object(o.on)(t,"focusin",function(){e.handleFocus();var n=t.__vue__;n&&"function"==typeof n.focus&&n.focus()}),Object(o.on)(n,"focusin",this.handleFocus),Object(o.on)(t,"focusout",this.handleBlur),Object(o.on)(n,"focusout",this.handleBlur)),Object(o.on)(t,"keydown",this.handleKeydown),Object(o.on)(t,"click",this.handleClick)),"click"===this.trigger?(Object(o.on)(t,"click",this.doToggle),Object(o.on)(document,"click",this.handleDocumentClick)):"hover"===this.trigger?(Object(o.on)(t,"mouseenter",this.handleMouseEnter),Object(o.on)(n,"mouseenter",this.handleMouseEnter),Object(o.on)(t,"mouseleave",this.handleMouseLeave),Object(o.on)(n,"mouseleave",this.handleMouseLeave)):"focus"===this.trigger&&(this.tabindex<0&&console.warn("[Element Warn][Popover]a negative taindex means that the element cannot be focused by tab key"),t.querySelector("input, textarea")?(Object(o.on)(t,"focusin",this.doShow),Object(o.on)(t,"focusout",this.doClose)):(Object(o.on)(t,"mousedown",this.doShow),Object(o.on)(t,"mouseup",this.doClose)))},beforeDestroy:function(){this.cleanup()},deactivated:function(){this.cleanup()},methods:{doToggle:function(){this.showPopper=!this.showPopper},doShow:function(){this.showPopper=!0},doClose:function(){this.showPopper=!1},handleFocus:function(){Object(o.addClass)(this.referenceElm,"focusing"),"click"!==this.trigger&&"focus"!==this.trigger||(this.showPopper=!0)},handleClick:function(){Object(o.removeClass)(this.referenceElm,"focusing")},handleBlur:function(){Object(o.removeClass)(this.referenceElm,"focusing"),"click"!==this.trigger&&"focus"!==this.trigger||(this.showPopper=!1)},handleMouseEnter:function(){var e=this;clearTimeout(this._timer),this.openDelay?this._timer=setTimeout(function(){e.showPopper=!0},this.openDelay):this.showPopper=!0},handleKeydown:function(e){27===e.keyCode&&"manual"!==this.trigger&&this.doClose()},handleMouseLeave:function(){var e=this;clearTimeout(this._timer),this.closeDelay?this._timer=setTimeout(function(){e.showPopper=!1},this.closeDelay):this.showPopper=!1},handleDocumentClick:function(e){var t=this.reference||this.$refs.reference,n=this.popper||this.$refs.popper;!t&&this.$refs.wrapper.children&&(t=this.referenceElm=this.$refs.wrapper.children[0]),this.$el&&t&&!this.$el.contains(e.target)&&!t.contains(e.target)&&n&&!n.contains(e.target)&&(this.showPopper=!1)},handleAfterEnter:function(){this.$emit("after-enter")},handleAfterLeave:function(){this.$emit("after-leave"),this.doDestroy()},cleanup:function(){(this.openDelay||this.closeDelay)&&clearTimeout(this._timer)}},destroyed:function(){var e=this.reference;Object(o.off)(e,"click",this.doToggle),Object(o.off)(e,"mouseup",this.doClose),Object(o.off)(e,"mousedown",this.doShow),Object(o.off)(e,"focusin",this.doShow),Object(o.off)(e,"focusout",this.doClose),Object(o.off)(e,"mousedown",this.doShow),Object(o.off)(e,"mouseup",this.doClose),Object(o.off)(e,"mouseleave",this.handleMouseLeave),Object(o.off)(e,"mouseenter",this.handleMouseEnter),Object(o.off)(document,"click",this.handleDocumentClick)}},c=n(0),u=Object(c.a)(l,r,[],!1,null,null,null);u.options.__file="packages/popover/src/main.vue";var h=u.exports,d=function(e,t,n){var r=t.expression?t.value:t.arg,i=n.context.$refs[r];i&&(Array.isArray(i)?i[0].$refs.reference=e:i.$refs.reference=e)},f={bind:function(e,t,n){d(e,t,n)},inserted:function(e,t,n){d(e,t,n)}},p=n(7);n.n(p).a.directive("popover",f),h.install=function(e){e.directive("popover",f),e.component(h.name,h)},h.directive=f;t.default=h}})},SfB7:function(e,t,n){e.exports=!n("+E39")&&!n("S82l")(function(){return 7!=Object.defineProperty(n("ON07")("div"),"a",{get:function(){return 7}}).a})},SldL:function(e,t){!function(t){"use strict";var n,r=Object.prototype,i=r.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag",c="object"==typeof e,u=t.regeneratorRuntime;if(u)c&&(e.exports=u);else{(u=t.regeneratorRuntime=c?e.exports:{}).wrap=b;var h="suspendedStart",d="suspendedYield",f="executing",p="completed",A={},g={};g[o]=function(){return this};var m=Object.getPrototypeOf,v=m&&m(m(M([])));v&&v!==r&&i.call(v,o)&&(g=v);var y=C.prototype=x.prototype=Object.create(g);_.prototype=y.constructor=C,C.constructor=_,C[l]=_.displayName="GeneratorFunction",u.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===_||"GeneratorFunction"===(t.displayName||t.name))},u.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,C):(e.__proto__=C,l in e||(e[l]="GeneratorFunction")),e.prototype=Object.create(y),e},u.awrap=function(e){return{__await:e}},S(k.prototype),k.prototype[s]=function(){return this},u.AsyncIterator=k,u.async=function(e,t,n,r){var i=new k(b(e,t,n,r));return u.isGeneratorFunction(t)?i:i.next().then(function(e){return e.done?e.value:i.next()})},S(y),y[l]="Generator",y[o]=function(){return this},y.toString=function(){return"[object Generator]"},u.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},u.values=M,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(T),!e)for(var t in this)"t"===t.charAt(0)&&i.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=n)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(r,i){return s.type="throw",s.arg=e,t.next=r,i&&(t.method="next",t.arg=n),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var l=i.call(o,"catchLoc"),c=i.call(o,"finallyLoc");if(l&&c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var a=r;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=e,o.arg=t,a?(this.method="next",this.next=a.finallyLoc,A):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),A},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),T(n),A}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;T(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:M(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=n),A}}}function b(e,t,n,r){var i=t&&t.prototype instanceof x?t:x,a=Object.create(i.prototype),o=new I(r||[]);return a._invoke=function(e,t,n){var r=h;return function(i,a){if(r===f)throw new Error("Generator is already running");if(r===p){if("throw"===i)throw a;return F()}for(n.method=i,n.arg=a;;){var o=n.delegate;if(o){var s=B(o,n);if(s){if(s===A)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===h)throw r=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=f;var l=w(e,t,n);if("normal"===l.type){if(r=n.done?p:d,l.arg===A)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r=p,n.method="throw",n.arg=l.arg)}}}(e,n,o),a}function w(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}function x(){}function _(){}function C(){}function S(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function k(e){var t;this._invoke=function(n,r){function a(){return new Promise(function(t,a){!function t(n,r,a,o){var s=w(e[n],e,r);if("throw"!==s.type){var l=s.arg,c=l.value;return c&&"object"==typeof c&&i.call(c,"__await")?Promise.resolve(c.__await).then(function(e){t("next",e,a,o)},function(e){t("throw",e,a,o)}):Promise.resolve(c).then(function(e){l.value=e,a(l)},o)}o(s.arg)}(n,r,t,a)})}return t=t?t.then(a,a):a()}}function B(e,t){var r=e.iterator[t.method];if(r===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=n,B(e,t),"throw"===t.method))return A;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return A}var i=w(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,A;var a=i.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=n),t.delegate=null,A):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,A)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function M(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(i.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=n,t.done=!0,t};return a.next=a}}return{next:F}}function F(){return{value:n,done:!0}}}(function(){return this}()||Function("return this")())},SvnF:function(e,t,n){"use strict";t.__esModule=!0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=function(e){return function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return 1===n.length&&"object"===r(n[0])&&(n=n[0]),n&&n.hasOwnProperty||(n={}),e.replace(a,function(t,r,a,o){var s=void 0;return"{"===e[o-1]&&"}"===e[o+t.length]?a:null===(s=(0,i.hasOwn)(n,a)?n[a]:null)||void 0===s?"":s})}};var i=n("ylDJ"),a=/(%|)\{([0-9a-zA-Z_]+)\}/g},TNV1:function(e,t,n){"use strict";var r=n("cGG2");e.exports=function(e,t,n){return r.forEach(n,function(n){e=n(e,t)}),e}},TQvf:function(e,t,n){
  48. /*!
  49. * clipboard.js v2.0.10
  50. * https://clipboardjs.com/
  51. *
  52. * Licensed MIT © Zeno Rocha
  53. */
  54. var r;r=function(){return function(){var e={686:function(e,t,n){"use strict";n.d(t,{default:function(){return b}});var r=n(279),i=n.n(r),a=n(370),o=n.n(a),s=n(817),l=n.n(s);function c(e){try{return document.execCommand(e)}catch(e){return!1}}var u=function(e){var t=l()(e);return c("cut"),t};var h=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body},n="";if("string"==typeof e){var r=function(e){var t="rtl"===document.documentElement.getAttribute("dir"),n=document.createElement("textarea");n.style.fontSize="12pt",n.style.border="0",n.style.padding="0",n.style.margin="0",n.style.position="absolute",n.style[t?"right":"left"]="-9999px";var r=window.pageYOffset||document.documentElement.scrollTop;return n.style.top="".concat(r,"px"),n.setAttribute("readonly",""),n.value=e,n}(e);t.container.appendChild(r),n=l()(r),c("copy"),r.remove()}else n=l()(e),c("copy");return n};function d(e){"@babel/helpers - typeof";return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var f=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.action,n=void 0===t?"copy":t,r=e.container,i=e.target,a=e.text;if("copy"!==n&&"cut"!==n)throw new Error('Invalid "action" value, use either "copy" or "cut"');if(void 0!==i){if(!i||"object"!==d(i)||1!==i.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===n&&i.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===n&&(i.hasAttribute("readonly")||i.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes')}return a?h(a,{container:r}):i?"cut"===n?u(i):h(i,{container:r}):void 0};function p(e){"@babel/helpers - typeof";return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function A(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function g(e,t){return(g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(e){var t=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(e){return!1}}();return function(){var n,r=v(e);if(t){var i=v(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===p(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function y(e,t){var n="data-clipboard-".concat(e);if(t.hasAttribute(n))return t.getAttribute(n)}var b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&g(e,t)}(s,i());var t,n,r,a=m(s);function s(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(n=a.call(this)).resolveOptions(t),n.listenClick(e),n}return t=s,r=[{key:"copy",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body};return h(e,t)}},{key:"cut",value:function(e){return u(e)}},{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t="string"==typeof e?[e]:e,n=!!document.queryCommandSupported;return t.forEach(function(e){n=n&&!!document.queryCommandSupported(e)}),n}}],(n=[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===p(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=o()(e,"click",function(e){return t.onClick(e)})}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget,n=this.action(t)||"copy",r=f({action:n,container:this.container,target:this.target(t),text:this.text(t)});this.emit(r?"success":"error",{action:n,text:r,trigger:t,clearSelection:function(){t&&t.focus(),document.activeElement.blur(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(e){return y("action",e)}},{key:"defaultTarget",value:function(e){var t=y("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return y("text",e)}},{key:"destroy",value:function(){this.listener.destroy()}}])&&A(t.prototype,n),r&&A(t,r),s}()},828:function(e){var t=9;if("undefined"!=typeof Element&&!Element.prototype.matches){var n=Element.prototype;n.matches=n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}e.exports=function(e,n){for(;e&&e.nodeType!==t;){if("function"==typeof e.matches&&e.matches(n))return e;e=e.parentNode}}},438:function(e,t,n){var r=n(828);function i(e,t,n,i,a){var o=function(e,t,n,i){return function(n){n.delegateTarget=r(n.target,t),n.delegateTarget&&i.call(e,n)}}.apply(this,arguments);return e.addEventListener(n,o,a),{destroy:function(){e.removeEventListener(n,o,a)}}}e.exports=function(e,t,n,r,a){return"function"==typeof e.addEventListener?i.apply(null,arguments):"function"==typeof n?i.bind(null,document).apply(null,arguments):("string"==typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,function(e){return i(e,t,n,r,a)}))}},879:function(e,t){t.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},t.nodeList=function(e){var n=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in e&&(0===e.length||t.node(e[0]))},t.string=function(e){return"string"==typeof e||e instanceof String},t.fn=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},370:function(e,t,n){var r=n(879),i=n(438);e.exports=function(e,t,n){if(!e&&!t&&!n)throw new Error("Missing required arguments");if(!r.string(t))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(e))return function(e,t,n){return e.addEventListener(t,n),{destroy:function(){e.removeEventListener(t,n)}}}(e,t,n);if(r.nodeList(e))return function(e,t,n){return Array.prototype.forEach.call(e,function(e){e.addEventListener(t,n)}),{destroy:function(){Array.prototype.forEach.call(e,function(e){e.removeEventListener(t,n)})}}}(e,t,n);if(r.string(e))return function(e,t,n){return i(document.body,e,t,n)}(e,t,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}},817:function(e){e.exports=function(e){var t;if("SELECT"===e.nodeName)e.focus(),t=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){var n=e.hasAttribute("readonly");n||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),n||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var r=window.getSelection(),i=document.createRange();i.selectNodeContents(e),r.removeAllRanges(),r.addRange(i),t=r.toString()}return t}},279:function(e){function t(){}t.prototype={on:function(e,t,n){var r=this.e||(this.e={});return(r[e]||(r[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var r=this;function i(){r.off(e,i),t.apply(n,arguments)}return i._=t,this.on(e,i,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),r=0,i=n.length;r<i;r++)n[r].fn.apply(n[r].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),r=n[e],i=[];if(r&&t)for(var a=0,o=r.length;a<o;a++)r[a].fn!==t&&r[a].fn._!==t&&i.push(r[a]);return i.length?n[e]=i:delete n[e],this}},e.exports=t,e.exports.TinyEmitter=t}},t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}return n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n(686)}().default},e.exports=r()},TcQ7:function(e,t,n){var r=n("MU5D"),i=n("52gC");e.exports=function(e){return r(i(e))}},TmV0:function(e,t,n){n("fZOM"),e.exports=n("FeBl").Object.values},To3L:function(e,t,n){"use strict";var r=n("+E39"),i=n("lktj"),a=n("1kS7"),o=n("NpIQ"),s=n("sB3e"),l=n("MU5D"),c=Object.assign;e.exports=!c||n("S82l")(function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=c({},e)[n]||Object.keys(c({},t)).join("")!=r})?function(e,t){for(var n=s(e),c=arguments.length,u=1,h=a.f,d=o.f;c>u;)for(var f,p=l(arguments[u++]),A=h?i(p).concat(h(p)):i(p),g=A.length,m=0;g>m;)f=A[m++],r&&!d.call(p,f)||(n[f]=p[f]);return n}:c},U5ju:function(e,t,n){n("M6a0"),n("zQR9"),n("+tPU"),n("CXw9"),n("EqBC"),n("jKW+"),e.exports=n("FeBl").Promise},UuGF:function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},V3tA:function(e,t,n){n("R4wc"),e.exports=n("FeBl").Object.assign},"VU/8":function(e,t){e.exports=function(e,t,n,r,i,a){var o,s=e=e||{},l=typeof e.default;"object"!==l&&"function"!==l||(o=e,s=e.default);var c,u="function"==typeof s?s.options:s;if(t&&(u.render=t.render,u.staticRenderFns=t.staticRenderFns,u._compiled=!0),n&&(u.functional=!0),i&&(u._scopeId=i),a?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=c):r&&(c=r),c){var h=u.functional,d=h?u.render:u.beforeCreate;h?(u._injectStyles=c,u.render=function(e,t){return c.call(t),d(e,t)}):u.beforeCreate=d?[].concat(d,c):[c]}return{esModule:o,exports:s,options:u}}},Vi3T:function(e,t,n){"use strict";t.__esModule=!0,t.default={el:{colorpicker:{confirm:"确定",clear:"清空"},datepicker:{now:"此刻",today:"今天",cancel:"取消",clear:"清空",confirm:"确定",selectDate:"选择日期",selectTime:"选择时间",startDate:"开始日期",startTime:"开始时间",endDate:"结束日期",endTime:"结束时间",prevYear:"前一年",nextYear:"后一年",prevMonth:"上个月",nextMonth:"下个月",year:"年",month1:"1 月",month2:"2 月",month3:"3 月",month4:"4 月",month5:"5 月",month6:"6 月",month7:"7 月",month8:"8 月",month9:"9 月",month10:"10 月",month11:"11 月",month12:"12 月",weeks:{sun:"日",mon:"一",tue:"二",wed:"三",thu:"四",fri:"五",sat:"六"},months:{jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月"}},select:{loading:"加载中",noMatch:"无匹配数据",noData:"无数据",placeholder:"请选择"},cascader:{noMatch:"无匹配数据",loading:"加载中",placeholder:"请选择",noData:"暂无数据"},pagination:{goto:"前往",pagesize:"条/页",total:"共 {total} 条",pageClassifier:"页"},messagebox:{title:"提示",confirm:"确定",cancel:"取消",error:"输入的数据不合法!"},upload:{deleteTip:"按 delete 键可删除",delete:"删除",preview:"查看图片",continue:"继续上传"},table:{emptyText:"暂无数据",confirmFilter:"筛选",resetFilter:"重置",clearFilter:"全部",sumText:"合计"},tree:{emptyText:"暂无数据"},transfer:{noMatch:"无匹配数据",noData:"无数据",titles:["列表 1","列表 2"],filterPlaceholder:"请输入搜索内容",noCheckedFormat:"共 {total} 项",hasCheckedFormat:"已选 {checked}/{total} 项"},image:{error:"加载失败"},pageHeader:{title:"返回"},popconfirm:{confirmButtonText:"确定",cancelButtonText:"取消"}}}},W2nU:function(e,t){var n,r,i=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:a}catch(e){n=a}try{r="function"==typeof clearTimeout?clearTimeout:o}catch(e){r=o}}();var l,c=[],u=!1,h=-1;function d(){u&&l&&(u=!1,l.length?c=l.concat(c):h=-1,c.length&&f())}function f(){if(!u){var e=s(d);u=!0;for(var t=c.length;t;){for(l=c,c=[];++h<t;)l&&l[h].run();h=-1,t=c.length}l=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===o||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function A(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new p(e,t)),1!==c.length||u||s(f)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=A,i.addListener=A,i.once=A,i.off=A,i.removeListener=A,i.removeAllListeners=A,i.emit=A,i.prependListener=A,i.prependOnceListener=A,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},WER7:function(e,t,n){"use strict";var r=n("PiFy"),i=n("7ar3"),a=i("%Function.prototype.apply%"),o=i("%Function.prototype.call%"),s=i("%Reflect.apply%",!0)||r.call(o,a),l=i("%Object.getOwnPropertyDescriptor%",!0),c=i("%Object.defineProperty%",!0),u=i("%Math.max%");if(c)try{c({},"a",{value:1})}catch(e){c=null}e.exports=function(e){var t=s(r,o,arguments);l&&c&&(l(t,"length").configurable&&c(t,"length",{value:1+u(0,e.length-(arguments.length-1))}));return t};var h=function(){return s(r,a,arguments)};c?c(e.exports,"apply",{value:h}):e.exports.apply=h},Wxq9:function(e,t,n){var r;window,r=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=10)}([function(e,t,n){"use strict";var r=n(3),i="object"==typeof self&&self&&self.Object===Object&&self,a=r.a||i||Function("return this")();t.a=a},function(e,t,n){e.exports=n(8)},function(e,n,r){"use strict";(function(e){var i=r(3),a="object"==typeof t&&t&&!t.nodeType&&t,o=a&&"object"==typeof e&&e&&!e.nodeType&&e,s=o&&o.exports===a&&i.a.process,l=function(){try{return o&&o.require&&o.require("util").types||s&&s.binding&&s.binding("util")}catch(e){}}();n.a=l}).call(this,r(5)(e))},function(e,t,n){"use strict";(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.a=n}).call(this,n(9))},function(e,n,r){"use strict";(function(e){var i=r(0),a=r(6),o="object"==typeof t&&t&&!t.nodeType&&t,s=o&&"object"==typeof e&&e&&!e.nodeType&&e,l=s&&s.exports===o?i.a.Buffer:void 0,c=(l?l.isBuffer:void 0)||a.a;n.a=c}).call(this,r(5)(e))},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);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}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e,t,n){"use strict";t.a=function(){return!1}},function(e,n,r){"use strict";(function(e){var i=r(0),a="object"==typeof t&&t&&!t.nodeType&&t,o=a&&"object"==typeof e&&e&&!e.nodeType&&e,s=o&&o.exports===a?i.a.Buffer:void 0,l=s?s.allocUnsafe:void 0;n.a=function(e,t){if(t)return e.slice();var n=e.length,r=l?l(n):new e.constructor(n);return e.copy(r),r}}).call(this,r(5)(e))},function(e){e.exports=JSON.parse('{"86":{"110000":"北京市","120000":"天津市","130000":"河北省","140000":"山西省","150000":"内蒙古自治区","210000":"辽宁省","220000":"吉林省","230000":"黑龙江省","310000":"上海市","320000":"江苏省","330000":"浙江省","340000":"安徽省","350000":"福建省","360000":"江西省","370000":"山东省","410000":"河南省","420000":"湖北省","430000":"湖南省","440000":"广东省","450000":"广西壮族自治区","460000":"海南省","500000":"重庆市","510000":"四川省","520000":"贵州省","530000":"云南省","540000":"西藏自治区","610000":"陕西省","620000":"甘肃省","630000":"青海省","640000":"宁夏回族自治区","650000":"新疆维吾尔自治区","710000":"台湾省","810000":"香港特别行政区","820000":"澳门特别行政区"},"110000":{"110100":"市辖区"},"110100":{"110101":"东城区","110102":"西城区","110105":"朝阳区","110106":"丰台区","110107":"石景山区","110108":"海淀区","110109":"门头沟区","110111":"房山区","110112":"通州区","110113":"顺义区","110114":"昌平区","110115":"大兴区","110116":"怀柔区","110117":"平谷区","110118":"密云区","110119":"延庆区"},"120000":{"120100":"市辖区"},"120100":{"120101":"和平区","120102":"河东区","120103":"河西区","120104":"南开区","120105":"河北区","120106":"红桥区","120110":"东丽区","120111":"西青区","120112":"津南区","120113":"北辰区","120114":"武清区","120115":"宝坻区","120116":"滨海新区","120117":"宁河区","120118":"静海区","120119":"蓟州区"},"130000":{"130100":"石家庄市","130200":"唐山市","130300":"秦皇岛市","130400":"邯郸市","130500":"邢台市","130600":"保定市","130700":"张家口市","130800":"承德市","130900":"沧州市","131000":"廊坊市","131100":"衡水市"},"130100":{"130101":"市辖区","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":{"130201":"市辖区","130202":"路南区","130203":"路北区","130204":"古冶区","130205":"开平区","130207":"丰南区","130208":"丰润区","130209":"曹妃甸区","130224":"滦南县","130225":"乐亭县","130227":"迁西县","130229":"玉田县","130271":"河北唐山芦台经济开发区","130272":"唐山市汉沽管理区","130273":"唐山高新技术产业开发区","130274":"河北唐山海港经济开发区","130281":"遵化市","130283":"迁安市","130284":"滦州市"},"130300":{"130301":"市辖区","130302":"海港区","130303":"山海关区","130304":"北戴河区","130306":"抚宁区","130321":"青龙满族自治县","130322":"昌黎县","130324":"卢龙县","130371":"秦皇岛市经济技术开发区","130372":"北戴河新区"},"130400":{"130401":"市辖区","130402":"邯山区","130403":"丛台区","130404":"复兴区","130406":"峰峰矿区","130407":"肥乡区","130408":"永年区","130423":"临漳县","130424":"成安县","130425":"大名县","130426":"涉县","130427":"磁县","130430":"邱县","130431":"鸡泽县","130432":"广平县","130433":"馆陶县","130434":"魏县","130435":"曲周县","130471":"邯郸经济技术开发区","130473":"邯郸冀南新区","130481":"武安市"},"130500":{"130501":"市辖区","130502":"桥东区","130503":"桥西区","130521":"邢台县","130522":"临城县","130523":"内丘县","130524":"柏乡县","130525":"隆尧县","130526":"任县","130527":"南和县","130528":"宁晋县","130529":"巨鹿县","130530":"新河县","130531":"广宗县","130532":"平乡县","130533":"威县","130534":"清河县","130535":"临西县","130571":"河北邢台经济开发区","130581":"南宫市","130582":"沙河市"},"130600":{"130601":"市辖区","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":{"130701":"市辖区","130702":"桥东区","130703":"桥西区","130705":"宣化区","130706":"下花园区","130708":"万全区","130709":"崇礼区","130722":"张北县","130723":"康保县","130724":"沽源县","130725":"尚义县","130726":"蔚县","130727":"阳原县","130728":"怀安县","130730":"怀来县","130731":"涿鹿县","130732":"赤城县","130771":"张家口经济开发区","130772":"张家口市察北管理区","130773":"张家口市塞北管理区"},"130800":{"130801":"市辖区","130802":"双桥区","130803":"双滦区","130804":"鹰手营子矿区","130821":"承德县","130822":"兴隆县","130824":"滦平县","130825":"隆化县","130826":"丰宁满族自治县","130827":"宽城满族自治县","130828":"围场满族蒙古族自治县","130871":"承德高新技术产业开发区","130881":"平泉市"},"130900":{"130901":"市辖区","130902":"新华区","130903":"运河区","130921":"沧县","130922":"青县","130923":"东光县","130924":"海兴县","130925":"盐山县","130926":"肃宁县","130927":"南皮县","130928":"吴桥县","130929":"献县","130930":"孟村回族自治县","130971":"河北沧州经济开发区","130972":"沧州高新技术产业开发区","130973":"沧州渤海新区","130981":"泊头市","130982":"任丘市","130983":"黄骅市","130984":"河间市"},"131000":{"131001":"市辖区","131002":"安次区","131003":"广阳区","131022":"固安县","131023":"永清县","131024":"香河县","131025":"大城县","131026":"文安县","131028":"大厂回族自治县","131071":"廊坊经济技术开发区","131081":"霸州市","131082":"三河市"},"131100":{"131101":"市辖区","131102":"桃城区","131103":"冀州区","131121":"枣强县","131122":"武邑县","131123":"武强县","131124":"饶阳县","131125":"安平县","131126":"故城县","131127":"景县","131128":"阜城县","131171":"河北衡水高新技术产业开发区","131172":"衡水滨湖新区","131182":"深州市"},"140000":{"140100":"太原市","140200":"大同市","140300":"阳泉市","140400":"长治市","140500":"晋城市","140600":"朔州市","140700":"晋中市","140800":"运城市","140900":"忻州市","141000":"临汾市","141100":"吕梁市"},"140100":{"140101":"市辖区","140105":"小店区","140106":"迎泽区","140107":"杏花岭区","140108":"尖草坪区","140109":"万柏林区","140110":"晋源区","140121":"清徐县","140122":"阳曲县","140123":"娄烦县","140171":"山西转型综合改革示范区","140181":"古交市"},"140200":{"140201":"市辖区","140212":"新荣区","140213":"平城区","140214":"云冈区","140215":"云州区","140221":"阳高县","140222":"天镇县","140223":"广灵县","140224":"灵丘县","140225":"浑源县","140226":"左云县","140271":"山西大同经济开发区"},"140300":{"140301":"市辖区","140302":"城区","140303":"矿区","140311":"郊区","140321":"平定县","140322":"盂县"},"140400":{"140401":"市辖区","140403":"潞州区","140404":"上党区","140405":"屯留区","140406":"潞城区","140423":"襄垣县","140425":"平顺县","140426":"黎城县","140427":"壶关县","140428":"长子县","140429":"武乡县","140430":"沁县","140431":"沁源县","140471":"山西长治高新技术产业园区"},"140500":{"140501":"市辖区","140502":"城区","140521":"沁水县","140522":"阳城县","140524":"陵川县","140525":"泽州县","140581":"高平市"},"140600":{"140601":"市辖区","140602":"朔城区","140603":"平鲁区","140621":"山阴县","140622":"应县","140623":"右玉县","140671":"山西朔州经济开发区","140681":"怀仁市"},"140700":{"140701":"市辖区","140702":"榆次区","140721":"榆社县","140722":"左权县","140723":"和顺县","140724":"昔阳县","140725":"寿阳县","140726":"太谷县","140727":"祁县","140728":"平遥县","140729":"灵石县","140781":"介休市"},"140800":{"140801":"市辖区","140802":"盐湖区","140821":"临猗县","140822":"万荣县","140823":"闻喜县","140824":"稷山县","140825":"新绛县","140826":"绛县","140827":"垣曲县","140828":"夏县","140829":"平陆县","140830":"芮城县","140881":"永济市","140882":"河津市"},"140900":{"140901":"市辖区","140902":"忻府区","140921":"定襄县","140922":"五台县","140923":"代县","140924":"繁峙县","140925":"宁武县","140926":"静乐县","140927":"神池县","140928":"五寨县","140929":"岢岚县","140930":"河曲县","140931":"保德县","140932":"偏关县","140971":"五台山风景名胜区","140981":"原平市"},"141000":{"141001":"市辖区","141002":"尧都区","141021":"曲沃县","141022":"翼城县","141023":"襄汾县","141024":"洪洞县","141025":"古县","141026":"安泽县","141027":"浮山县","141028":"吉县","141029":"乡宁县","141030":"大宁县","141031":"隰县","141032":"永和县","141033":"蒲县","141034":"汾西县","141081":"侯马市","141082":"霍州市"},"141100":{"141101":"市辖区","141102":"离石区","141121":"文水县","141122":"交城县","141123":"兴县","141124":"临县","141125":"柳林县","141126":"石楼县","141127":"岚县","141128":"方山县","141129":"中阳县","141130":"交口县","141181":"孝义市","141182":"汾阳市"},"150000":{"150100":"呼和浩特市","150200":"包头市","150300":"乌海市","150400":"赤峰市","150500":"通辽市","150600":"鄂尔多斯市","150700":"呼伦贝尔市","150800":"巴彦淖尔市","150900":"乌兰察布市","152200":"兴安盟","152500":"锡林郭勒盟","152900":"阿拉善盟"},"150100":{"150101":"市辖区","150102":"新城区","150103":"回民区","150104":"玉泉区","150105":"赛罕区","150121":"土默特左旗","150122":"托克托县","150123":"和林格尔县","150124":"清水河县","150125":"武川县","150171":"呼和浩特金海工业园区","150172":"呼和浩特经济技术开发区"},"150200":{"150201":"市辖区","150202":"东河区","150203":"昆都仑区","150204":"青山区","150205":"石拐区","150206":"白云鄂博矿区","150207":"九原区","150221":"土默特右旗","150222":"固阳县","150223":"达尔罕茂明安联合旗","150271":"包头稀土高新技术产业开发区"},"150300":{"150301":"市辖区","150302":"海勃湾区","150303":"海南区","150304":"乌达区"},"150400":{"150401":"市辖区","150402":"红山区","150403":"元宝山区","150404":"松山区","150421":"阿鲁科尔沁旗","150422":"巴林左旗","150423":"巴林右旗","150424":"林西县","150425":"克什克腾旗","150426":"翁牛特旗","150428":"喀喇沁旗","150429":"宁城县","150430":"敖汉旗"},"150500":{"150501":"市辖区","150502":"科尔沁区","150521":"科尔沁左翼中旗","150522":"科尔沁左翼后旗","150523":"开鲁县","150524":"库伦旗","150525":"奈曼旗","150526":"扎鲁特旗","150571":"通辽经济技术开发区","150581":"霍林郭勒市"},"150600":{"150601":"市辖区","150602":"东胜区","150603":"康巴什区","150621":"达拉特旗","150622":"准格尔旗","150623":"鄂托克前旗","150624":"鄂托克旗","150625":"杭锦旗","150626":"乌审旗","150627":"伊金霍洛旗"},"150700":{"150701":"市辖区","150702":"海拉尔区","150703":"扎赉诺尔区","150721":"阿荣旗","150722":"莫力达瓦达斡尔族自治旗","150723":"鄂伦春自治旗","150724":"鄂温克族自治旗","150725":"陈巴尔虎旗","150726":"新巴尔虎左旗","150727":"新巴尔虎右旗","150781":"满洲里市","150782":"牙克石市","150783":"扎兰屯市","150784":"额尔古纳市","150785":"根河市"},"150800":{"150801":"市辖区","150802":"临河区","150821":"五原县","150822":"磴口县","150823":"乌拉特前旗","150824":"乌拉特中旗","150825":"乌拉特后旗","150826":"杭锦后旗"},"150900":{"150901":"市辖区","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":"内蒙古阿拉善经济开发区"},"210000":{"210100":"沈阳市","210200":"大连市","210300":"鞍山市","210400":"抚顺市","210500":"本溪市","210600":"丹东市","210700":"锦州市","210800":"营口市","210900":"阜新市","211000":"辽阳市","211100":"盘锦市","211200":"铁岭市","211300":"朝阳市","211400":"葫芦岛市"},"210100":{"210101":"市辖区","210102":"和平区","210103":"沈河区","210104":"大东区","210105":"皇姑区","210106":"铁西区","210111":"苏家屯区","210112":"浑南区","210113":"沈北新区","210114":"于洪区","210115":"辽中区","210123":"康平县","210124":"法库县","210181":"新民市"},"210200":{"210201":"市辖区","210202":"中山区","210203":"西岗区","210204":"沙河口区","210211":"甘井子区","210212":"旅顺口区","210213":"金州区","210214":"普兰店区","210224":"长海县","210281":"瓦房店市","210283":"庄河市"},"210300":{"210301":"市辖区","210302":"铁东区","210303":"铁西区","210304":"立山区","210311":"千山区","210321":"台安县","210323":"岫岩满族自治县","210381":"海城市"},"210400":{"210401":"市辖区","210402":"新抚区","210403":"东洲区","210404":"望花区","210411":"顺城区","210421":"抚顺县","210422":"新宾满族自治县","210423":"清原满族自治县"},"210500":{"210501":"市辖区","210502":"平山区","210503":"溪湖区","210504":"明山区","210505":"南芬区","210521":"本溪满族自治县","210522":"桓仁满族自治县"},"210600":{"210601":"市辖区","210602":"元宝区","210603":"振兴区","210604":"振安区","210624":"宽甸满族自治县","210681":"东港市","210682":"凤城市"},"210700":{"210701":"市辖区","210702":"古塔区","210703":"凌河区","210711":"太和区","210726":"黑山县","210727":"义县","210781":"凌海市","210782":"北镇市"},"210800":{"210801":"市辖区","210802":"站前区","210803":"西市区","210804":"鲅鱼圈区","210811":"老边区","210881":"盖州市","210882":"大石桥市"},"210900":{"210901":"市辖区","210902":"海州区","210903":"新邱区","210904":"太平区","210905":"清河门区","210911":"细河区","210921":"阜新蒙古族自治县","210922":"彰武县"},"211000":{"211001":"市辖区","211002":"白塔区","211003":"文圣区","211004":"宏伟区","211005":"弓长岭区","211011":"太子河区","211021":"辽阳县","211081":"灯塔市"},"211100":{"211101":"市辖区","211102":"双台子区","211103":"兴隆台区","211104":"大洼区","211122":"盘山县"},"211200":{"211201":"市辖区","211202":"银州区","211204":"清河区","211221":"铁岭县","211223":"西丰县","211224":"昌图县","211281":"调兵山市","211282":"开原市"},"211300":{"211301":"市辖区","211302":"双塔区","211303":"龙城区","211321":"朝阳县","211322":"建平县","211324":"喀喇沁左翼蒙古族自治县","211381":"北票市","211382":"凌源市"},"211400":{"211401":"市辖区","211402":"连山区","211403":"龙港区","211404":"南票区","211421":"绥中县","211422":"建昌县","211481":"兴城市"},"220000":{"220100":"长春市","220200":"吉林市","220300":"四平市","220400":"辽源市","220500":"通化市","220600":"白山市","220700":"松原市","220800":"白城市","222400":"延边朝鲜族自治州"},"220100":{"220101":"市辖区","220102":"南关区","220103":"宽城区","220104":"朝阳区","220105":"二道区","220106":"绿园区","220112":"双阳区","220113":"九台区","220122":"农安县","220171":"长春经济技术开发区","220172":"长春净月高新技术产业开发区","220173":"长春高新技术产业开发区","220174":"长春汽车经济技术开发区","220182":"榆树市","220183":"德惠市"},"220200":{"220201":"市辖区","220202":"昌邑区","220203":"龙潭区","220204":"船营区","220211":"丰满区","220221":"永吉县","220271":"吉林经济开发区","220272":"吉林高新技术产业开发区","220273":"吉林中国新加坡食品区","220281":"蛟河市","220282":"桦甸市","220283":"舒兰市","220284":"磐石市"},"220300":{"220301":"市辖区","220302":"铁西区","220303":"铁东区","220322":"梨树县","220323":"伊通满族自治县","220381":"公主岭市","220382":"双辽市"},"220400":{"220401":"市辖区","220402":"龙山区","220403":"西安区","220421":"东丰县","220422":"东辽县"},"220500":{"220501":"市辖区","220502":"东昌区","220503":"二道江区","220521":"通化县","220523":"辉南县","220524":"柳河县","220581":"梅河口市","220582":"集安市"},"220600":{"220601":"市辖区","220602":"浑江区","220605":"江源区","220621":"抚松县","220622":"靖宇县","220623":"长白朝鲜族自治县","220681":"临江市"},"220700":{"220701":"市辖区","220702":"宁江区","220721":"前郭尔罗斯蒙古族自治县","220722":"长岭县","220723":"乾安县","220771":"吉林松原经济开发区","220781":"扶余市"},"220800":{"220801":"市辖区","220802":"洮北区","220821":"镇赉县","220822":"通榆县","220871":"吉林白城经济开发区","220881":"洮南市","220882":"大安市"},"222400":{"222401":"延吉市","222402":"图们市","222403":"敦化市","222404":"珲春市","222405":"龙井市","222406":"和龙市","222424":"汪清县","222426":"安图县"},"230000":{"230100":"哈尔滨市","230200":"齐齐哈尔市","230300":"鸡西市","230400":"鹤岗市","230500":"双鸭山市","230600":"大庆市","230700":"伊春市","230800":"佳木斯市","230900":"七台河市","231000":"牡丹江市","231100":"黑河市","231200":"绥化市","232700":"大兴安岭地区"},"230100":{"230101":"市辖区","230102":"道里区","230103":"南岗区","230104":"道外区","230108":"平房区","230109":"松北区","230110":"香坊区","230111":"呼兰区","230112":"阿城区","230113":"双城区","230123":"依兰县","230124":"方正县","230125":"宾县","230126":"巴彦县","230127":"木兰县","230128":"通河县","230129":"延寿县","230183":"尚志市","230184":"五常市"},"230200":{"230201":"市辖区","230202":"龙沙区","230203":"建华区","230204":"铁锋区","230205":"昂昂溪区","230206":"富拉尔基区","230207":"碾子山区","230208":"梅里斯达斡尔族区","230221":"龙江县","230223":"依安县","230224":"泰来县","230225":"甘南县","230227":"富裕县","230229":"克山县","230230":"克东县","230231":"拜泉县","230281":"讷河市"},"230300":{"230301":"市辖区","230302":"鸡冠区","230303":"恒山区","230304":"滴道区","230305":"梨树区","230306":"城子河区","230307":"麻山区","230321":"鸡东县","230381":"虎林市","230382":"密山市"},"230400":{"230401":"市辖区","230402":"向阳区","230403":"工农区","230404":"南山区","230405":"兴安区","230406":"东山区","230407":"兴山区","230421":"萝北县","230422":"绥滨县"},"230500":{"230501":"市辖区","230502":"尖山区","230503":"岭东区","230505":"四方台区","230506":"宝山区","230521":"集贤县","230522":"友谊县","230523":"宝清县","230524":"饶河县"},"230600":{"230601":"市辖区","230602":"萨尔图区","230603":"龙凤区","230604":"让胡路区","230605":"红岗区","230606":"大同区","230621":"肇州县","230622":"肇源县","230623":"林甸县","230624":"杜尔伯特蒙古族自治县","230671":"大庆高新技术产业开发区"},"230700":{"230701":"市辖区","230717":"伊美区","230718":"乌翠区","230719":"友好区","230722":"嘉荫县","230723":"汤旺县","230724":"丰林县","230725":"大箐山县","230726":"南岔县","230751":"金林区","230781":"铁力市"},"230800":{"230801":"市辖区","230803":"向阳区","230804":"前进区","230805":"东风区","230811":"郊区","230822":"桦南县","230826":"桦川县","230828":"汤原县","230881":"同江市","230882":"富锦市","230883":"抚远市"},"230900":{"230901":"市辖区","230902":"新兴区","230903":"桃山区","230904":"茄子河区","230921":"勃利县"},"231000":{"231001":"市辖区","231002":"东安区","231003":"阳明区","231004":"爱民区","231005":"西安区","231025":"林口县","231071":"牡丹江经济技术开发区","231081":"绥芬河市","231083":"海林市","231084":"宁安市","231085":"穆棱市","231086":"东宁市"},"231100":{"231101":"市辖区","231102":"爱辉区","231123":"逊克县","231124":"孙吴县","231181":"北安市","231182":"五大连池市","231183":"嫩江市"},"231200":{"231201":"市辖区","231202":"北林区","231221":"望奎县","231222":"兰西县","231223":"青冈县","231224":"庆安县","231225":"明水县","231226":"绥棱县","231281":"安达市","231282":"肇东市","231283":"海伦市"},"232700":{"232701":"漠河市","232721":"呼玛县","232722":"塔河县","232761":"加格达奇区","232762":"松岭区","232763":"新林区","232764":"呼中区"},"310000":{"310100":"市辖区"},"310100":{"310101":"黄浦区","310104":"徐汇区","310105":"长宁区","310106":"静安区","310107":"普陀区","310109":"虹口区","310110":"杨浦区","310112":"闵行区","310113":"宝山区","310114":"嘉定区","310115":"浦东新区","310116":"金山区","310117":"松江区","310118":"青浦区","310120":"奉贤区","310151":"崇明区"},"320000":{"320100":"南京市","320200":"无锡市","320300":"徐州市","320400":"常州市","320500":"苏州市","320600":"南通市","320700":"连云港市","320800":"淮安市","320900":"盐城市","321000":"扬州市","321100":"镇江市","321200":"泰州市","321300":"宿迁市"},"320100":{"320101":"市辖区","320102":"玄武区","320104":"秦淮区","320105":"建邺区","320106":"鼓楼区","320111":"浦口区","320113":"栖霞区","320114":"雨花台区","320115":"江宁区","320116":"六合区","320117":"溧水区","320118":"高淳区"},"320200":{"320201":"市辖区","320205":"锡山区","320206":"惠山区","320211":"滨湖区","320213":"梁溪区","320214":"新吴区","320281":"江阴市","320282":"宜兴市"},"320300":{"320301":"市辖区","320302":"鼓楼区","320303":"云龙区","320305":"贾汪区","320311":"泉山区","320312":"铜山区","320321":"丰县","320322":"沛县","320324":"睢宁县","320371":"徐州经济技术开发区","320381":"新沂市","320382":"邳州市"},"320400":{"320401":"市辖区","320402":"天宁区","320404":"钟楼区","320411":"新北区","320412":"武进区","320413":"金坛区","320481":"溧阳市"},"320500":{"320501":"市辖区","320505":"虎丘区","320506":"吴中区","320507":"相城区","320508":"姑苏区","320509":"吴江区","320571":"苏州工业园区","320581":"常熟市","320582":"张家港市","320583":"昆山市","320585":"太仓市"},"320600":{"320601":"市辖区","320602":"崇川区","320611":"港闸区","320612":"通州区","320623":"如东县","320671":"南通经济技术开发区","320681":"启东市","320682":"如皋市","320684":"海门市","320685":"海安市"},"320700":{"320701":"市辖区","320703":"连云区","320706":"海州区","320707":"赣榆区","320722":"东海县","320723":"灌云县","320724":"灌南县","320771":"连云港经济技术开发区","320772":"连云港高新技术产业开发区"},"320800":{"320801":"市辖区","320803":"淮安区","320804":"淮阴区","320812":"清江浦区","320813":"洪泽区","320826":"涟水县","320830":"盱眙县","320831":"金湖县","320871":"淮安经济技术开发区"},"320900":{"320901":"市辖区","320902":"亭湖区","320903":"盐都区","320904":"大丰区","320921":"响水县","320922":"滨海县","320923":"阜宁县","320924":"射阳县","320925":"建湖县","320971":"盐城经济技术开发区","320981":"东台市"},"321000":{"321001":"市辖区","321002":"广陵区","321003":"邗江区","321012":"江都区","321023":"宝应县","321071":"扬州经济技术开发区","321081":"仪征市","321084":"高邮市"},"321100":{"321101":"市辖区","321102":"京口区","321111":"润州区","321112":"丹徒区","321171":"镇江新区","321181":"丹阳市","321182":"扬中市","321183":"句容市"},"321200":{"321201":"市辖区","321202":"海陵区","321203":"高港区","321204":"姜堰区","321271":"泰州医药高新技术产业开发区","321281":"兴化市","321282":"靖江市","321283":"泰兴市"},"321300":{"321301":"市辖区","321302":"宿城区","321311":"宿豫区","321322":"沭阳县","321323":"泗阳县","321324":"泗洪县","321371":"宿迁经济技术开发区"},"330000":{"330100":"杭州市","330200":"宁波市","330300":"温州市","330400":"嘉兴市","330500":"湖州市","330600":"绍兴市","330700":"金华市","330800":"衢州市","330900":"舟山市","331000":"台州市","331100":"丽水市"},"330100":{"330101":"市辖区","330102":"上城区","330103":"下城区","330104":"江干区","330105":"拱墅区","330106":"西湖区","330108":"滨江区","330109":"萧山区","330110":"余杭区","330111":"富阳区","330112":"临安区","330122":"桐庐县","330127":"淳安县","330182":"建德市"},"330200":{"330201":"市辖区","330203":"海曙区","330205":"江北区","330206":"北仑区","330211":"镇海区","330212":"鄞州区","330213":"奉化区","330225":"象山县","330226":"宁海县","330281":"余姚市","330282":"慈溪市"},"330300":{"330301":"市辖区","330302":"鹿城区","330303":"龙湾区","330304":"瓯海区","330305":"洞头区","330324":"永嘉县","330326":"平阳县","330327":"苍南县","330328":"文成县","330329":"泰顺县","330371":"温州经济技术开发区","330381":"瑞安市","330382":"乐清市","330383":"龙港市"},"330400":{"330401":"市辖区","330402":"南湖区","330411":"秀洲区","330421":"嘉善县","330424":"海盐县","330481":"海宁市","330482":"平湖市","330483":"桐乡市"},"330500":{"330501":"市辖区","330502":"吴兴区","330503":"南浔区","330521":"德清县","330522":"长兴县","330523":"安吉县"},"330600":{"330601":"市辖区","330602":"越城区","330603":"柯桥区","330604":"上虞区","330624":"新昌县","330681":"诸暨市","330683":"嵊州市"},"330700":{"330701":"市辖区","330702":"婺城区","330703":"金东区","330723":"武义县","330726":"浦江县","330727":"磐安县","330781":"兰溪市","330782":"义乌市","330783":"东阳市","330784":"永康市"},"330800":{"330801":"市辖区","330802":"柯城区","330803":"衢江区","330822":"常山县","330824":"开化县","330825":"龙游县","330881":"江山市"},"330900":{"330901":"市辖区","330902":"定海区","330903":"普陀区","330921":"岱山县","330922":"嵊泗县"},"331000":{"331001":"市辖区","331002":"椒江区","331003":"黄岩区","331004":"路桥区","331022":"三门县","331023":"天台县","331024":"仙居县","331081":"温岭市","331082":"临海市","331083":"玉环市"},"331100":{"331101":"市辖区","331102":"莲都区","331121":"青田县","331122":"缙云县","331123":"遂昌县","331124":"松阳县","331125":"云和县","331126":"庆元县","331127":"景宁畲族自治县","331181":"龙泉市"},"340000":{"340100":"合肥市","340200":"芜湖市","340300":"蚌埠市","340400":"淮南市","340500":"马鞍山市","340600":"淮北市","340700":"铜陵市","340800":"安庆市","341000":"黄山市","341100":"滁州市","341200":"阜阳市","341300":"宿州市","341500":"六安市","341600":"亳州市","341700":"池州市","341800":"宣城市"},"340100":{"340101":"市辖区","340102":"瑶海区","340103":"庐阳区","340104":"蜀山区","340111":"包河区","340121":"长丰县","340122":"肥东县","340123":"肥西县","340124":"庐江县","340171":"合肥高新技术产业开发区","340172":"合肥经济技术开发区","340173":"合肥新站高新技术产业开发区","340181":"巢湖市"},"340200":{"340201":"市辖区","340202":"镜湖区","340203":"弋江区","340207":"鸠江区","340208":"三山区","340221":"芜湖县","340222":"繁昌县","340223":"南陵县","340225":"无为县","340271":"芜湖经济技术开发区","340272":"安徽芜湖长江大桥经济开发区"},"340300":{"340301":"市辖区","340302":"龙子湖区","340303":"蚌山区","340304":"禹会区","340311":"淮上区","340321":"怀远县","340322":"五河县","340323":"固镇县","340371":"蚌埠市高新技术开发区","340372":"蚌埠市经济开发区"},"340400":{"340401":"市辖区","340402":"大通区","340403":"田家庵区","340404":"谢家集区","340405":"八公山区","340406":"潘集区","340421":"凤台县","340422":"寿县"},"340500":{"340501":"市辖区","340503":"花山区","340504":"雨山区","340506":"博望区","340521":"当涂县","340522":"含山县","340523":"和县"},"340600":{"340601":"市辖区","340602":"杜集区","340603":"相山区","340604":"烈山区","340621":"濉溪县"},"340700":{"340701":"市辖区","340705":"铜官区","340706":"义安区","340711":"郊区","340722":"枞阳县"},"340800":{"340801":"市辖区","340802":"迎江区","340803":"大观区","340811":"宜秀区","340822":"怀宁县","340825":"太湖县","340826":"宿松县","340827":"望江县","340828":"岳西县","340871":"安徽安庆经济开发区","340881":"桐城市","340882":"潜山市"},"341000":{"341001":"市辖区","341002":"屯溪区","341003":"黄山区","341004":"徽州区","341021":"歙县","341022":"休宁县","341023":"黟县","341024":"祁门县"},"341100":{"341101":"市辖区","341102":"琅琊区","341103":"南谯区","341122":"来安县","341124":"全椒县","341125":"定远县","341126":"凤阳县","341171":"苏滁现代产业园","341172":"滁州经济技术开发区","341181":"天长市","341182":"明光市"},"341200":{"341201":"市辖区","341202":"颍州区","341203":"颍东区","341204":"颍泉区","341221":"临泉县","341222":"太和县","341225":"阜南县","341226":"颍上县","341271":"阜阳合肥现代产业园区","341272":"阜阳经济技术开发区","341282":"界首市"},"341300":{"341301":"市辖区","341302":"埇桥区","341321":"砀山县","341322":"萧县","341323":"灵璧县","341324":"泗县","341371":"宿州马鞍山现代产业园区","341372":"宿州经济技术开发区"},"341500":{"341501":"市辖区","341502":"金安区","341503":"裕安区","341504":"叶集区","341522":"霍邱县","341523":"舒城县","341524":"金寨县","341525":"霍山县"},"341600":{"341601":"市辖区","341602":"谯城区","341621":"涡阳县","341622":"蒙城县","341623":"利辛县"},"341700":{"341701":"市辖区","341702":"贵池区","341721":"东至县","341722":"石台县","341723":"青阳县"},"341800":{"341801":"市辖区","341802":"宣州区","341821":"郎溪县","341823":"泾县","341824":"绩溪县","341825":"旌德县","341871":"宣城市经济开发区","341881":"宁国市","341882":"广德市"},"350000":{"350100":"福州市","350200":"厦门市","350300":"莆田市","350400":"三明市","350500":"泉州市","350600":"漳州市","350700":"南平市","350800":"龙岩市","350900":"宁德市"},"350100":{"350101":"市辖区","350102":"鼓楼区","350103":"台江区","350104":"仓山区","350105":"马尾区","350111":"晋安区","350112":"长乐区","350121":"闽侯县","350122":"连江县","350123":"罗源县","350124":"闽清县","350125":"永泰县","350128":"平潭县","350181":"福清市"},"350200":{"350201":"市辖区","350203":"思明区","350205":"海沧区","350206":"湖里区","350211":"集美区","350212":"同安区","350213":"翔安区"},"350300":{"350301":"市辖区","350302":"城厢区","350303":"涵江区","350304":"荔城区","350305":"秀屿区","350322":"仙游县"},"350400":{"350401":"市辖区","350402":"梅列区","350403":"三元区","350421":"明溪县","350423":"清流县","350424":"宁化县","350425":"大田县","350426":"尤溪县","350427":"沙县","350428":"将乐县","350429":"泰宁县","350430":"建宁县","350481":"永安市"},"350500":{"350501":"市辖区","350502":"鲤城区","350503":"丰泽区","350504":"洛江区","350505":"泉港区","350521":"惠安县","350524":"安溪县","350525":"永春县","350526":"德化县","350527":"金门县","350581":"石狮市","350582":"晋江市","350583":"南安市"},"350600":{"350601":"市辖区","350602":"芗城区","350603":"龙文区","350622":"云霄县","350623":"漳浦县","350624":"诏安县","350625":"长泰县","350626":"东山县","350627":"南靖县","350628":"平和县","350629":"华安县","350681":"龙海市"},"350700":{"350701":"市辖区","350702":"延平区","350703":"建阳区","350721":"顺昌县","350722":"浦城县","350723":"光泽县","350724":"松溪县","350725":"政和县","350781":"邵武市","350782":"武夷山市","350783":"建瓯市"},"350800":{"350801":"市辖区","350802":"新罗区","350803":"永定区","350821":"长汀县","350823":"上杭县","350824":"武平县","350825":"连城县","350881":"漳平市"},"350900":{"350901":"市辖区","350902":"蕉城区","350921":"霞浦县","350922":"古田县","350923":"屏南县","350924":"寿宁县","350925":"周宁县","350926":"柘荣县","350981":"福安市","350982":"福鼎市"},"360000":{"360100":"南昌市","360200":"景德镇市","360300":"萍乡市","360400":"九江市","360500":"新余市","360600":"鹰潭市","360700":"赣州市","360800":"吉安市","360900":"宜春市","361000":"抚州市","361100":"上饶市"},"360100":{"360101":"市辖区","360102":"东湖区","360103":"西湖区","360104":"青云谱区","360105":"湾里区","360111":"青山湖区","360112":"新建区","360121":"南昌县","360123":"安义县","360124":"进贤县"},"360200":{"360201":"市辖区","360202":"昌江区","360203":"珠山区","360222":"浮梁县","360281":"乐平市"},"360300":{"360301":"市辖区","360302":"安源区","360313":"湘东区","360321":"莲花县","360322":"上栗县","360323":"芦溪县"},"360400":{"360401":"市辖区","360402":"濂溪区","360403":"浔阳区","360404":"柴桑区","360423":"武宁县","360424":"修水县","360425":"永修县","360426":"德安县","360428":"都昌县","360429":"湖口县","360430":"彭泽县","360481":"瑞昌市","360482":"共青城市","360483":"庐山市"},"360500":{"360501":"市辖区","360502":"渝水区","360521":"分宜县"},"360600":{"360601":"市辖区","360602":"月湖区","360603":"余江区","360681":"贵溪市"},"360700":{"360701":"市辖区","360702":"章贡区","360703":"南康区","360704":"赣县区","360722":"信丰县","360723":"大余县","360724":"上犹县","360725":"崇义县","360726":"安远县","360727":"龙南县","360728":"定南县","360729":"全南县","360730":"宁都县","360731":"于都县","360732":"兴国县","360733":"会昌县","360734":"寻乌县","360735":"石城县","360781":"瑞金市"},"360800":{"360801":"市辖区","360802":"吉州区","360803":"青原区","360821":"吉安县","360822":"吉水县","360823":"峡江县","360824":"新干县","360825":"永丰县","360826":"泰和县","360827":"遂川县","360828":"万安县","360829":"安福县","360830":"永新县","360881":"井冈山市"},"360900":{"360901":"市辖区","360902":"袁州区","360921":"奉新县","360922":"万载县","360923":"上高县","360924":"宜丰县","360925":"靖安县","360926":"铜鼓县","360981":"丰城市","360982":"樟树市","360983":"高安市"},"361000":{"361001":"市辖区","361002":"临川区","361003":"东乡区","361021":"南城县","361022":"黎川县","361023":"南丰县","361024":"崇仁县","361025":"乐安县","361026":"宜黄县","361027":"金溪县","361028":"资溪县","361030":"广昌县"},"361100":{"361101":"市辖区","361102":"信州区","361103":"广丰区","361104":"广信区","361123":"玉山县","361124":"铅山县","361125":"横峰县","361126":"弋阳县","361127":"余干县","361128":"鄱阳县","361129":"万年县","361130":"婺源县","361181":"德兴市"},"370000":{"370100":"济南市","370200":"青岛市","370300":"淄博市","370400":"枣庄市","370500":"东营市","370600":"烟台市","370700":"潍坊市","370800":"济宁市","370900":"泰安市","371000":"威海市","371100":"日照市","371300":"临沂市","371400":"德州市","371500":"聊城市","371600":"滨州市","371700":"菏泽市"},"370100":{"370101":"市辖区","370102":"历下区","370103":"市中区","370104":"槐荫区","370105":"天桥区","370112":"历城区","370113":"长清区","370114":"章丘区","370115":"济阳区","370116":"莱芜区","370117":"钢城区","370124":"平阴县","370126":"商河县","370171":"济南高新技术产业开发区"},"370200":{"370201":"市辖区","370202":"市南区","370203":"市北区","370211":"黄岛区","370212":"崂山区","370213":"李沧区","370214":"城阳区","370215":"即墨区","370271":"青岛高新技术产业开发区","370281":"胶州市","370283":"平度市","370285":"莱西市"},"370300":{"370301":"市辖区","370302":"淄川区","370303":"张店区","370304":"博山区","370305":"临淄区","370306":"周村区","370321":"桓台县","370322":"高青县","370323":"沂源县"},"370400":{"370401":"市辖区","370402":"市中区","370403":"薛城区","370404":"峄城区","370405":"台儿庄区","370406":"山亭区","370481":"滕州市"},"370500":{"370501":"市辖区","370502":"东营区","370503":"河口区","370505":"垦利区","370522":"利津县","370523":"广饶县","370571":"东营经济技术开发区","370572":"东营港经济开发区"},"370600":{"370601":"市辖区","370602":"芝罘区","370611":"福山区","370612":"牟平区","370613":"莱山区","370634":"长岛县","370671":"烟台高新技术产业开发区","370672":"烟台经济技术开发区","370681":"龙口市","370682":"莱阳市","370683":"莱州市","370684":"蓬莱市","370685":"招远市","370686":"栖霞市","370687":"海阳市"},"370700":{"370701":"市辖区","370702":"潍城区","370703":"寒亭区","370704":"坊子区","370705":"奎文区","370724":"临朐县","370725":"昌乐县","370772":"潍坊滨海经济技术开发区","370781":"青州市","370782":"诸城市","370783":"寿光市","370784":"安丘市","370785":"高密市","370786":"昌邑市"},"370800":{"370801":"市辖区","370811":"任城区","370812":"兖州区","370826":"微山县","370827":"鱼台县","370828":"金乡县","370829":"嘉祥县","370830":"汶上县","370831":"泗水县","370832":"梁山县","370871":"济宁高新技术产业开发区","370881":"曲阜市","370883":"邹城市"},"370900":{"370901":"市辖区","370902":"泰山区","370911":"岱岳区","370921":"宁阳县","370923":"东平县","370982":"新泰市","370983":"肥城市"},"371000":{"371001":"市辖区","371002":"环翠区","371003":"文登区","371071":"威海火炬高技术产业开发区","371072":"威海经济技术开发区","371073":"威海临港经济技术开发区","371082":"荣成市","371083":"乳山市"},"371100":{"371101":"市辖区","371102":"东港区","371103":"岚山区","371121":"五莲县","371122":"莒县","371171":"日照经济技术开发区"},"371300":{"371301":"市辖区","371302":"兰山区","371311":"罗庄区","371312":"河东区","371321":"沂南县","371322":"郯城县","371323":"沂水县","371324":"兰陵县","371325":"费县","371326":"平邑县","371327":"莒南县","371328":"蒙阴县","371329":"临沭县","371371":"临沂高新技术产业开发区","371372":"临沂经济技术开发区","371373":"临沂临港经济开发区"},"371400":{"371401":"市辖区","371402":"德城区","371403":"陵城区","371422":"宁津县","371423":"庆云县","371424":"临邑县","371425":"齐河县","371426":"平原县","371427":"夏津县","371428":"武城县","371471":"德州经济技术开发区","371472":"德州运河经济开发区","371481":"乐陵市","371482":"禹城市"},"371500":{"371501":"市辖区","371502":"东昌府区","371503":"茌平区","371521":"阳谷县","371522":"莘县","371524":"东阿县","371525":"冠县","371526":"高唐县","371581":"临清市"},"371600":{"371601":"市辖区","371602":"滨城区","371603":"沾化区","371621":"惠民县","371622":"阳信县","371623":"无棣县","371625":"博兴县","371681":"邹平市"},"371700":{"371701":"市辖区","371702":"牡丹区","371703":"定陶区","371721":"曹县","371722":"单县","371723":"成武县","371724":"巨野县","371725":"郓城县","371726":"鄄城县","371728":"东明县","371771":"菏泽经济技术开发区","371772":"菏泽高新技术开发区"},"410000":{"410100":"郑州市","410200":"开封市","410300":"洛阳市","410400":"平顶山市","410500":"安阳市","410600":"鹤壁市","410700":"新乡市","410800":"焦作市","410900":"濮阳市","411000":"许昌市","411100":"漯河市","411200":"三门峡市","411300":"南阳市","411400":"商丘市","411500":"信阳市","411600":"周口市","411700":"驻马店市","419000":"省直辖县级行政区划"},"410100":{"410101":"市辖区","410102":"中原区","410103":"二七区","410104":"管城回族区","410105":"金水区","410106":"上街区","410108":"惠济区","410122":"中牟县","410171":"郑州经济技术开发区","410172":"郑州高新技术产业开发区","410173":"郑州航空港经济综合实验区","410181":"巩义市","410182":"荥阳市","410183":"新密市","410184":"新郑市","410185":"登封市"},"410200":{"410201":"市辖区","410202":"龙亭区","410203":"顺河回族区","410204":"鼓楼区","410205":"禹王台区","410212":"祥符区","410221":"杞县","410222":"通许县","410223":"尉氏县","410225":"兰考县"},"410300":{"410301":"市辖区","410302":"老城区","410303":"西工区","410304":"瀍河回族区","410305":"涧西区","410306":"吉利区","410311":"洛龙区","410322":"孟津县","410323":"新安县","410324":"栾川县","410325":"嵩县","410326":"汝阳县","410327":"宜阳县","410328":"洛宁县","410329":"伊川县","410371":"洛阳高新技术产业开发区","410381":"偃师市"},"410400":{"410401":"市辖区","410402":"新华区","410403":"卫东区","410404":"石龙区","410411":"湛河区","410421":"宝丰县","410422":"叶县","410423":"鲁山县","410425":"郏县","410471":"平顶山高新技术产业开发区","410472":"平顶山市城乡一体化示范区","410481":"舞钢市","410482":"汝州市"},"410500":{"410501":"市辖区","410502":"文峰区","410503":"北关区","410505":"殷都区","410506":"龙安区","410522":"安阳县","410523":"汤阴县","410526":"滑县","410527":"内黄县","410571":"安阳高新技术产业开发区","410581":"林州市"},"410600":{"410601":"市辖区","410602":"鹤山区","410603":"山城区","410611":"淇滨区","410621":"浚县","410622":"淇县","410671":"鹤壁经济技术开发区"},"410700":{"410701":"市辖区","410702":"红旗区","410703":"卫滨区","410704":"凤泉区","410711":"牧野区","410721":"新乡县","410724":"获嘉县","410725":"原阳县","410726":"延津县","410727":"封丘县","410771":"新乡高新技术产业开发区","410772":"新乡经济技术开发区","410773":"新乡市平原城乡一体化示范区","410781":"卫辉市","410782":"辉县市","410783":"长垣市"},"410800":{"410801":"市辖区","410802":"解放区","410803":"中站区","410804":"马村区","410811":"山阳区","410821":"修武县","410822":"博爱县","410823":"武陟县","410825":"温县","410871":"焦作城乡一体化示范区","410882":"沁阳市","410883":"孟州市"},"410900":{"410901":"市辖区","410902":"华龙区","410922":"清丰县","410923":"南乐县","410926":"范县","410927":"台前县","410928":"濮阳县","410971":"河南濮阳工业园区","410972":"濮阳经济技术开发区"},"411000":{"411001":"市辖区","411002":"魏都区","411003":"建安区","411024":"鄢陵县","411025":"襄城县","411071":"许昌经济技术开发区","411081":"禹州市","411082":"长葛市"},"411100":{"411101":"市辖区","411102":"源汇区","411103":"郾城区","411104":"召陵区","411121":"舞阳县","411122":"临颍县","411171":"漯河经济技术开发区"},"411200":{"411201":"市辖区","411202":"湖滨区","411203":"陕州区","411221":"渑池县","411224":"卢氏县","411271":"河南三门峡经济开发区","411281":"义马市","411282":"灵宝市"},"411300":{"411301":"市辖区","411302":"宛城区","411303":"卧龙区","411321":"南召县","411322":"方城县","411323":"西峡县","411324":"镇平县","411325":"内乡县","411326":"淅川县","411327":"社旗县","411328":"唐河县","411329":"新野县","411330":"桐柏县","411371":"南阳高新技术产业开发区","411372":"南阳市城乡一体化示范区","411381":"邓州市"},"411400":{"411401":"市辖区","411402":"梁园区","411403":"睢阳区","411421":"民权县","411422":"睢县","411423":"宁陵县","411424":"柘城县","411425":"虞城县","411426":"夏邑县","411471":"豫东综合物流产业聚集区","411472":"河南商丘经济开发区","411481":"永城市"},"411500":{"411501":"市辖区","411502":"浉河区","411503":"平桥区","411521":"罗山县","411522":"光山县","411523":"新县","411524":"商城县","411525":"固始县","411526":"潢川县","411527":"淮滨县","411528":"息县","411571":"信阳高新技术产业开发区"},"411600":{"411601":"市辖区","411602":"川汇区","411603":"淮阳区","411621":"扶沟县","411622":"西华县","411623":"商水县","411624":"沈丘县","411625":"郸城县","411627":"太康县","411628":"鹿邑县","411671":"河南周口经济开发区","411681":"项城市"},"411700":{"411701":"市辖区","411702":"驿城区","411721":"西平县","411722":"上蔡县","411723":"平舆县","411724":"正阳县","411725":"确山县","411726":"泌阳县","411727":"汝南县","411728":"遂平县","411729":"新蔡县","411771":"河南驻马店经济开发区"},"419000":{"419001":"济源市"},"420000":{"420100":"武汉市","420200":"黄石市","420300":"十堰市","420500":"宜昌市","420600":"襄阳市","420700":"鄂州市","420800":"荆门市","420900":"孝感市","421000":"荆州市","421100":"黄冈市","421200":"咸宁市","421300":"随州市","422800":"恩施土家族苗族自治州","429000":"省直辖县级行政区划"},"420100":{"420101":"市辖区","420102":"江岸区","420103":"江汉区","420104":"硚口区","420105":"汉阳区","420106":"武昌区","420107":"青山区","420111":"洪山区","420112":"东西湖区","420113":"汉南区","420114":"蔡甸区","420115":"江夏区","420116":"黄陂区","420117":"新洲区"},"420200":{"420201":"市辖区","420202":"黄石港区","420203":"西塞山区","420204":"下陆区","420205":"铁山区","420222":"阳新县","420281":"大冶市"},"420300":{"420301":"市辖区","420302":"茅箭区","420303":"张湾区","420304":"郧阳区","420322":"郧西县","420323":"竹山县","420324":"竹溪县","420325":"房县","420381":"丹江口市"},"420500":{"420501":"市辖区","420502":"西陵区","420503":"伍家岗区","420504":"点军区","420505":"猇亭区","420506":"夷陵区","420525":"远安县","420526":"兴山县","420527":"秭归县","420528":"长阳土家族自治县","420529":"五峰土家族自治县","420581":"宜都市","420582":"当阳市","420583":"枝江市"},"420600":{"420601":"市辖区","420602":"襄城区","420606":"樊城区","420607":"襄州区","420624":"南漳县","420625":"谷城县","420626":"保康县","420682":"老河口市","420683":"枣阳市","420684":"宜城市"},"420700":{"420701":"市辖区","420702":"梁子湖区","420703":"华容区","420704":"鄂城区"},"420800":{"420801":"市辖区","420802":"东宝区","420804":"掇刀区","420822":"沙洋县","420881":"钟祥市","420882":"京山市"},"420900":{"420901":"市辖区","420902":"孝南区","420921":"孝昌县","420922":"大悟县","420923":"云梦县","420981":"应城市","420982":"安陆市","420984":"汉川市"},"421000":{"421001":"市辖区","421002":"沙市区","421003":"荆州区","421022":"公安县","421023":"监利县","421024":"江陵县","421071":"荆州经济技术开发区","421081":"石首市","421083":"洪湖市","421087":"松滋市"},"421100":{"421101":"市辖区","421102":"黄州区","421121":"团风县","421122":"红安县","421123":"罗田县","421124":"英山县","421125":"浠水县","421126":"蕲春县","421127":"黄梅县","421171":"龙感湖管理区","421181":"麻城市","421182":"武穴市"},"421200":{"421201":"市辖区","421202":"咸安区","421221":"嘉鱼县","421222":"通城县","421223":"崇阳县","421224":"通山县","421281":"赤壁市"},"421300":{"421301":"市辖区","421303":"曾都区","421321":"随县","421381":"广水市"},"422800":{"422801":"恩施市","422802":"利川市","422822":"建始县","422823":"巴东县","422825":"宣恩县","422826":"咸丰县","422827":"来凤县","422828":"鹤峰县"},"429000":{"429004":"仙桃市","429005":"潜江市","429006":"天门市","429021":"神农架林区"},"430000":{"430100":"长沙市","430200":"株洲市","430300":"湘潭市","430400":"衡阳市","430500":"邵阳市","430600":"岳阳市","430700":"常德市","430800":"张家界市","430900":"益阳市","431000":"郴州市","431100":"永州市","431200":"怀化市","431300":"娄底市","433100":"湘西土家族苗族自治州"},"430100":{"430101":"市辖区","430102":"芙蓉区","430103":"天心区","430104":"岳麓区","430105":"开福区","430111":"雨花区","430112":"望城区","430121":"长沙县","430181":"浏阳市","430182":"宁乡市"},"430200":{"430201":"市辖区","430202":"荷塘区","430203":"芦淞区","430204":"石峰区","430211":"天元区","430212":"渌口区","430223":"攸县","430224":"茶陵县","430225":"炎陵县","430271":"云龙示范区","430281":"醴陵市"},"430300":{"430301":"市辖区","430302":"雨湖区","430304":"岳塘区","430321":"湘潭县","430371":"湖南湘潭高新技术产业园区","430372":"湘潭昭山示范区","430373":"湘潭九华示范区","430381":"湘乡市","430382":"韶山市"},"430400":{"430401":"市辖区","430405":"珠晖区","430406":"雁峰区","430407":"石鼓区","430408":"蒸湘区","430412":"南岳区","430421":"衡阳县","430422":"衡南县","430423":"衡山县","430424":"衡东县","430426":"祁东县","430471":"衡阳综合保税区","430472":"湖南衡阳高新技术产业园区","430473":"湖南衡阳松木经济开发区","430481":"耒阳市","430482":"常宁市"},"430500":{"430501":"市辖区","430502":"双清区","430503":"大祥区","430511":"北塔区","430522":"新邵县","430523":"邵阳县","430524":"隆回县","430525":"洞口县","430527":"绥宁县","430528":"新宁县","430529":"城步苗族自治县","430581":"武冈市","430582":"邵东市"},"430600":{"430601":"市辖区","430602":"岳阳楼区","430603":"云溪区","430611":"君山区","430621":"岳阳县","430623":"华容县","430624":"湘阴县","430626":"平江县","430671":"岳阳市屈原管理区","430681":"汨罗市","430682":"临湘市"},"430700":{"430701":"市辖区","430702":"武陵区","430703":"鼎城区","430721":"安乡县","430722":"汉寿县","430723":"澧县","430724":"临澧县","430725":"桃源县","430726":"石门县","430771":"常德市西洞庭管理区","430781":"津市市"},"430800":{"430801":"市辖区","430802":"永定区","430811":"武陵源区","430821":"慈利县","430822":"桑植县"},"430900":{"430901":"市辖区","430902":"资阳区","430903":"赫山区","430921":"南县","430922":"桃江县","430923":"安化县","430971":"益阳市大通湖管理区","430972":"湖南益阳高新技术产业园区","430981":"沅江市"},"431000":{"431001":"市辖区","431002":"北湖区","431003":"苏仙区","431021":"桂阳县","431022":"宜章县","431023":"永兴县","431024":"嘉禾县","431025":"临武县","431026":"汝城县","431027":"桂东县","431028":"安仁县","431081":"资兴市"},"431100":{"431101":"市辖区","431102":"零陵区","431103":"冷水滩区","431121":"祁阳县","431122":"东安县","431123":"双牌县","431124":"道县","431125":"江永县","431126":"宁远县","431127":"蓝山县","431128":"新田县","431129":"江华瑶族自治县","431171":"永州经济技术开发区","431172":"永州市金洞管理区","431173":"永州市回龙圩管理区"},"431200":{"431201":"市辖区","431202":"鹤城区","431221":"中方县","431222":"沅陵县","431223":"辰溪县","431224":"溆浦县","431225":"会同县","431226":"麻阳苗族自治县","431227":"新晃侗族自治县","431228":"芷江侗族自治县","431229":"靖州苗族侗族自治县","431230":"通道侗族自治县","431271":"怀化市洪江管理区","431281":"洪江市"},"431300":{"431301":"市辖区","431302":"娄星区","431321":"双峰县","431322":"新化县","431381":"冷水江市","431382":"涟源市"},"433100":{"433101":"吉首市","433122":"泸溪县","433123":"凤凰县","433124":"花垣县","433125":"保靖县","433126":"古丈县","433127":"永顺县","433130":"龙山县","433173":"湖南永顺经济开发区"},"440000":{"440100":"广州市","440200":"韶关市","440300":"深圳市","440400":"珠海市","440500":"汕头市","440600":"佛山市","440700":"江门市","440800":"湛江市","440900":"茂名市","441200":"肇庆市","441300":"惠州市","441400":"梅州市","441500":"汕尾市","441600":"河源市","441700":"阳江市","441800":"清远市","441900":"东莞市","442000":"中山市","445100":"潮州市","445200":"揭阳市","445300":"云浮市"},"440100":{"440101":"市辖区","440103":"荔湾区","440104":"越秀区","440105":"海珠区","440106":"天河区","440111":"白云区","440112":"黄埔区","440113":"番禺区","440114":"花都区","440115":"南沙区","440117":"从化区","440118":"增城区"},"440200":{"440201":"市辖区","440203":"武江区","440204":"浈江区","440205":"曲江区","440222":"始兴县","440224":"仁化县","440229":"翁源县","440232":"乳源瑶族自治县","440233":"新丰县","440281":"乐昌市","440282":"南雄市"},"440300":{"440301":"市辖区","440303":"罗湖区","440304":"福田区","440305":"南山区","440306":"宝安区","440307":"龙岗区","440308":"盐田区","440309":"龙华区","440310":"坪山区","440311":"光明区"},"440400":{"440401":"市辖区","440402":"香洲区","440403":"斗门区","440404":"金湾区"},"440500":{"440501":"市辖区","440507":"龙湖区","440511":"金平区","440512":"濠江区","440513":"潮阳区","440514":"潮南区","440515":"澄海区","440523":"南澳县"},"440600":{"440601":"市辖区","440604":"禅城区","440605":"南海区","440606":"顺德区","440607":"三水区","440608":"高明区"},"440700":{"440701":"市辖区","440703":"蓬江区","440704":"江海区","440705":"新会区","440781":"台山市","440783":"开平市","440784":"鹤山市","440785":"恩平市"},"440800":{"440801":"市辖区","440802":"赤坎区","440803":"霞山区","440804":"坡头区","440811":"麻章区","440823":"遂溪县","440825":"徐闻县","440881":"廉江市","440882":"雷州市","440883":"吴川市"},"440900":{"440901":"市辖区","440902":"茂南区","440904":"电白区","440981":"高州市","440982":"化州市","440983":"信宜市"},"441200":{"441201":"市辖区","441202":"端州区","441203":"鼎湖区","441204":"高要区","441223":"广宁县","441224":"怀集县","441225":"封开县","441226":"德庆县","441284":"四会市"},"441300":{"441301":"市辖区","441302":"惠城区","441303":"惠阳区","441322":"博罗县","441323":"惠东县","441324":"龙门县"},"441400":{"441401":"市辖区","441402":"梅江区","441403":"梅县区","441422":"大埔县","441423":"丰顺县","441424":"五华县","441426":"平远县","441427":"蕉岭县","441481":"兴宁市"},"441500":{"441501":"市辖区","441502":"城区","441521":"海丰县","441523":"陆河县","441581":"陆丰市"},"441600":{"441601":"市辖区","441602":"源城区","441621":"紫金县","441622":"龙川县","441623":"连平县","441624":"和平县","441625":"东源县"},"441700":{"441701":"市辖区","441702":"江城区","441704":"阳东区","441721":"阳西县","441781":"阳春市"},"441800":{"441801":"市辖区","441802":"清城区","441803":"清新区","441821":"佛冈县","441823":"阳山县","441825":"连山壮族瑶族自治县","441826":"连南瑶族自治县","441881":"英德市","441882":"连州市"},"441900":{"441900003":"东城街道","441900004":"南城街道","441900005":"万江街道","441900006":"莞城街道","441900101":"石碣镇","441900102":"石龙镇","441900103":"茶山镇","441900104":"石排镇","441900105":"企石镇","441900106":"横沥镇","441900107":"桥头镇","441900108":"谢岗镇","441900109":"东坑镇","441900110":"常平镇","441900111":"寮步镇","441900112":"樟木头镇","441900113":"大朗镇","441900114":"黄江镇","441900115":"清溪镇","441900116":"塘厦镇","441900117":"凤岗镇","441900118":"大岭山镇","441900119":"长安镇","441900121":"虎门镇","441900122":"厚街镇","441900123":"沙田镇","441900124":"道滘镇","441900125":"洪梅镇","441900126":"麻涌镇","441900127":"望牛墩镇","441900128":"中堂镇","441900129":"高埗镇","441900401":"松山湖","441900402":"东莞港","441900403":"东莞生态园"},"442000":{"442000001":"石岐街道","442000002":"东区街道","442000003":"中山港街道","442000004":"西区街道","442000005":"南区街道","442000006":"五桂山街道","442000100":"小榄镇","442000101":"黄圃镇","442000102":"民众镇","442000103":"东凤镇","442000104":"东升镇","442000105":"古镇镇","442000106":"沙溪镇","442000107":"坦洲镇","442000108":"港口镇","442000109":"三角镇","442000110":"横栏镇","442000111":"南头镇","442000112":"阜沙镇","442000113":"南朗镇","442000114":"三乡镇","442000115":"板芙镇","442000116":"大涌镇","442000117":"神湾镇"},"445100":{"445101":"市辖区","445102":"湘桥区","445103":"潮安区","445122":"饶平县"},"445200":{"445201":"市辖区","445202":"榕城区","445203":"揭东区","445222":"揭西县","445224":"惠来县","445281":"普宁市"},"445300":{"445301":"市辖区","445302":"云城区","445303":"云安区","445321":"新兴县","445322":"郁南县","445381":"罗定市"},"450000":{"450100":"南宁市","450200":"柳州市","450300":"桂林市","450400":"梧州市","450500":"北海市","450600":"防城港市","450700":"钦州市","450800":"贵港市","450900":"玉林市","451000":"百色市","451100":"贺州市","451200":"河池市","451300":"来宾市","451400":"崇左市"},"450100":{"450101":"市辖区","450102":"兴宁区","450103":"青秀区","450105":"江南区","450107":"西乡塘区","450108":"良庆区","450109":"邕宁区","450110":"武鸣区","450123":"隆安县","450124":"马山县","450125":"上林县","450126":"宾阳县","450127":"横县"},"450200":{"450201":"市辖区","450202":"城中区","450203":"鱼峰区","450204":"柳南区","450205":"柳北区","450206":"柳江区","450222":"柳城县","450223":"鹿寨县","450224":"融安县","450225":"融水苗族自治县","450226":"三江侗族自治县"},"450300":{"450301":"市辖区","450302":"秀峰区","450303":"叠彩区","450304":"象山区","450305":"七星区","450311":"雁山区","450312":"临桂区","450321":"阳朔县","450323":"灵川县","450324":"全州县","450325":"兴安县","450326":"永福县","450327":"灌阳县","450328":"龙胜各族自治县","450329":"资源县","450330":"平乐县","450332":"恭城瑶族自治县","450381":"荔浦市"},"450400":{"450401":"市辖区","450403":"万秀区","450405":"长洲区","450406":"龙圩区","450421":"苍梧县","450422":"藤县","450423":"蒙山县","450481":"岑溪市"},"450500":{"450501":"市辖区","450502":"海城区","450503":"银海区","450512":"铁山港区","450521":"合浦县"},"450600":{"450601":"市辖区","450602":"港口区","450603":"防城区","450621":"上思县","450681":"东兴市"},"450700":{"450701":"市辖区","450702":"钦南区","450703":"钦北区","450721":"灵山县","450722":"浦北县"},"450800":{"450801":"市辖区","450802":"港北区","450803":"港南区","450804":"覃塘区","450821":"平南县","450881":"桂平市"},"450900":{"450901":"市辖区","450902":"玉州区","450903":"福绵区","450921":"容县","450922":"陆川县","450923":"博白县","450924":"兴业县","450981":"北流市"},"451000":{"451001":"市辖区","451002":"右江区","451003":"田阳区","451022":"田东县","451023":"平果县","451024":"德保县","451026":"那坡县","451027":"凌云县","451028":"乐业县","451029":"田林县","451030":"西林县","451031":"隆林各族自治县","451081":"靖西市"},"451100":{"451101":"市辖区","451102":"八步区","451103":"平桂区","451121":"昭平县","451122":"钟山县","451123":"富川瑶族自治县"},"451200":{"451201":"市辖区","451202":"金城江区","451203":"宜州区","451221":"南丹县","451222":"天峨县","451223":"凤山县","451224":"东兰县","451225":"罗城仫佬族自治县","451226":"环江毛南族自治县","451227":"巴马瑶族自治县","451228":"都安瑶族自治县","451229":"大化瑶族自治县"},"451300":{"451301":"市辖区","451302":"兴宾区","451321":"忻城县","451322":"象州县","451323":"武宣县","451324":"金秀瑶族自治县","451381":"合山市"},"451400":{"451401":"市辖区","451402":"江州区","451421":"扶绥县","451422":"宁明县","451423":"龙州县","451424":"大新县","451425":"天等县","451481":"凭祥市"},"460000":{"460100":"海口市","460200":"三亚市","460300":"三沙市","460400":"儋州市","469000":"省直辖县级行政区划"},"460100":{"460101":"市辖区","460105":"秀英区","460106":"龙华区","460107":"琼山区","460108":"美兰区"},"460200":{"460201":"市辖区","460202":"海棠区","460203":"吉阳区","460204":"天涯区","460205":"崖州区"},"460300":{"460321":"西沙群岛","460322":"南沙群岛","460323":"中沙群岛的岛礁及其海域"},"460400":{"460400100":"那大镇","460400101":"和庆镇","460400102":"南丰镇","460400103":"大成镇","460400104":"雅星镇","460400105":"兰洋镇","460400106":"光村镇","460400107":"木棠镇","460400108":"海头镇","460400109":"峨蔓镇","460400111":"王五镇","460400112":"白马井镇","460400113":"中和镇","460400114":"排浦镇","460400115":"东成镇","460400116":"新州镇","460400499":"洋浦经济开发区","460400500":"华南热作学院"},"469000":{"469001":"五指山市","469002":"琼海市","469005":"文昌市","469006":"万宁市","469007":"东方市","469021":"定安县","469022":"屯昌县","469023":"澄迈县","469024":"临高县","469025":"白沙黎族自治县","469026":"昌江黎族自治县","469027":"乐东黎族自治县","469028":"陵水黎族自治县","469029":"保亭黎族苗族自治县","469030":"琼中黎族苗族自治县"},"500000":{"500100":"市辖区","500200":"县"},"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":"彭水苗族土家族自治县"},"510000":{"510100":"成都市","510300":"自贡市","510400":"攀枝花市","510500":"泸州市","510600":"德阳市","510700":"绵阳市","510800":"广元市","510900":"遂宁市","511000":"内江市","511100":"乐山市","511300":"南充市","511400":"眉山市","511500":"宜宾市","511600":"广安市","511700":"达州市","511800":"雅安市","511900":"巴中市","512000":"资阳市","513200":"阿坝藏族羌族自治州","513300":"甘孜藏族自治州","513400":"凉山彝族自治州"},"510100":{"510101":"市辖区","510104":"锦江区","510105":"青羊区","510106":"金牛区","510107":"武侯区","510108":"成华区","510112":"龙泉驿区","510113":"青白江区","510114":"新都区","510115":"温江区","510116":"双流区","510117":"郫都区","510121":"金堂县","510129":"大邑县","510131":"蒲江县","510132":"新津县","510181":"都江堰市","510182":"彭州市","510183":"邛崃市","510184":"崇州市","510185":"简阳市"},"510300":{"510301":"市辖区","510302":"自流井区","510303":"贡井区","510304":"大安区","510311":"沿滩区","510321":"荣县","510322":"富顺县"},"510400":{"510401":"市辖区","510402":"东区","510403":"西区","510411":"仁和区","510421":"米易县","510422":"盐边县"},"510500":{"510501":"市辖区","510502":"江阳区","510503":"纳溪区","510504":"龙马潭区","510521":"泸县","510522":"合江县","510524":"叙永县","510525":"古蔺县"},"510600":{"510601":"市辖区","510603":"旌阳区","510604":"罗江区","510623":"中江县","510681":"广汉市","510682":"什邡市","510683":"绵竹市"},"510700":{"510701":"市辖区","510703":"涪城区","510704":"游仙区","510705":"安州区","510722":"三台县","510723":"盐亭县","510725":"梓潼县","510726":"北川羌族自治县","510727":"平武县","510781":"江油市"},"510800":{"510801":"市辖区","510802":"利州区","510811":"昭化区","510812":"朝天区","510821":"旺苍县","510822":"青川县","510823":"剑阁县","510824":"苍溪县"},"510900":{"510901":"市辖区","510903":"船山区","510904":"安居区","510921":"蓬溪县","510923":"大英县","510981":"射洪市"},"511000":{"511001":"市辖区","511002":"市中区","511011":"东兴区","511024":"威远县","511025":"资中县","511071":"内江经济开发区","511083":"隆昌市"},"511100":{"511101":"市辖区","511102":"市中区","511111":"沙湾区","511112":"五通桥区","511113":"金口河区","511123":"犍为县","511124":"井研县","511126":"夹江县","511129":"沐川县","511132":"峨边彝族自治县","511133":"马边彝族自治县","511181":"峨眉山市"},"511300":{"511301":"市辖区","511302":"顺庆区","511303":"高坪区","511304":"嘉陵区","511321":"南部县","511322":"营山县","511323":"蓬安县","511324":"仪陇县","511325":"西充县","511381":"阆中市"},"511400":{"511401":"市辖区","511402":"东坡区","511403":"彭山区","511421":"仁寿县","511423":"洪雅县","511424":"丹棱县","511425":"青神县"},"511500":{"511501":"市辖区","511502":"翠屏区","511503":"南溪区","511504":"叙州区","511523":"江安县","511524":"长宁县","511525":"高县","511526":"珙县","511527":"筠连县","511528":"兴文县","511529":"屏山县"},"511600":{"511601":"市辖区","511602":"广安区","511603":"前锋区","511621":"岳池县","511622":"武胜县","511623":"邻水县","511681":"华蓥市"},"511700":{"511701":"市辖区","511702":"通川区","511703":"达川区","511722":"宣汉县","511723":"开江县","511724":"大竹县","511725":"渠县","511771":"达州经济开发区","511781":"万源市"},"511800":{"511801":"市辖区","511802":"雨城区","511803":"名山区","511822":"荥经县","511823":"汉源县","511824":"石棉县","511825":"天全县","511826":"芦山县","511827":"宝兴县"},"511900":{"511901":"市辖区","511902":"巴州区","511903":"恩阳区","511921":"通江县","511922":"南江县","511923":"平昌县","511971":"巴中经济开发区"},"512000":{"512001":"市辖区","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":"西昌市","513422":"木里藏族自治县","513423":"盐源县","513424":"德昌县","513425":"会理县","513426":"会东县","513427":"宁南县","513428":"普格县","513429":"布拖县","513430":"金阳县","513431":"昭觉县","513432":"喜德县","513433":"冕宁县","513434":"越西县","513435":"甘洛县","513436":"美姑县","513437":"雷波县"},"520000":{"520100":"贵阳市","520200":"六盘水市","520300":"遵义市","520400":"安顺市","520500":"毕节市","520600":"铜仁市","522300":"黔西南布依族苗族自治州","522600":"黔东南苗族侗族自治州","522700":"黔南布依族苗族自治州"},"520100":{"520101":"市辖区","520102":"南明区","520103":"云岩区","520111":"花溪区","520112":"乌当区","520113":"白云区","520115":"观山湖区","520121":"开阳县","520122":"息烽县","520123":"修文县","520181":"清镇市"},"520200":{"520201":"钟山区","520203":"六枝特区","520221":"水城县","520281":"盘州市"},"520300":{"520301":"市辖区","520302":"红花岗区","520303":"汇川区","520304":"播州区","520322":"桐梓县","520323":"绥阳县","520324":"正安县","520325":"道真仡佬族苗族自治县","520326":"务川仡佬族苗族自治县","520327":"凤冈县","520328":"湄潭县","520329":"余庆县","520330":"习水县","520381":"赤水市","520382":"仁怀市"},"520400":{"520401":"市辖区","520402":"西秀区","520403":"平坝区","520422":"普定县","520423":"镇宁布依族苗族自治县","520424":"关岭布依族苗族自治县","520425":"紫云苗族布依族自治县"},"520500":{"520501":"市辖区","520502":"七星关区","520521":"大方县","520522":"黔西县","520523":"金沙县","520524":"织金县","520525":"纳雍县","520526":"威宁彝族回族苗族自治县","520527":"赫章县"},"520600":{"520601":"市辖区","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":"三都水族自治县"},"530000":{"530100":"昆明市","530300":"曲靖市","530400":"玉溪市","530500":"保山市","530600":"昭通市","530700":"丽江市","530800":"普洱市","530900":"临沧市","532300":"楚雄彝族自治州","532500":"红河哈尼族彝族自治州","532600":"文山壮族苗族自治州","532800":"西双版纳傣族自治州","532900":"大理白族自治州","533100":"德宏傣族景颇族自治州","533300":"怒江傈僳族自治州","533400":"迪庆藏族自治州"},"530100":{"530101":"市辖区","530102":"五华区","530103":"盘龙区","530111":"官渡区","530112":"西山区","530113":"东川区","530114":"呈贡区","530115":"晋宁区","530124":"富民县","530125":"宜良县","530126":"石林彝族自治县","530127":"嵩明县","530128":"禄劝彝族苗族自治县","530129":"寻甸回族彝族自治县","530181":"安宁市"},"530300":{"530301":"市辖区","530302":"麒麟区","530303":"沾益区","530304":"马龙区","530322":"陆良县","530323":"师宗县","530324":"罗平县","530325":"富源县","530326":"会泽县","530381":"宣威市"},"530400":{"530401":"市辖区","530402":"红塔区","530403":"江川区","530422":"澄江县","530423":"通海县","530424":"华宁县","530425":"易门县","530426":"峨山彝族自治县","530427":"新平彝族傣族自治县","530428":"元江哈尼族彝族傣族自治县"},"530500":{"530501":"市辖区","530502":"隆阳区","530521":"施甸县","530523":"龙陵县","530524":"昌宁县","530581":"腾冲市"},"530600":{"530601":"市辖区","530602":"昭阳区","530621":"鲁甸县","530622":"巧家县","530623":"盐津县","530624":"大关县","530625":"永善县","530626":"绥江县","530627":"镇雄县","530628":"彝良县","530629":"威信县","530681":"水富市"},"530700":{"530701":"市辖区","530702":"古城区","530721":"玉龙纳西族自治县","530722":"永胜县","530723":"华坪县","530724":"宁蒗彝族自治县"},"530800":{"530801":"市辖区","530802":"思茅区","530821":"宁洱哈尼族彝族自治县","530822":"墨江哈尼族自治县","530823":"景东彝族自治县","530824":"景谷傣族彝族自治县","530825":"镇沅彝族哈尼族拉祜族自治县","530826":"江城哈尼族彝族自治县","530827":"孟连傣族拉祜族佤族自治县","530828":"澜沧拉祜族自治县","530829":"西盟佤族自治县"},"530900":{"530901":"市辖区","530902":"临翔区","530921":"凤庆县","530922":"云县","530923":"永德县","530924":"镇康县","530925":"双江拉祜族佤族布朗族傣族自治县","530926":"耿马傣族佤族自治县","530927":"沧源佤族自治县"},"532300":{"532301":"楚雄市","532322":"双柏县","532323":"牟定县","532324":"南华县","532325":"姚安县","532326":"大姚县","532327":"永仁县","532328":"元谋县","532329":"武定县","532331":"禄丰县"},"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":"维西傈僳族自治县"},"540000":{"540100":"拉萨市","540200":"日喀则市","540300":"昌都市","540400":"林芝市","540500":"山南市","540600":"那曲市","542500":"阿里地区"},"540100":{"540101":"市辖区","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":{"540501":"市辖区","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":"措勤县"},"610000":{"610100":"西安市","610200":"铜川市","610300":"宝鸡市","610400":"咸阳市","610500":"渭南市","610600":"延安市","610700":"汉中市","610800":"榆林市","610900":"安康市","611000":"商洛市"},"610100":{"610101":"市辖区","610102":"新城区","610103":"碑林区","610104":"莲湖区","610111":"灞桥区","610112":"未央区","610113":"雁塔区","610114":"阎良区","610115":"临潼区","610116":"长安区","610117":"高陵区","610118":"鄠邑区","610122":"蓝田县","610124":"周至县"},"610200":{"610201":"市辖区","610202":"王益区","610203":"印台区","610204":"耀州区","610222":"宜君县"},"610300":{"610301":"市辖区","610302":"渭滨区","610303":"金台区","610304":"陈仓区","610322":"凤翔县","610323":"岐山县","610324":"扶风县","610326":"眉县","610327":"陇县","610328":"千阳县","610329":"麟游县","610330":"凤县","610331":"太白县"},"610400":{"610401":"市辖区","610402":"秦都区","610403":"杨陵区","610404":"渭城区","610422":"三原县","610423":"泾阳县","610424":"乾县","610425":"礼泉县","610426":"永寿县","610428":"长武县","610429":"旬邑县","610430":"淳化县","610431":"武功县","610481":"兴平市","610482":"彬州市"},"610500":{"610501":"市辖区","610502":"临渭区","610503":"华州区","610522":"潼关县","610523":"大荔县","610524":"合阳县","610525":"澄城县","610526":"蒲城县","610527":"白水县","610528":"富平县","610581":"韩城市","610582":"华阴市"},"610600":{"610601":"市辖区","610602":"宝塔区","610603":"安塞区","610621":"延长县","610622":"延川县","610625":"志丹县","610626":"吴起县","610627":"甘泉县","610628":"富县","610629":"洛川县","610630":"宜川县","610631":"黄龙县","610632":"黄陵县","610681":"子长市"},"610700":{"610701":"市辖区","610702":"汉台区","610703":"南郑区","610722":"城固县","610723":"洋县","610724":"西乡县","610725":"勉县","610726":"宁强县","610727":"略阳县","610728":"镇巴县","610729":"留坝县","610730":"佛坪县"},"610800":{"610801":"市辖区","610802":"榆阳区","610803":"横山区","610822":"府谷县","610824":"靖边县","610825":"定边县","610826":"绥德县","610827":"米脂县","610828":"佳县","610829":"吴堡县","610830":"清涧县","610831":"子洲县","610881":"神木市"},"610900":{"610901":"市辖区","610902":"汉滨区","610921":"汉阴县","610922":"石泉县","610923":"宁陕县","610924":"紫阳县","610925":"岚皋县","610926":"平利县","610927":"镇坪县","610928":"旬阳县","610929":"白河县"},"611000":{"611001":"市辖区","611002":"商州区","611021":"洛南县","611022":"丹凤县","611023":"商南县","611024":"山阳县","611025":"镇安县","611026":"柞水县"},"620000":{"620100":"兰州市","620200":"嘉峪关市","620300":"金昌市","620400":"白银市","620500":"天水市","620600":"武威市","620700":"张掖市","620800":"平凉市","620900":"酒泉市","621000":"庆阳市","621100":"定西市","621200":"陇南市","622900":"临夏回族自治州","623000":"甘南藏族自治州"},"620100":{"620101":"市辖区","620102":"城关区","620103":"七里河区","620104":"西固区","620105":"安宁区","620111":"红古区","620121":"永登县","620122":"皋兰县","620123":"榆中县","620171":"兰州新区"},"620200":{"620201":"市辖区"},"620300":{"620301":"市辖区","620302":"金川区","620321":"永昌县"},"620400":{"620401":"市辖区","620402":"白银区","620403":"平川区","620421":"靖远县","620422":"会宁县","620423":"景泰县"},"620500":{"620501":"市辖区","620502":"秦州区","620503":"麦积区","620521":"清水县","620522":"秦安县","620523":"甘谷县","620524":"武山县","620525":"张家川回族自治县"},"620600":{"620601":"市辖区","620602":"凉州区","620621":"民勤县","620622":"古浪县","620623":"天祝藏族自治县"},"620700":{"620701":"市辖区","620702":"甘州区","620721":"肃南裕固族自治县","620722":"民乐县","620723":"临泽县","620724":"高台县","620725":"山丹县"},"620800":{"620801":"市辖区","620802":"崆峒区","620821":"泾川县","620822":"灵台县","620823":"崇信县","620825":"庄浪县","620826":"静宁县","620881":"华亭市"},"620900":{"620901":"市辖区","620902":"肃州区","620921":"金塔县","620922":"瓜州县","620923":"肃北蒙古族自治县","620924":"阿克塞哈萨克族自治县","620981":"玉门市","620982":"敦煌市"},"621000":{"621001":"市辖区","621002":"西峰区","621021":"庆城县","621022":"环县","621023":"华池县","621024":"合水县","621025":"正宁县","621026":"宁县","621027":"镇原县"},"621100":{"621101":"市辖区","621102":"安定区","621121":"通渭县","621122":"陇西县","621123":"渭源县","621124":"临洮县","621125":"漳县","621126":"岷县"},"621200":{"621201":"市辖区","621202":"武都区","621221":"成县","621222":"文县","621223":"宕昌县","621224":"康县","621225":"西和县","621226":"礼县","621227":"徽县","621228":"两当县"},"622900":{"622901":"临夏市","622921":"临夏县","622922":"康乐县","622923":"永靖县","622924":"广河县","622925":"和政县","622926":"东乡族自治县","622927":"积石山保安族东乡族撒拉族自治县"},"623000":{"623001":"合作市","623021":"临潭县","623022":"卓尼县","623023":"舟曲县","623024":"迭部县","623025":"玛曲县","623026":"碌曲县","623027":"夏河县"},"630000":{"630100":"西宁市","630200":"海东市","632200":"海北藏族自治州","632300":"黄南藏族自治州","632500":"海南藏族自治州","632600":"果洛藏族自治州","632700":"玉树藏族自治州","632800":"海西蒙古族藏族自治州"},"630100":{"630101":"市辖区","630102":"城东区","630103":"城中区","630104":"城西区","630105":"城北区","630121":"大通回族土族自治县","630122":"湟中县","630123":"湟源县"},"630200":{"630202":"乐都区","630203":"平安区","630222":"民和回族土族自治县","630223":"互助土族自治县","630224":"化隆回族自治县","630225":"循化撒拉族自治县"},"632200":{"632221":"门源回族自治县","632222":"祁连县","632223":"海晏县","632224":"刚察县"},"632300":{"632321":"同仁县","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":"大柴旦行政委员会"},"640000":{"640100":"银川市","640200":"石嘴山市","640300":"吴忠市","640400":"固原市","640500":"中卫市"},"640100":{"640101":"市辖区","640104":"兴庆区","640105":"西夏区","640106":"金凤区","640121":"永宁县","640122":"贺兰县","640181":"灵武市"},"640200":{"640201":"市辖区","640202":"大武口区","640205":"惠农区","640221":"平罗县"},"640300":{"640301":"市辖区","640302":"利通区","640303":"红寺堡区","640323":"盐池县","640324":"同心县","640381":"青铜峡市"},"640400":{"640401":"市辖区","640402":"原州区","640422":"西吉县","640423":"隆德县","640424":"泾源县","640425":"彭阳县"},"640500":{"640501":"市辖区","640502":"沙坡头区","640521":"中宁县","640522":"海原县"},"650000":{"650100":"乌鲁木齐市","650200":"克拉玛依市","650400":"吐鲁番市","650500":"哈密市","652300":"昌吉回族自治州","652700":"博尔塔拉蒙古自治州","652800":"巴音郭楞蒙古自治州","652900":"阿克苏地区","653000":"克孜勒苏柯尔克孜自治州","653100":"喀什地区","653200":"和田地区","654000":"伊犁哈萨克自治州","654200":"塔城地区","654300":"阿勒泰地区","659000":"自治区直辖县级行政区划"},"650100":{"650101":"市辖区","650102":"天山区","650103":"沙依巴克区","650104":"新市区","650105":"水磨沟区","650106":"头屯河区","650107":"达坂城区","650109":"米东区","650121":"乌鲁木齐县"},"650200":{"650201":"市辖区","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":"阿克苏市","652922":"温宿县","652923":"库车县","652924":"沙雅县","652925":"新和县","652926":"拜城县","652927":"乌什县","652928":"阿瓦提县","652929":"柯坪县"},"653000":{"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":"民丰县"},"654000":{"654002":"伊宁市","654003":"奎屯市","654004":"霍尔果斯市","654021":"伊宁县","654022":"察布查尔锡伯自治县","654023":"霍城县","654024":"巩留县","654025":"新源县","654026":"昭苏县","654027":"特克斯县","654028":"尼勒克县"},"654200":{"654201":"塔城市","654202":"乌苏市","654221":"额敏县","654223":"沙湾县","654224":"托里县","654225":"裕民县","654226":"和布克赛尔蒙古自治县"},"654300":{"654301":"阿勒泰市","654321":"布尔津县","654322":"富蕴县","654323":"福海县","654324":"哈巴河县","654325":"青河县","654326":"吉木乃县"},"659000":{"659001":"石河子市","659002":"阿拉尔市","659003":"图木舒克市","659004":"五家渠市","659006":"铁门关市"},"710000":{"710100":"台北市","710200":"高雄市","710300":"基隆市","710400":"台中市","710500":"台南市","710600":"新竹市","710700":"嘉义市"},"710100":{"710101":"内湖区","710102":"南港区","710103":"中正区","710104":"松山区","710105":"信义区","710106":"大安区","710107":"中山区","710108":"文山区","710109":"大同区","710110":"万华区","710111":"士林区","710112":"北投区"},"710200":{"710201":"新兴区","710202":"前金区","710203":"芩雅区","710204":"盐埕区","710205":"鼓山区","710206":"旗津区","710207":"前镇区","710208":"三民区","710209":"左营区","710210":"楠梓区","710211":"小港区"},"710300":{"710301":"仁爱区","710302":"信义区","710303":"中正区","710304":"暖暖区","710305":"安乐区","710307":"七堵区"},"710400":{"710301":"中区","710302":"东区","710303":"南区","710304":"西区","710305":"北区","710306":"北屯区","710307":"西屯区","710308":"南屯区"},"710500":{"710501":"中西区","710502":"东区","710503":"南区","710504":"北区","710505":"安平区","710506":"安南区"},"710600":{"710601":"东区","710602":"北区","710603":"香山区"},"710700":{"710701":"东区","710702":"西区"},"810000":{"810001":"中西區","810002":"灣仔區","810003":"東區","810004":"南區","810005":"油尖旺區","810006":"深水埗區","810007":"九龍城區","810008":"黃大仙區","810009":"觀塘區","810010":"荃灣區","810011":"屯門區","810012":"元朗區","810013":"北區","810014":"大埔區","810015":"西貢區","810016":"沙田區","810017":"葵青區","810018":"離島區"},"820000":{"820001":"花地瑪堂區","820002":"花王堂區","820003":"望德堂區","820004":"大堂區","820005":"風順堂區","820006":"嘉模堂區","820007":"路氹填海區","820008":"聖方濟各堂區"}}')},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";n.r(t),n.d(t,"provinceAndCityData",function(){return dt}),n.d(t,"regionData",function(){return ht}),n.d(t,"provinceAndCityDataPlus",function(){return It}),n.d(t,"regionDataPlus",function(){return Rt}),n.d(t,"CodeToText",function(){return lt}),n.d(t,"TextToCode",function(){return ct});var r=n(1),i=n.n(r),a=function(e,t){return e===t||e!=e&&t!=t},o=function(e,t){for(var n=e.length;n--;)if(a(e[n][0],t))return n;return-1},s=Array.prototype.splice;function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=function(){this.__data__=[],this.size=0},l.prototype.delete=function(e){var t=this.__data__,n=o(t,e);return!(n<0||(n==t.length-1?t.pop():s.call(t,n,1),--this.size,0))},l.prototype.get=function(e){var t=this.__data__,n=o(t,e);return n<0?void 0:t[n][1]},l.prototype.has=function(e){return o(this.__data__,e)>-1},l.prototype.set=function(e,t){var n=this.__data__,r=o(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};var c,u=l,h=n(0),d=h.a.Symbol,f=Object.prototype,p=f.hasOwnProperty,A=f.toString,g=d?d.toStringTag:void 0,m=Object.prototype.toString,v=d?d.toStringTag:void 0,y=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":v&&v in Object(e)?function(e){var t=p.call(e,g),n=e[g];try{e[g]=void 0;var r=!0}catch(e){}var i=A.call(e);return r&&(t?e[g]=n:delete e[g]),i}(e):function(e){return m.call(e)}(e)},b=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},w=function(e){if(!b(e))return!1;var t=y(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},x=h.a["__core-js_shared__"],_=(c=/[^.]+$/.exec(x&&x.keys&&x.keys.IE_PROTO||""))?"Symbol(src)_1."+c:"",C=Function.prototype.toString,S=function(e){if(null!=e){try{return C.call(e)}catch(e){}try{return e+""}catch(e){}}return""},k=/^\[object .+?Constructor\]$/,B=Function.prototype,E=Object.prototype,T=B.toString,I=E.hasOwnProperty,M=RegExp("^"+T.call(I).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),F=function(e){return!(!b(e)||function(e){return!!_&&_ in e}(e))&&(w(e)?M:k).test(S(e))},D=function(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return F(n)?n:void 0},P=D(h.a,"Map"),O=D(Object,"create"),L=Object.prototype.hasOwnProperty,R=Object.prototype.hasOwnProperty;function N(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}N.prototype.clear=function(){this.__data__=O?O(null):{},this.size=0},N.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},N.prototype.get=function(e){var t=this.__data__;if(O){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return L.call(t,e)?t[e]:void 0},N.prototype.has=function(e){var t=this.__data__;return O?void 0!==t[e]:R.call(t,e)},N.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=O&&void 0===t?"__lodash_hash_undefined__":t,this};var U=N,H=function(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map};function j(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}j.prototype.clear=function(){this.size=0,this.__data__={hash:new U,map:new(P||u),string:new U}},j.prototype.delete=function(e){var t=H(this,e).delete(e);return this.size-=t?1:0,t},j.prototype.get=function(e){return H(this,e).get(e)},j.prototype.has=function(e){return H(this,e).has(e)},j.prototype.set=function(e,t){var n=H(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};var Q=j;function z(e){var t=this.__data__=new u(e);this.size=t.size}z.prototype.clear=function(){this.__data__=new u,this.size=0},z.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},z.prototype.get=function(e){return this.__data__.get(e)},z.prototype.has=function(e){return this.__data__.has(e)},z.prototype.set=function(e,t){var n=this.__data__;if(n instanceof u){var r=n.__data__;if(!P||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Q(r)}return n.set(e,t),this.size=n.size,this};var V=z,G=function(){try{var e=D(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),$=function(e,t,n){"__proto__"==t&&G?G(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},q=Object.prototype.hasOwnProperty,W=function(e,t,n){var r=e[t];q.call(e,t)&&a(r,n)&&(void 0!==n||t in e)||$(e,t,n)},K=function(e,t,n,r){var i=!n;n||(n={});for(var a=-1,o=t.length;++a<o;){var s=t[a],l=r?r(n[s],e[s],s,n,e):void 0;void 0===l&&(l=e[s]),i?$(n,s,l):W(n,s,l)}return n},Y=function(e){return null!=e&&"object"==typeof e},X=function(e){return Y(e)&&"[object Arguments]"==y(e)},J=Object.prototype,Z=J.hasOwnProperty,ee=J.propertyIsEnumerable,te=X(function(){return arguments}())?X:function(e){return Y(e)&&Z.call(e,"callee")&&!ee.call(e,"callee")},ne=Array.isArray,re=n(4),ie=/^(?:0|[1-9]\d*)$/,ae=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&ie.test(e))&&e>-1&&e%1==0&&e<t},oe=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},se={};se["[object Float32Array]"]=se["[object Float64Array]"]=se["[object Int8Array]"]=se["[object Int16Array]"]=se["[object Int32Array]"]=se["[object Uint8Array]"]=se["[object Uint8ClampedArray]"]=se["[object Uint16Array]"]=se["[object Uint32Array]"]=!0,se["[object Arguments]"]=se["[object Array]"]=se["[object ArrayBuffer]"]=se["[object Boolean]"]=se["[object DataView]"]=se["[object Date]"]=se["[object Error]"]=se["[object Function]"]=se["[object Map]"]=se["[object Number]"]=se["[object Object]"]=se["[object RegExp]"]=se["[object Set]"]=se["[object String]"]=se["[object WeakMap]"]=!1;var le=function(e){return function(t){return e(t)}},ce=n(2),ue=ce.a&&ce.a.isTypedArray,he=ue?le(ue):function(e){return Y(e)&&oe(e.length)&&!!se[y(e)]},de=Object.prototype.hasOwnProperty,fe=function(e,t){var n=ne(e),r=!n&&te(e),i=!n&&!r&&Object(re.a)(e),a=!n&&!r&&!i&&he(e),o=n||r||i||a,s=o?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],l=s.length;for(var c in e)!t&&!de.call(e,c)||o&&("length"==c||i&&("offset"==c||"parent"==c)||a&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||ae(c,l))||s.push(c);return s},pe=Object.prototype,Ae=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||pe)},ge=function(e,t){return function(n){return e(t(n))}},me=ge(Object.keys,Object),ve=Object.prototype.hasOwnProperty,ye=function(e){return null!=e&&oe(e.length)&&!w(e)},be=function(e){return ye(e)?fe(e):function(e){if(!Ae(e))return me(e);var t=[];for(var n in Object(e))ve.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)},we=Object.prototype.hasOwnProperty,xe=function(e){if(!b(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=Ae(e),n=[];for(var r in e)("constructor"!=r||!t&&we.call(e,r))&&n.push(r);return n},_e=function(e){return ye(e)?fe(e,!0):xe(e)},Ce=n(7),Se=function(){return[]},ke=Object.prototype.propertyIsEnumerable,Be=Object.getOwnPropertySymbols,Ee=Be?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}(Be(e),function(t){return ke.call(e,t)}))}:Se,Te=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e},Ie=ge(Object.getPrototypeOf,Object),Me=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Te(t,Ee(e)),e=Ie(e);return t}:Se,Fe=function(e,t,n){var r=t(e);return ne(e)?r:Te(r,n(e))},De=function(e){return Fe(e,be,Ee)},Pe=function(e){return Fe(e,_e,Me)},Oe=D(h.a,"DataView"),Le=D(h.a,"Promise"),Re=D(h.a,"Set"),Ne=D(h.a,"WeakMap"),Ue=S(Oe),He=S(P),je=S(Le),Qe=S(Re),ze=S(Ne),Ve=y;(Oe&&"[object DataView]"!=Ve(new Oe(new ArrayBuffer(1)))||P&&"[object Map]"!=Ve(new P)||Le&&"[object Promise]"!=Ve(Le.resolve())||Re&&"[object Set]"!=Ve(new Re)||Ne&&"[object WeakMap]"!=Ve(new Ne))&&(Ve=function(e){var t=y(e),n="[object Object]"==t?e.constructor:void 0,r=n?S(n):"";if(r)switch(r){case Ue:return"[object DataView]";case He:return"[object Map]";case je:return"[object Promise]";case Qe:return"[object Set]";case ze:return"[object WeakMap]"}return t});var Ge=Ve,$e=Object.prototype.hasOwnProperty,qe=h.a.Uint8Array,We=function(e){var t=new e.constructor(e.byteLength);return new qe(t).set(new qe(e)),t},Ke=/\w*$/,Ye=d?d.prototype:void 0,Xe=Ye?Ye.valueOf:void 0,Je=function(e,t,n){var r=e.constructor;switch(t){case"[object ArrayBuffer]":return We(e);case"[object Boolean]":case"[object Date]":return new r(+e);case"[object DataView]":return function(e,t){var n=t?We(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return function(e,t){var n=t?We(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}(e,n);case"[object Map]":return new r;case"[object Number]":case"[object String]":return new r(e);case"[object RegExp]":return function(e){var t=new e.constructor(e.source,Ke.exec(e));return t.lastIndex=e.lastIndex,t}(e);case"[object Set]":return new r;case"[object Symbol]":return function(e){return Xe?Object(Xe.call(e)):{}}(e)}},Ze=Object.create,et=function(){function e(){}return function(t){if(!b(t))return{};if(Ze)return Ze(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),tt=ce.a&&ce.a.isMap,nt=tt?le(tt):function(e){return Y(e)&&"[object Map]"==Ge(e)},rt=ce.a&&ce.a.isSet,it=rt?le(rt):function(e){return Y(e)&&"[object Set]"==Ge(e)},at={};at["[object Arguments]"]=at["[object Array]"]=at["[object ArrayBuffer]"]=at["[object DataView]"]=at["[object Boolean]"]=at["[object Date]"]=at["[object Float32Array]"]=at["[object Float64Array]"]=at["[object Int8Array]"]=at["[object Int16Array]"]=at["[object Int32Array]"]=at["[object Map]"]=at["[object Number]"]=at["[object Object]"]=at["[object RegExp]"]=at["[object Set]"]=at["[object String]"]=at["[object Symbol]"]=at["[object Uint8Array]"]=at["[object Uint8ClampedArray]"]=at["[object Uint16Array]"]=at["[object Uint32Array]"]=!0,at["[object Error]"]=at["[object Function]"]=at["[object WeakMap]"]=!1;var ot=function e(t,n,r,i,a,o){var s,l=1&n,c=2&n,u=4&n;if(r&&(s=a?r(t,i,a,o):r(t)),void 0!==s)return s;if(!b(t))return t;var h=ne(t);if(h){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&$e.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(t),!l)return function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}(t,s)}else{var d=Ge(t),f="[object Function]"==d||"[object GeneratorFunction]"==d;if(Object(re.a)(t))return Object(Ce.a)(t,l);if("[object Object]"==d||"[object Arguments]"==d||f&&!a){if(s=c||f?{}:function(e){return"function"!=typeof e.constructor||Ae(e)?{}:et(Ie(e))}(t),!l)return c?function(e,t){return K(e,Me(e),t)}(t,function(e,t){return e&&K(t,_e(t),e)}(s,t)):function(e,t){return K(e,Ee(e),t)}(t,function(e,t){return e&&K(t,be(t),e)}(s,t))}else{if(!at[d])return a?t:{};s=Je(t,d,l)}}o||(o=new V);var p=o.get(t);if(p)return p;o.set(t,s),it(t)?t.forEach(function(i){s.add(e(i,n,r,i,t,o))}):nt(t)&&t.forEach(function(i,a){s.set(a,e(i,n,r,a,t,o))});var A=u?c?Pe:De:c?keysIn:be,g=h?void 0:A(t);return function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););}(g||t,function(i,a){g&&(i=t[a=i]),W(s,a,e(i,n,r,a,t,o))}),s},st=function(e){return ot(e,5)},lt={},ct={},ut=i.a[86],ht=[],dt=[];for(var ft in lt[""]="全部",ut)ht.push({value:ft,label:ut[ft]}),lt[ft]=ut[ft],ct[ut[ft]]={code:ft},ct[ut[ft]]["全部"]={code:""};for(var pt=0,At=ht.length;pt<At;pt++){var gt=ht[pt].value,mt=ht[pt].label,vt=[];for(var yt in i.a[gt])vt.push({value:yt,label:i.a[gt][yt]}),lt[yt]=i.a[gt][yt],ct[mt][i.a[gt][yt]]={code:yt},ct[mt][i.a[gt][yt]]["全部"]={code:""};vt.length&&(ht[pt].children=vt)}dt=st(ht);for(var bt=0,wt=ht.length;bt<wt;bt++){var xt=ht[bt].children,_t=ht[bt].label;if(xt)for(var Ct=0,St=xt.length;Ct<St;Ct++){var kt=xt[Ct].value,Bt=xt[Ct].label,Et=[];for(var Tt in i.a[kt])Et.push({value:Tt,label:i.a[kt][Tt]}),lt[Tt]=i.a[kt][Tt],ct[_t][Bt][i.a[kt][Tt]]={code:Tt};Et.length&&(xt[Ct].children=Et)}}var It=st(dt);It.unshift({value:"",label:"全部"});for(var Mt=0,Ft=It.length;Mt<Ft;Mt++){var Dt=It[Mt].children;if(Dt&&Dt.length){Dt.unshift({value:"",label:"全部"});for(var Pt=0,Ot=Dt.length;Pt<Ot;Pt++){var Lt=Dt[Pt].children;Lt&&Lt.length&&Lt.unshift({value:"",label:"全部"})}}}var Rt=st(ht);Rt.unshift({value:"",label:"全部"});for(var Nt=0,Ut=Rt.length;Nt<Ut;Nt++){var Ht=Rt[Nt].children;if(Ht&&Ht.length){Ht.unshift({value:"",label:"全部"});for(var jt=0,Qt=Ht.length;jt<Qt;jt++){var zt=Ht[jt].children;zt&&zt.length&&zt.unshift({value:"",label:"全部"})}}}}])},e.exports=r()},X8DO:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},XLwt:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={};n.d(r,"$override",function(){return D}),n.d(r,"guid",function(){return O}),n.d(r,"logError",function(){return L}),n.d(r,"clone",function(){return R}),n.d(r,"merge",function(){return N}),n.d(r,"mergeAll",function(){return U}),n.d(r,"extend",function(){return H}),n.d(r,"defaults",function(){return j}),n.d(r,"createCanvas",function(){return Q}),n.d(r,"indexOf",function(){return z}),n.d(r,"inherits",function(){return V}),n.d(r,"mixin",function(){return G}),n.d(r,"isArrayLike",function(){return $}),n.d(r,"each",function(){return q}),n.d(r,"map",function(){return W}),n.d(r,"reduce",function(){return K}),n.d(r,"filter",function(){return Y}),n.d(r,"find",function(){return X}),n.d(r,"keys",function(){return J}),n.d(r,"bind",function(){return Z}),n.d(r,"curry",function(){return ee}),n.d(r,"isArray",function(){return te}),n.d(r,"isFunction",function(){return ne}),n.d(r,"isString",function(){return re}),n.d(r,"isStringSafe",function(){return ie}),n.d(r,"isNumber",function(){return ae}),n.d(r,"isObject",function(){return oe}),n.d(r,"isBuiltInObject",function(){return se}),n.d(r,"isTypedArray",function(){return le}),n.d(r,"isDom",function(){return ce}),n.d(r,"isGradientObject",function(){return ue}),n.d(r,"isPatternObject",function(){return he}),n.d(r,"isRegExp",function(){return de}),n.d(r,"eqNaN",function(){return fe}),n.d(r,"retrieve",function(){return pe}),n.d(r,"retrieve2",function(){return Ae}),n.d(r,"retrieve3",function(){return ge}),n.d(r,"slice",function(){return me}),n.d(r,"normalizeCssArray",function(){return ve}),n.d(r,"assert",function(){return ye}),n.d(r,"trim",function(){return be}),n.d(r,"setAsPrimitive",function(){return xe}),n.d(r,"isPrimitive",function(){return _e}),n.d(r,"HashMap",function(){return Ce}),n.d(r,"createHashMap",function(){return Se}),n.d(r,"concatArray",function(){return ke}),n.d(r,"createObject",function(){return Be}),n.d(r,"hasOwn",function(){return Ee}),n.d(r,"noop",function(){return Te});var i={};n.d(i,"create",function(){return Fe}),n.d(i,"copy",function(){return De}),n.d(i,"clone",function(){return Pe}),n.d(i,"set",function(){return Oe}),n.d(i,"add",function(){return Le}),n.d(i,"scaleAndAdd",function(){return Re}),n.d(i,"sub",function(){return Ne}),n.d(i,"len",function(){return Ue}),n.d(i,"length",function(){return He}),n.d(i,"lenSquare",function(){return je}),n.d(i,"lengthSquare",function(){return Qe}),n.d(i,"mul",function(){return ze}),n.d(i,"div",function(){return Ve}),n.d(i,"dot",function(){return Ge}),n.d(i,"scale",function(){return $e}),n.d(i,"normalize",function(){return qe}),n.d(i,"distance",function(){return We}),n.d(i,"dist",function(){return Ke}),n.d(i,"distanceSquare",function(){return Ye}),n.d(i,"distSquare",function(){return Xe}),n.d(i,"negate",function(){return Je}),n.d(i,"lerp",function(){return Ze}),n.d(i,"applyTransform",function(){return et}),n.d(i,"min",function(){return tt}),n.d(i,"max",function(){return nt});var a={};n.d(a,"create",function(){return Ot}),n.d(a,"identity",function(){return Lt}),n.d(a,"copy",function(){return Rt}),n.d(a,"mul",function(){return Nt}),n.d(a,"translate",function(){return Ut}),n.d(a,"rotate",function(){return Ht}),n.d(a,"scale",function(){return jt}),n.d(a,"invert",function(){return Qt}),n.d(a,"clone",function(){return zt});var o={};n.d(o,"parse",function(){return mn}),n.d(o,"lift",function(){return yn}),n.d(o,"toHex",function(){return bn}),n.d(o,"fastLerp",function(){return wn}),n.d(o,"fastMapToColor",function(){return xn}),n.d(o,"lerp",function(){return _n}),n.d(o,"mapToColor",function(){return Cn}),n.d(o,"modifyHSL",function(){return Sn}),n.d(o,"modifyAlpha",function(){return kn}),n.d(o,"stringify",function(){return Bn}),n.d(o,"lum",function(){return En}),n.d(o,"random",function(){return Tn});var s={};n.d(s,"init",function(){return ci}),n.d(s,"dispose",function(){return ui}),n.d(s,"disposeAll",function(){return hi}),n.d(s,"getInstance",function(){return di}),n.d(s,"registerPainter",function(){return fi}),n.d(s,"version",function(){return pi});var l={};n.d(l,"extendShape",function(){return cu}),n.d(l,"extendPath",function(){return hu}),n.d(l,"registerShape",function(){return du}),n.d(l,"getShapeClass",function(){return fu}),n.d(l,"makePath",function(){return pu}),n.d(l,"makeImage",function(){return Au}),n.d(l,"mergePath",function(){return mu}),n.d(l,"resizePath",function(){return vu}),n.d(l,"subPixelOptimizeLine",function(){return yu}),n.d(l,"subPixelOptimizeRect",function(){return bu}),n.d(l,"subPixelOptimize",function(){return wu}),n.d(l,"updateProps",function(){return _u}),n.d(l,"initProps",function(){return Cu}),n.d(l,"removeElement",function(){return Su}),n.d(l,"removeElementWithFadeOut",function(){return Bu}),n.d(l,"isElementRemoved",function(){return Eu}),n.d(l,"getTransform",function(){return Tu}),n.d(l,"applyTransform",function(){return Iu}),n.d(l,"transformDirection",function(){return Mu}),n.d(l,"groupTransition",function(){return Du}),n.d(l,"clipPointsByRect",function(){return Pu}),n.d(l,"clipRectByRect",function(){return Ou}),n.d(l,"createIcon",function(){return Lu}),n.d(l,"linePolygonIntersect",function(){return Ru}),n.d(l,"lineLineIntersect",function(){return Nu}),n.d(l,"Group",function(){return ii}),n.d(l,"Image",function(){return Ss}),n.d(l,"Text",function(){return Vs}),n.d(l,"Circle",function(){return oc}),n.d(l,"Ellipse",function(){return cc}),n.d(l,"Sector",function(){return Sc}),n.d(l,"Ring",function(){return Ec}),n.d(l,"Polygon",function(){return Dc}),n.d(l,"Polyline",function(){return Lc}),n.d(l,"Rect",function(){return Ds}),n.d(l,"Line",function(){return Hc}),n.d(l,"BezierCurve",function(){return Gc}),n.d(l,"Arc",function(){return Wc}),n.d(l,"IncrementalDisplayable",function(){return au}),n.d(l,"CompoundPath",function(){return Kc}),n.d(l,"LinearGradient",function(){return Xc}),n.d(l,"RadialGradient",function(){return Jc}),n.d(l,"BoundingRect",function(){return tr}),n.d(l,"OrientedBoundingRect",function(){return ru}),n.d(l,"Point",function(){return $n}),n.d(l,"Path",function(){return vs});var c={};n.d(c,"createList",function(){return Zb}),n.d(c,"getLayoutRect",function(){return yd}),n.d(c,"createDimensions",function(){return Ly}),n.d(c,"dataStack",function(){return ew}),n.d(c,"createSymbol",function(){return Zg}),n.d(c,"createScale",function(){return tw}),n.d(c,"mixinAxisModelCommonMethods",function(){return nw}),n.d(c,"getECData",function(){return Gs}),n.d(c,"enableHoverEmphasis",function(){return Ml}),n.d(c,"createTextStyle",function(){return rw});var u={};n.d(u,"linearMap",function(){return gi}),n.d(u,"round",function(){return vi}),n.d(u,"asc",function(){return yi}),n.d(u,"getPrecision",function(){return bi}),n.d(u,"getPrecisionSafe",function(){return wi}),n.d(u,"getPixelPrecision",function(){return xi}),n.d(u,"getPercentWithPrecision",function(){return _i}),n.d(u,"MAX_SAFE_INTEGER",function(){return Ci}),n.d(u,"remRadian",function(){return Si}),n.d(u,"isRadianAroundZero",function(){return ki}),n.d(u,"parseDate",function(){return Ei}),n.d(u,"quantity",function(){return Ti}),n.d(u,"quantityExponent",function(){return Ii}),n.d(u,"nice",function(){return Mi}),n.d(u,"quantile",function(){return Fi}),n.d(u,"reformIntervals",function(){return Di}),n.d(u,"isNumeric",function(){return Oi}),n.d(u,"numericToNumber",function(){return Pi});var h={};n.d(h,"parse",function(){return Ei}),n.d(h,"format",function(){return Oh});var d={};n.d(d,"extendShape",function(){return cu}),n.d(d,"extendPath",function(){return hu}),n.d(d,"makePath",function(){return pu}),n.d(d,"makeImage",function(){return Au}),n.d(d,"mergePath",function(){return mu}),n.d(d,"resizePath",function(){return vu}),n.d(d,"createIcon",function(){return Lu}),n.d(d,"updateProps",function(){return _u}),n.d(d,"initProps",function(){return Cu}),n.d(d,"getTransform",function(){return Tu}),n.d(d,"clipPointsByRect",function(){return Pu}),n.d(d,"clipRectByRect",function(){return Ou}),n.d(d,"registerShape",function(){return du}),n.d(d,"getShapeClass",function(){return fu}),n.d(d,"Group",function(){return ii}),n.d(d,"Image",function(){return Ss}),n.d(d,"Text",function(){return Vs}),n.d(d,"Circle",function(){return oc}),n.d(d,"Ellipse",function(){return cc}),n.d(d,"Sector",function(){return Sc}),n.d(d,"Ring",function(){return Ec}),n.d(d,"Polygon",function(){return Dc}),n.d(d,"Polyline",function(){return Lc}),n.d(d,"Rect",function(){return Ds}),n.d(d,"Line",function(){return Hc}),n.d(d,"BezierCurve",function(){return Gc}),n.d(d,"Arc",function(){return Wc}),n.d(d,"IncrementalDisplayable",function(){return au}),n.d(d,"CompoundPath",function(){return Kc}),n.d(d,"LinearGradient",function(){return Xc}),n.d(d,"RadialGradient",function(){return Jc}),n.d(d,"BoundingRect",function(){return tr});var f={};n.d(f,"addCommas",function(){return Zh}),n.d(f,"toCamelCase",function(){return ed}),n.d(f,"normalizeCssArray",function(){return td}),n.d(f,"encodeHTML",function(){return id}),n.d(f,"formatTpl",function(){return ld}),n.d(f,"getTooltipMarker",function(){return cd}),n.d(f,"formatTime",function(){return ud}),n.d(f,"capitalFirst",function(){return hd}),n.d(f,"truncateText",function(){return Ba}),n.d(f,"getTextRect",function(){return Jh});var p={};n.d(p,"map",function(){return W}),n.d(p,"each",function(){return q}),n.d(p,"indexOf",function(){return z}),n.d(p,"inherits",function(){return V}),n.d(p,"reduce",function(){return K}),n.d(p,"filter",function(){return Y}),n.d(p,"bind",function(){return Z}),n.d(p,"curry",function(){return ee}),n.d(p,"isArray",function(){return te}),n.d(p,"isString",function(){return re}),n.d(p,"isObject",function(){return oe}),n.d(p,"isFunction",function(){return ne}),n.d(p,"extend",function(){return H}),n.d(p,"defaults",function(){return j}),n.d(p,"clone",function(){return R}),n.d(p,"merge",function(){return N});
  55. /*! *****************************************************************************
  56. Copyright (c) Microsoft Corporation.
  57. Permission to use, copy, modify, and/or distribute this software for any
  58. purpose with or without fee is hereby granted.
  59. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  60. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  61. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  62. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  63. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  64. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  65. PERFORMANCE OF THIS SOFTWARE.
  66. ***************************************************************************** */
  67. var A=function(e,t){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function g(e,t){function n(){this.constructor=e}A(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var m=function(){return(m=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.create;function v(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r}Object.create;var y=function(){return function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}}(),b=new(function(){return function(){this.browser=new y,this.node=!1,this.wxa=!1,this.worker=!1,this.canvasSupported=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1}}());"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(b.wxa=!0,b.canvasSupported=!0,b.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?(b.worker=!0,b.canvasSupported=!0):"undefined"==typeof navigator?(b.node=!0,b.canvasSupported=!0,b.svgSupported=!0):function(e,t){var n=t.browser,r=e.match(/Firefox\/([\d.]+)/),i=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),a=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);r&&(n.firefox=!0,n.version=r[1]);i&&(n.ie=!0,n.version=i[1]);a&&(n.edge=!0,n.version=a[1],n.newEdge=+a[1].split(".")[0]>18);o&&(n.weChat=!0);t.canvasSupported=!!document.createElement("canvas").getContext,t.svgSupported="undefined"!=typeof SVGRect,t.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,t.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),t.domSupported="undefined"!=typeof document}(navigator.userAgent,b);var w=b,x={"[object Function]":!0,"[object RegExp]":!0,"[object Date]":!0,"[object Error]":!0,"[object CanvasGradient]":!0,"[object CanvasPattern]":!0,"[object Image]":!0,"[object Canvas]":!0},_={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0},C=Object.prototype.toString,S=Array.prototype,k=S.forEach,B=S.filter,E=S.slice,T=S.map,I=function(){}.constructor,M=I?I.prototype:null,F={};function D(e,t){F[e]=t}var P=2311;function O(){return P++}function L(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];"undefined"!=typeof console&&console.error.apply(console,e)}function R(e){if(null==e||"object"!=typeof e)return e;var t=e,n=C.call(e);if("[object Array]"===n){if(!_e(e)){t=[];for(var r=0,i=e.length;r<i;r++)t[r]=R(e[r])}}else if(_[n]){if(!_e(e)){var a=e.constructor;if(a.from)t=a.from(e);else{t=new a(e.length);for(r=0,i=e.length;r<i;r++)t[r]=R(e[r])}}}else if(!x[n]&&!_e(e)&&!ce(e))for(var o in t={},e)e.hasOwnProperty(o)&&(t[o]=R(e[o]));return t}function N(e,t,n){if(!oe(t)||!oe(e))return n?R(t):e;for(var r in t)if(t.hasOwnProperty(r)){var i=e[r],a=t[r];!oe(a)||!oe(i)||te(a)||te(i)||ce(a)||ce(i)||se(a)||se(i)||_e(a)||_e(i)?!n&&r in e||(e[r]=R(t[r])):N(i,a,n)}return e}function U(e,t){for(var n=e[0],r=1,i=e.length;r<i;r++)n=N(n,e[r],t);return n}function H(e,t){if(Object.assign)Object.assign(e,t);else for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function j(e,t,n){for(var r=J(t),i=0;i<r.length;i++){var a=r[i];(n?null!=t[a]:null==e[a])&&(e[a]=t[a])}return e}var Q=function(){return F.createCanvas()};function z(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n}return-1}function V(e,t){var n=e.prototype;function r(){}for(var i in r.prototype=t.prototype,e.prototype=new r,n)n.hasOwnProperty(i)&&(e.prototype[i]=n[i]);e.prototype.constructor=e,e.superClass=t}function G(e,t,n){if(e="prototype"in e?e.prototype:e,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var r=Object.getOwnPropertyNames(t),i=0;i<r.length;i++){var a=r[i];"constructor"!==a&&(n?null!=t[a]:null==e[a])&&(e[a]=t[a])}else j(e,t,n)}function $(e){return!!e&&("string"!=typeof e&&"number"==typeof e.length)}function q(e,t,n){if(e&&t)if(e.forEach&&e.forEach===k)e.forEach(t,n);else if(e.length===+e.length)for(var r=0,i=e.length;r<i;r++)t.call(n,e[r],r,e);else for(var a in e)e.hasOwnProperty(a)&&t.call(n,e[a],a,e)}function W(e,t,n){if(!e)return[];if(!t)return me(e);if(e.map&&e.map===T)return e.map(t,n);for(var r=[],i=0,a=e.length;i<a;i++)r.push(t.call(n,e[i],i,e));return r}function K(e,t,n,r){if(e&&t){for(var i=0,a=e.length;i<a;i++)n=t.call(r,n,e[i],i,e);return n}}function Y(e,t,n){if(!e)return[];if(!t)return me(e);if(e.filter&&e.filter===B)return e.filter(t,n);for(var r=[],i=0,a=e.length;i<a;i++)t.call(n,e[i],i,e)&&r.push(e[i]);return r}function X(e,t,n){if(e&&t)for(var r=0,i=e.length;r<i;r++)if(t.call(n,e[r],r,e))return e[r]}function J(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t}F.createCanvas=function(){return document.createElement("canvas")};var Z=M&&ne(M.bind)?M.call.bind(M.bind):function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return function(){return e.apply(t,n.concat(E.call(arguments)))}};function ee(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){return e.apply(this,t.concat(E.call(arguments)))}}function te(e){return Array.isArray?Array.isArray(e):"[object Array]"===C.call(e)}function ne(e){return"function"==typeof e}function re(e){return"string"==typeof e}function ie(e){return"[object String]"===C.call(e)}function ae(e){return"number"==typeof e}function oe(e){var t=typeof e;return"function"===t||!!e&&"object"===t}function se(e){return!!x[C.call(e)]}function le(e){return!!_[C.call(e)]}function ce(e){return"object"==typeof e&&"number"==typeof e.nodeType&&"object"==typeof e.ownerDocument}function ue(e){return null!=e.colorStops}function he(e){return null!=e.image}function de(e){return"[object RegExp]"===C.call(e)}function fe(e){return e!=e}function pe(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,r=e.length;n<r;n++)if(null!=e[n])return e[n]}function Ae(e,t){return null!=e?e:t}function ge(e,t,n){return null!=e?e:null!=t?t:n}function me(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return E.apply(e,t)}function ve(e){if("number"==typeof e)return[e,e,e,e];var t=e.length;return 2===t?[e[0],e[1],e[0],e[1]]:3===t?[e[0],e[1],e[2],e[1]]:e}function ye(e,t){if(!e)throw new Error(t)}function be(e){return null==e?null:"function"==typeof e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var we="__ec_primitive__";function xe(e){e[we]=!0}function _e(e){return e[we]}var Ce=function(){function e(t){this.data={};var n=te(t);this.data={};var r=this;function i(e,t){n?r.set(e,t):r.set(t,e)}t instanceof e?t.each(i):t&&q(t,i)}return e.prototype.get=function(e){return this.data.hasOwnProperty(e)?this.data[e]:null},e.prototype.set=function(e,t){return this.data[e]=t},e.prototype.each=function(e,t){for(var n in this.data)this.data.hasOwnProperty(n)&&e.call(t,this.data[n],n)},e.prototype.keys=function(){return J(this.data)},e.prototype.removeKey=function(e){delete this.data[e]},e}();function Se(e){return new Ce(e)}function ke(e,t){for(var n=new e.constructor(e.length+t.length),r=0;r<e.length;r++)n[r]=e[r];var i=e.length;for(r=0;r<t.length;r++)n[r+i]=t[r];return n}function Be(e,t){var n;if(Object.create)n=Object.create(e);else{var r=function(){};r.prototype=e,n=new r}return t&&H(n,t),n}function Ee(e,t){return e.hasOwnProperty(t)}function Te(){}
  68. /*! *****************************************************************************
  69. Copyright (c) Microsoft Corporation.
  70. Permission to use, copy, modify, and/or distribute this software for any
  71. purpose with or without fee is hereby granted.
  72. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  73. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  74. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  75. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  76. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  77. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  78. PERFORMANCE OF THIS SOFTWARE.
  79. ***************************************************************************** */var Ie=function(e,t){return(Ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function Me(e,t){function n(){this.constructor=e}Ie(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}Object.create;Object.create;function Fe(e,t){return null==e&&(e=0),null==t&&(t=0),[e,t]}function De(e,t){return e[0]=t[0],e[1]=t[1],e}function Pe(e){return[e[0],e[1]]}function Oe(e,t,n){return e[0]=t,e[1]=n,e}function Le(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function Re(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e}function Ne(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function Ue(e){return Math.sqrt(je(e))}var He=Ue;function je(e){return e[0]*e[0]+e[1]*e[1]}var Qe=je;function ze(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e}function Ve(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e}function Ge(e,t){return e[0]*t[0]+e[1]*t[1]}function $e(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function qe(e,t){var n=Ue(t);return 0===n?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}function We(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var Ke=We;function Ye(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var Xe=Ye;function Je(e,t){return e[0]=-t[0],e[1]=-t[1],e}function Ze(e,t,n,r){return e[0]=t[0]+r*(n[0]-t[0]),e[1]=t[1]+r*(n[1]-t[1]),e}function et(e,t,n){var r=t[0],i=t[1];return e[0]=n[0]*r+n[2]*i+n[4],e[1]=n[1]*r+n[3]*i+n[5],e}function tt(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function nt(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}var rt=function(){return function(e,t){this.target=e,this.topTarget=t&&t.topTarget}}(),it=function(){function e(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return e.prototype._dragStart=function(e){for(var t=e.target;t&&!t.draggable;)t=t.parent;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new rt(t,e),"dragstart",e.event))},e.prototype._drag=function(e){var t=this._draggingTarget;if(t){var n=e.offsetX,r=e.offsetY,i=n-this._x,a=r-this._y;this._x=n,this._y=r,t.drift(i,a,e),this.handler.dispatchToElement(new rt(t,e),"drag",e.event);var o=this.handler.findHover(n,r,t).target,s=this._dropTarget;this._dropTarget=o,t!==o&&(s&&o!==s&&this.handler.dispatchToElement(new rt(s,e),"dragleave",e.event),o&&o!==s&&this.handler.dispatchToElement(new rt(o,e),"dragenter",e.event))}},e.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new rt(t,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new rt(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},e}(),at=function(){function e(e){e&&(this._$eventProcessor=e)}return e.prototype.on=function(e,t,n,r){this._$handlers||(this._$handlers={});var i=this._$handlers;if("function"==typeof t&&(r=n,n=t,t=null),!n||!e)return this;var a=this._$eventProcessor;null!=t&&a&&a.normalizeQuery&&(t=a.normalizeQuery(t)),i[e]||(i[e]=[]);for(var o=0;o<i[e].length;o++)if(i[e][o].h===n)return this;var s={h:n,query:t,ctx:r||this,callAtLast:n.zrEventfulCallAtLast},l=i[e].length-1,c=i[e][l];return c&&c.callAtLast?i[e].splice(l,0,s):i[e].push(s),this},e.prototype.isSilent=function(e){var t=this._$handlers;return!t||!t[e]||!t[e].length},e.prototype.off=function(e,t){var n=this._$handlers;if(!n)return this;if(!e)return this._$handlers={},this;if(t){if(n[e]){for(var r=[],i=0,a=n[e].length;i<a;i++)n[e][i].h!==t&&r.push(n[e][i]);n[e]=r}n[e]&&0===n[e].length&&delete n[e]}else delete n[e];return this},e.prototype.trigger=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!this._$handlers)return this;var r=this._$handlers[e],i=this._$eventProcessor;if(r)for(var a=t.length,o=r.length,s=0;s<o;s++){var l=r[s];if(!i||!i.filter||null==l.query||i.filter(e,l.query))switch(a){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,t[0]);break;case 2:l.h.call(l.ctx,t[0],t[1]);break;default:l.h.apply(l.ctx,t)}}return i&&i.afterTrigger&&i.afterTrigger(e),this},e.prototype.triggerWithContext=function(e){if(!this._$handlers)return this;var t=this._$handlers[e],n=this._$eventProcessor;if(t)for(var r=arguments,i=r.length,a=r[i-1],o=t.length,s=0;s<o;s++){var l=t[s];if(!n||!n.filter||null==l.query||n.filter(e,l.query))switch(i){case 0:l.h.call(a);break;case 1:l.h.call(a,r[0]);break;case 2:l.h.call(a,r[0],r[1]);break;default:l.h.apply(a,r.slice(1,i-1))}}return n&&n.afterTrigger&&n.afterTrigger(e),this},e}(),ot=Math.log(2);function st(e,t,n,r,i,a){var o=r+"-"+i,s=e.length;if(a.hasOwnProperty(o))return a[o];if(1===t){var l=Math.round(Math.log((1<<s)-1&~i)/ot);return e[n][l]}for(var c=r|1<<n,u=n+1;r&1<<u;)u++;for(var h=0,d=0,f=0;d<s;d++){var p=1<<d;p&i||(h+=(f%2?-1:1)*e[n][d]*st(e,t-1,u,c,i|p,a),f++)}return a[o]=h,h}function lt(e,t){var n=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],r={},i=st(n,8,0,0,0,r);if(0!==i){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)null==a[s]&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*st(n,7,0===o?1:0,1<<o,1<<s,r)/i*t[o];return function(e,t,n){var r=t*a[6]+n*a[7]+1;e[0]=(t*a[0]+n*a[1]+a[2])/r,e[1]=(t*a[3]+n*a[4]+a[5])/r}}}var ct="___zrEVENTSAVED",ut=[];function ht(e,t,n,r,i){if(t.getBoundingClientRect&&w.domSupported&&!dt(t)){var a=t[ct]||(t[ct]={}),o=function(e,t,n){for(var r=n?"invTrans":"trans",i=t[r],a=t.srcCoords,o=[],s=[],l=!0,c=0;c<4;c++){var u=e[c].getBoundingClientRect(),h=2*c,d=u.left,f=u.top;o.push(d,f),l=l&&a&&d===a[h]&&f===a[h+1],s.push(e[c].offsetLeft,e[c].offsetTop)}return l&&i?i:(t.srcCoords=o,t[r]=n?lt(s,o):lt(o,s))}(function(e,t){var n=t.markers;if(n)return n;n=t.markers=[];for(var r=["left","right"],i=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=o.style,l=a%2,c=(a>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[l]+":0",i[c]+":0",r[1-l]+":auto",i[1-c]+":auto",""].join("!important;"),e.appendChild(o),n.push(o)}return n}(t,a),a,i);if(o)return o(e,n,r),!0}return!1}function dt(e){return"CANVAS"===e.nodeName.toUpperCase()}var ft="undefined"!=typeof window&&!!window.addEventListener,pt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,At=[];function gt(e,t,n,r){return n=n||{},r||!w.canvasSupported?mt(e,t,n):w.browser.firefox&&null!=t.layerX&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):null!=t.offsetX?(n.zrX=t.offsetX,n.zrY=t.offsetY):mt(e,t,n),n}function mt(e,t,n){if(w.domSupported&&e.getBoundingClientRect){var r=t.clientX,i=t.clientY;if(dt(e)){var a=e.getBoundingClientRect();return n.zrX=r-a.left,void(n.zrY=i-a.top)}if(ht(At,e,r,i))return n.zrX=At[0],void(n.zrY=At[1])}n.zrX=n.zrY=0}function vt(e){return e||window.event}function yt(e,t,n){if(null!=(t=vt(t)).zrX)return t;var r=t.type;if(r&&r.indexOf("touch")>=0){var i="touchend"!==r?t.targetTouches[0]:t.changedTouches[0];i&&gt(e,i,t,n)}else{gt(e,t,t,n);var a=function(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,r=e.deltaY;if(null==n||null==r)return t;return 3*(0!==r?Math.abs(r):Math.abs(n))*(r>0?-1:r<0?1:n>0?-1:1)}(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var o=t.button;return null==t.which&&void 0!==o&&pt.test(t.type)&&(t.which=1&o?1:2&o?3:4&o?2:0),t}function bt(e,t,n,r){ft?e.addEventListener(t,n,r):e.attachEvent("on"+t,n)}var wt=ft?function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0}:function(e){e.returnValue=!1,e.cancelBubble=!0};function xt(e){return 2===e.which||3===e.which}var _t=function(){function e(){this._track=[]}return e.prototype.recognize=function(e,t,n){return this._doTrack(e,t,n),this._recognize(e)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(e,t,n){var r=e.touches;if(r){for(var i={points:[],touches:[],target:t,event:e},a=0,o=r.length;a<o;a++){var s=r[a],l=gt(n,s,{});i.points.push([l.zrX,l.zrY]),i.touches.push(s)}this._track.push(i)}},e.prototype._recognize=function(e){for(var t in St)if(St.hasOwnProperty(t)){var n=St[t](this._track,e);if(n)return n}},e}();function Ct(e){var t=e[1][0]-e[0][0],n=e[1][1]-e[0][1];return Math.sqrt(t*t+n*n)}var St={pinch:function(e,t){var n=e.length;if(n){var r,i=(e[n-1]||{}).points,a=(e[n-2]||{}).points||i;if(a&&a.length>1&&i&&i.length>1){var o=Ct(i)/Ct(a);!isFinite(o)&&(o=1),t.pinchScale=o;var s=[((r=i)[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2];return t.pinchX=s[0],t.pinchY=s[1],{type:"pinch",target:e[0].target,event:t}}}}},kt="silent";function Bt(){wt(this.event)}var Et=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handler=null,t}return Me(t,e),t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(at),Tt=function(){return function(e,t){this.x=e,this.y=t}}(),It=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Mt=function(e){function t(t,n,r,i){var a=e.call(this)||this;return a._hovered=new Tt(0,0),a.storage=t,a.painter=n,a.painterRoot=i,r=r||new Et,a.proxy=null,a.setHandlerProxy(r),a._draggingMgr=new it(a),a}return Me(t,e),t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(q(It,function(t){e.on&&e.on(t,this[t],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var t=e.zrX,n=e.zrY,r=Dt(this,t,n),i=this._hovered,a=i.target;a&&!a.__zr&&(a=(i=this.findHover(i.x,i.y)).target);var o=this._hovered=r?new Tt(t,n):this.findHover(t,n),s=o.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),a&&s!==a&&this.dispatchToElement(i,"mouseout",e),this.dispatchToElement(o,"mousemove",e),s&&s!==a&&this.dispatchToElement(o,"mouseover",e)},t.prototype.mouseout=function(e){var t=e.zrEventControl;"only_globalout"!==t&&this.dispatchToElement(this._hovered,"mouseout",e),"no_globalout"!==t&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new Tt(0,0)},t.prototype.dispatch=function(e,t){var n=this[e];n&&n.call(this,t)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var t=this.proxy;t.setCursor&&t.setCursor(e)},t.prototype.dispatchToElement=function(e,t,n){var r=(e=e||{}).target;if(!r||!r.silent){for(var i="on"+t,a=function(e,t,n){return{type:e,event:n,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:Bt}}(t,e,n);r&&(r[i]&&(a.cancelBubble=!!r[i].call(r,a)),r.trigger(t,a),r=r.__hostTarget?r.__hostTarget:r.parent,!a.cancelBubble););a.cancelBubble||(this.trigger(t,a),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(e){"function"==typeof e[i]&&e[i].call(e,a),e.trigger&&e.trigger(t,a)}))}},t.prototype.findHover=function(e,t,n){for(var r=this.storage.getDisplayList(),i=new Tt(e,t),a=r.length-1;a>=0;a--){var o=void 0;if(r[a]!==n&&!r[a].ignore&&(o=Ft(r[a],e,t))&&(!i.topTarget&&(i.topTarget=r[a]),o!==kt)){i.target=r[a];break}}return i},t.prototype.processGesture=function(e,t){this._gestureMgr||(this._gestureMgr=new _t);var n=this._gestureMgr;"start"===t&&n.clear();var r=n.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if("end"===t&&n.clear(),r){var i=r.type;e.gestureEvent=i;var a=new Tt;a.target=r.target,this.dispatchToElement(a,i,r.event)}},t}(at);function Ft(e,t,n){if(e[e.rectHover?"rectContain":"contain"](t,n)){for(var r=e,i=void 0,a=!1;r;){if(r.ignoreClip&&(a=!0),!a){var o=r.getClipPath();if(o&&!o.contain(t,n))return!1;r.silent&&(i=!0)}var s=r.__hostTarget;r=s||r.parent}return!i||kt}return!1}function Dt(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}q(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){Mt.prototype[e]=function(t){var n,r,i=t.zrX,a=t.zrY,o=Dt(this,i,a);if("mouseup"===e&&o||(r=(n=this.findHover(i,a)).target),"mousedown"===e)this._downEl=r,this._downPoint=[t.zrX,t.zrY],this._upEl=r;else if("mouseup"===e)this._upEl=r;else if("click"===e){if(this._downEl!==this._upEl||!this._downPoint||Ke(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,e,t)}});var Pt=Mt;function Ot(){return[1,0,0,1,0,0]}function Lt(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function Rt(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function Nt(e,t,n){var r=t[0]*n[0]+t[2]*n[1],i=t[1]*n[0]+t[3]*n[1],a=t[0]*n[2]+t[2]*n[3],o=t[1]*n[2]+t[3]*n[3],s=t[0]*n[4]+t[2]*n[5]+t[4],l=t[1]*n[4]+t[3]*n[5]+t[5];return e[0]=r,e[1]=i,e[2]=a,e[3]=o,e[4]=s,e[5]=l,e}function Ut(e,t,n){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+n[0],e[5]=t[5]+n[1],e}function Ht(e,t,n){var r=t[0],i=t[2],a=t[4],o=t[1],s=t[3],l=t[5],c=Math.sin(n),u=Math.cos(n);return e[0]=r*u+o*c,e[1]=-r*c+o*u,e[2]=i*u+s*c,e[3]=-i*c+u*s,e[4]=u*a+c*l,e[5]=u*l-c*a,e}function jt(e,t,n){var r=n[0],i=n[1];return e[0]=t[0]*r,e[1]=t[1]*i,e[2]=t[2]*r,e[3]=t[3]*i,e[4]=t[4]*r,e[5]=t[5]*i,e}function Qt(e,t){var n=t[0],r=t[2],i=t[4],a=t[1],o=t[3],s=t[5],l=n*o-a*r;return l?(l=1/l,e[0]=o*l,e[1]=-a*l,e[2]=-r*l,e[3]=n*l,e[4]=(r*s-o*i)*l,e[5]=(a*i-n*s)*l,e):null}function zt(e){var t=[1,0,0,1,0,0];return Rt(t,e),t}var Vt=Lt,Gt=5e-5;function $t(e){return e>Gt||e<-Gt}var qt=[],Wt=[],Kt=[1,0,0,1,0,0],Yt=Math.abs,Xt=function(){function e(){}var t;return e.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},e.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},e.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},e.prototype.needLocalTransform=function(){return $t(this.rotation)||$t(this.x)||$t(this.y)||$t(this.scaleX-1)||$t(this.scaleY-1)},e.prototype.updateTransform=function(){var e=this.parent,t=e&&e.transform,n=this.needLocalTransform(),r=this.transform;n||t?(r=r||[1,0,0,1,0,0],n?this.getLocalTransform(r):Vt(r),t&&(n?Nt(r,e.transform,r):Rt(r,e.transform)),this.transform=r,this._resolveGlobalScaleRatio(r)):r&&Vt(r)},e.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(null!=t&&1!==t){this.getGlobalScale(qt);var n=qt[0]<0?-1:1,r=qt[1]<0?-1:1,i=((qt[0]-n)*t+n)/qt[0]||0,a=((qt[1]-r)*t+r)/qt[1]||0;e[0]*=i,e[1]*=i,e[2]*=a,e[3]*=a}this.invTransform=this.invTransform||[1,0,0,1,0,0],Qt(this.invTransform,e)},e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},e.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3];$t(t-1)&&(t=Math.sqrt(t)),$t(n-1)&&(n=Math.sqrt(n)),e[0]<0&&(t=-t),e[3]<0&&(n=-n),this.rotation=Math.atan2(-e[1]/n,e[0]/t),t<0&&n<0&&(this.rotation+=Math.PI,t=-t,n=-n),this.x=e[4],this.y=e[5],this.scaleX=t,this.scaleY=n}},e.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(Nt(Wt,e.invTransform,t),t=Wt);var n=this.originX,r=this.originY;(n||r)&&(Kt[4]=n,Kt[5]=r,Nt(Wt,t,Kt),Wt[4]-=n,Wt[5]-=r,t=Wt),this.setLocalTransform(t)}},e.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},e.prototype.transformCoordToLocal=function(e,t){var n=[e,t],r=this.invTransform;return r&&et(n,n,r),n},e.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],r=this.transform;return r&&et(n,n,r),n},e.prototype.getLineScale=function(){var e=this.transform;return e&&Yt(e[0]-1)>1e-10&&Yt(e[3]-1)>1e-10?Math.sqrt(Yt(e[0]*e[3]-e[2]*e[1])):1},e.getLocalTransform=function(e,t){Vt(t=t||[]);var n=e.originX||0,r=e.originY||0,i=e.scaleX,a=e.scaleY,o=e.rotation||0,s=e.x,l=e.y;return t[4]-=n,t[5]-=r,t[0]*=i,t[1]*=a,t[2]*=i,t[3]*=a,t[4]*=i,t[5]*=a,o&&Ht(t,t,o),t[4]+=n,t[5]+=r,t[4]+=s,t[5]+=l,t},e.initDefaultProps=((t=e.prototype).x=0,t.y=0,t.scaleX=1,t.scaleY=1,t.originX=0,t.originY=0,t.rotation=0,void(t.globalScaleRatio=1)),e}(),Jt={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return.5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return 0===e?0:Math.pow(1024,e-1)},exponentialOut:function(e){return 1===e?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return 0===e?0:1===e?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(2-Math.pow(2,-10*(e-1)))},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,n=.1;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=.1):t=.4*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/.4))},elasticOut:function(e){var t,n=.1;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=.1):t=.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/.4)+1)},elasticInOut:function(e){var t,n=.1;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=.1):t=.4*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/.4)*-.5:n*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/.4)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?e*e*((t+1)*e-t)*.5:.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-Jt.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?.5*Jt.bounceIn(2*e):.5*Jt.bounceOut(2*e-1)+.5}},Zt=Jt,en=function(){function e(e){this._initialized=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=null!=e.loop&&e.loop,this.gap=e.gap||0,this.easing=e.easing||"linear",this.onframe=e.onframe,this.ondestroy=e.ondestroy,this.onrestart=e.onrestart}return e.prototype.step=function(e,t){if(this._initialized||(this._startTime=e+this._delay,this._initialized=!0),!this._paused){var n=(e-this._startTime-this._pausedTime)/this._life;n<0&&(n=0),n=Math.min(n,1);var r=this.easing,i="string"==typeof r?Zt[r]:r,a="function"==typeof i?i(n):n;if(this.onframe&&this.onframe(a),1===n){if(!this.loop)return!0;this._restart(e),this.onrestart&&this.onrestart()}return!1}this._pausedTime+=t},e.prototype._restart=function(e){var t=(e-this._startTime-this._pausedTime)%this._life;this._startTime=e-t+this.gap,this._pausedTime=0},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e}(),tn=function(){return function(e){this.value=e}}(),nn=function(){function e(){this._len=0}return e.prototype.insert=function(e){var t=new tn(e);return this.insertEntry(t),t},e.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},e.prototype.remove=function(e){var t=e.prev,n=e.next;t?t.next=n:this.head=n,n?n.prev=t:this.tail=t,e.next=e.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),rn=function(){function e(e){this._list=new nn,this._maxSize=10,this._map={},this._maxSize=e}return e.prototype.put=function(e,t){var n=this._list,r=this._map,i=null;if(null==r[e]){var a=n.len(),o=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var s=n.head;n.remove(s),delete r[s.key],i=s.value,this._lastRemovedEntry=s}o?o.value=t:o=new tn(t),o.key=e,n.insertEntry(o),r[e]=o}return i},e.prototype.get=function(e){var t=this._map[e],n=this._list;if(null!=t)return t!==n.tail&&(n.remove(t),n.insertEntry(t)),t.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}(),an={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function on(e){return(e=Math.round(e))<0?0:e>255?255:e}function sn(e){return e<0?0:e>1?1:e}function ln(e){var t=e;return t.length&&"%"===t.charAt(t.length-1)?on(parseFloat(t)/100*255):on(parseInt(t,10))}function cn(e){var t=e;return t.length&&"%"===t.charAt(t.length-1)?sn(parseFloat(t)/100):sn(parseFloat(t))}function un(e,t,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?e+(t-e)*n*6:2*n<1?t:3*n<2?e+(t-e)*(2/3-n)*6:e}function hn(e,t,n){return e+(t-e)*n}function dn(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function fn(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var pn=new rn(20),An=null;function gn(e,t){An&&fn(An,t),An=pn.put(e,An||t.slice())}function mn(e,t){if(e){t=t||[];var n=pn.get(e);if(n)return fn(t,n);var r=(e+="").replace(/ /g,"").toLowerCase();if(r in an)return fn(t,an[r]),gn(e,t),t;var i,a=r.length;if("#"===r.charAt(0))return 4===a||5===a?(i=parseInt(r.slice(1,4),16))>=0&&i<=4095?(dn(t,(3840&i)>>4|(3840&i)>>8,240&i|(240&i)>>4,15&i|(15&i)<<4,5===a?parseInt(r.slice(4),16)/15:1),gn(e,t),t):void dn(t,0,0,0,1):7===a||9===a?(i=parseInt(r.slice(1,7),16))>=0&&i<=16777215?(dn(t,(16711680&i)>>16,(65280&i)>>8,255&i,9===a?parseInt(r.slice(7),16)/255:1),gn(e,t),t):void dn(t,0,0,0,1):void 0;var o=r.indexOf("("),s=r.indexOf(")");if(-1!==o&&s+1===a){var l=r.substr(0,o),c=r.substr(o+1,s-(o+1)).split(","),u=1;switch(l){case"rgba":if(4!==c.length)return 3===c.length?dn(t,+c[0],+c[1],+c[2],1):dn(t,0,0,0,1);u=cn(c.pop());case"rgb":return 3!==c.length?void dn(t,0,0,0,1):(dn(t,ln(c[0]),ln(c[1]),ln(c[2]),u),gn(e,t),t);case"hsla":return 4!==c.length?void dn(t,0,0,0,1):(c[3]=cn(c[3]),vn(c,t),gn(e,t),t);case"hsl":return 3!==c.length?void dn(t,0,0,0,1):(vn(c,t),gn(e,t),t);default:return}}dn(t,0,0,0,1)}}function vn(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=cn(e[1]),i=cn(e[2]),a=i<=.5?i*(r+1):i+r-i*r,o=2*i-a;return dn(t=t||[],on(255*un(o,a,n+1/3)),on(255*un(o,a,n)),on(255*un(o,a,n-1/3)),1),4===e.length&&(t[3]=e[3]),t}function yn(e,t){var n=mn(e);if(n){for(var r=0;r<3;r++)n[r]=t<0?n[r]*(1-t)|0:(255-n[r])*t+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return Bn(n,4===n.length?"rgba":"rgb")}}function bn(e){var t=mn(e);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function wn(e,t,n){if(t&&t.length&&e>=0&&e<=1){n=n||[];var r=e*(t.length-1),i=Math.floor(r),a=Math.ceil(r),o=t[i],s=t[a],l=r-i;return n[0]=on(hn(o[0],s[0],l)),n[1]=on(hn(o[1],s[1],l)),n[2]=on(hn(o[2],s[2],l)),n[3]=sn(hn(o[3],s[3],l)),n}}var xn=wn;function _n(e,t,n){if(t&&t.length&&e>=0&&e<=1){var r=e*(t.length-1),i=Math.floor(r),a=Math.ceil(r),o=mn(t[i]),s=mn(t[a]),l=r-i,c=Bn([on(hn(o[0],s[0],l)),on(hn(o[1],s[1],l)),on(hn(o[2],s[2],l)),sn(hn(o[3],s[3],l))],"rgba");return n?{color:c,leftIndex:i,rightIndex:a,value:r}:c}}var Cn=_n;function Sn(e,t,n,r){var i,a=mn(e);if(e)return a=function(e){if(e){var t,n,r=e[0]/255,i=e[1]/255,a=e[2]/255,o=Math.min(r,i,a),s=Math.max(r,i,a),l=s-o,c=(s+o)/2;if(0===l)t=0,n=0;else{n=c<.5?l/(s+o):l/(2-s-o);var u=((s-r)/6+l/2)/l,h=((s-i)/6+l/2)/l,d=((s-a)/6+l/2)/l;r===s?t=d-h:i===s?t=1/3+u-d:a===s&&(t=2/3+h-u),t<0&&(t+=1),t>1&&(t-=1)}var f=[360*t,n,c];return null!=e[3]&&f.push(e[3]),f}}(a),null!=t&&(a[0]=(i=t,(i=Math.round(i))<0?0:i>360?360:i)),null!=n&&(a[1]=cn(n)),null!=r&&(a[2]=cn(r)),Bn(vn(a),"rgba")}function kn(e,t){var n=mn(e);if(n&&null!=t)return n[3]=sn(t),Bn(n,"rgba")}function Bn(e,t){if(e&&e.length){var n=e[0]+","+e[1]+","+e[2];return"rgba"!==t&&"hsva"!==t&&"hsla"!==t||(n+=","+e[3]),t+"("+n+")"}}function En(e,t){var n=mn(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}function Tn(){return"rgb("+Math.round(255*Math.random())+","+Math.round(255*Math.random())+","+Math.round(255*Math.random())+")"}var In=Array.prototype.slice;function Mn(e,t,n){return(t-e)*n+e}function Fn(e,t,n,r){for(var i=t.length,a=0;a<i;a++)e[a]=Mn(t[a],n[a],r)}function Dn(e,t,n,r){for(var i=t.length,a=0;a<i;a++)e[a]=t[a]+n[a]*r;return e}function Pn(e,t,n,r){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=t[o][s]+n[o][s]*r}return e}function On(e,t,n){var r=e,i=t;if(r.push&&i.push){var a=r.length,o=i.length;if(a!==o)if(a>o)r.length=o;else for(var s=a;s<o;s++)r.push(1===n?i[s]:In.call(i[s]));var l=r[0]&&r[0].length;for(s=0;s<r.length;s++)if(1===n)isNaN(r[s])&&(r[s]=i[s]);else for(var c=0;c<l;c++)isNaN(r[s][c])&&(r[s][c]=i[s][c])}}function Ln(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}function Rn(e,t,n,r,i,a,o){var s=.5*(n-e),l=.5*(r-t);return(2*(t-n)+s+l)*o+(-3*(t-n)-2*s-l)*a+s*i+t}function Nn(e,t,n,r,i,a,o,s){for(var l=t.length,c=0;c<l;c++)e[c]=Rn(t[c],n[c],r[c],i[c],a,o,s)}function Un(e){if($(e)){var t=e.length;if($(e[0])){for(var n=[],r=0;r<t;r++)n.push(In.call(e[r]));return n}return In.call(e)}return e}function Hn(e){return e[0]=Math.floor(e[0]),e[1]=Math.floor(e[1]),e[2]=Math.floor(e[2]),"rgba("+e.join(",")+")"}var jn,Qn,zn=[0,0,0,0],Vn=function(){function e(e){this.keyframes=[],this.maxTime=0,this.arrDim=0,this.interpolable=!0,this._needsSort=!1,this._isAllValueEqual=!0,this._lastFrame=0,this._lastFramePercent=0,this.propName=e}return e.prototype.isFinished=function(){return this._finished},e.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},e.prototype.needsAnimate=function(){return!this._isAllValueEqual&&this.keyframes.length>=2&&this.interpolable},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(e,t){e>=this.maxTime?this.maxTime=e:this._needsSort=!0;var n=this.keyframes,r=n.length;if(this.interpolable)if($(t)){var i=function(e){return $(e&&e[0])?2:1}(t);if(r>0&&this.arrDim!==i)return void(this.interpolable=!1);if(1===i&&"number"!=typeof t[0]||2===i&&"number"!=typeof t[0][0])return void(this.interpolable=!1);if(r>0){var a=n[r-1];this._isAllValueEqual&&(1===i&&Ln(t,a.value)||(this._isAllValueEqual=!1))}this.arrDim=i}else{if(this.arrDim>0)return void(this.interpolable=!1);if("string"==typeof t){var o=mn(t);o?(t=o,this.isValueColor=!0):this.interpolable=!1}else if("number"!=typeof t)return void(this.interpolable=!1);if(this._isAllValueEqual&&r>0){a=n[r-1];this.isValueColor&&!Ln(a.value,t)?this._isAllValueEqual=!1:a.value!==t&&(this._isAllValueEqual=!1)}}var s={time:e,value:t,percent:0};return this.keyframes.push(s),s},e.prototype.prepare=function(e){var t=this.keyframes;this._needsSort&&t.sort(function(e,t){return e.time-t.time});for(var n=this.arrDim,r=t.length,i=t[r-1],a=0;a<r;a++)t[a].percent=t[a].time/this.maxTime,n>0&&a!==r-1&&On(t[a].value,i.value,n);if(e&&this.needsAnimate()&&e.needsAnimate()&&n===e.arrDim&&this.isValueColor===e.isValueColor&&!e._finished){this._additiveTrack=e;var o=t[0].value;for(a=0;a<r;a++)0===n?this.isValueColor?t[a].additiveValue=Dn([],t[a].value,o,-1):t[a].additiveValue=t[a].value-o:1===n?t[a].additiveValue=Dn([],t[a].value,o,-1):2===n&&(t[a].additiveValue=Pn([],t[a].value,o,-1))}},e.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n,r=null!=this._additiveTrack,i=r?"additiveValue":"value",a=this.keyframes,o=this.keyframes.length,s=this.propName,l=this.arrDim,c=this.isValueColor;if(t<0)n=0;else if(t<this._lastFramePercent){for(n=Math.min(this._lastFrame+1,o-1);n>=0&&!(a[n].percent<=t);n--);n=Math.min(n,o-2)}else{for(n=this._lastFrame;n<o&&!(a[n].percent>t);n++);n=Math.min(n-1,o-2)}var u=a[n+1],h=a[n];if(h&&u){this._lastFrame=n,this._lastFramePercent=t;var d=u.percent-h.percent;if(0!==d){var f=(t-h.percent)/d,p=r?this._additiveValue:c?zn:e[s];if((l>0||c)&&!p&&(p=this._additiveValue=[]),this.useSpline){var A=a[n][i],g=a[0===n?n:n-1][i],m=a[n>o-2?o-1:n+1][i],v=a[n>o-3?o-1:n+2][i];if(l>0)1===l?Nn(p,g,A,m,v,f,f*f,f*f*f):function(e,t,n,r,i,a,o,s){for(var l=t.length,c=t[0].length,u=0;u<l;u++){e[u]||(e[1]=[]);for(var h=0;h<c;h++)e[u][h]=Rn(t[u][h],n[u][h],r[u][h],i[u][h],a,o,s)}}(p,g,A,m,v,f,f*f,f*f*f);else if(c)Nn(p,g,A,m,v,f,f*f,f*f*f),r||(e[s]=Hn(p));else{var y=void 0;y=this.interpolable?Rn(g,A,m,v,f,f*f,f*f*f):m,r?this._additiveValue=y:e[s]=y}}else if(l>0)1===l?Fn(p,h[i],u[i],f):function(e,t,n,r){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=Mn(t[o][s],n[o][s],r)}}(p,h[i],u[i],f);else if(c)Fn(p,h[i],u[i],f),r||(e[s]=Hn(p));else{y=void 0;y=this.interpolable?Mn(h[i],u[i],f):function(e,t,n){return n>.5?t:e}(h[i],u[i],f),r?this._additiveValue=y:e[s]=y}r&&this._addToTarget(e)}}}},e.prototype._addToTarget=function(e){var t=this.arrDim,n=this.propName,r=this._additiveValue;0===t?this.isValueColor?(mn(e[n],zn),Dn(zn,zn,r,1),e[n]=Hn(zn)):e[n]=e[n]+r:1===t?Dn(e[n],e[n],r,1):2===t&&Pn(e[n],e[n],r,1)},e}(),Gn=function(){function e(e,t,n){this._tracks={},this._trackKeys=[],this._delay=0,this._maxTime=0,this._paused=!1,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&n?L("Can' use additive animation on looped animation."):this._additiveAnimators=n}return e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(e){this._target=e},e.prototype.when=function(e,t){return this.whenWithKeys(e,t,J(t))},e.prototype.whenWithKeys=function(e,t,n){for(var r=this._tracks,i=0;i<n.length;i++){var a=n[i],o=r[a];if(!o){o=r[a]=new Vn(a);var s=void 0,l=this._getAdditiveTrack(a);if(l){var c=l.keyframes[l.keyframes.length-1];s=c&&c.value,l.isValueColor&&s&&(s=Hn(s))}else s=this._target[a];if(null==s)continue;0!==e&&o.addKeyframe(0,Un(s)),this._trackKeys.push(a)}o.addKeyframe(e,Un(t[a]))}return this._maxTime=Math.max(this._maxTime,e),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneList;if(e)for(var t=e.length,n=0;n<t;n++)e[n].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,t=this._abortedList;if(e&&e.removeClip(this._clip),this._clip=null,t)for(var n=0;n<t.length;n++)t[n].call(this)},e.prototype._setTracksFinished=function(){for(var e=this._tracks,t=this._trackKeys,n=0;n<t.length;n++)e[t[n]].setFinished()},e.prototype._getAdditiveTrack=function(e){var t,n=this._additiveAnimators;if(n)for(var r=0;r<n.length;r++){var i=n[r].getTrack(e);i&&(t=i)}return t},e.prototype.start=function(e,t){if(!(this._started>0)){this._started=1;for(var n=this,r=[],i=0;i<this._trackKeys.length;i++){var a=this._trackKeys[i],o=this._tracks[a],s=this._getAdditiveTrack(a),l=o.keyframes;if(o.prepare(s),o.needsAnimate())r.push(o);else if(!o.interpolable){var c=l[l.length-1];c&&(n._target[o.propName]=c.value)}}if(r.length||t){var u=new en({life:this._maxTime,loop:this._loop,delay:this._delay,onframe:function(e){n._started=2;var t=n._additiveAnimators;if(t){for(var i=!1,a=0;a<t.length;a++)if(t[a]._clip){i=!0;break}i||(n._additiveAnimators=null)}for(a=0;a<r.length;a++)r[a].step(n._target,e);var o=n._onframeList;if(o)for(a=0;a<o.length;a++)o[a](n._target,e)},ondestroy:function(){n._doneCallback()}});this._clip=u,this.animation&&this.animation.addClip(u),e&&"spline"!==e&&(u.easing=e)}else this._doneCallback();return this}},e.prototype.stop=function(e){if(this._clip){var t=this._clip;e&&t.onframe(1),this._abortedCallback()}},e.prototype.delay=function(e){return this._delay=e,this},e.prototype.during=function(e){return e&&(this._onframeList||(this._onframeList=[]),this._onframeList.push(e)),this},e.prototype.done=function(e){return e&&(this._doneList||(this._doneList=[]),this._doneList.push(e)),this},e.prototype.aborted=function(e){return e&&(this._abortedList||(this._abortedList=[]),this._abortedList.push(e)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(e){return this._tracks[e]},e.prototype.stopTracks=function(e,t){if(!e.length||!this._clip)return!0;for(var n=this._tracks,r=this._trackKeys,i=0;i<e.length;i++){var a=n[e[i]];a&&(t?a.step(this._target,1):1===this._started&&a.step(this._target,0),a.setFinished())}var o=!0;for(i=0;i<r.length;i++)if(!n[r[i]].isFinished()){o=!1;break}return o&&this._abortedCallback(),o},e.prototype.saveFinalToTarget=function(e,t){if(e){t=t||this._trackKeys;for(var n=0;n<t.length;n++){var r=t[n],i=this._tracks[r];if(i&&!i.isFinished()){var a=i.keyframes,o=a[a.length-1];if(o){var s=Un(o.value);i.isValueColor&&(s=Hn(s)),e[r]=s}}}}},e.prototype.__changeFinalValue=function(e,t){t=t||J(e);for(var n=0;n<t.length;n++){var r=t[n],i=this._tracks[r];if(i){var a=i.keyframes;if(a.length>1){var o=a.pop();i.addKeyframe(o.time,e[r]),i.prepare(i.getAdditiveTrack())}}}},e}(),$n=function(){function e(e,t){this.x=e||0,this.y=t||0}return e.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(e,t){return this.x=e,this.y=t,this},e.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},e.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},e.prototype.scale=function(e){this.x*=e,this.y*=e},e.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},e.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},e.prototype.dot=function(e){return this.x*e.x+this.y*e.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},e.prototype.distance=function(e){var t=this.x-e.x,n=this.y-e.y;return Math.sqrt(t*t+n*n)},e.prototype.distanceSquare=function(e){var t=this.x-e.x,n=this.y-e.y;return t*t+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(e){if(e){var t=this.x,n=this.y;return this.x=e[0]*t+e[2]*n+e[4],this.y=e[1]*t+e[3]*n+e[5],this}},e.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},e.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},e.set=function(e,t,n){e.x=t,e.y=n},e.copy=function(e,t){e.x=t.x,e.y=t.y},e.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},e.lenSquare=function(e){return e.x*e.x+e.y*e.y},e.dot=function(e,t){return e.x*t.x+e.y*t.y},e.add=function(e,t,n){e.x=t.x+n.x,e.y=t.y+n.y},e.sub=function(e,t,n){e.x=t.x-n.x,e.y=t.y-n.y},e.scale=function(e,t,n){e.x=t.x*n,e.y=t.y*n},e.scaleAndAdd=function(e,t,n,r){e.x=t.x+n.x*r,e.y=t.y+n.y*r},e.lerp=function(e,t,n,r){var i=1-r;e.x=i*t.x+r*n.x,e.y=i*t.y+r*n.y},e}(),qn=Math.min,Wn=Math.max,Kn=new $n,Yn=new $n,Xn=new $n,Jn=new $n,Zn=new $n,er=new $n,tr=function(){function e(e,t,n,r){n<0&&isFinite(n)&&(e+=n,n=-n),r<0&&isFinite(r)&&(t+=r,r=-r),this.x=e,this.y=t,this.width=n,this.height=r}return e.prototype.union=function(e){var t=qn(e.x,this.x),n=qn(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Wn(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=Wn(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=t,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(e){var t=this,n=e.width/t.width,r=e.height/t.height,i=[1,0,0,1,0,0];return Ut(i,i,[-t.x,-t.y]),jt(i,i,[n,r]),Ut(i,i,[e.x,e.y]),i},e.prototype.intersect=function(t,n){if(!t)return!1;t instanceof e||(t=e.create(t));var r=this,i=r.x,a=r.x+r.width,o=r.y,s=r.y+r.height,l=t.x,c=t.x+t.width,u=t.y,h=t.y+t.height,d=!(a<l||c<i||s<u||h<o);if(n){var f=1/0,p=0,A=Math.abs(a-l),g=Math.abs(c-i),m=Math.abs(s-u),v=Math.abs(h-o),y=Math.min(A,g),b=Math.min(m,v);a<l||c<i?y>p&&(p=y,A<g?$n.set(er,-A,0):$n.set(er,g,0)):y<f&&(f=y,A<g?$n.set(Zn,A,0):$n.set(Zn,-g,0)),s<u||h<o?b>p&&(p=b,m<v?$n.set(er,0,-m):$n.set(er,0,v)):y<f&&(f=y,m<v?$n.set(Zn,0,m):$n.set(Zn,0,-v))}return n&&$n.copy(n,d?Zn:er),d},e.prototype.contain=function(e,t){return e>=this.x&&e<=this.x+this.width&&t>=this.y&&t<=this.y+this.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return 0===this.width||0===this.height},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},e.applyTransform=function(t,n,r){if(r){if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var i=r[0],a=r[3],o=r[4],s=r[5];return t.x=n.x*i+o,t.y=n.y*a+s,t.width=n.width*i,t.height=n.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),void(t.height<0&&(t.y+=t.height,t.height=-t.height))}Kn.x=Xn.x=n.x,Kn.y=Jn.y=n.y,Yn.x=Jn.x=n.x+n.width,Yn.y=Xn.y=n.y+n.height,Kn.transform(r),Jn.transform(r),Yn.transform(r),Xn.transform(r),t.x=qn(Kn.x,Yn.x,Xn.x,Jn.x),t.y=qn(Kn.y,Yn.y,Xn.y,Jn.y);var l=Wn(Kn.x,Yn.x,Xn.x,Jn.x),c=Wn(Kn.y,Yn.y,Xn.y,Jn.y);t.width=l-t.x,t.height=c-t.y}else t!==n&&e.copy(t,n)},e}(),nr={},rr="12px sans-serif";var ir={measureText:function(e,t){return jn||(jn=Q().getContext("2d")),Qn!==t&&(Qn=jn.font=t||rr),jn.measureText(e)}};function ar(e,t){var n=nr[t=t||rr];n||(n=nr[t]=new rn(500));var r=n.get(e);return null==r&&(r=ir.measureText(e,t).width,n.put(e,r)),r}function or(e,t,n,r){var i=ar(e,t),a=ur(t),o=lr(0,i,n),s=cr(0,a,r);return new tr(o,s,i,a)}function sr(e,t,n,r){var i=((e||"")+"").split("\n");if(1===i.length)return or(i[0],t,n,r);for(var a=new tr(0,0,0,0),o=0;o<i.length;o++){var s=or(i[o],t,n,r);0===o?a.copy(s):a.union(s)}return a}function lr(e,t,n){return"right"===n?e-=t:"center"===n&&(e-=t/2),e}function cr(e,t,n){return"middle"===n?e-=t/2:"bottom"===n&&(e-=t),e}function ur(e){return ar("国",e)}function hr(e,t){return"string"==typeof e?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function dr(e,t,n){var r=t.position||"inside",i=null!=t.distance?t.distance:5,a=n.height,o=n.width,s=a/2,l=n.x,c=n.y,u="left",h="top";if(r instanceof Array)l+=hr(r[0],n.width),c+=hr(r[1],n.height),u=null,h=null;else switch(r){case"left":l-=i,c+=s,u="right",h="middle";break;case"right":l+=i+o,c+=s,h="middle";break;case"top":l+=o/2,c-=i,u="center",h="bottom";break;case"bottom":l+=o/2,c+=a+i,u="center";break;case"inside":l+=o/2,c+=s,u="center",h="middle";break;case"insideLeft":l+=i,c+=s,h="middle";break;case"insideRight":l+=o-i,c+=s,u="right",h="middle";break;case"insideTop":l+=o/2,c+=i,u="center";break;case"insideBottom":l+=o/2,c+=a-i,u="center",h="bottom";break;case"insideTopLeft":l+=i,c+=i;break;case"insideTopRight":l+=o-i,c+=i,u="right";break;case"insideBottomLeft":l+=i,c+=a-i,h="bottom";break;case"insideBottomRight":l+=o-i,c+=a-i,u="right",h="bottom"}return(e=e||{}).x=l,e.y=c,e.align=u,e.verticalAlign=h,e}var fr=1;"undefined"!=typeof window&&(fr=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var pr=fr,Ar=.4,gr=["x","y","scaleX","scaleY","originX","originY","rotation","ignore"],mr={x:!0,y:!0,scaleX:!0,scaleY:!0,originX:!0,originY:!0,rotation:!0,ignore:!1},vr={},yr=new tr(0,0,0,0),br=function(){function e(e){this.id=O(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return e.prototype._init=function(e){this.attr(e)},e.prototype.drift=function(e,t,n){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0}var r=this.transform;r||(r=this.transform=[1,0,0,1,0,0]),r[4]+=e,r[5]+=t,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var n=this.textConfig,r=n.local,i=t.attachedTransform,a=void 0,o=void 0,s=!1;i.parent=r?this:null;var l=!1;if(i.x=t.x,i.y=t.y,i.originX=t.originX,i.originY=t.originY,i.rotation=t.rotation,i.scaleX=t.scaleX,i.scaleY=t.scaleY,null!=n.position){var c=yr;n.layoutRect?c.copy(n.layoutRect):c.copy(this.getBoundingRect()),r||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(vr,n,c):dr(vr,n,c),i.x=vr.x,i.y=vr.y,a=vr.align,o=vr.verticalAlign;var u=n.origin;if(u&&null!=n.rotation){var h=void 0,d=void 0;"center"===u?(h=.5*c.width,d=.5*c.height):(h=hr(u[0],c.width),d=hr(u[1],c.height)),l=!0,i.originX=-i.x+h+(r?0:c.x),i.originY=-i.y+d+(r?0:c.y)}}null!=n.rotation&&(i.rotation=n.rotation);var f=n.offset;f&&(i.x+=f[0],i.y+=f[1],l||(i.originX=-f[0],i.originY=-f[1]));var p=null==n.inside?"string"==typeof n.position&&n.position.indexOf("inside")>=0:n.inside,A=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),g=void 0,m=void 0,v=void 0;p&&this.canBeInsideText()?(g=n.insideFill,m=n.insideStroke,null!=g&&"auto"!==g||(g=this.getInsideTextFill()),null!=m&&"auto"!==m||(m=this.getInsideTextStroke(g),v=!0)):(g=n.outsideFill,m=n.outsideStroke,null!=g&&"auto"!==g||(g=this.getOutsideFill()),null!=m&&"auto"!==m||(m=this.getOutsideStroke(g),v=!0)),(g=g||"#000")===A.fill&&m===A.stroke&&v===A.autoStroke&&a===A.align&&o===A.verticalAlign||(s=!0,A.fill=g,A.stroke=m,A.autoStroke=v,A.align=a,A.verticalAlign=o,t.setDefaultTextStyle(A)),s&&t.dirtyStyle(),t.markRedraw()}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(e){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?"#ccc":"#333"},e.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n="string"==typeof t&&mn(t);n||(n=[255,255,255,1]);for(var r=n[3],i=this.__zr.isDarkMode(),a=0;a<3;a++)n[a]=n[a]*r+(i?0:255)*(1-r);return n[3]=1,Bn(n,"rgba")},e.prototype.traverse=function(e,t){},e.prototype.attrKV=function(e,t){"textConfig"===e?this.setTextConfig(t):"textContent"===e?this.setTextContent(t):"clipPath"===e?this.setClipPath(t):"extra"===e?(this.extra=this.extra||{},H(this.extra,t)):this[e]=t},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(e,t){if("string"==typeof e)this.attrKV(e,t);else if(oe(e))for(var n=J(e),r=0;r<n.length;r++){var i=n[r];this.attrKV(i,e[i])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var t=this._normalState,n=0;n<this.animators.length;n++){var r=this.animators[n],i=r.__fromStateTransition;if(!i||"__zr_normal__"===i){var a=r.targetName,o=a?t[a]:t;r.saveFinalToTarget(o)}}},e.prototype._innerSaveToNormal=function(e){var t=this._normalState;t||(t=this._normalState={}),e.textConfig&&!t.textConfig&&(t.textConfig=this.textConfig),this._savePrimaryToNormal(e,t,gr)},e.prototype._savePrimaryToNormal=function(e,t,n){for(var r=0;r<n.length;r++){var i=n[r];null==e[i]||i in t||(t[i]=this[i])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(e){return this.states[e]},e.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},e.prototype.clearStates=function(e){this.useState("__zr_normal__",!1,e)},e.prototype.useState=function(t,n,r){var i="__zr_normal__"===t;if(this.hasState()||!i){var a=this.currentStates,o=this.stateTransition;if(!(z(a,t)>=0)||!n&&1!==a.length){var s;if(this.stateProxy&&!i&&(s=this.stateProxy(t)),s||(s=this.states&&this.states[t]),s||i){i||this.saveCurrentToNormalState(s);var l=!(!s||!s.hoverLayer);return l&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,s,this._normalState,n,!r&&!this.__inHover&&o&&o.duration>0,o),this._textContent&&this._textContent.useState(t,n),this._textGuide&&this._textGuide.useState(t,n),i?(this.currentStates=[],this._normalState={}):n?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!l&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~e.REDARAW_BIT),s}L("State "+t+" not exists.")}}},e.prototype.useStates=function(t,n){if(t.length){var r=[],i=this.currentStates,a=t.length,o=a===i.length;if(o)for(var s=0;s<a;s++)if(t[s]!==i[s]){o=!1;break}if(o)return;for(s=0;s<a;s++){var l=t[s],c=void 0;this.stateProxy&&(c=this.stateProxy(l,t)),c||(c=this.states[l]),c&&r.push(c)}var u=!(!r[a-1]||!r[a-1].hoverLayer);u&&this._toggleHoverLayerFlag(!0);var h=this._mergeStates(r),d=this.stateTransition;this.saveCurrentToNormalState(h),this._applyStateObj(t.join(","),h,this._normalState,!1,!n&&!this.__inHover&&d&&d.duration>0,d),this._textContent&&this._textContent.useStates(t),this._textGuide&&this._textGuide.useStates(t),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!u&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~e.REDARAW_BIT)}else this.clearStates()},e.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var t=this.animators[e];t.targetName&&t.changeTarget(this[t.targetName])}},e.prototype.removeState=function(e){var t=z(this.currentStates,e);if(t>=0){var n=this.currentStates.slice();n.splice(t,1),this.useStates(n)}},e.prototype.replaceState=function(e,t,n){var r=this.currentStates.slice(),i=z(r,e),a=z(r,t)>=0;i>=0?a?r.splice(i,1):r[i]=t:n&&!a&&r.push(t),this.useStates(r)},e.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},e.prototype._mergeStates=function(e){for(var t,n={},r=0;r<e.length;r++){var i=e[r];H(n,i),i.textConfig&&H(t=t||{},i.textConfig)}return t&&(n.textConfig=t),n},e.prototype._applyStateObj=function(e,t,n,r,i,a){var o=!(t&&r);t&&t.textConfig?(this.textConfig=H({},r?this.textConfig:n.textConfig),H(this.textConfig,t.textConfig)):o&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},l=!1,c=0;c<gr.length;c++){var u=gr[c],h=i&&mr[u];t&&null!=t[u]?h?(l=!0,s[u]=t[u]):this[u]=t[u]:o&&null!=n[u]&&(h?(l=!0,s[u]=n[u]):this[u]=n[u])}if(!i)for(c=0;c<this.animators.length;c++){var d=this.animators[c],f=d.targetName;d.__changeFinalValue(f?(t||n)[f]:t||n)}l&&this._transitionState(e,s,a)},e.prototype._attachComponent=function(e){if(e.__zr&&!e.__hostTarget)throw new Error("Text element has been added to zrender.");if(e===this)throw new Error("Recursive component attachment.");var t=this.__zr;t&&e.addSelfToZr(t),e.__zr=t,e.__hostTarget=this},e.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},e.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(e){var t=this._textContent;if(t!==e){if(t&&t!==e&&this.removeTextContent(),e.__zr&&!e.__hostTarget)throw new Error("Text element has been added to zrender.");e.attachedTransform=new Xt,this._attachComponent(e),this._textContent=e,this.markRedraw()}},e.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),H(this.textConfig,e),this.markRedraw()},e.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.attachedTransform=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=e.REDARAW_BIT;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype._toggleHoverLayerFlag=function(e){this.__inHover=e;var t=this._textContent,n=this._textGuide;t&&(t.__inHover=e),n&&(n.__inHover=e)},e.prototype.addSelfToZr=function(e){this.__zr=e;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.addAnimator(t[n]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)},e.prototype.removeSelfFromZr=function(e){this.__zr=null;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.removeAnimator(t[n]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)},e.prototype.animate=function(e,t){var n=e?this[e]:this;if(n){var r=new Gn(n,t);return this.addAnimator(r,e),r}L('Property "'+e+'" is not existed in element '+this.id)},e.prototype.addAnimator=function(e,t){var n=this.__zr,r=this;e.during(function(){r.updateDuringAnimation(t)}).done(function(){var t=r.animators,n=z(t,e);n>=0&&t.splice(n,1)}),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(e){this.markRedraw()},e.prototype.stopAnimation=function(e,t){for(var n=this.animators,r=n.length,i=[],a=0;a<r;a++){var o=n[a];e&&e!==o.scope?i.push(o):o.stop(t)}return this.animators=i,this},e.prototype.animateTo=function(e,t,n){wr(this,e,t,n)},e.prototype.animateFrom=function(e,t,n){wr(this,e,t,n,!0)},e.prototype._transitionState=function(e,t,n,r){for(var i=wr(this,t,n,r),a=0;a<i.length;a++)i[a].__fromStateTransition=e},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.REDARAW_BIT=1,e.initDefaultProps=function(){var t=e.prototype;t.type="element",t.name="",t.ignore=!1,t.silent=!1,t.isGroup=!1,t.draggable=!1,t.dragging=!1,t.ignoreClip=!1,t.__inHover=!1,t.__dirty=e.REDARAW_BIT;var n={};function r(e,t,r){n[e+t+r]||(console.warn("DEPRECATED: '"+e+"' has been deprecated. use '"+t+"', '"+r+"' instead"),n[e+t+r]=!0)}function i(e,n,i,a){function o(e,t){Object.defineProperty(t,0,{get:function(){return e[i]},set:function(t){e[i]=t}}),Object.defineProperty(t,1,{get:function(){return e[a]},set:function(t){e[a]=t}})}Object.defineProperty(t,e,{get:function(){(r(e,i,a),this[n])||o(this,this[n]=[]);return this[n]},set:function(t){r(e,i,a),this[i]=t[0],this[a]=t[1],this[n]=t,o(this,t)}})}Object.defineProperty&&(!w.browser.ie||w.browser.version>8)&&(i("position","_legacyPos","x","y"),i("scale","_legacyScale","scaleX","scaleY"),i("origin","_legacyOrigin","originX","originY"))}(),e}();function wr(e,t,n,r,i){var a=[];!function e(t,n,r,i,a,o,s,l){var c=[];var u=[];var h=J(i);var d=a.duration;var f=a.delay;var p=a.additive;var A=a.setToFinal;var g=!oe(o);for(var m=0;m<h.length;m++){var v=h[m];if(null!=r[v]&&null!=i[v]&&(g||o[v]))if(oe(i[v])&&!$(i[v])){if(n){l||(r[v]=i[v],t.updateDuringAnimation(n));continue}e(t,v,r[v],i[v],a,o&&o[v],s,l)}else c.push(v),u.push(v);else l||(r[v]=i[v],t.updateDuringAnimation(n),u.push(v))}var y=c.length;if(y>0||a.force&&!s.length){for(var b=t.animators,w=[],x=0;x<b.length;x++)b[x].targetName===n&&w.push(b[x]);if(!p&&w.length)for(var x=0;x<w.length;x++){var _=w[x].stopTracks(u);if(_){var C=z(b,w[x]);b.splice(C,1)}}var S=void 0,k=void 0,B=void 0;if(l){k={},A&&(S={});for(var x=0;x<y;x++){var v=c[x];k[v]=r[v],A?S[v]=i[v]:r[v]=i[v]}}else if(A){B={};for(var x=0;x<y;x++){var v=c[x];B[v]=Un(r[v]),_r(r,i,v)}}var E=new Gn(r,!1,p?w:null);E.targetName=n,a.scope&&(E.scope=a.scope),A&&S&&E.whenWithKeys(0,S,c),B&&E.whenWithKeys(0,B,c),E.whenWithKeys(null==d?500:d,l?k:i,c).delay(f||0),t.addAnimator(E,n),s.push(E)}}(e,"",e,t,n=n||{},r,a,i);var o=a.length,s=!1,l=n.done,c=n.aborted,u=function(){s=!0,--o<=0&&(s?l&&l():c&&c())},h=function(){--o<=0&&(s?l&&l():c&&c())};o||l&&l(),a.length>0&&n.during&&a[0].during(function(e,t){n.during(t)});for(var d=0;d<a.length;d++){var f=a[d];u&&f.done(u),h&&f.aborted(h),f.start(n.easing,n.force)}return a}function xr(e,t,n){for(var r=0;r<n;r++)e[r]=t[r]}function _r(e,t,n){if($(t[n]))if($(e[n])||(e[n]=[]),le(t[n])){var r=t[n].length;e[n].length!==r&&(e[n]=new t[n].constructor(r),xr(e[n],t[n],r))}else{var i=t[n],a=e[n],o=i.length;if($(i[0]))for(var s=i[0].length,l=0;l<o;l++)a[l]?xr(a[l],i[l],s):a[l]=Array.prototype.slice.call(i[l]);else xr(a,i,o);a.length=i.length}else e[n]=t[n]}G(br,at),G(br,Xt);var Cr=br,Sr=32,kr=7;function Br(e,t,n,r){var i=t+1;if(i===n)return 1;if(r(e[i++],e[t])<0){for(;i<n&&r(e[i],e[i-1])<0;)i++;!function(e,t,n){n--;for(;t<n;){var r=e[t];e[t++]=e[n],e[n--]=r}}(e,t,i)}else for(;i<n&&r(e[i],e[i-1])>=0;)i++;return i-t}function Er(e,t,n,r,i){for(r===t&&r++;r<n;r++){for(var a,o=e[r],s=t,l=r;s<l;)i(o,e[a=s+l>>>1])<0?l=a:s=a+1;var c=r-s;switch(c){case 3:e[s+3]=e[s+2];case 2:e[s+2]=e[s+1];case 1:e[s+1]=e[s];break;default:for(;c>0;)e[s+c]=e[s+c-1],c--}e[s]=o}}function Tr(e,t,n,r,i,a){var o=0,s=0,l=1;if(a(e,t[n+i])>0){for(s=r-i;l<s&&a(e,t[n+i+l])>0;)o=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}else{for(s=i+1;l<s&&a(e,t[n+i-l])<=0;)o=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var c=o;o=i-l,l=i-c}for(o++;o<l;){var u=o+(l-o>>>1);a(e,t[n+u])>0?o=u+1:l=u}return l}function Ir(e,t,n,r,i,a){var o=0,s=0,l=1;if(a(e,t[n+i])<0){for(s=i+1;l<s&&a(e,t[n+i-l])<0;)o=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var c=o;o=i-l,l=i-c}else{for(s=r-i;l<s&&a(e,t[n+i+l])>=0;)o=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}for(o++;o<l;){var u=o+(l-o>>>1);a(e,t[n+u])<0?l=u:o=u+1}return l}function Mr(e,t){var n,r,i,a=kr,o=0;n=e.length;var s=[];function l(n){var l=r[n],c=i[n],u=r[n+1],h=i[n+1];i[n]=c+h,n===o-3&&(r[n+1]=r[n+2],i[n+1]=i[n+2]),o--;var d=Ir(e[u],e,l,c,0,t);l+=d,0!==(c-=d)&&0!==(h=Tr(e[l+c-1],e,u,h,h-1,t))&&(c<=h?function(n,r,i,o){var l=0;for(l=0;l<r;l++)s[l]=e[n+l];var c=0,u=i,h=n;if(e[h++]=e[u++],0==--o){for(l=0;l<r;l++)e[h+l]=s[c+l];return}if(1===r){for(l=0;l<o;l++)e[h+l]=e[u+l];return void(e[h+o]=s[c])}var d,f,p,A=a;for(;;){d=0,f=0,p=!1;do{if(t(e[u],s[c])<0){if(e[h++]=e[u++],f++,d=0,0==--o){p=!0;break}}else if(e[h++]=s[c++],d++,f=0,1==--r){p=!0;break}}while((d|f)<A);if(p)break;do{if(0!==(d=Ir(e[u],s,c,r,0,t))){for(l=0;l<d;l++)e[h+l]=s[c+l];if(h+=d,c+=d,(r-=d)<=1){p=!0;break}}if(e[h++]=e[u++],0==--o){p=!0;break}if(0!==(f=Tr(s[c],e,u,o,0,t))){for(l=0;l<f;l++)e[h+l]=e[u+l];if(h+=f,u+=f,0===(o-=f)){p=!0;break}}if(e[h++]=s[c++],1==--r){p=!0;break}A--}while(d>=kr||f>=kr);if(p)break;A<0&&(A=0),A+=2}if((a=A)<1&&(a=1),1===r){for(l=0;l<o;l++)e[h+l]=e[u+l];e[h+o]=s[c]}else{if(0===r)throw new Error;for(l=0;l<r;l++)e[h+l]=s[c+l]}}(l,c,u,h):function(n,r,i,o){var l=0;for(l=0;l<o;l++)s[l]=e[i+l];var c=n+r-1,u=o-1,h=i+o-1,d=0,f=0;if(e[h--]=e[c--],0==--r){for(d=h-(o-1),l=0;l<o;l++)e[d+l]=s[l];return}if(1===o){for(f=(h-=r)+1,d=(c-=r)+1,l=r-1;l>=0;l--)e[f+l]=e[d+l];return void(e[h]=s[u])}var p=a;for(;;){var A=0,g=0,m=!1;do{if(t(s[u],e[c])<0){if(e[h--]=e[c--],A++,g=0,0==--r){m=!0;break}}else if(e[h--]=s[u--],g++,A=0,1==--o){m=!0;break}}while((A|g)<p);if(m)break;do{if(0!==(A=r-Ir(s[u],e,n,r,r-1,t))){for(r-=A,f=(h-=A)+1,d=(c-=A)+1,l=A-1;l>=0;l--)e[f+l]=e[d+l];if(0===r){m=!0;break}}if(e[h--]=s[u--],1==--o){m=!0;break}if(0!==(g=o-Tr(e[c],s,0,o,o-1,t))){for(o-=g,f=(h-=g)+1,d=(u-=g)+1,l=0;l<g;l++)e[f+l]=s[d+l];if(o<=1){m=!0;break}}if(e[h--]=e[c--],0==--r){m=!0;break}p--}while(A>=kr||g>=kr);if(m)break;p<0&&(p=0),p+=2}(a=p)<1&&(a=1);if(1===o){for(f=(h-=r)+1,d=(c-=r)+1,l=r-1;l>=0;l--)e[f+l]=e[d+l];e[h]=s[u]}else{if(0===o)throw new Error;for(d=h-(o-1),l=0;l<o;l++)e[d+l]=s[l]}}(l,c,u,h))}return n<120?5:n<1542?10:n<119151?19:40,r=[],i=[],{mergeRuns:function(){for(;o>1;){var e=o-2;if(e>=1&&i[e-1]<=i[e]+i[e+1]||e>=2&&i[e-2]<=i[e]+i[e-1])i[e-1]<i[e+1]&&e--;else if(i[e]>i[e+1])break;l(e)}},forceMergeRuns:function(){for(;o>1;){var e=o-2;e>0&&i[e-1]<i[e+1]&&e--,l(e)}},pushRun:function(e,t){r[o]=e,i[o]=t,o+=1}}}function Fr(e,t,n,r){n||(n=0),r||(r=e.length);var i=r-n;if(!(i<2)){var a=0;if(i<Sr)Er(e,n,r,n+(a=Br(e,n,r,t)),t);else{var o=Mr(e,t),s=function(e){for(var t=0;e>=Sr;)t|=1&e,e>>=1;return e+t}(i);do{if((a=Br(e,n,r,t))<s){var l=i;l>s&&(l=s),Er(e,n,n+l,n+a,t),a=l}o.pushRun(n,a),o.mergeRuns(),i-=a,n+=a}while(0!==i);o.forceMergeRuns()}}}var Dr=!1;function Pr(){Dr||(Dr=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Or(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var Lr,Rr,Nr=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Or}return e.prototype.traverse=function(e,t){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,t)},e.prototype.getDisplayList=function(e,t){t=t||!1;var n=this._displayList;return!e&&n.length||this.updateDisplayList(t),n},e.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var t=this._roots,n=this._displayList,r=0,i=t.length;r<i;r++)this._updateAndAddDisplayable(t[r],null,e);n.length=this._displayListLen,w.canvasSupported&&Fr(n,Or)},e.prototype._updateAndAddDisplayable=function(e,t,n){if(!e.ignore||n){e.beforeUpdate(),e.update(),e.afterUpdate();var r=e.getClipPath();if(e.ignoreClip)t=null;else if(r){t=t?t.slice():[];for(var i=r,a=e;i;)i.parent=a,i.updateTransform(),t.push(i),a=i,i=i.getClipPath()}if(e.childrenRef){for(var o=e.childrenRef(),s=0;s<o.length;s++){var l=o[s];e.__dirty&&(l.__dirty|=Cr.REDARAW_BIT),this._updateAndAddDisplayable(l,t,n)}e.__dirty=0}else{var c=e;t&&t.length?c.__clipPaths=t:c.__clipPaths&&c.__clipPaths.length>0&&(c.__clipPaths=[]),isNaN(c.z)&&(Pr(),c.z=0),isNaN(c.z2)&&(Pr(),c.z2=0),isNaN(c.zlevel)&&(Pr(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var u=e.getDecalElement&&e.getDecalElement();u&&this._updateAndAddDisplayable(u,t,n);var h=e.getTextGuideLine();h&&this._updateAndAddDisplayable(h,t,n);var d=e.getTextContent();d&&this._updateAndAddDisplayable(d,t,n)}},e.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},e.prototype.delRoot=function(e){if(e instanceof Array)for(var t=0,n=e.length;t<n;t++)this.delRoot(e[t]);else{var r=z(this._roots,e);r>=0&&this._roots.splice(r,1)}},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}(),Ur="undefined"!=typeof window&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)},Hr=function(e){function t(t){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,t=t||{},n.stage=t.stage||{},n.onframe=t.onframe||function(){},n}return Me(t,e),t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._clipsHead?(this._clipsTail.next=e,e.prev=this._clipsTail,e.next=null,this._clipsTail=e):this._clipsHead=this._clipsTail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var t=e.getClip();t&&this.addClip(t)},t.prototype.removeClip=function(e){if(e.animation){var t=e.prev,n=e.next;t?t.next=n:this._clipsHead=n,n?n.prev=t:this._clipsTail=t,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var t=e.getClip();t&&this.removeClip(t),e.animation=null},t.prototype.update=function(e){for(var t=(new Date).getTime()-this._pausedTime,n=t-this._time,r=this._clipsHead;r;){var i=r.next;r.step(t,n)?(r.ondestroy&&r.ondestroy(),this.removeClip(r),r=i):r=i}this._time=t,e||(this.onframe(n),this.trigger("frame",n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0,Ur(function t(){e._running&&(Ur(t),!e._paused&&e.update())})},t.prototype.start=function(){this._running||(this._time=(new Date).getTime(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=(new Date).getTime(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=(new Date).getTime()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var e=this._clipsHead;e;){var t=e.next;e.prev=e.next=e.animation=null,e=t}this._clipsHead=this._clipsTail=null},t.prototype.isFinished=function(){return null==this._clipsHead},t.prototype.animate=function(e,t){t=t||{},this.start();var n=new Gn(e,t.loop);return this.addAnimator(n),n},t}(at),jr=w.domSupported,Qr=(Rr={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:Lr=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:W(Lr,function(e){var t=e.replace("mouse","pointer");return Rr.hasOwnProperty(t)?t:e})}),zr={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Vr=!1;function Gr(e){var t=e.pointerType;return"pen"===t||"touch"===t}function $r(e){e&&(e.zrByTouch=!0)}function qr(e,t){for(var n=t,r=!1;n&&9!==n.nodeType&&!(r=n.domBelongToZr||n!==t&&n===e.painterRoot);)n=n.parentNode;return r}var Wr=function(){return function(e,t){this.stopPropagation=Te,this.stopImmediatePropagation=Te,this.preventDefault=Te,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}}(),Kr={mousedown:function(e){e=yt(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=yt(this.dom,e);var t=this.__mayPointerCapture;!t||e.zrX===t[0]&&e.zrY===t[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=yt(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){qr(this,(e=yt(this.dom,e)).toElement||e.relatedTarget)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){Vr=!0,e=yt(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){Vr||(e=yt(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){$r(e=yt(this.dom,e)),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),Kr.mousemove.call(this,e),Kr.mousedown.call(this,e)},touchmove:function(e){$r(e=yt(this.dom,e)),this.handler.processGesture(e,"change"),Kr.mousemove.call(this,e)},touchend:function(e){$r(e=yt(this.dom,e)),this.handler.processGesture(e,"end"),Kr.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<300&&Kr.click.call(this,e)},pointerdown:function(e){Kr.mousedown.call(this,e)},pointermove:function(e){Gr(e)||Kr.mousemove.call(this,e)},pointerup:function(e){Kr.mouseup.call(this,e)},pointerout:function(e){Gr(e)||Kr.mouseout.call(this,e)}};q(["click","dblclick","contextmenu"],function(e){Kr[e]=function(t){t=yt(this.dom,t),this.trigger(e,t)}});var Yr={pointermove:function(e){Gr(e)||Yr.mousemove.call(this,e)},pointerup:function(e){Yr.mouseup.call(this,e)},mousemove:function(e){this.trigger("mousemove",e)},mouseup:function(e){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",e),t&&(e.zrEventControl="only_globalout",this.trigger("mouseout",e))}};function Xr(e,t){var n=t.domHandlers;w.pointerEventsSupported?q(Qr.pointer,function(r){Zr(t,r,function(t){n[r].call(e,t)})}):(w.touchEventsSupported&&q(Qr.touch,function(r){Zr(t,r,function(i){n[r].call(e,i),function(e){e.touching=!0,null!=e.touchTimer&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}(t)})}),q(Qr.mouse,function(r){Zr(t,r,function(i){i=vt(i),t.touching||n[r].call(e,i)})}))}function Jr(e,t){function n(n){Zr(t,n,function(r){r=vt(r),qr(e,r.target)||(r=function(e,t){return yt(e.dom,new Wr(e,t),!0)}(e,r),t.domHandlers[n].call(e,r))},{capture:!0})}w.pointerEventsSupported?q(zr.pointer,n):w.touchEventsSupported||q(zr.mouse,n)}function Zr(e,t,n,r){e.mounted[t]=n,e.listenerOpts[t]=r,bt(e.domTarget,t,n,r)}function ei(e){var t,n,r,i,a=e.mounted;for(var o in a)a.hasOwnProperty(o)&&(t=e.domTarget,n=o,r=a[o],i=e.listenerOpts[o],ft?t.removeEventListener(n,r,i):t.detachEvent("on"+n,r));e.mounted={}}var ti=function(){return function(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}}(),ni=function(e){function t(t,n){var r=e.call(this)||this;return r.__pointerCapturing=!1,r.dom=t,r.painterRoot=n,r._localHandlerScope=new ti(t,Kr),jr&&(r._globalHandlerScope=new ti(document,Yr)),Xr(r,r._localHandlerScope),r}return Me(t,e),t.prototype.dispose=function(){ei(this._localHandlerScope),jr&&ei(this._globalHandlerScope)},t.prototype.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||"default")},t.prototype.__togglePointerCapture=function(e){if(this.__mayPointerCapture=null,jr&&+this.__pointerCapturing^+e){this.__pointerCapturing=e;var t=this._globalHandlerScope;e?Jr(this,t):ei(t)}},t}(at),ri=function(e){function t(t){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(t),n}return Me(t,e),t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var t=this._children,n=0;n<t.length;n++)if(t[n].name===e)return t[n]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(e){if(e&&(e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),e.__hostTarget))throw"This elemenet has been used as an attachment";return this},t.prototype.addBefore=function(e,t){if(e&&e!==this&&e.parent!==this&&t&&t.parent===this){var n=this._children,r=n.indexOf(t);r>=0&&(n.splice(r,0,e),this._doAdd(e))}return this},t.prototype.replaceAt=function(e,t){var n=this._children,r=n[t];if(e&&e!==this&&e.parent!==this&&e!==r){n[t]=e,r.parent=null;var i=this.__zr;i&&r.removeSelfFromZr(i),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var t=this.__zr;t&&t!==e.__zr&&e.addSelfToZr(t),t&&t.refresh()},t.prototype.remove=function(e){var t=this.__zr,n=this._children,r=z(n,e);return r<0?this:(n.splice(r,1),e.parent=null,t&&e.removeSelfFromZr(t),t&&t.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,t=this.__zr,n=0;n<e.length;n++){var r=e[n];t&&r.removeSelfFromZr(t),r.parent=null}return e.length=0,this},t.prototype.eachChild=function(e,t){for(var n=this._children,r=0;r<n.length;r++){var i=n[r];e.call(t,i,r)}return this},t.prototype.traverse=function(e,t){for(var n=0;n<this._children.length;n++){var r=this._children[n],i=e.call(t,r);r.isGroup&&!i&&r.traverse(e,t)}return this},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++){this._children[n].addSelfToZr(t)}},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++){this._children[n].removeSelfFromZr(t)}},t.prototype.getBoundingRect=function(e){for(var t=new tr(0,0,0,0),n=e||this._children,r=[],i=null,a=0;a<n.length;a++){var o=n[a];if(!o.ignore&&!o.invisible){var s=o.getBoundingRect(),l=o.getLocalTransform(r);l?(tr.applyTransform(t,s,l),(i=i||t.clone()).union(t)):(i=i||s.clone()).union(s)}}return i||t},t}(Cr);ri.prototype.type="group";var ii=ri,ai=!w.canvasSupported,oi={},si={};
  80. /*!
  81. * ZRender, a high performance 2d drawing library.
  82. *
  83. * Copyright (c) 2013, Baidu Inc.
  84. * All rights reserved.
  85. *
  86. * LICENSE
  87. * https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
  88. */var li=function(){function e(e,t,n){var r=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=t,this.id=e;var i=new Nr,a=n.renderer||"canvas";if(ai)throw new Error("IE8 support has been dropped since 5.0");if(oi[a]||(a=J(oi)[0]),!oi[a])throw new Error("Renderer '"+a+"' is not imported. Please import it first.");n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect;var o=new oi[a](t,i,n,e);this.storage=i,this.painter=o;var s=w.node||w.worker?null:new ni(o.getViewportRoot(),o.root);this.handler=new Pt(i,o,s,o.root),this.animation=new Hr({stage:{update:function(){return r._flush(!0)}}}),this.animation.start()}return e.prototype.add=function(e){e&&(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},e.prototype.remove=function(e){e&&(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(e,t){this.painter.configLayer&&this.painter.configLayer(e,t),this.refresh()},e.prototype.setBackgroundColor=function(e){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=function(e){if(!e)return!1;if("string"==typeof e)return En(e,1)<Ar;if(e.colorStops){for(var t=e.colorStops,n=0,r=t.length,i=0;i<r;i++)n+=En(t[i].color,1);return(n/=r)<Ar}return!1}(e)},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(e){this._darkMode=e},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(e){e||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},e.prototype.refresh=function(){this._needsRefresh=!0,this.animation.start()},e.prototype.flush=function(){this._flush(!1)},e.prototype._flush=function(e){var t,n=(new Date).getTime();this._needsRefresh&&(t=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(t=!0,this.refreshHoverImmediately());var r=(new Date).getTime();t?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:r-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},e.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},e.prototype.addHover=function(e){},e.prototype.removeHover=function(e){},e.prototype.clearHover=function(){},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover()},e.prototype.resize=function(e){e=e||{},this.painter.resize(e.width,e.height),this.handler.resize()},e.prototype.clearAnimation=function(){this.animation.clear()},e.prototype.getWidth=function(){return this.painter.getWidth()},e.prototype.getHeight=function(){return this.painter.getHeight()},e.prototype.pathToImage=function(e,t){if(this.painter.pathToImage)return this.painter.pathToImage(e,t)},e.prototype.setCursorStyle=function(e){this.handler.setCursorStyle(e)},e.prototype.findHover=function(e,t){return this.handler.findHover(e,t)},e.prototype.on=function(e,t,n){return this.handler.on(e,t,n),this},e.prototype.off=function(e,t){this.handler.off(e,t)},e.prototype.trigger=function(e,t){this.handler.trigger(e,t)},e.prototype.clear=function(){for(var e=this.storage.getRoots(),t=0;t<e.length;t++)e[t]instanceof ii&&e[t].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()},e.prototype.dispose=function(){var e;this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,e=this.id,delete si[e]},e}();function ci(e,t){var n=new li(O(),e,t);return si[n.id]=n,n}function ui(e){e.dispose()}function hi(){for(var e in si)si.hasOwnProperty(e)&&si[e].dispose();si={}}function di(e){return si[e]}function fi(e,t){oi[e]=t}var pi="5.0.4",Ai=1e-4;function gi(e,t,n,r){var i=t[1]-t[0],a=n[1]-n[0];if(0===i)return 0===a?n[0]:(n[0]+n[1])/2;if(r)if(i>0){if(e<=t[0])return n[0];if(e>=t[1])return n[1]}else{if(e>=t[0])return n[0];if(e<=t[1])return n[1]}else{if(e===t[0])return n[0];if(e===t[1])return n[1]}return(e-t[0])/i*a+n[0]}function mi(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%"}return"string"==typeof e?(n=e,n.replace(/^\s+|\s+$/g,"")).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):null==e?NaN:+e;var n}function vi(e,t,n){return null==t&&(t=10),t=Math.min(Math.max(0,t),20),e=(+e).toFixed(t),n?e:+e}function yi(e){return e.sort(function(e,t){return e-t}),e}function bi(e){if(e=+e,isNaN(e))return 0;for(var t=1,n=0;Math.round(e*t)/t!==e;)t*=10,n++;return n}function wi(e){var t=e.toString(),n=t.indexOf("e");if(n>0){var r=+t.slice(n+1);return r<0?-r:0}var i=t.indexOf(".");return i<0?0:t.length-1-i}function xi(e,t){var n=Math.log,r=Math.LN10,i=Math.floor(n(e[1]-e[0])/r),a=Math.round(n(Math.abs(t[1]-t[0]))/r),o=Math.min(Math.max(-i+a,0),20);return isFinite(o)?o:20}function _i(e,t,n){if(!e[t])return 0;var r=K(e,function(e,t){return e+(isNaN(t)?0:t)},0);if(0===r)return 0;for(var i=Math.pow(10,n),a=W(e,function(e){return(isNaN(e)?0:e)/r*i*100}),o=100*i,s=W(a,function(e){return Math.floor(e)}),l=K(s,function(e,t){return e+t},0),c=W(a,function(e,t){return e-s[t]});l<o;){for(var u=Number.NEGATIVE_INFINITY,h=null,d=0,f=c.length;d<f;++d)c[d]>u&&(u=c[d],h=d);++s[h],c[h]=0,++l}return s[t]/i}var Ci=9007199254740991;function Si(e){var t=2*Math.PI;return(e%t+t)%t}function ki(e){return e>-Ai&&e<Ai}var Bi=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function Ei(e){if(e instanceof Date)return e;if("string"==typeof e){var t=Bi.exec(e);if(!t)return new Date(NaN);if(t[8]){var n=+t[4]||0;return"Z"!==t[8].toUpperCase()&&(n-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,n,+(t[5]||0),+t[6]||0,+t[7]||0))}return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,+t[7]||0)}return null==e?new Date(NaN):new Date(Math.round(e))}function Ti(e){return Math.pow(10,Ii(e))}function Ii(e){if(0===e)return 0;var t=Math.floor(Math.log(e)/Math.LN10);return e/Math.pow(10,t)>=10&&t++,t}function Mi(e,t){var n=Ii(e),r=Math.pow(10,n),i=e/r;return e=(t?i<1.5?1:i<2.5?2:i<4?3:i<7?5:10:i<1?1:i<2?2:i<3?3:i<5?5:10)*r,n>=-20?+e.toFixed(n<0?-n:0):e}function Fi(e,t){var n=(e.length-1)*t+1,r=Math.floor(n),i=+e[r-1],a=n-r;return a?i+a*(e[r]-i):i}function Di(e){e.sort(function(e,t){return function e(t,n,r){return t.interval[r]<n.interval[r]||t.interval[r]===n.interval[r]&&(t.close[r]-n.close[r]==(r?-1:1)||!r&&e(t,n,1))}(e,t,0)?-1:1});for(var t=-1/0,n=1,r=0;r<e.length;){for(var i=e[r].interval,a=e[r].close,o=0;o<2;o++)i[o]<=t&&(i[o]=t,a[o]=o?1:1-n),t=i[o],n=a[o];i[0]===i[1]&&a[0]*a[1]!=1?e.splice(r,1):r++}return e}function Pi(e){var t=parseFloat(e);return t==e&&(0!==t||"string"!=typeof e||e.indexOf("x")<=0)?t:NaN}function Oi(e){return!isNaN(Pi(e))}function Li(){return Math.round(9*Math.random())}function Ri(e,t){return null==e?t:null==t?e:e*t/function e(t,n){return 0===n?t:e(n,t%n)}(e,t)}"undefined"!=typeof console&&console.warn&&console.log;function Ni(e){0}function Ui(e){throw new Error(e)}var Hi="series\0",ji="\0_ec_\0";function Qi(e){return e instanceof Array?e:null==e?[]:[e]}function zi(e,t,n){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var r=0,i=n.length;r<i;r++){var a=n[r];!e.emphasis[t].hasOwnProperty(a)&&e[t].hasOwnProperty(a)&&(e.emphasis[t][a]=e[t][a])}}}var Vi=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function Gi(e){return!oe(e)||te(e)||e instanceof Date?e:e.value}function $i(e,t,n){var r="normalMerge"===n,i="replaceMerge"===n,a="replaceAll"===n;e=e||[],t=(t||[]).slice();var o=Se();q(t,function(e,n){oe(e)||(t[n]=null)});var s,l,c=function(e,t,n){var r=[];if("replaceAll"===n)return r;for(var i=0;i<e.length;i++){var a=e[i];a&&null!=a.id&&t.set(a.id,i),r.push({existing:"replaceMerge"===n||Xi(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return r}(e,o,n);return(r||i)&&function(e,t,n,r){q(r,function(i,a){if(i&&null!=i.id){var o=Wi(i.id),s=n.get(o);if(null!=s){var l=e[s];ye(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=i,l.existing=t[s],r[a]=null}}})}(c,e,o,t),r&&function(e,t){q(t,function(n,r){if(n&&null!=n.name)for(var i=0;i<e.length;i++){var a=e[i].existing;if(!e[i].newOption&&a&&(null==a.id||null==n.id)&&!Xi(n)&&!Xi(a)&&qi("name",a,n))return e[i].newOption=n,void(t[r]=null)}})}(c,t),r||i?function(e,t,n){q(t,function(t){if(t){for(var r,i=0;(r=e[i])&&(r.newOption||Xi(r.existing)||r.existing&&null!=t.id&&!qi("id",t,r.existing));)i++;r?(r.newOption=t,r.brandNew=n):e.push({newOption:t,brandNew:n,existing:null,keyInfo:null}),i++}})}(c,t,i):a&&function(e,t){q(t,function(t){e.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})}(c,t),s=c,l=Se(),q(s,function(e){var t=e.existing;t&&l.set(t.id,e)}),q(s,function(e){var t=e.newOption;ye(!t||null==t.id||!l.get(t.id)||l.get(t.id)===e,"id duplicates: "+(t&&t.id)),t&&null!=t.id&&l.set(t.id,e),!e.keyInfo&&(e.keyInfo={})}),q(s,function(e,t){var n=e.existing,r=e.newOption,i=e.keyInfo;if(oe(r)){if(i.name=null!=r.name?Wi(r.name):n?n.name:Hi+t,n)i.id=Wi(n.id);else if(null!=r.id)i.id=Wi(r.id);else{var a=0;do{i.id="\0"+i.name+"\0"+a++}while(l.get(i.id))}l.set(i.id,e)}}),c}function qi(e,t,n){var r=Ki(t[e],null),i=Ki(n[e],null);return null!=r&&null!=i&&r===i}function Wi(e){return Ki(e,"")}function Ki(e,t){if(null==e)return t;var n=typeof e;return"string"===n?e:"number"===n||ie(e)?e+"":t}function Yi(e){var t=e.name;return!(!t||!t.indexOf(Hi))}function Xi(e){return e&&null!=e.id&&0===Wi(e.id).indexOf(ji)}function Ji(e,t){return null!=t.dataIndexInside?t.dataIndexInside:null!=t.dataIndex?te(t.dataIndex)?W(t.dataIndex,function(t){return e.indexOfRawIndex(t)}):e.indexOfRawIndex(t.dataIndex):null!=t.name?te(t.name)?W(t.name,function(t){return e.indexOfName(t)}):e.indexOfName(t.name):void 0}function Zi(){var e="__ec_inner_"+ea++;return function(t){return t[e]||(t[e]={})}}var ea=Li();function ta(e,t,n){var r;if(re(t)){var i={};i[t+"Index"]=0,r=i}else r=t;var a=Se(),o={},s=!1;q(r,function(e,t){if("dataIndex"!==t&&"dataIndexInside"!==t){var r=t.match(/^(\w+)(Index|Id|Name)$/)||[],i=r[1],l=(r[2]||"").toLowerCase();if(i&&l&&!(n&&n.includeMainTypes&&z(n.includeMainTypes,i)<0))s=s||!!i,(a.get(i)||a.set(i,{}))[l]=e}else o[t]=e});var l=n?n.defaultMainType:null;return!s&&l&&a.set(l,{}),a.each(function(t,r){var i=ia(e,r,t,{useDefault:l===r,enableAll:!n||null==n.enableAll||n.enableAll,enableNone:!n||null==n.enableNone||n.enableNone});o[r+"Models"]=i.models,o[r+"Model"]=i.models[0]}),o}var na={useDefault:!0,enableAll:!1,enableNone:!1},ra={useDefault:!1,enableAll:!0,enableNone:!0};function ia(e,t,n,r){r=r||na;var i=n.index,a=n.id,o=n.name,s={models:null,specified:null!=i||null!=a||null!=o};if(!s.specified){var l=void 0;return s.models=r.useDefault&&(l=e.getComponent(t))?[l]:[],s}return"none"===i||!1===i?(ye(r.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):("all"===i&&(ye(r.enableAll,'`"all"` is not a valid value on index option.'),i=a=o=null),s.models=e.queryComponents({mainType:t,index:i,id:a,name:o}),s)}function aa(e,t,n){e.setAttribute?e.setAttribute(t,n):e[t]=n}function oa(e,t){var n=Se(),r=[];return q(e,function(e){var i=t(e);(n.get(i)||(r.push(i),n.set(i,[]))).push(e)}),{keys:r,buckets:n}}function sa(e,t,n,r,i){var a=null==t||"auto"===t;if(null==r)return r;if("number"==typeof r)return vi(f=Mn(n||0,r,i),a?Math.max(wi(n||0),wi(r)):t);if("string"==typeof r)return i<1?n:r;for(var o=[],s=n,l=r,c=Math.max(s?s.length:0,l.length),u=0;u<c;++u){if("ordinal"===e.getDimensionInfo(u).type)o[u]=(i<1&&s?s:l)[u];else{var h=s&&s[u]?s[u]:0,d=l[u],f=Mn(h,d,i);o[u]=vi(f,a?Math.max(wi(h),wi(d)):t)}}return o}var la=".",ca="___EC__COMPONENT__CONTAINER___",ua="___EC__EXTENDED_CLASS___";function ha(e){var t={main:"",sub:""};if(e){var n=e.split(la);t.main=n[0]||"",t.sub=n[1]||""}return t}function da(e,t){e.$constructor=e,e.extend=function(e){var t=this;function n(){for(var r,i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];if(e.$constructor)e.$constructor.apply(this,arguments);else{if("function"==typeof(r=t)&&/^class\s/.test(Function.prototype.toString.call(r)))return Be(n.prototype,new(t.bind.apply(t,v([void 0],i))));t.apply(this,arguments)}}return n[ua]=!0,H(n.prototype,e),n.extend=this.extend,n.superCall=Aa,n.superApply=ga,V(n,this),n.superClass=t,n}}function fa(e,t){e.extend=t.extend}var pa=Math.round(10*Math.random());function Aa(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return this.superClass.prototype[t].apply(e,n)}function ga(e,t,n){return this.superClass.prototype[t].apply(e,n)}function ma(e){var t={};e.registerClass=function(e){var n,r=e.type||e.prototype.type;if(r){ye(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(n=r),'componentType "'+n+'" illegal'),e.prototype.type=r;var i=ha(r);if(i.sub){if(i.sub!==ca){((function(e){var n=t[e.main];n&&n[ca]||((n=t[e.main]={})[ca]=!0);return n})(i))[i.sub]=e}}else t[i.main]=e}return e},e.getClass=function(e,n,r){var i=t[e];if(i&&i[ca]&&(i=n?i[n]:null),r&&!i)throw new Error(n?"Component "+e+"."+(n||"")+" not exists. Load it first.":e+".type should be specified.");return i},e.getClassesByMainType=function(e){var n=ha(e),r=[],i=t[n.main];return i&&i[ca]?q(i,function(e,t){t!==ca&&r.push(e)}):r.push(i),r},e.hasClass=function(e){var n=ha(e);return!!t[n.main]},e.getAllClassMainTypes=function(){var e=[];return q(t,function(t,n){e.push(n)}),e},e.hasSubTypes=function(e){var n=ha(e),r=t[n.main];return r&&r[ca]}}function va(e,t){for(var n=0;n<e.length;n++)e[n][1]||(e[n][1]=e[n][0]);return t=t||!1,function(n,r,i){for(var a={},o=0;o<e.length;o++){var s=e[o][1];if(!(r&&z(r,s)>=0||i&&z(i,s)<0)){var l=n.getShallow(s,t);null!=l&&(a[e[o][0]]=l)}}return a}}var ya=va([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),ba=function(){function e(){}return e.prototype.getAreaStyle=function(e,t){return ya(this,e,t)},e}(),wa=new rn(50);function xa(e){if("string"==typeof e){var t=wa.get(e);return t&&t.image}return e}function _a(e,t,n,r,i){if(e){if("string"==typeof e){if(t&&t.__zrImageSrc===e||!n)return t;var a=wa.get(e),o={hostEl:n,cb:r,cbPayload:i};return a?!Sa(t=a.image)&&a.pending.push(o):((t=new Image).onload=t.onerror=Ca,wa.put(e,t.__cachedImgObj={image:t,pending:[o]}),t.src=t.__zrImageSrc=e),t}return e}return t}function Ca(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var n=e.pending[t],r=n.cb;r&&r(this,n.cbPayload),n.hostEl.dirty()}e.pending.length=0}function Sa(e){return e&&e.width&&e.height}var ka=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function Ba(e,t,n,r,i){if(!t)return"";var a=(e+"").split("\n");i=Ea(t,n,r,i);for(var o=0,s=a.length;o<s;o++)a[o]=Ta(a[o],i);return a.join("\n")}function Ea(e,t,n,r){var i=H({},r=r||{});i.font=t,n=Ae(n,"..."),i.maxIterations=Ae(r.maxIterations,2);var a=i.minChar=Ae(r.minChar,0);i.cnCharWidth=ar("国",t);var o=i.ascCharWidth=ar("a",t);i.placeholder=Ae(r.placeholder,"");for(var s=e=Math.max(0,e-1),l=0;l<a&&s>=o;l++)s-=o;var c=ar(n,t);return c>s&&(n="",c=0),s=e-c,i.ellipsis=n,i.ellipsisWidth=c,i.contentWidth=s,i.containerWidth=e,i}function Ta(e,t){var n=t.containerWidth,r=t.font,i=t.contentWidth;if(!n)return"";var a=ar(e,r);if(a<=n)return e;for(var o=0;;o++){if(a<=i||o>=t.maxIterations){e+=t.ellipsis;break}var s=0===o?Ia(e,i,t.ascCharWidth,t.cnCharWidth):a>0?Math.floor(e.length*i/a):0;a=ar(e=e.substr(0,s),r)}return""===e&&(e=t.placeholder),e}function Ia(e,t,n,r){for(var i=0,a=0,o=e.length;a<o&&i<t;a++){var s=e.charCodeAt(a);i+=0<=s&&s<=127?n:r}return a}var Ma=function(){return function(){}}(),Fa=function(){return function(e){this.tokens=[],e&&(this.tokens=e)}}(),Da=function(){return function(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}}();function Pa(e,t,n,r,i){var a,o,s=""===t,l=i&&n.rich[i]||{},c=e.lines,u=l.font||n.font,h=!1;if(r){var d=l.padding,f=d?d[1]+d[3]:0;if(null!=l.width&&"auto"!==l.width){var p=function(e,t){if("string"==typeof e)return e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e);return e}(l.width,r.width)+f;c.length>0&&p+r.accumWidth>r.width&&(a=t.split("\n"),h=!0),r.accumWidth=p}else{var A=Ra(t,u,r.width,r.breakAll,r.accumWidth);r.accumWidth=A.accumWidth+f,o=A.linesWidths,a=A.lines}}else a=t.split("\n");for(var g=0;g<a.length;g++){var m=a[g],v=new Ma;if(v.styleName=i,v.text=m,v.isLineHolder=!m&&!s,"number"==typeof l.width?v.width=l.width:v.width=o?o[g]:ar(m,u),g||h)c.push(new Fa([v]));else{var y=(c[c.length-1]||(c[0]=new Fa)).tokens,b=y.length;1===b&&y[0].isLineHolder?y[0]=v:(m||!b||s)&&y.push(v)}}}var Oa=K(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function La(e){return!function(e){var t=e.charCodeAt(0);return t>=33&&t<=255}(e)||!!Oa[e]}function Ra(e,t,n,r,i){for(var a=[],o=[],s="",l="",c=0,u=0,h=0;h<e.length;h++){var d=e.charAt(h);if("\n"!==d){var f=ar(d,t),p=!r&&!La(d);(a.length?u+f>n:i+u+f>n)?u?(s||l)&&(p?(s||(s=l,l="",u=c=0),a.push(s),o.push(u-c),l+=d,s="",u=c+=f):(l&&(s+=l,u+=c,l="",c=0),a.push(s),o.push(u),s=d,u=f)):p?(a.push(l),o.push(c),l=d,c=f):(a.push(d),o.push(f)):(u+=f,p?(l+=d,c+=f):(l&&(s+=l,l="",c=0),s+=d))}else l&&(s+=l,u+=c),a.push(s),o.push(u),s="",l="",c=0,u=0}return a.length||s||(s=e,l="",c=0),l&&(s+=l),s&&(a.push(s),o.push(u)),1===a.length&&(u+=i),{accumWidth:u,lines:a,linesWidths:o}}var Na="__zr_style_"+Math.round(10*Math.random()),Ua={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Ha={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Ua[Na]=!0;var ja=["z","z2","invisible"],Qa=function(e){function t(t){return e.call(this,t)||this}var n;return Me(t,e),t.prototype._init=function(t){for(var n=J(t),r=0;r<n.length;r++){var i=n[r];"style"===i?this.useStyle(t[i]):e.prototype.attrKV.call(this,i,t[i])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(e,t,n,r){var i=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&function(e,t,n){za.copy(e.getBoundingRect()),e.transform&&za.applyTransform(e.transform);return Va.width=t,Va.height=n,!za.intersect(Va)}(this,e,t)||i&&!i[0]&&!i[3])return!1;if(n&&this.__clipPaths)for(var a=0;a<this.__clipPaths.length;++a)if(this.__clipPaths[a].isZeroArea())return!1;if(r&&this.parent)for(var o=this.parent;o;){if(o.ignore)return!1;o=o.parent}return!0},t.prototype.contain=function(e,t){return this.rectContain(e,t)},t.prototype.traverse=function(e,t){e.call(t,this)},t.prototype.rectContain=function(e,t){var n=this.transformCoordToLocal(e,t);return this.getBoundingRect().contain(n[0],n[1])},t.prototype.getPaintRect=function(){var e=this._paintRect;if(!this._paintRect||this.__dirty){var t=this.transform,n=this.getBoundingRect(),r=this.style,i=r.shadowBlur||0,a=r.shadowOffsetX||0,o=r.shadowOffsetY||0;e=this._paintRect||(this._paintRect=new tr(0,0,0,0)),t?tr.applyTransform(e,n,t):e.copy(n),(i||a||o)&&(e.width+=2*i+Math.abs(a),e.height+=2*i+Math.abs(o),e.x=Math.min(e.x,e.x+a-i),e.y=Math.min(e.y,e.y+o-i));var s=this.dirtyRectTolerance;e.isZero()||(e.x=Math.floor(e.x-s),e.y=Math.floor(e.y-s),e.width=Math.ceil(e.width+1+2*s),e.height=Math.ceil(e.height+1+2*s))}return e},t.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new tr(0,0,0,0),this._prevPaintRect.copy(e)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(e){return this.animate("style",e)},t.prototype.updateDuringAnimation=function(e){"style"===e?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(t,n){"style"!==t?e.prototype.attrKV.call(this,t,n):this.style?this.setStyle(n):this.useStyle(n)},t.prototype.setStyle=function(e,t){return"string"==typeof e?this.style[e]=t:H(this.style,e),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(){this.markRedraw(),this.__dirty|=t.STYLE_CHANGED_BIT,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&t.STYLE_CHANGED_BIT)},t.prototype.styleUpdated=function(){this.__dirty&=~t.STYLE_CHANGED_BIT},t.prototype.createStyle=function(e){return Be(Ua,e)},t.prototype.useStyle=function(e){e[Na]||(e=this.createStyle(e)),this.__inHover?this.__hoverStyle=e:this.style=e,this.dirtyStyle()},t.prototype.isStyleObject=function(e){return e[Na]},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,n,ja)},t.prototype._applyStateObj=function(t,n,r,i,a,o){e.prototype._applyStateObj.call(this,t,n,r,i,a,o);var s,l=!(n&&i);if(n&&n.style?a?i?s=n.style:(s=this._mergeStyle(this.createStyle(),r.style),this._mergeStyle(s,n.style)):(s=this._mergeStyle(this.createStyle(),i?this.style:r.style),this._mergeStyle(s,n.style)):l&&(s=r.style),s)if(a){var c=this.style;if(this.style=this.createStyle(l?{}:c),l)for(var u=J(c),h=0;h<u.length;h++){(f=u[h])in s&&(s[f]=s[f],this.style[f]=c[f])}var d=J(s);for(h=0;h<d.length;h++){var f=d[h];this.style[f]=this.style[f]}this._transitionState(t,{style:s},o,this.getAnimationStyleProps())}else this.useStyle(s);for(h=0;h<ja.length;h++){f=ja[h];n&&null!=n[f]?this[f]=n[f]:l&&null!=r[f]&&(this[f]=r[f])}},t.prototype._mergeStates=function(t){for(var n,r=e.prototype._mergeStates.call(this,t),i=0;i<t.length;i++){var a=t[i];a.style&&(n=n||{},this._mergeStyle(n,a.style))}return n&&(r.style=n),r},t.prototype._mergeStyle=function(e,t){return H(e,t),e},t.prototype.getAnimationStyleProps=function(){return Ha},t.STYLE_CHANGED_BIT=2,t.initDefaultProps=((n=t.prototype).type="displayable",n.invisible=!1,n.z=0,n.z2=0,n.zlevel=0,n.culling=!1,n.cursor="pointer",n.rectHover=!1,n.incremental=!1,n._rect=null,n.dirtyRectTolerance=0,void(n.__dirty=Cr.REDARAW_BIT|t.STYLE_CHANGED_BIT)),t}(Cr),za=new tr(0,0,0,0),Va=new tr(0,0,0,0);var Ga=Qa,$a=Math.pow,qa=Math.sqrt,Wa=1e-8,Ka=1e-4,Ya=qa(3),Xa=1/3,Ja=Fe(),Za=Fe(),eo=Fe();function to(e){return e>-Wa&&e<Wa}function no(e){return e>Wa||e<-Wa}function ro(e,t,n,r,i){var a=1-i;return a*a*(a*e+3*i*t)+i*i*(i*r+3*a*n)}function io(e,t,n,r,i){var a=1-i;return 3*(((t-e)*a+2*(n-t)*i)*a+(r-n)*i*i)}function ao(e,t,n,r,i,a){var o=r+3*(t-n)-e,s=3*(n-2*t+e),l=3*(t-e),c=e-i,u=s*s-3*o*l,h=s*l-9*o*c,d=l*l-3*s*c,f=0;if(to(u)&&to(h)){if(to(s))a[0]=0;else(C=-l/s)>=0&&C<=1&&(a[f++]=C)}else{var p=h*h-4*u*d;if(to(p)){var A=h/u,g=-A/2;(C=-s/o+A)>=0&&C<=1&&(a[f++]=C),g>=0&&g<=1&&(a[f++]=g)}else if(p>0){var m=qa(p),v=u*s+1.5*o*(-h+m),y=u*s+1.5*o*(-h-m);(C=(-s-((v=v<0?-$a(-v,Xa):$a(v,Xa))+(y=y<0?-$a(-y,Xa):$a(y,Xa))))/(3*o))>=0&&C<=1&&(a[f++]=C)}else{var b=(2*u*s-3*o*h)/(2*qa(u*u*u)),w=Math.acos(b)/3,x=qa(u),_=Math.cos(w),C=(-s-2*x*_)/(3*o),S=(g=(-s+x*(_+Ya*Math.sin(w)))/(3*o),(-s+x*(_-Ya*Math.sin(w)))/(3*o));C>=0&&C<=1&&(a[f++]=C),g>=0&&g<=1&&(a[f++]=g),S>=0&&S<=1&&(a[f++]=S)}}return f}function oo(e,t,n,r,i){var a=6*n-12*t+6*e,o=9*t+3*r-3*e-9*n,s=3*t-3*e,l=0;if(to(o)){if(no(a))(u=-s/a)>=0&&u<=1&&(i[l++]=u)}else{var c=a*a-4*o*s;if(to(c))i[0]=-a/(2*o);else if(c>0){var u,h=qa(c),d=(-a-h)/(2*o);(u=(-a+h)/(2*o))>=0&&u<=1&&(i[l++]=u),d>=0&&d<=1&&(i[l++]=d)}}return l}function so(e,t,n,r,i,a){var o=(t-e)*i+e,s=(n-t)*i+t,l=(r-n)*i+n,c=(s-o)*i+o,u=(l-s)*i+s,h=(u-c)*i+c;a[0]=e,a[1]=o,a[2]=c,a[3]=h,a[4]=h,a[5]=u,a[6]=l,a[7]=r}function lo(e,t,n,r,i,a,o,s,l,c,u){var h,d,f,p,A,g=.005,m=1/0;Ja[0]=l,Ja[1]=c;for(var v=0;v<1;v+=.05)Za[0]=ro(e,n,i,o,v),Za[1]=ro(t,r,a,s,v),(p=Xe(Ja,Za))<m&&(h=v,m=p);m=1/0;for(var y=0;y<32&&!(g<Ka);y++)d=h-g,f=h+g,Za[0]=ro(e,n,i,o,d),Za[1]=ro(t,r,a,s,d),p=Xe(Za,Ja),d>=0&&p<m?(h=d,m=p):(eo[0]=ro(e,n,i,o,f),eo[1]=ro(t,r,a,s,f),A=Xe(eo,Ja),f<=1&&A<m?(h=f,m=A):g*=.5);return u&&(u[0]=ro(e,n,i,o,h),u[1]=ro(t,r,a,s,h)),qa(m)}function co(e,t,n,r,i,a,o,s,l){for(var c=e,u=t,h=0,d=1/l,f=1;f<=l;f++){var p=f*d,A=ro(e,n,i,o,p),g=ro(t,r,a,s,p),m=A-c,v=g-u;h+=Math.sqrt(m*m+v*v),c=A,u=g}return h}function uo(e,t,n,r){var i=1-r;return i*(i*e+2*r*t)+r*r*n}function ho(e,t,n,r){return 2*((1-r)*(t-e)+r*(n-t))}function fo(e,t,n){var r=e+n-2*t;return 0===r?.5:(e-t)/r}function po(e,t,n,r,i){var a=(t-e)*r+e,o=(n-t)*r+t,s=(o-a)*r+a;i[0]=e,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=n}function Ao(e,t,n,r,i,a,o,s,l){var c,u=.005,h=1/0;Ja[0]=o,Ja[1]=s;for(var d=0;d<1;d+=.05){Za[0]=uo(e,n,i,d),Za[1]=uo(t,r,a,d),(g=Xe(Ja,Za))<h&&(c=d,h=g)}h=1/0;for(var f=0;f<32&&!(u<Ka);f++){var p=c-u,A=c+u;Za[0]=uo(e,n,i,p),Za[1]=uo(t,r,a,p);var g=Xe(Za,Ja);if(p>=0&&g<h)c=p,h=g;else{eo[0]=uo(e,n,i,A),eo[1]=uo(t,r,a,A);var m=Xe(eo,Ja);A<=1&&m<h?(c=A,h=m):u*=.5}}return l&&(l[0]=uo(e,n,i,c),l[1]=uo(t,r,a,c)),qa(h)}function go(e,t,n,r,i,a,o){for(var s=e,l=t,c=0,u=1/o,h=1;h<=o;h++){var d=h*u,f=uo(e,n,i,d),p=uo(t,r,a,d),A=f-s,g=p-l;c+=Math.sqrt(A*A+g*g),s=f,l=p}return c}var mo=Math.min,vo=Math.max,yo=Math.sin,bo=Math.cos,wo=2*Math.PI,xo=Fe(),_o=Fe(),Co=Fe();function So(e,t,n){if(0!==e.length){for(var r=e[0],i=r[0],a=r[0],o=r[1],s=r[1],l=1;l<e.length;l++)r=e[l],i=mo(i,r[0]),a=vo(a,r[0]),o=mo(o,r[1]),s=vo(s,r[1]);t[0]=i,t[1]=o,n[0]=a,n[1]=s}}function ko(e,t,n,r,i,a){i[0]=mo(e,n),i[1]=mo(t,r),a[0]=vo(e,n),a[1]=vo(t,r)}var Bo=[],Eo=[];function To(e,t,n,r,i,a,o,s,l,c){var u=oo,h=ro,d=u(e,n,i,o,Bo);l[0]=1/0,l[1]=1/0,c[0]=-1/0,c[1]=-1/0;for(var f=0;f<d;f++){var p=h(e,n,i,o,Bo[f]);l[0]=mo(p,l[0]),c[0]=vo(p,c[0])}d=u(t,r,a,s,Eo);for(f=0;f<d;f++){var A=h(t,r,a,s,Eo[f]);l[1]=mo(A,l[1]),c[1]=vo(A,c[1])}l[0]=mo(e,l[0]),c[0]=vo(e,c[0]),l[0]=mo(o,l[0]),c[0]=vo(o,c[0]),l[1]=mo(t,l[1]),c[1]=vo(t,c[1]),l[1]=mo(s,l[1]),c[1]=vo(s,c[1])}function Io(e,t,n,r,i,a,o,s){var l=fo,c=uo,u=vo(mo(l(e,n,i),1),0),h=vo(mo(l(t,r,a),1),0),d=c(e,n,i,u),f=c(t,r,a,h);o[0]=mo(e,i,d),o[1]=mo(t,a,f),s[0]=vo(e,i,d),s[1]=vo(t,a,f)}function Mo(e,t,n,r,i,a,o,s,l){var c=tt,u=nt,h=Math.abs(i-a);if(h%wo<1e-4&&h>1e-4)return s[0]=e-n,s[1]=t-r,l[0]=e+n,void(l[1]=t+r);if(xo[0]=bo(i)*n+e,xo[1]=yo(i)*r+t,_o[0]=bo(a)*n+e,_o[1]=yo(a)*r+t,c(s,xo,_o),u(l,xo,_o),(i%=wo)<0&&(i+=wo),(a%=wo)<0&&(a+=wo),i>a&&!o?a+=wo:i<a&&o&&(i+=wo),o){var d=a;a=i,i=d}for(var f=0;f<a;f+=Math.PI/2)f>i&&(Co[0]=bo(f)*n+e,Co[1]=yo(f)*r+t,c(s,Co,s),u(l,Co,l))}var Fo={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Do=[],Po=[],Oo=[],Lo=[],Ro=[],No=[],Uo=Math.min,Ho=Math.max,jo=Math.cos,Qo=Math.sin,zo=Math.sqrt,Vo=Math.abs,Go=Math.PI,$o=2*Go,qo="undefined"!=typeof Float32Array,Wo=[];function Ko(e){return Math.round(e/Go*1e8)/1e8%2*Go}function Yo(e,t){var n=Ko(e[0]);n<0&&(n+=$o);var r=n-e[0],i=e[1];i+=r,!t&&i-n>=$o?i=n+$o:t&&n-i>=$o?i=n-$o:!t&&n>i?i=n+($o-Ko(n-i)):t&&n<i&&(i=n-($o-Ko(i-n))),e[0]=n,e[1]=i}var Xo=function(){function e(e){this.dpr=1,this._version=0,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}var t;return e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(e,t,n){(n=n||0)>0&&(this._ux=Vo(n/pr/e)||0,this._uy=Vo(n/pr/t)||0)},e.prototype.setDPR=function(e){this.dpr=e},e.prototype.setContext=function(e){this._ctx=e},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._lineDash&&(this._lineDash=null,this._dashOffset=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(e,t){return this.addData(Fo.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},e.prototype.lineTo=function(e,t){var n=Vo(e-this._xi)>this._ux||Vo(t-this._yi)>this._uy||this._len<5;return this.addData(Fo.L,e,t),this._ctx&&n&&(this._needsDash?this._dashedLineTo(e,t):this._ctx.lineTo(e,t)),n&&(this._xi=e,this._yi=t),this},e.prototype.bezierCurveTo=function(e,t,n,r,i,a){return this.addData(Fo.C,e,t,n,r,i,a),this._ctx&&(this._needsDash?this._dashedBezierTo(e,t,n,r,i,a):this._ctx.bezierCurveTo(e,t,n,r,i,a)),this._xi=i,this._yi=a,this},e.prototype.quadraticCurveTo=function(e,t,n,r){return this.addData(Fo.Q,e,t,n,r),this._ctx&&(this._needsDash?this._dashedQuadraticTo(e,t,n,r):this._ctx.quadraticCurveTo(e,t,n,r)),this._xi=n,this._yi=r,this},e.prototype.arc=function(e,t,n,r,i,a){Wo[0]=r,Wo[1]=i,Yo(Wo,a),r=Wo[0];var o=(i=Wo[1])-r;return this.addData(Fo.A,e,t,n,n,r,o,0,a?0:1),this._ctx&&this._ctx.arc(e,t,n,r,i,a),this._xi=jo(i)*n+e,this._yi=Qo(i)*n+t,this},e.prototype.arcTo=function(e,t,n,r,i){return this._ctx&&this._ctx.arcTo(e,t,n,r,i),this},e.prototype.rect=function(e,t,n,r){return this._ctx&&this._ctx.rect(e,t,n,r),this.addData(Fo.R,e,t,n,r),this},e.prototype.closePath=function(){this.addData(Fo.Z);var e=this._ctx,t=this._x0,n=this._y0;return e&&(this._needsDash&&this._dashedLineTo(t,n),e.closePath()),this._xi=t,this._yi=n,this},e.prototype.fill=function(e){e&&e.fill(),this.toStatic()},e.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},e.prototype.setLineDash=function(e){if(e instanceof Array){this._lineDash=e,this._dashIdx=0;for(var t=0,n=0;n<e.length;n++)t+=e[n];this._dashSum=t,this._needsDash=!0}else this._lineDash=null,this._needsDash=!1;return this},e.prototype.setLineDashOffset=function(e){return this._dashOffset=e,this},e.prototype.len=function(){return this._len},e.prototype.setData=function(e){var t=e.length;this.data&&this.data.length===t||!qo||(this.data=new Float32Array(t));for(var n=0;n<t;n++)this.data[n]=e[n];this._len=t},e.prototype.appendPath=function(e){e instanceof Array||(e=[e]);for(var t=e.length,n=0,r=this._len,i=0;i<t;i++)n+=e[i].len();qo&&this.data instanceof Float32Array&&(this.data=new Float32Array(r+n));for(i=0;i<t;i++)for(var a=e[i].data,o=0;o<a.length;o++)this.data[r++]=a[o];this._len=r},e.prototype.addData=function(e,t,n,r,i,a,o,s,l){if(this._saveData){var c=this.data;this._len+arguments.length>c.length&&(this._expandData(),c=this.data);for(var u=0;u<arguments.length;u++)c[this._len++]=arguments[u]}},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t<this._len;t++)e[t]=this.data[t];this.data=e}},e.prototype._dashedLineTo=function(e,t){var n,r,i=this._dashSum,a=this._lineDash,o=this._ctx,s=this._dashOffset,l=this._xi,c=this._yi,u=e-l,h=t-c,d=zo(u*u+h*h),f=l,p=c,A=a.length;for(u/=d,h/=d,s<0&&(s=i+s),f-=(s%=i)*u,p-=s*h;u>0&&f<=e||u<0&&f>=e||0===u&&(h>0&&p<=t||h<0&&p>=t);)f+=u*(n=a[r=this._dashIdx]),p+=h*n,this._dashIdx=(r+1)%A,u>0&&f<l||u<0&&f>l||h>0&&p<c||h<0&&p>c||o[r%2?"moveTo":"lineTo"](u>=0?Uo(f,e):Ho(f,e),h>=0?Uo(p,t):Ho(p,t));u=f-e,h=p-t,this._dashOffset=-zo(u*u+h*h)},e.prototype._dashedBezierTo=function(e,t,n,r,i,a){var o,s,l,c,u,h=this._ctx,d=this._dashSum,f=this._dashOffset,p=this._lineDash,A=this._xi,g=this._yi,m=0,v=this._dashIdx,y=p.length,b=0;for(f<0&&(f=d+f),f%=d,o=0;o<1;o+=.1)s=ro(A,e,n,i,o+.1)-ro(A,e,n,i,o),l=ro(g,t,r,a,o+.1)-ro(g,t,r,a,o),m+=zo(s*s+l*l);for(;v<y&&!((b+=p[v])>f);v++);for(o=(b-f)/m;o<=1;)c=ro(A,e,n,i,o),u=ro(g,t,r,a,o),v%2?h.moveTo(c,u):h.lineTo(c,u),o+=p[v]/m,v=(v+1)%y;v%2!=0&&h.lineTo(i,a),s=i-c,l=a-u,this._dashOffset=-zo(s*s+l*l)},e.prototype._dashedQuadraticTo=function(e,t,n,r){var i=n,a=r;n=(n+2*e)/3,r=(r+2*t)/3,e=(this._xi+2*e)/3,t=(this._yi+2*t)/3,this._dashedBezierTo(e,t,n,r,i,a)},e.prototype.toStatic=function(){if(this._saveData){var e=this.data;e instanceof Array&&(e.length=this._len,qo&&this._len>11&&(this.data=new Float32Array(e)))}},e.prototype.getBoundingRect=function(){Oo[0]=Oo[1]=Ro[0]=Ro[1]=Number.MAX_VALUE,Lo[0]=Lo[1]=No[0]=No[1]=-Number.MAX_VALUE;var e,t=this.data,n=0,r=0,i=0,a=0;for(e=0;e<this._len;){var o=t[e++],s=1===e;switch(s&&(i=n=t[e],a=r=t[e+1]),o){case Fo.M:n=i=t[e++],r=a=t[e++],Ro[0]=i,Ro[1]=a,No[0]=i,No[1]=a;break;case Fo.L:ko(n,r,t[e],t[e+1],Ro,No),n=t[e++],r=t[e++];break;case Fo.C:To(n,r,t[e++],t[e++],t[e++],t[e++],t[e],t[e+1],Ro,No),n=t[e++],r=t[e++];break;case Fo.Q:Io(n,r,t[e++],t[e++],t[e],t[e+1],Ro,No),n=t[e++],r=t[e++];break;case Fo.A:var l=t[e++],c=t[e++],u=t[e++],h=t[e++],d=t[e++],f=t[e++]+d;e+=1;var p=!t[e++];s&&(i=jo(d)*u+l,a=Qo(d)*h+c),Mo(l,c,u,h,d,f,p,Ro,No),n=jo(f)*u+l,r=Qo(f)*h+c;break;case Fo.R:ko(i=n=t[e++],a=r=t[e++],i+t[e++],a+t[e++],Ro,No);break;case Fo.Z:n=i,r=a}tt(Oo,Oo,Ro),nt(Lo,Lo,No)}return 0===e&&(Oo[0]=Oo[1]=Lo[0]=Lo[1]=0),new tr(Oo[0],Oo[1],Lo[0]-Oo[0],Lo[1]-Oo[1])},e.prototype._calculateLength=function(){var e=this.data,t=this._len,n=this._ux,r=this._uy,i=0,a=0,o=0,s=0;this._pathSegLen||(this._pathSegLen=[]);for(var l=this._pathSegLen,c=0,u=0,h=0;h<t;){var d=e[h++],f=1===h;f&&(o=i=e[h],s=a=e[h+1]);var p=-1;switch(d){case Fo.M:i=o=e[h++],a=s=e[h++];break;case Fo.L:var A=e[h++],g=(y=e[h++])-a;(Vo(T=A-i)>n||Vo(g)>r||h===t-1)&&(p=Math.sqrt(T*T+g*g),i=A,a=y);break;case Fo.C:var m=e[h++],v=e[h++],y=(A=e[h++],e[h++]),b=e[h++],w=e[h++];p=co(i,a,m,v,A,y,b,w,10),i=b,a=w;break;case Fo.Q:p=go(i,a,m=e[h++],v=e[h++],A=e[h++],y=e[h++],10),i=A,a=y;break;case Fo.A:var x=e[h++],_=e[h++],C=e[h++],S=e[h++],k=e[h++],B=e[h++],E=B+k;h+=1;e[h++];f&&(o=jo(k)*C+x,s=Qo(k)*S+_),p=Ho(C,S)*Uo($o,Math.abs(B)),i=jo(E)*C+x,a=Qo(E)*S+_;break;case Fo.R:o=i=e[h++],s=a=e[h++],p=2*e[h++]+2*e[h++];break;case Fo.Z:var T=o-i;g=s-a;p=Math.sqrt(T*T+g*g),i=o,a=s}p>=0&&(l[u++]=p,c+=p)}return this._pathLen=c,c},e.prototype.rebuildPath=function(e,t){var n,r,i,a,o,s,l,c,u=this.data,h=this._ux,d=this._uy,f=this._len,p=t<1,A=0,g=0;if(!p||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,c=t*this._pathLen))e:for(var m=0;m<f;){var v=u[m++],y=1===m;switch(y&&(n=i=u[m],r=a=u[m+1]),v){case Fo.M:n=i=u[m++],r=a=u[m++],e.moveTo(i,a);break;case Fo.L:if(o=u[m++],s=u[m++],Vo(o-i)>h||Vo(s-a)>d||m===f-1){if(p){if(A+(Q=l[g++])>c){var b=(c-A)/Q;e.lineTo(i*(1-b)+o*b,a*(1-b)+s*b);break e}A+=Q}e.lineTo(o,s),i=o,a=s}break;case Fo.C:var w=u[m++],x=u[m++],_=u[m++],C=u[m++],S=u[m++],k=u[m++];if(p){if(A+(Q=l[g++])>c){so(i,w,_,S,b=(c-A)/Q,Do),so(a,x,C,k,b,Po),e.bezierCurveTo(Do[1],Po[1],Do[2],Po[2],Do[3],Po[3]);break e}A+=Q}e.bezierCurveTo(w,x,_,C,S,k),i=S,a=k;break;case Fo.Q:w=u[m++],x=u[m++],_=u[m++],C=u[m++];if(p){if(A+(Q=l[g++])>c){po(i,w,_,b=(c-A)/Q,Do),po(a,x,C,b,Po),e.quadraticCurveTo(Do[1],Po[1],Do[2],Po[2]);break e}A+=Q}e.quadraticCurveTo(w,x,_,C),i=_,a=C;break;case Fo.A:var B=u[m++],E=u[m++],T=u[m++],I=u[m++],M=u[m++],F=u[m++],D=u[m++],P=!u[m++],O=T>I?T:I,L=Vo(T-I)>.001,R=M+F,N=!1;if(p)A+(Q=l[g++])>c&&(R=M+F*(c-A)/Q,N=!0),A+=Q;if(L&&e.ellipse?e.ellipse(B,E,T,I,D,M,R,P):e.arc(B,E,O,M,R,P),N)break e;y&&(n=jo(M)*T+B,r=Qo(M)*I+E),i=jo(R)*T+B,a=Qo(R)*I+E;break;case Fo.R:n=i=u[m],r=a=u[m+1],o=u[m++],s=u[m++];var U=u[m++],H=u[m++];if(p){if(A+(Q=l[g++])>c){var j=c-A;e.moveTo(o,s),e.lineTo(o+Uo(j,U),s),(j-=U)>0&&e.lineTo(o+U,s+Uo(j,H)),(j-=H)>0&&e.lineTo(o+Ho(U-j,0),s+H),(j-=U)>0&&e.lineTo(o,s+Ho(H-j,0));break e}A+=Q}e.rect(o,s,U,H);break;case Fo.Z:if(p){var Q;if(A+(Q=l[g++])>c){b=(c-A)/Q;e.lineTo(i*(1-b)+n*b,a*(1-b)+r*b);break e}A+=Q}e.closePath(),i=n,a=r}}},e.CMD=Fo,e.initDefaultProps=((t=e.prototype)._saveData=!0,t._needsDash=!1,t._dashOffset=0,t._dashIdx=0,t._dashSum=0,t._ux=0,void(t._uy=0)),e}();function Jo(e,t,n,r,i,a,o){if(0===i)return!1;var s=i,l=0;if(o>t+s&&o>r+s||o<t-s&&o<r-s||a>e+s&&a>n+s||a<e-s&&a<n-s)return!1;if(e===n)return Math.abs(a-e)<=s/2;var c=(l=(t-r)/(e-n))*a-o+(e*r-n*t)/(e-n);return c*c/(l*l+1)<=s/2*s/2}function Zo(e,t,n,r,i,a,o,s,l,c,u){if(0===l)return!1;var h=l;return!(u>t+h&&u>r+h&&u>a+h&&u>s+h||u<t-h&&u<r-h&&u<a-h&&u<s-h||c>e+h&&c>n+h&&c>i+h&&c>o+h||c<e-h&&c<n-h&&c<i-h&&c<o-h)&&lo(e,t,n,r,i,a,o,s,c,u,null)<=h/2}function es(e,t,n,r,i,a,o,s,l){if(0===o)return!1;var c=o;return!(l>t+c&&l>r+c&&l>a+c||l<t-c&&l<r-c&&l<a-c||s>e+c&&s>n+c&&s>i+c||s<e-c&&s<n-c&&s<i-c)&&Ao(e,t,n,r,i,a,s,l,null)<=c/2}var ts=2*Math.PI;function ns(e){return(e%=ts)<0&&(e+=ts),e}var rs=2*Math.PI;function is(e,t,n,r,i,a,o,s,l){if(0===o)return!1;var c=o;s-=e,l-=t;var u=Math.sqrt(s*s+l*l);if(u-c>n||u+c<n)return!1;if(Math.abs(r-i)%rs<1e-4)return!0;if(a){var h=r;r=ns(i),i=ns(h)}else r=ns(r),i=ns(i);r>i&&(i+=rs);var d=Math.atan2(l,s);return d<0&&(d+=rs),d>=r&&d<=i||d+rs>=r&&d+rs<=i}function as(e,t,n,r,i,a){if(a>t&&a>r||a<t&&a<r)return 0;if(r===t)return 0;var o=(a-t)/(r-t),s=r<t?1:-1;1!==o&&0!==o||(s=r<t?.5:-.5);var l=o*(n-e)+e;return l===i?1/0:l>i?s:0}var os=Xo.CMD,ss=2*Math.PI,ls=1e-4;var cs=[-1,-1,-1],us=[-1,-1];function hs(e,t,n,r,i,a,o,s,l,c){if(c>t&&c>r&&c>a&&c>s||c<t&&c<r&&c<a&&c<s)return 0;var u,h=ao(t,r,a,s,c,cs);if(0===h)return 0;for(var d=0,f=-1,p=void 0,A=void 0,g=0;g<h;g++){var m=cs[g],v=0===m||1===m?.5:1;ro(e,n,i,o,m)<l||(f<0&&(f=oo(t,r,a,s,us),us[1]<us[0]&&f>1&&(void 0,u=us[0],us[0]=us[1],us[1]=u),p=ro(t,r,a,s,us[0]),f>1&&(A=ro(t,r,a,s,us[1]))),2===f?m<us[0]?d+=p<t?v:-v:m<us[1]?d+=A<p?v:-v:d+=s<A?v:-v:m<us[0]?d+=p<t?v:-v:d+=s<p?v:-v)}return d}function ds(e,t,n,r,i,a,o,s){if(s>t&&s>r&&s>a||s<t&&s<r&&s<a)return 0;var l=function(e,t,n,r,i){var a=e-2*t+n,o=2*(t-e),s=e-r,l=0;if(to(a))no(o)&&(u=-s/o)>=0&&u<=1&&(i[l++]=u);else{var c=o*o-4*a*s;if(to(c))(u=-o/(2*a))>=0&&u<=1&&(i[l++]=u);else if(c>0){var u,h=qa(c),d=(-o-h)/(2*a);(u=(-o+h)/(2*a))>=0&&u<=1&&(i[l++]=u),d>=0&&d<=1&&(i[l++]=d)}}return l}(t,r,a,s,cs);if(0===l)return 0;var c=fo(t,r,a);if(c>=0&&c<=1){for(var u=0,h=uo(t,r,a,c),d=0;d<l;d++){var f=0===cs[d]||1===cs[d]?.5:1;uo(e,n,i,cs[d])<o||(cs[d]<c?u+=h<t?f:-f:u+=a<h?f:-f)}return u}f=0===cs[0]||1===cs[0]?.5:1;return uo(e,n,i,cs[0])<o?0:a<t?f:-f}function fs(e,t,n,r,i,a,o,s){if((s-=t)>n||s<-n)return 0;var l=Math.sqrt(n*n-s*s);cs[0]=-l,cs[1]=l;var c=Math.abs(r-i);if(c<1e-4)return 0;if(c>=ss-1e-4){r=0,i=ss;var u=a?1:-1;return o>=cs[0]+e&&o<=cs[1]+e?u:0}if(r>i){var h=r;r=i,i=h}r<0&&(r+=ss,i+=ss);for(var d=0,f=0;f<2;f++){var p=cs[f];if(p+e>o){var A=Math.atan2(s,p);u=a?1:-1;A<0&&(A=ss+A),(A>=r&&A<=i||A+ss>=r&&A+ss<=i)&&(A>Math.PI/2&&A<1.5*Math.PI&&(u=-u),d+=u)}}return d}function ps(e,t,n,r,i){for(var a,o,s,l,c=e.data,u=e.len(),h=0,d=0,f=0,p=0,A=0,g=0;g<u;){var m=c[g++],v=1===g;switch(m===os.M&&g>1&&(n||(h+=as(d,f,p,A,r,i))),v&&(p=d=c[g],A=f=c[g+1]),m){case os.M:d=p=c[g++],f=A=c[g++];break;case os.L:if(n){if(Jo(d,f,c[g],c[g+1],t,r,i))return!0}else h+=as(d,f,c[g],c[g+1],r,i)||0;d=c[g++],f=c[g++];break;case os.C:if(n){if(Zo(d,f,c[g++],c[g++],c[g++],c[g++],c[g],c[g+1],t,r,i))return!0}else h+=hs(d,f,c[g++],c[g++],c[g++],c[g++],c[g],c[g+1],r,i)||0;d=c[g++],f=c[g++];break;case os.Q:if(n){if(es(d,f,c[g++],c[g++],c[g],c[g+1],t,r,i))return!0}else h+=ds(d,f,c[g++],c[g++],c[g],c[g+1],r,i)||0;d=c[g++],f=c[g++];break;case os.A:var y=c[g++],b=c[g++],w=c[g++],x=c[g++],_=c[g++],C=c[g++];g+=1;var S=!!(1-c[g++]);a=Math.cos(_)*w+y,o=Math.sin(_)*x+b,v?(p=a,A=o):h+=as(d,f,a,o,r,i);var k=(r-y)*x/w+y;if(n){if(is(y,b,x,_,_+C,S,t,k,i))return!0}else h+=fs(y,b,x,_,_+C,S,k,i);d=Math.cos(_+C)*w+y,f=Math.sin(_+C)*x+b;break;case os.R:if(p=d=c[g++],A=f=c[g++],a=p+c[g++],o=A+c[g++],n){if(Jo(p,A,a,A,t,r,i)||Jo(a,A,a,o,t,r,i)||Jo(a,o,p,o,t,r,i)||Jo(p,o,p,A,t,r,i))return!0}else h+=as(a,A,a,o,r,i),h+=as(p,o,p,A,r,i);break;case os.Z:if(n){if(Jo(d,f,p,A,t,r,i))return!0}else h+=as(d,f,p,A,r,i);d=p,f=A}}return n||(s=f,l=A,Math.abs(s-l)<ls)||(h+=as(d,f,p,A,r,i)||0),0!==h}var As=j({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Ua),gs={style:j({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Ha.style)},ms=["x","y","rotation","scaleX","scaleY","originX","originY","invisible","culling","z","z2","zlevel","parent"],vs=function(e){function t(t){return e.call(this,t)||this}var n;return Me(t,e),t.prototype.update=function(){var n=this;e.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(e){n.buildPath(e,n.shape)}),i.silent=!0;var a=i.style;for(var o in r)a[o]!==r[o]&&(a[o]=r[o]);a.fill=r.fill?r.decal:null,a.decal=null,a.shadowColor=null,r.strokeFirst&&(a.stroke=null);for(var s=0;s<ms.length;++s)i[ms[s]]=this[ms[s]];i.__dirty|=Cr.REDARAW_BIT}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(t){var n=J(t);this.shape=this.getDefaultShape();var r=this.getDefaultStyle();r&&this.useStyle(r);for(var i=0;i<n.length;i++){var a=n[i],o=t[a];"style"===a?this.style?H(this.style,o):this.useStyle(o):"shape"===a?H(this.shape,o):e.prototype.attrKV.call(this,a,o)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var e=this.style.fill;if("none"!==e){if(re(e)){var t=En(e,0);return t>.5?"#333":t>.2?"#eee":"#ccc"}if(e)return"#ccc"}return"#333"},t.prototype.getInsideTextStroke=function(e){var t=this.style.fill;if(re(t)){var n=this.__zr;if(!(!n||!n.isDarkMode())===En(e,0)<Ar)return t}},t.prototype.buildPath=function(e,t,n){},t.prototype.pathUpdated=function(){this.__dirty&=~t.SHAPE_CHANGED_BIT},t.prototype.createPathProxy=function(){this.path=new Xo(!1)},t.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return!(null==t||"none"===t||!(e.lineWidth>0))},t.prototype.hasFill=function(){var e=this.style.fill;return null!=e&&"none"!==e},t.prototype.getBoundingRect=function(){var e=this._rect,n=this.style,r=!e;if(r){var i=!1;this.path||(i=!0,this.createPathProxy());var a=this.path;(i||this.__dirty&t.SHAPE_CHANGED_BIT)&&(a.beginPath(),this.buildPath(a,this.shape,!1),this.pathUpdated()),e=a.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectWithStroke||(this._rectWithStroke=e.clone());if(this.__dirty||r){o.copy(e);var s=n.strokeNoScale?this.getLineScale():1,l=n.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;l=Math.max(l,null==c?4:c)}s>1e-10&&(o.width+=l/s,o.height+=l/s,o.x-=l/s/2,o.y-=l/s/2)}return o}return e},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect(),i=this.style;if(e=n[0],t=n[1],r.contain(e,t)){var a=this.path;if(this.hasStroke()){var o=i.lineWidth,s=i.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(o=Math.max(o,this.strokeContainThreshold)),function(e,t,n,r){return ps(e,t,!0,n,r)}(a,o/s,e,t)))return!0}if(this.hasFill())return function(e,t,n){return ps(e,0,!1,t,n)}(a,e,t)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=t.SHAPE_CHANGED_BIT,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate("shape",e)},t.prototype.updateDuringAnimation=function(e){"style"===e?this.dirtyStyle():"shape"===e?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(t,n){"shape"===t?this.setShape(n):e.prototype.attrKV.call(this,t,n)},t.prototype.setShape=function(e,t){var n=this.shape;return n||(n=this.shape={}),"string"==typeof e?n[e]=t:H(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&t.SHAPE_CHANGED_BIT)},t.prototype.createStyle=function(e){return Be(As,e)},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=H({},this.shape))},t.prototype._applyStateObj=function(t,n,r,i,a,o){e.prototype._applyStateObj.call(this,t,n,r,i,a,o);var s,l=!(n&&i);if(n&&n.shape?a?i?s=n.shape:H(s=H({},r.shape),n.shape):H(s=H({},i?this.shape:r.shape),n.shape):l&&(s=r.shape),s)if(a){this.shape=H({},this.shape);for(var c={},u=J(s),h=0;h<u.length;h++){var d=u[h];"object"==typeof s[d]?this.shape[d]=s[d]:c[d]=s[d]}this._transitionState(t,{shape:c},o)}else this.shape=s,this.dirtyShape()},t.prototype._mergeStates=function(t){for(var n,r=e.prototype._mergeStates.call(this,t),i=0;i<t.length;i++){var a=t[i];a.shape&&(n=n||{},this._mergeStyle(n,a.shape))}return n&&(r.shape=n),r},t.prototype.getAnimationStyleProps=function(){return gs},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var n=function(t){function n(n){var r=t.call(this,n)||this;return e.init&&e.init.call(r,n),r}return Me(n,t),n.prototype.getDefaultStyle=function(){return R(e.style)},n.prototype.getDefaultShape=function(){return R(e.shape)},n}(t);for(var r in e)"function"==typeof e[r]&&(n.prototype[r]=e[r]);return n},t.SHAPE_CHANGED_BIT=4,t.initDefaultProps=((n=t.prototype).type="path",n.strokeContainThreshold=5,n.segmentIgnoreThreshold=0,n.subPixelOptimize=!1,n.autoBatch=!1,void(n.__dirty=Cr.REDARAW_BIT|Ga.STYLE_CHANGED_BIT|t.SHAPE_CHANGED_BIT)),t}(Ga),ys=j({strokeFirst:!0,font:rr,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},As),bs=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Me(t,e),t.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return null!=t&&"none"!==t&&e.lineWidth>0},t.prototype.hasFill=function(){var e=this.style.fill;return null!=e&&"none"!==e},t.prototype.createStyle=function(e){return Be(ys,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e=this.style;if(!this._rect){var t=e.text;null!=t?t+="":t="";var n=sr(t,e.font,e.textAlign,e.textBaseline);if(n.x+=e.x||0,n.y+=e.y||0,this.hasStroke()){var r=e.lineWidth;n.x-=r/2,n.y-=r/2,n.width+=r,n.height+=r}this._rect=n}return this._rect},t.initDefaultProps=void(t.prototype.dirtyRectTolerance=10),t}(Ga);bs.prototype.type="tspan";var ws=bs,xs=j({x:0,y:0},Ua),_s={style:j({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Ha.style)};var Cs=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Me(t,e),t.prototype.createStyle=function(e){return Be(xs,e)},t.prototype._getSize=function(e){var t=this.style,n=t[e];if(null!=n)return n;var r,i=(r=t.image)&&"string"!=typeof r&&r.width&&r.height?t.image:this.__image;if(!i)return 0;var a="width"===e?"height":"width",o=t[a];return null==o?i[e]:i[e]/i[a]*o},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return _s},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new tr(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}(Ga);Cs.prototype.type="image";var Ss=Cs;var ks=Math.round;function Bs(e,t,n){if(t){var r=t.x1,i=t.x2,a=t.y1,o=t.y2;e.x1=r,e.x2=i,e.y1=a,e.y2=o;var s=n&&n.lineWidth;return s?(ks(2*r)===ks(2*i)&&(e.x1=e.x2=Ts(r,s,!0)),ks(2*a)===ks(2*o)&&(e.y1=e.y2=Ts(a,s,!0)),e):e}}function Es(e,t,n){if(t){var r=t.x,i=t.y,a=t.width,o=t.height;e.x=r,e.y=i,e.width=a,e.height=o;var s=n&&n.lineWidth;return s?(e.x=Ts(r,s,!0),e.y=Ts(i,s,!0),e.width=Math.max(Ts(r+a,s,!1)-e.x,0===a?0:1),e.height=Math.max(Ts(i+o,s,!1)-e.y,0===o?0:1),e):e}}function Ts(e,t,n){if(!t)return e;var r=ks(2*e);return(r+ks(t))%2==0?r/2:(r+(n?1:-1))/2}var Is=function(){return function(){this.x=0,this.y=0,this.width=0,this.height=0}}(),Ms={},Fs=function(e){function t(t){return e.call(this,t)||this}return Me(t,e),t.prototype.getDefaultShape=function(){return new Is},t.prototype.buildPath=function(e,t){var n,r,i,a;if(this.subPixelOptimize){var o=Es(Ms,t,this.style);n=o.x,r=o.y,i=o.width,a=o.height,o.r=t.r,t=o}else n=t.x,r=t.y,i=t.width,a=t.height;t.r?function(e,t){var n,r,i,a,o,s=t.x,l=t.y,c=t.width,u=t.height,h=t.r;c<0&&(s+=c,c=-c),u<0&&(l+=u,u=-u),"number"==typeof h?n=r=i=a=h:h instanceof Array?1===h.length?n=r=i=a=h[0]:2===h.length?(n=i=h[0],r=a=h[1]):3===h.length?(n=h[0],r=a=h[1],i=h[2]):(n=h[0],r=h[1],i=h[2],a=h[3]):n=r=i=a=0,n+r>c&&(n*=c/(o=n+r),r*=c/o),i+a>c&&(i*=c/(o=i+a),a*=c/o),r+i>u&&(r*=u/(o=r+i),i*=u/o),n+a>u&&(n*=u/(o=n+a),a*=u/o),e.moveTo(s+n,l),e.lineTo(s+c-r,l),0!==r&&e.arc(s+c-r,l+r,r,-Math.PI/2,0),e.lineTo(s+c,l+u-i),0!==i&&e.arc(s+c-i,l+u-i,i,0,Math.PI/2),e.lineTo(s+a,l+u),0!==a&&e.arc(s+a,l+u-a,a,Math.PI/2,Math.PI),e.lineTo(s,l+n),0!==n&&e.arc(s+n,l+n,n,Math.PI,1.5*Math.PI)}(e,t):e.rect(n,r,i,a)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(vs);Fs.prototype.type="rect";var Ds=Fs,Ps={fill:"#000"},Os={style:j({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},Ha.style)},Ls=function(e){function t(t){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=Ps,n.attr(t),n}return Me(t,e),t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){this.styleChanged()&&this._updateSubTexts();for(var t=0;t<this._children.length;t++){var n=this._children[t];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}var r=this.attachedTransform;if(r){r.updateTransform();var i=r.transform;i?(this.transform=this.transform||[],Rt(this.transform,i)):this.transform=null}else e.prototype.update.call(this)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),this.attachedTransform?this.attachedTransform.getComputedTransform():e.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){var e;this._childCursor=0,Us(e=this.style),q(e.rich,Us),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=t},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var e=new tr(0,0,0,0),t=this._children,n=[],r=null,i=0;i<t.length;i++){var a=t[i],o=a.getBoundingRect(),s=a.getLocalTransform(n);s?(e.copy(o),e.applyTransform(s),(r=r||e.clone()).union(e)):(r=r||o.clone()).union(o)}this._rect=r||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||Ps},t.prototype.setTextContent=function(e){throw new Error("Can't attach text on another text")},t.prototype._mergeStyle=function(e,t){if(!t)return e;var n=t.rich,r=e.rich||n&&{};return H(e,t),n&&r?(this._mergeRich(r,n),e.rich=r):r&&(e.rich=r),e},t.prototype._mergeRich=function(e,t){for(var n=J(t),r=0;r<n.length;r++){var i=n[r];e[i]=e[i]||{},H(e[i],t[i])}},t.prototype.getAnimationStyleProps=function(){return Os},t.prototype._getOrCreateChild=function(e){var t=this._children[this._childCursor];return t&&t instanceof e||(t=new e),this._children[this._childCursor++]=t,t.__zr=this.__zr,t.parent=this,t},t.prototype._updatePlainTexts=function(){var e=this.style,t=e.font||rr,n=e.padding,r=function(e,t){null!=e&&(e+="");var n,r=t.overflow,i=t.padding,a=t.font,o="truncate"===r,s=ur(a),l=Ae(t.lineHeight,s),c="truncate"===t.lineOverflow,u=t.width,h=(n=null!=u&&"break"===r||"breakAll"===r?e?Ra(e,t.font,u,"breakAll"===r,0).lines:[]:e?e.split("\n"):[]).length*l,d=Ae(t.height,h);if(h>d&&c){var f=Math.floor(d/l);n=n.slice(0,f)}var p=d,A=u;if(i&&(p+=i[0]+i[2],null!=A&&(A+=i[1]+i[3])),e&&o&&null!=A)for(var g=Ea(u,a,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),m=0;m<n.length;m++)n[m]=Ta(n[m],g);if(null==u){var v=0;for(m=0;m<n.length;m++)v=Math.max(ar(n[m],a),v);u=v}return{lines:n,height:d,outerHeight:p,lineHeight:l,calculatedLineHeight:s,contentHeight:h,width:u}}(Qs(e),e),i=zs(e),a=!!e.backgroundColor,o=r.outerHeight,s=r.lines,l=r.lineHeight,c=this._defaultStyle,u=e.x||0,h=e.y||0,d=e.align||c.align||"left",f=e.verticalAlign||c.verticalAlign||"top",p=u,A=cr(h,r.contentHeight,f);if(i||n){var g=r.width;n&&(g+=n[1]+n[3]);var m=lr(u,g,d),v=cr(h,o,f);i&&this._renderBackground(e,e,m,v,g,o)}A+=l/2,n&&(p=js(u,d,n),"top"===f?A+=n[0]:"bottom"===f&&(A-=n[2]));for(var y,b=0,w=!1,x=(null==(y="fill"in e?e.fill:(w=!0,c.fill))||"none"===y?null:y.image||y.colorStops?"#000":y),_=(Hs("stroke"in e?e.stroke:a||c.autoStroke&&!w?null:(b=2,c.stroke))),C=e.textShadowBlur>0,S=null!=e.width&&("truncate"===e.overflow||"break"===e.overflow||"breakAll"===e.overflow),k=r.calculatedLineHeight,B=0;B<s.length;B++){var E=this._getOrCreateChild(ws),T=E.createStyle();E.useStyle(T),T.text=s[B],T.x=p,T.y=A,d&&(T.textAlign=d),T.textBaseline="middle",T.opacity=e.opacity,T.strokeFirst=!0,C&&(T.shadowBlur=e.textShadowBlur||0,T.shadowColor=e.textShadowColor||"transparent",T.shadowOffsetX=e.textShadowOffsetX||0,T.shadowOffsetY=e.textShadowOffsetY||0),_&&(T.stroke=_,T.lineWidth=e.lineWidth||b,T.lineDash=e.lineDash,T.lineDashOffset=e.lineDashOffset||0),x&&(T.fill=x),T.font=t,A+=l,S&&E.setBoundingRect(new tr(lr(T.x,e.width,T.textAlign),cr(T.y,k,T.textBaseline),e.width,k))}},t.prototype._updateRichTexts=function(){var e=this.style,t=function(e,t){var n=new Da;if(null!=e&&(e+=""),!e)return n;for(var r,i=t.width,a=t.height,o=t.overflow,s="break"!==o&&"breakAll"!==o||null==i?null:{width:i,accumWidth:0,breakAll:"breakAll"===o},l=ka.lastIndex=0;null!=(r=ka.exec(e));){var c=r.index;c>l&&Pa(n,e.substring(l,c),t,s),Pa(n,r[2],t,s,r[1]),l=ka.lastIndex}l<e.length&&Pa(n,e.substring(l,e.length),t,s);var u=[],h=0,d=0,f=t.padding,p="truncate"===o,A="truncate"===t.lineOverflow;function g(e,t,n){e.width=t,e.lineHeight=n,h+=n,d=Math.max(d,t)}e:for(var m=0;m<n.lines.length;m++){for(var v=n.lines[m],y=0,b=0,w=0;w<v.tokens.length;w++){var x=(F=v.tokens[w]).styleName&&t.rich[F.styleName]||{},_=F.textPadding=x.padding,C=_?_[1]+_[3]:0,S=F.font=x.font||t.font;F.contentHeight=ur(S);var k=Ae(x.height,F.contentHeight);if(F.innerHeight=k,_&&(k+=_[0]+_[2]),F.height=k,F.lineHeight=ge(x.lineHeight,t.lineHeight,k),F.align=x&&x.align||t.align,F.verticalAlign=x&&x.verticalAlign||"middle",A&&null!=a&&h+F.lineHeight>a){w>0?(v.tokens=v.tokens.slice(0,w),g(v,b,y),n.lines=n.lines.slice(0,m+1)):n.lines=n.lines.slice(0,m);break e}var B=x.width,E=null==B||"auto"===B;if("string"==typeof B&&"%"===B.charAt(B.length-1))F.percentWidth=B,u.push(F),F.contentWidth=ar(F.text,S);else{if(E){var T=x.backgroundColor,I=T&&T.image;I&&Sa(I=xa(I))&&(F.width=Math.max(F.width,I.width*k/I.height))}var M=p&&null!=i?i-b:null;null!=M&&M<F.width?!E||M<C?(F.text="",F.width=F.contentWidth=0):(F.text=Ba(F.text,M-C,S,t.ellipsis,{minChar:t.truncateMinChar}),F.width=F.contentWidth=ar(F.text,S)):F.contentWidth=ar(F.text,S)}F.width+=C,b+=F.width,x&&(y=Math.max(y,F.lineHeight))}g(v,b,y)}for(n.outerWidth=n.width=Ae(i,d),n.outerHeight=n.height=Ae(a,h),n.contentHeight=h,n.contentWidth=d,f&&(n.outerWidth+=f[1]+f[3],n.outerHeight+=f[0]+f[2]),m=0;m<u.length;m++){var F,D=(F=u[m]).percentWidth;F.width=parseInt(D,10)/100*n.width}return n}(Qs(e),e),n=t.width,r=t.outerWidth,i=t.outerHeight,a=e.padding,o=e.x||0,s=e.y||0,l=this._defaultStyle,c=e.align||l.align,u=e.verticalAlign||l.verticalAlign,h=lr(o,r,c),d=cr(s,i,u),f=h,p=d;a&&(f+=a[3],p+=a[0]);var A=f+n;zs(e)&&this._renderBackground(e,e,h,d,r,i);for(var g=!!e.backgroundColor,m=0;m<t.lines.length;m++){for(var v=t.lines[m],y=v.tokens,b=y.length,w=v.lineHeight,x=v.width,_=0,C=f,S=A,k=b-1,B=void 0;_<b&&(!(B=y[_]).align||"left"===B.align);)this._placeToken(B,e,w,p,C,"left",g),x-=B.width,C+=B.width,_++;for(;k>=0&&"right"===(B=y[k]).align;)this._placeToken(B,e,w,p,S,"right",g),x-=B.width,S-=B.width,k--;for(C+=(n-(C-f)-(A-S)-x)/2;_<=k;)B=y[_],this._placeToken(B,e,w,p,C+B.width/2,"center",g),C+=B.width,_++;p+=w}},t.prototype._placeToken=function(e,t,n,r,i,a,o){var s=t.rich[e.styleName]||{};s.text=e.text;var l=e.verticalAlign,c=r+n/2;"top"===l?c=r+e.height/2:"bottom"===l&&(c=r+n-e.height/2),!e.isLineHolder&&zs(s)&&this._renderBackground(s,t,"right"===a?i-e.width:"center"===a?i-e.width/2:i,c-e.height/2,e.width,e.height);var u=!!s.backgroundColor,h=e.textPadding;h&&(i=js(i,a,h),c-=e.height/2-h[0]-e.innerHeight/2);var d=this._getOrCreateChild(ws),f=d.createStyle();d.useStyle(f);var p=this._defaultStyle,A=!1,g=0,m=Hs("fill"in s?s.fill:"fill"in t?t.fill:(A=!0,p.fill)),v=Hs("stroke"in s?s.stroke:"stroke"in t?t.stroke:u||o||p.autoStroke&&!A?null:(g=2,p.stroke)),y=s.textShadowBlur>0||t.textShadowBlur>0;f.text=e.text,f.x=i,f.y=c,y&&(f.shadowBlur=s.textShadowBlur||t.textShadowBlur||0,f.shadowColor=s.textShadowColor||t.textShadowColor||"transparent",f.shadowOffsetX=s.textShadowOffsetX||t.textShadowOffsetX||0,f.shadowOffsetY=s.textShadowOffsetY||t.textShadowOffsetY||0),f.textAlign=a,f.textBaseline="middle",f.font=e.font||rr,f.opacity=ge(s.opacity,t.opacity,1),v&&(f.lineWidth=ge(s.lineWidth,t.lineWidth,g),f.lineDash=Ae(s.lineDash,t.lineDash),f.lineDashOffset=t.lineDashOffset||0,f.stroke=v),m&&(f.fill=m);var b=e.contentWidth,w=e.contentHeight;d.setBoundingRect(new tr(lr(f.x,b,f.textAlign),cr(f.y,w,f.textBaseline),b,w))},t.prototype._renderBackground=function(e,t,n,r,i,a){var o,s,l,c=e.backgroundColor,u=e.borderWidth,h=e.borderColor,d=re(c),f=e.borderRadius,p=this;if(d||u&&h){(o=this._getOrCreateChild(Ds)).useStyle(o.createStyle()),o.style.fill=null;var A=o.shape;A.x=n,A.y=r,A.width=i,A.height=a,A.r=f,o.dirtyShape()}if(d)(l=o.style).fill=c||null,l.fillOpacity=Ae(e.fillOpacity,1);else if(c&&c.image){(s=this._getOrCreateChild(Ss)).onload=function(){p.dirtyStyle()};var g=s.style;g.image=c.image,g.x=n,g.y=r,g.width=i,g.height=a}u&&h&&((l=o.style).lineWidth=u,l.stroke=h,l.strokeOpacity=Ae(e.strokeOpacity,1),l.lineDash=e.borderDash,l.lineDashOffset=e.borderDashOffset||0,o.strokeContainThreshold=0,o.hasFill()&&o.hasStroke()&&(l.strokeFirst=!0,l.lineWidth*=2));var m=(o||s).style;m.shadowBlur=e.shadowBlur||0,m.shadowColor=e.shadowColor||"transparent",m.shadowOffsetX=e.shadowOffsetX||0,m.shadowOffsetY=e.shadowOffsetY||0,m.opacity=ge(e.opacity,t.opacity,1)},t.makeFont=function(e){var t="";if(e.fontSize||e.fontFamily||e.fontWeight){var n="";n="string"!=typeof e.fontSize||-1===e.fontSize.indexOf("px")&&-1===e.fontSize.indexOf("rem")&&-1===e.fontSize.indexOf("em")?isNaN(+e.fontSize)?"12px":e.fontSize+"px":e.fontSize,t=[e.fontStyle,e.fontWeight,n,e.fontFamily||"sans-serif"].join(" ")}return t&&be(t)||e.textFont||e.font},t}(Ga),Rs={left:!0,right:1,center:1},Ns={top:1,bottom:1,middle:1};function Us(e){if(e){e.font=Ls.makeFont(e);var t=e.align;"middle"===t&&(t="center"),e.align=null==t||Rs[t]?t:"left";var n=e.verticalAlign;"center"===n&&(n="middle"),e.verticalAlign=null==n||Ns[n]?n:"top",e.padding&&(e.padding=ve(e.padding))}}function Hs(e,t){return null==e||t<=0||"transparent"===e||"none"===e?null:e.image||e.colorStops?"#000":e}function js(e,t,n){return"right"===t?e-n[1]:"center"===t?e+n[3]/2-n[1]/2:e+n[3]}function Qs(e){var t=e.text;return null!=t&&(t+=""),t}function zs(e){return!!(e.backgroundColor||e.borderWidth&&e.borderColor)}var Vs=Ls,Gs=Zi(),$s=1,qs={},Ws=Zi(),Ks=0,Ys=1,Xs=2,Js=["emphasis","blur","select"],Zs=["normal","emphasis","blur","select"],el=10,tl=9,nl="highlight",rl="downplay",il="select",al="unselect",ol="toggleSelect";function sl(e){return null!=e&&"none"!==e}var ll=new rn(100);function cl(e){if("string"!=typeof e)return e;var t=ll.get(e);return t||(t=yn(e,-.1),ll.put(e,t)),t}function ul(e,t,n){e.onHoverStateChange&&(e.hoverState||0)!==n&&e.onHoverStateChange(t),e.hoverState=n}function hl(e){ul(e,"emphasis",Xs)}function dl(e){e.hoverState===Xs&&ul(e,"normal",Ks)}function fl(e){ul(e,"blur",Ys)}function pl(e){e.hoverState===Ys&&ul(e,"normal",Ks)}function Al(e){e.selected=!0}function gl(e){e.selected=!1}function ml(e,t,n){t(e,n)}function vl(e,t,n){ml(e,t,n),e.isGroup&&e.traverse(function(e){ml(e,t,n)})}function yl(e,t){switch(t){case"emphasis":e.hoverState=Xs;break;case"normal":e.hoverState=Ks;break;case"blur":e.hoverState=Ys;break;case"select":e.selected=!0}}function bl(e,t){var n=this.states[e];if(this.style){if("emphasis"===e)return function(e,t,n,r){var i=n&&z(n,"select")>=0,a=!1;if(e instanceof vs){var o=Ws(e),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(sl(s)||sl(l)){var c=(r=r||{}).style||{};!sl(c.fill)&&sl(s)?(a=!0,r=H({},r),(c=H({},c)).fill=cl(s)):!sl(c.stroke)&&sl(l)&&(a||(r=H({},r),c=H({},c)),c.stroke=cl(l)),r.style=c}}if(r&&null==r.z2){a||(r=H({},r));var u=e.z2EmphasisLift;r.z2=e.z2+(null!=u?u:el)}return r}(this,0,t,n);if("blur"===e)return function(e,t,n){var r=z(e.currentStates,t)>=0,i=e.style.opacity,a=r?null:function(e,t,n,r){for(var i=e.style,a={},o=0;o<t.length;o++){var s=t[o],l=i[s];a[s]=null==l?r&&r[s]:l}for(o=0;o<e.animators.length;o++){var c=e.animators[o];c.__fromStateTransition&&c.__fromStateTransition.indexOf(n)<0&&"style"===c.targetName&&c.saveFinalToTarget(a,t)}return a}(e,["opacity"],t,{opacity:1}),o=(n=n||{}).style||{};return null==o.opacity&&(n=H({},n),o=H({opacity:r?i:.1*a.opacity},o),n.style=o),n}(this,e,n);if("select"===e)return function(e,t,n){if(n&&null==n.z2){n=H({},n);var r=e.z2SelectLift;n.z2=e.z2+(null!=r?r:tl)}return n}(this,0,n)}return n}function wl(e){e.stateProxy=bl;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=bl),n&&(n.stateProxy=bl)}function xl(e,t){e.__highByOuter|=1<<(t||0),vl(e,hl)}function _l(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&vl(e,dl)}function Cl(e){vl(e,fl)}function Sl(e){vl(e,pl)}function kl(e){vl(e,Al)}function Bl(e){vl(e,gl)}function El(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function Tl(e,t,n,r,i){var a=r.getModel();function o(e,t){for(var n=0;n<t.length;n++){var r=e.getItemGraphicEl(t[n]);r&&Sl(r)}}if(n=n||"coordinateSystem",i){if(null!=e&&t&&"none"!==t){var s=a.getSeriesByIndex(e),l=s.coordinateSystem;l&&l.master&&(l=l.master);var c=[];a.eachSeries(function(e){var i=s===e,a=e.coordinateSystem;if(a&&a.master&&(a=a.master),!("series"===n&&!i||"coordinateSystem"===n&&!(a&&l?a===l:i)||"series"===t&&i)){if(r.getViewOfSeriesModel(e).group.traverse(function(e){fl(e)}),$(t))o(e.getData(),t);else if(oe(t))for(var u=J(t),h=0;h<u.length;h++)o(e.getData(u[h]),t[u[h]]);c.push(e)}}),a.eachComponent(function(e,t){if("series"!==e){var n=r.getViewOfComponentModel(t);n&&n.blurSeries&&n.blurSeries(c,a)}})}}else!function(e){e.getModel().eachComponent(function(t,n){("series"===t?e.getViewOfSeriesModel(n):e.getViewOfComponentModel(n)).group.traverse(function(e){pl(e)})})}(r)}function Il(e){q(e.getAllData(),function(t){var n=t.data,r=t.type;n.eachItemGraphicEl(function(t,n){e.isSelected(n,r)?kl(t):Bl(t)})})}function Ml(e,t,n){Ll(e,!0),vl(e,wl),Fl(e,t,n)}function Fl(e,t,n){var r=Gs(e);null!=t?(r.focus=t,r.blurScope=n):r.focus&&(r.focus=null)}var Dl=["emphasis","blur","select"],Pl={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Ol(e,t,n,r){n=n||"itemStyle";for(var i=0;i<Dl.length;i++){var a=Dl[i],o=t.getModel([a,n]);e.ensureState(a).style=r?r(o):o[Pl[n]]()}}function Ll(e,t){var n=!1===t,r=e;e.highDownSilentOnTouch&&(r.__highDownSilentOnTouch=e.highDownSilentOnTouch),n&&!r.__highDownDispatcher||(r.__highByOuter=r.__highByOuter||0,r.__highDownDispatcher=!n)}function Rl(e){return!(!e||!e.__highDownDispatcher)}function Nl(e){var t=e.type;return t===il||t===al||t===ol}function Ul(e){var t=e.type;return t===nl||t===rl}var Hl=Xo.CMD,jl=[[],[],[]],Ql=Math.sqrt,zl=Math.atan2;var Vl=Math.sqrt,Gl=Math.sin,$l=Math.cos,ql=Math.PI;function Wl(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function Kl(e,t){return(e[0]*t[0]+e[1]*t[1])/(Wl(e)*Wl(t))}function Yl(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(Kl(e,t))}function Xl(e,t,n,r,i,a,o,s,l,c,u){var h=l*(ql/180),d=$l(h)*(e-n)/2+Gl(h)*(t-r)/2,f=-1*Gl(h)*(e-n)/2+$l(h)*(t-r)/2,p=d*d/(o*o)+f*f/(s*s);p>1&&(o*=Vl(p),s*=Vl(p));var A=(i===a?-1:1)*Vl((o*o*(s*s)-o*o*(f*f)-s*s*(d*d))/(o*o*(f*f)+s*s*(d*d)))||0,g=A*o*f/s,m=A*-s*d/o,v=(e+n)/2+$l(h)*g-Gl(h)*m,y=(t+r)/2+Gl(h)*g+$l(h)*m,b=Yl([1,0],[(d-g)/o,(f-m)/s]),w=[(d-g)/o,(f-m)/s],x=[(-1*d-g)/o,(-1*f-m)/s],_=Yl(w,x);if(Kl(w,x)<=-1&&(_=ql),Kl(w,x)>=1&&(_=0),_<0){var C=Math.round(_/ql*1e6)/1e6;_=2*ql+C%2*ql}u.addData(c,v,y,o,s,b,_,h,a)}var Jl=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,Zl=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;var ec=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Me(t,e),t.prototype.applyTransform=function(e){},t}(vs);function tc(e){return null!=e.setData}function nc(e,t){var n=function(e){var t=new Xo;if(!e)return t;var n,r=0,i=0,a=r,o=i,s=Xo.CMD,l=e.match(Jl);if(!l)return t;for(var c=0;c<l.length;c++){for(var u=l[c],h=u.charAt(0),d=void 0,f=u.match(Zl)||[],p=f.length,A=0;A<p;A++)f[A]=parseFloat(f[A]);for(var g=0;g<p;){var m=void 0,v=void 0,y=void 0,b=void 0,w=void 0,x=void 0,_=void 0,C=r,S=i,k=void 0,B=void 0;switch(h){case"l":r+=f[g++],i+=f[g++],d=s.L,t.addData(d,r,i);break;case"L":r=f[g++],i=f[g++],d=s.L,t.addData(d,r,i);break;case"m":r+=f[g++],i+=f[g++],d=s.M,t.addData(d,r,i),a=r,o=i,h="l";break;case"M":r=f[g++],i=f[g++],d=s.M,t.addData(d,r,i),a=r,o=i,h="L";break;case"h":r+=f[g++],d=s.L,t.addData(d,r,i);break;case"H":r=f[g++],d=s.L,t.addData(d,r,i);break;case"v":i+=f[g++],d=s.L,t.addData(d,r,i);break;case"V":i=f[g++],d=s.L,t.addData(d,r,i);break;case"C":d=s.C,t.addData(d,f[g++],f[g++],f[g++],f[g++],f[g++],f[g++]),r=f[g-2],i=f[g-1];break;case"c":d=s.C,t.addData(d,f[g++]+r,f[g++]+i,f[g++]+r,f[g++]+i,f[g++]+r,f[g++]+i),r+=f[g-2],i+=f[g-1];break;case"S":m=r,v=i,k=t.len(),B=t.data,n===s.C&&(m+=r-B[k-4],v+=i-B[k-3]),d=s.C,C=f[g++],S=f[g++],r=f[g++],i=f[g++],t.addData(d,m,v,C,S,r,i);break;case"s":m=r,v=i,k=t.len(),B=t.data,n===s.C&&(m+=r-B[k-4],v+=i-B[k-3]),d=s.C,C=r+f[g++],S=i+f[g++],r+=f[g++],i+=f[g++],t.addData(d,m,v,C,S,r,i);break;case"Q":C=f[g++],S=f[g++],r=f[g++],i=f[g++],d=s.Q,t.addData(d,C,S,r,i);break;case"q":C=f[g++]+r,S=f[g++]+i,r+=f[g++],i+=f[g++],d=s.Q,t.addData(d,C,S,r,i);break;case"T":m=r,v=i,k=t.len(),B=t.data,n===s.Q&&(m+=r-B[k-4],v+=i-B[k-3]),r=f[g++],i=f[g++],d=s.Q,t.addData(d,m,v,r,i);break;case"t":m=r,v=i,k=t.len(),B=t.data,n===s.Q&&(m+=r-B[k-4],v+=i-B[k-3]),r+=f[g++],i+=f[g++],d=s.Q,t.addData(d,m,v,r,i);break;case"A":y=f[g++],b=f[g++],w=f[g++],x=f[g++],_=f[g++],Xl(C=r,S=i,r=f[g++],i=f[g++],x,_,y,b,w,d=s.A,t);break;case"a":y=f[g++],b=f[g++],w=f[g++],x=f[g++],_=f[g++],Xl(C=r,S=i,r+=f[g++],i+=f[g++],x,_,y,b,w,d=s.A,t)}}"z"!==h&&"Z"!==h||(d=s.Z,t.addData(d),r=a,i=o),n=d}return t.toStatic(),t}(e),r=H({},t);return r.buildPath=function(e){if(tc(e)){e.setData(n.data),(t=e.getContext())&&e.rebuildPath(t,1)}else{var t=e;n.rebuildPath(t,1)}},r.applyTransform=function(e){!function(e,t){var n,r,i,a,o,s,l=e.data,c=e.len(),u=Hl.M,h=Hl.C,d=Hl.L,f=Hl.R,p=Hl.A,A=Hl.Q;for(i=0,a=0;i<c;){switch(n=l[i++],a=i,r=0,n){case u:case d:r=1;break;case h:r=3;break;case A:r=2;break;case p:var g=t[4],m=t[5],v=Ql(t[0]*t[0]+t[1]*t[1]),y=Ql(t[2]*t[2]+t[3]*t[3]),b=zl(-t[1]/y,t[0]/v);l[i]*=v,l[i++]+=g,l[i]*=y,l[i++]+=m,l[i++]*=v,l[i++]*=y,l[i++]+=b,l[i++]+=b,a=i+=2;break;case f:s[0]=l[i++],s[1]=l[i++],et(s,s,t),l[a++]=s[0],l[a++]=s[1],s[0]+=l[i++],s[1]+=l[i++],et(s,s,t),l[a++]=s[0],l[a++]=s[1]}for(o=0;o<r;o++){var w=jl[o];w[0]=l[i++],w[1]=l[i++],et(w,w,t),l[a++]=w[0],l[a++]=w[1]}}e.increaseVersion()}(n,e),this.dirtyShape()},r}function rc(e,t){return new ec(nc(e,t))}var ic=function(){return function(){this.cx=0,this.cy=0,this.r=0}}(),ac=function(e){function t(t){return e.call(this,t)||this}return Me(t,e),t.prototype.getDefaultShape=function(){return new ic},t.prototype.buildPath=function(e,t,n){n&&e.moveTo(t.cx+t.r,t.cy),e.arc(t.cx,t.cy,t.r,0,2*Math.PI)},t}(vs);ac.prototype.type="circle";var oc=ac,sc=function(){return function(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}}(),lc=function(e){function t(t){return e.call(this,t)||this}return Me(t,e),t.prototype.getDefaultShape=function(){return new sc},t.prototype.buildPath=function(e,t){var n=.5522848,r=t.cx,i=t.cy,a=t.rx,o=t.ry,s=a*n,l=o*n;e.moveTo(r-a,i),e.bezierCurveTo(r-a,i-l,r-s,i-o,r,i-o),e.bezierCurveTo(r+s,i-o,r+a,i-l,r+a,i),e.bezierCurveTo(r+a,i+l,r+s,i+o,r,i+o),e.bezierCurveTo(r-s,i+o,r-a,i+l,r-a,i),e.closePath()},t}(vs);lc.prototype.type="ellipse";var cc=lc,uc=Math.PI,hc=2*uc,dc=Math.sin,fc=Math.cos,pc=Math.acos,Ac=Math.atan2,gc=Math.abs,mc=Math.sqrt,vc=Math.max,yc=Math.min,bc=1e-4;function wc(e,t,n,r,i,a,o){var s=e-n,l=t-r,c=(o?a:-a)/mc(s*s+l*l),u=c*l,h=-c*s,d=e+u,f=t+h,p=n+u,A=r+h,g=(d+p)/2,m=(f+A)/2,v=p-d,y=A-f,b=v*v+y*y,w=i-a,x=d*A-p*f,_=(y<0?-1:1)*mc(vc(0,w*w*b-x*x)),C=(x*y-v*_)/b,S=(-x*v-y*_)/b,k=(x*y+v*_)/b,B=(-x*v+y*_)/b,E=C-g,T=S-m,I=k-g,M=B-m;return E*E+T*T>I*I+M*M&&(C=k,S=B),{cx:C,cy:S,x01:-u,y01:-h,x11:C*(i/w-1),y11:S*(i/w-1)}}function xc(e,t){var n=vc(t.r,0),r=vc(t.r0||0,0),i=n>0;if(i||r>0){if(i||(n=r,r=0),r>n){var a=n;n=r,r=a}var o,s=!!t.clockwise,l=t.startAngle,c=t.endAngle;if(l===c)o=0;else{var u=[l,c];Yo(u,!s),o=gc(u[0]-u[1])}var h=t.cx,d=t.cy,f=t.cornerRadius||0,p=t.innerCornerRadius||0;if(n>bc)if(o>hc-bc)e.moveTo(h+n*fc(l),d+n*dc(l)),e.arc(h,d,n,l,c,!s),r>bc&&(e.moveTo(h+r*fc(c),d+r*dc(c)),e.arc(h,d,r,c,l,s));else{var A=gc(n-r)/2,g=yc(A,f),m=yc(A,p),v=m,y=g,b=n*fc(l),w=n*dc(l),x=r*fc(c),_=r*dc(c),C=void 0,S=void 0,k=void 0,B=void 0;if((g>bc||m>bc)&&(C=n*fc(c),S=n*dc(c),k=r*fc(l),B=r*dc(l),o<uc)){var E=function(e,t,n,r,i,a,o,s){var l=n-e,c=r-t,u=o-i,h=s-a,d=h*l-u*c;if(!(d*d<bc))return[e+(d=(u*(t-a)-h*(e-i))/d)*l,t+d*c]}(b,w,k,B,C,S,x,_);if(E){var T=b-E[0],I=w-E[1],M=C-E[0],F=S-E[1],D=1/dc(pc((T*M+I*F)/(mc(T*T+I*I)*mc(M*M+F*F)))/2),P=mc(E[0]*E[0]+E[1]*E[1]);v=yc(m,(r-P)/(D-1)),y=yc(g,(n-P)/(D+1))}}if(o>bc)if(y>bc){var O=wc(k,B,b,w,n,y,s),L=wc(C,S,x,_,n,y,s);e.moveTo(h+O.cx+O.x01,d+O.cy+O.y01),y<g?e.arc(h+O.cx,d+O.cy,y,Ac(O.y01,O.x01),Ac(L.y01,L.x01),!s):(e.arc(h+O.cx,d+O.cy,y,Ac(O.y01,O.x01),Ac(O.y11,O.x11),!s),e.arc(h,d,n,Ac(O.cy+O.y11,O.cx+O.x11),Ac(L.cy+L.y11,L.cx+L.x11),!s),e.arc(h+L.cx,d+L.cy,y,Ac(L.y11,L.x11),Ac(L.y01,L.x01),!s))}else e.moveTo(h+b,d+w),e.arc(h,d,n,l,c,!s);else e.moveTo(h+b,d+w);if(r>bc&&o>bc)if(v>bc){O=wc(x,_,C,S,r,-v,s),L=wc(b,w,k,B,r,-v,s);e.lineTo(h+O.cx+O.x01,d+O.cy+O.y01),v<m?e.arc(h+O.cx,d+O.cy,v,Ac(O.y01,O.x01),Ac(L.y01,L.x01),!s):(e.arc(h+O.cx,d+O.cy,v,Ac(O.y01,O.x01),Ac(O.y11,O.x11),!s),e.arc(h,d,r,Ac(O.cy+O.y11,O.cx+O.x11),Ac(L.cy+L.y11,L.cx+L.x11),s),e.arc(h+L.cx,d+L.cy,v,Ac(L.y11,L.x11),Ac(L.y01,L.x01),!s))}else e.lineTo(h+x,d+_),e.arc(h,d,r,c,l,s);else e.lineTo(h+x,d+_)}else e.moveTo(h,d);e.closePath()}}var _c=function(){return function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0,this.innerCornerRadius=0}}(),Cc=function(e){function t(t){return e.call(this,t)||this}return Me(t,e),t.prototype.getDefaultShape=function(){return new _c},t.prototype.buildPath=function(e,t){xc(e,t)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(vs);Cc.prototype.type="sector";var Sc=Cc,kc=function(){return function(){this.cx=0,this.cy=0,this.r=0,this.r0=0}}(),Bc=function(e){function t(t){return e.call(this,t)||this}return Me(t,e),t.prototype.getDefaultShape=function(){return new kc},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=2*Math.PI;e.moveTo(n+t.r,r),e.arc(n,r,t.r,0,i,!1),e.moveTo(n+t.r0,r),e.arc(n,r,t.r0,0,i,!0)},t}(vs);Bc.prototype.type="ring";var Ec=Bc;function Tc(e,t,n,r,i,a,o){var s=.5*(n-e),l=.5*(r-t);return(2*(t-n)+s+l)*o+(-3*(t-n)-2*s-l)*a+s*i+t}function Ic(e,t,n){var r=t.smooth,i=t.points;if(i&&i.length>=2){if(r&&"spline"!==r){var a=function(e,t,n,r){var i,a,o,s,l=[],c=[],u=[],h=[];if(r){o=[1/0,1/0],s=[-1/0,-1/0];for(var d=0,f=e.length;d<f;d++)tt(o,o,e[d]),nt(s,s,e[d]);tt(o,o,r[0]),nt(s,s,r[1])}for(d=0,f=e.length;d<f;d++){var p=e[d];if(n)i=e[d?d-1:f-1],a=e[(d+1)%f];else{if(0===d||d===f-1){l.push(Pe(e[d]));continue}i=e[d-1],a=e[d+1]}Ne(c,a,i),$e(c,c,t);var A=We(p,i),g=We(p,a),m=A+g;0!==m&&(A/=m,g/=m),$e(u,c,-A),$e(h,c,g);var v=Le([],p,u),y=Le([],p,h);r&&(nt(v,v,o),tt(v,v,s),nt(y,y,o),tt(y,y,s)),l.push(v),l.push(y)}return n&&l.push(l.shift()),l}(i,r,n,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(n?o:o-1);s++){var l=a[2*s],c=a[2*s+1],u=i[(s+1)%o];e.bezierCurveTo(l[0],l[1],c[0],c[1],u[0],u[1])}}else{"spline"===r&&(i=function(e,t){for(var n=e.length,r=[],i=0,a=1;a<n;a++)i+=We(e[a-1],e[a]);var o=i/2;for(o=o<n?n:o,a=0;a<o;a++){var s=a/(o-1)*(t?n:n-1),l=Math.floor(s),c=s-l,u=void 0,h=e[l%n],d=void 0,f=void 0;t?(u=e[(l-1+n)%n],d=e[(l+1)%n],f=e[(l+2)%n]):(u=e[0===l?l:l-1],d=e[l>n-2?n-1:l+1],f=e[l>n-3?n-1:l+2]);var p=c*c,A=c*p;r.push([Tc(u[0],h[0],d[0],f[0],c,p,A),Tc(u[1],h[1],d[1],f[1],c,p,A)])}return r}(i,n)),e.moveTo(i[0][0],i[0][1]);s=1;for(var h=i.length;s<h;s++)e.lineTo(i[s][0],i[s][1])}n&&e.closePath()}}var Mc=function(){return function(){this.points=null,this.smooth=0,this.smoothConstraint=null}}(),Fc=function(e){function t(t){return e.call(this,t)||this}return Me(t,e),t.prototype.getDefaultShape=function(){return new Mc},t.prototype.buildPath=function(e,t){Ic(e,t,!0)},t}(vs);Fc.prototype.type="polygon";var Dc=Fc,Pc=function(){return function(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}}(),Oc=function(e){function t(t){return e.call(this,t)||this}return Me(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Pc},t.prototype.buildPath=function(e,t){Ic(e,t,!1)},t}(vs);Oc.prototype.type="polyline";var Lc=Oc,Rc={},Nc=function(){return function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}}(),Uc=function(e){function t(t){return e.call(this,t)||this}return Me(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Nc},t.prototype.buildPath=function(e,t){var n,r,i,a;if(this.subPixelOptimize){var o=Bs(Rc,t,this.style);n=o.x1,r=o.y1,i=o.x2,a=o.y2}else n=t.x1,r=t.y1,i=t.x2,a=t.y2;var s=t.percent;0!==s&&(e.moveTo(n,r),s<1&&(i=n*(1-s)+i*s,a=r*(1-s)+a*s),e.lineTo(i,a))},t.prototype.pointAt=function(e){var t=this.shape;return[t.x1*(1-e)+t.x2*e,t.y1*(1-e)+t.y2*e]},t}(vs);Uc.prototype.type="line";var Hc=Uc,jc=[],Qc=function(){return function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}}();function zc(e,t,n){var r=e.cpx2,i=e.cpy2;return null===r||null===i?[(n?io:ro)(e.x1,e.cpx1,e.cpx2,e.x2,t),(n?io:ro)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(n?ho:uo)(e.x1,e.cpx1,e.x2,t),(n?ho:uo)(e.y1,e.cpy1,e.y2,t)]}var Vc=function(e){function t(t){return e.call(this,t)||this}return Me(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Qc},t.prototype.buildPath=function(e,t){var n=t.x1,r=t.y1,i=t.x2,a=t.y2,o=t.cpx1,s=t.cpy1,l=t.cpx2,c=t.cpy2,u=t.percent;0!==u&&(e.moveTo(n,r),null==l||null==c?(u<1&&(po(n,o,i,u,jc),o=jc[1],i=jc[2],po(r,s,a,u,jc),s=jc[1],a=jc[2]),e.quadraticCurveTo(o,s,i,a)):(u<1&&(so(n,o,l,i,u,jc),o=jc[1],l=jc[2],i=jc[3],so(r,s,c,a,u,jc),s=jc[1],c=jc[2],a=jc[3]),e.bezierCurveTo(o,s,l,c,i,a)))},t.prototype.pointAt=function(e){return zc(this.shape,e,!1)},t.prototype.tangentAt=function(e){var t=zc(this.shape,e,!0);return qe(t,t)},t}(vs);Vc.prototype.type="bezier-curve";var Gc=Vc,$c=function(){return function(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}}(),qc=function(e){function t(t){return e.call(this,t)||this}return Me(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new $c},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.max(t.r,0),a=t.startAngle,o=t.endAngle,s=t.clockwise,l=Math.cos(a),c=Math.sin(a);e.moveTo(l*i+n,c*i+r),e.arc(n,r,i,a,o,!s)},t}(vs);qc.prototype.type="arc";var Wc=qc,Kc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="compound",t}return Me(t,e),t.prototype._updatePathDirty=function(){for(var e=this.shape.paths,t=this.shapeChanged(),n=0;n<e.length;n++)t=t||e[n].shapeChanged();t&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var e=this.shape.paths||[],t=this.getGlobalScale(),n=0;n<e.length;n++)e[n].path||e[n].createPathProxy(),e[n].path.setScale(t[0],t[1],e[n].segmentIgnoreThreshold)},t.prototype.buildPath=function(e,t){for(var n=t.paths||[],r=0;r<n.length;r++)n[r].buildPath(e,n[r].shape,!0)},t.prototype.afterBrush=function(){for(var e=this.shape.paths||[],t=0;t<e.length;t++)e[t].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),vs.prototype.getBoundingRect.call(this)},t}(vs),Yc=function(){function e(e){this.colorStops=e||[]}return e.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},e}(),Xc=function(e){function t(t,n,r,i,a,o){var s=e.call(this,a)||this;return s.x=null==t?0:t,s.y=null==n?0:n,s.x2=null==r?1:r,s.y2=null==i?0:i,s.type="linear",s.global=o||!1,s}return Me(t,e),t}(Yc),Jc=function(e){function t(t,n,r,i,a){var o=e.call(this,i)||this;return o.x=null==t?.5:t,o.y=null==n?.5:n,o.r=null==r?.5:r,o.type="radial",o.global=a||!1,o}return Me(t,e),t}(Yc),Zc=[0,0],eu=[0,0],tu=new $n,nu=new $n,ru=function(){function e(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new $n;for(n=0;n<2;n++)this._axes[n]=new $n;e&&this.fromBoundingRect(e,t)}return e.prototype.fromBoundingRect=function(e,t){var n=this._corners,r=this._axes,i=e.x,a=e.y,o=i+e.width,s=a+e.height;if(n[0].set(i,a),n[1].set(o,a),n[2].set(o,s),n[3].set(i,s),t)for(var l=0;l<4;l++)n[l].transform(t);$n.sub(r[0],n[1],n[0]),$n.sub(r[1],n[3],n[0]),r[0].normalize(),r[1].normalize();for(l=0;l<2;l++)this._origin[l]=r[l].dot(n[0])},e.prototype.intersect=function(e,t){var n=!0,r=!t;return tu.set(1/0,1/0),nu.set(0,0),!this._intersectCheckOneSide(this,e,tu,nu,r,1)&&(n=!1,r)?n:!this._intersectCheckOneSide(e,this,tu,nu,r,-1)&&(n=!1,r)?n:(r||$n.copy(t,n?tu:nu),n)},e.prototype._intersectCheckOneSide=function(e,t,n,r,i,a){for(var o=!0,s=0;s<2;s++){var l=this._axes[s];if(this._getProjMinMaxOnAxis(s,e._corners,Zc),this._getProjMinMaxOnAxis(s,t._corners,eu),Zc[1]<eu[0]||Zc[0]>eu[1]){if(o=!1,i)return o;var c=Math.abs(eu[0]-Zc[1]),u=Math.abs(Zc[0]-eu[1]);Math.min(c,u)>r.len()&&(c<u?$n.scale(r,l,-c*a):$n.scale(r,l,u*a))}else if(n){c=Math.abs(eu[0]-Zc[1]),u=Math.abs(Zc[0]-eu[1]);Math.min(c,u)<n.len()&&(c<u?$n.scale(n,l,c*a):$n.scale(n,l,-u*a))}}return o},e.prototype._getProjMinMaxOnAxis=function(e,t,n){for(var r=this._axes[e],i=this._origin,a=t[0].dot(r)+i[e],o=a,s=a,l=1;l<t.length;l++){var c=t[l].dot(r)+i[e];o=Math.min(c,o),s=Math.max(c,s)}n[0]=o,n[1]=s},e}(),iu=[],au=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.notClear=!0,t.incremental=!0,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}return Me(t,e),t.prototype.traverse=function(e,t){e.call(t,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(e,t){t?this._temporaryDisplayables.push(e):this._displayables.push(e),this.markRedraw()},t.prototype.addDisplayables=function(e,t){t=t||!1;for(var n=0;n<e.length;n++)this.addDisplayable(e[n],t)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(e){for(var t=this._cursor;t<this._displayables.length;t++)e&&e(this._displayables[t]);for(t=0;t<this._temporaryDisplayables.length;t++)e&&e(this._temporaryDisplayables[t])},t.prototype.update=function(){this.updateTransform();for(var e=this._cursor;e<this._displayables.length;e++){(t=this._displayables[e]).parent=this,t.update(),t.parent=null}for(e=0;e<this._temporaryDisplayables.length;e++){var t;(t=this._temporaryDisplayables[e]).parent=this,t.update(),t.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new tr(1/0,1/0,-1/0,-1/0),t=0;t<this._displayables.length;t++){var n=this._displayables[t],r=n.getBoundingRect().clone();n.needLocalTransform()&&r.applyTransform(n.getLocalTransform(iu)),e.union(r)}this._rect=e}return this._rect},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t);if(this.getBoundingRect().contain(n[0],n[1]))for(var r=0;r<this._displayables.length;r++){if(this._displayables[r].contain(e,t))return!0}return!1},t}(Ga),ou=Math.max,su=Math.min,lu={};function cu(e){return vs.extend(e)}var uu=function(e,t){var n=nc(e,t);return function(e){function t(t){var r=e.call(this,t)||this;return r.applyTransform=n.applyTransform,r.buildPath=n.buildPath,r}return Me(t,e),t}(ec)};function hu(e,t){return uu(e,t)}function du(e,t){lu[e]=t}function fu(e){if(lu.hasOwnProperty(e))return lu[e]}function pu(e,t,n,r){var i=rc(e,t);return n&&("center"===r&&(n=gu(n,i.getBoundingRect())),vu(i,n)),i}function Au(e,t,n){var r=new Ss({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(e){if("center"===n){var i={width:e.width,height:e.height};r.setStyle(gu(t,i))}}});return r}function gu(e,t){var n,r=t.width/t.height,i=e.height*r;return n=i<=e.width?e.height:(i=e.width)/r,{x:e.x+e.width/2-i/2,y:e.y+e.height/2-n/2,width:i,height:n}}var mu=function(e,t){for(var n=[],r=e.length,i=0;i<r;i++){var a=e[i];a.path||a.createPathProxy(),a.shapeChanged()&&a.buildPath(a.path,a.shape,!0),n.push(a.path)}var o=new vs(t);return o.createPathProxy(),o.buildPath=function(e){if(tc(e)){e.appendPath(n);var t=e.getContext();t&&e.rebuildPath(t,1)}},o};function vu(e,t){if(e.applyTransform){var n=e.getBoundingRect().calculateTransform(t);e.applyTransform(n)}}function yu(e){return Bs(e.shape,e.shape,e.style),e}function bu(e){return Es(e.shape,e.shape,e.style),e}var wu=Ts;function xu(e,t,n,r,i,a,o){var s,l=!1;"function"==typeof i?(o=a,a=i,i=null):oe(i)&&(a=i.cb,o=i.during,l=i.isFrom,s=i.removeOpt,i=i.dataIndex);var c,u="update"===e,h="remove"===e;if(r&&r.ecModel){var d=r.ecModel.getUpdatePayload();c=d&&d.animation}var f=r&&r.isAnimationEnabled();if(h||t.stopAnimation("remove"),f){var p=void 0,A=void 0,g=void 0;c?(p=c.duration||0,A=c.easing||"cubicOut",g=c.delay||0):h?(p=Ae((s=s||{}).duration,200),A=Ae(s.easing,"cubicOut"),g=0):(p=r.getShallow(u?"animationDurationUpdate":"animationDuration"),A=r.getShallow(u?"animationEasingUpdate":"animationEasing"),g=r.getShallow(u?"animationDelayUpdate":"animationDelay")),"function"==typeof g&&(g=g(i,r.getAnimationDelayParams?r.getAnimationDelayParams(t,i):null)),"function"==typeof p&&(p=p(i)),p>0?l?t.animateFrom(n,{duration:p,delay:g||0,easing:A,done:a,force:!!a||!!o,scope:e,during:o}):t.animateTo(n,{duration:p,delay:g||0,easing:A,done:a,force:!!a||!!o,setToFinal:!0,scope:e,during:o}):(t.stopAnimation(),!l&&t.attr(n),a&&a())}else t.stopAnimation(),!l&&t.attr(n),o&&o(1),a&&a()}function _u(e,t,n,r,i,a){xu("update",e,t,n,r,i,a)}function Cu(e,t,n,r,i,a){xu("init",e,t,n,r,i,a)}function Su(e,t,n,r,i,a){Eu(e)||xu("remove",e,t,n,r,i,a)}function ku(e,t,n,r){e.removeTextContent(),e.removeTextGuideLine(),Su(e,{style:{opacity:0}},t,n,r)}function Bu(e,t,n){function r(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(e){e.isGroup||ku(e,t,n,r)}):ku(e,t,n,r)}function Eu(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++){if("remove"===e.animators[t].scope)return!0}return!1}function Tu(e,t){for(var n=Lt([]);e&&e!==t;)Nt(n,e.getLocalTransform(),n),e=e.parent;return n}function Iu(e,t,n){return t&&!$(t)&&(t=Xt.getLocalTransform(t)),n&&(t=Qt([],t)),et([],e,t)}function Mu(e,t,n){var r=0===t[4]||0===t[5]||0===t[0]?1:Math.abs(2*t[4]/t[0]),i=0===t[4]||0===t[5]||0===t[2]?1:Math.abs(2*t[4]/t[2]),a=["left"===e?-r:"right"===e?r:0,"top"===e?-i:"bottom"===e?i:0];return a=Iu(a,t,n),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function Fu(e){return!e.isGroup}function Du(e,t,n){if(e&&t){var r,i=(r={},e.traverse(function(e){Fu(e)&&e.anid&&(r[e.anid]=e)}),r);t.traverse(function(e){if(Fu(e)&&e.anid){var t=i[e.anid];if(t){var r=a(e);e.attr(a(t)),_u(e,r,n,Gs(e).dataIndex)}}})}function a(e){var t={x:e.x,y:e.y,rotation:e.rotation};return function(e){return null!=e.shape}(e)&&(t.shape=H({},e.shape)),t}}function Pu(e,t){return W(e,function(e){var n=e[0];n=ou(n,t.x),n=su(n,t.x+t.width);var r=e[1];return r=ou(r,t.y),[n,r=su(r,t.y+t.height)]})}function Ou(e,t){var n=ou(e.x,t.x),r=su(e.x+e.width,t.x+t.width),i=ou(e.y,t.y),a=su(e.y+e.height,t.y+t.height);if(r>=n&&a>=i)return{x:n,y:i,width:r-n,height:a-i}}function Lu(e,t,n){var r=H({rectHover:!0},t),i=r.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},e)return 0===e.indexOf("image://")?(i.image=e.slice(8),j(i,n),new Ss(r)):pu(e.replace("path://",""),r,n,"center")}function Ru(e,t,n,r,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(Nu(e,t,n,r,s[0],s[1],o[0],o[1]))return!0;o=s}}function Nu(e,t,n,r,i,a,o,s){var l,c=n-e,u=r-t,h=o-i,d=s-a,f=Uu(h,d,c,u);if((l=f)<=1e-6&&l>=-1e-6)return!1;var p=e-i,A=t-a,g=Uu(p,A,c,u)/f;if(g<0||g>1)return!1;var m=Uu(p,A,h,d)/f;return!(m<0||m>1)}function Uu(e,t,n,r){return e*r-n*t}du("circle",oc),du("ellipse",cc),du("sector",Sc),du("ring",Ec),du("polygon",Dc),du("polyline",Lc),du("rect",Ds),du("line",Hc),du("bezierCurve",Gc),du("arc",Wc);var Hu={};function ju(e,t){for(var n=0;n<Js.length;n++){var r=Js[n],i=t[r],a=e.ensureState(r);a.style=a.style||{},a.style.text=i}var o=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(o,!0)}function Qu(e,t,n){var r,i=e.labelFetcher,a=e.labelDataIndex,o=e.labelDimIndex,s=t.normal;i&&(r=i.getFormattedLabel(a,"normal",null,o,s&&s.get("formatter"),null!=n?{interpolatedValue:n}:null)),null==r&&(r=ne(e.defaultText)?e.defaultText(a,e,n):e.defaultText);for(var l={normal:r},c=0;c<Js.length;c++){var u=Js[c],h=t[u];l[u]=Ae(i?i.getFormattedLabel(a,u,null,o,h&&h.get("formatter")):null,r)}return l}function zu(e,t,n,r){n=n||Hu;for(var i=e instanceof Vs,a=!1,o=0;o<Zs.length;o++){if((d=t[Zs[o]])&&d.getShallow("show")){a=!0;break}}var s=i?e:e.getTextContent();if(a){i||(s||(s=new Vs,e.setTextContent(s)),e.stateProxy&&(s.stateProxy=e.stateProxy));var l=Qu(n,t),c=t.normal,u=!!c.getShallow("show"),h=Gu(c,r&&r.normal,n,!1,!i);h.text=l.normal,i||e.setTextConfig($u(c,n,!1));for(o=0;o<Js.length;o++){var d,f=Js[o];if(d=t[f]){var p=s.ensureState(f),A=!!Ae(d.getShallow("show"),u);if(A!==u&&(p.ignore=!A),p.style=Gu(d,r&&r[f],n,!0,!i),p.style.text=l[f],!i)e.ensureState(f).textConfig=$u(d,n,!0)}}s.silent=!!c.getShallow("silent"),null!=s.style.x&&(h.x=s.style.x),null!=s.style.y&&(h.y=s.style.y),s.ignore=!u,s.useStyle(h),s.dirty(),n.enableTextSetter&&(Ju(s).setLabelText=function(e){var r=Qu(n,t,e);ju(s,r)})}else s&&(s.ignore=!0);e.dirty()}function Vu(e,t){t=t||"label";for(var n={normal:e.getModel(t)},r=0;r<Js.length;r++){var i=Js[r];n[i]=e.getModel([i,t])}return n}function Gu(e,t,n,r,i){var a={};return function(e,t,n,r,i){n=n||Hu;var a,o=t.ecModel,s=o&&o.option.textStyle,l=function(e){var t;for(;e&&e!==e.ecModel;){var n=(e.option||Hu).rich;if(n){t=t||{};for(var r=J(n),i=0;i<r.length;i++){var a=r[i];t[a]=1}}e=e.parentModel}return t}(t);if(l)for(var c in a={},l)if(l.hasOwnProperty(c)){var u=t.getModel(["rich",c]);Yu(a[c]={},u,s,n,r,i,!1,!0)}a&&(e.rich=a);var h=t.get("overflow");h&&(e.overflow=h);var d=t.get("minMargin");null!=d&&(e.margin=d);Yu(e,t,s,n,r,i,!0,!1)}(a,e,n,r,i),t&&H(a,t),a}function $u(e,t,n){t=t||{};var r,i={},a=e.getShallow("rotate"),o=Ae(e.getShallow("distance"),n?null:5),s=e.getShallow("offset");return"outside"===(r=e.getShallow("position")||(n?null:"inside"))&&(r=t.defaultOutsidePosition||"top"),null!=r&&(i.position=r),null!=s&&(i.offset=s),null!=a&&(a*=Math.PI/180,i.rotation=a),null!=o&&(i.distance=o),i.outsideFill="inherit"===e.get("color")?t.inheritColor||null:"auto",i}var qu=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],Wu=["align","lineHeight","width","height","tag","verticalAlign"],Ku=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function Yu(e,t,n,r,i,a,o,s){n=!i&&n||Hu;var l=r&&r.inheritColor,c=t.getShallow("color"),u=t.getShallow("textBorderColor"),h=Ae(t.getShallow("opacity"),n.opacity);"inherit"!==c&&"auto"!==c||(c=l||null),"inherit"!==u&&"auto"!==u||(u=l||null),a||(c=c||n.color,u=u||n.textBorderColor),null!=c&&(e.fill=c),null!=u&&(e.stroke=u);var d=Ae(t.getShallow("textBorderWidth"),n.textBorderWidth);null!=d&&(e.lineWidth=d);var f=Ae(t.getShallow("textBorderType"),n.textBorderType);null!=f&&(e.lineDash=f);var p=Ae(t.getShallow("textBorderDashOffset"),n.textBorderDashOffset);null!=p&&(e.lineDashOffset=p),i||null!=h||s||(h=r&&r.defaultOpacity),null!=h&&(e.opacity=h),i||a||null==e.fill&&r.inheritColor&&(e.fill=r.inheritColor);for(var A=0;A<qu.length;A++){var g=qu[A];null!=(v=Ae(t.getShallow(g),n[g]))&&(e[g]=v)}for(A=0;A<Wu.length;A++){g=Wu[A];null!=(v=t.getShallow(g))&&(e[g]=v)}if(null==e.verticalAlign){var m=t.getShallow("baseline");null!=m&&(e.verticalAlign=m)}if(!o||!r.disableBox){for(A=0;A<Ku.length;A++){var v;g=Ku[A];null!=(v=t.getShallow(g))&&(e[g]=v)}var y=t.getShallow("borderType");null!=y&&(e.borderDash=y),"auto"!==e.backgroundColor&&"inherit"!==e.backgroundColor||!l||(e.backgroundColor=l),"auto"!==e.borderColor&&"inherit"!==e.borderColor||!l||(e.borderColor=l)}}function Xu(e,t){var n=t&&t.getModel("textStyle");return be([e.fontStyle||n&&n.getShallow("fontStyle")||"",e.fontWeight||n&&n.getShallow("fontWeight")||"",(e.fontSize||n&&n.getShallow("fontSize")||12)+"px",e.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "))}var Ju=Zi();function Zu(e,t,n,r){if(e){var i=Ju(e);i.prevValue=i.value,i.value=n;var a=t.normal;i.valueAnimation=a.get("valueAnimation"),i.valueAnimation&&(i.precision=a.get("precision"),i.defaultInterpolatedText=r,i.statesModels=t)}}function eh(e,t,n,r,i){var a=Ju(e);if(a.valueAnimation){var o=a.defaultInterpolatedText,s=Ae(a.interpolatedValue,a.prevValue),l=a.value;(null==s?Cu:_u)(e,{},r,t,null,function(r){var c=sa(n,a.precision,s,l,r);a.interpolatedValue=1===r?null:c;var u=Qu({labelDataIndex:t,labelFetcher:i,defaultText:o?o(c):c+""},a.statesModels,c);ju(e,u)})}}var th,nh,rh=["textStyle","color"],ih=new Vs,ah=function(){function e(){}return e.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow("color")||(!e&&t?t.get(rh):null)},e.prototype.getFont=function(){return Xu({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},e.prototype.getTextRect=function(e){return ih.useStyle({text:e,fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily"),verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline"),padding:this.getShallow("padding"),lineHeight:this.getShallow("lineHeight"),rich:this.getShallow("rich")}),ih.update(),ih.getBoundingRect()},e}(),oh=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],sh=va(oh),lh=function(){function e(){}return e.prototype.getLineStyle=function(e){return sh(this,e)},e}(),ch=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],uh=va(ch),hh=function(){function e(){}return e.prototype.getItemStyle=function(e,t){return uh(this,e,t)},e}(),dh=function(){function e(e,t,n){this.parentModel=t,this.ecModel=n,this.option=e}return e.prototype.init=function(e,t,n){for(var r=[],i=3;i<arguments.length;i++)r[i-3]=arguments[i]},e.prototype.mergeOption=function(e,t){N(this.option,e,!0)},e.prototype.get=function(e,t){return null==e?this.option:this._doGet(this.parsePath(e),!t&&this.parentModel)},e.prototype.getShallow=function(e,t){var n=this.option,r=null==n?n:n[e];if(null==r&&!t){var i=this.parentModel;i&&(r=i.getShallow(e))}return r},e.prototype.getModel=function(t,n){var r=null!=t,i=r?this.parsePath(t):null;return new e(r?this._doGet(i):this.option,n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),this.ecModel)},e.prototype.isEmpty=function(){return null==this.option},e.prototype.restoreData=function(){},e.prototype.clone=function(){return new(0,this.constructor)(R(this.option))},e.prototype.parsePath=function(e){return"string"==typeof e?e.split("."):e},e.prototype.resolveParentPath=function(e){return e},e.prototype.isAnimationEnabled=function(){if(!w.node&&this.option){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(e,t){var n=this.option;if(!e)return n;for(var r=0;r<e.length&&(!e[r]||null!=(n=n&&"object"==typeof n?n[e[r]]:null));r++);return null==n&&t&&(n=t._doGet(this.resolveParentPath(e),t.parentModel)),n},e}();da(dh),th=dh,nh=["__\0is_clz",pa++].join("_"),th.prototype[nh]=!0,th.isInstance=function(e){return!(!e||!e[nh])},G(dh,lh),G(dh,hh),G(dh,ba),G(dh,ah);var fh=dh,ph=Math.round(10*Math.random());function Ah(e){return[e||"",ph++].join("_")}function gh(e,t){return N(N({},e,!0),t,!0)}var mh="ZH",vh="EN",yh=vh,bh={},wh={},xh=w.domSupported&&(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase().indexOf(mh)>-1?mh:yh;function _h(e,t){e=e.toUpperCase(),wh[e]=new fh(t),bh[e]=t}_h(vh,{time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Guage",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}}),_h(mh,{time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}});var Ch=1e3,Sh=60*Ch,kh=60*Sh,Bh=24*kh,Eh=365*Bh,Th={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{hh}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {hh}:{mm}:{ss} {SSS}"},Ih={year:"{yyyy}",month:"{yyyy}-{MM}",day:"{yyyy}-{MM}-{dd}",hour:"{yyyy}-{MM}-{dd} "+Th.hour,minute:"{yyyy}-{MM}-{dd} "+Th.minute,second:"{yyyy}-{MM}-{dd} "+Th.second,millisecond:Th.none},Mh=["year","month","day","hour","minute","second","millisecond"],Fh=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Dh(e,t){return"0000".substr(0,t-(e+="").length)+e}function Ph(e){switch(e){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return e}}function Oh(e,t,n,r){var i=Ei(e),a=i[Nh(n)](),o=i[Uh(n)]()+1,s=Math.floor((o-1)/4)+1,l=i[Hh(n)](),c=i["get"+(n?"UTC":"")+"Day"](),u=i[jh(n)](),h=(u-1)%12+1,d=i[Qh(n)](),f=i[zh(n)](),p=i[Vh(n)](),A=(r instanceof fh?r:function(e){return wh[e]}(r||xh)||wh[yh]).getModel("time"),g=A.get("month"),m=A.get("monthAbbr"),v=A.get("dayOfWeek"),y=A.get("dayOfWeekAbbr");return(t||"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,a%100+"").replace(/{Q}/g,s+"").replace(/{MMMM}/g,g[o-1]).replace(/{MMM}/g,m[o-1]).replace(/{MM}/g,Dh(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Dh(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,v[c]).replace(/{ee}/g,y[c]).replace(/{e}/g,c+"").replace(/{HH}/g,Dh(u,2)).replace(/{H}/g,u+"").replace(/{hh}/g,Dh(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,Dh(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,Dh(f,2)).replace(/{s}/g,f+"").replace(/{SSS}/g,Dh(p,3)).replace(/{S}/g,p+"")}function Lh(e,t){var n=Ei(e),r=n[Uh(t)]()+1,i=n[Hh(t)](),a=n[jh(t)](),o=n[Qh(t)](),s=n[zh(t)](),l=0===n[Vh(t)](),c=l&&0===s,u=c&&0===o,h=u&&0===a,d=h&&1===i;return d&&1===r?"year":d?"month":h?"day":u?"hour":c?"minute":l?"second":"millisecond"}function Rh(e,t,n){var r="number"==typeof e?Ei(e):e;switch(t=t||Lh(e,n)){case"year":return r[Nh(n)]();case"half-year":return r[Uh(n)]()>=6?1:0;case"quarter":return Math.floor((r[Uh(n)]()+1)/4);case"month":return r[Uh(n)]();case"day":return r[Hh(n)]();case"half-day":return r[jh(n)]()/24;case"hour":return r[jh(n)]();case"minute":return r[Qh(n)]();case"second":return r[zh(n)]();case"millisecond":return r[Vh(n)]()}}function Nh(e){return e?"getUTCFullYear":"getFullYear"}function Uh(e){return e?"getUTCMonth":"getMonth"}function Hh(e){return e?"getUTCDate":"getDate"}function jh(e){return e?"getUTCHours":"getHours"}function Qh(e){return e?"getUTCMinutes":"getMinutes"}function zh(e){return e?"getUTCSeconds":"getSeconds"}function Vh(e){return e?"getUTCSeconds":"getSeconds"}function Gh(e){return e?"setUTCFullYear":"setFullYear"}function $h(e){return e?"setUTCMonth":"setMonth"}function qh(e){return e?"setUTCDate":"setDate"}function Wh(e){return e?"setUTCHours":"setHours"}function Kh(e){return e?"setUTCMinutes":"setMinutes"}function Yh(e){return e?"setUTCSeconds":"setSeconds"}function Xh(e){return e?"setUTCSeconds":"setSeconds"}function Jh(e,t,n,r,i,a,o,s){return Ni(),new Vs({style:{text:e,font:t,align:n,verticalAlign:r,padding:i,rich:a,overflow:o?"truncate":null,lineHeight:s}}).getBoundingRect()}function Zh(e){if(!Oi(e))return re(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function ed(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,function(e,t){return t.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var td=ve,nd=/([&<>"'])/g,rd={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function id(e){return null==e?"":(e+"").replace(nd,function(e,t){return rd[t]})}function ad(e,t,n){function r(e){return e&&be(e)?e:"-"}function i(e){return!(null==e||isNaN(e)||!isFinite(e))}var a="time"===t,o=e instanceof Date;if(a||o){var s=a?Ei(e):e;if(!isNaN(+s))return Oh(s,"yyyy-MM-dd hh:mm:ss",n);if(o)return"-"}if("ordinal"===t)return ie(e)?r(e):ae(e)&&i(e)?e+"":"-";var l=Pi(e);return i(l)?Zh(l):ie(e)?r(e):"-"}var od=["a","b","c","d","e","f","g"],sd=function(e,t){return"{"+e+(null==t?"":t)+"}"};function ld(e,t,n){te(t)||(t=[t]);var r=t.length;if(!r)return"";for(var i=t[0].$vars||[],a=0;a<i.length;a++){var o=od[a];e=e.replace(sd(o),sd(o,0))}for(var s=0;s<r;s++)for(var l=0;l<i.length;l++){var c=t[s][i[l]];e=e.replace(sd(od[l],s),n?id(c):c)}return e}function cd(e,t){var n=re(e)?{color:e,extraCssText:t}:e||{},r=n.color,i=n.type;t=n.extraCssText;var a=n.renderMode||"html";return r?"html"===a?"subItem"===i?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+id(r)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+id(r)+";"+(t||"")+'"></span>':{renderMode:a,content:"{"+(n.markerId||"markerX")+"|} ",style:"subItem"===i?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}:""}function ud(e,t,n){"week"!==e&&"month"!==e&&"quarter"!==e&&"half-year"!==e&&"year"!==e||(e="MM-dd\nyyyy");var r=Ei(t),i=n?"UTC":"",a=r["get"+i+"FullYear"](),o=r["get"+i+"Month"]()+1,s=r["get"+i+"Date"](),l=r["get"+i+"Hours"](),c=r["get"+i+"Minutes"](),u=r["get"+i+"Seconds"](),h=r["get"+i+"Milliseconds"]();return e=e.replace("MM",Dh(o,2)).replace("M",o).replace("yyyy",a).replace("yy",a%100+"").replace("dd",Dh(s,2)).replace("d",s).replace("hh",Dh(l,2)).replace("h",l).replace("mm",Dh(c,2)).replace("m",c).replace("ss",Dh(u,2)).replace("s",u).replace("SSS",Dh(h,3))}function hd(e){return e?e.charAt(0).toUpperCase()+e.substr(1):e}function dd(e,t){return t=t||"transparent",re(e)?e:oe(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function fd(e,t){if("_blank"===t||"blank"===t){var n=window.open();n.opener=null,n.location.href=e}else window.open(e,t)}var pd=q,Ad=["left","right","top","bottom","width","height"],gd=[["width","left","right"],["height","top","bottom"]];function md(e,t,n,r,i){var a=0,o=0;null==r&&(r=1/0),null==i&&(i=1/0);var s=0;t.eachChild(function(l,c){var u,h,d=l.getBoundingRect(),f=t.childAt(c+1),p=f&&f.getBoundingRect();if("horizontal"===e){var A=d.width+(p?-p.x+d.x:0);(u=a+A)>r||l.newline?(a=0,u=A,o+=s+n,s=d.height):s=Math.max(s,d.height)}else{var g=d.height+(p?-p.y+d.y:0);(h=o+g)>i||l.newline?(a+=s+n,o=0,h=g,s=d.width):s=Math.max(s,d.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),"horizontal"===e?a=u+n:o=h+n)})}var vd=md;ee(md,"vertical"),ee(md,"horizontal");function yd(e,t,n){n=td(n||0);var r=t.width,i=t.height,a=mi(e.left,r),o=mi(e.top,i),s=mi(e.right,r),l=mi(e.bottom,i),c=mi(e.width,r),u=mi(e.height,i),h=n[2]+n[0],d=n[1]+n[3],f=e.aspect;switch(isNaN(c)&&(c=r-s-d-a),isNaN(u)&&(u=i-l-h-o),null!=f&&(isNaN(c)&&isNaN(u)&&(f>r/i?c=.8*r:u=.8*i),isNaN(c)&&(c=f*u),isNaN(u)&&(u=c/f)),isNaN(a)&&(a=r-s-c-d),isNaN(o)&&(o=i-l-u-h),e.left||e.right){case"center":a=r/2-c/2-n[3];break;case"right":a=r-c-d}switch(e.top||e.bottom){case"middle":case"center":o=i/2-u/2-n[0];break;case"bottom":o=i-u-h}a=a||0,o=o||0,isNaN(c)&&(c=r-d-a-(s||0)),isNaN(u)&&(u=i-h-o-(l||0));var p=new tr(a+n[3],o+n[0],c,u);return p.margin=n,p}function bd(e,t,n,r,i){var a=!i||!i.hv||i.hv[0],o=!i||!i.hv||i.hv[1],s=i&&i.boundingMode||"all";if(a||o){var l;if("raw"===s)l="group"===e.type?new tr(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(l=e.getBoundingRect(),e.needLocalTransform()){var c=e.getLocalTransform();(l=l.clone()).applyTransform(c)}var u=yd(j({width:l.width,height:l.height},t),n,r),h=a?u.x-l.x:0,d=o?u.y-l.y:0;"raw"===s?(e.x=h,e.y=d):(e.x+=h,e.y+=d),e.markRedraw()}}function wd(e){var t=e.layoutMode||e.constructor.layoutMode;return oe(t)?t:t?{type:t}:null}function xd(e,t,n){var r=n&&n.ignoreSize;!te(r)&&(r=[r,r]);var i=o(gd[0],0),a=o(gd[1],1);function o(n,i){var a={},o=0,c={},u=0;if(pd(n,function(t){c[t]=e[t]}),pd(n,function(e){s(t,e)&&(a[e]=c[e]=t[e]),l(a,e)&&o++,l(c,e)&&u++}),r[i])return l(t,n[1])?c[n[2]]=null:l(t,n[2])&&(c[n[1]]=null),c;if(2!==u&&o){if(o>=2)return a;for(var h=0;h<n.length;h++){var d=n[h];if(!s(a,d)&&s(e,d)){a[d]=e[d];break}}return a}return c}function s(e,t){return e.hasOwnProperty(t)}function l(e,t){return null!=e[t]&&"auto"!==e[t]}function c(e,t,n){pd(e,function(e){t[e]=n[e]})}c(gd[0],e,i),c(gd[1],e,a)}function _d(e){return Cd({},e)}function Cd(e,t){return t&&e&&pd(Ad,function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e}var Sd=Zi(),kd=function(e){function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.uid=Ah("ec_cpt_model"),i}var n;return g(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=wd(this),r=n?_d(e):{};N(e,t.getTheme().get(this.mainType)),N(e,this.getDefaultOption()),n&&xd(e,r,n)},t.prototype.mergeOption=function(e,t){N(this.option,e,!0);var n=wd(this);n&&xd(this.option,e,n)},t.prototype.optionUpdated=function(e,t){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!function(e){return!(!e||!e[ua])}(e))return e.defaultOption;var t=Sd(this);if(!t.defaultOption){for(var n=[],r=e;r;){var i=r.prototype.defaultOption;i&&n.push(i),r=r.superClass}for(var a={},o=n.length-1;o>=0;o--)a=N(a,n[o],!0);t.defaultOption=a}return t.defaultOption},t.prototype.getReferringComponents=function(e,t){var n=e+"Index",r=e+"Id";return ia(this.ecModel,e,{index:this.get(n,!0),id:this.get(r,!0)},t)},t.prototype.getBoxLayoutParams=function(){return{left:this.get("left"),top:this.get("top"),right:this.get("right"),bottom:this.get("bottom"),width:this.get("width"),height:this.get("height")}},t.protoInitialize=((n=t.prototype).type="component",n.id="",n.name="",n.mainType="",n.subType="",void(n.componentIndex=0)),t}(fh);fa(kd,fh),ma(kd),function(e){var t={};e.registerSubTypeDefaulter=function(e,n){var r=ha(e);t[r.main]=n},e.determineSubType=function(n,r){var i=r.type;if(!i){var a=ha(n).main;e.hasSubTypes(n)&&t[a]&&(i=t[a](r))}return i}}(kd),function(e,t){function n(e,t){return e[t]||(e[t]={predecessor:[],successor:[]}),e[t]}e.topologicalTravel=function(e,r,i,a){if(e.length){var o=function(e){var r={},i=[];return q(e,function(a){var o=n(r,a),s=function(e,t){var n=[];return q(e,function(e){z(t,e)>=0&&n.push(e)}),n}(o.originalDeps=t(a),e);o.entryCount=s.length,0===o.entryCount&&i.push(a),q(s,function(e){z(o.predecessor,e)<0&&o.predecessor.push(e);var t=n(r,e);z(t.successor,e)<0&&t.successor.push(a)})}),{graph:r,noEntryList:i}}(r),s=o.graph,l=o.noEntryList,c={};for(q(e,function(e){c[e]=!0});l.length;){var u=l.pop(),h=s[u],d=!!c[u];d&&(i.call(a,u,h.originalDeps.slice()),delete c[u]),q(h.successor,d?p:f)}q(c,function(){var e="";throw new Error(e)})}function f(e){s[e].entryCount--,0===s[e].entryCount&&l.push(e)}function p(e){c[e]=!0,f(e)}}}(kd,function(e){var t=[];q(kd.getClassesByMainType(e),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=W(t,function(e){return ha(e).main}),"dataset"!==e&&z(t,"dataset")<=0&&t.unshift("dataset");return t});var Bd=kd,Ed="";"undefined"!=typeof navigator&&(Ed=navigator.platform||"");var Td="rgba(0, 0, 0, 0.2)",Id={darkMode:"auto",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Td,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Td,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Td,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Td,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Td,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Td,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Ed.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1},Md=Se(["tooltip","label","itemName","itemId","seriesName"]),Fd="original",Dd="arrayRows",Pd="objectRows",Od="keyedColumns",Ld="typedArray",Rd="unknown",Nd="column",Ud="row",Hd={Must:1,Might:2,Not:3},jd=Zi();function Qd(e,t,n){var r={},i=Vd(t);if(!i||!e)return r;var a,o,s=[],l=[],c=t.ecModel,u=jd(c).datasetMap,h=i.uid+"_"+n.seriesLayoutBy;q(e=e.slice(),function(t,n){var i=oe(t)?t:e[n]={name:t};"ordinal"===i.type&&null==a&&(a=n,o=p(i)),r[i.name]=[]});var d=u.get(h)||u.set(h,{categoryWayDim:o,valueWayDim:0});function f(e,t,n){for(var r=0;r<n;r++)e.push(t+r)}function p(e){var t=e.dimsDef;return t?t.length:1}return q(e,function(e,t){var n=e.name,i=p(e);if(null==a){var o=d.valueWayDim;f(r[n],o,i),f(l,o,i),d.valueWayDim+=i}else if(a===t)f(r[n],0,i),f(s,0,i);else{o=d.categoryWayDim;f(r[n],o,i),f(l,o,i),d.categoryWayDim+=i}}),s.length&&(r.itemName=s),l.length&&(r.seriesName=l),r}function zd(e,t,n){var r={};if(!Vd(e))return r;var i,a=t.sourceFormat,o=t.dimensionsDefine;a!==Pd&&a!==Od||q(o,function(e,t){"name"===(oe(e)?e.name:e)&&(i=t)});var s=function(){for(var e={},r={},s=[],l=0,c=Math.min(5,n);l<c;l++){var u=$d(t.data,a,t.seriesLayoutBy,o,t.startIndex,l);s.push(u);var h=u===Hd.Not;if(h&&null==e.v&&l!==i&&(e.v=l),(null==e.n||e.n===e.v||!h&&s[e.n]===Hd.Not)&&(e.n=l),d(e)&&s[e.n]!==Hd.Not)return e;h||(u===Hd.Might&&null==r.v&&l!==i&&(r.v=l),null!=r.n&&r.n!==r.v||(r.n=l))}function d(e){return null!=e.v&&null!=e.n}return d(e)?e:d(r)?r:null}();if(s){r.value=[s.v];var l=null!=i?i:s.n;r.itemName=[l],r.seriesName=[l]}return r}function Vd(e){if(!e.get("data",!0))return ia(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},na).models[0]}function Gd(e,t){return $d(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function $d(e,t,n,r,i,a){var o,s,l;if(le(e))return Hd.Not;if(r){var c=r[a];oe(c)?(s=c.name,l=c.type):re(c)&&(s=c)}if(null!=l)return"ordinal"===l?Hd.Must:Hd.Not;if(t===Dd){var u=e;if(n===Ud){for(var h=u[a],d=0;d<(h||[]).length&&d<5;d++)if(null!=(o=y(h[i+d])))return o}else for(d=0;d<u.length&&d<5;d++){var f=u[i+d];if(f&&null!=(o=y(f[a])))return o}}else if(t===Pd){var p=e;if(!s)return Hd.Not;for(d=0;d<p.length&&d<5;d++){if((m=p[d])&&null!=(o=y(m[s])))return o}}else if(t===Od){var A=e;if(!s)return Hd.Not;if(!(h=A[s])||le(h))return Hd.Not;for(d=0;d<h.length&&d<5;d++)if(null!=(o=y(h[d])))return o}else if(t===Fd){var g=e;for(d=0;d<g.length&&d<5;d++){var m,v=Gi(m=g[d]);if(!te(v))return Hd.Not;if(null!=(o=y(v[a])))return o}}function y(e){var t=re(e);return null!=e&&isFinite(e)&&""!==e?t?Hd.Might:Hd.Not:t&&"-"!==e?Hd.Must:void 0}return Hd.Not}var qd=Se();var Wd,Kd,Yd,Xd=Zi(),Jd=Zi(),Zd=function(){function e(){}return e.prototype.getColorFromPalette=function(e,t,n){var r=Qi(this.get("color",!0)),i=this.get("colorLayer",!0);return tf(this,Xd,r,i,e,t,n)},e.prototype.clearColorPalette=function(){var e,t;(t=Xd)(e=this).paletteIdx=0,t(e).paletteNameMap={}},e}();function ef(e,t,n,r){var i=Qi(e.get(["aria","decal","decals"]));return tf(e,Jd,i,null,t,n,r)}function tf(e,t,n,r,i,a,o){var s=t(a=a||e),l=s.paletteIdx||0,c=s.paletteNameMap=s.paletteNameMap||{};if(c.hasOwnProperty(i))return c[i];var u=null!=o&&r?function(e,t){for(var n=e.length,r=0;r<n;r++)if(e[r].length>t)return e[r];return e[n-1]}(r,o):n;if((u=u||n)&&u.length){var h=u[l];return i&&(c[i]=h),s.paletteIdx=(l+1)%u.length,h}}var nf=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return g(t,e),t.prototype.init=function(e,t,n,r,i,a){r=r||{},this.option=null,this._theme=new fh(r),this._locale=new fh(i),this._optionManager=a},t.prototype.setOption=function(e,t,n){var r=of(t);this._optionManager.setOption(e,n,r),this._resetOption(null,r)},t.prototype.resetOption=function(e,t){return this._resetOption(e,of(t))},t.prototype._resetOption=function(e,t){var n=!1,r=this._optionManager;if(!e||"recreate"===e){var i=r.mountOption("recreate"===e);this.option&&"recreate"!==e?(this.restoreData(),this._mergeOption(i,t)):Yd(this,i),n=!0}if("timeline"!==e&&"media"!==e||this.restoreData(),!e||"recreate"===e||"timeline"===e){var a=r.getTimelineOption(this);a&&(n=!0,this._mergeOption(a,t))}if(!e||"recreate"===e||"media"===e){var o=r.getMediaOption(this);o.length&&q(o,function(e){n=!0,this._mergeOption(e,t)},this)}return n},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,t){var n=this.option,r=this._componentsMap,i=this._componentsCount,a=[],o=Se(),s=t&&t.replaceMergeMainTypeMap;jd(this).datasetMap=Se(),q(e,function(e,t){null!=e&&(Bd.hasClass(t)?t&&(a.push(t),o.set(t,!0)):n[t]=null==n[t]?R(e):N(n[t],e,!0))}),s&&s.each(function(e,t){Bd.hasClass(t)&&!o.get(t)&&(a.push(t),o.set(t,!0))}),Bd.topologicalTravel(a,Bd.getAllClassMainTypes(),function(t){var a=function(e,t,n){var r=qd.get(t);if(!r)return n;var i=r(e);return i?n.concat(i):n}(this,t,Qi(e[t])),o=r.get(t),l=o?s&&s.get(t)?"replaceMerge":"normalMerge":"replaceAll",c=$i(o,a,l);(function(e,t,n){q(e,function(e){var r=e.newOption;oe(r)&&(e.keyInfo.mainType=t,e.keyInfo.subType=function(e,t,n,r){return t.type?t.type:n?n.subType:r.determineSubType(e,t)}(t,r,e.existing,n))})})(c,t,Bd),n[t]=null,r.set(t,null),i.set(t,0);var u=[],h=[],d=0;q(c,function(e,n){var r=e.existing,i=e.newOption;if(i){var a=Bd.getClass(t,e.keyInfo.subType,!0);if(r&&r.constructor===a)r.name=e.keyInfo.name,r.mergeOption(i,this),r.optionUpdated(i,!1);else{var o=H({componentIndex:n},e.keyInfo);H(r=new a(i,this,this,o),o),e.brandNew&&(r.__requireNewView=!0),r.init(i,this,this),r.optionUpdated(null,!0)}}else r&&(r.mergeOption({},this),r.optionUpdated({},!1));r?(u.push(r.option),h.push(r),d++):(u.push(void 0),h.push(void 0))},this),n[t]=u,r.set(t,h),i.set(t,d),"series"===t&&Wd(this)},this),this._seriesIndices||Wd(this)},t.prototype.getOption=function(){var e=R(this.option);return q(e,function(t,n){if(Bd.hasClass(n)){for(var r=Qi(t),i=r.length,a=!1,o=i-1;o>=0;o--)r[o]&&!Xi(r[o])?a=!0:(r[o]=null,!a&&i--);r.length=i,e[n]=r}}),delete e["\0_ec_inner"],e},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.getLocale=function(e){return this.getLocaleModel().get(e)},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,t){var n=this._componentsMap.get(e);if(n){var r=n[t||0];if(r)return r;if(null==t)for(var i=0;i<n.length;i++)if(n[i])return n[i]}},t.prototype.queryComponents=function(e){var t=e.mainType;if(!t)return[];var n,r=e.index,i=e.id,a=e.name,o=this._componentsMap.get(t);return o&&o.length?(null!=r?(n=[],q(Qi(r),function(e){o[e]&&n.push(o[e])})):n=null!=i?rf("id",i,o):null!=a?rf("name",a,o):Y(o,function(e){return!!e}),af(n,e)):[]},t.prototype.findComponents=function(e){var t,n,r,i,a,o=e.query,s=e.mainType,l=(n=s+"Index",r=s+"Id",i=s+"Name",!(t=o)||null==t[n]&&null==t[r]&&null==t[i]?null:{mainType:s,index:t[n],id:t[r],name:t[i]}),c=l?this.queryComponents(l):Y(this._componentsMap.get(s),function(e){return!!e});return a=af(c,e),e.filter?Y(a,e.filter):a},t.prototype.eachComponent=function(e,t,n){var r=this._componentsMap;if(ne(e)){var i=t,a=e;r.each(function(e,t){for(var n=0;e&&n<e.length;n++){var r=e[n];r&&a.call(i,t,r,r.componentIndex)}})}else for(var o=re(e)?r.get(e):oe(e)?this.findComponents(e):null,s=0;o&&s<o.length;s++){var l=o[s];l&&t.call(n,l,l.componentIndex)}},t.prototype.getSeriesByName=function(e){var t=Ki(e,null);return Y(this._componentsMap.get("series"),function(e){return!!e&&null!=t&&e.name===t})},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get("series")[e]},t.prototype.getSeriesByType=function(e){return Y(this._componentsMap.get("series"),function(t){return!!t&&t.subType===e})},t.prototype.getSeries=function(){return Y(this._componentsMap.get("series").slice(),function(e){return!!e})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(e,t){Kd(this),q(this._seriesIndices,function(n){var r=this._componentsMap.get("series")[n];e.call(t,r,n)},this)},t.prototype.eachRawSeries=function(e,t){q(this._componentsMap.get("series"),function(n){n&&e.call(t,n,n.componentIndex)})},t.prototype.eachSeriesByType=function(e,t,n){Kd(this),q(this._seriesIndices,function(r){var i=this._componentsMap.get("series")[r];i.subType===e&&t.call(n,i,r)},this)},t.prototype.eachRawSeriesByType=function(e,t,n){return q(this.getSeriesByType(e),t,n)},t.prototype.isSeriesFiltered=function(e){return Kd(this),null==this._seriesIndicesMap.get(e.componentIndex)},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,t){Kd(this);var n=[];q(this._seriesIndices,function(r){var i=this._componentsMap.get("series")[r];e.call(t,i,r)&&n.push(r)},this),this._seriesIndices=n,this._seriesIndicesMap=Se(n)},t.prototype.restoreData=function(e){Wd(this);var t=this._componentsMap,n=[];t.each(function(e,t){Bd.hasClass(t)&&n.push(t)}),Bd.topologicalTravel(n,Bd.getAllClassMainTypes(),function(n){q(t.get(n),function(t){!t||"series"===n&&function(e,t){if(t){var n=t.seriesIndex,r=t.seriesId,i=t.seriesName;return null!=n&&e.componentIndex!==n||null!=r&&e.id!==r||null!=i&&e.name!==i}}(t,e)||t.restoreData()})})},t.internalField=(Wd=function(e){var t=e._seriesIndices=[];q(e._componentsMap.get("series"),function(e){e&&t.push(e.componentIndex)}),e._seriesIndicesMap=Se(t)},Kd=function(e){},void(Yd=function(e,t){e.option={},e.option["\0_ec_inner"]=1,e._componentsMap=Se({series:[]}),e._componentsCount=Se();var n,r,i,a=t.aria;oe(a)&&null==a.enabled&&(a.enabled=!0),n=t,r=e._theme.option,i=n.color&&!n.colorLayer,q(r,function(e,t){"colorLayer"===t&&i||Bd.hasClass(t)||("object"==typeof e?n[t]=n[t]?N(n[t],e,!1):R(e):null==n[t]&&(n[t]=e))}),N(t,Id,!1),e._mergeOption(t,null)})),t}(fh);function rf(e,t,n){if(te(t)){var r=Se();return q(t,function(e){null!=e&&(null!=Ki(e,null)&&r.set(e,!0))}),Y(n,function(t){return t&&r.get(t[e])})}var i=Ki(t,null);return Y(n,function(t){return t&&null!=i&&t[e]===i})}function af(e,t){return t.hasOwnProperty("subType")?Y(e,function(e){return e&&e.subType===t.subType}):e}function of(e){var t=Se();return e&&q(Qi(e.replaceMerge),function(e){t.set(e,!0)}),{replaceMergeMainTypeMap:t}}G(nf,Zd);var sf=nf,lf=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],cf=function(){return function(e){q(lf,function(t){this[t]=Z(e[t],e)},this)}}(),uf={},hf=function(){function e(){this._coordinateSystems=[]}return e.prototype.create=function(e,t){var n=[];q(uf,function(r,i){var a=r.create(e,t);n=n.concat(a||[])}),this._coordinateSystems=n},e.prototype.update=function(e,t){q(this._coordinateSystems,function(n){n.update&&n.update(e,t)})},e.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},e.register=function(e,t){uf[e]=t},e.get=function(e){return uf[e]},e}(),df=/^(min|max)?(.+)$/;function ff(e,t,n){var r={width:t,height:n,aspectratio:t/n},i=!0;return q(e,function(e,t){var n=t.match(df);if(n&&n[1]&&n[2]){var a=n[1],o=n[2].toLowerCase();(function(e,t,n){return"min"===n?e>=t:"max"===n?e<=t:e===t})(r[o],e,a)||(i=!1)}}),i}var pf=function(){function e(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return e.prototype.setOption=function(e,t,n){e&&(q(Qi(e.series),function(e){e&&e.data&&le(e.data)&&xe(e.data)}),q(Qi(e.dataset),function(e){e&&e.source&&le(e.source)&&xe(e.source)})),e=R(e);var r=this._optionBackup,i=function(e,t,n){var r,i,a=[],o=e.baseOption,s=e.timeline,l=e.options,c=e.media,u=!!e.media,h=!!(l||s||o&&o.timeline);o?(i=o).timeline||(i.timeline=s):((h||u)&&(e.options=e.media=null),i=e);u&&te(c)&&q(c,function(e){e&&e.option&&(e.query?a.push(e):r||(r=e))});function d(e){q(t,function(t){t(e,n)})}return d(i),q(l,function(e){return d(e)}),q(a,function(e){return d(e.option)}),{baseOption:i,timelineOptions:l||[],mediaDefault:r,mediaList:a}}(e,t,!r);this._newBaseOption=i.baseOption,r?(i.timelineOptions.length&&(r.timelineOptions=i.timelineOptions),i.mediaList.length&&(r.mediaList=i.mediaList),i.mediaDefault&&(r.mediaDefault=i.mediaDefault)):this._optionBackup=i},e.prototype.mountOption=function(e){var t=this._optionBackup;return this._timelineOptions=t.timelineOptions,this._mediaList=t.mediaList,this._mediaDefault=t.mediaDefault,this._currentMediaIndices=[],R(e?t.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(e){var t,n=this._timelineOptions;if(n.length){var r=e.getComponent("timeline");r&&(t=R(n[r.getCurrentIndex()]))}return t},e.prototype.getMediaOption=function(e){var t,n,r=this._api.getWidth(),i=this._api.getHeight(),a=this._mediaList,o=this._mediaDefault,s=[],l=[];if(!a.length&&!o)return l;for(var c=0,u=a.length;c<u;c++)ff(a[c].query,r,i)&&s.push(c);return!s.length&&o&&(s=[-1]),s.length&&(t=s,n=this._currentMediaIndices,t.join(",")!==n.join(","))&&(l=W(s,function(e){return R(-1===e?o.option:a[e].option)})),this._currentMediaIndices=s,l},e}(),Af=q,gf=oe,mf=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function vf(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=mf.length;n<r;n++){var i=mf[n],a=t.normal,o=t.emphasis;a&&a[i]&&(e[i]=e[i]||{},e[i].normal?N(e[i].normal,a[i]):e[i].normal=a[i],a[i]=null),o&&o[i]&&(e[i]=e[i]||{},e[i].emphasis?N(e[i].emphasis,o[i]):e[i].emphasis=o[i],o[i]=null)}}function yf(e,t,n){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var r=e[t].normal,i=e[t].emphasis;r&&(n?(e[t].normal=e[t].emphasis=null,j(e[t],r)):e[t]=r),i&&(e.emphasis=e.emphasis||{},e.emphasis[t]=i,i.focus&&(e.emphasis.focus=i.focus),i.blurScope&&(e.emphasis.blurScope=i.blurScope))}}function bf(e){yf(e,"itemStyle"),yf(e,"lineStyle"),yf(e,"areaStyle"),yf(e,"label"),yf(e,"labelLine"),yf(e,"upperLabel"),yf(e,"edgeLabel")}function wf(e,t){var n=gf(e)&&e[t],r=gf(n)&&n.textStyle;if(r){0;for(var i=0,a=Vi.length;i<a;i++){var o=Vi[i];r.hasOwnProperty(o)&&(n[o]=r[o])}}}function xf(e){e&&(bf(e),wf(e,"label"),e.emphasis&&wf(e.emphasis,"label"))}function _f(e){return te(e)?e:e?[e]:[]}function Cf(e){return(te(e)?e[0]:e)||{}}function Sf(e,t){Af(_f(e.series),function(e){gf(e)&&function(e){if(gf(e)){vf(e),bf(e),wf(e,"label"),wf(e,"upperLabel"),wf(e,"edgeLabel"),e.emphasis&&(wf(e.emphasis,"label"),wf(e.emphasis,"upperLabel"),wf(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(vf(t),xf(t));var n=e.markLine;n&&(vf(n),xf(n));var r=e.markArea;r&&xf(r);var i=e.data;if("graph"===e.type){i=i||e.nodes;var a=e.links||e.edges;if(a&&!le(a))for(var o=0;o<a.length;o++)xf(a[o]);q(e.categories,function(e){bf(e)})}if(i&&!le(i))for(o=0;o<i.length;o++)xf(i[o]);if((t=e.markPoint)&&t.data){var s=t.data;for(o=0;o<s.length;o++)xf(s[o])}if((n=e.markLine)&&n.data){var l=n.data;for(o=0;o<l.length;o++)te(l[o])?(xf(l[o][0]),xf(l[o][1])):xf(l[o])}"gauge"===e.type?(wf(e,"axisLabel"),wf(e,"title"),wf(e,"detail")):"treemap"===e.type?(yf(e.breadcrumb,"itemStyle"),q(e.levels,function(e){bf(e)})):"tree"===e.type&&bf(e.leaves)}}(e)});var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),Af(n,function(t){Af(_f(e[t]),function(e){e&&(wf(e,"axisLabel"),wf(e.axisPointer,"label"))})}),Af(_f(e.parallel),function(e){var t=e&&e.parallelAxisDefault;wf(t,"axisLabel"),wf(t&&t.axisPointer,"label")}),Af(_f(e.calendar),function(e){yf(e,"itemStyle"),wf(e,"dayLabel"),wf(e,"monthLabel"),wf(e,"yearLabel")}),Af(_f(e.radar),function(e){wf(e,"name"),e.name&&null==e.axisName&&(e.axisName=e.name,delete e.name),null!=e.nameGap&&null==e.axisNameGap&&(e.axisNameGap=e.nameGap,delete e.nameGap)}),Af(_f(e.geo),function(e){gf(e)&&(xf(e),Af(_f(e.regions),function(e){xf(e)}))}),Af(_f(e.timeline),function(e){xf(e),yf(e,"label"),yf(e,"itemStyle"),yf(e,"controlStyle",!0);var t=e.data;te(t)&&q(t,function(e){oe(e)&&(yf(e,"label"),yf(e,"itemStyle"))})}),Af(_f(e.toolbox),function(e){yf(e,"iconStyle"),Af(e.feature,function(e){yf(e,"iconStyle")})}),wf(Cf(e.axisPointer),"label"),wf(Cf(e.tooltip).axisPointer,"label")}function kf(e){e&&q(Bf,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var Bf=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],Ef=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Tf=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function If(e){var t=e&&e.itemStyle;if(t)for(var n=0;n<Tf.length;n++){var r=Tf[n][1],i=Tf[n][0];null!=t[r]&&(t[i]=t[r])}}function Mf(e){e&&"edge"===e.alignTo&&null!=e.margin&&null==e.edgeDistance&&(e.edgeDistance=e.margin)}function Ff(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function Df(e,t){Sf(e,t),e.series=Qi(e.series),q(e.series,function(e){if(oe(e)){var t,n=e.type;if("line"===n)null!=e.clipOverflow&&(e.clip=e.clipOverflow);else if("pie"===n||"gauge"===n){if(null!=e.clockWise&&(e.clockwise=e.clockWise),Mf(e.label),(a=e.data)&&!le(a))for(var r=0;r<a.length;r++)Mf(a[r]);null!=e.hoverOffset&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(e.emphasis.scaleSize=e.hoverOffset))}else if("gauge"===n){var i=function(e,t){for(var n=t.split(","),r=e,i=0;i<n.length&&null!=(r=r&&r[n[i]]);i++);return r}(e,"pointer.color");null!=i&&function(e,t,n,r){for(var i,a=t.split(","),o=e,s=0;s<a.length-1;s++)null==o[i=a[s]]&&(o[i]={}),o=o[i];(r||null==o[a[s]])&&(o[a[s]]=n)}(e,"itemStyle.color",i)}else if("bar"===n){var a;if(If(e),If(e.backgroundStyle),If(e.emphasis),(a=e.data)&&!le(a))for(r=0;r<a.length;r++)"object"==typeof a[r]&&(If(a[r]),If(a[r]&&a[r].emphasis))}else if("sunburst"===n){var o=e.highlightPolicy;o&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=o)),Ff(e),function e(t,n){if(t)for(var r=0;r<t.length;r++)n(t[r]),t[r]&&e(t[r].children,n)}(e.data,Ff)}else"graph"===n||"sankey"===n?(t=e)&&null!=t.focusNodeAdjacency&&(t.emphasis=t.emphasis||{},null==t.emphasis.focus&&(t.emphasis.focus="adjacency")):"map"===n&&(e.mapType&&!e.map&&(e.map=e.mapType),e.mapLocation&&j(e,e.mapLocation));null!=e.hoverAnimation&&(e.emphasis=e.emphasis||{},e.emphasis&&null==e.emphasis.scale&&(e.emphasis.scale=e.hoverAnimation)),kf(e)}}),e.dataRange&&(e.visualMap=e.dataRange),q(Ef,function(t){var n=e[t];n&&(te(n)||(n=[n]),q(n,function(e){kf(e)}))})}function Pf(e){q(e,function(t,n){var r=[],i=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,l=o.map(a,function(a,l,c){var u,h,d=o.get(t.stackedDimension,c);if(isNaN(d))return i;s?h=o.getRawIndex(c):u=o.get(t.stackedByDimension,c);for(var f=NaN,p=n-1;p>=0;p--){var A=e[p];if(s||(h=A.data.rawIndexOf(A.stackedByDimension,u)),h>=0){var g=A.data.getByRawIndex(A.stackResultDimension,h);if(d>=0&&g>0||d<=0&&g<0){d+=g,f=g;break}}}return r[0]=d,r[1]=f,r});o.hostModel.setData(l),t.data=l})}var Of,Lf,Rf,Nf,Uf,Hf=function(){return function(e){this.data=e.data||(e.sourceFormat===Od?{}:[]),this.sourceFormat=e.sourceFormat||Rd,this.seriesLayoutBy=e.seriesLayoutBy||Nd,this.startIndex=e.startIndex||0,this.dimensionsDefine=e.dimensionsDefine,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.encodeDefine=e.encodeDefine,this.metaRawOption=e.metaRawOption}}();function jf(e){return e instanceof Hf}function Qf(e,t,n,r){n=n||Gf(e);var i=t.seriesLayoutBy,a=function(e,t,n,r,i){var a,o;if(!e)return{dimensionsDefine:$f(i),startIndex:o,dimensionsDetectedCount:a};if(t===Dd){var s=e;"auto"===r||null==r?qf(function(e){null!=e&&"-"!==e&&(re(e)?null==o&&(o=1):o=0)},n,s,10):o=ae(r)?r:r?1:0,i||1!==o||(i=[],qf(function(e,t){i[t]=null!=e?e+"":""},n,s,1/0)),a=i?i.length:n===Ud?s.length:s[0]?s[0].length:null}else if(t===Pd)i||(i=function(e){var t,n=0;for(;n<e.length&&!(t=e[n++]););if(t){var r=[];return q(t,function(e,t){r.push(t)}),r}}(e));else if(t===Od)i||(i=[],q(e,function(e,t){i.push(t)}));else if(t===Fd){var l=Gi(e[0]);a=te(l)&&l.length||1}return{startIndex:o,dimensionsDefine:$f(i),dimensionsDetectedCount:a}}(e,n,i,t.sourceHeader,t.dimensions);return new Hf({data:e,sourceFormat:n,seriesLayoutBy:i,dimensionsDefine:a.dimensionsDefine,startIndex:a.startIndex,dimensionsDetectedCount:a.dimensionsDetectedCount,encodeDefine:Vf(r),metaRawOption:R(t)})}function zf(e){return new Hf({data:e,sourceFormat:le(e)?Ld:Fd})}function Vf(e){return e?Se(e):null}function Gf(e){var t=Rd;if(le(e))t=Ld;else if(te(e)){0===e.length&&(t=Dd);for(var n=0,r=e.length;n<r;n++){var i=e[n];if(null!=i){if(te(i)){t=Dd;break}if(oe(i)){t=Pd;break}}}}else if(oe(e))for(var a in e)if(Ee(e,a)&&$(e[a])){t=Od;break}return t}function $f(e){if(e){var t=Se();return W(e,function(e,n){var r={name:(e=oe(e)?e:{name:e}).name,displayName:e.displayName,type:e.type};if(null==r.name)return r;r.name+="",null==r.displayName&&(r.displayName=r.name);var i=t.get(r.name);return i?r.name+="-"+i.count++:t.set(r.name,{count:1}),r})}}function qf(e,t,n,r){if(t===Ud)for(var i=0;i<n.length&&i<r;i++)e(n[i]?n[i][0]:null,i);else{var a=n[0]||[];for(i=0;i<a.length&&i<r;i++)e(a[i],i)}}var Wf=function(){function e(e,t){var n=jf(e)?e:zf(e);this._source=n;var r=this._data=n.data;n.sourceFormat===Ld&&(this._offset=0,this._dimSize=t,this._data=r),Uf(this,r,n)}var t;return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(e,t){},e.prototype.appendData=function(e){},e.prototype.clean=function(){},e.protoInitialize=((t=e.prototype).pure=!1,void(t.persistent=!0)),e.internalField=function(){var e;Uf=function(e,i,a){var o=a.sourceFormat,s=a.seriesLayoutBy,l=a.startIndex,c=a.dimensionsDefine,u=Nf[ip(o,s)];if(H(e,u),o===Ld)e.getItem=t,e.count=r,e.fillStorage=n;else{var h=Xf(o,s);e.getItem=Z(h,null,i,l,c);var d=ep(o,s);e.count=Z(d,null,i,l,c)}};var t=function(e,t){e-=this._offset,t=t||[];for(var n=this._data,r=this._dimSize,i=r*e,a=0;a<r;a++)t[a]=n[i+a];return t},n=function(e,t,n,r){for(var i=this._data,a=this._dimSize,o=0;o<a;o++){for(var s=r[o],l=null==s[0]?1/0:s[0],c=null==s[1]?-1/0:s[1],u=t-e,h=n[o],d=0;d<u;d++){var f=i[d*a+o];h[e+d]=f,f<l&&(l=f),f>c&&(c=f)}s[0]=l,s[1]=c}},r=function(){return this._data?this._data.length/this._dimSize:0};function i(e){for(var t=0;t<e.length;t++)this._data.push(e[t])}(e={})[Dd+"_"+Nd]={pure:!0,appendData:i},e[Dd+"_"+Ud]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[Pd]={pure:!0,appendData:i},e[Od]={pure:!0,appendData:function(e){var t=this._data;q(e,function(e,n){for(var r=t[n]||(t[n]=[]),i=0;i<(e||[]).length;i++)r.push(e[i])})}},e[Fd]={appendData:i},e[Ld]={persistent:!1,pure:!0,appendData:function(e){this._data=e},clean:function(){this._offset+=this.count(),this._data=null}},Nf=e}(),e}(),Kf=function(e,t,n,r){return e[r]},Yf=((Of={})[Dd+"_"+Nd]=function(e,t,n,r){return e[r+t]},Of[Dd+"_"+Ud]=function(e,t,n,r){r+=t;for(var i=[],a=e,o=0;o<a.length;o++){var s=a[o];i.push(s?s[r]:null)}return i},Of[Pd]=Kf,Of[Od]=function(e,t,n,r){for(var i=[],a=0;a<n.length;a++){var o=n[a].name;0;var s=e[o];i.push(s?s[r]:null)}return i},Of[Fd]=Kf,Of);function Xf(e,t){var n=Yf[ip(e,t)];return n}var Jf=function(e,t,n){return e.length},Zf=((Lf={})[Dd+"_"+Nd]=function(e,t,n){return Math.max(0,e.length-t)},Lf[Dd+"_"+Ud]=function(e,t,n){var r=e[0];return r?Math.max(0,r.length-t):0},Lf[Pd]=Jf,Lf[Od]=function(e,t,n){var r=n[0].name;var i=e[r];return i?i.length:0},Lf[Fd]=Jf,Lf);function ep(e,t){var n=Zf[ip(e,t)];return n}var tp=function(e,t,n){return null!=t?e[t]:e},np=((Rf={})[Dd]=tp,Rf[Pd]=function(e,t,n){return null!=t?e[n]:e},Rf[Od]=tp,Rf[Fd]=function(e,t,n){var r=Gi(e);return null!=t&&r instanceof Array?r[t]:r},Rf[Ld]=tp,Rf);function rp(e){var t=np[e];return t}function ip(e,t){return e===Dd?e+"_"+t:e}function ap(e,t,n){if(e){var r=e.getRawDataItem(t);if(null!=r){var i,a,o=e.getProvider().getSource().sourceFormat,s=e.getDimensionInfo(n);return s&&(i=s.name,a=s.index),rp(o)(r,a,i)}}}var op=/\{@(.+?)\}/g,sp=function(){function e(){}return e.prototype.getDataParams=function(e,t){var n=this.getData(t),r=this.getRawValue(e,t),i=n.getRawIndex(e),a=n.getName(e),o=n.getRawDataItem(e),s=n.getItemVisual(e,"style"),l=s&&s[n.getItemVisual(e,"drawType")||"fill"],c=s&&s.stroke,u=this.mainType,h="series"===u,d=n.userOutput;return{componentType:u,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:h?this.subType:null,seriesIndex:this.seriesIndex,seriesId:h?this.id:null,seriesName:h?this.name:null,name:a,dataIndex:i,data:o,dataType:t,value:r,color:l,borderColor:c,dimensionNames:d?d.dimensionNames:null,encode:d?d.encode:null,$vars:["seriesName","name","value"]}},e.prototype.getFormattedLabel=function(e,t,n,r,i,a){t=t||"normal";var o=this.getData(n),s=this.getDataParams(e,n);(a&&(s.value=a.interpolatedValue),null!=r&&te(s.value)&&(s.value=s.value[r]),i)||(i=o.getItemModel(e).get("normal"===t?["label","formatter"]:[t,"label","formatter"]));return"function"==typeof i?(s.status=t,s.dimensionIndex=r,i(s)):"string"==typeof i?ld(i,s).replace(op,function(t,n){var r=n.length,i="["===n.charAt(0)&&"]"===n.charAt(r-1)?+n.slice(1,r-1):n,s=ap(o,e,i);if(a&&te(a.interpolatedValue)){var l=o.getDimensionInfo(i);l&&(s=a.interpolatedValue[l.index])}return null!=s?s+"":""}):void 0},e.prototype.getRawValue=function(e,t){return ap(this.getData(t),e)},e.prototype.formatTooltip=function(e,t,n){},e}();function lp(e){var t,n;return oe(e)?e.type&&(n=e):t=e,{markupText:t,markupFragment:n}}function cp(e){return new up(e)}var up=function(){function e(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return e.prototype.perform=function(e){var t,n=this._upstream,r=e&&e.skip;if(this._dirty&&n){var i=this.context;i.data=i.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!r&&(t=this._plan(this.context));var a,o=u(this._modBy),s=this._modDataCount||0,l=u(e&&e.modBy),c=e&&e.modDataCount||0;function u(e){return!(e>=1)&&(e=1),e}o===l&&s===c||(t="reset"),(this._dirty||"reset"===t)&&(this._dirty=!1,a=this._doReset(r)),this._modBy=l,this._modDataCount=c;var h=e&&e.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var d=this._dueIndex,f=Math.min(null!=h?this._dueIndex+h:1/0,this._dueEnd);if(!r&&(a||d<f)){var p=this._progress;if(te(p))for(var A=0;A<p.length;A++)this._doProgress(p[A],d,f,l,c);else this._doProgress(p,d,f,l,c)}this._dueIndex=f;var g=null!=this._settedOutputEnd?this._settedOutputEnd:f;0,this._outputDueEnd=g}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(e,t,n,r,i){hp.reset(t,n,r,i),this._callingProgress=e,this._callingProgress({start:t,end:n,count:n-t,next:hp.next},this.context)},e.prototype._doReset=function(e){var t,n;this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!e&&this._reset&&((t=this._reset(this.context))&&t.progress&&(n=t.forceFirstProgress,t=t.progress),te(t)&&!t.length&&(t=null)),this._progress=t,this._modBy=this._modDataCount=null;var r=this._downstream;return r&&r.dirty(),n},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},e.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},e.prototype.getUpstream=function(){return this._upstream},e.prototype.getDownstream=function(){return this._downstream},e.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},e}(),hp=function(){var e,t,n,r,i,a={reset:function(l,c,u,h){t=l,e=c,n=u,r=h,i=Math.ceil(r/n),a.next=n>1&&r>0?s:o}};return a;function o(){return t<e?t++:null}function s(){var a=t%i*n+Math.ceil(t/i),o=t>=e?null:a<r?a:t;return t++,o}}();function dp(e,t){var n=t&&t.type;if("ordinal"===n){var r=t&&t.ordinalMeta;return r?r.parseAndCollect(e):e}return"time"===n&&"number"!=typeof e&&null!=e&&"-"!==e&&(e=+Ei(e)),null==e||""===e?NaN:+e}var fp=Se({number:function(e){return parseFloat(e)},time:function(e){return+Ei(e)},trim:function(e){return"string"==typeof e?be(e):e}});function pp(e){return fp.get(e)}var Ap={lt:function(e,t){return e<t},lte:function(e,t){return e<=t},gt:function(e,t){return e>t},gte:function(e,t){return e>=t}},gp=function(){function e(e,t){if("number"!=typeof t){var n="";0,Ui(n)}this._opFn=Ap[e],this._rvalFloat=Pi(t)}return e.prototype.evaluate=function(e){return"number"==typeof e?this._opFn(e,this._rvalFloat):this._opFn(Pi(e),this._rvalFloat)},e}(),mp=function(){function e(e,t){var n="desc"===e;this._resultLT=n?1:-1,null==t&&(t=n?"min":"max"),this._incomparable="min"===t?-1/0:1/0}return e.prototype.evaluate=function(e,t){var n=typeof e,r=typeof t,i="number"===n?e:Pi(e),a="number"===r?t:Pi(t),o=isNaN(i),s=isNaN(a);if(o&&(i=this._incomparable),s&&(a=this._incomparable),o&&s){var l="string"===n,c="string"===r;l&&(i=c?e:0),c&&(a=l?t:0)}return i<a?this._resultLT:i>a?-this._resultLT:0},e}(),vp=function(){function e(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=Pi(t)}return e.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var n=typeof e;n===this._rvalTypeof||"number"!==n&&"number"!==this._rvalTypeof||(t=Pi(e)===this._rvalFloat)}return this._isEQ?t:!t},e}();function yp(e,t){return"eq"===e||"ne"===e?new vp("eq"===e,t):Ee(Ap,e)?new gp(e,t):null}var bp=function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(e){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(e){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(e,t){},e.prototype.retrieveValueFromItem=function(e,t){},e.prototype.convertValue=function(e,t){return dp(e,t)},e}();function wp(e){var t=e.sourceFormat;if(!Bp(t)){var n="";0,Ui(n)}return e.data}function xp(e){var t=e.sourceFormat,n=e.data;if(!Bp(t)){var r="";0,Ui(r)}if(t===Dd){for(var i=[],a=0,o=n.length;a<o;a++)i.push(n[a].slice());return i}if(t===Pd){for(i=[],a=0,o=n.length;a<o;a++)i.push(H({},n[a]));return i}}function _p(e,t,n){if(null!=n)return"number"==typeof n||!isNaN(n)&&!Ee(t,n)?e[n]:Ee(t,n)?t[n]:void 0}function Cp(e){return R(e)}var Sp=Se();function kp(e,t,n,r){var i="";t.length||Ui(i),oe(e)||Ui(i);var a=e.type,o=Sp.get(a);o||Ui(i);var s=W(t,function(e){return function(e,t){var n=new bp,r=e.data,i=n.sourceFormat=e.sourceFormat,a=e.startIndex,o="";e.seriesLayoutBy!==Nd&&Ui(o);var s=[],l={},c=e.dimensionsDefine;if(c)q(c,function(e,t){var n=e.name,r={index:t,name:n,displayName:e.displayName};if(s.push(r),null!=n){var i="";Ee(l,n)&&Ui(i),l[n]=r}});else for(var u=0;u<e.dimensionsDetectedCount;u++)s.push({index:u});var h=Xf(i,Nd);t.__isBuiltIn&&(n.getRawDataItem=function(e){return h(r,a,s,e)},n.getRawData=Z(wp,null,e)),n.cloneRawData=Z(xp,null,e);var d=ep(i,Nd);n.count=Z(d,null,r,a,s);var f=rp(i);n.retrieveValue=function(e,t){var n=h(r,a,s,e);return p(n,t)};var p=n.retrieveValueFromItem=function(e,t){if(null!=e){var n=s[t];return n?f(e,t,n.name):void 0}};return n.getDimensionInfo=Z(_p,null,s,l),n.cloneAllDimensionInfo=Z(Cp,null,s),n}(e,o)}),l=Qi(o.transform({upstream:s[0],upstreamList:s,config:R(e.config)}));return W(l,function(e,n){var r,i="";oe(e)||Ui(i),e.data||Ui(i),Bp(Gf(e.data))||Ui(i);var a=t[0];if(a&&0===n&&!e.dimensions){var o=a.startIndex;o&&(e.data=a.data.slice(0,o).concat(e.data)),r={seriesLayoutBy:Nd,sourceHeader:o,dimensions:a.metaRawOption.dimensions}}else r={seriesLayoutBy:Nd,sourceHeader:0,dimensions:e.dimensions};return Qf(e.data,r,null,null)})}function Bp(e){return e===Dd||e===Pd}var Ep=function(){function e(e){this._sourceList=[],this._upstreamSignList=[],this._versionSignBase=0,this._sourceHost=e}return e.prototype.dirty=function(){this._setLocalSource([],[])},e.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&this._createSource()},e.prototype._createSource=function(){this._setLocalSource([],[]);var e,t,n=this._sourceHost,r=this._getUpstreamSourceManagers(),i=!!r.length;if(Ip(n)){var a=n,o=void 0,s=void 0,l=void 0;if(i){var c=r[0];c.prepareSource(),o=(l=c.getSource()).data,s=l.sourceFormat,t=[c._getVersionSign()]}else s=le(o=a.get("data",!0))?Ld:Fd,t=[];var u=this._getSourceMetaRawOption(),h=l?l.metaRawOption:null;e=[Qf(o,{seriesLayoutBy:Ae(u.seriesLayoutBy,h?h.seriesLayoutBy:null),sourceHeader:Ae(u.sourceHeader,h?h.sourceHeader:null),dimensions:Ae(u.dimensions,h?h.dimensions:null)},s,a.get("encode",!0))]}else{var d=n;if(i){var f=this._applyTransform(r);e=f.sourceList,t=f.upstreamSignList}else{e=[Qf(d.get("source",!0),this._getSourceMetaRawOption(),null,null)],t=[]}}this._setLocalSource(e,t)},e.prototype._applyTransform=function(e){var t,n=this._sourceHost,r=n.get("transform",!0),i=n.get("fromTransformResult",!0);if(null!=i){var a="";1!==e.length&&Mp(a)}var o,s=[],l=[];return q(e,function(e){e.prepareSource();var t=e.getSource(i||0),n="";null==i||t||Mp(n),s.push(t),l.push(e._getVersionSign())}),r?t=function(e,t,n){var r=Qi(e),i=r.length,a="";i||Ui(a);for(var o=0,s=i;o<s;o++)t=kp(r[o],t),o!==s-1&&(t.length=Math.max(t.length,1));return t}(r,s,n.componentIndex):null!=i&&(t=[(o=s[0],new Hf({data:o.data,sourceFormat:o.sourceFormat,seriesLayoutBy:o.seriesLayoutBy,dimensionsDefine:R(o.dimensionsDefine),startIndex:o.startIndex,dimensionsDetectedCount:o.dimensionsDetectedCount,encodeDefine:Vf(o.encodeDefine)}))]),{sourceList:t,upstreamSignList:l}},e.prototype._isDirty=function(){if(!this._sourceList.length)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t<e.length;t++){var n=e[t];if(n._isDirty()||this._upstreamSignList[t]!==n._getVersionSign())return!0}},e.prototype.getSource=function(e){return this._sourceList[e||0]},e.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(Ip(e)){var t=Vd(e);return t?[t.getSourceManager()]:[]}return W(function(e){return e.get("transform",!0)||e.get("fromTransformResult",!0)?ia(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},na).models:[]}(e),function(e){return e.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var e,t,n,r=this._sourceHost;if(Ip(r))e=r.get("seriesLayoutBy",!0),t=r.get("sourceHeader",!0),n=r.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var i=r;e=i.get("seriesLayoutBy",!0),t=i.get("sourceHeader",!0),n=i.get("dimensions",!0)}return{seriesLayoutBy:e,sourceHeader:t,dimensions:n}},e}();function Tp(e){e.option.transform&&xe(e.option.transform)}function Ip(e){return"series"===e.mainType}function Mp(e){throw new Error(e)}var Fp="line-height:1";function Dp(e,t){var n=e.color||"#6e7079",r=e.fontSize||12,i=e.fontWeight||"400",a=e.color||"#464646",o=e.fontSize||14,s=e.fontWeight||"900";return"html"===t?{nameStyle:"font-size:"+id(r+"")+"px;color:"+id(n)+";font-weight:"+id(i+""),valueStyle:"font-size:"+id(o+"")+"px;color:"+id(a)+";font-weight:"+id(s+"")}:{nameStyle:{fontSize:r,fill:n,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var Pp=[0,10,20,30],Op=["","\n","\n\n","\n\n\n"];function Lp(e,t){return t.type=e,t}function Rp(e){return Ee(Np,e.type)&&Np[e.type]}var Np={section:{planLayout:function(e){var t=e.blocks.length,n=t>1||t>0&&!e.noHeader,r=0;q(e.blocks,function(e){Rp(e).planLayout(e);var t=e.__gapLevelBetweenSubBlocks;t>=r&&(r=t+(!n||t&&("section"!==e.type||e.noHeader)?0:1))}),e.__gapLevelBetweenSubBlocks=r},build:function(e,t,n,r){var i=t.noHeader,a=Hp(t),o=function(e,t,n,r){var i=[],a=t.blocks||[];ye(!a||te(a)),a=a||[];var o=e.orderMode;if(t.sortBlocks&&o){a=a.slice();var s={valueAsc:"asc",valueDesc:"desc"};if(Ee(s,o)){var l=new mp(s[o],null);a.sort(function(e,t){return l.evaluate(e.sortParam,t.sortParam)})}else"seriesDesc"===o&&a.reverse()}var c=Hp(t);if(q(a,function(t,n){var a=Rp(t).build(e,t,n>0?c.html:0,r);null!=a&&i.push(a)}),!i.length)return;return"richText"===e.renderMode?i.join(c.richText):jp(i.join(""),n)}(e,t,i?n:a.html,r);if(i)return o;var s=ad(t.header,"ordinal",e.useUTC),l=Dp(r,e.renderMode).nameStyle;return"richText"===e.renderMode?Qp(e,s,l)+a.richText+o:jp('<div style="'+l+";"+Fp+';">'+id(s)+"</div>"+o,n)}},nameValue:{planLayout:function(e){e.__gapLevelBetweenSubBlocks=0},build:function(e,t,n,r){var i=e.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,l=t.name,c=t.value,u=e.useUTC;if(!a||!o){var h=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),d=a?"":ad(l,"ordinal",u),f=t.valueType,p=o?[]:te(c)?W(c,function(e,t){return ad(e,te(f)?f[t]:f,u)}):[ad(c,te(f)?f[0]:f,u)],A=!s||!a,g=!s&&a,m=Dp(r,i),v=m.nameStyle,y=m.valueStyle;return"richText"===i?(s?"":h)+(a?"":Qp(e,d,v))+(o?"":function(e,t,n,r,i){var a=[i],o=r?10:20;return n&&a.push({padding:[0,0,0,o],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(t.join(" "),a)}(e,p,A,g,y)):jp((s?"":h)+(a?"":function(e,t,n){return'<span style="'+n+";"+(t?"margin-left:2px":"")+'">'+id(e)+"</span>"}(d,!s,v))+(o?"":function(e,t,n,r){return'<span style="'+(t?"float:right;margin-left:"+(n?"10px":"20px"):"")+";"+r+'">'+W(e,function(e){return id(e)}).join("&nbsp;&nbsp;")+"</span>"}(p,A,g,y)),n)}}}};function Up(e,t,n,r,i,a){if(e){var o=Rp(e);o.planLayout(e);var s={useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:t};return o.build(s,e,0,a)}}function Hp(e){var t=e.__gapLevelBetweenSubBlocks;return{html:Pp[t],richText:Op[t]}}function jp(e,t){return'<div style="'+("margin: "+t+"px 0 0")+";"+Fp+';">'+e+'<div style="clear:both"></div></div>'}function Qp(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function zp(e,t){return dd(e.getData().getItemVisual(t,"style")[e.visualDrawType])}function Vp(e,t){var n=e.get("padding");return null!=n?n:"richText"===t?[8,10]:10}var Gp=function(){function e(){this.richTextStyles={},this._nextStyleNameId=Li()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(e,t,n){var r="richText"===n?this._generateStyleName():null,i=cd({color:t,type:e,renderMode:n,markerId:r});return re(i)?i:(this.richTextStyles[r]=i.style,i.content)},e.prototype.wrapRichTextStyle=function(e,t){var n={};te(t)?q(t,function(e){return H(n,e)}):H(n,t);var r=this._generateStyleName();return this.richTextStyles[r]=n,"{"+r+"|"+e+"}"},e}();function $p(e){var t,n,r,i,a=e.series,o=e.dataIndex,s=e.multipleSeries,l=a.getData(),c=l.mapDimensionsAll("defaultedTooltip"),u=c.length,h=a.getRawValue(o),d=te(h),f=zp(a,o);if(u>1||d&&!u){var p=function(e,t,n,r,i){var a=t.getData(),o=K(e,function(e,t,n){var r=a.getDimensionInfo(n);return e=e||r&&!1!==r.tooltip&&null!=r.displayName},!1),s=[],l=[],c=[];function u(e,t){var n=a.getDimensionInfo(t);n&&!1!==n.otherDims.tooltip&&(o?c.push(Lp("nameValue",{markerType:"subItem",markerColor:i,name:n.displayName,value:e,valueType:n.type})):(s.push(e),l.push(n.type)))}return r.length?q(r,function(e){u(ap(a,n,e),e)}):q(e,u),{inlineValues:s,inlineValueTypes:l,blocks:c}}(h,a,o,c,f);t=p.inlineValues,n=p.inlineValueTypes,r=p.blocks,i=p.inlineValues[0]}else if(u){var A=l.getDimensionInfo(c[0]);i=t=ap(l,o,c[0]),n=A.type}else i=t=d?h[0]:h;var g=Yi(a),m=g&&a.name||"",v=l.getName(o),y=s?m:v;return Lp("section",{header:m,noHeader:s||!g,sortParam:i,blocks:[Lp("nameValue",{markerType:"item",markerColor:f,name:y,noName:!be(y),value:t,valueType:n})].concat(r||[])})}var qp=Zi();function Wp(e,t){return e.getName(t)||e.getId(t)}var Kp=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}var n;return g(t,e),t.prototype.init=function(e,t,n){this.seriesIndex=this.componentIndex,this.dataTask=cp({count:Xp,reset:Jp}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n),(qp(this).sourceManager=new Ep(this)).prepareSource();var r=this.getInitialData(e,n);eA(r,this),this.dataTask.context.data=r,qp(this).dataBeforeProcessed=r,Yp(this),this._initSelectedMapFromData(r)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=wd(this),r=n?_d(e):{},i=this.subType;Bd.hasClass(i)&&(i+="Series"),N(e,t.getTheme().get(this.subType)),N(e,this.getDefaultOption()),zi(e,"label",["show"]),this.fillDataTextStyle(e.data),n&&xd(e,r,n)},t.prototype.mergeOption=function(e,t){e=N(this.option,e,!0),this.fillDataTextStyle(e.data);var n=wd(this);n&&xd(this.option,e,n);var r=qp(this).sourceManager;r.dirty(),r.prepareSource();var i=this.getInitialData(e,t);eA(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,qp(this).dataBeforeProcessed=i,Yp(this),this._initSelectedMapFromData(i)},t.prototype.fillDataTextStyle=function(e){if(e&&!le(e))for(var t=["show"],n=0;n<e.length;n++)e[n]&&e[n].label&&zi(e[n],"label",t)},t.prototype.getInitialData=function(e,t){},t.prototype.appendData=function(e){this.getRawData().appendData(e.data)},t.prototype.getData=function(e){var t=nA(this);if(t){var n=t.context.data;return null==e?n:n.getLinkedData(e)}return qp(this).data},t.prototype.getAllData=function(){var e=this.getData();return e&&e.getLinkedDataAll?e.getLinkedDataAll():[{data:e}]},t.prototype.setData=function(e){var t=nA(this);if(t){var n=t.context;n.outputData=e,t!==this.dataTask&&(n.data=e)}qp(this).data=e},t.prototype.getSource=function(){return qp(this).sourceManager.getSource()},t.prototype.getRawData=function(){return qp(this).dataBeforeProcessed},t.prototype.getBaseAxis=function(){var e=this.coordinateSystem;return e&&e.getBaseAxis&&e.getBaseAxis()},t.prototype.formatTooltip=function(e,t,n){return $p({series:this,dataIndex:e,multipleSeries:t})},t.prototype.isAnimationEnabled=function(){if(w.node)return!1;var e=this.getShallow("animation");return e&&this.getData().count()>this.getShallow("animationThreshold")&&(e=!1),!!e},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,t,n){var r=this.ecModel,i=Zd.prototype.getColorFromPalette.call(this,e,t,n);return i||(i=r.getColorFromPalette(e,t,n)),i},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,t){this._innerSelect(this.getData(t),e)},t.prototype.unselect=function(e,t){var n=this.option.selectedMap;if(n)for(var r=this.getData(t),i=0;i<e.length;i++){var a=Wp(r,e[i]);n[a]=!1,this._selectedDataIndicesMap[a]=-1}},t.prototype.toggleSelect=function(e,t){for(var n=[],r=0;r<e.length;r++)n[0]=e[r],this.isSelected(e[r],t)?this.unselect(n,t):this.select(n,t)},t.prototype.getSelectedDataIndices=function(){for(var e=this._selectedDataIndicesMap,t=J(e),n=[],r=0;r<t.length;r++){var i=e[t[r]];i>=0&&n.push(i)}return n},t.prototype.isSelected=function(e,t){var n=this.option.selectedMap;return n&&n[Wp(this.getData(t),e)]||!1},t.prototype._innerSelect=function(e,t){var n,r,i=this.option.selectedMode,a=t.length;if(i&&a)if("multiple"===i)for(var o=this.option.selectedMap||(this.option.selectedMap={}),s=0;s<a;s++){var l=t[s];o[u=Wp(e,l)]=!0,this._selectedDataIndicesMap[u]=e.getRawIndex(l)}else if("single"===i||!0===i){var c=t[a-1],u=Wp(e,c);this.option.selectedMap=((n={})[u]=!0,n),this._selectedDataIndicesMap=((r={})[u]=e.getRawIndex(c),r)}},t.prototype._initSelectedMapFromData=function(e){if(!this.option.selectedMap){var t=[];e.hasItemOption&&e.each(function(n){var r=e.getRawDataItem(n);"object"==typeof r&&r.selected&&t.push(n)}),t.length>0&&this._innerSelect(e,t)}},t.registerClass=function(e){return Bd.registerClass(e)},t.protoInitialize=((n=t.prototype).type="series.__base__",n.seriesIndex=0,n.useColorPaletteOnData=!1,n.ignoreStyleOnData=!1,n.hasSymbolVisual=!1,n.defaultSymbol="circle",n.visualStyleAccessPath="itemStyle",void(n.visualDrawType="fill")),t}(Bd);function Yp(e){var t=e.name;Yi(e)||(e.name=function(e){var t=e.getRawData(),n=[];return q(t.mapDimensionsAll("seriesName"),function(e){var r=t.getDimensionInfo(e);r.displayName&&n.push(r.displayName)}),n.join(" ")}(e)||t)}function Xp(e){return e.model.getRawData().count()}function Jp(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),Zp}function Zp(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function eA(e,t){q(v(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(n){e.wrapMethod(n,ee(tA,t))})}function tA(e,t){var n=nA(e);return n&&n.setOutputEnd((t||this).count()),t}function nA(e){var t=(e.ecModel||{}).scheduler,n=t&&t.getPipeline(e.uid);if(n){var r=n.currentTask;if(r){var i=r.agentStubMap;i&&(r=i.get(e.uid))}return r}}G(Kp,sp),G(Kp,Zd),fa(Kp,Bd);var rA=Kp,iA=function(){function e(){this.group=new ii,this.uid=Ah("viewComponent")}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,r){},e.prototype.updateLayout=function(e,t,n,r){},e.prototype.updateVisual=function(e,t,n,r){},e.prototype.blurSeries=function(e,t){},e}();da(iA),ma(iA);var aA=iA;function oA(){var e=Zi();return function(t){var n=e(t),r=t.pipelineContext,i=!!n.large,a=!!n.progressiveRender,o=n.large=!(!r||!r.large),s=n.progressiveRender=!(!r||!r.progressiveRender);return!(i===o&&a===s)&&"reset"}}var sA=Zi(),lA=oA(),cA=function(){function e(){this.group=new ii,this.uid=Ah("viewChart"),this.renderTask=cp({plan:dA,reset:fA}),this.renderTask.context={view:this}}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){},e.prototype.highlight=function(e,t,n,r){hA(e.getData(),r,"emphasis")},e.prototype.downplay=function(e,t,n,r){hA(e.getData(),r,"normal")},e.prototype.remove=function(e,t){this.group.removeAll()},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.updateLayout=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.updateVisual=function(e,t,n,r){this.render(e,t,n,r)},e.markUpdateMethod=function(e,t){sA(e).updateMethod=t},e.protoInitialize=void(e.prototype.type="chart"),e}();function uA(e,t,n){e&&("emphasis"===t?xl:_l)(e,n)}function hA(e,t,n){var r=Ji(e,t),i=t&&null!=t.highlightKey?function(e){var t=qs[e];return null==t&&$s<=32&&(t=qs[e]=$s++),t}(t.highlightKey):null;null!=r?q(Qi(r),function(t){uA(e.getItemGraphicEl(t),n,i)}):e.eachItemGraphicEl(function(e){uA(e,n,i)})}function dA(e){return lA(e.model)}function fA(e){var t=e.model,n=e.ecModel,r=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&sA(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return"render"!==l&&o[l](t,n,r,i),pA[l]}da(cA),ma(cA);var pA={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},AA=cA,gA="\0__throttleOriginMethod",mA="\0__throttleRate",vA="\0__throttleType";function yA(e,t,n){var r,i,a,o,s,l=0,c=0,u=null;function h(){c=(new Date).getTime(),u=null,e.apply(a,o||[])}t=t||0;var d=function(){for(var e=[],d=0;d<arguments.length;d++)e[d]=arguments[d];r=(new Date).getTime(),a=this,o=e;var f=s||t,p=s||n;s=null,i=r-(p?l:c)-f,clearTimeout(u),p?u=setTimeout(h,f):i>=0?h():u=setTimeout(h,-i),l=r};return d.clear=function(){u&&(clearTimeout(u),u=null)},d.debounceNextCall=function(e){s=e},d}function bA(e,t,n,r){var i=e[t];if(i){var a=i[gA]||i,o=i[vA];if(i[mA]!==n||o!==r){if(null==n||!r)return e[t]=a;(i=e[t]=yA(a,n,"debounce"===r))[gA]=a,i[vA]=r,i[mA]=n}return i}}var wA=Zi(),xA={itemStyle:va(ch,!0),lineStyle:va(oh,!0)},_A={lineStyle:"stroke",itemStyle:"fill"};function CA(e,t){var n=e.visualStyleMapper||xA[t];return n||(console.warn("Unkown style type '"+t+"'."),xA.itemStyle)}function SA(e,t){var n=e.visualDrawType||_A[t];return n||(console.warn("Unkown style type '"+t+"'."),"fill")}var kA={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",i=e.getModel(r),a=CA(e,r)(i),o=i.getShallow("decal");o&&(n.setVisual("decal",o),o.dirty=!0);var s=SA(e,r),l=a[s],c=ne(l)?l:null;if(a[s]&&!c||(a[s]=e.getColorFromPalette(e.name,null,t.getSeriesCount()),n.setVisual("colorFromPalette",!0)),n.setVisual("style",a),n.setVisual("drawType",s),!t.isSeriesFiltered(e)&&c)return n.setVisual("colorFromPalette",!1),{dataEach:function(t,n){var r=e.getDataParams(n),i=H({},a);i[s]=c(r),t.setItemVisual(n,"style",i)}}}},BA=new fh,EA={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.ignoreStyleOnData&&!t.isSeriesFiltered(e)){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",i=CA(e,r),a=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(e,t){var n=e.getRawDataItem(t);if(n&&n[r]){BA.option=n[r];var o=i(BA);H(e.ensureUniqueItemVisual(t,"style"),o),BA.option.decal&&(e.setItemVisual(t,"decal",BA.option.decal),BA.option.decal.dirty=!0),a in o&&e.setItemVisual(t,"colorFromPalette",!1)}}:null}}}},TA={performRawSeries:!0,overallReset:function(e){var t=Se();e.eachSeries(function(e){if(e.useColorPaletteOnData){var n=t.get(e.type);n||(n={},t.set(e.type,n)),wA(e).scope=n}}),e.eachSeries(function(t){if(t.useColorPaletteOnData&&!e.isSeriesFiltered(t)){var n=t.getRawData(),r={},i=t.getData(),a=wA(t).scope,o=t.visualStyleAccessPath||"itemStyle",s=SA(t,o);i.each(function(e){var t=i.getRawIndex(e);r[t]=e}),n.each(function(e){var o=r[e];if(i.getItemVisual(o,"colorFromPalette")){var l=i.ensureUniqueItemVisual(o,"style"),c=n.getName(e)||e+"",u=n.count();l[s]=t.getColorFromPalette(c,a,u)}})}})}},IA=Math.PI;var MA=function(){function e(e,t,n,r){this._stageTaskMap=Se(),this.ecInstance=e,this.api=t,n=this._dataProcessorHandlers=n.slice(),r=this._visualHandlers=r.slice(),this._allHandlers=n.concat(r)}return e.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(e){var t=e.overallTask;t&&t.dirty()})},e.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),r=n.context,i=!t&&n.progressiveEnabled&&(!r||r.progressiveRender)&&e.__idxInPipeline>n.blockIndex?n.step:null,a=r&&r.modDataCount;return{step:i,modBy:null!=a?Math.ceil(a/i):null,modDataCount:a}}},e.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},e.prototype.updateStreamModes=function(e,t){var n=this._pipelineMap.get(e.uid),r=e.getData().count(),i=n.progressiveEnabled&&t.incrementalPrepareRender&&r>=n.threshold,a=e.get("large")&&r>=e.get("largeThreshold"),o="mod"===e.get("progressiveChunkMode")?r:null;e.pipelineContext=n.context={progressiveRender:i,modDataCount:o,large:a}},e.prototype.restorePipelines=function(e){var t=this,n=t._pipelineMap=Se();e.eachSeries(function(e){var r=e.getProgressive(),i=e.uid;n.set(i,{id:i,head:null,tail:null,threshold:e.getProgressiveThreshold(),progressiveEnabled:r&&!(e.preventIncremental&&e.preventIncremental()),blockIndex:-1,step:Math.round(r||700),count:0}),t._pipe(e,e.dataTask)})},e.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),n=this.api;q(this._allHandlers,function(r){var i=e.get(r.uid)||e.set(r.uid,{}),a="";ye(!(r.reset&&r.overallReset),a),r.reset&&this._createSeriesStageTask(r,i,t,n),r.overallReset&&this._createOverallStageTask(r,i,t,n)},this)},e.prototype.prepareView=function(e,t,n,r){var i=e.renderTask,a=i.context;a.model=t,a.ecModel=n,a.api=r,i.__block=!e.incrementalPrepareRender,this._pipe(t,i)},e.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},e.prototype.performVisualTasks=function(e,t,n){this._performStageTasks(this._visualHandlers,e,t,n)},e.prototype._performStageTasks=function(e,t,n,r){r=r||{};var i=!1,a=this;function o(e,t){return e.setDirty&&(!e.dirtyMap||e.dirtyMap.get(t.__pipeline.id))}q(e,function(e,s){if(!r.visualType||r.visualType===e.visualType){var l=a._stageTaskMap.get(e.uid),c=l.seriesTaskMap,u=l.overallTask;if(u){var h,d=u.agentStubMap;d.each(function(e){o(r,e)&&(e.dirty(),h=!0)}),h&&u.dirty(),a.updatePayload(u,n);var f=a.getPerformArgs(u,r.block);d.each(function(e){e.perform(f)}),u.perform(f)&&(i=!0)}else c&&c.each(function(s,l){o(r,s)&&s.dirty();var c=a.getPerformArgs(s,r.block);c.skip=!e.performRawSeries&&t.isSeriesFiltered(s.context.model),a.updatePayload(s,n),s.perform(c)&&(i=!0)})}}),this.unfinished=i||this.unfinished},e.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(e){t=e.dataTask.perform()||t}),this.unfinished=t||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},e.prototype.updatePayload=function(e,t){"remain"!==t&&(e.context.payload=t)},e.prototype._createSeriesStageTask=function(e,t,n,r){var i=this,a=t.seriesTaskMap,o=t.seriesTaskMap=Se(),s=e.seriesType,l=e.getTargetSeries;function c(t){var s=t.uid,l=o.set(s,a&&a.get(s)||cp({plan:LA,reset:RA,count:HA}));l.context={model:t,ecModel:n,api:r,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(t,l)}e.createOnAllSeries?n.eachRawSeries(c):s?n.eachRawSeriesByType(s,c):l&&l(n,r).each(c)},e.prototype._createOverallStageTask=function(e,t,n,r){var i=this,a=t.overallTask=t.overallTask||cp({reset:FA});a.context={ecModel:n,api:r,overallReset:e.overallReset,scheduler:i};var o=a.agentStubMap,s=a.agentStubMap=Se(),l=e.seriesType,c=e.getTargetSeries,u=!0,h=!1,d="";function f(e){var t=e.uid,n=s.set(t,o&&o.get(t)||(h=!0,cp({reset:DA,onDirty:OA})));n.context={model:e,overallProgress:u},n.agent=a,n.__block=u,i._pipe(e,n)}ye(!e.createOnAllSeries,d),l?n.eachRawSeriesByType(l,f):c?c(n,r).each(f):(u=!1,q(n.getSeries(),f)),h&&a.dirty()},e.prototype._pipe=function(e,t){var n=e.uid,r=this._pipelineMap.get(n);!r.head&&(r.head=t),r.tail&&r.tail.pipe(t),r.tail=t,t.__idxInPipeline=r.count++,t.__pipeline=r},e.wrapStageHandler=function(e,t){return ne(e)&&(e={overallReset:e,seriesType:function(e){jA=null;try{e(QA,zA)}catch(e){}return jA}(e)}),e.uid=Ah("stageHandler"),t&&(e.visualType=t),e},e}();function FA(e){e.overallReset(e.ecModel,e.api,e.payload)}function DA(e){return e.overallProgress&&PA}function PA(){this.agent.dirty(),this.getDownstream().dirty()}function OA(){this.agent&&this.agent.dirty()}function LA(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function RA(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=Qi(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?W(t,function(e,t){return UA(t)}):NA}var NA=UA(0);function UA(e){return function(t,n){var r=n.data,i=n.resetDefines[e];if(i&&i.dataEach)for(var a=t.start;a<t.end;a++)i.dataEach(r,a);else i&&i.progress&&i.progress(t,r)}}function HA(e){return e.data.count()}var jA,QA={},zA={};function VA(e,t){for(var n in t.prototype)e[n]=Te}VA(QA,sf),VA(zA,cf),QA.eachSeriesByType=QA.eachRawSeriesByType=function(e){jA=e},QA.eachComponent=function(e){"series"===e.mainType&&e.subType&&(jA=e.subType)};var GA=MA,$A=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],qA={color:$A,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],$A]},WA=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],KA={darkMode:!0,color:WA,backgroundColor:"#100C2A",axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:"#B9B8CE"}},textStyle:{color:"#B9B8CE"},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:"#B9B8CE"}},dataZoom:{borderColor:"#71708A",textStyle:{color:"#B9B8CE"},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:"#B9B8CE"}},timeline:{lineStyle:{color:"#B9B8CE"},label:{color:"#B9B8CE"},controlStyle:{color:"#B9B8CE",borderColor:"#B9B8CE"}},calendar:{itemStyle:{color:"#100C2A"},dayLabel:{color:"#B9B8CE"},monthLabel:{color:"#B9B8CE"},yearLabel:{color:"#B9B8CE"}},timeAxis:{axisLine:{lineStyle:{color:"#B9B8CE"}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}},logAxis:{axisLine:{lineStyle:{color:"#B9B8CE"}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}},valueAxis:{axisLine:{lineStyle:{color:"#B9B8CE"}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}},categoryAxis:{axisLine:{lineStyle:{color:"#B9B8CE"}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}},line:{symbol:"circle"},graph:{color:WA},gauge:{title:{color:"#B9B8CE"},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:"#B9B8CE"},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};KA.categoryAxis.splitLine.show=!1;var YA=KA;function XA(e){re(e)&&(e=(new DOMParser).parseFromString(e,"text/xml"));var t=e;for(9===t.nodeType&&(t=t.firstChild);"svg"!==t.nodeName.toLowerCase()||1!==t.nodeType;)t=t.nextSibling;return t}var JA=Se(),ZA={registerMap:function(e,t,n){var r;if(te(t))r=t;else if(t.svg)r=[{type:"svg",source:t.svg,specialAreas:t.specialAreas}];else{var i=t.geoJson||t.geoJSON;i&&!t.features&&(n=t.specialAreas,t=i),r=[{type:"geoJSON",source:t,specialAreas:n}]}return q(r,function(e){var t=e.type;"geoJson"===t&&(t=e.type="geoJSON");var n=eg[t];n(e)}),JA.set(e,r)},retrieveMap:function(e){return JA.get(e)}},eg={geoJSON:function(e){var t=e.source;e.geoJSON=re(t)?"undefined"!=typeof JSON&&JSON.parse?JSON.parse(t):new Function("return ("+t+");")():t},svg:function(e){e.svgXML=XA(e.source)}},tg=function(){function e(){}return e.prototype.normalizeQuery=function(e){var t={},n={},r={};if(re(e)){var i=ha(e);t.mainType=i.main||null,t.subType=i.sub||null}else{var a=["Index","Name","Id"],o={name:1,dataIndex:1,dataType:1};q(e,function(e,i){for(var s=!1,l=0;l<a.length;l++){var c=a[l],u=i.lastIndexOf(c);if(u>0&&u===i.length-c.length){var h=i.slice(0,u);"data"!==h&&(t.mainType=h,t[c.toLowerCase()]=e,s=!0)}}o.hasOwnProperty(i)&&(n[i]=e,s=!0),s||(r[i]=e)})}return{cptQuery:t,dataQuery:n,otherQuery:r}},e.prototype.filter=function(e,t){var n=this.eventInfo;if(!n)return!0;var r=n.targetEl,i=n.packedEvent,a=n.model,o=n.view;if(!a||!o)return!0;var s=t.cptQuery,l=t.dataQuery;return c(s,a,"mainType")&&c(s,a,"subType")&&c(s,a,"index","componentIndex")&&c(s,a,"name")&&c(s,a,"id")&&c(l,i,"name")&&c(l,i,"dataIndex")&&c(l,i,"dataType")&&(!o.filterForExposedEvent||o.filterForExposedEvent(e,t.otherQuery,r,i));function c(e,t,n,r){return null==e[n]||t[r||n]===e[n]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),ng={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData();if(e.legendSymbol&&n.setVisual("legendSymbol",e.legendSymbol),e.hasSymbolVisual){var r=e.get("symbol"),i=e.get("symbolSize"),a=e.get("symbolKeepAspect"),o=e.get("symbolRotate"),s=ne(r),l=ne(i),c=ne(o),u=s||l||c,h=!s&&r?r:e.defaultSymbol,d=l?null:i,f=c?null:o;if(n.setVisual({legendSymbol:e.legendSymbol||h,symbol:h,symbolSize:d,symbolKeepAspect:a,symbolRotate:f}),!t.isSeriesFiltered(e))return{dataEach:u?function(t,n){var a=e.getRawValue(n),u=e.getDataParams(n);s&&t.setItemVisual(n,"symbol",r(a,u)),l&&t.setItemVisual(n,"symbolSize",i(a,u)),c&&t.setItemVisual(n,"symbolRotate",o(a,u))}:null}}}};function rg(e,t,n){switch(n){case"color":return e.getItemVisual(t,"style")[e.getVisual("drawType")];case"opacity":return e.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getItemVisual(t,n);default:0}}function ig(e,t){switch(t){case"color":return e.getVisual("style")[e.getVisual("drawType")];case"opacity":return e.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getVisual(t);default:0}}function ag(e,t,n,r){switch(n){case"color":e.ensureUniqueItemVisual(t,"style")[e.getVisual("drawType")]=r,e.setItemVisual(t,"colorFromPalette",!1);break;case"opacity":e.ensureUniqueItemVisual(t,"style").opacity=r;break;case"symbol":case"symbolSize":case"liftZ":e.setItemVisual(t,n,r);break;default:0}}var og=2*Math.PI,sg=Xo.CMD,lg=["top","right","bottom","left"];function cg(e,t,n,r,i){var a=n.width,o=n.height;switch(e){case"top":r.set(n.x+a/2,n.y-t),i.set(0,-1);break;case"bottom":r.set(n.x+a/2,n.y+o+t),i.set(0,1);break;case"left":r.set(n.x-t,n.y+o/2),i.set(-1,0);break;case"right":r.set(n.x+a+t,n.y+o/2),i.set(1,0)}}function ug(e,t,n,r,i,a,o,s,l){o-=e,s-=t;var c=Math.sqrt(o*o+s*s),u=(o/=c)*n+e,h=(s/=c)*n+t;if(Math.abs(r-i)%og<1e-4)return l[0]=u,l[1]=h,c-n;if(a){var d=r;r=ns(i),i=ns(d)}else r=ns(r),i=ns(i);r>i&&(i+=og);var f=Math.atan2(s,o);if(f<0&&(f+=og),f>=r&&f<=i||f+og>=r&&f+og<=i)return l[0]=u,l[1]=h,c-n;var p=n*Math.cos(r)+e,A=n*Math.sin(r)+t,g=n*Math.cos(i)+e,m=n*Math.sin(i)+t,v=(p-o)*(p-o)+(A-s)*(A-s),y=(g-o)*(g-o)+(m-s)*(m-s);return v<y?(l[0]=p,l[1]=A,Math.sqrt(v)):(l[0]=g,l[1]=m,Math.sqrt(y))}function hg(e,t,n,r,i,a,o,s){var l=i-e,c=a-t,u=n-e,h=r-t,d=Math.sqrt(u*u+h*h),f=(l*(u/=d)+c*(h/=d))/d;s&&(f=Math.min(Math.max(f,0),1)),f*=d;var p=o[0]=e+f*u,A=o[1]=t+f*h;return Math.sqrt((p-i)*(p-i)+(A-a)*(A-a))}function dg(e,t,n,r,i,a,o){n<0&&(e+=n,n=-n),r<0&&(t+=r,r=-r);var s=e+n,l=t+r,c=o[0]=Math.min(Math.max(i,e),s),u=o[1]=Math.min(Math.max(a,t),l);return Math.sqrt((c-i)*(c-i)+(u-a)*(u-a))}var fg=[];function pg(e,t,n){var r=dg(t.x,t.y,t.width,t.height,e.x,e.y,fg);return n.set(fg[0],fg[1]),r}function Ag(e,t,n){for(var r,i,a=0,o=0,s=0,l=0,c=1/0,u=t.data,h=e.x,d=e.y,f=0;f<u.length;){var p=u[f++];1===f&&(s=a=u[f],l=o=u[f+1]);var A=c;switch(p){case sg.M:a=s=u[f++],o=l=u[f++];break;case sg.L:A=hg(a,o,u[f],u[f+1],h,d,fg,!0),a=u[f++],o=u[f++];break;case sg.C:A=lo(a,o,u[f++],u[f++],u[f++],u[f++],u[f],u[f+1],h,d,fg),a=u[f++],o=u[f++];break;case sg.Q:A=Ao(a,o,u[f++],u[f++],u[f],u[f+1],h,d,fg),a=u[f++],o=u[f++];break;case sg.A:var g=u[f++],m=u[f++],v=u[f++],y=u[f++],b=u[f++],w=u[f++];f+=1;var x=!!(1-u[f++]);r=Math.cos(b)*v+g,i=Math.sin(b)*y+m,f<=1&&(s=r,l=i),A=ug(g,m,y,b,b+w,x,(h-g)*y/v+g,d,fg),a=Math.cos(b+w)*v+g,o=Math.sin(b+w)*y+m;break;case sg.R:A=dg(s=a=u[f++],l=o=u[f++],u[f++],u[f++],h,d,fg);break;case sg.Z:A=hg(a,o,s,l,h,d,fg,!0),a=s,o=l}A<c&&(c=A,n.set(fg[0],fg[1]))}return c}var gg=new $n,mg=new $n,vg=new $n,yg=new $n,bg=new $n;function wg(e,t){if(e){var n=e.getTextGuideLine(),r=e.getTextContent();if(r&&n){var i=e.textGuideLineConfig||{},a=[[0,0],[0,0],[0,0]],o=i.candidates||lg,s=r.getBoundingRect().clone();s.applyTransform(r.getComputedTransform());var l=1/0,c=i.anchor,u=e.getComputedTransform(),h=u&&Qt([],u),d=t.get("length2")||0;c&&vg.copy(c);for(var f=0;f<o.length;f++){cg(o[f],0,s,gg,yg),$n.scaleAndAdd(mg,gg,yg,d),mg.transform(h);var p=e.getBoundingRect(),A=c?c.distance(mg):e instanceof vs?Ag(mg,e.path,vg):pg(mg,p,vg);A<l&&(l=A,mg.transform(u),vg.transform(u),vg.toArray(a[0]),mg.toArray(a[1]),gg.toArray(a[2]))}Cg(a,t.get("minTurnAngle")),n.setShape({points:a})}}}var xg=[],_g=new $n;function Cg(e,t){if(t<=180&&t>0){t=t/180*Math.PI,gg.fromArray(e[0]),mg.fromArray(e[1]),vg.fromArray(e[2]),$n.sub(yg,gg,mg),$n.sub(bg,vg,mg);var n=yg.len(),r=bg.len();if(!(n<.001||r<.001)){yg.scale(1/n),bg.scale(1/r);var i=yg.dot(bg);if(Math.cos(t)<i){var a=hg(mg.x,mg.y,vg.x,vg.y,gg.x,gg.y,xg,!1);_g.fromArray(xg),_g.scaleAndAdd(bg,a/Math.tan(Math.PI-t));var o=vg.x!==mg.x?(_g.x-mg.x)/(vg.x-mg.x):(_g.y-mg.y)/(vg.y-mg.y);if(isNaN(o))return;o<0?$n.copy(_g,mg):o>1&&$n.copy(_g,vg),_g.toArray(e[1])}}}}function Sg(e,t,n){if(n<=180&&n>0){n=n/180*Math.PI,gg.fromArray(e[0]),mg.fromArray(e[1]),vg.fromArray(e[2]),$n.sub(yg,mg,gg),$n.sub(bg,vg,mg);var r=yg.len(),i=bg.len();if(!(r<.001||i<.001))if(yg.scale(1/r),bg.scale(1/i),yg.dot(t)<Math.cos(n)){var a=hg(mg.x,mg.y,vg.x,vg.y,gg.x,gg.y,xg,!1);_g.fromArray(xg);var o=Math.PI/2,s=o+Math.acos(bg.dot(t))-n;if(s>=o)$n.copy(_g,vg);else{_g.scaleAndAdd(bg,a/Math.tan(Math.PI/2-s));var l=vg.x!==mg.x?(_g.x-mg.x)/(vg.x-mg.x):(_g.y-mg.y)/(vg.y-mg.y);if(isNaN(l))return;l<0?$n.copy(_g,mg):l>1&&$n.copy(_g,vg)}_g.toArray(e[1])}}}function kg(e,t,n,r){var i="normal"===n,a=i?e:e.ensureState(n);a.ignore=t;var o=r.get("smooth");o&&!0===o&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=r.getModel("lineStyle").getLineStyle();i?e.useStyle(s):a.style=s}function Bg(e,t){var n=t.smooth,r=t.points;if(r)if(e.moveTo(r[0][0],r[0][1]),n>0&&r.length>=3){var i=Ke(r[0],r[1]),a=Ke(r[1],r[2]);if(!i||!a)return e.lineTo(r[1][0],r[1][1]),void e.lineTo(r[2][0],r[2][1]);var o=Math.min(i,a)*n,s=Ze([],r[1],r[0],o/i),l=Ze([],r[1],r[2],o/a),c=Ze([],s,l,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],c[0],c[1]),e.bezierCurveTo(l[0],l[1],l[0],l[1],r[2][0],r[2][1])}else for(var u=1;u<r.length;u++)e.lineTo(r[u][0],r[u][1])}function Eg(e,t,n){var r=e.getTextGuideLine(),i=e.getTextContent();if(i){for(var a=t.normal,o=a.get("show"),s=i.ignore,l=0;l<Zs.length;l++){var c=Zs[l],u=t[c],h="normal"===c;if(u){var d=u.get("show");if((h?s:Ae(i.states[c]&&i.states[c].ignore,s))||!Ae(d,o)){var f=h?r:r&&r.states.normal;f&&(f.ignore=!0);continue}r||(r=new Lc,e.setTextGuideLine(r),h||!s&&o||kg(r,!0,"normal",t.normal),e.stateProxy&&(r.stateProxy=e.stateProxy)),kg(r,!1,c,u)}}if(r){j(r.style,n),r.style.fill=null;var p=a.get("showAbove");(e.textGuideLineConfig=e.textGuideLineConfig||{}).showAbove=p||!1,r.buildPath=Bg}}else r&&e.removeTextGuideLine()}function Tg(e,t){t=t||"labelLine";for(var n={normal:e.getModel(t)},r=0;r<Js.length;r++){var i=Js[r];n[i]=e.getModel([i,t])}return n}function Ig(e,t,n,r,i,a){var o=e.length;if(!(o<2)){e.sort(function(e,n){return e.rect[t]-n.rect[t]});for(var s,l=0,c=!1,u=[],h=0,d=0;d<o;d++){var f=e[d],p=f.rect;(s=p[t]-l)<0&&(p[t]-=s,f.label[t]-=s,c=!0);var A=Math.max(-s,0);u.push(A),h+=A,l=p[t]+p[n]}h>0&&a&&x(-h/o,0,o);var g,m,v=e[0],y=e[o-1];return b(),g<0&&_(-g,.8),m<0&&_(m,.8),b(),w(g,m,1),w(m,g,-1),b(),g<0&&C(-g),m<0&&C(m),c}function b(){g=v.rect[t]-r,m=i-y.rect[t]-y.rect[n]}function w(e,t,n){if(e<0){var r=Math.min(t,-e);if(r>0){x(r*n,0,o);var i=r+e;i<0&&_(-i*n,1)}else _(-e*n,1)}}function x(n,r,i){0!==n&&(c=!0);for(var a=r;a<i;a++){var o=e[a];o.rect[t]+=n,o.label[t]+=n}}function _(r,i){for(var a=[],s=0,l=1;l<o;l++){var c=e[l-1].rect,u=Math.max(e[l].rect[t]-c[t]-c[n],0);a.push(u),s+=u}if(s){var h=Math.min(Math.abs(r)/s,i);if(r>0)for(l=0;l<o-1;l++){x(a[l]*h,0,l+1)}else for(l=o-1;l>0;l--){x(-(a[l-1]*h),l,o)}}}function C(e){var t=e<0?-1:1;e=Math.abs(e);for(var n=Math.ceil(e/(o-1)),r=0;r<o-1;r++)if(t>0?x(n,0,r+1):x(-n,o-r-1,o),(e-=n)<=0)return}}function Mg(e,t,n,r){return Ig(e,"y","height",t,n,r)}function Fg(e,t){var n=e.label,r=t&&t.getTextGuideLine();return{dataIndex:e.dataIndex,dataType:e.dataType,seriesIndex:e.seriesModel.seriesIndex,text:e.label.style.text,rect:e.hostRect,labelRect:e.rect,align:n.style.align,verticalAlign:n.style.verticalAlign,labelLinePoints:function(e){if(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n].slice());return t}}(r&&r.shape.points)}}var Dg=["align","verticalAlign","width","height","fontSize"],Pg=new Xt,Og=Zi(),Lg=Zi();function Rg(e,t,n){for(var r=0;r<n.length;r++){var i=n[r];null!=t[i]&&(e[i]=t[i])}}var Ng=["x","y","rotation"],Ug=function(){function e(){this._labelList=[],this._chartViewList=[]}return e.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},e.prototype._addLabel=function(e,t,n,r,i){var a=r.style,o=r.__hostTarget.textConfig||{},s=r.getComputedTransform(),l=r.getBoundingRect().plain();tr.applyTransform(l,l,s),s?Pg.setLocalTransform(s):(Pg.x=Pg.y=Pg.rotation=Pg.originX=Pg.originY=0,Pg.scaleX=Pg.scaleY=1);var c,u=r.__hostTarget;if(u){c=u.getBoundingRect().plain();var h=u.getComputedTransform();tr.applyTransform(c,c,h)}var d=c&&u.getTextGuideLine();this._labelList.push({label:r,labelLine:d,seriesModel:n,dataIndex:e,dataType:t,layoutOption:i,computedLayoutOption:null,rect:l,hostRect:c,priority:c?c.width*c.height:0,defaultAttr:{ignore:r.ignore,labelGuideIgnore:d&&d.ignore,x:Pg.x,y:Pg.y,rotation:Pg.rotation,style:{x:a.x,y:a.y,align:a.align,verticalAlign:a.verticalAlign,width:a.width,height:a.height,fontSize:a.fontSize},cursor:r.cursor,attachedPos:o.position,attachedRot:o.rotation}})},e.prototype.addLabelsOfSeries=function(e){var t=this;this._chartViewList.push(e);var n=e.__model,r=n.get("labelLayout");(ne(r)||J(r).length)&&e.group.traverse(function(e){if(e.ignore)return!0;var i=e.getTextContent(),a=Gs(e);i&&!i.disableLabelLayout&&t._addLabel(a.dataIndex,a.dataType,n,i,r)})},e.prototype.updateLayoutConfig=function(e){var t=e.getWidth(),n=e.getHeight();function r(e,t){return function(){wg(e,t)}}for(var i=0;i<this._labelList.length;i++){var a=this._labelList[i],o=a.label,s=o.__hostTarget,l=a.defaultAttr,c=void 0;c=(c="function"==typeof a.layoutOption?a.layoutOption(Fg(a,s)):a.layoutOption)||{},a.computedLayoutOption=c;var u=Math.PI/180;s&&s.setTextConfig({local:!1,position:null!=c.x||null!=c.y?null:l.attachedPos,rotation:null!=c.rotate?c.rotate*u:l.attachedRot,offset:[c.dx||0,c.dy||0]});var h=!1;if(null!=c.x?(o.x=mi(c.x,t),o.setStyle("x",0),h=!0):(o.x=l.x,o.setStyle("x",l.style.x)),null!=c.y?(o.y=mi(c.y,n),o.setStyle("y",0),h=!0):(o.y=l.y,o.setStyle("y",l.style.y)),c.labelLinePoints){var d=s.getTextGuideLine();d&&(d.setShape({points:c.labelLinePoints}),h=!1)}Og(o).needsUpdateLabelLine=h,o.rotation=null!=c.rotate?c.rotate*u:l.rotation;for(var f=0;f<Dg.length;f++){var p=Dg[f];o.setStyle(p,null!=c[p]?c[p]:l.style[p])}if(c.draggable){if(o.draggable=!0,o.cursor="move",s){var A=a.seriesModel;if(null!=a.dataIndex)A=a.seriesModel.getData(a.dataType).getItemModel(a.dataIndex);o.on("drag",r(s,A.getModel("labelLine")))}}else o.off("drag"),o.cursor=l.cursor}},e.prototype.layout=function(e){var t,n=e.getWidth(),r=e.getHeight(),i=function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];if(!r.defaultAttr.ignore){var i=r.label,a=i.getComputedTransform(),o=i.getBoundingRect(),s=!a||a[1]<1e-5&&a[2]<1e-5,l=i.style.margin||0,c=o.clone();c.applyTransform(a),c.x-=l/2,c.y-=l/2,c.width+=l,c.height+=l;var u=s?new ru(o,a):null;t.push({label:i,labelLine:r.labelLine,rect:c,localRect:o,obb:u,priority:r.priority,defaultAttr:r.defaultAttr,layoutOption:r.computedLayoutOption,axisAligned:s,transform:a})}}return t}(this._labelList),a=Y(i,function(e){return"shiftX"===e.layoutOption.moveOverlap}),o=Y(i,function(e){return"shiftY"===e.layoutOption.moveOverlap});Ig(a,"x","width",0,n,t),Mg(o,0,r),function(e){var t=[];e.sort(function(e,t){return t.priority-e.priority});var n=new tr(0,0,0,0);function r(e){if(!e.ignore){var t=e.ensureState("emphasis");null==t.ignore&&(t.ignore=!1)}e.ignore=!0}for(var i=0;i<e.length;i++){var a=e[i],o=a.axisAligned,s=a.localRect,l=a.transform,c=a.label,u=a.labelLine;n.copy(a.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05;for(var h=a.obb,d=!1,f=0;f<t.length;f++){var p=t[f];if(n.intersect(p.rect)){if(o&&p.axisAligned){d=!0;break}if(p.obb||(p.obb=new ru(p.localRect,p.transform)),h||(h=new ru(s,l)),h.intersect(p.obb)){d=!0;break}}}d?(r(c),u&&r(u)):(c.attr("ignore",a.defaultAttr.ignore),u&&u.attr("ignore",a.defaultAttr.labelGuideIgnore),t.push(a))}}(Y(i,function(e){return e.layoutOption.hideOverlap}))},e.prototype.processLabelsOverall=function(){var e=this;q(this._chartViewList,function(t){var n=t.__model,r=t.ignoreLabelLineUpdate,i=n.isAnimationEnabled();t.group.traverse(function(t){if(t.ignore)return!0;var a=!r,o=t.getTextContent();!a&&o&&(a=Og(o).needsUpdateLabelLine),a&&e._updateLabelLine(t,n),i&&e._animateLabels(t,n)})})},e.prototype._updateLabelLine=function(e,t){var n=e.getTextContent(),r=Gs(e),i=r.dataIndex;if(n&&null!=i){var a=t.getData(r.dataType),o=a.getItemModel(i),s={},l=a.getItemVisual(i,"style"),c=a.getVisual("drawType");s.stroke=l[c];var u=o.getModel("labelLine");Eg(e,Tg(o),s),wg(e,u)}},e.prototype._animateLabels=function(e,t){var n=e.getTextContent(),r=e.getTextGuideLine();if(n&&!n.ignore&&!n.invisible&&!e.disableLabelAnimation&&!Eu(e)){var i=(f=Og(n)).oldLayout,a=Gs(e),o=a.dataIndex,s={x:n.x,y:n.y,rotation:n.rotation},l=t.getData(a.dataType);if(i){n.attr(i);var c=e.prevStates;c&&(z(c,"select")>=0&&n.attr(f.oldLayoutSelect),z(c,"emphasis")>=0&&n.attr(f.oldLayoutEmphasis)),_u(n,s,t,o)}else if(n.attr(s),!Ju(n).valueAnimation){var u=Ae(n.style.opacity,1);n.style.opacity=0,Cu(n,{style:{opacity:u}},t,o)}if(f.oldLayout=s,n.states.select){var h=f.oldLayoutSelect={};Rg(h,s,Ng),Rg(h,n.states.select,Ng)}if(n.states.emphasis){var d=f.oldLayoutEmphasis={};Rg(d,s,Ng),Rg(d,n.states.emphasis,Ng)}eh(n,o,l,t,t)}if(r&&!r.ignore&&!r.invisible){i=(f=Lg(r)).oldLayout;var f,p={points:r.shape.points};i?(r.attr({shape:i}),_u(r,{shape:p},t)):(r.setShape(p),r.style.strokePercent=0,Cu(r,{style:{strokePercent:1}},t)),f.oldLayout=p}},e}();function Hg(e,t){q([[e+"ToggleSelect","toggleSelect"],[e+"Select","select"],[e+"UnSelect","unselect"]],function(n){t(n[0],function(t,r,i){t=H({},t),i.dispatchAction(H(t,{type:n[1],seriesIndex:function(t,n){var r=[];return t.eachComponent({mainType:"series",subType:e,query:n},function(e){r.push(e.seriesIndex)}),r}(r,t)}))})})}function jg(e,t,n,r,i){var a=e+t;n.isSilent(a)||r.eachComponent({mainType:"series",subType:"pie"},function(e){for(var t=e.seriesIndex,r=i.selected,o=0;o<r.length;o++)if(r[o].seriesIndex===t){var s=e.getData(),l=Ji(s,i.fromActionPayload);n.trigger(a,{type:a,seriesId:e.id,name:te(l)?s.getName(l[0]):s.getName(l),selected:H({},e.option.selectedMap)})}})}function Qg(e,t,n){for(var r;e&&(!t(e)||(r=e,!n));)e=e.__hostTarget||e.parent;return r}var zg=Math.round(9*Math.random()),Vg=function(){function e(){this._id="__ec_inner_"+zg++}return e.prototype.get=function(e){return this._guard(e)[this._id]},e.prototype.set=function(e,t){var n=this._guard(e);return"function"==typeof Object.defineProperty?Object.defineProperty(n,this._id,{value:t,enumerable:!1,configurable:!0}):n[this._id]=t,this},e.prototype.delete=function(e){return!!this.has(e)&&(delete this._guard(e)[this._id],!0)},e.prototype.has=function(e){return!!this._guard(e)[this._id]},e.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},e}(),Gg=vs.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,a=t.height/2;e.moveTo(n,r-a),e.lineTo(n+i,r+a),e.lineTo(n-i,r+a),e.closePath()}}),$g=vs.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,a=t.height/2;e.moveTo(n,r-a),e.lineTo(n+i,r),e.lineTo(n,r+a),e.lineTo(n-i,r),e.closePath()}}),qg=vs.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.x,r=t.y,i=t.width/5*3,a=Math.max(i,t.height),o=i/2,s=o*o/(a-o),l=r-a+o+s,c=Math.asin(s/o),u=Math.cos(c)*o,h=Math.sin(c),d=Math.cos(c),f=.6*o,p=.7*o;e.moveTo(n-u,l+s),e.arc(n,l,o,Math.PI-c,2*Math.PI+c),e.bezierCurveTo(n+u-h*f,l+s+d*f,n,r-p,n,r),e.bezierCurveTo(n,r-p,n-u+h*f,l+s+d*f,n-u,l+s),e.closePath()}}),Wg=vs.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.height,r=t.width,i=t.x,a=t.y,o=r/3*2;e.moveTo(i,a),e.lineTo(i+o,a+n),e.lineTo(i,a+n/4*3),e.lineTo(i-o,a+n),e.lineTo(i,a),e.closePath()}}),Kg={line:function(e,t,n,r,i){i.x=e,i.y=t+r/2-1,i.width=n,i.height=2},rect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r},roundRect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r,i.r=Math.min(n,r)/4},square:function(e,t,n,r,i){var a=Math.min(n,r);i.x=e,i.y=t,i.width=a,i.height=a},circle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.r=Math.min(n,r)/2},diamond:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r},pin:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},arrow:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},triangle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r}},Yg={};q({line:Ds,rect:Ds,roundRect:Ds,square:Ds,circle:oc,diamond:$g,pin:qg,arrow:Wg,triangle:Gg},function(e,t){Yg[t]=new e});var Xg=vs.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var r=dr(e,t,n),i=this.shape;return i&&"pin"===i.symbolType&&"inside"===t.position&&(r.y=n.y+.4*n.height),r},buildPath:function(e,t,n){var r=t.symbolType;if("none"!==r){var i=Yg[r];i||(i=Yg[r="rect"]),Kg[r](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,n)}}});function Jg(e,t){if("image"!==this.type){var n=this.style;this.__isEmptyBrush?(n.stroke=e,n.fill=t||"#fff",n.lineWidth=2):n.fill=e,this.markRedraw()}}function Zg(e,t,n,r,i,a,o){var s,l=0===e.indexOf("empty");return l&&(e=e.substr(5,1).toLowerCase()+e.substr(6)),(s=0===e.indexOf("image://")?Au(e.slice(8),new tr(t,n,r,i),o?"center":"cover"):0===e.indexOf("path://")?pu(e.slice(7),{},new tr(t,n,r,i),o?"center":"cover"):new Xg({shape:{symbolType:e,x:t,y:n,width:r,height:i}})).__isEmptyBrush=l,s.setColor=Jg,a&&s.setColor(a),s}function em(e,t,n){for(var r="radial"===t.type?function(e,t,n){var r=n.width,i=n.height,a=Math.min(r,i),o=null==t.x?.5:t.x,s=null==t.y?.5:t.y,l=null==t.r?.5:t.r;return t.global||(o=o*r+n.x,s=s*i+n.y,l*=a),e.createRadialGradient(o,s,0,o,s,l)}(e,t,n):function(e,t,n){var r=null==t.x?0:t.x,i=null==t.x2?1:t.x2,a=null==t.y?0:t.y,o=null==t.y2?0:t.y2;return t.global||(r=r*n.width+n.x,i=i*n.width+n.x,a=a*n.height+n.y,o=o*n.height+n.y),r=isNaN(r)?0:r,i=isNaN(i)?1:i,a=isNaN(a)?0:a,o=isNaN(o)?0:o,e.createLinearGradient(r,a,i,o)}(e,t,n),i=t.colorStops,a=0;a<i.length;a++)r.addColorStop(i[a].offset,i[a].color);return r}function tm(e,t){if(e===t||!e&&!t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!0;return!1}function nm(e,t){return e&&"solid"!==e&&t>0?(t=t||1,"dashed"===e?[4*t,2*t]:"dotted"===e?[t]:ae(e)?[e]:te(e)?e:null):null}var rm=new Xo(!0);function im(e){var t=e.stroke;return!(null==t||"none"===t||!(e.lineWidth>0))}function am(e){var t=e.fill;return null!=t&&"none"!==t}function om(e,t){if(null!=t.fillOpacity&&1!==t.fillOpacity){var n=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=n}else e.fill()}function sm(e,t){if(null!=t.strokeOpacity&&1!==t.strokeOpacity){var n=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=n}else e.stroke()}function lm(e,t,n){var r=_a(t.image,t.__image,n);if(Sa(r)){var i=e.createPattern(r,t.repeat||"repeat");if("function"==typeof DOMMatrix){var a=new DOMMatrix;a.rotateSelf(0,0,(t.rotation||0)/Math.PI*180),a.scaleSelf(t.scaleX||1,t.scaleY||1),a.translateSelf(t.x||0,t.y||0),i.setTransform(a)}return i}}var cm=["shadowBlur","shadowOffsetX","shadowOffsetY"],um=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function hm(e,t,n,r,i){var a=!1;if(!r&&t===(n=n||{}))return!1;(r||t.opacity!==n.opacity)&&(a||(vm(e,i),a=!0),e.globalAlpha=null==t.opacity?Ua.opacity:t.opacity),(r||t.blend!==n.blend)&&(a||(vm(e,i),a=!0),e.globalCompositeOperation=t.blend||Ua.blend);for(var o=0;o<cm.length;o++){var s=cm[o];(r||t[s]!==n[s])&&(a||(vm(e,i),a=!0),e[s]=e.dpr*(t[s]||0))}return(r||t.shadowColor!==n.shadowColor)&&(a||(vm(e,i),a=!0),e.shadowColor=t.shadowColor||Ua.shadowColor),a}function dm(e,t,n,r,i){var a=ym(t,i.inHover),o=r?null:n&&ym(n,i.inHover)||{};if(a===o)return!1;var s=hm(e,a,o,r,i);if((r||a.fill!==o.fill)&&(s||(vm(e,i),s=!0),e.fillStyle=a.fill),(r||a.stroke!==o.stroke)&&(s||(vm(e,i),s=!0),e.strokeStyle=a.stroke),(r||a.opacity!==o.opacity)&&(s||(vm(e,i),s=!0),e.globalAlpha=null==a.opacity?1:a.opacity),t.hasStroke()){var l=a.lineWidth/(a.strokeNoScale&&t&&t.getLineScale?t.getLineScale():1);e.lineWidth!==l&&(s||(vm(e,i),s=!0),e.lineWidth=l)}for(var c=0;c<um.length;c++){var u=um[c],h=u[0];(r||a[h]!==o[h])&&(s||(vm(e,i),s=!0),e[h]=a[h]||u[1])}return s}function fm(e,t){var n=t.transform,r=e.dpr||1;n?e.setTransform(r*n[0],r*n[1],r*n[2],r*n[3],r*n[4],r*n[5]):e.setTransform(r,0,0,r,0,0)}var pm=1,Am=2,gm=3,mm=4;function vm(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill="",t.batchStroke=""}function ym(e,t){return t&&e.__hoverStyle||e.style}function bm(e,t){wm(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function wm(e,t,n,r){var i=t.transform;if(!t.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1))return t.__dirty&=~Cr.REDARAW_BIT,void(t.__isRendered=!1);var a=t.__clipPaths,o=n.prevElClipPaths,s=!1,l=!1;if(o&&!tm(a,o)||(o&&o.length&&(vm(e,n),e.restore(),l=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),a&&a.length&&(vm(e,n),e.save(),function(e,t,n){for(var r=!1,i=0;i<e.length;i++){var a=e[i];r=r||a.isZeroArea(),fm(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}n.allClipped=r}(a,e,n),s=!0),n.prevElClipPaths=a),n.allClipped)t.__isRendered=!1;else{t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var c=n.prevEl;c||(l=s=!0);var u,h,d=t instanceof vs&&t.autoBatch&&function(e){var t=am(e),n=im(e);return!(e.lineDash||!(+t^+n)||t&&"string"!=typeof e.fill||n&&"string"!=typeof e.stroke||e.strokePercent<1||e.strokeOpacity<1||e.fillOpacity<1)}(t.style);s||(u=i,h=c.transform,u&&h?u[0]!==h[0]||u[1]!==h[1]||u[2]!==h[2]||u[3]!==h[3]||u[4]!==h[4]||u[5]!==h[5]:u||h)?(vm(e,n),fm(e,t)):d||vm(e,n);var f=ym(t,n.inHover);t instanceof vs?(n.lastDrawType!==pm&&(l=!0,n.lastDrawType=pm),dm(e,t,c,l,n),d&&(n.batchFill||n.batchStroke)||e.beginPath(),function(e,t,n,r){var i=im(n),a=am(n),o=n.strokePercent,s=o<1,l=!t.path;t.silent&&!s||!l||t.createPathProxy();var c=t.path||rm;if(!r){var u=n.fill,h=n.stroke,d=a&&!!u.colorStops,f=i&&!!h.colorStops,p=a&&!!u.image,A=i&&!!h.image,g=void 0,m=void 0,v=void 0,y=void 0,b=void 0;(d||f)&&(b=t.getBoundingRect()),d&&(g=t.__dirty?em(e,u,b):t.__canvasFillGradient,t.__canvasFillGradient=g),f&&(m=t.__dirty?em(e,h,b):t.__canvasStrokeGradient,t.__canvasStrokeGradient=m),p&&(v=t.__dirty||!t.__canvasFillPattern?lm(e,u,t):t.__canvasFillPattern,t.__canvasFillPattern=v),A&&(y=t.__dirty||!t.__canvasStrokePattern?lm(e,h,t):t.__canvasStrokePattern,t.__canvasStrokePattern=v),d?e.fillStyle=g:p&&(v?e.fillStyle=v:a=!1),f?e.strokeStyle=m:A&&(y?e.strokeStyle=y:i=!1)}var w=n.lineDash&&n.lineWidth>0&&nm(n.lineDash,n.lineWidth),x=n.lineDashOffset,_=!!e.setLineDash,C=t.getGlobalScale();if(c.setScale(C[0],C[1],t.segmentIgnoreThreshold),w){var S=n.strokeNoScale&&t.getLineScale?t.getLineScale():1;S&&1!==S&&(w=W(w,function(e){return e/S}),x/=S)}var k=!0;(l||t.__dirty&vs.SHAPE_CHANGED_BIT||w&&!_&&i)&&(c.setDPR(e.dpr),s?c.setContext(null):(c.setContext(e),k=!1),c.reset(),w&&!_&&(c.setLineDash(w),c.setLineDashOffset(x)),t.buildPath(c,t.shape,r),c.toStatic(),t.pathUpdated()),k&&c.rebuildPath(e,s?o:1),w&&_&&(e.setLineDash(w),e.lineDashOffset=x),r||(n.strokeFirst?(i&&sm(e,n),a&&om(e,n)):(a&&om(e,n),i&&sm(e,n))),w&&_&&e.setLineDash([])}(e,t,f,d),d&&(n.batchFill=f.fill||"",n.batchStroke=f.stroke||"")):t instanceof ws?(n.lastDrawType!==gm&&(l=!0,n.lastDrawType=gm),dm(e,t,c,l,n),function(e,t,n){var r=n.text;if(null!=r&&(r+=""),r){e.font=n.font||rr,e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var i=void 0;if(e.setLineDash){var a=n.lineDash&&n.lineWidth>0&&nm(n.lineDash,n.lineWidth),o=n.lineDashOffset;if(a){var s=n.strokeNoScale&&t.getLineScale?t.getLineScale():1;s&&1!==s&&(a=W(a,function(e){return e/s}),o/=s),e.setLineDash(a),e.lineDashOffset=o,i=!0}}n.strokeFirst?(im(n)&&e.strokeText(r,n.x,n.y),am(n)&&e.fillText(r,n.x,n.y)):(am(n)&&e.fillText(r,n.x,n.y),im(n)&&e.strokeText(r,n.x,n.y)),i&&e.setLineDash([])}}(e,t,f)):t instanceof Ss?(n.lastDrawType!==Am&&(l=!0,n.lastDrawType=Am),function(e,t,n,r,i){hm(e,ym(t,i.inHover),n&&ym(n,i.inHover),r,i)}(e,t,c,l,n),function(e,t,n){var r=t.__image=_a(n.image,t.__image,t,t.onload);if(r&&Sa(r)){var i=n.x||0,a=n.y||0,o=t.getWidth(),s=t.getHeight(),l=r.width/r.height;if(null==o&&null!=s?o=s*l:null==s&&null!=o?s=o/l:null==o&&null==s&&(o=r.width,s=r.height),n.sWidth&&n.sHeight){var c=n.sx||0,u=n.sy||0;e.drawImage(r,c,u,n.sWidth,n.sHeight,i,a,o,s)}else if(n.sx&&n.sy){var h=o-(c=n.sx),d=s-(u=n.sy);e.drawImage(r,c,u,h,d,i,a,o,s)}else e.drawImage(r,i,a,o,s)}}(e,t,f)):t instanceof au&&(n.lastDrawType!==mm&&(l=!0,n.lastDrawType=mm),function(e,t,n){var r=t.getDisplayables(),i=t.getTemporalDisplayables();e.save();var a,o,s={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover};for(a=t.getCursor(),o=r.length;a<o;a++){var l=r[a];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),wm(e,l,s,a===o-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}for(var c=0,u=i.length;c<u;c++){var l=i[c];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),wm(e,l,s,c===u-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}(e,t,n)),d&&r&&vm(e,n),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),n.prevEl=t,t.__dirty=0,t.__isRendered=!0}}var xm=new Vg,_m=new rn(100),Cm=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Sm(e,t){if("none"===e)return null;var n=t.getDevicePixelRatio(),r=t.getZr(),i="svg"===r.painter.type;e.dirty&&xm.delete(e);var a=xm.get(e);if(a)return a;var o=j(e,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});"none"===o.backgroundColor&&(o.backgroundColor=null);var s={repeat:"repeat"};return function(e){for(var t,a=[n],s=!0,l=0;l<Cm.length;++l){var c=o[Cm[l]],u=typeof c;if(null!=c&&!te(c)&&"string"!==u&&"number"!==u&&"boolean"!==u){s=!1;break}a.push(c)}if(s){t=a.join(",")+(i?"-svg":"");var h=_m.get(t);h&&(i?e.svgElement=h:e.image=h)}var d,f=function e(t){if(!t||0===t.length)return[[0,0]];if("number"==typeof t){var n=Math.ceil(t);return[[n,n]]}var r=!0;for(var i=0;i<t.length;++i)if("number"!=typeof t[i]){r=!1;break}if(r)return e([t]);var a=[];for(var i=0;i<t.length;++i)if("number"==typeof t[i]){var n=Math.ceil(t[i]);a.push([n,n])}else{var n=W(t[i],function(e){return Math.ceil(e)});n.length%2==1?a.push(n.concat(n)):a.push(n)}return a}(o.dashArrayX),p=function(e){if(!e||"object"==typeof e&&0===e.length)return[0,0];if("number"==typeof e){var t=Math.ceil(e);return[t,t]}var n=W(e,function(e){return Math.ceil(e)});return e.length%2?n.concat(n):n}(o.dashArrayY),A=function e(t){if(!t||0===t.length)return[["rect"]];if("string"==typeof t)return[[t]];var n=!0;for(var r=0;r<t.length;++r)if("string"!=typeof t[r]){n=!1;break}if(n)return e([t]);var i=[];for(var r=0;r<t.length;++r)"string"==typeof t[r]?i.push([t[r]]):i.push(t[r]);return i}(o.symbol),g=(w=f,W(w,function(e){return km(e)})),m=km(p),v=!i&&Q(),y=i&&r.painter.createSVGElement("g"),b=function(){for(var e=1,t=0,n=g.length;t<n;++t)e=Ri(e,g[t]);for(var r=1,t=0,n=A.length;t<n;++t)r=Ri(r,A[t].length);e*=r;var i=m*g.length*A.length;return{width:Math.max(1,Math.min(e,o.maxTileWidth)),height:Math.max(1,Math.min(i,o.maxTileHeight))}}();var w;v&&(v.width=b.width*n,v.height=b.height*n,d=v.getContext("2d"));(function(){d&&(d.clearRect(0,0,v.width,v.height),o.backgroundColor&&(d.fillStyle=o.backgroundColor,d.fillRect(0,0,v.width,v.height)));for(var e=0,t=0;t<p.length;++t)e+=p[t];if(!(e<=0))for(var a=-m,s=0,l=0,c=0;a<b.height;){if(s%2==0){for(var u=l/2%A.length,h=0,g=0,w=0;h<2*b.width;){for(var x=0,t=0;t<f[c].length;++t)x+=f[c][t];if(x<=0)break;if(g%2==0){var _=.5*(1-o.symbolSize),C=h+f[c][g]*_,S=a+p[s]*_,k=f[c][g]*o.symbolSize,B=p[s]*o.symbolSize,E=w/2%A[u].length;T(C,S,k,B,A[u][E])}h+=f[c][g],++w,++g===f[c].length&&(g=0)}++c===f.length&&(c=0)}a+=p[s],++l,++s===p.length&&(s=0)}function T(e,t,a,s,l){var c=i?1:n,u=Zg(l,e*c,t*c,a*c,s*c,o.color,o.symbolKeepAspect);i?y.appendChild(r.painter.paintOne(u)):bm(d,u)}})(),s&&_m.put(t,v||y);e.image=v,e.svgElement=y,e.svgWidth=b.width,e.svgHeight=b.height}(s),s.rotation=o.rotation,s.scaleX=s.scaleY=i?1:1/n,xm.set(e,s),e.dirty=!1,s}function km(e){for(var t=0,n=0;n<e.length;++n)t+=e[n];return e.length%2==1?2*t:t}var Bm=ye,Em=q,Tm=ne,Im=oe,Mm=z,Fm="undefined"!=typeof window,Dm={zrender:"5.0.4"},Pm=2e3,Om=1e3,Lm=3e3,Rm={PROCESSOR:{FILTER:1e3,SERIES_FILTER:800,STATISTIC:5e3},VISUAL:{LAYOUT:Om,PROGRESSIVE_LAYOUT:1100,GLOBAL:2e3,CHART:Lm,POST_CHART_LAYOUT:4600,COMPONENT:4e3,BRUSH:5e3,CHART_ITEM:4500,ARIA:6e3,DECAL:7e3}},Nm=/^[a-zA-Z0-9_]+$/,Um="__connectUpdateStatus";function Hm(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(!this.isDisposed())return Qm(this,e,t);Av(this.id)}}function jm(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Qm(this,e,t)}}function Qm(e,t,n){return n[0]=n[0]&&n[0].toLowerCase(),at.prototype[t].apply(e,n)}var zm,Vm,Gm,$m,qm,Wm,Km,Ym,Xm,Jm,Zm,ev,tv,nv,rv,iv,av,ov,sv,lv,cv,uv=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return g(t,e),t}(at),hv=uv.prototype;hv.on=jm("on"),hv.off=jm("off");var dv=function(e){function t(t,n,r){var i=e.call(this,new tg)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],r=r||{},"string"==typeof n&&(n=_v[n]),i._dom=t;var a="canvas",o=!1,s=i._zr=ci(t,{renderer:r.renderer||a,devicePixelRatio:r.devicePixelRatio,width:r.width,height:r.height,useDirtyRect:null==r.useDirtyRect?o:r.useDirtyRect});i._throttledZrFlush=yA(Z(s.flush,s),17),(n=R(n))&&Df(n,!0),i._theme=n,i._locale=function(e){if(re(e)){var t=bh[e.toUpperCase()]||{};return e===mh||e===vh?R(t):N(R(t),R(bh[yh]),!1)}return N(R(e),R(bh[yh]),!1)}(r.locale||xh),i._coordSysMgr=new hf;var l=i._api=av(i);function c(e,t){return e.__prio-t.__prio}return Fr(xv,c),Fr(vv,c),i._scheduler=new GA(i,l,vv,xv),i._messageCenter=new uv,i._labelManager=new Ug,i._initEvents(),i.resize=Z(i.resize,i),s.animation.on("frame",i._onframe,i),Jm(s,i),Zm(s,i),xe(i),i}return g(t,e),t.prototype._onframe=function(){if(!this._disposed){cv(this);var e=this._scheduler;if(this.__optionUpdated){var t=this.__optionUpdated.silent;this.__flagInMainProcess=!0,zm(this),$m.update.call(this),this._zr.flush(),this.__flagInMainProcess=!1,this.__optionUpdated=!1,Ym.call(this,t),Xm.call(this,t)}else if(e.unfinished){var n=1,r=this._model,i=this._api;e.unfinished=!1;do{var a=+new Date;e.performSeriesTasks(r),e.performDataProcessorTasks(r),Wm(this,r),e.performVisualTasks(r),rv(this,this._model,i,"remain"),n-=+new Date-a}while(n>0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.setOption=function(e,t,n){if(this._disposed)Av(this.id);else{var r,i,a;if(Im(t)&&(n=t.lazyUpdate,r=t.silent,i=t.replaceMerge,a=t.transition,t=t.notMerge),this.__flagInMainProcess=!0,!this._model||t){var o=new pf(this._api),s=this._theme,l=this._model=new sf;l.scheduler=this._scheduler,l.init(null,null,null,s,this._locale,o)}this._model.setOption(e,{replaceMerge:i},yv),sv(this,a),n?(this.__optionUpdated={silent:r},this.__flagInMainProcess=!1,this.getZr().wakeUp()):(zm(this),$m.update.call(this),this._zr.flush(),this.__optionUpdated=!1,this.__flagInMainProcess=!1,Ym.call(this,r),Xm.call(this,r))}},t.prototype.setTheme=function(){console.error("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||Fm&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){if(w.canvasSupported)return(e=H({},e||{})).pixelRatio=e.pixelRatio||this.getDevicePixelRatio(),e.backgroundColor=e.backgroundColor||this._model.get("backgroundColor"),this._zr.painter.getRenderedCanvas(e)},t.prototype.getSvgDataURL=function(){if(w.svgSupported){var e=this._zr;return q(e.storage.getDisplayList(),function(e){e.stopAnimation(null,!0)}),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(!this._disposed){var t=(e=e||{}).excludeComponents,n=this._model,r=[],i=this;Em(t,function(e){n.eachComponent({mainType:e},function(e){var t=i._componentsMap[e.__viewId];t.group.ignore||(r.push(t),t.group.ignore=!0)})});var a="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.getRenderedCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return Em(r,function(e){e.group.ignore=!1}),a}Av(this.id)},t.prototype.getConnectedDataURL=function(e){if(this._disposed)Av(this.id);else if(w.canvasSupported){var t="svg"===e.type,n=this.group,r=Math.min,i=Math.max;if(kv[n]){var a=1/0,o=1/0,s=-1/0,l=-1/0,c=[],u=e&&e.pixelRatio||this.getDevicePixelRatio();q(Sv,function(u,h){if(u.group===n){var d=t?u.getZr().painter.getSvgDom().innerHTML:u.getRenderedCanvas(R(e)),f=u.getDom().getBoundingClientRect();a=r(f.left,a),o=r(f.top,o),s=i(f.right,s),l=i(f.bottom,l),c.push({dom:d,left:f.left,top:f.top})}});var h=(s*=u)-(a*=u),d=(l*=u)-(o*=u),f=Q(),p=ci(f,{renderer:t?"svg":"canvas"});if(p.resize({width:h,height:d}),t){var A="";return Em(c,function(e){var t=e.left-a,n=e.top-o;A+='<g transform="translate('+t+","+n+')">'+e.dom+"</g>"}),p.painter.getSvgRoot().innerHTML=A,e.connectedBackgroundColor&&p.painter.setBackgroundColor(e.connectedBackgroundColor),p.refreshImmediately(),p.painter.toDataURL()}return e.connectedBackgroundColor&&p.add(new Ds({shape:{x:0,y:0,width:h,height:d},style:{fill:e.connectedBackgroundColor}})),Em(c,function(e){var t=new Ss({style:{x:e.left*u-a,y:e.top*u-o,image:e.dom}});p.add(t)}),p.refreshImmediately(),f.toDataURL("image/"+(e&&e.type||"png"))}return this.getDataURL(e)}},t.prototype.convertToPixel=function(e,t){return qm(this,"convertToPixel",e,t)},t.prototype.convertFromPixel=function(e,t){return qm(this,"convertFromPixel",e,t)},t.prototype.containPixel=function(e,t){var n;if(!this._disposed)return q(ta(this._model,e),function(e,r){r.indexOf("Models")>=0&&q(e,function(e){var i=e.coordinateSystem;if(i&&i.containPoint)n=n||!!i.containPoint(t);else if("seriesModels"===r){var a=this._chartsMap[e.__viewId];a&&a.containPoint&&(n=n||a.containPoint(t,e))}else 0},this)},this),!!n;Av(this.id)},t.prototype.getVisual=function(e,t){var n=ta(this._model,e,{defaultMainType:"series"}),r=n.seriesModel;var i=r.getData(),a=n.hasOwnProperty("dataIndexInside")?n.dataIndexInside:n.hasOwnProperty("dataIndex")?i.indexOfRawIndex(n.dataIndex):null;return null!=a?rg(i,a,t):ig(i,t)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e,t,n,r=this;Em(pv,function(e){var t=function(t){var n,i=r.getModel(),a=t.target,o="globalout"===e;if(o?n={}:a&&Qg(a,function(e){var t=Gs(e);if(t&&null!=t.dataIndex){var r=t.dataModel||i.getSeriesByIndex(t.seriesIndex);return n=r&&r.getDataParams(t.dataIndex,t.dataType)||{},!0}if(t.eventData)return n=H({},t.eventData),!0},!0),n){var s=n.componentType,l=n.componentIndex;"markLine"!==s&&"markPoint"!==s&&"markArea"!==s||(s="series",l=n.seriesIndex);var c=s&&null!=l&&i.getComponent(s,l),u=c&&r["series"===c.mainType?"_chartsMap":"_componentsMap"][c.__viewId];0,n.event=t,n.type=e,r._$eventProcessor.eventInfo={targetEl:a,packedEvent:n,model:c,view:u},r.trigger(e,n)}};t.zrEventfulCallAtLast=!0,r._zr.on(e,t,r)}),Em(mv,function(e,t){r._messageCenter.on(t,function(e){this.trigger(t,e)},r)}),Em(["selectchanged"],function(e){r._messageCenter.on(e,function(t){this.trigger(e,t)},r)}),e=this._messageCenter,t=this,n=this._api,e.on("selectchanged",function(e){var r=n.getModel();e.isFromClick?(jg("map","selectchanged",t,r,e),jg("pie","selectchanged",t,r,e)):"select"===e.fromAction?(jg("map","selected",t,r,e),jg("pie","selected",t,r,e)):"unselect"===e.fromAction&&(jg("map","unselected",t,r,e),jg("pie","unselected",t,r,e))})},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){this._disposed?Av(this.id):this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed)Av(this.id);else{this._disposed=!0,aa(this.getDom(),Tv,"");var e=this._api,t=this._model;Em(this._componentsViews,function(n){n.dispose(t,e)}),Em(this._chartsViews,function(n){n.dispose(t,e)}),this._zr.dispose(),delete Sv[this.id]}},t.prototype.resize=function(e){if(this._disposed)Av(this.id);else{this._zr.resize(e);var t=this._model;if(this._loadingFX&&this._loadingFX.resize(),t){var n=t.resetOption("media"),r=e&&e.silent;this.__flagInMainProcess=!0,n&&zm(this),$m.update.call(this,{type:"resize",animation:{duration:0}}),this.__flagInMainProcess=!1,Ym.call(this,r),Xm.call(this,r)}}},t.prototype.showLoading=function(e,t){if(this._disposed)Av(this.id);else if(Im(e)&&(t=e,e=""),e=e||"default",this.hideLoading(),Cv[e]){var n=Cv[e](this._api,t),r=this._zr;this._loadingFX=n,r.add(n)}},t.prototype.hideLoading=function(){this._disposed?Av(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},t.prototype.makeActionFromEvent=function(e){var t=H({},e);return t.type=mv[e.type],t},t.prototype.dispatchAction=function(e,t){if(this._disposed)Av(this.id);else if(Im(t)||(t={silent:!!t}),gv[e.type]&&this._model)if(this.__flagInMainProcess)this._pendingActions.push(e);else{var n=t.silent;Km.call(this,e,n);var r=t.flush;r?this._zr.flush():!1!==r&&w.browser.weChat&&this._throttledZrFlush(),Ym.call(this,n),Xm.call(this,n)}},t.prototype.updateLabelLayout=function(){var e=this._labelManager;e.updateLayoutConfig(this._api),e.layout(this._api),e.processLabelsOverall()},t.prototype.appendData=function(e){if(this._disposed)Av(this.id);else{var t=e.seriesIndex,n=this.getModel().getSeriesByIndex(t);0,n.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},t.internalField=function(){function e(e){for(var t=[],n=e.currentStates,r=0;r<n.length;r++){var i=n[r];"emphasis"!==i&&"blur"!==i&&"select"!==i&&t.push(i)}e.selected&&e.states.select&&t.push("select"),e.hoverState===Xs&&e.states.emphasis?t.push("emphasis"):e.hoverState===Ys&&e.states.blur&&t.push("blur"),e.useStates(t)}function t(e,t){if(!e.preventAutoZ){var n=e.get("z"),r=e.get("zlevel");t.group.traverse(function(e){if(!e.isGroup){null!=n&&(e.z=n),null!=r&&(e.zlevel=r);var t=e.getTextContent(),i=e.getTextGuideLine();if(t&&(t.z=e.z,t.zlevel=e.zlevel,t.z2=e.z2+2),i){var a=e.textGuideLineConfig&&e.textGuideLineConfig.showAbove;i.z=e.z,i.zlevel=e.zlevel,i.z2=e.z2+(a?1:-1)}}})}}function n(e,t){t.group.traverse(function(e){if(!Eu(e)){var t=e.getTextContent(),n=e.getTextGuideLine();e.stateTransition&&(e.stateTransition=null),t&&t.stateTransition&&(t.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),e.hasState()?(e.prevStates=e.currentStates,e.clearStates()):e.prevStates&&(e.prevStates=null)}})}function r(t,n){var r=t.getModel("stateAnimation"),i=t.isAnimationEnabled(),a=r.get("duration"),o=a>0?{duration:a,delay:r.get("delay"),easing:r.get("easing")}:null;n.group.traverse(function(t){if(t.states&&t.states.emphasis){if(Eu(t))return;if(t instanceof vs&&function(e){var t=Ws(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var n=e.states.select||{};t.selectFill=n.style&&n.style.fill||null,t.selectStroke=n.style&&n.style.stroke||null}(t),t.__dirty){var n=t.prevStates;n&&t.useStates(n)}if(i){t.stateTransition=o;var r=t.getTextContent(),a=t.getTextGuideLine();r&&(r.stateTransition=o),a&&(a.stateTransition=o)}t.__dirty&&e(t)}})}zm=function(e){var t=e._scheduler;t.restorePipelines(e._model),t.prepareStageTasks(),Vm(e,!0),Vm(e,!1),t.plan()},Vm=function(e,t){for(var n=e._model,r=e._scheduler,i=t?e._componentsViews:e._chartsViews,a=t?e._componentsMap:e._chartsMap,o=e._zr,s=e._api,l=0;l<i.length;l++)i[l].__alive=!1;function c(e){var l=e.__requireNewView;e.__requireNewView=!1;var c="_ec_"+e.id+"_"+e.type,u=!l&&a[c];if(!u){var h=ha(e.type),d=t?aA.getClass(h.main,h.sub):AA.getClass(h.sub);0,(u=new d).init(n,s),a[c]=u,i.push(u),o.add(u.group)}e.__viewId=u.__id=c,u.__alive=!0,u.__model=e,u.group.__ecComponentInfo={mainType:e.mainType,index:e.componentIndex},!t&&r.prepareView(u,e,n,s)}t?n.eachComponent(function(e,t){"series"!==e&&c(t)}):n.eachSeries(c);for(l=0;l<i.length;){var u=i[l];u.__alive?l++:(!t&&u.renderTask.dispose(),o.remove(u.group),u.dispose(n,s),i.splice(l,1),a[u.__id]===u&&delete a[u.__id],u.__id=u.group.__ecComponentInfo=null)}},Gm=function(e,t,n,r,i){var a=e._model;if(a.setUpdatePayload(n),r){var o={};o[r+"Id"]=n[r+"Id"],o[r+"Index"]=n[r+"Index"],o[r+"Name"]=n[r+"Name"];var s={mainType:r,query:o};i&&(s.subType=i);var l,c=n.excludeSeriesId;null!=c&&(l=Se(),Em(Qi(c),function(e){var t=Ki(e,null);null!=t&&l.set(t,!0)})),a&&a.eachComponent(s,function(t){l&&null!=l.get(t.id)||(Ul(n)&&!n.notBlur?t instanceof rA&&function(e,t,n){if(Ul(t)){var r=t.type===nl,i=e.seriesIndex,a=e.getData(t.dataType),o=Ji(a,t);o=(te(o)?o[0]:o)||0;var s=a.getItemGraphicEl(o);if(!s)for(var l=a.count(),c=0;!s&&c<l;)s=a.getItemGraphicEl(c++);if(s){var u=Gs(s);Tl(i,u.focus,u.blurScope,n,r)}else{var h=e.get(["emphasis","focus"]),d=e.get(["emphasis","blurScope"]);null!=h&&Tl(i,h,d,n,r)}}}(t,n,e._api):Nl(n)&&t instanceof rA&&(!function(e,t,n){if(Nl(t)){var r=t.dataType,i=Ji(e.getData(r),t);te(i)||(i=[i]),e[t.type===ol?"toggleSelect":t.type===il?"select":"unselect"](i,r)}}(t,n,e._api),Il(t),lv(e)),u(e["series"===r?"_chartsMap":"_componentsMap"][t.__viewId]))},e)}else Em([].concat(e._componentsViews).concat(e._chartsViews),u);function u(r){r&&r.__alive&&r[t]&&r[t](r.__model,a,e._api,n)}},$m={prepareAndUpdate:function(e){zm(this),$m.update.call(this,e)},update:function(e){var t=this._model,n=this._api,r=this._zr,i=this._coordSysMgr,a=this._scheduler;if(t){t.setUpdatePayload(e),a.restoreData(t,e),a.performSeriesTasks(t),i.create(t,n),a.performDataProcessorTasks(t,e),Wm(this,t),i.update(t,n),ev(t),a.performVisualTasks(t,e),tv(this,t,n,e);var o=t.get("backgroundColor")||"transparent",s=t.get("darkMode");if(w.canvasSupported)r.setBackgroundColor(o),null!=s&&"auto"!==s&&r.setDarkMode(s);else{var l=mn(o);o=Bn(l,"rgb"),0===l[3]&&(o="transparent")}iv(t,n)}},updateTransform:function(e){var t=this,n=this._model,r=this._api;if(n){n.setUpdatePayload(e);var i=[];n.eachComponent(function(a,o){if("series"!==a){var s=t.getViewOfComponentModel(o);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(o,n,r,e);l&&l.update&&i.push(s)}else i.push(s)}});var a=Se();n.eachSeries(function(i){var o=t._chartsMap[i.__viewId];if(o.updateTransform){var s=o.updateTransform(i,n,r,e);s&&s.update&&a.set(i.uid,1)}else a.set(i.uid,1)}),ev(n),this._scheduler.performVisualTasks(n,e,{setDirty:!0,dirtyMap:a}),rv(this,n,r,e,a),iv(n,this._api)}},updateView:function(e){var t=this._model;t&&(t.setUpdatePayload(e),AA.markUpdateMethod(e,"updateView"),ev(t),this._scheduler.performVisualTasks(t,e,{setDirty:!0}),tv(this,this._model,this._api,e),iv(t,this._api))},updateVisual:function(e){var t=this,n=this._model;n&&(n.setUpdatePayload(e),n.eachSeries(function(e){e.getData().clearAllVisual()}),AA.markUpdateMethod(e,"updateVisual"),ev(n),this._scheduler.performVisualTasks(n,e,{visualType:"visual",setDirty:!0}),n.eachComponent(function(r,i){if("series"!==r){var a=t.getViewOfComponentModel(i);a&&a.__alive&&a.updateVisual(i,n,t._api,e)}}),n.eachSeries(function(r){t._chartsMap[r.__viewId].updateVisual(r,n,t._api,e)}),iv(n,this._api))},updateLayout:function(e){$m.update.call(this,e)}},qm=function(e,t,n,r){if(e._disposed)Av(e.id);else{for(var i,a=e._model,o=e._coordSysMgr.getCoordinateSystems(),s=ta(a,n),l=0;l<o.length;l++){var c=o[l];if(c[t]&&null!=(i=c[t](a,s,r)))return i}0}},Wm=function(e,t){var n=e._chartsMap,r=e._scheduler;t.eachSeries(function(e){r.updateStreamModes(e,n[e.__viewId])})},Km=function(e,t){var n=this,r=this.getModel(),i=e.type,a=e.escapeConnect,o=gv[i],s=o.actionInfo,l=(s.update||"update").split(":"),c=l.pop(),u=null!=l[0]&&ha(l[0]);this.__flagInMainProcess=!0;var h=[e],d=!1;e.batch&&(d=!0,h=W(e.batch,function(t){return(t=j(H({},t),e)).batch=null,t}));var f,p=[],A=Nl(e),g=Ul(e)||A;if(Em(h,function(e){(f=(f=o.action(e,n._model,n._api))||H({},e)).type=s.event||f.type,p.push(f),g?(Gm(n,c,e,"series"),lv(n)):u&&Gm(n,c,e,u.main,u.sub)}),"none"===c||g||u||(this.__optionUpdated?(zm(this),$m.update.call(this,e),this.__optionUpdated=!1):$m[c].call(this,e)),f=d?{type:s.event||i,escapeConnect:a,batch:p}:p[0],this.__flagInMainProcess=!1,!t){var m=this._messageCenter;if(m.trigger(f.type,f),A){var v={type:"selectchanged",escapeConnect:a,selected:function(e){var t=[];return e.eachSeries(function(e){q(e.getAllData(),function(n){n.data;var r=n.type,i=e.getSelectedDataIndices();if(i.length>0){var a={dataIndex:i,seriesIndex:e.seriesIndex};null!=r&&(a.dataType=r),t.push(a)}})}),t}(r),isFromClick:e.isFromClick||!1,fromAction:e.type,fromActionPayload:e};m.trigger(v.type,v)}}},Ym=function(e){for(var t=this._pendingActions;t.length;){var n=t.shift();Km.call(this,n,e)}},Xm=function(e){!e&&this.trigger("updated")},Jm=function(e,t){e.on("rendered",function(n){t.trigger("rendered",n),!e.animation.isFinished()||t.__optionUpdated||t._scheduler.unfinished||t._pendingActions.length||t.trigger("finished")})},Zm=function(e,t){e.on("mouseover",function(e){var n=Qg(e.target,Rl);if(n){var r=Gs(n);Tl(r.seriesIndex,r.focus,r.blurScope,t._api,!0),function(e,t){!El(e,t)&&!e.__highByOuter&&vl(e,hl)}(n,e),lv(t)}}).on("mouseout",function(e){var n=Qg(e.target,Rl);if(n){var r=Gs(n);Tl(r.seriesIndex,r.focus,r.blurScope,t._api,!1),function(e,t){!El(e,t)&&!e.__highByOuter&&vl(e,dl)}(n,e),lv(t)}}).on("click",function(e){var n=Qg(e.target,function(e){return null!=Gs(e).dataIndex},!0);if(n){var r=n.selected?"unselect":"select",i=Gs(n);t._api.dispatchAction({type:r,dataType:i.dataType,dataIndexInside:i.dataIndex,seriesIndex:i.seriesIndex,isFromClick:!0})}})},ev=function(e){e.clearColorPalette(),e.eachSeries(function(e){e.clearColorPalette()})},tv=function(e,t,n,r){nv(e,t,n,r),Em(e._chartsViews,function(e){e.__alive=!1}),rv(e,t,n,r),Em(e._chartsViews,function(e){e.__alive||e.remove(t,n)})},nv=function(e,i,a,o,s){Em(s||e._componentsViews,function(e){var s=e.__model;n(s,e),e.render(s,i,a,o),t(s,e),r(s,e)})},rv=function(e,i,a,o,s){var l=e._scheduler,c=e._labelManager;c.clearLabels();var u=!1;i.eachSeries(function(t){var r=e._chartsMap[t.__viewId];r.__alive=!0;var i=r.renderTask;l.updatePayload(i,o),n(t,r),s&&s.get(t.uid)&&i.dirty(),i.perform(l.getPerformArgs(i))&&(u=!0),t.__transientTransitionOpt=null,r.group.silent=!!t.get("silent"),function(e,t){var n=e.get("blendMode")||null;0;t.group.traverse(function(e){e.isGroup||(e.style.blend=n),e.eachPendingDisplayable&&e.eachPendingDisplayable(function(e){e.style.blend=n})})}(t,r),Il(t),c.addLabelsOfSeries(r)}),l.unfinished=u||l.unfinished,c.updateLayoutConfig(a),c.layout(a),c.processLabelsOverall(),i.eachSeries(function(n){var i=e._chartsMap[n.__viewId];t(n,i),r(n,i)}),function(e,t){var n=0;e._zr.storage.traverse(function(e){e.isGroup||n++}),n>t.get("hoverLayerThreshold")&&!w.node&&!w.worker&&t.eachSeries(function(t){if(!t.preventUsingHoverLayer){var n=e._chartsMap[t.__viewId];n.__alive&&n.group.traverse(function(e){e.states.emphasis&&(e.states.emphasis.hoverLayer=!0)})}})}(e,i)},iv=function(e,t){Em(wv,function(n){n(e,t)})},lv=function(e){e.__needsUpdateStatus=!0,e.getZr().wakeUp()},cv=function(t){t.__needsUpdateStatus&&(t.getZr().storage.traverse(function(t){Eu(t)||e(t)}),t.__needsUpdateStatus=!1)},av=function(e){return new(function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return g(n,t),n.prototype.getCoordinateSystems=function(){return e._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(t){for(;t;){var n=t.__ecComponentInfo;if(null!=n)return e._model.getComponent(n.mainType,n.index);t=t.parent}},n.prototype.enterEmphasis=function(t,n){xl(t,n),lv(e)},n.prototype.leaveEmphasis=function(t,n){_l(t,n),lv(e)},n.prototype.enterBlur=function(t){Cl(t),lv(e)},n.prototype.leaveBlur=function(t){Sl(t),lv(e)},n.prototype.enterSelect=function(t){kl(t),lv(e)},n.prototype.leaveSelect=function(t){Bl(t),lv(e)},n.prototype.getModel=function(){return e.getModel()},n.prototype.getViewOfComponentModel=function(t){return e.getViewOfComponentModel(t)},n.prototype.getViewOfSeriesModel=function(t){return e.getViewOfSeriesModel(t)},n}(cf))(e)},ov=function(e){function t(e,t){for(var n=0;n<e.length;n++){e[n][Um]=t}}Em(mv,function(n,r){e._messageCenter.on(r,function(n){if(kv[e.group]&&0!==e[Um]){if(n&&n.escapeConnect)return;var r=e.makeActionFromEvent(n),i=[];Em(Sv,function(t){t!==e&&t.group===e.group&&i.push(t)}),t(i,0),Em(i,function(e){1!==e[Um]&&e.dispatchAction(r)}),t(i,2)}})})},sv=function(e,t){var n=e._model;q(Qi(t),function(e){var t,r=e.from,i=e.to;null==i&&Ui(t);var a={includeMainTypes:["series"],enableAll:!1,enableNone:!1},o=r?ta(n,r,a):null,s=ta(n,i,a).seriesModel;null==s&&(t=""),o&&o.seriesModel!==s&&(t=""),null!=t&&Ui(t),s.__transientTransitionOpt={from:r?r.dimension:null,to:i.dimension,dividingMethod:e.dividingMethod}})}}(),t}(at),fv=dv.prototype;fv.on=Hm("on"),fv.off=Hm("off"),fv.one=function(e,t,n){var r=this;Ni(),this.on.call(this,e,function n(){for(var i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];t&&t.apply&&t.apply(this,i),r.off(e,n)},n)};var pv=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function Av(e){0}var gv={},mv={},vv=[],yv=[],bv=[],wv=[],xv=[],_v={},Cv={},Sv={},kv={},Bv=+new Date-0,Ev=+new Date-0,Tv="_echarts_instance_";function Iv(e,t,n){var r=Ov(e);if(r)return r;var i=new dv(e,t,n);return i.id="ec_"+Bv++,Sv[i.id]=i,aa(e,Tv,i.id),ov(i),Em(bv,function(e){e(i)}),i}function Mv(e){if(te(e)){var t=e;e=null,Em(t,function(t){null!=t.group&&(e=t.group)}),e=e||"g_"+Ev++,Em(t,function(t){t.group=e})}return kv[e]=!0,e}function Fv(e){kv[e]=!1}var Dv=Fv;function Pv(e){"string"==typeof e?e=Sv[e]:e instanceof dv||(e=Ov(e)),e instanceof dv&&!e.isDisposed()&&e.dispose()}function Ov(e){return Sv[function(e,t){return e.getAttribute?e.getAttribute(t):e[t]}(e,Tv)]}function Lv(e){return Sv[e]}function Rv(e,t){_v[e]=t}function Nv(e){Mm(yv,e)<0&&yv.push(e)}function Uv(e,t){Wv(vv,e,t,Pm)}function Hv(e){Mm(bv,e)<0&&e&&bv.push(e)}function jv(e){Mm(wv,e)<0&&e&&wv.push(e)}function Qv(e,t,n){"function"==typeof t&&(n=t,t="");var r=Im(e)?e.type:[e,e={event:t}][0];e.event=(e.event||r).toLowerCase(),t=e.event,mv[t]||(Bm(Nm.test(r)&&Nm.test(t)),gv[r]||(gv[r]={action:n,actionInfo:e}),mv[t]=r)}function zv(e,t){hf.register(e,t)}function Vv(e){var t=hf.get(e);if(t)return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()}function Gv(e,t){Wv(xv,e,t,Om,"layout")}function $v(e,t){Wv(xv,e,t,Lm,"visual")}var qv=[];function Wv(e,t,n,r,i){if((Tm(t)||Im(t))&&(n=t,t=r),!(Mm(qv,n)>=0)){qv.push(n);var a=GA.wrapStageHandler(n,i);a.__prio=t,a.__raw=n,e.push(a)}}function Kv(e,t){Cv[e]=t}function Yv(e){D("createCanvas",e)}function Xv(e,t,n){ZA.registerMap(e,t,n)}function Jv(e){var t=ZA.retrieveMap(e);return t&&t[0]&&{geoJson:t[0].geoJSON,specialAreas:t[0].specialAreas}}var Zv=function(e){var t=(e=R(e)).type,n="";t||Ui(n);var r=t.split(":");2!==r.length&&Ui(n);var i=!1;"echarts"===r[0]&&(t=r[1],i=!0),e.__isBuiltIn=i,Sp.set(t,e)};$v(2e3,kA),$v(4500,EA),$v(4500,TA),$v(2e3,ng),$v(4500,{createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(e.hasSymbolVisual&&!t.isSeriesFiltered(e))return{dataEach:e.getData().hasItemOption?function(e,t){var n=e.getItemModel(t),r=n.getShallow("symbol",!0),i=n.getShallow("symbolSize",!0),a=n.getShallow("symbolRotate",!0),o=n.getShallow("symbolKeepAspect",!0);null!=r&&e.setItemVisual(t,"symbol",r),null!=i&&e.setItemVisual(t,"symbolSize",i),null!=a&&e.setItemVisual(t,"symbolRotate",a),null!=o&&e.setItemVisual(t,"symbolKeepAspect",o)}:null}}}),$v(7e3,function(e,t){e.eachRawSeries(function(n){if(!e.isSeriesFiltered(n)){var r=n.getData();r.hasItemVisual()&&r.each(function(e){var n=r.getItemVisual(e,"decal");n&&(r.ensureUniqueItemVisual(e,"style").decal=Sm(n,t))});var i=r.getVisual("decal");i&&(r.getVisual("style").decal=Sm(i,t))}})}),Nv(Df),Uv(900,function(e){var t=Se();e.eachSeries(function(e){var n=e.get("stack");if(n){var r=t.get(n)||t.set(n,[]),i=e.getData(),a={stackResultDimension:i.getCalculationInfo("stackResultDimension"),stackedOverDimension:i.getCalculationInfo("stackedOverDimension"),stackedDimension:i.getCalculationInfo("stackedDimension"),stackedByDimension:i.getCalculationInfo("stackedByDimension"),isStackedByIndex:i.getCalculationInfo("isStackedByIndex"),data:i,seriesModel:e};if(!a.stackedDimension||!a.isStackedByIndex&&!a.stackedByDimension)return;r.length&&i.setCalculationInfo("stackedOnSeries",r[r.length-1].seriesModel),r.push(a)}}),t.each(Pf)}),Kv("default",function(e,t){j(t=t||{},{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new ii,r=new Ds({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(r);var i,a=new Vs({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily}}),o=new Ds({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});return n.add(o),t.showSpinner&&((i=new Wc({shape:{startAngle:-IA/2,endAngle:-IA/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*IA/2}).start("circularInOut"),i.animateShape(!0).when(1e3,{startAngle:3*IA/2}).delay(300).start("circularInOut"),n.add(i)),n.resize=function(){var n=a.getBoundingRect().width,s=t.showSpinner?t.spinnerRadius:0,l=(e.getWidth()-2*s-(t.showSpinner&&n?10:0)-n)/2-(t.showSpinner&&n?0:5+n/2)+(t.showSpinner?0:n/2)+(n?0:s),c=e.getHeight()/2;t.showSpinner&&i.setShape({cx:l,cy:c}),o.setShape({x:l-s,y:c-s,width:2*s,height:2*s}),r.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},n.resize(),n}),Qv({type:nl,event:nl,update:nl},Te),Qv({type:rl,event:rl,update:rl},Te),Qv({type:il,event:il,update:il},Te),Qv({type:al,event:al,update:al},Te),Qv({type:ol,event:ol,update:ol},Te),Rv("light",qA),Rv("dark",YA);var ey={},ty=[],ny={registerPreprocessor:Nv,registerProcessor:Uv,registerPostInit:Hv,registerPostUpdate:jv,registerAction:Qv,registerCoordinateSystem:zv,registerLayout:Gv,registerVisual:$v,registerTransform:Zv,registerLoading:Kv,registerMap:Xv,PRIORITY:Rm,ComponentModel:Bd,ComponentView:aA,SeriesModel:rA,ChartView:AA,registerComponentModel:function(e){Bd.registerClass(e)},registerComponentView:function(e){aA.registerClass(e)},registerSeriesModel:function(e){rA.registerClass(e)},registerChartView:function(e){AA.registerClass(e)},registerSubTypeDefaulter:function(e,t){Bd.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){fi(e,t)}};function ry(e){te(e)?q(e,function(e){ry(e)}):z(ty,e)>=0||(ty.push(e),ne(e)&&(e={install:e}),e.install(ny))}function iy(e){return null==e?0:e.length||1}function ay(e){return e}var oy=function(){function e(e,t,n,r,i,a){this._old=e,this._new=t,this._oldKeyGetter=n||ay,this._newKeyGetter=r||ay,this.context=i,this._diffModeMultiple="multiple"===a}return e.prototype.add=function(e){return this._add=e,this},e.prototype.update=function(e){return this._update=e,this},e.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},e.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},e.prototype.remove=function(e){return this._remove=e,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var e=this._old,t=this._new,n={},r=new Array(e.length),i=new Array(t.length);this._initIndexMap(e,null,r,"_oldKeyGetter"),this._initIndexMap(t,n,i,"_newKeyGetter");for(var a=0;a<e.length;a++){var o=r[a],s=n[o],l=iy(s);if(l>1){var c=s.shift();1===s.length&&(n[o]=s[0]),this._update&&this._update(c,a)}else 1===l?(n[o]=null,this._update&&this._update(s,a)):this._remove&&this._remove(a)}this._performRestAdd(i,n)},e.prototype._executeMultiple=function(){var e=this._old,t=this._new,n={},r={},i=[],a=[];this._initIndexMap(e,n,i,"_oldKeyGetter"),this._initIndexMap(t,r,a,"_newKeyGetter");for(var o=0;o<i.length;o++){var s=i[o],l=n[s],c=r[s],u=iy(l),h=iy(c);if(u>1&&1===h)this._updateManyToOne&&this._updateManyToOne(c,l),r[s]=null;else if(1===u&&h>1)this._updateOneToMany&&this._updateOneToMany(c,l),r[s]=null;else if(1===u&&1===h)this._update&&this._update(c,l),r[s]=null;else if(u>1)for(var d=0;d<u;d++)this._remove&&this._remove(l[d]);else this._remove&&this._remove(l)}this._performRestAdd(a,r)},e.prototype._performRestAdd=function(e,t){for(var n=0;n<e.length;n++){var r=e[n],i=t[r],a=iy(i);if(a>1)for(var o=0;o<a;o++)this._add&&this._add(i[o]);else 1===a&&this._add&&this._add(i);t[r]=null}},e.prototype._initIndexMap=function(e,t,n,r){for(var i=this._diffModeMultiple,a=0;a<e.length;a++){var o="_ec_"+this[r](e[a],a);if(i||(n[a]=o),t){var s=t[o],l=iy(s);0===l?(t[o]=a,i&&n.push(o)):1===l?t[o]=[s,a]:s.push(a)}}},e}();function sy(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function ly(e){return"category"===e?"ordinal":"time"===e?"time":"float"}var cy,uy,hy,dy,fy,py,Ay,gy,my,vy,yy,by,wy,xy,_y=function(){return function(e){this.otherDims={},null!=e&&H(this,e)}}(),Cy=Math.floor,Sy=oe,ky=W,By={float:"undefined"==typeof Float64Array?Array:Float64Array,int:"undefined"==typeof Int32Array?Array:Int32Array,ordinal:Array,number:Array,time:Array},Ey="undefined"==typeof Uint32Array?Array:Uint32Array,Ty="undefined"==typeof Int32Array?Array:Int32Array,Iy="undefined"==typeof Uint16Array?Array:Uint16Array,My=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_rawData","_dimValueGetter","_count","_rawCount","_nameDimIdx","_idDimIdx","_nameRepeatCount"],Fy=["_extent","_approximateExtent","_rawExtent"],Dy=function(){function e(e,t){this.type="list",this._count=0,this._rawCount=0,this._storage={},this._storageArr=[],this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._rawExtent={},this._extent={},this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!0,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"],this.getRawIndex=fy,e=e||["x","y"];for(var n={},r=[],i={},a=0;a<e.length;a++){var o=e[a],s=re(o)?new _y({name:o}):o instanceof _y?o:new _y(o),l=s.name;s.type=s.type||"float",s.coordDim||(s.coordDim=l,s.coordDimIndex=0);var c=s.otherDims=s.otherDims||{};r.push(l),n[l]=s,s.index=a,s.createInvertedIndices&&(i[l]=[]),0===c.itemName&&(this._nameDimIdx=a,this._nameOrdinalMeta=s.ordinalMeta),0===c.itemId&&(this._idDimIdx=a,this._idOrdinalMeta=s.ordinalMeta)}this.dimensions=r,this._dimensionInfos=n,this.hostModel=t,this._dimensionsSummary=function(e){var t={},n=t.encode={},r=Se(),i=[],a=[],o=t.userOutput={dimensionNames:e.dimensions.slice(),encode:{}};q(e.dimensions,function(t){var s,l=e.getDimensionInfo(t),c=l.coordDim;if(c){var u=l.coordDimIndex;sy(n,c)[u]=t,l.isExtraCoord||(r.set(c,1),"ordinal"!==(s=l.type)&&"time"!==s&&(i[0]=t),sy(o.encode,c)[u]=l.index),l.defaultTooltip&&a.push(t)}Md.each(function(e,t){var r=sy(n,t),i=l.otherDims[t];null!=i&&!1!==i&&(r[i]=l.name)})});var s=[],l={};r.each(function(e,t){var r=n[t];l[t]=r[0],s=s.concat(r)}),t.dataDimsOnCoord=s,t.encodeFirstDimNotExtra=l;var c=n.label;c&&c.length&&(i=c.slice());var u=n.tooltip;return u&&u.length?a=u.slice():a.length||(a=i.slice()),n.defaultedLabel=i,n.defaultedTooltip=a,t}(this),this._invertedIndicesMap=i,this.userOutput=this._dimensionsSummary.userOutput}return e.prototype.getDimension=function(e){return"number"!=typeof e&&(isNaN(e)||this._dimensionInfos.hasOwnProperty(e))||(e=this.dimensions[e]),e},e.prototype.getDimensionInfo=function(e){return this._dimensionInfos[this.getDimension(e)]},e.prototype.getDimensionsOnCoord=function(){return this._dimensionsSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(e,t){var n=this._dimensionsSummary;if(null==t)return n.encodeFirstDimNotExtra[e];var r=n.encode[e];return r?r[t]:null},e.prototype.mapDimensionsAll=function(e){return(this._dimensionsSummary.encode[e]||[]).slice()},e.prototype.initData=function(e,t,n){var r=jf(e)||$(e),i=r?new Wf(e,this.dimensions.length):e;this._rawData=i;var a=i.getSource().sourceFormat;this._storage={},this._indices=null,this._dontMakeIdFromName=null!=this._idDimIdx||a===Ld||!!i.fillStorage,this._nameList=(t||[]).slice(),this._idList=[],this._nameRepeatCount={},n||(this.hasItemOption=!1),this.defaultDimValueGetter=cy[a],this._dimValueGetter=n=n||this.defaultDimValueGetter,this._dimValueGetterArrayRows=cy.arrayRows,this._rawExtent={},this._initDataFromProvider(0,i.count()),i.pure&&(this.hasItemOption=!1)},e.prototype.getProvider=function(){return this._rawData},e.prototype.appendData=function(e){var t=this._rawData,n=this.count();t.appendData(e);var r=t.count();t.persistent||(r+=n),this._initDataFromProvider(n,r,!0)},e.prototype.appendValues=function(e,t){for(var n=this._storage,r=this.dimensions,i=r.length,a=this._rawExtent,o=this.count(),s=o+Math.max(e.length,t?t.length:0),l=0;l<i;l++){var c=r[l];a[c]||(a[c]=by()),dy(n,this._dimensionInfos[c],s,!0)}for(var u=ky(r,function(e){return a[e]}),h=this._storageArr=ky(r,function(e){return n[e]}),d=[],f=o;f<s;f++){for(var p=f-o,A=0;A<i;A++){c=r[A];var g=this._dimValueGetterArrayRows(e[p]||d,c,p,A);h[A][f]=g;var m=u[A];g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}t&&(this._nameList[f]=t[p],this._dontMakeIdFromName||my(this,f))}this._rawCount=this._count=s,this._extent={},uy(this)},e.prototype._initDataFromProvider=function(e,t,n){if(!(e>=t)){for(var r=this._rawData,i=this._storage,a=this.dimensions,o=a.length,s=this._dimensionInfos,l=this._nameList,c=this._idList,u=this._rawExtent,h=r.getSource().sourceFormat===Fd,d=0;d<o;d++){var f=a[d];u[f]||(u[f]=by()),dy(i,s[f],t,n)}var p=this._storageArr=ky(a,function(e){return i[e]}),A=ky(a,function(e){return u[e]});if(r.fillStorage)r.fillStorage(e,t,p,A);else for(var g=[],m=e;m<t;m++){g=r.getItem(m,g);for(var v=0;v<o;v++){f=a[v];var y=p[v],b=this._dimValueGetter(g,f,m,v);y[m]=b;var w=A[v];b<w[0]&&(w[0]=b),b>w[1]&&(w[1]=b)}if(h&&!r.pure&&g){var x=g.name;null==l[m]&&null!=x&&(l[m]=Ki(x,null));var _=g.id;null==c[m]&&null!=_&&(c[m]=Ki(_,null))}this._dontMakeIdFromName||my(this,m)}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=t,this._extent={},uy(this)}},e.prototype.count=function(){return this._count},e.prototype.getIndices=function(){var e,t=this._indices;if(t){var n=t.constructor,r=this._count;if(n===Array){e=new n(r);for(var i=0;i<r;i++)e[i]=t[i]}else e=new n(t.buffer,0,r)}else{e=new(n=hy(this))(this.count());for(i=0;i<e.length;i++)e[i]=i}return e},e.prototype.getByDimIdx=function(e,t){if(!(t>=0&&t<this._count))return NaN;var n=this._storageArr[e];return n?n[this.getRawIndex(t)]:NaN},e.prototype.get=function(e,t){if(!(t>=0&&t<this._count))return NaN;var n=this._storage[e];return n?n[this.getRawIndex(t)]:NaN},e.prototype.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var n=this._storage[e];return n?n[t]:NaN},e.prototype.getValues=function(e,t){var n=[];te(e)||(t=e,e=this.dimensions);for(var r=0,i=e.length;r<i;r++)n.push(this.get(e[r],t));return n},e.prototype.hasValue=function(e){for(var t=this._dimensionsSummary.dataDimsOnCoord,n=0,r=t.length;n<r;n++)if(isNaN(this.get(t[n],e)))return!1;return!0},e.prototype.getDataExtent=function(e){e=this.getDimension(e);var t=this._storage[e],n=by();if(!t)return n;var r,i=this.count();if(!this._indices)return this._rawExtent[e].slice();if(r=this._extent[e])return r.slice();for(var a=(r=n)[0],o=r[1],s=0;s<i;s++){var l=t[this.getRawIndex(s)];l<a&&(a=l),l>o&&(o=l)}return r=[a,o],this._extent[e]=r,r},e.prototype.getApproximateExtent=function(e){return e=this.getDimension(e),this._approximateExtent[e]||this.getDataExtent(e)},e.prototype.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},e.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},e.prototype.setCalculationInfo=function(e,t){Sy(e)?H(this._calculationInfo,e):this._calculationInfo[e]=t},e.prototype.getSum=function(e){var t=0;if(this._storage[e])for(var n=0,r=this.count();n<r;n++){var i=this.get(e,n);isNaN(i)||(t+=i)}return t},e.prototype.getMedian=function(e){var t=[];this.each(e,function(e){isNaN(e)||t.push(e)});var n=t.sort(function(e,t){return e-t}),r=this.count();return 0===r?0:r%2==1?n[(r-1)/2]:(n[r/2]+n[r/2-1])/2},e.prototype.rawIndexOf=function(e,t){var n=e&&this._invertedIndicesMap[e];var r=n[t];return null==r||isNaN(r)?-1:r},e.prototype.indexOfName=function(e){for(var t=0,n=this.count();t<n;t++)if(this.getName(t)===e)return t;return-1},e.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,n=t[e];if(null!=n&&n<this._count&&n===e)return e;for(var r=0,i=this._count-1;r<=i;){var a=(r+i)/2|0;if(t[a]<e)r=a+1;else{if(!(t[a]>e))return a;i=a-1}}return-1},e.prototype.indicesOfNearest=function(e,t,n){var r=this._storage[e],i=[];if(!r)return i;null==n&&(n=1/0);for(var a=1/0,o=-1,s=0,l=0,c=this.count();l<c;l++){var u=t-r[this.getRawIndex(l)],h=Math.abs(u);h<=n&&((h<a||h===a&&u>=0&&o<0)&&(a=h,o=u,s=0),u===o&&(i[s++]=l))}return i.length=s,i},e.prototype.getRawDataItem=function(e){if(this._rawData.persistent)return this._rawData.getItem(this.getRawIndex(e));for(var t=[],n=0;n<this.dimensions.length;n++){var r=this.dimensions[n];t.push(this.get(r,e))}return t},e.prototype.getName=function(e){var t=this.getRawIndex(e),n=this._nameList[t];return null==n&&null!=this._nameDimIdx&&(n=gy(this,this._nameDimIdx,this._nameOrdinalMeta,t)),null==n&&(n=""),n},e.prototype.getId=function(e){return Ay(this,this.getRawIndex(e))},e.prototype.each=function(e,t,n,r){var i=this;if(this._count){"function"==typeof e&&(r=n,n=t,t=e,e=[]);var a=n||r||this,o=ky(vy(e),this.getDimension,this);0;for(var s=o.length,l=ky(o,function(e){return i._dimensionInfos[e].index}),c=this._storageArr,u=0,h=this.count();u<h;u++){var d=this.getRawIndex(u);switch(s){case 0:t.call(a,u);break;case 1:t.call(a,c[l[0]][d],u);break;case 2:t.call(a,c[l[0]][d],c[l[1]][d],u);break;default:for(var f=0,p=[];f<s;f++)p[f]=c[l[f]][d];p[f]=u,t.apply(a,p)}}}},e.prototype.filterSelf=function(e,t,n,r){var i=this;if(this._count){"function"==typeof e&&(r=n,n=t,t=e,e=[]);var a=n||r||this,o=ky(vy(e),this.getDimension,this);0;for(var s=this.count(),l=new(hy(this))(s),c=[],u=o.length,h=0,d=ky(o,function(e){return i._dimensionInfos[e].index}),f=d[0],p=this._storageArr,A=0;A<s;A++){var g=void 0,m=this.getRawIndex(A);if(0===u)g=t.call(a,A);else if(1===u){var v=p[f][m];g=t.call(a,v,A)}else{for(var y=0;y<u;y++)c[y]=p[d[y]][m];c[y]=A,g=t.apply(a,c)}g&&(l[h++]=m)}return h<s&&(this._indices=l),this._count=h,this._extent={},this.getRawIndex=this._indices?py:fy,this}},e.prototype.selectRange=function(e){var t=this,n=this._count;if(n){var r=[];for(var i in e)e.hasOwnProperty(i)&&r.push(i);0;var a=r.length;if(a){var o=this.count(),s=new(hy(this))(o),l=0,c=r[0],u=ky(r,function(e){return t._dimensionInfos[e].index}),h=e[c][0],d=e[c][1],f=this._storageArr,p=!1;if(!this._indices){var A=0;if(1===a){for(var g=f[u[0]],m=0;m<n;m++){((w=g[m])>=h&&w<=d||isNaN(w))&&(s[l++]=A),A++}p=!0}else if(2===a){g=f[u[0]];var v=f[u[1]],y=e[r[1]][0],b=e[r[1]][1];for(m=0;m<n;m++){var w=g[m],x=v[m];(w>=h&&w<=d||isNaN(w))&&(x>=y&&x<=b||isNaN(x))&&(s[l++]=A),A++}p=!0}}if(!p)if(1===a)for(m=0;m<o;m++){var _=this.getRawIndex(m);((w=f[u[0]][_])>=h&&w<=d||isNaN(w))&&(s[l++]=_)}else for(m=0;m<o;m++){for(var C=!0,S=(_=this.getRawIndex(m),0);S<a;S++){var k=r[S];((w=f[u[S]][_])<e[k][0]||w>e[k][1])&&(C=!1)}C&&(s[l++]=this.getRawIndex(m))}return l<o&&(this._indices=s),this._count=l,this._extent={},this.getRawIndex=this._indices?py:fy,this}}},e.prototype.mapArray=function(e,t,n,r){"function"==typeof e&&(r=n,n=t,t=e,e=[]),n=n||r||this;var i=[];return this.each(e,function(){i.push(t&&t.apply(this,arguments))},n),i},e.prototype.map=function(e,t,n,r){var i=n||r||this,a=ky(vy(e),this.getDimension,this);var o=yy(this,a),s=o._storage;o._indices=this._indices,o.getRawIndex=o._indices?py:fy;for(var l=[],c=a.length,u=this.count(),h=[],d=o._rawExtent,f=0;f<u;f++){for(var p=0;p<c;p++)h[p]=this.get(a[p],f);h[c]=f;var A=t&&t.apply(i,h);if(null!=A){"object"!=typeof A&&(l[0]=A,A=l);for(var g=this.getRawIndex(f),m=0;m<A.length;m++){var v=a[m],y=A[m],b=d[v],w=s[v];w&&(w[g]=y),y<b[0]&&(b[0]=y),y>b[1]&&(b[1]=y)}}}return o},e.prototype.downSample=function(e,t,n,r){for(var i=yy(this,[e]),a=i._storage,o=[],s=Cy(1/t),l=a[e],c=this.count(),u=i._rawExtent[e],h=new(hy(this))(c),d=0,f=0;f<c;f+=s){s>c-f&&(s=c-f,o.length=s);for(var p=0;p<s;p++){var A=this.getRawIndex(f+p);o[p]=l[A]}var g=n(o),m=this.getRawIndex(Math.min(f+r(o,g)||0,c-1));l[m]=g,g<u[0]&&(u[0]=g),g>u[1]&&(u[1]=g),h[d++]=m}return i._count=d,i._indices=h,i.getRawIndex=py,i},e.prototype.lttbDownSample=function(e,t){var n,r,i,a=yy(this,[]),o=a._storage[e],s=this.count(),l=new(hy(this))(s),c=0,u=Cy(1/t),h=this.getRawIndex(0);l[c++]=h;for(var d=1;d<s-1;d+=u){for(var f=Math.min(d+u,s-1),p=Math.min(d+2*u,s),A=(p+f)/2,g=0,m=f;m<p;m++){var v=o[_=this.getRawIndex(m)];isNaN(v)||(g+=v)}g/=p-f;var y=d,b=Math.min(d+u,s),w=d-1,x=o[h];n=-1,i=y;for(m=y;m<b;m++){var _;v=o[_=this.getRawIndex(m)];isNaN(v)||(r=Math.abs((w-A)*(v-x)-(w-m)*(g-x)))>n&&(n=r,i=_)}l[c++]=i,h=i}return l[c++]=this.getRawIndex(s-1),a._count=c,a._indices=l,a.getRawIndex=py,a},e.prototype.getItemModel=function(e){var t=this.hostModel,n=this.getRawDataItem(e);return new fh(n,t,t&&t.ecModel)},e.prototype.diff=function(e){var t=this;return new oy(e?e.getIndices():[],this.getIndices(),function(t){return Ay(e,t)},function(e){return Ay(t,e)})},e.prototype.getVisual=function(e){var t=this._visual;return t&&t[e]},e.prototype.setVisual=function(e,t){this._visual=this._visual||{},Sy(e)?H(this._visual,e):this._visual[e]=t},e.prototype.getItemVisual=function(e,t){var n=this._itemVisuals[e],r=n&&n[t];return null==r?this.getVisual(t):r},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(e,t){var n=this._itemVisuals,r=n[e];r||(r=n[e]={});var i=r[t];return null==i&&(te(i=this.getVisual(t))?i=i.slice():Sy(i)&&(i=H({},i)),r[t]=i),i},e.prototype.setItemVisual=function(e,t,n){var r=this._itemVisuals[e]||{};this._itemVisuals[e]=r,Sy(t)?H(r,t):r[t]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(e,t){if(Sy(e))for(var n in e)e.hasOwnProperty(n)&&this.setLayout(n,e[n]);else this._layout[e]=t},e.prototype.getLayout=function(e){return this._layout[e]},e.prototype.getItemLayout=function(e){return this._itemLayouts[e]},e.prototype.setItemLayout=function(e,t,n){this._itemLayouts[e]=n?H(this._itemLayouts[e]||{},t):t},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(e,t){var n=this.hostModel;if(t){var r=Gs(t);r.dataIndex=e,r.dataType=this.dataType,r.seriesIndex=n&&n.seriesIndex,"group"===t.type&&t.traverse(wy,t)}this._graphicEls[e]=t},e.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},e.prototype.eachItemGraphicEl=function(e,t){q(this._graphicEls,function(n,r){n&&e&&e.call(t,n,r)})},e.prototype.cloneShallow=function(t){t||(t=new e(ky(this.dimensions,this.getDimensionInfo,this),this.hostModel));if(t._storage=this._storage,t._storageArr=this._storageArr,xy(t,this),this._indices){var n=this._indices.constructor;if(n===Array){var r=this._indices.length;t._indices=new n(r);for(var i=0;i<r;i++)t._indices[i]=this._indices[i]}else t._indices=new n(this._indices)}else t._indices=null;return t.getRawIndex=t._indices?py:fy,t},e.prototype.wrapMethod=function(e,t){var n=this[e];"function"==typeof n&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=n.apply(this,arguments);return t.apply(this,[e].concat(me(arguments)))})},e.internalField=function(){function t(e,t,n,r){return dp(e[r],this._dimensionInfos[t])}cy={arrayRows:t,objectRows:function(e,t,n,r){return dp(e[t],this._dimensionInfos[t])},keyedColumns:t,original:function(e,t,n,r){var i=e&&(null==e.value?e:e.value);return!this._rawData.pure&&function(e){return oe(e)&&!(e instanceof Array)}(e)&&(this.hasItemOption=!0),dp(i instanceof Array?i[r]:i,this._dimensionInfos[t])},typedArray:function(e,t,n,r){return e[r]}},uy=function(e){var t=e._invertedIndicesMap;q(t,function(n,r){var i=e._dimensionInfos[r].ordinalMeta;if(i){n=t[r]=new Ty(i.categories.length);for(var a=0;a<n.length;a++)n[a]=-1;for(a=0;a<e._count;a++)n[e.get(r,a)]=a}})},gy=function(e,t,n,r){var i,a=e._storageArr[t];return a&&(i=a[r],n&&n.categories.length&&(i=n.categories[i])),Ki(i,null)},hy=function(e){return e._rawCount>65535?Ey:Iy},dy=function(e,t,n,r){var i=By[t.type],a=t.name;if(r){var o=e[a],s=o&&o.length;if(s!==n){for(var l=new i(n),c=0;c<s;c++)l[c]=o[c];e[a]=l}}else e[a]=new i(n)},fy=function(e){return e},py=function(e){return e<this._count&&e>=0?this._indices[e]:-1},Ay=function(e,t){var n=e._idList[t];return null==n&&null!=e._idDimIdx&&(n=gy(e,e._idDimIdx,e._idOrdinalMeta,t)),null==n&&(n="e\0\0"+t),n},vy=function(e){return te(e)||(e=null!=e?[e]:[]),e},function(e,t){for(var n=0;n<t.length;n++)e._dimensionInfos[t[n]]||console.error("Unkown dimension "+t[n])},yy=function(t,n){var r=t.dimensions,i=new e(ky(r,t.getDimensionInfo,t),t.hostModel);xy(i,t);for(var a,o,s=i._storage={},l=t._storage,c=i._storageArr=[],u=0;u<r.length;u++){var h=r[u];l[h]&&(z(n,h)>=0?(s[h]=(a=l[h],o=void 0,(o=a.constructor)===Array?a.slice():new o(a)),i._rawExtent[h]=by(),i._extent[h]=null):s[h]=l[h],c.push(s[h]))}return i},by=function(){return[1/0,-1/0]},wy=function(e){var t=Gs(e),n=Gs(this);t.seriesIndex=n.seriesIndex,t.dataIndex=n.dataIndex,t.dataType=n.dataType},xy=function(e,t){q(My.concat(t.__wrappedMethods||[]),function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e.__wrappedMethods=t.__wrappedMethods,q(Fy,function(n){e[n]=R(t[n])}),e._calculationInfo=H({},t._calculationInfo)},my=function(e,t){var n=e._nameList,r=e._idList,i=e._nameDimIdx,a=e._idDimIdx,o=n[t],s=r[t];if(null==o&&null!=i&&(n[t]=o=gy(e,i,e._nameOrdinalMeta,t)),null==s&&null!=a&&(r[t]=s=gy(e,a,e._idOrdinalMeta,t)),null==s&&null!=o){var l=e._nameRepeatCount,c=l[o]=(l[o]||0)+1;s=o,c>1&&(s+="__ec__"+c),r[t]=s}}}(),e}();function Py(e,t,n){if(n||null!=t.get(e)){for(var r=0;null!=t.get(e+r);)r++;e+=r}return t.set(e,!0),e}var Oy=function(e,t,n){jf(t)||(t=zf(t)),n=n||{},e=(e||[]).slice();for(var r=(n.dimsDef||[]).slice(),i=Se(),a=Se(),o=[],s=function(e,t,n,r){var i=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,r||0);return q(t,function(e){var t;oe(e)&&(t=e.dimsDef)&&(i=Math.max(i,t.length))}),i}(t,e,r,n.dimCount),l=0;l<s;l++){var c=r[l],u=r[l]=H({},oe(c)?c:{name:c}),h=u.name,d=o[l]=new _y;null!=h&&null==i.get(h)&&(d.name=d.displayName=h,i.set(h,l)),null!=u.type&&(d.type=u.type),null!=u.displayName&&(d.displayName=u.displayName)}var f=n.encodeDef;!f&&n.encodeDefaulter&&(f=n.encodeDefaulter(t,s));var p=Se(f);p.each(function(e,t){var n=Qi(e).slice();if(1===n.length&&!re(n[0])&&n[0]<0)p.set(t,!1);else{var r=p.set(t,[]);q(n,function(e,n){var a=re(e)?i.get(e):e;null!=a&&a<s&&(r[n]=a,g(o[a],t,n))})}});var A=0;function g(e,t,n){null!=Md.get(t)?e.otherDims[t]=n:(e.coordDim=t,e.coordDimIndex=n,a.set(t,!0))}q(e,function(e){var t,n,r,i;if(re(e))t=e,i={};else{t=(i=e).name;var a=i.ordinalMeta;i.ordinalMeta=null,(i=R(i)).ordinalMeta=a,n=i.dimsDef,r=i.otherDims,i.name=i.coordDim=i.coordDimIndex=i.dimsDef=i.otherDims=null}var s=p.get(t);if(!1!==s){if(!(s=Qi(s)).length)for(var l=0;l<(n&&n.length||1);l++){for(;A<o.length&&null!=o[A].coordDim;)A++;A<o.length&&s.push(A++)}q(s,function(e,a){var s=o[e];if(g(j(s,i),t,a),null==s.name&&n){var l=n[a];!oe(l)&&(l={name:l}),s.name=s.displayName=l.name,s.defaultTooltip=l.defaultTooltip}r&&j(s.otherDims,r)})}});var m=n.generateCoord,v=n.generateCoordCount,y=null!=v;v=m?v||1:0;for(var b=m||"value",w=0;w<s;w++)null==(d=o[w]=o[w]||new _y).coordDim&&(d.coordDim=Py(b,a,y),d.coordDimIndex=0,(!m||v<=0)&&(d.isExtraCoord=!0),v--),null==d.name&&(d.name=Py(d.coordDim,i,!1)),null!=d.type||Gd(t,w)!==Hd.Must&&(!d.isExtraCoord||null==d.otherDims.itemName&&null==d.otherDims.seriesName)||(d.type="ordinal");return o};function Ly(e,t){return Oy((t=t||{}).coordDimensions||[],e,{dimsDef:t.dimensionsDefine||e.dimensionsDefine,encodeDef:t.encodeDefine||e.encodeDefine,dimCount:t.dimensionsCount,encodeDefaulter:t.encodeDefaulter,generateCoord:t.generateCoord,generateCoordCount:t.generateCoordCount})}var Ry=function(){return function(e){this.coordSysDims=[],this.axisMap=Se(),this.categoryAxisMap=Se(),this.coordSysName=e}}();var Ny={cartesian2d:function(e,t,n,r){var i=e.getReferringComponents("xAxis",na).models[0],a=e.getReferringComponents("yAxis",na).models[0];t.coordSysDims=["x","y"],n.set("x",i),n.set("y",a),Uy(i)&&(r.set("x",i),t.firstCategoryDimIndex=0),Uy(a)&&(r.set("y",a),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,n,r){var i=e.getReferringComponents("singleAxis",na).models[0];t.coordSysDims=["single"],n.set("single",i),Uy(i)&&(r.set("single",i),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var i=e.getReferringComponents("polar",na).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],n.set("radius",a),n.set("angle",o),Uy(a)&&(r.set("radius",a),t.firstCategoryDimIndex=0),Uy(o)&&(r.set("angle",o),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=1))},geo:function(e,t,n,r){t.coordSysDims=["lng","lat"]},parallel:function(e,t,n,r){var i=e.ecModel,a=i.getComponent("parallel",e.get("parallelIndex")),o=t.coordSysDims=a.dimensions.slice();q(a.parallelAxisIndex,function(e,a){var s=i.getComponent("parallelAxis",e),l=o[a];n.set(l,s),Uy(s)&&(r.set(l,s),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=a))})}};function Uy(e){return"category"===e.get("type")}function Hy(e,t,n){var r,i,a,o,s=(n=n||{}).byIndex,l=n.stackedCoordDimension,c=!(!e||!e.get("stack"));if(q(t,function(e,n){re(e)&&(t[n]=e={name:e}),c&&!e.isExtraCoord&&(s||r||!e.ordinalMeta||(r=e),i||"ordinal"===e.type||"time"===e.type||l&&l!==e.coordDim||(i=e))}),!i||s||r||(s=!0),i){a="__\0ecstackresult",o="__\0ecstackedover",r&&(r.createInvertedIndices=!0);var u=i.coordDim,h=i.type,d=0;q(t,function(e){e.coordDim===u&&d++}),t.push({name:a,coordDim:u,coordDimIndex:d,type:h,isExtraCoord:!0,isCalculationCoord:!0}),d++,t.push({name:o,coordDim:o,coordDimIndex:d,type:h,isExtraCoord:!0,isCalculationCoord:!0})}return{stackedDimension:i&&i.name,stackedByDimension:r&&r.name,isStackedByIndex:s,stackedOverDimension:o,stackResultDimension:a}}function jy(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function Qy(e,t){return jy(e,t)?e.getCalculationInfo("stackResultDimension"):t}var zy=function(e,t,n){n=n||{},jf(e)||(e=zf(e));var r,i=t.get("coordinateSystem"),a=hf.get(i),o=function(e){var t=e.get("coordinateSystem"),n=new Ry(t),r=Ny[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}(t);o&&o.coordSysDims&&(r=W(o.coordSysDims,function(e){var t={name:e},n=o.axisMap.get(e);if(n){var r=n.get("type");t.type=ly(r)}return t})),r||(r=a&&(a.getDimensionsInfo?a.getDimensionsInfo():a.dimensions.slice())||["x","y"]);var s,l,c=n.useEncodeDefaulter,u=Ly(e,{coordDimensions:r,generateCoord:n.generateCoord,encodeDefaulter:ne(c)?c:c?ee(Qd,r,t):null});o&&q(u,function(e,t){var r=e.coordDim,i=o.categoryAxisMap.get(r);i&&(null==s&&(s=t),e.ordinalMeta=i.getOrdinalMeta(),n.createInvertedIndices&&(e.createInvertedIndices=!0)),null!=e.otherDims.itemName&&(l=!0)}),l||null==s||(u[s].otherDims.itemName=0);var h=Hy(t,u),d=new Dy(u,t);d.setCalculationInfo(h);var f=null!=s&&function(e){if(e.sourceFormat===Fd){var t=function(e){for(var t=0;t<e.length&&null==e[t];)t++;return e[t]}(e.data||[]);return null!=t&&!te(Gi(t))}}(e)?function(e,t,n,r){return r===s?n:this.defaultDimValueGetter(e,t,n,r)}:null;return d.hasItemOption=!1,d.initData(e,null,f),d},Vy=function(){function e(e){this._setting=e||{},this._extent=[1/0,-1/0]}return e.prototype.getSetting=function(e){return this._setting[e]},e.prototype.unionExtent=function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1])},e.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=e),isNaN(t)||(n[1]=t)},e.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(e){this._isBlank=e},e}();ma(Vy);var Gy=Vy;function $y(e){return oe(e)&&null!=e.value?e.value:e+""}var qy=function(){function e(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication}return e.createByAxisModel=function(t){var n=t.option,r=n.data,i=r&&W(r,$y);return new e({categories:i,needCollect:!i,deduplication:!1!==n.dedplication})},e.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},e.prototype.parseAndCollect=function(e){var t,n=this._needCollect;if("string"!=typeof e&&!n)return e;if(n&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var r=this._getOrCreateMap();return null==(t=r.get(e))&&(n?(t=this.categories.length,this.categories[t]=e,r.set(e,t)):t=NaN),t},e.prototype._getOrCreateMap=function(){return this._map||(this._map=Se(this.categories))},e}(),Wy=vi;function Ky(e,t,n,r){var i={},a=e[1]-e[0],o=i.interval=Mi(a/t,!0);null!=n&&o<n&&(o=i.interval=n),null!=r&&o>r&&(o=i.interval=r);var s=i.intervalPrecision=Yy(o);return function(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),Xy(e,0,t),Xy(e,1,t),e[0]>e[1]&&(e[0]=e[1])}(i.niceTickExtent=[Wy(Math.ceil(e[0]/o)*o,s),Wy(Math.floor(e[1]/o)*o,s)],e),i}function Yy(e){return wi(e)+2}function Xy(e,t,n){e[t]=Math.max(Math.min(e[t],n[1]),n[0])}function Jy(e,t){return e>=t[0]&&e<=t[1]}function Zy(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function eb(e,t){return e*(t[1]-t[0])+t[0]}var tb=function(e){function t(t){var n=e.call(this,t)||this;n.type="ordinal";var r=n.getSetting("ordinalMeta");return r||(r=new qy({})),te(r)&&(r=new qy({categories:W(r,function(e){return oe(e)?e.value:e})})),n._ordinalMeta=r,n._extent=n.getSetting("extent")||[0,r.categories.length-1],n}return g(t,e),t.prototype.parse=function(e){return"string"==typeof e?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return Jy(e=this.parse(e),this._extent)&&null!=this._ordinalMeta.categories[e]},t.prototype.normalize=function(e){return Zy(e=this._getTickNumber(this.parse(e)),this._extent)},t.prototype.scale=function(e){return e=Math.round(eb(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],t=this._extent,n=t[0];n<=t[1];)e.push({value:n}),n++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(null!=e){for(var t=e.ordinalNumbers,n=this._ordinalNumbersByTick=[],r=this._ticksByOrdinalNumber=[],i=0,a=this._ordinalMeta.categories.length,o=Math.min(a,t.length);i<o;++i){var s=t[i];n[i]=s,r[s]=i}for(var l=0;i<a;++i){for(;null!=r[l];)l++;n.push(l),r[l]=i}}else this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null},t.prototype._getTickNumber=function(e){var t=this._ticksByOrdinalNumber;return t&&e>=0&&e<t.length?t[e]:e},t.prototype.getRawOrdinalNumber=function(e){var t=this._ordinalNumbersByTick;return t&&e>=0&&e<t.length?t[e]:e},t.prototype.getLabel=function(e){if(!this.isBlank()){var t=this.getRawOrdinalNumber(e.value),n=this._ordinalMeta.categories[t];return null==n?"":n+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},t.prototype.isInExtentRange=function(e){return e=this._getTickNumber(e),this._extent[0]<=e&&this._extent[1]>=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.niceTicks=function(){},t.prototype.niceExtent=function(){},t.type="ordinal",t}(Gy);Gy.registerClass(tb);var nb=tb,rb=vi,ib=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return g(t,e),t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return Jy(e,this._extent)},t.prototype.normalize=function(e){return Zy(e,this._extent)},t.prototype.scale=function(e){return eb(e,this._extent)},t.prototype.setExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=parseFloat(e)),isNaN(t)||(n[1]=parseFloat(t))},t.prototype.unionExtent=function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1]),this.setExtent(t[0],t[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=Yy(e)},t.prototype.getTicks=function(e){var t=this._interval,n=this._extent,r=this._niceExtent,i=this._intervalPrecision,a=[];if(!t)return a;n[0]<r[0]&&(e?a.push({value:rb(r[0]-t,i)}):a.push({value:n[0]}));for(var o=r[0];o<=r[1]&&(a.push({value:o}),(o=rb(o+t,i))!==a[a.length-1].value);)if(a.length>1e4)return[];var s=a.length?a[a.length-1].value:r[1];return n[1]>s&&(e?a.push({value:rb(s+t,i)}):a.push({value:n[1]})),a},t.prototype.getMinorTicks=function(e){for(var t=this.getTicks(!0),n=[],r=this.getExtent(),i=1;i<t.length;i++){for(var a=t[i],o=t[i-1],s=0,l=[],c=(a.value-o.value)/e;s<e-1;){var u=rb(o.value+(s+1)*c);u>r[0]&&u<r[1]&&l.push(u),s++}n.push(l)}return n},t.prototype.getLabel=function(e,t){if(null==e)return"";var n=t&&t.precision;return null==n?n=wi(e.value)||0:"auto"===n&&(n=this._intervalPrecision),Zh(rb(e.value,n,!0))},t.prototype.niceTicks=function(e,t,n){e=e||5;var r=this._extent,i=r[1]-r[0];if(isFinite(i)){i<0&&(i=-i,r.reverse());var a=Ky(r,e,t,n);this._intervalPrecision=a.intervalPrecision,this._interval=a.interval,this._niceExtent=a.niceTickExtent}},t.prototype.niceExtent=function(e){var t=this._extent;if(t[0]===t[1])if(0!==t[0]){var n=t[0];e.fixMax?t[0]-=n/2:(t[1]+=n/2,t[0]-=n/2)}else t[1]=1;var r=t[1]-t[0];isFinite(r)||(t[0]=0,t[1]=1),this.niceTicks(e.splitNumber,e.minInterval,e.maxInterval);var i=this._interval;e.fixMin||(t[0]=rb(Math.floor(t[0]/i)*i)),e.fixMax||(t[1]=rb(Math.ceil(t[1]/i)*i))},t.type="interval",t}(Gy);Gy.registerClass(ib);var ab=ib,ob="__ec_stack_",sb="undefined"!=typeof Float32Array?Float32Array:Array;function lb(e){return e.get("stack")||ob+e.seriesIndex}function cb(e){return e.dim+e.index}function ub(e,t){var n=[];return t.eachSeriesByType(e,function(e){gb(e)&&!mb(e)&&n.push(e)}),n}function hb(e){var t=function(e){var t={};q(e,function(e){var n=e.coordinateSystem.getBaseAxis();if("time"===n.type||"value"===n.type)for(var r=e.getData(),i=n.dim+"_"+n.index,a=r.mapDimension(n.dim),o=0,s=r.count();o<s;++o){var l=r.get(a,o);t[i]?t[i].push(l):t[i]=[l]}});var n={};for(var r in t)if(t.hasOwnProperty(r)){var i=t[r];if(i){i.sort(function(e,t){return e-t});for(var a=null,o=1;o<i.length;++o){var s=i[o]-i[o-1];s>0&&(a=null===a?s:Math.min(a,s))}n[r]=a}}return n}(e),n=[];return q(e,function(e){var r,i=e.coordinateSystem.getBaseAxis(),a=i.getExtent();if("category"===i.type)r=i.getBandWidth();else if("value"===i.type||"time"===i.type){var o=i.dim+"_"+i.index,s=t[o],l=Math.abs(a[1]-a[0]),c=i.scale.getExtent(),u=Math.abs(c[1]-c[0]);r=s?l/u*s:l}else{var h=e.getData();r=Math.abs(a[1]-a[0])/h.count()}var d=mi(e.get("barWidth"),r),f=mi(e.get("barMaxWidth"),r),p=mi(e.get("barMinWidth")||1,r),A=e.get("barGap"),g=e.get("barCategoryGap");n.push({bandWidth:r,barWidth:d,barMaxWidth:f,barMinWidth:p,barGap:A,barCategoryGap:g,axisKey:cb(i),stackId:lb(e)})}),db(n)}function db(e){var t={};q(e,function(e,n){var r=e.axisKey,i=e.bandWidth,a=t[r]||{bandWidth:i,remainedWidth:i,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},o=a.stacks;t[r]=a;var s=e.stackId;o[s]||a.autoWidthCount++,o[s]=o[s]||{width:0,maxWidth:0};var l=e.barWidth;l&&!o[s].width&&(o[s].width=l,l=Math.min(a.remainedWidth,l),a.remainedWidth-=l);var c=e.barMaxWidth;c&&(o[s].maxWidth=c);var u=e.barMinWidth;u&&(o[s].minWidth=u);var h=e.barGap;null!=h&&(a.gap=h);var d=e.barCategoryGap;null!=d&&(a.categoryGap=d)});var n={};return q(t,function(e,t){n[t]={};var r=e.stacks,i=e.bandWidth,a=e.categoryGap;if(null==a){var o=J(r).length;a=Math.max(35-4*o,15)+"%"}var s=mi(a,i),l=mi(e.gap,1),c=e.remainedWidth,u=e.autoWidthCount,h=(c-s)/(u+(u-1)*l);h=Math.max(h,0),q(r,function(e){var t=e.maxWidth,n=e.minWidth;if(e.width){r=e.width;t&&(r=Math.min(r,t)),n&&(r=Math.max(r,n)),e.width=r,c-=r+l*r,u--}else{var r=h;t&&t<r&&(r=Math.min(t,c)),n&&n>r&&(r=n),r!==h&&(e.width=r,c-=r+l*r,u--)}}),h=(c-s)/(u+(u-1)*l),h=Math.max(h,0);var d,f=0;q(r,function(e,t){e.width||(e.width=h),d=e,f+=e.width*(1+l)}),d&&(f-=d.width*l);var p=-f/2;q(r,function(e,r){n[t][r]=n[t][r]||{bandWidth:i,offset:p,width:e.width},p+=e.width*(1+l)})}),n}function fb(e,t,n){if(e&&t){var r=e[cb(t)];return null!=r&&null!=n?r[lb(n)]:r}}function pb(e,t){var n=ub(e,t),r=hb(n),i={};q(n,function(e){var t=e.getData(),n=e.coordinateSystem,a=n.getBaseAxis(),o=lb(e),s=r[cb(a)][o],l=s.offset,c=s.width,u=n.getOtherAxis(a),h=e.get("barMinHeight")||0;i[o]=i[o]||[],t.setLayout({bandWidth:s.bandWidth,offset:l,size:c});for(var d=t.mapDimension(u.dim),f=t.mapDimension(a.dim),p=jy(t,d),A=u.isHorizontal(),g=vb(a,u,p),m=0,v=t.count();m<v;m++){var y=t.get(d,m),b=t.get(f,m),w=y>=0?"p":"n",x=g;p&&(i[o][b]||(i[o][b]={p:g,n:g}),x=i[o][b][w]);var _,C=void 0,S=void 0,k=void 0,B=void 0;if(A)C=x,S=(_=n.dataToPoint([y,b]))[1]+l,k=_[0]-g,B=c,Math.abs(k)<h&&(k=(k<0?-1:1)*h),isNaN(k)||p&&(i[o][b][w]+=k);else C=(_=n.dataToPoint([b,y]))[0]+l,S=x,k=c,B=_[1]-g,Math.abs(B)<h&&(B=(B<=0?-1:1)*h),isNaN(B)||p&&(i[o][b][w]+=B);t.setItemLayout(m,{x:C,y:S,width:k,height:B})}})}var Ab={seriesType:"bar",plan:oA(),reset:function(e){if(gb(e)&&mb(e)){var t=e.getData(),n=e.coordinateSystem,r=n.master.getRect(),i=n.getBaseAxis(),a=n.getOtherAxis(i),o=t.mapDimension(a.dim),s=t.mapDimension(i.dim),l=a.isHorizontal(),c=l?0:1,u=fb(hb([e]),i,e).width;return u>.5||(u=.5),{progress:function(e,t){for(var h,d=e.count,f=new sb(2*d),p=new sb(2*d),A=new sb(d),g=[],m=[],v=0,y=0;null!=(h=e.next());)m[c]=t.get(o,h),m[1-c]=t.get(s,h),g=n.dataToPoint(m,null,g),p[v]=l?r.x+r.width:g[0],f[v++]=g[0],p[v]=l?g[1]:r.y+r.height,f[v++]=g[1],A[y++]=h;t.setLayout({largePoints:f,largeDataIndices:A,largeBackgroundPoints:p,barWidth:u,valueAxisStart:vb(i,a,!1),backgroundStart:l?r.x:r.y,valueAxisHorizontal:l})}}}}};function gb(e){return e.coordinateSystem&&"cartesian2d"===e.coordinateSystem.type}function mb(e){return e.pipelineContext&&e.pipelineContext.large}function vb(e,t,n){return t.toGlobalCoord(t.dataToCoord("log"===t.type?1:0))}var yb=function(e){function t(t){var n=e.call(this,t)||this;return n.type="time",n}return g(t,e),t.prototype.getLabel=function(e){var t=this.getSetting("useUTC");return Oh(e.value,Ih[function(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}(Ph(this._minLevelUnit))]||Ih.second,t,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(e,t,n){var r=this.getSetting("useUTC");return function(e,t,n,r,i){var a=null;if("string"==typeof n)a=n;else if("function"==typeof n)a=n(e.value,t,{level:e.level});else{var o=H({},Th);if(e.level>0)for(var s=0;s<Mh.length;++s)o[Mh[s]]="{primary|"+o[Mh[s]]+"}";var l=n?!1===n.inherit?n:j(n,o):o,c=Lh(e.value,i);if(l[c])a=l[c];else if(l.inherit){for(s=Fh.indexOf(c)-1;s>=0;--s)if(l[c]){a=l[c];break}a=a||o.none}if(te(a)){var u=null==e.level?0:e.level>=0?e.level:a.length+e.level;a=a[u=Math.min(u,a.length-1)]}}return Oh(new Date(e.value),a,i,r)}(e,t,n,this.getSetting("locale"),r)},t.prototype.getTicks=function(e){var t=this._interval,n=this._extent,r=[];if(!t)return r;r.push({value:n[0],level:0});var i=this.getSetting("useUTC"),a=function(e,t,n,r){var i=Fh,a=0;function o(e,t,n,i,a,o,s){for(var l=new Date(t),c=t,u=l[i]();c<n&&c<=r[1];)s.push({value:c}),u+=e,l[a](u),c=l.getTime();s.push({value:c,notAdd:!0})}function s(e,i,a){var s=[],l=!i.length;if(!function(e,t,n,r){var i=Ei(t),a=Ei(n),o=function(e){return Rh(i,e,r)===Rh(a,e,r)},s=function(){return o("year")},l=function(){return s()&&o("month")},c=function(){return l()&&o("day")},u=function(){return c()&&o("hour")},h=function(){return u()&&o("minute")},d=function(){return h()&&o("second")};switch(e){case"year":return s();case"month":return l();case"day":return c();case"hour":return u();case"minute":return h();case"second":return d();case"millisecond":return d()&&o("millisecond")}}(Ph(e),r[0],r[1],n)){l&&(i=[{value:function(e,t,n){var r=new Date(e);switch(Ph(t)){case"year":case"month":r[$h(n)](0);case"day":r[qh(n)](1);case"hour":r[Wh(n)](0);case"minute":r[Kh(n)](0);case"second":r[Yh(n)](0),r[Xh(n)](0)}return r.getTime()}(new Date(r[0]),e,n)},{value:r[1]}]);for(var c=0;c<i.length-1;c++){var u=i[c].value,h=i[c+1].value;if(u!==h){var d=void 0,f=void 0,p=void 0,A=!1;switch(e){case"year":d=Math.max(1,Math.round(t/Bh/365)),f=Nh(n),p=Gh(n);break;case"half-year":case"quarter":case"month":d=xb(t),f=Uh(n),p=$h(n);break;case"week":case"half-week":case"day":d=wb(t,31),f=Hh(n),p=qh(n),A=!0;break;case"half-day":case"quarter-day":case"hour":d=_b(t),f=jh(n),p=Wh(n);break;case"minute":d=Cb(t,!0),f=Qh(n),p=Kh(n);break;case"second":d=Cb(t,!1),f=zh(n),p=Yh(n);break;case"millisecond":d=Sb(t),f=Vh(n),p=Xh(n)}o(d,u,h,f,p,A,s),"year"===e&&a.length>1&&0===c&&a.unshift({value:a[0].value-d})}}for(var c=0;c<s.length;c++)a.push(s[c]);return s}}for(var l=[],c=[],u=0,h=0,d=0;d<i.length&&a++<1e4;++d){var f=Ph(i[d]);if((y=i[d])===Ph(y)){s(i[d],l[l.length-1]||[],c);var p=i[d+1]?Ph(i[d+1]):null;if(f!==p){if(c.length){h=u,c.sort(function(e,t){return e.value-t.value});for(var A=[],g=0;g<c.length;++g){var m=c[g].value;0!==g&&c[g-1].value===m||(A.push(c[g]),m>=r[0]&&m<=r[1]&&u++)}var v=(r[1]-r[0])/t;if(u>1.5*v&&h>v/1.5)break;if(l.push(A),u>v||e===i[d])break}c=[]}}}var y;0;for(var b=Y(W(l,function(e){return Y(e,function(e){return e.value>=r[0]&&e.value<=r[1]&&!e.notAdd})}),function(e){return e.length>0}),w=[],x=b.length-1,d=0;d<b.length;++d)for(var _=b[d],C=0;C<_.length;++C)w.push({value:_[C].value,level:x-d});w.sort(function(e,t){return e.value-t.value});for(var S=[],d=0;d<w.length;++d)0!==d&&w[d].value===w[d-1].value||S.push(w[d]);return S}(this._minLevelUnit,this._approxInterval,i,n);return(r=r.concat(a)).push({value:n[1],level:0}),r},t.prototype.niceExtent=function(e){var t=this._extent;if(t[0]===t[1]&&(t[0]-=Bh,t[1]+=Bh),t[1]===-1/0&&t[0]===1/0){var n=new Date;t[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),t[0]=t[1]-Bh}this.niceTicks(e.splitNumber,e.minInterval,e.maxInterval)},t.prototype.niceTicks=function(e,t,n){e=e||10;var r=this._extent,i=r[1]-r[0];this._approxInterval=i/e,null!=t&&this._approxInterval<t&&(this._approxInterval=t),null!=n&&this._approxInterval>n&&(this._approxInterval=n);var a=bb.length,o=Math.min(function(e,t,n,r){for(;n<r;){var i=n+r>>>1;e[i][1]<t?n=i+1:r=i}return n}(bb,this._approxInterval,0,a),a-1);this._interval=bb[o][1],this._minLevelUnit=bb[Math.max(o-1,0)][0]},t.prototype.parse=function(e){return"number"==typeof e?e:+Ei(e)},t.prototype.contain=function(e){return Jy(this.parse(e),this._extent)},t.prototype.normalize=function(e){return Zy(this.parse(e),this._extent)},t.prototype.scale=function(e){return eb(e,this._extent)},t.type="time",t}(ab),bb=[["second",Ch],["minute",Sh],["hour",kh],["quarter-day",6*kh],["half-day",12*kh],["day",1.2*Bh],["half-week",3.5*Bh],["week",7*Bh],["month",31*Bh],["quarter",95*Bh],["half-year",Eh/2],["year",Eh]];function wb(e,t){return(e/=Bh)>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function xb(e){return(e/=30*Bh)>6?6:e>3?3:e>2?2:1}function _b(e){return(e/=kh)>12?12:e>6?6:e>3.5?4:e>2?2:1}function Cb(e,t){return(e/=t?Sh:Ch)>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function Sb(e){return Mi(e,!0)}Gy.registerClass(yb);var kb=yb,Bb=Gy.prototype,Eb=ab.prototype,Tb=wi,Ib=vi,Mb=Math.floor,Fb=Math.ceil,Db=Math.pow,Pb=Math.log,Ob=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="log",t.base=10,t._originalScale=new ab,t._interval=0,t}return g(t,e),t.prototype.getTicks=function(e){var t=this._originalScale,n=this._extent,r=t.getExtent();return W(Eb.getTicks.call(this,e),function(e){var t=e.value,i=vi(Db(this.base,t));return i=t===n[0]&&this._fixMin?Rb(i,r[0]):i,{value:i=t===n[1]&&this._fixMax?Rb(i,r[1]):i}},this)},t.prototype.setExtent=function(e,t){var n=this.base;e=Pb(e)/Pb(n),t=Pb(t)/Pb(n),Eb.setExtent.call(this,e,t)},t.prototype.getExtent=function(){var e=this.base,t=Bb.getExtent.call(this);t[0]=Db(e,t[0]),t[1]=Db(e,t[1]);var n=this._originalScale.getExtent();return this._fixMin&&(t[0]=Rb(t[0],n[0])),this._fixMax&&(t[1]=Rb(t[1],n[1])),t},t.prototype.unionExtent=function(e){this._originalScale.unionExtent(e);var t=this.base;e[0]=Pb(e[0])/Pb(t),e[1]=Pb(e[1])/Pb(t),Bb.unionExtent.call(this,e)},t.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},t.prototype.niceTicks=function(e){e=e||10;var t=this._extent,n=t[1]-t[0];if(!(n===1/0||n<=0)){var r=Ti(n);for(e/n*r<=.5&&(r*=10);!isNaN(r)&&Math.abs(r)<1&&Math.abs(r)>0;)r*=10;var i=[vi(Fb(t[0]/r)*r),vi(Mb(t[1]/r)*r)];this._interval=r,this._niceExtent=i}},t.prototype.niceExtent=function(e){Eb.niceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return Jy(e=Pb(e)/Pb(this.base),this._extent)},t.prototype.normalize=function(e){return Zy(e=Pb(e)/Pb(this.base),this._extent)},t.prototype.scale=function(e){return e=eb(e,this._extent),Db(this.base,e)},t.type="log",t}(Gy),Lb=Ob.prototype;function Rb(e,t){return Ib(e,Tb(t))}Lb.getMinorTicks=Eb.getMinorTicks,Lb.getLabel=Eb.getLabel,Gy.registerClass(Ob);var Nb=Ob,Ub=function(){function e(e,t,n){this._prepareParams(e,t,n)}return e.prototype._prepareParams=function(e,t,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var r=this._isOrdinal="ordinal"===e.type;this._needCrossZero=t.getNeedCrossZero&&t.getNeedCrossZero();var i=this._modelMinRaw=t.get("min",!0);ne(i)?this._modelMinNum=zb(e,i({min:n[0],max:n[1]})):"dataMin"!==i&&(this._modelMinNum=zb(e,i));var a=this._modelMaxRaw=t.get("max",!0);if(ne(a)?this._modelMaxNum=zb(e,a({min:n[0],max:n[1]})):"dataMax"!==a&&(this._modelMaxNum=zb(e,a)),r)this._axisDataLen=t.getCategories().length;else{var o=t.get("boundaryGap"),s=te(o)?o:[o||0,o||0];"boolean"==typeof s[0]||"boolean"==typeof s[1]?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[hr(s[0],1),hr(s[1],1)]}},e.prototype.calculate=function(){var e=this._isOrdinal,t=this._dataMin,n=this._dataMax,r=this._axisDataLen,i=this._boundaryGapInner,a=e?null:n-t||Math.abs(t),o="dataMin"===this._modelMinRaw?t:this._modelMinNum,s="dataMax"===this._modelMaxRaw?n:this._modelMaxNum,l=null!=o,c=null!=s;null==o&&(o=e?r?0:NaN:t-i[0]*a),null==s&&(s=e?r?r-1:NaN:n+i[1]*a),(null==o||!isFinite(o))&&(o=NaN),(null==s||!isFinite(s))&&(s=NaN),o>s&&(o=NaN,s=NaN);var u=fe(o)||fe(s)||e&&!r;this._needCrossZero&&(o>0&&s>0&&!l&&(o=0),o<0&&s<0&&!c&&(s=0));var h=this._determinedMin,d=this._determinedMax;return null!=h&&(o=h,l=!0),null!=d&&(s=d,c=!0),{min:o,max:s,minFixed:l,maxFixed:c,isBlank:u}},e.prototype.modifyDataMinMax=function(e,t){this[jb[e]]=t},e.prototype.setDeterminedMinMax=function(e,t){var n=Hb[e];this[n]=t},e.prototype.freeze=function(){this.frozen=!0},e}(),Hb={min:"_determinedMin",max:"_determinedMax"},jb={min:"_dataMin",max:"_dataMax"};function Qb(e,t,n){var r=e.rawExtentInfo;return r||(r=new Ub(e,t,n),e.rawExtentInfo=r,r)}function zb(e,t){return null==t?null:fe(t)?NaN:e.parse(t)}function Vb(e,t){var n=e.type,r=Qb(e,t,e.getExtent()).calculate();e.setBlank(r.isBlank);var i=r.min,a=r.max,o=t.ecModel;if(o&&"time"===n){var s=ub("bar",o),l=!1;if(q(s,function(e){l=l||e.getBaseAxis()===t.axis}),l){var c=hb(s),u=function(e,t,n,r){var i=n.axis.getExtent(),a=i[1]-i[0],o=fb(r,n.axis);if(void 0===o)return{min:e,max:t};var s=1/0;q(o,function(e){s=Math.min(e.offset,s)});var l=-1/0;q(o,function(e){l=Math.max(e.offset+e.width,l)}),s=Math.abs(s),l=Math.abs(l);var c=s+l,u=t-e,h=u/(1-(s+l)/a)-u;return{min:e-=h*(s/c),max:t+=h*(l/c)}}(i,a,t,c);i=u.min,a=u.max}}return{extent:[i,a],fixMin:r.minFixed,fixMax:r.maxFixed}}function Gb(e,t){var n=Vb(e,t),r=n.extent,i=t.get("splitNumber");e instanceof Nb&&(e.base=t.get("logBase"));var a=e.type;e.setExtent(r[0],r[1]),e.niceExtent({splitNumber:i,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:"interval"===a||"time"===a?t.get("minInterval"):null,maxInterval:"interval"===a||"time"===a?t.get("maxInterval"):null});var o=t.get("interval");null!=o&&e.setInterval&&e.setInterval(o)}function $b(e,t){if(t=t||e.get("type"))switch(t){case"category":return new nb({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new kb({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(Gy.getClass(t)||ab)}}function qb(e){var t,n,r=e.getLabelModel().get("formatter"),i="category"===e.type?e.scale.getExtent()[0]:null;return"time"===e.scale.type?(n=r,function(t,r){return e.scale.getFormattedLabel(t,r,n)}):"string"==typeof r?function(t){return function(n){var r=e.scale.getLabel(n);return t.replace("{value}",null!=r?r:"")}}(r):"function"==typeof r?(t=r,function(n,r){return null!=i&&(r=n.value-i),t(Wb(e,n),r,null!=n.level?{level:n.level}:null)}):function(t){return e.scale.getLabel(t)}}function Wb(e,t){return"category"===e.type?e.scale.getLabel(t):t.value}function Kb(e){var t=e.get("interval");return null==t?"auto":t}function Yb(e){return"category"===e.type&&0===Kb(e.getLabelModel())}function Xb(e,t){var n={};return q(e.mapDimensionsAll(t),function(t){n[Qy(e,t)]=!0}),J(n)}var Jb=function(){function e(){}return e.prototype.getNeedCrossZero=function(){return!this.option.scale},e.prototype.getCoordSysModel=function(){},e}();function Zb(e){return zy(e.getSource(),e)}var ew={isDimensionStacked:jy,enableDataStack:Hy,getStackedDimension:Qy};function tw(e,t){var n=t;t instanceof fh||(n=new fh(t));var r=$b(n);return r.setExtent(e[0],e[1]),Gb(r,n),r}function nw(e){G(e,Jb)}function rw(e,t){return Gu(e,null,null,"normal"!==(t=t||{}).state)}var iw=1e-8;function aw(e,t){return Math.abs(e-t)<iw}function ow(e,t,n){var r=0,i=e[0];if(!i)return!1;for(var a=1;a<e.length;a++){var o=e[a];r+=as(i[0],i[1],o[0],o[1],t,n),i=o}var s=e[0];return aw(i[0],s[0])&&aw(i[1],s[1])||(r+=as(i[0],i[1],s[0],s[1],t,n)),0!==r}var sw=function(){function e(e,t,n){if(this.name=e,this.geometries=t,n)n=[n[0],n[1]];else{var r=this.getBoundingRect();n=[r.x+r.width/2,r.y+r.height/2]}this.center=n}return e.prototype.getBoundingRect=function(){var e=this._rect;if(e)return e;for(var t=Number.MAX_VALUE,n=[t,t],r=[-t,-t],i=[],a=[],o=this.geometries,s=0;s<o.length;s++){if("polygon"===o[s].type)So(o[s].exterior,i,a),tt(n,n,i),nt(r,r,a)}return 0===s&&(n[0]=n[1]=r[0]=r[1]=0),this._rect=new tr(n[0],n[1],r[0]-n[0],r[1]-n[1])},e.prototype.contain=function(e){var t=this.getBoundingRect(),n=this.geometries;if(!t.contain(e[0],e[1]))return!1;e:for(var r=0,i=n.length;r<i;r++)if("polygon"===n[r].type){var a=n[r].exterior,o=n[r].interiors;if(ow(a,e[0],e[1])){for(var s=0;s<(o?o.length:0);s++)if(ow(o[s],e[0],e[1]))continue e;return!0}}return!1},e.prototype.transformTo=function(e,t,n,r){var i=this.getBoundingRect(),a=i.width/i.height;n?r||(r=n/a):n=a*r;for(var o=new tr(e,t,n,r),s=i.calculateTransform(o),l=this.geometries,c=0;c<l.length;c++)if("polygon"===l[c].type){for(var u=l[c].exterior,h=l[c].interiors,d=0;d<u.length;d++)et(u[d],u[d],s);for(var f=0;f<(h?h.length:0);f++)for(d=0;d<h[f].length;d++)et(h[f][d],h[f][d],s)}(i=this._rect).copy(o),this.center=[i.x+i.width/2,i.y+i.height/2]},e.prototype.cloneShallow=function(t){null==t&&(t=this.name);var n=new e(t,this.geometries,this.center);return n._rect=this._rect,n.transformTo=null,n},e}();function lw(e,t,n){for(var r=[],i=t[0],a=t[1],o=0;o<e.length;o+=2){var s=e.charCodeAt(o)-64,l=e.charCodeAt(o+1)-64;s=s>>1^-(1&s),l=l>>1^-(1&l),i=s+=i,a=l+=a,r.push([s/n,l/n])}return r}function cw(e,t){return W(Y((e=function(e){if(!e.UTF8Encoding)return e;var t=e,n=t.UTF8Scale;null==n&&(n=1024);for(var r=t.features,i=0;i<r.length;i++){var a=r[i].geometry;if("Polygon"===a.type)for(var o=a.coordinates,s=0;s<o.length;s++)o[s]=lw(o[s],a.encodeOffsets[s],n);else if("MultiPolygon"===a.type)for(o=a.coordinates,s=0;s<o.length;s++)for(var l=o[s],c=0;c<l.length;c++)l[c]=lw(l[c],a.encodeOffsets[s][c],n)}return t.UTF8Encoding=!1,t}(e)).features,function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0}),function(e){var n=e.properties,r=e.geometry,i=[];if("Polygon"===r.type){var a=r.coordinates;i.push({type:"polygon",exterior:a[0],interiors:a.slice(1)})}"MultiPolygon"===r.type&&q(a=r.coordinates,function(e){e[0]&&i.push({type:"polygon",exterior:e[0],interiors:e.slice(1)})});var o=new sw(n[t||"name"],i,n.cp);return o.properties=n,o})}var uw=Zi();function hw(e){return"category"===e.type?function(e){var t=e.getLabelModel(),n=fw(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}(e):function(e){var t=e.scale.getTicks(),n=qb(e);return{labels:W(t,function(t,r){return{formattedLabel:n(t,r),rawLabel:e.scale.getLabel(t),tickValue:t.value}})}}(e)}function dw(e,t){return"category"===e.type?function(e,t){var n,r,i=pw(e,"ticks"),a=Kb(t),o=Aw(i,a);if(o)return o;t.get("show")&&!e.scale.isBlank()||(n=[]);if(ne(a))n=vw(e,a,!0);else if("auto"===a){var s=fw(e,e.getLabelModel());r=s.labelCategoryInterval,n=W(s.labels,function(e){return e.tickValue})}else n=mw(e,r=a,!0);return gw(i,a,{ticks:n,tickCategoryInterval:r})}(e,t):{ticks:W(e.scale.getTicks(),function(e){return e.value})}}function fw(e,t){var n,r=pw(e,"labels"),i=Kb(t),a=Aw(r,i);return a||gw(r,i,{labels:ne(i)?vw(e,i):mw(e,n="auto"===i?function(e){var t=uw(e).autoInterval;return null!=t?t:uw(e).autoInterval=e.calculateCategoryInterval()}(e):i),labelCategoryInterval:n})}function pw(e,t){return uw(e)[t]||(uw(e)[t]=[])}function Aw(e,t){for(var n=0;n<e.length;n++)if(e[n].key===t)return e[n].value}function gw(e,t,n){return e.push({key:t,value:n}),n}function mw(e,t,n){var r=qb(e),i=e.scale,a=i.getExtent(),o=e.getLabelModel(),s=[],l=Math.max((t||0)+1,1),c=a[0],u=i.count();0!==c&&l>1&&u/l>2&&(c=Math.round(Math.ceil(c/l)*l));var h=Yb(e),d=o.get("showMinLabel")||h,f=o.get("showMaxLabel")||h;d&&c!==a[0]&&A(a[0]);for(var p=c;p<=a[1];p+=l)A(p);function A(e){var t={value:e};s.push(n?e:{formattedLabel:r(t),rawLabel:i.getLabel(t),tickValue:e})}return f&&p-l!==a[1]&&A(a[1]),s}function vw(e,t,n){var r=e.scale,i=qb(e),a=[];return q(r.getTicks(),function(e){var o=r.getLabel(e),s=e.value;t(e.value,o)&&a.push(n?s:{formattedLabel:i(e),rawLabel:o,tickValue:s})}),a}var yw=[0,1];function bw(e,t){var n=(e[1]-e[0])/t/2;e[0]+=n,e[1]-=n}var ww=function(){function e(e,t,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=n||[0,0]}return e.prototype.contain=function(e){var t=this._extent,n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]);return e>=n&&e<=r},e.prototype.containData=function(e){return this.scale.contain(e)},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(e){return xi(e||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(e,t){var n=this._extent;n[0]=e,n[1]=t},e.prototype.dataToCoord=function(e,t){var n=this._extent,r=this.scale;return e=r.normalize(e),this.onBand&&"ordinal"===r.type&&bw(n=n.slice(),r.count()),gi(e,yw,n,t)},e.prototype.coordToData=function(e,t){var n=this._extent,r=this.scale;this.onBand&&"ordinal"===r.type&&bw(n=n.slice(),r.count());var i=gi(e,n,yw,t);return this.scale.scale(i)},e.prototype.pointToData=function(e,t){},e.prototype.getTicksCoords=function(e){var t=(e=e||{}).tickModel||this.getTickModel(),n=W(dw(this,t).ticks,function(e){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(e):e),tickValue:e}},this);return function(e,t,n,r){var i=t.length;if(!e.onBand||n||!i)return;var a,o,s=e.getExtent();if(1===i)t[0].coord=s[0],a=t[1]={coord:s[0]};else{var l=t[i-1].tickValue-t[0].tickValue,c=(t[i-1].coord-t[0].coord)/l;q(t,function(e){e.coord-=c/2});var u=e.scale.getExtent();o=1+u[1]-t[i-1].tickValue,a={coord:t[i-1].coord+c*o},t.push(a)}var h=s[0]>s[1];d(t[0].coord,s[0])&&(r?t[0].coord=s[0]:t.shift());r&&d(s[0],t[0].coord)&&t.unshift({coord:s[0]});d(s[1],a.coord)&&(r?a.coord=s[1]:t.pop());r&&d(a.coord,s[1])&&t.push({coord:s[1]});function d(e,t){return e=vi(e),t=vi(t),h?e>t:e<t}}(this,n,t.get("alignWithLabel"),e.clamp),n},e.prototype.getMinorTicksCoords=function(){if("ordinal"===this.scale.type)return[];var e=this.model.getModel("minorTick").get("splitNumber");return e>0&&e<100||(e=5),W(this.scale.getMinorTicks(e),function(e){return W(e,function(e){return{coord:this.dataToCoord(e),tickValue:e}},this)},this)},e.prototype.getViewLabels=function(){return hw(this).labels},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},e.prototype.getBandWidth=function(){var e=this._extent,t=this.scale.getExtent(),n=t[1]-t[0]+(this.onBand?1:0);0===n&&(n=1);var r=Math.abs(e[1]-e[0]);return Math.abs(r)/n},e.prototype.calculateCategoryInterval=function(){return function(e){var t=function(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}(e),n=qb(e),r=(t.axisRotate-t.labelRotate)/180*Math.PI,i=e.scale,a=i.getExtent(),o=i.count();if(a[1]-a[0]<1)return 0;var s=1;o>40&&(s=Math.max(1,Math.floor(o/40)));for(var l=a[0],c=e.dataToCoord(l+1)-e.dataToCoord(l),u=Math.abs(c*Math.cos(r)),h=Math.abs(c*Math.sin(r)),d=0,f=0;l<=a[1];l+=s){var p,A,g=sr(n({value:l}),t.font,"center","top");p=1.3*g.width,A=1.3*g.height,d=Math.max(d,p,7),f=Math.max(f,A,7)}var m=d/u,v=f/h;isNaN(m)&&(m=1/0),isNaN(v)&&(v=1/0);var y=Math.max(0,Math.floor(Math.min(m,v))),b=uw(e.model),w=e.getExtent(),x=b.lastAutoInterval,_=b.lastTickCount;return null!=x&&null!=_&&Math.abs(x-y)<=1&&Math.abs(_-o)<=1&&x>y&&b.axisExtent0===w[0]&&b.axisExtent1===w[1]?y=x:(b.lastTickCount=o,b.lastAutoInterval=y,b.axisExtent0=w[0],b.axisExtent1=w[1]),y}(this)},e}();function xw(e){var t=Bd.extend(e);return Bd.registerClass(t),t}function _w(e){var t=aA.extend(e);return aA.registerClass(t),t}function Cw(e){var t=rA.extend(e);return rA.registerClass(t),t}function Sw(e){var t=AA.extend(e);return AA.registerClass(t),t}function kw(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function Bw(e,t,n,r,i){for(var a=t.length,o=n.length,s=e.newPos,l=s-r,c=0;s+1<a&&l+1<o&&i(t[s+1],n[l+1]);)s++,l++,c++;return c&&e.components.push({count:c,added:!1,removed:!1,indices:[]}),e.newPos=s,l}function Ew(e,t,n){var r=e[e.length-1];r&&r.added===t&&r.removed===n?e[e.length-1]={count:r.count+1,added:t,removed:n,indices:[]}:e.push({count:1,added:t,removed:n,indices:[]})}function Tw(e){for(var t=0,n=e.length,r=0,i=0;t<n;t++){var a=e[t];if(a.removed){for(s=i;s<i+a.count;s++)a.indices.push(s);i+=a.count}else{for(var o=[],s=r;s<r+a.count;s++)o.push(s);a.indices=o,r+=a.count,a.added||(i+=a.count)}}return e}function Iw(e,t,n){return function(e,t,n){n||(n=function(e,t){return e===t}),e=e.slice();var r=(t=t.slice()).length,i=e.length,a=1,o=r+i,s=[{newPos:-1,components:[]}],l=Bw(s[0],t,e,0,n);if(s[0].newPos+1>=r&&l+1>=i){for(var c=[],u=0;u<t.length;u++)c.push(u);return[{indices:c,count:t.length,added:!1,removed:!1}]}function h(){for(var o=-1*a;o<=a;o+=2){var l,c=s[o-1],u=s[o+1],h=(u?u.newPos:0)-o;c&&(s[o-1]=void 0);var d=c&&c.newPos+1<r,f=u&&0<=h&&h<i;if(d||f){if(!d||f&&c.newPos<u.newPos?Ew((l={newPos:(p=u).newPos,components:p.components.slice(0)}).components,!1,!0):((l=c).newPos++,Ew(l.components,!0,!1)),h=Bw(l,t,e,o,n),l.newPos+1>=r&&h+1>=i)return Tw(l.components);s[o]=l}else s[o]=void 0}var p;a++}for(;a<=o;){var d=h();if(d)return d}}(e,t,n)}var Mw="none",Fw=Math.round,Dw=Math.sin,Pw=Math.cos,Ow=Math.PI,Lw=2*Math.PI,Rw=180/Ow,Nw=1e-4;function Uw(e){return Fw(1e3*e)/1e3}function Hw(e){return Fw(1e4*e)/1e4}function jw(e){return e<Nw&&e>-Nw}function Qw(e,t){t&&zw(e,"transform","matrix("+Uw(t[0])+","+Uw(t[1])+","+Uw(t[2])+","+Uw(t[3])+","+Hw(t[4])+","+Hw(t[5])+")")}function zw(e,t,n){(!n||"linear"!==n.type&&"radial"!==n.type)&&e.setAttribute(t,n)}function Vw(e,t,n){var r=null==t.opacity?1:t.opacity;if(n instanceof Ss)e.style.opacity=r+"";else{if(function(e){var t=e.fill;return null!=t&&t!==Mw}(t)){var i=t.fill;zw(e,"fill",i="transparent"===i?Mw:i),zw(e,"fill-opacity",(null!=t.fillOpacity?t.fillOpacity*r:r)+"")}else zw(e,"fill",Mw);if(function(e){var t=e.stroke;return null!=t&&t!==Mw}(t)){var a=t.stroke;zw(e,"stroke",a="transparent"===a?Mw:a);var o=t.lineWidth,s=t.strokeNoScale?n.getLineScale():1;zw(e,"stroke-width",(s?o/s:0)+""),zw(e,"paint-order",t.strokeFirst?"stroke":"fill"),zw(e,"stroke-opacity",(null!=t.strokeOpacity?t.strokeOpacity*r:r)+"");var l=t.lineDash&&o>0&&nm(t.lineDash,o);if(l){var c=t.lineDashOffset;s&&1!==s&&(l=W(l,function(e){return e/s}),c&&(c=Fw(c/=s))),zw(e,"stroke-dasharray",l.join(",")),zw(e,"stroke-dashoffset",(c||0)+"")}else zw(e,"stroke-dasharray","");t.lineCap&&zw(e,"stroke-linecap",t.lineCap),t.lineJoin&&zw(e,"stroke-linejoin",t.lineJoin),t.miterLimit&&zw(e,"stroke-miterlimit",t.miterLimit+"")}else zw(e,"stroke",Mw)}}var Gw=function(){function e(){}return e.prototype.reset=function(){this._d=[],this._str=""},e.prototype.moveTo=function(e,t){this._add("M",e,t)},e.prototype.lineTo=function(e,t){this._add("L",e,t)},e.prototype.bezierCurveTo=function(e,t,n,r,i,a){this._add("C",e,t,n,r,i,a)},e.prototype.quadraticCurveTo=function(e,t,n,r){this._add("Q",e,t,n,r)},e.prototype.arc=function(e,t,n,r,i,a){this.ellipse(e,t,n,n,0,r,i,a)},e.prototype.ellipse=function(e,t,n,r,i,a,o,s){var l=0===this._d.length,c=o-a,u=!s,h=Math.abs(c),d=jw(h-Lw)||(u?c>=Lw:-c>=Lw),f=c>0?c%Lw:c%Lw+Lw,p=!1;p=!!d||!jw(h)&&f>=Ow==!!u;var A=Hw(e+n*Pw(a)),g=Hw(t+r*Dw(a));d&&(c=u?Lw-1e-4:1e-4-Lw,p=!0,l&&this._d.push("M",A,g));var m=Hw(e+n*Pw(a+c)),v=Hw(t+r*Dw(a+c));if(isNaN(A)||isNaN(g)||isNaN(n)||isNaN(r)||isNaN(i)||isNaN(Rw)||isNaN(m)||isNaN(v))return"";this._d.push("A",Hw(n),Hw(r),Fw(i*Rw),+p,+u,m,v)},e.prototype.rect=function(e,t,n,r){this._add("M",e,t),this._add("L",e+n,t),this._add("L",e+n,t+r),this._add("L",e,t+r),this._add("L",e,t)},e.prototype.closePath=function(){this._d.length>0&&this._add("Z")},e.prototype._add=function(e,t,n,r,i,a,o,s,l){this._d.push(e);for(var c=1;c<arguments.length;c++){var u=arguments[c];if(isNaN(u))return void(this._invalid=!0);this._d.push(Hw(u))}},e.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(" "),this._d=[]},e.prototype.getStr=function(){return this._str},e}(),$w={brush:function(e){var t=e.style,n=e.__svgEl;n||(n=kw("path"),e.__svgEl=n),e.path||e.createPathProxy();var r=e.path;e.shapeChanged()&&(r.beginPath(),e.buildPath(r,e.shape),e.pathUpdated());var i=r.getVersion(),a=e,o=a.__svgPathBuilder;(a.__svgPathVersion!==i||!o||e.style.strokePercent<1)&&(o||(o=a.__svgPathBuilder=new Gw),o.reset(),r.rebuildPath(o,e.style.strokePercent),o.generateStr(),a.__svgPathVersion=i),zw(n,"d",o.getStr()),Vw(n,t,e),Qw(n,e.transform)}},qw={brush:function(e){var t=e.style,n=t.image;if(n instanceof HTMLImageElement?n=n.src:n instanceof HTMLCanvasElement&&(n=n.toDataURL()),n){var r=t.x||0,i=t.y||0,a=t.width,o=t.height,s=e.__svgEl;s||(s=kw("image"),e.__svgEl=s),n!==e.__imageSrc&&(!function(e,t,n){e.setAttributeNS("http://www.w3.org/1999/xlink",t,n)}(s,"href",n),e.__imageSrc=n),zw(s,"width",a+""),zw(s,"height",o+""),zw(s,"x",r+""),zw(s,"y",i+""),Vw(s,t,e),Qw(s,e.transform)}}},Ww={left:"start",right:"end",center:"middle",middle:"middle"};var Kw={brush:function(e){var t=e.style,n=t.text;if(null!=n&&(n+=""),n&&!isNaN(t.x)&&!isNaN(t.y)){var r=e.__svgEl;r||(function(e,t,n){e.setAttributeNS("http://www.w3.org/XML/1998/namespace",t,n)}(r=kw("text"),"xml:space","preserve"),e.__svgEl=r);var i=t.font||rr;r.style.font=i,r.textContent=n,Vw(r,t,e),Qw(r,e.transform);var a=t.x||0,o=function(e,t,n){return"top"===n?e+=t/2:"bottom"===n&&(e-=t/2),e}(t.y||0,ur(i),t.textBaseline),s=Ww[t.textAlign]||t.textAlign;zw(r,"dominant-baseline","central"),zw(r,"text-anchor",s),zw(r,"x",a+""),zw(r,"y",o+"")}}},Yw=function(){function e(e,t,n,r,i){this.nextId=0,this._domName="_dom",this.createElement=kw,this._zrId=e,this._svgRoot=t,this._tagNames="string"==typeof n?[n]:n,this._markLabel=r,i&&(this._domName=i)}return e.prototype.getDefs=function(e){var t=this._svgRoot,n=this._svgRoot.getElementsByTagName("defs");if(0===n.length){if(e){var r=t.insertBefore(this.createElement("defs"),t.firstChild);return r.contains||(r.contains=function(e){var t=r.children;if(!t)return!1;for(var n=t.length-1;n>=0;--n)if(t[n]===e)return!0;return!1}),r}return null}return n[0]},e.prototype.doUpdate=function(e,t){if(e){var n=this.getDefs(!1);if(e[this._domName]&&n.contains(e[this._domName]))"function"==typeof t&&t(e);else{var r=this.add(e);r&&(e[this._domName]=r)}}},e.prototype.add=function(e){return null},e.prototype.addDom=function(e){var t=this.getDefs(!0);e.parentNode!==t&&t.appendChild(e)},e.prototype.removeDom=function(e){var t=this.getDefs(!1);t&&e[this._domName]&&(t.removeChild(e[this._domName]),e[this._domName]=null)},e.prototype.getDoms=function(){var e=this.getDefs(!1);if(!e)return[];var t=[];return q(this._tagNames,function(n){for(var r=e.getElementsByTagName(n),i=0;i<r.length;i++)t.push(r[i])}),t},e.prototype.markAllUnused=function(){var e=this;q(this.getDoms(),function(t){t[e._markLabel]="0"})},e.prototype.markDomUsed=function(e){e&&(e[this._markLabel]="1")},e.prototype.markDomUnused=function(e){e&&(e[this._markLabel]="0")},e.prototype.isDomUnused=function(e){return e&&"1"!==e[this._markLabel]},e.prototype.removeUnused=function(){var e=this,t=this.getDefs(!1);t&&q(this.getDoms(),function(n){e.isDomUnused(n)&&t.removeChild(n)})},e.prototype.getSvgProxy=function(e){return e instanceof vs?$w:e instanceof Ss?qw:e instanceof ws?Kw:$w},e.prototype.getSvgElement=function(e){return e.__svgEl},e}();function Xw(e){return"linear"===e.type}function Jw(e){return"radial"===e.type}function Zw(e){return e&&("linear"===e.type||"radial"===e.type)}var ex=function(e){function t(t,n){return e.call(this,t,n,["linearGradient","radialGradient"],"__gradient_in_use__")||this}return Me(t,e),t.prototype.addWithoutUpdate=function(e,t){if(t&&t.style){var n=this;q(["fill","stroke"],function(r){var i=t.style[r];if(Zw(i)){var a=i,o=n.getDefs(!0),s=void 0;a.__dom?(s=a.__dom,o.contains(a.__dom)||n.addDom(s)):s=n.add(a),n.markUsed(t);var l=s.getAttribute("id");e.setAttribute(r,"url(#"+l+")")}})}},t.prototype.add=function(e){var t;if(Xw(e))t=this.createElement("linearGradient");else{if(!Jw(e))return L("Illegal gradient type."),null;t=this.createElement("radialGradient")}return e.id=e.id||this.nextId++,t.setAttribute("id","zr"+this._zrId+"-gradient-"+e.id),this.updateDom(e,t),this.addDom(t),t},t.prototype.update=function(e){if(Zw(e)){var t=this;this.doUpdate(e,function(){var n=e.__dom;if(n){var r=n.tagName,i=e.type;"linear"===i&&"linearGradient"===r||"radial"===i&&"radialGradient"===r?t.updateDom(e,e.__dom):(t.removeDom(e),t.add(e))}})}},t.prototype.updateDom=function(e,t){if(Xw(e))t.setAttribute("x1",e.x+""),t.setAttribute("y1",e.y+""),t.setAttribute("x2",e.x2+""),t.setAttribute("y2",e.y2+"");else{if(!Jw(e))return void L("Illegal gradient type.");t.setAttribute("cx",e.x+""),t.setAttribute("cy",e.y+""),t.setAttribute("r",e.r+"")}e.global?t.setAttribute("gradientUnits","userSpaceOnUse"):t.setAttribute("gradientUnits","objectBoundingBox"),t.innerHTML="";for(var n=e.colorStops,r=0,i=n.length;r<i;++r){var a=this.createElement("stop");a.setAttribute("offset",100*n[r].offset+"%");var o=n[r].color;if(o.indexOf("rgba")>-1){var s=mn(o)[3],l=bn(o);a.setAttribute("stop-color","#"+l),a.setAttribute("stop-opacity",s+"")}else a.setAttribute("stop-color",n[r].color);t.appendChild(a)}e.__dom=t},t.prototype.markUsed=function(t){if(t.style){var n=t.style.fill;n&&n.__dom&&e.prototype.markDomUsed.call(this,n.__dom),(n=t.style.stroke)&&n.__dom&&e.prototype.markDomUsed.call(this,n.__dom)}},t}(Yw);function tx(e){return e&&(!!e.image||!!e.svgElement)}var nx=new Vg,rx=function(e){function t(t,n){return e.call(this,t,n,["pattern"],"__pattern_in_use__")||this}return Me(t,e),t.prototype.addWithoutUpdate=function(e,t){if(t&&t.style){var n=this;q(["fill","stroke"],function(r){var i=t.style[r];if(tx(i)){var a=n.getDefs(!0),o=nx.get(i);o?a.contains(o)||n.addDom(o):o=n.add(i),n.markUsed(t);var s=o.getAttribute("id");e.setAttribute(r,"url(#"+s+")")}})}},t.prototype.add=function(e){if(tx(e)){var t=this.createElement("pattern");return e.id=null==e.id?this.nextId++:e.id,t.setAttribute("id","zr"+this._zrId+"-pattern-"+e.id),t.setAttribute("x","0"),t.setAttribute("y","0"),t.setAttribute("patternUnits","userSpaceOnUse"),this.updateDom(e,t),this.addDom(t),t}},t.prototype.update=function(e){if(tx(e)){var t=this;this.doUpdate(e,function(){var n=nx.get(e);t.updateDom(e,n)})}},t.prototype.updateDom=function(e,t){var n=e.svgElement;if(n instanceof SVGElement)n.parentNode!==t&&(t.innerHTML="",t.appendChild(n),t.setAttribute("width",e.svgWidth+""),t.setAttribute("height",e.svgHeight+""));else{var r=void 0,i=t.getElementsByTagName("image");if(i.length){if(!e.image)return void t.removeChild(i[0]);r=i[0]}else e.image&&(r=this.createElement("image"));if(r){var a=void 0;if("string"==typeof e.image?a=e.image:e.image instanceof HTMLImageElement?a=e.image.src:e.image instanceof HTMLCanvasElement&&(a=e.image.toDataURL()),a){r.setAttribute("href",a),r.setAttribute("x","0"),r.setAttribute("y","0");var o=_a(a,r,{dirty:function(){}},function(e){t.setAttribute("width",e.width+""),t.setAttribute("height",e.height+"")});o&&o.width&&o.height&&(t.setAttribute("width",o.width+""),t.setAttribute("height",o.height+"")),t.appendChild(r)}}}var s="translate("+(e.x||0)+", "+(e.y||0)+") rotate("+(e.rotation||0)/Math.PI*180+") scale("+(e.scaleX||1)+", "+(e.scaleY||1)+")";t.setAttribute("patternTransform",s),nx.set(e,t)},t.prototype.markUsed=function(t){t.style&&(tx(t.style.fill)&&e.prototype.markDomUsed.call(this,nx.get(t.style.fill)),tx(t.style.stroke)&&e.prototype.markDomUsed.call(this,nx.get(t.style.stroke)))},t}(Yw);function ix(e){var t=e.__clipPaths;return t&&t.length>0}var ax=function(e){function t(t,n){var r=e.call(this,t,n,"clipPath","__clippath_in_use__")||this;return r._refGroups={},r._keyDuplicateCount={},r}return Me(t,e),t.prototype.markAllUnused=function(){for(var t in e.prototype.markAllUnused.call(this),this._refGroups)this.markDomUnused(this._refGroups[t]);this._keyDuplicateCount={}},t.prototype._getClipPathGroup=function(e,t){if(ix(e)){var n=e.__clipPaths,r=this._keyDuplicateCount,i=function(e){var t=[];if(e)for(var n=0;n<e.length;n++){var r=e[n];t.push(r.id)}return t.join(",")}(n);return tm(n,t&&t.__clipPaths)&&(r[i]=r[i]||0,r[i]&&(i+="-"+r[i]),r[i]++),this._refGroups[i]||(this._refGroups[i]=this.createElement("g"))}},t.prototype.update=function(e,t){var n=this._getClipPathGroup(e,t);return n&&(this.markDomUsed(n),this.updateDom(n,e.__clipPaths)),n},t.prototype.updateDom=function(e,t){if(t&&t.length>0){var n=this.getDefs(!0),r=t[0],i=void 0,a=void 0;r._dom?(a=r._dom.getAttribute("id"),i=r._dom,n.contains(i)||n.appendChild(i)):(a="zr"+this._zrId+"-clip-"+this.nextId,++this.nextId,(i=this.createElement("clipPath")).setAttribute("id",a),n.appendChild(i),r._dom=i),this.getSvgProxy(r).brush(r);var o=this.getSvgElement(r);i.innerHTML="",i.appendChild(o),e.setAttribute("clip-path","url(#"+a+")"),t.length>1&&this.updateDom(i,t.slice(1))}else e&&e.setAttribute("clip-path","none")},t.prototype.markUsed=function(t){var n=this;t.__clipPaths&&q(t.__clipPaths,function(t){t._dom&&e.prototype.markDomUsed.call(n,t._dom)})},t.prototype.removeUnused=function(){e.prototype.removeUnused.call(this);var t={};for(var n in this._refGroups){var r=this._refGroups[n];this.isDomUnused(r)?r.parentNode&&r.parentNode.removeChild(r):t[n]=r}this._refGroups=t},t}(Yw),ox=function(e){function t(t,n){var r=e.call(this,t,n,["filter"],"__filter_in_use__","_shadowDom")||this;return r._shadowDomMap={},r._shadowDomPool=[],r}return Me(t,e),t.prototype._getFromPool=function(){var e=this._shadowDomPool.pop();if(!e){(e=this.createElement("filter")).setAttribute("id","zr"+this._zrId+"-shadow-"+this.nextId++);var t=this.createElement("feDropShadow");e.appendChild(t),this.addDom(e)}return e},t.prototype.update=function(e,t){if(function(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}(t.style)){var n=function(e){var t=e.style,n=e.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(",")}(t),r=t._shadowDom=this._shadowDomMap[n];r||(r=this._getFromPool(),this._shadowDomMap[n]=r),this.updateDom(e,t,r)}else this.remove(e,t)},t.prototype.remove=function(e,t){null!=t._shadowDom&&(t._shadowDom=null,e.style.filter="")},t.prototype.updateDom=function(e,t,n){var r=n.children[0],i=t.style,a=t.getGlobalScale(),o=a[0],s=a[1];if(o&&s){var l=i.shadowOffsetX||0,c=i.shadowOffsetY||0,u=i.shadowBlur,h=i.shadowColor;r.setAttribute("dx",l/o+""),r.setAttribute("dy",c/s+""),r.setAttribute("flood-color",h);var d=u/2/o+" "+u/2/s;r.setAttribute("stdDeviation",d),n.setAttribute("x","-100%"),n.setAttribute("y","-100%"),n.setAttribute("width","300%"),n.setAttribute("height","300%"),t._shadowDom=n;var f=n.getAttribute("id");e.style.filter="url(#"+f+")"}},t.prototype.removeUnused=function(){if(this.getDefs(!1)){var e=this._shadowDomPool;for(var t in this._shadowDomMap){var n=this._shadowDomMap[t];e.push(n)}this._shadowDomMap={}}},t}(Yw);function sx(e){return parseInt(e,10)}function lx(e){return e instanceof vs?$w:e instanceof Ss?qw:e instanceof ws?Kw:$w}function cx(e,t){return t&&e&&t.parentNode!==e}function ux(e,t,n){if(cx(e,t)&&n){var r=n.nextSibling;r?e.insertBefore(t,r):e.appendChild(t)}}function hx(e,t){if(cx(e,t)){var n=e.firstChild;n?e.insertBefore(t,n):e.appendChild(t)}}function dx(e,t){t&&e&&t.parentNode===e&&e.removeChild(t)}function fx(e){return e.__svgEl}function px(e){return function(){L('In SVG mode painter not support method "'+e+'"')}}var Ax=function(){function e(e,t,n,r){this.type="svg",this.refreshHover=px("refreshHover"),this.pathToImage=px("pathToImage"),this.configLayer=px("configLayer"),this.root=e,this.storage=t,this._opts=n=H({},n||{});var i=kw("svg");i.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns","http://www.w3.org/2000/svg"),i.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink"),i.setAttribute("version","1.1"),i.setAttribute("baseProfile","full"),i.style.cssText="user-select:none;position:absolute;left:0;top:0;";var a=kw("g");i.appendChild(a);var o=kw("g");i.appendChild(o),this._gradientManager=new ex(r,o),this._patternManager=new rx(r,o),this._clipPathManager=new ax(r,o),this._shadowManager=new ox(r,o);var s=document.createElement("div");s.style.cssText="overflow:hidden;position:relative",this._svgDom=i,this._svgRoot=o,this._backgroundRoot=a,this._viewport=s,e.appendChild(s),s.appendChild(i),this.resize(n.width,n.height),this._visibleList=[]}return e.prototype.getType=function(){return"svg"},e.prototype.getViewportRoot=function(){return this._viewport},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.getSvgRoot=function(){return this._svgRoot},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.refresh=function(){var e=this.storage.getDisplayList(!0);this._paintList(e)},e.prototype.setBackgroundColor=function(e){this._backgroundRoot&&this._backgroundNode&&this._backgroundRoot.removeChild(this._backgroundNode);var t=kw("rect");t.setAttribute("width",this.getWidth()),t.setAttribute("height",this.getHeight()),t.setAttribute("x",0),t.setAttribute("y",0),t.setAttribute("id",0),t.style.fill=e,this._backgroundRoot.appendChild(t),this._backgroundNode=t},e.prototype.createSVGElement=function(e){return kw(e)},e.prototype.paintOne=function(e){var t=lx(e);return t&&t.brush(e),fx(e)},e.prototype._paintList=function(e){var t=this._gradientManager,n=this._patternManager,r=this._clipPathManager,i=this._shadowManager;t.markAllUnused(),n.markAllUnused(),r.markAllUnused(),i.markAllUnused();for(var a=this._svgRoot,o=this._visibleList,s=e.length,l=[],c=0;c<s;c++){var u=lx(b=e[c]),h=fx(b);b.invisible||(!b.__dirty&&h||(u&&u.brush(b),(h=fx(b))&&b.style&&(t.update(b.style.fill),t.update(b.style.stroke),n.update(b.style.fill),n.update(b.style.stroke),i.update(h,b)),b.__dirty=0),h&&l.push(b))}var d,f,p,A,g,m=Iw(o,l);for(c=0;c<m.length;c++){if((y=m[c]).removed)for(var v=0;v<y.count;v++){h=fx(b=o[y.indices[v]]);ix(b)?(p=h)&&p.parentNode&&p.parentNode.removeChild(p):dx(a,h)}}for(c=0;c<m.length;c++){var y;if(!(y=m[c]).removed)for(v=0;v<y.count;v++){var b=l[y.indices[v]],w=r.update(b,A);w!==g&&(d=f,w&&(d?ux(a,w,d):hx(a,w),f=w,d=null),g=w);h=fx(b);d?ux(g||a,h,d):hx(g||a,h),d=h||d,g||(f=d),t.markUsed(b),t.addWithoutUpdate(h,b),n.markUsed(b),n.addWithoutUpdate(h,b),r.markUsed(b),A=b}}t.removeUnused(),n.removeUnused(),r.removeUnused(),i.removeUnused(),this._visibleList=l},e.prototype._getDefs=function(e){var t=this._svgDom,n=t.getElementsByTagName("defs");if(0===n.length){if(e){var r=t.insertBefore(kw("defs"),t.firstChild);return r.contains||(r.contains=function(e){var t=r.children;if(!t)return!1;for(var n=t.length-1;n>=0;--n)if(t[n]===e)return!0;return!1}),r}return null}return n[0]},e.prototype.resize=function(e,t){var n=this._viewport;n.style.display="none";var r=this._opts;if(null!=e&&(r.width=e),null!=t&&(r.height=t),e=this._getSize(0),t=this._getSize(1),n.style.display="",this._width!==e||this._height!==t){this._width=e,this._height=t;var i=n.style;i.width=e+"px",i.height=t+"px";var a=this._svgDom;a.setAttribute("width",e+""),a.setAttribute("height",t+"")}this._backgroundNode&&(this._backgroundNode.setAttribute("width",e),this._backgroundNode.setAttribute("height",t))},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e.prototype._getSize=function(e){var t=this._opts,n=["width","height"][e],r=["clientWidth","clientHeight"][e],i=["paddingLeft","paddingTop"][e],a=["paddingRight","paddingBottom"][e];if(null!=t[n]&&"auto"!==t[n])return parseFloat(t[n]);var o=this.root,s=document.defaultView.getComputedStyle(o);return(o[r]||sx(s[n])||sx(o.style[n]))-(sx(s[i])||0)-(sx(s[a])||0)|0},e.prototype.dispose=function(){this.root.innerHTML="",this._svgRoot=this._backgroundRoot=this._svgDom=this._backgroundNode=this._viewport=this.storage=null},e.prototype.clear=function(){var e=this._viewport;e&&e.parentNode&&e.parentNode.removeChild(e)},e.prototype.toDataURL=function(){this.refresh();var e=this._svgDom,t=e.outerHTML||(e.parentNode&&e.parentNode).innerHTML;return"data:image/svg+xml;charset=UTF-8,"+encodeURIComponent(t.replace(/></g,">\n\r<"))},e}();function gx(){return!1}function mx(e,t,n){var r=Q(),i=t.getWidth(),a=t.getHeight(),o=r.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=i+"px",o.height=a+"px",r.setAttribute("data-zr-dom-id",e)),r.width=i*n,r.height=a*n,r}var vx=function(e){function t(t,n,r){var i,a=e.call(this)||this;a.motionBlur=!1,a.lastFrameAlpha=.7,a.dpr=1,a.virtual=!1,a.config={},a.incremental=!1,a.zlevel=0,a.maxRepaintRectCount=5,a.__dirty=!0,a.__firstTimePaint=!0,a.__used=!1,a.__drawIndex=0,a.__startIndex=0,a.__endIndex=0,a.__prevStartIndex=null,a.__prevEndIndex=null,r=r||pr,"string"==typeof t?i=mx(t,n,r):oe(t)&&(t=(i=t).id),a.id=t,a.dom=i;var o=i.style;return o&&(i.onselectstart=gx,o.webkitUserSelect="none",o.userSelect="none",o.webkitTapHighlightColor="rgba(0,0,0,0)",o["-webkit-touch-callout"]="none",o.padding="0",o.margin="0",o.borderWidth="0"),a.domBack=null,a.ctxBack=null,a.painter=n,a.config=null,a.dpr=r,a}return Me(t,e),t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var e=this.dpr;this.domBack=mx("back-"+this.id,this.painter,e),this.ctxBack=this.domBack.getContext("2d"),1!==e&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,t,n,r){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var i,a=[],o=this.maxRepaintRectCount,s=!1,l=new tr(0,0,0,0);function c(e){if(e.isFinite()&&!e.isZero())if(0===a.length){(t=new tr(0,0,0,0)).copy(e),a.push(t)}else{for(var t,n=!1,r=1/0,i=0,c=0;c<a.length;++c){var u=a[c];if(u.intersect(e)){var h=new tr(0,0,0,0);h.copy(u),h.union(e),a[c]=h,n=!0;break}if(s){l.copy(e),l.union(u);var d=e.width*e.height,f=u.width*u.height,p=l.width*l.height-d-f;p<r&&(r=p,i=c)}}if(s&&(a[i].union(e),n=!0),!n)(t=new tr(0,0,0,0)).copy(e),a.push(t);s||(s=a.length>=o)}}for(var u=this.__startIndex;u<this.__endIndex;++u){if(f=e[u]){var h=f.shouldBePainted(n,r,!0,!0);(p=f.__isRendered&&(f.__dirty&Cr.REDARAW_BIT||!h)?f.getPrevPaintRect():null)&&c(p);var d=h&&(f.__dirty&Cr.REDARAW_BIT||!f.__isRendered)?f.getPaintRect():null;d&&c(d)}}for(u=this.__prevStartIndex;u<this.__prevEndIndex;++u){var f,p;h=(f=t[u]).shouldBePainted(n,r,!0,!0);if(f&&(!h||!f.__zr)&&f.__isRendered)(p=f.getPrevPaintRect())&&c(p)}do{i=!1;for(u=0;u<a.length;)if(a[u].isZero())a.splice(u,1);else{for(var A=u+1;A<a.length;)a[u].intersect(a[A])?(i=!0,a[u].union(a[A]),a.splice(A,1)):A++;u++}}while(i);return this._paintRects=a,a},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(e,t){var n=this.dpr,r=this.dom,i=r.style,a=this.domBack;i&&(i.width=e+"px",i.height=t+"px"),r.width=e*n,r.height=t*n,a&&(a.width=e*n,a.height=t*n,1!==n&&this.ctxBack.scale(n,n))},t.prototype.clear=function(e,t,n){var r=this.dom,i=this.ctx,a=r.width,o=r.height;t=t||this.clearColor;var s=this.motionBlur&&!e,l=this.lastFrameAlpha,c=this.dpr,u=this;s&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(r,0,0,a/c,o/c));var h=this.domBack;function d(e,n,r,a){if(i.clearRect(e,n,r,a),t&&"transparent"!==t){var o=void 0;ue(t)?(o=t.__canvasGradient||em(i,t,{x:0,y:0,width:r,height:a}),t.__canvasGradient=o):he(t)&&(o=lm(i,t,{dirty:function(){u.setUnpainted(),u.__painter.refresh()}})),i.save(),i.fillStyle=o||t,i.fillRect(e,n,r,a),i.restore()}s&&(i.save(),i.globalAlpha=l,i.drawImage(h,e,n,r,a),i.restore())}!n||s?d(0,0,a,o):n.length&&q(n,function(e){d(e.x*c,e.y*c,e.width*c,e.height*c)})},t}(at),yx=314159;function bx(e){return parseInt(e,10)}var xx=function(){function e(e,t,n,r){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var i=!e.nodeName||"CANVAS"===e.nodeName.toUpperCase();this._opts=n=H({},n||{}),this.dpr=n.devicePixelRatio||pr,this._singleCanvas=i,this.root=e;var a=e.style;a&&(a.webkitTapHighlightColor="transparent",a.webkitUserSelect="none",a.userSelect="none",a["-webkit-touch-callout"]="none",e.innerHTML=""),this.storage=t;var o=this._zlevelList;this._prevDisplayList=[];var s=this._layers;if(i){var l=e,c=l.width,u=l.height;null!=n.width&&(c=n.width),null!=n.height&&(u=n.height),this.dpr=n.devicePixelRatio||1,l.width=c*this.dpr,l.height=u*this.dpr,this._width=c,this._height=u;var h=new vx(l,this,this.dpr);h.__builtin__=!0,h.initContext(),s[yx]=h,h.zlevel=yx,o.push(yx),this._domRoot=e}else{this._width=this._getSize(0),this._height=this._getSize(1);var d=this._domRoot=function(e,t){var n=document.createElement("div");return n.style.cssText=["position:relative","width:"+e+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",n}(this._width,this._height);e.appendChild(d)}}return e.prototype.getType=function(){return"canvas"},e.prototype.isSingleCanvas=function(){return this._singleCanvas},e.prototype.getViewportRoot=function(){return this._domRoot},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.refresh=function(e){var t=this.storage.getDisplayList(!0),n=this._prevDisplayList,r=this._zlevelList;this._redrawId=Math.random(),this._paintList(t,n,e,this._redrawId);for(var i=0;i<r.length;i++){var a=r[i],o=this._layers[a];if(!o.__builtin__&&o.refresh){var s=0===i?this._backgroundColor:null;o.refresh(s)}}return this._opts.useDirtyRect&&(this._prevDisplayList=t.slice()),this},e.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},e.prototype._paintHoverList=function(e){var t=e.length,n=this._hoverlayer;if(n&&n.clear(),t){for(var r,i={inHover:!0,viewWidth:this._width,viewHeight:this._height},a=0;a<t;a++){var o=e[a];o.__inHover&&(n||(n=this._hoverlayer=this.getLayer(1e5)),r||(r=n.ctx).save(),wm(r,o,i,a===t-1))}r&&r.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(1e5)},e.prototype.paintOne=function(e,t){bm(e,t)},e.prototype._paintList=function(e,t,n,r){if(this._redrawId===r){n=n||!1,this._updateLayerStatus(e);var i=this._doPaintList(e,t,n),a=i.finished,o=i.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),o&&this._paintHoverList(e),a)this.eachLayer(function(e){e.afterBrush&&e.afterBrush()});else{var s=this;Ur(function(){s._paintList(e,t,n,r)})}}},e.prototype._compositeManually=function(){var e=this.getLayer(yx).ctx,t=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,t,n),this.eachBuiltinLayer(function(r){r.virtual&&e.drawImage(r.dom,0,0,t,n)})},e.prototype._doPaintList=function(e,t,n){for(var r=this,i=[],a=this._opts.useDirtyRect,o=0;o<this._zlevelList.length;o++){var s=this._zlevelList[o],l=this._layers[s];l.__builtin__&&l!==this._hoverlayer&&(l.__dirty||n)&&i.push(l)}for(var c=!0,u=!1,h=function(o){var s=i[o],l=s.ctx,h=a&&s.createRepaintRects(e,t,d._width,d._height);l.save();var f,p=n?s.__startIndex:s.__drawIndex,A=!n&&s.incremental&&Date.now,g=A&&Date.now(),m=s.zlevel===d._zlevelList[0]?d._backgroundColor:null;if(s.__startIndex===s.__endIndex)s.clear(!1,m,h);else if(p===s.__startIndex){var v=e[p];v.incremental&&v.notClear&&!n||s.clear(!1,m,h)}-1===p&&(console.error("For some unknown reason. drawIndex is -1"),p=s.__startIndex);var y=function(t){var n={inHover:!1,allClipped:!1,prevEl:null,viewWidth:r._width,viewHeight:r._height};for(f=p;f<s.__endIndex;f++){var i=e[f];if(i.__inHover&&(u=!0),r._doPaintEl(i,s,a,t,n,f===s.__endIndex-1),A)if(Date.now()-g>15)break}n.prevElClipPaths&&l.restore()};if(h)if(0===h.length)f=s.__endIndex;else for(var b=d.dpr,w=0;w<h.length;++w){var x=h[w];l.save(),l.beginPath(),l.rect(x.x*b,x.y*b,x.width*b,x.height*b),l.clip(),y(x),l.restore()}else l.save(),y(),l.restore();s.__drawIndex=f,s.__drawIndex<s.__endIndex&&(c=!1)},d=this,f=0;f<i.length;f++)h(f);return w.wxa&&q(this._layers,function(e){e&&e.ctx&&e.ctx.draw&&e.ctx.draw()}),{finished:c,needsRefreshHover:u}},e.prototype._doPaintEl=function(e,t,n,r,i,a){var o=t.ctx;if(n){var s=e.getPaintRect();(!r||s&&s.intersect(r))&&(wm(o,e,i,a),e.setPrevPaintRect(s))}else wm(o,e,i,a)},e.prototype.getLayer=function(e,t){this._singleCanvas&&!this._needsManuallyCompositing&&(e=yx);var n=this._layers[e];return n||((n=new vx("zr_"+e,this,this.dpr)).zlevel=e,n.__builtin__=!0,this._layerConfig[e]?N(n,this._layerConfig[e],!0):this._layerConfig[e-.01]&&N(n,this._layerConfig[e-.01],!0),t&&(n.virtual=t),this.insertLayer(e,n),n.initContext()),n},e.prototype.insertLayer=function(e,t){var n=this._layers,r=this._zlevelList,i=r.length,a=this._domRoot,o=null,s=-1;if(n[e])L("ZLevel "+e+" has been used already");else if(function(e){return!!e&&(!!e.__builtin__||"function"==typeof e.resize&&"function"==typeof e.refresh)}(t)){if(i>0&&e>r[0]){for(s=0;s<i-1&&!(r[s]<e&&r[s+1]>e);s++);o=n[r[s]]}if(r.splice(s+1,0,e),n[e]=t,!t.virtual)if(o){var l=o.dom;l.nextSibling?a.insertBefore(t.dom,l.nextSibling):a.appendChild(t.dom)}else a.firstChild?a.insertBefore(t.dom,a.firstChild):a.appendChild(t.dom);t.__painter=this}else L("Layer of zlevel "+e+" is not valid")},e.prototype.eachLayer=function(e,t){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r];e.call(t,this._layers[i],i)}},e.prototype.eachBuiltinLayer=function(e,t){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r],a=this._layers[i];a.__builtin__&&e.call(t,a,i)}},e.prototype.eachOtherLayer=function(e,t){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r],a=this._layers[i];a.__builtin__||e.call(t,a,i)}},e.prototype.getLayers=function(){return this._layers},e.prototype._updateLayerStatus=function(e){function t(e){a&&(a.__endIndex!==e&&(a.__dirty=!0),a.__endIndex=e)}if(this.eachBuiltinLayer(function(e,t){e.__dirty=e.__used=!1}),this._singleCanvas)for(var n=1;n<e.length;n++){if((s=e[n]).zlevel!==e[n-1].zlevel||s.incremental){this._needsManuallyCompositing=!0;break}}var r,i,a=null,o=0;for(i=0;i<e.length;i++){var s,l=(s=e[i]).zlevel,c=void 0;r!==l&&(r=l,o=0),s.incremental?((c=this.getLayer(l+.001,this._needsManuallyCompositing)).incremental=!0,o=1):c=this.getLayer(l+(o>0?.01:0),this._needsManuallyCompositing),c.__builtin__||L("ZLevel "+l+" has been used by unkown layer "+c.id),c!==a&&(c.__used=!0,c.__startIndex!==i&&(c.__dirty=!0),c.__startIndex=i,c.incremental?c.__drawIndex=-1:c.__drawIndex=i,t(i),a=c),s.__dirty&Cr.REDARAW_BIT&&!s.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=i))}t(i),this.eachBuiltinLayer(function(e,t){!e.__used&&e.getElementCount()>0&&(e.__dirty=!0,e.__startIndex=e.__endIndex=e.__drawIndex=0),e.__dirty&&e.__drawIndex<0&&(e.__drawIndex=e.__startIndex)})},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(e){e.clear()},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e,q(this._layers,function(e){e.setUnpainted()})},e.prototype.configLayer=function(e,t){if(t){var n=this._layerConfig;n[e]?N(n[e],t,!0):n[e]=t;for(var r=0;r<this._zlevelList.length;r++){var i=this._zlevelList[r];if(i===e||i===e+.01)N(this._layers[i],n[e],!0)}}},e.prototype.delLayer=function(e){var t=this._layers,n=this._zlevelList,r=t[e];r&&(r.dom.parentNode.removeChild(r.dom),delete t[e],n.splice(z(n,e),1))},e.prototype.resize=function(e,t){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var r=this._opts;if(null!=e&&(r.width=e),null!=t&&(r.height=t),e=this._getSize(0),t=this._getSize(1),n.style.display="",this._width!==e||t!==this._height){for(var i in n.style.width=e+"px",n.style.height=t+"px",this._layers)this._layers.hasOwnProperty(i)&&this._layers[i].resize(e,t);this.refresh(!0)}this._width=e,this._height=t}else{if(null==e||null==t)return;this._width=e,this._height=t,this.getLayer(yx).resize(e,t)}return this},e.prototype.clearLayer=function(e){var t=this._layers[e];t&&t.clear()},e.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},e.prototype.getRenderedCanvas=function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._layers[yx].dom;var t=new vx("image",this,e.pixelRatio||this.dpr);t.initContext(),t.clear(!1,e.backgroundColor||this._backgroundColor);var n=t.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var r=t.dom.width,i=t.dom.height;this.eachLayer(function(e){e.__builtin__?n.drawImage(e.dom,0,0,r,i):e.renderToCanvas&&(n.save(),e.renderToCanvas(n),n.restore())})}else for(var a={inHover:!1,viewWidth:this._width,viewHeight:this._height},o=this.storage.getDisplayList(!0),s=0,l=o.length;s<l;s++){var c=o[s];wm(n,c,a,s===l-1)}return t.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e.prototype._getSize=function(e){var t=this._opts,n=["width","height"][e],r=["clientWidth","clientHeight"][e],i=["paddingLeft","paddingTop"][e],a=["paddingRight","paddingBottom"][e];if(null!=t[n]&&"auto"!==t[n])return parseFloat(t[n]);var o=this.root,s=document.defaultView.getComputedStyle(o);return(o[r]||bx(s[n])||bx(o.style[n]))-(bx(s[i])||0)-(bx(s[a])||0)|0},e.prototype.pathToImage=function(e,t){t=t||this.dpr;var n=document.createElement("canvas"),r=n.getContext("2d"),i=e.getBoundingRect(),a=e.style,o=a.shadowBlur*t,s=a.shadowOffsetX*t,l=a.shadowOffsetY*t,c=e.hasStroke()?a.lineWidth:0,u=Math.max(c/2,-s+o),h=Math.max(c/2,s+o),d=Math.max(c/2,-l+o),f=Math.max(c/2,l+o),p=i.width+u+h,A=i.height+d+f;n.width=p*t,n.height=A*t,r.scale(t,t),r.clearRect(0,0,p,A),r.dpr=t;var g={x:e.x,y:e.y,scaleX:e.scaleX,scaleY:e.scaleY,rotation:e.rotation,originX:e.originX,originY:e.originY};e.x=u-i.x,e.y=d-i.y,e.rotation=0,e.scaleX=1,e.scaleY=1,e.updateTransform(),e&&wm(r,e,{inHover:!1,viewWidth:this._width,viewHeight:this._height},!0);var m=new Ss({style:{x:0,y:0,image:n}});return H(e,g),m},e}();var _x=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n.legendSymbol="line",n}return g(t,e),t.prototype.getInitialData=function(e){return zy(this.getSource(),this,{useEncodeDefaulter:!0})},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={zlevel:0,z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0,lineStyle:{width:"bolder"}},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0},t}(rA);function Cx(e,t){var n=e.mapDimensionsAll("defaultedLabel"),r=n.length;if(1===r){var i=ap(e,t,n[0]);return null!=i?i+"":null}if(r){for(var a=[],o=0;o<n.length;o++)a.push(ap(e,t,n[o]));return a.join(" ")}}function Sx(e,t){var n=e.mapDimensionsAll("defaultedLabel");if(!te(t))return t+"";for(var r=[],i=0;i<n.length;i++){var a=e.getDimensionInfo(n[i]);a&&r.push(t[a.index])}return r.join(" ")}function kx(e,t){this.parent.drift(e,t)}var Bx=function(e){function t(t,n,r,i){var a=e.call(this)||this;return a.updateData(t,n,r,i),a}return g(t,e),t.prototype._createSymbol=function(e,t,n,r,i){this.removeAll();var a=Zg(e,-1,-1,2,2,null,i);a.attr({z2:100,culling:!0,scaleX:r[0]/2,scaleY:r[1]/2}),a.drift=kx,this._symbolType=e,this.add(a)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){xl(this.childAt(0))},t.prototype.downplay=function(){_l(this.childAt(0))},t.prototype.setZ=function(e,t){var n=this.childAt(0);n.zlevel=e,n.z=t},t.prototype.setDraggable=function(e){var t=this.childAt(0);t.draggable=e,t.cursor=e?"move":t.cursor},t.prototype.updateData=function(e,n,r,i){this.silent=!1;var a=e.getItemVisual(n,"symbol")||"circle",o=e.hostModel,s=t.getSymbolSize(e,n),l=a!==this._symbolType,c=i&&i.disableAnimation;if(l){var u=e.getItemVisual(n,"symbolKeepAspect");this._createSymbol(a,e,n,s,u)}else{(d=this.childAt(0)).silent=!1;var h={scaleX:s[0]/2,scaleY:s[1]/2};c?d.attr(h):_u(d,h,o,n)}if(this._updateCommon(e,n,s,r,i),l){var d=this.childAt(0);if(!c){h={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:d.style.opacity}};d.scaleX=d.scaleY=0,d.style.opacity=0,Cu(d,h,o,n)}}c&&this.childAt(0).stopAnimation("remove"),this._seriesModel=o},t.prototype._updateCommon=function(e,t,n,r,i){var a,o,s,l,c,u,h,d,f,p=this.childAt(0),A=e.hostModel;if(r&&(a=r.emphasisItemStyle,o=r.blurItemStyle,s=r.selectItemStyle,l=r.focus,c=r.blurScope,u=r.symbolOffset,h=r.labelStatesModels,d=r.hoverScale,f=r.cursorStyle),!r||e.hasItemOption){var g=r&&r.itemModel?r.itemModel:e.getItemModel(t),m=g.getModel("emphasis");a=m.getModel("itemStyle").getItemStyle(),s=g.getModel(["select","itemStyle"]).getItemStyle(),o=g.getModel(["blur","itemStyle"]).getItemStyle(),l=m.get("focus"),c=m.get("blurScope"),u=g.getShallow("symbolOffset"),h=Vu(g),d=m.getShallow("scale"),f=g.getShallow("cursor")}var v=e.getItemVisual(t,"symbolRotate");p.attr("rotation",(v||0)*Math.PI/180||0),u&&(p.x=mi(u[0],n[0]),p.y=mi(u[1],n[1])),f&&p.attr("cursor",f);var y=e.getItemVisual(t,"style"),b=y.fill;if(p instanceof Ss){var w=p.style;p.useStyle(H({image:w.image,x:w.x,y:w.y,width:w.width,height:w.height},y))}else p.__isEmptyBrush?p.useStyle(H({},y)):p.useStyle(y),p.style.decal=null,p.setColor(b,i&&i.symbolInnerColor),p.style.strokeNoScale=!0;var x=e.getItemVisual(t,"liftZ"),_=this._z2;null!=x?null==_&&(this._z2=p.z2,p.z2+=x):null!=_&&(p.z2=_,this._z2=null);var C=i&&i.useNameLabel;zu(p,h,{labelFetcher:A,labelDataIndex:t,defaultText:function(t){return C?e.getName(t):Cx(e,t)},inheritColor:b,defaultOpacity:y.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var S=p.ensureState("emphasis");if(S.style=a,p.ensureState("select").style=s,p.ensureState("blur").style=o,d){var k=Math.max(1.1,3/this._sizeY);S.scaleX=this._sizeX*k,S.scaleY=this._sizeY*k}this.setSymbolScale(1),Ml(this,l,c)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,t){var n=this.childAt(0),r=this._seriesModel,i=Gs(this).dataIndex,a=t&&t.animation;if(this.silent=n.silent=!0,t&&t.fadeLabel){var o=n.getTextContent();o&&Su(o,{style:{opacity:0}},r,{dataIndex:i,removeOpt:a,cb:function(){n.removeTextContent()}})}else n.removeTextContent();Su(n,{style:{opacity:0},scaleX:0,scaleY:0},r,{dataIndex:i,cb:e,removeOpt:a})},t.getSymbolSize=function(e,t){var n=e.getItemVisual(t,"symbolSize");return n instanceof Array?n.slice():[+n,+n]},t}(ii);function Ex(e,t,n,r){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(r.isIgnore&&r.isIgnore(n))&&!(r.clipShape&&!r.clipShape.contain(t[0],t[1]))&&"none"!==e.getItemVisual(n,"symbol")}function Tx(e){return null==e||oe(e)||(e={isIgnore:e}),e||{}}function Ix(e){var t=e.hostModel,n=t.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),symbolRotate:t.get("symbolRotate"),symbolOffset:t.get("symbolOffset"),hoverScale:n.get("scale"),labelStatesModels:Vu(t),cursorStyle:t.get("cursor")}}var Mx=function(){function e(e){this.group=new ii,this._SymbolCtor=e||Bx}return e.prototype.updateData=function(e,t){t=Tx(t);var n=this.group,r=e.hostModel,i=this._data,a=this._SymbolCtor,o=t.disableAnimation,s=Ix(e),l={disableAnimation:o},c=t.getSymbolPoint||function(t){return e.getItemLayout(t)};i||n.removeAll(),e.diff(i).add(function(r){var i=c(r);if(Ex(e,i,r,t)){var o=new a(e,r,s,l);o.setPosition(i),e.setItemGraphicEl(r,o),n.add(o)}}).update(function(u,h){var d=i.getItemGraphicEl(h),f=c(u);if(Ex(e,f,u,t)){if(d){d.updateData(e,u,s,l);var p={x:f[0],y:f[1]};o?d.attr(p):_u(d,p,r)}else(d=new a(e,u)).setPosition(f);n.add(d),e.setItemGraphicEl(u,d)}else n.remove(d)}).remove(function(e){var t=i.getItemGraphicEl(e);t&&t.fadeOut(function(){n.remove(t)})}).execute(),this._getSymbolPoint=c,this._data=e},e.prototype.isPersistent=function(){return!0},e.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl(function(t,n){var r=e._getSymbolPoint(n);t.setPosition(r),t.markRedraw()})},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=Ix(e),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t,n){function r(e){e.isGroup||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}n=Tx(n);for(var i=e.start;i<e.end;i++){var a=t.getItemLayout(i);if(Ex(t,a,i,n)){var o=new this._SymbolCtor(t,i,this._seriesScope);o.traverse(r),o.setPosition(a),this.group.add(o),t.setItemGraphicEl(i,o)}}},e.prototype.remove=function(e){var t=this.group,n=this._data;n&&e?n.eachItemGraphicEl(function(e){e.fadeOut(function(){t.remove(e)})}):t.removeAll()},e}();function Fx(e,t,n){var r=e.getBaseAxis(),i=e.getOtherAxis(r),a=function(e,t){var n=0,r=e.scale.getExtent();"start"===t?n=r[0]:"end"===t?n=r[1]:r[0]>0?n=r[0]:r[1]<0&&(n=r[1]);return n}(i,n),o=r.dim,s=i.dim,l=t.mapDimension(s),c=t.mapDimension(o),u="x"===s||"radius"===s?1:0,h=W(e.dimensions,function(e){return t.mapDimension(e)}),d=!1,f=t.getCalculationInfo("stackResultDimension");return jy(t,h[0])&&(d=!0,h[0]=f),jy(t,h[1])&&(d=!0,h[1]=f),{dataDimsForPoint:h,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!d,valueDim:l,baseDim:c,baseDataOffset:u,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function Dx(e,t,n,r){var i=NaN;e.stacked&&(i=n.get(n.getCalculationInfo("stackedOverDimension"),r)),isNaN(i)&&(i=e.valueStart);var a=e.baseDataOffset,o=[];return o[a]=n.get(e.baseDim,r),o[1-a]=i,t.dataToPoint(o)}var Px="undefined"!=typeof Float32Array,Ox=Px?Float32Array:Array;function Lx(e){return te(e)?Px?new Float32Array(e):e:new Ox(e)}var Rx=Math.min,Nx=Math.max;function Ux(e,t){return isNaN(e)||isNaN(t)}function Hx(e,t,n,r,i,a,o,s,l){for(var c,u,h,d,f,p,A=n,g=0;g<r;g++){var m=t[2*A],v=t[2*A+1];if(A>=i||A<0)break;if(Ux(m,v)){if(l){A+=a;continue}break}if(A===n)e[a>0?"moveTo":"lineTo"](m,v),h=m,d=v;else{var y=m-c,b=v-u;if(y*y+b*b<.5){A+=a;continue}if(o>0){var w=A+a,x=t[2*w],_=t[2*w+1],C=g+1;if(l)for(;Ux(x,_)&&C<r;)C++,x=t[2*(w+=a)],_=t[2*w+1];var S=.5,k=0,B=0,E=void 0,T=void 0;if(C>=r||Ux(x,_))f=m,p=v;else{k=x-c,B=_-u;var I=m-c,M=x-m,F=v-u,D=_-v,P=void 0,O=void 0;"x"===s?(P=Math.abs(I),O=Math.abs(M),f=m-P*o,p=v,E=m+P*o,T=v):"y"===s?(P=Math.abs(F),O=Math.abs(D),f=m,p=v-P*o,E=m,T=v+P*o):(P=Math.sqrt(I*I+F*F),f=m-k*o*(1-(S=(O=Math.sqrt(M*M+D*D))/(O+P))),p=v-B*o*(1-S),T=v+B*o*S,E=Rx(E=m+k*o*S,Nx(x,m)),T=Rx(T,Nx(_,v)),E=Nx(E,Rx(x,m)),p=v-(B=(T=Nx(T,Rx(_,v)))-v)*P/O,f=Rx(f=m-(k=E-m)*P/O,Nx(c,m)),p=Rx(p,Nx(u,v)),f=Nx(f,Rx(c,m)),p=Nx(p,Rx(u,v)),E=m+(k=m-f)*O/P,T=v+(B=v-p)*O/P)}e.bezierCurveTo(h,d,f,p,m,v),h=E,d=T}else e.lineTo(m,v)}c=m,u=v,A+=a}return g}var jx=function(){return function(){this.smooth=0,this.smoothConstraint=!0}}(),Qx=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-polyline",n}return g(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new jx},t.prototype.buildPath=function(e,t){var n=t.points,r=0,i=n.length/2;if(t.connectNulls){for(;i>0&&Ux(n[2*i-2],n[2*i-1]);i--);for(;r<i&&Ux(n[2*r],n[2*r+1]);r++);}for(;r<i;)r+=Hx(e,n,r,i,i,1,t.smooth,t.smoothMonotone,t.connectNulls)+1},t.prototype.getPointOn=function(e,t){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n,r,i=this.path.data,a=Xo.CMD,o="x"===t,s=[],l=0;l<i.length;){var c=void 0,u=void 0,h=void 0,d=void 0,f=void 0,p=void 0,A=void 0;switch(i[l++]){case a.M:n=i[l++],r=i[l++];break;case a.L:if(c=i[l++],u=i[l++],(A=o?(e-n)/(c-n):(e-r)/(u-r))<=1&&A>=0){var g=o?(u-r)*A+r:(c-n)*A+n;return o?[e,g]:[g,e]}n=c,r=u;break;case a.C:c=i[l++],u=i[l++],h=i[l++],d=i[l++],f=i[l++],p=i[l++];var m=o?ao(n,c,h,f,e,s):ao(r,u,d,p,e,s);if(m>0)for(var v=0;v<m;v++){var y=s[v];if(y<=1&&y>=0){g=o?ro(r,u,d,p,y):ro(n,c,h,f,y);return o?[e,g]:[g,e]}}n=f,r=p}}},t}(vs),zx=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return g(t,e),t}(jx),Vx=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-polygon",n}return g(t,e),t.prototype.getDefaultShape=function(){return new zx},t.prototype.buildPath=function(e,t){var n=t.points,r=t.stackedOnPoints,i=0,a=n.length/2,o=t.smoothMonotone;if(t.connectNulls){for(;a>0&&Ux(n[2*a-2],n[2*a-1]);a--);for(;i<a&&Ux(n[2*i],n[2*i+1]);i++);}for(;i<a;){var s=Hx(e,n,i,a,a,1,t.smooth,o,t.connectNulls);Hx(e,r,i+s-1,s,a,-1,t.stackedOnSmooth,o,t.connectNulls),i+=s+1,e.closePath()}},t}(vs);function Gx(e,t,n,r,i){var a=e.getArea(),o=a.x,s=a.y,l=a.width,c=a.height,u=n.get(["lineStyle","width"])||2;o-=u/2,s-=u/2,l+=u,c+=u,o=Math.floor(o),l=Math.round(l);var h=new Ds({shape:{x:o,y:s,width:l,height:c}});if(t){var d=e.getBaseAxis(),f=d.isHorizontal(),p=d.inverse;f?(p&&(h.shape.x+=l),h.shape.width=0):(p||(h.shape.y+=c),h.shape.height=0),Cu(h,{shape:{width:l,height:c,x:o,y:s}},n,null,r,"function"==typeof i?function(e){i(e,h)}:null)}return h}function $x(e,t,n){var r=e.getArea(),i=vi(r.r0,1),a=vi(r.r,1),o=new Sc({shape:{cx:vi(e.cx,1),cy:vi(e.cy,1),r0:i,r:a,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});t&&("angle"===e.getBaseAxis().dim?o.shape.endAngle=r.startAngle:o.shape.r=i,Cu(o,{shape:{endAngle:r.endAngle,r:a}},n));return o}function qx(e,t,n,r,i){return e?"polar"===e.type?$x(e,t,n):"cartesian2d"===e.type?Gx(e,t,n,r,i):null:null}function Wx(e,t){return e.type===t}function Kx(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++)if(e[n]!==t[n])return;return!0}}function Yx(e){for(var t=1/0,n=1/0,r=-1/0,i=-1/0,a=0;a<e.length;){var o=e[a++],s=e[a++];isNaN(o)||(t=Math.min(o,t),r=Math.max(o,r)),isNaN(s)||(n=Math.min(s,n),i=Math.max(s,i))}return[[t,n],[r,i]]}function Xx(e,t){var n=Yx(e),r=n[0],i=n[1],a=Yx(t),o=a[0],s=a[1];return Math.max(Math.abs(r[0]-o[0]),Math.abs(r[1]-o[1]),Math.abs(i[0]-s[0]),Math.abs(i[1]-s[1]))}function Jx(e){return"number"==typeof e?e:e?.5:0}function Zx(e,t,n){for(var r=t.getBaseAxis(),i="x"===r.dim||"radius"===r.dim?0:1,a=[],o=0,s=[],l=[],c=[];o<e.length-2;o+=2)switch(c[0]=e[o+2],c[1]=e[o+3],l[0]=e[o],l[1]=e[o+1],a.push(l[0],l[1]),n){case"end":s[i]=c[i],s[1-i]=l[1-i],a.push(s[0],s[1]);break;case"middle":var u=(l[i]+c[i])/2,h=[];s[i]=h[i]=u,s[1-i]=l[1-i],h[1-i]=c[1-i],a.push(s[0],s[1]),a.push(h[0],h[1]);break;default:s[i]=l[i],s[1-i]=c[1-i],a.push(s[0],s[1])}return a.push(e[o++],e[o++]),a}function e_(e,t,n){var r=e.get("showAllSymbol"),i="auto"===r;if(!r||i){var a=n.getAxesByScale("ordinal")[0];if(a&&(!i||!function(e,t){var n=e.getExtent(),r=Math.abs(n[1]-n[0])/e.scale.count();isNaN(r)&&(r=0);for(var i=t.count(),a=Math.max(1,Math.round(i/5)),o=0;o<i;o+=a)if(1.5*Bx.getSymbolSize(t,o)[e.isHorizontal()?1:0]>r)return!1;return!0}(a,t))){var o=t.mapDimension(a.dim),s={};return q(a.getViewLabels(),function(e){var t=a.scale.getRawOrdinalNumber(e.tickValue);s[t]=1}),function(e){return!s.hasOwnProperty(t.get(o,e))}}}}function t_(e,t){return[e[2*t],e[2*t+1]]}function n_(e,t,n,r){if(Wx(t,"cartesian2d")){var i=r.getModel("endLabel"),a=i.get("show"),o=i.get("valueAnimation"),s=r.getData(),l={lastFrameIndex:0},c=a?function(n,r){e._endLabelOnDuring(n,r,s,l,o,i,t)}:null,u=t.getBaseAxis().isHorizontal(),h=Gx(t,n,r,function(){var t=e._endLabel;t&&n&&null!=l.originalX&&t.attr({x:l.originalX,y:l.originalY})},c);if(!r.get("clip",!0)){var d=h.shape,f=Math.max(d.width,d.height);u?(d.y-=f,d.height+=2*f):(d.x-=f,d.width+=2*f)}return c&&c(1,h),h}return $x(t,n,r)}var r_=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return g(t,e),t.prototype.init=function(){var e=new ii,t=new Mx;this.group.add(t.group),this._symbolDraw=t,this._lineGroup=e},t.prototype.render=function(e,t,n){var r=this,i=e.coordinateSystem,a=this.group,o=e.getData(),s=e.getModel("lineStyle"),l=e.getModel("areaStyle"),c=o.getLayout("points")||[],u="polar"===i.type,h=this._coordSys,d=this._symbolDraw,f=this._polyline,p=this._polygon,A=this._lineGroup,g=e.get("animation"),m=!l.isEmpty(),v=l.get("origin"),y=Fx(i,o,v),b=m&&function(e,t,n){if(!n.valueDim)return[];for(var r=t.count(),i=Lx(2*r),a=0;a<r;a++){var o=Dx(n,e,t,a);i[2*a]=o[0],i[2*a+1]=o[1]}return i}(i,o,y),w=e.get("showSymbol"),x=w&&!u&&e_(e,o,i),_=this._data;_&&_.eachItemGraphicEl(function(e,t){e.__temp&&(a.remove(e),_.setItemGraphicEl(t,null))}),w||d.remove(),a.add(A);var C,S=!u&&e.get("step");i&&i.getArea&&e.get("clip",!0)&&(null!=(C=i.getArea()).width?(C.x-=.1,C.y-=.1,C.width+=.2,C.height+=.2):C.r0&&(C.r0-=.5,C.r+=.5)),this._clipShapeForSymbol=C;var k=function(e,t){var n=e.getVisual("visualMeta");if(n&&n.length&&e.count()&&"cartesian2d"===t.type){for(var r,i,a=n.length-1;a>=0;a--){var o=n[a].dimension,s=e.dimensions[o],l=e.getDimensionInfo(s);if("x"===(r=l&&l.coordDim)||"y"===r){i=n[a];break}}if(i){var c=t.getAxis(r),u=W(i.stops,function(e){return{offset:0,coord:c.toGlobalCoord(c.dataToCoord(e.value)),color:e.color}}),h=u.length,d=i.outerColors.slice();h&&u[0].coord>u[h-1].coord&&(u.reverse(),d.reverse());var f=u[0].coord-10,p=u[h-1].coord+10,A=p-f;if(A<.001)return"transparent";q(u,function(e){e.offset=(e.coord-f)/A}),u.push({offset:h?u[h-1].offset:.5,color:d[1]||"transparent"}),u.unshift({offset:h?u[0].offset:.5,color:d[0]||"transparent"});var g=new Xc(0,0,0,0,u,!0);return g[r]=f,g[r+"2"]=p,g}}}(o,i)||o.getVisual("style")[o.getVisual("drawType")];f&&h.type===i.type&&S===this._step?(m&&!p?p=this._newPolygon(c,b):p&&!m&&(A.remove(p),p=this._polygon=null),u||this._initOrUpdateEndLabel(e,i,dd(k)),A.setClipPath(n_(this,i,!1,e)),w&&d.updateData(o,{isIgnore:x,clipShape:C,disableAnimation:!0,getSymbolPoint:function(e){return[c[2*e],c[2*e+1]]}}),Kx(this._stackedOnPoints,b)&&Kx(this._points,c)||(g?this._doUpdateAnimation(o,b,i,n,S,v):(S&&(c=Zx(c,i,S),b&&(b=Zx(b,i,S))),f.setShape({points:c}),p&&p.setShape({points:c,stackedOnPoints:b})))):(w&&d.updateData(o,{isIgnore:x,clipShape:C,disableAnimation:!0,getSymbolPoint:function(e){return[c[2*e],c[2*e+1]]}}),g&&this._initSymbolLabelAnimation(o,i,C),S&&(c=Zx(c,i,S),b&&(b=Zx(b,i,S))),f=this._newPolyline(c),m&&(p=this._newPolygon(c,b)),u||this._initOrUpdateEndLabel(e,i,dd(k)),A.setClipPath(n_(this,i,!0,e)));var B=e.get(["emphasis","focus"]),E=e.get(["emphasis","blurScope"]);(f.useStyle(j(s.getLineStyle(),{fill:"none",stroke:k,lineJoin:"bevel"})),Ol(f,e,"lineStyle"),f.style.lineWidth>0&&"bolder"===e.get(["emphasis","lineStyle","width"]))&&(f.getState("emphasis").style.lineWidth=f.style.lineWidth+1);Gs(f).seriesIndex=e.seriesIndex,Ml(f,B,E);var T=Jx(e.get("smooth")),I=e.get("smoothMonotone"),M=e.get("connectNulls");if(f.setShape({smooth:T,smoothMonotone:I,connectNulls:M}),p){var F=o.getCalculationInfo("stackedOnSeries"),D=0;p.useStyle(j(l.getAreaStyle(),{fill:k,opacity:.7,lineJoin:"bevel",decal:o.getVisual("style").decal})),F&&(D=Jx(F.get("smooth"))),p.setShape({smooth:T,stackedOnSmooth:D,smoothMonotone:I,connectNulls:M}),Ol(p,e,"areaStyle"),Gs(p).seriesIndex=e.seriesIndex,Ml(p,B,E)}var P=function(e){r._changePolyState(e)};o.eachItemGraphicEl(function(e){e&&(e.onHoverStateChange=P)}),this._polyline.onHoverStateChange=P,this._data=o,this._coordSys=i,this._stackedOnPoints=b,this._points=c,this._step=S,this._valueOrigin=v},t.prototype.dispose=function(){},t.prototype.highlight=function(e,t,n,r){var i=e.getData(),a=Ji(i,r);if(this._changePolyState("emphasis"),!(a instanceof Array)&&null!=a&&a>=0){var o=i.getLayout("points"),s=i.getItemGraphicEl(a);if(!s){var l=o[2*a],c=o[2*a+1];if(isNaN(l)||isNaN(c))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,c))return;(s=new Bx(i,a)).x=l,s.y=c,s.setZ(e.get("zlevel"),e.get("z")),s.__temp=!0,i.setItemGraphicEl(a,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else AA.prototype.highlight.call(this,e,t,n,r)},t.prototype.downplay=function(e,t,n,r){var i=e.getData(),a=Ji(i,r);if(this._changePolyState("normal"),null!=a&&a>=0){var o=i.getItemGraphicEl(a);o&&(o.__temp?(i.setItemGraphicEl(a,null),this.group.remove(o)):o.downplay())}else AA.prototype.downplay.call(this,e,t,n,r)},t.prototype._changePolyState=function(e){var t=this._polygon;yl(this._polyline,e),t&&yl(t,e)},t.prototype._newPolyline=function(e){var t=this._polyline;return t&&this._lineGroup.remove(t),t=new Qx({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(t),this._polyline=t,t},t.prototype._newPolygon=function(e,t){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new Vx({shape:{points:e,stackedOnPoints:t},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},t.prototype._initSymbolLabelAnimation=function(e,t,n){var r,i,a=t.getBaseAxis(),o=a.inverse;"cartesian2d"===t.type?(r=a.isHorizontal(),i=!1):"polar"===t.type&&(r="angle"===a.dim,i=!0);var s=e.hostModel,l=s.get("animationDuration");"function"==typeof l&&(l=l(null));var c=s.get("animationDelay")||0,u="function"==typeof c?c(null):c;e.eachItemGraphicEl(function(e,a){var s=e;if(s){var h=[e.x,e.y],d=void 0,f=void 0,p=void 0;if(i){var A=n,g=t.pointToCoord(h);r?(d=A.startAngle,f=A.endAngle,p=-g[1]/180*Math.PI):(d=A.r0,f=A.r,p=g[0])}else{var m=n;r?(d=m.x,f=m.x+m.width,p=e.x):(d=m.y+m.height,f=m.y,p=e.y)}var v=f===d?0:(p-d)/(f-d);o&&(v=1-v);var y="function"==typeof c?c(a):l*v+u,b=s.getSymbolPath(),w=b.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,delay:y}),w&&w.animateFrom({style:{opacity:0}},{duration:300,delay:y}),b.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,t,n){var r=e.getModel("endLabel");if(r.get("show")){var i=e.getData(),a=this._polyline,o=this._endLabel;o||((o=this._endLabel=new Vs({z2:200})).ignoreClip=!0,a.setTextContent(this._endLabel),a.disableLabelAnimation=!0);var s=function(e){for(var t,n,r=e.length/2;r>0&&(t=e[2*r-2],n=e[2*r-1],isNaN(t)||isNaN(n));r--);return r-1}(i.getLayout("points"));s>=0&&(zu(a,Vu(e,"endLabel"),{inheritColor:n,labelFetcher:e,labelDataIndex:s,defaultText:function(e,t,n){return null!=n?Sx(i,n):Cx(i,e)},enableTextSetter:!0},function(e,t){var n=t.getBaseAxis(),r=n.isHorizontal(),i=n.inverse,a=r?i?"right":"left":"center",o=r?"middle":i?"top":"bottom";return{normal:{align:e.get("align")||a,verticalAlign:e.get("verticalAlign")||o}}}(r,t)),a.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,t,n,r,i,a,o){var s=this._endLabel,l=this._polyline;if(s){e<1&&null==r.originalX&&(r.originalX=s.x,r.originalY=s.y);var c=n.getLayout("points"),u=n.hostModel,h=u.get("connectNulls"),d=a.get("precision"),f=a.get("distance")||0,p=o.getBaseAxis(),A=p.isHorizontal(),g=p.inverse,m=t.shape,v=g?A?m.x:m.y+m.height:A?m.x+m.width:m.y,y=(A?f:0)*(g?-1:1),b=(A?0:-f)*(g?-1:1),w=A?"x":"y",x=function(e,t,n){for(var r,i,a=e.length/2,o="x"===n?0:1,s=0,l=-1,c=0;c<a;c++)if(i=e[2*c+o],!isNaN(i)&&!isNaN(e[2*c+1-o]))if(0!==c){if(r<=t&&i>=t||r>=t&&i<=t){l=c;break}s=c,r=i}else r=i;return{range:[s,l],t:(t-r)/(i-r)}}(c,v,w),_=x.range,C=_[1]-_[0],S=void 0;if(C>=1){if(C>1&&!h){var k=t_(c,_[0]);s.attr({x:k[0]+y,y:k[1]+b}),i&&(S=u.getRawValue(_[0]))}else{(k=l.getPointOn(v,w))&&s.attr({x:k[0]+y,y:k[1]+b});var B=u.getRawValue(_[0]),E=u.getRawValue(_[1]);i&&(S=sa(n,d,B,E,x.t))}r.lastFrameIndex=_[0]}else{var T=1===e||r.lastFrameIndex>0?_[0]:0;k=t_(c,T);i&&(S=u.getRawValue(T)),s.attr({x:k[0]+y,y:k[1]+b})}i&&Ju(s).setLabelText(S)}},t.prototype._doUpdateAnimation=function(e,t,n,r,i,a){var o=this._polyline,s=this._polygon,l=e.hostModel,c=function(e,t,n,r,i,a,o,s){for(var l=function(e,t){var n=[];return t.diff(e).add(function(e){n.push({cmd:"+",idx:e})}).update(function(e,t){n.push({cmd:"=",idx:t,idx1:e})}).remove(function(e){n.push({cmd:"-",idx:e})}).execute(),n}(e,t),c=[],u=[],h=[],d=[],f=[],p=[],A=[],g=Fx(i,t,o),m=Fx(a,e,s),v=e.getLayout("points")||[],y=t.getLayout("points")||[],b=0;b<l.length;b++){var w=l[b],x=!0,_=void 0,C=void 0;switch(w.cmd){case"=":_=2*w.idx,C=2*w.idx1;var S=v[_],k=v[_+1],B=y[C],E=y[C+1];(isNaN(S)||isNaN(k))&&(S=B,k=E),c.push(S,k),u.push(B,E),h.push(n[_],n[_+1]),d.push(r[C],r[C+1]),A.push(t.getRawIndex(w.idx1));break;case"+":var T=w.idx,I=g.dataDimsForPoint,M=i.dataToPoint([t.get(I[0],T),t.get(I[1],T)]);C=2*T,c.push(M[0],M[1]),u.push(y[C],y[C+1]);var F=Dx(g,i,t,T);h.push(F[0],F[1]),d.push(r[C],r[C+1]),A.push(t.getRawIndex(T));break;case"-":var D=w.idx,P=e.getRawIndex(D),O=m.dataDimsForPoint;if(_=2*D,P!==D){var L=a.dataToPoint([e.get(O[0],D),e.get(O[1],D)]),R=Dx(m,a,e,D);c.push(v[_],v[_+1]),u.push(L[0],L[1]),h.push(n[_],n[_+1]),d.push(R[0],R[1]),A.push(P)}else x=!1}x&&(f.push(w),p.push(p.length))}p.sort(function(e,t){return A[e]-A[t]});var N=c.length,U=Lx(N),H=Lx(N),j=Lx(N),Q=Lx(N),z=[];for(b=0;b<p.length;b++){var V=p[b],G=2*b,$=2*V;U[G]=c[$],U[G+1]=c[$+1],H[G]=u[$],H[G+1]=u[$+1],j[G]=h[$],j[G+1]=h[$+1],Q[G]=d[$],Q[G+1]=d[$+1],z[b]=f[V]}return{current:U,next:H,stackedOnCurrent:j,stackedOnNext:Q,status:z}}(this._data,e,this._stackedOnPoints,t,this._coordSys,n,this._valueOrigin,a),u=c.current,h=c.stackedOnCurrent,d=c.next,f=c.stackedOnNext;if(i&&(u=Zx(c.current,n,i),h=Zx(c.stackedOnCurrent,n,i),d=Zx(c.next,n,i),f=Zx(c.stackedOnNext,n,i)),Xx(u,d)>3e3||s&&Xx(h,f)>3e3)return o.setShape({points:d}),void(s&&s.setShape({points:d,stackedOnPoints:f}));o.shape.__points=c.current,o.shape.points=u;var p={shape:{points:d}};c.current!==u&&(p.shape.__points=c.next),o.stopAnimation(),_u(o,p,l),s&&(s.setShape({points:u,stackedOnPoints:h}),s.stopAnimation(),_u(s,{shape:{stackedOnPoints:f}},l),o.shape.points!==s.shape.points&&(s.shape.points=o.shape.points));for(var A=[],g=c.status,m=0;m<g.length;m++){if("="===g[m].cmd){var v=e.getItemGraphicEl(g[m].idx1);v&&A.push({el:v,ptIdx:m})}}o.animators&&o.animators.length&&o.animators[0].during(function(){s&&s.dirtyShape();for(var e=o.shape.__points,t=0;t<A.length;t++){var n=A[t].el,r=2*A[t].ptIdx;n.x=e[r],n.y=e[r+1],n.markRedraw()}})},t.prototype.remove=function(e){var t=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl(function(e,r){e.__temp&&(t.remove(e),n.setItemGraphicEl(r,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t}(AA);function i_(e,t){return{seriesType:e,plan:oA(),reset:function(e){var n=e.getData(),r=e.coordinateSystem,i=e.pipelineContext,a=t||i.large;if(r){var o=W(r.dimensions,function(e){return n.mapDimension(e)}).slice(0,2),s=o.length,l=n.getCalculationInfo("stackResultDimension");jy(n,o[0])&&(o[0]=l),jy(n,o[1])&&(o[1]=l);var c=n.getDimensionInfo(o[0]),u=n.getDimensionInfo(o[1]),h=c&&c.index,d=u&&u.index;return s&&{progress:function(e,t){for(var n=e.end-e.start,i=a&&Lx(n*s),o=[],l=[],c=e.start,u=0;c<e.end;c++){var f=void 0;if(1===s){var p=t.getByDimIdx(h,c);f=r.dataToPoint(p,null,l)}else o[0]=t.getByDimIdx(h,c),o[1]=t.getByDimIdx(d,c),f=r.dataToPoint(o,null,l);a?(i[u++]=f[0],i[u++]=f[1]):t.setItemLayout(c,f.slice())}a&&t.setLayout("points",i)}}}}}}var a_={average:function(e){for(var t=0,n=0,r=0;r<e.length;r++)isNaN(e[r])||(t+=e[r],n++);return 0===n?NaN:t/n},sum:function(e){for(var t=0,n=0;n<e.length;n++)t+=e[n]||0;return t},max:function(e){for(var t=-1/0,n=0;n<e.length;n++)e[n]>t&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;n<e.length;n++)e[n]<t&&(t=e[n]);return isFinite(t)?t:NaN},nearest:function(e){return e[0]}},o_=function(e){return Math.round(e.length/2)};function s_(e){return{seriesType:e,reset:function(e,t,n){var r=e.getData(),i=e.get("sampling"),a=e.coordinateSystem,o=r.count();if(o>10&&"cartesian2d"===a.type&&i){var s=a.getBaseAxis(),l=a.getOtherAxis(s),c=s.getExtent(),u=n.getDevicePixelRatio(),h=Math.abs(c[1]-c[0])*(u||1),d=Math.round(o/h);if(d>1){"lttb"===i&&e.setData(r.lttbDownSample(r.mapDimension(l.dim),1/d));var f=void 0;"string"==typeof i?f=a_[i]:"function"==typeof i&&(f=i),f&&e.setData(r.downSample(r.mapDimension(l.dim),1/d,f,o_))}}}}}var l_=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.prototype.getInitialData=function(e,t){return zy(this.getSource(),this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e){var t=this.coordinateSystem;if(t){var n=t.dataToPoint(t.clampData(e)),r=this.getData(),i=r.getLayout("offset"),a=r.getLayout("size");return n[t.getBaseAxis().isHorizontal()?0:1]+=i+a/2,n}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(rA);rA.registerClass(l_);var c_=l_,u_=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.prototype.getInitialData=function(){return zy(this.getSource(),this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},t.prototype.getProgressiveThreshold=function(){var e=this.get("progressiveThreshold"),t=this.get("largeThreshold");return t>e&&(e=t),e},t.prototype.brushSelector=function(e,t,n){return n.rect(t.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=gh(c_.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t}(c_),h_=function(){return function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}}(),d_=function(e){function t(t){var n=e.call(this,t)||this;return n.type="sausage",n}return g(t,e),t.prototype.getDefaultShape=function(){return new h_},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.max(t.r0||0,0),a=Math.max(t.r,0),o=.5*(a-i),s=i+o,l=t.startAngle,c=t.endAngle,u=t.clockwise,h=Math.cos(l),d=Math.sin(l),f=Math.cos(c),p=Math.sin(c);(u?c-l<2*Math.PI:l-c<2*Math.PI)&&(e.moveTo(h*i+n,d*i+r),e.arc(h*s+n,d*s+r,o,-Math.PI+l,l,!u)),e.arc(n,r,a,l,c,!u),e.moveTo(f*a+n,p*a+r),e.arc(f*s+n,p*s+r,o,c-2*Math.PI,c-Math.PI,!u),0!==i&&(e.arc(n,r,i,c,l,u),e.moveTo(h*i+n,p*i+r)),e.closePath()},t}(vs),f_=["itemStyle","borderWidth"],p_=["itemStyle","borderRadius"],A_=[0,0],g_=Math.max,m_=Math.min;var v_=function(e){function t(){var n=e.call(this)||this;return n.type=t.type,n._isFirstFrame=!0,n}return g(t,e),t.prototype.render=function(e,t,n,r){this._model=e,this._removeOnRenderedListener(n),this._updateDrawMode(e);var i=e.get("coordinateSystem");("cartesian2d"===i||"polar"===i)&&(this._isLargeDraw?this._renderLarge(e,t,n):this._renderNormal(e,t,n,r))},t.prototype.incrementalPrepareRender=function(e){this._clear(),this._updateDrawMode(e),this._updateLargeClip(e)},t.prototype.incrementalRender=function(e,t){this._incrementalRenderLarge(e,t)},t.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;null!=this._isLargeDraw&&t===this._isLargeDraw||(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(e,t,n,r){var i,a=this.group,o=e.getData(),s=this._data,l=e.coordinateSystem,c=l.getBaseAxis();"cartesian2d"===l.type?i=c.isHorizontal():"polar"===l.type&&(i="angle"===c.dim);var u=e.isAnimationEnabled()?e:null,h=function(e,t){var n=e.get("realtimeSort",!0),r=t.getBaseAxis();0;if(n&&"category"===r.type&&"cartesian2d"===t.type)return{baseAxis:r,otherAxis:t.getOtherAxis(r)}}(e,l);h&&this._enableRealtimeSort(h,o,n);var d=e.get("clip",!0)||h,f=function(e,t){var n=e.getArea&&e.getArea();if(Wx(e,"cartesian2d")){var r=e.getBaseAxis();if("category"!==r.type||!r.onBand){var i=t.getLayout("bandWidth");r.isHorizontal()?(n.x-=i,n.width+=2*i):(n.y-=i,n.height+=2*i)}}return n}(l,o);a.removeClipPath();var p=e.get("roundCap",!0),A=e.get("showBackground",!0),g=e.getModel("backgroundStyle"),m=g.get("borderRadius")||0,v=[],y=this._backgroundEls,b=r&&r.isInitSort,w=r&&"changeAxisOrder"===r.type;function x(e){var t=x_[l.type](o,e),n=function(e,t,n){return new("polar"===e.type?Sc:Ds)({shape:E_(t,n,e),silent:!0,z2:0})}(l,i,t);return n.useStyle(g.getItemStyle()),"cartesian2d"===l.type&&n.setShape("r",m),v[e]=n,n}o.diff(s).add(function(t){var n=o.getItemModel(t),r=x_[l.type](o,t,n);if(A&&x(t),o.hasValue(t)){var s=!1;d&&(s=y_[l.type](f,r));var g=b_[l.type](e,o,t,r,i,u,c.model,!1,p);__(g,o,t,n,r,e,i,"polar"===l.type),b?g.attr({shape:r}):h?w_(h,u,g,r,t,i,!1,!1):Cu(g,{shape:r},e,t),o.setItemGraphicEl(t,g),a.add(g),g.ignore=s}}).update(function(t,n){var r=o.getItemModel(t),_=x_[l.type](o,t,r);if(A){var C=void 0;0===y.length?C=x(n):((C=y[n]).useStyle(g.getItemStyle()),"cartesian2d"===l.type&&C.setShape("r",m),v[t]=C);var S=x_[l.type](o,t);_u(C,{shape:E_(i,S,l)},u,t)}var k=s.getItemGraphicEl(n);if(!o.hasValue(t))return a.remove(k),void(k=null);var B=!1;d&&(B=y_[l.type](f,_))&&a.remove(k),k||(k=b_[l.type](e,o,t,_,i,u,c.model,!!k,p)),w||__(k,o,t,r,_,e,i,"polar"===l.type),b?k.attr({shape:_}):h?w_(h,u,k,_,t,i,!0,w):_u(k,{shape:_},e,t,null),o.setItemGraphicEl(t,k),k.ignore=B,a.add(k)}).remove(function(t){var n=s.getItemGraphicEl(t);n&&Bu(n,e,t)}).execute();var _=this._backgroundGroup||(this._backgroundGroup=new ii);_.removeAll();for(var C=0;C<v.length;++C)_.add(v[C]);a.add(_),this._backgroundEls=v,this._data=o},t.prototype._renderLarge=function(e,t,n){this._clear(),k_(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,t){this._removeBackground(),k_(t,this.group,!0)},t.prototype._updateLargeClip=function(e){var t=e.get("clip",!0)?qx(e.coordinateSystem,!1,e):null;t?this.group.setClipPath(t):this.group.removeClipPath()},t.prototype._enableRealtimeSort=function(e,t,n){var r=this;if(t.count()){var i=e.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(t,e,n),this._isFirstFrame=!1;else{var a=function(e){var n=t.getItemGraphicEl(e);if(n){var r=n.shape;return(i.isHorizontal()?Math.abs(r.height):Math.abs(r.width))||0}return 0};this._onRendered=function(){r._updateSortWithinSameData(t,a,i,n)},n.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(e,t,n){var r=[];return e.each(e.mapDimension(t.dim),function(e,t){var i=n(t);i=null==i?NaN:i,r.push({dataIndex:t,mappedValue:i,ordinalNumber:e})}),r.sort(function(e,t){return t.mappedValue-e.mappedValue}),{ordinalNumbers:W(r,function(e){return e.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(e,t,n){for(var r=n.scale,i=e.mapDimension(n.dim),a=Number.MAX_VALUE,o=0,s=r.getOrdinalMeta().categories.length;o<s;++o){var l=e.rawIndexOf(i,r.getRawOrdinalNumber(o)),c=l<0?Number.MIN_VALUE:t(e.indexOfRawIndex(l));if(c>a)return!0;a=c}return!1},t.prototype._isOrderDifferentInView=function(e,t){for(var n=t.scale,r=n.getExtent(),i=Math.max(0,r[0]),a=Math.min(r[1],n.getOrdinalMeta().categories.length-1);i<=a;++i)if(e.ordinalNumbers[i]!==n.getRawOrdinalNumber(i))return!0},t.prototype._updateSortWithinSameData=function(e,t,n,r){if(this._isOrderChangedWithinSameData(e,t,n)){var i=this._dataSort(e,n,t);this._isOrderDifferentInView(i,n)&&(this._removeOnRenderedListener(r),r.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:i}))}},t.prototype._dispatchInitSort=function(e,t,n){var r=t.baseAxis,i=this._dataSort(e,r,function(n){return e.get(e.mapDimension(t.otherAxis.dim),n)});n.dispatchAction({type:"changeAxisOrder",componentType:r.dim+"Axis",isInitSort:!0,axisId:r.index,sortInfo:i,animation:{duration:0}})},t.prototype.remove=function(e,t){this._clear(this._model),this._removeOnRenderedListener(t)},t.prototype.dispose=function(e,t){this._removeOnRenderedListener(t)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var t=this.group,n=this._data;e&&e.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(t){Bu(t,e,Gs(t).dataIndex)})):t.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(AA),y_={cartesian2d:function(e,t){var n=t.width<0?-1:1,r=t.height<0?-1:1;n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height);var i=e.x+e.width,a=e.y+e.height,o=g_(t.x,e.x),s=m_(t.x+t.width,i),l=g_(t.y,e.y),c=m_(t.y+t.height,a),u=s<o,h=c<l;return t.x=u&&o>i?s:o,t.y=h&&l>a?c:l,t.width=u?0:s-o,t.height=h?0:c-l,n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height),u||h},polar:function(e,t){var n=t.r0<=t.r?1:-1;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}var i=m_(t.r,e.r),a=g_(t.r0,e.r0);t.r=i,t.r0=a;var o=i-a<0;if(n<0){r=t.r;t.r=t.r0,t.r0=r}return o}},b_={cartesian2d:function(e,t,n,r,i,a,o,s,l){var c=new Ds({shape:H({},r),z2:1});(c.__dataIndex=n,c.name="item",a)&&(c.shape[i?"height":"width"]=0);return c},polar:function(e,t,n,r,i,a,o,s,l){var c=r.startAngle<r.endAngle,u=new(!i&&l?d_:Sc)({shape:j({clockwise:c},r),z2:1});if(u.name="item",a){var h=u.shape,d=i?"r":"endAngle",f={};h[d]=i?0:r.startAngle,f[d]=r[d],(s?_u:Cu)(u,{shape:f},a)}return u}};function w_(e,t,n,r,i,a,o,s){var l,c;a?(c={x:r.x,width:r.width},l={y:r.y,height:r.height}):(c={y:r.y,height:r.height},l={x:r.x,width:r.width}),s||(o?_u:Cu)(n,{shape:l},t,i,null);var u=t?e.baseAxis.model:null;(o?_u:Cu)(n,{shape:c},u,i)}var x_={cartesian2d:function(e,t,n){var r=e.getItemLayout(t),i=n?function(e,t){var n=e.get(f_)||0,r=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),i=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(n,r,i)}(n,r):0,a=r.width>0?1:-1,o=r.height>0?1:-1;return{x:r.x+a*i/2,y:r.y+o*i/2,width:r.width-a*i,height:r.height-o*i}},polar:function(e,t,n){var r=e.getItemLayout(t);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle}}};function __(e,t,n,r,i,a,o,s){var l=t.getItemVisual(n,"style");s||e.setShape("r",r.get(p_)||0),e.useStyle(l);var c=r.getShallow("cursor");if(c&&e.attr("cursor",c),!s){var u=o?i.height>0?"bottom":"top":i.width>0?"left":"right",h=Vu(r);zu(e,h,{labelFetcher:a,labelDataIndex:n,defaultText:Cx(a.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:u}),Zu(e.getTextContent(),h,a.getRawValue(n),function(e){return Sx(t,e)})}var d=r.getModel(["emphasis"]);Ml(e,d.get("focus"),d.get("blurScope")),Ol(e,r),function(e){return null!=e.startAngle&&null!=e.endAngle&&e.startAngle===e.endAngle}(i)&&(e.style.fill="none",e.style.stroke="none",q(e.states,function(e){e.style&&(e.style.fill=e.style.stroke="none")}))}var C_=function(){return function(){}}(),S_=function(e){function t(t){var n=e.call(this,t)||this;return n.type="largeBar",n}return g(t,e),t.prototype.getDefaultShape=function(){return new C_},t.prototype.buildPath=function(e,t){for(var n=t.points,r=this.__startPoint,i=this.__baseDimIdx,a=0;a<n.length;a+=2)r[i]=n[a+i],e.moveTo(r[0],r[1]),e.lineTo(n[a],n[a+1])},t}(vs);function k_(e,t,n){var r=e.getData(),i=[],a=r.getLayout("valueAxisHorizontal")?1:0;i[1-a]=r.getLayout("valueAxisStart");var o=r.getLayout("largeDataIndices"),s=r.getLayout("barWidth"),l=e.getModel("backgroundStyle");if(e.get("showBackground",!0)){var c=r.getLayout("largeBackgroundPoints"),u=[];u[1-a]=r.getLayout("backgroundStart");var h=new S_({shape:{points:c},incremental:!!n,silent:!0,z2:0});h.__startPoint=u,h.__baseDimIdx=a,h.__largeDataIndices=o,h.__barWidth=s,function(e,t,n){var r=t.get("borderColor")||t.get("color"),i=t.getItemStyle();e.useStyle(i),e.style.fill=null,e.style.stroke=r,e.style.lineWidth=n.getLayout("barWidth")}(h,l,r),t.add(h)}var d=new S_({shape:{points:r.getLayout("largePoints")},incremental:!!n});d.__startPoint=i,d.__baseDimIdx=a,d.__largeDataIndices=o,d.__barWidth=s,t.add(d),function(e,t,n){var r=n.getVisual("style");e.useStyle(H({},r)),e.style.fill=null,e.style.stroke=r.fill,e.style.lineWidth=n.getLayout("barWidth")}(d,0,r),Gs(d).seriesIndex=e.seriesIndex,e.get("silent")||(d.on("mousedown",B_),d.on("mousemove",B_))}var B_=yA(function(e){var t=function(e,t,n){var r=e.__baseDimIdx,i=1-r,a=e.shape.points,o=e.__largeDataIndices,s=Math.abs(e.__barWidth/2),l=e.__startPoint[i];A_[0]=t,A_[1]=n;for(var c=A_[r],u=A_[1-r],h=c-s,d=c+s,f=0,p=a.length/2;f<p;f++){var A=2*f,g=a[A+r],m=a[A+i];if(g>=h&&g<=d&&(l<=m?u>=l&&u<=m:u>=m&&u<=l))return o[f]}return-1}(this,e.offsetX,e.offsetY);Gs(this).dataIndex=t>=0?t:null},30,!1);function E_(e,t,n){if(Wx(n,"cartesian2d")){var r=t,i=n.getArea();return{x:e?r.x:i.x,y:e?i.y:r.y,width:e?r.width:i.width,height:e?i.height:r.height}}var a=t;return{cx:(i=n.getArea()).cx,cy:i.cy,r0:e?i.r0:a.r0,r:e?i.r:a.r,startAngle:e?a.startAngle:0,endAngle:e?a.endAngle:2*Math.PI}}var T_=v_;var I_=2*Math.PI,M_=Math.PI/180;function F_(e,t,n){t.eachSeriesByType(e,function(e){var t=e.getData(),r=t.mapDimension("value"),i=function(e,t){return yd(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}(e,n),a=e.get("center"),o=e.get("radius");te(o)||(o=[0,o]),te(a)||(a=[a,a]);var s=mi(i.width,n.getWidth()),l=mi(i.height,n.getHeight()),c=Math.min(s,l),u=mi(a[0],s)+i.x,h=mi(a[1],l)+i.y,d=mi(o[0],c/2),f=mi(o[1],c/2),p=-e.get("startAngle")*M_,A=e.get("minAngle")*M_,g=0;t.each(r,function(e){!isNaN(e)&&g++});var m=t.getSum(r),v=Math.PI/(m||g)*2,y=e.get("clockwise"),b=e.get("roseType"),w=e.get("stillShowZeroSum"),x=t.getDataExtent(r);x[0]=0;var _=I_,C=0,S=p,k=y?1:-1;if(t.setLayout({viewRect:i,r:f}),t.each(r,function(e,n){var r;if(isNaN(e))t.setItemLayout(n,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:y,cx:u,cy:h,r0:d,r:b?NaN:f});else{(r="area"!==b?0===m&&w?v:e*v:I_/g)<A?(r=A,_-=A):C+=e;var i=S+k*r;t.setItemLayout(n,{angle:r,startAngle:S,endAngle:i,clockwise:y,cx:u,cy:h,r0:d,r:b?gi(e,x,[d,f]):f}),S=i}}),_<I_&&g)if(_<=.001){var B=I_/g;t.each(r,function(e,n){if(!isNaN(e)){var r=t.getItemLayout(n);r.angle=B,r.startAngle=p+k*n*B,r.endAngle=p+k*(n+1)*B}})}else v=_/C,S=p,t.each(r,function(e,n){if(!isNaN(e)){var r=t.getItemLayout(n),i=r.angle===A?A:e*v;r.startAngle=S,r.endAngle=S+k*i,S+=k*i}})})}function D_(e){return{seriesType:e,reset:function(e,t){var n=t.findComponents({mainType:"legend"});if(n&&n.length){var r=e.getData();r.filterSelf(function(e){for(var t=r.getName(e),i=0;i<n.length;i++)if(!n[i].isSelected(t))return!1;return!0})}}}}var P_=Math.PI/180;function O_(e,t,n,r,i,a,o,s,l,c){if(!(e.length<2)){for(var u=e.length,h=0;h<u;h++)if("outer"===e[h].position&&"labelLine"===e[h].labelAlignTo){var d=e[h].label.x-c;e[h].linePoints[1][0]+=d,e[h].label.x=c}Mg(e,l,l+o)&&function(e){for(var a={list:[],maxY:0},o={list:[],maxY:0},s=0;s<e.length;s++)if("none"===e[s].labelAlignTo){var l=e[s],c=l.label.y>n?o:a,u=Math.abs(l.label.y-n);if(u>c.maxY){var h=l.label.x-t-l.len2*i,d=r+l.len,p=Math.abs(h)<d?Math.sqrt(u*u/(1-h*h/d/d)):d;c.rB=p,c.maxY=u}c.list.push(l)}f(a),f(o)}(e)}function f(e){for(var a=e.rB,o=a*a,s=0;s<e.list.length;s++){var l=e.list[s],c=Math.abs(l.label.y-n),u=r+l.len,h=u*u,d=Math.sqrt((1-Math.abs(c*c/o))*h);l.label.x=t+(d+l.len2)*i}}}function L_(e){return"center"===e.position}function R_(e){var t,n,r=e.getData(),i=[],a=!1,o=(e.get("minShowLabelAngle")||0)*P_,s=r.getLayout("viewRect"),l=r.getLayout("r"),c=s.width,u=s.x,h=s.y,d=s.height;function f(e){e.ignore=!0}r.each(function(e){var s=r.getItemGraphicEl(e),h=s.shape,d=s.getTextContent(),p=s.getTextGuideLine(),A=r.getItemModel(e),g=A.getModel("label"),m=g.get("position")||A.get(["emphasis","label","position"]),v=g.get("distanceToLabelLine"),y=g.get("alignTo"),b=mi(g.get("edgeDistance"),c),w=g.get("bleedMargin"),x=A.getModel("labelLine"),_=x.get("length");_=mi(_,c);var C=x.get("length2");if(C=mi(C,c),Math.abs(h.endAngle-h.startAngle)<o)return q(d.states,f),void(d.ignore=!0);if(function(e){if(!e.ignore)return!0;for(var t in e.states)if(!1===e.states[t].ignore)return!0;return!1}(d)){var S,k,B,E,T=(h.startAngle+h.endAngle)/2,I=Math.cos(T),M=Math.sin(T);t=h.cx,n=h.cy;var F,D="inside"===m||"inner"===m;if("center"===m)S=h.cx,k=h.cy,E="center";else{var P=(D?(h.r+h.r0)/2*I:h.r*I)+t,O=(D?(h.r+h.r0)/2*M:h.r*M)+n;if(S=P+3*I,k=O+3*M,!D){var L=P+I*(_+l-h.r),R=O+M*(_+l-h.r),N=L+(I<0?-1:1)*C;S="edge"===y?I<0?u+b:u+c-b:N+(I<0?-v:v),k=R,B=[[P,O],[L,R],[N,R]]}E=D?"center":"edge"===y?I>0?"right":"left":I>0?"left":"right"}var U=g.get("rotate");if(F="number"==typeof U?U*(Math.PI/180):U?I<0?-T+Math.PI:-T:0,a=!!F,d.x=S,d.y=k,d.rotation=F,d.setStyle({verticalAlign:"middle"}),D){d.setStyle({align:E});var H=d.states.select;H&&(H.x+=d.x,H.y+=d.y)}else{var j=d.getBoundingRect().clone();j.applyTransform(d.getComputedTransform());var Q=(d.style.margin||0)+2.1;j.y-=Q/2,j.height+=Q,i.push({label:d,labelLine:p,position:m,len:_,len2:C,minTurnAngle:x.get("minTurnAngle"),maxSurfaceAngle:x.get("maxSurfaceAngle"),surfaceNormal:new $n(I,M),linePoints:B,textAlign:E,labelDistance:v,labelAlignTo:y,edgeDistance:b,bleedMargin:w,rect:j})}s.setTextConfig({inside:D})}}),!a&&e.get("avoidLabelOverlap")&&function(e,t,n,r,i,a,o,s){for(var l=[],c=[],u=Number.MAX_VALUE,h=-Number.MAX_VALUE,d=0;d<e.length;d++){var f=e[d].label;L_(e[d])||(f.x<t?(u=Math.min(u,f.x),l.push(e[d])):(h=Math.max(h,f.x),c.push(e[d])))}for(O_(c,t,n,r,1,0,a,0,s,h),O_(l,t,n,r,-1,0,a,0,s,u),d=0;d<e.length;d++){var p=e[d];if(f=p.label,!L_(p)){var A=p.linePoints;if(A){var g="edge"===p.labelAlignTo,m=p.rect.width,v=void 0;(v=g?f.x<t?A[2][0]-p.labelDistance-o-p.edgeDistance:o+i-p.edgeDistance-A[2][0]-p.labelDistance:f.x<t?f.x-o-p.bleedMargin:o+i-f.x-p.bleedMargin)<p.rect.width&&(p.label.style.width=v,"edge"===p.labelAlignTo&&(m=v));var y=A[1][0]-A[2][0];g?f.x<t?A[2][0]=o+p.edgeDistance+m+p.labelDistance:A[2][0]=o+i-p.edgeDistance-m-p.labelDistance:(f.x<t?A[2][0]=f.x+p.labelDistance:A[2][0]=f.x-p.labelDistance,A[1][0]=A[2][0]+y),A[1][1]=A[2][1]=f.y}}}}(i,t,n,l,c,d,u,h);for(var p=0;p<i.length;p++){var A=i[p],g=A.label,m=A.labelLine,v=isNaN(g.x)||isNaN(g.y);if(g){g.setStyle({align:A.textAlign}),v&&(q(g.states,f),g.ignore=!0);var y=g.states.select;y&&(y.x+=g.x,y.y+=g.y)}if(m){var b=A.linePoints;v||!b?(q(m.states,f),m.ignore=!0):(Cg(b,A.minTurnAngle),Sg(b,A.surfaceNormal,A.maxSurfaceAngle),m.setShape({points:b}),g.__hostTarget.textGuideLineConfig={anchor:new $n(b[0][0],b[0][1])})}}}function N_(e,t){var n=e.get("borderRadius");return null==n?null:(te(n)||(n=[n,n]),{innerCornerRadius:hr(n[0],t.r0),cornerRadius:hr(n[1],t.r)})}var U_=function(e){function t(t,n,r){var i=e.call(this)||this;i.z2=2;var a=new Lc,o=new Vs;return i.setTextGuideLine(a),i.setTextContent(o),i.updateData(t,n,r,!0),i}return g(t,e),t.prototype.updateData=function(e,t,n,r){var i=e.hostModel,a=e.getItemModel(t),o=a.getModel("emphasis"),s=e.getItemLayout(t),l=H(N_(a.getModel("itemStyle"),s)||{},s);r?(this.setShape(l),"scale"===i.getShallow("animationType")?(this.shape.r=s.r0,Cu(this,{shape:{r:s.r}},i,t)):null!=n?(this.setShape({startAngle:n,endAngle:n}),Cu(this,{shape:{startAngle:s.startAngle,endAngle:s.endAngle}},i,t)):(this.shape.endAngle=s.startAngle,_u(this,{shape:{endAngle:s.endAngle}},i,t))):_u(this,{shape:l},i,t);this.useStyle(e.getItemVisual(t,"style")),Ol(this,a);var c=(s.startAngle+s.endAngle)/2,u=i.get("selectedOffset"),h=Math.cos(c)*u,d=Math.sin(c)*u,f=a.getShallow("cursor");f&&this.attr("cursor",f),this._updateLabel(i,e,t),this.ensureState("emphasis").shape=m({r:s.r+(o.get("scale")&&o.get("scaleSize")||0)},N_(o.getModel("itemStyle"),s)),H(this.ensureState("select"),{x:h,y:d,shape:N_(a.getModel(["select","itemStyle"]),s)}),H(this.ensureState("blur"),{shape:N_(a.getModel(["blur","itemStyle"]),s)});var p=this.getTextGuideLine(),A=this.getTextContent();p&&H(p.ensureState("select"),{x:h,y:d}),H(A.ensureState("select"),{x:h,y:d}),Ml(this,o.get("focus"),o.get("blurScope"))},t.prototype._updateLabel=function(e,t,n){var r,i=t.getItemModel(n),a=i.getModel("labelLine"),o=t.getItemVisual(n,"style"),s=o&&o.fill,l=o&&o.opacity;zu(this,Vu(i),{labelFetcher:t.hostModel,labelDataIndex:n,inheritColor:s,defaultOpacity:l,defaultText:e.getFormattedLabel(n,"normal")||t.getName(n)});var c=this.getTextContent();this.setTextConfig({position:null,rotation:null}),c.attr({z2:10});var u=e.get(["label","position"]);"outside"===u||"outer"===u?Eg(this,Tg(i),{stroke:s,opacity:ge(a.get(["lineStyle","opacity"]),l,1)}):null===(r=this.getTextGuideLine())||void 0===r||r.hide()},t}(Sc),H_=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ignoreLabelLineUpdate=!0,t}return g(t,e),t.prototype.init=function(){var e=new ii;this._sectorGroup=e},t.prototype.render=function(e,t,n,r){var i,a=e.getData(),o=this._data,s=this.group;if(!o&&a.count()>0){for(var l=a.getItemLayout(0),c=1;isNaN(l&&l.startAngle)&&c<a.count();++c)l=a.getItemLayout(c);l&&(i=l.startAngle)}a.diff(o).add(function(e){var t=new U_(a,e,i);a.setItemGraphicEl(e,t),s.add(t)}).update(function(e,t){var n=o.getItemGraphicEl(t);n.updateData(a,e,i),n.off("click"),s.add(n),a.setItemGraphicEl(e,n)}).remove(function(t){Bu(o.getItemGraphicEl(t),e,t)}).execute(),R_(e),"expansion"!==e.get("animationTypeUpdate")&&(this._data=a)},t.prototype.dispose=function(){},t.prototype.containPoint=function(e,t){var n=t.getData().getItemLayout(0);if(n){var r=e[0]-n.cx,i=e[1]-n.cy,a=Math.sqrt(r*r+i*i);return a<=n.r&&a>=n.r0}},t.type="pie",t}(AA);function j_(e,t,n){t=te(t)&&{coordDimensions:t}||H({},t);var r=e.getSource(),i=Ly(r,t),a=new Dy(i,e);return a.initData(r,n),a}var Q_=function(){function e(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return e.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},e.prototype.containName=function(e){return this._getRawData().indexOfName(e)>=0},e.prototype.indexOfName=function(e){return this._getDataWithEncodedVisual().indexOfName(e)},e.prototype.getItemVisual=function(e,t){return this._getDataWithEncodedVisual().getItemVisual(e,t)},e}(),z_=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.useColorPaletteOnData=!0,t}return g(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new Q_(Z(this.getData,this),Z(this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return j_(this,{coordDimensions:["value"],encodeDefaulter:ee(zd,this)})},t.prototype.getDataParams=function(t){var n=this.getData(),r=e.prototype.getDataParams.call(this,t),i=[];return n.each(n.mapDimension("value"),function(e){i.push(e)}),r.percent=_i(i,t,n.hostModel.get("percentPrecision")),r.$vars.push("percent"),r},t.prototype._defaultLabelLine=function(e){zi(e,"labelLine",["show"]);var t=e.labelLine,n=e.emphasis.labelLine;t.show=t.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.type="series.pie",t.defaultOption={zlevel:0,z:2,legendHoverLink:!0,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(rA);var V_=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return g(t,e),t.prototype.getInitialData=function(e,t){return zy(this.getSource(),this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var e=this.option.progressive;return null==e?this.option.large?5e3:this.get("progressive"):e},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return null==e?this.option.large?1e4:this.get("progressiveThreshold"):e},t.prototype.brushSelector=function(e,t,n){return n.point(t.getItemLayout(e))},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}}},t}(rA),G_=function(){return function(){}}(),$_=function(e){function t(t){return e.call(this,t)||this}return g(t,e),t.prototype.getDefaultShape=function(){return new G_},t.prototype.buildPath=function(e,t){var n=t.points,r=t.size,i=this.symbolProxy,a=i.shape,o=e.getContext?e.getContext():e;if(o&&r[0]<4)this._ctx=o;else{this._ctx=null;for(var s=0;s<n.length;){var l=n[s++],c=n[s++];isNaN(l)||isNaN(c)||(this.softClipShape&&!this.softClipShape.contain(l,c)||(a.x=l-r[0]/2,a.y=c-r[1]/2,a.width=r[0],a.height=r[1],i.buildPath(e,a,!0)))}}},t.prototype.afterBrush=function(){var e=this.shape,t=e.points,n=e.size,r=this._ctx;if(r)for(var i=0;i<t.length;){var a=t[i++],o=t[i++];isNaN(a)||isNaN(o)||(this.softClipShape&&!this.softClipShape.contain(a,o)||r.fillRect(a-n[0]/2,o-n[1]/2,n[0],n[1]))}},t.prototype.findDataIndex=function(e,t){for(var n=this.shape,r=n.points,i=n.size,a=Math.max(i[0],4),o=Math.max(i[1],4),s=r.length/2-1;s>=0;s--){var l=2*s,c=r[l]-a/2,u=r[l+1]-o/2;if(e>=c&&t>=u&&e<=c+a&&t<=u+o)return s}return-1},t}(vs),q_=function(){function e(){this.group=new ii}return e.prototype.isPersistent=function(){return!this._incremental},e.prototype.updateData=function(e,t){this.group.removeAll();var n=new $_({rectHover:!0,cursor:"default"});n.setShape({points:e.getLayout("points")}),this._setCommon(n,e,!1,t),this.group.add(n),this._incremental=null},e.prototype.updateLayout=function(e){if(!this._incremental){var t=e.getLayout("points");this.group.eachChild(function(e){if(null!=e.startIndex){var n=2*(e.endIndex-e.startIndex),r=4*e.startIndex*2;t=new Float32Array(t.buffer,r,n)}e.setShape("points",t)})}},e.prototype.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clearIncremental(),e.count()>2e6?(this._incremental||(this._incremental=new au({silent:!0})),this.group.add(this._incremental)):this._incremental=null},e.prototype.incrementalUpdate=function(e,t,n){var r;this._incremental?(r=new $_,this._incremental.addDisplayable(r,!0)):((r=new $_({rectHover:!0,cursor:"default",startIndex:e.start,endIndex:e.end})).incremental=!0,this.group.add(r)),r.setShape({points:t.getLayout("points")}),this._setCommon(r,t,!!this._incremental,n)},e.prototype._setCommon=function(e,t,n,r){var i=t.hostModel;r=r||{};var a=t.getVisual("symbolSize");e.setShape("size",a instanceof Array?a:[a,a]),e.softClipShape=r.clipShape||null,e.symbolProxy=Zg(t.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var o=e.shape.size[0]<4;e.useStyle(i.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var s=t.getVisual("style"),l=s&&s.fill;if(l&&e.setColor(l),!n){var c=Gs(e);c.seriesIndex=i.seriesIndex,e.on("mousemove",function(t){c.dataIndex=null;var n=e.findDataIndex(t.offsetX,t.offsetY);n>=0&&(c.dataIndex=n+(e.startIndex||0))})}},e.prototype.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},e.prototype._clearIncremental=function(){var e=this._incremental;e&&e.clearDisplaybles()},e}(),W_=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.prototype.render=function(e,t,n){var r=e.getData();this._updateSymbolDraw(r,e).updateData(r,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,n){var r=e.getData();this._updateSymbolDraw(r,e).incrementalPrepareUpdate(r),this._finished=!1},t.prototype.incrementalRender=function(e,t,n){this._symbolDraw.incrementalUpdate(e,t.getData(),{clipShape:this._getClipShape(t)}),this._finished=e.end===t.getData().count()},t.prototype.updateTransform=function(e,t,n){var r=e.getData();if(this.group.dirty(),!this._finished||r.count()>1e4||!this._symbolDraw.isPersistent())return{update:!0};var i=i_("").reset(e,t,n);i.progress&&i.progress({start:0,end:r.count(),count:r.count()},r),this._symbolDraw.updateLayout(r)},t.prototype._getClipShape=function(e){var t=e.coordinateSystem,n=t&&t.getArea&&t.getArea();return e.get("clip",!0)?n:null},t.prototype._updateSymbolDraw=function(e,t){var n=this._symbolDraw,r=t.pipelineContext.large;return n&&r===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=r?new q_:new Mx,this._isLargeDraw=r,this.group.removeAll()),this.group.add(n.group),n},t.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(AA),K_=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return g(t,e),t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,zlevel:0,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(Bd),Y_=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return g(t,e),t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",na).models[0]},t.type="cartesian2dAxis",t}(Bd);G(Y_,Jb);var X_={show:!0,zlevel:0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},J_=N({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},X_),Z_=N({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},X_),eC={category:J_,value:Z_,time:N({scale:!0,splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Z_),log:j({scale:!0,logBase:10},Z_)},tC={value:1,category:1,time:1,log:1};function nC(e,t,n,r){q(tC,function(i,a){var o=N(N({},eC[a],!0),r,!0),s=function(e){function n(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=e.apply(this,n)||this;return i.type=t+"Axis."+a,i}return g(n,e),n.prototype.mergeDefaultAndTheme=function(e,t){var n=wd(this),r=n?_d(e):{};N(e,t.getTheme().get(a+"Axis")),N(e,this.getDefaultOption()),e.type=rC(e),n&&xd(e,r,n)},n.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=qy.createByAxisModel(this))},n.prototype.getCategories=function(e){var t=this.option;if("category"===t.type)return e?t.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.type=t+"Axis."+a,n.defaultOption=o,n}(n);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+"Axis",rC)}function rC(e){return e.type||(e.data?"category":"value")}var iC=["x","y"];function aC(e){return"interval"===e.type||"time"===e.type}var oC=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=iC,t}return g(t,e),t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,t=this.getAxis("y").scale;if(aC(e)&&aC(t)){var n=e.getExtent(),r=t.getExtent(),i=this.dataToPoint([n[0],r[0]]),a=this.dataToPoint([n[1],r[1]]),o=n[1]-n[0],s=r[1]-r[0];if(o&&s){var l=(a[0]-i[0])/o,c=(a[1]-i[1])/s,u=i[0]-n[0]*l,h=i[1]-r[0]*c,d=this._transform=[l,0,0,c,u,h];this._invTransform=Qt([],d)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var t=this.getAxis("x"),n=this.getAxis("y");return t.contain(t.toLocalCoord(e[0]))&&n.contain(n.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.dataToPoint=function(e,t,n){n=n||[];var r=e[0],i=e[1];if(this._transform&&null!=r&&isFinite(r)&&null!=i&&isFinite(i))return et(n,e,this._transform);var a=this.getAxis("x"),o=this.getAxis("y");return n[0]=a.toGlobalCoord(a.dataToCoord(r)),n[1]=o.toGlobalCoord(o.dataToCoord(i)),n},t.prototype.clampData=function(e,t){var n=this.getAxis("x").scale,r=this.getAxis("y").scale,i=n.getExtent(),a=r.getExtent(),o=n.parse(e[0]),s=r.parse(e[1]);return(t=t||[])[0]=Math.min(Math.max(Math.min(i[0],i[1]),o),Math.max(i[0],i[1])),t[1]=Math.min(Math.max(Math.min(a[0],a[1]),s),Math.max(a[0],a[1])),t},t.prototype.pointToData=function(e,t){if(t=t||[],this._invTransform)return et(t,e,this._invTransform);var n=this.getAxis("x"),r=this.getAxis("y");return t[0]=n.coordToData(n.toLocalCoord(e[0])),t[1]=r.coordToData(r.toLocalCoord(e[1])),t},t.prototype.getOtherAxis=function(e){return this.getAxis("x"===e.dim?"y":"x")},t.prototype.getArea=function(){var e=this.getAxis("x").getGlobalExtent(),t=this.getAxis("y").getGlobalExtent(),n=Math.min(e[0],e[1]),r=Math.min(t[0],t[1]),i=Math.max(e[0],e[1])-n,a=Math.max(t[0],t[1])-r;return new tr(n,r,i,a)},t}(function(){function e(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return e.prototype.getAxis=function(e){return this._axes[e]},e.prototype.getAxes=function(){return W(this._dimList,function(e){return this._axes[e]},this)},e.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),Y(this.getAxes(),function(t){return t.scale.type===e})},e.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},e}()),sC=function(e){function t(t,n,r,i,a){var o=e.call(this,t,n,r)||this;return o.index=0,o.type=i||"value",o.position=a||"bottom",o}return g(t,e),t.prototype.isHorizontal=function(){var e=this.position;return"top"===e||"bottom"===e},t.prototype.getGlobalExtent=function(e){var t=this.getExtent();return t[0]=this.toGlobalCoord(t[0]),t[1]=this.toGlobalCoord(t[1]),e&&t[0]>t[1]&&t.reverse(),t},t.prototype.pointToData=function(e,t){return this.coordToData(this.toLocalCoord(e["x"===this.dim?0:1]),t)},t.prototype.setCategorySortInfo=function(e){if("category"!==this.type)return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(ww);function lC(e,t,n){n=n||{};var r=e.coordinateSystem,i=t.axis,a={},o=i.getAxesOnZeroOf()[0],s=i.position,l=o?"onZero":s,c=i.dim,u=r.getRect(),h=[u.x,u.x+u.width,u.y,u.y+u.height],d={left:0,right:1,top:0,bottom:1,onZero:2},f=t.get("offset")||0,p="x"===c?[h[2]-f,h[3]+f]:[h[0]-f,h[1]+f];if(o){var A=o.toGlobalCoord(o.dataToCoord(0));p[d.onZero]=Math.max(Math.min(A,p[1]),p[0])}a.position=["y"===c?p[d[l]]:h[0],"x"===c?p[d[l]]:h[3]],a.rotation=Math.PI/2*("x"===c?0:1);a.labelDirection=a.tickDirection=a.nameDirection={top:-1,bottom:1,left:-1,right:1}[s],a.labelOffset=o?p[d[s]]-p[d.onZero]:0,t.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),pe(n.labelInside,t.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var g=t.get(["axisLabel","rotate"]);return a.labelRotate="top"===l?-g:g,a.z2=1,a}function cC(e){return"cartesian2d"===e.get("coordinateSystem")}function uC(e){var t={xAxisModel:null,yAxisModel:null};return q(t,function(n,r){var i=r.replace(/Model$/,""),a=e.getReferringComponents(i,na).models[0];t[r]=a}),t}function hC(e,t){return e.getCoordSysModel()===t}function dC(e,t,n,r){n.getAxesOnZeroOf=function(){return i?[i]:[]};var i,a=e[t],o=n.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(s){if(null!=l)fC(a[l])&&(i=a[l]);else for(var c in a)if(a.hasOwnProperty(c)&&fC(a[c])&&!r[u(a[c])]){i=a[c];break}i&&(r[u(i)]=!0)}function u(e){return e.dim+"_"+e.index}}function fC(e){return e&&"category"!==e.type&&"time"!==e.type&&function(e){var t=e.scale.getExtent(),n=t[0],r=t[1];return!(n>0&&r>0||n<0&&r<0)}(e)}var pC=function(){function e(e,t,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=iC,this._initCartesian(e,t,n),this.model=e}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(e,t){var n=this._axesMap;this._updateScale(e,this.model),q(n.x,function(e){Gb(e.scale,e.model)}),q(n.y,function(e){Gb(e.scale,e.model)});var r={};q(n.x,function(e){dC(n,"y",e,r)}),q(n.y,function(e){dC(n,"x",e,r)}),this.resize(this.model,t)},e.prototype.resize=function(e,t,n){var r=e.getBoxLayoutParams(),i=!n&&e.get("containLabel"),a=yd(r,{width:t.getWidth(),height:t.getHeight()});this._rect=a;var o=this._axesList;function s(){q(o,function(e){var t=e.isHorizontal(),n=t?[0,a.width]:[0,a.height],r=e.inverse?1:0;e.setExtent(n[r],n[1-r]),function(e,t){var n=e.getExtent(),r=n[0]+n[1];e.toGlobalCoord="x"===e.dim?function(e){return e+t}:function(e){return r-e+t},e.toLocalCoord="x"===e.dim?function(e){return e-t}:function(e){return r-e+t}}(e,t?a.x:a.y)})}s(),i&&(q(o,function(e){if(!e.model.get(["axisLabel","inside"])){var t=function(e){var t=e.model,n=e.scale;if(t.get(["axisLabel","show"])&&!n.isBlank()){var r,i,a=n.getExtent();i=n instanceof nb?n.count():(r=n.getTicks()).length;var o,s,l,c,u,h,d,f,p=e.getLabelModel(),A=qb(e),g=1;i>40&&(g=Math.ceil(i/40));for(var m=0;m<i;m+=g){var v=A(r?r[m]:{value:a[0]+m},m),y=p.getTextRect(v),b=(s=y,l=p.get("rotate")||0,c=l*Math.PI/180,u=s.width,h=s.height,d=u*Math.abs(Math.cos(c))+Math.abs(h*Math.sin(c)),f=u*Math.abs(Math.sin(c))+Math.abs(h*Math.cos(c)),new tr(s.x,s.y,d,f));o?o.union(b):o=b}return o}}(e);if(t){var n=e.isHorizontal()?"height":"width",r=e.model.get(["axisLabel","margin"]);a[n]-=t[n]+r,"top"===e.position?a.y+=t.height+r:"left"===e.position&&(a.x+=t.width+r)}}}),s()),q(this._coordsList,function(e){e.calcAffineTransform()})},e.prototype.getAxis=function(e,t){var n=this._axesMap[e];if(null!=n)return n[t||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(e,t){if(null!=e&&null!=t){var n="x"+e+"y"+t;return this._coordsMap[n]}oe(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var r=0,i=this._coordsList;r<i.length;r++)if(i[r].getAxis("x").index===e||i[r].getAxis("y").index===t)return i[r]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(e,t,n){var r=this._findConvertTarget(t);return r.cartesian?r.cartesian.dataToPoint(n):r.axis?r.axis.toGlobalCoord(r.axis.dataToCoord(n)):null},e.prototype.convertFromPixel=function(e,t,n){var r=this._findConvertTarget(t);return r.cartesian?r.cartesian.pointToData(n):r.axis?r.axis.coordToData(r.axis.toLocalCoord(n)):null},e.prototype._findConvertTarget=function(e){var t,n,r=e.seriesModel,i=e.xAxisModel||r&&r.getReferringComponents("xAxis",na).models[0],a=e.yAxisModel||r&&r.getReferringComponents("yAxis",na).models[0],o=e.gridModel,s=this._coordsList;if(r)z(s,t=r.coordinateSystem)<0&&(t=null);else if(i&&a)t=this.getCartesian(i.componentIndex,a.componentIndex);else if(i)n=this.getAxis("x",i.componentIndex);else if(a)n=this.getAxis("y",a.componentIndex);else if(o){o.coordinateSystem===this&&(t=this._coordsList[0])}return{cartesian:t,axis:n}},e.prototype.containPoint=function(e){var t=this._coordsList[0];if(t)return t.containPoint(e)},e.prototype._initCartesian=function(e,t,n){var r=this,i=this,a={left:!1,right:!1,top:!1,bottom:!1},o={x:{},y:{}},s={x:0,y:0};if(t.eachComponent("xAxis",l("x"),this),t.eachComponent("yAxis",l("y"),this),!s.x||!s.y)return this._axesMap={},void(this._axesList=[]);function l(t){return function(n,r){if(hC(n,e)){var l=n.get("position");"x"===t?"top"!==l&&"bottom"!==l&&(l=a.bottom?"top":"bottom"):"left"!==l&&"right"!==l&&(l=a.left?"right":"left"),a[l]=!0;var c=new sC(t,$b(n),[0,0],n.get("type"),l),u="category"===c.type;c.onBand=u&&n.get("boundaryGap"),c.inverse=n.get("inverse"),n.axis=c,c.model=n,c.grid=i,c.index=r,i._axesList.push(c),o[t][r]=c,s[t]++}}}this._axesMap=o,q(o.x,function(t,n){q(o.y,function(i,a){var o="x"+n+"y"+a,s=new oC(o);s.master=r,s.model=e,r._coordsMap[o]=s,r._coordsList.push(s),s.addAxis(t),s.addAxis(i)})})},e.prototype._updateScale=function(e,t){function n(e,t){q(Xb(e,t.dim),function(n){t.scale.unionExtentFromData(e,n)})}q(this._axesList,function(e){if(e.scale.setExtent(1/0,-1/0),"category"===e.type){var t=e.model.get("categorySortInfo");e.scale.setSortInfo(t)}}),e.eachSeries(function(e){if(cC(e)){var r=uC(e),i=r.xAxisModel,a=r.yAxisModel;if(!hC(i,t)||!hC(a,t))return;var o=this.getCartesian(i.componentIndex,a.componentIndex),s=e.getData(),l=o.getAxis("x"),c=o.getAxis("y");"list"===s.type&&(n(s,l),n(s,c))}},this)},e.prototype.getTooltipAxes=function(e){var t=[],n=[];return q(this.getCartesians(),function(r){var i=null!=e&&"auto"!==e?r.getAxis(e):r.getBaseAxis(),a=r.getOtherAxis(i);z(t,i)<0&&t.push(i),z(n,a)<0&&n.push(a)}),{baseAxes:t,otherAxes:n}},e.create=function(t,n){var r=[];return t.eachComponent("grid",function(i,a){var o=new e(i,t,n);o.name="grid_"+a,o.resize(i,n,!0),i.coordinateSystem=o,r.push(o)}),t.eachSeries(function(e){if(cC(e)){var t=uC(e),n=t.xAxisModel,r=t.yAxisModel,i=n.getCoordSysModel();0;var a=i.coordinateSystem;e.coordinateSystem=a.getCartesian(n.componentIndex,r.componentIndex)}}),r},e.dimensions=iC,e}(),AC=Math.PI,gC=function(){function e(e,t){this.group=new ii,this.opt=t,this.axisModel=e,j(t,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new ii({x:t.position[0],y:t.position[1],rotation:t.rotation});n.updateTransform(),this._transformGroup=n}return e.prototype.hasBuilder=function(e){return!!mC[e]},e.prototype.add=function(e){mC[e](this.opt,this.axisModel,this.group,this._transformGroup)},e.prototype.getGroup=function(){return this.group},e.innerTextLayout=function(e,t,n){var r,i,a=Si(t-e);return ki(a)?(i=n>0?"top":"bottom",r="center"):ki(a-AC)?(i=n>0?"bottom":"top",r="center"):(i="middle",r=a>0&&a<AC?n>0?"right":"left":n>0?"left":"right"),{rotation:a,textAlign:r,textVerticalAlign:i}},e.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},e.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},e}(),mC={axisLine:function(e,t,n,r){var i=t.get(["axisLine","show"]);if("auto"===i&&e.handleAutoShown&&(i=e.handleAutoShown("axisLine")),i){var a=t.axis.getExtent(),o=r.transform,s=[a[0],0],l=[a[1],0];o&&(et(s,s,o),et(l,l,o));var c=H({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),u=new Hc({subPixelOptimize:!0,shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});u.anid="line",n.add(u);var h=t.get(["axisLine","symbol"]),d=t.get(["axisLine","symbolSize"]),f=t.get(["axisLine","symbolOffset"])||0;if("number"==typeof f&&(f=[f,f]),null!=h){"string"==typeof h&&(h=[h,h]),"string"!=typeof d&&"number"!=typeof d||(d=[d,d]);var p=d[0],A=d[1];q([{rotate:e.rotation+Math.PI/2,offset:f[0],r:0},{rotate:e.rotation-Math.PI/2,offset:f[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(t,r){if("none"!==h[r]&&null!=h[r]){var i=Zg(h[r],-p/2,-A/2,p,A,c.stroke,!0),a=t.r+t.offset;i.attr({rotation:t.rotate,x:s[0]+a*Math.cos(e.rotation),y:s[1]-a*Math.sin(e.rotation),silent:!0,z2:11}),n.add(i)}})}}},axisTickLabel:function(e,t,n,r){var i=function(e,t,n,r){var i=n.axis,a=n.getModel("axisTick"),o=a.get("show");"auto"===o&&r.handleAutoShown&&(o=r.handleAutoShown("axisTick"));if(!o||i.scale.isBlank())return;for(var s=a.getModel("lineStyle"),l=r.tickDirection*a.get("length"),c=wC(i.getTicksCoords(),t.transform,l,j(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),u=0;u<c.length;u++)e.add(c[u]);return c}(n,r,t,e);!function(e,t,n){if(Yb(e.axis))return;var r=e.get(["axisLabel","showMinLabel"]),i=e.get(["axisLabel","showMaxLabel"]);t=t||[],n=n||[];var a=t[0],o=t[1],s=t[t.length-1],l=t[t.length-2],c=n[0],u=n[1],h=n[n.length-1],d=n[n.length-2];!1===r?(vC(a),vC(c)):yC(a,o)&&(r?(vC(o),vC(u)):(vC(a),vC(c)));!1===i?(vC(s),vC(h)):yC(l,s)&&(i?(vC(l),vC(d)):(vC(s),vC(h)))}(t,function(e,t,n,r){var i=n.axis;if(!pe(r.axisLabelShow,n.get(["axisLabel","show"]))||i.scale.isBlank())return;var a=n.getModel("axisLabel"),o=a.get("margin"),s=i.getViewLabels(),l=(pe(r.labelRotate,a.get("rotate"))||0)*AC/180,c=gC.innerTextLayout(r.rotation,l,r.labelDirection),u=n.getCategories&&n.getCategories(!0),h=[],d=gC.isLabelSilent(n),f=n.get("triggerEvent");return q(s,function(s,l){var p="ordinal"===i.scale.type?i.scale.getRawOrdinalNumber(s.tickValue):s.tickValue,A=s.formattedLabel,g=s.rawLabel,m=a;if(u&&u[p]){var v=u[p];oe(v)&&v.textStyle&&(m=new fh(v.textStyle,a,n.ecModel))}var y=m.getTextColor()||n.get(["axisLine","lineStyle","color"]),b=i.dataToCoord(p),w=new Vs({x:b,y:r.labelOffset+r.labelDirection*o,rotation:c.rotation,silent:d,z2:10,style:Gu(m,{text:A,align:m.getShallow("align",!0)||c.textAlign,verticalAlign:m.getShallow("verticalAlign",!0)||m.getShallow("baseline",!0)||c.textVerticalAlign,fill:"function"==typeof y?y("category"===i.type?g:"value"===i.type?p+"":p,l):y})});if(w.anid="label_"+p,f){var x=gC.makeAxisEventDataBase(n);x.targetType="axisLabel",x.value=g,Gs(w).eventData=x}t.add(w),w.updateTransform(),h.push(w),e.add(w),w.decomposeTransform()}),h}(n,r,t,e),i),function(e,t,n,r){var i=n.axis,a=n.getModel("minorTick");if(!a.get("show")||i.scale.isBlank())return;var o=i.getMinorTicksCoords();if(!o.length)return;for(var s=a.getModel("lineStyle"),l=r*a.get("length"),c=j(s.getLineStyle(),j(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),u=0;u<o.length;u++)for(var h=wC(o[u],t.transform,l,c,"minorticks_"+u),d=0;d<h.length;d++)e.add(h[d])}(n,r,t,e.tickDirection)},axisName:function(e,t,n,r){var i=pe(e.axisName,t.get("name"));if(i){var a,o,s=t.get("nameLocation"),l=e.nameDirection,c=t.getModel("nameTextStyle"),u=t.get("nameGap")||0,h=t.axis.getExtent(),d=h[0]>h[1]?-1:1,f=["start"===s?h[0]-d*u:"end"===s?h[1]+d*u:(h[0]+h[1])/2,bC(s)?e.labelOffset+l*u:0],p=t.get("nameRotate");null!=p&&(p=p*AC/180),bC(s)?a=gC.innerTextLayout(e.rotation,null!=p?p:e.rotation,l):(a=function(e,t,n,r){var i,a,o=Si(n-e),s=r[0]>r[1],l="start"===t&&!s||"start"!==t&&s;ki(o-AC/2)?(a=l?"bottom":"top",i="center"):ki(o-1.5*AC)?(a=l?"top":"bottom",i="center"):(a="middle",i=o<1.5*AC&&o>AC/2?l?"left":"right":l?"right":"left");return{rotation:o,textAlign:i,textVerticalAlign:a}}(e.rotation,s,p||0,h),null!=(o=e.axisNameAvailableWidth)&&(o=Math.abs(o/Math.sin(a.rotation)),!isFinite(o)&&(o=null)));var A=c.getFont(),g=t.get("nameTruncate",!0)||{},m=g.ellipsis,v=pe(e.nameTruncateMaxWidth,g.maxWidth,o),y=t.get("tooltip",!0),b=t.mainType,w={componentType:b,name:i,$vars:["name"]};w[b+"Index"]=t.componentIndex;var x=new Vs({x:f[0],y:f[1],rotation:a.rotation,silent:gC.isLabelSilent(t),style:Gu(c,{text:i,font:A,overflow:"truncate",width:v,ellipsis:m,fill:c.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:c.get("align")||a.textAlign,verticalAlign:c.get("verticalAlign")||a.textVerticalAlign}),z2:1});if(x.tooltip=y&&y.show?H({content:i,formatter:function(){return i},formatterParams:w},y):null,x.__fullText=i,x.anid="name",t.get("triggerEvent")){var _=gC.makeAxisEventDataBase(t);_.targetType="axisName",_.name=i,Gs(x).eventData=_}r.add(x),x.updateTransform(),n.add(x),x.decomposeTransform()}}};function vC(e){e&&(e.ignore=!0)}function yC(e,t){var n=e&&e.getBoundingRect().clone(),r=t&&t.getBoundingRect().clone();if(n&&r){var i=Lt([]);return Ht(i,i,-e.rotation),n.applyTransform(Nt([],i,e.getLocalTransform())),r.applyTransform(Nt([],i,t.getLocalTransform())),n.intersect(r)}}function bC(e){return"middle"===e||"center"===e}function wC(e,t,n,r,i){for(var a=[],o=[],s=[],l=0;l<e.length;l++){var c=e[l].coord;o[0]=c,o[1]=0,s[0]=c,s[1]=n,t&&(et(o,o,t),et(s,s,t));var u=new Hc({subPixelOptimize:!0,shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:r,z2:2,autoBatch:!0,silent:!0});u.anid=i+"_"+e[l].tickValue,a.push(u)}return a}var xC=gC;function _C(e,t){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return function(e,t,n){var r=t.getComponent("tooltip"),i=t.getComponent("axisPointer"),a=i.get("link",!0)||[],o=[];q(n.getCoordinateSystems(),function(n){if(n.axisPointerEnabled){var s=BC(n.model),l=e.coordSysAxesInfo[s]={};e.coordSysMap[s]=n;var c=n.model,u=c.getModel("tooltip",r);if(q(n.getAxes(),ee(p,!1,null)),n.getTooltipAxes&&r&&u.get("show")){var h="axis"===u.get("trigger"),d="cross"===u.get(["axisPointer","type"]),f=n.getTooltipAxes(u.get(["axisPointer","axis"]));(h||d)&&q(f.baseAxes,ee(p,!d||"cross",h)),d&&q(f.otherAxes,ee(p,"cross",!1))}}function p(r,s,c){var h=c.model.getModel("axisPointer",i),d=h.get("show");if(d&&("auto"!==d||r||kC(h))){null==s&&(s=h.get("triggerTooltip"));var f=(h=r?function(e,t,n,r,i,a){var o=t.getModel("axisPointer"),s={};q(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(e){s[e]=R(o.get(e))}),s.snap="category"!==e.type&&!!a,"cross"===o.get("type")&&(s.type="line");var l=s.label||(s.label={});if(null==l.show&&(l.show=!1),"cross"===i){var c=o.get(["label","show"]);if(l.show=null==c||c,!a){var u=s.lineStyle=o.get("crossStyle");u&&j(l,u.textStyle)}}return e.model.getModel("axisPointer",new fh(s,n,r))}(c,u,i,t,r,s):h).get("snap"),p=BC(c.model),A=s||f||"category"===c.type,g=e.axesInfo[p]={key:p,axis:c,coordSys:n,axisPointerModel:h,triggerTooltip:s,involveSeries:A,snap:f,useHandle:kC(h),seriesModels:[],linkGroup:null};l[p]=g,e.seriesInvolved=e.seriesInvolved||A;var m=function(e,t){for(var n=t.model,r=t.dim,i=0;i<e.length;i++){var a=e[i]||{};if(CC(a[r+"AxisId"],n.id)||CC(a[r+"AxisIndex"],n.componentIndex)||CC(a[r+"AxisName"],n.name))return i}}(a,c);if(null!=m){var v=o[m]||(o[m]={axesInfo:{}});v.axesInfo[p]=g,v.mapper=a[m].mapper,g.linkGroup=v}}}})}(n,e,t),n.seriesInvolved&&function(e,t){t.eachSeries(function(t){var n=t.coordinateSystem,r=t.get(["tooltip","trigger"],!0),i=t.get(["tooltip","show"],!0);n&&"none"!==r&&!1!==r&&"item"!==r&&!1!==i&&!1!==t.get(["axisPointer","show"],!0)&&q(e.coordSysAxesInfo[BC(n.model)],function(e){var r=e.axis;n.getAxis(r.dim)===r&&(e.seriesModels.push(t),null==e.seriesDataCount&&(e.seriesDataCount=0),e.seriesDataCount+=t.getData().count())})})}(n,e),n}function CC(e,t){return"all"===e||te(e)&&z(e,t)>=0||e===t}function SC(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[BC(e)]}function kC(e){return!!e.get(["handle","show"])}function BC(e){return e.type+"||"+e.id}var EC={},TC=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.prototype.render=function(t,n,r,i){this.axisPointerClass&&function(e){var t=SC(e);if(t){var n=t.axisPointerModel,r=t.axis.scale,i=n.option,a=n.get("status"),o=n.get("value");null!=o&&(o=r.parse(o));var s=kC(n);null==a&&(i.status=s?"show":"hide");var l=r.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==o||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),i.value=o,s&&(i.status=t.axis.scale.isBlank()?"hide":"show")}}(t),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,r,!0)},t.prototype.updateAxisPointer=function(e,t,n,r){this._doUpdateAxisPointerClass(e,n,!1)},t.prototype.remove=function(e,t){var n=this._axisPointer;n&&n.remove(t)},t.prototype.dispose=function(t,n){this._disposeAxisPointer(n),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(e,n,r){var i=t.getAxisPointerClass(this.axisPointerClass);if(i){var a=function(e){var t=SC(e);return t&&t.axisPointerModel}(e);a?(this._axisPointer||(this._axisPointer=new i)).render(e,a,n,r):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},t.registerAxisPointerClass=function(e,t){EC[e]=t},t.getAxisPointerClass=function(e){return e&&EC[e]},t.type="axis",t}(aA),IC=Zi();function MC(e,t,n,r){var i=n.axis;if(!i.scale.isBlank()){var a=n.getModel("splitArea"),o=a.getModel("areaStyle"),s=o.get("color"),l=r.coordinateSystem.getRect(),c=i.getTicksCoords({tickModel:a,clamp:!0});if(c.length){var u=s.length,h=IC(e).splitAreaColors,d=Se(),f=0;if(h)for(var p=0;p<c.length;p++){var A=h.get(c[p].tickValue);if(null!=A){f=(A+(u-1)*p)%u;break}}var g=i.toGlobalCoord(c[0].coord),m=o.getAreaStyle();s=te(s)?s:[s];for(p=1;p<c.length;p++){var v=i.toGlobalCoord(c[p].coord),y=void 0,b=void 0,w=void 0,x=void 0;i.isHorizontal()?(y=g,b=l.y,w=v-y,x=l.height,g=y+w):(y=l.x,b=g,w=l.width,g=b+(x=v-b));var _=c[p-1].tickValue;null!=_&&d.set(_,f),t.add(new Ds({anid:null!=_?"area_"+_:null,shape:{x:y,y:b,width:w,height:x},style:j({fill:s[f]},m),autoBatch:!0,silent:!0})),f=(f+1)%u}IC(e).splitAreaColors=d}}}function FC(e){IC(e).splitAreaColors=null}var DC=["axisLine","axisTickLabel","axisName"],PC=["splitArea","splitLine","minorSplitLine"],OC=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="CartesianAxisPointer",n}return g(t,e),t.prototype.render=function(t,n,r,i){this.group.removeAll();var a=this._axisGroup;if(this._axisGroup=new ii,this.group.add(this._axisGroup),t.get("show")){var o=t.getCoordSysModel(),s=lC(o,t),l=new xC(t,H({handleAutoShown:function(e){for(var n=o.coordinateSystem.getCartesians(),r=0;r<n.length;r++){var i=n[r].getOtherAxis(t.axis).type;if("value"===i||"log"===i)return!0}return!1}},s));q(DC,l.add,l),this._axisGroup.add(l.getGroup()),q(PC,function(e){t.get([e,"show"])&&LC[e](this,this._axisGroup,t,o)},this),Du(a,this._axisGroup,t),e.prototype.render.call(this,t,n,r,i)}},t.prototype.remove=function(){FC(this)},t.type="cartesianAxis",t}(TC),LC={splitLine:function(e,t,n,r){var i=n.axis;if(!i.scale.isBlank()){var a=n.getModel("splitLine"),o=a.getModel("lineStyle"),s=o.get("color");s=te(s)?s:[s];for(var l=r.coordinateSystem.getRect(),c=i.isHorizontal(),u=0,h=i.getTicksCoords({tickModel:a}),d=[],f=[],p=o.getLineStyle(),A=0;A<h.length;A++){var g=i.toGlobalCoord(h[A].coord);c?(d[0]=g,d[1]=l.y,f[0]=g,f[1]=l.y+l.height):(d[0]=l.x,d[1]=g,f[0]=l.x+l.width,f[1]=g);var m=u++%s.length,v=h[A].tickValue;t.add(new Hc({anid:null!=v?"line_"+h[A].tickValue:null,subPixelOptimize:!0,autoBatch:!0,shape:{x1:d[0],y1:d[1],x2:f[0],y2:f[1]},style:j({stroke:s[m]},p),silent:!0}))}}},minorSplitLine:function(e,t,n,r){var i=n.axis,a=n.getModel("minorSplitLine").getModel("lineStyle"),o=r.coordinateSystem.getRect(),s=i.isHorizontal(),l=i.getMinorTicksCoords();if(l.length)for(var c=[],u=[],h=a.getLineStyle(),d=0;d<l.length;d++)for(var f=0;f<l[d].length;f++){var p=i.toGlobalCoord(l[d][f].coord);s?(c[0]=p,c[1]=o.y,u[0]=p,u[1]=o.y+o.height):(c[0]=o.x,c[1]=p,u[0]=o.x+o.width,u[1]=p),t.add(new Hc({anid:"minor_line_"+l[d][f].tickValue,subPixelOptimize:!0,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:u[0],y2:u[1]},style:h,silent:!0}))}},splitArea:function(e,t,n,r){MC(e,t,n,r)}},RC=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.type="xAxis",t}(OC),NC=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=RC.type,t}return g(t,e),t.type="yAxis",t}(OC),UC=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="grid",t}return g(t,e),t.prototype.render=function(e,t){this.group.removeAll(),e.get("show")&&this.group.add(new Ds({shape:e.coordinateSystem.getRect(),style:j({fill:e.get("backgroundColor")},e.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(aA),HC={offset:0};function jC(e){e.registerComponentView(UC),e.registerComponentModel(K_),e.registerCoordinateSystem("cartesian2d",pC),nC(e,"x",Y_,HC),nC(e,"y",Y_,HC),e.registerComponentView(RC),e.registerComponentView(NC),e.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}function QC(e){e.eachSeriesByType("radar",function(e){var t=e.getData(),n=[],r=e.coordinateSystem;if(r){var i=r.getIndicatorAxes();q(i,function(e,a){t.each(t.mapDimension(i[a].dim),function(e,t){n[t]=n[t]||[];var i=r.dataToPoint(e,a);n[t][a]=zC(i)?i:VC(r)})}),t.each(function(e){var i=X(n[e],function(e){return zC(e)})||VC(r);n[e].push(i.slice()),t.setItemLayout(e,n[e])})}})}function zC(e){return!isNaN(e[0])&&!isNaN(e[1])}function VC(e){return[e.cx,e.cy]}function GC(e){var t=e.polar;if(t){te(t)||(t=[t]);var n=[];q(t,function(t,r){t.indicator?(t.type&&!t.shape&&(t.shape=t.type),e.radar=e.radar||[],te(e.radar)||(e.radar=[e.radar]),e.radar.push(t)):n.push(t)}),e.polar=n}q(e.series,function(e){e&&"radar"===e.type&&e.polarIndex&&(e.radarIndex=e.polarIndex)})}var $C=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.prototype.render=function(e,t,n){var r=e.coordinateSystem,i=this.group,a=e.getData(),o=this._data;function s(e,t){var n=e.getItemVisual(t,"symbol")||"circle";if("none"!==n){var r=function(e){return te(e)||(e=[+e,+e]),e}(e.getItemVisual(t,"symbolSize")),i=Zg(n,-1,-1,2,2),a=e.getItemVisual(t,"symbolRotate")||0;return i.attr({style:{strokeNoScale:!0},z2:100,scaleX:r[0]/2,scaleY:r[1]/2,rotation:a*Math.PI/180||0}),i}}function c(t,n,r,i,a,o){r.removeAll();for(var c=0;c<n.length-1;c++){var u=s(i,a);u&&(u.__dimIdx=c,t[c]?(u.setPosition(t[c]),l[o?"initProps":"updateProps"](u,{x:n[c][0],y:n[c][1]},e,a)):u.setPosition(n[c]),r.add(u))}}function u(e){return W(e,function(e){return[r.cx,r.cy]})}a.diff(o).add(function(t){var n=a.getItemLayout(t);if(n){var r=new Dc,i=new Lc,o={shape:{points:n}};r.shape.points=u(n),i.shape.points=u(n),Cu(r,o,e,t),Cu(i,o,e,t);var s=new ii,l=new ii;s.add(i),s.add(r),s.add(l),c(i.shape.points,n,l,a,t,!0),a.setItemGraphicEl(t,s)}}).update(function(t,n){var r=o.getItemGraphicEl(n),i=r.childAt(0),s=r.childAt(1),l=r.childAt(2),u={shape:{points:a.getItemLayout(t)}};u.shape.points&&(c(i.shape.points,u.shape.points,l,a,t,!1),_u(i,u,e),_u(s,u,e),a.setItemGraphicEl(t,r))}).remove(function(e){i.remove(o.getItemGraphicEl(e))}).execute(),a.eachItemGraphicEl(function(e,t){var n=a.getItemModel(t),r=e.childAt(0),o=e.childAt(1),s=e.childAt(2),l=a.getItemVisual(t,"style"),c=l.fill;i.add(e),r.useStyle(j(n.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:c})),Ol(r,n,"lineStyle"),Ol(o,n,"areaStyle");var u=n.getModel("areaStyle"),h=u.isEmpty()&&u.parentModel.isEmpty();o.ignore=h,q(["emphasis","select","blur"],function(e){var t=n.getModel([e,"areaStyle"]),r=t.isEmpty()&&t.parentModel.isEmpty();o.ensureState(e).ignore=r&&h}),o.useStyle(j(u.getAreaStyle(),{fill:c,opacity:.7,decal:l.decal}));var d=n.getModel("emphasis"),f=d.getModel("itemStyle").getItemStyle();s.eachChild(function(e){if(e instanceof Ss){var r=e.style;e.useStyle(H({image:r.image,x:r.x,y:r.y,width:r.width,height:r.height},l))}else e.useStyle(l),e.setColor(c);e.ensureState("emphasis").style=R(f);var i=a.get(a.dimensions[e.__dimIdx],t);(null==i||isNaN(i))&&(i=""),zu(e,Vu(n),{labelFetcher:a.hostModel,labelDataIndex:t,labelDimIndex:e.__dimIdx,defaultText:i,inheritColor:c,defaultOpacity:l.opacity})}),Ml(e,d.get("focus"),d.get("blurScope"))}),this._data=a},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.type="radar",t}(AA),qC=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.useColorPaletteOnData=!0,n.hasSymbolVisual=!0,n}return g(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new Q_(Z(this.getData,this),Z(this.getRawData,this))},t.prototype.getInitialData=function(e,t){return j_(this,{generateCoord:"indicator_",generateCoordCount:1/0})},t.prototype.formatTooltip=function(e,t,n){var r=this.getData(),i=this.coordinateSystem.getIndicatorAxes(),a=this.getData().getName(e),o=""===a?this.name:a,s=zp(this,e);return Lp("section",{header:o,sortBlocks:!0,blocks:W(i,function(t){var n=r.get(r.mapDimension(t.dim),e);return Lp("nameValue",{markerType:"subItem",markerColor:s,name:t.name,value:n,sortParam:n})})})},t.prototype.getTooltipPosition=function(e){if(null!=e)for(var t=this.getData(),n=this.coordinateSystem,r=t.getValues(W(n.dimensions,function(e){return t.mapDimension(e)}),e),i=0,a=r.length;i<a;i++)if(!isNaN(r[i])){var o=n.getIndicatorAxes();return n.coordToPoint(o[i].dataToCoord(r[i]),i)}},t.type="series.radar",t.dependencies=["radar"],t.defaultOption={zlevel:0,z:2,coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid"},label:{position:"top"},symbol:"emptyCircle",symbolSize:4},t}(rA),WC=eC.value;function KC(e,t){return j({show:t},e)}var YC=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.prototype.optionUpdated=function(){var e=this.get("boundaryGap"),t=this.get("splitNumber"),n=this.get("scale"),r=this.get("axisLine"),i=this.get("axisTick"),a=this.get("axisLabel"),o=this.get("axisName"),s=this.get(["axisName","show"]),l=this.get(["axisName","formatter"]),c=this.get("axisNameGap"),u=this.get("triggerEvent"),h=W(this.get("indicator")||[],function(h){null!=h.max&&h.max>0&&!h.min?h.min=0:null!=h.min&&h.min<0&&!h.max&&(h.max=0);var d=o;null!=h.color&&(d=j({color:h.color},o));var f=N(R(h),{boundaryGap:e,splitNumber:t,scale:n,axisLine:r,axisTick:i,axisLabel:a,name:h.text,nameLocation:"end",nameGap:c,nameTextStyle:d,triggerEvent:u},!1);if(s||(f.name=""),"string"==typeof l){var p=f.name;f.name=l.replace("{value}",null!=p?p:"")}else"function"==typeof l&&(f.name=l(f.name,f));var A=new fh(f,null,this.ecModel);return G(A,Jb.prototype),A.mainType="radar",A.componentIndex=this.componentIndex,A},this);this._indicatorModels=h},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.defaultOption={zlevel:0,z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:N({lineStyle:{color:"#bbb"}},WC.axisLine),axisLabel:KC(WC.axisLabel,!1),axisTick:KC(WC.axisTick,!1),splitLine:KC(WC.splitLine,!0),splitArea:KC(WC.splitArea,!0),indicator:[]},t}(Bd),XC=["axisLine","axisTickLabel","axisName"],JC=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.prototype.render=function(e,t,n){this.group.removeAll(),this._buildAxes(e),this._buildSplitLineAndArea(e)},t.prototype._buildAxes=function(e){var t=e.coordinateSystem;q(W(t.getIndicatorAxes(),function(e){return new xC(e.model,{position:[t.cx,t.cy],rotation:e.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})}),function(e){q(XC,e.add,e),this.group.add(e.getGroup())},this)},t.prototype._buildSplitLineAndArea=function(e){var t=e.coordinateSystem,n=t.getIndicatorAxes();if(n.length){var r=e.get("shape"),i=e.getModel("splitLine"),a=e.getModel("splitArea"),o=i.getModel("lineStyle"),s=a.getModel("areaStyle"),l=i.get("show"),c=a.get("show"),u=o.get("color"),h=s.get("color"),d=te(u)?u:[u],f=te(h)?h:[h],p=[],A=[];if("circle"===r)for(var g=n[0].getTicksCoords(),m=t.cx,v=t.cy,y=0;y<g.length;y++){if(l)p[B(p,d,y)].push(new oc({shape:{cx:m,cy:v,r:g[y].coord}}));if(c&&y<g.length-1)A[B(A,f,y)].push(new Ec({shape:{cx:m,cy:v,r0:g[y].coord,r:g[y+1].coord}}))}else{var b,w=W(n,function(e,n){var r=e.getTicksCoords();return b=null==b?r.length-1:Math.min(r.length-1,b),W(r,function(e){return t.coordToPoint(e.coord,n)})}),x=[];for(y=0;y<=b;y++){for(var _=[],C=0;C<n.length;C++)_.push(w[C][y]);if(_[0]&&_.push(_[0].slice()),l)p[B(p,d,y)].push(new Lc({shape:{points:_}}));if(c&&x)A[B(A,f,y-1)].push(new Dc({shape:{points:_.concat(x)}}));x=_.slice().reverse()}}var S=o.getLineStyle(),k=s.getAreaStyle();q(A,function(e,t){this.group.add(mu(e,{style:j({stroke:"none",fill:f[t%f.length]},k),silent:!0}))},this),q(p,function(e,t){this.group.add(mu(e,{style:j({fill:"none",stroke:d[t%d.length]},S),silent:!0}))},this)}function B(e,t,n){var r=n%t.length;return e[r]=e[r]||[],r}},t.type="radar",t}(aA),ZC=function(e){function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.type="value",i.angle=0,i.name="",i}return g(t,e),t}(ww),eS=function(){function e(e,t,n){this.dimensions=[],this._model=e,this._indicatorAxes=W(e.getIndicatorModels(),function(e,t){var n="indicator_"+t,r=new ZC(n,new ab);return r.name=e.get("name"),r.model=e,e.axis=r,this.dimensions.push(n),r},this),this.resize(e,n)}return e.prototype.getIndicatorAxes=function(){return this._indicatorAxes},e.prototype.dataToPoint=function(e,t){var n=this._indicatorAxes[t];return this.coordToPoint(n.dataToCoord(e),t)},e.prototype.coordToPoint=function(e,t){var n=this._indicatorAxes[t].angle;return[this.cx+e*Math.cos(n),this.cy-e*Math.sin(n)]},e.prototype.pointToData=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,r=Math.sqrt(t*t+n*n);t/=r,n/=r;for(var i,a=Math.atan2(-n,t),o=1/0,s=-1,l=0;l<this._indicatorAxes.length;l++){var c=this._indicatorAxes[l],u=Math.abs(a-c.angle);u<o&&(i=c,s=l,o=u)}return[s,+(i&&i.coordToData(r))]},e.prototype.resize=function(e,t){var n=e.get("center"),r=t.getWidth(),i=t.getHeight(),a=Math.min(r,i)/2;this.cx=mi(n[0],r),this.cy=mi(n[1],i),this.startAngle=e.get("startAngle")*Math.PI/180;var o=e.get("radius");"string"!=typeof o&&"number"!=typeof o||(o=[0,o]),this.r0=mi(o[0],a),this.r=mi(o[1],a),q(this._indicatorAxes,function(e,t){e.setExtent(this.r0,this.r);var n=this.startAngle+t*Math.PI*2/this._indicatorAxes.length;n=Math.atan2(Math.sin(n),Math.cos(n)),e.angle=n},this)},e.prototype.update=function(e,t){var n=this._indicatorAxes,r=this._model;q(n,function(e){e.scale.setExtent(1/0,-1/0)}),e.eachSeriesByType("radar",function(t,i){if("radar"===t.get("coordinateSystem")&&e.getComponent("radar",t.get("radarIndex"))===r){var a=t.getData();q(n,function(e){e.scale.unionExtentFromData(a,a.mapDimension(e.dim))})}},this);var i=r.get("splitNumber");function a(e){var t=Math.pow(10,Math.floor(Math.log(e)/Math.LN10)),n=e/t;return 2===n?n=5:n*=2,n*t}q(n,function(e,t){var n=Vb(e.scale,e.model).extent;Gb(e.scale,e.model);var r=e.model,o=e.scale,s=zb(o,r.get("min",!0)),l=zb(o,r.get("max",!0)),c=o.getInterval();if(null!=s&&null!=l)o.setExtent(+s,+l),o.setInterval((l-s)/i);else if(null!=s){var u=void 0;do{u=s+c*i,o.setExtent(+s,u),o.setInterval(c),c=a(c)}while(u<n[1]&&isFinite(u)&&isFinite(n[1]))}else if(null!=l){var h=void 0;do{h=l-c*i,o.setExtent(h,+l),o.setInterval(c),c=a(c)}while(h>n[0]&&isFinite(h)&&isFinite(n[0]))}else{o.getTicks().length-1>i&&(c=a(c));h=vi((u=Math.ceil(n[1]/c)*c)-c*i);o.setExtent(h,u),o.setInterval(c)}})},e.prototype.convertToPixel=function(e,t,n){return console.warn("Not implemented."),null},e.prototype.convertFromPixel=function(e,t,n){return console.warn("Not implemented."),null},e.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},e.create=function(t,n){var r=[];return t.eachComponent("radar",function(i){var a=new e(i,t,n);r.push(a),i.coordinateSystem=a}),t.eachSeriesByType("radar",function(e){"radar"===e.get("coordinateSystem")&&(e.coordinateSystem=r[e.get("radarIndex")||0])}),r},e.dimensions=[],e}();function tS(e){e.registerCoordinateSystem("radar",eS),e.registerComponentModel(YC),e.registerComponentView(JC)}var nS="\0_ec_interaction_mutex";function rS(e,t){return!!iS(e)[t]}function iS(e){return e[nS]||(e[nS]={})}function aS(e,t,n,r,i){e.pointerChecker&&e.pointerChecker(r,i.originX,i.originY)&&(wt(r.event),oS(e,t,n,r,i))}function oS(e,t,n,r,i){i.isAvailableBehavior=Z(sS,null,n,r),e.trigger(t,i)}function sS(e,t,n){var r=n[e];return!e||r&&(!re(r)||t.event[r+"Key"])}Qv({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},function(){});var lS=function(e){function t(t){var n=e.call(this)||this;n._zr=t;var r=Z(n._mousedownHandler,n),i=Z(n._mousemoveHandler,n),a=Z(n._mouseupHandler,n),o=Z(n._mousewheelHandler,n),s=Z(n._pinchHandler,n);return n.enable=function(e,n){this.disable(),this._opt=j(R(n)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),null==e&&(e=!0),!0!==e&&"move"!==e&&"pan"!==e||(t.on("mousedown",r),t.on("mousemove",i),t.on("mouseup",a)),!0!==e&&"scale"!==e&&"zoom"!==e||(t.on("mousewheel",o),t.on("pinch",s))},n.disable=function(){t.off("mousedown",r),t.off("mousemove",i),t.off("mouseup",a),t.off("mousewheel",o),t.off("pinch",s)},n}return g(t,e),t.prototype.isDragging=function(){return this._dragging},t.prototype.isPinching=function(){return this._pinching},t.prototype.setPointerChecker=function(e){this.pointerChecker=e},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(e){if(!(xt(e)||e.target&&e.target.draggable)){var t=e.offsetX,n=e.offsetY;this.pointerChecker&&this.pointerChecker(e,t,n)&&(this._x=t,this._y=n,this._dragging=!0)}},t.prototype._mousemoveHandler=function(e){if(this._dragging&&sS("moveOnMouseMove",e,this._opt)&&"pinch"!==e.gestureEvent&&!rS(this._zr,"globalPan")){var t=e.offsetX,n=e.offsetY,r=this._x,i=this._y,a=t-r,o=n-i;this._x=t,this._y=n,this._opt.preventDefaultMouseMove&&wt(e.event),oS(this,"pan","moveOnMouseMove",e,{dx:a,dy:o,oldX:r,oldY:i,newX:t,newY:n,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(e){xt(e)||(this._dragging=!1)},t.prototype._mousewheelHandler=function(e){var t=sS("zoomOnMouseWheel",e,this._opt),n=sS("moveOnMouseWheel",e,this._opt),r=e.wheelDelta,i=Math.abs(r),a=e.offsetX,o=e.offsetY;if(0!==r&&(t||n)){if(t){var s=i>3?1.4:i>1?1.2:1.1;aS(this,"zoom","zoomOnMouseWheel",e,{scale:r>0?s:1/s,originX:a,originY:o,isAvailableBehavior:null})}if(n){var l=Math.abs(r);aS(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:(r>0?1:-1)*(l>3?.4:l>1?.15:.05),originX:a,originY:o,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(e){rS(this._zr,"globalPan")||aS(this,"zoom",null,e,{scale:e.pinchScale>1?1.1:1/1.1,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})},t}(at);function cS(e,t,n){var r=e.target;r.x+=t,r.y+=n,r.dirty()}function uS(e,t,n,r){var i=e.target,a=e.zoomLimit,o=e.zoom=e.zoom||1;if(o*=t,a){var s=a.min||0,l=a.max||1/0;o=Math.max(Math.min(l,o),s)}var c=o/e.zoom;e.zoom=o,i.x-=(n-i.x)*(c-1),i.y-=(r-i.y)*(c-1),i.scaleX*=c,i.scaleY*=c,i.dirty()}var hS={axisPointer:1,tooltip:1,brush:1};function dS(e,t,n){var r=t.getComponentByElement(e.topTarget),i=r&&r.coordinateSystem;return r&&r!==n&&!hS.hasOwnProperty(r.mainType)&&i&&i.model!==n}for(var fS=[126,25],pS=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],AS=0;AS<pS.length;AS++)for(var gS=0;gS<pS[AS].length;gS++)pS[AS][gS][0]/=10.5,pS[AS][gS][1]/=-14,pS[AS][gS][0]+=fS[0],pS[AS][gS][1]+=fS[1];var mS={"南海诸岛":[32,80],"广东":[0,-10],"香港":[10,5],"澳门":[-10,10],"天津":[5,5]};var vS={Russia:[100,60],"United States":[-99,38],"United States of America":[-99,38]};var yS=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];var bS=Zi(),wS={load:function(e,t,n){var r=bS(t).parsed;if(r)return r;var i,a=t.specialAreas||{},o=t.geoJSON;try{i=o?cw(o,n):[]}catch(e){throw new Error("Invalid geoJson format\n"+e.message)}return function(e,t){"china"===e&&t.push(new sw("南海诸岛",W(pS,function(e){return{type:"polygon",exterior:e}}),fS))}(e,i),q(i,function(t){var n=t.name;!function(e,t){if("china"===e){var n=mS[t.name];if(n){var r=t.center;r[0]+=n[0]/10.5,r[1]+=-n[1]/14}}}(e,t),function(e,t){if("world"===e){var n=vS[t.name];if(n){var r=t.center;r[0]=n[0],r[1]=n[1]}}}(e,t),function(e,t){"china"===e&&"台湾"===t.name&&t.geometries.push({type:"polygon",exterior:yS[0]})}(e,t);var r=a[n];r&&t.transformTo(r.left,r.top,r.width,r.height)}),bS(t).parsed={regions:i,boundingRect:function(e){for(var t,n=0;n<e.length;n++){var r=e[n].getBoundingRect();(t=t||r.clone()).union(r)}return t}(i)}}};var xS,_S=/[\s,]+/,CS=function(){function e(){this._defs={},this._root=null,this._isDefine=!1,this._isText=!1}return e.prototype.parse=function(e,t){t=t||{};var n=XA(e);if(!n)throw new Error("Illegal svg");var r=new ii;this._root=r;var i=n.getAttribute("viewBox")||"",a=parseFloat(n.getAttribute("width")||t.width),o=parseFloat(n.getAttribute("height")||t.height);isNaN(a)&&(a=null),isNaN(o)&&(o=null),TS(n,r,null,!0);for(var s,l,c=n.firstChild;c;)this._parseNode(c,r),c=c.nextSibling;if(i){var u=be(i).split(_S);u.length>=4&&(s={x:parseFloat(u[0]||0),y:parseFloat(u[1]||0),width:parseFloat(u[2]),height:parseFloat(u[3])})}if(s&&null!=a&&null!=o&&(l=PS(s,a,o),!t.ignoreViewBox)){var h=r;(r=new ii).add(h),h.scaleX=h.scaleY=l.scale,h.x=l.x,h.y=l.y}return t.ignoreRootClip||null==a||null==o||r.setClipPath(new Ds({shape:{x:0,y:0,width:a,height:o}})),{root:r,width:a,height:o,viewBoxRect:s,viewBoxTransform:l}},e.prototype._parseNode=function(e,t){var n,r,i=e.nodeName.toLowerCase();if("defs"===i?this._isDefine=!0:"text"===i&&(this._isText=!0),this._isDefine){if(r=SS[i]){var a=r.call(this,e),o=e.getAttribute("id");o&&(this._defs[o]=a)}}else(r=xS[i])&&(n=r.call(this,e,t),t.add(n));if(n)for(var s=e.firstChild;s;)1===s.nodeType&&this._parseNode(s,n),3===s.nodeType&&this._isText&&this._parseText(s,n),s=s.nextSibling;"defs"===i?this._isDefine=!1:"text"===i&&(this._isText=!1)},e.prototype._parseText=function(e,t){if(1===e.nodeType){var n=e.getAttribute("dx")||0,r=e.getAttribute("dy")||0;this._textX+=parseFloat(n),this._textY+=parseFloat(r)}var i=new ws({style:{text:e.textContent},x:this._textX||0,y:this._textY||0});kS(t,i),TS(e,i,this._defs);var a=i.style,o=a.fontSize;o&&o<9&&(a.fontSize=9,i.scaleX*=o/9,i.scaleY*=o/9);var s=(a.fontSize||a.fontFamily)&&[a.fontStyle,a.fontWeight,(a.fontSize||12)+"px",a.fontFamily||"sans-serif"].join(" ");a.font=s;var l=i.getBoundingRect();return this._textX+=l.width,t.add(i),i},e.internalField=void(xS={g:function(e,t){var n=new ii;return kS(t,n),TS(e,n,this._defs),n},rect:function(e,t){var n=new Ds;return kS(t,n),TS(e,n,this._defs),n.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),n},circle:function(e,t){var n=new oc;return kS(t,n),TS(e,n,this._defs),n.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),n},line:function(e,t){var n=new Hc;return kS(t,n),TS(e,n,this._defs),n.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),n},ellipse:function(e,t){var n=new cc;return kS(t,n),TS(e,n,this._defs),n.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),n},polygon:function(e,t){var n,r=e.getAttribute("points");r&&(n=BS(r));var i=new Dc({shape:{points:n||[]}});return kS(t,i),TS(e,i,this._defs),i},polyline:function(e,t){var n=new vs;kS(t,n),TS(e,n,this._defs);var r,i=e.getAttribute("points");return i&&(r=BS(i)),new Lc({shape:{points:r||[]}})},image:function(e,t){var n=new Ss;return kS(t,n),TS(e,n,this._defs),n.setStyle({image:e.getAttribute("xlink:href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),n},text:function(e,t){var n=e.getAttribute("x")||"0",r=e.getAttribute("y")||"0",i=e.getAttribute("dx")||"0",a=e.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(i),this._textY=parseFloat(r)+parseFloat(a);var o=new ii;return kS(t,o),TS(e,o,this._defs),o},tspan:function(e,t){var n=e.getAttribute("x"),r=e.getAttribute("y");null!=n&&(this._textX=parseFloat(n)),null!=r&&(this._textY=parseFloat(r));var i=e.getAttribute("dx")||0,a=e.getAttribute("dy")||0,o=new ii;return kS(t,o),TS(e,o,this._defs),this._textX+=i,this._textY+=a,o},path:function(e,t){var n=rc(e.getAttribute("d")||"");return kS(t,n),TS(e,n,this._defs),n}}),e}(),SS={lineargradient:function(e){var t=parseInt(e.getAttribute("x1")||"0",10),n=parseInt(e.getAttribute("y1")||"0",10),r=parseInt(e.getAttribute("x2")||"10",10),i=parseInt(e.getAttribute("y2")||"0",10),a=new Xc(t,n,r,i);return function(e,t){var n=e.firstChild;for(;n;){if(1===n.nodeType){var r=n.getAttribute("offset"),i=void 0;i=r.indexOf("%")>0?parseInt(r,10)/100:r?parseFloat(r):0;var a=n.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:i,color:a})}n=n.nextSibling}}(e,a),a}};function kS(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),j(t.__inheritedStyle,e.__inheritedStyle))}function BS(e){for(var t=be(e).split(_S),n=[],r=0;r<t.length;r+=2){var i=parseFloat(t[r]),a=parseFloat(t[r+1]);n.push([i,a])}return n}var ES={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-align":"textAlign","alignment-baseline":"textBaseline"};function TS(e,t,n,r){var i=t,a=i.__inheritedStyle||{};if(1===e.nodeType&&(function(e,t){var n=e.getAttribute("transform");if(n){var r=[],i=null;(n=n.replace(/,/g," ")).replace(FS,function(e,t,n){return r.push(t,n),""});for(var a=r.length-1;a>0;a-=2){var o=r[a],s=r[a-1],l=void 0;switch(i=i||[1,0,0,1,0,0],s){case"translate":l=be(o).split(_S),Ut(i,i,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":l=be(o).split(_S),jt(i,i,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":l=be(o).split(_S),Ht(i,i,parseFloat(l[0]));break;case"skew":l=be(o).split(_S),console.warn("Skew transform is not supported yet");break;case"matrix":l=be(o).split(_S),i[0]=parseFloat(l[0]),i[1]=parseFloat(l[1]),i[2]=parseFloat(l[2]),i[3]=parseFloat(l[3]),i[4]=parseFloat(l[4]),i[5]=parseFloat(l[5])}}t.setLocalTransform(i)}}(e,t),H(a,function(e){var t=e.getAttribute("style"),n={};if(!t)return n;var r,i={};DS.lastIndex=0;for(;null!=(r=DS.exec(t));)i[r[1]]=r[2];for(var a in ES)ES.hasOwnProperty(a)&&null!=i[a]&&(n[ES[a]]=i[a]);return n}(e)),!r))for(var o in ES)if(ES.hasOwnProperty(o)){var s=e.getAttribute(o);null!=s&&(a[ES[o]]=s)}i.style=i.style||{},null!=a.fill&&(i.style.fill=MS(a.fill,n)),null!=a.stroke&&(i.style.stroke=MS(a.stroke,n)),q(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(e){null!=a[e]&&(i.style[e]=parseFloat(a[e]))}),a.textBaseline&&"auto"!==a.textBaseline||(a.textBaseline="alphabetic"),"alphabetic"===a.textBaseline&&(a.textBaseline="bottom"),"start"===a.textAlign&&(a.textAlign="left"),"end"===a.textAlign&&(a.textAlign="right"),q(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign","textBaseline"],function(e){null!=a[e]&&(i.style[e]=a[e])}),a.lineDash&&(i.style.lineDash=W(be(a.lineDash).split(_S),function(e){return parseFloat(e)})),i.__inheritedStyle=a}var IS=/url\(\s*#(.*?)\)/;function MS(e,t){var n=t&&e&&e.match(IS);return n?t[be(n[1])]:e}var FS=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.e,]*)\)/g;var DS=/([^\s:;]+)\s*:\s*([^:;]+)/g;function PS(e,t,n){var r=t/e.width,i=n/e.height,a=Math.min(r,i);return{scale:a,x:-(e.x+e.width/2)*a+t/2,y:-(e.y+e.height/2)*a+n/2}}var OS=Zi();function LS(e,t){var n,r,i,a,o=e.svgXML;try{ye(null!=(r=(n=o&&(i=o,a={ignoreViewBox:!0,ignoreRootClip:!0},(new CS).parse(i,a))||{}).root))}catch(e){throw new Error("Invalid svg format\n"+e.message)}var s=n.width,l=n.height,c=n.viewBoxRect;if(t||(t=null==s||null==l?r.getBoundingRect():new tr(0,0,0,0),null!=s&&(t.width=s),null!=l&&(t.height=l)),c){var u=PS(c,t.width,t.height),h=r;(r=new ii).add(h),h.scaleX=h.scaleY=u.scale,h.x=u.x,h.y=u.y}return r.setClipPath(new Ds({shape:t.plain()})),{root:r,boundingRect:t}}var RS={geoJSON:wS,svg:{load:function(e,t){var n=OS(t).originRoot;if(n)return{root:n,boundingRect:OS(t).boundingRect};var r=LS(t);return OS(t).originRoot=r.root,OS(t).boundingRect=r.boundingRect,r},makeGraphic:function(e,t,n){var r=OS(t),i=r.rootMap||(r.rootMap=Se()),a=i.get(n);if(a)return a;var o=r.originRoot,s=r.boundingRect;return r.originRootHostKey?a=LS(t,s).root:(r.originRootHostKey=n,a=o),i.set(n,a)},removeGraphic:function(e,t,n){var r=OS(t),i=r.rootMap;i&&i.removeKey(n),n===r.originRootHostKey&&(r.originRootHostKey=null)}}},NS={load:function(e,t,n){var r,i=[],a=Se(),o=Se();return q(US(e),function(s){var l=RS[s.type].load(e,s,n);q(l.regions,function(e){var n=e.name;t&&t.hasOwnProperty(n)&&(e=e.cloneShallow(n=t[n])),i.push(e),a.set(n,e),o.set(n,e.center)});var c=l.boundingRect;c&&(r?r.union(c):r=c.clone())}),{regions:i,regionsMap:a,nameCoordMap:o,boundingRect:r||new tr(0,0,0,0)}},makeGraphic:function(e,t){var n=[];return q(US(e),function(r){var i=RS[r.type].makeGraphic;i&&n.push(i(e,r,t))}),n},removeGraphic:function(e,t){q(US(e),function(n){var r=RS[n.type].makeGraphic;r&&r(e,n,t)})}};function US(e){var t=ZA.retrieveMap(e)||[];return t}function HS(e){var t=e.getItemStyle(),n=e.get("areaColor");return null!=n&&(t.fill=n),t}var jS=function(){function e(e){var t=new ii;this.uid=Ah("ec_map_draw"),this._controller=new lS(e.getZr()),this._controllerHost={target:t},this.group=t,t.add(this._regionsGroup=new ii),t.add(this._backgroundGroup=new ii)}return e.prototype.draw=function(e,t,n,r,i){var a="geo"===e.mainType,o=e.getData&&e.getData();a&&t.eachComponent({mainType:"series",subType:"map"},function(t){o||t.getHostGeoModel()!==e||(o=t.getData())});var s=e.coordinateSystem;this._updateBackground(s);var l,c,u=this._regionsGroup,h=this.group,d=s.getTransformInfo(),f=!u.childAt(0)||i;if(f)h.transform=d.roamTransform,h.decomposeTransform(),h.dirty();else{var p=new Xt;p.transform=d.roamTransform,p.decomposeTransform();var A={scaleX:p.scaleX,scaleY:p.scaleY,x:p.x,y:p.y};l=p.scaleX,c=p.scaleY,_u(h,A,e)}u.removeAll();var g=Se(),m=o&&o.getVisual("visualMeta")&&o.getVisual("visualMeta").length>0;q(s.regions,function(t){var r=g.get(t.name)||g.set(t.name,new ii),i=new Kc({segmentIgnoreThreshold:1,shape:{paths:[]}});r.add(i);var s,p=e.getRegionModel(t.name)||e,A=p.getModel("itemStyle"),v=p.getModel("emphasis"),y=v.getModel("itemStyle"),b=p.getModel(["blur","itemStyle"]),w=p.getModel(["select","itemStyle"]),x=HS(A),_=HS(y),C=HS(b),S=HS(w);if(o){s=o.indexOfName(t.name);var k=o.getItemVisual(s,"style"),B=o.getItemVisual(s,"decal");m&&k.fill&&(x.fill=k.fill),B&&(x.decal=Sm(B,n))}var E=d.rawScaleX,T=d.rawScaleY,I=d.rawX,M=d.rawY,F=function(e){return[e[0]*E+I,e[1]*T+M]};q(t.geometries,function(e){if("polygon"===e.type){for(var t=[],n=0;n<e.exterior.length;++n)t.push(F(e.exterior[n]));i.shape.paths.push(new Dc({segmentIgnoreThreshold:1,shape:{points:t}}));for(n=0;n<(e.interiors?e.interiors.length:0);++n){for(var r=e.interiors[n],a=[],o=0;o<r.length;++o)a.push(F(r[o]));i.shape.paths.push(new Dc({segmentIgnoreThreshold:1,shape:{points:a}}))}}}),i.setStyle(x),i.style.strokeNoScale=!0,i.culling=!0,i.ensureState("emphasis").style=_,i.ensureState("blur").style=C,i.ensureState("select").style=S;for(var D=!1,P=0;P<Zs.length;P++){var O=Zs[P];if(p.get("normal"===O?["label","show"]:[O,"label","show"])){D=!0;break}}var L=o&&isNaN(o.get(o.mapDimension("value"),s)),R=o&&o.getItemLayout(s);if(a||L&&D||R&&R.showLabel){var N=a?t.name:s,U=void 0;(!o||s>=0)&&(U=e);var H=F(t.center),j=new Vs({x:H[0],y:H[1],scaleX:1/h.scaleX,scaleY:1/h.scaleY,z2:10,silent:!0});zu(j,Vu(p),{labelFetcher:U,labelDataIndex:N,defaultText:t.name},{normal:{align:"center",verticalAlign:"middle"}}),i.setTextContent(j),i.setTextConfig({local:!0}),i.disableLabelAnimation=!0,f||_u(j,{scaleX:1/l,scaleY:1/c},e)}if(o)o.setItemGraphicEl(s,r);else{var Q=e.getRegionModel(t.name);Gs(i).eventData={componentType:"geo",componentIndex:e.componentIndex,geoIndex:e.componentIndex,name:t.name,region:Q&&Q.option||{}}}(r.__regions||(r.__regions=[])).push(t),r.highDownSilentOnTouch=!!e.get("selectedMode"),Ml(r,v.get("focus"),v.get("blurScope")),u.add(r)}),this._updateController(e,t,n),this._updateMapSelectHandler(e,u,n,r)},e.prototype.remove=function(){this._regionsGroup.removeAll(),this._backgroundGroup.removeAll(),this._controller.dispose(),this._mapName&&NS.removeGraphic(this._mapName,this.uid),this._mapName=null,this._controllerHost=null},e.prototype._updateBackground=function(e){var t=e.map;this._mapName!==t&&q(NS.makeGraphic(t,this.uid),function(e){this._backgroundGroup.add(e)},this),this._mapName=t},e.prototype._updateController=function(e,t,n){var r=e.coordinateSystem,i=this._controller,a=this._controllerHost;a.zoomLimit=e.get("scaleLimit"),a.zoom=r.getZoom(),i.enable(e.get("roam")||!1);var o=e.mainType;function s(){var t={type:"geoRoam",componentType:o};return t[o+"Id"]=e.id,t}i.off("pan").on("pan",function(e){this._mouseDownFlag=!1,cS(a,e.dx,e.dy),n.dispatchAction(H(s(),{dx:e.dx,dy:e.dy}))},this),i.off("zoom").on("zoom",function(e){this._mouseDownFlag=!1,uS(a,e.scale,e.originX,e.originY),n.dispatchAction(H(s(),{zoom:e.scale,originX:e.originX,originY:e.originY}));var t=this.group;this._regionsGroup.traverse(function(e){var n=e.getTextContent();n&&(n.scaleX=1/t.scaleX,n.scaleY=1/t.scaleY,n.markRedraw())})},this),i.setPointerChecker(function(t,i,a){return r.getViewRectAfterRoam().contain(i,a)&&!dS(t,n,e)})},e.prototype._updateMapSelectHandler=function(e,t,n,r){var i=this;t.off("mousedown"),e.get("selectedMode")&&(t.on("mousedown",function(){i._mouseDownFlag=!0}),t.on("click",function(e){i._mouseDownFlag&&(i._mouseDownFlag=!1)}))},e}(),QS=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.prototype.render=function(e,t,n,r){if(!r||"mapToggleSelect"!==r.type||r.from!==this.uid){var i=this.group;if(i.removeAll(),!e.getHostGeoModel()){if(r&&"geoRoam"===r.type&&"series"===r.componentType&&r.seriesId===e.id)(a=this._mapDraw)&&i.add(a.group);else if(e.needsDrawMap){var a=this._mapDraw||new jS(n);i.add(a.group),a.draw(e,t,n,this,r),this._mapDraw=a}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;e.get("showLegendSymbol")&&t.getComponent("legend")&&this._renderSymbols(e,t,n)}}},t.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},t.prototype._renderSymbols=function(e,t,n){var r=e.originalData,i=this.group;r.each(r.mapDimension("value"),function(t,n){if(!isNaN(t)){var a=r.getItemLayout(n);if(a&&a.point){var o=a.point,s=a.offset,l=new oc({style:{fill:e.getData().getVisual("style").fill},shape:{cx:o[0]+9*s,cy:o[1],r:3},silent:!0,z2:8+(s?0:el+1)});if(!s){var c=e.mainSeries.getData(),u=r.getName(n),h=c.indexOfName(u),d=r.getItemModel(n),f=d.getModel("label"),p=c.getItemGraphicEl(h);zu(l,Vu(d),{labelFetcher:{getFormattedLabel:function(t,n){return e.getFormattedLabel(h,n)}}}),l.disableLabelAnimation=!0,f.get("position")||l.setTextConfig({position:"bottom"}),p.onHoverStateChange=function(e){l.useState(e)}}i.add(l)}}})},t.type="map",t}(AA),zS=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.needsDrawMap=!1,n.seriesGroup=[],n.getTooltipPosition=function(e){if(null!=e){var t=this.getData().getName(e),n=this.coordinateSystem,r=n.getRegion(t);return r&&n.dataToPoint(r.center)}},n}return g(t,e),t.prototype.getInitialData=function(e){for(var t=j_(this,{coordDimensions:["value"],encodeDefaulter:ee(zd,this)}),n=Se(),r=[],i=0,a=t.count();i<a;i++){var o=t.getName(i);n.set(o,!0)}return q(NS.load(this.getMapType(),this.option.nameMap,this.option.nameProperty).regions,function(e){var t=e.name;n.get(t)||r.push(t)}),t.appendValues([],r),t},t.prototype.getHostGeoModel=function(){var e=this.option.geoIndex;return null!=e?this.ecModel.getComponent("geo",e):null},t.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},t.prototype.getRawValue=function(e){var t=this.getData();return t.get(t.mapDimension("value"),e)},t.prototype.getRegionModel=function(e){var t=this.getData();return t.getItemModel(t.indexOfName(e))},t.prototype.formatTooltip=function(e,t,n){for(var r=this.getData(),i=this.getRawValue(e),a=r.getName(e),o=this.seriesGroup,s=[],l=0;l<o.length;l++){var c=o[l].originalData.indexOfName(a),u=r.mapDimension("value");isNaN(o[l].originalData.get(u,c))||s.push(o[l].name)}return Lp("section",{header:s.join(", "),noHeader:!s.length,blocks:[Lp("nameValue",{name:a,value:i})]})},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.type="series.map",t.dependencies=["geo"],t.layoutMode="box",t.defaultOption={zlevel:0,z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:.75,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},t}(rA);function VS(e){var t={};e.eachSeriesByType("map",function(e){var n=e.getHostGeoModel(),r=n?"o"+n.id:"i"+e.getMapType();(t[r]=t[r]||[]).push(e)}),q(t,function(e,t){for(var n,r,i,a=(n=W(e,function(e){return e.getData()}),r=e[0].get("mapValueCalculation"),i={},q(n,function(e){e.each(e.mapDimension("value"),function(t,n){var r="ec-"+e.getName(n);i[r]=i[r]||[],isNaN(t)||i[r].push(t)})}),n[0].map(n[0].mapDimension("value"),function(e,t){for(var a,o="ec-"+n[0].getName(t),s=0,l=1/0,c=-1/0,u=i[o].length,h=0;h<u;h++)l=Math.min(l,i[o][h]),c=Math.max(c,i[o][h]),s+=i[o][h];return a="min"===r?l:"max"===r?c:"average"===r?s/u:s,0===u?NaN:a})),o=0;o<e.length;o++)e[o].originalData=e[o].getData();for(o=0;o<e.length;o++)e[o].seriesGroup=e,e[o].needsDrawMap=0===o&&!e[o].getHostGeoModel(),e[o].setData(a.cloneShallow()),e[o].mainSeries=e[0]})}function GS(e){var t={};e.eachSeriesByType("map",function(n){var r=n.getMapType();if(!n.getHostGeoModel()&&!t[r]){var i={};q(n.seriesGroup,function(t){var n=t.coordinateSystem,r=t.originalData;t.get("showLegendSymbol")&&e.getComponent("legend")&&r.each(r.mapDimension("value"),function(e,t){var a=r.getName(t),o=n.getRegion(a);if(o&&!isNaN(e)){var s=i[a]||0,l=n.dataToPoint(o.center);i[a]=s+1,r.setItemLayout(t,{point:l,offset:s})}})});var a=n.getData();a.each(function(e){var t=a.getName(e),n=a.getItemLayout(e)||{};n.showLabel=!i[t],a.setItemLayout(e,n)}),t[r]=!0}})}var $S=et;function qS(e){var t=e.seriesModel;return t?t.coordinateSystem:null}var WS=function(e){function t(t){var n=e.call(this)||this;return n.type="view",n.dimensions=["x","y"],n._roamTransformable=new Xt,n._rawTransformable=new Xt,n.name=t,n}return g(t,e),t.prototype.setBoundingRect=function(e,t,n,r){return this._rect=new tr(e,t,n,r),this._rect},t.prototype.getBoundingRect=function(){return this._rect},t.prototype.setViewRect=function(e,t,n,r){this.transformTo(e,t,n,r),this._viewRect=new tr(e,t,n,r)},t.prototype.transformTo=function(e,t,n,r){var i=this.getBoundingRect(),a=this._rawTransformable;a.transform=i.calculateTransform(new tr(e,t,n,r)),a.decomposeTransform(),this._updateTransform()},t.prototype.setCenter=function(e){e&&(this._center=e,this._updateCenterAndZoom())},t.prototype.setZoom=function(e){e=e||1;var t=this.zoomLimit;t&&(null!=t.max&&(e=Math.min(t.max,e)),null!=t.min&&(e=Math.max(t.min,e))),this._zoom=e,this._updateCenterAndZoom()},t.prototype.getDefaultCenter=function(){var e=this.getBoundingRect();return[e.x+e.width/2,e.y+e.height/2]},t.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},t.prototype.getZoom=function(){return this._zoom||1},t.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},t.prototype._updateCenterAndZoom=function(){var e=this._rawTransformable.getLocalTransform(),t=this._roamTransformable,n=this.getDefaultCenter(),r=this.getCenter(),i=this.getZoom();r=et([],r,e),n=et([],n,e),t.originX=r[0],t.originY=r[1],t.x=n[0]-r[0],t.y=n[1]-r[1],t.scaleX=t.scaleY=i,this._updateTransform()},t.prototype._updateTransform=function(){var e=this._roamTransformable,t=this._rawTransformable;t.parent=e,e.updateTransform(),t.updateTransform(),Rt(this.transform||(this.transform=[]),t.transform||[1,0,0,1,0,0]),this._rawTransform=t.getLocalTransform(),this.invTransform=this.invTransform||[],Qt(this.invTransform,this.transform),this.decomposeTransform()},t.prototype.getTransformInfo=function(){var e=this._roamTransformable.transform,t=this._rawTransformable;return{roamTransform:e?me(e):[1,0,0,1,0,0],rawScaleX:t.scaleX,rawScaleY:t.scaleY,rawX:t.x,rawY:t.y}},t.prototype.getViewRect=function(){return this._viewRect},t.prototype.getViewRectAfterRoam=function(){var e=this.getBoundingRect().clone();return e.applyTransform(this.transform),e},t.prototype.dataToPoint=function(e,t,n){var r=t?this._rawTransform:this.transform;return n=n||[],r?$S(n,e,r):De(n,e)},t.prototype.pointToData=function(e){var t=this.invTransform;return t?$S([],e,t):[e[0],e[1]]},t.prototype.convertToPixel=function(e,t,n){var r=qS(t);return r===this?r.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,t,n){var r=qS(t);return r===this?r.pointToData(n):null},t.prototype.containPoint=function(e){return this.getViewRectAfterRoam().contain(e[0],e[1])},t.dimensions=["x","y"],t}(Xt),KS=function(e){function t(t,n,r,i){var a=e.call(this,t)||this;a.dimensions=["lng","lat"],a.type="geo",a.map=n;var o=NS.load(n,r);return a._nameCoordMap=o.nameCoordMap,a._regionsMap=o.regionsMap,a._invertLongitute=null==i||i,a.regions=o.regions,a._rect=o.boundingRect,a}return g(t,e),t.prototype.containCoord=function(e){for(var t=this.regions,n=0;n<t.length;n++)if(t[n].contain(e))return!0;return!1},t.prototype.transformTo=function(e,t,n,r){var i=this.getBoundingRect(),a=this._invertLongitute;i=i.clone(),a&&(i.y=-i.y-i.height);var o=this._rawTransformable;o.transform=i.calculateTransform(new tr(e,t,n,r)),o.decomposeTransform(),a&&(o.scaleY=-o.scaleY),o.updateTransform(),this._updateTransform()},t.prototype.getRegion=function(e){return this._regionsMap.get(e)},t.prototype.getRegionByCoord=function(e){for(var t=this.regions,n=0;n<t.length;n++)if(t[n].contain(e))return t[n]},t.prototype.addGeoCoord=function(e,t){this._nameCoordMap.set(e,t)},t.prototype.getGeoCoord=function(e){return this._nameCoordMap.get(e)},t.prototype.getBoundingRect=function(){return this._rect},t.prototype.dataToPoint=function(e,t,n){if("string"==typeof e&&(e=this.getGeoCoord(e)),e)return WS.prototype.dataToPoint.call(this,e,t,n)},t.prototype.convertToPixel=function(e,t,n){var r=YS(t);return r===this?r.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,t,n){var r=YS(t);return r===this?r.pointToData(n):null},t}(WS);function YS(e){var t=e.geoModel,n=e.seriesModel;return t?t.coordinateSystem:n?n.coordinateSystem||(n.getReferringComponents("geo",na).models[0]||{}).coordinateSystem:null}G(KS,WS);var XS=KS;function JS(e,t){var n=e.get("boundingCoords");if(null!=n){var r=n[0],i=n[1];isNaN(r[0])||isNaN(r[1])||isNaN(i[0])||isNaN(i[1])||this.setBoundingRect(r[0],r[1],i[0]-r[0],i[1]-r[1])}var a,o,s,l=this.getBoundingRect(),c=e.get("layoutCenter"),u=e.get("layoutSize"),h=t.getWidth(),d=t.getHeight(),f=l.width/l.height*this.aspectScale,p=!1;if(c&&u&&(a=[mi(c[0],h),mi(c[1],d)],o=mi(u,Math.min(h,d)),isNaN(a[0])||isNaN(a[1])||isNaN(o)||(p=!0)),p)s={},f>1?(s.width=o,s.height=o/f):(s.height=o,s.width=o*f),s.y=a[1]-s.height/2,s.x=a[0]-s.width/2;else{var A=e.getBoxLayoutParams();A.aspect=f,s=yd(A,{width:h,height:d})}this.setViewRect(s.x,s.y,s.width,s.height),this.setCenter(e.get("center")),this.setZoom(e.get("zoom"))}var ZS=new(function(){function e(){this.dimensions=XS.prototype.dimensions}return e.prototype.create=function(e,t){var n=[];e.eachComponent("geo",function(e,r){var i=e.get("map"),a=e.get("aspectScale"),o=!0,s=ZA.retrieveMap(i);s&&s[0]&&"svg"===s[0].type?(null==a&&(a=1),o=!1):null==a&&(a=.75);var l=new XS(i+r,i,e.get("nameMap"),o);l.aspectScale=a,l.zoomLimit=e.get("scaleLimit"),n.push(l),e.coordinateSystem=l,l.model=e,l.resize=JS,l.resize(e,t)}),e.eachSeries(function(e){if("geo"===e.get("coordinateSystem")){var t=e.get("geoIndex")||0;e.coordinateSystem=n[t]}});var r={};return e.eachSeriesByType("map",function(e){if(!e.getHostGeoModel()){var t=e.getMapType();r[t]=r[t]||[],r[t].push(e)}}),q(r,function(e,r){var i=W(e,function(e){return e.get("nameMap")}),a=new XS(r,r,U(i));a.zoomLimit=pe.apply(null,W(e,function(e){return e.get("scaleLimit")})),n.push(a),a.resize=JS,a.aspectScale=e[0].get("aspectScale"),a.resize(e[0],t),q(e,function(e){e.coordinateSystem=a,function(e,t){q(t.get("geoCoord"),function(t,n){e.addGeoCoord(n,t)})}(a,e)})}),n},e.prototype.getFilledRegions=function(e,t,n){for(var r=(e||[]).slice(),i=Se(),a=0;a<r.length;a++)i.set(r[a].name,r[a]);return q(NS.load(t,n).regions,function(e){var t=e.name;!i.get(t)&&r.push({name:t})}),r},e}()),ek=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.prototype.init=function(t,n,r){e.prototype.init.call(this,t,n,r),zi(t,"label",["show"])},t.prototype.optionUpdated=function(){var e=this.option,t=this;e.regions=ZS.getFilledRegions(e.regions,e.map,e.nameMap);var n={};this._optionModelMap=K(e.regions||[],function(e,r){var i=r.name;return i&&(e.set(i,new fh(r,t)),r.selected&&(n[i]=!0)),e},Se()),e.selectedMap||(e.selectedMap=n)},t.prototype.getRegionModel=function(e){return this._optionModelMap.get(e)||new fh(null,this,this.ecModel)},t.prototype.getFormattedLabel=function(e,t){var n=this.getRegionModel(e),r="normal"===t?n.get(["label","formatter"]):n.get(["emphasis","label","formatter"]),i={name:e};return"function"==typeof r?(i.status=t,r(i)):"string"==typeof r?r.replace("{a}",null!=e?e:""):void 0},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.select=function(e){var t=this.option,n=t.selectedMode;n&&("multiple"!==n&&(t.selectedMap=null),(t.selectedMap||(t.selectedMap={}))[e]=!0)},t.prototype.unSelect=function(e){var t=this.option.selectedMap;t&&(t[e]=!1)},t.prototype.toggleSelected=function(e){this[this.isSelected(e)?"unSelect":"select"](e)},t.prototype.isSelected=function(e){var t=this.option.selectedMap;return!(!t||!t[e])},t.prototype._initSelectedMapFromData=function(){},t.type="geo",t.layoutMode="box",t.defaultOption={zlevel:0,z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",color:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},t}(Bd);function tk(e,t,n){var r=e.getZoom(),i=e.getCenter(),a=t.zoom,o=e.dataToPoint(i);if(null!=t.dx&&null!=t.dy&&(o[0]-=t.dx,o[1]-=t.dy,e.setCenter(e.pointToData(o))),null!=a){if(n){var s=n.min||0,l=n.max||1/0;a=Math.max(Math.min(r*a,l),s)/r}e.scaleX*=a,e.scaleY*=a;var c=(t.originX-e.x)*(a-1),u=(t.originY-e.y)*(a-1);e.x-=c,e.y-=u,e.updateTransform(),e.setCenter(e.pointToData(o)),e.setZoom(a*r)}return{center:e.getCenter(),zoom:e.getZoom()}}var nk=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.prototype.init=function(e,t){var n=new jS(t);this._mapDraw=n,this.group.add(n.group),this._api=t},t.prototype.render=function(e,t,n,r){var i=this._mapDraw;e.get("show")?i.draw(e,t,n,this,r):this._mapDraw.group.removeAll(),i.group.on("click",this._handleRegionClick,this),i.group.silent=e.get("silent"),this._model=e,this.updateSelectStatus(e,t,n)},t.prototype._handleRegionClick=function(e){for(var t,n=e.target;n&&null==(t=Gs(n).eventData);)n=n.__hostTarget||n.parent;t&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:t.name})},t.prototype.updateSelectStatus=function(e,t,n){var r=this;this._mapDraw.group.traverse(function(e){var t=Gs(e).eventData;if(t)return r._model.isSelected(t.name)?n.enterSelect(e):n.leaveSelect(e),!0})},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},t.type="geo",t}(aA);function rk(e){function t(t,n){n.update="geo:updateSelectStatus",e.registerAction(n,function(e,n){var r={};return n.eachComponent({mainType:"geo",query:e},function(n){n[t](e.name),q(n.coordinateSystem.regions,function(e){r[e.name]=n.isSelected(e.name)||!1})}),{selected:r,name:e.name}})}e.registerCoordinateSystem("geo",ZS),e.registerComponentModel(ek),e.registerComponentView(nk),t("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),t("select",{type:"geoSelect",event:"geoselected"}),t("unSelect",{type:"geoUnSelect",event:"geounselected"}),e.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(e,t){var n=e.componentType||"series";t.eachComponent({mainType:n,query:e},function(t){var r=t.coordinateSystem;if("geo"===r.type){var i=tk(r,e,t.get("scaleLimit"));t.setCenter&&t.setCenter(i.center),t.setZoom&&t.setZoom(i.zoom),"series"===n&&q(t.seriesGroup,function(e){e.setCenter(i.center),e.setZoom(i.zoom)})}})})}function ik(e,t){var n=e.isExpand?e.children:[],r=e.parentNode.children,i=e.hierNode.i?r[e.hierNode.i-1]:null;if(n.length){!function(e){var t=e.children,n=t.length,r=0,i=0;for(;--n>=0;){var a=t[n];a.hierNode.prelim+=r,a.hierNode.modifier+=r,i+=a.hierNode.change,r+=a.hierNode.shift+i}}(e);var a=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;i?(e.hierNode.prelim=i.hierNode.prelim+t(e,i),e.hierNode.modifier=e.hierNode.prelim-a):e.hierNode.prelim=a}else i&&(e.hierNode.prelim=i.hierNode.prelim+t(e,i));e.parentNode.hierNode.defaultAncestor=function(e,t,n,r){if(t){for(var i=e,a=e,o=a.parentNode.children[0],s=t,l=i.hierNode.modifier,c=a.hierNode.modifier,u=o.hierNode.modifier,h=s.hierNode.modifier;s=lk(s),a=ck(a),s&&a;){i=lk(i),o=ck(o),i.hierNode.ancestor=e;var d=s.hierNode.prelim+h-a.hierNode.prelim-c+r(s,a);d>0&&(hk(uk(s,e,n),e,d),c+=d,l+=d),h+=s.hierNode.modifier,c+=a.hierNode.modifier,l+=i.hierNode.modifier,u+=o.hierNode.modifier}s&&!lk(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=h-l),a&&!ck(o)&&(o.hierNode.thread=a,o.hierNode.modifier+=c-u,n=e)}return n}(e,i,e.parentNode.hierNode.defaultAncestor||r[0],t)}function ak(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function ok(e){return arguments.length?e:dk}function sk(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}function lk(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function ck(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function uk(e,t,n){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:n}function hk(e,t,n){var r=n/(t.hierNode.i-e.hierNode.i);t.hierNode.change-=r,t.hierNode.shift+=n,t.hierNode.modifier+=n,t.hierNode.prelim+=n,e.hierNode.change+=r}function dk(e,t){return e.parentNode===t.parentNode?1:2}var fk=function(){return function(){this.parentPoint=[],this.childPoints=[]}}(),pk=function(e){function t(t){return e.call(this,t)||this}return g(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new fk},t.prototype.buildPath=function(e,t){var n=t.childPoints,r=n.length,i=t.parentPoint,a=n[0],o=n[r-1];if(1===r)return e.moveTo(i[0],i[1]),void e.lineTo(a[0],a[1]);var s=t.orient,l="TB"===s||"BT"===s?0:1,c=1-l,u=mi(t.forkPosition,1),h=[];h[l]=i[l],h[c]=i[c]+(o[c]-i[c])*u,e.moveTo(i[0],i[1]),e.lineTo(h[0],h[1]),e.moveTo(a[0],a[1]),h[l]=a[l],e.lineTo(h[0],h[1]),h[l]=o[l],e.lineTo(h[0],h[1]),e.lineTo(o[0],o[1]);for(var d=1;d<r-1;d++){var f=n[d];e.moveTo(f[0],f[1]),h[l]=f[l],e.lineTo(h[0],h[1])}},t}(vs);function Ak(e,t){var n=e.getItemLayout(t);return n&&!isNaN(n.x)&&!isNaN(n.y)}function gk(e,t,n,r,i){var a=!n,o=e.tree.getNodeByDataIndex(t),s=o.getModel(),l=o.getVisual("style").fill,c=!1===o.isExpand&&0!==o.children.length?l:"#fff",u=e.tree.root,h=o.parentNode===u?o:o.parentNode||o,d=e.getItemGraphicEl(h.dataIndex),f=h.getLayout(),p=d?{x:d.__oldX,y:d.__oldY,rawX:d.__radialOldRawX,rawY:d.__radialOldRawY}:f,A=o.getLayout();a?((n=new Bx(e,t,null,{symbolInnerColor:c,useNameLabel:!0})).x=p.x,n.y=p.y):n.updateData(e,t,null,{symbolInnerColor:c,useNameLabel:!0}),n.__radialOldRawX=n.__radialRawX,n.__radialOldRawY=n.__radialRawY,n.__radialRawX=A.rawX,n.__radialRawY=A.rawY,r.add(n),e.setItemGraphicEl(t,n),n.__oldX=n.x,n.__oldY=n.y,_u(n,{x:A.x,y:A.y},i);var g=n.getSymbolPath();if("radial"===i.get("layout")){var m=u.children[0],v=m.getLayout(),y=m.children.length,b=void 0,w=void 0;if(A.x===v.x&&!0===o.isExpand){var x={x:(m.children[0].getLayout().x+m.children[y-1].getLayout().x)/2,y:(m.children[0].getLayout().y+m.children[y-1].getLayout().y)/2};(b=Math.atan2(x.y-v.y,x.x-v.x))<0&&(b=2*Math.PI+b),(w=x.x<v.x)&&(b-=Math.PI)}else(b=Math.atan2(A.y-v.y,A.x-v.x))<0&&(b=2*Math.PI+b),0===o.children.length||0!==o.children.length&&!1===o.isExpand?(w=A.x<v.x)&&(b-=Math.PI):(w=A.x>v.x)||(b-=Math.PI);var _=w?"left":"right",C=s.getModel("label"),S=C.get("rotate"),k=S*(Math.PI/180),B=g.getTextContent();B&&(g.setTextConfig({position:C.get("position")||_,rotation:null==S?-b:k,origin:"center"}),B.setStyle("verticalAlign","middle"))}var E=s.get(["emphasis","focus"]),T="ancestor"===E?o.getAncestorsIndices():"descendant"===E?o.getDescendantIndices():null;T&&(Gs(n).focus=T),function(e,t,n,r,i,a,o,s){var l=t.getModel(),c=e.get("edgeShape"),u=e.get("layout"),h=e.getOrient(),d=e.get(["lineStyle","curveness"]),f=e.get("edgeForkPosition"),p=l.getModel("lineStyle").getLineStyle(),A=r.__edge;if("curve"===c)t.parentNode&&t.parentNode!==n&&(A||(A=r.__edge=new Gc({shape:vk(u,h,d,i,i)})),_u(A,{shape:vk(u,h,d,a,o)},e));else if("polyline"===c)if("orthogonal"===u){if(t!==n&&t.children&&0!==t.children.length&&!0===t.isExpand){for(var g=t.children,m=[],v=0;v<g.length;v++){var y=g[v].getLayout();m.push([y.x,y.y])}A||(A=r.__edge=new pk({shape:{parentPoint:[o.x,o.y],childPoints:[[o.x,o.y]],orient:h,forkPosition:f}})),_u(A,{shape:{parentPoint:[o.x,o.y],childPoints:m}},e)}}else 0;A&&(A.useStyle(j({strokeNoScale:!0,fill:null},p)),Ol(A,l,"lineStyle"),wl(A),s.add(A))}(i,o,u,n,p,f,A,r),n.__edge&&(n.onHoverStateChange=function(t){if("blur"!==t){var r=o.parentNode&&e.getItemGraphicEl(o.parentNode.dataIndex);r&&r.hoverState===Ys||yl(n.__edge,t)}})}function mk(e,t,n,r,i){for(var a,o=e.tree.getNodeByDataIndex(t),s=e.tree.root,l=o.parentNode===s?o:o.parentNode||o;null==(a=l.getLayout());)l=l.parentNode===s?l:l.parentNode||l;var c={duration:i.get("animationDurationUpdate"),easing:i.get("animationEasingUpdate")};Su(n,{x:a.x+1,y:a.y+1},i,{cb:function(){r.remove(n),e.setItemGraphicEl(t,null)},removeOpt:c}),n.fadeOut(null,{fadeLabel:!0,animation:c});var u=e.getItemGraphicEl(l.dataIndex).__edge,h=n.__edge||(!1===l.isExpand||1===l.children.length?u:void 0),d=i.get("edgeShape"),f=i.get("layout"),p=i.get("orient"),A=i.get(["lineStyle","curveness"]);h&&("curve"===d?Su(h,{shape:vk(f,p,A,a,a),style:{opacity:0}},i,{cb:function(){r.remove(h)},removeOpt:c}):"polyline"===d&&"orthogonal"===i.get("layout")&&Su(h,{shape:{parentPoint:[a.x,a.y],childPoints:[[a.x,a.y]]},style:{opacity:0}},i,{cb:function(){r.remove(h)},removeOpt:c}))}function vk(e,t,n,r,i){var a,o,s,l,c,u,h,d;if("radial"===e){c=r.rawX,h=r.rawY,u=i.rawX,d=i.rawY;var f=sk(c,h),p=sk(c,h+(d-h)*n),A=sk(u,d+(h-d)*n),g=sk(u,d);return{x1:f.x||0,y1:f.y||0,x2:g.x||0,y2:g.y||0,cpx1:p.x||0,cpy1:p.y||0,cpx2:A.x||0,cpy2:A.y||0}}return c=r.x,h=r.y,u=i.x,d=i.y,"LR"!==t&&"RL"!==t||(a=c+(u-c)*n,o=h,s=u+(c-u)*n,l=d),"TB"!==t&&"BT"!==t||(a=c,o=h+(d-h)*n,s=u,l=d+(h-d)*n),{x1:c,y1:h,x2:u,y2:d,cpx1:a,cpy1:o,cpx2:s,cpy2:l}}var yk=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._mainGroup=new ii,n}return g(t,e),t.prototype.init=function(e,t){this._controller=new lS(t.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},t.prototype.render=function(e,t,n){var r=e.getData(),i=e.layoutInfo,a=this._mainGroup;"radial"===e.get("layout")?(a.x=i.x+i.width/2,a.y=i.y+i.height/2):(a.x=i.x,a.y=i.y),this._updateViewCoordSys(e),this._updateController(e,t,n);var o=this._data;r.diff(o).add(function(t){Ak(r,t)&&gk(r,t,null,a,e)}).update(function(t,n){var i=o.getItemGraphicEl(n);Ak(r,t)?gk(r,t,i,a,e):i&&mk(o,n,i,a,e)}).remove(function(t){var n=o.getItemGraphicEl(t);n&&mk(o,t,n,a,e)}).execute(),this._nodeScaleRatio=e.get("nodeScaleRatio"),this._updateNodeAndLinkScale(e),!0===e.get("expandAndCollapse")&&r.eachItemGraphicEl(function(t,r){t.off("click").on("click",function(){n.dispatchAction({type:"treeExpandAndCollapse",seriesId:e.id,dataIndex:r})})}),this._data=r},t.prototype._updateViewCoordSys=function(e){var t=e.getData(),n=[];t.each(function(e){var r=t.getItemLayout(e);!r||isNaN(r.x)||isNaN(r.y)||n.push([+r.x,+r.y])});var r=[],i=[];So(n,r,i);var a=this._min,o=this._max;i[0]-r[0]==0&&(r[0]=a?a[0]:r[0]-1,i[0]=o?o[0]:i[0]+1),i[1]-r[1]==0&&(r[1]=a?a[1]:r[1]-1,i[1]=o?o[1]:i[1]+1);var s=e.coordinateSystem=new WS;s.zoomLimit=e.get("scaleLimit"),s.setBoundingRect(r[0],r[1],i[0]-r[0],i[1]-r[1]),s.setCenter(e.get("center")),s.setZoom(e.get("zoom")),this.group.attr({x:s.x,y:s.y,scaleX:s.scaleX,scaleY:s.scaleY}),this._min=r,this._max=i},t.prototype._updateController=function(e,t,n){var r=this,i=this._controller,a=this._controllerHost,o=this.group;i.setPointerChecker(function(t,r,i){var a=o.getBoundingRect();return a.applyTransform(o.transform),a.contain(r,i)&&!dS(t,n,e)}),i.enable(e.get("roam")),a.zoomLimit=e.get("scaleLimit"),a.zoom=e.coordinateSystem.getZoom(),i.off("pan").off("zoom").on("pan",function(t){cS(a,t.dx,t.dy),n.dispatchAction({seriesId:e.id,type:"treeRoam",dx:t.dx,dy:t.dy})}).on("zoom",function(t){uS(a,t.scale,t.originX,t.originY),n.dispatchAction({seriesId:e.id,type:"treeRoam",zoom:t.scale,originX:t.originX,originY:t.originY}),r._updateNodeAndLinkScale(e),n.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(e){var t=e.getData(),n=this._getNodeGlobalScale(e);t.eachItemGraphicEl(function(e,t){e.setSymbolScale(n)})},t.prototype._getNodeGlobalScale=function(e){var t=e.coordinateSystem;if("view"!==t.type)return 1;var n=this._nodeScaleRatio,r=t.scaleX||1;return((t.getZoom()-1)*n+1)/r},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},t.type="tree",t}(AA),bk=Zi();function wk(e,t){if(bk(r=this).mainData===r){var n=H({},bk(this).datas);n[this.dataType]=t,kk(t,n,e)}else Bk(t,this.dataType,bk(this).mainData,e);var r;return t}function xk(e,t){return e.struct&&e.struct.update(),t}function _k(e,t){return q(bk(t).datas,function(n,r){n!==t&&Bk(n.cloneShallow(),r,t,e)}),t}function Ck(e){var t=bk(this).mainData;return null==e||null==t?t:bk(t).datas[e]}function Sk(){var e=bk(this).mainData;return null==e?[{data:e}]:W(J(bk(e).datas),function(t){return{type:t,data:bk(e).datas[t]}})}function kk(e,t,n){bk(e).datas={},q(t,function(t,r){Bk(t,r,e,n)})}function Bk(e,t,n,r){bk(n).datas[t]=e,bk(e).mainData=n,e.dataType=t,r.struct&&(e[r.structAttr]=r.struct,r.struct[r.datasAttr[t]]=e),e.getLinkedData=Ck,e.getLinkedDataAll=Sk}var Ek=function(e){var t=e.mainData,n=e.datas;n||(n={main:t},e.datasAttr={main:"data"}),e.datas=e.mainData=null,kk(t,n,e),q(n,function(n){q(t.TRANSFERABLE_METHODS,function(t){n.wrapMethod(t,ee(wk,e))})}),t.wrapMethod("cloneShallow",ee(_k,e)),q(t.CHANGABLE_METHODS,function(n){t.wrapMethod(n,ee(xk,e))}),ye(n[t.dataType]===t)},Tk=function(){function e(e,t){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=e||"",this.hostTree=t}return e.prototype.isRemoved=function(){return this.dataIndex<0},e.prototype.eachNode=function(e,t,n){"function"==typeof e&&(n=t,t=e,e=null),re(e=e||{})&&(e={order:e});var r,i=e.order||"preorder",a=this[e.attr||"children"];"preorder"===i&&(r=t.call(n,this));for(var o=0;!r&&o<a.length;o++)a[o].eachNode(e,t,n);"postorder"===i&&t.call(n,this)},e.prototype.updateDepthAndHeight=function(e){var t=0;this.depth=e;for(var n=0;n<this.children.length;n++){var r=this.children[n];r.updateDepthAndHeight(e+1),r.height>t&&(t=r.height)}this.height=t+1},e.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,n=this.children,r=n.length;t<r;t++){var i=n[t].getNodeById(e);if(i)return i}},e.prototype.contains=function(e){if(e===this)return!0;for(var t=0,n=this.children,r=n.length;t<r;t++){var i=n[t].contains(e);if(i)return i}},e.prototype.getAncestors=function(e){for(var t=[],n=e?this:this.parentNode;n;)t.push(n),n=n.parentNode;return t.reverse(),t},e.prototype.getAncestorsIndices=function(){for(var e=[],t=this;t;)e.push(t.dataIndex),t=t.parentNode;return e.reverse(),e},e.prototype.getDescendantIndices=function(){var e=[];return this.eachNode(function(t){e.push(t.dataIndex)}),e},e.prototype.getValue=function(e){var t=this.hostTree.data;return t.get(t.getDimension(e||"value"),this.dataIndex)},e.prototype.setLayout=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},e.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},e.prototype.getModel=function(e){if(!(this.dataIndex<0))return this.hostTree.data.getItemModel(this.dataIndex).getModel(e)},e.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},e.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},e.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},e.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},e.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},e.prototype.isAncestorOf=function(e){for(var t=e.parentNode;t;){if(t===this)return!0;t=t.parentNode}return!1},e.prototype.isDescendantOf=function(e){return e!==this&&e.isAncestorOf(this)},e}();var Ik=function(){function e(e){this.type="tree",this._nodes=[],this.hostModel=e}return e.prototype.eachNode=function(e,t,n){this.root.eachNode(e,t,n)},e.prototype.getNodeByDataIndex=function(e){var t=this.data.getRawIndex(e);return this._nodes[t]},e.prototype.getNodeById=function(e){return this.root.getNodeById(e)},e.prototype.update=function(){for(var e=this.data,t=this._nodes,n=0,r=t.length;n<r;n++)t[n].dataIndex=-1;for(n=0,r=e.count();n<r;n++)t[e.getRawIndex(n)].dataIndex=n},e.prototype.clearLayouts=function(){this.data.clearItemLayouts()},e.createTree=function(t,n,r){var i=new e(n),a=[],o=1;!function e(t,n){var r=t.value;o=Math.max(o,te(r)?r.length:1);a.push(t);var s=new Tk(Ki(t.name,""),i);n?function(e,t){var n=t.children;if(e.parentNode===t)return;n.push(e),e.parentNode=t}(s,n):i.root=s;i._nodes.push(s);var l=t.children;if(l)for(var c=0;c<l.length;c++)e(l[c],s)}(t),i.root.updateDepthAndHeight(0);var s=Ly(a,{coordDimensions:["value"],dimensionsCount:o}),l=new Dy(s,n);return l.initData(a),r&&r(l),Ek({mainData:l,struct:i,structAttr:"tree"}),i.update(),i},e}(),Mk=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return g(t,e),t.prototype.getInitialData=function(e){var t={name:e.name,children:e.data},n=e.leaves||{},r=new fh(n,this,this.ecModel),i=Ik.createTree(t,this,function(e){e.wrapMethod("getItemModel",function(e,t){var n=i.getNodeByDataIndex(t);return n.children.length&&n.isExpand||(e.parentModel=r),e})});var a=0;i.eachNode("preorder",function(e){e.depth>a&&(a=e.depth)});var o=e.expandAndCollapse&&e.initialTreeDepth>=0?e.initialTreeDepth:a;return i.root.eachNode("preorder",function(e){var t=e.hostTree.data.getRawDataItem(e.dataIndex);e.isExpand=t&&null!=t.collapsed?!t.collapsed:e.depth<=o}),i.data},t.prototype.getOrient=function(){var e=this.get("orient");return"horizontal"===e?e="LR":"vertical"===e&&(e="TB"),e},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.formatTooltip=function(e,t,n){for(var r=this.getData().tree,i=r.root.children[0],a=r.getNodeByDataIndex(e),o=a.getValue(),s=a.name;a&&a!==i;)s=a.parentNode.name+"."+s,a=a.parentNode;return Lp("nameValue",{name:s,value:o,noValue:isNaN(o)||null==o})},t.type="series.tree",t.layoutMode="box",t.defaultOption={zlevel:0,z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderColor:"#c23531",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},t}(rA);function Fk(e,t){for(var n,r=[e];n=r.pop();)if(t(n),n.isExpand){var i=n.children;if(i.length)for(var a=i.length-1;a>=0;a--)r.push(i[a])}}function Dk(e,t){e.eachSeriesByType("tree",function(e){!function(e,t){var n=function(e,t){return yd(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}(e,t);e.layoutInfo=n;var r=e.get("layout"),i=0,a=0,o=null;"radial"===r?(i=2*Math.PI,a=Math.min(n.height,n.width)/2,o=ok(function(e,t){return(e.parentNode===t.parentNode?1:2)/e.depth})):(i=n.width,a=n.height,o=ok());var s=e.getData().tree.root,l=s.children[0];if(l){!function(e){var t=e;t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var n,r,i=[t];n=i.pop();)if(r=n.children,n.isExpand&&r.length)for(var a=r.length-1;a>=0;a--){var o=r[a];o.hierNode={defaultAncestor:null,ancestor:o,prelim:0,modifier:0,change:0,shift:0,i:a,thread:null},i.push(o)}}(s),function(e,t,n){for(var r,i=[e],a=[];r=i.pop();)if(a.push(r),r.isExpand){var o=r.children;if(o.length)for(var s=0;s<o.length;s++)i.push(o[s])}for(;r=a.pop();)t(r,n)}(l,ik,o),s.hierNode.modifier=-l.hierNode.prelim,Fk(l,ak);var c=l,u=l,h=l;Fk(l,function(e){var t=e.getLayout().x;t<c.getLayout().x&&(c=e),t>u.getLayout().x&&(u=e),e.depth>h.depth&&(h=e)});var d=c===u?1:o(c,u)/2,f=d-c.getLayout().x,p=0,A=0,g=0,m=0;if("radial"===r)p=i/(u.getLayout().x+d+f),A=a/(h.depth-1||1),Fk(l,function(e){g=(e.getLayout().x+f)*p,m=(e.depth-1)*A;var t=sk(g,m);e.setLayout({x:t.x,y:t.y,rawX:g,rawY:m},!0)});else{var v=e.getOrient();"RL"===v||"LR"===v?(A=a/(u.getLayout().x+d+f),p=i/(h.depth-1||1),Fk(l,function(e){m=(e.getLayout().x+f)*A,g="LR"===v?(e.depth-1)*p:i-(e.depth-1)*p,e.setLayout({x:g,y:m},!0)})):"TB"!==v&&"BT"!==v||(p=i/(u.getLayout().x+d+f),A=a/(h.depth-1||1),Fk(l,function(e){g=(e.getLayout().x+f)*p,m="TB"===v?(e.depth-1)*A:a-(e.depth-1)*A,e.setLayout({x:g,y:m},!0)}))}}}(e,t)})}function Pk(e){e.eachSeriesByType("tree",function(e){var t=e.getData();t.tree.eachNode(function(e){var n=e.getModel().getModel("itemStyle").getItemStyle();H(t.ensureUniqueItemVisual(e.dataIndex,"style"),n)})})}function Ok(e,t,n){if(e&&z(t,e.type)>=0){var r=n.getData().tree.root,i=e.targetNode;if("string"==typeof i&&(i=r.getNodeById(i)),i&&r.contains(i))return{node:i};var a=e.targetNodeId;if(null!=a&&(i=r.getNodeById(a)))return{node:i}}}function Lk(e){for(var t=[];e;)(e=e.parentNode)&&t.push(e);return t.reverse()}function Rk(e,t){return z(Lk(e),t)>=0}function Nk(e,t){for(var n=[];e;){var r=e.dataIndex;n.push({name:e.name,dataIndex:r,value:t.getRawValue(r)}),e=e.parentNode}return n.reverse(),n}var Uk=function(){},Hk=["treemapZoomToNode","treemapRender","treemapMove"];function jk(e){var t={};e.getData().tree.eachNode(function(n){for(var r=n;r&&r.depth>1;)r=r.parentNode;var i=ef(e.ecModel,r.name||r.dataIndex+"",t);n.setVisual("decal",i)})}var Qk=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.preventUsingHoverLayer=!0,n}return g(t,e),t.prototype.getInitialData=function(e,t){var n={name:e.name,children:e.data};!function e(t){var n=0;q(t.children,function(t){e(t);var r=t.value;te(r)&&(r=r[0]),n+=r});var r=t.value;te(r)&&(r=r[0]);(null==r||isNaN(r))&&(r=n);r<0&&(r=0);te(t.value)?t.value[0]=r:t.value=r}(n);var r=e.levels||[],i=this.designatedVisualItemStyle={},a=new fh({itemStyle:i},this,t),o=W((r=e.levels=function(e,t){var n,r,i=Qi(t.get("color")),a=Qi(t.get(["aria","decal","decals"]));if(!i)return;q(e=e||[],function(e){var t=new fh(e),i=t.get("color"),a=t.get("decal");(t.get(["itemStyle","color"])||i&&"none"!==i)&&(n=!0),(t.get(["itemStyle","decal"])||a&&"none"!==a)&&(r=!0)});var o=e[0]||(e[0]={});n||(o.color=i.slice());!r&&a&&(o.decal=a.slice());return e}(r,t))||[],function(e){return new fh(e,a,t)},this),s=Ik.createTree(n,this,function(e){e.wrapMethod("getItemModel",function(e,t){var n=s.getNodeByDataIndex(t),r=o[n.depth];return e.parentModel=r||a,e})});return s.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(e,t,n){var r=this.getData(),i=this.getRawValue(e);return Lp("nameValue",{name:r.getName(e),value:i})},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(t);return n.treePathInfo=Nk(r,this),n},t.prototype.setLayoutInfo=function(e){this.layoutInfo=this.layoutInfo||{},H(this.layoutInfo,e)},t.prototype.mapIdToIndex=function(e){var t=this._idIndexMap;t||(t=this._idIndexMap=Se(),this._idIndexMapCount=0);var n=t.get(e);return null==n&&t.set(e,n=this._idIndexMapCount++),n},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;e&&(e===t||t.contains(e))||(this._viewRoot=t)},t.prototype.enableAriaDecal=function(){jk(this)},t.type="series.treemap",t.layoutMode="box",t.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.1024,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],ellipsis:!0,verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},t}(rA),zk=5;function Vk(e,t,n,r,i,a){var o=[[i?e:e-zk,t],[e+n,t],[e+n,t+r],[i?e:e-zk,t+r]];return!a&&o.splice(2,0,[e+n+zk,t+r/2]),!i&&o.push([e,t+r/2]),o}function Gk(e,t,n){Gs(e).eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.componentIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&Nk(n,t)}}var $k=function(){function e(e){this.group=new ii,e.add(this.group)}return e.prototype.render=function(e,t,n,r){var i=e.getModel("breadcrumb"),a=this.group;if(a.removeAll(),i.get("show")&&n){var o=i.getModel("itemStyle"),s=o.getModel("textStyle"),l={pos:{left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,l,s),this._renderContent(e,l,o,s,r),bd(a,l.pos,l.box)}},e.prototype._prepare=function(e,t,n){for(var r=e;r;r=r.parentNode){var i=Ki(r.getModel().get("name"),""),a=n.getTextRect(i),o=Math.max(a.width+16,t.emptyItemWidth);t.totalWidth+=o+8,t.renderList.push({node:r,text:i,width:o})}},e.prototype._renderContent=function(e,t,n,r,i){for(var a,o,s,l,c,u,h,d,f,p=0,A=t.emptyItemWidth,g=e.get(["breadcrumb","height"]),m=(a=t.pos,o=t.box,l=o.width,c=o.height,u=mi(a.left,l),h=mi(a.top,c),d=mi(a.right,l),f=mi(a.bottom,c),(isNaN(u)||isNaN(parseFloat(a.left)))&&(u=0),(isNaN(d)||isNaN(parseFloat(a.right)))&&(d=l),(isNaN(h)||isNaN(parseFloat(a.top)))&&(h=0),(isNaN(f)||isNaN(parseFloat(a.bottom)))&&(f=c),s=td(s||0),{width:Math.max(d-u-s[1]-s[3],0),height:Math.max(f-h-s[0]-s[2],0)}),v=t.totalWidth,y=t.renderList,b=y.length-1;b>=0;b--){var w=y[b],x=w.node,_=w.width,C=w.text;v>m.width&&(v-=_-A,_=A,C=null);var S=new Dc({shape:{points:Vk(p,0,_,g,b===y.length-1,0===b)},style:j(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new Vs({style:{text:C,fill:r.getTextColor(),font:r.getFont()}}),textConfig:{position:"inside"},z:10,onclick:ee(i,x)});S.disableLabelAnimation=!0,this.group.add(S),Gk(S,e,x),p+=_+8}},e.prototype.remove=function(){this.group.removeAll()},e}(),qk=function(){function e(){this._storage=[],this._elExistsMap={}}return e.prototype.add=function(e,t,n,r,i){return!this._elExistsMap[e.id]&&(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:n,delay:r,easing:i}),!0)},e.prototype.finished=function(e){return this._finishedCallback=e,this},e.prototype.start=function(){for(var e=this,t=this._storage.length,n=function(){--t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},r=0,i=this._storage.length;r<i;r++){var a=this._storage[r];a.el.animateTo(a.target,{duration:a.duration,delay:a.delay,easing:a.easing,setToFinal:!0,done:n,aborted:n})}return this},e}();var Wk=ii,Kk=Ds,Yk="label",Xk="upperLabel",Jk=10,Zk=1,eB=2,tB=va([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),nB=function(e){var t=tB(e);return t.stroke=t.fill=t.lineWidth=null,t},rB=Zi();var iB=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._state="ready",n._storage={nodeGroup:[],background:[],content:[]},n}return g(t,e),t.prototype.render=function(e,t,n,r){if(!(z(t.findComponents({mainType:"series",subType:"treemap",query:r}),e)<0)){this.seriesModel=e,this.api=n,this.ecModel=t;var i=Ok(r,["treemapZoomToNode","treemapRootToNode"],e),a=r&&r.type,o=e.layoutInfo,s=!this._oldTree,l=this._storage,c="treemapRootToNode"===a&&i&&l?{rootNodeGroup:l.nodeGroup[i.node.getRawIndex()],direction:r.direction}:null,u=this._giveContainerGroup(o),h=this._doRender(u,e,c);s||a&&"treemapZoomToNode"!==a&&"treemapRootToNode"!==a?h.renderFinally():this._doAnimation(u,h,e,c),this._resetController(n),this._renderBreadcrumb(e,n,i)}},t.prototype._giveContainerGroup=function(e){var t=this._containerGroup;return t||(t=this._containerGroup=new Wk,this._initEvents(t),this.group.add(t)),t.x=e.x,t.y=e.y,t},t.prototype._doRender=function(e,t,n){var r=t.getData().tree,i=this._oldTree,a={nodeGroup:[],background:[],content:[]},o={nodeGroup:[],background:[],content:[]},s=this._storage,l=[];function c(e,r,i,c){return function(e,t,n,r,i,a,o,s,l,c){if(!o)return;var u=o.getLayout(),h=e.getData(),d=o.getModel();if(h.setItemGraphicEl(o.dataIndex,null),!u||!u.isInView)return;var f=u.width,p=u.height,A=u.borderWidth,g=u.invisible,m=o.getRawIndex(),v=s&&s.getRawIndex(),y=o.viewChildren,b=u.upperHeight,w=y&&y.length,x=d.getModel("itemStyle"),_=d.getModel(["emphasis","itemStyle"]),C=d.getModel(["blur","itemStyle"]),S=d.getModel(["select","itemStyle"]),k=x.get("borderRadius")||0,B=L("nodeGroup",Wk);if(!B)return;if(l.add(B),B.x=u.x||0,B.y=u.y||0,B.markRedraw(),rB(B).nodeWidth=f,rB(B).nodeHeight=p,u.isAboveViewRoot)return B;var E=L("background",Kk,c,Zk);E&&function(t,n,r){var i=Gs(n);if(i.dataIndex=o.dataIndex,i.seriesIndex=e.seriesIndex,n.setShape({x:0,y:0,width:f,height:p,r:k}),g)D(n);else{n.invisible=!1;var a=o.getVisual("style"),s=a.stroke,l=nB(x);l.fill=s;var c=tB(_);c.fill=_.get("borderColor");var u=tB(C);u.fill=C.get("borderColor");var h=tB(S);if(h.fill=S.get("borderColor"),r){var d=f-2*A;P(n,s,d,b,a.opacity,{x:A,y:0,width:d,height:b})}else n.removeTextContent();n.setStyle(l),n.ensureState("emphasis").style=c,n.ensureState("blur").style=u,n.ensureState("select").style=h,wl(n)}t.add(n)}(B,E,w&&u.upperLabelHeight);var T=d.get(["emphasis","focus"]),I=d.get(["emphasis","blurScope"]),M="ancestor"===T?o.getAncestorsIndices():"descendant"===T?o.getDescendantIndices():null;if(w)Rl(B)&&Ll(B,!1),E&&(Ll(E,!0),h.setItemGraphicEl(o.dataIndex,E),Fl(E,M||T,I));else{var F=L("content",Kk,c,eB);F&&function(t,n){var r=Gs(n);r.dataIndex=o.dataIndex,r.seriesIndex=e.seriesIndex;var i=Math.max(f-2*A,0),a=Math.max(p-2*A,0);if(n.culling=!0,n.setShape({x:A,y:A,width:i,height:a,r:k}),g)D(n);else{n.invisible=!1;var s=o.getVisual("style"),l=s.fill,c=nB(x);c.fill=l,c.decal=s.decal;var u=tB(_),h=tB(C),d=tB(S);P(n,l,i,s.opacity,a),n.setStyle(c),n.ensureState("emphasis").style=u,n.ensureState("blur").style=h,n.ensureState("select").style=d,wl(n)}t.add(n)}(B,F),E&&Rl(E)&&Ll(E,!1),Ll(B,!0),h.setItemGraphicEl(o.dataIndex,B),Fl(B,M||T,I)}return B;function D(e){!e.invisible&&a.push(e)}function P(t,n,r,i,a,s){var l=d.getModel(s?Xk:Yk),c=pe(e.getFormattedLabel(o.dataIndex,"normal",null,null,l.get("formatter")),Ki(d.get("name"),null));if(!s&&u.isLeafRoot){var h=e.get("drillDownIcon",!0);c=h?h+" "+c:c}var f=l.getShallow("show");zu(t,Vu(d,s?Xk:Yk),{defaultText:f?c:null,inheritColor:n,defaultOpacity:r,labelFetcher:e,labelDataIndex:o.dataIndex});var p=t.getTextContent(),A=p.style,g=ve(A.padding||0);s&&(t.setTextConfig({layoutRect:s}),p.disableLabelLayout=!0),p.beforeUpdate=function(){var e=Math.max((s?s.width:t.shape.width)-g[1]-g[3],0),n=Math.max((s?s.height:t.shape.height)-g[0]-g[2],0);A.width===e&&A.height===n||p.setStyle({width:e,height:n})},A.truncateMinChar=2,A.lineOverflow="truncate",O(A,s,u);var m=p.getState("emphasis");O(m?m.style:null,s,u)}function O(t,n,r){var i=t?t.text:null;if(!n&&r.isLeafRoot&&null!=i){var a=e.get("drillDownIcon",!0);t.text=a?a+" "+i:i}}function L(e,a,s,l){var c=null!=v&&n[e][v],u=i[e];return c?(n[e][v]=null,function(e,t){var n=e[m]={};t instanceof Wk?(n.oldX=t.x,n.oldY=t.y):n.oldShape=H({},t.shape)}(u,c)):g||((c=new a)instanceof Ga&&(c.z=function(e,t){var n=e*Jk+t;return(n-1)/n}(s,l)),function(e,t){var n=e[m]={},a=o.parentNode,s=t instanceof ii;if(a&&(!r||"drillDown"===r.direction)){var l=0,c=0,u=i.background[a.getRawIndex()];!r&&u&&u.oldShape&&(l=u.oldShape.width,c=u.oldShape.height),s?(n.oldX=0,n.oldY=c):n.oldShape={x:l,y:c,width:0,height:0}}n.fadein=!s}(u,c)),t[e][m]=c}}(t,o,s,n,a,l,e,r,i,c)}!function e(t,n,r,i,a){i?(n=t,q(t,function(e,t){!e.isRemoved()&&s(t,t)})):new oy(n,t,o,o).add(s).update(s).remove(ee(s,null)).execute();function o(e){return e.getId()}function s(o,s){var l=null!=o?t[o]:null,u=null!=s?n[s]:null,h=c(l,u,r,a);h&&e(l&&l.viewChildren||[],u&&u.viewChildren||[],h,i,a+1)}}(r.root?[r.root]:[],i&&i.root?[i.root]:[],e,r===i||!i,0);var u=function(e){var t={nodeGroup:[],background:[],content:[]};return e&&q(e,function(e,n){var r=t[n];q(e,function(e){e&&(r.push(e),rB(e).willDelete=!0)})}),t}(s);return this._oldTree=r,this._storage=o,{lastsForAnimation:a,willDeleteEls:u,renderFinally:function(){q(u,function(e){q(e,function(e){e.parent&&e.parent.remove(e)})}),q(l,function(e){e.invisible=!0,e.dirty()})}}},t.prototype._doAnimation=function(e,t,n,r){if(n.get("animation")){var i=n.get("animationDurationUpdate"),a=n.get("animationEasing"),o=(ne(i)?0:i)||0,s=(ne(a)?null:a)||"cubicOut",l=new qk;q(t.willDeleteEls,function(e,t){q(e,function(e,n){if(!e.invisible){var i,a=e.parent,c=rB(a);if(r&&"drillDown"===r.direction)i=a===r.rootNodeGroup?{shape:{x:0,y:0,width:c.nodeWidth,height:c.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var u=0,h=0;c.willDelete||(u=c.nodeWidth/2,h=c.nodeHeight/2),i="nodeGroup"===t?{x:u,y:h,style:{opacity:0}}:{shape:{x:u,y:h,width:0,height:0},style:{opacity:0}}}i&&l.add(e,i,o,0,s)}})}),q(this._storage,function(e,n){q(e,function(e,r){var i=t.lastsForAnimation[n][r],a={};i&&(e instanceof ii?null!=i.oldX&&(a.x=e.x,a.y=e.y,e.x=i.oldX,e.y=i.oldY):(i.oldShape&&(a.shape=H({},e.shape),e.setShape(i.oldShape)),i.fadein?(e.setStyle("opacity",0),a.style={opacity:1}):1!==e.style.opacity&&(a.style={opacity:1})),l.add(e,a,o,0,s))})},this),this._state="animating",l.finished(Z(function(){this._state="ready",t.renderFinally()},this)).start()}},t.prototype._resetController=function(e){var t=this._controller;t||((t=this._controller=new lS(e.getZr())).enable(this.seriesModel.get("roam")),t.on("pan",Z(this._onPan,this)),t.on("zoom",Z(this._onZoom,this)));var n=new tr(0,0,e.getWidth(),e.getHeight());t.setPointerChecker(function(e,t,r){return n.contain(t,r)})},t.prototype._clearController=function(){var e=this._controller;e&&(e.dispose(),e=null)},t.prototype._onPan=function(e){if("animating"!==this._state&&(Math.abs(e.dx)>3||Math.abs(e.dy)>3)){var t=this.seriesModel.getData().tree.root;if(!t)return;var n=t.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+e.dx,y:n.y+e.dy,width:n.width,height:n.height}})}},t.prototype._onZoom=function(e){var t=e.originX,n=e.originY;if("animating"!==this._state){var r=this.seriesModel.getData().tree.root;if(!r)return;var i=r.getLayout();if(!i)return;var a=new tr(i.x,i.y,i.width,i.height),o=this.seriesModel.layoutInfo,s=[1,0,0,1,0,0];Ut(s,s,[-(t-=o.x),-(n-=o.y)]),jt(s,s,[e.scale,e.scale]),Ut(s,s,[t,n]),a.applyTransform(s),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:a.x,y:a.y,width:a.width,height:a.height}})}},t.prototype._initEvents=function(e){var t=this;e.on("click",function(e){if("ready"===t._state){var n=t.seriesModel.get("nodeClick",!0);if(n){var r=t.findTarget(e.offsetX,e.offsetY);if(r){var i=r.node;if(i.getLayout().isLeafRoot)t._rootToNode(r);else if("zoomToNode"===n)t._zoomToNode(r);else if("link"===n){var a=i.hostTree.data.getItemModel(i.dataIndex),o=a.get("link",!0),s=a.get("target",!0)||"blank";o&&fd(o,s)}}}}},this)},t.prototype._renderBreadcrumb=function(e,t,n){var r=this;n||(n=null!=e.get("leafDepth",!0)?{node:e.getViewRoot()}:this.findTarget(t.getWidth()/2,t.getHeight()/2))||(n={node:e.getData().tree.root}),(this._breadcrumb||(this._breadcrumb=new $k(this.group))).render(e,t,n.node,function(t){"animating"!==r._state&&(Rk(e.getViewRoot(),t)?r._rootToNode({node:t}):r._zoomToNode({node:t}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage={nodeGroup:[],background:[],content:[]},this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(e){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype._rootToNode=function(e){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype.findTarget=function(e,t){var n;return this.seriesModel.getViewRoot().eachNode({attr:"viewChildren",order:"preorder"},function(r){var i=this._storage.background[r.getRawIndex()];if(i){var a=i.transformCoordToLocal(e,t),o=i.shape;if(!(o.x<=a[0]&&a[0]<=o.x+o.width&&o.y<=a[1]&&a[1]<=o.y+o.height))return!1;n={node:r,offsetX:a[0],offsetY:a[1]}}},this),n},t.type="treemap",t}(AA),aB=q,oB=oe,sB=-1,lB=function(){function e(t){var n=t.mappingMethod,r=t.type,i=this.option=R(t);this.type=r,this.mappingMethod=n,this._normalizeData=vB[n];var a=e.visualHandlers[r];this.applyVisual=a.applyVisual,this.getColorMapper=a.getColorMapper,this._normalizedToVisual=a._normalizedToVisual[n],"piecewise"===n?(cB(i),function(e){var t=e.pieceList;e.hasSpecialVisual=!1,q(t,function(t,n){t.originIndex=n,null!=t.visual&&(e.hasSpecialVisual=!0)})}(i)):"category"===n?i.categories?function(e){var t=e.categories,n=e.categoryMap={},r=e.visual;if(aB(t,function(e,t){n[e]=t}),!te(r)){var i=[];oe(r)?aB(r,function(e,t){var r=n[t];i[null!=r?r:sB]=e}):i[sB]=r,r=mB(e,i)}for(var a=t.length-1;a>=0;a--)null==r[a]&&(delete n[t[a]],t.pop())}(i):cB(i,!0):(ye("linear"!==n||i.dataExtent),cB(i))}return e.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},e.prototype.getNormalizer=function(){return Z(this._normalizeData,this)},e.listVisualTypes=function(){return J(e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(e,t,n){oe(e)?q(e,t,n):t.call(n,e)},e.mapVisual=function(t,n,r){var i,a=te(t)?[]:oe(t)?{}:(i=!0,null);return e.eachVisual(t,function(e,t){var o=n.call(r,e,t);i?a=o:a[t]=o}),a},e.retrieveVisuals=function(t){var n,r={};return t&&aB(e.visualHandlers,function(e,i){t.hasOwnProperty(i)&&(r[i]=t[i],n=!0)}),n?r:null},e.prepareVisualTypes=function(e){if(te(e))e=e.slice();else{if(!oB(e))return[];var t=[];aB(e,function(e,n){t.push(n)}),e=t}return e.sort(function(e,t){return"color"===t&&"color"!==e&&0===e.indexOf("color")?1:-1}),e},e.dependsOn=function(e,t){return"color"===t?!(!e||0!==e.indexOf(t)):e===t},e.findPieceIndex=function(e,t,n){for(var r,i=1/0,a=0,o=t.length;a<o;a++){var s=t[a].value;if(null!=s){if(s===e||"string"==typeof s&&s===e+"")return a;n&&h(s,a)}}for(a=0,o=t.length;a<o;a++){var l=t[a],c=l.interval,u=l.close;if(c){if(c[0]===-1/0){if(yB(u[1],e,c[1]))return a}else if(c[1]===1/0){if(yB(u[0],c[0],e))return a}else if(yB(u[0],c[0],e)&&yB(u[1],e,c[1]))return a;n&&h(c[0],a),n&&h(c[1],a)}}if(n)return e===1/0?t.length-1:e===-1/0?0:r;function h(t,n){var a=Math.abs(t-e);a<i&&(i=a,r=n)}},e.visualHandlers={color:{applyVisual:dB("color"),getColorMapper:function(){var e=this.option;return Z("category"===e.mappingMethod?function(e,t){return!t&&(e=this._normalizeData(e)),fB.call(this,e)}:function(t,n,r){var i=!!r;return!n&&(t=this._normalizeData(t)),r=wn(t,e.parsedVisual,r),i?r:Bn(r,"rgba")},this)},_normalizedToVisual:{linear:function(e){return Bn(wn(e,this.option.parsedVisual),"rgba")},category:fB,piecewise:function(e,t){var n=gB.call(this,t);return null==n&&(n=Bn(wn(e,this.option.parsedVisual),"rgba")),n},fixed:pB}},colorHue:uB(function(e,t){return Sn(e,t)}),colorSaturation:uB(function(e,t){return Sn(e,null,t)}),colorLightness:uB(function(e,t){return Sn(e,null,null,t)}),colorAlpha:uB(function(e,t){return kn(e,t)}),decal:{applyVisual:dB("decal"),_normalizedToVisual:{linear:null,category:fB,piecewise:null,fixed:null}},opacity:{applyVisual:dB("opacity"),_normalizedToVisual:AB([0,1])},liftZ:{applyVisual:dB("liftZ"),_normalizedToVisual:{linear:pB,category:pB,piecewise:pB,fixed:pB}},symbol:{applyVisual:function(e,t,n){n("symbol",this.mapValueToVisual(e))},_normalizedToVisual:{linear:hB,category:fB,piecewise:function(e,t){var n=gB.call(this,t);return null==n&&(n=hB.call(this,e)),n},fixed:pB}},symbolSize:{applyVisual:dB("symbolSize"),_normalizedToVisual:AB([0,1])}},e}();function cB(e,t){var n=e.visual,r=[];oe(n)?aB(n,function(e){r.push(e)}):null!=n&&r.push(n);t||1!==r.length||{color:1,symbol:1}.hasOwnProperty(e.type)||(r[1]=r[0]),mB(e,r)}function uB(e){return{applyVisual:function(t,n,r){var i=this.mapValueToVisual(t);r("color",e(n("color"),i))},_normalizedToVisual:AB([0,1])}}function hB(e){var t=this.option.visual;return t[Math.round(gi(e,[0,1],[0,t.length-1],!0))]||{}}function dB(e){return function(t,n,r){r(e,this.mapValueToVisual(t))}}function fB(e){var t=this.option.visual;return t[this.option.loop&&e!==sB?e%t.length:e]}function pB(){return this.option.visual[0]}function AB(e){return{linear:function(t){return gi(t,e,this.option.visual,!0)},category:fB,piecewise:function(t,n){var r=gB.call(this,n);return null==r&&(r=gi(t,e,this.option.visual,!0)),r},fixed:pB}}function gB(e){var t=this.option,n=t.pieceList;if(t.hasSpecialVisual){var r=n[lB.findPieceIndex(e,n)];if(r&&r.visual)return r.visual[this.type]}}function mB(e,t){return e.visual=t,"color"===e.type&&(e.parsedVisual=W(t,function(e){return mn(e)})),t}var vB={linear:function(e){return gi(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,n=lB.findPieceIndex(e,t,!0);if(null!=n)return gi(n,[0,t.length-1],[0,1],!0)},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return null==t?sB:t},fixed:Te};function yB(e,t,n){return e?t<=n:t<n}var bB=lB,wB="itemStyle",xB=Zi(),_B={seriesType:"treemap",reset:function(e){var t=e.getData().tree.root;t.isRemoved()||function e(t,n,r,i){var a=t.getModel();var o=t.getLayout();var s=t.hostTree.data;if(!o||o.invisible||!o.isInView)return;var l=a.getModel(wB);var c=function(e,t,n){var r=H({},t),i=n.designatedVisualItemStyle;return q(["color","colorAlpha","colorSaturation"],function(n){i[n]=t[n];var a=e.get(n);i[n]=null,null!=a&&(r[n]=a)}),r}(l,n,i);var u=s.ensureUniqueItemVisual(t.dataIndex,"style");var h=l.get("borderColor");var d=l.get("borderColorSaturation");var f;null!=d&&(f=CB(c),h=function(e,t){return null!=t?Sn(t,null,null,e):null}(d,f));u.stroke=h;var p=t.viewChildren;if(p&&p.length){var A=function(e,t,n,r,i,a){if(!a||!a.length)return;var o=kB(t,"color")||null!=i.color&&"none"!==i.color&&(kB(t,"colorAlpha")||kB(t,"colorSaturation"));if(!o)return;var s=t.get("visualMin"),l=t.get("visualMax"),c=n.dataExtent.slice();null!=s&&s<c[0]&&(c[0]=s),null!=l&&l>c[1]&&(c[1]=l);var u=t.get("colorMappingBy"),h={type:o.name,dataExtent:c,visual:o.range};"color"!==h.type||"index"!==u&&"id"!==u?h.mappingMethod="linear":(h.mappingMethod="category",h.loop=!0);var d=new bB(h);return xB(d).drColorMappingBy=u,d}(0,a,o,0,c,p);q(p,function(t,n){if(t.depth>=r.length||t===r[t.depth]){var o=function(e,t,n,r,i,a){var o=H({},t);if(i){var s=i.type,l="color"===s&&xB(i).drColorMappingBy,c="index"===l?r:"id"===l?a.mapIdToIndex(n.getId()):n.getValue(e.get("visualDimension"));o[s]=i.mapValueToVisual(c)}return o}(a,c,t,n,A,i);e(t,o,r,i)}})}else f=CB(c),u.fill=f}(t,{},e.getViewRoot().getAncestors(),e)}};function CB(e){var t=SB(e,"color");if(t){var n=SB(e,"colorAlpha"),r=SB(e,"colorSaturation");return r&&(t=Sn(t,null,null,r)),n&&(t=kn(t,n)),t}}function SB(e,t){var n=e[t];if(null!=n&&"none"!==n)return n}function kB(e,t){var n=e.get(t);return te(n)&&n.length?{name:t,range:n}:null}var BB=Math.max,EB=Math.min,TB=pe,IB=q,MB=["itemStyle","borderWidth"],FB=["itemStyle","gapWidth"],DB=["upperLabel","show"],PB=["upperLabel","height"],OB={seriesType:"treemap",reset:function(e,t,n,r){var i=n.getWidth(),a=n.getHeight(),o=e.option,s=yd(e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),l=o.size||[],c=mi(TB(s.width,l[0]),i),u=mi(TB(s.height,l[1]),a),h=r&&r.type,d=Ok(r,["treemapZoomToNode","treemapRootToNode"],e),f="treemapRender"===h||"treemapMove"===h?r.rootRect:null,p=e.getViewRoot(),A=Lk(p);if("treemapMove"!==h){var g="treemapZoomToNode"===h?function(e,t,n,r,i){var a,o=(t||{}).node,s=[r,i];if(!o||o===n)return s;var l=r*i,c=l*e.option.zoomToNodeRatio;for(;a=o.parentNode;){for(var u=0,h=a.children,d=0,f=h.length;d<f;d++)u+=h[d].getValue();var p=o.getValue();if(0===p)return s;c*=u/p;var A=a.getModel(),g=A.get(MB),m=Math.max(g,NB(A));(c+=4*g*g+(3*g+m)*Math.pow(c,.5))>Ci&&(c=Ci),o=a}c<l&&(c=l);var v=Math.pow(c/l,.5);return[r*v,i*v]}(e,d,p,c,u):f?[f.width,f.height]:[c,u],m=o.sort;m&&"asc"!==m&&"desc"!==m&&(m="desc");var v={squareRatio:o.squareRatio,sort:m,leafDepth:o.leafDepth};p.hostTree.clearLayouts();var y={x:0,y:0,width:g[0],height:g[1],area:g[0]*g[1]};p.setLayout(y),function e(t,n,r,i){var a;var o;if(t.isRemoved())return;var s=t.getLayout();a=s.width;o=s.height;var l=t.getModel();var c=l.get(MB);var u=l.get(FB)/2;var h=NB(l);var d=Math.max(c,h);var f=c-u;var p=d-u;t.setLayout({borderWidth:c,upperHeight:d,upperLabelHeight:h},!0);a=BB(a-2*f,0);o=BB(o-f-p,0);var A=a*o;var g=function(e,t,n,r,i,a){var o=e.children||[],s=r.sort;"asc"!==s&&"desc"!==s&&(s=null);var l=null!=r.leafDepth&&r.leafDepth<=a;if(i&&!l)return e.viewChildren=[];!function(e,t){t&&e.sort(function(e,n){var r="asc"===t?e.getValue()-n.getValue():n.getValue()-e.getValue();return 0===r?"asc"===t?e.dataIndex-n.dataIndex:n.dataIndex-e.dataIndex:r})}(o=Y(o,function(e){return!e.isRemoved()}),s);var c=function(e,t,n){for(var r=0,i=0,a=t.length;i<a;i++)r+=t[i].getValue();var o,s=e.get("visualDimension");t&&t.length?"value"===s&&n?(o=[t[t.length-1].getValue(),t[0].getValue()],"asc"===n&&o.reverse()):(o=[1/0,-1/0],IB(t,function(e){var t=e.getValue(s);t<o[0]&&(o[0]=t),t>o[1]&&(o[1]=t)})):o=[NaN,NaN];return{sum:r,dataExtent:o}}(t,o,s);if(0===c.sum)return e.viewChildren=[];if(c.sum=function(e,t,n,r,i){if(!r)return n;for(var a=e.get("visibleMin"),o=i.length,s=o,l=o-1;l>=0;l--){var c=i["asc"===r?o-l-1:l].getValue();c/n*t<a&&(s=l,n-=c)}return"asc"===r?i.splice(0,o-s):i.splice(s,o-s),n}(t,n,c.sum,s,o),0===c.sum)return e.viewChildren=[];for(var u=0,h=o.length;u<h;u++){var d=o[u].getValue()/c.sum*n;o[u].setLayout({area:d})}l&&(o.length&&e.setLayout({isLeafRoot:!0},!0),o.length=0);return e.viewChildren=o,e.setLayout({dataExtent:c.dataExtent},!0),o}(t,l,A,n,r,i);if(!g.length)return;var m={x:f,y:p,width:a,height:o};var v=EB(a,o);var y=1/0;var b=[];b.area=0;for(var w=0,x=g.length;w<x;){var _=g[w];b.push(_),b.area+=_.getLayout().area;var C=LB(b,v,n.squareRatio);C<=y?(w++,y=C):(b.area-=b.pop().getLayout().area,RB(b,v,m,u,!1),v=EB(m.width,m.height),b.length=b.area=0,y=1/0)}b.length&&RB(b,v,m,u,!0);if(!r){var S=l.get("childrenVisibleMin");null!=S&&A<S&&(r=!0)}for(var w=0,x=g.length;w<x;w++)e(g[w],n,r,i+1)}(p,v,!1,0),y=p.getLayout(),IB(A,function(e,t){var n=(A[t+1]||p).getValue();e.setLayout(H({dataExtent:[n,n],borderWidth:0,upperHeight:0},y))})}var b=e.getData().tree.root;b.setLayout(function(e,t,n){if(t)return{x:t.x,y:t.y};var r={x:0,y:0};if(!n)return r;var i=n.node,a=i.getLayout();if(!a)return r;var o=[a.width/2,a.height/2],s=i;for(;s;){var l=s.getLayout();o[0]+=l.x,o[1]+=l.y,s=s.parentNode}return{x:e.width/2-o[0],y:e.height/2-o[1]}}(s,f,d),!0),e.setLayoutInfo(s),function e(t,n,r,i,a){var o=t.getLayout();var s=r[a];var l=s&&s===t;if(s&&!l||a===r.length&&t!==i)return;t.setLayout({isInView:!0,invisible:!l&&!n.intersect(o),isAboveViewRoot:l},!0);var c=new tr(n.x-o.x,n.y-o.y,n.width,n.height);IB(t.viewChildren||[],function(t){e(t,c,r,i,a+1)})}(b,new tr(-s.x,-s.y,i,a),A,p,0)}};function LB(e,t,n){for(var r=0,i=1/0,a=0,o=void 0,s=e.length;a<s;a++)(o=e[a].getLayout().area)&&(o<i&&(i=o),o>r&&(r=o));var l=e.area*e.area,c=t*t*n;return l?BB(c*r/l,l/(c*i)):1/0}function RB(e,t,n,r,i){var a=t===n.width?0:1,o=1-a,s=["x","y"],l=["width","height"],c=n[s[a]],u=t?e.area/t:0;(i||u>n[l[o]])&&(u=n[l[o]]);for(var h=0,d=e.length;h<d;h++){var f=e[h],p={},A=u?f.getLayout().area/u:0,g=p[l[o]]=BB(u-2*r,0),m=n[s[a]]+n[l[a]]-c,v=h===d-1||m<A?m:A,y=p[l[a]]=BB(v-2*r,0);p[s[o]]=n[s[o]]+EB(r,g/2),p[s[a]]=c+EB(r,y/2),c+=v,f.setLayout(p,!0)}n[s[o]]+=u,n[l[o]]-=u}function NB(e){return e.get(DB)?e.get(PB):0}function UB(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.eachSeriesByType("graph",function(e){var n=e.getCategoriesData(),r=e.getGraph().data,i=n.mapArray(n.getName);r.filterSelf(function(e){var n=r.getItemModel(e).getShallow("category");if(null!=n){"number"==typeof n&&(n=i[n]);for(var a=0;a<t.length;a++)if(!t[a].isSelected(n))return!1}return!0})})}function HB(e){var t={};e.eachSeriesByType("graph",function(e){var n=e.getCategoriesData(),r=e.getData(),i={};n.each(function(r){var a=n.getName(r);i["ec-"+a]=r;var o=n.getItemModel(r),s=o.getModel("itemStyle").getItemStyle();s.fill||(s.fill=e.getColorFromPalette(a,t)),n.setItemVisual(r,"style",s);for(var l=["symbol","symbolSize","symbolKeepAspect"],c=0;c<l.length;c++){var u=o.getShallow(l[c],!0);null!=u&&n.setItemVisual(r,l[c],u)}}),n.count()&&r.each(function(e){var t=r.getItemModel(e).getShallow("category");if(null!=t){"string"==typeof t&&(t=i["ec-"+t]);var a=n.getItemVisual(t,"style");H(r.ensureUniqueItemVisual(e,"style"),a);for(var o=["symbol","symbolSize","symbolKeepAspect"],s=0;s<o.length;s++)r.setItemVisual(e,o[s],n.getItemVisual(t,o[s]))}})})}function jB(e){return e instanceof Array||(e=[e,e]),e}function QB(e){e.eachSeriesByType("graph",function(e){var t=e.getGraph(),n=e.getEdgeData(),r=jB(e.get("edgeSymbol")),i=jB(e.get("edgeSymbolSize"));n.setVisual("fromSymbol",r&&r[0]),n.setVisual("toSymbol",r&&r[1]),n.setVisual("fromSymbolSize",i&&i[0]),n.setVisual("toSymbolSize",i&&i[1]),n.setVisual("style",e.getModel("lineStyle").getLineStyle()),n.each(function(e){var r=n.getItemModel(e),i=t.getEdgeByIndex(e),a=jB(r.getShallow("symbol",!0)),o=jB(r.getShallow("symbolSize",!0)),s=r.getModel("lineStyle").getLineStyle(),l=n.ensureUniqueItemVisual(e,"style");switch(H(l,s),l.stroke){case"source":var c=i.node1.getVisual("style");l.stroke=c&&c.fill;break;case"target":c=i.node2.getVisual("style");l.stroke=c&&c.fill}a[0]&&i.setVisual("fromSymbol",a[0]),a[1]&&i.setVisual("toSymbol",a[1]),o[0]&&i.setVisual("fromSymbolSize",o[0]),o[1]&&i.setVisual("toSymbolSize",o[1])})})}var zB=function(e){return e.get("autoCurveness")||null},VB=function(e,t){var n=zB(e),r=20,i=[];if("number"==typeof n)r=n;else if(te(n))return void(e.__curvenessList=n);t>r&&(r=t);var a=r%2?r+2:r+3;i=[];for(var o=0;o<a;o++)i.push((o%2?o+1:o)/10*(o%2?-1:1));e.__curvenessList=i},GB=function(e,t,n){var r=[e.id,e.dataIndex].join("."),i=[t.id,t.dataIndex].join(".");return[n.uid,r,i].join("--\x3e")},$B=function(e){var t=e.split("--\x3e");return[t[0],t[2],t[1]].join("--\x3e")},qB=function(e,t){var n=GB(e.node1,e.node2,t);return t.__edgeMap[n]},WB=function(e,t){return KB(GB(e.node1,e.node2,t),t)+KB(GB(e.node2,e.node1,t),t)},KB=function(e,t){var n=t.__edgeMap;return n[e]?n[e].length:0};function YB(e,t,n,r){var i=zB(t),a=te(i);if(!i)return null;var o=qB(e,t);if(!o)return null;for(var s=-1,l=0;l<o.length;l++)if(o[l]===n){s=l;break}var c=WB(e,t);VB(t,c),e.lineStyle=e.lineStyle||{};var u=GB(e.node1,e.node2,t),h=t.__curvenessList,d=a?0:c%2?0:1;if(o.isForward)return h[d+s];var f=$B(u),p=KB(f,t),A=h[s+p+d];return r?a?i&&0===i[0]?(p+d)%2?A:-A:((p%2?0:1)+d)%2?A:-A:(p+d)%2?A:-A:h[s+p+d]}function XB(e){var t=e.coordinateSystem;if(!t||"view"===t.type){var n=e.getGraph();n.eachNode(function(e){var t=e.getModel();e.setLayout([+t.get("x"),+t.get("y")])}),JB(n,e)}}function JB(e,t){e.eachEdge(function(e,n){var r=ge(e.getModel().get(["lineStyle","curveness"]),-YB(e,t,n,!0),0),i=Pe(e.node1.getLayout()),a=Pe(e.node2.getLayout()),o=[i,a];+r&&o.push([(i[0]+a[0])/2-(i[1]-a[1])*r,(i[1]+a[1])/2-(a[0]-i[0])*r]),e.setLayout(o)})}function ZB(e,t){e.eachSeriesByType("graph",function(e){var t=e.get("layout"),n=e.coordinateSystem;if(n&&"view"!==n.type){var r=e.getData(),i=[];q(n.dimensions,function(e){i=i.concat(r.mapDimensionsAll(e))});for(var a=0;a<r.count();a++){for(var o=[],s=!1,l=0;l<i.length;l++){var c=r.get(i[l],a);isNaN(c)||(s=!0),o.push(c)}s?r.setItemLayout(a,n.dataToPoint(o)):r.setItemLayout(a,[NaN,NaN])}JB(r.graph,e)}else t&&"none"!==t||XB(e)})}function eE(e){var t=e.coordinateSystem;if("view"!==t.type)return 1;var n=e.option.nodeScaleRatio,r=t.scaleX;return((t.getZoom()-1)*n+1)/r}function tE(e){var t=e.getVisual("symbolSize");return t instanceof Array&&(t=(t[0]+t[1])/2),+t}var nE=Math.PI,rE=[];function iE(e,t){var n=e.coordinateSystem;if(!n||"view"===n.type){var r=n.getBoundingRect(),i=e.getData(),a=i.graph,o=r.width/2+r.x,s=r.height/2+r.y,l=Math.min(r.width,r.height)/2,c=i.count();i.setLayout({cx:o,cy:s}),c&&(aE[t](e,a,i,l,o,s,c),a.eachEdge(function(t,n){var r,i=ge(t.getModel().get(["lineStyle","curveness"]),YB(t,e,n),0),a=Pe(t.node1.getLayout()),l=Pe(t.node2.getLayout()),c=(a[0]+l[0])/2,u=(a[1]+l[1])/2;+i&&(r=[o*(i*=3)+c*(1-i),s*i+u*(1-i)]),t.setLayout([a,l,r])}))}}var aE={value:function(e,t,n,r,i,a,o){var s=0,l=n.getSum("value"),c=2*Math.PI/(l||o);t.eachNode(function(e){var t=e.getValue("value"),n=c*(l?t:1)/2;s+=n,e.setLayout([r*Math.cos(s)+i,r*Math.sin(s)+a]),s+=n})},symbolSize:function(e,t,n,r,i,a,o){var s=0;rE.length=o;var l=eE(e);t.eachNode(function(e){var t=tE(e);isNaN(t)&&(t=2),t<0&&(t=0),t*=l;var n=Math.asin(t/2/r);isNaN(n)&&(n=nE/2),rE[e.dataIndex]=n,s+=2*n});var c=(2*nE-s)/o/2,u=0;t.eachNode(function(e){var t=c+rE[e.dataIndex];u+=t,e.setLayout([r*Math.cos(u)+i,r*Math.sin(u)+a]),u+=t})}};function oE(e){e.eachSeriesByType("graph",function(e){"circular"===e.get("layout")&&iE(e,"symbolSize")})}var sE=Re;function lE(e){e.eachSeriesByType("graph",function(e){var t=e.coordinateSystem;if(!t||"view"===t.type)if("force"===e.get("layout")){var n=e.preservedPoints||{},r=e.getGraph(),i=r.data,a=r.edgeData,o=e.getModel("force"),s=o.get("initLayout");e.preservedPoints?i.each(function(e){var t=i.getId(e);i.setItemLayout(e,n[t]||[NaN,NaN])}):s&&"none"!==s?"circular"===s&&iE(e,"value"):XB(e);var l=i.getDataExtent("value"),c=a.getDataExtent("value"),u=o.get("repulsion"),h=o.get("edgeLength"),d=te(u)?u:[u,u],f=te(h)?h:[h,h];f=[f[1],f[0]];var p=i.mapArray("value",function(e,t){var n=i.getItemLayout(t),r=gi(e,l,d);return isNaN(r)&&(r=(d[0]+d[1])/2),{w:r,rep:r,fixed:i.getItemModel(t).get("fixed"),p:!n||isNaN(n[0])||isNaN(n[1])?null:n}}),A=a.mapArray("value",function(t,n){var i=r.getEdgeByIndex(n),a=gi(t,c,f);isNaN(a)&&(a=(f[0]+f[1])/2);var o=i.getModel(),s=ge(i.getModel().get(["lineStyle","curveness"]),-YB(i,e,n,!0),0);return{n1:p[i.node1.dataIndex],n2:p[i.node2.dataIndex],d:a,curveness:s,ignoreForceLayout:o.get("ignoreForceLayout")}}),g=t.getBoundingRect(),m=function(e,t,n){for(var r=e,i=t,a=n.rect,o=a.width,s=a.height,l=[a.x+o/2,a.y+s/2],c=null==n.gravity?.1:n.gravity,u=0;u<r.length;u++){var h=r[u];h.p||(h.p=Fe(o*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),h.pp=Pe(h.p),h.edges=null}var d,f,p=null==n.friction?.6:n.friction,A=p;return{warmUp:function(){A=.8*p},setFixed:function(e){r[e].fixed=!0},setUnfixed:function(e){r[e].fixed=!1},beforeStep:function(e){d=e},afterStep:function(e){f=e},step:function(e){d&&d(r,i);for(var t=[],n=r.length,a=0;a<i.length;a++){var o=i[a];if(!o.ignoreForceLayout){var s=o.n1;Ne(t,(g=o.n2).p,s.p);var u=Ue(t)-o.d,h=g.w/(s.w+g.w);isNaN(h)&&(h=0),qe(t,t),!s.fixed&&sE(s.p,s.p,t,h*u*A),!g.fixed&&sE(g.p,g.p,t,-(1-h)*u*A)}}for(a=0;a<n;a++)(y=r[a]).fixed||(Ne(t,l,y.p),sE(y.p,y.p,t,c*A));for(a=0;a<n;a++){s=r[a];for(var p=a+1;p<n;p++){var g;Ne(t,(g=r[p]).p,s.p),0===(u=Ue(t))&&(Oe(t,Math.random()-.5,Math.random()-.5),u=1);var m=(s.rep+g.rep)/u/u;!s.fixed&&sE(s.pp,s.pp,t,m),!g.fixed&&sE(g.pp,g.pp,t,-m)}}var v=[];for(a=0;a<n;a++){var y;(y=r[a]).fixed||(Ne(v,y.p,y.pp),sE(y.p,y.p,v,A),De(y.pp,y.p))}var b=(A*=.992)<.01;f&&f(r,i,b),e&&e(b)}}}(p,A,{rect:g,gravity:o.get("gravity"),friction:o.get("friction")});m.beforeStep(function(e,t){for(var n=0,i=e.length;n<i;n++)e[n].fixed&&De(e[n].p,r.getNodeByIndex(n).getLayout())}),m.afterStep(function(e,t,a){for(var o=0,s=e.length;o<s;o++)e[o].fixed||r.getNodeByIndex(o).setLayout(e[o].p),n[i.getId(o)]=e[o].p;for(o=0,s=t.length;o<s;o++){var l=t[o],c=r.getEdgeByIndex(o),u=l.n1.p,h=l.n2.p,d=c.getLayout();(d=d?d.slice():[])[0]=d[0]||[],d[1]=d[1]||[],De(d[0],u),De(d[1],h),+l.curveness&&(d[2]=[(u[0]+h[0])/2-(u[1]-h[1])*l.curveness,(u[1]+h[1])/2-(h[0]-u[0])*l.curveness]),c.setLayout(d)}}),e.forceLayout=m,e.preservedPoints=n,m.step()}else e.forceLayout=null})}function cE(e,t){var n=[];return e.eachSeriesByType("graph",function(e){var r=e.get("coordinateSystem");if(!r||"view"===r){var i=e.getData(),a=[],o=[];So(i.mapArray(function(e){var t=i.getItemModel(e);return[+t.get("x"),+t.get("y")]}),a,o),o[0]-a[0]==0&&(o[0]+=1,a[0]-=1),o[1]-a[1]==0&&(o[1]+=1,a[1]-=1);var s=(o[0]-a[0])/(o[1]-a[1]),l=function(e,t,n){return yd(H(e.getBoxLayoutParams(),{aspect:n}),{width:t.getWidth(),height:t.getHeight()})}(e,t,s);isNaN(s)&&(a=[l.x,l.y],o=[l.x+l.width,l.y+l.height]);var c=o[0]-a[0],u=o[1]-a[1],h=l.width,d=l.height,f=e.coordinateSystem=new WS;f.zoomLimit=e.get("scaleLimit"),f.setBoundingRect(a[0],a[1],c,u),f.setViewRect(l.x,l.y,h,d),f.setCenter(e.get("center")),f.setZoom(e.get("zoom")),n.push(f)}}),n}var uE=Hc.prototype,hE=Gc.prototype,dE=function(){return function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}}();!function(e){function t(){return null!==e&&e.apply(this,arguments)||this}g(t,e)}(dE);function fE(e){return isNaN(+e.cpx1)||isNaN(+e.cpy1)}var pE=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-line",n}return g(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new dE},t.prototype.buildPath=function(e,t){fE(t)?uE.buildPath.call(this,e,t):hE.buildPath.call(this,e,t)},t.prototype.pointAt=function(e){return fE(this.shape)?uE.pointAt.call(this,e):hE.pointAt.call(this,e)},t.prototype.tangentAt=function(e){var t=this.shape,n=fE(t)?[t.x2-t.x1,t.y2-t.y1]:hE.tangentAt.call(this,e);return qe(n,n)},t}(vs),AE=["fromSymbol","toSymbol"];function gE(e){return"_"+e+"Type"}function mE(e,t,n){var r=t.getItemVisual(n,e);if(r&&"none"!==r){var i=t.getItemVisual(n,e+"Size"),a=t.getItemVisual(n,e+"Rotate"),o=te(i)?i:[i,i],s=Zg(r,-o[0]/2,-o[1]/2,o[0],o[1]);return s.__specifiedRotation=null==a||isNaN(a)?void 0:+a*Math.PI/180||0,s.name=e,s}}function vE(e,t){e.x1=t[0][0],e.y1=t[0][1],e.x2=t[1][0],e.y2=t[1][1],e.percent=1;var n=t[2];n?(e.cpx1=n[0],e.cpy1=n[1]):(e.cpx1=NaN,e.cpy1=NaN)}var yE=function(e){function t(t,n,r){var i=e.call(this)||this;return i._createLine(t,n,r),i}return g(t,e),t.prototype._createLine=function(e,t,n){var r=e.hostModel,i=function(e){var t=new pE({name:"line",subPixelOptimize:!0});return vE(t.shape,e),t}(e.getItemLayout(t));i.shape.percent=0,Cu(i,{shape:{percent:1}},r,t),this.add(i),q(AE,function(n){var r=mE(n,e,t);this.add(r),this[gE(n)]=e.getItemVisual(t,n)},this),this._updateCommonStl(e,t,n)},t.prototype.updateData=function(e,t,n){var r=e.hostModel,i=this.childOfName("line"),a=e.getItemLayout(t),o={shape:{}};vE(o.shape,a),_u(i,o,r,t),q(AE,function(n){var r=e.getItemVisual(t,n),i=gE(n);if(this[i]!==r){this.remove(this.childOfName(n));var a=mE(n,e,t);this.add(a)}this[i]=r},this),this._updateCommonStl(e,t,n)},t.prototype.getLinePath=function(){return this.childAt(0)},t.prototype._updateCommonStl=function(e,t,n){var r=e.hostModel,i=this.childOfName("line"),a=n&&n.emphasisLineStyle,o=n&&n.blurLineStyle,s=n&&n.selectLineStyle,l=n&&n.labelStatesModels;if(!n||e.hasItemOption){var c=e.getItemModel(t);a=c.getModel(["emphasis","lineStyle"]).getLineStyle(),o=c.getModel(["blur","lineStyle"]).getLineStyle(),s=c.getModel(["select","lineStyle"]).getLineStyle(),l=Vu(c)}var u=e.getItemVisual(t,"style"),h=u.stroke;i.useStyle(u),i.style.fill=null,i.style.strokeNoScale=!0,i.ensureState("emphasis").style=a,i.ensureState("blur").style=o,i.ensureState("select").style=s,q(AE,function(e){var t=this.childOfName(e);if(t){t.setColor(h),t.style.opacity=u.opacity;for(var n=0;n<Js.length;n++){var r=Js[n],a=i.getState(r);if(a){var o=a.style||{},s=t.ensureState(r),l=s.style||(s.style={});null!=o.stroke&&(l[t.__isEmptyBrush?"stroke":"fill"]=o.stroke),null!=o.opacity&&(l.opacity=o.opacity)}}t.markRedraw()}},this);var d=r.getRawValue(t);zu(this,l,{labelDataIndex:t,labelFetcher:{getFormattedLabel:function(t,n){return r.getFormattedLabel(t,n,e.dataType)}},inheritColor:h||"#000",defaultOpacity:u.opacity,defaultText:(null==d?e.getName(t):isFinite(d)?vi(d):d)+""});var f=this.getTextContent();if(f){var p=l.normal;f.__align=f.style.align,f.__verticalAlign=f.style.verticalAlign,f.__position=p.get("position")||"middle";var A=p.get("distance");te(A)||(A=[A,A]),f.__labelDistance=A}this.setTextConfig({position:null,local:!0,inside:!1}),Ml(this)},t.prototype.highlight=function(){xl(this)},t.prototype.downplay=function(){_l(this)},t.prototype.updateLayout=function(e,t){this.setLinePoints(e.getItemLayout(t))},t.prototype.setLinePoints=function(e){var t=this.childOfName("line");vE(t.shape,e),t.dirty()},t.prototype.beforeUpdate=function(){var e=this.childOfName("fromSymbol"),t=this.childOfName("toSymbol"),n=this.getTextContent();if(e||t||n&&!n.ignore){for(var r=1,i=this.parent;i;)i.scaleX&&(r/=i.scaleX),i=i.parent;var a=this.childOfName("line");if(this.__dirty||a.__dirty){var o=a.shape.percent,s=a.pointAt(0),l=a.pointAt(o),c=Ne([],l,s);if(qe(c,c),e&&(e.setPosition(s),x(e,0),e.scaleX=e.scaleY=r*o,e.markRedraw()),t&&(t.setPosition(l),x(t,1),t.scaleX=t.scaleY=r*o,t.markRedraw()),n&&!n.ignore){n.x=n.y=0,n.originX=n.originY=0;var u=void 0,h=void 0,d=n.__labelDistance,f=d[0]*r,p=d[1]*r,A=o/2,g=a.tangentAt(A),m=[g[1],-g[0]],v=a.pointAt(A);m[1]>0&&(m[0]=-m[0],m[1]=-m[1]);var y=g[0]<0?-1:1;if("start"!==n.__position&&"end"!==n.__position){var b=-Math.atan2(g[1],g[0]);l[0]<s[0]&&(b=Math.PI+b),n.rotation=b}var w=void 0;switch(n.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":w=-p,h="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":w=p,h="top";break;default:w=0,h="middle"}switch(n.__position){case"end":n.x=c[0]*f+l[0],n.y=c[1]*p+l[1],u=c[0]>.8?"left":c[0]<-.8?"right":"center",h=c[1]>.8?"top":c[1]<-.8?"bottom":"middle";break;case"start":n.x=-c[0]*f+s[0],n.y=-c[1]*p+s[1],u=c[0]>.8?"right":c[0]<-.8?"left":"center",h=c[1]>.8?"bottom":c[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":n.x=f*y+s[0],n.y=s[1]+w,u=g[0]<0?"right":"left",n.originX=-f*y,n.originY=-w;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":n.x=v[0],n.y=v[1]+w,u="center",n.originY=-w;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":n.x=-f*y+l[0],n.y=l[1]+w,u=g[0]>=0?"right":"left",n.originX=f*y,n.originY=-w}n.scaleX=n.scaleY=r,n.setStyle({verticalAlign:n.__verticalAlign||h,align:n.__align||u})}}}function x(e,t){var n=e.__specifiedRotation;if(null==n){var r=a.tangentAt(t);e.attr("rotation",(1===t?-1:1)*Math.PI/2-Math.atan2(r[1],r[0]))}else e.attr("rotation",n)}},t}(ii);function bE(e){var t=e.hostModel;return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:t.getModel(["emphasis","lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),labelStatesModels:Vu(t)}}function wE(e){return isNaN(e[0])||isNaN(e[1])}function xE(e){return!wE(e[0])&&!wE(e[1])}var _E=function(){function e(e){this.group=new ii,this._LineCtor=e||yE}return e.prototype.isPersistent=function(){return!0},e.prototype.updateData=function(e){var t=this,n=this.group,r=this._lineData;this._lineData=e,r||n.removeAll();var i=bE(e);e.diff(r).add(function(n){t._doAdd(e,n,i)}).update(function(n,a){t._doUpdate(r,e,a,n,i)}).remove(function(e){n.remove(r.getItemGraphicEl(e))}).execute()},e.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl(function(t,n){t.updateLayout(e,n)},this)},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=bE(e),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t){function n(e){e.isGroup||function(e){return e.animators&&e.animators.length>0}(e)||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}for(var r=e.start;r<e.end;r++){if(xE(t.getItemLayout(r))){var i=new this._LineCtor(t,r,this._seriesScope);i.traverse(n),this.group.add(i),t.setItemGraphicEl(r,i)}}},e.prototype.remove=function(){this.group.removeAll()},e.prototype._doAdd=function(e,t,n){if(xE(e.getItemLayout(t))){var r=new this._LineCtor(e,t,n);e.setItemGraphicEl(t,r),this.group.add(r)}},e.prototype._doUpdate=function(e,t,n,r,i){var a=e.getItemGraphicEl(n);xE(t.getItemLayout(r))?(a?a.updateData(t,r,i):a=new this._LineCtor(t,r,i),t.setItemGraphicEl(r,a),this.group.add(a)):this.group.remove(a)},e}(),CE=[],SE=[],kE=[],BE=uo,EE=Xe,TE=Math.abs;function IE(e,t,n){for(var r,i=e[0],a=e[1],o=e[2],s=1/0,l=n*n,c=.1,u=.1;u<=.9;u+=.1){CE[0]=BE(i[0],a[0],o[0],u),CE[1]=BE(i[1],a[1],o[1],u),(f=TE(EE(CE,t)-l))<s&&(s=f,r=u)}for(var h=0;h<32;h++){var d=r+c;SE[0]=BE(i[0],a[0],o[0],r),SE[1]=BE(i[1],a[1],o[1],r),kE[0]=BE(i[0],a[0],o[0],d),kE[1]=BE(i[1],a[1],o[1],d);var f=EE(SE,t)-l;if(TE(f)<.01)break;var p=EE(kE,t)-l;c/=2,f<0?p>=0?r+=c:r-=c:p>=0?r-=c:r+=c}return r}function ME(e,t){var n=[],r=po,i=[[],[],[]],a=[[],[]],o=[];t/=2,e.eachEdge(function(e,s){var l=e.getLayout(),c=e.getVisual("fromSymbol"),u=e.getVisual("toSymbol");l.__original||(l.__original=[Pe(l[0]),Pe(l[1])],l[2]&&l.__original.push(Pe(l[2])));var h=l.__original;if(null!=l[2]){if(De(i[0],h[0]),De(i[1],h[2]),De(i[2],h[1]),c&&"none"!==c){var d=tE(e.node1),f=IE(i,h[0],d*t);r(i[0][0],i[1][0],i[2][0],f,n),i[0][0]=n[3],i[1][0]=n[4],r(i[0][1],i[1][1],i[2][1],f,n),i[0][1]=n[3],i[1][1]=n[4]}if(u&&"none"!==u){d=tE(e.node2),f=IE(i,h[1],d*t);r(i[0][0],i[1][0],i[2][0],f,n),i[1][0]=n[1],i[2][0]=n[2],r(i[0][1],i[1][1],i[2][1],f,n),i[1][1]=n[1],i[2][1]=n[2]}De(l[0],i[0]),De(l[1],i[2]),De(l[2],i[1])}else{if(De(a[0],h[0]),De(a[1],h[1]),Ne(o,a[1],a[0]),qe(o,o),c&&"none"!==c){d=tE(e.node1);Re(a[0],a[0],o,d*t)}if(u&&"none"!==u){d=tE(e.node2);Re(a[1],a[1],o,-d*t)}De(l[0],a[0]),De(l[1],a[1])}})}function FE(e){return"view"===e.type}var DE=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.prototype.init=function(e,t){var n=new Mx,r=new _E,i=this.group;this._controller=new lS(t.getZr()),this._controllerHost={target:i},i.add(n.group),i.add(r.group),this._symbolDraw=n,this._lineDraw=r,this._firstRender=!0},t.prototype.render=function(e,t,n){var r=this,i=e.coordinateSystem;this._model=e;var a=this._symbolDraw,o=this._lineDraw,s=this.group;if(FE(i)){var l={x:i.x,y:i.y,scaleX:i.scaleX,scaleY:i.scaleY};this._firstRender?s.attr(l):_u(s,l,e)}ME(e.getGraph(),eE(e));var c=e.getData();a.updateData(c);var u=e.getEdgeData();o.updateData(u),this._updateNodeAndLinkScale(),this._updateController(e,t,n),clearTimeout(this._layoutTimeout);var h=e.forceLayout,d=e.get(["force","layoutAnimation"]);h&&this._startForceLayoutIteration(h,d),c.graph.eachNode(function(e){var t=e.dataIndex,n=e.getGraphicEl(),i=e.getModel();n.off("drag").off("dragend");var a=i.get("draggable");a&&n.on("drag",function(){h&&(h.warmUp(),!r._layouting&&r._startForceLayoutIteration(h,d),h.setFixed(t),c.setItemLayout(t,[n.x,n.y]))}).on("dragend",function(){h&&h.setUnfixed(t)}),n.setDraggable(a&&!!h),"adjacency"===i.get(["emphasis","focus"])&&(Gs(n).focus=e.getAdjacentDataIndices())}),c.graph.eachEdge(function(e){var t=e.getGraphicEl();"adjacency"===e.getModel().get(["emphasis","focus"])&&(Gs(t).focus={edge:[e.dataIndex],node:[e.node1.dataIndex,e.node2.dataIndex]})});var f="circular"===e.get("layout")&&e.get(["circular","rotateLabel"]),p=c.getLayout("cx"),A=c.getLayout("cy");c.eachItemGraphicEl(function(e,t){var n=c.getItemModel(t).get(["label","rotate"])||0,r=e.getSymbolPath();if(f){var i=c.getItemLayout(t),a=Math.atan2(i[1]-A,i[0]-p);a<0&&(a=2*Math.PI+a);var o=i[0]<p;o&&(a-=Math.PI);var s=o?"left":"right";r.setTextConfig({rotation:-a,position:s,origin:"center"});var l=r.ensureState("emphasis");H(l.textConfig||(l.textConfig={}),{position:s})}else r.setTextConfig({rotation:n*=Math.PI/180})}),this._firstRender=!1},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._startForceLayoutIteration=function(e,t){var n=this;!function r(){e.step(function(e){n.updateLayout(n._model),(n._layouting=!e)&&(t?n._layoutTimeout=setTimeout(r,16):r())})}()},t.prototype._updateController=function(e,t,n){var r=this,i=this._controller,a=this._controllerHost,o=this.group;i.setPointerChecker(function(t,r,i){var a=o.getBoundingRect();return a.applyTransform(o.transform),a.contain(r,i)&&!dS(t,n,e)}),FE(e.coordinateSystem)?(i.enable(e.get("roam")),a.zoomLimit=e.get("scaleLimit"),a.zoom=e.coordinateSystem.getZoom(),i.off("pan").off("zoom").on("pan",function(t){cS(a,t.dx,t.dy),n.dispatchAction({seriesId:e.id,type:"graphRoam",dx:t.dx,dy:t.dy})}).on("zoom",function(t){uS(a,t.scale,t.originX,t.originY),n.dispatchAction({seriesId:e.id,type:"graphRoam",zoom:t.scale,originX:t.originX,originY:t.originY}),r._updateNodeAndLinkScale(),ME(e.getGraph(),eE(e)),r._lineDraw.updateLayout(),n.updateLabelLayout()})):i.disable()},t.prototype._updateNodeAndLinkScale=function(){var e=this._model,t=e.getData(),n=eE(e);t.eachItemGraphicEl(function(e,t){e.setSymbolScale(n)})},t.prototype.updateLayout=function(e){ME(e.getGraph(),eE(e)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},t.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},t.type="graph",t}(AA);function PE(e){return"_EC_"+e}var OE=function(){function e(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return e.prototype.isDirected=function(){return this._directed},e.prototype.addNode=function(e,t){e=null==e?""+t:""+e;var n=this._nodesMap;if(!n[PE(e)]){var r=new LE(e,t);return r.hostGraph=this,this.nodes.push(r),n[PE(e)]=r,r}},e.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},e.prototype.getNodeById=function(e){return this._nodesMap[PE(e)]},e.prototype.addEdge=function(e,t,n){var r=this._nodesMap,i=this._edgesMap;if("number"==typeof e&&(e=this.nodes[e]),"number"==typeof t&&(t=this.nodes[t]),e instanceof LE||(e=r[PE(e)]),t instanceof LE||(t=r[PE(t)]),e&&t){var a=e.id+"-"+t.id,o=new RE(e,t,n);return o.hostGraph=this,this._directed&&(e.outEdges.push(o),t.inEdges.push(o)),e.edges.push(o),e!==t&&t.edges.push(o),this.edges.push(o),i[a]=o,o}},e.prototype.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},e.prototype.getEdge=function(e,t){e instanceof LE&&(e=e.id),t instanceof LE&&(t=t.id);var n=this._edgesMap;return this._directed?n[e+"-"+t]:n[e+"-"+t]||n[t+"-"+e]},e.prototype.eachNode=function(e,t){for(var n=this.nodes,r=n.length,i=0;i<r;i++)n[i].dataIndex>=0&&e.call(t,n[i],i)},e.prototype.eachEdge=function(e,t){for(var n=this.edges,r=n.length,i=0;i<r;i++)n[i].dataIndex>=0&&n[i].node1.dataIndex>=0&&n[i].node2.dataIndex>=0&&e.call(t,n[i],i)},e.prototype.breadthFirstTraverse=function(e,t,n,r){if(t instanceof LE||(t=this._nodesMap[PE(t)]),t){for(var i="out"===n?"outEdges":"in"===n?"inEdges":"edges",a=0;a<this.nodes.length;a++)this.nodes[a].__visited=!1;if(!e.call(r,t,null))for(var o=[t];o.length;){var s=o.shift(),l=s[i];for(a=0;a<l.length;a++){var c=l[a],u=c.node1===s?c.node2:c.node1;if(!u.__visited){if(e.call(r,u,s))return;o.push(u),u.__visited=!0}}}}},e.prototype.update=function(){for(var e=this.data,t=this.edgeData,n=this.nodes,r=this.edges,i=0,a=n.length;i<a;i++)n[i].dataIndex=-1;for(i=0,a=e.count();i<a;i++)n[e.getRawIndex(i)].dataIndex=i;t.filterSelf(function(e){var n=r[t.getRawIndex(e)];return n.node1.dataIndex>=0&&n.node2.dataIndex>=0});for(i=0,a=r.length;i<a;i++)r[i].dataIndex=-1;for(i=0,a=t.count();i<a;i++)r[t.getRawIndex(i)].dataIndex=i},e.prototype.clone=function(){for(var t=new e(this._directed),n=this.nodes,r=this.edges,i=0;i<n.length;i++)t.addNode(n[i].id,n[i].dataIndex);for(i=0;i<r.length;i++){var a=r[i];t.addEdge(a.node1.id,a.node2.id,a.dataIndex)}return t},e}(),LE=function(){function e(e,t){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=null==e?"":e,this.dataIndex=null==t?-1:t}return e.prototype.degree=function(){return this.edges.length},e.prototype.inDegree=function(){return this.inEdges.length},e.prototype.outDegree=function(){return this.outEdges.length},e.prototype.getModel=function(e){if(!(this.dataIndex<0))return this.hostGraph.data.getItemModel(this.dataIndex).getModel(e)},e.prototype.getAdjacentDataIndices=function(){for(var e={edge:[],node:[]},t=0;t<this.edges.length;t++){var n=this.edges[t];n.dataIndex<0||(e.edge.push(n.dataIndex),e.node.push(n.node1.dataIndex,n.node2.dataIndex))}return e},e}(),RE=function(){function e(e,t,n){this.dataIndex=-1,this.node1=e,this.node2=t,this.dataIndex=null==n?-1:n}return e.prototype.getModel=function(e){if(!(this.dataIndex<0))return this.hostGraph.edgeData.getItemModel(this.dataIndex).getModel(e)},e.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},e}();function NE(e,t){return{getValue:function(n){var r=this[e][t];return r.get(r.getDimension(n||"value"),this.dataIndex)},setVisual:function(n,r){this.dataIndex>=0&&this[e][t].setItemVisual(this.dataIndex,n,r)},getVisual:function(n){return this[e][t].getItemVisual(this.dataIndex,n)},setLayout:function(n,r){this.dataIndex>=0&&this[e][t].setItemLayout(this.dataIndex,n,r)},getLayout:function(){return this[e][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[e][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[e][t].getRawIndex(this.dataIndex)}}}G(LE,NE("hostGraph","data")),G(RE,NE("hostGraph","edgeData"));var UE=OE;function HE(e,t,n,r,i){for(var a=new UE(r),o=0;o<e.length;o++)a.addNode(pe(e[o].id,e[o].name,o),o);var s=[],l=[],c=0;for(o=0;o<t.length;o++){var u=t[o],h=u.source,d=u.target;a.addEdge(h,d,c)&&(l.push(u),s.push(pe(Ki(u.id,null),h+" > "+d)),c++)}var f,p=n.get("coordinateSystem");if("cartesian2d"===p||"polar"===p)f=zy(e,n);else{var A=hf.get(p),g=A&&A.dimensions||[];z(g,"value")<0&&g.concat(["value"]);var m=Ly(e,{coordDimensions:g});(f=new Dy(m,n)).initData(e)}var v=new Dy(["value"],n);return v.initData(l,s),i&&i(f,v),Ek({mainData:f,struct:a,structAttr:"graph",datas:{node:f,edge:v},datasAttr:{node:"data",edge:"edgeData"}}),a.update(),a}var jE=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return g(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments);var n=this;function r(){return n._categoriesData}this.legendVisualProvider=new Q_(r,r),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(t){e.prototype.mergeDefaultAndTheme.apply(this,arguments),zi(t,"edgeLabel",["show"])},t.prototype.getInitialData=function(e,t){var n,r=e.edges||e.links||[],i=e.data||e.nodes||[],a=this;if(i&&r){zB(n=this)&&(n.__curvenessList=[],n.__edgeMap={},VB(n));var o=HE(i,r,this,!0,function(e,t){e.wrapMethod("getItemModel",function(e){var t=a._categoriesModels,n=e.getShallow("category"),r=t[n];return r&&(r.parentModel=e.parentModel,e.parentModel=r),e});var n=fh.prototype.getModel;function r(e,t){var r=n.call(this,e,t);return r.resolveParentPath=i,r}function i(e){if(e&&("label"===e[0]||"label"===e[1])){var t=e.slice();return"label"===e[0]?t[0]="edgeLabel":"label"===e[1]&&(t[1]="edgeLabel"),t}return e}t.wrapMethod("getItemModel",function(e){return e.resolveParentPath=i,e.getModel=r,e})});return q(o.edges,function(e){!function(e,t,n,r){if(zB(n)){var i=GB(e,t,n),a=n.__edgeMap,o=a[$B(i)];a[i]&&!o?a[i].isForward=!0:o&&a[i]&&(o.isForward=!0,a[i].isForward=!1),a[i]=a[i]||[],a[i].push(r)}}(e.node1,e.node2,this,e.dataIndex)},this),o.data}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(e,t,n){if("edge"===n){var r=this.getData(),i=this.getDataParams(e,n),a=r.graph.getEdgeByIndex(e),o=r.getName(a.node1.dataIndex),s=r.getName(a.node2.dataIndex),l=[];return null!=o&&l.push(o),null!=s&&l.push(s),Lp("nameValue",{name:l.join(" > "),value:i.value,noValue:null==i.value})}return $p({series:this,dataIndex:e,multipleSeries:t})},t.prototype._updateCategoriesData=function(){var e=W(this.option.categories||[],function(e){return null!=e.value?e:H({value:0},e)}),t=new Dy(["value"],this);t.initData(e),this._categoriesData=t,this._categoriesModels=t.mapArray(function(e){return t.getItemModel(e)})},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.isAnimationEnabled=function(){return e.prototype.isAnimationEnabled.call(this)&&!("force"===this.get("layout")&&this.get(["force","layoutAnimation"]))},t.type="series.graph",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={zlevel:0,z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(rA),QE={type:"graphRoam",event:"graphRoam",update:"none"};var zE=function(){return function(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}}(),VE=function(e){function t(t){var n=e.call(this,t)||this;return n.type="pointer",n}return g(t,e),t.prototype.getDefaultShape=function(){return new zE},t.prototype.buildPath=function(e,t){var n=Math.cos,r=Math.sin,i=t.r,a=t.width,o=t.angle,s=t.x-n(o)*a*(a>=i/3?1:2),l=t.y-r(o)*a*(a>=i/3?1:2);o=t.angle-Math.PI/2,e.moveTo(s,l),e.lineTo(t.x+n(o)*a,t.y+r(o)*a),e.lineTo(t.x+n(t.angle)*i,t.y+r(t.angle)*i),e.lineTo(t.x-n(o)*a,t.y-r(o)*a),e.lineTo(s,l)},t}(vs);function GE(e,t){var n=null==e?"":e+"";return t&&("string"==typeof t?n=t.replace("{value}",n):"function"==typeof t&&(n=t(e))),n}var $E=2*Math.PI,qE=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.prototype.render=function(e,t,n){this.group.removeAll();var r=e.get(["axisLine","lineStyle","color"]),i=function(e,t){var n=e.get("center"),r=t.getWidth(),i=t.getHeight(),a=Math.min(r,i);return{cx:mi(n[0],t.getWidth()),cy:mi(n[1],t.getHeight()),r:mi(e.get("radius"),a/2)}}(e,n);this._renderMain(e,t,n,r,i),this._data=e.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(e,t,n,r,i){for(var a=this.group,o=e.get("clockwise"),s=-e.get("startAngle")/180*Math.PI,l=-e.get("endAngle")/180*Math.PI,c=e.getModel("axisLine"),u=c.get("roundCap")?d_:Sc,h=c.get("show"),d=c.getModel("lineStyle"),f=d.get("width"),p=(l-s)%$E||l===s?(l-s)%$E:$E,A=s,g=0;h&&g<r.length;g++){var m=new u({shape:{startAngle:A,endAngle:l=s+p*Math.min(Math.max(r[g][0],0),1),cx:i.cx,cy:i.cy,clockwise:o,r0:i.r-f,r:i.r},silent:!0});m.setStyle({fill:r[g][1]}),m.setStyle(d.getLineStyle(["color","width"])),a.add(m),A=l}var v=function(e){if(e<=0)return r[0][1];var t;for(t=0;t<r.length;t++)if(r[t][0]>=e&&(0===t?0:r[t-1][0])<e)return r[t][1];return r[t-1][1]};if(!o){var y=s;s=l,l=y}this._renderTicks(e,t,n,v,i,s,l,o,f),this._renderTitleAndDetail(e,t,n,v,i),this._renderAnchor(e,i),this._renderPointer(e,t,n,v,i,s,l,o,f)},t.prototype._renderTicks=function(e,t,n,r,i,a,o,s,l){for(var c,u,h=this.group,d=i.cx,f=i.cy,p=i.r,A=+e.get("min"),g=+e.get("max"),m=e.getModel("splitLine"),v=e.getModel("axisTick"),y=e.getModel("axisLabel"),b=e.get("splitNumber"),w=v.get("splitNumber"),x=mi(m.get("length"),p),_=mi(v.get("length"),p),C=a,S=(o-a)/b,k=S/w,B=m.getModel("lineStyle").getLineStyle(),E=v.getModel("lineStyle").getLineStyle(),T=m.get("distance"),I=0;I<=b;I++){if(c=Math.cos(C),u=Math.sin(C),m.get("show")){var M=new Hc({shape:{x1:c*(p-(F=T?T+l:l))+d,y1:u*(p-F)+f,x2:c*(p-x-F)+d,y2:u*(p-x-F)+f},style:B,silent:!0});"auto"===B.stroke&&M.setStyle({stroke:r(I/b)}),h.add(M)}if(y.get("show")){var F=y.get("distance")+T,D=GE(vi(I/b*(g-A)+A),y.get("formatter")),P=r(I/b);h.add(new Vs({style:Gu(y,{text:D,x:c*(p-x-F)+d,y:u*(p-x-F)+f,verticalAlign:u<-.8?"top":u>.8?"bottom":"middle",align:c<-.4?"left":c>.4?"right":"center"},{inheritColor:P}),silent:!0}))}if(v.get("show")&&I!==b){F=(F=v.get("distance"))?F+l:l;for(var O=0;O<=w;O++){c=Math.cos(C),u=Math.sin(C);var L=new Hc({shape:{x1:c*(p-F)+d,y1:u*(p-F)+f,x2:c*(p-_-F)+d,y2:u*(p-_-F)+f},silent:!0,style:E});"auto"===E.stroke&&L.setStyle({stroke:r((I+O/w)/b)}),h.add(L),C+=k}C-=k}else C+=S}},t.prototype._renderPointer=function(e,t,n,r,i,a,o,s,l){var c=this.group,u=this._data,h=this._progressEls,d=[],f=e.get(["pointer","show"]),p=e.getModel("progress"),A=p.get("show"),g=e.getData(),m=g.mapDimension("value"),v=+e.get("min"),y=+e.get("max"),b=[v,y],w=[a,o];function x(t,n){var r,a=g.getItemModel(t).getModel("pointer"),o=mi(a.get("width"),i.r),s=mi(a.get("length"),i.r),l=e.get(["pointer","icon"]),c=a.get("offsetCenter"),u=mi(c[0],i.r),h=mi(c[1],i.r),d=a.get("keepAspect");return(r=l?Zg(l,u-o/2,h-s,o,s,null,d):new VE({shape:{angle:-Math.PI/2,width:o,r:s,x:u,y:h}})).rotation=-(n+Math.PI/2),r.x=i.cx,r.y=i.cy,r}function _(e,t){var n=p.get("roundCap")?d_:Sc,r=p.get("overlap"),o=r?p.get("width"):l/g.count(),c=r?i.r-o:i.r-(e+1)*o,u=r?i.r:i.r-e*o,h=new n({shape:{startAngle:a,endAngle:t,cx:i.cx,cy:i.cy,clockwise:s,r0:c,r:u}});return r&&(h.z2=y-g.get(m,e)%y),h}(A||f)&&(g.diff(u).add(function(t){if(f){var n=x(t,a);Cu(n,{rotation:-(gi(g.get(m,t),b,w,!0)+Math.PI/2)},e),c.add(n),g.setItemGraphicEl(t,n)}if(A){var r=_(t,a),i=p.get("clip");Cu(r,{shape:{endAngle:gi(g.get(m,t),b,w,i)}},e),c.add(r),d[t]=r}}).update(function(t,n){if(f){var r=u.getItemGraphicEl(n),i=r?r.rotation:a,o=x(t,i);o.rotation=i,_u(o,{rotation:-(gi(g.get(m,t),b,w,!0)+Math.PI/2)},e),c.add(o),g.setItemGraphicEl(t,o)}if(A){var s=h[n],l=_(t,s?s.shape.endAngle:a),v=p.get("clip");_u(l,{shape:{endAngle:gi(g.get(m,t),b,w,v)}},e),c.add(l),d[t]=l}}).execute(),g.each(function(e){var t=g.getItemModel(e),n=t.getModel("emphasis");if(f){var i=g.getItemGraphicEl(e);i.useStyle(g.getItemVisual(e,"style")),i.setStyle(t.getModel(["pointer","itemStyle"]).getItemStyle()),"auto"===i.style.fill&&i.setStyle("fill",r(gi(g.get(m,e),b,[0,1],!0))),i.z2EmphasisLift=0,Ol(i,t),Ml(i,n.get("focus"),n.get("blurScope"))}if(A){var a=d[e];a.useStyle(g.getItemVisual(e,"style")),a.setStyle(t.getModel(["progress","itemStyle"]).getItemStyle()),a.z2EmphasisLift=0,Ol(a,t),Ml(a,n.get("focus"),n.get("blurScope"))}}),this._progressEls=d)},t.prototype._renderAnchor=function(e,t){var n=e.getModel("anchor");if(n.get("show")){var r=n.get("size"),i=n.get("icon"),a=n.get("offsetCenter"),o=n.get("keepAspect"),s=Zg(i,t.cx-r/2+mi(a[0],t.r),t.cy-r/2+mi(a[1],t.r),r,r,null,o);s.z2=n.get("showAbove")?1:0,s.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(s)}},t.prototype._renderTitleAndDetail=function(e,t,n,r,i){var a=this,o=e.getData(),s=o.mapDimension("value"),l=+e.get("min"),c=+e.get("max"),u=new ii,h=[],d=[],f=e.isAnimationEnabled();o.diff(this._data).add(function(e){h[e]=new Vs({silent:!0}),d[e]=new Vs({silent:!0})}).update(function(e,t){h[e]=a._titleEls[t],d[e]=a._detailEls[t]}).execute(),o.each(function(t){var n=o.getItemModel(t),a=o.get(s,t),p=new ii,A=r(gi(a,[l,c],[0,1],!0)),g=n.getModel("title");if(g.get("show")){var m=g.get("offsetCenter"),v=i.cx+mi(m[0],i.r),y=i.cy+mi(m[1],i.r);(B=h[t]).attr({style:Gu(g,{x:v,y:y,text:o.getName(t),align:"center",verticalAlign:"middle"},{inheritColor:A})}),p.add(B)}var b=n.getModel("detail");if(b.get("show")){var w=b.get("offsetCenter"),x=i.cx+mi(w[0],i.r),_=i.cy+mi(w[1],i.r),C=mi(b.get("width"),i.r),S=mi(b.get("height"),i.r),k=e.get(["progress","show"])?o.getItemVisual(t,"style").fill:A,B=d[t],E=b.get("formatter");B.attr({style:Gu(b,{x:x,y:_,text:GE(a,E),width:isNaN(C)?null:C,height:isNaN(S)?null:S,align:"center",verticalAlign:"middle"},{inheritColor:k})}),Zu(B,{normal:b},a,function(e){return GE(e,E)}),f&&eh(B,t,o,e,{getFormattedLabel:function(e,t,n,r,i,o){return GE(o?o.interpolatedValue:a,E)}}),p.add(B)}u.add(p)}),this.group.add(u),this._titleEls=h,this._detailEls=d},t.type="gauge",t}(AA),WE=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="itemStyle",n.useColorPaletteOnData=!0,n}return g(t,e),t.prototype.getInitialData=function(e,t){return j_(this,["value"])},t.type="series.gauge",t.defaultOption={zlevel:0,z:2,center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12},pointer:{icon:null,offsetCenter:[0,0],show:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},t}(rA);var KE=["itemStyle","opacity"],YE=function(e){function t(t,n){var r=e.call(this)||this,i=r,a=new Lc,o=new Vs;return i.setTextContent(o),r.setTextGuideLine(a),r.updateData(t,n,!0),r}return g(t,e),t.prototype.updateData=function(e,t,n){var r=e.hostModel,i=e.getItemModel(t),a=e.getItemLayout(t),o=i.getModel("emphasis"),s=i.get(KE);s=null==s?1:s,this.useStyle(e.getItemVisual(t,"style")),this.style.lineJoin="round",n?(this.setShape({points:a.points}),this.style.opacity=0,Cu(this,{style:{opacity:s}},r,t)):_u(this,{style:{opacity:s},shape:{points:a.points}},r,t),Ol(this,i),this._updateLabel(e,t),Ml(this,o.get("focus"),o.get("blurScope"))},t.prototype._updateLabel=function(e,t){var n=this.getTextGuideLine(),r=this.getTextContent(),i=e.hostModel,a=e.getItemModel(t),o=e.getItemLayout(t).label,s=e.getItemVisual(t,"style"),l=s.fill;zu(r,Vu(a),{labelFetcher:e.hostModel,labelDataIndex:t,defaultOpacity:s.opacity,defaultText:e.getName(t)},{normal:{align:o.textAlign,verticalAlign:o.verticalAlign}}),this.setTextConfig({local:!0,inside:!!o.inside,insideStroke:l,outsideFill:l});var c=o.linePoints;n.setShape({points:c}),this.textGuideLineConfig={anchor:c?new $n(c[0][0],c[0][1]):null},_u(r,{style:{x:o.x,y:o.y}},i,t),r.attr({rotation:o.rotation,originX:o.x,originY:o.y,z2:10}),Eg(this,Tg(a),{stroke:l})},t}(Dc),XE=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreLabelLineUpdate=!0,n}return g(t,e),t.prototype.render=function(e,t,n){var r=e.getData(),i=this._data,a=this.group;r.diff(i).add(function(e){var t=new YE(r,e);r.setItemGraphicEl(e,t),a.add(t)}).update(function(e,t){var n=i.getItemGraphicEl(t);n.updateData(r,e),a.add(n),r.setItemGraphicEl(e,n)}).remove(function(t){Bu(i.getItemGraphicEl(t),e,t)}).execute(),this._data=r},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t}(AA),JE=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.useColorPaletteOnData=!0,n}return g(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new Q_(Z(this.getData,this),Z(this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.getInitialData=function(e,t){return j_(this,{coordDimensions:["value"],encodeDefaulter:ee(zd,this)})},t.prototype._defaultLabelLine=function(e){zi(e,"labelLine",["show"]);var t=e.labelLine,n=e.emphasis.labelLine;t.show=t.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.prototype.getDataParams=function(t){var n=this.getData(),r=e.prototype.getDataParams.call(this,t),i=n.mapDimension("value"),a=n.getSum(i);return r.percent=a?+(n.get(i,t)/a*100).toFixed(2):0,r.$vars.push("percent"),r},t.type="series.funnel",t.defaultOption={zlevel:0,z:2,legendHoverLink:!0,left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(rA);function ZE(e,t){e.eachSeriesByType("funnel",function(e){var n=e.getData(),r=n.mapDimension("value"),i=e.get("sort"),a=function(e,t){return yd(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}(e,t),o=e.get("orient"),s=a.width,l=a.height,c=function(e,t){for(var n=e.mapDimension("value"),r=e.mapArray(n,function(e){return e}),i=[],a="ascending"===t,o=0,s=e.count();o<s;o++)i[o]=o;return"function"==typeof t?i.sort(t):"none"!==t&&i.sort(function(e,t){return a?r[e]-r[t]:r[t]-r[e]}),i}(n,i),u=a.x,h=a.y,d="horizontal"===o?[mi(e.get("minSize"),l),mi(e.get("maxSize"),l)]:[mi(e.get("minSize"),s),mi(e.get("maxSize"),s)],f=n.getDataExtent(r),p=e.get("min"),A=e.get("max");null==p&&(p=Math.min(f[0],0)),null==A&&(A=f[1]);var g=e.get("funnelAlign"),m=e.get("gap"),v=(("horizontal"===o?s:l)-m*(n.count()-1))/n.count(),y=function(e,t){if("horizontal"===o){var i=gi(n.get(r,e)||0,[p,A],d,!0),a=void 0;switch(g){case"top":a=h;break;case"center":a=h+(l-i)/2;break;case"bottom":a=h+(l-i)}return[[t,a],[t,a+i]]}var c,f=gi(n.get(r,e)||0,[p,A],d,!0);switch(g){case"left":c=u;break;case"center":c=u+(s-f)/2;break;case"right":c=u+s-f}return[[c,t],[c+f,t]]};"ascending"===i&&(v=-v,m=-m,"horizontal"===o?u+=s:h+=l,c=c.reverse());for(var b=0;b<c.length;b++){var w=c[b],x=c[b+1],_=n.getItemModel(w);if("horizontal"===o){var C=_.get(["itemStyle","width"]);null==C?C=v:(C=mi(C,s),"ascending"===i&&(C=-C));var S=y(w,u),k=y(x,u+C);u+=C+m,n.setItemLayout(w,{points:S.concat(k.slice().reverse())})}else{var B=_.get(["itemStyle","height"]);null==B?B=v:(B=mi(B,l),"ascending"===i&&(B=-B));S=y(w,h),k=y(x,h+B);h+=B+m,n.setItemLayout(w,{points:S.concat(k.slice().reverse())})}}!function(e){var t=e.hostModel.get("orient");e.each(function(n){var r,i,a,o,s=e.getItemModel(n),l=s.getModel("label").get("position"),c=s.getModel("labelLine"),u=e.getItemLayout(n),h=u.points,d="inner"===l||"inside"===l||"center"===l||"insideLeft"===l||"insideRight"===l;if(d)"insideLeft"===l?(i=(h[0][0]+h[3][0])/2+5,a=(h[0][1]+h[3][1])/2,r="left"):"insideRight"===l?(i=(h[1][0]+h[2][0])/2-5,a=(h[1][1]+h[2][1])/2,r="right"):(i=(h[0][0]+h[1][0]+h[2][0]+h[3][0])/4,a=(h[0][1]+h[1][1]+h[2][1]+h[3][1])/4,r="center"),o=[[i,a],[i,a]];else{var f=void 0,p=void 0,A=void 0,g=void 0,m=c.get("length");"left"===l?(f=(h[3][0]+h[0][0])/2,p=(h[3][1]+h[0][1])/2,i=(A=f-m)-5,r="right"):"right"===l?(f=(h[1][0]+h[2][0])/2,p=(h[1][1]+h[2][1])/2,i=(A=f+m)+5,r="left"):"top"===l?(f=(h[3][0]+h[0][0])/2,a=(g=(p=(h[3][1]+h[0][1])/2)-m)-5,r="center"):"bottom"===l?(f=(h[1][0]+h[2][0])/2,a=(g=(p=(h[1][1]+h[2][1])/2)+m)+5,r="center"):"rightTop"===l?(f="horizontal"===t?h[3][0]:h[1][0],p="horizontal"===t?h[3][1]:h[1][1],"horizontal"===t?(a=(g=p-m)-5,r="center"):(i=(A=f+m)+5,r="top")):"rightBottom"===l?(f=h[2][0],p=h[2][1],"horizontal"===t?(a=(g=p+m)+5,r="center"):(i=(A=f+m)+5,r="bottom")):"leftTop"===l?(f=h[0][0],p="horizontal"===t?h[0][1]:h[1][1],"horizontal"===t?(a=(g=p-m)-5,r="center"):(i=(A=f-m)-5,r="right")):"leftBottom"===l?(f="horizontal"===t?h[1][0]:h[3][0],p="horizontal"===t?h[1][1]:h[2][1],"horizontal"===t?(a=(g=p+m)+5,r="center"):(i=(A=f-m)-5,r="right")):(f=(h[1][0]+h[2][0])/2,p=(h[1][1]+h[2][1])/2,"horizontal"===t?(a=(g=p+m)+5,r="center"):(i=(A=f+m)+5,r="left")),"horizontal"===t?i=A=f:a=g=p,o=[[f,p],[A,g]]}u.label={linePoints:o,x:i,y:a,verticalAlign:"middle",textAlign:r,inside:d}})}(n)})}var eT=.3;function tT(e,t,n,r){for(var i,a=[],o=0;o<n.length;o++){var s=n[o],l=e.get(e.mapDimension(s),t);i=l,("category"===r.getAxis(s).type?null==i:null==i||isNaN(i))||a.push(r.dataToPoint(l,s))}return a}function nT(e,t,n,r,i){var a=tT(e,n,r,i),o=new Lc({shape:{points:a},z2:10});return t.add(o),e.setItemGraphicEl(n,o),o}function rT(e){var t=e.get("smooth",!0);return!0===t&&(t=eT),fe(t=Pi(t))&&(t=0),{smooth:t}}function iT(e,t,n,r){e.useStyle(t.getItemVisual(n,"style")),e.style.fill=null,e.setShape("smooth",r.smooth);var i=t.getItemModel(n),a=i.getModel("emphasis");Ol(e,i,"lineStyle"),Ml(e,a.get("focus"),a.get("blurScope"))}var aT=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._dataGroup=new ii,n._initialized=!1,n}return g(t,e),t.prototype.init=function(){this.group.add(this._dataGroup)},t.prototype.render=function(e,t,n,r){var i=this._dataGroup,a=e.getData(),o=this._data,s=e.coordinateSystem,l=s.dimensions,c=rT(e);if(a.diff(o).add(function(e){iT(nT(a,i,e,l,s),a,e,c)}).update(function(t,n){var r=o.getItemGraphicEl(n),i=tT(a,t,l,s);a.setItemGraphicEl(t,r),_u(r,{shape:{points:i}},e,t),iT(r,a,t,c)}).remove(function(e){var t=o.getItemGraphicEl(e);i.remove(t)}).execute(),!this._initialized){this._initialized=!0;var u=function(e,t,n){var r=e.model,i=e.getRect(),a=new Ds({shape:{x:i.x,y:i.y,width:i.width,height:i.height}}),o="horizontal"===r.get("layout")?"width":"height";return a.setShape(o,0),Cu(a,{shape:{width:i.width,height:i.height}},t,n),a}(s,e,function(){setTimeout(function(){i.removeClipPath()})});i.setClipPath(u)}this._data=a},t.prototype.incrementalPrepareRender=function(e,t,n){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},t.prototype.incrementalRender=function(e,t,n){for(var r=t.getData(),i=t.coordinateSystem,a=i.dimensions,o=rT(t),s=e.start;s<e.end;s++){var l=nT(r,this._dataGroup,s,a,i);l.incremental=!0,iT(l,r,s,o)}},t.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},t.type="parallel",t}(AA);function oT(e){var t=e.ecModel.getComponent("parallel",e.get("parallelIndex"));if(t){var n={};return q(t.dimensions,function(e){var t=+e.replace("dim","");n[e]=t}),n}}var sT=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return g(t,e),t.prototype.getInitialData=function(e,t){return zy(this.getSource(),this,{useEncodeDefaulter:Z(oT,null,this)})},t.prototype.getRawIndicesByActiveState=function(e){var t=this.coordinateSystem,n=this.getData(),r=[];return t.eachActiveState(n,function(t,i){e===t&&r.push(n.getRawIndex(i))}),r},t.type="series.parallel",t.dependencies=["parallel"],t.defaultOption={zlevel:0,z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"},t}(rA),lT=["lineStyle","opacity"],cT={seriesType:"parallel",reset:function(e,t){var n=e.coordinateSystem,r={normal:e.get(["lineStyle","opacity"]),active:e.get("activeOpacity"),inactive:e.get("inactiveOpacity")};return{progress:function(e,t){n.eachActiveState(t,function(e,n){var i=r[e];if("normal"===e&&t.hasItemOption){var a=t.getItemModel(n).get(lT,!0);null!=a&&(i=a)}t.ensureUniqueItemVisual(n,"style").opacity=i},e.start,e.end)}}}};function uT(e){!function(e){if(e.parallel)return;var t=!1;q(e.series,function(e){e&&"parallel"===e.type&&(t=!0)}),t&&(e.parallel=[{}])}(e),function(e){q(Qi(e.parallelAxis),function(t){if(oe(t)){var n=t.parallelIndex||0,r=Qi(e.parallel)[n];r&&r.parallelAxisDefault&&N(t,r.parallelAxisDefault,!1)}})}(e)}var hT=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.prototype.render=function(e,t,n){this._model=e,this._api=n,this._handlers||(this._handlers={},q(dT,function(e,t){n.getZr().on(t,this._handlers[t]=Z(e,this))},this)),bA(this,"_throttledDispatchExpand",e.get("axisExpandRate"),"fixRate")},t.prototype.dispose=function(e,t){q(this._handlers,function(e,n){t.getZr().off(n,e)}),this._handlers=null},t.prototype._throttledDispatchExpand=function(e){this._dispatchExpand(e)},t.prototype._dispatchExpand=function(e){e&&this._api.dispatchAction(H({type:"parallelAxisExpand"},e))},t.type="parallel",t}(aA),dT={mousedown:function(e){fT(this,"click")&&(this._mouseDownPoint=[e.offsetX,e.offsetY])},mouseup:function(e){var t=this._mouseDownPoint;if(fT(this,"click")&&t){var n=[e.offsetX,e.offsetY];if(Math.pow(t[0]-n[0],2)+Math.pow(t[1]-n[1],2)>5)return;var r=this._model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]);"none"!==r.behavior&&this._dispatchExpand({axisExpandWindow:r.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(e){if(!this._mouseDownPoint&&fT(this,"mousemove")){var t=this._model,n=t.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]),r=n.behavior;"jump"===r&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===r?null:{axisExpandWindow:n.axisExpandWindow,animation:"jump"===r?null:{duration:0}})}}};function fT(e,t){var n=e._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===t}var pT=hT,AT=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.prototype.init=function(){e.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(e){var t=this.option;e&&N(t,e,!0),this._initDimensions()},t.prototype.contains=function(e,t){var n=e.get("parallelIndex");return null!=n&&t.getComponent("parallel",n)===this},t.prototype.setAxisExpand=function(e){q(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(t){e.hasOwnProperty(t)&&(this.option[t]=e[t])},this)},t.prototype._initDimensions=function(){var e=this.dimensions=[],t=this.parallelAxisIndex=[];q(Y(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(e){return(e.get("parallelIndex")||0)===this.componentIndex},this),function(n){e.push("dim"+n.get("dim")),t.push(n.componentIndex)})},t.type="parallel",t.dependencies=["parallelAxis"],t.layoutMode="box",t.defaultOption={zlevel:0,z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},t}(Bd),gT=function(e){function t(t,n,r,i,a){var o=e.call(this,t,n,r)||this;return o.type=i||"value",o.axisIndex=a,o}return g(t,e),t.prototype.isHorizontal=function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")},t}(ww);function mT(e,t,n,r,i,a){e=e||0;var o=n[1]-n[0];if(null!=i&&(i=yT(i,[0,o])),null!=a&&(a=Math.max(a,null!=i?i:0)),"all"===r){var s=Math.abs(t[1]-t[0]);i=a=yT(s=yT(s,[0,o]),[i,a]),r=0}t[0]=yT(t[0],n),t[1]=yT(t[1],n);var l=vT(t,r);t[r]+=e;var c,u=i||0,h=n.slice();return l.sign<0?h[0]+=u:h[1]-=u,t[r]=yT(t[r],h),c=vT(t,r),null!=i&&(c.sign!==l.sign||c.span<i)&&(t[1-r]=t[r]+l.sign*i),c=vT(t,r),null!=a&&c.span>a&&(t[1-r]=t[r]+c.sign*a),t}function vT(e,t){var n=e[t]-e[1-t];return{span:Math.abs(n),sign:n>0?-1:n<0?1:t?-1:1}}function yT(e,t){return Math.min(null!=t[1]?t[1]:1/0,Math.max(null!=t[0]?t[0]:-1/0,e))}var bT=q,wT=Math.min,xT=Math.max,_T=Math.floor,CT=Math.ceil,ST=vi,kT=Math.PI;function BT(e,t){return wT(xT(e,t[0]),t[1])}var ET=function(){function e(e,t,n){this.type="parallel",this._axesMap=Se(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,n)}return e.prototype._init=function(e,t,n){var r=e.dimensions,i=e.parallelAxisIndex;bT(r,function(e,n){var r=i[n],a=t.getComponent("parallelAxis",r),o=this._axesMap.set(e,new gT(e,$b(a),[0,0],a.get("type"),r)),s="category"===o.type;o.onBand=s&&a.get("boundaryGap"),o.inverse=a.get("inverse"),a.axis=o,o.model=a,o.coordinateSystem=a.coordinateSystem=this},this)},e.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},e.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),n=t.axisBase,r=t.layoutBase,i=t.pixelDimIndex,a=e[1-i],o=e[i];return a>=n&&a<=n+t.axisLength&&o>=r&&o<=r+t.layoutLength},e.prototype.getModel=function(){return this._model},e.prototype._updateAxesFromSeries=function(e,t){t.eachSeries(function(n){if(e.contains(n,t)){var r=n.getData();bT(this.dimensions,function(e){var t=this._axesMap.get(e);t.scale.unionExtentFromData(r,r.mapDimension(e)),Gb(t.scale,t.model)},this)}},this)},e.prototype.resize=function(e,t){this._rect=yd(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},e.prototype.getRect=function(){return this._rect},e.prototype._makeLayoutInfo=function(){var e,t=this._model,n=this._rect,r=["x","y"],i=["width","height"],a=t.get("layout"),o="horizontal"===a?0:1,s=n[i[o]],l=[0,s],c=this.dimensions.length,u=BT(t.get("axisExpandWidth"),l),h=BT(t.get("axisExpandCount")||0,[0,c]),d=t.get("axisExpandable")&&c>3&&c>h&&h>1&&u>0&&s>0,f=t.get("axisExpandWindow");f?(e=BT(f[1]-f[0],l),f[1]=f[0]+e):(e=BT(u*(h-1),l),(f=[u*(t.get("axisExpandCenter")||_T(c/2))-e/2])[1]=f[0]+e);var p=(s-e)/(c-h);p<3&&(p=0);var A=[_T(ST(f[0]/u,1))+1,CT(ST(f[1]/u,1))-1],g=p/u*f[0];return{layout:a,pixelDimIndex:o,layoutBase:n[r[o]],layoutLength:s,axisBase:n[r[1-o]],axisLength:n[i[1-o]],axisExpandable:d,axisExpandWidth:u,axisCollapseWidth:p,axisExpandWindow:f,axisCount:c,winInnerIndices:A,axisExpandWindow0Pos:g}},e.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,n=this.dimensions,r=this._makeLayoutInfo(),i=r.layout;t.each(function(e){var t=[0,r.axisLength],n=e.inverse?1:0;e.setExtent(t[n],t[1-n])}),bT(n,function(t,n){var a=(r.axisExpandable?function(e,t){var n,r,i=t.layoutLength,a=t.axisExpandWidth,o=t.axisCount,s=t.axisCollapseWidth,l=t.winInnerIndices,c=s,u=!1;e<l[0]?(n=e*s,r=s):e<=l[1]?(n=t.axisExpandWindow0Pos+e*a-t.axisExpandWindow[0],c=a,u=!0):(n=i-(o-1-e)*s,r=s);return{position:n,axisNameAvailableWidth:c,axisLabelShow:u,nameTruncateMaxWidth:r}}:function(e,t){var n=t.layoutLength/(t.axisCount-1);return{position:n*e,axisNameAvailableWidth:n,axisLabelShow:!0}})(n,r),o={horizontal:{x:a.position,y:r.axisLength},vertical:{x:0,y:a.position}},s={horizontal:kT/2,vertical:0},l=[o[i].x+e.x,o[i].y+e.y],c=s[i],u=[1,0,0,1,0,0];Ht(u,u,c),Ut(u,u,l),this._axesLayout[t]={position:l,rotation:c,transform:u,axisNameAvailableWidth:a.axisNameAvailableWidth,axisLabelShow:a.axisLabelShow,nameTruncateMaxWidth:a.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},e.prototype.getAxis=function(e){return this._axesMap.get(e)},e.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},e.prototype.eachActiveState=function(e,t,n,r){null==n&&(n=0),null==r&&(r=e.count());var i=this._axesMap,a=this.dimensions,o=[],s=[];q(a,function(t){o.push(e.mapDimension(t)),s.push(i.get(t).model)});for(var l=this.hasAxisBrushed(),c=n;c<r;c++){var u=void 0;if(l){u="active";for(var h=e.getValues(o,c),d=0,f=a.length;d<f;d++){if("inactive"===s[d].getActiveState(h[d])){u="inactive";break}}}else u="normal";t(u,c)}},e.prototype.hasAxisBrushed=function(){for(var e=this.dimensions,t=this._axesMap,n=!1,r=0,i=e.length;r<i;r++)"normal"!==t.get(e[r]).model.getActiveState()&&(n=!0);return n},e.prototype.axisCoordToPoint=function(e,t){return Iu([e,0],this._axesLayout[t].transform)},e.prototype.getAxisLayout=function(e){return R(this._axesLayout[e])},e.prototype.getSlidedAxisExpandWindow=function(e){var t=this._makeLayoutInfo(),n=t.pixelDimIndex,r=t.axisExpandWindow.slice(),i=r[1]-r[0],a=[0,t.axisExpandWidth*(t.axisCount-1)];if(!this.containPoint(e))return{behavior:"none",axisExpandWindow:r};var o,s=e[n]-t.layoutBase-t.axisExpandWindow0Pos,l="slide",c=t.axisCollapseWidth,u=this._model.get("axisExpandSlideTriggerArea"),h=null!=u[0];if(c)h&&c&&s<i*u[0]?(l="jump",o=s-i*u[2]):h&&c&&s>i*(1-u[0])?(l="jump",o=s-i*(1-u[2])):(o=s-i*u[1])>=0&&(o=s-i*(1-u[1]))<=0&&(o=0),(o*=t.axisExpandWidth/c)?mT(o,r,a,"all"):l="none";else{var d=r[1]-r[0];(r=[xT(0,a[1]*s/d-d/2)])[1]=wT(a[1],r[0]+d),r[0]=r[1]-d}return{axisExpandWindow:r,behavior:l}},e}();var TT={create:function(e,t){var n=[];return e.eachComponent("parallel",function(r,i){var a=new ET(r,e,t);a.name="parallel_"+i,a.resize(r,t),r.coordinateSystem=a,a.model=r,n.push(a)}),e.eachSeries(function(e){if("parallel"===e.get("coordinateSystem")){var t=e.getReferringComponents("parallel",na).models[0];e.coordinateSystem=t.coordinateSystem}}),n}},IT=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.activeIntervals=[],n}return g(t,e),t.prototype.getAreaSelectStyle=function(){return va([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},t.prototype.setActiveIntervals=function(e){var t=this.activeIntervals=R(e);if(t)for(var n=t.length-1;n>=0;n--)yi(t[n])},t.prototype.getActiveState=function(e){var t=this.activeIntervals;if(!t.length)return"normal";if(null==e||isNaN(+e))return"inactive";if(1===t.length){var n=t[0];if(n[0]<=e&&e<=n[1])return"active"}else for(var r=0,i=t.length;r<i;r++)if(t[r][0]<=e&&e<=t[r][1])return"active";return"inactive"},t}(Bd);G(IT,Jb);var MT=IT,FT=!0,DT=Math.min,PT=Math.max,OT=Math.pow,LT=1e4,RT=6,NT=6,UT={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},HT={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},jT={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},QT=0,zT=function(e){function t(t){var n=e.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=t,n.group=new ii,n._uid="brushController_"+QT++,q(gI,function(e,t){this._handlers[t]=Z(e,this)},n),n}return g(t,e),t.prototype.enableBrush=function(e){return this._brushType&&this._doDisableBrush(),e.brushType&&this._doEnableBrush(e),this},t.prototype._doEnableBrush=function(e){var t=this._zr;this._enableGlobalPan||function(e,t,n){iS(e)[t]=n}(t,"globalPan",this._uid),q(this._handlers,function(e,n){t.on(n,e)}),this._brushType=e.brushType,this._brushOption=N(R(jT),e,!0)},t.prototype._doDisableBrush=function(){var e=this._zr;!function(e,t,n){var r=iS(e);r[t]===n&&(r[t]=null)}(e,"globalPan",this._uid),q(this._handlers,function(t,n){e.off(n,t)}),this._brushType=this._brushOption=null},t.prototype.setPanels=function(e){if(e&&e.length){var t=this._panels={};q(e,function(e){t[e.panelId]=R(e)})}else this._panels=null;return this},t.prototype.mount=function(e){e=e||{},this._enableGlobalPan=e.enableGlobalPan;var t=this.group;return this._zr.add(t),t.attr({x:e.x||0,y:e.y||0,rotation:e.rotation||0,scaleX:e.scaleX||1,scaleY:e.scaleY||1}),this._transform=t.getLocalTransform(),this},t.prototype.updateCovers=function(e){e=W(e,function(e){return N(R(jT),e,!0)});var t="\0-brush-index-",n=this._covers,r=this._covers=[],i=this,a=this._creatingCover;return new oy(n,e,function(e,t){return o(e.__brushOption,t)},o).add(s).update(s).remove(function(e){n[e]!==a&&i.group.remove(n[e])}).execute(),this;function o(e,n){return(null!=e.id?e.id:t+n)+"-"+e.brushType}function s(t,o){var s=e[t];if(null!=o&&n[o]===a)r[t]=n[o];else{var l=r[t]=null!=o?(n[o].__brushOption=s,n[o]):GT(i,VT(i,s));WT(i,l)}}},t.prototype.unmount=function(){return this.enableBrush(!1),JT(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(at);function VT(e,t){var n=vI[t.brushType].createCover(e,t);return n.__brushOption=t,qT(n,t),e.group.add(n),n}function GT(e,t){var n=KT(t);return n.endCreating&&(n.endCreating(e,t),qT(t,t.__brushOption)),t}function $T(e,t){var n=t.__brushOption;KT(t).updateCoverShape(e,t,n.range,n)}function qT(e,t){var n=t.z;null==n&&(n=LT),e.traverse(function(e){e.z=n,e.z2=n})}function WT(e,t){KT(t).updateCommon(e,t),$T(e,t)}function KT(e){return vI[e.__brushOption.brushType]}function YT(e,t,n){var r,i=e._panels;if(!i)return FT;var a=e._transform;return q(i,function(e){e.isTargetByCursor(t,n,a)&&(r=e)}),r}function XT(e,t){var n=e._panels;if(!n)return FT;var r=t.__brushOption.panelId;return null!=r?n[r]:FT}function JT(e){var t=e._covers,n=t.length;return q(t,function(t){e.group.remove(t)},e),t.length=0,!!n}function ZT(e,t){var n=W(e._covers,function(e){var t=e.__brushOption,n=R(t.range);return{brushType:t.brushType,panelId:t.panelId,range:n}});e.trigger("brush",{areas:n,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function eI(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function tI(e,t,n,r){var i=new ii;return i.add(new Ds({name:"main",style:aI(n),silent:!0,draggable:!0,cursor:"move",drift:ee(lI,e,t,i,["n","s","w","e"]),ondragend:ee(ZT,t,{isEnd:!0})})),q(r,function(n){i.add(new Ds({name:n.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:ee(lI,e,t,i,n),ondragend:ee(ZT,t,{isEnd:!0})}))}),i}function nI(e,t,n,r){var i=r.brushStyle.lineWidth||0,a=PT(i,NT),o=n[0][0],s=n[1][0],l=o-i/2,c=s-i/2,u=n[0][1],h=n[1][1],d=u-a+i/2,f=h-a+i/2,p=u-o,A=h-s,g=p+i,m=A+i;iI(e,t,"main",o,s,p,A),r.transformable&&(iI(e,t,"w",l,c,a,m),iI(e,t,"e",d,c,a,m),iI(e,t,"n",l,c,g,a),iI(e,t,"s",l,f,g,a),iI(e,t,"nw",l,c,a,a),iI(e,t,"ne",d,c,a,a),iI(e,t,"sw",l,f,a,a),iI(e,t,"se",d,f,a,a))}function rI(e,t){var n=t.__brushOption,r=n.transformable,i=t.childAt(0);i.useStyle(aI(n)),i.attr({silent:!r,cursor:r?"move":"default"}),q([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(n){var i=t.childOfName(n.join("")),a=1===n.length?sI(e,n[0]):function(e,t){var n=[sI(e,t[0]),sI(e,t[1])];return("e"===n[0]||"w"===n[0])&&n.reverse(),n.join("")}(e,n);i&&i.attr({silent:!r,invisible:!r,cursor:r?HT[a]+"-resize":null})})}function iI(e,t,n,r,i,a,o){var s,l,c,u,h,d=t.childOfName(n);d&&d.setShape((s=hI(e,t,[[r,i],[r+a,i+o]]),l=DT(s[0][0],s[1][0]),c=DT(s[0][1],s[1][1]),u=PT(s[0][0],s[1][0]),h=PT(s[0][1],s[1][1]),{x:l,y:c,width:u-l,height:h-c}))}function aI(e){return j({strokeNoScale:!0},e.brushStyle)}function oI(e,t,n,r){var i=[DT(e,n),DT(t,r)],a=[PT(e,n),PT(t,r)];return[[i[0],a[0]],[i[1],a[1]]]}function sI(e,t){return{left:"w",right:"e",top:"n",bottom:"s"}[Mu({w:"left",e:"right",n:"top",s:"bottom"}[t],function(e){return Tu(e.group)}(e))]}function lI(e,t,n,r,i,a){var o=n.__brushOption,s=e.toRectRange(o.range),l=uI(t,i,a);q(r,function(e){var t=UT[e];s[t[0]][t[1]]+=l[t[0]]}),o.range=e.fromRectRange(oI(s[0][0],s[1][0],s[0][1],s[1][1])),WT(t,n),ZT(t,{isEnd:!1})}function cI(e,t,n,r){var i=t.__brushOption.range,a=uI(e,n,r);q(i,function(e){e[0]+=a[0],e[1]+=a[1]}),WT(e,t),ZT(e,{isEnd:!1})}function uI(e,t,n){var r=e.group,i=r.transformCoordToLocal(t,n),a=r.transformCoordToLocal(0,0);return[i[0]-a[0],i[1]-a[1]]}function hI(e,t,n){var r=XT(e,t);return r&&r!==FT?r.clipPath(n,e._transform):R(n)}function dI(e){var t=e.event;t.preventDefault&&t.preventDefault()}function fI(e,t,n){return e.childOfName("main").contain(t,n)}function pI(e,t,n,r){var i,a=e._creatingCover,o=e._creatingPanel,s=e._brushOption;if(e._track.push(n.slice()),function(e){var t=e._track;if(!t.length)return!1;var n=t[t.length-1],r=t[0],i=n[0]-r[0],a=n[1]-r[1];return OT(i*i+a*a,.5)>RT}(e)||a){if(o&&!a){"single"===s.brushMode&&JT(e);var l=R(s);l.brushType=AI(l.brushType,o),l.panelId=o===FT?null:o.panelId,a=e._creatingCover=VT(e,l),e._covers.push(a)}if(a){var c=vI[AI(e._brushType,o)];a.__brushOption.range=c.getCreatingRange(hI(e,a,e._track)),r&&(GT(e,a),c.updateCommon(e,a)),$T(e,a),i={isEnd:r}}}else r&&"single"===s.brushMode&&s.removeOnClick&&YT(e,t,n)&&JT(e)&&(i={isEnd:r,removeOnClick:!0});return i}function AI(e,t){return"auto"===e?t.defaultBrushType:e}var gI={mousedown:function(e){if(this._dragging)mI(this,e);else if(!e.target||!e.target.draggable){dI(e);var t=this.group.transformCoordToLocal(e.offsetX,e.offsetY);this._creatingCover=null,(this._creatingPanel=YT(this,e,t))&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(e){var t=e.offsetX,n=e.offsetY,r=this.group.transformCoordToLocal(t,n);if(function(e,t,n){if(e._brushType&&!function(e,t,n){var r=e._zr;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}(e,t.offsetX,t.offsetY)){var r=e._zr,i=e._covers,a=YT(e,t,n);if(!e._dragging)for(var o=0;o<i.length;o++){var s=i[o].__brushOption;if(a&&(a===FT||s.panelId===a.panelId)&&vI[s.brushType].contain(i[o],n[0],n[1]))return}a&&r.setCursorStyle("crosshair")}}(this,e,r),this._dragging){dI(e);var i=pI(this,e,r,!1);i&&ZT(this,i)}},mouseup:function(e){mI(this,e)}};function mI(e,t){if(e._dragging){dI(t);var n=t.offsetX,r=t.offsetY,i=pI(e,t,e.group.transformCoordToLocal(n,r),!0);e._dragging=!1,e._track=[],e._creatingCover=null,i&&ZT(e,i)}}var vI={lineX:yI(0),lineY:yI(1),rect:{createCover:function(e,t){function n(e){return e}return tI({toRectRange:n,fromRectRange:n},e,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(e){var t=eI(e);return oI(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,n,r){nI(e,t,n,r)},updateCommon:rI,contain:fI},polygon:{createCover:function(e,t){var n=new ii;return n.add(new Lc({name:"main",style:aI(t),silent:!0})),n},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new Dc({name:"main",draggable:!0,drift:ee(cI,e,t),ondragend:ee(ZT,e,{isEnd:!0})}))},updateCoverShape:function(e,t,n,r){t.childAt(0).setShape({points:hI(e,t,n)})},updateCommon:rI,contain:fI}};function yI(e){return{createCover:function(t,n){return tI({toRectRange:function(t){var n=[t,[0,100]];return e&&n.reverse(),n},fromRectRange:function(t){return t[e]}},t,n,[[["w"],["e"]],[["n"],["s"]]][e])},getCreatingRange:function(t){var n=eI(t);return[DT(n[0][e],n[1][e]),PT(n[0][e],n[1][e])]},updateCoverShape:function(t,n,r,i){var a,o=XT(t,n);if(o!==FT&&o.getLinearBrushOtherExtent)a=o.getLinearBrushOtherExtent(e);else{var s=t._zr;a=[0,[s.getWidth(),s.getHeight()][1-e]]}var l=[r,a];e&&l.reverse(),nI(t,n,l,i)},updateCommon:rI,contain:fI}}var bI=zT;function wI(e){return e=CI(e),function(t){return Pu(t,e)}}function xI(e,t){return e=CI(e),function(n){var r=null!=t?t:n,i=r?e.width:e.height,a=r?e.x:e.y;return[a,a+(i||0)]}}function _I(e,t,n){var r=CI(e);return function(e,i){return r.contain(i[0],i[1])&&!dS(e,t,n)}}function CI(e){return tr.create(e)}var SI=["axisLine","axisTickLabel","axisName"];var kI=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.prototype.init=function(t,n){e.prototype.init.apply(this,arguments),(this._brushController=new bI(n.getZr())).on("brush",Z(this._onBrush,this))},t.prototype.render=function(e,t,n,r){if(!function(e,t,n){return n&&"axisAreaSelect"===n.type&&t.findComponents({mainType:"parallelAxis",query:n})[0]===e}(e,t,r)){this.axisModel=e,this.api=n,this.group.removeAll();var i=this._axisGroup;if(this._axisGroup=new ii,this.group.add(this._axisGroup),e.get("show")){var a=function(e,t){return t.getComponent("parallel",e.get("parallelIndex"))}(e,t),o=a.coordinateSystem,s=e.getAreaSelectStyle(),l=s.width,c=e.axis.dim,u=H({strokeContainThreshold:l},o.getAxisLayout(c)),h=new xC(e,u);q(SI,h.add,h),this._axisGroup.add(h.getGroup()),this._refreshBrushController(u,s,e,a,l,n),Du(i,this._axisGroup,e)}}},t.prototype._refreshBrushController=function(e,t,n,r,i,a){var o=n.axis.getExtent(),s=o[1]-o[0],l=Math.min(30,.1*Math.abs(s)),c=tr.create({x:o[0],y:-i/2,width:s,height:i});c.x-=l,c.width+=2*l,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,x:e.position[0],y:e.position[1]}).setPanels([{panelId:"pl",clipPath:wI(c),isTargetByCursor:_I(c,a,r),getLinearBrushOtherExtent:xI(c,0)}]).enableBrush({brushType:"lineX",brushStyle:t,removeOnClick:!0}).updateCovers(function(e){var t=e.axis;return W(e.activeIntervals,function(e){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(e[0],!0),t.dataToCoord(e[1],!0)]}})}(n))},t.prototype._onBrush=function(e){var t=e.areas,n=this.axisModel,r=n.axis,i=W(t,function(e){return[r.coordToData(e.range[0],!0),r.coordToData(e.range[1],!0)]});(!n.option.realtime===e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:i})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(aA),BI={type:"axisAreaSelect",event:"axisAreaSelected"};var EI={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function TI(e){e.registerComponentView(pT),e.registerComponentModel(AT),e.registerCoordinateSystem("parallel",TT),e.registerPreprocessor(uT),e.registerComponentModel(MT),e.registerComponentView(kI),nC(e,"parallel",MT,EI),function(e){e.registerAction(BI,function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},function(t){t.axis.model.setActiveIntervals(e.intervals)})}),e.registerAction("parallelAxisExpand",function(e,t){t.eachComponent({mainType:"parallel",query:e},function(t){t.setAxisExpand(e)})})}(e)}var II=function(){return function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}}(),MI=function(e){function t(t){return e.call(this,t)||this}return g(t,e),t.prototype.getDefaultShape=function(){return new II},t.prototype.buildPath=function(e,t){var n=t.extent;e.moveTo(t.x1,t.y1),e.bezierCurveTo(t.cpx1,t.cpy1,t.cpx2,t.cpy2,t.x2,t.y2),"vertical"===t.orient?(e.lineTo(t.x2+n,t.y2),e.bezierCurveTo(t.cpx2+n,t.cpy2,t.cpx1+n,t.cpy1,t.x1+n,t.y1)):(e.lineTo(t.x2,t.y2+n),e.bezierCurveTo(t.cpx2,t.cpy2+n,t.cpx1,t.cpy1+n,t.x1,t.y1+n)),e.closePath()},t.prototype.highlight=function(){xl(this)},t.prototype.downplay=function(){_l(this)},t}(vs);var FI=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._focusAdjacencyDisabled=!1,n}return g(t,e),t.prototype.render=function(e,t,n){var r=this,i=e.getGraph(),a=this.group,o=e.layoutInfo,s=o.width,l=o.height,c=e.getData(),u=e.getData("edge"),h=e.get("orient");this._model=e,a.removeAll(),a.x=o.x,a.y=o.y,i.eachEdge(function(t){var n=new MI,r=Gs(n);r.dataIndex=t.dataIndex,r.seriesIndex=e.seriesIndex,r.dataType="edge";var i,o,c,d,f,p,A,g,m=t.getModel(),v=m.getModel("lineStyle"),y=v.get("curveness"),b=t.node1.getLayout(),w=t.node1.getModel(),x=w.get("localX"),_=w.get("localY"),C=t.node2.getLayout(),S=t.node2.getModel(),k=S.get("localX"),B=S.get("localY"),E=t.getLayout();switch(n.shape.extent=Math.max(1,E.dy),n.shape.orient=h,"vertical"===h?(i=(null!=x?x*s:b.x)+E.sy,o=(null!=_?_*l:b.y)+b.dy,c=(null!=k?k*s:C.x)+E.ty,f=i,p=o*(1-y)+(d=null!=B?B*l:C.y)*y,A=c,g=o*y+d*(1-y)):(i=(null!=x?x*s:b.x)+b.dx,o=(null!=_?_*l:b.y)+E.sy,f=i*(1-y)+(c=null!=k?k*s:C.x)*y,p=o,A=i*y+c*(1-y),g=d=(null!=B?B*l:C.y)+E.ty),n.setShape({x1:i,y1:o,x2:c,y2:d,cpx1:f,cpy1:p,cpx2:A,cpy2:g}),n.useStyle(v.getItemStyle()),n.style.fill){case"source":n.style.fill=t.node1.getVisual("color"),n.style.decal=t.node1.getVisual("style").decal;break;case"target":n.style.fill=t.node2.getVisual("color"),n.style.decal=t.node2.getVisual("style").decal;break;case"gradient":var T=t.node1.getVisual("color"),I=t.node2.getVisual("color");"string"==typeof T&&"string"==typeof I&&(n.style.fill=new Xc(0,0,1,0,[{color:T,offset:0},{color:I,offset:1}]))}var M=m.getModel("emphasis");Ol(n,m,"lineStyle",function(e){return e.getItemStyle()}),a.add(n),u.setItemGraphicEl(t.dataIndex,n);var F=M.get("focus");Ml(n,"adjacency"===F?t.getAdjacentDataIndices():F,M.get("blurScope")),Gs(n).dataType="edge"}),i.eachNode(function(t){var n=t.getLayout(),r=t.getModel(),i=r.get("localX"),o=r.get("localY"),u=r.getModel("emphasis"),h=new Ds({shape:{x:null!=i?i*s:n.x,y:null!=o?o*l:n.y,width:n.dx,height:n.dy},style:r.getModel("itemStyle").getItemStyle()});zu(h,Vu(r),{labelFetcher:e,labelDataIndex:t.dataIndex,defaultText:t.id}),h.disableLabelAnimation=!0,h.setStyle("fill",t.getVisual("color")),h.setStyle("decal",t.getVisual("style").decal),Ol(h,r),a.add(h),c.setItemGraphicEl(t.dataIndex,h),Gs(h).dataType="node";var d=u.get("focus");Ml(h,"adjacency"===d?t.getAdjacentDataIndices():d,u.get("blurScope"))}),c.eachItemGraphicEl(function(t,i){c.getItemModel(i).get("draggable")&&(t.drift=function(t,a){r._focusAdjacencyDisabled=!0,this.shape.x+=t,this.shape.y+=a,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:e.id,dataIndex:c.getRawIndex(i),localX:this.shape.x/s,localY:this.shape.y/l})},t.ondragend=function(){r._focusAdjacencyDisabled=!1},t.draggable=!0,t.cursor="move")}),!this._data&&e.isAnimationEnabled()&&a.setClipPath(function(e,t,n){var r=new Ds({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return Cu(r,{shape:{width:e.width+20}},t,n),r}(a.getBoundingRect(),e,function(){a.removeClipPath()})),this._data=e.getData()},t.prototype.dispose=function(){},t.type="sankey",t}(AA),DI=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.prototype.getInitialData=function(e,t){var n=e.edges||e.links,r=e.data||e.nodes,i=e.levels;this.levelModels=[];for(var a=this.levelModels,o=0;o<i.length;o++)null!=i[o].depth&&i[o].depth>=0&&(a[i[o].depth]=new fh(i[o],this,t));if(r&&n)return HE(r,n,this,!0,function(e,t){e.wrapMethod("getItemModel",function(e,t){var n=e.parentModel,r=n.getData().getItemLayout(t);if(r){var i=r.depth,a=n.levelModels[i];a&&(e.parentModel=a)}return e}),t.wrapMethod("getItemModel",function(e,t){var n=e.parentModel,r=n.getGraph().getEdgeByIndex(t),i=r.node1.getLayout();if(i){var a=i.depth,o=n.levelModels[a];o&&(e.parentModel=o)}return e})}).data},t.prototype.setNodePosition=function(e,t){var n=this.option.data[e];n.localX=t[0],n.localY=t[1]},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(e,t,n){function r(e){return isNaN(e)||null==e}if("edge"===n){var i=this.getDataParams(e,n),a=i.data,o=i.value;return Lp("nameValue",{name:a.source+" -- "+a.target,value:o,noValue:r(o)})}var s=this.getGraph().getNodeByIndex(e).getLayout().value,l=this.getDataParams(e,n).data.name;return Lp("nameValue",{name:null!=l?l+"":null,value:s,noValue:r(s)})},t.prototype.optionUpdated=function(){this.option},t.prototype.getDataParams=function(t,n){var r=e.prototype.getDataParams.call(this,t,n);if(null==r.value&&"node"===n){var i=this.getGraph().getNodeByIndex(t).getLayout().value;r.value=i}return r},t.type="series.sankey",t.defaultOption={zlevel:0,z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},t}(rA);function PI(e,t){e.eachSeriesByType("sankey",function(e){var n=e.get("nodeWidth"),r=e.get("nodeGap"),i=function(e,t){return yd(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}(e,t);e.layoutInfo=i;var a=i.width,o=i.height,s=e.getGraph(),l=s.nodes,c=s.edges;!function(e){q(e,function(e){var t=VI(e.outEdges,zI),n=VI(e.inEdges,zI),r=e.getValue()||0,i=Math.max(t,n,r);e.setLayout({value:i},!0)})}(l),function(e,t,n,r,i,a,o,s,l){(function(e,t,n,r,i,a,o){for(var s=[],l=[],c=[],u=[],h=0,d=0;d<t.length;d++)s[d]=1;for(var d=0;d<e.length;d++)l[d]=e[d].inEdges.length,0===l[d]&&c.push(e[d]);var f=-1;for(;c.length;){for(var p=0;p<c.length;p++){var A=c[p],g=A.hostGraph.data.getRawDataItem(A.dataIndex),m=null!=g.depth&&g.depth>=0;m&&g.depth>f&&(f=g.depth),A.setLayout({depth:m?g.depth:h},!0),"vertical"===a?A.setLayout({dy:n},!0):A.setLayout({dx:n},!0);for(var v=0;v<A.outEdges.length;v++){var y=A.outEdges[v],b=t.indexOf(y);s[b]=0;var w=y.node2,x=e.indexOf(w);0==--l[x]&&u.indexOf(w)<0&&u.push(w)}}++h,c=u,u=[]}for(var d=0;d<s.length;d++)if(1===s[d])throw new Error("Sankey is a DAG, the original data has cycle!");var _=f>h-1?f:h-1;o&&"left"!==o&&function(e,t,n,r){if("right"===t){for(var i=[],a=e,o=0;a.length;){for(var s=0;s<a.length;s++){var l=a[s];l.setLayout({skNodeHeight:o},!0);for(var c=0;c<l.inEdges.length;c++){var u=l.inEdges[c];i.indexOf(u.node1)<0&&i.push(u.node1)}}a=i,i=[],++o}q(e,function(e){OI(e)||e.setLayout({depth:Math.max(0,r-e.getLayout().skNodeHeight)},!0)})}else"justify"===t&&function(e,t){q(e,function(e){OI(e)||e.outEdges.length||e.setLayout({depth:t},!0)})}(e,r)}(e,o,0,_);!function(e,t,n){q(e,function(e){var r=e.getLayout().depth*t;"vertical"===n?e.setLayout({y:r},!0):e.setLayout({x:r},!0)})}(e,"vertical"===a?(i-n)/_:(r-n)/_,a)})(e,t,n,i,a,s,l),function(e,t,n,r,i,a,o){var s=function(e,t){var n=[],r="vertical"===t?"y":"x",i=oa(e,function(e){return e.getLayout()[r]});return i.keys.sort(function(e,t){return e-t}),q(i.keys,function(e){n.push(i.buckets.get(e))}),n}(e,o);(function(e,t,n,r,i,a){var o=1/0;q(e,function(e){var t=e.length,s=0;q(e,function(e){s+=e.getLayout().value});var l="vertical"===a?(r-(t-1)*i)/s:(n-(t-1)*i)/s;l<o&&(o=l)}),q(e,function(e){q(e,function(e,t){var n=e.getLayout().value*o;"vertical"===a?(e.setLayout({x:t},!0),e.setLayout({dx:n},!0)):(e.setLayout({y:t},!0),e.setLayout({dy:n},!0))})}),q(t,function(e){var t=+e.getValue()*o;e.setLayout({dy:t},!0)})})(s,t,n,r,i,o),LI(s,i,n,r,o);for(var l=1;a>0;a--)RI(s,l*=.99,o),LI(s,i,n,r,o),GI(s,l,o),LI(s,i,n,r,o)}(e,t,a,i,r,o,s),function(e,t){var n="vertical"===t?"x":"y";q(e,function(e){e.outEdges.sort(function(e,t){return e.node2.getLayout()[n]-t.node2.getLayout()[n]}),e.inEdges.sort(function(e,t){return e.node1.getLayout()[n]-t.node1.getLayout()[n]})}),q(e,function(e){var t=0,n=0;q(e.outEdges,function(e){e.setLayout({sy:t},!0),t+=e.getLayout().dy}),q(e.inEdges,function(e){e.setLayout({ty:n},!0),n+=e.getLayout().dy})})}(e,s)}(l,c,n,r,a,o,0!==Y(l,function(e){return 0===e.getLayout().value}).length?0:e.get("layoutIterations"),e.get("orient"),e.get("nodeAlign"))})}function OI(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return null!=t.depth&&t.depth>=0}function LI(e,t,n,r,i){var a="vertical"===i?"x":"y";q(e,function(e){var o,s,l;e.sort(function(e,t){return e.getLayout()[a]-t.getLayout()[a]});for(var c=0,u=e.length,h="vertical"===i?"dx":"dy",d=0;d<u;d++)(l=c-(s=e[d]).getLayout()[a])>0&&(o=s.getLayout()[a]+l,"vertical"===i?s.setLayout({x:o},!0):s.setLayout({y:o},!0)),c=s.getLayout()[a]+s.getLayout()[h]+t;if((l=c-t-("vertical"===i?r:n))>0){o=s.getLayout()[a]-l,"vertical"===i?s.setLayout({x:o},!0):s.setLayout({y:o},!0),c=o;for(d=u-2;d>=0;--d)(l=(s=e[d]).getLayout()[a]+s.getLayout()[h]+t-c)>0&&(o=s.getLayout()[a]-l,"vertical"===i?s.setLayout({x:o},!0):s.setLayout({y:o},!0)),c=s.getLayout()[a]}})}function RI(e,t,n){q(e.slice().reverse(),function(e){q(e,function(e){if(e.outEdges.length){var r=VI(e.outEdges,NI,n)/VI(e.outEdges,zI);if(isNaN(r)){var i=e.outEdges.length;r=i?VI(e.outEdges,UI,n)/i:0}if("vertical"===n){var a=e.getLayout().x+(r-QI(e,n))*t;e.setLayout({x:a},!0)}else{var o=e.getLayout().y+(r-QI(e,n))*t;e.setLayout({y:o},!0)}}})})}function NI(e,t){return QI(e.node2,t)*e.getValue()}function UI(e,t){return QI(e.node2,t)}function HI(e,t){return QI(e.node1,t)*e.getValue()}function jI(e,t){return QI(e.node1,t)}function QI(e,t){return"vertical"===t?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function zI(e){return e.getValue()}function VI(e,t,n){for(var r=0,i=e.length,a=-1;++a<i;){var o=+t(e[a],n);isNaN(o)||(r+=o)}return r}function GI(e,t,n){q(e,function(e){q(e,function(e){if(e.inEdges.length){var r=VI(e.inEdges,HI,n)/VI(e.inEdges,zI);if(isNaN(r)){var i=e.inEdges.length;r=i?VI(e.inEdges,jI,n)/i:0}if("vertical"===n){var a=e.getLayout().x+(r-QI(e,n))*t;e.setLayout({x:a},!0)}else{var o=e.getLayout().y+(r-QI(e,n))*t;e.setLayout({y:o},!0)}}})})}function $I(e){e.eachSeriesByType("sankey",function(e){var t=e.getGraph().nodes;if(t.length){var n=1/0,r=-1/0;q(t,function(e){var t=e.getLayout().value;t<n&&(n=t),t>r&&(r=t)}),q(t,function(t){var i=new bB({type:"color",mappingMethod:"linear",dataExtent:[n,r],visual:e.get("color")}).mapValueToVisual(t.getLayout().value),a=t.getModel().get(["itemStyle","color"]);null!=a?(t.setVisual("color",a),t.setVisual("style",{fill:a})):(t.setVisual("color",i),t.setVisual("style",{fill:i}))})}})}var qI=function(){function e(){}return e.prototype.getInitialData=function(e,t){var n,r,i=t.getComponent("xAxis",this.get("xAxisIndex")),a=t.getComponent("yAxis",this.get("yAxisIndex")),o=i.get("type"),s=a.get("type");"category"===o?(e.layout="horizontal",n=i.getOrdinalMeta(),r=!0):"category"===s?(e.layout="vertical",n=a.getOrdinalMeta(),r=!0):e.layout=e.layout||"horizontal";var l=["x","y"],c="horizontal"===e.layout?0:1,u=this._baseAxisDim=l[c],h=l[1-c],d=[i,a],f=d[c].get("type"),p=d[1-c].get("type"),A=e.data;if(A&&r){var g=[];q(A,function(e,t){var n;te(e)?(n=e.slice(),e.unshift(t)):te(e.value)?(n=e.value.slice(),e.value.unshift(t)):n=e,g.push(n)}),e.data=g}var m=this.defaultValueDimensions,v=[{name:u,type:ly(f),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:h,type:ly(p),dimsDef:m.slice()}];return j_(this,{coordDimensions:v,dimensionsCount:m.length+1,encodeDefaulter:ee(Qd,v,this)})},e.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},e}(),WI=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],n.visualDrawType="stroke",n}return g(t,e),t.type="series.boxplot",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},t}(rA);G(WI,qI,!0);var KI=WI,YI=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.prototype.render=function(e,t,n){var r=e.getData(),i=this.group,a=this._data;this._data||i.removeAll();var o="horizontal"===e.get("layout")?1:0;r.diff(a).add(function(e){if(r.hasValue(e)){var t=ZI(r.getItemLayout(e),r,e,o,!0);r.setItemGraphicEl(e,t),i.add(t)}}).update(function(e,t){var n=a.getItemGraphicEl(t);if(r.hasValue(e)){var s=r.getItemLayout(e);n?eM(s,n,r,e):n=ZI(s,r,e,o),i.add(n),r.setItemGraphicEl(e,n)}else i.remove(n)}).remove(function(e){var t=a.getItemGraphicEl(e);t&&i.remove(t)}).execute(),this._data=r},t.prototype.remove=function(e){var t=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl(function(e){e&&t.remove(e)})},t.type="boxplot",t}(AA),XI=function(){return function(){}}(),JI=function(e){function t(t){var n=e.call(this,t)||this;return n.type="boxplotBoxPath",n}return g(t,e),t.prototype.getDefaultShape=function(){return new XI},t.prototype.buildPath=function(e,t){var n=t.points,r=0;for(e.moveTo(n[r][0],n[r][1]),r++;r<4;r++)e.lineTo(n[r][0],n[r][1]);for(e.closePath();r<n.length;r++)e.moveTo(n[r][0],n[r][1]),r++,e.lineTo(n[r][0],n[r][1])},t}(vs);function ZI(e,t,n,r,i){var a=e.ends,o=new JI({shape:{points:i?function(e,t,n){return W(e,function(e){return(e=e.slice())[t]=n.initBaseline,e})}(a,r,e):a}});return eM(e,o,t,n,i),o}function eM(e,t,n,r,i){var a=n.hostModel;(0,l[i?"initProps":"updateProps"])(t,{shape:{points:e.ends}},a,r),t.useStyle(n.getItemVisual(r,"style")),t.style.strokeNoScale=!0,t.z2=100;var o=n.getItemModel(r);Ol(t,o),Ml(t,o.get(["emphasis","focus"]),o.get(["emphasis","blurScope"]))}var tM=YI;function nM(e,t){e.eachRawSeriesByType("boxplot",function(e){e.getData().setVisual("legendSymbol","roundRect")})}var rM=q;function iM(e){var t=function(e){var t=[],n=[];return e.eachSeriesByType("boxplot",function(e){var r=e.getBaseAxis(),i=z(n,r);i<0&&(i=n.length,n[i]=r,t[i]={axis:r,seriesModels:[]}),t[i].seriesModels.push(e)}),t}(e);rM(t,function(e){var t=e.seriesModels;t.length&&(!function(e){var t,n,r=e.axis,i=e.seriesModels,a=i.length,o=e.boxWidthList=[],s=e.boxOffsetList=[],l=[];if("category"===r.type)n=r.getBandWidth();else{var c=0;rM(i,function(e){c=Math.max(c,e.getData().count())}),t=r.getExtent(),Math.abs(t[1]-t[0])}rM(i,function(e){var t=e.get("boxWidth");te(t)||(t=[t,t]),l.push([mi(t[0],n)||0,mi(t[1],n)||0])});var u=.8*n-2,h=u/a*.3,d=(u-h*(a-1))/a,f=d/2-u/2;rM(i,function(e,t){s.push(f),f+=h+d,o.push(Math.min(Math.max(d,l[t][0]),l[t][1]))})}(e),rM(t,function(t,n){!function(e,t,n){var r=e.coordinateSystem,i=e.getData(),a=n/2,o="horizontal"===e.get("layout")?0:1,s=1-o,l=["x","y"],c=i.mapDimension(l[o]),u=i.mapDimensionsAll(l[s]);if(null==c||u.length<5)return;for(var h=0;h<i.count();h++){var d=i.get(c,h),f=y(d,u[2],h),p=y(d,u[0],h),A=y(d,u[1],h),g=y(d,u[3],h),m=y(d,u[4],h),v=[];b(v,A,!1),b(v,g,!0),v.push(p,A,m,g),w(v,p),w(v,m),w(v,f),i.setItemLayout(h,{initBaseline:f[s],ends:v})}function y(e,n,a){var l,c=i.get(n,a),u=[];return u[o]=e,u[s]=c,isNaN(e)||isNaN(c)?l=[NaN,NaN]:(l=r.dataToPoint(u))[o]+=t,l}function b(e,t,n){var r=t.slice(),i=t.slice();r[o]+=a,i[o]-=a,n?e.push(r,i):e.push(i,r)}function w(e,t){var n=t.slice(),r=t.slice();n[o]-=a,r[o]+=a,e.push(n,r)}}(t,e.boxOffsetList[n],e.boxWidthList[n])}))})}var aM={type:"echarts:boxplot",transform:function(e){var t=e.upstream;if(t.sourceFormat!==Dd){var n="";0,Ui(n)}var r=function(e,t){for(var n=[],r=[],i=(t=t||{}).boundIQR,a="none"===i||0===i,o=0;o<e.length;o++){var s=yi(e[o].slice()),l=Fi(s,.25),c=Fi(s,.5),u=Fi(s,.75),h=s[0],d=s[s.length-1],f=(null==i?1.5:i)*(u-l),p=a?h:Math.max(h,l-f),A=a?d:Math.min(d,u+f),g=t.itemNameFormatter,m=ne(g)?g({value:o}):re(g)?g.replace("{value}",o+""):o+"";n.push([m,p,l,c,u,A]);for(var v=0;v<s.length;v++){var y=s[v];if(y<p||y>A){var b=[m,y];r.push(b)}}}return{boxData:n,outliers:r}}(t.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:r.boxData},{data:r.outliers}]}};var oM=["color","borderColor"],sM=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.prototype.render=function(e,t,n){this.group.removeClipPath(),this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},t.prototype.incrementalPrepareRender=function(e,t,n){this._clear(),this._updateDrawMode(e)},t.prototype.incrementalRender=function(e,t,n,r){this._isLargeDraw?this._incrementalRenderLarge(e,t):this._incrementalRenderNormal(e,t)},t.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;null!=this._isLargeDraw&&t===this._isLargeDraw||(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(e){var t=e.getData(),n=this._data,r=this.group,i=t.getLayout("isSimpleBox"),a=e.get("clip",!0),o=e.coordinateSystem,s=o.getArea&&o.getArea();this._data||r.removeAll(),t.diff(n).add(function(n){if(t.hasValue(n)){var o=t.getItemLayout(n);if(a&&hM(s,o))return;var l=uM(o,n,!0);Cu(l,{shape:{points:o.ends}},e,n),dM(l,t,n,i),r.add(l),t.setItemGraphicEl(n,l)}}).update(function(o,l){var c=n.getItemGraphicEl(l);if(t.hasValue(o)){var u=t.getItemLayout(o);a&&hM(s,u)?r.remove(c):(c?_u(c,{shape:{points:u.ends}},e,o):c=uM(u,o),dM(c,t,o,i),r.add(c),t.setItemGraphicEl(o,c))}else r.remove(c)}).remove(function(e){var t=n.getItemGraphicEl(e);t&&r.remove(t)}).execute(),this._data=t},t.prototype._renderLarge=function(e){this._clear(),AM(e,this.group);var t=e.get("clip",!0)?qx(e.coordinateSystem,!1,e):null;t?this.group.setClipPath(t):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(e,t){for(var n,r=t.getData(),i=r.getLayout("isSimpleBox");null!=(n=e.next());){var a=uM(r.getItemLayout(n),n);dM(a,r,n,i),a.incremental=!0,this.group.add(a)}},t.prototype._incrementalRenderLarge=function(e,t){AM(t,this.group,!0)},t.prototype.remove=function(e){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t}(AA),lM=function(){return function(){}}(),cM=function(e){function t(t){var n=e.call(this,t)||this;return n.type="normalCandlestickBox",n}return g(t,e),t.prototype.getDefaultShape=function(){return new lM},t.prototype.buildPath=function(e,t){var n=t.points;this.__simpleBox?(e.moveTo(n[4][0],n[4][1]),e.lineTo(n[6][0],n[6][1])):(e.moveTo(n[0][0],n[0][1]),e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]),e.lineTo(n[3][0],n[3][1]),e.closePath(),e.moveTo(n[4][0],n[4][1]),e.lineTo(n[5][0],n[5][1]),e.moveTo(n[6][0],n[6][1]),e.lineTo(n[7][0],n[7][1]))},t}(vs);function uM(e,t,n){var r=e.ends;return new cM({shape:{points:n?function(e,t){return W(e,function(e){return(e=e.slice())[1]=t.initBaseline,e})}(r,e):r},z2:100})}function hM(e,t){for(var n=!0,r=0;r<t.ends.length;r++)if(e.contain(t.ends[r][0],t.ends[r][1])){n=!1;break}return n}function dM(e,t,n,r){var i=t.getItemModel(n);e.useStyle(t.getItemVisual(n,"style")),e.style.strokeNoScale=!0,e.__simpleBox=r,Ol(e,i)}var fM=function(){return function(){}}(),pM=function(e){function t(t){var n=e.call(this,t)||this;return n.type="largeCandlestickBox",n}return g(t,e),t.prototype.getDefaultShape=function(){return new fM},t.prototype.buildPath=function(e,t){for(var n=t.points,r=0;r<n.length;)if(this.__sign===n[r++]){var i=n[r++];e.moveTo(i,n[r++]),e.lineTo(i,n[r++])}else r+=3},t}(vs);function AM(e,t,n){var r=e.getData(),i=r.getLayout("largePoints"),a=new pM({shape:{points:i},__sign:1});t.add(a);var o=new pM({shape:{points:i},__sign:-1});t.add(o),gM(1,a,e,r),gM(-1,o,e,r),n&&(a.incremental=!0,o.incremental=!0)}function gM(e,t,n,r){var i=n.get(["itemStyle",e>0?"borderColor":"borderColor0"])||n.get(["itemStyle",e>0?"color":"color0"]),a=n.getModel("itemStyle").getItemStyle(oM);t.useStyle(a),t.style.fill=null,t.style.stroke=i}var mM=sM,vM=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],n}return g(t,e),t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(e,t,n){var r=t.getItemLayout(e);return r&&n.rect(r.brushRect)},t.type="series.candlestick",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},t}(rA);G(vM,qI,!0);var yM=vM;function bM(e){e&&te(e.series)&&q(e.series,function(e){oe(e)&&"k"===e.type&&(e.type="candlestick")})}var wM=["itemStyle","borderColor"],xM=["itemStyle","borderColor0"],_M=["itemStyle","color"],CM=["itemStyle","color0"],SM={seriesType:"candlestick",plan:oA(),performRawSeries:!0,reset:function(e,t){function n(e,t){return t.get(e>0?_M:CM)}function r(e,t){return t.get(e>0?wM:xM)}if(e.getData().setVisual("legendSymbol","roundRect"),!t.isSeriesFiltered(e))return!e.pipelineContext.large&&{progress:function(e,t){for(var i;null!=(i=e.next());){var a=t.getItemModel(i),o=t.getItemLayout(i).sign,s=a.getItemStyle();s.fill=n(o,a),s.stroke=r(o,a)||s.fill,H(t.ensureUniqueItemVisual(i,"style"),s)}}}}},kM="undefined"!=typeof Float32Array?Float32Array:Array;function BM(e,t,n,r,i){return n>r?-1:n<r?1:t>0?e.get(i,t-1)<=r?1:-1:1}var EM={seriesType:"candlestick",plan:oA(),reset:function(e){var t=e.coordinateSystem,n=e.getData(),r=function(e,t){var n,r=e.getBaseAxis(),i="category"===r.type?r.getBandWidth():(n=r.getExtent(),Math.abs(n[1]-n[0])/t.count()),a=mi(Ae(e.get("barMaxWidth"),i),i),o=mi(Ae(e.get("barMinWidth"),1),i),s=e.get("barWidth");return null!=s?mi(s,i):Math.max(Math.min(i/2,a),o)}(e,n),i=0,a=1,o=["x","y"],s=n.mapDimension(o[i]),l=n.mapDimensionsAll(o[a]),c=l[0],u=l[1],h=l[2],d=l[3];if(n.setLayout({candleWidth:r,isSimpleBox:r<=1.3}),!(null==s||l.length<4))return{progress:e.pipelineContext.large?function(e,n){var r,o,l=new kM(4*e.count),f=0,p=[],A=[];for(;null!=(o=e.next());){var g=n.get(s,o),m=n.get(c,o),v=n.get(u,o),y=n.get(h,o),b=n.get(d,o);isNaN(g)||isNaN(y)||isNaN(b)?(l[f++]=NaN,f+=3):(l[f++]=BM(n,o,m,v,u),p[i]=g,p[a]=y,r=t.dataToPoint(p,null,A),l[f++]=r?r[0]:NaN,l[f++]=r?r[1]:NaN,p[a]=b,r=t.dataToPoint(p,null,A),l[f++]=r?r[1]:NaN)}n.setLayout("largePoints",l)}:function(e,n){var o;for(;null!=(o=e.next());){var l=n.get(s,o),f=n.get(c,o),p=n.get(u,o),A=n.get(h,o),g=n.get(d,o),m=Math.min(f,p),v=Math.max(f,p),y=C(m,l),b=C(v,l),w=C(A,l),x=C(g,l),_=[];S(_,b,0),S(_,y,1),_.push(B(x),B(b),B(w),B(y)),n.setItemLayout(o,{sign:BM(n,o,f,p,u),initBaseline:f>p?b[a]:y[a],ends:_,brushRect:k(A,g,l)})}function C(e,n){var r=[];return r[i]=n,r[a]=e,isNaN(n)||isNaN(e)?[NaN,NaN]:t.dataToPoint(r)}function S(e,t,n){var a=t.slice(),o=t.slice();a[i]=wu(a[i]+r/2,1,!1),o[i]=wu(o[i]-r/2,1,!0),n?e.push(a,o):e.push(o,a)}function k(e,t,n){var o=C(e,n),s=C(t,n);return o[i]-=r/2,s[i]-=r/2,{x:o[0],y:o[1],width:a?r:s[0]-o[0],height:a?s[1]-o[1]:r}}function B(e){return e[i]=wu(e[i],1),e}}}}};function TM(e,t){var n=t.rippleEffectColor||t.color;e.eachChild(function(e){e.attr({z:t.z,zlevel:t.zlevel,style:{stroke:"stroke"===t.brushType?n:null,fill:"fill"===t.brushType?n:null}})})}var IM=function(e){function t(t,n){var r=e.call(this)||this,i=new Bx(t,n),a=new ii;return r.add(i),r.add(a),r.updateData(t,n),r}return g(t,e),t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(e){for(var t=e.symbolType,n=e.color,r=this.childAt(1),i=0;i<3;i++){var a=Zg(t,-1,-1,2,2,n);a.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var o=-i/3*e.period+e.effectOffset;a.animate("",!0).when(e.period,{scale:[e.rippleScale/2,e.rippleScale/2]}).delay(o).start(),a.animateStyle(!0).when(e.period,{opacity:0}).delay(o).start(),r.add(a)}TM(r,e)},t.prototype.updateEffectAnimation=function(e){for(var t=this._effectCfg,n=this.childAt(1),r=["symbolType","period","rippleScale"],i=0;i<r.length;i++){var a=r[i];if(t[a]!==e[a])return this.stopEffectAnimation(),void this.startEffectAnimation(e)}TM(n,e)},t.prototype.highlight=function(){xl(this)},t.prototype.downplay=function(){_l(this)},t.prototype.updateData=function(e,t){var n=this,r=e.hostModel;this.childAt(0).updateData(e,t);var i=this.childAt(1),a=e.getItemModel(t),o=e.getItemVisual(t,"symbol"),s=function(e){return te(e)||(e=[+e,+e]),e}(e.getItemVisual(t,"symbolSize")),l=e.getItemVisual(t,"style"),c=l&&l.fill;i.setScale(s),i.traverse(function(e){e.setStyle("fill",c)});var u=a.getShallow("symbolOffset");u&&(i.x=mi(u[0],s[0]),i.y=mi(u[1],s[1]));var h=e.getItemVisual(t,"symbolRotate");i.rotation=(h||0)*Math.PI/180||0;var d={};d.showEffectOn=r.get("showEffectOn"),d.rippleScale=a.get(["rippleEffect","scale"]),d.brushType=a.get(["rippleEffect","brushType"]),d.period=1e3*a.get(["rippleEffect","period"]),d.effectOffset=t/e.count(),d.z=r.getShallow("z")||0,d.zlevel=r.getShallow("zlevel")||0,d.symbolType=o,d.color=c,d.rippleEffectColor=a.get(["rippleEffect","color"]),this.off("mouseover").off("mouseout").off("emphasis").off("normal"),"render"===d.showEffectOn?(this._effectCfg?this.updateEffectAnimation(d):this.startEffectAnimation(d),this._effectCfg=d):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(e){"emphasis"===e?"render"!==d.showEffectOn&&n.startEffectAnimation(d):"normal"===e&&"render"!==d.showEffectOn&&n.stopEffectAnimation()}),this._effectCfg=d,Ml(this)},t.prototype.fadeOut=function(e){this.off("mouseover").off("mouseout"),e&&e()},t}(ii);V(IM,ii);var MM=IM,FM=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.prototype.init=function(){this._symbolDraw=new Mx(MM)},t.prototype.render=function(e,t,n){var r=e.getData(),i=this._symbolDraw;i.updateData(r),this.group.add(i.group)},t.prototype.updateTransform=function(e,t,n){var r=e.getData();this.group.dirty();var i=i_("").reset(e,t,n);i.progress&&i.progress({start:0,end:r.count(),count:r.count()},r),this._symbolDraw.updateLayout()},t.prototype._updateGroupTransform=function(e){var t=e.coordinateSystem;t&&t.getRoamTransform&&(this.group.transform=zt(t.getRoamTransform()),this.group.decomposeTransform())},t.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(!0)},t.type="effectScatter",t}(AA),DM=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return g(t,e),t.prototype.getInitialData=function(e,t){return zy(this.getSource(),this,{useEncodeDefaulter:!0})},t.prototype.brushSelector=function(e,t,n){return n.point(t.getItemLayout(e))},t.type="series.effectScatter",t.dependencies=["grid","polar"],t.defaultOption={coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",rippleEffect:{period:4,scale:2.5,brushType:"fill"},symbolSize:10},t}(rA);var PM=function(e){function t(t,n,r){var i=e.call(this)||this;return i.add(i.createLine(t,n,r)),i._updateEffectSymbol(t,n),i}return g(t,e),t.prototype.createLine=function(e,t,n){return new yE(e,t,n)},t.prototype._updateEffectSymbol=function(e,t){var n=e.getItemModel(t).getModel("effect"),r=n.get("symbolSize"),i=n.get("symbol");te(r)||(r=[r,r]);var a=e.getItemVisual(t,"style"),o=n.get("color")||a&&a.stroke,s=this.childAt(1);this._symbolType!==i&&(this.remove(s),(s=Zg(i,-.5,-.5,1,1,o)).z2=100,s.culling=!0,this.add(s)),s&&(s.setStyle("shadowColor",o),s.setStyle(n.getItemStyle(["color"])),s.scaleX=r[0],s.scaleY=r[1],s.setColor(o),this._symbolType=i,this._symbolScale=r,this._updateEffectAnimation(e,n,t))},t.prototype._updateEffectAnimation=function(e,t,n){var r=this.childAt(1);if(r){var i=this,a=e.getItemLayout(n),o=1e3*t.get("period"),s=t.get("loop"),l=t.get("constantSpeed"),c=pe(t.get("delay"),function(t){return t/e.count()*o/3});if(r.ignore=!0,this._updateAnimationPoints(r,a),l>0&&(o=this._getLineLength(r)/l*1e3),(o!==this._period||s!==this._loop)&&(r.stopAnimation(),o>0)){var u=void 0;u="function"==typeof c?c(n):c,r.__t>0&&(u=-o*r.__t),r.__t=0;var h=r.animate("",s).when(o,{__t:1}).delay(u).during(function(){i._updateSymbolPosition(r)});s||h.done(function(){i.remove(r)}),h.start()}this._period=o,this._loop=s}},t.prototype._getLineLength=function(e){return Ke(e.__p1,e.__cp1)+Ke(e.__cp1,e.__p2)},t.prototype._updateAnimationPoints=function(e,t){e.__p1=t[0],e.__p2=t[1],e.__cp1=t[2]||[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]},t.prototype.updateData=function(e,t,n){this.childAt(0).updateData(e,t,n),this._updateEffectSymbol(e,t)},t.prototype._updateSymbolPosition=function(e){var t=e.__p1,n=e.__p2,r=e.__cp1,i=e.__t,a=[e.x,e.y],o=a.slice(),s=uo,l=ho;a[0]=s(t[0],r[0],n[0],i),a[1]=s(t[1],r[1],n[1],i);var c=l(t[0],r[0],n[0],i),u=l(t[1],r[1],n[1],i);e.rotation=-Math.atan2(u,c)-Math.PI/2,"line"!==this._symbolType&&"rect"!==this._symbolType&&"roundRect"!==this._symbolType||(void 0!==e.__lastT&&e.__lastT<e.__t?(e.scaleY=1.05*Ke(o,a),1===i&&(a[0]=o[0]+(a[0]-o[0])/2,a[1]=o[1]+(a[1]-o[1])/2)):1===e.__lastT?e.scaleY=2*Ke(t,a):e.scaleY=this._symbolScale[1]),e.__lastT=e.__t,e.ignore=!1,e.x=a[0],e.y=a[1]},t.prototype.updateLayout=function(e,t){this.childAt(0).updateLayout(e,t);var n=e.getItemModel(t).getModel("effect");this._updateEffectAnimation(e,n,t)},t}(ii),OM=function(e){function t(t,n,r){var i=e.call(this)||this;return i._createPolyline(t,n,r),i}return g(t,e),t.prototype._createPolyline=function(e,t,n){var r=e.getItemLayout(t),i=new Lc({shape:{points:r}});this.add(i),this._updateCommonStl(e,t,n)},t.prototype.updateData=function(e,t,n){var r=e.hostModel;_u(this.childAt(0),{shape:{points:e.getItemLayout(t)}},r,t),this._updateCommonStl(e,t,n)},t.prototype._updateCommonStl=function(e,t,n){var r=this.childAt(0),i=e.getItemModel(t),a=n&&n.emphasisLineStyle;n&&!e.hasItemOption||(a=i.getModel(["emphasis","lineStyle"]).getLineStyle()),r.useStyle(e.getItemVisual(t,"style")),r.style.fill=null,r.style.strokeNoScale=!0,r.ensureState("emphasis").style=a,Ml(this)},t.prototype.updateLayout=function(e,t){this.childAt(0).setShape("points",e.getItemLayout(t))},t}(ii),LM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._lastFrame=0,t._lastFramePercent=0,t}return g(t,e),t.prototype.createLine=function(e,t,n){return new OM(e,t,n)},t.prototype._updateAnimationPoints=function(e,t){this._points=t;for(var n=[0],r=0,i=1;i<t.length;i++){var a=t[i-1],o=t[i];r+=Ke(a,o),n.push(r)}if(0!==r){for(i=0;i<n.length;i++)n[i]/=r;this._offsets=n,this._length=r}else this._length=0},t.prototype._getLineLength=function(){return this._length},t.prototype._updateSymbolPosition=function(e){var t=e.__t,n=this._points,r=this._offsets,i=n.length;if(r){var a,o=this._lastFrame;if(t<this._lastFramePercent){for(a=Math.min(o+1,i-1);a>=0&&!(r[a]<=t);a--);a=Math.min(a,i-2)}else{for(a=o;a<i&&!(r[a]>t);a++);a=Math.min(a-1,i-2)}var s=(t-r[a])/(r[a+1]-r[a]),l=n[a],c=n[a+1];e.x=l[0]*(1-s)+s*c[0],e.y=l[1]*(1-s)+s*c[1];var u=c[0]-l[0],h=c[1]-l[1];e.rotation=-Math.atan2(h,u)-Math.PI/2,this._lastFrame=a,this._lastFramePercent=t,e.ignore=!1}},t}(PM),RM=function(){return function(){this.polyline=!1,this.curveness=0,this.segs=[]}}(),NM=function(e){function t(t){return e.call(this,t)||this}return g(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new RM},t.prototype.buildPath=function(e,t){var n=t.segs,r=t.curveness;if(t.polyline)for(var i=0;i<n.length;){var a=n[i++];if(a>0){e.moveTo(n[i++],n[i++]);for(var o=1;o<a;o++)e.lineTo(n[i++],n[i++])}}else for(i=0;i<n.length;){var s=n[i++],l=n[i++],c=n[i++],u=n[i++];if(e.moveTo(s,l),r>0){var h=(s+c)/2-(l-u)*r,d=(l+u)/2-(c-s)*r;e.quadraticCurveTo(h,d,c,u)}else e.lineTo(c,u)}},t.prototype.findDataIndex=function(e,t){var n=this.shape,r=n.segs,i=n.curveness,a=this.style.lineWidth;if(n.polyline)for(var o=0,s=0;s<r.length;){var l=r[s++];if(l>0)for(var c=r[s++],u=r[s++],h=1;h<l;h++){if(Jo(c,u,d=r[s++],f=r[s++],a,e,t))return o}o++}else for(o=0,s=0;s<r.length;){c=r[s++],u=r[s++];var d=r[s++],f=r[s++];if(i>0){if(es(c,u,(c+d)/2-(u-f)*i,(u+f)/2-(d-c)*i,d,f,a,e,t))return o}else if(Jo(c,u,d,f,a,e,t))return o;o++}return-1},t}(vs),UM=function(){function e(){this.group=new ii}return e.prototype.isPersistent=function(){return!this._incremental},e.prototype.updateData=function(e){this.group.removeAll();var t=new NM({rectHover:!0,cursor:"default"});t.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(t,e),this.group.add(t),this._incremental=null},e.prototype.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clearIncremental(),e.count()>5e5?(this._incremental||(this._incremental=new au({silent:!0})),this.group.add(this._incremental)):this._incremental=null},e.prototype.incrementalUpdate=function(e,t){var n=new NM;n.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(n,t,!!this._incremental),this._incremental?this._incremental.addDisplayable(n,!0):(n.rectHover=!0,n.cursor="default",n.__startIndex=e.start,this.group.add(n))},e.prototype.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},e.prototype._setCommon=function(e,t,n){var r=t.hostModel;e.setShape({polyline:r.get("polyline"),curveness:r.get(["lineStyle","curveness"])}),e.useStyle(r.getModel("lineStyle").getLineStyle()),e.style.strokeNoScale=!0;var i=t.getVisual("style");if(i&&i.stroke&&e.setStyle("stroke",i.stroke),e.setStyle("fill",null),!n){var a=Gs(e);a.seriesIndex=r.seriesIndex,e.on("mousemove",function(t){a.dataIndex=null;var n=e.findDataIndex(t.offsetX,t.offsetY);n>0&&(a.dataIndex=n+e.__startIndex)})}},e.prototype._clearIncremental=function(){var e=this._incremental;e&&e.clearDisplaybles()},e}(),HM={seriesType:"lines",plan:oA(),reset:function(e){var t=e.coordinateSystem,n=e.get("polyline"),r=e.pipelineContext.large;return{progress:function(i,a){var o=[];if(r){var s=void 0,l=i.end-i.start;if(n){for(var c=0,u=i.start;u<i.end;u++)c+=e.getLineCoordsCount(u);s=new Float32Array(l+2*c)}else s=new Float32Array(4*l);var h=0,d=[];for(u=i.start;u<i.end;u++){var f=e.getLineCoords(u,o);n&&(s[h++]=f);for(var p=0;p<f;p++)d=t.dataToPoint(o[p],!1,d),s[h++]=d[0],s[h++]=d[1]}a.setLayout("linesPoints",s)}else for(u=i.start;u<i.end;u++){var A=a.getItemModel(u),g=(f=e.getLineCoords(u,o),[]);if(n)for(var m=0;m<f;m++)g.push(t.dataToPoint(o[m]));else{g[0]=t.dataToPoint(o[0]),g[1]=t.dataToPoint(o[1]);var v=A.get(["lineStyle","curveness"]);+v&&(g[2]=[(g[0][0]+g[1][0])/2-(g[0][1]-g[1][1])*v,(g[0][1]+g[1][1])/2-(g[1][0]-g[0][0])*v])}a.setItemLayout(u,g)}}}}},jM=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.prototype.render=function(e,t,n){var r=e.getData(),i=this._updateLineDraw(r,e),a=e.get("zlevel"),o=e.get(["effect","trailLength"]),s=n.getZr(),l="svg"===s.painter.getType();(l||s.painter.getLayer(a).clear(!0),null==this._lastZlevel||l||s.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(e)&&o)&&(l||s.configLayer(a,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(o/10+.9,1),0)}));i.updateData(r);var c=e.get("clip",!0)&&qx(e.coordinateSystem,!1,e);c?this.group.setClipPath(c):this.group.removeClipPath(),this._lastZlevel=a,this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,n){var r=e.getData();this._updateLineDraw(r,e).incrementalPrepareUpdate(r),this._clearLayer(n),this._finished=!1},t.prototype.incrementalRender=function(e,t,n){this._lineDraw.incrementalUpdate(e,t.getData()),this._finished=e.end===t.getData().count()},t.prototype.updateTransform=function(e,t,n){var r=e.getData(),i=e.pipelineContext;if(!this._finished||i.large||i.progressiveRender)return{update:!0};var a=HM.reset(e,t,n);a.progress&&a.progress({start:0,end:r.count(),count:r.count()},r),this._lineDraw.updateLayout(),this._clearLayer(n)},t.prototype._updateLineDraw=function(e,t){var n=this._lineDraw,r=this._showEffect(t),i=!!t.get("polyline"),a=t.pipelineContext.large;return n&&r===this._hasEffet&&i===this._isPolyline&&a===this._isLargeDraw||(n&&n.remove(),n=this._lineDraw=a?new UM:new _E(i?r?LM:OM:r?PM:yE),this._hasEffet=r,this._isPolyline=i,this._isLargeDraw=a,this.group.removeAll()),this.group.add(n.group),n},t.prototype._showEffect=function(e){return!!e.get(["effect","show"])},t.prototype._clearLayer=function(e){var t=e.getZr();"svg"===t.painter.getType()||null==this._lastZlevel||t.painter.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(e,t){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(t)},t.type="lines",t}(AA),QM="undefined"==typeof Uint32Array?Array:Uint32Array,zM="undefined"==typeof Float64Array?Array:Float64Array;function VM(e){var t=e.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(e.data=W(t,function(e){var t={coords:[e[0].coord,e[1].coord]};return e[0].name&&(t.fromName=e[0].name),e[1].name&&(t.toName=e[1].name),U([t,e[0],e[1]])}))}var GM=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return g(t,e),t.prototype.init=function(t){t.data=t.data||[],VM(t);var n=this._processFlatCoordsArray(t.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(t.data=new Float32Array(n.count)),e.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(t){if(VM(t),t.data){var n=this._processFlatCoordsArray(t.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(t.data=new Float32Array(n.count))}e.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(e){var t=this._processFlatCoordsArray(e.data);t.flatCoords&&(this._flatCoords?(this._flatCoords=ke(this._flatCoords,t.flatCoords),this._flatCoordsOffset=ke(this._flatCoordsOffset,t.flatCoordsOffset)):(this._flatCoords=t.flatCoords,this._flatCoordsOffset=t.flatCoordsOffset),e.data=new Float32Array(t.count)),this.getRawData().appendData(e.data)},t.prototype._getCoordsFromItemModel=function(e){var t=this.getData().getItemModel(e),n=t.option instanceof Array?t.option:t.getShallow("coords");return n},t.prototype.getLineCoordsCount=function(e){return this._flatCoordsOffset?this._flatCoordsOffset[2*e+1]:this._getCoordsFromItemModel(e).length},t.prototype.getLineCoords=function(e,t){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[2*e],r=this._flatCoordsOffset[2*e+1],i=0;i<r;i++)t[i]=t[i]||[],t[i][0]=this._flatCoords[n+2*i],t[i][1]=this._flatCoords[n+2*i+1];return r}var a=this._getCoordsFromItemModel(e);for(i=0;i<a.length;i++)t[i]=t[i]||[],t[i][0]=a[i][0],t[i][1]=a[i][1];return a.length},t.prototype._processFlatCoordsArray=function(e){var t=0;if(this._flatCoords&&(t=this._flatCoords.length),"number"==typeof e[0]){for(var n=e.length,r=new QM(n),i=new zM(n),a=0,o=0,s=0,l=0;l<n;){s++;var c=e[l++];r[o++]=a+t,r[o++]=c;for(var u=0;u<c;u++){var h=e[l++],d=e[l++];i[a++]=h,i[a++]=d}}return{flatCoordsOffset:new Uint32Array(r.buffer,0,o),flatCoords:i,count:s}}return{flatCoordsOffset:null,flatCoords:null,count:e.length}},t.prototype.getInitialData=function(e,t){var n=new Dy(["value"],this);return n.hasItemOption=!1,n.initData(e.data,[],function(e,t,r,i){if(e instanceof Array)return NaN;n.hasItemOption=!0;var a=e.value;return null!=a?a instanceof Array?a[i]:a:void 0}),n},t.prototype.formatTooltip=function(e,t,n){var r=this.getData().getItemModel(e),i=r.get("name");if(i)return i;var a=r.get("fromName"),o=r.get("toName"),s=[];return null!=a&&s.push(a),null!=o&&s.push(o),Lp("nameValue",{name:s.join(" > ")})},t.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},t.prototype.getProgressive=function(){var e=this.option.progressive;return null==e?this.option.large?1e4:this.get("progressive"):e},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return null==e?this.option.large?2e4:this.get("progressiveThreshold"):e},t.type="series.lines",t.dependencies=["grid","polar","geo","calendar"],t.defaultOption={coordinateSystem:"geo",zlevel:0,z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},t}(rA);function $M(e){return e instanceof Array||(e=[e,e]),e}var qM={seriesType:"lines",reset:function(e){var t=$M(e.get("symbol")),n=$M(e.get("symbolSize")),r=e.getData();return r.setVisual("fromSymbol",t&&t[0]),r.setVisual("toSymbol",t&&t[1]),r.setVisual("fromSymbolSize",n&&n[0]),r.setVisual("toSymbolSize",n&&n[1]),{dataEach:r.hasItemOption?function(e,t){var n=e.getItemModel(t),r=$M(n.getShallow("symbol",!0)),i=$M(n.getShallow("symbolSize",!0));r[0]&&e.setItemVisual(t,"fromSymbol",r[0]),r[1]&&e.setItemVisual(t,"toSymbol",r[1]),i[0]&&e.setItemVisual(t,"fromSymbolSize",i[0]),i[1]&&e.setItemVisual(t,"toSymbolSize",i[1])}:null}}};var WM=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=Q();this.canvas=e}return e.prototype.update=function(e,t,n,r,i,a){var o=this._getBrush(),s=this._getGradient(i,"inRange"),l=this._getGradient(i,"outOfRange"),c=this.pointSize+this.blurSize,u=this.canvas,h=u.getContext("2d"),d=e.length;u.width=t,u.height=n;for(var f=0;f<d;++f){var p=e[f],A=p[0],g=p[1],m=r(p[2]);h.globalAlpha=m,h.drawImage(o,A-c,g-c)}if(!u.width||!u.height)return u;for(var v=h.getImageData(0,0,u.width,u.height),y=v.data,b=0,w=y.length,x=this.minOpacity,_=this.maxOpacity-x;b<w;){m=y[b+3]/256;var C=4*Math.floor(255*m);if(m>0){var S=a(m)?s:l;m>0&&(m=m*_+x),y[b++]=S[C],y[b++]=S[C+1],y[b++]=S[C+2],y[b++]=S[C+3]*m*256}else b+=4}return h.putImageData(v,0,0),u},e.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=Q()),t=this.pointSize+this.blurSize,n=2*t;e.width=n,e.height=n;var r=e.getContext("2d");return r.clearRect(0,0,n,n),r.shadowOffsetX=n,r.shadowBlur=this.blurSize,r.shadowColor="#000",r.beginPath(),r.arc(-t,t,this.pointSize,0,2*Math.PI,!0),r.closePath(),r.fill(),e},e.prototype._getGradient=function(e,t){for(var n=this._gradientPixels,r=n[t]||(n[t]=new Uint8ClampedArray(1024)),i=[0,0,0,0],a=0,o=0;o<256;o++)e[t](o/255,!0,i),r[a++]=i[0],r[a++]=i[1],r[a++]=i[2],r[a++]=i[3];return r},e}();function KM(e){var t=e.dimensions;return"lng"===t[0]&&"lat"===t[1]}var YM=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.prototype.render=function(e,t,n){var r;t.eachComponent("visualMap",function(t){t.eachTargetSeries(function(n){n===e&&(r=t)})}),this.group.removeAll(),this._incrementalDisplayable=null;var i=e.coordinateSystem;"cartesian2d"===i.type||"calendar"===i.type?this._renderOnCartesianAndCalendar(e,n,0,e.getData().count()):KM(i)&&this._renderOnGeo(i,e,r,n)},t.prototype.incrementalPrepareRender=function(e,t,n){this.group.removeAll()},t.prototype.incrementalRender=function(e,t,n,r){var i=t.coordinateSystem;i&&(KM(i)?this.render(t,n,r):this._renderOnCartesianAndCalendar(t,r,e.start,e.end,!0))},t.prototype._renderOnCartesianAndCalendar=function(e,t,n,r,i){var a,o,s,l,c=e.coordinateSystem;if(Wx(c,"cartesian2d")){var u=c.getAxis("x"),h=c.getAxis("y");0,a=u.getBandWidth(),o=h.getBandWidth(),s=u.scale.getExtent(),l=h.scale.getExtent()}for(var d=this.group,f=e.getData(),p=e.getModel(["emphasis","itemStyle"]).getItemStyle(),A=e.getModel(["blur","itemStyle"]).getItemStyle(),g=e.getModel(["select","itemStyle"]).getItemStyle(),m=Vu(e),v=e.get(["emphasis","focus"]),y=e.get(["emphasis","blurScope"]),b=Wx(c,"cartesian2d")?[f.mapDimension("x"),f.mapDimension("y"),f.mapDimension("value")]:[f.mapDimension("time"),f.mapDimension("value")],w=n;w<r;w++){var x=void 0,_=f.getItemVisual(w,"style");if(Wx(c,"cartesian2d")){var C=f.get(b[0],w),S=f.get(b[1],w);if(isNaN(f.get(b[2],w))||C<s[0]||C>s[1]||S<l[0]||S>l[1])continue;var k=c.dataToPoint([C,S]);x=new Ds({shape:{x:Math.floor(Math.round(k[0])-a/2),y:Math.floor(Math.round(k[1])-o/2),width:Math.ceil(a),height:Math.ceil(o)},style:_})}else{if(isNaN(f.get(b[1],w)))continue;x=new Ds({z2:1,shape:c.dataToRect([f.get(b[0],w)]).contentShape,style:_})}var B=f.getItemModel(w);if(f.hasItemOption){var E=B.getModel("emphasis");p=E.getModel("itemStyle").getItemStyle(),A=B.getModel(["blur","itemStyle"]).getItemStyle(),g=B.getModel(["select","itemStyle"]).getItemStyle(),v=E.get("focus"),y=E.get("blurScope"),m=Vu(B)}var T=e.getRawValue(w),I="-";T&&null!=T[2]&&(I=T[2]+""),zu(x,m,{labelFetcher:e,labelDataIndex:w,defaultOpacity:_.opacity,defaultText:I}),x.ensureState("emphasis").style=p,x.ensureState("blur").style=A,x.ensureState("select").style=g,Ml(x,v,y),x.incremental=i,i&&(x.states.emphasis.hoverLayer=!0),d.add(x),f.setItemGraphicEl(w,x)}},t.prototype._renderOnGeo=function(e,t,n,r){var i=n.targetVisuals.inRange,a=n.targetVisuals.outOfRange,o=t.getData(),s=this._hmLayer||this._hmLayer||new WM;s.blurSize=t.get("blurSize"),s.pointSize=t.get("pointSize"),s.minOpacity=t.get("minOpacity"),s.maxOpacity=t.get("maxOpacity");var l=e.getViewRect().clone(),c=e.getRoamTransform();l.applyTransform(c);var u=Math.max(l.x,0),h=Math.max(l.y,0),d=Math.min(l.width+l.x,r.getWidth()),f=Math.min(l.height+l.y,r.getHeight()),p=d-u,A=f-h,g=[o.mapDimension("lng"),o.mapDimension("lat"),o.mapDimension("value")],m=o.mapArray(g,function(t,n,r){var i=e.dataToPoint([t,n]);return i[0]-=u,i[1]-=h,i.push(r),i}),v=n.getExtent(),y="visualMap.continuous"===n.type?function(e,t){var n=e[1]-e[0];return t=[(t[0]-e[0])/n,(t[1]-e[0])/n],function(e){return e>=t[0]&&e<=t[1]}}(v,n.option.range):function(e,t,n){var r=e[1]-e[0],i=(t=W(t,function(t){return{interval:[(t.interval[0]-e[0])/r,(t.interval[1]-e[0])/r]}})).length,a=0;return function(e){var r;for(r=a;r<i;r++)if((o=t[r].interval)[0]<=e&&e<=o[1]){a=r;break}if(r===i)for(r=a-1;r>=0;r--){var o;if((o=t[r].interval)[0]<=e&&e<=o[1]){a=r;break}}return r>=0&&r<i&&n[r]}}(v,n.getPieceList(),n.option.selected);s.update(m,p,A,i.color.getNormalizer(),{inRange:i.color.getColorMapper(),outOfRange:a.color.getColorMapper()},y);var b=new Ss({style:{width:p,height:A,x:u,y:h,image:s.canvas},silent:!0});this.group.add(b)},t.type="heatmap",t}(AA),XM=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.prototype.getInitialData=function(e,t){return zy(this.getSource(),this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var e=hf.get(this.get("coordinateSystem"));if(e&&e.dimensions)return"lng"===e.dimensions[0]&&"lat"===e.dimensions[1]},t.type="series.heatmap",t.dependencies=["grid","geo","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",zlevel:0,z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},t}(rA);var JM=["itemStyle","borderWidth"],ZM=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],eF=new oc;function tF(e,t,n,r){var i=e.getItemLayout(t),a=n.get("symbolRepeat"),o=n.get("symbolClip"),s=n.get("symbolPosition")||"start",l=(n.get("symbolRotate")||0)*Math.PI/180||0,c=n.get("symbolPatternSize")||2,u=n.isAnimationEnabled(),h={dataIndex:t,layout:i,itemModel:n,symbolType:e.getItemVisual(t,"symbol")||"circle",style:e.getItemVisual(t,"style"),symbolClip:o,symbolRepeat:a,symbolRepeatDirection:n.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:l,animationModel:u?n:null,hoverScale:u&&n.get(["emphasis","scale"]),z2:n.getShallow("z",!0)||0};!function(e,t,n,r,i){var a,o=r.valueDim,s=e.get("symbolBoundingData"),l=r.coordSys.getOtherAxis(r.coordSys.getBaseAxis()),c=l.toGlobalCoord(l.dataToCoord(0)),u=1-+(n[o.wh]<=0);if(te(s)){var h=[nF(l,s[0])-c,nF(l,s[1])-c];h[1]<h[0]&&h.reverse(),a=h[u]}else a=null!=s?nF(l,s)-c:t?r.coordSysExtent[o.index][u]-c:n[o.wh];i.boundingLength=a,t&&(i.repeatCutLength=n[o.wh]);i.pxSign=a>0?1:a<0?-1:0}(n,a,i,r,h),function(e,t,n,r,i,a,o,s,l,c){var u,h=l.valueDim,d=l.categoryDim,f=Math.abs(n[d.wh]),p=e.getItemVisual(t,"symbolSize");u=te(p)?p.slice():null==p?["100%","100%"]:[p,p];u[d.index]=mi(u[d.index],f),u[h.index]=mi(u[h.index],r?f:Math.abs(a)),c.symbolSize=u,(c.symbolScale=[u[0]/s,u[1]/s])[h.index]*=(l.isHorizontal?-1:1)*o}(e,t,i,a,0,h.boundingLength,h.pxSign,c,r,h),function(e,t,n,r,i){var a=e.get(JM)||0;a&&(eF.attr({scaleX:t[0],scaleY:t[1],rotation:n}),eF.updateTransform(),a/=eF.getLineScale(),a*=t[r.valueDim.index]);i.valueLineWidth=a}(n,h.symbolScale,l,r,h);var d=h.symbolSize,f=n.get("symbolOffset");return te(f)&&(f=[mi(f[0],d[0]),mi(f[1],d[1])]),function(e,t,n,r,i,a,o,s,l,c,u,h){var d=u.categoryDim,f=u.valueDim,p=h.pxSign,A=Math.max(t[f.index]+s,0),g=A;if(r){var m=Math.abs(l),v=pe(e.get("symbolMargin"),"15%")+"",y=!1;v.lastIndexOf("!")===v.length-1&&(y=!0,v=v.slice(0,v.length-1));var b=mi(v,t[f.index]),w=Math.max(A+2*b,0),x=y?0:2*b,_=Oi(r),C=_?r:mF((m+x)/w),S=m-C*A;w=A+2*(b=S/2/(y?C:C-1)),x=y?0:2*b,_||"fixed"===r||(C=c?mF((Math.abs(c)+x)/w):0),g=C*w-x,h.repeatTimes=C,h.symbolMargin=b}var k=p*(g/2),B=h.pathPosition=[];B[d.index]=n[d.wh]/2,B[f.index]="start"===o?k:"end"===o?l-k:l/2,a&&(B[0]+=a[0],B[1]+=a[1]);var E=h.bundlePosition=[];E[d.index]=n[d.xy],E[f.index]=n[f.xy];var T=h.barRectShape=H({},n);T[f.wh]=p*Math.max(Math.abs(n[f.wh]),Math.abs(B[f.index]+k)),T[d.wh]=n[d.wh];var I=h.clipShape={};I[d.xy]=-n[d.xy],I[d.wh]=u.ecSize[d.wh],I[f.xy]=0,I[f.wh]=n[f.wh]}(n,d,i,a,0,f,s,h.valueLineWidth,h.boundingLength,h.repeatCutLength,r,h),h}function nF(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function rF(e){var t=e.symbolPatternSize,n=Zg(e.symbolType,-t/2,-t/2,t,t);return n.attr({culling:!0}),"image"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function iF(e,t,n,r){var i=e.__pictorialBundle,a=n.symbolSize,o=n.valueLineWidth,s=n.pathPosition,l=t.valueDim,c=n.repeatTimes||0,u=0,h=a[t.valueDim.index]+o+2*n.symbolMargin;for(pF(e,function(e){e.__pictorialAnimationIndex=u,e.__pictorialRepeatTimes=c,u<c?AF(e,null,p(u),n,r):AF(e,null,{scaleX:0,scaleY:0},n,r,function(){i.remove(e)}),u++});u<c;u++){var d=rF(n);d.__pictorialAnimationIndex=u,d.__pictorialRepeatTimes=c,i.add(d);var f=p(u);AF(d,{x:f.x,y:f.y,scaleX:0,scaleY:0},{scaleX:f.scaleX,scaleY:f.scaleY,rotation:f.rotation},n,r)}function p(e){var t=s.slice(),r=n.pxSign,i=e;return("start"===n.symbolRepeatDirection?r>0:r<0)&&(i=c-1-e),t[l.index]=h*(i-c/2+.5)+s[l.index],{x:t[0],y:t[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}}function aF(e,t,n,r){var i=e.__pictorialBundle,a=e.__pictorialMainPath;a?AF(a,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,r):(a=e.__pictorialMainPath=rF(n),i.add(a),AF(a,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:0,scaleY:0,rotation:n.rotation},{scaleX:n.symbolScale[0],scaleY:n.symbolScale[1]},n,r))}function oF(e,t,n){var r=H({},t.barRectShape),i=e.__pictorialBarRect;i?AF(i,null,{shape:r},t,n):(i=e.__pictorialBarRect=new Ds({z2:2,shape:r,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),e.add(i))}function sF(e,t,n,r){if(n.symbolClip){var i=e.__pictorialClipPath,a=H({},n.clipShape),o=t.valueDim,s=n.animationModel,c=n.dataIndex;if(i)_u(i,{shape:a},s,c);else{a[o.wh]=0,i=new Ds({shape:a}),e.__pictorialBundle.setClipPath(i),e.__pictorialClipPath=i;var u={};u[o.wh]=n.clipShape[o.wh],l[r?"updateProps":"initProps"](i,{shape:u},s,c)}}}function lF(e,t){var n=e.getItemModel(t);return n.getAnimationDelayParams=cF,n.isAnimationEnabled=uF,n}function cF(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function uF(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function hF(e,t,n,r){var i=new ii,a=new ii;return i.add(a),i.__pictorialBundle=a,a.x=n.bundlePosition[0],a.y=n.bundlePosition[1],n.symbolRepeat?iF(i,t,n):aF(i,0,n),oF(i,n,r),sF(i,t,n,r),i.__pictorialShapeStr=fF(e,n),i.__pictorialSymbolMeta=n,i}function dF(e,t,n,r){var i=r.__pictorialBarRect;i&&i.removeTextContent();var a=[];pF(r,function(e){a.push(e)}),r.__pictorialMainPath&&a.push(r.__pictorialMainPath),r.__pictorialClipPath&&(n=null),q(a,function(e){Su(e,{scaleX:0,scaleY:0},n,t,function(){r.parent&&r.parent.remove(r)})}),e.setItemGraphicEl(t,null)}function fF(e,t){return[e.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function pF(e,t,n){q(e.__pictorialBundle.children(),function(r){r!==e.__pictorialBarRect&&t.call(n,r)})}function AF(e,t,n,r,i,a){t&&e.attr(t),r.symbolClip&&!i?n&&e.attr(n):n&&l[i?"updateProps":"initProps"](e,n,r.animationModel,r.dataIndex,a)}function gF(e,t,n){var r=n.dataIndex,i=n.itemModel,a=i.getModel("emphasis"),o=a.getModel("itemStyle").getItemStyle(),s=i.getModel(["blur","itemStyle"]).getItemStyle(),l=i.getModel(["select","itemStyle"]).getItemStyle(),c=i.getShallow("cursor"),u=a.get("focus"),h=a.get("blurScope"),d=a.get("scale");pF(e,function(e){if(e instanceof Ss){var t=e.style;e.useStyle(H({image:t.image,x:t.x,y:t.y,width:t.width,height:t.height},n.style))}else e.useStyle(n.style);var r=e.ensureState("emphasis");r.style=o,d&&(r.scaleX=1.1*e.scaleX,r.scaleY=1.1*e.scaleY),e.ensureState("blur").style=s,e.ensureState("select").style=l,c&&(e.cursor=c),e.z2=n.z2});var f=t.valueDim.posDesc[+(n.boundingLength>0)];zu(e.__pictorialBarRect,Vu(i),{labelFetcher:t.seriesModel,labelDataIndex:r,defaultText:Cx(t.seriesModel.getData(),r),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:f}),Ml(e,u,h)}function mF(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}var vF=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.prototype.render=function(e,t,n){var r=this.group,i=e.getData(),a=this._data,o=e.coordinateSystem,s=o.getBaseAxis().isHorizontal(),l=o.master.getRect(),c={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:e,coordSys:o,coordSysExtent:[[l.x,l.x+l.width],[l.y,l.y+l.height]],isHorizontal:s,valueDim:ZM[+s],categoryDim:ZM[1-+s]};return i.diff(a).add(function(e){if(i.hasValue(e)){var t=lF(i,e),n=tF(i,e,t,c),a=hF(i,c,n);i.setItemGraphicEl(e,a),r.add(a),gF(a,c,n)}}).update(function(e,t){var n=a.getItemGraphicEl(t);if(i.hasValue(e)){var o=lF(i,e),s=tF(i,e,o,c),l=fF(i,s);n&&l!==n.__pictorialShapeStr&&(r.remove(n),i.setItemGraphicEl(e,null),n=null),n?function(e,t,n){var r=n.animationModel,i=n.dataIndex;_u(e.__pictorialBundle,{x:n.bundlePosition[0],y:n.bundlePosition[1]},r,i),n.symbolRepeat?iF(e,t,n,!0):aF(e,t,n,!0);oF(e,n,!0),sF(e,t,n,!0)}(n,c,s):n=hF(i,c,s,!0),i.setItemGraphicEl(e,n),n.__pictorialSymbolMeta=s,r.add(n),gF(n,c,s)}else r.remove(n)}).remove(function(e){var t=a.getItemGraphicEl(e);t&&dF(a,e,t.__pictorialSymbolMeta.animationModel,t)}).execute(),this._data=i,this.group},t.prototype.remove=function(e,t){var n=this.group,r=this._data;e.get("animation")?r&&r.eachItemGraphicEl(function(t){dF(r,Gs(t).dataIndex,e,t)}):n.removeAll()},t.type="pictorialBar",t}(AA),yF=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n.defaultSymbol="roundRect",n}return g(t,e),t.prototype.getInitialData=function(t){return t.stack=null,e.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=gh(c_.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),t}(c_);var bF=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._layers=[],n}return g(t,e),t.prototype.render=function(e,t,n){var r=e.getData(),i=this,a=this.group,o=e.getLayerSeries(),s=r.getLayout("layoutInfo"),l=s.rect,c=s.boundaryGap;function u(e){return e.name}a.x=0,a.y=l.y+c[0];var h=[];function d(t,n,s){var l=i._layers;if("remove"!==t){for(var c,u,d=[],f=[],p=o[n].indices,A=0;A<p.length;A++){var g=r.getItemLayout(p[A]),m=g.x,v=g.y0,y=g.y;d.push(m,v),f.push(m,v+y),c=r.getItemVisual(p[A],"style")}var b=r.getItemLayout(p[0]),w=e.getModel("label").get("margin"),x=e.getModel("emphasis");if("add"===t){var _=h[n]=new ii;u=new Vx({shape:{points:d,stackedOnPoints:f,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),_.add(u),a.add(_),e.isAnimationEnabled()&&u.setClipPath(function(e,t,n){var r=new Ds({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return Cu(r,{shape:{x:e.x-50,width:e.width+100,height:e.height+20}},t,n),r}(u.getBoundingRect(),e,function(){u.removeClipPath()}))}else{_=l[s];u=_.childAt(0),a.add(_),h[n]=_,_u(u,{shape:{points:d,stackedOnPoints:f}},e)}zu(u,Vu(e),{labelDataIndex:p[A-1],defaultText:r.getName(p[A-1]),inheritColor:c.fill},{normal:{verticalAlign:"middle"}}),u.setTextConfig({position:null,local:!0});var C=u.getTextContent();C&&(C.x=b.x-w,C.y=b.y0+b.y/2),u.useStyle(c),r.setItemGraphicEl(n,u),Ol(u,e),Ml(u,x.get("focus"),x.get("blurScope"))}else a.remove(l[n])}new oy(this._layersSeries||[],o,u,u).add(Z(d,this,"add")).update(Z(d,this,"update")).remove(Z(d,this,"remove")).execute(),this._layersSeries=o,this._layers=h},t.type="themeRiver",t}(AA),wF=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.useColorPaletteOnData=!0,n}return g(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new Q_(Z(this.getData,this),Z(this.getRawData,this))},t.prototype.fixData=function(e){var t=e.length,n={},r=[];oa(e,function(e){return n.hasOwnProperty(e[0]+"")||(n[e[0]+""]=-1),e[2]}).buckets.each(function(e,t){r.push({name:t,dataList:e})});for(var i=r.length,a=0;a<i;++a){for(var o=r[a].name,s=0;s<r[a].dataList.length;++s){var l=r[a].dataList[s][0]+"";n[l]=a}for(var l in n)n.hasOwnProperty(l)&&n[l]!==a&&(n[l]=a,e[t]=[l,0,o],t++)}return e},t.prototype.getInitialData=function(e,t){for(var n=this.getReferringComponents("singleAxis",na).models[0].get("type"),r=Y(e.data,function(e){return void 0!==e[2]}),i=this.fixData(r||[]),a=[],o=this.nameMap=Se(),s=0,l=0;l<i.length;++l)a.push(i[l][2]),o.get(i[l][2])||(o.set(i[l][2],s),s++);var c=Ly(i,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:ly(n)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}),u=new Dy(c,this);return u.initData(i),u},t.prototype.getLayerSeries=function(){for(var e=this.getData(),t=e.count(),n=[],r=0;r<t;++r)n[r]=r;var i=e.mapDimension("single"),a=[];return oa(n,function(t){return e.get("name",t)}).buckets.each(function(t,n){t.sort(function(t,n){return e.get(i,t)-e.get(i,n)}),a.push({name:n,indices:t})}),a},t.prototype.getAxisTooltipData=function(e,t,n){te(e)||(e=e?[e]:[]);for(var r,i=this.getData(),a=this.getLayerSeries(),o=[],s=a.length,l=0;l<s;++l){for(var c=Number.MAX_VALUE,u=-1,h=a[l].indices.length,d=0;d<h;++d){var f=i.get(e[0],a[l].indices[d]),p=Math.abs(f-t);p<=c&&(r=f,c=p,u=a[l].indices[d])}o.push(u)}return{dataIndices:o,nestestValue:r}},t.prototype.formatTooltip=function(e,t,n){var r=this.getData();return Lp("nameValue",{name:r.getName(e),value:r.get(r.mapDimension("value"),e)})},t.type="series.themeRiver",t.dependencies=["singleAxis"],t.defaultOption={zlevel:0,z:2,coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},t}(rA);function xF(e,t){e.eachSeriesByType("themeRiver",function(e){var t=e.getData(),n=e.coordinateSystem,r={},i=n.getRect();r.rect=i;var a=e.get("boundaryGap"),o=n.getAxis();(r.boundaryGap=a,"horizontal"===o.orient)?(a[0]=mi(a[0],i.height),a[1]=mi(a[1],i.height),_F(t,e,i.height-a[0]-a[1])):(a[0]=mi(a[0],i.width),a[1]=mi(a[1],i.width),_F(t,e,i.width-a[0]-a[1]));t.setLayout("layoutInfo",r)})}function _F(e,t,n){if(e.count())for(var r,i=t.coordinateSystem,a=t.getLayerSeries(),o=e.mapDimension("single"),s=e.mapDimension("value"),l=W(a,function(t){return W(t.indices,function(t){var n=i.dataToPoint(e.get(o,t));return n[1]=e.get(s,t),n})}),c=function(e){for(var t=e.length,n=e[0].length,r=[],i=[],a=0,o=0;o<n;++o){for(var s=0,l=0;l<t;++l)s+=e[l][o][1];s>a&&(a=s),r.push(s)}for(var c=0;c<n;++c)i[c]=(a-r[c])/2;a=0;for(var u=0;u<n;++u){var h=r[u]+i[u];h>a&&(a=h)}return{y0:i,max:a}}(l),u=c.y0,h=n/c.max,d=a.length,f=a[0].indices.length,p=0;p<f;++p){r=u[p]*h,e.setItemLayout(a[0].indices[p],{layerIndex:0,x:l[0][p][0],y0:r,y:l[0][p][1]*h});for(var A=1;A<d;++A)r+=l[A-1][p][1]*h,e.setItemLayout(a[A].indices[p],{layerIndex:A,x:l[A][p][0],y0:r,y:l[A][p][1]*h})}}var CF=2,SF=4,kF=function(e){function t(t,n,r,i){var a=e.call(this)||this;a.z2=CF,a.textConfig={inside:!0},Gs(a).seriesIndex=n.seriesIndex;var o=new Vs({z2:SF,silent:t.getModel().get(["label","silent"])});return a.setTextContent(o),a.updateData(!0,t,n,r,i),a}return g(t,e),t.prototype.updateData=function(e,t,n,r,i){this.node=t,t.piece=this,n=n||this._seriesModel,r=r||this._ecModel;var a=this;Gs(a).dataIndex=t.dataIndex;var o=t.getModel(),s=o.getModel("emphasis"),l=t.getLayout(),c=H({},l);c.label=null;var u=t.getVisual("style");u.lineJoin="bevel";var h=t.getVisual("decal");h&&(u.decal=Sm(h,i));var d=N_(o.getModel("itemStyle"),c);H(c,d),q(Js,function(e){var t=a.ensureState(e),n=o.getModel([e,"itemStyle"]);t.style=n.getItemStyle();var r=N_(n,c);r&&(t.shape=r)}),e?(a.setShape(c),a.shape.r=l.r0,_u(a,{shape:{r:l.r}},n,t.dataIndex)):_u(a,{shape:c},n),a.useStyle(u),this._updateLabel(n);var f=o.getShallow("cursor");f&&a.attr("cursor",f),this._seriesModel=n||this._seriesModel,this._ecModel=r||this._ecModel;var p=s.get("focus");Ml(this,("ancestor"===p?t.getAncestorsIndices():"descendant"===p?t.getDescendantIndices():null)||p,s.get("blurScope"))},t.prototype._updateLabel=function(e){var t=this,n=this.node.getModel(),r=n.getModel("label"),i=this.node.getLayout(),a=i.endAngle-i.startAngle,o=(i.startAngle+i.endAngle)/2,s=Math.cos(o),l=Math.sin(o),c=this,u=c.getTextContent(),h=this.node.dataIndex,d=r.get("minAngle")/180*Math.PI,f=r.get("show")&&!(null!=d&&Math.abs(a)<d);function p(e,t){var n=e.get(t);return null==n?r.get(t):n}u.ignore=!f,q(Zs,function(r){var a="normal"===r?n.getModel("label"):n.getModel([r,"label"]),d="normal"===r,f=d?u:u.ensureState(r),A=e.getFormattedLabel(h,r);d&&(A=A||t.node.name),f.style=Gu(a,{},null,"normal"!==r,!0),A&&(f.style.text=A);var g=a.get("show");null==g||d||(f.ignore=!g);var m,v=p(a,"position"),y=d?c:c.states[r],b=y.style.fill;y.textConfig={outsideFill:"inherit"===a.get("color")?b:null,inside:"outside"!==v};var w=p(a,"distance")||0,x=p(a,"align");"outside"===v?(m=i.r+w,x=o>Math.PI/2?"right":"left"):x&&"center"!==x?"left"===x?(m=i.r0+w,o>Math.PI/2&&(x="right")):"right"===x&&(m=i.r-w,o>Math.PI/2&&(x="left")):(m=(i.r+i.r0)/2,x="center"),f.style.align=x,f.style.verticalAlign=p(a,"verticalAlign")||"middle",f.x=m*s+i.cx,f.y=m*l+i.cy;var _=p(a,"rotate"),C=0;"radial"===_?(C=-o)<-Math.PI/2&&(C+=Math.PI):"tangential"===_?(C=Math.PI/2-o)>Math.PI/2?C-=Math.PI:C<-Math.PI/2&&(C+=Math.PI):"number"==typeof _&&(C=_*Math.PI/180),f.rotation=C}),u.dirtyStyle()},t}(Sc),BF="sunburstRootToNode",EF="sunburstHighlight",TF="sunburstUnhighlight";var IF=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.prototype.render=function(e,t,n,r){var i=this;this.seriesModel=e,this.api=n,this.ecModel=t;var a=e.getData(),o=a.tree.root,s=e.getViewRoot(),l=this.group,c=e.get("renderLabelForZeroData"),u=[];s.eachNode(function(e){u.push(e)});var h=this._oldChildren||[];!function(r,i){if(0===r.length&&0===i.length)return;function s(e){return e.getId()}function u(s,u){var h=null==s?null:r[s],d=null==u?null:i[u];!function(r,i){c||!r||r.getValue()||(r=null);if(r!==o&&i!==o)if(i&&i.piece)r?(i.piece.updateData(!1,r,e,t,n),a.setItemGraphicEl(r.dataIndex,i.piece)):function(e){if(!e)return;e.piece&&(l.remove(e.piece),e.piece=null)}(i);else if(r){var s=new kF(r,e,t,n);l.add(s),a.setItemGraphicEl(r.dataIndex,s)}}(h,d)}new oy(i,r,s,s).add(u).update(u).remove(ee(u,null)).execute()}(u,h),function(r,a){a.depth>0?(i.virtualPiece?i.virtualPiece.updateData(!1,r,e,t,n):(i.virtualPiece=new kF(r,e,t,n),l.add(i.virtualPiece)),a.piece.off("click"),i.virtualPiece.on("click",function(e){i._rootToNode(a.parentNode)})):i.virtualPiece&&(l.remove(i.virtualPiece),i.virtualPiece=null)}(o,s),this._initEvents(),this._oldChildren=u},t.prototype._initEvents=function(){var e=this;this.group.off("click"),this.group.on("click",function(t){var n=!1;e.seriesModel.getViewRoot().eachNode(function(r){if(!n&&r.piece&&r.piece===t.target){var i=r.getModel().get("nodeClick");if("rootToNode"===i)e._rootToNode(r);else if("link"===i){var a=r.getModel(),o=a.get("link");if(o)fd(o,a.get("target",!0)||"_blank")}n=!0}})})},t.prototype._rootToNode=function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:BF,from:this.uid,seriesId:this.seriesModel.id,targetNode:e})},t.prototype.containPoint=function(e,t){var n=t.getData().getItemLayout(0);if(n){var r=e[0]-n.cx,i=e[1]-n.cy,a=Math.sqrt(r*r+i*i);return a<=n.r&&a>=n.r0}},t.type="sunburst",t}(AA);var MF=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreStyleOnData=!0,n}return g(t,e),t.prototype.getInitialData=function(e,t){var n={name:e.name,children:e.data};!function e(t){var n=0;q(t.children,function(t){e(t);var r=t.value;te(r)&&(r=r[0]),n+=r});var r=t.value;te(r)&&(r=r[0]);(null==r||isNaN(r))&&(r=n);r<0&&(r=0);te(t.value)?t.value[0]=r:t.value=r}(n);var r=W(e.levels||[],function(e){return new fh(e,this,t)},this),i=Ik.createTree(n,this,function(e){e.wrapMethod("getItemModel",function(e,t){var n=i.getNodeByDataIndex(t),a=r[n.depth];return a&&(e.parentModel=a),e})});return i.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(t);return n.treePathInfo=Nk(r,this),n},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;e&&(e===t||t.contains(e))||(this._viewRoot=t)},t.prototype.enableAriaDecal=function(){jk(this)},t.type="series.sunburst",t.defaultOption={zlevel:0,z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],levels:[],sort:"desc"},t}(rA),FF=Math.PI/180;function DF(e,t,n){t.eachSeriesByType(e,function(e){var t=e.get("center"),r=e.get("radius");te(r)||(r=[0,r]),te(t)||(t=[t,t]);var i=n.getWidth(),a=n.getHeight(),o=Math.min(i,a),s=mi(t[0],i),l=mi(t[1],a),c=mi(r[0],o/2),u=mi(r[1],o/2),h=-e.get("startAngle")*FF,d=e.get("minAngle")*FF,f=e.getData().tree.root,p=e.getViewRoot(),A=p.depth,g=e.get("sort");null!=g&&function e(t,n){var r=t.children||[];t.children=function(e,t){if("function"==typeof t){var n=W(e,function(e,t){var n=e.getValue();return{params:{depth:e.depth,height:e.height,dataIndex:e.dataIndex,getValue:function(){return n}},index:t}});return n.sort(function(e,n){return t(e.params,n.params)}),W(n,function(t){return e[t.index]})}var r="asc"===t;return e.sort(function(e,t){var n=(e.getValue()-t.getValue())*(r?1:-1);return 0===n?(e.dataIndex-t.dataIndex)*(r?-1:1):n})}(r,n);r.length&&q(t.children,function(t){e(t,n)})}(p,g);var m=0;q(p.children,function(e){!isNaN(e.getValue())&&m++});var v=p.getValue(),y=Math.PI/(v||m)*2,b=p.depth>0,w=p.height-(b?-1:1),x=(u-c)/(w||1),_=e.get("clockwise"),C=e.get("stillShowZeroSum"),S=_?1:-1,k=function(e,t){if(e){var n=t;if(e!==f){var r=e.getValue(),i=0===v&&C?y:r*y;i<d&&(i=d),n=t+S*i;var a=e.depth-A-(b?-1:1),u=c+x*a,h=c+x*(a+1),p=e.getModel();null!=p.get("r0")&&(u=mi(p.get("r0"),o/2)),null!=p.get("r")&&(h=mi(p.get("r"),o/2)),e.setLayout({angle:i,startAngle:t,endAngle:n,clockwise:_,cx:s,cy:l,r0:u,r:h})}if(e.children&&e.children.length){var g=0;q(e.children,function(e){g+=k(e,t+g)})}return n-t}};if(b){var B=c,E=c+x,T=2*Math.PI;f.setLayout({angle:T,startAngle:h,endAngle:h+T,clockwise:_,cx:s,cy:l,r0:B,r:E})}k(p,h)})}function PF(e){var t={};e.eachSeriesByType("sunburst",function(e){var n=e.getData(),r=n.tree;r.eachNode(function(i){var a=i.getModel().getModel("itemStyle").getItemStyle();a.fill||(a.fill=function(e,n,r){for(var i=e;i&&i.depth>1;)i=i.parentNode;var a=n.getColorFromPalette(i.name||i.dataIndex+"",t);return e.depth>1&&"string"==typeof a&&(a=yn(a,(e.depth-1)/(r-1)*.5)),a}(i,e,r.root.height)),H(n.ensureUniqueItemVisual(i.dataIndex,"style"),a)})})}function OF(e,t){return t=t||[0,0],W(["x","y"],function(n,r){var i=this.getAxis(n),a=t[r],o=e[r]/2;return"category"===i.type?i.getBandWidth():Math.abs(i.dataToCoord(a-o)-i.dataToCoord(a+o))},this)}function LF(e,t){return t=t||[0,0],W([0,1],function(n){var r=t[n],i=e[n]/2,a=[],o=[];return a[n]=r-i,o[n]=r+i,a[1-n]=o[1-n]=t[1-n],Math.abs(this.dataToPoint(a)[n]-this.dataToPoint(o)[n])},this)}function RF(e,t){var n=this.getAxis(),r=t instanceof Array?t[0]:t,i=(e instanceof Array?e[0]:e)/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(r-i)-n.dataToCoord(r+i))}function NF(e,t){return t=t||[0,0],W(["Radius","Angle"],function(n,r){var i=this["get"+n+"Axis"](),a=t[r],o=e[r]/2,s="category"===i.type?i.getBandWidth():Math.abs(i.dataToCoord(a-o)-i.dataToCoord(a+o));return"Angle"===n&&(s=s*Math.PI/180),s},this)}function UF(e,t,n,r){return e&&(e.legacy||!1!==e.legacy&&!n&&!r&&"tspan"!==t&&("text"===t||Ee(e,"text")))}function HF(e,t,n){var r,i,a,o=e;if("text"===t)a=o;else{a={},Ee(o,"text")&&(a.text=o.text),Ee(o,"rich")&&(a.rich=o.rich),Ee(o,"textFill")&&(a.fill=o.textFill),Ee(o,"textStroke")&&(a.stroke=o.textStroke),i={type:"text",style:a,silent:!0},r={};var s=Ee(o,"textPosition");n?r.position=s?o.textPosition:"inside":s&&(r.position=o.textPosition),Ee(o,"textPosition")&&(r.position=o.textPosition),Ee(o,"textOffset")&&(r.offset=o.textOffset),Ee(o,"textRotation")&&(r.rotation=o.textRotation),Ee(o,"textDistance")&&(r.distance=o.textDistance)}return jF(a,e),q(a.rich,function(e){jF(e,e)}),{textConfig:r,textContent:i}}function jF(e,t){t&&(t.font=t.textFont||t.font,Ee(t,"textStrokeWidth")&&(e.lineWidth=t.textStrokeWidth),Ee(t,"textAlign")&&(e.align=t.textAlign),Ee(t,"textVerticalAlign")&&(e.verticalAlign=t.textVerticalAlign),Ee(t,"textLineHeight")&&(e.lineHeight=t.textLineHeight),Ee(t,"textWidth")&&(e.width=t.textWidth),Ee(t,"textHeight")&&(e.height=t.textHeight),Ee(t,"textBackgroundColor")&&(e.backgroundColor=t.textBackgroundColor),Ee(t,"textPadding")&&(e.padding=t.textPadding),Ee(t,"textBorderColor")&&(e.borderColor=t.textBorderColor),Ee(t,"textBorderWidth")&&(e.borderWidth=t.textBorderWidth),Ee(t,"textBorderRadius")&&(e.borderRadius=t.textBorderRadius),Ee(t,"textBoxShadowColor")&&(e.shadowColor=t.textBoxShadowColor),Ee(t,"textBoxShadowBlur")&&(e.shadowBlur=t.textBoxShadowBlur),Ee(t,"textBoxShadowOffsetX")&&(e.shadowOffsetX=t.textBoxShadowOffsetX),Ee(t,"textBoxShadowOffsetY")&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function QF(e,t,n){var r=e;r.textPosition=r.textPosition||n.position||"inside",null!=n.offset&&(r.textOffset=n.offset),null!=n.rotation&&(r.textRotation=n.rotation),null!=n.distance&&(r.textDistance=n.distance);var i=r.textPosition.indexOf("inside")>=0,a=e.fill||"#000";zF(r,t);var o=null==r.textFill;return i?o&&(r.textFill=n.insideFill||"#fff",!r.textStroke&&n.insideStroke&&(r.textStroke=n.insideStroke),!r.textStroke&&(r.textStroke=a),null==r.textStrokeWidth&&(r.textStrokeWidth=2)):(o&&(r.textFill=n.outsideFill||a),!r.textStroke&&n.outsideStroke&&(r.textStroke=n.outsideStroke)),r.text=t.text,r.rich=t.rich,q(t.rich,function(e){zF(e,e)}),r}function zF(e,t){t&&(Ee(t,"fill")&&(e.textFill=t.fill),Ee(t,"stroke")&&(e.textStroke=t.fill),Ee(t,"lineWidth")&&(e.textStrokeWidth=t.lineWidth),Ee(t,"font")&&(e.font=t.font),Ee(t,"fontStyle")&&(e.fontStyle=t.fontStyle),Ee(t,"fontWeight")&&(e.fontWeight=t.fontWeight),Ee(t,"fontSize")&&(e.fontSize=t.fontSize),Ee(t,"fontFamily")&&(e.fontFamily=t.fontFamily),Ee(t,"align")&&(e.textAlign=t.align),Ee(t,"verticalAlign")&&(e.textVerticalAlign=t.verticalAlign),Ee(t,"lineHeight")&&(e.textLineHeight=t.lineHeight),Ee(t,"width")&&(e.textWidth=t.width),Ee(t,"height")&&(e.textHeight=t.height),Ee(t,"backgroundColor")&&(e.textBackgroundColor=t.backgroundColor),Ee(t,"padding")&&(e.textPadding=t.padding),Ee(t,"borderColor")&&(e.textBorderColor=t.borderColor),Ee(t,"borderWidth")&&(e.textBorderWidth=t.borderWidth),Ee(t,"borderRadius")&&(e.textBorderRadius=t.borderRadius),Ee(t,"shadowColor")&&(e.textBoxShadowColor=t.shadowColor),Ee(t,"shadowBlur")&&(e.textBoxShadowBlur=t.shadowBlur),Ee(t,"shadowOffsetX")&&(e.textBoxShadowOffsetX=t.shadowOffsetX),Ee(t,"shadowOffsetY")&&(e.textBoxShadowOffsetY=t.shadowOffsetY),Ee(t,"textShadowColor")&&(e.textShadowColor=t.textShadowColor),Ee(t,"textShadowBlur")&&(e.textShadowBlur=t.textShadowBlur),Ee(t,"textShadowOffsetX")&&(e.textShadowOffsetX=t.textShadowOffsetX),Ee(t,"textShadowOffsetY")&&(e.textShadowOffsetY=t.textShadowOffsetY))}var VF=Xo.CMD,GF=2*Math.PI,$F=["x","y"],qF=["width","height"],WF=[];function KF(e,t){return Math.abs(e-t)<1e-5}function YF(e){var t,n,r,i,a,o=e.data,s=e.len(),l=[],c=0,u=0,h=0,d=0;function f(e,n){t&&t.length>2&&l.push(t),t=[e,n]}function p(e,n,r,i){KF(e,r)&&KF(n,i)||t.push(e,n,r,i,r,i)}function A(e,n,r,i,a,o){var s=Math.abs(n-e),l=4*Math.tan(s/4)/3,c=n<e?-1:1,u=Math.cos(e),h=Math.sin(e),d=Math.cos(n),f=Math.sin(n),p=u*a+r,A=h*o+i,g=d*a+r,m=f*o+i,v=a*l*c,y=o*l*c;t.push(p-v*h,A+y*u,g+v*f,m-y*d,g,m)}for(var g=0;g<s;){var m=o[g++],v=1===g;switch(v&&(h=c=o[g],d=u=o[g+1],m!==VF.L&&m!==VF.C&&m!==VF.Q||(t=[h,d])),m){case VF.M:c=h=o[g++],u=d=o[g++],f(h,d);break;case VF.L:p(c,u,n=o[g++],r=o[g++]),c=n,u=r;break;case VF.C:t.push(o[g++],o[g++],o[g++],o[g++],c=o[g++],u=o[g++]);break;case VF.Q:n=o[g++],r=o[g++],i=o[g++],a=o[g++],t.push(c+2/3*(n-c),u+2/3*(r-u),i+2/3*(n-i),a+2/3*(r-a),i,a),c=i,u=a;break;case VF.A:var y=o[g++],b=o[g++],w=o[g++],x=o[g++],_=o[g++],C=o[g++]+_;g+=1;var S=!o[g++];n=Math.cos(_)*w+y,r=Math.sin(_)*x+b,v?f(h=n,d=r):p(c,u,n,r),c=Math.cos(C)*w+y,u=Math.sin(C)*x+b;for(var k=(S?-1:1)*Math.PI/2,B=_;S?B>C:B<C;B+=k){A(B,S?Math.max(B+k,C):Math.min(B+k,C),y,b,w,x)}break;case VF.R:h=c=o[g++],d=u=o[g++],n=h+o[g++],r=d+o[g++],f(n,d),p(n,d,n,r),p(n,r,h,r),p(h,r,h,d),p(h,d,n,d);break;case VF.Z:t&&p(c,u,h,d),c=h,u=d}}return t&&t.length>2&&l.push(t),l}function XF(e,t){var n=e.length,r=t.length;if(n===r)return[e,t];for(var i=n<r?e:t,a=Math.min(n,r),o=Math.abs(r-n)/6,s=(a-2)/6,l=Math.ceil(o/s)+1,c=[i[0],i[1]],u=o,h=[],d=[],f=2;f<a;){var p=i[f-2],A=i[f-1],g=i[f++],m=i[f++],v=i[f++],y=i[f++],b=i[f++],w=i[f++];if(u<=0)c.push(g,m,v,y,b,w);else{for(var x=Math.min(u,l-1)+1,_=1;_<=x;_++){var C=_/x;so(p,g,v,b,C,h),so(A,m,y,w,C,d),p=h[3],A=d[3],c.push(h[1],d[1],h[2],d[2],p,A),g=h[5],m=d[5],v=h[6],y=d[6]}u-=x-1}}return i===e?[c,t]:[e,c]}function JF(e,t){for(var n=e.length,r=e[n-2],i=e[n-1],a=[],o=0;o<t.length;)a[o++]=r,a[o++]=i;return a}function ZF(e){for(var t=0,n=0,r=0,i=e.length,a=0,o=i-2;a<i;o=a,a+=2){var s=e[o],l=e[o+1],c=e[a],u=e[a+1],h=s*u-c*l;t+=h,n+=(s+c)*h,r+=(l+u)*h}return 0===t?[e[0]||0,e[1]||0]:[n/t/3,r/t/3,t]}function eD(e,t,n,r){for(var i=(e.length-2)/6,a=1/0,o=0,s=e.length,l=s-2,c=0;c<i;c++){for(var u=6*c,h=0,d=0;d<s;d+=2){var f=0===d?u:(u+d-2)%l+2,p=e[f]-n[0],A=e[f+1]-n[1],g=t[d]-r[0]-p,m=t[d+1]-r[1]-A;h+=g*g+m*m}h<a&&(a=h,o=c)}return o}function tD(e){for(var t=[],n=e.length,r=0;r<n;r+=2)t[r]=e[n-r-2],t[r+1]=e[n-r-1];return t}function nD(e,t,n){var r,i;if(!e||!t)return t;!e.path&&e.createPathProxy(),(r=e.path).beginPath(),e.buildPath(r,e.shape),!t.path&&t.createPathProxy(),(i=t.path)===r&&(i=new Xo(!1)),i.beginPath(),aD(t)?t.__oldBuildPath(i,t.shape):t.buildPath(i,t.shape);var a=function(e,t){for(var n,r,i,a=[],o=[],s=0;s<Math.max(e.length,t.length);s++){var l=e[s],c=t[s],u=void 0,h=void 0;l?c?(r=u=(n=XF(l,c))[0],i=h=n[1]):(h=JF(i||l,l),u=l):(u=JF(r||c,c),h=c),a.push(u),o.push(h)}return[a,o]}(YF(r),YF(i)),o=function(e,t,n,r){for(var i,a=[],o=0;o<e.length;o++){var s=e[o],l=t[o],c=ZF(s),u=ZF(l);null==i&&(i=c[2]<0!=u[2]<0);var h=[],d=[],f=0,p=1/0,A=[],g=s.length;i&&(s=tD(s));for(var m=6*eD(s,l,c,u),v=g-2,y=0;y<v;y+=2){var b=(m+y)%v+2;h[y+2]=s[b]-c[0],h[y+3]=s[b+1]-c[1]}if(h[0]=s[m]-c[0],h[1]=s[m+1]-c[1],n>0)for(var w=r/n,x=-r/2;x<=r/2;x+=w){var _=Math.sin(x),C=Math.cos(x),S=0;for(y=0;y<s.length;y+=2){var k=h[y],B=h[y+1],E=l[y]-u[0],T=l[y+1]-u[1],I=E*C-T*_,M=E*_+T*C;A[y]=I,A[y+1]=M;var F=I-k,D=M-B;S+=F*F+D*D}if(S<p){p=S,f=x;for(var P=0;P<A.length;P++)d[P]=A[P]}}else for(var O=0;O<g;O+=2)d[O]=l[O]-u[0],d[O+1]=l[O+1]-u[1];a.push({from:h,to:d,fromCp:c,toCp:u,rotation:-f})}return a}(a[0],a[1],10,Math.PI);!function(e,t,n){if(aD(e))return void iD(e,t,n);var r=e;r.__oldBuildPath=r.buildPath,r.buildPath=rD,iD(r,t,n)}(t,o,0);var s=n&&n.done,l=n&&n.aborted,c=n&&n.during;return t.animateTo({__morphT:1},j({during:function(e){t.dirtyShape(),c&&c(e)},done:function(){var e;aD(e=t)&&(e.buildPath=e.__oldBuildPath,e.__oldBuildPath=e.__morphingData=null),t.createPathProxy(),t.dirtyShape(),s&&s()},aborted:function(){l&&l()}},n)),t}function rD(e){for(var t=this.__morphingData,n=this.__morphT,r=1-n,i=[],a=0;a<t.length;a++){var o=t[a],s=o.from,l=o.to,c=o.rotation*n,u=o.fromCp,h=o.toCp,d=Math.sin(c),f=Math.cos(c);Ze(i,u,h,n);for(var p=0;p<s.length;p+=2){var A=s[p],g=s[p+1],m=A*r+l[p]*n,v=g*r+l[p+1]*n;WF[p]=m*f-v*d+i[0],WF[p+1]=m*d+v*f+i[1]}for(p=0;p<s.length;)0===p&&e.moveTo(WF[p++],WF[p++]),e.bezierCurveTo(WF[p++],WF[p++],WF[p++],WF[p++],WF[p++],WF[p++])}}function iD(e,t,n){e.__morphingData=t,e.__morphT=n}function aD(e){return null!=e.__oldBuildPath}function oD(e){return!!e.__combiningSubList}function sD(e,t,n,r){for(var i=[],a=0,o=0;o<e.length;o++){var s=e[o];if(oD(s)){for(var l=s.__combiningSubList,c=0;c<l.length;c++)i.push(l[c]);a+=l.length}else i.push(s),a++}if(a){var u=n?n.dividingMethod:null,h=fD(t,a,u);ye(h.length===a);var d=n&&n.done,f=n&&n.aborted,p=n&&n.during,A=0,g=!1,m=j({during:function(e){p&&p(e)},done:function(){++A===h.length&&(!function(e){if(!oD(e))return;var t=e;lD(t,null),t.addSelfToZr=t.__oldAddSelfToZr,t.removeSelfFromZr=t.__oldRemoveSelfFromZr,t.buildPath=t.__oldBuildPath,t.childrenRef=t.__combiningSubList=t.__oldAddSelfToZr=t.__oldRemoveSelfFromZr=t.__oldBuildPath=null}(t),d&&d())},aborted:function(){g||(g=!0,f&&f())}},n);for(o=0;o<a;o++){var v=i[o],y=h[o];r&&r(t,y,!0),nD(v,y,m)}return function(e,t){if(oD(e))return void lD(e,t);var n=e;lD(n,t),n.__oldAddSelfToZr=e.addSelfToZr,n.__oldRemoveSelfFromZr=e.removeSelfFromZr,n.addSelfToZr=cD,n.removeSelfFromZr=hD,n.__oldBuildPath=n.buildPath,n.buildPath=Te,n.childrenRef=dD}(t,h),{fromIndividuals:i,toIndividuals:h,count:a}}}function lD(e,t){if(e.__combiningSubList!==t){if(uD(e,"removeSelfFromZr"),e.__combiningSubList=t,t)for(var n=0;n<t.length;n++)t[n].parent=e;uD(e,"addSelfToZr")}}function cD(e){this.__oldAddSelfToZr(e),uD(this,"addSelfToZr")}function uD(e,t){var n=e.__combiningSubList,r=e.__zr;if(n&&r)for(var i=0;i<n.length;i++){n[i][t](r)}}function hD(e){this.__oldRemoveSelfFromZr(e);for(var t=this.__combiningSubList,n=0;n<t.length;n++){t[n].removeSelfFromZr(e)}}function dD(){return this.__combiningSubList}function fD(e,t,n){return"duplicate"===n?pD(e,t):function(e,t){var n=[];if(t<=0)return n;if(1===t)return pD(e,t);if(e instanceof Ds)for(var r=e.shape,i=r.height>r.width?1:0,a=qF[i],o=$F[i],s=r[a]/t,l=r[o],c=0;c<t;c++,l+=s){var u={x:r.x,y:r.y,width:r.width,height:r.height};u[o]=l,u[a]=c<t-1?s:r[o]+r[a]-l;var h=new Ds({shape:u});n.push(h)}else{if(!(e instanceof Sc))return pD(e,t);for(var r=e.shape,d=r.clockwise,f=r.startAngle,p=r.endAngle,A=function(e,t,n){return t+GF*Math[n?"ceil":"floor"]((e-t)/GF)}(f,r.endAngle,d),g=(A-f)/t,m=f,c=0;c<t;c++,m+=g){var h=new Sc({shape:{cx:r.cx,cy:r.cy,r:r.r,r0:r.r0,clockwise:d,startAngle:m,endAngle:c===t-1?p:m+g}});n.push(h)}}return n}(e,t)}function pD(e,t){var n=[];if(t<=0)return n;for(var r=e.constructor,i=0;i<t;i++){var a=new r({shape:R(e.shape)});n.push(a)}return n}var AD=Zi(),gD={x:1,y:1,scaleX:1,scaleY:1,originX:1,originY:1,rotation:1},mD=(J(gD).join(", "),{color:"fill",borderColor:"stroke"}),vD={symbol:1,symbolSize:1,symbolKeepAspect:1,legendSymbol:1,visualMeta:1,liftZ:1,decal:1},yD="emphasis",bD="normal",wD=[bD,yD,"blur","select"],xD={normal:["itemStyle"],emphasis:[yD,"itemStyle"],blur:["blur","itemStyle"],select:["select","itemStyle"]},_D={normal:["label"],emphasis:[yD,"label"],blur:["blur","label"],select:["select","label"]},CD="e\0\0",SD={normal:{},emphasis:{},blur:{},select:{}},kD={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},BD=new Xt,ED={cartesian2d:function(e){var t=e.master.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:Z(OF,e)}}},geo:function(e){var t=e.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:e.getZoom()},api:{coord:function(t){return e.dataToPoint(t)},size:Z(LF,e)}}},singleAxis:function(e){var t=e.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:Z(RF,e)}}},polar:function(e){var t=e.getRadiusAxis(),n=e.getAngleAxis(),r=t.getExtent();return r[0]>r[1]&&r.reverse(),{coordSys:{type:"polar",cx:e.cx,cy:e.cy,r:r[1],r0:r[0]},api:{coord:function(r){var i=t.dataToRadius(r[0]),a=n.dataToAngle(r[1]),o=e.coordToPoint([i,a]);return o.push(i,a*Math.PI/180),o},size:Z(NF,e)}}},calendar:function(e){var t=e.getRect(),n=e.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:e.getCellWidth(),cellHeight:e.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(t,n){return e.dataToPoint(t,n)}}}}},TD=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(e,t){return zy(this.getSource(),this)},t.prototype.getDataParams=function(t,n,r){var i=e.prototype.getDataParams.call(this,t,n);return r&&(i.info=AD(r).info),i},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,clip:!1},t}(rA),ID=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.prototype.render=function(e,t,n,r){var i=this._data,a=e.getData(),o=this.group,s=YD(e,a,t,n),l=e.__transientTransitionOpt;if(!l||null!=l.from&&null!=l.to){var c=new uP(e,l),u=l?"multiple":"oneToOne";new oy(i?i.getIndices():[],a.getIndices(),MD(i,u,l&&l.from),MD(a,u,l&&l.to),null,u).add(function(t){XD(n,null,t,s(t,r),e,o,a,null)}).remove(function(t){oP(i.getItemGraphicEl(t),e,o)}).update(function(t,l){c.reset("oneToOne");var u=i.getItemGraphicEl(l);c.findAndAddFrom(u),c.hasFrom()&&(cP(u,o),u=null),XD(n,u,t,s(t,r),e,o,a,c),c.applyMorphing()}).updateManyToOne(function(t,l){c.reset("manyToOne");for(var u=0;u<l.length;u++){var h=i.getItemGraphicEl(l[u]);c.findAndAddFrom(h),cP(h,o)}XD(n,null,t,s(t,r),e,o,a,c),c.applyMorphing()}).updateOneToMany(function(t,l){c.reset("oneToMany");var u=t.length,h=i.getItemGraphicEl(l);c.findAndAddFrom(h),cP(h,o);for(var d=0;d<u;d++)XD(n,null,t[d],s(t[d],r),e,o,a,c);c.applyMorphing()}).execute()}else i&&i.each(function(t){oP(i.getItemGraphicEl(t),e,o)}),a.each(function(t){XD(n,null,t,s(t,r),e,o,a,null)});var h=e.get("clip",!0)?qx(e.coordinateSystem,!1,e):null;h?o.setClipPath(h):o.removeClipPath(),this._data=a},t.prototype.incrementalPrepareRender=function(e,t,n){this.group.removeAll(),this._data=null},t.prototype.incrementalRender=function(e,t,n,r,i){var a=t.getData(),o=YD(t,a,n,r);function s(e){e.isGroup||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}for(var l=e.start;l<e.end;l++){XD(null,null,l,o(l,i),t,this.group,a,null).traverse(s)}},t.prototype.filterForExposedEvent=function(e,t,n,r){var i=t.element;if(null==i||n.name===i)return!0;for(;(n=n.__hostTarget||n.parent)&&n!==this.group;)if(n.name===i)return!0;return!1},t.type="custom",t}(AA);function MD(e,t,n){if(e){if("oneToOne"===t)return function(t,n){return e.getId(n)};var r=e.getDimension(n),i=e.getDimensionInfo(r);if(!i){var a="";0,Ui(a)}var o=i.ordinalMeta;return function(t,n){var i=e.get(r,n);return o&&(i=o.categories[i]),null==i||fe(i)?t+"":"_ec_"+i}}}function FD(e){var t,n=e.type;if("path"===n){var r=e.shape,i=null!=r.width&&null!=r.height?{x:r.x||0,y:r.y||0,width:r.width,height:r.height}:null,a=sP(r);t=pu(a,null,i,r.layout||"center"),AD(t).customPathData=a}else if("image"===n)t=new Ss({}),AD(t).customImagePath=e.style.image;else if("text"===n)t=new Vs({});else if("group"===n)t=new ii;else{if("compoundPath"===n)throw new Error('"compoundPath" is not supported yet.');var o=fu(n);if(!o){var s="";0,Ui(s)}t=new o}return AD(t).customGraphicType=n,t.name=e.name,t.z2EmphasisLift=1,t.z2SelectLift=1,t}function DD(e,t,n,r,i,a,o,s,l,c){var u={},h={},d=t.isGroup?null:t;!n&&LD("shape",t,null,i,u,l),RD("shape",i,h),!n&&LD("extra",t,null,i,u,l),RD("extra",i,h),!n&&ND(t,null,i,u,l),function(e,t){qD(e,t,"position"),qD(e,t,"scale"),qD(e,t,"origin"),WD(e,t,"x"),WD(e,t,"y"),WD(e,t,"scaleX"),WD(e,t,"scaleY"),WD(e,t,"originX"),WD(e,t,"originY"),WD(e,t,"rotation")}(i,h);var f=o&&o.normal.cfg;if(f&&t.setTextConfig(f),"text"===t.type&&a){var p=a;Ee(p,"textFill")&&(p.fill=p.textFill),Ee(p,"textStroke")&&(p.stroke=p.textStroke)}if(a){var A=void 0,g=lP(t)?a.decal:null;e&&g&&(g.dirty=!0,A=Sm(g,e)),a.__decalPattern=A}return!n&&UD(t,null,i,a,u,l),d&&Ee(i,"invisible")&&(d.invisible=i.invisible),n||(PD(t,h,a),OD(t,r,i,s,u,l)),Ee(i,"silent")&&(t.silent=i.silent),Ee(i,"ignore")&&(t.ignore=i.ignore),c||Ee(i,"info")&&(AD(t).info=i.info),a?t.dirty():t.markRedraw(),n?h:null}function PD(e,t,n){var r=e.isGroup?null:e;if(r&&n){var i=n.__decalPattern,a=void 0;i&&(a=n.decal,n.decal=i),r.useStyle(n),i&&(n.decal=a);for(var o=r.animators,s=0;s<o.length;s++){var l=o[s];"style"===l.targetName&&l.changeTarget(r.style)}}t&&e.attr(t)}function OD(e,t,n,r,i,a){if(i){var o=n.during;AD(e).userDuring=o;var s={dataIndex:t,isFrom:!0,during:o?Z(VD,{el:e,userDuring:o}):null};a?Cu(e,i,r,s):_u(e,i,r,s)}}function LD(e,t,n,r,i,a){var o=r[e];if(o){var s,l=t[e],c=o.enterFrom;if(a&&c){!s&&(s=i[e]={});for(var u=J(c),h=0;h<u.length;h++){s[y=u[h]]=c[y]}}if(!a&&l&&(null==n||"shape"!==e))if(o.transition){!s&&(s=i[e]={});var d=Qi(o.transition);for(h=0;h<d.length;h++){var f=l[y=d[h]];0,s[y]=f}}else if(z(r.transition,e)>=0){!s&&(s=i[e]={});var p=J(l);for(h=0;h<p.length;h++){f=l[y=p[h]];HD(o[y],f)&&(s[y]=f)}}var A=o.leaveTo;if(A){var g=jD(t),m=g[e]||(g[e]={}),v=J(A);for(h=0;h<v.length;h++){var y;m[y=v[h]]=A[y]}}}}function RD(e,t,n){var r=t[e];if(r)for(var i=n[e]={},a=J(r),o=0;o<a.length;o++){var s=a[o];i[s]=Un(r[s])}}function ND(e,t,n,r,i){var a=n.enterFrom;if(i&&a)for(var o=J(a),s=0;s<o.length;s++){0,r[p=o[s]]=a[p]}if(!i)if(t){var l=function(e,t){if(!e||e===t||e.parent===t.parent)return e;var n=BD.transform||(BD.transform=Lt([])),r=e.getComputedTransform();r?Rt(n,r):Lt(n);var i=t.parent;i&&i.getComputedTransform();return BD.originX=e.originX,BD.originY=e.originY,BD.parent=i,BD.decomposeTransform(),BD}(t,e);KD(r,"x",l),KD(r,"y",l),KD(r,"scaleX",l),KD(r,"scaleY",l),KD(r,"originX",l),KD(r,"originY",l),KD(r,"rotation",l)}else if(n.transition){var c=Qi(n.transition);for(s=0;s<c.length;s++){if("style"!==(p=c[s])&&"shape"!==p&&"extra"!==p){var u=e[p];0,r[p]=u}}}else KD(r,"x",e),KD(r,"y",e);var h=n.leaveTo;if(h){var d=jD(e),f=J(h);for(s=0;s<f.length;s++){var p;0,d[p=f[s]]=h[p]}}}function UD(e,t,n,r,i,a){if(r){var o,s=(t||e).style,l=r.enterFrom;if(a&&l){var c=J(l);!o&&(o=i.style={});for(var u=0;u<c.length;u++){o[b=c[u]]=l[b]}}if(!a&&s)if(r.transition){var h=Qi(r.transition);!o&&(o=i.style={});for(u=0;u<h.length;u++){var d=s[b=h[u]];o[b]=d}}else if(e.getAnimationStyleProps&&z(n.transition,"style")>=0){var f=e.getAnimationStyleProps(),p=f?f.style:null;if(p){!o&&(o=i.style={});var A=J(r);for(u=0;u<A.length;u++){if(p[b=A[u]]){d=s[b];o[b]=d}}}}var g=r.leaveTo;if(g){var m=J(g),v=jD(e),y=v.style||(v.style={});for(u=0;u<m.length;u++){var b;y[b=m[u]]=g[b]}}}}function HD(e,t){return $(e)?e!==t:null!=e&&isFinite(e)}function jD(e){var t=AD(e);return t.leaveToProps||(t.leaveToProps={})}var QD={},zD={setTransform:function(e,t){return QD.el[e]=t,this},getTransform:function(e){return QD.el[e]},setShape:function(e,t){return(QD.el.shape||(QD.el.shape={}))[e]=t,QD.isShapeDirty=!0,this},getShape:function(e){var t=QD.el.shape;if(t)return t[e]},setStyle:function(e,t){var n=QD.el.style;return n&&(n[e]=t,QD.isStyleDirty=!0),this},getStyle:function(e){var t=QD.el.style;if(t)return t[e]},setExtra:function(e,t){return(QD.el.extra||(QD.el.extra={}))[e]=t,this},getExtra:function(e){var t=QD.el.extra;if(t)return t[e]}};function VD(){var e=this.el;if(e){var t=AD(e).userDuring,n=this.userDuring;t===n?(QD.el=e,QD.isShapeDirty=!1,QD.isStyleDirty=!1,n(zD),QD.isShapeDirty&&e.dirtyShape&&e.dirtyShape(),QD.isStyleDirty&&e.dirtyStyle&&e.dirtyStyle()):this.el=this.userDuring=null}}function GD(e,t,n,r,i,a,o){var s=t.isGroup?null:t,l=i&&i[e].cfg;if(s){var c=s.ensureState(e);if(!1===r){var u=s.getState(e);u&&(u.style=null)}else c.style=r||null;l&&(c.textConfig=l),wl(s)}}function $D(e,t,n){var r=n===bD,i=r?t:tP(t,n),a=i?i.z2:null;null!=a&&((r?e:e.ensureState(n)).z2=a||0)}function qD(e,t,n,r){var i=e[n],a=kD[n];i&&(r?(t[a[0]]=r[a[0]],t[a[1]]=r[a[1]]):(t[a[0]]=i[0],t[a[1]]=i[1]))}function WD(e,t,n,r){null!=e[n]&&(t[n]=r?r[n]:e[n])}function KD(e,t,n){n&&(e[t]=n[t])}function YD(e,t,n,r){var i=e.get("renderItem"),a=e.coordinateSystem,o={};a&&(o=a.prepareCustoms?a.prepareCustoms(a):ED[a.type](a));for(var s,l,c=j({getWidth:r.getWidth,getHeight:r.getHeight,getZr:r.getZr,getDevicePixelRatio:r.getDevicePixelRatio,value:function(e,n){return null==n&&(n=s),t.get(t.getDimension(e||0),n)},style:function(n,r){0;null==r&&(r=s);var i=t.getItemVisual(r,"style"),a=i&&i.fill,o=i&&i.opacity,l=v(r,bD).getItemStyle();null!=a&&(l.fill=a),null!=o&&(l.opacity=o);var c={inheritColor:re(a)?a:"#000"},u=y(r,bD),h=Gu(u,null,c,!1,!0);h.text=u.getShallow("show")?Ae(e.getFormattedLabel(r,bD),Cx(t,r)):null;var d=$u(u,c,!1);return w(n,l),l=QF(l,h,d),n&&b(l,n),l.legacy=!0,l},ordinalRawValue:function(e,n){null==n&&(n=s);var r=t.getDimensionInfo(e||0);if(!r)return;var i=t.get(r.name,n),a=r&&r.ordinalMeta;return a?a.categories[i]:i},styleEmphasis:function(n,r){0;null==r&&(r=s);var i=v(r,yD).getItemStyle(),a=y(r,yD),o=Gu(a,null,null,!0,!0);o.text=a.getShallow("show")?ge(e.getFormattedLabel(r,yD),e.getFormattedLabel(r,bD),Cx(t,r)):null;var l=$u(a,null,!0);return w(n,i),i=QF(i,o,l),n&&b(i,n),i.legacy=!0,i},visual:function(e,n){if(null==n&&(n=s),Ee(mD,e)){var r=t.getItemVisual(n,"style");return r?r[mD[e]]:null}if(Ee(vD,e))return t.getItemVisual(n,e)},barLayout:function(e){if("cartesian2d"===a.type){var t=a.getBaseAxis();return function(e){var t=[],n=e.axis;if("category"===n.type){for(var r=n.getBandWidth(),i=0;i<e.count;i++)t.push(j({bandWidth:r,axisKey:"axis0",stackId:ob+i},e));var a=db(t),o=[];for(i=0;i<e.count;i++){var s=a.axis0[ob+i];s.offsetCenter=s.offset+s.width/2,o.push(s)}return o}}(j({axis:t},e))}},currentSeriesIndices:function(){return n.getCurrentSeriesIndices()},font:function(e){return Xu(e,n)}},o.api||{}),u={context:{},seriesId:e.id,seriesName:e.name,seriesIndex:e.seriesIndex,coordSys:o.coordSys,dataInsideLength:t.count(),encode:function(e){var t={};return q(e.dimensions,function(n,r){var i=e.getDimensionInfo(n);if(!i.isExtraCoord){var a=i.coordDim;(t[a]=t[a]||[])[i.coordDimIndex]=r}}),t}(e.getData())},h={},d={},f={},p={},A=0;A<wD.length;A++){var g=wD[A];f[g]=e.getModel(xD[g]),p[g]=e.getModel(_D[g])}function m(e){return e===s?l||(l=t.getItemModel(e)):t.getItemModel(e)}function v(e,n){return t.hasItemOption?e===s?h[n]||(h[n]=m(e).getModel(xD[n])):m(e).getModel(xD[n]):f[n]}function y(e,n){return t.hasItemOption?e===s?d[n]||(d[n]=m(e).getModel(_D[n])):m(e).getModel(_D[n]):p[n]}return function(e,n){return s=e,l=null,h={},d={},i&&i(j({dataIndexInside:e,dataIndex:t.getRawIndex(e),actionType:n?n.type:null},u),c)};function b(e,t){for(var n in t)Ee(t,n)&&(e[n]=t[n])}function w(e,t){e&&(e.textFill&&(t.textFill=e.textFill),e.textPosition&&(t.textPosition=e.textPosition))}}function XD(e,t,n,r,i,a,o,s){if(r)return(t=JD(e,t,n,r,i,a,!0,s))&&o.setItemGraphicEl(n,t),Ml(t,r.focus,r.blurScope),t;cP(t,a)}function JD(e,t,n,r,i,a,o,s){var l=-1;t&&ZD(t,r)&&(l=a.childrenRef().indexOf(t),t=null);var c=!t;t?t.clearStates():t=FD(r);var u=(AD(t).canMorph=r.morph&&lP(t))&&s&&s.hasFrom(),h=c&&!u;SD.normal.cfg=SD.normal.conOpt=SD.emphasis.cfg=SD.emphasis.conOpt=SD.blur.cfg=SD.blur.conOpt=SD.select.cfg=SD.select.conOpt=null,SD.isLegacy=!1,function(e,t,n,r,i,a){if(e.isGroup)return;eP(n,null,a),eP(n,yD,a);var o=a.normal.conOpt,s=a.emphasis.conOpt,l=a.blur.conOpt,c=a.select.conOpt;if(null!=o||null!=s||null!=c||null!=l){var u=e.getTextContent();if(!1===o)u&&e.removeTextContent();else{o=a.normal.conOpt=o||{type:"text"},u?u.clearStates():(u=FD(o),e.setTextContent(u));var h=o&&o.style;DD(null,u,null,t,o,h,null,r,i,!0);for(var d=0;d<wD.length;d++){var f=wD[d];if(f!==bD){var p=a[f].conOpt;GD(f,u,0,nP(o,p,f),null)}}h?u.dirty():u.markRedraw()}}}(t,n,r,i,h,SD),function(e,t,n,r,i){var a=n.clipPath;if(!1===a)e&&e.getClipPath()&&e.removeClipPath();else if(a){var o=e.getClipPath();o&&ZD(o,a)&&(o=null),o||(o=FD(a),e.setClipPath(o)),DD(null,o,null,t,a,null,null,r,i,!1)}}(t,n,r,i,h);var d=DD(e,t,u,n,r,r.style,SD,i,h,!1);u&&s.addTo(t,r,n,d);for(var f=0;f<wD.length;f++){var p=wD[f];if(p!==bD){var A=tP(r,p);GD(p,t,0,nP(r,A,p),SD)}}return function(e,t,n,r){if(!e.isGroup){var i=e,a=n.currentZ,o=n.currentZLevel;i.z=a,i.zlevel=o;var s=t.z2;null!=s&&(i.z2=s||0);for(var l=0;l<wD.length;l++)$D(i,t,wD[l])}}(t,r,i),"group"===r.type&&function(e,t,n,r,i,a){var o=r.children,s=o?o.length:0,l=r.$mergeChildren,c="byName"===l||r.diffChildrenByName,u=!1===l;if(!s&&!c&&!u)return;if(c)return h={api:e,oldChildren:t.children()||[],newChildren:o||[],dataIndex:n,seriesModel:i,group:t,morphPreparation:a},void new oy(h.oldChildren,h.newChildren,rP,rP,h).add(iP).update(iP).remove(aP).execute();var h;u&&t.removeAll();for(var d=0;d<s;d++)o[d]&&JD(e,t.childAt(d),n,o[d],i,t,!1,a);for(var f=t.childCount()-1;f>=d;f--)oP(t.childAt(f),i,t)}(e,t,n,r,i,s),l>=0?a.replaceAt(t,l):a.add(t),t}function ZD(e,t){var n,r=AD(e),i=t.type,a=t.shape,o=t.style;return null!=i&&i!==r.customGraphicType||"path"===i&&((n=a)&&(Ee(n,"pathData")||Ee(n,"d")))&&sP(a)!==r.customPathData||"image"===i&&Ee(o,"image")&&o.image!==r.customImagePath}function eP(e,t,n){var r=t?tP(e,t):e,i=t?nP(e,r,yD):e.style,a=e.type,o=r?r.textConfig:null,s=e.textContent,l=s?t?tP(s,t):s:null;if(i&&(n.isLegacy||UF(i,a,!!o,!!l))){n.isLegacy=!0;var c=HF(i,a,!t);!o&&c.textConfig&&(o=c.textConfig),!l&&c.textContent&&(l=c.textContent)}if(!t&&l){var u=l;!u.type&&(u.type="text")}var h=t?n[t]:n.normal;h.cfg=o,h.conOpt=l}function tP(e,t){return t?e?e[t]:null:e}function nP(e,t,n){var r=t&&t.style;return null==r&&n===yD&&e&&(r=e.styleEmphasis),r}function rP(e,t){var n=e&&e.name;return null!=n?n:CD+t}function iP(e,t){var n=this.context,r=null!=e?n.newChildren[e]:null,i=null!=t?n.oldChildren[t]:null;JD(n.api,i,n.dataIndex,r,n.seriesModel,n.group,0,n.morphPreparation)}function aP(e){var t=this.context;oP(t.oldChildren[e],t.seriesModel,t.group)}function oP(e,t,n){if(e){var r=AD(e).leaveToProps;r?_u(e,r,t,{cb:function(){n.remove(e)}}):n.remove(e)}}function sP(e){return e&&(e.pathData||e.d)}function lP(e){return e&&e instanceof vs}function cP(e,t){e&&t.remove(e)}var uP=function(){function e(e,t){this._fromList=[],this._toList=[],this._toElOptionList=[],this._allPropsFinalList=[],this._toDataIndices=[],this._morphConfigList=[],this._seriesModel=e,this._transOpt=t}return e.prototype.hasFrom=function(){return!!this._fromList.length},e.prototype.findAndAddFrom=function(e){if(e&&(AD(e).canMorph&&this._fromList.push(e),e.isGroup))for(var t=e.childrenRef(),n=0;n<t.length;n++)this.findAndAddFrom(t[n])},e.prototype.addTo=function(e,t,n,r){e&&(this._toList.push(e),this._toElOptionList.push(t),this._toDataIndices.push(n),this._allPropsFinalList.push(r))},e.prototype.applyMorphing=function(){var e=this._type,t=this._fromList,n=this._toList.length,r=t.length;if(r&&n)if("oneToOne"===e)for(var i=0;i<n;i++)this._oneToOneForSingleTo(i,i);else if("manyToOne"===e)for(var a=Math.max(1,Math.floor(r/n)),o=(i=0,0);i<n;i++,o+=a){var s=i+1>=n?r-o:a;this._manyToOneForSingleTo(i,o>=r?null:o,s)}else if("oneToMany"===e)for(var l=Math.max(1,Math.floor(n/r)),c=0,u=0;c<n;c+=l,u++){var h=c+l>=n?n-c:l;this._oneToManyForSingleFrom(c,h,u>=r?null:u)}},e.prototype._oneToOneForSingleTo=function(e,t){var n,r=this._toList[e],i=this._toElOptionList[e],a=this._toDataIndices[e],o=this._allPropsFinalList[e],s=this._fromList[t],l=this._getOrCreateMorphConfig(a),c=l.duration;if(s&&oD(s)){if(PD(r,o,i.style),c){var u=sD([s],r,l,hP);this._processResultIndividuals(u,e,null)}}else{var h=c&&s&&(s!==r||(aD(n=s)||oD(n)))?s:null,d={};LD("shape",r,h,i,d,!1),LD("extra",r,h,i,d,!1),ND(r,h,i,d,!1),UD(r,h,i,i.style,d,!1),PD(r,o,i.style),h&&nD(h,r,l),OD(r,a,i,this._seriesModel,d,!1)}},e.prototype._manyToOneForSingleTo=function(e,t,n){var r=this._toList[e],i=this._toElOptionList[e];PD(r,this._allPropsFinalList[e],i.style);var a=this._getOrCreateMorphConfig(this._toDataIndices[e]);if(a.duration&&null!=t){for(var o=[],s=t;s<n;s++)o.push(this._fromList[s]);var l=sD(o,r,a,hP);this._processResultIndividuals(l,e,null)}},e.prototype._oneToManyForSingleFrom=function(e,t,n){for(var r=null==n?null:this._fromList[n],i=this._toList,a=[],o=e;o<t;o++){var s=i[o];PD(s,this._allPropsFinalList[o],this._toElOptionList[o].style),a.push(s)}var l=this._getOrCreateMorphConfig(this._toDataIndices[e]);if(l.duration&&r){var c=function(e,t,n,r){var i,a=t.length,o=n?n.dividingMethod:null,s=!1;if(oD(e)){var l=e.__combiningSubList;l.length===a?i=l:(i=fD(e,a,o),s=!0)}else i=fD(e,a,o),s=!0;ye(i.length===a);for(var c=0;c<a;c++)s&&r&&r(e,i[c],!1),nD(i[c],t[c],n);return{fromIndividuals:i,toIndividuals:t,count:a}}(r,a,l,hP);this._processResultIndividuals(c,e,t)}},e.prototype._processResultIndividuals=function(e,t,n){for(var r=null!=n,i=0;i<e.count;i++){var a=e.fromIndividuals[i],o=e.toIndividuals[i],s=t+(r?i:0),l=this._toElOptionList[s],c=this._toDataIndices[s],u={};ND(o,a,l,u,!1),UD(o,a,l,l.style,u,!1),OD(o,c,l,this._seriesModel,u,!1)}},e.prototype._getOrCreateMorphConfig=function(e){var t,n,r,i=this._morphConfigList,a=i[e];if(a)return a;var o=this._seriesModel,s=this._transOpt;if(o.isAnimationEnabled()){var l=void 0;if(o&&o.ecModel){var c=o.ecModel.getUpdatePayload();l=c&&c.animation}if(l)t=l.duration||0,n=l.easing||"cubicOut",r=l.delay||0;else{n=o.get("animationEasingUpdate");var u=o.get("animationDelayUpdate");r=ne(u)?u(e):u;var h=o.get("animationDurationUpdate");t=ne(h)?h(e):h}}return a={duration:t||0,delay:r,easing:n,dividingMethod:s?s.dividingMethod:null},i[e]=a,a},e.prototype.reset=function(e){this._type=e,this._fromList.length=this._toList.length=this._toElOptionList.length=this._allPropsFinalList.length=this._toDataIndices.length=0},e}();function hP(e,t,n){t.style=n?R(e.style):e.style,t.zlevel=e.zlevel,t.z=e.z,t.z2=e.z2}var dP=Zi(),fP=R,pP=Z;function AP(e,t,n,r){(function e(t,n){if(oe(t)&&oe(n)){var r=!0;return q(n,function(n,i){r=r&&e(t[i],n)}),!!r}return t===n})(dP(n).lastProp,r)||(dP(n).lastProp=r,t?_u(n,r,e):(n.stopAnimation(),n.attr(r)))}function gP(e,t){e[t.get(["label","show"])?"show":"hide"]()}function mP(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function vP(e,t,n){var r=t.get("z"),i=t.get("zlevel");e&&e.traverse(function(e){"group"!==e.type&&(null!=r&&(e.z=r),null!=i&&(e.zlevel=i),e.silent=n)})}var yP=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(e,t,n,r){var i=t.get("value"),a=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=n,r||this._lastValue!==i||this._lastStatus!==a){this._lastValue=i,this._lastStatus=a;var o=this._group,s=this._handle;if(!a||"hide"===a)return o&&o.hide(),void(s&&s.hide());o&&o.show(),s&&s.show();var l={};this.makeElOption(l,i,e,t,n);var c=l.graphicKey;c!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=c;var u=this._moveAnimation=this.determineAnimation(e,t);if(o){var h=ee(AP,t,u);this.updatePointerEl(o,l,h),this.updateLabelEl(o,l,h,t)}else o=this._group=new ii,this.createPointerEl(o,l,e,t),this.createLabelEl(o,l,e,t),n.getZr().add(o);vP(o,t,!0),this._renderHandle(i)}},e.prototype.remove=function(e){this.clear(e)},e.prototype.dispose=function(e){this.clear(e)},e.prototype.determineAnimation=function(e,t){var n=t.get("animation"),r=e.axis,i="category"===r.type,a=t.get("snap");if(!a&&!i)return!1;if("auto"===n||null==n){var o=this.animationThreshold;if(i&&r.getBandWidth()>o)return!0;if(a){var s=SC(e).seriesDataCount,l=r.getExtent();return Math.abs(l[0]-l[1])/s>o}return!1}return!0===n},e.prototype.makeElOption=function(e,t,n,r,i){},e.prototype.createPointerEl=function(e,t,n,r){var i=t.pointer;if(i){var a=dP(e).pointerEl=new l[i.type](fP(t.pointer));e.add(a)}},e.prototype.createLabelEl=function(e,t,n,r){if(t.label){var i=dP(e).labelEl=new Vs(fP(t.label));e.add(i),gP(i,r)}},e.prototype.updatePointerEl=function(e,t,n){var r=dP(e).pointerEl;r&&t.pointer&&(r.setStyle(t.pointer.style),n(r,{shape:t.pointer.shape}))},e.prototype.updateLabelEl=function(e,t,n,r){var i=dP(e).labelEl;i&&(i.setStyle(t.label.style),n(i,{x:t.label.x,y:t.label.y}),gP(i,r))},e.prototype._renderHandle=function(e){if(!this._dragging&&this.updateHandleTransform){var t,n=this._axisPointerModel,r=this._api.getZr(),i=this._handle,a=n.getModel("handle"),o=n.get("status");if(!a.get("show")||!o||"hide"===o)return i&&r.remove(i),void(this._handle=null);this._handle||(t=!0,i=this._handle=Lu(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(e){wt(e.event)},onmousedown:pP(this._onHandleDragMove,this,0,0),drift:pP(this._onHandleDragMove,this),ondragend:pP(this._onHandleDragEnd,this)}),r.add(i)),vP(i,n,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=a.get("size");te(s)||(s=[s,s]),i.scaleX=s[0]/2,i.scaleY=s[1]/2,bA(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,t)}},e.prototype._moveHandleToValue=function(e,t){AP(this._axisPointerModel,!t&&this._moveAnimation,this._handle,mP(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(e,t){var n=this._handle;if(n){this._dragging=!0;var r=this.updateHandleTransform(mP(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr(mP(r)),dP(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){if(this._handle){var e=this._payloadInfo,t=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:t.axis.dim,axisIndex:t.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),n=this._group,r=this._handle;t&&n&&(this._lastGraphicKey=null,n&&t.remove(n),r&&t.remove(r),this._group=null,this._handle=null,this._payloadInfo=null)},e.prototype.doClear=function(){},e.prototype.buildLabel=function(e,t,n){return{x:e[n=n||0],y:e[1-n],width:t[n],height:t[1-n]}},e}();function bP(e){var t,n=e.get("type"),r=e.getModel(n+"Style");return"line"===n?(t=r.getLineStyle()).fill=null:"shadow"===n&&((t=r.getAreaStyle()).stroke=null),t}function wP(e,t,n,r,i){var a=xP(n.get("value"),t.axis,t.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),o=n.getModel("label"),s=td(o.get("padding")||0),l=o.getFont(),c=sr(a,l),u=i.position,h=c.width+s[1]+s[3],d=c.height+s[0]+s[2],f=i.align;"right"===f&&(u[0]-=h),"center"===f&&(u[0]-=h/2);var p=i.verticalAlign;"bottom"===p&&(u[1]-=d),"middle"===p&&(u[1]-=d/2),function(e,t,n,r){var i=r.getWidth(),a=r.getHeight();e[0]=Math.min(e[0]+t,i)-t,e[1]=Math.min(e[1]+n,a)-n,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}(u,h,d,r);var A=o.get("backgroundColor");A&&"auto"!==A||(A=t.get(["axisLine","lineStyle","color"])),e.label={x:u[0],y:u[1],style:Gu(o,{text:a,font:l,fill:o.getTextColor(),padding:s,backgroundColor:A}),z2:10}}function xP(e,t,n,r,i){e=t.scale.parse(e);var a=t.scale.getLabel({value:e},{precision:i.precision}),o=i.formatter;if(o){var s={value:Wb(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};q(r,function(e){var t=n.getSeriesByIndex(e.seriesIndex),r=e.dataIndexInside,i=t&&t.getDataParams(r);i&&s.seriesData.push(i)}),re(o)?a=o.replace("{value}",a):ne(o)&&(a=o(s))}return a}function _P(e,t,n){var r=[1,0,0,1,0,0];return Ht(r,r,n.rotation),Ut(r,r,n.position),Iu([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function CP(e,t,n,r,i,a){var o=xC.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get(["label","margin"]),wP(t,r,i,a,{position:_P(r.axis,e,n),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function SP(e,t,n){return{x1:e[n=n||0],y1:e[1-n],x2:t[n],y2:t[1-n]}}function kP(e,t,n){return{x:e[n=n||0],y:e[1-n],width:t[n],height:t[1-n]}}function BP(e,t,n,r,i,a){return{cx:e,cy:t,r0:n,r:r,startAngle:i,endAngle:a,clockwise:!0}}var EP=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return g(t,e),t.prototype.makeElOption=function(e,t,n,r,i){var a=n.axis,o=a.grid,s=r.get("type"),l=TP(o,a).getOtherAxis(a).getGlobalExtent(),c=a.toGlobalCoord(a.dataToCoord(t,!0));if(s&&"none"!==s){var u=bP(r),h=IP[s](a,c,l);h.style=u,e.graphicKey=h.type,e.pointer=h}CP(t,e,lC(o.model,n),n,r,i)},t.prototype.getHandleTransform=function(e,t,n){var r=lC(t.axis.grid.model,t,{labelInside:!1});r.labelMargin=n.get(["handle","margin"]);var i=_P(t.axis,e,r);return{x:i[0],y:i[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,r){var i=n.axis,a=i.grid,o=i.getGlobalExtent(!0),s=TP(a,i).getOtherAxis(i).getGlobalExtent(),l="x"===i.dim?0:1,c=[e.x,e.y];c[l]+=t[l],c[l]=Math.min(o[1],c[l]),c[l]=Math.max(o[0],c[l]);var u=(s[1]+s[0])/2,h=[u,u];h[l]=c[l];return{x:c[0],y:c[1],rotation:e.rotation,cursorPoint:h,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][l]}},t}(yP);function TP(e,t){var n={};return n[t.dim+"AxisIndex"]=t.index,e.getCartesian(n)}var IP={line:function(e,t,n){return{type:"Line",subPixelOptimize:!0,shape:SP([t,n[0]],[t,n[1]],MP(e))}},shadow:function(e,t,n){var r=Math.max(1,e.getBandWidth()),i=n[1]-n[0];return{type:"Rect",shape:kP([t-r/2,n[0]],[r,i],MP(e))}}};function MP(e){return"x"===e.dim?0:1}var FP=EP,DP=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.type="axisPointer",t.defaultOption={show:"auto",zlevel:0,z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t}(Bd),PP=Zi(),OP=q;function LP(e,t,n){if(!w.node){var r=t.getZr();PP(r).records||(PP(r).records={}),function(e,t){if(PP(e).initialized)return;function n(n,r){e.on(n,function(n){var i=function(e){var t={showTip:[],hideTip:[]},n=function(r){var i=t[r.type];i?i.push(r):(r.dispatchAction=n,e.dispatchAction(r))};return{dispatchAction:n,pendings:t}}(t);OP(PP(e).records,function(e){e&&r(e,n,i.dispatchAction)}),function(e,t){var n,r=e.showTip.length,i=e.hideTip.length;r?n=e.showTip[r-1]:i&&(n=e.hideTip[i-1]);n&&(n.dispatchAction=null,t.dispatchAction(n))}(i.pendings,t)})}PP(e).initialized=!0,n("click",ee(NP,"click")),n("mousemove",ee(NP,"mousemove")),n("globalout",RP)}(r,t),(PP(r).records[e]||(PP(r).records[e]={})).handler=n}}function RP(e,t,n){e.handler("leave",null,n)}function NP(e,t,n,r){t.handler(e,n,r)}function UP(e,t){if(!w.node){var n=t.getZr();(PP(n).records||{})[e]&&(PP(n).records[e]=null)}}var HP=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.prototype.render=function(e,t,n){var r=t.getComponent("tooltip"),i=e.get("triggerOn")||r&&r.get("triggerOn")||"mousemove|click";LP("axisPointer",n,function(e,t,n){"none"!==i&&("leave"===e||i.indexOf(e)>=0)&&n({type:"updateAxisPointer",currTrigger:e,x:t&&t.offsetX,y:t&&t.offsetY})})},t.prototype.remove=function(e,t){UP("axisPointer",t)},t.prototype.dispose=function(e,t){UP("axisPointer",t)},t.type="axisPointer",t}(aA);function jP(e,t){var n,r=[],i=e.seriesIndex;if(null==i||!(n=t.getSeriesByIndex(i)))return{point:[]};var a=n.getData(),o=Ji(a,e);if(null==o||o<0||te(o))return{point:[]};var s=a.getItemGraphicEl(o),l=n.coordinateSystem;if(n.getTooltipPosition)r=n.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(e.isStacked){var c=l.getBaseAxis(),u=l.getOtherAxis(c).dim,h=c.dim,d="x"===u||"radius"===u?1:0,f=a.mapDimension(h),p=[];p[d]=a.get(f,o),p[1-d]=a.get(a.getCalculationInfo("stackResultDimension"),o),r=l.dataToPoint(p)||[]}else r=l.dataToPoint(a.getValues(W(l.dimensions,function(e){return a.mapDimension(e)}),o))||[];else if(s){var A=s.getBoundingRect().clone();A.applyTransform(s.transform),r=[A.x+A.width/2,A.y+A.height/2]}return{point:r,el:s}}var QP=Zi();function zP(e,t,n){var r=e.currTrigger,i=[e.x,e.y],a=e,o=e.dispatchAction||Z(n.dispatchAction,n),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){WP(i)&&(i=jP({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var l=WP(i),c=a.axesInfo,u=s.axesInfo,h="leave"===r||WP(i),d={},f={},p={list:[],map:{}},A={showPointer:ee(GP,f),showTooltip:ee($P,p)};q(s.coordSysMap,function(e,t){var n=l||e.containPoint(i);q(s.coordSysAxesInfo[t],function(e,t){var r=e.axis,a=function(e,t){for(var n=0;n<(e||[]).length;n++){var r=e[n];if(t.axis.dim===r.axisDim&&t.axis.model.componentIndex===r.axisIndex)return r}}(c,e);if(!h&&n&&(!c||a)){var o=a&&a.value;null!=o||l||(o=r.pointToData(i)),null!=o&&VP(e,o,A,!1,d)}})});var g={};return q(u,function(e,t){var n=e.linkGroup;n&&!f[t]&&q(n.axesInfo,function(t,r){var i=f[r];if(t!==e&&i){var a=i.value;n.mapper&&(a=e.axis.scale.parse(n.mapper(a,qP(t),qP(e)))),g[e.key]=a}})}),q(g,function(e,t){VP(u[t],e,A,!0,d)}),function(e,t,n){var r=n.axesInfo=[];q(t,function(t,n){var i=t.axisPointerModel.option,a=e[n];a?(!t.useHandle&&(i.status="show"),i.value=a.value,i.seriesDataIndices=(a.payloadBatch||[]).slice()):!t.useHandle&&(i.status="hide"),"show"===i.status&&r.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:i.value})})}(f,u,d),function(e,t,n,r){if(WP(t)||!e.list.length)return void r({type:"hideTip"});var i=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:e.list})}(p,i,e,o),function(e,t,n){var r=n.getZr(),i=QP(r).axisPointerLastHighlights||{},a=QP(r).axisPointerLastHighlights={};q(e,function(e,t){var n=e.axisPointerModel.option;"show"===n.status&&q(n.seriesDataIndices,function(e){var t=e.seriesIndex+" | "+e.dataIndex;a[t]=e})});var o=[],s=[];q(i,function(e,t){!a[t]&&s.push(e)}),q(a,function(e,t){!i[t]&&o.push(e)}),s.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:s}),o.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:o})}(u,0,n),d}}function VP(e,t,n,r,i){var a=e.axis;if(!a.scale.isBlank()&&a.containData(t))if(e.involveSeries){var o=function(e,t){var n=t.axis,r=n.dim,i=e,a=[],o=Number.MAX_VALUE,s=-1;return q(t.seriesModels,function(t,l){var c,u,h=t.getData().mapDimensionsAll(r);if(t.getAxisTooltipData){var d=t.getAxisTooltipData(h,e,n);u=d.dataIndices,c=d.nestestValue}else{if(!(u=t.getData().indicesOfNearest(h[0],e,"category"===n.type?.5:null)).length)return;c=t.getData().get(h[0],u[0])}if(null!=c&&isFinite(c)){var f=e-c,p=Math.abs(f);p<=o&&((p<o||f>=0&&s<0)&&(o=p,s=f,i=c,a.length=0),q(u,function(e){a.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})}))}}),{payloadBatch:a,snapToValue:i}}(t,e),s=o.payloadBatch,l=o.snapToValue;s[0]&&null==i.seriesIndex&&H(i,s[0]),!r&&e.snap&&a.containData(l)&&null!=l&&(t=l),n.showPointer(e,t,s),n.showTooltip(e,o,l)}else n.showPointer(e,t)}function GP(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function $P(e,t,n,r){var i=n.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(t.triggerTooltip&&i.length){var l=t.coordSys.model,c=BC(l),u=e.map[c];u||(u=e.map[c]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},e.list.push(u)),u.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:r,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function qP(e){var t=e.axis.model,n={},r=n.axisDim=e.axis.dim;return n.axisIndex=n[r+"AxisIndex"]=t.componentIndex,n.axisName=n[r+"AxisName"]=t.name,n.axisId=n[r+"AxisId"]=t.id,n}function WP(e){return!e||null==e[0]||isNaN(e[0])||null==e[1]||isNaN(e[1])}function KP(e){TC.registerAxisPointerClass("CartesianAxisPointer",FP),e.registerComponentModel(DP),e.registerComponentView(HP),e.registerPreprocessor(function(e){if(e){(!e.axisPointer||0===e.axisPointer.length)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!te(t)&&(e.axisPointer.link=[t])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=_C(e,t)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},zP)}var YP=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return g(t,e),t.prototype.makeElOption=function(e,t,n,r,i){var a=n.axis;"angle"===a.dim&&(this.animationThreshold=Math.PI/18);var o=a.polar,s=o.getOtherAxis(a).getExtent(),l=a.dataToCoord(t),c=r.get("type");if(c&&"none"!==c){var u=bP(r),h=XP[c](a,o,l,s);h.style=u,e.graphicKey=h.type,e.pointer=h}wP(e,n,r,i,function(e,t,n,r,i){var a=t.axis,o=a.dataToCoord(e),s=r.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l,c,u,h=r.getRadiusAxis().getExtent();if("radius"===a.dim){var d=[1,0,0,1,0,0];Ht(d,d,s),Ut(d,d,[r.cx,r.cy]),l=Iu([o,-i],d);var f=t.getModel("axisLabel").get("rotate")||0,p=xC.innerTextLayout(s,f*Math.PI/180,-1);c=p.textAlign,u=p.textVerticalAlign}else{var A=h[1];l=r.coordToPoint([A+i,o]);var g=r.cx,m=r.cy;c=Math.abs(l[0]-g)/A<.3?"center":l[0]>g?"left":"right",u=Math.abs(l[1]-m)/A<.3?"middle":l[1]>m?"top":"bottom"}return{position:l,align:c,verticalAlign:u}}(t,n,0,o,r.get(["label","margin"])))},t}(yP);var XP={line:function(e,t,n,r){return"angle"===e.dim?{type:"Line",shape:SP(t.coordToPoint([r[0],n]),t.coordToPoint([r[1],n]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r:n}}},shadow:function(e,t,n,r){var i=Math.max(1,e.getBandWidth()),a=Math.PI/180;return"angle"===e.dim?{type:"Sector",shape:BP(t.cx,t.cy,r[0],r[1],(-n-i/2)*a,(i/2-n)*a)}:{type:"Sector",shape:BP(t.cx,t.cy,n-i/2,n+i/2,0,2*Math.PI)}}},JP=YP,ZP=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.prototype.findAxisModel=function(e){var t;return this.ecModel.eachComponent(e,function(e){e.getCoordSysModel()===this&&(t=e)},this),t},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={zlevel:0,z:0,center:["50%","50%"],radius:"80%"},t}(Bd),eO=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return g(t,e),t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",na).models[0]},t.type="polarAxis",t}(Bd);G(eO,Jb);var tO=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.type="angleAxis",t}(eO),nO=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.type="radiusAxis",t}(eO),rO=function(e){function t(t,n){return e.call(this,"radius",t,n)||this}return g(t,e),t.prototype.pointToData=function(e,t){return this.polar.pointToData(e,t)["radius"===this.dim?0:1]},t}(ww);rO.prototype.dataToRadius=ww.prototype.dataToCoord,rO.prototype.radiusToData=ww.prototype.coordToData;var iO=rO,aO=Zi(),oO=function(e){function t(t,n){return e.call(this,"angle",t,n||[0,360])||this}return g(t,e),t.prototype.pointToData=function(e,t){return this.polar.pointToData(e,t)["radius"===this.dim?0:1]},t.prototype.calculateCategoryInterval=function(){var e=this.getLabelModel(),t=this.scale,n=t.getExtent(),r=t.count();if(n[1]-n[0]<1)return 0;var i=n[0],a=this.dataToCoord(i+1)-this.dataToCoord(i),o=Math.abs(a),s=sr(null==i?"":i+"",e.getFont(),"center","top"),l=Math.max(s.height,7)/o;isNaN(l)&&(l=1/0);var c=Math.max(0,Math.floor(l)),u=aO(this.model),h=u.lastAutoInterval,d=u.lastTickCount;return null!=h&&null!=d&&Math.abs(h-c)<=1&&Math.abs(d-r)<=1&&h>c?c=h:(u.lastTickCount=r,u.lastAutoInterval=c),c},t}(ww);oO.prototype.dataToAngle=ww.prototype.dataToCoord,oO.prototype.angleToData=ww.prototype.coordToData;var sO=oO;function lO(e){var t=e.seriesModel,n=e.polarModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}var cO=function(){function e(e){this.dimensions=["radius","angle"],this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new iO,this._angleAxis=new sO,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return e.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},e.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},e.prototype.getAxis=function(e){return this["_"+e+"Axis"]},e.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},e.prototype.getAxesByScale=function(e){var t=[],n=this._angleAxis,r=this._radiusAxis;return n.scale.type===e&&t.push(n),r.scale.type===e&&t.push(r),t},e.prototype.getAngleAxis=function(){return this._angleAxis},e.prototype.getRadiusAxis=function(){return this._radiusAxis},e.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},e.prototype.getTooltipAxes=function(e){var t=null!=e&&"auto"!==e?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},e.prototype.dataToPoint=function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},e.prototype.pointToData=function(e,t){var n=this.pointToCoord(e);return[this._radiusAxis.radiusToData(n[0],t),this._angleAxis.angleToData(n[1],t)]},e.prototype.pointToCoord=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,r=this.getAngleAxis(),i=r.getExtent(),a=Math.min(i[0],i[1]),o=Math.max(i[0],i[1]);r.inverse?a=o-360:o=a+360;var s=Math.sqrt(t*t+n*n);t/=s,n/=s;for(var l=Math.atan2(-n,t)/Math.PI*180,c=l<a?1:-1;l<a||l>o;)l+=360*c;return[s,l]},e.prototype.coordToPoint=function(e){var t=e[0],n=e[1]/180*Math.PI;return[Math.cos(n)*t+this.cx,-Math.sin(n)*t+this.cy]},e.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis().getExtent().slice();t[0]>t[1]&&t.reverse();var n=e.getExtent(),r=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:t[0],r:t[1],startAngle:-n[0]*r,endAngle:-n[1]*r,clockwise:e.inverse,contain:function(e,t){var n=e-this.cx,r=t-this.cy,i=n*n+r*r,a=this.r,o=this.r0;return i<=a*a&&i>=o*o}}},e.prototype.convertToPixel=function(e,t,n){return lO(t)===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){return lO(t)===this?this.pointToData(n):null},e}();function uO(e,t){var n=this,r=n.getAngleAxis(),i=n.getRadiusAxis();if(r.scale.setExtent(1/0,-1/0),i.scale.setExtent(1/0,-1/0),e.eachSeries(function(e){if(e.coordinateSystem===n){var t=e.getData();q(Xb(t,"radius"),function(e){i.scale.unionExtentFromData(t,e)}),q(Xb(t,"angle"),function(e){r.scale.unionExtentFromData(t,e)})}}),Gb(r.scale,r.model),Gb(i.scale,i.model),"category"===r.type&&!r.onBand){var a=r.getExtent(),o=360/r.scale.count();r.inverse?a[1]+=o:a[1]-=o,r.setExtent(a[0],a[1])}}function hO(e,t){if(e.type=t.get("type"),e.scale=$b(t),e.onBand=t.get("boundaryGap")&&"category"===e.type,e.inverse=t.get("inverse"),function(e){return"angleAxis"===e.mainType}(t)){e.inverse=e.inverse!==t.get("clockwise");var n=t.get("startAngle");e.setExtent(n,n+(e.inverse?-360:360))}t.axis=e,e.model=t}var dO={dimensions:cO.prototype.dimensions,create:function(e,t){var n=[];return e.eachComponent("polar",function(e,r){var i=new cO(r+"");i.update=uO;var a=i.getRadiusAxis(),o=i.getAngleAxis(),s=e.findAxisModel("radiusAxis"),l=e.findAxisModel("angleAxis");hO(a,s),hO(o,l),function(e,t,n){var r=t.get("center"),i=n.getWidth(),a=n.getHeight();e.cx=mi(r[0],i),e.cy=mi(r[1],a);var o=e.getRadiusAxis(),s=Math.min(i,a)/2,l=t.get("radius");null==l?l=[0,"100%"]:te(l)||(l=[0,l]);var c=[mi(l[0],s),mi(l[1],s)];o.inverse?o.setExtent(c[1],c[0]):o.setExtent(c[0],c[1])}(i,e,t),n.push(i),e.coordinateSystem=i,i.model=e}),e.eachSeries(function(e){if("polar"===e.get("coordinateSystem")){var t=e.getReferringComponents("polar",na).models[0];0,e.coordinateSystem=t.coordinateSystem}}),n}},fO=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function pO(e,t,n){t[1]>t[0]&&(t=t.slice().reverse());var r=e.coordToPoint([t[0],n]),i=e.coordToPoint([t[1],n]);return{x1:r[0],y1:r[1],x2:i[0],y2:i[1]}}function AO(e){return e.getRadiusAxis().inverse?0:1}function gO(e){var t=e[0],n=e[e.length-1];t&&n&&Math.abs(Math.abs(t.coord-n.coord)-360)<1e-4&&e.pop()}var mO=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="PolarAxisPointer",n}return g(t,e),t.prototype.render=function(e,t){if(this.group.removeAll(),e.get("show")){var n=e.axis,r=n.polar,i=r.getRadiusAxis().getExtent(),a=n.getTicksCoords(),o=n.getMinorTicksCoords(),s=W(n.getViewLabels(),function(e){e=R(e);var t=n.scale,r="ordinal"===t.type?t.getRawOrdinalNumber(e.tickValue):e.tickValue;return e.coord=n.dataToCoord(r),e});gO(s),gO(a),q(fO,function(t){!e.get([t,"show"])||n.scale.isBlank()&&"axisLine"!==t||vO[t](this.group,e,r,a,o,i,s)},this)}},t.type="angleAxis",t}(TC),vO={axisLine:function(e,t,n,r,i,a){var o,s=t.getModel(["axisLine","lineStyle"]),l=AO(n),c=l?0:1;(o=0===a[c]?new oc({shape:{cx:n.cx,cy:n.cy,r:a[l]},style:s.getLineStyle(),z2:1,silent:!0}):new Ec({shape:{cx:n.cx,cy:n.cy,r:a[l],r0:a[c]},style:s.getLineStyle(),z2:1,silent:!0})).style.fill=null,e.add(o)},axisTick:function(e,t,n,r,i,a){var o=t.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=a[AO(n)],c=W(r,function(e){return new Hc({shape:pO(n,[l,l+s],e.coord)})});e.add(mu(c,{style:j(o.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(e,t,n,r,i,a){if(i.length){for(var o=t.getModel("axisTick"),s=t.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),c=a[AO(n)],u=[],h=0;h<i.length;h++)for(var d=0;d<i[h].length;d++)u.push(new Hc({shape:pO(n,[c,c+l],i[h][d].coord)}));e.add(mu(u,{style:j(s.getModel("lineStyle").getLineStyle(),j(o.getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(e,t,n,r,i,a,o){var s=t.getCategories(!0),l=t.getModel("axisLabel"),c=l.get("margin"),u=t.get("triggerEvent");q(o,function(r,i){var o=l,h=r.tickValue,d=a[AO(n)],f=n.coordToPoint([d+c,r.coord]),p=n.cx,A=n.cy,g=Math.abs(f[0]-p)/d<.3?"center":f[0]>p?"left":"right",m=Math.abs(f[1]-A)/d<.3?"middle":f[1]>A?"top":"bottom";if(s&&s[h]){var v=s[h];oe(v)&&v.textStyle&&(o=new fh(v.textStyle,l,l.ecModel))}var y=new Vs({silent:xC.isLabelSilent(t),style:Gu(o,{x:f[0],y:f[1],fill:o.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:r.formattedLabel,align:g,verticalAlign:m})});if(e.add(y),u){var b=xC.makeAxisEventDataBase(t);b.targetType="axisLabel",b.value=r.rawLabel,Gs(y).eventData=b}},this)},splitLine:function(e,t,n,r,i,a){var o=t.getModel("splitLine").getModel("lineStyle"),s=o.get("color"),l=0;s=s instanceof Array?s:[s];for(var c=[],u=0;u<r.length;u++){var h=l++%s.length;c[h]=c[h]||[],c[h].push(new Hc({shape:pO(n,a,r[u].coord)}))}for(u=0;u<c.length;u++)e.add(mu(c[u],{style:j({stroke:s[u%s.length]},o.getLineStyle()),silent:!0,z:t.get("z")}))},minorSplitLine:function(e,t,n,r,i,a){if(i.length){for(var o=t.getModel("minorSplitLine").getModel("lineStyle"),s=[],l=0;l<i.length;l++)for(var c=0;c<i[l].length;c++)s.push(new Hc({shape:pO(n,a,i[l][c].coord)}));e.add(mu(s,{style:o.getLineStyle(),silent:!0,z:t.get("z")}))}},splitArea:function(e,t,n,r,i,a){if(r.length){var o=t.getModel("splitArea").getModel("areaStyle"),s=o.get("color"),l=0;s=s instanceof Array?s:[s];for(var c=[],u=Math.PI/180,h=-r[0].coord*u,d=Math.min(a[0],a[1]),f=Math.max(a[0],a[1]),p=t.get("clockwise"),A=1,g=r.length;A<=g;A++){var m=A===g?r[0].coord:r[A].coord,v=l++%s.length;c[v]=c[v]||[],c[v].push(new Sc({shape:{cx:n.cx,cy:n.cy,r0:d,r:f,startAngle:h,endAngle:-m*u,clockwise:p},silent:!0})),h=-m*u}for(A=0;A<c.length;A++)e.add(mu(c[A],{style:j({fill:s[A%s.length]},o.getAreaStyle()),silent:!0}))}}},yO=mO,bO=["axisLine","axisTickLabel","axisName"],wO=["splitLine","splitArea","minorSplitLine"],xO=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="PolarAxisPointer",n}return g(t,e),t.prototype.render=function(e,t){if(this.group.removeAll(),e.get("show")){var n=this._axisGroup,r=this._axisGroup=new ii;this.group.add(r);var i=e.axis,a=i.polar,o=a.getAngleAxis(),s=i.getTicksCoords(),l=i.getMinorTicksCoords(),c=o.getExtent()[0],u=i.getExtent(),h=function(e,t,n){return{position:[e.cx,e.cy],rotation:n/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:t.getModel("axisLabel").get("rotate"),z2:1}}(a,e,c),d=new xC(e,h);q(bO,d.add,d),r.add(d.getGroup()),Du(n,r,e),q(wO,function(t){e.get([t,"show"])&&!i.scale.isBlank()&&_O[t](this.group,e,a,c,u,s,l)},this)}},t.type="radiusAxis",t}(TC),_O={splitLine:function(e,t,n,r,i,a){var o=t.getModel("splitLine").getModel("lineStyle"),s=o.get("color"),l=0;s=s instanceof Array?s:[s];for(var c=[],u=0;u<a.length;u++){var h=l++%s.length;c[h]=c[h]||[],c[h].push(new oc({shape:{cx:n.cx,cy:n.cy,r:a[u].coord}}))}for(u=0;u<c.length;u++)e.add(mu(c[u],{style:j({stroke:s[u%s.length],fill:null},o.getLineStyle()),silent:!0}))},minorSplitLine:function(e,t,n,r,i,a,o){if(o.length){for(var s=t.getModel("minorSplitLine").getModel("lineStyle"),l=[],c=0;c<o.length;c++)for(var u=0;u<o[c].length;u++)l.push(new oc({shape:{cx:n.cx,cy:n.cy,r:o[c][u].coord}}));e.add(mu(l,{style:j({fill:null},s.getLineStyle()),silent:!0}))}},splitArea:function(e,t,n,r,i,a){if(a.length){var o=t.getModel("splitArea").getModel("areaStyle"),s=o.get("color"),l=0;s=s instanceof Array?s:[s];for(var c=[],u=a[0].coord,h=1;h<a.length;h++){var d=l++%s.length;c[d]=c[d]||[],c[d].push(new Sc({shape:{cx:n.cx,cy:n.cy,r0:u,r:a[h].coord,startAngle:0,endAngle:2*Math.PI},silent:!0})),u=a[h].coord}for(h=0;h<c.length;h++)e.add(mu(c[h],{style:j({fill:s[h%s.length]},o.getAreaStyle()),silent:!0}))}}};var CO=xO;function SO(e){return e.get("stack")||"__ec_stack_"+e.seriesIndex}function kO(e,t){return t.dim+e.model.componentIndex}var BO=function(e,t,n){var r={},i=function(e){var t={};q(e,function(e,n){var r=e.getData(),i=e.coordinateSystem,a=i.getBaseAxis(),o=kO(i,a),s=a.getExtent(),l="category"===a.type?a.getBandWidth():Math.abs(s[1]-s[0])/r.count(),c=t[o]||{bandWidth:l,remainedWidth:l,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},u=c.stacks;t[o]=c;var h=SO(e);u[h]||c.autoWidthCount++,u[h]=u[h]||{width:0,maxWidth:0};var d=mi(e.get("barWidth"),l),f=mi(e.get("barMaxWidth"),l),p=e.get("barGap"),A=e.get("barCategoryGap");d&&!u[h].width&&(d=Math.min(c.remainedWidth,d),u[h].width=d,c.remainedWidth-=d),f&&(u[h].maxWidth=f),null!=p&&(c.gap=p),null!=A&&(c.categoryGap=A)});var n={};return q(t,function(e,t){n[t]={};var r=e.stacks,i=e.bandWidth,a=mi(e.categoryGap,i),o=mi(e.gap,1),s=e.remainedWidth,l=e.autoWidthCount,c=(s-a)/(l+(l-1)*o);c=Math.max(c,0),q(r,function(e,t){var n=e.maxWidth;n&&n<c&&(n=Math.min(n,s),e.width&&(n=Math.min(n,e.width)),s-=n,e.width=n,l--)}),c=(s-a)/(l+(l-1)*o),c=Math.max(c,0);var u,h=0;q(r,function(e,t){e.width||(e.width=c),u=e,h+=e.width*(1+o)}),u&&(h-=u.width*o);var d=-h/2;q(r,function(e,r){n[t][r]=n[t][r]||{offset:d,width:e.width},d+=e.width*(1+o)})}),n}(Y(t.getSeriesByType(e),function(e){return!t.isSeriesFiltered(e)&&e.coordinateSystem&&"polar"===e.coordinateSystem.type}));t.eachSeriesByType(e,function(e){if("polar"===e.coordinateSystem.type){var t=e.getData(),n=e.coordinateSystem,a=n.getBaseAxis(),o=kO(n,a),s=SO(e),l=i[o][s],c=l.offset,u=l.width,h=n.getOtherAxis(a),d=e.coordinateSystem.cx,f=e.coordinateSystem.cy,p=e.get("barMinHeight")||0,A=e.get("barMinAngle")||0;r[s]=r[s]||[];for(var g=t.mapDimension(h.dim),m=t.mapDimension(a.dim),v=jy(t,g),y="radius"!==a.dim||!e.get("roundCap",!0),b=h.dataToCoord(0),w=0,x=t.count();w<x;w++){var _=t.get(g,w),C=t.get(m,w),S=_>=0?"p":"n",k=b;v&&(r[s][C]||(r[s][C]={p:b,n:b}),k=r[s][C][S]);var B=void 0,E=void 0,T=void 0,I=void 0;if("radius"===h.dim){var M=h.dataToCoord(_)-b,F=a.dataToCoord(C);Math.abs(M)<p&&(M=(M<0?-1:1)*p),B=k,E=k+M,I=(T=F-c)-u,v&&(r[s][C][S]=E)}else{var D=h.dataToCoord(_,y)-b,P=a.dataToCoord(C);Math.abs(D)<A&&(D=(D<0?-1:1)*A),E=(B=P+c)+u,T=k,I=k+D,v&&(r[s][C][S]=I)}t.setItemLayout(w,{cx:d,cy:f,r0:B,r:E,startAngle:-T*Math.PI/180,endAngle:-I*Math.PI/180})}}})},EO={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},TO={splitNumber:5},IO=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.type="polar",t}(aA);function MO(e,t){t=t||{};var n=e.coordinateSystem,r=e.axis,i={},a=r.position,o=r.orient,s=n.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],c={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};i.position=["vertical"===o?c.vertical[a]:l[0],"horizontal"===o?c.horizontal[a]:l[3]];i.rotation=Math.PI/2*{horizontal:0,vertical:1}[o];i.labelDirection=i.tickDirection=i.nameDirection={top:-1,bottom:1,right:1,left:-1}[a],e.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),pe(t.labelInside,e.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var u=t.rotate;return null==u&&(u=e.get(["axisLabel","rotate"])),i.labelRotation="top"===a?-u:u,i.z2=1,i}var FO=["axisLine","axisTickLabel","axisName"],DO=["splitArea","splitLine"],PO=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="SingleAxisPointer",n}return g(t,e),t.prototype.render=function(t,n,r,i){var a=this.group;a.removeAll();var o=this._axisGroup;this._axisGroup=new ii;var s=MO(t),l=new xC(t,s);q(FO,l.add,l),a.add(this._axisGroup),a.add(l.getGroup()),q(DO,function(e){t.get([e,"show"])&&OO[e](this,this.group,this._axisGroup,t)},this),Du(o,this._axisGroup,t),e.prototype.render.call(this,t,n,r,i)},t.prototype.remove=function(){FC(this)},t.type="singleAxis",t}(TC),OO={splitLine:function(e,t,n,r){var i=r.axis;if(!i.scale.isBlank()){var a=r.getModel("splitLine"),o=a.getModel("lineStyle"),s=o.get("color");s=s instanceof Array?s:[s];for(var l=r.coordinateSystem.getRect(),c=i.isHorizontal(),u=[],h=0,d=i.getTicksCoords({tickModel:a}),f=[],p=[],A=0;A<d.length;++A){var g=i.toGlobalCoord(d[A].coord);c?(f[0]=g,f[1]=l.y,p[0]=g,p[1]=l.y+l.height):(f[0]=l.x,f[1]=g,p[0]=l.x+l.width,p[1]=g);var m=h++%s.length;u[m]=u[m]||[],u[m].push(new Hc({subPixelOptimize:!0,shape:{x1:f[0],y1:f[1],x2:p[0],y2:p[1]},silent:!0}))}var v=o.getLineStyle(["color"]);for(A=0;A<u.length;++A)t.add(mu(u[A],{style:j({stroke:s[A%s.length]},v),silent:!0}))}},splitArea:function(e,t,n,r){MC(e,n,r,r)}},LO=PO,RO=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.prototype.getCoordSysModel=function(){return this},t.type="singleAxis",t.layoutMode="box",t.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}},t}(Bd);G(RO,Jb.prototype);var NO=RO,UO=function(e){function t(t,n,r,i,a){var o=e.call(this,t,n,r)||this;return o.type=i||"value",o.position=a||"bottom",o}return g(t,e),t.prototype.isHorizontal=function(){var e=this.position;return"top"===e||"bottom"===e},t.prototype.pointToData=function(e,t){return this.coordinateSystem.pointToData(e)[0]},t}(ww);function HO(e){var t=e.seriesModel,n=e.singleAxisModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}var jO=function(){function e(e,t,n){this.type="single",this.dimension="single",this.dimensions=["single"],this.axisPointerEnabled=!0,this.model=e,this._init(e,t,n)}return e.prototype._init=function(e,t,n){var r=this.dimension,i=new UO(r,$b(e),[0,0],e.get("type"),e.get("position")),a="category"===i.type;i.onBand=a&&e.get("boundaryGap"),i.inverse=e.get("inverse"),i.orient=e.get("orient"),e.axis=i,i.model=e,i.coordinateSystem=this,this._axis=i},e.prototype.update=function(e,t){e.eachSeries(function(e){if(e.coordinateSystem===this){var t=e.getData();q(t.mapDimensionsAll(this.dimension),function(e){this._axis.scale.unionExtentFromData(t,e)},this),Gb(this._axis.scale,this._axis.model)}},this)},e.prototype.resize=function(e,t){this._rect=yd({left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")},{width:t.getWidth(),height:t.getHeight()}),this._adjustAxis()},e.prototype.getRect=function(){return this._rect},e.prototype._adjustAxis=function(){var e=this._rect,t=this._axis,n=t.isHorizontal(),r=n?[0,e.width]:[0,e.height],i=t.reverse?1:0;t.setExtent(r[i],r[1-i]),this._updateAxisTransform(t,n?e.x:e.y)},e.prototype._updateAxisTransform=function(e,t){var n=e.getExtent(),r=n[0]+n[1],i=e.isHorizontal();e.toGlobalCoord=i?function(e){return e+t}:function(e){return r-e+t},e.toLocalCoord=i?function(e){return e-t}:function(e){return r-e+t}},e.prototype.getAxis=function(){return this._axis},e.prototype.getBaseAxis=function(){return this._axis},e.prototype.getAxes=function(){return[this._axis]},e.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},e.prototype.containPoint=function(e){var t=this.getRect(),n=this.getAxis();return"horizontal"===n.orient?n.contain(n.toLocalCoord(e[0]))&&e[1]>=t.y&&e[1]<=t.y+t.height:n.contain(n.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},e.prototype.pointToData=function(e){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(e["horizontal"===t.orient?0:1]))]},e.prototype.dataToPoint=function(e){var t=this.getAxis(),n=this.getRect(),r=[],i="horizontal"===t.orient?0:1;return e instanceof Array&&(e=e[0]),r[i]=t.toGlobalCoord(t.dataToCoord(+e)),r[1-i]=0===i?n.y+n.height/2:n.x+n.width/2,r},e.prototype.convertToPixel=function(e,t,n){return HO(t)===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){return HO(t)===this?this.pointToData(n):null},e}();var QO={create:function(e,t){var n=[];return e.eachComponent("singleAxis",function(r,i){var a=new jO(r,e,t);a.name="single_"+i,a.resize(r,t),r.coordinateSystem=a,n.push(a)}),e.eachSeries(function(e){if("singleAxis"===e.get("coordinateSystem")){var t=e.getReferringComponents("singleAxis",na).models[0];e.coordinateSystem=t&&t.coordinateSystem}}),n},dimensions:jO.prototype.dimensions},zO=["x","y"],VO=["width","height"],GO=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return g(t,e),t.prototype.makeElOption=function(e,t,n,r,i){var a=n.axis,o=a.coordinateSystem,s=WO(o,1-qO(a)),l=o.dataToPoint(t)[0],c=r.get("type");if(c&&"none"!==c){var u=bP(r),h=$O[c](a,l,s);h.style=u,e.graphicKey=h.type,e.pointer=h}CP(t,e,MO(n),n,r,i)},t.prototype.getHandleTransform=function(e,t,n){var r=MO(t,{labelInside:!1});r.labelMargin=n.get(["handle","margin"]);var i=_P(t.axis,e,r);return{x:i[0],y:i[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,r){var i=n.axis,a=i.coordinateSystem,o=qO(i),s=WO(a,o),l=[e.x,e.y];l[o]+=t[o],l[o]=Math.min(s[1],l[o]),l[o]=Math.max(s[0],l[o]);var c=WO(a,1-o),u=(c[1]+c[0])/2,h=[u,u];return h[o]=l[o],{x:l[0],y:l[1],rotation:e.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}},t}(yP),$O={line:function(e,t,n){return{type:"Line",subPixelOptimize:!0,shape:SP([t,n[0]],[t,n[1]],qO(e))}},shadow:function(e,t,n){var r=e.getBandWidth(),i=n[1]-n[0];return{type:"Rect",shape:kP([t-r/2,n[0]],[r,i],qO(e))}}};function qO(e){return e.isHorizontal()?0:1}function WO(e,t){var n=e.getRect();return[n[zO[t]],n[zO[t]]+n[VO[t]]]}var KO=GO,YO=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.type="single",t}(aA);function XO(e,t){var n,r=e.cellSize;1===(n=te(r)?r:e.cellSize=[r,r]).length&&(n[1]=n[0]);var i=W([0,1],function(e){return function(e,t){return null!=e[gd[t][0]]||null!=e[gd[t][1]]&&null!=e[gd[t][2]]}(t,e)&&(n[e]="auto"),null!=n[e]&&"auto"!==n[e]});xd(e,t,{type:"box",ignoreSize:i})}var JO=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.prototype.init=function(t,n,r){var i=_d(t);e.prototype.init.apply(this,arguments),XO(t,i)},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),XO(this.option,t)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type="calendar",t.defaultOption={zlevel:0,z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",nameMap:"en",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",nameMap:"en",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},t}(Bd),ZO={EN:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],CN:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},eL={EN:["S","M","T","W","T","F","S"],CN:["日","一","二","三","四","五","六"]},tL=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.prototype.render=function(e,t,n){var r=this.group;r.removeAll();var i=e.coordinateSystem,a=i.getRangeInfo(),o=i.getOrient();this._renderDayRect(e,a,r),this._renderLines(e,a,o,r),this._renderYearText(e,a,o,r),this._renderMonthText(e,o,r),this._renderWeekText(e,a,o,r)},t.prototype._renderDayRect=function(e,t,n){for(var r=e.coordinateSystem,i=e.getModel("itemStyle").getItemStyle(),a=r.getCellWidth(),o=r.getCellHeight(),s=t.start.time;s<=t.end.time;s=r.getNextNDay(s,1).time){var l=r.dataToRect([s],!1).tl,c=new Ds({shape:{x:l[0],y:l[1],width:a,height:o},cursor:"default",style:i});n.add(c)}},t.prototype._renderLines=function(e,t,n,r){var i=this,a=e.coordinateSystem,o=e.getModel(["splitLine","lineStyle"]).getLineStyle(),s=e.get(["splitLine","show"]),l=o.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var c=t.start,u=0;c.time<=t.end.time;u++){d(c.formatedDate),0===u&&(c=a.getDateInfo(t.start.y+"-"+t.start.m));var h=c.date;h.setMonth(h.getMonth()+1),c=a.getDateInfo(h)}function d(t){i._firstDayOfMonth.push(a.getDateInfo(t)),i._firstDayPoints.push(a.dataToRect([t],!1).tl);var l=i._getLinePointsOfOneWeek(e,t,n);i._tlpoints.push(l[0]),i._blpoints.push(l[l.length-1]),s&&i._drawSplitline(l,o,r)}d(a.getNextNDay(t.end.time,1).formatedDate),s&&this._drawSplitline(i._getEdgesPoints(i._tlpoints,l,n),o,r),s&&this._drawSplitline(i._getEdgesPoints(i._blpoints,l,n),o,r)},t.prototype._getEdgesPoints=function(e,t,n){var r=[e[0].slice(),e[e.length-1].slice()],i="horizontal"===n?0:1;return r[0][i]=r[0][i]-t/2,r[1][i]=r[1][i]+t/2,r},t.prototype._drawSplitline=function(e,t,n){var r=new Lc({z2:20,shape:{points:e},style:t});n.add(r)},t.prototype._getLinePointsOfOneWeek=function(e,t,n){for(var r=e.coordinateSystem,i=r.getDateInfo(t),a=[],o=0;o<7;o++){var s=r.getNextNDay(i.time,o),l=r.dataToRect([s.time],!1);a[2*s.day]=l.tl,a[2*s.day+1]=l["horizontal"===n?"bl":"tr"]}return a},t.prototype._formatterLabel=function(e,t){return"string"==typeof e&&e?(n=e,q(t,function(e,t){n=n.replace("{"+t+"}",r?id(e):e)}),n):"function"==typeof e?e(t):t.nameMap;var n,r},t.prototype._yearTextPositionControl=function(e,t,n,r,i){var a=t[0],o=t[1],s=["center","bottom"];"bottom"===r?(o+=i,s=["center","top"]):"left"===r?a-=i:"right"===r?(a+=i,s=["center","top"]):o-=i;var l=0;return"left"!==r&&"right"!==r||(l=Math.PI/2),{rotation:l,x:a,y:o,style:{align:s[0],verticalAlign:s[1]}}},t.prototype._renderYearText=function(e,t,n,r){var i=e.getModel("yearLabel");if(i.get("show")){var a=i.get("margin"),o=i.get("position");o||(o="horizontal"!==n?"top":"left");var s=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],l=(s[0][0]+s[1][0])/2,c=(s[0][1]+s[1][1])/2,u="horizontal"===n?0:1,h={top:[l,s[u][1]],bottom:[l,s[1-u][1]],left:[s[1-u][0],c],right:[s[u][0],c]},d=t.start.y;+t.end.y>+t.start.y&&(d=d+"-"+t.end.y);var f=i.get("formatter"),p={start:t.start.y,end:t.end.y,nameMap:d},A=this._formatterLabel(f,p),g=new Vs({z2:30,style:Gu(i,{text:A})});g.attr(this._yearTextPositionControl(g,h[o],n,o,a)),r.add(g)}},t.prototype._monthTextPositionControl=function(e,t,n,r,i){var a="left",o="top",s=e[0],l=e[1];return"horizontal"===n?(l+=i,t&&(a="center"),"start"===r&&(o="bottom")):(s+=i,t&&(o="middle"),"start"===r&&(a="right")),{x:s,y:l,align:a,verticalAlign:o}},t.prototype._renderMonthText=function(e,t,n){var r=e.getModel("monthLabel");if(r.get("show")){var i=r.get("nameMap"),a=r.get("margin"),o=r.get("position"),s=r.get("align"),l=[this._tlpoints,this._blpoints];re(i)&&(i=ZO[i.toUpperCase()]||[]);var c="start"===o?0:1,u="horizontal"===t?0:1;a="start"===o?-a:a;for(var h="center"===s,d=0;d<l[c].length-1;d++){var f=l[c][d].slice(),p=this._firstDayOfMonth[d];if(h){var A=this._firstDayPoints[d];f[u]=(A[u]+l[0][d+1][u])/2}var g=r.get("formatter"),m=i[+p.m-1],v={yyyy:p.y,yy:(p.y+"").slice(2),MM:p.m,M:+p.m,nameMap:m},y=this._formatterLabel(g,v),b=new Vs({z2:30,style:H(Gu(r,{text:y}),this._monthTextPositionControl(f,h,t,o,a))});n.add(b)}}},t.prototype._weekTextPositionControl=function(e,t,n,r,i){var a="center",o="middle",s=e[0],l=e[1],c="start"===n;return"horizontal"===t?(s=s+r+(c?1:-1)*i[0]/2,a=c?"right":"left"):(l=l+r+(c?1:-1)*i[1]/2,o=c?"bottom":"top"),{x:s,y:l,align:a,verticalAlign:o}},t.prototype._renderWeekText=function(e,t,n,r){var i=e.getModel("dayLabel");if(i.get("show")){var a=e.coordinateSystem,o=i.get("position"),s=i.get("nameMap"),l=i.get("margin"),c=a.getFirstDayOfWeek();re(s)&&(s=eL[s.toUpperCase()]||[]);var u=a.getNextNDay(t.end.time,7-t.lweek).time,h=[a.getCellWidth(),a.getCellHeight()];l=mi(l,h["horizontal"===n?0:1]),"start"===o&&(u=a.getNextNDay(t.start.time,-(7+t.fweek)).time,l=-l);for(var d=0;d<7;d++){var f,p=a.getNextNDay(u,d),A=a.dataToRect([p.time],!1).center;f=Math.abs((d+c)%7);var g=new Vs({z2:30,style:H(Gu(i,{text:s[f]}),this._weekTextPositionControl(A,n,o,l,h))});r.add(g)}}},t.type="calendar",t}(aA);function nL(e){var t=e.calendarModel,n=e.seriesModel;return t?t.coordinateSystem:n?n.coordinateSystem:null}var rL=function(){function e(t,n,r){this.type="calendar",this.dimensions=e.dimensions,this.getDimensionsInfo=e.getDimensionsInfo,this._model=t}return e.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},e.prototype.getRangeInfo=function(){return this._rangeInfo},e.prototype.getModel=function(){return this._model},e.prototype.getRect=function(){return this._rect},e.prototype.getCellWidth=function(){return this._sw},e.prototype.getCellHeight=function(){return this._sh},e.prototype.getOrient=function(){return this._orient},e.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},e.prototype.getDateInfo=function(e){var t=(e=Ei(e)).getFullYear(),n=e.getMonth()+1,r=n<10?"0"+n:""+n,i=e.getDate(),a=i<10?"0"+i:""+i,o=e.getDay();return{y:t+"",m:r,d:a,day:o=Math.abs((o+7-this.getFirstDayOfWeek())%7),time:e.getTime(),formatedDate:t+"-"+r+"-"+a,date:e}},e.prototype.getNextNDay=function(e,t){return 0===(t=t||0)?this.getDateInfo(e):((e=new Date(this.getDateInfo(e).time)).setDate(e.getDate()+t),this.getDateInfo(e))},e.prototype.update=function(e,t){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var n=this._rangeInfo.weeks||1,r=["width","height"],i=this._model.getCellSize().slice(),a=this._model.getBoxLayoutParams(),o="horizontal"===this._orient?[n,7]:[7,n];q([0,1],function(e){c(i,e)&&(a[r[e]]=i[e]*o[e])});var s={width:t.getWidth(),height:t.getHeight()},l=this._rect=yd(a,s);function c(e,t){return null!=e[t]&&"auto"!==e[t]}q([0,1],function(e){c(i,e)||(i[e]=l[r[e]]/o[e])}),this._sw=i[0],this._sh=i[1]},e.prototype.dataToPoint=function(e,t){te(e)&&(e=e[0]),null==t&&(t=!0);var n=this.getDateInfo(e),r=this._rangeInfo,i=n.formatedDate;if(t&&!(n.time>=r.start.time&&n.time<r.end.time+864e5))return[NaN,NaN];var a=n.day,o=this._getRangeInfo([r.start.time,i]).nthWeek;return"vertical"===this._orient?[this._rect.x+a*this._sw+this._sw/2,this._rect.y+o*this._sh+this._sh/2]:[this._rect.x+o*this._sw+this._sw/2,this._rect.y+a*this._sh+this._sh/2]},e.prototype.pointToData=function(e){var t=this.pointToDate(e);return t&&t.time},e.prototype.dataToRect=function(e,t){var n=this.dataToPoint(e,t);return{contentShape:{x:n[0]-(this._sw-this._lineWidth)/2,y:n[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:n,tl:[n[0]-this._sw/2,n[1]-this._sh/2],tr:[n[0]+this._sw/2,n[1]-this._sh/2],br:[n[0]+this._sw/2,n[1]+this._sh/2],bl:[n[0]-this._sw/2,n[1]+this._sh/2]}},e.prototype.pointToDate=function(e){var t=Math.floor((e[0]-this._rect.x)/this._sw)+1,n=Math.floor((e[1]-this._rect.y)/this._sh)+1,r=this._rangeInfo.range;return"vertical"===this._orient?this._getDateByWeeksAndDay(n,t-1,r):this._getDateByWeeksAndDay(t,n-1,r)},e.prototype.convertToPixel=function(e,t,n){var r=nL(t);return r===this?r.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){var r=nL(t);return r===this?r.pointToData(n):null},e.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},e.prototype._initRangeOption=function(){var e,t=this._model.get("range");if(te(t)&&1===t.length&&(t=t[0]),te(t))e=t;else{var n=t.toString();if(/^\d{4}$/.test(n)&&(e=[n+"-01-01",n+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(n)){var r=this.getDateInfo(n),i=r.date;i.setMonth(i.getMonth()+1);var a=this.getNextNDay(i,-1);e=[r.formatedDate,a.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(n)&&(e=[n,n])}if(!e)return t;var o=this._getRangeInfo(e);return o.start.time>o.end.time&&e.reverse(),e},e.prototype._getRangeInfo=function(e){var t,n=[this.getDateInfo(e[0]),this.getDateInfo(e[1])];n[0].time>n[1].time&&(t=!0,n.reverse());var r=Math.floor(n[1].time/864e5)-Math.floor(n[0].time/864e5)+1,i=new Date(n[0].time),a=i.getDate(),o=n[1].date.getDate();i.setDate(a+r-1);var s=i.getDate();if(s!==o)for(var l=i.getTime()-n[1].time>0?1:-1;(s=i.getDate())!==o&&(i.getTime()-n[1].time)*l>0;)r-=l,i.setDate(s-l);var c=Math.floor((r+n[0].day+6)/7),u=t?1-c:c-1;return t&&n.reverse(),{range:[n[0].formatedDate,n[1].formatedDate],start:n[0],end:n[1],allDay:r,weeks:c,nthWeek:u,fweek:n[0].day,lweek:n[1].day}},e.prototype._getDateByWeeksAndDay=function(e,t,n){var r=this._getRangeInfo(n);if(e>r.weeks||0===e&&t<r.fweek||e===r.weeks&&t>r.lweek)return null;var i=7*(e-1)-r.fweek+t,a=new Date(r.start.time);return a.setDate(+r.start.d+i),this.getDateInfo(a)},e.create=function(t,n){var r=[];return t.eachComponent("calendar",function(i){var a=new e(i,t,n);r.push(a),i.coordinateSystem=a}),t.eachSeries(function(e){"calendar"===e.get("coordinateSystem")&&(e.coordinateSystem=r[e.get("calendarIndex")||0])}),r},e.dimensions=["time","value"],e}();var iL=Zi(),aL={path:null,compoundPath:null,group:ii,image:Ss,text:Vs},oL=function(e){var t=e.graphic;te(t)?t[0]&&t[0].elements?e.graphic=[e.graphic[0]]:e.graphic=[{elements:t}]:t&&!t.elements&&(e.graphic=[{elements:[t]}])},sL=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.prototype.mergeOption=function(t,n){var r=this.option.elements;this.option.elements=null,e.prototype.mergeOption.call(this,t,n),this.option.elements=r},t.prototype.optionUpdated=function(e,t){var n=this.option,r=(t?n:e).elements,i=n.elements=t?[]:n.elements,a=[];this._flatten(r,a,null);var o=$i(i,a,"normalMerge"),s=this._elOptionsToUpdate=[];q(o,function(e,t){var n=e.newOption;n&&(s.push(n),function(e,t){var n=e.existing;if(t.id=e.keyInfo.id,!t.type&&n&&(t.type=n.type),null==t.parentId){var r=t.parentOption;r?t.parentId=r.id:n&&(t.parentId=n.parentId)}t.parentOption=null}(e,n),function(e,t,n){var r=H({},n),i=e[t],a=n.$action||"merge";if("merge"===a){if(i)N(i,r,!0),xd(i,r,{ignoreSize:!0}),Cd(n,i);else e[t]=r}else"replace"===a?e[t]=r:"remove"===a&&i&&(e[t]=null)}(i,t,n),function(e,t){if(!e)return;if(e.hv=t.hv=[hL(t,["left","right"]),hL(t,["top","bottom"])],"group"===e.type){var n=e,r=t;null==n.width&&(n.width=r.width=0),null==n.height&&(n.height=r.height=0)}}(i[t],n))},this);for(var l=i.length-1;l>=0;l--)null==i[l]?i.splice(l,1):delete i[l].$action},t.prototype._flatten=function(e,t,n){q(e,function(e){if(e){n&&(e.parentOption=n),t.push(e);var r=e.children;"group"===e.type&&r&&this._flatten(r,t,e),delete e.children}},this)},t.prototype.useElOptionsToUpdate=function(){var e=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,e},t.type="graphic",t.defaultOption={elements:[]},t}(Bd),lL=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.prototype.init=function(){this._elMap=Se()},t.prototype.render=function(e,t,n){e!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=e,this._updateElements(e),this._relocate(e,n)},t.prototype._updateElements=function(e){var t=e.useElOptionsToUpdate();if(t){var n=this._elMap,r=this.group;q(t,function(t){var i=Ki(t.id,null),a=null!=i?n.get(i):null,o=Ki(t.parentId,null),s=null!=o?n.get(o):r,l=t.type,c=t.style;"text"===l&&c&&t.hv&&t.hv[1]&&(c.textVerticalAlign=c.textBaseline=c.verticalAlign=c.align=null);var u=t.textContent,h=t.textConfig;if(c&&UF(c,l,!!h,!!u)){var d=HF(c,l,!0);!h&&d.textConfig&&(h=t.textConfig=d.textConfig),!u&&d.textContent&&(u=d.textContent)}var f=function(e){return e=H({},e),q(["id","parentId","$action","hv","bounding","textContent"].concat(Ad),function(t){delete e[t]}),e}(t);var p=t.$action||"merge";"merge"===p?a?a.attr(f):cL(i,s,f,n):"replace"===p?(uL(a,n),cL(i,s,f,n)):"remove"===p&&uL(a,n);var A=n.get(i);if(A&&u)if("merge"===p){var g=A.getTextContent();g?g.attr(u):A.setTextContent(new Vs(u))}else"replace"===p&&A.setTextContent(new Vs(u));if(A){var m=iL(A);m.__ecGraphicWidthOption=t.width,m.__ecGraphicHeightOption=t.height,function(e,t,n){var r=Gs(e).eventData;e.silent||e.ignore||r||(r=Gs(e).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:e.name});r&&(r.info=n.info)}(A,e,t)}})}},t.prototype._relocate=function(e,t){for(var n=e.option.elements,r=this.group,i=this._elMap,a=t.getWidth(),o=t.getHeight(),s=0;s<n.length;s++){if((f=null!=(d=Ki((h=n[s]).id,null))?i.get(d):null)&&f.isGroup){var l=(p=f.parent)===r,c=iL(f),u=iL(p);c.__ecGraphicWidth=mi(c.__ecGraphicWidthOption,l?a:u.__ecGraphicWidth)||0,c.__ecGraphicHeight=mi(c.__ecGraphicHeightOption,l?o:u.__ecGraphicHeight)||0}}for(s=n.length-1;s>=0;s--){var h,d,f;if(f=null!=(d=Ki((h=n[s]).id,null))?i.get(d):null){var p=f.parent;u=iL(p);bd(f,h,p===r?{width:a,height:o}:{width:u.__ecGraphicWidth,height:u.__ecGraphicHeight},null,{hv:h.hv,boundingMode:h.bounding})}}},t.prototype._clear=function(){var e=this._elMap;e.each(function(t){uL(t,e)}),this._elMap=Se()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(aA);function cL(e,t,n,r){var i=n.type;var a=Ee(aL,i)?aL[i]:fu(i);var o=new a(n);t.add(o),r.set(e,o),iL(o).__ecGraphicId=e}function uL(e,t){var n=e&&e.parent;n&&("group"===e.type&&e.traverse(function(e){uL(e,t)}),t.removeKey(iL(e).__ecGraphicId),n.remove(e))}function hL(e,t){var n;return q(t,function(t){null!=e[t]&&"auto"!==e[t]&&(n=!0)}),n}var dL=["x","y","radius","angle","single"],fL=["cartesian2d","polar","singleAxis"];function pL(e){return e+"Axis"}function AL(e,t){var n,r=Se(),i=[],a=Se();e.eachComponent({mainType:"dataZoom",query:t},function(e){a.get(e.uid)||s(e)});do{n=!1,e.eachComponent("dataZoom",o)}while(n);function o(e){!a.get(e.uid)&&function(e){var t=!1;return e.eachTargetAxis(function(e,n){var i=r.get(e);i&&i[n]&&(t=!0)}),t}(e)&&(s(e),n=!0)}function s(e){a.set(e.uid,!0),i.push(e),e.eachTargetAxis(function(e,t){(r.get(e)||r.set(e,[]))[t]=!0})}return i}function gL(e){var t=e.ecModel,n={infoList:[],infoMap:Se()};return e.eachTargetAxis(function(e,r){var i=t.getComponent(pL(e),r);if(i){var a=i.getCoordSysModel();if(a){var o=a.uid,s=n.infoMap.get(o);s||(s={model:a,axisModels:[]},n.infoList.push(s),n.infoMap.set(o,s)),s.axisModels.push(i)}}}),n}var mL=function(){function e(){this.indexList=[],this.indexMap=[]}return e.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},e}();function vL(e){var t={};return q(["start","end","startValue","endValue","throttle"],function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t}var yL=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=["percent","percent"],n}return g(t,e),t.prototype.init=function(e,t,n){var r=vL(e);this.settledOption=r,this.mergeDefaultAndTheme(e,n),this._doInit(r)},t.prototype.mergeOption=function(e){var t=vL(e);N(this.option,e,!0),N(this.settledOption,t,!0),this._doInit(t)},t.prototype._doInit=function(e){var t=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var n=this.settledOption;q([["start","startValue"],["end","endValue"]],function(e,r){"value"===this._rangePropMode[r]&&(t[e[0]]=n[e[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),t=this._targetAxisInfoMap=Se();this._fillSpecifiedTargetAxis(t)?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(t,this._orient)),this._noTarget=!0,t.each(function(e){e.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(e){var t=!1;return q(dL,function(n){var r=this.getReferringComponents(pL(n),ra);if(r.specified){t=!0;var i=new mL;q(r.models,function(e){i.add(e.componentIndex)}),e.set(n,i)}},this),t},t.prototype._fillAutoTargetAxisByOrient=function(e,t){var n=this.ecModel,r=!0;if(r){var i="vertical"===t?"y":"x";a(n.findComponents({mainType:i+"Axis"}),i)}r&&a(n.findComponents({mainType:"singleAxis",filter:function(e){return e.get("orient",!0)===t}}),"single");function a(t,n){var i=t[0];if(i){var a=new mL;if(a.add(i.componentIndex),e.set(n,a),r=!1,"x"===n||"y"===n){var o=i.getReferringComponents("grid",na).models[0];o&&q(t,function(e){i.componentIndex!==e.componentIndex&&o===e.getReferringComponents("grid",na).models[0]&&a.add(e.componentIndex)})}}}r&&q(dL,function(t){if(r){var i=n.findComponents({mainType:pL(t),filter:function(e){return"category"===e.get("type",!0)}});if(i[0]){var a=new mL;a.add(i[0].componentIndex),e.set(t,a),r=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(t){!e&&(e=t)},this),"y"===e?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var t=this.ecModel.option;this.option.throttle=t.animation&&t.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var t=this._rangePropMode,n=this.get("rangeMode");q([["start","startValue"],["end","endValue"]],function(r,i){var a=null!=e[r[0]],o=null!=e[r[1]];a&&!o?t[i]="percent":!a&&o?t[i]="value":n?t[i]=n[i]:a&&(t[i]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis(function(t,n){null==e&&(e=this.ecModel.getComponent(pL(t),n))},this),e},t.prototype.eachTargetAxis=function(e,t){this._targetAxisInfoMap.each(function(n,r){q(n.indexList,function(n){e.call(t,r,n)})})},t.prototype.getAxisProxy=function(e,t){var n=this.getAxisModel(e,t);if(n)return n.__dzAxisProxy},t.prototype.getAxisModel=function(e,t){var n=this._targetAxisInfoMap.get(e);if(n&&n.indexMap[t])return this.ecModel.getComponent(pL(e),t)},t.prototype.setRawRange=function(e){var t=this.option,n=this.settledOption;q([["start","startValue"],["end","endValue"]],function(r){null==e[r[0]]&&null==e[r[1]]||(t[r[0]]=n[r[0]]=e[r[0]],t[r[1]]=n[r[1]]=e[r[1]])},this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var t=this.option;q(["start","startValue","end","endValue"],function(n){t[n]=e[n]})},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,t){if(null!=e||null!=t)return this.getAxisProxy(e,t).getDataValueWindow();var n=this.findRepresentativeAxisProxy();return n?n.getDataValueWindow():void 0},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var t,n=this._targetAxisInfoMap.keys(),r=0;r<n.length;r++)for(var i=n[r],a=this._targetAxisInfoMap.get(i),o=0;o<a.indexList.length;o++){var s=this.getAxisProxy(i,a.indexList[o]);if(s.hostedBy(this))return s;t||(t=s)}return t},t.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},t.prototype.getOrient=function(){return this._orient},t.type="dataZoom",t.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],t.defaultOption={zlevel:0,z:4,filterMode:"filter",start:0,end:100},t}(Bd),bL=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.type="dataZoom.select",t}(yL),wL=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.prototype.render=function(e,t,n,r){this.dataZoomModel=e,this.ecModel=t,this.api=n},t.type="dataZoom",t}(aA),xL=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.type="dataZoom.select",t}(wL),_L=q,CL=yi;var SL=function(){function e(e,t,n,r){this._dimName=e,this._axisIndex=t,this.ecModel=r,this._dataZoomModel=n}return e.prototype.hostedBy=function(e){return this._dataZoomModel===e},e.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},e.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},e.prototype.getTargetSeriesModels=function(){var e=[];return this.ecModel.eachSeries(function(t){if(function(e){var t=e.get("coordinateSystem");return z(fL,t)>=0}(t)){var n=pL(this._dimName),r=t.getReferringComponents(n,na).models[0];r&&this._axisIndex===r.componentIndex&&e.push(t)}},this),e},e.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},e.prototype.getMinMaxSpan=function(){return R(this._minMaxSpan)},e.prototype.calculateDataWindow=function(e){var t,n=this._dataExtent,r=this.getAxisModel().axis.scale,i=this._dataZoomModel.getRangePropMode(),a=[0,100],o=[],s=[];_L(["start","end"],function(l,c){var u=e[l],h=e[l+"Value"];"percent"===i[c]?(null==u&&(u=a[c]),h=r.parse(gi(u,a,n))):(t=!0,u=gi(h=null==h?n[c]:r.parse(h),n,a)),s[c]=h,o[c]=u}),CL(s),CL(o);var l=this._minMaxSpan;function c(e,t,n,i,a){var o=a?"Span":"ValueSpan";mT(0,e,n,"all",l["min"+o],l["max"+o]);for(var s=0;s<2;s++)t[s]=gi(e[s],n,i,!0),a&&(t[s]=r.parse(t[s]))}return t?c(s,o,n,a,!1):c(o,s,a,n,!0),{valueWindow:s,percentWindow:o}},e.prototype.reset=function(e){if(e===this._dataZoomModel){var t=this.getTargetSeriesModels();this._dataExtent=function(e,t,n){var r=[1/0,-1/0];_L(n,function(e){!function(e,t,n){t&&q(Xb(t,n),function(n){var r=t.getApproximateExtent(n);r[0]<e[0]&&(e[0]=r[0]),r[1]>e[1]&&(e[1]=r[1])})}(r,e.getData(),t)});var i=e.getAxisModel(),a=Qb(i.axis.scale,i,r).calculate();return[a.min,a.max]}(this,this._dimName,t),this._updateMinMaxSpan();var n=this.calculateDataWindow(e.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},e.prototype.filterData=function(e,t){if(e===this._dataZoomModel){var n=this._dimName,r=this.getTargetSeriesModels(),i=e.get("filterMode"),a=this._valueWindow;"none"!==i&&_L(r,function(e){var t=e.getData(),r=t.mapDimensionsAll(n);r.length&&("weakFilter"===i?t.filterSelf(function(e){for(var n,i,o,s=0;s<r.length;s++){var l=t.get(r[s],e),c=!isNaN(l),u=l<a[0],h=l>a[1];if(c&&!u&&!h)return!0;c&&(o=!0),u&&(n=!0),h&&(i=!0)}return o&&n&&i}):_L(r,function(n){if("empty"===i)e.setData(t=t.map(n,function(e){return function(e){return e>=a[0]&&e<=a[1]}(e)?e:NaN}));else{var r={};r[n]=a,t.selectRange(r)}}),_L(r,function(e){t.setApproximateExtent(a,e)}))})}},e.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,n=this._dataExtent;_L(["min","max"],function(r){var i=t.get(r+"Span"),a=t.get(r+"ValueSpan");null!=a&&(a=this.getAxisModel().axis.scale.parse(a)),null!=a?i=gi(n[0]+a,n,[0,100],!0):null!=i&&(a=gi(i,[0,100],n,!0)-n[0]),e[r+"Span"]=i,e[r+"ValueSpan"]=a},this)},e.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,n=this._valueWindow;if(t){var r=xi(n,[0,500]);r=Math.min(r,20);var i=e.axis.scale.rawExtentInfo;0!==t[0]&&i.setDeterminedMinMax("min",+n[0].toFixed(r)),100!==t[1]&&i.setDeterminedMinMax("max",+n[1].toFixed(r)),i.freeze()}},e}(),kL={getTargetSeries:function(e){function t(t){e.eachComponent("dataZoom",function(n){n.eachTargetAxis(function(r,i){var a=e.getComponent(pL(r),i);t(r,i,a,n)})})}t(function(e,t,n,r){n.__dzAxisProxy=null});var n=[];t(function(t,r,i,a){i.__dzAxisProxy||(i.__dzAxisProxy=new SL(t,r,a,e),n.push(i.__dzAxisProxy))});var r=Se();return q(n,function(e){q(e.getTargetSeriesModels(),function(e){r.set(e.uid,e)})}),r},overallReset:function(e,t){e.eachComponent("dataZoom",function(e){e.eachTargetAxis(function(t,n){e.getAxisProxy(t,n).reset(e)}),e.eachTargetAxis(function(n,r){e.getAxisProxy(n,r).filterData(e,t)})}),e.eachComponent("dataZoom",function(e){var t=e.findRepresentativeAxisProxy();if(t){var n=t.getDataPercentWindow(),r=t.getDataValueWindow();e.setCalculatedRange({start:n[0],end:n[1],startValue:r[0],endValue:r[1]})}})}};var BL=!1;function EL(e){BL||(BL=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,kL),function(e){e.registerAction("dataZoom",function(e,t){q(AL(t,e),function(t){t.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}(e),e.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function TL(e){e.registerComponentModel(bL),e.registerComponentView(xL),EL(e)}var IL=function(){return function(){}}(),ML={};function FL(e,t){ML[e]=t}function DL(e){return ML[e]}var PL=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.prototype.optionUpdated=function(){e.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;q(this.option.feature,function(e,n){var r=DL(n);r&&(r.getDefaultOption&&(r.defaultOption=r.getDefaultOption(t)),N(e,r.defaultOption))})},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,zlevel:0,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1}},t}(Bd);function OL(e,t){var n=td(t.get("padding")),r=t.getItemStyle(["color","opacity"]);return r.fill=t.get("backgroundColor"),e=new Ds({shape:{x:e.x-n[3],y:e.y-n[0],width:e.width+n[1]+n[3],height:e.height+n[0]+n[2],r:t.get("borderRadius")},style:r,silent:!0,z2:-1})}var LL=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return g(t,e),t.prototype.render=function(e,t,n,r){var i=this.group;if(i.removeAll(),e.get("show")){var a=+e.get("itemSize"),o=e.get("feature")||{},s=this._features||(this._features={}),l=[];q(o,function(e,t){l.push(t)}),new oy(this._featureNames||[],l).add(c).update(c).remove(ee(c,null)).execute(),this._featureNames=l,function(e,t,n){var r=t.getBoxLayoutParams(),i=t.get("padding"),a={width:n.getWidth(),height:n.getHeight()},o=yd(r,a,i);vd(t.get("orient"),e,t.get("itemGap"),o.width,o.height),bd(e,r,a,i)}(i,e,n),i.add(OL(i.getBoundingRect(),e)),i.eachChild(function(e){var t=e.__title,r=e.ensureState("emphasis"),o=r.textConfig||(r.textConfig={}),s=e.getTextContent(),l=s&&s.states.emphasis;if(l&&!ne(l)&&t){var c=l.style||(l.style={}),u=sr(t,Vs.makeFont(c)),h=e.x+i.x,d=!1;e.y+i.y+a+u.height>n.getHeight()&&(o.position="top",d=!0);var f=d?-5-u.height:a+8;h+u.width/2>n.getWidth()?(o.position=["100%",f],c.align="right"):h-u.width/2<0&&(o.position=[0,f],c.align="left")}})}function c(c,u){var h,d=l[c],f=l[u],p=o[d],A=new fh(p,e,e.ecModel);if(r&&null!=r.newTitle&&r.featureName===d&&(p.title=r.newTitle),d&&!f){if(function(e){return 0===e.indexOf("my")}(d))h={onclick:A.option.onclick,featureName:d};else{var g=DL(d);if(!g)return;h=new g}s[d]=h}else if(!(h=s[f]))return;if(h.uid=Ah("toolbox-feature"),h.model=A,h.ecModel=t,h.api=n,h instanceof IL){if(!d&&f)return void(h.dispose&&h.dispose(t,n));if(!A.get("show")||h.unusable)return void(h.remove&&h.remove(t,n))}!function(r,o,s){var l,c,u=r.getModel("iconStyle"),h=r.getModel(["emphasis","iconStyle"]),d=o instanceof IL&&o.getIcons?o.getIcons():r.get("icon"),f=r.get("title")||{};"string"==typeof d?(l={})[s]=d:l=d;"string"==typeof f?(c={})[s]=f:c=f;var p=r.iconPaths={};q(l,function(s,l){var d=Lu(s,{},{x:-a/2,y:-a/2,width:a,height:a});d.setStyle(u.getItemStyle());var f=d.ensureState("emphasis");f.style=h.getItemStyle();var A=new Vs({style:{text:c[l],align:h.get("textAlign"),borderRadius:h.get("textBorderRadius"),padding:h.get("textPadding"),fill:null},ignore:!0});d.setTextContent(A);var g=e.getModel("tooltip");g&&g.get("show")&&(d.tooltip=H({content:c[l],formatter:g.get("formatter",!0)||function(){return c[l]},formatterParams:{componentType:"toolbox",name:l,title:c[l],$vars:["name","title"]},position:g.get("position",!0)||"bottom"},g.option)),d.__title=c[l],d.on("mouseover",function(){var t=h.getItemStyle(),n="vertical"===e.get("orient")?null==e.get("right")?"right":"left":null==e.get("bottom")?"bottom":"top";A.setStyle({fill:h.get("textFill")||t.fill||t.stroke||"#000",backgroundColor:h.get("textBackgroundColor")}),d.setTextConfig({position:h.get("textPosition")||n}),A.ignore=!e.get("showTitle"),xl(this)}).on("mouseout",function(){"emphasis"!==r.get(["iconStatus",l])&&_l(this),A.hide()}),("emphasis"===r.get(["iconStatus",l])?xl:_l)(d),i.add(d),d.on("click",Z(o.onclick,o,t,n,l)),p[l]=d})}(A,h,d),A.setIconStatus=function(e,t){var n=this.option,r=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[e]=t,r[e]&&("emphasis"===t?xl:_l)(r[e])},h instanceof IL&&h.render&&h.render(A,t,n,r)}},t.prototype.updateView=function(e,t,n,r){q(this._features,function(e){e instanceof IL&&e.updateView&&e.updateView(e.model,t,n,r)})},t.prototype.remove=function(e,t){q(this._features,function(n){n instanceof IL&&n.remove&&n.remove(e,t)}),this.group.removeAll()},t.prototype.dispose=function(e,t){q(this._features,function(n){n instanceof IL&&n.dispose&&n.dispose(e,t)})},t.type="toolbox",t}(aA),RL=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return g(t,e),t.prototype.onclick=function(e,t){var n=this.model,r=n.get("name")||e.get("title.0.text")||"echarts",i="svg"===t.getZr().painter.getType(),a=i?"svg":n.get("type",!0)||"png",o=t.getConnectedDataURL({type:a,backgroundColor:n.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")});if("function"!=typeof MouseEvent||!w.browser.newEdge&&(w.browser.ie||w.browser.edge))if(window.navigator.msSaveOrOpenBlob||i){var s=o.split(","),l=s[0].indexOf("base64")>-1,c=i?decodeURIComponent(s[1]):s[1];l&&(c=atob(c));var u=r+"."+a;if(window.navigator.msSaveOrOpenBlob){for(var h=c.length,d=new Uint8Array(h);h--;)d[h]=c.charCodeAt(h);var f=new Blob([d]);window.navigator.msSaveOrOpenBlob(f,u)}else{var p=document.createElement("iframe");document.body.appendChild(p);var A=p.contentWindow,g=A.document;g.open("image/svg+xml","replace"),g.write(c),g.close(),A.focus(),g.execCommand("SaveAs",!0,u),document.body.removeChild(p)}}else{var m=n.get("lang"),v='<body style="margin:0;"><img src="'+o+'" style="max-width:100%;" title="'+(m&&m[0]||"")+'" /></body>',y=window.open();y.document.write(v),y.document.title=r}else{var b=document.createElement("a");b.download=r+"."+a,b.target="_blank",b.href=o;var x=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});b.dispatchEvent(x)}},t.getDefaultOption=function(e){return{show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:e.getLocale(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:e.getLocale(["toolbox","saveAsImage","lang"])}},t}(IL);RL.prototype.unusable=!w.canvasSupported;var NL=RL,UL=[["line","bar"],["stack"]],HL=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return g(t,e),t.prototype.getIcons=function(){var e=this.model,t=e.get("icon"),n={};return q(e.get("type"),function(e){t[e]&&(n[e]=t[e])}),n},t.getDefaultOption=function(e){return{show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:e.getLocale(["toolbox","magicType","title"]),option:{},seriesIndex:{}}},t.prototype.onclick=function(e,t,n){var r=this.model,i=r.get(["seriesIndex",n]);if(jL[n]){var a,o={series:[]};q(UL,function(e){z(e,n)>=0&&q(e,function(e){r.setIconStatus(e,"normal")})}),r.setIconStatus(n,"emphasis"),e.eachComponent({mainType:"series",query:null==i?null:{seriesIndex:i}},function(e){var t=e.subType,i=e.id,a=jL[n](t,i,e,r);a&&(j(a,e.option),o.series.push(a));var s=e.coordinateSystem;if(s&&"cartesian2d"===s.type&&("line"===n||"bar"===n)){var l=s.getAxesByScale("ordinal")[0];if(l){var c=l.dim+"Axis",u=e.getReferringComponents(c,na).models[0].componentIndex;o[c]=o[c]||[];for(var h=0;h<=u;h++)o[c][u]=o[c][u]||{};o[c][u].boundaryGap="bar"===n}}}),"stack"===n&&(a=N({stack:r.option.title.tiled,tiled:r.option.title.stack},r.option.title)),t.dispatchAction({type:"changeMagicType",currentType:n,newOption:o,newTitle:a,featureName:"magicType"})}},t}(IL),jL={line:function(e,t,n,r){if("bar"===e)return N({id:t,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},r.get(["option","line"])||{},!0)},bar:function(e,t,n,r){if("line"===e)return N({id:t,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},r.get(["option","bar"])||{},!0)},stack:function(e,t,n,r){var i="__ec_magicType_stack__"===n.get("stack");if("line"===e||"bar"===e)return r.setIconStatus("stack",i?"normal":"emphasis"),N({id:t,stack:i?"":"__ec_magicType_stack__"},r.get(["option","stack"])||{},!0)}};Qv({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(e,t){t.mergeOption(e.newOption)});var QL=HL,zL=new Array(60).join("-"),VL="\t";function GL(e){var t,n,r,i=function(e){var t={},n=[],r=[];return e.eachRawSeries(function(e){var i=e.coordinateSystem;if(!i||"cartesian2d"!==i.type&&"polar"!==i.type)n.push(e);else{var a=i.getBaseAxis();if("category"===a.type){var o=a.dim+"_"+a.index;t[o]||(t[o]={categoryAxis:a,valueAxis:i.getOtherAxis(a),series:[]},r.push({axisDim:a.dim,axisIndex:a.index})),t[o].series.push(e)}else n.push(e)}}),{seriesGroupByCategoryAxis:t,other:n,meta:r}}(e);return{value:Y([(n=i.seriesGroupByCategoryAxis,r=[],q(n,function(e,t){var n=e.categoryAxis,i=e.valueAxis.dim,a=[" "].concat(W(e.series,function(e){return e.name})),o=[n.model.getCategories()];q(e.series,function(e){var t=e.getRawData();o.push(e.getRawData().mapArray(t.mapDimension(i),function(e){return e}))});for(var s=[a.join(VL)],l=0;l<o[0].length;l++){for(var c=[],u=0;u<o.length;u++)c.push(o[u][l]);s.push(c.join(VL))}r.push(s.join("\n"))}),r.join("\n\n"+zL+"\n\n")),(t=i.other,W(t,function(e){var t=e.getRawData(),n=[e.name],r=[];return t.each(t.dimensions,function(){for(var e=arguments.length,i=arguments[e-1],a=t.getName(i),o=0;o<e-1;o++)r[o]=arguments[o];n.push((a?a+VL:"")+r.join(VL))}),n.join("\n")}).join("\n\n"+zL+"\n\n"))],function(e){return!!e.replace(/[\n\t\s]/g,"")}).join("\n\n"+zL+"\n\n"),meta:i.meta}}function $L(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}var qL=new RegExp("["+VL+"]+","g");function WL(e,t){var n={series:[]};return q(e.split(new RegExp("\n*"+zL+"\n*","g")),function(e,r){if(function(e){if(e.slice(0,e.indexOf("\n")).indexOf(VL)>=0)return!0}(e)){var i=function(e){for(var t=e.split(/\n+/g),n=[],r=W($L(t.shift()).split(qL),function(e){return{name:e,data:[]}}),i=0;i<t.length;i++){var a=$L(t[i]).split(qL);n.push(a.shift());for(var o=0;o<a.length;o++)r[o]&&(r[o].data[i]=a[o])}return{series:r,categories:n}}(e),a=t[r],o=a.axisDim+"Axis";a&&(n[o]=n[o]||[],n[o][a.axisIndex]={data:i.categories},n.series=n.series.concat(i.series))}else{i=function(e){for(var t=e.split(/\n+/g),n=$L(t.shift()),r=[],i=0;i<t.length;i++){var a=$L(t[i]);if(a){var o=a.split(qL),s="",l=void 0,c=!1;isNaN(o[0])?(c=!0,s=o[0],o=o.slice(1),r[i]={name:s,value:[]},l=r[i].value):l=r[i]=[];for(var u=0;u<o.length;u++)l.push(+o[u]);1===l.length&&(c?r[i].value=l[0]:r[i]=l[0])}}return{name:n,data:r}}(e);n.series.push(i)}}),n}var KL=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return g(t,e),t.prototype.onclick=function(e,t){var n=t.getDom(),r=this.model;this._dom&&n.removeChild(this._dom);var i=document.createElement("div");i.style.cssText="position:absolute;left:5px;top:5px;bottom:5px;right:5px;",i.style.backgroundColor=r.get("backgroundColor")||"#fff";var a=document.createElement("h4"),o=r.get("lang")||[];a.innerHTML=o[0]||r.get("title"),a.style.cssText="margin: 10px 20px;",a.style.color=r.get("textColor");var s=document.createElement("div"),l=document.createElement("textarea");s.style.cssText="display:block;width:100%;overflow:auto;";var c=r.get("optionToContent"),u=r.get("contentToOption"),h=GL(e);if("function"==typeof c){var d=c(t.getOption());"string"==typeof d?s.innerHTML=d:ce(d)&&s.appendChild(d)}else s.appendChild(l),l.readOnly=r.get("readOnly"),l.style.cssText="width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;",l.style.color=r.get("textColor"),l.style.borderColor=r.get("textareaBorderColor"),l.style.backgroundColor=r.get("textareaColor"),l.value=h.value;var f=h.meta,p=document.createElement("div");p.style.cssText="position:absolute;bottom:0;left:0;right:0;";var A="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",g=document.createElement("div"),m=document.createElement("div");A+=";background-color:"+r.get("buttonColor"),A+=";color:"+r.get("buttonTextColor");var v=this;function y(){n.removeChild(i),v._dom=null}bt(g,"click",y),bt(m,"click",function(){if(null==u&&null!=c||null!=u&&null==c)y();else{var e;try{e="function"==typeof u?u(s,t.getOption()):WL(l.value,f)}catch(e){throw y(),new Error("Data view format error "+e)}e&&t.dispatchAction({type:"changeDataView",newOption:e}),y()}}),g.innerHTML=o[1],m.innerHTML=o[2],m.style.cssText=A,g.style.cssText=A,!r.get("readOnly")&&p.appendChild(m),p.appendChild(g),i.appendChild(a),i.appendChild(s),i.appendChild(p),s.style.height=n.clientHeight-80+"px",n.appendChild(i),this._dom=i},t.prototype.remove=function(e,t){this._dom&&t.getDom().removeChild(this._dom)},t.prototype.dispose=function(e,t){this.remove(e,t)},t.getDefaultOption=function(e){return{show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:e.getLocale(["toolbox","dataView","title"]),lang:e.getLocale(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"}},t}(IL);Qv({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(e,t){var n=[];q(e.newOption.series,function(e){var r=t.getSeriesByName(e.name)[0];if(r){var i=r.get("data");n.push({name:e.name,data:function(e,t){return W(e,function(e,n){var r=t&&t[n];if(oe(r)&&!te(r)){oe(e)&&!te(e)||(e={value:e});var i=null!=r.name&&null==e.name;return e=j(e,r),i&&delete e.name,e}return e})}(e.data,i)})}else n.push(H({type:"scatter"},e))}),t.mergeOption(j({series:n},e.newOption))});var YL=KL,XL=q,JL=Zi();function ZL(e){var t=JL(e);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var eR=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return g(t,e),t.prototype.onclick=function(e,t){!function(e){JL(e).snapshots=null}(e),t.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(e){return{show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:e.getLocale(["toolbox","restore","title"])}},t}(IL);Qv({type:"restore",event:"restore",update:"prepareAndUpdate"},function(e,t){t.resetOption("recreate")});var tR=eR,nR=["dataToPoint","pointToData"],rR=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],iR=function(){function e(e,t,n){var r=this;this._targetInfoList=[];var i=oR(t,e);q(sR,function(e,t){(!n||!n.include||z(n.include,t)>=0)&&e(i,r._targetInfoList)})}return e.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,function(e,t,n){if((e.coordRanges||(e.coordRanges=[])).push(t),!e.coordRange){e.coordRange=t;var r=uR[e.brushType](0,n,t);e.__rangeOffset={offset:dR[e.brushType](r.values,e.range,[1,1]),xyMinMax:r.xyMinMax}}}),e},e.prototype.matchOutputRanges=function(e,t,n){q(e,function(e){var r=this.findTargetInfo(e,t);r&&!0!==r&&q(r.coordSyses,function(r){var i=uR[e.brushType](1,r,e.range);n(e,i.values,r,t)})},this)},e.prototype.setInputRanges=function(e,t){q(e,function(e){var n,r,i,a,o,s=this.findTargetInfo(e,t);if(e.range=e.range||[],s&&!0!==s){e.panelId=s.panelId;var l=uR[e.brushType](0,s.coordSys,e.coordRange),c=e.__rangeOffset;e.range=c?dR[e.brushType](l.values,c.offset,(n=l.xyMinMax,r=c.xyMinMax,i=pR(n),a=pR(r),o=[i[0]/a[0],i[1]/a[1]],isNaN(o[0])&&(o[0]=1),isNaN(o[1])&&(o[1]=1),o)):l.values}},this)},e.prototype.makePanelOpts=function(e,t){return W(this._targetInfoList,function(n){var r=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:t?t(n):null,clipPath:wI(r),isTargetByCursor:_I(r,e,n.coordSysModel),getLinearBrushOtherExtent:xI(r)}})},e.prototype.controlSeries=function(e,t,n){var r=this.findTargetInfo(e,n);return!0===r||r&&z(r.coordSyses,t.coordinateSystem)>=0},e.prototype.findTargetInfo=function(e,t){for(var n=this._targetInfoList,r=oR(t,e),i=0;i<n.length;i++){var a=n[i],o=e.panelId;if(o){if(a.panelId===o)return a}else for(var s=0;s<lR.length;s++)if(lR[s](r,a))return a}return!0},e}();function aR(e){return e[0]>e[1]&&e.reverse(),e}function oR(e,t){return ta(e,t,{includeMainTypes:rR})}var sR={grid:function(e,t){var n=e.xAxisModels,r=e.yAxisModels,i=e.gridModels,a=Se(),o={},s={};(n||r||i)&&(q(n,function(e){var t=e.axis.grid.model;a.set(t.id,t),o[t.id]=!0}),q(r,function(e){var t=e.axis.grid.model;a.set(t.id,t),s[t.id]=!0}),q(i,function(e){a.set(e.id,e),o[e.id]=!0,s[e.id]=!0}),a.each(function(e){var i=[];q(e.coordinateSystem.getCartesians(),function(e,t){(z(n,e.getAxis("x").model)>=0||z(r,e.getAxis("y").model)>=0)&&i.push(e)}),t.push({panelId:"grid--"+e.id,gridModel:e,coordSysModel:e,coordSys:i[0],coordSyses:i,getPanelRect:cR.grid,xAxisDeclared:o[e.id],yAxisDeclared:s[e.id]})}))},geo:function(e,t){q(e.geoModels,function(e){var n=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:n,coordSyses:[n],getPanelRect:cR.geo})})}},lR=[function(e,t){var n=e.xAxisModel,r=e.yAxisModel,i=e.gridModel;return!i&&n&&(i=n.axis.grid.model),!i&&r&&(i=r.axis.grid.model),i&&i===t.gridModel},function(e,t){var n=e.geoModel;return n&&n===t.geoModel}],cR={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(Tu(e)),t}},uR={lineX:ee(hR,0),lineY:ee(hR,1),rect:function(e,t,n){var r=t[nR[e]]([n[0][0],n[1][0]]),i=t[nR[e]]([n[0][1],n[1][1]]),a=[aR([r[0],i[0]]),aR([r[1],i[1]])];return{values:a,xyMinMax:a}},polygon:function(e,t,n){var r=[[1/0,-1/0],[1/0,-1/0]];return{values:W(n,function(n){var i=t[nR[e]](n);return r[0][0]=Math.min(r[0][0],i[0]),r[1][0]=Math.min(r[1][0],i[1]),r[0][1]=Math.max(r[0][1],i[0]),r[1][1]=Math.max(r[1][1],i[1]),i}),xyMinMax:r}}};function hR(e,t,n,r){var i=n.getAxis(["x","y"][e]),a=aR(W([0,1],function(e){return t?i.coordToData(i.toLocalCoord(r[e])):i.toGlobalCoord(i.dataToCoord(r[e]))})),o=[];return o[e]=a,o[1-e]=[NaN,NaN],{values:a,xyMinMax:o}}var dR={lineX:ee(fR,0),lineY:ee(fR,1),rect:function(e,t,n){return[[e[0][0]-n[0]*t[0][0],e[0][1]-n[0]*t[0][1]],[e[1][0]-n[1]*t[1][0],e[1][1]-n[1]*t[1][1]]]},polygon:function(e,t,n){return W(e,function(e,r){return[e[0]-n[0]*t[r][0],e[1]-n[1]*t[r][1]]})}};function fR(e,t,n,r){return[t[0]-r[e]*n[0],t[1]-r[e]*n[1]]}function pR(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}var AR,gR,mR=iR,vR=q,yR=ji+"toolbox-dataZoom_",bR=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return g(t,e),t.prototype.render=function(e,t,n,r){this._brushController||(this._brushController=new bI(n.getZr()),this._brushController.on("brush",Z(this._onBrush,this)).mount()),function(e,t,n,r,i){var a=n._isZoomActive;r&&"takeGlobalCursor"===r.type&&(a="dataZoomSelect"===r.key&&r.dataZoomSelectActive);n._isZoomActive=a,e.setIconStatus("zoom",a?"emphasis":"normal");var o=new mR(xR(e),t,{include:["grid"]}).makePanelOpts(i,function(e){return e.xAxisDeclared&&!e.yAxisDeclared?"lineX":!e.xAxisDeclared&&e.yAxisDeclared?"lineY":"rect"});n._brushController.setPanels(o).enableBrush(!(!a||!o.length)&&{brushType:"auto",brushStyle:e.getModel("brushStyle").getItemStyle()})}(e,t,this,r,n),function(e,t){e.setIconStatus("back",function(e){return ZL(e).length}(t)>1?"emphasis":"normal")}(e,t)},t.prototype.onclick=function(e,t,n){wR[n].call(this)},t.prototype.remove=function(e,t){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(e,t){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var t=e.areas;if(e.isEnd&&t.length){var n={},r=this.ecModel;this._brushController.updateCovers([]),new mR(xR(this.model),r,{include:["grid"]}).matchOutputRanges(t,r,function(e,t,n){if("cartesian2d"===n.type){var r=e.brushType;"rect"===r?(i("x",n,t[0]),i("y",n,t[1])):i({lineX:"x",lineY:"y"}[r],n,t)}}),function(e,t){var n=ZL(e);XL(t,function(t,r){for(var i=n.length-1;i>=0&&!n[i][r];i--);if(i<0){var a=e.queryComponents({mainType:"dataZoom",subType:"select",id:r})[0];if(a){var o=a.getPercentRange();n[0][r]={dataZoomId:r,start:o[0],end:o[1]}}}}),n.push(t)}(r,n),this._dispatchZoomAction(n)}function i(e,t,i){var a=t.getAxis(e),o=a.model,s=function(e,t,n){var r;return n.eachComponent({mainType:"dataZoom",subType:"select"},function(n){n.getAxisModel(e,t.componentIndex)&&(r=n)}),r}(e,o,r),l=s.findRepresentativeAxisProxy(o).getMinMaxSpan();null==l.minValueSpan&&null==l.maxValueSpan||(i=mT(0,i.slice(),a.scale.getExtent(),0,l.minValueSpan,l.maxValueSpan)),s&&(n[s.id]={dataZoomId:s.id,startValue:i[0],endValue:i[1]})}},t.prototype._dispatchZoomAction=function(e){var t=[];vR(e,function(e,n){t.push(R(e))}),t.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:t})},t.getDefaultOption=function(e){return{show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:e.getLocale(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}}},t}(IL),wR={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(function(e){var t=ZL(e),n=t[t.length-1];t.length>1&&t.pop();var r={};return XL(n,function(e,n){for(var i=t.length-1;i>=0;i--)if(e=t[i][n]){r[n]=e;break}}),r}(this.ecModel))}};function xR(e){var t={xAxisIndex:e.get("xAxisIndex",!0),yAxisIndex:e.get("yAxisIndex",!0),xAxisId:e.get("xAxisId",!0),yAxisId:e.get("yAxisId",!0)};return null==t.xAxisIndex&&null==t.xAxisId&&(t.xAxisIndex="all"),null==t.yAxisIndex&&null==t.yAxisId&&(t.yAxisIndex="all"),t}AR="dataZoom",gR=function(e){var t=e.getComponent("toolbox",0);if(t){var n=t.getModel(["feature","dataZoom"]),r=[],i=ta(e,xR(n));return vR(i.xAxisModels,function(e){return a(e,"xAxis","xAxisIndex")}),vR(i.yAxisModels,function(e){return a(e,"yAxis","yAxisIndex")}),r}function a(e,t,i){var a=e.componentIndex,o={type:"select",$fromToolbox:!0,filterMode:n.get("filterMode",!0)||"filter",id:yR+t+a};o[i]=a,r.push(o)}},ye(null==qd.get(AR)&&gR),qd.set(AR,gR);var _R=bR;var CR=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={zlevel:0,z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(Bd);function SR(e){var t=e.get("confine");return null!=t?!!t:"richText"===e.get("renderMode")}var kR=["-ms-","-moz-","-o-","-webkit-",""];function BR(e,t,n){var r=[],i=e.get("transitionDuration"),a=e.get("backgroundColor"),o=e.get("shadowBlur"),s=e.get("shadowColor"),l=e.get("shadowOffsetX"),c=e.get("shadowOffsetY"),u=e.getModel("textStyle"),h=Vp(e,"html"),d=l+"px "+c+"px "+o+"px "+s;return r.push("box-shadow:"+d),t&&i&&r.push(function(e,t){var n="cubic-bezier(0.23, 1, 0.32, 1)",r="opacity "+e/2+"s "+n+",visibility "+e/2+"s "+n;return t||(r+=",left "+e+"s "+n+",top "+e+"s "+n),W(kR,function(e){return e+"transition:"+r}).join(";")}(i,n)),a&&(w.canvasSupported?r.push("background-Color:"+a):(r.push("background-Color:#"+bn(a)),r.push("filter:alpha(opacity=70)"))),q(["width","color","radius"],function(t){var n="border-"+t,i=ed(n),a=e.get(i);null!=a&&r.push(n+":"+a+("color"===t?"":"px"))}),r.push(function(e){var t=[],n=e.get("fontSize"),r=e.getTextColor();r&&t.push("color:"+r),t.push("font:"+e.getFont()),n&&t.push("line-height:"+Math.round(3*n/2)+"px");var i=e.get("textShadowColor"),a=e.get("textShadowBlur")||0,o=e.get("textShadowOffsetX")||0,s=e.get("textShadowOffsetY")||0;return i&&a&&t.push("text-shadow:"+o+"px "+s+"px "+a+"px "+i),q(["decoration","align"],function(n){var r=e.get(n);r&&t.push("text-"+n+":"+r)}),t.join(";")}(u)),null!=h&&r.push("padding:"+td(h).join("px ")+"px"),r.join(";")+";"}function ER(e,t,n,r,i){var a=t&&t.painter;if(n){var o=a&&a.getViewportRoot();o&&function(e,t,n,r,i){ht(ut,t,r,i,!0)&&ht(e,n,ut[0],ut[1])}(e,o,document.body,r,i)}else{e[0]=r,e[1]=i;var s=a&&a.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var TR=function(){function e(e,t,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._firstShow=!0,this._longHide=!0,w.wxa)return null;var r=document.createElement("div");r.domBelongToZr=!0,this.el=r;var i=this._zr=t.getZr(),a=this._appendToBody=n&&n.appendToBody;ER(this._styleCoord,i,a,t.getWidth()/2,t.getHeight()/2),a?document.body.appendChild(r):e.appendChild(r),this._container=e;var o=this;r.onmouseenter=function(){o._enterable&&(clearTimeout(o._hideTimeout),o._show=!0),o._inContent=!0},r.onmousemove=function(e){if(e=e||window.event,!o._enterable){var t=i.handler;yt(i.painter.getViewportRoot(),e,!0),t.dispatch("mousemove",e)}},r.onmouseleave=function(){o._inContent=!1,o._enterable&&o._show&&o.hideLater(o._hideDelay)}}return e.prototype.update=function(e){var t=this._container,n=t.currentStyle||document.defaultView.getComputedStyle(t),r=t.style;"absolute"!==r.position&&"absolute"!==n.position&&(r.position="relative"),e.get("alwaysShowContent")&&this._moveIfResized(),this.el.className=e.get("className")||""},e.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,r=this._styleCoord,i=n.offsetHeight/2;t=dd(t),n.style.cssText="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+BR(e,!this._firstShow,this._longHide)+";left:"+r[0]+"px;top:"+(r[1]-i)+"px;border-color: "+t+";"+(e.get("extraCssText")||""),n.style.display=n.innerHTML?"block":"none",n.style.pointerEvents=this._enterable?"auto":"none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(e,t,n,r,i){if(null!=e){var a=this.el;if(re(i)&&"item"===n.get("trigger")&&!SR(n)&&(e+=function(e,t,n){if(!re(n)||"inside"===n)return"";t=dd(t);var r,i=r="left"===(r=n)?"right":"right"===r?"left":"top"===r?"bottom":"top",a="",o="";return z(["left","right"],i)>-1?(a=i+":-6px;top:50%;",o="translateY(-50%) rotate("+("left"===i?-225:-45)+"deg)"):(a=i+":-6px;left:50%;",o="translateX(-50%) rotate("+("top"===i?225:45)+"deg)"),'<div style="'+["position:absolute;width:10px;height:10px;",""+a+(o=W(kR,function(e){return e+"transform:"+o}).join(";"))+";","border-bottom: "+t+" solid 1px;","border-right: "+t+" solid 1px;","background-color: "+e+";","box-shadow: 8px 8px 16px -3px #000;"].join("")+'"></div>'}(n.get("backgroundColor"),r,i)),re(e))a.innerHTML=e;else if(e){a.innerHTML="",te(e)||(e=[e]);for(var o=0;o<e.length;o++)ce(e[o])&&e[o].parentNode!==a&&a.appendChild(e[o])}}},e.prototype.setEnterable=function(e){this._enterable=e},e.prototype.getSize=function(){var e=this.el;return[e.clientWidth,e.clientHeight]},e.prototype.moveTo=function(e,t){var n=this._styleCoord;if(ER(n,this._zr,this._appendToBody,e,t),null!=n[0]&&null!=n[1]){var r=this.el.style;r.left=n[0].toFixed(0)+"px",r.top=n[1].toFixed(0)+"px"}},e.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},e.prototype.hide=function(){var e=this;this.el.style.visibility="hidden",this.el.style.opacity="0",this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},e.prototype.hideLater=function(e){!this._show||this._inContent&&this._enterable||(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(Z(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this.el.parentNode.removeChild(this.el)},e.prototype.getOuterSize=function(){var e=this.el.clientWidth,t=this.el.clientHeight;if(document.defaultView&&document.defaultView.getComputedStyle){var n=document.defaultView.getComputedStyle(this.el);n&&(e+=parseInt(n.borderLeftWidth,10)+parseInt(n.borderRightWidth,10),t+=parseInt(n.borderTopWidth,10)+parseInt(n.borderBottomWidth,10))}return{width:e,height:t}},e}();function IR(e){return Math.max(0,e)}function MR(e){var t=IR(e.shadowBlur||0),n=IR(e.shadowOffsetX||0),r=IR(e.shadowOffsetY||0);return{left:IR(t-n),right:IR(t+n),top:IR(t-r),bottom:IR(t+r)}}function FR(e,t,n,r){e[0]=n,e[1]=r,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var DR=function(){function e(e){this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._zr=e.getZr(),FR(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return e.prototype.update=function(e){e.get("alwaysShowContent")&&this._moveIfResized()},e.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},e.prototype.setContent=function(e,t,n,r,i){oe(e)&&Ui(""),this.el&&this._zr.remove(this.el);var a=n.getModel("textStyle");this.el=new Vs({style:{rich:t.richTextStyles,text:e,lineHeight:22,backgroundColor:n.get("backgroundColor"),borderRadius:n.get("borderRadius"),borderWidth:1,borderColor:r,shadowColor:n.get("shadowColor"),shadowBlur:n.get("shadowBlur"),shadowOffsetX:n.get("shadowOffsetX"),shadowOffsetY:n.get("shadowOffsetY"),textShadowColor:a.get("textShadowColor"),textShadowBlur:a.get("textShadowBlur")||0,textShadowOffsetX:a.get("textShadowOffsetX")||0,textShadowOffsetY:a.get("textShadowOffsetY")||0,fill:n.get(["textStyle","color"]),padding:Vp(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),this._zr.add(this.el);var o=this;this.el.on("mouseover",function(){o._enterable&&(clearTimeout(o._hideTimeout),o._show=!0),o._inContent=!0}),this.el.on("mouseout",function(){o._enterable&&o._show&&o.hideLater(o._hideDelay),o._inContent=!1})},e.prototype.setEnterable=function(e){this._enterable=e},e.prototype.getSize=function(){var e=this.el,t=this.el.getBoundingRect(),n=MR(e.style);return[t.width+n.left+n.right,t.height+n.top+n.bottom]},e.prototype.moveTo=function(e,t){var n=this.el;if(n){var r=this._styleCoord;FR(r,this._zr,e,t),e=r[0],t=r[1];var i=n.style,a=IR(i.borderWidth||0),o=MR(i);n.x=e+a+o.left,n.y=t+a+o.top,n.markRedraw()}},e.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},e.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},e.prototype.hideLater=function(e){!this._show||this._inContent&&this._enterable||(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(Z(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.getOuterSize=function(){var e=this.getSize();return{width:e[0],height:e[1]}},e.prototype.dispose=function(){this._zr.remove(this.el)},e}(),PR=Z,OR=q,LR=mi,RR=new Ds({shape:{x:-1,y:-1,width:2,height:2}});function NR(e){for(var t=e.pop();e.length;){var n=e.pop();n&&(n instanceof fh&&(n=n.get("tooltip",!0)),re(n)&&(n={formatter:n}),t=new fh(n,t,t.ecModel))}return t}function UR(e,t){return e.dispatchAction||Z(t.dispatchAction,t)}function HR(e){return"center"===e||"middle"===e}var jR=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.prototype.init=function(e,t){if(!w.node){var n,r=e.getComponent("tooltip"),i=r.get("renderMode");this._renderMode="auto"===(n=i)?w.domSupported?"html":"richText":n||"html",this._tooltipContent="richText"===this._renderMode?new DR(t):new TR(t.getDom(),t,{appendToBody:r.get("appendToBody",!0)})}},t.prototype.render=function(e,t,n){if(!w.node){this.group.removeAll(),this._tooltipModel=e,this._ecModel=t,this._api=n,this._alwaysShowContent=e.get("alwaysShowContent");var r=this._tooltipContent;r.update(e),r.setEnterable(e.get("enterable")),this._initGlobalListener(),this._keepShow()}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel.get("triggerOn");LP("itemTooltip",this._api,PR(function(t,n,r){"none"!==e&&(e.indexOf(t)>=0?this._tryShow(n,r):"leave"===t&&this._hide(r))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,t=this._ecModel,n=this._api;if(null!=this._lastX&&null!=this._lastY&&"none"!==e.get("triggerOn")){var r=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&r.manuallyShowTip(e,t,n,{x:r._lastX,y:r._lastY,dataByCoordSys:r._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,t,n,r){if(r.from!==this.uid&&!w.node){var i=UR(r,n);this._ticket="";var a=r.dataByCoordSys;if(r.tooltip&&null!=r.x&&null!=r.y){var o=RR;o.x=r.x,o.y=r.y,o.update(),o.tooltip=r.tooltip,this._tryShow({offsetX:r.x,offsetY:r.y,target:o},i)}else if(a)this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,dataByCoordSys:a,tooltipOption:r.tooltipOption},i);else if(null!=r.seriesIndex){if(this._manuallyAxisShowTip(e,t,n,r))return;var s=jP(r,t),l=s.point[0],c=s.point[1];null!=l&&null!=c&&this._tryShow({offsetX:l,offsetY:c,position:r.position,target:s.el},i)}else null!=r.x&&null!=r.y&&(n.dispatchAction({type:"updateAxisPointer",x:r.x,y:r.y}),this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,target:n.getZr().findHover(r.x,r.y).target},i))}},t.prototype.manuallyHideTip=function(e,t,n,r){var i=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&i.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,r.from!==this.uid&&this._hide(UR(r,n))},t.prototype._manuallyAxisShowTip=function(e,t,n,r){var i=r.seriesIndex,a=r.dataIndex,o=t.getComponent("axisPointer").coordSysAxesInfo;if(null!=i&&null!=a&&null!=o){var s=t.getSeriesByIndex(i);if(s)if("axis"===NR([s.getData().getItemModel(a),s,(s.coordinateSystem||{}).model,e]).get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:i,dataIndex:a,position:r.position}),!0}},t.prototype._tryShow=function(e,t){var n=e.target;if(this._tooltipModel){this._lastX=e.offsetX,this._lastY=e.offsetY;var r=e.dataByCoordSys;r&&r.length?this._showAxisTooltip(r,e):n&&Qg(n,function(e){return null!=Gs(e).dataIndex},!0)?(this._lastDataByCoordSys=null,this._showSeriesItemTooltip(e,n,t)):n&&n.tooltip?(this._lastDataByCoordSys=null,this._showComponentItemTooltip(e,n,t)):(this._lastDataByCoordSys=null,this._hide(t))}},t.prototype._showOrMove=function(e,t){var n=e.get("showDelay");t=Z(t,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(t,n):t()},t.prototype._showAxisTooltip=function(e,t){var n=this._ecModel,r=this._tooltipModel,i=[t.offsetX,t.offsetY],a=NR([t.tooltipOption,r]),o=this._renderMode,s=[],l=Lp("section",{blocks:[],noHeader:!0}),c=[],u=new Gp;OR(e,function(e){OR(e.dataByAxis,function(e){var t=n.getComponent(e.axisDim+"Axis",e.axisIndex),r=e.value;if(t&&null!=r){var i=xP(r,t.axis,n,e.seriesDataIndices,e.valueLabelOpt),a=Lp("section",{header:i,noHeader:!be(i),sortBlocks:!0,blocks:[]});l.blocks.push(a),q(e.seriesDataIndices,function(l){var h=n.getSeriesByIndex(l.seriesIndex),d=l.dataIndexInside,f=h.getDataParams(d);f.axisDim=e.axisDim,f.axisIndex=e.axisIndex,f.axisType=e.axisType,f.axisId=e.axisId,f.axisValue=Wb(t.axis,{value:r}),f.axisValueLabel=i,f.marker=u.makeTooltipMarker("item",dd(f.color),o);var p=lp(h.formatTooltip(d,!0,null));p.markupFragment&&a.blocks.push(p.markupFragment),p.markupText&&c.push(p.markupText),s.push(f)})}})}),l.blocks.reverse(),c.reverse();var h=t.position,d=a.get("order"),f=Up(l,u,o,d,n.get("useUTC"),a.get("textStyle"));f&&c.unshift(f);var p="richText"===o?"\n\n":"<br/>",A=c.join(p);this._showOrMove(a,function(){this._updateContentNotChangedOnAxis(e)?this._updatePosition(a,h,i[0],i[1],this._tooltipContent,s):this._showTooltipContent(a,A,s,Math.random()+"",i[0],i[1],h,null,u)})},t.prototype._showSeriesItemTooltip=function(e,t,n){var r=Qg(t,function(e){return null!=Gs(e).dataIndex},!0),i=this._ecModel,a=Gs(r),o=a.seriesIndex,s=i.getSeriesByIndex(o),l=a.dataModel||s,c=a.dataIndex,u=a.dataType,h=l.getData(u),d=this._renderMode,f=NR([h.getItemModel(c),l,s&&(s.coordinateSystem||{}).model,this._tooltipModel]),p=f.get("trigger");if(null==p||"item"===p){var A=l.getDataParams(c,u),g=new Gp;A.marker=g.makeTooltipMarker("item",dd(A.color),d);var m=lp(l.formatTooltip(c,!1,u)),v=f.get("order"),y=m.markupFragment?Up(m.markupFragment,g,d,v,i.get("useUTC"),f.get("textStyle")):m.markupText,b="item_"+l.name+"_"+c;this._showOrMove(f,function(){this._showTooltipContent(f,y,A,b,e.offsetX,e.offsetY,e.position,e.target,g)}),n({type:"showTip",dataIndexInside:c,dataIndex:h.getRawIndex(c),seriesIndex:o,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,t,n){var r=t.tooltip;if(re(r)){r={content:r,formatter:r}}var i=new fh(r,this._tooltipModel,this._ecModel),a=i.get("content"),o=Math.random()+"",s=new Gp;this._showOrMove(i,function(){this._showTooltipContent(i,a,i.get("formatterParams")||{},o,e.offsetX,e.offsetY,e.position,t,s)}),n({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,t,n,r,i,a,o,s,l){if(this._ticket="",e.get("showContent")&&e.get("show")){var c=this._tooltipContent,u=e.get("formatter");o=o||e.get("position");var h=t,d=this._getNearestPoint([i,a],n,e.get("trigger"),e.get("borderColor"));if(u&&re(u)){var f=e.ecModel.get("useUTC"),p=te(n)?n[0]:n;h=u,p&&p.axisType&&p.axisType.indexOf("time")>=0&&(h=Oh(p.axisValue,h,f)),h=ld(h,n,!0)}else if(ne(u)){var A=PR(function(t,r){t===this._ticket&&(c.setContent(r,l,e,d.color,o),this._updatePosition(e,o,i,a,c,n,s))},this);this._ticket=r,h=u(n,r,A)}c.setContent(h,l,e,d.color,o),c.show(e,d.color),this._updatePosition(e,o,i,a,c,n,s)}},t.prototype._getNearestPoint=function(e,t,n,r){return"axis"===n||te(t)?{color:r||("html"===this._renderMode?"#fff":"none")}:te(t)?void 0:{color:r||t.color||t.borderColor}},t.prototype._updatePosition=function(e,t,n,r,i,a,o){var s=this._api.getWidth(),l=this._api.getHeight();t=t||e.get("position");var c=i.getSize(),u=e.get("align"),h=e.get("verticalAlign"),d=o&&o.getBoundingRect().clone();if(o&&d.applyTransform(o.transform),ne(t)&&(t=t([n,r],a,i.el,d,{viewSize:[s,l],contentSize:c.slice()})),te(t))n=LR(t[0],s),r=LR(t[1],l);else if(oe(t)){var f=t;f.width=c[0],f.height=c[1];var p=yd(f,{width:s,height:l});n=p.x,r=p.y,u=null,h=null}else if(re(t)&&o){var A=function(e,t,n){var r=n[0],i=n[1],a=0,o=0,s=t.width,l=t.height;switch(e){case"inside":a=t.x+s/2-r/2,o=t.y+l/2-i/2;break;case"top":a=t.x+s/2-r/2,o=t.y-i-10;break;case"bottom":a=t.x+s/2-r/2,o=t.y+l+10;break;case"left":a=t.x-r-10-5,o=t.y+l/2-i/2;break;case"right":a=t.x+s+10+5,o=t.y+l/2-i/2}return[a,o]}(t,d,c);n=A[0],r=A[1]}else{A=function(e,t,n,r,i,a,o){var s=n.getOuterSize(),l=s.width,c=s.height;null!=a&&(e+l+a+2>r?e-=l+a:e+=a);null!=o&&(t+c+o>i?t-=c+o:t+=o);return[e,t]}(n,r,i,s,l,u?null:20,h?null:20);n=A[0],r=A[1]}if(u&&(n-=HR(u)?c[0]/2:"right"===u?c[0]:0),h&&(r-=HR(h)?c[1]/2:"bottom"===h?c[1]:0),SR(e)){A=function(e,t,n,r,i){var a=n.getOuterSize(),o=a.width,s=a.height;return e=Math.min(e+o,r)-o,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}(n,r,i,s,l);n=A[0],r=A[1]}i.moveTo(n,r)},t.prototype._updateContentNotChangedOnAxis=function(e){var t=this._lastDataByCoordSys,n=!!t&&t.length===e.length;return n&&OR(t,function(t,r){var i=t.dataByAxis||[],a=(e[r]||{}).dataByAxis||[];(n=n&&i.length===a.length)&&OR(i,function(e,t){var r=a[t]||{},i=e.seriesDataIndices||[],o=r.seriesDataIndices||[];(n=n&&e.value===r.value&&e.axisType===r.axisType&&e.axisId===r.axisId&&i.length===o.length)&&OR(i,function(e,t){var r=o[t];n=n&&e.seriesIndex===r.seriesIndex&&e.dataIndex===r.dataIndex})})}),this._lastDataByCoordSys=e,!!n},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,t){w.node||(this._tooltipContent.dispose(),UP("itemTooltip",t))},t.type="tooltip",t}(aA);var QR=["rect","polygon","keep","clear"];function zR(e,t){var n=Qi(e?e.brush:[]);if(n.length){var r=[];q(n,function(e){var t=e.hasOwnProperty("toolbox")?e.toolbox:[];t instanceof Array&&(r=r.concat(t))});var i=e&&e.toolbox;te(i)&&(i=i[0]),i||(i={feature:{}},e.toolbox=[i]);var a,o,s=i.feature||(i.feature={}),l=s.brush||(s.brush={}),c=l.type||(l.type=[]);c.push.apply(c,r),o={},q(a=c,function(e){o[e]=1}),a.length=0,q(o,function(e,t){a.push(t)}),t&&!c.length&&c.push.apply(c,QR)}}var VR=q;function GR(e){if(e)for(var t in e)if(e.hasOwnProperty(t))return!0}function $R(e,t,n){var r={};return VR(t,function(t){var i,a=r[t]=((i=function(){}).prototype.__hidden=i.prototype,new i);VR(e[t],function(e,r){if(bB.isValidType(r)){var i={type:r,visual:e};n&&n(i,t),a[r]=new bB(i),"opacity"===r&&((i=R(i)).type="colorAlpha",a.__hidden.__alphaForOpacity=new bB(i))}})}),r}function qR(e,t,n){var r;q(n,function(e){t.hasOwnProperty(e)&&GR(t[e])&&(r=!0)}),r&&q(n,function(n){t.hasOwnProperty(n)&&GR(t[n])?e[n]=R(t[n]):delete e[n]})}var WR={lineX:KR(0),lineY:KR(1),rect:{point:function(e,t,n){return e&&n.boundingRect.contain(e[0],e[1])},rect:function(e,t,n){return e&&n.boundingRect.intersect(e)}},polygon:{point:function(e,t,n){return e&&n.boundingRect.contain(e[0],e[1])&&ow(n.range,e[0],e[1])},rect:function(e,t,n){var r=n.range;if(!e||r.length<=1)return!1;var i=e.x,a=e.y,o=e.width,s=e.height,l=r[0];return!!(ow(r,i,a)||ow(r,i+o,a)||ow(r,i,a+s)||ow(r,i+o,a+s)||tr.create(e).contain(l[0],l[1])||Ru(i,a,i+o,a,r)||Ru(i,a,i,a+s,r)||Ru(i+o,a,i+o,a+s,r)||Ru(i,a+s,i+o,a+s,r))||void 0}}};function KR(e){var t=["x","y"],n=["width","height"];return{point:function(t,n,r){if(t){var i=r.range;return YR(t[e],i)}},rect:function(r,i,a){if(r){var o=a.range,s=[r[t[e]],r[t[e]]+r[n[e]]];return s[1]<s[0]&&s.reverse(),YR(s[0],o)||YR(s[1],o)||YR(o[0],s)||YR(o[1],s)}}}}function YR(e,t){return t[0]<=e&&e<=t[1]}var XR=["inBrush","outOfBrush"],JR="__ecBrushSelect",ZR="__ecInBrushSelectEvent";function eN(e){e.eachComponent({mainType:"brush"},function(t){(t.brushTargetManager=new mR(t.option,e)).setInputRanges(t.areas,e)})}function tN(e,t,n){var r,i,a=[];e.eachComponent({mainType:"brush"},function(e){n&&"takeGlobalCursor"===n.type&&e.setBrushOption("brush"===n.key?n.brushOption:{brushType:!1})}),eN(e),e.eachComponent({mainType:"brush"},function(t,n){var o={brushId:t.id,brushIndex:n,brushName:t.name,areas:R(t.areas),selected:[]};a.push(o);var s=t.option,l=s.brushLink,c=[],u=[],h=[],d=!1;n||(r=s.throttleType,i=s.throttleDelay);var f=W(t.areas,function(e){var t=iN[e.brushType],n=j({boundingRect:t?t(e):void 0},e);return n.selectors=function(e){var t=e.brushType,n={point:function(r){return WR[t].point(r,n,e)},rect:function(r){return WR[t].rect(r,n,e)}};return n}(n),n}),p=$R(t.option,XR,function(e){e.mappingMethod="fixed"});function A(e){return"all"===l||!!c[e]}function g(e){return!!e.length}te(l)&&q(l,function(e){c[e]=1}),e.eachSeries(function(n,r){var i=h[r]=[];"parallel"===n.subType?function(e,t){var n=e.coordinateSystem;d=d||n.hasAxisBrushed(),A(t)&&n.eachActiveState(e.getData(),function(e,t){"active"===e&&(u[t]=1)})}(n,r):function(n,r,i){if(!n.brushSelector||function(e,t){var n=e.option.seriesIndex;return null!=n&&"all"!==n&&(te(n)?z(n,t)<0:t!==n)}(t,r))return;if(q(f,function(r){t.brushTargetManager.controlSeries(r,n,e)&&i.push(r),d=d||g(i)}),A(r)&&g(i)){var a=n.getData();a.each(function(e){rN(n,i,a,e)&&(u[e]=1)})}}(n,r,i)}),e.eachSeries(function(e,t){var n={seriesId:e.id,seriesIndex:t,seriesName:e.name,dataIndex:[]};o.selected.push(n);var r=h[t],i=e.getData(),a=A(t)?function(e){return u[e]?(n.dataIndex.push(i.getRawIndex(e)),"inBrush"):"outOfBrush"}:function(t){return rN(e,r,i,t)?(n.dataIndex.push(i.getRawIndex(t)),"inBrush"):"outOfBrush"};(A(t)?d:g(r))&&function(e,t,n,r,i,a){var o,s={};function l(e){return rg(n,o,e)}function c(e,t){ag(n,o,e,t)}function u(e,u){o=null==a?e:u;var h=n.getRawDataItem(o);if(!h||!1!==h.visualMap)for(var d=r.call(i,e),f=t[d],p=s[d],A=0,g=p.length;A<g;A++){var m=p[A];f[m]&&f[m].applyVisual(e,l,c)}}q(e,function(e){var n=bB.prepareVisualTypes(t[e]);s[e]=n}),null==a?n.each(u):n.each([a],u)}(XR,p,i,a)})}),function(e,t,n,r,i){if(!i)return;var a=e.getZr();if(a[ZR])return;a[JR]||(a[JR]=nN);bA(a,JR,n,t)(e,r)}(t,r,i,a,n)}function nN(e,t){if(!e.isDisposed()){var n=e.getZr();n[ZR]=!0,e.dispatchAction({type:"brushSelect",batch:t}),n[ZR]=!1}}function rN(e,t,n,r){for(var i=0,a=t.length;i<a;i++){var o=t[i];if(e.brushSelector(r,n,o.selectors,o))return!0}}var iN={rect:function(e){return aN(e.range)},polygon:function(e){for(var t,n=e.range,r=0,i=n.length;r<i;r++){t=t||[[1/0,-1/0],[1/0,-1/0]];var a=n[r];a[0]<t[0][0]&&(t[0][0]=a[0]),a[0]>t[0][1]&&(t[0][1]=a[0]),a[1]<t[1][0]&&(t[1][0]=a[1]),a[1]>t[1][1]&&(t[1][1]=a[1])}return t&&aN(t)}};function aN(e){return new tr(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var oN=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.prototype.init=function(e,t){this.ecModel=e,this.api=t,this.model,(this._brushController=new bI(t.getZr())).on("brush",Z(this._onBrush,this)).mount()},t.prototype.render=function(e,t,n,r){this.model=e,this._updateController(e,t,n,r)},t.prototype.updateTransform=function(e,t,n,r){eN(t),this._updateController(e,t,n,r)},t.prototype.updateVisual=function(e,t,n,r){this.updateTransform(e,t,n,r)},t.prototype.updateView=function(e,t,n,r){this._updateController(e,t,n,r)},t.prototype._updateController=function(e,t,n,r){(!r||r.$from!==e.id)&&this._brushController.setPanels(e.brushTargetManager.makePanelOpts(n)).enableBrush(e.brushOption).updateCovers(e.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(e){var t=this.model.id,n=this.model.brushTargetManager.setOutputRanges(e.areas,this.ecModel);(!e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:t,areas:R(n),$from:t}),e.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:t,areas:R(n),$from:t})},t.type="brush",t}(aA);function sN(e,t){return N({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new fh(e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}var lN=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.areas=[],n.brushOption={},n}return g(t,e),t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&qR(n,e,["inBrush","outOfBrush"]);var r=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:"#ddd"},r.hasOwnProperty("liftZ")||(r.liftZ=5)},t.prototype.setAreas=function(e){e&&(this.areas=W(e,function(e){return sN(this.option,e)},this))},t.prototype.setBrushOption=function(e){this.brushOption=sN(this.option,e),this.brushType=this.brushOption.brushType},t.type="brush",t.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],t.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},t}(Bd),cN=["rect","polygon","lineX","lineY","keep","clear"],uN=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return g(t,e),t.prototype.render=function(e,t,n){var r,i,a;t.eachComponent({mainType:"brush"},function(e){r=e.brushType,i=e.brushOption.brushMode||"single",a=a||!!e.areas.length}),this._brushType=r,this._brushMode=i,q(e.get("type",!0),function(t){e.setIconStatus(t,("keep"===t?"multiple"===i:"clear"===t?a:t===r)?"emphasis":"normal")})},t.prototype.updateView=function(e,t,n){this.render(e,t,n)},t.prototype.getIcons=function(){var e=this.model,t=e.get("icon",!0),n={};return q(e.get("type",!0),function(e){t[e]&&(n[e]=t[e])}),n},t.prototype.onclick=function(e,t,n){var r=this._brushType,i=this._brushMode;"clear"===n?(t.dispatchAction({type:"axisAreaSelect",intervals:[]}),t.dispatchAction({type:"brush",command:"clear",areas:[]})):t.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?r:r!==n&&n,brushMode:"keep"===n?"multiple"===i?"single":"multiple":i}})},t.getDefaultOption=function(e){return{show:!0,type:cN.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:e.getLocale(["toolbox","brush","title"])}},t}(IL);var hN=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:"box",ignoreSize:!0},n}return g(t,e),t.type="title",t.defaultOption={zlevel:0,z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t}(Bd),dN=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.prototype.render=function(e,t,n){if(this.group.removeAll(),e.get("show")){var r=this.group,i=e.getModel("textStyle"),a=e.getModel("subtextStyle"),o=e.get("textAlign"),s=Ae(e.get("textBaseline"),e.get("textVerticalAlign")),l=new Vs({style:Gu(i,{text:e.get("text"),fill:i.getTextColor()},{disableBox:!0}),z2:10}),c=l.getBoundingRect(),u=e.get("subtext"),h=new Vs({style:Gu(a,{text:u,fill:a.getTextColor(),y:c.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=e.get("link"),f=e.get("sublink"),p=e.get("triggerEvent",!0);l.silent=!d&&!p,h.silent=!f&&!p,d&&l.on("click",function(){fd(d,"_"+e.get("target"))}),f&&h.on("click",function(){fd(f,"_"+e.get("subtarget"))}),Gs(l).eventData=Gs(h).eventData=p?{componentType:"title",componentIndex:e.componentIndex}:null,r.add(l),u&&r.add(h);var A=r.getBoundingRect(),g=e.getBoxLayoutParams();g.width=A.width,g.height=A.height;var m=yd(g,{width:n.getWidth(),height:n.getHeight()},e.get("padding"));o||("middle"===(o=e.get("left")||e.get("right"))&&(o="center"),"right"===o?m.x+=m.width:"center"===o&&(m.x+=m.width/2)),s||("center"===(s=e.get("top")||e.get("bottom"))&&(s="middle"),"bottom"===s?m.y+=m.height:"middle"===s&&(m.y+=m.height/2),s=s||"top"),r.x=m.x,r.y=m.y,r.markRedraw();var v={align:o,verticalAlign:s};l.setStyle(v),h.setStyle(v),A=r.getBoundingRect();var y=m.margin,b=e.getItemStyle(["color","opacity"]);b.fill=e.get("backgroundColor");var w=new Ds({shape:{x:A.x-y[3],y:A.y-y[0],width:A.width+y[1]+y[3],height:A.height+y[0]+y[2],r:e.get("borderRadius")},style:b,subPixelOptimize:!0,silent:!0});r.add(w)}},t.type="title",t}(aA);var fN=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode="box",n}return g(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),this._initData()},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(e){null==e&&(e=this.option.currentIndex);var t=this._data.count();this.option.loop?e=(e%t+t)%t:(e>=t&&(e=t-1),e<0&&(e=0)),this.option.currentIndex=e},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(e){this.option.autoPlay=!!e},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var e,t=this.option,n=t.data||[],r=t.axisType,i=this._names=[];"category"===r?(e=[],q(n,function(t,n){var r,a=Ki(Gi(t),"");oe(t)?(r=R(t)).value=n:r=n,e.push(r),i.push(a)})):e=n;var a={category:"ordinal",time:"time",value:"number"}[r]||"number";(this._data=new Dy([{name:"value",type:a}],this)).initData(e,i)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if("category"===this.get("axisType"))return this._names.slice()},t.type="timeline",t.defaultOption={zlevel:0,z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},t}(Bd),pN=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.type="timeline.slider",t.defaultOption=gh(fN.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),t}(fN);G(pN,sp.prototype);var AN=pN,gN=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.type="timeline",t}(aA),mN=function(e){function t(t,n,r,i){var a=e.call(this,t,n,r)||this;return a.type=i||"value",a}return g(t,e),t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")},t}(ww),vN=Math.PI,yN=Zi();function bN(e,t,n,r,i,a){var o=t.get("color");i?(i.setColor(o),n.add(i),a&&a.onUpdate(i)):((i=Zg(e.get("symbol"),-1,-1,2,2,o)).setStyle("strokeNoScale",!0),n.add(i),a&&a.onCreate(i));var s=t.getItemStyle(["color"]);i.setStyle(s),r=N({rectHover:!0,z2:100},r,!0);var l=e.get("symbolSize");l=l instanceof Array?l.slice():[+l,+l],r.scaleX=l[0]/2,r.scaleY=l[1]/2;var c=e.get("symbolOffset");c&&(r.x=r.x||0,r.y=r.y||0,r.x+=mi(c[0],l[0]),r.y+=mi(c[1],l[1]));var u=e.get("symbolRotate");return r.rotation=(u||0)*Math.PI/180||0,i.attr(r),i.updateTransform(),i}function wN(e,t,n,r,i,a){if(!e.dragging){var o=i.getModel("checkpointStyle"),s=r.dataToCoord(i.getData().get("value",n));if(a||!o.get("animation",!0))e.attr({x:s,y:0}),t&&t.attr({shape:{x2:s}});else{var l={duration:o.get("animationDuration",!0),easing:o.get("animationEasing",!0)};e.stopAnimation(null,!0),e.animateTo({x:s,y:0},l),t&&t.animateTo({shape:{x2:s}},l)}}}var xN=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.prototype.init=function(e,t){this.api=t},t.prototype.render=function(e,t,n){if(this.model=e,this.api=n,this.ecModel=t,this.group.removeAll(),e.get("show",!0)){var r=this._layout(e,n),i=this._createGroup("_mainGroup"),a=this._createGroup("_labelGroup"),o=this._axis=this._createAxis(r,e);e.formatTooltip=function(e){return Lp("nameValue",{noName:!0,value:o.scale.getLabel({value:e})})},q(["AxisLine","AxisTick","Control","CurrentPointer"],function(t){this["_render"+t](r,i,o,e)},this),this._renderAxisLabel(r,a,o,e),this._position(r,e)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(e,t){var n,r,i,a,o=e.get(["label","position"]),s=e.get("orient"),l=function(e,t){return yd(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()},e.get("padding"))}(e,t),c={horizontal:"center",vertical:(n=null==o||"auto"===o?"horizontal"===s?l.y+l.height/2<t.getHeight()/2?"-":"+":l.x+l.width/2<t.getWidth()/2?"+":"-":re(o)?{horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[s][o]:o)>=0||"+"===n?"left":"right"},u={horizontal:n>=0||"+"===n?"top":"bottom",vertical:"middle"},h={horizontal:0,vertical:vN/2},d="vertical"===s?l.height:l.width,f=e.getModel("controlStyle"),p=f.get("show",!0),A=p?f.get("itemSize"):0,g=p?f.get("itemGap"):0,m=A+g,v=e.get(["label","rotate"])||0;v=v*vN/180;var y=f.get("position",!0),b=p&&f.get("showPlayBtn",!0),w=p&&f.get("showPrevBtn",!0),x=p&&f.get("showNextBtn",!0),_=0,C=d;"left"===y||"bottom"===y?(b&&(r=[0,0],_+=m),w&&(i=[_,0],_+=m),x&&(a=[C-A,0],C-=m)):(b&&(r=[C-A,0],C-=m),w&&(i=[0,0],_+=m),x&&(a=[C-A,0],C-=m));var S=[_,C];return e.get("inverse")&&S.reverse(),{viewRect:l,mainLength:d,orient:s,rotation:h[s],labelRotation:v,labelPosOpt:n,labelAlign:e.get(["label","align"])||c[s],labelBaseline:e.get(["label","verticalAlign"])||e.get(["label","baseline"])||u[s],playPosition:r,prevBtnPosition:i,nextBtnPosition:a,axisExtent:S,controlSize:A,controlGap:g}},t.prototype._position=function(e,t){var n=this._mainGroup,r=this._labelGroup,i=e.viewRect;if("vertical"===e.orient){var a=[1,0,0,1,0,0],o=i.x,s=i.y+i.height;Ut(a,a,[-o,-s]),Ht(a,a,-vN/2),Ut(a,a,[o,s]),(i=i.clone()).applyTransform(a)}var l=g(i),c=g(n.getBoundingRect()),u=g(r.getBoundingRect()),h=[n.x,n.y],d=[r.x,r.y];d[0]=h[0]=l[0][0];var f,p=e.labelPosOpt;null==p||re(p)?(m(h,c,l,1,f="+"===p?0:1),m(d,u,l,1,1-f)):(m(h,c,l,1,f=p>=0?0:1),d[1]=h[1]+p);function A(e){e.originX=l[0][0]-e.x,e.originY=l[1][0]-e.y}function g(e){return[[e.x,e.x+e.width],[e.y,e.y+e.height]]}function m(e,t,n,r,i){e[r]+=n[r][i]-t[r][i]}n.setPosition(h),r.setPosition(d),n.rotation=r.rotation=e.rotation,A(n),A(r)},t.prototype._createAxis=function(e,t){var n=t.getData(),r=t.get("axisType"),i=function(e,t){if(t=t||e.get("type"))switch(t){case"category":return new nb({ordinalMeta:e.getCategories(),extent:[1/0,-1/0]});case"time":return new kb({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new ab}}(t,r);i.getTicks=function(){return n.mapArray(["value"],function(e){return{value:e}})};var a=n.getDataExtent("value");i.setExtent(a[0],a[1]),i.niceTicks();var o=new mN("value",i,e.axisExtent,r);return o.model=t,o},t.prototype._createGroup=function(e){var t=this[e]=new ii;return this.group.add(t),t},t.prototype._renderAxisLine=function(e,t,n,r){var i=n.getExtent();if(r.get(["lineStyle","show"])){var a=new Hc({shape:{x1:i[0],y1:0,x2:i[1],y2:0},style:H({lineCap:"round"},r.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});t.add(a);var o=this._progressLine=new Hc({shape:{x1:i[0],x2:this._currentPointer?this._currentPointer.x:i[0],y1:0,y2:0},style:j({lineCap:"round",lineWidth:a.style.lineWidth},r.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});t.add(o)}},t.prototype._renderAxisTick=function(e,t,n,r){var i=this,a=r.getData(),o=n.scale.getTicks();this._tickSymbols=[],q(o,function(e){var o=n.dataToCoord(e.value),s=a.getItemModel(e.value),l=s.getModel("itemStyle"),c=s.getModel(["emphasis","itemStyle"]),u=s.getModel(["progress","itemStyle"]),h={x:o,y:0,onclick:Z(i._changeTimeline,i,e.value)},d=bN(s,l,t,h);d.ensureState("emphasis").style=c.getItemStyle(),d.ensureState("progress").style=u.getItemStyle(),Ml(d);var f=Gs(d);s.get("tooltip")?(f.dataIndex=e.value,f.dataModel=r):f.dataIndex=f.dataModel=null,i._tickSymbols.push(d)})},t.prototype._renderAxisLabel=function(e,t,n,r){var i=this;if(n.getLabelModel().get("show")){var a=r.getData(),o=n.getViewLabels();this._tickLabels=[],q(o,function(r){var o=r.tickValue,s=a.getItemModel(o),l=s.getModel("label"),c=s.getModel(["emphasis","label"]),u=s.getModel(["progress","label"]),h=n.dataToCoord(r.tickValue),d=new Vs({x:h,y:0,rotation:e.labelRotation-e.rotation,onclick:Z(i._changeTimeline,i,o),silent:!1,style:Gu(l,{text:r.formattedLabel,align:e.labelAlign,verticalAlign:e.labelBaseline})});d.ensureState("emphasis").style=Gu(c),d.ensureState("progress").style=Gu(u),t.add(d),Ml(d),yN(d).dataIndex=o,i._tickLabels.push(d)})}},t.prototype._renderControl=function(e,t,n,r){var i=e.controlSize,a=e.rotation,o=r.getModel("controlStyle").getItemStyle(),s=r.getModel(["emphasis","controlStyle"]).getItemStyle(),l=r.getPlayState(),c=r.get("inverse",!0);function u(e,n,l,c){if(e){var u=hr(Ae(r.get(["controlStyle",n+"BtnSize"]),i),i),h=function(e,t,n,r){var i=r.style,a=Lu(e.get(["controlStyle",t]),r||{},new tr(n[0],n[1],n[2],n[3]));i&&a.setStyle(i);return a}(r,n+"Icon",[0,-u/2,u,u],{position:e,origin:[i/2,0],rotation:c?-a:0,rectHover:!0,style:o,onclick:l});h.ensureState("emphasis").style=s,t.add(h),Ml(h)}}u(e.nextBtnPosition,"next",Z(this._changeTimeline,this,c?"-":"+")),u(e.prevBtnPosition,"prev",Z(this._changeTimeline,this,c?"+":"-")),u(e.playPosition,l?"stop":"play",Z(this._handlePlayClick,this,!l),!0)},t.prototype._renderCurrentPointer=function(e,t,n,r){var i=r.getData(),a=r.getCurrentIndex(),o=i.getItemModel(a).getModel("checkpointStyle"),s=this,l={onCreate:function(e){e.draggable=!0,e.drift=Z(s._handlePointerDrag,s),e.ondragend=Z(s._handlePointerDragend,s),wN(e,s._progressLine,a,n,r,!0)},onUpdate:function(e){wN(e,s._progressLine,a,n,r)}};this._currentPointer=bN(o,o,this._mainGroup,{},this._currentPointer,l)},t.prototype._handlePlayClick=function(e){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:e,from:this.uid})},t.prototype._handlePointerDrag=function(e,t,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},t.prototype._handlePointerDragend=function(e){this._pointerChangeTimeline([e.offsetX,e.offsetY],!0)},t.prototype._pointerChangeTimeline=function(e,t){var n=this._toAxisCoord(e)[0],r=yi(this._axis.getExtent().slice());n>r[1]&&(n=r[1]),n<r[0]&&(n=r[0]),this._currentPointer.x=n,this._currentPointer.markRedraw(),this._progressLine.shape.x2=n,this._progressLine.dirty();var i=this._findNearestTick(n),a=this.model;(t||i!==a.getCurrentIndex()&&a.get("realtime"))&&this._changeTimeline(i)},t.prototype._doPlayStop=function(){var e=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(function(){var t=e.model;e._changeTimeline(t.getCurrentIndex()+(t.get("rewind",!0)?-1:1))},this.model.get("playInterval")))},t.prototype._toAxisCoord=function(e){return Iu(e,this._mainGroup.getLocalTransform(),!0)},t.prototype._findNearestTick=function(e){var t,n=this.model.getData(),r=1/0,i=this._axis;return n.each(["value"],function(n,a){var o=i.dataToCoord(n),s=Math.abs(o-e);s<r&&(r=s,t=a)}),t},t.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},t.prototype._changeTimeline=function(e){var t=this.model.getCurrentIndex();"+"===e?e=t+1:"-"===e&&(e=t-1),this.api.dispatchAction({type:"timelineChange",currentIndex:e,from:this.uid})},t.prototype._updateTicksStatus=function(){var e=this.model.getCurrentIndex(),t=this._tickSymbols,n=this._tickLabels;if(t)for(var r=0;r<t.length;r++)t&&t[r]&&t[r].toggleState("progress",r<e);if(n)for(r=0;r<n.length;r++)n&&n[r]&&n[r].toggleState("progress",yN(n[r]).dataIndex<=e)},t.type="timeline.slider",t}(gN);function _N(e){var t=e&&e.timeline;te(t)||(t=t?[t]:[]),q(t,function(e){e&&function(e){var t=e.type,n={number:"value",time:"time"};n[t]&&(e.axisType=n[t],delete e.type);if(CN(e),SN(e,"controlPosition")){var r=e.controlStyle||(e.controlStyle={});SN(r,"position")||(r.position=e.controlPosition),"none"!==r.position||SN(r,"show")||(r.show=!1,delete r.position),delete e.controlPosition}q(e.data||[],function(e){oe(e)&&!te(e)&&(!SN(e,"value")&&SN(e,"name")&&(e.value=e.name),CN(e))})}(e)})}function CN(e){var t=e.itemStyle||(e.itemStyle={}),n=t.emphasis||(t.emphasis={}),r=e.label||e.label||{},i=r.normal||(r.normal={}),a={normal:1,emphasis:1};q(r,function(e,t){a[t]||SN(i,t)||(i[t]=e)}),n.label&&!SN(r,"emphasis")&&(r.emphasis=n.label,delete n.label)}function SN(e,t){return e.hasOwnProperty(t)}function kN(e){zi(e,"label",["show"])}var BN=Zi(),EN=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.createdBySelf=!1,n}return g(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),this._mergeOption(e,n,!1,!0)},t.prototype.isAnimationEnabled=function(){if(w.node)return!1;var e=this.__hostSeries;return this.getShallow("animation")&&e&&e.isAnimationEnabled()},t.prototype.mergeOption=function(e,t){this._mergeOption(e,t,!1,!1)},t.prototype._mergeOption=function(e,t,n,r){var i=this.mainType;n||t.eachSeries(function(e){var n=e.get(this.mainType,!0),a=BN(e)[i];n&&n.data?(a?a._mergeOption(n,t,!0):(r&&kN(n),q(n.data,function(e){e instanceof Array?(kN(e[0]),kN(e[1])):kN(e)}),H(a=this.createMarkerModelFromSeries(n,this,t),{mainType:this.mainType,seriesIndex:e.seriesIndex,name:e.name,createdBySelf:!0}),a.__hostSeries=e),BN(e)[i]=a):BN(e)[i]=null},this)},t.prototype.formatTooltip=function(e,t,n){var r=this.getData(),i=this.getRawValue(e),a=r.getName(e);return Lp("section",{header:this.name,blocks:[Lp("nameValue",{name:a,value:i,noName:!a,noValue:null==i})]})},t.prototype.getData=function(){return this._data},t.prototype.setData=function(e){this._data=e},t.getMarkerModelFromSeries=function(e,t){return BN(e)[t]},t.type="marker",t.dependencies=["series","grid","polar","geo"],t}(Bd);G(EN,sp.prototype);var TN=EN,IN=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.prototype.createMarkerModelFromSeries=function(e,n,r){return new t(e,n,r)},t.type="markPoint",t.defaultOption={zlevel:0,z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},t}(TN);function MN(e,t,n,r,i,a){var o=[],s=jy(t,r)?t.getCalculationInfo("stackResultDimension"):r,l=RN(t,s,e),c=t.indicesOfNearest(s,l)[0];o[i]=t.get(n,c),o[a]=t.get(s,c);var u=t.get(r,c),h=bi(t.get(r,c));return(h=Math.min(h,20))>=0&&(o[a]=+o[a].toFixed(h)),[o,u]}var FN={min:ee(MN,"min"),max:ee(MN,"max"),average:ee(MN,"average"),median:ee(MN,"median")};function DN(e,t){var n=e.getData(),r=e.coordinateSystem;if(t&&!function(e){return!isNaN(parseFloat(e.x))&&!isNaN(parseFloat(e.y))}(t)&&!te(t.coord)&&r){var i=r.dimensions,a=PN(t,n,r,e);if((t=R(t)).type&&FN[t.type]&&a.baseAxis&&a.valueAxis){var o=z(i,a.baseAxis.dim),s=z(i,a.valueAxis.dim),l=FN[t.type](n,a.baseDataDim,a.valueDataDim,o,s);t.coord=l[0],t.value=l[1]}else{for(var c=[null!=t.xAxis?t.xAxis:t.radiusAxis,null!=t.yAxis?t.yAxis:t.angleAxis],u=0;u<2;u++)FN[c[u]]&&(c[u]=RN(n,n.mapDimension(i[u]),c[u]));t.coord=c}}return t}function PN(e,t,n,r){var i={};return null!=e.valueIndex||null!=e.valueDim?(i.valueDataDim=null!=e.valueIndex?t.getDimension(e.valueIndex):e.valueDim,i.valueAxis=n.getAxis(function(e,t){var n=e.getData(),r=n.dimensions;t=n.getDimension(t);for(var i=0;i<r.length;i++){var a=n.getDimensionInfo(r[i]);if(a.name===t)return a.coordDim}}(r,i.valueDataDim)),i.baseAxis=n.getOtherAxis(i.valueAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim)):(i.baseAxis=r.getBaseAxis(),i.valueAxis=n.getOtherAxis(i.baseAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim),i.valueDataDim=t.mapDimension(i.valueAxis.dim)),i}function ON(e,t){return!(e&&e.containData&&t.coord&&!function(e){return!(isNaN(parseFloat(e.x))&&isNaN(parseFloat(e.y)))}(t))||e.containData(t.coord)}function LN(e,t,n,r){return r<2?e.coord&&e.coord[r]:e.value}function RN(e,t,n){if("average"===n){var r=0,i=0;return e.each(t,function(e,t){isNaN(e)||(r+=e,i++)}),r/i}return"median"===n?e.getMedian(t):e.getDataExtent(t)["max"===n?1:0]}var NN=Zi(),UN=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.prototype.init=function(){this.markerGroupMap=Se()},t.prototype.render=function(e,t,n){var r=this,i=this.markerGroupMap;i.each(function(e){NN(e).keep=!1}),t.eachSeries(function(e){var i=TN.getMarkerModelFromSeries(e,r.type);i&&r.renderSeries(e,i,t,n)}),i.each(function(e){!NN(e).keep&&r.group.remove(e.group)})},t.prototype.markKeep=function(e){NN(e).keep=!0},t.prototype.blurSeries=function(e){var t=this;q(e,function(e){var n=TN.getMarkerModelFromSeries(e,t.type);n&&n.getData().eachItemGraphicEl(function(e){e&&Cl(e)})})},t.type="marker",t}(aA);function HN(e,t,n){var r=t.coordinateSystem;e.each(function(i){var a,o=e.getItemModel(i),s=mi(o.get("x"),n.getWidth()),l=mi(o.get("y"),n.getHeight());if(isNaN(s)||isNaN(l)){if(t.getMarkerPosition)a=t.getMarkerPosition(e.getValues(e.dimensions,i));else if(r){var c=e.get(r.dimensions[0],i),u=e.get(r.dimensions[1],i);a=r.dataToPoint([c,u])}}else a=[s,l];isNaN(s)||(a[0]=s),isNaN(l)||(a[1]=l),e.setItemLayout(i,a)})}var jN=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries(function(e){var t=TN.getMarkerModelFromSeries(e,"markPoint");t&&(HN(t.getData(),e,n),this.markerGroupMap.get(e.id).updateLayout())},this)},t.prototype.renderSeries=function(e,t,n,r){var i=e.coordinateSystem,a=e.id,o=e.getData(),s=this.markerGroupMap,l=s.get(a)||s.set(a,new Mx),c=function(e,t,n){var r;r=e?W(e&&e.dimensions,function(e){var n=t.getData().getDimensionInfo(t.getData().mapDimension(e))||{};return j({name:e},n)}):[{name:"value",type:"float"}];var i=new Dy(r,n),a=W(n.get("data"),ee(DN,t));e&&(a=Y(a,ee(ON,e)));return i.initData(a,null,e?LN:function(e){return e.value}),i}(i,e,t);t.setData(c),HN(t.getData(),e,r),c.each(function(e){var n=c.getItemModel(e),r=n.getShallow("symbol"),i=n.getShallow("symbolSize"),a=n.getShallow("symbolRotate");if(ne(r)||ne(i)||ne(a)){var s=t.getRawValue(e),l=t.getDataParams(e);ne(r)&&(r=r(s,l)),ne(i)&&(i=i(s,l)),ne(a)&&(a=a(s,l))}var u=n.getModel("itemStyle").getItemStyle(),h=ig(o,"color");u.fill||(u.fill=h),c.setItemVisual(e,{symbol:r,symbolSize:i,symbolRotate:a,style:u})}),l.updateData(c),this.group.add(l.group),c.eachItemGraphicEl(function(e){e.traverse(function(e){Gs(e).dataModel=t})}),this.markKeep(l),l.group.silent=t.get("silent")||e.get("silent")},t.type="markPoint",t}(UN);var QN=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.prototype.createMarkerModelFromSeries=function(e,n,r){return new t(e,n,r)},t.type="markLine",t.defaultOption={zlevel:0,z:5,symbol:["circle","arrow"],symbolSize:[8,16],precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},t}(TN),zN=Zi(),VN=function(e,t,n,r){var i,a=e.getData();if(te(r))i=r;else{var o=r.type;if("min"===o||"max"===o||"average"===o||"median"===o||null!=r.xAxis||null!=r.yAxis){var s=void 0,l=void 0;if(null!=r.yAxis||null!=r.xAxis)s=t.getAxis(null!=r.yAxis?"y":"x"),l=pe(r.yAxis,r.xAxis);else{var c=PN(r,a,t,e);s=c.valueAxis,l=RN(a,Qy(a,c.valueDataDim),o)}var u="x"===s.dim?0:1,h=1-u,d=R(r),f={coord:[]};d.type=null,d.coord=[],d.coord[h]=-1/0,f.coord[h]=1/0;var p=n.get("precision");p>=0&&"number"==typeof l&&(l=+l.toFixed(Math.min(p,20))),d.coord[u]=f.coord[u]=l,i=[d,f,{type:o,valueIndex:r.valueIndex,value:l}]}else i=[]}var A=[DN(e,i[0]),DN(e,i[1]),H({},i[2])];return A[2].type=A[2].type||null,N(A[2],A[0]),N(A[2],A[1]),A};function GN(e){return!isNaN(e)&&!isFinite(e)}function $N(e,t,n,r){var i=1-e,a=r.dimensions[e];return GN(t[i])&&GN(n[i])&&t[e]===n[e]&&r.getAxis(a).containData(t[e])}function qN(e,t){if("cartesian2d"===e.type){var n=t[0].coord,r=t[1].coord;if(n&&r&&($N(1,n,r,e)||$N(0,n,r,e)))return!0}return ON(e,t[0])&&ON(e,t[1])}function WN(e,t,n,r,i){var a,o=r.coordinateSystem,s=e.getItemModel(t),l=mi(s.get("x"),i.getWidth()),c=mi(s.get("y"),i.getHeight());if(isNaN(l)||isNaN(c)){if(r.getMarkerPosition)a=r.getMarkerPosition(e.getValues(e.dimensions,t));else{var u=o.dimensions,h=e.get(u[0],t),d=e.get(u[1],t);a=o.dataToPoint([h,d])}if(Wx(o,"cartesian2d")){var f=o.getAxis("x"),p=o.getAxis("y");u=o.dimensions;GN(e.get(u[0],t))?a[0]=f.toGlobalCoord(f.getExtent()[n?0:1]):GN(e.get(u[1],t))&&(a[1]=p.toGlobalCoord(p.getExtent()[n?0:1]))}isNaN(l)||(a[0]=l),isNaN(c)||(a[1]=c)}else a=[l,c];e.setItemLayout(t,a)}var KN=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries(function(e){var t=TN.getMarkerModelFromSeries(e,"markLine");if(t){var r=t.getData(),i=zN(t).from,a=zN(t).to;i.each(function(t){WN(i,t,!0,e,n),WN(a,t,!1,e,n)}),r.each(function(e){r.setItemLayout(e,[i.getItemLayout(e),a.getItemLayout(e)])}),this.markerGroupMap.get(e.id).updateLayout()}},this)},t.prototype.renderSeries=function(e,t,n,r){var i=e.coordinateSystem,a=e.id,o=e.getData(),s=this.markerGroupMap,l=s.get(a)||s.set(a,new _E);this.group.add(l.group);var c=function(e,t,n){var r;r=e?W(e&&e.dimensions,function(e){var n=t.getData().getDimensionInfo(t.getData().mapDimension(e))||{};return j({name:e},n)}):[{name:"value",type:"float"}];var i=new Dy(r,n),a=new Dy(r,n),o=new Dy([],n),s=W(n.get("data"),ee(VN,t,e,n));e&&(s=Y(s,ee(qN,e)));var l=e?LN:function(e){return e.value};return i.initData(W(s,function(e){return e[0]}),null,l),a.initData(W(s,function(e){return e[1]}),null,l),o.initData(W(s,function(e){return e[2]})),o.hasItemOption=!0,{from:i,to:a,line:o}}(i,e,t),u=c.from,h=c.to,d=c.line;zN(t).from=u,zN(t).to=h,t.setData(d);var f=t.get("symbol"),p=t.get("symbolSize");function A(t,n,i){var a=t.getItemModel(n);WN(t,n,i,e,r);var s=a.getModel("itemStyle").getItemStyle();null==s.fill&&(s.fill=ig(o,"color")),t.setItemVisual(n,{symbolRotate:a.get("symbolRotate"),symbolSize:a.get("symbolSize")||p[i?0:1],symbol:a.get("symbol",!0)||f[i?0:1],style:s})}te(f)||(f=[f,f]),te(p)||(p=[p,p]),c.from.each(function(e){A(u,e,!0),A(h,e,!1)}),d.each(function(e){var t=d.getItemModel(e).getModel("lineStyle").getLineStyle();d.setItemLayout(e,[u.getItemLayout(e),h.getItemLayout(e)]),null==t.stroke&&(t.stroke=u.getItemVisual(e,"style").fill),d.setItemVisual(e,{fromSymbolRotate:u.getItemVisual(e,"symbolRotate"),fromSymbolSize:u.getItemVisual(e,"symbolSize"),fromSymbol:u.getItemVisual(e,"symbol"),toSymbolRotate:h.getItemVisual(e,"symbolRotate"),toSymbolSize:h.getItemVisual(e,"symbolSize"),toSymbol:h.getItemVisual(e,"symbol"),style:t})}),l.updateData(d),c.line.eachItemGraphicEl(function(e,n){e.traverse(function(e){Gs(e).dataModel=t})}),this.markKeep(l),l.group.silent=t.get("silent")||e.get("silent")},t.type="markLine",t}(UN);var YN=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.prototype.createMarkerModelFromSeries=function(e,n,r){return new t(e,n,r)},t.type="markArea",t.defaultOption={zlevel:0,z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},t}(TN),XN=Zi(),JN=function(e,t,n,r){var i=DN(e,r[0]),a=DN(e,r[1]),o=i.coord,s=a.coord;o[0]=pe(o[0],-1/0),o[1]=pe(o[1],-1/0),s[0]=pe(s[0],1/0),s[1]=pe(s[1],1/0);var l=U([{},i,a]);return l.coord=[i.coord,a.coord],l.x0=i.x,l.y0=i.y,l.x1=a.x,l.y1=a.y,l};function ZN(e){return!isNaN(e)&&!isFinite(e)}function eU(e,t,n,r){var i=1-e;return ZN(t[i])&&ZN(n[i])}function tU(e,t){var n=t.coord[0],r=t.coord[1];return!!(Wx(e,"cartesian2d")&&n&&r&&(eU(1,n,r)||eU(0,n,r)))||(ON(e,{coord:n,x:t.x0,y:t.y0})||ON(e,{coord:r,x:t.x1,y:t.y1}))}function nU(e,t,n,r,i){var a,o=r.coordinateSystem,s=e.getItemModel(t),l=mi(s.get(n[0]),i.getWidth()),c=mi(s.get(n[1]),i.getHeight());if(isNaN(l)||isNaN(c)){if(r.getMarkerPosition)a=r.getMarkerPosition(e.getValues(n,t));else{var u=[f=e.get(n[0],t),p=e.get(n[1],t)];o.clampData&&o.clampData(u,u),a=o.dataToPoint(u,!0)}if(Wx(o,"cartesian2d")){var h=o.getAxis("x"),d=o.getAxis("y"),f=e.get(n[0],t),p=e.get(n[1],t);ZN(f)?a[0]=h.toGlobalCoord(h.getExtent()["x0"===n[0]?0:1]):ZN(p)&&(a[1]=d.toGlobalCoord(d.getExtent()["y0"===n[1]?0:1]))}isNaN(l)||(a[0]=l),isNaN(c)||(a[1]=c)}else a=[l,c];return a}var rU=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]];var iU=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries(function(e){var t=TN.getMarkerModelFromSeries(e,"markArea");if(t){var r=t.getData();r.each(function(t){var i=W(rU,function(i){return nU(r,t,i,e,n)});r.setItemLayout(t,i),r.getItemGraphicEl(t).setShape("points",i)})}},this)},t.prototype.renderSeries=function(e,t,n,r){var i=e.coordinateSystem,a=e.id,o=e.getData(),s=this.markerGroupMap,l=s.get(a)||s.set(a,{group:new ii});this.group.add(l.group),this.markKeep(l);var c=function(e,t,n){var r,i;e?(r=W(e&&e.dimensions,function(e){var n=t.getData(),r=n.getDimensionInfo(n.mapDimension(e))||{};return j({name:e},r)}),i=new Dy(W(["x0","y0","x1","y1"],function(e,t){return{name:e,type:r[t%2].type}}),n)):i=new Dy(r=[{name:"value",type:"float"}],n);var a=W(n.get("data"),ee(JN,t,e,n));e&&(a=Y(a,ee(tU,e)));var o=e?function(e,t,n,r){return e.coord[Math.floor(r/2)][r%2]}:function(e){return e.value};return i.initData(a,null,o),i.hasItemOption=!0,i}(i,e,t);t.setData(c),c.each(function(t){var n=W(rU,function(n){return nU(c,t,n,e,r)}),a=!0;q(rU,function(e){if(a){var n=c.get(e[0],t),r=c.get(e[1],t);(ZN(n)||i.getAxis("x").containData(n))&&(ZN(r)||i.getAxis("y").containData(r))&&(a=!1)}}),c.setItemLayout(t,{points:n,allClipped:a});var s=c.getItemModel(t).getModel("itemStyle").getItemStyle(),l=ig(o,"color");s.fill||(s.fill=l,"string"==typeof s.fill&&(s.fill=kn(s.fill,.4))),s.stroke||(s.stroke=l),c.setItemVisual(t,"style",s)}),c.diff(XN(l).data).add(function(e){var t=c.getItemLayout(e);if(!t.allClipped){var n=new Dc({shape:{points:t.points}});c.setItemGraphicEl(e,n),l.group.add(n)}}).update(function(e,n){var r=XN(l).data.getItemGraphicEl(n),i=c.getItemLayout(e);i.allClipped?r&&l.group.remove(r):(r?_u(r,{shape:{points:i.points}},t,e):r=new Dc({shape:{points:i.points}}),c.setItemGraphicEl(e,r),l.group.add(r))}).remove(function(e){var t=XN(l).data.getItemGraphicEl(e);l.group.remove(t)}).execute(),c.eachItemGraphicEl(function(e,n){var r=c.getItemModel(n),i=c.getItemVisual(n,"style");e.useStyle(c.getItemVisual(n,"style")),zu(e,Vu(r),{labelFetcher:t,labelDataIndex:n,defaultText:c.getName(n)||"",inheritColor:"string"==typeof i.fill?kn(i.fill,1):"#000"}),Ol(e,r),Ml(e),Gs(e).dataModel=t}),XN(l).data=c,l.group.silent=t.get("silent")||e.get("silent")},t.type="markArea",t}(UN);var aU=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:"box",ignoreSize:!0},n}return g(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),this._updateSelector(t)},t.prototype._updateSelector=function(e){var t=e.selector,n=this.ecModel;!0===t&&(t=e.selector=["all","inverse"]),te(t)&&q(t,function(e,r){re(e)&&(e={type:e}),t[r]=N(e,function(e,t){return"all"===t?{type:"all",title:e.getLocale(["legend","selector","all"])}:"inverse"===t?{type:"inverse",title:e.getLocale(["legend","selector","inverse"])}:void 0}(n,e.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&"single"===this.get("selectedMode")){for(var t=!1,n=0;n<e.length;n++){var r=e[n].get("name");if(this.isSelected(r)){this.select(r),t=!0;break}}!t&&this.select(e[0].get("name"))}},t.prototype._updateData=function(e){var t=[],n=[];e.eachRawSeries(function(r){var i,a=r.name;if(n.push(a),r.legendVisualProvider){var o=r.legendVisualProvider.getAllNames();e.isSeriesFiltered(r)||(n=n.concat(o)),o.length?t=t.concat(o):i=!0}else i=!0;i&&Yi(r)&&t.push(r.name)}),this._availableNames=n;var r=W(this.get("data")||t,function(e){return"string"!=typeof e&&"number"!=typeof e||(e={name:e}),new fh(e,this,this.ecModel)},this);this._data=r},t.prototype.getData=function(){return this._data},t.prototype.select=function(e){var t=this.option.selected;"single"===this.get("selectedMode")&&q(this._data,function(e){t[e.get("name")]=!1});t[e]=!0},t.prototype.unSelect=function(e){"single"!==this.get("selectedMode")&&(this.option.selected[e]=!1)},t.prototype.toggleSelected=function(e){var t=this.option.selected;t.hasOwnProperty(e)||(t[e]=!0),this[t[e]?"unSelect":"select"](e)},t.prototype.allSelect=function(){var e=this._data,t=this.option.selected;q(e,function(e){t[e.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var e=this._data,t=this.option.selected;q(e,function(e){var n=e.get("name",!0);t.hasOwnProperty(n)||(t[n]=!0),t[n]=!t[n]})},t.prototype.isSelected=function(e){var t=this.option.selected;return!(t.hasOwnProperty(e)&&!t[e])&&z(this._availableNames,e)>=0},t.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={zlevel:0,z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",itemStyle:{borderWidth:0},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:" sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(Bd),oU=ee,sU=q,lU=ii;function cU(e,t,n,r,i,a,o){var s;return"line"!==t&&t.indexOf("empty")<0?(s=n.getItemStyle(),e.style.stroke=r,e.style.decal=a,o||(s.stroke=i)):s=n.getItemStyle(["borderWidth","borderColor"]),e.setStyle(s),e}function uU(e,t,n,r){fU(e,t,n,r),n.dispatchAction({type:"legendToggleSelect",name:null!=e?e:t}),dU(e,t,n,r)}function hU(e){for(var t,n=e.getZr().storage.getDisplayList(),r=0,i=n.length;r<i&&!(t=n[r].states.emphasis);)r++;return t&&t.hoverLayer}function dU(e,t,n,r){hU(n)||n.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:r})}function fU(e,t,n,r){hU(n)||n.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:r})}var pU=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!1,n}return g(t,e),t.prototype.init=function(){this.group.add(this._contentGroup=new lU),this.group.add(this._selectorGroup=new lU),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,t,n){var r=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),e.get("show",!0)){var i=e.get("align"),a=e.get("orient");i&&"auto"!==i||(i="right"===e.get("left")&&"vertical"===a?"right":"left");var o=e.get("selector",!0),s=e.get("selectorPosition",!0);!o||s&&"auto"!==s||(s="horizontal"===a?"end":"start"),this.renderInner(i,e,t,n,o,a,s);var l=e.getBoxLayoutParams(),c={width:n.getWidth(),height:n.getHeight()},u=e.get("padding"),h=yd(l,c,u),d=this.layoutInner(e,i,h,r,o,s),f=yd(j({width:d.width,height:d.height},l),c,u);this.group.x=f.x-d.x,this.group.y=f.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=OL(d,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,t,n,r,i,a,o){var s=this.getContentGroup(),l=Se(),c=t.get("selectedMode"),u=[];n.eachRawSeries(function(e){!e.get("legendHoverLink")&&u.push(e.id)}),sU(t.getData(),function(i,a){var o=i.get("name");if(!this.newlineDisabled&&(""===o||"\n"===o)){var h=new lU;return h.newline=!0,void s.add(h)}var d=n.getSeriesByName(o)[0];if(!l.get(o)){if(d){var f=d.getData(),p=f.getVisual("style"),A=p[f.getVisual("drawType")]||p.fill,g=p.stroke,m=p.decal,v=f.getVisual("legendSymbol")||"roundRect",y=f.getVisual("symbol");this._createItem(o,a,i,t,v,y,e,A,g,m,c).on("click",oU(uU,o,null,r,u)).on("mouseover",oU(dU,d.name,null,r,u)).on("mouseout",oU(fU,d.name,null,r,u)),l.set(o,!0)}else n.eachRawSeries(function(n){if(!l.get(o)&&n.legendVisualProvider){var s=n.legendVisualProvider;if(!s.containName(o))return;var h=s.indexOfName(o),d=s.getItemVisual(h,"style"),f=d.stroke,p=d.decal,A=d.fill,g=mn(d.fill);g&&0===g[3]&&(g[3]=.2,A=Bn(g,"rgba"));this._createItem(o,a,i,t,"roundRect",null,e,A,f,p,c).on("click",oU(uU,null,o,r,u)).on("mouseover",oU(dU,null,o,r,u)).on("mouseout",oU(fU,null,o,r,u)),l.set(o,!0)}},this);0}},this),i&&this._createSelector(i,t,r,a,o)},t.prototype._createSelector=function(e,t,n,r,i){var a=this.getSelectorGroup();sU(e,function(e){var r=e.type,i=new Vs({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===r?"legendAllSelect":"legendInverseSelect"})}});a.add(i),zu(i,{normal:t.getModel("selectorLabel"),emphasis:t.getModel(["emphasis","selectorLabel"])},{defaultText:e.title}),Ml(i)})},t.prototype._createItem=function(e,t,n,r,i,a,o,s,l,c,u){var h=r.get("itemWidth"),d=r.get("itemHeight"),f=r.get("inactiveColor"),p=r.get("inactiveBorderColor"),A=r.get("symbolKeepAspect"),g=r.getModel("itemStyle"),m=r.isSelected(e),v=new lU,y=n.getModel("textStyle"),b=n.get("icon"),w=n.getModel("tooltip"),x=w.parentModel,_=Zg(i=b||i,0,0,h,d,m?s:f,null==A||A);if(v.add(cU(_,i,g,l,p,c,m)),!b&&a&&(a!==i||"none"===a)){var C=.8*d;"none"===a&&(a="circle");var S=Zg(a,(h-C)/2,(d-C)/2,C,C,m?s:f,null==A||A);v.add(cU(S,a,g,l,p,c,m))}var k="left"===o?h+5:-5,B=o,E=r.get("formatter"),T=e;"string"==typeof E&&E?T=E.replace("{name}",null!=e?e:""):"function"==typeof E&&(T=E(e)),v.add(new Vs({style:Gu(y,{text:T,x:k,y:d/2,fill:m?y.getTextColor():f,align:B,verticalAlign:"middle"})}));var I=new Ds({shape:v.getBoundingRect(),invisible:!0});if(w.get("show")){var M={componentType:"legend",legendIndex:r.componentIndex,name:e,$vars:["name"]};I.tooltip=H({content:e,formatter:x.get("formatter",!0)||function(e){return e.name},formatterParams:M},w.option)}return v.add(I),v.eachChild(function(e){e.silent=!0}),I.silent=!u,this.getContentGroup().add(v),Ml(v),v.__legendDataIndex=t,v},t.prototype.layoutInner=function(e,t,n,r,i,a){var o=this.getContentGroup(),s=this.getSelectorGroup();vd(e.get("orient"),o,e.get("itemGap"),n.width,n.height);var l=o.getBoundingRect(),c=[-l.x,-l.y];if(s.markRedraw(),o.markRedraw(),i){vd("horizontal",s,e.get("selectorItemGap",!0));var u=s.getBoundingRect(),h=[-u.x,-u.y],d=e.get("selectorButtonGap",!0),f=e.getOrient().index,p=0===f?"width":"height",A=0===f?"height":"width",g=0===f?"y":"x";"end"===a?h[f]+=l[p]+d:c[f]+=u[p]+d,h[1-f]+=l[A]/2-u[A]/2,s.x=h[0],s.y=h[1],o.x=c[0],o.y=c[1];var m={x:0,y:0};return m[p]=l[p]+d+u[p],m[A]=Math.max(l[A],u[A]),m[g]=Math.min(0,u[g]+h[1-f]),m}return o.x=c[0],o.y=c[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(aA);function AU(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.filterSeries(function(e){for(var n=0;n<t.length;n++)if(!t[n].isSelected(e.name))return!1;return!0})}function gU(e,t,n){var r,i={},a="toggleSelected"===e;return n.eachComponent("legend",function(n){a&&null!=r?n[r?"select":"unSelect"](t.name):"allSelect"===e||"inverseSelect"===e?n[e]():(n[e](t.name),r=n.isSelected(t.name)),q(n.getData(),function(e){var t=e.get("name");if("\n"!==t&&""!==t){var r=n.isSelected(t);i.hasOwnProperty(t)?i[t]=i[t]&&r:i[t]=r}})}),"allSelect"===e||"inverseSelect"===e?{selected:i}:{name:t.name,selected:i}}function mU(e){e.registerComponentModel(aU),e.registerComponentView(pU),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,AU),e.registerSubTypeDefaulter("legend",function(){return"plain"}),function(e){e.registerAction("legendToggleSelect","legendselectchanged",ee(gU,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",ee(gU,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",ee(gU,"inverseSelect")),e.registerAction("legendSelect","legendselected",ee(gU,"select")),e.registerAction("legendUnSelect","legendunselected",ee(gU,"unSelect"))}(e)}function vU(e,t,n){var r=[1,1];r[e.getOrient().index]=0,xd(t,n,{type:"box",ignoreSize:!!r})}var yU=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(t,n,r){var i=_d(t);e.prototype.init.call(this,t,n,r),vU(this,t,i)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),vU(this,this.option,t)},t.type="legend.scroll",t.defaultOption=gh(aU.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),t}(aU),bU=ii,wU=["width","height"],xU=["x","y"],_U=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!0,n._currentIndex=0,n}return g(t,e),t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new bU),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new bU)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(t,n,r,i,a,o,s){var l=this;e.prototype.renderInner.call(this,t,n,r,i,a,o,s);var c=this._controllerGroup,u=n.get("pageIconSize",!0),h=te(u)?u:[u,u];f("pagePrev",0);var d=n.getModel("pageTextStyle");function f(e,t){var r=e+"DataIndex",a=Lu(n.get("pageIcons",!0)[n.getOrient().name][t],{onclick:Z(l._pageGo,l,r,n,i)},{x:-h[0]/2,y:-h[1]/2,width:h[0],height:h[1]});a.name=e,c.add(a)}c.add(new Vs({name:"pageText",style:{text:"xx/xx",fill:d.getTextColor(),font:d.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),f("pageNext",1)},t.prototype.layoutInner=function(e,t,n,r,i,a){var o=this.getSelectorGroup(),s=e.getOrient().index,l=wU[s],c=xU[s],u=wU[1-s],h=xU[1-s];i&&vd("horizontal",o,e.get("selectorItemGap",!0));var d=e.get("selectorButtonGap",!0),f=o.getBoundingRect(),p=[-f.x,-f.y],A=R(n);i&&(A[l]=n[l]-f[l]-d);var g=this._layoutContentAndController(e,r,A,s,l,u,h,c);if(i){if("end"===a)p[s]+=g[l]+d;else{var m=f[l]+d;p[s]-=m,g[c]-=m}g[l]+=f[l]+d,p[1-s]+=g[h]+g[u]/2-f[u]/2,g[u]=Math.max(g[u],f[u]),g[h]=Math.min(g[h],f[h]+p[1-s]),o.x=p[0],o.y=p[1],o.markRedraw()}return g},t.prototype._layoutContentAndController=function(e,t,n,r,i,a,o,s){var l=this.getContentGroup(),c=this._containerGroup,u=this._controllerGroup;vd(e.get("orient"),l,e.get("itemGap"),r?n.width:null,r?null:n.height),vd("horizontal",u,e.get("pageButtonItemGap",!0));var h=l.getBoundingRect(),d=u.getBoundingRect(),f=this._showController=h[i]>n[i],p=[-h.x,-h.y];t||(p[r]=l[s]);var A=[0,0],g=[-d.x,-d.y],m=Ae(e.get("pageButtonGap",!0),e.get("itemGap",!0));f&&("end"===e.get("pageButtonPosition",!0)?g[r]+=n[i]-d[i]:A[r]+=d[i]+m);g[1-r]+=h[a]/2-d[a]/2,l.setPosition(p),c.setPosition(A),u.setPosition(g);var v={x:0,y:0};if(v[i]=f?n[i]:h[i],v[a]=Math.max(h[a],d[a]),v[o]=Math.min(0,d[o]+g[1-r]),c.__rectSize=n[i],f){var y={x:0,y:0};y[i]=Math.max(n[i]-d[i]-m,0),y[a]=v[a],c.setClipPath(new Ds({shape:y})),c.__rectSize=y[i]}else u.eachChild(function(e){e.attr({invisible:!0,silent:!0})});var b=this._getPageInfo(e);return null!=b.pageIndex&&_u(l,{x:b.contentPosition[0],y:b.contentPosition[1]},f?e:null),this._updatePageInfoView(e,b),v},t.prototype._pageGo=function(e,t,n){var r=this._getPageInfo(t)[e];null!=r&&n.dispatchAction({type:"legendScroll",scrollDataIndex:r,legendId:t.id})},t.prototype._updatePageInfoView=function(e,t){var n=this._controllerGroup;q(["pagePrev","pageNext"],function(r){var i=null!=t[r+"DataIndex"],a=n.childOfName(r);a&&(a.setStyle("fill",i?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),a.cursor=i?"pointer":"default")});var r=n.childOfName("pageText"),i=e.get("pageFormatter"),a=t.pageIndex,o=null!=a?a+1:0,s=t.pageCount;r&&i&&r.setStyle("text",re(i)?i.replace("{current}",null==o?"":o+"").replace("{total}",null==s?"":s+""):i({current:o,total:s}))},t.prototype._getPageInfo=function(e){var t=e.get("scrollDataIndex",!0),n=this.getContentGroup(),r=this._containerGroup.__rectSize,i=e.getOrient().index,a=wU[i],o=xU[i],s=this._findTargetItemIndex(t),l=n.children(),c=l[s],u=l.length,h=u?1:0,d={contentPosition:[n.x,n.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return d;var f=v(c);d.contentPosition[i]=-f.s;for(var p=s+1,A=f,g=f,m=null;p<=u;++p)(!(m=v(l[p]))&&g.e>A.s+r||m&&!y(m,A.s))&&(A=g.i>A.i?g:m)&&(null==d.pageNextDataIndex&&(d.pageNextDataIndex=A.i),++d.pageCount),g=m;for(p=s-1,A=f,g=f,m=null;p>=-1;--p)(m=v(l[p]))&&y(g,m.s)||!(A.i<g.i)||(g=A,null==d.pagePrevDataIndex&&(d.pagePrevDataIndex=A.i),++d.pageCount,++d.pageIndex),A=m;return d;function v(e){if(e){var t=e.getBoundingRect(),n=t[o]+e[o];return{s:n,e:n+t[a],i:e.__legendDataIndex}}}function y(e,t){return e.e>=t&&e.s<=t+r}},t.prototype._findTargetItemIndex=function(e){return this._showController?(this.getContentGroup().eachChild(function(r,i){var a=r.__legendDataIndex;null==n&&null!=a&&(n=i),a===e&&(t=i)}),null!=t?t:n):0;var t,n},t.type="legend.scroll",t}(pU);function CU(e){ry(mU),e.registerComponentModel(yU),e.registerComponentView(_U),function(e){e.registerAction("legendScroll","legendscroll",function(e,t){var n=e.scrollDataIndex;null!=n&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},function(e){e.setScrollDataIndex(n)})})}(e)}var SU=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.type="dataZoom.inside",t.defaultOption=gh(yL.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(yL),kU=Zi();function BU(e,t){if(t){e.removeKey(t.model.uid);var n=t.controller;n&&n.dispose()}}function EU(e,t){e.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function TU(e,t,n,r){return e.coordinateSystem.containPoint([n,r])}function IU(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,function(e,t){var n=kU(t),r=n.coordSysRecordMap||(n.coordSysRecordMap=Se());r.each(function(e){e.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(e){q(gL(e).infoList,function(n){var i=n.model.uid,a=r.get(i)||r.set(i,function(e,t){var n={model:t,containsPoint:ee(TU,t),dispatchAction:ee(EU,e),dataZoomInfoMap:null,controller:null},r=n.controller=new lS(e.getZr());return q(["pan","zoom","scrollMove"],function(e){r.on(e,function(t){var r=[];n.dataZoomInfoMap.each(function(i){if(t.isAvailableBehavior(i.model.option)){var a=(i.getRange||{})[e],o=a&&a(i.dzReferCoordSysInfo,n.model.mainType,n.controller,t);!i.model.get("disabled",!0)&&o&&r.push({dataZoomId:i.model.id,start:o[0],end:o[1]})}}),r.length&&n.dispatchAction(r)})}),n}(t,n.model));(a.dataZoomInfoMap||(a.dataZoomInfoMap=Se())).set(e.uid,{dzReferCoordSysInfo:n,model:e,getRange:null})})}),r.each(function(e){var t,n=e.controller,i=e.dataZoomInfoMap;if(i){var a=i.keys()[0];null!=a&&(t=i.get(a))}if(t){var o=function(e){var t,n={type_true:2,type_move:1,type_false:0,type_undefined:-1},r=!0;return e.each(function(e){var i=e.model,a=!i.get("disabled",!0)&&(!i.get("zoomLock",!0)||"move");n["type_"+a]>n["type_"+t]&&(t=a),r=r&&i.get("preventDefaultMouseMove",!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!r}}}(i);n.enable(o.controlType,o.opt),n.setPointerChecker(e.containsPoint),bA(e,"dispatchAction",t.model.get("throttle",!0),"fixRate")}else BU(r,e)})})}var MU=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return g(t,e),t.prototype.render=function(t,n,r){e.prototype.render.apply(this,arguments),t.noTarget()?this._clear():(this.range=t.getPercentRange(),function(e,t,n){kU(e).coordSysRecordMap.each(function(e){var r=e.dataZoomInfoMap.get(t.uid);r&&(r.getRange=n)})}(r,t,{pan:Z(FU.pan,this),zoom:Z(FU.zoom,this),scrollMove:Z(FU.scrollMove,this)}))},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){!function(e,t){for(var n=kU(e).coordSysRecordMap,r=n.keys(),i=0;i<r.length;i++){var a=r[i],o=n.get(a),s=o.dataZoomInfoMap;if(s){var l=t.uid;s.get(l)&&(s.removeKey(l),s.keys().length||BU(n,o))}}}(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(wL),FU={zoom:function(e,t,n,r){var i=this.range,a=i.slice(),o=e.axisModels[0];if(o){var s=PU[t](null,[r.originX,r.originY],o,n,e),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(a[1]-a[0])+a[0],c=Math.max(1/r.scale,0);a[0]=(a[0]-l)*c+l,a[1]=(a[1]-l)*c+l;var u=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return mT(0,a,[0,100],0,u.minSpan,u.maxSpan),this.range=a,i[0]!==a[0]||i[1]!==a[1]?a:void 0}},pan:DU(function(e,t,n,r,i,a){var o=PU[r]([a.oldX,a.oldY],[a.newX,a.newY],t,i,n);return o.signal*(e[1]-e[0])*o.pixel/o.pixelLength}),scrollMove:DU(function(e,t,n,r,i,a){return PU[r]([0,0],[a.scrollDelta,a.scrollDelta],t,i,n).signal*(e[1]-e[0])*a.scrollDelta})};function DU(e){return function(t,n,r,i){var a=this.range,o=a.slice(),s=t.axisModels[0];if(s)return mT(e(o,s,t,n,r,i),o,[0,100],"all"),this.range=o,a[0]!==o[0]||a[1]!==o[1]?o:void 0}}var PU={grid:function(e,t,n,r,i){var a=n.axis,o={},s=i.model.coordinateSystem.getRect();return e=e||[0,0],"x"===a.dim?(o.pixel=t[0]-e[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=a.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=a.inverse?-1:1),o},polar:function(e,t,n,r,i){var a=n.axis,o={},s=i.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),c=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),"radiusAxis"===n.mainType?(o.pixel=t[0]-e[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=a.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=c[1]-c[0],o.pixelStart=c[0],o.signal=a.inverse?-1:1),o},singleAxis:function(e,t,n,r,i){var a=n.axis,o=i.model.coordinateSystem.getRect(),s={};return e=e||[0,0],"horizontal"===a.orient?(s.pixel=t[0]-e[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=a.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=a.inverse?-1:1),s}},OU=MU;function LU(e){EL(e),e.registerComponentModel(SU),e.registerComponentView(OU),IU(e)}var RU=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=gh(yL.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t}(yL),NU=Ds,UU="horizontal",HU=5,jU=["line","bar","candlestick","scatter"],QU={easing:"cubicOut",duration:100};function zU(e){return"vertical"===e?"ns-resize":"ew-resize"}var VU=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._displayables={},n}return g(t,e),t.prototype.init=function(e,t){this.api=t,this._onBrush=Z(this._onBrush,this),this._onBrushEnd=Z(this._onBrushEnd,this)},t.prototype.render=function(t,n,r,i){if(e.prototype.render.apply(this,arguments),bA(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),!1!==t.get("show")){if(t.noTarget())return this._clear(),void this.group.removeAll();i&&"dataZoom"===i.type&&i.from===this.uid||this._buildView(),this._updateView()}else this.group.removeAll()},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){var e,t,n;(n=(e=this)[t="_dispatchZoomAction"])&&n[gA]&&(e[t]=n[gA]);var r=this.api.getZr();r.off("mousemove",this._onBrush),r.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var e=this.group;e.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var t=this._displayables.sliderGroup=new ii;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(t),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,t=this.api,n=e.get("brushSelect")?7:0,r=this._findCoordRect(),i={width:t.getWidth(),height:t.getHeight()},a=this._orient===UU?{right:i.width-r.x-r.width,top:i.height-30-7-n,width:r.width,height:30}:{right:7,top:r.y,width:30,height:r.height},o=_d(e.option);q(["right","top","width","height"],function(e){"ph"===o[e]&&(o[e]=a[e])});var s=yd(o,i);this._location={x:s.x,y:s.y},this._size=[s.width,s.height],"vertical"===this._orient&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,t=this._location,n=this._orient,r=this.dataZoomModel.getFirstTargetAxisModel(),i=r&&r.get("inverse"),a=this._displayables.sliderGroup,o=(this._dataShadowInfo||{}).otherAxisInverse;a.attr(n!==UU||i?n===UU&&i?{scaleY:o?1:-1,scaleX:-1}:"vertical"!==n||i?{scaleY:o?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:o?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:o?1:-1,scaleX:1});var s=e.getBoundingRect([a]);e.x=t.x-s.x,e.y=t.y-s.y,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,t=this._size,n=this._displayables.sliderGroup,r=e.get("brushSelect");n.add(new NU({silent:!0,shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var i=new NU({shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:"transparent"},z2:0,onclick:Z(this._onClickPanel,this)}),a=this.api.getZr();r?(i.on("mousedown",this._onBrushStart,this),i.cursor="crosshair",a.on("mousemove",this._onBrush),a.on("mouseup",this._onBrushEnd)):(a.off("mousemove",this._onBrush),a.off("mouseup",this._onBrushEnd)),n.add(i)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],e){var t=this._size,n=e.series,r=n.getRawData(),i=n.getShadowDim?n.getShadowDim():e.otherDim;if(null!=i){var a=r.getDataExtent(i),o=.3*(a[1]-a[0]);a=[a[0]-o,a[1]+o];var s,l=[0,t[1]],c=[0,t[0]],u=[[t[0],0],[0,0]],h=[],d=c[1]/(r.count()-1),f=0,p=Math.round(r.count()/t[0]);r.each([i],function(e,t){if(p>0&&t%p)f+=d;else{var n=null==e||isNaN(e)||""===e,r=n?0:gi(e,a,l,!0);n&&!s&&t?(u.push([u[u.length-1][0],0]),h.push([h[h.length-1][0],0])):!n&&s&&(u.push([f,0]),h.push([f,0])),u.push([f,r]),h.push([f,r]),f+=d,s=n}});for(var A=this.dataZoomModel,g=0;g<3;g++){var m=v(1===g);this._displayables.sliderGroup.add(m),this._displayables.dataShadowSegs.push(m)}}}function v(e){var t=A.getModel(e?"selectedDataBackground":"dataBackground"),n=new ii,r=new Dc({shape:{points:u},segmentIgnoreThreshold:1,style:t.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),i=new Lc({shape:{points:h},segmentIgnoreThreshold:1,style:t.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return n.add(r),n.add(i),n}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,t=e.get("showDataShadow");if(!1!==t){var n,r=this.ecModel;return e.eachTargetAxis(function(i,a){q(e.getAxisProxy(i,a).getTargetSeriesModels(),function(e){if(!(n||!0!==t&&z(jU,e.get("type"))<0)){var o,s=r.getComponent(pL(i),a).axis,l={x:"y",y:"x",radius:"angle",angle:"radius"}[i],c=e.coordinateSystem;null!=l&&c.getOtherAxis&&(o=c.getOtherAxis(s).inverse),l=e.getData().mapDimension(l),n={thisAxis:s,series:e,thisDim:i,otherDim:l,otherAxisInverse:o}}},this)},this),n}},t.prototype._renderHandle=function(){var e=this.group,t=this._displayables,n=t.handles=[null,null],r=t.handleLabels=[null,null],i=this._displayables.sliderGroup,a=this._size,o=this.dataZoomModel,s=this.api,l=o.get("borderRadius")||0,c=o.get("brushSelect"),u=t.filler=new NU({silent:c,style:{fill:o.get("fillerColor")},textConfig:{position:"inside"}});i.add(u),i.add(new NU({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:a[0],height:a[1],r:l},style:{stroke:o.get("dataBackgroundColor")||o.get("borderColor"),lineWidth:1,fill:"rgba(0,0,0,0)"}})),q([0,1],function(t){var a=o.get("handleIcon");!Yg[a]&&a.indexOf("path://")<0&&a.indexOf("image://")<0&&(a="path://"+a);var s=Zg(a,-1,0,2,2,null,!0);s.attr({cursor:zU(this._orient),draggable:!0,drift:Z(this._onDragMove,this,t),ondragend:Z(this._onDragEnd,this),onmouseover:Z(this._showDataInfo,this,!0),onmouseout:Z(this._showDataInfo,this,!1),z2:5});var l=s.getBoundingRect(),c=o.get("handleSize");this._handleHeight=mi(c,this._size[1]),this._handleWidth=l.width/l.height*this._handleHeight,s.setStyle(o.getModel("handleStyle").getItemStyle()),s.style.strokeNoScale=!0,s.rectHover=!0,s.ensureState("emphasis").style=o.getModel(["emphasis","handleStyle"]).getItemStyle(),Ml(s);var u=o.get("handleColor");null!=u&&(s.style.fill=u),i.add(n[t]=s);var h=o.getModel("textStyle");e.add(r[t]=new Vs({silent:!0,invisible:!0,style:{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:h.getTextColor(),font:h.getFont()},z2:10}))},this);var h=u;if(c){var d=mi(o.get("moveHandleSize"),a[1]),f=t.moveHandle=new Ds({style:o.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:a[1]-.5,height:d}}),p=.8*d,A=t.moveHandleIcon=Zg(o.get("moveHandleIcon"),-p/2,-p/2,p,p,"#fff",!0);A.silent=!0,A.y=a[1]+d/2-.5,f.ensureState("emphasis").style=o.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var g=Math.min(a[1]/2,Math.max(d,10));(h=t.moveZone=new Ds({invisible:!0,shape:{y:a[1]-g,height:d+g}})).on("mouseover",function(){s.enterEmphasis(f)}).on("mouseout",function(){s.leaveEmphasis(f)}),i.add(f),i.add(A),i.add(h)}h.attr({draggable:!0,cursor:zU(this._orient),drift:Z(this._onDragMove,this,"all"),ondragstart:Z(this._showDataInfo,this,!0),ondragend:Z(this._onDragEnd,this),onmouseover:Z(this._showDataInfo,this,!0),onmouseout:Z(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),t=this._getViewExtent();this._handleEnds=[gi(e[0],[0,100],t,!0),gi(e[1],[0,100],t,!0)]},t.prototype._updateInterval=function(e,t){var n=this.dataZoomModel,r=this._handleEnds,i=this._getViewExtent(),a=n.findRepresentativeAxisProxy().getMinMaxSpan(),o=[0,100];mT(t,r,i,n.get("zoomLock")?"all":e,null!=a.minSpan?gi(a.minSpan,o,i,!0):null,null!=a.maxSpan?gi(a.maxSpan,o,i,!0):null);var s=this._range,l=this._range=yi([gi(r[0],i,o,!0),gi(r[1],i,o,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},t.prototype._updateView=function(e){var t=this._displayables,n=this._handleEnds,r=yi(n.slice()),i=this._size;q([0,1],function(e){var r=t.handles[e],a=this._handleHeight;r.attr({scaleX:a/2,scaleY:a/2,x:n[e]+(e?-1:1),y:i[1]/2-a/2})},this),t.filler.setShape({x:r[0],y:0,width:r[1]-r[0],height:i[1]});var a={x:r[0],width:r[1]-r[0]};t.moveHandle&&(t.moveHandle.setShape(a),t.moveZone.setShape(a),t.moveZone.getBoundingRect(),t.moveHandleIcon&&t.moveHandleIcon.attr("x",a.x+a.width/2));for(var o=t.dataShadowSegs,s=[0,r[0],r[1],i[0]],l=0;l<o.length;l++){var c=o[l],u=c.getClipPath();u||(u=new Ds,c.setClipPath(u)),u.setShape({x:s[l],y:0,width:s[l+1]-s[l],height:i[1]})}this._updateDataInfo(e)},t.prototype._updateDataInfo=function(e){var t=this.dataZoomModel,n=this._displayables,r=n.handleLabels,i=this._orient,a=["",""];if(t.get("showDetail")){var o=t.findRepresentativeAxisProxy();if(o){var s=o.getAxisModel().axis,l=this._range,c=e?o.calculateDataWindow({start:l[0],end:l[1]}).valueWindow:o.getDataValueWindow();a=[this._formatLabel(c[0],s),this._formatLabel(c[1],s)]}}var u=yi(this._handleEnds.slice());function h(e){var t=Tu(n.handles[e].parent,this.group),o=Mu(0===e?"right":"left",t),s=this._handleWidth/2+HU,l=Iu([u[e]+(0===e?-s:s),this._size[1]/2],t);r[e].setStyle({x:l[0],y:l[1],verticalAlign:i===UU?"middle":o,align:i===UU?o:"center",text:a[e]})}h.call(this,0),h.call(this,1)},t.prototype._formatLabel=function(e,t){var n=this.dataZoomModel,r=n.get("labelFormatter"),i=n.get("labelPrecision");null!=i&&"auto"!==i||(i=t.getPixelPrecision());var a=null==e||isNaN(e)?"":"category"===t.type||"time"===t.type?t.scale.getLabel({value:Math.round(e)}):e.toFixed(Math.min(i,20));return ne(r)?r(e,a):re(r)?r.replace("{value}",a):a},t.prototype._showDataInfo=function(e){e=this._dragging||e;var t=this._displayables,n=t.handleLabels;n[0].attr("invisible",!e),n[1].attr("invisible",!e),t.moveHandle&&this.api[e?"enterEmphasis":"leaveEmphasis"](t.moveHandle,1)},t.prototype._onDragMove=function(e,t,n,r){this._dragging=!0,wt(r.event);var i=Iu([t,n],this._displayables.sliderGroup.getLocalTransform(),!0),a=this._updateInterval(e,i[0]),o=this.dataZoomModel.get("realtime");this._updateView(!o),a&&o&&this._dispatchZoomAction(!0)},t.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1),!this.dataZoomModel.get("realtime")&&this._dispatchZoomAction(!1)},t.prototype._onClickPanel=function(e){var t=this._size,n=this._displayables.sliderGroup.transformCoordToLocal(e.offsetX,e.offsetY);if(!(n[0]<0||n[0]>t[0]||n[1]<0||n[1]>t[1])){var r=this._handleEnds,i=(r[0]+r[1])/2,a=this._updateInterval("all",n[0]-i);this._updateView(),a&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var t=e.offsetX,n=e.offsetY;this._brushStart=new $n(t,n),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(this._brushing){var t=this._displayables.brushRect;if(this._brushing=!1,t){t.attr("ignore",!0);var n=t.shape;if(!(+new Date-this._brushStartTime<200&&Math.abs(n.width)<5)){var r=this._getViewExtent(),i=[0,100];this._range=yi([gi(n.x,r,i,!0),gi(n.x+n.width,r,i,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(wt(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,t){var n=this._displayables,r=this.dataZoomModel,i=n.brushRect;i||(i=n.brushRect=new NU({silent:!0,style:r.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(i)),i.attr("ignore",!1);var a=this._brushStart,o=this._displayables.sliderGroup,s=o.transformCoordToLocal(e,t),l=o.transformCoordToLocal(a.x,a.y),c=this._size;s[0]=Math.max(Math.min(c[0],s[0]),0),i.setShape({x:l[0],y:0,width:s[0]-l[0],height:c[1]})},t.prototype._dispatchZoomAction=function(e){var t=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?QU:null,start:t[0],end:t[1]})},t.prototype._findCoordRect=function(){var e,t=gL(this.dataZoomModel).infoList;if(!e&&t.length){var n=t[0].model.coordinateSystem;e=n.getRect&&n.getRect()}if(!e){var r=this.api.getWidth(),i=this.api.getHeight();e={x:.2*r,y:.2*i,width:.6*r,height:.6*i}}return e},t.type="dataZoom.slider",t}(wL);function GU(e){e.registerComponentModel(RU),e.registerComponentView(VU),EL(e)}var $U={get:function(e,t,n){var r=R((qU[e]||{})[t]);return n&&te(r)?r[r.length-1]:r}},qU={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},WU=$U,KU=bB.mapVisual,YU=bB.eachVisual,XU=te,JU=q,ZU=yi,eH=gi,tH=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.stateList=["inRange","outOfRange"],n.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],n.layoutMode={type:"box",ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return g(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.optionUpdated=function(e,t){var n=this.option;w.canvasSupported||(n.realtime=!1),!t&&qR(n,e,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var t=this.stateList;e=Z(e,this),this.controllerVisuals=$R(this.option.controller,t,e),this.targetVisuals=$R(this.option.target,t,e)},t.prototype.getTargetSeriesIndices=function(){var e=this.option.seriesIndex,t=[];return null==e||"all"===e?this.ecModel.eachSeries(function(e,n){t.push(n)}):t=Qi(e),t},t.prototype.eachTargetSeries=function(e,t){q(this.getTargetSeriesIndices(),function(n){var r=this.ecModel.getSeriesByIndex(n);r&&e.call(t,r)},this)},t.prototype.isTargetSeries=function(e){var t=!1;return this.eachTargetSeries(function(n){n===e&&(t=!0)}),t},t.prototype.formatValueText=function(e,t,n){var r,i=this.option,a=i.precision,o=this.dataBound,s=i.formatter;n=n||["<",">"],te(e)&&(e=e.slice(),r=!0);var l=t?e:r?[c(e[0]),c(e[1])]:c(e);return re(s)?s.replace("{value}",r?l[0]:l).replace("{value2}",r?l[1]:l):ne(s)?r?s(e[0],e[1]):s(e):r?e[0]===o[0]?n[0]+" "+l[1]:e[1]===o[1]?n[1]+" "+l[0]:l[0]+" - "+l[1]:l;function c(e){return e===o[0]?"min":e===o[1]?"max":(+e).toFixed(Math.min(a,20))}},t.prototype.resetExtent=function(){var e=this.option,t=ZU([e.min,e.max]);this._dataExtent=t},t.prototype.getDataDimension=function(e){var t=this.option.dimension,n=e.dimensions;if(null!=t||n.length){if(null!=t)return e.getDimension(t);for(var r=e.dimensions,i=r.length-1;i>=0;i--){var a=r[i];if(!e.getDimensionInfo(a).isCalculationCoord)return a}}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,t=this.option,n={inRange:t.inRange,outOfRange:t.outOfRange},r=t.target||(t.target={}),i=t.controller||(t.controller={});N(r,n),N(i,n);var a=this.isCategory();function o(n){XU(t.color)&&!n.inRange&&(n.inRange={color:t.color.slice().reverse()}),n.inRange=n.inRange||{color:e.get("gradientColor")}}o.call(this,r),o.call(this,i),function(e,t,n){var r=e[t],i=e[n];r&&!i&&(i=e[n]={},JU(r,function(e,t){if(bB.isValidType(t)){var n=WU.get(t,"inactive",a);null!=n&&(i[t]=n,"color"!==t||i.hasOwnProperty("opacity")||i.hasOwnProperty("colorAlpha")||(i.opacity=[0,0]))}}))}.call(this,r,"inRange","outOfRange"),function(e){var t=(e.inRange||{}).symbol||(e.outOfRange||{}).symbol,n=(e.inRange||{}).symbolSize||(e.outOfRange||{}).symbolSize,r=this.get("inactiveColor");JU(this.stateList,function(i){var o=this.itemSize,s=e[i];s||(s=e[i]={color:a?r:[r]}),null==s.symbol&&(s.symbol=t&&R(t)||(a?"roundRect":["roundRect"])),null==s.symbolSize&&(s.symbolSize=n&&R(n)||(a?o[0]:[o[0],o[0]])),s.symbol=KU(s.symbol,function(e){return"none"===e||"square"===e?"roundRect":e});var l=s.symbolSize;if(null!=l){var c=-1/0;YU(l,function(e){e>c&&(c=e)}),s.symbolSize=KU(l,function(e){return eH(e,[0,c],[0,o[0]],!0)})}},this)}.call(this,i)},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(e){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(e){return null},t.prototype.getVisualMeta=function(e){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,zlevel:0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},t}(Bd),nH=[20,140];function rH(e,t,n){if(n[0]===n[1])return n.slice();for(var r=(n[1]-n[0])/200,i=n[0],a=[],o=0;o<=200&&i<n[1];o++)a.push(i),i+=r;return a.push(n[1]),a}var iH=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(e){e.mappingMethod="linear",e.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){e.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(null==t[0]||isNaN(t[0]))&&(t[0]=nH[0]),(null==t[1]||isNaN(t[1]))&&(t[1]=nH[1])},t.prototype._resetRange=function(){var e=this.getExtent(),t=this.option.range;!t||t.auto?(e.auto=1,this.option.range=e):te(t)&&(t[0]>t[1]&&t.reverse(),t[0]=Math.max(t[0],e[0]),t[1]=Math.min(t[1],e[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),q(this.stateList,function(e){var t=this.option.controller[e].symbolSize;t&&t[0]!==t[1]&&(t[0]=t[1]/3)},this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),t=yi((this.get("range")||[]).slice());return t[0]>e[1]&&(t[0]=e[1]),t[1]>e[1]&&(t[1]=e[1]),t[0]<e[0]&&(t[0]=e[0]),t[1]<e[0]&&(t[1]=e[0]),t},t.prototype.getValueState=function(e){var t=this.option.range,n=this.getExtent();return(t[0]<=n[0]||t[0]<=e)&&(t[1]>=n[1]||e<=t[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var t=[];return this.eachTargetSeries(function(n){var r=[],i=n.getData();i.each(this.getDataDimension(i),function(t,n){e[0]<=t&&t<=e[1]&&r.push(n)},this),t.push({seriesId:n.id,dataIndex:r})},this),t},t.prototype.getVisualMeta=function(e){var t=rH(this,"outOfRange",this.getExtent()),n=rH(this,"inRange",this.option.range.slice()),r=[];function i(t,n){r.push({value:t,color:e(t,n)})}for(var a=0,o=0,s=n.length,l=t.length;o<l&&(!n.length||t[o]<=n[0]);o++)t[o]<n[a]&&i(t[o],"outOfRange");for(var c=1;a<s;a++,c=0)c&&r.length&&i(n[a],"outOfRange"),i(n[a],"inRange");for(c=1;o<l;o++)(!n.length||n[n.length-1]<t[o])&&(c&&(r.length&&i(r[r.length-1].value,"outOfRange"),c=0),i(t[o],"outOfRange"));var u=r.length;return{stops:r,outerColors:[u?r[0].color:"transparent",u?r[u-1].color:"transparent"]}},t.type="visualMap.continuous",t.defaultOption=gh(tH.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),t}(tH),aH=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.autoPositionValues={left:1,right:1,top:1,bottom:1},n}return g(t,e),t.prototype.init=function(e,t){this.ecModel=e,this.api=t},t.prototype.render=function(e,t,n,r){this.visualMapModel=e,!1!==e.get("show")?this.doRender(e,t,n,r):this.group.removeAll()},t.prototype.renderBackground=function(e){var t=this.visualMapModel,n=td(t.get("padding")||0),r=e.getBoundingRect();e.add(new Ds({z2:-1,silent:!0,shape:{x:r.x-n[3],y:r.y-n[0],width:r.width+n[3]+n[1],height:r.height+n[0]+n[2]},style:{fill:t.get("backgroundColor"),stroke:t.get("borderColor"),lineWidth:t.get("borderWidth")}}))},t.prototype.getControllerVisual=function(e,t,n){var r=(n=n||{}).forceState,i=this.visualMapModel,a={};if("symbol"===t&&(a.symbol=i.get("itemSymbol")),"color"===t){var o=i.get("contentColor");a.color=o}function s(e){return a[e]}function l(e,t){a[e]=t}var c=i.controllerVisuals[r||i.getValueState(e)];return q(bB.prepareVisualTypes(c),function(r){var i=c[r];n.convertOpacityToAlpha&&"opacity"===r&&(r="colorAlpha",i=c.__alphaForOpacity),bB.dependsOn(r,t)&&i&&i.applyVisual(e,s,l)}),a[t]},t.prototype.positionGroup=function(e){var t=this.visualMapModel,n=this.api;bd(e,t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})},t.prototype.doRender=function(e,t,n,r){},t.type="visualMap",t}(aA),oH=[["left","right","width"],["top","bottom","height"]];function sH(e,t,n){var r=e.option,i=r.align;if(null!=i&&"auto"!==i)return i;for(var a={width:t.getWidth(),height:t.getHeight()},o="horizontal"===r.orient?1:0,s=oH[o],l=[0,null,10],c={},u=0;u<3;u++)c[oH[1-o][u]]=l[u],c[s[u]]=2===u?n[0]:r[s[u]];var h=[["x","width",3],["y","height",0]][o],d=yd(c,a,r.padding);return s[(d.margin[h[2]]||0)+d[h[0]]+.5*d[h[1]]<.5*a[h[1]]?0:1]}function lH(e,t){return q(e||[],function(e){null!=e.dataIndex&&(e.dataIndexInside=e.dataIndex,e.dataIndex=null),e.highlightKey="visualMap"+(t?t.componentIndex:"")}),e}var cH=gi,uH=q,hH=Math.min,dH=Math.max,fH=12;function pH(e,t,n,r){return new Dc({shape:{points:e},draggable:!!n,cursor:t,drift:n,onmousemove:function(e){wt(e.event)},ondragend:r})}function AH(e){var t=e.get("hoverLinkOnHandle");return!!(null==t?e.get("realtime"):t)}function gH(e){return"vertical"===e?"ns-resize":"ew-resize"}var mH=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._shapes={},n._dataInterval=[],n._handleEnds=[],n._hoverLinkDataIndices=[],n}return g(t,e),t.prototype.doRender=function(e,t,n,r){this._api=n,r&&"selectDataRange"===r.type&&r.from===this.uid||this._buildView()},t.prototype._buildView=function(){this.group.removeAll();var e=this.visualMapModel,t=this.group;this._orient=e.get("orient"),this._useHandle=e.get("calculable"),this._resetInterval(),this._renderBar(t);var n=e.get("text");this._renderEndsText(t,n,0),this._renderEndsText(t,n,1),this._updateView(!0),this.renderBackground(t),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(t)},t.prototype._renderEndsText=function(e,t,n){if(t){var r=t[1-n];r=null!=r?r+"":"";var i=this.visualMapModel,a=i.get("textGap"),o=i.itemSize,s=this._shapes.mainGroup,l=this._applyTransform([o[0]/2,0===n?-a:o[1]+a],s),c=this._applyTransform(0===n?"bottom":"top",s),u=this._orient,h=this.visualMapModel.textStyleModel;this.group.add(new Vs({style:{x:l[0],y:l[1],verticalAlign:"horizontal"===u?"middle":c,align:"horizontal"===u?c:"center",text:r,font:h.getFont(),fill:h.getTextColor()}}))}},t.prototype._renderBar=function(e){var t=this.visualMapModel,n=this._shapes,r=t.itemSize,i=this._orient,a=this._useHandle,o=sH(t,this.api,r),s=n.mainGroup=this._createBarGroup(o),l=new ii;s.add(l),l.add(n.outOfRange=pH()),l.add(n.inRange=pH(null,a?gH(this._orient):null,Z(this._dragHandle,this,"all",!1),Z(this._dragHandle,this,"all",!0))),l.setClipPath(new Ds({shape:{x:0,y:0,width:r[0],height:r[1],r:3}}));var c=t.textStyleModel.getTextRect("国"),u=dH(c.width,c.height);a&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(t,s,0,r,u,i),this._createHandle(t,s,1,r,u,i)),this._createIndicator(t,s,r,u,i),e.add(s)},t.prototype._createHandle=function(e,t,n,r,i,a){var o=Z(this._dragHandle,this,n,!1),s=Z(this._dragHandle,this,n,!0),l=hr(e.get("handleSize"),r[0]),c=Zg(e.get("handleIcon"),-l/2,-l/2,l,l,null,!0),u=gH(this._orient);c.attr({cursor:u,draggable:!0,drift:o,ondragend:s,onmousemove:function(e){wt(e.event)}}),c.x=r[0]/2,c.useStyle(e.getModel("handleStyle").getItemStyle()),c.setStyle({strokeNoScale:!0,strokeFirst:!0}),c.style.lineWidth*=2,c.ensureState("emphasis").style=e.getModel(["emphasis","handleStyle"]).getItemStyle(),Ll(c,!0),t.add(c);var h=this.visualMapModel.textStyleModel,d=new Vs({cursor:u,draggable:!0,drift:o,onmousemove:function(e){wt(e.event)},ondragend:s,style:{x:0,y:0,text:"",font:h.getFont(),fill:h.getTextColor()}});d.ensureState("blur").style={opacity:.1},d.stateTransition={duration:200},this.group.add(d);var f=[l,0],p=this._shapes;p.handleThumbs[n]=c,p.handleLabelPoints[n]=f,p.handleLabels[n]=d},t.prototype._createIndicator=function(e,t,n,r,i){var a=hr(e.get("indicatorSize"),n[0]),o=Zg(e.get("indicatorIcon"),-a/2,-a/2,a,a,null,!0);o.attr({cursor:"move",invisible:!0,silent:!0,x:n[0]/2});var s=e.getModel("indicatorStyle").getItemStyle();if(o instanceof Ss){var l=o.style;o.useStyle(H({image:l.image,x:l.x,y:l.y,width:l.width,height:l.height},s))}else o.useStyle(s);t.add(o);var c=this.visualMapModel.textStyleModel,u=new Vs({silent:!0,invisible:!0,style:{x:0,y:0,text:"",font:c.getFont(),fill:c.getTextColor()}});this.group.add(u);var h=[("horizontal"===i?r/2:6)+n[0]/2,0],d=this._shapes;d.indicator=o,d.indicatorLabel=u,d.indicatorLabelPoint=h,this._firstShowIndicator=!0},t.prototype._dragHandle=function(e,t,n,r){if(this._useHandle){if(this._dragging=!t,!t){var i=this._applyTransform([n,r],this._shapes.mainGroup,!0);this._updateInterval(e,i[1]),this._hideIndicator(),this._updateView()}t===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),t?!this._hovering&&this._clearHoverLinkToSeries():AH(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[e],!1)}},t.prototype._resetInterval=function(){var e=this.visualMapModel,t=this._dataInterval=e.getSelected(),n=e.getExtent(),r=[0,e.itemSize[1]];this._handleEnds=[cH(t[0],n,r,!0),cH(t[1],n,r,!0)]},t.prototype._updateInterval=function(e,t){t=t||0;var n=this.visualMapModel,r=this._handleEnds,i=[0,n.itemSize[1]];mT(t,r,i,e,0);var a=n.getExtent();this._dataInterval=[cH(r[0],i,a,!0),cH(r[1],i,a,!0)]},t.prototype._updateView=function(e){var t=this.visualMapModel,n=t.getExtent(),r=this._shapes,i=[0,t.itemSize[1]],a=e?i:this._handleEnds,o=this._createBarVisual(this._dataInterval,n,a,"inRange"),s=this._createBarVisual(n,n,i,"outOfRange");r.inRange.setStyle({fill:o.barColor}).setShape("points",o.barPoints),r.outOfRange.setStyle({fill:s.barColor}).setShape("points",s.barPoints),this._updateHandle(a,o)},t.prototype._createBarVisual=function(e,t,n,r){var i={forceState:r,convertOpacityToAlpha:!0},a=this._makeColorGradient(e,i),o=[this.getControllerVisual(e[0],"symbolSize",i),this.getControllerVisual(e[1],"symbolSize",i)],s=this._createBarPoints(n,o);return{barColor:new Xc(0,0,0,1,a),barPoints:s,handlesColor:[a[0].color,a[a.length-1].color]}},t.prototype._makeColorGradient=function(e,t){var n=[],r=(e[1]-e[0])/100;n.push({color:this.getControllerVisual(e[0],"color",t),offset:0});for(var i=1;i<100;i++){var a=e[0]+r*i;if(a>e[1])break;n.push({color:this.getControllerVisual(a,"color",t),offset:i/100})}return n.push({color:this.getControllerVisual(e[1],"color",t),offset:1}),n},t.prototype._createBarPoints=function(e,t){var n=this.visualMapModel.itemSize;return[[n[0]-t[0],e[0]],[n[0],e[0]],[n[0],e[1]],[n[0]-t[1],e[1]]]},t.prototype._createBarGroup=function(e){var t=this._orient,n=this.visualMapModel.get("inverse");return new ii("horizontal"!==t||n?"horizontal"===t&&n?{scaleX:"bottom"===e?-1:1,rotation:-Math.PI/2}:"vertical"!==t||n?{scaleX:"left"===e?1:-1}:{scaleX:"left"===e?1:-1,scaleY:-1}:{scaleX:"bottom"===e?1:-1,rotation:Math.PI/2})},t.prototype._updateHandle=function(e,t){if(this._useHandle){var n=this._shapes,r=this.visualMapModel,i=n.handleThumbs,a=n.handleLabels,o=r.itemSize,s=r.getExtent();uH([0,1],function(l){var c=i[l];c.setStyle("fill",t.handlesColor[l]),c.y=e[l];var u=cH(e[l],[0,o[1]],s,!0),h=this.getControllerVisual(u,"symbolSize");c.scaleX=c.scaleY=h/o[0],c.x=o[0]-h/2;var d=Iu(n.handleLabelPoints[l],Tu(c,this.group));a[l].setStyle({x:d[0],y:d[1],text:r.formatValueText(this._dataInterval[l]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",n.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(e,t,n,r){var i=this.visualMapModel,a=i.getExtent(),o=i.itemSize,s=[0,o[1]],l=this._shapes,c=l.indicator;if(c){c.attr("invisible",!1);var u=this.getControllerVisual(e,"color",{convertOpacityToAlpha:!0}),h=this.getControllerVisual(e,"symbolSize"),d=cH(e,a,s,!0),f=o[0]-h/2,p={x:c.x,y:c.y};c.y=d,c.x=f;var A=Iu(l.indicatorLabelPoint,Tu(c,this.group)),g=l.indicatorLabel;g.attr("invisible",!1);var m=this._applyTransform("left",l.mainGroup),v="horizontal"===this._orient;g.setStyle({text:(n||"")+i.formatValueText(t),verticalAlign:v?m:"middle",align:v?"center":m});var y={x:f,y:d,style:{fill:u}},b={style:{x:A[0],y:A[1]}};if(i.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var w={duration:100,easing:"cubicInOut",additive:!0};c.x=p.x,c.y=p.y,c.animateTo(y,w),g.animateTo(b,w)}else c.attr(y),g.attr(b);this._firstShowIndicator=!1;var x=this._shapes.handleLabels;if(x)for(var _=0;_<x.length;_++)this._api.enterBlur(x[_])}},t.prototype._enableHoverLinkToSeries=function(){var e=this;this._shapes.mainGroup.on("mousemove",function(t){if(e._hovering=!0,!e._dragging){var n=e.visualMapModel.itemSize,r=e._applyTransform([t.offsetX,t.offsetY],e._shapes.mainGroup,!0,!0);r[1]=hH(dH(0,r[1]),n[1]),e._doHoverLinkToSeries(r[1],0<=r[0]&&r[0]<=n[0])}}).on("mouseout",function(){e._hovering=!1,!e._dragging&&e._clearHoverLinkToSeries()})},t.prototype._enableHoverLinkFromSeries=function(){var e=this.api.getZr();this.visualMapModel.option.hoverLink?(e.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),e.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},t.prototype._doHoverLinkToSeries=function(e,t){var n=this.visualMapModel,r=n.itemSize;if(n.option.hoverLink){var i=[0,r[1]],a=n.getExtent();e=hH(dH(i[0],e),i[1]);var o=function(e,t,n){var r=fH/2,i=e.get("hoverLinkDataSize");i&&(r=cH(i,t,n,!0)/2);return r}(n,a,i),s=[e-o,e+o],l=cH(e,i,a,!0),c=[cH(s[0],i,a,!0),cH(s[1],i,a,!0)];s[0]<i[0]&&(c[0]=-1/0),s[1]>i[1]&&(c[1]=1/0),t&&(c[0]===-1/0?this._showIndicator(l,c[1],"< ",o):c[1]===1/0?this._showIndicator(l,c[0],"> ",o):this._showIndicator(l,l,"≈ ",o));var u=this._hoverLinkDataIndices,h=[];(t||AH(n))&&(h=this._hoverLinkDataIndices=n.findTargetDataIndices(c));var d=function(e,t){var n={},r={};return i(e||[],n),i(t||[],r,n),[a(n),a(r)];function i(e,t,n){for(var r=0,i=e.length;r<i;r++){var a=Ki(e[r].seriesId,null);if(null==a)return;for(var o=Qi(e[r].dataIndex),s=n&&n[a],l=0,c=o.length;l<c;l++){var u=o[l];s&&s[u]?s[u]=null:(t[a]||(t[a]={}))[u]=1}}}function a(e,t){var n=[];for(var r in e)if(e.hasOwnProperty(r)&&null!=e[r])if(t)n.push(+r);else{var i=a(e[r],!0);i.length&&n.push({seriesId:r,dataIndex:i})}return n}}(u,h);this._dispatchHighDown("downplay",lH(d[0],n)),this._dispatchHighDown("highlight",lH(d[1],n))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var t=e.target,n=this.visualMapModel;if(t&&null!=Gs(t).dataIndex){var r=Gs(t),i=this.ecModel.getSeriesByIndex(r.seriesIndex);if(n.isTargetSeries(i)){var a=i.getData(r.dataType),o=a.get(n.getDataDimension(a),r.dataIndex);isNaN(o)||this._showIndicator(o,o)}}},t.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr("invisible",!0),e.indicatorLabel&&e.indicatorLabel.attr("invisible",!0);var t=this._shapes.handleLabels;if(t)for(var n=0;n<t.length;n++)this._api.leaveBlur(t[n])},t.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var e=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",lH(e,this.visualMapModel)),e.length=0},t.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var e=this.api.getZr();e.off("mouseover",this._hoverLinkFromSeriesMouseOver),e.off("mouseout",this._hideIndicator)},t.prototype._applyTransform=function(e,t,n,r){var i=Tu(t,r?null:this.group);return te(e)?Iu(e,i,n):Mu(e,i,n)},t.prototype._dispatchHighDown=function(e,t){t&&t.length&&this.api.dispatchAction({type:e,batch:t})},t.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.prototype.remove=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.type="visualMap.continuous",t}(aH),vH={type:"selectDataRange",event:"dataRangeSelected",update:"update"},yH=function(e,t){t.eachComponent({mainType:"visualMap",query:e},function(t){t.setSelected(e.selected)})},bH=[{createOnAllSeries:!0,reset:function(e,t){var n=[];return t.eachComponent("visualMap",function(t){var r,i,a,o,s,l=e.pipelineContext;!t.isTargetSeries(e)||l&&l.large||n.push((r=t.stateList,i=t.targetVisuals,a=Z(t.getValueState,t),o=t.getDataDimension(e.getData()),s={},q(r,function(e){var t=bB.prepareVisualTypes(i[e]);s[e]=t}),{progress:function(e,t){var n,r;function l(e){return rg(t,r,e)}function c(e,n){ag(t,r,e,n)}for(null!=o&&(n=t.getDimension(o));null!=(r=e.next());){var u=t.getRawDataItem(r);if(!u||!1!==u.visualMap)for(var h=null!=o?t.get(n,r):r,d=a(h),f=i[d],p=s[d],A=0,g=p.length;A<g;A++){var m=p[A];f[m]&&f[m].applyVisual(h,l,c)}}}}))}),n}},{createOnAllSeries:!0,reset:function(e,t){var n=e.getData(),r=[];t.eachComponent("visualMap",function(t){if(t.isTargetSeries(e)){var i=t.getVisualMeta(Z(wH,null,e,t))||{stops:[],outerColors:[]},a=t.getDataDimension(n),o=n.getDimensionInfo(a);null!=o&&(i.dimension=o.index,r.push(i))}}),e.getData().setVisual("visualMeta",r)}}];function wH(e,t,n,r){for(var i=t.targetVisuals[r],a=bB.prepareVisualTypes(i),o={color:ig(e.getData(),"color")},s=0,l=a.length;s<l;s++){var c=a[s],u=i["opacity"===c?"__alphaForOpacity":c];u&&u.applyVisual(n,h,d)}return o.color;function h(e){return o[e]}function d(e,t){o[e]=t}}var xH=q;function _H(e){var t=e&&e.visualMap;te(t)||(t=t?[t]:[]),xH(t,function(e){if(e){CH(e,"splitList")&&!CH(e,"pieces")&&(e.pieces=e.splitList,delete e.splitList);var t=e.pieces;t&&te(t)&&xH(t,function(e){oe(e)&&(CH(e,"start")&&!CH(e,"min")&&(e.min=e.start),CH(e,"end")&&!CH(e,"max")&&(e.max=e.end))})}})}function CH(e,t){return e&&e.hasOwnProperty&&e.hasOwnProperty(t)}var SH=!1;function kH(e){SH||(SH=!0,e.registerSubTypeDefaulter("visualMap",function(e){return e.categories||(e.pieces?e.pieces.length>0:e.splitNumber>0)&&!e.calculable?"piecewise":"continuous"}),e.registerAction(vH,yH),q(bH,function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)}),e.registerPreprocessor(_H))}function BH(e){e.registerComponentModel(iH),e.registerComponentView(mH),kH(e)}var EH=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._pieceList=[],n}return g(t,e),t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var r=this._mode=this._determineMode();this._pieceList=[],TH[this._mode].call(this,this._pieceList),this._resetSelected(t,n);var i=this.option.categories;this.resetVisual(function(e,t){"categories"===r?(e.mappingMethod="category",e.categories=R(i)):(e.dataExtent=this.getExtent(),e.mappingMethod="piecewise",e.pieceList=W(this._pieceList,function(e){return e=R(e),"inRange"!==t&&(e.visual=null),e}))})},t.prototype.completeVisualOption=function(){var t=this.option,n={},r=bB.listVisualTypes(),i=this.isCategory();function a(e,t,n){return e&&e[t]&&e[t].hasOwnProperty(n)}q(t.pieces,function(e){q(r,function(t){e.hasOwnProperty(t)&&(n[t]=1)})}),q(n,function(e,n){var r=!1;q(this.stateList,function(e){r=r||a(t,e,n)||a(t.target,e,n)},this),!r&&q(this.stateList,function(e){(t[e]||(t[e]={}))[n]=WU.get(n,"inRange"===e?"active":"inactive",i)})},this),e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,t){var n=this.option,r=this._pieceList,i=(t?n:e).selected||{};if(n.selected=i,q(r,function(e,t){var n=this.getSelectedMapKey(e);i.hasOwnProperty(n)||(i[n]=!0)},this),"single"===n.selectedMode){var a=!1;q(r,function(e,t){var n=this.getSelectedMapKey(e);i[n]&&(a?i[n]=!1:a=!0)},this)}},t.prototype.getSelectedMapKey=function(e){return"categories"===this._mode?e.value+"":e.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var e=this.option;return e.pieces&&e.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(e){this.option.selected=R(e)},t.prototype.getValueState=function(e){var t=bB.findPieceIndex(e,this._pieceList);return null!=t&&this.option.selected[this.getSelectedMapKey(this._pieceList[t])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var t=[],n=this._pieceList;return this.eachTargetSeries(function(r){var i=[],a=r.getData();a.each(this.getDataDimension(a),function(t,r){bB.findPieceIndex(t,n)===e&&i.push(r)},this),t.push({seriesId:r.id,dataIndex:i})},this),t},t.prototype.getRepresentValue=function(e){var t;if(this.isCategory())t=e.value;else if(null!=e.value)t=e.value;else{var n=e.interval||[];t=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return t},t.prototype.getVisualMeta=function(e){if(!this.isCategory()){var t=[],n=["",""],r=this,i=this._pieceList.slice();if(i.length){var a=i[0].interval[0];a!==-1/0&&i.unshift({interval:[-1/0,a]}),(a=i[i.length-1].interval[1])!==1/0&&i.push({interval:[a,1/0]})}else i.push({interval:[-1/0,1/0]});var o=-1/0;return q(i,function(e){var t=e.interval;t&&(t[0]>o&&s([o,t[0]],"outOfRange"),s(t.slice()),o=t[1])},this),{stops:t,outerColors:n}}function s(i,a){var o=r.getRepresentValue({interval:i});a||(a=r.getValueState(o));var s=e(o,a);i[0]===-1/0?n[0]=s:i[1]===1/0?n[1]=s:t.push({value:i[0],color:s},{value:i[1],color:s})}},t.type="visualMap.piecewise",t.defaultOption=gh(tH.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),t}(tH),TH={splitNumber:function(e){var t=this.option,n=Math.min(t.precision,20),r=this.getExtent(),i=t.splitNumber;i=Math.max(parseInt(i,10),1),t.splitNumber=i;for(var a=(r[1]-r[0])/i;+a.toFixed(n)!==a&&n<5;)n++;t.precision=n,a=+a.toFixed(n),t.minOpen&&e.push({interval:[-1/0,r[0]],close:[0,0]});for(var o=0,s=r[0];o<i;s+=a,o++){var l=o===i-1?r[1]:s+a;e.push({interval:[s,l],close:[1,1]})}t.maxOpen&&e.push({interval:[r[1],1/0],close:[0,0]}),Di(e),q(e,function(e,t){e.index=t,e.text=this.formatValueText(e.interval)},this)},categories:function(e){var t=this.option;q(t.categories,function(t){e.push({text:this.formatValueText(t,!0),value:t})},this),IH(t,e)},pieces:function(e){var t=this.option;q(t.pieces,function(t,n){oe(t)||(t={value:t});var r={text:"",index:n};if(null!=t.label&&(r.text=t.label),t.hasOwnProperty("value")){var i=r.value=t.value;r.interval=[i,i],r.close=[1,1]}else{for(var a=r.interval=[],o=r.close=[0,0],s=[1,0,1],l=[-1/0,1/0],c=[],u=0;u<2;u++){for(var h=[["gte","gt","min"],["lte","lt","max"]][u],d=0;d<3&&null==a[u];d++)a[u]=t[h[d]],o[u]=s[d],c[u]=2===d;null==a[u]&&(a[u]=l[u])}c[0]&&a[1]===1/0&&(o[0]=0),c[1]&&a[0]===-1/0&&(o[1]=0),a[0]===a[1]&&o[0]&&o[1]&&(r.value=a[0])}r.visual=bB.retrieveVisuals(t),e.push(r)},this),IH(t,e),Di(e),q(e,function(e){var t=e.close,n=[["<","≤"][t[1]],[">","≥"][t[0]]];e.text=e.text||this.formatValueText(null!=e.value?e.value:e.interval,!1,n)},this)}};function IH(e,t){var n=e.inverse;("vertical"===e.orient?!n:n)&&t.reverse()}var MH=EH,FH=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return g(t,e),t.prototype.doRender=function(){var e=this.group;e.removeAll();var t=this.visualMapModel,n=t.get("textGap"),r=t.textStyleModel,i=r.getFont(),a=r.getTextColor(),o=this._getItemAlign(),s=t.itemSize,l=this._getViewData(),c=l.endsText,u=pe(t.get("showLabel",!0),!c);c&&this._renderEndsText(e,c[0],s,u,o),q(l.viewPieceList,function(r){var l=r.piece,c=new ii;c.onclick=Z(this._onItemClick,this,l),this._enableHoverLink(c,r.indexInModelPieceList);var h=t.getRepresentValue(l);if(this._createItemSymbol(c,h,[0,0,s[0],s[1]]),u){var d=this.visualMapModel.getValueState(h);c.add(new Vs({style:{x:"right"===o?-n:s[0]+n,y:s[1]/2,text:l.text,verticalAlign:"middle",align:o,font:i,fill:a,opacity:"outOfRange"===d?.5:1}}))}e.add(c)},this),c&&this._renderEndsText(e,c[1],s,u,o),vd(t.get("orient"),e,t.get("itemGap")),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,t){var n=this;e.on("mouseover",function(){return r("highlight")}).on("mouseout",function(){return r("downplay")});var r=function(e){var r=n.visualMapModel;r.option.hoverLink&&n.api.dispatchAction({type:e,batch:lH(r.findTargetDataIndices(t),r)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,t=e.option;if("vertical"===t.orient)return sH(e,this.api,e.itemSize);var n=t.align;return n&&"auto"!==n||(n="left"),n},t.prototype._renderEndsText=function(e,t,n,r,i){if(t){var a=new ii,o=this.visualMapModel.textStyleModel;a.add(new Vs({style:{x:r?"right"===i?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:r?i:"center",text:t,font:o.getFont(),fill:o.getTextColor()}})),e.add(a)}},t.prototype._getViewData=function(){var e=this.visualMapModel,t=W(e.getPieceList(),function(e,t){return{piece:e,indexInModelPieceList:t}}),n=e.get("text"),r=e.get("orient"),i=e.get("inverse");return("horizontal"===r?i:!i)?t.reverse():n&&(n=n.slice().reverse()),{viewPieceList:t,endsText:n}},t.prototype._createItemSymbol=function(e,t,n){e.add(Zg(this.getControllerVisual(t,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(t,"color")))},t.prototype._onItemClick=function(e){var t=this.visualMapModel,n=t.option,r=R(n.selected),i=t.getSelectedMapKey(e);"single"===n.selectedMode?(r[i]=!0,q(r,function(e,t){r[t]=t===i})):r[i]=!r[i],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:r})},t.type="visualMap.piecewise",t}(aH);function DH(e){e.registerComponentModel(MH),e.registerComponentView(FH),kH(e)}var PH={label:{enabled:!0},decal:{show:!1}},OH=Zi(),LH={};function RH(e,t){var n=e.getModel("aria");if(n.get("enabled")){var r=R(PH);N(r.label,e.getLocaleModel().get("aria"),!1),N(n.option,r,!1),function(){if(n.getModel("decal").get("show")){var t=Se();e.eachSeries(function(e){if(e.useColorPaletteOnData){var n=t.get(e.type);n||(n={},t.set(e.type,n)),OH(e).scope=n}}),e.eachRawSeries(function(t){if(!e.isSeriesFiltered(t))if("function"!=typeof t.enableAriaDecal){var n=t.getData();if(t.useColorPaletteOnData){var r=t.getRawData(),i={},a=OH(t).scope;n.each(function(e){var t=n.getRawIndex(e);i[t]=e});var o=r.count();r.each(function(e){var s=i[e],l=r.getName(e)||e+"",u=ef(t.ecModel,l,a,o),h=n.getItemVisual(s,"decal");n.setItemVisual(s,"decal",c(h,u))})}else{var s=ef(t.ecModel,t.name,LH,e.getSeriesCount()),l=n.getVisual("decal");n.setVisual("decal",c(l,s))}}else t.enableAriaDecal();function c(e,t){var n=e?H(H({},t),e):t;return n.dirty=!0,n}})}}(),function(){var r=e.getLocaleModel().get("aria"),a=n.getModel("label");if(a.option=j(a.option,r),!a.get("enabled"))return;var o=t.getZr().dom;if(a.get("description"))return void o.setAttribute("aria-label",a.get("description"));var s,l=e.getSeriesCount(),c=a.get(["data","maxCount"])||10,u=a.get(["series","maxCount"])||10,h=Math.min(l,u);if(l<1)return;var d=function(){var t=e.get("title");t&&t.length&&(t=t[0]);return t&&t.text}();if(d){var f=a.get(["general","withTitle"]);s=i(f,{title:d})}else s=a.get(["general","withoutTitle"]);var p=[],A=l>1?a.get(["series","multiple","prefix"]):a.get(["series","single","prefix"]);s+=i(A,{seriesCount:l}),e.eachSeries(function(t,n){if(n<h){var r=void 0,o=t.get("name"),s=o?"withName":"withoutName";r=i(r=l>1?a.get(["series","multiple",s]):a.get(["series","single",s]),{seriesId:t.seriesIndex,seriesName:t.get("name"),seriesType:(w=t.subType,e.getLocaleModel().get(["series","typeNames"])[w]||"自定义图")});var u=t.getData();if(u.count()>c){var d=a.get(["data","partialData"]);r+=i(d,{displayCnt:c})}else r+=a.get(["data","allData"]);for(var f=[],A=0;A<u.count();A++)if(A<c){var g=u.getName(A),m=ap(u,A),v=a.get(["data",g?"withName":"withoutName"]);f.push(i(v,{name:g,value:m}))}var y=a.get(["data","separator","middle"]),b=a.get(["data","separator","end"]);r+=f.join(y)+b,p.push(r)}var w});var g=a.getModel(["series","multiple","separator"]),m=g.get("middle"),v=g.get("end");s+=p.join(m)+v,o.setAttribute("aria-label",s)}()}function i(e,t){if("string"!=typeof e)return e;var n=e;return q(t,function(e,t){n=n.replace(new RegExp("\\{\\s*"+t+"\\s*\\}","g"),e)}),n}}function NH(e){if(e&&e.aria){var t=e.aria;null!=t.show&&(t.enabled=t.show),t.label=t.label||{},q(["description","general","series","data"],function(e){null!=t[e]&&(t.label[e]=t[e])})}}var UH={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},HH=function(){function e(e){if(null==(this._condVal=re(e)?new RegExp(e):de(e)?e:null)){var t="";0,Ui(t)}}return e.prototype.evaluate=function(e){var t=typeof e;return"string"===t?this._condVal.test(e):"number"===t&&this._condVal.test(e+"")},e}(),jH=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),QH=function(){function e(){}return e.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(!e[t].evaluate())return!1;return!0},e}(),zH=function(){function e(){}return e.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(e[t].evaluate())return!0;return!1},e}(),VH=function(){function e(){}return e.prototype.evaluate=function(){return!this.child.evaluate()},e}(),GH=function(){function e(){}return e.prototype.evaluate=function(){for(var e=!!this.valueParser,t=(0,this.getValue)(this.valueGetterParam),n=e?this.valueParser(t):null,r=0;r<this.subCondList.length;r++)if(!this.subCondList[r].evaluate(e?n:t))return!1;return!0},e}();function $H(e,t){if(!0===e||!1===e){var n=new jH;return n.value=e,n}var r="";return WH(e)||Ui(r),e.and?qH("and",e,t):e.or?qH("or",e,t):e.not?function(e,t){var n=e.not,r="";0;WH(n)||Ui(r);var i=new VH;i.child=$H(n,t),i.child||Ui(r);return i}(e,t):function(e,t){for(var n="",r=t.prepareGetValue(e),i=[],a=J(e),o=e.parser,s=o?pp(o):null,l=0;l<a.length;l++){var c=a[l];if("parser"!==c&&!t.valueGetterAttrMap.get(c)){var u=Ee(UH,c)?UH[c]:c,h=e[c],d=s?s(h):h,f=yp(u,d)||"reg"===u&&new HH(d);f||Ui(n),i.push(f)}}i.length||Ui(n);var p=new GH;return p.valueGetterParam=r,p.valueParser=s,p.getValue=t.getValue,p.subCondList=i,p}(e,t)}function qH(e,t,n){var r=t[e],i="";te(r)||Ui(i),r.length||Ui(i);var a="and"===e?new QH:new zH;return a.children=W(r,function(e){return $H(e,n)}),a.children.length||Ui(i),a}function WH(e){return oe(e)&&!$(e)}var KH=function(){function e(e,t){this._cond=$H(e,t)}return e.prototype.evaluate=function(){return this._cond.evaluate()},e}();var YH={type:"echarts:filter",transform:function(e){for(var t,n,r,i=e.upstream,a=(n=e.config,r={valueGetterAttrMap:Se({dimension:!0}),prepareGetValue:function(e){var t="",n=e.dimension;Ee(e,"dimension")||Ui(t);var r=i.getDimensionInfo(n);return r||Ui(t),{dimIdx:r.index}},getValue:function(e){return i.retrieveValueFromItem(t,e.dimIdx)}},new KH(n,r)),o=[],s=0,l=i.count();s<l;s++)t=i.getRawDataItem(s),a.evaluate()&&o.push(t);return{data:o}}};var XH={type:"echarts:sort",transform:function(e){var t=e.upstream,n="",r=Qi(e.config);r.length||Ui(n);var i=[];q(r,function(e){var r=e.dimension,a=e.order,o=e.parser,s=e.incomparable;if(null==r&&Ui(n),"asc"!==a&&"desc"!==a&&Ui(n),s&&"min"!==s&&"max"!==s){var l="";0,Ui(l)}if("asc"!==a&&"desc"!==a){var c="";0,Ui(c)}var u=t.getDimensionInfo(r);u||Ui(n);var h=o?pp(o):null;o&&!h&&Ui(n),i.push({dimIdx:u.index,parser:h,comparator:new mp(a,s)})});var a=t.sourceFormat;a!==Dd&&a!==Pd&&Ui(n);for(var o=[],s=0,l=t.count();s<l;s++)o.push(t.getRawDataItem(s));return o.sort(function(e,n){for(var r=0;r<i.length;r++){var a=i[r],o=t.retrieveValueFromItem(e,a.dimIdx),s=t.retrieveValueFromItem(n,a.dimIdx);a.parser&&(o=a.parser(o),s=a.parser(s));var l=a.comparator.evaluate(o,s);if(0!==l)return l}return 0}),{data:o}}};var JH=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataset",t}return g(t,e),t.prototype.init=function(t,n,r){e.prototype.init.call(this,t,n,r),this._sourceManager=new Ep(this),Tp(this)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),Tp(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type="dataset",t.defaultOption={seriesLayoutBy:Nd},t}(Bd),ZH=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataset",t}return g(t,e),t.type="dataset",t}(aA);n.d(t,"version",function(){return"5.0.2"}),n.d(t,"dependencies",function(){return Dm}),n.d(t,"PRIORITY",function(){return Rm}),n.d(t,"init",function(){return Iv}),n.d(t,"connect",function(){return Mv}),n.d(t,"disConnect",function(){return Fv}),n.d(t,"disconnect",function(){return Dv}),n.d(t,"dispose",function(){return Pv}),n.d(t,"getInstanceByDom",function(){return Ov}),n.d(t,"getInstanceById",function(){return Lv}),n.d(t,"registerTheme",function(){return Rv}),n.d(t,"registerPreprocessor",function(){return Nv}),n.d(t,"registerProcessor",function(){return Uv}),n.d(t,"registerPostInit",function(){return Hv}),n.d(t,"registerPostUpdate",function(){return jv}),n.d(t,"registerAction",function(){return Qv}),n.d(t,"registerCoordinateSystem",function(){return zv}),n.d(t,"getCoordinateSystemDimensions",function(){return Vv}),n.d(t,"registerLocale",function(){return _h}),n.d(t,"registerLayout",function(){return Gv}),n.d(t,"registerVisual",function(){return $v}),n.d(t,"registerLoading",function(){return Kv}),n.d(t,"setCanvasCreator",function(){return Yv}),n.d(t,"registerMap",function(){return Xv}),n.d(t,"getMap",function(){return Jv}),n.d(t,"registerTransform",function(){return Zv}),n.d(t,"dataTool",function(){return ey}),n.d(t,"zrender",function(){return s}),n.d(t,"matrix",function(){return a}),n.d(t,"vector",function(){return i}),n.d(t,"zrUtil",function(){return r}),n.d(t,"color",function(){return o}),n.d(t,"throttle",function(){return yA}),n.d(t,"helper",function(){return c}),n.d(t,"use",function(){return ry}),n.d(t,"parseGeoJSON",function(){return cw}),n.d(t,"parseGeoJson",function(){return cw}),n.d(t,"number",function(){return u}),n.d(t,"time",function(){return h}),n.d(t,"graphic",function(){return d}),n.d(t,"format",function(){return f}),n.d(t,"util",function(){return p}),n.d(t,"env",function(){return w}),n.d(t,"List",function(){return Dy}),n.d(t,"Model",function(){return fh}),n.d(t,"Axis",function(){return ww}),n.d(t,"ComponentModel",function(){return Bd}),n.d(t,"ComponentView",function(){return aA}),n.d(t,"SeriesModel",function(){return rA}),n.d(t,"ChartView",function(){return AA}),n.d(t,"innerDrawElementOnCanvas",function(){return bm}),n.d(t,"extendComponentModel",function(){return xw}),n.d(t,"extendComponentView",function(){return _w}),n.d(t,"extendSeriesModel",function(){return Cw}),n.d(t,"extendChartView",function(){return Sw}),ry([function(e){e.registerPainter("canvas",xx)}]),ry([function(e){e.registerPainter("svg",Ax)}]),ry([function(e){e.registerChartView(r_),e.registerSeriesModel(_x),e.registerLayout(i_("line",!0)),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,s_("line"))},function(e){e.registerChartView(T_),e.registerSeriesModel(u_),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,ee(pb,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Ab),e.registerVisual({seriesType:"bar",reset:function(e){e.getData().setVisual("legendSymbol","roundRect")}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,s_("bar")),e.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,t){var n=e.componentType||"series";t.eachComponent({mainType:n,query:e},function(t){e.sortInfo&&t.axis.setCategorySortInfo(e.sortInfo)})})},function(e){e.registerChartView(H_),e.registerSeriesModel(z_),Hg("pie",e.registerAction),e.registerLayout(ee(F_,"pie")),e.registerProcessor(D_("pie"))},function(e){ry(jC),e.registerSeriesModel(V_),e.registerChartView(W_),e.registerLayout(i_("scatter"))},function(e){ry(tS),e.registerChartView($C),e.registerSeriesModel(qC),e.registerLayout(QC),e.registerProcessor(D_("radar")),e.registerPreprocessor(GC)},function(e){ry(rk),e.registerChartView(QS),e.registerSeriesModel(zS),e.registerLayout(GS),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,VS),Hg("map",e.registerAction)},function(e){e.registerChartView(yk),e.registerSeriesModel(Mk),e.registerLayout(Dk),e.registerVisual(Pk),function(e){e.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},function(t){var n=e.dataIndex,r=t.getData().tree.getNodeByDataIndex(n);r.isExpand=!r.isExpand})}),e.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},function(t){var n=tk(t.coordinateSystem,e);t.setCenter&&t.setCenter(n.center),t.setZoom&&t.setZoom(n.zoom)})})}(e)},function(e){e.registerSeriesModel(Qk),e.registerChartView(iB),e.registerVisual(_B),e.registerLayout(OB),function(e){for(var t=0;t<Hk.length;t++)e.registerAction({type:Hk[t],update:"updateView"},Uk);e.registerAction({type:"treemapRootToNode",update:"updateView"},function(e,t){t.eachComponent({mainType:"series",subType:"treemap",query:e},function(t,n){var r=Ok(e,["treemapZoomToNode","treemapRootToNode"],t);if(r){var i=t.getViewRoot();i&&(e.direction=Rk(i,r.node)?"rollUp":"drillDown"),t.resetViewRoot(r.node)}})})}(e)},function(e){e.registerChartView(DE),e.registerSeriesModel(jE),e.registerProcessor(UB),e.registerVisual(HB),e.registerVisual(QB),e.registerLayout(ZB),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,oE),e.registerLayout(lE),e.registerCoordinateSystem("graphView",{dimensions:WS.dimensions,create:cE}),e.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},function(){}),e.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},function(){}),e.registerAction(QE,function(e,t){t.eachComponent({mainType:"series",query:e},function(t){var n=tk(t.coordinateSystem,e);t.setCenter&&t.setCenter(n.center),t.setZoom&&t.setZoom(n.zoom)})})},function(e){e.registerChartView(qE),e.registerSeriesModel(WE)},function(e){e.registerChartView(XE),e.registerSeriesModel(JE),e.registerLayout(ZE),e.registerProcessor(D_("funnel"))},function(e){ry(TI),e.registerChartView(aT),e.registerSeriesModel(sT),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,cT)},function(e){e.registerChartView(FI),e.registerSeriesModel(DI),e.registerLayout(PI),e.registerVisual($I),e.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"sankey",query:e},function(t){t.setNodePosition(e.dataIndex,[e.localX,e.localY])})})},function(e){e.registerSeriesModel(KI),e.registerChartView(tM),e.registerVisual(nM),e.registerLayout(iM),e.registerTransform(aM)},function(e){e.registerChartView(mM),e.registerSeriesModel(yM),e.registerPreprocessor(bM),e.registerVisual(SM),e.registerLayout(EM)},function(e){e.registerChartView(FM),e.registerSeriesModel(DM),e.registerLayout(i_("effectScatter"))},function(e){e.registerChartView(jM),e.registerSeriesModel(GM),e.registerLayout(HM),e.registerVisual(qM)},function(e){e.registerChartView(YM),e.registerSeriesModel(XM)},function(e){e.registerChartView(vF),e.registerSeriesModel(yF),e.registerLayout(ee(pb,"pictorialBar"))},function(e){e.registerChartView(bF),e.registerSeriesModel(wF),e.registerLayout(xF),e.registerProcessor(D_("themeRiver"))},function(e){e.registerChartView(IF),e.registerSeriesModel(MF),e.registerLayout(ee(DF,"sunburst")),e.registerProcessor(ee(D_,"sunburst")),e.registerVisual(PF),function(e){e.registerAction({type:BF,update:"updateView"},function(e,t){t.eachComponent({mainType:"series",subType:"sunburst",query:e},function(t,n){var r=Ok(e,[BF],t);if(r){var i=t.getViewRoot();i&&(e.direction=Rk(i,r.node)?"rollUp":"drillDown"),t.resetViewRoot(r.node)}})}),e.registerAction({type:EF,update:"none"},function(e,t,n){e=H({},e),t.eachComponent({mainType:"series",subType:"sunburst",query:e},function(t){var n=Ok(e,[EF],t);n&&(e.dataIndex=n.node.dataIndex)}),n.dispatchAction(H(e,{type:"highlight"}))}),e.registerAction({type:TF,update:"updateView"},function(e,t,n){e=H({},e),n.dispatchAction(H(e,{type:"downplay"}))})}(e)},function(e){e.registerChartView(ID),e.registerSeriesModel(TD)}]),ry(function(e){ry(jC),ry(KP)}),ry(function(e){ry(KP),TC.registerAxisPointerClass("PolarAxisPointer",JP),e.registerCoordinateSystem("polar",dO),e.registerComponentModel(ZP),e.registerComponentView(IO),nC(e,"angle",tO,EO),nC(e,"radius",nO,TO),e.registerComponentView(yO),e.registerComponentView(CO),e.registerLayout(ee(BO,"bar"))}),ry(rk),ry(function(e){ry(KP),TC.registerAxisPointerClass("SingleAxisPointer",KO),e.registerComponentView(YO),e.registerComponentView(LO),e.registerComponentModel(NO),nC(e,"single",NO,NO.defaultOption),e.registerCoordinateSystem("single",QO)}),ry(TI),ry(function(e){e.registerComponentModel(JO),e.registerComponentView(tL),e.registerCoordinateSystem("calendar",rL)}),ry(function(e){e.registerComponentModel(sL),e.registerComponentView(lL),e.registerPreprocessor(oL)}),ry(function(e){e.registerComponentModel(PL),e.registerComponentView(LL),FL("saveAsImage",NL),FL("magicType",QL),FL("dataView",YL),FL("dataZoom",_R),FL("restore",tR),ry(TL)}),ry(function(e){ry(KP),e.registerComponentModel(CR),e.registerComponentView(jR),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},function(){}),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},function(){})}),ry(KP),ry(function(e){e.registerComponentView(oN),e.registerComponentModel(lN),e.registerPreprocessor(zR),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,tN),e.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(e,t){t.eachComponent({mainType:"brush",query:e},function(t){t.setAreas(e.areas)})}),e.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},function(){}),e.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},function(){}),FL("brush",uN)}),ry(function(e){e.registerComponentModel(hN),e.registerComponentView(dN)}),ry(function(e){e.registerComponentModel(AN),e.registerComponentView(xN),e.registerSubTypeDefaulter("timeline",function(){return"slider"}),function(e){e.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(e,t){var n=t.getComponent("timeline");return n&&null!=e.currentIndex&&(n.setCurrentIndex(e.currentIndex),!n.get("loop",!0)&&n.isIndexMax()&&n.setPlayState(!1)),t.resetOption("timeline",{replaceMerge:n.get("replaceMerge",!0)}),j({currentIndex:n.option.currentIndex},e)}),e.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(e,t){var n=t.getComponent("timeline");n&&null!=e.playState&&n.setPlayState(e.playState)})}(e),e.registerPreprocessor(_N)}),ry(function(e){e.registerComponentModel(IN),e.registerComponentView(jN),e.registerPreprocessor(function(e){e.markPoint=e.markPoint||{}})}),ry(function(e){e.registerComponentModel(QN),e.registerComponentView(KN),e.registerPreprocessor(function(e){e.markLine=e.markLine||{}})}),ry(function(e){e.registerComponentModel(YN),e.registerComponentView(iU),e.registerPreprocessor(function(e){e.markArea=e.markArea||{}})}),ry(function(e){ry(mU),ry(CU)}),ry(function(e){ry(LU),ry(GU)}),ry(LU),ry(GU),ry(function(e){ry(BH),ry(DH)}),ry(BH),ry(DH),ry(function(e){e.registerPreprocessor(NH),e.registerVisual(e.PRIORITY.VISUAL.ARIA,RH)}),ry(function(e){e.registerTransform(YH),e.registerTransform(XH)}),ry(function(e){e.registerComponentModel(JH),e.registerComponentView(ZH)})},Xc4G:function(e,t,n){var r=n("lktj"),i=n("1kS7"),a=n("NpIQ");e.exports=function(e){var t=r(e),n=i.f;if(n)for(var o,s=n(e),l=a.f,c=0;s.length>c;)l.call(e,o=s[c++])&&t.push(o);return t}},Xd32:function(e,t,n){n("+tPU"),n("zQR9"),e.exports=n("5PlU")},XfW5:function(e,t,n){"use strict";var r=n("PiFy");e.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},XgCd:function(e,t,n){"use strict";var r=String.prototype.replace,i=/%20/g,a="RFC1738",o="RFC3986";e.exports={default:o,formatters:{RFC1738:function(e){return r.call(e,i,"+")},RFC3986:function(e){return String(e)}},RFC1738:a,RFC3986:o}},XmWM:function(e,t,n){"use strict";var r=n("cGG2"),i=n("DQCr"),a=n("fuGk"),o=n("xLtR"),s=n("DUeU");function l(e){this.defaults=e,this.interceptors={request:new a,response:new a}}l.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=s(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[o,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach(function(e){t.unshift(e.fulfilled,e.rejected)}),this.interceptors.response.forEach(function(e){t.push(e.fulfilled,e.rejected)});t.length;)n=n.then(t.shift(),t.shift());return n},l.prototype.getUri=function(e){return e=s(this.defaults,e),i(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],function(e){l.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}}),r.forEach(["post","put","patch"],function(e){l.prototype[e]=function(t,n,r){return this.request(s(r||{},{method:e,url:t,data:n}))}}),e.exports=l},Xxa5:function(e,t,n){e.exports=n("jyFz")},Y5mS:function(e,t,n){"use strict";var r,i=n("lFkc");i.canUseDOM&&(r=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("",""))
  89. /**
  90. * Checks if an event is supported in the current execution environment.
  91. *
  92. * NOTE: This will not work correctly for non-generic events such as `change`,
  93. * `reset`, `load`, `error`, and `select`.
  94. *
  95. * Borrows from Modernizr.
  96. *
  97. * @param {string} eventNameSuffix Event name, e.g. "click".
  98. * @param {?boolean} capture Check if the capture phase is supported.
  99. * @return {boolean} True if the event is supported.
  100. * @internal
  101. * @license Modernizr 3.0.0pre (Custom Build) | MIT
  102. */,e.exports=function(e,t){if(!i.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,a=n in document;if(!a){var o=document.createElement("div");o.setAttribute(n,"return;"),a="function"==typeof o[n]}return!a&&r&&"wheel"===e&&(a=document.implementation.hasFeature("Events.wheel","3.0")),a}},YAhB:function(e,t,n){"use strict";var r=n("++K3"),i=n("Y5mS"),a=10,o=40,s=800;function l(e){var t=0,n=0,r=0,i=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),r=t*a,i=n*a,"deltaY"in e&&(i=e.deltaY),"deltaX"in e&&(r=e.deltaX),(r||i)&&e.deltaMode&&(1==e.deltaMode?(r*=o,i*=o):(r*=s,i*=s)),r&&!t&&(t=r<1?-1:1),i&&!n&&(n=i<1?-1:1),{spinX:t,spinY:n,pixelX:r,pixelY:i}}l.getEventType=function(){return r.firefox()?"DOMMouseScroll":i("wheel")?"wheel":"mousewheel"},e.exports=l},YQ7m:function(e,t,n){e.exports={default:n("hM5s"),__esModule:!0}},Yobk:function(e,t,n){var r=n("77Pl"),i=n("qio6"),a=n("xnc9"),o=n("ax3d")("IE_PROTO"),s=function(){},l=function(){var e,t=n("ON07")("iframe"),r=a.length;for(t.style.display="none",n("RPLV").appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),l=e.F;r--;)delete l.prototype[a[r]];return l()};e.exports=Object.create||function(e,t){var n;return null!==e?(s.prototype=r(e),n=new s,s.prototype=null,n[o]=e):n=l(),void 0===t?n:i(n,t)}},Zcwg:function(e,t,n){"use strict";t.__esModule=!0;var r=n("2kvA");var i=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.prototype.beforeEnter=function(e){(0,r.addClass)(e,"collapse-transition"),e.dataset||(e.dataset={}),e.dataset.oldPaddingTop=e.style.paddingTop,e.dataset.oldPaddingBottom=e.style.paddingBottom,e.style.height="0",e.style.paddingTop=0,e.style.paddingBottom=0},e.prototype.enter=function(e){e.dataset.oldOverflow=e.style.overflow,0!==e.scrollHeight?(e.style.height=e.scrollHeight+"px",e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom):(e.style.height="",e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom),e.style.overflow="hidden"},e.prototype.afterEnter=function(e){(0,r.removeClass)(e,"collapse-transition"),e.style.height="",e.style.overflow=e.dataset.oldOverflow},e.prototype.beforeLeave=function(e){e.dataset||(e.dataset={}),e.dataset.oldPaddingTop=e.style.paddingTop,e.dataset.oldPaddingBottom=e.style.paddingBottom,e.dataset.oldOverflow=e.style.overflow,e.style.height=e.scrollHeight+"px",e.style.overflow="hidden"},e.prototype.leave=function(e){0!==e.scrollHeight&&((0,r.addClass)(e,"collapse-transition"),e.style.height=0,e.style.paddingTop=0,e.style.paddingBottom=0)},e.prototype.afterLeave=function(e){(0,r.removeClass)(e,"collapse-transition"),e.style.height="",e.style.overflow=e.dataset.oldOverflow,e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom},e}();t.default={name:"ElCollapseTransition",functional:!0,render:function(e,t){var n=t.children;return e("transition",{on:new i},n)}}},Zoe1:function(e,t,n){"use strict";var r=n("7ar3"),i=n("gcUb"),a=n("GybJ"),o=r("%TypeError%"),s=r("%WeakMap%",!0),l=r("%Map%",!0),c=i("WeakMap.prototype.get",!0),u=i("WeakMap.prototype.set",!0),h=i("WeakMap.prototype.has",!0),d=i("Map.prototype.get",!0),f=i("Map.prototype.set",!0),p=i("Map.prototype.has",!0),A=function(e,t){for(var n,r=e;null!==(n=r.next);r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n};e.exports=function(){var e,t,n,r={assert:function(e){if(!r.has(e))throw new o("Side channel does not contain "+a(e))},get:function(r){if(s&&r&&("object"==typeof r||"function"==typeof r)){if(e)return c(e,r)}else if(l){if(t)return d(t,r)}else if(n)return function(e,t){var n=A(e,t);return n&&n.value}(n,r)},has:function(r){if(s&&r&&("object"==typeof r||"function"==typeof r)){if(e)return h(e,r)}else if(l){if(t)return p(t,r)}else if(n)return function(e,t){return!!A(e,t)}(n,r);return!1},set:function(r,i){s&&r&&("object"==typeof r||"function"==typeof r)?(e||(e=new s),u(e,r,i)):l?(t||(t=new l),f(t,r,i)):(n||(n={key:{},next:null}),function(e,t,n){var r=A(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}}(n,r,i))}};return r}},Zzip:function(e,t,n){e.exports={default:n("/n6Q"),__esModule:!0}},aFK5:function(e,t,n){e.exports={default:n("gAsd"),__esModule:!0}},aMwW:function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=131)}({131:function(e,t,n){"use strict";n.r(t);var r=n(5),i=n.n(r),a=n(17),o=n.n(a),s=n(2),l=n(3),c=n(7),u=n.n(c),h={name:"ElTooltip",mixins:[i.a],props:{openDelay:{type:Number,default:0},disabled:Boolean,manual:Boolean,effect:{type:String,default:"dark"},arrowOffset:{type:Number,default:0},popperClass:String,content:String,visibleArrow:{default:!0},transition:{type:String,default:"el-fade-in-linear"},popperOptions:{default:function(){return{boundariesPadding:10,gpuAcceleration:!1}}},enterable:{type:Boolean,default:!0},hideAfter:{type:Number,default:0},tabindex:{type:Number,default:0}},data:function(){return{tooltipId:"el-tooltip-"+Object(l.generateId)(),timeoutPending:null,focusing:!1}},beforeCreate:function(){var e=this;this.$isServer||(this.popperVM=new u.a({data:{node:""},render:function(e){return this.node}}).$mount(),this.debounceClose=o()(200,function(){return e.handleClosePopper()}))},render:function(e){var t=this;this.popperVM&&(this.popperVM.node=e("transition",{attrs:{name:this.transition},on:{afterLeave:this.doDestroy}},[e("div",{on:{mouseleave:function(){t.setExpectedState(!1),t.debounceClose()},mouseenter:function(){t.setExpectedState(!0)}},ref:"popper",attrs:{role:"tooltip",id:this.tooltipId,"aria-hidden":this.disabled||!this.showPopper?"true":"false"},directives:[{name:"show",value:!this.disabled&&this.showPopper}],class:["el-tooltip__popper","is-"+this.effect,this.popperClass]},[this.$slots.content||this.content])]));var n=this.getFirstElement();if(!n)return null;var r=n.data=n.data||{};return r.staticClass=this.addTooltipClass(r.staticClass),n},mounted:function(){var e=this;this.referenceElm=this.$el,1===this.$el.nodeType&&(this.$el.setAttribute("aria-describedby",this.tooltipId),this.$el.setAttribute("tabindex",this.tabindex),Object(s.on)(this.referenceElm,"mouseenter",this.show),Object(s.on)(this.referenceElm,"mouseleave",this.hide),Object(s.on)(this.referenceElm,"focus",function(){if(e.$slots.default&&e.$slots.default.length){var t=e.$slots.default[0].componentInstance;t&&t.focus?t.focus():e.handleFocus()}else e.handleFocus()}),Object(s.on)(this.referenceElm,"blur",this.handleBlur),Object(s.on)(this.referenceElm,"click",this.removeFocusing)),this.value&&this.popperVM&&this.popperVM.$nextTick(function(){e.value&&e.updatePopper()})},watch:{focusing:function(e){e?Object(s.addClass)(this.referenceElm,"focusing"):Object(s.removeClass)(this.referenceElm,"focusing")}},methods:{show:function(){this.setExpectedState(!0),this.handleShowPopper()},hide:function(){this.setExpectedState(!1),this.debounceClose()},handleFocus:function(){this.focusing=!0,this.show()},handleBlur:function(){this.focusing=!1,this.hide()},removeFocusing:function(){this.focusing=!1},addTooltipClass:function(e){return e?"el-tooltip "+e.replace("el-tooltip",""):"el-tooltip"},handleShowPopper:function(){var e=this;this.expectedState&&!this.manual&&(clearTimeout(this.timeout),this.timeout=setTimeout(function(){e.showPopper=!0},this.openDelay),this.hideAfter>0&&(this.timeoutPending=setTimeout(function(){e.showPopper=!1},this.hideAfter)))},handleClosePopper:function(){this.enterable&&this.expectedState||this.manual||(clearTimeout(this.timeout),this.timeoutPending&&clearTimeout(this.timeoutPending),this.showPopper=!1,this.disabled&&this.doDestroy())},setExpectedState:function(e){!1===e&&clearTimeout(this.timeoutPending),this.expectedState=e},getFirstElement:function(){var e=this.$slots.default;if(!Array.isArray(e))return null;for(var t=null,n=0;n<e.length;n++)e[n]&&e[n].tag&&(t=e[n]);return t}},beforeDestroy:function(){this.popperVM&&this.popperVM.$destroy()},destroyed:function(){var e=this.referenceElm;1===e.nodeType&&(Object(s.off)(e,"mouseenter",this.show),Object(s.off)(e,"mouseleave",this.hide),Object(s.off)(e,"focus",this.handleFocus),Object(s.off)(e,"blur",this.handleBlur),Object(s.off)(e,"click",this.removeFocusing))},install:function(e){e.component(h.name,h)}};t.default=h},17:function(e,t){e.exports=n("ON3O")},2:function(e,t){e.exports=n("2kvA")},3:function(e,t){e.exports=n("ylDJ")},5:function(e,t){e.exports=n("fKx3")},7:function(e,t){e.exports=n("7+uW")}})},aW5l:function(e,t,n){"use strict";t.__esModule=!0;n("ylDJ");t.default={mounted:function(){},methods:{getMigratingConfig:function(){return{props:{},events:{}}}}}},aj7g:function(e,t){var n="auto",r={"":!0,lr:!0,rl:!0},i={start:!0,middle:!0,end:!0,left:!0,right:!0};function a(e){return"string"==typeof e&&(!!i[e.toLowerCase()]&&e.toLowerCase())}function o(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}function s(e,t,i){var s=this,l=/MSIE\s8\.0/.test(navigator.userAgent),c={};l?s=document.createElement("custom"):c.enumerable=!0,s.hasBeenReset=!1;var u="",h=!1,d=e,f=t,p=i,A=null,g="",m=!0,v="auto",y="start",b=50,w="middle",x=50,_="middle";if(Object.defineProperty(s,"id",o({},c,{get:function(){return u},set:function(e){u=""+e}})),Object.defineProperty(s,"pauseOnExit",o({},c,{get:function(){return h},set:function(e){h=!!e}})),Object.defineProperty(s,"startTime",o({},c,{get:function(){return d},set:function(e){if("number"!=typeof e)throw new TypeError("Start time must be set to a number.");d=e,this.hasBeenReset=!0}})),Object.defineProperty(s,"endTime",o({},c,{get:function(){return f},set:function(e){if("number"!=typeof e)throw new TypeError("End time must be set to a number.");f=e,this.hasBeenReset=!0}})),Object.defineProperty(s,"text",o({},c,{get:function(){return p},set:function(e){p=""+e,this.hasBeenReset=!0}})),Object.defineProperty(s,"region",o({},c,{get:function(){return A},set:function(e){A=e,this.hasBeenReset=!0}})),Object.defineProperty(s,"vertical",o({},c,{get:function(){return g},set:function(e){var t=function(e){return"string"==typeof e&&!!r[e.toLowerCase()]&&e.toLowerCase()}(e);if(!1===t)throw new SyntaxError("An invalid or illegal string was specified.");g=t,this.hasBeenReset=!0}})),Object.defineProperty(s,"snapToLines",o({},c,{get:function(){return m},set:function(e){m=!!e,this.hasBeenReset=!0}})),Object.defineProperty(s,"line",o({},c,{get:function(){return v},set:function(e){if("number"!=typeof e&&e!==n)throw new SyntaxError("An invalid number or illegal string was specified.");v=e,this.hasBeenReset=!0}})),Object.defineProperty(s,"lineAlign",o({},c,{get:function(){return y},set:function(e){var t=a(e);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");y=t,this.hasBeenReset=!0}})),Object.defineProperty(s,"position",o({},c,{get:function(){return b},set:function(e){if(e<0||e>100)throw new Error("Position must be between 0 and 100.");b=e,this.hasBeenReset=!0}})),Object.defineProperty(s,"positionAlign",o({},c,{get:function(){return w},set:function(e){var t=a(e);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");w=t,this.hasBeenReset=!0}})),Object.defineProperty(s,"size",o({},c,{get:function(){return x},set:function(e){if(e<0||e>100)throw new Error("Size must be between 0 and 100.");x=e,this.hasBeenReset=!0}})),Object.defineProperty(s,"align",o({},c,{get:function(){return _},set:function(e){var t=a(e);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");_=t,this.hasBeenReset=!0}})),s.displayState=void 0,l)return s}s.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)},e.exports=s},alfv:function(e,t,n){var r;window,r=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=140)}([function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){e.exports=n(141)},function(e,t,n){"use strict";n.r(t),n.d(t,"__extends",function(){return i}),n.d(t,"__assign",function(){return a}),n.d(t,"__rest",function(){return o}),n.d(t,"__decorate",function(){return s}),n.d(t,"__param",function(){return l}),n.d(t,"__metadata",function(){return c}),n.d(t,"__awaiter",function(){return u}),n.d(t,"__generator",function(){return h}),n.d(t,"__createBinding",function(){return d}),n.d(t,"__exportStar",function(){return f}),n.d(t,"__values",function(){return p}),n.d(t,"__read",function(){return A}),n.d(t,"__spread",function(){return g}),n.d(t,"__spreadArrays",function(){return m}),n.d(t,"__spreadArray",function(){return v}),n.d(t,"__await",function(){return y}),n.d(t,"__asyncGenerator",function(){return b}),n.d(t,"__asyncDelegator",function(){return w}),n.d(t,"__asyncValues",function(){return x}),n.d(t,"__makeTemplateObject",function(){return _}),n.d(t,"__importStar",function(){return S}),n.d(t,"__importDefault",function(){return k}),n.d(t,"__classPrivateFieldGet",function(){return B}),n.d(t,"__classPrivateFieldSet",function(){return E});
  103. /*! *****************************************************************************
  104. Copyright (c) Microsoft Corporation.
  105. Permission to use, copy, modify, and/or distribute this software for any
  106. purpose with or without fee is hereby granted.
  107. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  108. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  109. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  110. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  111. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  112. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  113. PERFORMANCE OF THIS SOFTWARE.
  114. ***************************************************************************** */
  115. var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var a=function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function o(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function s(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o}function l(e,t){return function(n,r){t(n,r,e)}}function c(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function u(e,t,n,r){return new(n||(n=Promise))(function(i,a){function o(e){try{l(r.next(e))}catch(e){a(e)}}function s(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(o,s)}l((r=r.apply(e,t||[])).next())})}function h(e,t){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}var d=Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]};function f(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||d(t,e,n)}function p(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function A(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,a=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}function g(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(A(arguments[t]));return e}function m(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r}function v(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e}function y(e){return this instanceof y?(this.v=e,this):new y(e)}function b(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),a=[];return r={},o("next"),o("throw"),o("return"),r[Symbol.asyncIterator]=function(){return this},r;function o(e){i[e]&&(r[e]=function(t){return new Promise(function(n,r){a.push([e,t,n,r])>1||s(e,t)})})}function s(e,t){try{(n=i[e](t)).value instanceof y?Promise.resolve(n.value.v).then(l,c):u(a[0][2],n)}catch(e){u(a[0][3],e)}var n}function l(e){s("next",e)}function c(e){s("throw",e)}function u(e,t){e(t),a.shift(),a.length&&s(a[0][0],a[0][1])}}function w(e){var t,n;return t={},r("next"),r("throw",function(e){throw e}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:y(e[r](t)),done:"return"===r}:i?i(t):t}:i}}function x(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=p(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise(function(r,i){(function(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)})(r,i,(t=e[n](t)).done,t.value)})}}}function _(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var C=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function S(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&d(t,e,n);return C(t,e),t}function k(e){return e&&e.__esModule?e:{default:e}}function B(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function E(e,t,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,n):i?i.value=n:t.set(e,n),n}},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),a=r(n(91)),o=r(n(4)),s=r(n(25)),l=r(n(19)),c=r(n(120)),u=r(n(26)),h=r(n(93)),d=r(n(74)),f=r(n(55)),p=r(n(56));(0,i.default)(t,"__esModule",{value:!0}),t.DomElement=void 0;var A=n(2),g=n(6),m=[];function v(e){var t=[],n=[];return t=(0,a.default)(e)?e:e.split(";"),(0,o.default)(t).call(t,function(e){var t,r=(0,s.default)(t=e.split(":")).call(t,function(e){return(0,l.default)(e).call(e)});2===r.length&&n.push(r[0]+":"+r[1])}),n}var y=function(){function e(t){if(this.elems=[],this.length=this.elems.length,this.dataSource=new c.default,t){if(t instanceof e)return t;var n=[],r=t instanceof Node?t.nodeType:-1;if(this.selector=t,1===r||9===r)n=[t];else if(function(e){return!!e&&(e instanceof HTMLCollection||e instanceof NodeList)}(t))n=g.toArray(t);else if(t instanceof Array)n=t;else if("string"==typeof t){var i,a=(0,l.default)(i=t.replace("/\n/mg","")).call(i);n=0===(0,u.default)(a).call(a,"<")?function(e){var t=document.createElement("div");t.innerHTML=e;var n=t.children;return g.toArray(n)}(a):function(e){var t=document.querySelectorAll(e);return g.toArray(t)}(a)}var o=n.length;if(!o)return this;for(var s=0;s<o;s++)this.elems.push(n[s]);this.length=o}}return(0,i.default)(e.prototype,"id",{get:function(){return this.elems[0].id},enumerable:!1,configurable:!0}),e.prototype.forEach=function(e){for(var t=0;t<this.length;t++){var n=this.elems[t];if(!1===e.call(n,n,t))break}return this},e.prototype.clone=function(e){var t;void 0===e&&(e=!1);var n=[];return(0,o.default)(t=this.elems).call(t,function(t){n.push(t.cloneNode(!!e))}),b(n)},e.prototype.get=function(e){void 0===e&&(e=0);var t=this.length;return e>=t&&(e%=t),b(this.elems[e])},e.prototype.first=function(){return this.get(0)},e.prototype.last=function(){var e=this.length;return this.get(e-1)},e.prototype.on=function(e,t,n){var r;return e?("function"==typeof t&&(n=t,t=""),(0,o.default)(r=this).call(r,function(r){if(t){var i=function(e){var r=e.target;r.matches(t)&&n.call(r,e)};r.addEventListener(e,i),m.push({elem:r,selector:t,fn:n,agentFn:i})}else r.addEventListener(e,n)})):this},e.prototype.off=function(e,t,n){var r;return e?("function"==typeof t&&(n=t,t=""),(0,o.default)(r=this).call(r,function(r){if(t){for(var i=-1,a=0;a<m.length;a++){var o=m[a];if(o.selector===t&&o.fn===n&&o.elem===r){i=a;break}}if(-1!==i){var s=(0,h.default)(m).call(m,i,1)[0].agentFn;r.removeEventListener(e,s)}}else r.removeEventListener(e,n)})):this},e.prototype.attr=function(e,t){var n;return null==t?this.elems[0].getAttribute(e)||"":(0,o.default)(n=this).call(n,function(n){n.setAttribute(e,t)})},e.prototype.removeAttr=function(e){var t;(0,o.default)(t=this).call(t,function(t){t.removeAttribute(e)})},e.prototype.addClass=function(e){var t;return e?(0,o.default)(t=this).call(t,function(t){if(t.className){var n=t.className.split(/\s/);n=(0,d.default)(n).call(n,function(e){return!!(0,l.default)(e).call(e)}),(0,u.default)(n).call(n,e)<0&&n.push(e),t.className=n.join(" ")}else t.className=e}):this},e.prototype.removeClass=function(e){var t;return e?(0,o.default)(t=this).call(t,function(t){if(t.className){var n=t.className.split(/\s/);n=(0,d.default)(n).call(n,function(t){return!(!(t=(0,l.default)(t).call(t))||t===e)}),t.className=n.join(" ")}}):this},e.prototype.hasClass=function(e){if(!e)return!1;var t=this.elems[0];if(!t.className)return!1;var n=t.className.split(/\s/);return(0,f.default)(n).call(n,e)},e.prototype.css=function(e,t){var n,r;return r=""==t?"":e+":"+t+";",(0,o.default)(n=this).call(n,function(t){var n,i=(0,l.default)(n=t.getAttribute("style")||"").call(n);if(i){var a=v(i);a=(0,s.default)(a).call(a,function(t){return 0===(0,u.default)(t).call(t,e)?r:t}),""!=r&&(0,u.default)(a).call(a,r)<0&&a.push(r),""==r&&(a=v(a)),t.setAttribute("style",a.join("; "))}else t.setAttribute("style",r)})},e.prototype.getBoundingClientRect=function(){return this.elems[0].getBoundingClientRect()},e.prototype.show=function(){return this.css("display","block")},e.prototype.hide=function(){return this.css("display","none")},e.prototype.children=function(){var e=this.elems[0];return e?b(e.children):null},e.prototype.childNodes=function(){var e=this.elems[0];return e?b(e.childNodes):null},e.prototype.replaceChildAll=function(e){for(var t=this.getNode(),n=this.elems[0];n.hasChildNodes();)t.firstChild&&n.removeChild(t.firstChild);this.append(e)},e.prototype.append=function(e){var t;return(0,o.default)(t=this).call(t,function(t){(0,o.default)(e).call(e,function(e){t.appendChild(e)})})},e.prototype.remove=function(){var e;return(0,o.default)(e=this).call(e,function(e){if(e.remove)e.remove();else{var t=e.parentElement;t&&t.removeChild(e)}})},e.prototype.isContain=function(e){var t=this.elems[0],n=e.elems[0];return t.contains(n)},e.prototype.getNodeName=function(){return this.elems[0].nodeName},e.prototype.getNode=function(e){return void 0===e&&(e=0),this.elems[e]},e.prototype.find=function(e){return b(this.elems[0].querySelectorAll(e))},e.prototype.text=function(e){var t;return e?(0,o.default)(t=this).call(t,function(t){t.innerHTML=e}):this.elems[0].innerHTML.replace(/<[^>]+>/g,function(){return""})},e.prototype.html=function(e){var t=this.elems[0];return e?(t.innerHTML=e,this):t.innerHTML},e.prototype.val=function(){var e,t=this.elems[0];return(0,l.default)(e=t.value).call(e)},e.prototype.focus=function(){var e;return(0,o.default)(e=this).call(e,function(e){e.focus()})},e.prototype.prev=function(){return b(this.elems[0].previousElementSibling)},e.prototype.next=function(){return b(this.elems[0].nextElementSibling)},e.prototype.getNextSibling=function(){return b(this.elems[0].nextSibling)},e.prototype.parent=function(){return b(this.elems[0].parentElement)},e.prototype.parentUntil=function(e,t){var n=t||this.elems[0];if("BODY"===n.nodeName)return null;var r=n.parentElement;return null===r?null:r.matches(e)?b(r):this.parentUntil(e,r)},e.prototype.parentUntilEditor=function(e,t,n){var r=n||this.elems[0];if(b(r).equal(t.$textContainerElem)||b(r).equal(t.$toolbarElem))return null;var i=r.parentElement;return null===i?null:i.matches(e)?b(i):this.parentUntilEditor(e,t,i)},e.prototype.equal=function(t){return t instanceof e?this.elems[0]===t.elems[0]:t instanceof HTMLElement&&this.elems[0]===t},e.prototype.insertBefore=function(e){var t,n=b(e).elems[0];return n?(0,o.default)(t=this).call(t,function(e){n.parentNode.insertBefore(e,n)}):this},e.prototype.insertAfter=function(e){var t,n=b(e).elems[0],r=n&&n.nextSibling;return n?(0,o.default)(t=this).call(t,function(e){var t=n.parentNode;r?t.insertBefore(e,r):t.appendChild(e)}):this},e.prototype.data=function(e,t){if(null==t)return this.dataSource.get(e);this.dataSource.set(e,t)},e.prototype.getNodeTop=function(e){if(this.length<1)return this;var t=this.parent();return e.$textElem.equal(this)||e.$textElem.equal(t)?this:(t.prior=this,t.getNodeTop(e))},e.prototype.getOffsetData=function(){var e=this.elems[0];return{top:e.offsetTop,left:e.offsetLeft,width:e.offsetWidth,height:e.offsetHeight,parent:e.offsetParent}},e.prototype.scrollTop=function(e){this.elems[0].scrollTo({top:e})},e}();function b(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new((0,p.default)(y).apply(y,A.__spreadArray([void 0],e)))}t.DomElement=y,t.default=b},function(e,t,n){e.exports=n(181)},function(e,t,n){"use strict";var r=n(8),i=n(75).f,a=n(101),o=n(10),s=n(38),l=n(17),c=n(16),u=function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t};e.exports=function(e,t){var n,h,d,f,p,A,g,m,v=e.target,y=e.global,b=e.stat,w=e.proto,x=y?r:b?r[v]:(r[v]||{}).prototype,_=y?o:o[v]||(o[v]={}),C=_.prototype;for(d in t)n=!a(y?d:v+(b?".":"#")+d,e.forced)&&x&&c(x,d),p=_[d],n&&(A=e.noTargetGet?(m=i(x,d))&&m.value:x[d]),f=n&&A?A:t[d],n&&typeof p==typeof f||(g=e.bind&&n?s(f,r):e.wrap&&n?u(f):w&&"function"==typeof f?s(Function.call,f):f,(e.sham||f&&f.sham||p&&p.sham)&&l(g,"sham",!0),_[d]=g,w&&(c(o,h=v+"Prototype")||l(o,h,{}),o[h][d]=f,e.real&&C&&!C[d]&&l(C,d,f)))}},function(e,t,n){"use strict";var r=n(0),i=r(n(94)),a=r(n(1)),o=r(n(258)),s=r(n(44)),l=r(n(45)),c=r(n(91)),u=r(n(25));(0,a.default)(t,"__esModule",{value:!0}),t.hexToRgb=t.getRandomCode=t.toArray=t.deepClone=t.isFunction=t.debounce=t.throttle=t.arrForEach=t.forEach=t.replaceSpecialSymbol=t.replaceHtmlSymbol=t.getRandom=t.UA=void 0;var h=n(2),d=function(){function e(){this._ua=navigator.userAgent;var e=this._ua.match(/(Edge?)\/(\d+)/);this.isOldEdge=!!(e&&"Edge"==e[1]&&(0,o.default)(e[2])<19),this.isFirefox=!(!/Firefox\/\d+/.test(this._ua)||/Seamonkey\/\d+/.test(this._ua))}return e.prototype.isIE=function(){return"ActiveXObject"in window},e.prototype.isWebkit=function(){return/webkit/i.test(this._ua)},e}();t.UA=new d,t.getRandom=function(e){var t;return void 0===e&&(e=""),e+(0,s.default)(t=Math.random().toString()).call(t,2)},t.replaceHtmlSymbol=function(e){return e.replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;").replace(/(\r\n|\r|\n)/g,"<br/>")},t.replaceSpecialSymbol=function(e){return e.replace(/&lt;/gm,"<").replace(/&gt;/gm,">").replace(/&quot;/gm,'"')},t.forEach=function(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&!1===t(n,e[n]))break},t.arrForEach=function(e,t){var n,r,i=e.length||0;for(n=0;n<i&&(r=e[n],!1!==t.call(e,r,n));n++);},t.throttle=function(e,t){void 0===t&&(t=200);var n=!1;return function(){for(var r=this,i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];n||(n=!0,(0,l.default)(function(){n=!1,e.call.apply(e,h.__spreadArray([r],i))},t))}},t.debounce=function(e,t){void 0===t&&(t=200);var n=0;return function(){for(var r=this,i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];n&&window.clearTimeout(n),n=(0,l.default)(function(){n=0,e.call.apply(e,h.__spreadArray([r],i))},t)}},t.isFunction=function(e){return"function"==typeof e},t.deepClone=function e(t){if("object"!==(0,i.default)(t)||"function"==typeof t||null===t)return t;var n;for(var r in(0,c.default)(t)&&(n=[]),(0,c.default)(t)||(n={}),t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=e(t[r]));return n},t.toArray=function(e){return(0,s.default)(Array.prototype).call(e)},t.getRandomCode=function(){var e;return(0,s.default)(e=Math.random().toString(36)).call(e,-5)},t.hexToRgb=function(e){var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);if(null==t)return null;var n=(0,u.default)(t).call(t,function(e){return(0,o.default)(e,16)});return"rgb("+n[1]+", "+n[2]+", "+n[3]+")"}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.EMPTY_P_REGEX=t.EMPTY_P_LAST_REGEX=t.EMPTY_P=t.urlRegex=t.EMPTY_FN=void 0,t.EMPTY_FN=function(){},t.urlRegex=/^(http|ftp|https):\/\/[\w\-_]+(\.[\w\-_]+)+([\w\-.,@?^=%&amp;:/~+#]*[\w\-@?^=%&amp;/~+#])?/,t.EMPTY_P='<p data-we-empty-p=""><br></p>',t.EMPTY_P_LAST_REGEX=/<p data-we-empty-p=""><br\/?><\/p>$/gim,t.EMPTY_P_REGEX=/<p data-we-empty-p="">/gim},function(e,t,n){(function(t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||function(){return this}()||Function("return this")()}).call(this,n(144))},function(e,t,n){var r=n(8),i=n(79),a=n(16),o=n(61),s=n(84),l=n(106),c=i("wks"),u=r.Symbol,h=l?u:u&&u.withoutSetter||o;e.exports=function(e){return a(c,e)&&(s||"string"==typeof c[e])||(s&&a(u,e)?c[e]=u[e]:c[e]=h("Symbol."+e)),c[e]}},function(e,t){e.exports={}},function(e,t,n){var r=n(10),i=n(16),a=n(95),o=n(18).f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});i(t,e)||o(t,e,{value:a.f(e)})}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){var r=n(10);e.exports=function(e){return r[e+"Prototype"]}},function(e,t,n){var r=n(12);e.exports=!r(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r=n(15),i=n(18),a=n(37);e.exports=r?function(e,t,n){return i.f(e,t,a(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(15),i=n(100),a=n(20),o=n(59),s=Object.defineProperty;t.f=r?s:function(e,t,n){if(a(e),t=o(t,!0),a(n),i)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){e.exports=n(193)},function(e,t,n){var r=n(13);e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},function(e,t,n){"use strict";var r,i=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},a=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),o=[];function s(e){for(var t=-1,n=0;n<o.length;n++)if(o[n].identifier===e){t=n;break}return t}function l(e,t){for(var n={},r=[],i=0;i<e.length;i++){var a=e[i],l=t.base?a[0]+t.base:a[0],c=n[l]||0,u="".concat(l," ").concat(c);n[l]=c+1;var h=s(u),d={css:a[1],media:a[2],sourceMap:a[3]};-1!==h?(o[h].references++,o[h].updater(d)):o.push({identifier:u,updater:A(d,t),references:1}),r.push(u)}return r}function c(e){var t=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var i=n.nc;i&&(r.nonce=i)}if(Object.keys(r).forEach(function(e){t.setAttribute(e,r[e])}),"function"==typeof e.insert)e.insert(t);else{var o=a(e.insert||"head");if(!o)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");o.appendChild(t)}return t}var u,h=(u=[],function(e,t){return u[e]=t,u.filter(Boolean).join("\n")});function d(e,t,n,r){var i=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=h(t,i);else{var a=document.createTextNode(i),o=e.childNodes;o[t]&&e.removeChild(o[t]),o.length?e.insertBefore(a,o[t]):e.appendChild(a)}}var f=null,p=0;function A(e,t){var n,r,i;if(t.singleton){var a=p++;n=f||(f=c(t)),r=d.bind(null,n,a,!1),i=d.bind(null,n,a,!0)}else n=c(t),r=function(e,t,n){var r=n.css,i=n.media,a=n.sourceMap;if(i?e.setAttribute("media",i):e.removeAttribute("media"),a&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}.bind(null,n,t),i=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else i()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=i());var n=l(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<n.length;r++){var i=s(n[r]);o[i].references--}for(var a=l(e,t),c=0;c<n.length;c++){var u=s(n[c]);0===o[u].references&&(o[u].updater(),o.splice(u,1))}n=a}}}},function(e,t,n){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var i=(o=r,s=btoa(unescape(encodeURIComponent(JSON.stringify(o)))),l="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(s),"/*# ".concat(l," */")),a=r.sources.map(function(e){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(e," */")});return[n].concat(a).concat([i]).join("\n")}var o,s,l;return[n].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n}).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var i={};if(r)for(var a=0;a<this.length;a++){var o=this[a][0];null!=o&&(i[o]=!0)}for(var s=0;s<e.length;s++){var l=[].concat(e[s]);r&&i[l[0]]||(n&&(l[2]?l[2]="".concat(n," and ").concat(l[2]):l[2]=n),t.push(l))}},t}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(2),i=function(e){function t(t,n){return e.call(this,t,n)||this}return r.__extends(t,e),t}(r.__importDefault(n(96)).default);t.default=i},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),a=r(n(4)),o=r(n(45));(0,i.default)(t,"__esModule",{value:!0});var s=n(2),l=s.__importDefault(n(3)),c=s.__importDefault(n(96)),u=s.__importDefault(n(132)),h=function(e){function t(t,n,r){var i=e.call(this,t,n)||this;r.title=n.i18next.t("menus.dropListMenu."+r.title);var s,c="zh-CN"===n.config.lang?"":"w-e-drop-list-tl";""!==c&&"list"===r.type&&(0,a.default)(s=r.list).call(s,function(e){var t=e.$elem,n=l.default(t.children());if(n.length>0){var r=null===n||void 0===n?void 0:n.getNodeName();r&&"I"===r&&t.addClass(c)}});var h=new u.default(i,r);return i.dropList=h,t.on("click",function(){var e;null!=n.selection.getRange()&&(t.css("z-index",n.zIndex.get("menu")),(0,a.default)(e=n.txt.eventHooks.dropListMenuHoverEvents).call(e,function(e){return e()}),h.show())}).on("mouseleave",function(){t.css("z-index","auto"),h.hideTimeoutId=(0,o.default)(function(){h.hide()})}),i}return s.__extends(t,e),t}(c.default);t.default=h},function(e,t,n){e.exports=n(189)},function(e,t,n){e.exports=n(202)},function(e,t,n){var r=n(76),i=n(48);e.exports=function(e){return r(i(e))}},function(e,t,n){var r=n(10),i=n(8),a=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?a(r[e])||a(i[e]):r[e]&&r[e][t]||i[e]&&i[e][t]}},function(e,t,n){var r=n(38),i=n(76),a=n(33),o=n(34),s=n(90),l=[].push,c=function(e){var t=1==e,n=2==e,c=3==e,u=4==e,h=6==e,d=7==e,f=5==e||h;return function(p,A,g,m){for(var v,y,b=a(p),w=i(b),x=r(A,g,3),_=o(w.length),C=0,S=m||s,k=t?S(p,_):n||d?S(p,0):void 0;_>C;C++)if((f||C in w)&&(y=x(v=w[C],C,b),e))if(t)k[C]=y;else if(y)switch(e){case 3:return!0;case 5:return v;case 6:return C;case 2:l.call(k,v)}else switch(e){case 4:return!1;case 7:l.call(k,v)}return h?-1:c||u?u:k}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterOut:c(7)}},function(e,t,n){e.exports=n(287)},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),a=r(n(4)),o=r(n(30)),s=r(n(129));(0,i.default)(t,"__esModule",{value:!0});var l=n(2),c=l.__importDefault(n(3)),u=n(7),h=function(){function e(t,n){this.menu=t,this.conf=n,this.$container=c.default('<div class="w-e-panel-container"></div>');var r=t.editor;r.txt.eventHooks.clickEvents.push(e.hideCurAllPanels),r.txt.eventHooks.toolbarClickEvents.push(e.hideCurAllPanels),r.txt.eventHooks.dropListMenuHoverEvents.push(e.hideCurAllPanels)}return e.prototype.create=function(){var t=this,n=this.menu;if(!e.createdMenus.has(n)){var r=this.conf,i=this.$container,s=r.width||300,h=n.editor.$toolbarElem.getBoundingClientRect(),d=n.$elem.getBoundingClientRect(),f=h.height+h.top-d.top,p=(h.width-s)/2+h.left-d.left;i.css("width",s+"px").css("margin-top",f+"px").css("margin-left",p+"px").css("z-index",n.editor.zIndex.get("panel"));var A=c.default('<i class="w-e-icon-close w-e-panel-close"></i>');i.append(A),A.on("click",function(){t.remove()});var g=c.default('<ul class="w-e-panel-tab-title"></ul>'),m=c.default('<div class="w-e-panel-tab-content"></div>');i.append(g).append(m);var v=r.height;v&&m.css("height",v+"px").css("overflow-y","auto");var y=r.tabs||[],b=[],w=[];(0,a.default)(y).call(y,function(e,t){if(e){var n=e.title||"",r=e.tpl||"",i=c.default('<li class="w-e-item">'+n+"</li>");g.append(i);var o=c.default(r);m.append(o),b.push(i),w.push(o),0===t?(i.data("active",!0),i.addClass("w-e-active")):o.hide(),i.on("click",function(){i.data("active")||((0,a.default)(b).call(b,function(e){e.data("active",!1),e.removeClass("w-e-active")}),(0,a.default)(w).call(w,function(e){e.hide()}),i.data("active",!0),i.addClass("w-e-active"),o.show())})}}),i.on("click",function(e){e.stopPropagation()}),n.$elem.append(i),(0,a.default)(y).call(y,function(e,n){if(e){var r=e.events||[];(0,a.default)(r).call(r,function(e){var r=e.selector,i=e.type,a=e.fn||u.EMPTY_FN,s=w[n];(0,o.default)(s).call(s,r).on(i,function(e){return l.__awaiter(t,void 0,void 0,function(){return l.__generator(this,function(t){switch(t.label){case 0:return e.stopPropagation(),[4,a(e)];case 1:return t.sent()&&this.remove(),[2]}})})})})}});var x=(0,o.default)(i).call(i,"input[type=text],textarea");x.length&&x.get(0).focus(),e.hideCurAllPanels(),n.setPanel(this),e.createdMenus.add(n)}},e.prototype.remove=function(){var t=this.menu,n=this.$container;n&&n.remove(),e.createdMenus.delete(t)},e.hideCurAllPanels=function(){var t;0!==e.createdMenus.size&&(0,a.default)(t=e.createdMenus).call(t,function(e){var t=e.panel;t&&t.remove()})},e.createdMenus=new s.default,e}();t.default=h},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},function(e,t,n){var r=n(48);e.exports=function(e){return Object(r(e))}},function(e,t,n){var r=n(64),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(2),i=function(e){function t(t,n){return e.call(this,t,n)||this}return r.__extends(t,e),t.prototype.setPanel=function(e){this.panel=e},t}(r.__importDefault(n(96)).default);t.default=i},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),a=r(n(4)),o=r(n(56));(0,i.default)(t,"__esModule",{value:!0});var s=n(2).__importDefault(n(3)),l=function(){function e(e,t,n){this.editor=e,this.$targetElem=t,this.conf=n,this._show=!1,this._isInsertTextContainer=!1;var r=s.default("<div></div>");r.addClass("w-e-tooltip"),this.$container=r}return e.prototype.getPositionData=function(){var e=this.$container,t=0,n=0,r=document.documentElement.scrollTop,i=this.$targetElem.getBoundingClientRect(),a=this.editor.$textElem.getBoundingClientRect(),o=this.$targetElem.getOffsetData(),l=s.default(o.parent),c=this.editor.$textElem.elems[0].scrollTop;if(this._isInsertTextContainer=l.equal(this.editor.$textContainerElem),this._isInsertTextContainer){var u=l.getBoundingClientRect().height,h=o.top,d=o.left,f=o.height,p=h-c;p>25?(t=p-20-15,e.addClass("w-e-tooltip-up")):p+f+20<u?(t=p+f+10,e.addClass("w-e-tooltip-down")):(t=(p>0?p:0)+20+10,e.addClass("w-e-tooltip-down")),n=d<0?0:d}else i.top<20?(t=i.bottom+r+5,e.addClass("w-e-tooltip-down")):i.top-a.top<20?(t=i.bottom+r+5,e.addClass("w-e-tooltip-down")):(t=i.top+r-20-15,e.addClass("w-e-tooltip-up")),n=i.left<0?0:i.left;return{top:t,left:n}},e.prototype.appendMenus=function(){var e=this,t=this.conf,n=this.editor,r=this.$targetElem,i=this.$container;(0,a.default)(t).call(t,function(t,a){var o=t.$elem,l=s.default("<div></div>");l.addClass("w-e-tooltip-item-wrapper "),l.append(o),i.append(l),o.on("click",function(i){i.preventDefault(),t.onClick(n,r)&&e.remove()})})},e.prototype.create=function(){var e,t,n=this.editor,r=this.$container;this.appendMenus();var i=this.getPositionData(),a=i.top,l=i.left;r.css("top",a+"px"),r.css("left",l+"px"),r.css("z-index",n.zIndex.get("tooltip")),this._isInsertTextContainer?this.editor.$textContainerElem.append(r):s.default("body").append(r),this._show=!0,n.beforeDestroy((0,o.default)(e=this.remove).call(e,this)),n.txt.eventHooks.onBlurEvents.push((0,o.default)(t=this.remove).call(t,this))},e.prototype.remove=function(){this.$container.remove(),this._show=!1},(0,i.default)(e.prototype,"isShow",{get:function(){return this._show},enumerable:!1,configurable:!0}),e}();t.default=l},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r=n(32);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=!0},function(e,t,n){var r=n(20),i=n(105),a=n(34),o=n(38),s=n(107),l=n(108),c=function(e,t){this.stopped=e,this.result=t};e.exports=function(e,t,n){var u,h,d,f,p,A,g,m=n&&n.that,v=!(!n||!n.AS_ENTRIES),y=!(!n||!n.IS_ITERATOR),b=!(!n||!n.INTERRUPTED),w=o(t,m,1+v+b),x=function(e){return u&&l(u),new c(!0,e)},_=function(e){return v?(r(e),b?w(e[0],e[1],x):w(e[0],e[1])):b?w(e,x):w(e)};if(y)u=e;else{if("function"!=typeof(h=s(e)))throw TypeError("Target is not iterable");if(i(h)){for(d=0,f=a(e.length);f>d;d++)if((p=_(e[d]))&&p instanceof c)return p;return new c(!1)}u=h.call(e)}for(A=u.next;!(g=A.call(u)).done;){try{p=_(g.value)}catch(e){throw l(u),e}if("object"==typeof p&&p&&p instanceof c)return p}return new c(!1)}},function(e,t){e.exports={}},function(e,t,n){var r=n(85),i=n(18).f,a=n(17),o=n(16),s=n(169),l=n(9)("toStringTag");e.exports=function(e,t,n,c){if(e){var u=n?e:e.prototype;o(u,l)||i(u,l,{configurable:!0,value:t}),c&&!r&&a(u,"toString",s)}}},function(e,t,n){var r,i,a,o=n(173),s=n(8),l=n(13),c=n(17),u=n(16),h=n(80),d=n(60),f=n(49),p=s.WeakMap;if(o){var A=h.state||(h.state=new p),g=A.get,m=A.has,v=A.set;r=function(e,t){return t.facade=e,v.call(A,e,t),t},i=function(e){return g.call(A,e)||{}},a=function(e){return m.call(A,e)}}else{var y=d("state");f[y]=!0,r=function(e,t){return t.facade=e,c(e,y,t),t},i=function(e){return u(e,y)?e[y]:{}},a=function(e){return u(e,y)}}e.exports={set:r,get:i,has:a,enforce:function(e){return a(e)?i(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!l(t)||(n=i(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},function(e,t,n){e.exports=n(263)},function(e,t,n){e.exports=n(267)},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),a=r(n(4));(0,i.default)(t,"__esModule",{value:!0}),t.createElementFragment=t.createDocumentFragment=t.createElement=t.insertBefore=t.getEndPoint=t.getStartPoint=t.updateRange=t.filterSelectionNodes=void 0;var o=n(2),s=n(136),l=o.__importDefault(n(3));function c(e){return document.createElement(e)}t.filterSelectionNodes=function(e){var t=[];return(0,a.default)(e).call(e,function(e){var n=e.getNodeName();if(n!==s.ListType.OrderedList&&n!==s.ListType.UnorderedList)t.push(e);else if(e.prior)t.push(e.prior);else{var r=e.children();null===r||void 0===r||(0,a.default)(r).call(r,function(e){t.push(l.default(e))})}}),t},t.updateRange=function(e,t,n){var r=e.selection,i=document.createRange();t.length>1?(i.setStart(t.elems[0],0),i.setEnd(t.elems[t.length-1],t.elems[t.length-1].childNodes.length)):i.selectNodeContents(t.elems[0]),n&&i.collapse(!1),r.saveRange(i),r.restoreSelection()},t.getStartPoint=function(e){var t;return e.prior?e.prior:l.default(null===(t=e.children())||void 0===t?void 0:t.elems[0])},t.getEndPoint=function(e){var t;return e.prior?e.prior:l.default(null===(t=e.children())||void 0===t?void 0:t.last().elems[0])},t.insertBefore=function(e,t,n){void 0===n&&(n=null),e.parent().elems[0].insertBefore(t,n)},t.createElement=c,t.createDocumentFragment=function(){return document.createDocumentFragment()},t.createElementFragment=function(e,t,n){return void 0===n&&(n="li"),(0,a.default)(e).call(e,function(e){var r=c(n);r.innerHTML=e.html(),t.append(r),e.remove()}),t}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t){e.exports={}},function(e,t,n){var r=n(17);e.exports=function(e,t,n,i){i&&i.enumerable?e[t]=n:r(e,t,n)}},function(e,t,n){"use strict";var r=n(177).charAt,i=n(43),a=n(88),o=i.set,s=i.getterFor("String Iterator");a(String,"String",function(e){o(this,{type:"String Iterator",string:String(e),index:0})},function(){var e,t=s(this),n=t.string,i=t.index;return i>=n.length?{value:void 0,done:!0}:(e=r(n,i),t.index+=e.length,{value:e,done:!1})})},function(e,t,n){n(179);var r=n(180),i=n(8),a=n(68),o=n(17),s=n(41),l=n(9)("toStringTag");for(var c in r){var u=i[c],h=u&&u.prototype;h&&a(h)!==l&&o(h,l,c),s[c]=s.Array}},function(e,t,n){var r=n(47);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){var r=n(12),i=n(9),a=n(66),o=i("species");e.exports=function(e){return a>=51||!r(function(){var t=[];return(t.constructor={})[o]=function(){return{foo:1}},1!==t[e](Boolean).foo})}},function(e,t,n){e.exports=n(214)},function(e,t,n){e.exports=n(223)},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.ListHandle=void 0;var r=n(2).__importDefault(n(372)),i=function(){return function(e){this.options=e,this.selectionRangeElem=new r.default}}();t.ListHandle=i},function(e,t,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,a=i&&!r.call({1:2},1);t.f=a?function(e){var t=i(this,e);return!!t&&t.enumerable}:r},function(e,t,n){var r=n(13);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var r=n(79),i=n(61),a=r("keys");e.exports=function(e){return a[e]||(a[e]=i(e))}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+r).toString(36)}},function(e,t,n){var r,i=n(20),a=n(167),o=n(83),s=n(49),l=n(104),c=n(77),u=n(60)("IE_PROTO"),h=function(){},d=function(e){return"<script>"+e+"<\/script>"},f=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t;f=r?function(e){e.write(d("")),e.close();var t=e.parentWindow.Object;return e=null,t}(r):((t=c("iframe")).style.display="none",l.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(d("document.F=Object")),e.close(),e.F);for(var n=o.length;n--;)delete f.prototype[o[n]];return f()};s[u]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(h.prototype=i(e),n=new h,h.prototype=null,n[u]=e):n=f(),void 0===t?n:a(n,t)}},function(e,t,n){var r=n(103),i=n(83);e.exports=Object.keys||function(e){return r(e,i)}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r=n(47),i=n(8);e.exports="process"==r(i.process)},function(e,t,n){var r,i,a=n(8),o=n(67),s=a.process,l=s&&s.versions,c=l&&l.v8;c?i=(r=c.split("."))[0]+r[1]:o&&(!(r=o.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=o.match(/Chrome\/(\d+)/))&&(i=r[1]),e.exports=i&&+i},function(e,t,n){var r=n(28);e.exports=r("navigator","userAgent")||""},function(e,t,n){var r=n(85),i=n(47),a=n(9)("toStringTag"),o="Arguments"==i(function(){return arguments}());e.exports=r?i:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),a))?n:o?i(t):"Object"==(r=i(t))&&"function"==typeof t.callee?"Arguments":r}},function(e,t){},function(e,t,n){"use strict";var r=n(32);e.exports.f=function(e){return new function(e){var t,n;this.promise=new e(function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r}),this.resolve=r(t),this.reject=r(n)}(e)}},function(e,t,n){"use strict";var r=n(12);e.exports=function(e,t){var n=[][e];return!!n&&r(function(){n.call(null,t||function(){throw 1},1)})}},function(e,t){e.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},function(e,t,n){"use strict";var r=n(59),i=n(18),a=n(37);e.exports=function(e,t,n){var o=r(t);o in e?i.f(e,o,a(0,n)):e[o]=n}},function(e,t,n){e.exports=n(210)},function(e,t,n){var r=n(15),i=n(58),a=n(37),o=n(27),s=n(59),l=n(16),c=n(100),u=Object.getOwnPropertyDescriptor;t.f=r?u:function(e,t){if(e=o(e),t=s(t,!0),c)try{return u(e,t)}catch(e){}if(l(e,t))return a(!i.f.call(e,t),e[t])}},function(e,t,n){var r=n(12),i=n(47),a="".split;e.exports=r(function(){return!Object("z").propertyIsEnumerable(0)})?function(e){return"String"==i(e)?a.call(e,""):Object(e)}:Object},function(e,t,n){var r=n(8),i=n(13),a=r.document,o=i(a)&&i(a.createElement);e.exports=function(e){return o?a.createElement(e):{}}},function(e,t,n){var r=n(16),i=n(33),a=n(60),o=n(165),s=a("IE_PROTO"),l=Object.prototype;e.exports=o?Object.getPrototypeOf:function(e){return e=i(e),r(e,s)?e[s]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?l:null}},function(e,t,n){var r=n(39),i=n(80);(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.10.1",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},function(e,t,n){var r=n(8),i=n(164),a=r["__core-js_shared__"]||i("__core-js_shared__",{});e.exports=a},function(e,t,n){var r=n(27),i=n(34),a=n(82),o=function(e){return function(t,n,o){var s,l=r(t),c=i(l.length),u=a(o,c);if(e&&n!=n){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},function(e,t,n){var r=n(64),i=Math.max,a=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):a(n,t)}},function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t,n){var r=n(65),i=n(66),a=n(12);e.exports=!!Object.getOwnPropertySymbols&&!a(function(){return!Symbol.sham&&(r?38===i:i>37&&i<41)})},function(e,t,n){var r={};r[n(9)("toStringTag")]="z",e.exports="[object z]"===String(r)},function(e,t){e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},function(e,t){e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},function(e,t,n){"use strict";var r=n(5),i=n(178),a=n(78),o=n(102),s=n(42),l=n(17),c=n(50),u=n(9),h=n(39),d=n(41),f=n(118),p=f.IteratorPrototype,A=f.BUGGY_SAFARI_ITERATORS,g=u("iterator"),m=function(){return this};e.exports=function(e,t,n,u,f,v,y){i(n,t,u);var b,w,x,_=function(e){if(e===f&&E)return E;if(!A&&e in k)return k[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},C=t+" Iterator",S=!1,k=e.prototype,B=k[g]||k["@@iterator"]||f&&k[f],E=!A&&B||_(f),T="Array"==t&&k.entries||B;if(T&&(b=a(T.call(new e)),p!==Object.prototype&&b.next&&(h||a(b)===p||(o?o(b,p):"function"!=typeof b[g]&&l(b,g,m)),s(b,C,!0,!0),h&&(d[C]=m))),"values"==f&&B&&"values"!==B.name&&(S=!0,E=function(){return B.call(this)}),h&&!y||k[g]===E||l(k,g,E),d[t]=E,f)if(w={values:_("values"),keys:v?E:_("keys"),entries:_("entries")},y)for(x in w)!A&&!S&&x in k||c(k,x,w[x]);else r({target:t,proto:!0,forced:A||S},w);return w}},function(e,t){e.exports=function(){}},function(e,t,n){var r=n(13),i=n(53),a=n(9)("species");e.exports=function(e,t){var n;return i(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!i(n.prototype)?r(n)&&null===(n=n[a])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},function(e,t,n){e.exports=n(186)},function(e,t,n){var r=n(48),i="["+n(72)+"]",a=RegExp("^"+i+i+"*"),o=RegExp(i+i+"*$"),s=function(e){return function(t){var n=String(r(t));return 1&e&&(n=n.replace(a,"")),2&e&&(n=n.replace(o,"")),n}};e.exports={start:s(1),end:s(2),trim:s(3)}},function(e,t,n){e.exports=n(206)},function(e,t,n){var r=n(228),i=n(255);function a(t){"@babel/helpers - typeof";return"function"==typeof r&&"symbol"==typeof i?(e.exports=a=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=a=function(e){return e&&"function"==typeof r&&e.constructor===r&&e!==r.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),a(t)}e.exports=a,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){var r=n(9);t.f=r},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),a=r(n(4));(0,i.default)(t,"__esModule",{value:!0});var o=n(2).__importDefault(n(31)),s=function(){function e(e,t){var n=this;this.$elem=e,this.editor=t,this._active=!1,e.on("click",function(e){var r;o.default.hideCurAllPanels(),(0,a.default)(r=t.txt.eventHooks.menuClickEvents).call(r,function(e){return e()}),e.stopPropagation(),null!=t.selection.getRange()&&n.clickHandler(e)})}return e.prototype.clickHandler=function(e){},e.prototype.active=function(){this._active=!0,this.$elem.addClass("w-e-active")},e.prototype.unActive=function(){this._active=!1,this.$elem.removeClass("w-e-active")},(0,i.default)(e.prototype,"isActive",{get:function(){return this._active},enumerable:!1,configurable:!0}),e}();t.default=s},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),a=r(n(56)),o=r(n(4)),s=r(n(26));(0,i.default)(t,"__esModule",{value:!0});var l=n(2),c=n(6),u=l.__importDefault(n(134)),h=l.__importDefault(n(135)),d=function(){function e(e){this.editor=e}return e.prototype.insertImg=function(e,t,n){var r=this.editor,i=r.config,a=function(e,t){return void 0===t&&(t="validate."),r.i18next.t(t+e)},o=t?'alt="'+t+'" ':"",s=n?'data-href="'+encodeURIComponent(n)+'" ':"";r.cmd.do("insertHTML",'<img src="'+e+'" '+o+s+'style="max-width:100%;"/>'),i.linkImgCallback(e,t,n);var l=document.createElement("img");l.onload=function(){l=null},l.onerror=function(){i.customAlert(a("插入图片错误"),"error","wangEditor: "+a("插入图片错误")+","+a("图片链接")+' "'+e+'",'+a("下载链接失败")),l=null},l.onabort=function(){return l=null},l.src=e},e.prototype.uploadImg=function(e){var t=this;if(e.length){var n=this.editor,r=n.config,i=function(e){return n.i18next.t("validate."+e)},l=r.uploadImgServer,d=r.uploadImgShowBase64,f=r.uploadImgMaxSize,p=f/1024/1024,A=r.uploadImgMaxLength,g=r.uploadFileName,m=r.uploadImgParams,v=r.uploadImgParamsWithUrl,y=r.uploadImgHeaders,b=r.uploadImgHooks,w=r.uploadImgTimeout,x=r.withCredentials,_=r.customUploadImg;if(_||l||d){var C=[],S=[];if(c.arrForEach(e,function(e){var t=e.name,r=e.size;if(t&&r){var a=n.config.uploadImgAccept.join("|");!1!==new RegExp(".("+a+")$","i").test(t)?f<r?S.push("【"+t+"】"+i("大于")+" "+p+"M"):C.push(e):S.push("【"+t+"】"+i("不是图片"))}}),S.length)r.customAlert(i("图片验证未通过")+": \n"+S.join("\n"),"warning");else if(0!==C.length)if(C.length>A)r.customAlert(i("一次最多上传")+A+i("张图片"),"warning");else if(_&&"function"==typeof _){var k;_(C,(0,a.default)(k=this.insertImg).call(k,this))}else{var B=new FormData;if((0,o.default)(C).call(C,function(e,t){var n=g||e.name;C.length>1&&(n+=t+1),B.append(n,e)}),l){var E=l.split("#");l=E[0];var T=E[1]||"";(0,o.default)(c).call(c,m,function(e,t){v&&((0,s.default)(l).call(l,"?")>0?l+="&":l+="?",l=l+e+"="+t),B.append(e,t)}),T&&(l+="#"+T);var I=u.default(l,{timeout:w,formData:B,headers:y,withCredentials:!!x,beforeSend:function(e){if(b.before)return b.before(e,n,C)},onTimeout:function(e){r.customAlert(i("上传图片超时"),"error"),b.timeout&&b.timeout(e,n)},onProgress:function(e,t){var r=new h.default(n);t.lengthComputable&&(e=t.loaded/t.total,r.show(e))},onError:function(e){r.customAlert(i("上传图片错误"),"error",i("上传图片错误")+","+i("服务器返回状态")+": "+e.status),b.error&&b.error(e,n)},onFail:function(e,t){r.customAlert(i("上传图片失败"),"error",i("上传图片返回结果错误")+","+i("返回结果")+": "+t),b.fail&&b.fail(e,n,t)},onSuccess:function(e,s){if(b.customInsert){var l;b.customInsert((0,a.default)(l=t.insertImg).call(l,t),s,n)}else{if("0"!=s.errno)return r.customAlert(i("上传图片失败"),"error",i("上传图片返回结果错误")+","+i("返回结果")+" errno="+s.errno),void(b.fail&&b.fail(e,n,s));var c=s.data;(0,o.default)(c).call(c,function(e){"string"==typeof e?t.insertImg(e):t.insertImg(e.url,e.alt,e.href)}),b.success&&b.success(e,n,s)}}});"string"==typeof I&&r.customAlert(I,"error")}else d&&c.arrForEach(e,function(e){var n=t,r=new FileReader;r.readAsDataURL(e),r.onload=function(){if(this.result){var e=this.result.toString();n.insertImg(e,e)}}})}else r.customAlert(i("传入的文件不合法"),"warning")}}},e}();t.default=d},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),a=r(n(410)),o=r(n(4)),s=r(n(44));function l(e){return!!e.length&&"w-e-todo"===e.attr("class")}function c(e,t){return 3===e.nodeType?e.nodeValue===t.nodeValue:e.contains(t)}function u(e,t,n){void 0===n&&(n=!0);var r=e.nodeValue,i=null===r||void 0===r?void 0:(0,s.default)(r).call(r,0,t);if(r=null===r||void 0===r?void 0:(0,s.default)(r).call(r,t),!n){var a=r;r=i,i=a}return e.nodeValue=i,r}(0,i.default)(t,"__esModule",{value:!0}),t.dealTextNode=t.isAllTodo=t.isTodo=t.getCursorNextNode=void 0,t.isTodo=l,t.isAllTodo=function(e){var t=e.selection.getSelectionRangeTopNodes();if(0!==t.length)return(0,a.default)(t).call(t,function(e){return l(e)})},t.getCursorNextNode=function e(t,n,r){var i;if(t.hasChildNodes()){var a=t.cloneNode(),s=!1;""===n.nodeValue&&(s=!0);var l=[];return(0,o.default)(i=t.childNodes).call(i,function(t){if(!c(t,n)&&s&&(a.appendChild(t.cloneNode(!0)),"BR"!==t.nodeName&&l.push(t)),c(t,n)){if(1===t.nodeType){var i=e(t,n,r);i&&""!==i.textContent&&(null===a||void 0===a||a.appendChild(i))}if(3===t.nodeType&&n.isEqualNode(t)){var o=u(t,r);a.textContent=o}s=!0}}),(0,o.default)(l).call(l,function(e){e.remove()}),a}},t.dealTextNode=u},function(e,t,n){"use strict";var r=n(0)(n(1));(0,r.default)(t,"__esModule",{value:!0});var i=n(430),a=function(){function e(e){this.maxSize=e,this.isRe=!1,this.data=new i.CeilStack(e),this.revokeData=new i.CeilStack(e)}return(0,r.default)(e.prototype,"size",{get:function(){return[this.data.size,this.revokeData.size]},enumerable:!1,configurable:!0}),e.prototype.resetMaxSize=function(e){this.data.resetMax(e),this.revokeData.resetMax(e)},e.prototype.save=function(e){return this.isRe&&(this.revokeData.clear(),this.isRe=!1),this.data.instack(e),this},e.prototype.revoke=function(e){!this.isRe&&(this.isRe=!0);var t=this.data.outstack();return!!t&&(this.revokeData.instack(t),e(t),!0)},e.prototype.restore=function(e){!this.isRe&&(this.isRe=!0);var t=this.revokeData.outstack();return!!t&&(this.data.instack(t),e(t),!0)},e}();t.default=a},function(e,t,n){var r=n(15),i=n(12),a=n(77);e.exports=!r&&!i(function(){return 7!=Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(12),i=/#|\.prototype\./,a=function(e,t){var n=s[o(e)];return n==c||n!=l&&("function"==typeof t?r(t):!!t)},o=a.normalize=function(e){return String(e).replace(i,".").toLowerCase()},s=a.data={},l=a.NATIVE="N",c=a.POLYFILL="P";e.exports=a},function(e,t,n){var r=n(20),i=n(166);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(e){}return function(n,a){return r(n),i(a),t?e.call(n,a):n.__proto__=a,n}}():void 0)},function(e,t,n){var r=n(16),i=n(27),a=n(81).indexOf,o=n(49);e.exports=function(e,t){var n,s=i(e),l=0,c=[];for(n in s)!r(o,n)&&r(s,n)&&c.push(n);for(;t.length>l;)r(s,n=t[l++])&&(~a(c,n)||c.push(n));return c}},function(e,t,n){var r=n(28);e.exports=r("document","documentElement")},function(e,t,n){var r=n(9),i=n(41),a=r("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||o[a]===e)}},function(e,t,n){var r=n(84);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(e,t,n){var r=n(68),i=n(41),a=n(9)("iterator");e.exports=function(e){if(void 0!=e)return e[a]||e["@@iterator"]||i[r(e)]}},function(e,t,n){var r=n(20);e.exports=function(e){var t=e.return;if(void 0!==t)return r(t.call(e)).value}},function(e,t,n){var r=n(8);e.exports=r.Promise},function(e,t,n){var r=n(50);e.exports=function(e,t,n){for(var i in t)n&&n.unsafe&&e[i]?e[i]=t[i]:r(e,i,t[i],n);return e}},function(e,t,n){"use strict";var r=n(28),i=n(18),a=n(9),o=n(15),s=a("species");e.exports=function(e){var t=r(e),n=i.f;o&&t&&!t[s]&&n(t,s,{configurable:!0,get:function(){return this}})}},function(e,t,n){var r=n(80),i=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(e){return i.call(e)}),e.exports=r.inspectSource},function(e,t,n){var r=n(9)("iterator"),i=!1;try{var a=0,o={next:function(){return{done:!!a++}},return:function(){i=!0}};o[r]=function(){return this},Array.from(o,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var a={};a[r]=function(){return{next:function(){return{done:n=!0}}}},e(a)}catch(e){}return n}},function(e,t,n){var r=n(20),i=n(32),a=n(9)("species");e.exports=function(e,t){var n,o=r(e).constructor;return void 0===o||void 0==(n=r(o)[a])?t:i(n)}},function(e,t,n){var r,i,a,o=n(8),s=n(12),l=n(38),c=n(104),u=n(77),h=n(116),d=n(65),f=o.location,p=o.setImmediate,A=o.clearImmediate,g=o.process,m=o.MessageChannel,v=o.Dispatch,y=0,b={},w=function(e){if(b.hasOwnProperty(e)){var t=b[e];delete b[e],t()}},x=function(e){return function(){w(e)}},_=function(e){w(e.data)},C=function(e){o.postMessage(e+"",f.protocol+"//"+f.host)};p&&A||(p=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return b[++y]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},r(y),y},A=function(e){delete b[e]},d?r=function(e){g.nextTick(x(e))}:v&&v.now?r=function(e){v.now(x(e))}:m&&!h?(a=(i=new m).port2,i.port1.onmessage=_,r=l(a.postMessage,a,1)):o.addEventListener&&"function"==typeof postMessage&&!o.importScripts&&f&&"file:"!==f.protocol&&!s(C)?(r=C,o.addEventListener("message",_,!1)):r="onreadystatechange"in u("script")?function(e){c.appendChild(u("script")).onreadystatechange=function(){c.removeChild(this),w(e)}}:function(e){setTimeout(x(e),0)}),e.exports={set:p,clear:A}},function(e,t,n){var r=n(67);e.exports=/(?:iphone|ipod|ipad).*applewebkit/i.test(r)},function(e,t,n){var r=n(20),i=n(13),a=n(70);e.exports=function(e,t){if(r(e),i(t)&&t.constructor===e)return t;var n=a.f(e);return(0,n.resolve)(t),n.promise}},function(e,t,n){"use strict";var r,i,a,o=n(12),s=n(78),l=n(17),c=n(16),u=n(9),h=n(39),d=u("iterator"),f=!1;[].keys&&("next"in(a=[].keys())?(i=s(s(a)))!==Object.prototype&&(r=i):f=!0);var p=void 0==r||o(function(){var e={};return r[d].call(e)!==e});p&&(r={}),h&&!p||c(r,d)||l(r,d,function(){return this}),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:f}},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),a=r(n(4));(0,i.default)(t,"__esModule",{value:!0});var o=n(2),s=o.__importDefault(n(3)),l=n(6),c=o.__importDefault(n(269)),u=o.__importDefault(n(284)),h=o.__importDefault(n(285)),d=o.__importDefault(n(286)),f=o.__importDefault(n(305)),p=o.__importDefault(n(416)),A=o.__importDefault(n(417)),g=o.__importDefault(n(418)),m=o.__importDefault(n(419)),v=o.__importStar(n(420)),y=o.__importDefault(n(423)),b=o.__importDefault(n(424)),w=o.__importDefault(n(425)),x=o.__importDefault(n(427)),_=o.__importDefault(n(437)),C=o.__importDefault(n(23)),S=o.__importDefault(n(132)),k=o.__importDefault(n(24)),B=o.__importDefault(n(31)),E=o.__importDefault(n(35)),T=o.__importDefault(n(36)),I=1,M=function(){function e(e,t){if(this.beforeDestroyHooks=[],this.id="wangEditor-"+I++,this.toolbarSelector=e,this.textSelector=t,null==e)throw new Error("错误:初始化编辑器时候未传入任何参数,请查阅文档");this.config=l.deepClone(c.default),this.$toolbarElem=s.default("<div></div>"),this.$textContainerElem=s.default("<div></div>"),this.$textElem=s.default("<div></div>"),this.toolbarElemId="",this.textElemId="",this.isFocus=!1,this.isComposing=!1,this.isCompatibleMode=!1,this.selection=new u.default(this),this.cmd=new h.default(this),this.txt=new d.default(this),this.menus=new f.default(this),this.zIndex=new b.default,this.change=new w.default(this),this.history=new x.default(this);var n=_.default(this),r=n.disable,i=n.enable;this.disable=r,this.enable=i}return e.prototype.initSelection=function(e){A.default(this,e)},e.prototype.create=function(){this.zIndex.init(this),this.isCompatibleMode=this.config.compatibleMode(),this.isCompatibleMode||(this.config.onchangeTimeout=30),m.default(this),p.default(this),this.txt.init(),this.menus.init(),v.default(this),this.initSelection(!0),g.default(this),this.change.observe(),this.history.observe()},e.prototype.beforeDestroy=function(e){return this.beforeDestroyHooks.push(e),this},e.prototype.destroy=function(){var e,t=this;(0,a.default)(e=this.beforeDestroyHooks).call(e,function(e){return e.call(t)}),this.$toolbarElem.remove(),this.$textContainerElem.remove()},e.prototype.fullScreen=function(){v.setFullScreen(this)},e.prototype.unFullScreen=function(){v.setUnFullScreen(this)},e.prototype.scrollToHead=function(e){y.default(this,e)},e.registerMenu=function(t,n){n&&"function"==typeof n&&(e.globalCustomMenuConstructorList[t]=n)},e.$=s.default,e.BtnMenu=C.default,e.DropList=S.default,e.DropListMenu=k.default,e.Panel=B.default,e.PanelMenu=E.default,e.Tooltip=T.default,e.globalCustomMenuConstructorList={},e}();t.default=M},function(e,t,n){e.exports=n(198)},function(e,t,n){"use strict";var r=n(5),i=n(8),a=n(122),o=n(12),s=n(17),l=n(40),c=n(86),u=n(13),h=n(42),d=n(18).f,f=n(29).forEach,p=n(15),A=n(43),g=A.set,m=A.getterFor;e.exports=function(e,t,n){var A,v=-1!==e.indexOf("Map"),y=-1!==e.indexOf("Weak"),b=v?"set":"add",w=i[e],x=w&&w.prototype,_={};if(p&&"function"==typeof w&&(y||x.forEach&&!o(function(){(new w).entries().next()}))){A=t(function(t,n){g(c(t,A,e),{type:e,collection:new w}),void 0!=n&&l(n,t[b],{that:t,AS_ENTRIES:v})});var C=m(e);f(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(e){var t="add"==e||"set"==e;e in x&&(!y||"clear"!=e)&&s(A.prototype,e,function(n,r){var i=C(this).collection;if(!t&&y&&!u(n))return"get"==e&&void 0;var a=i[e](0===n?0:n,r);return t?this:a})}),y||d(A.prototype,"size",{configurable:!0,get:function(){return C(this).collection.size}})}else A=n.getConstructor(t,e,v,b),a.REQUIRED=!0;return h(A,e,!1,!0),_[e]=A,r({global:!0,forced:!0},_),y||n.setStrong(A,e,v),A}},function(e,t,n){var r=n(49),i=n(13),a=n(16),o=n(18).f,s=n(61),l=n(201),c=s("meta"),u=0,h=Object.isExtensible||function(){return!0},d=function(e){o(e,c,{value:{objectID:"O"+ ++u,weakData:{}}})},f=e.exports={REQUIRED:!1,fastKey:function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!a(e,c)){if(!h(e))return"F";if(!t)return"E";d(e)}return e[c].objectID},getWeakData:function(e,t){if(!a(e,c)){if(!h(e))return!0;if(!t)return!1;d(e)}return e[c].weakData},onFreeze:function(e){return l&&f.REQUIRED&&h(e)&&!a(e,c)&&d(e),e}};r[c]=!0},function(e,t,n){"use strict";var r=n(18).f,i=n(62),a=n(110),o=n(38),s=n(86),l=n(40),c=n(88),u=n(111),h=n(15),d=n(122).fastKey,f=n(43),p=f.set,A=f.getterFor;e.exports={getConstructor:function(e,t,n,c){var u=e(function(e,r){s(e,u,t),p(e,{type:t,index:i(null),first:void 0,last:void 0,size:0}),h||(e.size=0),void 0!=r&&l(r,e[c],{that:e,AS_ENTRIES:n})}),f=A(t),g=function(e,t,n){var r,i,a=f(e),o=m(e,t);return o?o.value=n:(a.last=o={index:i=d(t,!0),key:t,value:n,previous:r=a.last,next:void 0,removed:!1},a.first||(a.first=o),r&&(r.next=o),h?a.size++:e.size++,"F"!==i&&(a.index[i]=o)),e},m=function(e,t){var n,r=f(e),i=d(t);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key==t)return n};return a(u.prototype,{clear:function(){for(var e=f(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,h?e.size=0:this.size=0},delete:function(e){var t=f(this),n=m(this,e);if(n){var r=n.next,i=n.previous;delete t.index[n.index],n.removed=!0,i&&(i.next=r),r&&(r.previous=i),t.first==n&&(t.first=r),t.last==n&&(t.last=i),h?t.size--:this.size--}return!!n},forEach:function(e){for(var t,n=f(this),r=o(e,arguments.length>1?arguments[1]:void 0,3);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!m(this,e)}}),a(u.prototype,n?{get:function(e){var t=m(this,e);return t&&t.value},set:function(e,t){return g(this,0===e?0:e,t)}}:{add:function(e){return g(this,e=0===e?0:e,e)}}),h&&r(u.prototype,"size",{get:function(){return f(this).size}}),u},setStrong:function(e,t,n){var r=t+" Iterator",i=A(t),a=A(r);c(e,t,function(e,t){p(this,{type:r,target:e,state:i(e),kind:t,last:void 0})},function(){for(var e=a(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})},n?"entries":"values",!n,!0),u(t)}}},function(e,t,n){var r=n(103),i=n(83).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){n(11)("iterator")},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.default={zIndex:1e4}},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),a=r(n(4));(0,i.default)(t,"__esModule",{value:!0}),t.getPasteImgs=t.getPasteHtml=t.getPasteText=void 0;var o=n(2),s=n(6),l=o.__importDefault(n(296));function c(e){var t=e.clipboardData,n="";return n=null==t?window.clipboardData&&window.clipboardData.getData("text"):t.getData("text/plain"),s.replaceHtmlSymbol(n)}t.getPasteText=c,t.getPasteHtml=function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n=!1);var r=e.clipboardData,i="";if(r&&(i=r.getData("text/html")),!i){var a=c(e);if(!a)return"";i="<p>"+a+"</p>"}return i=l.default(i,t,n)},t.getPasteImgs=function(e){var t,n=[];if(c(e))return n;var r=null===(t=e.clipboardData)||void 0===t?void 0:t.items;return r?((0,a.default)(s).call(s,r,function(e,t){var r=t.type;/image/i.test(r)&&n.push(t.getAsFile())}),n):n}},function(e,t,n){e.exports=n(298)},function(e,t,n){e.exports=n(306)},function(e,t,n){e.exports=n(310)},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),a=r(n(4)),o=r(n(45));(0,i.default)(t,"__esModule",{value:!0});var s=n(2).__importDefault(n(3)),l=n(7),c=function(){function e(e,t){var n=this;this.hideTimeoutId=0,this.menu=e,this.conf=t;var r=s.default('<div class="w-e-droplist"></div>'),i=s.default("<p>"+t.title+"</p>");i.addClass("w-e-dp-title"),r.append(i);var c=t.list||[],u=t.type||"list",h=t.clickHandler||l.EMPTY_FN,d=s.default('<ul class="'+("list"===u?"w-e-list":"w-e-block")+'"></ul>');(0,a.default)(c).call(c,function(e){var t=e.$elem,r=e.value,i=s.default('<li class="w-e-item"></li>');t&&(i.append(t),d.append(i),i.on("click",function(e){h(r),e.stopPropagation(),n.hideTimeoutId=(0,o.default)(function(){n.hide()})}))}),r.append(d),r.on("mouseleave",function(){n.hideTimeoutId=(0,o.default)(function(){n.hide()})}),this.$container=r,this.rendered=!1,this._show=!1}return e.prototype.show=function(){this.hideTimeoutId&&clearTimeout(this.hideTimeoutId);var e=this.menu.$elem,t=this.$container;if(!this._show){if(this.rendered)t.show();else{var n=e.getBoundingClientRect().height||0,r=this.conf.width||100;t.css("margin-top",n+"px").css("width",r+"px"),e.append(t),this.rendered=!0}this._show=!0}},e.prototype.hide=function(){var e=this.$container;this._show&&(e.hide(),this._show=!1)},(0,i.default)(e.prototype,"isShow",{get:function(){return this._show},enumerable:!1,configurable:!0}),e}();t.default=c},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.default=function(e){var t=e.selection.getSelectionContainerElem();return!(null===t||void 0===t||!t.length)&&"A"===t.getNodeName()}},function(e,t,n){"use strict";var r=n(0),i=r(n(94)),a=r(n(1)),o=r(n(4));(0,a.default)(t,"__esModule",{value:!0});var s=n(6);t.default=function(e,t){var n=new XMLHttpRequest;if(n.open("POST",e),n.timeout=t.timeout||1e4,n.ontimeout=function(){console.error("wangEditor - 请求超时"),t.onTimeout&&t.onTimeout(n)},n.upload&&(n.upload.onprogress=function(e){var n=e.loaded/e.total;t.onProgress&&t.onProgress(n,e)}),t.headers&&(0,o.default)(s).call(s,t.headers,function(e,t){n.setRequestHeader(e,t)}),n.withCredentials=!!t.withCredentials,t.beforeSend){var r=t.beforeSend(n);if(r&&"object"===(0,i.default)(r)&&r.prevent)return r.msg}return n.onreadystatechange=function(){if(4===n.readyState){var e=n.status;if(!(e<200||e>=300&&e<400)){if(e>=400)return console.error("wangEditor - XHR 报错,状态码 "+e),void(t.onError&&t.onError(n));var r,a=n.responseText;if("object"!==(0,i.default)(a))try{r=JSON.parse(a)}catch(e){return console.error("wangEditor - 返回结果不是 JSON 格式",a),void(t.onFail&&t.onFail(n,a))}else r=a;t.onSuccess(n,r)}}},n.send(t.formData||null),n}},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),a=r(n(342)),o=r(n(45));(0,i.default)(t,"__esModule",{value:!0});var s=n(2).__importDefault(n(3)),l=function(){function e(e){this.editor=e,this.$textContainer=e.$textContainerElem,this.$bar=s.default('<div class="w-e-progress"></div>'),this.isShow=!1,this.time=0,this.timeoutId=0}return e.prototype.show=function(e){var t=this;if(!this.isShow){this.isShow=!0;var n=this.$bar;this.$textContainer.append(n),(0,a.default)()-this.time>100&&e<=1&&(n.css("width",100*e+"%"),this.time=(0,a.default)());var r=this.timeoutId;r&&clearTimeout(r),this.timeoutId=(0,o.default)(function(){t.hide()},500)}},e.prototype.hide=function(){this.$bar.remove(),this.isShow=!1,this.time=0,this.timeoutId=0},e}();t.default=l},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.ListType=void 0;var r,i=n(2),a=i.__importDefault(n(3)),o=i.__importDefault(n(24)),s=n(46),l=i.__importStar(n(370));!function(e){e.OrderedList="OL",e.UnorderedList="UL"}(r=t.ListType||(t.ListType={}));var c=function(e){function t(t){var n=this,i=a.default('<div class="w-e-menu" data-title="序列">\n <i class="w-e-icon-list2"></i>\n </div>'),o={width:130,title:"序列",type:"list",list:[{$elem:a.default('\n <p>\n <i class="w-e-icon-list2 w-e-drop-list-item"></i>\n '+t.i18next.t("menus.dropListMenu.list.无序列表")+"\n <p>"),value:r.UnorderedList},{$elem:a.default('<p>\n <i class="w-e-icon-list-numbered w-e-drop-list-item"></i>\n '+t.i18next.t("menus.dropListMenu.list.有序列表")+"\n <p>"),value:r.OrderedList}],clickHandler:function(e){n.command(e)}};return n=e.call(this,i,t,o)||this}return i.__extends(t,e),t.prototype.command=function(e){void 0!==this.editor.selection.getSelectionContainerElem()&&(this.handleSelectionRangeNodes(e),this.tryChangeActive())},t.prototype.validator=function(e,t,n){return!(!e.length||!t.length||n.equal(e)||n.equal(t))},t.prototype.handleSelectionRangeNodes=function(e){var t=this.editor,n=t.selection,r=e.toLowerCase(),i=n.getSelectionContainerElem(),a=n.getSelectionStartElem().getNodeTop(t),o=n.getSelectionEndElem().getNodeTop(t);if(this.validator(a,o,t.$textElem)){var c=n.getRange(),u=null===c||void 0===c?void 0:c.collapsed;t.$textElem.equal(i)||(i=i.getNodeTop(t));var h,d={editor:t,listType:e,listTarget:r,$selectionElem:i,$startElem:a,$endElem:o};h=this.isOrderElem(i)?l.ClassType.Wrap:this.isOrderElem(a)&&this.isOrderElem(o)?l.ClassType.Join:this.isOrderElem(a)?l.ClassType.StartJoin:this.isOrderElem(o)?l.ClassType.EndJoin:l.ClassType.Other;var f=new l.default(l.createListHandle(h,d,c));s.updateRange(t,f.getSelectionRangeElem(),!!u)}},t.prototype.isOrderElem=function(e){var t=e.getNodeName();return t===r.OrderedList||t===r.UnorderedList},t.prototype.tryChangeActive=function(){},t}(o.default);t.default=c},function(e,t,n){e.exports=n(394)},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.default=function(e){var t=e.selection.getSelectionContainerElem();return!(null===t||void 0===t||!t.length||"CODE"!=t.getNodeName()&&"PRE"!=t.getNodeName()&&"CODE"!=t.parent().getNodeName()&&"PRE"!=t.parent().getNodeName()&&!/hljs/.test(t.parent().attr("class")))}},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),a=r(n(30));(0,i.default)(t,"__esModule",{value:!0}),t.todo=void 0;var o=n(2).__importDefault(n(3)),s=function(){function e(e){var t;this.template='<ul class="w-e-todo"><li><span contenteditable="false"><input type="checkbox"></span></li></ul>',this.checked=!1,this.$todo=o.default(this.template),this.$child=null===(t=null===e||void 0===e?void 0:e.childNodes())||void 0===t?void 0:t.clone(!0)}return e.prototype.init=function(){var e=this,t=this.getInput(),n=this.$child,r=this.getInputContainer();n&&n.insertAfter(r),t.on("click",function(){e.checked?null===t||void 0===t||t.removeAttr("checked"):null===t||void 0===t||t.attr("checked",""),e.checked=!e.checked})},e.prototype.getInput=function(){var e=this.$todo;return(0,a.default)(e).call(e,"input")},e.prototype.getInputContainer=function(){return this.getInput().parent()},e.prototype.getTodo=function(){return this.$todo},e}();t.todo=s,t.default=function(e){var t=new s(e);return t.init(),t}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(2);n(145),n(147),n(151),n(153),n(155),n(157),n(159);var i=r.__importDefault(n(119));r.__exportStar(n(440),t);try{document}catch(e){throw new Error("请在浏览器环境下运行")}t.default=i.default},function(e,t,n){var r=n(142);e.exports=r},function(e,t,n){n(143);var r=n(10).Object,i=e.exports=function(e,t,n){return r.defineProperty(e,t,n)};r.defineProperty.sham&&(i.sham=!0)},function(e,t,n){var r=n(5),i=n(15);r({target:"Object",stat:!0,forced:!i,sham:!i},{defineProperty:n(18).f})},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){var r=n(21),i=n(146);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var a={insert:"head",singleton:!1};r(i,a);e.exports=i.locals||{}},function(e,t,n){(t=n(22)(!1)).push([e.i,'.w-e-toolbar,\n.w-e-text-container,\n.w-e-menu-panel {\n padding: 0;\n margin: 0;\n box-sizing: border-box;\n background-color: #fff;\n /*表情菜单样式*/\n /*分割线样式*/\n}\n.w-e-toolbar h1,\n.w-e-text-container h1,\n.w-e-menu-panel h1 {\n font-size: 2em !important;\n}\n.w-e-toolbar h2,\n.w-e-text-container h2,\n.w-e-menu-panel h2 {\n font-size: 1.5em !important;\n}\n.w-e-toolbar h3,\n.w-e-text-container h3,\n.w-e-menu-panel h3 {\n font-size: 1.17em !important;\n}\n.w-e-toolbar h4,\n.w-e-text-container h4,\n.w-e-menu-panel h4 {\n font-size: 1em !important;\n}\n.w-e-toolbar h5,\n.w-e-text-container h5,\n.w-e-menu-panel h5 {\n font-size: 0.83em !important;\n}\n.w-e-toolbar p,\n.w-e-text-container p,\n.w-e-menu-panel p {\n font-size: 1em !important;\n}\n.w-e-toolbar .eleImg,\n.w-e-text-container .eleImg,\n.w-e-menu-panel .eleImg {\n cursor: pointer;\n display: inline-block;\n font-size: 18px;\n padding: 0 3px;\n}\n.w-e-toolbar *,\n.w-e-text-container *,\n.w-e-menu-panel * {\n padding: 0;\n margin: 0;\n box-sizing: border-box;\n}\n.w-e-toolbar hr,\n.w-e-text-container hr,\n.w-e-menu-panel hr {\n cursor: pointer;\n display: block;\n height: 0px;\n border: 0;\n border-top: 3px solid #ccc;\n margin: 20px 0;\n}\n.w-e-clear-fix:after {\n content: "";\n display: table;\n clear: both;\n}\n.w-e-drop-list-item {\n position: relative;\n top: 1px;\n padding-right: 7px;\n color: #333 !important;\n}\n.w-e-drop-list-tl {\n padding-left: 10px;\n text-align: left;\n}\n',""]),e.exports=t},function(e,t,n){var r=n(21),i=n(148);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var a={insert:"head",singleton:!1};r(i,a);e.exports=i.locals||{}},function(e,t,n){var r=n(22),i=n(149),a=n(150);t=r(!1);var o=i(a);t.push([e.i,"@font-face {\n font-family: 'w-e-icon';\n src: url("+o+') format(\'truetype\');\n font-weight: normal;\n font-style: normal;\n}\n[class^="w-e-icon-"],\n[class*=" w-e-icon-"] {\n /* use !important to prevent issues with browser extensions that change fonts */\n font-family: \'w-e-icon\' !important;\n speak: none;\n font-style: normal;\n font-weight: normal;\n font-variant: normal;\n text-transform: none;\n line-height: 1;\n /* Better Font Rendering =========== */\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n.w-e-icon-close:before {\n content: "\\f00d";\n}\n.w-e-icon-upload2:before {\n content: "\\e9c6";\n}\n.w-e-icon-trash-o:before {\n content: "\\f014";\n}\n.w-e-icon-header:before {\n content: "\\f1dc";\n}\n.w-e-icon-pencil2:before {\n content: "\\e906";\n}\n.w-e-icon-paint-brush:before {\n content: "\\f1fc";\n}\n.w-e-icon-image:before {\n content: "\\e90d";\n}\n.w-e-icon-play:before {\n content: "\\e912";\n}\n.w-e-icon-location:before {\n content: "\\e947";\n}\n.w-e-icon-undo:before {\n content: "\\e965";\n}\n.w-e-icon-redo:before {\n content: "\\e966";\n}\n.w-e-icon-quotes-left:before {\n content: "\\e977";\n}\n.w-e-icon-list-numbered:before {\n content: "\\e9b9";\n}\n.w-e-icon-list2:before {\n content: "\\e9bb";\n}\n.w-e-icon-link:before {\n content: "\\e9cb";\n}\n.w-e-icon-happy:before {\n content: "\\e9df";\n}\n.w-e-icon-bold:before {\n content: "\\ea62";\n}\n.w-e-icon-underline:before {\n content: "\\ea63";\n}\n.w-e-icon-italic:before {\n content: "\\ea64";\n}\n.w-e-icon-strikethrough:before {\n content: "\\ea65";\n}\n.w-e-icon-table2:before {\n content: "\\ea71";\n}\n.w-e-icon-paragraph-left:before {\n content: "\\ea77";\n}\n.w-e-icon-paragraph-center:before {\n content: "\\ea78";\n}\n.w-e-icon-paragraph-right:before {\n content: "\\ea79";\n}\n.w-e-icon-paragraph-justify:before {\n content: "\\ea7a";\n}\n.w-e-icon-terminal:before {\n content: "\\f120";\n}\n.w-e-icon-page-break:before {\n content: "\\ea68";\n}\n.w-e-icon-cancel-circle:before {\n content: "\\ea0d";\n}\n.w-e-icon-font:before {\n content: "\\ea5c";\n}\n.w-e-icon-text-heigh:before {\n content: "\\ea5f";\n}\n.w-e-icon-paint-format:before {\n content: "\\e90c";\n}\n.w-e-icon-indent-increase:before {\n content: "\\ea7b";\n}\n.w-e-icon-indent-decrease:before {\n content: "\\ea7c";\n}\n.w-e-icon-row-height:before {\n content: "\\e9be";\n}\n.w-e-icon-fullscreen_exit:before {\n content: "\\e900";\n}\n.w-e-icon-fullscreen:before {\n content: "\\e901";\n}\n.w-e-icon-split-line:before {\n content: "\\ea0b";\n}\n.w-e-icon-checkbox-checked:before {\n content: "\\ea52";\n}\n',""]),e.exports=t},function(e,t,n){"use strict";e.exports=function(e,t){return t||(t={}),"string"!=typeof(e=e&&e.__esModule?e.default:e)?e:(/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e)}},function(e,t,n){"use strict";n.r(t),t.default="data:font/woff;base64,d09GRgABAAAAABskAAsAAAAAGtgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABPUy8yAAABCAAAAGAAAABgDxIPFWNtYXAAAAFoAAABHAAAARz2mfAgZ2FzcAAAAoQAAAAIAAAACAAAABBnbHlmAAACjAAAFXwAABV8IH7+mGhlYWQAABgIAAAANgAAADYb6gumaGhlYQAAGEAAAAAkAAAAJAkjBWlobXR4AAAYZAAAAKQAAACkmYcEbmxvY2EAABkIAAAAVAAAAFReAmKYbWF4cAAAGVwAAAAgAAAAIAA0ALZuYW1lAAAZfAAAAYYAAAGGmUoJ+3Bvc3QAABsEAAAAIAAAACAAAwAAAAMD7wGQAAUAAAKZAswAAACPApkCzAAAAesAMwEJAAAAAAAAAAAAAAAAAAAAARAAAAAAAAAAAAAAAAAAAAAAQAAA8fwDwP/AAEADwABAAAAAAQAAAAAAAAAAAAAAIAAAAAAAAwAAAAMAAAAcAAEAAwAAABwAAwABAAAAHAAEAQAAAAA8ACAABAAcAAEAIOkB6QbpDekS6UfpZul36bnpu+m+6cbpy+nf6gvqDepS6lzqX+pl6nHqfPAN8BTxIPHc8fz//f//AAAAAAAg6QDpBukM6RLpR+ll6Xfpuem76b7pxunL6d/qC+oN6lLqXOpf6mLqcep38A3wFPEg8dzx/P/9//8AAf/jFwQXABb7FvcWwxamFpYWVRZUFlIWSxZHFjQWCRYIFcQVuxW5FbcVrBWnEBcQEQ8GDksOLAADAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAB//8ADwABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAIAADc5AQAAAAAEAEEAAQO/A38ABQALABEAFwAAATMVIREzAxEhFSMVATUzESE1ETUhESM1Av/A/sJ+fgE+wP4Cfv7CAT5+Ar9+AT78ggE+fsACvsD+wn7+An7+wsAAAAAABABBAAEDvwN/AAUACwARABcAAAEhESM1IxM1MxEhNQERIRUjFREVMxUhEQKBAT5+wMB+/sL9wAE+wMD+wgN//sLA/X7A/sJ+AcIBPn7A/v7AfgE+AAAAAAIAAP/ABAADwAAEABMAAAE3AScBAy4BJxM3ASMBAyUBNQEHAYCAAcBA/kCfFzsyY4ABgMD+gMACgAGA/oBOAUBAAcBA/kD+nTI7FwERTgGA/oD9gMABgMD+gIAAAgAA/8AEAAOAACkALQAAAREjNTQmIyEiBh0BFBYzITI2PQEzESEVIyIGFREUFjsBMjY1ETQmKwE1ASE1IQQAwCYa/UAaJiYaAsAaJoD9wCANExMNgA0TEw0gAUD9QALAAYABgEAaJiYawBomJhpA/wCAEw3+wA0TEw0BQA0TQAGAQAAABAAAAAAEAAOAABAAIQAtADQAAAE4ATEROAExITgBMRE4ATEhNSEiBhURFBYzITI2NRE0JiMHFAYjIiY1NDYzMhYTITUTATM3A8D8gAOA/IAaJiYaA4AaJiYagDgoKDg4KCg4QP0A4AEAQOADQP0AAwBAJhr9ABomJhoDABom4Cg4OCgoODj9uIABgP7AwAAAAgAAAEAEAANAADgAPAAAASYnLgEnJiMiBw4BBwYHBgcOAQcGFRQXHgEXFhcWFx4BFxYzMjc+ATc2NzY3PgE3NjU0Jy4BJyYnARENAQPVNjg5djw9Pz89PHY5ODYLBwgLAwMDAwsIBws2ODl2PD0/Pz08djk4NgsHCAsDAwMDCwgHC/2rAUD+wAMgCAYGCAICAgIIBgYIKSoqWS0uLy8uLVkqKikIBgYIAgICAggGBggpKipZLS4vLy4tWSoqKf3gAYDAwAAAAAACAMD/wANAA8AAGwAnAAABIgcOAQcGFRQXHgEXFjEwNz4BNzY1NCcuAScmAyImNTQ2MzIWFRQGAgBCOzpXGRkyMngyMjIyeDIyGRlXOjtCUHBwUFBwcAPAGRlXOjtCeH19zEFBQUHMfX14Qjs6VxkZ/gBwUFBwcFBQcAAAAQAAAAAEAAOAACsAAAEiBw4BBwYHJxEhJz4BMzIXHgEXFhUUBw4BBwYHFzY3PgE3NjU0Jy4BJyYjAgA1MjJcKSkjlgGAkDWLUFBFRmkeHgkJIhgYHlUoICAtDAwoKIteXWoDgAoLJxscI5b+gJA0PB4eaUZFUCsoKUkgIRpgIysrYjY2OWpdXosoKAABAAAAAAQAA4AAKgAAExQXHgEXFhc3JicuAScmNTQ3PgE3NjMyFhcHIREHJicuAScmIyIHDgEHBgAMDC0gIChVHhgYIgkJHh5pRkVQUIs1kAGAliMpKVwyMjVqXV6LKCgBgDk2NmIrKyNgGiEgSSkoK1BFRmkeHjw0kAGAliMcGycLCigoi15dAAAAAAIAAABABAEDAAAmAE0AABMyFx4BFxYVFAcOAQcGIyInLgEnJjUnNDc+ATc2MxUiBgcOAQc+ASEyFx4BFxYVFAcOAQcGIyInLgEnJjUnNDc+ATc2MxUiBgcOAQc+AeEuKSk9ERISET0pKS4uKSk9ERIBIyN6UlFdQHUtCRAHCBICSS4pKT0REhIRPSkpLi4pKT0REgEjI3pSUV1AdS0JEAcIEgIAEhE9KSkuLikpPRESEhE9KSkuIF1RUnojI4AwLggTCgIBEhE9KSkuLikpPRESEhE9KSkuIF1RUnojI4AwLggTCgIBAAAGAED/wAQAA8AAAwAHAAsAEQAdACkAACUhFSERIRUhESEVIScRIzUjNRMVMxUjNTc1IzUzFRURIzUzNSM1MzUjNQGAAoD9gAKA/YACgP2AwEBAQIDAgIDAwICAgICAgAIAgAIAgMD/AMBA/fIyQJI8MkCS7v7AQEBAQEAABgAA/8AEAAPAAAMABwALABcAIwAvAAABIRUhESEVIREhFSEBNDYzMhYVFAYjIiYRNDYzMhYVFAYjIiYRNDYzMhYVFAYjIiYBgAKA/YACgP2AAoD9gP6ASzU1S0s1NUtLNTVLSzU1S0s1NUtLNTVLA4CA/wCA/wCAA0A1S0s1NUtL/rU1S0s1NUtL/rU1S0s1NUtLAAUAAABABWADAAADAAcACwAOABEAABMhFSEVIRUhFSEVIQEXNzUnBwADgPyAA4D8gAOA/IAD4MDAwMADAMBAwEDAAUDAwEDAwAAAAAADAAAAAAQAA6AAAwANABQAADchFSElFSE1EyEVITUhJQkBIxEjEQAEAPwABAD8AIABAAEAAQD9YAEgASDggEBAwEBAAQCAgMABIP7g/wABAAAAAAACAB7/zAPiA7QAMwBkAAABIiYnJicmNDc2PwE+ATMyFhcWFxYUBwYPAQYiJyY0PwE2NCcuASMiBg8BBhQXFhQHDgEjAyImJyYnJjQ3Nj8BNjIXFhQPAQYUFx4BMzI2PwE2NCcmNDc2MhcWFxYUBwYPAQ4BIwG4ChMIIxISEhIjwCNZMTFZIyMSEhISI1gPLA8PD1gpKRQzHBwzFMApKQ8PCBMKuDFZIyMSEhISI1gPLA8PD1gpKRQzHBwzFMApKQ8PDysQIxISEhIjwCNZMQFECAckLS1eLS0kwCIlJSIkLS1eLS0kVxAQDysPWCl0KRQVFRTAKXQpDysQBwj+iCUiJC0tXi0tJFcQEA8rD1gpdCkUFRUUwCl0KQ8rEA8PJC0tXi0tJMAiJQAAAAAFAAD/wAQAA8AAGwA3AFMAXwBrAAAFMjc+ATc2NTQnLgEnJiMiBw4BBwYVFBceARcWEzIXHgEXFhUUBw4BBwYjIicuAScmNTQ3PgE3NhMyNz4BNzY3BgcOAQcGIyInLgEnJicWFx4BFxYnNDYzMhYVFAYjIiYlNDYzMhYVFAYjIiYCAGpdXosoKCgoi15dampdXosoKCgoi15dalZMTHEgISEgcUxMVlZMTHEgISEgcUxMVisrKlEmJiMFHBtWODc/Pzc4VhscBSMmJlEqK9UlGxslJRsbJQGAJRsbJSUbGyVAKCiLXl1qal1eiygoKCiLXl1qal1eiygoA6AhIHFMTFZWTExxICEhIHFMTFZWTExxICH+CQYGFRAQFEM6OlYYGRkYVjo6QxQQEBUGBvcoODgoKDg4KCg4OCgoODgAAAEAAAFABAACQAAPAAATFRQWMyEyNj0BNCYjISIGABMNA8ANExMN/EANEwIgwA0TEw3ADRMTAAAAAwAA/8AEAAPAABsANwBDAAABIgcOAQcGFRQXHgEXFjMyNz4BNzY1NCcuAScmAyInLgEnJjU0Nz4BNzYzMhceARcWFRQHDgEHBhMHJwcXBxc3FzcnNwIAal1eiygoKCiLXl1qal1eiygoKCiLXl1qVkxMcSAhISBxTExWVkxMcSAhISBxTExKoKBgoKBgoKBgoKADwCgoi15dampdXosoKCgoi15dampdXosoKPxgISBxTExWVkxMcSAhISBxTExWVkxMcSAhAqCgoGCgoGCgoGCgoAACAAD/wAQAA8AADwAVAAABISIGFREUFjMhMjY1ETQmASc3FwEXA4D9ADVLSzUDADVLS/4L7VqTATNaA8BLNf0ANUtLNQMANUv85e5akgEyWgAAAAABAGX/wAObA8AAKQAAASImIyIHDgEHBhUUFjMuATU0NjcwBwYCBwYHFSETMzcjNx4BMzI2Nw4BAyBEaEZxU1RtGhtJSAYNZUoQEEs8PFkBPWzGLNc0LVUmLlAYHT0DsBAeHWE+P0FNOwsmN5lvA31+/sWPkCMZAgCA9gkPN2sJBwAAAAACAAAAAAQAA4AACQAXAAAlMwcnMxEjNxcjJREnIxEzFSE1MxEjBxEDgICgoICAoKCA/wBAwID+gIDAQMDAwAIAwMDA/wCA/UBAQALAgAEAAAMAwAAAA0ADgAAWAB8AKAAAAT4BNTQnLgEnJiMhESEyNz4BNzY1NCYBMzIWFRQGKwETIxEzMhYVFAYCxBwgFBRGLi81/sABgDUvLkYUFET+hGUqPDwpZp+fnyw+PgHbIlQvNS8uRhQU/IAUFEYuLzVGdAFGSzU1S/6AAQBLNTVLAAAAAAIAwAAAA0ADgAAfACMAAAEzERQHDgEHBiMiJy4BJyY1ETMRFBYXHgEzMjY3PgE1ASEVIQLAgBkZVzo7QkI7OlcZGYAbGBxJKChJHBgb/gACgP2AA4D+YDw0NU4WFxcWTjU0PAGg/mAeOBcYGxsYFzge/qCAAAAAAAEAgAAAA4ADgAALAAABFSMBMxUhNTMBIzUDgID+wID+QIABQIADgED9AEBAAwBAAAEAAAAABAADgAA9AAABFSMeARUUBgcOASMiJicuATUzFBYzMjY1NCYjITUhLgEnLgE1NDY3PgEzMhYXHgEVIzQmIyIGFRQWMzIWFwQA6xUWNTAscT4+cSwwNYByTk5yck7+AAEsAgQBMDU1MCxxPj5xLDA1gHJOTnJyTjtuKwHAQB1BIjViJCEkJCEkYjU0TEw0NExAAQMBJGI1NWIkISQkISRiNTRMTDQ0TCEfAAAACgAAAAAEAAOAAAMABwALAA8AEwAXABsAHwAjACcAABMRIREBNSEVHQEhNQEVITUjFSE1ESEVISUhFSERNSEVASEVISE1IRUABAD9gAEA/wABAP8AQP8AAQD/AAKAAQD/AAEA/IABAP8AAoABAAOA/IADgP3AwMBAwMACAMDAwMD/AMDAwAEAwMD+wMDAwAAABQAAAAAEAAOAAAMABwALAA8AEwAAEyEVIRUhFSERIRUhESEVIREhFSEABAD8AAKA/YACgP2ABAD8AAQA/AADgIBAgP8AgAFAgP8AgAAAAAAFAAAAAAQAA4AAAwAHAAsADwATAAATIRUhFyEVIREhFSEDIRUhESEVIQAEAPwAwAKA/YACgP2AwAQA/AAEAPwAA4CAQID/AIABQID/AIAAAAUAAAAABAADgAADAAcACwAPABMAABMhFSEFIRUhESEVIQEhFSERIRUhAAQA/AABgAKA/YACgP2A/oAEAPwABAD8AAOAgECA/wCAAUCA/wCAAAAAAAUAAAAABAADgAADAAcACwAPABMAABMhFSEVIRUhFSEVIRUhFSEVIRUhAAQA/AAEAPwABAD8AAQA/AAEAPwAA4CAQIBAgECAQIAAAAAGAAAAAAQAA4AAAwAHAAsADwATABYAABMhFSEFIRUhFSEVIRUhFSEFIRUhGQEFAAQA/AABgAKA/YACgP2AAoD9gP6ABAD8AAEAA4CAQIBAgECAQIABAAGAwAAAAAYAAAAABAADgAADAAcACwAPABMAFgAAEyEVIQUhFSEVIRUhFSEVIQUhFSEBESUABAD8AAGAAoD9gAKA/YACgP2A/oAEAPwAAQD/AAOAgECAQIBAgECAAoD+gMAAAQA/AD8C5gLmACwAACUUDwEGIyIvAQcGIyIvASY1ND8BJyY1ND8BNjMyHwE3NjMyHwEWFRQPARcWFQLmEE4QFxcQqKgQFxYQThAQqKgQEE4QFhcQqKgQFxcQThAQqKgQwxYQThAQqKgQEE4QFhcQqKgQFxcQThAQqKgQEE4QFxcQqKgQFwAAAAYAAAAAAyUDbgAUACgAPABNAFUAggAAAREUBwYrASInJjURNDc2OwEyFxYVMxEUBwYrASInJjURNDc2OwEyFxYXERQHBisBIicmNRE0NzY7ATIXFhMRIREUFxYXFjMhMjc2NzY1ASEnJicjBgcFFRQHBisBERQHBiMhIicmNREjIicmPQE0NzY7ATc2NzY7ATIXFh8BMzIXFhUBJQYFCCQIBQYGBQgkCAUGkgUFCCUIBQUFBQglCAUFkgUFCCUIBQUFBQglCAUFSf4ABAQFBAIB2wIEBAQE/oABABsEBrUGBAH3BgUINxobJv4lJhsbNwgFBQUFCLEoCBcWF7cXFhYJKLAIBQYCEv63CAUFBQUIAUkIBQYGBQj+twgFBQUFCAFJCAUGBgUI/rcIBQUFBQgBSQgFBgYF/lsCHf3jDQsKBQUFBQoLDQJmQwUCAgVVJAgGBf3jMCIjISIvAiAFBggkCAUFYBUPDw8PFWAFBQgAAgAHAEkDtwKvABoALgAACQEGIyIvASY1ND8BJyY1ND8BNjMyFwEWFRQHARUUBwYjISInJj0BNDc2MyEyFxYBTv72BgcIBR0GBuHhBgYdBQgHBgEKBgYCaQUFCP3bCAUFBQUIAiUIBQUBhf72BgYcBggHBuDhBgcHBh0FBf71BQgHBv77JQgFBQUFCCUIBQUFBQAAAAEAIwAAA90DbgCzAAAlIicmIyIHBiMiJyY1NDc2NzY3Njc2PQE0JyYjISIHBh0BFBcWFxYzFhcWFRQHBiMiJyYjIgcGIyInJjU0NzY3Njc2NzY9ARE0NTQ1NCc0JyYnJicmJyYnJiMiJyY1NDc2MzIXFjMyNzYzMhcWFRQHBiMGBwYHBh0BFBcWMyEyNzY9ATQnJicmJyY1NDc2MzIXFjMyNzYzMhcWFRQHBgciBwYHBhURFBcWFxYXMhcWFRQHBiMDwRkzMhoZMjMZDQgHCQoNDBEQChIBBxX+fhYHARUJEhMODgwLBwcOGzU1GhgxMRgNBwcJCQsMEA8JEgECAQIDBAQFCBIRDQ0KCwcHDho1NRoYMDEYDgcHCQoMDRAQCBQBBw8BkA4HARQKFxcPDgcHDhkzMhkZMTEZDgcHCgoNDRARCBQUCRERDg0KCwcHDgACAgICDAsPEQkJAQEDAwUMROAMBQMDBQzUUQ0GAQIBCAgSDwwNAgICAgwMDhEICQECAwMFDUUhAdACDQ0ICA4OCgoLCwcHAwYBAQgIEg8MDQICAgINDA8RCAgBAgEGDFC2DAcBAQcMtlAMBgEBBgcWDwwNAgICAg0MDxEICAEBAgYNT/3mRAwGAgIBCQgRDwwNAAACAAD/twP/A7cAEwA5AAABMhcWFRQHAgcGIyInJjU0NwE2MwEWFxYfARYHBiMiJyYnJicmNRYXFhcWFxYzMjc2NzY3Njc2NzY3A5soHh4avkw3RUg0NDUBbSEp/fgXJicvAQJMTHtHNjYhIRARBBMUEBASEQkXCA8SExUVHR0eHikDtxsaKCQz/plGNDU0SUkwAUsf/bErHx8NKHpNTBobLi86OkQDDw4LCwoKFiUbGhERCgsEBAIAAQAAAAAAAIWwaoFfDzz1AAsEAAAAAADbteOZAAAAANu145kAAP+3BWADwAAAAAgAAgAAAAAAAAABAAADwP/AAAAFgAAA//8FYAABAAAAAAAAAAAAAAAAAAAAKQQAAAAAAAAAAAAAAAIAAAAEAABBBAAAQQQAAAAEAAAABAAAAAQAAAAEAADABAAAAAQAAAAEAAAABAAAQAQAAAAFgAAABAAAAAQAAB4EAAAABAAAAAQAAAAEAAAABAAAZQQAAAAEAADABAAAwAQAAIAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAMlAD8DJQAAA74ABwQAACMD/wAAAAAAAAAKABQAHgBKAHYApADmAS4BkgHQAhYCXALQAw4DWAN+A6gEPgTeBPoFZAWOBdAF+AY6BnYGjgbmBy4HVgd+B6gHzgf8CCoIbgkmCXAKYgq+AAEAAAApALQACgAAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAOAK4AAQAAAAAAAQAHAAAAAQAAAAAAAgAHAGAAAQAAAAAAAwAHADYAAQAAAAAABAAHAHUAAQAAAAAABQALABUAAQAAAAAABgAHAEsAAQAAAAAACgAaAIoAAwABBAkAAQAOAAcAAwABBAkAAgAOAGcAAwABBAkAAwAOAD0AAwABBAkABAAOAHwAAwABBAkABQAWACAAAwABBAkABgAOAFIAAwABBAkACgA0AKRpY29tb29uAGkAYwBvAG0AbwBvAG5WZXJzaW9uIDEuMABWAGUAcgBzAGkAbwBuACAAMQAuADBpY29tb29uAGkAYwBvAG0AbwBvAG5pY29tb29uAGkAYwBvAG0AbwBvAG5SZWd1bGFyAFIAZQBnAHUAbABhAHJpY29tb29uAGkAYwBvAG0AbwBvAG5Gb250IGdlbmVyYXRlZCBieSBJY29Nb29uLgBGAG8AbgB0ACAAZwBlAG4AZQByAGEAdABlAGQAIABiAHkAIABJAGMAbwBNAG8AbwBuAC4AAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},function(e,t,n){var r=n(21),i=n(152);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var a={insert:"head",singleton:!1};r(i,a);e.exports=i.locals||{}},function(e,t,n){(t=n(22)(!1)).push([e.i,'.w-e-toolbar {\n display: flex;\n padding: 0 6px;\n flex-wrap: wrap;\n position: relative;\n /* 单个菜单 */\n}\n.w-e-toolbar .w-e-menu {\n position: relative;\n display: flex;\n width: 40px;\n height: 40px;\n align-items: center;\n justify-content: center;\n text-align: center;\n cursor: pointer;\n}\n.w-e-toolbar .w-e-menu i {\n color: #999;\n}\n.w-e-toolbar .w-e-menu:hover {\n background-color: #F6F6F6;\n}\n.w-e-toolbar .w-e-menu:hover i {\n color: #333;\n}\n.w-e-toolbar .w-e-active i {\n color: #1e88e5;\n}\n.w-e-toolbar .w-e-active:hover i {\n color: #1e88e5;\n}\n.w-e-menu-tooltip {\n position: absolute;\n display: flex;\n color: #f1f1f1;\n background-color: rgba(0, 0, 0, 0.75);\n box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.15);\n border-radius: 4px;\n padding: 4px 5px 6px;\n justify-content: center;\n align-items: center;\n}\n.w-e-menu-tooltip-up::after {\n content: "";\n position: absolute;\n top: 100%;\n left: 50%;\n margin-left: -5px;\n border: 5px solid rgba(0, 0, 0, 0);\n border-top-color: rgba(0, 0, 0, 0.73);\n}\n.w-e-menu-tooltip-down::after {\n content: "";\n position: absolute;\n bottom: 100%;\n left: 50%;\n margin-left: -5px;\n border: 5px solid rgba(0, 0, 0, 0);\n border-bottom-color: rgba(0, 0, 0, 0.73);\n}\n.w-e-menu-tooltip-item-wrapper {\n font-size: 14px;\n margin: 0 5px;\n}\n',""]),e.exports=t},function(e,t,n){var r=n(21),i=n(154);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var a={insert:"head",singleton:!1};r(i,a);e.exports=i.locals||{}},function(e,t,n){(t=n(22)(!1)).push([e.i,'.w-e-text-container {\n position: relative;\n height: 100%;\n}\n.w-e-text-container .w-e-progress {\n position: absolute;\n background-color: #1e88e5;\n top: 0;\n left: 0;\n height: 1px;\n}\n.w-e-text-container .placeholder {\n color: #D4D4D4;\n position: absolute;\n font-size: 11pt;\n line-height: 22px;\n left: 10px;\n top: 10px;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n z-index: -1;\n}\n.w-e-text {\n padding: 0 10px;\n overflow-y: auto;\n}\n.w-e-text p,\n.w-e-text h1,\n.w-e-text h2,\n.w-e-text h3,\n.w-e-text h4,\n.w-e-text h5,\n.w-e-text table,\n.w-e-text pre {\n margin: 10px 0;\n line-height: 1.5;\n}\n.w-e-text ul,\n.w-e-text ol {\n margin: 10px 0 10px 20px;\n}\n.w-e-text blockquote {\n display: block;\n border-left: 8px solid #d0e5f2;\n padding: 5px 10px;\n margin: 10px 0;\n line-height: 1.4;\n font-size: 100%;\n background-color: #f1f1f1;\n}\n.w-e-text code {\n display: inline-block;\n background-color: #f1f1f1;\n border-radius: 3px;\n padding: 3px 5px;\n margin: 0 3px;\n}\n.w-e-text pre code {\n display: block;\n}\n.w-e-text table {\n border-top: 1px solid #ccc;\n border-left: 1px solid #ccc;\n}\n.w-e-text table td,\n.w-e-text table th {\n border-bottom: 1px solid #ccc;\n border-right: 1px solid #ccc;\n padding: 3px 5px;\n min-height: 30px;\n}\n.w-e-text table th {\n border-bottom: 2px solid #ccc;\n text-align: center;\n background-color: #f1f1f1;\n}\n.w-e-text:focus {\n outline: none;\n}\n.w-e-text img {\n cursor: pointer;\n}\n.w-e-text img:hover {\n box-shadow: 0 0 5px #333;\n}\n.w-e-text .w-e-todo {\n margin: 0 0 0 20px;\n}\n.w-e-text .w-e-todo li {\n list-style: none;\n font-size: 1em;\n}\n.w-e-text .w-e-todo li span:nth-child(1) {\n position: relative;\n left: -18px;\n}\n.w-e-text .w-e-todo li span:nth-child(1) input {\n position: absolute;\n margin-right: 3px;\n}\n.w-e-text .w-e-todo li span:nth-child(1) input[type=checkbox] {\n top: 50%;\n margin-top: -6px;\n}\n.w-e-tooltip {\n position: absolute;\n display: flex;\n color: #f1f1f1;\n background-color: rgba(0, 0, 0, 0.75);\n box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.15);\n border-radius: 4px;\n padding: 4px 5px 6px;\n justify-content: center;\n align-items: center;\n}\n.w-e-tooltip-up::after {\n content: "";\n position: absolute;\n top: 100%;\n left: 50%;\n margin-left: -5px;\n border: 5px solid rgba(0, 0, 0, 0);\n border-top-color: rgba(0, 0, 0, 0.73);\n}\n.w-e-tooltip-down::after {\n content: "";\n position: absolute;\n bottom: 100%;\n left: 50%;\n margin-left: -5px;\n border: 5px solid rgba(0, 0, 0, 0);\n border-bottom-color: rgba(0, 0, 0, 0.73);\n}\n.w-e-tooltip-item-wrapper {\n cursor: pointer;\n font-size: 14px;\n margin: 0 5px;\n}\n.w-e-tooltip-item-wrapper:hover {\n color: #ccc;\n text-decoration: underline;\n}\n',""]),e.exports=t},function(e,t,n){var r=n(21),i=n(156);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var a={insert:"head",singleton:!1};r(i,a);e.exports=i.locals||{}},function(e,t,n){(t=n(22)(!1)).push([e.i,'.w-e-menu .w-e-panel-container {\n position: absolute;\n top: 0;\n left: 50%;\n border: 1px solid #ccc;\n border-top: 0;\n box-shadow: 1px 1px 2px #ccc;\n color: #333;\n background-color: #fff;\n text-align: left;\n /* 为 emotion panel 定制的样式 */\n /* 上传图片、上传视频的 panel 定制样式 */\n}\n.w-e-menu .w-e-panel-container .w-e-panel-close {\n position: absolute;\n right: 0;\n top: 0;\n padding: 5px;\n margin: 2px 5px 0 0;\n cursor: pointer;\n color: #999;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-close:hover {\n color: #333;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-title {\n list-style: none;\n display: flex;\n font-size: 14px;\n margin: 2px 10px 0 10px;\n border-bottom: 1px solid #f1f1f1;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-title .w-e-item {\n padding: 3px 5px;\n color: #999;\n cursor: pointer;\n margin: 0 3px;\n position: relative;\n top: 1px;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-title .w-e-active {\n color: #333;\n border-bottom: 1px solid #333;\n cursor: default;\n font-weight: 700;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content {\n padding: 10px 15px 10px 15px;\n font-size: 16px;\n /* 输入框的样式 */\n /* 按钮的样式 */\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content input:focus,\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content textarea:focus,\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content button:focus {\n outline: none;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content textarea {\n width: 100%;\n border: 1px solid #ccc;\n padding: 5px;\n margin-top: 10px;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content textarea:focus {\n border-color: #1e88e5;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content input[type=text] {\n border: none;\n border-bottom: 1px solid #ccc;\n font-size: 14px;\n height: 20px;\n color: #333;\n text-align: left;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content input[type=text].small {\n width: 30px;\n text-align: center;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content input[type=text].block {\n display: block;\n width: 100%;\n margin: 10px 0;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content input[type=text]:focus {\n border-bottom: 2px solid #1e88e5;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button {\n font-size: 14px;\n color: #1e88e5;\n border: none;\n padding: 5px 10px;\n background-color: #fff;\n cursor: pointer;\n border-radius: 3px;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.left {\n float: left;\n margin-right: 10px;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.right {\n float: right;\n margin-left: 10px;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.gray {\n color: #999;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.red {\n color: #c24f4a;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button:hover {\n background-color: #f1f1f1;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container:after {\n content: "";\n display: table;\n clear: both;\n}\n.w-e-menu .w-e-panel-container .w-e-emoticon-container .w-e-item {\n cursor: pointer;\n font-size: 18px;\n padding: 0 3px;\n display: inline-block;\n}\n.w-e-menu .w-e-panel-container .w-e-up-img-container,\n.w-e-menu .w-e-panel-container .w-e-up-video-container {\n text-align: center;\n}\n.w-e-menu .w-e-panel-container .w-e-up-img-container .w-e-up-btn,\n.w-e-menu .w-e-panel-container .w-e-up-video-container .w-e-up-btn {\n display: inline-block;\n color: #999;\n cursor: pointer;\n font-size: 60px;\n line-height: 1;\n}\n.w-e-menu .w-e-panel-container .w-e-up-img-container .w-e-up-btn:hover,\n.w-e-menu .w-e-panel-container .w-e-up-video-container .w-e-up-btn:hover {\n color: #333;\n}\n',""]),e.exports=t},function(e,t,n){var r=n(21),i=n(158);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var a={insert:"head",singleton:!1};r(i,a);e.exports=i.locals||{}},function(e,t,n){(t=n(22)(!1)).push([e.i,".w-e-toolbar .w-e-droplist {\n position: absolute;\n left: 0;\n top: 0;\n background-color: #fff;\n border: 1px solid #f1f1f1;\n border-right-color: #ccc;\n border-bottom-color: #ccc;\n}\n.w-e-toolbar .w-e-droplist .w-e-dp-title {\n text-align: center;\n color: #999;\n line-height: 2;\n border-bottom: 1px solid #f1f1f1;\n font-size: 13px;\n}\n.w-e-toolbar .w-e-droplist ul.w-e-list {\n list-style: none;\n line-height: 1;\n}\n.w-e-toolbar .w-e-droplist ul.w-e-list li.w-e-item {\n color: #333;\n padding: 5px 0;\n}\n.w-e-toolbar .w-e-droplist ul.w-e-list li.w-e-item:hover {\n background-color: #f1f1f1;\n}\n.w-e-toolbar .w-e-droplist ul.w-e-block {\n list-style: none;\n text-align: left;\n padding: 5px;\n}\n.w-e-toolbar .w-e-droplist ul.w-e-block li.w-e-item {\n display: inline-block;\n padding: 3px 5px;\n}\n.w-e-toolbar .w-e-droplist ul.w-e-block li.w-e-item:hover {\n background-color: #f1f1f1;\n}\n",""]),e.exports=t},function(e,t,n){"use strict";var r=n(0)(n(160));Element.prototype.matches||(Element.prototype.matches=function(e){for(var t=this.ownerDocument.querySelectorAll(e),n=t.length;n>=0&&t.item(n)!==this;n--);return n>-1}),r.default||(window.Promise=r.default)},function(e,t,n){e.exports=n(161)},function(e,t,n){var r=n(162);e.exports=r},function(e,t,n){n(163),n(69),n(168),n(174),n(175),n(176),n(51),n(52);var r=n(10);e.exports=r.Promise},function(e,t,n){"use strict";var r=n(5),i=n(78),a=n(102),o=n(62),s=n(17),l=n(37),c=n(40),u=function(e,t){var n=this;if(!(n instanceof u))return new u(e,t);a&&(n=a(new Error(void 0),i(n))),void 0!==t&&s(n,"message",String(t));var r=[];return c(e,r.push,{that:r}),s(n,"errors",r),n};u.prototype=o(Error.prototype,{constructor:l(5,u),message:l(5,""),name:l(5,"AggregateError")}),r({global:!0},{AggregateError:u})},function(e,t,n){var r=n(8),i=n(17);e.exports=function(e,t){try{i(r,e,t)}catch(n){r[e]=t}return t}},function(e,t,n){var r=n(12);e.exports=!r(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},function(e,t,n){var r=n(13);e.exports=function(e){if(!r(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},function(e,t,n){var r=n(15),i=n(18),a=n(20),o=n(63);e.exports=r?Object.defineProperties:function(e,t){a(e);for(var n,r=o(t),s=r.length,l=0;s>l;)i.f(e,n=r[l++],t[n]);return e}},function(e,t,n){"use strict";var r,i,a,o,s=n(5),l=n(39),c=n(8),u=n(28),h=n(109),d=n(50),f=n(110),p=n(42),A=n(111),g=n(13),m=n(32),v=n(86),y=n(112),b=n(40),w=n(113),x=n(114),_=n(115).set,C=n(170),S=n(117),k=n(172),B=n(70),E=n(87),T=n(43),I=n(101),M=n(9),F=n(65),D=n(66),P=M("species"),O="Promise",L=T.get,R=T.set,N=T.getterFor(O),U=h,H=c.TypeError,j=c.document,Q=c.process,z=u("fetch"),V=B.f,G=V,$=!!(j&&j.createEvent&&c.dispatchEvent),q="function"==typeof PromiseRejectionEvent,W=I(O,function(){if(!(y(U)!==String(U))){if(66===D)return!0;if(!F&&!q)return!0}if(l&&!U.prototype.finally)return!0;if(D>=51&&/native code/.test(U))return!1;var e=U.resolve(1),t=function(e){e(function(){},function(){})};return(e.constructor={})[P]=t,!(e.then(function(){})instanceof t)}),K=W||!w(function(e){U.all(e).catch(function(){})}),Y=function(e){var t;return!(!g(e)||"function"!=typeof(t=e.then))&&t},X=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;C(function(){for(var r=e.value,i=1==e.state,a=0;n.length>a;){var o,s,l,c=n[a++],u=i?c.ok:c.fail,h=c.resolve,d=c.reject,f=c.domain;try{u?(i||(2===e.rejection&&te(e),e.rejection=1),!0===u?o=r:(f&&f.enter(),o=u(r),f&&(f.exit(),l=!0)),o===c.promise?d(H("Promise-chain cycle")):(s=Y(o))?s.call(o,h,d):h(o)):d(r)}catch(e){f&&!l&&f.exit(),d(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&Z(e)})}},J=function(e,t,n){var r,i;$?((r=j.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),c.dispatchEvent(r)):r={promise:t,reason:n},!q&&(i=c["on"+e])?i(r):"unhandledrejection"===e&&k("Unhandled promise rejection",n)},Z=function(e){_.call(c,function(){var t,n=e.facade,r=e.value;if(ee(e)&&(t=E(function(){F?Q.emit("unhandledRejection",r,n):J("unhandledrejection",n,r)}),e.rejection=F||ee(e)?2:1,t.error))throw t.value})},ee=function(e){return 1!==e.rejection&&!e.parent},te=function(e){_.call(c,function(){var t=e.facade;F?Q.emit("rejectionHandled",t):J("rejectionhandled",t,e.value)})},ne=function(e,t,n){return function(r){e(t,r,n)}},re=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,X(e,!0))},ie=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw H("Promise can't be resolved itself");var r=Y(t);r?C(function(){var n={done:!1};try{r.call(t,ne(ie,n,e),ne(re,n,e))}catch(t){re(n,t,e)}}):(e.value=t,e.state=1,X(e,!1))}catch(t){re({done:!1},t,e)}}};W&&(U=function(e){v(this,U,O),m(e),r.call(this);var t=L(this);try{e(ne(ie,t),ne(re,t))}catch(e){re(t,e)}},(r=function(e){R(this,{type:O,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=f(U.prototype,{then:function(e,t){var n=N(this),r=V(x(this,U));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=F?Q.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&X(n,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),i=function(){var e=new r,t=L(e);this.promise=e,this.resolve=ne(ie,t),this.reject=ne(re,t)},B.f=V=function(e){return e===U||e===a?new i(e):G(e)},l||"function"!=typeof h||(o=h.prototype.then,d(h.prototype,"then",function(e,t){var n=this;return new U(function(e,t){o.call(n,e,t)}).then(e,t)},{unsafe:!0}),"function"==typeof z&&s({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return S(U,z.apply(c,arguments))}}))),s({global:!0,wrap:!0,forced:W},{Promise:U}),p(U,O,!1,!0),A(O),a=u(O),s({target:O,stat:!0,forced:W},{reject:function(e){var t=V(this);return t.reject.call(void 0,e),t.promise}}),s({target:O,stat:!0,forced:l||W},{resolve:function(e){return S(l&&this===a?U:this,e)}}),s({target:O,stat:!0,forced:K},{all:function(e){var t=this,n=V(t),r=n.resolve,i=n.reject,a=E(function(){var n=m(t.resolve),a=[],o=0,s=1;b(e,function(e){var l=o++,c=!1;a.push(void 0),s++,n.call(t,e).then(function(e){c||(c=!0,a[l]=e,--s||r(a))},i)}),--s||r(a)});return a.error&&i(a.value),n.promise},race:function(e){var t=this,n=V(t),r=n.reject,i=E(function(){var i=m(t.resolve);b(e,function(e){i.call(t,e).then(n.resolve,r)})});return i.error&&r(i.value),n.promise}})},function(e,t,n){"use strict";var r=n(85),i=n(68);e.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},function(e,t,n){var r,i,a,o,s,l,c,u,h=n(8),d=n(75).f,f=n(115).set,p=n(116),A=n(171),g=n(65),m=h.MutationObserver||h.WebKitMutationObserver,v=h.document,y=h.process,b=h.Promise,w=d(h,"queueMicrotask"),x=w&&w.value;x||(r=function(){var e,t;for(g&&(e=y.domain)&&e.exit();i;){t=i.fn,i=i.next;try{t()}catch(e){throw i?o():a=void 0,e}}a=void 0,e&&e.enter()},p||g||A||!m||!v?b&&b.resolve?(c=b.resolve(void 0),u=c.then,o=function(){u.call(c,r)}):o=g?function(){y.nextTick(r)}:function(){f.call(h,r)}:(s=!0,l=v.createTextNode(""),new m(r).observe(l,{characterData:!0}),o=function(){l.data=s=!s})),e.exports=x||function(e){var t={fn:e,next:void 0};a&&(a.next=t),i||(i=t,o()),a=t}},function(e,t,n){var r=n(67);e.exports=/web0s(?!.*chrome)/i.test(r)},function(e,t,n){var r=n(8);e.exports=function(e,t){var n=r.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}},function(e,t,n){var r=n(8),i=n(112),a=r.WeakMap;e.exports="function"==typeof a&&/native code/.test(i(a))},function(e,t,n){"use strict";var r=n(5),i=n(32),a=n(70),o=n(87),s=n(40);r({target:"Promise",stat:!0},{allSettled:function(e){var t=this,n=a.f(t),r=n.resolve,l=n.reject,c=o(function(){var n=i(t.resolve),a=[],o=0,l=1;s(e,function(e){var i=o++,s=!1;a.push(void 0),l++,n.call(t,e).then(function(e){s||(s=!0,a[i]={status:"fulfilled",value:e},--l||r(a))},function(e){s||(s=!0,a[i]={status:"rejected",reason:e},--l||r(a))})}),--l||r(a)});return c.error&&l(c.value),n.promise}})},function(e,t,n){"use strict";var r=n(5),i=n(32),a=n(28),o=n(70),s=n(87),l=n(40);r({target:"Promise",stat:!0},{any:function(e){var t=this,n=o.f(t),r=n.resolve,c=n.reject,u=s(function(){var n=i(t.resolve),o=[],s=0,u=1,h=!1;l(e,function(e){var i=s++,l=!1;o.push(void 0),u++,n.call(t,e).then(function(e){l||h||(h=!0,r(e))},function(e){l||h||(l=!0,o[i]=e,--u||c(new(a("AggregateError"))(o,"No one promise resolved")))})}),--u||c(new(a("AggregateError"))(o,"No one promise resolved"))});return u.error&&c(u.value),n.promise}})},function(e,t,n){"use strict";var r=n(5),i=n(39),a=n(109),o=n(12),s=n(28),l=n(114),c=n(117),u=n(50);r({target:"Promise",proto:!0,real:!0,forced:!!a&&o(function(){a.prototype.finally.call({then:function(){}},function(){})})},{finally:function(e){var t=l(this,s("Promise")),n="function"==typeof e;return this.then(n?function(n){return c(t,e()).then(function(){return n})}:e,n?function(n){return c(t,e()).then(function(){throw n})}:e)}}),i||"function"!=typeof a||a.prototype.finally||u(a.prototype,"finally",s("Promise").prototype.finally)},function(e,t,n){var r=n(64),i=n(48),a=function(e){return function(t,n){var a,o,s=String(i(t)),l=r(n),c=s.length;return l<0||l>=c?e?"":void 0:(a=s.charCodeAt(l))<55296||a>56319||l+1===c||(o=s.charCodeAt(l+1))<56320||o>57343?e?s.charAt(l):a:e?s.slice(l,l+2):o-56320+(a-55296<<10)+65536}};e.exports={codeAt:a(!1),charAt:a(!0)}},function(e,t,n){"use strict";var r=n(118).IteratorPrototype,i=n(62),a=n(37),o=n(42),s=n(41),l=function(){return this};e.exports=function(e,t,n){var c=t+" Iterator";return e.prototype=i(r,{next:a(1,n)}),o(e,c,!1,!0),s[c]=l,e}},function(e,t,n){"use strict";var r=n(27),i=n(89),a=n(41),o=n(43),s=n(88),l=o.set,c=o.getterFor("Array Iterator");e.exports=s(Array,"Array",function(e,t){l(this,{type:"Array Iterator",target:r(e),index:0,kind:t})},function(){var e=c(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values"),a.Arguments=a.Array,i("keys"),i("values"),i("entries")},function(e,t){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(e,t,n){n(52);var r=n(182),i=n(68),a=Array.prototype,o={DOMTokenList:!0,NodeList:!0};e.exports=function(e){var t=e.forEach;return e===a||e instanceof Array&&t===a.forEach||o.hasOwnProperty(i(e))?r:t}},function(e,t,n){var r=n(183);e.exports=r},function(e,t,n){n(184);var r=n(14);e.exports=r("Array").forEach},function(e,t,n){"use strict";var r=n(5),i=n(185);r({target:"Array",proto:!0,forced:[].forEach!=i},{forEach:i})},function(e,t,n){"use strict";var r=n(29).forEach,i=n(71)("forEach");e.exports=i?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},function(e,t,n){var r=n(187);e.exports=r},function(e,t,n){n(188);var r=n(10);e.exports=r.Array.isArray},function(e,t,n){n(5)({target:"Array",stat:!0},{isArray:n(53)})},function(e,t,n){var r=n(190);e.exports=r},function(e,t,n){var r=n(191),i=Array.prototype;e.exports=function(e){var t=e.map;return e===i||e instanceof Array&&t===i.map?r:t}},function(e,t,n){n(192);var r=n(14);e.exports=r("Array").map},function(e,t,n){"use strict";var r=n(5),i=n(29).map;r({target:"Array",proto:!0,forced:!n(54)("map")},{map:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var r=n(194);e.exports=r},function(e,t,n){var r=n(195),i=String.prototype;e.exports=function(e){var t=e.trim;return"string"==typeof e||e===i||e instanceof String&&t===i.trim?r:t}},function(e,t,n){n(196);var r=n(14);e.exports=r("String").trim},function(e,t,n){"use strict";var r=n(5),i=n(92).trim;r({target:"String",proto:!0,forced:n(197)("trim")},{trim:function(){return i(this)}})},function(e,t,n){var r=n(12),i=n(72);e.exports=function(e){return r(function(){return!!i[e]()||"​…᠎"!="​…᠎"[e]()||i[e].name!==e})}},function(e,t,n){var r=n(199);e.exports=r},function(e,t,n){n(200),n(69),n(51),n(52);var r=n(10);e.exports=r.Map},function(e,t,n){"use strict";var r=n(121),i=n(123);e.exports=r("Map",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},i)},function(e,t,n){var r=n(12);e.exports=!r(function(){return Object.isExtensible(Object.preventExtensions({}))})},function(e,t,n){var r=n(203);e.exports=r},function(e,t,n){var r=n(204),i=Array.prototype;e.exports=function(e){var t=e.indexOf;return e===i||e instanceof Array&&t===i.indexOf?r:t}},function(e,t,n){n(205);var r=n(14);e.exports=r("Array").indexOf},function(e,t,n){"use strict";var r=n(5),i=n(81).indexOf,a=n(71),o=[].indexOf,s=!!o&&1/[1].indexOf(1,-0)<0,l=a("indexOf");r({target:"Array",proto:!0,forced:s||!l},{indexOf:function(e){return s?o.apply(this,arguments)||0:i(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var r=n(207);e.exports=r},function(e,t,n){var r=n(208),i=Array.prototype;e.exports=function(e){var t=e.splice;return e===i||e instanceof Array&&t===i.splice?r:t}},function(e,t,n){n(209);var r=n(14);e.exports=r("Array").splice},function(e,t,n){"use strict";var r=n(5),i=n(82),a=n(64),o=n(34),s=n(33),l=n(90),c=n(73),u=n(54)("splice"),h=Math.max,d=Math.min;r({target:"Array",proto:!0,forced:!u},{splice:function(e,t){var n,r,u,f,p,A,g=s(this),m=o(g.length),v=i(e,m),y=arguments.length;if(0===y?n=r=0:1===y?(n=0,r=m-v):(n=y-2,r=d(h(a(t),0),m-v)),m+n-r>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(u=l(g,r),f=0;f<r;f++)(p=v+f)in g&&c(u,f,g[p]);if(u.length=r,n<r){for(f=v;f<m-r;f++)A=f+n,(p=f+r)in g?g[A]=g[p]:delete g[A];for(f=m;f>m-r+n;f--)delete g[f-1]}else if(n>r)for(f=m-r;f>v;f--)A=f+n-1,(p=f+r-1)in g?g[A]=g[p]:delete g[A];for(f=0;f<n;f++)g[f+v]=arguments[f+2];return g.length=m-r+n,u}})},function(e,t,n){var r=n(211);e.exports=r},function(e,t,n){var r=n(212),i=Array.prototype;e.exports=function(e){var t=e.filter;return e===i||e instanceof Array&&t===i.filter?r:t}},function(e,t,n){n(213);var r=n(14);e.exports=r("Array").filter},function(e,t,n){"use strict";var r=n(5),i=n(29).filter;r({target:"Array",proto:!0,forced:!n(54)("filter")},{filter:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var r=n(215);e.exports=r},function(e,t,n){var r=n(216),i=n(218),a=Array.prototype,o=String.prototype;e.exports=function(e){var t=e.includes;return e===a||e instanceof Array&&t===a.includes?r:"string"==typeof e||e===o||e instanceof String&&t===o.includes?i:t}},function(e,t,n){n(217);var r=n(14);e.exports=r("Array").includes},function(e,t,n){"use strict";var r=n(5),i=n(81).includes,a=n(89);r({target:"Array",proto:!0},{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),a("includes")},function(e,t,n){n(219);var r=n(14);e.exports=r("String").includes},function(e,t,n){"use strict";var r=n(5),i=n(220),a=n(48);r({target:"String",proto:!0,forced:!n(222)("includes")},{includes:function(e){return!!~String(a(this)).indexOf(i(e),arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var r=n(221);e.exports=function(e){if(r(e))throw TypeError("The method doesn't accept regular expressions");return e}},function(e,t,n){var r=n(13),i=n(47),a=n(9)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[a])?!!t:"RegExp"==i(e))}},function(e,t,n){var r=n(9)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(e){}}return!1}},function(e,t,n){var r=n(224);e.exports=r},function(e,t,n){var r=n(225),i=Function.prototype;e.exports=function(e){var t=e.bind;return e===i||e instanceof Function&&t===i.bind?r:t}},function(e,t,n){n(226);var r=n(14);e.exports=r("Function").bind},function(e,t,n){n(5)({target:"Function",proto:!0},{bind:n(227)})},function(e,t,n){"use strict";var r=n(32),i=n(13),a=[].slice,o={};e.exports=Function.bind||function(e){var t=r(this),n=a.call(arguments,1),s=function(){var r=n.concat(a.call(arguments));return this instanceof s?function(e,t,n){if(!(t in o)){for(var r=[],i=0;i<t;i++)r[i]="a["+i+"]";o[t]=Function("C,a","return new C("+r.join(",")+")")}return o[t](e,n)}(t,r.length,r):t.apply(e,r)};return i(t.prototype)&&(s.prototype=t.prototype),s}},function(e,t,n){e.exports=n(229)},function(e,t,n){var r=n(230);n(250),n(251),n(252),n(253),n(254),e.exports=r},function(e,t,n){n(231),n(69),n(232),n(234),n(235),n(236),n(237),n(126),n(238),n(239),n(240),n(241),n(242),n(243),n(244),n(245),n(246),n(247),n(248),n(249);var r=n(10);e.exports=r.Symbol},function(e,t,n){"use strict";var r=n(5),i=n(12),a=n(53),o=n(13),s=n(33),l=n(34),c=n(73),u=n(90),h=n(54),d=n(9),f=n(66),p=d("isConcatSpreadable"),A=f>=51||!i(function(){var e=[];return e[p]=!1,e.concat()[0]!==e}),g=h("concat"),m=function(e){if(!o(e))return!1;var t=e[p];return void 0!==t?!!t:a(e)};r({target:"Array",proto:!0,forced:!A||!g},{concat:function(e){var t,n,r,i,a,o=s(this),h=u(o,0),d=0;for(t=-1,r=arguments.length;t<r;t++)if(a=-1===t?o:arguments[t],m(a)){if(d+(i=l(a.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<i;n++,d++)n in a&&c(h,d,a[n])}else{if(d>=9007199254740991)throw TypeError("Maximum allowed index exceeded");c(h,d++,a)}return h.length=d,h}})},function(e,t,n){"use strict";var r=n(5),i=n(8),a=n(28),o=n(39),s=n(15),l=n(84),c=n(106),u=n(12),h=n(16),d=n(53),f=n(13),p=n(20),A=n(33),g=n(27),m=n(59),v=n(37),y=n(62),b=n(63),w=n(124),x=n(233),_=n(125),C=n(75),S=n(18),k=n(58),B=n(17),E=n(50),T=n(79),I=n(60),M=n(49),F=n(61),D=n(9),P=n(95),O=n(11),L=n(42),R=n(43),N=n(29).forEach,U=I("hidden"),H=D("toPrimitive"),j=R.set,Q=R.getterFor("Symbol"),z=Object.prototype,V=i.Symbol,G=a("JSON","stringify"),$=C.f,q=S.f,W=x.f,K=k.f,Y=T("symbols"),X=T("op-symbols"),J=T("string-to-symbol-registry"),Z=T("symbol-to-string-registry"),ee=T("wks"),te=i.QObject,ne=!te||!te.prototype||!te.prototype.findChild,re=s&&u(function(){return 7!=y(q({},"a",{get:function(){return q(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=$(z,t);r&&delete z[t],q(e,t,n),r&&e!==z&&q(z,t,r)}:q,ie=function(e,t){var n=Y[e]=y(V.prototype);return j(n,{type:"Symbol",tag:e,description:t}),s||(n.description=t),n},ae=c?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof V},oe=function(e,t,n){e===z&&oe(X,t,n),p(e);var r=m(t,!0);return p(n),h(Y,r)?(n.enumerable?(h(e,U)&&e[U][r]&&(e[U][r]=!1),n=y(n,{enumerable:v(0,!1)})):(h(e,U)||q(e,U,v(1,{})),e[U][r]=!0),re(e,r,n)):q(e,r,n)},se=function(e,t){p(e);var n=g(t),r=b(n).concat(he(n));return N(r,function(t){s&&!le.call(n,t)||oe(e,t,n[t])}),e},le=function(e){var t=m(e,!0),n=K.call(this,t);return!(this===z&&h(Y,t)&&!h(X,t))&&(!(n||!h(this,t)||!h(Y,t)||h(this,U)&&this[U][t])||n)},ce=function(e,t){var n=g(e),r=m(t,!0);if(n!==z||!h(Y,r)||h(X,r)){var i=$(n,r);return!i||!h(Y,r)||h(n,U)&&n[U][r]||(i.enumerable=!0),i}},ue=function(e){var t=W(g(e)),n=[];return N(t,function(e){h(Y,e)||h(M,e)||n.push(e)}),n},he=function(e){var t=e===z,n=W(t?X:g(e)),r=[];return N(n,function(e){!h(Y,e)||t&&!h(z,e)||r.push(Y[e])}),r};(l||(E((V=function(){if(this instanceof V)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,t=F(e),n=function(e){this===z&&n.call(X,e),h(this,U)&&h(this[U],t)&&(this[U][t]=!1),re(this,t,v(1,e))};return s&&ne&&re(z,t,{configurable:!0,set:n}),ie(t,e)}).prototype,"toString",function(){return Q(this).tag}),E(V,"withoutSetter",function(e){return ie(F(e),e)}),k.f=le,S.f=oe,C.f=ce,w.f=x.f=ue,_.f=he,P.f=function(e){return ie(D(e),e)},s&&(q(V.prototype,"description",{configurable:!0,get:function(){return Q(this).description}}),o||E(z,"propertyIsEnumerable",le,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!l,sham:!l},{Symbol:V}),N(b(ee),function(e){O(e)}),r({target:"Symbol",stat:!0,forced:!l},{for:function(e){var t=String(e);if(h(J,t))return J[t];var n=V(t);return J[t]=n,Z[n]=t,n},keyFor:function(e){if(!ae(e))throw TypeError(e+" is not a symbol");if(h(Z,e))return Z[e]},useSetter:function(){ne=!0},useSimple:function(){ne=!1}}),r({target:"Object",stat:!0,forced:!l,sham:!s},{create:function(e,t){return void 0===t?y(e):se(y(e),t)},defineProperty:oe,defineProperties:se,getOwnPropertyDescriptor:ce}),r({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:ue,getOwnPropertySymbols:he}),r({target:"Object",stat:!0,forced:u(function(){_.f(1)})},{getOwnPropertySymbols:function(e){return _.f(A(e))}}),G)&&r({target:"JSON",stat:!0,forced:!l||u(function(){var e=V();return"[null]"!=G([e])||"{}"!=G({a:e})||"{}"!=G(Object(e))})},{stringify:function(e,t,n){for(var r,i=[e],a=1;arguments.length>a;)i.push(arguments[a++]);if(r=t,(f(t)||void 0!==e)&&!ae(e))return d(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!ae(t))return t}),i[1]=t,G.apply(null,i)}});V.prototype[H]||B(V.prototype,H,V.prototype.valueOf),L(V,"Symbol"),M[U]=!0},function(e,t,n){var r=n(27),i=n(124).f,a={}.toString,o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return o&&"[object Window]"==a.call(e)?function(e){try{return i(e)}catch(e){return o.slice()}}(e):i(r(e))}},function(e,t,n){n(11)("asyncIterator")},function(e,t){},function(e,t,n){n(11)("hasInstance")},function(e,t,n){n(11)("isConcatSpreadable")},function(e,t,n){n(11)("match")},function(e,t,n){n(11)("matchAll")},function(e,t,n){n(11)("replace")},function(e,t,n){n(11)("search")},function(e,t,n){n(11)("species")},function(e,t,n){n(11)("split")},function(e,t,n){n(11)("toPrimitive")},function(e,t,n){n(11)("toStringTag")},function(e,t,n){n(11)("unscopables")},function(e,t,n){var r=n(8);n(42)(r.JSON,"JSON",!0)},function(e,t){},function(e,t){},function(e,t,n){n(11)("asyncDispose")},function(e,t,n){n(11)("dispose")},function(e,t,n){n(11)("observable")},function(e,t,n){n(11)("patternMatch")},function(e,t,n){n(11)("replaceAll")},function(e,t,n){e.exports=n(256)},function(e,t,n){var r=n(257);e.exports=r},function(e,t,n){n(126),n(51),n(52);var r=n(95);e.exports=r.f("iterator")},function(e,t,n){e.exports=n(259)},function(e,t,n){var r=n(260);e.exports=r},function(e,t,n){n(261);var r=n(10);e.exports=r.parseInt},function(e,t,n){var r=n(5),i=n(262);r({global:!0,forced:parseInt!=i},{parseInt:i})},function(e,t,n){var r=n(8),i=n(92).trim,a=n(72),o=r.parseInt,s=/^[+-]?0[Xx]/,l=8!==o(a+"08")||22!==o(a+"0x16");e.exports=l?function(e,t){var n=i(String(e));return o(n,t>>>0||(s.test(n)?16:10))}:o},function(e,t,n){var r=n(264);e.exports=r},function(e,t,n){var r=n(265),i=Array.prototype;e.exports=function(e){var t=e.slice;return e===i||e instanceof Array&&t===i.slice?r:t}},function(e,t,n){n(266);var r=n(14);e.exports=r("Array").slice},function(e,t,n){"use strict";var r=n(5),i=n(13),a=n(53),o=n(82),s=n(34),l=n(27),c=n(73),u=n(9),h=n(54)("slice"),d=u("species"),f=[].slice,p=Math.max;r({target:"Array",proto:!0,forced:!h},{slice:function(e,t){var n,r,u,h=l(this),A=s(h.length),g=o(e,A),m=o(void 0===t?A:t,A);if(a(h)&&("function"!=typeof(n=h.constructor)||n!==Array&&!a(n.prototype)?i(n)&&null===(n=n[d])&&(n=void 0):n=void 0,n===Array||void 0===n))return f.call(h,g,m);for(r=new(void 0===n?Array:n)(p(m-g,0)),u=0;g<m;g++,u++)g in h&&c(r,u,h[g]);return r.length=u,r}})},function(e,t,n){n(268);var r=n(10);e.exports=r.setTimeout},function(e,t,n){var r=n(5),i=n(8),a=n(67),o=[].slice,s=function(e){return function(t,n){var r=arguments.length>2,i=r?o.call(arguments,2):void 0;return e(r?function(){("function"==typeof t?t:Function(t)).apply(this,i)}:t,n)}};r({global:!0,bind:!0,forced:/MSIE .\./.test(a)},{setTimeout:s(i.setTimeout),setInterval:s(i.setInterval)})},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),a=r(n(270));(0,i.default)(t,"__esModule",{value:!0});var o=n(2),s=o.__importDefault(n(275)),l=o.__importDefault(n(276)),c=o.__importDefault(n(127)),u=o.__importDefault(n(277)),h=o.__importDefault(n(278)),d=o.__importDefault(n(279)),f=o.__importDefault(n(280)),p=o.__importDefault(n(281)),A=o.__importDefault(n(282)),g=o.__importDefault(n(283)),m=(0,a.default)({},s.default,l.default,c.default,h.default,u.default,d.default,f.default,p.default,A.default,g.default,{linkCheck:function(e,t){return!0}});t.default=m},function(e,t,n){e.exports=n(271)},function(e,t,n){var r=n(272);e.exports=r},function(e,t,n){n(273);var r=n(10);e.exports=r.Object.assign},function(e,t,n){var r=n(5),i=n(274);r({target:"Object",stat:!0,forced:Object.assign!==i},{assign:i})},function(e,t,n){"use strict";var r=n(15),i=n(12),a=n(63),o=n(125),s=n(58),l=n(33),c=n(76),u=Object.assign,h=Object.defineProperty;e.exports=!u||i(function(){if(r&&1!==u({b:1},u(h({},"a",{enumerable:!0,get:function(){h(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol();return e[n]=7,"abcdefghijklmnopqrst".split("").forEach(function(e){t[e]=e}),7!=u({},e)[n]||"abcdefghijklmnopqrst"!=a(u({},t)).join("")})?function(e,t){for(var n=l(e),i=arguments.length,u=1,h=o.f,d=s.f;i>u;)for(var f,p=c(arguments[u++]),A=h?a(p).concat(h(p)):a(p),g=A.length,m=0;g>m;)f=A[m++],r&&!d.call(p,f)||(n[f]=p[f]);return n}:u},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.default={menus:["head","bold","fontSize","fontName","italic","underline","strikeThrough","indent","lineHeight","foreColor","backColor","link","list","todo","justify","quote","emoticon","image","video","table","code","splitLine","undo","redo"],fontNames:["黑体","仿宋","楷体","标楷体","华文仿宋","华文楷体","宋体","微软雅黑","Arial","Tahoma","Verdana","Times New Roman","Courier New"],fontSizes:{"x-small":{name:"10px",value:"1"},small:{name:"13px",value:"2"},normal:{name:"16px",value:"3"},large:{name:"18px",value:"4"},"x-large":{name:"24px",value:"5"},"xx-large":{name:"32px",value:"6"},"xxx-large":{name:"48px",value:"7"}},colors:["#000000","#ffffff","#eeece0","#1c487f","#4d80bf","#c24f4a","#8baa4a","#7b5ba1","#46acc8","#f9963b"],languageType:["Bash","C","C#","C++","CSS","Java","JavaScript","JSON","TypeScript","Plain text","Html","XML","SQL","Go","Kotlin","Lua","Markdown","PHP","Python","Shell Session","Ruby"],languageTab:"    ",emotions:[{title:"表情",type:"emoji",content:"😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣".split(/\s/)},{title:"手势",type:"emoji",content:"👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏".split(/\s/)}],lineHeights:["1","1.15","1.6","2","2.5","3"],undoLimit:20,indentation:"2em",showMenuTooltips:!0,menuTooltipPosition:"up"}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(7);t.default={onchangeTimeout:200,onchange:null,onfocus:r.EMPTY_FN,onblur:r.EMPTY_FN,onCatalogChange:null,customAlert:function(e,t,n){window.alert(e),n&&console.error("wangEditor: "+n)}}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.default={pasteFilterStyle:!0,pasteIgnoreImg:!1,pasteTextHandle:function(e){return e}}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.default={styleWithCSS:!1}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(7);t.default={linkImgCheck:function(e,t,n){return!0},showLinkImg:!0,showLinkImgAlt:!0,showLinkImgHref:!0,linkImgCallback:r.EMPTY_FN,uploadImgAccept:["jpg","jpeg","png","gif","bmp"],uploadImgServer:"",uploadImgShowBase64:!1,uploadImgMaxSize:5242880,uploadImgMaxLength:100,uploadFileName:"",uploadImgParams:{},uploadImgParamsWithUrl:!1,uploadImgHeaders:{},uploadImgHooks:{},uploadImgTimeout:1e4,withCredentials:!1,customUploadImg:null,uploadImgFromMedia:null}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.default={focus:!0,height:300,placeholder:"请输入正文",zIndexFullScreen:10002,showFullScreen:!0}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.default={lang:"zh-CN",languages:{"zh-CN":{wangEditor:{"重置":"重置","插入":"插入","默认":"默认","创建":"创建","修改":"修改","如":"如","请输入正文":"请输入正文",menus:{title:{"标题":"标题","加粗":"加粗","字号":"字号","字体":"字体","斜体":"斜体","下划线":"下划线","删除线":"删除线","缩进":"缩进","行高":"行高","文字颜色":"文字颜色","背景色":"背景色","链接":"链接","序列":"序列","对齐":"对齐","引用":"引用","表情":"表情","图片":"图片","视频":"视频","表格":"表格","代码":"代码","分割线":"分割线","恢复":"恢复","撤销":"撤销","全屏":"全屏","取消全屏":"取消全屏","待办事项":"待办事项"},dropListMenu:{"设置标题":"设置标题","背景颜色":"背景颜色","文字颜色":"文字颜色","设置字号":"设置字号","设置字体":"设置字体","设置缩进":"设置缩进","对齐方式":"对齐方式","设置行高":"设置行高","序列":"序列",head:{"正文":"正文"},indent:{"增加缩进":"增加缩进","减少缩进":"减少缩进"},justify:{"靠左":"靠左","居中":"居中","靠右":"靠右","两端":"两端"},list:{"无序列表":"无序列表","有序列表":"有序列表"}},panelMenus:{emoticon:{"默认":"默认","新浪":"新浪",emoji:"emoji","手势":"手势"},image:{"上传图片":"上传图片","网络图片":"网络图片","图片地址":"图片地址","图片文字说明":"图片文字说明","跳转链接":"跳转链接"},link:{"链接":"链接","链接文字":"链接文字","取消链接":"取消链接","查看链接":"查看链接"},video:{"插入视频":"插入视频","上传视频":"上传视频"},table:{"行":"行","列":"列","的":"的","表格":"表格","添加行":"添加行","删除行":"删除行","添加列":"添加列","删除列":"删除列","设置表头":"设置表头","取消表头":"取消表头","插入表格":"插入表格","删除表格":"删除表格"},code:{"删除代码":"删除代码","修改代码":"修改代码","插入代码":"插入代码"}}},validate:{"张图片":"张图片","大于":"大于","图片链接":"图片链接","不是图片":"不是图片","返回结果":"返回结果","上传图片超时":"上传图片超时","上传图片错误":"上传图片错误","上传图片失败":"上传图片失败","插入图片错误":"插入图片错误","一次最多上传":"一次最多上传","下载链接失败":"下载链接失败","图片验证未通过":"图片验证未通过","服务器返回状态":"服务器返回状态","上传图片返回结果错误":"上传图片返回结果错误","请替换为支持的图片类型":"请替换为支持的图片类型","您插入的网络图片无法识别":"您插入的网络图片无法识别","您刚才插入的图片链接未通过编辑器校验":"您刚才插入的图片链接未通过编辑器校验","插入视频错误":"插入视频错误","视频链接":"视频链接","不是视频":"不是视频","视频验证未通过":"视频验证未通过","个视频":"个视频","上传视频超时":"上传视频超时","上传视频错误":"上传视频错误","上传视频失败":"上传视频失败","上传视频返回结果错误":"上传视频返回结果错误"}}},en:{wangEditor:{"重置":"reset","插入":"insert","默认":"default","创建":"create","修改":"edit","如":"like","请输入正文":"please enter the text",menus:{title:{"标题":"head","加粗":"bold","字号":"font size","字体":"font family","斜体":"italic","下划线":"underline","删除线":"strikethrough","缩进":"indent","行高":"line heihgt","文字颜色":"font color","背景色":"background","链接":"link","序列":"numbered list","对齐":"align","引用":"quote","表情":"emoticons","图片":"image","视频":"media","表格":"table","代码":"code","分割线":"split line","恢复":"undo","撤销":"redo","全屏":"fullscreen","取消全屏":"cancel fullscreen","待办事项":"todo"},dropListMenu:{"设置标题":"title","背景颜色":"background","文字颜色":"font color","设置字号":"font size","设置字体":"font family","设置缩进":"indent","对齐方式":"align","设置行高":"line heihgt","序列":"list",head:{"正文":"text"},indent:{"增加缩进":"indent","减少缩进":"outdent"},justify:{"靠左":"left","居中":"center","靠右":"right","两端":"justify"},list:{"无序列表":"unordered","有序列表":"ordered"}},panelMenus:{emoticon:{"表情":"emoji","手势":"gesture"},image:{"上传图片":"upload image","网络图片":"network image","图片地址":"image link","图片文字说明":"image alt","跳转链接":"hyperlink"},link:{"链接":"link","链接文字":"link text","取消链接":"unlink","查看链接":"view links"},video:{"插入视频":"insert video","上传视频":"upload local video"},table:{"行":"rows","列":"columns","的":" ","表格":"table","添加行":"insert row","删除行":"delete row","添加列":"insert column","删除列":"delete column","设置表头":"set header","取消表头":"cancel header","插入表格":"insert table","删除表格":"delete table"},code:{"删除代码":"delete code","修改代码":"edit code","插入代码":"insert code"}}},validate:{"张图片":"images","大于":"greater than","图片链接":"image link","不是图片":"is not image","返回结果":"return results","上传图片超时":"upload image timeout","上传图片错误":"upload image error","上传图片失败":"upload image failed","插入图片错误":"insert image error","一次最多上传":"once most at upload","下载链接失败":"download link failed","图片验证未通过":"image validate failed","服务器返回状态":"server return status","上传图片返回结果错误":"upload image return results error","请替换为支持的图片类型":"please replace with a supported image type","您插入的网络图片无法识别":"the network picture you inserted is not recognized","您刚才插入的图片链接未通过编辑器校验":"the image link you just inserted did not pass the editor verification","插入视频错误":"insert video error","视频链接":"video link","不是视频":"is not video","视频验证未通过":"video validate failed","个视频":"videos","上传视频超时":"upload video timeout","上传视频错误":"upload video error","上传视频失败":"upload video failed","上传视频返回结果错误":"upload video return results error"}}}}}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(6);t.default={compatibleMode:function(){return!(!r.UA.isIE()&&!r.UA.isOldEdge)},historyMaxSize:30}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(7);t.default={onlineVideoCheck:function(e){return!0},onlineVideoCallback:r.EMPTY_FN,showLinkVideo:!0,uploadVideoAccept:["mp4"],uploadVideoServer:"",uploadVideoMaxSize:1073741824,uploadVideoName:"",uploadVideoParams:{},uploadVideoParamsWithUrl:!1,uploadVideoHeaders:{},uploadVideoHooks:{},uploadVideoTimeout:72e5,withVideoCredentials:!1,customUploadVideo:null,customInsertVideo:null}},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),a=r(n(19));(0,i.default)(t,"__esModule",{value:!0});var o=n(2).__importDefault(n(3)),s=n(6),l=n(7),c=function(){function e(e){this._currentRange=null,this.editor=e}return e.prototype.getRange=function(){return this._currentRange},e.prototype.saveRange=function(e){if(e)this._currentRange=e;else{var t=window.getSelection();if(0!==t.rangeCount){var n=t.getRangeAt(0),r=this.getSelectionContainerElem(n);if((null===r||void 0===r?void 0:r.length)&&"false"!==r.attr("contenteditable")&&!r.parentUntil("[contenteditable=false]")){var i=this.editor,o=i.$textElem;if(o.isContain(r)){var s;if(o.elems[0]===r.elems[0])if((0,a.default)(s=o.html()).call(s)===l.EMPTY_P){var c=o.children(),u=null===c||void 0===c?void 0:c.last();i.selection.createRangeByElem(u,!0,!0),i.selection.restoreSelection()}this._currentRange=n}}}}},e.prototype.collapseRange=function(e){void 0===e&&(e=!1);var t=this._currentRange;t&&t.collapse(e)},e.prototype.getSelectionText=function(){var e=this._currentRange;return e?e.toString():""},e.prototype.getSelectionContainerElem=function(e){var t,n;if(t=e||this._currentRange)return n=t.commonAncestorContainer,o.default(1===n.nodeType?n:n.parentNode)},e.prototype.getSelectionStartElem=function(e){var t,n;if(t=e||this._currentRange)return n=t.startContainer,o.default(1===n.nodeType?n:n.parentNode)},e.prototype.getSelectionEndElem=function(e){var t,n;if(t=e||this._currentRange)return n=t.endContainer,o.default(1===n.nodeType?n:n.parentNode)},e.prototype.isSelectionEmpty=function(){var e=this._currentRange;return!(!e||!e.startContainer||e.startContainer!==e.endContainer||e.startOffset!==e.endOffset)},e.prototype.restoreSelection=function(){var e=window.getSelection(),t=this._currentRange;e&&t&&(e.removeAllRanges(),e.addRange(t))},e.prototype.createEmptyRange=function(){var e,t=this.editor,n=this.getRange();if(n&&this.isSelectionEmpty())try{s.UA.isWebkit()?(t.cmd.do("insertHTML","&#8203;"),n.setEnd(n.endContainer,n.endOffset+1),this.saveRange(n)):(e=o.default("<strong>&#8203;</strong>"),t.cmd.do("insertElem",e),this.createRangeByElem(e,!0))}catch(e){}},e.prototype.createRangeByElems=function(e,t){var n=window.getSelection?window.getSelection():document.getSelection();null===n||void 0===n||n.removeAllRanges();var r=document.createRange();r.setStart(e,0),r.setEnd(t,t.childNodes.length||1),this.saveRange(r),this.restoreSelection()},e.prototype.createRangeByElem=function(e,t,n){if(e.length){var r=e.elems[0],i=document.createRange();n?i.selectNodeContents(r):i.selectNode(r),null!=t&&(i.collapse(t),t||(this.saveRange(i),this.editor.selection.moveCursor(r))),this.saveRange(i)}},e.prototype.getSelectionRangeTopNodes=function(){var e,t,n=null===(e=this.getSelectionStartElem())||void 0===e?void 0:e.getNodeTop(this.editor),r=null===(t=this.getSelectionEndElem())||void 0===t?void 0:t.getNodeTop(this.editor);return this.recordSelectionNodes(o.default(n),o.default(r))},e.prototype.moveCursor=function(e,t){var n,r=this.getRange(),i=3===e.nodeType?null===(n=e.nodeValue)||void 0===n?void 0:n.length:e.childNodes.length;(s.UA.isFirefox||s.UA.isIE())&&0!==i&&(3!==e.nodeType&&"BR"!==e.childNodes[i-1].nodeName||(i-=1));var a=null!==t&&void 0!==t?t:i;r&&e&&(r.setStart(e,a),r.setEnd(e,a),this.restoreSelection())},e.prototype.getCursorPos=function(){var e=window.getSelection();return null===e||void 0===e?void 0:e.anchorOffset},e.prototype.clearWindowSelectionRange=function(){var e=window.getSelection();e&&e.removeAllRanges()},e.prototype.recordSelectionNodes=function(e,t){for(var n=[],r=e,i=this.editor.$textElem,a=!0;a;){var s=null===r||void 0===r?void 0:r.getNodeTop(this.editor);"BODY"===s.getNodeName()&&(a=!1),s.length>0&&(n.push(o.default(r)),(null===t||void 0===t?void 0:t.equal(s))||i.equal(s)?a=!1:r=s.getNextSibling())}return n},e.prototype.setRangeToElem=function(e){var t=this.getRange();null===t||void 0===t||t.setStart(e,0),null===t||void 0===t||t.setEnd(e,0)},e}();t.default=c},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(2).__importDefault(n(3)),i=function(){function e(e){this.editor=e}return e.prototype.do=function(e,t){var n=this.editor;n.config.styleWithCSS&&document.execCommand("styleWithCSS",!1,"true");var r=n.selection;if(r.getRange()){switch(r.restoreSelection(),e){case"insertHTML":this.insertHTML(t);break;case"insertElem":this.insertElem(t);break;default:this.execCommand(e,t)}n.menus.changeActive(),r.saveRange(),r.restoreSelection()}},e.prototype.insertHTML=function(e){var t=this.editor,n=t.selection.getRange();if(null!=n)if(this.queryCommandSupported("insertHTML"))this.execCommand("insertHTML",e);else if(n.insertNode){if(n.deleteContents(),r.default(e).elems.length>0)n.insertNode(r.default(e).elems[0]);else{var i=document.createElement("p");i.appendChild(document.createTextNode(e)),n.insertNode(i)}t.selection.collapseRange()}},e.prototype.insertElem=function(e){var t=this.editor.selection.getRange();null!=t&&t.insertNode&&(t.deleteContents(),t.insertNode(e.elems[0]))},e.prototype.execCommand=function(e,t){document.execCommand(e,!1,t)},e.prototype.queryCommandValue=function(e){return document.queryCommandValue(e)},e.prototype.queryCommandState=function(e){return document.queryCommandState(e)},e.prototype.queryCommandSupported=function(e){return document.queryCommandSupported(e)},e}();t.default=i},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),a=r(n(30)),o=r(n(4)),s=r(n(19)),l=r(n(26)),c=r(n(45));(0,i.default)(t,"__esModule",{value:!0});var u=n(2),h=u.__importDefault(n(3)),d=u.__importDefault(n(291)),f=n(6),p=u.__importDefault(n(303)),A=u.__importDefault(n(304)),g=n(7),m=function(){function e(e){this.editor=e,this.eventHooks={onBlurEvents:[],changeEvents:[],dropEvents:[],clickEvents:[],keydownEvents:[],keyupEvents:[],tabUpEvents:[],tabDownEvents:[],enterUpEvents:[],enterDownEvents:[],deleteUpEvents:[],deleteDownEvents:[],pasteEvents:[],linkClickEvents:[],codeClickEvents:[],textScrollEvents:[],toolbarClickEvents:[],imgClickEvents:[],imgDragBarMouseDownEvents:[],tableClickEvents:[],menuClickEvents:[],dropListMenuHoverEvents:[],splitLineEvents:[],videoClickEvents:[]}}return e.prototype.init=function(){this._saveRange(),this._bindEventHooks(),d.default(this)},e.prototype.togglePlaceholder=function(){var e,t=this.html(),n=(0,a.default)(e=this.editor.$textContainerElem).call(e,".placeholder");n.hide(),this.editor.isComposing||t&&" "!==t||n.show()},e.prototype.clear=function(){this.html(g.EMPTY_P)},e.prototype.html=function(e){var t=this.editor,n=t.$textElem;if(null==e){var r=n.html(),i=(r=(r=(r=(r=r.replace(/\u200b/gm,"")).replace(/<p><\/p>/gim,"")).replace(g.EMPTY_P_LAST_REGEX,"")).replace(g.EMPTY_P_REGEX,"<p>")).match(/<(img|br|hr|input)[^>]*>/gi);return null!==i&&(0,o.default)(i).call(i,function(e){e.match(/\/>/)||(r=r.replace(e,e.substring(0,e.length-1)+"/>"))}),r}""===(e=(0,s.default)(e).call(e))&&(e=g.EMPTY_P),0!==(0,l.default)(e).call(e,"<")&&(e="<p>"+e+"</p>"),n.html(e),t.initSelection()},e.prototype.setJSON=function(e){var t=A.default(e).children(),n=this.editor.$textElem;t&&n.replaceChildAll(t)},e.prototype.getJSON=function(){var e=this.editor.$textElem;return p.default(e)},e.prototype.text=function(e){var t=this.editor,n=t.$textElem;if(null==e){var r=n.text();return r=r.replace(/\u200b/gm,"")}n.text("<p>"+e+"</p>"),t.initSelection()},e.prototype.append=function(e){var t=this.editor;0!==(0,l.default)(e).call(e,"<")&&(e="<p>"+e+"</p>"),this.html(this.html()+e),t.initSelection()},e.prototype._saveRange=function(){var e=this.editor,t=e.$textElem,n=h.default(document);function r(){e.selection.saveRange(),e.menus.changeActive()}function i(){r(),n.off("mouseup",i)}function a(){n.on("mouseup",i),t.off("mouseleave",a)}t.on("keyup",r),t.on("click",function e(){r(),t.off("click",e)}),t.on("mousedown",function(){t.on("mouseleave",a)}),t.on("mouseup",function(n){t.off("mouseleave",a),(0,c.default)(function(){null!==e.selection.getRange()&&r()},0)})},e.prototype._bindEventHooks=function(){var e=this.editor,t=e.$textElem,n=this.eventHooks;function r(e){e.preventDefault()}t.on("click",function(e){var t=n.clickEvents;(0,o.default)(t).call(t,function(t){return t(e)})}),t.on("keyup",function(e){if(13===e.keyCode){var t=n.enterUpEvents;(0,o.default)(t).call(t,function(t){return t(e)})}}),t.on("keyup",function(e){var t=n.keyupEvents;(0,o.default)(t).call(t,function(t){return t(e)})}),t.on("keydown",function(e){var t=n.keydownEvents;(0,o.default)(t).call(t,function(t){return t(e)})}),t.on("keyup",function(e){if(8===e.keyCode){var t=n.deleteUpEvents;(0,o.default)(t).call(t,function(t){return t(e)})}}),t.on("keydown",function(e){if(8===e.keyCode){var t=n.deleteDownEvents;(0,o.default)(t).call(t,function(t){return t(e)})}}),t.on("paste",function(e){if(!f.UA.isIE()){e.preventDefault();var t=n.pasteEvents;(0,o.default)(t).call(t,function(t){return t(e)})}}),t.on("keydown",function(t){(e.isFocus||e.isCompatibleMode)&&(t.ctrlKey||t.metaKey)&&90===t.keyCode&&(t.preventDefault(),t.shiftKey?e.history.restore():e.history.revoke())}),t.on("keyup",function(e){if(9===e.keyCode){e.preventDefault();var t=n.tabUpEvents;(0,o.default)(t).call(t,function(t){return t(e)})}}),t.on("keydown",function(e){if(9===e.keyCode){e.preventDefault();var t=n.tabDownEvents;(0,o.default)(t).call(t,function(t){return t(e)})}}),t.on("scroll",f.throttle(function(e){var t=n.textScrollEvents;(0,o.default)(t).call(t,function(t){return t(e)})},100)),h.default(document).on("dragleave",r).on("drop",r).on("dragenter",r).on("dragover",r),e.beforeDestroy(function(){h.default(document).off("dragleave",r).off("drop",r).off("dragenter",r).off("dragover",r)}),t.on("drop",function(e){e.preventDefault();var t=n.dropEvents;(0,o.default)(t).call(t,function(t){return t(e)})}),t.on("click",function(e){var t=null,r=e.target,i=h.default(r);if("A"===i.getNodeName())t=i;else{var a=i.parentUntil("a");null!=a&&(t=a)}if(t){var s=n.linkClickEvents;(0,o.default)(s).call(s,function(e){return e(t)})}}),t.on("click",function(e){var t=null,r=e.target,i=h.default(r);if("IMG"!==i.getNodeName()||i.elems[0].getAttribute("data-emoji")||(e.stopPropagation(),t=i),t){var a=n.imgClickEvents;(0,o.default)(a).call(a,function(e){return e(t)})}}),t.on("click",function(e){var t=null,r=e.target,i=h.default(r);if("PRE"===i.getNodeName())t=i;else{var a=i.parentUntil("pre");null!==a&&(t=a)}if(t){var s=n.codeClickEvents;(0,o.default)(s).call(s,function(e){return e(t)})}}),t.on("click",function(t){var r=null,i=t.target,a=h.default(i);if("HR"===a.getNodeName()&&(r=a),r){e.selection.createRangeByElem(r),e.selection.restoreSelection();var s=n.splitLineEvents;(0,o.default)(s).call(s,function(e){return e(r)})}}),e.$toolbarElem.on("click",function(e){var t=n.toolbarClickEvents;(0,o.default)(t).call(t,function(t){return t(e)})}),e.$textContainerElem.on("mousedown",function(e){var t=e.target;if(h.default(t).hasClass("w-e-img-drag-rb")){var r=n.imgDragBarMouseDownEvents;(0,o.default)(r).call(r,function(e){return e()})}}),t.on("click",function(t){var r,i=t.target;if(r=h.default(i).parentUntilEditor("TABLE",e,i)){var a=n.tableClickEvents;(0,o.default)(a).call(a,function(e){return e(r)})}}),t.on("keydown",function(e){if(13===e.keyCode){var t=n.enterDownEvents;(0,o.default)(t).call(t,function(t){return t(e)})}}),t.on("click",function(e){var t=null,r=e.target,i=h.default(r);if("VIDEO"===i.getNodeName()&&(e.stopPropagation(),t=i),t){var a=n.videoClickEvents;(0,o.default)(a).call(a,function(e){return e(t)})}})},e}();t.default=m},function(e,t,n){var r=n(288);e.exports=r},function(e,t,n){var r=n(289),i=Array.prototype;e.exports=function(e){var t=e.find;return e===i||e instanceof Array&&t===i.find?r:t}},function(e,t,n){n(290);var r=n(14);e.exports=r("Array").find},function(e,t,n){"use strict";var r=n(5),i=n(29).find,a=n(89),o=!0;"find"in[]&&Array(1).find(function(){o=!1}),r({target:"Array",proto:!0,forced:o},{find:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),a("find")},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(2),i=r.__importDefault(n(292)),a=r.__importDefault(n(293)),o=r.__importDefault(n(294)),s=r.__importDefault(n(295)),l=r.__importDefault(n(302));t.default=function(e){var t=e.editor,n=e.eventHooks;i.default(t,n.enterUpEvents,n.enterDownEvents),a.default(t,n.deleteUpEvents,n.deleteDownEvents),o.default(t,n.tabDownEvents),s.default(t,n.pasteEvents),l.default(t,n.imgClickEvents)}},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),a=r(n(26));(0,i.default)(t,"__esModule",{value:!0});var o=n(2).__importDefault(n(3));t.default=function(e,t,n){function r(t){var n,r=o.default("<p><br></p>");r.insertBefore(t),(0,a.default)(n=t.html()).call(n,"<img")>=0?r.remove():(e.selection.createRangeByElem(r,!0,!0),e.selection.restoreSelection(),t.remove())}t.push(function(){var t=e.$textElem,n=e.selection.getSelectionContainerElem(),i=n.parent();"<code><br></code>"!==i.html()?i.equal(t)&&("P"===n.getNodeName()&&null===n.attr("data-we-empty-p")||n.text()||r(n)):r(n)}),n.push(function(t){var n;e.selection.saveRange(null===(n=getSelection())||void 0===n?void 0:n.getRangeAt(0)),e.selection.getSelectionContainerElem().id===e.textElemId&&(t.preventDefault(),e.cmd.do("insertHTML","<p><br></p>"))})}},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),a=r(n(19));(0,i.default)(t,"__esModule",{value:!0});var o=n(2),s=n(7),l=o.__importDefault(n(3));t.default=function(e,t,n){t.push(function(){var t,n=e.$textElem,r=(0,a.default)(t=n.html().toLowerCase()).call(t);if(!r||"<br>"===r){var i=l.default(s.EMPTY_P);n.html(" "),n.append(i),e.selection.createRangeByElem(i,!1,!0),e.selection.restoreSelection(),e.selection.moveCursor(i.getNode(),0)}}),n.push(function(t){var n,r=e.$textElem;(0,a.default)(n=r.html().toLowerCase()).call(n)!==s.EMPTY_P||t.preventDefault()})}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.default=function(e,t){t.push(function(){if(e.cmd.queryCommandSupported("insertHTML")){var t=e.selection.getSelectionContainerElem();if(t){var n=t.parent(),r=t.getNodeName(),i=n.getNodeName();"CODE"==r||"CODE"===i||"PRE"===i||/hljs/.test(i)?e.cmd.do("insertHTML",e.config.languageTab):e.cmd.do("insertHTML","&nbsp;&nbsp;&nbsp;&nbsp;")}}})}},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),a=r(n(19));(0,i.default)(t,"__esModule",{value:!0});var o=n(128),s=n(6),l=n(7);function c(e){var t=e;return t=(t=t.replace(/<div>/gim,"<p>").replace(/<\/div>/gim,"</p>")).replace(/<p><\/p>/gim,"<p><br></p>"),(0,a.default)(t).call(t)}t.default=function(e,t){t.push(function(t){var n=e.config,r=n.pasteFilterStyle,i=n.pasteIgnoreImg,a=n.pasteTextHandle,u=o.getPasteHtml(t,r,i),h=o.getPasteText(t);h=h.replace(/\n/gm,"<br>");var d=e.selection.getSelectionContainerElem();if(d){var f,p=null===d||void 0===d?void 0:d.getNodeName(),A=null===d||void 0===d?void 0:d.getNodeTop(e),g="";if(A.elems[0]&&(g=null===A||void 0===A?void 0:A.getNodeName()),"CODE"===p||"PRE"===g)return a&&s.isFunction(a)&&(h=""+(a(h)||"")),void e.cmd.do("insertHTML",(f=h,f.replace(/<br>|<br\/>/gm,"\n").replace(/<[^>]+>/gm,"")));if(l.urlRegex.test(h)&&r)return a&&s.isFunction(a)&&(h=""+(a(h)||"")),e.cmd.do("insertHTML",'<a href="'+h+'" target="_blank">'+h+"</a>");if(u)try{if(a&&s.isFunction(a)&&(u=""+(a(u)||"")),/[\.\#\@]?\w+[ ]+\{[^}]*\}/.test(u)&&r)e.cmd.do("insertHTML",""+c(h));else{var m=c(u);if(function(e){var t;if(""===e)return!1;var n=document.createElement("div");return n.innerHTML=e,"P"===(null===(t=n.firstChild)||void 0===t?void 0:t.nodeName)}(m)){var v=e.$textElem;if(e.cmd.do("insertHTML",m),v.equal(d))return void e.selection.createEmptyRange();(function(e){if(!(null===e||void 0===e?void 0:e.length))return!1;var t=e.elems[0];return"P"===t.nodeName&&"<br>"===t.innerHTML})(A)&&A.remove()}else e.cmd.do("insertHTML",m)}}catch(t){a&&s.isFunction(a)&&(h=""+(a(h)||"")),e.cmd.do("insertHTML",""+c(h))}}})}},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),a=r(n(19)),o=r(n(4)),s=r(n(55));(0,i.default)(t,"__esModule",{value:!0});var l=n(2),c=n(297),u=l.__importDefault(n(301));function h(e,t){var n;return e=(0,a.default)(n=e.toLowerCase()).call(n),!!c.IGNORE_TAGS.has(e)||!(!t||"img"!==e)}t.default=function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n=!1);var r=[],i="";(new u.default).parse(e,{startElement:function(e,l){if(function(e){(e=(0,a.default)(e).call(e))&&(c.EMPTY_TAGS.has(e)||(i=e))}(e),!h(e,n)){var u=c.NECESSARY_ATTRS.get(e)||[],d=[];(0,o.default)(l).call(l,function(e){var n=e.name;"style"!==n?!1!==(0,s.default)(u).call(u,n)&&d.push(e):t||d.push(e)});var f=function(e,t){var n="";n="<"+e;var r=[];return(0,o.default)(t).call(t,function(e){r.push(e.name+'="'+e.value+'"')}),r.length>0&&(n=n+" "+r.join(" ")),n=n+(c.EMPTY_TAGS.has(e)?"/":"")+">"}(e,d);r.push(f)}},characters:function(e){e&&(h(i,n)||r.push(e))},endElement:function(e){if(!h(e,n)){var t=function(e){return"</"+e+">"}(e);r.push(t),i=""}},comment:function(e){}});var l=r.join("");return l=function(e){var t=/<span>(.*?)<\/span>/;return e.replace(/<span>.*?<\/span>/gi,function(e){var n=e.match(t);return null==n?"":n[1]})}(l)}},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),a=r(n(129)),o=r(n(120));(0,i.default)(t,"__esModule",{value:!0}),t.TOP_LEVEL_TAGS=t.EMPTY_TAGS=t.NECESSARY_ATTRS=t.IGNORE_TAGS=void 0,t.IGNORE_TAGS=new a.default(["doctype","!doctype","html","head","meta","body","script","style","link","frame","iframe","title","svg","center","o:p"]),t.NECESSARY_ATTRS=new o.default([["img",["src","alt"]],["a",["href","target"]],["td",["colspan","rowspan"]],["th",["colspan","rowspan"]]]),t.EMPTY_TAGS=new a.default(["area","base","basefont","br","col","hr","img","input","isindex","embed"]),t.TOP_LEVEL_TAGS=new a.default(["h1","h2","h3","h4","h5","p","ul","ol","table","blockquote","pre","hr","form"])},function(e,t,n){var r=n(299);e.exports=r},function(e,t,n){n(300),n(69),n(51),n(52);var r=n(10);e.exports=r.Set},function(e,t,n){"use strict";var r=n(121),i=n(123);e.exports=r("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},i)},function(e,t){function n(){}n.prototype={handler:null,startTagRe:/^<([^>\s\/]+)((\s+[^=>\s]+(\s*=\s*((\"[^"]*\")|(\'[^']*\')|[^>\s]+))?)*)\s*\/?\s*>/m,endTagRe:/^<\/([^>\s]+)[^>]*>/m,attrRe:/([^=\s]+)(\s*=\s*((\"([^"]*)\")|(\'([^']*)\')|[^>\s]+))?/gm,parse:function(e,t){t&&(this.contentHandler=t);for(var n,r,i,a=!1,o=this;e.length>0;)"\x3c!--"==e.substring(0,4)?-1!=(i=e.indexOf("--\x3e"))?(this.contentHandler.comment(e.substring(4,i)),e=e.substring(i+3),a=!1):a=!0:"</"==e.substring(0,2)?this.endTagRe.test(e)?(RegExp.leftContext,n=RegExp.lastMatch,r=RegExp.rightContext,n.replace(this.endTagRe,function(){return o.parseEndTag.apply(o,arguments)}),e=r,a=!1):a=!0:"<"==e.charAt(0)&&(this.startTagRe.test(e)?(RegExp.leftContext,n=RegExp.lastMatch,r=RegExp.rightContext,n.replace(this.startTagRe,function(){return o.parseStartTag.apply(o,arguments)}),e=r,a=!1):a=!0),a&&(-1==(i=e.indexOf("<"))?(this.contentHandler.characters(e),e=""):(this.contentHandler.characters(e.substring(0,i)),e=e.substring(i))),a=!0},parseStartTag:function(e,t,n){var r=this.parseAttributes(t,n);this.contentHandler.startElement(t,r)},parseEndTag:function(e,t){this.contentHandler.endElement(t)},parseAttributes:function(e,t){var n=this,r=[];return t.replace(this.attrRe,function(t,i,a,o,s,l,c,u){r.push(n.parseAttribute(e,t,i,a,o,s,l,c,u))}),r},parseAttribute:function(e,t,n){var r="";return arguments[7]?r=arguments[8]:arguments[5]?r=arguments[6]:arguments[3]&&(r=arguments[4]),{name:n,value:!r&&!arguments[3]?null:r}}},e.exports=n},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.default=function(e,t){t.push(function(t){e.selection.createRangeByElem(t),e.selection.restoreSelection()})}},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),a=r(n(4));(0,i.default)(t,"__esModule",{value:!0});var o=n(2),s=n(6),l=o.__importDefault(n(3));t.default=function e(t){var n=[],r=t.childNodes()||[];return(0,a.default)(r).call(r,function(t){var r,i=t.nodeType;if(3===i&&(r=t.textContent||"",r=s.replaceHtmlSymbol(r)),1===i){(r=r={}).tag=t.nodeName.toLowerCase();for(var a=[],o=t.attributes,c=o.length||0,u=0;u<c;u++){var h=o[u];a.push({name:h.name,value:h.value})}r.attrs=a,r.children=e(l.default(t))}r&&n.push(r)}),n}},function(e,t,n){"use strict";var r=n(0),i=r(n(94)),a=r(n(1)),o=r(n(4));(0,a.default)(t,"__esModule",{value:!0});var s=n(2).__importDefault(n(3));t.default=function e(t,n){void 0===n&&(n=document.createElement("div"));var r=n;return(0,o.default)(t).call(t,function(t){var n,a;"string"==typeof t&&(n=document.createTextNode(t)),"object"===(0,i.default)(t)&&(n=document.createElement(t.tag),(0,o.default)(a=t.attrs).call(a,function(e){s.default(n).attr(e.name,e.value)}),t.children&&t.children.length>0&&e(t.children,n.getRootNode())),n&&r.appendChild(n)}),s.default(r)}},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),a=r(n(91)),o=r(n(74)),s=r(n(55)),l=r(n(4)),c=r(n(130)),u=r(n(131)),h=r(n(45)),d=r(n(56));(0,i.default)(t,"__esModule",{value:!0});var f=n(2),p=f.__importDefault(n(119)),A=f.__importDefault(n(314)),g=f.__importDefault(n(3)),m=function(){function e(e){this.editor=e,this.menuList=[],this.constructorList=A.default}return e.prototype.extend=function(e,t){t&&"function"==typeof t&&(this.constructorList[e]=t)},e.prototype.init=function(){var e,t,n=this,r=this.editor.config,i=r.excludeMenus;!1===(0,a.default)(i)&&(i=[]),r.menus=(0,o.default)(e=r.menus).call(e,function(e){return!1===(0,s.default)(i).call(i,e)}),(0,l.default)(t=r.menus).call(t,function(e){var t=n.constructorList[e];n._initMenuList(e,t)});for(var u=0,h=(0,c.default)(p.default.globalCustomMenuConstructorList);u<h.length;u++){var d=h[u],f=d[0],A=d[1];this._initMenuList(f,A)}this._addToToolbar(),r.showMenuTooltips&&this._bindMenuTooltips()},e.prototype._initMenuList=function(e,t){var n;if(null!=t&&"function"==typeof t)if((0,u.default)(n=this.menuList).call(n,function(t){return t.key===e}))console.warn("菜单名称重复:"+e);else{var r=new t(this.editor);r.key=e,this.menuList.push(r)}},e.prototype._bindMenuTooltips=function(){var e=this.editor,t=e.$toolbarElem,n=e.config.menuTooltipPosition,r=g.default('<div class="w-e-menu-tooltip w-e-menu-tooltip-'+n+'">\n <div class="w-e-menu-tooltip-item-wrapper">\n <div></div>\n </div>\n </div>');r.css("visibility","hidden"),t.append(r),r.css("z-index",e.zIndex.get("tooltip"));var i=0;function a(){i&&clearTimeout(i)}function o(){a(),r.css("visibility","hidden")}t.on("mouseover",function(s){var l,c,u=s.target,d=g.default(u);if(d.isContain(t))o();else{if(null!=d.parentUntil(".w-e-droplist"))o();else if(d.attr("data-title"))l=d.attr("data-title"),c=d;else{var f=d.parentUntil(".w-e-menu");null!=f&&(l=f.attr("data-title"),c=f)}if(l&&c){a();var p=c.getOffsetData();r.text(e.i18next.t("menus.title."+l));var A=r.getOffsetData(),m=p.left+p.width/2-A.width/2;r.css("left",m+"px"),"up"===n?r.css("top",p.top-A.height-8+"px"):"down"===n&&r.css("top",p.top+p.height+8+"px"),i=(0,h.default)(function(){r.css("visibility","visible")},200)}else o()}}).on("mouseleave",function(){o()})},e.prototype._addToToolbar=function(){var e,t=this.editor.$toolbarElem;(0,l.default)(e=this.menuList).call(e,function(e){var n=e.$elem;n&&t.append(n)})},e.prototype.menuFind=function(e){for(var t=this.menuList,n=0,r=t.length;n<r;n++)if(t[n].key===e)return t[n];return t[0]},e.prototype.changeActive=function(){var e;(0,l.default)(e=this.menuList).call(e,function(e){var t;(0,h.default)((0,d.default)(t=e.tryChangeActive).call(t,e),100)})},e}();t.default=m},function(e,t,n){var r=n(307);e.exports=r},function(e,t,n){n(308);var r=n(10);e.exports=r.Object.entries},function(e,t,n){var r=n(5),i=n(309).entries;r({target:"Object",stat:!0},{entries:function(e){return i(e)}})},function(e,t,n){var r=n(15),i=n(63),a=n(27),o=n(58).f,s=function(e){return function(t){for(var n,s=a(t),l=i(s),c=l.length,u=0,h=[];c>u;)n=l[u++],r&&!o.call(s,n)||h.push(e?[n,s[n]]:s[n]);return h}};e.exports={entries:s(!0),values:s(!1)}},function(e,t,n){var r=n(311);e.exports=r},function(e,t,n){var r=n(312),i=Array.prototype;e.exports=function(e){var t=e.some;return e===i||e instanceof Array&&t===i.some?r:t}},function(e,t,n){n(313);var r=n(14);e.exports=r("Array").some},function(e,t,n){"use strict";var r=n(5),i=n(29).some;r({target:"Array",proto:!0,forced:!n(71)("some")},{some:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(2),i=r.__importDefault(n(315)),a=r.__importDefault(n(316)),o=r.__importDefault(n(321)),s=r.__importDefault(n(326)),l=r.__importDefault(n(327)),c=r.__importDefault(n(328)),u=r.__importDefault(n(329)),h=r.__importDefault(n(331)),d=r.__importDefault(n(333)),f=r.__importDefault(n(334)),p=r.__importDefault(n(337)),A=r.__importDefault(n(338)),g=r.__importDefault(n(339)),m=r.__importDefault(n(350)),v=r.__importDefault(n(364)),y=r.__importDefault(n(368)),b=r.__importDefault(n(136)),w=r.__importDefault(n(377)),x=r.__importDefault(n(379)),_=r.__importDefault(n(380)),C=r.__importDefault(n(381)),S=r.__importDefault(n(401)),k=r.__importDefault(n(406)),B=r.__importDefault(n(409));t.default={bold:i.default,head:a.default,italic:s.default,link:o.default,underline:l.default,strikeThrough:c.default,fontName:u.default,fontSize:h.default,justify:d.default,quote:f.default,backColor:p.default,foreColor:A.default,video:g.default,image:m.default,indent:v.default,emoticon:y.default,list:b.default,lineHeight:w.default,undo:x.default,redo:_.default,table:C.default,code:S.default,splitLine:k.default,todo:B.default}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(2),i=r.__importDefault(n(23)),a=r.__importDefault(n(3)),o=function(e){function t(t){var n=a.default('<div class="w-e-menu" data-title="加粗">\n <i class="w-e-icon-bold"></i>\n </div>');return e.call(this,n,t)||this}return r.__extends(t,e),t.prototype.clickHandler=function(){var e=this.editor,t=e.selection.isSelectionEmpty();t&&e.selection.createEmptyRange(),e.cmd.do("bold"),t&&(e.selection.collapseRange(),e.selection.restoreSelection())},t.prototype.tryChangeActive=function(){this.editor.cmd.queryCommandState("bold")?this.active():this.unActive()},t}(i.default);t.default=o},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),a=r(n(26)),o=r(n(30)),s=r(n(4)),l=r(n(317)),c=r(n(55));(0,i.default)(t,"__esModule",{value:!0});var u=n(2),h=u.__importDefault(n(24)),d=u.__importDefault(n(3)),f=n(6),p=n(7),A=function(e){function t(t){var n=this,r=d.default('<div class="w-e-menu" data-title="标题"><i class="w-e-icon-header"></i></div>'),i={width:100,title:"设置标题",type:"list",list:[{$elem:d.default("<h1>H1</h1>"),value:"<h1>"},{$elem:d.default("<h2>H2</h2>"),value:"<h2>"},{$elem:d.default("<h3>H3</h3>"),value:"<h3>"},{$elem:d.default("<h4>H4</h4>"),value:"<h4>"},{$elem:d.default("<h5>H5</h5>"),value:"<h5>"},{$elem:d.default("<p>"+t.i18next.t("menus.dropListMenu.head.正文")+"</p>"),value:"<p>"}],clickHandler:function(e){n.command(e)}};return n=e.call(this,r,t,i)||this,t.config.onCatalogChange&&(n.oldCatalogs=[],n.addListenerCatalog(),n.getCatalogs()),n}return u.__extends(t,e),t.prototype.command=function(e){var t=this.editor,n=t.selection.getSelectionContainerElem();if(n&&t.$textElem.equal(n))this.setMultilineHead(e);else{var r;if((0,a.default)(r=["OL","UL","LI","TABLE","TH","TR","CODE","HR"]).call(r,d.default(n).getNodeName())>-1)return;t.cmd.do("formatBlock",e)}"<p>"!==e&&this.addUidForSelectionElem()},t.prototype.addUidForSelectionElem=function(){var e=this.editor.selection.getSelectionContainerElem(),t=f.getRandomCode();d.default(e).attr("id",t)},t.prototype.addListenerCatalog=function(){var e=this;this.editor.txt.eventHooks.changeEvents.push(function(){e.getCatalogs()})},t.prototype.getCatalogs=function(){var e=this.editor,t=this.editor.$textElem,n=e.config.onCatalogChange,r=(0,o.default)(t).call(t,"h1,h2,h3,h4,h5"),i=[];(0,s.default)(r).call(r,function(e,t){var n=d.default(e),r=n.attr("id"),a=n.getNodeName(),o=n.text();r||(r=f.getRandomCode(),n.attr("id",r)),o&&i.push({tag:a,id:r,text:o})}),(0,l.default)(this.oldCatalogs)!==(0,l.default)(i)&&(this.oldCatalogs=i,n&&n(i))},t.prototype.setMultilineHead=function(e){var t,n,r=this,i=this.editor,a=i.selection,o=null===(t=a.getSelectionContainerElem())||void 0===t?void 0:t.elems[0],l=["IMG","VIDEO","TABLE","TH","TR","UL","OL","PRE","HR","BLOCKQUOTE"],c=d.default(a.getSelectionStartElem()),u=d.default(a.getSelectionEndElem());u.elems[0].outerHTML!==d.default(p.EMPTY_P).elems[0].outerHTML||u.elems[0].nextSibling||(u=u.prev());var h=[];h.push(c.getNodeTop(i));var f=[],A=null===(n=a.getRange())||void 0===n?void 0:n.commonAncestorContainer.childNodes;null===A||void 0===A||(0,s.default)(A).call(A,function(e,t){e===h[0].getNode()&&f.push(t),e===u.getNodeTop(i).getNode()&&f.push(t)});for(var g=0;h[g].getNode()!==u.getNodeTop(i).getNode();){if(!h[g].elems[0])return;var m=d.default(h[g].next().getNode());h.push(m),g++}null===h||void 0===h||(0,s.default)(h).call(h,function(t,n){if(!r.hasTag(t,l)){var i=d.default(e),a=t.parent().getNode();i.html(""+t.html()),a.insertBefore(i.getNode(),t.getNode()),t.remove()}}),a.createRangeByElems(o.children[f[0]],o.children[f[1]])},t.prototype.hasTag=function(e,t){var n,r=this;if(!e)return!1;if((0,c.default)(t).call(t,null===e||void 0===e?void 0:e.getNodeName()))return!0;var i=!1;return null===(n=e.children())||void 0===n||(0,s.default)(n).call(n,function(e){i=r.hasTag(d.default(e),t)}),i},t.prototype.tryChangeActive=function(){var e=this.editor.cmd.queryCommandValue("formatBlock");/^h/i.test(e)?this.active():this.unActive()},t}(h.default);t.default=A},function(e,t,n){e.exports=n(318)},function(e,t,n){var r=n(319);e.exports=r},function(e,t,n){n(320);var r=n(10);r.JSON||(r.JSON={stringify:JSON.stringify}),e.exports=function(e,t,n){return r.JSON.stringify.apply(null,arguments)}},function(e,t,n){var r=n(5),i=n(28),a=n(12),o=i("JSON","stringify"),s=/[\uD800-\uDFFF]/g,l=/^[\uD800-\uDBFF]$/,c=/^[\uDC00-\uDFFF]$/,u=function(e,t,n){var r=n.charAt(t-1),i=n.charAt(t+1);return l.test(e)&&!c.test(i)||c.test(e)&&!l.test(r)?"\\u"+e.charCodeAt(0).toString(16):e},h=a(function(){return'"\\udf06\\ud834"'!==o("\udf06\ud834")||'"\\udead"'!==o("\udead")});o&&r({target:"JSON",stat:!0,forced:h},{stringify:function(e,t,n){var r=o.apply(null,arguments);return"string"==typeof r?r.replace(s,u):r}})},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(2),i=r.__importDefault(n(35)),a=r.__importDefault(n(3)),o=r.__importDefault(n(322)),s=r.__importDefault(n(133)),l=r.__importDefault(n(31)),c=r.__importDefault(n(324)),u=function(e){function t(t){var n,r=a.default('<div class="w-e-menu" data-title="链接"><i class="w-e-icon-link"></i></div>');return n=e.call(this,r,t)||this,c.default(t),n}return r.__extends(t,e),t.prototype.clickHandler=function(){var e,t=this.editor;if(this.isActive){if(!(e=t.selection.getSelectionContainerElem()))return;this.createPanel(e.text(),e.attr("href"))}else t.selection.isSelectionEmpty()?this.createPanel("",""):this.createPanel(t.selection.getSelectionText(),"")},t.prototype.createPanel=function(e,t){var n=o.default(this.editor,e,t);new l.default(this,n).create()},t.prototype.tryChangeActive=function(){var e=this.editor;s.default(e)?this.active():this.unActive()},t}(i.default);t.default=u},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),a=r(n(19));(0,i.default)(t,"__esModule",{value:!0});var o=n(2),s=n(6),l=o.__importDefault(n(3)),c=o.__importDefault(n(133)),u=n(323);t.default=function(e,t,n){var r,i=s.getRandom("input-link"),o=s.getRandom("input-text"),h=s.getRandom("btn-ok"),d=s.getRandom("btn-del"),f=c.default(e)?"inline-block":"none";function p(){if(c.default(e)){var t=e.selection.getSelectionContainerElem();t&&(e.selection.createRangeByElem(t),e.selection.restoreSelection(),r=t)}}return{width:300,height:0,tabs:[{title:e.i18next.t("menus.panelMenus.link.链接"),tpl:'<div>\n <input\n id="'+o+'"\n type="text"\n class="block"\n value="'+t+'"\n placeholder="'+e.i18next.t("menus.panelMenus.link.链接文字")+'"/>\n </td>\n <input\n id="'+i+'"\n type="text"\n class="block"\n value="'+n+'"\n placeholder="'+e.i18next.t("如")+' https://..."/>\n </td>\n <div class="w-e-button-container">\n <button type="button" id="'+h+'" class="right">\n '+e.i18next.t("插入")+'\n </button>\n <button type="button" id="'+d+'" class="gray right" style="display:'+f+'">\n '+e.i18next.t("menus.panelMenus.link.取消链接")+"\n </button>\n </div>\n </div>",events:[{selector:"#"+h,type:"click",fn:function(){var t,n,r,s;e.selection.restoreSelection();var h=e.selection.getSelectionRangeTopNodes()[0].getNode(),d=window.getSelection(),f=l.default("#"+i),A=l.default("#"+o),g=(0,a.default)(t=f.val()).call(t),m=(0,a.default)(n=A.val()).call(n),v="";d&&!(null===d||void 0===d?void 0:d.isCollapsed)&&(v=null===(r=u.insertHtml(d,h))||void 0===r?void 0:(0,a.default)(r).call(r));var y=null===v||void 0===v?void 0:v.replace(/<.*?>/g,""),b=null!==(s=null===y||void 0===y?void 0:y.length)&&void 0!==s?s:0;if(b<=m.length){var w=m.substring(0,b),x=m.substring(b);y===w&&(m=v+x)}if(g&&(m||(m=g),function(t,n){var r=e.config.linkCheck(t,n);if(void 0===r);else{if(!0===r)return!0;e.config.customAlert(r,"warning")}return!1}(m,g)))return function(t,n){c.default(e)?(p(),e.cmd.do("insertHTML",'<a href="'+n+'" target="_blank">'+t+"</a>")):e.cmd.do("insertHTML",'<a href="'+n+'" target="_blank">'+t+"</a>")}(m,g),!0}},{selector:"#"+d,type:"click",fn:function(){return function(){if(c.default(e)){p();var t=r.text();e.cmd.do("insertHTML","<span>"+t+"</span>")}}(),!0}}]}]}}},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),a=r(n(4));function o(e,t){var n=e,r=e;do{if(n.textContent===t)break;r=n,n.parentNode&&(n=null===n||void 0===n?void 0:n.parentNode)}while("P"!==(null===n||void 0===n?void 0:n.nodeName));return r}function s(e,t){var n=e.nodeName,r="";if(3===e.nodeType)return t;if(1===e.nodeType){var i=e.getAttribute("style"),a=e.getAttribute("face"),o=e.getAttribute("color");i&&(r=r+' style="'+i+'"'),a&&(r=r+' face="'+a+'"'),o&&(r=r+' color="'+o+'"')}return"<"+(n=n.toLowerCase())+r+">"+t+"</"+n+">"}function l(e,t,n,r){var i,a=null===(i=t.textContent)||void 0===i?void 0:i.substring(n,r),o=t,l="";do{a=l=s(o,null!==a&&void 0!==a?a:""),o.parentElement&&(o=null===o||void 0===o?void 0:o.parentElement)}while(o.textContent!==e);return l}function c(e,t){return(0,a.default)(e).call(e,function(e){t=s(e,t)}),t}(0,i.default)(t,"__esModule",{value:!0}),t.insertHtml=t.createPartHtml=t.makeHtmlString=t.getTopNode=void 0,t.getTopNode=o,t.makeHtmlString=s,t.createPartHtml=l,t.insertHtml=function(e,t){var n,r,i,a,u,h=e.anchorNode,d=e.focusNode,f=e.anchorOffset,p=e.focusOffset,A=null!==(n=t.textContent)&&void 0!==n?n:"",g=function(e){for(var t,n=null!==(t=e.textContent)&&void 0!==t?t:"",r=[];(null===e||void 0===e?void 0:e.textContent)===n;)"P"!==e.nodeName&&r.push(e),e=e.childNodes[0];return r}(t),m="",v="",y="",b=h,w=d,x=h;if(null===h||void 0===h?void 0:h.isEqualNode(null!==d&&void 0!==d?d:null)){var _=l(A,h,f,p);return _=c(g,_)}for(h&&(m=l(A,h,null!==f&&void 0!==f?f:0)),d&&(y=l(A,d,0,p)),h&&(b=o(h,A)),d&&(w=o(d,A)),x=null!==(r=null===b||void 0===b?void 0:b.nextSibling)&&void 0!==r?r:h;!(null===x||void 0===x?void 0:x.isEqualNode(null!==w&&void 0!==w?w:null));){if("#text"===(null===x||void 0===x?void 0:x.nodeName))v+=null===x||void 0===x?void 0:x.textContent;else{var C=null===(a=null===(i=null===x||void 0===x?void 0:x.firstChild)||void 0===i?void 0:i.parentElement)||void 0===a?void 0:a.innerHTML;x&&(v+=s(x,null!==C&&void 0!==C?C:""))}x=null!==(u=null===x||void 0===x?void 0:x.nextSibling)&&void 0!==u?u:x}return c(g,""+m+v+y)}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(2).__importDefault(n(325));t.default=function(e){r.default(e)}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(2),i=r.__importDefault(n(3)),a=r.__importDefault(n(36));t.default=function(e){var t=function(e){var t;return{showLinkTooltip:function(n){var r=[{$elem:i.default("<span>"+e.i18next.t("menus.panelMenus.link.查看链接")+"</span>"),onClick:function(e,t){var n=t.attr("href");return window.open(n,"_target"),!0}},{$elem:i.default("<span>"+e.i18next.t("menus.panelMenus.link.取消链接")+"</span>"),onClick:function(e,t){e.selection.createRangeByElem(t),e.selection.restoreSelection();var n=t.text();return e.cmd.do("insertHTML","<span>"+n+"</span>"),!0}}];(t=new a.default(e,n,r)).create()},hideLinkTooltip:function(){t&&(t.remove(),t=null)}}}(e),n=t.showLinkTooltip,r=t.hideLinkTooltip;e.txt.eventHooks.linkClickEvents.push(n),e.txt.eventHooks.clickEvents.push(r),e.txt.eventHooks.keyupEvents.push(r),e.txt.eventHooks.toolbarClickEvents.push(r),e.txt.eventHooks.menuClickEvents.push(r),e.txt.eventHooks.textScrollEvents.push(r)}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(2),i=r.__importDefault(n(23)),a=r.__importDefault(n(3)),o=function(e){function t(t){var n=a.default('<div class="w-e-menu" data-title="斜体">\n <i class="w-e-icon-italic"></i>\n </div>');return e.call(this,n,t)||this}return r.__extends(t,e),t.prototype.clickHandler=function(){var e=this.editor,t=e.selection.isSelectionEmpty();t&&e.selection.createEmptyRange(),e.cmd.do("italic"),t&&(e.selection.collapseRange(),e.selection.restoreSelection())},t.prototype.tryChangeActive=function(){this.editor.cmd.queryCommandState("italic")?this.active():this.unActive()},t}(i.default);t.default=o},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(2),i=r.__importDefault(n(23)),a=r.__importDefault(n(3)),o=function(e){function t(t){var n=a.default('<div class="w-e-menu" data-title="下划线">\n <i class="w-e-icon-underline"></i>\n </div>');return e.call(this,n,t)||this}return r.__extends(t,e),t.prototype.clickHandler=function(){var e=this.editor,t=e.selection.isSelectionEmpty();t&&e.selection.createEmptyRange(),e.cmd.do("underline"),t&&(e.selection.collapseRange(),e.selection.restoreSelection())},t.prototype.tryChangeActive=function(){this.editor.cmd.queryCommandState("underline")?this.active():this.unActive()},t}(i.default);t.default=o},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(2),i=r.__importDefault(n(23)),a=r.__importDefault(n(3)),o=function(e){function t(t){var n=a.default('<div class="w-e-menu" data-title="删除线">\n <i class="w-e-icon-strikethrough"></i>\n </div>');return e.call(this,n,t)||this}return r.__extends(t,e),t.prototype.clickHandler=function(){var e=this.editor,t=e.selection.isSelectionEmpty();t&&e.selection.createEmptyRange(),e.cmd.do("strikeThrough"),t&&(e.selection.collapseRange(),e.selection.restoreSelection())},t.prototype.tryChangeActive=function(){this.editor.cmd.queryCommandState("strikeThrough")?this.active():this.unActive()},t}(i.default);t.default=o},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(2),i=r.__importDefault(n(24)),a=r.__importDefault(n(3)),o=r.__importDefault(n(330)),s=function(e){function t(t){var n=this,r=a.default('<div class="w-e-menu" data-title="字体">\n <i class="w-e-icon-font"></i>\n </div>'),i={width:100,title:"设置字体",type:"list",list:new o.default(t.config.fontNames).getItemList(),clickHandler:function(e){n.command(e)}};return n=e.call(this,r,t,i)||this}return r.__extends(t,e),t.prototype.command=function(e){var t,n=this.editor,r=n.selection.isSelectionEmpty(),i=null===(t=n.selection.getSelectionContainerElem())||void 0===t?void 0:t.elems[0];if(null!=i){var a="p"!==(null===i||void 0===i?void 0:i.nodeName.toLowerCase()),o=(null===i||void 0===i?void 0:i.getAttribute("face"))===e;if(r){if(a&&!o){var s=n.selection.getSelectionRangeTopNodes();n.selection.createRangeByElem(s[0]),n.selection.moveCursor(s[0].elems[0])}n.selection.setRangeToElem(i),n.selection.createEmptyRange()}n.cmd.do("fontName",e),r&&(n.selection.collapseRange(),n.selection.restoreSelection())}},t.prototype.tryChangeActive=function(){},t}(i.default);t.default=s},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),a=r(n(4));(0,i.default)(t,"__esModule",{value:!0});var o=n(2).__importDefault(n(3)),s=function(){function e(e){var t=this;this.itemList=[],(0,a.default)(e).call(e,function(e){t.itemList.push({$elem:o.default("<p style=\"font-family:'"+e+"'\">"+e+"</p>"),value:e})})}return e.prototype.getItemList=function(){return this.itemList},e}();t.default=s},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(2),i=r.__importDefault(n(24)),a=r.__importDefault(n(3)),o=r.__importDefault(n(332)),s=function(e){function t(t){var n=this,r=a.default('<div class="w-e-menu" data-title="字号">\n <i class="w-e-icon-text-heigh"></i>\n </div>'),i={width:160,title:"设置字号",type:"list",list:new o.default(t.config.fontSizes).getItemList(),clickHandler:function(e){n.command(e)}};return n=e.call(this,r,t,i)||this}return r.__extends(t,e),t.prototype.command=function(e){var t,n=this.editor,r=n.selection.isSelectionEmpty(),i=null===(t=n.selection.getSelectionContainerElem())||void 0===t?void 0:t.elems[0];if(null!=i){var a="p"!==(null===i||void 0===i?void 0:i.nodeName.toLowerCase()),o=(null===i||void 0===i?void 0:i.getAttribute("size"))===e;if(r){if(a&&!o){var s=n.selection.getSelectionRangeTopNodes(),l=s[0].elems[0];n.selection.createRangeByElem(s[0]),n.selection.moveCursor(l),i=l}n.selection.setRangeToElem(i),n.selection.createEmptyRange()}n.cmd.do("fontSize",e),r&&(n.selection.collapseRange(),n.selection.restoreSelection())}},t.prototype.tryChangeActive=function(){},t}(i.default);t.default=s},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(2).__importDefault(n(3)),i=function(){function e(e){for(var t in this.itemList=[],e){var n=e[t];this.itemList.push({$elem:r.default('<p style="font-size:'+t+'">'+n.name+"</p>"),value:n.value})}}return e.prototype.getItemList=function(){return this.itemList},e}();t.default=i},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),a=r(n(4)),o=r(n(26));(0,i.default)(t,"__esModule",{value:!0});var s=n(2),l=s.__importDefault(n(24)),c=s.__importDefault(n(3)),u=["LI"],h=["UL","BLOCKQUOTE"],d=function(e){function t(t){var n=this,r=c.default('<div class="w-e-menu" data-title="对齐"><i class="w-e-icon-paragraph-left"></i></div>'),i={width:100,title:"对齐方式",type:"list",list:[{$elem:c.default('<p>\n <i class="w-e-icon-paragraph-left w-e-drop-list-item"></i>\n '+t.i18next.t("menus.dropListMenu.justify.靠左")+"\n </p>"),value:"left"},{$elem:c.default('<p>\n <i class="w-e-icon-paragraph-center w-e-drop-list-item"></i>\n '+t.i18next.t("menus.dropListMenu.justify.居中")+"\n </p>"),value:"center"},{$elem:c.default('<p>\n <i class="w-e-icon-paragraph-right w-e-drop-list-item"></i>\n '+t.i18next.t("menus.dropListMenu.justify.靠右")+"\n </p>"),value:"right"},{$elem:c.default('<p>\n <i class="w-e-icon-paragraph-justify w-e-drop-list-item"></i>\n '+t.i18next.t("menus.dropListMenu.justify.两端")+"\n </p>"),value:"justify"}],clickHandler:function(e){n.command(e)}};return n=e.call(this,r,t,i)||this}return s.__extends(t,e),t.prototype.command=function(e){var t=this.editor,n=t.selection,r=n.getSelectionContainerElem();n.saveRange();var i=t.selection.getSelectionRangeTopNodes();if(null===r||void 0===r?void 0:r.length)if(this.isSpecialNode(r,i[0])||this.isSpecialTopNode(i[0])){var o=this.getSpecialNodeUntilTop(r,i[0]);if(null==o)return;c.default(o).css("text-align",e)}else(0,a.default)(i).call(i,function(t){t.css("text-align",e)});n.restoreSelection()},t.prototype.getSpecialNodeUntilTop=function(e,t){for(var n=e.elems[0],r=t.elems[0];null!=n;){if(-1!==(0,o.default)(u).call(u,null===n||void 0===n?void 0:n.nodeName))return n;if(n.parentNode===r)return n;n=n.parentNode}return n},t.prototype.isSpecialNode=function(e,t){var n=this.getSpecialNodeUntilTop(e,t);return null!=n&&-1!==(0,o.default)(u).call(u,n.nodeName)},t.prototype.isSpecialTopNode=function(e){var t;return null!=e&&-1!==(0,o.default)(h).call(h,null===(t=e.elems[0])||void 0===t?void 0:t.nodeName)},t.prototype.tryChangeActive=function(){},t}(l.default);t.default=d},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),a=r(n(4));(0,i.default)(t,"__esModule",{value:!0});var o=n(2),s=o.__importDefault(n(3)),l=o.__importDefault(n(23)),c=o.__importDefault(n(335)),u=o.__importDefault(n(336)),h=n(7),d=function(e){function t(t){var n,r=s.default('<div class="w-e-menu" data-title="引用">\n <i class="w-e-icon-quotes-left"></i>\n </div>');return n=e.call(this,r,t)||this,c.default(t),n}return o.__extends(t,e),t.prototype.clickHandler=function(){var e,t=this.editor,n=t.selection.isSelectionEmpty(),r=t.selection.getSelectionRangeTopNodes(),i=r[r.length-1];if("BLOCKQUOTE"!==this.getTopNodeName()){var o=u.default(r);o.insertAfter(i),this.delSelectNode(r);var l=null===(e=o.childNodes())||void 0===e?void 0:e.last().getNode();if(null==l)return;return l.textContent?t.selection.moveCursor(l):t.selection.moveCursor(l,0),this.tryChangeActive(),void s.default(h.EMPTY_P).insertAfter(o)}var c=s.default(i.childNodes()),d=c.length,f=i;(0,a.default)(c).call(c,function(e){var t=s.default(e);t.insertAfter(f),f=t}),i.remove(),t.selection.moveCursor(c.elems[d-1]),this.tryChangeActive(),n&&(t.selection.collapseRange(),t.selection.restoreSelection())},t.prototype.tryChangeActive=function(){var e;"BLOCKQUOTE"===(null===(e=this.editor.selection.getSelectionRangeTopNodes()[0])||void 0===e?void 0:e.getNodeName())?this.active():this.unActive()},t.prototype.getTopNodeName=function(){var e=this.editor.selection.getSelectionRangeTopNodes()[0];return null===e||void 0===e?void 0:e.getNodeName()},t.prototype.delSelectNode=function(e){(0,a.default)(e).call(e,function(e){e.remove()})},t}(l.default);t.default=d},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(2),i=n(7),a=r.__importDefault(n(3));t.default=function(e){e.txt.eventHooks.enterDownEvents.push(function(t){var n,r=e.selection.getSelectionContainerElem(),o=e.selection.getSelectionRangeTopNodes()[0];if("BLOCKQUOTE"===(null===o||void 0===o?void 0:o.getNodeName())){if("BLOCKQUOTE"===r.getNodeName()){var s=null===(n=r.childNodes())||void 0===n?void 0:n.getNode();e.selection.moveCursor(s)}if(""===r.text()){t.preventDefault(),r.remove();var l=a.default(i.EMPTY_P);l.insertAfter(o),e.selection.moveCursor(l.getNode(),0)}""===o.text()&&o.remove()}})}},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),a=r(n(4));(0,i.default)(t,"__esModule",{value:!0});var o=n(2).__importDefault(n(3));t.default=function(e){var t=o.default("<blockquote></blockquote>");return(0,a.default)(e).call(e,function(e){t.append(e.clone(!0))}),t}},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),a=r(n(25));(0,i.default)(t,"__esModule",{value:!0});var o=n(2),s=o.__importDefault(n(24)),l=o.__importDefault(n(3)),c=n(6),u=function(e){function t(t){var n,r=this,i=l.default('<div class="w-e-menu" data-title="背景色">\n <i class="w-e-icon-paint-brush"></i>\n </div>'),o={width:120,title:"背景颜色",type:"inline-block",list:(0,a.default)(n=t.config.colors).call(n,function(e){return{$elem:l.default('<i style="color:'+e+';" class="w-e-icon-paint-brush"></i>'),value:e}}),clickHandler:function(e){r.command(e)}};return r=e.call(this,i,t,o)||this}return o.__extends(t,e),t.prototype.command=function(e){var t,n=this.editor,r=n.selection.isSelectionEmpty(),i=null===(t=n.selection.getSelectionContainerElem())||void 0===t?void 0:t.elems[0];if(null!=i){var a="p"!==(null===i||void 0===i?void 0:i.nodeName.toLowerCase()),o=null===i||void 0===i?void 0:i.style.backgroundColor,s=c.hexToRgb(e)===o;if(r){if(a&&!s){var l=n.selection.getSelectionRangeTopNodes();n.selection.createRangeByElem(l[0]),n.selection.moveCursor(l[0].elems[0])}n.selection.createEmptyRange()}n.cmd.do("backColor",e),r&&(n.selection.collapseRange(),n.selection.restoreSelection())}},t.prototype.tryChangeActive=function(){},t}(s.default);t.default=u},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),a=r(n(25));(0,i.default)(t,"__esModule",{value:!0});var o=n(2),s=o.__importDefault(n(24)),l=o.__importDefault(n(3)),c=function(e){function t(t){var n,r=this,i=l.default('<div class="w-e-menu" data-title="文字颜色">\n <i class="w-e-icon-pencil2"></i>\n </div>'),o={width:120,title:"文字颜色",type:"inline-block",list:(0,a.default)(n=t.config.colors).call(n,function(e){return{$elem:l.default('<i style="color:'+e+';" class="w-e-icon-pencil2"></i>'),value:e}}),clickHandler:function(e){r.command(e)}};return r=e.call(this,i,t,o)||this}return o.__extends(t,e),t.prototype.command=function(e){var t,n=this.editor,r=n.selection.isSelectionEmpty(),i=null===(t=n.selection.getSelectionContainerElem())||void 0===t?void 0:t.elems[0];if(null!=i){var a="p"!==(null===i||void 0===i?void 0:i.nodeName.toLowerCase()),o=(null===i||void 0===i?void 0:i.getAttribute("color"))===e;if(r){if(a&&!o){var s=n.selection.getSelectionRangeTopNodes();n.selection.createRangeByElem(s[0]),n.selection.moveCursor(s[0].elems[0])}n.selection.setRangeToElem(i),n.selection.createEmptyRange()}var c=n.selection.getSelectionText();if("A"===i.nodeName&&i.textContent===c){var u=l.default("<span>&#8203;</span>").getNode();i.appendChild(u)}n.cmd.do("foreColor",e),r&&(n.selection.collapseRange(),n.selection.restoreSelection())}},t.prototype.tryChangeActive=function(){},t}(s.default);t.default=c},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(2),i=r.__importDefault(n(3)),a=r.__importDefault(n(31)),o=r.__importDefault(n(35)),s=r.__importDefault(n(340)),l=r.__importDefault(n(346)),c=function(e){function t(t){var n,r=i.default('<div class="w-e-menu" data-title="视频">\n <i class="w-e-icon-play"></i>\n </div>');return n=e.call(this,r,t)||this,l.default(t),n}return r.__extends(t,e),t.prototype.clickHandler=function(){this.createPanel("")},t.prototype.createPanel=function(e){var t=s.default(this.editor,e);new a.default(this,t).create()},t.prototype.tryChangeActive=function(){},t}(o.default);t.default=c},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),a=r(n(19));(0,i.default)(t,"__esModule",{value:!0});var o=n(2),s=n(6),l=o.__importDefault(n(3)),c=o.__importDefault(n(341)),u=n(7);t.default=function(e,t){var n=e.config,r=new c.default(e),i=s.getRandom("input-iframe"),o=s.getRandom("btn-ok"),h=s.getRandom("input-upload"),d=s.getRandom("btn-local-ok"),f=[{title:e.i18next.t("menus.panelMenus.video.上传视频"),tpl:'<div class="w-e-up-video-container">\n <div id="'+d+'" class="w-e-up-btn">\n <i class="w-e-icon-upload2"></i>\n </div>\n <div style="display:none;">\n <input id="'+h+'" type="file" accept="video/*"/>\n </div>\n </div>',events:[{selector:"#"+d,type:"click",fn:function(){var e=l.default("#"+h).elems[0];if(!e)return!0;e.click()}},{selector:"#"+h,type:"change",fn:function(){var e=l.default("#"+h).elems[0];if(!e)return!0;var t=e.files;return t.length&&r.uploadVideo(t),!0}}]},{title:e.i18next.t("menus.panelMenus.video.插入视频"),tpl:'<div>\n <input \n id="'+i+'" \n type="text" \n class="block" \n placeholder="'+e.i18next.t("如")+':<iframe src=... ></iframe>"/>\n </td>\n <div class="w-e-button-container">\n <button type="button" id="'+o+'" class="right">\n '+e.i18next.t("插入")+"\n </button>\n </div>\n </div>",events:[{selector:"#"+o,type:"click",fn:function(){var t,n=l.default("#"+i),r=(0,a.default)(t=n.val()).call(t);if(r&&function(t){var n=e.config.onlineVideoCheck(t);return!0===n||("string"==typeof n&&e.config.customAlert(n,"error"),!1)}(r))return function(t){e.cmd.do("insertHTML",t+u.EMPTY_P),e.config.onlineVideoCallback(t)}(r),!0}}]}],p={width:300,height:0,tabs:[]};return window.FileReader&&(n.uploadVideoServer||n.customUploadVideo)&&p.tabs.push(f[0]),n.showLinkVideo&&p.tabs.push(f[1]),p}},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),a=r(n(131)),o=r(n(56)),s=r(n(4)),l=r(n(26));(0,i.default)(t,"__esModule",{value:!0});var c=n(2),u=n(6),h=c.__importDefault(n(134)),d=c.__importDefault(n(135)),f=n(7),p=n(6),A=function(){function e(e){this.editor=e}return e.prototype.uploadVideo=function(e){var t=this;if(e.length){var n=this.editor,r=n.config,i=function(e){return n.i18next.t("validate."+e)},c=r.uploadVideoServer,f=r.uploadVideoMaxSize/1024,p=r.uploadVideoName,A=r.uploadVideoParams,g=r.uploadVideoParamsWithUrl,m=r.uploadVideoHeaders,v=r.uploadVideoHooks,y=r.uploadVideoTimeout,b=r.withVideoCredentials,w=r.customUploadVideo,x=r.uploadVideoAccept,_=[],C=[];if(u.arrForEach(e,function(e){var t=e.name,n=e.size/1024/1024;t&&n&&(x instanceof Array?(0,a.default)(x).call(x,function(e){return e===t.split(".")[t.split(".").length-1]})?f<n?C.push("【"+t+"】"+i("大于")+" "+f+"M"):_.push(e):C.push("【"+t+"】"+i("不是视频")):C.push("【"+x+"】"+i("uploadVideoAccept 不是Array")))}),C.length)r.customAlert(i("视频验证未通过")+": \n"+C.join("\n"),"warning");else if(0!==_.length)if(w&&"function"==typeof w){var S;w(_,(0,o.default)(S=this.insertVideo).call(S,this))}else{var k=new FormData;if((0,s.default)(_).call(_,function(e,t){var n=p||e.name;_.length>1&&(n+=t+1),k.append(n,e)}),c){var B=c.split("#");c=B[0];var E=B[1]||"";(0,s.default)(u).call(u,A,function(e,t){g&&((0,l.default)(c).call(c,"?")>0?c+="&":c+="?",c=c+e+"="+t),k.append(e,t)}),E&&(c+="#"+E);var T=h.default(c,{timeout:y,formData:k,headers:m,withCredentials:!!b,beforeSend:function(e){if(v.before)return v.before(e,n,_)},onTimeout:function(e){r.customAlert(i("上传视频超时"),"error"),v.timeout&&v.timeout(e,n)},onProgress:function(e,t){var r=new d.default(n);t.lengthComputable&&(e=t.loaded/t.total,r.show(e))},onError:function(e){r.customAlert(i("上传视频错误"),"error",i("上传视频错误")+","+i("服务器返回状态")+": "+e.status),v.error&&v.error(e,n)},onFail:function(e,t){r.customAlert(i("上传视频失败"),"error",i("上传视频返回结果错误")+","+i("返回结果")+": "+t),v.fail&&v.fail(e,n,t)},onSuccess:function(e,a){if(v.customInsert){var s;v.customInsert((0,o.default)(s=t.insertVideo).call(s,t),a,n)}else{if("0"!=a.errno)return r.customAlert(i("上传视频失败"),"error",i("上传视频返回结果错误")+","+i("返回结果")+" errno="+a.errno),void(v.fail&&v.fail(e,n,a));var l=a.data;t.insertVideo(l.url),v.success&&v.success(e,n,a)}}});"string"==typeof T&&r.customAlert(T,"error")}}else r.customAlert(i("传入的文件不合法"),"warning")}},e.prototype.insertVideo=function(e){var t=this.editor,n=t.config,r=function(e,n){return void 0===n&&(n="validate."),t.i18next.t(n+e)};if(n.customInsertVideo)n.customInsertVideo(e);else{p.UA.isFirefox?t.cmd.do("insertHTML",'<p data-we-video-p="true"><video src="'+e+'" controls="controls" style="max-width:100%"></video></p><p>&#8203</p>'):t.cmd.do("insertHTML",'<video src="'+e+'" controls="controls" style="max-width:100%"></video>'+f.EMPTY_P);var i=document.createElement("video");i.onload=function(){i=null},i.onerror=function(){n.customAlert(r("插入视频错误"),"error","wangEditor: "+r("插入视频错误")+","+r("视频链接")+' "'+e+'",'+r("下载链接失败")),i=null},i.onabort=function(){return i=null},i.src=e}},e}();t.default=A},function(e,t,n){e.exports=n(343)},function(e,t,n){var r=n(344);e.exports=r},function(e,t,n){n(345);var r=n(10);e.exports=r.Date.now},function(e,t,n){n(5)({target:"Date",stat:!0},{now:function(){return(new Date).getTime()}})},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(2),i=r.__importDefault(n(347)),a=r.__importDefault(n(349));t.default=function(e){i.default(e),a.default(e)}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.createShowHideFn=void 0;var r=n(2),i=r.__importDefault(n(3)),a=r.__importDefault(n(36)),o=r.__importDefault(n(348));function s(e){var t,n=function(t,n){return void 0===n&&(n=""),e.i18next.t(n+t)};return{showVideoTooltip:function(r){var s=[{$elem:i.default("<span class='w-e-icon-trash-o'></span>"),onClick:function(e,t){return t.remove(),!0}},{$elem:i.default("<span>100%</span>"),onClick:function(e,t){return t.attr("width","100%"),t.removeAttr("height"),!0}},{$elem:i.default("<span>50%</span>"),onClick:function(e,t){return t.attr("width","50%"),t.removeAttr("height"),!0}},{$elem:i.default("<span>30%</span>"),onClick:function(e,t){return t.attr("width","30%"),t.removeAttr("height"),!0}},{$elem:i.default("<span>"+n("重置")+"</span>"),onClick:function(e,t){return t.removeAttr("width"),t.removeAttr("height"),!0}},{$elem:i.default("<span>"+n("menus.justify.靠左")+"</span>"),onClick:function(e,t){return o.default(t,"left"),!0}},{$elem:i.default("<span>"+n("menus.justify.居中")+"</span>"),onClick:function(e,t){return o.default(t,"center"),!0}},{$elem:i.default("<span>"+n("menus.justify.靠右")+"</span>"),onClick:function(e,t){return o.default(t,"right"),!0}}];(t=new a.default(e,r,s)).create()},hideVideoTooltip:function(){t&&(t.remove(),t=null)}}}t.createShowHideFn=s,t.default=function(e){var t=s(e),n=t.showVideoTooltip,r=t.hideVideoTooltip;e.txt.eventHooks.videoClickEvents.push(n),e.txt.eventHooks.clickEvents.push(r),e.txt.eventHooks.keyupEvents.push(r),e.txt.eventHooks.toolbarClickEvents.push(r),e.txt.eventHooks.menuClickEvents.push(r),e.txt.eventHooks.textScrollEvents.push(r),e.txt.eventHooks.changeEvents.push(r)}},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),a=r(n(55));(0,i.default)(t,"__esModule",{value:!0});var o=n(2).__importDefault(n(3));t.default=function(e,t){var n=function(e,t){for(var n,r=e.elems[0];null!=r;){if((0,a.default)(t).call(t,null===r||void 0===r?void 0:r.nodeName))return r;if("BODY"===(null===(n=null===r||void 0===r?void 0:r.parentNode)||void 0===n?void 0:n.nodeName))return null;r=r.parentNode}return r}(e,["P"]);n&&o.default(n).css("text-align",t)}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(6);t.default=function(e){if(r.UA.isFirefox){var t=e.txt,n=e.selection;t.eventHooks.keydownEvents.push(function(t){var r=n.getSelectionContainerElem();if(r){var i=r.getNodeTop(e),a=i.length&&i.prev().length?i.prev():null;a&&a.attr("data-we-video-p")&&0===n.getCursorPos()&&8===t.keyCode&&a.remove()}})}}},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),a=r(n(25));(0,i.default)(t,"__esModule",{value:!0});var o=n(2),s=n(7),l=o.__importDefault(n(3)),c=o.__importDefault(n(31)),u=o.__importDefault(n(35)),h=o.__importDefault(n(351)),d=o.__importDefault(n(363)),f=function(e){function t(t){var n,r=this,i=l.default('<div class="w-e-menu" data-title="图片"><i class="w-e-icon-image"></i></div>'),o=d.default(t);o.onlyUploadConf&&(i=o.onlyUploadConf.$elem,(0,a.default)(n=o.onlyUploadConf.events).call(n,function(e){var t=e.type,n=e.fn||s.EMPTY_FN;i.on(t,function(e){e.stopPropagation(),n(e)})}));return(r=e.call(this,i,t)||this).imgPanelConfig=o,h.default(t),r}return o.__extends(t,e),t.prototype.clickHandler=function(){this.imgPanelConfig.onlyUploadConf||this.createPanel()},t.prototype.createPanel=function(){var e=this.imgPanelConfig,t=new c.default(this,e);this.setPanel(t),t.create()},t.prototype.tryChangeActive=function(){},t}(u.default);t.default=f},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(2),i=r.__importDefault(n(352)),a=r.__importDefault(n(353)),o=r.__importDefault(n(354)),s=r.__importDefault(n(362));t.default=function(e){i.default(e),a.default(e),o.default(e),s.default(e)}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(2),i=n(128),a=r.__importDefault(n(97));function o(e,t){if(function(e,t){for(var n,r=(null===(n=t.clipboardData)||void 0===n?void 0:n.types)||[],i=0;i<r.length;i++)if("Files"===r[i])return!0;return!1}(0,e)||!function(e,t){var n=e.config,r=n.pasteFilterStyle,a=n.pasteIgnoreImg;return!!i.getPasteHtml(t,r,a)||!!i.getPasteText(t)}(t,e)){var n=i.getPasteImgs(e);if(n.length)new a.default(t).uploadImg(n)}}t.default=function(e){e.txt.eventHooks.pasteEvents.unshift(function(t){o(t,e)})}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(2).__importDefault(n(97));t.default=function(e){e.txt.eventHooks.dropEvents.push(function(t){var n=t.dataTransfer&&t.dataTransfer.files;n&&n.length&&new r.default(e).uploadImg(n)})}},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),a=r(n(30)),o=r(n(355));(0,i.default)(t,"__esModule",{value:!0}),t.createShowHideFn=void 0;var s=n(2).__importDefault(n(3));n(360);var l=n(6);function c(e,t,n,r,i){e.attr("style","width:"+t+"px; height:"+n+"px; left:"+r+"px; top:"+i+"px;")}function u(e){var t,n=e.$textContainerElem,r=function(e,t){var n=s.default('<div class="w-e-img-drag-mask">\n <div class="w-e-img-drag-show-size"></div>\n <div class="w-e-img-drag-rb"></div>\n </div>');return n.hide(),t.append(n),n}(0,n);function i(){(0,a.default)(n).call(n,".w-e-img-drag-mask").hide()}return function(e,n){e.on("click",function(e){e.stopPropagation()}),e.on("mousedown",".w-e-img-drag-rb",function(r){if(r.preventDefault(),t){var i=r.clientX,l=r.clientY,u=n.getBoundingClientRect(),h=t.getBoundingClientRect(),d=h.width,f=h.height,p=h.left-u.left,A=h.top-u.top,g=d/f,m=d,v=f,y=s.default(document);y.on("mousemove",w),y.on("mouseup",x),y.on("mouseleave",b)}function b(){y.off("mousemove",w),y.off("mouseup",x)}function w(t){t.stopPropagation(),t.preventDefault(),m=d+(t.clientX-i),v=f+(t.clientY-l),m/v!=g&&(v=m/g),m=(0,o.default)(m.toFixed(2)),v=(0,o.default)(v.toFixed(2)),(0,a.default)(e).call(e,".w-e-img-drag-show-size").text(m.toFixed(2).replace(".00","")+"px * "+v.toFixed(2).replace(".00","")+"px"),c(e,m,v,p,A)}function x(){t.attr("width",m+""),t.attr("height",v+"");var n=t.getBoundingClientRect();c(e,m,v,n.left-u.left,n.top-u.top),b()}})}(r,n),s.default(document).on("click",i),e.beforeDestroy(function(){s.default(document).off("click",i)}),{showDrag:function(e){if(l.UA.isIE())return!1;e&&function(e,t,n){var r=e.getBoundingClientRect(),i=n.getBoundingClientRect(),s=i.width.toFixed(2),l=i.height.toFixed(2);(0,a.default)(t).call(t,".w-e-img-drag-show-size").text(s+"px * "+l+"px"),c(t,(0,o.default)(s),(0,o.default)(l),i.left-r.left,i.top-r.top),t.show()}(n,r,t=e)},hideDrag:i}}t.createShowHideFn=u,t.default=function(e){var t=u(e),n=t.showDrag,r=t.hideDrag;e.txt.eventHooks.imgClickEvents.push(n),e.txt.eventHooks.textScrollEvents.push(r),e.txt.eventHooks.keyupEvents.push(r),e.txt.eventHooks.toolbarClickEvents.push(r),e.txt.eventHooks.menuClickEvents.push(r),e.txt.eventHooks.changeEvents.push(r)}},function(e,t,n){e.exports=n(356)},function(e,t,n){var r=n(357);e.exports=r},function(e,t,n){n(358);var r=n(10);e.exports=r.parseFloat},function(e,t,n){var r=n(5),i=n(359);r({global:!0,forced:parseFloat!=i},{parseFloat:i})},function(e,t,n){var r=n(8),i=n(92).trim,a=n(72),o=r.parseFloat,s=1/o(a+"-0")!=-1/0;e.exports=s?function(e){var t=i(String(e)),n=o(t);return 0===n&&"-"==t.charAt(0)?-0:n}:o},function(e,t,n){var r=n(21),i=n(361);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var a={insert:"head",singleton:!1};r(i,a);e.exports=i.locals||{}},function(e,t,n){(t=n(22)(!1)).push([e.i,".w-e-text-container {\n overflow: hidden;\n}\n.w-e-img-drag-mask {\n position: absolute;\n z-index: 1;\n border: 1px dashed #ccc;\n box-sizing: border-box;\n}\n.w-e-img-drag-mask .w-e-img-drag-rb {\n position: absolute;\n right: -5px;\n bottom: -5px;\n width: 16px;\n height: 16px;\n border-radius: 50%;\n background: #ccc;\n cursor: se-resize;\n}\n.w-e-img-drag-mask .w-e-img-drag-show-size {\n min-width: 110px;\n height: 22px;\n line-height: 22px;\n font-size: 14px;\n color: #999;\n position: absolute;\n left: 0;\n top: 0;\n background-color: #999;\n color: #fff;\n border-radius: 2px;\n padding: 0 5px;\n}\n",""]),e.exports=t},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.createShowHideFn=void 0;var r=n(2),i=r.__importDefault(n(3)),a=r.__importDefault(n(36));function o(e){var t,n=function(t,n){return void 0===n&&(n=""),e.i18next.t(n+t)};return{showImgTooltip:function(r){var o=[{$elem:i.default("<span class='w-e-icon-trash-o'></span>"),onClick:function(e,t){return e.selection.createRangeByElem(t),e.selection.restoreSelection(),e.cmd.do("delete"),!0}},{$elem:i.default("<span>30%</span>"),onClick:function(e,t){return t.attr("width","30%"),t.removeAttr("height"),!0}},{$elem:i.default("<span>50%</span>"),onClick:function(e,t){return t.attr("width","50%"),t.removeAttr("height"),!0}},{$elem:i.default("<span>100%</span>"),onClick:function(e,t){return t.attr("width","100%"),t.removeAttr("height"),!0}}];o.push({$elem:i.default("<span>"+n("重置")+"</span>"),onClick:function(e,t){return t.removeAttr("width"),t.removeAttr("height"),!0}}),r.attr("data-href")&&o.push({$elem:i.default("<span>"+n("查看链接")+"</span>"),onClick:function(e,t){var n=t.attr("data-href");return n&&(n=decodeURIComponent(n),window.open(n,"_target")),!0}}),(t=new a.default(e,r,o)).create()},hideImgTooltip:function(){t&&(t.remove(),t=null)}}}t.createShowHideFn=o,t.default=function(e){var t=o(e),n=t.showImgTooltip,r=t.hideImgTooltip;e.txt.eventHooks.imgClickEvents.push(n),e.txt.eventHooks.clickEvents.push(r),e.txt.eventHooks.keyupEvents.push(r),e.txt.eventHooks.toolbarClickEvents.push(r),e.txt.eventHooks.menuClickEvents.push(r),e.txt.eventHooks.textScrollEvents.push(r),e.txt.eventHooks.imgDragBarMouseDownEvents.push(r),e.txt.eventHooks.changeEvents.push(r)}},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),a=r(n(25)),o=r(n(19));(0,i.default)(t,"__esModule",{value:!0});var s=n(2),l=s.__importDefault(n(3)),c=n(6),u=s.__importDefault(n(97));t.default=function(e){var t,n=e.config,r=new u.default(e),i=c.getRandom("up-trigger-id"),s=c.getRandom("up-file-id"),h=c.getRandom("input-link-url"),d=c.getRandom("input-link-url-alt"),f=c.getRandom("input-link-url-href"),p=c.getRandom("btn-link"),A=function(t,n){return void 0===n&&(n="menus.panelMenus.image."),e.i18next.t(n+t)},g=1===n.uploadImgMaxLength?"":'multiple="multiple"',m=(0,a.default)(t=n.uploadImgAccept).call(t,function(e){return"image/"+e}).join(","),v=function(e,t,n){return'<div class="'+e+'" data-title="'+n+'">\n <div id="'+i+'" class="w-e-up-btn">\n <i class="'+t+'"></i>\n </div>\n <div style="display:none;">\n <input id="'+s+'" type="file" '+g+' accept="'+m+'"/>\n </div>\n </div>'},y=[{selector:"#"+i,type:"click",fn:function(){var e=n.uploadImgFromMedia;if(e&&"function"==typeof e)return e(),!0;var t=l.default("#"+s).elems[0];if(!t)return!0;t.click()}},{selector:"#"+s,type:"change",fn:function(){var e=l.default("#"+s).elems[0];if(!e)return!0;var t=e.files;return(null===t||void 0===t?void 0:t.length)&&r.uploadImg(t),!0}}],b=['<input\n id="'+h+'"\n type="text"\n class="block"\n placeholder="'+A("图片地址")+'"/>'];n.showLinkImgAlt&&b.push('\n <input\n id="'+d+'"\n type="text"\n class="block"\n placeholder="'+A("图片文字说明")+'"/>'),n.showLinkImgHref&&b.push('\n <input\n id="'+f+'"\n type="text"\n class="block"\n placeholder="'+A("跳转链接")+'"/>');var w=[{title:A("上传图片"),tpl:v("w-e-up-img-container","w-e-icon-upload2",""),events:y},{title:A("网络图片"),tpl:"<div>\n "+b.join("")+'\n <div class="w-e-button-container">\n <button type="button" id="'+p+'" class="right">'+A("插入","")+"</button>\n </div>\n </div>",events:[{selector:"#"+p,type:"click",fn:function(){var e,t,i,a,s,c,u,p=l.default("#"+h),A=(0,o.default)(e=p.val()).call(e);if(A&&(n.showLinkImgAlt&&(t=(0,o.default)(i=l.default("#"+d).val()).call(i)),n.showLinkImgHref&&(a=(0,o.default)(s=l.default("#"+f).val()).call(s)),c=A,!0===(u=n.linkImgCheck(c))||("string"==typeof u&&n.customAlert(u,"error"),0)))return r.insertImg(A,t,a),!0}}]}],x={width:300,height:0,tabs:[],onlyUploadConf:{$elem:l.default(v("w-e-menu","w-e-icon-image","图片")),events:y}};return window.FileReader&&(n.uploadImgShowBase64||n.uploadImgServer||n.customUploadImg||n.uploadImgFromMedia)&&x.tabs.push(w[0]),n.showLinkImg&&(x.tabs.push(w[1]),x.onlyUploadConf=void 0),x}},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),a=r(n(4));(0,i.default)(t,"__esModule",{value:!0});var o=n(2),s=o.__importDefault(n(3)),l=o.__importDefault(n(24)),c=o.__importDefault(n(365)),u=function(e){function t(t){var n=this,r=s.default('<div class="w-e-menu" data-title="缩进">\n <i class="w-e-icon-indent-increase"></i>\n </div>'),i={width:130,title:"设置缩进",type:"list",list:[{$elem:s.default('<p>\n <i class="w-e-icon-indent-increase w-e-drop-list-item"></i>\n '+t.i18next.t("menus.dropListMenu.indent.增加缩进")+"\n <p>"),value:"increase"},{$elem:s.default('<p>\n <i class="w-e-icon-indent-decrease w-e-drop-list-item"></i>\n '+t.i18next.t("menus.dropListMenu.indent.减少缩进")+"\n <p>"),value:"decrease"}],clickHandler:function(e){n.command(e)}};return n=e.call(this,r,t,i)||this}return o.__extends(t,e),t.prototype.command=function(e){var t=this.editor,n=t.selection.getSelectionContainerElem();if(n&&t.$textElem.equal(n)){var r=t.selection.getSelectionRangeTopNodes();r.length>0&&(0,a.default)(r).call(r,function(n){c.default(s.default(n),e,t)})}else n&&n.length>0&&(0,a.default)(n).call(n,function(n){c.default(s.default(n),e,t)});t.selection.restoreSelection(),this.tryChangeActive()},t.prototype.tryChangeActive=function(){var e=this.editor,t=e.selection.getSelectionStartElem(),n=s.default(t).getNodeTop(e);n.length<=0||(""!=n.elems[0].style.paddingLeft?this.active():this.unActive())},t}(l.default);t.default=u},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),a=r(n(44)),o=r(n(19));(0,i.default)(t,"__esModule",{value:!0});var s=n(2),l=s.__importDefault(n(366)),c=s.__importDefault(n(367)),u=/^(\d+)(\w+)$/,h=/^(\d+)%$/;function d(e){var t=e.config.indentation;if("string"==typeof t){if(u.test(t)){var n,r=(0,a.default)(n=(0,o.default)(t).call(t).match(u)).call(n,1,3),i=r[0],s=r[1];return{value:Number(i),unit:s}}if(h.test(t))return{value:Number((0,o.default)(t).call(t).match(h)[1]),unit:"%"}}else if(void 0!==t.value&&t.unit)return t;return{value:2,unit:"em"}}t.default=function(e,t,n){var r=e.getNodeTop(n);/^P$/i.test(r.getNodeName())&&("increase"===t?l.default(r,d(n)):"decrease"===t&&c.default(r,d(n)))}},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),a=r(n(44));(0,i.default)(t,"__esModule",{value:!0}),t.default=function(e,t){var n=e.elems[0];if(""===n.style.paddingLeft)e.css("padding-left",t.value+t.unit);else{var r=n.style.paddingLeft,i=(0,a.default)(r).call(r,0,r.length-t.unit.length),o=Number(i)+t.value;e.css("padding-left",""+o+t.unit)}}},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),a=r(n(44));(0,i.default)(t,"__esModule",{value:!0}),t.default=function(e,t){var n=e.elems[0];if(""!==n.style.paddingLeft){var r=n.style.paddingLeft,i=(0,a.default)(r).call(r,0,r.length-t.unit.length),o=Number(i)-t.value;o>0?e.css("padding-left",""+o+t.unit):e.css("padding-left","")}}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(2),i=r.__importDefault(n(3)),a=r.__importDefault(n(35)),o=r.__importDefault(n(31)),s=r.__importDefault(n(369)),l=function(e){function t(t){var n=i.default('<div class="w-e-menu" data-title="表情">\n <i class="w-e-icon-happy"></i>\n </div>');return e.call(this,n,t)||this}return r.__extends(t,e),t.prototype.createPanel=function(){var e=s.default(this.editor);new o.default(this,e).create()},t.prototype.clickHandler=function(){this.createPanel()},t.prototype.tryChangeActive=function(){},t}(a.default);t.default=l},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),a=r(n(25)),o=r(n(74)),s=r(n(19));(0,i.default)(t,"__esModule",{value:!0});var l=n(2).__importDefault(n(3));t.default=function(e){var t=e.config.emotions;return{width:300,height:230,tabs:(0,a.default)(t).call(t,function(t){return{title:e.i18next.t("menus.panelMenus.emoticon."+t.title),tpl:"<div>"+function(e){var t,n,r=[];return"image"==e.type?(r=(0,a.default)(t=e.content).call(t,function(e){return"string"==typeof e?"":'<span title="'+e.alt+'">\n <img class="eleImg" data-emoji="'+e.alt+'" style src="'+e.src+'" alt="['+e.alt+']">\n </span>'}),r=(0,o.default)(r).call(r,function(e){return""!==e})):r=(0,a.default)(n=e.content).call(n,function(e){return'<span class="eleImg" title="'+e+'">'+e+"</span>"}),r.join("").replace(/&nbsp;/g,"")}(t)+"</div>",events:[{selector:".eleImg",type:"click",fn:function(t){var n,r,i=l.default(t.target);return n="IMG"===i.getNodeName()?(0,s.default)(r=i.parent().html()).call(r):"<span>"+i.html()+"</span>",e.cmd.do("insertHTML",n),!0}}]}})}}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.createListHandle=t.ClassType=void 0;var r,i=n(2),a=i.__importDefault(n(3)),o=i.__importDefault(n(371)),s=i.__importDefault(n(373)),l=i.__importDefault(n(374)),c=i.__importDefault(n(375)),u=i.__importDefault(n(376));!function(e){e.Wrap="WrapListHandle",e.Join="JoinListHandle",e.StartJoin="StartJoinListHandle",e.EndJoin="EndJoinListHandle",e.Other="OtherListHandle"}(r=t.ClassType||(t.ClassType={}));var h={WrapListHandle:o.default,JoinListHandle:s.default,StartJoinListHandle:l.default,EndJoinListHandle:c.default,OtherListHandle:u.default};t.createListHandle=function(e,t,n){if(e===r.Other&&void 0===n)throw new Error("other 类需要传入 range");return e!==r.Other?new h[e](t):new h[e](t,n)};var d=function(){function e(e){this.handle=e,this.handle.exec()}return e.prototype.getSelectionRangeElem=function(){return a.default(this.handle.selectionRangeElem.get())},e}();t.default=d},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),a=r(n(4));(0,i.default)(t,"__esModule",{value:!0});var o=n(2),s=o.__importDefault(n(3)),l=n(57),c=n(46),u=function(e){function t(t){return e.call(this,t)||this}return o.__extends(t,e),t.prototype.exec=function(){var e,t=this.options,n=t.listType,r=t.listTarget,i=t.$selectionElem,o=t.$startElem,l=t.$endElem,u=[],h=null===i||void 0===i?void 0:i.getNodeName(),d=o.prior,f=l.prior;if(!o.prior&&!l.prior||!(null===d||void 0===d?void 0:d.prev().length)&&!(null===f||void 0===f?void 0:f.next().length)){var p;(0,a.default)(p=null===i||void 0===i?void 0:i.children()).call(p,function(e){u.push(s.default(e))}),h===n?e=c.createElementFragment(u,c.createDocumentFragment(),"p"):(e=c.createElement(r),(0,a.default)(u).call(u,function(t){e.append(t.elems[0])})),this.selectionRangeElem.set(e),c.insertBefore(i,e,i.elems[0]),i.remove()}else{for(var A=d;A.length;)u.push(A),A=(null===f||void 0===f?void 0:f.equal(A))?s.default(void 0):A.next();var g=d.prev(),m=f.next();if(h===n?e=c.createElementFragment(u,c.createDocumentFragment(),"p"):(e=c.createElement(r),(0,a.default)(u).call(u,function(t){e.append(t.elems[0])})),g.length&&m.length){for(var v=[];m.length;)v.push(m),m=m.next();var y=c.createElement(h);(0,a.default)(v).call(v,function(e){y.append(e.elems[0])}),s.default(y).insertAfter(i),this.selectionRangeElem.set(e),(b=i.next()).length?c.insertBefore(i,e,b.elems[0]):i.parent().elems[0].append(e)}else if(g.length){var b;this.selectionRangeElem.set(e),(b=i.next()).length?c.insertBefore(i,e,b.elems[0]):i.parent().elems[0].append(e)}else this.selectionRangeElem.set(e),c.insertBefore(i,e,i.elems[0])}},t}(l.ListHandle);t.default=u},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),a=r(n(4));(0,i.default)(t,"__esModule",{value:!0});var o=function(){function e(){this._element=null}return e.prototype.set=function(e){if(e instanceof DocumentFragment){var t,n=[];(0,a.default)(t=e.childNodes).call(t,function(e){n.push(e)}),e=n}this._element=e},e.prototype.get=function(){return this._element},e.prototype.clear=function(){this._element=null},e}();t.default=o},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),a=r(n(4));(0,i.default)(t,"__esModule",{value:!0});var o=n(2),s=o.__importDefault(n(3)),l=n(57),c=n(46),u=function(e){function t(t){return e.call(this,t)||this}return o.__extends(t,e),t.prototype.exec=function(){var e,t,n,r,i,o,l,u,h=this.options,d=h.editor,f=h.listType,p=h.listTarget,A=h.$startElem,g=h.$endElem,m=d.selection.getSelectionRangeTopNodes(),v=null===A||void 0===A?void 0:A.getNodeName();if(v===(null===g||void 0===g?void 0:g.getNodeName()))if(m.length>2)if(m.shift(),m.pop(),u=c.createElementFragment(c.filterSelectionNodes(m),c.createDocumentFragment()),v===f)null===(e=g.children())||void 0===e||(0,a.default)(e).call(e,function(e){u.append(e)}),g.remove(),this.selectionRangeElem.set(u),A.elems[0].append(u);else{for(var y=document.createDocumentFragment(),b=document.createDocumentFragment(),w=c.getStartPoint(A);w.length;){var x=w.elems[0];w=w.next(),y.append(x)}for(var _=c.getEndPoint(g),C=[];_.length;)C.unshift(_.elems[0]),_=_.prev();(0,a.default)(C).call(C,function(e){b.append(e)});var S=c.createElement(p);S.append(y),S.append(u),S.append(b),u=S,this.selectionRangeElem.set(u),s.default(S).insertAfter(A),!(null===(t=A.children())||void 0===t?void 0:t.length)&&A.remove(),!(null===(n=g.children())||void 0===n?void 0:n.length)&&g.remove()}else{m.length=0;for(w=c.getStartPoint(A);w.length;)m.push(w),w=w.next();for(_=c.getEndPoint(g),C=[];_.length;)C.unshift(_),_=_.prev();m.push.apply(m,C),v===f?(u=c.createElementFragment(m,c.createDocumentFragment(),"p"),this.selectionRangeElem.set(u),c.insertBefore(A,u,g.elems[0])):(u=c.createElement(p),(0,a.default)(m).call(m,function(e){u.append(e.elems[0])}),this.selectionRangeElem.set(u),s.default(u).insertAfter(A)),!(null===(r=A.children())||void 0===r?void 0:r.length)&&g.remove(),!(null===(i=g.children())||void 0===i?void 0:i.length)&&g.remove()}else{var k=[];for(_=c.getEndPoint(g);_.length;)k.unshift(_),_=_.prev();var B=[];for(w=c.getStartPoint(A);w.length;)B.push(w),w=w.next();if(u=c.createDocumentFragment(),m.shift(),m.pop(),(0,a.default)(B).call(B,function(e){return u.append(e.elems[0])}),u=c.createElementFragment(c.filterSelectionNodes(m),u),(0,a.default)(k).call(k,function(e){return u.append(e.elems[0])}),this.selectionRangeElem.set(u),v===f)A.elems[0].append(u),!(null===(o=g.children())||void 0===o?void 0:o.length)&&g.remove();else if(null===(l=g.children())||void 0===l?void 0:l.length){var E=g.children();c.insertBefore(E,u,E.elems[0])}else g.elems[0].append(u)}},t}(l.ListHandle);t.default=u},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),a=r(n(4));(0,i.default)(t,"__esModule",{value:!0});var o=n(2),s=o.__importDefault(n(3)),l=n(57),c=n(46),u=function(e){function t(t){return e.call(this,t)||this}return o.__extends(t,e),t.prototype.exec=function(){var e,t,n=this.options,r=n.editor,i=n.listType,o=n.listTarget,l=n.$startElem,u=r.selection.getSelectionRangeTopNodes(),h=null===l||void 0===l?void 0:l.getNodeName();u.shift();for(var d=[],f=c.getStartPoint(l);f.length;)d.push(f),f=f.next();h===i?(t=c.createDocumentFragment(),(0,a.default)(d).call(d,function(e){return t.append(e.elems[0])}),t=c.createElementFragment(c.filterSelectionNodes(u),t),this.selectionRangeElem.set(t),l.elems[0].append(t)):(t=c.createElement(o),(0,a.default)(d).call(d,function(e){return t.append(e.elems[0])}),t=c.createElementFragment(c.filterSelectionNodes(u),t),this.selectionRangeElem.set(t),s.default(t).insertAfter(l),!(null===(e=l.children())||void 0===e?void 0:e.length)&&l.remove())},t}(l.ListHandle);t.default=u},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),a=r(n(4));(0,i.default)(t,"__esModule",{value:!0});var o=n(2),s=o.__importDefault(n(3)),l=n(57),c=n(46),u=function(e){function t(t){return e.call(this,t)||this}return o.__extends(t,e),t.prototype.exec=function(){var e,t,n,r=this.options,i=r.editor,o=r.listType,l=r.listTarget,u=r.$endElem,h=i.selection.getSelectionRangeTopNodes(),d=null===u||void 0===u?void 0:u.getNodeName();h.pop();for(var f=[],p=c.getEndPoint(u);p.length;)f.unshift(p),p=p.prev();if(d===o)if(n=c.createElementFragment(c.filterSelectionNodes(h),c.createDocumentFragment()),(0,a.default)(f).call(f,function(e){return n.append(e.elems[0])}),this.selectionRangeElem.set(n),null===(e=u.children())||void 0===e?void 0:e.length){var A=u.children();c.insertBefore(A,n,A.elems[0])}else u.elems[0].append(n);else{var g=c.filterSelectionNodes(h);g.push.apply(g,f),n=c.createElementFragment(g,c.createElement(l)),this.selectionRangeElem.set(n),s.default(n).insertBefore(u),!(null===(t=u.children())||void 0===t?void 0:t.length)&&u.remove()}},t}(l.ListHandle);t.default=u},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(2),i=n(57),a=n(46),o=function(e){function t(t,n){var r=e.call(this,t)||this;return r.range=n,r}return r.__extends(t,e),t.prototype.exec=function(){var e=this.options,t=e.editor,n=e.listTarget,r=t.selection.getSelectionRangeTopNodes(),i=a.createElementFragment(a.filterSelectionNodes(r),a.createElement(n));this.selectionRangeElem.set(i),this.range.insertNode(i)},t}(i.ListHandle);t.default=o},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),a=r(n(4)),o=r(n(26));(0,i.default)(t,"__esModule",{value:!0});var s=n(2),l=s.__importDefault(n(24)),c=s.__importDefault(n(3)),u=s.__importDefault(n(378)),h=n(6),d=function(e){function t(t){var n=this,r=c.default('<div class="w-e-menu" data-title="行高">\n <i class="w-e-icon-row-height"></i>\n </div>'),i={width:100,title:"设置行高",type:"list",list:new u.default(t,t.config.lineHeights).getItemList(),clickHandler:function(e){t.selection.saveRange(),n.command(e)}};return n=e.call(this,r,t,i)||this}return s.__extends(t,e),t.prototype.command=function(e){var t,n=this,r=window.getSelection?window.getSelection():document.getSelection(),i=["P"],s=this.editor,l="";s.selection.restoreSelection();var u=c.default(s.selection.getSelectionContainerElem());if(null===u||void 0===u?void 0:u.length){var d=c.default(s.selection.getSelectionContainerElem()),f=c.default(s.selection.getSelectionStartElem()).elems[0],p="",A=[],g="";if(u&&s.$textElem.equal(u)){if(h.UA.isIE())return;var m=[],v=[],y=[],b=c.default(s.selection.getSelectionStartElem()),w=c.default(s.selection.getSelectionEndElem()),x=null===(t=s.selection.getRange())||void 0===t?void 0:t.commonAncestorContainer.childNodes;v.push(this.getDom(b.elems[0])),null===x||void 0===x||(0,a.default)(x).call(x,function(e,t){e===n.getDom(b.elems[0])&&m.push(t),e===n.getDom(w.elems[0])&&m.push(t)});var _=0,C=void 0;for(y.push(this.getDom(b.elems[0]));v[_]!==this.getDom(w.elems[0]);)C=c.default(v[_].nextElementSibling).elems[0],-1!==(0,o.default)(i).call(i,c.default(C).getNodeName())?(y.push(C),v.push(C)):v.push(C),_++;if("P"!==c.default(v[0]).getNodeName()){_=0;for(var S=0;S<v.length;S++)if("P"===c.default(v[S]).getNodeName()){_=S;break}if(0===_)return;for(var k=0;k!==_;)v.shift(),k++}return this.setRange(v[0],v[v.length-1]),(0,a.default)(v).call(v,function(t){p=t.getAttribute("style"),A=p?p.split(";"):[],g="","P"===c.default(t).getNodeName()?(g=e?n.styleProcessing(A)+"line-height:"+e+";":n.styleProcessing(A),l=l+"<"+c.default(t).getNodeName().toLowerCase()+' style="'+g+'">'+t.innerHTML+"</"+c.default(t).getNodeName().toLowerCase()+">"):(g=n.styleProcessing(A),l=l+"<"+c.default(t).getNodeName().toLowerCase()+' style="'+g+'">'+t.innerHTML+"</"+c.default(t).getNodeName().toLowerCase()+">")}),this.action(l,s),f=d.elems[0],void this.setRange(f.children[m[0]],f.children[m[1]])}f=this.getDom(f),-1!==(0,o.default)(i).call(i,c.default(f).getNodeName())&&(p=f.getAttribute("style"),A=p?p.split(";"):[],null===r||void 0===r||r.selectAllChildren(f),s.selection.saveRange(),e?(g=p?this.styleProcessing(A)+"line-height:"+e+";":"line-height:"+e+";",l="<"+c.default(f).getNodeName().toLowerCase()+' style="'+g+'">'+f.innerHTML+"</"+c.default(f).getNodeName().toLowerCase()+">","BLOCKQUOTE"===c.default(f).getNodeName()?c.default(f).css("line-height",e):this.action(l,s)):p&&(g=this.styleProcessing(A),l=""===g?"<"+c.default(f).getNodeName().toLowerCase()+">"+f.innerHTML+"</"+c.default(f).getNodeName().toLowerCase()+">":"<"+c.default(f).getNodeName().toLowerCase()+' style="'+g+'">'+f.innerHTML+"</"+c.default(f).getNodeName().toLowerCase()+">",this.action(l,s)))}},t.prototype.getDom=function(e){var t=c.default(e).elems[0];if(!t.parentNode)return t;return t=function e(t,n){var r=c.default(t.parentNode);return n.$textElem.equal(r)?t:e(r.elems[0],n)}(t,this.editor)},t.prototype.action=function(e,t){t.cmd.do("insertHTML",e)},t.prototype.styleProcessing=function(e){var t="";return(0,a.default)(e).call(e,function(e){""!==e&&-1===(0,o.default)(e).call(e,"line-height")&&(t=t+e+";")}),t},t.prototype.setRange=function(e,t){var n=this.editor,r=window.getSelection?window.getSelection():document.getSelection();null===r||void 0===r||r.removeAllRanges();var i=document.createRange(),a=e,o=t;i.setStart(a,0),i.setEnd(o,1),null===r||void 0===r||r.addRange(i),n.selection.saveRange(),null===r||void 0===r||r.removeAllRanges(),n.selection.restoreSelection()},t.prototype.tryChangeActive=function(){var e=this.editor,t=e.selection.getSelectionContainerElem();if(!t||!e.$textElem.equal(t)){var n=c.default(e.selection.getSelectionStartElem());if(0!==n.length){var r=(n=this.getDom(n.elems[0])).getAttribute("style")?n.getAttribute("style"):"";r&&-1!==(0,o.default)(r).call(r,"line-height")?this.active():this.unActive()}}},t}(l.default);t.default=d},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),a=r(n(4));(0,i.default)(t,"__esModule",{value:!0});var o=n(2).__importDefault(n(3)),s=function(){function e(e,t){var n=this;this.itemList=[{$elem:o.default("<span>"+e.i18next.t("默认")+"</span>"),value:""}],(0,a.default)(t).call(t,function(e){n.itemList.push({$elem:o.default("<span>"+e+"</span>"),value:e})})}return e.prototype.getItemList=function(){return this.itemList},e}();t.default=s},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(2),i=r.__importDefault(n(3)),a=function(e){function t(t){var n=i.default('<div class="w-e-menu" data-title="撤销">\n <i class="w-e-icon-undo"></i>\n </div>');return e.call(this,n,t)||this}return r.__extends(t,e),t.prototype.clickHandler=function(){var e=this.editor;e.history.revoke();var t=e.$textElem.children();if(null===t||void 0===t?void 0:t.length){var n=t.last();e.selection.createRangeByElem(n,!1,!0),e.selection.restoreSelection()}},t.prototype.tryChangeActive=function(){this.editor.isCompatibleMode||(this.editor.history.size[0]?this.active():this.unActive())},t}(r.__importDefault(n(23)).default);t.default=a},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(2),i=r.__importDefault(n(3)),a=function(e){function t(t){var n=i.default('<div class="w-e-menu" data-title="恢复">\n <i class="w-e-icon-redo"></i>\n </div>');return e.call(this,n,t)||this}return r.__extends(t,e),t.prototype.clickHandler=function(){var e=this.editor;e.history.restore();var t=e.$textElem.children();if(null===t||void 0===t?void 0:t.length){var n=t.last();e.selection.createRangeByElem(n,!1,!0),e.selection.restoreSelection()}},t.prototype.tryChangeActive=function(){this.editor.isCompatibleMode||(this.editor.history.size[1]?this.active():this.unActive())},t}(r.__importDefault(n(23)).default);t.default=a},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(2),i=r.__importDefault(n(35)),a=r.__importDefault(n(3)),o=r.__importDefault(n(382)),s=r.__importDefault(n(31)),l=r.__importDefault(n(391)),c=function(e){function t(t){var n,r=a.default('<div class="w-e-menu" data-title="表格"><i class="w-e-icon-table2"></i></div>');return n=e.call(this,r,t)||this,l.default(t),n}return r.__extends(t,e),t.prototype.clickHandler=function(){this.createPanel()},t.prototype.createPanel=function(){var e=o.default(this.editor);new s.default(this,e).create()},t.prototype.tryChangeActive=function(){},t}(i.default);t.default=c},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),a=r(n(383));(0,i.default)(t,"__esModule",{value:!0});var o=n(2),s=n(6),l=o.__importDefault(n(3));n(388);var c=o.__importDefault(n(390));function u(e){return e>0&&(0,a.default)(e)}t.default=function(e){var t=new c.default(e),n=s.getRandom("w-col-id"),r=s.getRandom("w-row-id"),i=s.getRandom("btn-link"),a="menus.panelMenus.table.",o=function(t){return e.i18next.t(t)},h=[{title:o(a+"插入表格"),tpl:'<div>\n <div class="w-e-table">\n <span>'+o("创建")+'</span>\n <input id="'+r+'" type="text" class="w-e-table-input" value="5"/></td>\n <span>'+o(a+"行")+'</span>\n <input id="'+n+'" type="text" class="w-e-table-input" value="5"/></td>\n <span>'+(o(a+"列")+o(a+"的")+o(a+"表格"))+'</span>\n </div>\n <div class="w-e-button-container">\n <button type="button" id="'+i+'" class="right">'+o("插入")+"</button>\n </div>\n </div>",events:[{selector:"#"+i,type:"click",fn:function(){var i=Number(l.default("#"+n).val()),a=Number(l.default("#"+r).val());return u(a)&&u(i)?(t.createAction(a,i),!0):(e.config.customAlert("表格行列请输入正整数","warning"),!1)}}]}],d={width:330,height:0,tabs:[]};return d.tabs.push(h[0]),d}},function(e,t,n){e.exports=n(384)},function(e,t,n){var r=n(385);e.exports=r},function(e,t,n){n(386);var r=n(10);e.exports=r.Number.isInteger},function(e,t,n){n(5)({target:"Number",stat:!0},{isInteger:n(387)})},function(e,t,n){var r=n(13),i=Math.floor;e.exports=function(e){return!r(e)&&isFinite(e)&&i(e)===e}},function(e,t,n){var r=n(21),i=n(389);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var a={insert:"head",singleton:!1};r(i,a);e.exports=i.locals||{}},function(e,t,n){(t=n(22)(!1)).push([e.i,".w-e-table {\n display: flex;\n}\n.w-e-table .w-e-table-input {\n width: 40px;\n text-align: center!important;\n margin: 0 5px;\n}\n",""]),e.exports=t},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(2),i=n(7),a=r.__importDefault(n(3)),o=function(){function e(e){this.editor=e}return e.prototype.createAction=function(e,t){var n=this.editor,r=a.default(n.selection.getSelectionContainerElem()),i=a.default(r.elems[0]).parentUntilEditor("UL",n),o=a.default(r.elems[0]).parentUntilEditor("OL",n);if(!i&&!o){var s=this.createTableHtml(e,t);n.cmd.do("insertHTML",s)}},e.prototype.createTableHtml=function(e,t){for(var n="",r="",a=0;a<e;a++){r="";for(var o=0;o<t;o++)r+=0===a?"<th></th>":"<td></td>";n=n+"<tr>"+r+"</tr>"}return'<table border="0" width="100%" cellpadding="0" cellspacing="0"><tbody>'+n+"</tbody></table>"+i.EMPTY_P},e}();t.default=o},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(2),i=r.__importDefault(n(392)),a=r.__importDefault(n(400));t.default=function(e){i.default(e),a.default(e)}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(2),i=r.__importDefault(n(3)),a=r.__importDefault(n(36)),o=r.__importDefault(n(393)),s=r.__importDefault(n(399)),l=n(7);function c(e){var t=e.selection.getSelectionStartElem(),n=e.selection.getSelectionEndElem();return(null===t||void 0===t?void 0:t.elems[0])!==(null===n||void 0===n?void 0:n.elems[0])}function u(e,t){var n=e.elems[0].nextSibling;return n&&"<br>"!==n.innerHTML||(t+=""+l.EMPTY_P),t}t.default=function(e){var t=function(e){var t;return{showTableTooltip:function(n){var r=new s.default(e),h=function(t,n){return void 0===n&&(n="menus.panelMenus.table."),e.i18next.t(n+t)},d=[{$elem:i.default("<span>"+h("删除表格")+"</span>"),onClick:function(e,t){return e.selection.createRangeByElem(t),e.selection.restoreSelection(),e.cmd.do("insertHTML",l.EMPTY_P),!0}},{$elem:i.default("<span>"+h("添加行")+"</span>"),onClick:function(e,t){if(c(e))return!0;var n=i.default(e.selection.getSelectionStartElem()),a=r.getRowNode(n.elems[0]);if(!a)return!0;var s=Number(r.getCurrentRowIndex(t.elems[0],a)),l=r.getTableHtml(t.elems[0]),h=r.getTableHtml(o.default.ProcessingRow(i.default(l),s).elems[0]);return h=u(t,h),e.selection.createRangeByElem(t),e.selection.restoreSelection(),e.cmd.do("insertHTML",h),!0}},{$elem:i.default("<span>"+h("删除行")+"</span>"),onClick:function(e,t){if(c(e))return!0;var n=i.default(e.selection.getSelectionStartElem()),a=r.getRowNode(n.elems[0]);if(!a)return!0;var s=Number(r.getCurrentRowIndex(t.elems[0],a)),h=r.getTableHtml(t.elems[0]),d=o.default.DeleteRow(i.default(h),s).elems[0].children[0].children.length,f="";return e.selection.createRangeByElem(t),e.selection.restoreSelection(),f=u(t,f=0===d?l.EMPTY_P:r.getTableHtml(o.default.DeleteRow(i.default(h),s).elems[0])),e.cmd.do("insertHTML",f),!0}},{$elem:i.default("<span>"+h("添加列")+"</span>"),onClick:function(e,t){if(c(e))return!0;var n=i.default(e.selection.getSelectionStartElem()),a=r.getCurrentColIndex(n.elems[0]),s=r.getTableHtml(t.elems[0]),l=r.getTableHtml(o.default.ProcessingCol(i.default(s),a).elems[0]);return l=u(t,l),e.selection.createRangeByElem(t),e.selection.restoreSelection(),e.cmd.do("insertHTML",l),!0}},{$elem:i.default("<span>"+h("删除列")+"</span>"),onClick:function(e,t){if(c(e))return!0;var n=i.default(e.selection.getSelectionStartElem()),a=r.getCurrentColIndex(n.elems[0]),s=r.getTableHtml(t.elems[0]),h=o.default.DeleteCol(i.default(s),a).elems[0].children[0].children[0].children.length,d="";return e.selection.createRangeByElem(t),e.selection.restoreSelection(),d=u(t,d=1===h?l.EMPTY_P:r.getTableHtml(o.default.DeleteCol(i.default(s),a).elems[0])),e.cmd.do("insertHTML",d),!0}},{$elem:i.default("<span>"+h("设置表头")+"</span>"),onClick:function(e,t){if(c(e))return!0;var n=i.default(e.selection.getSelectionStartElem()),a=r.getRowNode(n.elems[0]);if(!a)return!0;var s=Number(r.getCurrentRowIndex(t.elems[0],a));0!==s&&(s=0);var l=r.getTableHtml(t.elems[0]),h=r.getTableHtml(o.default.setTheHeader(i.default(l),s,"th").elems[0]);return h=u(t,h),e.selection.createRangeByElem(t),e.selection.restoreSelection(),e.cmd.do("insertHTML",h),!0}},{$elem:i.default("<span>"+h("取消表头")+"</span>"),onClick:function(e,t){var n=i.default(e.selection.getSelectionStartElem()),a=r.getRowNode(n.elems[0]);if(!a)return!0;var s=Number(r.getCurrentRowIndex(t.elems[0],a));0!==s&&(s=0);var l=r.getTableHtml(t.elems[0]),c=r.getTableHtml(o.default.setTheHeader(i.default(l),s,"td").elems[0]);return c=u(t,c),e.selection.createRangeByElem(t),e.selection.restoreSelection(),e.cmd.do("insertHTML",c),!0}}];(t=new a.default(e,n,d)).create()},hideTableTooltip:function(){t&&(t.remove(),t=null)}}}(e),n=t.showTableTooltip,r=t.hideTableTooltip;e.txt.eventHooks.tableClickEvents.push(n),e.txt.eventHooks.clickEvents.push(r),e.txt.eventHooks.keyupEvents.push(r),e.txt.eventHooks.toolbarClickEvents.push(r),e.txt.eventHooks.menuClickEvents.push(r),e.txt.eventHooks.textScrollEvents.push(r)}},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),a=r(n(44)),o=r(n(93)),s=r(n(4)),l=r(n(137));(0,i.default)(t,"__esModule",{value:!0});var c=n(2).__importDefault(n(3));function u(e,t){for(;0!==e.children.length;)e.removeChild(e.children[0]);for(var n=0;n<t.length;n++)e.appendChild(t[n])}function h(e){var t=e.elems[0].children[0];return"COLGROUP"===t.nodeName&&(t=e.elems[0].children[e.elems[0].children.length-1]),t}t.default={ProcessingRow:function(e,t){for(var n=h(e),r=(0,a.default)(Array.prototype).apply(n.children),i=r[0].children.length,s=document.createElement("tr"),l=0;l<i;l++){var d=document.createElement("td");s.appendChild(d)}return(0,o.default)(r).call(r,t+1,0,s),u(n,r),c.default(n.parentNode)},ProcessingCol:function(e,t){for(var n=h(e),r=(0,a.default)(Array.prototype).apply(n.children),i=function(e){var n,i=[];for((0,s.default)(n=(0,l.default)(r[e].children)).call(n,function(e){i.push(e)});0!==r[e].children.length;)r[e].removeChild(r[e].children[0]);var a="TH"!==c.default(i[0]).getNodeName()?document.createElement("td"):document.createElement("th");(0,o.default)(i).call(i,t+1,0,a);for(var u=0;u<i.length;u++)r[e].appendChild(i[u])},d=0;d<r.length;d++)i(d);return u(n,r),c.default(n.parentNode)},DeleteRow:function(e,t){var n=h(e),r=(0,a.default)(Array.prototype).apply(n.children);return(0,o.default)(r).call(r,t,1),u(n,r),c.default(n.parentNode)},DeleteCol:function(e,t){for(var n=h(e),r=(0,a.default)(Array.prototype).apply(n.children),i=function(e){var n,i=[];for((0,s.default)(n=(0,l.default)(r[e].children)).call(n,function(e){i.push(e)});0!==r[e].children.length;)r[e].removeChild(r[e].children[0]);(0,o.default)(i).call(i,t,1);for(var a=0;a<i.length;a++)r[e].appendChild(i[a])},d=0;d<r.length;d++)i(d);return u(n,r),c.default(n.parentNode)},setTheHeader:function(e,t,n){for(var r=h(e),i=(0,a.default)(Array.prototype).apply(r.children),d=i[t].children,f=document.createElement("tr"),p=function(e){var t,r=document.createElement(n);(0,s.default)(t=(0,l.default)(d[e].children)).call(t,function(e){r.appendChild(e)}),f.appendChild(r)},A=0;A<d.length;A++)p(A);return(0,o.default)(i).call(i,t,1,f),u(r,i),c.default(r.parentNode)}}},function(e,t,n){var r=n(395);e.exports=r},function(e,t,n){n(51),n(396);var r=n(10);e.exports=r.Array.from},function(e,t,n){var r=n(5),i=n(397);r({target:"Array",stat:!0,forced:!n(113)(function(e){Array.from(e)})},{from:i})},function(e,t,n){"use strict";var r=n(38),i=n(33),a=n(398),o=n(105),s=n(34),l=n(73),c=n(107);e.exports=function(e){var t,n,u,h,d,f,p=i(e),A="function"==typeof this?this:Array,g=arguments.length,m=g>1?arguments[1]:void 0,v=void 0!==m,y=c(p),b=0;if(v&&(m=r(m,g>2?arguments[2]:void 0,2)),void 0==y||A==Array&&o(y))for(n=new A(t=s(p.length));t>b;b++)f=v?m(p[b],b):p[b],l(n,b,f);else for(d=(h=y.call(p)).next,n=new A;!(u=d.call(h)).done;b++)f=v?a(h,m,[u.value,b],!0):u.value,l(n,b,f);return n.length=b,n}},function(e,t,n){var r=n(20),i=n(108);e.exports=function(e,t,n,a){try{return a?t(r(n)[0],n[1]):t(n)}catch(t){throw i(e),t}}},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),a=r(n(4)),o=r(n(137));(0,i.default)(t,"__esModule",{value:!0});var s=n(2).__importDefault(n(3)),l=function(){function e(e){this.editor=e}return e.prototype.getRowNode=function(e){var t,n=s.default(e).elems[0];return n.parentNode?n=null===(t=s.default(n).parentUntil("TR",n))||void 0===t?void 0:t.elems[0]:n},e.prototype.getCurrentRowIndex=function(e,t){var n,r=0,i=e.children[0];return"COLGROUP"===i.nodeName&&(i=e.children[e.children.length-1]),(0,a.default)(n=(0,o.default)(i.children)).call(n,function(e,n){e===t&&(r=n)}),r},e.prototype.getCurrentColIndex=function(e){var t,n,r=0,i="TD"===s.default(e).getNodeName()||"TH"===s.default(e).getNodeName()?e:null===(n=s.default(e).parentUntil("TD",e))||void 0===n?void 0:n.elems[0],l=s.default(i).parent();return(0,a.default)(t=(0,o.default)(l.elems[0].children)).call(t,function(e,t){e===i&&(r=t)}),r},e.prototype.getTableHtml=function(e){return'<table border="0" width="100%" cellpadding="0" cellspacing="0">'+s.default(e).html()+"</table>"},e}();t.default=l},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.default=function(e){var t=e.txt,n=e.selection;t.eventHooks.keydownEvents.push(function(t){e.selection.saveRange();var r=n.getSelectionContainerElem();if(r){var i=r.getNodeTop(e),a=i.length&&i.prev().length?i.prev():null;if(a&&"TABLE"===a.getNodeName()&&n.isSelectionEmpty()&&0===n.getCursorPos()&&8===t.keyCode){var o=i.next();!!o.length&&function(e){if(!e.length)return!1;var t=e.elems[0];return"P"===t.nodeName&&"<br>"===t.innerHTML}(i)&&(i.remove(),e.selection.setRangeToElem(o.elems[0])),t.preventDefault()}}})}},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),a=r(n(25));(0,i.default)(t,"__esModule",{value:!0}),t.formatCodeHtml=void 0;var o=n(2),s=o.__importDefault(n(35)),l=o.__importDefault(n(3)),c=n(6),u=o.__importDefault(n(402)),h=o.__importDefault(n(138)),d=o.__importDefault(n(31)),f=o.__importDefault(n(403));t.formatCodeHtml=function(e,t){return t?(t=function(e){var t=e.match(/<pre[\s|\S]+?\/pre>/g);return null===t?e:((0,a.default)(t).call(t,function(t){e=e.replace(t,t.replace(/<\/code><code>/g,"\n").replace(/<br>/g,""))}),e)}(t=function e(t){var n,r=t.match(/<span\sclass="hljs[\s|\S]+?\/span>/gm);if(!r||!r.length)return t;for(var i=(0,a.default)(n=c.deepClone(r)).call(n,function(e){return(e=e.replace(/<span\sclass="hljs[^>]+>/,"")).replace(/<\/span>/,"")}),o=0;o<r.length;o++)t=t.replace(r[o],i[o]);return e(t)}(t)),t=c.replaceSpecialSymbol(t)):t};var p=function(e){function t(t){var n,r=l.default('<div class="w-e-menu" data-title="代码"><i class="w-e-icon-terminal"></i></div>');return n=e.call(this,r,t)||this,f.default(t),n}return o.__extends(t,e),t.prototype.insertLineCode=function(e){var t=this.editor,n=l.default("<code>"+e+"</code>");t.cmd.do("insertElem",n),t.selection.createRangeByElem(n,!1),t.selection.restoreSelection()},t.prototype.clickHandler=function(){var e=this.editor,t=e.selection.getSelectionText();this.isActive||(e.selection.isSelectionEmpty()?this.createPanel("",""):this.insertLineCode(t))},t.prototype.createPanel=function(e,t){var n=u.default(this.editor,e,t);new d.default(this,n).create()},t.prototype.tryChangeActive=function(){var e=this.editor;h.default(e)?this.active():this.unActive()},t}(s.default);t.default=p},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),a=r(n(25));(0,i.default)(t,"__esModule",{value:!0});var o=n(2),s=n(6),l=o.__importDefault(n(3)),c=o.__importDefault(n(138)),u=n(7);t.default=function(e,t,n){var r,i=s.getRandom("input-iframe"),o=s.getRandom("select"),h=s.getRandom("btn-ok");function d(t){c.default(e)&&function(){if(c.default(e)){var t=e.selection.getSelectionStartElem(),n=null===t||void 0===t?void 0:t.getNodeTop(e);n&&(e.selection.createRangeByElem(n),e.selection.restoreSelection())}}(),e.cmd.do("insertHTML",t);var n=e.selection.getSelectionStartElem(),r=null===n||void 0===n?void 0:n.getNodeTop(e);l.default(u.EMPTY_P).insertAfter(r)}var f=function(t){return e.i18next.t(t)};return{width:500,height:0,tabs:[{title:f("menus.panelMenus.code.插入代码"),tpl:'<div>\n <select name="" id="'+o+'">\n '+(0,a.default)(r=e.config.languageType).call(r,function(e){return"<option "+(n==e?"selected":"")+' value ="'+e+'">'+e+"</option>"})+'\n </select>\n <textarea id="'+i+'" type="text" class="wang-code-textarea" placeholder="" style="height: 160px">'+t.replace(/&quot;/g,'"')+'</textarea>\n <div class="w-e-button-container">\n <button type="button" id="'+h+'" class="right">'+(c.default(e)?f("修改"):f("插入"))+"</button>\n </div>\n </div>",events:[{selector:"#"+h,type:"click",fn:function(){var t,n=document.getElementById(i),r=l.default("#"+o).val(),a=n.value;if(t=e.highlight?e.highlight.highlightAuto(a).value:"<xmp>"+a+"</xmp>",a)return!c.default(e)&&(d('<pre><code class="'+r+'">'+t+"</code></pre>"),!0)}}]}]}}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(2),i=r.__importDefault(n(404)),a=r.__importDefault(n(405));t.default=function(e){i.default(e),a.default(e)}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.createShowHideFn=void 0;var r=n(2),i=r.__importDefault(n(3)),a=r.__importDefault(n(36));function o(e){var t;return{showCodeTooltip:function(n){var r,o,s=[{$elem:i.default("<span>"+(r="删除代码",void 0===o&&(o="menus.panelMenus.code."),e.i18next.t(o+r))+"</span>"),onClick:function(e,t){return t.remove(),!0}}];(t=new a.default(e,n,s)).create()},hideCodeTooltip:function(){t&&(t.remove(),t=null)}}}t.createShowHideFn=o,t.default=function(e){var t=o(e),n=t.showCodeTooltip,r=t.hideCodeTooltip;e.txt.eventHooks.codeClickEvents.push(n),e.txt.eventHooks.clickEvents.push(r),e.txt.eventHooks.toolbarClickEvents.push(r),e.txt.eventHooks.menuClickEvents.push(r),e.txt.eventHooks.textScrollEvents.push(r)}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(2),i=n(7),a=r.__importDefault(n(3));t.default=function(e){var t=e.$textElem,n=e.selection,r=e.txt.eventHooks.keydownEvents;r.push(function(e){var r;if(40===e.keyCode){var o=n.getSelectionContainerElem(),s=null===(r=t.children())||void 0===r?void 0:r.last();if("XMP"===(null===o||void 0===o?void 0:o.elems[0].tagName)&&"PRE"===(null===s||void 0===s?void 0:s.elems[0].tagName)){var l=a.default(i.EMPTY_P);t.append(l)}}}),r.push(function(t){e.selection.saveRange();var r=n.getSelectionContainerElem();if(r){var i=r.getNodeTop(e),a=null===i||void 0===i?void 0:i.prev(),o=null===i||void 0===i?void 0:i.getNextSibling();a.length&&"PRE"===(null===a||void 0===a?void 0:a.getNodeName())&&0===o.length&&0===n.getCursorPos()&&8===t.keyCode&&t.preventDefault()}})}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(2),i=r.__importDefault(n(23)),a=r.__importDefault(n(3)),o=r.__importDefault(n(407)),s=n(6),l=n(7),c=function(e){function t(t){var n,r=a.default('<div class="w-e-menu" data-title="分割线"><i class="w-e-icon-split-line"></i></div>');return n=e.call(this,r,t)||this,o.default(t),n}return r.__extends(t,e),t.prototype.clickHandler=function(){var e=this.editor,t=e.selection.getRange(),n=e.selection.getSelectionContainerElem();if(null===n||void 0===n?void 0:n.length){var r=a.default(n.elems[0]),i=r.parentUntil("TABLE",n.elems[0]),o=r.children();"CODE"!==r.getNodeName()&&(i&&"TABLE"===a.default(i.elems[0]).getNodeName()||(!o||0===o.length||"IMG"!==a.default(o.elems[0]).getNodeName()||(null===t||void 0===t?void 0:t.collapsed))&&this.createSplitLine())}},t.prototype.createSplitLine=function(){var e="<hr/>"+l.EMPTY_P;s.UA.isFirefox&&(e="<hr/><p></p>"),this.editor.cmd.do("insertHTML",e)},t.prototype.tryChangeActive=function(){},t}(i.default);t.default=c},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(2).__importDefault(n(408));t.default=function(e){r.default(e)}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(2),i=r.__importDefault(n(3)),a=r.__importDefault(n(36));t.default=function(e){var t=function(e){var t;return{showSplitLineTooltip:function(n){var r=[{$elem:i.default("<span>"+e.i18next.t("menus.panelMenus.删除")+"</span>"),onClick:function(e,t){return e.selection.createRangeByElem(t),e.selection.restoreSelection(),e.cmd.do("delete"),!0}}];(t=new a.default(e,n,r)).create()},hideSplitLineTooltip:function(){t&&(t.remove(),t=null)}}}(e),n=t.showSplitLineTooltip,r=t.hideSplitLineTooltip;e.txt.eventHooks.splitLineEvents.push(n),e.txt.eventHooks.clickEvents.push(r),e.txt.eventHooks.keyupEvents.push(r),e.txt.eventHooks.toolbarClickEvents.push(r),e.txt.eventHooks.menuClickEvents.push(r),e.txt.eventHooks.textScrollEvents.push(r)}},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),a=r(n(4));(0,i.default)(t,"__esModule",{value:!0});var o=n(2),s=o.__importDefault(n(3)),l=o.__importDefault(n(23)),c=n(98),u=o.__importDefault(n(415)),h=o.__importDefault(n(139)),d=function(e){function t(t){var n,r=s.default('<div class="w-e-menu" data-title="待办事项">\n <i class="w-e-icon-checkbox-checked"></i>\n </div>');return n=e.call(this,r,t)||this,u.default(t),n}return o.__extends(t,e),t.prototype.clickHandler=function(){var e=this.editor;c.isAllTodo(e)?(this.cancelTodo(),this.tryChangeActive()):this.setTodo()},t.prototype.tryChangeActive=function(){c.isAllTodo(this.editor)?this.active():this.unActive()},t.prototype.setTodo=function(){var e=this.editor,t=e.selection.getSelectionRangeTopNodes();(0,a.default)(t).call(t,function(t){var n;if("P"===(null===t||void 0===t?void 0:t.getNodeName())){var r=h.default(t).getTodo(),i=null===(n=r.children())||void 0===n?void 0:n.getNode();r.insertAfter(t),e.selection.moveCursor(i),t.remove()}}),this.tryChangeActive()},t.prototype.cancelTodo=function(){var e=this.editor,t=e.selection.getSelectionRangeTopNodes();(0,a.default)(t).call(t,function(t){var n,r,i,a=null===(r=null===(n=t.childNodes())||void 0===n?void 0:n.childNodes())||void 0===r?void 0:r.clone(!0),o=s.default("<p></p>");o.append(a),o.insertAfter(t),null===(i=o.childNodes())||void 0===i||i.get(0).remove(),e.selection.moveCursor(o.getNode()),t.remove()})},t}(l.default);t.default=d},function(e,t,n){e.exports=n(411)},function(e,t,n){var r=n(412);e.exports=r},function(e,t,n){var r=n(413),i=Array.prototype;e.exports=function(e){var t=e.every;return e===i||e instanceof Array&&t===i.every?r:t}},function(e,t,n){n(414);var r=n(14);e.exports=r("Array").every},function(e,t,n){"use strict";var r=n(5),i=n(29).every;r({target:"Array",proto:!0,forced:!n(71)("every")},{every:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),a=r(n(4));(0,i.default)(t,"__esModule",{value:!0});var o=n(2),s=o.__importDefault(n(3)),l=n(98),c=o.__importDefault(n(139)),u=n(98),h=n(7);t.default=function(e){e.txt.eventHooks.enterDownEvents.push(function(t){var n,r;if(l.isAllTodo(e)){t.preventDefault();var i=e.selection,o=i.getSelectionRangeTopNodes()[0],d=null===(n=o.childNodes())||void 0===n?void 0:n.get(0),f=null===(r=window.getSelection())||void 0===r?void 0:r.anchorNode,p=i.getRange();if(!(null===p||void 0===p?void 0:p.collapsed)){var A=null===p||void 0===p?void 0:p.commonAncestorContainer.childNodes,g=null===p||void 0===p?void 0:p.startContainer,m=null===p||void 0===p?void 0:p.endContainer,v=null===p||void 0===p?void 0:p.startOffset,y=null===p||void 0===p?void 0:p.endOffset,b=0,w=0,x=[];null===A||void 0===A||(0,a.default)(A).call(A,function(e,t){e.contains(g)&&(b=t),e.contains(m)&&(w=t)}),w-b>1&&(null===A||void 0===A||(0,a.default)(A).call(A,function(e,t){t<=b||t>=w||x.push(e)}),(0,a.default)(x).call(x,function(e){e.remove()})),u.dealTextNode(g,v),u.dealTextNode(m,y,!1),e.selection.moveCursor(m,0)}if(""===o.text()){var _=s.default(h.EMPTY_P);return _.insertAfter(o),i.moveCursor(_.getNode()),void o.remove()}var C=i.getCursorPos(),S=l.getCursorNextNode(null===d||void 0===d?void 0:d.getNode(),f,C),k=c.default(s.default(S)),B=k.getInputContainer(),E=B.parent().getNode(),T=k.getTodo(),I=B.getNode().nextSibling;""===(null===d||void 0===d?void 0:d.text())&&(null===d||void 0===d||d.append(s.default("<br>"))),T.insertAfter(o),I&&""!==(null===I||void 0===I?void 0:I.textContent)?i.moveCursor(E):("BR"!==(null===I||void 0===I?void 0:I.nodeName)&&s.default("<br>").insertAfter(B),i.moveCursor(E,1))}}),e.txt.eventHooks.deleteUpEvents.push(function(){var t=e.selection.getSelectionRangeTopNodes()[0];t&&u.isTodo(t)&&""===t.text()&&(s.default(h.EMPTY_P).insertAfter(t),t.remove())}),e.txt.eventHooks.deleteDownEvents.push(function(t){var n,r;if(l.isAllTodo(e)){var i,o=e.selection,c=o.getSelectionRangeTopNodes()[0],u=null===(n=c.childNodes())||void 0===n?void 0:n.getNode(),d=s.default("<p></p>"),f=d.getNode(),p=null===(r=window.getSelection())||void 0===r?void 0:r.anchorNode,A=o.getCursorPos(),g=p.previousSibling;if(""===c.text()){t.preventDefault();var m=s.default(h.EMPTY_P);return m.insertAfter(c),c.remove(),void o.moveCursor(m.getNode(),0)}"SPAN"===(null===g||void 0===g?void 0:g.nodeName)&&"INPUT"===g.childNodes[0].nodeName&&0===A&&(t.preventDefault(),null===u||void 0===u||(0,a.default)(i=u.childNodes).call(i,function(e,t){0!==t&&f.appendChild(e.cloneNode(!0))}),d.insertAfter(c),c.remove())}})}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(2).__importDefault(n(3)),i=n(6),a=n(7),o={border:"1px solid #c9d8db",toolbarBgColor:"#FFF",toolbarBottomBorder:"1px solid #EEE"};t.default=function(e){var t,n,s=e.toolbarSelector,l=r.default(s),c=e.textSelector,u=e.config.height,h=e.i18next,d=r.default("<div></div>"),f=r.default("<div></div>"),p=null;null==c?(n=l.children(),l.append(d).append(f),d.css("background-color",o.toolbarBgColor).css("border",o.border).css("border-bottom",o.toolbarBottomBorder),f.css("border",o.border).css("border-top","none").css("height",u+"px")):(l.append(d),p=r.default(c).children(),r.default(c).append(f),n=f.children()),(t=r.default("<div></div>")).attr("contenteditable","true").css("width","100%").css("height","100%");var A=r.default("<div>"+h.t(e.config.placeholder)+"</div>");A.addClass("placeholder"),n&&n.length?(t.append(n),A.hide()):t.append(r.default(a.EMPTY_P)),p&&p.length&&(t.append(p),A.hide()),f.append(t),f.append(A),d.addClass("w-e-toolbar").css("z-index",e.zIndex.get("toolbar")),f.addClass("w-e-text-container"),f.css("z-index",e.zIndex.get()),t.addClass("w-e-text");var g=i.getRandom("toolbar-elem");d.attr("id",g);var m=i.getRandom("text-elem");t.attr("id",m);var v=f.getBoundingClientRect().height;v!==t.getBoundingClientRect().height&&t.css("min-height",v+"px"),e.$toolbarElem=d,e.$textContainerElem=f,e.$textElem=t,e.toolbarElemId=g,e.textElemId=m}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(2).__importDefault(n(3)),i=n(7);t.default=function e(t,n){var a=t.$textElem,o=a.children();if(!o||!o.length)return a.append(r.default(i.EMPTY_P)),void e(t);var s=o.last();if(n){var l=s.html().toLowerCase(),c=s.getNodeName();if("<br>"!==l&&"<br/>"!==l||"P"!==c)return a.append(r.default(i.EMPTY_P)),void e(t)}t.selection.createRangeByElem(s,!1,!0),t.config.focus?t.selection.restoreSelection():t.selection.clearWindowSelectionRange()}},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),a=r(n(4));(0,i.default)(t,"__esModule",{value:!0});var o=n(2).__importDefault(n(3));function s(e){(0,e.config.onfocus)(e.txt.html()||"")}t.default=function(e){!function(e){e.txt.eventHooks.changeEvents.push(function(){var t=e.config.onchange;if(t){var n=e.txt.html()||"";t(n)}e.txt.togglePlaceholder()})}(e),function(e){function t(t){var n=t.target,r=o.default(n),i=e.$textElem,l=e.$toolbarElem,c=i.isContain(r),u=l.isContain(r),h=l.elems[0]==t.target;if(c)e.isFocus||s(e),e.isFocus=!0;else{if(u&&!h||!e.isFocus)return;!function(e){var t,n=e.config.onblur,r=e.txt.html()||"";(0,a.default)(t=e.txt.eventHooks.onBlurEvents).call(t,function(e){return e()}),n(r)}(e),e.isFocus=!1}}e.isFocus=!1,document.activeElement===e.$textElem.elems[0]&&e.config.focus&&(s(e),e.isFocus=!0),o.default(document).on("click",t),e.beforeDestroy(function(){o.default(document).off("click",t)})}(e),function(e){e.$textElem.on("compositionstart",function(){e.isComposing=!0,e.txt.togglePlaceholder()}).on("compositionend",function(){e.isComposing=!1,e.txt.togglePlaceholder()})}(e)}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.default=function(e){var t=e.config,n=t.lang,r=t.languages;if(null==e.i18next)e.i18next={t:function(e){var t=e.split(".");return t[t.length-1]}};else try{e.i18next.init({ns:"wangEditor",lng:n,defaultNS:"wangEditor",resources:r})}catch(e){throw new Error("i18next:"+e)}}},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),a=r(n(30));(0,i.default)(t,"__esModule",{value:!0}),t.setUnFullScreen=t.setFullScreen=void 0;var o=n(2).__importDefault(n(3));n(421);t.setFullScreen=function(e){var t=o.default(e.toolbarSelector),n=e.$textContainerElem,r=e.$toolbarElem,i=(0,a.default)(r).call(r,"i.w-e-icon-fullscreen"),s=e.config;i.removeClass("w-e-icon-fullscreen"),i.addClass("w-e-icon-fullscreen_exit"),t.addClass("w-e-full-screen-editor"),t.css("z-index",s.zIndexFullScreen);var l=r.getBoundingClientRect();n.css("height","calc(100% - "+l.height+"px)")};t.setUnFullScreen=function(e){var t=o.default(e.toolbarSelector),n=e.$textContainerElem,r=e.$toolbarElem,i=(0,a.default)(r).call(r,"i.w-e-icon-fullscreen_exit"),s=e.config;i.removeClass("w-e-icon-fullscreen_exit"),i.addClass("w-e-icon-fullscreen"),t.removeClass("w-e-full-screen-editor"),t.css("z-index","auto"),n.css("height",s.height+"px")};t.default=function(e){if(!e.textSelector&&e.config.showFullScreen){var n=e.$toolbarElem,r=o.default('<div class="w-e-menu" data-title="全屏">\n <i class="w-e-icon-fullscreen"></i>\n </div>');r.on("click",function(n){var i;(0,a.default)(i=o.default(n.currentTarget)).call(i,"i").hasClass("w-e-icon-fullscreen")?(r.attr("data-title","取消全屏"),t.setFullScreen(e)):(r.attr("data-title","全屏"),t.setUnFullScreen(e))}),n.append(r)}}},function(e,t,n){var r=n(21),i=n(422);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var a={insert:"head",singleton:!1};r(i,a);e.exports=i.locals||{}},function(e,t,n){(t=n(22)(!1)).push([e.i,".w-e-full-screen-editor {\n position: fixed;\n width: 100%!important;\n height: 100%!important;\n left: 0;\n top: 0;\n}\n",""]),e.exports=t},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),a=r(n(30));(0,i.default)(t,"__esModule",{value:!0});t.default=function(e,t){var n=e.$textElem,r=(0,a.default)(n).call(n,"[id='"+t+"']").getOffsetData().top;n.scrollTop(r)}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(2).__importDefault(n(127)),i={menu:2,panel:2,toolbar:1,tooltip:1,textContainer:1},a=function(){function e(){this.tier=i,this.baseZIndex=r.default.zIndex}return e.prototype.get=function(e){return e&&this.tier[e]?this.baseZIndex+this.tier[e]:this.baseZIndex},e.prototype.init=function(e){this.baseZIndex==r.default.zIndex&&(this.baseZIndex=e.config.zIndex)},e}();t.default=a},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),a=r(n(74)),o=r(n(4));(0,i.default)(t,"__esModule",{value:!0});var s=n(2),l=s.__importDefault(n(426)),c=n(6),u=n(7);var h=function(e){function t(t){var n=e.call(this,function(e,r){var i;if(e=function(e,t){return(0,a.default)(e).call(e,function(e){var n=e.type,r=e.target,i=e.attributeName;return"attributes"!=n||"attributes"==n&&("contenteditable"==i||r!=t)})}(e,r.target),(i=n.data).push.apply(i,e),t.isCompatibleMode)n.asyncSave();else if(!t.isComposing)return n.asyncSave()})||this;return n.editor=t,n.data=[],n.asyncSave=u.EMPTY_FN,n}return s.__extends(t,e),t.prototype.save=function(){this.data.length&&(this.editor.history.save(this.data),this.data.length=0,this.emit())},t.prototype.emit=function(){var e;(0,o.default)(e=this.editor.txt.eventHooks.changeEvents).call(e,function(e){return e()})},t.prototype.observe=function(){var t=this;e.prototype.observe.call(this,this.editor.$textElem.elems[0]);var n=this.editor.config.onchangeTimeout;this.asyncSave=c.debounce(function(){t.save()},n),this.editor.isCompatibleMode||this.editor.$textElem.on("compositionend",function(){t.asyncSave()})},t}(l.default);t.default=h},function(e,t,n){"use strict";var r=n(0)(n(1));(0,r.default)(t,"__esModule",{value:!0});var i=function(){function e(e,t){var n=this;this.options={subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0},this.callback=function(t){e(t,n)},this.observer=new MutationObserver(this.callback),t&&(this.options=t)}return(0,r.default)(e.prototype,"target",{get:function(){return this.node},enumerable:!1,configurable:!0}),e.prototype.observe=function(e){this.node instanceof Node||(this.node=e,this.connect())},e.prototype.connect=function(){if(this.node)return this.observer.observe(this.node,this.options),this;throw new Error("还未初始化绑定,请您先绑定有效的 Node 节点")},e.prototype.disconnect=function(){var e=this.observer.takeRecords();e.length&&this.callback(e),this.observer.disconnect()},e}();t.default=i},function(e,t,n){"use strict";var r=n(0)(n(1));(0,r.default)(t,"__esModule",{value:!0});var i=n(2),a=i.__importDefault(n(428)),o=i.__importDefault(n(435)),s=i.__importDefault(n(436)),l=function(){function e(e){this.editor=e,this.content=new a.default(e),this.scroll=new o.default(e),this.range=new s.default(e)}return(0,r.default)(e.prototype,"size",{get:function(){return this.scroll.size},enumerable:!1,configurable:!0}),e.prototype.observe=function(){this.content.observe(),this.scroll.observe(),!this.editor.isCompatibleMode&&this.range.observe()},e.prototype.save=function(e){e.length&&(this.content.save(e),this.scroll.save(),!this.editor.isCompatibleMode&&this.range.save())},e.prototype.revoke=function(){this.editor.change.disconnect();var e=this.content.revoke();e&&(this.scroll.revoke(),this.editor.isCompatibleMode||(this.range.revoke(),this.editor.$textElem.focus())),this.editor.change.connect(),e&&this.editor.change.emit()},e.prototype.restore=function(){this.editor.change.disconnect();var e=this.content.restore();e&&(this.scroll.restore(),this.editor.isCompatibleMode||(this.range.restore(),this.editor.$textElem.focus())),this.editor.change.connect(),e&&this.editor.change.emit()},e}();t.default=l},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(2),i=r.__importDefault(n(429)),a=r.__importDefault(n(433)),o=function(){function e(e){this.editor=e}return e.prototype.observe=function(){this.editor.isCompatibleMode?this.cache=new a.default(this.editor):this.cache=new i.default(this.editor),this.cache.observe()},e.prototype.save=function(e){this.editor.isCompatibleMode?this.cache.save():this.cache.compile(e)},e.prototype.revoke=function(){var e;return null===(e=this.cache)||void 0===e?void 0:e.revoke()},e.prototype.restore=function(){var e;return null===(e=this.cache)||void 0===e?void 0:e.restore()},e}();t.default=o},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(2),i=r.__importDefault(n(99)),a=r.__importDefault(n(431)),o=n(432),s=function(e){function t(t){var n=e.call(this,t.config.historyMaxSize)||this;return n.editor=t,n}return r.__extends(t,e),t.prototype.observe=function(){this.resetMaxSize(this.editor.config.historyMaxSize)},t.prototype.compile=function(e){return this.save(a.default(e)),this},t.prototype.revoke=function(){return e.prototype.revoke.call(this,function(e){o.revoke(e)})},t.prototype.restore=function(){return e.prototype.restore.call(this,function(e){o.restore(e)})},t}(i.default);t.default=s},function(e,t,n){"use strict";var r=n(0)(n(1));(0,r.default)(t,"__esModule",{value:!0}),t.CeilStack=void 0;var i=function(){function e(e){void 0===e&&(e=0),this.data=[],this.max=0,this.reset=!1,(e=Math.abs(e))&&(this.max=e)}return e.prototype.resetMax=function(e){e=Math.abs(e),this.reset||isNaN(e)||(this.max=e,this.reset=!0)},(0,r.default)(e.prototype,"size",{get:function(){return this.data.length},enumerable:!1,configurable:!0}),e.prototype.instack=function(e){return this.data.unshift(e),this.max&&this.size>this.max&&(this.data.length=this.max),this},e.prototype.outstack=function(){return this.data.shift()},e.prototype.clear=function(){return this.data.length=0,this},e}();t.CeilStack=i},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),a=r(n(4)),o=r(n(26));(0,i.default)(t,"__esModule",{value:!0}),t.compliePosition=t.complieNodes=t.compileValue=t.compileType=void 0;var s=n(6);function l(e){switch(e){case"childList":return"node";case"attributes":return"attr";default:return"text"}}function c(e){switch(e.type){case"attributes":return e.target.getAttribute(e.attributeName)||"";case"characterData":return e.target.textContent;default:return""}}function u(e){var t={};return e.addedNodes.length&&(t.add=s.toArray(e.addedNodes)),e.removedNodes.length&&(t.remove=s.toArray(e.removedNodes)),t}function h(e){return e.previousSibling?{type:"before",target:e.previousSibling}:e.nextSibling?{type:"after",target:e.nextSibling}:{type:"parent",target:e.target}}t.compileType=l,t.compileValue=c,t.complieNodes=u,t.compliePosition=h;var d=["UL","OL","H1","H2","H3","H4","H5","H6"];function f(e,t){for(var n=0,r=t.length-1;r>0&&e.contains(t[r]);r--)n++;return n}t.default=function(e){var t=[],n=!1,r=[];return(0,a.default)(e).call(e,function(e,i){var a={type:l(e.type),target:e.target,attr:e.attributeName||"",value:c(e)||"",oldValue:e.oldValue||"",nodes:u(e),position:h(e)};if(t.push(a),s.UA.isFirefox){if(n&&e.addedNodes.length&&1==e.addedNodes[0].nodeType){var p=e.addedNodes[0],A={type:"node",target:p,attr:"",value:"",oldValue:"",nodes:{add:[n]},position:{type:"parent",target:p}};-1!=(0,o.default)(d).call(d,p.nodeName)?(A.nodes.add=s.toArray(p.childNodes),t.push(A)):3==n.nodeType?(f(p,r)&&(A.nodes.add=s.toArray(p.childNodes)),t.push(A)):-1==(0,o.default)(d).call(d,e.target.nodeName)&&f(p,r)&&(A.nodes.add=s.toArray(p.childNodes),t.push(A))}"node"==a.type&&1==e.removedNodes.length?(n=e.removedNodes[0],r.push(n)):(n=!1,r.length=0)}}),t}},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),a=r(n(4)),o=r(n(130));function s(e,t){var n=e.position.target;switch(e.position.type){case"before":n.nextSibling?(n=n.nextSibling,(0,a.default)(t).call(t,function(t){e.target.insertBefore(t,n)})):(0,a.default)(t).call(t,function(t){e.target.appendChild(t)});break;case"after":(0,a.default)(t).call(t,function(t){e.target.insertBefore(t,n)});break;default:(0,a.default)(t).call(t,function(e){n.appendChild(e)})}}(0,i.default)(t,"__esModule",{value:!0}),t.restore=t.revoke=void 0;var l={node:function(e){for(var t=0,n=(0,o.default)(e.nodes);t<n.length;t++){var r=n[t],i=r[0],l=r[1];switch(i){case"add":(0,a.default)(l).call(l,function(t){e.target.removeChild(t)});break;default:s(e,l)}}},text:function(e){e.target.textContent=e.oldValue},attr:function(e){var t=e.target;null==e.oldValue?t.removeAttribute(e.attr):t.setAttribute(e.attr,e.oldValue)}};t.revoke=function(e){for(var t=e.length-1;t>-1;t--){var n=e[t];l[n.type](n)}};var c={node:function(e){for(var t=0,n=(0,o.default)(e.nodes);t<n.length;t++){var r=n[t],i=r[0],l=r[1];switch(i){case"add":s(e,l);break;default:(0,a.default)(l).call(l,function(e){e.parentNode.removeChild(e)})}}},text:function(e){e.target.textContent=e.value},attr:function(e){e.target.setAttribute(e.attr,e.value)}};t.restore=function(e){for(var t=0,n=e;t<n.length;t++){var r=n[t];c[r.type](r)}}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(434),i=function(){function e(e){this.editor=e,this.data=new r.TailChain}return e.prototype.observe=function(){this.data.resetMax(this.editor.config.historyMaxSize),this.data.insertLast(this.editor.$textElem.html())},e.prototype.save=function(){return this.data.insertLast(this.editor.$textElem.html()),this},e.prototype.revoke=function(){var e=this.data.prev();return!!e&&(this.editor.$textElem.html(e),!0)},e.prototype.restore=function(){var e=this.data.next();return!!e&&(this.editor.$textElem.html(e),!0)},e}();t.default=i},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),a=r(n(93));(0,i.default)(t,"__esModule",{value:!0}),t.TailChain=void 0;var o=function(){function e(){this.data=[],this.max=0,this.point=0,this.isRe=!1}return e.prototype.resetMax=function(e){(e=Math.abs(e))&&(this.max=e)},(0,i.default)(e.prototype,"size",{get:function(){return this.data.length},enumerable:!1,configurable:!0}),e.prototype.insertLast=function(e){var t;this.isRe&&((0,a.default)(t=this.data).call(t,this.point+1),this.isRe=!1);for(this.data.push(e);this.max&&this.size>this.max;)this.data.shift();return this.point=this.size-1,this},e.prototype.current=function(){return this.data[this.point]},e.prototype.prev=function(){if(!this.isRe&&(this.isRe=!0),this.point--,!(this.point<0))return this.current();this.point=0},e.prototype.next=function(){if(!this.isRe&&(this.isRe=!0),this.point++,!(this.point>=this.size))return this.current();this.point=this.size-1},e}();t.TailChain=o},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(2),i=function(e){function t(t){var n=e.call(this,t.config.historyMaxSize)||this;return n.editor=t,n.last=0,n.target=t.$textElem.elems[0],n}return r.__extends(t,e),t.prototype.observe=function(){var e=this;this.target=this.editor.$textElem.elems[0],this.editor.$textElem.on("scroll",function(){e.last=e.target.scrollTop}),this.resetMaxSize(this.editor.config.historyMaxSize)},t.prototype.save=function(){return e.prototype.save.call(this,[this.last,this.target.scrollTop]),this},t.prototype.revoke=function(){var t=this;return e.prototype.revoke.call(this,function(e){t.target.scrollTop=e[0]})},t.prototype.restore=function(){var t=this;return e.prototype.restore.call(this,function(e){t.target.scrollTop=e[1]})},t}(r.__importDefault(n(99)).default);t.default=i},function(e,t,n){"use strict";var r=n(0)(n(1));(0,r.default)(t,"__esModule",{value:!0});var i=n(2),a=i.__importDefault(n(99)),o=i.__importDefault(n(3)),s=n(6);function l(e){return{start:[e.startContainer,e.startOffset],end:[e.endContainer,e.endOffset],root:e.commonAncestorContainer,collapsed:e.collapsed}}var c=function(e){function t(t){var n=e.call(this,t.config.historyMaxSize)||this;return n.editor=t,n.lastRange=l(document.createRange()),n.root=t.$textElem.elems[0],n.updateLastRange=s.debounce(function(){n.lastRange=l(n.rangeHandle)},t.config.onchangeTimeout),n}return i.__extends(t,e),(0,r.default)(t.prototype,"rangeHandle",{get:function(){var e=document.getSelection();return e&&e.rangeCount?e.getRangeAt(0):document.createRange()},enumerable:!1,configurable:!0}),t.prototype.observe=function(){var e=this;function t(){var t=e.rangeHandle;(e.root===t.commonAncestorContainer||e.root.contains(t.commonAncestorContainer))&&(e.editor.isComposing||e.updateLastRange())}this.root=this.editor.$textElem.elems[0],this.resetMaxSize(this.editor.config.historyMaxSize),o.default(document).on("selectionchange",t),this.editor.beforeDestroy(function(){o.default(document).off("selectionchange",t)}),e.editor.$textElem.on("keydown",function(t){"Backspace"!=t.key&&"Delete"!=t.key||e.updateLastRange()})},t.prototype.save=function(){var t=l(this.rangeHandle);return e.prototype.save.call(this,[this.lastRange,t]),this.lastRange=t,this},t.prototype.set=function(e){try{if(e){var t=this.rangeHandle;return t.setStart.apply(t,e.start),t.setEnd.apply(t,e.end),this.editor.menus.changeActive(),!0}}catch(e){return!1}return!1},t.prototype.revoke=function(){var t=this;return e.prototype.revoke.call(this,function(e){t.set(e[0])})},t.prototype.restore=function(){var t=this;return e.prototype.restore.call(this,function(e){t.set(e[1])})},t}(a.default);t.default=c},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),a=r(n(30));(0,i.default)(t,"__esModule",{value:!0});var o=n(2).__importDefault(n(3));n(438),t.default=function(e){var t,n,r=!1;return e.txt.eventHooks.changeEvents.push(function(){r&&(0,a.default)(t).call(t,".w-e-content-preview").html(e.$textElem.html())}),{disable:function(){if(!r){e.$textElem.hide();var i=e.zIndex.get("textContainer"),a=e.txt.html();t=o.default('<div class="w-e-content-mantle" style="z-index:'+i+'">\n <div class="w-e-content-preview w-e-text">'+a+"</div>\n </div>"),e.$textContainerElem.append(t);var s=e.zIndex.get("menu");n=o.default('<div class="w-e-menue-mantle" style="z-index:'+s+'"></div>'),e.$toolbarElem.append(n),r=!0}},enable:function(){r&&(t.remove(),n.remove(),e.$textElem.show(),r=!1)}}}},function(e,t,n){var r=n(21),i=n(439);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var a={insert:"head",singleton:!1};r(i,a);e.exports=i.locals||{}},function(e,t,n){(t=n(22)(!1)).push([e.i,".w-e-content-mantle {\n width: 100%;\n height: 100%;\n overflow-y: auto;\n}\n.w-e-content-mantle .w-e-content-preview {\n width: 100%;\n min-height: 100%;\n padding: 0 10px;\n line-height: 1.5;\n}\n.w-e-content-mantle .w-e-content-preview img {\n cursor: default;\n}\n.w-e-content-mantle .w-e-content-preview img:hover {\n box-shadow: none;\n}\n.w-e-menue-mantle {\n position: absolute;\n height: 100%;\n width: 100%;\n top: 0;\n left: 0;\n}\n",""]),e.exports=t},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0})}]).default},e.exports=r()},awF4:function(e,t,n){(function(t){var n;n="undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{},e.exports=n}).call(t,n("DuR2"))},ax3d:function(e,t,n){var r=n("e8AB")("keys"),i=n("3Eo+");e.exports=function(e){return r[e]||(r[e]=i(e))}},bCIp:function(module,exports,__webpack_require__){var factory;"undefined"!=typeof self&&self,factory=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="fb15")}({0:function(e,t){},"0507":function(e,t,n){("undefined"!=typeof window?window:{}).pdfjsWorker=n("55db")},1:function(e,t){},"1fb5":function(e,t,n){"use strict";t.byteLength=function(e){var t=c(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,r=c(e),o=r[0],s=r[1],l=new a(function(e,t,n){return 3*(t+n)/4-n}(0,o,s)),u=0,h=s>0?o-4:o;for(n=0;n<h;n+=4)t=i[e.charCodeAt(n)]<<18|i[e.charCodeAt(n+1)]<<12|i[e.charCodeAt(n+2)]<<6|i[e.charCodeAt(n+3)],l[u++]=t>>16&255,l[u++]=t>>8&255,l[u++]=255&t;2===s&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,l[u++]=255&t);1===s&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,l[u++]=t>>8&255,l[u++]=255&t);return l},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,a=[],o=0,s=n-i;o<s;o+=16383)a.push(u(e,o,o+16383>s?s:o+16383));1===i?(t=e[n-1],a.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],a.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return a.join("")};for(var r=[],i=[],a="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=o.length;s<l;++s)r[s]=o[s],i[o.charCodeAt(s)]=s;function c(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function u(e,t,n){for(var i,a,o=[],s=t;s<n;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),o.push(r[(a=i)>>18&63]+r[a>>12&63]+r[a>>6&63]+r[63&a]);return o.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},2:function(e,t){},3:function(e,t){},"35b6":function(e,t,n){"use strict";var r=n("aa79");n.n(r).a},4:function(e,t){},4362:function(e,t,n){var r,i;t.nextTick=function(e){var t=Array.prototype.slice.call(arguments);t.shift(),setTimeout(function(){e.apply(null,t)},0)},t.platform=t.arch=t.execPath=t.title="browser",t.pid=1,t.browser=!0,t.env={},t.argv=[],t.binding=function(e){throw new Error("No such module. (Possibly not yet loaded)")},i="/",t.cwd=function(){return i},t.chdir=function(e){r||(r=n("df7c")),i=r.resolve(e,i)},t.exit=t.kill=t.umask=t.dlopen=t.uptime=t.memoryUsage=t.uvCounters=function(){},t.features={}},"4b09":function(e,t,n){},"55db":function(e,t,n){(function(t){var n;n=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"WorkerMessageHandler",{enumerable:!0,get:function(){return r.WorkerMessageHandler}});var r=n(1)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WorkerMessageHandler=t.WorkerTask=void 0;var r=n(2),i=n(5),a=n(6),o=n(4),s=n(45),l=n(46),c=n(8),u=function(){function e(e){this.name=e,this.terminated=!1,this._capability=(0,r.createPromiseCapability)()}return e.prototype={get finished(){return this._capability.promise},finish(){this._capability.resolve()},terminate(){this.terminated=!0},ensureNotTerminated(){if(this.terminated)throw new Error("Worker task was terminated")}},e}();t.WorkerTask=u;var h,d={setup(e,t){var n=!1;e.on("test",function(t){if(n)return;if(n=!0,!(t instanceof Uint8Array))return void e.send("test",null);const r=255===t[0];e.postMessageTransfers=r,e.send("test",{supportTransfers:r})}),e.on("configure",function(e){(0,r.setVerbosityLevel)(e.verbosity)}),e.on("GetDocRequest",function(e){return d.createDocumentHandler(e,t)})},createDocumentHandler(e,t){var n,o=!1,h=null,d=[];const f=(0,r.getVerbosityLevel)(),p=e.apiVersion;if("2.5.207"!==p)throw new Error(`The API version "${p}" does not match `+'the Worker version "2.5.207".');const A=[];for(const e in[])A.push(e);if(A.length)throw new Error("The `Array.prototype` contains unexpected enumerable properties: "+A.join(", ")+"; thus breaking e.g. `for...in` iteration of `Array`s.");if("undefined"==typeof ReadableStream||void 0===Promise.allSettled)throw new Error("The browser/environment lacks native support for critical functionality used by the PDF.js library (e.g. `ReadableStream` and/or `Promise.allSettled`); please use an ES5-compatible build instead.");var g=e.docId,m=e.docBaseUrl,v=e.docId+"_worker",y=new s.MessageHandler(v,g,t);function b(){if(o)throw new Error("Worker was terminated")}function w(e){d.push(e)}function x(e){e.finish();var t=d.indexOf(e);d.splice(t,1)}async function _(e){await n.ensureDoc("checkHeader"),await n.ensureDoc("parseStartXRef"),await n.ensureDoc("parse",[e]),e||await n.ensureDoc("checkFirstPage");const[t,r]=await Promise.all([n.ensureDoc("numPages"),n.ensureDoc("fingerprint")]);return{numPages:t,fingerprint:r}}function C(e,t){var n=(0,r.createPromiseCapability)();let i;var o=e.source;if(o.data){try{i=new a.LocalPdfManager(g,o.data,o.password,t,m),n.resolve(i)}catch(e){n.reject(e)}return n.promise}var s,c=[];try{s=new l.PDFWorkerStream(y)}catch(e){return n.reject(e),n.promise}var u=s.getFullReader();u.headersReady.then(function(){if(u.isRangeSupported){var e=o.disableAutoFetch||u.isStreamingSupported;i=new a.NetworkPdfManager(g,s,{msgHandler:y,password:o.password,length:u.contentLength,disableAutoFetch:e,rangeChunkSize:o.rangeChunkSize},t,m);for(let e=0;e<c.length;e++)i.sendProgressiveData(c[e]);c=[],n.resolve(i),h=null}}).catch(function(e){n.reject(e),h=null});var d=0;return new Promise(function(e,s){var l=function({value:e,done:f}){try{if(b(),f)return i||function(){var e=(0,r.arraysToBytes)(c);o.length&&e.length!==o.length&&(0,r.warn)("reported HTTP length is different from actual");try{i=new a.LocalPdfManager(g,e,o.password,t,m),n.resolve(i)}catch(e){n.reject(e)}c=[]}(),void(h=null);d+=(0,r.arrayByteLength)(e),u.isStreamingSupported||y.send("DocProgress",{loaded:d,total:Math.max(d,u.contentLength||0)}),i?i.sendProgressiveData(e):c.push(e),u.read().then(l,s)}catch(e){s(e)}};u.read().then(l,s)}).catch(function(e){n.reject(e),h=null}),h=function(e){s.cancelAllRequests(e)},n.promise}return y.postMessageTransfers=e.postMessageTransfers,y.on("GetPage",function(e){return n.getPage(e.pageIndex).then(function(e){return Promise.all([n.ensure(e,"rotate"),n.ensure(e,"ref"),n.ensure(e,"userUnit"),n.ensure(e,"view")]).then(function([e,t,n,r]){return{rotate:e,ref:t,userUnit:n,view:r}})})}),y.on("GetPageIndex",function(e){var t=i.Ref.get(e.ref.num,e.ref.gen);return n.pdfDocument.catalog.getPageIndex(t)}),y.on("GetDestinations",function(e){return n.ensureCatalog("destinations")}),y.on("GetDestination",function(e){return n.ensureCatalog("getDestination",[e.id])}),y.on("GetPageLabels",function(e){return n.ensureCatalog("pageLabels")}),y.on("GetPageLayout",function(e){return n.ensureCatalog("pageLayout")}),y.on("GetPageMode",function(e){return n.ensureCatalog("pageMode")}),y.on("GetViewerPreferences",function(e){return n.ensureCatalog("viewerPreferences")}),y.on("GetOpenAction",function(e){return n.ensureCatalog("openAction")}),y.on("GetAttachments",function(e){return n.ensureCatalog("attachments")}),y.on("GetJavaScript",function(e){return n.ensureCatalog("javaScript")}),y.on("GetOutline",function(e){return n.ensureCatalog("documentOutline")}),y.on("GetPermissions",function(e){return n.ensureCatalog("permissions")}),y.on("GetMetadata",function(e){return Promise.all([n.ensureDoc("documentInfo"),n.ensureCatalog("metadata")])}),y.on("GetData",function(e){return n.requestLoadedStream(),n.onLoadedStream().then(function(e){return e.bytes})}),y.on("GetStats",function(e){return n.pdfDocument.xref.stats}),y.on("GetAnnotations",function({pageIndex:e,intent:t}){return n.getPage(e).then(function(e){return e.getAnnotationsData(t)})}),y.on("GetOperatorList",function(e,t){var i=e.pageIndex;n.getPage(i).then(function(n){var a=new u(`GetOperatorList: page ${i}`);w(a);const o=f>=r.VerbosityLevel.INFOS?Date.now():0;n.getOperatorList({handler:y,sink:t,task:a,intent:e.intent,renderInteractiveForms:e.renderInteractiveForms}).then(function(e){x(a),o&&(0,r.info)(`page=${i+1} - getOperatorList: time=`+`${Date.now()-o}ms, len=${e.length}`),t.close()},function(e){x(a),a.terminated||(y.send("UnsupportedFeature",{featureId:r.UNSUPPORTED_FEATURES.errorOperatorList}),t.error(e))})})},this),y.on("GetTextContent",function(e,t){var i=e.pageIndex;t.onPull=function(e){},t.onCancel=function(e){},n.getPage(i).then(function(n){var a=new u("GetTextContent: page "+i);w(a);const o=f>=r.VerbosityLevel.INFOS?Date.now():0;n.extractTextContent({handler:y,task:a,sink:t,normalizeWhitespace:e.normalizeWhitespace,combineTextItems:e.combineTextItems}).then(function(){x(a),o&&(0,r.info)(`page=${i+1} - getTextContent: time=`+`${Date.now()-o}ms`),t.close()},function(e){x(a),a.terminated||t.error(e)})})}),y.on("FontFallback",function(e){return n.fontFallback(e.id,y)}),y.on("Cleanup",function(e){return n.cleanup(!0)}),y.on("Terminate",function(e){o=!0;const t=[];if(n){n.terminate(new r.AbortException("Worker was terminated."));const e=n.cleanup();t.push(e),n=null}else(0,i.clearPrimitiveCaches)();return h&&h(new r.AbortException("Worker was terminated.")),d.forEach(function(e){t.push(e.finished),e.terminate()}),Promise.all(t).then(function(){y.destroy(),y=null})}),y.on("Ready",function(t){!function(e){function t(e){b(),y.send("GetDoc",{pdfInfo:e})}function i(e){if(b(),e instanceof r.PasswordException){var t=new u(`PasswordException: response ${e.code}`);w(t),y.sendWithPromise("PasswordRequest",e).then(function({password:e}){x(t),n.updatePassword(e),a()}).catch(function(){x(t),y.send("DocException",e)})}else e instanceof r.InvalidPDFException||e instanceof r.MissingPDFException||e instanceof r.UnexpectedResponseException||e instanceof r.UnknownErrorException?y.send("DocException",e):y.send("DocException",new r.UnknownErrorException(e.message,e.toString()))}function a(){b(),_(!1).then(t,function(e){b(),e instanceof c.XRefParseException?(n.requestLoadedStream(),n.onLoadedStream().then(function(){b(),_(!0).then(t,i)})):i(e)},i)}b(),C(e,{maxImageSize:e.maxImageSize,disableFontFace:e.disableFontFace,ignoreErrors:e.ignoreErrors,isEvalSupported:e.isEvalSupported,fontExtraProperties:e.fontExtraProperties}).then(function(e){if(o)throw e.terminate(new r.AbortException("Worker was terminated.")),new Error("Worker was terminated");(n=e).onLoadedStream().then(function(e){y.send("DataLoaded",{length:e.bytes.byteLength})})}).then(a,i)}(e),e=null}),v},initializeFromPort(e){var t=new s.MessageHandler("worker","main",e);d.setup(t,e),t.send("ready",null)}};t.WorkerMessageHandler=d,"undefined"==typeof window&&!o.isNodeJS&&"undefined"!=typeof self&&("function"==typeof(h=self).postMessage&&"onmessage"in h)&&d.initializeFromPort(self)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayByteLength=d,t.arraysToBytes=function(e){const t=e.length;if(1===t&&e[0]instanceof Uint8Array)return e[0];let n=0;for(let r=0;r<t;r++)n+=d(e[r]);let r=0;const i=new Uint8Array(n);for(let n=0;n<t;n++){let t=e[n];t instanceof Uint8Array||(t="string"==typeof t?h(t):new Uint8Array(t));const a=t.byteLength;i.set(t,r),r+=a}return i},t.assert=s,t.bytesToString=function(e){s(null!==e&&"object"==typeof e&&void 0!==e.length,"Invalid argument for bytesToString");const t=e.length;if(t<8192)return String.fromCharCode.apply(null,e);const n=[];for(let r=0;r<t;r+=8192){const i=Math.min(r+8192,t),a=e.subarray(r,i);n.push(String.fromCharCode.apply(null,a))}return n.join("")},t.createPromiseCapability=function(){const e=Object.create(null);let t=!1;return Object.defineProperty(e,"settled",{get:()=>t}),e.promise=new Promise(function(n,r){e.resolve=function(e){t=!0,n(e)},e.reject=function(e){t=!0,r(e)}}),e},t.getVerbosityLevel=function(){return i},t.info=function(e){i>=r.INFOS&&console.log(`Info: ${e}`)},t.isArrayBuffer=function(e){return"object"==typeof e&&null!==e&&void 0!==e.byteLength},t.isArrayEqual=function(e,t){if(e.length!==t.length)return!1;return e.every(function(e,n){return e===t[n]})},t.isBool=function(e){return"boolean"==typeof e},t.isEmptyObj=function(e){for(const t in e)return!1;return!0},t.isNum=function(e){return"number"==typeof e},t.isString=function(e){return"string"==typeof e},t.isSameOrigin=function(e,t){let n;try{if(!(n=new URL(e)).origin||"null"===n.origin)return!1}catch(e){return!1}const r=new URL(t,n);return n.origin===r.origin},t.createValidAbsoluteUrl=function(e,t){if(!e)return null;try{const n=t?new URL(e,t):new URL(e);if(function(e){if(!e)return!1;switch(e.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}(n))return n}catch(e){}return null},t.removeNullCharacters=function(e){if("string"!=typeof e)return a("The argument for removeNullCharacters must be a string."),e;return e.replace(u,"")},t.setVerbosityLevel=function(e){Number.isInteger(e)&&(i=e)},t.shadow=l,t.string32=function(e){return String.fromCharCode(e>>24&255,e>>16&255,e>>8&255,255&e)},t.stringToBytes=h,t.stringToPDFString=function(e){const t=e.length,n=[];if("þ"===e[0]&&"ÿ"===e[1])for(let r=2;r<t;r+=2)n.push(String.fromCharCode(e.charCodeAt(r)<<8|e.charCodeAt(r+1)));else if("ÿ"===e[0]&&"þ"===e[1])for(let r=2;r<t;r+=2)n.push(String.fromCharCode(e.charCodeAt(r+1)<<8|e.charCodeAt(r)));else for(let r=0;r<t;++r){const t=m[e.charCodeAt(r)];n.push(t?String.fromCharCode(t):e.charAt(r))}return n.join("")},t.stringToUTF8String=function(e){return decodeURIComponent(escape(e))},t.utf8StringToString=function(e){return unescape(encodeURIComponent(e))},t.warn=a,t.unreachable=o,t.IsEvalSupportedCached=t.IsLittleEndianCached=t.createObjectURL=t.FormatError=t.Util=t.UnknownErrorException=t.UnexpectedResponseException=t.TextRenderingMode=t.StreamType=t.PermissionFlag=t.PasswordResponses=t.PasswordException=t.MissingPDFException=t.InvalidPDFException=t.AbortException=t.CMapCompressionType=t.ImageKind=t.FontType=t.AnnotationType=t.AnnotationStateModelType=t.AnnotationReviewState=t.AnnotationReplyType=t.AnnotationMarkedState=t.AnnotationFlag=t.AnnotationFieldFlag=t.AnnotationBorderStyleType=t.UNSUPPORTED_FEATURES=t.VerbosityLevel=t.OPS=t.IDENTITY_MATRIX=t.FONT_IDENTITY_MATRIX=t.BaseException=void 0,n(3);t.IDENTITY_MATRIX=[1,0,0,1,0,0];t.FONT_IDENTITY_MATRIX=[.001,0,0,.001,0,0];t.PermissionFlag={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048};t.TextRenderingMode={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};t.ImageKind={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3};t.AnnotationType={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};t.AnnotationStateModelType={MARKED:"Marked",REVIEW:"Review"};t.AnnotationMarkedState={MARKED:"Marked",UNMARKED:"Unmarked"};t.AnnotationReviewState={ACCEPTED:"Accepted",REJECTED:"Rejected",CANCELLED:"Cancelled",COMPLETED:"Completed",NONE:"None"};t.AnnotationReplyType={GROUP:"Group",REPLY:"R"};t.AnnotationFlag={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512};t.AnnotationFieldFlag={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};t.AnnotationBorderStyleType={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5};t.StreamType={UNKNOWN:"UNKNOWN",FLATE:"FLATE",LZW:"LZW",DCT:"DCT",JPX:"JPX",JBIG:"JBIG",A85:"A85",AHX:"AHX",CCF:"CCF",RLX:"RLX"};t.FontType={UNKNOWN:"UNKNOWN",TYPE1:"TYPE1",TYPE1C:"TYPE1C",CIDFONTTYPE0:"CIDFONTTYPE0",CIDFONTTYPE0C:"CIDFONTTYPE0C",TRUETYPE:"TRUETYPE",CIDFONTTYPE2:"CIDFONTTYPE2",TYPE3:"TYPE3",OPENTYPE:"OPENTYPE",TYPE0:"TYPE0",MMTYPE1:"MMTYPE1"};const r={ERRORS:0,WARNINGS:1,INFOS:5};t.VerbosityLevel=r;t.CMapCompressionType={NONE:0,BINARY:1,STREAM:2};t.OPS={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};t.UNSUPPORTED_FEATURES={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"};t.PasswordResponses={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};let i=r.WARNINGS;function a(e){i>=r.WARNINGS&&console.log(`Warning: ${e}`)}function o(e){throw new Error(e)}function s(e,t){e||o(t)}function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!1}),n}const c=function(){function e(t){this.constructor===e&&o("Cannot initialize BaseException."),this.message=t,this.name=this.constructor.name}return e.prototype=new Error,e.constructor=e,e}();t.BaseException=c;t.PasswordException=class extends c{constructor(e,t){super(e),this.code=t}};t.UnknownErrorException=class extends c{constructor(e,t){super(e),this.details=t}};t.InvalidPDFException=class extends c{};t.MissingPDFException=class extends c{};t.UnexpectedResponseException=class extends c{constructor(e,t){super(e),this.status=t}};t.FormatError=class extends c{};t.AbortException=class extends c{};const u=/\x00/g;function h(e){s("string"==typeof e,"Invalid argument for stringToBytes");const t=e.length,n=new Uint8Array(t);for(let r=0;r<t;++r)n[r]=255&e.charCodeAt(r);return n}function d(e){return void 0!==e.length?e.length:(s(void 0!==e.byteLength,"arrayByteLength - invalid argument."),e.byteLength)}const f={get value(){return l(this,"value",function(){const e=new Uint8Array(4);return e[0]=1,1===new Uint32Array(e.buffer,0,1)[0]}())}};t.IsLittleEndianCached=f;const p={get value(){return l(this,"value",function(){try{return new Function(""),!0}catch(e){return!1}}())}};t.IsEvalSupportedCached=p;const A=["rgb(",0,",",0,",",0,")"];class g{static makeCssRgb(e,t,n){return A[1]=e,A[3]=t,A[5]=n,A.join("")}static transform(e,t){return[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],e[0]*t[4]+e[2]*t[5]+e[4],e[1]*t[4]+e[3]*t[5]+e[5]]}static applyTransform(e,t){return[e[0]*t[0]+e[1]*t[2]+t[4],e[0]*t[1]+e[1]*t[3]+t[5]]}static applyInverseTransform(e,t){const n=t[0]*t[3]-t[1]*t[2];return[(e[0]*t[3]-e[1]*t[2]+t[2]*t[5]-t[4]*t[3])/n,(-e[0]*t[1]+e[1]*t[0]+t[4]*t[1]-t[5]*t[0])/n]}static getAxialAlignedBoundingBox(e,t){const n=g.applyTransform(e,t),r=g.applyTransform(e.slice(2,4),t),i=g.applyTransform([e[0],e[3]],t),a=g.applyTransform([e[2],e[1]],t);return[Math.min(n[0],r[0],i[0],a[0]),Math.min(n[1],r[1],i[1],a[1]),Math.max(n[0],r[0],i[0],a[0]),Math.max(n[1],r[1],i[1],a[1])]}static inverseTransform(e){const t=e[0]*e[3]-e[1]*e[2];return[e[3]/t,-e[1]/t,-e[2]/t,e[0]/t,(e[2]*e[5]-e[4]*e[3])/t,(e[4]*e[1]-e[5]*e[0])/t]}static apply3dTransform(e,t){return[e[0]*t[0]+e[1]*t[1]+e[2]*t[2],e[3]*t[0]+e[4]*t[1]+e[5]*t[2],e[6]*t[0]+e[7]*t[1]+e[8]*t[2]]}static singularValueDecompose2dScale(e){const t=[e[0],e[2],e[1],e[3]],n=e[0]*t[0]+e[1]*t[2],r=e[0]*t[1]+e[1]*t[3],i=e[2]*t[0]+e[3]*t[2],a=e[2]*t[1]+e[3]*t[3],o=(n+a)/2,s=Math.sqrt((n+a)*(n+a)-4*(n*a-i*r))/2,l=o+s||1,c=o-s||1;return[Math.sqrt(l),Math.sqrt(c)]}static normalizeRect(e){const t=e.slice(0);return e[0]>e[2]&&(t[0]=e[2],t[2]=e[0]),e[1]>e[3]&&(t[1]=e[3],t[3]=e[1]),t}static intersect(e,t){function n(e,t){return e-t}const r=[e[0],e[2],t[0],t[2]].sort(n),i=[e[1],e[3],t[1],t[3]].sort(n),a=[];return e=g.normalizeRect(e),t=g.normalizeRect(t),r[0]===e[0]&&r[1]===t[0]||r[0]===t[0]&&r[1]===e[0]?(a[0]=r[1],a[2]=r[2],i[0]===e[1]&&i[1]===t[1]||i[0]===t[1]&&i[1]===e[1]?(a[1]=i[1],a[3]=i[2],a):null):null}}t.Util=g;const m=[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];const v=function(){const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";return function(t,n,r=!1){if(!r&&URL.createObjectURL){const e=new Blob([t],{type:n});return URL.createObjectURL(e)}let i=`data:${n};base64,`;for(let n=0,r=t.length;n<r;n+=3){const a=255&t[n],o=255&t[n+1],s=255&t[n+2];i+=e[a>>2]+e[(3&a)<<4|o>>4]+e[n+1<r?(15&o)<<2|s>>6:64]+e[n+2<r?63&s:64]}return i}}();t.createObjectURL=v},function(e,t,n){"use strict";n(4)},function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.isNodeJS=void 0;const i="object"==typeof t&&t+""=="[object process]"&&!t.versions.nw&&!t.versions.electron;n.isNodeJS=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.clearPrimitiveCaches=function(){a._clearCache(),i._clearCache(),s._clearCache()},t.isEOF=function(e){return e===r},t.isCmd=function(e,t){return e instanceof a&&(void 0===t||e.cmd===t)},t.isDict=h,t.isName=u,t.isRef=function(e){return e instanceof s},t.isRefsEqual=function(e,t){return e.num===t.num&&e.gen===t.gen},t.isStream=function(e){return"object"==typeof e&&null!==e&&void 0!==e.getBytes},t.RefSetCache=t.RefSet=t.Ref=t.Name=t.Dict=t.Cmd=t.EOF=void 0;n(2);var r={};t.EOF=r;var i=function(){let e=Object.create(null);function t(e){this.name=e}return t.prototype={},t.get=function(n){var r=e[n];return r||(e[n]=new t(n))},t._clearCache=function(){e=Object.create(null)},t}();t.Name=i;var a=function(){let e=Object.create(null);function t(e){this.cmd=e}return t.prototype={},t.get=function(n){var r=e[n];return r||(e[n]=new t(n))},t._clearCache=function(){e=Object.create(null)},t}();t.Cmd=a;var o=function(){var e=function(){return e};function t(t){this._map=Object.create(null),this.xref=t,this.objId=null,this.suppressEncryption=!1,this.__nonSerializable__=e}return t.prototype={assignXref:function(e){this.xref=e},get(e,t,n){let r=this._map[e];return void 0===r&&void 0!==t&&void 0===(r=this._map[t])&&void 0!==n&&(r=this._map[n]),r instanceof s&&this.xref?this.xref.fetch(r,this.suppressEncryption):r},async getAsync(e,t,n){let r=this._map[e];return void 0===r&&void 0!==t&&void 0===(r=this._map[t])&&void 0!==n&&(r=this._map[n]),r instanceof s&&this.xref?this.xref.fetchAsync(r,this.suppressEncryption):r},getArray(e,t,n){let r=this.get(e,t,n);if(!Array.isArray(r)||!this.xref)return r;for(let e=0,t=(r=r.slice()).length;e<t;e++)r[e]instanceof s&&(r[e]=this.xref.fetch(r[e],this.suppressEncryption));return r},getRaw:function(e){return this._map[e]},getKeys:function(){return Object.keys(this._map)},set:function(e,t){this._map[e]=t},has:function(e){return void 0!==this._map[e]},forEach:function(e){for(var t in this._map)e(t,this.get(t))}},t.empty=new t(null),t.merge=function(e,n){const r=new t(e);for(let e=0,t=n.length;e<t;e++){const t=n[e];if(h(t))for(const e in t._map)void 0===r._map[e]&&(r._map[e]=t._map[e])}return r},t}();t.Dict=o;var s=function(){let e=Object.create(null);function t(e,t){this.num=e,this.gen=t}return t.prototype={toString:function(){return 0===this.gen?`${this.num}R`:`${this.num}R${this.gen}`}},t.get=function(n,r){const i=0===r?`${n}R`:`${n}R${r}`,a=e[i];return a||(e[i]=new t(n,r))},t._clearCache=function(){e=Object.create(null)},t}();t.Ref=s;var l=function(){function e(){this.dict=Object.create(null)}return e.prototype={has:function(e){return e.toString()in this.dict},put:function(e){this.dict[e.toString()]=!0},remove:function(e){delete this.dict[e.toString()]}},e}();t.RefSet=l;var c=function(){function e(){this.dict=Object.create(null)}return e.prototype={get size(){return Object.keys(this.dict).length},get:function(e){return this.dict[e.toString()]},has:function(e){return e.toString()in this.dict},put:function(e,t){this.dict[e.toString()]=t},putAlias:function(e,t){this.dict[e.toString()]=this.get(t)},forEach:function(e){for(const t in this.dict)e(this.dict[t])},clear:function(){this.dict=Object.create(null)}},e}();function u(e,t){return e instanceof i&&(void 0===t||e.name===t)}function h(e,t){return e instanceof o&&(void 0===t||u(e.get("Type"),t))}t.RefSetCache=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NetworkPdfManager=t.LocalPdfManager=void 0;var r=n(2),i=n(7),a=n(8),o=n(9),s=n(12);class l{constructor(){this.constructor===l&&(0,r.unreachable)("Cannot initialize BasePdfManager.")}get docId(){return this._docId}get password(){return this._password}get docBaseUrl(){let e=null;if(this._docBaseUrl){const t=(0,r.createValidAbsoluteUrl)(this._docBaseUrl);t?e=t.href:(0,r.warn)(`Invalid absolute docBaseUrl: "${this._docBaseUrl}".`)}return(0,r.shadow)(this,"docBaseUrl",e)}onLoadedStream(){(0,r.unreachable)("Abstract method `onLoadedStream` called")}ensureDoc(e,t){return this.ensure(this.pdfDocument,e,t)}ensureXRef(e,t){return this.ensure(this.pdfDocument.xref,e,t)}ensureCatalog(e,t){return this.ensure(this.pdfDocument.catalog,e,t)}getPage(e){return this.pdfDocument.getPage(e)}fontFallback(e,t){return this.pdfDocument.fontFallback(e,t)}cleanup(e=!1){return this.pdfDocument.cleanup(e)}async ensure(e,t,n){(0,r.unreachable)("Abstract method `ensure` called")}requestRange(e,t){(0,r.unreachable)("Abstract method `requestRange` called")}requestLoadedStream(){(0,r.unreachable)("Abstract method `requestLoadedStream` called")}sendProgressiveData(e){(0,r.unreachable)("Abstract method `sendProgressiveData` called")}updatePassword(e){this._password=e}terminate(e){(0,r.unreachable)("Abstract method `terminate` called")}}t.LocalPdfManager=class extends l{constructor(e,t,n,r,i){super(),this._docId=e,this._password=n,this._docBaseUrl=i,this.evaluatorOptions=r;const a=new s.Stream(t);this.pdfDocument=new o.PDFDocument(this,a),this._loadedStreamPromise=Promise.resolve(a)}async ensure(e,t,n){const r=e[t];return"function"==typeof r?r.apply(e,n):r}requestRange(e,t){return Promise.resolve()}requestLoadedStream(){}onLoadedStream(){return this._loadedStreamPromise}terminate(e){}};t.NetworkPdfManager=class extends l{constructor(e,t,n,r,a){super(),this._docId=e,this._password=n.password,this._docBaseUrl=a,this.msgHandler=n.msgHandler,this.evaluatorOptions=r,this.streamManager=new i.ChunkedStreamManager(t,{msgHandler:n.msgHandler,length:n.length,disableAutoFetch:n.disableAutoFetch,rangeChunkSize:n.rangeChunkSize}),this.pdfDocument=new o.PDFDocument(this,this.streamManager.getStream())}async ensure(e,t,n){try{const r=e[t];return"function"==typeof r?r.apply(e,n):r}catch(r){if(!(r instanceof a.MissingDataException))throw r;return await this.requestRange(r.begin,r.end),this.ensure(e,t,n)}}requestRange(e,t){return this.streamManager.requestRange(e,t)}requestLoadedStream(){this.streamManager.requestAllChunks()}sendProgressiveData(e){this.streamManager.onReceiveData({chunk:e})}onLoadedStream(){return this.streamManager.onLoadedStream()}terminate(e){this.streamManager.abort(e)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChunkedStreamManager=t.ChunkedStream=void 0;var r=n(2),i=n(8);class a{constructor(e,t,n){this.bytes=new Uint8Array(e),this.start=0,this.pos=0,this.end=e,this.chunkSize=t,this.loadedChunks=[],this.numChunksLoaded=0,this.numChunks=Math.ceil(e/t),this.manager=n,this.progressiveDataLength=0,this.lastSuccessfulEnsureByteChunk=-1}getMissingChunks(){const e=[];for(let t=0,n=this.numChunks;t<n;++t)this.loadedChunks[t]||e.push(t);return e}getBaseStreams(){return[this]}allChunksLoaded(){return this.numChunksLoaded===this.numChunks}onReceiveData(e,t){const n=this.chunkSize;if(e%n!=0)throw new Error(`Bad begin offset: ${e}`);const r=e+t.byteLength;if(r%n!=0&&r!==this.bytes.length)throw new Error(`Bad end offset: ${r}`);this.bytes.set(new Uint8Array(t),e);const i=Math.floor(e/n),a=Math.floor((r-1)/n)+1;for(let e=i;e<a;++e)this.loadedChunks[e]||(this.loadedChunks[e]=!0,++this.numChunksLoaded)}onReceiveProgressiveData(e){let t=this.progressiveDataLength;const n=Math.floor(t/this.chunkSize);this.bytes.set(new Uint8Array(e),t),t+=e.byteLength,this.progressiveDataLength=t;const r=t>=this.end?this.numChunks:Math.floor(t/this.chunkSize);for(let e=n;e<r;++e)this.loadedChunks[e]||(this.loadedChunks[e]=!0,++this.numChunksLoaded)}ensureByte(e){if(e<this.progressiveDataLength)return;const t=Math.floor(e/this.chunkSize);if(t!==this.lastSuccessfulEnsureByteChunk){if(!this.loadedChunks[t])throw new i.MissingDataException(e,e+1);this.lastSuccessfulEnsureByteChunk=t}}ensureRange(e,t){if(e>=t)return;if(t<=this.progressiveDataLength)return;const n=this.chunkSize,r=Math.floor(e/n),a=Math.floor((t-1)/n)+1;for(let n=r;n<a;++n)if(!this.loadedChunks[n])throw new i.MissingDataException(e,t)}nextEmptyChunk(e){const t=this.numChunks;for(let n=0;n<t;++n){const r=(e+n)%t;if(!this.loadedChunks[r])return r}return null}hasChunk(e){return!!this.loadedChunks[e]}get length(){return this.end-this.start}get isEmpty(){return 0===this.length}getByte(){const e=this.pos;return e>=this.end?-1:(e>=this.progressiveDataLength&&this.ensureByte(e),this.bytes[this.pos++])}getUint16(){const e=this.getByte(),t=this.getByte();return-1===e||-1===t?-1:(e<<8)+t}getInt32(){return(this.getByte()<<24)+(this.getByte()<<16)+(this.getByte()<<8)+this.getByte()}getBytes(e,t=!1){const n=this.bytes,r=this.pos,i=this.end;if(!e){i>this.progressiveDataLength&&this.ensureRange(r,i);const e=n.subarray(r,i);return t?new Uint8ClampedArray(e):e}let a=r+e;a>i&&(a=i),a>this.progressiveDataLength&&this.ensureRange(r,a),this.pos=a;const o=n.subarray(r,a);return t?new Uint8ClampedArray(o):o}peekByte(){const e=this.getByte();return-1!==e&&this.pos--,e}peekBytes(e,t=!1){const n=this.getBytes(e,t);return this.pos-=n.length,n}getByteRange(e,t){return e<0&&(e=0),t>this.end&&(t=this.end),t>this.progressiveDataLength&&this.ensureRange(e,t),this.bytes.subarray(e,t)}skip(e){e||(e=1),this.pos+=e}reset(){this.pos=this.start}moveStart(){this.start=this.pos}makeSubStream(e,t,n){function r(){}t?e+t>this.progressiveDataLength&&this.ensureRange(e,e+t):e>=this.progressiveDataLength&&this.ensureByte(e),r.prototype=Object.create(this),r.prototype.getMissingChunks=function(){const e=this.chunkSize,t=Math.floor(this.start/e),n=Math.floor((this.end-1)/e)+1,r=[];for(let e=t;e<n;++e)this.loadedChunks[e]||r.push(e);return r},r.prototype.allChunksLoaded=function(){return this.numChunksLoaded===this.numChunks||0===this.getMissingChunks().length};const i=new r;return i.pos=i.start=e,i.end=e+t||this.end,i.dict=n,i}}t.ChunkedStream=a;t.ChunkedStreamManager=class{constructor(e,t){this.length=t.length,this.chunkSize=t.rangeChunkSize,this.stream=new a(this.length,this.chunkSize,this),this.pdfNetworkStream=e,this.disableAutoFetch=t.disableAutoFetch,this.msgHandler=t.msgHandler,this.currRequestId=0,this.chunksNeededByRequest=Object.create(null),this.requestsByChunk=Object.create(null),this.promisesByRequest=Object.create(null),this.progressiveDataLength=0,this.aborted=!1,this._loadedStreamCapability=(0,r.createPromiseCapability)()}onLoadedStream(){return this._loadedStreamCapability.promise}sendRequest(e,t){const n=this.pdfNetworkStream.getRangeReader(e,t);n.isStreamingSupported||(n.onProgress=this.onProgress.bind(this));let i=[],a=0;new Promise((e,t)=>{const o=s=>{try{if(!s.done){const e=s.value;return i.push(e),a+=(0,r.arrayByteLength)(e),n.isStreamingSupported&&this.onProgress({loaded:a}),void n.read().then(o,t)}const l=(0,r.arraysToBytes)(i);i=null,e(l)}catch(e){t(e)}};n.read().then(o,t)}).then(t=>{this.aborted||this.onReceiveData({chunk:t,begin:e})})}requestAllChunks(){const e=this.stream.getMissingChunks();return this._requestChunks(e),this._loadedStreamCapability.promise}_requestChunks(e){const t=this.currRequestId++,n=Object.create(null);this.chunksNeededByRequest[t]=n;for(const t of e)this.stream.hasChunk(t)||(n[t]=!0);if((0,r.isEmptyObj)(n))return Promise.resolve();const i=(0,r.createPromiseCapability)();this.promisesByRequest[t]=i;const a=[];for(let e in n)(e|=0)in this.requestsByChunk||(this.requestsByChunk[e]=[],a.push(e)),this.requestsByChunk[e].push(t);if(!a.length)return i.promise;const o=this.groupChunks(a);for(const e of o){const t=e.beginChunk*this.chunkSize,n=Math.min(e.endChunk*this.chunkSize,this.length);this.sendRequest(t,n)}return i.promise}getStream(){return this.stream}requestRange(e,t){t=Math.min(t,this.length);const n=this.getBeginChunk(e),r=this.getEndChunk(t),i=[];for(let e=n;e<r;++e)i.push(e);return this._requestChunks(i)}requestRanges(e=[]){const t=[];for(const n of e){const e=this.getBeginChunk(n.begin),r=this.getEndChunk(n.end);for(let n=e;n<r;++n)t.includes(n)||t.push(n)}return t.sort(function(e,t){return e-t}),this._requestChunks(t)}groupChunks(e){const t=[];let n=-1,r=-1;for(let i=0,a=e.length;i<a;++i){const a=e[i];n<0&&(n=a),r>=0&&r+1!==a&&(t.push({beginChunk:n,endChunk:r+1}),n=a),i+1===e.length&&t.push({beginChunk:n,endChunk:a+1}),r=a}return t}onProgress(e){this.msgHandler.send("DocProgress",{loaded:this.stream.numChunksLoaded*this.chunkSize+e.loaded,total:this.length})}onReceiveData(e){const t=e.chunk,n=void 0===e.begin,i=n?this.progressiveDataLength:e.begin,a=i+t.byteLength,o=Math.floor(i/this.chunkSize),s=a<this.length?Math.floor(a/this.chunkSize):Math.ceil(a/this.chunkSize);n?(this.stream.onReceiveProgressiveData(t),this.progressiveDataLength=a):this.stream.onReceiveData(i,t),this.stream.allChunksLoaded()&&this._loadedStreamCapability.resolve(this.stream);const l=[];for(let e=o;e<s;++e){const t=this.requestsByChunk[e]||[];delete this.requestsByChunk[e];for(const n of t){const t=this.chunksNeededByRequest[n];e in t&&delete t[e],(0,r.isEmptyObj)(t)&&l.push(n)}}if(!this.disableAutoFetch&&(0,r.isEmptyObj)(this.requestsByChunk)){let e;if(1===this.stream.numChunksLoaded){const t=this.stream.numChunks-1;this.stream.hasChunk(t)||(e=t)}else e=this.stream.nextEmptyChunk(s);Number.isInteger(e)&&this._requestChunks([e])}for(const e of l){const t=this.promisesByRequest[e];delete this.promisesByRequest[e],t.resolve()}this.msgHandler.send("DocProgress",{loaded:this.stream.numChunksLoaded*this.chunkSize,total:this.length})}onError(e){this._loadedStreamCapability.reject(e)}getBeginChunk(e){return Math.floor(e/this.chunkSize)}getEndChunk(e){return Math.floor((e-1)/this.chunkSize)+1}abort(e){this.aborted=!0,this.pdfNetworkStream&&this.pdfNetworkStream.cancelAllRequests(e);for(const t in this.promisesByRequest)this.promisesByRequest[t].reject(e)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLookupTableFactory=function(e){let t;return function(){return e&&(t=Object.create(null),e(t),e=null),t}},t.getInheritableProperty=function({dict:e,key:t,getArray:n=!1,stopWhenFound:i=!0}){let a,o=0;for(;e;){const s=n?e.getArray(t):e.get(t);if(void 0!==s){if(i)return s;a||(a=[]),a.push(s)}if(++o>100){(0,r.warn)(`getInheritableProperty: maximum loop count exceeded for "${t}"`);break}e=e.get("Parent")}return a},t.toRomanNumerals=function(e,t=!1){(0,r.assert)(Number.isInteger(e)&&e>0,"The number should be a positive integer.");const n=[];let a;for(;e>=1e3;)e-=1e3,n.push("M");a=e/100|0,e%=100,n.push(i[a]),a=e/10|0,e%=10,n.push(i[10+a]),n.push(i[20+e]);const o=n.join("");return t?o.toLowerCase():o},t.log2=function(e){if(e<=0)return 0;return Math.ceil(Math.log2(e))},t.readInt8=function(e,t){return e[t]<<24>>24},t.readUint16=function(e,t){return e[t]<<8|e[t+1]},t.readUint32=function(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0},t.isWhiteSpace=function(e){return 32===e||9===e||13===e||10===e},t.XRefParseException=t.XRefEntryException=t.MissingDataException=void 0;var r=n(2);t.MissingDataException=class extends r.BaseException{constructor(e,t){super(`Missing data [${e}, ${t})`),this.begin=e,this.end=t}};t.XRefEntryException=class extends r.BaseException{};t.XRefParseException=class extends r.BaseException{};const i=["","C","CC","CCC","CD","D","DC","DCC","DCCC","CM","","X","XX","XXX","XL","L","LX","LXX","LXXX","XC","","I","II","III","IV","V","VI","VII","VIII","IX"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PDFDocument=t.Page=void 0;var r=n(2),i=n(10),a=n(5),o=n(8),s=n(12),l=n(25),c=n(22),u=n(11),h=n(26),d=n(27),f=n(41);const p=1,A=[0,0,612,792];function g(e,t){return"display"===t&&e.viewable||"print"===t&&e.printable}class m{constructor({pdfManager:e,xref:t,pageIndex:n,pageDict:r,ref:i,fontCache:a,builtInCMapCache:o,globalImageCache:s,pdfFunctionFactory:l}){this.pdfManager=e,this.pageIndex=n,this.pageDict=r,this.xref=t,this.ref=i,this.fontCache=a,this.builtInCMapCache=o,this.globalImageCache=s,this.pdfFunctionFactory=l,this.evaluatorOptions=e.evaluatorOptions,this.resourcesPromise=null;const c={obj:0};this.idFactory={createObjId:()=>`p${n}_${++c.obj}`,getDocId:()=>`g_${e.docId}`}}_getInheritableProperty(e,t=!1){const n=(0,o.getInheritableProperty)({dict:this.pageDict,key:e,getArray:t,stopWhenFound:!1});return Array.isArray(n)?1!==n.length&&(0,a.isDict)(n[0])?a.Dict.merge(this.xref,n):n[0]:n}get content(){return this.pageDict.get("Contents")}get resources(){return(0,r.shadow)(this,"resources",this._getInheritableProperty("Resources")||a.Dict.empty)}_getBoundingBox(e){const t=this._getInheritableProperty(e,!0);if(Array.isArray(t)&&4===t.length){if(t[2]-t[0]!=0&&t[3]-t[1]!=0)return t;(0,r.warn)(`Empty /${e} entry.`)}return null}get mediaBox(){return(0,r.shadow)(this,"mediaBox",this._getBoundingBox("MediaBox")||A)}get cropBox(){return(0,r.shadow)(this,"cropBox",this._getBoundingBox("CropBox")||this.mediaBox)}get userUnit(){let e=this.pageDict.get("UserUnit");return(!(0,r.isNum)(e)||e<=0)&&(e=p),(0,r.shadow)(this,"userUnit",e)}get view(){const{cropBox:e,mediaBox:t}=this;let n;if(e===t||(0,r.isArrayEqual)(e,t))n=t;else{const i=r.Util.intersect(e,t);i&&i[2]-i[0]!=0&&i[3]-i[1]!=0?n=i:(0,r.warn)("Empty /CropBox and /MediaBox intersection.")}return(0,r.shadow)(this,"view",n||t)}get rotate(){let e=this._getInheritableProperty("Rotate")||0;return e%90!=0?e=0:e>=360?e%=360:e<0&&(e=(e%360+360)%360),(0,r.shadow)(this,"rotate",e)}getContentStream(){const e=this.content;let t;if(Array.isArray(e)){const n=this.xref,r=[];for(const t of e)r.push(n.fetchIfRef(t));t=new s.StreamsSequenceStream(r)}else t=(0,a.isStream)(e)?e:new s.NullStream;return t}loadResources(e){return this.resourcesPromise||(this.resourcesPromise=this.pdfManager.ensure(this,"resources")),this.resourcesPromise.then(()=>{return new i.ObjectLoader(this.resources,e,this.xref).load()})}getOperatorList({handler:e,sink:t,task:n,intent:i,renderInteractiveForms:a}){const o=this.pdfManager.ensure(this,"getContentStream"),s=this.loadResources(["ExtGState","ColorSpace","Pattern","Shading","XObject","Font"]),l=new d.PartialEvaluator({xref:this.xref,handler:e,pageIndex:this.pageIndex,idFactory:this.idFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,globalImageCache:this.globalImageCache,options:this.evaluatorOptions,pdfFunctionFactory:this.pdfFunctionFactory}),c=Promise.all([o,s]).then(([r])=>{const a=new h.OperatorList(i,t,this.pageIndex);return e.send("StartRenderPage",{transparency:l.hasBlendModes(this.resources),pageIndex:this.pageIndex,intent:i}),l.getOperatorList({stream:r,task:n,resources:this.resources,operatorList:a}).then(function(){return a})});return Promise.all([c,this._parsedAnnotations]).then(function([e,t]){if(0===t.length)return e.flush(!0),{length:e.totalLength};const o=[];for(const e of t)g(e,i)&&o.push(e.getOperatorList(l,n,a).catch(function(e){return(0,r.warn)("getOperatorList - ignoring annotation data during "+`"${n.name}" task: "${e}".`),null}));return Promise.all(o).then(function(t){e.addOp(r.OPS.beginAnnotations,[]);for(const n of t)e.addOpList(n);return e.addOp(r.OPS.endAnnotations,[]),e.flush(!0),{length:e.totalLength}})})}extractTextContent({handler:e,task:t,normalizeWhitespace:n,sink:r,combineTextItems:i}){const a=this.pdfManager.ensure(this,"getContentStream"),o=this.loadResources(["ExtGState","XObject","Font"]);return Promise.all([a,o]).then(([a])=>{return new d.PartialEvaluator({xref:this.xref,handler:e,pageIndex:this.pageIndex,idFactory:this.idFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,globalImageCache:this.globalImageCache,options:this.evaluatorOptions,pdfFunctionFactory:this.pdfFunctionFactory}).getTextContent({stream:a,task:t,resources:this.resources,normalizeWhitespace:n,combineTextItems:i,sink:r})})}getAnnotationsData(e){return this._parsedAnnotations.then(function(t){const n=[];for(let r=0,i=t.length;r<i;r++)e&&!g(t[r],e)||n.push(t[r].data);return n})}get annotations(){return(0,r.shadow)(this,"annotations",this._getInheritableProperty("Annots")||[])}get _parsedAnnotations(){const e=this.pdfManager.ensure(this,"annotations").then(()=>{const e=[];for(const t of this.annotations)e.push(l.AnnotationFactory.create(this.xref,t,this.pdfManager,this.idFactory).catch(function(e){return(0,r.warn)(`_parsedAnnotations: "${e}".`),null}));return Promise.all(e).then(function(e){return e.filter(e=>!!e)})});return(0,r.shadow)(this,"_parsedAnnotations",e)}}t.Page=m;const v=new Uint8Array([37,80,68,70,45]),y=new Uint8Array([115,116,97,114,116,120,114,101,102]),b=new Uint8Array([101,110,100,111,98,106]),w=1024,x="\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0",_=/^[1-9]\.[0-9]$/;function C(e,t,n=1024,r=!1){const i=t.length,a=e.peekBytes(n),o=a.length-i;if(o<=0)return!1;if(r){const n=i-1;let r=a.length-1;for(;r>=n;){let o=0;for(;o<i&&a[r-o]===t[n-o];)o++;if(o>=i)return e.pos+=r-n,!0;r--}}else{let n=0;for(;n<=o;){let r=0;for(;r<i&&a[n+r]===t[r];)r++;if(r>=i)return e.pos+=n,!0;n++}}return!1}t.PDFDocument=class{constructor(e,t){let n;if((0,a.isStream)(t))n=t;else{if(!(0,r.isArrayBuffer)(t))throw new Error("PDFDocument: Unknown argument type");n=new s.Stream(t)}if(n.length<=0)throw new r.InvalidPDFException("The PDF file is empty, i.e. its size is zero bytes.");this.pdfManager=e,this.stream=n,this.xref=new i.XRef(n,e),this.pdfFunctionFactory=new f.PDFFunctionFactory({xref:this.xref,isEvalSupported:e.evaluatorOptions.isEvalSupported}),this._pagePromises=[]}parse(e){this.setup(e);const t=this.catalog.catDict.get("Version");(0,a.isName)(t)&&(this.pdfFormatVersion=t.name);try{if(this.acroForm=this.catalog.catDict.get("AcroForm"),this.acroForm){this.xfa=this.acroForm.get("XFA");const e=this.acroForm.get("Fields");Array.isArray(e)&&0!==e.length||this.xfa||(this.acroForm=null)}}catch(e){if(e instanceof o.MissingDataException)throw e;(0,r.info)("Cannot fetch AcroForm entry; assuming no AcroForms are present"),this.acroForm=null}try{const e=this.catalog.catDict.get("Collection");(0,a.isDict)(e)&&e.getKeys().length>0&&(this.collection=e)}catch(e){if(e instanceof o.MissingDataException)throw e;(0,r.info)("Cannot fetch Collection dictionary.")}}get linearization(){let e=null;try{e=u.Linearization.create(this.stream)}catch(e){if(e instanceof o.MissingDataException)throw e;(0,r.info)(e)}return(0,r.shadow)(this,"linearization",e)}get startXRef(){const e=this.stream;let t=0;if(this.linearization)e.reset(),C(e,b)&&(t=e.pos+6-e.start);else{const n=1024,r=y.length;let i=!1,a=e.end;for(;!i&&a>0;)(a-=n-r)<0&&(a=0),e.pos=a,i=C(e,y,n,!0);if(i){let n;e.skip(9);do{n=e.getByte()}while((0,o.isWhiteSpace)(n));let r="";for(;n>=32&&n<=57;)r+=String.fromCharCode(n),n=e.getByte();t=parseInt(r,10),isNaN(t)&&(t=0)}}return(0,r.shadow)(this,"startXRef",t)}checkHeader(){const e=this.stream;if(e.reset(),!C(e,v))return;e.moveStart();let t,n="";for(;(t=e.getByte())>32&&!(n.length>=12);)n+=String.fromCharCode(t);this.pdfFormatVersion||(this.pdfFormatVersion=n.substring(5))}parseStartXRef(){this.xref.setStartXRef(this.startXRef)}setup(e){this.xref.parse(e),this.catalog=new i.Catalog(this.pdfManager,this.xref)}get numPages(){const e=this.linearization,t=e?e.numPages:this.catalog.numPages;return(0,r.shadow)(this,"numPages",t)}get documentInfo(){const e={Title:r.isString,Author:r.isString,Subject:r.isString,Keywords:r.isString,Creator:r.isString,Producer:r.isString,CreationDate:r.isString,ModDate:r.isString,Trapped:a.isName};let t=this.pdfFormatVersion;"string"==typeof t&&_.test(t)||((0,r.warn)(`Invalid PDF header version number: ${t}`),t=null);const n={PDFFormatVersion:t,IsLinearized:!!this.linearization,IsAcroFormPresent:!!this.acroForm,IsXFAPresent:!!this.xfa,IsCollectionPresent:!!this.collection};let i;try{i=this.xref.trailer.get("Info")}catch(e){if(e instanceof o.MissingDataException)throw e;(0,r.info)("The document information dictionary is invalid.")}if((0,a.isDict)(i))for(const t of i.getKeys()){const o=i.get(t);if(e[t])e[t](o)?n[t]="string"!=typeof o?o:(0,r.stringToPDFString)(o):(0,r.info)(`Bad value in document info for "${t}".`);else if("string"==typeof t){let e;if((0,r.isString)(o))e=(0,r.stringToPDFString)(o);else{if(!((0,a.isName)(o)||(0,r.isNum)(o)||(0,r.isBool)(o))){(0,r.info)(`Unsupported value in document info for (custom) "${t}".`);continue}e=o}n.Custom||(n.Custom=Object.create(null)),n.Custom[t]=e}}return(0,r.shadow)(this,"documentInfo",n)}get fingerprint(){let e;const t=this.xref.trailer.get("ID"),n=[];for(let i=0,a=(e=Array.isArray(t)&&t[0]&&(0,r.isString)(t[0])&&t[0]!==x?(0,r.stringToBytes)(t[0]):(0,c.calculateMD5)(this.stream.getByteRange(0,w),0,w)).length;i<a;i++){const t=e[i].toString(16);n.push(t.padStart(2,"0"))}return(0,r.shadow)(this,"fingerprint",n.join(""))}_getLinearizationPage(e){const{catalog:t,linearization:n}=this,i=a.Ref.get(n.objectNumberFirst,0);return this.xref.fetchAsync(i).then(e=>{if((0,a.isDict)(e,"Page")||(0,a.isDict)(e)&&!e.has("Type")&&e.has("Contents"))return i&&!t.pageKidsCountCache.has(i)&&t.pageKidsCountCache.put(i,1),[e,i];throw new r.FormatError("The Linearization dictionary doesn't point to a valid Page dictionary.")}).catch(n=>((0,r.info)(n),t.getPageDict(e)))}getPage(e){if(void 0!==this._pagePromises[e])return this._pagePromises[e];const{catalog:t,linearization:n}=this,r=n&&n.pageFirst===e?this._getLinearizationPage(e):t.getPageDict(e);return this._pagePromises[e]=r.then(([n,r])=>new m({pdfManager:this.pdfManager,xref:this.xref,pageIndex:e,pageDict:n,ref:r,fontCache:t.fontCache,builtInCMapCache:t.builtInCMapCache,globalImageCache:t.globalImageCache,pdfFunctionFactory:this.pdfFunctionFactory}))}checkFirstPage(){return this.getPage(0).catch(async e=>{if(e instanceof o.XRefEntryException)throw this._pagePromises.length=0,await this.cleanup(),new o.XRefParseException})}fontFallback(e,t){return this.catalog.fontFallback(e,t)}async cleanup(e=!1){return this.catalog?this.catalog.cleanup(e):(0,a.clearPrimitiveCaches)()}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FileSpec=t.XRef=t.ObjectLoader=t.Catalog=void 0;var r=n(2),i=n(5),a=n(11),o=n(8),s=n(22),l=n(23),c=n(24);function u(e){return(0,i.isDict)(e)?e.get("D"):e}class h{constructor(e,t){if(this.pdfManager=e,this.xref=t,this.catDict=t.getCatalogObj(),!(0,i.isDict)(this.catDict))throw new r.FormatError("Catalog object is not a dictionary.");this.fontCache=new i.RefSetCache,this.builtInCMapCache=new Map,this.globalImageCache=new c.GlobalImageCache,this.pageKidsCountCache=new i.RefSetCache}get metadata(){const e=this.catDict.getRaw("Metadata");if(!(0,i.isRef)(e))return(0,r.shadow)(this,"metadata",null);const t=!(this.xref.encrypt&&this.xref.encrypt.encryptMetadata),n=this.xref.fetch(e,t);let a;if(n&&(0,i.isDict)(n.dict)){const e=n.dict.get("Type"),t=n.dict.get("Subtype");if((0,i.isName)(e,"Metadata")&&(0,i.isName)(t,"XML"))try{a=(0,r.stringToUTF8String)((0,r.bytesToString)(n.getBytes()))}catch(e){if(e instanceof o.MissingDataException)throw e;(0,r.info)("Skipping invalid metadata.")}}return(0,r.shadow)(this,"metadata",a)}get toplevelPagesDict(){const e=this.catDict.get("Pages");if(!(0,i.isDict)(e))throw new r.FormatError("Invalid top-level pages dictionary.");return(0,r.shadow)(this,"toplevelPagesDict",e)}get documentOutline(){let e=null;try{e=this._readDocumentOutline()}catch(e){if(e instanceof o.MissingDataException)throw e;(0,r.warn)("Unable to read document outline.")}return(0,r.shadow)(this,"documentOutline",e)}_readDocumentOutline(){let e=this.catDict.get("Outlines");if(!(0,i.isDict)(e))return null;if(e=e.getRaw("First"),!(0,i.isRef)(e))return null;const t={items:[]},n=[{obj:e,parent:t}],a=new i.RefSet;a.put(e);const o=this.xref,s=new Uint8ClampedArray(3);for(;n.length>0;){const t=n.shift(),c=o.fetchIfRef(t.obj);if(null===c)continue;if(!c.has("Title"))throw new r.FormatError("Invalid outline item encountered.");const u={url:null,dest:null};h.parseDestDictionary({destDict:c,resultObj:u,docBaseUrl:this.pdfManager.docBaseUrl});const d=c.get("Title"),f=c.get("F")||0,p=c.getArray("C"),A=c.get("Count");let g=s;!Array.isArray(p)||3!==p.length||0===p[0]&&0===p[1]&&0===p[2]||(g=l.ColorSpace.singletons.rgb.getRgb(p,0));const m={dest:u.dest,url:u.url,unsafeUrl:u.unsafeUrl,newWindow:u.newWindow,title:(0,r.stringToPDFString)(d),color:g,count:Number.isInteger(A)?A:void 0,bold:!!(2&f),italic:!!(1&f),items:[]};t.parent.items.push(m),e=c.getRaw("First"),(0,i.isRef)(e)&&!a.has(e)&&(n.push({obj:e,parent:m}),a.put(e)),e=c.getRaw("Next"),(0,i.isRef)(e)&&!a.has(e)&&(n.push({obj:e,parent:t.parent}),a.put(e))}return t.items.length>0?t.items:null}get permissions(){let e=null;try{e=this._readPermissions()}catch(e){if(e instanceof o.MissingDataException)throw e;(0,r.warn)("Unable to read permissions.")}return(0,r.shadow)(this,"permissions",e)}_readPermissions(){const e=this.xref.trailer.get("Encrypt");if(!(0,i.isDict)(e))return null;let t=e.get("P");if(!(0,r.isNum)(t))return null;t+=2**32;const n=[];for(const e in r.PermissionFlag){const i=r.PermissionFlag[e];t&i&&n.push(i)}return n}get numPages(){const e=this.toplevelPagesDict.get("Count");if(!Number.isInteger(e))throw new r.FormatError("Page count in top-level pages dictionary is not an integer.");return(0,r.shadow)(this,"numPages",e)}get destinations(){const e=this._readDests(),t=Object.create(null);if(e instanceof p){const n=e.getAll();for(const e in n)t[e]=u(n[e])}else e instanceof i.Dict&&e.forEach(function(e,n){n&&(t[e]=u(n))});return(0,r.shadow)(this,"destinations",t)}getDestination(e){const t=this._readDests();return t instanceof p||t instanceof i.Dict?u(t.get(e)||null):null}_readDests(){const e=this.catDict.get("Names");return e&&e.has("Dests")?new p(e.getRaw("Dests"),this.xref):this.catDict.has("Dests")?this.catDict.get("Dests"):void 0}get pageLabels(){let e=null;try{e=this._readPageLabels()}catch(e){if(e instanceof o.MissingDataException)throw e;(0,r.warn)("Unable to read page labels.")}return(0,r.shadow)(this,"pageLabels",e)}_readPageLabels(){const e=this.catDict.getRaw("PageLabels");if(!e)return null;const t=new Array(this.numPages);let n=null,a="";const s=new A(e,this.xref).getAll();let l="",c=1;for(let e=0,u=this.numPages;e<u;e++){if(e in s){const t=s[e];if(!(0,i.isDict)(t))throw new r.FormatError("PageLabel is not a dictionary.");if(t.has("Type")&&!(0,i.isName)(t.get("Type"),"PageLabel"))throw new r.FormatError("Invalid type in PageLabel dictionary.");if(t.has("S")){const e=t.get("S");if(!(0,i.isName)(e))throw new r.FormatError("Invalid style in PageLabel dictionary.");n=e.name}else n=null;if(t.has("P")){const e=t.get("P");if(!(0,r.isString)(e))throw new r.FormatError("Invalid prefix in PageLabel dictionary.");a=(0,r.stringToPDFString)(e)}else a="";if(t.has("St")){const e=t.get("St");if(!(Number.isInteger(e)&&e>=1))throw new r.FormatError("Invalid start in PageLabel dictionary.");c=e}else c=1}switch(n){case"D":l=c;break;case"R":case"r":l=(0,o.toRomanNumerals)(c,"r"===n);break;case"A":case"a":const e=26,t="a"===n?97:65,i=c-1,a=String.fromCharCode(t+i%e),s=[];for(let t=0,n=i/e|0;t<=n;t++)s.push(a);l=s.join("");break;default:if(n)throw new r.FormatError(`Invalid style "${n}" in PageLabel dictionary.`);l=""}t[e]=a+l,c++}return t}get pageLayout(){const e=this.catDict.get("PageLayout");let t="";if((0,i.isName)(e))switch(e.name){case"SinglePage":case"OneColumn":case"TwoColumnLeft":case"TwoColumnRight":case"TwoPageLeft":case"TwoPageRight":t=e.name}return(0,r.shadow)(this,"pageLayout",t)}get pageMode(){const e=this.catDict.get("PageMode");let t="UseNone";if((0,i.isName)(e))switch(e.name){case"UseNone":case"UseOutlines":case"UseThumbs":case"FullScreen":case"UseOC":case"UseAttachments":t=e.name}return(0,r.shadow)(this,"pageMode",t)}get viewerPreferences(){const e={HideToolbar:r.isBool,HideMenubar:r.isBool,HideWindowUI:r.isBool,FitWindow:r.isBool,CenterWindow:r.isBool,DisplayDocTitle:r.isBool,NonFullScreenPageMode:i.isName,Direction:i.isName,ViewArea:i.isName,ViewClip:i.isName,PrintArea:i.isName,PrintClip:i.isName,PrintScaling:i.isName,Duplex:i.isName,PickTrayByPDFSize:r.isBool,PrintPageRange:Array.isArray,NumCopies:Number.isInteger},t=this.catDict.get("ViewerPreferences");let n=null;if((0,i.isDict)(t))for(const i in e){if(!t.has(i))continue;const a=t.get(i);if(!e[i](a)){(0,r.info)(`Bad value in ViewerPreferences for "${i}".`);continue}let o;switch(i){case"NonFullScreenPageMode":switch(a.name){case"UseNone":case"UseOutlines":case"UseThumbs":case"UseOC":o=a.name;break;default:o="UseNone"}break;case"Direction":switch(a.name){case"L2R":case"R2L":o=a.name;break;default:o="L2R"}break;case"ViewArea":case"ViewClip":case"PrintArea":case"PrintClip":switch(a.name){case"MediaBox":case"CropBox":case"BleedBox":case"TrimBox":case"ArtBox":o=a.name;break;default:o="CropBox"}break;case"PrintScaling":switch(a.name){case"None":case"AppDefault":o=a.name;break;default:o="AppDefault"}break;case"Duplex":switch(a.name){case"Simplex":case"DuplexFlipShortEdge":case"DuplexFlipLongEdge":o=a.name;break;default:o="None"}break;case"PrintPageRange":if(a.length%2!=0)break;a.every((e,t,n)=>Number.isInteger(e)&&e>0&&(0===t||e>=n[t-1])&&e<=this.numPages)&&(o=a);break;case"NumCopies":a>0&&(o=a);break;default:if("boolean"!=typeof a)throw new r.FormatError(`viewerPreferences - expected a boolean value for: ${i}`);o=a}void 0!==o?(n||(n=Object.create(null)),n[i]=o):(0,r.info)(`Bad value in ViewerPreferences for "${i}".`)}return(0,r.shadow)(this,"viewerPreferences",n)}get openAction(){const e=this.catDict.get("OpenAction");let t=null;if((0,i.isDict)(e)){const n=new i.Dict(this.xref);n.set("A",e);const r={url:null,dest:null,action:null};h.parseDestDictionary({destDict:n,resultObj:r}),Array.isArray(r.dest)?(t||(t=Object.create(null)),t.dest=r.dest):r.action&&(t||(t=Object.create(null)),t.action=r.action)}else Array.isArray(e)&&(t||(t=Object.create(null)),t.dest=e);return(0,r.shadow)(this,"openAction",t)}get attachments(){const e=this.catDict.get("Names");let t=null;if(e&&e.has("EmbeddedFiles")){const n=new p(e.getRaw("EmbeddedFiles"),this.xref).getAll();for(const e in n){const i=new g(n[e],this.xref);t||(t=Object.create(null)),t[(0,r.stringToPDFString)(e)]=i.serializable}}return(0,r.shadow)(this,"attachments",t)}get javaScript(){const e=this.catDict.get("Names");let t=null;function n(e){const n=e.get("S");if(!(0,i.isName)(n,"JavaScript"))return;let a=e.get("JS");if((0,i.isStream)(a))a=(0,r.bytesToString)(a.getBytes());else if(!(0,r.isString)(a))return;t||(t=[]),t.push((0,r.stringToPDFString)(a))}if(e&&e.has("JavaScript")){const t=new p(e.getRaw("JavaScript"),this.xref).getAll();for(const e in t){const r=t[e];(0,i.isDict)(r)&&n(r)}}const a=this.catDict.get("OpenAction");return(0,i.isDict)(a)&&(0,i.isName)(a.get("S"),"JavaScript")&&n(a),(0,r.shadow)(this,"javaScript",t)}fontFallback(e,t){const n=[];return this.fontCache.forEach(function(e){n.push(e)}),Promise.all(n).then(n=>{for(const r of n)if(r.loadedName===e)return void r.fallback(t)})}cleanup(e=!1){(0,i.clearPrimitiveCaches)(),this.globalImageCache.clear(e),this.pageKidsCountCache.clear();const t=[];return this.fontCache.forEach(function(e){t.push(e)}),Promise.all(t).then(e=>{for(const{dict:t}of e)delete t.translated;this.fontCache.clear(),this.builtInCMapCache.clear()})}getPageDict(e){const t=(0,r.createPromiseCapability)(),n=[this.catDict.getRaw("Pages")],a=new i.RefSet,o=this.xref,s=this.pageKidsCountCache;let l,c=0;return function u(){for(;n.length;){const h=n.pop();if((0,i.isRef)(h)){if((l=s.get(h))>0&&c+l<e){c+=l;continue}return a.has(h)?void t.reject(new r.FormatError("Pages tree contains circular reference.")):(a.put(h),void o.fetchAsync(h).then(function(r){(0,i.isDict)(r,"Page")||(0,i.isDict)(r)&&!r.has("Kids")?e===c?(h&&!s.has(h)&&s.put(h,1),t.resolve([r,h])):(c++,u()):(n.push(r),u())},t.reject))}if(!(0,i.isDict)(h))return void t.reject(new r.FormatError("Page dictionary kid reference points to wrong type of object."));if(l=h.get("Count"),Number.isInteger(l)&&l>=0){const t=h.objId;if(t&&!s.has(t)&&s.put(t,l),c+l<=e){c+=l;continue}}const d=h.get("Kids");if(!Array.isArray(d)){if((0,i.isName)(h.get("Type"),"Page")||!h.has("Type")&&h.has("Contents")){if(c===e)return void t.resolve([h,null]);c++;continue}return void t.reject(new r.FormatError("Page dictionary kids object is not an array."))}for(let e=d.length-1;e>=0;e--)n.push(d[e])}t.reject(new Error(`Page index ${e} not found.`))}(),t.promise}getPageIndex(e){const t=this.xref;let n=0;return function a(o){return function(n){let a,o=0;return t.fetchAsync(n).then(function(t){if((0,i.isRefsEqual)(n,e)&&!(0,i.isDict)(t,"Page")&&(!(0,i.isDict)(t)||t.has("Type")||!t.has("Contents")))throw new r.FormatError("The reference does not point to a /Page dictionary.");if(!t)return null;if(!(0,i.isDict)(t))throw new r.FormatError("Node must be a dictionary.");return a=t.getRaw("Parent"),t.getAsync("Parent")}).then(function(e){if(!e)return null;if(!(0,i.isDict)(e))throw new r.FormatError("Parent must be a dictionary.");return e.getAsync("Kids")}).then(function(e){if(!e)return null;const s=[];let l=!1;for(let a=0,c=e.length;a<c;a++){const c=e[a];if(!(0,i.isRef)(c))throw new r.FormatError("Kid must be a reference.");if((0,i.isRefsEqual)(c,n)){l=!0;break}s.push(t.fetchAsync(c).then(function(e){if(!(0,i.isDict)(e))throw new r.FormatError("Kid node must be a dictionary.");e.has("Count")?o+=e.get("Count"):o++}))}if(!l)throw new r.FormatError("Kid reference not found in parent's kids.");return Promise.all(s).then(function(){return[o,a]})})}(o).then(function(e){if(!e)return n;const[t,r]=e;return n+=t,a(r)})}(e)}static parseDestDictionary(e){const t=e.destDict;if(!(0,i.isDict)(t))return void(0,r.warn)("parseDestDictionary: `destDict` must be a dictionary.");const n=e.resultObj;if("object"!=typeof n)return void(0,r.warn)("parseDestDictionary: `resultObj` must be an object.");const a=e.docBaseUrl||null;let o,s,l=t.get("A");if(!(0,i.isDict)(l)&&t.has("Dest")&&(l=t.get("Dest")),(0,i.isDict)(l)){const e=l.get("S");if(!(0,i.isName)(e))return void(0,r.warn)("parseDestDictionary: Invalid type in Action dictionary.");const t=e.name;switch(t){case"URI":o=l.get("URI"),(0,i.isName)(o)?o="/"+o.name:(0,r.isString)(o)&&(o=function(e){return e.startsWith("www.")?`http://${e}`:e}(o));break;case"GoTo":s=l.get("D");break;case"Launch":case"GoToR":const e=l.get("F");(0,i.isDict)(e)?o=e.get("F")||null:(0,r.isString)(e)&&(o=e);let a=l.get("D");if(a&&((0,i.isName)(a)&&(a=a.name),(0,r.isString)(o))){const e=o.split("#")[0];(0,r.isString)(a)?o=e+"#"+a:Array.isArray(a)&&(o=e+"#"+JSON.stringify(a))}const c=l.get("NewWindow");(0,r.isBool)(c)&&(n.newWindow=c);break;case"Named":const u=l.get("N");(0,i.isName)(u)&&(n.action=u.name);break;case"JavaScript":const h=l.get("JS");let d;if((0,i.isStream)(h)?d=(0,r.bytesToString)(h.getBytes()):(0,r.isString)(h)&&(d=h),d){const e=new RegExp("^\\s*("+["app.launchURL","window.open"].join("|").split(".").join("\\.")+")\\((?:'|\")([^'\"]*)(?:'|\")(?:,\\s*(\\w+)\\)|\\))","i").exec((0,r.stringToPDFString)(d));if(e&&e[2]){o=e[2],"true"===e[3]&&"app.launchURL"===e[1]&&(n.newWindow=!0);break}}default:(0,r.warn)(`parseDestDictionary: unsupported action type "${t}".`)}}else t.has("Dest")&&(s=t.get("Dest"));if((0,r.isString)(o)){o=function(e){try{return(0,r.stringToUTF8String)(e)}catch(t){return e}}(o);const e=(0,r.createValidAbsoluteUrl)(o,a);e&&(n.url=e.href),n.unsafeUrl=o}s&&((0,i.isName)(s)&&(s=s.name),((0,r.isString)(s)||Array.isArray(s))&&(n.dest=s))}}t.Catalog=h;var d=function(){function e(e,t){this.stream=e,this.pdfManager=t,this.entries=[],this.xrefstms=Object.create(null),this._cacheMap=new Map,this.stats={streamTypes:Object.create(null),fontTypes:Object.create(null)}}return e.prototype={setStartXRef:function(e){this.startXRefQueue=[e]},parse:function(e){var t;let n,a;e?((0,r.warn)("Indexing all PDF objects"),t=this.indexObjects()):t=this.readXRef(),t.assignXref(this),this.trailer=t;try{n=t.get("Encrypt")}catch(e){if(e instanceof o.MissingDataException)throw e;(0,r.warn)(`XRef.parse - Invalid "Encrypt" reference: "${e}".`)}if((0,i.isDict)(n)){var l=t.get("ID"),c=l&&l.length?l[0]:"";n.suppressEncryption=!0,this.encrypt=new s.CipherTransformFactory(n,c,this.pdfManager.password)}try{a=t.get("Root")}catch(e){if(e instanceof o.MissingDataException)throw e;(0,r.warn)(`XRef.parse - Invalid "Root" reference: "${e}".`)}if(!(0,i.isDict)(a)||!a.has("Pages")){if(!e)throw new o.XRefParseException;throw new r.FormatError("Invalid root reference")}this.root=a},processXRefTable:function(e){"tableState"in this||(this.tableState={entryNum:0,streamPos:e.lexer.stream.pos,parserBuf1:e.buf1,parserBuf2:e.buf2});var t=this.readXRefTable(e);if(!(0,i.isCmd)(t,"trailer"))throw new r.FormatError("Invalid XRef table: could not find trailer dictionary");var n=e.getObj();if(!(0,i.isDict)(n)&&n.dict&&(n=n.dict),!(0,i.isDict)(n))throw new r.FormatError("Invalid XRef table: could not parse trailer dictionary");return delete this.tableState,n},readXRefTable:function(e){var t,n=e.lexer.stream,a=this.tableState;for(n.pos=a.streamPos,e.buf1=a.parserBuf1,e.buf2=a.parserBuf2;;){if(!("firstEntryNum"in a&&"entryCount"in a)){if((0,i.isCmd)(t=e.getObj(),"trailer"))break;a.firstEntryNum=t,a.entryCount=e.getObj()}var o=a.firstEntryNum,s=a.entryCount;if(!Number.isInteger(o)||!Number.isInteger(s))throw new r.FormatError("Invalid XRef table: wrong types in subsection header");for(var l=a.entryNum;l<s;l++){a.streamPos=n.pos,a.entryNum=l,a.parserBuf1=e.buf1,a.parserBuf2=e.buf2;var c={};c.offset=e.getObj(),c.gen=e.getObj();var u=e.getObj();if(u instanceof i.Cmd)switch(u.cmd){case"f":c.free=!0;break;case"n":c.uncompressed=!0}if(!Number.isInteger(c.offset)||!Number.isInteger(c.gen)||!c.free&&!c.uncompressed)throw new r.FormatError(`Invalid entry in XRef subsection: ${o}, ${s}`);0===l&&c.free&&1===o&&(o=0),this.entries[l+o]||(this.entries[l+o]=c)}a.entryNum=0,a.streamPos=n.pos,a.parserBuf1=e.buf1,a.parserBuf2=e.buf2,delete a.firstEntryNum,delete a.entryCount}if(this.entries[0]&&!this.entries[0].free)throw new r.FormatError("Invalid XRef table: unexpected first object");return t},processXRefStream:function(e){if(!("streamState"in this)){var t=e.dict,n=t.get("W"),r=t.get("Index");r||(r=[0,t.get("Size")]),this.streamState={entryRanges:r,byteWidths:n,entryNum:0,streamPos:e.pos}}return this.readXRefStream(e),delete this.streamState,e.dict},readXRefStream:function(e){var t,n,i=this.streamState;e.pos=i.streamPos;for(var a=i.byteWidths,o=a[0],s=a[1],l=a[2],c=i.entryRanges;c.length>0;){var u=c[0],h=c[1];if(!Number.isInteger(u)||!Number.isInteger(h))throw new r.FormatError(`Invalid XRef range fields: ${u}, ${h}`);if(!Number.isInteger(o)||!Number.isInteger(s)||!Number.isInteger(l))throw new r.FormatError(`Invalid XRef entry fields length: ${u}, ${h}`);for(t=i.entryNum;t<h;++t){i.entryNum=t,i.streamPos=e.pos;var d=0,f=0,p=0;for(n=0;n<o;++n)d=d<<8|e.getByte();for(0===o&&(d=1),n=0;n<s;++n)f=f<<8|e.getByte();for(n=0;n<l;++n)p=p<<8|e.getByte();var A={};switch(A.offset=f,A.gen=p,d){case 0:A.free=!0;break;case 1:A.uncompressed=!0;break;case 2:break;default:throw new r.FormatError(`Invalid XRef entry type: ${d}`)}this.entries[u+t]||(this.entries[u+t]=A)}i.entryNum=0,i.streamPos=e.pos,c.splice(0,2)}},indexObjects:function(){var e=10,t=13,n=60;function s(r,i){for(var a="",o=r[i];o!==e&&o!==t&&o!==n&&!(++i>=r.length);)a+=String.fromCharCode(o),o=r[i];return a}function l(e,t,n){for(var r=n.length,i=e.length,a=0;t<i;){for(var o=0;o<r&&e[t+o]===n[o];)++o;if(o>=r)break;t++,a++}return a}var c=/^(\d+)\s+(\d+)\s+obj\b/;const u=/\bendobj[\b\s]$/,h=/\s+(\d+\s+\d+\s+obj[\b\s<])$/;var d=new Uint8Array([116,114,97,105,108,101,114]),f=new Uint8Array([115,116,97,114,116,120,114,101,102]);const p=new Uint8Array([111,98,106]);var A=new Uint8Array([47,88,82,101,102]);this.entries.length=0;var g=this.stream;g.pos=0;for(var m,v,y=g.getBytes(),b=g.start,w=y.length,x=[],_=[];b<w;){var C=y[b];if(9!==C&&C!==e&&C!==t&&32!==C)if(37!==C){var S,k=s(y,b);if(k.startsWith("xref")&&(4===k.length||/\s/.test(k[4])))b+=l(y,b,d),x.push(b),b+=l(y,b,f);else if(S=c.exec(k)){const e=0|S[1],t=0|S[2];this.entries[e]&&this.entries[e].gen!==t||(this.entries[e]={offset:b-g.start,gen:t,uncompressed:!0});let n,i=b+k.length;for(;i<y.length;){const e=i+l(y,i,p)+4;n=e-b;const t=Math.max(e-25,i),a=(0,r.bytesToString)(y.subarray(t,e));if(u.test(a))break;{const e=h.exec(a);if(e&&e[1]){(0,r.warn)('indexObjects: Found new "obj" inside of another "obj", caused by missing "endobj" -- trying to recover.'),n-=e[1].length;break}}i=e}const a=y.subarray(b,b+n);var B=l(a,0,A);B<n&&a[B+5]<64&&(_.push(b-g.start),this.xrefstms[b-g.start]=1),b+=n}else k.startsWith("trailer")&&(7===k.length||/\s/.test(k[7]))?(x.push(b),b+=l(y,b,f)):b+=k.length+1}else do{if(++b>=w)break;C=y[b]}while(C!==e&&C!==t);else++b}for(m=0,v=_.length;m<v;++m)this.startXRefQueue.push(_[m]),this.readXRef(!0);let E;for(m=0,v=x.length;m<v;++m){g.pos=x[m];const e=new a.Parser({lexer:new a.Lexer(g),xref:this,allowStreams:!0,recoveryMode:!0});var T=e.getObj();if(!(0,i.isCmd)(T,"trailer"))continue;const t=e.getObj();if(!(0,i.isDict)(t))continue;let n;try{n=t.get("Root")}catch(e){if(e instanceof o.MissingDataException)throw e;continue}if((0,i.isDict)(n)&&n.has("Pages")){if(t.has("ID"))return t;E=t}}if(E)return E;throw new r.InvalidPDFException("Invalid PDF structure.")},readXRef:function(e){var t=this.stream;const n=Object.create(null);try{for(;this.startXRefQueue.length;){var s=this.startXRefQueue[0];if(n[s]){(0,r.warn)("readXRef - skipping XRef table since it was already parsed."),this.startXRefQueue.shift();continue}n[s]=!0,t.pos=s+t.start;const e=new a.Parser({lexer:new a.Lexer(t),xref:this,allowStreams:!0});var l,c=e.getObj();if((0,i.isCmd)(c,"xref")){if(l=this.processXRefTable(e),this.topDict||(this.topDict=l),c=l.get("XRefStm"),Number.isInteger(c)){var u=c;u in this.xrefstms||(this.xrefstms[u]=1,this.startXRefQueue.push(u))}}else{if(!Number.isInteger(c))throw new r.FormatError("Invalid XRef stream header");if(!Number.isInteger(e.getObj())||!(0,i.isCmd)(e.getObj(),"obj")||!(0,i.isStream)(c=e.getObj()))throw new r.FormatError("Invalid XRef stream");if(l=this.processXRefStream(c),this.topDict||(this.topDict=l),!l)throw new r.FormatError("Failed to read XRef stream")}c=l.get("Prev"),Number.isInteger(c)?this.startXRefQueue.push(c):(0,i.isRef)(c)&&this.startXRefQueue.push(c.num),this.startXRefQueue.shift()}return this.topDict}catch(e){if(e instanceof o.MissingDataException)throw e;(0,r.info)("(while reading XRef): "+e)}if(!e)throw new o.XRefParseException},getEntry:function(e){var t=this.entries[e];return t&&!t.free&&t.offset?t:null},fetchIfRef:function(e,t){return e instanceof i.Ref?this.fetch(e,t):e},fetch:function(e,t){if(!(e instanceof i.Ref))throw new Error("ref object is not a reference");const n=e.num,r=this._cacheMap.get(n);if(void 0!==r)return r instanceof i.Dict&&!r.objId&&(r.objId=e.toString()),r;let a=this.getEntry(n);return null===a?(this._cacheMap.set(n,a),a):(a=a.uncompressed?this.fetchUncompressed(e,a,t):this.fetchCompressed(e,a,t),(0,i.isDict)(a)?a.objId=e.toString():(0,i.isStream)(a)&&(a.dict.objId=e.toString()),a)},fetchUncompressed(e,t,n=!1){var r=e.gen,s=e.num;if(t.gen!==r)throw new o.XRefEntryException(`Inconsistent generation in XRef: ${e}`);var l=this.stream.makeSubStream(t.offset+this.stream.start);const c=new a.Parser({lexer:new a.Lexer(l),xref:this,allowStreams:!0});var u=c.getObj(),h=c.getObj(),d=c.getObj();if(u!==s||h!==r||!(d instanceof i.Cmd))throw new o.XRefEntryException(`Bad (uncompressed) XRef entry: ${e}`);if("obj"!==d.cmd){if(d.cmd.startsWith("obj")&&(s=parseInt(d.cmd.substring(3),10),!Number.isNaN(s)))return s;throw new o.XRefEntryException(`Bad (uncompressed) XRef entry: ${e}`)}return t=this.encrypt&&!n?c.getObj(this.encrypt.createCipherTransform(s,r)):c.getObj(),(0,i.isStream)(t)||this._cacheMap.set(s,t),t},fetchCompressed(e,t,n=!1){const s=t.offset,l=this.fetch(i.Ref.get(s,0));if(!(0,i.isStream)(l))throw new r.FormatError("bad ObjStm stream");const c=l.dict.get("First"),u=l.dict.get("N");if(!Number.isInteger(c)||!Number.isInteger(u))throw new r.FormatError("invalid first and n parameters for ObjStm stream");const h=new a.Parser({lexer:new a.Lexer(l),xref:this,allowStreams:!0}),d=new Array(u);for(let e=0;e<u;++e){const t=h.getObj();if(!Number.isInteger(t))throw new r.FormatError(`invalid object number in the ObjStm stream: ${t}`);const n=h.getObj();if(!Number.isInteger(n))throw new r.FormatError(`invalid object offset in the ObjStm stream: ${n}`);d[e]=t}const f=new Array(u);for(let e=0;e<u;++e){const t=h.getObj();if(f[e]=t,h.buf1 instanceof i.Cmd&&"endobj"===h.buf1.cmd&&h.shift(),(0,i.isStream)(t))continue;const n=d[e],r=this.entries[n];r&&r.offset===s&&r.gen===e&&this._cacheMap.set(n,t)}if(void 0===(t=f[t.gen]))throw new o.XRefEntryException(`Bad (compressed) XRef entry: ${e}`);return t},async fetchIfRefAsync(e,t){return e instanceof i.Ref?this.fetchAsync(e,t):e},async fetchAsync(e,t){try{return this.fetch(e,t)}catch(n){if(!(n instanceof o.MissingDataException))throw n;return await this.pdfManager.requestRange(n.begin,n.end),this.fetchAsync(e,t)}},getCatalogObj:function(){return this.root}},e}();t.XRef=d;class f{constructor(e,t,n){this.constructor===f&&(0,r.unreachable)("Cannot initialize NameOrNumberTree."),this.root=e,this.xref=t,this._type=n}getAll(){const e=Object.create(null);if(!this.root)return e;const t=this.xref,n=new i.RefSet;n.put(this.root);const a=[this.root];for(;a.length>0;){const o=t.fetchIfRef(a.shift());if(!(0,i.isDict)(o))continue;if(o.has("Kids")){const e=o.get("Kids");for(let t=0,i=e.length;t<i;t++){const i=e[t];if(n.has(i))throw new r.FormatError(`Duplicate entry in "${this._type}" tree.`);a.push(i),n.put(i)}continue}const s=o.get(this._type);if(Array.isArray(s))for(let n=0,r=s.length;n<r;n+=2)e[t.fetchIfRef(s[n])]=t.fetchIfRef(s[n+1])}return e}get(e){if(!this.root)return null;const t=this.xref;let n=t.fetchIfRef(this.root),i=0;for(;n.has("Kids");){if(++i>10)return(0,r.warn)(`Search depth limit reached for "${this._type}" tree.`),null;const a=n.get("Kids");if(!Array.isArray(a))return null;let o=0,s=a.length-1;for(;o<=s;){const r=o+s>>1,i=t.fetchIfRef(a[r]).get("Limits");if(e<t.fetchIfRef(i[0]))s=r-1;else{if(!(e>t.fetchIfRef(i[1]))){n=t.fetchIfRef(a[r]);break}o=r+1}}if(o>s)return null}const a=n.get(this._type);if(Array.isArray(a)){let n=0,i=a.length-2;for(;n<=i;){const r=n+i>>1,o=r+(1&r),s=t.fetchIfRef(a[o]);if(e<s)i=o-2;else{if(!(e>s))return t.fetchIfRef(a[o+1]);n=o+2}}(0,r.info)(`Falling back to an exhaustive search, for key "${e}", `+`in "${this._type}" tree.`);for(let n=0,i=a.length;n<i;n+=2){if(t.fetchIfRef(a[n])===e)return(0,r.warn)(`The "${e}" key was found at an incorrect, `+`i.e. out-of-order, position in "${this._type}" tree.`),t.fetchIfRef(a[n+1])}}return null}}class p extends f{constructor(e,t){super(e,t,"Names")}}class A extends f{constructor(e,t){super(e,t,"Nums")}}var g=function(){function e(e,t){e&&(0,i.isDict)(e)&&(this.xref=t,this.root=e,e.has("FS")&&(this.fs=e.get("FS")),this.description=e.has("Desc")?(0,r.stringToPDFString)(e.get("Desc")):"",e.has("RF")&&(0,r.warn)("Related file specifications are not supported"),this.contentAvailable=!0,e.has("EF")||(this.contentAvailable=!1,(0,r.warn)("Non-embedded file specifications are not supported")))}function t(e){return e.has("UF")?e.get("UF"):e.has("F")?e.get("F"):e.has("Unix")?e.get("Unix"):e.has("Mac")?e.get("Mac"):e.has("DOS")?e.get("DOS"):null}return e.prototype={get filename(){if(!this._filename&&this.root){var e=t(this.root)||"unnamed";this._filename=(0,r.stringToPDFString)(e).replace(/\\\\/g,"\\").replace(/\\\//g,"/").replace(/\\/g,"/")}return this._filename},get content(){if(!this.contentAvailable)return null;!this.contentRef&&this.root&&(this.contentRef=t(this.root.get("EF")));var e=null;if(this.contentRef){var n=this.xref.fetchIfRef(this.contentRef);n&&(0,i.isStream)(n)?e=n.getBytes():(0,r.warn)("Embedded file specification points to non-existing/invalid content")}else(0,r.warn)("Embedded file specification does not have a content");return e},get serializable(){return{filename:this.filename,content:this.content}}},e}();t.FileSpec=g;const m=function(){function e(e){return e instanceof i.Ref||e instanceof i.Dict||Array.isArray(e)||(0,i.isStream)(e)}function t(t,n){if(t instanceof i.Dict||(0,i.isStream)(t)){const r=t instanceof i.Dict?t:t.dict,a=r.getKeys();for(let t=0,i=a.length;t<i;t++){const i=r.getRaw(a[t]);e(i)&&n.push(i)}}else if(Array.isArray(t))for(let r=0,i=t.length;r<i;r++){const i=t[r];e(i)&&n.push(i)}}function n(e,t,n){this.dict=e,this.keys=t,this.xref=n,this.refSet=null}return n.prototype={async load(){if(!this.xref.stream.allChunksLoaded||this.xref.stream.allChunksLoaded())return;const{keys:e,dict:t}=this;this.refSet=new i.RefSet;const n=[];for(let r=0,i=e.length;r<i;r++){const i=t.getRaw(e[r]);void 0!==i&&n.push(i)}return this._walk(n)},async _walk(e){const n=[],r=[];for(;e.length;){let a=e.pop();if(a instanceof i.Ref){if(this.refSet.has(a))continue;try{this.refSet.put(a),a=this.xref.fetch(a)}catch(e){if(!(e instanceof o.MissingDataException))throw e;n.push(a),r.push({begin:e.begin,end:e.end})}}if(a&&a.getBaseStreams){const e=a.getBaseStreams();let t=!1;for(let n=0,i=e.length;n<i;n++){const i=e[n];i.allChunksLoaded&&!i.allChunksLoaded()&&(t=!0,r.push({begin:i.start,end:i.end}))}t&&n.push(a)}t(a,e)}if(r.length){await this.xref.stream.manager.requestRanges(r);for(let e=0,t=n.length;e<t;e++){const t=n[e];t instanceof i.Ref&&this.refSet.remove(t)}return this._walk(n)}this.refSet=null}},n}();t.ObjectLoader=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Parser=t.Linearization=t.Lexer=void 0;var r=n(12),i=n(2),a=n(5),o=n(8),s=n(13),l=n(15),c=n(18),u=n(20);const h=1e3,d=5552;function f(e){const t=e.length;let n=1,r=0;for(let i=0;i<t;++i)r+=n+=255&e[i];return r%65521<<16|n%65521}class p{constructor({lexer:e,xref:t,allowStreams:n=!1,recoveryMode:r=!1}){this.lexer=e,this.xref=t,this.allowStreams=n,this.recoveryMode=r,this.imageCache=Object.create(null),this.refill()}refill(){this.buf1=this.lexer.getObj(),this.buf2=this.lexer.getObj()}shift(){this.buf2 instanceof a.Cmd&&"ID"===this.buf2.cmd?(this.buf1=this.buf2,this.buf2=null):(this.buf1=this.buf2,this.buf2=this.lexer.getObj())}tryShift(){try{return this.shift(),!0}catch(e){if(e instanceof o.MissingDataException)throw e;return!1}}getObj(e=null){const t=this.buf1;if(this.shift(),t instanceof a.Cmd)switch(t.cmd){case"BI":return this.makeInlineImage(e);case"[":const n=[];for(;!(0,a.isCmd)(this.buf1,"]")&&!(0,a.isEOF)(this.buf1);)n.push(this.getObj(e));if((0,a.isEOF)(this.buf1)){if(!this.recoveryMode)throw new i.FormatError("End of file inside array");return n}return this.shift(),n;case"<<":const r=new a.Dict(this.xref);for(;!(0,a.isCmd)(this.buf1,">>")&&!(0,a.isEOF)(this.buf1);){if(!(0,a.isName)(this.buf1)){(0,i.info)("Malformed dictionary: key must be a name object"),this.shift();continue}const t=this.buf1.name;if(this.shift(),(0,a.isEOF)(this.buf1))break;r.set(t,this.getObj(e))}if((0,a.isEOF)(this.buf1)){if(!this.recoveryMode)throw new i.FormatError("End of file inside dictionary");return r}return(0,a.isCmd)(this.buf2,"stream")?this.allowStreams?this.makeStream(r,e):r:(this.shift(),r);default:return t}if(Number.isInteger(t)){if(Number.isInteger(this.buf1)&&(0,a.isCmd)(this.buf2,"R")){const e=a.Ref.get(t,this.buf1);return this.shift(),this.shift(),e}return t}return"string"==typeof t&&e?e.decryptString(t):t}findDefaultInlineStreamEnd(e){const t=e.pos;let n,r,a=0;for(;-1!==(n=e.getByte());)if(0===a)a=69===n?1:0;else if(1===a)a=73===n?2:0;else if((0,i.assert)(2===a,"findDefaultInlineStreamEnd - invalid state."),32===n||10===n||13===n){r=e.pos;const t=e.peekBytes(10);for(let e=0,r=t.length;e<r;e++)if((0!==(n=t[e])||0===t[e+1])&&10!==n&&13!==n&&(n<32||n>127)){a=0;break}if(2===a)break}else a=0;-1===n&&((0,i.warn)("findDefaultInlineStreamEnd: Reached the end of the stream without finding a valid EI marker"),r&&((0,i.warn)('... trying to recover by using the last "EI" occurrence.'),e.skip(-(e.pos-r))));let s=4;return e.skip(-s),n=e.peekByte(),e.skip(s),(0,o.isWhiteSpace)(n)||s--,e.pos-s-t}findDCTDecodeInlineStreamEnd(e){const t=e.pos;let n,r,a=!1;for(;-1!==(n=e.getByte());)if(255===n){switch(e.getByte()){case 0:break;case 255:e.skip(-1);break;case 217:a=!0;break;case 192:case 193:case 194:case 195:case 197:case 198:case 199:case 201:case 202:case 203:case 205:case 206:case 207:case 196:case 204:case 218:case 219:case 220:case 221:case 222:case 223:case 224:case 225:case 226:case 227:case 228:case 229:case 230:case 231:case 232:case 233:case 234:case 235:case 236:case 237:case 238:case 239:case 254:(r=e.getUint16())>2?e.skip(r-2):e.skip(-2)}if(a)break}const o=e.pos-t;return-1===n?((0,i.warn)("Inline DCTDecode image stream: EOI marker not found, searching for /EI/ instead."),e.skip(-o),this.findDefaultInlineStreamEnd(e)):(this.inlineStreamSkipEI(e),o)}findASCII85DecodeInlineStreamEnd(e){const t=e.pos;let n;for(;-1!==(n=e.getByte());)if(126===n){const t=e.pos;for(n=e.peekByte();(0,o.isWhiteSpace)(n);)e.skip(),n=e.peekByte();if(62===n){e.skip();break}if(e.pos>t){const t=e.peekBytes(2);if(69===t[0]&&73===t[1])break}}const r=e.pos-t;return-1===n?((0,i.warn)("Inline ASCII85Decode image stream: EOD marker not found, searching for /EI/ instead."),e.skip(-r),this.findDefaultInlineStreamEnd(e)):(this.inlineStreamSkipEI(e),r)}findASCIIHexDecodeInlineStreamEnd(e){const t=e.pos;let n;for(;-1!==(n=e.getByte())&&62!==n;);const r=e.pos-t;return-1===n?((0,i.warn)("Inline ASCIIHexDecode image stream: EOD marker not found, searching for /EI/ instead."),e.skip(-r),this.findDefaultInlineStreamEnd(e)):(this.inlineStreamSkipEI(e),r)}inlineStreamSkipEI(e){let t,n=0;for(;-1!==(t=e.getByte());)if(0===n)n=69===t?1:0;else if(1===n)n=73===t?2:0;else if(2===n)break}makeInlineImage(e){const t=this.lexer,n=t.stream,r=new a.Dict(this.xref);let o;for(;!(0,a.isCmd)(this.buf1,"ID")&&!(0,a.isEOF)(this.buf1);){if(!(0,a.isName)(this.buf1))throw new i.FormatError("Dictionary key must be a name object");const t=this.buf1.name;if(this.shift(),(0,a.isEOF)(this.buf1))break;r.set(t,this.getObj(e))}-1!==t.beginInlineImagePos&&(o=n.pos-t.beginInlineImagePos);const s=r.get("Filter","F");let l;if((0,a.isName)(s))l=s.name;else if(Array.isArray(s)){const e=this.xref.fetchIfRef(s[0]);(0,a.isName)(e)&&(l=e.name)}const c=n.pos;let u;u="DCTDecode"===l||"DCT"===l?this.findDCTDecodeInlineStreamEnd(n):"ASCII85Decode"===l||"A85"===l?this.findASCII85DecodeInlineStreamEnd(n):"ASCIIHexDecode"===l||"AHx"===l?this.findASCIIHexDecodeInlineStreamEnd(n):this.findDefaultInlineStreamEnd(n);let p,A=n.makeSubStream(c,u,r);if(u<h&&o<d){const e=A.getBytes();A.reset();const r=n.pos;n.pos=t.beginInlineImagePos;const i=n.getBytes(o);n.pos=r,p=f(e)+"_"+f(i);const s=this.imageCache[p];if(void 0!==s)return this.buf2=a.Cmd.get("EI"),this.shift(),s.reset(),s}return e&&(A=e.createStream(A,u)),(A=this.filter(A,r,u)).dict=r,void 0!==p&&(A.cacheKey=`inline_${u}_${p}`,this.imageCache[p]=A),this.buf2=a.Cmd.get("EI"),this.shift(),A}_findStreamLength(e,t){const{stream:n}=this.lexer;n.pos=e;const r=t.length;for(;n.pos<n.end;){const i=n.peekBytes(2048),a=i.length-r;if(a<=0)break;let o=0;for(;o<a;){let a=0;for(;a<r&&i[o+a]===t[a];)a++;if(a>=r)return n.pos+=o,n.pos-e;o++}n.pos+=a}return-1}makeStream(e,t){const n=this.lexer;let r=n.stream;n.skipToNextLine();const s=r.pos-1;let l=e.get("Length");if(Number.isInteger(l)||((0,i.info)(`Bad length "${l}" in stream`),l=0),r.pos=s+l,n.nextChar(),this.tryShift()&&(0,a.isCmd)(this.buf2,"endstream"))this.shift();else{const e=new Uint8Array([101,110,100,115,116,114,101,97,109]);let t=this._findStreamLength(s,e);if(t<0){const n=1;for(let a=1;a<=n;a++){const n=e.length-a,l=e.slice(0,n),c=this._findStreamLength(s,l);if(c>=0){const e=r.peekBytes(n+1)[n];if(!(0,o.isWhiteSpace)(e))break;(0,i.info)(`Found "${(0,i.bytesToString)(l)}" when `+"searching for endstream command."),t=c;break}}if(t<0)throw new i.FormatError("Missing endstream command.")}l=t,n.nextChar(),this.shift(),this.shift()}return this.shift(),r=r.makeSubStream(s,l,e),t&&(r=t.createStream(r,l)),(r=this.filter(r,e,l)).dict=e,r}filter(e,t,n){let r=t.get("Filter","F"),o=t.get("DecodeParms","DP");if((0,a.isName)(r))return Array.isArray(o)&&(0,i.warn)("/DecodeParms should not contain an Array, when /Filter contains a Name."),this.makeFilter(e,r.name,n,o);let s=n;if(Array.isArray(r)){const t=r,n=o;for(let l=0,c=t.length;l<c;++l){if(r=this.xref.fetchIfRef(t[l]),!(0,a.isName)(r))throw new i.FormatError(`Bad filter name "${r}"`);o=null,Array.isArray(n)&&l in n&&(o=this.xref.fetchIfRef(n[l])),e=this.makeFilter(e,r.name,s,o),s=null}}return e}makeFilter(e,t,n,a){if(0===n)return(0,i.warn)(`Empty "${t}" stream.`),new r.NullStream;try{const h=this.xref.stats.streamTypes;if("FlateDecode"===t||"Fl"===t)return h[i.StreamType.FLATE]=!0,a?new r.PredictorStream(new r.FlateStream(e,n),n,a):new r.FlateStream(e,n);if("LZWDecode"===t||"LZW"===t){h[i.StreamType.LZW]=!0;let t=1;return a?(a.has("EarlyChange")&&(t=a.get("EarlyChange")),new r.PredictorStream(new r.LZWStream(e,n,t),n,a)):new r.LZWStream(e,n,t)}return"DCTDecode"===t||"DCT"===t?(h[i.StreamType.DCT]=!0,new c.JpegStream(e,n,e.dict,a)):"JPXDecode"===t||"JPX"===t?(h[i.StreamType.JPX]=!0,new u.JpxStream(e,n,e.dict,a)):"ASCII85Decode"===t||"A85"===t?(h[i.StreamType.A85]=!0,new r.Ascii85Stream(e,n)):"ASCIIHexDecode"===t||"AHx"===t?(h[i.StreamType.AHX]=!0,new r.AsciiHexStream(e,n)):"CCITTFaxDecode"===t||"CCF"===t?(h[i.StreamType.CCF]=!0,new s.CCITTFaxStream(e,n,a)):"RunLengthDecode"===t||"RL"===t?(h[i.StreamType.RLX]=!0,new r.RunLengthStream(e,n)):"JBIG2Decode"===t?(h[i.StreamType.JBIG]=!0,new l.Jbig2Stream(e,n,e.dict,a)):((0,i.warn)(`Filter "${t}" is not supported.`),e)}catch(e){if(e instanceof o.MissingDataException)throw e;return(0,i.warn)(`Invalid stream: "${e}"`),new r.NullStream}}}t.Parser=p;const A=[1,0,0,0,0,0,0,0,0,1,1,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,2,0,0,2,2,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,2,0,2,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,2,0,2,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,2,0,2,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,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];function g(e){return e>=48&&e<=57?15&e:e>=65&&e<=70||e>=97&&e<=102?9+(15&e):-1}class m{constructor(e,t=null){this.stream=e,this.nextChar(),this.strBuf=[],this.knownCommands=t,this._hexStringNumWarn=0,this.beginInlineImagePos=-1}nextChar(){return this.currentChar=this.stream.getByte()}peekChar(){return this.stream.peekByte()}getNumber(){let e=this.currentChar,t=!1,n=0,r=0;if(45===e?(r=-1,45===(e=this.nextChar())&&(e=this.nextChar())):43===e&&(r=1,e=this.nextChar()),10===e||13===e)do{e=this.nextChar()}while(10===e||13===e);if(46===e&&(n=10,e=this.nextChar()),e<48||e>57){if(10===n&&0===r&&((0,o.isWhiteSpace)(e)||-1===e))return(0,i.warn)("Lexer.getNumber - treating a single decimal point as zero."),0;throw new i.FormatError(`Invalid number: ${String.fromCharCode(e)} (charCode ${e})`)}r=r||1;let a=e-48,s=0,l=1;for(;(e=this.nextChar())>=0;)if(e>=48&&e<=57){const r=e-48;t?s=10*s+r:(0!==n&&(n*=10),a=10*a+r)}else if(46===e){if(0!==n)break;n=1}else if(45===e)(0,i.warn)("Badly formatted number: minus sign in the middle");else{if(69!==e&&101!==e)break;if(43===(e=this.peekChar())||45===e)l=45===e?-1:1,this.nextChar();else if(e<48||e>57)break;t=!0}return 0!==n&&(a/=n),t&&(a*=10**(l*s)),r*a}getString(){let e=1,t=!1;const n=this.strBuf;n.length=0;let r=this.nextChar();for(;;){let a=!1;switch(0|r){case-1:(0,i.warn)("Unterminated string"),t=!0;break;case 40:++e,n.push("(");break;case 41:0==--e?(this.nextChar(),t=!0):n.push(")");break;case 92:switch(r=this.nextChar()){case-1:(0,i.warn)("Unterminated string"),t=!0;break;case 110:n.push("\n");break;case 114:n.push("\r");break;case 116:n.push("\t");break;case 98:n.push("\b");break;case 102:n.push("\f");break;case 92:case 40:case 41:n.push(String.fromCharCode(r));break;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:let e=15&r;r=this.nextChar(),a=!0,r>=48&&r<=55&&(e=(e<<3)+(15&r),(r=this.nextChar())>=48&&r<=55&&(a=!1,e=(e<<3)+(15&r))),n.push(String.fromCharCode(e));break;case 13:10===this.peekChar()&&this.nextChar();break;case 10:break;default:n.push(String.fromCharCode(r))}break;default:n.push(String.fromCharCode(r))}if(t)break;a||(r=this.nextChar())}return n.join("")}getName(){let e,t;const n=this.strBuf;for(n.length=0;(e=this.nextChar())>=0&&!A[e];)if(35===e){if(e=this.nextChar(),A[e]){(0,i.warn)("Lexer_getName: NUMBER SIGN (#) should be followed by a hexadecimal number."),n.push("#");break}const r=g(e);if(-1!==r){t=e;const a=g(e=this.nextChar());if(-1===a){if((0,i.warn)(`Lexer_getName: Illegal digit (${String.fromCharCode(e)}) `+"in hexadecimal number."),n.push("#",String.fromCharCode(t)),A[e])break;n.push(String.fromCharCode(e));continue}n.push(String.fromCharCode(r<<4|a))}else n.push("#",String.fromCharCode(e))}else n.push(String.fromCharCode(e));return n.length>127&&(0,i.warn)(`Name token is longer than allowed by the spec: ${n.length}`),a.Name.get(n.join(""))}_hexStringWarn(e){5!=this._hexStringNumWarn++?this._hexStringNumWarn>5||(0,i.warn)(`getHexString - ignoring invalid character: ${e}`):(0,i.warn)("getHexString - ignoring additional invalid characters.")}getHexString(){const e=this.strBuf;e.length=0;let t,n,r=this.currentChar,a=!0;for(this._hexStringNumWarn=0;;){if(r<0){(0,i.warn)("Unterminated hex string");break}if(62===r){this.nextChar();break}if(1!==A[r]){if(a){if(-1===(t=g(r))){this._hexStringWarn(r),r=this.nextChar();continue}}else{if(-1===(n=g(r))){this._hexStringWarn(r),r=this.nextChar();continue}e.push(String.fromCharCode(t<<4|n))}a=!a,r=this.nextChar()}else r=this.nextChar()}return e.join("")}getObj(){let e=!1,t=this.currentChar;for(;;){if(t<0)return a.EOF;if(e)10!==t&&13!==t||(e=!1);else if(37===t)e=!0;else if(1!==A[t])break;t=this.nextChar()}switch(0|t){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 43:case 45:case 46:return this.getNumber();case 40:return this.getString();case 47:return this.getName();case 91:return this.nextChar(),a.Cmd.get("[");case 93:return this.nextChar(),a.Cmd.get("]");case 60:return 60===(t=this.nextChar())?(this.nextChar(),a.Cmd.get("<<")):this.getHexString();case 62:return 62===(t=this.nextChar())?(this.nextChar(),a.Cmd.get(">>")):a.Cmd.get(">");case 123:return this.nextChar(),a.Cmd.get("{");case 125:return this.nextChar(),a.Cmd.get("}");case 41:throw this.nextChar(),new i.FormatError(`Illegal character: ${t}`)}let n=String.fromCharCode(t);const r=this.knownCommands;let o=r&&void 0!==r[n];for(;(t=this.nextChar())>=0&&!A[t];){const e=n+String.fromCharCode(t);if(o&&void 0===r[e])break;if(128===n.length)throw new i.FormatError(`Command token too long: ${n.length}`);n=e,o=r&&void 0!==r[n]}return"true"===n||"false"!==n&&("null"===n?null:("BI"===n&&(this.beginInlineImagePos=this.stream.pos),a.Cmd.get(n)))}skipToNextLine(){let e=this.currentChar;for(;e>=0;){if(13===e){10===(e=this.nextChar())&&this.nextChar();break}if(10===e){this.nextChar();break}e=this.nextChar()}}}t.Lexer=m;t.Linearization=class{static create(e){function t(e,t,n=!1){const r=e.get(t);if(Number.isInteger(r)&&(n?r>=0:r>0))return r;throw new Error(`The "${t}" parameter in the linearization `+"dictionary is invalid.")}const n=new p({lexer:new m(e),xref:null}),r=n.getObj(),o=n.getObj(),s=n.getObj(),l=n.getObj();let c,u;if(!(Number.isInteger(r)&&Number.isInteger(o)&&(0,a.isCmd)(s,"obj")&&(0,a.isDict)(l)&&(0,i.isNum)(c=l.get("Linearized"))&&c>0))return null;if((u=t(l,"L"))!==e.length)throw new Error('The "L" parameter in the linearization dictionary does not equal the stream length.');return{length:u,hints:function(e){const t=e.get("H");let n;if(Array.isArray(t)&&(2===(n=t.length)||4===n)){for(let e=0;e<n;e++){const n=t[e];if(!(Number.isInteger(n)&&n>0))throw new Error(`Hint (${e}) in the linearization dictionary is invalid.`)}return t}throw new Error("Hint array in the linearization dictionary is invalid.")}(l),objectNumberFirst:t(l,"O"),endFirst:t(l,"E"),numPages:t(l,"N"),mainXRefEntriesOffset:t(l,"T"),pageFirst:l.has("P")?t(l,"P",!0):0}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LZWStream=t.StringStream=t.StreamsSequenceStream=t.Stream=t.RunLengthStream=t.PredictorStream=t.NullStream=t.FlateStream=t.DecodeStream=t.DecryptStream=t.AsciiHexStream=t.Ascii85Stream=void 0;var r=n(2),i=n(5),a=n(8),o=function(){function e(e,t,n,r){this.bytes=e instanceof Uint8Array?e:new Uint8Array(e),this.start=t||0,this.pos=this.start,this.end=t+n||this.bytes.length,this.dict=r}return e.prototype={get length(){return this.end-this.start},get isEmpty(){return 0===this.length},getByte:function(){return this.pos>=this.end?-1:this.bytes[this.pos++]},getUint16:function(){var e=this.getByte(),t=this.getByte();return-1===e||-1===t?-1:(e<<8)+t},getInt32:function(){return(this.getByte()<<24)+(this.getByte()<<16)+(this.getByte()<<8)+this.getByte()},getBytes(e,t=!1){var n=this.bytes,r=this.pos,i=this.end;if(!e){const e=n.subarray(r,i);return t?new Uint8ClampedArray(e):e}var a=r+e;a>i&&(a=i),this.pos=a;const o=n.subarray(r,a);return t?new Uint8ClampedArray(o):o},peekByte:function(){var e=this.getByte();return-1!==e&&this.pos--,e},peekBytes(e,t=!1){var n=this.getBytes(e,t);return this.pos-=n.length,n},getByteRange(e,t){return e<0&&(e=0),t>this.end&&(t=this.end),this.bytes.subarray(e,t)},skip:function(e){e||(e=1),this.pos+=e},reset:function(){this.pos=this.start},moveStart:function(){this.start=this.pos},makeSubStream:function(t,n,r){return new e(this.bytes.buffer,t,n,r)}},e}();t.Stream=o;var s=function(){function e(e){const t=(0,r.stringToBytes)(e);o.call(this,t)}return e.prototype=o.prototype,e}();t.StringStream=s;var l=function(){var e=new Uint8Array(0);function t(t){if(this._rawMinBufferLength=t||0,this.pos=0,this.bufferLength=0,this.eof=!1,this.buffer=e,this.minBufferLength=512,t)for(;this.minBufferLength<t;)this.minBufferLength*=2}return t.prototype={get isEmpty(){for(;!this.eof&&0===this.bufferLength;)this.readBlock();return 0===this.bufferLength},ensureBuffer:function(e){var t=this.buffer;if(e<=t.byteLength)return t;for(var n=this.minBufferLength;n<e;)n*=2;var r=new Uint8Array(n);return r.set(t),this.buffer=r},getByte:function(){for(var e=this.pos;this.bufferLength<=e;){if(this.eof)return-1;this.readBlock()}return this.buffer[this.pos++]},getUint16:function(){var e=this.getByte(),t=this.getByte();return-1===e||-1===t?-1:(e<<8)+t},getInt32:function(){return(this.getByte()<<24)+(this.getByte()<<16)+(this.getByte()<<8)+this.getByte()},getBytes(e,t=!1){var n,r=this.pos;if(e){for(this.ensureBuffer(r+e),n=r+e;!this.eof&&this.bufferLength<n;)this.readBlock();var i=this.bufferLength;n>i&&(n=i)}else{for(;!this.eof;)this.readBlock();n=this.bufferLength}this.pos=n;const a=this.buffer.subarray(r,n);return!t||a instanceof Uint8ClampedArray?a:new Uint8ClampedArray(a)},peekByte:function(){var e=this.getByte();return-1!==e&&this.pos--,e},peekBytes(e,t=!1){var n=this.getBytes(e,t);return this.pos-=n.length,n},makeSubStream:function(e,t,n){for(var r=e+t;this.bufferLength<=r&&!this.eof;)this.readBlock();return new o(this.buffer,e,t,n)},getByteRange(e,t){(0,r.unreachable)("Should not call DecodeStream.getByteRange")},skip:function(e){e||(e=1),this.pos+=e},reset:function(){this.pos=0},getBaseStreams:function(){return this.str&&this.str.getBaseStreams?this.str.getBaseStreams():[]}},t}();t.DecodeStream=l;var c=function(){function e(e){this.streams=e;let t=0;for(let n=0,r=e.length;n<r;n++){const r=e[n];t+=r instanceof l?r._rawMinBufferLength:r.length}l.call(this,t)}return e.prototype=Object.create(l.prototype),e.prototype.readBlock=function(){var e=this.streams;if(0!==e.length){var t=e.shift().getBytes(),n=this.bufferLength,r=n+t.length;this.ensureBuffer(r).set(t,n),this.bufferLength=r}else this.eof=!0},e.prototype.getBaseStreams=function(){for(var e=[],t=0,n=this.streams.length;t<n;t++){var r=this.streams[t];r.getBaseStreams&&e.push(...r.getBaseStreams())}return e},e}();t.StreamsSequenceStream=c;var u=function(){var e=new Int32Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),t=new Int32Array([3,4,5,6,7,8,9,10,65547,65549,65551,65553,131091,131095,131099,131103,196643,196651,196659,196667,262211,262227,262243,262259,327811,327843,327875,327907,258,258,258]),n=new Int32Array([1,2,3,4,65541,65543,131081,131085,196625,196633,262177,262193,327745,327777,393345,393409,459009,459137,524801,525057,590849,591361,657409,658433,724993,727041,794625,798721,868353,876545]),i=[new Int32Array([459008,524368,524304,524568,459024,524400,524336,590016,459016,524384,524320,589984,524288,524416,524352,590048,459012,524376,524312,589968,459028,524408,524344,590032,459020,524392,524328,59e4,524296,524424,524360,590064,459010,524372,524308,524572,459026,524404,524340,590024,459018,524388,524324,589992,524292,524420,524356,590056,459014,524380,524316,589976,459030,524412,524348,590040,459022,524396,524332,590008,524300,524428,524364,590072,459009,524370,524306,524570,459025,524402,524338,590020,459017,524386,524322,589988,524290,524418,524354,590052,459013,524378,524314,589972,459029,524410,524346,590036,459021,524394,524330,590004,524298,524426,524362,590068,459011,524374,524310,524574,459027,524406,524342,590028,459019,524390,524326,589996,524294,524422,524358,590060,459015,524382,524318,589980,459031,524414,524350,590044,459023,524398,524334,590012,524302,524430,524366,590076,459008,524369,524305,524569,459024,524401,524337,590018,459016,524385,524321,589986,524289,524417,524353,590050,459012,524377,524313,589970,459028,524409,524345,590034,459020,524393,524329,590002,524297,524425,524361,590066,459010,524373,524309,524573,459026,524405,524341,590026,459018,524389,524325,589994,524293,524421,524357,590058,459014,524381,524317,589978,459030,524413,524349,590042,459022,524397,524333,590010,524301,524429,524365,590074,459009,524371,524307,524571,459025,524403,524339,590022,459017,524387,524323,589990,524291,524419,524355,590054,459013,524379,524315,589974,459029,524411,524347,590038,459021,524395,524331,590006,524299,524427,524363,590070,459011,524375,524311,524575,459027,524407,524343,590030,459019,524391,524327,589998,524295,524423,524359,590062,459015,524383,524319,589982,459031,524415,524351,590046,459023,524399,524335,590014,524303,524431,524367,590078,459008,524368,524304,524568,459024,524400,524336,590017,459016,524384,524320,589985,524288,524416,524352,590049,459012,524376,524312,589969,459028,524408,524344,590033,459020,524392,524328,590001,524296,524424,524360,590065,459010,524372,524308,524572,459026,524404,524340,590025,459018,524388,524324,589993,524292,524420,524356,590057,459014,524380,524316,589977,459030,524412,524348,590041,459022,524396,524332,590009,524300,524428,524364,590073,459009,524370,524306,524570,459025,524402,524338,590021,459017,524386,524322,589989,524290,524418,524354,590053,459013,524378,524314,589973,459029,524410,524346,590037,459021,524394,524330,590005,524298,524426,524362,590069,459011,524374,524310,524574,459027,524406,524342,590029,459019,524390,524326,589997,524294,524422,524358,590061,459015,524382,524318,589981,459031,524414,524350,590045,459023,524398,524334,590013,524302,524430,524366,590077,459008,524369,524305,524569,459024,524401,524337,590019,459016,524385,524321,589987,524289,524417,524353,590051,459012,524377,524313,589971,459028,524409,524345,590035,459020,524393,524329,590003,524297,524425,524361,590067,459010,524373,524309,524573,459026,524405,524341,590027,459018,524389,524325,589995,524293,524421,524357,590059,459014,524381,524317,589979,459030,524413,524349,590043,459022,524397,524333,590011,524301,524429,524365,590075,459009,524371,524307,524571,459025,524403,524339,590023,459017,524387,524323,589991,524291,524419,524355,590055,459013,524379,524315,589975,459029,524411,524347,590039,459021,524395,524331,590007,524299,524427,524363,590071,459011,524375,524311,524575,459027,524407,524343,590031,459019,524391,524327,589999,524295,524423,524359,590063,459015,524383,524319,589983,459031,524415,524351,590047,459023,524399,524335,590015,524303,524431,524367,590079]),9],a=[new Int32Array([327680,327696,327688,327704,327684,327700,327692,327708,327682,327698,327690,327706,327686,327702,327694,0,327681,327697,327689,327705,327685,327701,327693,327709,327683,327699,327691,327707,327687,327703,327695,0]),5];function o(e,t){this.str=e,this.dict=e.dict;var n=e.getByte(),i=e.getByte();if(-1===n||-1===i)throw new r.FormatError(`Invalid header in flate stream: ${n}, ${i}`);if(8!=(15&n))throw new r.FormatError(`Unknown compression method in flate stream: ${n}, ${i}`);if(((n<<8)+i)%31!=0)throw new r.FormatError(`Bad FCHECK in flate stream: ${n}, ${i}`);if(32&i)throw new r.FormatError(`FDICT bit set in flate stream: ${n}, ${i}`);this.codeSize=0,this.codeBuf=0,l.call(this,t)}return o.prototype=Object.create(l.prototype),o.prototype.getBits=function(e){for(var t,n=this.str,i=this.codeSize,a=this.codeBuf;i<e;){if(-1===(t=n.getByte()))throw new r.FormatError("Bad encoding in flate stream");a|=t<<i,i+=8}return t=a&(1<<e)-1,this.codeBuf=a>>e,this.codeSize=i-=e,t},o.prototype.getCode=function(e){for(var t,n=this.str,i=e[0],a=e[1],o=this.codeSize,s=this.codeBuf;o<a&&-1!==(t=n.getByte());)s|=t<<o,o+=8;var l=i[s&(1<<a)-1],c=l>>16,u=65535&l;if(c<1||o<c)throw new r.FormatError("Bad encoding in flate stream");return this.codeBuf=s>>c,this.codeSize=o-c,u},o.prototype.generateHuffmanTable=function(e){var t,n=e.length,r=0;for(t=0;t<n;++t)e[t]>r&&(r=e[t]);for(var i=1<<r,a=new Int32Array(i),o=1,s=0,l=2;o<=r;++o,s<<=1,l<<=1)for(var c=0;c<n;++c)if(e[c]===o){var u=0,h=s;for(t=0;t<o;++t)u=u<<1|1&h,h>>=1;for(t=u;t<i;t+=l)a[t]=o<<16|c;++s}return[a,r]},o.prototype.readBlock=function(){var o,s,l=this.str,c=this.getBits(3);if(1&c&&(this.eof=!0),0!==(c>>=1)){var u,h;if(1===c)u=i,h=a;else{if(2!==c)throw new r.FormatError("Unknown block type in flate stream");var d,f=this.getBits(5)+257,p=this.getBits(5)+1,A=this.getBits(4)+4,g=new Uint8Array(e.length);for(d=0;d<A;++d)g[e[d]]=this.getBits(3);var m=this.generateHuffmanTable(g);s=0,d=0;for(var v,y,b,w=f+p,x=new Uint8Array(w);d<w;){var _=this.getCode(m);if(16===_)v=2,y=3,b=s;else if(17===_)v=3,y=3,b=s=0;else{if(18!==_){x[d++]=s=_;continue}v=7,y=11,b=s=0}for(var C=this.getBits(v)+y;C-- >0;)x[d++]=b}u=this.generateHuffmanTable(x.subarray(0,f)),h=this.generateHuffmanTable(x.subarray(f,w))}for(var S=(o=this.buffer)?o.length:0,k=this.bufferLength;;){var B=this.getCode(u);if(B<256)k+1>=S&&(S=(o=this.ensureBuffer(k+1)).length),o[k++]=B;else{if(256===B)return void(this.bufferLength=k);var E=(B=t[B-=257])>>16;E>0&&(E=this.getBits(E)),s=(65535&B)+E,B=this.getCode(h),(E=(B=n[B])>>16)>0&&(E=this.getBits(E));var T=(65535&B)+E;k+s>=S&&(S=(o=this.ensureBuffer(k+s)).length);for(var I=0;I<s;++I,++k)o[k]=o[k-T]}}}else{var M;if(-1===(M=l.getByte()))throw new r.FormatError("Bad block header in flate stream");var F=M;if(-1===(M=l.getByte()))throw new r.FormatError("Bad block header in flate stream");if(F|=M<<8,-1===(M=l.getByte()))throw new r.FormatError("Bad block header in flate stream");var D=M;if(-1===(M=l.getByte()))throw new r.FormatError("Bad block header in flate stream");if((D|=M<<8)!==(65535&~F)&&(0!==F||0!==D))throw new r.FormatError("Bad uncompressed block length in flate stream");this.codeBuf=0,this.codeSize=0;const e=this.bufferLength,t=e+F;if(o=this.ensureBuffer(t),this.bufferLength=t,0===F)-1===l.peekByte()&&(this.eof=!0);else{const t=l.getBytes(F);o.set(t,e),t.length<F&&(this.eof=!0)}}},o}();t.FlateStream=u;var h=function(){function e(e,t,n){if(!(0,i.isDict)(n))return e;var a=this.predictor=n.get("Predictor")||1;if(a<=1)return e;if(2!==a&&(a<10||a>15))throw new r.FormatError(`Unsupported predictor: ${a}`);this.readBlock=2===a?this.readBlockTiff:this.readBlockPng,this.str=e,this.dict=e.dict;var o=this.colors=n.get("Colors")||1,s=this.bits=n.get("BitsPerComponent")||8,c=this.columns=n.get("Columns")||1;return this.pixBytes=o*s+7>>3,this.rowBytes=c*o*s+7>>3,l.call(this,t),this}return e.prototype=Object.create(l.prototype),e.prototype.readBlockTiff=function(){var e=this.rowBytes,t=this.bufferLength,n=this.ensureBuffer(t+e),r=this.bits,i=this.colors,a=this.str.getBytes(e);if(this.eof=!a.length,!this.eof){var o,s=0,l=0,c=0,u=0,h=t;if(1===r&&1===i)for(o=0;o<e;++o){var d=a[o]^s;d^=d>>1,d^=d>>2,s=(1&(d^=d>>4))<<7,n[h++]=d}else if(8===r){for(o=0;o<i;++o)n[h++]=a[o];for(;o<e;++o)n[h]=n[h-i]+a[o],h++}else if(16===r){var f=2*i;for(o=0;o<f;++o)n[h++]=a[o];for(;o<e;o+=2){var p=((255&a[o])<<8)+(255&a[o+1])+((255&n[h-f])<<8)+(255&n[h-f+1]);n[h++]=p>>8&255,n[h++]=255&p}}else{var A=new Uint8Array(i+1),g=(1<<r)-1,m=0,v=t,y=this.columns;for(o=0;o<y;++o)for(var b=0;b<i;++b)c<r&&(s=s<<8|255&a[m++],c+=8),A[b]=A[b]+(s>>c-r)&g,c-=r,l=l<<r|A[b],(u+=r)>=8&&(n[v++]=l>>u-8&255,u-=8);u>0&&(n[v++]=(l<<8-u)+(s&(1<<8-u)-1))}this.bufferLength+=e}},e.prototype.readBlockPng=function(){var e=this.rowBytes,t=this.pixBytes,n=this.str.getByte(),i=this.str.getBytes(e);if(this.eof=!i.length,!this.eof){var a=this.bufferLength,o=this.ensureBuffer(a+e),s=o.subarray(a-e,a);0===s.length&&(s=new Uint8Array(e));var l,c,u,h=a;switch(n){case 0:for(l=0;l<e;++l)o[h++]=i[l];break;case 1:for(l=0;l<t;++l)o[h++]=i[l];for(;l<e;++l)o[h]=o[h-t]+i[l]&255,h++;break;case 2:for(l=0;l<e;++l)o[h++]=s[l]+i[l]&255;break;case 3:for(l=0;l<t;++l)o[h++]=(s[l]>>1)+i[l];for(;l<e;++l)o[h]=(s[l]+o[h-t]>>1)+i[l]&255,h++;break;case 4:for(l=0;l<t;++l)c=s[l],u=i[l],o[h++]=c+u;for(;l<e;++l){c=s[l];var d=s[l-t],f=o[h-t],p=f+c-d,A=p-f;A<0&&(A=-A);var g=p-c;g<0&&(g=-g);var m=p-d;m<0&&(m=-m),u=i[l],o[h++]=A<=g&&A<=m?f+u:g<=m?c+u:d+u}break;default:throw new r.FormatError(`Unsupported predictor: ${n}`)}this.bufferLength+=e}},e}();t.PredictorStream=h;var d=function(){function e(e,t,n){this.str=e,this.dict=e.dict,this.decrypt=n,this.nextChunk=null,this.initialized=!1,l.call(this,t)}return e.prototype=Object.create(l.prototype),e.prototype.readBlock=function(){var e;if(this.initialized?e=this.nextChunk:(e=this.str.getBytes(512),this.initialized=!0),e&&0!==e.length){this.nextChunk=this.str.getBytes(512);var t=this.nextChunk&&this.nextChunk.length>0;e=(0,this.decrypt)(e,!t);var n,r=this.bufferLength,i=e.length,a=this.ensureBuffer(r+i);for(n=0;n<i;n++)a[r++]=e[n];this.bufferLength=r}else this.eof=!0},e}();t.DecryptStream=d;var f=function(){function e(e,t){this.str=e,this.dict=e.dict,this.input=new Uint8Array(5),t&&(t*=.8),l.call(this,t)}return e.prototype=Object.create(l.prototype),e.prototype.readBlock=function(){for(var e=this.str,t=e.getByte();(0,a.isWhiteSpace)(t);)t=e.getByte();if(-1!==t&&126!==t){var n,r,i=this.bufferLength;if(122===t){for(n=this.ensureBuffer(i+4),r=0;r<4;++r)n[i+r]=0;this.bufferLength+=4}else{var o=this.input;for(o[0]=t,r=1;r<5;++r){for(t=e.getByte();(0,a.isWhiteSpace)(t);)t=e.getByte();if(o[r]=t,-1===t||126===t)break}if(n=this.ensureBuffer(i+r-1),this.bufferLength+=r-1,r<5){for(;r<5;++r)o[r]=117;this.eof=!0}var s=0;for(r=0;r<5;++r)s=85*s+(o[r]-33);for(r=3;r>=0;--r)n[i+r]=255&s,s>>=8}}else this.eof=!0},e}();t.Ascii85Stream=f;var p=function(){function e(e,t){this.str=e,this.dict=e.dict,this.firstDigit=-1,t&&(t*=.5),l.call(this,t)}return e.prototype=Object.create(l.prototype),e.prototype.readBlock=function(){var e=this.str.getBytes(8e3);if(e.length){for(var t=e.length+1>>1,n=this.ensureBuffer(this.bufferLength+t),r=this.bufferLength,i=this.firstDigit,a=0,o=e.length;a<o;a++){var s,l=e[a];if(l>=48&&l<=57)s=15&l;else{if(!(l>=65&&l<=70||l>=97&&l<=102)){if(62===l){this.eof=!0;break}continue}s=9+(15&l)}i<0?i=s:(n[r++]=i<<4|s,i=-1)}i>=0&&this.eof&&(n[r++]=i<<4,i=-1),this.firstDigit=i,this.bufferLength=r}else this.eof=!0},e}();t.AsciiHexStream=p;var A=function(){function e(e,t){this.str=e,this.dict=e.dict,l.call(this,t)}return e.prototype=Object.create(l.prototype),e.prototype.readBlock=function(){var e=this.str.getBytes(2);if(!e||e.length<2||128===e[0])this.eof=!0;else{var t,n=this.bufferLength,r=e[0];if(r<128){if((t=this.ensureBuffer(n+r+1))[n++]=e[1],r>0){var i=this.str.getBytes(r);t.set(i,n),n+=r}}else{r=257-r;var a=e[1];t=this.ensureBuffer(n+r+1);for(var o=0;o<r;o++)t[n++]=a}this.bufferLength=n}},e}();t.RunLengthStream=A;var g=function(){function e(e,t,n){this.str=e,this.dict=e.dict,this.cachedData=0,this.bitsCached=0;for(var r={earlyChange:n,codeLength:9,nextCode:258,dictionaryValues:new Uint8Array(4096),dictionaryLengths:new Uint16Array(4096),dictionaryPrevCodes:new Uint16Array(4096),currentSequence:new Uint8Array(4096),currentSequenceLength:0},i=0;i<256;++i)r.dictionaryValues[i]=i,r.dictionaryLengths[i]=1;this.lzwState=r,l.call(this,t)}return e.prototype=Object.create(l.prototype),e.prototype.readBits=function(e){for(var t=this.bitsCached,n=this.cachedData;t<e;){var r=this.str.getByte();if(-1===r)return this.eof=!0,null;n=n<<8|r,t+=8}return this.bitsCached=t-=e,this.cachedData=n,this.lastCode=null,n>>>t&(1<<e)-1},e.prototype.readBlock=function(){var e,t,n,r=1024,i=this.lzwState;if(i){var a=i.earlyChange,o=i.nextCode,s=i.dictionaryValues,l=i.dictionaryLengths,c=i.dictionaryPrevCodes,u=i.codeLength,h=i.prevCode,d=i.currentSequence,f=i.currentSequenceLength,p=0,A=this.bufferLength,g=this.ensureBuffer(this.bufferLength+r);for(e=0;e<512;e++){var m=this.readBits(u),v=f>0;if(m<256)d[0]=m,f=1;else{if(!(m>=258)){if(256===m){u=9,o=258,f=0;continue}this.eof=!0,delete this.lzwState;break}if(m<o)for(t=(f=l[m])-1,n=m;t>=0;t--)d[t]=s[n],n=c[n];else d[f++]=d[0]}if(v&&(c[o]=h,l[o]=l[h]+1,s[o]=d[0],u=++o+a&o+a-1?u:0|Math.min(Math.log(o+a)/.6931471805599453+1,12)),h=m,r<(p+=f)){do{r+=512}while(r<p);g=this.ensureBuffer(this.bufferLength+r)}for(t=0;t<f;t++)g[A++]=d[t]}i.nextCode=o,i.codeLength=u,i.prevCode=h,i.currentSequenceLength=f,this.bufferLength=A}},e}();t.LZWStream=g;var m=function(){function e(){o.call(this,new Uint8Array(0))}return e.prototype=o.prototype,e}();t.NullStream=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CCITTFaxStream=void 0;var r=n(5),i=n(14),a=n(12),o=function(){function e(e,t,n){this.str=e,this.dict=e.dict,(0,r.isDict)(n)||(n=r.Dict.empty);const o={next:()=>e.getByte()};this.ccittFaxDecoder=new i.CCITTFaxDecoder(o,{K:n.get("K"),EndOfLine:n.get("EndOfLine"),EncodedByteAlign:n.get("EncodedByteAlign"),Columns:n.get("Columns"),Rows:n.get("Rows"),EndOfBlock:n.get("EndOfBlock"),BlackIs1:n.get("BlackIs1")}),a.DecodeStream.call(this,t)}return e.prototype=Object.create(a.DecodeStream.prototype),e.prototype.readBlock=function(){for(;!this.eof;){const e=this.ccittFaxDecoder.readNextChar();if(-1===e)return void(this.eof=!0);this.ensureBuffer(this.bufferLength+1),this.buffer[this.bufferLength++]=e}},e}();t.CCITTFaxStream=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CCITTFaxDecoder=void 0;var r=n(2);const i=function(){const e=[[-1,-1],[-1,-1],[7,8],[7,7],[6,6],[6,6],[6,5],[6,5],[4,0],[4,0],[4,0],[4,0],[4,0],[4,0],[4,0],[4,0],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2]],t=[[-1,-1],[12,-2],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[11,1792],[11,1792],[12,1984],[12,2048],[12,2112],[12,2176],[12,2240],[12,2304],[11,1856],[11,1856],[11,1920],[11,1920],[12,2368],[12,2432],[12,2496],[12,2560]],n=[[-1,-1],[-1,-1],[-1,-1],[-1,-1],[8,29],[8,29],[8,30],[8,30],[8,45],[8,45],[8,46],[8,46],[7,22],[7,22],[7,22],[7,22],[7,23],[7,23],[7,23],[7,23],[8,47],[8,47],[8,48],[8,48],[6,13],[6,13],[6,13],[6,13],[6,13],[6,13],[6,13],[6,13],[7,20],[7,20],[7,20],[7,20],[8,33],[8,33],[8,34],[8,34],[8,35],[8,35],[8,36],[8,36],[8,37],[8,37],[8,38],[8,38],[7,19],[7,19],[7,19],[7,19],[8,31],[8,31],[8,32],[8,32],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,12],[6,12],[6,12],[6,12],[6,12],[6,12],[6,12],[6,12],[8,53],[8,53],[8,54],[8,54],[7,26],[7,26],[7,26],[7,26],[8,39],[8,39],[8,40],[8,40],[8,41],[8,41],[8,42],[8,42],[8,43],[8,43],[8,44],[8,44],[7,21],[7,21],[7,21],[7,21],[7,28],[7,28],[7,28],[7,28],[8,61],[8,61],[8,62],[8,62],[8,63],[8,63],[8,0],[8,0],[8,320],[8,320],[8,384],[8,384],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[7,27],[7,27],[7,27],[7,27],[8,59],[8,59],[8,60],[8,60],[9,1472],[9,1536],[9,1600],[9,1728],[7,18],[7,18],[7,18],[7,18],[7,24],[7,24],[7,24],[7,24],[8,49],[8,49],[8,50],[8,50],[8,51],[8,51],[8,52],[8,52],[7,25],[7,25],[7,25],[7,25],[8,55],[8,55],[8,56],[8,56],[8,57],[8,57],[8,58],[8,58],[6,192],[6,192],[6,192],[6,192],[6,192],[6,192],[6,192],[6,192],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[8,448],[8,448],[8,512],[8,512],[9,704],[9,768],[8,640],[8,640],[8,576],[8,576],[9,832],[9,896],[9,960],[9,1024],[9,1088],[9,1152],[9,1216],[9,1280],[9,1344],[9,1408],[7,256],[7,256],[7,256],[7,256],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[6,16],[6,16],[6,16],[6,16],[6,16],[6,16],[6,16],[6,16],[6,17],[6,17],[6,17],[6,17],[6,17],[6,17],[6,17],[6,17],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[6,14],[6,14],[6,14],[6,14],[6,14],[6,14],[6,14],[6,14],[6,15],[6,15],[6,15],[6,15],[6,15],[6,15],[6,15],[6,15],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7]],i=[[-1,-1],[-1,-1],[12,-2],[12,-2],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[11,1792],[11,1792],[11,1792],[11,1792],[12,1984],[12,1984],[12,2048],[12,2048],[12,2112],[12,2112],[12,2176],[12,2176],[12,2240],[12,2240],[12,2304],[12,2304],[11,1856],[11,1856],[11,1856],[11,1856],[11,1920],[11,1920],[11,1920],[11,1920],[12,2368],[12,2368],[12,2432],[12,2432],[12,2496],[12,2496],[12,2560],[12,2560],[10,18],[10,18],[10,18],[10,18],[10,18],[10,18],[10,18],[10,18],[12,52],[12,52],[13,640],[13,704],[13,768],[13,832],[12,55],[12,55],[12,56],[12,56],[13,1280],[13,1344],[13,1408],[13,1472],[12,59],[12,59],[12,60],[12,60],[13,1536],[13,1600],[11,24],[11,24],[11,24],[11,24],[11,25],[11,25],[11,25],[11,25],[13,1664],[13,1728],[12,320],[12,320],[12,384],[12,384],[12,448],[12,448],[13,512],[13,576],[12,53],[12,53],[12,54],[12,54],[13,896],[13,960],[13,1024],[13,1088],[13,1152],[13,1216],[10,64],[10,64],[10,64],[10,64],[10,64],[10,64],[10,64],[10,64]],a=[[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[11,23],[11,23],[12,50],[12,51],[12,44],[12,45],[12,46],[12,47],[12,57],[12,58],[12,61],[12,256],[10,16],[10,16],[10,16],[10,16],[10,17],[10,17],[10,17],[10,17],[12,48],[12,49],[12,62],[12,63],[12,30],[12,31],[12,32],[12,33],[12,40],[12,41],[11,22],[11,22],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[9,15],[9,15],[9,15],[9,15],[9,15],[9,15],[9,15],[9,15],[12,128],[12,192],[12,26],[12,27],[12,28],[12,29],[11,19],[11,19],[11,20],[11,20],[12,34],[12,35],[12,36],[12,37],[12,38],[12,39],[11,21],[11,21],[12,42],[12,43],[10,0],[10,0],[10,0],[10,0],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12]],o=[[-1,-1],[-1,-1],[-1,-1],[-1,-1],[6,9],[6,8],[5,7],[5,7],[4,6],[4,6],[4,6],[4,6],[4,5],[4,5],[4,5],[4,5],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2]];function s(e,t={}){if(!e||"function"!=typeof e.next)throw new Error('CCITTFaxDecoder - invalid "source" parameter.');this.source=e,this.eof=!1,this.encoding=t.K||0,this.eoline=t.EndOfLine||!1,this.byteAlign=t.EncodedByteAlign||!1,this.columns=t.Columns||1728,this.rows=t.Rows||0;let n,r=t.EndOfBlock;for(null!==r&&void 0!==r||(r=!0),this.eoblock=r,this.black=t.BlackIs1||!1,this.codingLine=new Uint32Array(this.columns+1),this.refLine=new Uint32Array(this.columns+2),this.codingLine[0]=this.columns,this.codingPos=0,this.row=0,this.nextLine2D=this.encoding<0,this.inputBits=0,this.inputBuf=0,this.outputBits=0,this.rowsDone=!1;0===(n=this._lookBits(12));)this._eatBits(1);1===n&&this._eatBits(12),this.encoding>0&&(this.nextLine2D=!this._lookBits(1),this._eatBits(1))}return s.prototype={readNextChar(){if(this.eof)return-1;const e=this.refLine,t=this.codingLine,n=this.columns;let i,a,o,s,l;if(0===this.outputBits){if(this.rowsDone&&(this.eof=!0),this.eof)return-1;let o,l,c;if(this.err=!1,this.nextLine2D){for(s=0;t[s]<n;++s)e[s]=t[s];for(e[s++]=n,e[s]=n,t[0]=0,this.codingPos=0,i=0,a=0;t[this.codingPos]<n;)switch(o=this._getTwoDimCode()){case 0:this._addPixels(e[i+1],a),e[i+1]<n&&(i+=2);break;case 1:if(o=l=0,a){do{o+=c=this._getBlackCode()}while(c>=64);do{l+=c=this._getWhiteCode()}while(c>=64)}else{do{o+=c=this._getWhiteCode()}while(c>=64);do{l+=c=this._getBlackCode()}while(c>=64)}for(this._addPixels(t[this.codingPos]+o,a),t[this.codingPos]<n&&this._addPixels(t[this.codingPos]+l,1^a);e[i]<=t[this.codingPos]&&e[i]<n;)i+=2;break;case 7:if(this._addPixels(e[i]+3,a),a^=1,t[this.codingPos]<n)for(++i;e[i]<=t[this.codingPos]&&e[i]<n;)i+=2;break;case 5:if(this._addPixels(e[i]+2,a),a^=1,t[this.codingPos]<n)for(++i;e[i]<=t[this.codingPos]&&e[i]<n;)i+=2;break;case 3:if(this._addPixels(e[i]+1,a),a^=1,t[this.codingPos]<n)for(++i;e[i]<=t[this.codingPos]&&e[i]<n;)i+=2;break;case 2:if(this._addPixels(e[i],a),a^=1,t[this.codingPos]<n)for(++i;e[i]<=t[this.codingPos]&&e[i]<n;)i+=2;break;case 8:if(this._addPixelsNeg(e[i]-3,a),a^=1,t[this.codingPos]<n)for(i>0?--i:++i;e[i]<=t[this.codingPos]&&e[i]<n;)i+=2;break;case 6:if(this._addPixelsNeg(e[i]-2,a),a^=1,t[this.codingPos]<n)for(i>0?--i:++i;e[i]<=t[this.codingPos]&&e[i]<n;)i+=2;break;case 4:if(this._addPixelsNeg(e[i]-1,a),a^=1,t[this.codingPos]<n)for(i>0?--i:++i;e[i]<=t[this.codingPos]&&e[i]<n;)i+=2;break;case-1:this._addPixels(n,0),this.eof=!0;break;default:(0,r.info)("bad 2d code"),this._addPixels(n,0),this.err=!0}}else for(t[0]=0,this.codingPos=0,a=0;t[this.codingPos]<n;){if(o=0,a)do{o+=c=this._getBlackCode()}while(c>=64);else do{o+=c=this._getWhiteCode()}while(c>=64);this._addPixels(t[this.codingPos]+o,a),a^=1}let u=!1;if(this.byteAlign&&(this.inputBits&=-8),this.eoblock||this.row!==this.rows-1){if(o=this._lookBits(12),this.eoline)for(;-1!==o&&1!==o;)this._eatBits(1),o=this._lookBits(12);else for(;0===o;)this._eatBits(1),o=this._lookBits(12);1===o?(this._eatBits(12),u=!0):-1===o&&(this.eof=!0)}else this.rowsDone=!0;if(!this.eof&&this.encoding>0&&!this.rowsDone&&(this.nextLine2D=!this._lookBits(1),this._eatBits(1)),this.eoblock&&u&&this.byteAlign){if(1===(o=this._lookBits(12))){if(this._eatBits(12),this.encoding>0&&(this._lookBits(1),this._eatBits(1)),this.encoding>=0)for(s=0;s<4;++s)1!==(o=this._lookBits(12))&&(0,r.info)("bad rtc code: "+o),this._eatBits(12),this.encoding>0&&(this._lookBits(1),this._eatBits(1));this.eof=!0}}else if(this.err&&this.eoline){for(;;){if(-1===(o=this._lookBits(13)))return this.eof=!0,-1;if(o>>1==1)break;this._eatBits(1)}this._eatBits(12),this.encoding>0&&(this._eatBits(1),this.nextLine2D=!(1&o))}t[0]>0?this.outputBits=t[this.codingPos=0]:this.outputBits=t[this.codingPos=1],this.row++}if(this.outputBits>=8)l=1&this.codingPos?0:255,this.outputBits-=8,0===this.outputBits&&t[this.codingPos]<n&&(this.codingPos++,this.outputBits=t[this.codingPos]-t[this.codingPos-1]);else{o=8,l=0;do{this.outputBits>o?(l<<=o,1&this.codingPos||(l|=255>>8-o),this.outputBits-=o,o=0):(l<<=this.outputBits,1&this.codingPos||(l|=255>>8-this.outputBits),o-=this.outputBits,this.outputBits=0,t[this.codingPos]<n?(this.codingPos++,this.outputBits=t[this.codingPos]-t[this.codingPos-1]):o>0&&(l<<=o,o=0))}while(o)}return this.black&&(l^=255),l},_addPixels(e,t){const n=this.codingLine;let i=this.codingPos;e>n[i]&&(e>this.columns&&((0,r.info)("row is wrong length"),this.err=!0,e=this.columns),1&i^t&&++i,n[i]=e),this.codingPos=i},_addPixelsNeg(e,t){const n=this.codingLine;let i=this.codingPos;if(e>n[i])e>this.columns&&((0,r.info)("row is wrong length"),this.err=!0,e=this.columns),1&i^t&&++i,n[i]=e;else if(e<n[i]){for(e<0&&((0,r.info)("invalid code"),this.err=!0,e=0);i>0&&e<n[i-1];)--i;n[i]=e}this.codingPos=i},_findTableCode(e,t,n,r){const i=r||0;for(let r=e;r<=t;++r){let e=this._lookBits(r);if(-1===e)return[!0,1,!1];if(r<t&&(e<<=t-r),!i||e>=i){const t=n[e-i];if(t[0]===r)return this._eatBits(r),[!0,t[1],!0]}}return[!1,0,!1]},_getTwoDimCode(){let t,n=0;if(this.eoblock){if(n=this._lookBits(7),(t=e[n])&&t[0]>0)return this._eatBits(t[0]),t[1]}else{const t=this._findTableCode(1,7,e);if(t[0]&&t[2])return t[1]}return(0,r.info)("Bad two dim code"),-1},_getWhiteCode(){let e,i=0;if(this.eoblock){if(-1===(i=this._lookBits(12)))return 1;if((e=i>>5==0?t[i]:n[i>>3])[0]>0)return this._eatBits(e[0]),e[1]}else{let e=this._findTableCode(1,9,n);if(e[0])return e[1];if((e=this._findTableCode(11,12,t))[0])return e[1]}return(0,r.info)("bad white code"),this._eatBits(1),1},_getBlackCode(){let e,t;if(this.eoblock){if(-1===(e=this._lookBits(13)))return 1;if((t=e>>7==0?i[e]:e>>9==0&&e>>7!=0?a[(e>>1)-64]:o[e>>7])[0]>0)return this._eatBits(t[0]),t[1]}else{let e=this._findTableCode(2,6,o);if(e[0])return e[1];if((e=this._findTableCode(7,12,a,64))[0])return e[1];if((e=this._findTableCode(10,13,i))[0])return e[1]}return(0,r.info)("bad black code"),this._eatBits(1),1},_lookBits(e){let t;for(;this.inputBits<e;){if(-1===(t=this.source.next()))return 0===this.inputBits?-1:this.inputBuf<<e-this.inputBits&65535>>16-e;this.inputBuf=this.inputBuf<<8|t,this.inputBits+=8}return this.inputBuf>>this.inputBits-e&65535>>16-e},_eatBits(e){(this.inputBits-=e)<0&&(this.inputBits=0)}},s}();t.CCITTFaxDecoder=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Jbig2Stream=void 0;var r=n(5),i=n(12),a=n(16),o=n(2);const s=function(){function e(e,t,n,r){this.stream=e,this.maybeLength=t,this.dict=n,this.params=r,i.DecodeStream.call(this,t)}return e.prototype=Object.create(i.DecodeStream.prototype),Object.defineProperty(e.prototype,"bytes",{get(){return(0,o.shadow)(this,"bytes",this.stream.getBytes(this.maybeLength))},configurable:!0}),e.prototype.ensureBuffer=function(e){},e.prototype.readBlock=function(){if(this.eof)return;const e=new a.Jbig2Image,t=[];if((0,r.isDict)(this.params)){const e=this.params.get("JBIG2Globals");if((0,r.isStream)(e)){const n=e.getBytes();t.push({data:n,start:0,end:n.length})}}t.push({data:this.bytes,start:0,end:this.bytes.length});const n=e.parseChunks(t),i=n.length;for(let e=0;e<i;e++)n[e]^=255;this.buffer=n,this.bufferLength=i,this.eof=!0},e}();t.Jbig2Stream=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Jbig2Image=void 0;var r=n(2),i=n(8),a=n(17),o=n(14);class s extends r.BaseException{constructor(e){super(`JBIG2 error: ${e}`)}}var l=function(){function e(){}function t(e,t,n){this.data=e,this.start=t,this.end=n}function n(e,t,n){var r=e.getContexts(t),i=1;function a(e){for(var t=0,a=0;a<e;a++){var o=n.readBit(r,i);i=i<256?i<<1|o:511&(i<<1|o)|256,t=t<<1|o}return t>>>0}var o=a(1),s=a(1)?a(1)?a(1)?a(1)?a(1)?a(32)+4436:a(12)+340:a(8)+84:a(6)+20:a(4)+4:a(2);return 0===o?s:s>0?-s:null}function l(e,t,n){for(var r=e.getContexts("IAID"),i=1,a=0;a<n;a++){i=i<<1|t.readBit(r,i)}return n<31?i&(1<<n)-1:2147483647&i}e.prototype={getContexts(e){return e in this?this[e]:this[e]=new Int8Array(65536)}},t.prototype={get decoder(){var e=new a.ArithmeticDecoder(this.data,this.start,this.end);return(0,r.shadow)(this,"decoder",e)},get contextCache(){var t=new e;return(0,r.shadow)(this,"contextCache",t)}};var c=["SymbolDictionary",null,null,null,"IntermediateTextRegion",null,"ImmediateTextRegion","ImmediateLosslessTextRegion",null,null,null,null,null,null,null,null,"PatternDictionary",null,null,null,"IntermediateHalftoneRegion",null,"ImmediateHalftoneRegion","ImmediateLosslessHalftoneRegion",null,null,null,null,null,null,null,null,null,null,null,null,"IntermediateGenericRegion",null,"ImmediateGenericRegion","ImmediateLosslessGenericRegion","IntermediateGenericRefinementRegion",null,"ImmediateGenericRefinementRegion","ImmediateLosslessGenericRefinementRegion",null,null,null,null,"PageInformation","EndOfPage","EndOfStripe","EndOfFile","Profiles","Tables",null,null,null,null,null,null,null,null,"Extension"],u=[[{x:-1,y:-2},{x:0,y:-2},{x:1,y:-2},{x:-2,y:-1},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:2,y:-1},{x:-4,y:0},{x:-3,y:0},{x:-2,y:0},{x:-1,y:0}],[{x:-1,y:-2},{x:0,y:-2},{x:1,y:-2},{x:2,y:-2},{x:-2,y:-1},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:2,y:-1},{x:-3,y:0},{x:-2,y:0},{x:-1,y:0}],[{x:-1,y:-2},{x:0,y:-2},{x:1,y:-2},{x:-2,y:-1},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:-2,y:0},{x:-1,y:0}],[{x:-3,y:-1},{x:-2,y:-1},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:-4,y:0},{x:-3,y:0},{x:-2,y:0},{x:-1,y:0}]],h=[{coding:[{x:0,y:-1},{x:1,y:-1},{x:-1,y:0}],reference:[{x:0,y:-1},{x:1,y:-1},{x:-1,y:0},{x:0,y:0},{x:1,y:0},{x:-1,y:1},{x:0,y:1},{x:1,y:1}]},{coding:[{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:-1,y:0}],reference:[{x:0,y:-1},{x:-1,y:0},{x:0,y:0},{x:1,y:0},{x:0,y:1},{x:1,y:1}]}],d=[39717,1941,229,405],f=[32,8];function p(e,t,n,r,i,a,o,s){if(e){return F(new T(s.data,s.start,s.end),t,n,!1)}if(0===r&&!a&&!i&&4===o.length&&3===o[0].x&&-1===o[0].y&&-3===o[1].x&&-1===o[1].y&&2===o[2].x&&-2===o[2].y&&-2===o[3].x&&-2===o[3].y)return function(e,t,n){var r,i,a,o,s,l,c,u=n.decoder,h=n.contextCache.getContexts("GB"),d=[];for(i=0;i<t;i++)for(s=d[i]=new Uint8Array(e),l=i<1?s:d[i-1],r=(c=i<2?s:d[i-2])[0]<<13|c[1]<<12|c[2]<<11|l[0]<<7|l[1]<<6|l[2]<<5|l[3]<<4,a=0;a<e;a++)s[a]=o=u.readBit(h,r),r=(31735&r)<<1|(a+3<e?c[a+3]<<11:0)|(a+4<e?l[a+4]<<4:0)|o;return d}(t,n,s);var l=!!a,c=u[r].concat(o);c.sort(function(e,t){return e.y-t.y||e.x-t.x});var h,f,p=c.length,A=new Int8Array(p),g=new Int8Array(p),m=[],v=0,y=0,b=0,w=0;for(f=0;f<p;f++)A[f]=c[f].x,g[f]=c[f].y,y=Math.min(y,c[f].x),b=Math.max(b,c[f].x),w=Math.min(w,c[f].y),f<p-1&&c[f].y===c[f+1].y&&c[f].x===c[f+1].x-1?v|=1<<p-1-f:m.push(f);var x=m.length,_=new Int8Array(x),C=new Int8Array(x),S=new Uint16Array(x);for(h=0;h<x;h++)f=m[h],_[h]=c[f].x,C[h]=c[f].y,S[h]=1<<p-1-f;for(var k,B,E,I,M,D=-y,P=-w,O=t-b,L=d[r],R=new Uint8Array(t),N=[],U=s.decoder,H=s.contextCache.getContexts("GB"),j=0,Q=0,z=0;z<n;z++){if(i)if(j^=U.readBit(H,L)){N.push(R);continue}for(R=new Uint8Array(R),N.push(R),k=0;k<t;k++)if(l&&a[z][k])R[k]=0;else{if(k>=D&&k<O&&z>=P)for(Q=Q<<1&v,f=0;f<x;f++)B=z+C[f],E=k+_[f],(I=N[B][E])&&(Q|=I=S[f]);else for(Q=0,M=p-1,f=0;f<p;f++,M--)(E=k+A[f])>=0&&E<t&&(B=z+g[f])>=0&&(I=N[B][E])&&(Q|=I<<M);var V=U.readBit(H,Q);R[k]=V}}return N}function A(e,t,n,r,i,a,o,l,c){var u=h[n].coding;0===n&&(u=u.concat([l[0]]));var d,p=u.length,A=new Int32Array(p),g=new Int32Array(p);for(d=0;d<p;d++)A[d]=u[d].x,g[d]=u[d].y;var m=h[n].reference;0===n&&(m=m.concat([l[1]]));var v=m.length,y=new Int32Array(v),b=new Int32Array(v);for(d=0;d<v;d++)y[d]=m[d].x,b[d]=m[d].y;for(var w=r[0].length,x=r.length,_=f[n],C=[],S=c.decoder,k=c.contextCache.getContexts("GR"),B=0,E=0;E<t;E++){if(o)if(B^=S.readBit(k,_))throw new s("prediction is not supported");var T=new Uint8Array(e);C.push(T);for(var I=0;I<e;I++){var M,F,D=0;for(d=0;d<p;d++)M=E+g[d],F=I+A[d],M<0||F<0||F>=e?D<<=1:D=D<<1|C[M][F];for(d=0;d<v;d++)M=E+b[d]-a,F=I+y[d]-i,M<0||M>=x||F<0||F>=w?D<<=1:D=D<<1|r[M][F];var P=S.readBit(k,D);T[I]=P}}return C}function g(e,t,r,i,a,o,c,u,h,d,f,p,g,m,v,y,b,w,x){if(e&&t)throw new s("refinement with Huffman is not supported");var _,C,S=[];for(_=0;_<i;_++){if(C=new Uint8Array(r),a)for(var k=0;k<r;k++)C[k]=a;S.push(C)}var B=b.decoder,E=b.contextCache,T=e?-m.tableDeltaT.decode(x):-n(E,"IADT",B),I=0;for(_=0;_<o;){T+=e?m.tableDeltaT.decode(x):n(E,"IADT",B);for(var M=I+=e?m.tableFirstS.decode(x):n(E,"IAFS",B);;){let i=0;c>1&&(i=e?x.readBits(w):n(E,"IAIT",B));var F=c*T+i,D=e?m.symbolIDTable.decode(x):l(E,B,h),P=t&&(e?x.readBit():n(E,"IARI",B)),O=u[D],L=O[0].length,R=O.length;if(P){var N=n(E,"IARDW",B),U=n(E,"IARDH",B);O=A(L+=N,R+=U,v,O,(N>>1)+n(E,"IARDX",B),(U>>1)+n(E,"IARDY",B),!1,y,b)}var H,j,Q,z=F-(1&p?0:R-1),V=M-(2&p?L-1:0);if(d){for(H=0;H<R;H++)if(C=S[V+H]){Q=O[H];var G=Math.min(r-z,L);switch(g){case 0:for(j=0;j<G;j++)C[z+j]|=Q[j];break;case 2:for(j=0;j<G;j++)C[z+j]^=Q[j];break;default:throw new s(`operator ${g} is not supported`)}}M+=R-1}else{for(j=0;j<R;j++)if(C=S[z+j])switch(Q=O[j],g){case 0:for(H=0;H<L;H++)C[V+H]|=Q[H];break;case 2:for(H=0;H<L;H++)C[V+H]^=Q[H];break;default:throw new s(`operator ${g} is not supported`)}M+=L-1}_++;var $=e?m.tableDeltaS.decode(x):n(E,"IADS",B);if(null===$)break;M+=$+f}}return S}function m(e,t){var n={};n.number=(0,i.readUint32)(e,t);var r=e[t+4],a=63&r;if(!c[a])throw new s("invalid segment type: "+a);n.type=a,n.typeName=c[a],n.deferredNonRetain=!!(128&r);var o=!!(64&r),l=e[t+5],u=l>>5&7,h=[31&l],d=t+6;if(7===l){u=536870911&(0,i.readUint32)(e,d-1),d+=3;var f=u+7>>3;for(h[0]=e[d++];--f>0;)h.push(e[d++])}else if(5===l||6===l)throw new s("invalid referred-to flags");n.retainBits=h;let p=4;n.number<=256?p=1:n.number<=65536&&(p=2);var A,g,m=[];for(A=0;A<u;A++){let t;t=1===p?e[d]:2===p?(0,i.readUint16)(e,d):(0,i.readUint32)(e,d),m.push(t),d+=p}if(n.referredTo=m,o?(n.pageAssociation=(0,i.readUint32)(e,d),d+=4):n.pageAssociation=e[d++],n.length=(0,i.readUint32)(e,d),d+=4,4294967295===n.length){if(38!==a)throw new s("invalid unknown segment length");var v=y(e,d),w=!!(1&e[d+b]),x=new Uint8Array(6);for(w||(x[0]=255,x[1]=172),x[2]=v.height>>>24&255,x[3]=v.height>>16&255,x[4]=v.height>>8&255,x[5]=255&v.height,A=d,g=e.length;A<g;A++){for(var _=0;_<6&&x[_]===e[A+_];)_++;if(6===_){n.length=A+6;break}}if(4294967295===n.length)throw new s("segment end was not found")}return n.headerEnd=d,n}function v(e,t,n,r){for(var i=[],a=n;a<r;){var o=m(t,a);a=o.headerEnd;var s={header:o,data:t};if(e.randomAccess||(s.start=a,a+=o.length,s.end=a),i.push(s),51===o.type)break}if(e.randomAccess)for(var l=0,c=i.length;l<c;l++)i[l].start=a,a+=i[l].header.length,i[l].end=a;return i}function y(e,t){return{width:(0,i.readUint32)(e,t),height:(0,i.readUint32)(e,t+4),x:(0,i.readUint32)(e,t+8),y:(0,i.readUint32)(e,t+12),combinationOperator:7&e[t+16]}}var b=17;function w(e,t){var n,r,a,o,l=e.header,c=e.data,u=e.start,h=e.end;switch(l.type){case 0:var d={},f=(0,i.readUint16)(c,u);if(d.huffman=!!(1&f),d.refinement=!!(2&f),d.huffmanDHSelector=f>>2&3,d.huffmanDWSelector=f>>4&3,d.bitmapSizeSelector=f>>6&1,d.aggregationInstancesSelector=f>>7&1,d.bitmapCodingContextUsed=!!(256&f),d.bitmapCodingContextRetained=!!(512&f),d.template=f>>10&3,d.refinementTemplate=f>>12&1,u+=2,!d.huffman){for(o=0===d.template?4:1,r=[],a=0;a<o;a++)r.push({x:(0,i.readInt8)(c,u),y:(0,i.readInt8)(c,u+1)}),u+=2;d.at=r}if(d.refinement&&!d.refinementTemplate){for(r=[],a=0;a<2;a++)r.push({x:(0,i.readInt8)(c,u),y:(0,i.readInt8)(c,u+1)}),u+=2;d.refinementAt=r}d.numberOfExportedSymbols=(0,i.readUint32)(c,u),u+=4,d.numberOfNewSymbols=(0,i.readUint32)(c,u),u+=4,n=[d,l.number,l.referredTo,c,u,h];break;case 6:case 7:var p={};p.info=y(c,u),u+=b;var A=(0,i.readUint16)(c,u);if(u+=2,p.huffman=!!(1&A),p.refinement=!!(2&A),p.logStripSize=A>>2&3,p.stripSize=1<<p.logStripSize,p.referenceCorner=A>>4&3,p.transposed=!!(64&A),p.combinationOperator=A>>7&3,p.defaultPixelValue=A>>9&1,p.dsOffset=A<<17>>27,p.refinementTemplate=A>>15&1,p.huffman){var g=(0,i.readUint16)(c,u);u+=2,p.huffmanFS=3&g,p.huffmanDS=g>>2&3,p.huffmanDT=g>>4&3,p.huffmanRefinementDW=g>>6&3,p.huffmanRefinementDH=g>>8&3,p.huffmanRefinementDX=g>>10&3,p.huffmanRefinementDY=g>>12&3,p.huffmanRefinementSizeSelector=!!(16384&g)}if(p.refinement&&!p.refinementTemplate){for(r=[],a=0;a<2;a++)r.push({x:(0,i.readInt8)(c,u),y:(0,i.readInt8)(c,u+1)}),u+=2;p.refinementAt=r}p.numberOfSymbolInstances=(0,i.readUint32)(c,u),u+=4,n=[p,l.referredTo,c,u,h];break;case 16:const e={},t=c[u++];e.mmr=!!(1&t),e.template=t>>1&3,e.patternWidth=c[u++],e.patternHeight=c[u++],e.maxPatternIndex=(0,i.readUint32)(c,u),u+=4,n=[e,l.number,c,u,h];break;case 22:case 23:const _={};_.info=y(c,u),u+=b;const C=c[u++];_.mmr=!!(1&C),_.template=C>>1&3,_.enableSkip=!!(8&C),_.combinationOperator=C>>4&7,_.defaultPixelValue=C>>7&1,_.gridWidth=(0,i.readUint32)(c,u),u+=4,_.gridHeight=(0,i.readUint32)(c,u),u+=4,_.gridOffsetX=4294967295&(0,i.readUint32)(c,u),u+=4,_.gridOffsetY=4294967295&(0,i.readUint32)(c,u),u+=4,_.gridVectorX=(0,i.readUint16)(c,u),u+=2,_.gridVectorY=(0,i.readUint16)(c,u),u+=2,n=[_,l.referredTo,c,u,h];break;case 38:case 39:var m={};m.info=y(c,u),u+=b;var v=c[u++];if(m.mmr=!!(1&v),m.template=v>>1&3,m.prediction=!!(8&v),!m.mmr){for(o=0===m.template?4:1,r=[],a=0;a<o;a++)r.push({x:(0,i.readInt8)(c,u),y:(0,i.readInt8)(c,u+1)}),u+=2;m.at=r}n=[m,c,u,h];break;case 48:var w={width:(0,i.readUint32)(c,u),height:(0,i.readUint32)(c,u+4),resolutionX:(0,i.readUint32)(c,u+8),resolutionY:(0,i.readUint32)(c,u+12)};4294967295===w.height&&delete w.height;var x=c[u+16];(0,i.readUint16)(c,u+17),w.lossless=!!(1&x),w.refinement=!!(2&x),w.defaultPixelValue=x>>2&1,w.combinationOperator=x>>3&3,w.requiresBuffer=!!(32&x),w.combinationOperatorOverride=!!(64&x),n=[w];break;case 49:case 50:case 51:break;case 53:n=[l.number,c,u,h];break;case 62:break;default:throw new s(`segment type ${l.typeName}(${l.type})`+" is not implemented")}var _="on"+l.typeName;_ in t&&t[_].apply(t,n)}function x(e,t){for(var n=0,r=e.length;n<r;n++)w(e[n],t)}function _(){}function C(e){2===e.length?(this.isOOB=!0,this.rangeLow=0,this.prefixLength=e[0],this.rangeLength=0,this.prefixCode=e[1],this.isLowerRange=!1):(this.isOOB=!1,this.rangeLow=e[0],this.prefixLength=e[1],this.rangeLength=e[2],this.prefixCode=e[3],this.isLowerRange="lower"===e[4])}function S(e){this.children=[],e?(this.isLeaf=!0,this.rangeLength=e.rangeLength,this.rangeLow=e.rangeLow,this.isLowerRange=e.isLowerRange,this.isOOB=e.isOOB):this.isLeaf=!1}function k(e,t){t||this.assignPrefixCodes(e),this.rootNode=new S(null);for(let t=0,n=e.length;t<n;t++){const n=e[t];n.prefixLength>0&&this.rootNode.buildTree(n,n.prefixLength-1)}}_.prototype={onPageInformation:function(e){this.currentPageInfo=e;var t=e.width+7>>3,n=new Uint8ClampedArray(t*e.height);if(e.defaultPixelValue)for(var r=0,i=n.length;r<i;r++)n[r]=255;this.buffer=n},drawBitmap:function(e,t){var n,r,i,a,o=this.currentPageInfo,l=e.width,c=e.height,u=o.width+7>>3,h=o.combinationOperatorOverride?e.combinationOperator:o.combinationOperator,d=this.buffer,f=128>>(7&e.x),p=e.y*u+(e.x>>3);switch(h){case 0:for(n=0;n<c;n++){for(i=f,a=p,r=0;r<l;r++)t[n][r]&&(d[a]|=i),(i>>=1)||(i=128,a++);p+=u}break;case 2:for(n=0;n<c;n++){for(i=f,a=p,r=0;r<l;r++)t[n][r]&&(d[a]^=i),(i>>=1)||(i=128,a++);p+=u}break;default:throw new s(`operator ${h} is not supported`)}},onImmediateGenericRegion:function(e,n,r,i){var a=e.info,o=new t(n,r,i),s=p(e.mmr,a.width,a.height,e.template,e.prediction,null,e.at,o);this.drawBitmap(a,s)},onImmediateLosslessGenericRegion:function(){this.onImmediateGenericRegion.apply(this,arguments)},onSymbolDictionary:function(e,r,a,o,c,u){let h,d;e.huffman&&(h=function(e,t,n){let r,i,a,o,l=0;switch(e.huffmanDHSelector){case 0:case 1:r=E(e.huffmanDHSelector+4);break;case 3:r=I(l,t,n),l++;break;default:throw new s("invalid Huffman DH selector")}switch(e.huffmanDWSelector){case 0:case 1:i=E(e.huffmanDWSelector+2);break;case 3:i=I(l,t,n),l++;break;default:throw new s("invalid Huffman DW selector")}e.bitmapSizeSelector?(a=I(l,t,n),l++):a=E(1);o=e.aggregationInstancesSelector?I(l,t,n):E(1);return{tableDeltaHeight:r,tableDeltaWidth:i,tableBitmapSize:a,tableAggregateInstances:o}}(e,a,this.customTables),d=new T(o,c,u));var f=this.symbols;f||(this.symbols=f={});for(var m=[],v=0,y=a.length;v<y;v++){const e=f[a[v]];e&&(m=m.concat(e))}var b=new t(o,c,u);f[r]=function(e,t,r,a,o,c,u,h,d,f,m,v){if(e&&t)throw new s("symbol refinement with Huffman is not supported");var y=[],b=0,w=(0,i.log2)(r.length+a),x=m.decoder,_=m.contextCache;let C,S;for(e&&(C=E(1),S=[],w=Math.max(w,1));y.length<a;){b+=e?c.tableDeltaHeight.decode(v):n(_,"IADH",x);let i=0,a=0;const o=e?S.length:0;for(;;){var k,B=e?c.tableDeltaWidth.decode(v):n(_,"IADW",x);if(null===B)break;if(a+=i+=B,t){var T=n(_,"IAAI",x);if(T>1)k=g(e,t,i,b,0,T,1,r.concat(y),w,0,0,1,0,c,d,f,m,0,v);else{var I=l(_,x,w),D=n(_,"IARDX",x),P=n(_,"IARDY",x);k=A(i,b,d,I<r.length?r[I]:y[I-r.length],D,P,!1,f,m)}y.push(k)}else e?S.push(i):(k=p(!1,i,b,u,!1,null,h,m),y.push(k))}if(e&&!t){const e=c.tableBitmapSize.decode(v);let t;if(v.byteAlign(),0===e)t=M(v,a,b);else{const n=v.end,r=v.position+e;v.end=r,t=F(v,a,b,!1),v.end=n,v.position=r}const n=S.length;if(o===n-1)y.push(t);else{let e,r,i,a,s,l=0;for(e=o;e<n;e++){for(i=l+(a=S[e]),s=[],r=0;r<b;r++)s.push(t[r].subarray(l,i));y.push(s),l=i}}}}for(var O=[],L=[],R=!1,N=r.length+a;L.length<N;){for(var U=e?C.decode(v):n(_,"IAEX",x);U--;)L.push(R);R=!R}for(var H=0,j=r.length;H<j;H++)L[H]&&O.push(r[H]);for(var Q=0;Q<a;H++,Q++)L[H]&&O.push(y[Q]);return O}(e.huffman,e.refinement,m,e.numberOfNewSymbols,e.numberOfExportedSymbols,h,e.template,e.at,e.refinementTemplate,e.refinementAt,b,d)},onImmediateTextRegion:function(e,n,r,a,o){var l=e.info;let c,u;for(var h=this.symbols,d=[],f=0,p=n.length;f<p;f++){const e=h[n[f]];e&&(d=d.concat(e))}var A=(0,i.log2)(d.length);e.huffman&&(u=new T(r,a,o),c=function(e,t,n,r,i){const a=[];for(let e=0;e<=34;e++){const t=i.readBits(4);a.push(new C([e,t,0,0]))}const o=new k(a,!1);a.length=0;for(let e=0;e<r;){const t=o.decode(i);if(t>=32){let n,r,o;switch(t){case 32:if(0===e)throw new s("no previous value in symbol ID table");r=i.readBits(2)+3,n=a[e-1].prefixLength;break;case 33:r=i.readBits(3)+3,n=0;break;case 34:r=i.readBits(7)+11,n=0;break;default:throw new s("invalid code length in symbol ID table")}for(o=0;o<r;o++)a.push(new C([e,n,0,0])),e++}else a.push(new C([e,t,0,0])),e++}i.byteAlign();const l=new k(a,!1);let c,u,h,d=0;switch(e.huffmanFS){case 0:case 1:c=E(e.huffmanFS+6);break;case 3:c=I(d,t,n),d++;break;default:throw new s("invalid Huffman FS selector")}switch(e.huffmanDS){case 0:case 1:case 2:u=E(e.huffmanDS+8);break;case 3:u=I(d,t,n),d++;break;default:throw new s("invalid Huffman DS selector")}switch(e.huffmanDT){case 0:case 1:case 2:h=E(e.huffmanDT+11);break;case 3:h=I(d,t,n),d++;break;default:throw new s("invalid Huffman DT selector")}if(e.refinement)throw new s("refinement with Huffman is not supported");return{symbolIDTable:l,tableFirstS:c,tableDeltaS:u,tableDeltaT:h}}(e,n,this.customTables,d.length,u));var m=new t(r,a,o),v=g(e.huffman,e.refinement,l.width,l.height,e.defaultPixelValue,e.numberOfSymbolInstances,e.stripSize,d,A,e.transposed,e.dsOffset,e.referenceCorner,e.combinationOperator,c,e.refinementTemplate,e.refinementAt,m,e.logStripSize,u);this.drawBitmap(l,v)},onImmediateLosslessTextRegion:function(){this.onImmediateTextRegion.apply(this,arguments)},onPatternDictionary(e,n,r,i,a){let o=this.patterns;o||(this.patterns=o={});const s=new t(r,i,a);o[n]=function(e,t,n,r,i,a){const o=[];e||(o.push({x:-t,y:0}),0===i&&(o.push({x:-3,y:-1}),o.push({x:2,y:-2}),o.push({x:-2,y:-2})));const s=p(e,(r+1)*t,n,i,!1,null,o,a),l=[];for(let e=0;e<=r;e++){const r=[],i=t*e,a=i+t;for(let e=0;e<n;e++)r.push(s[e].subarray(i,a));l.push(r)}return l}(e.mmr,e.patternWidth,e.patternHeight,e.maxPatternIndex,e.template,s)},onImmediateHalftoneRegion(e,n,r,a,o){const l=this.patterns[n[0]],c=e.info,u=new t(r,a,o),h=function(e,t,n,r,a,o,l,c,u,h,d,f,A,g,m){if(l)throw new s("skip is not supported");if(0!==c)throw new s("operator "+c+" is not supported in halftone region");const v=[];let y,b,w;for(y=0;y<a;y++){if(w=new Uint8Array(r),o)for(b=0;b<r;b++)w[b]=o;v.push(w)}const x=t.length,_=t[0],C=_[0].length,S=_.length,k=(0,i.log2)(x),B=[];e||(B.push({x:n<=1?3:2,y:-1}),0===n&&(B.push({x:-3,y:-1}),B.push({x:2,y:-2}),B.push({x:-2,y:-2})));const E=[];let I,M,D,P,O,L,R,N,U,H,j;for(e&&(I=new T(m.data,m.start,m.end)),y=k-1;y>=0;y--)M=e?F(I,u,h,!0):p(!1,u,h,n,!1,null,B,m),E[y]=M;for(D=0;D<h;D++)for(P=0;P<u;P++){for(O=0,L=0,b=k-1;b>=0;b--)L|=(O=E[b][D][P]^O)<<b;if(R=t[L],U=f+D*A-P*g>>8,(N=d+D*g+P*A>>8)>=0&&N+C<=r&&U>=0&&U+S<=a)for(y=0;y<S;y++)for(j=v[U+y],H=R[y],b=0;b<C;b++)j[N+b]|=H[b];else{let e,t;for(y=0;y<S;y++)if(!((t=U+y)<0||t>=a))for(j=v[t],H=R[y],b=0;b<C;b++)(e=N+b)>=0&&e<r&&(j[e]|=H[b])}}return v}(e.mmr,l,e.template,c.width,c.height,e.defaultPixelValue,e.enableSkip,e.combinationOperator,e.gridWidth,e.gridHeight,e.gridOffsetX,e.gridOffsetY,e.gridVectorX,e.gridVectorY,u);this.drawBitmap(c,h)},onImmediateLosslessHalftoneRegion(){this.onImmediateHalftoneRegion.apply(this,arguments)},onTables(e,t,n,r){let a=this.customTables;a||(this.customTables=a={}),a[e]=function(e,t,n){const r=e[t],a=4294967295&(0,i.readUint32)(e,t+1),o=4294967295&(0,i.readUint32)(e,t+5),s=new T(e,t+9,n),l=1+(r>>1&7),c=1+(r>>4&7),u=[];let h,d,f=a;do{h=s.readBits(l),d=s.readBits(c),u.push(new C([f,h,d,0])),f+=1<<d}while(f<o);h=s.readBits(l),u.push(new C([a-1,h,32,0,"lower"])),h=s.readBits(l),u.push(new C([o,h,32,0])),1&r&&(h=s.readBits(l),u.push(new C([h,0])));return new k(u,!1)}(t,n,r)}},S.prototype={buildTree(e,t){const n=e.prefixCode>>t&1;if(t<=0)this.children[n]=new S(e);else{let r=this.children[n];r||(this.children[n]=r=new S(null)),r.buildTree(e,t-1)}},decodeNode(e){if(this.isLeaf){if(this.isOOB)return null;const t=e.readBits(this.rangeLength);return this.rangeLow+(this.isLowerRange?-t:t)}const t=this.children[e.readBit()];if(!t)throw new s("invalid Huffman data");return t.decodeNode(e)}},k.prototype={decode(e){return this.rootNode.decodeNode(e)},assignPrefixCodes(e){const t=e.length;let n=0;for(let r=0;r<t;r++)n=Math.max(n,e[r].prefixLength);const r=new Uint32Array(n+1);for(let n=0;n<t;n++)r[e[n].prefixLength]++;let i,a,o,s=1,l=0;for(r[0]=0;s<=n;){for(i=l=l+r[s-1]<<1,a=0;a<t;)(o=e[a]).prefixLength===s&&(o.prefixCode=i,i++),a++;s++}}};const B={};function E(e){let t,n=B[e];if(n)return n;switch(e){case 1:t=[[0,1,4,0],[16,2,8,2],[272,3,16,6],[65808,3,32,7]];break;case 2:t=[[0,1,0,0],[1,2,0,2],[2,3,0,6],[3,4,3,14],[11,5,6,30],[75,6,32,62],[6,63]];break;case 3:t=[[-256,8,8,254],[0,1,0,0],[1,2,0,2],[2,3,0,6],[3,4,3,14],[11,5,6,30],[-257,8,32,255,"lower"],[75,7,32,126],[6,62]];break;case 4:t=[[1,1,0,0],[2,2,0,2],[3,3,0,6],[4,4,3,14],[12,5,6,30],[76,5,32,31]];break;case 5:t=[[-255,7,8,126],[1,1,0,0],[2,2,0,2],[3,3,0,6],[4,4,3,14],[12,5,6,30],[-256,7,32,127,"lower"],[76,6,32,62]];break;case 6:t=[[-2048,5,10,28],[-1024,4,9,8],[-512,4,8,9],[-256,4,7,10],[-128,5,6,29],[-64,5,5,30],[-32,4,5,11],[0,2,7,0],[128,3,7,2],[256,3,8,3],[512,4,9,12],[1024,4,10,13],[-2049,6,32,62,"lower"],[2048,6,32,63]];break;case 7:t=[[-1024,4,9,8],[-512,3,8,0],[-256,4,7,9],[-128,5,6,26],[-64,5,5,27],[-32,4,5,10],[0,4,5,11],[32,5,5,28],[64,5,6,29],[128,4,7,12],[256,3,8,1],[512,3,9,2],[1024,3,10,3],[-1025,5,32,30,"lower"],[2048,5,32,31]];break;case 8:t=[[-15,8,3,252],[-7,9,1,508],[-5,8,1,253],[-3,9,0,509],[-2,7,0,124],[-1,4,0,10],[0,2,1,0],[2,5,0,26],[3,6,0,58],[4,3,4,4],[20,6,1,59],[22,4,4,11],[38,4,5,12],[70,5,6,27],[134,5,7,28],[262,6,7,60],[390,7,8,125],[646,6,10,61],[-16,9,32,510,"lower"],[1670,9,32,511],[2,1]];break;case 9:t=[[-31,8,4,252],[-15,9,2,508],[-11,8,2,253],[-7,9,1,509],[-5,7,1,124],[-3,4,1,10],[-1,3,1,2],[1,3,1,3],[3,5,1,26],[5,6,1,58],[7,3,5,4],[39,6,2,59],[43,4,5,11],[75,4,6,12],[139,5,7,27],[267,5,8,28],[523,6,8,60],[779,7,9,125],[1291,6,11,61],[-32,9,32,510,"lower"],[3339,9,32,511],[2,0]];break;case 10:t=[[-21,7,4,122],[-5,8,0,252],[-4,7,0,123],[-3,5,0,24],[-2,2,2,0],[2,5,0,25],[3,6,0,54],[4,7,0,124],[5,8,0,253],[6,2,6,1],[70,5,5,26],[102,6,5,55],[134,6,6,56],[198,6,7,57],[326,6,8,58],[582,6,9,59],[1094,6,10,60],[2118,7,11,125],[-22,8,32,254,"lower"],[4166,8,32,255],[2,2]];break;case 11:t=[[1,1,0,0],[2,2,1,2],[4,4,0,12],[5,4,1,13],[7,5,1,28],[9,5,2,29],[13,6,2,60],[17,7,2,122],[21,7,3,123],[29,7,4,124],[45,7,5,125],[77,7,6,126],[141,7,32,127]];break;case 12:t=[[1,1,0,0],[2,2,0,2],[3,3,1,6],[5,5,0,28],[6,5,1,29],[8,6,1,60],[10,7,0,122],[11,7,1,123],[13,7,2,124],[17,7,3,125],[25,7,4,126],[41,8,5,254],[73,8,32,255]];break;case 13:t=[[1,1,0,0],[2,3,0,4],[3,4,0,12],[4,5,0,28],[5,4,1,13],[7,3,3,5],[15,6,1,58],[17,6,2,59],[21,6,3,60],[29,6,4,61],[45,6,5,62],[77,7,6,126],[141,7,32,127]];break;case 14:t=[[-2,3,0,4],[-1,3,0,5],[0,1,0,0],[1,3,0,6],[2,3,0,7]];break;case 15:t=[[-24,7,4,124],[-8,6,2,60],[-4,5,1,28],[-2,4,0,12],[-1,3,0,4],[0,1,0,0],[1,3,0,5],[2,4,0,13],[3,5,1,29],[5,6,2,61],[9,7,4,125],[-25,7,32,126,"lower"],[25,7,32,127]];break;default:throw new s(`standard table B.${e} does not exist`)}for(let e=0,n=t.length;e<n;e++)t[e]=new C(t[e]);return n=new k(t,!0),B[e]=n,n}function T(e,t,n){this.data=e,this.start=t,this.end=n,this.position=t,this.shift=-1,this.currentByte=0}function I(e,t,n){let r=0;for(let i=0,a=t.length;i<a;i++){const a=n[t[i]];if(a){if(e===r)return a;r++}}throw new s("can't find custom Huffman table")}function M(e,t,n){const r=[];for(let i=0;i<n;i++){const n=new Uint8Array(t);r.push(n);for(let r=0;r<t;r++)n[r]=e.readBit();e.byteAlign()}return r}function F(e,t,n,r){const i={K:-1,Columns:t,Rows:n,BlackIs1:!0,EndOfBlock:r},a=new o.CCITTFaxDecoder(e,i),s=[];let l,c=!1;for(let e=0;e<n;e++){const e=new Uint8Array(t);s.push(e);let n=-1;for(let r=0;r<t;r++)n<0&&(-1===(l=a.readNextChar())&&(l=0,c=!0),n=7),e[r]=l>>n&1,n--}if(r&&!c){const e=5;for(let t=0;t<e&&-1!==a.readNextChar();t++);}return s}function D(){}return T.prototype={readBit(){if(this.shift<0){if(this.position>=this.end)throw new s("end of data while reading bit");this.currentByte=this.data[this.position++],this.shift=7}const e=this.currentByte>>this.shift&1;return this.shift--,e},readBits(e){let t,n=0;for(t=e-1;t>=0;t--)n|=this.readBit()<<t;return n},byteAlign(){this.shift=-1},next(){return this.position>=this.end?-1:this.data[this.position++]}},D.prototype={parseChunks:e=>(function(e){for(var t=new _,n=0,r=e.length;n<r;n++){var i=e[n];x(v({},i.data,i.start,i.end),t)}return t.buffer})(e),parse(e){const{imgData:t,width:n,height:r}=function(e){const t=e.length;let n=0;if(151!==e[n]||74!==e[n+1]||66!==e[n+2]||50!==e[n+3]||13!==e[n+4]||10!==e[n+5]||26!==e[n+6]||10!==e[n+7])throw new s("parseJbig2 - invalid header.");const r=Object.create(null);n+=8;const a=e[n++];r.randomAccess=!(1&a),2&a||(r.numberOfPages=(0,i.readUint32)(e,n),n+=4);const o=v(r,e,n,t),l=new _;x(o,l);const{width:c,height:u}=l.currentPageInfo,h=l.buffer,d=new Uint8ClampedArray(c*u);let f=0,p=0;for(let e=0;e<u;e++){let e,t=0;for(let n=0;n<c;n++)t||(t=128,e=h[p++]),d[f++]=e&t?0:255,t>>=1}return{imgData:d,width:c,height:u}}(e);return this.width=n,this.height=r,t}},D}();t.Jbig2Image=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArithmeticDecoder=void 0;const r=[{qe:22017,nmps:1,nlps:1,switchFlag:1},{qe:13313,nmps:2,nlps:6,switchFlag:0},{qe:6145,nmps:3,nlps:9,switchFlag:0},{qe:2753,nmps:4,nlps:12,switchFlag:0},{qe:1313,nmps:5,nlps:29,switchFlag:0},{qe:545,nmps:38,nlps:33,switchFlag:0},{qe:22017,nmps:7,nlps:6,switchFlag:1},{qe:21505,nmps:8,nlps:14,switchFlag:0},{qe:18433,nmps:9,nlps:14,switchFlag:0},{qe:14337,nmps:10,nlps:14,switchFlag:0},{qe:12289,nmps:11,nlps:17,switchFlag:0},{qe:9217,nmps:12,nlps:18,switchFlag:0},{qe:7169,nmps:13,nlps:20,switchFlag:0},{qe:5633,nmps:29,nlps:21,switchFlag:0},{qe:22017,nmps:15,nlps:14,switchFlag:1},{qe:21505,nmps:16,nlps:14,switchFlag:0},{qe:20737,nmps:17,nlps:15,switchFlag:0},{qe:18433,nmps:18,nlps:16,switchFlag:0},{qe:14337,nmps:19,nlps:17,switchFlag:0},{qe:13313,nmps:20,nlps:18,switchFlag:0},{qe:12289,nmps:21,nlps:19,switchFlag:0},{qe:10241,nmps:22,nlps:19,switchFlag:0},{qe:9217,nmps:23,nlps:20,switchFlag:0},{qe:8705,nmps:24,nlps:21,switchFlag:0},{qe:7169,nmps:25,nlps:22,switchFlag:0},{qe:6145,nmps:26,nlps:23,switchFlag:0},{qe:5633,nmps:27,nlps:24,switchFlag:0},{qe:5121,nmps:28,nlps:25,switchFlag:0},{qe:4609,nmps:29,nlps:26,switchFlag:0},{qe:4353,nmps:30,nlps:27,switchFlag:0},{qe:2753,nmps:31,nlps:28,switchFlag:0},{qe:2497,nmps:32,nlps:29,switchFlag:0},{qe:2209,nmps:33,nlps:30,switchFlag:0},{qe:1313,nmps:34,nlps:31,switchFlag:0},{qe:1089,nmps:35,nlps:32,switchFlag:0},{qe:673,nmps:36,nlps:33,switchFlag:0},{qe:545,nmps:37,nlps:34,switchFlag:0},{qe:321,nmps:38,nlps:35,switchFlag:0},{qe:273,nmps:39,nlps:36,switchFlag:0},{qe:133,nmps:40,nlps:37,switchFlag:0},{qe:73,nmps:41,nlps:38,switchFlag:0},{qe:37,nmps:42,nlps:39,switchFlag:0},{qe:21,nmps:43,nlps:40,switchFlag:0},{qe:9,nmps:44,nlps:41,switchFlag:0},{qe:5,nmps:45,nlps:42,switchFlag:0},{qe:1,nmps:45,nlps:43,switchFlag:0},{qe:22017,nmps:46,nlps:46,switchFlag:0}];t.ArithmeticDecoder=class{constructor(e,t,n){this.data=e,this.bp=t,this.dataEnd=n,this.chigh=e[t],this.clow=0,this.byteIn(),this.chigh=this.chigh<<7&65535|this.clow>>9&127,this.clow=this.clow<<7&65535,this.ct-=7,this.a=32768}byteIn(){const e=this.data;let t=this.bp;255===e[t]?e[t+1]>143?(this.clow+=65280,this.ct=8):(t++,this.clow+=e[t]<<9,this.ct=7,this.bp=t):(t++,this.clow+=t<this.dataEnd?e[t]<<8:65280,this.ct=8,this.bp=t),this.clow>65535&&(this.chigh+=this.clow>>16,this.clow&=65535)}readBit(e,t){let n=e[t]>>1,i=1&e[t];const a=r[n],o=a.qe;let s,l=this.a-o;if(this.chigh<o)l<o?(l=o,s=i,n=a.nmps):(l=o,s=1^i,1===a.switchFlag&&(i=s),n=a.nlps);else{if(this.chigh-=o,0!=(32768&l))return this.a=l,i;l<o?(s=1^i,1===a.switchFlag&&(i=s),n=a.nlps):(s=i,n=a.nmps)}do{0===this.ct&&this.byteIn(),l<<=1,this.chigh=this.chigh<<1&65535|this.clow>>15&1,this.clow=this.clow<<1&65535,this.ct--}while(0==(32768&l));return this.a=l,e[t]=n<<1|i,s}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JpegStream=void 0;var r=n(12),i=n(5),a=n(19),o=n(2);const s=function(){function e(e,t,n,i){let a;for(;-1!==(a=e.getByte());)if(255===a){e.skip(-1);break}this.stream=e,this.maybeLength=t,this.dict=n,this.params=i,r.DecodeStream.call(this,t)}return e.prototype=Object.create(r.DecodeStream.prototype),Object.defineProperty(e.prototype,"bytes",{get:function(){return(0,o.shadow)(this,"bytes",this.stream.getBytes(this.maybeLength))},configurable:!0}),e.prototype.ensureBuffer=function(e){},e.prototype.readBlock=function(){if(this.eof)return;const e={decodeTransform:void 0,colorTransform:void 0},t=this.dict.getArray("Decode","D");if(this.forceRGB&&Array.isArray(t)){const n=this.dict.get("BitsPerComponent")||8,r=t.length,i=new Int32Array(r);let a=!1;const o=(1<<n)-1;for(let e=0;e<r;e+=2)i[e]=256*(t[e+1]-t[e])|0,i[e+1]=t[e]*o|0,256===i[e]&&0===i[e+1]||(a=!0);a&&(e.decodeTransform=i)}if((0,i.isDict)(this.params)){const t=this.params.get("ColorTransform");Number.isInteger(t)&&(e.colorTransform=t)}const n=new a.JpegImage(e);n.parse(this.bytes);const r=n.getData({width:this.drawWidth,height:this.drawHeight,forceRGB:this.forceRGB,isSourcePDF:!0});this.buffer=r,this.bufferLength=r.length,this.eof=!0},e}();t.JpegStream=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JpegImage=void 0;var r=n(2),i=n(8);class a extends r.BaseException{constructor(e){super(`JPEG error: ${e}`)}}class o extends r.BaseException{constructor(e,t){super(e),this.scanLines=t}}class s extends r.BaseException{}var l=function(){var e=new Uint8Array([0,1,8,16,9,2,3,10,17,24,32,25,18,11,4,5,12,19,26,33,40,48,41,34,27,20,13,6,7,14,21,28,35,42,49,56,57,50,43,36,29,22,15,23,30,37,44,51,58,59,52,45,38,31,39,46,53,60,61,54,47,55,62,63]),t=4017,n=799,l=3406,c=2276,u=1567,h=3784,d=5793,f=2896;function p({decodeTransform:e=null,colorTransform:t=-1}={}){this._decodeTransform=e,this._colorTransform=t}function A(e,t){for(var n,r,i=0,a=[],o=16;o>0&&!e[o-1];)o--;a.push({children:[],index:0});var s,l=a[0];for(n=0;n<o;n++){for(r=0;r<e[n];r++){for((l=a.pop()).children[l.index]=t[i];l.index>0;)l=a.pop();for(l.index++,a.push(l);a.length<=n;)a.push(s={children:[],index:0}),l.children[l.index]=s.children,l=s;i++}n+1<o&&(a.push(s={children:[],index:0}),l.children[l.index]=s.children,l=s)}return a[0].children}function g(e,t,n){return 64*((e.blocksPerLine+1)*t+n)}function m(t,n,l,c,u,h,d,f,p,A=!1){var m=l.mcusPerLine,v=l.progressive;const y=n;let w=0,x=0;function _(){if(x>0)return w>>--x&1;if(255===(w=t[n++])){var e=t[n++];if(e){if(220===e&&A){n+=2;const e=(0,i.readUint16)(t,n);if(n+=2,e>0&&e!==l.scanLines)throw new o("Found DNL marker (0xFFDC) while parsing scan data",e)}else if(217===e){if(A){const e=8*I;if(e>0&&e<l.scanLines/10)throw new o("Found EOI marker (0xFFD9) while parsing scan data, possibly caused by incorrect `scanLines` parameter",e)}throw new s("Found EOI marker (0xFFD9) while parsing scan data")}throw new a(`unexpected marker ${(w<<8|e).toString(16)}`)}}return x=7,w>>>7}function C(e){for(var t=e;;){switch(typeof(t=t[_()])){case"number":return t;case"object":continue}throw new a("invalid huffman sequence")}}function S(e){for(var t=0;e>0;)t=t<<1|_(),e--;return t}function k(e){if(1===e)return 1===_()?1:-1;var t=S(e);return t>=1<<e-1?t:t+(-1<<e)+1}var B=0;var E,T=0;let I=0;function M(e,t,n,r,i){var a=n%m;I=(n/m|0)*e.v+r;var o=a*e.h+i;t(e,g(e,I,o))}function F(e,t,n){I=n/e.blocksPerLine|0;var r=n%e.blocksPerLine;t(e,g(e,I,r))}var D,P,O,L,R,N,U=c.length;N=v?0===h?0===f?function(e,t){var n=C(e.huffmanTableDC),r=0===n?0:k(n)<<p;e.blockData[t]=e.pred+=r}:function(e,t){e.blockData[t]|=_()<<p}:0===f?function(t,n){if(B>0)B--;else for(var r=h,i=d;r<=i;){var a=C(t.huffmanTableAC),o=15&a,s=a>>4;if(0!==o){var l=e[r+=s];t.blockData[n+l]=k(o)*(1<<p),r++}else{if(s<15){B=S(s)+(1<<s)-1;break}r+=16}}}:function(t,n){for(var r,i,o=h,s=d,l=0;o<=s;){const s=n+e[o],c=t.blockData[s]<0?-1:1;switch(T){case 0:if(l=(i=C(t.huffmanTableAC))>>4,0==(r=15&i))l<15?(B=S(l)+(1<<l),T=4):(l=16,T=1);else{if(1!==r)throw new a("invalid ACn encoding");E=k(r),T=l?2:3}continue;case 1:case 2:t.blockData[s]?t.blockData[s]+=c*(_()<<p):0==--l&&(T=2===T?3:0);break;case 3:t.blockData[s]?t.blockData[s]+=c*(_()<<p):(t.blockData[s]=E<<p,T=0);break;case 4:t.blockData[s]&&(t.blockData[s]+=c*(_()<<p))}o++}4===T&&0==--B&&(T=0)}:function(t,n){var r=C(t.huffmanTableDC),i=0===r?0:k(r);t.blockData[n]=t.pred+=i;for(var a=1;a<64;){var o=C(t.huffmanTableAC),s=15&o,l=o>>4;if(0!==s){var c=e[a+=l];t.blockData[n+c]=k(s),a++}else{if(l<15)break;a+=16}}};var H,j,Q,z,V=0;for(j=1===U?c[0].blocksPerLine*c[0].blocksPerColumn:m*l.mcusPerColumn;V<=j;){var G=u?Math.min(j-V,u):j;if(G>0){for(P=0;P<U;P++)c[P].pred=0;if(B=0,1===U)for(D=c[0],R=0;R<G;R++)F(D,N,V),V++;else for(R=0;R<G;R++){for(P=0;P<U;P++)for(Q=(D=c[P]).h,z=D.v,O=0;O<z;O++)for(L=0;L<Q;L++)M(D,N,V,O,L);V++}}if(x=0,!(H=b(t,n)))break;if(H.invalid){const e=G>0?"unexpected":"excessive";(0,r.warn)(`decodeScan - ${e} MCU data, current marker is: ${H.invalid}`),n=H.offset}if(!(H.marker>=65488&&H.marker<=65495))break;n+=2}return n-y}function v(e,r,i){var o,s,p,A,g,m,v,y,b,w,x,_,C,S,k,B,E,T=e.quantizationTable,I=e.blockData;if(!T)throw new a("missing required Quantization Table.");for(var M=0;M<64;M+=8)b=I[r+M],w=I[r+M+1],x=I[r+M+2],_=I[r+M+3],C=I[r+M+4],S=I[r+M+5],k=I[r+M+6],B=I[r+M+7],b*=T[M],0!=(w|x|_|C|S|k|B)?(w*=T[M+1],x*=T[M+2],_*=T[M+3],C*=T[M+4],S*=T[M+5],k*=T[M+6],B*=T[M+7],s=(o=(o=d*b+128>>8)+(s=d*C+128>>8)+1>>1)-s,E=(p=x)*h+(A=k)*u+128>>8,p=p*u-A*h+128>>8,v=(g=(g=f*(w-B)+128>>8)+(v=S<<4)+1>>1)-v,m=(y=(y=f*(w+B)+128>>8)+(m=_<<4)+1>>1)-m,A=(o=o+(A=E)+1>>1)-A,p=(s=s+p+1>>1)-p,E=g*c+y*l+2048>>12,g=g*l-y*c+2048>>12,y=E,E=m*n+v*t+2048>>12,m=m*t-v*n+2048>>12,v=E,i[M]=o+y,i[M+7]=o-y,i[M+1]=s+v,i[M+6]=s-v,i[M+2]=p+m,i[M+5]=p-m,i[M+3]=A+g,i[M+4]=A-g):(E=d*b+512>>10,i[M]=E,i[M+1]=E,i[M+2]=E,i[M+3]=E,i[M+4]=E,i[M+5]=E,i[M+6]=E,i[M+7]=E);for(var F=0;F<8;++F)b=i[F],0!=((w=i[F+8])|(x=i[F+16])|(_=i[F+24])|(C=i[F+32])|(S=i[F+40])|(k=i[F+48])|(B=i[F+56]))?(s=(o=4112+((o=d*b+2048>>12)+(s=d*C+2048>>12)+1>>1))-s,E=(p=x)*h+(A=k)*u+2048>>12,p=p*u-A*h+2048>>12,A=E,v=(g=(g=f*(w-B)+2048>>12)+(v=S)+1>>1)-v,m=(y=(y=f*(w+B)+2048>>12)+(m=_)+1>>1)-m,E=g*c+y*l+2048>>12,g=g*l-y*c+2048>>12,y=E,E=m*n+v*t+2048>>12,m=m*t-v*n+2048>>12,B=(o=o+A+1>>1)-y,w=(s=s+p+1>>1)+(v=E),k=s-v,x=(p=s-p)+m,S=p-m,_=(A=o-A)+g,C=A-g,(b=o+y)<16?b=0:b>=4080?b=255:b>>=4,w<16?w=0:w>=4080?w=255:w>>=4,x<16?x=0:x>=4080?x=255:x>>=4,_<16?_=0:_>=4080?_=255:_>>=4,C<16?C=0:C>=4080?C=255:C>>=4,S<16?S=0:S>=4080?S=255:S>>=4,k<16?k=0:k>=4080?k=255:k>>=4,B<16?B=0:B>=4080?B=255:B>>=4,I[r+F]=b,I[r+F+8]=w,I[r+F+16]=x,I[r+F+24]=_,I[r+F+32]=C,I[r+F+40]=S,I[r+F+48]=k,I[r+F+56]=B):(E=(E=d*b+8192>>14)<-2040?0:E>=2024?255:E+2056>>4,I[r+F]=E,I[r+F+8]=E,I[r+F+16]=E,I[r+F+24]=E,I[r+F+32]=E,I[r+F+40]=E,I[r+F+48]=E,I[r+F+56]=E)}function y(e,t){for(var n=t.blocksPerLine,r=t.blocksPerColumn,i=new Int16Array(64),a=0;a<r;a++)for(var o=0;o<n;o++){v(t,g(t,a,o),i)}return t.blockData}function b(e,t,n=t){const r=e.length-1;var a=n<t?n:t;if(t>=r)return null;var o=(0,i.readUint16)(e,t);if(o>=65472&&o<=65534)return{invalid:null,marker:o,offset:t};for(var s=(0,i.readUint16)(e,a);!(s>=65472&&s<=65534);){if(++a>=r)return null;s=(0,i.readUint16)(e,a)}return{invalid:o.toString(16),marker:s,offset:a}}return p.prototype={parse(t,{dnlScanLines:n=null}={}){function l(){const e=(0,i.readUint16)(t,d);let n=(d+=2)+e-2;var a=b(t,n,d);a&&a.invalid&&((0,r.warn)("readDataBlock - incorrect length, current marker is: "+a.invalid),n=a.offset);var o=t.subarray(d,n);return d+=o.length,o}function c(e){for(var t=Math.ceil(e.samplesPerLine/8/e.maxH),n=Math.ceil(e.scanLines/8/e.maxV),r=0;r<e.components.length;r++){Q=e.components[r];var i=Math.ceil(Math.ceil(e.samplesPerLine/8)*Q.h/e.maxH),a=Math.ceil(Math.ceil(e.scanLines/8)*Q.v/e.maxV),o=t*Q.h,s=64*(n*Q.v)*(o+1);Q.blockData=new Int16Array(s),Q.blocksPerLine=i,Q.blocksPerColumn=a}e.mcusPerLine=t,e.mcusPerColumn=n}var u,h,d=0,f=null,p=null;let g=0;var v=[],w=[],x=[];let _=(0,i.readUint16)(t,d);if(d+=2,65496!==_)throw new a("SOI not found");_=(0,i.readUint16)(t,d),d+=2;e:for(;65497!==_;){var C,S,k;switch(_){case 65504:case 65505:case 65506:case 65507:case 65508:case 65509:case 65510:case 65511:case 65512:case 65513:case 65514:case 65515:case 65516:case 65517:case 65518:case 65519:case 65534:var B=l();65504===_&&74===B[0]&&70===B[1]&&73===B[2]&&70===B[3]&&0===B[4]&&(f={version:{major:B[5],minor:B[6]},densityUnits:B[7],xDensity:B[8]<<8|B[9],yDensity:B[10]<<8|B[11],thumbWidth:B[12],thumbHeight:B[13],thumbData:B.subarray(14,14+3*B[12]*B[13])}),65518===_&&65===B[0]&&100===B[1]&&111===B[2]&&98===B[3]&&101===B[4]&&(p={version:B[5]<<8|B[6],flags0:B[7]<<8|B[8],flags1:B[9]<<8|B[10],transformCode:B[11]});break;case 65499:for(var E=(0,i.readUint16)(t,d)+(d+=2)-2;d<E;){var T=t[d++],I=new Uint16Array(64);if(T>>4==0)for(S=0;S<64;S++)I[e[S]]=t[d++];else{if(T>>4!=1)throw new a("DQT - invalid table spec");for(S=0;S<64;S++)I[e[S]]=(0,i.readUint16)(t,d),d+=2}v[15&T]=I}break;case 65472:case 65473:case 65474:if(u)throw new a("Only single frame JPEGs supported");d+=2,(u={}).extended=65473===_,u.progressive=65474===_,u.precision=t[d++];const y=(0,i.readUint16)(t,d);d+=2,u.scanLines=n||y,u.samplesPerLine=(0,i.readUint16)(t,d),d+=2,u.components=[],u.componentIds={};var M,F=t[d++],D=0,P=0;for(C=0;C<F;C++){M=t[d];var O=t[d+1]>>4,L=15&t[d+1];D<O&&(D=O),P<L&&(P=L);var R=t[d+2];k=u.components.push({h:O,v:L,quantizationId:R,quantizationTable:null}),u.componentIds[M]=k-1,d+=3}u.maxH=D,u.maxV=P,c(u);break;case 65476:const X=(0,i.readUint16)(t,d);for(d+=2,C=2;C<X;){var N=t[d++],U=new Uint8Array(16),H=0;for(S=0;S<16;S++,d++)H+=U[S]=t[d];var j=new Uint8Array(H);for(S=0;S<H;S++,d++)j[S]=t[d];C+=17+H,(N>>4==0?x:w)[15&N]=A(U,j)}break;case 65501:d+=2,h=(0,i.readUint16)(t,d),d+=2;break;case 65498:const J=1==++g&&!n;d+=2;var Q,z=t[d++],V=[];for(C=0;C<z;C++){var G=u.componentIds[t[d++]];Q=u.components[G];var $=t[d++];Q.huffmanTableDC=x[$>>4],Q.huffmanTableAC=w[15&$],V.push(Q)}var q=t[d++],W=t[d++],K=t[d++];try{var Y=m(t,d,u,V,h,q,W,K>>4,15&K,J);d+=Y}catch(e){if(e instanceof o)return(0,r.warn)(`${e.message} -- attempting to re-parse the JPEG image.`),this.parse(t,{dnlScanLines:e.scanLines});if(e instanceof s){(0,r.warn)(`${e.message} -- ignoring the rest of the image data.`);break e}throw e}break;case 65500:d+=4;break;case 65535:255!==t[d]&&d--;break;default:const Z=b(t,d-2,d-3);if(Z&&Z.invalid){(0,r.warn)("JpegImage.parse - unexpected data, current marker is: "+Z.invalid),d=Z.offset;break}if(d>=t.length-1){(0,r.warn)("JpegImage.parse - reached the end of the image data without finding an EOI marker (0xFFD9).");break e}throw new a("JpegImage.parse - unknown marker: "+_.toString(16))}_=(0,i.readUint16)(t,d),d+=2}for(this.width=u.samplesPerLine,this.height=u.scanLines,this.jfif=f,this.adobe=p,this.components=[],C=0;C<u.components.length;C++){var X=v[(Q=u.components[C]).quantizationId];X&&(Q.quantizationTable=X),this.components.push({output:y(0,Q),scaleX:Q.h/u.maxH,scaleY:Q.v/u.maxV,blocksPerLine:Q.blocksPerLine,blocksPerColumn:Q.blocksPerColumn})}this.numComponents=this.components.length},_getLinearizedBlockData(e,t,n=!1){var r,i,a,o,s,l,c,u,h,d,f,p=this.width/e,A=this.height/t,g=0,m=this.components.length,v=e*t*m,y=new Uint8ClampedArray(v),b=new Uint32Array(e);let w;for(c=0;c<m;c++){if(i=(r=this.components[c]).scaleX*p,a=r.scaleY*A,g=c,f=r.output,o=r.blocksPerLine+1<<3,i!==w){for(s=0;s<e;s++)u=0|s*i,b[s]=(4294967288&u)<<3|7&u;w=i}for(l=0;l<t;l++)for(d=o*(4294967288&(u=0|l*a))|(7&u)<<3,s=0;s<e;s++)y[g]=f[d+b[s]],g+=m}let x=this._decodeTransform;if(n||4!==m||x||(x=new Int32Array([-256,255,-256,255,-256,255,-256,255])),x)for(c=0;c<v;)for(u=0,h=0;u<m;u++,c++,h+=2)y[c]=(y[c]*x[h]>>8)+x[h+1];return y},get _isColorConversionNeeded(){return this.adobe?!!this.adobe.transformCode:3===this.numComponents?0!==this._colorTransform:1===this._colorTransform},_convertYccToRgb:function(e){for(var t,n,r,i=0,a=e.length;i<a;i+=3)t=e[i],n=e[i+1],r=e[i+2],e[i]=t-179.456+1.402*r,e[i+1]=t+135.459-.344*n-.714*r,e[i+2]=t-226.816+1.772*n;return e},_convertYcckToRgb:function(e){for(var t,n,r,i,a=0,o=0,s=e.length;o<s;o+=4)t=e[o],n=e[o+1],r=e[o+2],i=e[o+3],e[a++]=n*(-660635669420364e-19*n+.000437130475926232*r-54080610064599e-18*t+.00048449797120281*i-.154362151871126)-122.67195406894+r*(-.000957964378445773*r+.000817076911346625*t-.00477271405408747*i+1.53380253221734)+t*(.000961250184130688*t-.00266257332283933*i+.48357088451265)+i*(-.000336197177618394*i+.484791561490776),e[a++]=107.268039397724+n*(219927104525741e-19*n-.000640992018297945*r+.000659397001245577*t+.000426105652938837*i-.176491792462875)+r*(-.000778269941513683*r+.00130872261408275*t+.000770482631801132*i-.151051492775562)+t*(.00126935368114843*t-.00265090189010898*i+.25802910206845)+i*(-.000318913117588328*i-.213742400323665),e[a++]=n*(-.000570115196973677*n-263409051004589e-19*r+.0020741088115012*t-.00288260236853442*i+.814272968359295)-20.810012546947+r*(-153496057440975e-19*r-.000132689043961446*t+.000560833691242812*i-.195152027534049)+t*(.00174418132927582*t-.00255243321439347*i+.116935020465145)+i*(-.000343531996510555*i+.24165260232407);return e.subarray(0,a)},_convertYcckToCmyk:function(e){for(var t,n,r,i=0,a=e.length;i<a;i+=4)t=e[i],n=e[i+1],r=e[i+2],e[i]=434.456-t-1.402*r,e[i+1]=119.541-t+.344*n+.714*r,e[i+2]=481.816-t-1.772*n;return e},_convertCmykToRgb:function(e){for(var t,n,r,i,a=0,o=0,s=e.length;o<s;o+=4)t=e[o],n=e[o+1],r=e[o+2],i=e[o+3],e[a++]=255+t*(-6747147073602441e-20*t+.0008379262121013727*n+.0002894718188643294*r+.003264231057537806*i-1.1185611867203937)+n*(26374107616089405e-21*n-8626949158638572e-20*r-.0002748769067499491*i-.02155688794978967)+r*(-3878099212869363e-20*r-.0003267808279485286*i+.0686742238595345)-i*(.0003361971776183937*i+.7430659151342254),e[a++]=255+t*(.00013596372813588848*t+.000924537132573585*n+.00010567359618683593*r+.0004791864687436512*i-.3109689587515875)+n*(-.00023545346108370344*n+.0002702845253534714*r+.0020200308977307156*i-.7488052167015494)+r*(6834815998235662e-20*r+.00015168452363460973*i-.09751927774728933)-i*(.0003189131175883281*i+.7364883807733168),e[a++]=255+t*(13598650411385307e-21*t+.00012423956175490851*n+.0004751985097583589*r-36729317476630422e-22*i-.05562186980264034)+n*(.00016141380598724676*n+.0009692239130725186*r+.0007782692450036253*i-.44015232367526463)+r*(5.068882914068769e-7*r+.0017778369011375071*i-.7591454649749609)-i*(.0003435319965105553*i+.7063770186160144);return e.subarray(0,a)},getData({width:e,height:t,forceRGB:n=!1,isSourcePDF:r=!1}){if(this.numComponents>4)throw new a("Unsupported color mode");var i=this._getLinearizedBlockData(e,t,r);if(1===this.numComponents&&n){for(var o=i.length,s=new Uint8ClampedArray(3*o),l=0,c=0;c<o;c++){var u=i[c];s[l++]=u,s[l++]=u,s[l++]=u}return s}if(3===this.numComponents&&this._isColorConversionNeeded)return this._convertYccToRgb(i);if(4===this.numComponents){if(this._isColorConversionNeeded)return n?this._convertYcckToRgb(i):this._convertYcckToCmyk(i);if(n)return this._convertCmykToRgb(i)}return i}},p}();t.JpegImage=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JpxStream=void 0;var r=n(12),i=n(21),a=n(2);const o=function(){function e(e,t,n,i){this.stream=e,this.maybeLength=t,this.dict=n,this.params=i,r.DecodeStream.call(this,t)}return e.prototype=Object.create(r.DecodeStream.prototype),Object.defineProperty(e.prototype,"bytes",{get:function(){return(0,a.shadow)(this,"bytes",this.stream.getBytes(this.maybeLength))},configurable:!0}),e.prototype.ensureBuffer=function(e){},e.prototype.readBlock=function(){if(this.eof)return;const e=new i.JpxImage;e.parse(this.bytes);const t=e.width,n=e.height,r=e.componentsCount,a=e.tiles.length;if(1===a)this.buffer=e.tiles[0].items;else{const i=new Uint8ClampedArray(t*n*r);for(let n=0;n<a;n++){const a=e.tiles[n],o=a.width,s=a.height,l=a.left,c=a.top,u=a.items;let h=0,d=(t*c+l)*r;const f=t*r,p=o*r;for(let e=0;e<s;e++){const e=u.subarray(h,h+p);i.set(e,d),h+=p,d+=f}}this.buffer=i}this.bufferLength=this.buffer.length,this.eof=!0},e}();t.JpxStream=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JpxImage=void 0;var r=n(2),i=n(8),a=n(17);class o extends r.BaseException{constructor(e){super(`JPX error: ${e}`)}}var s=function(){var e={LL:0,LH:1,HL:1,HH:2};function t(){this.failOnCorruptedImage=!1}function n(e,t){e.x0=Math.ceil(t.XOsiz/e.XRsiz),e.x1=Math.ceil(t.Xsiz/e.XRsiz),e.y0=Math.ceil(t.YOsiz/e.YRsiz),e.y1=Math.ceil(t.Ysiz/e.YRsiz),e.width=e.x1-e.x0,e.height=e.y1-e.y0}function s(e,t){for(var n,r=e.SIZ,i=[],a=Math.ceil((r.Xsiz-r.XTOsiz)/r.XTsiz),o=Math.ceil((r.Ysiz-r.YTOsiz)/r.YTsiz),s=0;s<o;s++)for(var l=0;l<a;l++)(n={}).tx0=Math.max(r.XTOsiz+l*r.XTsiz,r.XOsiz),n.ty0=Math.max(r.YTOsiz+s*r.YTsiz,r.YOsiz),n.tx1=Math.min(r.XTOsiz+(l+1)*r.XTsiz,r.Xsiz),n.ty1=Math.min(r.YTOsiz+(s+1)*r.YTsiz,r.Ysiz),n.width=n.tx1-n.tx0,n.height=n.ty1-n.ty0,n.components=[],i.push(n);e.tiles=i;for(var c=0,u=r.Csiz;c<u;c++)for(var h=t[c],d=0,f=i.length;d<f;d++){var p={};n=i[d],p.tcx0=Math.ceil(n.tx0/h.XRsiz),p.tcy0=Math.ceil(n.ty0/h.YRsiz),p.tcx1=Math.ceil(n.tx1/h.XRsiz),p.tcy1=Math.ceil(n.ty1/h.YRsiz),p.width=p.tcx1-p.tcx0,p.height=p.tcy1-p.tcy0,n.components[c]=p}}function l(e,t,n){var r=t.codingStyleParameters,i={};return r.entropyCoderWithCustomPrecincts?(i.PPx=r.precinctsSizes[n].PPx,i.PPy=r.precinctsSizes[n].PPy):(i.PPx=15,i.PPy=15),i.xcb_=n>0?Math.min(r.xcb,i.PPx-1):Math.min(r.xcb,i.PPx),i.ycb_=n>0?Math.min(r.ycb,i.PPy-1):Math.min(r.ycb,i.PPy),i}function c(e,t,n){var r=1<<n.PPx,i=1<<n.PPy,a=0===t.resLevel,o=1<<n.PPx+(a?0:-1),s=1<<n.PPy+(a?0:-1),l=t.trx1>t.trx0?Math.ceil(t.trx1/r)-Math.floor(t.trx0/r):0,c=t.try1>t.try0?Math.ceil(t.try1/i)-Math.floor(t.try0/i):0,u=l*c;t.precinctParameters={precinctWidth:r,precinctHeight:i,numprecinctswide:l,numprecinctshigh:c,numprecincts:u,precinctWidthInSubband:o,precinctHeightInSubband:s}}function u(e,t,n){var r,i,a,o,s=n.xcb_,l=n.ycb_,c=1<<s,u=1<<l,h=t.tbx0>>s,d=t.tby0>>l,f=t.tbx1+c-1>>s,p=t.tby1+u-1>>l,A=t.resolution.precinctParameters,g=[],m=[];for(i=d;i<p;i++)for(r=h;r<f;r++){if((a={cbx:r,cby:i,tbx0:c*r,tby0:u*i,tbx1:c*(r+1),tby1:u*(i+1)}).tbx0_=Math.max(t.tbx0,a.tbx0),a.tby0_=Math.max(t.tby0,a.tby0),a.tbx1_=Math.min(t.tbx1,a.tbx1),a.tby1_=Math.min(t.tby1,a.tby1),o=Math.floor((a.tbx0_-t.tbx0)/A.precinctWidthInSubband)+Math.floor((a.tby0_-t.tby0)/A.precinctHeightInSubband)*A.numprecinctswide,a.precinctNumber=o,a.subbandType=t.type,a.Lblock=3,!(a.tbx1_<=a.tbx0_||a.tby1_<=a.tby0_)){g.push(a);var v=m[o];void 0!==v?(r<v.cbxMin?v.cbxMin=r:r>v.cbxMax&&(v.cbxMax=r),i<v.cbyMin?v.cbxMin=i:i>v.cbyMax&&(v.cbyMax=i)):m[o]=v={cbxMin:r,cbyMin:i,cbxMax:r,cbyMax:i},a.precinct=v}}t.codeblockParameters={codeblockWidth:s,codeblockHeight:l,numcodeblockwide:f-h+1,numcodeblockhigh:p-d+1},t.codeblocks=g,t.precincts=m}function h(e,t,n){for(var r=[],i=e.subbands,a=0,o=i.length;a<o;a++)for(var s=i[a].codeblocks,l=0,c=s.length;l<c;l++){var u=s[l];u.precinctNumber===t&&r.push(u)}return{layerNumber:n,codeblocks:r}}function d(e,t,n,r,i){var a=e*r.minWidth,o=t*r.minHeight;if(a%n.width!=0||o%n.height!=0)return null;var s=o/n.width*i.precinctParameters.numprecinctswide;return a/n.height+s}function f(e){for(var t=e.components.length,n=Number.MAX_VALUE,r=Number.MAX_VALUE,i=0,a=0,o=new Array(t),s=0;s<t;s++){for(var l=e.components[s],c=l.codingStyleParameters.decompositionLevelsCount,u=new Array(c+1),h=Number.MAX_VALUE,d=Number.MAX_VALUE,f=0,p=0,A=1,g=c;g>=0;--g){var m=l.resolutions[g],v=A*m.precinctParameters.precinctWidth,y=A*m.precinctParameters.precinctHeight;h=Math.min(h,v),d=Math.min(d,y),f=Math.max(f,m.precinctParameters.numprecinctswide),p=Math.max(p,m.precinctParameters.numprecinctshigh),u[g]={width:v,height:y},A<<=1}n=Math.min(n,h),r=Math.min(r,d),i=Math.max(i,f),a=Math.max(a,p),o[s]={resolutions:u,minWidth:h,minHeight:d,maxNumWide:f,maxNumHigh:p}}return{components:o,minWidth:n,minHeight:r,maxNumWide:i,maxNumHigh:a}}function p(e){for(var t=e.SIZ,n=e.currentTile.index,r=e.tiles[n],i=t.Csiz,a=0;a<i;a++){for(var s=r.components[a],p=s.codingStyleParameters.decompositionLevelsCount,A=[],g=[],m=0;m<=p;m++){var v,y=l(0,s,m),b={},w=1<<p-m;if(b.trx0=Math.ceil(s.tcx0/w),b.try0=Math.ceil(s.tcy0/w),b.trx1=Math.ceil(s.tcx1/w),b.try1=Math.ceil(s.tcy1/w),b.resLevel=m,c(0,b,y),A.push(b),0===m)(v={}).type="LL",v.tbx0=Math.ceil(s.tcx0/w),v.tby0=Math.ceil(s.tcy0/w),v.tbx1=Math.ceil(s.tcx1/w),v.tby1=Math.ceil(s.tcy1/w),v.resolution=b,u(0,v,y),g.push(v),b.subbands=[v];else{var x=1<<p-m+1,_=[];(v={}).type="HL",v.tbx0=Math.ceil(s.tcx0/x-.5),v.tby0=Math.ceil(s.tcy0/x),v.tbx1=Math.ceil(s.tcx1/x-.5),v.tby1=Math.ceil(s.tcy1/x),v.resolution=b,u(0,v,y),g.push(v),_.push(v),(v={}).type="LH",v.tbx0=Math.ceil(s.tcx0/x),v.tby0=Math.ceil(s.tcy0/x-.5),v.tbx1=Math.ceil(s.tcx1/x),v.tby1=Math.ceil(s.tcy1/x-.5),v.resolution=b,u(0,v,y),g.push(v),_.push(v),(v={}).type="HH",v.tbx0=Math.ceil(s.tcx0/x-.5),v.tby0=Math.ceil(s.tcy0/x-.5),v.tbx1=Math.ceil(s.tcx1/x-.5),v.tby1=Math.ceil(s.tcy1/x-.5),v.resolution=b,u(0,v,y),g.push(v),_.push(v),b.subbands=_}}s.resolutions=A,s.subbands=g}var C=r.codingStyleDefaultParameters.progressionOrder;switch(C){case 0:r.packetsIterator=new function(e){for(var t=e.SIZ,n=e.currentTile.index,r=e.tiles[n],i=r.codingStyleDefaultParameters.layersCount,a=t.Csiz,s=0,l=0;l<a;l++)s=Math.max(s,r.components[l].codingStyleParameters.decompositionLevelsCount);var c=0,u=0,d=0,f=0;this.nextPacket=function(){for(;c<i;c++){for(;u<=s;u++){for(;d<a;d++){var e=r.components[d];if(!(u>e.codingStyleParameters.decompositionLevelsCount)){for(var t=e.resolutions[u],n=t.precinctParameters.numprecincts;f<n;){var l=h(t,f,c);return f++,l}f=0}}d=0}u=0}throw new o("Out of packets")}}(e);break;case 1:r.packetsIterator=new function(e){for(var t=e.SIZ,n=e.currentTile.index,r=e.tiles[n],i=r.codingStyleDefaultParameters.layersCount,a=t.Csiz,s=0,l=0;l<a;l++)s=Math.max(s,r.components[l].codingStyleParameters.decompositionLevelsCount);var c=0,u=0,d=0,f=0;this.nextPacket=function(){for(;c<=s;c++){for(;u<i;u++){for(;d<a;d++){var e=r.components[d];if(!(c>e.codingStyleParameters.decompositionLevelsCount)){for(var t=e.resolutions[c],n=t.precinctParameters.numprecincts;f<n;){var l=h(t,f,u);return f++,l}f=0}}d=0}u=0}throw new o("Out of packets")}}(e);break;case 2:r.packetsIterator=new function(e){var t,n,r,i,a=e.SIZ,s=e.currentTile.index,l=e.tiles[s],c=l.codingStyleDefaultParameters.layersCount,u=a.Csiz,d=0;for(r=0;r<u;r++){const e=l.components[r];d=Math.max(d,e.codingStyleParameters.decompositionLevelsCount)}var f=new Int32Array(d+1);for(n=0;n<=d;++n){var p=0;for(r=0;r<u;++r){var A=l.components[r].resolutions;n<A.length&&(p=Math.max(p,A[n].precinctParameters.numprecincts))}f[n]=p}t=0,n=0,r=0,i=0,this.nextPacket=function(){for(;n<=d;n++){for(;i<f[n];i++){for(;r<u;r++){const o=l.components[r];if(!(n>o.codingStyleParameters.decompositionLevelsCount)){var e=o.resolutions[n],a=e.precinctParameters.numprecincts;if(!(i>=a)){for(;t<c;){var s=h(e,i,t);return t++,s}t=0}}}r=0}i=0}throw new o("Out of packets")}}(e);break;case 3:r.packetsIterator=new function(e){var t=e.SIZ,n=e.currentTile.index,r=e.tiles[n],i=r.codingStyleDefaultParameters.layersCount,a=t.Csiz,s=f(r),l=s,c=0,u=0,p=0,A=0,g=0;this.nextPacket=function(){for(;g<l.maxNumHigh;g++){for(;A<l.maxNumWide;A++){for(;p<a;p++){for(var e=r.components[p],t=e.codingStyleParameters.decompositionLevelsCount;u<=t;u++){var n=e.resolutions[u],f=s.components[p].resolutions[u],m=d(A,g,f,l,n);if(null!==m){for(;c<i;){var v=h(n,m,c);return c++,v}c=0}}u=0}p=0}A=0}throw new o("Out of packets")}}(e);break;case 4:r.packetsIterator=new function(e){var t=e.SIZ,n=e.currentTile.index,r=e.tiles[n],i=r.codingStyleDefaultParameters.layersCount,a=t.Csiz,s=f(r),l=0,c=0,u=0,p=0,A=0;this.nextPacket=function(){for(;u<a;++u){for(var e=r.components[u],t=s.components[u],n=e.codingStyleParameters.decompositionLevelsCount;A<t.maxNumHigh;A++){for(;p<t.maxNumWide;p++){for(;c<=n;c++){var f=e.resolutions[c],g=t.resolutions[c],m=d(p,A,g,t,f);if(null!==m){for(;l<i;){var v=h(f,m,l);return l++,v}l=0}}c=0}p=0}A=0}throw new o("Out of packets")}}(e);break;default:throw new o(`Unsupported progression order ${C}`)}}function A(e,t,n,r){var a,o=0,s=0,l=!1;function c(e){for(;s<e;){var r=t[n+o];o++,l?(a=a<<7|r,s+=7,l=!1):(a=a<<8|r,s+=8),255===r&&(l=!0)}return a>>>(s-=e)&(1<<e)-1}function u(e){return 255===t[n+o-1]&&t[n+o]===e?(h(1),!0):255===t[n+o]&&t[n+o+1]===e&&(h(2),!0)}function h(e){o+=e}function d(){s=0,l&&(o++,l=!1)}function f(){if(0===c(1))return 1;if(0===c(1))return 2;var e=c(2);return e<3?e+3:(e=c(5))<31?e+6:(e=c(7))+37}for(var p=e.currentTile.index,A=e.tiles[p],g=e.COD.sopMarkerUsed,m=e.COD.ephMarkerUsed,v=A.packetsIterator;o<r;){d(),g&&u(145)&&h(4);var w=v.nextPacket();if(c(1)){for(var x,_=w.layerNumber,C=[],S=0,k=w.codeblocks.length;S<k;S++){var B=(x=w.codeblocks[S]).precinct,E=x.cbx-B.cbxMin,T=x.cby-B.cbyMin,I=!1,M=!1;if(void 0!==x.included)I=!!c(1);else{var F,D;if(void 0!==(B=x.precinct).inclusionTree)F=B.inclusionTree;else{var P=B.cbxMax-B.cbxMin+1,O=B.cbyMax-B.cbyMin+1;F=new b(P,O,_),D=new y(P,O),B.inclusionTree=F,B.zeroBitPlanesTree=D}if(F.reset(E,T,_))for(;;){if(!c(1)){F.incrementValue(_);break}if(!F.nextLevel()){x.included=!0,I=M=!0;break}}}if(I){if(M){for((D=B.zeroBitPlanesTree).reset(E,T);;)if(c(1)){if(!D.nextLevel())break}else D.incrementValue();x.zeroBitPlanes=D.value}for(var L=f();c(1);)x.Lblock++;var R=(0,i.log2)(L),N=c((L<1<<R?R-1:R)+x.Lblock);C.push({codeblock:x,codingpasses:L,dataLength:N})}}for(d(),m&&u(146);C.length>0;){var U=C.shift();void 0===(x=U.codeblock).data&&(x.data=[]),x.data.push({data:t,start:n+o,end:n+o+U.dataLength,codingpasses:U.codingpasses}),o+=U.dataLength}}}return o}function g(e,t,n,r,i,o,s,l){for(var c=r.tbx0,u=r.tby0,h=r.tbx1-r.tbx0,d=r.codeblocks,f="H"===r.type.charAt(0)?1:0,p="H"===r.type.charAt(1)?t:0,A=0,g=d.length;A<g;++A){var m=d[A],v=m.tbx1_-m.tbx0_,y=m.tby1_-m.tby0_;if(0!==v&&0!==y&&void 0!==m.data){var b,x;b=new w(v,y,m.subbandType,m.zeroBitPlanes,o),x=2;var _,C,S,k=m.data,B=0,E=0;for(_=0,C=k.length;_<C;_++)B+=(S=k[_]).end-S.start,E+=S.codingpasses;var T=new Uint8Array(B),I=0;for(_=0,C=k.length;_<C;_++){var M=(S=k[_]).data.subarray(S.start,S.end);T.set(M,I),I+=M.length}var F=new a.ArithmeticDecoder(T,0,B);for(b.setDecoder(F),_=0;_<E;_++){switch(x){case 0:b.runSignificancePropagationPass();break;case 1:b.runMagnitudeRefinementPass();break;case 2:b.runCleanupPass(),l&&b.checkSegmentationSymbol()}x=(x+1)%3}var D,P,O,L=m.tbx0_-c+(m.tby0_-u)*h,R=b.coefficentsSign,N=b.coefficentsMagnitude,U=b.bitsDecoded,H=s?0:.5;I=0;var j="LL"!==r.type;for(_=0;_<y;_++){var Q=2*(L/h|0)*(t-h)+f+p;for(D=0;D<v;D++){if(0!==(P=N[I])){P=(P+H)*i,0!==R[I]&&(P=-P),O=U[I];var z=j?Q+(L<<1):L;e[z]=s&&O>=o?P:P*(1<<o-O)}L++,I++}L+=h-v}}}}function m(t,n,r){for(var i=n.components[r],a=i.codingStyleParameters,o=i.quantizationParameters,s=a.decompositionLevelsCount,l=o.SPqcds,c=o.scalarExpounded,u=o.guardBits,h=a.segmentationSymbolUsed,d=t.components[r].precision,f=a.reversibleTransformation,p=f?new C:new _,A=[],m=0,v=0;v<=s;v++){for(var y=i.resolutions[v],b=y.trx1-y.trx0,w=y.try1-y.try0,x=new Float32Array(b*w),S=0,k=y.subbands.length;S<k;S++){var B,E;c?(B=l[m].mu,E=l[m].epsilon,m++):(B=l[0].mu,E=l[0].epsilon+(v>0?1-v:0));var T=y.subbands[S],I=e[T.type];g(x,b,0,T,f?1:2**(d+I-E)*(1+B/2048),u+E-1,f,h)}A.push({width:b,height:w,items:x})}var M=p.calculate(A,i.tcx0,i.tcy0);return{left:i.tcx0,top:i.tcy0,width:M.width,height:M.height,items:M.items}}function v(e,t){for(var n=e.SIZ.Csiz,r=e.tiles[t],i=0;i<n;i++){var a=r.components[i],o=void 0!==e.currentTile.QCC[i]?e.currentTile.QCC[i]:e.currentTile.QCD;a.quantizationParameters=o;var s=void 0!==e.currentTile.COC[i]?e.currentTile.COC[i]:e.currentTile.COD;a.codingStyleParameters=s}r.codingStyleDefaultParameters=e.currentTile.COD}t.prototype={parse:function(e){if(65359!==(0,i.readUint16)(e,0))for(var t=0,n=e.length;t<n;){var a=8,s=(0,i.readUint32)(e,t),l=(0,i.readUint32)(e,t+4);if(t+=a,1===s&&(s=4294967296*(0,i.readUint32)(e,t)+(0,i.readUint32)(e,t+4),t+=8,a+=8),0===s&&(s=n-t+a),s<a)throw new o("Invalid box field size");var c=s-a,u=!0;switch(l){case 1785737832:u=!1;break;case 1668246642:var h=e[t];if(1===h){var d=(0,i.readUint32)(e,t+3);switch(d){case 16:case 17:case 18:break;default:(0,r.warn)("Unknown colorspace "+d)}}else 2===h&&(0,r.info)("ICC profile not supported");break;case 1785737827:this.parseCodestream(e,t,t+c);break;case 1783636e3:218793738!==(0,i.readUint32)(e,t)&&(0,r.warn)("Invalid JP2 signature");break;case 1783634458:case 1718909296:case 1920099697:case 1919251232:case 1768449138:break;default:var f=String.fromCharCode(l>>24&255,l>>16&255,l>>8&255,255&l);(0,r.warn)("Unsupported header type "+l+" ("+f+")")}u&&(t+=c)}else this.parseCodestream(e,0,e.length)},parseImageProperties:function(e){for(var t=e.getByte();t>=0;){if(65361===(t<<8|(t=e.getByte()))){e.skip(4);var n=e.getInt32()>>>0,r=e.getInt32()>>>0,i=e.getInt32()>>>0,a=e.getInt32()>>>0;e.skip(16);var s=e.getUint16();return this.width=n-i,this.height=r-a,this.componentsCount=s,void(this.bitsPerComponent=8)}}throw new o("No size marker found in JPX stream")},parseCodestream:function(e,t,a){var l={},c=!1;try{for(var u=t;u+1<a;){var h=(0,i.readUint16)(e,u);u+=2;var d,f,g,y,b,w,x=0;switch(h){case 65359:l.mainHeader=!0;break;case 65497:break;case 65361:x=(0,i.readUint16)(e,u);var _={};_.Xsiz=(0,i.readUint32)(e,u+4),_.Ysiz=(0,i.readUint32)(e,u+8),_.XOsiz=(0,i.readUint32)(e,u+12),_.YOsiz=(0,i.readUint32)(e,u+16),_.XTsiz=(0,i.readUint32)(e,u+20),_.YTsiz=(0,i.readUint32)(e,u+24),_.XTOsiz=(0,i.readUint32)(e,u+28),_.YTOsiz=(0,i.readUint32)(e,u+32);var C=(0,i.readUint16)(e,u+36);_.Csiz=C;var S=[];d=u+38;for(var k=0;k<C;k++){var B={precision:1+(127&e[d]),isSigned:!!(128&e[d]),XRsiz:e[d+1],YRsiz:e[d+2]};d+=3,n(B,_),S.push(B)}l.SIZ=_,l.components=S,s(l,S),l.QCC=[],l.COC=[];break;case 65372:x=(0,i.readUint16)(e,u);var E={};switch(d=u+2,31&(f=e[d++])){case 0:y=8,b=!0;break;case 1:y=16,b=!1;break;case 2:y=16,b=!0;break;default:throw new Error("Invalid SQcd value "+f)}for(E.noQuantization=8===y,E.scalarExpounded=b,E.guardBits=f>>5,g=[];d<x+u;){var T={};8===y?(T.epsilon=e[d++]>>3,T.mu=0):(T.epsilon=e[d]>>3,T.mu=(7&e[d])<<8|e[d+1],d+=2),g.push(T)}E.SPqcds=g,l.mainHeader?l.QCD=E:(l.currentTile.QCD=E,l.currentTile.QCC=[]);break;case 65373:x=(0,i.readUint16)(e,u);var I,M={};switch(d=u+2,l.SIZ.Csiz<257?I=e[d++]:(I=(0,i.readUint16)(e,d),d+=2),31&(f=e[d++])){case 0:y=8,b=!0;break;case 1:y=16,b=!1;break;case 2:y=16,b=!0;break;default:throw new Error("Invalid SQcd value "+f)}for(M.noQuantization=8===y,M.scalarExpounded=b,M.guardBits=f>>5,g=[];d<x+u;)T={},8===y?(T.epsilon=e[d++]>>3,T.mu=0):(T.epsilon=e[d]>>3,T.mu=(7&e[d])<<8|e[d+1],d+=2),g.push(T);M.SPqcds=g,l.mainHeader?l.QCC[I]=M:l.currentTile.QCC[I]=M;break;case 65362:x=(0,i.readUint16)(e,u);var F={};d=u+2;var D=e[d++];F.entropyCoderWithCustomPrecincts=!!(1&D),F.sopMarkerUsed=!!(2&D),F.ephMarkerUsed=!!(4&D),F.progressionOrder=e[d++],F.layersCount=(0,i.readUint16)(e,d),d+=2,F.multipleComponentTransform=e[d++],F.decompositionLevelsCount=e[d++],F.xcb=2+(15&e[d++]),F.ycb=2+(15&e[d++]);var P=e[d++];if(F.selectiveArithmeticCodingBypass=!!(1&P),F.resetContextProbabilities=!!(2&P),F.terminationOnEachCodingPass=!!(4&P),F.verticallyStripe=!!(8&P),F.predictableTermination=!!(16&P),F.segmentationSymbolUsed=!!(32&P),F.reversibleTransformation=e[d++],F.entropyCoderWithCustomPrecincts){for(var O=[];d<x+u;){var L=e[d++];O.push({PPx:15&L,PPy:L>>4})}F.precinctsSizes=O}var R=[];if(F.selectiveArithmeticCodingBypass&&R.push("selectiveArithmeticCodingBypass"),F.resetContextProbabilities&&R.push("resetContextProbabilities"),F.terminationOnEachCodingPass&&R.push("terminationOnEachCodingPass"),F.verticallyStripe&&R.push("verticallyStripe"),F.predictableTermination&&R.push("predictableTermination"),R.length>0)throw c=!0,new Error("Unsupported COD options ("+R.join(", ")+")");l.mainHeader?l.COD=F:(l.currentTile.COD=F,l.currentTile.COC=[]);break;case 65424:x=(0,i.readUint16)(e,u),(w={}).index=(0,i.readUint16)(e,u+2),w.length=(0,i.readUint32)(e,u+4),w.dataEnd=w.length+u-2,w.partIndex=e[u+8],w.partsCount=e[u+9],l.mainHeader=!1,0===w.partIndex&&(w.COD=l.COD,w.COC=l.COC.slice(0),w.QCD=l.QCD,w.QCC=l.QCC.slice(0)),l.currentTile=w;break;case 65427:0===(w=l.currentTile).partIndex&&(v(l,w.index),p(l)),A(l,e,u,x=w.dataEnd-u);break;case 65365:case 65367:case 65368:case 65380:x=(0,i.readUint16)(e,u);break;case 65363:throw new Error("Codestream code 0xFF53 (COC) is not implemented");default:throw new Error("Unknown codestream code: "+h.toString(16))}u+=x}}catch(e){if(c||this.failOnCorruptedImage)throw new o(e.message);(0,r.warn)("JPX: Trying to recover from: "+e.message)}this.tiles=function(e){for(var t=e.SIZ,n=e.components,r=t.Csiz,i=[],a=0,o=e.tiles.length;a<o;a++){var s,l=e.tiles[a],c=[];for(s=0;s<r;s++)c[s]=m(e,l,s);var u,h,d,f,p,A,g,v=c[0],y=new Uint8ClampedArray(v.items.length*r),b={left:v.left,top:v.top,width:v.width,height:v.height,items:y},w=0;if(l.codingStyleDefaultParameters.multipleComponentTransform){var x=4===r,_=c[0].items,C=c[1].items,S=c[2].items,k=x?c[3].items:null;u=n[0].precision-8,h=.5+(128<<u);var B=l.components[0],E=r-3;if(f=_.length,B.codingStyleParameters.reversibleTransformation)for(d=0;d<f;d++,w+=E){p=_[d]+h,A=C[d],g=S[d];const e=p-(g+A>>2);y[w++]=e+g>>u,y[w++]=e>>u,y[w++]=e+A>>u}else for(d=0;d<f;d++,w+=E)p=_[d]+h,A=C[d],g=S[d],y[w++]=p+1.402*g>>u,y[w++]=p-.34413*A-.71414*g>>u,y[w++]=p+1.772*A>>u;if(x)for(d=0,w=3;d<f;d++,w+=4)y[w]=k[d]+h>>u}else for(s=0;s<r;s++){var T=c[s].items;for(u=n[s].precision-8,h=.5+(128<<u),w=s,d=0,f=T.length;d<f;d++)y[w]=T[d]+h>>u,w+=r}i.push(b)}return i}(l),this.width=l.SIZ.Xsiz-l.SIZ.XOsiz,this.height=l.SIZ.Ysiz-l.SIZ.YOsiz,this.componentsCount=l.SIZ.Csiz}};var y=function(){function e(e,t){var n=(0,i.log2)(Math.max(e,t))+1;this.levels=[];for(var r=0;r<n;r++){var a={width:e,height:t,items:[]};this.levels.push(a),e=Math.ceil(e/2),t=Math.ceil(t/2)}}return e.prototype={reset:function(e,t){for(var n,r=0,i=0;r<this.levels.length;){var a=e+t*(n=this.levels[r]).width;if(void 0!==n.items[a]){i=n.items[a];break}n.index=a,e>>=1,t>>=1,r++}r--,(n=this.levels[r]).items[n.index]=i,this.currentLevel=r,delete this.value},incrementValue:function(){var e=this.levels[this.currentLevel];e.items[e.index]++},nextLevel:function(){var e=this.currentLevel,t=this.levels[e],n=t.items[t.index];return--e<0?(this.value=n,!1):(this.currentLevel=e,(t=this.levels[e]).items[t.index]=n,!0)}},e}(),b=function(){function e(e,t,n){var r=(0,i.log2)(Math.max(e,t))+1;this.levels=[];for(var a=0;a<r;a++){for(var o=new Uint8Array(e*t),s=0,l=o.length;s<l;s++)o[s]=n;var c={width:e,height:t,items:o};this.levels.push(c),e=Math.ceil(e/2),t=Math.ceil(t/2)}}return e.prototype={reset:function(e,t,n){for(var r=0;r<this.levels.length;){var i=this.levels[r],a=e+t*i.width;i.index=a;var o=i.items[a];if(255===o)break;if(o>n)return this.currentLevel=r,this.propagateValues(),!1;e>>=1,t>>=1,r++}return this.currentLevel=r-1,!0},incrementValue:function(e){var t=this.levels[this.currentLevel];t.items[t.index]=e+1,this.propagateValues()},propagateValues:function(){for(var e=this.currentLevel,t=this.levels[e],n=t.items[t.index];--e>=0;)(t=this.levels[e]).items[t.index]=n},nextLevel:function(){var e=this.currentLevel,t=this.levels[e],n=t.items[t.index];return t.items[t.index]=255,!(--e<0)&&(this.currentLevel=e,(t=this.levels[e]).items[t.index]=n,!0)}},e}(),w=function(){var e=new Uint8Array([0,5,8,0,3,7,8,0,4,7,8,0,0,0,0,0,1,6,8,0,3,7,8,0,4,7,8,0,0,0,0,0,2,6,8,0,3,7,8,0,4,7,8,0,0,0,0,0,2,6,8,0,3,7,8,0,4,7,8,0,0,0,0,0,2,6,8,0,3,7,8,0,4,7,8]),t=new Uint8Array([0,3,4,0,5,7,7,0,8,8,8,0,0,0,0,0,1,3,4,0,6,7,7,0,8,8,8,0,0,0,0,0,2,3,4,0,6,7,7,0,8,8,8,0,0,0,0,0,2,3,4,0,6,7,7,0,8,8,8,0,0,0,0,0,2,3,4,0,6,7,7,0,8,8,8]),n=new Uint8Array([0,1,2,0,1,2,2,0,2,2,2,0,0,0,0,0,3,4,5,0,4,5,5,0,5,5,5,0,0,0,0,0,6,7,7,0,7,7,7,0,7,7,7,0,0,0,0,0,8,8,8,0,8,8,8,0,8,8,8,0,0,0,0,0,8,8,8,0,8,8,8,0,8,8,8]);function r(r,i,a,o,s){let l;this.width=r,this.height=i,l="HH"===a?n:"HL"===a?t:e,this.contextLabelTable=l;var c=r*i;let u;this.neighborsSignificance=new Uint8Array(c),this.coefficentsSign=new Uint8Array(c),u=s>14?new Uint32Array(c):s>6?new Uint16Array(c):new Uint8Array(c),this.coefficentsMagnitude=u,this.processingFlags=new Uint8Array(c);var h=new Uint8Array(c);if(0!==o)for(var d=0;d<c;d++)h[d]=o;this.bitsDecoded=h,this.reset()}return r.prototype={setDecoder:function(e){this.decoder=e},reset:function(){this.contexts=new Int8Array(19),this.contexts[0]=8,this.contexts[17]=92,this.contexts[18]=6},setNeighborsSignificance:function(e,t,n){var r,i=this.neighborsSignificance,a=this.width,o=this.height,s=t>0,l=t+1<a;e>0&&(r=n-a,s&&(i[r-1]+=16),l&&(i[r+1]+=16),i[r]+=4),e+1<o&&(r=n+a,s&&(i[r-1]+=16),l&&(i[r+1]+=16),i[r]+=4),s&&(i[n-1]+=1),l&&(i[n+1]+=1),i[n]|=128},runSignificancePropagationPass:function(){for(var e=this.decoder,t=this.width,n=this.height,r=this.coefficentsMagnitude,i=this.coefficentsSign,a=this.neighborsSignificance,o=this.processingFlags,s=this.contexts,l=this.contextLabelTable,c=this.bitsDecoded,u=0;u<n;u+=4)for(var h=0;h<t;h++)for(var d=u*t+h,f=0;f<4;f++,d+=t){var p=u+f;if(p>=n)break;if(o[d]&=-2,!r[d]&&a[d]){var A=l[a[d]];if(e.readBit(s,A)){var g=this.decodeSignBit(p,h,d);i[d]=g,r[d]=1,this.setNeighborsSignificance(p,h,d),o[d]|=2}c[d]++,o[d]|=1}}},decodeSignBit:function(e,t,n){var r,i,a,o,s,l,c=this.width,u=this.height,h=this.coefficentsMagnitude,d=this.coefficentsSign;o=t>0&&0!==h[n-1],t+1<c&&0!==h[n+1]?(a=d[n+1],r=o?1-a-(i=d[n-1]):1-a-a):r=o?1-(i=d[n-1])-i:0;var f=3*r;return o=e>0&&0!==h[n-c],e+1<u&&0!==h[n+c]?(a=d[n+c],r=o?1-a-(i=d[n-c])+f:1-a-a+f):r=o?1-(i=d[n-c])-i+f:f,r>=0?(s=9+r,l=this.decoder.readBit(this.contexts,s)):(s=9-r,l=1^this.decoder.readBit(this.contexts,s)),l},runMagnitudeRefinementPass:function(){for(var e,t=this.decoder,n=this.width,r=this.height,i=this.coefficentsMagnitude,a=this.neighborsSignificance,o=this.contexts,s=this.bitsDecoded,l=this.processingFlags,c=n*r,u=4*n,h=0;h<c;h=e){e=Math.min(c,h+u);for(var d=0;d<n;d++)for(var f=h+d;f<e;f+=n)if(i[f]&&0==(1&l[f])){var p=16;if(0!=(2&l[f]))l[f]^=2,p=0===(127&a[f])?15:14;var A=t.readBit(o,p);i[f]=i[f]<<1|A,s[f]++,l[f]|=1}}},runCleanupPass:function(){for(var e,t=this.decoder,n=this.width,r=this.height,i=this.neighborsSignificance,a=this.coefficentsMagnitude,o=this.coefficentsSign,s=this.contexts,l=this.contextLabelTable,c=this.bitsDecoded,u=this.processingFlags,h=n,d=2*n,f=3*n,p=0;p<r;p=e){e=Math.min(p+4,r);for(var A=p*n,g=p+3<r,m=0;m<n;m++){var v,y=A+m,b=0,w=y,x=p;if(g&&0===u[y]&&0===u[y+h]&&0===u[y+d]&&0===u[y+f]&&0===i[y]&&0===i[y+h]&&0===i[y+d]&&0===i[y+f]){if(!t.readBit(s,18)){c[y]++,c[y+h]++,c[y+d]++,c[y+f]++;continue}0!==(b=t.readBit(s,17)<<1|t.readBit(s,17))&&(x=p+b,w+=b*n),v=this.decodeSignBit(x,m,w),o[w]=v,a[w]=1,this.setNeighborsSignificance(x,m,w),u[w]|=2,w=y;for(var _=p;_<=x;_++,w+=n)c[w]++;b++}for(x=p+b;x<e;x++,w+=n)if(!a[w]&&0==(1&u[w])){var C=l[i[w]];1===t.readBit(s,C)&&(v=this.decodeSignBit(x,m,w),o[w]=v,a[w]=1,this.setNeighborsSignificance(x,m,w),u[w]|=2),c[w]++}}}},checkSegmentationSymbol:function(){var e=this.decoder,t=this.contexts;if(10!==(e.readBit(t,17)<<3|e.readBit(t,17)<<2|e.readBit(t,17)<<1|e.readBit(t,17)))throw new o("Invalid segmentation symbol")}},r}(),x=function(){function e(){}return e.prototype.calculate=function(e,t,n){for(var r=e[0],i=1,a=e.length;i<a;i++)r=this.iterate(r,e[i],t,n);return r},e.prototype.extend=function(e,t,n){var r=t-1,i=t+1,a=t+n-2,o=t+n;e[r--]=e[i++],e[o++]=e[a--],e[r--]=e[i++],e[o++]=e[a--],e[r--]=e[i++],e[o++]=e[a--],e[r]=e[i],e[o]=e[a]},e.prototype.iterate=function(e,t,n,r){var i,a,o,s,l,c,u=e.width,h=e.height,d=e.items,f=t.width,p=t.height,A=t.items;for(o=0,i=0;i<h;i++)for(s=2*i*f,a=0;a<u;a++,o++,s+=2)A[s]=d[o];d=e.items=null;var g=new Float32Array(f+8);if(1===f){if(0!=(1&n))for(c=0,o=0;c<p;c++,o+=f)A[o]*=.5}else for(c=0,o=0;c<p;c++,o+=f)g.set(A.subarray(o,o+f),4),this.extend(g,4,f),this.filter(g,4,f),A.set(g.subarray(4,4+f),o);var m=16,v=[];for(i=0;i<m;i++)v.push(new Float32Array(p+8));var y,b=0;if(e=4+p,1===p){if(0!=(1&r))for(l=0;l<f;l++)A[l]*=.5}else for(l=0;l<f;l++){if(0===b){for(m=Math.min(f-l,m),o=l,s=4;s<e;o+=f,s++)for(y=0;y<m;y++)v[y][s]=A[o+y];b=m}var w=v[--b];if(this.extend(w,4,p),this.filter(w,4,p),0===b)for(o=l-m+1,s=4;s<e;o+=f,s++)for(y=0;y<m;y++)A[o+y]=v[y][s]}return{width:f,height:p,items:A}},e}(),_=function(){function e(){x.call(this)}return e.prototype=Object.create(x.prototype),e.prototype.filter=function(e,t,n){var r,i,a,o,s=n>>1,l=-1.586134342059924,c=-.052980118572961,u=.882911075530934,h=.443506852043971,d=1.230174104914001;for(r=(t|=0)-3,i=s+4;i--;r+=2)e[r]*=.8128930661159609;for(a=h*e[(r=t-2)-1],i=s+3;i--&&(o=h*e[r+1],e[r]=d*e[r]-a-o,i--);r+=2)a=h*e[(r+=2)+1],e[r]=d*e[r]-a-o;for(a=u*e[(r=t-1)-1],i=s+2;i--&&(o=u*e[r+1],e[r]-=a+o,i--);r+=2)a=u*e[(r+=2)+1],e[r]-=a+o;for(a=c*e[(r=t)-1],i=s+1;i--&&(o=c*e[r+1],e[r]-=a+o,i--);r+=2)a=c*e[(r+=2)+1],e[r]-=a+o;if(0!==s)for(a=l*e[(r=t+1)-1],i=s;i--&&(o=l*e[r+1],e[r]-=a+o,i--);r+=2)a=l*e[(r+=2)+1],e[r]-=a+o},e}(),C=function(){function e(){x.call(this)}return e.prototype=Object.create(x.prototype),e.prototype.filter=function(e,t,n){var r,i,a=n>>1;for(r=t|=0,i=a+1;i--;r+=2)e[r]-=e[r-1]+e[r+1]+2>>2;for(r=t+1,i=a;i--;r+=2)e[r]+=e[r-1]+e[r+1]>>1},e}();return t}();t.JpxImage=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.calculateSHA512=t.calculateSHA384=t.calculateSHA256=t.calculateMD5=t.PDF20=t.PDF17=t.CipherTransformFactory=t.ARCFourCipher=t.AES256Cipher=t.AES128Cipher=void 0;var r=n(2),i=n(5),a=n(12),o=function(){function e(e){this.a=0,this.b=0;var t,n,r=new Uint8Array(256),i=0,a=e.length;for(t=0;t<256;++t)r[t]=t;for(t=0;t<256;++t)i=i+(n=r[t])+e[t%a]&255,r[t]=r[i],r[i]=n;this.s=r}return e.prototype={encryptBlock:function(e){var t,n,r,i=e.length,a=this.a,o=this.b,s=this.s,l=new Uint8Array(i);for(t=0;t<i;++t)r=s[o=o+(n=s[a=a+1&255])&255],s[a]=r,s[o]=n,l[t]=e[t]^s[n+r&255];return this.a=a,this.b=o,l}},e.prototype.decryptBlock=e.prototype.encryptBlock,e}();t.ARCFourCipher=o;var s=function(){var e=new Uint8Array([7,12,17,22,7,12,17,22,7,12,17,22,7,12,17,22,5,9,14,20,5,9,14,20,5,9,14,20,5,9,14,20,4,11,16,23,4,11,16,23,4,11,16,23,4,11,16,23,6,10,15,21,6,10,15,21,6,10,15,21,6,10,15,21]),t=new Int32Array([-680876936,-389564586,606105819,-1044525330,-176418897,1200080426,-1473231341,-45705983,1770035416,-1958414417,-42063,-1990404162,1804603682,-40341101,-1502002290,1236535329,-165796510,-1069501632,643717713,-373897302,-701558691,38016083,-660478335,-405537848,568446438,-1019803690,-187363961,1163531501,-1444681467,-51403784,1735328473,-1926607734,-378558,-2022574463,1839030562,-35309556,-1530992060,1272893353,-155497632,-1094730640,681279174,-358537222,-722521979,76029189,-640364487,-421815835,530742520,-995338651,-198630844,1126891415,-1416354905,-57434055,1700485571,-1894986606,-1051523,-2054922799,1873313359,-30611744,-1560198380,1309151649,-145523070,-1120210379,718787259,-343485551]);return function(n,r,i){var a,o,s,l=1732584193,c=-271733879,u=-1732584194,h=271733878,d=i+72&-64,f=new Uint8Array(d);for(a=0;a<i;++a)f[a]=n[r++];for(f[a++]=128,s=d-8;a<s;)f[a++]=0;f[a++]=i<<3&255,f[a++]=i>>5&255,f[a++]=i>>13&255,f[a++]=i>>21&255,f[a++]=i>>>29&255,f[a++]=0,f[a++]=0,f[a++]=0;var p=new Int32Array(16);for(a=0;a<d;){for(o=0;o<16;++o,a+=4)p[o]=f[a]|f[a+1]<<8|f[a+2]<<16|f[a+3]<<24;var A,g,m=l,v=c,y=u,b=h;for(o=0;o<64;++o){o<16?(A=v&y|~v&b,g=o):o<32?(A=b&v|~b&y,g=5*o+1&15):o<48?(A=v^y^b,g=3*o+5&15):(A=y^(v|~b),g=7*o&15);var w=b,x=m+A+t[o]+p[g]|0,_=e[o];b=y,y=v,v=v+(x<<_|x>>>32-_)|0,m=w}l=l+m|0,c=c+v|0,u=u+y|0,h=h+b|0}return new Uint8Array([255&l,l>>8&255,l>>16&255,l>>>24&255,255&c,c>>8&255,c>>16&255,c>>>24&255,255&u,u>>8&255,u>>16&255,u>>>24&255,255&h,h>>8&255,h>>16&255,h>>>24&255])}}();t.calculateMD5=s;var l=function(){function e(e,t){this.high=0|e,this.low=0|t}return e.prototype={and:function(e){this.high&=e.high,this.low&=e.low},xor:function(e){this.high^=e.high,this.low^=e.low},or:function(e){this.high|=e.high,this.low|=e.low},shiftRight:function(e){e>=32?(this.low=this.high>>>e-32|0,this.high=0):(this.low=this.low>>>e|this.high<<32-e,this.high=this.high>>>e|0)},shiftLeft:function(e){e>=32?(this.high=this.low<<e-32,this.low=0):(this.high=this.high<<e|this.low>>>32-e,this.low=this.low<<e)},rotateRight:function(e){var t,n;32&e?(n=this.low,t=this.high):(t=this.low,n=this.high),e&=31,this.low=t>>>e|n<<32-e,this.high=n>>>e|t<<32-e},not:function(){this.high=~this.high,this.low=~this.low},add:function(e){var t=(this.low>>>0)+(e.low>>>0),n=(this.high>>>0)+(e.high>>>0);t>4294967295&&(n+=1),this.low=0|t,this.high=0|n},copyTo:function(e,t){e[t]=this.high>>>24&255,e[t+1]=this.high>>16&255,e[t+2]=this.high>>8&255,e[t+3]=255&this.high,e[t+4]=this.low>>>24&255,e[t+5]=this.low>>16&255,e[t+6]=this.low>>8&255,e[t+7]=255&this.low},assign:function(e){this.high=e.high,this.low=e.low}},e}(),c=function(){function e(e,t){return e>>>t|e<<32-t}function t(e,t,n){return e&t^~e&n}function n(e,t,n){return e&t^e&n^t&n}function r(t){return e(t,2)^e(t,13)^e(t,22)}function i(t){return e(t,6)^e(t,11)^e(t,25)}function a(t){return e(t,7)^e(t,18)^t>>>3}var o=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];return function(s,l,c){var u,h,d,f=1779033703,p=3144134277,A=1013904242,g=2773480762,m=1359893119,v=2600822924,y=528734635,b=1541459225,w=64*Math.ceil((c+9)/64),x=new Uint8Array(w);for(u=0;u<c;++u)x[u]=s[l++];for(x[u++]=128,d=w-8;u<d;)x[u++]=0;x[u++]=0,x[u++]=0,x[u++]=0,x[u++]=c>>>29&255,x[u++]=c>>21&255,x[u++]=c>>13&255,x[u++]=c>>5&255,x[u++]=c<<3&255;var _,C=new Uint32Array(64);for(u=0;u<w;){for(h=0;h<16;++h)C[h]=x[u]<<24|x[u+1]<<16|x[u+2]<<8|x[u+3],u+=4;for(h=16;h<64;++h)C[h]=0|(e(_=C[h-2],17)^e(_,19)^_>>>10)+C[h-7]+a(C[h-15])+C[h-16];var S,k,B=f,E=p,T=A,I=g,M=m,F=v,D=y,P=b;for(h=0;h<64;++h)S=P+i(M)+t(M,F,D)+o[h]+C[h],k=r(B)+n(B,E,T),P=D,D=F,F=M,M=I+S|0,I=T,T=E,E=B,B=S+k|0;f=f+B|0,p=p+E|0,A=A+T|0,g=g+I|0,m=m+M|0,v=v+F|0,y=y+D|0,b=b+P|0}return new Uint8Array([f>>24&255,f>>16&255,f>>8&255,255&f,p>>24&255,p>>16&255,p>>8&255,255&p,A>>24&255,A>>16&255,A>>8&255,255&A,g>>24&255,g>>16&255,g>>8&255,255&g,m>>24&255,m>>16&255,m>>8&255,255&m,v>>24&255,v>>16&255,v>>8&255,255&v,y>>24&255,y>>16&255,y>>8&255,255&y,b>>24&255,b>>16&255,b>>8&255,255&b])}}();t.calculateSHA256=c;var u=function(){function e(e,t,n,r,i){e.assign(t),e.and(n),i.assign(t),i.not(),i.and(r),e.xor(i)}function t(e,t,n,r,i){e.assign(t),e.and(n),i.assign(t),i.and(r),e.xor(i),i.assign(n),i.and(r),e.xor(i)}function n(e,t,n){e.assign(t),e.rotateRight(28),n.assign(t),n.rotateRight(34),e.xor(n),n.assign(t),n.rotateRight(39),e.xor(n)}function r(e,t,n){e.assign(t),e.rotateRight(14),n.assign(t),n.rotateRight(18),e.xor(n),n.assign(t),n.rotateRight(41),e.xor(n)}function i(e,t,n){e.assign(t),e.rotateRight(1),n.assign(t),n.rotateRight(8),e.xor(n),n.assign(t),n.shiftRight(7),e.xor(n)}function a(e,t,n){e.assign(t),e.rotateRight(19),n.assign(t),n.rotateRight(61),e.xor(n),n.assign(t),n.shiftRight(6),e.xor(n)}var o=[new l(1116352408,3609767458),new l(1899447441,602891725),new l(3049323471,3964484399),new l(3921009573,2173295548),new l(961987163,4081628472),new l(1508970993,3053834265),new l(2453635748,2937671579),new l(2870763221,3664609560),new l(3624381080,2734883394),new l(310598401,1164996542),new l(607225278,1323610764),new l(1426881987,3590304994),new l(1925078388,4068182383),new l(2162078206,991336113),new l(2614888103,633803317),new l(3248222580,3479774868),new l(3835390401,2666613458),new l(4022224774,944711139),new l(264347078,2341262773),new l(604807628,2007800933),new l(770255983,1495990901),new l(1249150122,1856431235),new l(1555081692,3175218132),new l(1996064986,2198950837),new l(2554220882,3999719339),new l(2821834349,766784016),new l(2952996808,2566594879),new l(3210313671,3203337956),new l(3336571891,1034457026),new l(3584528711,2466948901),new l(113926993,3758326383),new l(338241895,168717936),new l(666307205,1188179964),new l(773529912,1546045734),new l(1294757372,1522805485),new l(1396182291,2643833823),new l(1695183700,2343527390),new l(1986661051,1014477480),new l(2177026350,1206759142),new l(2456956037,344077627),new l(2730485921,1290863460),new l(2820302411,3158454273),new l(3259730800,3505952657),new l(3345764771,106217008),new l(3516065817,3606008344),new l(3600352804,1432725776),new l(4094571909,1467031594),new l(275423344,851169720),new l(430227734,3100823752),new l(506948616,1363258195),new l(659060556,3750685593),new l(883997877,3785050280),new l(958139571,3318307427),new l(1322822218,3812723403),new l(1537002063,2003034995),new l(1747873779,3602036899),new l(1955562222,1575990012),new l(2024104815,1125592928),new l(2227730452,2716904306),new l(2361852424,442776044),new l(2428436474,593698344),new l(2756734187,3733110249),new l(3204031479,2999351573),new l(3329325298,3815920427),new l(3391569614,3928383900),new l(3515267271,566280711),new l(3940187606,3454069534),new l(4118630271,4000239992),new l(116418474,1914138554),new l(174292421,2731055270),new l(289380356,3203993006),new l(460393269,320620315),new l(685471733,587496836),new l(852142971,1086792851),new l(1017036298,365543100),new l(1126000580,2618297676),new l(1288033470,3409855158),new l(1501505948,4234509866),new l(1607167915,987167468),new l(1816402316,1246189591)];return function(s,c,u,h){var d,f,p,A,g,m,v,y;(h=!!h)?(d=new l(3418070365,3238371032),f=new l(1654270250,914150663),p=new l(2438529370,812702999),A=new l(355462360,4144912697),g=new l(1731405415,4290775857),m=new l(2394180231,1750603025),v=new l(3675008525,1694076839),y=new l(1203062813,3204075428)):(d=new l(1779033703,4089235720),f=new l(3144134277,2227873595),p=new l(1013904242,4271175723),A=new l(2773480762,1595750129),g=new l(1359893119,2917565137),m=new l(2600822924,725511199),v=new l(528734635,4215389547),y=new l(1541459225,327033209));var b,w,x,_=128*Math.ceil((u+17)/128),C=new Uint8Array(_);for(b=0;b<u;++b)C[b]=s[c++];for(C[b++]=128,x=_-16;b<x;)C[b++]=0;C[b++]=0,C[b++]=0,C[b++]=0,C[b++]=0,C[b++]=0,C[b++]=0,C[b++]=0,C[b++]=0,C[b++]=0,C[b++]=0,C[b++]=0,C[b++]=u>>>29&255,C[b++]=u>>21&255,C[b++]=u>>13&255,C[b++]=u>>5&255,C[b++]=u<<3&255;var S=new Array(80);for(b=0;b<80;b++)S[b]=new l(0,0);var k,B,E=new l(0,0),T=new l(0,0),I=new l(0,0),M=new l(0,0),F=new l(0,0),D=new l(0,0),P=new l(0,0),O=new l(0,0),L=new l(0,0),R=new l(0,0),N=new l(0,0),U=new l(0,0);for(b=0;b<_;){for(w=0;w<16;++w)S[w].high=C[b]<<24|C[b+1]<<16|C[b+2]<<8|C[b+3],S[w].low=C[b+4]<<24|C[b+5]<<16|C[b+6]<<8|C[b+7],b+=8;for(w=16;w<80;++w)a(k=S[w],S[w-2],U),k.add(S[w-7]),i(N,S[w-15],U),k.add(N),k.add(S[w-16]);for(E.assign(d),T.assign(f),I.assign(p),M.assign(A),F.assign(g),D.assign(m),P.assign(v),O.assign(y),w=0;w<80;++w)L.assign(O),r(N,F,U),L.add(N),e(N,F,D,P,U),L.add(N),L.add(o[w]),L.add(S[w]),n(R,E,U),t(N,E,T,I,U),R.add(N),k=O,O=P,P=D,D=F,M.add(L),F=M,M=I,I=T,T=E,k.assign(L),k.add(R),E=k;d.add(E),f.add(T),p.add(I),A.add(M),g.add(F),m.add(D),v.add(P),y.add(O)}return h?(B=new Uint8Array(48),d.copyTo(B,0),f.copyTo(B,8),p.copyTo(B,16),A.copyTo(B,24),g.copyTo(B,32),m.copyTo(B,40)):(B=new Uint8Array(64),d.copyTo(B,0),f.copyTo(B,8),p.copyTo(B,16),A.copyTo(B,24),g.copyTo(B,32),m.copyTo(B,40),v.copyTo(B,48),y.copyTo(B,56)),B}}();t.calculateSHA512=u;var h=function(){return function(e,t,n){return u(e,t,n,!0)}}();t.calculateSHA384=h;var d=function(){function e(){}return e.prototype={decryptBlock:function(e){return e}},e}();class f{constructor(){this.constructor===f&&(0,r.unreachable)("Cannot initialize AESBaseCipher."),this._s=new Uint8Array([99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22]),this._inv_s=new Uint8Array([82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125]),this._mix=new Uint32Array([0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795]),this._mixCol=new Uint8Array(256);for(let e=0;e<256;e++)this._mixCol[e]=e<128?e<<1:e<<1^27;this.buffer=new Uint8Array(16),this.bufferPosition=0}_expandKey(e){(0,r.unreachable)("Cannot call `_expandKey` on the base class")}_decrypt(e,t){let n,r,i;const a=new Uint8Array(16);a.set(e);for(let e=0,n=this._keySize;e<16;++e,++n)a[e]^=t[n];for(let e=this._cyclesOfRepetition-1;e>=1;--e){n=a[13],a[13]=a[9],a[9]=a[5],a[5]=a[1],a[1]=n,n=a[14],r=a[10],a[14]=a[6],a[10]=a[2],a[6]=n,a[2]=r,n=a[15],r=a[11],i=a[7],a[15]=a[3],a[11]=n,a[7]=r,a[3]=i;for(let e=0;e<16;++e)a[e]=this._inv_s[a[e]];for(let n=0,r=16*e;n<16;++n,++r)a[n]^=t[r];for(let e=0;e<16;e+=4){const t=this._mix[a[e]],r=this._mix[a[e+1]],i=this._mix[a[e+2]],o=this._mix[a[e+3]];n=t^r>>>8^r<<24^i>>>16^i<<16^o>>>24^o<<8,a[e]=n>>>24&255,a[e+1]=n>>16&255,a[e+2]=n>>8&255,a[e+3]=255&n}}n=a[13],a[13]=a[9],a[9]=a[5],a[5]=a[1],a[1]=n,n=a[14],r=a[10],a[14]=a[6],a[10]=a[2],a[6]=n,a[2]=r,n=a[15],r=a[11],i=a[7],a[15]=a[3],a[11]=n,a[7]=r,a[3]=i;for(let e=0;e<16;++e)a[e]=this._inv_s[a[e]],a[e]^=t[e];return a}_encrypt(e,t){const n=this._s;let r,i,a;const o=new Uint8Array(16);o.set(e);for(let e=0;e<16;++e)o[e]^=t[e];for(let e=1;e<this._cyclesOfRepetition;e++){for(let e=0;e<16;++e)o[e]=n[o[e]];a=o[1],o[1]=o[5],o[5]=o[9],o[9]=o[13],o[13]=a,a=o[2],i=o[6],o[2]=o[10],o[6]=o[14],o[10]=a,o[14]=i,a=o[3],i=o[7],r=o[11],o[3]=o[15],o[7]=a,o[11]=i,o[15]=r;for(let e=0;e<16;e+=4){const t=o[e+0],n=o[e+1],i=o[e+2],a=o[e+3];r=t^n^i^a,o[e+0]^=r^this._mixCol[t^n],o[e+1]^=r^this._mixCol[n^i],o[e+2]^=r^this._mixCol[i^a],o[e+3]^=r^this._mixCol[a^t]}for(let n=0,r=16*e;n<16;++n,++r)o[n]^=t[r]}for(let e=0;e<16;++e)o[e]=n[o[e]];a=o[1],o[1]=o[5],o[5]=o[9],o[9]=o[13],o[13]=a,a=o[2],i=o[6],o[2]=o[10],o[6]=o[14],o[10]=a,o[14]=i,a=o[3],i=o[7],r=o[11],o[3]=o[15],o[7]=a,o[11]=i,o[15]=r;for(let e=0,n=this._keySize;e<16;++e,++n)o[e]^=t[n];return o}_decryptBlock2(e,t){const n=e.length;let r=this.buffer,i=this.bufferPosition;const a=[];let o=this.iv;for(let t=0;t<n;++t){if(r[i]=e[t],++i<16)continue;const n=this._decrypt(r,this._key);for(let e=0;e<16;++e)n[e]^=o[e];o=r,a.push(n),r=new Uint8Array(16),i=0}if(this.buffer=r,this.bufferLength=i,this.iv=o,0===a.length)return new Uint8Array(0);let s=16*a.length;if(t){const e=a[a.length-1];let t=e[15];if(t<=16){for(let n=15,r=16-t;n>=r;--n)if(e[n]!==t){t=0;break}s-=t,a[a.length-1]=e.subarray(0,16-t)}}const l=new Uint8Array(s);for(let e=0,t=0,n=a.length;e<n;++e,t+=16)l.set(a[e],t);return l}decryptBlock(e,t,n=null){const r=e.length,i=this.buffer;let a=this.bufferPosition;if(n)this.iv=n;else{for(let t=0;a<16&&t<r;++t,++a)i[a]=e[t];if(a<16)return this.bufferLength=a,new Uint8Array(0);this.iv=i,e=e.subarray(16)}return this.buffer=new Uint8Array(16),this.bufferLength=0,this.decryptBlock=this._decryptBlock2,this.decryptBlock(e,t)}encrypt(e,t){const n=e.length;let r=this.buffer,i=this.bufferPosition;const a=[];t||(t=new Uint8Array(16));for(let o=0;o<n;++o){if(r[i]=e[o],++i<16)continue;for(let e=0;e<16;++e)r[e]^=t[e];const n=this._encrypt(r,this._key);t=n,a.push(n),r=new Uint8Array(16),i=0}if(this.buffer=r,this.bufferLength=i,this.iv=t,0===a.length)return new Uint8Array(0);const o=16*a.length,s=new Uint8Array(o);for(let e=0,t=0,n=a.length;e<n;++e,t+=16)s.set(a[e],t);return s}}class p extends f{constructor(e){super(),this._cyclesOfRepetition=10,this._keySize=160,this._rcon=new Uint8Array([141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141]),this._key=this._expandKey(e)}_expandKey(e){const t=this._s,n=this._rcon,r=new Uint8Array(176);r.set(e);for(let e=16,i=1;e<176;++i){let a=r[e-3],o=r[e-2],s=r[e-1],l=r[e-4];a=t[a],o=t[o],s=t[s],l=t[l],a^=n[i];for(let t=0;t<4;++t)r[e]=a^=r[e-16],r[++e]=o^=r[e-16],r[++e]=s^=r[e-16],r[++e]=l^=r[e-16],e++}return r}}t.AES128Cipher=p;class A extends f{constructor(e){super(),this._cyclesOfRepetition=14,this._keySize=224,this._key=this._expandKey(e)}_expandKey(e){const t=this._s,n=new Uint8Array(240);n.set(e);let r,i,a,o,s=1;for(let e=32,l=1;e<240;++l){e%32==16?(r=t[r],i=t[i],a=t[a],o=t[o]):e%32==0&&(r=n[e-3],i=n[e-2],a=n[e-1],o=n[e-4],r=t[r],i=t[i],a=t[a],o=t[o],r^=s,(s<<=1)>=256&&(s=255&(27^s)));for(let t=0;t<4;++t)n[e]=r^=n[e-32],n[++e]=i^=n[e-32],n[++e]=a^=n[e-32],n[++e]=o^=n[e-32],e++}return n}}t.AES256Cipher=A;var g=function(){function e(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function t(){}return t.prototype={checkOwnerPassword:function(t,n,r,i){var a=new Uint8Array(t.length+56);return a.set(t,0),a.set(n,t.length),a.set(r,t.length+n.length),e(c(a,0,a.length),i)},checkUserPassword:function(t,n,r){var i=new Uint8Array(t.length+8);return i.set(t,0),i.set(n,t.length),e(c(i,0,i.length),r)},getOwnerKey:function(e,t,n,r){var i=new Uint8Array(e.length+56);i.set(e,0),i.set(t,e.length),i.set(n,e.length+t.length);var a=c(i,0,i.length);return new A(a).decryptBlock(r,!1,new Uint8Array(16))},getUserKey:function(e,t,n){var r=new Uint8Array(e.length+8);r.set(e,0),r.set(t,e.length);var i=c(r,0,r.length);return new A(i).decryptBlock(n,!1,new Uint8Array(16))}},t}();t.PDF17=g;var m=function(){function e(e,t){var n=new Uint8Array(e.length+t.length);return n.set(e,0),n.set(t,e.length),n}function t(t,n,r){for(var i=c(n,0,n.length).subarray(0,32),a=[0],o=0;o<64||a[a.length-1]>o-32;){var s=t.length+i.length+r.length,l=new Uint8Array(64*s),d=e(t,i);d=e(d,r);for(var f=0,A=0;f<64;f++,A+=s)l.set(d,A);a=new p(i.subarray(0,16)).encrypt(l,i.subarray(16,32));for(var g=0,m=0;m<16;m++)g*=1,g%=3,g+=(a[m]>>>0)%3,g%=3;0===g?i=c(a,0,a.length):1===g?i=h(a,0,a.length):2===g&&(i=u(a,0,a.length)),o++}return i.subarray(0,32)}function n(){}function r(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return n.prototype={hash:function(e,n,r){return t(e,n,r)},checkOwnerPassword:function(e,n,i,a){var o=new Uint8Array(e.length+56);return o.set(e,0),o.set(n,e.length),o.set(i,e.length+n.length),r(t(e,o,i),a)},checkUserPassword:function(e,n,i){var a=new Uint8Array(e.length+8);return a.set(e,0),a.set(n,e.length),r(t(e,a,[]),i)},getOwnerKey:function(e,n,r,i){var a=new Uint8Array(e.length+56);a.set(e,0),a.set(n,e.length),a.set(r,e.length+n.length);var o=t(e,a,r);return new A(o).decryptBlock(i,!1,new Uint8Array(16))},getUserKey:function(e,n,r){var i=new Uint8Array(e.length+8);i.set(e,0),i.set(n,e.length);var a=t(e,i,[]);return new A(a).decryptBlock(r,!1,new Uint8Array(16))}},n}();t.PDF20=m;var v=function(){function e(e,t){this.StringCipherConstructor=e,this.StreamCipherConstructor=t}return e.prototype={createStream:function(e,t){var n=new this.StreamCipherConstructor;return new a.DecryptStream(e,t,function(e,t){return n.decryptBlock(e,t)})},decryptString:function(e){var t=new this.StringCipherConstructor,n=(0,r.stringToBytes)(e);return n=t.decryptBlock(n,!0),(0,r.bytesToString)(n)}},e}(),y=function(){var e=new Uint8Array([40,191,78,94,78,117,138,65,100,0,78,86,255,250,1,8,46,46,0,182,208,104,62,128,47,12,169,254,100,83,105,122]);function t(t,n,r,i,a,l,c,u){var h,d,f=40+r.length+t.length,p=new Uint8Array(f),A=0;if(n)for(d=Math.min(32,n.length);A<d;++A)p[A]=n[A];for(h=0;A<32;)p[A++]=e[h++];for(h=0,d=r.length;h<d;++h)p[A++]=r[h];for(p[A++]=255&a,p[A++]=a>>8&255,p[A++]=a>>16&255,p[A++]=a>>>24&255,h=0,d=t.length;h<d;++h)p[A++]=t[h];l>=4&&!u&&(p[A++]=255,p[A++]=255,p[A++]=255,p[A++]=255);var g=s(p,0,A),m=c>>3;if(l>=3)for(h=0;h<50;++h)g=s(g,0,m);var v,y=g.subarray(0,m);if(l>=3){for(A=0;A<32;++A)p[A]=e[A];for(h=0,d=t.length;h<d;++h)p[A++]=t[h];v=new o(y).encryptBlock(s(p,0,A)),d=y.length;var b,w=new Uint8Array(d);for(h=1;h<=19;++h){for(b=0;b<d;++b)w[b]=y[b]^h;v=new o(w).encryptBlock(v)}for(h=0,d=v.length;h<d;++h)if(i[h]!==v[h])return null}else for(h=0,d=(v=new o(y).encryptBlock(e)).length;h<d;++h)if(i[h]!==v[h])return null;return y}var n=i.Name.get("Identity");function a(a,l,c){var u=a.get("Filter");if(!(0,i.isName)(u,"Standard"))throw new r.FormatError("unknown encryption method");this.dict=a;var h=a.get("V");if(!Number.isInteger(h)||1!==h&&2!==h&&4!==h&&5!==h)throw new r.FormatError("unsupported encryption algorithm");this.algorithm=h;var d=a.get("Length");if(!d)if(h<=3)d=40;else{var f=a.get("CF"),p=a.get("StmF");if((0,i.isDict)(f)&&(0,i.isName)(p)){f.suppressEncryption=!0;var A=f.get(p.name);(d=A&&A.get("Length")||128)<40&&(d<<=3)}}if(!Number.isInteger(d)||d<40||d%8!=0)throw new r.FormatError("invalid key length");var v=(0,r.stringToBytes)(a.get("O")).subarray(0,32),y=(0,r.stringToBytes)(a.get("U")).subarray(0,32),b=a.get("P"),w=a.get("R"),x=(4===h||5===h)&&!1!==a.get("EncryptMetadata");this.encryptMetadata=x;var _,C,S=(0,r.stringToBytes)(l);if(c){if(6===w)try{c=(0,r.utf8StringToString)(c)}catch(e){(0,r.warn)("CipherTransformFactory: Unable to convert UTF8 encoded password.")}_=(0,r.stringToBytes)(c)}if(5!==h)C=t(S,_,v,y,b,w,d,x);else{var k=(0,r.stringToBytes)(a.get("O")).subarray(32,40),B=(0,r.stringToBytes)(a.get("O")).subarray(40,48),E=(0,r.stringToBytes)(a.get("U")).subarray(0,48),T=(0,r.stringToBytes)(a.get("U")).subarray(32,40),I=(0,r.stringToBytes)(a.get("U")).subarray(40,48),M=(0,r.stringToBytes)(a.get("OE")),F=(0,r.stringToBytes)(a.get("UE"));(0,r.stringToBytes)(a.get("Perms"));C=function(e,t,n,r,i,a,o,s,l,c,u,h){if(t){var d=Math.min(127,t.length);t=t.subarray(0,d)}else t=[];var f;return(f=6===e?new m:new g).checkUserPassword(t,s,o)?f.getUserKey(t,l,u):t.length&&f.checkOwnerPassword(t,r,a,n)?f.getOwnerKey(t,i,a,c):null}(w,_,v,k,B,E,y,T,I,M,F)}if(!C&&!c)throw new r.PasswordException("No password given",r.PasswordResponses.NEED_PASSWORD);if(!C&&c&&(C=t(S,function(t,n,r,i){var a,l,c=new Uint8Array(32),u=0;for(l=Math.min(32,t.length);u<l;++u)c[u]=t[u];for(a=0;u<32;)c[u++]=e[a++];var h,d=s(c,0,u),f=i>>3;if(r>=3)for(a=0;a<50;++a)d=s(d,0,d.length);if(r>=3){h=n;var p,A=new Uint8Array(f);for(a=19;a>=0;a--){for(p=0;p<f;++p)A[p]=d[p]^a;h=new o(A).encryptBlock(h)}}else h=new o(d.subarray(0,f)).encryptBlock(n);return h}(_,v,w,d),v,y,b,w,d,x)),!C)throw new r.PasswordException("Incorrect Password",r.PasswordResponses.INCORRECT_PASSWORD);if(this.encryptionKey=C,h>=4){var D=a.get("CF");(0,i.isDict)(D)&&(D.suppressEncryption=!0),this.cf=D,this.stmf=a.get("StmF")||n,this.strf=a.get("StrF")||n,this.eff=a.get("EFF")||this.stmf}}function l(e,t,n,r){var i,a,o=new Uint8Array(n.length+9);for(i=0,a=n.length;i<a;++i)o[i]=n[i];return o[i++]=255&e,o[i++]=e>>8&255,o[i++]=e>>16&255,o[i++]=255&t,o[i++]=t>>8&255,r&&(o[i++]=115,o[i++]=65,o[i++]=108,o[i++]=84),s(o,0,i).subarray(0,Math.min(n.length+5,16))}function c(e,t,n,a,s){if(!(0,i.isName)(t))throw new r.FormatError("Invalid crypt filter name.");var c,u=e.get(t.name);if(null!==u&&void 0!==u&&(c=u.get("CFM")),!c||"None"===c.name)return function(){return new d};if("V2"===c.name)return function(){return new o(l(n,a,s,!1))};if("AESV2"===c.name)return function(){return new p(l(n,a,s,!0))};if("AESV3"===c.name)return function(){return new A(s)};throw new r.FormatError("Unknown crypto method")}return a.prototype={createCipherTransform:function(e,t){if(4===this.algorithm||5===this.algorithm)return new v(c(this.cf,this.stmf,e,t,this.encryptionKey),c(this.cf,this.strf,e,t,this.encryptionKey));var n=l(e,t,this.encryptionKey,!1),r=function(){return new o(n)};return new v(r,r)}},a}();t.CipherTransformFactory=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ColorSpace=void 0;var r=n(2),i=n(5);class a{constructor(e,t){this.constructor===a&&(0,r.unreachable)("Cannot initialize ColorSpace."),this.name=e,this.numComps=t}getRgb(e,t){const n=new Uint8ClampedArray(3);return this.getRgbItem(e,t,n,0),n}getRgbItem(e,t,n,i){(0,r.unreachable)("Should not call ColorSpace.getRgbItem")}getRgbBuffer(e,t,n,i,a,o,s){(0,r.unreachable)("Should not call ColorSpace.getRgbBuffer")}getOutputLength(e,t){(0,r.unreachable)("Should not call ColorSpace.getOutputLength")}isPassthrough(e){return!1}isDefaultDecode(e,t){return a.isDefaultDecode(e,this.numComps)}fillRgb(e,t,n,r,i,a,o,s,l){const c=t*n;let u=null;const h=1<<o,d=n!==i||t!==r;if(this.isPassthrough(o))u=s;else if(1===this.numComps&&c>h&&"DeviceGray"!==this.name&&"DeviceRGB"!==this.name){const t=o<=8?new Uint8Array(h):new Uint16Array(h);for(let e=0;e<h;e++)t[e]=e;const n=new Uint8ClampedArray(3*h);if(this.getRgbBuffer(t,0,h,n,0,o,0),d){u=new Uint8Array(3*c);let e=0;for(let t=0;t<c;++t){const r=3*s[t];u[e++]=n[r],u[e++]=n[r+1],u[e++]=n[r+2]}}else{let t=0;for(let r=0;r<c;++r){const i=3*s[r];e[t++]=n[i],e[t++]=n[i+1],e[t++]=n[i+2],t+=l}}}else d?(u=new Uint8ClampedArray(3*c),this.getRgbBuffer(s,0,c,u,0,o,0)):this.getRgbBuffer(s,0,r*a,e,0,o,l);if(u)if(d)!function(e,t,n,r,i,a,o){o=1!==o?0:o;const s=n/i,l=r/a;let c,u=0;const h=new Uint16Array(i),d=3*n;for(let e=0;e<i;e++)h[e]=3*Math.floor(e*s);for(let n=0;n<a;n++){const r=Math.floor(n*l)*d;for(let n=0;n<i;n++)c=r+h[n],t[u++]=e[c++],t[u++]=e[c++],t[u++]=e[c++],u+=o}}(u,e,t,n,r,i,l);else{let t=0,n=0;for(let i=0,o=r*a;i<o;i++)e[t++]=u[n++],e[t++]=u[n++],e[t++]=u[n++],t+=l}}get usesZeroToOneRange(){return(0,r.shadow)(this,"usesZeroToOneRange",!0)}static parse(e,t,n,r){const i=this.parseToIR(e,t,n,r);return this.fromIR(i)}static fromIR(e){const t=Array.isArray(e)?e[0]:e;let n,i,a;switch(t){case"DeviceGrayCS":return this.singletons.gray;case"DeviceRgbCS":return this.singletons.rgb;case"DeviceCmykCS":return this.singletons.cmyk;case"CalGrayCS":return n=e[1],i=e[2],a=e[3],new d(n,i,a);case"CalRGBCS":n=e[1],i=e[2],a=e[3];const c=e[4];return new f(n,i,a,c);case"PatternCS":let u=e[1];return u&&(u=this.fromIR(u)),new s(u);case"IndexedCS":const h=e[1],A=e[2],g=e[3];return new l(this.fromIR(h),A,g);case"AlternateCS":const m=e[1],v=e[2],y=e[3];return new o(m,this.fromIR(v),y);case"LabCS":n=e[1],i=e[2];const b=e[3];return new p(n,i,b);default:throw new r.FormatError(`Unknown colorspace name: ${t}`)}}static parseToIR(e,t,n=null,a){if(e=t.fetchIfRef(e),(0,i.isName)(e))switch(e.name){case"DeviceGray":case"G":return"DeviceGrayCS";case"DeviceRGB":case"RGB":return"DeviceRgbCS";case"DeviceCMYK":case"CMYK":return"DeviceCmykCS";case"Pattern":return["PatternCS",null];default:if((0,i.isDict)(n)){const r=n.get("ColorSpace");if((0,i.isDict)(r)){const o=r.get(e.name);if(o){if((0,i.isName)(o))return this.parseToIR(o,t,n,a);e=o;break}}}throw new r.FormatError(`unrecognized colorspace ${e.name}`)}if(Array.isArray(e)){const o=t.fetchIfRef(e[0]).name;let s,l,c,u,h,d;switch(o){case"DeviceGray":case"G":return"DeviceGrayCS";case"DeviceRGB":case"RGB":return"DeviceRgbCS";case"DeviceCMYK":case"CMYK":return"DeviceCmykCS";case"CalGray":return["CalGrayCS",u=(l=t.fetchIfRef(e[1])).getArray("WhitePoint"),h=l.getArray("BlackPoint"),d=l.get("Gamma")];case"CalRGB":return["CalRGBCS",u=(l=t.fetchIfRef(e[1])).getArray("WhitePoint"),h=l.getArray("BlackPoint"),d=l.getArray("Gamma"),l.getArray("Matrix")];case"ICCBased":const f=t.fetchIfRef(e[1]).dict;if(s=f.get("N"),c=f.get("Alternate")){const e=this.parseToIR(c,t,n,a);if(this.fromIR(e,a).numComps===s)return e;(0,r.warn)("ICCBased color space: Ignoring incorrect /Alternate entry.")}if(1===s)return"DeviceGrayCS";if(3===s)return"DeviceRgbCS";if(4===s)return"DeviceCmykCS";break;case"Pattern":let p=e[1]||null;return p&&(p=this.parseToIR(p,t,n,a)),["PatternCS",p];case"Indexed":case"I":const A=this.parseToIR(e[1],t,n,a),g=t.fetchIfRef(e[2])+1;let m=t.fetchIfRef(e[3]);return(0,i.isStream)(m)&&(m=m.getBytes()),["IndexedCS",A,g,m];case"Separation":case"DeviceN":const v=t.fetchIfRef(e[1]);return["AlternateCS",s=Array.isArray(v)?v.length:1,c=this.parseToIR(e[2],t,n,a),a.create(t.fetchIfRef(e[3]))];case"Lab":return["LabCS",u=(l=t.fetchIfRef(e[1])).getArray("WhitePoint"),h=l.getArray("BlackPoint"),l.getArray("Range")];default:throw new r.FormatError(`unimplemented color space object "${o}"`)}}throw new r.FormatError(`unrecognized color space object: "${e}"`)}static isDefaultDecode(e,t){if(!Array.isArray(e))return!0;if(2*t!==e.length)return(0,r.warn)("The decode map is not the correct length"),!0;for(let t=0,n=e.length;t<n;t+=2)if(0!==e[t]||1!==e[t+1])return!1;return!0}static get singletons(){return(0,r.shadow)(this,"singletons",{get gray(){return(0,r.shadow)(this,"gray",new c)},get rgb(){return(0,r.shadow)(this,"rgb",new u)},get cmyk(){return(0,r.shadow)(this,"cmyk",new h)}})}}t.ColorSpace=a;class o extends a{constructor(e,t,n){super("Alternate",e),this.base=t,this.tintFn=n,this.tmpBuf=new Float32Array(t.numComps)}getRgbItem(e,t,n,r){const i=this.tmpBuf;this.tintFn(e,t,i,0),this.base.getRgbItem(i,0,n,r)}getRgbBuffer(e,t,n,r,i,a,o){const s=this.tintFn,l=this.base,c=1/((1<<a)-1),u=l.numComps,h=l.usesZeroToOneRange,d=(l.isPassthrough(8)||!h)&&0===o;let f=d?i:0;const p=d?r:new Uint8ClampedArray(u*n),A=this.numComps,g=new Float32Array(A),m=new Float32Array(u);let v,y;for(v=0;v<n;v++){for(y=0;y<A;y++)g[y]=e[t++]*c;if(s(g,0,m,0),h)for(y=0;y<u;y++)p[f++]=255*m[y];else l.getRgbItem(m,0,p,f),f+=u}d||l.getRgbBuffer(p,0,n,r,i,8,o)}getOutputLength(e,t){return this.base.getOutputLength(e*this.base.numComps/this.numComps,t)}}class s extends a{constructor(e){super("Pattern",null),this.base=e}isDefaultDecode(e,t){(0,r.unreachable)("Should not call PatternCS.isDefaultDecode")}}class l extends a{constructor(e,t,n){super("Indexed",1),this.base=e,this.highVal=t;const a=e.numComps*t;if((0,i.isStream)(n)){this.lookup=new Uint8Array(a);const e=n.getBytes(a);this.lookup.set(e)}else if((0,r.isString)(n)){this.lookup=new Uint8Array(a);for(let e=0;e<a;++e)this.lookup[e]=n.charCodeAt(e)}else{if(!(n instanceof Uint8Array))throw new r.FormatError(`Unrecognized lookup table: ${n}`);this.lookup=n}}getRgbItem(e,t,n,r){const i=this.base.numComps,a=e[t]*i;this.base.getRgbBuffer(this.lookup,a,1,n,r,8,0)}getRgbBuffer(e,t,n,r,i,a,o){const s=this.base,l=s.numComps,c=s.getOutputLength(l,o),u=this.lookup;for(let a=0;a<n;++a){const n=e[t++]*l;s.getRgbBuffer(u,n,1,r,i,8,o),i+=c}}getOutputLength(e,t){return this.base.getOutputLength(e*this.base.numComps,t)}isDefaultDecode(e,t){return!Array.isArray(e)||(2!==e.length?((0,r.warn)("Decode map length is not correct"),!0):!Number.isInteger(t)||t<1?((0,r.warn)("Bits per component is not correct"),!0):0===e[0]&&e[1]===(1<<t)-1)}}class c extends a{constructor(){super("DeviceGray",1)}getRgbItem(e,t,n,r){const i=255*e[t];n[r]=n[r+1]=n[r+2]=i}getRgbBuffer(e,t,n,r,i,a,o){const s=255/((1<<a)-1);let l=t,c=i;for(let t=0;t<n;++t){const t=s*e[l++];r[c++]=t,r[c++]=t,r[c++]=t,c+=o}}getOutputLength(e,t){return e*(3+t)}}class u extends a{constructor(){super("DeviceRGB",3)}getRgbItem(e,t,n,r){n[r]=255*e[t],n[r+1]=255*e[t+1],n[r+2]=255*e[t+2]}getRgbBuffer(e,t,n,r,i,a,o){if(8===a&&0===o)return void r.set(e.subarray(t,t+3*n),i);const s=255/((1<<a)-1);let l=t,c=i;for(let t=0;t<n;++t)r[c++]=s*e[l++],r[c++]=s*e[l++],r[c++]=s*e[l++],c+=o}getOutputLength(e,t){return e*(3+t)/3|0}isPassthrough(e){return 8===e}}const h=function(){function e(e,t,n,r,i){const a=e[t]*n,o=e[t+1]*n,s=e[t+2]*n,l=e[t+3]*n;r[i]=255+a*(-4.387332384609988*a+54.48615194189176*o+18.82290502165302*s+212.25662451639585*l-285.2331026137004)+o*(1.7149763477362134*o-5.6096736904047315*s+-17.873870861415444*l-5.497006427196366)+s*(-2.5217340131683033*s-21.248923337353073*l+17.5119270841813)+l*(-21.86122147463605*l-189.48180835922747),r[i+1]=255+a*(8.841041422036149*a+60.118027045597366*o+6.871425592049007*s+31.159100130055922*l-79.2970844816548)+o*(-15.310361306967817*o+17.575251261109482*s+131.35250912493976*l-190.9453302588951)+s*(4.444339102852739*s+9.8632861493405*l-24.86741582555878)+l*(-20.737325471181034*l-187.80453709719578),r[i+2]=255+a*(.8842522430003296*a+8.078677503112928*o+30.89978309703729*s-.23883238689178934*l-14.183576799673286)+o*(10.49593273432072*o+63.02378494754052*s+50.606957656360734*l-112.23884253719248)+s*(.03296041114873217*s+115.60384449646641*l-193.58209356861505)+l*(-22.33816807309886*l-180.12613974708367)}return class extends a{constructor(){super("DeviceCMYK",4)}getRgbItem(t,n,r,i){e(t,n,1,r,i)}getRgbBuffer(t,n,r,i,a,o,s){const l=1/((1<<o)-1);for(let o=0;o<r;o++)e(t,n,l,i,a),n+=4,a+=3+s}getOutputLength(e,t){return e/4*(3+t)|0}}}(),d=function(){function e(e,t,n,r,i,a){const o=(t[n]*a)**e.G,s=e.YW*o,l=Math.max(295.8*s**.3333333333333333-40.8,0);r[i]=l,r[i+1]=l,r[i+2]=l}return class extends a{constructor(e,t,n){if(super("CalGray",1),!e)throw new r.FormatError("WhitePoint missing - required for color space CalGray");if(t=t||[0,0,0],n=n||1,this.XW=e[0],this.YW=e[1],this.ZW=e[2],this.XB=t[0],this.YB=t[1],this.ZB=t[2],this.G=n,this.XW<0||this.ZW<0||1!==this.YW)throw new r.FormatError(`Invalid WhitePoint components for ${this.name}`+", no fallback available");(this.XB<0||this.YB<0||this.ZB<0)&&((0,r.info)(`Invalid BlackPoint for ${this.name}, falling back to default.`),this.XB=this.YB=this.ZB=0),0===this.XB&&0===this.YB&&0===this.ZB||(0,r.warn)(`${this.name}, BlackPoint: XB: ${this.XB}, YB: ${this.YB}, `+`ZB: ${this.ZB}, only default values are supported.`),this.G<1&&((0,r.info)(`Invalid Gamma: ${this.G} for ${this.name}, `+"falling back to default."),this.G=1)}getRgbItem(t,n,r,i){e(this,t,n,r,i,1)}getRgbBuffer(t,n,r,i,a,o,s){const l=1/((1<<o)-1);for(let o=0;o<r;++o)e(this,t,n,i,a,l),n+=1,a+=3+s}getOutputLength(e,t){return e*(3+t)}}}(),f=function(){const e=new Float32Array([.8951,.2664,-.1614,-.7502,1.7135,.0367,.0389,-.0685,1.0296]),t=new Float32Array([.9869929,-.1470543,.1599627,.4323053,.5183603,.0492912,-.0085287,.0400428,.9684867]),n=new Float32Array([3.2404542,-1.5371385,-.4985314,-.969266,1.8760108,.041556,.0556434,-.2040259,1.0572252]),i=new Float32Array([1,1,1]),o=new Float32Array(3),s=new Float32Array(3),l=new Float32Array(3),c=(24/116)**3/8;function u(e,t,n){n[0]=e[0]*t[0]+e[1]*t[1]+e[2]*t[2],n[1]=e[3]*t[0]+e[4]*t[1]+e[5]*t[2],n[2]=e[6]*t[0]+e[7]*t[1]+e[8]*t[2]}function h(e){return d(0,1,e<=.0031308?12.92*e:1.055*e**(1/2.4)-.055)}function d(e,t,n){return Math.max(e,Math.min(t,n))}function f(e){return e<0?-f(-e):e>8?((e+16)/116)**3:e*c}function p(r,a,c,p,A,g){const m=d(0,1,a[c]*g),v=d(0,1,a[c+1]*g),y=d(0,1,a[c+2]*g),b=m**r.GR,w=v**r.GG,x=y**r.GB,_=r.MXA*b+r.MXB*w+r.MXC*x,C=r.MYA*b+r.MYB*w+r.MYC*x,S=r.MZA*b+r.MZB*w+r.MZC*x,k=s;k[0]=_,k[1]=C,k[2]=S;const B=l;!function(n,r,i){if(1===n[0]&&1===n[2])return i[0]=r[0],i[1]=r[1],void(i[2]=r[2]);const a=i;u(e,r,a);const s=o;!function(e,t,n){n[0]=1*t[0]/e[0],n[1]=1*t[1]/e[1],n[2]=1*t[2]/e[2]}(n,a,s),u(t,s,i)}(r.whitePoint,k,B);const E=s;!function(e,t,n){if(0===e[0]&&0===e[1]&&0===e[2])return n[0]=t[0],n[1]=t[1],void(n[2]=t[2]);const r=f(0),i=(1-r)/(1-f(e[0])),a=1-i,o=(1-r)/(1-f(e[1])),s=1-o,l=(1-r)/(1-f(e[2])),c=1-l;n[0]=t[0]*i+a,n[1]=t[1]*o+s,n[2]=t[2]*l+c}(r.blackPoint,B,E);const T=l;!function(n,r,i){const a=i;u(e,r,a);const s=o;!function(e,t,n){n[0]=.95047*t[0]/e[0],n[1]=1*t[1]/e[1],n[2]=1.08883*t[2]/e[2]}(n,a,s),u(t,s,i)}(i,E,T);const I=s;u(n,T,I),p[A]=255*h(I[0]),p[A+1]=255*h(I[1]),p[A+2]=255*h(I[2])}return class extends a{constructor(e,t,n,i){if(super("CalRGB",3),!e)throw new r.FormatError("WhitePoint missing - required for color space CalRGB");t=t||new Float32Array(3),n=n||new Float32Array([1,1,1]),i=i||new Float32Array([1,0,0,0,1,0,0,0,1]);const a=e[0],o=e[1],s=e[2];this.whitePoint=e;const l=t[0],c=t[1],u=t[2];if(this.blackPoint=t,this.GR=n[0],this.GG=n[1],this.GB=n[2],this.MXA=i[0],this.MYA=i[1],this.MZA=i[2],this.MXB=i[3],this.MYB=i[4],this.MZB=i[5],this.MXC=i[6],this.MYC=i[7],this.MZC=i[8],a<0||s<0||1!==o)throw new r.FormatError(`Invalid WhitePoint components for ${this.name}`+", no fallback available");(l<0||c<0||u<0)&&((0,r.info)(`Invalid BlackPoint for ${this.name} [${l}, ${c}, ${u}], `+"falling back to default."),this.blackPoint=new Float32Array(3)),(this.GR<0||this.GG<0||this.GB<0)&&((0,r.info)(`Invalid Gamma [${this.GR}, ${this.GG}, ${this.GB}] for `+`${this.name}, falling back to default.`),this.GR=this.GG=this.GB=1)}getRgbItem(e,t,n,r){p(this,e,t,n,r,1)}getRgbBuffer(e,t,n,r,i,a,o){const s=1/((1<<a)-1);for(let a=0;a<n;++a)p(this,e,t,r,i,s),t+=3,i+=3+o}getOutputLength(e,t){return e*(3+t)/3|0}}}(),p=function(){function e(e){let t;return t=e>=6/29?e*e*e:108/841*(e-4/29)}function t(e,t,n,r){return n+e*(r-n)/t}function n(n,r,i,a,o,s){let l=r[i],c=r[i+1],u=r[i+2];!1!==a&&(l=t(l,a,0,100),c=t(c,a,n.amin,n.amax),u=t(u,a,n.bmin,n.bmax)),c>n.amax?c=n.amax:c<n.amin&&(c=n.amin),u>n.bmax?u=n.bmax:u<n.bmin&&(u=n.bmin);const h=(l+16)/116,d=h+c/500,f=h-u/200,p=n.XW*e(d),A=n.YW*e(h),g=n.ZW*e(f);let m,v,y;n.ZW<1?(m=3.1339*p+-1.617*A+-.4906*g,v=-.9785*p+1.916*A+.0333*g,y=.072*p+-.229*A+1.4057*g):(m=3.2406*p+-1.5372*A+-.4986*g,v=-.9689*p+1.8758*A+.0415*g,y=.0557*p+-.204*A+1.057*g),o[s]=255*Math.sqrt(m),o[s+1]=255*Math.sqrt(v),o[s+2]=255*Math.sqrt(y)}return class extends a{constructor(e,t,n){if(super("Lab",3),!e)throw new r.FormatError("WhitePoint missing - required for color space Lab");if(t=t||[0,0,0],n=n||[-100,100,-100,100],this.XW=e[0],this.YW=e[1],this.ZW=e[2],this.amin=n[0],this.amax=n[1],this.bmin=n[2],this.bmax=n[3],this.XB=t[0],this.YB=t[1],this.ZB=t[2],this.XW<0||this.ZW<0||1!==this.YW)throw new r.FormatError("Invalid WhitePoint components, no fallback available");(this.XB<0||this.YB<0||this.ZB<0)&&((0,r.info)("Invalid BlackPoint, falling back to default"),this.XB=this.YB=this.ZB=0),(this.amin>this.amax||this.bmin>this.bmax)&&((0,r.info)("Invalid Range, falling back to defaults"),this.amin=-100,this.amax=100,this.bmin=-100,this.bmax=100)}getRgbItem(e,t,r,i){n(this,e,t,!1,r,i)}getRgbBuffer(e,t,r,i,a,o,s){const l=(1<<o)-1;for(let o=0;o<r;o++)n(this,e,t,l,i,a),t+=3,a+=3+s}getOutputLength(e,t){return e*(3+t)/3|0}isDefaultDecode(e,t){return!0}get usesZeroToOneRange(){return(0,r.shadow)(this,"usesZeroToOneRange",!1)}}}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalImageCache=t.LocalImageCache=void 0;var r=n(2),i=n(5);t.LocalImageCache=class{constructor(){this._nameRefMap=new Map,this._imageMap=new Map,this._imageCache=new i.RefSetCache}getByName(e){const t=this._nameRefMap.get(e);return t?this.getByRef(t):this._imageMap.get(e)||null}getByRef(e){return this._imageCache.get(e)||null}set(e,t=null,n){if(!e)throw new Error('LocalImageCache.set - expected "name" argument.');if(t){if(this._imageCache.has(t))return;return this._nameRefMap.set(e,t),void this._imageCache.put(t,n)}this._imageMap.has(e)||this._imageMap.set(e,n)}};class a{static get NUM_PAGES_THRESHOLD(){return(0,r.shadow)(this,"NUM_PAGES_THRESHOLD",2)}static get MAX_IMAGES_TO_CACHE(){return(0,r.shadow)(this,"MAX_IMAGES_TO_CACHE",10)}constructor(){this._refCache=new i.RefSetCache,this._imageCache=new i.RefSetCache}shouldCache(e,t){const n=this._refCache.get(e);return!((n?n.size+(n.has(t)?0:1):1)<a.NUM_PAGES_THRESHOLD)&&!(!this._imageCache.has(e)&&this._imageCache.size>=a.MAX_IMAGES_TO_CACHE)}addPageIndex(e,t){let n=this._refCache.get(e);n||(n=new Set,this._refCache.put(e,n)),n.add(t)}getData(e,t){if(!this._refCache.has(e))return null;const n=this._refCache.get(e);return n.size<a.NUM_PAGES_THRESHOLD?null:this._imageCache.has(e)?(n.add(t),this._imageCache.get(e)):null}setData(e,t){if(!this._refCache.has(e))throw new Error('GlobalImageCache.setData - expected "addPageIndex" to have been called.');this._imageCache.has(e)||(this._imageCache.size>=a.MAX_IMAGES_TO_CACHE?(0,r.info)("GlobalImageCache.setData - ignoring image above MAX_IMAGES_TO_CACHE."):this._imageCache.put(e,t))}clear(e=!1){e||this._refCache.clear(),this._imageCache.clear()}}t.GlobalImageCache=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getQuadPoints=u,t.MarkupAnnotation=t.AnnotationFactory=t.AnnotationBorderStyle=t.Annotation=void 0;var r=n(2),i=n(10),a=n(5),o=n(23),s=n(8),l=n(26),c=n(12);function u(e,t){if(!e.has("QuadPoints"))return null;const n=e.getArray("QuadPoints");if(!Array.isArray(n)||n.length%8>0)return null;const r=[];for(let e=0,i=n.length/8;e<i;e++){r.push([]);for(let i=8*e,a=8*e+8;i<a;i+=2){const a=n[i],o=n[i+1];if(a<t[0]||a>t[2]||o<t[1]||o>t[3])return null;r[e].push({x:a,y:o})}}return r}t.AnnotationFactory=class{static create(e,t,n,r){return n.ensure(this,"_create",[e,t,n,r])}static _create(e,t,n,i){const o=e.fetchIfRef(t);if(!(0,a.isDict)(o))return;const l=(0,a.isRef)(t)?t.toString():`annot_${i.createObjId()}`;let c=o.get("Subtype");const u={xref:e,dict:o,subtype:c=(0,a.isName)(c)?c.name:null,id:l,pdfManager:n};switch(c){case"Link":return new y(u);case"Text":return new v(u);case"Widget":let e=(0,s.getInheritableProperty)({dict:o,key:"FT"});switch(e=(0,a.isName)(e)?e.name:null){case"Tx":return new A(u);case"Btn":return new g(u);case"Ch":return new m(u)}return(0,r.warn)('Unimplemented widget field type "'+e+'", falling back to base field type.'),new p(u);case"Popup":return new b(u);case"FreeText":return new w(u);case"Line":return new x(u);case"Square":return new _(u);case"Circle":return new C(u);case"PolyLine":return new S(u);case"Polygon":return new k(u);case"Caret":return new B(u);case"Ink":return new E(u);case"Highlight":return new T(u);case"Underline":return new I(u);case"Squiggly":return new M(u);case"StrikeOut":return new F(u);case"Stamp":return new D(u);case"FileAttachment":return new P(u);default:return c?(0,r.warn)('Unimplemented annotation type "'+c+'", falling back to base annotation.'):(0,r.warn)("Annotation is missing the required /Subtype."),new h(u)}}};class h{constructor(e){const t=e.dict;this.setContents(t.get("Contents")),this.setModificationDate(t.get("M")),this.setFlags(t.get("F")),this.setRectangle(t.getArray("Rect")),this.setColor(t.getArray("C")),this.setBorderStyle(t),this.setAppearance(t),this.data={annotationFlags:this.flags,borderStyle:this.borderStyle,color:this.color,contents:this.contents,hasAppearance:!!this.appearance,id:e.id,modificationDate:this.modificationDate,rect:this.rectangle,subtype:e.subtype}}_hasFlag(e,t){return!!(e&t)}_isViewable(e){return!this._hasFlag(e,r.AnnotationFlag.INVISIBLE)&&!this._hasFlag(e,r.AnnotationFlag.HIDDEN)&&!this._hasFlag(e,r.AnnotationFlag.NOVIEW)}_isPrintable(e){return this._hasFlag(e,r.AnnotationFlag.PRINT)&&!this._hasFlag(e,r.AnnotationFlag.INVISIBLE)&&!this._hasFlag(e,r.AnnotationFlag.HIDDEN)}get viewable(){return 0===this.flags||this._isViewable(this.flags)}get printable(){return 0!==this.flags&&this._isPrintable(this.flags)}setContents(e){this.contents=(0,r.stringToPDFString)(e||"")}setModificationDate(e){this.modificationDate=(0,r.isString)(e)?e:null}setFlags(e){this.flags=Number.isInteger(e)&&e>0?e:0}hasFlag(e){return this._hasFlag(this.flags,e)}setRectangle(e){Array.isArray(e)&&4===e.length?this.rectangle=r.Util.normalizeRect(e):this.rectangle=[0,0,0,0]}setColor(e){const t=new Uint8ClampedArray(3);if(Array.isArray(e))switch(e.length){case 0:this.color=null;break;case 1:o.ColorSpace.singletons.gray.getRgbItem(e,0,t,0),this.color=t;break;case 3:o.ColorSpace.singletons.rgb.getRgbItem(e,0,t,0),this.color=t;break;case 4:o.ColorSpace.singletons.cmyk.getRgbItem(e,0,t,0),this.color=t;break;default:this.color=t}else this.color=t}setBorderStyle(e){if(this.borderStyle=new d,(0,a.isDict)(e))if(e.has("BS")){const t=e.get("BS"),n=t.get("Type");n&&!(0,a.isName)(n,"Border")||(this.borderStyle.setWidth(t.get("W"),this.rectangle),this.borderStyle.setStyle(t.get("S")),this.borderStyle.setDashArray(t.getArray("D")))}else if(e.has("Border")){const t=e.getArray("Border");Array.isArray(t)&&t.length>=3&&(this.borderStyle.setHorizontalCornerRadius(t[0]),this.borderStyle.setVerticalCornerRadius(t[1]),this.borderStyle.setWidth(t[2],this.rectangle),4===t.length&&this.borderStyle.setDashArray(t[3]))}else this.borderStyle.setWidth(0)}setAppearance(e){this.appearance=null;const t=e.get("AP");if(!(0,a.isDict)(t))return;const n=t.get("N");if((0,a.isStream)(n))return void(this.appearance=n);if(!(0,a.isDict)(n))return;const r=e.get("AS");(0,a.isName)(r)&&n.has(r.name)&&(this.appearance=n.get(r.name))}loadResources(e){return this.appearance.dict.getAsync("Resources").then(t=>{if(!t)return;return new i.ObjectLoader(t,e,t.xref).load().then(function(){return t})})}getOperatorList(e,t,n){if(!this.appearance)return Promise.resolve(new l.OperatorList);const i=this.data,a=this.appearance.dict,o=this.loadResources(["ExtGState","ColorSpace","Pattern","Shading","XObject","Font"]),s=a.getArray("BBox")||[0,0,1,1],c=a.getArray("Matrix")||[1,0,0,1,0,0],u=function(e,t,n){const[i,a,o,s]=r.Util.getAxialAlignedBoundingBox(t,n);if(i===o||a===s)return[1,0,0,1,e[0],e[1]];const l=(e[2]-e[0])/(o-i),c=(e[3]-e[1])/(s-a);return[l,0,0,c,e[0]-i*l,e[1]-a*c]}(i.rect,s,c);return o.then(n=>{const a=new l.OperatorList;return a.addOp(r.OPS.beginAnnotation,[i.rect,u,c]),e.getOperatorList({stream:this.appearance,task:t,resources:n,operatorList:a}).then(()=>(a.addOp(r.OPS.endAnnotation,[]),this.appearance.reset(),a))})}}t.Annotation=h;class d{constructor(){this.width=1,this.style=r.AnnotationBorderStyleType.SOLID,this.dashArray=[3],this.horizontalCornerRadius=0,this.verticalCornerRadius=0}setWidth(e,t=[0,0,0,0]){if((0,a.isName)(e))this.width=0;else if(Number.isInteger(e)){if(e>0){const n=(t[2]-t[0])/2,i=(t[3]-t[1])/2;n>0&&i>0&&(e>n||e>i)&&((0,r.warn)(`AnnotationBorderStyle.setWidth - ignoring width: ${e}`),e=1)}this.width=e}}setStyle(e){if((0,a.isName)(e))switch(e.name){case"S":this.style=r.AnnotationBorderStyleType.SOLID;break;case"D":this.style=r.AnnotationBorderStyleType.DASHED;break;case"B":this.style=r.AnnotationBorderStyleType.BEVELED;break;case"I":this.style=r.AnnotationBorderStyleType.INSET;break;case"U":this.style=r.AnnotationBorderStyleType.UNDERLINE}}setDashArray(e){if(Array.isArray(e)&&e.length>0){let t=!0,n=!0;for(const r of e){if(!(+r>=0)){t=!1;break}r>0&&(n=!1)}t&&!n?this.dashArray=e:this.width=0}else e&&(this.width=0)}setHorizontalCornerRadius(e){Number.isInteger(e)&&(this.horizontalCornerRadius=e)}setVerticalCornerRadius(e){Number.isInteger(e)&&(this.verticalCornerRadius=e)}}t.AnnotationBorderStyle=d;class f extends h{constructor(e){super(e);const t=e.dict;if(t.has("IRT")){const e=t.getRaw("IRT");this.data.inReplyTo=(0,a.isRef)(e)?e.toString():null;const n=t.get("RT");this.data.replyType=(0,a.isName)(n)?n.name:r.AnnotationReplyType.REPLY}if(this.data.replyType===r.AnnotationReplyType.GROUP){const e=t.get("IRT");this.data.title=(0,r.stringToPDFString)(e.get("T")||""),this.setContents(e.get("Contents")),this.data.contents=this.contents,e.has("CreationDate")?(this.setCreationDate(e.get("CreationDate")),this.data.creationDate=this.creationDate):this.data.creationDate=null,e.has("M")?(this.setModificationDate(e.get("M")),this.data.modificationDate=this.modificationDate):this.data.modificationDate=null,this.data.hasPopup=e.has("Popup"),e.has("C")?(this.setColor(e.getArray("C")),this.data.color=this.color):this.data.color=null}else this.data.title=(0,r.stringToPDFString)(t.get("T")||""),this.setCreationDate(t.get("CreationDate")),this.data.creationDate=this.creationDate,this.data.hasPopup=t.has("Popup"),t.has("C")||(this.data.color=null)}setCreationDate(e){this.creationDate=(0,r.isString)(e)?e:null}}t.MarkupAnnotation=f;class p extends h{constructor(e){super(e);const t=e.dict,n=this.data;n.annotationType=r.AnnotationType.WIDGET,n.fieldName=this._constructFieldName(t),n.fieldValue=(0,s.getInheritableProperty)({dict:t,key:"V",getArray:!0}),n.alternativeText=(0,r.stringToPDFString)(t.get("TU")||""),n.defaultAppearance=(0,s.getInheritableProperty)({dict:t,key:"DA"})||"";const i=(0,s.getInheritableProperty)({dict:t,key:"FT"});n.fieldType=(0,a.isName)(i)?i.name:null,this.fieldResources=(0,s.getInheritableProperty)({dict:t,key:"DR"})||a.Dict.empty,n.fieldFlags=(0,s.getInheritableProperty)({dict:t,key:"Ff"}),(!Number.isInteger(n.fieldFlags)||n.fieldFlags<0)&&(n.fieldFlags=0),n.readOnly=this.hasFieldFlag(r.AnnotationFieldFlag.READONLY),"Sig"===n.fieldType&&(n.fieldValue=null,this.setFlags(r.AnnotationFlag.HIDDEN))}_constructFieldName(e){if(!e.has("T")&&!e.has("Parent"))return(0,r.warn)("Unknown field name, falling back to empty field name."),"";if(!e.has("Parent"))return(0,r.stringToPDFString)(e.get("T"));const t=[];e.has("T")&&t.unshift((0,r.stringToPDFString)(e.get("T")));let n=e;for(;n.has("Parent")&&(n=n.get("Parent"),(0,a.isDict)(n));)n.has("T")&&t.unshift((0,r.stringToPDFString)(n.get("T")));return t.join(".")}hasFieldFlag(e){return!!(this.data.fieldFlags&e)}getOperatorList(e,t,n){return n?Promise.resolve(new l.OperatorList):super.getOperatorList(e,t,n)}}class A extends p{constructor(e){super(e);const t=e.dict;this.data.fieldValue=(0,r.stringToPDFString)(this.data.fieldValue||"");let n=(0,s.getInheritableProperty)({dict:t,key:"Q"});(!Number.isInteger(n)||n<0||n>2)&&(n=null),this.data.textAlignment=n;let i=(0,s.getInheritableProperty)({dict:t,key:"MaxLen"});(!Number.isInteger(i)||i<0)&&(i=null),this.data.maxLen=i,this.data.multiLine=this.hasFieldFlag(r.AnnotationFieldFlag.MULTILINE),this.data.comb=this.hasFieldFlag(r.AnnotationFieldFlag.COMB)&&!this.hasFieldFlag(r.AnnotationFieldFlag.MULTILINE)&&!this.hasFieldFlag(r.AnnotationFieldFlag.PASSWORD)&&!this.hasFieldFlag(r.AnnotationFieldFlag.FILESELECT)&&null!==this.data.maxLen}getOperatorList(e,t,n){if(n||this.appearance)return super.getOperatorList(e,t,n);const i=new l.OperatorList;if(!this.data.defaultAppearance)return Promise.resolve(i);const a=new c.Stream((0,r.stringToBytes)(this.data.defaultAppearance));return e.getOperatorList({stream:a,task:t,resources:this.fieldResources,operatorList:i}).then(function(){return i})}}class g extends p{constructor(e){super(e),this.data.checkBox=!this.hasFieldFlag(r.AnnotationFieldFlag.RADIO)&&!this.hasFieldFlag(r.AnnotationFieldFlag.PUSHBUTTON),this.data.radioButton=this.hasFieldFlag(r.AnnotationFieldFlag.RADIO)&&!this.hasFieldFlag(r.AnnotationFieldFlag.PUSHBUTTON),this.data.pushButton=this.hasFieldFlag(r.AnnotationFieldFlag.PUSHBUTTON),this.data.checkBox?this._processCheckBox(e):this.data.radioButton?this._processRadioButton(e):this.data.pushButton?this._processPushButton(e):(0,r.warn)("Invalid field flags for button widget annotation")}_processCheckBox(e){(0,a.isName)(this.data.fieldValue)&&(this.data.fieldValue=this.data.fieldValue.name);const t=e.dict.get("AP");if(!(0,a.isDict)(t))return;const n=t.get("D");if(!(0,a.isDict)(n))return;const r=n.getKeys();2===r.length&&(this.data.exportValue="Off"===r[0]?r[1]:r[0])}_processRadioButton(e){this.data.fieldValue=this.data.buttonValue=null;const t=e.dict.get("Parent");if((0,a.isDict)(t)&&t.has("V")){const e=t.get("V");(0,a.isName)(e)&&(this.data.fieldValue=e.name)}const n=e.dict.get("AP");if(!(0,a.isDict)(n))return;const r=n.get("N");if((0,a.isDict)(r))for(const e of r.getKeys())if("Off"!==e){this.data.buttonValue=e;break}}_processPushButton(e){e.dict.has("A")?i.Catalog.parseDestDictionary({destDict:e.dict,resultObj:this.data,docBaseUrl:e.pdfManager.docBaseUrl}):(0,r.warn)("Push buttons without action dictionaries are not supported")}}class m extends p{constructor(e){super(e),this.data.options=[];const t=(0,s.getInheritableProperty)({dict:e.dict,key:"Opt"});if(Array.isArray(t)){const n=e.xref;for(let e=0,i=t.length;e<i;e++){const i=n.fetchIfRef(t[e]),a=Array.isArray(i);this.data.options[e]={exportValue:a?n.fetchIfRef(i[0]):i,displayValue:(0,r.stringToPDFString)(a?n.fetchIfRef(i[1]):i)}}}Array.isArray(this.data.fieldValue)||(this.data.fieldValue=[this.data.fieldValue]),this.data.combo=this.hasFieldFlag(r.AnnotationFieldFlag.COMBO),this.data.multiSelect=this.hasFieldFlag(r.AnnotationFieldFlag.MULTISELECT)}}class v extends f{constructor(e){super(e);const t=e.dict;this.data.annotationType=r.AnnotationType.TEXT,this.data.hasAppearance?this.data.name="NoIcon":(this.data.rect[1]=this.data.rect[3]-22,this.data.rect[2]=this.data.rect[0]+22,this.data.name=t.has("Name")?t.get("Name").name:"Note"),t.has("State")?(this.data.state=t.get("State")||null,this.data.stateModel=t.get("StateModel")||null):(this.data.state=null,this.data.stateModel=null)}}class y extends h{constructor(e){super(e),this.data.annotationType=r.AnnotationType.LINK;const t=u(e.dict,this.rectangle);t&&(this.data.quadPoints=t),i.Catalog.parseDestDictionary({destDict:e.dict,resultObj:this.data,docBaseUrl:e.pdfManager.docBaseUrl})}}class b extends h{constructor(e){super(e),this.data.annotationType=r.AnnotationType.POPUP;let t=e.dict.get("Parent");if(!t)return void(0,r.warn)("Popup annotation has a missing or invalid parent annotation.");const n=t.get("Subtype");this.data.parentType=(0,a.isName)(n)?n.name:null;const i=e.dict.getRaw("Parent");this.data.parentId=(0,a.isRef)(i)?i.toString():null;const o=t.get("RT");if((0,a.isName)(o,r.AnnotationReplyType.GROUP)&&(t=t.get("IRT")),t.has("M")?(this.setModificationDate(t.get("M")),this.data.modificationDate=this.modificationDate):this.data.modificationDate=null,t.has("C")?(this.setColor(t.getArray("C")),this.data.color=this.color):this.data.color=null,!this.viewable){const e=t.get("F");this._isViewable(e)&&this.setFlags(e)}this.data.title=(0,r.stringToPDFString)(t.get("T")||""),this.data.contents=(0,r.stringToPDFString)(t.get("Contents")||"")}}class w extends f{constructor(e){super(e),this.data.annotationType=r.AnnotationType.FREETEXT}}class x extends f{constructor(e){super(e),this.data.annotationType=r.AnnotationType.LINE,this.data.lineCoordinates=r.Util.normalizeRect(e.dict.getArray("L"))}}class _ extends f{constructor(e){super(e),this.data.annotationType=r.AnnotationType.SQUARE}}class C extends f{constructor(e){super(e),this.data.annotationType=r.AnnotationType.CIRCLE}}class S extends f{constructor(e){super(e),this.data.annotationType=r.AnnotationType.POLYLINE;const t=e.dict.getArray("Vertices");this.data.vertices=[];for(let e=0,n=t.length;e<n;e+=2)this.data.vertices.push({x:t[e],y:t[e+1]})}}class k extends S{constructor(e){super(e),this.data.annotationType=r.AnnotationType.POLYGON}}class B extends f{constructor(e){super(e),this.data.annotationType=r.AnnotationType.CARET}}class E extends f{constructor(e){super(e),this.data.annotationType=r.AnnotationType.INK;const t=e.xref,n=e.dict.getArray("InkList");this.data.inkLists=[];for(let e=0,r=n.length;e<r;++e){this.data.inkLists.push([]);for(let r=0,i=n[e].length;r<i;r+=2)this.data.inkLists[e].push({x:t.fetchIfRef(n[e][r]),y:t.fetchIfRef(n[e][r+1])})}}}class T extends f{constructor(e){super(e),this.data.annotationType=r.AnnotationType.HIGHLIGHT;const t=u(e.dict,this.rectangle);t&&(this.data.quadPoints=t)}}class I extends f{constructor(e){super(e),this.data.annotationType=r.AnnotationType.UNDERLINE;const t=u(e.dict,this.rectangle);t&&(this.data.quadPoints=t)}}class M extends f{constructor(e){super(e),this.data.annotationType=r.AnnotationType.SQUIGGLY;const t=u(e.dict,this.rectangle);t&&(this.data.quadPoints=t)}}class F extends f{constructor(e){super(e),this.data.annotationType=r.AnnotationType.STRIKEOUT;const t=u(e.dict,this.rectangle);t&&(this.data.quadPoints=t)}}class D extends f{constructor(e){super(e),this.data.annotationType=r.AnnotationType.STAMP}}class P extends f{constructor(e){super(e);const t=new i.FileSpec(e.dict.get("FS"),e.xref);this.data.annotationType=r.AnnotationType.FILEATTACHMENT,this.data.file=t.serializable}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OperatorList=void 0;var r=n(2),i=function(){function e(e,t,n,r,i){for(var a=e,o=0,s=t.length-1;o<s;o++){var l=t[o];a=a[l]||(a[l]=[])}a[t[t.length-1]]={checkFn:n,iterateFn:r,processFn:i}}var t=[];function n(e){this.queue=e,this.state=null,this.context={iCurr:0,fnArray:e.fnArray,argsArray:e.argsArray},this.match=null,this.lastProcessed=0}return e(t,[r.OPS.save,r.OPS.transform,r.OPS.paintInlineImageXObject,r.OPS.restore],null,function(e,t){var n=e.fnArray,i=(t-(e.iCurr-3))%4;switch(i){case 0:return n[t]===r.OPS.save;case 1:return n[t]===r.OPS.transform;case 2:return n[t]===r.OPS.paintInlineImageXObject;case 3:return n[t]===r.OPS.restore}throw new Error(`iterateInlineImageGroup - invalid pos: ${i}`)},function(e,t){var n=e.fnArray,i=e.argsArray,a=e.iCurr,o=a-3,s=a-2,l=a-1,c=Math.min(Math.floor((t-o)/4),200);if(c<10)return t-(t-o)%4;var u,h=0,d=[],f=0,p=1,A=1;for(u=0;u<c;u++){var g=i[s+(u<<2)],m=i[l+(u<<2)][0];p+m.width>1e3&&(h=Math.max(h,p),A+=f+2,p=0,f=0),d.push({transform:g,x:p,y:A,w:m.width,h:m.height}),p+=m.width+2,f=Math.max(f,m.height)}var v=Math.max(h,p)+1,y=A+f+1,b=new Uint8ClampedArray(v*y*4),w=v<<2;for(u=0;u<c;u++){var x=i[l+(u<<2)][0].data,_=d[u].w<<2,C=0,S=d[u].x+d[u].y*v<<2;b.set(x.subarray(0,_),S-w);for(var k=0,B=d[u].h;k<B;k++)b.set(x.subarray(C,C+_),S),C+=_,S+=w;for(b.set(x.subarray(C-_,C),S);S>=0;)x[S-4]=x[S],x[S-3]=x[S+1],x[S-2]=x[S+2],x[S-1]=x[S+3],x[S+_]=x[S+_-4],x[S+_+1]=x[S+_-3],x[S+_+2]=x[S+_-2],x[S+_+3]=x[S+_-1],S-=w}return n.splice(o,4*c,r.OPS.paintInlineImageXObjectGroup),i.splice(o,4*c,[{width:v,height:y,kind:r.ImageKind.RGBA_32BPP,data:b},d]),o+1}),e(t,[r.OPS.save,r.OPS.transform,r.OPS.paintImageMaskXObject,r.OPS.restore],null,function(e,t){var n=e.fnArray,i=(t-(e.iCurr-3))%4;switch(i){case 0:return n[t]===r.OPS.save;case 1:return n[t]===r.OPS.transform;case 2:return n[t]===r.OPS.paintImageMaskXObject;case 3:return n[t]===r.OPS.restore}throw new Error(`iterateImageMaskGroup - invalid pos: ${i}`)},function(e,t){var n,i=e.fnArray,a=e.argsArray,o=e.iCurr,s=o-3,l=o-2,c=o-1,u=Math.floor((t-s)/4);if((u=function(e,t,n,i){for(var a=e+2,o=0;o<t;o++){var s=i[a+4*o],l=1===s.length&&s[0];if(!l||1!==l.width||1!==l.height||l.data.length&&(1!==l.data.length||0!==l.data[0]))break;n[a+4*o]=r.OPS.paintSolidColorImageMask}return t-o}(s,u,i,a))<10)return t-(t-s)%4;var h,d,f=!1,p=a[c][0];if(0===a[l][1]&&0===a[l][2]){f=!0;var A=a[l][0],g=a[l][3];h=l+4;var m=c+4;for(n=1;n<u;n++,h+=4,m+=4)if(d=a[h],a[m][0]!==p||d[0]!==A||0!==d[1]||0!==d[2]||d[3]!==g){n<10?f=!1:u=n;break}}if(f){u=Math.min(u,1e3);var v=new Float32Array(2*u);for(h=l,n=0;n<u;n++,h+=4)d=a[h],v[n<<1]=d[4],v[1+(n<<1)]=d[5];i.splice(s,4*u,r.OPS.paintImageMaskXObjectRepeat),a.splice(s,4*u,[p,A,g,v])}else{u=Math.min(u,100);var y=[];for(n=0;n<u;n++){d=a[l+(n<<2)];var b=a[c+(n<<2)][0];y.push({data:b.data,width:b.width,height:b.height,transform:d})}i.splice(s,4*u,r.OPS.paintImageMaskXObjectGroup),a.splice(s,4*u,[y])}return s+1}),e(t,[r.OPS.save,r.OPS.transform,r.OPS.paintImageXObject,r.OPS.restore],function(e){var t=e.argsArray,n=e.iCurr-2;return 0===t[n][1]&&0===t[n][2]},function(e,t){var n=e.fnArray,i=e.argsArray,a=(t-(e.iCurr-3))%4;switch(a){case 0:return n[t]===r.OPS.save;case 1:if(n[t]!==r.OPS.transform)return!1;var o=e.iCurr-2,s=i[o][0],l=i[o][3];return i[t][0]===s&&0===i[t][1]&&0===i[t][2]&&i[t][3]===l;case 2:if(n[t]!==r.OPS.paintImageXObject)return!1;var c=i[e.iCurr-1][0];return i[t][0]===c;case 3:return n[t]===r.OPS.restore}throw new Error(`iterateImageGroup - invalid pos: ${a}`)},function(e,t){var n=e.fnArray,i=e.argsArray,a=e.iCurr,o=a-3,s=a-2,l=i[a-1][0],c=i[s][0],u=i[s][3],h=Math.min(Math.floor((t-o)/4),1e3);if(h<3)return t-(t-o)%4;for(var d=new Float32Array(2*h),f=s,p=0;p<h;p++,f+=4){var A=i[f];d[p<<1]=A[4],d[1+(p<<1)]=A[5]}var g=[l,c,u,d];return n.splice(o,4*h,r.OPS.paintImageXObjectRepeat),i.splice(o,4*h,g),o+1}),e(t,[r.OPS.beginText,r.OPS.setFont,r.OPS.setTextMatrix,r.OPS.showText,r.OPS.endText],null,function(e,t){var n=e.fnArray,i=e.argsArray,a=(t-(e.iCurr-4))%5;switch(a){case 0:return n[t]===r.OPS.beginText;case 1:return n[t]===r.OPS.setFont;case 2:return n[t]===r.OPS.setTextMatrix;case 3:if(n[t]!==r.OPS.showText)return!1;var o=e.iCurr-3,s=i[o][0],l=i[o][1];return i[t][0]===s&&i[t][1]===l;case 4:return n[t]===r.OPS.endText}throw new Error(`iterateShowTextGroup - invalid pos: ${a}`)},function(e,t){var n=e.fnArray,r=e.argsArray,i=e.iCurr,a=i-4,o=i-3,s=i-2,l=i-1,c=i,u=r[o][0],h=r[o][1],d=Math.min(Math.floor((t-a)/5),1e3);if(d<3)return t-(t-a)%5;var f=a;a>=4&&n[a-4]===n[o]&&n[a-3]===n[s]&&n[a-2]===n[l]&&n[a-1]===n[c]&&r[a-4][0]===u&&r[a-4][1]===h&&(d++,f-=5);for(var p=f+4,A=1;A<d;A++)n.splice(p,3),r.splice(p,3),p+=2;return p+1}),n.prototype={_optimize(){const e=this.queue.fnArray;let n=this.lastProcessed,r=e.length,i=this.state,a=this.match;if(!i&&!a&&n+1===r&&!t[e[n]])return void(this.lastProcessed=r);const o=this.context;for(;n<r;){if(a){if((0,a.iterateFn)(o,n)){n++;continue}if(n=(0,a.processFn)(o,n+1),a=null,i=null,n>=(r=e.length))break}(i=(i||t)[e[n]])&&!Array.isArray(i)?(o.iCurr=n,n++,!i.checkFn||(0,i.checkFn)(o)?(a=i,i=null):i=null):n++}this.state=i,this.match=a,this.lastProcessed=n},push(e,t){this.queue.fnArray.push(e),this.queue.argsArray.push(t),this._optimize()},flush(){for(;this.match;){const e=this.queue.fnArray.length;this.lastProcessed=(0,this.match.processFn)(this.context,e),this.match=null,this.state=null,this._optimize()}},reset(){this.state=null,this.match=null,this.lastProcessed=0}},n}(),a=function(){function e(e){this.queue=e}return e.prototype={push(e,t){this.queue.fnArray.push(e),this.queue.argsArray.push(t)},flush(){},reset(){}},e}(),o=function(){function e(e,t,n){this._streamSink=t,this.fnArray=[],this.argsArray=[],this.optimizer=t&&"oplist"!==e?new i(this):new a(this),this.dependencies=Object.create(null),this._totalLength=0,this.pageIndex=n,this.intent=e,this.weight=0,this._resolved=t?null:Promise.resolve()}return e.prototype={get length(){return this.argsArray.length},get ready(){return this._resolved||this._streamSink.ready},get totalLength(){return this._totalLength+this.length},addOp(e,t){this.optimizer.push(e,t),this.weight++,this._streamSink&&(this.weight>=1e3?this.flush():this.weight>=995&&(e===r.OPS.restore||e===r.OPS.endText)&&this.flush())},addDependency(e){e in this.dependencies||(this.dependencies[e]=!0,this.addOp(r.OPS.dependency,[e]))},addDependencies(e){for(var t in e)this.addDependency(t)},addOpList(t){if(t instanceof e){Object.assign(this.dependencies,t.dependencies);for(var n=0,i=t.length;n<i;n++)this.addOp(t.fnArray[n],t.argsArray[n])}else(0,r.warn)('addOpList - ignoring invalid "opList" parameter.')},getIR(){return{fnArray:this.fnArray,argsArray:this.argsArray,length:this.length}},get _transfers(){const e=[],{fnArray:t,argsArray:n,length:i}=this;for(let a=0;a<i;a++)switch(t[a]){case r.OPS.paintInlineImageXObject:case r.OPS.paintInlineImageXObjectGroup:case r.OPS.paintImageMaskXObject:const i=n[a][0];i.cached||e.push(i.data.buffer)}return e},flush(e=!1){this.optimizer.flush();const t=this.length;this._totalLength+=t,this._streamSink.enqueue({fnArray:this.fnArray,argsArray:this.argsArray,lastChunk:e,length:t},1,this._transfers),this.dependencies=Object.create(null),this.fnArray.length=0,this.argsArray.length=0,this.weight=0,this.optimizer.reset()}},e}();t.OperatorList=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PartialEvaluator=void 0;var r=n(2),i=n(28),a=n(5),o=n(29),s=n(32),l=n(8),c=n(35),u=n(34),h=n(38),d=n(11),f=n(39),p=n(23),A=n(12),g=n(33),m=n(40),v=n(41),y=n(24),b=n(43),w=n(26),x=n(44),_=function(){const e={maxImageSize:-1,disableFontFace:!1,ignoreErrors:!1,isEvalSupported:!0,fontExtraProperties:!1};function t({xref:t,handler:n,pageIndex:i,idFactory:a,fontCache:o,builtInCMapCache:s,globalImageCache:l,options:c=null,pdfFunctionFactory:u}){this.xref=t,this.handler=n,this.pageIndex=i,this.idFactory=a,this.fontCache=o,this.builtInCMapCache=s,this.globalImageCache=l,this.options=c||e,this.pdfFunctionFactory=u,this.parsingType3Font=!1,this.fetchBuiltInCMap=(async e=>{if(this.builtInCMapCache.has(e))return this.builtInCMapCache.get(e);const t=this.handler.sendWithStream("FetchBuiltInCMap",{name:e}).getReader(),n=await new Promise(function(e,n){!function r(){t.read().then(function({value:t,done:n}){n||(e(t),r())},n)}()});return n.compressionType!==r.CMapCompressionType.NONE&&this.builtInCMapCache.set(e,n),n})}function n(){this.reset()}function d(e,t=!1){if(Array.isArray(e)){for(let t=0,n=e.length;t<n;t++){const n=d(e[t],!0);if(n)return n}return(0,r.warn)(`Unsupported blend mode Array: ${e}`),"source-over"}if(!(0,a.isName)(e))return t?null:"source-over";switch(e.name){case"Normal":case"Compatible":return"source-over";case"Multiply":return"multiply";case"Screen":return"screen";case"Overlay":return"overlay";case"Darken":return"darken";case"Lighten":return"lighten";case"ColorDodge":return"color-dodge";case"ColorBurn":return"color-burn";case"HardLight":return"hard-light";case"SoftLight":return"soft-light";case"Difference":return"difference";case"Exclusion":return"exclusion";case"Hue":return"hue";case"Saturation":return"saturation";case"Color":return"color";case"Luminosity":return"luminosity"}return t?null:((0,r.warn)(`Unsupported blend mode: ${e.name}`),"source-over")}n.prototype={check:function(){return!(++this.checked<100)&&(this.checked=0,this.endTime<=Date.now())},reset:function(){this.endTime=Date.now()+20,this.checked=0}};var _=Promise.resolve();return t.prototype={clone(t=e){var n=Object.create(this);return n.options=t,n},hasBlendModes:function(e){if(!(e instanceof a.Dict))return!1;var t=Object.create(null);e.objId&&(t[e.objId]=!0);for(var n=[e],i=this.xref;n.length;){var o=n.shift(),s=o.get("ExtGState");if(s instanceof a.Dict){var c=s.getKeys();for(let e=0,n=c.length;e<n;e++){const n=c[e];let o=s.getRaw(n);if(o instanceof a.Ref){if(t[o.toString()])continue;try{o=i.fetch(o)}catch(e){if(e instanceof l.MissingDataException)throw e;if(this.options.ignoreErrors){o instanceof a.Ref&&(t[o.toString()]=!0),this.handler.send("UnsupportedFeature",{featureId:r.UNSUPPORTED_FEATURES.errorExtGState}),(0,r.warn)(`hasBlendModes - ignoring ExtGState: "${e}".`);continue}throw e}}if(!(o instanceof a.Dict))continue;o.objId&&(t[o.objId]=!0);const u=o.get("BM");if(u instanceof a.Name){if("Normal"!==u.name)return!0}else if(void 0!==u&&Array.isArray(u))for(let e=0,t=u.length;e<t;e++)if(u[e]instanceof a.Name&&"Normal"!==u[e].name)return!0}}var u=o.get("XObject");if(u instanceof a.Dict){var h=u.getKeys();for(let e=0,o=h.length;e<o;e++){const o=h[e];var d=u.getRaw(o);if(d instanceof a.Ref){if(t[d.toString()])continue;try{d=i.fetch(d)}catch(e){if(e instanceof l.MissingDataException)throw e;if(this.options.ignoreErrors){d instanceof a.Ref&&(t[d.toString()]=!0),this.handler.send("UnsupportedFeature",{featureId:r.UNSUPPORTED_FEATURES.errorXObject}),(0,r.warn)(`hasBlendModes - ignoring XObject: "${e}".`);continue}throw e}}if((0,a.isStream)(d)){if(d.dict.objId){if(t[d.dict.objId])continue;t[d.dict.objId]=!0}var f=d.dict.get("Resources");!(f instanceof a.Dict)||f.objId&&t[f.objId]||(n.push(f),f.objId&&(t[f.objId]=!0))}}}}return!1},async buildFormXObject(e,t,n,i,o,s){var l=t.dict,c=l.getArray("Matrix"),u=l.getArray("BBox");u=Array.isArray(u)&&4===u.length?r.Util.normalizeRect(u):null;var h=l.get("Group");if(h){var d={matrix:c,bbox:u,smask:n,isolated:!1,knockout:!1},f=h.get("S"),A=null;(0,a.isName)(f,"Transparency")&&(d.isolated=h.get("I")||!1,d.knockout=h.get("K")||!1,h.has("CS")&&(A=await this.parseColorSpace({cs:h.get("CS"),resources:e}))),n&&n.backdrop&&(A=A||p.ColorSpace.singletons.rgb,n.backdrop=A.getRgb(n.backdrop,0)),i.addOp(r.OPS.beginGroup,[d])}return i.addOp(r.OPS.paintFormXObjectBegin,[c,u]),this.getOperatorList({stream:t,task:o,resources:l.get("Resources")||e,operatorList:i,initialState:s}).then(function(){i.addOp(r.OPS.paintFormXObjectEnd,[]),h&&i.addOp(r.OPS.endGroup,[d])})},async buildPaintImageXObject({resources:e,image:t,isInline:n=!1,operatorList:i,cacheKey:a,localImageCache:o}){var s=t.dict;const l=s.objId;var c=s.get("Width","W"),u=s.get("Height","H");if(!(c&&(0,r.isNum)(c)&&u&&(0,r.isNum)(u)))return void(0,r.warn)("Image dimensions are missing, or not numbers.");var h,d,f=this.options.maxImageSize;if(-1!==f&&c*u>f)return void(0,r.warn)("Image exceeded maximum allowed size and was removed.");if(s.get("ImageMask","IM")||!1){var p=s.get("Width","W"),g=s.get("Height","H"),m=p+7>>3,v=t.getBytes(m*g,!0),y=s.getArray("Decode","D");return(h=x.PDFImage.createMask({imgArray:v,width:p,height:g,imageIsFromDecodeStream:t instanceof A.DecodeStream,inverseDecode:!!y&&y[0]>0})).cached=!!a,d=[h],i.addOp(r.OPS.paintImageMaskXObject,d),void(a&&o.set(a,l,{fn:r.OPS.paintImageMaskXObject,args:d}))}var b=s.get("SMask","SM")||!1,w=s.get("Mask")||!1;if(n&&!b&&!w&&c+u<200){const a=new x.PDFImage({xref:this.xref,res:e,image:t,isInline:n,pdfFunctionFactory:this.pdfFunctionFactory});return h=a.createImageData(!0),void i.addOp(r.OPS.paintInlineImageXObject,[h])}let _=`img_${this.idFactory.createObjId()}`,C=!1;this.parsingType3Font?_=`${this.idFactory.getDocId()}_type3res_${_}`:l&&(C=this.globalImageCache.shouldCache(l,this.pageIndex))&&(_=`${this.idFactory.getDocId()}_${_}`),i.addDependency(_),d=[_,c,u];const S=x.PDFImage.buildImage({xref:this.xref,res:e,image:t,isInline:n,pdfFunctionFactory:this.pdfFunctionFactory}).then(e=>{if(h=e.createImageData(!1),this.parsingType3Font)return this.handler.sendWithPromise("commonobj",[_,"FontType3Res",h],[h.data.buffer]);C?this.handler.send("commonobj",[_,"Image",h],[h.data.buffer]):this.handler.send("obj",[_,this.pageIndex,"Image",h],[h.data.buffer])}).catch(e=>{if((0,r.warn)("Unable to decode image: "+e),this.parsingType3Font)return this.handler.sendWithPromise("commonobj",[_,"FontType3Res",null]);C?this.handler.send("commonobj",[_,"Image",null]):this.handler.send("obj",[_,this.pageIndex,"Image",null])});this.parsingType3Font&&await S,i.addOp(r.OPS.paintImageXObject,d),a&&(o.set(a,l,{fn:r.OPS.paintImageXObject,args:d}),l&&((0,r.assert)(!n,"Cannot cache an inline image globally."),this.globalImageCache.addPageIndex(l,this.pageIndex),C&&this.globalImageCache.setData(l,{objId:_,fn:r.OPS.paintImageXObject,args:d})))},handleSMask:function(e,t,n,r,i){var a=e.get("G"),o={subtype:e.get("S").name,backdrop:e.get("BC")},s=e.get("TR");if((0,v.isPDFFunction)(s)){const e=this.pdfFunctionFactory.create(s);for(var l=new Uint8Array(256),c=new Float32Array(1),u=0;u<256;u++)c[0]=u/255,e(c,0,c,0),l[u]=255*c[0]|0;o.transferMap=l}return this.buildFormXObject(t,a,o,n,r,i.state.clone())},handleTilingType(e,t,n,i,o,s,l){const c=new w.OperatorList,u=[o.get("Resources"),n],d=a.Dict.merge(this.xref,u);return this.getOperatorList({stream:i,task:l,resources:d,operatorList:c}).then(function(){return(0,h.getTilingPatternIR)({fnArray:c.fnArray,argsArray:c.argsArray},o,t)}).then(function(t){s.addDependencies(c.dependencies),s.addOp(e,t)},e=>{if(!(e instanceof r.AbortException)){if(this.options.ignoreErrors)return this.handler.send("UnsupportedFeature",{featureId:r.UNSUPPORTED_FEATURES.errorTilingPattern}),void(0,r.warn)(`handleTilingType - ignoring pattern: "${e}".`);throw e}})},handleSetFont:function(e,t,n,i,a,s){var l;return t&&(l=(t=t.slice())[0].name),this.loadFont(l,n,e).then(t=>t.font.isType3Font?t.loadType3Data(this,e,i,a).then(function(){return t}).catch(e=>(this.handler.send("UnsupportedFeature",{featureId:r.UNSUPPORTED_FEATURES.errorFontLoadType3}),new C({loadedName:"g_font_error",font:new o.ErrorFont(`Type3 font load error: ${e}`),dict:t.font,extraProperties:this.options.fontExtraProperties}))):t).then(e=>(s.font=e.font,e.send(this.handler),e.loadedName))},handleText(e,n){const i=n.font,a=i.charsToGlyphs(e);if(i.data){(!!(n.textRenderingMode&r.TextRenderingMode.ADD_TO_PATH_FLAG)||"Pattern"===n.fillColorSpace.name||i.disableFontFace||this.options.disableFontFace)&&t.buildFontPaths(i,a,this.handler)}return a},ensureStateFont(e){if(e.font)return;const t=new r.FormatError("Missing setFont (Tf) operator before text rendering operator.");if(this.options.ignoreErrors)return this.handler.send("UnsupportedFeature",{featureId:r.UNSUPPORTED_FEATURES.errorFontState}),void(0,r.warn)(`ensureStateFont: "${t}".`);throw t},setGState:function(e,t,n,i,o){for(var s=[],l=t.getKeys(),c=Promise.resolve(),u=0,h=l.length;u<h;u++){const h=l[u],f=t.get(h);switch(h){case"Type":break;case"LW":case"LC":case"LJ":case"ML":case"D":case"RI":case"FL":case"CA":case"ca":s.push([h,f]);break;case"Font":c=c.then(()=>this.handleSetFont(e,null,f[0],n,i,o.state).then(function(e){n.addDependency(e),s.push([h,[e,f[1]]])}));break;case"BM":s.push([h,d(f)]);break;case"SMask":if((0,a.isName)(f,"None")){s.push([h,!1]);break}(0,a.isDict)(f)?(c=c.then(()=>this.handleSMask(f,e,n,i,o)),s.push([h,!0])):(0,r.warn)("Unsupported SMask type");break;case"OP":case"op":case"OPM":case"BG":case"BG2":case"UCR":case"UCR2":case"TR":case"TR2":case"HT":case"SM":case"SA":case"AIS":case"TK":(0,r.info)("graphic state operator "+h);break;default:(0,r.info)("Unknown graphic state operator "+h)}}return c.then(function(){s.length>0&&n.addOp(r.OPS.setGState,[s])})},loadFont:function(e,n,i){const s=()=>Promise.resolve(new C({loadedName:"g_font_error",font:new o.ErrorFont(`Font "${e}" is not available.`),dict:n,extraProperties:this.options.fontExtraProperties}));var l,c=this.xref;if(n){if(!(0,a.isRef)(n))throw new r.FormatError('The "font" object should be a reference.');l=n}else{var u=i.get("Font");u&&(l=u.getRaw(e))}if(!l){const i=`Font "${e||n&&n.toString()}" is not available`;if(!this.options.ignoreErrors&&!this.parsingType3Font)return(0,r.warn)(`${i}.`),s();this.handler.send("UnsupportedFeature",{featureId:r.UNSUPPORTED_FEATURES.errorFontMissing}),(0,r.warn)(`${i} -- attempting to fallback to a default font.`),l=t.getFallbackFontDict()}if(this.fontCache.has(l))return this.fontCache.get(l);if(n=c.fetchIfRef(l),!(0,a.isDict)(n))return s();if(n.translated)return n.translated;var h=(0,r.createPromiseCapability)(),d=this.preEvaluateFont(n);const{descriptor:f,hash:p}=d;var A,g,m=(0,a.isRef)(l);if(m&&(A=l.toString()),p&&(0,a.isDict)(f)){f.fontAliases||(f.fontAliases=Object.create(null));var v=f.fontAliases;if(v[p]){var y=v[p].aliasRef;if(m&&y&&this.fontCache.has(y))return this.fontCache.putAlias(l,y),this.fontCache.get(l)}else v[p]={fontID:o.Font.getFontID()};m&&(v[p].aliasRef=l),A=v[p].fontID}m?this.fontCache.put(l,h.promise):(A||(A=this.idFactory.createObjId()),this.fontCache.put(`id_${A}`,h.promise)),(0,r.assert)(A,'The "fontID" must be defined.'),n.loadedName=`${this.idFactory.getDocId()}_f${A}`,n.translated=h.promise;try{g=this.translateFont(d)}catch(e){g=Promise.reject(e)}return g.then(e=>{void 0!==e.fontType&&(c.stats.fontTypes[e.fontType]=!0);h.resolve(new C({loadedName:n.loadedName,font:e,dict:n,extraProperties:this.options.fontExtraProperties}))}).catch(e=>{this.handler.send("UnsupportedFeature",{featureId:r.UNSUPPORTED_FEATURES.errorFontTranslate});try{var t=f&&f.get("FontFile3"),i=t&&t.get("Subtype"),a=(0,o.getFontType)(d.type,i&&i.name);c.stats.fontTypes[a]=!0}catch(e){}h.resolve(new C({loadedName:n.loadedName,font:new o.ErrorFont(e instanceof Error?e.message:e),dict:n,extraProperties:this.options.fontExtraProperties}))}),h.promise},buildPath(e,t,n,i=!1){var a=e.length-1;if(n||(n=[]),a<0||e.fnArray[a]!==r.OPS.constructPath)i&&((0,r.warn)(`Encountered path operator "${t}" inside of a text object.`),e.addOp(r.OPS.save,null)),e.addOp(r.OPS.constructPath,[[t],n]),i&&e.addOp(r.OPS.restore,null);else{var o=e.argsArray[a];o[0].push(t),Array.prototype.push.apply(o[1],n)}},parseColorSpace({cs:e,resources:t}){return new Promise(n=>{n(p.ColorSpace.parse(e,this.xref,t,this.pdfFunctionFactory))}).catch(e=>{if(e instanceof r.AbortException)return null;if(this.options.ignoreErrors)return this.handler.send("UnsupportedFeature",{featureId:r.UNSUPPORTED_FEATURES.errorColorSpace}),(0,r.warn)(`parseColorSpace - ignoring ColorSpace: "${e}".`),null;throw e})},async handleColorN(e,t,n,i,o,s,l){var c,u=n[n.length-1];if((0,a.isName)(u)&&(c=o.get(u.name))){var d=(0,a.isStream)(c)?c.dict:c,f=d.get("PatternType");if(1===f){var p=i.base?i.base.getRgb(n,0):null;return this.handleTilingType(t,p,s,c,d,e,l)}if(2===f){var A=d.get("Shading"),g=d.getArray("Matrix");return c=h.Pattern.parseShading(A,g,this.xref,s,this.handler,this.pdfFunctionFactory),void e.addOp(t,c.getIR())}throw new r.FormatError(`Unknown PatternType: ${f}`)}throw new r.FormatError(`Unknown PatternName: ${u}`)},getOperatorList({stream:e,task:t,resources:i,operatorList:o,initialState:s=null}){if(i=i||a.Dict.empty,s=s||new B,!o)throw new Error('getOperatorList: missing "operatorList" parameter');var l=this,c=this.xref;let u=!1;const d=new y.LocalImageCache;var f=i.get("XObject")||a.Dict.empty,A=i.get("Pattern")||a.Dict.empty,g=new S(s),m=new E(e,c,g),v=new n;function b(e){for(var t=0,n=m.savedStatesDepth;t<n;t++)o.addOp(r.OPS.restore,[])}return new Promise(function e(n,s){const y=function(t){Promise.all([t,o.ready]).then(function(){try{e(n,s)}catch(e){s(e)}},s)};t.ensureNotTerminated(),v.reset();for(var w,x,C,S,k={};!(w=v.check())&&(k.args=null,m.read(k));){var B=k.args,E=k.fn;switch(0|E){case r.OPS.paintXObject:var T=B[0].name;if(T){const e=d.getByName(T);if(e){o.addOp(e.fn,e.args),B=null;continue}}return void y(new Promise(function(e,n){if(!T)throw new r.FormatError("XObject must be referred to by name.");let s=f.getRaw(T);if(s instanceof a.Ref){const t=d.getByRef(s);if(t)return o.addOp(t.fn,t.args),void e();const n=l.globalImageCache.getData(s,l.pageIndex);if(n)return o.addDependency(n.objId),o.addOp(n.fn,n.args),void e();s=c.fetch(s)}if(!s)return o.addOp(E,B),void e();if(!(0,a.isStream)(s))throw new r.FormatError("XObject should be a stream");const u=s.dict.get("Subtype");if(!(0,a.isName)(u))throw new r.FormatError("XObject should have a Name subtype");if("Form"===u.name)return g.save(),void l.buildFormXObject(i,s,null,o,t,g.state.clone()).then(function(){g.restore(),e()},n);if("Image"!==u.name){if("PS"!==u.name)throw new r.FormatError(`Unhandled XObject subtype ${u.name}`);(0,r.info)("Ignored XObject subtype PS"),e()}else l.buildPaintImageXObject({resources:i,image:s,operatorList:o,cacheKey:T,localImageCache:d}).then(e,n)}).catch(function(e){if(!(e instanceof r.AbortException)){if(l.options.ignoreErrors)return l.handler.send("UnsupportedFeature",{featureId:r.UNSUPPORTED_FEATURES.errorXObject}),void(0,r.warn)(`getOperatorList - ignoring XObject: "${e}".`);throw e}}));case r.OPS.setFont:var I=B[1];return void y(l.handleSetFont(i,B,null,o,t,g.state).then(function(e){o.addDependency(e),o.addOp(r.OPS.setFont,[e,I])}));case r.OPS.beginText:u=!0;break;case r.OPS.endText:u=!1;break;case r.OPS.endInlineImage:var M=B[0].cacheKey;if(M){const e=d.getByName(M);if(e){o.addOp(e.fn,e.args),B=null;continue}}return void y(l.buildPaintImageXObject({resources:i,image:B[0],isInline:!0,operatorList:o,cacheKey:M,localImageCache:d}));case r.OPS.showText:if(!g.state.font){l.ensureStateFont(g.state);continue}B[0]=l.handleText(B[0],g.state);break;case r.OPS.showSpacedText:if(!g.state.font){l.ensureStateFont(g.state);continue}var F=B[0],D=[],P=F.length,O=g.state;for(x=0;x<P;++x){var L=F[x];(0,r.isString)(L)?Array.prototype.push.apply(D,l.handleText(L,O)):(0,r.isNum)(L)&&D.push(L)}B[0]=D,E=r.OPS.showText;break;case r.OPS.nextLineShowText:if(!g.state.font){l.ensureStateFont(g.state);continue}o.addOp(r.OPS.nextLine),B[0]=l.handleText(B[0],g.state),E=r.OPS.showText;break;case r.OPS.nextLineSetSpacingShowText:if(!g.state.font){l.ensureStateFont(g.state);continue}o.addOp(r.OPS.nextLine),o.addOp(r.OPS.setWordSpacing,[B.shift()]),o.addOp(r.OPS.setCharSpacing,[B.shift()]),B[0]=l.handleText(B[0],g.state),E=r.OPS.showText;break;case r.OPS.setTextRenderingMode:g.state.textRenderingMode=B[0];break;case r.OPS.setFillColorSpace:return void y(l.parseColorSpace({cs:B[0],resources:i}).then(function(e){e&&(g.state.fillColorSpace=e)}));case r.OPS.setStrokeColorSpace:return void y(l.parseColorSpace({cs:B[0],resources:i}).then(function(e){e&&(g.state.strokeColorSpace=e)}));case r.OPS.setFillColor:S=g.state.fillColorSpace,B=S.getRgb(B,0),E=r.OPS.setFillRGBColor;break;case r.OPS.setStrokeColor:S=g.state.strokeColorSpace,B=S.getRgb(B,0),E=r.OPS.setStrokeRGBColor;break;case r.OPS.setFillGray:g.state.fillColorSpace=p.ColorSpace.singletons.gray,B=p.ColorSpace.singletons.gray.getRgb(B,0),E=r.OPS.setFillRGBColor;break;case r.OPS.setStrokeGray:g.state.strokeColorSpace=p.ColorSpace.singletons.gray,B=p.ColorSpace.singletons.gray.getRgb(B,0),E=r.OPS.setStrokeRGBColor;break;case r.OPS.setFillCMYKColor:g.state.fillColorSpace=p.ColorSpace.singletons.cmyk,B=p.ColorSpace.singletons.cmyk.getRgb(B,0),E=r.OPS.setFillRGBColor;break;case r.OPS.setStrokeCMYKColor:g.state.strokeColorSpace=p.ColorSpace.singletons.cmyk,B=p.ColorSpace.singletons.cmyk.getRgb(B,0),E=r.OPS.setStrokeRGBColor;break;case r.OPS.setFillRGBColor:g.state.fillColorSpace=p.ColorSpace.singletons.rgb,B=p.ColorSpace.singletons.rgb.getRgb(B,0);break;case r.OPS.setStrokeRGBColor:g.state.strokeColorSpace=p.ColorSpace.singletons.rgb,B=p.ColorSpace.singletons.rgb.getRgb(B,0);break;case r.OPS.setFillColorN:if("Pattern"===(S=g.state.fillColorSpace).name)return void y(l.handleColorN(o,r.OPS.setFillColorN,B,S,A,i,t));B=S.getRgb(B,0),E=r.OPS.setFillRGBColor;break;case r.OPS.setStrokeColorN:if("Pattern"===(S=g.state.strokeColorSpace).name)return void y(l.handleColorN(o,r.OPS.setStrokeColorN,B,S,A,i,t));B=S.getRgb(B,0),E=r.OPS.setStrokeRGBColor;break;case r.OPS.shadingFill:var R=i.get("Shading");if(!R)throw new r.FormatError("No shading resource found");var N=R.get(B[0].name);if(!N)throw new r.FormatError("No shading object found");var U=h.Pattern.parseShading(N,null,c,i,l.handler,l.pdfFunctionFactory).getIR();B=[U],E=r.OPS.shadingFill;break;case r.OPS.setGState:var H=B[0],j=i.get("ExtGState");if(!(0,a.isDict)(j)||!j.has(H.name))break;var Q=j.get(H.name);return void y(l.setGState(i,Q,o,t,g));case r.OPS.moveTo:case r.OPS.lineTo:case r.OPS.curveTo:case r.OPS.curveTo2:case r.OPS.curveTo3:case r.OPS.closePath:case r.OPS.rectangle:l.buildPath(o,E,B,u);continue;case r.OPS.markPoint:case r.OPS.markPointProps:case r.OPS.beginMarkedContent:case r.OPS.beginMarkedContentProps:case r.OPS.endMarkedContent:case r.OPS.beginCompat:case r.OPS.endCompat:continue;default:if(null!==B){for(x=0,C=B.length;x<C&&!(B[x]instanceof a.Dict);x++);if(x<C){(0,r.warn)("getOperatorList - ignoring operator: "+E);continue}}}o.addOp(E,B)}w?y(_):(b(),n())}).catch(e=>{if(!(e instanceof r.AbortException)){if(this.options.ignoreErrors)return this.handler.send("UnsupportedFeature",{featureId:r.UNSUPPORTED_FEATURES.errorOperatorList}),(0,r.warn)(`getOperatorList - ignoring errors during "${t.name}" `+`task: "${e}".`),void b();throw e}})},getTextContent({stream:e,task:t,resources:i,stateManager:o=null,normalizeWhitespace:s=!1,combineTextItems:l=!1,sink:u,seenStyles:h=Object.create(null)}){i=i||a.Dict.empty,o=o||new S(new k);var d=/\s/g,p={items:[],styles:Object.create(null)},A={initialized:!1,str:[],width:0,height:0,vertical:!1,lastAdvanceWidth:0,lastAdvanceHeight:0,textAdvanceScale:0,spaceWidth:0,fakeSpaceMin:1/0,fakeMultiSpaceMin:1/0,fakeMultiSpaceMax:-0,textRunBreakAllowed:!1,transform:null,fontName:null},g=.3,m=1.5,v=4,b=this,w=this.xref,x=null;const C=new y.LocalImageCache;var B,T=new E(e,w,o);function I(){if(A.initialized)return A;var e=B.font;e.loadedName in h||(h[e.loadedName]=!0,p.styles[e.loadedName]={fontFamily:e.fallbackName,ascent:e.ascent,descent:e.descent,vertical:e.vertical}),A.fontName=e.loadedName;var t=[B.fontSize*B.textHScale,0,0,B.fontSize,0,B.textRise];if(e.isType3Font&&B.fontSize<=1&&!(0,r.isArrayEqual)(B.fontMatrix,r.FONT_IDENTITY_MATRIX)){const n=e.bbox[3]-e.bbox[1];n>0&&(t[3]*=n*B.fontMatrix[3])}var n=r.Util.transform(B.ctm,r.Util.transform(B.textMatrix,t));A.transform=n,e.vertical?(A.width=Math.sqrt(n[0]*n[0]+n[1]*n[1]),A.height=0,A.vertical=!0):(A.width=0,A.height=Math.sqrt(n[2]*n[2]+n[3]*n[3]),A.vertical=!1);var i=B.textLineMatrix[0],a=B.textLineMatrix[1],o=Math.sqrt(i*i+a*a);i=B.ctm[0],a=B.ctm[1];var s=Math.sqrt(i*i+a*a);A.textAdvanceScale=s*o,A.lastAdvanceWidth=0,A.lastAdvanceHeight=0;var l=e.spaceWidth/1e3*B.fontSize;return l?(A.spaceWidth=l,A.fakeSpaceMin=l*g,A.fakeMultiSpaceMin=l*m,A.fakeMultiSpaceMax=l*v,A.textRunBreakAllowed=!e.isMonospace):(A.spaceWidth=0,A.fakeSpaceMin=1/0,A.fakeMultiSpaceMin=1/0,A.fakeMultiSpaceMax=0,A.textRunBreakAllowed=!1),A.initialized=!0,A}function M(e){var t=e.str.join(""),n=(0,f.bidi)(t,-1,e.vertical);return{str:s?function(e){for(var t,n=0,r=e.length;n<r&&(t=e.charCodeAt(n))>=32&&t<=127;)n++;return n<r?e.replace(d," "):e}(n.str):n.str,dir:n.dir,width:e.width,height:e.height,transform:e.transform,fontName:e.fontName}}function F(e,t){return b.loadFont(e,t,i).then(function(e){B.font=e.font,B.fontMatrix=e.font.fontMatrix||r.FONT_IDENTITY_MATRIX})}function D(e){for(var t=B.font,n=I(),r=0,i=0,a=t.charsToGlyphs(e),o=0;o<a.length;o++){var s=a[o],l=null;l=t.vertical&&s.vmetric?s.vmetric[0]:s.width;var u=s.unicode,h=(0,c.getNormalizedUnicodes)();void 0!==h[u]&&(u=h[u]),u=(0,c.reverseIfRtl)(u);var d=B.charSpacing;if(s.isSpace){var f=B.wordSpacing;d+=f,f>0&&P(f,n.str)}var p=0,A=0;if(t.vertical)i+=A=l*B.fontMatrix[0]*B.fontSize+d;else r+=p=(l*B.fontMatrix[0]*B.fontSize+d)*B.textHScale;B.translateTextMatrix(p,A),n.str.push(u)}return t.vertical?(n.lastAdvanceHeight=i,n.height+=Math.abs(i)):(n.lastAdvanceWidth=r,n.width+=r),n}function P(e,t){if(!(e<A.fakeSpaceMin))if(e<A.fakeMultiSpaceMin)t.push(" ");else for(var n=Math.round(e/A.spaceWidth);n-- >0;)t.push(" ")}function O(){A.initialized&&(A.vertical?A.height*=A.textAdvanceScale:A.width*=A.textAdvanceScale,p.items.push(M(A)),A.initialized=!1,A.str.length=0)}function L(){const e=p.items.length;e>0&&(u.enqueue(p,e),p.items=[],p.styles=Object.create(null))}var R=new n;return new Promise(function e(n,c){const d=function(t){L(),Promise.all([t,u.ready]).then(function(){try{e(n,c)}catch(e){c(e)}},c)};t.ensureNotTerminated(),R.reset();for(var f,g={},m=[];!(f=R.check())&&(m.length=0,g.args=m,T.read(g));){B=o.state;var v,y=g.fn;switch(m=g.args,0|y){case r.OPS.setFont:var k=m[0].name,E=m[1];if(B.font&&k===B.fontName&&E===B.fontSize)break;return O(),B.fontName=k,B.fontSize=E,void d(F(k,null));case r.OPS.setTextRise:O(),B.textRise=m[0];break;case r.OPS.setHScale:O(),B.textHScale=m[0]/100;break;case r.OPS.setLeading:O(),B.leading=m[0];break;case r.OPS.moveText:var M=!!B.font&&0===(B.font.vertical?m[0]:m[1]);if(v=m[0]-m[1],l&&M&&A.initialized&&v>0&&v<=A.fakeMultiSpaceMax){B.translateTextLineMatrix(m[0],m[1]),A.width+=m[0]-A.lastAdvanceWidth,A.height+=m[1]-A.lastAdvanceHeight,P(m[0]-A.lastAdvanceWidth-(m[1]-A.lastAdvanceHeight),A.str);break}O(),B.translateTextLineMatrix(m[0],m[1]),B.textMatrix=B.textLineMatrix.slice();break;case r.OPS.setLeadingMoveText:O(),B.leading=-m[1],B.translateTextLineMatrix(m[0],m[1]),B.textMatrix=B.textLineMatrix.slice();break;case r.OPS.nextLine:O(),B.carriageReturn();break;case r.OPS.setTextMatrix:if(v=B.calcTextLineMatrixAdvance(m[0],m[1],m[2],m[3],m[4],m[5]),l&&null!==v&&A.initialized&&v.value>0&&v.value<=A.fakeMultiSpaceMax){B.translateTextLineMatrix(v.width,v.height),A.width+=v.width-A.lastAdvanceWidth,A.height+=v.height-A.lastAdvanceHeight,P(v.width-A.lastAdvanceWidth-(v.height-A.lastAdvanceHeight),A.str);break}O(),B.setTextMatrix(m[0],m[1],m[2],m[3],m[4],m[5]),B.setTextLineMatrix(m[0],m[1],m[2],m[3],m[4],m[5]);break;case r.OPS.setCharSpacing:B.charSpacing=m[0];break;case r.OPS.setWordSpacing:B.wordSpacing=m[0];break;case r.OPS.beginText:O(),B.textMatrix=r.IDENTITY_MATRIX.slice(),B.textLineMatrix=r.IDENTITY_MATRIX.slice();break;case r.OPS.showSpacedText:if(!o.state.font){b.ensureStateFont(o.state);continue}for(var N,U=m[0],H=0,j=U.length;H<j;H++)if("string"==typeof U[H])D(U[H]);else if((0,r.isNum)(U[H])){I(),v=U[H]*B.fontSize/1e3;var Q=!1;B.font.vertical?(N=v,B.translateTextMatrix(0,N),(Q=A.textRunBreakAllowed&&v>A.fakeMultiSpaceMax)||(A.height+=N)):(N=(v=-v)*B.textHScale,B.translateTextMatrix(N,0),(Q=A.textRunBreakAllowed&&v>A.fakeMultiSpaceMax)||(A.width+=N)),Q?O():v>0&&P(v,A.str)}break;case r.OPS.showText:if(!o.state.font){b.ensureStateFont(o.state);continue}D(m[0]);break;case r.OPS.nextLineShowText:if(!o.state.font){b.ensureStateFont(o.state);continue}O(),B.carriageReturn(),D(m[0]);break;case r.OPS.nextLineSetSpacingShowText:if(!o.state.font){b.ensureStateFont(o.state);continue}O(),B.wordSpacing=m[0],B.charSpacing=m[1],B.carriageReturn(),D(m[2]);break;case r.OPS.paintXObject:O(),x||(x=i.get("XObject")||a.Dict.empty);var z=m[0].name;if(z&&C.getByName(z))break;return void d(new Promise(function(e,n){if(!z)throw new r.FormatError("XObject must be referred to by name.");let c=x.getRaw(z);if(c instanceof a.Ref){if(C.getByRef(c))return void e();c=w.fetch(c)}if(!c)return void e();if(!(0,a.isStream)(c))throw new r.FormatError("XObject should be a stream");const d=c.dict.get("Subtype");if(!(0,a.isName)(d))throw new r.FormatError("XObject should have a Name subtype");if("Form"!==d.name)return C.set(z,c.dict.objId,!0),void e();const f=o.state.clone(),p=new S(f),A=c.dict.getArray("Matrix");Array.isArray(A)&&6===A.length&&p.transform(A),L();const g={enqueueInvoked:!1,enqueue(e,t){this.enqueueInvoked=!0,u.enqueue(e,t)},get desiredSize(){return u.desiredSize},get ready(){return u.ready}};b.getTextContent({stream:c,task:t,resources:c.dict.get("Resources")||i,stateManager:p,normalizeWhitespace:s,combineTextItems:l,sink:g,seenStyles:h}).then(function(){g.enqueueInvoked||C.set(z,c.dict.objId,!0),e()},n)}).catch(function(e){if(!(e instanceof r.AbortException)){if(!b.options.ignoreErrors)throw e;(0,r.warn)(`getTextContent - ignoring XObject: "${e}".`)}}));case r.OPS.setGState:O();var V=m[0],G=i.get("ExtGState");if(!(0,a.isDict)(G)||!(0,a.isName)(V))break;var $=G.get(V.name);if(!(0,a.isDict)($))break;var q=$.get("Font");if(q)return B.fontName=null,B.fontSize=q[1],void d(F(null,q[0]))}if(p.items.length>=u.desiredSize){f=!0;break}}f?d(_):(O(),L(),n())}).catch(e=>{if(!(e instanceof r.AbortException)){if(this.options.ignoreErrors)return(0,r.warn)(`getTextContent - ignoring errors during "${t.name}" `+`task: "${e}".`),O(),void L();throw e}})},extractDataStructures:function(e,t,n){const i=this.xref;let l;var c=e.get("ToUnicode")||t.get("ToUnicode"),u=c?this.readToUnicode(c):Promise.resolve(void 0);if(n.composite){var h=e.get("CIDSystemInfo");(0,a.isDict)(h)&&(n.cidSystemInfo={registry:(0,r.stringToPDFString)(h.get("Registry")),ordering:(0,r.stringToPDFString)(h.get("Ordering")),supplement:h.get("Supplement")});var d=e.get("CIDToGIDMap");(0,a.isStream)(d)&&(l=d.getBytes())}var f,p=[],A=null;if(e.has("Encoding")){if(f=e.get("Encoding"),(0,a.isDict)(f)){if(A=f.get("BaseEncoding"),A=(0,a.isName)(A)?A.name:null,f.has("Differences"))for(var g=f.get("Differences"),m=0,v=0,y=g.length;v<y;v++){var b=i.fetchIfRef(g[v]);if((0,r.isNum)(b))m=b;else{if(!(0,a.isName)(b))throw new r.FormatError(`Invalid entry in 'Differences' array: ${b}`);p[m++]=b.name}}}else{if(!(0,a.isName)(f))throw new r.FormatError("Encoding is not a Name nor a Dict");A=f.name}"MacRomanEncoding"!==A&&"MacExpertEncoding"!==A&&"WinAnsiEncoding"!==A&&(A=null)}if(A)n.defaultEncoding=(0,s.getEncoding)(A).slice();else{var w=!!(n.flags&o.FontFlags.Symbolic),x=!!(n.flags&o.FontFlags.Nonsymbolic);f=s.StandardEncoding,"TrueType"!==n.type||x||(f=s.WinAnsiEncoding),w&&(f=s.MacRomanEncoding,n.file||(/Symbol/i.test(n.name)?f=s.SymbolSetEncoding:/Dingbats|Wingdings/i.test(n.name)&&(f=s.ZapfDingbatsEncoding))),n.defaultEncoding=f}return n.differences=p,n.baseEncodingName=A,n.hasEncoding=!!A||p.length>0,n.dict=e,u.then(e=>(n.toUnicode=e,this.buildToUnicode(n))).then(e=>(n.toUnicode=e,l&&(n.cidToGidMap=this.readCidToGidMap(l,e)),n))},_buildSimpleFontToUnicode(e,t=!1){(0,r.assert)(!e.composite,"Must be a simple font.");const n=[],i=e.defaultEncoding.slice(),a=e.baseEncodingName,l=e.differences;for(const e in l){const t=l[e];".notdef"!==t&&(i[e]=t)}const u=(0,g.getGlyphsUnicode)();for(const r in i){let o=i[r];if(""!==o)if(void 0!==u[o])n[r]=String.fromCharCode(u[o]);else{let i=0;switch(o[0]){case"G":3===o.length&&(i=parseInt(o.substring(1),16));break;case"g":5===o.length&&(i=parseInt(o.substring(1),16));break;case"C":case"c":if(o.length>=3&&o.length<=4){const n=o.substring(1);if(t){i=parseInt(n,16);break}if(i=+n,Number.isNaN(i)&&Number.isInteger(parseInt(n,16)))return this._buildSimpleFontToUnicode(e,!0)}break;default:const n=(0,c.getUnicodeForGlyph)(o,u);-1!==n&&(i=n)}if(i>0&&i<=1114111&&Number.isInteger(i)){if(a&&i===+r){const e=(0,s.getEncoding)(a);if(e&&(o=e[r])){n[r]=String.fromCharCode(u[o]);continue}}n[r]=String.fromCodePoint(i)}}}return new o.ToUnicodeMap(n)},buildToUnicode(e){if(e.hasIncludedToUnicodeMap=!!e.toUnicode&&e.toUnicode.length>0,e.hasIncludedToUnicodeMap)return!e.composite&&e.hasEncoding&&(e.fallbackToUnicode=this._buildSimpleFontToUnicode(e)),Promise.resolve(e.toUnicode);if(!e.composite)return Promise.resolve(this._buildSimpleFontToUnicode(e));if(e.composite&&(e.cMap.builtInCMap&&!(e.cMap instanceof i.IdentityCMap)||"Adobe"===e.cidSystemInfo.registry&&("GB1"===e.cidSystemInfo.ordering||"CNS1"===e.cidSystemInfo.ordering||"Japan1"===e.cidSystemInfo.ordering||"Korea1"===e.cidSystemInfo.ordering))){const t=e.cidSystemInfo.registry,n=e.cidSystemInfo.ordering,s=a.Name.get(t+"-"+n+"-UCS2");return i.CMapFactory.create({encoding:s,fetchBuiltInCMap:this.fetchBuiltInCMap,useCMap:null}).then(function(t){const n=[];return e.cMap.forEach(function(e,i){if(i>65535)throw new r.FormatError("Max size of CID is 65,535");const a=t.lookup(i);a&&(n[e]=String.fromCharCode((a.charCodeAt(0)<<8)+a.charCodeAt(1)))}),new o.ToUnicodeMap(n)})}return Promise.resolve(new o.IdentityToUnicodeMap(e.firstChar,e.lastChar))},readToUnicode:function(e){var t=e;return(0,a.isName)(t)?i.CMapFactory.create({encoding:t,fetchBuiltInCMap:this.fetchBuiltInCMap,useCMap:null}).then(function(e){return e instanceof i.IdentityCMap?new o.IdentityToUnicodeMap(0,65535):new o.ToUnicodeMap(e.getMap())}):(0,a.isStream)(t)?i.CMapFactory.create({encoding:t,fetchBuiltInCMap:this.fetchBuiltInCMap,useCMap:null}).then(function(e){if(e instanceof i.IdentityCMap)return new o.IdentityToUnicodeMap(0,65535);var t=new Array(e.length);return e.forEach(function(e,n){for(var r=[],i=0;i<n.length;i+=2){var a=n.charCodeAt(i)<<8|n.charCodeAt(i+1);if(55296==(63488&a)){i+=2;var o=n.charCodeAt(i)<<8|n.charCodeAt(i+1);r.push(((1023&a)<<10)+(1023&o)+65536)}else r.push(a)}t[e]=String.fromCodePoint.apply(String,r)}),new o.ToUnicodeMap(t)},e=>{if(e instanceof r.AbortException)return null;if(this.options.ignoreErrors)return this.handler.send("UnsupportedFeature",{featureId:r.UNSUPPORTED_FEATURES.errorFontToUnicode}),(0,r.warn)(`readToUnicode - ignoring ToUnicode data: "${e}".`),null;throw e}):Promise.resolve(null)},readCidToGidMap(e,t){for(var n=[],r=0,i=e.length;r<i;r++){var a=e[r++]<<8|e[r];const i=r>>1;(0!==a||t.has(i))&&(n[i]=a)}return n},extractWidths:function(e,t,n){var r,i,s,l,c,u,h,d,f=this.xref,p=[],A=0,g=[];if(n.composite){if(A=e.has("DW")?e.get("DW"):1e3,d=e.get("W"))for(i=0,s=d.length;i<s;i++)if(u=f.fetchIfRef(d[i++]),h=f.fetchIfRef(d[i]),Array.isArray(h))for(l=0,c=h.length;l<c;l++)p[u++]=f.fetchIfRef(h[l]);else{var m=f.fetchIfRef(d[++i]);for(l=u;l<=h;l++)p[l]=m}if(n.vertical){var v=e.getArray("DW2")||[880,-1e3];if(r=[v[1],.5*A,v[0]],v=e.get("W2"))for(i=0,s=v.length;i<s;i++)if(u=f.fetchIfRef(v[i++]),h=f.fetchIfRef(v[i]),Array.isArray(h))for(l=0,c=h.length;l<c;l++)g[u++]=[f.fetchIfRef(h[l++]),f.fetchIfRef(h[l++]),f.fetchIfRef(h[l])];else{var y=[f.fetchIfRef(v[++i]),f.fetchIfRef(v[++i]),f.fetchIfRef(v[++i])];for(l=u;l<=h;l++)g[l]=y}}}else{var b=n.firstChar;if(d=e.get("Widths")){for(l=b,i=0,s=d.length;i<s;i++)p[l++]=f.fetchIfRef(d[i]);A=parseFloat(t.get("MissingWidth"))||0}else{var w=e.get("BaseFont");if((0,a.isName)(w)){var x=this.getBaseFontMetrics(w.name);p=this.buildCharCodeToWidth(x.widths,n),A=x.defaultWidth}}}var _=!0,C=A;for(var S in p){var k=p[S];if(k)if(C){if(C!==k){_=!1;break}}else C=k}_&&(n.flags|=o.FontFlags.FixedPitch),n.defaultWidth=A,n.widths=p,n.defaultVMetrics=r,n.vmetrics=g},isSerifFont:function(e){var t=e.split("-")[0];return t in(0,u.getSerifFonts)()||-1!==t.search(/serif/gi)},getBaseFontMetrics:function(e){var t=0,n=[],i=!1,a=(0,u.getStdFontMap)()[e]||e,o=(0,m.getMetrics)();a in o||(a=this.isSerifFont(e)?"Times-Roman":"Helvetica");var s=o[a];return(0,r.isNum)(s)?(t=s,i=!0):n=s(),{defaultWidth:t,monospace:i,widths:n}},buildCharCodeToWidth:function(e,t){for(var n=Object.create(null),r=t.differences,i=t.defaultEncoding,a=0;a<256;a++)a in r&&e[r[a]]?n[a]=e[r[a]]:a in i&&e[i[a]]&&(n[a]=e[i[a]]);return n},preEvaluateFont:function(e){var t=e,n=e.get("Subtype");if(!(0,a.isName)(n))throw new r.FormatError("invalid font Subtype");var i,o=!1;if("Type0"===n.name){var s=e.get("DescendantFonts");if(!s)throw new r.FormatError("Descendant fonts are not specified");if(n=(e=Array.isArray(s)?this.xref.fetchIfRef(s[0]):s).get("Subtype"),!(0,a.isName)(n))throw new r.FormatError("invalid font Subtype");o=!0}var l=e.get("FontDescriptor");if(l){var c=new b.MurmurHash3_64,u=t.getRaw("Encoding");if((0,a.isName)(u))c.update(u.name);else if((0,a.isRef)(u))c.update(u.toString());else if((0,a.isDict)(u))for(var h=u.getKeys(),d=0,f=h.length;d<f;d++){var p=u.getRaw(h[d]);if((0,a.isName)(p))c.update(p.name);else if((0,a.isRef)(p))c.update(p.toString());else if(Array.isArray(p)){for(var A=p.length,g=new Array(A),m=0;m<A;m++){var v=p[m];(0,a.isName)(v)?g[m]=v.name:((0,r.isNum)(v)||(0,a.isRef)(v))&&(g[m]=v.toString())}c.update(g.join())}}const n=e.get("FirstChar")||0,s=e.get("LastChar")||(o?65535:255);c.update(`${n}-${s}`);var y=e.get("ToUnicode")||t.get("ToUnicode");if((0,a.isStream)(y)){var w=y.str||y;i=w.buffer?new Uint8Array(w.buffer.buffer,0,w.bufferLength):new Uint8Array(w.bytes.buffer,w.start,w.end-w.start),c.update(i)}else(0,a.isName)(y)&&c.update(y.name);var x=e.get("Widths")||t.get("Widths");x&&(i=new Uint8Array(new Uint32Array(x).buffer),c.update(i))}return{descriptor:l,dict:e,baseDict:t,composite:o,type:n.name,hash:c?c.hexdigest():""}},translateFont:function(e){var t,n=e.baseDict,s=e.dict,l=e.composite,c=e.descriptor,h=e.type,d=l?65535:255;const f=s.get("FirstChar")||0,p=s.get("LastChar")||d;if(!c){if("Type3"!==h){var A=s.get("BaseFont");if(!(0,a.isName)(A))throw new r.FormatError("Base font is not specified");A=A.name.replace(/[,_]/g,"-");var g=this.getBaseFontMetrics(A),m=A.split("-")[0],v=(this.isSerifFont(m)?o.FontFlags.Serif:0)|(g.monospace?o.FontFlags.FixedPitch:0)|((0,u.getSymbolsFonts)()[m]?o.FontFlags.Symbolic:o.FontFlags.Nonsymbolic);t={type:h,name:A,widths:g.widths,defaultWidth:g.defaultWidth,flags:v,firstChar:f,lastChar:p};const e=s.get("Widths");return this.extractDataStructures(s,s,t).then(t=>{if(e){const n=[];let r=f;for(let t=0,i=e.length;t<i;t++)n[r++]=this.xref.fetchIfRef(e[t]);t.widths=n}else t.widths=this.buildCharCodeToWidth(g.widths,t);return new o.Font(A,null,t)})}(c=new a.Dict(null)).set("FontName",a.Name.get(h)),c.set("FontBBox",s.getArray("FontBBox")||[0,0,0,0])}var y=c.get("FontName"),b=s.get("BaseFont");if((0,r.isString)(y)&&(y=a.Name.get(y)),(0,r.isString)(b)&&(b=a.Name.get(b)),"Type3"!==h){var w=y&&y.name,x=b&&b.name;w!==x&&((0,r.info)(`The FontDescriptor's FontName is "${w}" but `+`should be the same as the Font's BaseFont "${x}".`),w&&x&&x.startsWith(w)&&(y=b))}if(y=y||b,!(0,a.isName)(y))throw new r.FormatError("invalid font name");var _,C=c.get("FontFile","FontFile2","FontFile3");if(C&&C.dict){var S=C.dict.get("Subtype");S&&(S=S.name);var k=C.dict.get("Length1"),B=C.dict.get("Length2"),E=C.dict.get("Length3")}if(t={type:h,name:y.name,subtype:S,file:C,length1:k,length2:B,length3:E,loadedName:n.loadedName,composite:l,fixedPitch:!1,fontMatrix:s.getArray("FontMatrix")||r.FONT_IDENTITY_MATRIX,firstChar:f||0,lastChar:p||d,bbox:c.getArray("FontBBox"),ascent:c.get("Ascent"),descent:c.get("Descent"),xHeight:c.get("XHeight"),capHeight:c.get("CapHeight"),flags:c.get("Flags"),italicAngle:c.get("ItalicAngle"),isType3Font:!1},l){var T=n.get("Encoding");(0,a.isName)(T)&&(t.cidEncoding=T.name),_=i.CMapFactory.create({encoding:T,fetchBuiltInCMap:this.fetchBuiltInCMap,useCMap:null}).then(function(e){t.cMap=e,t.vertical=t.cMap.vertical})}else _=Promise.resolve(void 0);return _.then(()=>this.extractDataStructures(s,n,t)).then(e=>(this.extractWidths(s,c,e),"Type3"===h&&(e.isType3Font=!0),new o.Font(y.name,C,e)))}},t.buildFontPaths=function(e,t,n){function r(t){e.renderer.hasBuiltPath(t)||n.send("commonobj",[`${e.loadedName}_path_${t}`,"FontPath",e.renderer.getPathJs(t)])}for(const e of t){r(e.fontChar);const t=e.accent;t&&t.fontChar&&r(t.fontChar)}},t.getFallbackFontDict=function(){if(this._fallbackFontDict)return this._fallbackFontDict;const e=new a.Dict;return e.set("BaseFont",a.Name.get("PDFJS-FallbackFont")),e.set("Type",a.Name.get("FallbackType")),e.set("Subtype",a.Name.get("FallbackType")),e.set("Encoding",a.Name.get("WinAnsiEncoding")),this._fallbackFontDict=e},t}();t.PartialEvaluator=_;class C{constructor({loadedName:e,font:t,dict:n,extraProperties:r=!1}){this.loadedName=e,this.font=t,this.dict=n,this._extraProperties=r,this.type3Loaded=null,this.sent=!1}send(e){this.sent||(this.sent=!0,e.send("commonobj",[this.loadedName,"Font",this.font.exportData(this._extraProperties)]))}fallback(e){if(!this.font.data)return;this.font.disableFontFace=!0;const t=this.font.glyphCacheValues;_.buildFontPaths(this.font,t,e)}loadType3Data(e,t,n,i){if(!this.font.isType3Font)throw new Error("Must be a Type3 font.");if(this.type3Loaded)return this.type3Loaded;var a=Object.create(e.options);a.ignoreErrors=!1;var o=e.clone(a);o.parsingType3Font=!0;for(var s=this.font,l=Promise.resolve(),c=this.dict.get("CharProcs"),u=this.dict.get("Resources")||t,h=c.getKeys(),d=Object.create(null),f=0,p=h.length;f<p;++f){const e=h[f];l=l.then(function(){var t=c.get(e),a=new w.OperatorList;return o.getOperatorList({stream:t,task:i,resources:u,operatorList:a}).then(function(){d[e]=a.getIR(),n.addDependencies(a.dependencies)}).catch(function(t){(0,r.warn)(`Type3 font resource "${e}" is not available.`);const n=new w.OperatorList;d[e]=n.getIR()})})}return this.type3Loaded=l.then(function(){s.charProcOperatorList=d}),this.type3Loaded}}var S=function(){function e(e){this.state=e,this.stateStack=[]}return e.prototype={save(){var e=this.state;this.stateStack.push(this.state),this.state=e.clone()},restore(){var e=this.stateStack.pop();e&&(this.state=e)},transform(e){this.state.ctm=r.Util.transform(this.state.ctm,e)}},e}(),k=function(){function e(){this.ctm=new Float32Array(r.IDENTITY_MATRIX),this.fontName=null,this.fontSize=0,this.font=null,this.fontMatrix=r.FONT_IDENTITY_MATRIX,this.textMatrix=r.IDENTITY_MATRIX.slice(),this.textLineMatrix=r.IDENTITY_MATRIX.slice(),this.charSpacing=0,this.wordSpacing=0,this.leading=0,this.textHScale=1,this.textRise=0}return e.prototype={setTextMatrix:function(e,t,n,r,i,a){var o=this.textMatrix;o[0]=e,o[1]=t,o[2]=n,o[3]=r,o[4]=i,o[5]=a},setTextLineMatrix:function(e,t,n,r,i,a){var o=this.textLineMatrix;o[0]=e,o[1]=t,o[2]=n,o[3]=r,o[4]=i,o[5]=a},translateTextMatrix:function(e,t){var n=this.textMatrix;n[4]=n[0]*e+n[2]*t+n[4],n[5]=n[1]*e+n[3]*t+n[5]},translateTextLineMatrix:function(e,t){var n=this.textLineMatrix;n[4]=n[0]*e+n[2]*t+n[4],n[5]=n[1]*e+n[3]*t+n[5]},calcTextLineMatrixAdvance:function(e,t,n,r,i,a){var o=this.font;if(!o)return null;var s=this.textLineMatrix;if(e!==s[0]||t!==s[1]||n!==s[2]||r!==s[3])return null;var l=i-s[4],c=a-s[5];if(o.vertical&&0!==l||!o.vertical&&0!==c)return null;var u,h,d=e*r-t*n;return o.vertical?(u=-c*n/d,h=c*e/d):(u=l*r/d,h=-l*t/d),{width:u,height:h,value:o.vertical?h:u}},calcRenderMatrix:function(e){var t=[this.fontSize*this.textHScale,0,0,this.fontSize,0,this.textRise];return r.Util.transform(e,r.Util.transform(this.textMatrix,t))},carriageReturn:function(){this.translateTextLineMatrix(0,-this.leading),this.textMatrix=this.textLineMatrix.slice()},clone:function(){var e=Object.create(this);return e.textMatrix=this.textMatrix.slice(),e.textLineMatrix=this.textLineMatrix.slice(),e.fontMatrix=this.fontMatrix.slice(),e}},e}(),B=function(){function e(){this.ctm=new Float32Array(r.IDENTITY_MATRIX),this.font=null,this.textRenderingMode=r.TextRenderingMode.FILL,this.fillColorSpace=p.ColorSpace.singletons.gray,this.strokeColorSpace=p.ColorSpace.singletons.gray}return e.prototype={clone:function(){return Object.create(this)}},e}(),E=function(){var e=(0,l.getLookupTableFactory)(function(e){e.w={id:r.OPS.setLineWidth,numArgs:1,variableArgs:!1},e.J={id:r.OPS.setLineCap,numArgs:1,variableArgs:!1},e.j={id:r.OPS.setLineJoin,numArgs:1,variableArgs:!1},e.M={id:r.OPS.setMiterLimit,numArgs:1,variableArgs:!1},e.d={id:r.OPS.setDash,numArgs:2,variableArgs:!1},e.ri={id:r.OPS.setRenderingIntent,numArgs:1,variableArgs:!1},e.i={id:r.OPS.setFlatness,numArgs:1,variableArgs:!1},e.gs={id:r.OPS.setGState,numArgs:1,variableArgs:!1},e.q={id:r.OPS.save,numArgs:0,variableArgs:!1},e.Q={id:r.OPS.restore,numArgs:0,variableArgs:!1},e.cm={id:r.OPS.transform,numArgs:6,variableArgs:!1},e.m={id:r.OPS.moveTo,numArgs:2,variableArgs:!1},e.l={id:r.OPS.lineTo,numArgs:2,variableArgs:!1},e.c={id:r.OPS.curveTo,numArgs:6,variableArgs:!1},e.v={id:r.OPS.curveTo2,numArgs:4,variableArgs:!1},e.y={id:r.OPS.curveTo3,numArgs:4,variableArgs:!1},e.h={id:r.OPS.closePath,numArgs:0,variableArgs:!1},e.re={id:r.OPS.rectangle,numArgs:4,variableArgs:!1},e.S={id:r.OPS.stroke,numArgs:0,variableArgs:!1},e.s={id:r.OPS.closeStroke,numArgs:0,variableArgs:!1},e.f={id:r.OPS.fill,numArgs:0,variableArgs:!1},e.F={id:r.OPS.fill,numArgs:0,variableArgs:!1},e["f*"]={id:r.OPS.eoFill,numArgs:0,variableArgs:!1},e.B={id:r.OPS.fillStroke,numArgs:0,variableArgs:!1},e["B*"]={id:r.OPS.eoFillStroke,numArgs:0,variableArgs:!1},e.b={id:r.OPS.closeFillStroke,numArgs:0,variableArgs:!1},e["b*"]={id:r.OPS.closeEOFillStroke,numArgs:0,variableArgs:!1},e.n={id:r.OPS.endPath,numArgs:0,variableArgs:!1},e.W={id:r.OPS.clip,numArgs:0,variableArgs:!1},e["W*"]={id:r.OPS.eoClip,numArgs:0,variableArgs:!1},e.BT={id:r.OPS.beginText,numArgs:0,variableArgs:!1},e.ET={id:r.OPS.endText,numArgs:0,variableArgs:!1},e.Tc={id:r.OPS.setCharSpacing,numArgs:1,variableArgs:!1},e.Tw={id:r.OPS.setWordSpacing,numArgs:1,variableArgs:!1},e.Tz={id:r.OPS.setHScale,numArgs:1,variableArgs:!1},e.TL={id:r.OPS.setLeading,numArgs:1,variableArgs:!1},e.Tf={id:r.OPS.setFont,numArgs:2,variableArgs:!1},e.Tr={id:r.OPS.setTextRenderingMode,numArgs:1,variableArgs:!1},e.Ts={id:r.OPS.setTextRise,numArgs:1,variableArgs:!1},e.Td={id:r.OPS.moveText,numArgs:2,variableArgs:!1},e.TD={id:r.OPS.setLeadingMoveText,numArgs:2,variableArgs:!1},e.Tm={id:r.OPS.setTextMatrix,numArgs:6,variableArgs:!1},e["T*"]={id:r.OPS.nextLine,numArgs:0,variableArgs:!1},e.Tj={id:r.OPS.showText,numArgs:1,variableArgs:!1},e.TJ={id:r.OPS.showSpacedText,numArgs:1,variableArgs:!1},e["'"]={id:r.OPS.nextLineShowText,numArgs:1,variableArgs:!1},e['"']={id:r.OPS.nextLineSetSpacingShowText,numArgs:3,variableArgs:!1},e.d0={id:r.OPS.setCharWidth,numArgs:2,variableArgs:!1},e.d1={id:r.OPS.setCharWidthAndBounds,numArgs:6,variableArgs:!1},e.CS={id:r.OPS.setStrokeColorSpace,numArgs:1,variableArgs:!1},e.cs={id:r.OPS.setFillColorSpace,numArgs:1,variableArgs:!1},e.SC={id:r.OPS.setStrokeColor,numArgs:4,variableArgs:!0},e.SCN={id:r.OPS.setStrokeColorN,numArgs:33,variableArgs:!0},e.sc={id:r.OPS.setFillColor,numArgs:4,variableArgs:!0},e.scn={id:r.OPS.setFillColorN,numArgs:33,variableArgs:!0},e.G={id:r.OPS.setStrokeGray,numArgs:1,variableArgs:!1},e.g={id:r.OPS.setFillGray,numArgs:1,variableArgs:!1},e.RG={id:r.OPS.setStrokeRGBColor,numArgs:3,variableArgs:!1},e.rg={id:r.OPS.setFillRGBColor,numArgs:3,variableArgs:!1},e.K={id:r.OPS.setStrokeCMYKColor,numArgs:4,variableArgs:!1},e.k={id:r.OPS.setFillCMYKColor,numArgs:4,variableArgs:!1},e.sh={id:r.OPS.shadingFill,numArgs:1,variableArgs:!1},e.BI={id:r.OPS.beginInlineImage,numArgs:0,variableArgs:!1},e.ID={id:r.OPS.beginImageData,numArgs:0,variableArgs:!1},e.EI={id:r.OPS.endInlineImage,numArgs:1,variableArgs:!1},e.Do={id:r.OPS.paintXObject,numArgs:1,variableArgs:!1},e.MP={id:r.OPS.markPoint,numArgs:1,variableArgs:!1},e.DP={id:r.OPS.markPointProps,numArgs:2,variableArgs:!1},e.BMC={id:r.OPS.beginMarkedContent,numArgs:1,variableArgs:!1},e.BDC={id:r.OPS.beginMarkedContentProps,numArgs:2,variableArgs:!1},e.EMC={id:r.OPS.endMarkedContent,numArgs:0,variableArgs:!1},e.BX={id:r.OPS.beginCompat,numArgs:0,variableArgs:!1},e.EX={id:r.OPS.endCompat,numArgs:0,variableArgs:!1},e.BM=null,e.BD=null,e.true=null,e.fa=null,e.fal=null,e.fals=null,e.false=null,e.nu=null,e.nul=null,e.null=null});function t(t,n,r){this.opMap=e(),this.parser=new d.Parser({lexer:new d.Lexer(t,this.opMap),xref:n}),this.stateManager=r,this.nonProcessedArgs=[],this._numInvalidPathOPS=0}return t.prototype={get savedStatesDepth(){return this.stateManager.stateStack.length},read:function(e){for(var t=e.args;;){var n=this.parser.getObj();if(n instanceof a.Cmd){var i=n.cmd,o=this.opMap[i];if(!o){(0,r.warn)(`Unknown command "${i}".`);continue}var s=o.id,l=o.numArgs,c=null!==t?t.length:0;if(o.variableArgs)c>l&&(0,r.info)(`Command ${i}: expected [0, ${l}] args, `+`but received ${c} args.`);else{if(c!==l){for(var u=this.nonProcessedArgs;c>l;)u.push(t.shift()),c--;for(;c<l&&0!==u.length;)null===t&&(t=[]),t.unshift(u.pop()),c++}if(c<l){const e=`command ${i}: expected ${l} args, `+`but received ${c} args.`;if(s>=r.OPS.moveTo&&s<=r.OPS.endPath&&++this._numInvalidPathOPS>20)throw new r.FormatError(`Invalid ${e}`);(0,r.warn)(`Skipping ${e}`),null!==t&&(t.length=0);continue}}return this.preprocessCommand(s,t),e.fn=s,e.args=t,!0}if(n===a.EOF)return!1;if(null!==n&&(null===t&&(t=[]),t.push(n),t.length>33))throw new r.FormatError("Too many arguments")}},preprocessCommand:function(e,t){switch(0|e){case r.OPS.save:this.stateManager.save();break;case r.OPS.restore:this.stateManager.restore();break;case r.OPS.transform:this.stateManager.transform(t)}}},t}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CMapFactory=t.IdentityCMap=t.CMap=void 0;var r=n(2),i=n(5),a=n(11),o=n(8),s=n(12),l=["Adobe-GB1-UCS2","Adobe-CNS1-UCS2","Adobe-Japan1-UCS2","Adobe-Korea1-UCS2","78-EUC-H","78-EUC-V","78-H","78-RKSJ-H","78-RKSJ-V","78-V","78ms-RKSJ-H","78ms-RKSJ-V","83pv-RKSJ-H","90ms-RKSJ-H","90ms-RKSJ-V","90msp-RKSJ-H","90msp-RKSJ-V","90pv-RKSJ-H","90pv-RKSJ-V","Add-H","Add-RKSJ-H","Add-RKSJ-V","Add-V","Adobe-CNS1-0","Adobe-CNS1-1","Adobe-CNS1-2","Adobe-CNS1-3","Adobe-CNS1-4","Adobe-CNS1-5","Adobe-CNS1-6","Adobe-GB1-0","Adobe-GB1-1","Adobe-GB1-2","Adobe-GB1-3","Adobe-GB1-4","Adobe-GB1-5","Adobe-Japan1-0","Adobe-Japan1-1","Adobe-Japan1-2","Adobe-Japan1-3","Adobe-Japan1-4","Adobe-Japan1-5","Adobe-Japan1-6","Adobe-Korea1-0","Adobe-Korea1-1","Adobe-Korea1-2","B5-H","B5-V","B5pc-H","B5pc-V","CNS-EUC-H","CNS-EUC-V","CNS1-H","CNS1-V","CNS2-H","CNS2-V","ETHK-B5-H","ETHK-B5-V","ETen-B5-H","ETen-B5-V","ETenms-B5-H","ETenms-B5-V","EUC-H","EUC-V","Ext-H","Ext-RKSJ-H","Ext-RKSJ-V","Ext-V","GB-EUC-H","GB-EUC-V","GB-H","GB-V","GBK-EUC-H","GBK-EUC-V","GBK2K-H","GBK2K-V","GBKp-EUC-H","GBKp-EUC-V","GBT-EUC-H","GBT-EUC-V","GBT-H","GBT-V","GBTpc-EUC-H","GBTpc-EUC-V","GBpc-EUC-H","GBpc-EUC-V","H","HKdla-B5-H","HKdla-B5-V","HKdlb-B5-H","HKdlb-B5-V","HKgccs-B5-H","HKgccs-B5-V","HKm314-B5-H","HKm314-B5-V","HKm471-B5-H","HKm471-B5-V","HKscs-B5-H","HKscs-B5-V","Hankaku","Hiragana","KSC-EUC-H","KSC-EUC-V","KSC-H","KSC-Johab-H","KSC-Johab-V","KSC-V","KSCms-UHC-H","KSCms-UHC-HW-H","KSCms-UHC-HW-V","KSCms-UHC-V","KSCpc-EUC-H","KSCpc-EUC-V","Katakana","NWP-H","NWP-V","RKSJ-H","RKSJ-V","Roman","UniCNS-UCS2-H","UniCNS-UCS2-V","UniCNS-UTF16-H","UniCNS-UTF16-V","UniCNS-UTF32-H","UniCNS-UTF32-V","UniCNS-UTF8-H","UniCNS-UTF8-V","UniGB-UCS2-H","UniGB-UCS2-V","UniGB-UTF16-H","UniGB-UTF16-V","UniGB-UTF32-H","UniGB-UTF32-V","UniGB-UTF8-H","UniGB-UTF8-V","UniJIS-UCS2-H","UniJIS-UCS2-HW-H","UniJIS-UCS2-HW-V","UniJIS-UCS2-V","UniJIS-UTF16-H","UniJIS-UTF16-V","UniJIS-UTF32-H","UniJIS-UTF32-V","UniJIS-UTF8-H","UniJIS-UTF8-V","UniJIS2004-UTF16-H","UniJIS2004-UTF16-V","UniJIS2004-UTF32-H","UniJIS2004-UTF32-V","UniJIS2004-UTF8-H","UniJIS2004-UTF8-V","UniJISPro-UCS2-HW-V","UniJISPro-UCS2-V","UniJISPro-UTF8-V","UniJISX0213-UTF32-H","UniJISX0213-UTF32-V","UniJISX02132004-UTF32-H","UniJISX02132004-UTF32-V","UniKS-UCS2-H","UniKS-UCS2-V","UniKS-UTF16-H","UniKS-UTF16-V","UniKS-UTF32-H","UniKS-UTF32-V","UniKS-UTF8-H","UniKS-UTF8-V","V","WP-Symbol"];const c=2**24-1;class u{constructor(e=!1){this.codespaceRanges=[[],[],[],[]],this.numCodespaceRanges=0,this._map=[],this.name="",this.vertical=!1,this.useCMap=null,this.builtInCMap=e}addCodespaceRange(e,t,n){this.codespaceRanges[e-1].push(t,n),this.numCodespaceRanges++}mapCidRange(e,t,n){if(t-e>c)throw new Error("mapCidRange - ignoring data above MAX_MAP_RANGE.");for(;e<=t;)this._map[e++]=n++}mapBfRange(e,t,n){if(t-e>c)throw new Error("mapBfRange - ignoring data above MAX_MAP_RANGE.");for(var r=n.length-1;e<=t;)this._map[e++]=n,n=n.substring(0,r)+String.fromCharCode(n.charCodeAt(r)+1)}mapBfRangeToArray(e,t,n){if(t-e>c)throw new Error("mapBfRangeToArray - ignoring data above MAX_MAP_RANGE.");const r=n.length;let i=0;for(;e<=t&&i<r;)this._map[e]=n[i++],++e}mapOne(e,t){this._map[e]=t}lookup(e){return this._map[e]}contains(e){return void 0!==this._map[e]}forEach(e){const t=this._map,n=t.length;if(n<=65536)for(let r=0;r<n;r++)void 0!==t[r]&&e(r,t[r]);else for(const n in t)e(n,t[n])}charCodeOf(e){const t=this._map;if(t.length<=65536)return t.indexOf(e);for(const n in t)if(t[n]===e)return 0|n;return-1}getMap(){return this._map}readCharCode(e,t,n){let r=0;const i=this.codespaceRanges;for(let a=0,o=i.length;a<o;a++){r=(r<<8|e.charCodeAt(t+a))>>>0;const o=i[a];for(let e=0,t=o.length;e<t;){const t=o[e++],i=o[e++];if(r>=t&&r<=i)return n.charcode=r,void(n.length=a+1)}}n.charcode=0,n.length=1}get length(){return this._map.length}get isIdentityCMap(){if("Identity-H"!==this.name&&"Identity-V"!==this.name)return!1;if(65536!==this._map.length)return!1;for(let e=0;e<65536;e++)if(this._map[e]!==e)return!1;return!0}}t.CMap=u;class h extends u{constructor(e,t){super(),this.vertical=e,this.addCodespaceRange(t,0,65535)}mapCidRange(e,t,n){(0,r.unreachable)("should not call mapCidRange")}mapBfRange(e,t,n){(0,r.unreachable)("should not call mapBfRange")}mapBfRangeToArray(e,t,n){(0,r.unreachable)("should not call mapBfRangeToArray")}mapOne(e,t){(0,r.unreachable)("should not call mapCidOne")}lookup(e){return Number.isInteger(e)&&e<=65535?e:void 0}contains(e){return Number.isInteger(e)&&e<=65535}forEach(e){for(let t=0;t<=65535;t++)e(t,t)}charCodeOf(e){return Number.isInteger(e)&&e<=65535?e:-1}getMap(){const e=new Array(65536);for(let t=0;t<=65535;t++)e[t]=t;return e}get length(){return 65536}get isIdentityCMap(){(0,r.unreachable)("should not access .isIdentityCMap")}}t.IdentityCMap=h;var d=function(){function e(e,t){for(var n=0,r=0;r<=t;r++)n=n<<8|e[r];return n>>>0}function t(e,t){return 1===t?String.fromCharCode(e[0],e[1]):3===t?String.fromCharCode(e[0],e[1],e[2],e[3]):String.fromCharCode.apply(null,e.subarray(0,t+1))}function n(e,t,n){for(var r=0,i=n;i>=0;i--)r+=e[i]+t[i],e[i]=255&r,r>>=8}function i(e,t){for(var n=1,r=t;r>=0&&n>0;r--)n+=e[r],e[r]=255&n,n>>=8}var a=16,o=19;function s(e){this.buffer=e,this.pos=0,this.end=e.length,this.tmpBuf=new Uint8Array(o)}function l(){}return s.prototype={readByte(){return this.pos>=this.end?-1:this.buffer[this.pos++]},readNumber(){var e,t=0;do{var n=this.readByte();if(n<0)throw new r.FormatError("unexpected EOF in bcmap");e=!(128&n),t=t<<7|127&n}while(!e);return t},readSigned(){var e=this.readNumber();return 1&e?~(e>>>1):e>>>1},readHex(e,t){e.set(this.buffer.subarray(this.pos,this.pos+t+1)),this.pos+=t+1},readHexNumber(e,t){var n,i=this.tmpBuf,a=0;do{var o=this.readByte();if(o<0)throw new r.FormatError("unexpected EOF in bcmap");n=!(128&o),i[a++]=127&o}while(!n);for(var s=t,l=0,c=0;s>=0;){for(;c<8&&i.length>0;)l=i[--a]<<c|l,c+=7;e[s]=255&l,s--,l>>=8,c-=8}},readHexSigned(e,t){this.readHexNumber(e,t);for(var n=1&e[t]?255:0,r=0,i=0;i<=t;i++)r=(1&r)<<8|e[i],e[i]=r>>1^n},readString(){for(var e=this.readNumber(),t="",n=0;n<e;n++)t+=String.fromCharCode(this.readNumber());return t}},l.prototype={process:function(r,o,l){return new Promise(function(c,u){var h=new s(r),d=h.readByte();o.vertical=!!(1&d);for(var f,p,A=null,g=new Uint8Array(a),m=new Uint8Array(a),v=new Uint8Array(a),y=new Uint8Array(a),b=new Uint8Array(a);(p=h.readByte())>=0;){var w=p>>5;if(7!==w){var x=!!(16&p),_=15&p;if(_+1>a)throw new Error("processBinaryCMap: Invalid dataSize.");var C,S=h.readNumber();switch(w){case 0:for(h.readHex(g,_),h.readHexNumber(m,_),n(m,g,_),o.addCodespaceRange(_+1,e(g,_),e(m,_)),C=1;C<S;C++)i(m,_),h.readHexNumber(g,_),n(g,m,_),h.readHexNumber(m,_),n(m,g,_),o.addCodespaceRange(_+1,e(g,_),e(m,_));break;case 1:for(h.readHex(g,_),h.readHexNumber(m,_),n(m,g,_),h.readNumber(),C=1;C<S;C++)i(m,_),h.readHexNumber(g,_),n(g,m,_),h.readHexNumber(m,_),n(m,g,_),h.readNumber();break;case 2:for(h.readHex(v,_),f=h.readNumber(),o.mapOne(e(v,_),f),C=1;C<S;C++)i(v,_),x||(h.readHexNumber(b,_),n(v,b,_)),f=h.readSigned()+(f+1),o.mapOne(e(v,_),f);break;case 3:for(h.readHex(g,_),h.readHexNumber(m,_),n(m,g,_),f=h.readNumber(),o.mapCidRange(e(g,_),e(m,_),f),C=1;C<S;C++)i(m,_),x?g.set(m):(h.readHexNumber(g,_),n(g,m,_)),h.readHexNumber(m,_),n(m,g,_),f=h.readNumber(),o.mapCidRange(e(g,_),e(m,_),f);break;case 4:for(h.readHex(v,1),h.readHex(y,_),o.mapOne(e(v,1),t(y,_)),C=1;C<S;C++)i(v,1),x||(h.readHexNumber(b,1),n(v,b,1)),i(y,_),h.readHexSigned(b,_),n(y,b,_),o.mapOne(e(v,1),t(y,_));break;case 5:for(h.readHex(g,1),h.readHexNumber(m,1),n(m,g,1),h.readHex(y,_),o.mapBfRange(e(g,1),e(m,1),t(y,_)),C=1;C<S;C++)i(m,1),x?g.set(m):(h.readHexNumber(g,1),n(g,m,1)),h.readHexNumber(m,1),n(m,g,1),h.readHex(y,_),o.mapBfRange(e(g,1),e(m,1),t(y,_));break;default:return void u(new Error("processBinaryCMap: Unknown type: "+w))}}else switch(31&p){case 0:h.readString();break;case 1:A=h.readString()}}c(A?l(A):o)})}},l}(),f=function(){function e(e){for(var t=0,n=0;n<e.length;n++)t=t<<8|e.charCodeAt(n);return t>>>0}function t(e){if(!(0,r.isString)(e))throw new r.FormatError("Malformed CMap: expected string.")}function n(e){if(!Number.isInteger(e))throw new r.FormatError("Malformed CMap: expected int.")}function c(n,r){for(;;){var a=r.getObj();if((0,i.isEOF)(a))break;if((0,i.isCmd)(a,"endbfchar"))return;t(a);var o=e(a);t(a=r.getObj());var s=a;n.mapOne(o,s)}}function f(n,a){for(;;){var o=a.getObj();if((0,i.isEOF)(o))break;if((0,i.isCmd)(o,"endbfrange"))return;t(o);var s=e(o);t(o=a.getObj());var l=e(o);if(o=a.getObj(),Number.isInteger(o)||(0,r.isString)(o)){var c=Number.isInteger(o)?String.fromCharCode(o):o;n.mapBfRange(s,l,c)}else{if(!(0,i.isCmd)(o,"["))break;o=a.getObj();for(var u=[];!(0,i.isCmd)(o,"]")&&!(0,i.isEOF)(o);)u.push(o),o=a.getObj();n.mapBfRangeToArray(s,l,u)}}throw new r.FormatError("Invalid bf range.")}function p(r,a){for(;;){var o=a.getObj();if((0,i.isEOF)(o))break;if((0,i.isCmd)(o,"endcidchar"))return;t(o);var s=e(o);n(o=a.getObj());var l=o;r.mapOne(s,l)}}function A(r,a){for(;;){var o=a.getObj();if((0,i.isEOF)(o))break;if((0,i.isCmd)(o,"endcidrange"))return;t(o);var s=e(o);t(o=a.getObj());var l=e(o);n(o=a.getObj());var c=o;r.mapCidRange(s,l,c)}}function g(t,n){for(;;){var a=n.getObj();if((0,i.isEOF)(a))break;if((0,i.isCmd)(a,"endcodespacerange"))return;if(!(0,r.isString)(a))break;var o=e(a);if(a=n.getObj(),!(0,r.isString)(a))break;var s=e(a);t.addCodespaceRange(a.length,o,s)}throw new r.FormatError("Invalid codespace range.")}function m(e,t){var n=t.getObj();Number.isInteger(n)&&(e.vertical=!!n)}function v(e,t){var n=t.getObj();(0,i.isName)(n)&&(0,r.isString)(n.name)&&(e.name=n.name)}function y(e,t,n,a){var s,l;e:for(;;)try{var u=t.getObj();if((0,i.isEOF)(u))break;if((0,i.isName)(u))"WMode"===u.name?m(e,t):"CMapName"===u.name&&v(e,t),s=u;else if((0,i.isCmd)(u))switch(u.cmd){case"endcmap":break e;case"usecmap":(0,i.isName)(s)&&(l=s.name);break;case"begincodespacerange":g(e,t);break;case"beginbfchar":c(e,t);break;case"begincidchar":p(e,t);break;case"beginbfrange":f(e,t);break;case"begincidrange":A(e,t)}}catch(e){if(e instanceof o.MissingDataException)throw e;(0,r.warn)("Invalid cMap data: "+e);continue}return!a&&l&&(a=l),a?b(e,n,a):Promise.resolve(e)}function b(e,t,n){return w(n,t).then(function(t){if(e.useCMap=t,0===e.numCodespaceRanges){for(var n=e.useCMap.codespaceRanges,r=0;r<n.length;r++)e.codespaceRanges[r]=n[r].slice();e.numCodespaceRanges=e.useCMap.numCodespaceRanges}return e.useCMap.forEach(function(t,n){e.contains(t)||e.mapOne(t,e.useCMap.lookup(t))}),e})}function w(e,t){return"Identity-H"===e?Promise.resolve(new h(!1,2)):"Identity-V"===e?Promise.resolve(new h(!0,2)):l.includes(e)?t?t(e).then(function(e){var n=e.cMapData,i=e.compressionType,o=new u(!0);if(i===r.CMapCompressionType.BINARY)return(new d).process(n,o,function(e){return b(o,t,e)});if(i===r.CMapCompressionType.NONE){var l=new a.Lexer(new s.Stream(n));return y(o,l,t,null)}return Promise.reject(new Error("TODO: Only BINARY/NONE CMap compression is currently supported."))}):Promise.reject(new Error("Built-in CMap parameters are not provided.")):Promise.reject(new Error("Unknown CMap name: "+e))}return{async create(e){var t=e.encoding,n=e.fetchBuiltInCMap,r=e.useCMap;if((0,i.isName)(t))return w(t.name,n);if((0,i.isStream)(t))return y(new u,new a.Lexer(t),n,r).then(function(e){return e.isIdentityCMap?w(e.name,n):e});throw new Error("Encoding required.")}}}();t.CMapFactory=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFontType=x,t.IdentityToUnicodeMap=t.ToUnicodeMap=t.FontFlags=t.Font=t.ErrorFont=t.SEAC_ANALYSIS_ENABLED=void 0;var r=n(2),i=n(30),a=n(33),o=n(32),s=n(34),l=n(35),c=n(8),u=n(36),h=n(28),d=n(12),f=n(37);const p=[[57344,63743],[1048576,1114109]];var A=1e3,g=!0;t.SEAC_ANALYSIS_ENABLED=g;const m=["ascent","bbox","black","bold","charProcOperatorList","composite","data","defaultVMetrics","defaultWidth","descent","fallbackName","fontMatrix","fontType","isMonospace","isSerifFont","isType3Font","italic","loadedName","mimetype","missingFile","name","remeasure","subtype","type","vertical"],v=["cMap","defaultEncoding","differences","isSymbolicFont","seacMap","toFontChar","toUnicode","vmetrics","widths"];var y={FixedPitch:1,Serif:2,Symbolic:4,Script:8,Nonsymbolic:32,Italic:64,AllCap:65536,SmallCap:131072,ForceBold:262144};t.FontFlags=y;var b=[".notdef",".null","nonmarkingreturn","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quotesingle","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","grave","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","Adieresis","Aring","Ccedilla","Eacute","Ntilde","Odieresis","Udieresis","aacute","agrave","acircumflex","adieresis","atilde","aring","ccedilla","eacute","egrave","ecircumflex","edieresis","iacute","igrave","icircumflex","idieresis","ntilde","oacute","ograve","ocircumflex","odieresis","otilde","uacute","ugrave","ucircumflex","udieresis","dagger","degree","cent","sterling","section","bullet","paragraph","germandbls","registered","copyright","trademark","acute","dieresis","notequal","AE","Oslash","infinity","plusminus","lessequal","greaterequal","yen","mu","partialdiff","summation","product","pi","integral","ordfeminine","ordmasculine","Omega","ae","oslash","questiondown","exclamdown","logicalnot","radical","florin","approxequal","Delta","guillemotleft","guillemotright","ellipsis","nonbreakingspace","Agrave","Atilde","Otilde","OE","oe","endash","emdash","quotedblleft","quotedblright","quoteleft","quoteright","divide","lozenge","ydieresis","Ydieresis","fraction","currency","guilsinglleft","guilsinglright","fi","fl","daggerdbl","periodcentered","quotesinglbase","quotedblbase","perthousand","Acircumflex","Ecircumflex","Aacute","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Oacute","Ocircumflex","apple","Ograve","Uacute","Ucircumflex","Ugrave","dotlessi","circumflex","tilde","macron","breve","dotaccent","ring","cedilla","hungarumlaut","ogonek","caron","Lslash","lslash","Scaron","scaron","Zcaron","zcaron","brokenbar","Eth","eth","Yacute","yacute","Thorn","thorn","minus","multiply","onesuperior","twosuperior","threesuperior","onehalf","onequarter","threequarters","franc","Gbreve","gbreve","Idotaccent","Scedilla","scedilla","Cacute","cacute","Ccaron","ccaron","dcroat"];function w(e){if(e.fontMatrix&&e.fontMatrix[0]!==r.FONT_IDENTITY_MATRIX[0]){var t=.001/e.fontMatrix[0],n=e.widths;for(var i in n)n[i]*=t;e.defaultWidth*=t}}function x(e,t){switch(e){case"Type1":return"Type1C"===t?r.FontType.TYPE1C:r.FontType.TYPE1;case"CIDFontType0":return"CIDFontType0C"===t?r.FontType.CIDFONTTYPE0C:r.FontType.CIDFONTTYPE0;case"OpenType":return r.FontType.OPENTYPE;case"TrueType":return r.FontType.TRUETYPE;case"CIDFontType2":return r.FontType.CIDFONTTYPE2;case"MMType1":return r.FontType.MMTYPE1;case"Type0":return r.FontType.TYPE0;default:return r.FontType.UNKNOWN}}function _(e,t){if(void 0!==t[e])return e;var n=(0,l.getUnicodeForGlyph)(e,t);if(-1!==n)for(var i in t)if(t[i]===n)return i;return(0,r.info)("Unable to recover a standard glyph name for: "+e),e}var C=function(){function e(e,t,n,r,i,a,o,s){this.fontChar=e,this.unicode=t,this.accent=n,this.width=r,this.vmetric=i,this.operatorListId=a,this.isSpace=o,this.isInFont=s}return e.prototype.matchesForCache=function(e,t,n,r,i,a,o,s){return this.fontChar===e&&this.unicode===t&&this.accent===n&&this.width===r&&this.vmetric===i&&this.operatorListId===a&&this.isSpace===o&&this.isInFont===s},e}(),S=function(){function e(e=[]){this._map=e}return e.prototype={get length(){return this._map.length},forEach(e){for(var t in this._map)e(t,this._map[t].charCodeAt(0))},has(e){return void 0!==this._map[e]},get(e){return this._map[e]},charCodeOf(e){const t=this._map;if(t.length<=65536)return t.indexOf(e);for(const n in t)if(t[n]===e)return 0|n;return-1},amend(e){for(var t in e)this._map[t]=e[t]}},e}();t.ToUnicodeMap=S;var k=function(){function e(e,t){this.firstChar=e,this.lastChar=t}return e.prototype={get length(){return this.lastChar+1-this.firstChar},forEach(e){for(var t=this.firstChar,n=this.lastChar;t<=n;t++)e(t,t)},has(e){return this.firstChar<=e&&e<=this.lastChar},get(e){if(this.firstChar<=e&&e<=this.lastChar)return String.fromCharCode(e)},charCodeOf(e){return Number.isInteger(e)&&e>=this.firstChar&&e<=this.lastChar?e:-1},amend(e){(0,r.unreachable)("Should not call amend()")}},e}();t.IdentityToUnicodeMap=k;var B=function(){function e(e,t,n){e[t]=n>>8&255,e[t+1]=255&n}function t(e,t,n){e[t]=n>>24&255,e[t+1]=n>>16&255,e[t+2]=n>>8&255,e[t+3]=255&n}function n(e,t,n){var r,i;if(n instanceof Uint8Array)e.set(n,t);else if("string"==typeof n)for(r=0,i=n.length;r<i;r++)e[t++]=255&n.charCodeAt(r);else for(r=0,i=n.length;r<i;r++)e[t++]=255&n[r]}function i(e){this.sfnt=e,this.tables=Object.create(null)}i.getSearchParams=function(e,t){for(var n=1,r=0;(n^e)>n;)n<<=1,r++;var i=n*t;return{range:i,entry:r,rangeShift:t*e-i}};return i.prototype={toArray:function(){var a=this.sfnt,o=this.tables,s=Object.keys(o);s.sort();var l,u,h,d,f,p=s.length,A=12+16*p,g=[A];for(l=0;l<p;l++){A+=((d=o[s[l]]).length+3&-4)>>>0,g.push(A)}var m=new Uint8Array(A);for(l=0;l<p;l++)d=o[s[l]],n(m,g[l],d);"true"===a&&(a=(0,r.string32)(65536)),m[0]=255&a.charCodeAt(0),m[1]=255&a.charCodeAt(1),m[2]=255&a.charCodeAt(2),m[3]=255&a.charCodeAt(3),e(m,4,p);var v=i.getSearchParams(p,16);for(e(m,6,v.range),e(m,8,v.entry),e(m,10,v.rangeShift),A=12,l=0;l<p;l++){f=s[l],m[A]=255&f.charCodeAt(0),m[A+1]=255&f.charCodeAt(1),m[A+2]=255&f.charCodeAt(2),m[A+3]=255&f.charCodeAt(3);var y=0;for(u=g[l],h=g[l+1];u<h;u+=4){y=y+(0,c.readUint32)(m,u)>>>0}t(m,A+4,y),t(m,A+8,g[l]),t(m,A+12,o[f].length),A+=16}return m},addTable:function(e,t){if(e in this.tables)throw new Error("Table "+e+" already exists");this.tables[e]=t}},i}(),E=function(){function e(e,t,n){var i;this.name=e,this.loadedName=n.loadedName,this.isType3Font=n.isType3Font,this.missingFile=!1,this.glyphCache=Object.create(null),this.isSerifFont=!!(n.flags&y.Serif),this.isSymbolicFont=!!(n.flags&y.Symbolic),this.isMonospace=!!(n.flags&y.FixedPitch);var a=n.type,o=n.subtype;this.type=a,this.subtype=o;let s="sans-serif";if(this.isMonospace?s="monospace":this.isSerifFont&&(s="serif"),this.fallbackName=s,this.differences=n.differences,this.widths=n.widths,this.defaultWidth=n.defaultWidth,this.composite=n.composite,this.cMap=n.cMap,this.ascent=n.ascent/A,this.descent=n.descent/A,this.fontMatrix=n.fontMatrix,this.bbox=n.bbox,this.defaultEncoding=n.defaultEncoding,this.toUnicode=n.toUnicode,this.fallbackToUnicode=n.fallbackToUnicode||new S,this.toFontChar=[],"Type3"!==n.type){if(this.cidEncoding=n.cidEncoding,this.vertical=!!n.vertical,this.vertical&&(this.vmetrics=n.vmetrics,this.defaultVMetrics=n.defaultVMetrics),!t||t.isEmpty)return t&&(0,r.warn)('Font file is empty in "'+e+'" ('+this.loadedName+")"),void this.fallbackToSystemFont();[a,o]=function(e,{type:t,subtype:n,composite:i}){let a,o;(function(e){var t=e.peekBytes(4);return 65536===(0,c.readUint32)(t,0)||"true"===(0,r.bytesToString)(t)})(e)||I(e)?a=i?"CIDFontType2":"TrueType":!function(e){var t=e.peekBytes(4);return"OTTO"===(0,r.bytesToString)(t)}(e)?!function(e){var t=e.peekBytes(2);if(37===t[0]&&33===t[1])return!0;if(128===t[0]&&1===t[1])return!0;return!1}(e)?!function(e){const t=e.peekBytes(4);if(t[0]>=1&&t[3]>=1&&t[3]<=4)return!0;return!1}(e)?((0,r.warn)("getFontFileType: Unable to detect correct font file Type/Subtype."),a=t,o=n):i?(a="CIDFontType0",o="CIDFontType0C"):(a="MMType1"===t?"MMType1":"Type1",o="Type1C"):a=i?"CIDFontType0":"MMType1"===t?"MMType1":"Type1":a=i?"CIDFontType2":"OpenType";return[a,o]}(t,n),a===this.type&&o===this.subtype||(0,r.info)("Inconsistent font file Type/SubType, expected: "+`${this.type}/${this.subtype} but found: ${a}/${o}.`);try{var l;switch(a){case"MMType1":(0,r.info)("MMType1 font ("+e+"), falling back to Type1.");case"Type1":case"CIDFontType0":this.mimetype="font/opentype";var u="Type1C"===o||"CIDFontType0C"===o?new F(t,n):new M(e,t,n);w(n),l=this.convert(e,u,n);break;case"OpenType":case"TrueType":case"CIDFontType2":this.mimetype="font/opentype",l=this.checkAndRepair(e,t,n),this.isOpenType&&(w(n),a="OpenType");break;default:throw new r.FormatError(`Font ${a} is not supported`)}}catch(e){return(0,r.warn)(e),void this.fallbackToSystemFont()}this.data=l,this.fontType=x(a,o),this.fontMatrix=n.fontMatrix,this.widths=n.widths,this.defaultWidth=n.defaultWidth,this.toUnicode=n.toUnicode,this.seacMap=n.seacMap}else{for(i=0;i<256;i++)this.toFontChar[i]=this.differences[i]||n.defaultEncoding[i];this.fontType=r.FontType.TYPE3}}var t;function n(e,t){return(e<<8)+t}function f(e,t){var n=(e<<8)+t;return 32768&n?n-65536:n}function E(e){return String.fromCharCode(e>>8&255,255&e)}function T(e){return e>32767?e=32767:e<-32768&&(e=-32768),String.fromCharCode(e>>8&255,255&e)}function I(e){const t=e.peekBytes(4);return"ttcf"===(0,r.bytesToString)(t)}function D(e,t,n){for(var r,i=[],a=0,o=e.length;a<o;a++)-1!==(r=(0,l.getUnicodeForGlyph)(e[a],t))&&(i[a]=r);for(var s in n)-1!==(r=(0,l.getUnicodeForGlyph)(n[s],t))&&(i[+s]=r);return i}function P(e,t,n){var i=Object.create(null),a=[],o=0,s=p[o][0],l=p[o][1];for(var c in e){var u=e[c|=0];if(t(u)){if(s>l){if(++o>=p.length){(0,r.warn)("Ran out of space in font private use area.");break}s=p[o][0],l=p[o][1]}var h=s++;0===u&&(u=n),i[h]=u,a[c]=h}}return{toFontChar:a,charCodeToGlyphId:i,nextAvailableFontCharCode:s}}function O(e,t){var n,i,a,o,s=function(e,t){var n=[];for(var r in e)e[r]>=t||n.push({fontCharCode:0|r,glyphId:e[r]});0===n.length&&n.push({fontCharCode:0,glyphId:0}),n.sort(function(e,t){return e.fontCharCode-t.fontCharCode});for(var i=[],a=n.length,o=0;o<a;){var s=n[o].fontCharCode,l=[n[o].glyphId];++o;for(var c=s;o<a&&c+1===n[o].fontCharCode&&(l.push(n[o].glyphId),++o,65535!=++c););i.push([s,c,l])}return i}(e,t),l=s[s.length-1][1]>65535?2:1,c="\0\0"+E(l)+"\0\0"+(0,r.string32)(4+8*l);for(n=s.length-1;n>=0&&!(s[n][0]<=65535);--n);var u=n+1;s[n][0]<65535&&65535===s[n][1]&&(s[n][1]=65534);var h,d,f,p,A=s[n][1]<65535?1:0,g=u+A,m=B.getSearchParams(g,2),v="",y="",b="",w="",x="",_=0;for(n=0,i=u;n<i;n++){d=(h=s[n])[0],f=h[1],v+=E(d),y+=E(f);var C=!0;for(a=1,o=(p=h[2]).length;a<o;++a)if(p[a]!==p[a-1]+1){C=!1;break}if(C){b+=E(p[0]-d&65535),w+=E(0)}else{var S=2*(g-n)+2*_;for(_+=f-d+1,b+=E(0),w+=E(S),a=0,o=p.length;a<o;++a)x+=E(p[a])}}A>0&&(y+="ÿÿ",v+="ÿÿ",b+="\0",w+="\0\0");var k="\0\0"+E(2*g)+E(m.range)+E(m.entry)+E(m.rangeShift)+y+"\0\0"+v+b+w+x,T="",I="";if(l>1){for(c+="\0\0\n"+(0,r.string32)(4+8*l+4+k.length),T="",n=0,i=s.length;n<i;n++){d=(h=s[n])[0];var M=(p=h[2])[0];for(a=1,o=p.length;a<o;++a)p[a]!==p[a-1]+1&&(f=h[0]+a-1,T+=(0,r.string32)(d)+(0,r.string32)(f)+(0,r.string32)(M),d=f+1,M=p[a]);T+=(0,r.string32)(d)+(0,r.string32)(h[1])+(0,r.string32)(M)}I="\0\f\0\0"+(0,r.string32)(T.length+16)+"\0\0\0\0"+(0,r.string32)(T.length/12)}return c+"\0"+E(k.length+4)+k+I+T}function L(e,t,n){n=n||{unitsPerEm:0,yMax:0,yMin:0,ascent:0,descent:0};var i=0,a=0,o=0,s=0,c=null,u=0;if(t){for(var h in t){(c>(h|=0)||!c)&&(c=h),u<h&&(u=h);var d=(0,l.getUnicodeRangeFor)(h);if(d<32)i|=1<<d;else if(d<64)a|=1<<d-32;else if(d<96)o|=1<<d-64;else{if(!(d<123))throw new r.FormatError("Unicode ranges Bits > 123 are reserved for internal usage");s|=1<<d-96}}u>65535&&(u=65535)}else c=0,u=255;var f=e.bbox||[0,0,0,0],p=n.unitsPerEm||1/(e.fontMatrix||r.FONT_IDENTITY_MATRIX)[0],g=e.ascentScaled?1:p/A,m=n.ascent||Math.round(g*(e.ascent||f[3])),v=n.descent||Math.round(g*(e.descent||f[1]));v>0&&e.descent>0&&f[1]<0&&(v=-v);var y=n.yMax||m,b=-n.yMin||-v;return"\0$ô\0\0\0Š»\0\0\0ŒŠ»\0\0ß\x001\0\0\0\0"+String.fromCharCode(e.fixedPitch?9:0)+"\0\0\0\0\0\0"+(0,r.string32)(i)+(0,r.string32)(a)+(0,r.string32)(o)+(0,r.string32)(s)+"*21*"+E(e.italicAngle?1:0)+E(c||e.firstChar)+E(u||e.lastChar)+E(m)+E(v)+"\0d"+E(y)+E(b)+"\0\0\0\0\0\0\0\0"+E(e.xHeight)+E(e.capHeight)+E(0)+E(c||e.firstChar)+"\0"}function R(e){var t=Math.floor(65536*e.italicAngle);return"\0\0\0"+(0,r.string32)(t)+"\0\0\0\0"+(0,r.string32)(e.fixedPitch)+"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"}function N(e,t){t||(t=[[],[]]);var n,r,i,a,o,s=[t[0][0]||"Original licence",t[0][1]||e,t[0][2]||"Unknown",t[0][3]||"uniqueID",t[0][4]||e,t[0][5]||"Version 0.11",t[0][6]||"",t[0][7]||"Unknown",t[0][8]||"Unknown",t[0][9]||"Unknown"],l=[];for(n=0,r=s.length;n<r;n++){var c=[];for(i=0,a=(o=t[1][n]||s[n]).length;i<a;i++)c.push(E(o.charCodeAt(i)));l.push(c.join(""))}var u=[s,l],h=["\0","\0"],d=["\0\0","\0"],f=["\0\0","\t"],p=s.length*h.length,A="\0\0"+E(p)+E(12*p+6),g=0;for(n=0,r=h.length;n<r;n++){var m=u[n];for(i=0,a=m.length;i<a;i++){o=m[i],A+=h[n]+d[n]+f[n]+E(i)+E(o.length)+E(g),g+=o.length}}return A+=s.join("")+l.join("")}return e.getFontID=(t=1,function(){return String(t++)}),e.prototype={name:null,font:null,mimetype:null,disableFontFace:!1,get renderer(){var e=u.FontRendererFactory.create(this,g);return(0,r.shadow)(this,"renderer",e)},exportData(e=!1){const t=e?[...m,...v]:m,n=Object.create(null);let r,i;for(r of t)void 0!==(i=this[r])&&(n[r]=i);return n},fallbackToSystemFont:function(){this.missingFile=!0;var e=this.name,t=this.type,n=this.subtype;let i=e.replace(/[,_]/g,"-").replace(/\s/g,"");var c=(0,s.getStdFontMap)(),u=(0,s.getNonStdFontMap)(),h=!!c[i]||!(!u[i]||!c[u[i]]);if(i=c[i]||u[i]||i,this.bold=-1!==i.search(/bold/gi),this.italic=-1!==i.search(/oblique/gi)||-1!==i.search(/italic/gi),this.black=-1!==e.search(/Black/g),this.remeasure=Object.keys(this.widths).length>0,h&&"CIDFontType2"===t&&this.cidEncoding.startsWith("Identity-")){const t=(0,s.getGlyphMapForStandardFonts)(),n=[];for(const e in t)n[+e]=t[e];if(/Arial-?Black/i.test(e)){var d=(0,s.getSupplementalGlyphMapForArialBlack)();for(const e in d)n[+e]=d[e]}else if(/Calibri/i.test(e)){const e=(0,s.getSupplementalGlyphMapForCalibri)();for(const t in e)n[+t]=e[t]}this.toUnicode instanceof k||this.toUnicode.forEach(function(e,t){n[+e]=t}),this.toFontChar=n,this.toUnicode=new S(n)}else if(/Symbol/i.test(i))this.toFontChar=D(o.SymbolSetEncoding,(0,a.getGlyphsUnicode)(),this.differences);else if(/Dingbats/i.test(i))/Wingdings/i.test(e)&&(0,r.warn)("Non-embedded Wingdings font, falling back to ZapfDingbats."),this.toFontChar=D(o.ZapfDingbatsEncoding,(0,a.getDingbatsGlyphsUnicode)(),this.differences);else if(h)this.toFontChar=D(this.defaultEncoding,(0,a.getGlyphsUnicode)(),this.differences);else{const t=(0,a.getGlyphsUnicode)(),n=[];if(this.toUnicode.forEach((e,r)=>{if(!this.composite){var i=this.differences[e]||this.defaultEncoding[e];const n=(0,l.getUnicodeForGlyph)(i,t);-1!==n&&(r=n)}n[+e]=r}),this.composite&&this.toUnicode instanceof k&&/Verdana/i.test(e)){const e=(0,s.getGlyphMapForStandardFonts)();for(const t in e)n[+t]=e[t]}this.toFontChar=n}this.loadedName=i.split("-")[0],this.fontType=x(t,n)},checkAndRepair:function(e,t,s){const l=["OS/2","cmap","head","hhea","hmtx","maxp","name","post","loca","glyf","fpgm","prep","cvt ","CFF "];function c(e,t){const n=Object.create(null);n["OS/2"]=null,n.cmap=null,n.head=null,n.hhea=null,n.hmtx=null,n.maxp=null,n.name=null,n.post=null;for(let r=0;r<t;r++){const t=u(e);l.includes(t.tag)&&(0!==t.length&&(n[t.tag]=t))}return n}function u(e){var t=(0,r.bytesToString)(e.getBytes(4)),n=e.getInt32()>>>0,i=e.getInt32()>>>0,a=e.getInt32()>>>0,o=e.pos;e.pos=e.start?e.start:0,e.skip(i);var s=e.getBytes(a);return e.pos=o,"head"===t&&(s[8]=s[9]=s[10]=s[11]=0,s[17]|=32),{tag:t,checksum:n,length:a,offset:i,data:s}}function p(e){return{version:(0,r.bytesToString)(e.getBytes(4)),numTables:e.getUint16(),searchRange:e.getUint16(),entrySelector:e.getUint16(),rangeShift:e.getUint16()}}function A(e,t,n,r,i,a){var o={length:0,sizeOfInstructions:0};if(n-t<=12)return o;var s,l,c,u=e.subarray(t,n),h=f(u[0],u[1]);if(h<0)return c=h=-1,(s=u)[(l=0)+1]=c,s[l]=c>>>8,r.set(u,i),o.length=u.length,o;var d,p=10,A=0;for(d=0;d<h;d++){A=(u[p]<<8|u[p+1])+1,p+=2}var g=p,m=u[p]<<8|u[p+1];o.sizeOfInstructions=m;var v=p+=2+m,y=0;for(d=0;d<A;d++){var b=u[p++];192&b&&(u[p-1]=63&b);let e=2;2&b?e=1:16&b&&(e=0);let t=2;4&b?t=1:32&b&&(t=0);const n=e+t;if(y+=n,8&b){var w=u[p++];d+=w,y+=w*n}}if(0===y)return o;var x=p+y;return x>u.length?o:!a&&m>0?(r.set(u.subarray(0,g),i),r.set([0,0],i+g),r.set(u.subarray(v,x),i+g+2),x-=m,u.length-x>3&&(x=x+3&-4),o.length=x,o):u.length-x>3?(x=x+3&-4,r.set(u.subarray(0,x),i),o.length=x,o):(r.set(u,i),o.length=u.length,o)}function m(e){var n=(t.start?t.start:0)+e.offset;t.pos=n;var i=[[],[]],a=e.length,o=n+a;if(0!==t.getUint16()||a<6)return i;var s,l,c=t.getUint16(),u=t.getUint16(),h=[];for(s=0;s<c&&t.pos+12<=o;s++){var d={platform:t.getUint16(),encoding:t.getUint16(),language:t.getUint16(),name:t.getUint16(),length:t.getUint16(),offset:t.getUint16()};(1===d.platform&&0===d.encoding&&0===d.language||3===d.platform&&1===d.encoding&&1033===d.language)&&h.push(d)}for(s=0,l=h.length;s<l;s++){var f=h[s];if(!(f.length<=0)){var p=n+u+f.offset;if(!(p+f.length>o)){t.pos=p;var A=f.name;if(f.encoding){for(var g="",m=0,v=f.length;m<v;m+=2)g+=String.fromCharCode(t.getUint16());i[1][A]=g}else i[0][A]=(0,r.bytesToString)(t.getBytes(f.length))}}}return i}var v=[0,0,0,0,0,0,0,0,-2,-2,-2,-2,0,0,-2,-5,-1,-1,-1,-1,-1,-1,-1,-1,0,0,-1,0,-1,-1,-1,-1,1,-1,-999,0,1,0,-1,-2,0,-1,-2,-1,-1,0,-1,-1,0,0,-999,-999,-1,-1,-1,-1,-2,-999,-2,-2,-999,0,-2,-2,0,0,-2,0,-2,0,0,0,-2,-1,-1,1,1,0,0,-1,-1,-1,-1,-1,-1,-1,0,0,-1,0,-1,-1,0,-999,-1,-1,-1,-1,-1,-1,0,0,0,0,0,0,0,0,0,0,0,0,-2,-999,-999,-999,-999,-999,-1,-1,-2,-2,0,0,0,0,-1,-1,-999,-2,-2,0,0,-1,-2,-2,0,0,0,-1,-1,-1,-2];function y(e,t){for(var n,i,a,o,s,l=e.data,c=0,u=0,h=0,d=[],f=[],p=[],A=t.tooComplexToFollowFunctions,g=!1,m=0,y=0,b=l.length;c<b;){var w=l[c++];if(64===w)if(i=l[c++],g||y)c+=i;else for(n=0;n<i;n++)d.push(l[c++]);else if(65===w)if(i=l[c++],g||y)c+=2*i;else for(n=0;n<i;n++)a=l[c++],d.push(a<<8|l[c++]);else if(176==(248&w))if(i=w-176+1,g||y)c+=i;else for(n=0;n<i;n++)d.push(l[c++]);else if(184==(248&w))if(i=w-184+1,g||y)c+=2*i;else for(n=0;n<i;n++)a=l[c++],d.push(a<<8|l[c++]);else if(43!==w||A)if(44!==w||A){if(45===w)if(g)g=!1,u=c;else{if(!(s=f.pop()))return(0,r.warn)("TT: ENDF bad stack"),void(t.hintsValid=!1);o=p.pop(),l=s.data,c=s.i,t.functionsStackDeltas[o]=d.length-s.stackTop}else if(137===w)(g||y)&&((0,r.warn)("TT: nested IDEFs not allowed"),A=!0),g=!0,h=c;else if(88===w)++m;else if(27===w)y=m;else if(89===w)y===m&&(y=0),--m;else if(28===w&&!g&&!y){var x=d[d.length-1];x>0&&(c+=x-1)}}else(g||y)&&((0,r.warn)("TT: nested FDEFs not allowed"),A=!0),g=!0,h=c,o=d.pop(),t.functionsDefined[o]={data:l,i:c};else if(!g&&!y)if(o=d[d.length-1],isNaN(o))(0,r.info)("TT: CALL empty stack (or invalid entry).");else if(t.functionsUsed[o]=!0,o in t.functionsStackDeltas){const e=d.length+t.functionsStackDeltas[o];if(e<0)return(0,r.warn)("TT: CALL invalid functions stack delta."),void(t.hintsValid=!1);d.length=e}else if(o in t.functionsDefined&&!p.includes(o)){if(f.push({data:l,i:c,stackTop:d.length-1}),p.push(o),!(s=t.functionsDefined[o]))return(0,r.warn)("TT: CALL non-existent function"),void(t.hintsValid=!1);l=s.data,c=s.i}if(!g&&!y){let e=0;for(w<=142?e=v[w]:w>=192&&w<=223?e=-1:w>=224&&(e=-2),w>=113&&w<=117&&(i=d.pop(),isNaN(i)||(e=2*-i));e<0&&d.length>0;)d.pop(),e++;for(;e>0;)d.push(NaN),e--}}t.tooComplexToFollowFunctions=A;var _=[l];c>l.length&&_.push(new Uint8Array(c-l.length)),h>u&&((0,r.warn)("TT: complementing a missing function tail"),_.push(new Uint8Array([34,45]))),function(e,t){if(t.length>1){var n,r,i=0;for(n=0,r=t.length;n<r;n++)i+=t[n].length;i=i+3&-4;var a=new Uint8Array(i),o=0;for(n=0,r=t.length;n<r;n++)a.set(t[n],o),o+=t[n].length;e.data=a,e.length=i}}(e,_)}let x,C,S,k;if(I(t=new d.Stream(new Uint8Array(t.getBytes())))){const e=function(e,t){const{numFonts:n,offsetTable:i}=function(e){const t=(0,r.bytesToString)(e.getBytes(4));(0,r.assert)("ttcf"===t,"Must be a TrueType Collection font.");const n=e.getUint16(),i=e.getUint16(),a=e.getInt32()>>>0,o=[];for(let t=0;t<a;t++)o.push(e.getInt32()>>>0);const s={ttcTag:t,majorVersion:n,minorVersion:i,numFonts:a,offsetTable:o};switch(n){case 1:return s;case 2:return s.dsigTag=e.getInt32()>>>0,s.dsigLength=e.getInt32()>>>0,s.dsigOffset=e.getInt32()>>>0,s}throw new r.FormatError(`Invalid TrueType Collection majorVersion: ${n}.`)}(e);for(let a=0;a<n;a++){e.pos=(e.start||0)+i[a];const n=p(e),o=c(e,n.numTables);if(!o.name)throw new r.FormatError('TrueType Collection font must contain a "name" table.');const s=m(o.name);for(let e=0,r=s.length;e<r;e++)for(let r=0,i=s[e].length;r<i;r++){const i=s[e][r];if(i&&i.replace(/\s/g,"")===t)return{header:n,tables:o}}}throw new r.FormatError(`TrueType Collection does not contain "${t}" font.`)}(t,this.name);x=e.header,C=e.tables}else x=p(t),C=c(t,x.numTables);var E=!C["CFF "];if(E){if(!C.loca)throw new r.FormatError('Required "loca" table is not found');C.glyf||((0,r.warn)('Required "glyf" table is not found -- trying to recover.'),C.glyf={tag:"glyf",data:new Uint8Array(0)}),this.isOpenType=!1}else{const t=s.composite&&((s.cidToGidMap||[]).length>0||!(s.cMap instanceof h.IdentityCMap));if("OTTO"===x.version&&!t||!C.head||!C.hhea||!C.maxp||!C.post)return k=new d.Stream(C["CFF "].data),S=new F(k,s),w(s),this.convert(e,S,s);delete C.glyf,delete C.loca,delete C.fpgm,delete C.prep,delete C["cvt "],this.isOpenType=!0}if(!C.maxp)throw new r.FormatError('Required "maxp" table is not found');t.pos=(t.start||0)+C.maxp.offset;var T=t.getInt32();const M=t.getUint16();let D=M+1,U=!0;D>65535&&(U=!1,D=M,(0,r.warn)("Not enough space in glyfs to duplicate first glyph."));var H=0,j=0;T>=65536&&C.maxp.length>=22&&(t.pos+=8,t.getUint16()>2&&(C.maxp.data[14]=0,C.maxp.data[15]=2),t.pos+=4,H=t.getUint16(),t.pos+=4,j=t.getUint16());C.maxp.data[4]=D>>8,C.maxp.data[5]=255&D;var Q=function(e,t,n,i){var a={functionsDefined:[],functionsUsed:[],functionsStackDeltas:[],tooComplexToFollowFunctions:!1,hintsValid:!0};if(e&&y(e,a),t&&y(t,a),e&&function(e,t){if(!e.tooComplexToFollowFunctions){if(e.functionsDefined.length>t)return(0,r.warn)("TT: more functions defined than expected"),void(e.hintsValid=!1);for(var n=0,i=e.functionsUsed.length;n<i;n++){if(n>t)return(0,r.warn)("TT: invalid function id: "+n),void(e.hintsValid=!1);if(e.functionsUsed[n]&&!e.functionsDefined[n])return(0,r.warn)("TT: undefined function: "+n),void(e.hintsValid=!1)}}}(a,i),n&&1&n.length){var o=new Uint8Array(n.length+1);o.set(n.data),n.data=o}return a.hintsValid}(C.fpgm,C.prep,C["cvt "],H);if(Q||(delete C.fpgm,delete C.prep,delete C["cvt "]),function(e,t,n,i,a){if(t){e.pos=(e.start?e.start:0)+t.offset,e.pos+=4,e.pos+=2,e.pos+=2,e.pos+=2,e.pos+=2,e.pos+=2,e.pos+=2,e.pos+=2,e.pos+=2,e.pos+=2,e.pos+=2,e.pos+=8,e.pos+=2;var o=e.getUint16();o>i&&((0,r.info)("The numOfMetrics ("+o+") should not be greater than the numGlyphs ("+i+")"),o=i,t.data[34]=(65280&o)>>8,t.data[35]=255&o);var s=i-o-(n.length-4*o>>1);if(s>0){var l=new Uint8Array(n.length+2*s);l.set(n.data),a&&(l[n.length]=n.data[2],l[n.length+1]=n.data[3]),n.data=l}}else n&&(n.data=null)}(t,C.hhea,C.hmtx,D,U),!C.head)throw new r.FormatError('Required "head" table is not found');!function(e,t,i){var a,o,s,l,c=e.data,u=(a=c[0],o=c[1],s=c[2],l=c[3],(a<<24)+(o<<16)+(s<<8)+l);u>>16!=1&&((0,r.info)("Attempting to fix invalid version in head table: "+u),c[0]=0,c[1]=1,c[2]=0,c[3]=0);var h=n(c[50],c[51]);if(h<0||h>1){(0,r.info)("Attempting to fix invalid indexToLocFormat in head table: "+h);var d=t+1;if(i===d<<1)c[50]=0,c[51]=0;else{if(i!==d<<2)throw new r.FormatError("Could not fix indexToLocFormat: "+h);c[50]=0,c[51]=1}}}(C.head,M,E?C.loca.length:0);var z=Object.create(null);if(E){var V=n(C.head.data[50],C.head.data[51]),G=function(e,t,n,r,i,a,o){var s,l,c;r?(s=4,l=function(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]},c=function(e,t,n){e[t]=n>>>24&255,e[t+1]=n>>16&255,e[t+2]=n>>8&255,e[t+3]=255&n}):(s=2,l=function(e,t){return e[t]<<9|e[t+1]<<1},c=function(e,t,n){e[t]=n>>9&255,e[t+1]=n>>1&255});var u=a?n+1:n,h=s*(1+u),d=new Uint8Array(h);d.set(e.data.subarray(0,h)),e.data=d;var f,p,g=t.data,m=g.length,v=new Uint8Array(m),y=l(d,0),b=0,w=Object.create(null);for(c(d,0,b),f=0,p=s;f<n;f++,p+=s){var x=l(d,p);0===x&&(x=y),x>m&&(m+3&-4)===x&&(x=m),x>m&&(y=x);var _=A(g,y,x,v,b,i),C=_.length;0===C&&(w[f]=!0),_.sizeOfInstructions>o&&(o=_.sizeOfInstructions),c(d,p,b+=C),y=x}if(0===b){var S=new Uint8Array([0,1,0,0,0,0,0,0,0,0,0,0,0,0,49,0]);for(f=0,p=s;f<u;f++,p+=s)c(d,p,S.length);t.data=S}else if(a){var k=l(d,s);v.length>k+b?t.data=v.subarray(0,k+b):(t.data=new Uint8Array(k+b),t.data.set(v.subarray(0,b))),t.data.set(v.subarray(0,k),b),c(e.data,d.length-s,b+k)}else t.data=v.subarray(0,b);return{missingGlyphs:w,maxSizeOfInstructions:o}}(C.loca,C.glyf,M,V,Q,U,j);z=G.missingGlyphs,T>=65536&&C.maxp.length>=22&&(C.maxp.data[26]=G.maxSizeOfInstructions>>8,C.maxp.data[27]=255&G.maxSizeOfInstructions)}if(!C.hhea)throw new r.FormatError('Required "hhea" table is not found');0===C.hhea.data[10]&&0===C.hhea.data[11]&&(C.hhea.data[10]=255,C.hhea.data[11]=255);var $={unitsPerEm:n(C.head.data[18],C.head.data[19]),yMax:n(C.head.data[42],C.head.data[43]),yMin:f(C.head.data[38],C.head.data[39]),ascent:n(C.hhea.data[4],C.hhea.data[5]),descent:f(C.hhea.data[6],C.hhea.data[7])};this.ascent=$.ascent/$.unitsPerEm,this.descent=$.descent/$.unitsPerEm,C.post&&function(e,n,i){var a=(t.start?t.start:0)+e.offset;t.pos=a;var o,s=a+e.length,l=t.getInt32();t.skip(28);var c,u=!0;switch(l){case 65536:o=b;break;case 131072:var h=t.getUint16();if(h!==i){u=!1;break}var d=[];for(c=0;c<h;++c){var f=t.getUint16();if(f>=32768){u=!1;break}d.push(f)}if(!u)break;for(var p=[],A=[];t.pos<s;){var g=t.getByte();for(A.length=g,c=0;c<g;++c)A[c]=String.fromCharCode(t.getByte());p.push(A.join(""))}for(o=[],c=0;c<h;++c){var m=d[c];m<258?o.push(b[m]):o.push(p[m-258])}break;case 196608:break;default:(0,r.warn)("Unknown/unsupported post table version "+l),u=!1,n.defaultEncoding&&(o=n.defaultEncoding)}n.glyphNames=o}(C.post,s,M),C.post={tag:"post",data:R(s)};const q=[];function W(e){return!z[e]}if(s.composite){var K=s.cidToGidMap||[],Y=0===K.length;s.cMap.forEach(function(e,t){if(t>65535)throw new r.FormatError("Max size of CID is 65,535");var n=-1;Y?n=t:void 0!==K[t]&&(n=K[t]),n>=0&&n<M&&W(n)&&(q[e]=n)})}else{var X=function(e,t,n,i){if(!e)return(0,r.warn)("No cmap table available."),{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1};var a,o=(t.start?t.start:0)+e.offset;t.pos=o,t.skip(2);for(var s,l=t.getUint16(),c=!1,u=0;u<l;u++){var h=t.getUint16(),d=t.getUint16(),f=t.getInt32()>>>0,p=!1;if((!s||s.platformId!==h||s.encodingId!==d)&&(0===h&&0===d?p=!0:1===h&&0===d?p=!0:3!==h||1!==d||!i&&s?n&&3===h&&0===d&&(p=!0,c=!0):(p=!0,n||(c=!0)),p&&(s={platformId:h,encodingId:d,offset:f}),c))break}if(s&&(t.pos=o+s.offset),!s||-1===t.peekByte())return(0,r.warn)("Could not find a preferred cmap table."),{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1};var A=t.getUint16();t.skip(4);var g,m,v=!1,y=[];if(0===A){for(g=0;g<256;g++){var b=t.getByte();b&&y.push({charCode:g,glyphId:b})}v=!0}else if(4===A){var w=t.getUint16()>>1;t.skip(6);var x,_=[];for(x=0;x<w;x++)_.push({end:t.getUint16()});for(t.skip(2),x=0;x<w;x++)_[x].start=t.getUint16();for(x=0;x<w;x++)_[x].delta=t.getUint16();var C=0;for(x=0;x<w;x++){a=_[x];var S=t.getUint16();if(S){var k=(S>>1)-(w-x);a.offsetIndex=k,C=Math.max(C,k+a.end-a.start+1)}else a.offsetIndex=-1}var B=[];for(g=0;g<C;g++)B.push(t.getUint16());for(x=0;x<w;x++){o=(a=_[x]).start;var E=a.end,T=a.delta;for(k=a.offsetIndex,g=o;g<=E;g++)65535!==g&&(m=(m=k<0?g:B[k+g-o])+T&65535,y.push({charCode:g,glyphId:m}))}}else{if(6!==A)return(0,r.warn)("cmap table has unsupported format: "+A),{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1};var I=t.getUint16(),M=t.getUint16();for(g=0;g<M;g++){m=t.getUint16();var F=I+g;y.push({charCode:F,glyphId:m})}}for(y.sort(function(e,t){return e.charCode-t.charCode}),u=1;u<y.length;u++)y[u-1].charCode===y[u].charCode&&(y.splice(u,1),u--);return{platformId:s.platformId,encodingId:s.encodingId,mappings:y,hasShortCmap:v}}(C.cmap,t,this.isSymbolicFont,s.hasEncoding),J=X.platformId,Z=X.encodingId,ee=X.mappings,te=ee.length;if(s.hasEncoding&&(3===J&&1===Z||1===J&&0===Z)||-1===J&&-1===Z&&(0,o.getEncoding)(s.baseEncodingName)){var ne=[];"MacRomanEncoding"!==s.baseEncodingName&&"WinAnsiEncoding"!==s.baseEncodingName||(ne=(0,o.getEncoding)(s.baseEncodingName));var re=(0,a.getGlyphsUnicode)();for(let e=0;e<256;e++){var ie,ae;if(ie=this.differences&&e in this.differences?this.differences[e]:e in ne&&""!==ne[e]?ne[e]:o.StandardEncoding[e]){var oe;ae=_(ie,re),3===J&&1===Z?oe=re[ae]:1===J&&0===Z&&(oe=o.MacRomanEncoding.indexOf(ae));var se=!1;for(let t=0;t<te;++t)if(ee[t].charCode===oe){q[e]=ee[t].glyphId,se=!0;break}if(!se&&s.glyphNames){var le=s.glyphNames.indexOf(ie);-1===le&&ae!==ie&&(le=s.glyphNames.indexOf(ae)),le>0&&W(le)&&(q[e]=le)}}}}else if(0===J&&0===Z)for(let e=0;e<te;++e)q[ee[e].charCode]=ee[e].glyphId;else for(let e=0;e<te;++e){let t=ee[e].charCode;3===J&&t>=61440&&t<=61695&&(t&=255),q[t]=ee[e].glyphId}}0===q.length&&(q[0]=0);let ce=D-1;U||(ce=0);var ue=P(q,W,ce);if(this.toFontChar=ue.toFontChar,C.cmap={tag:"cmap",data:O(ue.charCodeToGlyphId,D)},C["OS/2"]&&function(e,t){t.pos=(t.start||0)+e.offset;var n=t.getUint16();t.skip(60);var r=t.getUint16();return!(n<4&&768&r||t.getUint16()>t.getUint16()||(t.skip(6),0===t.getUint16()||(e.data[8]=e.data[9]=0,0)))}(C["OS/2"],t)||(C["OS/2"]={tag:"OS/2",data:L(s,ue.charCodeToGlyphId,$)}),!E)try{k=new d.Stream(C["CFF "].data),(S=new i.CFFParser(k,s,g).parse()).duplicateFirstGlyph();var he=new i.CFFCompiler(S);C["CFF "].data=he.compile()}catch(e){(0,r.warn)("Failed to compile font "+s.loadedName)}if(C.name){var de=m(C.name);C.name.data=N(e,de)}else C.name={tag:"name",data:N(this.name)};var fe=new B(x.version);for(var pe in C)fe.addTable(pe,C[pe].data);return fe.toArray()},convert:function(e,t,n){n.fixedPitch=!1,n.builtInEncoding&&function(e,t){if(!e.hasIncludedToUnicodeMap&&!(e.hasEncoding||t===e.defaultEncoding||e.toUnicode instanceof k)){var n=[],r=(0,a.getGlyphsUnicode)();for(var i in t){var o=t[i],s=(0,l.getUnicodeForGlyph)(o,r);-1!==s&&(n[i]=String.fromCharCode(s))}e.toUnicode.amend(n)}}(n,n.builtInEncoding);let i=1;t instanceof F&&(i=t.numGlyphs-1);var s=t.getGlyphMapping(n),c=P(s,t.hasGlyphId.bind(t),i);this.toFontChar=c.toFontChar;var u=t.numGlyphs;function h(e,t){var n=null;for(var r in e)t===e[r]&&(n||(n=[]),n.push(0|r));return n}function d(e,t){for(var n in e)if(t===e[n])return 0|n;return c.charCodeToGlyphId[c.nextAvailableFontCharCode]=t,c.nextAvailableFontCharCode++}var f=t.seacs;if(g&&f&&f.length){var p=n.fontMatrix||r.FONT_IDENTITY_MATRIX,A=t.getCharset(),m=Object.create(null);for(var v in f){var y=f[v|=0],b=o.StandardEncoding[y[2]],w=o.StandardEncoding[y[3]],x=A.indexOf(b),_=A.indexOf(w);if(!(x<0||_<0)){var C={x:y[0]*p[0]+y[1]*p[2]+p[4],y:y[0]*p[1]+y[1]*p[3]+p[5]},S=h(s,v);if(S)for(let e=0,t=S.length;e<t;e++){var I=S[e],M=c.charCodeToGlyphId,D=d(M,x),U=d(M,_);m[I]={baseFontCharCode:D,accentFontCharCode:U,accentOffset:C}}}}n.seacMap=m}var H=1/(n.fontMatrix||r.FONT_IDENTITY_MATRIX)[0],j=new B("OTTO");return j.addTable("CFF ",t.data),j.addTable("OS/2",L(n,c.charCodeToGlyphId)),j.addTable("cmap",O(c.charCodeToGlyphId,u)),j.addTable("head","\0\0\0\0\0\0\0\0\0\0_<õ\0\0"+T(H)+"\0\0\0\0ž\v~'\0\0\0\0ž\v~'\0\0"+T(n.descent)+"ÿ"+T(n.ascent)+E(n.italicAngle?2:0)+"\0\0\0\0\0\0\0"),j.addTable("hhea","\0\0\0"+T(n.ascent)+T(n.descent)+"\0\0ÿÿ\0\0\0\0\0\0"+T(n.capHeight)+T(Math.tan(n.italicAngle)*n.xHeight)+"\0\0\0\0\0\0\0\0\0\0\0\0"+E(u)),j.addTable("hmtx",function(){var e=t.charstrings,n=t.cff?t.cff.widths:null,r="\0\0\0\0";for(let t=1,o=u;t<o;t++){var i=0;if(e){var a=e[t-1];i="width"in a?a.width:0}else n&&(i=Math.ceil(n[t]||0));r+=E(i)+E(0)}return r}()),j.addTable("maxp","\0\0P\0"+E(u)),j.addTable("name",N(e)),j.addTable("post",R(n)),j.toArray()},get spaceWidth(){for(var e,t=["space","minus","one","i","I"],n=0,i=t.length;n<i;n++){var o=t[n];if(o in this.widths){e=this.widths[o];break}var s=(0,a.getGlyphsUnicode)()[o],l=0;if(this.composite&&this.cMap.contains(s)&&(l=this.cMap.lookup(s)),!l&&this.toUnicode&&(l=this.toUnicode.charCodeOf(s)),l<=0&&(l=s),e=this.widths[l])break}return e=e||this.defaultWidth,(0,r.shadow)(this,"spaceWidth",e)},charToGlyph:function(e,t){var n,i,a,o=e;this.cMap&&this.cMap.contains(e)&&(o=this.cMap.lookup(e)),i=this.widths[o],i=(0,r.isNum)(i)?i:this.defaultWidth;var s=this.vmetrics&&this.vmetrics[o];let c=this.toUnicode.get(e)||this.fallbackToUnicode.get(e)||e;"number"==typeof c&&(c=String.fromCharCode(c));var u=e in this.toFontChar;if(n=this.toFontChar[e]||e,this.missingFile){const t=this.differences[e]||this.defaultEncoding[e];".notdef"!==t&&""!==t||"Type1"!==this.type||(n=32),n=(0,l.mapSpecialUnicodeValues)(n)}this.isType3Font&&(a=n);var h=null;if(this.seacMap&&this.seacMap[e]){u=!0;var d=this.seacMap[e];n=d.baseFontCharCode,h={fontChar:String.fromCodePoint(d.accentFontCharCode),offset:d.accentOffset}}let f="";"number"==typeof n&&(n<=1114111?f=String.fromCodePoint(n):(0,r.warn)(`charToGlyph - invalid fontCharCode: ${n}`));var p=this.glyphCache[e];return p&&p.matchesForCache(f,c,h,i,s,a,t,u)||(p=new C(f,c,h,i,s,a,t,u),this.glyphCache[e]=p),p},charsToGlyphs:function(e){var t,n,r,i=this.charsCache;if(i&&(t=i[e]))return t;i||(i=this.charsCache=Object.create(null)),t=[];var a,o=e,s=0;if(this.cMap)for(var l=Object.create(null);s<e.length;){this.cMap.readCharCode(e,s,l),r=l.charcode;var c=l.length;s+=c;var u=1===c&&32===e.charCodeAt(s-1);n=this.charToGlyph(r,u),t.push(n)}else for(s=0,a=e.length;s<a;++s)r=e.charCodeAt(s),n=this.charToGlyph(r,32===r),t.push(n);return i[o]=t},get glyphCacheValues(){return Object.values(this.glyphCache)}},e}();t.Font=E;var T=function(){function e(e){this.error=e,this.loadedName="g_font_error",this.missingFile=!0}return e.prototype={charsToGlyphs:function(){return[]},exportData(e=!1){return{error:this.error}}},e}();function I(e,t,n){var r,i,s,l=Object.create(null),c=!!(e.flags&y.Symbolic);if(e.baseEncodingName)for(s=(0,o.getEncoding)(e.baseEncodingName),i=0;i<s.length;i++)r=n.indexOf(s[i]),l[i]=r>=0?r:0;else if(c)for(i in t)l[i]=t[i];else for(s=o.StandardEncoding,i=0;i<s.length;i++)r=n.indexOf(s[i]),l[i]=r>=0?r:0;var u,h=e.differences;if(h)for(i in h){var d=h[i];if(-1===(r=n.indexOf(d))){u||(u=(0,a.getGlyphsUnicode)());var f=_(d,u);f!==d&&(r=n.indexOf(f))}l[i]=r>=0?r:0}return l}t.ErrorFont=T;var M=function(){function e(e,t,n){for(var r,i=e.length,a=t.length,o=i-a,s=n,l=!1;s<o;){for(r=0;r<a&&e[s+r]===t[r];)r++;if(r>=a){for(s+=r;s<i&&(0,c.isWhiteSpace)(e[s]);)s++;l=!0;break}s++}return{found:l,length:s}}function t(t,n,i){var a=i.length1,o=(i.length2,n.peekBytes(6)),s=128===o[0]&&1===o[1];s&&(n.skip(6),a=o[5]<<24|o[4]<<16|o[3]<<8|o[2]);var l=function(t,n){var i,a,o,s,l=[101,101,120,101,99],u=t.pos;try{a=(i=t.getBytes(n)).length}catch(e){if(e instanceof c.MissingDataException)throw e}if(a===n&&(o=e(i,l,n-2*l.length)).found&&o.length===n)return{stream:new d.Stream(i),length:n};for((0,r.warn)('Invalid "Length1" property in Type1 font -- trying to recover.'),t.pos=u;0!==(o=e(t.peekBytes(2048),l,0)).length;)if(t.pos+=o.length,o.found){s=t.pos-u;break}return t.pos=u,s?{stream:new d.Stream(t.getBytes(s)),length:s}:((0,r.warn)('Unable to recover "Length1" property in Type1 font -- using as is.'),{stream:new d.Stream(t.getBytes(n)),length:n})}(n,a);new f.Type1Parser(l.stream,!1,g).extractFontHeader(i),s&&((o=n.getBytes(6))[5],o[4],o[3],o[2]);var u,h=(u=n.getBytes(),{stream:new d.Stream(u),length:u.length}),p=new f.Type1Parser(h.stream,!0,g).extractFontProgram(i);for(const e in p.properties)i[e]=p.properties[e];var A=p.charstrings,m=this.getType2Charstrings(A),v=this.getType2Subrs(p.subrs);this.charstrings=A,this.data=this.wrap(t,m,this.charstrings,v,i),this.seacs=this.getSeacs(p.charstrings)}return t.prototype={get numGlyphs(){return this.charstrings.length+1},getCharset:function(){for(var e=[".notdef"],t=this.charstrings,n=0;n<t.length;n++)e.push(t[n].glyphName);return e},getGlyphMapping:function(e){var t=this.charstrings;if(e.composite){const n=Object.create(null);for(let r=0,i=t.length;r<i;r++){n[e.cMap.charCodeOf(r)]=r+1}return n}var n,r=[".notdef"];for(n=0;n<t.length;n++)r.push(t[n].glyphName);var i=e.builtInEncoding;if(i){var a=Object.create(null);for(var o in i)(n=r.indexOf(i[o]))>=0&&(a[o]=n)}return I(e,a,r)},hasGlyphId:function(e){return!(e<0||e>=this.numGlyphs)&&(0===e||this.charstrings[e-1].charstring.length>0)},getSeacs:function(e){var t,n,r=[];for(t=0,n=e.length;t<n;t++){var i=e[t];i.seac&&(r[t+1]=i.seac)}return r},getType2Charstrings:function(e){for(var t=[],n=0,r=e.length;n<r;n++)t.push(e[n].charstring);return t},getType2Subrs:function(e){var t=0,n=e.length;t=n<1133?107:n<33769?1131:32768;var r,i=[];for(r=0;r<t;r++)i.push([11]);for(r=0;r<n;r++)i.push(e[r]);return i},wrap:function(e,t,n,r,a){var o=new i.CFF;o.header=new i.CFFHeader(1,0,4,4),o.names=[e];var s=new i.CFFTopDict;s.setByName("version",391),s.setByName("Notice",392),s.setByName("FullName",393),s.setByName("FamilyName",394),s.setByName("Weight",395),s.setByName("Encoding",null),s.setByName("FontMatrix",a.fontMatrix),s.setByName("FontBBox",a.bbox),s.setByName("charset",null),s.setByName("CharStrings",null),s.setByName("Private",null),o.topDict=s;var l=new i.CFFStrings;l.add("Version 0.11"),l.add("See original notice"),l.add(e),l.add(e),l.add("Medium"),o.strings=l,o.globalSubrIndex=new i.CFFIndex;var c,u,h=t.length,d=[".notdef"];for(c=0;c<h;c++){const e=n[c].glyphName;-1===i.CFFStandardStrings.indexOf(e)&&l.add(e),d.push(e)}o.charset=new i.CFFCharset(!1,0,d);var f=new i.CFFIndex;for(f.add([139,14]),c=0;c<h;c++)f.add(t[c]);o.charStrings=f;var p=new i.CFFPrivateDict;p.setByName("Subrs",null);var A=["BlueValues","OtherBlues","FamilyBlues","FamilyOtherBlues","StemSnapH","StemSnapV","BlueShift","BlueFuzz","BlueScale","LanguageGroup","ExpansionFactor","ForceBold","StdHW","StdVW"];for(c=0,u=A.length;c<u;c++){var g=A[c];if(g in a.privateData){var m=a.privateData[g];if(Array.isArray(m))for(var v=m.length-1;v>0;v--)m[v]-=m[v-1];p.setByName(g,m)}}o.topDict.privateDict=p;var y=new i.CFFIndex;for(c=0,u=r.length;c<u;c++)y.add(r[c]);return p.subrsIndex=y,new i.CFFCompiler(o).compile()}},t}(),F=function(){function e(e,t){this.properties=t;var n=new i.CFFParser(e,t,g);this.cff=n.parse(),this.cff.duplicateFirstGlyph();var a=new i.CFFCompiler(this.cff);this.seacs=this.cff.seacs;try{this.data=a.compile()}catch(n){(0,r.warn)("Failed to compile font "+t.loadedName),this.data=e}}return e.prototype={get numGlyphs(){return this.cff.charStrings.count},getCharset:function(){return this.cff.charset.charset},getGlyphMapping:function(){var e,t,n=this.cff,r=this.properties,i=n.charset.charset;if(r.composite){let o;if(e=Object.create(null),n.isCIDFont)for(t=0;t<i.length;t++){var a=i[t];e[o=r.cMap.charCodeOf(a)]=t}else for(t=0;t<n.charStrings.count;t++)e[o=r.cMap.charCodeOf(t)]=t;return e}return e=I(r,n.encoding?n.encoding.encoding:null,i)},hasGlyphId:function(e){return this.cff.hasGlyphId(e)}},e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CFFFDSelect=t.CFFCompiler=t.CFFPrivateDict=t.CFFTopDict=t.CFFCharset=t.CFFIndex=t.CFFStrings=t.CFFHeader=t.CFF=t.CFFParser=t.CFFStandardStrings=void 0;var r=n(2),i=n(31),a=n(32),o=[".notdef","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","endash","dagger","daggerdbl","periodcentered","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","questiondown","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","ring","cedilla","hungarumlaut","ogonek","caron","emdash","AE","ordfeminine","Lslash","Oslash","OE","ordmasculine","ae","dotlessi","lslash","oslash","oe","germandbls","onesuperior","logicalnot","mu","trademark","Eth","onehalf","plusminus","Thorn","onequarter","divide","brokenbar","degree","thorn","threequarters","twosuperior","registered","minus","eth","multiply","threesuperior","copyright","Aacute","Acircumflex","Adieresis","Agrave","Aring","Atilde","Ccedilla","Eacute","Ecircumflex","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Ntilde","Oacute","Ocircumflex","Odieresis","Ograve","Otilde","Scaron","Uacute","Ucircumflex","Udieresis","Ugrave","Yacute","Ydieresis","Zcaron","aacute","acircumflex","adieresis","agrave","aring","atilde","ccedilla","eacute","ecircumflex","edieresis","egrave","iacute","icircumflex","idieresis","igrave","ntilde","oacute","ocircumflex","odieresis","ograve","otilde","scaron","uacute","ucircumflex","udieresis","ugrave","yacute","ydieresis","zcaron","exclamsmall","Hungarumlautsmall","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","commasuperior","threequartersemdash","periodsuperior","questionsmall","asuperior","bsuperior","centsuperior","dsuperior","esuperior","isuperior","lsuperior","msuperior","nsuperior","osuperior","rsuperior","ssuperior","tsuperior","ff","ffi","ffl","parenleftinferior","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","exclamdownsmall","centoldstyle","Lslashsmall","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","Dotaccentsmall","Macronsmall","figuredash","hypheninferior","Ogoneksmall","Ringsmall","Cedillasmall","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","zerosuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall","001.000","001.001","001.002","001.003","Black","Bold","Book","Light","Medium","Regular","Roman","Semibold"];t.CFFStandardStrings=o;var s=function(){var e=[null,{id:"hstem",min:2,stackClearing:!0,stem:!0},null,{id:"vstem",min:2,stackClearing:!0,stem:!0},{id:"vmoveto",min:1,stackClearing:!0},{id:"rlineto",min:2,resetStack:!0},{id:"hlineto",min:1,resetStack:!0},{id:"vlineto",min:1,resetStack:!0},{id:"rrcurveto",min:6,resetStack:!0},null,{id:"callsubr",min:1,undefStack:!0},{id:"return",min:0,undefStack:!0},null,null,{id:"endchar",min:0,stackClearing:!0},null,null,null,{id:"hstemhm",min:2,stackClearing:!0,stem:!0},{id:"hintmask",min:0,stackClearing:!0},{id:"cntrmask",min:0,stackClearing:!0},{id:"rmoveto",min:2,stackClearing:!0},{id:"hmoveto",min:1,stackClearing:!0},{id:"vstemhm",min:2,stackClearing:!0,stem:!0},{id:"rcurveline",min:8,resetStack:!0},{id:"rlinecurve",min:8,resetStack:!0},{id:"vvcurveto",min:4,resetStack:!0},{id:"hhcurveto",min:4,resetStack:!0},null,{id:"callgsubr",min:1,undefStack:!0},{id:"vhcurveto",min:4,resetStack:!0},{id:"hvcurveto",min:4,resetStack:!0}],t=[null,null,null,{id:"and",min:2,stackDelta:-1},{id:"or",min:2,stackDelta:-1},{id:"not",min:1,stackDelta:0},null,null,null,{id:"abs",min:1,stackDelta:0},{id:"add",min:2,stackDelta:-1,stackFn:function(e,t){e[t-2]=e[t-2]+e[t-1]}},{id:"sub",min:2,stackDelta:-1,stackFn:function(e,t){e[t-2]=e[t-2]-e[t-1]}},{id:"div",min:2,stackDelta:-1,stackFn:function(e,t){e[t-2]=e[t-2]/e[t-1]}},null,{id:"neg",min:1,stackDelta:0,stackFn:function(e,t){e[t-1]=-e[t-1]}},{id:"eq",min:2,stackDelta:-1},null,null,{id:"drop",min:1,stackDelta:-1},null,{id:"put",min:2,stackDelta:-2},{id:"get",min:1,stackDelta:0},{id:"ifelse",min:4,stackDelta:-3},{id:"random",min:0,stackDelta:1},{id:"mul",min:2,stackDelta:-1,stackFn:function(e,t){e[t-2]=e[t-2]*e[t-1]}},null,{id:"sqrt",min:1,stackDelta:0},{id:"dup",min:1,stackDelta:1},{id:"exch",min:2,stackDelta:0},{id:"index",min:2,stackDelta:0},{id:"roll",min:3,stackDelta:-2},null,null,null,{id:"hflex",min:7,resetStack:!0},{id:"flex",min:13,resetStack:!0},{id:"hflex1",min:9,resetStack:!0},{id:"flex1",min:11,resetStack:!0}];function n(e,t,n){this.bytes=e.getBytes(),this.properties=t,this.seacAnalysisEnabled=!!n}return n.prototype={parse:function(){var e=this.properties,t=new l;this.cff=t;var n=this.parseHeader(),r=this.parseIndex(n.endPos),i=this.parseIndex(r.endPos),a=this.parseIndex(i.endPos),o=this.parseIndex(a.endPos),s=this.parseDict(i.obj.get(0)),c=this.createDict(f,s,t.strings);t.header=n.obj,t.names=this.parseNameIndex(r.obj),t.strings=this.parseStringIndex(a.obj),t.topDict=c,t.globalSubrIndex=o.obj,this.parsePrivateDict(t.topDict),t.isCIDFont=c.hasName("ROS");var u=c.getByName("CharStrings"),h=this.parseIndex(u).obj,d=c.getByName("FontMatrix");d&&(e.fontMatrix=d);var p,A,g=c.getByName("FontBBox");if(g&&(e.ascent=Math.max(g[3],g[1]),e.descent=Math.min(g[1],g[3]),e.ascentScaled=!0),t.isCIDFont){for(var m=this.parseIndex(c.getByName("FDArray")).obj,v=0,y=m.count;v<y;++v){var b=m.get(v),w=this.createDict(f,this.parseDict(b),t.strings);this.parsePrivateDict(w),t.fdArray.push(w)}A=null,p=this.parseCharsets(c.getByName("charset"),h.count,t.strings,!0),t.fdSelect=this.parseFDSelect(c.getByName("FDSelect"),h.count)}else p=this.parseCharsets(c.getByName("charset"),h.count,t.strings,!1),A=this.parseEncoding(c.getByName("Encoding"),e,t.strings,p.charset);t.charset=p,t.encoding=A;var x=this.parseCharStrings({charStrings:h,localSubrIndex:c.privateDict.subrsIndex,globalSubrIndex:o.obj,fdSelect:t.fdSelect,fdArray:t.fdArray,privateDict:c.privateDict});return t.charStrings=x.charStrings,t.seacs=x.seacs,t.widths=x.widths,t},parseHeader:function(){for(var e=this.bytes,t=e.length,n=0;n<t&&1!==e[n];)++n;if(n>=t)throw new r.FormatError("Invalid CFF header");0!==n&&((0,r.info)("cff data is shifted"),e=e.subarray(n),this.bytes=e);var i=e[0],a=e[1],o=e[2],s=e[3];return{obj:new c(i,a,o,s),endPos:o}},parseDict:function(e){var t=0;function n(){var n=e[t++];return 30===n?function(){var n="";const r=["0","1","2","3","4","5","6","7","8","9",".","E","E-",null,"-"];var i=e.length;for(;t<i;){var a=e[t++],o=a>>4,s=15&a;if(15===o)break;if(n+=r[o],15===s)break;n+=r[s]}return parseFloat(n)}():28===n?n=((n=e[t++])<<24|e[t++]<<16)>>16:29===n?n=(n=(n=(n=e[t++])<<8|e[t++])<<8|e[t++])<<8|e[t++]:n>=32&&n<=246?n-139:n>=247&&n<=250?256*(n-247)+e[t++]+108:n>=251&&n<=254?-256*(n-251)-e[t++]-108:((0,r.warn)('CFFParser_parseDict: "'+n+'" is a reserved command.'),NaN)}var i=[],a=[];t=0;for(var o=e.length;t<o;){var s=e[t];s<=21?(12===s&&(s=s<<8|e[++t]),a.push([s,i]),i=[],++t):i.push(n())}return a},parseIndex:function(e){var t,n,r=new h,i=this.bytes,a=i[e++]<<8|i[e++],o=[],s=e;if(0!==a){var l=i[e++],c=e+(a+1)*l-1;for(t=0,n=a+1;t<n;++t){for(var u=0,d=0;d<l;++d)u<<=8,u+=i[e++];o.push(c+u)}s=o[a]}for(t=0,n=o.length-1;t<n;++t){var f=o[t],p=o[t+1];r.add(i.subarray(f,p))}return{obj:r,endPos:s}},parseNameIndex:function(e){for(var t=[],n=0,i=e.count;n<i;++n){var a=e.get(n);t.push((0,r.bytesToString)(a))}return t},parseStringIndex:function(e){for(var t=new u,n=0,i=e.count;n<i;++n){var a=e.get(n);t.add((0,r.bytesToString)(a))}return t},createDict:function(e,t,n){for(var r=new e(n),i=0,a=t.length;i<a;++i){var o=t[i],s=o[0],l=o[1];r.setByKey(s,l)}return r},parseCharString:function(n,i,a,o){if(!i||n.callDepth>10)return!1;for(var s=n.stackSize,l=n.stack,c=i.length,u=0;u<c;){var h=i[u++],d=null;if(12===h){var f=i[u++];0===f?(i[u-2]=139,i[u-1]=22,s=0):d=t[f]}else if(28===h)l[s]=(i[u]<<24|i[u+1]<<16)>>16,u+=2,s++;else if(14===h){if(s>=4&&(s-=4,this.seacAnalysisEnabled))return n.seac=l.slice(s,s+4),!1;d=e[h]}else if(h>=32&&h<=246)l[s]=h-139,s++;else if(h>=247&&h<=254)l[s]=h<251?(h-247<<8)+i[u]+108:-(h-251<<8)-i[u]-108,u++,s++;else if(255===h)l[s]=(i[u]<<24|i[u+1]<<16|i[u+2]<<8|i[u+3])/65536,u+=4,s++;else if(19===h||20===h)n.hints+=s>>1,u+=n.hints+7>>3,s%=2,d=e[h];else{if(10===h||29===h){var p;if(!(p=10===h?a:o))return d=e[h],(0,r.warn)("Missing subrsIndex for "+d.id),!1;var A=32768;p.count<1240?A=107:p.count<33900&&(A=1131);var g=l[--s]+A;if(g<0||g>=p.count||isNaN(g))return d=e[h],(0,r.warn)("Out of bounds subrIndex for "+d.id),!1;if(n.stackSize=s,n.callDepth++,!this.parseCharString(n,p.get(g),a,o))return!1;n.callDepth--,s=n.stackSize;continue}if(11===h)return n.stackSize=s,!0;d=e[h]}if(d){if(d.stem&&(n.hints+=s>>1,3===h||23===h?n.hasVStems=!0:!n.hasVStems||1!==h&&18!==h||((0,r.warn)("CFF stem hints are in wrong order"),i[u-1]=1===h?3:23)),"min"in d&&!n.undefStack&&s<d.min)return(0,r.warn)("Not enough parameters for "+d.id+"; actual: "+s+", expected: "+d.min),!1;n.firstStackClearing&&d.stackClearing&&(n.firstStackClearing=!1,(s-=d.min)>=2&&d.stem?s%=2:s>1&&(0,r.warn)("Found too many parameters for stack-clearing command"),s>0&&l[s-1]>=0&&(n.width=l[s-1])),"stackDelta"in d?("stackFn"in d&&d.stackFn(l,s),s+=d.stackDelta):d.stackClearing?s=0:d.resetStack?(s=0,n.undefStack=!1):d.undefStack&&(s=0,n.undefStack=!0,n.firstStackClearing=!1)}}return n.stackSize=s,!0},parseCharStrings({charStrings:e,localSubrIndex:t,globalSubrIndex:n,fdSelect:i,fdArray:a,privateDict:o}){for(var s=[],l=[],c=e.count,u=0;u<c;u++){var h=e.get(u),d={callDepth:0,stackSize:0,stack:[],undefStack:!0,hints:0,firstStackClearing:!0,seac:null,width:null,hasVStems:!1},f=!0,p=null,A=o;if(i&&a.length){var g=i.getFDIndex(u);-1===g&&((0,r.warn)("Glyph index is not in fd select."),f=!1),g>=a.length&&((0,r.warn)("Invalid fd index for glyph index."),f=!1),f&&(p=(A=a[g].privateDict).subrsIndex)}else t&&(p=t);if(f&&(f=this.parseCharString(d,h,p,n)),null!==d.width){const e=A.getByName("nominalWidthX");l[u]=e+d.width}else{const e=A.getByName("defaultWidthX");l[u]=e}null!==d.seac&&(s[u]=d.seac),f||e.set(u,new Uint8Array([14]))}return{charStrings:e,seacs:s,widths:l}},emptyPrivateDictionary:function(e){var t=this.createDict(p,[],e.strings);e.setByKey(18,[0,0]),e.privateDict=t},parsePrivateDict:function(e){if(e.hasName("Private")){var t=e.getByName("Private");if(Array.isArray(t)&&2===t.length){var n=t[0],r=t[1];if(0===n||r>=this.bytes.length)this.emptyPrivateDictionary(e);else{var i=r+n,a=this.bytes.subarray(r,i),o=this.parseDict(a),s=this.createDict(p,o,e.strings);if(e.privateDict=s,s.getByName("Subrs")){var l=s.getByName("Subrs"),c=r+l;if(0===l||c>=this.bytes.length)this.emptyPrivateDictionary(e);else{var u=this.parseIndex(c);s.subrsIndex=u.obj}}}}else e.removeByName("Private")}else this.emptyPrivateDictionary(e)},parseCharsets:function(e,t,n,a){if(0===e)return new g(!0,A.ISO_ADOBE,i.ISOAdobeCharset);if(1===e)return new g(!0,A.EXPERT,i.ExpertCharset);if(2===e)return new g(!0,A.EXPERT_SUBSET,i.ExpertSubsetCharset);var o=this.bytes,s=e,l=o[e++];const c=[a?0:".notdef"];var u,h,d;switch(t-=1,l){case 0:for(d=0;d<t;d++)u=o[e++]<<8|o[e++],c.push(a?u:n.get(u));break;case 1:for(;c.length<=t;)for(u=o[e++]<<8|o[e++],h=o[e++],d=0;d<=h;d++)c.push(a?u++:n.get(u++));break;case 2:for(;c.length<=t;)for(u=o[e++]<<8|o[e++],h=o[e++]<<8|o[e++],d=0;d<=h;d++)c.push(a?u++:n.get(u++));break;default:throw new r.FormatError("Unknown charset format")}var f=e,p=o.subarray(s,f);return new g(!1,l,c,p)},parseEncoding:function(e,t,n,i){var o,s,l,c=Object.create(null),u=this.bytes,h=!1,d=null;if(0===e||1===e){h=!0,o=e;var f=e?a.ExpertEncoding:a.StandardEncoding;for(s=0,l=i.length;s<l;s++){var p=f.indexOf(i[s]);-1!==p&&(c[p]=s)}}else{var A=e;switch(127&(o=u[e++])){case 0:var g=u[e++];for(s=1;s<=g;s++)c[u[e++]]=s;break;case 1:var v=u[e++],y=1;for(s=0;s<v;s++)for(var b=u[e++],w=u[e++],x=b;x<=b+w;x++)c[x]=y++;break;default:throw new r.FormatError(`Unknown encoding format: ${o} in CFF`)}var _=e;128&o&&(u[A]&=127,function(){var t=u[e++];for(s=0;s<t;s++){var r=u[e++],a=(u[e++]<<8)+(255&u[e++]);c[r]=i.indexOf(n.get(a))}}()),d=u.subarray(A,_)}return new m(h,o&=127,c,d)},parseFDSelect:function(e,t){var n,i=this.bytes,a=i[e++],o=[];switch(a){case 0:for(n=0;n<t;++n){var s=i[e++];o.push(s)}break;case 3:var l=i[e++]<<8|i[e++];for(n=0;n<l;++n){var c=i[e++]<<8|i[e++];0===n&&0!==c&&((0,r.warn)("parseFDSelect: The first range must have a first GID of 0 -- trying to recover."),c=0);for(var u=i[e++],h=i[e]<<8|i[e+1],d=c;d<h;++d)o.push(u)}e+=2;break;default:throw new r.FormatError(`parseFDSelect: Unknown format "${a}".`)}if(o.length!==t)throw new r.FormatError("parseFDSelect: Invalid font data.");return new v(a,o)}},n}();t.CFFParser=s;var l=function(){function e(){this.header=null,this.names=[],this.topDict=null,this.strings=new u,this.globalSubrIndex=null,this.encoding=null,this.charset=null,this.charStrings=null,this.fdArray=[],this.fdSelect=null,this.isCIDFont=!1}return e.prototype={duplicateFirstGlyph:function(){if(this.charStrings.count>=65535)(0,r.warn)("Not enough space in charstrings to duplicate first glyph.");else{var e=this.charStrings.get(0);this.charStrings.add(e),this.isCIDFont&&this.fdSelect.fdSelect.push(this.fdSelect.fdSelect[0])}},hasGlyphId:function(e){return!(e<0||e>=this.charStrings.count)&&this.charStrings.get(e).length>0}},e}();t.CFF=l;var c=function(){return function(e,t,n,r){this.major=e,this.minor=t,this.hdrSize=n,this.offSize=r}}();t.CFFHeader=c;var u=function(){function e(){this.strings=[]}return e.prototype={get:function(e){return e>=0&&e<=390?o[e]:e-391<=this.strings.length?this.strings[e-391]:o[0]},getSID:function(e){let t=o.indexOf(e);return-1!==t?t:-1!==(t=this.strings.indexOf(e))?t+391:-1},add:function(e){this.strings.push(e)},get count(){return this.strings.length}},e}();t.CFFStrings=u;var h=function(){function e(){this.objects=[],this.length=0}return e.prototype={add:function(e){this.length+=e.length,this.objects.push(e)},set:function(e,t){this.length+=t.length-this.objects[e].length,this.objects[e]=t},get:function(e){return this.objects[e]},get count(){return this.objects.length}},e}();t.CFFIndex=h;var d=function(){function e(e,t){this.keyToNameMap=e.keyToNameMap,this.nameToKeyMap=e.nameToKeyMap,this.defaults=e.defaults,this.types=e.types,this.opcodes=e.opcodes,this.order=e.order,this.strings=t,this.values=Object.create(null)}return e.prototype={setByKey:function(e,t){if(!(e in this.keyToNameMap))return!1;var n=t.length;if(0===n)return!0;for(var i=0;i<n;i++)if(isNaN(t[i]))return(0,r.warn)('Invalid CFFDict value: "'+t+'" for key "'+e+'".'),!0;var a=this.types[e];return"num"!==a&&"sid"!==a&&"offset"!==a||(t=t[0]),this.values[e]=t,!0},setByName:function(e,t){if(!(e in this.nameToKeyMap))throw new r.FormatError(`Invalid dictionary name "${e}"`);this.values[this.nameToKeyMap[e]]=t},hasName:function(e){return this.nameToKeyMap[e]in this.values},getByName:function(e){if(!(e in this.nameToKeyMap))throw new r.FormatError(`Invalid dictionary name ${e}"`);var t=this.nameToKeyMap[e];return t in this.values?this.values[t]:this.defaults[t]},removeByName:function(e){delete this.values[this.nameToKeyMap[e]]}},e.createTables=function(e){for(var t={keyToNameMap:{},nameToKeyMap:{},defaults:{},types:{},opcodes:{},order:[]},n=0,r=e.length;n<r;++n){var i=e[n],a=Array.isArray(i[0])?(i[0][0]<<8)+i[0][1]:i[0];t.keyToNameMap[a]=i[1],t.nameToKeyMap[i[1]]=a,t.types[a]=i[2],t.defaults[a]=i[3],t.opcodes[a]=Array.isArray(i[0])?i[0]:[i[0]],t.order.push(a)}return t},e}(),f=function(){var e=[[[12,30],"ROS",["sid","sid","num"],null],[[12,20],"SyntheticBase","num",null],[0,"version","sid",null],[1,"Notice","sid",null],[[12,0],"Copyright","sid",null],[2,"FullName","sid",null],[3,"FamilyName","sid",null],[4,"Weight","sid",null],[[12,1],"isFixedPitch","num",0],[[12,2],"ItalicAngle","num",0],[[12,3],"UnderlinePosition","num",-100],[[12,4],"UnderlineThickness","num",50],[[12,5],"PaintType","num",0],[[12,6],"CharstringType","num",2],[[12,7],"FontMatrix",["num","num","num","num","num","num"],[.001,0,0,.001,0,0]],[13,"UniqueID","num",null],[5,"FontBBox",["num","num","num","num"],[0,0,0,0]],[[12,8],"StrokeWidth","num",0],[14,"XUID","array",null],[15,"charset","offset",0],[16,"Encoding","offset",0],[17,"CharStrings","offset",0],[18,"Private",["offset","offset"],null],[[12,21],"PostScript","sid",null],[[12,22],"BaseFontName","sid",null],[[12,23],"BaseFontBlend","delta",null],[[12,31],"CIDFontVersion","num",0],[[12,32],"CIDFontRevision","num",0],[[12,33],"CIDFontType","num",0],[[12,34],"CIDCount","num",8720],[[12,35],"UIDBase","num",null],[[12,37],"FDSelect","offset",null],[[12,36],"FDArray","offset",null],[[12,38],"FontName","sid",null]],t=null;function n(n){null===t&&(t=d.createTables(e)),d.call(this,t,n),this.privateDict=null}return n.prototype=Object.create(d.prototype),n}();t.CFFTopDict=f;var p=function(){var e=[[6,"BlueValues","delta",null],[7,"OtherBlues","delta",null],[8,"FamilyBlues","delta",null],[9,"FamilyOtherBlues","delta",null],[[12,9],"BlueScale","num",.039625],[[12,10],"BlueShift","num",7],[[12,11],"BlueFuzz","num",1],[10,"StdHW","num",null],[11,"StdVW","num",null],[[12,12],"StemSnapH","delta",null],[[12,13],"StemSnapV","delta",null],[[12,14],"ForceBold","num",0],[[12,17],"LanguageGroup","num",0],[[12,18],"ExpansionFactor","num",.06],[[12,19],"initialRandomSeed","num",0],[20,"defaultWidthX","num",0],[21,"nominalWidthX","num",0],[19,"Subrs","offset",null]],t=null;function n(n){null===t&&(t=d.createTables(e)),d.call(this,t,n),this.subrsIndex=null}return n.prototype=Object.create(d.prototype),n}();t.CFFPrivateDict=p;var A={ISO_ADOBE:0,EXPERT:1,EXPERT_SUBSET:2},g=function(){return function(e,t,n,r){this.predefined=e,this.format=t,this.charset=n,this.raw=r}}();t.CFFCharset=g;var m=function(){return function(e,t,n,r){this.predefined=e,this.format=t,this.encoding=n,this.raw=r}}(),v=function(){function e(e,t){this.format=e,this.fdSelect=t}return e.prototype={getFDIndex:function(e){return e<0||e>=this.fdSelect.length?-1:this.fdSelect[e]}},e}();t.CFFFDSelect=v;var y=function(){function e(){this.offsets=Object.create(null)}return e.prototype={isTracking:function(e){return e in this.offsets},track:function(e,t){if(e in this.offsets)throw new r.FormatError(`Already tracking location of ${e}`);this.offsets[e]=t},offset:function(e){for(var t in this.offsets)this.offsets[t]+=e},setEntryLocation:function(e,t,n){if(!(e in this.offsets))throw new r.FormatError(`Not tracking location of ${e}`);for(var i=n.data,a=this.offsets[e],o=0,s=t.length;o<s;++o){var l=5*o+a,c=l+1,u=l+2,h=l+3,d=l+4;if(29!==i[l]||0!==i[c]||0!==i[u]||0!==i[h]||0!==i[d])throw new r.FormatError("writing to an offset that is not empty");var f=t[o];i[l]=29,i[c]=f>>24&255,i[u]=f>>16&255,i[h]=f>>8&255,i[d]=255&f}}},e}(),b=function(){function e(e){this.cff=e}return e.prototype={compile:function(){var e=this.cff,t={data:[],length:0,add:function(e){this.data=this.data.concat(e),this.length=this.data.length}},n=this.compileHeader(e.header);t.add(n);var i=this.compileNameIndex(e.names);if(t.add(i),e.isCIDFont&&e.topDict.hasName("FontMatrix")){var a=e.topDict.getByName("FontMatrix");e.topDict.removeByName("FontMatrix");for(var o=0,s=e.fdArray.length;o<s;o++){var l=e.fdArray[o],c=a.slice(0);l.hasName("FontMatrix")&&(c=r.Util.transform(c,l.getByName("FontMatrix"))),l.setByName("FontMatrix",c)}}e.topDict.setByName("charset",0);var u=this.compileTopDicts([e.topDict],t.length,e.isCIDFont);t.add(u.output);var h=u.trackers[0],d=this.compileStringIndex(e.strings.strings);t.add(d);var f=this.compileIndex(e.globalSubrIndex);if(t.add(f),e.encoding&&e.topDict.hasName("Encoding"))if(e.encoding.predefined)h.setEntryLocation("Encoding",[e.encoding.format],t);else{var p=this.compileEncoding(e.encoding);h.setEntryLocation("Encoding",[t.length],t),t.add(p)}var A=this.compileCharset(e.charset,e.charStrings.count,e.strings,e.isCIDFont);h.setEntryLocation("charset",[t.length],t),t.add(A);var g=this.compileCharStrings(e.charStrings);if(h.setEntryLocation("CharStrings",[t.length],t),t.add(g),e.isCIDFont){h.setEntryLocation("FDSelect",[t.length],t);var m=this.compileFDSelect(e.fdSelect);t.add(m),u=this.compileTopDicts(e.fdArray,t.length,!0),h.setEntryLocation("FDArray",[t.length],t),t.add(u.output);var v=u.trackers;this.compilePrivateDicts(e.fdArray,v,t)}return this.compilePrivateDicts([e.topDict],[h],t),t.add([0]),t.data},encodeNumber:function(e){return parseFloat(e)!==parseInt(e,10)||isNaN(e)?this.encodeFloat(e):this.encodeInteger(e)},encodeFloat:function(e){var t=e.toString(),n=/\.(\d*?)(?:9{5,20}|0{5,20})\d{0,2}(?:e(.+)|$)/.exec(t);if(n){var r=parseFloat("1e"+((n[2]?+n[2]:0)+n[1].length));t=(Math.round(e*r)/r).toString()}var i,a,o="";for(i=0,a=t.length;i<a;++i){var s=t[i];o+="e"===s?"-"===t[++i]?"c":"b":"."===s?"a":"-"===s?"e":s}var l=[30];for(i=0,a=(o+=1&o.length?"f":"ff").length;i<a;i+=2)l.push(parseInt(o.substring(i,i+2),16));return l},encodeInteger:function(e){return e>=-107&&e<=107?[e+139]:e>=108&&e<=1131?[247+((e-=108)>>8),255&e]:e>=-1131&&e<=-108?[251+((e=-e-108)>>8),255&e]:e>=-32768&&e<=32767?[28,e>>8&255,255&e]:[29,e>>24&255,e>>16&255,e>>8&255,255&e]},compileHeader:function(e){return[e.major,e.minor,e.hdrSize,e.offSize]},compileNameIndex:function(e){for(var t=new h,n=0,i=e.length;n<i;++n){for(var a=e[n],o=Math.min(a.length,127),s=new Array(o),l=0;l<o;l++){var c=a[l];(c<"!"||c>"~"||"["===c||"]"===c||"("===c||")"===c||"{"===c||"}"===c||"<"===c||">"===c||"/"===c||"%"===c)&&(c="_"),s[l]=c}""===(s=s.join(""))&&(s="Bad_Font_Name"),t.add((0,r.stringToBytes)(s))}return this.compileIndex(t)},compileTopDicts:function(e,t,n){for(var r=[],i=new h,a=0,o=e.length;a<o;++a){var s=e[a];n&&(s.removeByName("CIDFontVersion"),s.removeByName("CIDFontRevision"),s.removeByName("CIDFontType"),s.removeByName("CIDCount"),s.removeByName("UIDBase"));var l=new y,c=this.compileDict(s,l);r.push(l),i.add(c),l.offset(t)}return{trackers:r,output:i=this.compileIndex(i,r)}},compilePrivateDicts:function(e,t,n){for(var i=0,a=e.length;i<a;++i){var o=e[i],s=o.privateDict;if(!s||!o.hasName("Private"))throw new r.FormatError("There must be a private dictionary.");var l=new y,c=this.compileDict(s,l),u=n.length;if(l.offset(u),c.length||(u=0),t[i].setEntryLocation("Private",[c.length,u],n),n.add(c),s.subrsIndex&&s.hasName("Subrs")){var h=this.compileIndex(s.subrsIndex);l.setEntryLocation("Subrs",[c.length],n),n.add(h)}}},compileDict:function(e,t){for(var n=[],i=e.order,a=0;a<i.length;++a){var o=i[a];if(o in e.values){var s=e.values[o],l=e.types[o];if(Array.isArray(l)||(l=[l]),Array.isArray(s)||(s=[s]),0!==s.length){for(var c=0,u=l.length;c<u;++c){var h=l[c],d=s[c];switch(h){case"num":case"sid":n=n.concat(this.encodeNumber(d));break;case"offset":var f=e.keyToNameMap[o];t.isTracking(f)||t.track(f,n.length),n=n.concat([29,0,0,0,0]);break;case"array":case"delta":n=n.concat(this.encodeNumber(d));for(var p=1,A=s.length;p<A;++p)n=n.concat(this.encodeNumber(s[p]));break;default:throw new r.FormatError(`Unknown data type of ${h}`)}}n=n.concat(e.opcodes[o])}}}return n},compileStringIndex:function(e){for(var t=new h,n=0,i=e.length;n<i;++n)t.add((0,r.stringToBytes)(e[n]));return this.compileIndex(t)},compileGlobalSubrIndex:function(){var e=this.cff.globalSubrIndex;this.out.writeByteArray(this.compileIndex(e))},compileCharStrings:function(e){for(var t=new h,n=0;n<e.count;n++){var r=e.get(n);0!==r.length?t.add(r):t.add(new Uint8Array([139,14]))}return this.compileIndex(t)},compileCharset:function(e,t,n,i){let a;const o=t-1;if(i)a=new Uint8Array([2,0,0,o>>8&255,255&o]);else{(a=new Uint8Array(1+2*o))[0]=0;let t=0;const i=e.charset.length;let s=!1;for(let o=1;o<a.length;o+=2){let l=0;if(t<i){const i=e.charset[t++];-1===(l=n.getSID(i))&&(l=0,s||(s=!0,(0,r.warn)(`Couldn't find ${i} in CFF strings`)))}a[o]=l>>8&255,a[o+1]=255&l}}return this.compileTypedArray(a)},compileEncoding:function(e){return this.compileTypedArray(e.raw)},compileFDSelect:function(e){const t=e.format;let n,r;switch(t){case 0:for((n=new Uint8Array(1+e.fdSelect.length))[0]=t,r=0;r<e.fdSelect.length;r++)n[r+1]=e.fdSelect[r];break;case 3:const i=0;let a=e.fdSelect[0];const o=[t,0,0,i>>8&255,255&i,a];for(r=1;r<e.fdSelect.length;r++){const t=e.fdSelect[r];t!==a&&(o.push(r>>8&255,255&r,t),a=t)}const s=(o.length-3)/3;o[1]=s>>8&255,o[2]=255&s,o.push(r>>8&255,255&r),n=new Uint8Array(o)}return this.compileTypedArray(n)},compileTypedArray:function(e){for(var t=[],n=0,r=e.length;n<r;++n)t[n]=e[n];return t},compileIndex:function(e,t){t=t||[];var n=e.objects,r=n.length;if(0===r)return[0,0,0];var i,a,o=[r>>8&255,255&r],s=1;for(i=0;i<r;++i)s+=n[i].length;a=s<256?1:s<65536?2:s<16777216?3:4,o.push(a);var l=1;for(i=0;i<r+1;i++)1===a?o.push(255&l):2===a?o.push(l>>8&255,255&l):3===a?o.push(l>>16&255,l>>8&255,255&l):o.push(l>>>24&255,l>>16&255,l>>8&255,255&l),n[i]&&(l+=n[i].length);for(i=0;i<r;i++){t[i]&&t[i].offset(o.length);for(var c=0,u=n[i].length;c<u;c++)o.push(n[i][c])}return o}},e}();t.CFFCompiler=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExpertSubsetCharset=t.ExpertCharset=t.ISOAdobeCharset=void 0;t.ISOAdobeCharset=[".notdef","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","endash","dagger","daggerdbl","periodcentered","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","questiondown","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","ring","cedilla","hungarumlaut","ogonek","caron","emdash","AE","ordfeminine","Lslash","Oslash","OE","ordmasculine","ae","dotlessi","lslash","oslash","oe","germandbls","onesuperior","logicalnot","mu","trademark","Eth","onehalf","plusminus","Thorn","onequarter","divide","brokenbar","degree","thorn","threequarters","twosuperior","registered","minus","eth","multiply","threesuperior","copyright","Aacute","Acircumflex","Adieresis","Agrave","Aring","Atilde","Ccedilla","Eacute","Ecircumflex","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Ntilde","Oacute","Ocircumflex","Odieresis","Ograve","Otilde","Scaron","Uacute","Ucircumflex","Udieresis","Ugrave","Yacute","Ydieresis","Zcaron","aacute","acircumflex","adieresis","agrave","aring","atilde","ccedilla","eacute","ecircumflex","edieresis","egrave","iacute","icircumflex","idieresis","igrave","ntilde","oacute","ocircumflex","odieresis","ograve","otilde","scaron","uacute","ucircumflex","udieresis","ugrave","yacute","ydieresis","zcaron"];t.ExpertCharset=[".notdef","space","exclamsmall","Hungarumlautsmall","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","commasuperior","threequartersemdash","periodsuperior","questionsmall","asuperior","bsuperior","centsuperior","dsuperior","esuperior","isuperior","lsuperior","msuperior","nsuperior","osuperior","rsuperior","ssuperior","tsuperior","ff","fi","fl","ffi","ffl","parenleftinferior","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","exclamdownsmall","centoldstyle","Lslashsmall","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","Dotaccentsmall","Macronsmall","figuredash","hypheninferior","Ogoneksmall","Ringsmall","Cedillasmall","onequarter","onehalf","threequarters","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","zerosuperior","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall"];t.ExpertSubsetCharset=[".notdef","space","dollaroldstyle","dollarsuperior","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","commasuperior","threequartersemdash","periodsuperior","asuperior","bsuperior","centsuperior","dsuperior","esuperior","isuperior","lsuperior","msuperior","nsuperior","osuperior","rsuperior","ssuperior","tsuperior","ff","fi","fl","ffi","ffl","parenleftinferior","parenrightinferior","hyphensuperior","colonmonetary","onefitted","rupiah","centoldstyle","figuredash","hypheninferior","onequarter","onehalf","threequarters","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","zerosuperior","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getEncoding=function(e){switch(e){case"WinAnsiEncoding":return s;case"StandardEncoding":return o;case"MacRomanEncoding":return a;case"SymbolSetEncoding":return l;case"ZapfDingbatsEncoding":return c;case"ExpertEncoding":return r;case"MacExpertEncoding":return i;default:return null}},t.ExpertEncoding=t.ZapfDingbatsEncoding=t.SymbolSetEncoding=t.MacRomanEncoding=t.StandardEncoding=t.WinAnsiEncoding=void 0;const r=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclamsmall","Hungarumlautsmall","","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","commasuperior","threequartersemdash","periodsuperior","questionsmall","","asuperior","bsuperior","centsuperior","dsuperior","esuperior","","","","isuperior","","","lsuperior","msuperior","nsuperior","osuperior","","","rsuperior","ssuperior","tsuperior","","ff","fi","fl","ffi","ffl","parenleftinferior","","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","exclamdownsmall","centoldstyle","Lslashsmall","","","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","","Dotaccentsmall","","","Macronsmall","","","figuredash","hypheninferior","","","Ogoneksmall","Ringsmall","Cedillasmall","","","","onequarter","onehalf","threequarters","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","","","zerosuperior","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall"];t.ExpertEncoding=r;const i=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclamsmall","Hungarumlautsmall","centoldstyle","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","","threequartersemdash","","questionsmall","","","","","Ethsmall","","","onequarter","onehalf","threequarters","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","","","","","","","ff","fi","fl","ffi","ffl","parenleftinferior","","parenrightinferior","Circumflexsmall","hypheninferior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","","","asuperior","centsuperior","","","","","Aacutesmall","Agravesmall","Acircumflexsmall","Adieresissmall","Atildesmall","Aringsmall","Ccedillasmall","Eacutesmall","Egravesmall","Ecircumflexsmall","Edieresissmall","Iacutesmall","Igravesmall","Icircumflexsmall","Idieresissmall","Ntildesmall","Oacutesmall","Ogravesmall","Ocircumflexsmall","Odieresissmall","Otildesmall","Uacutesmall","Ugravesmall","Ucircumflexsmall","Udieresissmall","","eightsuperior","fourinferior","threeinferior","sixinferior","eightinferior","seveninferior","Scaronsmall","","centinferior","twoinferior","","Dieresissmall","","Caronsmall","osuperior","fiveinferior","","commainferior","periodinferior","Yacutesmall","","dollarinferior","","","Thornsmall","","nineinferior","zeroinferior","Zcaronsmall","AEsmall","Oslashsmall","questiondownsmall","oneinferior","Lslashsmall","","","","","","","Cedillasmall","","","","","","OEsmall","figuredash","hyphensuperior","","","","","exclamdownsmall","","Ydieresissmall","","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","ninesuperior","zerosuperior","","esuperior","rsuperior","tsuperior","","","isuperior","ssuperior","dsuperior","","","","","","lsuperior","Ogoneksmall","Brevesmall","Macronsmall","bsuperior","nsuperior","msuperior","commasuperior","periodsuperior","Dotaccentsmall","Ringsmall","","","",""],a=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quotesingle","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","grave","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","","Adieresis","Aring","Ccedilla","Eacute","Ntilde","Odieresis","Udieresis","aacute","agrave","acircumflex","adieresis","atilde","aring","ccedilla","eacute","egrave","ecircumflex","edieresis","iacute","igrave","icircumflex","idieresis","ntilde","oacute","ograve","ocircumflex","odieresis","otilde","uacute","ugrave","ucircumflex","udieresis","dagger","degree","cent","sterling","section","bullet","paragraph","germandbls","registered","copyright","trademark","acute","dieresis","notequal","AE","Oslash","infinity","plusminus","lessequal","greaterequal","yen","mu","partialdiff","summation","product","pi","integral","ordfeminine","ordmasculine","Omega","ae","oslash","questiondown","exclamdown","logicalnot","radical","florin","approxequal","Delta","guillemotleft","guillemotright","ellipsis","space","Agrave","Atilde","Otilde","OE","oe","endash","emdash","quotedblleft","quotedblright","quoteleft","quoteright","divide","lozenge","ydieresis","Ydieresis","fraction","currency","guilsinglleft","guilsinglright","fi","fl","daggerdbl","periodcentered","quotesinglbase","quotedblbase","perthousand","Acircumflex","Ecircumflex","Aacute","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Oacute","Ocircumflex","apple","Ograve","Uacute","Ucircumflex","Ugrave","dotlessi","circumflex","tilde","macron","breve","dotaccent","ring","cedilla","hungarumlaut","ogonek","caron"];t.MacRomanEncoding=a;const o=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","","endash","dagger","daggerdbl","periodcentered","","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","","questiondown","","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","","ring","cedilla","","hungarumlaut","ogonek","caron","emdash","","","","","","","","","","","","","","","","","AE","","ordfeminine","","","","","Lslash","Oslash","OE","ordmasculine","","","","","","ae","","","","dotlessi","","","lslash","oslash","oe","germandbls","","","",""];t.StandardEncoding=o;const s=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quotesingle","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","grave","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","bullet","Euro","bullet","quotesinglbase","florin","quotedblbase","ellipsis","dagger","daggerdbl","circumflex","perthousand","Scaron","guilsinglleft","OE","bullet","Zcaron","bullet","bullet","quoteleft","quoteright","quotedblleft","quotedblright","bullet","endash","emdash","tilde","trademark","scaron","guilsinglright","oe","bullet","zcaron","Ydieresis","space","exclamdown","cent","sterling","currency","yen","brokenbar","section","dieresis","copyright","ordfeminine","guillemotleft","logicalnot","hyphen","registered","macron","degree","plusminus","twosuperior","threesuperior","acute","mu","paragraph","periodcentered","cedilla","onesuperior","ordmasculine","guillemotright","onequarter","onehalf","threequarters","questiondown","Agrave","Aacute","Acircumflex","Atilde","Adieresis","Aring","AE","Ccedilla","Egrave","Eacute","Ecircumflex","Edieresis","Igrave","Iacute","Icircumflex","Idieresis","Eth","Ntilde","Ograve","Oacute","Ocircumflex","Otilde","Odieresis","multiply","Oslash","Ugrave","Uacute","Ucircumflex","Udieresis","Yacute","Thorn","germandbls","agrave","aacute","acircumflex","atilde","adieresis","aring","ae","ccedilla","egrave","eacute","ecircumflex","edieresis","igrave","iacute","icircumflex","idieresis","eth","ntilde","ograve","oacute","ocircumflex","otilde","odieresis","divide","oslash","ugrave","uacute","ucircumflex","udieresis","yacute","thorn","ydieresis"];t.WinAnsiEncoding=s;const l=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","universal","numbersign","existential","percent","ampersand","suchthat","parenleft","parenright","asteriskmath","plus","comma","minus","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","congruent","Alpha","Beta","Chi","Delta","Epsilon","Phi","Gamma","Eta","Iota","theta1","Kappa","Lambda","Mu","Nu","Omicron","Pi","Theta","Rho","Sigma","Tau","Upsilon","sigma1","Omega","Xi","Psi","Zeta","bracketleft","therefore","bracketright","perpendicular","underscore","radicalex","alpha","beta","chi","delta","epsilon","phi","gamma","eta","iota","phi1","kappa","lambda","mu","nu","omicron","pi","theta","rho","sigma","tau","upsilon","omega1","omega","xi","psi","zeta","braceleft","bar","braceright","similar","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Euro","Upsilon1","minute","lessequal","fraction","infinity","florin","club","diamond","heart","spade","arrowboth","arrowleft","arrowup","arrowright","arrowdown","degree","plusminus","second","greaterequal","multiply","proportional","partialdiff","bullet","divide","notequal","equivalence","approxequal","ellipsis","arrowvertex","arrowhorizex","carriagereturn","aleph","Ifraktur","Rfraktur","weierstrass","circlemultiply","circleplus","emptyset","intersection","union","propersuperset","reflexsuperset","notsubset","propersubset","reflexsubset","element","notelement","angle","gradient","registerserif","copyrightserif","trademarkserif","product","radical","dotmath","logicalnot","logicaland","logicalor","arrowdblboth","arrowdblleft","arrowdblup","arrowdblright","arrowdbldown","lozenge","angleleft","registersans","copyrightsans","trademarksans","summation","parenlefttp","parenleftex","parenleftbt","bracketlefttp","bracketleftex","bracketleftbt","bracelefttp","braceleftmid","braceleftbt","braceex","","angleright","integral","integraltp","integralex","integralbt","parenrighttp","parenrightex","parenrightbt","bracketrighttp","bracketrightex","bracketrightbt","bracerighttp","bracerightmid","bracerightbt",""];t.SymbolSetEncoding=l;const c=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","a1","a2","a202","a3","a4","a5","a119","a118","a117","a11","a12","a13","a14","a15","a16","a105","a17","a18","a19","a20","a21","a22","a23","a24","a25","a26","a27","a28","a6","a7","a8","a9","a10","a29","a30","a31","a32","a33","a34","a35","a36","a37","a38","a39","a40","a41","a42","a43","a44","a45","a46","a47","a48","a49","a50","a51","a52","a53","a54","a55","a56","a57","a58","a59","a60","a61","a62","a63","a64","a65","a66","a67","a68","a69","a70","a71","a72","a73","a74","a203","a75","a204","a76","a77","a78","a79","a81","a82","a83","a84","a97","a98","a99","a100","","a89","a90","a93","a94","a91","a92","a205","a85","a206","a86","a87","a88","a95","a96","","","","","","","","","","","","","","","","","","","","a101","a102","a103","a104","a106","a107","a108","a112","a111","a110","a109","a120","a121","a122","a123","a124","a125","a126","a127","a128","a129","a130","a131","a132","a133","a134","a135","a136","a137","a138","a139","a140","a141","a142","a143","a144","a145","a146","a147","a148","a149","a150","a151","a152","a153","a154","a155","a156","a157","a158","a159","a160","a161","a163","a164","a196","a165","a192","a166","a167","a168","a169","a170","a171","a172","a173","a162","a174","a175","a176","a177","a178","a179","a193","a180","a199","a181","a200","a182","","a201","a183","a184","a197","a185","a194","a198","a186","a195","a187","a188","a189","a190","a191",""];t.ZapfDingbatsEncoding=c},function(e,t,n){var r=n(8).getLookupTableFactory,i=r(function(e){e.A=65,e.AE=198,e.AEacute=508,e.AEmacron=482,e.AEsmall=63462,e.Aacute=193,e.Aacutesmall=63457,e.Abreve=258,e.Abreveacute=7854,e.Abrevecyrillic=1232,e.Abrevedotbelow=7862,e.Abrevegrave=7856,e.Abrevehookabove=7858,e.Abrevetilde=7860,e.Acaron=461,e.Acircle=9398,e.Acircumflex=194,e.Acircumflexacute=7844,e.Acircumflexdotbelow=7852,e.Acircumflexgrave=7846,e.Acircumflexhookabove=7848,e.Acircumflexsmall=63458,e.Acircumflextilde=7850,e.Acute=63177,e.Acutesmall=63412,e.Acyrillic=1040,e.Adblgrave=512,e.Adieresis=196,e.Adieresiscyrillic=1234,e.Adieresismacron=478,e.Adieresissmall=63460,e.Adotbelow=7840,e.Adotmacron=480,e.Agrave=192,e.Agravesmall=63456,e.Ahookabove=7842,e.Aiecyrillic=1236,e.Ainvertedbreve=514,e.Alpha=913,e.Alphatonos=902,e.Amacron=256,e.Amonospace=65313,e.Aogonek=260,e.Aring=197,e.Aringacute=506,e.Aringbelow=7680,e.Aringsmall=63461,e.Asmall=63329,e.Atilde=195,e.Atildesmall=63459,e.Aybarmenian=1329,e.B=66,e.Bcircle=9399,e.Bdotaccent=7682,e.Bdotbelow=7684,e.Becyrillic=1041,e.Benarmenian=1330,e.Beta=914,e.Bhook=385,e.Blinebelow=7686,e.Bmonospace=65314,e.Brevesmall=63220,e.Bsmall=63330,e.Btopbar=386,e.C=67,e.Caarmenian=1342,e.Cacute=262,e.Caron=63178,e.Caronsmall=63221,e.Ccaron=268,e.Ccedilla=199,e.Ccedillaacute=7688,e.Ccedillasmall=63463,e.Ccircle=9400,e.Ccircumflex=264,e.Cdot=266,e.Cdotaccent=266,e.Cedillasmall=63416,e.Chaarmenian=1353,e.Cheabkhasiancyrillic=1212,e.Checyrillic=1063,e.Chedescenderabkhasiancyrillic=1214,e.Chedescendercyrillic=1206,e.Chedieresiscyrillic=1268,e.Cheharmenian=1347,e.Chekhakassiancyrillic=1227,e.Cheverticalstrokecyrillic=1208,e.Chi=935,e.Chook=391,e.Circumflexsmall=63222,e.Cmonospace=65315,e.Coarmenian=1361,e.Csmall=63331,e.D=68,e.DZ=497,e.DZcaron=452,e.Daarmenian=1332,e.Dafrican=393,e.Dcaron=270,e.Dcedilla=7696,e.Dcircle=9401,e.Dcircumflexbelow=7698,e.Dcroat=272,e.Ddotaccent=7690,e.Ddotbelow=7692,e.Decyrillic=1044,e.Deicoptic=1006,e.Delta=8710,e.Deltagreek=916,e.Dhook=394,e.Dieresis=63179,e.DieresisAcute=63180,e.DieresisGrave=63181,e.Dieresissmall=63400,e.Digammagreek=988,e.Djecyrillic=1026,e.Dlinebelow=7694,e.Dmonospace=65316,e.Dotaccentsmall=63223,e.Dslash=272,e.Dsmall=63332,e.Dtopbar=395,e.Dz=498,e.Dzcaron=453,e.Dzeabkhasiancyrillic=1248,e.Dzecyrillic=1029,e.Dzhecyrillic=1039,e.E=69,e.Eacute=201,e.Eacutesmall=63465,e.Ebreve=276,e.Ecaron=282,e.Ecedillabreve=7708,e.Echarmenian=1333,e.Ecircle=9402,e.Ecircumflex=202,e.Ecircumflexacute=7870,e.Ecircumflexbelow=7704,e.Ecircumflexdotbelow=7878,e.Ecircumflexgrave=7872,e.Ecircumflexhookabove=7874,e.Ecircumflexsmall=63466,e.Ecircumflextilde=7876,e.Ecyrillic=1028,e.Edblgrave=516,e.Edieresis=203,e.Edieresissmall=63467,e.Edot=278,e.Edotaccent=278,e.Edotbelow=7864,e.Efcyrillic=1060,e.Egrave=200,e.Egravesmall=63464,e.Eharmenian=1335,e.Ehookabove=7866,e.Eightroman=8551,e.Einvertedbreve=518,e.Eiotifiedcyrillic=1124,e.Elcyrillic=1051,e.Elevenroman=8554,e.Emacron=274,e.Emacronacute=7702,e.Emacrongrave=7700,e.Emcyrillic=1052,e.Emonospace=65317,e.Encyrillic=1053,e.Endescendercyrillic=1186,e.Eng=330,e.Enghecyrillic=1188,e.Enhookcyrillic=1223,e.Eogonek=280,e.Eopen=400,e.Epsilon=917,e.Epsilontonos=904,e.Ercyrillic=1056,e.Ereversed=398,e.Ereversedcyrillic=1069,e.Escyrillic=1057,e.Esdescendercyrillic=1194,e.Esh=425,e.Esmall=63333,e.Eta=919,e.Etarmenian=1336,e.Etatonos=905,e.Eth=208,e.Ethsmall=63472,e.Etilde=7868,e.Etildebelow=7706,e.Euro=8364,e.Ezh=439,e.Ezhcaron=494,e.Ezhreversed=440,e.F=70,e.Fcircle=9403,e.Fdotaccent=7710,e.Feharmenian=1366,e.Feicoptic=996,e.Fhook=401,e.Fitacyrillic=1138,e.Fiveroman=8548,e.Fmonospace=65318,e.Fourroman=8547,e.Fsmall=63334,e.G=71,e.GBsquare=13191,e.Gacute=500,e.Gamma=915,e.Gammaafrican=404,e.Gangiacoptic=1002,e.Gbreve=286,e.Gcaron=486,e.Gcedilla=290,e.Gcircle=9404,e.Gcircumflex=284,e.Gcommaaccent=290,e.Gdot=288,e.Gdotaccent=288,e.Gecyrillic=1043,e.Ghadarmenian=1346,e.Ghemiddlehookcyrillic=1172,e.Ghestrokecyrillic=1170,e.Gheupturncyrillic=1168,e.Ghook=403,e.Gimarmenian=1331,e.Gjecyrillic=1027,e.Gmacron=7712,e.Gmonospace=65319,e.Grave=63182,e.Gravesmall=63328,e.Gsmall=63335,e.Gsmallhook=667,e.Gstroke=484,e.H=72,e.H18533=9679,e.H18543=9642,e.H18551=9643,e.H22073=9633,e.HPsquare=13259,e.Haabkhasiancyrillic=1192,e.Hadescendercyrillic=1202,e.Hardsigncyrillic=1066,e.Hbar=294,e.Hbrevebelow=7722,e.Hcedilla=7720,e.Hcircle=9405,e.Hcircumflex=292,e.Hdieresis=7718,e.Hdotaccent=7714,e.Hdotbelow=7716,e.Hmonospace=65320,e.Hoarmenian=1344,e.Horicoptic=1e3,e.Hsmall=63336,e.Hungarumlaut=63183,e.Hungarumlautsmall=63224,e.Hzsquare=13200,e.I=73,e.IAcyrillic=1071,e.IJ=306,e.IUcyrillic=1070,e.Iacute=205,e.Iacutesmall=63469,e.Ibreve=300,e.Icaron=463,e.Icircle=9406,e.Icircumflex=206,e.Icircumflexsmall=63470,e.Icyrillic=1030,e.Idblgrave=520,e.Idieresis=207,e.Idieresisacute=7726,e.Idieresiscyrillic=1252,e.Idieresissmall=63471,e.Idot=304,e.Idotaccent=304,e.Idotbelow=7882,e.Iebrevecyrillic=1238,e.Iecyrillic=1045,e.Ifraktur=8465,e.Igrave=204,e.Igravesmall=63468,e.Ihookabove=7880,e.Iicyrillic=1048,e.Iinvertedbreve=522,e.Iishortcyrillic=1049,e.Imacron=298,e.Imacroncyrillic=1250,e.Imonospace=65321,e.Iniarmenian=1339,e.Iocyrillic=1025,e.Iogonek=302,e.Iota=921,e.Iotaafrican=406,e.Iotadieresis=938,e.Iotatonos=906,e.Ismall=63337,e.Istroke=407,e.Itilde=296,e.Itildebelow=7724,e.Izhitsacyrillic=1140,e.Izhitsadblgravecyrillic=1142,e.J=74,e.Jaarmenian=1345,e.Jcircle=9407,e.Jcircumflex=308,e.Jecyrillic=1032,e.Jheharmenian=1355,e.Jmonospace=65322,e.Jsmall=63338,e.K=75,e.KBsquare=13189,e.KKsquare=13261,e.Kabashkircyrillic=1184,e.Kacute=7728,e.Kacyrillic=1050,e.Kadescendercyrillic=1178,e.Kahookcyrillic=1219,e.Kappa=922,e.Kastrokecyrillic=1182,e.Kaverticalstrokecyrillic=1180,e.Kcaron=488,e.Kcedilla=310,e.Kcircle=9408,e.Kcommaaccent=310,e.Kdotbelow=7730,e.Keharmenian=1364,e.Kenarmenian=1343,e.Khacyrillic=1061,e.Kheicoptic=998,e.Khook=408,e.Kjecyrillic=1036,e.Klinebelow=7732,e.Kmonospace=65323,e.Koppacyrillic=1152,e.Koppagreek=990,e.Ksicyrillic=1134,e.Ksmall=63339,e.L=76,e.LJ=455,e.LL=63167,e.Lacute=313,e.Lambda=923,e.Lcaron=317,e.Lcedilla=315,e.Lcircle=9409,e.Lcircumflexbelow=7740,e.Lcommaaccent=315,e.Ldot=319,e.Ldotaccent=319,e.Ldotbelow=7734,e.Ldotbelowmacron=7736,e.Liwnarmenian=1340,e.Lj=456,e.Ljecyrillic=1033,e.Llinebelow=7738,e.Lmonospace=65324,e.Lslash=321,e.Lslashsmall=63225,e.Lsmall=63340,e.M=77,e.MBsquare=13190,e.Macron=63184,e.Macronsmall=63407,e.Macute=7742,e.Mcircle=9410,e.Mdotaccent=7744,e.Mdotbelow=7746,e.Menarmenian=1348,e.Mmonospace=65325,e.Msmall=63341,e.Mturned=412,e.Mu=924,e.N=78,e.NJ=458,e.Nacute=323,e.Ncaron=327,e.Ncedilla=325,e.Ncircle=9411,e.Ncircumflexbelow=7754,e.Ncommaaccent=325,e.Ndotaccent=7748,e.Ndotbelow=7750,e.Nhookleft=413,e.Nineroman=8552,e.Nj=459,e.Njecyrillic=1034,e.Nlinebelow=7752,e.Nmonospace=65326,e.Nowarmenian=1350,e.Nsmall=63342,e.Ntilde=209,e.Ntildesmall=63473,e.Nu=925,e.O=79,e.OE=338,e.OEsmall=63226,e.Oacute=211,e.Oacutesmall=63475,e.Obarredcyrillic=1256,e.Obarreddieresiscyrillic=1258,e.Obreve=334,e.Ocaron=465,e.Ocenteredtilde=415,e.Ocircle=9412,e.Ocircumflex=212,e.Ocircumflexacute=7888,e.Ocircumflexdotbelow=7896,e.Ocircumflexgrave=7890,e.Ocircumflexhookabove=7892,e.Ocircumflexsmall=63476,e.Ocircumflextilde=7894,e.Ocyrillic=1054,e.Odblacute=336,e.Odblgrave=524,e.Odieresis=214,e.Odieresiscyrillic=1254,e.Odieresissmall=63478,e.Odotbelow=7884,e.Ogoneksmall=63227,e.Ograve=210,e.Ogravesmall=63474,e.Oharmenian=1365,e.Ohm=8486,e.Ohookabove=7886,e.Ohorn=416,e.Ohornacute=7898,e.Ohorndotbelow=7906,e.Ohorngrave=7900,e.Ohornhookabove=7902,e.Ohorntilde=7904,e.Ohungarumlaut=336,e.Oi=418,e.Oinvertedbreve=526,e.Omacron=332,e.Omacronacute=7762,e.Omacrongrave=7760,e.Omega=8486,e.Omegacyrillic=1120,e.Omegagreek=937,e.Omegaroundcyrillic=1146,e.Omegatitlocyrillic=1148,e.Omegatonos=911,e.Omicron=927,e.Omicrontonos=908,e.Omonospace=65327,e.Oneroman=8544,e.Oogonek=490,e.Oogonekmacron=492,e.Oopen=390,e.Oslash=216,e.Oslashacute=510,e.Oslashsmall=63480,e.Osmall=63343,e.Ostrokeacute=510,e.Otcyrillic=1150,e.Otilde=213,e.Otildeacute=7756,e.Otildedieresis=7758,e.Otildesmall=63477,e.P=80,e.Pacute=7764,e.Pcircle=9413,e.Pdotaccent=7766,e.Pecyrillic=1055,e.Peharmenian=1354,e.Pemiddlehookcyrillic=1190,e.Phi=934,e.Phook=420,e.Pi=928,e.Piwrarmenian=1363,e.Pmonospace=65328,e.Psi=936,e.Psicyrillic=1136,e.Psmall=63344,e.Q=81,e.Qcircle=9414,e.Qmonospace=65329,e.Qsmall=63345,e.R=82,e.Raarmenian=1356,e.Racute=340,e.Rcaron=344,e.Rcedilla=342,e.Rcircle=9415,e.Rcommaaccent=342,e.Rdblgrave=528,e.Rdotaccent=7768,e.Rdotbelow=7770,e.Rdotbelowmacron=7772,e.Reharmenian=1360,e.Rfraktur=8476,e.Rho=929,e.Ringsmall=63228,e.Rinvertedbreve=530,e.Rlinebelow=7774,e.Rmonospace=65330,e.Rsmall=63346,e.Rsmallinverted=641,e.Rsmallinvertedsuperior=694,e.S=83,e.SF010000=9484,e.SF020000=9492,e.SF030000=9488,e.SF040000=9496,e.SF050000=9532,e.SF060000=9516,e.SF070000=9524,e.SF080000=9500,e.SF090000=9508,e.SF100000=9472,e.SF110000=9474,e.SF190000=9569,e.SF200000=9570,e.SF210000=9558,e.SF220000=9557,e.SF230000=9571,e.SF240000=9553,e.SF250000=9559,e.SF260000=9565,e.SF270000=9564,e.SF280000=9563,e.SF360000=9566,e.SF370000=9567,e.SF380000=9562,e.SF390000=9556,e.SF400000=9577,e.SF410000=9574,e.SF420000=9568,e.SF430000=9552,e.SF440000=9580,e.SF450000=9575,e.SF460000=9576,e.SF470000=9572,e.SF480000=9573,e.SF490000=9561,e.SF500000=9560,e.SF510000=9554,e.SF520000=9555,e.SF530000=9579,e.SF540000=9578,e.Sacute=346,e.Sacutedotaccent=7780,e.Sampigreek=992,e.Scaron=352,e.Scarondotaccent=7782,e.Scaronsmall=63229,e.Scedilla=350,e.Schwa=399,e.Schwacyrillic=1240,e.Schwadieresiscyrillic=1242,e.Scircle=9416,e.Scircumflex=348,e.Scommaaccent=536,e.Sdotaccent=7776,e.Sdotbelow=7778,e.Sdotbelowdotaccent=7784,e.Seharmenian=1357,e.Sevenroman=8550,e.Shaarmenian=1351,e.Shacyrillic=1064,e.Shchacyrillic=1065,e.Sheicoptic=994,e.Shhacyrillic=1210,e.Shimacoptic=1004,e.Sigma=931,e.Sixroman=8549,e.Smonospace=65331,e.Softsigncyrillic=1068,e.Ssmall=63347,e.Stigmagreek=986,e.T=84,e.Tau=932,e.Tbar=358,e.Tcaron=356,e.Tcedilla=354,e.Tcircle=9417,e.Tcircumflexbelow=7792,e.Tcommaaccent=354,e.Tdotaccent=7786,e.Tdotbelow=7788,e.Tecyrillic=1058,e.Tedescendercyrillic=1196,e.Tenroman=8553,e.Tetsecyrillic=1204,e.Theta=920,e.Thook=428,e.Thorn=222,e.Thornsmall=63486,e.Threeroman=8546,e.Tildesmall=63230,e.Tiwnarmenian=1359,e.Tlinebelow=7790,e.Tmonospace=65332,e.Toarmenian=1337,e.Tonefive=444,e.Tonesix=388,e.Tonetwo=423,e.Tretroflexhook=430,e.Tsecyrillic=1062,e.Tshecyrillic=1035,e.Tsmall=63348,e.Twelveroman=8555,e.Tworoman=8545,e.U=85,e.Uacute=218,e.Uacutesmall=63482,e.Ubreve=364,e.Ucaron=467,e.Ucircle=9418,e.Ucircumflex=219,e.Ucircumflexbelow=7798,e.Ucircumflexsmall=63483,e.Ucyrillic=1059,e.Udblacute=368,e.Udblgrave=532,e.Udieresis=220,e.Udieresisacute=471,e.Udieresisbelow=7794,e.Udieresiscaron=473,e.Udieresiscyrillic=1264,e.Udieresisgrave=475,e.Udieresismacron=469,e.Udieresissmall=63484,e.Udotbelow=7908,e.Ugrave=217,e.Ugravesmall=63481,e.Uhookabove=7910,e.Uhorn=431,e.Uhornacute=7912,e.Uhorndotbelow=7920,e.Uhorngrave=7914,e.Uhornhookabove=7916,e.Uhorntilde=7918,e.Uhungarumlaut=368,e.Uhungarumlautcyrillic=1266,e.Uinvertedbreve=534,e.Ukcyrillic=1144,e.Umacron=362,e.Umacroncyrillic=1262,e.Umacrondieresis=7802,e.Umonospace=65333,e.Uogonek=370,e.Upsilon=933,e.Upsilon1=978,e.Upsilonacutehooksymbolgreek=979,e.Upsilonafrican=433,e.Upsilondieresis=939,e.Upsilondieresishooksymbolgreek=980,e.Upsilonhooksymbol=978,e.Upsilontonos=910,e.Uring=366,e.Ushortcyrillic=1038,e.Usmall=63349,e.Ustraightcyrillic=1198,e.Ustraightstrokecyrillic=1200,e.Utilde=360,e.Utildeacute=7800,e.Utildebelow=7796,e.V=86,e.Vcircle=9419,e.Vdotbelow=7806,e.Vecyrillic=1042,e.Vewarmenian=1358,e.Vhook=434,e.Vmonospace=65334,e.Voarmenian=1352,e.Vsmall=63350,e.Vtilde=7804,e.W=87,e.Wacute=7810,e.Wcircle=9420,e.Wcircumflex=372,e.Wdieresis=7812,e.Wdotaccent=7814,e.Wdotbelow=7816,e.Wgrave=7808,e.Wmonospace=65335,e.Wsmall=63351,e.X=88,e.Xcircle=9421,e.Xdieresis=7820,e.Xdotaccent=7818,e.Xeharmenian=1341,e.Xi=926,e.Xmonospace=65336,e.Xsmall=63352,e.Y=89,e.Yacute=221,e.Yacutesmall=63485,e.Yatcyrillic=1122,e.Ycircle=9422,e.Ycircumflex=374,e.Ydieresis=376,e.Ydieresissmall=63487,e.Ydotaccent=7822,e.Ydotbelow=7924,e.Yericyrillic=1067,e.Yerudieresiscyrillic=1272,e.Ygrave=7922,e.Yhook=435,e.Yhookabove=7926,e.Yiarmenian=1349,e.Yicyrillic=1031,e.Yiwnarmenian=1362,e.Ymonospace=65337,e.Ysmall=63353,e.Ytilde=7928,e.Yusbigcyrillic=1130,e.Yusbigiotifiedcyrillic=1132,e.Yuslittlecyrillic=1126,e.Yuslittleiotifiedcyrillic=1128,e.Z=90,e.Zaarmenian=1334,e.Zacute=377,e.Zcaron=381,e.Zcaronsmall=63231,e.Zcircle=9423,e.Zcircumflex=7824,e.Zdot=379,e.Zdotaccent=379,e.Zdotbelow=7826,e.Zecyrillic=1047,e.Zedescendercyrillic=1176,e.Zedieresiscyrillic=1246,e.Zeta=918,e.Zhearmenian=1338,e.Zhebrevecyrillic=1217,e.Zhecyrillic=1046,e.Zhedescendercyrillic=1174,e.Zhedieresiscyrillic=1244,e.Zlinebelow=7828,e.Zmonospace=65338,e.Zsmall=63354,e.Zstroke=437,e.a=97,e.aabengali=2438,e.aacute=225,e.aadeva=2310,e.aagujarati=2694,e.aagurmukhi=2566,e.aamatragurmukhi=2622,e.aarusquare=13059,e.aavowelsignbengali=2494,e.aavowelsigndeva=2366,e.aavowelsigngujarati=2750,e.abbreviationmarkarmenian=1375,e.abbreviationsigndeva=2416,e.abengali=2437,e.abopomofo=12570,e.abreve=259,e.abreveacute=7855,e.abrevecyrillic=1233,e.abrevedotbelow=7863,e.abrevegrave=7857,e.abrevehookabove=7859,e.abrevetilde=7861,e.acaron=462,e.acircle=9424,e.acircumflex=226,e.acircumflexacute=7845,e.acircumflexdotbelow=7853,e.acircumflexgrave=7847,e.acircumflexhookabove=7849,e.acircumflextilde=7851,e.acute=180,e.acutebelowcmb=791,e.acutecmb=769,e.acutecomb=769,e.acutedeva=2388,e.acutelowmod=719,e.acutetonecmb=833,e.acyrillic=1072,e.adblgrave=513,e.addakgurmukhi=2673,e.adeva=2309,e.adieresis=228,e.adieresiscyrillic=1235,e.adieresismacron=479,e.adotbelow=7841,e.adotmacron=481,e.ae=230,e.aeacute=509,e.aekorean=12624,e.aemacron=483,e.afii00208=8213,e.afii08941=8356,e.afii10017=1040,e.afii10018=1041,e.afii10019=1042,e.afii10020=1043,e.afii10021=1044,e.afii10022=1045,e.afii10023=1025,e.afii10024=1046,e.afii10025=1047,e.afii10026=1048,e.afii10027=1049,e.afii10028=1050,e.afii10029=1051,e.afii10030=1052;e.afii10031=1053,e.afii10032=1054,e.afii10033=1055,e.afii10034=1056,e.afii10035=1057,e.afii10036=1058,e.afii10037=1059,e.afii10038=1060,e.afii10039=1061,e.afii10040=1062,e.afii10041=1063,e.afii10042=1064,e.afii10043=1065,e.afii10044=1066,e.afii10045=1067,e.afii10046=1068,e.afii10047=1069,e.afii10048=1070,e.afii10049=1071,e.afii10050=1168,e.afii10051=1026,e.afii10052=1027,e.afii10053=1028,e.afii10054=1029,e.afii10055=1030,e.afii10056=1031,e.afii10057=1032,e.afii10058=1033,e.afii10059=1034,e.afii10060=1035,e.afii10061=1036,e.afii10062=1038,e.afii10063=63172,e.afii10064=63173,e.afii10065=1072,e.afii10066=1073,e.afii10067=1074,e.afii10068=1075,e.afii10069=1076,e.afii10070=1077,e.afii10071=1105,e.afii10072=1078,e.afii10073=1079,e.afii10074=1080,e.afii10075=1081,e.afii10076=1082,e.afii10077=1083,e.afii10078=1084,e.afii10079=1085,e.afii10080=1086,e.afii10081=1087,e.afii10082=1088,e.afii10083=1089,e.afii10084=1090,e.afii10085=1091,e.afii10086=1092,e.afii10087=1093,e.afii10088=1094,e.afii10089=1095,e.afii10090=1096,e.afii10091=1097,e.afii10092=1098,e.afii10093=1099,e.afii10094=1100,e.afii10095=1101,e.afii10096=1102,e.afii10097=1103,e.afii10098=1169,e.afii10099=1106,e.afii10100=1107,e.afii10101=1108,e.afii10102=1109,e.afii10103=1110,e.afii10104=1111,e.afii10105=1112,e.afii10106=1113,e.afii10107=1114,e.afii10108=1115,e.afii10109=1116,e.afii10110=1118,e.afii10145=1039,e.afii10146=1122,e.afii10147=1138,e.afii10148=1140,e.afii10192=63174,e.afii10193=1119,e.afii10194=1123,e.afii10195=1139,e.afii10196=1141,e.afii10831=63175,e.afii10832=63176,e.afii10846=1241,e.afii299=8206,e.afii300=8207,e.afii301=8205,e.afii57381=1642,e.afii57388=1548,e.afii57392=1632,e.afii57393=1633,e.afii57394=1634,e.afii57395=1635,e.afii57396=1636,e.afii57397=1637,e.afii57398=1638,e.afii57399=1639,e.afii57400=1640,e.afii57401=1641,e.afii57403=1563,e.afii57407=1567,e.afii57409=1569,e.afii57410=1570,e.afii57411=1571,e.afii57412=1572,e.afii57413=1573,e.afii57414=1574,e.afii57415=1575,e.afii57416=1576,e.afii57417=1577,e.afii57418=1578,e.afii57419=1579,e.afii57420=1580,e.afii57421=1581,e.afii57422=1582,e.afii57423=1583,e.afii57424=1584,e.afii57425=1585,e.afii57426=1586,e.afii57427=1587,e.afii57428=1588,e.afii57429=1589,e.afii57430=1590,e.afii57431=1591,e.afii57432=1592,e.afii57433=1593,e.afii57434=1594,e.afii57440=1600,e.afii57441=1601,e.afii57442=1602,e.afii57443=1603,e.afii57444=1604,e.afii57445=1605,e.afii57446=1606,e.afii57448=1608,e.afii57449=1609,e.afii57450=1610,e.afii57451=1611,e.afii57452=1612,e.afii57453=1613,e.afii57454=1614,e.afii57455=1615,e.afii57456=1616,e.afii57457=1617,e.afii57458=1618,e.afii57470=1607,e.afii57505=1700,e.afii57506=1662,e.afii57507=1670,e.afii57508=1688,e.afii57509=1711,e.afii57511=1657,e.afii57512=1672,e.afii57513=1681,e.afii57514=1722,e.afii57519=1746,e.afii57534=1749,e.afii57636=8362,e.afii57645=1470,e.afii57658=1475,e.afii57664=1488,e.afii57665=1489,e.afii57666=1490,e.afii57667=1491,e.afii57668=1492,e.afii57669=1493,e.afii57670=1494,e.afii57671=1495,e.afii57672=1496,e.afii57673=1497,e.afii57674=1498,e.afii57675=1499,e.afii57676=1500,e.afii57677=1501,e.afii57678=1502,e.afii57679=1503,e.afii57680=1504,e.afii57681=1505,e.afii57682=1506,e.afii57683=1507,e.afii57684=1508,e.afii57685=1509,e.afii57686=1510,e.afii57687=1511,e.afii57688=1512,e.afii57689=1513,e.afii57690=1514,e.afii57694=64298,e.afii57695=64299,e.afii57700=64331,e.afii57705=64287,e.afii57716=1520,e.afii57717=1521,e.afii57718=1522,e.afii57723=64309,e.afii57793=1460,e.afii57794=1461,e.afii57795=1462,e.afii57796=1467,e.afii57797=1464,e.afii57798=1463,e.afii57799=1456,e.afii57800=1458,e.afii57801=1457,e.afii57802=1459,e.afii57803=1474,e.afii57804=1473,e.afii57806=1465,e.afii57807=1468,e.afii57839=1469,e.afii57841=1471,e.afii57842=1472,e.afii57929=700,e.afii61248=8453,e.afii61289=8467,e.afii61352=8470,e.afii61573=8236,e.afii61574=8237,e.afii61575=8238,e.afii61664=8204,e.afii63167=1645,e.afii64937=701,e.agrave=224,e.agujarati=2693,e.agurmukhi=2565,e.ahiragana=12354,e.ahookabove=7843,e.aibengali=2448,e.aibopomofo=12574,e.aideva=2320,e.aiecyrillic=1237,e.aigujarati=2704,e.aigurmukhi=2576,e.aimatragurmukhi=2632,e.ainarabic=1593,e.ainfinalarabic=65226,e.aininitialarabic=65227,e.ainmedialarabic=65228,e.ainvertedbreve=515,e.aivowelsignbengali=2504,e.aivowelsigndeva=2376,e.aivowelsigngujarati=2760,e.akatakana=12450,e.akatakanahalfwidth=65393,e.akorean=12623,e.alef=1488,e.alefarabic=1575,e.alefdageshhebrew=64304,e.aleffinalarabic=65166,e.alefhamzaabovearabic=1571,e.alefhamzaabovefinalarabic=65156,e.alefhamzabelowarabic=1573,e.alefhamzabelowfinalarabic=65160,e.alefhebrew=1488,e.aleflamedhebrew=64335,e.alefmaddaabovearabic=1570,e.alefmaddaabovefinalarabic=65154,e.alefmaksuraarabic=1609,e.alefmaksurafinalarabic=65264,e.alefmaksurainitialarabic=65267,e.alefmaksuramedialarabic=65268,e.alefpatahhebrew=64302,e.alefqamatshebrew=64303,e.aleph=8501,e.allequal=8780,e.alpha=945,e.alphatonos=940,e.amacron=257,e.amonospace=65345,e.ampersand=38,e.ampersandmonospace=65286,e.ampersandsmall=63270,e.amsquare=13250,e.anbopomofo=12578,e.angbopomofo=12580,e.angbracketleft=12296,e.angbracketright=12297,e.angkhankhuthai=3674,e.angle=8736,e.anglebracketleft=12296,e.anglebracketleftvertical=65087,e.anglebracketright=12297,e.anglebracketrightvertical=65088,e.angleleft=9001,e.angleright=9002,e.angstrom=8491,e.anoteleia=903,e.anudattadeva=2386,e.anusvarabengali=2434,e.anusvaradeva=2306,e.anusvaragujarati=2690,e.aogonek=261,e.apaatosquare=13056,e.aparen=9372,e.apostrophearmenian=1370,e.apostrophemod=700,e.apple=63743,e.approaches=8784,e.approxequal=8776,e.approxequalorimage=8786,e.approximatelyequal=8773,e.araeaekorean=12686,e.araeakorean=12685,e.arc=8978,e.arighthalfring=7834,e.aring=229,e.aringacute=507,e.aringbelow=7681,e.arrowboth=8596,e.arrowdashdown=8675,e.arrowdashleft=8672,e.arrowdashright=8674,e.arrowdashup=8673,e.arrowdblboth=8660,e.arrowdbldown=8659,e.arrowdblleft=8656,e.arrowdblright=8658,e.arrowdblup=8657,e.arrowdown=8595,e.arrowdownleft=8601,e.arrowdownright=8600,e.arrowdownwhite=8681,e.arrowheaddownmod=709,e.arrowheadleftmod=706,e.arrowheadrightmod=707,e.arrowheadupmod=708,e.arrowhorizex=63719,e.arrowleft=8592,e.arrowleftdbl=8656,e.arrowleftdblstroke=8653,e.arrowleftoverright=8646,e.arrowleftwhite=8678,e.arrowright=8594,e.arrowrightdblstroke=8655,e.arrowrightheavy=10142,e.arrowrightoverleft=8644,e.arrowrightwhite=8680,e.arrowtableft=8676,e.arrowtabright=8677,e.arrowup=8593,e.arrowupdn=8597,e.arrowupdnbse=8616,e.arrowupdownbase=8616,e.arrowupleft=8598,e.arrowupleftofdown=8645,e.arrowupright=8599,e.arrowupwhite=8679,e.arrowvertex=63718,e.asciicircum=94,e.asciicircummonospace=65342,e.asciitilde=126,e.asciitildemonospace=65374,e.ascript=593,e.ascriptturned=594,e.asmallhiragana=12353,e.asmallkatakana=12449,e.asmallkatakanahalfwidth=65383,e.asterisk=42,e.asteriskaltonearabic=1645,e.asteriskarabic=1645,e.asteriskmath=8727,e.asteriskmonospace=65290,e.asterisksmall=65121,e.asterism=8258,e.asuperior=63209,e.asymptoticallyequal=8771,e.at=64,e.atilde=227,e.atmonospace=65312,e.atsmall=65131,e.aturned=592,e.aubengali=2452,e.aubopomofo=12576,e.audeva=2324,e.augujarati=2708,e.augurmukhi=2580,e.aulengthmarkbengali=2519,e.aumatragurmukhi=2636,e.auvowelsignbengali=2508,e.auvowelsigndeva=2380,e.auvowelsigngujarati=2764,e.avagrahadeva=2365,e.aybarmenian=1377,e.ayin=1506,e.ayinaltonehebrew=64288,e.ayinhebrew=1506,e.b=98,e.babengali=2476,e.backslash=92,e.backslashmonospace=65340,e.badeva=2348,e.bagujarati=2732,e.bagurmukhi=2604,e.bahiragana=12400,e.bahtthai=3647,e.bakatakana=12496,e.bar=124,e.barmonospace=65372,e.bbopomofo=12549,e.bcircle=9425,e.bdotaccent=7683,e.bdotbelow=7685,e.beamedsixteenthnotes=9836,e.because=8757,e.becyrillic=1073,e.beharabic=1576,e.behfinalarabic=65168,e.behinitialarabic=65169,e.behiragana=12409,e.behmedialarabic=65170,e.behmeeminitialarabic=64671,e.behmeemisolatedarabic=64520,e.behnoonfinalarabic=64621,e.bekatakana=12505,e.benarmenian=1378,e.bet=1489,e.beta=946,e.betasymbolgreek=976,e.betdagesh=64305,e.betdageshhebrew=64305,e.bethebrew=1489,e.betrafehebrew=64332,e.bhabengali=2477,e.bhadeva=2349,e.bhagujarati=2733,e.bhagurmukhi=2605,e.bhook=595,e.bihiragana=12403,e.bikatakana=12499,e.bilabialclick=664,e.bindigurmukhi=2562,e.birusquare=13105,e.blackcircle=9679,e.blackdiamond=9670,e.blackdownpointingtriangle=9660,e.blackleftpointingpointer=9668,e.blackleftpointingtriangle=9664,e.blacklenticularbracketleft=12304,e.blacklenticularbracketleftvertical=65083,e.blacklenticularbracketright=12305,e.blacklenticularbracketrightvertical=65084,e.blacklowerlefttriangle=9699,e.blacklowerrighttriangle=9698,e.blackrectangle=9644,e.blackrightpointingpointer=9658,e.blackrightpointingtriangle=9654,e.blacksmallsquare=9642,e.blacksmilingface=9787,e.blacksquare=9632,e.blackstar=9733,e.blackupperlefttriangle=9700,e.blackupperrighttriangle=9701,e.blackuppointingsmalltriangle=9652,e.blackuppointingtriangle=9650,e.blank=9251,e.blinebelow=7687,e.block=9608,e.bmonospace=65346,e.bobaimaithai=3610,e.bohiragana=12412,e.bokatakana=12508,e.bparen=9373,e.bqsquare=13251,e.braceex=63732,e.braceleft=123,e.braceleftbt=63731,e.braceleftmid=63730,e.braceleftmonospace=65371,e.braceleftsmall=65115,e.bracelefttp=63729,e.braceleftvertical=65079,e.braceright=125,e.bracerightbt=63742,e.bracerightmid=63741,e.bracerightmonospace=65373,e.bracerightsmall=65116,e.bracerighttp=63740,e.bracerightvertical=65080,e.bracketleft=91,e.bracketleftbt=63728,e.bracketleftex=63727,e.bracketleftmonospace=65339,e.bracketlefttp=63726,e.bracketright=93,e.bracketrightbt=63739,e.bracketrightex=63738,e.bracketrightmonospace=65341,e.bracketrighttp=63737,e.breve=728,e.brevebelowcmb=814,e.brevecmb=774,e.breveinvertedbelowcmb=815,e.breveinvertedcmb=785,e.breveinverteddoublecmb=865,e.bridgebelowcmb=810,e.bridgeinvertedbelowcmb=826,e.brokenbar=166,e.bstroke=384,e.bsuperior=63210,e.btopbar=387,e.buhiragana=12406,e.bukatakana=12502,e.bullet=8226,e.bulletinverse=9688,e.bulletoperator=8729,e.bullseye=9678,e.c=99,e.caarmenian=1390,e.cabengali=2458,e.cacute=263,e.cadeva=2330,e.cagujarati=2714,e.cagurmukhi=2586,e.calsquare=13192,e.candrabindubengali=2433,e.candrabinducmb=784,e.candrabindudeva=2305,e.candrabindugujarati=2689,e.capslock=8682,e.careof=8453,e.caron=711,e.caronbelowcmb=812,e.caroncmb=780,e.carriagereturn=8629,e.cbopomofo=12568,e.ccaron=269,e.ccedilla=231,e.ccedillaacute=7689,e.ccircle=9426,e.ccircumflex=265,e.ccurl=597,e.cdot=267,e.cdotaccent=267,e.cdsquare=13253,e.cedilla=184,e.cedillacmb=807,e.cent=162,e.centigrade=8451,e.centinferior=63199,e.centmonospace=65504,e.centoldstyle=63394,e.centsuperior=63200,e.chaarmenian=1401,e.chabengali=2459,e.chadeva=2331,e.chagujarati=2715,e.chagurmukhi=2587,e.chbopomofo=12564,e.cheabkhasiancyrillic=1213,e.checkmark=10003,e.checyrillic=1095,e.chedescenderabkhasiancyrillic=1215,e.chedescendercyrillic=1207,e.chedieresiscyrillic=1269,e.cheharmenian=1395,e.chekhakassiancyrillic=1228,e.cheverticalstrokecyrillic=1209,e.chi=967,e.chieuchacirclekorean=12919,e.chieuchaparenkorean=12823,e.chieuchcirclekorean=12905,e.chieuchkorean=12618,e.chieuchparenkorean=12809,e.chochangthai=3594,e.chochanthai=3592,e.chochingthai=3593,e.chochoethai=3596,e.chook=392,e.cieucacirclekorean=12918,e.cieucaparenkorean=12822,e.cieuccirclekorean=12904,e.cieuckorean=12616,e.cieucparenkorean=12808,e.cieucuparenkorean=12828,e.circle=9675,e.circlecopyrt=169,e.circlemultiply=8855,e.circleot=8857,e.circleplus=8853,e.circlepostalmark=12342,e.circlewithlefthalfblack=9680,e.circlewithrighthalfblack=9681,e.circumflex=710,e.circumflexbelowcmb=813,e.circumflexcmb=770,e.clear=8999,e.clickalveolar=450,e.clickdental=448,e.clicklateral=449,e.clickretroflex=451,e.club=9827,e.clubsuitblack=9827,e.clubsuitwhite=9831,e.cmcubedsquare=13220,e.cmonospace=65347,e.cmsquaredsquare=13216,e.coarmenian=1409,e.colon=58,e.colonmonetary=8353,e.colonmonospace=65306,e.colonsign=8353,e.colonsmall=65109,e.colontriangularhalfmod=721,e.colontriangularmod=720,e.comma=44,e.commaabovecmb=787,e.commaaboverightcmb=789,e.commaaccent=63171,e.commaarabic=1548,e.commaarmenian=1373,e.commainferior=63201,e.commamonospace=65292,e.commareversedabovecmb=788,e.commareversedmod=701,e.commasmall=65104,e.commasuperior=63202,e.commaturnedabovecmb=786,e.commaturnedmod=699,e.compass=9788,e.congruent=8773,e.contourintegral=8750,e.control=8963,e.controlACK=6,e.controlBEL=7,e.controlBS=8,e.controlCAN=24,e.controlCR=13,e.controlDC1=17,e.controlDC2=18,e.controlDC3=19,e.controlDC4=20,e.controlDEL=127,e.controlDLE=16,e.controlEM=25,e.controlENQ=5,e.controlEOT=4,e.controlESC=27,e.controlETB=23,e.controlETX=3,e.controlFF=12,e.controlFS=28,e.controlGS=29,e.controlHT=9,e.controlLF=10,e.controlNAK=21,e.controlNULL=0,e.controlRS=30,e.controlSI=15,e.controlSO=14,e.controlSOT=2,e.controlSTX=1,e.controlSUB=26,e.controlSYN=22,e.controlUS=31,e.controlVT=11,e.copyright=169,e.copyrightsans=63721,e.copyrightserif=63193,e.cornerbracketleft=12300,e.cornerbracketlefthalfwidth=65378,e.cornerbracketleftvertical=65089,e.cornerbracketright=12301,e.cornerbracketrighthalfwidth=65379,e.cornerbracketrightvertical=65090,e.corporationsquare=13183,e.cosquare=13255,e.coverkgsquare=13254,e.cparen=9374,e.cruzeiro=8354,e.cstretched=663,e.curlyand=8911,e.curlyor=8910,e.currency=164,e.cyrBreve=63185,e.cyrFlex=63186,e.cyrbreve=63188,e.cyrflex=63189,e.d=100,e.daarmenian=1380,e.dabengali=2470,e.dadarabic=1590,e.dadeva=2342,e.dadfinalarabic=65214,e.dadinitialarabic=65215,e.dadmedialarabic=65216,e.dagesh=1468,e.dageshhebrew=1468,e.dagger=8224,e.daggerdbl=8225,e.dagujarati=2726,e.dagurmukhi=2598,e.dahiragana=12384,e.dakatakana=12480,e.dalarabic=1583,e.dalet=1491,e.daletdagesh=64307,e.daletdageshhebrew=64307,e.dalethebrew=1491,e.dalfinalarabic=65194,e.dammaarabic=1615,e.dammalowarabic=1615,e.dammatanaltonearabic=1612,e.dammatanarabic=1612,e.danda=2404,e.dargahebrew=1447,e.dargalefthebrew=1447,e.dasiapneumatacyrilliccmb=1157,e.dblGrave=63187,e.dblanglebracketleft=12298,e.dblanglebracketleftvertical=65085,e.dblanglebracketright=12299,e.dblanglebracketrightvertical=65086,e.dblarchinvertedbelowcmb=811,e.dblarrowleft=8660,e.dblarrowright=8658,e.dbldanda=2405,e.dblgrave=63190,e.dblgravecmb=783,e.dblintegral=8748,e.dbllowline=8215,e.dbllowlinecmb=819,e.dbloverlinecmb=831,e.dblprimemod=698,e.dblverticalbar=8214,e.dblverticallineabovecmb=782,e.dbopomofo=12553,e.dbsquare=13256,e.dcaron=271,e.dcedilla=7697,e.dcircle=9427,e.dcircumflexbelow=7699,e.dcroat=273,e.ddabengali=2465,e.ddadeva=2337,e.ddagujarati=2721,e.ddagurmukhi=2593,e.ddalarabic=1672,e.ddalfinalarabic=64393,e.dddhadeva=2396,e.ddhabengali=2466,e.ddhadeva=2338,e.ddhagujarati=2722,e.ddhagurmukhi=2594,e.ddotaccent=7691,e.ddotbelow=7693,e.decimalseparatorarabic=1643,e.decimalseparatorpersian=1643,e.decyrillic=1076,e.degree=176,e.dehihebrew=1453,e.dehiragana=12391,e.deicoptic=1007,e.dekatakana=12487,e.deleteleft=9003,e.deleteright=8998,e.delta=948,e.deltaturned=397,e.denominatorminusonenumeratorbengali=2552,e.dezh=676,e.dhabengali=2471,e.dhadeva=2343,e.dhagujarati=2727,e.dhagurmukhi=2599,e.dhook=599,e.dialytikatonos=901,e.dialytikatonoscmb=836,e.diamond=9830,e.diamondsuitwhite=9826,e.dieresis=168,e.dieresisacute=63191,e.dieresisbelowcmb=804,e.dieresiscmb=776,e.dieresisgrave=63192,e.dieresistonos=901,e.dihiragana=12386,e.dikatakana=12482,e.dittomark=12291,e.divide=247,e.divides=8739,e.divisionslash=8725,e.djecyrillic=1106,e.dkshade=9619,e.dlinebelow=7695,e.dlsquare=13207,e.dmacron=273,e.dmonospace=65348,e.dnblock=9604,e.dochadathai=3598,e.dodekthai=3604,e.dohiragana=12393,e.dokatakana=12489,e.dollar=36;e.dollarinferior=63203,e.dollarmonospace=65284,e.dollaroldstyle=63268,e.dollarsmall=65129,e.dollarsuperior=63204,e.dong=8363,e.dorusquare=13094,e.dotaccent=729,e.dotaccentcmb=775,e.dotbelowcmb=803,e.dotbelowcomb=803,e.dotkatakana=12539,e.dotlessi=305,e.dotlessj=63166,e.dotlessjstrokehook=644,e.dotmath=8901,e.dottedcircle=9676,e.doubleyodpatah=64287,e.doubleyodpatahhebrew=64287,e.downtackbelowcmb=798,e.downtackmod=725,e.dparen=9375,e.dsuperior=63211,e.dtail=598,e.dtopbar=396,e.duhiragana=12389,e.dukatakana=12485,e.dz=499,e.dzaltone=675,e.dzcaron=454,e.dzcurl=677,e.dzeabkhasiancyrillic=1249,e.dzecyrillic=1109,e.dzhecyrillic=1119,e.e=101,e.eacute=233,e.earth=9793,e.ebengali=2447,e.ebopomofo=12572,e.ebreve=277,e.ecandradeva=2317,e.ecandragujarati=2701,e.ecandravowelsigndeva=2373,e.ecandravowelsigngujarati=2757,e.ecaron=283,e.ecedillabreve=7709,e.echarmenian=1381,e.echyiwnarmenian=1415,e.ecircle=9428,e.ecircumflex=234,e.ecircumflexacute=7871,e.ecircumflexbelow=7705,e.ecircumflexdotbelow=7879,e.ecircumflexgrave=7873,e.ecircumflexhookabove=7875,e.ecircumflextilde=7877,e.ecyrillic=1108,e.edblgrave=517,e.edeva=2319,e.edieresis=235,e.edot=279,e.edotaccent=279,e.edotbelow=7865,e.eegurmukhi=2575,e.eematragurmukhi=2631,e.efcyrillic=1092,e.egrave=232,e.egujarati=2703,e.eharmenian=1383,e.ehbopomofo=12573,e.ehiragana=12360,e.ehookabove=7867,e.eibopomofo=12575,e.eight=56,e.eightarabic=1640,e.eightbengali=2542,e.eightcircle=9319,e.eightcircleinversesansserif=10129,e.eightdeva=2414,e.eighteencircle=9329,e.eighteenparen=9349,e.eighteenperiod=9369,e.eightgujarati=2798,e.eightgurmukhi=2670,e.eighthackarabic=1640,e.eighthangzhou=12328,e.eighthnotebeamed=9835,e.eightideographicparen=12839,e.eightinferior=8328,e.eightmonospace=65304,e.eightoldstyle=63288,e.eightparen=9339,e.eightperiod=9359,e.eightpersian=1784,e.eightroman=8567,e.eightsuperior=8312,e.eightthai=3672,e.einvertedbreve=519,e.eiotifiedcyrillic=1125,e.ekatakana=12456,e.ekatakanahalfwidth=65396,e.ekonkargurmukhi=2676,e.ekorean=12628,e.elcyrillic=1083,e.element=8712,e.elevencircle=9322,e.elevenparen=9342,e.elevenperiod=9362,e.elevenroman=8570,e.ellipsis=8230,e.ellipsisvertical=8942,e.emacron=275,e.emacronacute=7703,e.emacrongrave=7701,e.emcyrillic=1084,e.emdash=8212,e.emdashvertical=65073,e.emonospace=65349,e.emphasismarkarmenian=1371,e.emptyset=8709,e.enbopomofo=12579,e.encyrillic=1085,e.endash=8211,e.endashvertical=65074,e.endescendercyrillic=1187,e.eng=331,e.engbopomofo=12581,e.enghecyrillic=1189,e.enhookcyrillic=1224,e.enspace=8194,e.eogonek=281,e.eokorean=12627,e.eopen=603,e.eopenclosed=666,e.eopenreversed=604,e.eopenreversedclosed=606,e.eopenreversedhook=605,e.eparen=9376,e.epsilon=949,e.epsilontonos=941,e.equal=61,e.equalmonospace=65309,e.equalsmall=65126,e.equalsuperior=8316,e.equivalence=8801,e.erbopomofo=12582,e.ercyrillic=1088,e.ereversed=600,e.ereversedcyrillic=1101,e.escyrillic=1089,e.esdescendercyrillic=1195,e.esh=643,e.eshcurl=646,e.eshortdeva=2318,e.eshortvowelsigndeva=2374,e.eshreversedloop=426,e.eshsquatreversed=645,e.esmallhiragana=12359,e.esmallkatakana=12455,e.esmallkatakanahalfwidth=65386,e.estimated=8494,e.esuperior=63212,e.eta=951,e.etarmenian=1384,e.etatonos=942,e.eth=240,e.etilde=7869,e.etildebelow=7707,e.etnahtafoukhhebrew=1425,e.etnahtafoukhlefthebrew=1425,e.etnahtahebrew=1425,e.etnahtalefthebrew=1425,e.eturned=477,e.eukorean=12641,e.euro=8364,e.evowelsignbengali=2503,e.evowelsigndeva=2375,e.evowelsigngujarati=2759,e.exclam=33,e.exclamarmenian=1372,e.exclamdbl=8252,e.exclamdown=161,e.exclamdownsmall=63393,e.exclammonospace=65281,e.exclamsmall=63265,e.existential=8707,e.ezh=658,e.ezhcaron=495,e.ezhcurl=659,e.ezhreversed=441,e.ezhtail=442,e.f=102,e.fadeva=2398,e.fagurmukhi=2654,e.fahrenheit=8457,e.fathaarabic=1614,e.fathalowarabic=1614,e.fathatanarabic=1611,e.fbopomofo=12552,e.fcircle=9429,e.fdotaccent=7711,e.feharabic=1601,e.feharmenian=1414,e.fehfinalarabic=65234,e.fehinitialarabic=65235,e.fehmedialarabic=65236,e.feicoptic=997,e.female=9792,e.ff=64256,e.f_f=64256,e.ffi=64259,e.ffl=64260,e.fi=64257,e.fifteencircle=9326,e.fifteenparen=9346,e.fifteenperiod=9366,e.figuredash=8210,e.filledbox=9632,e.filledrect=9644,e.finalkaf=1498,e.finalkafdagesh=64314,e.finalkafdageshhebrew=64314,e.finalkafhebrew=1498,e.finalmem=1501,e.finalmemhebrew=1501,e.finalnun=1503,e.finalnunhebrew=1503,e.finalpe=1507,e.finalpehebrew=1507,e.finaltsadi=1509,e.finaltsadihebrew=1509,e.firsttonechinese=713,e.fisheye=9673,e.fitacyrillic=1139,e.five=53,e.fivearabic=1637,e.fivebengali=2539,e.fivecircle=9316,e.fivecircleinversesansserif=10126,e.fivedeva=2411,e.fiveeighths=8541,e.fivegujarati=2795,e.fivegurmukhi=2667,e.fivehackarabic=1637,e.fivehangzhou=12325,e.fiveideographicparen=12836,e.fiveinferior=8325,e.fivemonospace=65301,e.fiveoldstyle=63285,e.fiveparen=9336,e.fiveperiod=9356,e.fivepersian=1781,e.fiveroman=8564,e.fivesuperior=8309,e.fivethai=3669,e.fl=64258,e.florin=402,e.fmonospace=65350,e.fmsquare=13209,e.fofanthai=3615,e.fofathai=3613,e.fongmanthai=3663,e.forall=8704,e.four=52,e.fourarabic=1636,e.fourbengali=2538,e.fourcircle=9315,e.fourcircleinversesansserif=10125,e.fourdeva=2410,e.fourgujarati=2794,e.fourgurmukhi=2666,e.fourhackarabic=1636,e.fourhangzhou=12324,e.fourideographicparen=12835,e.fourinferior=8324,e.fourmonospace=65300,e.fournumeratorbengali=2551,e.fouroldstyle=63284,e.fourparen=9335,e.fourperiod=9355,e.fourpersian=1780,e.fourroman=8563,e.foursuperior=8308,e.fourteencircle=9325,e.fourteenparen=9345,e.fourteenperiod=9365,e.fourthai=3668,e.fourthtonechinese=715,e.fparen=9377,e.fraction=8260,e.franc=8355,e.g=103,e.gabengali=2455,e.gacute=501,e.gadeva=2327,e.gafarabic=1711,e.gaffinalarabic=64403,e.gafinitialarabic=64404,e.gafmedialarabic=64405,e.gagujarati=2711,e.gagurmukhi=2583,e.gahiragana=12364,e.gakatakana=12460,e.gamma=947,e.gammalatinsmall=611,e.gammasuperior=736,e.gangiacoptic=1003,e.gbopomofo=12557,e.gbreve=287,e.gcaron=487,e.gcedilla=291,e.gcircle=9430,e.gcircumflex=285,e.gcommaaccent=291,e.gdot=289,e.gdotaccent=289,e.gecyrillic=1075,e.gehiragana=12370,e.gekatakana=12466,e.geometricallyequal=8785,e.gereshaccenthebrew=1436,e.gereshhebrew=1523,e.gereshmuqdamhebrew=1437,e.germandbls=223,e.gershayimaccenthebrew=1438,e.gershayimhebrew=1524,e.getamark=12307,e.ghabengali=2456,e.ghadarmenian=1394,e.ghadeva=2328,e.ghagujarati=2712,e.ghagurmukhi=2584,e.ghainarabic=1594,e.ghainfinalarabic=65230,e.ghaininitialarabic=65231,e.ghainmedialarabic=65232,e.ghemiddlehookcyrillic=1173,e.ghestrokecyrillic=1171,e.gheupturncyrillic=1169,e.ghhadeva=2394,e.ghhagurmukhi=2650,e.ghook=608,e.ghzsquare=13203,e.gihiragana=12366,e.gikatakana=12462,e.gimarmenian=1379,e.gimel=1490,e.gimeldagesh=64306,e.gimeldageshhebrew=64306,e.gimelhebrew=1490,e.gjecyrillic=1107,e.glottalinvertedstroke=446,e.glottalstop=660,e.glottalstopinverted=662,e.glottalstopmod=704,e.glottalstopreversed=661,e.glottalstopreversedmod=705,e.glottalstopreversedsuperior=740,e.glottalstopstroke=673,e.glottalstopstrokereversed=674,e.gmacron=7713,e.gmonospace=65351,e.gohiragana=12372,e.gokatakana=12468,e.gparen=9378,e.gpasquare=13228,e.gradient=8711,e.grave=96,e.gravebelowcmb=790,e.gravecmb=768,e.gravecomb=768,e.gravedeva=2387,e.gravelowmod=718,e.gravemonospace=65344,e.gravetonecmb=832,e.greater=62,e.greaterequal=8805,e.greaterequalorless=8923,e.greatermonospace=65310,e.greaterorequivalent=8819,e.greaterorless=8823,e.greateroverequal=8807,e.greatersmall=65125,e.gscript=609,e.gstroke=485,e.guhiragana=12368,e.guillemotleft=171,e.guillemotright=187,e.guilsinglleft=8249,e.guilsinglright=8250,e.gukatakana=12464,e.guramusquare=13080,e.gysquare=13257,e.h=104,e.haabkhasiancyrillic=1193,e.haaltonearabic=1729,e.habengali=2489,e.hadescendercyrillic=1203,e.hadeva=2361,e.hagujarati=2745,e.hagurmukhi=2617,e.haharabic=1581,e.hahfinalarabic=65186,e.hahinitialarabic=65187,e.hahiragana=12399,e.hahmedialarabic=65188,e.haitusquare=13098,e.hakatakana=12495,e.hakatakanahalfwidth=65418,e.halantgurmukhi=2637,e.hamzaarabic=1569,e.hamzalowarabic=1569,e.hangulfiller=12644,e.hardsigncyrillic=1098,e.harpoonleftbarbup=8636,e.harpoonrightbarbup=8640,e.hasquare=13258,e.hatafpatah=1458,e.hatafpatah16=1458,e.hatafpatah23=1458,e.hatafpatah2f=1458,e.hatafpatahhebrew=1458,e.hatafpatahnarrowhebrew=1458,e.hatafpatahquarterhebrew=1458,e.hatafpatahwidehebrew=1458,e.hatafqamats=1459,e.hatafqamats1b=1459,e.hatafqamats28=1459,e.hatafqamats34=1459,e.hatafqamatshebrew=1459,e.hatafqamatsnarrowhebrew=1459,e.hatafqamatsquarterhebrew=1459,e.hatafqamatswidehebrew=1459,e.hatafsegol=1457,e.hatafsegol17=1457,e.hatafsegol24=1457,e.hatafsegol30=1457,e.hatafsegolhebrew=1457,e.hatafsegolnarrowhebrew=1457,e.hatafsegolquarterhebrew=1457,e.hatafsegolwidehebrew=1457,e.hbar=295,e.hbopomofo=12559,e.hbrevebelow=7723,e.hcedilla=7721,e.hcircle=9431,e.hcircumflex=293,e.hdieresis=7719,e.hdotaccent=7715,e.hdotbelow=7717,e.he=1492,e.heart=9829,e.heartsuitblack=9829,e.heartsuitwhite=9825,e.hedagesh=64308,e.hedageshhebrew=64308,e.hehaltonearabic=1729,e.heharabic=1607,e.hehebrew=1492,e.hehfinalaltonearabic=64423,e.hehfinalalttwoarabic=65258,e.hehfinalarabic=65258,e.hehhamzaabovefinalarabic=64421,e.hehhamzaaboveisolatedarabic=64420,e.hehinitialaltonearabic=64424,e.hehinitialarabic=65259,e.hehiragana=12408,e.hehmedialaltonearabic=64425,e.hehmedialarabic=65260,e.heiseierasquare=13179,e.hekatakana=12504,e.hekatakanahalfwidth=65421,e.hekutaarusquare=13110,e.henghook=615,e.herutusquare=13113,e.het=1495,e.hethebrew=1495,e.hhook=614,e.hhooksuperior=689,e.hieuhacirclekorean=12923,e.hieuhaparenkorean=12827,e.hieuhcirclekorean=12909,e.hieuhkorean=12622,e.hieuhparenkorean=12813,e.hihiragana=12402,e.hikatakana=12498,e.hikatakanahalfwidth=65419,e.hiriq=1460,e.hiriq14=1460,e.hiriq21=1460,e.hiriq2d=1460,e.hiriqhebrew=1460,e.hiriqnarrowhebrew=1460,e.hiriqquarterhebrew=1460,e.hiriqwidehebrew=1460,e.hlinebelow=7830,e.hmonospace=65352,e.hoarmenian=1392,e.hohipthai=3627,e.hohiragana=12411,e.hokatakana=12507,e.hokatakanahalfwidth=65422,e.holam=1465,e.holam19=1465,e.holam26=1465,e.holam32=1465,e.holamhebrew=1465,e.holamnarrowhebrew=1465,e.holamquarterhebrew=1465,e.holamwidehebrew=1465,e.honokhukthai=3630,e.hookabovecomb=777,e.hookcmb=777,e.hookpalatalizedbelowcmb=801,e.hookretroflexbelowcmb=802,e.hoonsquare=13122,e.horicoptic=1001,e.horizontalbar=8213,e.horncmb=795,e.hotsprings=9832,e.house=8962,e.hparen=9379,e.hsuperior=688,e.hturned=613,e.huhiragana=12405,e.huiitosquare=13107,e.hukatakana=12501,e.hukatakanahalfwidth=65420,e.hungarumlaut=733,e.hungarumlautcmb=779,e.hv=405,e.hyphen=45,e.hypheninferior=63205,e.hyphenmonospace=65293,e.hyphensmall=65123,e.hyphensuperior=63206,e.hyphentwo=8208,e.i=105,e.iacute=237,e.iacyrillic=1103,e.ibengali=2439,e.ibopomofo=12583,e.ibreve=301,e.icaron=464,e.icircle=9432,e.icircumflex=238,e.icyrillic=1110,e.idblgrave=521,e.ideographearthcircle=12943,e.ideographfirecircle=12939,e.ideographicallianceparen=12863,e.ideographiccallparen=12858,e.ideographiccentrecircle=12965,e.ideographicclose=12294,e.ideographiccomma=12289,e.ideographiccommaleft=65380,e.ideographiccongratulationparen=12855,e.ideographiccorrectcircle=12963,e.ideographicearthparen=12847,e.ideographicenterpriseparen=12861,e.ideographicexcellentcircle=12957,e.ideographicfestivalparen=12864,e.ideographicfinancialcircle=12950,e.ideographicfinancialparen=12854,e.ideographicfireparen=12843,e.ideographichaveparen=12850,e.ideographichighcircle=12964,e.ideographiciterationmark=12293,e.ideographiclaborcircle=12952,e.ideographiclaborparen=12856,e.ideographicleftcircle=12967,e.ideographiclowcircle=12966,e.ideographicmedicinecircle=12969,e.ideographicmetalparen=12846,e.ideographicmoonparen=12842,e.ideographicnameparen=12852,e.ideographicperiod=12290,e.ideographicprintcircle=12958,e.ideographicreachparen=12867,e.ideographicrepresentparen=12857,e.ideographicresourceparen=12862,e.ideographicrightcircle=12968,e.ideographicsecretcircle=12953,e.ideographicselfparen=12866,e.ideographicsocietyparen=12851,e.ideographicspace=12288,e.ideographicspecialparen=12853,e.ideographicstockparen=12849,e.ideographicstudyparen=12859,e.ideographicsunparen=12848,e.ideographicsuperviseparen=12860,e.ideographicwaterparen=12844,e.ideographicwoodparen=12845,e.ideographiczero=12295,e.ideographmetalcircle=12942,e.ideographmooncircle=12938,e.ideographnamecircle=12948,e.ideographsuncircle=12944,e.ideographwatercircle=12940,e.ideographwoodcircle=12941,e.ideva=2311,e.idieresis=239,e.idieresisacute=7727,e.idieresiscyrillic=1253,e.idotbelow=7883,e.iebrevecyrillic=1239,e.iecyrillic=1077,e.ieungacirclekorean=12917,e.ieungaparenkorean=12821,e.ieungcirclekorean=12903,e.ieungkorean=12615,e.ieungparenkorean=12807,e.igrave=236,e.igujarati=2695,e.igurmukhi=2567,e.ihiragana=12356,e.ihookabove=7881,e.iibengali=2440,e.iicyrillic=1080,e.iideva=2312,e.iigujarati=2696,e.iigurmukhi=2568,e.iimatragurmukhi=2624,e.iinvertedbreve=523,e.iishortcyrillic=1081,e.iivowelsignbengali=2496,e.iivowelsigndeva=2368,e.iivowelsigngujarati=2752,e.ij=307,e.ikatakana=12452,e.ikatakanahalfwidth=65394,e.ikorean=12643,e.ilde=732,e.iluyhebrew=1452,e.imacron=299,e.imacroncyrillic=1251,e.imageorapproximatelyequal=8787,e.imatragurmukhi=2623,e.imonospace=65353,e.increment=8710,e.infinity=8734,e.iniarmenian=1387,e.integral=8747,e.integralbottom=8993,e.integralbt=8993,e.integralex=63733,e.integraltop=8992,e.integraltp=8992,e.intersection=8745,e.intisquare=13061,e.invbullet=9688,e.invcircle=9689,e.invsmileface=9787,e.iocyrillic=1105,e.iogonek=303,e.iota=953,e.iotadieresis=970,e.iotadieresistonos=912,e.iotalatin=617,e.iotatonos=943,e.iparen=9380,e.irigurmukhi=2674,e.ismallhiragana=12355,e.ismallkatakana=12451,e.ismallkatakanahalfwidth=65384,e.issharbengali=2554,e.istroke=616,e.isuperior=63213,e.iterationhiragana=12445,e.iterationkatakana=12541,e.itilde=297,e.itildebelow=7725,e.iubopomofo=12585,e.iucyrillic=1102,e.ivowelsignbengali=2495,e.ivowelsigndeva=2367,e.ivowelsigngujarati=2751,e.izhitsacyrillic=1141,e.izhitsadblgravecyrillic=1143,e.j=106,e.jaarmenian=1393,e.jabengali=2460,e.jadeva=2332,e.jagujarati=2716,e.jagurmukhi=2588,e.jbopomofo=12560,e.jcaron=496,e.jcircle=9433,e.jcircumflex=309,e.jcrossedtail=669,e.jdotlessstroke=607,e.jecyrillic=1112,e.jeemarabic=1580,e.jeemfinalarabic=65182,e.jeeminitialarabic=65183,e.jeemmedialarabic=65184,e.jeharabic=1688,e.jehfinalarabic=64395,e.jhabengali=2461,e.jhadeva=2333,e.jhagujarati=2717,e.jhagurmukhi=2589,e.jheharmenian=1403,e.jis=12292,e.jmonospace=65354,e.jparen=9381,e.jsuperior=690,e.k=107,e.kabashkircyrillic=1185,e.kabengali=2453,e.kacute=7729,e.kacyrillic=1082,e.kadescendercyrillic=1179,e.kadeva=2325,e.kaf=1499,e.kafarabic=1603,e.kafdagesh=64315,e.kafdageshhebrew=64315,e.kaffinalarabic=65242,e.kafhebrew=1499,e.kafinitialarabic=65243,e.kafmedialarabic=65244,e.kafrafehebrew=64333,e.kagujarati=2709,e.kagurmukhi=2581,e.kahiragana=12363,e.kahookcyrillic=1220,e.kakatakana=12459,e.kakatakanahalfwidth=65398,e.kappa=954,e.kappasymbolgreek=1008,e.kapyeounmieumkorean=12657,e.kapyeounphieuphkorean=12676,e.kapyeounpieupkorean=12664,e.kapyeounssangpieupkorean=12665,e.karoriisquare=13069,e.kashidaautoarabic=1600,e.kashidaautonosidebearingarabic=1600,e.kasmallkatakana=12533,e.kasquare=13188,e.kasraarabic=1616,e.kasratanarabic=1613,e.kastrokecyrillic=1183,e.katahiraprolongmarkhalfwidth=65392,e.kaverticalstrokecyrillic=1181,e.kbopomofo=12558,e.kcalsquare=13193,e.kcaron=489,e.kcedilla=311,e.kcircle=9434,e.kcommaaccent=311,e.kdotbelow=7731,e.keharmenian=1412,e.kehiragana=12369,e.kekatakana=12465,e.kekatakanahalfwidth=65401,e.kenarmenian=1391,e.kesmallkatakana=12534,e.kgreenlandic=312,e.khabengali=2454,e.khacyrillic=1093,e.khadeva=2326,e.khagujarati=2710,e.khagurmukhi=2582,e.khaharabic=1582,e.khahfinalarabic=65190,e.khahinitialarabic=65191,e.khahmedialarabic=65192,e.kheicoptic=999,e.khhadeva=2393,e.khhagurmukhi=2649,e.khieukhacirclekorean=12920,e.khieukhaparenkorean=12824,e.khieukhcirclekorean=12906,e.khieukhkorean=12619,e.khieukhparenkorean=12810,e.khokhaithai=3586,e.khokhonthai=3589,e.khokhuatthai=3587,e.khokhwaithai=3588,e.khomutthai=3675,e.khook=409,e.khorakhangthai=3590,e.khzsquare=13201,e.kihiragana=12365,e.kikatakana=12461,e.kikatakanahalfwidth=65399,e.kiroguramusquare=13077,e.kiromeetorusquare=13078,e.kirosquare=13076,e.kiyeokacirclekorean=12910,e.kiyeokaparenkorean=12814,e.kiyeokcirclekorean=12896,e.kiyeokkorean=12593,e.kiyeokparenkorean=12800,e.kiyeoksioskorean=12595,e.kjecyrillic=1116,e.klinebelow=7733,e.klsquare=13208,e.kmcubedsquare=13222;e.kmonospace=65355,e.kmsquaredsquare=13218,e.kohiragana=12371,e.kohmsquare=13248,e.kokaithai=3585,e.kokatakana=12467,e.kokatakanahalfwidth=65402,e.kooposquare=13086,e.koppacyrillic=1153,e.koreanstandardsymbol=12927,e.koroniscmb=835,e.kparen=9382,e.kpasquare=13226,e.ksicyrillic=1135,e.ktsquare=13263,e.kturned=670,e.kuhiragana=12367,e.kukatakana=12463,e.kukatakanahalfwidth=65400,e.kvsquare=13240,e.kwsquare=13246,e.l=108,e.labengali=2482,e.lacute=314,e.ladeva=2354,e.lagujarati=2738,e.lagurmukhi=2610,e.lakkhangyaothai=3653,e.lamaleffinalarabic=65276,e.lamalefhamzaabovefinalarabic=65272,e.lamalefhamzaaboveisolatedarabic=65271,e.lamalefhamzabelowfinalarabic=65274,e.lamalefhamzabelowisolatedarabic=65273,e.lamalefisolatedarabic=65275,e.lamalefmaddaabovefinalarabic=65270,e.lamalefmaddaaboveisolatedarabic=65269,e.lamarabic=1604,e.lambda=955,e.lambdastroke=411,e.lamed=1500,e.lameddagesh=64316,e.lameddageshhebrew=64316,e.lamedhebrew=1500,e.lamfinalarabic=65246,e.lamhahinitialarabic=64714,e.laminitialarabic=65247,e.lamjeeminitialarabic=64713,e.lamkhahinitialarabic=64715,e.lamlamhehisolatedarabic=65010,e.lammedialarabic=65248,e.lammeemhahinitialarabic=64904,e.lammeeminitialarabic=64716,e.largecircle=9711,e.lbar=410,e.lbelt=620,e.lbopomofo=12556,e.lcaron=318,e.lcedilla=316,e.lcircle=9435,e.lcircumflexbelow=7741,e.lcommaaccent=316,e.ldot=320,e.ldotaccent=320,e.ldotbelow=7735,e.ldotbelowmacron=7737,e.leftangleabovecmb=794,e.lefttackbelowcmb=792,e.less=60,e.lessequal=8804,e.lessequalorgreater=8922,e.lessmonospace=65308,e.lessorequivalent=8818,e.lessorgreater=8822,e.lessoverequal=8806,e.lesssmall=65124,e.lezh=622,e.lfblock=9612,e.lhookretroflex=621,e.lira=8356,e.liwnarmenian=1388,e.lj=457,e.ljecyrillic=1113,e.ll=63168,e.lladeva=2355,e.llagujarati=2739,e.llinebelow=7739,e.llladeva=2356,e.llvocalicbengali=2529,e.llvocalicdeva=2401,e.llvocalicvowelsignbengali=2531,e.llvocalicvowelsigndeva=2403,e.lmiddletilde=619,e.lmonospace=65356,e.lmsquare=13264,e.lochulathai=3628,e.logicaland=8743,e.logicalnot=172,e.logicalnotreversed=8976,e.logicalor=8744,e.lolingthai=3621,e.longs=383,e.lowlinecenterline=65102,e.lowlinecmb=818,e.lowlinedashed=65101,e.lozenge=9674,e.lparen=9383,e.lslash=322,e.lsquare=8467,e.lsuperior=63214,e.ltshade=9617,e.luthai=3622,e.lvocalicbengali=2444,e.lvocalicdeva=2316,e.lvocalicvowelsignbengali=2530,e.lvocalicvowelsigndeva=2402,e.lxsquare=13267,e.m=109,e.mabengali=2478,e.macron=175,e.macronbelowcmb=817,e.macroncmb=772,e.macronlowmod=717,e.macronmonospace=65507,e.macute=7743,e.madeva=2350,e.magujarati=2734,e.magurmukhi=2606,e.mahapakhhebrew=1444,e.mahapakhlefthebrew=1444,e.mahiragana=12414,e.maichattawalowleftthai=63637,e.maichattawalowrightthai=63636,e.maichattawathai=3659,e.maichattawaupperleftthai=63635,e.maieklowleftthai=63628,e.maieklowrightthai=63627,e.maiekthai=3656,e.maiekupperleftthai=63626,e.maihanakatleftthai=63620,e.maihanakatthai=3633,e.maitaikhuleftthai=63625,e.maitaikhuthai=3655,e.maitholowleftthai=63631,e.maitholowrightthai=63630,e.maithothai=3657,e.maithoupperleftthai=63629,e.maitrilowleftthai=63634,e.maitrilowrightthai=63633,e.maitrithai=3658,e.maitriupperleftthai=63632,e.maiyamokthai=3654,e.makatakana=12510,e.makatakanahalfwidth=65423,e.male=9794,e.mansyonsquare=13127,e.maqafhebrew=1470,e.mars=9794,e.masoracirclehebrew=1455,e.masquare=13187,e.mbopomofo=12551,e.mbsquare=13268,e.mcircle=9436,e.mcubedsquare=13221,e.mdotaccent=7745,e.mdotbelow=7747,e.meemarabic=1605,e.meemfinalarabic=65250,e.meeminitialarabic=65251,e.meemmedialarabic=65252,e.meemmeeminitialarabic=64721,e.meemmeemisolatedarabic=64584,e.meetorusquare=13133,e.mehiragana=12417,e.meizierasquare=13182,e.mekatakana=12513,e.mekatakanahalfwidth=65426,e.mem=1502,e.memdagesh=64318,e.memdageshhebrew=64318,e.memhebrew=1502,e.menarmenian=1396,e.merkhahebrew=1445,e.merkhakefulahebrew=1446,e.merkhakefulalefthebrew=1446,e.merkhalefthebrew=1445,e.mhook=625,e.mhzsquare=13202,e.middledotkatakanahalfwidth=65381,e.middot=183,e.mieumacirclekorean=12914,e.mieumaparenkorean=12818,e.mieumcirclekorean=12900,e.mieumkorean=12609,e.mieumpansioskorean=12656,e.mieumparenkorean=12804,e.mieumpieupkorean=12654,e.mieumsioskorean=12655,e.mihiragana=12415,e.mikatakana=12511,e.mikatakanahalfwidth=65424,e.minus=8722,e.minusbelowcmb=800,e.minuscircle=8854,e.minusmod=727,e.minusplus=8723,e.minute=8242,e.miribaarusquare=13130,e.mirisquare=13129,e.mlonglegturned=624,e.mlsquare=13206,e.mmcubedsquare=13219,e.mmonospace=65357,e.mmsquaredsquare=13215,e.mohiragana=12418,e.mohmsquare=13249,e.mokatakana=12514,e.mokatakanahalfwidth=65427,e.molsquare=13270,e.momathai=3617,e.moverssquare=13223,e.moverssquaredsquare=13224,e.mparen=9384,e.mpasquare=13227,e.mssquare=13235,e.msuperior=63215,e.mturned=623,e.mu=181,e.mu1=181,e.muasquare=13186,e.muchgreater=8811,e.muchless=8810,e.mufsquare=13196,e.mugreek=956,e.mugsquare=13197,e.muhiragana=12416,e.mukatakana=12512,e.mukatakanahalfwidth=65425,e.mulsquare=13205,e.multiply=215,e.mumsquare=13211,e.munahhebrew=1443,e.munahlefthebrew=1443,e.musicalnote=9834,e.musicalnotedbl=9835,e.musicflatsign=9837,e.musicsharpsign=9839,e.mussquare=13234,e.muvsquare=13238,e.muwsquare=13244,e.mvmegasquare=13241,e.mvsquare=13239,e.mwmegasquare=13247,e.mwsquare=13245,e.n=110,e.nabengali=2472,e.nabla=8711,e.nacute=324,e.nadeva=2344,e.nagujarati=2728,e.nagurmukhi=2600,e.nahiragana=12394,e.nakatakana=12490,e.nakatakanahalfwidth=65413,e.napostrophe=329,e.nasquare=13185,e.nbopomofo=12555,e.nbspace=160,e.ncaron=328,e.ncedilla=326,e.ncircle=9437,e.ncircumflexbelow=7755,e.ncommaaccent=326,e.ndotaccent=7749,e.ndotbelow=7751,e.nehiragana=12397,e.nekatakana=12493,e.nekatakanahalfwidth=65416,e.newsheqelsign=8362,e.nfsquare=13195,e.ngabengali=2457,e.ngadeva=2329,e.ngagujarati=2713,e.ngagurmukhi=2585,e.ngonguthai=3591,e.nhiragana=12435,e.nhookleft=626,e.nhookretroflex=627,e.nieunacirclekorean=12911,e.nieunaparenkorean=12815,e.nieuncieuckorean=12597,e.nieuncirclekorean=12897,e.nieunhieuhkorean=12598,e.nieunkorean=12596,e.nieunpansioskorean=12648,e.nieunparenkorean=12801,e.nieunsioskorean=12647,e.nieuntikeutkorean=12646,e.nihiragana=12395,e.nikatakana=12491,e.nikatakanahalfwidth=65414,e.nikhahitleftthai=63641,e.nikhahitthai=3661,e.nine=57,e.ninearabic=1641,e.ninebengali=2543,e.ninecircle=9320,e.ninecircleinversesansserif=10130,e.ninedeva=2415,e.ninegujarati=2799,e.ninegurmukhi=2671,e.ninehackarabic=1641,e.ninehangzhou=12329,e.nineideographicparen=12840,e.nineinferior=8329,e.ninemonospace=65305,e.nineoldstyle=63289,e.nineparen=9340,e.nineperiod=9360,e.ninepersian=1785,e.nineroman=8568,e.ninesuperior=8313,e.nineteencircle=9330,e.nineteenparen=9350,e.nineteenperiod=9370,e.ninethai=3673,e.nj=460,e.njecyrillic=1114,e.nkatakana=12531,e.nkatakanahalfwidth=65437,e.nlegrightlong=414,e.nlinebelow=7753,e.nmonospace=65358,e.nmsquare=13210,e.nnabengali=2467,e.nnadeva=2339,e.nnagujarati=2723,e.nnagurmukhi=2595,e.nnnadeva=2345,e.nohiragana=12398,e.nokatakana=12494,e.nokatakanahalfwidth=65417,e.nonbreakingspace=160,e.nonenthai=3603,e.nonuthai=3609,e.noonarabic=1606,e.noonfinalarabic=65254,e.noonghunnaarabic=1722,e.noonghunnafinalarabic=64415,e.nooninitialarabic=65255,e.noonjeeminitialarabic=64722,e.noonjeemisolatedarabic=64587,e.noonmedialarabic=65256,e.noonmeeminitialarabic=64725,e.noonmeemisolatedarabic=64590,e.noonnoonfinalarabic=64653,e.notcontains=8716,e.notelement=8713,e.notelementof=8713,e.notequal=8800,e.notgreater=8815,e.notgreaternorequal=8817,e.notgreaternorless=8825,e.notidentical=8802,e.notless=8814,e.notlessnorequal=8816,e.notparallel=8742,e.notprecedes=8832,e.notsubset=8836,e.notsucceeds=8833,e.notsuperset=8837,e.nowarmenian=1398,e.nparen=9385,e.nssquare=13233,e.nsuperior=8319,e.ntilde=241,e.nu=957,e.nuhiragana=12396,e.nukatakana=12492,e.nukatakanahalfwidth=65415,e.nuktabengali=2492,e.nuktadeva=2364,e.nuktagujarati=2748,e.nuktagurmukhi=2620,e.numbersign=35,e.numbersignmonospace=65283,e.numbersignsmall=65119,e.numeralsigngreek=884,e.numeralsignlowergreek=885,e.numero=8470,e.nun=1504,e.nundagesh=64320,e.nundageshhebrew=64320,e.nunhebrew=1504,e.nvsquare=13237,e.nwsquare=13243,e.nyabengali=2462,e.nyadeva=2334,e.nyagujarati=2718,e.nyagurmukhi=2590,e.o=111,e.oacute=243,e.oangthai=3629,e.obarred=629,e.obarredcyrillic=1257,e.obarreddieresiscyrillic=1259,e.obengali=2451,e.obopomofo=12571,e.obreve=335,e.ocandradeva=2321,e.ocandragujarati=2705,e.ocandravowelsigndeva=2377,e.ocandravowelsigngujarati=2761,e.ocaron=466,e.ocircle=9438,e.ocircumflex=244,e.ocircumflexacute=7889,e.ocircumflexdotbelow=7897,e.ocircumflexgrave=7891,e.ocircumflexhookabove=7893,e.ocircumflextilde=7895,e.ocyrillic=1086,e.odblacute=337,e.odblgrave=525,e.odeva=2323,e.odieresis=246,e.odieresiscyrillic=1255,e.odotbelow=7885,e.oe=339,e.oekorean=12634,e.ogonek=731,e.ogonekcmb=808,e.ograve=242,e.ogujarati=2707,e.oharmenian=1413,e.ohiragana=12362,e.ohookabove=7887,e.ohorn=417,e.ohornacute=7899,e.ohorndotbelow=7907,e.ohorngrave=7901,e.ohornhookabove=7903,e.ohorntilde=7905,e.ohungarumlaut=337,e.oi=419,e.oinvertedbreve=527,e.okatakana=12458,e.okatakanahalfwidth=65397,e.okorean=12631,e.olehebrew=1451,e.omacron=333,e.omacronacute=7763,e.omacrongrave=7761,e.omdeva=2384,e.omega=969,e.omega1=982,e.omegacyrillic=1121,e.omegalatinclosed=631,e.omegaroundcyrillic=1147,e.omegatitlocyrillic=1149,e.omegatonos=974,e.omgujarati=2768,e.omicron=959,e.omicrontonos=972,e.omonospace=65359,e.one=49,e.onearabic=1633,e.onebengali=2535,e.onecircle=9312,e.onecircleinversesansserif=10122,e.onedeva=2407,e.onedotenleader=8228,e.oneeighth=8539,e.onefitted=63196,e.onegujarati=2791,e.onegurmukhi=2663,e.onehackarabic=1633,e.onehalf=189,e.onehangzhou=12321,e.oneideographicparen=12832,e.oneinferior=8321,e.onemonospace=65297,e.onenumeratorbengali=2548,e.oneoldstyle=63281,e.oneparen=9332,e.oneperiod=9352,e.onepersian=1777,e.onequarter=188,e.oneroman=8560,e.onesuperior=185,e.onethai=3665,e.onethird=8531,e.oogonek=491,e.oogonekmacron=493,e.oogurmukhi=2579,e.oomatragurmukhi=2635,e.oopen=596,e.oparen=9386,e.openbullet=9702,e.option=8997,e.ordfeminine=170,e.ordmasculine=186,e.orthogonal=8735,e.oshortdeva=2322,e.oshortvowelsigndeva=2378,e.oslash=248,e.oslashacute=511,e.osmallhiragana=12361,e.osmallkatakana=12457,e.osmallkatakanahalfwidth=65387,e.ostrokeacute=511,e.osuperior=63216,e.otcyrillic=1151,e.otilde=245,e.otildeacute=7757,e.otildedieresis=7759,e.oubopomofo=12577,e.overline=8254,e.overlinecenterline=65098,e.overlinecmb=773,e.overlinedashed=65097,e.overlinedblwavy=65100,e.overlinewavy=65099,e.overscore=175,e.ovowelsignbengali=2507,e.ovowelsigndeva=2379,e.ovowelsigngujarati=2763,e.p=112,e.paampssquare=13184,e.paasentosquare=13099,e.pabengali=2474,e.pacute=7765,e.padeva=2346,e.pagedown=8671,e.pageup=8670,e.pagujarati=2730,e.pagurmukhi=2602,e.pahiragana=12401,e.paiyannoithai=3631,e.pakatakana=12497,e.palatalizationcyrilliccmb=1156,e.palochkacyrillic=1216,e.pansioskorean=12671,e.paragraph=182,e.parallel=8741,e.parenleft=40,e.parenleftaltonearabic=64830,e.parenleftbt=63725,e.parenleftex=63724,e.parenleftinferior=8333,e.parenleftmonospace=65288,e.parenleftsmall=65113,e.parenleftsuperior=8317,e.parenlefttp=63723,e.parenleftvertical=65077,e.parenright=41,e.parenrightaltonearabic=64831,e.parenrightbt=63736,e.parenrightex=63735,e.parenrightinferior=8334,e.parenrightmonospace=65289,e.parenrightsmall=65114,e.parenrightsuperior=8318,e.parenrighttp=63734,e.parenrightvertical=65078,e.partialdiff=8706,e.paseqhebrew=1472,e.pashtahebrew=1433,e.pasquare=13225,e.patah=1463,e.patah11=1463,e.patah1d=1463,e.patah2a=1463,e.patahhebrew=1463,e.patahnarrowhebrew=1463,e.patahquarterhebrew=1463,e.patahwidehebrew=1463,e.pazerhebrew=1441,e.pbopomofo=12550,e.pcircle=9439,e.pdotaccent=7767,e.pe=1508,e.pecyrillic=1087,e.pedagesh=64324,e.pedageshhebrew=64324,e.peezisquare=13115,e.pefinaldageshhebrew=64323,e.peharabic=1662,e.peharmenian=1402,e.pehebrew=1508,e.pehfinalarabic=64343,e.pehinitialarabic=64344,e.pehiragana=12410,e.pehmedialarabic=64345,e.pekatakana=12506,e.pemiddlehookcyrillic=1191,e.perafehebrew=64334,e.percent=37,e.percentarabic=1642,e.percentmonospace=65285,e.percentsmall=65130,e.period=46,e.periodarmenian=1417,e.periodcentered=183,e.periodhalfwidth=65377,e.periodinferior=63207,e.periodmonospace=65294,e.periodsmall=65106,e.periodsuperior=63208,e.perispomenigreekcmb=834,e.perpendicular=8869,e.perthousand=8240,e.peseta=8359,e.pfsquare=13194,e.phabengali=2475,e.phadeva=2347,e.phagujarati=2731,e.phagurmukhi=2603,e.phi=966,e.phi1=981,e.phieuphacirclekorean=12922,e.phieuphaparenkorean=12826,e.phieuphcirclekorean=12908,e.phieuphkorean=12621,e.phieuphparenkorean=12812,e.philatin=632,e.phinthuthai=3642,e.phisymbolgreek=981,e.phook=421,e.phophanthai=3614,e.phophungthai=3612,e.phosamphaothai=3616,e.pi=960,e.pieupacirclekorean=12915,e.pieupaparenkorean=12819,e.pieupcieuckorean=12662,e.pieupcirclekorean=12901,e.pieupkiyeokkorean=12658,e.pieupkorean=12610,e.pieupparenkorean=12805,e.pieupsioskiyeokkorean=12660,e.pieupsioskorean=12612,e.pieupsiostikeutkorean=12661,e.pieupthieuthkorean=12663,e.pieuptikeutkorean=12659,e.pihiragana=12404,e.pikatakana=12500,e.pisymbolgreek=982,e.piwrarmenian=1411,e.plus=43,e.plusbelowcmb=799,e.pluscircle=8853,e.plusminus=177,e.plusmod=726,e.plusmonospace=65291,e.plussmall=65122,e.plussuperior=8314,e.pmonospace=65360,e.pmsquare=13272,e.pohiragana=12413,e.pointingindexdownwhite=9759,e.pointingindexleftwhite=9756,e.pointingindexrightwhite=9758,e.pointingindexupwhite=9757,e.pokatakana=12509,e.poplathai=3611,e.postalmark=12306,e.postalmarkface=12320,e.pparen=9387,e.precedes=8826,e.prescription=8478,e.primemod=697,e.primereversed=8245,e.product=8719,e.projective=8965,e.prolongedkana=12540,e.propellor=8984,e.propersubset=8834,e.propersuperset=8835,e.proportion=8759,e.proportional=8733,e.psi=968,e.psicyrillic=1137,e.psilipneumatacyrilliccmb=1158,e.pssquare=13232,e.puhiragana=12407,e.pukatakana=12503,e.pvsquare=13236,e.pwsquare=13242,e.q=113,e.qadeva=2392,e.qadmahebrew=1448,e.qafarabic=1602,e.qaffinalarabic=65238,e.qafinitialarabic=65239,e.qafmedialarabic=65240,e.qamats=1464,e.qamats10=1464,e.qamats1a=1464,e.qamats1c=1464,e.qamats27=1464,e.qamats29=1464,e.qamats33=1464,e.qamatsde=1464,e.qamatshebrew=1464,e.qamatsnarrowhebrew=1464,e.qamatsqatanhebrew=1464,e.qamatsqatannarrowhebrew=1464,e.qamatsqatanquarterhebrew=1464,e.qamatsqatanwidehebrew=1464,e.qamatsquarterhebrew=1464,e.qamatswidehebrew=1464,e.qarneyparahebrew=1439,e.qbopomofo=12561,e.qcircle=9440,e.qhook=672,e.qmonospace=65361,e.qof=1511,e.qofdagesh=64327,e.qofdageshhebrew=64327,e.qofhebrew=1511,e.qparen=9388,e.quarternote=9833,e.qubuts=1467,e.qubuts18=1467,e.qubuts25=1467,e.qubuts31=1467,e.qubutshebrew=1467,e.qubutsnarrowhebrew=1467,e.qubutsquarterhebrew=1467,e.qubutswidehebrew=1467,e.question=63,e.questionarabic=1567,e.questionarmenian=1374,e.questiondown=191,e.questiondownsmall=63423,e.questiongreek=894,e.questionmonospace=65311,e.questionsmall=63295,e.quotedbl=34,e.quotedblbase=8222,e.quotedblleft=8220,e.quotedblmonospace=65282,e.quotedblprime=12318,e.quotedblprimereversed=12317,e.quotedblright=8221,e.quoteleft=8216,e.quoteleftreversed=8219,e.quotereversed=8219,e.quoteright=8217,e.quoterightn=329,e.quotesinglbase=8218,e.quotesingle=39,e.quotesinglemonospace=65287,e.r=114,e.raarmenian=1404,e.rabengali=2480,e.racute=341,e.radeva=2352,e.radical=8730,e.radicalex=63717,e.radoverssquare=13230,e.radoverssquaredsquare=13231,e.radsquare=13229,e.rafe=1471,e.rafehebrew=1471,e.ragujarati=2736,e.ragurmukhi=2608,e.rahiragana=12425,e.rakatakana=12521,e.rakatakanahalfwidth=65431,e.ralowerdiagonalbengali=2545,e.ramiddlediagonalbengali=2544,e.ramshorn=612,e.ratio=8758,e.rbopomofo=12566,e.rcaron=345,e.rcedilla=343,e.rcircle=9441,e.rcommaaccent=343,e.rdblgrave=529,e.rdotaccent=7769,e.rdotbelow=7771,e.rdotbelowmacron=7773,e.referencemark=8251,e.reflexsubset=8838,e.reflexsuperset=8839,e.registered=174,e.registersans=63720,e.registerserif=63194,e.reharabic=1585,e.reharmenian=1408,e.rehfinalarabic=65198,e.rehiragana=12428,e.rekatakana=12524,e.rekatakanahalfwidth=65434,e.resh=1512,e.reshdageshhebrew=64328,e.reshhebrew=1512,e.reversedtilde=8765,e.reviahebrew=1431;e.reviamugrashhebrew=1431,e.revlogicalnot=8976,e.rfishhook=638,e.rfishhookreversed=639,e.rhabengali=2525,e.rhadeva=2397,e.rho=961,e.rhook=637,e.rhookturned=635,e.rhookturnedsuperior=693,e.rhosymbolgreek=1009,e.rhotichookmod=734,e.rieulacirclekorean=12913,e.rieulaparenkorean=12817,e.rieulcirclekorean=12899,e.rieulhieuhkorean=12608,e.rieulkiyeokkorean=12602,e.rieulkiyeoksioskorean=12649,e.rieulkorean=12601,e.rieulmieumkorean=12603,e.rieulpansioskorean=12652,e.rieulparenkorean=12803,e.rieulphieuphkorean=12607,e.rieulpieupkorean=12604,e.rieulpieupsioskorean=12651,e.rieulsioskorean=12605,e.rieulthieuthkorean=12606,e.rieultikeutkorean=12650,e.rieulyeorinhieuhkorean=12653,e.rightangle=8735,e.righttackbelowcmb=793,e.righttriangle=8895,e.rihiragana=12426,e.rikatakana=12522,e.rikatakanahalfwidth=65432,e.ring=730,e.ringbelowcmb=805,e.ringcmb=778,e.ringhalfleft=703,e.ringhalfleftarmenian=1369,e.ringhalfleftbelowcmb=796,e.ringhalfleftcentered=723,e.ringhalfright=702,e.ringhalfrightbelowcmb=825,e.ringhalfrightcentered=722,e.rinvertedbreve=531,e.rittorusquare=13137,e.rlinebelow=7775,e.rlongleg=636,e.rlonglegturned=634,e.rmonospace=65362,e.rohiragana=12429,e.rokatakana=12525,e.rokatakanahalfwidth=65435,e.roruathai=3619,e.rparen=9389,e.rrabengali=2524,e.rradeva=2353,e.rragurmukhi=2652,e.rreharabic=1681,e.rrehfinalarabic=64397,e.rrvocalicbengali=2528,e.rrvocalicdeva=2400,e.rrvocalicgujarati=2784,e.rrvocalicvowelsignbengali=2500,e.rrvocalicvowelsigndeva=2372,e.rrvocalicvowelsigngujarati=2756,e.rsuperior=63217,e.rtblock=9616,e.rturned=633,e.rturnedsuperior=692,e.ruhiragana=12427,e.rukatakana=12523,e.rukatakanahalfwidth=65433,e.rupeemarkbengali=2546,e.rupeesignbengali=2547,e.rupiah=63197,e.ruthai=3620,e.rvocalicbengali=2443,e.rvocalicdeva=2315,e.rvocalicgujarati=2699,e.rvocalicvowelsignbengali=2499,e.rvocalicvowelsigndeva=2371,e.rvocalicvowelsigngujarati=2755,e.s=115,e.sabengali=2488,e.sacute=347,e.sacutedotaccent=7781,e.sadarabic=1589,e.sadeva=2360,e.sadfinalarabic=65210,e.sadinitialarabic=65211,e.sadmedialarabic=65212,e.sagujarati=2744,e.sagurmukhi=2616,e.sahiragana=12373,e.sakatakana=12469,e.sakatakanahalfwidth=65403,e.sallallahoualayhewasallamarabic=65018,e.samekh=1505,e.samekhdagesh=64321,e.samekhdageshhebrew=64321,e.samekhhebrew=1505,e.saraaathai=3634,e.saraaethai=3649,e.saraaimaimalaithai=3652,e.saraaimaimuanthai=3651,e.saraamthai=3635,e.saraathai=3632,e.saraethai=3648,e.saraiileftthai=63622,e.saraiithai=3637,e.saraileftthai=63621,e.saraithai=3636,e.saraothai=3650,e.saraueeleftthai=63624,e.saraueethai=3639,e.saraueleftthai=63623,e.sarauethai=3638,e.sarauthai=3640,e.sarauuthai=3641,e.sbopomofo=12569,e.scaron=353,e.scarondotaccent=7783,e.scedilla=351,e.schwa=601,e.schwacyrillic=1241,e.schwadieresiscyrillic=1243,e.schwahook=602,e.scircle=9442,e.scircumflex=349,e.scommaaccent=537,e.sdotaccent=7777,e.sdotbelow=7779,e.sdotbelowdotaccent=7785,e.seagullbelowcmb=828,e.second=8243,e.secondtonechinese=714,e.section=167,e.seenarabic=1587,e.seenfinalarabic=65202,e.seeninitialarabic=65203,e.seenmedialarabic=65204,e.segol=1462,e.segol13=1462,e.segol1f=1462,e.segol2c=1462,e.segolhebrew=1462,e.segolnarrowhebrew=1462,e.segolquarterhebrew=1462,e.segoltahebrew=1426,e.segolwidehebrew=1462,e.seharmenian=1405,e.sehiragana=12379,e.sekatakana=12475,e.sekatakanahalfwidth=65406,e.semicolon=59,e.semicolonarabic=1563,e.semicolonmonospace=65307,e.semicolonsmall=65108,e.semivoicedmarkkana=12444,e.semivoicedmarkkanahalfwidth=65439,e.sentisquare=13090,e.sentosquare=13091,e.seven=55,e.sevenarabic=1639,e.sevenbengali=2541,e.sevencircle=9318,e.sevencircleinversesansserif=10128,e.sevendeva=2413,e.seveneighths=8542,e.sevengujarati=2797,e.sevengurmukhi=2669,e.sevenhackarabic=1639,e.sevenhangzhou=12327,e.sevenideographicparen=12838,e.seveninferior=8327,e.sevenmonospace=65303,e.sevenoldstyle=63287,e.sevenparen=9338,e.sevenperiod=9358,e.sevenpersian=1783,e.sevenroman=8566,e.sevensuperior=8311,e.seventeencircle=9328,e.seventeenparen=9348,e.seventeenperiod=9368,e.seventhai=3671,e.sfthyphen=173,e.shaarmenian=1399,e.shabengali=2486,e.shacyrillic=1096,e.shaddaarabic=1617,e.shaddadammaarabic=64609,e.shaddadammatanarabic=64606,e.shaddafathaarabic=64608,e.shaddakasraarabic=64610,e.shaddakasratanarabic=64607,e.shade=9618,e.shadedark=9619,e.shadelight=9617,e.shademedium=9618,e.shadeva=2358,e.shagujarati=2742,e.shagurmukhi=2614,e.shalshelethebrew=1427,e.shbopomofo=12565,e.shchacyrillic=1097,e.sheenarabic=1588,e.sheenfinalarabic=65206,e.sheeninitialarabic=65207,e.sheenmedialarabic=65208,e.sheicoptic=995,e.sheqel=8362,e.sheqelhebrew=8362,e.sheva=1456,e.sheva115=1456,e.sheva15=1456,e.sheva22=1456,e.sheva2e=1456,e.shevahebrew=1456,e.shevanarrowhebrew=1456,e.shevaquarterhebrew=1456,e.shevawidehebrew=1456,e.shhacyrillic=1211,e.shimacoptic=1005,e.shin=1513,e.shindagesh=64329,e.shindageshhebrew=64329,e.shindageshshindot=64300,e.shindageshshindothebrew=64300,e.shindageshsindot=64301,e.shindageshsindothebrew=64301,e.shindothebrew=1473,e.shinhebrew=1513,e.shinshindot=64298,e.shinshindothebrew=64298,e.shinsindot=64299,e.shinsindothebrew=64299,e.shook=642,e.sigma=963,e.sigma1=962,e.sigmafinal=962,e.sigmalunatesymbolgreek=1010,e.sihiragana=12375,e.sikatakana=12471,e.sikatakanahalfwidth=65404,e.siluqhebrew=1469,e.siluqlefthebrew=1469,e.similar=8764,e.sindothebrew=1474,e.siosacirclekorean=12916,e.siosaparenkorean=12820,e.sioscieuckorean=12670,e.sioscirclekorean=12902,e.sioskiyeokkorean=12666,e.sioskorean=12613,e.siosnieunkorean=12667,e.siosparenkorean=12806,e.siospieupkorean=12669,e.siostikeutkorean=12668,e.six=54,e.sixarabic=1638,e.sixbengali=2540,e.sixcircle=9317,e.sixcircleinversesansserif=10127,e.sixdeva=2412,e.sixgujarati=2796,e.sixgurmukhi=2668,e.sixhackarabic=1638,e.sixhangzhou=12326,e.sixideographicparen=12837,e.sixinferior=8326,e.sixmonospace=65302,e.sixoldstyle=63286,e.sixparen=9337,e.sixperiod=9357,e.sixpersian=1782,e.sixroman=8565,e.sixsuperior=8310,e.sixteencircle=9327,e.sixteencurrencydenominatorbengali=2553,e.sixteenparen=9347,e.sixteenperiod=9367,e.sixthai=3670,e.slash=47,e.slashmonospace=65295,e.slong=383,e.slongdotaccent=7835,e.smileface=9786,e.smonospace=65363,e.sofpasuqhebrew=1475,e.softhyphen=173,e.softsigncyrillic=1100,e.sohiragana=12381,e.sokatakana=12477,e.sokatakanahalfwidth=65407,e.soliduslongoverlaycmb=824,e.solidusshortoverlaycmb=823,e.sorusithai=3625,e.sosalathai=3624,e.sosothai=3595,e.sosuathai=3626,e.space=32,e.spacehackarabic=32,e.spade=9824,e.spadesuitblack=9824,e.spadesuitwhite=9828,e.sparen=9390,e.squarebelowcmb=827,e.squarecc=13252,e.squarecm=13213,e.squarediagonalcrosshatchfill=9641,e.squarehorizontalfill=9636,e.squarekg=13199,e.squarekm=13214,e.squarekmcapital=13262,e.squareln=13265,e.squarelog=13266,e.squaremg=13198,e.squaremil=13269,e.squaremm=13212,e.squaremsquared=13217,e.squareorthogonalcrosshatchfill=9638,e.squareupperlefttolowerrightfill=9639,e.squareupperrighttolowerleftfill=9640,e.squareverticalfill=9637,e.squarewhitewithsmallblack=9635,e.srsquare=13275,e.ssabengali=2487,e.ssadeva=2359,e.ssagujarati=2743,e.ssangcieuckorean=12617,e.ssanghieuhkorean=12677,e.ssangieungkorean=12672,e.ssangkiyeokkorean=12594,e.ssangnieunkorean=12645,e.ssangpieupkorean=12611,e.ssangsioskorean=12614,e.ssangtikeutkorean=12600,e.ssuperior=63218,e.sterling=163,e.sterlingmonospace=65505,e.strokelongoverlaycmb=822,e.strokeshortoverlaycmb=821,e.subset=8834,e.subsetnotequal=8842,e.subsetorequal=8838,e.succeeds=8827,e.suchthat=8715,e.suhiragana=12377,e.sukatakana=12473,e.sukatakanahalfwidth=65405,e.sukunarabic=1618,e.summation=8721,e.sun=9788,e.superset=8835,e.supersetnotequal=8843,e.supersetorequal=8839,e.svsquare=13276,e.syouwaerasquare=13180,e.t=116,e.tabengali=2468,e.tackdown=8868,e.tackleft=8867,e.tadeva=2340,e.tagujarati=2724,e.tagurmukhi=2596,e.taharabic=1591,e.tahfinalarabic=65218,e.tahinitialarabic=65219,e.tahiragana=12383,e.tahmedialarabic=65220,e.taisyouerasquare=13181,e.takatakana=12479,e.takatakanahalfwidth=65408,e.tatweelarabic=1600,e.tau=964,e.tav=1514,e.tavdages=64330,e.tavdagesh=64330,e.tavdageshhebrew=64330,e.tavhebrew=1514,e.tbar=359,e.tbopomofo=12554,e.tcaron=357,e.tccurl=680,e.tcedilla=355,e.tcheharabic=1670,e.tchehfinalarabic=64379,e.tchehinitialarabic=64380,e.tchehmedialarabic=64381,e.tcircle=9443,e.tcircumflexbelow=7793,e.tcommaaccent=355,e.tdieresis=7831,e.tdotaccent=7787,e.tdotbelow=7789,e.tecyrillic=1090,e.tedescendercyrillic=1197,e.teharabic=1578,e.tehfinalarabic=65174,e.tehhahinitialarabic=64674,e.tehhahisolatedarabic=64524,e.tehinitialarabic=65175,e.tehiragana=12390,e.tehjeeminitialarabic=64673,e.tehjeemisolatedarabic=64523,e.tehmarbutaarabic=1577,e.tehmarbutafinalarabic=65172,e.tehmedialarabic=65176,e.tehmeeminitialarabic=64676,e.tehmeemisolatedarabic=64526,e.tehnoonfinalarabic=64627,e.tekatakana=12486,e.tekatakanahalfwidth=65411,e.telephone=8481,e.telephoneblack=9742,e.telishagedolahebrew=1440,e.telishaqetanahebrew=1449,e.tencircle=9321,e.tenideographicparen=12841,e.tenparen=9341,e.tenperiod=9361,e.tenroman=8569,e.tesh=679,e.tet=1496,e.tetdagesh=64312,e.tetdageshhebrew=64312,e.tethebrew=1496,e.tetsecyrillic=1205,e.tevirhebrew=1435,e.tevirlefthebrew=1435,e.thabengali=2469,e.thadeva=2341,e.thagujarati=2725,e.thagurmukhi=2597,e.thalarabic=1584,e.thalfinalarabic=65196,e.thanthakhatlowleftthai=63640,e.thanthakhatlowrightthai=63639,e.thanthakhatthai=3660,e.thanthakhatupperleftthai=63638,e.theharabic=1579,e.thehfinalarabic=65178,e.thehinitialarabic=65179,e.thehmedialarabic=65180,e.thereexists=8707,e.therefore=8756,e.theta=952,e.theta1=977,e.thetasymbolgreek=977,e.thieuthacirclekorean=12921,e.thieuthaparenkorean=12825,e.thieuthcirclekorean=12907,e.thieuthkorean=12620,e.thieuthparenkorean=12811,e.thirteencircle=9324,e.thirteenparen=9344,e.thirteenperiod=9364,e.thonangmonthothai=3601,e.thook=429,e.thophuthaothai=3602,e.thorn=254,e.thothahanthai=3607,e.thothanthai=3600,e.thothongthai=3608,e.thothungthai=3606,e.thousandcyrillic=1154,e.thousandsseparatorarabic=1644,e.thousandsseparatorpersian=1644,e.three=51,e.threearabic=1635,e.threebengali=2537,e.threecircle=9314,e.threecircleinversesansserif=10124,e.threedeva=2409,e.threeeighths=8540,e.threegujarati=2793,e.threegurmukhi=2665,e.threehackarabic=1635,e.threehangzhou=12323,e.threeideographicparen=12834,e.threeinferior=8323,e.threemonospace=65299,e.threenumeratorbengali=2550,e.threeoldstyle=63283,e.threeparen=9334,e.threeperiod=9354,e.threepersian=1779,e.threequarters=190,e.threequartersemdash=63198,e.threeroman=8562,e.threesuperior=179,e.threethai=3667,e.thzsquare=13204,e.tihiragana=12385,e.tikatakana=12481,e.tikatakanahalfwidth=65409,e.tikeutacirclekorean=12912,e.tikeutaparenkorean=12816,e.tikeutcirclekorean=12898,e.tikeutkorean=12599,e.tikeutparenkorean=12802,e.tilde=732,e.tildebelowcmb=816,e.tildecmb=771,e.tildecomb=771,e.tildedoublecmb=864,e.tildeoperator=8764,e.tildeoverlaycmb=820,e.tildeverticalcmb=830,e.timescircle=8855,e.tipehahebrew=1430,e.tipehalefthebrew=1430,e.tippigurmukhi=2672,e.titlocyrilliccmb=1155,e.tiwnarmenian=1407,e.tlinebelow=7791,e.tmonospace=65364,e.toarmenian=1385,e.tohiragana=12392,e.tokatakana=12488,e.tokatakanahalfwidth=65412,e.tonebarextrahighmod=741,e.tonebarextralowmod=745,e.tonebarhighmod=742,e.tonebarlowmod=744,e.tonebarmidmod=743,e.tonefive=445,e.tonesix=389,e.tonetwo=424,e.tonos=900,e.tonsquare=13095,e.topatakthai=3599,e.tortoiseshellbracketleft=12308,e.tortoiseshellbracketleftsmall=65117,e.tortoiseshellbracketleftvertical=65081,e.tortoiseshellbracketright=12309,e.tortoiseshellbracketrightsmall=65118,e.tortoiseshellbracketrightvertical=65082,e.totaothai=3605,e.tpalatalhook=427,e.tparen=9391,e.trademark=8482,e.trademarksans=63722,e.trademarkserif=63195,e.tretroflexhook=648,e.triagdn=9660,e.triaglf=9668,e.triagrt=9658,e.triagup=9650,e.ts=678,e.tsadi=1510,e.tsadidagesh=64326,e.tsadidageshhebrew=64326,e.tsadihebrew=1510,e.tsecyrillic=1094,e.tsere=1461,e.tsere12=1461,e.tsere1e=1461,e.tsere2b=1461,e.tserehebrew=1461,e.tserenarrowhebrew=1461,e.tserequarterhebrew=1461,e.tserewidehebrew=1461,e.tshecyrillic=1115,e.tsuperior=63219,e.ttabengali=2463,e.ttadeva=2335,e.ttagujarati=2719,e.ttagurmukhi=2591,e.tteharabic=1657,e.ttehfinalarabic=64359,e.ttehinitialarabic=64360,e.ttehmedialarabic=64361,e.tthabengali=2464,e.tthadeva=2336,e.tthagujarati=2720,e.tthagurmukhi=2592,e.tturned=647,e.tuhiragana=12388,e.tukatakana=12484,e.tukatakanahalfwidth=65410,e.tusmallhiragana=12387,e.tusmallkatakana=12483,e.tusmallkatakanahalfwidth=65391,e.twelvecircle=9323,e.twelveparen=9343,e.twelveperiod=9363,e.twelveroman=8571,e.twentycircle=9331,e.twentyhangzhou=21316,e.twentyparen=9351,e.twentyperiod=9371,e.two=50,e.twoarabic=1634,e.twobengali=2536,e.twocircle=9313,e.twocircleinversesansserif=10123,e.twodeva=2408,e.twodotenleader=8229,e.twodotleader=8229,e.twodotleadervertical=65072,e.twogujarati=2792,e.twogurmukhi=2664,e.twohackarabic=1634,e.twohangzhou=12322,e.twoideographicparen=12833,e.twoinferior=8322,e.twomonospace=65298,e.twonumeratorbengali=2549,e.twooldstyle=63282,e.twoparen=9333,e.twoperiod=9353,e.twopersian=1778,e.tworoman=8561,e.twostroke=443,e.twosuperior=178,e.twothai=3666,e.twothirds=8532,e.u=117,e.uacute=250,e.ubar=649,e.ubengali=2441,e.ubopomofo=12584,e.ubreve=365,e.ucaron=468,e.ucircle=9444,e.ucircumflex=251,e.ucircumflexbelow=7799,e.ucyrillic=1091,e.udattadeva=2385,e.udblacute=369,e.udblgrave=533,e.udeva=2313,e.udieresis=252,e.udieresisacute=472,e.udieresisbelow=7795,e.udieresiscaron=474,e.udieresiscyrillic=1265,e.udieresisgrave=476,e.udieresismacron=470,e.udotbelow=7909,e.ugrave=249,e.ugujarati=2697,e.ugurmukhi=2569,e.uhiragana=12358,e.uhookabove=7911,e.uhorn=432,e.uhornacute=7913,e.uhorndotbelow=7921,e.uhorngrave=7915,e.uhornhookabove=7917,e.uhorntilde=7919,e.uhungarumlaut=369,e.uhungarumlautcyrillic=1267,e.uinvertedbreve=535,e.ukatakana=12454,e.ukatakanahalfwidth=65395,e.ukcyrillic=1145,e.ukorean=12636,e.umacron=363,e.umacroncyrillic=1263,e.umacrondieresis=7803,e.umatragurmukhi=2625,e.umonospace=65365,e.underscore=95,e.underscoredbl=8215,e.underscoremonospace=65343,e.underscorevertical=65075,e.underscorewavy=65103,e.union=8746,e.universal=8704,e.uogonek=371,e.uparen=9392,e.upblock=9600,e.upperdothebrew=1476,e.upsilon=965,e.upsilondieresis=971,e.upsilondieresistonos=944,e.upsilonlatin=650,e.upsilontonos=973,e.uptackbelowcmb=797,e.uptackmod=724,e.uragurmukhi=2675,e.uring=367,e.ushortcyrillic=1118,e.usmallhiragana=12357,e.usmallkatakana=12453,e.usmallkatakanahalfwidth=65385,e.ustraightcyrillic=1199,e.ustraightstrokecyrillic=1201,e.utilde=361,e.utildeacute=7801,e.utildebelow=7797,e.uubengali=2442,e.uudeva=2314,e.uugujarati=2698,e.uugurmukhi=2570,e.uumatragurmukhi=2626,e.uuvowelsignbengali=2498,e.uuvowelsigndeva=2370,e.uuvowelsigngujarati=2754,e.uvowelsignbengali=2497,e.uvowelsigndeva=2369,e.uvowelsigngujarati=2753,e.v=118,e.vadeva=2357,e.vagujarati=2741,e.vagurmukhi=2613,e.vakatakana=12535,e.vav=1493,e.vavdagesh=64309,e.vavdagesh65=64309,e.vavdageshhebrew=64309,e.vavhebrew=1493,e.vavholam=64331,e.vavholamhebrew=64331,e.vavvavhebrew=1520,e.vavyodhebrew=1521,e.vcircle=9445,e.vdotbelow=7807,e.vecyrillic=1074,e.veharabic=1700,e.vehfinalarabic=64363,e.vehinitialarabic=64364,e.vehmedialarabic=64365,e.vekatakana=12537,e.venus=9792,e.verticalbar=124,e.verticallineabovecmb=781,e.verticallinebelowcmb=809,e.verticallinelowmod=716,e.verticallinemod=712,e.vewarmenian=1406,e.vhook=651,e.vikatakana=12536,e.viramabengali=2509,e.viramadeva=2381,e.viramagujarati=2765,e.visargabengali=2435,e.visargadeva=2307,e.visargagujarati=2691,e.vmonospace=65366,e.voarmenian=1400,e.voicediterationhiragana=12446,e.voicediterationkatakana=12542,e.voicedmarkkana=12443,e.voicedmarkkanahalfwidth=65438,e.vokatakana=12538,e.vparen=9393,e.vtilde=7805,e.vturned=652,e.vuhiragana=12436,e.vukatakana=12532,e.w=119,e.wacute=7811,e.waekorean=12633,e.wahiragana=12431,e.wakatakana=12527,e.wakatakanahalfwidth=65436,e.wakorean=12632,e.wasmallhiragana=12430,e.wasmallkatakana=12526,e.wattosquare=13143,e.wavedash=12316,e.wavyunderscorevertical=65076,e.wawarabic=1608,e.wawfinalarabic=65262,e.wawhamzaabovearabic=1572,e.wawhamzaabovefinalarabic=65158,e.wbsquare=13277,e.wcircle=9446,e.wcircumflex=373,e.wdieresis=7813,e.wdotaccent=7815,e.wdotbelow=7817,e.wehiragana=12433,e.weierstrass=8472,e.wekatakana=12529,e.wekorean=12638,e.weokorean=12637,e.wgrave=7809,e.whitebullet=9702,e.whitecircle=9675,e.whitecircleinverse=9689,e.whitecornerbracketleft=12302,e.whitecornerbracketleftvertical=65091,e.whitecornerbracketright=12303,e.whitecornerbracketrightvertical=65092,e.whitediamond=9671,e.whitediamondcontainingblacksmalldiamond=9672,e.whitedownpointingsmalltriangle=9663,e.whitedownpointingtriangle=9661,e.whiteleftpointingsmalltriangle=9667,e.whiteleftpointingtriangle=9665,e.whitelenticularbracketleft=12310,e.whitelenticularbracketright=12311,e.whiterightpointingsmalltriangle=9657;e.whiterightpointingtriangle=9655,e.whitesmallsquare=9643,e.whitesmilingface=9786,e.whitesquare=9633,e.whitestar=9734,e.whitetelephone=9743,e.whitetortoiseshellbracketleft=12312,e.whitetortoiseshellbracketright=12313,e.whiteuppointingsmalltriangle=9653,e.whiteuppointingtriangle=9651,e.wihiragana=12432,e.wikatakana=12528,e.wikorean=12639,e.wmonospace=65367,e.wohiragana=12434,e.wokatakana=12530,e.wokatakanahalfwidth=65382,e.won=8361,e.wonmonospace=65510,e.wowaenthai=3623,e.wparen=9394,e.wring=7832,e.wsuperior=695,e.wturned=653,e.wynn=447,e.x=120,e.xabovecmb=829,e.xbopomofo=12562,e.xcircle=9447,e.xdieresis=7821,e.xdotaccent=7819,e.xeharmenian=1389,e.xi=958,e.xmonospace=65368,e.xparen=9395,e.xsuperior=739,e.y=121,e.yaadosquare=13134,e.yabengali=2479,e.yacute=253,e.yadeva=2351,e.yaekorean=12626,e.yagujarati=2735,e.yagurmukhi=2607,e.yahiragana=12420,e.yakatakana=12516,e.yakatakanahalfwidth=65428,e.yakorean=12625,e.yamakkanthai=3662,e.yasmallhiragana=12419,e.yasmallkatakana=12515,e.yasmallkatakanahalfwidth=65388,e.yatcyrillic=1123,e.ycircle=9448,e.ycircumflex=375,e.ydieresis=255,e.ydotaccent=7823,e.ydotbelow=7925,e.yeharabic=1610,e.yehbarreearabic=1746,e.yehbarreefinalarabic=64431,e.yehfinalarabic=65266,e.yehhamzaabovearabic=1574,e.yehhamzaabovefinalarabic=65162,e.yehhamzaaboveinitialarabic=65163,e.yehhamzaabovemedialarabic=65164,e.yehinitialarabic=65267,e.yehmedialarabic=65268,e.yehmeeminitialarabic=64733,e.yehmeemisolatedarabic=64600,e.yehnoonfinalarabic=64660,e.yehthreedotsbelowarabic=1745,e.yekorean=12630,e.yen=165,e.yenmonospace=65509,e.yeokorean=12629,e.yeorinhieuhkorean=12678,e.yerahbenyomohebrew=1450,e.yerahbenyomolefthebrew=1450,e.yericyrillic=1099,e.yerudieresiscyrillic=1273,e.yesieungkorean=12673,e.yesieungpansioskorean=12675,e.yesieungsioskorean=12674,e.yetivhebrew=1434,e.ygrave=7923,e.yhook=436,e.yhookabove=7927,e.yiarmenian=1397,e.yicyrillic=1111,e.yikorean=12642,e.yinyang=9775,e.yiwnarmenian=1410,e.ymonospace=65369,e.yod=1497,e.yoddagesh=64313,e.yoddageshhebrew=64313,e.yodhebrew=1497,e.yodyodhebrew=1522,e.yodyodpatahhebrew=64287,e.yohiragana=12424,e.yoikorean=12681,e.yokatakana=12520,e.yokatakanahalfwidth=65430,e.yokorean=12635,e.yosmallhiragana=12423,e.yosmallkatakana=12519,e.yosmallkatakanahalfwidth=65390,e.yotgreek=1011,e.yoyaekorean=12680,e.yoyakorean=12679,e.yoyakthai=3618,e.yoyingthai=3597,e.yparen=9396,e.ypogegrammeni=890,e.ypogegrammenigreekcmb=837,e.yr=422,e.yring=7833,e.ysuperior=696,e.ytilde=7929,e.yturned=654,e.yuhiragana=12422,e.yuikorean=12684,e.yukatakana=12518,e.yukatakanahalfwidth=65429,e.yukorean=12640,e.yusbigcyrillic=1131,e.yusbigiotifiedcyrillic=1133,e.yuslittlecyrillic=1127,e.yuslittleiotifiedcyrillic=1129,e.yusmallhiragana=12421,e.yusmallkatakana=12517,e.yusmallkatakanahalfwidth=65389,e.yuyekorean=12683,e.yuyeokorean=12682,e.yyabengali=2527,e.yyadeva=2399,e.z=122,e.zaarmenian=1382,e.zacute=378,e.zadeva=2395,e.zagurmukhi=2651,e.zaharabic=1592,e.zahfinalarabic=65222,e.zahinitialarabic=65223,e.zahiragana=12374,e.zahmedialarabic=65224,e.zainarabic=1586,e.zainfinalarabic=65200,e.zakatakana=12470,e.zaqefgadolhebrew=1429,e.zaqefqatanhebrew=1428,e.zarqahebrew=1432,e.zayin=1494,e.zayindagesh=64310,e.zayindageshhebrew=64310,e.zayinhebrew=1494,e.zbopomofo=12567,e.zcaron=382,e.zcircle=9449,e.zcircumflex=7825,e.zcurl=657,e.zdot=380,e.zdotaccent=380,e.zdotbelow=7827,e.zecyrillic=1079,e.zedescendercyrillic=1177,e.zedieresiscyrillic=1247,e.zehiragana=12380,e.zekatakana=12476,e.zero=48,e.zeroarabic=1632,e.zerobengali=2534,e.zerodeva=2406,e.zerogujarati=2790,e.zerogurmukhi=2662,e.zerohackarabic=1632,e.zeroinferior=8320,e.zeromonospace=65296,e.zerooldstyle=63280,e.zeropersian=1776,e.zerosuperior=8304,e.zerothai=3664,e.zerowidthjoiner=65279,e.zerowidthnonjoiner=8204,e.zerowidthspace=8203,e.zeta=950,e.zhbopomofo=12563,e.zhearmenian=1386,e.zhebrevecyrillic=1218,e.zhecyrillic=1078,e.zhedescendercyrillic=1175,e.zhedieresiscyrillic=1245,e.zihiragana=12376,e.zikatakana=12472,e.zinorhebrew=1454,e.zlinebelow=7829,e.zmonospace=65370,e.zohiragana=12382,e.zokatakana=12478,e.zparen=9397,e.zretroflexhook=656,e.zstroke=438,e.zuhiragana=12378,e.zukatakana=12474,e[".notdef"]=0,e.angbracketleftbig=9001,e.angbracketleftBig=9001,e.angbracketleftbigg=9001,e.angbracketleftBigg=9001,e.angbracketrightBig=9002,e.angbracketrightbig=9002,e.angbracketrightBigg=9002,e.angbracketrightbigg=9002,e.arrowhookleft=8618,e.arrowhookright=8617,e.arrowlefttophalf=8636,e.arrowleftbothalf=8637,e.arrownortheast=8599,e.arrownorthwest=8598,e.arrowrighttophalf=8640,e.arrowrightbothalf=8641,e.arrowsoutheast=8600,e.arrowsouthwest=8601,e.backslashbig=8726,e.backslashBig=8726,e.backslashBigg=8726,e.backslashbigg=8726,e.bardbl=8214,e.bracehtipdownleft=65079,e.bracehtipdownright=65079,e.bracehtipupleft=65080,e.bracehtipupright=65080,e.braceleftBig=123,e.braceleftbig=123,e.braceleftbigg=123,e.braceleftBigg=123,e.bracerightBig=125,e.bracerightbig=125,e.bracerightbigg=125,e.bracerightBigg=125,e.bracketleftbig=91,e.bracketleftBig=91,e.bracketleftbigg=91,e.bracketleftBigg=91,e.bracketrightBig=93,e.bracketrightbig=93,e.bracketrightbigg=93,e.bracketrightBigg=93,e.ceilingleftbig=8968,e.ceilingleftBig=8968,e.ceilingleftBigg=8968,e.ceilingleftbigg=8968,e.ceilingrightbig=8969,e.ceilingrightBig=8969,e.ceilingrightbigg=8969,e.ceilingrightBigg=8969,e.circledotdisplay=8857,e.circledottext=8857,e.circlemultiplydisplay=8855,e.circlemultiplytext=8855,e.circleplusdisplay=8853,e.circleplustext=8853,e.contintegraldisplay=8750,e.contintegraltext=8750,e.coproductdisplay=8720,e.coproducttext=8720,e.floorleftBig=8970,e.floorleftbig=8970,e.floorleftbigg=8970,e.floorleftBigg=8970,e.floorrightbig=8971,e.floorrightBig=8971,e.floorrightBigg=8971,e.floorrightbigg=8971,e.hatwide=770,e.hatwider=770,e.hatwidest=770,e.intercal=7488,e.integraldisplay=8747,e.integraltext=8747,e.intersectiondisplay=8898,e.intersectiontext=8898,e.logicalanddisplay=8743,e.logicalandtext=8743,e.logicalordisplay=8744,e.logicalortext=8744,e.parenleftBig=40,e.parenleftbig=40,e.parenleftBigg=40,e.parenleftbigg=40,e.parenrightBig=41,e.parenrightbig=41,e.parenrightBigg=41,e.parenrightbigg=41,e.prime=8242,e.productdisplay=8719,e.producttext=8719,e.radicalbig=8730,e.radicalBig=8730,e.radicalBigg=8730,e.radicalbigg=8730,e.radicalbt=8730,e.radicaltp=8730,e.radicalvertex=8730,e.slashbig=47,e.slashBig=47,e.slashBigg=47,e.slashbigg=47,e.summationdisplay=8721,e.summationtext=8721,e.tildewide=732,e.tildewider=732,e.tildewidest=732,e.uniondisplay=8899,e.unionmultidisplay=8846,e.unionmultitext=8846,e.unionsqdisplay=8852,e.unionsqtext=8852,e.uniontext=8899,e.vextenddouble=8741,e.vextendsingle=8739}),a=r(function(e){e.space=32,e.a1=9985,e.a2=9986,e.a202=9987,e.a3=9988,e.a4=9742,e.a5=9990,e.a119=9991,e.a118=9992,e.a117=9993,e.a11=9755,e.a12=9758,e.a13=9996,e.a14=9997,e.a15=9998,e.a16=9999,e.a105=1e4,e.a17=10001,e.a18=10002,e.a19=10003,e.a20=10004,e.a21=10005,e.a22=10006,e.a23=10007,e.a24=10008,e.a25=10009,e.a26=10010,e.a27=10011,e.a28=10012,e.a6=10013,e.a7=10014,e.a8=10015,e.a9=10016,e.a10=10017,e.a29=10018,e.a30=10019,e.a31=10020,e.a32=10021,e.a33=10022,e.a34=10023,e.a35=9733,e.a36=10025,e.a37=10026,e.a38=10027,e.a39=10028,e.a40=10029,e.a41=10030,e.a42=10031,e.a43=10032,e.a44=10033,e.a45=10034,e.a46=10035,e.a47=10036,e.a48=10037,e.a49=10038,e.a50=10039,e.a51=10040,e.a52=10041,e.a53=10042,e.a54=10043,e.a55=10044,e.a56=10045,e.a57=10046,e.a58=10047,e.a59=10048,e.a60=10049,e.a61=10050,e.a62=10051,e.a63=10052,e.a64=10053,e.a65=10054,e.a66=10055,e.a67=10056,e.a68=10057,e.a69=10058,e.a70=10059,e.a71=9679,e.a72=10061,e.a73=9632,e.a74=10063,e.a203=10064,e.a75=10065,e.a204=10066,e.a76=9650,e.a77=9660,e.a78=9670,e.a79=10070,e.a81=9687,e.a82=10072,e.a83=10073,e.a84=10074,e.a97=10075,e.a98=10076,e.a99=10077,e.a100=10078,e.a101=10081,e.a102=10082,e.a103=10083,e.a104=10084,e.a106=10085,e.a107=10086,e.a108=10087,e.a112=9827,e.a111=9830,e.a110=9829,e.a109=9824,e.a120=9312,e.a121=9313,e.a122=9314,e.a123=9315,e.a124=9316,e.a125=9317,e.a126=9318,e.a127=9319,e.a128=9320,e.a129=9321,e.a130=10102,e.a131=10103,e.a132=10104,e.a133=10105,e.a134=10106,e.a135=10107,e.a136=10108,e.a137=10109,e.a138=10110,e.a139=10111,e.a140=10112,e.a141=10113,e.a142=10114,e.a143=10115,e.a144=10116,e.a145=10117,e.a146=10118,e.a147=10119,e.a148=10120,e.a149=10121,e.a150=10122,e.a151=10123,e.a152=10124,e.a153=10125,e.a154=10126,e.a155=10127,e.a156=10128,e.a157=10129,e.a158=10130,e.a159=10131,e.a160=10132,e.a161=8594,e.a163=8596,e.a164=8597,e.a196=10136,e.a165=10137,e.a192=10138,e.a166=10139,e.a167=10140,e.a168=10141,e.a169=10142,e.a170=10143,e.a171=10144,e.a172=10145,e.a173=10146,e.a162=10147,e.a174=10148,e.a175=10149,e.a176=10150,e.a177=10151,e.a178=10152,e.a179=10153,e.a193=10154,e.a180=10155,e.a199=10156,e.a181=10157,e.a200=10158,e.a182=10159,e.a201=10161,e.a183=10162,e.a184=10163,e.a197=10164,e.a185=10165,e.a194=10166,e.a198=10167,e.a186=10168,e.a195=10169,e.a187=10170,e.a188=10171,e.a189=10172,e.a190=10173,e.a191=10174,e.a89=10088,e.a90=10089,e.a93=10090,e.a94=10091,e.a91=10092,e.a92=10093,e.a205=10094,e.a85=10095,e.a206=10096,e.a86=10097,e.a87=10098,e.a88=10099,e.a95=10100,e.a96=10101,e[".notdef"]=0});t.getGlyphsUnicode=i,t.getDingbatsGlyphsUnicode=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSupplementalGlyphMapForCalibri=t.getSupplementalGlyphMapForArialBlack=t.getGlyphMapForStandardFonts=t.getSymbolsFonts=t.getSerifFonts=t.getNonStdFontMap=t.getStdFontMap=void 0;var r=n(8);const i=(0,r.getLookupTableFactory)(function(e){e.ArialNarrow="Helvetica",e["ArialNarrow-Bold"]="Helvetica-Bold",e["ArialNarrow-BoldItalic"]="Helvetica-BoldOblique",e["ArialNarrow-Italic"]="Helvetica-Oblique",e.ArialBlack="Helvetica",e["ArialBlack-Bold"]="Helvetica-Bold",e["ArialBlack-BoldItalic"]="Helvetica-BoldOblique",e["ArialBlack-Italic"]="Helvetica-Oblique",e["Arial-Black"]="Helvetica",e["Arial-Black-Bold"]="Helvetica-Bold",e["Arial-Black-BoldItalic"]="Helvetica-BoldOblique",e["Arial-Black-Italic"]="Helvetica-Oblique",e.Arial="Helvetica",e["Arial-Bold"]="Helvetica-Bold",e["Arial-BoldItalic"]="Helvetica-BoldOblique",e["Arial-Italic"]="Helvetica-Oblique",e["Arial-BoldItalicMT"]="Helvetica-BoldOblique",e["Arial-BoldMT"]="Helvetica-Bold",e["Arial-ItalicMT"]="Helvetica-Oblique",e.ArialMT="Helvetica",e["Courier-Bold"]="Courier-Bold",e["Courier-BoldItalic"]="Courier-BoldOblique",e["Courier-Italic"]="Courier-Oblique",e.CourierNew="Courier",e["CourierNew-Bold"]="Courier-Bold",e["CourierNew-BoldItalic"]="Courier-BoldOblique",e["CourierNew-Italic"]="Courier-Oblique",e["CourierNewPS-BoldItalicMT"]="Courier-BoldOblique",e["CourierNewPS-BoldMT"]="Courier-Bold",e["CourierNewPS-ItalicMT"]="Courier-Oblique",e.CourierNewPSMT="Courier",e.Helvetica="Helvetica",e["Helvetica-Bold"]="Helvetica-Bold",e["Helvetica-BoldItalic"]="Helvetica-BoldOblique",e["Helvetica-BoldOblique"]="Helvetica-BoldOblique",e["Helvetica-Italic"]="Helvetica-Oblique",e["Helvetica-Oblique"]="Helvetica-Oblique",e["Symbol-Bold"]="Symbol",e["Symbol-BoldItalic"]="Symbol",e["Symbol-Italic"]="Symbol",e.TimesNewRoman="Times-Roman",e["TimesNewRoman-Bold"]="Times-Bold",e["TimesNewRoman-BoldItalic"]="Times-BoldItalic",e["TimesNewRoman-Italic"]="Times-Italic",e.TimesNewRomanPS="Times-Roman",e["TimesNewRomanPS-Bold"]="Times-Bold",e["TimesNewRomanPS-BoldItalic"]="Times-BoldItalic",e["TimesNewRomanPS-BoldItalicMT"]="Times-BoldItalic",e["TimesNewRomanPS-BoldMT"]="Times-Bold",e["TimesNewRomanPS-Italic"]="Times-Italic",e["TimesNewRomanPS-ItalicMT"]="Times-Italic",e.TimesNewRomanPSMT="Times-Roman",e["TimesNewRomanPSMT-Bold"]="Times-Bold",e["TimesNewRomanPSMT-BoldItalic"]="Times-BoldItalic",e["TimesNewRomanPSMT-Italic"]="Times-Italic"});t.getStdFontMap=i;const a=(0,r.getLookupTableFactory)(function(e){e.Calibri="Helvetica",e["Calibri-Bold"]="Helvetica-Bold",e["Calibri-BoldItalic"]="Helvetica-BoldOblique",e["Calibri-Italic"]="Helvetica-Oblique",e.CenturyGothic="Helvetica",e["CenturyGothic-Bold"]="Helvetica-Bold",e["CenturyGothic-BoldItalic"]="Helvetica-BoldOblique",e["CenturyGothic-Italic"]="Helvetica-Oblique",e.ComicSansMS="Comic Sans MS",e["ComicSansMS-Bold"]="Comic Sans MS-Bold",e["ComicSansMS-BoldItalic"]="Comic Sans MS-BoldItalic",e["ComicSansMS-Italic"]="Comic Sans MS-Italic",e.LucidaConsole="Courier",e["LucidaConsole-Bold"]="Courier-Bold",e["LucidaConsole-BoldItalic"]="Courier-BoldOblique",e["LucidaConsole-Italic"]="Courier-Oblique",e["LucidaSans-Demi"]="Helvetica-Bold",e["MS-Gothic"]="MS Gothic",e["MS-Gothic-Bold"]="MS Gothic-Bold",e["MS-Gothic-BoldItalic"]="MS Gothic-BoldItalic",e["MS-Gothic-Italic"]="MS Gothic-Italic",e["MS-Mincho"]="MS Mincho",e["MS-Mincho-Bold"]="MS Mincho-Bold",e["MS-Mincho-BoldItalic"]="MS Mincho-BoldItalic",e["MS-Mincho-Italic"]="MS Mincho-Italic",e["MS-PGothic"]="MS PGothic",e["MS-PGothic-Bold"]="MS PGothic-Bold",e["MS-PGothic-BoldItalic"]="MS PGothic-BoldItalic",e["MS-PGothic-Italic"]="MS PGothic-Italic",e["MS-PMincho"]="MS PMincho",e["MS-PMincho-Bold"]="MS PMincho-Bold",e["MS-PMincho-BoldItalic"]="MS PMincho-BoldItalic",e["MS-PMincho-Italic"]="MS PMincho-Italic",e.NuptialScript="Times-Italic",e.SegoeUISymbol="Helvetica",e.Wingdings="ZapfDingbats",e["Wingdings-Regular"]="ZapfDingbats"});t.getNonStdFontMap=a;const o=(0,r.getLookupTableFactory)(function(e){e["Adobe Jenson"]=!0,e["Adobe Text"]=!0,e.Albertus=!0,e.Aldus=!0,e.Alexandria=!0,e.Algerian=!0,e["American Typewriter"]=!0,e.Antiqua=!0,e.Apex=!0,e.Arno=!0,e.Aster=!0,e.Aurora=!0,e.Baskerville=!0,e.Bell=!0,e.Bembo=!0,e["Bembo Schoolbook"]=!0,e.Benguiat=!0,e["Berkeley Old Style"]=!0,e["Bernhard Modern"]=!0,e["Berthold City"]=!0,e.Bodoni=!0,e["Bauer Bodoni"]=!0,e["Book Antiqua"]=!0,e.Bookman=!0,e["Bordeaux Roman"]=!0,e["Californian FB"]=!0,e.Calisto=!0,e.Calvert=!0,e.Capitals=!0,e.Cambria=!0,e.Cartier=!0,e.Caslon=!0,e.Catull=!0,e.Centaur=!0,e["Century Old Style"]=!0,e["Century Schoolbook"]=!0,e.Chaparral=!0,e["Charis SIL"]=!0,e.Cheltenham=!0,e["Cholla Slab"]=!0,e.Clarendon=!0,e.Clearface=!0,e.Cochin=!0,e.Colonna=!0,e["Computer Modern"]=!0,e["Concrete Roman"]=!0,e.Constantia=!0,e["Cooper Black"]=!0,e.Corona=!0,e.Ecotype=!0,e.Egyptienne=!0,e.Elephant=!0,e.Excelsior=!0,e.Fairfield=!0,e["FF Scala"]=!0,e.Folkard=!0,e.Footlight=!0,e.FreeSerif=!0,e["Friz Quadrata"]=!0,e.Garamond=!0,e.Gentium=!0,e.Georgia=!0,e.Gloucester=!0,e["Goudy Old Style"]=!0,e["Goudy Schoolbook"]=!0,e["Goudy Pro Font"]=!0,e.Granjon=!0,e["Guardian Egyptian"]=!0,e.Heather=!0,e.Hercules=!0,e["High Tower Text"]=!0,e.Hiroshige=!0,e["Hoefler Text"]=!0,e["Humana Serif"]=!0,e.Imprint=!0,e["Ionic No. 5"]=!0,e.Janson=!0,e.Joanna=!0,e.Korinna=!0,e.Lexicon=!0,e["Liberation Serif"]=!0,e["Linux Libertine"]=!0,e.Literaturnaya=!0,e.Lucida=!0,e["Lucida Bright"]=!0,e.Melior=!0,e.Memphis=!0,e.Miller=!0,e.Minion=!0,e.Modern=!0,e["Mona Lisa"]=!0,e["Mrs Eaves"]=!0,e["MS Serif"]=!0,e["Museo Slab"]=!0,e["New York"]=!0,e["Nimbus Roman"]=!0,e["NPS Rawlinson Roadway"]=!0,e.NuptialScript=!0,e.Palatino=!0,e.Perpetua=!0,e.Plantin=!0,e["Plantin Schoolbook"]=!0,e.Playbill=!0,e["Poor Richard"]=!0,e["Rawlinson Roadway"]=!0,e.Renault=!0,e.Requiem=!0,e.Rockwell=!0,e.Roman=!0,e["Rotis Serif"]=!0,e.Sabon=!0,e.Scala=!0,e.Seagull=!0,e.Sistina=!0,e.Souvenir=!0,e.STIX=!0,e["Stone Informal"]=!0,e["Stone Serif"]=!0,e.Sylfaen=!0,e.Times=!0,e.Trajan=!0,e["Trinité"]=!0,e["Trump Mediaeval"]=!0,e.Utopia=!0,e["Vale Type"]=!0,e["Bitstream Vera"]=!0,e["Vera Serif"]=!0,e.Versailles=!0,e.Wanted=!0,e.Weiss=!0,e["Wide Latin"]=!0,e.Windsor=!0,e.XITS=!0});t.getSerifFonts=o;const s=(0,r.getLookupTableFactory)(function(e){e.Dingbats=!0,e.Symbol=!0,e.ZapfDingbats=!0});t.getSymbolsFonts=s;const l=(0,r.getLookupTableFactory)(function(e){e[2]=10,e[3]=32,e[4]=33,e[5]=34,e[6]=35,e[7]=36,e[8]=37,e[9]=38,e[10]=39,e[11]=40,e[12]=41,e[13]=42,e[14]=43,e[15]=44,e[16]=45,e[17]=46,e[18]=47,e[19]=48,e[20]=49,e[21]=50,e[22]=51,e[23]=52,e[24]=53,e[25]=54,e[26]=55,e[27]=56,e[28]=57,e[29]=58,e[30]=894,e[31]=60,e[32]=61,e[33]=62,e[34]=63,e[35]=64,e[36]=65,e[37]=66,e[38]=67,e[39]=68,e[40]=69,e[41]=70,e[42]=71,e[43]=72,e[44]=73,e[45]=74,e[46]=75,e[47]=76,e[48]=77,e[49]=78,e[50]=79,e[51]=80,e[52]=81,e[53]=82,e[54]=83,e[55]=84,e[56]=85,e[57]=86,e[58]=87,e[59]=88,e[60]=89,e[61]=90,e[62]=91,e[63]=92,e[64]=93,e[65]=94,e[66]=95,e[67]=96,e[68]=97,e[69]=98,e[70]=99,e[71]=100,e[72]=101,e[73]=102,e[74]=103,e[75]=104,e[76]=105,e[77]=106,e[78]=107,e[79]=108,e[80]=109,e[81]=110,e[82]=111,e[83]=112,e[84]=113,e[85]=114,e[86]=115,e[87]=116,e[88]=117,e[89]=118,e[90]=119,e[91]=120,e[92]=121,e[93]=122,e[94]=123,e[95]=124,e[96]=125,e[97]=126,e[98]=196,e[99]=197,e[100]=199,e[101]=201,e[102]=209,e[103]=214,e[104]=220,e[105]=225,e[106]=224,e[107]=226,e[108]=228,e[109]=227,e[110]=229,e[111]=231,e[112]=233,e[113]=232,e[114]=234,e[115]=235,e[116]=237,e[117]=236,e[118]=238,e[119]=239,e[120]=241,e[121]=243,e[122]=242,e[123]=244,e[124]=246,e[125]=245,e[126]=250,e[127]=249,e[128]=251,e[129]=252,e[130]=8224,e[131]=176,e[132]=162,e[133]=163,e[134]=167,e[135]=8226,e[136]=182,e[137]=223,e[138]=174,e[139]=169,e[140]=8482,e[141]=180,e[142]=168,e[143]=8800,e[144]=198,e[145]=216,e[146]=8734,e[147]=177,e[148]=8804,e[149]=8805,e[150]=165,e[151]=181,e[152]=8706,e[153]=8721,e[154]=8719,e[156]=8747,e[157]=170,e[158]=186,e[159]=8486,e[160]=230,e[161]=248,e[162]=191,e[163]=161,e[164]=172,e[165]=8730,e[166]=402,e[167]=8776,e[168]=8710,e[169]=171,e[170]=187,e[171]=8230,e[210]=218,e[223]=711,e[224]=321,e[225]=322,e[227]=353,e[229]=382,e[234]=253,e[252]=263,e[253]=268,e[254]=269,e[258]=258,e[260]=260,e[261]=261,e[265]=280,e[266]=281,e[268]=283,e[269]=313,e[275]=323,e[276]=324,e[278]=328,e[284]=345,e[285]=346,e[286]=347,e[292]=367,e[295]=377,e[296]=378,e[298]=380,e[305]=963,e[306]=964,e[307]=966,e[308]=8215,e[309]=8252,e[310]=8319,e[311]=8359,e[312]=8592,e[313]=8593,e[337]=9552,e[493]=1039,e[494]=1040,e[705]=1524,e[706]=8362,e[710]=64288,e[711]=64298,e[759]=1617,e[761]=1776,e[763]=1778,e[775]=1652,e[777]=1764,e[778]=1780,e[779]=1781,e[780]=1782,e[782]=771,e[783]=64726,e[786]=8363,e[788]=8532,e[790]=768,e[791]=769,e[792]=768,e[795]=803,e[797]=64336,e[798]=64337,e[799]=64342,e[800]=64343,e[801]=64344,e[802]=64345,e[803]=64362,e[804]=64363,e[805]=64364,e[2424]=7821,e[2425]=7822,e[2426]=7823,e[2427]=7824,e[2428]=7825,e[2429]=7826,e[2430]=7827,e[2433]=7682,e[2678]=8045,e[2679]=8046,e[2830]=1552,e[2838]=686,e[2840]=751,e[2842]=753,e[2843]=754,e[2844]=755,e[2846]=757,e[2856]=767,e[2857]=848,e[2858]=849,e[2862]=853,e[2863]=854,e[2864]=855,e[2865]=861,e[2866]=862,e[2906]=7460,e[2908]=7462,e[2909]=7463,e[2910]=7464,e[2912]=7466,e[2913]=7467,e[2914]=7468,e[2916]=7470,e[2917]=7471,e[2918]=7472,e[2920]=7474,e[2921]=7475,e[2922]=7476,e[2924]=7478,e[2925]=7479,e[2926]=7480,e[2928]=7482,e[2929]=7483,e[2930]=7484,e[2932]=7486,e[2933]=7487,e[2934]=7488,e[2936]=7490,e[2937]=7491,e[2938]=7492,e[2940]=7494,e[2941]=7495,e[2942]=7496,e[2944]=7498,e[2946]=7500,e[2948]=7502,e[2950]=7504,e[2951]=7505,e[2952]=7506,e[2954]=7508,e[2955]=7509,e[2956]=7510,e[2958]=7512,e[2959]=7513,e[2960]=7514,e[2962]=7516,e[2963]=7517,e[2964]=7518,e[2966]=7520,e[2967]=7521,e[2968]=7522,e[2970]=7524,e[2971]=7525,e[2972]=7526,e[2974]=7528,e[2975]=7529,e[2976]=7530,e[2978]=1537,e[2979]=1538,e[2980]=1539,e[2982]=1549,e[2983]=1551,e[2984]=1552,e[2986]=1554,e[2987]=1555,e[2988]=1556,e[2990]=1623,e[2991]=1624,e[2995]=1775,e[2999]=1791,e[3002]=64290,e[3003]=64291,e[3004]=64292,e[3006]=64294,e[3007]=64295,e[3008]=64296,e[3011]=1900,e[3014]=8223,e[3015]=8244,e[3017]=7532,e[3018]=7533,e[3019]=7534,e[3075]=7590,e[3076]=7591,e[3079]=7594,e[3080]=7595,e[3083]=7598,e[3084]=7599,e[3087]=7602,e[3088]=7603,e[3091]=7606,e[3092]=7607,e[3095]=7610,e[3096]=7611,e[3099]=7614,e[3100]=7615,e[3103]=7618,e[3104]=7619,e[3107]=8337,e[3108]=8338,e[3116]=1884,e[3119]=1885,e[3120]=1885,e[3123]=1886,e[3124]=1886,e[3127]=1887,e[3128]=1887,e[3131]=1888,e[3132]=1888,e[3135]=1889,e[3136]=1889,e[3139]=1890,e[3140]=1890,e[3143]=1891,e[3144]=1891,e[3147]=1892,e[3148]=1892,e[3153]=580,e[3154]=581,e[3157]=584,e[3158]=585,e[3161]=588,e[3162]=589,e[3165]=891,e[3166]=892,e[3169]=1274,e[3170]=1275,e[3173]=1278,e[3174]=1279,e[3181]=7622,e[3182]=7623,e[3282]=11799,e[3316]=578,e[3379]=42785,e[3393]=1159,e[3416]=8377});t.getGlyphMapForStandardFonts=l;const c=(0,r.getLookupTableFactory)(function(e){e[227]=322,e[264]=261,e[291]=346});t.getSupplementalGlyphMapForArialBlack=c;const u=(0,r.getLookupTableFactory)(function(e){e[1]=32,e[4]=65,e[17]=66,e[18]=67,e[24]=68,e[28]=69,e[38]=70,e[39]=71,e[44]=72,e[47]=73,e[58]=74,e[60]=75,e[62]=76,e[68]=77,e[69]=78,e[75]=79,e[87]=80,e[89]=81,e[90]=82,e[94]=83,e[100]=84,e[104]=85,e[115]=86,e[116]=87,e[121]=88,e[122]=89,e[127]=90,e[258]=97,e[268]=261,e[271]=98,e[272]=99,e[273]=263,e[282]=100,e[286]=101,e[295]=281,e[296]=102,e[336]=103,e[346]=104,e[349]=105,e[361]=106,e[364]=107,e[367]=108,e[371]=322,e[373]=109,e[374]=110,e[381]=111,e[383]=243,e[393]=112,e[395]=113,e[396]=114,e[400]=115,e[401]=347,e[410]=116,e[437]=117,e[448]=118,e[449]=119,e[454]=120,e[455]=121,e[460]=122,e[463]=380,e[853]=44,e[855]=58,e[856]=46,e[876]=47,e[878]=45,e[882]=45,e[894]=40,e[895]=41,e[896]=91,e[897]=93,e[923]=64,e[1004]=48,e[1005]=49,e[1006]=50,e[1007]=51,e[1008]=52,e[1009]=53,e[1010]=54,e[1011]=55,e[1012]=56,e[1013]=57,e[1081]=37,e[1085]=43,e[1086]=45});t.getSupplementalGlyphMapForCalibri=u},function(e,t,n){var r=n(8).getLookupTableFactory,i=r(function(e){e[63721]=169,e[63193]=169,e[63720]=174,e[63194]=174,e[63722]=8482,e[63195]=8482,e[63729]=9127,e[63730]=9128,e[63731]=9129,e[63740]=9131,e[63741]=9132,e[63742]=9133,e[63726]=9121,e[63727]=9122,e[63728]=9123,e[63737]=9124,e[63738]=9125,e[63739]=9126,e[63723]=9115,e[63724]=9116,e[63725]=9117,e[63734]=9118,e[63735]=9119,e[63736]=9120});var a=[{begin:0,end:127},{begin:128,end:255},{begin:256,end:383},{begin:384,end:591},{begin:592,end:687},{begin:688,end:767},{begin:768,end:879},{begin:880,end:1023},{begin:11392,end:11519},{begin:1024,end:1279},{begin:1328,end:1423},{begin:1424,end:1535},{begin:42240,end:42559},{begin:1536,end:1791},{begin:1984,end:2047},{begin:2304,end:2431},{begin:2432,end:2559},{begin:2560,end:2687},{begin:2688,end:2815},{begin:2816,end:2943},{begin:2944,end:3071},{begin:3072,end:3199},{begin:3200,end:3327},{begin:3328,end:3455},{begin:3584,end:3711},{begin:3712,end:3839},{begin:4256,end:4351},{begin:6912,end:7039},{begin:4352,end:4607},{begin:7680,end:7935},{begin:7936,end:8191},{begin:8192,end:8303},{begin:8304,end:8351},{begin:8352,end:8399},{begin:8400,end:8447},{begin:8448,end:8527},{begin:8528,end:8591},{begin:8592,end:8703},{begin:8704,end:8959},{begin:8960,end:9215},{begin:9216,end:9279},{begin:9280,end:9311},{begin:9312,end:9471},{begin:9472,end:9599},{begin:9600,end:9631},{begin:9632,end:9727},{begin:9728,end:9983},{begin:9984,end:10175},{begin:12288,end:12351},{begin:12352,end:12447},{begin:12448,end:12543},{begin:12544,end:12591},{begin:12592,end:12687},{begin:43072,end:43135},{begin:12800,end:13055},{begin:13056,end:13311},{begin:44032,end:55215},{begin:55296,end:57343},{begin:67840,end:67871},{begin:19968,end:40959},{begin:57344,end:63743},{begin:12736,end:12783},{begin:64256,end:64335},{begin:64336,end:65023},{begin:65056,end:65071},{begin:65040,end:65055},{begin:65104,end:65135},{begin:65136,end:65279},{begin:65280,end:65519},{begin:65520,end:65535},{begin:3840,end:4095},{begin:1792,end:1871},{begin:1920,end:1983},{begin:3456,end:3583},{begin:4096,end:4255},{begin:4608,end:4991},{begin:5024,end:5119},{begin:5120,end:5759},{begin:5760,end:5791},{begin:5792,end:5887},{begin:6016,end:6143},{begin:6144,end:6319},{begin:10240,end:10495},{begin:40960,end:42127},{begin:5888,end:5919},{begin:66304,end:66351},{begin:66352,end:66383},{begin:66560,end:66639},{begin:118784,end:119039},{begin:119808,end:120831},{begin:1044480,end:1048573},{begin:65024,end:65039},{begin:917504,end:917631},{begin:6400,end:6479},{begin:6480,end:6527},{begin:6528,end:6623},{begin:6656,end:6687},{begin:11264,end:11359},{begin:11568,end:11647},{begin:19904,end:19967},{begin:43008,end:43055},{begin:65536,end:65663},{begin:65856,end:65935},{begin:66432,end:66463},{begin:66464,end:66527},{begin:66640,end:66687},{begin:66688,end:66735},{begin:67584,end:67647},{begin:68096,end:68191},{begin:119552,end:119647},{begin:73728,end:74751},{begin:119648,end:119679},{begin:7040,end:7103},{begin:7168,end:7247},{begin:7248,end:7295},{begin:43136,end:43231},{begin:43264,end:43311},{begin:43312,end:43359},{begin:43520,end:43615},{begin:65936,end:65999},{begin:66e3,end:66047},{begin:66208,end:66271},{begin:127024,end:127135}];var o=r(function(e){e["¨"]=" ̈",e["¯"]=" ̄",e["´"]=" ́",e["µ"]="μ",e["¸"]=" ̧",e["IJ"]="IJ",e["ij"]="ij",e["Ŀ"]="L·",e["ŀ"]="l·",e["ʼn"]="ʼn",e["ſ"]="s",e["DŽ"]="DŽ",e["Dž"]="Dž",e["dž"]="dž",e["LJ"]="LJ",e["Lj"]="Lj",e["lj"]="lj",e["NJ"]="NJ",e["Nj"]="Nj",e["nj"]="nj",e["DZ"]="DZ",e["Dz"]="Dz",e["dz"]="dz",e["˘"]=" ̆",e["˙"]=" ̇",e["˚"]=" ̊",e["˛"]=" ̨",e["˜"]=" ̃",e["˝"]=" ̋",e["ͺ"]=" ͅ",e["΄"]=" ́",e["ϐ"]="β",e["ϑ"]="θ",e["ϒ"]="Υ",e["ϕ"]="φ",e["ϖ"]="π",e["ϰ"]="κ",e["ϱ"]="ρ",e["ϲ"]="ς",e["ϴ"]="Θ",e["ϵ"]="ε",e["Ϲ"]="Σ",e["և"]="եւ",e["ٵ"]="اٴ",e["ٶ"]="وٴ",e["ٷ"]="ۇٴ",e["ٸ"]="يٴ",e["ำ"]="ํา",e["ຳ"]="ໍາ",e["ໜ"]="ຫນ",e["ໝ"]="ຫມ",e["ཷ"]="ྲཱྀ",e["ཹ"]="ླཱྀ",e["ẚ"]="aʾ",e["᾽"]=" ̓",e["᾿"]=" ̓",e["῀"]=" ͂",e["῾"]=" ̔",e[" "]=" ",e[" "]=" ",e[" "]=" ",e[" "]=" ",e[" "]=" ",e[" "]=" ",e[" "]=" ",e[" "]=" ",e["‗"]=" ̳",e["․"]=".",e["‥"]="..",e["…"]="...",e["″"]="′′",e["‴"]="′′′",e["‶"]="‵‵",e["‷"]="‵‵‵",e["‼"]="!!",e["‾"]=" ̅",e["⁇"]="??",e["⁈"]="?!",e["⁉"]="!?",e["⁗"]="′′′′",e[" "]=" ",e["₨"]="Rs",e["℀"]="a/c",e["℁"]="a/s",e["℃"]="°C",e["℅"]="c/o",e["℆"]="c/u",e["ℇ"]="Ɛ",e["℉"]="°F",e["№"]="No",e["℡"]="TEL",e["ℵ"]="א",e["ℶ"]="ב",e["ℷ"]="ג",e["ℸ"]="ד",e["℻"]="FAX",e["Ⅰ"]="I",e["Ⅱ"]="II",e["Ⅲ"]="III",e["Ⅳ"]="IV",e["Ⅴ"]="V",e["Ⅵ"]="VI",e["Ⅶ"]="VII",e["Ⅷ"]="VIII",e["Ⅸ"]="IX",e["Ⅹ"]="X",e["Ⅺ"]="XI",e["Ⅻ"]="XII",e["Ⅼ"]="L",e["Ⅽ"]="C",e["Ⅾ"]="D",e["Ⅿ"]="M",e["ⅰ"]="i",e["ⅱ"]="ii",e["ⅲ"]="iii",e["ⅳ"]="iv",e["ⅴ"]="v",e["ⅵ"]="vi",e["ⅶ"]="vii",e["ⅷ"]="viii",e["ⅸ"]="ix",e["ⅹ"]="x",e["ⅺ"]="xi",e["ⅻ"]="xii",e["ⅼ"]="l",e["ⅽ"]="c",e["ⅾ"]="d",e["ⅿ"]="m",e["∬"]="∫∫",e["∭"]="∫∫∫",e["∯"]="∮∮",e["∰"]="∮∮∮",e["⑴"]="(1)",e["⑵"]="(2)",e["⑶"]="(3)",e["⑷"]="(4)",e["⑸"]="(5)",e["⑹"]="(6)",e["⑺"]="(7)",e["⑻"]="(8)",e["⑼"]="(9)",e["⑽"]="(10)",e["⑾"]="(11)",e["⑿"]="(12)",e["⒀"]="(13)",e["⒁"]="(14)",e["⒂"]="(15)",e["⒃"]="(16)",e["⒄"]="(17)",e["⒅"]="(18)",e["⒆"]="(19)",e["⒇"]="(20)",e["⒈"]="1.",e["⒉"]="2.",e["⒊"]="3.",e["⒋"]="4.",e["⒌"]="5.",e["⒍"]="6.",e["⒎"]="7.",e["⒏"]="8.",e["⒐"]="9.",e["⒑"]="10.",e["⒒"]="11.",e["⒓"]="12.",e["⒔"]="13.",e["⒕"]="14.",e["⒖"]="15.",e["⒗"]="16.",e["⒘"]="17.",e["⒙"]="18.",e["⒚"]="19.",e["⒛"]="20.",e["⒜"]="(a)",e["⒝"]="(b)",e["⒞"]="(c)",e["⒟"]="(d)",e["⒠"]="(e)",e["⒡"]="(f)",e["⒢"]="(g)",e["⒣"]="(h)",e["⒤"]="(i)",e["⒥"]="(j)",e["⒦"]="(k)",e["⒧"]="(l)",e["⒨"]="(m)",e["⒩"]="(n)",e["⒪"]="(o)",e["⒫"]="(p)",e["⒬"]="(q)",e["⒭"]="(r)",e["⒮"]="(s)",e["⒯"]="(t)",e["⒰"]="(u)",e["⒱"]="(v)",e["⒲"]="(w)",e["⒳"]="(x)",e["⒴"]="(y)",e["⒵"]="(z)",e["⨌"]="∫∫∫∫",e["⩴"]="::=",e["⩵"]="==",e["⩶"]="===",e["⺟"]="母",e["⻳"]="龟",e["⼀"]="一",e["⼁"]="丨",e["⼂"]="丶",e["⼃"]="丿",e["⼄"]="乙",e["⼅"]="亅",e["⼆"]="二",e["⼇"]="亠",e["⼈"]="人",e["⼉"]="儿",e["⼊"]="入",e["⼋"]="八",e["⼌"]="冂",e["⼍"]="冖",e["⼎"]="冫",e["⼏"]="几",e["⼐"]="凵",e["⼑"]="刀",e["⼒"]="力",e["⼓"]="勹",e["⼔"]="匕",e["⼕"]="匚",e["⼖"]="匸",e["⼗"]="十",e["⼘"]="卜",e["⼙"]="卩",e["⼚"]="厂",e["⼛"]="厶",e["⼜"]="又",e["⼝"]="口",e["⼞"]="囗",e["⼟"]="土",e["⼠"]="士",e["⼡"]="夂",e["⼢"]="夊",e["⼣"]="夕",e["⼤"]="大",e["⼥"]="女",e["⼦"]="子",e["⼧"]="宀",e["⼨"]="寸",e["⼩"]="小",e["⼪"]="尢",e["⼫"]="尸",e["⼬"]="屮",e["⼭"]="山",e["⼮"]="巛",e["⼯"]="工",e["⼰"]="己",e["⼱"]="巾",e["⼲"]="干",e["⼳"]="幺",e["⼴"]="广",e["⼵"]="廴",e["⼶"]="廾",e["⼷"]="弋",e["⼸"]="弓",e["⼹"]="彐",e["⼺"]="彡",e["⼻"]="彳",e["⼼"]="心",e["⼽"]="戈",e["⼾"]="戶",e["⼿"]="手",e["⽀"]="支",e["⽁"]="攴",e["⽂"]="文",e["⽃"]="斗",e["⽄"]="斤",e["⽅"]="方",e["⽆"]="无",e["⽇"]="日",e["⽈"]="曰",e["⽉"]="月",e["⽊"]="木",e["⽋"]="欠",e["⽌"]="止",e["⽍"]="歹",e["⽎"]="殳",e["⽏"]="毋",e["⽐"]="比",e["⽑"]="毛",e["⽒"]="氏",e["⽓"]="气",e["⽔"]="水",e["⽕"]="火",e["⽖"]="爪",e["⽗"]="父",e["⽘"]="爻",e["⽙"]="爿",e["⽚"]="片",e["⽛"]="牙",e["⽜"]="牛",e["⽝"]="犬",e["⽞"]="玄",e["⽟"]="玉",e["⽠"]="瓜",e["⽡"]="瓦",e["⽢"]="甘",e["⽣"]="生",e["⽤"]="用",e["⽥"]="田",e["⽦"]="疋",e["⽧"]="疒",e["⽨"]="癶",e["⽩"]="白",e["⽪"]="皮",e["⽫"]="皿",e["⽬"]="目",e["⽭"]="矛",e["⽮"]="矢",e["⽯"]="石",e["⽰"]="示",e["⽱"]="禸",e["⽲"]="禾",e["⽳"]="穴",e["⽴"]="立",e["⽵"]="竹",e["⽶"]="米",e["⽷"]="糸",e["⽸"]="缶",e["⽹"]="网",e["⽺"]="羊",e["⽻"]="羽",e["⽼"]="老",e["⽽"]="而",e["⽾"]="耒",e["⽿"]="耳",e["⾀"]="聿",e["⾁"]="肉",e["⾂"]="臣",e["⾃"]="自",e["⾄"]="至",e["⾅"]="臼",e["⾆"]="舌",e["⾇"]="舛",e["⾈"]="舟",e["⾉"]="艮",e["⾊"]="色",e["⾋"]="艸",e["⾌"]="虍",e["⾍"]="虫",e["⾎"]="血",e["⾏"]="行",e["⾐"]="衣",e["⾑"]="襾",e["⾒"]="見",e["⾓"]="角",e["⾔"]="言",e["⾕"]="谷",e["⾖"]="豆",e["⾗"]="豕",e["⾘"]="豸",e["⾙"]="貝",e["⾚"]="赤",e["⾛"]="走",e["⾜"]="足",e["⾝"]="身",e["⾞"]="車",e["⾟"]="辛",e["⾠"]="辰",e["⾡"]="辵",e["⾢"]="邑",e["⾣"]="酉",e["⾤"]="釆",e["⾥"]="里",e["⾦"]="金",e["⾧"]="長",e["⾨"]="門",e["⾩"]="阜",e["⾪"]="隶",e["⾫"]="隹",e["⾬"]="雨",e["⾭"]="靑",e["⾮"]="非",e["⾯"]="面",e["⾰"]="革",e["⾱"]="韋",e["⾲"]="韭",e["⾳"]="音",e["⾴"]="頁",e["⾵"]="風",e["⾶"]="飛",e["⾷"]="食",e["⾸"]="首",e["⾹"]="香",e["⾺"]="馬",e["⾻"]="骨",e["⾼"]="高",e["⾽"]="髟",e["⾾"]="鬥",e["⾿"]="鬯",e["⿀"]="鬲",e["⿁"]="鬼",e["⿂"]="魚",e["⿃"]="鳥",e["⿄"]="鹵",e["⿅"]="鹿",e["⿆"]="麥",e["⿇"]="麻",e["⿈"]="黃",e["⿉"]="黍",e["⿊"]="黑",e["⿋"]="黹",e["⿌"]="黽",e["⿍"]="鼎",e["⿎"]="鼓",e["⿏"]="鼠",e["⿐"]="鼻",e["⿑"]="齊",e["⿒"]="齒",e["⿓"]="龍",e["⿔"]="龜",e["⿕"]="龠",e["〶"]="〒",e["〸"]="十",e["〹"]="卄",e["〺"]="卅",e["゛"]=" ゙",e["゜"]=" ゚",e["ㄱ"]="ᄀ",e["ㄲ"]="ᄁ",e["ㄳ"]="ᆪ",e["ㄴ"]="ᄂ",e["ㄵ"]="ᆬ",e["ㄶ"]="ᆭ",e["ㄷ"]="ᄃ",e["ㄸ"]="ᄄ",e["ㄹ"]="ᄅ",e["ㄺ"]="ᆰ",e["ㄻ"]="ᆱ",e["ㄼ"]="ᆲ",e["ㄽ"]="ᆳ",e["ㄾ"]="ᆴ",e["ㄿ"]="ᆵ",e["ㅀ"]="ᄚ",e["ㅁ"]="ᄆ",e["ㅂ"]="ᄇ",e["ㅃ"]="ᄈ",e["ㅄ"]="ᄡ",e["ㅅ"]="ᄉ",e["ㅆ"]="ᄊ",e["ㅇ"]="ᄋ",e["ㅈ"]="ᄌ",e["ㅉ"]="ᄍ",e["ㅊ"]="ᄎ",e["ㅋ"]="ᄏ",e["ㅌ"]="ᄐ",e["ㅍ"]="ᄑ",e["ㅎ"]="ᄒ",e["ㅏ"]="ᅡ",e["ㅐ"]="ᅢ",e["ㅑ"]="ᅣ",e["ㅒ"]="ᅤ",e["ㅓ"]="ᅥ",e["ㅔ"]="ᅦ",e["ㅕ"]="ᅧ",e["ㅖ"]="ᅨ",e["ㅗ"]="ᅩ",e["ㅘ"]="ᅪ",e["ㅙ"]="ᅫ",e["ㅚ"]="ᅬ",e["ㅛ"]="ᅭ",e["ㅜ"]="ᅮ",e["ㅝ"]="ᅯ",e["ㅞ"]="ᅰ",e["ㅟ"]="ᅱ",e["ㅠ"]="ᅲ",e["ㅡ"]="ᅳ",e["ㅢ"]="ᅴ",e["ㅣ"]="ᅵ",e["ㅤ"]="ᅠ",e["ㅥ"]="ᄔ",e["ㅦ"]="ᄕ",e["ㅧ"]="ᇇ",e["ㅨ"]="ᇈ",e["ㅩ"]="ᇌ",e["ㅪ"]="ᇎ",e["ㅫ"]="ᇓ",e["ㅬ"]="ᇗ",e["ㅭ"]="ᇙ",e["ㅮ"]="ᄜ",e["ㅯ"]="ᇝ",e["ㅰ"]="ᇟ",e["ㅱ"]="ᄝ",e["ㅲ"]="ᄞ",e["ㅳ"]="ᄠ",e["ㅴ"]="ᄢ",e["ㅵ"]="ᄣ",e["ㅶ"]="ᄧ",e["ㅷ"]="ᄩ",e["ㅸ"]="ᄫ",e["ㅹ"]="ᄬ",e["ㅺ"]="ᄭ",e["ㅻ"]="ᄮ",e["ㅼ"]="ᄯ",e["ㅽ"]="ᄲ",e["ㅾ"]="ᄶ",e["ㅿ"]="ᅀ",e["ㆀ"]="ᅇ",e["ㆁ"]="ᅌ",e["ㆂ"]="ᇱ",e["ㆃ"]="ᇲ",e["ㆄ"]="ᅗ",e["ㆅ"]="ᅘ",e["ㆆ"]="ᅙ",e["ㆇ"]="ᆄ",e["ㆈ"]="ᆅ",e["ㆉ"]="ᆈ",e["ㆊ"]="ᆑ",e["ㆋ"]="ᆒ",e["ㆌ"]="ᆔ",e["ㆍ"]="ᆞ",e["ㆎ"]="ᆡ",e["㈀"]="(ᄀ)",e["㈁"]="(ᄂ)",e["㈂"]="(ᄃ)",e["㈃"]="(ᄅ)",e["㈄"]="(ᄆ)",e["㈅"]="(ᄇ)",e["㈆"]="(ᄉ)",e["㈇"]="(ᄋ)",e["㈈"]="(ᄌ)",e["㈉"]="(ᄎ)",e["㈊"]="(ᄏ)",e["㈋"]="(ᄐ)",e["㈌"]="(ᄑ)",e["㈍"]="(ᄒ)",e["㈎"]="(가)",e["㈏"]="(나)",e["㈐"]="(다)",e["㈑"]="(라)",e["㈒"]="(마)",e["㈓"]="(바)",e["㈔"]="(사)",e["㈕"]="(아)",e["㈖"]="(자)",e["㈗"]="(차)",e["㈘"]="(카)",e["㈙"]="(타)",e["㈚"]="(파)",e["㈛"]="(하)",e["㈜"]="(주)",e["㈝"]="(오전)",e["㈞"]="(오후)",e["㈠"]="(一)",e["㈡"]="(二)",e["㈢"]="(三)",e["㈣"]="(四)",e["㈤"]="(五)",e["㈥"]="(六)",e["㈦"]="(七)",e["㈧"]="(八)",e["㈨"]="(九)",e["㈩"]="(十)",e["㈪"]="(月)",e["㈫"]="(火)",e["㈬"]="(水)",e["㈭"]="(木)",e["㈮"]="(金)",e["㈯"]="(土)",e["㈰"]="(日)",e["㈱"]="(株)",e["㈲"]="(有)",e["㈳"]="(社)",e["㈴"]="(名)",e["㈵"]="(特)",e["㈶"]="(財)",e["㈷"]="(祝)",e["㈸"]="(労)",e["㈹"]="(代)",e["㈺"]="(呼)",e["㈻"]="(学)",e["㈼"]="(監)",e["㈽"]="(企)",e["㈾"]="(資)",e["㈿"]="(協)",e["㉀"]="(祭)",e["㉁"]="(休)",e["㉂"]="(自)",e["㉃"]="(至)",e["㋀"]="1月",e["㋁"]="2月",e["㋂"]="3月",e["㋃"]="4月",e["㋄"]="5月",e["㋅"]="6月",e["㋆"]="7月",e["㋇"]="8月",e["㋈"]="9月",e["㋉"]="10月",e["㋊"]="11月",e["㋋"]="12月",e["㍘"]="0点",e["㍙"]="1点",e["㍚"]="2点",e["㍛"]="3点",e["㍜"]="4点",e["㍝"]="5点",e["㍞"]="6点",e["㍟"]="7点",e["㍠"]="8点",e["㍡"]="9点",e["㍢"]="10点",e["㍣"]="11点",e["㍤"]="12点",e["㍥"]="13点",e["㍦"]="14点",e["㍧"]="15点",e["㍨"]="16点",e["㍩"]="17点",e["㍪"]="18点",e["㍫"]="19点",e["㍬"]="20点",e["㍭"]="21点",e["㍮"]="22点",e["㍯"]="23点",e["㍰"]="24点",e["㏠"]="1日",e["㏡"]="2日",e["㏢"]="3日",e["㏣"]="4日",e["㏤"]="5日",e["㏥"]="6日",e["㏦"]="7日",e["㏧"]="8日",e["㏨"]="9日",e["㏩"]="10日",e["㏪"]="11日",e["㏫"]="12日",e["㏬"]="13日",e["㏭"]="14日",e["㏮"]="15日",e["㏯"]="16日",e["㏰"]="17日",e["㏱"]="18日",e["㏲"]="19日",e["㏳"]="20日",e["㏴"]="21日",e["㏵"]="22日",e["㏶"]="23日",e["㏷"]="24日",e["㏸"]="25日",e["㏹"]="26日",e["㏺"]="27日",e["㏻"]="28日",e["㏼"]="29日",e["㏽"]="30日",e["㏾"]="31日",e["ff"]="ff",e["fi"]="fi",e["fl"]="fl",e["ffi"]="ffi",e["ffl"]="ffl",e["ſt"]="ſt",e["st"]="st",e["ﬓ"]="մն",e["ﬔ"]="մե",e["ﬕ"]="մի",e["ﬖ"]="վն",e["ﬗ"]="մխ",e["ﭏ"]="אל",e["ﭐ"]="ٱ",e["ﭑ"]="ٱ",e["ﭒ"]="ٻ",e["ﭓ"]="ٻ",e["ﭔ"]="ٻ",e["ﭕ"]="ٻ",e["ﭖ"]="پ",e["ﭗ"]="پ",e["ﭘ"]="پ",e["ﭙ"]="پ",e["ﭚ"]="ڀ",e["ﭛ"]="ڀ",e["ﭜ"]="ڀ",e["ﭝ"]="ڀ",e["ﭞ"]="ٺ",e["ﭟ"]="ٺ",e["ﭠ"]="ٺ",e["ﭡ"]="ٺ",e["ﭢ"]="ٿ",e["ﭣ"]="ٿ",e["ﭤ"]="ٿ",e["ﭥ"]="ٿ",e["ﭦ"]="ٹ",e["ﭧ"]="ٹ",e["ﭨ"]="ٹ",e["ﭩ"]="ٹ",e["ﭪ"]="ڤ",e["ﭫ"]="ڤ",e["ﭬ"]="ڤ",e["ﭭ"]="ڤ",e["ﭮ"]="ڦ",e["ﭯ"]="ڦ",e["ﭰ"]="ڦ",e["ﭱ"]="ڦ",e["ﭲ"]="ڄ",e["ﭳ"]="ڄ",e["ﭴ"]="ڄ",e["ﭵ"]="ڄ",e["ﭶ"]="ڃ",e["ﭷ"]="ڃ",e["ﭸ"]="ڃ",e["ﭹ"]="ڃ",e["ﭺ"]="چ",e["ﭻ"]="چ",e["ﭼ"]="چ",e["ﭽ"]="چ",e["ﭾ"]="ڇ",e["ﭿ"]="ڇ",e["ﮀ"]="ڇ",e["ﮁ"]="ڇ",e["ﮂ"]="ڍ",e["ﮃ"]="ڍ",e["ﮄ"]="ڌ",e["ﮅ"]="ڌ",e["ﮆ"]="ڎ",e["ﮇ"]="ڎ",e["ﮈ"]="ڈ",e["ﮉ"]="ڈ",e["ﮊ"]="ژ",e["ﮋ"]="ژ",e["ﮌ"]="ڑ",e["ﮍ"]="ڑ",e["ﮎ"]="ک",e["ﮏ"]="ک",e["ﮐ"]="ک",e["ﮑ"]="ک",e["ﮒ"]="گ",e["ﮓ"]="گ",e["ﮔ"]="گ",e["ﮕ"]="گ",e["ﮖ"]="ڳ",e["ﮗ"]="ڳ",e["ﮘ"]="ڳ",e["ﮙ"]="ڳ",e["ﮚ"]="ڱ",e["ﮛ"]="ڱ",e["ﮜ"]="ڱ",e["ﮝ"]="ڱ",e["ﮞ"]="ں",e["ﮟ"]="ں",e["ﮠ"]="ڻ",e["ﮡ"]="ڻ",e["ﮢ"]="ڻ",e["ﮣ"]="ڻ",e["ﮤ"]="ۀ",e["ﮥ"]="ۀ",e["ﮦ"]="ہ",e["ﮧ"]="ہ",e["ﮨ"]="ہ",e["ﮩ"]="ہ",e["ﮪ"]="ھ",e["ﮫ"]="ھ",e["ﮬ"]="ھ",e["ﮭ"]="ھ",e["ﮮ"]="ے",e["ﮯ"]="ے",e["ﮰ"]="ۓ",e["ﮱ"]="ۓ",e["ﯓ"]="ڭ",e["ﯔ"]="ڭ",e["ﯕ"]="ڭ",e["ﯖ"]="ڭ",e["ﯗ"]="ۇ",e["ﯘ"]="ۇ",e["ﯙ"]="ۆ",e["ﯚ"]="ۆ",e["ﯛ"]="ۈ",e["ﯜ"]="ۈ",e["ﯝ"]="ٷ",e["ﯞ"]="ۋ",e["ﯟ"]="ۋ",e["ﯠ"]="ۅ",e["ﯡ"]="ۅ",e["ﯢ"]="ۉ",e["ﯣ"]="ۉ",e["ﯤ"]="ې",e["ﯥ"]="ې",e["ﯦ"]="ې",e["ﯧ"]="ې",e["ﯨ"]="ى",e["ﯩ"]="ى",e["ﯪ"]="ئا",e["ﯫ"]="ئا",e["ﯬ"]="ئە",e["ﯭ"]="ئە",e["ﯮ"]="ئو",e["ﯯ"]="ئو",e["ﯰ"]="ئۇ",e["ﯱ"]="ئۇ",e["ﯲ"]="ئۆ",e["ﯳ"]="ئۆ",e["ﯴ"]="ئۈ",e["ﯵ"]="ئۈ",e["ﯶ"]="ئې";e["ﯷ"]="ئې",e["ﯸ"]="ئې",e["ﯹ"]="ئى",e["ﯺ"]="ئى",e["ﯻ"]="ئى",e["ﯼ"]="ی",e["ﯽ"]="ی",e["ﯾ"]="ی",e["ﯿ"]="ی",e["ﰀ"]="ئج",e["ﰁ"]="ئح",e["ﰂ"]="ئم",e["ﰃ"]="ئى",e["ﰄ"]="ئي",e["ﰅ"]="بج",e["ﰆ"]="بح",e["ﰇ"]="بخ",e["ﰈ"]="بم",e["ﰉ"]="بى",e["ﰊ"]="بي",e["ﰋ"]="تج",e["ﰌ"]="تح",e["ﰍ"]="تخ",e["ﰎ"]="تم",e["ﰏ"]="تى",e["ﰐ"]="تي",e["ﰑ"]="ثج",e["ﰒ"]="ثم",e["ﰓ"]="ثى",e["ﰔ"]="ثي",e["ﰕ"]="جح",e["ﰖ"]="جم",e["ﰗ"]="حج",e["ﰘ"]="حم",e["ﰙ"]="خج",e["ﰚ"]="خح",e["ﰛ"]="خم",e["ﰜ"]="سج",e["ﰝ"]="سح",e["ﰞ"]="سخ",e["ﰟ"]="سم",e["ﰠ"]="صح",e["ﰡ"]="صم",e["ﰢ"]="ضج",e["ﰣ"]="ضح",e["ﰤ"]="ضخ",e["ﰥ"]="ضم",e["ﰦ"]="طح",e["ﰧ"]="طم",e["ﰨ"]="ظم",e["ﰩ"]="عج",e["ﰪ"]="عم",e["ﰫ"]="غج",e["ﰬ"]="غم",e["ﰭ"]="فج",e["ﰮ"]="فح",e["ﰯ"]="فخ",e["ﰰ"]="فم",e["ﰱ"]="فى",e["ﰲ"]="في",e["ﰳ"]="قح",e["ﰴ"]="قم",e["ﰵ"]="قى",e["ﰶ"]="قي",e["ﰷ"]="كا",e["ﰸ"]="كج",e["ﰹ"]="كح",e["ﰺ"]="كخ",e["ﰻ"]="كل",e["ﰼ"]="كم",e["ﰽ"]="كى",e["ﰾ"]="كي",e["ﰿ"]="لج",e["ﱀ"]="لح",e["ﱁ"]="لخ",e["ﱂ"]="لم",e["ﱃ"]="لى",e["ﱄ"]="لي",e["ﱅ"]="مج",e["ﱆ"]="مح",e["ﱇ"]="مخ",e["ﱈ"]="مم",e["ﱉ"]="مى",e["ﱊ"]="مي",e["ﱋ"]="نج",e["ﱌ"]="نح",e["ﱍ"]="نخ",e["ﱎ"]="نم",e["ﱏ"]="نى",e["ﱐ"]="ني",e["ﱑ"]="هج",e["ﱒ"]="هم",e["ﱓ"]="هى",e["ﱔ"]="هي",e["ﱕ"]="يج",e["ﱖ"]="يح",e["ﱗ"]="يخ",e["ﱘ"]="يم",e["ﱙ"]="يى",e["ﱚ"]="يي",e["ﱛ"]="ذٰ",e["ﱜ"]="رٰ",e["ﱝ"]="ىٰ",e["ﱞ"]=" ٌّ",e["ﱟ"]=" ٍّ",e["ﱠ"]=" َّ",e["ﱡ"]=" ُّ",e["ﱢ"]=" ِّ",e["ﱣ"]=" ّٰ",e["ﱤ"]="ئر",e["ﱥ"]="ئز",e["ﱦ"]="ئم",e["ﱧ"]="ئن",e["ﱨ"]="ئى",e["ﱩ"]="ئي",e["ﱪ"]="بر",e["ﱫ"]="بز",e["ﱬ"]="بم",e["ﱭ"]="بن",e["ﱮ"]="بى",e["ﱯ"]="بي",e["ﱰ"]="تر",e["ﱱ"]="تز",e["ﱲ"]="تم",e["ﱳ"]="تن",e["ﱴ"]="تى",e["ﱵ"]="تي",e["ﱶ"]="ثر",e["ﱷ"]="ثز",e["ﱸ"]="ثم",e["ﱹ"]="ثن",e["ﱺ"]="ثى",e["ﱻ"]="ثي",e["ﱼ"]="فى",e["ﱽ"]="في",e["ﱾ"]="قى",e["ﱿ"]="قي",e["ﲀ"]="كا",e["ﲁ"]="كل",e["ﲂ"]="كم",e["ﲃ"]="كى",e["ﲄ"]="كي",e["ﲅ"]="لم",e["ﲆ"]="لى",e["ﲇ"]="لي",e["ﲈ"]="ما",e["ﲉ"]="مم",e["ﲊ"]="نر",e["ﲋ"]="نز",e["ﲌ"]="نم",e["ﲍ"]="نن",e["ﲎ"]="نى",e["ﲏ"]="ني",e["ﲐ"]="ىٰ",e["ﲑ"]="ير",e["ﲒ"]="يز",e["ﲓ"]="يم",e["ﲔ"]="ين",e["ﲕ"]="يى",e["ﲖ"]="يي",e["ﲗ"]="ئج",e["ﲘ"]="ئح",e["ﲙ"]="ئخ",e["ﲚ"]="ئم",e["ﲛ"]="ئه",e["ﲜ"]="بج",e["ﲝ"]="بح",e["ﲞ"]="بخ",e["ﲟ"]="بم",e["ﲠ"]="به",e["ﲡ"]="تج",e["ﲢ"]="تح",e["ﲣ"]="تخ",e["ﲤ"]="تم",e["ﲥ"]="ته",e["ﲦ"]="ثم",e["ﲧ"]="جح",e["ﲨ"]="جم",e["ﲩ"]="حج",e["ﲪ"]="حم",e["ﲫ"]="خج",e["ﲬ"]="خم",e["ﲭ"]="سج",e["ﲮ"]="سح",e["ﲯ"]="سخ",e["ﲰ"]="سم",e["ﲱ"]="صح",e["ﲲ"]="صخ",e["ﲳ"]="صم",e["ﲴ"]="ضج",e["ﲵ"]="ضح",e["ﲶ"]="ضخ",e["ﲷ"]="ضم",e["ﲸ"]="طح",e["ﲹ"]="ظم",e["ﲺ"]="عج",e["ﲻ"]="عم",e["ﲼ"]="غج",e["ﲽ"]="غم",e["ﲾ"]="فج",e["ﲿ"]="فح",e["ﳀ"]="فخ",e["ﳁ"]="فم",e["ﳂ"]="قح",e["ﳃ"]="قم",e["ﳄ"]="كج",e["ﳅ"]="كح",e["ﳆ"]="كخ",e["ﳇ"]="كل",e["ﳈ"]="كم",e["ﳉ"]="لج",e["ﳊ"]="لح",e["ﳋ"]="لخ",e["ﳌ"]="لم",e["ﳍ"]="له",e["ﳎ"]="مج",e["ﳏ"]="مح",e["ﳐ"]="مخ",e["ﳑ"]="مم",e["ﳒ"]="نج",e["ﳓ"]="نح",e["ﳔ"]="نخ",e["ﳕ"]="نم",e["ﳖ"]="نه",e["ﳗ"]="هج",e["ﳘ"]="هم",e["ﳙ"]="هٰ",e["ﳚ"]="يج",e["ﳛ"]="يح",e["ﳜ"]="يخ",e["ﳝ"]="يم",e["ﳞ"]="يه",e["ﳟ"]="ئم",e["ﳠ"]="ئه",e["ﳡ"]="بم",e["ﳢ"]="به",e["ﳣ"]="تم",e["ﳤ"]="ته",e["ﳥ"]="ثم",e["ﳦ"]="ثه",e["ﳧ"]="سم",e["ﳨ"]="سه",e["ﳩ"]="شم",e["ﳪ"]="شه",e["ﳫ"]="كل",e["ﳬ"]="كم",e["ﳭ"]="لم",e["ﳮ"]="نم",e["ﳯ"]="نه",e["ﳰ"]="يم",e["ﳱ"]="يه",e["ﳲ"]="ـَّ",e["ﳳ"]="ـُّ",e["ﳴ"]="ـِّ",e["ﳵ"]="طى",e["ﳶ"]="طي",e["ﳷ"]="عى",e["ﳸ"]="عي",e["ﳹ"]="غى",e["ﳺ"]="غي",e["ﳻ"]="سى",e["ﳼ"]="سي",e["ﳽ"]="شى",e["ﳾ"]="شي",e["ﳿ"]="حى",e["ﴀ"]="حي",e["ﴁ"]="جى",e["ﴂ"]="جي",e["ﴃ"]="خى",e["ﴄ"]="خي",e["ﴅ"]="صى",e["ﴆ"]="صي",e["ﴇ"]="ضى",e["ﴈ"]="ضي",e["ﴉ"]="شج",e["ﴊ"]="شح",e["ﴋ"]="شخ",e["ﴌ"]="شم",e["ﴍ"]="شر",e["ﴎ"]="سر",e["ﴏ"]="صر",e["ﴐ"]="ضر",e["ﴑ"]="طى",e["ﴒ"]="طي",e["ﴓ"]="عى",e["ﴔ"]="عي",e["ﴕ"]="غى",e["ﴖ"]="غي",e["ﴗ"]="سى",e["ﴘ"]="سي",e["ﴙ"]="شى",e["ﴚ"]="شي",e["ﴛ"]="حى",e["ﴜ"]="حي",e["ﴝ"]="جى",e["ﴞ"]="جي",e["ﴟ"]="خى",e["ﴠ"]="خي",e["ﴡ"]="صى",e["ﴢ"]="صي",e["ﴣ"]="ضى",e["ﴤ"]="ضي",e["ﴥ"]="شج",e["ﴦ"]="شح",e["ﴧ"]="شخ",e["ﴨ"]="شم",e["ﴩ"]="شر",e["ﴪ"]="سر",e["ﴫ"]="صر",e["ﴬ"]="ضر",e["ﴭ"]="شج",e["ﴮ"]="شح",e["ﴯ"]="شخ",e["ﴰ"]="شم",e["ﴱ"]="سه",e["ﴲ"]="شه",e["ﴳ"]="طم",e["ﴴ"]="سج",e["ﴵ"]="سح",e["ﴶ"]="سخ",e["ﴷ"]="شج",e["ﴸ"]="شح",e["ﴹ"]="شخ",e["ﴺ"]="طم",e["ﴻ"]="ظم",e["ﴼ"]="اً",e["ﴽ"]="اً",e["ﵐ"]="تجم",e["ﵑ"]="تحج",e["ﵒ"]="تحج",e["ﵓ"]="تحم",e["ﵔ"]="تخم",e["ﵕ"]="تمج",e["ﵖ"]="تمح",e["ﵗ"]="تمخ",e["ﵘ"]="جمح",e["ﵙ"]="جمح",e["ﵚ"]="حمي",e["ﵛ"]="حمى",e["ﵜ"]="سحج",e["ﵝ"]="سجح",e["ﵞ"]="سجى",e["ﵟ"]="سمح",e["ﵠ"]="سمح",e["ﵡ"]="سمج",e["ﵢ"]="سمم",e["ﵣ"]="سمم",e["ﵤ"]="صحح",e["ﵥ"]="صحح",e["ﵦ"]="صمم",e["ﵧ"]="شحم",e["ﵨ"]="شحم",e["ﵩ"]="شجي",e["ﵪ"]="شمخ",e["ﵫ"]="شمخ",e["ﵬ"]="شمم",e["ﵭ"]="شمم",e["ﵮ"]="ضحى",e["ﵯ"]="ضخم",e["ﵰ"]="ضخم",e["ﵱ"]="طمح",e["ﵲ"]="طمح",e["ﵳ"]="طمم",e["ﵴ"]="طمي",e["ﵵ"]="عجم",e["ﵶ"]="عمم",e["ﵷ"]="عمم",e["ﵸ"]="عمى",e["ﵹ"]="غمم",e["ﵺ"]="غمي",e["ﵻ"]="غمى",e["ﵼ"]="فخم",e["ﵽ"]="فخم",e["ﵾ"]="قمح",e["ﵿ"]="قمم",e["ﶀ"]="لحم",e["ﶁ"]="لحي",e["ﶂ"]="لحى",e["ﶃ"]="لجج",e["ﶄ"]="لجج",e["ﶅ"]="لخم",e["ﶆ"]="لخم",e["ﶇ"]="لمح",e["ﶈ"]="لمح",e["ﶉ"]="محج",e["ﶊ"]="محم",e["ﶋ"]="محي",e["ﶌ"]="مجح",e["ﶍ"]="مجم",e["ﶎ"]="مخج",e["ﶏ"]="مخم",e["ﶒ"]="مجخ",e["ﶓ"]="همج",e["ﶔ"]="همم",e["ﶕ"]="نحم",e["ﶖ"]="نحى",e["ﶗ"]="نجم",e["ﶘ"]="نجم",e["ﶙ"]="نجى",e["ﶚ"]="نمي",e["ﶛ"]="نمى",e["ﶜ"]="يمم",e["ﶝ"]="يمم",e["ﶞ"]="بخي",e["ﶟ"]="تجي",e["ﶠ"]="تجى",e["ﶡ"]="تخي",e["ﶢ"]="تخى",e["ﶣ"]="تمي",e["ﶤ"]="تمى",e["ﶥ"]="جمي",e["ﶦ"]="جحى",e["ﶧ"]="جمى",e["ﶨ"]="سخى",e["ﶩ"]="صحي",e["ﶪ"]="شحي",e["ﶫ"]="ضحي",e["ﶬ"]="لجي",e["ﶭ"]="لمي",e["ﶮ"]="يحي",e["ﶯ"]="يجي",e["ﶰ"]="يمي",e["ﶱ"]="ممي",e["ﶲ"]="قمي",e["ﶳ"]="نحي",e["ﶴ"]="قمح",e["ﶵ"]="لحم",e["ﶶ"]="عمي",e["ﶷ"]="كمي",e["ﶸ"]="نجح",e["ﶹ"]="مخي",e["ﶺ"]="لجم",e["ﶻ"]="كمم",e["ﶼ"]="لجم",e["ﶽ"]="نجح",e["ﶾ"]="جحي",e["ﶿ"]="حجي",e["ﷀ"]="مجي",e["ﷁ"]="فمي",e["ﷂ"]="بحي",e["ﷃ"]="كمم",e["ﷄ"]="عجم",e["ﷅ"]="صمم",e["ﷆ"]="سخي",e["ﷇ"]="نجي",e["﹉"]="‾",e["﹊"]="‾",e["﹋"]="‾",e["﹌"]="‾",e["﹍"]="_",e["﹎"]="_",e["﹏"]="_",e["ﺀ"]="ء",e["ﺁ"]="آ",e["ﺂ"]="آ",e["ﺃ"]="أ",e["ﺄ"]="أ",e["ﺅ"]="ؤ",e["ﺆ"]="ؤ",e["ﺇ"]="إ",e["ﺈ"]="إ",e["ﺉ"]="ئ",e["ﺊ"]="ئ",e["ﺋ"]="ئ",e["ﺌ"]="ئ",e["ﺍ"]="ا",e["ﺎ"]="ا",e["ﺏ"]="ب",e["ﺐ"]="ب",e["ﺑ"]="ب",e["ﺒ"]="ب",e["ﺓ"]="ة",e["ﺔ"]="ة",e["ﺕ"]="ت",e["ﺖ"]="ت",e["ﺗ"]="ت",e["ﺘ"]="ت",e["ﺙ"]="ث",e["ﺚ"]="ث",e["ﺛ"]="ث",e["ﺜ"]="ث",e["ﺝ"]="ج",e["ﺞ"]="ج",e["ﺟ"]="ج",e["ﺠ"]="ج",e["ﺡ"]="ح",e["ﺢ"]="ح",e["ﺣ"]="ح",e["ﺤ"]="ح",e["ﺥ"]="خ",e["ﺦ"]="خ",e["ﺧ"]="خ",e["ﺨ"]="خ",e["ﺩ"]="د",e["ﺪ"]="د",e["ﺫ"]="ذ",e["ﺬ"]="ذ",e["ﺭ"]="ر",e["ﺮ"]="ر",e["ﺯ"]="ز",e["ﺰ"]="ز",e["ﺱ"]="س",e["ﺲ"]="س",e["ﺳ"]="س",e["ﺴ"]="س",e["ﺵ"]="ش",e["ﺶ"]="ش",e["ﺷ"]="ش",e["ﺸ"]="ش",e["ﺹ"]="ص",e["ﺺ"]="ص",e["ﺻ"]="ص",e["ﺼ"]="ص",e["ﺽ"]="ض",e["ﺾ"]="ض",e["ﺿ"]="ض",e["ﻀ"]="ض",e["ﻁ"]="ط",e["ﻂ"]="ط",e["ﻃ"]="ط",e["ﻄ"]="ط",e["ﻅ"]="ظ",e["ﻆ"]="ظ",e["ﻇ"]="ظ",e["ﻈ"]="ظ",e["ﻉ"]="ع",e["ﻊ"]="ع",e["ﻋ"]="ع",e["ﻌ"]="ع",e["ﻍ"]="غ",e["ﻎ"]="غ",e["ﻏ"]="غ",e["ﻐ"]="غ",e["ﻑ"]="ف",e["ﻒ"]="ف",e["ﻓ"]="ف",e["ﻔ"]="ف",e["ﻕ"]="ق",e["ﻖ"]="ق",e["ﻗ"]="ق",e["ﻘ"]="ق",e["ﻙ"]="ك",e["ﻚ"]="ك",e["ﻛ"]="ك",e["ﻜ"]="ك",e["ﻝ"]="ل",e["ﻞ"]="ل",e["ﻟ"]="ل",e["ﻠ"]="ل",e["ﻡ"]="م",e["ﻢ"]="م",e["ﻣ"]="م",e["ﻤ"]="م",e["ﻥ"]="ن",e["ﻦ"]="ن",e["ﻧ"]="ن",e["ﻨ"]="ن",e["ﻩ"]="ه",e["ﻪ"]="ه",e["ﻫ"]="ه",e["ﻬ"]="ه",e["ﻭ"]="و",e["ﻮ"]="و",e["ﻯ"]="ى",e["ﻰ"]="ى",e["ﻱ"]="ي",e["ﻲ"]="ي",e["ﻳ"]="ي",e["ﻴ"]="ي",e["ﻵ"]="لآ",e["ﻶ"]="لآ",e["ﻷ"]="لأ",e["ﻸ"]="لأ",e["ﻹ"]="لإ",e["ﻺ"]="لإ",e["ﻻ"]="لا",e["ﻼ"]="لا"});t.mapSpecialUnicodeValues=function(e){return e>=65520&&e<=65535?0:e>=62976&&e<=63743?i()[e]||e:173===e?45:e},t.reverseIfRtl=function(e){var t,n,r=e.length;if(r<=1||(t=e.charCodeAt(0),n=a[13],!(t>=n.begin&&t<n.end||t>=(n=a[11]).begin&&t<n.end)))return e;for(var i="",o=r-1;o>=0;o--)i+=e[o];return i},t.getUnicodeRangeFor=function(e){for(var t=0,n=a.length;t<n;t++){var r=a[t];if(e>=r.begin&&e<r.end)return t}return-1},t.getNormalizedUnicodes=o,t.getUnicodeForGlyph=function(e,t){var n=t[e];if(void 0!==n)return n;if(!e)return-1;if("u"===e[0]){var r,i=e.length;if(7===i&&"n"===e[1]&&"i"===e[2])r=e.substring(3);else{if(!(i>=5&&i<=7))return-1;r=e.substring(1)}if(r===r.toUpperCase()&&(n=parseInt(r,16))>=0)return n}return-1}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FontRendererFactory=void 0;var r=n(2),i=n(30),a=n(33),o=n(32),s=n(12),l=function(){function e(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]}function t(e,t){return e[t]<<8|e[t+1]}function n(e){const t=e.length;let n=32768;return t<1240?n=107:t<33900&&(n=1131),n}function l(n,i,a){var o,s,l,c=1===t(n,i+2)?e(n,i+8):e(n,i+16),u=t(n,i+c);if(4===u){t(n,i+c+2);var h=t(n,i+c+6)>>1;for(s=i+c+14,o=[],l=0;l<h;l++,s+=2)o[l]={end:t(n,s)};for(s+=2,l=0;l<h;l++,s+=2)o[l].start=t(n,s);for(l=0;l<h;l++,s+=2)o[l].idDelta=t(n,s);for(l=0;l<h;l++,s+=2){var d=t(n,s);if(0!==d){o[l].ids=[];for(var f=0,p=o[l].end-o[l].start+1;f<p;f++)o[l].ids[f]=t(n,s+d),d+=2}}return o}if(12===u){e(n,i+c+4);var A=e(n,i+c+12);for(s=i+c+16,o=[],l=0;l<A;l++)o.push({start:e(n,s),end:e(n,s+4),idDelta:e(n,s+8)-e(n,s)}),s+=12;return o}throw new r.FormatError(`unsupported cmap: ${u}`)}function c(e,t,n,r){var a=new i.CFFParser(new s.Stream(e,t,n-t),{},r).parse();return{glyphs:a.charStrings.objects,subrs:a.topDict.privateDict&&a.topDict.privateDict.subrsIndex&&a.topDict.privateDict.subrsIndex.objects,gsubrs:a.globalSubrIndex&&a.globalSubrIndex.objects,isCFFCIDFont:a.isCIDFont,fdSelect:a.fdSelect,fdArray:a.fdArray}}function u(e,t){for(var n=t.codePointAt(0),r=0,i=0,a=e.length-1;i<a;){var o=i+a+1>>1;n<e[o].start?a=o-1:i=o}return e[i].start<=n&&n<=e[i].end&&(r=e[i].idDelta+(e[i].ids?e[i].ids[n-e[i].start]:n)&65535),{charCode:n,glyphId:r}}const h=[];class d{constructor(e){this.constructor===d&&(0,r.unreachable)("Cannot initialize CompiledFont."),this.fontMatrix=e,this.compiledGlyphs=Object.create(null),this.compiledCharCodeToGlyphId=Object.create(null)}getPathJs(e){const t=u(this.cmap,e);let n=this.compiledGlyphs[t.glyphId];return n||(n=this.compileGlyph(this.glyphs[t.glyphId],t.glyphId),this.compiledGlyphs[t.glyphId]=n),void 0===this.compiledCharCodeToGlyphId[t.charCode]&&(this.compiledCharCodeToGlyphId[t.charCode]=t.glyphId),n}compileGlyph(e,t){if(!e||0===e.length||14===e[0])return h;let n=this.fontMatrix;if(this.isCFFCIDFont){const e=this.fdSelect.getFDIndex(t);if(e>=0&&e<this.fdArray.length){n=this.fdArray[e].getByName("FontMatrix")||r.FONT_IDENTITY_MATRIX}else(0,r.warn)("Invalid fd index for glyph index.")}const i=[];return i.push({cmd:"save"}),i.push({cmd:"transform",args:n.slice()}),i.push({cmd:"scale",args:["size","-size"]}),this.compileGlyphImpl(e,i,t),i.push({cmd:"restore"}),i}compileGlyphImpl(){(0,r.unreachable)("Children classes should implement this.")}hasBuiltPath(e){const t=u(this.cmap,e);return void 0!==this.compiledGlyphs[t.glyphId]&&void 0!==this.compiledCharCodeToGlyphId[t.charCode]}}return{create:function(i,s){for(var h,f,p,A,g,m,v=new Uint8Array(i.data),y=t(v,4),b=0,w=12;b<y;b++,w+=16){var x=(0,r.bytesToString)(v.subarray(w,w+4)),_=e(v,w+8),C=e(v,w+12);switch(x){case"cmap":h=l(v,_);break;case"glyf":f=v.subarray(_,_+C);break;case"loca":p=v.subarray(_,_+C);break;case"head":m=t(v,_+18),g=t(v,_+50);break;case"CFF ":A=c(v,_,_+C,s)}}if(f){var S=m?[1/m,0,0,1/m,0,0]:i.fontMatrix;return new class extends d{constructor(e,t,n){super(n||[488e-6,0,0,488e-6,0,0]),this.glyphs=e,this.cmap=t}compileGlyphImpl(e,t){!function e(t,n,r){function i(e,t){n.push({cmd:"moveTo",args:[e,t]})}function a(e,t){n.push({cmd:"lineTo",args:[e,t]})}function o(e,t,r,i){n.push({cmd:"quadraticCurveTo",args:[e,t,r,i]})}var s,l=0,c=(t[l]<<24|t[l+1]<<16)>>16,u=0,h=0;if(l+=10,c<0)do{s=t[l]<<8|t[l+1];var d,f,p=t[l+2]<<8|t[l+3];l+=4,1&s?(d=(t[l]<<24|t[l+1]<<16)>>16,f=(t[l+2]<<24|t[l+3]<<16)>>16,l+=4):(d=t[l++],f=t[l++]),2&s?(u=d,h=f):(u=0,h=0);var A=1,g=1,m=0,v=0;8&s?(A=g=(t[l]<<24|t[l+1]<<16)/1073741824,l+=2):64&s?(A=(t[l]<<24|t[l+1]<<16)/1073741824,g=(t[l+2]<<24|t[l+3]<<16)/1073741824,l+=4):128&s&&(A=(t[l]<<24|t[l+1]<<16)/1073741824,m=(t[l+2]<<24|t[l+3]<<16)/1073741824,v=(t[l+4]<<24|t[l+5]<<16)/1073741824,g=(t[l+6]<<24|t[l+7]<<16)/1073741824,l+=8);var y=r.glyphs[p];y&&(n.push({cmd:"save"}),n.push({cmd:"transform",args:[A,m,v,g,u,h]}),e(y,n,r),n.push({cmd:"restore"}))}while(32&s);else{var b,w,x=[];for(b=0;b<c;b++)x.push(t[l]<<8|t[l+1]),l+=2;l+=2+(t[l]<<8|t[l+1]);for(var _=x[x.length-1]+1,C=[];C.length<_;){var S=1;for(8&(s=t[l++])&&(S+=t[l++]);S-- >0;)C.push({flags:s})}for(b=0;b<_;b++){switch(18&C[b].flags){case 0:u+=(t[l]<<24|t[l+1]<<16)>>16,l+=2;break;case 2:u-=t[l++];break;case 18:u+=t[l++]}C[b].x=u}for(b=0;b<_;b++){switch(36&C[b].flags){case 0:h+=(t[l]<<24|t[l+1]<<16)>>16,l+=2;break;case 4:h-=t[l++];break;case 36:h+=t[l++]}C[b].y=h}var k=0;for(l=0;l<c;l++){var B=x[l],E=C.slice(k,B+1);if(1&E[0].flags)E.push(E[0]);else if(1&E[E.length-1].flags)E.unshift(E[E.length-1]);else{var T={flags:1,x:(E[0].x+E[E.length-1].x)/2,y:(E[0].y+E[E.length-1].y)/2};E.unshift(T),E.push(T)}for(i(E[0].x,E[0].y),b=1,w=E.length;b<w;b++)1&E[b].flags?a(E[b].x,E[b].y):1&E[b+1].flags?(o(E[b].x,E[b].y,E[b+1].x,E[b+1].y),b++):o(E[b].x,E[b].y,(E[b].x+E[b+1].x)/2,(E[b].y+E[b+1].y)/2);k=B+1}}}(e,t,this)}}(function(e,t,n){var r,i;n?(r=4,i=function(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]}):(r=2,i=function(e,t){return e[t]<<9|e[t+1]<<1});for(var a=[],o=i(t,0),s=r;s<t.length;s+=r){var l=i(t,s);a.push(e.subarray(o,l)),o=l}return a}(f,p,g),h,S)}return new class extends d{constructor(e,t,r,i){super(r||[.001,0,0,.001,0,0]),this.glyphs=e.glyphs,this.gsubrs=e.gsubrs||[],this.subrs=e.subrs||[],this.cmap=t,this.glyphNameMap=i||(0,a.getGlyphsUnicode)(),this.gsubrsBias=n(this.gsubrs),this.subrsBias=n(this.subrs),this.isCFFCIDFont=e.isCFFCIDFont,this.fdSelect=e.fdSelect,this.fdArray=e.fdArray}compileGlyphImpl(e,t,i){!function e(t,i,a,s){function l(e,t){i.push({cmd:"moveTo",args:[e,t]})}function c(e,t){i.push({cmd:"lineTo",args:[e,t]})}function h(e,t,n,r,a,o){i.push({cmd:"bezierCurveTo",args:[e,t,n,r,a,o]})}var d=[],f=0,p=0,A=0;!function t(g){for(var m=0;m<g.length;){var v,y,b,w,x,_,C,S,k=!1,B=g[m++];switch(B){case 1:case 3:A+=d.length>>1,k=!0;break;case 4:p+=d.pop(),l(f,p),k=!0;break;case 5:for(;d.length>0;)f+=d.shift(),p+=d.shift(),c(f,p);break;case 6:for(;d.length>0&&(c(f+=d.shift(),p),0!==d.length);)p+=d.shift(),c(f,p);break;case 7:for(;d.length>0&&(p+=d.shift(),c(f,p),0!==d.length);)c(f+=d.shift(),p);break;case 8:for(;d.length>0;)v=f+d.shift(),b=p+d.shift(),y=v+d.shift(),w=b+d.shift(),f=y+d.shift(),p=w+d.shift(),h(v,b,y,w,f,p);break;case 10:if(C=d.pop(),S=null,a.isCFFCIDFont){const e=a.fdSelect.getFDIndex(s);if(e>=0&&e<a.fdArray.length){const t=a.fdArray[e];let r;t.privateDict&&t.privateDict.subrsIndex&&(r=t.privateDict.subrsIndex.objects),r&&(S=r[C+=n(r)])}else(0,r.warn)("Invalid fd index for glyph index.")}else S=a.subrs[C+a.subrsBias];S&&t(S);break;case 11:return;case 12:switch(B=g[m++]){case 34:y=(v=f+d.shift())+d.shift(),x=p+d.shift(),f=y+d.shift(),h(v,p,y,x,f,x),y=(v=f+d.shift())+d.shift(),f=y+d.shift(),h(v,x,y,p,f,p);break;case 35:v=f+d.shift(),b=p+d.shift(),y=v+d.shift(),w=b+d.shift(),f=y+d.shift(),p=w+d.shift(),h(v,b,y,w,f,p),v=f+d.shift(),b=p+d.shift(),y=v+d.shift(),w=b+d.shift(),f=y+d.shift(),p=w+d.shift(),h(v,b,y,w,f,p),d.pop();break;case 36:h(v=f+d.shift(),x=p+d.shift(),y=v+d.shift(),_=x+d.shift(),f=y+d.shift(),_),h(v=f+d.shift(),_,y=v+d.shift(),_+d.shift(),f=y+d.shift(),p);break;case 37:var E=f,T=p;v=f+d.shift(),b=p+d.shift(),y=v+d.shift(),w=b+d.shift(),f=y+d.shift(),p=w+d.shift(),h(v,b,y,w,f,p),v=f+d.shift(),b=p+d.shift(),y=v+d.shift(),w=b+d.shift(),f=y,p=w,Math.abs(f-E)>Math.abs(p-T)?f+=d.shift():p+=d.shift(),h(v,b,y,w,f,p);break;default:throw new r.FormatError(`unknown operator: 12 ${B}`)}break;case 14:if(d.length>=4){var I=d.pop(),M=d.pop();p=d.pop(),f=d.pop(),i.push({cmd:"save"}),i.push({cmd:"translate",args:[f,p]});var F=u(a.cmap,String.fromCharCode(a.glyphNameMap[o.StandardEncoding[I]]));e(a.glyphs[F.glyphId],i,a,F.glyphId),i.push({cmd:"restore"}),F=u(a.cmap,String.fromCharCode(a.glyphNameMap[o.StandardEncoding[M]])),e(a.glyphs[F.glyphId],i,a,F.glyphId)}return;case 18:A+=d.length>>1,k=!0;break;case 19:case 20:m+=(A+=d.length>>1)+7>>3,k=!0;break;case 21:p+=d.pop(),l(f+=d.pop(),p),k=!0;break;case 22:l(f+=d.pop(),p),k=!0;break;case 23:A+=d.length>>1,k=!0;break;case 24:for(;d.length>2;)v=f+d.shift(),b=p+d.shift(),y=v+d.shift(),w=b+d.shift(),f=y+d.shift(),p=w+d.shift(),h(v,b,y,w,f,p);f+=d.shift(),p+=d.shift(),c(f,p);break;case 25:for(;d.length>6;)f+=d.shift(),p+=d.shift(),c(f,p);v=f+d.shift(),b=p+d.shift(),y=v+d.shift(),w=b+d.shift(),f=y+d.shift(),p=w+d.shift(),h(v,b,y,w,f,p);break;case 26:for(d.length%2&&(f+=d.shift());d.length>0;)v=f,b=p+d.shift(),y=v+d.shift(),w=b+d.shift(),f=y,p=w+d.shift(),h(v,b,y,w,f,p);break;case 27:for(d.length%2&&(p+=d.shift());d.length>0;)h(v=f+d.shift(),b=p,y=v+d.shift(),w=b+d.shift(),f=y+d.shift(),p=w);break;case 28:d.push((g[m]<<24|g[m+1]<<16)>>16),m+=2;break;case 29:C=d.pop()+a.gsubrsBias,(S=a.gsubrs[C])&&t(S);break;case 30:for(;d.length>0&&(v=f,b=p+d.shift(),y=v+d.shift(),w=b+d.shift(),f=y+d.shift(),p=w+(1===d.length?d.shift():0),h(v,b,y,w,f,p),0!==d.length);)v=f+d.shift(),b=p,y=v+d.shift(),w=b+d.shift(),p=w+d.shift(),h(v,b,y,w,f=y+(1===d.length?d.shift():0),p);break;case 31:for(;d.length>0&&(v=f+d.shift(),b=p,y=v+d.shift(),w=b+d.shift(),p=w+d.shift(),h(v,b,y,w,f=y+(1===d.length?d.shift():0),p),0!==d.length);)v=f,b=p+d.shift(),y=v+d.shift(),w=b+d.shift(),f=y+d.shift(),p=w+(1===d.length?d.shift():0),h(v,b,y,w,f,p);break;default:if(B<32)throw new r.FormatError(`unknown operator: ${B}`);B<247?d.push(B-139):B<251?d.push(256*(B-247)+g[m++]+108):B<255?d.push(256*-(B-251)-g[m++]-108):(d.push((g[m]<<24|g[m+1]<<16|g[m+2]<<8|g[m+3])/65536),m+=4)}k&&(d.length=0)}}(t)}(e,t,this,i)}}(A,h,i.fontMatrix,i.glyphNameMap)}}}();t.FontRendererFactory=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Type1Parser=void 0;var r=n(32),i=n(8),a=n(12),o=n(2),s=function(){var e=[4],t=[5],n=[6],r=[7],i=[8],a=[12,35],s=[14],l=[21],c=[22],u=[30],h=[31];function d(){this.width=0,this.lsb=0,this.flexing=!1,this.output=[],this.stack=[]}return d.prototype={convert:function(d,f,p){for(var A,g,m,v=d.length,y=!1,b=0;b<v;b++){var w=d[b];if(w<32){switch(12===w&&(w=(w<<8)+d[++b]),w){case 1:case 3:this.stack=[];break;case 4:if(this.flexing){if(this.stack.length<1){y=!0;break}var x=this.stack.pop();this.stack.push(0,x);break}y=this.executeCommand(1,e);break;case 5:y=this.executeCommand(2,t);break;case 6:y=this.executeCommand(1,n);break;case 7:y=this.executeCommand(1,r);break;case 8:y=this.executeCommand(6,i);break;case 9:this.stack=[];break;case 10:if(this.stack.length<1){y=!0;break}if(!f[m=this.stack.pop()]){y=!0;break}y=this.convert(f[m],f,p);break;case 11:return y;case 13:if(this.stack.length<2){y=!0;break}A=this.stack.pop(),g=this.stack.pop(),this.lsb=g,this.width=A,this.stack.push(A,g),y=this.executeCommand(2,c);break;case 14:this.output.push(s[0]);break;case 21:if(this.flexing)break;y=this.executeCommand(2,l);break;case 22:if(this.flexing){this.stack.push(0);break}y=this.executeCommand(1,c);break;case 30:y=this.executeCommand(4,u);break;case 31:y=this.executeCommand(4,h);break;case 3072:case 3073:case 3074:this.stack=[];break;case 3078:p?(this.seac=this.stack.splice(-4,4),y=this.executeCommand(0,s)):y=this.executeCommand(4,s);break;case 3079:if(this.stack.length<4){y=!0;break}this.stack.pop(),A=this.stack.pop();var _=this.stack.pop();g=this.stack.pop(),this.lsb=g,this.width=A,this.stack.push(A,g,_),y=this.executeCommand(3,l);break;case 3084:if(this.stack.length<2){y=!0;break}var C=this.stack.pop(),S=this.stack.pop();this.stack.push(S/C);break;case 3088:if(this.stack.length<2){y=!0;break}m=this.stack.pop();var k=this.stack.pop();if(0===m&&3===k){var B=this.stack.splice(this.stack.length-17,17);this.stack.push(B[2]+B[0],B[3]+B[1],B[4],B[5],B[6],B[7],B[8],B[9],B[10],B[11],B[12],B[13],B[14]),y=this.executeCommand(13,a,!0),this.flexing=!1,this.stack.push(B[15],B[16])}else 1===m&&0===k&&(this.flexing=!0);break;case 3089:break;case 3105:this.stack=[];break;default:(0,o.warn)('Unknown type 1 charstring command of "'+w+'"')}if(y)break}else w<=246?w-=139:w=w<=250?256*(w-247)+d[++b]+108:w<=254?-256*(w-251)-d[++b]-108:(255&d[++b])<<24|(255&d[++b])<<16|(255&d[++b])<<8|(255&d[++b])<<0,this.stack.push(w)}return y},executeCommand(e,t,n){var r=this.stack.length;if(e>r)return!0;for(var i=r-e,a=i;a<r;a++){var o=this.stack[a];Number.isInteger(o)?this.output.push(28,o>>8&255,255&o):(o=65536*o|0,this.output.push(255,o>>24&255,o>>16&255,o>>8&255,255&o))}return this.output.push.apply(this.output,t),n?this.stack.splice(i,e):this.stack.length=0,!1}},d}(),l=function(){var e=55665;function t(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function n(e,t,n){if(n>=e.length)return new Uint8Array(0);var r,i,a=0|t;for(r=0;r<n;r++)a=52845*(e[r]+a)+22719&65535;var o=e.length-n,s=new Uint8Array(o);for(r=n,i=0;i<o;r++,i++){var l=e[r];s[i]=l^a>>8,a=52845*(l+a)+22719&65535}return s}function o(e){return 47===e||91===e||93===e||123===e||125===e||40===e||41===e}function l(r,o,s){if(o){var l=r.getBytes(),c=!((t(l[0])||(0,i.isWhiteSpace)(l[0]))&&t(l[1])&&t(l[2])&&t(l[3])&&t(l[4])&&t(l[5])&&t(l[6])&&t(l[7]));r=new a.Stream(c?n(l,e,4):function(e,n,r){var i,a,o=0|n,s=e.length,l=new Uint8Array(s>>>1);for(i=0,a=0;i<s;i++){var c=e[i];if(t(c)){var u;for(i++;i<s&&!t(u=e[i]);)i++;if(i<s){var h=parseInt(String.fromCharCode(c,u),16);l[a++]=h^o>>8,o=52845*(h+o)+22719&65535}}}return l.slice(r,a)}(l,e,4))}this.seacAnalysisEnabled=!!s,this.stream=r,this.nextChar()}return l.prototype={readNumberArray:function(){this.getToken();for(var e=[];;){var t=this.getToken();if(null===t||"]"===t||"}"===t)break;e.push(parseFloat(t||0))}return e},readNumber:function(){var e=this.getToken();return parseFloat(e||0)},readInt:function(){var e=this.getToken();return 0|parseInt(e||0,10)},readBoolean:function(){return"true"===this.getToken()?1:0},nextChar:function(){return this.currentChar=this.stream.getByte()},getToken:function(){for(var e=!1,t=this.currentChar;;){if(-1===t)return null;if(e)10!==t&&13!==t||(e=!1);else if(37===t)e=!0;else if(!(0,i.isWhiteSpace)(t))break;t=this.nextChar()}if(o(t))return this.nextChar(),String.fromCharCode(t);var n="";do{n+=String.fromCharCode(t),t=this.nextChar()}while(t>=0&&!(0,i.isWhiteSpace)(t)&&!o(t));return n},readCharStrings:function(e,t){return-1===t?e:n(e,4330,t)},extractFontProgram:function(e){var t=this.stream,n=[],r=[],i=Object.create(null);i.lenIV=4;for(var a,o,l,c,u,h={subrs:[],charstrings:[],properties:{privateData:i}};null!==(a=this.getToken());)if("/"===a)switch(a=this.getToken()){case"CharStrings":for(this.getToken(),this.getToken(),this.getToken(),this.getToken();null!==(a=this.getToken())&&"end"!==a;)if("/"===a){var d=this.getToken();o=this.readInt(),this.getToken(),l=o>0?t.getBytes(o):new Uint8Array(0),c=h.properties.privateData.lenIV,u=this.readCharStrings(l,c),this.nextChar(),"noaccess"===(a=this.getToken())&&this.getToken(),r.push({glyph:d,encoded:u})}break;case"Subrs":for(this.readInt(),this.getToken();"dup"===this.getToken();){const e=this.readInt();o=this.readInt(),this.getToken(),l=o>0?t.getBytes(o):new Uint8Array(0),c=h.properties.privateData.lenIV,u=this.readCharStrings(l,c),this.nextChar(),"noaccess"===(a=this.getToken())&&this.getToken(),n[e]=u}break;case"BlueValues":case"OtherBlues":case"FamilyBlues":case"FamilyOtherBlues":var f=this.readNumberArray();f.length>0&&f.length,0;break;case"StemSnapH":case"StemSnapV":h.properties.privateData[a]=this.readNumberArray();break;case"StdHW":case"StdVW":h.properties.privateData[a]=this.readNumberArray()[0];break;case"BlueShift":case"lenIV":case"BlueFuzz":case"BlueScale":case"LanguageGroup":case"ExpansionFactor":h.properties.privateData[a]=this.readNumber();break;case"ForceBold":h.properties.privateData[a]=this.readBoolean()}for(var p=0;p<r.length;p++){d=r[p].glyph,u=r[p].encoded;var A=new s,g=A.convert(u,n,this.seacAnalysisEnabled),m=A.output;g&&(m=[14]);const t={glyphName:d,charstring:m,width:A.width,lsb:A.lsb,seac:A.seac};if(".notdef"===d?h.charstrings.unshift(t):h.charstrings.push(t),e.builtInEncoding){const t=e.builtInEncoding.indexOf(d);t>-1&&void 0===e.widths[t]&&t>=e.firstChar&&t<=e.lastChar&&(e.widths[t]=A.width)}}return h},extractFontHeader:function(e){for(var t;null!==(t=this.getToken());)if("/"===t)switch(t=this.getToken()){case"FontMatrix":var n=this.readNumberArray();e.fontMatrix=n;break;case"Encoding":var i,a=this.getToken();if(/^\d+$/.test(a)){i=[];var o=0|parseInt(a,10);this.getToken();for(var s=0;s<o;s++){for(t=this.getToken();"dup"!==t&&"def"!==t;)if(null===(t=this.getToken()))return;if("def"===t)break;var l=this.readInt();this.getToken();var c=this.getToken();i[l]=c,this.getToken()}}else i=(0,r.getEncoding)(a);e.builtInEncoding=i;break;case"FontBBox":var u=this.readNumberArray();e.ascent=Math.max(u[3],u[1]),e.descent=Math.min(u[1],u[3]),e.ascentScaled=!0}}},l}();t.Type1Parser=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTilingPatternIR=function(e,t,n){const i=t.getArray("Matrix"),a=r.Util.normalizeRect(t.getArray("BBox")),o=t.get("XStep"),s=t.get("YStep"),l=t.get("PaintType"),c=t.get("TilingType");if(a[2]-a[0]==0||a[3]-a[1]==0)throw new r.FormatError(`Invalid getTilingPatternIR /BBox array: [${a}].`);return["TilingPattern",n,e,i,a,o,s,l,c]},t.Pattern=void 0;var r=n(2),i=n(23),a=n(5),o=n(8),s={FUNCTION_BASED:1,AXIAL:2,RADIAL:3,FREE_FORM_MESH:4,LATTICE_FORM_MESH:5,COONS_PATCH_MESH:6,TENSOR_PATCH_MESH:7},l=function(){function e(){(0,r.unreachable)("should not call Pattern constructor")}return e.prototype={getPattern:function(e){(0,r.unreachable)(`Should not call Pattern.getStyle: ${e}`)}},e.parseShading=function(e,t,n,i,l,u){var h=(0,a.isStream)(e)?e.dict:e,d=h.get("ShadingType");try{switch(d){case s.AXIAL:case s.RADIAL:return new c.RadialAxial(h,t,n,i,u);case s.FREE_FORM_MESH:case s.LATTICE_FORM_MESH:case s.COONS_PATCH_MESH:case s.TENSOR_PATCH_MESH:return new c.Mesh(e,t,n,i,u);default:throw new r.FormatError("Unsupported ShadingType: "+d)}}catch(e){if(e instanceof o.MissingDataException)throw e;return l.send("UnsupportedFeature",{featureId:r.UNSUPPORTED_FEATURES.shadingPattern}),(0,r.warn)(e),new c.Dummy}},e}();t.Pattern=l;var c={};c.SMALL_NUMBER=1e-6,c.RadialAxial=function(){function e(e,t,n,a,o){this.matrix=t,this.coordsArr=e.getArray("Coords"),this.shadingType=e.get("ShadingType"),this.type="Pattern";var l=e.get("ColorSpace","CS");l=i.ColorSpace.parse(l,n,a,o),this.cs=l;const u=e.getArray("BBox");Array.isArray(u)&&4===u.length?this.bbox=r.Util.normalizeRect(u):this.bbox=null;var h=0,d=1;if(e.has("Domain")){var f=e.getArray("Domain");h=f[0],d=f[1]}var p=!1,A=!1;if(e.has("Extend")){var g=e.getArray("Extend");p=g[0],A=g[1]}if(!(this.shadingType!==s.RADIAL||p&&A)){var m=this.coordsArr[0],v=this.coordsArr[1],y=this.coordsArr[2],b=this.coordsArr[3],w=this.coordsArr[4],x=this.coordsArr[5],_=Math.sqrt((m-b)*(m-b)+(v-w)*(v-w));y<=x+_&&x<=y+_&&(0,r.warn)("Unsupported radial gradient.")}this.extendStart=p,this.extendEnd=A;var C=e.get("Function"),S=o.createFromArray(C);const k=(d-h)/10;var B=this.colorStops=[];if(h>=d||k<=0)(0,r.info)("Bad shading domain.");else{var E,T=new Float32Array(l.numComps),I=new Float32Array(1);for(let e=0;e<=10;e++){I[0]=h+e*k,S(I,0,T,0),E=l.getRgb(T,0);var M=r.Util.makeCssRgb(E[0],E[1],E[2]);B.push([e/10,M])}var F="transparent";e.has("Background")&&(E=l.getRgb(e.get("Background"),0),F=r.Util.makeCssRgb(E[0],E[1],E[2])),p||(B.unshift([0,F]),B[1][0]+=c.SMALL_NUMBER),A||(B[B.length-1][0]-=c.SMALL_NUMBER,B.push([1,F])),this.colorStops=B}}return e.prototype={getIR:function(){var e,t,n,i,a,o=this.coordsArr,l=this.shadingType;l===s.AXIAL?(t=[o[0],o[1]],n=[o[2],o[3]],i=null,a=null,e="axial"):l===s.RADIAL?(t=[o[0],o[1]],n=[o[3],o[4]],i=o[2],a=o[5],e="radial"):(0,r.unreachable)(`getPattern type unknown: ${l}`);var c=this.matrix;if(c&&(t=r.Util.applyTransform(t,c),n=r.Util.applyTransform(n,c),l===s.RADIAL)){var u=r.Util.singularValueDecompose2dScale(c);i*=u[0],a*=u[1]}return["RadialAxial",e,this.bbox,this.colorStops,t,n,i,a]}},e}(),c.Mesh=function(){function e(e,t){this.stream=e,this.context=t,this.buffer=0,this.bufferLength=0;var n=t.numComps;this.tmpCompsBuf=new Float32Array(n);var r=t.colorSpace.numComps;this.tmpCsCompsBuf=t.colorFn?new Float32Array(r):this.tmpCompsBuf}e.prototype={get hasData(){if(this.stream.end)return this.stream.pos<this.stream.end;if(this.bufferLength>0)return!0;var e=this.stream.getByte();return!(e<0)&&(this.buffer=e,this.bufferLength=8,!0)},readBits:function(e){var t=this.buffer,n=this.bufferLength;if(32===e){if(0===n)return(this.stream.getByte()<<24|this.stream.getByte()<<16|this.stream.getByte()<<8|this.stream.getByte())>>>0;t=t<<24|this.stream.getByte()<<16|this.stream.getByte()<<8|this.stream.getByte();var r=this.stream.getByte();return this.buffer=r&(1<<n)-1,(t<<8-n|(255&r)>>n)>>>0}if(8===e&&0===n)return this.stream.getByte();for(;n<e;)t=t<<8|this.stream.getByte(),n+=8;return n-=e,this.bufferLength=n,this.buffer=t&(1<<n)-1,t>>n},align:function(){this.buffer=0,this.bufferLength=0},readFlag:function(){return this.readBits(this.context.bitsPerFlag)},readCoordinate:function(){var e=this.context.bitsPerCoordinate,t=this.readBits(e),n=this.readBits(e),r=this.context.decode,i=e<32?1/((1<<e)-1):2.3283064365386963e-10;return[t*i*(r[1]-r[0])+r[0],n*i*(r[3]-r[2])+r[2]]},readComponents:function(){for(var e=this.context.numComps,t=this.context.bitsPerComponent,n=t<32?1/((1<<t)-1):2.3283064365386963e-10,r=this.context.decode,i=this.tmpCompsBuf,a=0,o=4;a<e;a++,o+=2){var s=this.readBits(t);i[a]=s*n*(r[o+1]-r[o])+r[o]}var l=this.tmpCsCompsBuf;return this.context.colorFn&&this.context.colorFn(i,0,l,0),this.context.colorSpace.getRgb(l,0)}};var t=3,n=20,o=20,l=function(){var e=[];return function(t){return e[t]||(e[t]=function(e){for(var t=[],n=0;n<=e;n++){var r=n/e,i=1-r;t.push(new Float32Array([i*i*i,3*r*i*i,3*r*r*i,r*r*r]))}return t}(t)),e[t]}}();function c(e,i){var a=e.figures[i];(0,r.assert)("patch"===a.type,"Unexpected patch mesh figure");var s=e.coords,c=e.colors,u=a.coords,h=a.colors,d=Math.min(s[u[0]][0],s[u[3]][0],s[u[12]][0],s[u[15]][0]),f=Math.min(s[u[0]][1],s[u[3]][1],s[u[12]][1],s[u[15]][1]),p=Math.max(s[u[0]][0],s[u[3]][0],s[u[12]][0],s[u[15]][0]),A=Math.max(s[u[0]][1],s[u[3]][1],s[u[12]][1],s[u[15]][1]),g=Math.ceil((p-d)*o/(e.bounds[2]-e.bounds[0]));g=Math.max(t,Math.min(n,g));var m=Math.ceil((A-f)*o/(e.bounds[3]-e.bounds[1]));m=Math.max(t,Math.min(n,m));for(var v=g+1,y=new Int32Array((m+1)*v),b=new Int32Array((m+1)*v),w=0,x=new Uint8Array(3),_=new Uint8Array(3),C=c[h[0]],S=c[h[1]],k=c[h[2]],B=c[h[3]],E=l(m),T=l(g),I=0;I<=m;I++){x[0]=(C[0]*(m-I)+k[0]*I)/m|0,x[1]=(C[1]*(m-I)+k[1]*I)/m|0,x[2]=(C[2]*(m-I)+k[2]*I)/m|0,_[0]=(S[0]*(m-I)+B[0]*I)/m|0,_[1]=(S[1]*(m-I)+B[1]*I)/m|0,_[2]=(S[2]*(m-I)+B[2]*I)/m|0;for(var M=0;M<=g;M++,w++)if(0!==I&&I!==m||0!==M&&M!==g){for(var F=0,D=0,P=0,O=0;O<=3;O++)for(var L=0;L<=3;L++,P++){var R=E[I][O]*T[M][L];F+=s[u[P]][0]*R,D+=s[u[P]][1]*R}y[w]=s.length,s.push([F,D]),b[w]=c.length;var N=new Uint8Array(3);N[0]=(x[0]*(g-M)+_[0]*M)/g|0,N[1]=(x[1]*(g-M)+_[1]*M)/g|0,N[2]=(x[2]*(g-M)+_[2]*M)/g|0,c.push(N)}}y[0]=u[0],b[0]=h[0],y[g]=u[3],b[g]=h[1],y[v*m]=u[12],b[v*m]=h[2],y[v*m+g]=u[15],b[v*m+g]=h[3],e.figures[i]={type:"lattice",coords:y,colors:b,verticesPerRow:v}}function u(e){for(var t=e.coords[0][0],n=e.coords[0][1],r=t,i=n,a=1,o=e.coords.length;a<o;a++){var s=e.coords[a][0],l=e.coords[a][1];t=t>s?s:t,n=n>l?l:n,r=r<s?s:r,i=i<l?l:i}e.bounds=[t,n,r,i]}function h(t,n,o,l,h){if(!(0,a.isStream)(t))throw new r.FormatError("Mesh data is not a stream");var d=t.dict;this.matrix=n,this.shadingType=d.get("ShadingType"),this.type="Pattern";const f=d.getArray("BBox");Array.isArray(f)&&4===f.length?this.bbox=r.Util.normalizeRect(f):this.bbox=null;var p=d.get("ColorSpace","CS");p=i.ColorSpace.parse(p,o,l,h),this.cs=p,this.background=d.has("Background")?p.getRgb(d.get("Background"),0):null;var A=d.get("Function"),g=A?h.createFromArray(A):null;this.coords=[],this.colors=[],this.figures=[];var m=new e(t,{bitsPerCoordinate:d.get("BitsPerCoordinate"),bitsPerComponent:d.get("BitsPerComponent"),bitsPerFlag:d.get("BitsPerFlag"),decode:d.getArray("Decode"),colorFn:g,colorSpace:p,numComps:g?1:p.numComps}),v=!1;switch(this.shadingType){case s.FREE_FORM_MESH:!function(e,t){for(var n=e.coords,i=e.colors,a=[],o=[],s=0;t.hasData;){var l=t.readFlag(),c=t.readCoordinate(),u=t.readComponents();if(0===s){if(!(0<=l&&l<=2))throw new r.FormatError("Unknown type4 flag");switch(l){case 0:s=3;break;case 1:o.push(o[o.length-2],o[o.length-1]),s=1;break;case 2:o.push(o[o.length-3],o[o.length-1]),s=1}a.push(l)}o.push(n.length),n.push(c),i.push(u),s--,t.align()}e.figures.push({type:"triangles",coords:new Int32Array(o),colors:new Int32Array(o)})}(this,m);break;case s.LATTICE_FORM_MESH:var y=0|d.get("VerticesPerRow");if(y<2)throw new r.FormatError("Invalid VerticesPerRow");!function(e,t,n){for(var r=e.coords,i=e.colors,a=[];t.hasData;){var o=t.readCoordinate(),s=t.readComponents();a.push(r.length),r.push(o),i.push(s)}e.figures.push({type:"lattice",coords:new Int32Array(a),colors:new Int32Array(a),verticesPerRow:n})}(this,m,y);break;case s.COONS_PATCH_MESH:!function(e,t){for(var n=e.coords,i=e.colors,a=new Int32Array(16),o=new Int32Array(4);t.hasData;){var s,l,c=t.readFlag();if(!(0<=c&&c<=3))throw new r.FormatError("Unknown type6 flag");var u=n.length;for(s=0,l=0!==c?8:12;s<l;s++)n.push(t.readCoordinate());var h,d,f,p,A=i.length;for(s=0,l=0!==c?2:4;s<l;s++)i.push(t.readComponents());switch(c){case 0:a[12]=u+3,a[13]=u+4,a[14]=u+5,a[15]=u+6,a[8]=u+2,a[11]=u+7,a[4]=u+1,a[7]=u+8,a[0]=u,a[1]=u+11,a[2]=u+10,a[3]=u+9,o[2]=A+1,o[3]=A+2,o[0]=A,o[1]=A+3;break;case 1:h=a[12],d=a[13],f=a[14],p=a[15],a[12]=p,a[13]=u+0,a[14]=u+1,a[15]=u+2,a[8]=f,a[11]=u+3,a[4]=d,a[7]=u+4,a[0]=h,a[1]=u+7,a[2]=u+6,a[3]=u+5,h=o[2],d=o[3],o[2]=d,o[3]=A,o[0]=h,o[1]=A+1;break;case 2:h=a[15],d=a[11],a[12]=a[3],a[13]=u+0,a[14]=u+1,a[15]=u+2,a[8]=a[7],a[11]=u+3,a[4]=d,a[7]=u+4,a[0]=h,a[1]=u+7,a[2]=u+6,a[3]=u+5,h=o[3],o[2]=o[1],o[3]=A,o[0]=h,o[1]=A+1;break;case 3:a[12]=a[0],a[13]=u+0,a[14]=u+1,a[15]=u+2,a[8]=a[1],a[11]=u+3,a[4]=a[2],a[7]=u+4,a[0]=a[3],a[1]=u+7,a[2]=u+6,a[3]=u+5,o[2]=o[0],o[3]=A,o[0]=o[1],o[1]=A+1}a[5]=n.length,n.push([(-4*n[a[0]][0]-n[a[15]][0]+6*(n[a[4]][0]+n[a[1]][0])-2*(n[a[12]][0]+n[a[3]][0])+3*(n[a[13]][0]+n[a[7]][0]))/9,(-4*n[a[0]][1]-n[a[15]][1]+6*(n[a[4]][1]+n[a[1]][1])-2*(n[a[12]][1]+n[a[3]][1])+3*(n[a[13]][1]+n[a[7]][1]))/9]),a[6]=n.length,n.push([(-4*n[a[3]][0]-n[a[12]][0]+6*(n[a[2]][0]+n[a[7]][0])-2*(n[a[0]][0]+n[a[15]][0])+3*(n[a[4]][0]+n[a[14]][0]))/9,(-4*n[a[3]][1]-n[a[12]][1]+6*(n[a[2]][1]+n[a[7]][1])-2*(n[a[0]][1]+n[a[15]][1])+3*(n[a[4]][1]+n[a[14]][1]))/9]),a[9]=n.length,n.push([(-4*n[a[12]][0]-n[a[3]][0]+6*(n[a[8]][0]+n[a[13]][0])-2*(n[a[0]][0]+n[a[15]][0])+3*(n[a[11]][0]+n[a[1]][0]))/9,(-4*n[a[12]][1]-n[a[3]][1]+6*(n[a[8]][1]+n[a[13]][1])-2*(n[a[0]][1]+n[a[15]][1])+3*(n[a[11]][1]+n[a[1]][1]))/9]),a[10]=n.length,n.push([(-4*n[a[15]][0]-n[a[0]][0]+6*(n[a[11]][0]+n[a[14]][0])-2*(n[a[12]][0]+n[a[3]][0])+3*(n[a[2]][0]+n[a[8]][0]))/9,(-4*n[a[15]][1]-n[a[0]][1]+6*(n[a[11]][1]+n[a[14]][1])-2*(n[a[12]][1]+n[a[3]][1])+3*(n[a[2]][1]+n[a[8]][1]))/9]),e.figures.push({type:"patch",coords:new Int32Array(a),colors:new Int32Array(o)})}}(this,m),v=!0;break;case s.TENSOR_PATCH_MESH:!function(e,t){for(var n=e.coords,i=e.colors,a=new Int32Array(16),o=new Int32Array(4);t.hasData;){var s,l,c=t.readFlag();if(!(0<=c&&c<=3))throw new r.FormatError("Unknown type7 flag");var u=n.length;for(s=0,l=0!==c?12:16;s<l;s++)n.push(t.readCoordinate());var h,d,f,p,A=i.length;for(s=0,l=0!==c?2:4;s<l;s++)i.push(t.readComponents());switch(c){case 0:a[12]=u+3,a[13]=u+4,a[14]=u+5,a[15]=u+6,a[8]=u+2,a[9]=u+13,a[10]=u+14,a[11]=u+7,a[4]=u+1,a[5]=u+12,a[6]=u+15,a[7]=u+8,a[0]=u,a[1]=u+11,a[2]=u+10,a[3]=u+9,o[2]=A+1,o[3]=A+2,o[0]=A,o[1]=A+3;break;case 1:h=a[12],d=a[13],f=a[14],p=a[15],a[12]=p,a[13]=u+0,a[14]=u+1,a[15]=u+2,a[8]=f,a[9]=u+9,a[10]=u+10,a[11]=u+3,a[4]=d,a[5]=u+8,a[6]=u+11,a[7]=u+4,a[0]=h,a[1]=u+7,a[2]=u+6,a[3]=u+5,h=o[2],d=o[3],o[2]=d,o[3]=A,o[0]=h,o[1]=A+1;break;case 2:h=a[15],d=a[11],a[12]=a[3],a[13]=u+0,a[14]=u+1,a[15]=u+2,a[8]=a[7],a[9]=u+9,a[10]=u+10,a[11]=u+3,a[4]=d,a[5]=u+8,a[6]=u+11,a[7]=u+4,a[0]=h,a[1]=u+7,a[2]=u+6,a[3]=u+5,h=o[3],o[2]=o[1],o[3]=A,o[0]=h,o[1]=A+1;break;case 3:a[12]=a[0],a[13]=u+0,a[14]=u+1,a[15]=u+2,a[8]=a[1],a[9]=u+9,a[10]=u+10,a[11]=u+3,a[4]=a[2],a[5]=u+8,a[6]=u+11,a[7]=u+4,a[0]=a[3],a[1]=u+7,a[2]=u+6,a[3]=u+5,o[2]=o[0],o[3]=A,o[0]=o[1],o[1]=A+1}e.figures.push({type:"patch",coords:new Int32Array(a),colors:new Int32Array(o)})}}(this,m),v=!0;break;default:(0,r.unreachable)("Unsupported mesh type.")}if(v){u(this);for(var b=0,w=this.figures.length;b<w;b++)c(this,b)}u(this),function(e){var t,n,r,i,a=e.coords,o=new Float32Array(2*a.length);for(t=0,r=0,n=a.length;t<n;t++){var s=a[t];o[r++]=s[0],o[r++]=s[1]}e.coords=o;var l=e.colors,c=new Uint8Array(3*l.length);for(t=0,r=0,n=l.length;t<n;t++){var u=l[t];c[r++]=u[0],c[r++]=u[1],c[r++]=u[2]}e.colors=c;var h=e.figures;for(t=0,n=h.length;t<n;t++){var d=h[t],f=d.coords,p=d.colors;for(r=0,i=f.length;r<i;r++)f[r]*=2,p[r]*=3}}(this)}return h.prototype={getIR:function(){return["Mesh",this.shadingType,this.coords,this.colors,this.figures,this.bounds,this.matrix,this.bbox,this.background]}},h}(),c.Dummy=function(){function e(){this.type="Pattern"}return e.prototype={getIR:function(){return["Dummy"]}},e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bidi=function(e,t,n){var p=!0,A=e.length;if(0===A||n)return h(e,p,n);d.length=A,f.length=A;var g,m,v=0;for(g=0;g<A;++g){d[g]=e.charAt(g);var y=e.charCodeAt(g),b="L";y<=255?b=i[y]:1424<=y&&y<=1524?b="R":1536<=y&&y<=1791?(b=a[255&y])||(0,r.warn)("Bidi: invalid Unicode character "+y.toString(16)):1792<=y&&y<=2220&&(b="AL"),"R"!==b&&"AL"!==b&&"AN"!==b||v++,f[g]=b}if(0===v)return h(e,p=!0);-1===t&&(v/A<.3?(p=!0,t=0):(p=!1,t=1));var w=[];for(g=0;g<A;++g)w[g]=t;var x,_=o(t)?"R":"L",C=_,S=C,k=C;for(g=0;g<A;++g)"NSM"===f[g]?f[g]=k:k=f[g];for(k=C,g=0;g<A;++g)"EN"===(x=f[g])?f[g]="AL"===k?"AN":"EN":"R"!==x&&"L"!==x&&"AL"!==x||(k=x);for(g=0;g<A;++g)"AL"===(x=f[g])&&(f[g]="R");for(g=1;g<A-1;++g)"ES"===f[g]&&"EN"===f[g-1]&&"EN"===f[g+1]&&(f[g]="EN"),"CS"!==f[g]||"EN"!==f[g-1]&&"AN"!==f[g-1]||f[g+1]!==f[g-1]||(f[g]=f[g-1]);for(g=0;g<A;++g)if("EN"===f[g]){var B;for(B=g-1;B>=0&&"ET"===f[B];--B)f[B]="EN";for(B=g+1;B<A&&"ET"===f[B];++B)f[B]="EN"}for(g=0;g<A;++g)"WS"!==(x=f[g])&&"ES"!==x&&"ET"!==x&&"CS"!==x||(f[g]="ON");for(k=C,g=0;g<A;++g)"EN"===(x=f[g])?f[g]="L"===k?"L":"EN":"R"!==x&&"L"!==x||(k=x);for(g=0;g<A;++g)if("ON"===f[g]){var E=l(f,g+1,"ON"),T=C;g>0&&(T=f[g-1]);var I=S;E+1<A&&(I=f[E+1]),"L"!==T&&(T="R"),"L"!==I&&(I="R"),T===I&&c(f,g,E,T),g=E-1}for(g=0;g<A;++g)"ON"===f[g]&&(f[g]=_);for(g=0;g<A;++g)x=f[g],s(w[g])?"R"===x?w[g]+=1:"AN"!==x&&"EN"!==x||(w[g]+=2):"L"!==x&&"AN"!==x&&"EN"!==x||(w[g]+=1);var M,F=-1,D=99;for(g=0,m=w.length;g<m;++g)M=w[g],F<M&&(F=M),D>M&&o(M)&&(D=M);for(M=F;M>=D;--M){var P=-1;for(g=0,m=w.length;g<m;++g)w[g]<M?P>=0&&(u(d,P,g),P=-1):P<0&&(P=g);P>=0&&u(d,P,w.length)}for(g=0,m=d.length;g<m;++g){var O=d[g];"<"!==O&&">"!==O||(d[g]="")}return h(d.join(""),p)};var r=n(2),i=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","ON","ON","ET","ET","ET","ON","ON","ON","ON","ON","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","ON","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","ON","ON","ON","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","ON","ET","ET","ET","ET","ON","ON","ON","ON","L","ON","ON","BN","ON","ON","ET","ET","EN","EN","ON","L","ON","ON","ON","EN","L","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","L","L","L","L","L","L","L","L"],a=["AN","AN","AN","AN","AN","AN","ON","ON","AL","ET","ET","AL","CS","AL","ON","ON","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","ON","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","ON","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL"];function o(e){return 0!=(1&e)}function s(e){return 0==(1&e)}function l(e,t,n){for(var r=t,i=e.length;r<i;++r)if(e[r]!==n)return r;return r}function c(e,t,n,r){for(var i=t;i<n;++i)e[i]=r}function u(e,t,n){for(var r=t,i=n-1;r<i;++r,--i){var a=e[r];e[r]=e[i],e[i]=a}}function h(e,t,n=!1){let r="ltr";return n?r="ttb":t||(r="rtl"),{str:e,dir:r}}var d=[],f=[]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getMetrics=void 0;var r=n(8),i=(0,r.getLookupTableFactory)(function(e){e.Courier=600,e["Courier-Bold"]=600,e["Courier-BoldOblique"]=600,e["Courier-Oblique"]=600,e.Helvetica=(0,r.getLookupTableFactory)(function(e){e.space=278,e.exclam=278,e.quotedbl=355,e.numbersign=556,e.dollar=556,e.percent=889,e.ampersand=667,e.quoteright=222,e.parenleft=333,e.parenright=333,e.asterisk=389,e.plus=584,e.comma=278,e.hyphen=333,e.period=278,e.slash=278,e.zero=556,e.one=556,e.two=556,e.three=556,e.four=556,e.five=556,e.six=556,e.seven=556,e.eight=556,e.nine=556,e.colon=278,e.semicolon=278,e.less=584,e.equal=584,e.greater=584,e.question=556,e.at=1015,e.A=667,e.B=667,e.C=722,e.D=722,e.E=667,e.F=611,e.G=778,e.H=722,e.I=278,e.J=500,e.K=667,e.L=556,e.M=833,e.N=722,e.O=778,e.P=667,e.Q=778,e.R=722,e.S=667,e.T=611,e.U=722,e.V=667,e.W=944,e.X=667,e.Y=667,e.Z=611,e.bracketleft=278,e.backslash=278,e.bracketright=278,e.asciicircum=469,e.underscore=556,e.quoteleft=222,e.a=556,e.b=556,e.c=500,e.d=556,e.e=556,e.f=278,e.g=556,e.h=556,e.i=222,e.j=222,e.k=500,e.l=222,e.m=833,e.n=556,e.o=556,e.p=556,e.q=556,e.r=333,e.s=500,e.t=278,e.u=556,e.v=500,e.w=722,e.x=500,e.y=500,e.z=500,e.braceleft=334,e.bar=260,e.braceright=334,e.asciitilde=584,e.exclamdown=333,e.cent=556,e.sterling=556,e.fraction=167,e.yen=556,e.florin=556,e.section=556,e.currency=556,e.quotesingle=191,e.quotedblleft=333,e.guillemotleft=556,e.guilsinglleft=333,e.guilsinglright=333,e.fi=500,e.fl=500,e.endash=556,e.dagger=556,e.daggerdbl=556,e.periodcentered=278,e.paragraph=537,e.bullet=350,e.quotesinglbase=222,e.quotedblbase=333,e.quotedblright=333,e.guillemotright=556,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=611,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=1e3,e.ordfeminine=370,e.Lslash=556,e.Oslash=778,e.OE=1e3,e.ordmasculine=365,e.ae=889,e.dotlessi=278,e.lslash=222,e.oslash=611,e.oe=944,e.germandbls=611,e.Idieresis=278,e.eacute=556,e.abreve=556,e.uhungarumlaut=556,e.ecaron=556,e.Ydieresis=667,e.divide=584,e.Yacute=667,e.Acircumflex=667,e.aacute=556,e.Ucircumflex=722,e.yacute=500,e.scommaaccent=500,e.ecircumflex=556,e.Uring=722,e.Udieresis=722,e.aogonek=556,e.Uacute=722,e.uogonek=556,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=737,e.Emacron=667,e.ccaron=500,e.aring=556,e.Ncommaaccent=722,e.lacute=222,e.agrave=556,e.Tcommaaccent=611,e.Cacute=722,e.atilde=556,e.Edotaccent=667,e.scaron=500,e.scedilla=500,e.iacute=278,e.lozenge=471,e.Rcaron=722,e.Gcommaaccent=778,e.ucircumflex=556,e.acircumflex=556,e.Amacron=667,e.rcaron=333,e.ccedilla=500,e.Zdotaccent=611,e.Thorn=667,e.Omacron=778,e.Racute=722,e.Sacute=667,e.dcaron=643,e.Umacron=722,e.uring=556,e.threesuperior=333,e.Ograve=778,e.Agrave=667,e.Abreve=667,e.multiply=584,e.uacute=556,e.Tcaron=611,e.partialdiff=476,e.ydieresis=500,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=556,e.edieresis=556,e.cacute=500,e.nacute=556,e.umacron=556,e.Ncaron=722,e.Iacute=278,e.plusminus=584,e.brokenbar=260,e.registered=737,e.Gbreve=778,e.Idotaccent=278,e.summation=600,e.Egrave=667,e.racute=333,e.omacron=556,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=722,e.lcommaaccent=222,e.tcaron=317,e.eogonek=556,e.Uogonek=722,e.Aacute=667,e.Adieresis=667,e.egrave=556,e.zacute=500,e.iogonek=222,e.Oacute=778,e.oacute=556,e.amacron=556,e.sacute=500,e.idieresis=278,e.Ocircumflex=778,e.Ugrave=722,e.Delta=612,e.thorn=556,e.twosuperior=333,e.Odieresis=778,e.mu=556,e.igrave=278,e.ohungarumlaut=556,e.Eogonek=667,e.dcroat=556,e.threequarters=834,e.Scedilla=667,e.lcaron=299,e.Kcommaaccent=667,e.Lacute=556,e.trademark=1e3,e.edotaccent=556,e.Igrave=278,e.Imacron=278,e.Lcaron=556,e.onehalf=834,e.lessequal=549,e.ocircumflex=556,e.ntilde=556,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=556,e.gbreve=556,e.onequarter=834,e.Scaron=667,e.Scommaaccent=667,e.Ohungarumlaut=778,e.degree=400,e.ograve=556,e.Ccaron=722,e.ugrave=556,e.radical=453,e.Dcaron=722,e.rcommaaccent=333,e.Ntilde=722,e.otilde=556,e.Rcommaaccent=722,e.Lcommaaccent=556,e.Atilde=667,e.Aogonek=667,e.Aring=667,e.Otilde=778,e.zdotaccent=500,e.Ecaron=667,e.Iogonek=278,e.kcommaaccent=500,e.minus=584,e.Icircumflex=278,e.ncaron=556,e.tcommaaccent=278,e.logicalnot=584,e.odieresis=556,e.udieresis=556,e.notequal=549,e.gcommaaccent=556,e.eth=556,e.zcaron=500,e.ncommaaccent=556,e.onesuperior=333,e.imacron=278,e.Euro=556}),e["Helvetica-Bold"]=(0,r.getLookupTableFactory)(function(e){e.space=278,e.exclam=333,e.quotedbl=474,e.numbersign=556,e.dollar=556,e.percent=889,e.ampersand=722,e.quoteright=278,e.parenleft=333,e.parenright=333,e.asterisk=389,e.plus=584,e.comma=278,e.hyphen=333,e.period=278,e.slash=278,e.zero=556,e.one=556,e.two=556,e.three=556,e.four=556,e.five=556,e.six=556,e.seven=556,e.eight=556,e.nine=556,e.colon=333,e.semicolon=333,e.less=584,e.equal=584,e.greater=584,e.question=611,e.at=975,e.A=722,e.B=722,e.C=722,e.D=722,e.E=667,e.F=611,e.G=778,e.H=722,e.I=278,e.J=556,e.K=722,e.L=611,e.M=833,e.N=722,e.O=778,e.P=667,e.Q=778,e.R=722,e.S=667,e.T=611,e.U=722,e.V=667,e.W=944,e.X=667,e.Y=667,e.Z=611,e.bracketleft=333,e.backslash=278,e.bracketright=333,e.asciicircum=584,e.underscore=556,e.quoteleft=278,e.a=556,e.b=611,e.c=556,e.d=611,e.e=556,e.f=333,e.g=611,e.h=611,e.i=278,e.j=278,e.k=556,e.l=278,e.m=889,e.n=611,e.o=611,e.p=611,e.q=611,e.r=389,e.s=556,e.t=333,e.u=611,e.v=556,e.w=778,e.x=556,e.y=556,e.z=500,e.braceleft=389,e.bar=280,e.braceright=389,e.asciitilde=584,e.exclamdown=333,e.cent=556,e.sterling=556,e.fraction=167,e.yen=556,e.florin=556,e.section=556,e.currency=556,e.quotesingle=238,e.quotedblleft=500,e.guillemotleft=556,e.guilsinglleft=333,e.guilsinglright=333,e.fi=611,e.fl=611,e.endash=556,e.dagger=556,e.daggerdbl=556,e.periodcentered=278,e.paragraph=556,e.bullet=350,e.quotesinglbase=278,e.quotedblbase=500,e.quotedblright=500,e.guillemotright=556,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=611,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=1e3,e.ordfeminine=370,e.Lslash=611,e.Oslash=778,e.OE=1e3,e.ordmasculine=365,e.ae=889,e.dotlessi=278,e.lslash=278,e.oslash=611,e.oe=944,e.germandbls=611,e.Idieresis=278,e.eacute=556,e.abreve=556,e.uhungarumlaut=611,e.ecaron=556,e.Ydieresis=667,e.divide=584,e.Yacute=667,e.Acircumflex=722,e.aacute=556,e.Ucircumflex=722,e.yacute=556,e.scommaaccent=556,e.ecircumflex=556,e.Uring=722,e.Udieresis=722,e.aogonek=556,e.Uacute=722,e.uogonek=611,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=737,e.Emacron=667,e.ccaron=556,e.aring=556,e.Ncommaaccent=722,e.lacute=278,e.agrave=556,e.Tcommaaccent=611,e.Cacute=722,e.atilde=556,e.Edotaccent=667,e.scaron=556,e.scedilla=556,e.iacute=278,e.lozenge=494,e.Rcaron=722,e.Gcommaaccent=778,e.ucircumflex=611,e.acircumflex=556,e.Amacron=722,e.rcaron=389,e.ccedilla=556,e.Zdotaccent=611,e.Thorn=667,e.Omacron=778,e.Racute=722,e.Sacute=667,e.dcaron=743,e.Umacron=722,e.uring=611,e.threesuperior=333,e.Ograve=778,e.Agrave=722,e.Abreve=722,e.multiply=584,e.uacute=611,e.Tcaron=611,e.partialdiff=494,e.ydieresis=556,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=556,e.edieresis=556,e.cacute=556,e.nacute=611,e.umacron=611,e.Ncaron=722,e.Iacute=278,e.plusminus=584,e.brokenbar=280,e.registered=737,e.Gbreve=778,e.Idotaccent=278,e.summation=600,e.Egrave=667,e.racute=389,e.omacron=611,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=722,e.lcommaaccent=278,e.tcaron=389,e.eogonek=556,e.Uogonek=722,e.Aacute=722,e.Adieresis=722,e.egrave=556,e.zacute=500,e.iogonek=278,e.Oacute=778,e.oacute=611,e.amacron=556,e.sacute=556,e.idieresis=278,e.Ocircumflex=778,e.Ugrave=722,e.Delta=612,e.thorn=611,e.twosuperior=333,e.Odieresis=778,e.mu=611,e.igrave=278,e.ohungarumlaut=611,e.Eogonek=667,e.dcroat=611,e.threequarters=834,e.Scedilla=667,e.lcaron=400,e.Kcommaaccent=722,e.Lacute=611,e.trademark=1e3,e.edotaccent=556,e.Igrave=278,e.Imacron=278,e.Lcaron=611,e.onehalf=834,e.lessequal=549,e.ocircumflex=611,e.ntilde=611,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=556,e.gbreve=611,e.onequarter=834,e.Scaron=667,e.Scommaaccent=667,e.Ohungarumlaut=778,e.degree=400,e.ograve=611,e.Ccaron=722,e.ugrave=611,e.radical=549,e.Dcaron=722,e.rcommaaccent=389,e.Ntilde=722,e.otilde=611,e.Rcommaaccent=722,e.Lcommaaccent=611,e.Atilde=722,e.Aogonek=722,e.Aring=722,e.Otilde=778,e.zdotaccent=500,e.Ecaron=667,e.Iogonek=278,e.kcommaaccent=556,e.minus=584,e.Icircumflex=278,e.ncaron=611,e.tcommaaccent=333,e.logicalnot=584,e.odieresis=611,e.udieresis=611,e.notequal=549,e.gcommaaccent=611,e.eth=611,e.zcaron=500,e.ncommaaccent=611,e.onesuperior=333,e.imacron=278,e.Euro=556}),e["Helvetica-BoldOblique"]=(0,r.getLookupTableFactory)(function(e){e.space=278,e.exclam=333,e.quotedbl=474,e.numbersign=556,e.dollar=556,e.percent=889,e.ampersand=722,e.quoteright=278,e.parenleft=333,e.parenright=333,e.asterisk=389,e.plus=584,e.comma=278,e.hyphen=333,e.period=278,e.slash=278,e.zero=556,e.one=556,e.two=556,e.three=556,e.four=556,e.five=556,e.six=556,e.seven=556,e.eight=556,e.nine=556,e.colon=333,e.semicolon=333,e.less=584,e.equal=584,e.greater=584,e.question=611,e.at=975,e.A=722,e.B=722,e.C=722,e.D=722,e.E=667,e.F=611,e.G=778,e.H=722,e.I=278,e.J=556,e.K=722,e.L=611,e.M=833,e.N=722,e.O=778,e.P=667,e.Q=778,e.R=722,e.S=667,e.T=611,e.U=722,e.V=667,e.W=944,e.X=667,e.Y=667,e.Z=611,e.bracketleft=333,e.backslash=278,e.bracketright=333,e.asciicircum=584,e.underscore=556,e.quoteleft=278,e.a=556,e.b=611,e.c=556,e.d=611,e.e=556,e.f=333,e.g=611,e.h=611,e.i=278,e.j=278,e.k=556,e.l=278,e.m=889,e.n=611,e.o=611,e.p=611,e.q=611,e.r=389,e.s=556,e.t=333,e.u=611,e.v=556,e.w=778,e.x=556,e.y=556,e.z=500,e.braceleft=389,e.bar=280,e.braceright=389,e.asciitilde=584,e.exclamdown=333,e.cent=556,e.sterling=556,e.fraction=167,e.yen=556,e.florin=556,e.section=556,e.currency=556,e.quotesingle=238,e.quotedblleft=500,e.guillemotleft=556,e.guilsinglleft=333,e.guilsinglright=333,e.fi=611,e.fl=611,e.endash=556,e.dagger=556,e.daggerdbl=556,e.periodcentered=278,e.paragraph=556,e.bullet=350,e.quotesinglbase=278,e.quotedblbase=500,e.quotedblright=500,e.guillemotright=556,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=611,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=1e3,e.ordfeminine=370,e.Lslash=611,e.Oslash=778,e.OE=1e3,e.ordmasculine=365,e.ae=889,e.dotlessi=278,e.lslash=278,e.oslash=611,e.oe=944,e.germandbls=611,e.Idieresis=278,e.eacute=556,e.abreve=556,e.uhungarumlaut=611,e.ecaron=556,e.Ydieresis=667,e.divide=584,e.Yacute=667,e.Acircumflex=722,e.aacute=556,e.Ucircumflex=722,e.yacute=556,e.scommaaccent=556,e.ecircumflex=556,e.Uring=722,e.Udieresis=722,e.aogonek=556,e.Uacute=722,e.uogonek=611,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=737,e.Emacron=667,e.ccaron=556,e.aring=556,e.Ncommaaccent=722,e.lacute=278,e.agrave=556,e.Tcommaaccent=611,e.Cacute=722,e.atilde=556,e.Edotaccent=667,e.scaron=556,e.scedilla=556,e.iacute=278,e.lozenge=494,e.Rcaron=722,e.Gcommaaccent=778,e.ucircumflex=611,e.acircumflex=556,e.Amacron=722,e.rcaron=389,e.ccedilla=556,e.Zdotaccent=611,e.Thorn=667,e.Omacron=778,e.Racute=722,e.Sacute=667,e.dcaron=743,e.Umacron=722,e.uring=611,e.threesuperior=333,e.Ograve=778,e.Agrave=722,e.Abreve=722,e.multiply=584,e.uacute=611,e.Tcaron=611,e.partialdiff=494,e.ydieresis=556,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=556,e.edieresis=556,e.cacute=556,e.nacute=611,e.umacron=611,e.Ncaron=722,e.Iacute=278,e.plusminus=584,e.brokenbar=280,e.registered=737,e.Gbreve=778,e.Idotaccent=278,e.summation=600,e.Egrave=667,e.racute=389,e.omacron=611,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=722,e.lcommaaccent=278,e.tcaron=389,e.eogonek=556,e.Uogonek=722,e.Aacute=722,e.Adieresis=722,e.egrave=556,e.zacute=500,e.iogonek=278,e.Oacute=778,e.oacute=611,e.amacron=556,e.sacute=556,e.idieresis=278,e.Ocircumflex=778,e.Ugrave=722,e.Delta=612,e.thorn=611,e.twosuperior=333,e.Odieresis=778,e.mu=611,e.igrave=278,e.ohungarumlaut=611,e.Eogonek=667,e.dcroat=611,e.threequarters=834,e.Scedilla=667,e.lcaron=400,e.Kcommaaccent=722,e.Lacute=611,e.trademark=1e3,e.edotaccent=556,e.Igrave=278,e.Imacron=278,e.Lcaron=611,e.onehalf=834,e.lessequal=549,e.ocircumflex=611,e.ntilde=611,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=556,e.gbreve=611,e.onequarter=834,e.Scaron=667,e.Scommaaccent=667,e.Ohungarumlaut=778,e.degree=400,e.ograve=611,e.Ccaron=722,e.ugrave=611,e.radical=549,e.Dcaron=722,e.rcommaaccent=389,e.Ntilde=722,e.otilde=611,e.Rcommaaccent=722,e.Lcommaaccent=611,e.Atilde=722,e.Aogonek=722,e.Aring=722,e.Otilde=778,e.zdotaccent=500,e.Ecaron=667,e.Iogonek=278,e.kcommaaccent=556,e.minus=584,e.Icircumflex=278,e.ncaron=611,e.tcommaaccent=333,e.logicalnot=584,e.odieresis=611,e.udieresis=611,e.notequal=549,e.gcommaaccent=611,e.eth=611,e.zcaron=500,e.ncommaaccent=611,e.onesuperior=333,e.imacron=278,e.Euro=556}),e["Helvetica-Oblique"]=(0,r.getLookupTableFactory)(function(e){e.space=278,e.exclam=278,e.quotedbl=355,e.numbersign=556,e.dollar=556,e.percent=889,e.ampersand=667,e.quoteright=222,e.parenleft=333,e.parenright=333,e.asterisk=389,e.plus=584,e.comma=278,e.hyphen=333,e.period=278,e.slash=278,e.zero=556,e.one=556,e.two=556,e.three=556,e.four=556,e.five=556,e.six=556,e.seven=556,e.eight=556,e.nine=556,e.colon=278,e.semicolon=278,e.less=584,e.equal=584,e.greater=584,e.question=556,e.at=1015,e.A=667,e.B=667,e.C=722,e.D=722,e.E=667,e.F=611,e.G=778,e.H=722,e.I=278,e.J=500,e.K=667,e.L=556,e.M=833,e.N=722,e.O=778,e.P=667,e.Q=778,e.R=722,e.S=667,e.T=611,e.U=722,e.V=667,e.W=944,e.X=667,e.Y=667,e.Z=611,e.bracketleft=278,e.backslash=278,e.bracketright=278,e.asciicircum=469,e.underscore=556,e.quoteleft=222,e.a=556,e.b=556,e.c=500,e.d=556,e.e=556,e.f=278,e.g=556,e.h=556,e.i=222,e.j=222,e.k=500,e.l=222,e.m=833,e.n=556,e.o=556,e.p=556,e.q=556,e.r=333,e.s=500,e.t=278,e.u=556,e.v=500,e.w=722,e.x=500,e.y=500,e.z=500,e.braceleft=334,e.bar=260,e.braceright=334,e.asciitilde=584,e.exclamdown=333,e.cent=556,e.sterling=556,e.fraction=167,e.yen=556,e.florin=556,e.section=556,e.currency=556,e.quotesingle=191,e.quotedblleft=333,e.guillemotleft=556,e.guilsinglleft=333,e.guilsinglright=333,e.fi=500,e.fl=500,e.endash=556,e.dagger=556,e.daggerdbl=556,e.periodcentered=278,e.paragraph=537,e.bullet=350,e.quotesinglbase=222,e.quotedblbase=333,e.quotedblright=333,e.guillemotright=556,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=611,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=1e3,e.ordfeminine=370,e.Lslash=556,e.Oslash=778,e.OE=1e3,e.ordmasculine=365,e.ae=889,e.dotlessi=278,e.lslash=222,e.oslash=611,e.oe=944,e.germandbls=611,e.Idieresis=278,e.eacute=556,e.abreve=556,e.uhungarumlaut=556,e.ecaron=556,e.Ydieresis=667,e.divide=584,e.Yacute=667,e.Acircumflex=667,e.aacute=556,e.Ucircumflex=722,e.yacute=500,e.scommaaccent=500,e.ecircumflex=556,e.Uring=722,e.Udieresis=722,e.aogonek=556,e.Uacute=722,e.uogonek=556,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=737,e.Emacron=667,e.ccaron=500,e.aring=556,e.Ncommaaccent=722,e.lacute=222,e.agrave=556,e.Tcommaaccent=611,e.Cacute=722,e.atilde=556,e.Edotaccent=667,e.scaron=500,e.scedilla=500,e.iacute=278,e.lozenge=471,e.Rcaron=722,e.Gcommaaccent=778,e.ucircumflex=556,e.acircumflex=556,e.Amacron=667,e.rcaron=333,e.ccedilla=500,e.Zdotaccent=611,e.Thorn=667,e.Omacron=778,e.Racute=722,e.Sacute=667,e.dcaron=643,e.Umacron=722,e.uring=556,e.threesuperior=333,e.Ograve=778,e.Agrave=667,e.Abreve=667,e.multiply=584,e.uacute=556,e.Tcaron=611,e.partialdiff=476,e.ydieresis=500,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=556,e.edieresis=556,e.cacute=500,e.nacute=556,e.umacron=556,e.Ncaron=722,e.Iacute=278,e.plusminus=584,e.brokenbar=260,e.registered=737,e.Gbreve=778,e.Idotaccent=278,e.summation=600,e.Egrave=667,e.racute=333,e.omacron=556,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=722,e.lcommaaccent=222,e.tcaron=317,e.eogonek=556,e.Uogonek=722,e.Aacute=667,e.Adieresis=667,e.egrave=556,e.zacute=500,e.iogonek=222,e.Oacute=778,e.oacute=556,e.amacron=556,e.sacute=500,e.idieresis=278,e.Ocircumflex=778,e.Ugrave=722,e.Delta=612,e.thorn=556,e.twosuperior=333,e.Odieresis=778,e.mu=556,e.igrave=278,e.ohungarumlaut=556,e.Eogonek=667,e.dcroat=556,e.threequarters=834,e.Scedilla=667,e.lcaron=299,e.Kcommaaccent=667,e.Lacute=556,e.trademark=1e3,e.edotaccent=556,e.Igrave=278,e.Imacron=278,e.Lcaron=556,e.onehalf=834,e.lessequal=549,e.ocircumflex=556,e.ntilde=556,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=556,e.gbreve=556,e.onequarter=834,e.Scaron=667,e.Scommaaccent=667,e.Ohungarumlaut=778,e.degree=400,e.ograve=556,e.Ccaron=722,e.ugrave=556,e.radical=453,e.Dcaron=722,e.rcommaaccent=333,e.Ntilde=722,e.otilde=556,e.Rcommaaccent=722,e.Lcommaaccent=556,e.Atilde=667,e.Aogonek=667,e.Aring=667,e.Otilde=778,e.zdotaccent=500,e.Ecaron=667,e.Iogonek=278,e.kcommaaccent=500,e.minus=584,e.Icircumflex=278,e.ncaron=556,e.tcommaaccent=278,e.logicalnot=584,e.odieresis=556,e.udieresis=556,e.notequal=549,e.gcommaaccent=556,e.eth=556,e.zcaron=500,e.ncommaaccent=556,e.onesuperior=333,e.imacron=278,e.Euro=556}),e.Symbol=(0,r.getLookupTableFactory)(function(e){e.space=250,e.exclam=333,e.universal=713,e.numbersign=500,e.existential=549,e.percent=833,e.ampersand=778,e.suchthat=439,e.parenleft=333,e.parenright=333,e.asteriskmath=500,e.plus=549,e.comma=250,e.minus=549,e.period=250,e.slash=278,e.zero=500,e.one=500,e.two=500,e.three=500,e.four=500,e.five=500,e.six=500,e.seven=500,e.eight=500,e.nine=500,e.colon=278,e.semicolon=278,e.less=549,e.equal=549,e.greater=549,e.question=444,e.congruent=549,e.Alpha=722,e.Beta=667,e.Chi=722,e.Delta=612,e.Epsilon=611,e.Phi=763,e.Gamma=603,e.Eta=722,e.Iota=333,e.theta1=631,e.Kappa=722,e.Lambda=686,e.Mu=889,e.Nu=722,e.Omicron=722,e.Pi=768,e.Theta=741,e.Rho=556,e.Sigma=592,e.Tau=611,e.Upsilon=690,e.sigma1=439,e.Omega=768,e.Xi=645,e.Psi=795,e.Zeta=611,e.bracketleft=333,e.therefore=863,e.bracketright=333,e.perpendicular=658,e.underscore=500,e.radicalex=500,e.alpha=631,e.beta=549,e.chi=549,e.delta=494,e.epsilon=439,e.phi=521,e.gamma=411,e.eta=603,e.iota=329,e.phi1=603,e.kappa=549,e.lambda=549,e.mu=576,e.nu=521,e.omicron=549,e.pi=549,e.theta=521,e.rho=549,e.sigma=603,e.tau=439,e.upsilon=576,e.omega1=713,e.omega=686,e.xi=493,e.psi=686,e.zeta=494,e.braceleft=480,e.bar=200,e.braceright=480,e.similar=549,e.Euro=750,e.Upsilon1=620,e.minute=247,e.lessequal=549,e.fraction=167,e.infinity=713,e.florin=500,e.club=753,e.diamond=753,e.heart=753,e.spade=753,e.arrowboth=1042,e.arrowleft=987,e.arrowup=603,e.arrowright=987,e.arrowdown=603,e.degree=400,e.plusminus=549,e.second=411,e.greaterequal=549,e.multiply=549,e.proportional=713,e.partialdiff=494,e.bullet=460,e.divide=549,e.notequal=549,e.equivalence=549,e.approxequal=549,e.ellipsis=1e3,e.arrowvertex=603,e.arrowhorizex=1e3,e.carriagereturn=658,e.aleph=823,e.Ifraktur=686,e.Rfraktur=795,e.weierstrass=987,e.circlemultiply=768,e.circleplus=768,e.emptyset=823,e.intersection=768,e.union=768,e.propersuperset=713,e.reflexsuperset=713,e.notsubset=713,e.propersubset=713,e.reflexsubset=713,e.element=713,e.notelement=713,e.angle=768,e.gradient=713,e.registerserif=790,e.copyrightserif=790,e.trademarkserif=890,e.product=823,e.radical=549,e.dotmath=250,e.logicalnot=713,e.logicaland=603,e.logicalor=603,e.arrowdblboth=1042,e.arrowdblleft=987,e.arrowdblup=603,e.arrowdblright=987,e.arrowdbldown=603,e.lozenge=494,e.angleleft=329,e.registersans=790,e.copyrightsans=790,e.trademarksans=786,e.summation=713,e.parenlefttp=384,e.parenleftex=384,e.parenleftbt=384,e.bracketlefttp=384,e.bracketleftex=384,e.bracketleftbt=384,e.bracelefttp=494,e.braceleftmid=494,e.braceleftbt=494,e.braceex=494,e.angleright=329,e.integral=274,e.integraltp=686,e.integralex=686,e.integralbt=686,e.parenrighttp=384,e.parenrightex=384,e.parenrightbt=384,e.bracketrighttp=384,e.bracketrightex=384,e.bracketrightbt=384,e.bracerighttp=494,e.bracerightmid=494,e.bracerightbt=494,e.apple=790}),e["Times-Roman"]=(0,r.getLookupTableFactory)(function(e){e.space=250,e.exclam=333,e.quotedbl=408,e.numbersign=500,e.dollar=500,e.percent=833,e.ampersand=778,e.quoteright=333,e.parenleft=333,e.parenright=333,e.asterisk=500,e.plus=564,e.comma=250,e.hyphen=333,e.period=250,e.slash=278,e.zero=500,e.one=500,e.two=500,e.three=500,e.four=500,e.five=500,e.six=500,e.seven=500,e.eight=500,e.nine=500,e.colon=278,e.semicolon=278,e.less=564,e.equal=564,e.greater=564,e.question=444,e.at=921,e.A=722,e.B=667,e.C=667,e.D=722,e.E=611,e.F=556,e.G=722,e.H=722,e.I=333,e.J=389,e.K=722,e.L=611,e.M=889,e.N=722,e.O=722,e.P=556,e.Q=722,e.R=667,e.S=556,e.T=611,e.U=722,e.V=722,e.W=944,e.X=722,e.Y=722,e.Z=611,e.bracketleft=333,e.backslash=278,e.bracketright=333,e.asciicircum=469,e.underscore=500,e.quoteleft=333,e.a=444,e.b=500,e.c=444,e.d=500,e.e=444,e.f=333,e.g=500,e.h=500,e.i=278,e.j=278,e.k=500,e.l=278,e.m=778,e.n=500,e.o=500,e.p=500,e.q=500,e.r=333,e.s=389,e.t=278,e.u=500,e.v=500,e.w=722,e.x=500,e.y=500,e.z=444,e.braceleft=480,e.bar=200,e.braceright=480,e.asciitilde=541,e.exclamdown=333,e.cent=500,e.sterling=500,e.fraction=167,e.yen=500,e.florin=500,e.section=500,e.currency=500,e.quotesingle=180,e.quotedblleft=444,e.guillemotleft=500,e.guilsinglleft=333,e.guilsinglright=333,e.fi=556,e.fl=556,e.endash=500,e.dagger=500,e.daggerdbl=500,e.periodcentered=250,e.paragraph=453,e.bullet=350,e.quotesinglbase=333,e.quotedblbase=444,e.quotedblright=444,e.guillemotright=500,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=444,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=889,e.ordfeminine=276,e.Lslash=611,e.Oslash=722,e.OE=889,e.ordmasculine=310,e.ae=667,e.dotlessi=278,e.lslash=278,e.oslash=500,e.oe=722,e.germandbls=500,e.Idieresis=333,e.eacute=444,e.abreve=444,e.uhungarumlaut=500,e.ecaron=444,e.Ydieresis=722,e.divide=564,e.Yacute=722,e.Acircumflex=722,e.aacute=444,e.Ucircumflex=722,e.yacute=500,e.scommaaccent=389,e.ecircumflex=444,e.Uring=722,e.Udieresis=722,e.aogonek=444,e.Uacute=722,e.uogonek=500,e.Edieresis=611,e.Dcroat=722,e.commaaccent=250,e.copyright=760,e.Emacron=611,e.ccaron=444,e.aring=444,e.Ncommaaccent=722,e.lacute=278,e.agrave=444,e.Tcommaaccent=611,e.Cacute=667,e.atilde=444,e.Edotaccent=611,e.scaron=389,e.scedilla=389,e.iacute=278,e.lozenge=471,e.Rcaron=667,e.Gcommaaccent=722,e.ucircumflex=500,e.acircumflex=444,e.Amacron=722,e.rcaron=333,e.ccedilla=444,e.Zdotaccent=611,e.Thorn=556,e.Omacron=722,e.Racute=667,e.Sacute=556,e.dcaron=588,e.Umacron=722,e.uring=500,e.threesuperior=300,e.Ograve=722,e.Agrave=722,e.Abreve=722,e.multiply=564,e.uacute=500,e.Tcaron=611,e.partialdiff=476,e.ydieresis=500,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=611,e.adieresis=444,e.edieresis=444,e.cacute=444,e.nacute=500,e.umacron=500,e.Ncaron=722,e.Iacute=333,e.plusminus=564,e.brokenbar=200,e.registered=760,e.Gbreve=722,e.Idotaccent=333,e.summation=600,e.Egrave=611,e.racute=333,e.omacron=500,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=667,e.lcommaaccent=278,e.tcaron=326,e.eogonek=444,e.Uogonek=722,e.Aacute=722,e.Adieresis=722,e.egrave=444,e.zacute=444,e.iogonek=278,e.Oacute=722,e.oacute=500,e.amacron=444,e.sacute=389,e.idieresis=278,e.Ocircumflex=722,e.Ugrave=722,e.Delta=612,e.thorn=500,e.twosuperior=300,e.Odieresis=722,e.mu=500,e.igrave=278,e.ohungarumlaut=500,e.Eogonek=611,e.dcroat=500,e.threequarters=750,e.Scedilla=556,e.lcaron=344,e.Kcommaaccent=722,e.Lacute=611,e.trademark=980,e.edotaccent=444,e.Igrave=333,e.Imacron=333,e.Lcaron=611,e.onehalf=750,e.lessequal=549,e.ocircumflex=500,e.ntilde=500,e.Uhungarumlaut=722,e.Eacute=611,e.emacron=444,e.gbreve=500,e.onequarter=750,e.Scaron=556,e.Scommaaccent=556,e.Ohungarumlaut=722,e.degree=400,e.ograve=500,e.Ccaron=667,e.ugrave=500,e.radical=453,e.Dcaron=722,e.rcommaaccent=333,e.Ntilde=722,e.otilde=500,e.Rcommaaccent=667,e.Lcommaaccent=611,e.Atilde=722,e.Aogonek=722,e.Aring=722,e.Otilde=722,e.zdotaccent=444,e.Ecaron=611,e.Iogonek=333,e.kcommaaccent=500,e.minus=564,e.Icircumflex=333,e.ncaron=500,e.tcommaaccent=278,e.logicalnot=564,e.odieresis=500,e.udieresis=500,e.notequal=549,e.gcommaaccent=500,e.eth=500,e.zcaron=444,e.ncommaaccent=500,e.onesuperior=300,e.imacron=278,e.Euro=500}),e["Times-Bold"]=(0,r.getLookupTableFactory)(function(e){e.space=250,e.exclam=333,e.quotedbl=555,e.numbersign=500,e.dollar=500,e.percent=1e3,e.ampersand=833,e.quoteright=333,e.parenleft=333,e.parenright=333,e.asterisk=500,e.plus=570,e.comma=250,e.hyphen=333,e.period=250,e.slash=278,e.zero=500,e.one=500,e.two=500,e.three=500,e.four=500,e.five=500,e.six=500,e.seven=500,e.eight=500,e.nine=500,e.colon=333,e.semicolon=333,e.less=570,e.equal=570,e.greater=570,e.question=500,e.at=930,e.A=722,e.B=667,e.C=722,e.D=722,e.E=667,e.F=611,e.G=778,e.H=778,e.I=389,e.J=500,e.K=778,e.L=667,e.M=944,e.N=722,e.O=778,e.P=611,e.Q=778,e.R=722,e.S=556,e.T=667,e.U=722,e.V=722,e.W=1e3,e.X=722,e.Y=722,e.Z=667,e.bracketleft=333,e.backslash=278,e.bracketright=333,e.asciicircum=581,e.underscore=500,e.quoteleft=333,e.a=500,e.b=556,e.c=444,e.d=556,e.e=444,e.f=333,e.g=500,e.h=556,e.i=278,e.j=333,e.k=556,e.l=278,e.m=833,e.n=556,e.o=500,e.p=556,e.q=556,e.r=444,e.s=389,e.t=333,e.u=556,e.v=500,e.w=722,e.x=500,e.y=500,e.z=444,e.braceleft=394,e.bar=220,e.braceright=394,e.asciitilde=520,e.exclamdown=333,e.cent=500,e.sterling=500,e.fraction=167,e.yen=500,e.florin=500,e.section=500,e.currency=500,e.quotesingle=278,e.quotedblleft=500,e.guillemotleft=500,e.guilsinglleft=333,e.guilsinglright=333,e.fi=556,e.fl=556,e.endash=500,e.dagger=500,e.daggerdbl=500,e.periodcentered=250,e.paragraph=540,e.bullet=350,e.quotesinglbase=333,e.quotedblbase=500,e.quotedblright=500,e.guillemotright=500,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=500,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=1e3,e.ordfeminine=300,e.Lslash=667,e.Oslash=778,e.OE=1e3,e.ordmasculine=330,e.ae=722,e.dotlessi=278,e.lslash=278,e.oslash=500,e.oe=722,e.germandbls=556,e.Idieresis=389,e.eacute=444,e.abreve=500,e.uhungarumlaut=556,e.ecaron=444,e.Ydieresis=722,e.divide=570,e.Yacute=722,e.Acircumflex=722,e.aacute=500,e.Ucircumflex=722,e.yacute=500,e.scommaaccent=389,e.ecircumflex=444,e.Uring=722,e.Udieresis=722,e.aogonek=500,e.Uacute=722,e.uogonek=556,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=747,e.Emacron=667,e.ccaron=444,e.aring=500,e.Ncommaaccent=722,e.lacute=278,e.agrave=500,e.Tcommaaccent=667,e.Cacute=722,e.atilde=500,e.Edotaccent=667,e.scaron=389,e.scedilla=389,e.iacute=278,e.lozenge=494,e.Rcaron=722,e.Gcommaaccent=778,e.ucircumflex=556,e.acircumflex=500,e.Amacron=722,e.rcaron=444,e.ccedilla=444,e.Zdotaccent=667,e.Thorn=611,e.Omacron=778,e.Racute=722,e.Sacute=556,e.dcaron=672,e.Umacron=722,e.uring=556,e.threesuperior=300,e.Ograve=778,e.Agrave=722,e.Abreve=722,e.multiply=570,e.uacute=556,e.Tcaron=667,e.partialdiff=494,e.ydieresis=500,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=500,e.edieresis=444,e.cacute=444,e.nacute=556,e.umacron=556,e.Ncaron=722,e.Iacute=389,e.plusminus=570,e.brokenbar=220,e.registered=747,e.Gbreve=778,e.Idotaccent=389,e.summation=600,e.Egrave=667,e.racute=444,e.omacron=500,e.Zacute=667,e.Zcaron=667,e.greaterequal=549,e.Eth=722,e.Ccedilla=722,e.lcommaaccent=278,e.tcaron=416,e.eogonek=444,e.Uogonek=722,e.Aacute=722,e.Adieresis=722,e.egrave=444,e.zacute=444,e.iogonek=278,e.Oacute=778,e.oacute=500,e.amacron=500,e.sacute=389,e.idieresis=278,e.Ocircumflex=778,e.Ugrave=722,e.Delta=612,e.thorn=556,e.twosuperior=300,e.Odieresis=778,e.mu=556,e.igrave=278,e.ohungarumlaut=500,e.Eogonek=667,e.dcroat=556,e.threequarters=750,e.Scedilla=556,e.lcaron=394,e.Kcommaaccent=778,e.Lacute=667,e.trademark=1e3,e.edotaccent=444,e.Igrave=389,e.Imacron=389,e.Lcaron=667,e.onehalf=750,e.lessequal=549,e.ocircumflex=500,e.ntilde=556,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=444,e.gbreve=500,e.onequarter=750,e.Scaron=556,e.Scommaaccent=556,e.Ohungarumlaut=778,e.degree=400,e.ograve=500,e.Ccaron=722,e.ugrave=556,e.radical=549,e.Dcaron=722,e.rcommaaccent=444,e.Ntilde=722,e.otilde=500,e.Rcommaaccent=722,e.Lcommaaccent=667,e.Atilde=722,e.Aogonek=722,e.Aring=722,e.Otilde=778,e.zdotaccent=444,e.Ecaron=667,e.Iogonek=389,e.kcommaaccent=556,e.minus=570,e.Icircumflex=389,e.ncaron=556,e.tcommaaccent=333,e.logicalnot=570,e.odieresis=500,e.udieresis=556,e.notequal=549,e.gcommaaccent=500,e.eth=500,e.zcaron=444,e.ncommaaccent=556,e.onesuperior=300,e.imacron=278,e.Euro=500}),e["Times-BoldItalic"]=(0,r.getLookupTableFactory)(function(e){e.space=250,e.exclam=389,e.quotedbl=555,e.numbersign=500,e.dollar=500,e.percent=833,e.ampersand=778,e.quoteright=333,e.parenleft=333,e.parenright=333,e.asterisk=500,e.plus=570,e.comma=250,e.hyphen=333,e.period=250,e.slash=278,e.zero=500,e.one=500,e.two=500,e.three=500,e.four=500,e.five=500,e.six=500,e.seven=500,e.eight=500,e.nine=500,e.colon=333,e.semicolon=333,e.less=570,e.equal=570,e.greater=570,e.question=500,e.at=832,e.A=667,e.B=667,e.C=667,e.D=722,e.E=667,e.F=667,e.G=722,e.H=778,e.I=389,e.J=500,e.K=667,e.L=611,e.M=889,e.N=722,e.O=722,e.P=611,e.Q=722,e.R=667,e.S=556,e.T=611,e.U=722,e.V=667,e.W=889,e.X=667,e.Y=611,e.Z=611,e.bracketleft=333,e.backslash=278,e.bracketright=333,e.asciicircum=570,e.underscore=500,e.quoteleft=333,e.a=500,e.b=500,e.c=444,e.d=500,e.e=444,e.f=333,e.g=500,e.h=556,e.i=278,e.j=278,e.k=500,e.l=278,e.m=778,e.n=556,e.o=500,e.p=500,e.q=500,e.r=389,e.s=389,e.t=278,e.u=556,e.v=444,e.w=667,e.x=500,e.y=444,e.z=389,e.braceleft=348,e.bar=220,e.braceright=348,e.asciitilde=570,e.exclamdown=389,e.cent=500,e.sterling=500,e.fraction=167,e.yen=500,e.florin=500,e.section=500,e.currency=500,e.quotesingle=278,e.quotedblleft=500,e.guillemotleft=500,e.guilsinglleft=333,e.guilsinglright=333,e.fi=556,e.fl=556,e.endash=500,e.dagger=500,e.daggerdbl=500,e.periodcentered=250,e.paragraph=500,e.bullet=350,e.quotesinglbase=333,e.quotedblbase=500,e.quotedblright=500,e.guillemotright=500,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=500,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=944,e.ordfeminine=266,e.Lslash=611,e.Oslash=722,e.OE=944,e.ordmasculine=300,e.ae=722,e.dotlessi=278,e.lslash=278,e.oslash=500,e.oe=722,e.germandbls=500,e.Idieresis=389,e.eacute=444,e.abreve=500,e.uhungarumlaut=556,e.ecaron=444,e.Ydieresis=611,e.divide=570,e.Yacute=611,e.Acircumflex=667,e.aacute=500,e.Ucircumflex=722,e.yacute=444,e.scommaaccent=389,e.ecircumflex=444,e.Uring=722,e.Udieresis=722,e.aogonek=500,e.Uacute=722,e.uogonek=556,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=747,e.Emacron=667,e.ccaron=444,e.aring=500,e.Ncommaaccent=722,e.lacute=278,e.agrave=500,e.Tcommaaccent=611,e.Cacute=667,e.atilde=500,e.Edotaccent=667,e.scaron=389,e.scedilla=389,e.iacute=278,e.lozenge=494,e.Rcaron=667,e.Gcommaaccent=722,e.ucircumflex=556,e.acircumflex=500,e.Amacron=667,e.rcaron=389,e.ccedilla=444,e.Zdotaccent=611,e.Thorn=611,e.Omacron=722,e.Racute=667,e.Sacute=556,e.dcaron=608,e.Umacron=722,e.uring=556,e.threesuperior=300,e.Ograve=722,e.Agrave=667,e.Abreve=667,e.multiply=570,e.uacute=556,e.Tcaron=611,e.partialdiff=494,e.ydieresis=444,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=500,e.edieresis=444,e.cacute=444,e.nacute=556,e.umacron=556,e.Ncaron=722,e.Iacute=389,e.plusminus=570,e.brokenbar=220,e.registered=747,e.Gbreve=722,e.Idotaccent=389,e.summation=600,e.Egrave=667,e.racute=389,e.omacron=500,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=667,e.lcommaaccent=278,e.tcaron=366,e.eogonek=444,e.Uogonek=722,e.Aacute=667,e.Adieresis=667,e.egrave=444,e.zacute=389,e.iogonek=278,e.Oacute=722,e.oacute=500,e.amacron=500,e.sacute=389,e.idieresis=278,e.Ocircumflex=722,e.Ugrave=722,e.Delta=612,e.thorn=500,e.twosuperior=300,e.Odieresis=722,e.mu=576,e.igrave=278,e.ohungarumlaut=500,e.Eogonek=667,e.dcroat=500,e.threequarters=750,e.Scedilla=556,e.lcaron=382,e.Kcommaaccent=667,e.Lacute=611,e.trademark=1e3,e.edotaccent=444,e.Igrave=389,e.Imacron=389,e.Lcaron=611,e.onehalf=750,e.lessequal=549,e.ocircumflex=500,e.ntilde=556,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=444,e.gbreve=500,e.onequarter=750,e.Scaron=556,e.Scommaaccent=556,e.Ohungarumlaut=722,e.degree=400,e.ograve=500,e.Ccaron=667,e.ugrave=556,e.radical=549,e.Dcaron=722,e.rcommaaccent=389,e.Ntilde=722,e.otilde=500,e.Rcommaaccent=667,e.Lcommaaccent=611,e.Atilde=667,e.Aogonek=667,e.Aring=667,e.Otilde=722,e.zdotaccent=389,e.Ecaron=667,e.Iogonek=389,e.kcommaaccent=500,e.minus=606,e.Icircumflex=389,e.ncaron=556,e.tcommaaccent=278,e.logicalnot=606,e.odieresis=500,e.udieresis=556,e.notequal=549,e.gcommaaccent=500,e.eth=500,e.zcaron=389,e.ncommaaccent=556,e.onesuperior=300,e.imacron=278,e.Euro=500}),e["Times-Italic"]=(0,r.getLookupTableFactory)(function(e){e.space=250,e.exclam=333,e.quotedbl=420,e.numbersign=500,e.dollar=500,e.percent=833,e.ampersand=778,e.quoteright=333,e.parenleft=333,e.parenright=333,e.asterisk=500,e.plus=675,e.comma=250,e.hyphen=333,e.period=250,e.slash=278,e.zero=500,e.one=500,e.two=500,e.three=500,e.four=500,e.five=500,e.six=500,e.seven=500,e.eight=500,e.nine=500,e.colon=333,e.semicolon=333,e.less=675,e.equal=675,e.greater=675,e.question=500,e.at=920,e.A=611,e.B=611,e.C=667,e.D=722,e.E=611,e.F=611,e.G=722,e.H=722,e.I=333,e.J=444,e.K=667,e.L=556,e.M=833,e.N=667,e.O=722,e.P=611,e.Q=722,e.R=611,e.S=500,e.T=556,e.U=722,e.V=611,e.W=833,e.X=611,e.Y=556,e.Z=556,e.bracketleft=389,e.backslash=278,e.bracketright=389,e.asciicircum=422,e.underscore=500,e.quoteleft=333,e.a=500,e.b=500,e.c=444,e.d=500,e.e=444,e.f=278,e.g=500,e.h=500,e.i=278,e.j=278,e.k=444,e.l=278,e.m=722,e.n=500,e.o=500,e.p=500,e.q=500,e.r=389,e.s=389,e.t=278,e.u=500,e.v=444,e.w=667,e.x=444,e.y=444,e.z=389,e.braceleft=400,e.bar=275,e.braceright=400,e.asciitilde=541,e.exclamdown=389,e.cent=500,e.sterling=500,e.fraction=167,e.yen=500,e.florin=500,e.section=500,e.currency=500,e.quotesingle=214,e.quotedblleft=556,e.guillemotleft=500,e.guilsinglleft=333,e.guilsinglright=333,e.fi=500,e.fl=500,e.endash=500,e.dagger=500,e.daggerdbl=500,e.periodcentered=250,e.paragraph=523,e.bullet=350,e.quotesinglbase=333,e.quotedblbase=556,e.quotedblright=556,e.guillemotright=500,e.ellipsis=889,e.perthousand=1e3,e.questiondown=500,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=889,e.AE=889,e.ordfeminine=276,e.Lslash=556,e.Oslash=722,e.OE=944,e.ordmasculine=310,e.ae=667,e.dotlessi=278,e.lslash=278,e.oslash=500,e.oe=667,e.germandbls=500,e.Idieresis=333,e.eacute=444,e.abreve=500,e.uhungarumlaut=500,e.ecaron=444,e.Ydieresis=556,e.divide=675,e.Yacute=556,e.Acircumflex=611,e.aacute=500,e.Ucircumflex=722,e.yacute=444,e.scommaaccent=389,e.ecircumflex=444,e.Uring=722,e.Udieresis=722,e.aogonek=500,e.Uacute=722,e.uogonek=500,e.Edieresis=611,e.Dcroat=722,e.commaaccent=250,e.copyright=760,e.Emacron=611,e.ccaron=444,e.aring=500,e.Ncommaaccent=667,e.lacute=278,e.agrave=500,e.Tcommaaccent=556,e.Cacute=667,e.atilde=500,e.Edotaccent=611,e.scaron=389,e.scedilla=389,e.iacute=278,e.lozenge=471,e.Rcaron=611,e.Gcommaaccent=722,e.ucircumflex=500,e.acircumflex=500,e.Amacron=611,e.rcaron=389,e.ccedilla=444,e.Zdotaccent=556,e.Thorn=611,e.Omacron=722,e.Racute=611,e.Sacute=500,e.dcaron=544,e.Umacron=722,e.uring=500,e.threesuperior=300,e.Ograve=722,e.Agrave=611,e.Abreve=611,e.multiply=675,e.uacute=500,e.Tcaron=556,e.partialdiff=476,e.ydieresis=444,e.Nacute=667,e.icircumflex=278,e.Ecircumflex=611,e.adieresis=500,e.edieresis=444,e.cacute=444,e.nacute=500,e.umacron=500,e.Ncaron=667,e.Iacute=333,e.plusminus=675,e.brokenbar=275,e.registered=760,e.Gbreve=722,e.Idotaccent=333,e.summation=600,e.Egrave=611,e.racute=389,e.omacron=500,e.Zacute=556,e.Zcaron=556,e.greaterequal=549,e.Eth=722,e.Ccedilla=667,e.lcommaaccent=278,e.tcaron=300,e.eogonek=444,e.Uogonek=722,e.Aacute=611,e.Adieresis=611,e.egrave=444,e.zacute=389,e.iogonek=278,e.Oacute=722,e.oacute=500,e.amacron=500,e.sacute=389,e.idieresis=278,e.Ocircumflex=722,e.Ugrave=722,e.Delta=612,e.thorn=500,e.twosuperior=300,e.Odieresis=722,e.mu=500,e.igrave=278,e.ohungarumlaut=500,e.Eogonek=611,e.dcroat=500,e.threequarters=750,e.Scedilla=500,e.lcaron=300,e.Kcommaaccent=667,e.Lacute=556,e.trademark=980,e.edotaccent=444,e.Igrave=333,e.Imacron=333,e.Lcaron=611,e.onehalf=750,e.lessequal=549,e.ocircumflex=500,e.ntilde=500,e.Uhungarumlaut=722,e.Eacute=611,e.emacron=444,e.gbreve=500,e.onequarter=750,e.Scaron=500,e.Scommaaccent=500,e.Ohungarumlaut=722,e.degree=400,e.ograve=500,e.Ccaron=667,e.ugrave=500,e.radical=453,e.Dcaron=722,e.rcommaaccent=389,e.Ntilde=667,e.otilde=500,e.Rcommaaccent=611,e.Lcommaaccent=556,e.Atilde=611,e.Aogonek=611,e.Aring=611,e.Otilde=722,e.zdotaccent=389,e.Ecaron=611,e.Iogonek=333,e.kcommaaccent=444,e.minus=675,e.Icircumflex=333,e.ncaron=500,e.tcommaaccent=278,e.logicalnot=675,e.odieresis=500,e.udieresis=500,e.notequal=549,e.gcommaaccent=500,e.eth=500,e.zcaron=389,e.ncommaaccent=500,e.onesuperior=300,e.imacron=278,e.Euro=500}),e.ZapfDingbats=(0,r.getLookupTableFactory)(function(e){e.space=278,e.a1=974,e.a2=961,e.a202=974,e.a3=980,e.a4=719,e.a5=789,e.a119=790,e.a118=791,e.a117=690,e.a11=960,e.a12=939,e.a13=549,e.a14=855,e.a15=911,e.a16=933,e.a105=911,e.a17=945,e.a18=974,e.a19=755,e.a20=846,e.a21=762,e.a22=761,e.a23=571,e.a24=677,e.a25=763,e.a26=760,e.a27=759,e.a28=754,e.a6=494,e.a7=552,e.a8=537,e.a9=577,e.a10=692,e.a29=786,e.a30=788,e.a31=788,e.a32=790,e.a33=793,e.a34=794,e.a35=816,e.a36=823,e.a37=789,e.a38=841,e.a39=823,e.a40=833,e.a41=816,e.a42=831,e.a43=923,e.a44=744,e.a45=723,e.a46=749,e.a47=790,e.a48=792,e.a49=695,e.a50=776,e.a51=768,e.a52=792,e.a53=759,e.a54=707,e.a55=708,e.a56=682,e.a57=701,e.a58=826,e.a59=815,e.a60=789,e.a61=789,e.a62=707,e.a63=687,e.a64=696,e.a65=689,e.a66=786,e.a67=787,e.a68=713,e.a69=791,e.a70=785,e.a71=791,e.a72=873,e.a73=761,e.a74=762,e.a203=762,e.a75=759,e.a204=759,e.a76=892,e.a77=892,e.a78=788,e.a79=784,e.a81=438,e.a82=138,e.a83=277,e.a84=415,e.a97=392,e.a98=392,e.a99=668,e.a100=668,e.a89=390,e.a90=390,e.a93=317,e.a94=317,e.a91=276,e.a92=276,e.a205=509,e.a85=509,e.a206=410,e.a86=410,e.a87=234,e.a88=234,e.a95=334,e.a96=334,e.a101=732,e.a102=544,e.a103=544,e.a104=910,e.a106=667,e.a107=760,e.a108=760,e.a112=776,e.a111=595,e.a110=694,e.a109=626,e.a120=788,e.a121=788,e.a122=788,e.a123=788,e.a124=788,e.a125=788,e.a126=788,e.a127=788,e.a128=788,e.a129=788,e.a130=788,e.a131=788,e.a132=788,e.a133=788,e.a134=788,e.a135=788,e.a136=788,e.a137=788,e.a138=788,e.a139=788,e.a140=788,e.a141=788,e.a142=788,e.a143=788,e.a144=788,e.a145=788,e.a146=788,e.a147=788,e.a148=788,e.a149=788,e.a150=788,e.a151=788,e.a152=788,e.a153=788,e.a154=788,e.a155=788,e.a156=788,e.a157=788,e.a158=788,e.a159=788,e.a160=894,e.a161=838,e.a163=1016,e.a164=458,e.a196=748,e.a165=924,e.a192=748,e.a166=918,e.a167=927,e.a168=928,e.a169=928,e.a170=834,e.a171=873,e.a172=828,e.a173=924,e.a162=924,e.a174=917,e.a175=930,e.a176=931,e.a177=463,e.a178=883,e.a179=836,e.a193=836,e.a180=867,e.a199=867,e.a181=696,e.a200=696,e.a182=874,e.a201=874,e.a183=760,e.a184=946,e.a197=771,e.a185=865,e.a194=771,e.a198=888,e.a186=967,e.a195=888,e.a187=831,e.a188=873,e.a189=927,e.a190=970,e.a191=918})});t.getMetrics=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isPDFFunction=function(e){var t;if("object"!=typeof e)return!1;if((0,i.isDict)(e))t=e;else{if(!(0,i.isStream)(e))return!1;t=e.dict}return t.has("FunctionType")},t.PostScriptCompiler=t.PostScriptEvaluator=t.PDFFunctionFactory=void 0;var r=n(2),i=n(5),a=n(42);function o(e){if(!Array.isArray(e))return null;const t=e.length;for(let n=0;n<t;n++)if("number"!=typeof e[n]){const n=new Array(t);for(let r=0;r<t;r++)n[r]=+e[r];return n}return e}t.PDFFunctionFactory=class{constructor({xref:e,isEvalSupported:t=!0}){this.xref=e,this.isEvalSupported=!1!==t}create(e){return s.parse({xref:this.xref,isEvalSupported:this.isEvalSupported,fn:e})}createFromArray(e){return s.parseArray({xref:this.xref,isEvalSupported:this.isEvalSupported,fnObj:e})}};var s={getSampleArray(e,t,n,r){var i,a,o=1;for(i=0,a=e.length;i<a;i++)o*=e[i];o*=t;var s=new Array(o),l=0,c=0,u=1/(2**n-1),h=r.getBytes((o*n+7)/8),d=0;for(i=0;i<o;i++){for(;l<n;)c<<=8,c|=h[d++],l+=8;l-=n,s[i]=(c>>l)*u,c&=(1<<l)-1}return s},getIR({xref:e,isEvalSupported:t,fn:n}){var i=n.dict;i||(i=n);var a=[this.constructSampled,null,this.constructInterpolated,this.constructStiched,this.constructPostScript][i.get("FunctionType")];if(!a)throw new r.FormatError("Unknown type of function");return a.call(this,{xref:e,isEvalSupported:t,fn:n,dict:i})},fromIR({xref:e,isEvalSupported:t,IR:n}){switch(n[0]){case 0:return this.constructSampledFromIR({xref:e,isEvalSupported:t,IR:n});case 2:return this.constructInterpolatedFromIR({xref:e,isEvalSupported:t,IR:n});case 3:return this.constructStichedFromIR({xref:e,isEvalSupported:t,IR:n});default:return this.constructPostScriptFromIR({xref:e,isEvalSupported:t,IR:n})}},parse({xref:e,isEvalSupported:t,fn:n}){const r=this.getIR({xref:e,isEvalSupported:t,fn:n});return this.fromIR({xref:e,isEvalSupported:t,IR:r})},parseArray({xref:e,isEvalSupported:t,fnObj:n}){if(!Array.isArray(n))return this.parse({xref:e,isEvalSupported:t,fn:n});for(var r=[],i=0,a=n.length;i<a;i++)r.push(this.parse({xref:e,isEvalSupported:t,fn:e.fetchIfRef(n[i])}));return function(e,t,n,i){for(var a=0,o=r.length;a<o;a++)r[a](e,t,n,i+a)}},constructSampled({xref:e,isEvalSupported:t,fn:n,dict:i}){function a(e){for(var t=e.length,n=[],r=0,i=0;i<t;i+=2)n[r]=[e[i],e[i+1]],++r;return n}var s=o(i.getArray("Domain")),l=o(i.getArray("Range"));if(!s||!l)throw new r.FormatError("No domain or range");var c=s.length/2,u=l.length/2;s=a(s),l=a(l);var h=o(i.getArray("Size")),d=i.get("BitsPerSample"),f=i.get("Order")||1;1!==f&&(0,r.info)("No support for cubic spline interpolation: "+f);var p=o(i.getArray("Encode"));if(p)p=a(p);else{p=[];for(var A=0;A<c;++A)p.push([0,h[A]-1])}var g=o(i.getArray("Decode"));return[0,c,s,p,g=g?a(g):l,this.getSampleArray(h,u,d,n),h,u,2**d-1,l]},constructSampledFromIR({xref:e,isEvalSupported:t,IR:n}){function r(e,t,n,r,i){return r+(i-r)/(n-t)*(e-t)}return function(e,t,i,a){var o,s,l=n[1],c=n[2],u=n[3],h=n[4],d=n[5],f=n[6],p=n[7],A=n[9],g=1<<l,m=new Float64Array(g),v=new Uint32Array(g);for(s=0;s<g;s++)m[s]=1;var y=p,b=1;for(o=0;o<l;++o){var w=c[o][0],x=c[o][1],_=r(Math.min(Math.max(e[t+o],w),x),w,x,u[o][0],u[o][1]),C=f[o],S=(_=Math.min(Math.max(_,0),C-1))<C-1?Math.floor(_):_-1,k=S+1-_,B=_-S,E=S*y,T=E+y;for(s=0;s<g;s++)s&b?(m[s]*=B,v[s]+=T):(m[s]*=k,v[s]+=E);y*=C,b<<=1}for(s=0;s<p;++s){var I=0;for(o=0;o<g;o++)I+=d[v[o]+s]*m[o];I=r(I,0,1,h[s][0],h[s][1]),i[a+s]=Math.min(Math.max(I,A[s][0]),A[s][1])}}},constructInterpolated({xref:e,isEvalSupported:t,fn:n,dict:r}){for(var i=o(r.getArray("C0"))||[0],a=o(r.getArray("C1"))||[1],s=r.get("N"),l=i.length,c=[],u=0;u<l;++u)c.push(a[u]-i[u]);return[2,i,c,s]},constructInterpolatedFromIR({xref:e,isEvalSupported:t,IR:n}){var r=n[1],i=n[2],a=n[3],o=i.length;return function(e,t,n,s){for(var l=1===a?e[t]:e[t]**a,c=0;c<o;++c)n[s+c]=r[c]+l*i[c]}},constructStiched({xref:e,isEvalSupported:t,fn:n,dict:i}){var a=o(i.getArray("Domain"));if(!a)throw new r.FormatError("No domain");if(1!=a.length/2)throw new r.FormatError("Bad domain for stiched function");for(var s=i.get("Functions"),l=[],c=0,u=s.length;c<u;++c)l.push(this.parse({xref:e,isEvalSupported:t,fn:e.fetchIfRef(s[c])}));return[3,a,o(i.getArray("Bounds")),o(i.getArray("Encode")),l]},constructStichedFromIR({xref:e,isEvalSupported:t,IR:n}){var r=n[1],i=n[2],a=n[3],o=n[4],s=new Float32Array(1);return function(e,t,n,l){for(var c=function(e,t,n){return e>n?e=n:e<t&&(e=t),e}(e[t],r[0],r[1]),u=0,h=i.length;u<h&&!(c<i[u]);++u);var d=r[0];u>0&&(d=i[u-1]);var f=r[1];u<i.length&&(f=i[u]);var p=a[2*u],A=a[2*u+1];s[0]=d===f?p:p+(c-d)*(A-p)/(f-d),o[u](s,0,n,l)}},constructPostScript({xref:e,isEvalSupported:t,fn:n,dict:i}){var s=o(i.getArray("Domain")),l=o(i.getArray("Range"));if(!s)throw new r.FormatError("No domain.");if(!l)throw new r.FormatError("No range.");var c=new a.PostScriptLexer(n);return[4,s,l,new a.PostScriptParser(c).parse()]},constructPostScriptFromIR({xref:e,isEvalSupported:t,IR:n}){var i=n[1],a=n[2],o=n[3];if(t&&r.IsEvalSupportedCached.value){const e=(new u).compile(o,i,a);if(e)return new Function("src","srcOffset","dest","destOffset",e)}(0,r.info)("Unable to compile PS function");var s=a.length>>1,l=i.length>>1,h=new c(o),d=Object.create(null),f=8192,p=new Float32Array(l);return function(e,t,n,r){var i,o,c="",u=p;for(i=0;i<l;i++)o=e[t+i],u[i]=o,c+=o+"_";var A=d[c];if(void 0===A){var g=new Float32Array(s),m=h.execute(u),v=m.length-s;for(i=0;i<s;i++){o=m[v+i];var y=a[2*i];o<y?o=y:o>(y=a[2*i+1])&&(o=y),g[i]=o}f>0&&(f--,d[c]=g),n.set(g,r)}else n.set(A,r)}}};var l=function(){function e(e){this.stack=e?Array.prototype.slice.call(e,0):[]}return e.prototype={push:function(e){if(this.stack.length>=100)throw new Error("PostScript function stack overflow.");this.stack.push(e)},pop:function(){if(this.stack.length<=0)throw new Error("PostScript function stack underflow.");return this.stack.pop()},copy:function(e){if(this.stack.length+e>=100)throw new Error("PostScript function stack overflow.");for(var t=this.stack,n=t.length-e,r=e-1;r>=0;r--,n++)t.push(t[n])},index:function(e){this.push(this.stack[this.stack.length-e-1])},roll:function(e,t){var n,r,i,a=this.stack,o=a.length-e,s=a.length-1,l=o+(t-Math.floor(t/e)*e);for(n=o,r=s;n<r;n++,r--)i=a[n],a[n]=a[r],a[r]=i;for(n=o,r=l-1;n<r;n++,r--)i=a[n],a[n]=a[r],a[r]=i;for(n=l,r=s;n<r;n++,r--)i=a[n],a[n]=a[r],a[r]=i}},e}(),c=function(){function e(e){this.operators=e}return e.prototype={execute:function(e){for(var t,n,i,a=new l(e),o=0,s=this.operators,c=s.length;o<c;)if("number"!=typeof(t=s[o++]))switch(t){case"jz":i=a.pop(),(n=a.pop())||(o=i);break;case"j":o=n=a.pop();break;case"abs":n=a.pop(),a.push(Math.abs(n));break;case"add":i=a.pop(),n=a.pop(),a.push(n+i);break;case"and":i=a.pop(),n=a.pop(),(0,r.isBool)(n)&&(0,r.isBool)(i)?a.push(n&&i):a.push(n&i);break;case"atan":n=a.pop(),a.push(Math.atan(n));break;case"bitshift":i=a.pop(),(n=a.pop())>0?a.push(n<<i):a.push(n>>i);break;case"ceiling":n=a.pop(),a.push(Math.ceil(n));break;case"copy":n=a.pop(),a.copy(n);break;case"cos":n=a.pop(),a.push(Math.cos(n));break;case"cvi":n=0|a.pop(),a.push(n);break;case"cvr":break;case"div":i=a.pop(),n=a.pop(),a.push(n/i);break;case"dup":a.copy(1);break;case"eq":i=a.pop(),n=a.pop(),a.push(n===i);break;case"exch":a.roll(2,1);break;case"exp":i=a.pop(),n=a.pop(),a.push(n**i);break;case"false":a.push(!1);break;case"floor":n=a.pop(),a.push(Math.floor(n));break;case"ge":i=a.pop(),n=a.pop(),a.push(n>=i);break;case"gt":i=a.pop(),n=a.pop(),a.push(n>i);break;case"idiv":i=a.pop(),n=a.pop(),a.push(n/i|0);break;case"index":n=a.pop(),a.index(n);break;case"le":i=a.pop(),n=a.pop(),a.push(n<=i);break;case"ln":n=a.pop(),a.push(Math.log(n));break;case"log":n=a.pop(),a.push(Math.log(n)/Math.LN10);break;case"lt":i=a.pop(),n=a.pop(),a.push(n<i);break;case"mod":i=a.pop(),n=a.pop(),a.push(n%i);break;case"mul":i=a.pop(),n=a.pop(),a.push(n*i);break;case"ne":i=a.pop(),n=a.pop(),a.push(n!==i);break;case"neg":n=a.pop(),a.push(-n);break;case"not":n=a.pop(),(0,r.isBool)(n)?a.push(!n):a.push(~n);break;case"or":i=a.pop(),n=a.pop(),(0,r.isBool)(n)&&(0,r.isBool)(i)?a.push(n||i):a.push(n|i);break;case"pop":a.pop();break;case"roll":i=a.pop(),n=a.pop(),a.roll(n,i);break;case"round":n=a.pop(),a.push(Math.round(n));break;case"sin":n=a.pop(),a.push(Math.sin(n));break;case"sqrt":n=a.pop(),a.push(Math.sqrt(n));break;case"sub":i=a.pop(),n=a.pop(),a.push(n-i);break;case"true":a.push(!0);break;case"truncate":n=(n=a.pop())<0?Math.ceil(n):Math.floor(n),a.push(n);break;case"xor":i=a.pop(),n=a.pop(),(0,r.isBool)(n)&&(0,r.isBool)(i)?a.push(n!==i):a.push(n^i);break;default:throw new r.FormatError(`Unknown operator ${t}`)}else a.push(t);return a.stack}},e}();t.PostScriptEvaluator=c;var u=function(){function e(e){this.type=e}function t(t,n,r){e.call(this,"args"),this.index=t,this.min=n,this.max=r}function n(t){e.call(this,"literal"),this.number=t,this.min=t,this.max=t}function i(t,n,r,i,a){e.call(this,"binary"),this.op=t,this.arg1=n,this.arg2=r,this.min=i,this.max=a}function a(t,n){e.call(this,"max"),this.arg=t,this.min=t.min,this.max=n}function o(t,n,r){e.call(this,"var"),this.index=t,this.min=n,this.max=r}function s(t,n){e.call(this,"definition"),this.variable=t,this.arg=n}function l(){this.parts=[]}function c(e,t){return"literal"===t.type&&0===t.number?e:"literal"===e.type&&0===e.number?t:"literal"===t.type&&"literal"===e.type?new n(e.number+t.number):new i("+",e,t,e.min+t.min,e.max+t.max)}function u(e,t){if("literal"===t.type){if(0===t.number)return new n(0);if(1===t.number)return e;if("literal"===e.type)return new n(e.number*t.number)}if("literal"===e.type){if(0===e.number)return new n(0);if(1===e.number)return t}return new i("*",e,t,Math.min(e.min*t.min,e.min*t.max,e.max*t.min,e.max*t.max),Math.max(e.min*t.min,e.min*t.max,e.max*t.min,e.max*t.max))}function h(e,t){if("literal"===t.type){if(0===t.number)return e;if("literal"===e.type)return new n(e.number-t.number)}return"binary"===t.type&&"-"===t.op&&"literal"===e.type&&1===e.number&&"literal"===t.arg1.type&&1===t.arg1.number?t.arg2:new i("-",e,t,e.min-t.max,e.max-t.min)}function d(e,t){return e.min>=t?new n(t):e.max<=t?e:new a(e,t)}function f(){}return e.prototype.visit=function(e){(0,r.unreachable)("abstract method")},t.prototype=Object.create(e.prototype),t.prototype.visit=function(e){e.visitArgument(this)},n.prototype=Object.create(e.prototype),n.prototype.visit=function(e){e.visitLiteral(this)},i.prototype=Object.create(e.prototype),i.prototype.visit=function(e){e.visitBinaryOperation(this)},a.prototype=Object.create(e.prototype),a.prototype.visit=function(e){e.visitMin(this)},o.prototype=Object.create(e.prototype),o.prototype.visit=function(e){e.visitVariable(this)},s.prototype=Object.create(e.prototype),s.prototype.visit=function(e){e.visitVariableDefinition(this)},l.prototype={visitArgument(e){this.parts.push("Math.max(",e.min,", Math.min(",e.max,", src[srcOffset + ",e.index,"]))")},visitVariable(e){this.parts.push("v",e.index)},visitLiteral(e){this.parts.push(e.number)},visitBinaryOperation(e){this.parts.push("("),e.arg1.visit(this),this.parts.push(" ",e.op," "),e.arg2.visit(this),this.parts.push(")")},visitVariableDefinition(e){this.parts.push("var "),e.variable.visit(this),this.parts.push(" = "),e.arg.visit(this),this.parts.push(";")},visitMin(e){this.parts.push("Math.min("),e.arg.visit(this),this.parts.push(", ",e.max,")")},toString(){return this.parts.join("")}},f.prototype={compile:function(e,r,i){var a,f,p,A,g,m,v,y,b=[],w=[],x=r.length>>1,_=i.length>>1,C=0;for(let e=0;e<x;e++)b.push(new t(e,r[2*e],r[2*e+1]));for(let t=0,r=e.length;t<r;t++)if("number"!=typeof(y=e[t]))switch(y){case"add":if(b.length<2)return null;A=b.pop(),p=b.pop(),b.push(c(p,A));break;case"cvr":if(b.length<1)return null;break;case"mul":if(b.length<2)return null;A=b.pop(),p=b.pop(),b.push(u(p,A));break;case"sub":if(b.length<2)return null;A=b.pop(),p=b.pop(),b.push(h(p,A));break;case"exch":if(b.length<2)return null;g=b.pop(),m=b.pop(),b.push(g,m);break;case"pop":if(b.length<1)return null;b.pop();break;case"index":if(b.length<1)return null;if("literal"!==(p=b.pop()).type)return null;if((a=p.number)<0||!Number.isInteger(a)||b.length<a)return null;if("literal"===(g=b[b.length-a-1]).type||"var"===g.type){b.push(g);break}v=new o(C++,g.min,g.max),b[b.length-a-1]=v,b.push(v),w.push(new s(v,g));break;case"dup":if(b.length<1)return null;if("number"==typeof e[t+1]&&"gt"===e[t+2]&&e[t+3]===t+7&&"jz"===e[t+4]&&"pop"===e[t+5]&&e[t+6]===e[t+1]){p=b.pop(),b.push(d(p,e[t+1])),t+=6;break}if("literal"===(g=b[b.length-1]).type||"var"===g.type){b.push(g);break}v=new o(C++,g.min,g.max),b[b.length-1]=v,b.push(v),w.push(new s(v,g));break;case"roll":if(b.length<2)return null;if(A=b.pop(),p=b.pop(),"literal"!==A.type||"literal"!==p.type)return null;if(f=A.number,(a=p.number)<=0||!Number.isInteger(a)||!Number.isInteger(f)||b.length<a)return null;if(0===(f=(f%a+a)%a))break;Array.prototype.push.apply(b,b.splice(b.length-a,a-f));break;default:return null}else b.push(new n(y));if(b.length!==_)return null;var S=[];return w.forEach(function(e){var t=new l;e.visit(t),S.push(t.toString())}),b.forEach(function(e,t){var n=new l;e.visit(n);var r=i[2*t],a=i[2*t+1],o=[n.toString()];r>e.min&&(o.unshift("Math.max(",r,", "),o.push(")")),a<e.max&&(o.unshift("Math.min(",a,", "),o.push(")")),o.unshift("dest[destOffset + ",t,"] = "),o.push(";"),S.push(o.join(""))}),S.join("\n")}},f}();t.PostScriptCompiler=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PostScriptParser=t.PostScriptLexer=void 0;var r=n(2),i=n(5),a=n(8);t.PostScriptParser=class{constructor(e){this.lexer=e,this.operators=[],this.token=null,this.prev=null}nextToken(){this.prev=this.token,this.token=this.lexer.getToken()}accept(e){return this.token.type===e&&(this.nextToken(),!0)}expect(e){if(this.accept(e))return!0;throw new r.FormatError(`Unexpected symbol: found ${this.token.type} expected ${e}.`)}parse(){return this.nextToken(),this.expect(o.LBRACE),this.parseBlock(),this.expect(o.RBRACE),this.operators}parseBlock(){for(;;)if(this.accept(o.NUMBER))this.operators.push(this.prev.value);else if(this.accept(o.OPERATOR))this.operators.push(this.prev.value);else{if(!this.accept(o.LBRACE))return;this.parseCondition()}}parseCondition(){const e=this.operators.length;if(this.operators.push(null,null),this.parseBlock(),this.expect(o.RBRACE),this.accept(o.IF))this.operators[e]=this.operators.length,this.operators[e+1]="jz";else{if(!this.accept(o.LBRACE))throw new r.FormatError("PS Function: error parsing conditional.");{const t=this.operators.length;this.operators.push(null,null);const n=this.operators.length;this.parseBlock(),this.expect(o.RBRACE),this.expect(o.IFELSE),this.operators[t]=this.operators.length,this.operators[t+1]="j",this.operators[e]=n,this.operators[e+1]="jz"}}}};const o={LBRACE:0,RBRACE:1,NUMBER:2,OPERATOR:3,IF:4,IFELSE:5},s=function(){const e=Object.create(null);class t{constructor(e,t){this.type=e,this.value=t}static getOperator(n){const r=e[n];return r||(e[n]=new t(o.OPERATOR,n))}static get LBRACE(){return(0,r.shadow)(this,"LBRACE",new t(o.LBRACE,"{"))}static get RBRACE(){return(0,r.shadow)(this,"RBRACE",new t(o.RBRACE,"}"))}static get IF(){return(0,r.shadow)(this,"IF",new t(o.IF,"IF"))}static get IFELSE(){return(0,r.shadow)(this,"IFELSE",new t(o.IFELSE,"IFELSE"))}}return t}();t.PostScriptLexer=class{constructor(e){this.stream=e,this.nextChar(),this.strBuf=[]}nextChar(){return this.currentChar=this.stream.getByte()}getToken(){let e=!1,t=this.currentChar;for(;;){if(t<0)return i.EOF;if(e)10!==t&&13!==t||(e=!1);else if(37===t)e=!0;else if(!(0,a.isWhiteSpace)(t))break;t=this.nextChar()}switch(0|t){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 43:case 45:case 46:return new s(o.NUMBER,this.getNumber());case 123:return this.nextChar(),s.LBRACE;case 125:return this.nextChar(),s.RBRACE}const n=this.strBuf;for(n.length=0,n[0]=String.fromCharCode(t);(t=this.nextChar())>=0&&(t>=65&&t<=90||t>=97&&t<=122);)n.push(String.fromCharCode(t));const r=n.join("");switch(r.toLowerCase()){case"if":return s.IF;case"ifelse":return s.IFELSE;default:return s.getOperator(r)}}getNumber(){let e=this.currentChar;const t=this.strBuf;for(t.length=0,t[0]=String.fromCharCode(e);(e=this.nextChar())>=0&&(e>=48&&e<=57||45===e||46===e);)t.push(String.fromCharCode(e));const n=parseFloat(t.join(""));if(isNaN(n))throw new r.FormatError(`Invalid floating point number: ${n}`);return n}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MurmurHash3_64=void 0;var r=n(2);const i=3285377520,a=4294901760,o=65535;t.MurmurHash3_64=class{constructor(e){this.h1=e?4294967295&e:i,this.h2=e?4294967295&e:i}update(e){let t,n;if((0,r.isString)(e)){t=new Uint8Array(2*e.length),n=0;for(let r=0,i=e.length;r<i;r++){const i=e.charCodeAt(r);i<=255?t[n++]=i:(t[n++]=i>>>8,t[n++]=255&i)}}else{if(!(0,r.isArrayBuffer)(e))throw new Error("Wrong data format in MurmurHash3_64_update. Input must be a string or array.");n=(t=e).byteLength}const i=n>>2,s=n-4*i,l=new Uint32Array(t.buffer,0,i);let c=0,u=0,h=this.h1,d=this.h2;const f=3432918353,p=461845907,A=f&o,g=p&o;for(let e=0;e<i;e++)1&e?h=5*(h=(h^=c=(c=(c=(c=l[e])*f&a|c*A&o)<<15|c>>>17)*p&a|c*g&o)<<13|h>>>19)+3864292196:d=5*(d=(d^=u=(u=(u=(u=l[e])*f&a|u*A&o)<<15|u>>>17)*p&a|u*g&o)<<13|d>>>19)+3864292196;switch(c=0,s){case 3:c^=t[4*i+2]<<16;case 2:c^=t[4*i+1]<<8;case 1:c=(c=(c=(c^=t[4*i])*f&a|c*A&o)<<15|c>>>17)*p&a|c*g&o,1&i?h^=c:d^=c}this.h1=h,this.h2=d}hexdigest(){let e=this.h1,t=this.h2;e=3981806797*(e^=t>>>1)&a|36045*e&o,e=444984403*(e^=(t=4283543511*t&a|(2950163797*(t<<16|e>>>16)&a)>>>16)>>>1)&a|60499*e&o;const n=((e^=(t=3301882366*t&a|(3120437893*(t<<16|e>>>16)&a)>>>16)>>>1)>>>0).toString(16),r=(t>>>0).toString(16);return n.padStart(8,"0")+r.padStart(8,"0")}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PDFImage=void 0;var r=n(2),i=n(5),a=n(23),o=n(12),s=n(18),l=n(21),c=function(){function e(e,t,n,r){return(e=t+e*n)<0?e=0:e>r&&(e=r),e}function t(e,t,n,r,i,a){var o=i*a;let s;s=t<=8?new Uint8Array(o):t<=16?new Uint16Array(o):new Uint32Array(o);var l,c,u,h,d=n/i,f=r/a,p=0,A=new Uint16Array(i),g=n;for(l=0;l<i;l++)A[l]=Math.floor(l*d);for(l=0;l<a;l++)for(u=Math.floor(l*f)*g,c=0;c<i;c++)h=u+A[c],s[p++]=e[h];return s}function n({xref:e,res:t,image:o,isInline:s=!1,smask:c=null,mask:u=null,isMask:h=!1,pdfFunctionFactory:d}){this.image=o;var f=o.dict;const p=f.get("Filter");if((0,i.isName)(p))switch(p.name){case"JPXDecode":var A=new l.JpxImage;A.parseImageProperties(o.stream),o.stream.reset(),o.width=A.width,o.height=A.height,o.bitsPerComponent=A.bitsPerComponent,o.numComps=A.componentsCount;break;case"JBIG2Decode":o.bitsPerComponent=1,o.numComps=1}let g=f.get("Width","W"),m=f.get("Height","H");if(Number.isInteger(o.width)&&o.width>0&&Number.isInteger(o.height)&&o.height>0&&(o.width!==g||o.height!==m)&&((0,r.warn)("PDFImage - using the Width/Height of the image data, rather than the image dictionary."),g=o.width,m=o.height),g<1||m<1)throw new r.FormatError(`Invalid image width: ${g} or height: ${m}`);this.width=g,this.height=m,this.interpolate=f.get("Interpolate","I")||!1,this.imageMask=f.get("ImageMask","IM")||!1,this.matte=f.get("Matte")||!1;var v=o.bitsPerComponent;if(!v&&!(v=f.get("BitsPerComponent","BPC"))){if(!this.imageMask)throw new r.FormatError(`Bits per component missing in image: ${this.imageMask}`);v=1}if(this.bpc=v,!this.imageMask){var y=f.get("ColorSpace","CS");if(!y)switch((0,r.info)("JPX images (which do not require color spaces)"),o.numComps){case 1:y=i.Name.get("DeviceGray");break;case 3:y=i.Name.get("DeviceRGB");break;case 4:y=i.Name.get("DeviceCMYK");break;default:throw new Error(`JPX images with ${o.numComps} `+"color components not supported.")}const n=s?t:null;this.colorSpace=a.ColorSpace.parse(y,e,n,d),this.numComps=this.colorSpace.numComps}if(this.decode=f.getArray("Decode","D"),this.needsDecode=!1,this.decode&&(this.colorSpace&&!this.colorSpace.isDefaultDecode(this.decode,v)||h&&!a.ColorSpace.isDefaultDecode(this.decode,1))){this.needsDecode=!0;var b=(1<<v)-1;this.decodeCoefficients=[],this.decodeAddends=[];const e=this.colorSpace&&"Indexed"===this.colorSpace.name;for(var w=0,x=0;w<this.decode.length;w+=2,++x){var _=this.decode[w],C=this.decode[w+1];this.decodeCoefficients[x]=e?(C-_)/b:C-_,this.decodeAddends[x]=e?_:b*_}}if(c)this.smask=new n({xref:e,res:t,image:c,isInline:s,pdfFunctionFactory:d});else if(u){if((0,i.isStream)(u))u.dict.get("ImageMask","IM")?this.mask=new n({xref:e,res:t,image:u,isInline:s,isMask:!0,pdfFunctionFactory:d}):(0,r.warn)("Ignoring /Mask in image without /ImageMask.");else this.mask=u}}return n.buildImage=function({xref:e,res:t,image:a,isInline:o=!1,pdfFunctionFactory:s}){const l=a;let c=null,u=null;const h=a.dict.get("SMask"),d=a.dict.get("Mask");return h?c=h:d&&((0,i.isStream)(d)||Array.isArray(d)?u=d:(0,r.warn)("Unsupported mask format.")),Promise.resolve(new n({xref:e,res:t,image:l,isInline:o,smask:c,mask:u,pdfFunctionFactory:s}))},n.createMask=function({imgArray:e,width:t,height:n,imageIsFromDecodeStream:r,inverseDecode:i}){var a,o,s=(t+7>>3)*n,l=e.byteLength;if(!r||i&&!(s===l))if(i)for((a=new Uint8ClampedArray(s)).set(e),o=l;o<s;o++)a[o]=255;else(a=new Uint8ClampedArray(l)).set(e);else a=e;if(i)for(o=0;o<l;o++)a[o]^=255;return{data:a,width:t,height:n}},n.prototype={get drawWidth(){return Math.max(this.width,this.smask&&this.smask.width||0,this.mask&&this.mask.width||0)},get drawHeight(){return Math.max(this.height,this.smask&&this.smask.height||0,this.mask&&this.mask.height||0)},decodeBuffer(t){var n,r,i=this.bpc,a=this.numComps,o=this.decodeAddends,s=this.decodeCoefficients,l=(1<<i)-1;if(1!==i){var c=0;for(n=0,r=this.width*this.height;n<r;n++)for(var u=0;u<a;u++)t[c]=e(t[c],o[u],s[u],l),c++}else for(n=0,r=t.length;n<r;n++)t[n]=+!t[n]},getComponents(e){var t=this.bpc;if(8===t)return e;var n=this.width,r=this.height,i=this.numComps,a=n*r*i,o=0;let s;s=t<=8?new Uint8Array(a):t<=16?new Uint16Array(a):new Uint32Array(a);var l,c,u=n*i,h=(1<<t)-1,d=0;if(1===t)for(var f,p,A,g=0;g<r;g++){for(p=d+(-8&u),A=d+u;d<p;)c=e[o++],s[d]=c>>7&1,s[d+1]=c>>6&1,s[d+2]=c>>5&1,s[d+3]=c>>4&1,s[d+4]=c>>3&1,s[d+5]=c>>2&1,s[d+6]=c>>1&1,s[d+7]=1&c,d+=8;if(d<A)for(c=e[o++],f=128;d<A;)s[d++]=+!!(c&f),f>>=1}else{var m=0;for(c=0,d=0,l=a;d<l;++d){for(d%u==0&&(c=0,m=0);m<t;)c=c<<8|e[o++],m+=8;var v=m-t;let n=c>>v;n<0?n=0:n>h&&(n=h),s[d]=n,c&=(1<<v)-1,m=v}}return s},fillOpacity(e,i,a,o,s){var l,c,u,h,d,f,p=this.smask,A=this.mask;if(p)c=p.width,u=p.height,l=new Uint8ClampedArray(c*u),p.fillGrayBuffer(l),c===i&&u===a||(l=t(l,p.bpc,c,u,i,a));else if(A)if(A instanceof n){for(c=A.width,u=A.height,l=new Uint8ClampedArray(c*u),A.numComps=1,A.fillGrayBuffer(l),h=0,d=c*u;h<d;++h)l[h]=255-l[h];c===i&&u===a||(l=t(l,A.bpc,c,u,i,a))}else{if(!Array.isArray(A))throw new r.FormatError("Unknown mask format.");l=new Uint8ClampedArray(i*a);var g=this.numComps;for(h=0,d=i*a;h<d;++h){var m=0,v=h*g;for(f=0;f<g;++f){var y=s[v+f],b=2*f;if(y<A[b]||y>A[b+1]){m=255;break}}l[h]=m}}if(l)for(h=0,f=3,d=i*o;h<d;++h,f+=4)e[f]=l[h];else for(h=0,f=3,d=i*o;h<d;++h,f+=4)e[f]=255},undoPreblend(e,t,n){var r=this.smask&&this.smask.matte;if(r)for(var i=this.colorSpace.getRgb(r,0),a=i[0],o=i[1],s=i[2],l=t*n*4,c=0;c<l;c+=4){var u=e[c+3];if(0!==u){var h=255/u;e[c]=(e[c]-a)*h+a,e[c+1]=(e[c+1]-o)*h+o,e[c+2]=(e[c+2]-s)*h+s}else e[c]=255,e[c+1]=255,e[c+2]=255}},createImageData(e=!1){var t,n=this.drawWidth,i=this.drawHeight,a={width:n,height:i,kind:0,data:null},l=this.numComps,c=this.width,u=this.height,h=this.bpc,d=c*l*h+7>>3;if(!e){var f;if("DeviceGray"===this.colorSpace.name&&1===h?f=r.ImageKind.GRAYSCALE_1BPP:"DeviceRGB"!==this.colorSpace.name||8!==h||this.needsDecode||(f=r.ImageKind.RGB_24BPP),f&&!this.smask&&!this.mask&&n===c&&i===u){if(a.kind=f,t=this.getImageBytes(u*d),this.image instanceof o.DecodeStream)a.data=t;else{var p=new Uint8ClampedArray(t.length);p.set(t),a.data=p}if(this.needsDecode){(0,r.assert)(f===r.ImageKind.GRAYSCALE_1BPP,"PDFImage.createImageData: The image must be grayscale.");for(var A=a.data,g=0,m=A.length;g<m;g++)A[g]^=255}return a}if(this.image instanceof s.JpegStream&&!this.smask&&!this.mask){let e=u*d;switch(this.colorSpace.name){case"DeviceGray":e*=3;case"DeviceRGB":case"DeviceCMYK":return a.kind=r.ImageKind.RGB_24BPP,a.data=this.getImageBytes(e,n,i,!0),a}}}var v,y,b=0|(t=this.getImageBytes(u*d)).length/d*i/u,w=this.getComponents(t);return e||this.smask||this.mask?(a.kind=r.ImageKind.RGBA_32BPP,a.data=new Uint8ClampedArray(n*i*4),v=1,y=!0,this.fillOpacity(a.data,n,i,b,w)):(a.kind=r.ImageKind.RGB_24BPP,a.data=new Uint8ClampedArray(n*i*3),v=0,y=!1),this.needsDecode&&this.decodeBuffer(w),this.colorSpace.fillRgb(a.data,c,u,n,i,b,h,w,v),y&&this.undoPreblend(a.data,n,b),a},fillGrayBuffer(e){var t=this.numComps;if(1!==t)throw new r.FormatError(`Reading gray scale from a color image: ${t}`);var n,i,a=this.width,o=this.height,s=this.bpc,l=a*t*s+7>>3,c=this.getImageBytes(o*l),u=this.getComponents(c);if(1!==s){this.needsDecode&&this.decodeBuffer(u),i=a*o;var h=255/((1<<s)-1);for(n=0;n<i;++n)e[n]=h*u[n]}else if(i=a*o,this.needsDecode)for(n=0;n<i;++n)e[n]=u[n]-1&255;else for(n=0;n<i;++n)e[n]=255&-u[n]},getImageBytes(e,t,n,r=!1){return this.image.reset(),this.image.drawWidth=t||this.width,this.image.drawHeight=n||this.height,this.image.forceRGB=!!r,this.image.getBytes(e,!0)}},n}();t.PDFImage=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MessageHandler=void 0;var r=n(2);const i={UNKNOWN:0,DATA:1,ERROR:2},a={UNKNOWN:0,CANCEL:1,CANCEL_COMPLETE:2,CLOSE:3,ENQUEUE:4,ERROR:5,PULL:6,PULL_COMPLETE:7,START_COMPLETE:8};function o(e){if("object"!=typeof e||null===e)return e;switch(e.name){case"AbortException":return new r.AbortException(e.message);case"MissingPDFException":return new r.MissingPDFException(e.message);case"UnexpectedResponseException":return new r.UnexpectedResponseException(e.message,e.status);case"UnknownErrorException":return new r.UnknownErrorException(e.message,e.details);default:return new r.UnknownErrorException(e.message,e.toString())}}t.MessageHandler=class{constructor(e,t,n){this.sourceName=e,this.targetName=t,this.comObj=n,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=(e=>{const t=e.data;if(t.targetName!==this.sourceName)return;if(t.stream)return void this._processStreamMessage(t);if(t.callback){const e=t.callbackId,n=this.callbackCapabilities[e];if(!n)throw new Error(`Cannot resolve callback ${e}`);if(delete this.callbackCapabilities[e],t.callback===i.DATA)n.resolve(t.data);else{if(t.callback!==i.ERROR)throw new Error("Unexpected callback case");n.reject(o(t.reason))}return}const r=this.actionHandler[t.action];if(!r)throw new Error(`Unknown action from worker: ${t.action}`);if(t.callbackId){const e=this.sourceName,a=t.sourceName;new Promise(function(e){e(r(t.data))}).then(function(r){n.postMessage({sourceName:e,targetName:a,callback:i.DATA,callbackId:t.callbackId,data:r})},function(r){n.postMessage({sourceName:e,targetName:a,callback:i.ERROR,callbackId:t.callbackId,reason:o(r)})})}else t.streamId?this._createStreamSink(t):r(t.data)}),n.addEventListener("message",this._onComObjOnMessage)}on(e,t){const n=this.actionHandler;if(n[e])throw new Error(`There is already an actionName called "${e}"`);n[e]=t}send(e,t,n){this._postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,data:t},n)}sendWithPromise(e,t,n){const i=this.callbackId++,a=(0,r.createPromiseCapability)();this.callbackCapabilities[i]=a;try{this._postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,callbackId:i,data:t},n)}catch(e){a.reject(e)}return a.promise}sendWithStream(e,t,n,i){const s=this.streamId++,l=this.sourceName,c=this.targetName,u=this.comObj;return new ReadableStream({start:n=>{const a=(0,r.createPromiseCapability)();return this.streamControllers[s]={controller:n,startCall:a,pullCall:null,cancelCall:null,isClosed:!1},this._postMessage({sourceName:l,targetName:c,action:e,streamId:s,data:t,desiredSize:n.desiredSize},i),a.promise},pull:e=>{const t=(0,r.createPromiseCapability)();return this.streamControllers[s].pullCall=t,u.postMessage({sourceName:l,targetName:c,stream:a.PULL,streamId:s,desiredSize:e.desiredSize}),t.promise},cancel:e=>{(0,r.assert)(e instanceof Error,"cancel must have a valid reason");const t=(0,r.createPromiseCapability)();return this.streamControllers[s].cancelCall=t,this.streamControllers[s].isClosed=!0,u.postMessage({sourceName:l,targetName:c,stream:a.CANCEL,streamId:s,reason:o(e)}),t.promise}},n)}_createStreamSink(e){const t=this,n=this.actionHandler[e.action],i=e.streamId,s=this.sourceName,l=e.sourceName,c=this.comObj,u={enqueue(e,n=1,o){if(this.isCancelled)return;const c=this.desiredSize;this.desiredSize-=n,c>0&&this.desiredSize<=0&&(this.sinkCapability=(0,r.createPromiseCapability)(),this.ready=this.sinkCapability.promise),t._postMessage({sourceName:s,targetName:l,stream:a.ENQUEUE,streamId:i,chunk:e},o)},close(){this.isCancelled||(this.isCancelled=!0,c.postMessage({sourceName:s,targetName:l,stream:a.CLOSE,streamId:i}),delete t.streamSinks[i])},error(e){(0,r.assert)(e instanceof Error,"error must have a valid reason"),this.isCancelled||(this.isCancelled=!0,c.postMessage({sourceName:s,targetName:l,stream:a.ERROR,streamId:i,reason:o(e)}))},sinkCapability:(0,r.createPromiseCapability)(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:e.desiredSize,ready:null};u.sinkCapability.resolve(),u.ready=u.sinkCapability.promise,this.streamSinks[i]=u,new Promise(function(t){t(n(e.data,u))}).then(function(){c.postMessage({sourceName:s,targetName:l,stream:a.START_COMPLETE,streamId:i,success:!0})},function(e){c.postMessage({sourceName:s,targetName:l,stream:a.START_COMPLETE,streamId:i,reason:o(e)})})}_processStreamMessage(e){const t=e.streamId,n=this.sourceName,i=e.sourceName,s=this.comObj;switch(e.stream){case a.START_COMPLETE:e.success?this.streamControllers[t].startCall.resolve():this.streamControllers[t].startCall.reject(o(e.reason));break;case a.PULL_COMPLETE:e.success?this.streamControllers[t].pullCall.resolve():this.streamControllers[t].pullCall.reject(o(e.reason));break;case a.PULL:if(!this.streamSinks[t]){s.postMessage({sourceName:n,targetName:i,stream:a.PULL_COMPLETE,streamId:t,success:!0});break}this.streamSinks[t].desiredSize<=0&&e.desiredSize>0&&this.streamSinks[t].sinkCapability.resolve(),this.streamSinks[t].desiredSize=e.desiredSize;const{onPull:l}=this.streamSinks[e.streamId];new Promise(function(e){e(l&&l())}).then(function(){s.postMessage({sourceName:n,targetName:i,stream:a.PULL_COMPLETE,streamId:t,success:!0})},function(e){s.postMessage({sourceName:n,targetName:i,stream:a.PULL_COMPLETE,streamId:t,reason:o(e)})});break;case a.ENQUEUE:if((0,r.assert)(this.streamControllers[t],"enqueue should have stream controller"),this.streamControllers[t].isClosed)break;this.streamControllers[t].controller.enqueue(e.chunk);break;case a.CLOSE:if((0,r.assert)(this.streamControllers[t],"close should have stream controller"),this.streamControllers[t].isClosed)break;this.streamControllers[t].isClosed=!0,this.streamControllers[t].controller.close(),this._deleteStreamController(t);break;case a.ERROR:(0,r.assert)(this.streamControllers[t],"error should have stream controller"),this.streamControllers[t].controller.error(o(e.reason)),this._deleteStreamController(t);break;case a.CANCEL_COMPLETE:e.success?this.streamControllers[t].cancelCall.resolve():this.streamControllers[t].cancelCall.reject(o(e.reason)),this._deleteStreamController(t);break;case a.CANCEL:if(!this.streamSinks[t])break;const{onCancel:c}=this.streamSinks[e.streamId];new Promise(function(t){t(c&&c(o(e.reason)))}).then(function(){s.postMessage({sourceName:n,targetName:i,stream:a.CANCEL_COMPLETE,streamId:t,success:!0})},function(e){s.postMessage({sourceName:n,targetName:i,stream:a.CANCEL_COMPLETE,streamId:t,reason:o(e)})}),this.streamSinks[t].sinkCapability.reject(o(e.reason)),this.streamSinks[t].isCancelled=!0,delete this.streamSinks[t];break;default:throw new Error("Unexpected stream case")}}async _deleteStreamController(e){await Promise.allSettled([this.streamControllers[e].startCall,this.streamControllers[e].pullCall,this.streamControllers[e].cancelCall].map(function(e){return e&&e.promise})),delete this.streamControllers[e]}_postMessage(e,t){t&&this.postMessageTransfers?this.comObj.postMessage(e,t):this.comObj.postMessage(e)}destroy(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PDFWorkerStream=void 0;var r=n(2);t.PDFWorkerStream=class{constructor(e){this._msgHandler=e,this._contentLength=null,this._fullRequestReader=null,this._rangeRequestReaders=[]}getFullReader(){return(0,r.assert)(!this._fullRequestReader,"PDFWorkerStream.getFullReader can only be called once."),this._fullRequestReader=new i(this._msgHandler),this._fullRequestReader}getRangeReader(e,t){const n=new a(e,t,this._msgHandler);return this._rangeRequestReaders.push(n),n}cancelAllRequests(e){this._fullRequestReader&&this._fullRequestReader.cancel(e),this._rangeRequestReaders.slice(0).forEach(function(t){t.cancel(e)})}};class i{constructor(e){this._msgHandler=e,this.onProgress=null,this._contentLength=null,this._isRangeSupported=!1,this._isStreamingSupported=!1;const t=this._msgHandler.sendWithStream("GetReader");this._reader=t.getReader(),this._headersReady=this._msgHandler.sendWithPromise("ReaderHeadersReady").then(e=>{this._isStreamingSupported=e.isStreamingSupported,this._isRangeSupported=e.isRangeSupported,this._contentLength=e.contentLength})}get headersReady(){return this._headersReady}get contentLength(){return this._contentLength}get isStreamingSupported(){return this._isStreamingSupported}get isRangeSupported(){return this._isRangeSupported}async read(){const{value:e,done:t}=await this._reader.read();return t?{value:void 0,done:!0}:{value:e.buffer,done:!1}}cancel(e){this._reader.cancel(e)}}class a{constructor(e,t,n){this._msgHandler=n,this.onProgress=null;const r=this._msgHandler.sendWithStream("GetRangeReader",{begin:e,end:t});this._reader=r.getReader()}get isStreamingSupported(){return!1}async read(){const{value:e,done:t}=await this._reader.read();return t?{value:void 0,done:!0}:{value:e.buffer,done:!1}}cancel(e){this._reader.cancel(e)}}}])},e.exports=n()}).call(this,n("4362"))},"68c4":function(e,t,n){"use strict";n.r(t),t.default=function(){return new Worker(n.p+"pdfvuer.umd.worker.js")}},8875:function(e,t,n){var r,i,a;"undefined"!=typeof self&&self,i=[],void 0===(a="function"==typeof(r=function(){return function e(){var t=Object.getOwnPropertyDescriptor(document,"currentScript");if(!t&&"currentScript"in document&&document.currentScript)return document.currentScript;if(t&&t.get!==e&&document.currentScript)return document.currentScript;try{throw new Error}catch(e){var n,r,i,a=/.*at [^(]*\((.*):(.+):(.+)\)$/gi.exec(e.stack)||/@([^@]*):(\d+):(\d+)\s*$/gi.exec(e.stack),o=a&&a[1]||!1,s=a&&a[2]||!1,l=document.location.href.replace(document.location.hash,""),c=document.getElementsByTagName("script");o===l&&(n=document.documentElement.outerHTML,r=new RegExp("(?:[^\\n]+?\\n){0,"+(s-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),i=n.replace(r,"$1").trim());for(var u=0;u<c.length;u++){if("interactive"===c[u].readyState)return c[u];if(c[u].src===o)return c[u];if(o===l&&c[u].innerHTML&&c[u].innerHTML.trim()===i)return c[u]}return null}}})?r.apply(t,i):r)||(e.exports=a)},9152:function(e,t){t.read=function(e,t,n,r,i){var a,o,s=8*i-r-1,l=(1<<s)-1,c=l>>1,u=-7,h=n?i-1:0,d=n?-1:1,f=e[t+h];for(h+=d,a=f&(1<<-u)-1,f>>=-u,u+=s;u>0;a=256*a+e[t+h],h+=d,u-=8);for(o=a&(1<<-u)-1,a>>=-u,u+=r;u>0;o=256*o+e[t+h],h+=d,u-=8);if(0===a)a=1-c;else{if(a===l)return o?NaN:1/0*(f?-1:1);o+=Math.pow(2,r),a-=c}return(f?-1:1)*o*Math.pow(2,a-r)},t.write=function(e,t,n,r,i,a){var o,s,l,c=8*a-i-1,u=(1<<c)-1,h=u>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=r?0:a-1,p=r?1:-1,A=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),(t+=o+h>=1?d/l:d*Math.pow(2,1-h))*l>=2&&(o++,l/=2),o+h>=u?(s=0,o=u):o+h>=1?(s=(t*l-1)*Math.pow(2,i),o+=h):(s=t*Math.pow(2,h-1)*Math.pow(2,i),o=0));i>=8;e[n+f]=255&s,f+=p,s/=256,i-=8);for(o=o<<i|s,c+=i;c>0;e[n+f]=255&o,f+=p,o/=256,c-=8);e[n+f-p]|=128*A}},9511:function(module,exports,__webpack_require__){(function(process,Buffer){var factory;factory=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLinkAttributes",{enumerable:!0,get:function(){return r.addLinkAttributes}}),Object.defineProperty(t,"getFilenameFromUrl",{enumerable:!0,get:function(){return r.getFilenameFromUrl}}),Object.defineProperty(t,"LinkTarget",{enumerable:!0,get:function(){return r.LinkTarget}}),Object.defineProperty(t,"loadScript",{enumerable:!0,get:function(){return r.loadScript}}),Object.defineProperty(t,"PDFDateString",{enumerable:!0,get:function(){return r.PDFDateString}}),Object.defineProperty(t,"RenderingCancelledException",{enumerable:!0,get:function(){return r.RenderingCancelledException}}),Object.defineProperty(t,"build",{enumerable:!0,get:function(){return i.build}}),Object.defineProperty(t,"getDocument",{enumerable:!0,get:function(){return i.getDocument}}),Object.defineProperty(t,"LoopbackPort",{enumerable:!0,get:function(){return i.LoopbackPort}}),Object.defineProperty(t,"PDFDataRangeTransport",{enumerable:!0,get:function(){return i.PDFDataRangeTransport}}),Object.defineProperty(t,"PDFWorker",{enumerable:!0,get:function(){return i.PDFWorker}}),Object.defineProperty(t,"version",{enumerable:!0,get:function(){return i.version}}),Object.defineProperty(t,"CMapCompressionType",{enumerable:!0,get:function(){return a.CMapCompressionType}}),Object.defineProperty(t,"createObjectURL",{enumerable:!0,get:function(){return a.createObjectURL}}),Object.defineProperty(t,"createPromiseCapability",{enumerable:!0,get:function(){return a.createPromiseCapability}}),Object.defineProperty(t,"createValidAbsoluteUrl",{enumerable:!0,get:function(){return a.createValidAbsoluteUrl}}),Object.defineProperty(t,"InvalidPDFException",{enumerable:!0,get:function(){return a.InvalidPDFException}}),Object.defineProperty(t,"MissingPDFException",{enumerable:!0,get:function(){return a.MissingPDFException}}),Object.defineProperty(t,"OPS",{enumerable:!0,get:function(){return a.OPS}}),Object.defineProperty(t,"PasswordResponses",{enumerable:!0,get:function(){return a.PasswordResponses}}),Object.defineProperty(t,"PermissionFlag",{enumerable:!0,get:function(){return a.PermissionFlag}}),Object.defineProperty(t,"removeNullCharacters",{enumerable:!0,get:function(){return a.removeNullCharacters}}),Object.defineProperty(t,"shadow",{enumerable:!0,get:function(){return a.shadow}}),Object.defineProperty(t,"UnexpectedResponseException",{enumerable:!0,get:function(){return a.UnexpectedResponseException}}),Object.defineProperty(t,"UNSUPPORTED_FEATURES",{enumerable:!0,get:function(){return a.UNSUPPORTED_FEATURES}}),Object.defineProperty(t,"Util",{enumerable:!0,get:function(){return a.Util}}),Object.defineProperty(t,"VerbosityLevel",{enumerable:!0,get:function(){return a.VerbosityLevel}}),Object.defineProperty(t,"AnnotationLayer",{enumerable:!0,get:function(){return o.AnnotationLayer}}),Object.defineProperty(t,"apiCompatibilityParams",{enumerable:!0,get:function(){return s.apiCompatibilityParams}}),Object.defineProperty(t,"GlobalWorkerOptions",{enumerable:!0,get:function(){return l.GlobalWorkerOptions}}),Object.defineProperty(t,"renderTextLayer",{enumerable:!0,get:function(){return c.renderTextLayer}}),Object.defineProperty(t,"SVGGraphics",{enumerable:!0,get:function(){return u.SVGGraphics}});var r=n(1),i=n(5),a=n(2),o=n(16),s=n(7),l=n(10),c=n(17),u=n(18);{const{isNodeJS:e}=n(4);if(e){const e=n(19).PDFNodeStream;(0,i.setPDFNetworkStreamFactory)(t=>new e(t))}else{const e=n(22).PDFNetworkStream;let t;(0,r.isFetchSupported)()&&(t=n(23).PDFFetchStream),(0,i.setPDFNetworkStreamFactory)(n=>t&&(0,r.isValidFetchUrl)(n.url)?new t(n):new e(n))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addLinkAttributes=function(e,{url:t,target:n,rel:a,enabled:o=!0}={}){(0,r.assert)(t&&"string"==typeof t,'addLinkAttributes: A valid "url" parameter must provided.');const l=(0,r.removeNullCharacters)(t);o?e.href=e.title=l:(e.href="",e.title=`Disabled: ${l}`,e.onclick=(()=>!1));let c="";switch(n){case s.NONE:break;case s.SELF:c="_self";break;case s.BLANK:c="_blank";break;case s.PARENT:c="_parent";break;case s.TOP:c="_top"}e.target=c,e.rel="string"==typeof a?a:i},t.getFilenameFromUrl=function(e){const t=e.indexOf("#"),n=e.indexOf("?"),r=Math.min(t>0?t:e.length,n>0?n:e.length);return e.substring(e.lastIndexOf("/",r)+1,r)},t.isFetchSupported=l,t.isValidFetchUrl=c,t.loadScript=function(e){return new Promise((t,n)=>{const r=document.createElement("script");r.src=e,r.onload=t,r.onerror=function(){n(new Error(`Cannot load script at: ${r.src}`))},(document.head||document.documentElement).appendChild(r)})},t.deprecated=function(e){console.log("Deprecated API usage: "+e)},t.PDFDateString=t.StatTimer=t.DOMSVGFactory=t.DOMCMapReaderFactory=t.DOMCanvasFactory=t.DEFAULT_LINK_REL=t.LinkTarget=t.RenderingCancelledException=t.PageViewport=void 0;var r=n(2);const i="noopener noreferrer nofollow";t.DEFAULT_LINK_REL=i;const a="http://www.w3.org/2000/svg";t.DOMCanvasFactory=class{create(e,t){if(e<=0||t<=0)throw new Error("Invalid canvas size");const n=document.createElement("canvas"),r=n.getContext("2d");return n.width=e,n.height=t,{canvas:n,context:r}}reset(e,t,n){if(!e.canvas)throw new Error("Canvas is not specified");if(t<=0||n<=0)throw new Error("Invalid canvas size");e.canvas.width=t,e.canvas.height=n}destroy(e){if(!e.canvas)throw new Error("Canvas is not specified");e.canvas.width=0,e.canvas.height=0,e.canvas=null,e.context=null}};t.DOMCMapReaderFactory=class{constructor({baseUrl:e=null,isCompressed:t=!1}){this.baseUrl=e,this.isCompressed=t}async fetch({name:e}){if(!this.baseUrl)throw new Error('The CMap "baseUrl" parameter must be specified, ensure that the "cMapUrl" and "cMapPacked" API parameters are provided.');if(!e)throw new Error("CMap name must be specified.");const t=this.baseUrl+e+(this.isCompressed?".bcmap":""),n=this.isCompressed?r.CMapCompressionType.BINARY:r.CMapCompressionType.NONE;return l()&&c(t,document.baseURI)?fetch(t).then(async e=>{if(!e.ok)throw new Error(e.statusText);let t;return{cMapData:t=this.isCompressed?new Uint8Array(await e.arrayBuffer()):(0,r.stringToBytes)(await e.text()),compressionType:n}}).catch(e=>{throw new Error(`Unable to load ${this.isCompressed?"binary ":""}`+`CMap at: ${t}`)}):new Promise((e,i)=>{const a=new XMLHttpRequest;a.open("GET",t,!0),this.isCompressed&&(a.responseType="arraybuffer"),a.onreadystatechange=(()=>{if(a.readyState===XMLHttpRequest.DONE){if(200===a.status||0===a.status){let t;if(this.isCompressed&&a.response?t=new Uint8Array(a.response):!this.isCompressed&&a.responseText&&(t=(0,r.stringToBytes)(a.responseText)),t)return void e({cMapData:t,compressionType:n})}i(new Error(a.statusText))}}),a.send(null)}).catch(e=>{throw new Error(`Unable to load ${this.isCompressed?"binary ":""}`+`CMap at: ${t}`)})}};t.DOMSVGFactory=class{create(e,t){(0,r.assert)(e>0&&t>0,"Invalid SVG dimensions");const n=document.createElementNS(a,"svg:svg");return n.setAttribute("version","1.1"),n.setAttribute("width",e+"px"),n.setAttribute("height",t+"px"),n.setAttribute("preserveAspectRatio","none"),n.setAttribute("viewBox","0 0 "+e+" "+t),n}createElement(e){return(0,r.assert)("string"==typeof e,"Invalid SVG element type"),document.createElementNS(a,e)}};class o{constructor({viewBox:e,scale:t,rotation:n,offsetX:r=0,offsetY:i=0,dontFlip:a=!1}){this.viewBox=e,this.scale=t,this.rotation=n,this.offsetX=r,this.offsetY=i;const o=(e[2]+e[0])/2,s=(e[3]+e[1])/2;let l,c,u,h,d,f,p,A;switch(n=(n%=360)<0?n+360:n){case 180:l=-1,c=0,u=0,h=1;break;case 90:l=0,c=1,u=1,h=0;break;case 270:l=0,c=-1,u=-1,h=0;break;case 0:l=1,c=0,u=0,h=-1;break;default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}a&&(u=-u,h=-h),0===l?(d=Math.abs(s-e[1])*t+r,f=Math.abs(o-e[0])*t+i,p=Math.abs(e[3]-e[1])*t,A=Math.abs(e[2]-e[0])*t):(d=Math.abs(o-e[0])*t+r,f=Math.abs(s-e[1])*t+i,p=Math.abs(e[2]-e[0])*t,A=Math.abs(e[3]-e[1])*t),this.transform=[l*t,c*t,u*t,h*t,d-l*t*o-u*t*s,f-c*t*o-h*t*s],this.width=p,this.height=A}clone({scale:e=this.scale,rotation:t=this.rotation,offsetX:n=this.offsetX,offsetY:r=this.offsetY,dontFlip:i=!1}={}){return new o({viewBox:this.viewBox.slice(),scale:e,rotation:t,offsetX:n,offsetY:r,dontFlip:i})}convertToViewportPoint(e,t){return r.Util.applyTransform([e,t],this.transform)}convertToViewportRectangle(e){const t=r.Util.applyTransform([e[0],e[1]],this.transform),n=r.Util.applyTransform([e[2],e[3]],this.transform);return[t[0],t[1],n[0],n[1]]}convertToPdfPoint(e,t){return r.Util.applyInverseTransform([e,t],this.transform)}}t.PageViewport=o;t.RenderingCancelledException=class extends r.BaseException{constructor(e,t){super(e),this.type=t}};const s={NONE:0,SELF:1,BLANK:2,PARENT:3,TOP:4};t.LinkTarget=s;function l(){return"undefined"!=typeof fetch&&"undefined"!=typeof Response&&"body"in Response.prototype&&"undefined"!=typeof ReadableStream}function c(e,t){try{const{protocol:n}=t?new URL(e,t):new URL(e);return"http:"===n||"https:"===n}catch(e){return!1}}let u;t.StatTimer=class{constructor(){this.started=Object.create(null),this.times=[]}time(e){e in this.started&&(0,r.warn)(`Timer is already running for ${e}`),this.started[e]=Date.now()}timeEnd(e){e in this.started||(0,r.warn)(`Timer has not been started for ${e}`),this.times.push({name:e,start:this.started[e],end:Date.now()}),delete this.started[e]}toString(){const e=[];let t=0;for(const e of this.times){const n=e.name;n.length>t&&(t=n.length)}for(const n of this.times){const r=n.end-n.start;e.push(`${n.name.padEnd(t)} ${r}ms\n`)}return e.join("")}};t.PDFDateString=class{static toDateObject(e){if(!e||!(0,r.isString)(e))return null;u||(u=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?"));const t=u.exec(e);if(!t)return null;const n=parseInt(t[1],10);let i=parseInt(t[2],10);i=i>=1&&i<=12?i-1:0;let a=parseInt(t[3],10);a=a>=1&&a<=31?a:1;let o=parseInt(t[4],10);o=o>=0&&o<=23?o:0;let s=parseInt(t[5],10);s=s>=0&&s<=59?s:0;let l=parseInt(t[6],10);l=l>=0&&l<=59?l:0;const c=t[7]||"Z";let h=parseInt(t[8],10);h=h>=0&&h<=23?h:0;let d=parseInt(t[9],10)||0;return d=d>=0&&d<=59?d:0,"-"===c?(o+=h,s+=d):"+"===c&&(o-=h,s-=d),new Date(Date.UTC(n,i,a,o,s,l))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayByteLength=d,t.arraysToBytes=function(e){const t=e.length;if(1===t&&e[0]instanceof Uint8Array)return e[0];let n=0;for(let r=0;r<t;r++)n+=d(e[r]);let r=0;const i=new Uint8Array(n);for(let n=0;n<t;n++){let t=e[n];t instanceof Uint8Array||(t="string"==typeof t?h(t):new Uint8Array(t));const a=t.byteLength;i.set(t,r),r+=a}return i},t.assert=s,t.bytesToString=function(e){s(null!==e&&"object"==typeof e&&void 0!==e.length,"Invalid argument for bytesToString");const t=e.length;if(t<8192)return String.fromCharCode.apply(null,e);const n=[];for(let r=0;r<t;r+=8192){const i=Math.min(r+8192,t),a=e.subarray(r,i);n.push(String.fromCharCode.apply(null,a))}return n.join("")},t.createPromiseCapability=function(){const e=Object.create(null);let t=!1;return Object.defineProperty(e,"settled",{get:()=>t}),e.promise=new Promise(function(n,r){e.resolve=function(e){t=!0,n(e)},e.reject=function(e){t=!0,r(e)}}),e},t.getVerbosityLevel=function(){return i},t.info=function(e){i>=r.INFOS&&console.log(`Info: ${e}`)},t.isArrayBuffer=function(e){return"object"==typeof e&&null!==e&&void 0!==e.byteLength},t.isArrayEqual=function(e,t){if(e.length!==t.length)return!1;return e.every(function(e,n){return e===t[n]})},t.isBool=function(e){return"boolean"==typeof e},t.isEmptyObj=function(e){for(const t in e)return!1;return!0},t.isNum=function(e){return"number"==typeof e},t.isString=function(e){return"string"==typeof e},t.isSameOrigin=function(e,t){let n;try{if(!(n=new URL(e)).origin||"null"===n.origin)return!1}catch(e){return!1}const r=new URL(t,n);return n.origin===r.origin},t.createValidAbsoluteUrl=function(e,t){if(!e)return null;try{const n=t?new URL(e,t):new URL(e);if(function(e){if(!e)return!1;switch(e.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}(n))return n}catch(e){}return null},t.removeNullCharacters=function(e){if("string"!=typeof e)return a("The argument for removeNullCharacters must be a string."),e;return e.replace(u,"")},t.setVerbosityLevel=function(e){Number.isInteger(e)&&(i=e)},t.shadow=l,t.string32=function(e){return String.fromCharCode(e>>24&255,e>>16&255,e>>8&255,255&e)},t.stringToBytes=h,t.stringToPDFString=function(e){const t=e.length,n=[];if("þ"===e[0]&&"ÿ"===e[1])for(let r=2;r<t;r+=2)n.push(String.fromCharCode(e.charCodeAt(r)<<8|e.charCodeAt(r+1)));else if("ÿ"===e[0]&&"þ"===e[1])for(let r=2;r<t;r+=2)n.push(String.fromCharCode(e.charCodeAt(r+1)<<8|e.charCodeAt(r)));else for(let r=0;r<t;++r){const t=m[e.charCodeAt(r)];n.push(t?String.fromCharCode(t):e.charAt(r))}return n.join("")},t.stringToUTF8String=function(e){return decodeURIComponent(escape(e))},t.utf8StringToString=function(e){return unescape(encodeURIComponent(e))},t.warn=a,t.unreachable=o,t.IsEvalSupportedCached=t.IsLittleEndianCached=t.createObjectURL=t.FormatError=t.Util=t.UnknownErrorException=t.UnexpectedResponseException=t.TextRenderingMode=t.StreamType=t.PermissionFlag=t.PasswordResponses=t.PasswordException=t.MissingPDFException=t.InvalidPDFException=t.AbortException=t.CMapCompressionType=t.ImageKind=t.FontType=t.AnnotationType=t.AnnotationStateModelType=t.AnnotationReviewState=t.AnnotationReplyType=t.AnnotationMarkedState=t.AnnotationFlag=t.AnnotationFieldFlag=t.AnnotationBorderStyleType=t.UNSUPPORTED_FEATURES=t.VerbosityLevel=t.OPS=t.IDENTITY_MATRIX=t.FONT_IDENTITY_MATRIX=t.BaseException=void 0,n(3);t.IDENTITY_MATRIX=[1,0,0,1,0,0];t.FONT_IDENTITY_MATRIX=[.001,0,0,.001,0,0];t.PermissionFlag={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048};t.TextRenderingMode={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};t.ImageKind={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3};t.AnnotationType={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};t.AnnotationStateModelType={MARKED:"Marked",REVIEW:"Review"};t.AnnotationMarkedState={MARKED:"Marked",UNMARKED:"Unmarked"};t.AnnotationReviewState={ACCEPTED:"Accepted",REJECTED:"Rejected",CANCELLED:"Cancelled",COMPLETED:"Completed",NONE:"None"};t.AnnotationReplyType={GROUP:"Group",REPLY:"R"};t.AnnotationFlag={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512};t.AnnotationFieldFlag={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};t.AnnotationBorderStyleType={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5};t.StreamType={UNKNOWN:"UNKNOWN",FLATE:"FLATE",LZW:"LZW",DCT:"DCT",JPX:"JPX",JBIG:"JBIG",A85:"A85",AHX:"AHX",CCF:"CCF",RLX:"RLX"};t.FontType={UNKNOWN:"UNKNOWN",TYPE1:"TYPE1",TYPE1C:"TYPE1C",CIDFONTTYPE0:"CIDFONTTYPE0",CIDFONTTYPE0C:"CIDFONTTYPE0C",TRUETYPE:"TRUETYPE",CIDFONTTYPE2:"CIDFONTTYPE2",TYPE3:"TYPE3",OPENTYPE:"OPENTYPE",TYPE0:"TYPE0",MMTYPE1:"MMTYPE1"};const r={ERRORS:0,WARNINGS:1,INFOS:5};t.VerbosityLevel=r;t.CMapCompressionType={NONE:0,BINARY:1,STREAM:2};t.OPS={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};t.UNSUPPORTED_FEATURES={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"};t.PasswordResponses={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};let i=r.WARNINGS;function a(e){i>=r.WARNINGS&&console.log(`Warning: ${e}`)}function o(e){throw new Error(e)}function s(e,t){e||o(t)}function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!1}),n}const c=function(){function e(t){this.constructor===e&&o("Cannot initialize BaseException."),this.message=t,this.name=this.constructor.name}return e.prototype=new Error,e.constructor=e,e}();t.BaseException=c;t.PasswordException=class extends c{constructor(e,t){super(e),this.code=t}};t.UnknownErrorException=class extends c{constructor(e,t){super(e),this.details=t}};t.InvalidPDFException=class extends c{};t.MissingPDFException=class extends c{};t.UnexpectedResponseException=class extends c{constructor(e,t){super(e),this.status=t}};t.FormatError=class extends c{};t.AbortException=class extends c{};const u=/\x00/g;function h(e){s("string"==typeof e,"Invalid argument for stringToBytes");const t=e.length,n=new Uint8Array(t);for(let r=0;r<t;++r)n[r]=255&e.charCodeAt(r);return n}function d(e){return void 0!==e.length?e.length:(s(void 0!==e.byteLength,"arrayByteLength - invalid argument."),e.byteLength)}const f={get value(){return l(this,"value",function(){const e=new Uint8Array(4);return e[0]=1,1===new Uint32Array(e.buffer,0,1)[0]}())}};t.IsLittleEndianCached=f;const p={get value(){return l(this,"value",function(){try{return new Function(""),!0}catch(e){return!1}}())}};t.IsEvalSupportedCached=p;const A=["rgb(",0,",",0,",",0,")"];class g{static makeCssRgb(e,t,n){return A[1]=e,A[3]=t,A[5]=n,A.join("")}static transform(e,t){return[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],e[0]*t[4]+e[2]*t[5]+e[4],e[1]*t[4]+e[3]*t[5]+e[5]]}static applyTransform(e,t){return[e[0]*t[0]+e[1]*t[2]+t[4],e[0]*t[1]+e[1]*t[3]+t[5]]}static applyInverseTransform(e,t){const n=t[0]*t[3]-t[1]*t[2];return[(e[0]*t[3]-e[1]*t[2]+t[2]*t[5]-t[4]*t[3])/n,(-e[0]*t[1]+e[1]*t[0]+t[4]*t[1]-t[5]*t[0])/n]}static getAxialAlignedBoundingBox(e,t){const n=g.applyTransform(e,t),r=g.applyTransform(e.slice(2,4),t),i=g.applyTransform([e[0],e[3]],t),a=g.applyTransform([e[2],e[1]],t);return[Math.min(n[0],r[0],i[0],a[0]),Math.min(n[1],r[1],i[1],a[1]),Math.max(n[0],r[0],i[0],a[0]),Math.max(n[1],r[1],i[1],a[1])]}static inverseTransform(e){const t=e[0]*e[3]-e[1]*e[2];return[e[3]/t,-e[1]/t,-e[2]/t,e[0]/t,(e[2]*e[5]-e[4]*e[3])/t,(e[4]*e[1]-e[5]*e[0])/t]}static apply3dTransform(e,t){return[e[0]*t[0]+e[1]*t[1]+e[2]*t[2],e[3]*t[0]+e[4]*t[1]+e[5]*t[2],e[6]*t[0]+e[7]*t[1]+e[8]*t[2]]}static singularValueDecompose2dScale(e){const t=[e[0],e[2],e[1],e[3]],n=e[0]*t[0]+e[1]*t[2],r=e[0]*t[1]+e[1]*t[3],i=e[2]*t[0]+e[3]*t[2],a=e[2]*t[1]+e[3]*t[3],o=(n+a)/2,s=Math.sqrt((n+a)*(n+a)-4*(n*a-i*r))/2,l=o+s||1,c=o-s||1;return[Math.sqrt(l),Math.sqrt(c)]}static normalizeRect(e){const t=e.slice(0);return e[0]>e[2]&&(t[0]=e[2],t[2]=e[0]),e[1]>e[3]&&(t[1]=e[3],t[3]=e[1]),t}static intersect(e,t){function n(e,t){return e-t}const r=[e[0],e[2],t[0],t[2]].sort(n),i=[e[1],e[3],t[1],t[3]].sort(n),a=[];return e=g.normalizeRect(e),t=g.normalizeRect(t),r[0]===e[0]&&r[1]===t[0]||r[0]===t[0]&&r[1]===e[0]?(a[0]=r[1],a[2]=r[2],i[0]===e[1]&&i[1]===t[1]||i[0]===t[1]&&i[1]===e[1]?(a[1]=i[1],a[3]=i[2],a):null):null}}t.Util=g;const m=[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];const v=function(){const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";return function(t,n,r=!1){if(!r&&URL.createObjectURL){const e=new Blob([t],{type:n});return URL.createObjectURL(e)}let i=`data:${n};base64,`;for(let n=0,r=t.length;n<r;n+=3){const a=255&t[n],o=255&t[n+1],s=255&t[n+2];i+=e[a>>2]+e[(3&a)<<4|o>>4]+e[n+1<r?(15&o)<<2|s>>6:64]+e[n+2<r?63&s:64]}return i}}();t.createObjectURL=v},function(e,t,n){"use strict";n(4)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isNodeJS=void 0;const r="object"==typeof process&&process+""=="[object process]"&&!process.versions.nw&&!process.versions.electron;t.isNodeJS=r},function(module,exports,__w_pdfjs_require__){"use strict";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 _util=__w_pdfjs_require__(2),_display_utils=__w_pdfjs_require__(1),_font_loader=__w_pdfjs_require__(6),_api_compatibility=__w_pdfjs_require__(7),_canvas=__w_pdfjs_require__(8),_worker_options=__w_pdfjs_require__(10),_is_node=__w_pdfjs_require__(4),_message_handler=__w_pdfjs_require__(11),_metadata=__w_pdfjs_require__(12),_transport_stream=__w_pdfjs_require__(14),_webgl=__w_pdfjs_require__(15);const DEFAULT_RANGE_CHUNK_SIZE=65536,RENDERING_CANCELLED_TIMEOUT=100;let createPDFNetworkStream;function setPDFNetworkStreamFactory(e){createPDFNetworkStream=e}function getDocument(e){const t=new PDFDocumentLoadingTask;let n;if("string"==typeof e)n={url:e};else if((0,_util.isArrayBuffer)(e))n={data:e};else if(e instanceof PDFDataRangeTransport)n={range:e};else{if("object"!=typeof e)throw new Error("Invalid parameter in getDocument, need either Uint8Array, string or a parameter object");if(!e.url&&!e.data&&!e.range)throw new Error("Invalid parameter object: need either .data, .range or .url");n=e}const r=Object.create(null);let i=null,a=null;for(const e in n)if("url"!==e||"undefined"==typeof window)if("range"!==e)if("worker"!==e)if("data"!==e||n[e]instanceof Uint8Array)r[e]=n[e];else{const t=n[e];if("string"==typeof t)r[e]=(0,_util.stringToBytes)(t);else if("object"!=typeof t||null===t||isNaN(t.length)){if(!(0,_util.isArrayBuffer)(t))throw new Error("Invalid PDF binary data: either typed array, string or array-like object is expected in the data property.");r[e]=new Uint8Array(t)}else r[e]=new Uint8Array(t)}else a=n[e];else i=n[e];else r[e]=new URL(n[e],window.location).href;if(r.rangeChunkSize=r.rangeChunkSize||DEFAULT_RANGE_CHUNK_SIZE,r.CMapReaderFactory=r.CMapReaderFactory||_display_utils.DOMCMapReaderFactory,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),"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),!a){const e={verbosity:r.verbosity,port:_worker_options.GlobalWorkerOptions.workerPort};a=e.port?PDFWorker.fromPort(e):new PDFWorker(e),t._worker=a}const o=t.docId;return a.promise.then(function(){if(t.destroyed)throw new Error("Loading aborted");const e=_fetchDocument(a,r,i,o),n=new Promise(function(e){let t;i?t=new _transport_stream.PDFDataTransportStream({length:r.length,initialData:r.initialData,progressiveDone:r.progressiveDone,disableRange:r.disableRange,disableStream:r.disableStream},i):r.data||(t=createPDFNetworkStream({url:r.url,length:r.length,httpHeaders:r.httpHeaders,withCredentials:r.withCredentials,rangeChunkSize:r.rangeChunkSize,disableRange:r.disableRange,disableStream:r.disableStream})),e(t)});return Promise.all([e,n]).then(function([e,n]){if(t.destroyed)throw new Error("Loading aborted");const i=new _message_handler.MessageHandler(o,e,a.port);i.postMessageTransfers=a.postMessageTransfers;const s=new WorkerTransport(i,t,n,r);t._transport=s,i.send("Ready",null)})}).catch(t._capability.reject),t}function _fetchDocument(e,t,n,r){return e.destroyed?Promise.reject(new Error("Worker was destroyed")):(n&&(t.length=n.length,t.initialData=n.initialData,t.progressiveDone=n.progressiveDone),e.messageHandler.sendWithPromise("GetDocRequest",{docId:r,apiVersion:"2.5.207",source:{data:t.data,url:t.url,password:t.password,disableAutoFetch:t.disableAutoFetch,rangeChunkSize:t.rangeChunkSize,length:t.length},maxImageSize:t.maxImageSize,disableFontFace:t.disableFontFace,postMessageTransfers:e.postMessageTransfers,docBaseUrl:t.docBaseUrl,ignoreErrors:t.ignoreErrors,isEvalSupported:t.isEvalSupported,fontExtraProperties:t.fontExtraProperties}).then(function(t){if(e.destroyed)throw new Error("Worker was destroyed");return t}))}const PDFDocumentLoadingTask=function(){let e=0;return class{constructor(){this._capability=(0,_util.createPromiseCapability)(),this._transport=null,this._worker=null,this.docId="d"+e++,this.destroyed=!1,this.onPassword=null,this.onProgress=null,this.onUnsupportedFeature=null}get promise(){return this._capability.promise}destroy(){return this.destroyed=!0,(this._transport?this._transport.destroy():Promise.resolve()).then(()=>{this._transport=null,this._worker&&(this._worker.destroy(),this._worker=null)})}}}();class PDFDataRangeTransport{constructor(e,t,n=!1){this.length=e,this.initialData=t,this.progressiveDone=n,this._rangeListeners=[],this._progressListeners=[],this._progressiveReadListeners=[],this._progressiveDoneListeners=[],this._readyCapability=(0,_util.createPromiseCapability)()}addRangeListener(e){this._rangeListeners.push(e)}addProgressListener(e){this._progressListeners.push(e)}addProgressiveReadListener(e){this._progressiveReadListeners.push(e)}addProgressiveDoneListener(e){this._progressiveDoneListeners.push(e)}onDataRange(e,t){for(const n of this._rangeListeners)n(e,t)}onDataProgress(e,t){this._readyCapability.promise.then(()=>{for(const n of this._progressListeners)n(e,t)})}onDataProgressiveRead(e){this._readyCapability.promise.then(()=>{for(const t of this._progressiveReadListeners)t(e)})}onDataProgressiveDone(){this._readyCapability.promise.then(()=>{for(const e of this._progressiveDoneListeners)e()})}transportReady(){this._readyCapability.resolve()}requestDataRange(e,t){(0,_util.unreachable)("Abstract method PDFDataRangeTransport.requestDataRange")}abort(){}}exports.PDFDataRangeTransport=PDFDataRangeTransport;class PDFDocumentProxy{constructor(e,t){this._pdfInfo=e,this._transport=t}get numPages(){return this._pdfInfo.numPages}get fingerprint(){return this._pdfInfo.fingerprint}getPage(e){return this._transport.getPage(e)}getPageIndex(e){return this._transport.getPageIndex(e)}getDestinations(){return this._transport.getDestinations()}getDestination(e){return this._transport.getDestination(e)}getPageLabels(){return this._transport.getPageLabels()}getPageLayout(){return this._transport.getPageLayout()}getPageMode(){return this._transport.getPageMode()}getViewerPreferences(){return this._transport.getViewerPreferences()}getOpenAction(){return this._transport.getOpenAction()}getOpenActionDestination(){return(0,_display_utils.deprecated)("getOpenActionDestination, use getOpenAction instead."),this.getOpenAction().then(function(e){return e&&e.dest?e.dest:null})}getAttachments(){return this._transport.getAttachments()}getJavaScript(){return this._transport.getJavaScript()}getOutline(){return this._transport.getOutline()}getPermissions(){return this._transport.getPermissions()}getMetadata(){return this._transport.getMetadata()}getData(){return this._transport.getData()}getDownloadInfo(){return this._transport.downloadInfoCapability.promise}getStats(){return this._transport.getStats()}cleanup(){return this._transport.startCleanup()}destroy(){return this.loadingTask.destroy()}get loadingParams(){return this._transport.loadingParams}get loadingTask(){return this._transport.loadingTask}}exports.PDFDocumentProxy=PDFDocumentProxy;class PDFPageProxy{constructor(e,t,n,r=!1){this._pageIndex=e,this._pageInfo=t,this._transport=n,this._stats=r?new _display_utils.StatTimer:null,this._pdfBug=r,this.commonObjs=n.commonObjs,this.objs=new PDFObjects,this.cleanupAfterRender=!1,this.pendingCleanup=!1,this.intentStates=Object.create(null),this.destroyed=!1}get pageNumber(){return this._pageIndex+1}get rotate(){return this._pageInfo.rotate}get ref(){return this._pageInfo.ref}get userUnit(){return this._pageInfo.userUnit}get view(){return this._pageInfo.view}getViewport({scale:e,rotation:t=this.rotate,offsetX:n=0,offsetY:r=0,dontFlip:i=!1}={}){return new _display_utils.PageViewport({viewBox:this.view,scale:e,rotation:t,offsetX:n,offsetY:r,dontFlip:i})}getAnnotations({intent:e=null}={}){return this.annotationsPromise&&this.annotationsIntent===e||(this.annotationsPromise=this._transport.getAnnotations(this._pageIndex,e),this.annotationsIntent=e),this.annotationsPromise}render({canvasContext:e,viewport:t,intent:n="display",enableWebGL:r=!1,renderInteractiveForms:i=!1,transform:a=null,imageLayer:o=null,canvasFactory:s=null,background:l=null}){this._stats&&this._stats.time("Overall");const c="print"===n?"print":"display";this.pendingCleanup=!1,this.intentStates[c]||(this.intentStates[c]=Object.create(null));const u=this.intentStates[c];u.streamReaderCancelTimeout&&(clearTimeout(u.streamReaderCancelTimeout),u.streamReaderCancelTimeout=null);const h=s||new _display_utils.DOMCanvasFactory,d=new _webgl.WebGLContext({enable:r});u.displayReadyCapability||(u.displayReadyCapability=(0,_util.createPromiseCapability)(),u.operatorList={fnArray:[],argsArray:[],lastChunk:!1},this._stats&&this._stats.time("Page Request"),this._pumpOperatorList({pageIndex:this._pageIndex,intent:c,renderInteractiveForms:!0===i}));const f=e=>{const t=u.renderTasks.indexOf(p);t>=0&&u.renderTasks.splice(t,1),(this.cleanupAfterRender||"print"===c)&&(this.pendingCleanup=!0),this._tryCleanup(),e?(p.capability.reject(e),this._abortOperatorList({intentState:u,reason:e})):p.capability.resolve(),this._stats&&(this._stats.timeEnd("Rendering"),this._stats.timeEnd("Overall"))},p=new InternalRenderTask({callback:f,params:{canvasContext:e,viewport:t,transform:a,imageLayer:o,background:l},objs:this.objs,commonObjs:this.commonObjs,operatorList:u.operatorList,pageIndex:this._pageIndex,canvasFactory:h,webGLContext:d,useRequestAnimationFrame:"print"!==c,pdfBug:this._pdfBug});u.renderTasks||(u.renderTasks=[]),u.renderTasks.push(p);const A=p.task;return u.displayReadyCapability.promise.then(e=>{this.pendingCleanup?f():(this._stats&&this._stats.time("Rendering"),p.initializeGraphics(e),p.operatorListChanged())}).catch(f),A}getOperatorList(){this.intentStates.oplist||(this.intentStates.oplist=Object.create(null));const e=this.intentStates.oplist;let t;return e.opListReadCapability||((t={}).operatorListChanged=function(){if(e.operatorList.lastChunk){e.opListReadCapability.resolve(e.operatorList);const n=e.renderTasks.indexOf(t);n>=0&&e.renderTasks.splice(n,1)}},e.opListReadCapability=(0,_util.createPromiseCapability)(),e.renderTasks=[],e.renderTasks.push(t),e.operatorList={fnArray:[],argsArray:[],lastChunk:!1},this._stats&&this._stats.time("Page Request"),this._pumpOperatorList({pageIndex:this._pageIndex,intent:"oplist"})),e.opListReadCapability.promise}streamTextContent({normalizeWhitespace:e=!1,disableCombineTextItems:t=!1}={}){return this._transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this._pageIndex,normalizeWhitespace:!0===e,combineTextItems:!0!==t},{highWaterMark:100,size:e=>e.items.length})}getTextContent(e={}){const t=this.streamTextContent(e);return new Promise(function(e,n){const r=t.getReader(),i={items:[],styles:Object.create(null)};!function t(){r.read().then(function({value:n,done:r}){r?e(i):(Object.assign(i.styles,n.styles),i.items.push(...n.items),t())},n)}()})}_destroy(){this.destroyed=!0,this._transport.pageCache[this._pageIndex]=null;const e=[];return Object.keys(this.intentStates).forEach(t=>{const n=this.intentStates[t];this._abortOperatorList({intentState:n,reason:new Error("Page was destroyed."),force:!0}),"oplist"!==t&&n.renderTasks.forEach(function(t){const n=t.capability.promise.catch(function(){});e.push(n),t.cancel()})}),this.objs.clear(),this.annotationsPromise=null,this.pendingCleanup=!1,Promise.all(e)}cleanup(e=!1){return this.pendingCleanup=!0,this._tryCleanup(e)}_tryCleanup(e=!1){return!(!this.pendingCleanup||Object.keys(this.intentStates).some(e=>{const t=this.intentStates[e];return 0!==t.renderTasks.length||!t.operatorList.lastChunk}))&&(Object.keys(this.intentStates).forEach(e=>{delete this.intentStates[e]}),this.objs.clear(),this.annotationsPromise=null,e&&this._stats&&(this._stats=new _display_utils.StatTimer),this.pendingCleanup=!1,!0)}_startRenderPage(e,t){const n=this.intentStates[t];n&&(this._stats&&this._stats.timeEnd("Page Request"),n.displayReadyCapability&&n.displayReadyCapability.resolve(e))}_renderPageChunk(e,t){for(let n=0,r=e.length;n<r;n++)t.operatorList.fnArray.push(e.fnArray[n]),t.operatorList.argsArray.push(e.argsArray[n]);t.operatorList.lastChunk=e.lastChunk;for(let e=0;e<t.renderTasks.length;e++)t.renderTasks[e].operatorListChanged();e.lastChunk&&this._tryCleanup()}_pumpOperatorList(e){(0,_util.assert)(e.intent,'PDFPageProxy._pumpOperatorList: Expected "intent" argument.');const t=this._transport.messageHandler.sendWithStream("GetOperatorList",e).getReader(),n=this.intentStates[e.intent];n.streamReader=t;const r=()=>{t.read().then(({value:e,done:t})=>{t?n.streamReader=null:this._transport.destroyed||(this._renderPageChunk(e,n),r())},e=>{if(n.streamReader=null,!this._transport.destroyed){if(n.operatorList){n.operatorList.lastChunk=!0;for(let e=0;e<n.renderTasks.length;e++)n.renderTasks[e].operatorListChanged();this._tryCleanup()}if(n.displayReadyCapability)n.displayReadyCapability.reject(e);else{if(!n.opListReadCapability)throw e;n.opListReadCapability.reject(e)}}})};r()}_abortOperatorList({intentState:e,reason:t,force:n=!1}){if((0,_util.assert)(t instanceof Error||"object"==typeof t&&null!==t,'PDFPageProxy._abortOperatorList: Expected "reason" argument.'),e.streamReader){if(!n){if(0!==e.renderTasks.length)return;if(t instanceof _display_utils.RenderingCancelledException)return void(e.streamReaderCancelTimeout=setTimeout(()=>{this._abortOperatorList({intentState:e,reason:t,force:!0}),e.streamReaderCancelTimeout=null},RENDERING_CANCELLED_TIMEOUT))}e.streamReader.cancel(new _util.AbortException(t&&t.message)),e.streamReader=null,this._transport.destroyed||(Object.keys(this.intentStates).some(t=>this.intentStates[t]===e&&(delete this.intentStates[t],!0)),this.cleanup())}}get stats(){return this._stats}}exports.PDFPageProxy=PDFPageProxy;class LoopbackPort{constructor(e=!0){this._listeners=[],this._defer=e,this._deferred=Promise.resolve(void 0)}postMessage(e,t){if(!this._defer)return void this._listeners.forEach(t=>{t.call(this,{data:e})});const n=new WeakMap,r={data:function e(r){if("object"!=typeof r||null===r)return r;if(n.has(r))return n.get(r);let i,a;if((i=r.buffer)&&(0,_util.isArrayBuffer)(i))return a=t&&t.includes(i)?new r.constructor(i,r.byteOffset,r.byteLength):new r.constructor(r),n.set(r,a),a;a=Array.isArray(r)?[]:{},n.set(r,a);for(const t in r){let n,i=r;for(;!(n=Object.getOwnPropertyDescriptor(i,t));)i=Object.getPrototypeOf(i);if(void 0!==n.value)if("function"!=typeof n.value)a[t]=e(n.value);else if(r.hasOwnProperty&&r.hasOwnProperty(t))throw new Error(`LoopbackPort.postMessage - cannot clone: ${r[t]}`)}return a}(e)};this._deferred.then(()=>{this._listeners.forEach(e=>{e.call(this,r)})})}addEventListener(e,t){this._listeners.push(t)}removeEventListener(e,t){const n=this._listeners.indexOf(t);this._listeners.splice(n,1)}terminate(){this._listeners.length=0}}exports.LoopbackPort=LoopbackPort;const PDFWorker=function PDFWorkerClosure(){const pdfWorkerPorts=new WeakMap;let isWorkerDisabled=!1,fallbackWorkerSrc,nextFakeWorkerId=0,fakeWorkerCapability;if(_is_node.isNodeJS)isWorkerDisabled=!0,fallbackWorkerSrc="./pdf.worker.js";else if("object"==typeof document&&"currentScript"in document){const e=document.currentScript&&document.currentScript.src;e&&(fallbackWorkerSrc=e.replace(/(\.(?:min\.)?js)(\?.*)?$/i,".worker$1$2"))}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(){let e;try{e=globalThis.pdfjsWorker&&globalThis.pdfjsWorker.WorkerMessageHandler}catch(e){}return e||null}function setupFakeWorkerGlobal(){if(fakeWorkerCapability)return fakeWorkerCapability.promise;fakeWorkerCapability=(0,_util.createPromiseCapability)();const loader=async function(){const mainWorkerMessageHandler=getMainThreadWorkerMessageHandler();if(mainWorkerMessageHandler)return mainWorkerMessageHandler;if(_is_node.isNodeJS){const worker=eval("require")(getWorkerSrc());return worker.WorkerMessageHandler}return await(0,_display_utils.loadScript)(getWorkerSrc()),window.pdfjsWorker.WorkerMessageHandler};return loader().then(fakeWorkerCapability.resolve,fakeWorkerCapability.reject),fakeWorkerCapability.promise}function createCDNWrapper(e){const t="importScripts('"+e+"');";return URL.createObjectURL(new Blob([t]))}class PDFWorker{constructor({name:e=null,port:t=null,verbosity:n=(0,_util.getVerbosityLevel)()}={}){if(t&&pdfWorkerPorts.has(t))throw new Error("Cannot use more than one PDFWorker per port");if(this.name=e,this.destroyed=!1,this.postMessageTransfers=!0,this.verbosity=n,this._readyCapability=(0,_util.createPromiseCapability)(),this._port=null,this._webWorker=null,this._messageHandler=null,t)return pdfWorkerPorts.set(t,this),void this._initializeFromPort(t);this._initialize()}get promise(){return this._readyCapability.promise}get port(){return this._port}get messageHandler(){return this._messageHandler}_initializeFromPort(e){this._port=e,this._messageHandler=new _message_handler.MessageHandler("main","worker",e),this._messageHandler.on("ready",function(){}),this._readyCapability.resolve()}_initialize(){if("undefined"!=typeof Worker&&!isWorkerDisabled&&!getMainThreadWorkerMessageHandler()){let e=getWorkerSrc();try{(0,_util.isSameOrigin)(window.location.href,e)||(e=createCDNWrapper(new URL(e,window.location).href));const t=new Worker(e),n=new _message_handler.MessageHandler("main","worker",t),r=()=>{t.removeEventListener("error",i),n.destroy(),t.terminate(),this.destroyed?this._readyCapability.reject(new Error("Worker was destroyed")):this._setupFakeWorker()},i=()=>{this._webWorker||r()};t.addEventListener("error",i),n.on("test",e=>{t.removeEventListener("error",i),this.destroyed?r():e?(this._messageHandler=n,this._port=t,this._webWorker=t,e.supportTransfers||(this.postMessageTransfers=!1),this._readyCapability.resolve(),n.send("configure",{verbosity:this.verbosity})):(this._setupFakeWorker(),n.destroy(),t.terminate())}),n.on("ready",e=>{if(t.removeEventListener("error",i),this.destroyed)r();else try{a()}catch(e){this._setupFakeWorker()}});const a=()=>{const e=new Uint8Array([this.postMessageTransfers?255:0]);try{n.send("test",e,[e.buffer])}catch(t){(0,_util.warn)("Cannot use postMessage transfers."),e[0]=0,n.send("test",e)}};return void a()}catch(e){(0,_util.info)("The worker has been disabled.")}}this._setupFakeWorker()}_setupFakeWorker(){isWorkerDisabled||((0,_util.warn)("Setting up fake worker."),isWorkerDisabled=!0),setupFakeWorkerGlobal().then(e=>{if(this.destroyed)return void this._readyCapability.reject(new Error("Worker was destroyed"));const t=new LoopbackPort;this._port=t;const n="fake"+nextFakeWorkerId++,r=new _message_handler.MessageHandler(n+"_worker",n,t);e.setup(r,t);const i=new _message_handler.MessageHandler(n,n+"_worker",t);this._messageHandler=i,this._readyCapability.resolve(),i.send("configure",{verbosity:this.verbosity})}).catch(e=>{this._readyCapability.reject(new Error(`Setting up fake worker failed: "${e.message}".`))})}destroy(){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)}static fromPort(e){if(!e||!e.port)throw new Error("PDFWorker.fromPort - invalid method signature.");return pdfWorkerPorts.has(e.port)?pdfWorkerPorts.get(e.port):new PDFWorker(e)}static getWorkerSrc(){return getWorkerSrc()}}return PDFWorker}();exports.PDFWorker=PDFWorker;class WorkerTransport{constructor(e,t,n,r){this.messageHandler=e,this.loadingTask=t,this.commonObjs=new PDFObjects,this.fontLoader=new _font_loader.FontLoader({docId:t.docId,onUnsupportedFeature:this._onUnsupportedFeature.bind(this)}),this._params=r,this.CMapReaderFactory=new r.CMapReaderFactory({baseUrl:r.cMapUrl,isCompressed:r.cMapPacked}),this.destroyed=!1,this.destroyCapability=null,this._passwordCapability=null,this._networkStream=n,this._fullReader=null,this._lastProgress=null,this.pageCache=[],this.pagePromises=[],this.downloadInfoCapability=(0,_util.createPromiseCapability)(),this.setupMessageHandler()}destroy(){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"));const e=[];this.pageCache.forEach(function(t){t&&e.push(t._destroy())}),this.pageCache.length=0,this.pagePromises.length=0;const t=this.messageHandler.sendWithPromise("Terminate",null);return e.push(t),Promise.all(e).then(()=>{this.fontLoader.clear(),this._networkStream&&this._networkStream.cancelAllRequests(new _util.AbortException("Worker was terminated.")),this.messageHandler&&(this.messageHandler.destroy(),this.messageHandler=null),this.destroyCapability.resolve()},this.destroyCapability.reject),this.destroyCapability.promise}setupMessageHandler(){const{messageHandler:e,loadingTask:t}=this;e.on("GetReader",(e,t)=>{(0,_util.assert)(this._networkStream,"GetReader - no `IPDFStream` instance available."),this._fullReader=this._networkStream.getFullReader(),this._fullReader.onProgress=(e=>{this._lastProgress={loaded:e.loaded,total:e.total}}),t.onPull=(()=>{this._fullReader.read().then(function({value:e,done:n}){n?t.close():((0,_util.assert)((0,_util.isArrayBuffer)(e),"GetReader - expected an ArrayBuffer."),t.enqueue(new Uint8Array(e),1,[e]))}).catch(e=>{t.error(e)})}),t.onCancel=(e=>{this._fullReader.cancel(e)})}),e.on("ReaderHeadersReady",e=>{const n=(0,_util.createPromiseCapability)(),r=this._fullReader;return r.headersReady.then(()=>{r.isStreamingSupported&&r.isRangeSupported||(this._lastProgress&&t.onProgress&&t.onProgress(this._lastProgress),r.onProgress=(e=>{t.onProgress&&t.onProgress({loaded:e.loaded,total:e.total})})),n.resolve({isStreamingSupported:r.isStreamingSupported,isRangeSupported:r.isRangeSupported,contentLength:r.contentLength})},n.reject),n.promise}),e.on("GetRangeReader",(e,t)=>{(0,_util.assert)(this._networkStream,"GetRangeReader - no `IPDFStream` instance available.");const n=this._networkStream.getRangeReader(e.begin,e.end);n?(t.onPull=(()=>{n.read().then(function({value:e,done:n}){n?t.close():((0,_util.assert)((0,_util.isArrayBuffer)(e),"GetRangeReader - expected an ArrayBuffer."),t.enqueue(new Uint8Array(e),1,[e]))}).catch(e=>{t.error(e)})}),t.onCancel=(e=>{n.cancel(e)})):t.close()}),e.on("GetDoc",({pdfInfo:e})=>{this._numPages=e.numPages,t._capability.resolve(new PDFDocumentProxy(e,this))}),e.on("DocException",function(e){let n;switch(e.name){case"PasswordException":n=new _util.PasswordException(e.message,e.code);break;case"InvalidPDFException":n=new _util.InvalidPDFException(e.message);break;case"MissingPDFException":n=new _util.MissingPDFException(e.message);break;case"UnexpectedResponseException":n=new _util.UnexpectedResponseException(e.message,e.status);break;case"UnknownErrorException":n=new _util.UnknownErrorException(e.message,e.details)}t._capability.reject(n)}),e.on("PasswordRequest",e=>{if(this._passwordCapability=(0,_util.createPromiseCapability)(),t.onPassword){const n=e=>{this._passwordCapability.resolve({password:e})};try{t.onPassword(n,e.code)}catch(e){this._passwordCapability.reject(e)}}else this._passwordCapability.reject(new _util.PasswordException(e.message,e.code));return this._passwordCapability.promise}),e.on("DataLoaded",e=>{t.onProgress&&t.onProgress({loaded:e.length,total:e.length}),this.downloadInfoCapability.resolve(e)}),e.on("StartRenderPage",e=>{if(this.destroyed)return;this.pageCache[e.pageIndex]._startRenderPage(e.transparency,e.intent)}),e.on("commonobj",t=>{if(this.destroyed)return;const[n,r,i]=t;if(!this.commonObjs.has(n))switch(r){case"Font":const t=this._params;if("error"in i){const e=i.error;(0,_util.warn)(`Error during font loading: ${e}`),this.commonObjs.resolve(n,e);break}let a=null;t.pdfBug&&globalThis.FontInspector&&globalThis.FontInspector.enabled&&(a={registerFont(e,t){globalThis.FontInspector.fontAdded(e,t)}});const o=new _font_loader.FontFaceObject(i,{isEvalSupported:t.isEvalSupported,disableFontFace:t.disableFontFace,ignoreErrors:t.ignoreErrors,onUnsupportedFeature:this._onUnsupportedFeature.bind(this),fontRegistry:a});this.fontLoader.bind(o).catch(t=>e.sendWithPromise("FontFallback",{id:n})).finally(()=>{!t.fontExtraProperties&&o.data&&(o.data=null),this.commonObjs.resolve(n,o)});break;case"FontPath":case"FontType3Res":case"Image":this.commonObjs.resolve(n,i);break;default:throw new Error(`Got unknown common object type ${r}`)}}),e.on("obj",e=>{if(this.destroyed)return;const[t,n,r,i]=e,a=this.pageCache[n];if(!a.objs.has(t))switch(r){case"Image":a.objs.resolve(t,i);const e=8e6;i&&"data"in i&&i.data.length>e&&(a.cleanupAfterRender=!0);break;default:throw new Error(`Got unknown object type ${r}`)}}),e.on("DocProgress",e=>{this.destroyed||t.onProgress&&t.onProgress({loaded:e.loaded,total:e.total})}),e.on("UnsupportedFeature",this._onUnsupportedFeature.bind(this)),e.on("FetchBuiltInCMap",(e,t)=>{if(this.destroyed)return void t.error(new Error("Worker was destroyed"));let n=!1;t.onPull=(()=>{n?t.close():(n=!0,this.CMapReaderFactory.fetch(e).then(function(e){t.enqueue(e,1,[e.cMapData.buffer])}).catch(function(e){t.error(e)}))})})}_onUnsupportedFeature({featureId:e}){this.destroyed||this.loadingTask.onUnsupportedFeature&&this.loadingTask.onUnsupportedFeature(e)}getData(){return this.messageHandler.sendWithPromise("GetData",null)}getPage(e){if(!Number.isInteger(e)||e<=0||e>this._numPages)return Promise.reject(new Error("Invalid page request"));const t=e-1;if(t in this.pagePromises)return this.pagePromises[t];const n=this.messageHandler.sendWithPromise("GetPage",{pageIndex:t}).then(e=>{if(this.destroyed)throw new Error("Transport destroyed");const n=new PDFPageProxy(t,e,this,this._params.pdfBug);return this.pageCache[t]=n,n});return this.pagePromises[t]=n,n}getPageIndex(e){return this.messageHandler.sendWithPromise("GetPageIndex",{ref:e}).catch(function(e){return Promise.reject(new Error(e))})}getAnnotations(e,t){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:e,intent:t})}getDestinations(){return this.messageHandler.sendWithPromise("GetDestinations",null)}getDestination(e){return"string"!=typeof e?Promise.reject(new Error("Invalid destination request.")):this.messageHandler.sendWithPromise("GetDestination",{id:e})}getPageLabels(){return this.messageHandler.sendWithPromise("GetPageLabels",null)}getPageLayout(){return this.messageHandler.sendWithPromise("GetPageLayout",null)}getPageMode(){return this.messageHandler.sendWithPromise("GetPageMode",null)}getViewerPreferences(){return this.messageHandler.sendWithPromise("GetViewerPreferences",null)}getOpenAction(){return this.messageHandler.sendWithPromise("GetOpenAction",null)}getAttachments(){return this.messageHandler.sendWithPromise("GetAttachments",null)}getJavaScript(){return this.messageHandler.sendWithPromise("GetJavaScript",null)}getOutline(){return this.messageHandler.sendWithPromise("GetOutline",null)}getPermissions(){return this.messageHandler.sendWithPromise("GetPermissions",null)}getMetadata(){return this.messageHandler.sendWithPromise("GetMetadata",null).then(e=>({info:e[0],metadata:e[1]?new _metadata.Metadata(e[1]):null,contentDispositionFilename:this._fullReader?this._fullReader.filename:null}))}getStats(){return this.messageHandler.sendWithPromise("GetStats",null)}startCleanup(){return this.messageHandler.sendWithPromise("Cleanup",null).then(()=>{for(let e=0,t=this.pageCache.length;e<t;e++){const t=this.pageCache[e];if(t){if(!t.cleanup())throw new Error(`startCleanup: Page ${e+1} is currently rendering.`)}}this.commonObjs.clear(),this.fontLoader.clear()})}get loadingParams(){const e=this._params;return(0,_util.shadow)(this,"loadingParams",{disableAutoFetch:e.disableAutoFetch,disableFontFace:e.disableFontFace})}}class PDFObjects{constructor(){this._objs=Object.create(null)}_ensureObj(e){return this._objs[e]?this._objs[e]:this._objs[e]={capability:(0,_util.createPromiseCapability)(),data:null,resolved:!1}}get(e,t=null){if(t)return this._ensureObj(e).capability.promise.then(t),null;const n=this._objs[e];if(!n||!n.resolved)throw new Error(`Requesting object that isn't resolved yet ${e}.`);return n.data}has(e){const t=this._objs[e];return!!t&&t.resolved}resolve(e,t){const n=this._ensureObj(e);n.resolved=!0,n.data=t,n.capability.resolve(t)}clear(){this._objs=Object.create(null)}}class RenderTask{constructor(e){this._internalRenderTask=e,this.onContinue=null}get promise(){return this._internalRenderTask.capability.promise}cancel(){this._internalRenderTask.cancel()}}const InternalRenderTask=function(){const e=new WeakSet;return class{constructor({callback:e,params:t,objs:n,commonObjs:r,operatorList:i,pageIndex:a,canvasFactory:o,webGLContext:s,useRequestAnimationFrame:l=!1,pdfBug:c=!1}){this.callback=e,this.params=t,this.objs=n,this.commonObjs=r,this.operatorListIdx=null,this.operatorList=i,this._pageIndex=a,this.canvasFactory=o,this.webGLContext=s,this._pdfBug=c,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this._useRequestAnimationFrame=!0===l&&"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=t.canvasContext.canvas}initializeGraphics(t=!1){if(this.cancelled)return;if(this._canvas){if(e.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.");e.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());const{canvasContext:n,viewport:r,transform:i,imageLayer:a,background:o}=this.params;this.gfx=new _canvas.CanvasGraphics(n,this.commonObjs,this.objs,this.canvasFactory,this.webGLContext,a),this.gfx.beginDrawing({transform:i,viewport:r,transparency:t,background:o}),this.operatorListIdx=0,this.graphicsReady=!0,this.graphicsReadyCallback&&this.graphicsReadyCallback()}cancel(t=null){this.running=!1,this.cancelled=!0,this.gfx&&this.gfx.endDrawing(),this._canvas&&e.delete(this._canvas),this.callback(t||new _display_utils.RenderingCancelledException(`Rendering cancelled, page ${this._pageIndex+1}`,"canvas"))}operatorListChanged(){this.graphicsReady?(this.stepper&&this.stepper.updateOperatorList(this.operatorList),this.running||this._continue()):this.graphicsReadyCallback||(this.graphicsReadyCallback=this._continueBound)}_continue(){this.running=!0,this.cancelled||(this.task.onContinue?this.task.onContinue(this._scheduleNextBound):this._scheduleNext())}_scheduleNext(){this._useRequestAnimationFrame?window.requestAnimationFrame(()=>{this._nextBound().catch(this.cancel.bind(this))}):Promise.resolve().then(this._nextBound).catch(this.cancel.bind(this))}async _next(){this.cancelled||(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&&e.delete(this._canvas),this.callback())))}}}(),version="2.5.207";exports.version=version;const build="0974d605";exports.build=build},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FontLoader=t.FontFaceObject=void 0;var r=n(2);class i{constructor({docId:e,onUnsupportedFeature:t}){this.constructor===i&&(0,r.unreachable)("Cannot initialize BaseFontLoader."),this.docId=e,this._onUnsupportedFeature=t,this.nativeFontFaces=[],this.styleElement=null}addNativeFontFace(e){this.nativeFontFaces.push(e),document.fonts.add(e)}insertRule(e){let t=this.styleElement;t||((t=this.styleElement=document.createElement("style")).id=`PDFJS_FONT_STYLE_TAG_${this.docId}`,document.documentElement.getElementsByTagName("head")[0].appendChild(t));const n=t.sheet;n.insertRule(e,n.cssRules.length)}clear(){this.nativeFontFaces.forEach(function(e){document.fonts.delete(e)}),this.nativeFontFaces.length=0,this.styleElement&&(this.styleElement.remove(),this.styleElement=null)}async bind(e){if(e.attached||e.missingFile)return;if(e.attached=!0,this.isFontLoadingAPISupported){const t=e.createNativeFontFace();if(t){this.addNativeFontFace(t);try{await t.loaded}catch(n){throw this._onUnsupportedFeature({featureId:r.UNSUPPORTED_FEATURES.errorFontLoadNative}),(0,r.warn)(`Failed to load font '${t.family}': '${n}'.`),e.disableFontFace=!0,n}}return}const t=e.createFontFaceRule();if(t){if(this.insertRule(t),this.isSyncFontLoadingSupported)return;await new Promise(n=>{const r=this._queueLoadingCallback(n);this._prepareFontLoadEvent([t],[e],r)})}}_queueLoadingCallback(e){(0,r.unreachable)("Abstract method `_queueLoadingCallback`.")}get isFontLoadingAPISupported(){const e="undefined"!=typeof document&&!!document.fonts;return(0,r.shadow)(this,"isFontLoadingAPISupported",e)}get isSyncFontLoadingSupported(){(0,r.unreachable)("Abstract method `isSyncFontLoadingSupported`.")}get _loadTestFont(){(0,r.unreachable)("Abstract method `_loadTestFont`.")}_prepareFontLoadEvent(e,t,n){(0,r.unreachable)("Abstract method `_prepareFontLoadEvent`.")}}let a;t.FontLoader=a,t.FontLoader=a=class extends i{constructor(e){super(e),this.loadingContext={requests:[],nextRequestId:0},this.loadTestFontId=0}get isSyncFontLoadingSupported(){let e=!1;if("undefined"==typeof navigator)e=!0;else{const t=/Mozilla\/5.0.*?rv:(\d+).*? Gecko/.exec(navigator.userAgent);t&&t[1]>=14&&(e=!0)}return(0,r.shadow)(this,"isSyncFontLoadingSupported",e)}_queueLoadingCallback(e){const t=this.loadingContext,n={id:`pdfjs-font-loading-${t.nextRequestId++}`,done:!1,complete:function(){for((0,r.assert)(!n.done,"completeRequest() cannot be called twice."),n.done=!0;t.requests.length>0&&t.requests[0].done;){const e=t.requests.shift();setTimeout(e.callback,0)}},callback:e};return t.requests.push(n),n}get _loadTestFont(){return(0,r.shadow)(this,"_loadTestFont",atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA=="))}_prepareFontLoadEvent(e,t,n){function i(e,t){return e.charCodeAt(t)<<24|e.charCodeAt(t+1)<<16|e.charCodeAt(t+2)<<8|255&e.charCodeAt(t+3)}function a(e,t,n,r){return e.substring(0,t)+r+e.substring(t+n)}let o,s;const l=document.createElement("canvas");l.width=1,l.height=1;const c=l.getContext("2d");let u=0;const h=`lt${Date.now()}${this.loadTestFontId++}`;let d=this._loadTestFont;let f=i(d=a(d,976,h.length,h),16);for(o=0,s=h.length-3;o<s;o+=4)f=f-1482184792+i(h,o)|0;o<h.length&&(f=f-1482184792+i(h+"XXX",o)|0),d=a(d,16,4,(0,r.string32)(f));const p=`@font-face {font-family:"${h}";src:${`url(data:font/opentype;base64,${btoa(d)});`}}`;this.insertRule(p);const A=[];for(o=0,s=t.length;o<s;o++)A.push(t[o].loadedName);A.push(h);const g=document.createElement("div");for(g.style.visibility="hidden",g.style.width=g.style.height="10px",g.style.position="absolute",g.style.top=g.style.left="0px",o=0,s=A.length;o<s;++o){const e=document.createElement("span");e.textContent="Hi",e.style.fontFamily=A[o],g.appendChild(e)}document.body.appendChild(g),function e(t,n){if(++u>30)return(0,r.warn)("Load test font never loaded."),void n();c.font="30px "+t,c.fillText(".",0,20),c.getImageData(0,0,1,1).data[3]>0?n():setTimeout(e.bind(null,t,n))}(h,function(){document.body.removeChild(g),n.complete()})}};t.FontFaceObject=class{constructor(e,{isEvalSupported:t=!0,disableFontFace:n=!1,ignoreErrors:r=!1,onUnsupportedFeature:i=null,fontRegistry:a=null}){this.compiledGlyphs=Object.create(null);for(const t in e)this[t]=e[t];this.isEvalSupported=!1!==t,this.disableFontFace=!0===n,this.ignoreErrors=!0===r,this._onUnsupportedFeature=i,this.fontRegistry=a}createNativeFontFace(){if(!this.data||this.disableFontFace)return null;const e=new FontFace(this.loadedName,this.data,{});return this.fontRegistry&&this.fontRegistry.registerFont(this),e}createFontFaceRule(){if(!this.data||this.disableFontFace)return null;const e=(0,r.bytesToString)(new Uint8Array(this.data)),t=`url(data:${this.mimetype};base64,${btoa(e)});`,n=`@font-face {font-family:"${this.loadedName}";src:${t}}`;return this.fontRegistry&&this.fontRegistry.registerFont(this,t),n}getPathGenerator(e,t){if(void 0!==this.compiledGlyphs[t])return this.compiledGlyphs[t];let n,i;try{n=e.get(this.loadedName+"_path_"+t)}catch(e){if(!this.ignoreErrors)throw e;return this._onUnsupportedFeature&&this._onUnsupportedFeature({featureId:r.UNSUPPORTED_FEATURES.errorFontGetPath}),(0,r.warn)(`getPathGenerator - ignoring character: "${e}".`),this.compiledGlyphs[t]=function(e,t){}}if(this.isEvalSupported&&r.IsEvalSupportedCached.value){let e,r="";for(let t=0,a=n.length;t<a;t++)e=void 0!==(i=n[t]).args?i.args.join(","):"",r+="c."+i.cmd+"("+e+");\n";return this.compiledGlyphs[t]=new Function("c","size",r)}return this.compiledGlyphs[t]=function(e,t){for(let r=0,a=n.length;r<a;r++)"scale"===(i=n[r]).cmd&&(i.args=[t,-t]),e[i.cmd].apply(e,i.args)}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.apiCompatibilityParams=void 0;var r=n(4);const i=Object.create(null);r.isNodeJS&&(i.disableFontFace=!0);const a=Object.freeze(i);t.apiCompatibilityParams=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CanvasGraphics=void 0;var r=n(2),i=n(9),a=16;function o(e){e.mozCurrentTransform||(e._originalSave=e.save,e._originalRestore=e.restore,e._originalRotate=e.rotate,e._originalScale=e.scale,e._originalTranslate=e.translate,e._originalTransform=e.transform,e._originalSetTransform=e.setTransform,e._transformMatrix=e._transformMatrix||[1,0,0,1,0,0],e._transformStack=[],Object.defineProperty(e,"mozCurrentTransform",{get:function(){return this._transformMatrix}}),Object.defineProperty(e,"mozCurrentTransformInverse",{get:function(){var e=this._transformMatrix,t=e[0],n=e[1],r=e[2],i=e[3],a=e[4],o=e[5],s=t*i-n*r,l=n*r-t*i;return[i/s,n/l,r/l,t/s,(i*a-r*o)/l,(n*a-t*o)/s]}}),e.save=function(){var e=this._transformMatrix;this._transformStack.push(e),this._transformMatrix=e.slice(0,6),this._originalSave()},e.restore=function(){var e=this._transformStack.pop();e&&(this._transformMatrix=e,this._originalRestore())},e.translate=function(e,t){var n=this._transformMatrix;n[4]=n[0]*e+n[2]*t+n[4],n[5]=n[1]*e+n[3]*t+n[5],this._originalTranslate(e,t)},e.scale=function(e,t){var n=this._transformMatrix;n[0]=n[0]*e,n[1]=n[1]*e,n[2]=n[2]*t,n[3]=n[3]*t,this._originalScale(e,t)},e.transform=function(t,n,r,i,a,o){var s=this._transformMatrix;this._transformMatrix=[s[0]*t+s[2]*n,s[1]*t+s[3]*n,s[0]*r+s[2]*i,s[1]*r+s[3]*i,s[0]*a+s[2]*o+s[4],s[1]*a+s[3]*o+s[5]],e._originalTransform(t,n,r,i,a,o)},e.setTransform=function(t,n,r,i,a,o){this._transformMatrix=[t,n,r,i,a,o],e._originalSetTransform(t,n,r,i,a,o)},e.rotate=function(e){var t=Math.cos(e),n=Math.sin(e),r=this._transformMatrix;this._transformMatrix=[r[0]*t+r[2]*n,r[1]*t+r[3]*n,r[0]*-n+r[2]*t,r[1]*-n+r[3]*t,r[4],r[5]],this._originalRotate(e)})}var s=function(){function e(e){this.canvasFactory=e,this.cache=Object.create(null)}return e.prototype={getCanvas:function(e,t,n,r){var i;return void 0!==this.cache[e]?(i=this.cache[e],this.canvasFactory.reset(i,t,n),i.context.setTransform(1,0,0,1,0,0)):(i=this.canvasFactory.create(t,n),this.cache[e]=i),r&&o(i.context),i},clear(){for(var e in this.cache){var t=this.cache[e];this.canvasFactory.destroy(t),delete this.cache[e]}}},e}();var l=function(){function e(){this.alphaIsShape=!1,this.fontSize=0,this.fontSizeScale=1,this.textMatrix=r.IDENTITY_MATRIX,this.textMatrixScale=1,this.fontMatrix=r.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=r.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}return e.prototype={clone:function(){return Object.create(this)},setCurrentPoint:function(e,t){this.x=e,this.y=t}},e}(),c=function(){function e(e,t,n,r,i,a){this.ctx=e,this.current=new l,this.stateStack=[],this.pendingClip=null,this.pendingEOFill=!1,this.res=null,this.xobjs=null,this.commonObjs=t,this.objs=n,this.canvasFactory=r,this.webGLContext=i,this.imageLayer=a,this.groupStack=[],this.processingType3=null,this.baseTransform=null,this.baseTransformStack=[],this.groupLevel=0,this.smaskStack=[],this.smaskCounter=0,this.tempSMask=null,this.cachedCanvases=new s(this.canvasFactory),e&&o(e),this._cachedGetSinglePixelWidth=null}function t(e,t){if("undefined"!=typeof ImageData&&t instanceof ImageData)e.putImageData(t,0,0);else{var n,i,o,s,l,c=t.height,u=t.width,h=c%a,d=(c-h)/a,f=0===h?d:d+1,p=e.createImageData(u,a),A=0,g=t.data,m=p.data;if(t.kind===r.ImageKind.GRAYSCALE_1BPP){var v=g.byteLength,y=new Uint32Array(m.buffer,0,m.byteLength>>2),b=y.length,w=u+7>>3,x=4294967295,_=r.IsLittleEndianCached.value?4278190080:255;for(i=0;i<f;i++){for(s=i<d?a:h,n=0,o=0;o<s;o++){for(var C=v-A,S=0,k=C>w?u:8*C-7,B=-8&k,E=0,T=0;S<B;S+=8)T=g[A++],y[n++]=128&T?x:_,y[n++]=64&T?x:_,y[n++]=32&T?x:_,y[n++]=16&T?x:_,y[n++]=8&T?x:_,y[n++]=4&T?x:_,y[n++]=2&T?x:_,y[n++]=1&T?x:_;for(;S<k;S++)0===E&&(T=g[A++],E=128),y[n++]=T&E?x:_,E>>=1}for(;n<b;)y[n++]=0;e.putImageData(p,0,i*a)}}else if(t.kind===r.ImageKind.RGBA_32BPP){for(o=0,l=u*a*4,i=0;i<d;i++)m.set(g.subarray(A,A+l)),A+=l,e.putImageData(p,0,o),o+=a;i<f&&(l=u*h*4,m.set(g.subarray(A,A+l)),e.putImageData(p,0,o))}else{if(t.kind!==r.ImageKind.RGB_24BPP)throw new Error(`bad image kind: ${t.kind}`);for(l=u*(s=a),i=0;i<f;i++){for(i>=d&&(l=u*(s=h)),n=0,o=l;o--;)m[n++]=g[A++],m[n++]=g[A++],m[n++]=g[A++],m[n++]=255;e.putImageData(p,0,i*a)}}}}function n(e,t){for(var n=t.height,r=t.width,i=n%a,o=(n-i)/a,s=0===i?o:o+1,l=e.createImageData(r,a),c=0,u=t.data,h=l.data,d=0;d<s;d++){for(var f=d<o?a:i,p=3,A=0;A<f;A++)for(var g=0,m=0;m<r;m++){if(!g){var v=u[c++];g=128}h[p]=v&g?0:255,p+=4,g>>=1}e.putImageData(l,0,d*a)}}function c(e,t){for(var n=["strokeStyle","fillStyle","fillRule","globalAlpha","lineWidth","lineCap","lineJoin","miterLimit","globalCompositeOperation","font"],r=0,i=n.length;r<i;r++){var a=n[r];void 0!==e[a]&&(t[a]=e[a])}void 0!==e.setLineDash&&(t.setLineDash(e.getLineDash()),t.lineDashOffset=e.lineDashOffset)}function u(e){e.strokeStyle="#000000",e.fillStyle="#000000",e.fillRule="nonzero",e.globalAlpha=1,e.lineWidth=1,e.lineCap="butt",e.lineJoin="miter",e.miterLimit=10,e.globalCompositeOperation="source-over",e.font="10px sans-serif",void 0!==e.setLineDash&&(e.setLineDash([]),e.lineDashOffset=0)}function h(e,t,n,r){for(var i=e.length,a=3;a<i;a+=4){var o=e[a];if(0===o)e[a-3]=t,e[a-2]=n,e[a-1]=r;else if(o<255){var s=255-o;e[a-3]=e[a-3]*o+t*s>>8,e[a-2]=e[a-2]*o+n*s>>8,e[a-1]=e[a-1]*o+r*s>>8}}}function d(e,t,n){for(var r=e.length,i=3;i<r;i+=4){var a=n?n[e[i]]:e[i];t[i]=t[i]*a*(1/255)|0}}function f(e,t,n){for(var r=e.length,i=3;i<r;i+=4){var a=77*e[i-3]+152*e[i-2]+28*e[i-1];t[i]=n?t[i]*n[a>>8]>>8:t[i]*a>>16}}function p(e,t,n,r){var i=t.canvas,a=t.context;e.setTransform(t.scaleX,0,0,t.scaleY,t.offsetX,t.offsetY);var o=t.backdrop||null;if(!t.transferMap&&r.isEnabled){const a=r.composeSMask({layer:n.canvas,mask:i,properties:{subtype:t.subtype,backdrop:o}});return e.setTransform(1,0,0,1,0,0),void e.drawImage(a,t.offsetX,t.offsetY)}!function(e,t,n,r,i,a,o){var s,l=!!a,c=l?a[0]:0,u=l?a[1]:0,p=l?a[2]:0;s="Luminosity"===i?f:d;for(var A=Math.min(r,Math.ceil(1048576/n)),g=0;g<r;g+=A){var m=Math.min(A,r-g),v=e.getImageData(0,g,n,m),y=t.getImageData(0,g,n,m);l&&h(v.data,c,u,p),s(v.data,y.data,o),e.putImageData(y,0,g)}}(a,n,i.width,i.height,t.subtype,o,t.transferMap),e.drawImage(i,0,0)}var A=["butt","round","square"],g=["miter","round","bevel"],m={},v={};for(var y in e.prototype={beginDrawing({transform:e,viewport:t,transparency:n=!1,background:r=null}){var i=this.ctx.canvas.width,a=this.ctx.canvas.height;if(this.ctx.save(),this.ctx.fillStyle=r||"rgb(255, 255, 255)",this.ctx.fillRect(0,0,i,a),this.ctx.restore(),n){var o=this.cachedCanvases.getCanvas("transparent",i,a,!0);this.compositeCtx=this.ctx,this.transparentCanvas=o.canvas,this.ctx=o.context,this.ctx.save(),this.ctx.transform.apply(this.ctx,this.compositeCtx.mozCurrentTransform)}this.ctx.save(),u(this.ctx),e&&this.ctx.transform.apply(this.ctx,e),this.ctx.transform.apply(this.ctx,t.transform),this.baseTransform=this.ctx.mozCurrentTransform.slice(),this.imageLayer&&this.imageLayer.beginLayout()},executeOperatorList:function(e,t,n,i){var a=e.argsArray,o=e.fnArray,s=t||0,l=a.length;if(l===s)return s;for(var c,u=l-s>10&&"function"==typeof n,h=u?Date.now()+15:0,d=0,f=this.commonObjs,p=this.objs;;){if(void 0!==i&&s===i.nextBreakPoint)return i.breakIt(s,n),s;if((c=o[s])!==r.OPS.dependency)this[c].apply(this,a[s]);else for(const e of a[s]){const t=e.startsWith("g_")?f:p;if(!t.has(e))return t.get(e,n),s}if(++s===l)return s;if(u&&++d>10){if(Date.now()>h)return n(),s;d=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(e){this.current.lineWidth=e,this.ctx.lineWidth=e},setLineCap:function(e){this.ctx.lineCap=A[e]},setLineJoin:function(e){this.ctx.lineJoin=g[e]},setMiterLimit:function(e){this.ctx.miterLimit=e},setDash:function(e,t){var n=this.ctx;void 0!==n.setLineDash&&(n.setLineDash(e),n.lineDashOffset=t)},setRenderingIntent(e){},setFlatness(e){},setGState:function(e){for(var t=0,n=e.length;t<n;t++){var r=e[t],i=r[0],a=r[1];switch(i){case"LW":this.setLineWidth(a);break;case"LC":this.setLineCap(a);break;case"LJ":this.setLineJoin(a);break;case"ML":this.setMiterLimit(a);break;case"D":this.setDash(a[0],a[1]);break;case"RI":this.setRenderingIntent(a);break;case"FL":this.setFlatness(a);break;case"Font":this.setFont(a[0],a[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=a;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=a?this.tempSMask:null,this.current.activeSMask&&this.beginSMaskGroup(),this.tempSMask=null}}},beginSMaskGroup:function(){var e=this.current.activeSMask,t=e.canvas.width,n=e.canvas.height,r="smaskGroupAt"+this.groupLevel,i=this.cachedCanvases.getCanvas(r,t,n,!0),a=this.ctx,o=a.mozCurrentTransform;this.ctx.save();var s=i.context;s.scale(1/e.scaleX,1/e.scaleY),s.translate(-e.offsetX,-e.offsetY),s.transform.apply(s,o),e.startTransformInverse=s.mozCurrentTransformInverse,c(a,s),this.ctx=s,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(a),this.groupLevel++},suspendSMaskGroup:function(){var e=this.ctx;this.groupLevel--,this.ctx=this.groupStack.pop(),p(this.ctx,this.current.activeSMask,e,this.webGLContext),this.ctx.restore(),this.ctx.save(),c(e,this.ctx),this.current.resumeSMaskCtx=e;var t=r.Util.transform(this.current.activeSMask.startTransformInverse,e.mozCurrentTransform);this.ctx.transform.apply(this.ctx,t),e.save(),e.setTransform(1,0,0,1,0,0),e.clearRect(0,0,e.canvas.width,e.canvas.height),e.restore()},resumeSMaskGroup:function(){var e=this.current.resumeSMaskCtx,t=this.ctx;this.ctx=e,this.groupStack.push(t),this.groupLevel++},endSMaskGroup:function(){var e=this.ctx;this.groupLevel--,this.ctx=this.groupStack.pop(),p(this.ctx,this.current.activeSMask,e,this.webGLContext),this.ctx.restore(),c(e,this.ctx);var t=r.Util.transform(this.current.activeSMask.startTransformInverse,e.mozCurrentTransform);this.ctx.transform.apply(this.ctx,t)},save:function(){this.ctx.save();var e=this.current;this.stateStack.push(e),this.current=e.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(e,t,n,r,i,a){this.ctx.transform(e,t,n,r,i,a),this._cachedGetSinglePixelWidth=null},constructPath:function(e,t){for(var n=this.ctx,i=this.current,a=i.x,o=i.y,s=0,l=0,c=e.length;s<c;s++)switch(0|e[s]){case r.OPS.rectangle:a=t[l++],o=t[l++];var u=t[l++],h=t[l++];0===u&&(u=this.getSinglePixelWidth()),0===h&&(h=this.getSinglePixelWidth());var d=a+u,f=o+h;this.ctx.moveTo(a,o),this.ctx.lineTo(d,o),this.ctx.lineTo(d,f),this.ctx.lineTo(a,f),this.ctx.lineTo(a,o),this.ctx.closePath();break;case r.OPS.moveTo:a=t[l++],o=t[l++],n.moveTo(a,o);break;case r.OPS.lineTo:a=t[l++],o=t[l++],n.lineTo(a,o);break;case r.OPS.curveTo:a=t[l+4],o=t[l+5],n.bezierCurveTo(t[l],t[l+1],t[l+2],t[l+3],a,o),l+=6;break;case r.OPS.curveTo2:n.bezierCurveTo(a,o,t[l],t[l+1],t[l+2],t[l+3]),a=t[l+2],o=t[l+3],l+=4;break;case r.OPS.curveTo3:a=t[l+2],o=t[l+3],n.bezierCurveTo(t[l],t[l+1],a,o,a,o),l+=4;break;case r.OPS.closePath:n.closePath()}i.setCurrentPoint(a,o)},closePath:function(){this.ctx.closePath()},stroke:function(e){e=void 0===e||e;var t=this.ctx,n=this.current.strokeColor;if(t.globalAlpha=this.current.strokeAlpha,n&&n.hasOwnProperty("type")&&"Pattern"===n.type){t.save();const e=t.mozCurrentTransform,i=r.Util.singularValueDecompose2dScale(e)[0];t.strokeStyle=n.getPattern(t,this),t.lineWidth=Math.max(.65*this.getSinglePixelWidth(),this.current.lineWidth*i),t.stroke(),t.restore()}else t.lineWidth=Math.max(.65*this.getSinglePixelWidth(),this.current.lineWidth),t.stroke();e&&this.consumePath(),t.globalAlpha=this.current.fillAlpha},closeStroke:function(){this.closePath(),this.stroke()},fill:function(e){e=void 0===e||e;var t=this.ctx,n=this.current.fillColor,r=!1;this.current.patternFill&&(t.save(),this.baseTransform&&t.setTransform.apply(t,this.baseTransform),t.fillStyle=n.getPattern(t,this),r=!0),this.pendingEOFill?(t.fill("evenodd"),this.pendingEOFill=!1):t.fill(),r&&t.restore(),e&&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=m},eoClip:function(){this.pendingClip=v},beginText:function(){this.current.textMatrix=r.IDENTITY_MATRIX,this.current.textMatrixScale=1,this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0},endText:function(){var e=this.pendingTextPaths,t=this.ctx;if(void 0!==e){t.save(),t.beginPath();for(var n=0;n<e.length;n++){var r=e[n];t.setTransform.apply(t,r.transform),t.translate(r.x,r.y),r.addToPath(t,r.fontSize)}t.restore(),t.clip(),t.beginPath(),delete this.pendingTextPaths}else t.beginPath()},setCharSpacing:function(e){this.current.charSpacing=e},setWordSpacing:function(e){this.current.wordSpacing=e},setHScale:function(e){this.current.textHScale=e/100},setLeading:function(e){this.current.leading=-e},setFont:function(e,t){var n=this.commonObjs.get(e),i=this.current;if(!n)throw new Error(`Can't find font for ${e}`);if(i.fontMatrix=n.fontMatrix?n.fontMatrix:r.FONT_IDENTITY_MATRIX,0!==i.fontMatrix[0]&&0!==i.fontMatrix[3]||(0,r.warn)("Invalid font matrix for font "+e),t<0?(t=-t,i.fontDirection=-1):i.fontDirection=1,this.current.font=n,this.current.fontSize=t,n.isType3Font)return;var a=n.loadedName||"sans-serif";let o="normal";n.black?o="900":n.bold&&(o="bold");var s=n.italic?"italic":"normal",l=`"${a}", ${n.fallbackName}`;let c=t;t<16?c=16:t>100&&(c=100),this.current.fontSizeScale=t/c,this.ctx.font=`${s} ${o} ${c}px ${l}`},setTextRenderingMode:function(e){this.current.textRenderingMode=e},setTextRise:function(e){this.current.textRise=e},moveText:function(e,t){this.current.x=this.current.lineX+=e,this.current.y=this.current.lineY+=t},setLeadingMoveText:function(e,t){this.setLeading(-t),this.moveText(e,t)},setTextMatrix:function(e,t,n,r,i,a){this.current.textMatrix=[e,t,n,r,i,a],this.current.textMatrixScale=Math.sqrt(e*e+t*t),this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0},nextLine:function(){this.moveText(0,this.current.leading)},paintChar(e,t,n,i){var a=this.ctx,o=this.current,s=o.font,l=o.textRenderingMode,c=o.fontSize/o.fontSizeScale,u=l&r.TextRenderingMode.FILL_STROKE_MASK,h=!!(l&r.TextRenderingMode.ADD_TO_PATH_FLAG);const d=o.patternFill&&!s.missingFile;var f;((s.disableFontFace||h||d)&&(f=s.getPathGenerator(this.commonObjs,e)),s.disableFontFace||d?(a.save(),a.translate(t,n),a.beginPath(),f(a,c),i&&a.setTransform.apply(a,i),u!==r.TextRenderingMode.FILL&&u!==r.TextRenderingMode.FILL_STROKE||a.fill(),u!==r.TextRenderingMode.STROKE&&u!==r.TextRenderingMode.FILL_STROKE||a.stroke(),a.restore()):(u!==r.TextRenderingMode.FILL&&u!==r.TextRenderingMode.FILL_STROKE||a.fillText(e,t,n),u!==r.TextRenderingMode.STROKE&&u!==r.TextRenderingMode.FILL_STROKE||a.strokeText(e,t,n)),h)&&(this.pendingTextPaths||(this.pendingTextPaths=[])).push({transform:a.mozCurrentTransform,x:t,y:n,fontSize:c,addToPath:f})},get isFontSubpixelAAEnabled(){const{context:e}=this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled",10,10);e.scale(1.5,1),e.fillText("I",0,10);for(var t=e.getImageData(0,0,10,10).data,n=!1,i=3;i<t.length;i+=4)if(t[i]>0&&t[i]<255){n=!0;break}return(0,r.shadow)(this,"isFontSubpixelAAEnabled",n)},showText:function(e){var t=this.current,n=t.font;if(n.isType3Font)return this.showType3Text(e);var i=t.fontSize;if(0===i)return;var a=this.ctx,o=t.fontSizeScale,s=t.charSpacing,l=t.wordSpacing,c=t.fontDirection,u=t.textHScale*c,h=e.length,d=n.vertical,f=d?1:-1,p=n.defaultVMetrics,A=i*t.fontMatrix[0],g=t.textRenderingMode===r.TextRenderingMode.FILL&&!n.disableFontFace&&!t.patternFill;let m;if(a.save(),t.patternFill){a.save();const e=t.fillColor.getPattern(a,this);m=a.mozCurrentTransform,a.restore(),a.fillStyle=e}a.transform.apply(a,t.textMatrix),a.translate(t.x,t.y+t.textRise),c>0?a.scale(u,-1):a.scale(u,1);var v=t.lineWidth,y=t.textMatrixScale;if(0===y||0===v){var b=t.textRenderingMode&r.TextRenderingMode.FILL_STROKE_MASK;b!==r.TextRenderingMode.STROKE&&b!==r.TextRenderingMode.FILL_STROKE||(this._cachedGetSinglePixelWidth=null,v=.65*this.getSinglePixelWidth())}else v/=y;1!==o&&(a.scale(o,o),v/=o),a.lineWidth=v;var w,x=0;for(w=0;w<h;++w){var _=e[w];if((0,r.isNum)(_))x+=f*_*i/1e3;else{var C,S,k,B,E,T,I,M=!1,F=(_.isSpace?l:0)+s,D=_.fontChar,P=_.accent,O=_.width;if(d)E=_.vmetric||p,T=-(T=_.vmetric?E[1]:.5*O)*A,I=E[2]*A,O=E?-E[0]:O,C=T/o,S=(x+I)/o;else C=x/o,S=0;if(n.remeasure&&O>0){var L=1e3*a.measureText(D).width/i*o;if(O<L&&this.isFontSubpixelAAEnabled){var R=O/L;M=!0,a.save(),a.scale(R,1),C/=R}else O!==L&&(C+=(O-L)/2e3*i/o)}(_.isInFont||n.missingFile)&&(g&&!P?a.fillText(D,C,S):(this.paintChar(D,C,S,m),P&&(k=C+P.offset.x/o,B=S-P.offset.y/o,this.paintChar(P.fontChar,k,B,m)))),x+=d?O*A-F*c:O*A+F*c,M&&a.restore()}}d?t.y-=x:t.x+=x*u,a.restore()},showType3Text:function(e){var t,n,i,a,o=this.ctx,s=this.current,l=s.font,c=s.fontSize,u=s.fontDirection,h=l.vertical?1:-1,d=s.charSpacing,f=s.wordSpacing,p=s.textHScale*u,A=s.fontMatrix||r.FONT_IDENTITY_MATRIX,g=e.length;if(!(s.textRenderingMode===r.TextRenderingMode.INVISIBLE)&&0!==c){for(this._cachedGetSinglePixelWidth=null,o.save(),o.transform.apply(o,s.textMatrix),o.translate(s.x,s.y),o.scale(p,u),t=0;t<g;++t)if(n=e[t],(0,r.isNum)(n))a=h*n*c/1e3,this.ctx.translate(a,0),s.x+=a*p;else{var m=(n.isSpace?f:0)+d,v=l.charProcOperatorList[n.operatorListId];if(v)this.processingType3=n,this.save(),o.scale(c,c),o.transform.apply(o,A),this.executeOperatorList(v),this.restore(),i=r.Util.applyTransform([n.width,0],A)[0]*c+m,o.translate(i,0),s.x+=i*p;else(0,r.warn)(`Type3 character "${n.operatorListId}" is not available.`)}o.restore(),this.processingType3=null}},setCharWidth:function(e,t){},setCharWidthAndBounds:function(e,t,n,r,i,a){this.ctx.rect(n,r,i-n,a-r),this.clip(),this.endPath()},getColorN_Pattern:function(t){var n;if("TilingPattern"===t[0]){var r=t[1],a=this.baseTransform||this.ctx.mozCurrentTransform.slice(),o={createCanvasGraphics:t=>new e(t,this.commonObjs,this.objs,this.canvasFactory,this.webGLContext)};n=new i.TilingPattern(t,r,this.ctx,o,a)}else n=(0,i.getShadingPatternFromIR)(t);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(e,t,n){var i=r.Util.makeCssRgb(e,t,n);this.ctx.strokeStyle=i,this.current.strokeColor=i},setFillRGBColor:function(e,t,n){var i=r.Util.makeCssRgb(e,t,n);this.ctx.fillStyle=i,this.current.fillColor=i,this.current.patternFill=!1},shadingFill:function(e){var t=this.ctx;this.save();var n=(0,i.getShadingPatternFromIR)(e);t.fillStyle=n.getPattern(t,this,!0);var a=t.mozCurrentTransformInverse;if(a){var o=t.canvas,s=o.width,l=o.height,c=r.Util.applyTransform([0,0],a),u=r.Util.applyTransform([0,l],a),h=r.Util.applyTransform([s,0],a),d=r.Util.applyTransform([s,l],a),f=Math.min(c[0],u[0],h[0],d[0]),p=Math.min(c[1],u[1],h[1],d[1]),A=Math.max(c[0],u[0],h[0],d[0]),g=Math.max(c[1],u[1],h[1],d[1]);this.ctx.fillRect(f,p,A-f,g-p)}else this.ctx.fillRect(-1e10,-1e10,2e10,2e10);this.restore()},beginInlineImage:function(){(0,r.unreachable)("Should not call beginInlineImage")},beginImageData:function(){(0,r.unreachable)("Should not call beginImageData")},paintFormXObjectBegin:function(e,t){if(this.save(),this.baseTransformStack.push(this.baseTransform),Array.isArray(e)&&6===e.length&&this.transform.apply(this,e),this.baseTransform=this.ctx.mozCurrentTransform,t){var n=t[2]-t[0],r=t[3]-t[1];this.ctx.rect(t[0],t[1],n,r),this.clip(),this.endPath()}},paintFormXObjectEnd:function(){this.restore(),this.baseTransform=this.baseTransformStack.pop()},beginGroup:function(e){this.save();var t=this.ctx;e.isolated||(0,r.info)("TODO: Support non-isolated groups."),e.knockout&&(0,r.warn)("Knockout groups not supported.");var n=t.mozCurrentTransform;if(e.matrix&&t.transform.apply(t,e.matrix),!e.bbox)throw new Error("Bounding box is required.");var i=r.Util.getAxialAlignedBoundingBox(e.bbox,t.mozCurrentTransform),a=[0,0,t.canvas.width,t.canvas.height];i=r.Util.intersect(i,a)||[0,0,0,0];var o=Math.floor(i[0]),s=Math.floor(i[1]),l=Math.max(Math.ceil(i[2])-o,1),u=Math.max(Math.ceil(i[3])-s,1),h=1,d=1;l>4096&&(h=l/4096,l=4096),u>4096&&(d=u/4096,u=4096);var f="groupAt"+this.groupLevel;e.smask&&(f+="_smask_"+this.smaskCounter++%2);var p=this.cachedCanvases.getCanvas(f,l,u,!0),A=p.context;A.scale(1/h,1/d),A.translate(-o,-s),A.transform.apply(A,n),e.smask?this.smaskStack.push({canvas:p.canvas,context:A,offsetX:o,offsetY:s,scaleX:h,scaleY:d,subtype:e.smask.subtype,backdrop:e.smask.backdrop,transferMap:e.smask.transferMap||null,startTransformInverse:null}):(t.setTransform(1,0,0,1,0,0),t.translate(o,s),t.scale(h,d)),c(t,A),this.ctx=A,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(t),this.groupLevel++,this.current.activeSMask=null},endGroup:function(e){this.groupLevel--;var t=this.ctx;this.ctx=this.groupStack.pop(),void 0!==this.ctx.imageSmoothingEnabled?this.ctx.imageSmoothingEnabled=!1:this.ctx.mozImageSmoothingEnabled=!1,e.smask?this.tempSMask=this.smaskStack.pop():this.ctx.drawImage(t.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(e,t,n){if(this.save(),u(this.ctx),this.current=new l,Array.isArray(e)&&4===e.length){var r=e[2]-e[0],i=e[3]-e[1];this.ctx.rect(e[0],e[1],r,i),this.clip(),this.endPath()}this.transform.apply(this,t),this.transform.apply(this,n)},endAnnotation:function(){this.restore()},paintImageMaskXObject:function(e){var t=this.ctx,r=e.width,i=e.height,a=this.current.fillColor,o=this.current.patternFill,s=this.processingType3;if(s&&void 0===s.compiled&&(s.compiled=r<=1e3&&i<=1e3?function(e){var t,n,r,i,a=e.width,o=e.height,s=a+1,l=new Uint8Array(s*(o+1)),c=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),u=a+7&-8,h=e.data,d=new Uint8Array(u*o),f=0;for(t=0,i=h.length;t<i;t++)for(var p=128,A=h[t];p>0;)d[f++]=A&p?0:255,p>>=1;var g=0;for(0!==d[f=0]&&(l[0]=1,++g),n=1;n<a;n++)d[f]!==d[f+1]&&(l[n]=d[f]?2:1,++g),f++;for(0!==d[f]&&(l[n]=2,++g),t=1;t<o;t++){r=t*s,d[(f=t*u)-u]!==d[f]&&(l[r]=d[f]?1:8,++g);var m=(d[f]?4:0)+(d[f-u]?8:0);for(n=1;n<a;n++)c[m=(m>>2)+(d[f+1]?4:0)+(d[f-u+1]?8:0)]&&(l[r+n]=c[m],++g),f++;if(d[f-u]!==d[f]&&(l[r+n]=d[f]?2:4,++g),g>1e3)return null}for(r=t*s,0!==d[f=u*(o-1)]&&(l[r]=8,++g),n=1;n<a;n++)d[f]!==d[f+1]&&(l[r+n]=d[f]?4:8,++g),f++;if(0!==d[f]&&(l[r+n]=4,++g),g>1e3)return null;var v=new Int32Array([0,s,-1,0,-s,0,0,0,1]),y=[];for(t=0;g&&t<=o;t++){for(var b=t*s,w=b+a;b<w&&!l[b];)b++;if(b!==w){var x,_=[b%s,t],C=l[b],S=b;do{var k=v[C];do{b+=k}while(!l[b]);5!==(x=l[b])&&10!==x?(C=x,l[b]=0):(C=x&51*C>>4,l[b]&=C>>2|C<<2),_.push(b%s),_.push(b/s|0),l[b]||--g}while(S!==b);y.push(_),--t}}return function(e){e.save(),e.scale(1/a,-1/o),e.translate(0,-o),e.beginPath();for(let n=0,r=y.length;n<r;n++){var t=y[n];e.moveTo(t[0],t[1]);for(let n=2,r=t.length;n<r;n+=2)e.lineTo(t[n],t[n+1])}e.fill(),e.beginPath(),e.restore()}}({data:e.data,width:r,height:i}):null),s&&s.compiled)s.compiled(t);else{var l=this.cachedCanvases.getCanvas("maskCanvas",r,i),c=l.context;c.save(),n(c,e),c.globalCompositeOperation="source-in",c.fillStyle=o?a.getPattern(c,this):a,c.fillRect(0,0,r,i),c.restore(),this.paintInlineImageXObject(l.canvas)}},paintImageMaskXObjectRepeat:function(e,t,r,i){var a=e.width,o=e.height,s=this.current.fillColor,l=this.current.patternFill,c=this.cachedCanvases.getCanvas("maskCanvas",a,o),u=c.context;u.save(),n(u,e),u.globalCompositeOperation="source-in",u.fillStyle=l?s.getPattern(u,this):s,u.fillRect(0,0,a,o),u.restore();for(var h=this.ctx,d=0,f=i.length;d<f;d+=2)h.save(),h.transform(t,0,0,r,i[d],i[d+1]),h.scale(1,-1),h.drawImage(c.canvas,0,0,a,o,0,-1,1,1),h.restore()},paintImageMaskXObjectGroup:function(e){for(var t=this.ctx,r=this.current.fillColor,i=this.current.patternFill,a=0,o=e.length;a<o;a++){var s=e[a],l=s.width,c=s.height,u=this.cachedCanvases.getCanvas("maskCanvas",l,c),h=u.context;h.save(),n(h,s),h.globalCompositeOperation="source-in",h.fillStyle=i?r.getPattern(h,this):r,h.fillRect(0,0,l,c),h.restore(),t.save(),t.transform.apply(t,s.transform),t.scale(1,-1),t.drawImage(u.canvas,0,0,l,c,0,-1,1,1),t.restore()}},paintImageXObject:function(e){const t=e.startsWith("g_")?this.commonObjs.get(e):this.objs.get(e);t?this.paintInlineImageXObject(t):(0,r.warn)("Dependent image isn't ready yet")},paintImageXObjectRepeat:function(e,t,n,i){const a=e.startsWith("g_")?this.commonObjs.get(e):this.objs.get(e);if(a){for(var o=a.width,s=a.height,l=[],c=0,u=i.length;c<u;c+=2)l.push({transform:[t,0,0,n,i[c],i[c+1]],x:0,y:0,w:o,h:s});this.paintInlineImageXObjectGroup(a,l)}else(0,r.warn)("Dependent image isn't ready yet")},paintInlineImageXObject:function(e){var n=e.width,r=e.height,i=this.ctx;this.save(),i.scale(1/n,-1/r);var a,o,s=i.mozCurrentTransformInverse,l=s[0],c=s[1],u=Math.max(Math.sqrt(l*l+c*c),1),h=s[2],d=s[3],f=Math.max(Math.sqrt(h*h+d*d),1);if("function"==typeof HTMLElement&&e instanceof HTMLElement||!e.data)a=e;else{var p=(o=this.cachedCanvases.getCanvas("inlineImage",n,r)).context;t(p,e),a=o.canvas}for(var A=n,g=r,m="prescale1";u>2&&A>1||f>2&&g>1;){var v=A,y=g;u>2&&A>1&&(u/=A/(v=Math.ceil(A/2))),f>2&&g>1&&(f/=g/(y=Math.ceil(g/2))),(p=(o=this.cachedCanvases.getCanvas(m,v,y)).context).clearRect(0,0,v,y),p.drawImage(a,0,0,A,g,0,0,v,y),a=o.canvas,A=v,g=y,m="prescale1"===m?"prescale2":"prescale1"}if(i.drawImage(a,0,0,A,g,0,-r,n,r),this.imageLayer){var b=this.getCanvasPosition(0,-r);this.imageLayer.appendImage({imgData:e,left:b[0],top:b[1],width:n/s[0],height:r/s[3]})}this.restore()},paintInlineImageXObjectGroup:function(e,n){var r=this.ctx,i=e.width,a=e.height,o=this.cachedCanvases.getCanvas("inlineImage",i,a);t(o.context,e);for(var s=0,l=n.length;s<l;s++){var c=n[s];if(r.save(),r.transform.apply(r,c.transform),r.scale(1,-1),r.drawImage(o.canvas,c.x,c.y,c.w,c.h,0,-1,1,1),this.imageLayer){var u=this.getCanvasPosition(c.x,c.y);this.imageLayer.appendImage({imgData:e,left:u[0],top:u[1],width:i,height:a})}r.restore()}},paintSolidColorImageMask:function(){this.ctx.fillRect(0,0,1,1)},paintXObject:function(){(0,r.warn)("Unsupported 'paintXObject' command.")},markPoint:function(e){},markPointProps:function(e,t){},beginMarkedContent:function(e){},beginMarkedContentProps:function(e,t){},endMarkedContent:function(){},beginCompat:function(){},endCompat:function(){},consumePath:function(){var e=this.ctx;this.pendingClip&&(this.pendingClip===v?e.clip("evenodd"):e.clip(),this.pendingClip=null),e.beginPath()},getSinglePixelWidth(e){if(null===this._cachedGetSinglePixelWidth){const 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(e,t){var n=this.ctx.mozCurrentTransform;return[n[0]*e+n[2]*t+n[4],n[1]*e+n[3]*t+n[5]]}},r.OPS)e.prototype[r.OPS[y]]=e.prototype[y];return e}();t.CanvasGraphics=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getShadingPatternFromIR=function(e){var t=i[e[0]];if(!t)throw new Error(`Unknown IR type: ${e[0]}`);return t.fromIR(e)},t.TilingPattern=void 0;var r=n(2),i={};function a(e,t){if(!t||"undefined"==typeof Path2D)return;const n=t[2]-t[0],r=t[3]-t[1],i=new Path2D;i.rect(t[0],t[1],n,r),e.clip(i)}i.RadialAxial={fromIR:function(e){var t=e[1],n=e[2],r=e[3],i=e[4],o=e[5],s=e[6],l=e[7];return{type:"Pattern",getPattern:function(e){var c;a(e,n),"axial"===t?c=e.createLinearGradient(i[0],i[1],o[0],o[1]):"radial"===t&&(c=e.createRadialGradient(i[0],i[1],s,o[0],o[1],l));for(var u=0,h=r.length;u<h;++u){var d=r[u];c.addColorStop(d[0],d[1])}return c}}}};var o=function(){function e(e,t,n,r,i,a,o,s){var l,c=t.coords,u=t.colors,h=e.data,d=4*e.width;c[n+1]>c[r+1]&&(l=n,n=r,r=l,l=a,a=o,o=l),c[r+1]>c[i+1]&&(l=r,r=i,i=l,l=o,o=s,s=l),c[n+1]>c[r+1]&&(l=n,n=r,r=l,l=a,a=o,o=l);var f=(c[n]+t.offsetX)*t.scaleX,p=(c[n+1]+t.offsetY)*t.scaleY,A=(c[r]+t.offsetX)*t.scaleX,g=(c[r+1]+t.offsetY)*t.scaleY,m=(c[i]+t.offsetX)*t.scaleX,v=(c[i+1]+t.offsetY)*t.scaleY;if(!(p>=v))for(var y,b,w,x,_,C,S,k,B=u[a],E=u[a+1],T=u[a+2],I=u[o],M=u[o+1],F=u[o+2],D=u[s],P=u[s+1],O=u[s+2],L=Math.round(p),R=Math.round(v),N=L;N<=R;N++){if(N<g){let e;y=f-(f-A)*(e=N<p?0:p===g?1:(p-N)/(p-g)),b=B-(B-I)*e,w=E-(E-M)*e,x=T-(T-F)*e}else{let e;y=A-(A-m)*(e=N>v?1:g===v?0:(g-N)/(g-v)),b=I-(I-D)*e,w=M-(M-P)*e,x=F-(F-O)*e}let e;_=f-(f-m)*(e=N<p?0:N>v?1:(p-N)/(p-v)),C=B-(B-D)*e,S=E-(E-P)*e,k=T-(T-O)*e;for(var U=Math.round(Math.min(y,_)),H=Math.round(Math.max(y,_)),j=d*N+4*U,Q=U;Q<=H;Q++)(e=(y-Q)/(y-_))<0?e=0:e>1&&(e=1),h[j++]=b-(b-C)*e|0,h[j++]=w-(w-S)*e|0,h[j++]=x-(x-k)*e|0,h[j++]=255}}function t(t,n,r){var i,a,o=n.coords,s=n.colors;switch(n.type){case"lattice":var l=n.verticesPerRow,c=Math.floor(o.length/l)-1,u=l-1;for(i=0;i<c;i++)for(var h=i*l,d=0;d<u;d++,h++)e(t,r,o[h],o[h+1],o[h+l],s[h],s[h+1],s[h+l]),e(t,r,o[h+l+1],o[h+1],o[h+l],s[h+l+1],s[h+1],s[h+l]);break;case"triangles":for(i=0,a=o.length;i<a;i+=3)e(t,r,o[i],o[i+1],o[i+2],s[i],s[i+1],s[i+2]);break;default:throw new Error("illegal figure")}}return function(e,n,r,i,a,o,s,l){var c,u,h,d,f=Math.floor(e[0]),p=Math.floor(e[1]),A=Math.ceil(e[2])-f,g=Math.ceil(e[3])-p,m=Math.min(Math.ceil(Math.abs(A*n[0]*1.1)),3e3),v=Math.min(Math.ceil(Math.abs(g*n[1]*1.1)),3e3),y=A/m,b=g/v,w={coords:r,colors:i,offsetX:-f,offsetY:-p,scaleX:1/y,scaleY:1/b},x=m+4,_=v+4;if(l.isEnabled)c=l.drawFigures({width:m,height:v,backgroundColor:o,figures:a,context:w}),(u=s.getCanvas("mesh",x,_,!1)).context.drawImage(c,2,2),c=u.canvas;else{var C=(u=s.getCanvas("mesh",x,_,!1)).context,S=C.createImageData(m,v);if(o){var k=S.data;for(h=0,d=k.length;h<d;h+=4)k[h]=o[0],k[h+1]=o[1],k[h+2]=o[2],k[h+3]=255}for(h=0;h<a.length;h++)t(S,a[h],w);C.putImageData(S,2,2),c=u.canvas}return{canvas:c,offsetX:f-2*y,offsetY:p-2*b,scaleX:y,scaleY:b}}}();i.Mesh={fromIR:function(e){var t=e[2],n=e[3],i=e[4],s=e[5],l=e[6],c=e[7],u=e[8];return{type:"Pattern",getPattern:function(e,h,d){var f;if(a(e,c),d)f=r.Util.singularValueDecompose2dScale(e.mozCurrentTransform);else if(f=r.Util.singularValueDecompose2dScale(h.baseTransform),l){var p=r.Util.singularValueDecompose2dScale(l);f=[f[0]*p[0],f[1]*p[1]]}var A=o(s,f,t,n,i,d?null:u,h.cachedCanvases,h.webGLContext);return d||(e.setTransform.apply(e,h.baseTransform),l&&e.transform.apply(e,l)),e.translate(A.offsetX,A.offsetY),e.scale(A.scaleX,A.scaleY),e.createPattern(A.canvas,"no-repeat")}}}},i.Dummy={fromIR:function(){return{type:"Pattern",getPattern:function(){return"hotpink"}}}};var s=function(){var e=1,t=2;function n(e,t,n,r,i){this.operatorList=e[2],this.matrix=e[3]||[1,0,0,1,0,0],this.bbox=e[4],this.xstep=e[5],this.ystep=e[6],this.paintType=e[7],this.tilingType=e[8],this.color=t,this.canvasGraphicsFactory=r,this.baseTransform=i,this.type="Pattern",this.ctx=n}return n.prototype={createPatternCanvas:function(e){var t=this.operatorList,n=this.bbox,i=this.xstep,a=this.ystep,o=this.paintType,s=this.tilingType,l=this.color,c=this.canvasGraphicsFactory;(0,r.info)("TilingType: "+s);var u=n[0],h=n[1],d=n[2],f=n[3],p=r.Util.singularValueDecompose2dScale(this.matrix),A=r.Util.singularValueDecompose2dScale(this.baseTransform),g=[p[0]*A[0],p[1]*A[1]],m=this.getSizeAndScale(i,this.ctx.canvas.width,g[0]),v=this.getSizeAndScale(a,this.ctx.canvas.height,g[1]),y=e.cachedCanvases.getCanvas("pattern",m.size,v.size,!0),b=y.context,w=c.createCanvasGraphics(b);return w.groupLevel=e.groupLevel,this.setFillAndStrokeStyleToContext(w,o,l),w.transform(m.scale,0,0,v.scale,0,0),w.transform(1,0,0,1,-u,-h),this.clipBbox(w,n,u,h,d,f),w.executeOperatorList(t),this.ctx.transform(1,0,0,1,u,h),this.ctx.scale(1/m.scale,1/v.scale),y.canvas},getSizeAndScale:function(e,t,n){e=Math.abs(e);var r=Math.max(3e3,t),i=Math.ceil(e*n);return i>=r?i=r:n=i/e,{scale:n,size:i}},clipBbox:function(e,t,n,r,i,a){if(Array.isArray(t)&&4===t.length){var o=i-n,s=a-r;e.ctx.rect(n,r,o,s),e.clip(),e.endPath()}},setFillAndStrokeStyleToContext:function(n,i,a){const o=n.ctx,s=n.current;switch(i){case e:var l=this.ctx;o.fillStyle=l.fillStyle,o.strokeStyle=l.strokeStyle,s.fillColor=l.fillStyle,s.strokeColor=l.strokeStyle;break;case t:var c=r.Util.makeCssRgb(a[0],a[1],a[2]);o.fillStyle=c,o.strokeStyle=c,s.fillColor=c,s.strokeColor=c;break;default:throw new r.FormatError(`Unsupported paint type: ${i}`)}},getPattern:function(e,t){(e=this.ctx).setTransform.apply(e,this.baseTransform),e.transform.apply(e,this.matrix);var n=this.createPatternCanvas(t);return e.createPattern(n,"repeat")}},n}();t.TilingPattern=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalWorkerOptions=void 0;const r=Object.create(null);t.GlobalWorkerOptions=r,r.workerPort=void 0===r.workerPort?null:r.workerPort,r.workerSrc=void 0===r.workerSrc?"":r.workerSrc},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MessageHandler=void 0;var r=n(2);const i={UNKNOWN:0,DATA:1,ERROR:2},a={UNKNOWN:0,CANCEL:1,CANCEL_COMPLETE:2,CLOSE:3,ENQUEUE:4,ERROR:5,PULL:6,PULL_COMPLETE:7,START_COMPLETE:8};function o(e){if("object"!=typeof e||null===e)return e;switch(e.name){case"AbortException":return new r.AbortException(e.message);case"MissingPDFException":return new r.MissingPDFException(e.message);case"UnexpectedResponseException":return new r.UnexpectedResponseException(e.message,e.status);case"UnknownErrorException":return new r.UnknownErrorException(e.message,e.details);default:return new r.UnknownErrorException(e.message,e.toString())}}t.MessageHandler=class{constructor(e,t,n){this.sourceName=e,this.targetName=t,this.comObj=n,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=(e=>{const t=e.data;if(t.targetName!==this.sourceName)return;if(t.stream)return void this._processStreamMessage(t);if(t.callback){const e=t.callbackId,n=this.callbackCapabilities[e];if(!n)throw new Error(`Cannot resolve callback ${e}`);if(delete this.callbackCapabilities[e],t.callback===i.DATA)n.resolve(t.data);else{if(t.callback!==i.ERROR)throw new Error("Unexpected callback case");n.reject(o(t.reason))}return}const r=this.actionHandler[t.action];if(!r)throw new Error(`Unknown action from worker: ${t.action}`);if(t.callbackId){const e=this.sourceName,a=t.sourceName;new Promise(function(e){e(r(t.data))}).then(function(r){n.postMessage({sourceName:e,targetName:a,callback:i.DATA,callbackId:t.callbackId,data:r})},function(r){n.postMessage({sourceName:e,targetName:a,callback:i.ERROR,callbackId:t.callbackId,reason:o(r)})})}else t.streamId?this._createStreamSink(t):r(t.data)}),n.addEventListener("message",this._onComObjOnMessage)}on(e,t){const n=this.actionHandler;if(n[e])throw new Error(`There is already an actionName called "${e}"`);n[e]=t}send(e,t,n){this._postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,data:t},n)}sendWithPromise(e,t,n){const i=this.callbackId++,a=(0,r.createPromiseCapability)();this.callbackCapabilities[i]=a;try{this._postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,callbackId:i,data:t},n)}catch(e){a.reject(e)}return a.promise}sendWithStream(e,t,n,i){const s=this.streamId++,l=this.sourceName,c=this.targetName,u=this.comObj;return new ReadableStream({start:n=>{const a=(0,r.createPromiseCapability)();return this.streamControllers[s]={controller:n,startCall:a,pullCall:null,cancelCall:null,isClosed:!1},this._postMessage({sourceName:l,targetName:c,action:e,streamId:s,data:t,desiredSize:n.desiredSize},i),a.promise},pull:e=>{const t=(0,r.createPromiseCapability)();return this.streamControllers[s].pullCall=t,u.postMessage({sourceName:l,targetName:c,stream:a.PULL,streamId:s,desiredSize:e.desiredSize}),t.promise},cancel:e=>{(0,r.assert)(e instanceof Error,"cancel must have a valid reason");const t=(0,r.createPromiseCapability)();return this.streamControllers[s].cancelCall=t,this.streamControllers[s].isClosed=!0,u.postMessage({sourceName:l,targetName:c,stream:a.CANCEL,streamId:s,reason:o(e)}),t.promise}},n)}_createStreamSink(e){const t=this,n=this.actionHandler[e.action],i=e.streamId,s=this.sourceName,l=e.sourceName,c=this.comObj,u={enqueue(e,n=1,o){if(this.isCancelled)return;const c=this.desiredSize;this.desiredSize-=n,c>0&&this.desiredSize<=0&&(this.sinkCapability=(0,r.createPromiseCapability)(),this.ready=this.sinkCapability.promise),t._postMessage({sourceName:s,targetName:l,stream:a.ENQUEUE,streamId:i,chunk:e},o)},close(){this.isCancelled||(this.isCancelled=!0,c.postMessage({sourceName:s,targetName:l,stream:a.CLOSE,streamId:i}),delete t.streamSinks[i])},error(e){(0,r.assert)(e instanceof Error,"error must have a valid reason"),this.isCancelled||(this.isCancelled=!0,c.postMessage({sourceName:s,targetName:l,stream:a.ERROR,streamId:i,reason:o(e)}))},sinkCapability:(0,r.createPromiseCapability)(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:e.desiredSize,ready:null};u.sinkCapability.resolve(),u.ready=u.sinkCapability.promise,this.streamSinks[i]=u,new Promise(function(t){t(n(e.data,u))}).then(function(){c.postMessage({sourceName:s,targetName:l,stream:a.START_COMPLETE,streamId:i,success:!0})},function(e){c.postMessage({sourceName:s,targetName:l,stream:a.START_COMPLETE,streamId:i,reason:o(e)})})}_processStreamMessage(e){const t=e.streamId,n=this.sourceName,i=e.sourceName,s=this.comObj;switch(e.stream){case a.START_COMPLETE:e.success?this.streamControllers[t].startCall.resolve():this.streamControllers[t].startCall.reject(o(e.reason));break;case a.PULL_COMPLETE:e.success?this.streamControllers[t].pullCall.resolve():this.streamControllers[t].pullCall.reject(o(e.reason));break;case a.PULL:if(!this.streamSinks[t]){s.postMessage({sourceName:n,targetName:i,stream:a.PULL_COMPLETE,streamId:t,success:!0});break}this.streamSinks[t].desiredSize<=0&&e.desiredSize>0&&this.streamSinks[t].sinkCapability.resolve(),this.streamSinks[t].desiredSize=e.desiredSize;const{onPull:l}=this.streamSinks[e.streamId];new Promise(function(e){e(l&&l())}).then(function(){s.postMessage({sourceName:n,targetName:i,stream:a.PULL_COMPLETE,streamId:t,success:!0})},function(e){s.postMessage({sourceName:n,targetName:i,stream:a.PULL_COMPLETE,streamId:t,reason:o(e)})});break;case a.ENQUEUE:if((0,r.assert)(this.streamControllers[t],"enqueue should have stream controller"),this.streamControllers[t].isClosed)break;this.streamControllers[t].controller.enqueue(e.chunk);break;case a.CLOSE:if((0,r.assert)(this.streamControllers[t],"close should have stream controller"),this.streamControllers[t].isClosed)break;this.streamControllers[t].isClosed=!0,this.streamControllers[t].controller.close(),this._deleteStreamController(t);break;case a.ERROR:(0,r.assert)(this.streamControllers[t],"error should have stream controller"),this.streamControllers[t].controller.error(o(e.reason)),this._deleteStreamController(t);break;case a.CANCEL_COMPLETE:e.success?this.streamControllers[t].cancelCall.resolve():this.streamControllers[t].cancelCall.reject(o(e.reason)),this._deleteStreamController(t);break;case a.CANCEL:if(!this.streamSinks[t])break;const{onCancel:c}=this.streamSinks[e.streamId];new Promise(function(t){t(c&&c(o(e.reason)))}).then(function(){s.postMessage({sourceName:n,targetName:i,stream:a.CANCEL_COMPLETE,streamId:t,success:!0})},function(e){s.postMessage({sourceName:n,targetName:i,stream:a.CANCEL_COMPLETE,streamId:t,reason:o(e)})}),this.streamSinks[t].sinkCapability.reject(o(e.reason)),this.streamSinks[t].isCancelled=!0,delete this.streamSinks[t];break;default:throw new Error("Unexpected stream case")}}async _deleteStreamController(e){await Promise.allSettled([this.streamControllers[e].startCall,this.streamControllers[e].pullCall,this.streamControllers[e].cancelCall].map(function(e){return e&&e.promise})),delete this.streamControllers[e]}_postMessage(e,t){t&&this.postMessageTransfers?this.comObj.postMessage(e,t):this.comObj.postMessage(e)}destroy(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Metadata=void 0;var r=n(2),i=n(13);t.Metadata=class{constructor(e){(0,r.assert)("string"==typeof e,"Metadata: input is not a string"),e=this._repair(e);const t=(new i.SimpleXMLParser).parseFromString(e);this._metadataMap=new Map,t&&this._parse(t)}_repair(e){return e.replace(/^[^<]+/,"").replace(/>\\376\\377([^<]+)/g,function(e,t){const n=t.replace(/\\([0-3])([0-7])([0-7])/g,function(e,t,n,r){return String.fromCharCode(64*t+8*n+1*r)}).replace(/&(amp|apos|gt|lt|quot);/g,function(e,t){switch(t){case"amp":return"&";case"apos":return"'";case"gt":return">";case"lt":return"<";case"quot":return'"'}throw new Error(`_repair: ${t} isn't defined.`)});let r="";for(let e=0,t=n.length;e<t;e+=2){const t=256*n.charCodeAt(e)+n.charCodeAt(e+1);r+=t>=32&&t<127&&60!==t&&62!==t&&38!==t?String.fromCharCode(t):"&#x"+(65536+t).toString(16).substring(1)+";"}return">"+r})}_parse(e){let t=e.documentElement;if("rdf:rdf"!==t.nodeName.toLowerCase())for(t=t.firstChild;t&&"rdf:rdf"!==t.nodeName.toLowerCase();)t=t.nextSibling;const n=t?t.nodeName.toLowerCase():null;if(!t||"rdf:rdf"!==n||!t.hasChildNodes())return;const r=t.childNodes;for(let e=0,t=r.length;e<t;e++){const t=r[e];if("rdf:description"===t.nodeName.toLowerCase())for(let e=0,n=t.childNodes.length;e<n;e++)if("#text"!==t.childNodes[e].nodeName.toLowerCase()){const n=t.childNodes[e],r=n.nodeName.toLowerCase();this._metadataMap.set(r,n.textContent.trim())}}}get(e){return this._metadataMap.has(e)?this._metadataMap.get(e):null}getAll(){const e=Object.create(null);for(const[t,n]of this._metadataMap)e[t]=n;return e}has(e){return this._metadataMap.has(e)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SimpleXMLParser=void 0;const r={NoError:0,EndOfDocument:-1,UnterminatedCdat:-2,UnterminatedXmlDeclaration:-3,UnterminatedDoctypeDeclaration:-4,UnterminatedComment:-5,MalformedElement:-6,OutOfMemory:-7,UnterminatedAttributeValue:-8,UnterminatedElement:-9,ElementNeverBegun:-10};function i(e,t){const n=e[t];return" "===n||"\n"===n||"\r"===n||"\t"===n}class a{_resolveEntities(e){return e.replace(/&([^;]+);/g,(e,t)=>{if("#x"===t.substring(0,2))return String.fromCharCode(parseInt(t.substring(2),16));if("#"===t.substring(0,1))return String.fromCharCode(parseInt(t.substring(1),10));switch(t){case"lt":return"<";case"gt":return">";case"amp":return"&";case"quot":return'"'}return this.onResolveEntity(t)})}_parseContent(e,t){const n=[];let r=t;function a(){for(;r<e.length&&i(e,r);)++r}for(;r<e.length&&!i(e,r)&&">"!==e[r]&&"/"!==e[r];)++r;const o=e.substring(t,r);for(a();r<e.length&&">"!==e[r]&&"/"!==e[r]&&"?"!==e[r];){a();let t="",o="";for(;r<e.length&&!i(e,r)&&"="!==e[r];)t+=e[r],++r;if(a(),"="!==e[r])return null;++r,a();const s=e[r];if('"'!==s&&"'"!==s)return null;const l=e.indexOf(s,++r);if(l<0)return null;o=e.substring(r,l),n.push({name:t,value:this._resolveEntities(o)}),r=l+1,a()}return{name:o,attributes:n,parsed:r-t}}_parseProcessingInstruction(e,t){let n=t;for(;n<e.length&&!i(e,n)&&">"!==e[n]&&"/"!==e[n];)++n;const r=e.substring(t,n);!function(){for(;n<e.length&&i(e,n);)++n}();const a=n;for(;n<e.length&&("?"!==e[n]||">"!==e[n+1]);)++n;return{name:r,value:e.substring(a,n),parsed:n-t}}parseXml(e){let t=0;for(;t<e.length;){let n=t;if("<"===e[t]){let t;switch(e[++n]){case"/":if(++n,(t=e.indexOf(">",n))<0)return void this.onError(r.UnterminatedElement);this.onEndElement(e.substring(n,t)),n=t+1;break;case"?":++n;const i=this._parseProcessingInstruction(e,n);if("?>"!==e.substring(n+i.parsed,n+i.parsed+2))return void this.onError(r.UnterminatedXmlDeclaration);this.onPi(i.name,i.value),n+=i.parsed+2;break;case"!":if("--"===e.substring(n+1,n+3)){if((t=e.indexOf("--\x3e",n+3))<0)return void this.onError(r.UnterminatedComment);this.onComment(e.substring(n+3,t)),n=t+3}else if("[CDATA["===e.substring(n+1,n+8)){if((t=e.indexOf("]]>",n+8))<0)return void this.onError(r.UnterminatedCdat);this.onCdata(e.substring(n+8,t)),n=t+3}else{if("DOCTYPE"!==e.substring(n+1,n+8))return void this.onError(r.MalformedElement);{const i=e.indexOf("[",n+8);let a=!1;if((t=e.indexOf(">",n+8))<0)return void this.onError(r.UnterminatedDoctypeDeclaration);if(i>0&&t>i){if((t=e.indexOf("]>",n+8))<0)return void this.onError(r.UnterminatedDoctypeDeclaration);a=!0}const o=e.substring(n+8,t+(a?1:0));this.onDoctype(o),n=t+(a?2:1)}}break;default:const a=this._parseContent(e,n);if(null===a)return void this.onError(r.MalformedElement);let o=!1;if("/>"===e.substring(n+a.parsed,n+a.parsed+2))o=!0;else if(">"!==e.substring(n+a.parsed,n+a.parsed+1))return void this.onError(r.UnterminatedElement);this.onBeginElement(a.name,a.attributes,o),n+=a.parsed+(o?2:1)}}else{for(;n<e.length&&"<"!==e[n];)n++;const r=e.substring(t,n);this.onText(this._resolveEntities(r))}t=n}}onResolveEntity(e){return`&${e};`}onPi(e,t){}onComment(e){}onCdata(e){}onDoctype(e){}onText(e){}onBeginElement(e,t,n){}onEndElement(e){}onError(e){}}class o{constructor(e,t){this.nodeName=e,this.nodeValue=t,Object.defineProperty(this,"parentNode",{value:null,writable:!0})}get firstChild(){return this.childNodes&&this.childNodes[0]}get nextSibling(){const e=this.parentNode.childNodes;if(!e)return;const t=e.indexOf(this);return-1!==t?e[t+1]:void 0}get textContent(){return this.childNodes?this.childNodes.map(function(e){return e.textContent}).join(""):this.nodeValue||""}hasChildNodes(){return this.childNodes&&this.childNodes.length>0}}t.SimpleXMLParser=class extends a{constructor(){super(),this._currentFragment=null,this._stack=null,this._errorCode=r.NoError}parseFromString(e){if(this._currentFragment=[],this._stack=[],this._errorCode=r.NoError,this.parseXml(e),this._errorCode!==r.NoError)return;const[t]=this._currentFragment;return t?{documentElement:t}:void 0}onResolveEntity(e){switch(e){case"apos":return"'"}return super.onResolveEntity(e)}onText(e){if(function(e){for(let t=0,n=e.length;t<n;t++)if(!i(e,t))return!1;return!0}(e))return;const t=new o("#text",e);this._currentFragment.push(t)}onCdata(e){const t=new o("#text",e);this._currentFragment.push(t)}onBeginElement(e,t,n){const r=new o(e);r.childNodes=[],this._currentFragment.push(r),n||(this._stack.push(this._currentFragment),this._currentFragment=r.childNodes)}onEndElement(e){this._currentFragment=this._stack.pop()||[];const t=this._currentFragment[this._currentFragment.length-1];if(t)for(let e=0,n=t.childNodes.length;e<n;e++)t.childNodes[e].parentNode=t}onError(e){this._errorCode=e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PDFDataTransportStream=void 0;var r=n(2);t.PDFDataTransportStream=class{constructor(e,t){(0,r.assert)(t,'PDFDataTransportStream - missing required "pdfDataRangeTransport" argument.'),this._queuedChunks=[],this._progressiveDone=e.progressiveDone||!1;const n=e.initialData;if(n&&n.length>0){const e=new Uint8Array(n).buffer;this._queuedChunks.push(e)}this._pdfDataRangeTransport=t,this._isStreamingSupported=!e.disableStream,this._isRangeSupported=!e.disableRange,this._contentLength=e.length,this._fullRequestReader=null,this._rangeReaders=[],this._pdfDataRangeTransport.addRangeListener((e,t)=>{this._onReceiveData({begin:e,chunk:t})}),this._pdfDataRangeTransport.addProgressListener((e,t)=>{this._onProgress({loaded:e,total:t})}),this._pdfDataRangeTransport.addProgressiveReadListener(e=>{this._onReceiveData({chunk:e})}),this._pdfDataRangeTransport.addProgressiveDoneListener(()=>{this._onProgressiveDone()}),this._pdfDataRangeTransport.transportReady()}_onReceiveData(e){const t=new Uint8Array(e.chunk).buffer;if(void 0===e.begin)this._fullRequestReader?this._fullRequestReader._enqueue(t):this._queuedChunks.push(t);else{const n=this._rangeReaders.some(function(n){return n._begin===e.begin&&(n._enqueue(t),!0)});(0,r.assert)(n,"_onReceiveData - no `PDFDataTransportStreamRangeReader` instance found.")}}get _progressiveDataLength(){return this._fullRequestReader?this._fullRequestReader._loaded:0}_onProgress(e){if(void 0===e.total){const t=this._rangeReaders[0];t&&t.onProgress&&t.onProgress({loaded:e.loaded})}else{const t=this._fullRequestReader;t&&t.onProgress&&t.onProgress({loaded:e.loaded,total:e.total})}}_onProgressiveDone(){this._fullRequestReader&&this._fullRequestReader.progressiveDone(),this._progressiveDone=!0}_removeRangeReader(e){const t=this._rangeReaders.indexOf(e);t>=0&&this._rangeReaders.splice(t,1)}getFullReader(){(0,r.assert)(!this._fullRequestReader,"PDFDataTransportStream.getFullReader can only be called once.");const e=this._queuedChunks;return this._queuedChunks=null,new i(this,e,this._progressiveDone)}getRangeReader(e,t){if(t<=this._progressiveDataLength)return null;const n=new a(this,e,t);return this._pdfDataRangeTransport.requestDataRange(e,t),this._rangeReaders.push(n),n}cancelAllRequests(e){this._fullRequestReader&&this._fullRequestReader.cancel(e),this._rangeReaders.slice(0).forEach(function(t){t.cancel(e)}),this._pdfDataRangeTransport.abort()}};class i{constructor(e,t,n=!1){this._stream=e,this._done=n||!1,this._filename=null,this._queuedChunks=t||[],this._loaded=0;for(const e of this._queuedChunks)this._loaded+=e.byteLength;this._requests=[],this._headersReady=Promise.resolve(),e._fullRequestReader=this,this.onProgress=null}_enqueue(e){if(!this._done){if(this._requests.length>0){this._requests.shift().resolve({value:e,done:!1})}else this._queuedChunks.push(e);this._loaded+=e.byteLength}}get headersReady(){return this._headersReady}get filename(){return this._filename}get isRangeSupported(){return this._stream._isRangeSupported}get isStreamingSupported(){return this._stream._isStreamingSupported}get contentLength(){return this._stream._contentLength}async read(){if(this._queuedChunks.length>0){return{value:this._queuedChunks.shift(),done:!1}}if(this._done)return{value:void 0,done:!0};const e=(0,r.createPromiseCapability)();return this._requests.push(e),e.promise}cancel(e){this._done=!0,this._requests.forEach(function(e){e.resolve({value:void 0,done:!0})}),this._requests=[]}progressiveDone(){this._done||(this._done=!0)}}class a{constructor(e,t,n){this._stream=e,this._begin=t,this._end=n,this._queuedChunk=null,this._requests=[],this._done=!1,this.onProgress=null}_enqueue(e){if(!this._done){if(0===this._requests.length)this._queuedChunk=e;else{this._requests.shift().resolve({value:e,done:!1}),this._requests.forEach(function(e){e.resolve({value:void 0,done:!0})}),this._requests=[]}this._done=!0,this._stream._removeRangeReader(this)}}get isStreamingSupported(){return!1}async read(){if(this._queuedChunk){const e=this._queuedChunk;return this._queuedChunk=null,{value:e,done:!1}}if(this._done)return{value:void 0,done:!0};const e=(0,r.createPromiseCapability)();return this._requests.push(e),e.promise}cancel(e){this._done=!0,this._requests.forEach(function(e){e.resolve({value:void 0,done:!0})}),this._requests=[],this._stream._removeRangeReader(this)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WebGLContext=void 0;var r=n(2);t.WebGLContext=class{constructor({enable:e=!1}){this._enabled=!0===e}get isEnabled(){let e=this._enabled;return e&&(e=i.tryInitGL()),(0,r.shadow)(this,"isEnabled",e)}composeSMask({layer:e,mask:t,properties:n}){return i.composeSMask(e,t,n)}drawFigures({width:e,height:t,backgroundColor:n,figures:r,context:a}){return i.drawFigures(e,t,n,r,a)}clear(){i.cleanup()}};var i=function(){function e(e,t,n){var r=e.createShader(n);if(e.shaderSource(r,t),e.compileShader(r),!e.getShaderParameter(r,e.COMPILE_STATUS)){var i=e.getShaderInfoLog(r);throw new Error("Error during shader compilation: "+i)}return r}function t(t,n){return e(t,n,t.VERTEX_SHADER)}function n(t,n){return e(t,n,t.FRAGMENT_SHADER)}function r(e,t){for(var n=e.createProgram(),r=0,i=t.length;r<i;++r)e.attachShader(n,t[r]);if(e.linkProgram(n),!e.getProgramParameter(n,e.LINK_STATUS)){var a=e.getProgramInfoLog(n);throw new Error("Error during program linking: "+a)}return n}function i(e,t,n){e.activeTexture(n);var r=e.createTexture();return e.bindTexture(e.TEXTURE_2D,r),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.NEAREST),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.NEAREST),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,t),r}var a,o;function s(){a||(o=document.createElement("canvas"),a=o.getContext("webgl",{premultipliedalpha:!1}))}var l=" 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; } ",c=" 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; } ",u=null;var h=" 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); } ",d=" precision mediump float; varying vec4 v_color; void main() { gl_FragColor = v_color; } ",f=null;return{tryInitGL(){try{return s(),!!a}catch(e){}return!1},composeSMask:function(e,h,d){var f=e.width,p=e.height;u||function(){var e,i;s(),e=o,o=null,i=a,a=null;var h=r(i,[t(i,l),n(i,c)]);i.useProgram(h);var d={};d.gl=i,d.canvas=e,d.resolutionLocation=i.getUniformLocation(h,"u_resolution"),d.positionLocation=i.getAttribLocation(h,"a_position"),d.backdropLocation=i.getUniformLocation(h,"u_backdrop"),d.subtypeLocation=i.getUniformLocation(h,"u_subtype");var f=i.getAttribLocation(h,"a_texCoord"),p=i.getUniformLocation(h,"u_image"),A=i.getUniformLocation(h,"u_mask"),g=i.createBuffer();i.bindBuffer(i.ARRAY_BUFFER,g),i.bufferData(i.ARRAY_BUFFER,new Float32Array([0,0,1,0,0,1,0,1,1,0,1,1]),i.STATIC_DRAW),i.enableVertexAttribArray(f),i.vertexAttribPointer(f,2,i.FLOAT,!1,0,0),i.uniform1i(p,0),i.uniform1i(A,1),u=d}();var A=u,g=A.canvas,m=A.gl;g.width=f,g.height=p,m.viewport(0,0,m.drawingBufferWidth,m.drawingBufferHeight),m.uniform2f(A.resolutionLocation,f,p),d.backdrop?m.uniform4f(A.resolutionLocation,d.backdrop[0],d.backdrop[1],d.backdrop[2],1):m.uniform4f(A.resolutionLocation,0,0,0,0),m.uniform1i(A.subtypeLocation,"Luminosity"===d.subtype?1:0);var v=i(m,e,m.TEXTURE0),y=i(m,h,m.TEXTURE1),b=m.createBuffer();return m.bindBuffer(m.ARRAY_BUFFER,b),m.bufferData(m.ARRAY_BUFFER,new Float32Array([0,0,f,0,0,p,0,p,f,0,f,p]),m.STATIC_DRAW),m.enableVertexAttribArray(A.positionLocation),m.vertexAttribPointer(A.positionLocation,2,m.FLOAT,!1,0,0),m.clearColor(0,0,0,0),m.enable(m.BLEND),m.blendFunc(m.ONE,m.ONE_MINUS_SRC_ALPHA),m.clear(m.COLOR_BUFFER_BIT),m.drawArrays(m.TRIANGLES,0,6),m.flush(),m.deleteTexture(v),m.deleteTexture(y),m.deleteBuffer(b),g},drawFigures:function(e,i,l,c,u){f||function(){var e,i;s(),e=o,o=null,i=a,a=null;var l=r(i,[t(i,h),n(i,d)]);i.useProgram(l);var c={};c.gl=i,c.canvas=e,c.resolutionLocation=i.getUniformLocation(l,"u_resolution"),c.scaleLocation=i.getUniformLocation(l,"u_scale"),c.offsetLocation=i.getUniformLocation(l,"u_offset"),c.positionLocation=i.getAttribLocation(l,"a_position"),c.colorLocation=i.getAttribLocation(l,"a_color"),f=c}();var p=f,A=p.canvas,g=p.gl;A.width=e,A.height=i,g.viewport(0,0,g.drawingBufferWidth,g.drawingBufferHeight),g.uniform2f(p.resolutionLocation,e,i);var m,v,y,b=0;for(m=0,v=c.length;m<v;m++)switch(c[m].type){case"lattice":b+=((y=c[m].coords.length/c[m].verticesPerRow|0)-1)*(c[m].verticesPerRow-1)*6;break;case"triangles":b+=c[m].coords.length}var w=new Float32Array(2*b),x=new Uint8Array(3*b),_=u.coords,C=u.colors,S=0,k=0;for(m=0,v=c.length;m<v;m++){var B=c[m],E=B.coords,T=B.colors;switch(B.type){case"lattice":var I=B.verticesPerRow;y=E.length/I|0;for(var M=1;M<y;M++)for(var F=M*I+1,D=1;D<I;D++,F++)w[S]=_[E[F-I-1]],w[S+1]=_[E[F-I-1]+1],w[S+2]=_[E[F-I]],w[S+3]=_[E[F-I]+1],w[S+4]=_[E[F-1]],w[S+5]=_[E[F-1]+1],x[k]=C[T[F-I-1]],x[k+1]=C[T[F-I-1]+1],x[k+2]=C[T[F-I-1]+2],x[k+3]=C[T[F-I]],x[k+4]=C[T[F-I]+1],x[k+5]=C[T[F-I]+2],x[k+6]=C[T[F-1]],x[k+7]=C[T[F-1]+1],x[k+8]=C[T[F-1]+2],w[S+6]=w[S+2],w[S+7]=w[S+3],w[S+8]=w[S+4],w[S+9]=w[S+5],w[S+10]=_[E[F]],w[S+11]=_[E[F]+1],x[k+9]=x[k+3],x[k+10]=x[k+4],x[k+11]=x[k+5],x[k+12]=x[k+6],x[k+13]=x[k+7],x[k+14]=x[k+8],x[k+15]=C[T[F]],x[k+16]=C[T[F]+1],x[k+17]=C[T[F]+2],S+=12,k+=18;break;case"triangles":for(var P=0,O=E.length;P<O;P++)w[S]=_[E[P]],w[S+1]=_[E[P]+1],x[k]=C[T[P]],x[k+1]=C[T[P]+1],x[k+2]=C[T[P]+2],S+=2,k+=3}}l?g.clearColor(l[0]/255,l[1]/255,l[2]/255,1):g.clearColor(0,0,0,0),g.clear(g.COLOR_BUFFER_BIT);var L=g.createBuffer();g.bindBuffer(g.ARRAY_BUFFER,L),g.bufferData(g.ARRAY_BUFFER,w,g.STATIC_DRAW),g.enableVertexAttribArray(p.positionLocation),g.vertexAttribPointer(p.positionLocation,2,g.FLOAT,!1,0,0);var R=g.createBuffer();return g.bindBuffer(g.ARRAY_BUFFER,R),g.bufferData(g.ARRAY_BUFFER,x,g.STATIC_DRAW),g.enableVertexAttribArray(p.colorLocation),g.vertexAttribPointer(p.colorLocation,3,g.UNSIGNED_BYTE,!1,0,0),g.uniform2f(p.scaleLocation,u.scaleX,u.scaleY),g.uniform2f(p.offsetLocation,u.offsetX,u.offsetY),g.drawArrays(g.TRIANGLES,0,b),g.flush(),g.deleteBuffer(L),g.deleteBuffer(R),A},cleanup(){u&&u.canvas&&(u.canvas.width=0,u.canvas.height=0),f&&f.canvas&&(f.canvas.width=0,f.canvas.height=0),u=null,f=null}}}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AnnotationLayer=void 0;var r=n(1),i=n(2);class a{static create(e){switch(e.data.annotationType){case i.AnnotationType.LINK:return new s(e);case i.AnnotationType.TEXT:return new l(e);case i.AnnotationType.WIDGET:switch(e.data.fieldType){case"Tx":return new u(e);case"Btn":return e.data.radioButton?new d(e):e.data.checkBox?new h(e):new f(e);case"Ch":return new p(e)}return new c(e);case i.AnnotationType.POPUP:return new A(e);case i.AnnotationType.FREETEXT:return new m(e);case i.AnnotationType.LINE:return new v(e);case i.AnnotationType.SQUARE:return new y(e);case i.AnnotationType.CIRCLE:return new b(e);case i.AnnotationType.POLYLINE:return new w(e);case i.AnnotationType.CARET:return new _(e);case i.AnnotationType.INK:return new C(e);case i.AnnotationType.POLYGON:return new x(e);case i.AnnotationType.HIGHLIGHT:return new S(e);case i.AnnotationType.UNDERLINE:return new k(e);case i.AnnotationType.SQUIGGLY:return new B(e);case i.AnnotationType.STRIKEOUT:return new E(e);case i.AnnotationType.STAMP:return new T(e);case i.AnnotationType.FILEATTACHMENT:return new I(e);default:return new o(e)}}}class o{constructor(e,t=!1,n=!1){this.isRenderable=t,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,t&&(this.container=this._createContainer(n))}_createContainer(e=!1){const t=this.data,n=this.page,r=this.viewport,a=document.createElement("section");let o=t.rect[2]-t.rect[0],s=t.rect[3]-t.rect[1];a.setAttribute("data-annotation-id",t.id);const l=i.Util.normalizeRect([t.rect[0],n.view[3]-t.rect[1]+n.view[1],t.rect[2],n.view[3]-t.rect[3]+n.view[1]]);if(a.style.transform=`matrix(${r.transform.join(",")})`,a.style.transformOrigin=`-${l[0]}px -${l[1]}px`,!e&&t.borderStyle.width>0){a.style.borderWidth=`${t.borderStyle.width}px`,t.borderStyle.style!==i.AnnotationBorderStyleType.UNDERLINE&&(o-=2*t.borderStyle.width,s-=2*t.borderStyle.width);const e=t.borderStyle.horizontalCornerRadius,n=t.borderStyle.verticalCornerRadius;if(e>0||n>0){const t=`${e}px / ${n}px`;a.style.borderRadius=t}switch(t.borderStyle.style){case i.AnnotationBorderStyleType.SOLID:a.style.borderStyle="solid";break;case i.AnnotationBorderStyleType.DASHED:a.style.borderStyle="dashed";break;case i.AnnotationBorderStyleType.BEVELED:(0,i.warn)("Unimplemented border style: beveled");break;case i.AnnotationBorderStyleType.INSET:(0,i.warn)("Unimplemented border style: inset");break;case i.AnnotationBorderStyleType.UNDERLINE:a.style.borderBottomStyle="solid"}t.color?a.style.borderColor=i.Util.makeCssRgb(0|t.color[0],0|t.color[1],0|t.color[2]):a.style.borderWidth=0}return a.style.left=`${l[0]}px`,a.style.top=`${l[1]}px`,a.style.width=`${o}px`,a.style.height=`${s}px`,a}_createPopup(e,t,n){t||((t=document.createElement("div")).style.height=e.style.height,t.style.width=e.style.width,e.appendChild(t));const r=new g({container:e,trigger:t,color:n.color,title:n.title,modificationDate:n.modificationDate,contents:n.contents,hideWrapper:!0}).render();r.style.left=e.style.width,e.appendChild(r)}render(){(0,i.unreachable)("Abstract method `AnnotationElement.render` called")}}class s extends o{constructor(e){super(e,!!(e.data.url||e.data.dest||e.data.action))}render(){this.container.className="linkAnnotation";const{data:e,linkService:t}=this,n=document.createElement("a");return e.url?(0,r.addLinkAttributes)(n,{url:e.url,target:e.newWindow?r.LinkTarget.BLANK:t.externalLinkTarget,rel:t.externalLinkRel,enabled:t.externalLinkEnabled}):e.action?this._bindNamedAction(n,e.action):this._bindLink(n,e.dest),this.container.appendChild(n),this.container}_bindLink(e,t){e.href=this.linkService.getDestinationHash(t),e.onclick=(()=>(t&&this.linkService.navigateTo(t),!1)),t&&(e.className="internalLink")}_bindNamedAction(e,t){e.href=this.linkService.getAnchorUrl(""),e.onclick=(()=>(this.linkService.executeNamedAction(t),!1)),e.className="internalLink"}}class l extends o{constructor(e){super(e,!!(e.data.hasPopup||e.data.title||e.data.contents))}render(){this.container.className="textAnnotation";const e=document.createElement("img");return e.style.height=this.container.style.height,e.style.width=this.container.style.width,e.src=this.imageResourcesPath+"annotation-"+this.data.name.toLowerCase()+".svg",e.alt="[{{type}} Annotation]",e.dataset.l10nId="text_annotation_type",e.dataset.l10nArgs=JSON.stringify({type:this.data.name}),this.data.hasPopup||this._createPopup(this.container,e,this.data),this.container.appendChild(e),this.container}}class c extends o{render(){return this.container}}class u extends c{constructor(e){super(e,e.renderInteractiveForms||!e.data.hasAppearance&&!!e.data.fieldValue)}render(){const e=["left","center","right"];this.container.className="textWidgetAnnotation";let t=null;if(this.renderInteractiveForms){if(this.data.multiLine?(t=document.createElement("textarea")).textContent=this.data.fieldValue:((t=document.createElement("input")).type="text",t.setAttribute("value",this.data.fieldValue)),t.disabled=this.data.readOnly,t.name=this.data.fieldName,null!==this.data.maxLen&&(t.maxLength=this.data.maxLen),this.data.comb){const e=(this.data.rect[2]-this.data.rect[0])/this.data.maxLen;t.classList.add("comb"),t.style.letterSpacing=`calc(${e}px - 1ch)`}}else{(t=document.createElement("div")).textContent=this.data.fieldValue,t.style.verticalAlign="middle",t.style.display="table-cell";let e=null;this.data.fontRefName&&this.page.commonObjs.has(this.data.fontRefName)&&(e=this.page.commonObjs.get(this.data.fontRefName)),this._setTextStyle(t,e)}return null!==this.data.textAlignment&&(t.style.textAlign=e[this.data.textAlignment]),this.container.appendChild(t),this.container}_setTextStyle(e,t){const n=e.style;if(n.fontSize=`${this.data.fontSize}px`,n.direction=this.data.fontDirection<0?"rtl":"ltr",!t)return;let r="normal";t.black?r="900":t.bold&&(r="bold"),n.fontWeight=r,n.fontStyle=t.italic?"italic":"normal";const i=t.loadedName?`"${t.loadedName}", `:"",a=t.fallbackName||"Helvetica, sans-serif";n.fontFamily=i+a}}class h extends c{constructor(e){super(e,e.renderInteractiveForms)}render(){this.container.className="buttonWidgetAnnotation checkBox";const e=document.createElement("input");return e.disabled=this.data.readOnly,e.type="checkbox",e.name=this.data.fieldName,this.data.fieldValue&&"Off"!==this.data.fieldValue&&e.setAttribute("checked",!0),this.container.appendChild(e),this.container}}class d extends c{constructor(e){super(e,e.renderInteractiveForms)}render(){this.container.className="buttonWidgetAnnotation radioButton";const e=document.createElement("input");return e.disabled=this.data.readOnly,e.type="radio",e.name=this.data.fieldName,this.data.fieldValue===this.data.buttonValue&&e.setAttribute("checked",!0),this.container.appendChild(e),this.container}}class f extends s{render(){const e=super.render();return e.className="buttonWidgetAnnotation pushButton",e}}class p extends c{constructor(e){super(e,e.renderInteractiveForms)}render(){this.container.className="choiceWidgetAnnotation";const e=document.createElement("select");e.disabled=this.data.readOnly,e.name=this.data.fieldName,this.data.combo||(e.size=this.data.options.length,this.data.multiSelect&&(e.multiple=!0));for(const t of this.data.options){const n=document.createElement("option");n.textContent=t.displayValue,n.value=t.exportValue,this.data.fieldValue.includes(t.displayValue)&&n.setAttribute("selected",!0),e.appendChild(n)}return this.container.appendChild(e),this.container}}class A extends o{constructor(e){super(e,!(!e.data.title&&!e.data.contents))}render(){if(this.container.className="popupAnnotation",["Line","Square","Circle","PolyLine","Polygon","Ink"].includes(this.data.parentType))return this.container;const e=`[data-annotation-id="${this.data.parentId}"]`,t=this.layer.querySelector(e);if(!t)return this.container;const n=new g({container:this.container,trigger:t,color:this.data.color,title:this.data.title,modificationDate:this.data.modificationDate,contents:this.data.contents}),r=parseFloat(t.style.left),i=parseFloat(t.style.width);return this.container.style.transformOrigin=`-${r+i}px -${t.style.top}`,this.container.style.left=`${r+i}px`,this.container.appendChild(n.render()),this.container}}class g{constructor(e){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}render(){const e=document.createElement("div");e.className="popupWrapper",this.hideElement=this.hideWrapper?e:this.container,this.hideElement.setAttribute("hidden",!0);const t=document.createElement("div");t.className="popup";const n=this.color;if(n){const e=.7*(255-n[0])+n[0],r=.7*(255-n[1])+n[1],a=.7*(255-n[2])+n[2];t.style.backgroundColor=i.Util.makeCssRgb(0|e,0|r,0|a)}const a=document.createElement("h1");a.textContent=this.title,t.appendChild(a);const o=r.PDFDateString.toDateObject(this.modificationDate);if(o){const e=document.createElement("span");e.textContent="{{date}}, {{time}}",e.dataset.l10nId="annotation_date_string",e.dataset.l10nArgs=JSON.stringify({date:o.toLocaleDateString(),time:o.toLocaleTimeString()}),t.appendChild(e)}const s=this._formatContents(this.contents);return t.appendChild(s),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)),t.addEventListener("click",this._hide.bind(this,!0)),e.appendChild(t),e}_formatContents(e){const t=document.createElement("p"),n=e.split(/(?:\r\n?|\n)/);for(let e=0,r=n.length;e<r;++e){const i=n[e];t.appendChild(document.createTextNode(i)),e<r-1&&t.appendChild(document.createElement("br"))}return t}_toggle(){this.pinned?this._hide(!0):this._show(!0)}_show(e=!1){e&&(this.pinned=!0),this.hideElement.hasAttribute("hidden")&&(this.hideElement.removeAttribute("hidden"),this.container.style.zIndex+=1)}_hide(e=!0){e&&(this.pinned=!1),this.hideElement.hasAttribute("hidden")||this.pinned||(this.hideElement.setAttribute("hidden",!0),this.container.style.zIndex-=1)}}class m extends o{constructor(e){super(e,!!(e.data.hasPopup||e.data.title||e.data.contents),!0)}render(){return this.container.className="freeTextAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}class v extends o{constructor(e){super(e,!!(e.data.hasPopup||e.data.title||e.data.contents),!0)}render(){this.container.className="lineAnnotation";const e=this.data,t=e.rect[2]-e.rect[0],n=e.rect[3]-e.rect[1],r=this.svgFactory.create(t,n),i=this.svgFactory.createElement("svg:line");return i.setAttribute("x1",e.rect[2]-e.lineCoordinates[0]),i.setAttribute("y1",e.rect[3]-e.lineCoordinates[1]),i.setAttribute("x2",e.rect[2]-e.lineCoordinates[2]),i.setAttribute("y2",e.rect[3]-e.lineCoordinates[3]),i.setAttribute("stroke-width",e.borderStyle.width||1),i.setAttribute("stroke","transparent"),r.appendChild(i),this.container.append(r),this._createPopup(this.container,i,e),this.container}}class y extends o{constructor(e){super(e,!!(e.data.hasPopup||e.data.title||e.data.contents),!0)}render(){this.container.className="squareAnnotation";const e=this.data,t=e.rect[2]-e.rect[0],n=e.rect[3]-e.rect[1],r=this.svgFactory.create(t,n),i=e.borderStyle.width,a=this.svgFactory.createElement("svg:rect");return a.setAttribute("x",i/2),a.setAttribute("y",i/2),a.setAttribute("width",t-i),a.setAttribute("height",n-i),a.setAttribute("stroke-width",i||1),a.setAttribute("stroke","transparent"),a.setAttribute("fill","none"),r.appendChild(a),this.container.append(r),this._createPopup(this.container,a,e),this.container}}class b extends o{constructor(e){super(e,!!(e.data.hasPopup||e.data.title||e.data.contents),!0)}render(){this.container.className="circleAnnotation";const e=this.data,t=e.rect[2]-e.rect[0],n=e.rect[3]-e.rect[1],r=this.svgFactory.create(t,n),i=e.borderStyle.width,a=this.svgFactory.createElement("svg:ellipse");return a.setAttribute("cx",t/2),a.setAttribute("cy",n/2),a.setAttribute("rx",t/2-i/2),a.setAttribute("ry",n/2-i/2),a.setAttribute("stroke-width",i||1),a.setAttribute("stroke","transparent"),a.setAttribute("fill","none"),r.appendChild(a),this.container.append(r),this._createPopup(this.container,a,e),this.container}}class w extends o{constructor(e){super(e,!!(e.data.hasPopup||e.data.title||e.data.contents),!0),this.containerClassName="polylineAnnotation",this.svgElementName="svg:polyline"}render(){this.container.className=this.containerClassName;const e=this.data,t=e.rect[2]-e.rect[0],n=e.rect[3]-e.rect[1],r=this.svgFactory.create(t,n);let i=[];for(const t of e.vertices){const n=t.x-e.rect[0],r=e.rect[3]-t.y;i.push(n+","+r)}i=i.join(" ");const a=this.svgFactory.createElement(this.svgElementName);return a.setAttribute("points",i),a.setAttribute("stroke-width",e.borderStyle.width||1),a.setAttribute("stroke","transparent"),a.setAttribute("fill","none"),r.appendChild(a),this.container.append(r),this._createPopup(this.container,a,e),this.container}}class x extends w{constructor(e){super(e),this.containerClassName="polygonAnnotation",this.svgElementName="svg:polygon"}}class _ extends o{constructor(e){super(e,!!(e.data.hasPopup||e.data.title||e.data.contents),!0)}render(){return this.container.className="caretAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}class C extends o{constructor(e){super(e,!!(e.data.hasPopup||e.data.title||e.data.contents),!0),this.containerClassName="inkAnnotation",this.svgElementName="svg:polyline"}render(){this.container.className=this.containerClassName;const e=this.data,t=e.rect[2]-e.rect[0],n=e.rect[3]-e.rect[1],r=this.svgFactory.create(t,n);for(const t of e.inkLists){let n=[];for(const r of t){const t=r.x-e.rect[0],i=e.rect[3]-r.y;n.push(`${t},${i}`)}n=n.join(" ");const i=this.svgFactory.createElement(this.svgElementName);i.setAttribute("points",n),i.setAttribute("stroke-width",e.borderStyle.width||1),i.setAttribute("stroke","transparent"),i.setAttribute("fill","none"),this._createPopup(this.container,i,e),r.appendChild(i)}return this.container.append(r),this.container}}class S extends o{constructor(e){super(e,!!(e.data.hasPopup||e.data.title||e.data.contents),!0)}render(){return this.container.className="highlightAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}class k extends o{constructor(e){super(e,!!(e.data.hasPopup||e.data.title||e.data.contents),!0)}render(){return this.container.className="underlineAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}class B extends o{constructor(e){super(e,!!(e.data.hasPopup||e.data.title||e.data.contents),!0)}render(){return this.container.className="squigglyAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}class E extends o{constructor(e){super(e,!!(e.data.hasPopup||e.data.title||e.data.contents),!0)}render(){return this.container.className="strikeoutAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}class T extends o{constructor(e){super(e,!!(e.data.hasPopup||e.data.title||e.data.contents),!0)}render(){return this.container.className="stampAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}class I extends o{constructor(e){super(e,!0);const{filename:t,content:n}=this.data.file;this.filename=(0,r.getFilenameFromUrl)(t),this.content=n,this.linkService.eventBus&&this.linkService.eventBus.dispatch("fileattachmentannotation",{source:this,id:(0,i.stringToPDFString)(t),filename:t,content:n})}render(){this.container.className="fileAttachmentAnnotation";const e=document.createElement("div");return e.style.height=this.container.style.height,e.style.width=this.container.style.width,e.addEventListener("dblclick",this._download.bind(this)),this.data.hasPopup||!this.data.title&&!this.data.contents||this._createPopup(this.container,e,this.data),this.container.appendChild(e),this.container}_download(){this.downloadManager?this.downloadManager.downloadData(this.content,this.filename,""):(0,i.warn)("Download cannot be started due to unavailable download manager")}}t.AnnotationLayer=class{static render(e){const t=[],n=[];for(const r of e.annotations)r&&(r.annotationType!==i.AnnotationType.POPUP?t.push(r):n.push(r));n.length&&t.push(...n);for(const n of t){const t=a.create({data:n,layer:e.div,page:e.page,viewport:e.viewport,linkService:e.linkService,downloadManager:e.downloadManager,imageResourcesPath:e.imageResourcesPath||"",renderInteractiveForms:e.renderInteractiveForms||!1,svgFactory:new r.DOMSVGFactory});t.isRenderable&&e.div.appendChild(t.render())}}static update(e){for(const t of e.annotations){const n=e.div.querySelector(`[data-annotation-id="${t.id}"]`);n&&(n.style.transform=`matrix(${e.viewport.transform.join(",")})`)}e.div.removeAttribute("hidden")}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.renderTextLayer=void 0;var r=n(2),i=function(){var e=1e5,t=/\S/;function n(e,n,i){var a,o=document.createElement("span"),s={angle:0,canvasWidth:0,isWhitespace:!1,originalTransform:null,paddingBottom:0,paddingLeft:0,paddingRight:0,paddingTop:0,scale:1};if(e._textDivs.push(o),a=n.str,!t.test(a))return s.isWhitespace=!0,void e._textDivProperties.set(o,s);var l=r.Util.transform(e._viewport.transform,n.transform),c=Math.atan2(l[1],l[0]),u=i[n.fontName];u.vertical&&(c+=Math.PI/2);var h=Math.sqrt(l[2]*l[2]+l[3]*l[3]),d=h;let f,p;u.ascent?d=u.ascent*d:u.descent&&(d=(1+u.descent)*d),0===c?(f=l[4],p=l[5]-d):(f=l[4]+d*Math.sin(c),p=l[5]-d*Math.cos(c)),o.style.left=`${f}px`,o.style.top=`${p}px`,o.style.fontSize=`${h}px`,o.style.fontFamily=u.fontFamily,o.textContent=n.str,e._fontInspectorEnabled&&(o.dataset.fontName=n.fontName),0!==c&&(s.angle=c*(180/Math.PI));let A=!1;if(n.str.length>1)A=!0;else if(n.transform[0]!==n.transform[3]){const e=Math.abs(n.transform[0]),t=Math.abs(n.transform[3]);e!==t&&Math.max(e,t)/Math.min(e,t)>1.5&&(A=!0)}if(A&&(u.vertical?s.canvasWidth=n.height*e._viewport.scale:s.canvasWidth=n.width*e._viewport.scale),e._textDivProperties.set(o,s),e._textContentStream&&e._layoutText(o),e._enhanceTextSelection){var g=1,m=0;0!==c&&(g=Math.cos(c),m=Math.sin(c));var v,y,b=(u.vertical?n.height:n.width)*e._viewport.scale,w=h;0!==c?(v=[g,m,-m,g,f,p],y=r.Util.getAxialAlignedBoundingBox([0,0,b,w],v)):y=[f,p,f+b,p+w],e._bounds.push({left:y[0],top:y[1],right:y[2],bottom:y[3],div:o,size:[b,w],m:v})}}function i(t){if(!t._canceled){var n=t._textDivs,r=t._capability,i=n.length;if(i>e)return t._renderingDone=!0,void r.resolve();if(!t._textContentStream)for(var a=0;a<i;a++)t._layoutText(n[a]);t._renderingDone=!0,r.resolve()}}function a(e,t,n){let r=0;for(let i=0;i<n;i++){const n=e[t++];n>0&&(r=r?Math.min(n,r):n)}return r}function o(e){for(var t=e._bounds,n=e._viewport,i=function(e,t,n){var r=n.map(function(e,t){return{x1:e.left,y1:e.top,x2:e.right,y2:e.bottom,index:t,x1New:void 0,x2New:void 0}});s(e,r);var i=new Array(n.length);return r.forEach(function(e){var t=e.index;i[t]={left:e.x1New,top:0,right:e.x2New,bottom:0}}),n.map(function(t,n){var a=i[n],o=r[n];o.x1=t.top,o.y1=e-a.right,o.x2=t.bottom,o.y2=e-a.left,o.index=n,o.x1New=void 0,o.x2New=void 0}),s(t,r),r.forEach(function(e){var t=e.index;i[t].top=e.x1New,i[t].bottom=e.x2New}),i}(n.width,n.height,t),o=0;o<i.length;o++){var l=t[o].div,c=e._textDivProperties.get(l);if(0!==c.angle){var u=i[o],h=t[o],d=h.m,f=d[0],p=d[1],A=[[0,0],[0,h.size[1]],[h.size[0],0],h.size],g=new Float64Array(64);A.forEach(function(e,t){var n=r.Util.applyTransform(e,d);g[t+0]=f&&(u.left-n[0])/f,g[t+4]=p&&(u.top-n[1])/p,g[t+8]=f&&(u.right-n[0])/f,g[t+12]=p&&(u.bottom-n[1])/p,g[t+16]=p&&(u.left-n[0])/-p,g[t+20]=f&&(u.top-n[1])/f,g[t+24]=p&&(u.right-n[0])/-p,g[t+28]=f&&(u.bottom-n[1])/f,g[t+32]=f&&(u.left-n[0])/-f,g[t+36]=p&&(u.top-n[1])/-p,g[t+40]=f&&(u.right-n[0])/-f,g[t+44]=p&&(u.bottom-n[1])/-p,g[t+48]=p&&(u.left-n[0])/p,g[t+52]=f&&(u.top-n[1])/-f,g[t+56]=p&&(u.right-n[0])/p,g[t+60]=f&&(u.bottom-n[1])/-f});var m=1+Math.min(Math.abs(f),Math.abs(p));c.paddingLeft=a(g,32,16)/m,c.paddingTop=a(g,48,16)/m,c.paddingRight=a(g,0,16)/m,c.paddingBottom=a(g,16,16)/m,e._textDivProperties.set(l,c)}else c.paddingLeft=t[o].left-i[o].left,c.paddingTop=t[o].top-i[o].top,c.paddingRight=i[o].right-t[o].right,c.paddingBottom=i[o].bottom-t[o].bottom,e._textDivProperties.set(l,c)}}function s(e,t){t.sort(function(e,t){return e.x1-t.x1||e.index-t.index});var n=[{start:-1/0,end:1/0,boundary:{x1:-1/0,y1:-1/0,x2:0,y2:1/0,index:-1,x1New:0,x2New:0}}];t.forEach(function(e){for(var t=0;t<n.length&&n[t].end<=e.y1;)t++;for(var r,i,a=n.length-1;a>=0&&n[a].start>=e.y2;)a--;var o,s,l=-1/0;for(o=t;o<=a;o++){var c;(c=(i=(r=n[o]).boundary).x2>e.x1?i.index>e.index?i.x1New:e.x1:void 0===i.x2New?(i.x2+e.x1)/2:i.x2New)>l&&(l=c)}for(e.x1New=l,o=t;o<=a;o++)void 0===(i=(r=n[o]).boundary).x2New?i.x2>e.x1?i.index>e.index&&(i.x2New=i.x2):i.x2New=l:i.x2New>l&&(i.x2New=Math.max(l,i.x2));var u=[],h=null;for(o=t;o<=a;o++){var d=(i=(r=n[o]).boundary).x2>e.x2?i:e;h===d?u[u.length-1].end=r.end:(u.push({start:r.start,end:r.end,boundary:d}),h=d)}for(n[t].start<e.y1&&(u[0].start=e.y1,u.unshift({start:n[t].start,end:e.y1,boundary:n[t].boundary})),e.y2<n[a].end&&(u[u.length-1].end=e.y2,u.push({start:e.y2,end:n[a].end,boundary:n[a].boundary})),o=t;o<=a;o++)if(void 0===(i=(r=n[o]).boundary).x2New){var f=!1;for(s=t-1;!f&&s>=0&&n[s].start>=i.y1;s--)f=n[s].boundary===i;for(s=a+1;!f&&s<n.length&&n[s].end<=i.y2;s++)f=n[s].boundary===i;for(s=0;!f&&s<u.length;s++)f=u[s].boundary===i;f||(i.x2New=l)}Array.prototype.splice.apply(n,[t,a-t+1].concat(u))}),n.forEach(function(t){var n=t.boundary;void 0===n.x2New&&(n.x2New=Math.max(e,n.x2))})}function l({textContent:e,textContentStream:t,container:n,viewport:i,textDivs:a,textContentItemsStr:o,enhanceTextSelection:s}){this._textContent=e,this._textContentStream=t,this._container=n,this._viewport=i,this._textDivs=a||[],this._textContentItemsStr=o||[],this._enhanceTextSelection=!!s,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(()=>{this._layoutTextCtx&&(this._layoutTextCtx.canvas.width=0,this._layoutTextCtx.canvas.height=0,this._layoutTextCtx=null)}).catch(()=>{})}return l.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(e,t){for(let r=0,i=e.length;r<i;r++)this._textContentItemsStr.push(e[r].str),n(this,e[r],t)},_layoutText(e){const t=this._textDivProperties.get(e);if(t.isWhitespace)return;let n="";if(0!==t.canvasWidth){const{fontSize:r,fontFamily:i}=e.style;r===this._layoutTextLastFontSize&&i===this._layoutTextLastFontFamily||(this._layoutTextCtx.font=`${r} ${i}`,this._layoutTextLastFontSize=r,this._layoutTextLastFontFamily=i);const{width:a}=this._layoutTextCtx.measureText(e.textContent);a>0&&(t.scale=t.canvasWidth/a,n=`scaleX(${t.scale})`)}0!==t.angle&&(n=`rotate(${t.angle}deg) ${n}`),n.length>0&&(this._enhanceTextSelection&&(t.originalTransform=n),e.style.transform=n),this._textDivProperties.set(e,t),this._container.appendChild(e)},_render:function(e){const t=(0,r.createPromiseCapability)();let n=Object.create(null);const a=document.createElement("canvas");if(a.mozOpaque=!0,this._layoutTextCtx=a.getContext("2d",{alpha:!1}),this._textContent){const e=this._textContent.items,n=this._textContent.styles;this._processItems(e,n),t.resolve()}else{if(!this._textContentStream)throw new Error('Neither "textContent" nor "textContentStream" parameters specified.');{const e=()=>{this._reader.read().then(({value:r,done:i})=>{i?t.resolve():(Object.assign(n,r.styles),this._processItems(r.items,n),e())},t.reject)};this._reader=this._textContentStream.getReader(),e()}}t.promise.then(()=>{n=null,e?this._renderTimer=setTimeout(()=>{i(this),this._renderTimer=null},e):i(this)},this._capability.reject)},expandTextDivs:function(e){if(!this._enhanceTextSelection||!this._renderingDone)return;null!==this._bounds&&(o(this),this._bounds=null);const t=[],n=[];for(var r=0,i=this._textDivs.length;r<i;r++){const i=this._textDivs[r],a=this._textDivProperties.get(i);a.isWhitespace||(e?(t.length=0,n.length=0,a.originalTransform&&t.push(a.originalTransform),a.paddingTop>0?(n.push(`${a.paddingTop}px`),t.push(`translateY(${-a.paddingTop}px)`)):n.push(0),a.paddingRight>0?n.push(`${a.paddingRight/a.scale}px`):n.push(0),a.paddingBottom>0?n.push(`${a.paddingBottom}px`):n.push(0),a.paddingLeft>0?(n.push(`${a.paddingLeft/a.scale}px`),t.push(`translateX(${-a.paddingLeft/a.scale}px)`)):n.push(0),i.style.padding=n.join(" "),t.length&&(i.style.transform=t.join(" "))):(i.style.padding=null,i.style.transform=a.originalTransform))}}},function(e){var t=new l({textContent:e.textContent,textContentStream:e.textContentStream,container:e.container,viewport:e.viewport,textDivs:e.textDivs,textContentItemsStr:e.textContentItemsStr,enhanceTextSelection:e.enhanceTextSelection});return t._render(e.timeout),t}}();t.renderTextLayer=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SVGGraphics=void 0;var r=n(2),i=n(1),a=n(4);let o=function(){throw new Error("Not implemented: SVGGraphics")};t.SVGGraphics=o;{const e={fontStyle:"normal",fontWeight:"normal",fillColor:"#000000"},n="http://www.w3.org/XML/1998/namespace",c="http://www.w3.org/1999/xlink",u=["butt","round","square"],h=["miter","round","bevel"],d=function(){const e=new Uint8Array([137,80,78,71,13,10,26,10]),t=12,n=new Int32Array(256);for(let e=0;e<256;e++){let t=e;for(let e=0;e<8;e++)t=1&t?3988292384^t>>1&2147483647:t>>1&2147483647;n[e]=t}function i(e,t,r,i){let a=i;const o=t.length;r[a]=o>>24&255,r[a+1]=o>>16&255,r[a+2]=o>>8&255,r[a+3]=255&o,r[a+=4]=255&e.charCodeAt(0),r[a+1]=255&e.charCodeAt(1),r[a+2]=255&e.charCodeAt(2),r[a+3]=255&e.charCodeAt(3),a+=4,r.set(t,a);const s=function(e,t,r){let i=-1;for(let a=t;a<r;a++){const t=255&(i^e[a]);i=i>>>8^n[t]}return-1^i}(r,i+4,a+=t.length);r[a]=s>>24&255,r[a+1]=s>>16&255,r[a+2]=s>>8&255,r[a+3]=255&s}function o(e){let t=e.length;const n=Math.ceil(t/65535),r=new Uint8Array(2+t+5*n+4);let i=0;r[i++]=120,r[i++]=156;let a=0;for(;t>65535;)r[i++]=0,r[i++]=255,r[i++]=255,r[i++]=0,r[i++]=0,r.set(e.subarray(a,a+65535),i),i+=65535,a+=65535,t-=65535;r[i++]=1,r[i++]=255&t,r[i++]=t>>8&255,r[i++]=255&~t,r[i++]=(65535&~t)>>8&255,r.set(e.subarray(a),i),i+=e.length-a;const o=function(e,t,n){let r=1,i=0;for(let a=t;a<n;++a)i=(i+(r=(r+(255&e[a]))%65521))%65521;return i<<16|r}(e,0,e.length);return r[i++]=o>>24&255,r[i++]=o>>16&255,r[i++]=o>>8&255,r[i++]=255&o,r}function s(n,s,l,c){const u=n.width,h=n.height;let d,f,p;const A=n.data;switch(s){case r.ImageKind.GRAYSCALE_1BPP:f=0,d=1,p=u+7>>3;break;case r.ImageKind.RGB_24BPP:f=2,d=8,p=3*u;break;case r.ImageKind.RGBA_32BPP:f=6,d=8,p=4*u;break;default:throw new Error("invalid format")}const g=new Uint8Array((1+p)*h);let m=0,v=0;for(let e=0;e<h;++e)g[m++]=0,g.set(A.subarray(v,v+p),m),v+=p,m+=p;if(s===r.ImageKind.GRAYSCALE_1BPP&&c){m=0;for(let e=0;e<h;e++){m++;for(let e=0;e<p;e++)g[m++]^=255}}const y=new Uint8Array([u>>24&255,u>>16&255,u>>8&255,255&u,h>>24&255,h>>16&255,h>>8&255,255&h,d,f,0,0,0]),b=function(e){if(!a.isNodeJS)return o(e);try{let t;t=parseInt(process.versions.node)>=8?e:Buffer.from(e);const n=__webpack_require__(0).deflateSync(t,{level:9});return n instanceof Uint8Array?n:new Uint8Array(n)}catch(e){(0,r.warn)("Not compressing PNG because zlib.deflateSync is unavailable: "+e)}return o(e)}(g),w=e.length+3*t+y.length+b.length,x=new Uint8Array(w);let _=0;return x.set(e,_),i("IHDR",y,x,_+=e.length),i("IDATA",b,x,_+=t+y.length),_+=t+b.length,i("IEND",new Uint8Array(0),x,_),(0,r.createObjectURL)(x,"image/png",l)}return function(e,t,n){return s(e,void 0===e.kind?r.ImageKind.GRAYSCALE_1BPP:e.kind,t,n)}}();class f{constructor(){this.fontSizeScale=1,this.fontWeight=e.fontWeight,this.fontSize=0,this.textMatrix=r.IDENTITY_MATRIX,this.fontMatrix=r.FONT_IDENTITY_MATRIX,this.leading=0,this.textRenderingMode=r.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=e.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=""}clone(){return Object.create(this)}setCurrentPoint(e,t){this.x=e,this.y=t}}function s(e){if(Number.isInteger(e))return e.toString();const t=e.toFixed(10);let n=t.length-1;if("0"!==t[n])return t;do{n--}while("0"===t[n]);return t.substring(0,"."===t[n]?n:n+1)}function l(e){if(0===e[4]&&0===e[5]){if(0===e[1]&&0===e[2])return 1===e[0]&&1===e[3]?"":`scale(${s(e[0])} ${s(e[3])})`;if(e[0]===e[3]&&e[1]===-e[2]){return`rotate(${s(180*Math.acos(e[0])/Math.PI)})`}}else if(1===e[0]&&0===e[1]&&0===e[2]&&1===e[3])return`translate(${s(e[4])} ${s(e[5])})`;return`matrix(${s(e[0])} ${s(e[1])} ${s(e[2])} ${s(e[3])} ${s(e[4])} `+`${s(e[5])})`}let p=0,A=0,g=0;t.SVGGraphics=o=class{constructor(e,t,n=!1){this.svgFactory=new i.DOMSVGFactory,this.current=new f,this.transformMatrix=r.IDENTITY_MATRIX,this.transformStack=[],this.extraStack=[],this.commonObjs=e,this.objs=t,this.pendingClip=null,this.pendingEOFill=!1,this.embedFonts=!1,this.embeddedFonts=Object.create(null),this.cssStyle=null,this.forceDataSchema=!!n,this._operatorIdMapping=[];for(const e in r.OPS)this._operatorIdMapping[r.OPS[e]]=e}save(){this.transformStack.push(this.transformMatrix);const e=this.current;this.extraStack.push(e),this.current=e.clone()}restore(){this.transformMatrix=this.transformStack.pop(),this.current=this.extraStack.pop(),this.pendingClip=null,this.tgrp=null}group(e){this.save(),this.executeOpTree(e),this.restore()}loadDependencies(e){const t=e.fnArray,n=e.argsArray;for(let e=0,i=t.length;e<i;e++)if(t[e]===r.OPS.dependency)for(const t of n[e]){const e=t.startsWith("g_")?this.commonObjs:this.objs,n=new Promise(n=>{e.get(t,n)});this.current.dependencies.push(n)}return Promise.all(this.current.dependencies)}transform(e,t,n,i,a,o){const s=[e,t,n,i,a,o];this.transformMatrix=r.Util.transform(this.transformMatrix,s),this.tgrp=null}getSVG(e,t){this.viewport=t;const n=this._initialize(t);return this.loadDependencies(e).then(()=>(this.transformMatrix=r.IDENTITY_MATRIX,this.executeOpTree(this.convertOpList(e)),n))}convertOpList(e){const t=this._operatorIdMapping,n=e.argsArray,r=e.fnArray,i=[];for(let e=0,a=r.length;e<a;e++){const a=r[e];i.push({fnId:a,fn:t[a],args:n[e]})}return function(e){let t=[];const n=[];for(const r of e)"save"!==r.fn?"restore"===r.fn?t=n.pop():t.push(r):(t.push({fnId:92,fn:"group",items:[]}),n.push(t),t=t[t.length-1].items);return t}(i)}executeOpTree(e){for(const t of e){const e=t.fn,n=t.fnId,i=t.args;switch(0|n){case r.OPS.beginText:this.beginText();break;case r.OPS.dependency:break;case r.OPS.setLeading:this.setLeading(i);break;case r.OPS.setLeadingMoveText:this.setLeadingMoveText(i[0],i[1]);break;case r.OPS.setFont:this.setFont(i);break;case r.OPS.showText:case r.OPS.showSpacedText:this.showText(i[0]);break;case r.OPS.endText:this.endText();break;case r.OPS.moveText:this.moveText(i[0],i[1]);break;case r.OPS.setCharSpacing:this.setCharSpacing(i[0]);break;case r.OPS.setWordSpacing:this.setWordSpacing(i[0]);break;case r.OPS.setHScale:this.setHScale(i[0]);break;case r.OPS.setTextMatrix:this.setTextMatrix(i[0],i[1],i[2],i[3],i[4],i[5]);break;case r.OPS.setTextRise:this.setTextRise(i[0]);break;case r.OPS.setTextRenderingMode:this.setTextRenderingMode(i[0]);break;case r.OPS.setLineWidth:this.setLineWidth(i[0]);break;case r.OPS.setLineJoin:this.setLineJoin(i[0]);break;case r.OPS.setLineCap:this.setLineCap(i[0]);break;case r.OPS.setMiterLimit:this.setMiterLimit(i[0]);break;case r.OPS.setFillRGBColor:this.setFillRGBColor(i[0],i[1],i[2]);break;case r.OPS.setStrokeRGBColor:this.setStrokeRGBColor(i[0],i[1],i[2]);break;case r.OPS.setStrokeColorN:this.setStrokeColorN(i);break;case r.OPS.setFillColorN:this.setFillColorN(i);break;case r.OPS.shadingFill:this.shadingFill(i[0]);break;case r.OPS.setDash:this.setDash(i[0],i[1]);break;case r.OPS.setRenderingIntent:this.setRenderingIntent(i[0]);break;case r.OPS.setFlatness:this.setFlatness(i[0]);break;case r.OPS.setGState:this.setGState(i[0]);break;case r.OPS.fill:this.fill();break;case r.OPS.eoFill:this.eoFill();break;case r.OPS.stroke:this.stroke();break;case r.OPS.fillStroke:this.fillStroke();break;case r.OPS.eoFillStroke:this.eoFillStroke();break;case r.OPS.clip:this.clip("nonzero");break;case r.OPS.eoClip:this.clip("evenodd");break;case r.OPS.paintSolidColorImageMask:this.paintSolidColorImageMask();break;case r.OPS.paintImageXObject:this.paintImageXObject(i[0]);break;case r.OPS.paintInlineImageXObject:this.paintInlineImageXObject(i[0]);break;case r.OPS.paintImageMaskXObject:this.paintImageMaskXObject(i[0]);break;case r.OPS.paintFormXObjectBegin:this.paintFormXObjectBegin(i[0],i[1]);break;case r.OPS.paintFormXObjectEnd:this.paintFormXObjectEnd();break;case r.OPS.closePath:this.closePath();break;case r.OPS.closeStroke:this.closeStroke();break;case r.OPS.closeFillStroke:this.closeFillStroke();break;case r.OPS.closeEOFillStroke:this.closeEOFillStroke();break;case r.OPS.nextLine:this.nextLine();break;case r.OPS.transform:this.transform(i[0],i[1],i[2],i[3],i[4],i[5]);break;case r.OPS.constructPath:this.constructPath(i[0],i[1]);break;case r.OPS.endPath:this.endPath();break;case 92:this.group(t.items);break;default:(0,r.warn)(`Unimplemented operator ${e}`)}}}setWordSpacing(e){this.current.wordSpacing=e}setCharSpacing(e){this.current.charSpacing=e}nextLine(){this.moveText(0,this.current.leading)}setTextMatrix(e,t,n,r,i,a){const o=this.current;o.textMatrix=o.lineMatrix=[e,t,n,r,i,a],o.textMatrixScale=Math.sqrt(e*e+t*t),o.x=o.lineX=0,o.y=o.lineY=0,o.xcoords=[],o.ycoords=[],o.tspan=this.svgFactory.createElement("svg:tspan"),o.tspan.setAttributeNS(null,"font-family",o.fontFamily),o.tspan.setAttributeNS(null,"font-size",`${s(o.fontSize)}px`),o.tspan.setAttributeNS(null,"y",s(-o.y)),o.txtElement=this.svgFactory.createElement("svg:text"),o.txtElement.appendChild(o.tspan)}beginText(){const e=this.current;e.x=e.lineX=0,e.y=e.lineY=0,e.textMatrix=r.IDENTITY_MATRIX,e.lineMatrix=r.IDENTITY_MATRIX,e.textMatrixScale=1,e.tspan=this.svgFactory.createElement("svg:tspan"),e.txtElement=this.svgFactory.createElement("svg:text"),e.txtgrp=this.svgFactory.createElement("svg:g"),e.xcoords=[],e.ycoords=[]}moveText(e,t){const n=this.current;n.x=n.lineX+=e,n.y=n.lineY+=t,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",`${s(n.fontSize)}px`),n.tspan.setAttributeNS(null,"y",s(-n.y))}showText(t){const i=this.current,a=i.font,o=i.fontSize;if(0===o)return;const c=i.fontSizeScale,u=i.charSpacing,h=i.wordSpacing,d=i.fontDirection,f=i.textHScale*d,p=a.vertical,A=p?1:-1,g=a.defaultVMetrics,m=o*i.fontMatrix[0];let v=0;for(const e of t){if(null===e){v+=d*h;continue}if((0,r.isNum)(e)){v+=A*e*o/1e3;continue}const t=(e.isSpace?h:0)+u,n=e.fontChar;let s,l,f,y=e.width;if(p){let t;const n=e.vmetric||g;t=-(t=e.vmetric?n[1]:.5*y)*m;const r=n[2]*m;y=n?-n[0]:y,s=t/c,l=(v+r)/c}else s=v/c,l=0;(e.isInFont||a.missingFile)&&(i.xcoords.push(i.x+s),p&&i.ycoords.push(-i.y+l),i.tspan.textContent+=n),v+=f=p?y*m-t*d:y*m+t*d}i.tspan.setAttributeNS(null,"x",i.xcoords.map(s).join(" ")),p?i.tspan.setAttributeNS(null,"y",i.ycoords.map(s).join(" ")):i.tspan.setAttributeNS(null,"y",s(-i.y)),p?i.y-=v:i.x+=v*f,i.tspan.setAttributeNS(null,"font-family",i.fontFamily),i.tspan.setAttributeNS(null,"font-size",`${s(i.fontSize)}px`),i.fontStyle!==e.fontStyle&&i.tspan.setAttributeNS(null,"font-style",i.fontStyle),i.fontWeight!==e.fontWeight&&i.tspan.setAttributeNS(null,"font-weight",i.fontWeight);const y=i.textRenderingMode&r.TextRenderingMode.FILL_STROKE_MASK;if(y===r.TextRenderingMode.FILL||y===r.TextRenderingMode.FILL_STROKE?(i.fillColor!==e.fillColor&&i.tspan.setAttributeNS(null,"fill",i.fillColor),i.fillAlpha<1&&i.tspan.setAttributeNS(null,"fill-opacity",i.fillAlpha)):i.textRenderingMode===r.TextRenderingMode.ADD_TO_PATH?i.tspan.setAttributeNS(null,"fill","transparent"):i.tspan.setAttributeNS(null,"fill","none"),y===r.TextRenderingMode.STROKE||y===r.TextRenderingMode.FILL_STROKE){const e=1/(i.textMatrixScale||1);this._setStrokeAttributes(i.tspan,e)}let b=i.textMatrix;0!==i.textRise&&((b=b.slice())[5]+=i.textRise),i.txtElement.setAttributeNS(null,"transform",`${l(b)} scale(${s(f)}, -1)`),i.txtElement.setAttributeNS(n,"xml:space","preserve"),i.txtElement.appendChild(i.tspan),i.txtgrp.appendChild(i.txtElement),this._ensureTransformGroup().appendChild(i.txtElement)}setLeadingMoveText(e,t){this.setLeading(-t),this.moveText(e,t)}addFontStyle(e){if(!e.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));const t=(0,r.createObjectURL)(e.data,e.mimetype,this.forceDataSchema);this.cssStyle.textContent+=`@font-face { font-family: "${e.loadedName}";`+` src: url(${t}); }\n`}setFont(e){const t=this.current,n=this.commonObjs.get(e[0]);let i=e[1];t.font=n,!this.embedFonts||n.missingFile||this.embeddedFonts[n.loadedName]||(this.addFontStyle(n),this.embeddedFonts[n.loadedName]=n),t.fontMatrix=n.fontMatrix?n.fontMatrix:r.FONT_IDENTITY_MATRIX;let a="normal";n.black?a="900":n.bold&&(a="bold");const o=n.italic?"italic":"normal";i<0?(i=-i,t.fontDirection=-1):t.fontDirection=1,t.fontSize=i,t.fontFamily=n.loadedName,t.fontWeight=a,t.fontStyle=o,t.tspan=this.svgFactory.createElement("svg:tspan"),t.tspan.setAttributeNS(null,"y",s(-t.y)),t.xcoords=[],t.ycoords=[]}endText(){const e=this.current;e.textRenderingMode&r.TextRenderingMode.ADD_TO_PATH_FLAG&&e.txtElement&&e.txtElement.hasChildNodes()&&(e.element=e.txtElement,this.clip("nonzero"),this.endPath())}setLineWidth(e){e>0&&(this.current.lineWidth=e)}setLineCap(e){this.current.lineCap=u[e]}setLineJoin(e){this.current.lineJoin=h[e]}setMiterLimit(e){this.current.miterLimit=e}setStrokeAlpha(e){this.current.strokeAlpha=e}setStrokeRGBColor(e,t,n){this.current.strokeColor=r.Util.makeCssRgb(e,t,n)}setFillAlpha(e){this.current.fillAlpha=e}setFillRGBColor(e,t,n){this.current.fillColor=r.Util.makeCssRgb(e,t,n),this.current.tspan=this.svgFactory.createElement("svg:tspan"),this.current.xcoords=[],this.current.ycoords=[]}setStrokeColorN(e){this.current.strokeColor=this._makeColorN_Pattern(e)}setFillColorN(e){this.current.fillColor=this._makeColorN_Pattern(e)}shadingFill(e){const t=this.viewport.width,n=this.viewport.height,i=r.Util.inverseTransform(this.transformMatrix),a=r.Util.applyTransform([0,0],i),o=r.Util.applyTransform([0,n],i),s=r.Util.applyTransform([t,0],i),l=r.Util.applyTransform([t,n],i),c=Math.min(a[0],o[0],s[0],l[0]),u=Math.min(a[1],o[1],s[1],l[1]),h=Math.max(a[0],o[0],s[0],l[0]),d=Math.max(a[1],o[1],s[1],l[1]),f=this.svgFactory.createElement("svg:rect");f.setAttributeNS(null,"x",c),f.setAttributeNS(null,"y",u),f.setAttributeNS(null,"width",h-c),f.setAttributeNS(null,"height",d-u),f.setAttributeNS(null,"fill",this._makeShadingPattern(e)),this.current.fillAlpha<1&&f.setAttributeNS(null,"fill-opacity",this.current.fillAlpha),this._ensureTransformGroup().appendChild(f)}_makeColorN_Pattern(e){return"TilingPattern"===e[0]?this._makeTilingPattern(e):this._makeShadingPattern(e)}_makeTilingPattern(e){const t=e[1],n=e[2],i=e[3]||r.IDENTITY_MATRIX,[a,o,s,l]=e[4],c=e[5],u=e[6],h=e[7],d=`shading${g++}`,[f,p]=r.Util.applyTransform([a,o],i),[A,m]=r.Util.applyTransform([s,l],i),[v,y]=r.Util.singularValueDecompose2dScale(i),b=c*v,w=u*y,x=this.svgFactory.createElement("svg:pattern");x.setAttributeNS(null,"id",d),x.setAttributeNS(null,"patternUnits","userSpaceOnUse"),x.setAttributeNS(null,"width",b),x.setAttributeNS(null,"height",w),x.setAttributeNS(null,"x",`${f}`),x.setAttributeNS(null,"y",`${p}`);const _=this.svg,C=this.transformMatrix,S=this.current.fillColor,k=this.current.strokeColor,B=this.svgFactory.create(A-f,m-p);if(this.svg=B,this.transformMatrix=i,2===h){const e=r.Util.makeCssRgb(...t);this.current.fillColor=e,this.current.strokeColor=e}return this.executeOpTree(this.convertOpList(n)),this.svg=_,this.transformMatrix=C,this.current.fillColor=S,this.current.strokeColor=k,x.appendChild(B.childNodes[0]),this.defs.appendChild(x),`url(#${d})`}_makeShadingPattern(e){switch(e[0]){case"RadialAxial":const t=`shading${g++}`,n=e[3];let i;switch(e[1]){case"axial":const n=e[4],r=e[5];(i=this.svgFactory.createElement("svg:linearGradient")).setAttributeNS(null,"id",t),i.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),i.setAttributeNS(null,"x1",n[0]),i.setAttributeNS(null,"y1",n[1]),i.setAttributeNS(null,"x2",r[0]),i.setAttributeNS(null,"y2",r[1]);break;case"radial":const a=e[4],o=e[5],s=e[6],l=e[7];(i=this.svgFactory.createElement("svg:radialGradient")).setAttributeNS(null,"id",t),i.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),i.setAttributeNS(null,"cx",o[0]),i.setAttributeNS(null,"cy",o[1]),i.setAttributeNS(null,"r",l),i.setAttributeNS(null,"fx",a[0]),i.setAttributeNS(null,"fy",a[1]),i.setAttributeNS(null,"fr",s);break;default:throw new Error(`Unknown RadialAxial type: ${e[1]}`)}for(const e of n){const t=this.svgFactory.createElement("svg:stop");t.setAttributeNS(null,"offset",e[0]),t.setAttributeNS(null,"stop-color",e[1]),i.appendChild(t)}return this.defs.appendChild(i),`url(#${t})`;case"Mesh":return(0,r.warn)("Unimplemented pattern Mesh"),null;case"Dummy":return"hotpink";default:throw new Error(`Unknown IR type: ${e[0]}`)}}setDash(e,t){this.current.dashArray=e,this.current.dashPhase=t}constructPath(e,t){const n=this.current;let i=n.x,a=n.y,o=[],l=0;for(const n of e)switch(0|n){case r.OPS.rectangle:i=t[l++],a=t[l++];const e=i+t[l++],c=a+t[l++];o.push("M",s(i),s(a),"L",s(e),s(a),"L",s(e),s(c),"L",s(i),s(c),"Z");break;case r.OPS.moveTo:i=t[l++],a=t[l++],o.push("M",s(i),s(a));break;case r.OPS.lineTo:i=t[l++],a=t[l++],o.push("L",s(i),s(a));break;case r.OPS.curveTo:i=t[l+4],a=t[l+5],o.push("C",s(t[l]),s(t[l+1]),s(t[l+2]),s(t[l+3]),s(i),s(a)),l+=6;break;case r.OPS.curveTo2:o.push("C",s(i),s(a),s(t[l]),s(t[l+1]),s(t[l+2]),s(t[l+3])),i=t[l+2],a=t[l+3],l+=4;break;case r.OPS.curveTo3:i=t[l+2],a=t[l+3],o.push("C",s(t[l]),s(t[l+1]),s(i),s(a),s(i),s(a)),l+=4;break;case r.OPS.closePath:o.push("Z")}o=o.join(" "),n.path&&e.length>0&&e[0]!==r.OPS.rectangle&&e[0]!==r.OPS.moveTo?o=n.path.getAttributeNS(null,"d")+o:(n.path=this.svgFactory.createElement("svg:path"),this._ensureTransformGroup().appendChild(n.path)),n.path.setAttributeNS(null,"d",o),n.path.setAttributeNS(null,"fill","none"),n.element=n.path,n.setCurrentPoint(i,a)}endPath(){const e=this.current;if(e.path=null,!this.pendingClip)return;if(!e.element)return void(this.pendingClip=null);const t=`clippath${p++}`,n=this.svgFactory.createElement("svg:clipPath");n.setAttributeNS(null,"id",t),n.setAttributeNS(null,"transform",l(this.transformMatrix));const r=e.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),e.activeClipUrl&&(e.clipGroup=null,this.extraStack.forEach(function(e){e.clipGroup=null}),n.setAttributeNS(null,"clip-path",e.activeClipUrl)),e.activeClipUrl=`url(#${t})`,this.tgrp=null}clip(e){this.pendingClip=e}closePath(){const e=this.current;if(e.path){const t=`${e.path.getAttributeNS(null,"d")}Z`;e.path.setAttributeNS(null,"d",t)}}setLeading(e){this.current.leading=-e}setTextRise(e){this.current.textRise=e}setTextRenderingMode(e){this.current.textRenderingMode=e}setHScale(e){this.current.textHScale=e/100}setRenderingIntent(e){}setFlatness(e){}setGState(e){for(const[t,n]of e)switch(t){case"LW":this.setLineWidth(n);break;case"LC":this.setLineCap(n);break;case"LJ":this.setLineJoin(n);break;case"ML":this.setMiterLimit(n);break;case"D":this.setDash(n[0],n[1]);break;case"RI":this.setRenderingIntent(n);break;case"FL":this.setFlatness(n);break;case"Font":this.setFont(n);break;case"CA":this.setStrokeAlpha(n);break;case"ca":this.setFillAlpha(n);break;default:(0,r.warn)(`Unimplemented graphic state operator ${t}`)}}fill(){const e=this.current;e.element&&(e.element.setAttributeNS(null,"fill",e.fillColor),e.element.setAttributeNS(null,"fill-opacity",e.fillAlpha),this.endPath())}stroke(){const e=this.current;e.element&&(this._setStrokeAttributes(e.element),e.element.setAttributeNS(null,"fill","none"),this.endPath())}_setStrokeAttributes(e,t=1){const n=this.current;let r=n.dashArray;1!==t&&r.length>0&&(r=r.map(function(e){return t*e})),e.setAttributeNS(null,"stroke",n.strokeColor),e.setAttributeNS(null,"stroke-opacity",n.strokeAlpha),e.setAttributeNS(null,"stroke-miterlimit",s(n.miterLimit)),e.setAttributeNS(null,"stroke-linecap",n.lineCap),e.setAttributeNS(null,"stroke-linejoin",n.lineJoin),e.setAttributeNS(null,"stroke-width",s(t*n.lineWidth)+"px"),e.setAttributeNS(null,"stroke-dasharray",r.map(s).join(" ")),e.setAttributeNS(null,"stroke-dashoffset",s(t*n.dashPhase)+"px")}eoFill(){this.current.element&&this.current.element.setAttributeNS(null,"fill-rule","evenodd"),this.fill()}fillStroke(){this.stroke(),this.fill()}eoFillStroke(){this.current.element&&this.current.element.setAttributeNS(null,"fill-rule","evenodd"),this.fillStroke()}closeStroke(){this.closePath(),this.stroke()}closeFillStroke(){this.closePath(),this.fillStroke()}closeEOFillStroke(){this.closePath(),this.eoFillStroke()}paintSolidColorImageMask(){const e=this.svgFactory.createElement("svg:rect");e.setAttributeNS(null,"x","0"),e.setAttributeNS(null,"y","0"),e.setAttributeNS(null,"width","1px"),e.setAttributeNS(null,"height","1px"),e.setAttributeNS(null,"fill",this.current.fillColor),this._ensureTransformGroup().appendChild(e)}paintImageXObject(e){const t=this.objs.get(e);t?this.paintInlineImageXObject(t):(0,r.warn)(`Dependent image with object ID ${e} is not ready yet`)}paintInlineImageXObject(e,t){const n=e.width,r=e.height,i=d(e,this.forceDataSchema,!!t),a=this.svgFactory.createElement("svg:rect");a.setAttributeNS(null,"x","0"),a.setAttributeNS(null,"y","0"),a.setAttributeNS(null,"width",s(n)),a.setAttributeNS(null,"height",s(r)),this.current.element=a,this.clip("nonzero");const o=this.svgFactory.createElement("svg:image");o.setAttributeNS(c,"xlink:href",i),o.setAttributeNS(null,"x","0"),o.setAttributeNS(null,"y",s(-r)),o.setAttributeNS(null,"width",s(n)+"px"),o.setAttributeNS(null,"height",s(r)+"px"),o.setAttributeNS(null,"transform",`scale(${s(1/n)} ${s(-1/r)})`),t?t.appendChild(o):this._ensureTransformGroup().appendChild(o)}paintImageMaskXObject(e){const t=this.current,n=e.width,r=e.height,i=t.fillColor;t.maskId=`mask${A++}`;const a=this.svgFactory.createElement("svg:mask");a.setAttributeNS(null,"id",t.maskId);const o=this.svgFactory.createElement("svg:rect");o.setAttributeNS(null,"x","0"),o.setAttributeNS(null,"y","0"),o.setAttributeNS(null,"width",s(n)),o.setAttributeNS(null,"height",s(r)),o.setAttributeNS(null,"fill",i),o.setAttributeNS(null,"mask",`url(#${t.maskId})`),this.defs.appendChild(a),this._ensureTransformGroup().appendChild(o),this.paintInlineImageXObject(e,a)}paintFormXObjectBegin(e,t){if(Array.isArray(e)&&6===e.length&&this.transform(e[0],e[1],e[2],e[3],e[4],e[5]),t){const e=t[2]-t[0],n=t[3]-t[1],r=this.svgFactory.createElement("svg:rect");r.setAttributeNS(null,"x",t[0]),r.setAttributeNS(null,"y",t[1]),r.setAttributeNS(null,"width",s(e)),r.setAttributeNS(null,"height",s(n)),this.current.element=r,this.clip("nonzero"),this.endPath()}}paintFormXObjectEnd(){}_initialize(e){const t=this.svgFactory.create(e.width,e.height),n=this.svgFactory.createElement("svg:defs");t.appendChild(n),this.defs=n;const r=this.svgFactory.createElement("svg:g");return r.setAttributeNS(null,"transform",l(e.transform)),t.appendChild(r),this.svg=r,t}_ensureClipGroup(){if(!this.current.clipGroup){const e=this.svgFactory.createElement("svg:g");e.setAttributeNS(null,"clip-path",this.current.activeClipUrl),this.svg.appendChild(e),this.current.clipGroup=e}return this.current.clipGroup}_ensureTransformGroup(){return this.tgrp||(this.tgrp=this.svgFactory.createElement("svg:g"),this.tgrp.setAttributeNS(null,"transform",l(this.transformMatrix)),this.current.activeClipUrl?this._ensureClipGroup().appendChild(this.tgrp):this.svg.appendChild(this.tgrp)),this.tgrp}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PDFNodeStream=void 0;var r=n(2),i=n(20);const a=__webpack_require__(1),o=__webpack_require__(2),s=__webpack_require__(3),l=__webpack_require__(4),c=/^file:\/\/\/[a-zA-Z]:\//;t.PDFNodeStream=class{constructor(e){this.source=e,this.url=function(e){const t=l.parse(e);return"file:"===t.protocol||t.host?t:/^[a-z]:[/\\]/i.test(e)?l.parse(`file:///${e}`):(t.host||(t.protocol="file:"),t)}(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=[]}get _progressiveDataLength(){return this._fullRequestReader?this._fullRequestReader._loaded:0}getFullReader(){return(0,r.assert)(!this._fullRequestReader,"PDFNodeStream.getFullReader can only be called once."),this._fullRequestReader=this.isFsUrl?new A(this):new f(this),this._fullRequestReader}getRangeReader(e,t){if(t<=this._progressiveDataLength)return null;const n=this.isFsUrl?new g(this,e,t):new p(this,e,t);return this._rangeRequestReaders.push(n),n}cancelAllRequests(e){this._fullRequestReader&&this._fullRequestReader.cancel(e),this._rangeRequestReaders.slice(0).forEach(function(t){t.cancel(e)})}};class u{constructor(e){this._url=e.url,this._done=!1,this._storedError=null,this.onProgress=null;const t=e.source;this._contentLength=t.length,this._loaded=0,this._filename=null,this._disableRange=t.disableRange||!1,this._rangeChunkSize=t.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._isStreamingSupported=!t.disableStream,this._isRangeSupported=!t.disableRange,this._readableStream=null,this._readCapability=(0,r.createPromiseCapability)(),this._headersCapability=(0,r.createPromiseCapability)()}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;const e=this._readableStream.read();return null===e?(this._readCapability=(0,r.createPromiseCapability)(),this.read()):(this._loaded+=e.length,this.onProgress&&this.onProgress({loaded:this._loaded,total:this._contentLength}),{value:new Uint8Array(e).buffer,done:!1})}cancel(e){this._readableStream?this._readableStream.destroy(e):this._error(e)}_error(e){this._storedError=e,this._readCapability.resolve()}_setReadableStream(e){this._readableStream=e,e.on("readable",()=>{this._readCapability.resolve()}),e.on("end",()=>{e.destroy(),this._done=!0,this._readCapability.resolve()}),e.on("error",e=>{this._error(e)}),!this._isStreamingSupported&&this._isRangeSupported&&this._error(new r.AbortException("streaming is disabled")),this._storedError&&this._readableStream.destroy(this._storedError)}}class h{constructor(e){this._url=e.url,this._done=!1,this._storedError=null,this.onProgress=null,this._loaded=0,this._readableStream=null,this._readCapability=(0,r.createPromiseCapability)();const t=e.source;this._isStreamingSupported=!t.disableStream}get isStreamingSupported(){return this._isStreamingSupported}async read(){if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;const e=this._readableStream.read();return null===e?(this._readCapability=(0,r.createPromiseCapability)(),this.read()):(this._loaded+=e.length,this.onProgress&&this.onProgress({loaded:this._loaded}),{value:new Uint8Array(e).buffer,done:!1})}cancel(e){this._readableStream?this._readableStream.destroy(e):this._error(e)}_error(e){this._storedError=e,this._readCapability.resolve()}_setReadableStream(e){this._readableStream=e,e.on("readable",()=>{this._readCapability.resolve()}),e.on("end",()=>{e.destroy(),this._done=!0,this._readCapability.resolve()}),e.on("error",e=>{this._error(e)}),this._storedError&&this._readableStream.destroy(this._storedError)}}function d(e,t){return{protocol:e.protocol,auth:e.auth,host:e.hostname,port:e.port,path:e.path,method:"GET",headers:t}}class f extends u{constructor(e){super(e);const t=t=>{if(404===t.statusCode){const e=new r.MissingPDFException(`Missing PDF "${this._url}".`);return this._storedError=e,void this._headersCapability.reject(e)}this._headersCapability.resolve(),this._setReadableStream(t);const n=e=>this._readableStream.headers[e.toLowerCase()],{allowRangeRequests:a,suggestedLength:o}=(0,i.validateRangeRequestCapabilities)({getResponseHeader:n,isHttp:e.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=a,this._contentLength=o||this._contentLength,this._filename=(0,i.extractFilenameFromHeader)(n)};this._request=null,"http:"===this._url.protocol?this._request=o.request(d(this._url,e.httpHeaders),t):this._request=s.request(d(this._url,e.httpHeaders),t),this._request.on("error",e=>{this._storedError=e,this._headersCapability.reject(e)}),this._request.end()}}class p extends h{constructor(e,t,n){super(e),this._httpHeaders={};for(const t in e.httpHeaders){const n=e.httpHeaders[t];void 0!==n&&(this._httpHeaders[t]=n)}this._httpHeaders.Range=`bytes=${t}-${n-1}`;const i=e=>{if(404!==e.statusCode)this._setReadableStream(e);else{const e=new r.MissingPDFException(`Missing PDF "${this._url}".`);this._storedError=e}};this._request=null,"http:"===this._url.protocol?this._request=o.request(d(this._url,this._httpHeaders),i):this._request=s.request(d(this._url,this._httpHeaders),i),this._request.on("error",e=>{this._storedError=e}),this._request.end()}}class A extends u{constructor(e){super(e);let t=decodeURIComponent(this._url.path);c.test(this._url.href)&&(t=t.replace(/^\//,"")),a.lstat(t,(e,n)=>{if(e)return"ENOENT"===e.code&&(e=new r.MissingPDFException(`Missing PDF "${t}".`)),this._storedError=e,void this._headersCapability.reject(e);this._contentLength=n.size,this._setReadableStream(a.createReadStream(t)),this._headersCapability.resolve()})}}class g extends h{constructor(e,t,n){super(e);let r=decodeURIComponent(this._url.path);c.test(this._url.href)&&(r=r.replace(/^\//,"")),this._setReadableStream(a.createReadStream(r,{start:t,end:n-1}))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createResponseStatusError=function(e,t){if(404===e||0===e&&t.startsWith("file:"))return new r.MissingPDFException('Missing PDF "'+t+'".');return new r.UnexpectedResponseException("Unexpected server response ("+e+') while retrieving PDF "'+t+'".',e)},t.extractFilenameFromHeader=function(e){const t=e("Content-Disposition");if(t){let e=(0,i.getFilenameFromContentDispositionHeader)(t);if(e.includes("%"))try{e=decodeURIComponent(e)}catch(e){}if(/\.pdf$/i.test(e))return e}return null},t.validateRangeRequestCapabilities=function({getResponseHeader:e,isHttp:t,rangeChunkSize:n,disableRange:i}){(0,r.assert)(n>0,"Range chunk size must be larger than zero");const a={allowRangeRequests:!1,suggestedLength:void 0},o=parseInt(e("Content-Length"),10);if(!Number.isInteger(o))return a;if(a.suggestedLength=o,o<=2*n)return a;if(i||!t)return a;if("bytes"!==e("Accept-Ranges"))return a;if("identity"!==(e("Content-Encoding")||"identity"))return a;return a.allowRangeRequests=!0,a},t.validateResponseStatus=function(e){return 200===e||206===e};var r=n(2),i=n(21)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFilenameFromContentDispositionHeader=function(e){let t=!0,n=r("filename\\*","i").exec(e);if(n){let e=o(n=n[1]);return a(e=l(e=s(e=unescape(e))))}if(n=function(e){const t=[];let n;const i=r("filename\\*((?!0\\d)\\d+)(\\*?)","ig");for(;null!==(n=i.exec(e));){let[,e,r,i]=n;if((e=parseInt(e,10))in t){if(0===e)break}else t[e]=[r,i]}const a=[];for(let e=0;e<t.length&&e in t;++e){let[n,r]=t[e];r=o(r),n&&(r=unescape(r),0===e&&(r=s(r))),a.push(r)}return a.join("")}(e)){const e=l(n);return a(e)}if(n=r("filename","i").exec(e)){let e=o(n=n[1]);return a(e=l(e))}function r(e,t){return new RegExp("(?:^|;)\\s*"+e+'\\s*=\\s*([^";\\s][^;\\s]*|"(?:[^"\\\\]|\\\\"?)+"?)',t)}function i(e,n){if(e){if(!/^[\x00-\xFF]+$/.test(n))return n;try{const r=new TextDecoder(e,{fatal:!0}),i=Array.from(n,function(e){return 255&e.charCodeAt(0)});n=r.decode(new Uint8Array(i)),t=!1}catch(r){if(/^utf-?8$/i.test(e))try{n=decodeURIComponent(escape(n)),t=!1}catch(e){}}}return n}function a(e){return t&&/[\x80-\xff]/.test(e)&&(e=i("utf-8",e),t&&(e=i("iso-8859-1",e))),e}function o(e){if(e.startsWith('"')){const t=e.slice(1).split('\\"');for(let e=0;e<t.length;++e){const n=t[e].indexOf('"');-1!==n&&(t[e]=t[e].slice(0,n),t.length=e+1),t[e]=t[e].replace(/\\(.)/g,"$1")}e=t.join('"')}return e}function s(e){const t=e.indexOf("'");if(-1===t)return e;const n=e.slice(0,t),r=e.slice(t+1),a=r.replace(/^[^']*'/,"");return i(n,a)}function l(e){return!e.startsWith("=?")||/[\x00-\x19\x80-\xff]/.test(e)?e:e.replace(/=\?([\w-]*)\?([QqBb])\?((?:[^?]|\?(?!=))*)\?=/g,function(e,t,n,r){if("q"===n||"Q"===n)return r=(r=r.replace(/_/g," ")).replace(/=([0-9a-fA-F]{2})/g,function(e,t){return String.fromCharCode(parseInt(t,16))}),i(t,r);try{r=atob(r)}catch(e){}return i(t,r)})}return""}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PDFNetworkStream=void 0;var r=n(2),i=n(20);const a=200,o=206;class s{constructor(e,t){this.url=e,t=t||{},this.isHttp=/^https?:/i.test(e),this.httpHeaders=this.isHttp&&t.httpHeaders||{},this.withCredentials=t.withCredentials||!1,this.getXhr=t.getXhr||function(){return new XMLHttpRequest},this.currXhrId=0,this.pendingRequests=Object.create(null)}requestRange(e,t,n){const r={begin:e,end:t};for(const e in n)r[e]=n[e];return this.request(r)}requestFull(e){return this.request(e)}request(e){const t=this.getXhr(),n=this.currXhrId++,r=this.pendingRequests[n]={xhr:t};t.open("GET",this.url),t.withCredentials=this.withCredentials;for(const e in this.httpHeaders){const n=this.httpHeaders[e];void 0!==n&&t.setRequestHeader(e,n)}return this.isHttp&&"begin"in e&&"end"in e?(t.setRequestHeader("Range",`bytes=${e.begin}-${e.end-1}`),r.expectedStatus=o):r.expectedStatus=a,t.responseType="arraybuffer",e.onError&&(t.onerror=function(n){e.onError(t.status)}),t.onreadystatechange=this.onStateChange.bind(this,n),t.onprogress=this.onProgress.bind(this,n),r.onHeadersReceived=e.onHeadersReceived,r.onDone=e.onDone,r.onError=e.onError,r.onProgress=e.onProgress,t.send(null),n}onProgress(e,t){const n=this.pendingRequests[e];n&&n.onProgress&&n.onProgress(t)}onStateChange(e,t){const n=this.pendingRequests[e];if(!n)return;const i=n.xhr;if(i.readyState>=2&&n.onHeadersReceived&&(n.onHeadersReceived(),delete n.onHeadersReceived),4!==i.readyState)return;if(!(e in this.pendingRequests))return;if(delete this.pendingRequests[e],0===i.status&&this.isHttp)return void(n.onError&&n.onError(i.status));const s=i.status||a;if(!(s===a&&n.expectedStatus===o)&&s!==n.expectedStatus)return void(n.onError&&n.onError(i.status));const l=function(e){const t=e.response;return"string"!=typeof t?t:(0,r.stringToBytes)(t).buffer}(i);if(s===o){const e=i.getResponseHeader("Content-Range"),t=/bytes (\d+)-(\d+)\/(\d+)/.exec(e);n.onDone({begin:parseInt(t[1],10),chunk:l})}else l?n.onDone({begin:0,chunk:l}):n.onError&&n.onError(i.status)}hasPendingRequests(){for(const e in this.pendingRequests)return!0;return!1}getRequestXhr(e){return this.pendingRequests[e].xhr}isPendingRequest(e){return e in this.pendingRequests}abortAllRequests(){for(const e in this.pendingRequests)this.abortRequest(0|e)}abortRequest(e){const t=this.pendingRequests[e].xhr;delete this.pendingRequests[e],t.abort()}}t.PDFNetworkStream=class{constructor(e){this._source=e,this._manager=new s(e.url,{httpHeaders:e.httpHeaders,withCredentials:e.withCredentials}),this._rangeChunkSize=e.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}_onRangeRequestReaderClosed(e){const t=this._rangeRequestReaders.indexOf(e);t>=0&&this._rangeRequestReaders.splice(t,1)}getFullReader(){return(0,r.assert)(!this._fullRequestReader,"PDFNetworkStream.getFullReader can only be called once."),this._fullRequestReader=new l(this._manager,this._source),this._fullRequestReader}getRangeReader(e,t){const n=new c(this._manager,e,t);return n.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(n),n}cancelAllRequests(e){this._fullRequestReader&&this._fullRequestReader.cancel(e),this._rangeRequestReaders.slice(0).forEach(function(t){t.cancel(e)})}};class l{constructor(e,t){this._manager=e;const n={onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=t.url,this._fullRequestId=e.requestFull(n),this._headersReceivedCapability=(0,r.createPromiseCapability)(),this._disableRange=t.disableRange||!1,this._contentLength=t.length,this._rangeChunkSize=t.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}_onHeadersReceived(){const e=this._fullRequestId,t=this._manager.getRequestXhr(e),n=e=>t.getResponseHeader(e),{allowRangeRequests:r,suggestedLength:a}=(0,i.validateRangeRequestCapabilities)({getResponseHeader:n,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});r&&(this._isRangeSupported=!0),this._contentLength=a||this._contentLength,this._filename=(0,i.extractFilenameFromHeader)(n),this._isRangeSupported&&this._manager.abortRequest(e),this._headersReceivedCapability.resolve()}_onDone(e){if(e)if(this._requests.length>0){this._requests.shift().resolve({value:e.chunk,done:!1})}else this._cachedChunks.push(e.chunk);this._done=!0,this._cachedChunks.length>0||(this._requests.forEach(function(e){e.resolve({value:void 0,done:!0})}),this._requests=[])}_onError(e){const t=this._url,n=(0,i.createResponseStatusError)(e,t);this._storedError=n,this._headersReceivedCapability.reject(n),this._requests.forEach(function(e){e.reject(n)}),this._requests=[],this._cachedChunks=[]}_onProgress(e){this.onProgress&&this.onProgress({loaded:e.loaded,total:e.lengthComputable?e.total:this._contentLength})}get filename(){return this._filename}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}get contentLength(){return this._contentLength}get headersReady(){return this._headersReceivedCapability.promise}async read(){if(this._storedError)throw this._storedError;if(this._cachedChunks.length>0){return{value:this._cachedChunks.shift(),done:!1}}if(this._done)return{value:void 0,done:!0};const e=(0,r.createPromiseCapability)();return this._requests.push(e),e.promise}cancel(e){this._done=!0,this._headersReceivedCapability.reject(e),this._requests.forEach(function(e){e.resolve({value:void 0,done:!0})}),this._requests=[],this._manager.isPendingRequest(this._fullRequestId)&&this._manager.abortRequest(this._fullRequestId),this._fullRequestReader=null}}class c{constructor(e,t,n){this._manager=e;const r={onDone:this._onDone.bind(this),onProgress:this._onProgress.bind(this)};this._requestId=e.requestRange(t,n,r),this._requests=[],this._queuedChunk=null,this._done=!1,this.onProgress=null,this.onClosed=null}_close(){this.onClosed&&this.onClosed(this)}_onDone(e){const t=e.chunk;if(this._requests.length>0){this._requests.shift().resolve({value:t,done:!1})}else this._queuedChunk=t;this._done=!0,this._requests.forEach(function(e){e.resolve({value:void 0,done:!0})}),this._requests=[],this._close()}_onProgress(e){!this.isStreamingSupported&&this.onProgress&&this.onProgress({loaded:e.loaded})}get isStreamingSupported(){return!1}async read(){if(null!==this._queuedChunk){const e=this._queuedChunk;return this._queuedChunk=null,{value:e,done:!1}}if(this._done)return{value:void 0,done:!0};const e=(0,r.createPromiseCapability)();return this._requests.push(e),e.promise}cancel(e){this._done=!0,this._requests.forEach(function(e){e.resolve({value:void 0,done:!0})}),this._requests=[],this._manager.isPendingRequest(this._requestId)&&this._manager.abortRequest(this._requestId),this._close()}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PDFFetchStream=void 0;var r=n(2),i=n(20);function a(e,t,n){return{method:"GET",headers:e,signal:n&&n.signal,mode:"cors",credentials:t?"include":"same-origin",redirect:"follow"}}function o(e){const t=new Headers;for(const n in e){const r=e[n];void 0!==r&&t.append(n,r)}return t}t.PDFFetchStream=class{constructor(e){this.source=e,this.isHttp=/^https?:/i.test(e.url),this.httpHeaders=this.isHttp&&e.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){return this._fullRequestReader?this._fullRequestReader._loaded:0}getFullReader(){return(0,r.assert)(!this._fullRequestReader,"PDFFetchStream.getFullReader can only be called once."),this._fullRequestReader=new s(this),this._fullRequestReader}getRangeReader(e,t){if(t<=this._progressiveDataLength)return null;const n=new l(this,e,t);return this._rangeRequestReaders.push(n),n}cancelAllRequests(e){this._fullRequestReader&&this._fullRequestReader.cancel(e),this._rangeRequestReaders.slice(0).forEach(function(t){t.cancel(e)})}};class s{constructor(e){this._stream=e,this._reader=null,this._loaded=0,this._filename=null;const t=e.source;this._withCredentials=t.withCredentials||!1,this._contentLength=t.length,this._headersCapability=(0,r.createPromiseCapability)(),this._disableRange=t.disableRange||!1,this._rangeChunkSize=t.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),"undefined"!=typeof AbortController&&(this._abortController=new AbortController),this._isStreamingSupported=!t.disableStream,this._isRangeSupported=!t.disableRange,this._headers=o(this._stream.httpHeaders);const n=t.url;fetch(n,a(this._headers,this._withCredentials,this._abortController)).then(e=>{if(!(0,i.validateResponseStatus)(e.status))throw(0,i.createResponseStatusError)(e.status,n);this._reader=e.body.getReader(),this._headersCapability.resolve();const t=t=>e.headers.get(t),{allowRangeRequests:a,suggestedLength:o}=(0,i.validateRangeRequestCapabilities)({getResponseHeader:t,isHttp:this._stream.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=a,this._contentLength=o||this._contentLength,this._filename=(0,i.extractFilenameFromHeader)(t),!this._isStreamingSupported&&this._isRangeSupported&&this.cancel(new r.AbortException("Streaming is disabled."))}).catch(this._headersCapability.reject),this.onProgress=null}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){await this._headersCapability.promise;const{value:e,done:t}=await this._reader.read();return t?{value:e,done:t}:(this._loaded+=e.byteLength,this.onProgress&&this.onProgress({loaded:this._loaded,total:this._contentLength}),{value:new Uint8Array(e).buffer,done:!1})}cancel(e){this._reader&&this._reader.cancel(e),this._abortController&&this._abortController.abort()}}class l{constructor(e,t,n){this._stream=e,this._reader=null,this._loaded=0;const s=e.source;this._withCredentials=s.withCredentials||!1,this._readCapability=(0,r.createPromiseCapability)(),this._isStreamingSupported=!s.disableStream,"undefined"!=typeof AbortController&&(this._abortController=new AbortController),this._headers=o(this._stream.httpHeaders),this._headers.append("Range",`bytes=${t}-${n-1}`);const l=s.url;fetch(l,a(this._headers,this._withCredentials,this._abortController)).then(e=>{if(!(0,i.validateResponseStatus)(e.status))throw(0,i.createResponseStatusError)(e.status,l);this._readCapability.resolve(),this._reader=e.body.getReader()}),this.onProgress=null}get isStreamingSupported(){return this._isStreamingSupported}async read(){await this._readCapability.promise;const{value:e,done:t}=await this._reader.read();return t?{value:e,done:t}:(this._loaded+=e.byteLength,this.onProgress&&this.onProgress({loaded:this._loaded}),{value:new Uint8Array(e).buffer,done:!1})}cancel(e){this._reader&&this._reader.cancel(e),this._abortController&&this._abortController.abort()}}}])},module.exports=factory()}).call(this,__webpack_require__("4362"),__webpack_require__("b639").Buffer)},"968b":function(e,t,n){var r;r=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AnnotationLayerBuilder",{enumerable:!0,get:function(){return r.AnnotationLayerBuilder}}),Object.defineProperty(t,"DefaultAnnotationLayerFactory",{enumerable:!0,get:function(){return r.DefaultAnnotationLayerFactory}}),Object.defineProperty(t,"DefaultTextLayerFactory",{enumerable:!0,get:function(){return i.DefaultTextLayerFactory}}),Object.defineProperty(t,"TextLayerBuilder",{enumerable:!0,get:function(){return i.TextLayerBuilder}}),Object.defineProperty(t,"EventBus",{enumerable:!0,get:function(){return a.EventBus}}),Object.defineProperty(t,"NullL10n",{enumerable:!0,get:function(){return a.NullL10n}}),Object.defineProperty(t,"ProgressBar",{enumerable:!0,get:function(){return a.ProgressBar}}),Object.defineProperty(t,"PDFLinkService",{enumerable:!0,get:function(){return o.PDFLinkService}}),Object.defineProperty(t,"SimpleLinkService",{enumerable:!0,get:function(){return o.SimpleLinkService}}),Object.defineProperty(t,"DownloadManager",{enumerable:!0,get:function(){return s.DownloadManager}}),Object.defineProperty(t,"GenericL10n",{enumerable:!0,get:function(){return l.GenericL10n}}),Object.defineProperty(t,"PDFFindController",{enumerable:!0,get:function(){return c.PDFFindController}}),Object.defineProperty(t,"PDFHistory",{enumerable:!0,get:function(){return u.PDFHistory}}),Object.defineProperty(t,"PDFPageView",{enumerable:!0,get:function(){return h.PDFPageView}}),Object.defineProperty(t,"PDFSinglePageViewer",{enumerable:!0,get:function(){return d.PDFSinglePageViewer}}),Object.defineProperty(t,"PDFViewer",{enumerable:!0,get:function(){return f.PDFViewer}});var r=n(1),i=n(5),a=n(3),o=n(4),s=n(6),l=n(8),c=n(10),u=n(12),h=n(13),d=n(15),f=n(17)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultAnnotationLayerFactory=t.AnnotationLayerBuilder=void 0;var r=n(2),i=n(3),a=n(4);class o{constructor({pageDiv:e,pdfPage:t,linkService:n,downloadManager:r,imageResourcesPath:a="",renderInteractiveForms:o=!1,l10n:s=i.NullL10n}){this.pageDiv=e,this.pdfPage=t,this.linkService=n,this.downloadManager=r,this.imageResourcesPath=a,this.renderInteractiveForms=o,this.l10n=s,this.div=null,this._cancelled=!1}render(e,t="display"){this.pdfPage.getAnnotations({intent:t}).then(t=>{if(this._cancelled)return;const n={viewport:e.clone({dontFlip:!0}),div:this.div,annotations:t,page:this.pdfPage,imageResourcesPath:this.imageResourcesPath,renderInteractiveForms:this.renderInteractiveForms,linkService:this.linkService,downloadManager:this.downloadManager};if(this.div)r.AnnotationLayer.update(n);else{if(0===t.length)return;this.div=document.createElement("div"),this.div.className="annotationLayer",this.pageDiv.appendChild(this.div),n.div=this.div,r.AnnotationLayer.render(n),this.l10n.translate(this.div)}})}cancel(){this._cancelled=!0}hide(){this.div&&this.div.setAttribute("hidden","true")}}t.AnnotationLayerBuilder=o;t.DefaultAnnotationLayerFactory=class{createAnnotationLayerBuilder(e,t,n="",r=!1,s=i.NullL10n){return new o({pageDiv:e,pdfPage:t,imageResourcesPath:n,renderInteractiveForms:r,linkService:new a.SimpleLinkService,l10n:s})}}},function(e,t,r){"use strict";let i;i="undefined"!=typeof window&&window["pdfjs-dist/build/pdf"]?window["pdfjs-dist/build/pdf"]:n("9511"),e.exports=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isValidRotation=function(e){return Number.isInteger(e)&&e%90==0},t.isValidScrollMode=function(e){return Number.isInteger(e)&&Object.values(r).includes(e)&&e!==r.UNKNOWN},t.isValidSpreadMode=function(e){return Number.isInteger(e)&&Object.values(i).includes(e)&&e!==i.UNKNOWN},t.isPortraitOrientation=function(e){return e.width<=e.height},t.clamp=h,t.getPDFFileNameFromURL=function(e,t="document.pdf"){if("string"!=typeof e)return t;if(function(e){let t=0;const n=e.length;for(;t<n&&""===e[t].trim();)t++;return"data:"===e.substring(t,t+5).toLowerCase()}(e))return console.warn('getPDFFileNameFromURL: ignoring "data:" URL for performance reasons.'),t;const n=/[^\/?#=]+\.pdf\b(?!.*\.pdf\b)/i,r=/^(?:(?:[^:]+:)?\/\/[^\/]+)?([^?#]*)(\?[^#]*)?(#.*)?$/.exec(e);let i=n.exec(r[1])||n.exec(r[2])||n.exec(r[3]);if(i&&(i=i[0]).includes("%"))try{i=n.exec(decodeURIComponent(i))[0]}catch(e){}return i||t},t.noContextMenuHandler=function(e){e.preventDefault()},t.parseQueryString=function(e){const t=e.split("&"),n=Object.create(null);for(let e=0,r=t.length;e<r;++e){const r=t[e].split("="),i=r[0].toLowerCase(),a=r.length>1?r[1]:null;n[decodeURIComponent(i)]=decodeURIComponent(a)}return n},t.backtrackBeforeAllVisibleElements=s,t.getVisibleElements=function(e,t,n=!1,r=!1){const i=e.scrollTop,a=i+e.clientHeight,l=e.scrollLeft,c=l+e.clientWidth;const u=[],h=t.length;let d=0===h?0:o(t,r?function(e){const t=e.div;return t.offsetLeft+t.clientLeft+t.clientWidth>l}:function(e){const t=e.div;return t.offsetTop+t.clientTop+t.clientHeight>i});d>0&&d<h&&!r&&(d=s(d,t,i));let f=r?c:-1;for(let e=d;e<h;e++){const n=t[e],o=n.div,s=o.offsetLeft+o.clientLeft,h=o.offsetTop+o.clientTop,d=o.clientWidth,p=o.clientHeight,A=s+d,g=h+p;if(-1===f)g>=a&&(f=g);else if((r?s:h)>f)break;if(g<=i||h>=a||A<=l||s>=c)continue;const m=Math.max(0,i-h)+Math.max(0,g-a),v=Math.max(0,l-s)+Math.max(0,A-c),y=(p-m)*(d-v)*100/p/d|0;u.push({id:n.id,x:s,y:h,view:n,percent:y})}const p=u[0],A=u[u.length-1];n&&u.sort(function(e,t){const n=e.percent-t.percent;return Math.abs(n)>.001?-n:e.id-t.id});return{first:p,last:A,views:u}},t.roundToDivide=function(e,t){const n=e%t;return 0===n?e:Math.round(e-n+t)},t.getPageSizeInches=function({view:e,userUnit:t,rotate:n}){const[r,i,a,o]=e,s=n%180!=0,l=(a-r)/72*t,c=(o-i)/72*t;return{width:s?c:l,height:s?l:c}},t.approximateFraction=function(e){if(Math.floor(e)===e)return[e,1];const t=1/e;if(t>8)return[1,8];if(Math.floor(t)===t)return[1,t];const n=e>1?t:e;let r,i=0,a=1,o=1,s=1;for(;;){const e=i+o,t=a+s;if(t>8)break;n<=e/t?(o=e,s=t):(i=e,a=t)}r=n-i/a<o/s-n?n===e?[i,a]:[a,i]:n===e?[o,s]:[s,o];return r},t.getOutputScale=function(e){const t=window.devicePixelRatio||1,n=e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1,r=t/n;return{sx:r,sy:r,scaled:1!==r}},t.scrollIntoView=function(e,t,n=!1){let r=e.offsetParent;if(!r)return void console.error("offsetParent is not set -- cannot scroll");let i=e.offsetTop+e.clientTop,a=e.offsetLeft+e.clientLeft;for(;r.clientHeight===r.scrollHeight&&r.clientWidth===r.scrollWidth||n&&"hidden"===getComputedStyle(r).overflow;)if(r.dataset._scaleY&&(i/=r.dataset._scaleY,a/=r.dataset._scaleX),i+=r.offsetTop,a+=r.offsetLeft,!(r=r.offsetParent))return;t&&(void 0!==t.top&&(i+=t.top),void 0!==t.left&&(a+=t.left,r.scrollLeft=a));r.scrollTop=i},t.watchScroll=function(e,t){const n=function(n){i||(i=window.requestAnimationFrame(function(){i=null;const n=e.scrollLeft,a=r.lastX;n!==a&&(r.right=n>a),r.lastX=n;const o=e.scrollTop,s=r.lastY;o!==s&&(r.down=o>s),r.lastY=o,t(r)}))},r={right:!0,down:!0,lastX:e.scrollLeft,lastY:e.scrollTop,_eventHandler:n};let i=null;return e.addEventListener("scroll",n,!0),r},t.binarySearchFirstItem=o,t.normalizeWheelEventDelta=function(e){let t=Math.sqrt(e.deltaX*e.deltaX+e.deltaY*e.deltaY);const n=Math.atan2(e.deltaY,e.deltaX);-.25*Math.PI<n&&n<.75*Math.PI&&(t=-t);0===e.deltaMode?t/=900:1===e.deltaMode&&(t/=30);return t},t.waitOnEventOrTimeout=function({target:e,name:t,delay:n=0}){return new Promise(function(r,i){if("object"!=typeof e||!t||"string"!=typeof t||!(Number.isInteger(n)&&n>=0))throw new Error("waitOnEventOrTimeout - invalid parameters.");function a(n){e instanceof u?e._off(t,o):e.removeEventListener(t,o),c&&clearTimeout(c),r(n)}const o=a.bind(null,l.EVENT);e instanceof u?e._on(t,o):e.addEventListener(t,o);const s=a.bind(null,l.TIMEOUT),c=setTimeout(s,n)})},t.moveToEndOfArray=function(e,t){const n=[],r=e.length;let i=0;for(let a=0;a<r;++a)t(e[a])?n.push(e[a]):(e[i]=e[a],++i);for(let t=0;i<r;++t,++i)e[i]=n[t]},t.WaitOnType=t.animationStarted=t.ProgressBar=t.EventBus=t.NullL10n=t.SpreadMode=t.ScrollMode=t.TextLayerMode=t.RendererType=t.PresentationModeState=t.VERTICAL_PADDING=t.SCROLLBAR_PADDING=t.MAX_AUTO_SCALE=t.UNKNOWN_SCALE=t.MAX_SCALE=t.MIN_SCALE=t.DEFAULT_SCALE=t.DEFAULT_SCALE_VALUE=t.CSS_UNITS=t.AutoPrintRegExp=void 0;t.CSS_UNITS=96/72;t.DEFAULT_SCALE_VALUE="auto";t.DEFAULT_SCALE=1;t.MIN_SCALE=.1;t.MAX_SCALE=10;t.UNKNOWN_SCALE=0;t.MAX_AUTO_SCALE=1.25;t.SCROLLBAR_PADDING=40;t.VERTICAL_PADDING=5;t.PresentationModeState={UNKNOWN:0,NORMAL:1,CHANGING:2,FULLSCREEN:3};t.RendererType={CANVAS:"canvas",SVG:"svg"};t.TextLayerMode={DISABLE:0,ENABLE:1,ENABLE_ENHANCE:2};const r={UNKNOWN:-1,VERTICAL:0,HORIZONTAL:1,WRAPPED:2};t.ScrollMode=r;const i={UNKNOWN:-1,NONE:0,ODD:1,EVEN:2};t.SpreadMode=i;t.AutoPrintRegExp=/\bprint\s*\(/;const a={getLanguage:async()=>"en-us",getDirection:async()=>"ltr",get:async(e,t,n)=>(function(e,t){return t?e.replace(/\{\{\s*(\w+)\s*\}\}/g,(e,n)=>n in t?t[n]:"{{"+n+"}}"):e})(n,t),async translate(e){}};function o(e,t){let n=0,r=e.length-1;if(r<0||!t(e[r]))return e.length;if(t(e[n]))return n;for(;n<r;){const i=n+r>>1;t(e[i])?r=i:n=i+1}return n}function s(e,t,n){if(e<2)return e;let r=t[e].div,i=r.offsetTop+r.clientTop;i>=n&&(i=(r=t[e-1].div).offsetTop+r.clientTop);for(let n=e-2;n>=0&&!((r=t[n].div).offsetTop+r.clientTop+r.clientHeight<=i);--n)e=n;return e}t.NullL10n=a;const l={EVENT:"event",TIMEOUT:"timeout"};t.WaitOnType=l;const c=new Promise(function(e){window.requestAnimationFrame(e)});t.animationStarted=c;class u{constructor(e){this._listeners=Object.create(null)}on(e,t){this._on(e,t,{external:!0})}off(e,t){this._off(e,t,{external:!0})}dispatch(e){const t=this._listeners[e];if(!t||0===t.length)return;const n=Array.prototype.slice.call(arguments,1);let r;t.slice(0).forEach(function({listener:e,external:t}){if(t)return r||(r=[]),void r.push(e);e.apply(null,n)}),r&&(r.forEach(function(e){e.apply(null,n)}),r=null)}_on(e,t,n=null){let r=this._listeners[e];r||(this._listeners[e]=r=[]),r.push({listener:t,external:!0===(n&&n.external)})}_off(e,t,n=null){const r=this._listeners[e];if(r)for(let e=0,n=r.length;e<n;e++)if(r[e].listener===t)return void r.splice(e,1)}}function h(e,t,n){return Math.min(Math.max(e,t),n)}t.EventBus=u;t.ProgressBar=class{constructor(e,{height:t,width:n,units:r}={}){this.visible=!0,this.div=document.querySelector(e+" .progress"),this.bar=this.div.parentNode,this.height=t||100,this.width=n||100,this.units=r||"%",this.div.style.height=this.height+this.units,this.percent=0}_updateBar(){if(this._indeterminate)return this.div.classList.add("indeterminate"),void(this.div.style.width=this.width+this.units);this.div.classList.remove("indeterminate");const e=this.width*this._percent/100;this.div.style.width=e+this.units}get percent(){return this._percent}set percent(e){this._indeterminate=isNaN(e),this._percent=h(e,0,100),this._updateBar()}setWidth(e){if(!e)return;const t=e.parentNode.offsetWidth-e.offsetWidth;t>0&&(this.bar.style.width=`calc(100% - ${t}px)`)}hide(){this.visible&&(this.visible=!1,this.bar.classList.add("hidden"),document.body.classList.remove("loadingInProgress"))}show(){this.visible||(this.visible=!0,document.body.classList.add("loadingInProgress"),this.bar.classList.remove("hidden"))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SimpleLinkService=t.PDFLinkService=void 0;var r=n(3);t.PDFLinkService=class{constructor({eventBus:e,externalLinkTarget:t=null,externalLinkRel:n=null,externalLinkEnabled:r=!0,ignoreDestinationZoom:i=!1}={}){this.eventBus=e,this.externalLinkTarget=t,this.externalLinkRel=n,this.externalLinkEnabled=r,this._ignoreDestinationZoom=i,this.baseUrl=null,this.pdfDocument=null,this.pdfViewer=null,this.pdfHistory=null,this._pagesRefCache=null}setDocument(e,t=null){this.baseUrl=t,this.pdfDocument=e,this._pagesRefCache=Object.create(null)}setViewer(e){this.pdfViewer=e}setHistory(e){this.pdfHistory=e}get pagesCount(){return this.pdfDocument?this.pdfDocument.numPages:0}get page(){return this.pdfViewer.currentPageNumber}set page(e){this.pdfViewer.currentPageNumber=e}get rotation(){return this.pdfViewer.pagesRotation}set rotation(e){this.pdfViewer.pagesRotation=e}navigateTo(e){const t=({namedDest:n,explicitDest:r})=>{const i=r[0];let a;if(i instanceof Object){if(null===(a=this._cachedPageNumber(i)))return void this.pdfDocument.getPageIndex(i).then(e=>{this.cachePageRef(e+1,i),t({namedDest:n,explicitDest:r})}).catch(()=>{console.error(`PDFLinkService.navigateTo: "${i}" is not `+`a valid page reference, for dest="${e}".`)})}else{if(!Number.isInteger(i))return void console.error(`PDFLinkService.navigateTo: "${i}" is not `+`a valid destination reference, for dest="${e}".`);a=i+1}!a||a<1||a>this.pagesCount?console.error(`PDFLinkService.navigateTo: "${a}" is not `+`a valid page number, for dest="${e}".`):(this.pdfHistory&&(this.pdfHistory.pushCurrentPosition(),this.pdfHistory.push({namedDest:n,explicitDest:r,pageNumber:a})),this.pdfViewer.scrollPageIntoView({pageNumber:a,destArray:r,ignoreDestinationZoom:this._ignoreDestinationZoom}))};new Promise((t,n)=>{"string"!=typeof e?t({namedDest:"",explicitDest:e}):this.pdfDocument.getDestination(e).then(n=>{t({namedDest:e,explicitDest:n})})}).then(n=>{Array.isArray(n.explicitDest)?t(n):console.error(`PDFLinkService.navigateTo: "${n.explicitDest}" is`+` not a valid destination array, for dest="${e}".`)})}getDestinationHash(e){if("string"==typeof e)return this.getAnchorUrl("#"+escape(e));if(Array.isArray(e)){const t=JSON.stringify(e);return this.getAnchorUrl("#"+escape(t))}return this.getAnchorUrl("")}getAnchorUrl(e){return(this.baseUrl||"")+e}setHash(e){let t,n;if(e.includes("=")){const i=(0,r.parseQueryString)(e);if("search"in i&&this.eventBus.dispatch("findfromurlhash",{source:this,query:i.search.replace(/"/g,""),phraseSearch:"true"===i.phrase}),"page"in i&&(t=0|i.page||1),"zoom"in i){const e=i.zoom.split(","),t=e[0],r=parseFloat(t);t.includes("Fit")?"Fit"===t||"FitB"===t?n=[null,{name:t}]:"FitH"===t||"FitBH"===t||"FitV"===t||"FitBV"===t?n=[null,{name:t},e.length>1?0|e[1]:null]:"FitR"===t?5!==e.length?console.error('PDFLinkService.setHash: Not enough parameters for "FitR".'):n=[null,{name:t},0|e[1],0|e[2],0|e[3],0|e[4]]:console.error(`PDFLinkService.setHash: "${t}" is not `+"a valid zoom value."):n=[null,{name:"XYZ"},e.length>1?0|e[1]:null,e.length>2?0|e[2]:null,r?r/100:t]}n?this.pdfViewer.scrollPageIntoView({pageNumber:t||this.page,destArray:n,allowNegativeOffset:!0}):t&&(this.page=t),"pagemode"in i&&this.eventBus.dispatch("pagemode",{source:this,mode:i.pagemode}),"nameddest"in i&&this.navigateTo(i.nameddest)}else{n=unescape(e);try{n=JSON.parse(n),Array.isArray(n)||(n=n.toString())}catch(e){}if("string"==typeof n||function(e){if(!Array.isArray(e))return!1;const t=e.length;if(t<2)return!1;const n=e[0];if(!("object"==typeof n&&Number.isInteger(n.num)&&Number.isInteger(n.gen)||Number.isInteger(n)&&n>=0))return!1;const r=e[1];if("object"!=typeof r||"string"!=typeof r.name)return!1;let i=!0;switch(r.name){case"XYZ":if(5!==t)return!1;break;case"Fit":case"FitB":return 2===t;case"FitH":case"FitBH":case"FitV":case"FitBV":if(3!==t)return!1;break;case"FitR":if(6!==t)return!1;i=!1;break;default:return!1}for(let n=2;n<t;n++){const t=e[n];if(!("number"==typeof t||i&&null===t))return!1}return!0}(n))return void this.navigateTo(n);console.error(`PDFLinkService.setHash: "${unescape(e)}" is not `+"a valid destination.")}}executeNamedAction(e){switch(e){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:e})}cachePageRef(e,t){if(!t)return;const n=0===t.gen?`${t.num}R`:`${t.num}R${t.gen}`;this._pagesRefCache[n]=e}_cachedPageNumber(e){const t=0===e.gen?`${e.num}R`:`${e.num}R${e.gen}`;return this._pagesRefCache&&this._pagesRefCache[t]||null}isPageVisible(e){return this.pdfViewer.isPageVisible(e)}};t.SimpleLinkService=class{constructor(){this.externalLinkTarget=null,this.externalLinkRel=null,this.externalLinkEnabled=!0,this._ignoreDestinationZoom=!1}get pagesCount(){return 0}get page(){return 0}set page(e){}get rotation(){return 0}set rotation(e){}navigateTo(e){}getDestinationHash(e){return"#"}getAnchorUrl(e){return"#"}setHash(e){}executeNamedAction(e){}cachePageRef(e,t){}isPageVisible(e){return!0}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultTextLayerFactory=t.TextLayerBuilder=void 0;var r=n(2);const i=300;class a{constructor({textLayerDiv:e,eventBus:t,pageIndex:n,viewport:r,findController:i=null,enhanceTextSelection:a=!1}){this.textLayerDiv=e,this.eventBus=t,this.textContent=null,this.textContentItemsStr=[],this.textContentStream=null,this.renderingDone=!1,this.pageIdx=n,this.pageNumber=this.pageIdx+1,this.matches=[],this.viewport=r,this.textDivs=[],this.findController=i,this.textLayerRenderTask=null,this.enhanceTextSelection=a,this._onUpdateTextLayerMatches=null,this._bindMouse()}_finishRendering(){if(this.renderingDone=!0,!this.enhanceTextSelection){const e=document.createElement("div");e.className="endOfContent",this.textLayerDiv.appendChild(e)}this.eventBus.dispatch("textlayerrendered",{source:this,pageNumber:this.pageNumber,numTextDivs:this.textDivs.length})}render(e=0){if(!this.textContent&&!this.textContentStream||this.renderingDone)return;this.cancel(),this.textDivs=[];const t=document.createDocumentFragment();this.textLayerRenderTask=(0,r.renderTextLayer)({textContent:this.textContent,textContentStream:this.textContentStream,container:t,viewport:this.viewport,textDivs:this.textDivs,textContentItemsStr:this.textContentItemsStr,timeout:e,enhanceTextSelection:this.enhanceTextSelection}),this.textLayerRenderTask.promise.then(()=>{this.textLayerDiv.appendChild(t),this._finishRendering(),this._updateMatches()},function(e){}),this._onUpdateTextLayerMatches||(this._onUpdateTextLayerMatches=(e=>{e.pageIndex!==this.pageIdx&&-1!==e.pageIndex||this._updateMatches()}),this.eventBus._on("updatetextlayermatches",this._onUpdateTextLayerMatches))}cancel(){this.textLayerRenderTask&&(this.textLayerRenderTask.cancel(),this.textLayerRenderTask=null),this._onUpdateTextLayerMatches&&(this.eventBus._off("updatetextlayermatches",this._onUpdateTextLayerMatches),this._onUpdateTextLayerMatches=null)}setTextContentStream(e){this.cancel(),this.textContentStream=e}setTextContent(e){this.cancel(),this.textContent=e}_convertMatches(e,t){if(!e)return[];const{findController:n,textContentItemsStr:r}=this;let i=0,a=0;const o=r.length-1,s=n.state.query.length,l=[];for(let n=0,c=e.length;n<c;n++){let c=e[n];for(;i!==o&&c>=a+r[i].length;)a+=r[i].length,i++;i===r.length&&console.error("Could not find a matching mapping");const u={begin:{divIdx:i,offset:c-a}};for(c+=t?t[n]:s;i!==o&&c>a+r[i].length;)a+=r[i].length,i++;u.end={divIdx:i,offset:c-a},l.push(u)}return l}_renderMatches(e){if(0===e.length)return;const{findController:t,pageIdx:n,textContentItemsStr:r,textDivs:i}=this,a=n===t.selected.pageIdx,o=t.selected.matchIdx;let s=null;const l={divIdx:-1,offset:void 0};function c(e,t){const n=e.divIdx;i[n].textContent="",u(n,0,e.offset,t)}function u(e,t,n,a){const o=i[e],s=r[e].substring(t,n),l=document.createTextNode(s);if(a){const e=document.createElement("span");return e.className=a,e.appendChild(l),void o.appendChild(e)}o.appendChild(l)}let h=o,d=h+1;if(t.state.highlightAll)h=0,d=e.length;else if(!a)return;for(let r=h;r<d;r++){const h=e[r],d=h.begin,f=h.end,p=a&&r===o,A=p?" selected":"";if(p&&t.scrollMatchIntoView({element:i[d.divIdx],pageIndex:n,matchIndex:o}),s&&d.divIdx===s.divIdx?u(s.divIdx,s.offset,d.offset):(null!==s&&u(s.divIdx,s.offset,l.offset),c(d)),d.divIdx===f.divIdx)u(d.divIdx,d.offset,f.offset,"highlight"+A);else{u(d.divIdx,d.offset,l.offset,"highlight begin"+A);for(let e=d.divIdx+1,t=f.divIdx;e<t;e++)i[e].className="highlight middle"+A;c(f,"highlight end"+A)}s=f}s&&u(s.divIdx,s.offset,l.offset)}_updateMatches(){if(!this.renderingDone)return;const{findController:e,matches:t,pageIdx:n,textContentItemsStr:r,textDivs:i}=this;let a=-1;for(let e=0,n=t.length;e<n;e++){const n=t[e];for(let e=Math.max(a,n.begin.divIdx),t=n.end.divIdx;e<=t;e++){const t=i[e];t.textContent=r[e],t.className=""}a=n.end.divIdx+1}if(!e||!e.highlightMatches)return;const o=e.pageMatches[n]||null,s=e.pageMatchesLength[n]||null;this.matches=this._convertMatches(o,s),this._renderMatches(this.matches)}_bindMouse(){const e=this.textLayerDiv;let t=null;e.addEventListener("mousedown",n=>{if(this.enhanceTextSelection&&this.textLayerRenderTask)return this.textLayerRenderTask.expandTextDivs(!0),void(t&&(clearTimeout(t),t=null));const r=e.querySelector(".endOfContent");if(!r)return;let i=n.target!==e;if(i=i&&"none"!==window.getComputedStyle(r).getPropertyValue("-moz-user-select")){const t=e.getBoundingClientRect(),i=Math.max(0,(n.pageY-t.top)/t.height);r.style.top=(100*i).toFixed(2)+"%"}r.classList.add("active")}),e.addEventListener("mouseup",()=>{if(this.enhanceTextSelection&&this.textLayerRenderTask)return void(t=setTimeout(()=>{this.textLayerRenderTask&&this.textLayerRenderTask.expandTextDivs(!1),t=null},i));const n=e.querySelector(".endOfContent");n&&(n.style.top="",n.classList.remove("active"))})}}t.TextLayerBuilder=a;t.DefaultTextLayerFactory=class{createTextLayerBuilder(e,t,n,r=!1,i){return new a({textLayerDiv:e,pageIndex:t,viewport:n,enhanceTextSelection:r,eventBus:i})}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DownloadManager=void 0;var r=n(2);const i=n(7).viewerCompatibilityParams.disableCreateObjectURL||!1;function a(e,t){const n=document.createElement("a");if(!n.click)throw new Error('DownloadManager: "a.click()" is not supported.');n.href=e,n.target="_parent","download"in n&&(n.download=t),(document.body||document.documentElement).appendChild(n),n.click(),n.remove()}t.DownloadManager=class{constructor({disableCreateObjectURL:e=i}){this.disableCreateObjectURL=e}downloadUrl(e,t){(0,r.createValidAbsoluteUrl)(e,"http://example.com")&&a(e+"#pdfjs.action=download",t)}downloadData(e,t,n){navigator.msSaveBlob?navigator.msSaveBlob(new Blob([e],{type:n}),t):a((0,r.createObjectURL)(e,n,this.disableCreateObjectURL),t)}download(e,t,n){navigator.msSaveBlob?navigator.msSaveBlob(e,n)||this.downloadUrl(t,n):this.disableCreateObjectURL?this.downloadUrl(t,n):a(URL.createObjectURL(e),n)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.viewerCompatibilityParams=void 0;const r=Object.create(null);{const e="undefined"!=typeof navigator&&navigator.userAgent||"",t="undefined"!=typeof navigator&&navigator.platform||"",n="undefined"!=typeof navigator&&navigator.maxTouchPoints||1,i=/Android/.test(e),a=/Trident/.test(e),o=/\b(iPad|iPhone|iPod)(?=;)/.test(e)||"MacIntel"===t&&n>1,s=/CriOS/.test(e);(a||s)&&(r.disableCreateObjectURL=!0),(o||i)&&(r.maxCanvasPixels=5242880)}const i=Object.freeze(r);t.viewerCompatibilityParams=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GenericL10n=void 0,n(9);const r=document.webL10n;t.GenericL10n=class{constructor(e){this._lang=e,this._ready=new Promise((t,n)=>{r.setLanguage(e,()=>{t(r)})})}async getLanguage(){return(await this._ready).getLanguage()}async getDirection(){return(await this._ready).getDirection()}async get(e,t,n){return(await this._ready).get(e,t,n)}async translate(e){return(await this._ready).translate(e)}}},function(e,t,n){"use strict";document.webL10n=function(e,t,n){var r={},i="",a="textContent",o="",s={},l="loading",c=!0;function u(e,t,n){t=t||function(e){},n=n||function(){};var r=new XMLHttpRequest;r.open("GET",e,c),r.overrideMimeType&&r.overrideMimeType("text/plain; charset=utf-8"),r.onreadystatechange=function(){4==r.readyState&&(200==r.status||0===r.status?t(r.responseText):n())},r.onerror=n,r.ontimeout=n;try{r.send(null)}catch(e){n()}}function h(e,t,n,o){var s=e.replace(/[^\/]*$/,"")||"./";u(e,function(e){i+=e,function(e,n){var r={},i=/^\s*|\s*$/,a=/^\s*#|^\s*$/,o=/^\s*\[(.*)\]\s*$/,l=/^\s*@import\s+url\((.*)\)\s*$/i,c=/^([^=\s]*)\s*=\s*(.+)$/;function h(e,n,u){var h=e.replace(i,"").split(/[\r\n]+/),f="*",p=t.split("-",1)[0],A=!1,g="";!function e(){for(;;){if(!h.length)return void u();var i=h.shift();if(!a.test(i)){if(n){if(g=o.exec(i)){f=g[1].toLowerCase(),A="*"!==f&&f!==t&&f!==p;continue}if(A)continue;if(g=l.exec(i))return void d(s+g[1],e)}var m=i.match(c);m&&3==m.length&&(r[m[1]]=(v=m[2]).lastIndexOf("\\")<0?v:v.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,"'"))}}var v}()}function d(e,t){u(e,function(e){h(e,!1,t)},function(){console.warn(e+" not found."),t()})}h(e,!0,function(){n(r)})}(e,function(e){for(var t in e){var i,o,s=t.lastIndexOf(".");s>0?(i=t.substring(0,s),o=t.substring(s+1)):(i=t,o=a),r[i]||(r[i]={}),r[i][o]=e[t]}n&&n()})},o)}function d(e,n){e&&(e=e.toLowerCase()),n=n||function(){},r={},i="",o="",o=e;var a=t.querySelectorAll('link[type="application/l10n"]'),s=a.length;if(0!==s){var c,u,d=0;u=function(){++d>=s&&(n(),l="complete")};for(var f=0;f<s;f++){new m(a[f]).load(e,u)}}else{var p=(c=t.querySelector('script[type="application/l10n"]'))?JSON.parse(c.innerHTML):null;if(p&&p.locales&&p.default_locale){if(console.log("using the embedded JSON directory, early way out"),!(r=p.locales[e])){var A=p.default_locale.toLowerCase();for(var g in p.locales){if((g=g.toLowerCase())===e){r=p.locales[e];break}g===A&&(r=p.locales[A])}}n()}else console.log("no resource to load, early way out");l="complete"}function m(e){var t=e.href;this.load=function(e,n){h(t,e,n,function(){console.warn(t+" not found."),console.warn('"'+e+'" resource not found'),o="",n()})}}}function f(e,t,n){var i=r[e];if(!i){if(console.warn("#"+e+" is undefined."),!n)return null;i=n}var a={};for(var o in i){var s=i[o];s=A(s=p(s,t,e,o),t,e),a[o]=s}return a}function p(e,t,n,i){var a=/\{\[\s*([a-zA-Z]+)\(([a-zA-Z]+)\)\s*\]\}/.exec(e);if(!a||!a.length)return e;var o,l=a[1],c=a[2];(t&&c in t?o=t[c]:c in r&&(o=r[c]),l in s)&&(e=(0,s[l])(e,o,n,i));return e}function A(e,t,n){return e.replace(/\{\{\s*(.+?)\s*\}\}/g,function(e,i){return t&&i in t?t[i]:i in r?r[i]:(console.log("argument {{"+i+"}} for #"+n+" is undefined."),e)})}function g(e){var n=function(e){if(!e)return{};var t=e.getAttribute("data-l10n-id"),n=e.getAttribute("data-l10n-args"),r={};if(n)try{r=JSON.parse(n)}catch(e){console.warn("could not parse arguments for #"+t)}return{id:t,args:r}}(e);if(n.id){var r=f(n.id,n.args);if(r){if(r[a]){if(0===function(e){if(e.children)return e.children.length;if(void 0!==e.childElementCount)return e.childElementCount;for(var t=0,n=0;n<e.childNodes.length;n++)t+=1===e.nodeType?1:0;return t}(e))e[a]=r[a];else{for(var i=e.childNodes,o=!1,s=0,l=i.length;s<l;s++)3===i[s].nodeType&&/\S/.test(i[s].nodeValue)&&(o?i[s].nodeValue="":(i[s].nodeValue=r[a],o=!0));if(!o){var c=t.createTextNode(r[a]);e.insertBefore(c,e.firstChild)}}delete r[a]}for(var u in r)e[u]=r[u]}else console.warn("#"+n.id+" is undefined.")}}return s.plural=function(e,t,n,i){var l=parseFloat(t);if(isNaN(l))return e;if(i!=a)return e;s._pluralRules||(s._pluralRules=function(e){function t(e,t){return-1!==t.indexOf(e)}function n(e,t,n){return t<=e&&e<=n}var r={0:function(e){return"other"},1:function(e){return n(e%100,3,10)?"few":0===e?"zero":n(e%100,11,99)?"many":2==e?"two":1==e?"one":"other"},2:function(e){return 0!==e&&e%10==0?"many":2==e?"two":1==e?"one":"other"},3:function(e){return 1==e?"one":"other"},4:function(e){return n(e,0,1)?"one":"other"},5:function(e){return n(e,0,2)&&2!=e?"one":"other"},6:function(e){return 0===e?"zero":e%10==1&&e%100!=11?"one":"other"},7:function(e){return 2==e?"two":1==e?"one":"other"},8:function(e){return n(e,3,6)?"few":n(e,7,10)?"many":2==e?"two":1==e?"one":"other"},9:function(e){return 0===e||1!=e&&n(e%100,1,19)?"few":1==e?"one":"other"},10:function(e){return n(e%10,2,9)&&!n(e%100,11,19)?"few":e%10!=1||n(e%100,11,19)?"other":"one"},11:function(e){return n(e%10,2,4)&&!n(e%100,12,14)?"few":e%10==0||n(e%10,5,9)||n(e%100,11,14)?"many":e%10==1&&e%100!=11?"one":"other"},12:function(e){return n(e,2,4)?"few":1==e?"one":"other"},13:function(e){return n(e%10,2,4)&&!n(e%100,12,14)?"few":1!=e&&n(e%10,0,1)||n(e%10,5,9)||n(e%100,12,14)?"many":1==e?"one":"other"},14:function(e){return n(e%100,3,4)?"few":e%100==2?"two":e%100==1?"one":"other"},15:function(e){return 0===e||n(e%100,2,10)?"few":n(e%100,11,19)?"many":1==e?"one":"other"},16:function(e){return e%10==1&&11!=e?"one":"other"},17:function(e){return 3==e?"few":0===e?"zero":6==e?"many":2==e?"two":1==e?"one":"other"},18:function(e){return 0===e?"zero":n(e,0,2)&&0!==e&&2!=e?"one":"other"},19:function(e){return n(e,2,10)?"few":n(e,0,1)?"one":"other"},20:function(e){return!n(e%10,3,4)&&e%10!=9||n(e%100,10,19)||n(e%100,70,79)||n(e%100,90,99)?e%1e6==0&&0!==e?"many":e%10!=2||t(e%100,[12,72,92])?e%10!=1||t(e%100,[11,71,91])?"other":"one":"two":"few"},21:function(e){return 0===e?"zero":1==e?"one":"other"},22:function(e){return n(e,0,1)||n(e,11,99)?"one":"other"},23:function(e){return n(e%10,1,2)||e%20==0?"one":"other"},24:function(e){return n(e,3,10)||n(e,13,19)?"few":t(e,[2,12])?"two":t(e,[1,11])?"one":"other"}},i={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}[e.replace(/-.*$/,"")];return i in r?r[i]:(console.warn("plural form unknown for ["+e+"]"),function(){return"other"})}(o));var c="["+s._pluralRules(l)+"]";return 0===l&&n+"[zero]"in r?e=r[n+"[zero]"][i]:1==l&&n+"[one]"in r?e=r[n+"[one]"][i]:2==l&&n+"[two]"in r?e=r[n+"[two]"][i]:n+c in r?e=r[n+c][i]:n+"[other]"in r&&(e=r[n+"[other]"][i]),e},{get:function(e,t,n){var r,i=e.lastIndexOf("."),o=a;i>0&&(o=e.substring(i+1),e=e.substring(0,i)),n&&((r={})[o]=n);var s=f(e,t,r);return s&&o in s?s[o]:"{{"+e+"}}"},getData:function(){return r},getText:function(){return i},getLanguage:function(){return o},setLanguage:function(e,t){d(e,function(){t&&t()})},getDirection:function(){var e=o.split("-",1)[0];return["ar","he","fa","ps","ur"].indexOf(e)>=0?"rtl":"ltr"},translate:function(e){for(var n=function(e){return e?e.querySelectorAll("*[data-l10n-id]"):[]}(e=e||t.documentElement),r=n.length,i=0;i<r;i++)g(n[i]);g(e)},getReadyState:function(){return l},ready:function(n){n&&("complete"==l||"interactive"==l?e.setTimeout(function(){n()}):t.addEventListener&&t.addEventListener("localized",function e(){t.removeEventListener("localized",e),n()}))}}}(window,document)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PDFFindController=t.FindState=void 0;var r=n(2),i=n(11),a=n(3);const o={FOUND:0,NOT_FOUND:1,WRAPPED:2,PENDING:3};t.FindState=o;const s=250,l=-50,c=-400,u={"‘":"'","’":"'","‚":"'","‛":"'","“":'"',"”":'"',"„":'"',"‟":'"',"¼":"1/4","½":"1/2","¾":"3/4"};let h=null;function d(e){if(!h){const e=Object.keys(u).join("");h=new RegExp(`[${e}]`,"g")}return e.replace(h,function(e){return u[e]})}t.PDFFindController=class{constructor({linkService:e,eventBus:t}){this._linkService=e,this._eventBus=t,this._reset(),t._on("findbarclose",this._onFindBarClose.bind(this))}get highlightMatches(){return this._highlightMatches}get pageMatches(){return this._pageMatches}get pageMatchesLength(){return this._pageMatchesLength}get selected(){return this._selected}get state(){return this._state}setDocument(e){this._pdfDocument&&this._reset(),e&&(this._pdfDocument=e,this._firstPageCapability.resolve())}executeCommand(e,t){if(!t)return;const n=this._pdfDocument;(null===this._state||this._shouldDirtyMatch(e,t))&&(this._dirtyMatch=!0),this._state=t,"findhighlightallchange"!==e&&this._updateUIState(o.PENDING),this._firstPageCapability.promise.then(()=>{if(!this._pdfDocument||n&&this._pdfDocument!==n)return;this._extractText();const t=!this._highlightMatches,r=!!this._findTimeout;this._findTimeout&&(clearTimeout(this._findTimeout),this._findTimeout=null),"find"===e?this._findTimeout=setTimeout(()=>{this._nextMatch(),this._findTimeout=null},s):this._dirtyMatch?this._nextMatch():"findagain"===e?(this._nextMatch(),t&&this._state.highlightAll&&this._updateAllPages()):"findhighlightallchange"===e?(r?this._nextMatch():this._highlightMatches=!0,this._updateAllPages()):this._nextMatch()})}scrollMatchIntoView({element:e=null,pageIndex:t=-1,matchIndex:n=-1}){if(!this._scrollMatches||!e)return;if(-1===n||n!==this._selected.matchIdx)return;if(-1===t||t!==this._selected.pageIdx)return;this._scrollMatches=!1;const r={top:l,left:c};(0,a.scrollIntoView)(e,r,!0)}_reset(){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,r.createPromiseCapability)()}get _query(){return this._state.query!==this._rawQuery&&(this._rawQuery=this._state.query,this._normalizedQuery=d(this._state.query)),this._normalizedQuery}_shouldDirtyMatch(e,t){if(t.query!==this._state.query)return!0;switch(e){case"findagain":const t=this._selected.pageIdx+1,n=this._linkService;return t>=1&&t<=n.pagesCount&&t!==n.page&&!n.isPageVisible(t);case"findhighlightallchange":return!1}return!0}_prepareMatches(e,t,n){function r(t){const n=e[t],r=e[t+1];if(t<e.length-1&&n.match===r.match)return n.skipped=!0,!0;for(let r=t-1;r>=0;r--){const t=e[r];if(!t.skipped){if(t.match+t.matchLength<n.match)break;if(t.match+t.matchLength>=n.match+n.matchLength)return n.skipped=!0,!0}}return!1}e.sort(function(e,t){return e.match===t.match?e.matchLength-t.matchLength:e.match-t.match});for(let i=0,a=e.length;i<a;i++)r(i)||(t.push(e[i].match),n.push(e[i].matchLength))}_isEntireWord(e,t,n){if(t>0){const n=e.charCodeAt(t),r=e.charCodeAt(t-1);if((0,i.getCharacterType)(n)===(0,i.getCharacterType)(r))return!1}const r=t+n-1;if(r<e.length-1){const t=e.charCodeAt(r),n=e.charCodeAt(r+1);if((0,i.getCharacterType)(t)===(0,i.getCharacterType)(n))return!1}return!0}_calculatePhraseMatch(e,t,n,r){const i=[],a=e.length;let o=-a;for(;-1!==(o=n.indexOf(e,o+a));)r&&!this._isEntireWord(n,o,a)||i.push(o);this._pageMatches[t]=i}_calculateWordMatch(e,t,n,r){const i=[],a=e.match(/\S+/g);for(let e=0,t=a.length;e<t;e++){const t=a[e],o=t.length;let s=-o;for(;-1!==(s=n.indexOf(t,s+o));)r&&!this._isEntireWord(n,s,o)||i.push({match:s,matchLength:o,skipped:!1})}this._pageMatchesLength[t]=[],this._pageMatches[t]=[],this._prepareMatches(i,this._pageMatches[t],this._pageMatchesLength[t])}_calculateMatch(e){let t=this._pageContents[e],n=this._query;const{caseSensitive:r,entireWord:i,phraseSearch:a}=this._state;if(0===n.length)return;r||(t=t.toLowerCase(),n=n.toLowerCase()),a?this._calculatePhraseMatch(n,e,t,i):this._calculateWordMatch(n,e,t,i),this._state.highlightAll&&this._updatePage(e),this._resumePageIdx===e&&(this._resumePageIdx=null,this._nextPageMatch());const o=this._pageMatches[e].length;o>0&&(this._matchesCountTotal+=o,this._updateUIResultsCount())}_extractText(){if(this._extractTextPromises.length>0)return;let e=Promise.resolve();for(let t=0,n=this._linkService.pagesCount;t<n;t++){const n=(0,r.createPromiseCapability)();this._extractTextPromises[t]=n.promise,e=e.then(()=>this._pdfDocument.getPage(t+1).then(e=>e.getTextContent({normalizeWhitespace:!0})).then(e=>{const r=e.items,i=[];for(let e=0,t=r.length;e<t;e++)i.push(r[e].str);this._pageContents[t]=d(i.join("")),n.resolve(t)},e=>{console.error(`Unable to get text content for page ${t+1}`,e),this._pageContents[t]="",n.resolve(t)}))}}_updatePage(e){this._scrollMatches&&this._selected.pageIdx===e&&(this._linkService.page=e+1),this._eventBus.dispatch("updatetextlayermatches",{source:this,pageIndex:e})}_updateAllPages(){this._eventBus.dispatch("updatetextlayermatches",{source:this,pageIndex:-1})}_nextMatch(){const e=this._state.findPrevious,t=this._linkService.page-1,n=this._linkService.pagesCount;if(this._highlightMatches=!0,this._dirtyMatch){this._dirtyMatch=!1,this._selected.pageIdx=this._selected.matchIdx=-1,this._offset.pageIdx=t,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(let e=0;e<n;e++)!0!==this._pendingFindMatches[e]&&(this._pendingFindMatches[e]=!0,this._extractTextPromises[e].then(e=>{delete this._pendingFindMatches[e],this._calculateMatch(e)}))}if(""===this._query)return void this._updateUIState(o.FOUND);if(this._resumePageIdx)return;const r=this._offset;if(this._pagesToSearch=n,null!==r.matchIdx){const t=this._pageMatches[r.pageIdx].length;if(!e&&r.matchIdx+1<t||e&&r.matchIdx>0)return r.matchIdx=e?r.matchIdx-1:r.matchIdx+1,void this._updateMatch(!0);this._advanceOffsetPage(e)}this._nextPageMatch()}_matchesReady(e){const t=this._offset,n=e.length,r=this._state.findPrevious;return n?(t.matchIdx=r?n-1:0,this._updateMatch(!0),!0):(this._advanceOffsetPage(r),!!(t.wrapped&&(t.matchIdx=null,this._pagesToSearch<0))&&(this._updateMatch(!1),!0))}_nextPageMatch(){null!==this._resumePageIdx&&console.error("There can only be one pending page.");let e=null;do{const t=this._offset.pageIdx;if(!(e=this._pageMatches[t])){this._resumePageIdx=t;break}}while(!this._matchesReady(e))}_advanceOffsetPage(e){const t=this._offset,n=this._linkService.pagesCount;t.pageIdx=e?t.pageIdx-1:t.pageIdx+1,t.matchIdx=null,this._pagesToSearch--,(t.pageIdx>=n||t.pageIdx<0)&&(t.pageIdx=e?n-1:0,t.wrapped=!0)}_updateMatch(e=!1){let t=o.NOT_FOUND;const n=this._offset.wrapped;if(this._offset.wrapped=!1,e){const e=this._selected.pageIdx;this._selected.pageIdx=this._offset.pageIdx,this._selected.matchIdx=this._offset.matchIdx,t=n?o.WRAPPED:o.FOUND,-1!==e&&e!==this._selected.pageIdx&&this._updatePage(e)}this._updateUIState(t,this._state.findPrevious),-1!==this._selected.pageIdx&&(this._scrollMatches=!0,this._updatePage(this._selected.pageIdx))}_onFindBarClose(e){const t=this._pdfDocument;this._firstPageCapability.promise.then(()=>{!this._pdfDocument||t&&this._pdfDocument!==t||(this._findTimeout&&(clearTimeout(this._findTimeout),this._findTimeout=null),this._resumePageIdx&&(this._resumePageIdx=null,this._dirtyMatch=!0),this._updateUIState(o.FOUND),this._highlightMatches=!1,this._updateAllPages())})}_requestMatchesCount(){const{pageIdx:e,matchIdx:t}=this._selected;let n=0,r=this._matchesCountTotal;if(-1!==t){for(let t=0;t<e;t++)n+=this._pageMatches[t]&&this._pageMatches[t].length||0;n+=t+1}return(n<1||n>r)&&(n=r=0),{current:n,total:r}}_updateUIResultsCount(){this._eventBus.dispatch("updatefindmatchescount",{source:this,matchesCount:this._requestMatchesCount()})}_updateUIState(e,t){this._eventBus.dispatch("updatefindcontrolstate",{source:this,state:e,previous:t,matchesCount:this._requestMatchesCount()})}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCharacterType=function(e){if(function(e){return e<11904}(e))return function(e){return 0==(65408&e)}(e)?function(e){return 32===e||9===e||13===e||10===e}(e)?r.SPACE:function(e){return e>=97&&e<=122||e>=65&&e<=90}(e)||function(e){return e>=48&&e<=57}(e)||95===e?r.ALPHA_LETTER:r.PUNCT:function(e){return 3584==(65408&e)}(e)?r.THAI_LETTER:160===e?r.SPACE:r.ALPHA_LETTER;if(function(e){return e>=13312&&e<=40959||e>=63744&&e<=64255}(e))return r.HAN_LETTER;if(function(e){return e>=12448&&e<=12543}(e))return r.KATAKANA_LETTER;if(function(e){return e>=12352&&e<=12447}(e))return r.HIRAGANA_LETTER;if(function(e){return e>=65376&&e<=65439}(e))return r.HALFWIDTH_KATAKANA_LETTER;return r.ALPHA_LETTER},t.CharacterType=void 0;const r={SPACE:0,ALPHA_LETTER:1,PUNCT:2,HAN_LETTER:3,KATAKANA_LETTER:4,HIRAGANA_LETTER:5,HALFWIDTH_KATAKANA_LETTER:6,THAI_LETTER:7};t.CharacterType=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isDestHashesEqual=l,t.isDestArraysEqual=c,t.PDFHistory=void 0;var r=n(3);const i=1e3,a=50,o=1e3;function s(){return document.location.hash}function l(e,t){if("string"!=typeof e||"string"!=typeof t)return!1;if(e===t)return!0;const{nameddest:n}=(0,r.parseQueryString)(e);return n===t}function c(e,t){function n(e,t){if(typeof e!=typeof t)return!1;if(Array.isArray(e)||Array.isArray(t))return!1;if(null!==e&&"object"==typeof e&&null!==t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(!n(e[r],t[r]))return!1;return!0}return e===t||Number.isNaN(e)&&Number.isNaN(t)}if(!Array.isArray(e)||!Array.isArray(t))return!1;if(e.length!==t.length)return!1;for(let r=0,i=e.length;r<i;r++)if(!n(e[r],t[r]))return!1;return!0}t.PDFHistory=class{constructor({linkService:e,eventBus:t}){this.linkService=e,this.eventBus=t,this._initialized=!1,this._fingerprint="",this.reset(),this._boundEvents=null,this._isViewerInPresentationMode=!1,this.eventBus._on("presentationmodechanged",e=>{this._isViewerInPresentationMode=e.active||e.switchInProgress}),this.eventBus._on("pagesinit",()=>{this._isPagesLoaded=!1;const e=t=>{this.eventBus._off("pagesloaded",e),this._isPagesLoaded=!!t.pagesCount};this.eventBus._on("pagesloaded",e)})}initialize({fingerprint:e,resetHistory:t=!1,updateUrl:n=!1}){if(!e||"string"!=typeof e)return void console.error('PDFHistory.initialize: The "fingerprint" must be a non-empty string.');this._initialized&&this.reset();const r=""!==this._fingerprint&&this._fingerprint!==e;this._fingerprint=e,this._updateUrl=!0===n,this._initialized=!0,this._bindEvents();const i=window.history.state;if(this._popStateInProgress=!1,this._blockHashChange=0,this._currentHash=s(),this._numPositionUpdates=0,this._uid=this._maxUid=0,this._destination=null,this._position=null,!this._isValidState(i,!0)||t){const{hash:e,page:n,rotation:i}=this._parseCurrentHash(!0);return!e||r||t?void this._pushOrReplaceState(null,!0):void this._pushOrReplaceState({hash:e,page:n,rotation:i},!0)}const a=i.destination;this._updateInternalState(a,i.uid,!0),this._uid>this._maxUid&&(this._maxUid=this._uid),void 0!==a.rotation&&(this._initialRotation=a.rotation),a.dest?(this._initialBookmark=JSON.stringify(a.dest),this._destination.page=null):a.hash?this._initialBookmark=a.hash:a.page&&(this._initialBookmark=`page=${a.page}`)}reset(){this._initialized&&(this._pageHide(),this._initialized=!1,this._unbindEvents()),this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),this._initialBookmark=null,this._initialRotation=null}push({namedDest:e=null,explicitDest:t,pageNumber:n}){if(!this._initialized)return;if(e&&"string"!=typeof e)return void console.error("PDFHistory.push: "+`"${e}" is not a valid namedDest parameter.`);if(!Array.isArray(t))return void console.error("PDFHistory.push: "+`"${t}" is not a valid explicitDest parameter.`);if(!(Number.isInteger(n)&&n>0&&n<=this.linkService.pagesCount)&&(null!==n||this._destination))return void console.error("PDFHistory.push: "+`"${n}" is not a valid pageNumber parameter.`);const r=e||JSON.stringify(t);if(!r)return;let i=!1;if(this._destination&&(l(this._destination.hash,r)||c(this._destination.dest,t))){if(this._destination.page)return;i=!0}this._popStateInProgress&&!i||(this._pushOrReplaceState({dest:t,hash:r,page:n,rotation:this.linkService.rotation},i),this._popStateInProgress||(this._popStateInProgress=!0,Promise.resolve().then(()=>{this._popStateInProgress=!1})))}pushCurrentPosition(){this._initialized&&!this._popStateInProgress&&this._tryPushCurrentPosition()}back(){if(!this._initialized||this._popStateInProgress)return;const e=window.history.state;this._isValidState(e)&&e.uid>0&&window.history.back()}forward(){if(!this._initialized||this._popStateInProgress)return;const e=window.history.state;this._isValidState(e)&&e.uid<this._maxUid&&window.history.forward()}get popStateInProgress(){return this._initialized&&(this._popStateInProgress||this._blockHashChange>0)}get initialBookmark(){return this._initialized?this._initialBookmark:null}get initialRotation(){return this._initialized?this._initialRotation:null}_pushOrReplaceState(e,t=!1){const n=t||!this._destination,r={fingerprint:this._fingerprint,uid:n?this._uid:this._uid+1,destination:e};let i;if(this._updateInternalState(e,r.uid),this._updateUrl&&e&&e.hash){const t=document.location.href.split("#")[0];t.startsWith("file://")||(i=`${t}#${e.hash}`)}n?window.history.replaceState(r,"",i):(this._maxUid=this._uid,window.history.pushState(r,"",i))}_tryPushCurrentPosition(e=!1){if(!this._position)return;let t=this._position;if(e&&((t=Object.assign(Object.create(null),this._position)).temporary=!0),!this._destination)return void this._pushOrReplaceState(t);if(this._destination.temporary)return void this._pushOrReplaceState(t,!0);if(this._destination.hash===t.hash)return;if(!this._destination.page&&(a<=0||this._numPositionUpdates<=a))return;let n=!1;if(this._destination.page>=t.first&&this._destination.page<=t.page){if(this._destination.dest||!this._destination.first)return;n=!0}this._pushOrReplaceState(t,n)}_isValidState(e,t=!1){if(!e)return!1;if(e.fingerprint!==this._fingerprint){if(!t)return!1;{if("string"!=typeof e.fingerprint||e.fingerprint.length!==this._fingerprint.length)return!1;const[t]=performance.getEntriesByType("navigation");if(!t||"reload"!==t.type)return!1}}return!(!Number.isInteger(e.uid)||e.uid<0)&&null!==e.destination&&"object"==typeof e.destination}_updateInternalState(e,t,n=!1){this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),n&&e&&e.temporary&&delete e.temporary,this._destination=e,this._uid=t,this._numPositionUpdates=0}_parseCurrentHash(e=!1){const t=unescape(s()).substring(1),n=(0,r.parseQueryString)(t),i=n.nameddest||"";let a=0|n.page;return Number.isInteger(a)&&a>0&&a<=this.linkService.pagesCount&&!(e&&i.length>0)||(a=null),{hash:t,page:a,rotation:this.linkService.rotation}}_updateViewarea({location:e}){this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),this._position={hash:this._isViewerInPresentationMode?`page=${e.pageNumber}`:e.pdfOpenParams.substring(1),page:this.linkService.page,first:e.pageNumber,rotation:e.rotation},this._popStateInProgress||(a>0&&this._isPagesLoaded&&this._destination&&!this._destination.page&&this._numPositionUpdates++,o>0&&(this._updateViewareaTimeout=setTimeout(()=>{this._popStateInProgress||this._tryPushCurrentPosition(!0),this._updateViewareaTimeout=null},o)))}_popState({state:e}){const t=s(),n=this._currentHash!==t;if(this._currentHash=t,!e){this._uid++;const{hash:e,page:t,rotation:n}=this._parseCurrentHash();return void this._pushOrReplaceState({hash:e,page:t,rotation:n},!0)}if(!this._isValidState(e))return;this._popStateInProgress=!0,n&&(this._blockHashChange++,(0,r.waitOnEventOrTimeout)({target:window,name:"hashchange",delay:i}).then(()=>{this._blockHashChange--}));const a=e.destination;this._updateInternalState(a,e.uid,!0),this._uid>this._maxUid&&(this._maxUid=this._uid),(0,r.isValidRotation)(a.rotation)&&(this.linkService.rotation=a.rotation),a.dest?this.linkService.navigateTo(a.dest):a.hash?this.linkService.setHash(a.hash):a.page&&(this.linkService.page=a.page),Promise.resolve().then(()=>{this._popStateInProgress=!1})}_pageHide(){this._destination&&!this._destination.temporary||this._tryPushCurrentPosition()}_bindEvents(){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))}_unbindEvents(){this._boundEvents&&(this.eventBus._off("updateviewarea",this._boundEvents.updateViewarea),window.removeEventListener("popstate",this._boundEvents.popState),window.removeEventListener("pagehide",this._boundEvents.pageHide),this._boundEvents=null)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PDFPageView=void 0;var r=n(3),i=n(2),a=n(14);const o=n(7).viewerCompatibilityParams.maxCanvasPixels||16777216;t.PDFPageView=class{constructor(e){const t=e.container,n=e.defaultViewport;this.id=e.id,this.renderingId="page"+this.id,this.pdfPage=null,this.pageLabel=null,this.rotation=0,this.scale=e.scale||r.DEFAULT_SCALE,this.viewport=n,this.pdfPageRotate=n.rotation,this.hasRestrictedScaling=!1,this.textLayerMode=Number.isInteger(e.textLayerMode)?e.textLayerMode:r.TextLayerMode.ENABLE,this.imageResourcesPath=e.imageResourcesPath||"",this.renderInteractiveForms=e.renderInteractiveForms||!1,this.useOnlyCssZoom=e.useOnlyCssZoom||!1,this.maxCanvasPixels=e.maxCanvasPixels||o,this.eventBus=e.eventBus,this.renderingQueue=e.renderingQueue,this.textLayerFactory=e.textLayerFactory,this.annotationLayerFactory=e.annotationLayerFactory,this.renderer=e.renderer||r.RendererType.CANVAS,this.enableWebGL=e.enableWebGL||!1,this.l10n=e.l10n||r.NullL10n,this.paintTask=null,this.paintedViewportMap=new WeakMap,this.renderingState=a.RenderingStates.INITIAL,this.resume=null,this.error=null,this.annotationLayer=null,this.textLayer=null,this.zoomLayer=null;const 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,t.appendChild(i)}setPdfPage(e){this.pdfPage=e,this.pdfPageRotate=e.rotate;const t=(this.rotation+this.pdfPageRotate)%360;this.viewport=e.getViewport({scale:this.scale*r.CSS_UNITS,rotation:t}),this.stats=e.stats,this.reset()}destroy(){this.reset(),this.pdfPage&&this.pdfPage.cleanup()}_resetZoomLayer(e=!1){if(!this.zoomLayer)return;const t=this.zoomLayer.firstChild;this.paintedViewportMap.delete(t),t.width=0,t.height=0,e&&this.zoomLayer.remove(),this.zoomLayer=null}reset(e=!1,t=!1){this.cancelRendering(t),this.renderingState=a.RenderingStates.INITIAL;const n=this.div;n.style.width=Math.floor(this.viewport.width)+"px",n.style.height=Math.floor(this.viewport.height)+"px";const r=n.childNodes,i=e&&this.zoomLayer||null,o=t&&this.annotationLayer&&this.annotationLayer.div||null;for(let e=r.length-1;e>=0;e--){const t=r[e];i!==t&&o!==t&&n.removeChild(t)}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)}update(e,t){this.scale=e||this.scale,void 0!==t&&(this.rotation=t);const n=(this.rotation+this.pdfPageRotate)%360;if(this.viewport=this.viewport.clone({scale:this.scale*r.CSS_UNITS,rotation:n}),this.svg)return this.cssTransform(this.svg,!0),void this.eventBus.dispatch("pagerendered",{source:this,pageNumber:this.id,cssTransform:!0,timestamp:performance.now()});let i=!1;if(this.canvas&&this.maxCanvasPixels>0){const e=this.outputScale;(Math.floor(this.viewport.width)*e.sx|0)*(Math.floor(this.viewport.height)*e.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)}cancelRendering(e=!1){this.paintTask&&(this.paintTask.cancel(),this.paintTask=null),this.resume=null,this.textLayer&&(this.textLayer.cancel(),this.textLayer=null),!e&&this.annotationLayer&&(this.annotationLayer.cancel(),this.annotationLayer=null)}cssTransform(e,t=!1){const n=this.viewport.width,r=this.viewport.height,i=this.div;e.style.width=e.parentNode.style.width=i.style.width=Math.floor(n)+"px",e.style.height=e.parentNode.style.height=i.style.height=Math.floor(r)+"px";const a=this.viewport.rotation-this.paintedViewportMap.get(e).rotation,o=Math.abs(a);let s=1,l=1;90!==o&&270!==o||(s=r/n,l=n/r);const c="rotate("+a+"deg) scale("+s+","+l+")";if(e.style.transform=c,this.textLayer){const e=this.textLayer.viewport,t=this.viewport.rotation-e.rotation,r=Math.abs(t);let i=n/e.width;90!==r&&270!==r||(i=n/e.height);const a=this.textLayer.textLayerDiv;let o,s;switch(r){case 0:o=s=0;break;case 90:o=0,s="-"+a.style.height;break;case 180:o="-"+a.style.width,s="-"+a.style.height;break;case 270:o="-"+a.style.width,s=0;break;default:console.error("Bad rotation value.")}a.style.transform="rotate("+r+"deg) scale("+i+", "+i+") translate("+o+", "+s+")",a.style.transformOrigin="0% 0%"}t&&this.annotationLayer&&this.annotationLayer.render(this.viewport,"display")}get width(){return this.viewport.width}get height(){return this.viewport.height}getPagePoint(e,t){return this.viewport.convertToPdfPoint(e,t)}draw(){this.renderingState!==a.RenderingStates.INITIAL&&(console.error("Must be in new state before drawing"),this.reset());const{div:e,pdfPage:t}=this;if(!t)return this.renderingState=a.RenderingStates.FINISHED,this.loadingIconDiv&&(e.removeChild(this.loadingIconDiv),delete this.loadingIconDiv),Promise.reject(new Error("pdfPage is not loaded"));this.renderingState=a.RenderingStates.RUNNING;const n=document.createElement("div");n.style.width=e.style.width,n.style.height=e.style.height,n.classList.add("canvasWrapper"),this.annotationLayer&&this.annotationLayer.div?e.insertBefore(n,this.annotationLayer.div):e.appendChild(n);let o=null;if(this.textLayerMode!==r.TextLayerMode.DISABLE&&this.textLayerFactory){const t=document.createElement("div");t.className="textLayer",t.style.width=n.style.width,t.style.height=n.style.height,this.annotationLayer&&this.annotationLayer.div?e.insertBefore(t,this.annotationLayer.div):e.appendChild(t),o=this.textLayerFactory.createTextLayerBuilder(t,this.id-1,this.viewport,this.textLayerMode===r.TextLayerMode.ENABLE_ENHANCE,this.eventBus)}this.textLayer=o;let s=null;this.renderingQueue&&(s=(e=>{if(!this.renderingQueue.isHighestPriority(this))return this.renderingState=a.RenderingStates.PAUSED,void(this.resume=(()=>{this.renderingState=a.RenderingStates.RUNNING,e()}));e()}));const l=async n=>{if(c===this.paintTask&&(this.paintTask=null),n instanceof i.RenderingCancelledException)this.error=null;else if(this.renderingState=a.RenderingStates.FINISHED,this.loadingIconDiv&&(e.removeChild(this.loadingIconDiv),delete this.loadingIconDiv),this._resetZoomLayer(!0),this.error=n,this.stats=t.stats,this.eventBus.dispatch("pagerendered",{source:this,pageNumber:this.id,cssTransform:!1,timestamp:performance.now()}),n)throw n},c=this.renderer===r.RendererType.SVG?this.paintOnSvg(n):this.paintOnCanvas(n);c.onRenderContinue=s,this.paintTask=c;const u=c.promise.then(function(){return l(null).then(function(){if(o){const e=t.streamTextContent({normalizeWhitespace:!0});o.setTextContentStream(e),o.render()}})},function(e){return l(e)});return this.annotationLayerFactory&&(this.annotationLayer||(this.annotationLayer=this.annotationLayerFactory.createAnnotationLayerBuilder(e,t,this.imageResourcesPath,this.renderInteractiveForms,this.l10n)),this.annotationLayer.render(this.viewport,"display")),e.setAttribute("data-loaded",!0),this.eventBus.dispatch("pagerender",{source:this,pageNumber:this.id}),u}paintOnCanvas(e){const t=(0,i.createPromiseCapability)(),n={promise:t.promise,onRenderContinue(e){e()},cancel(){p.cancel()}},a=this.viewport,o=document.createElement("canvas");this.l10n.get("page_canvas",{page:this.id},"Page {{page}}").then(e=>{o.setAttribute("aria-label",e)}),o.setAttribute("hidden","hidden");let s=!0;const l=function(){s&&(o.removeAttribute("hidden"),s=!1)};e.appendChild(o),this.canvas=o,o.mozOpaque=!0;const c=o.getContext("2d",{alpha:!1}),u=(0,r.getOutputScale)(c);if(this.outputScale=u,this.useOnlyCssZoom){const e=a.clone({scale:r.CSS_UNITS});u.sx*=e.width/a.width,u.sy*=e.height/a.height,u.scaled=!0}if(this.maxCanvasPixels>0){const e=a.width*a.height,t=Math.sqrt(this.maxCanvasPixels/e);u.sx>t||u.sy>t?(u.sx=t,u.sy=t,u.scaled=!0,this.hasRestrictedScaling=!0):this.hasRestrictedScaling=!1}const h=(0,r.approximateFraction)(u.sx),d=(0,r.approximateFraction)(u.sy);o.width=(0,r.roundToDivide)(a.width*u.sx,h[0]),o.height=(0,r.roundToDivide)(a.height*u.sy,d[0]),o.style.width=(0,r.roundToDivide)(a.width,h[1])+"px",o.style.height=(0,r.roundToDivide)(a.height,d[1])+"px",this.paintedViewportMap.set(o,a);const f={canvasContext:c,transform:u.scaled?[u.sx,0,0,u.sy,0,0]:null,viewport:this.viewport,enableWebGL:this.enableWebGL,renderInteractiveForms:this.renderInteractiveForms},p=this.pdfPage.render(f);return p.onContinue=function(e){l(),n.onRenderContinue?n.onRenderContinue(e):e()},p.promise.then(function(){l(),t.resolve(void 0)},function(e){l(),t.reject(e)}),n}paintOnSvg(e){let t=!1;const n=()=>{if(t)throw new i.RenderingCancelledException(`Rendering cancelled, page ${this.id}`,"svg")},o=this.pdfPage,s=this.viewport.clone({scale:r.CSS_UNITS});return{promise:o.getOperatorList().then(t=>(n(),new i.SVGGraphics(o.commonObjs,o.objs).getSVG(t,s).then(t=>{n(),this.svg=t,this.paintedViewportMap.set(t,s),t.style.width=e.style.width,t.style.height=e.style.height,this.renderingState=a.RenderingStates.FINISHED,e.appendChild(t)}))),onRenderContinue(e){e()},cancel(){t=!0}}}setPageLabel(e){this.pageLabel="string"==typeof e?e:null,null!==this.pageLabel?this.div.setAttribute("data-page-label",this.pageLabel):this.div.removeAttribute("data-page-label")}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PDFRenderingQueue=t.RenderingStates=void 0;const r=3e4,i={INITIAL:0,RUNNING:1,PAUSED:2,FINISHED:3};t.RenderingStates=i;t.PDFRenderingQueue=class{constructor(){this.pdfViewer=null,this.pdfThumbnailViewer=null,this.onIdle=null,this.highestPriorityPage=null,this.idleTimeout=null,this.printing=!1,this.isThumbnailViewEnabled=!1}setViewer(e){this.pdfViewer=e}setThumbnailViewer(e){this.pdfThumbnailViewer=e}isHighestPriority(e){return this.highestPriorityPage===e.renderingId}renderHighestPriority(e){this.idleTimeout&&(clearTimeout(this.idleTimeout),this.idleTimeout=null),this.pdfViewer.forceRendering(e)||this.pdfThumbnailViewer&&this.isThumbnailViewEnabled&&this.pdfThumbnailViewer.forceRendering()||this.printing||this.onIdle&&(this.idleTimeout=setTimeout(this.onIdle.bind(this),r))}getHighestPriority(e,t,n){const r=e.views,i=r.length;if(0===i)return null;for(let e=0;e<i;++e){const t=r[e].view;if(!this.isViewFinished(t))return t}if(n){const n=e.last.id;if(t[n]&&!this.isViewFinished(t[n]))return t[n]}else{const n=e.first.id-2;if(t[n]&&!this.isViewFinished(t[n]))return t[n]}return null}isViewFinished(e){return e.renderingState===i.FINISHED}renderView(e){switch(e.renderingState){case i.FINISHED:return!1;case i.PAUSED:this.highestPriorityPage=e.renderingId,e.resume();break;case i.RUNNING:this.highestPriorityPage=e.renderingId;break;case i.INITIAL:this.highestPriorityPage=e.renderingId,e.draw().finally(()=>{this.renderHighestPriority()}).catch(e=>{console.error(`renderView: "${e}"`)})}return!0}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PDFSinglePageViewer=void 0;var r=n(16),i=n(2);t.PDFSinglePageViewer=class extends r.BaseViewer{constructor(e){super(e),this.eventBus._on("pagesinit",e=>{this._ensurePageViewVisible()})}get _viewerElement(){return(0,i.shadow)(this,"_viewerElement",this._shadowViewer)}_resetView(){super._resetView(),this._previousPageNumber=1,this._shadowViewer=document.createDocumentFragment(),this._updateScrollDown=null}_ensurePageViewVisible(){const e=this._pages[this._currentPageNumber-1],t=this._pages[this._previousPageNumber-1],n=this.viewer.childNodes;switch(n.length){case 0:this.viewer.appendChild(e.div);break;case 1:if(n[0]!==t.div)throw new Error("_ensurePageViewVisible: Unexpected previously visible page.");if(e===t)break;this._shadowViewer.appendChild(t.div),this.viewer.appendChild(e.div),this.container.scrollTop=0;break;default:throw new Error("_ensurePageViewVisible: Only one page should be visible at a time.")}this._previousPageNumber=this._currentPageNumber}_scrollUpdate(){this._updateScrollDown&&this._updateScrollDown(),super._scrollUpdate()}_scrollIntoView({pageDiv:e,pageSpot:t=null,pageNumber:n=null}){n&&this._setCurrentPageNumber(n);const r=this._currentPageNumber>=this._previousPageNumber;this._ensurePageViewVisible(),this.update(),super._scrollIntoView({pageDiv:e,pageSpot:t,pageNumber:n}),this._updateScrollDown=(()=>{this.scroll.down=r,this._updateScrollDown=null})}_getVisiblePages(){return this._getCurrentVisiblePage()}_updateHelper(e){}get _isScrollModeHorizontal(){return(0,i.shadow)(this,"_isScrollModeHorizontal",!1)}_updateScrollMode(){}_updateSpreadMode(){}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BaseViewer=void 0;var r=n(3),i=n(14),a=n(1),o=n(2),s=n(13),l=n(4),c=n(5);const u=10;class h{constructor(e){if(this.constructor===h)throw new Error("Cannot initialize BaseViewer.");this._name=this.constructor.name,this.container=e.container,this.viewer=e.viewer||e.container.firstElementChild,this.eventBus=e.eventBus,this.linkService=e.linkService||new l.SimpleLinkService,this.downloadManager=e.downloadManager||null,this.findController=e.findController||null,this.removePageBorders=e.removePageBorders||!1,this.textLayerMode=Number.isInteger(e.textLayerMode)?e.textLayerMode:r.TextLayerMode.ENABLE,this.imageResourcesPath=e.imageResourcesPath||"",this.renderInteractiveForms=e.renderInteractiveForms||!1,this.enablePrintAutoRotate=e.enablePrintAutoRotate||!1,this.renderer=e.renderer||r.RendererType.CANVAS,this.enableWebGL=e.enableWebGL||!1,this.useOnlyCssZoom=e.useOnlyCssZoom||!1,this.maxCanvasPixels=e.maxCanvasPixels,this.l10n=e.l10n||r.NullL10n,this.defaultRenderingQueue=!e.renderingQueue,this.defaultRenderingQueue?(this.renderingQueue=new i.PDFRenderingQueue,this.renderingQueue.setViewer(this)):this.renderingQueue=e.renderingQueue,this.scroll=(0,r.watchScroll)(this.container,this._scrollUpdate.bind(this)),this.presentationModeState=r.PresentationModeState.UNKNOWN,this._onBeforeDraw=this._onAfterDraw=null,this._resetView(),this.removePageBorders&&this.viewer.classList.add("removePageBorders"),Promise.resolve().then(()=>{this.eventBus.dispatch("baseviewerinit",{source:this})})}get pagesCount(){return this._pages.length}getPageView(e){return this._pages[e]}get pageViewsReady(){return!!this._pagesCapability.settled&&this._pages.every(function(e){return e&&e.pdfPage})}get currentPageNumber(){return this._currentPageNumber}set currentPageNumber(e){if(!Number.isInteger(e))throw new Error("Invalid page number.");this.pdfDocument&&(this._setCurrentPageNumber(e,!0)||console.error(`${this._name}.currentPageNumber: "${e}" is not a valid page.`))}_setCurrentPageNumber(e,t=!1){return this._currentPageNumber===e?(t&&this._resetCurrentPageView(),!0):0<e&&e<=this.pagesCount&&(this._currentPageNumber=e,this.eventBus.dispatch("pagechanging",{source:this,pageNumber:e,pageLabel:this._pageLabels&&this._pageLabels[e-1]}),t&&this._resetCurrentPageView(),!0)}get currentPageLabel(){return this._pageLabels&&this._pageLabels[this._currentPageNumber-1]}set currentPageLabel(e){if(!this.pdfDocument)return;let t=0|e;if(this._pageLabels){const n=this._pageLabels.indexOf(e);n>=0&&(t=n+1)}this._setCurrentPageNumber(t,!0)||console.error(`${this._name}.currentPageLabel: "${e}" is not a valid page.`)}get currentScale(){return this._currentScale!==r.UNKNOWN_SCALE?this._currentScale:r.DEFAULT_SCALE}set currentScale(e){if(isNaN(e))throw new Error("Invalid numeric scale.");this.pdfDocument&&this._setScale(e,!1)}get currentScaleValue(){return this._currentScaleValue}set currentScaleValue(e){this.pdfDocument&&this._setScale(e,!1)}get pagesRotation(){return this._pagesRotation}set pagesRotation(e){if(!(0,r.isValidRotation)(e))throw new Error("Invalid pages rotation angle.");if(!this.pdfDocument)return;if(this._pagesRotation===e)return;this._pagesRotation=e;const t=this._currentPageNumber;for(let t=0,n=this._pages.length;t<n;t++){const n=this._pages[t];n.update(n.scale,e)}this._currentScaleValue&&this._setScale(this._currentScaleValue,!0),this.eventBus.dispatch("rotationchanging",{source:this,pagesRotation:e,pageNumber:t}),this.defaultRenderingQueue&&this.update()}get firstPagePromise(){return this.pdfDocument?this._firstPageCapability.promise:null}get onePageRendered(){return this.pdfDocument?this._onePageRenderedCapability.promise:null}get pagesPromise(){return this.pdfDocument?this._pagesCapability.promise:null}get _viewerElement(){throw new Error("Not implemented: _viewerElement")}_onePageRenderedOrForceFetch(){return this.container.offsetParent&&0!==this._getVisiblePages().views.length?this._onePageRenderedCapability.promise:Promise.resolve()}setDocument(e){if(this.pdfDocument&&(this._cancelRendering(),this._resetView(),this.findController&&this.findController.setDocument(null)),this.pdfDocument=e,!e)return;const t=e.numPages,n=e.getPage(1);this._pagesCapability.promise.then(()=>{this.eventBus.dispatch("pagesloaded",{source:this,pagesCount:t})}),this._onBeforeDraw=(e=>{const t=this._pages[e.pageNumber-1];t&&this._buffer.push(t)}),this.eventBus._on("pagerender",this._onBeforeDraw),this._onAfterDraw=(e=>{e.cssTransform||this._onePageRenderedCapability.settled||(this._onePageRenderedCapability.resolve(),this.eventBus._off("pagerendered",this._onAfterDraw),this._onAfterDraw=null)}),this.eventBus._on("pagerendered",this._onAfterDraw),n.then(n=>{this._firstPageCapability.resolve(n);const i=this.currentScale,a=n.getViewport({scale:i*r.CSS_UNITS}),o=this.textLayerMode!==r.TextLayerMode.DISABLE?this:null;for(let e=1;e<=t;++e){const t=new s.PDFPageView({container:this._viewerElement,eventBus:this.eventBus,id:e,scale:i,defaultViewport:a.clone(),renderingQueue:this.renderingQueue,textLayerFactory:o,textLayerMode:this.textLayerMode,annotationLayerFactory:this,imageResourcesPath:this.imageResourcesPath,renderInteractiveForms:this.renderInteractiveForms,renderer:this.renderer,enableWebGL:this.enableWebGL,useOnlyCssZoom:this.useOnlyCssZoom,maxCanvasPixels:this.maxCanvasPixels,l10n:this.l10n});this._pages.push(t)}const l=this._pages[0];l&&(l.setPdfPage(n),this.linkService.cachePageRef(1,n.ref)),this._spreadMode!==r.SpreadMode.NONE&&this._updateSpreadMode(),this._onePageRenderedOrForceFetch().then(()=>{if(this.findController&&this.findController.setDocument(e),e.loadingParams.disableAutoFetch||t>7500)return void this._pagesCapability.resolve();let n=t-1;if(n<=0)this._pagesCapability.resolve();else for(let r=2;r<=t;++r)e.getPage(r).then(e=>{const t=this._pages[r-1];t.pdfPage||t.setPdfPage(e),this.linkService.cachePageRef(r,e.ref),0==--n&&this._pagesCapability.resolve()},e=>{console.error(`Unable to get page ${r} to initialize viewer`,e),0==--n&&this._pagesCapability.resolve()})}),this.eventBus.dispatch("pagesinit",{source:this}),this.defaultRenderingQueue&&this.update()}).catch(e=>{console.error("Unable to initialize viewer",e)})}setPageLabels(e){if(this.pdfDocument){e?Array.isArray(e)&&this.pdfDocument.numPages===e.length?this._pageLabels=e:(this._pageLabels=null,console.error(`${this._name}.setPageLabels: Invalid page labels.`)):this._pageLabels=null;for(let e=0,t=this._pages.length;e<t;e++){const t=this._pages[e],n=this._pageLabels&&this._pageLabels[e];t.setPageLabel(n)}}}_resetView(){this._pages=[],this._currentPageNumber=1,this._currentScale=r.UNKNOWN_SCALE,this._currentScaleValue=null,this._pageLabels=null,this._buffer=new function(e){const t=[];this.push=function(n){const r=t.indexOf(n);r>=0&&t.splice(r,1),t.push(n),t.length>e&&t.shift().destroy()},this.resize=function(n,i){if(e=n,i){const e=new Set;for(let t=0,n=i.length;t<n;++t)e.add(i[t].id);(0,r.moveToEndOfArray)(t,function(t){return e.has(t.id)})}for(;t.length>e;)t.shift().destroy()}}(u),this._location=null,this._pagesRotation=0,this._pagesRequests=new WeakMap,this._firstPageCapability=(0,o.createPromiseCapability)(),this._onePageRenderedCapability=(0,o.createPromiseCapability)(),this._pagesCapability=(0,o.createPromiseCapability)(),this._scrollMode=r.ScrollMode.VERTICAL,this._spreadMode=r.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()}_scrollUpdate(){0!==this.pagesCount&&this.update()}_scrollIntoView({pageDiv:e,pageSpot:t=null,pageNumber:n=null}){(0,r.scrollIntoView)(e,t)}_setScaleUpdatePages(e,t,n=!1,r=!1){if(this._currentScaleValue=t.toString(),function(e,t){return t===e||Math.abs(t-e)<1e-15}(this._currentScale,e))r&&this.eventBus.dispatch("scalechanging",{source:this,scale:e,presetValue:t});else{for(let t=0,n=this._pages.length;t<n;t++)this._pages[t].update(e);if(this._currentScale=e,!n){let e,t=this._currentPageNumber;!this._location||this.isInPresentationMode||this.isChangingPresentationMode||(t=this._location.pageNumber,e=[null,{name:"XYZ"},this._location.left,this._location.top,null]),this.scrollPageIntoView({pageNumber:t,destArray:e,allowNegativeOffset:!0})}this.eventBus.dispatch("scalechanging",{source:this,scale:e,presetValue:r?t:void 0}),this.defaultRenderingQueue&&this.update()}}_setScale(e,t=!1){let n=parseFloat(e);if(n>0)this._setScaleUpdatePages(n,e,t,!1);else{const i=this._pages[this._currentPageNumber-1];if(!i)return;const a=this.isInPresentationMode||this.removePageBorders;let o=a?0:r.SCROLLBAR_PADDING,s=a?0:r.VERTICAL_PADDING;!a&&this._isScrollModeHorizontal&&([o,s]=[s,o]);const l=(this.container.clientWidth-o)/i.width*i.scale,c=(this.container.clientHeight-s)/i.height*i.scale;switch(e){case"page-actual":n=1;break;case"page-width":n=l;break;case"page-height":n=c;break;case"page-fit":n=Math.min(l,c);break;case"auto":const t=(0,r.isPortraitOrientation)(i)?l:Math.min(c,l);n=Math.min(r.MAX_AUTO_SCALE,t);break;default:return void console.error(`${this._name}._setScale: "${e}" is an unknown zoom value.`)}this._setScaleUpdatePages(n,e,t,!0)}}_resetCurrentPageView(){this.isInPresentationMode&&this._setScale(this._currentScaleValue,!0);const e=this._pages[this._currentPageNumber-1];this._scrollIntoView({pageDiv:e.div})}scrollPageIntoView({pageNumber:e,destArray:t=null,allowNegativeOffset:n=!1,ignoreDestinationZoom:i=!1}){if(!this.pdfDocument)return;const a=Number.isInteger(e)&&this._pages[e-1];if(!a)return void console.error(`${this._name}.scrollPageIntoView: `+`"${e}" is not a valid pageNumber parameter.`);if(this.isInPresentationMode||!t)return void this._setCurrentPageNumber(e,!0);let o,s,l=0,c=0,u=0,h=0;const d=a.rotation%180!=0,f=(d?a.height:a.width)/a.scale/r.CSS_UNITS,p=(d?a.width:a.height)/a.scale/r.CSS_UNITS;let A=0;switch(t[1].name){case"XYZ":l=t[2],c=t[3],A=t[4],l=null!==l?l:0,c=null!==c?c:p;break;case"Fit":case"FitB":A="page-fit";break;case"FitH":case"FitBH":A="page-width",null===(c=t[2])&&this._location&&(l=this._location.left,c=this._location.top);break;case"FitV":case"FitBV":l=t[2],u=f,h=p,A="page-height";break;case"FitR":l=t[2],c=t[3],u=t[4]-l,h=t[5]-c;const e=this.removePageBorders?0:r.SCROLLBAR_PADDING,n=this.removePageBorders?0:r.VERTICAL_PADDING;o=(this.container.clientWidth-e)/u/r.CSS_UNITS,s=(this.container.clientHeight-n)/h/r.CSS_UNITS,A=Math.min(Math.abs(o),Math.abs(s));break;default:return void console.error(`${this._name}.scrollPageIntoView: `+`"${t[1].name}" is not a valid destination type.`)}if(i||(A&&A!==this._currentScale?this.currentScaleValue=A:this._currentScale===r.UNKNOWN_SCALE&&(this.currentScaleValue=r.DEFAULT_SCALE_VALUE)),"page-fit"===A&&!t[4])return void this._scrollIntoView({pageDiv:a.div,pageNumber:e});const g=[a.viewport.convertToViewportPoint(l,c),a.viewport.convertToViewportPoint(l+u,c+h)];let m=Math.min(g[0][0],g[1][0]),v=Math.min(g[0][1],g[1][1]);n||(m=Math.max(m,0),v=Math.max(v,0)),this._scrollIntoView({pageDiv:a.div,pageSpot:{left:m,top:v},pageNumber:e})}_updateLocation(e){const t=this._currentScale,n=this._currentScaleValue,r=parseFloat(n)===t?Math.round(1e4*t)/100:n,i=e.id;let a="#page="+i;a+="&zoom="+r;const o=this._pages[i-1],s=this.container,l=o.getPagePoint(s.scrollLeft-e.x,s.scrollTop-e.y),c=Math.round(l[0]),u=Math.round(l[1]);a+=","+c+","+u,this._location={pageNumber:i,scale:r,top:u,left:c,rotation:this._pagesRotation,pdfOpenParams:a}}_updateHelper(e){throw new Error("Not implemented: _updateHelper")}update(){const e=this._getVisiblePages(),t=e.views,n=t.length;if(0===n)return;const r=Math.max(u,2*n+1);this._buffer.resize(r,t),this.renderingQueue.renderHighestPriority(e),this._updateHelper(t),this._updateLocation(e.first),this.eventBus.dispatch("updateviewarea",{source:this,location:this._location})}containsElement(e){return this.container.contains(e)}focus(){this.container.focus()}get _isScrollModeHorizontal(){return!this.isInPresentationMode&&this._scrollMode===r.ScrollMode.HORIZONTAL}get isInPresentationMode(){return this.presentationModeState===r.PresentationModeState.FULLSCREEN}get isChangingPresentationMode(){return this.presentationModeState===r.PresentationModeState.CHANGING}get isHorizontalScrollbarEnabled(){return!this.isInPresentationMode&&this.container.scrollWidth>this.container.clientWidth}get isVerticalScrollbarEnabled(){return!this.isInPresentationMode&&this.container.scrollHeight>this.container.clientHeight}_getCurrentVisiblePage(){if(!this.pagesCount)return{views:[]};const e=this._pages[this._currentPageNumber-1],t=e.div,n={id:e.id,x:t.offsetLeft+t.clientLeft,y:t.offsetTop+t.clientTop,view:e};return{first:n,last:n,views:[n]}}_getVisiblePages(){return(0,r.getVisibleElements)(this.container,this._pages,!0,this._isScrollModeHorizontal)}isPageVisible(e){return!!this.pdfDocument&&(e<1||e>this.pagesCount?(console.error(`${this._name}.isPageVisible: "${e}" is out of bounds.`),!1):this._getVisiblePages().views.some(function(t){return t.id===e}))}cleanup(){for(let e=0,t=this._pages.length;e<t;e++)this._pages[e]&&this._pages[e].renderingState!==i.RenderingStates.FINISHED&&this._pages[e].reset()}_cancelRendering(){for(let e=0,t=this._pages.length;e<t;e++)this._pages[e]&&this._pages[e].cancelRendering()}_ensurePdfPageLoaded(e){if(e.pdfPage)return Promise.resolve(e.pdfPage);if(this._pagesRequests.has(e))return this._pagesRequests.get(e);const t=this.pdfDocument.getPage(e.id).then(t=>(e.pdfPage||e.setPdfPage(t),this._pagesRequests.delete(e),t)).catch(t=>{console.error("Unable to get page for page view",t),this._pagesRequests.delete(e)});return this._pagesRequests.set(e,t),t}forceRendering(e){const t=e||this._getVisiblePages(),n=this._isScrollModeHorizontal?this.scroll.right:this.scroll.down,r=this.renderingQueue.getHighestPriority(t,this._pages,n);return!!r&&(this._ensurePdfPageLoaded(r).then(()=>{this.renderingQueue.renderView(r)}),!0)}createTextLayerBuilder(e,t,n,r=!1,i){return new c.TextLayerBuilder({textLayerDiv:e,eventBus:i,pageIndex:t,viewport:n,findController:this.isInPresentationMode?null:this.findController,enhanceTextSelection:!this.isInPresentationMode&&r})}createAnnotationLayerBuilder(e,t,n="",i=!1,o=r.NullL10n){return new a.AnnotationLayerBuilder({pageDiv:e,pdfPage:t,imageResourcesPath:n,renderInteractiveForms:i,linkService:this.linkService,downloadManager:this.downloadManager,l10n:o})}get hasEqualPageSizes(){const e=this._pages[0];for(let t=1,n=this._pages.length;t<n;++t){const n=this._pages[t];if(n.width!==e.width||n.height!==e.height)return!1}return!0}getPagesOverview(){const e=this._pages.map(function(e){const t=e.pdfPage.getViewport({scale:1});return{width:t.width,height:t.height,rotation:t.rotation}});if(!this.enablePrintAutoRotate)return e;const t=(0,r.isPortraitOrientation)(e[0]);return e.map(function(e){return t===(0,r.isPortraitOrientation)(e)?e:{width:e.height,height:e.width,rotation:(e.rotation+90)%360}})}get scrollMode(){return this._scrollMode}set scrollMode(e){if(this._scrollMode!==e){if(!(0,r.isValidScrollMode)(e))throw new Error(`Invalid scroll mode: ${e}`);this._scrollMode=e,this.eventBus.dispatch("scrollmodechanged",{source:this,mode:e}),this._updateScrollMode(this._currentPageNumber)}}_updateScrollMode(e=null){const t=this._scrollMode,n=this.viewer;n.classList.toggle("scrollHorizontal",t===r.ScrollMode.HORIZONTAL),n.classList.toggle("scrollWrapped",t===r.ScrollMode.WRAPPED),this.pdfDocument&&e&&(this._currentScaleValue&&isNaN(this._currentScaleValue)&&this._setScale(this._currentScaleValue,!0),this._setCurrentPageNumber(e,!0),this.update())}get spreadMode(){return this._spreadMode}set spreadMode(e){if(this._spreadMode!==e){if(!(0,r.isValidSpreadMode)(e))throw new Error(`Invalid spread mode: ${e}`);this._spreadMode=e,this.eventBus.dispatch("spreadmodechanged",{source:this,mode:e}),this._updateSpreadMode(this._currentPageNumber)}}_updateSpreadMode(e=null){if(!this.pdfDocument)return;const t=this.viewer,n=this._pages;if(t.textContent="",this._spreadMode===r.SpreadMode.NONE)for(let e=0,r=n.length;e<r;++e)t.appendChild(n[e].div);else{const e=this._spreadMode-1;let r=null;for(let i=0,a=n.length;i<a;++i)null===r?((r=document.createElement("div")).className="spread",t.appendChild(r)):i%2===e&&(r=r.cloneNode(!1),t.appendChild(r)),r.appendChild(n[i].div)}e&&(this._setCurrentPageNumber(e,!0),this.update())}}t.BaseViewer=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PDFViewer=void 0;var r=n(16),i=n(2);t.PDFViewer=class extends r.BaseViewer{get _viewerElement(){return(0,i.shadow)(this,"_viewerElement",this.viewer)}_scrollIntoView({pageDiv:e,pageSpot:t=null,pageNumber:n=null}){if(!t&&!this.isInPresentationMode){const n=e.offsetLeft+e.clientLeft,r=n+e.clientWidth,{scrollLeft:i,clientWidth:a}=this.container;(this._isScrollModeHorizontal||n<i||r>i+a)&&(t={left:0,top:0})}super._scrollIntoView({pageDiv:e,pageSpot:t,pageNumber:n})}_getVisiblePages(){return this.isInPresentationMode?this._getCurrentVisiblePage():super._getVisiblePages()}_updateHelper(e){if(this.isInPresentationMode)return;let t=this._currentPageNumber,n=!1;for(const r of e){if(r.percent<100)break;if(r.id===t){n=!0;break}}n||(t=e[0].id),this._setCurrentPageNumber(t)}}}])},e.exports=r()},aa79:function(e,t,n){},b639:function(e,t,n){"use strict";(function(e){
  116. /*!
  117. * The buffer module from node.js, for the browser.
  118. *
  119. * @author Feross Aboukhadijeh <http://feross.org>
  120. * @license MIT
  121. */
  122. var r=n("1fb5"),i=n("9152"),a=n("e3db");function o(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(o()<t)throw new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=l.prototype:(null===e&&(e=new l(t)),e.length=t),e}function l(e,t,n){if(!(l.TYPED_ARRAY_SUPPORT||this instanceof l))return new l(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return h(this,e)}return c(this,e,t,n)}function c(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);l.TYPED_ARRAY_SUPPORT?(e=t).__proto__=l.prototype:e=d(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!l.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|p(t,n),i=(e=s(e,r)).write(t,n);i!==r&&(e=e.slice(0,i));return e}(e,t,n):function(e,t){if(l.isBuffer(t)){var n=0|f(t.length);return 0===(e=s(e,n)).length?e:(t.copy(e,0,0,n),e)}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?s(e,0):d(e,t);if("Buffer"===t.type&&a(t.data))return d(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function h(e,t){if(u(t),e=s(e,t<0?0:0|f(t)),!l.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function d(e,t){var n=t.length<0?0:0|f(t.length);e=s(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function f(e){if(e>=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|e}function p(e,t){if(l.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return H(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return j(e).length;default:if(r)return H(e).length;t=(""+t).toLowerCase(),r=!0}}function A(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function g(e,t,n,r,i){if(0===e.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:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=l.from(t,r)),l.isBuffer(t))return 0===t.length?-1:m(e,t,n,r,i);if("number"==typeof t)return t&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):m(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function m(e,t,n,r,i){var a,o=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;o=2,s/=2,l/=2,n/=2}function c(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){var u=-1;for(a=n;a<s;a++)if(c(e,a)===c(t,-1===u?0:a-u)){if(-1===u&&(u=a),a-u+1===l)return u*o}else-1!==u&&(a-=a-u),u=-1}else for(n+l>s&&(n=s-l),a=n;a>=0;a--){for(var h=!0,d=0;d<l;d++)if(c(e,a+d)!==c(t,d)){h=!1;break}if(h)return a}return-1}function v(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var a=t.length;if(a%2!=0)throw new TypeError("Invalid hex string");r>a/2&&(r=a/2);for(var o=0;o<r;++o){var s=parseInt(t.substr(2*o,2),16);if(isNaN(s))return o;e[n+o]=s}return o}function y(e,t,n,r){return Q(H(t,e.length-n),e,n,r)}function b(e,t,n,r){return Q(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function w(e,t,n,r){return b(e,t,n,r)}function x(e,t,n,r){return Q(j(t),e,n,r)}function _(e,t,n,r){return Q(function(e,t){for(var n,r,i,a=[],o=0;o<e.length&&!((t-=2)<0);++o)n=e.charCodeAt(o),r=n>>8,i=n%256,a.push(i),a.push(r);return a}(t,e.length-n),e,n,r)}function C(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function S(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var a,o,s,l,c=e[i],u=null,h=c>239?4:c>223?3:c>191?2:1;if(i+h<=n)switch(h){case 1:c<128&&(u=c);break;case 2:128==(192&(a=e[i+1]))&&(l=(31&c)<<6|63&a)>127&&(u=l);break;case 3:a=e[i+1],o=e[i+2],128==(192&a)&&128==(192&o)&&(l=(15&c)<<12|(63&a)<<6|63&o)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:a=e[i+1],o=e[i+2],s=e[i+3],128==(192&a)&&128==(192&o)&&128==(192&s)&&(l=(15&c)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&l<1114112&&(u=l)}null===u?(u=65533,h=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),i+=h}return function(e){var t=e.length;if(t<=k)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=k));return n}(r)}t.Buffer=l,t.SlowBuffer=function(e){+e!=e&&(e=0);return l.alloc(+e)},t.INSPECT_MAX_BYTES=50,l.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=o(),l.poolSize=8192,l._augment=function(e){return e.__proto__=l.prototype,e},l.from=function(e,t,n){return c(null,e,t,n)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(e,t,n){return function(e,t,n,r){return u(t),t<=0?s(e,t):void 0!==n?"string"==typeof r?s(e,t).fill(n,r):s(e,t).fill(n):s(e,t)}(null,e,t,n)},l.allocUnsafe=function(e){return h(null,e)},l.allocUnsafeSlow=function(e){return h(null,e)},l.isBuffer=function(e){return!(null==e||!e._isBuffer)},l.compare=function(e,t){if(!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,a=Math.min(n,r);i<a;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,t){if(!a(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=l.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var o=e[n];if(!l.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(r,i),i+=o.length}return r},l.byteLength=p,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)A(this,t,t+1);return this},l.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)A(this,t,t+3),A(this,t+1,t+2);return this},l.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)A(this,t,t+7),A(this,t+1,t+6),A(this,t+2,t+5),A(this,t+3,t+4);return this},l.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?S(this,0,e):function(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return T(this,t,n);case"utf8":case"utf-8":return S(this,t,n);case"ascii":return B(this,t,n);case"latin1":case"binary":return E(this,t,n);case"base64":return C(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}.apply(this,arguments)},l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},l.prototype.compare=function(e,t,n,r,i){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var a=i-r,o=n-t,s=Math.min(a,o),c=this.slice(r,i),u=e.slice(t,n),h=0;h<s;++h)if(c[h]!==u[h]){a=c[h],o=u[h];break}return a<o?-1:o<a?1:0},l.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},l.prototype.indexOf=function(e,t,n){return g(this,e,t,n,!0)},l.prototype.lastIndexOf=function(e,t,n){return g(this,e,t,n,!1)},l.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var a=!1;;)switch(r){case"hex":return v(this,e,t,n);case"utf8":case"utf-8":return y(this,e,t,n);case"ascii":return b(this,e,t,n);case"latin1":case"binary":return w(this,e,t,n);case"base64":return x(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _(this,e,t,n);default:if(a)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),a=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var k=4096;function B(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function E(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function T(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",a=t;a<n;++a)i+=U(e[a]);return i}function I(e,t,n){for(var r=e.slice(t,n),i="",a=0;a<r.length;a+=2)i+=String.fromCharCode(r[a]+256*r[a+1]);return i}function M(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function F(e,t,n,r,i,a){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<a)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function D(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,a=Math.min(e.length-n,2);i<a;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function P(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,a=Math.min(e.length-n,4);i<a;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function O(e,t,n,r,i,a){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function L(e,t,n,r,a){return a||O(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function R(e,t,n,r,a){return a||O(e,0,n,8),i.write(e,t,n,r,52,8),n+8}l.prototype.slice=function(e,t){var n,r=this.length;if(e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),l.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=l.prototype;else{var i=t-e;n=new l(i,void 0);for(var a=0;a<i;++a)n[a]=this[a+e]}return n},l.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||M(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return r},l.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||M(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},l.prototype.readUInt8=function(e,t){return t||M(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,t){return t||M(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,t){return t||M(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,t){return t||M(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUInt32BE=function(e,t){return t||M(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||M(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},l.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||M(e,t,this.length);for(var r=t,i=1,a=this[e+--r];r>0&&(i*=256);)a+=this[e+--r]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},l.prototype.readInt8=function(e,t){return t||M(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){t||M(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){t||M(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return t||M(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return t||M(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return t||M(e,4,this.length),i.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return t||M(e,4,this.length),i.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return t||M(e,8,this.length),i.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return t||M(e,8,this.length),i.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||F(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,a=0;for(this[t]=255&e;++a<n&&(i*=256);)this[t+a]=e/i&255;return t+n},l.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||F(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,a=1;for(this[t+i]=255&e;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+n},l.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,1,255,0),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):D(this,e,t,!0),t+2},l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):D(this,e,t,!1),t+2},l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):P(this,e,t,!0),t+4},l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):P(this,e,t,!1),t+4},l.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);F(this,e,t,n,i-1,-i)}var a=0,o=1,s=0;for(this[t]=255&e;++a<n&&(o*=256);)e<0&&0===s&&0!==this[t+a-1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},l.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);F(this,e,t,n,i-1,-i)}var a=n-1,o=1,s=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,1,127,-128),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):D(this,e,t,!0),t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):D(this,e,t,!1),t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):P(this,e,t,!0),t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):P(this,e,t,!1),t+4},l.prototype.writeFloatLE=function(e,t,n){return L(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return L(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return R(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return R(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i,a=r-n;if(this===e&&n<t&&t<r)for(i=a-1;i>=0;--i)e[i+t]=this[i+n];else if(a<1e3||!l.TYPED_ARRAY_SUPPORT)for(i=0;i<a;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+a),t);return a},l.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!l.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var a;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(a=t;a<n;++a)this[a]=e;else{var o=l.isBuffer(e)?e:H(new l(e,r).toString()),s=o.length;for(a=0;a<n-t;++a)this[a+t]=o[a%s]}return this};var N=/[^+\/0-9A-Za-z-_]/g;function U(e){return e<16?"0"+e.toString(16):e.toString(16)}function H(e,t){var n;t=t||1/0;for(var r=e.length,i=null,a=[],o=0;o<r;++o){if((n=e.charCodeAt(o))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function j(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(N,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function Q(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}}).call(this,n("c8ba"))},c0ef:function(e,t,n){"use strict";var r=n("4b09");n.n(r).a},c8ba:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},df7c:function(e,t,n){(function(e){function n(e,t){for(var n=0,r=e.length-1;r>=0;r--){var i=e[r];"."===i?e.splice(r,1):".."===i?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function r(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n}t.resolve=function(){for(var t="",i=!1,a=arguments.length-1;a>=-1&&!i;a--){var o=a>=0?arguments[a]:e.cwd();if("string"!=typeof o)throw new TypeError("Arguments to path.resolve must be strings");o&&(t=o+"/"+t,i="/"===o.charAt(0))}return t=n(r(t.split("/"),function(e){return!!e}),!i).join("/"),(i?"/":"")+t||"."},t.normalize=function(e){var a=t.isAbsolute(e),o="/"===i(e,-1);return(e=n(r(e.split("/"),function(e){return!!e}),!a).join("/"))||a||(e="."),e&&o&&(e+="/"),(a?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(r(e,function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))},t.relative=function(e,n){function r(e){for(var t=0;t<e.length&&""===e[t];t++);for(var n=e.length-1;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var i=r(e.split("/")),a=r(n.split("/")),o=Math.min(i.length,a.length),s=o,l=0;l<o;l++)if(i[l]!==a[l]){s=l;break}var c=[];for(l=s;l<i.length;l++)c.push("..");return(c=c.concat(a.slice(s))).join("/")},t.sep="/",t.delimiter=":",t.dirname=function(e){if("string"!=typeof e&&(e+=""),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,r=-1,i=!0,a=e.length-1;a>=1;--a)if(47===(t=e.charCodeAt(a))){if(!i){r=a;break}}else i=!1;return-1===r?n?"/":".":n&&1===r?"/":e.slice(0,r)},t.basename=function(e,t){var n=function(e){"string"!=typeof e&&(e+="");var t,n=0,r=-1,i=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!i){n=t+1;break}}else-1===r&&(i=!1,r=t+1);return-1===r?"":e.slice(n,r)}(e);return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},t.extname=function(e){"string"!=typeof e&&(e+="");for(var t=-1,n=0,r=-1,i=!0,a=0,o=e.length-1;o>=0;--o){var s=e.charCodeAt(o);if(47!==s)-1===r&&(i=!1,r=o+1),46===s?-1===t?t=o:1!==a&&(a=1):-1!==t&&(a=-1);else if(!i){n=o+1;break}}return-1===t||-1===r||0===a||1===a&&t===r-1&&t===n+1?"":e.slice(t,r)};var i="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,n("4362"))},e3db:function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},fb15:function(e,t,n){"use strict";if(n.r(t),"undefined"!=typeof window){var r=window.document.currentScript,i=n("8875");r=i(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:i});var a=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);a&&(n.p=a[1])}n("0507");var o=n("968b"),s={props:{initial:{type:Boolean,default:!1}},data:function(){return{size:{width:-1,height:-1}}},methods:{reset:function(){var e=this.$el.firstChild,t=this.$el.lastChild;e.scrollLeft=1e5,e.scrollTop=1e5,t.scrollLeft=1e5,t.scrollTop=1e5},update:function(){this.size.width=this.$el.offsetWidth,this.size.height=this.$el.offsetHeight}},watch:{size:{deep:!0,handler:function(e){this.reset(),this.$emit("resize",{width:this.size.width,height:this.size.height})}}},render:function(e){var t="position: absolute; left: 0; top: 0; right: 0; bottom: 0; overflow: hidden; z-index: -1; visibility: hidden;",n="position: absolute; left: 0; top: 0;";return e("div",{style:t+"animation-name: resizeSensorVisibility;",on:{"~animationstart":this.update}},[e("div",{style:t,on:{scroll:this.update}},[e("div",{style:n+"width: 100000px; height: 100000px;"})]),e("div",{style:t,on:{scroll:this.update}},[e("div",{style:n+"width: 200%; height: 200%;"})])])},beforeDestroy:function(){this.$emit("resize",{width:0,height:0}),this.$emit("resizeSensorBeforeDestroy")},mounted:function(){if(!0===this.initial&&this.$nextTick(this.update),this.$el.offsetParent!==this.$el.parentNode&&(this.$el.parentNode.style.position="relative"),"attachEvent"in this.$el&&!("AnimationEvent"in window)){var e=function(){this.update(),t()}.bind(this),t=function(){this.$el.detachEvent("onresize",e),this.$off("resizeSensorBeforeDestroy",t)}.bind(this);this.$el.attachEvent("onresize",e),this.$on("resizeSensorBeforeDestroy",t),this.reset()}}};n("c0ef");function l(e,t,n,r,i,a,o,s){var l,c="function"==typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),a&&(c._scopeId="data-v-"+a),o?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},c._ssrRegister=l):i&&(l=s?function(){i.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,l):[l]}return{exports:e,options:c}}var c=l(s,void 0,void 0,!1,null,null,null).exports;function u(e){"@babel/helpers - typeof";return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var h=n("9511");if("server"!==Object({NODE_ENV:"production",BASE_URL:"/"}).VUE_ENV&&"undefined"!=typeof window&&"Worker"in window)n("68c4");function d(e,t){var n;if("string"==typeof e)n={url:e};else{if("object"!==u(e)||null===e)throw new TypeError("invalid src type");n=Object.assign({},e)}var r=h.getDocument(n).promise;return r.__PDFDocumentLoadingTask=!0,t&&t.onPassword&&(r.onPassword=t.onPassword),t&&t.onProgress&&(r.onProgress=t.onProgress),r}var f={createLoadingTask:d,components:{resizeSensor:c},props:{src:{type:[String,Object,Promise],default:""},page:{type:Number,default:1},rotate:{type:Number,default:0},scale:{type:[Number,String],default:"page-width"},resize:{type:Boolean,default:!1},annotation:{type:Boolean,default:!1},text:{type:Boolean,default:!0}},data:function(){return{internalSrc:this.src,pdf:null,pdfViewer:null,loading:!0}},watch:{pdf:function(e){var t=e.pdfInfo||e._pdfInfo;this.$emit("numpages",t.numPages)},page:function(e){var t=this;this.pdf.getPage(e).then(function(e){t.pdfViewer.setPdfPage(e),t.pdfViewer.draw()})},scale:function(e){this.drawScaled(e)},rotate:function(e){this.pdfViewer&&(this.pdfViewer.update(this.scale,e),this.pdfViewer.draw())}},mounted:function(){var e,t=this;("object"!==u(e=t.internalSrc)||null===e||!0!==e.__PDFDocumentLoadingTask)&&(t.internalSrc=d(t.internalSrc),t.$emit("loading",!0));var n=this.$refs.container,r=new o.EventBus,i=new o.PDFLinkService({eventBus:r}),a=void 0,s=void 0;t.annotation&&(a=new o.DefaultAnnotationLayerFactory),t.text&&(s=new o.DefaultTextLayerFactory),t.internalSrc.then(function(e){return t.pdf=e,e.getPage(t.page)}).then(function(e){t.pdfViewer=new o.PDFPageView({container:n,id:t.page,scale:1,defaultViewport:e.getViewport({scale:1}),eventBus:r,textLayerFactory:s,annotationLayerFactory:a}),t.loading=!1,t.$emit("loading",!1),t.pdfViewer.setPdfPage(e),i.setViewer(t.pdfViewer),t.drawScaled(t.scale)}).catch(function(e){return t.$emit("error",e)})},beforeDestroy:function(){this.pdfViewer&&(this.pdfViewer.destroy(),this.pdfViewer=null)},methods:{calculateScale:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;return this.pdfViewer.update(1,this.rotate),-1===e&&-1===t&&(e=this.$refs.container.offsetWidth),e/this.pdfViewer.viewport.width},calculateScaleHeight:function(){this.pdfViewer.update(1,this.rotate);var e=this.$refs.container.offsetHeight;return this.$refs.container.parentElement.parentElement.offsetHeight/e},drawScaled:function(e){this.pdfViewer&&("page-width"===e?(e=this.calculateScale(),this.$emit("update:scale",e)):"page-height"===e&&(e=this.calculateScaleHeight(),this.$emit("update:scale",e)),this.pdfViewer.update(e,this.rotate),this.pdfViewer.draw(),this.loading=!1,this.$emit("loading",!1))},resizeScale:function(){this.resize&&this.drawScaled("page-width")}}},p=(n("35b6"),l(f,function(){var e=this.$createElement,t=this._self._c||e;return t("div",[this.loading?this._t("loading"):this._e(),t("div",{ref:"container",attrs:{id:"viewerContainer"}},[t("div",{staticClass:"pdfViewer",attrs:{id:"viewer"}}),t("resizeSensor",{attrs:{initial:!0},on:{resize:this.resizeScale}})],1)],2)},[],!1,null,"02f5b39a",null).exports);t.default=p}}).default},module.exports=factory()},bOdI:function(e,t,n){"use strict";t.__esModule=!0;var r,i=n("C4MV"),a=(r=i)&&r.__esModule?r:{default:r};t.default=function(e,t,n){return t in e?(0,a.default)(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},bRrM:function(e,t,n){"use strict";var r=n("7KvD"),i=n("FeBl"),a=n("evD5"),o=n("+E39"),s=n("dSzd")("species");e.exports=function(e){var t="function"==typeof i[e]?i[e]:r[e];o&&t&&!t[s]&&a.f(t,s,{configurable:!0,get:function(){return this}})}},cGG2:function(e,t,n){"use strict";var r=n("JP+z"),i=Object.prototype.toString;function a(e){return"[object Array]"===i.call(e)}function o(e){return void 0===e}function s(e){return null!==e&&"object"==typeof e}function l(e){if("[object Object]"!==i.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function c(e){return"[object Function]"===i.call(e)}function u(e,t){if(null!==e&&void 0!==e)if("object"!=typeof e&&(e=[e]),a(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}e.exports={isArray:a,isArrayBuffer:function(e){return"[object ArrayBuffer]"===i.call(e)},isBuffer:function(e){return null!==e&&!o(e)&&null!==e.constructor&&!o(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:s,isPlainObject:l,isUndefined:o,isDate:function(e){return"[object Date]"===i.call(e)},isFile:function(e){return"[object File]"===i.call(e)},isBlob:function(e){return"[object Blob]"===i.call(e)},isFunction:c,isStream:function(e){return s(e)&&c(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:u,merge:function e(){var t={};function n(n,r){l(t[r])&&l(n)?t[r]=e(t[r],n):l(n)?t[r]=e({},n):a(n)?t[r]=n.slice():t[r]=n}for(var r=0,i=arguments.length;r<i;r++)u(arguments[r],n);return t},extend:function(e,t,n){return u(t,function(t,i){e[i]=n&&"function"==typeof t?r(t,n):t}),e},trim:function(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},cWxy:function(e,t,n){"use strict";var r=n("dVOP");function i(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(e){t=e});var n=this;e(function(e){n.reason||(n.reason=new r(e),t(n.reason))})}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var e;return{token:new i(function(t){e=t}),cancel:e}},e.exports=i},ciWi:function(e,t,n){var r=n("awF4"),i=e.exports={WebVTT:n("dlST"),VTTCue:n("aj7g"),VTTRegion:n("DvOw")};r.vttjs=i,r.WebVTT=i.WebVTT;var a=i.VTTCue,o=i.VTTRegion,s=r.VTTCue,l=r.VTTRegion;i.shim=function(){r.VTTCue=a,r.VTTRegion=o},i.restore=function(){r.VTTCue=s,r.VTTRegion=l},r.VTTCue||i.shim()},cnZr:function(e,t,n){var r=n("kM2E"),i=n("L42u");r(r.G+r.B,{setImmediate:i.set,clearImmediate:i.clear})},cnlX:function(e,t,n){n("iInB");var r=n("FeBl").Object;e.exports=function(e,t){return r.getOwnPropertyDescriptor(e,t)}},crlp:function(e,t,n){var r=n("7KvD"),i=n("FeBl"),a=n("O4g8"),o=n("Kh4W"),s=n("evD5").f;e.exports=function(e){var t=i.Symbol||(i.Symbol=a?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:o.f(e)})}},d7EF:function(e,t,n){"use strict";t.__esModule=!0;var r=a(n("us/S")),i=a(n("BO1k"));function a(e){return e&&e.__esModule?e:{default:e}}t.default=function(){return function(e,t){if(Array.isArray(e))return e;if((0,r.default)(Object(e)))return function(e,t){var n=[],r=!0,a=!1,o=void 0;try{for(var s,l=(0,i.default)(e);!(r=(s=l.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{!r&&l.return&&l.return()}finally{if(a)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}()},dIwP:function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},dNDb:function(e,t){e.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},dSzd:function(e,t,n){var r=n("e8AB")("wks"),i=n("3Eo+"),a=n("7KvD").Symbol,o="function"==typeof a;(e.exports=function(e){return r[e]||(r[e]=o&&a[e]||(o?a:i)("Symbol."+e))}).store=r},dVOP:function(e,t,n){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},dY0y:function(e,t,n){var r=n("dSzd")("iterator"),i=!1;try{var a=[7][r]();a.return=function(){i=!0},Array.from(a,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var a=[7],o=a[r]();o.next=function(){return{done:n=!0}},a[r]=function(){return o},e(a)}catch(e){}return n}},dlST:function(e,t){var n=Object.create||function(){function e(){}return function(t){if(1!==arguments.length)throw new Error("Object.create shim only accepts one parameter.");return e.prototype=t,new e}}();function r(e,t){this.name="ParsingError",this.code=e.code,this.message=t||e.message}function i(e){function t(e,t,n,r){return 3600*(0|e)+60*(0|t)+(0|n)+(0|r)/1e3}var n=e.match(/^(\d+):(\d{2})(:\d{2})?\.(\d{3})/);return n?n[3]?t(n[1],n[2],n[3].replace(":",""),n[4]):n[1]>59?t(n[1],n[2],0,n[4]):t(0,n[1],n[2],n[4]):null}function a(){this.values=n(null)}function o(e,t,n,r){var i=r?e.split(r):[e];for(var a in i)if("string"==typeof i[a]){var o=i[a].split(n);if(2===o.length)t(o[0],o[1])}}function s(e,t,n){var s=e;function l(){var t=i(e);if(null===t)throw new r(r.Errors.BadTimeStamp,"Malformed timestamp: "+s);return e=e.replace(/^[^\sa-zA-Z-]+/,""),t}function c(){e=e.replace(/^\s+/,"")}if(c(),t.startTime=l(),c(),"--\x3e"!==e.substr(0,3))throw new r(r.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '--\x3e'): "+s);e=e.substr(3),c(),t.endTime=l(),c(),function(e,t){var r=new a;o(e,function(e,t){switch(e){case"region":for(var i=n.length-1;i>=0;i--)if(n[i].id===t){r.set(e,n[i].region);break}break;case"vertical":r.alt(e,t,["rl","lr"]);break;case"line":var a=t.split(","),o=a[0];r.integer(e,o),r.percent(e,o)&&r.set("snapToLines",!1),r.alt(e,o,["auto"]),2===a.length&&r.alt("lineAlign",a[1],["start","middle","end"]);break;case"position":a=t.split(","),r.percent(e,a[0]),2===a.length&&r.alt("positionAlign",a[1],["start","middle","end"]);break;case"size":r.percent(e,t);break;case"align":r.alt(e,t,["start","middle","end","left","right"])}},/:/,/\s/),t.region=r.get("region",null),t.vertical=r.get("vertical",""),t.line=r.get("line","auto"),t.lineAlign=r.get("lineAlign","start"),t.snapToLines=r.get("snapToLines",!0),t.size=r.get("size",100),t.align=r.get("align","middle"),t.position=r.get("position",{start:0,left:0,middle:50,end:100,right:100},t.align),t.positionAlign=r.get("positionAlign",{start:"start",left:"start",middle:"middle",end:"end",right:"end"},t.align)}(e,t)}r.prototype=n(Error.prototype),r.prototype.constructor=r,r.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},a.prototype={set:function(e,t){this.get(e)||""===t||(this.values[e]=t)},get:function(e,t,n){return n?this.has(e)?this.values[e]:t[n]:this.has(e)?this.values[e]:t},has:function(e){return e in this.values},alt:function(e,t,n){for(var r=0;r<n.length;++r)if(t===n[r]){this.set(e,t);break}},integer:function(e,t){/^-?\d+$/.test(t)&&this.set(e,parseInt(t,10))},percent:function(e,t){return!!(t.match(/^([\d]{1,3})(\.[\d]*)?%$/)&&(t=parseFloat(t))>=0&&t<=100)&&(this.set(e,t),!0)}};var l={"&amp;":"&","&lt;":"<","&gt;":">","&lrm;":"‎","&rlm;":"‏","&nbsp;":" "},c={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},u={v:"title",lang:"lang"},h={rt:"ruby"};function d(e,t){function n(){if(!t)return null;var e,n=t.match(/^([^<]*)(<[^>]*>?)?/);return e=n[1]?n[1]:n[2],t=t.substr(e.length),e}function r(e){return l[e]}function a(e){for(;v=e.match(/&(amp|lt|gt|lrm|rlm|nbsp);/);)e=e.replace(v[0],r);return e}function o(e,t){return!h[t.localName]||h[t.localName]===e.localName}function s(t,n){var r=c[t];if(!r)return null;var i=e.document.createElement(r);i.localName=r;var a=u[t];return a&&n&&(i[a]=n.trim()),i}for(var d,f=e.document.createElement("div"),p=f,A=[];null!==(d=n());)if("<"!==d[0])p.appendChild(e.document.createTextNode(a(d)));else{if("/"===d[1]){A.length&&A[A.length-1]===d.substr(2).replace(">","")&&(A.pop(),p=p.parentNode);continue}var g,m=i(d.substr(1,d.length-2));if(m){g=e.document.createProcessingInstruction("timestamp",m),p.appendChild(g);continue}var v=d.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!v)continue;if(!(g=s(v[1],v[3])))continue;if(!o(p,g))continue;v[2]&&(g.className=v[2].substr(1).replace("."," ")),A.push(v[1]),p.appendChild(g),p=g}return f}var f=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1520,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1563],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2048,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2208,2208],[2210,2220],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67679],[67840,67867],[67872,67897],[67903,67903],[67968,68023],[68030,68031],[68096,68096],[68112,68115],[68117,68119],[68121,68147],[68160,68167],[68176,68184],[68192,68223],[68352,68405],[68416,68437],[68440,68466],[68472,68479],[68608,68680],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[1114109,1114109]];function p(e){for(var t=0;t<f.length;t++){var n=f[t];if(e>=n[0]&&e<=n[1])return!0}return!1}function A(){}function g(e,t,n){var r=/MSIE\s8\.0/.test(navigator.userAgent),i="rgba(255, 255, 255, 1)",a="rgba(0, 0, 0, 0.8)";r&&(i="rgb(255, 255, 255)",a="rgb(0, 0, 0)"),A.call(this),this.cue=t,this.cueDiv=d(e,t.text);var o={color:i,backgroundColor:a,position:"relative",left:0,right:0,top:0,bottom:0,display:"inline"};r||(o.writingMode=""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl",o.unicodeBidi="plaintext"),this.applyStyles(o,this.cueDiv),this.div=e.document.createElement("div"),o={textAlign:"middle"===t.align?"center":t.align,font:n.font,whiteSpace:"pre-line",position:"absolute"},r||(o.direction=function(e){var t=[],n="";if(!e||!e.childNodes)return"ltr";function r(e,t){for(var n=t.childNodes.length-1;n>=0;n--)e.push(t.childNodes[n])}function i(e){if(!e||!e.length)return null;var t=e.pop(),n=t.textContent||t.innerText;if(n){var a=n.match(/^.*(\n|\r)/);return a?(e.length=0,a[0]):n}return"ruby"===t.tagName?i(e):t.childNodes?(r(e,t),i(e)):void 0}for(r(t,e);n=i(t);)for(var a=0;a<n.length;a++)if(p(n.charCodeAt(a)))return"rtl";return"ltr"}(this.cueDiv),o.writingMode=""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl".stylesunicodeBidi="plaintext"),this.applyStyles(o),this.div.appendChild(this.cueDiv);var s=0;switch(t.positionAlign){case"start":s=t.position;break;case"middle":s=t.position-t.size/2;break;case"end":s=t.position-t.size}""===t.vertical?this.applyStyles({left:this.formatStyle(s,"%"),width:this.formatStyle(t.size,"%")}):this.applyStyles({top:this.formatStyle(s,"%"),height:this.formatStyle(t.size,"%")}),this.move=function(e){this.applyStyles({top:this.formatStyle(e.top,"px"),bottom:this.formatStyle(e.bottom,"px"),left:this.formatStyle(e.left,"px"),right:this.formatStyle(e.right,"px"),height:this.formatStyle(e.height,"px"),width:this.formatStyle(e.width,"px")})}}function m(e){var t,n,r,i,a=/MSIE\s8\.0/.test(navigator.userAgent);if(e.div){n=e.div.offsetHeight,r=e.div.offsetWidth,i=e.div.offsetTop;var o=(o=e.div.childNodes)&&(o=o[0])&&o.getClientRects&&o.getClientRects();e=e.div.getBoundingClientRect(),t=o?Math.max(o[0]&&o[0].height||0,e.height/o.length):0}this.left=e.left,this.right=e.right,this.top=e.top||i,this.height=e.height||n,this.bottom=e.bottom||i+(e.height||n),this.width=e.width||r,this.lineHeight=void 0!==t?t:e.lineHeight,a&&!this.lineHeight&&(this.lineHeight=13)}function v(e,t,n,r){var i=new m(t),a=t.cue,o=function(e){if("number"==typeof e.line&&(e.snapToLines||e.line>=0&&e.line<=100))return e.line;if(!e.track||!e.track.textTrackList||!e.track.textTrackList.mediaElement)return-1;for(var t=e.track,n=t.textTrackList,r=0,i=0;i<n.length&&n[i]!==t;i++)"showing"===n[i].mode&&r++;return-1*++r}(a),s=[];if(a.snapToLines){var l;switch(a.vertical){case"":s=["+y","-y"],l="height";break;case"rl":s=["+x","-x"],l="width";break;case"lr":s=["-x","+x"],l="width"}var c=i.lineHeight,u=c*Math.round(o),h=n[l]+c,d=s[0];Math.abs(u)>h&&(u=u<0?-1:1,u*=Math.ceil(h/c)*c),o<0&&(u+=""===a.vertical?n.height:n.width,s=s.reverse()),i.move(d,u)}else{var f=i.lineHeight/n.height*100;switch(a.lineAlign){case"middle":o-=f/2;break;case"end":o-=f}switch(a.vertical){case"":t.applyStyles({top:t.formatStyle(o,"%")});break;case"rl":t.applyStyles({left:t.formatStyle(o,"%")});break;case"lr":t.applyStyles({right:t.formatStyle(o,"%")})}s=["+y","-x","+x","-y"],i=new m(t)}var p=function(e,t){for(var i,a=new m(e),o=1,s=0;s<t.length;s++){for(;e.overlapsOppositeAxis(n,t[s])||e.within(n)&&e.overlapsAny(r);)e.move(t[s]);if(e.within(n))return e;var l=e.intersectPercentage(n);o>l&&(i=new m(e),o=l),e=new m(a)}return i||a}(i,s);t.move(p.toCSSCompatValues(n))}function y(){}A.prototype.applyStyles=function(e,t){for(var n in t=t||this.div,e)e.hasOwnProperty(n)&&(t.style[n]=e[n])},A.prototype.formatStyle=function(e,t){return 0===e?0:e+t},g.prototype=n(A.prototype),g.prototype.constructor=g,m.prototype.move=function(e,t){switch(t=void 0!==t?t:this.lineHeight,e){case"+x":this.left+=t,this.right+=t;break;case"-x":this.left-=t,this.right-=t;break;case"+y":this.top+=t,this.bottom+=t;break;case"-y":this.top-=t,this.bottom-=t}},m.prototype.overlaps=function(e){return this.left<e.right&&this.right>e.left&&this.top<e.bottom&&this.bottom>e.top},m.prototype.overlapsAny=function(e){for(var t=0;t<e.length;t++)if(this.overlaps(e[t]))return!0;return!1},m.prototype.within=function(e){return this.top>=e.top&&this.bottom<=e.bottom&&this.left>=e.left&&this.right<=e.right},m.prototype.overlapsOppositeAxis=function(e,t){switch(t){case"+x":return this.left<e.left;case"-x":return this.right>e.right;case"+y":return this.top<e.top;case"-y":return this.bottom>e.bottom}},m.prototype.intersectPercentage=function(e){return Math.max(0,Math.min(this.right,e.right)-Math.max(this.left,e.left))*Math.max(0,Math.min(this.bottom,e.bottom)-Math.max(this.top,e.top))/(this.height*this.width)},m.prototype.toCSSCompatValues=function(e){return{top:this.top-e.top,bottom:e.bottom-this.bottom,left:this.left-e.left,right:e.right-this.right,height:this.height,width:this.width}},m.getSimpleBoxPosition=function(e){var t=e.div?e.div.offsetHeight:e.tagName?e.offsetHeight:0,n=e.div?e.div.offsetWidth:e.tagName?e.offsetWidth:0,r=e.div?e.div.offsetTop:e.tagName?e.offsetTop:0;return{left:(e=e.div?e.div.getBoundingClientRect():e.tagName?e.getBoundingClientRect():e).left,right:e.right,top:e.top||r,height:e.height||t,bottom:e.bottom||r+(e.height||t),width:e.width||n}},y.StringDecoder=function(){return{decode:function(e){if(!e)return"";if("string"!=typeof e)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}},y.convertCueToDOMTree=function(e,t){return e&&t?d(e,t):null};y.processCues=function(e,t,n){if(!e||!t||!n)return null;for(;n.firstChild;)n.removeChild(n.firstChild);var r=e.document.createElement("div");if(r.style.position="absolute",r.style.left="0",r.style.right="0",r.style.top="0",r.style.bottom="0",r.style.margin="1.5%",n.appendChild(r),function(e){for(var t=0;t<e.length;t++)if(e[t].hasBeenReset||!e[t].displayState)return!0;return!1}(t)){var i=[],a=m.getSimpleBoxPosition(r),o={font:Math.round(.05*a.height*100)/100+"px sans-serif"};!function(){for(var n,s,l=0;l<t.length;l++)s=t[l],n=new g(e,s,o),r.appendChild(n.div),v(0,n,a,i),s.displayState=n.div,i.push(m.getSimpleBoxPosition(n))}()}else for(var s=0;s<t.length;s++)r.appendChild(t[s].displayState)},y.Parser=function(e,t,n){n||(n=t,t={}),t||(t={}),this.window=e,this.vttjs=t,this.state="INITIAL",this.buffer="",this.decoder=n||new TextDecoder("utf8"),this.regionList=[]},y.Parser.prototype={reportOrThrowError:function(e){if(!(e instanceof r))throw e;this.onparsingerror&&this.onparsingerror(e)},parse:function(e){var t=this;function n(){for(var e=t.buffer,n=0;n<e.length&&"\r"!==e[n]&&"\n"!==e[n];)++n;var r=e.substr(0,n);return"\r"===e[n]&&++n,"\n"===e[n]&&++n,t.buffer=e.substr(n),r}function l(e){e.match(/X-TIMESTAMP-MAP/)?o(e,function(e,n){switch(e){case"X-TIMESTAMP-MAP":r=n,s=new a,o(r,function(e,t){switch(e){case"MPEGT":s.integer(e+"S",t);break;case"LOCA":s.set(e+"L",i(t))}},/[^\d]:/,/,/),t.ontimestampmap&&t.ontimestampmap({MPEGTS:s.get("MPEGTS"),LOCAL:s.get("LOCAL")})}var r,s},/=/):o(e,function(e,n){switch(e){case"Region":!function(e){var n=new a;if(o(e,function(e,t){switch(e){case"id":n.set(e,t);break;case"width":n.percent(e,t);break;case"lines":n.integer(e,t);break;case"regionanchor":case"viewportanchor":var r=t.split(",");if(2!==r.length)break;var i=new a;if(i.percent("x",r[0]),i.percent("y",r[1]),!i.has("x")||!i.has("y"))break;n.set(e+"X",i.get("x")),n.set(e+"Y",i.get("y"));break;case"scroll":n.alt(e,t,["up"])}},/=/,/\s/),n.has("id")){var r=new(t.vttjs.VTTRegion||t.window.VTTRegion);r.width=n.get("width",100),r.lines=n.get("lines",3),r.regionAnchorX=n.get("regionanchorX",0),r.regionAnchorY=n.get("regionanchorY",100),r.viewportAnchorX=n.get("viewportanchorX",0),r.viewportAnchorY=n.get("viewportanchorY",100),r.scroll=n.get("scroll",""),t.onregion&&t.onregion(r),t.regionList.push({id:n.get("id"),region:r})}}(n)}},/:/)}e&&(t.buffer+=t.decoder.decode(e,{stream:!0}));try{var c;if("INITIAL"===t.state){if(!/\r\n|\n/.test(t.buffer))return this;var u=(c=n()).match(/^WEBVTT([ \t].*)?$/);if(!u||!u[0])throw new r(r.Errors.BadSignature);t.state="HEADER"}for(var h=!1;t.buffer;){if(!/\r\n|\n/.test(t.buffer))return this;switch(h?h=!1:c=n(),t.state){case"HEADER":/:/.test(c)?l(c):c||(t.state="ID");continue;case"NOTE":c||(t.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(c)){t.state="NOTE";break}if(!c)continue;if(t.cue=new(t.vttjs.VTTCue||t.window.VTTCue)(0,0,""),t.state="CUE",-1===c.indexOf("--\x3e")){t.cue.id=c;continue}case"CUE":try{s(c,t.cue,t.regionList)}catch(e){t.reportOrThrowError(e),t.cue=null,t.state="BADCUE";continue}t.state="CUETEXT";continue;case"CUETEXT":var d=-1!==c.indexOf("--\x3e");if(!c||d&&(h=!0)){t.oncue&&t.oncue(t.cue),t.cue=null,t.state="ID";continue}t.cue.text&&(t.cue.text+="\n"),t.cue.text+=c;continue;case"BADCUE":c||(t.state="ID");continue}}}catch(e){t.reportOrThrowError(e),"CUETEXT"===t.state&&t.cue&&t.oncue&&t.oncue(t.cue),t.cue=null,t.state="INITIAL"===t.state?"BADWEBVTT":"BADCUE"}return this},flush:function(){try{if(this.buffer+=this.decoder.decode(),(this.cue||"HEADER"===this.state)&&(this.buffer+="\n\n",this.parse()),"INITIAL"===this.state)throw new r(r.Errors.BadSignature)}catch(e){this.reportOrThrowError(e)}return this.onflush&&this.onflush(),this}},e.exports=y},"dwO+":function(e,t,n){(function(t){var r,i=void 0!==t?t:"undefined"!=typeof window?window:{},a=n(6);"undefined"!=typeof document?r=document:(r=i["__GLOBAL_DOCUMENT_CACHE@4"])||(r=i["__GLOBAL_DOCUMENT_CACHE@4"]=a),e.exports=r}).call(t,n("DuR2"))},e0Bm:function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=61)}({0:function(e,t,n){"use strict";function r(e,t,n,r,i,a,o,s){var l,c="function"==typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),a&&(c._scopeId="data-v-"+a),o?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},c._ssrRegister=l):i&&(l=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,l):[l]}return{exports:e,options:c}}n.d(t,"a",function(){return r})},10:function(e,t){e.exports=n("HJMx")},12:function(e,t){e.exports=n("ISYW")},14:function(e,t){e.exports=n("fEB+")},16:function(e,t){e.exports=n("02w1")},17:function(e,t){e.exports=n("ON3O")},21:function(e,t){e.exports=n("E/in")},22:function(e,t){e.exports=n("1oZe")},3:function(e,t){e.exports=n("ylDJ")},31:function(e,t){e.exports=n("zTCi")},33:function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("li",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-select-dropdown__item",class:{selected:e.itemSelected,"is-disabled":e.disabled||e.groupDisabled||e.limitReached,hover:e.hover},on:{mouseenter:e.hoverItem,click:function(t){return t.stopPropagation(),e.selectOptionClick(t)}}},[e._t("default",[n("span",[e._v(e._s(e.currentLabel))])])],2)};r._withStripped=!0;var i=n(4),a=n.n(i),o=n(3),s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},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(e,t){var n=this.select,r=n.remote,i=n.valueKey;if(!this.created&&!r){if(i&&"object"===(void 0===e?"undefined":s(e))&&"object"===(void 0===t?"undefined":s(t))&&e[i]===t[i])return;this.dispatch("ElSelect","setSelected")}}},methods:{isEqual:function(e,t){if(this.isObject){var n=this.select.valueKey;return Object(o.getValueByPath)(e,n)===Object(o.getValueByPath)(t,n)}return e===t},contains:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];if(this.isObject){var n=this.select.valueKey;return e&&e.some(function(e){return Object(o.getValueByPath)(e,n)===Object(o.getValueByPath)(t,n)})}return e&&e.indexOf(t)>-1},handleGroupDisabled:function(e){this.groupDisabled=e},hoverItem:function(){this.disabled||this.groupDisabled||(this.select.hoverIndex=this.select.options.indexOf(this))},selectOptionClick:function(){!0!==this.disabled&&!0!==this.groupDisabled&&this.dispatch("ElSelect","handleOptionClick",[this,!0])},queryChange:function(e){this.visible=new RegExp(Object(o.escapeRegexpString)(e),"i").test(this.currentLabel)||this.created,this.visible||this.select.filteredOptionsCount--}},created:function(){this.select.options.push(this),this.select.cachedOptions.push(this),this.select.optionsCount++,this.select.filteredOptionsCount++,this.$on("queryChange",this.queryChange),this.$on("handleGroupDisabled",this.handleGroupDisabled)},beforeDestroy:function(){var e=this.select,t=e.selected,n=e.multiple?t:[t],r=this.select.cachedOptions.indexOf(this),i=n.indexOf(this);r>-1&&i<0&&this.select.cachedOptions.splice(r,1),this.select.onOptionDestroy(this.select.options.indexOf(this))}},c=n(0),u=Object(c.a)(l,r,[],!1,null,null,null);u.options.__file="packages/select/src/option.vue";t.a=u.exports},37:function(e,t){e.exports=n("orbS")},4:function(e,t){e.exports=n("fPll")},5:function(e,t){e.exports=n("fKx3")},6:function(e,t){e.exports=n("y+7x")},61:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.handleClose,expression:"handleClose"}],staticClass:"el-select",class:[e.selectSize?"el-select--"+e.selectSize:""],on:{click:function(t){return t.stopPropagation(),e.toggleMenu(t)}}},[e.multiple?n("div",{ref:"tags",staticClass:"el-select__tags",style:{"max-width":e.inputWidth-32+"px",width:"100%"}},[e.collapseTags&&e.selected.length?n("span",[n("el-tag",{attrs:{closable:!e.selectDisabled,size:e.collapseTagSize,hit:e.selected[0].hitState,type:"info","disable-transitions":""},on:{close:function(t){e.deleteTag(t,e.selected[0])}}},[n("span",{staticClass:"el-select__tags-text"},[e._v(e._s(e.selected[0].currentLabel))])]),e.selected.length>1?n("el-tag",{attrs:{closable:!1,size:e.collapseTagSize,type:"info","disable-transitions":""}},[n("span",{staticClass:"el-select__tags-text"},[e._v("+ "+e._s(e.selected.length-1))])]):e._e()],1):e._e(),e.collapseTags?e._e():n("transition-group",{on:{"after-leave":e.resetInputHeight}},e._l(e.selected,function(t){return n("el-tag",{key:e.getValueKey(t),attrs:{closable:!e.selectDisabled,size:e.collapseTagSize,hit:t.hitState,type:"info","disable-transitions":""},on:{close:function(n){e.deleteTag(n,t)}}},[n("span",{staticClass:"el-select__tags-text"},[e._v(e._s(t.currentLabel))])])}),1),e.filterable?n("input",{directives:[{name:"model",rawName:"v-model",value:e.query,expression:"query"}],ref:"input",staticClass:"el-select__input",class:[e.selectSize?"is-"+e.selectSize:""],style:{"flex-grow":"1",width:e.inputLength/(e.inputWidth-32)+"%","max-width":e.inputWidth-42+"px"},attrs:{type:"text",disabled:e.selectDisabled,autocomplete:e.autoComplete||e.autocomplete},domProps:{value:e.query},on:{focus:e.handleFocus,blur:function(t){e.softFocus=!1},keyup:e.managePlaceholder,keydown:[e.resetInputState,function(t){if(!("button"in t)&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"]))return null;t.preventDefault(),e.navigateOptions("next")},function(t){if(!("button"in t)&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"]))return null;t.preventDefault(),e.navigateOptions("prev")},function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?(t.preventDefault(),e.selectOption(t)):null},function(t){if(!("button"in t)&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"]))return null;t.stopPropagation(),t.preventDefault(),e.visible=!1},function(t){return"button"in t||!e._k(t.keyCode,"delete",[8,46],t.key,["Backspace","Delete","Del"])?e.deletePrevTag(t):null},function(t){if(!("button"in t)&&e._k(t.keyCode,"tab",9,t.key,"Tab"))return null;e.visible=!1}],compositionstart:e.handleComposition,compositionupdate:e.handleComposition,compositionend:e.handleComposition,input:[function(t){t.target.composing||(e.query=t.target.value)},e.debouncedQueryChange]}}):e._e()],1):e._e(),n("el-input",{ref:"reference",class:{"is-focus":e.visible},attrs:{type:"text",placeholder:e.currentPlaceholder,name:e.name,id:e.id,autocomplete:e.autoComplete||e.autocomplete,size:e.selectSize,disabled:e.selectDisabled,readonly:e.readonly,"validate-event":!1,tabindex:e.multiple&&e.filterable?"-1":null},on:{focus:e.handleFocus,blur:e.handleBlur},nativeOn:{keyup:function(t){return e.debouncedOnInputChange(t)},keydown:[function(t){if(!("button"in t)&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"]))return null;t.stopPropagation(),t.preventDefault(),e.navigateOptions("next")},function(t){if(!("button"in t)&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"]))return null;t.stopPropagation(),t.preventDefault(),e.navigateOptions("prev")},function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?(t.preventDefault(),e.selectOption(t)):null},function(t){if(!("button"in t)&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"]))return null;t.stopPropagation(),t.preventDefault(),e.visible=!1},function(t){if(!("button"in t)&&e._k(t.keyCode,"tab",9,t.key,"Tab"))return null;e.visible=!1}],paste:function(t){return e.debouncedOnInputChange(t)},mouseenter:function(t){e.inputHovering=!0},mouseleave:function(t){e.inputHovering=!1}},model:{value:e.selectedLabel,callback:function(t){e.selectedLabel=t},expression:"selectedLabel"}},[e.$slots.prefix?n("template",{slot:"prefix"},[e._t("prefix")],2):e._e(),n("template",{slot:"suffix"},[n("i",{directives:[{name:"show",rawName:"v-show",value:!e.showClose,expression:"!showClose"}],class:["el-select__caret","el-input__icon","el-icon-"+e.iconClass]}),e.showClose?n("i",{staticClass:"el-select__caret el-input__icon el-icon-circle-close",on:{click:e.handleClearClick}}):e._e()])],2),n("transition",{attrs:{name:"el-zoom-in-top"},on:{"before-enter":e.handleMenuEnter,"after-leave":e.doDestroy}},[n("el-select-menu",{directives:[{name:"show",rawName:"v-show",value:e.visible&&!1!==e.emptyText,expression:"visible && emptyText !== false"}],ref:"popper",attrs:{"append-to-body":e.popperAppendToBody}},[n("el-scrollbar",{directives:[{name:"show",rawName:"v-show",value:e.options.length>0&&!e.loading,expression:"options.length > 0 && !loading"}],ref:"scrollbar",class:{"is-empty":!e.allowCreate&&e.query&&0===e.filteredOptionsCount},attrs:{tag:"ul","wrap-class":"el-select-dropdown__wrap","view-class":"el-select-dropdown__list"}},[e.showNewOption?n("el-option",{attrs:{value:e.query,created:""}}):e._e(),e._t("default")],2),e.emptyText&&(!e.allowCreate||e.loading||e.allowCreate&&0===e.options.length)?[e.$slots.empty?e._t("empty"):n("p",{staticClass:"el-select-dropdown__empty"},[e._v("\n "+e._s(e.emptyText)+"\n ")])]:e._e()],2)],1)],1)};r._withStripped=!0;var i=n(4),a=n.n(i),o=n(22),s=n.n(o),l=n(6),c=n.n(l),u=n(10),h=n.n(u),d=function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"el-select-dropdown el-popper",class:[{"is-multiple":this.$parent.multiple},this.popperClass],style:{minWidth:this.minWidth}},[this._t("default")],2)};d._withStripped=!0;var f=n(5),p={name:"ElSelectDropdown",componentName:"ElSelectDropdown",mixins:[n.n(f).a],props:{placement:{default:"bottom-start"},boundariesPadding:{default:0},popperOptions:{default:function(){return{gpuAcceleration:!1}}},visibleArrow:{default:!0},appendToBody:{type:Boolean,default:!0}},data:function(){return{minWidth:""}},computed:{popperClass:function(){return this.$parent.popperClass}},watch:{"$parent.inputWidth":function(){this.minWidth=this.$parent.$el.getBoundingClientRect().width+"px"}},mounted:function(){var e=this;this.referenceElm=this.$parent.$refs.reference.$el,this.$parent.popperElm=this.popperElm=this.$el,this.$on("updatePopper",function(){e.$parent.visible&&e.updatePopper()}),this.$on("destroyPopper",this.destroyPopper)}},A=n(0),g=Object(A.a)(p,d,[],!1,null,null,null);g.options.__file="packages/select/src/select-dropdown.vue";var m=g.exports,v=n(33),y=n(37),b=n.n(y),w=n(14),x=n.n(w),_=n(17),C=n.n(_),S=n(12),k=n.n(S),B=n(16),E=n(31),T=n.n(E),I=n(3),M=n(21),F={mixins:[a.a,c.a,s()("reference"),{data:function(){return{hoverOption:-1}},computed:{optionsAllDisabled:function(){return this.options.filter(function(e){return e.visible}).every(function(e){return e.disabled})}},watch:{hoverIndex:function(e){var t=this;"number"==typeof e&&e>-1&&(this.hoverOption=this.options[e]||{}),this.options.forEach(function(e){e.hover=t.hoverOption===e})}},methods:{navigateOptions:function(e){var t=this;if(this.visible){if(0!==this.options.length&&0!==this.filteredOptionsCount&&!this.optionsAllDisabled){"next"===e?(this.hoverIndex++,this.hoverIndex===this.options.length&&(this.hoverIndex=0)):"prev"===e&&(this.hoverIndex--,this.hoverIndex<0&&(this.hoverIndex=this.options.length-1));var n=this.options[this.hoverIndex];!0!==n.disabled&&!0!==n.groupDisabled&&n.visible||this.navigateOptions(e),this.$nextTick(function(){return t.scrollToOption(t.hoverOption)})}}else this.visible=!0}}}],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 e=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&&e},iconClass:function(){return this.remote&&this.filterable?"":this.visible?"arrow-up is-reverse":"arrow-up"},debounce:function(){return this.remote?300:0},emptyText:function(){return this.loading?this.loadingText||this.t("el.select.loading"):(!this.remote||""!==this.query||0!==this.options.length)&&(this.filterable&&this.query&&this.options.length>0&&0===this.filteredOptionsCount?this.noMatchText||this.t("el.select.noMatch"):0===this.options.length?this.noDataText||this.t("el.select.noData"):null)},showNewOption:function(){var e=this,t=this.options.filter(function(e){return!e.created}).some(function(t){return t.currentLabel===e.query});return this.filterable&&this.allowCreate&&""!==this.query&&!t},selectSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},selectDisabled:function(){return this.disabled||(this.elForm||{}).disabled},collapseTagSize:function(){return["small","mini"].indexOf(this.selectSize)>-1?"mini":"small"},propPlaceholder:function(){return void 0!==this.placeholder?this.placeholder:this.t("el.select.placeholder")}},components:{ElInput:h.a,ElSelectMenu:m,ElOption:v.a,ElTag:b.a,ElScrollbar:x.a},directives:{Clickoutside:k.a},props:{name:String,id:String,value:{required:!0},autocomplete:{type:String,default:"off"},autoComplete:{type:String,validator:function(e){return!0}},automaticDropdown:Boolean,size:String,disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:String,remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String,required:!1},defaultFirstOption:Boolean,reserveKeyword:Boolean,valueKey:{type:String,default:"value"},collapseTags:Boolean,popperAppendToBody:{type:Boolean,default:!0}},data:function(){return{options:[],cachedOptions:[],createdLabel:null,createdSelected:!1,selected:this.multiple?[]:{},inputLength:20,inputWidth:0,initialInputHeight:0,cachedPlaceHolder:"",optionsCount:0,filteredOptionsCount:0,visible:!1,softFocus:!1,selectedLabel:"",hoverIndex:-1,query:"",previousQuery:null,inputHovering:!1,currentPlaceholder:"",menuVisibleOnFocus:!1,isOnComposition:!1,isSilentBlur:!1}},watch:{selectDisabled:function(){var e=this;this.$nextTick(function(){e.resetInputHeight()})},propPlaceholder:function(e){this.cachedPlaceHolder=this.currentPlaceholder=e},value:function(e,t){this.multiple&&(this.resetInputHeight(),e&&e.length>0||this.$refs.input&&""!==this.query?this.currentPlaceholder="":this.currentPlaceholder=this.cachedPlaceHolder,this.filterable&&!this.reserveKeyword&&(this.query="",this.handleQueryChange(this.query))),this.setSelected(),this.filterable&&!this.multiple&&(this.inputLength=20),Object(I.valueEquals)(e,t)||this.dispatch("ElFormItem","el.form.change",e)},visible:function(e){var t=this;e?(this.broadcast("ElSelectDropdown","updatePopper"),this.filterable&&(this.query=this.remote?"":this.selectedLabel,this.handleQueryChange(this.query),this.multiple?this.$refs.input.focus():(this.remote||(this.broadcast("ElOption","queryChange",""),this.broadcast("ElOptionGroup","queryChange")),this.selectedLabel&&(this.currentPlaceholder=this.selectedLabel,this.selectedLabel="")))):(this.broadcast("ElSelectDropdown","destroyPopper"),this.$refs.input&&this.$refs.input.blur(),this.query="",this.previousQuery=null,this.selectedLabel="",this.inputLength=20,this.menuVisibleOnFocus=!1,this.resetHoverIndex(),this.$nextTick(function(){t.$refs.input&&""===t.$refs.input.value&&0===t.selected.length&&(t.currentPlaceholder=t.cachedPlaceHolder)}),this.multiple||(this.selected&&(this.filterable&&this.allowCreate&&this.createdSelected&&this.createdLabel?this.selectedLabel=this.createdLabel:this.selectedLabel=this.selected.currentLabel,this.filterable&&(this.query=this.selectedLabel)),this.filterable&&(this.currentPlaceholder=this.cachedPlaceHolder))),this.$emit("visible-change",e)},options:function(){var e=this;if(!this.$isServer){this.$nextTick(function(){e.broadcast("ElSelectDropdown","updatePopper")}),this.multiple&&this.resetInputHeight();var t=this.$el.querySelectorAll("input");-1===[].indexOf.call(t,document.activeElement)&&this.setSelected(),this.defaultFirstOption&&(this.filterable||this.remote)&&this.filteredOptionsCount&&this.checkDefaultFirstOption()}}},methods:{handleComposition:function(e){var t=this,n=e.target.value;if("compositionend"===e.type)this.isOnComposition=!1,this.$nextTick(function(e){return t.handleQueryChange(n)});else{var r=n[n.length-1]||"";this.isOnComposition=!Object(M.isKorean)(r)}},handleQueryChange:function(e){var t=this;this.previousQuery===e||this.isOnComposition||(null!==this.previousQuery||"function"!=typeof this.filterMethod&&"function"!=typeof this.remoteMethod?(this.previousQuery=e,this.$nextTick(function(){t.visible&&t.broadcast("ElSelectDropdown","updatePopper")}),this.hoverIndex=-1,this.multiple&&this.filterable&&this.$nextTick(function(){var e=15*t.$refs.input.value.length+20;t.inputLength=t.collapseTags?Math.min(50,e):e,t.managePlaceholder(),t.resetInputHeight()}),this.remote&&"function"==typeof this.remoteMethod?(this.hoverIndex=-1,this.remoteMethod(e)):"function"==typeof this.filterMethod?(this.filterMethod(e),this.broadcast("ElOptionGroup","queryChange")):(this.filteredOptionsCount=this.optionsCount,this.broadcast("ElOption","queryChange",e),this.broadcast("ElOptionGroup","queryChange")),this.defaultFirstOption&&(this.filterable||this.remote)&&this.filteredOptionsCount&&this.checkDefaultFirstOption()):this.previousQuery=e)},scrollToOption:function(e){var t=Array.isArray(e)&&e[0]?e[0].$el:e.$el;if(this.$refs.popper&&t){var n=this.$refs.popper.$el.querySelector(".el-select-dropdown__wrap");T()(n,t)}this.$refs.scrollbar&&this.$refs.scrollbar.handleScroll()},handleMenuEnter:function(){var e=this;this.$nextTick(function(){return e.scrollToOption(e.selected)})},emitChange:function(e){Object(I.valueEquals)(this.value,e)||this.$emit("change",e)},getOption:function(e){for(var t=void 0,n="[object object]"===Object.prototype.toString.call(e).toLowerCase(),r="[object null]"===Object.prototype.toString.call(e).toLowerCase(),i="[object undefined]"===Object.prototype.toString.call(e).toLowerCase(),a=this.cachedOptions.length-1;a>=0;a--){var o=this.cachedOptions[a];if(n?Object(I.getValueByPath)(o.value,this.valueKey)===Object(I.getValueByPath)(e,this.valueKey):o.value===e){t=o;break}}if(t)return t;var s={value:e,currentLabel:n||r||i?"":e};return this.multiple&&(s.hitState=!1),s},setSelected:function(){var e=this;if(!this.multiple){var t=this.getOption(this.value);return t.created?(this.createdLabel=t.currentLabel,this.createdSelected=!0):this.createdSelected=!1,this.selectedLabel=t.currentLabel,this.selected=t,void(this.filterable&&(this.query=this.selectedLabel))}var n=[];Array.isArray(this.value)&&this.value.forEach(function(t){n.push(e.getOption(t))}),this.selected=n,this.$nextTick(function(){e.resetInputHeight()})},handleFocus:function(e){this.softFocus?this.softFocus=!1:((this.automaticDropdown||this.filterable)&&(this.visible=!0,this.filterable&&(this.menuVisibleOnFocus=!0)),this.$emit("focus",e))},blur:function(){this.visible=!1,this.$refs.reference.blur()},handleBlur:function(e){var t=this;setTimeout(function(){t.isSilentBlur?t.isSilentBlur=!1:t.$emit("blur",e)},50),this.softFocus=!1},handleClearClick:function(e){this.deleteSelected(e)},doDestroy:function(){this.$refs.popper&&this.$refs.popper.doDestroy()},handleClose:function(){this.visible=!1},toggleLastOptionHitState:function(e){if(Array.isArray(this.selected)){var t=this.selected[this.selected.length-1];if(t)return!0===e||!1===e?(t.hitState=e,e):(t.hitState=!t.hitState,t.hitState)}},deletePrevTag:function(e){if(e.target.value.length<=0&&!this.toggleLastOptionHitState()){var t=this.value.slice();t.pop(),this.$emit("input",t),this.emitChange(t)}},managePlaceholder:function(){""!==this.currentPlaceholder&&(this.currentPlaceholder=this.$refs.input.value?"":this.cachedPlaceHolder)},resetInputState:function(e){8!==e.keyCode&&this.toggleLastOptionHitState(!1),this.inputLength=15*this.$refs.input.value.length+20,this.resetInputHeight()},resetInputHeight:function(){var e=this;this.collapseTags&&!this.filterable||this.$nextTick(function(){if(e.$refs.reference){var t=e.$refs.reference.$el.childNodes,n=[].filter.call(t,function(e){return"INPUT"===e.tagName})[0],r=e.$refs.tags,i=e.initialInputHeight||40;n.style.height=0===e.selected.length?i+"px":Math.max(r?r.clientHeight+(r.clientHeight>i?6:0):0,i)+"px",e.visible&&!1!==e.emptyText&&e.broadcast("ElSelectDropdown","updatePopper")}})},resetHoverIndex:function(){var e=this;setTimeout(function(){e.multiple?e.selected.length>0?e.hoverIndex=Math.min.apply(null,e.selected.map(function(t){return e.options.indexOf(t)})):e.hoverIndex=-1:e.hoverIndex=e.options.indexOf(e.selected)},300)},handleOptionSelect:function(e,t){var n=this;if(this.multiple){var r=(this.value||[]).slice(),i=this.getValueIndex(r,e.value);i>-1?r.splice(i,1):(this.multipleLimit<=0||r.length<this.multipleLimit)&&r.push(e.value),this.$emit("input",r),this.emitChange(r),e.created&&(this.query="",this.handleQueryChange(""),this.inputLength=20),this.filterable&&this.$refs.input.focus()}else this.$emit("input",e.value),this.emitChange(e.value),this.visible=!1;this.isSilentBlur=t,this.setSoftFocus(),this.visible||this.$nextTick(function(){n.scrollToOption(e)})},setSoftFocus:function(){this.softFocus=!0;var e=this.$refs.input||this.$refs.reference;e&&e.focus()},getValueIndex:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];if("[object object]"===Object.prototype.toString.call(t).toLowerCase()){var n=this.valueKey,r=-1;return e.some(function(e,i){return Object(I.getValueByPath)(e,n)===Object(I.getValueByPath)(t,n)&&(r=i,!0)}),r}return e.indexOf(t)},toggleMenu:function(){this.selectDisabled||(this.menuVisibleOnFocus?this.menuVisibleOnFocus=!1:this.visible=!this.visible,this.visible&&(this.$refs.input||this.$refs.reference).focus())},selectOption:function(){this.visible?this.options[this.hoverIndex]&&this.handleOptionSelect(this.options[this.hoverIndex]):this.toggleMenu()},deleteSelected:function(e){e.stopPropagation();var t=this.multiple?[]:"";this.$emit("input",t),this.emitChange(t),this.visible=!1,this.$emit("clear")},deleteTag:function(e,t){var n=this.selected.indexOf(t);if(n>-1&&!this.selectDisabled){var r=this.value.slice();r.splice(n,1),this.$emit("input",r),this.emitChange(r),this.$emit("remove-tag",t.value)}e.stopPropagation()},onInputChange:function(){this.filterable&&this.query!==this.selectedLabel&&(this.query=this.selectedLabel,this.handleQueryChange(this.query))},onOptionDestroy:function(e){e>-1&&(this.optionsCount--,this.filteredOptionsCount--,this.options.splice(e,1))},resetInputWidth:function(){this.inputWidth=this.$refs.reference.$el.getBoundingClientRect().width},handleResize:function(){this.resetInputWidth(),this.multiple&&this.resetInputHeight()},checkDefaultFirstOption:function(){this.hoverIndex=-1;for(var e=!1,t=this.options.length-1;t>=0;t--)if(this.options[t].created){e=!0,this.hoverIndex=t;break}if(!e)for(var n=0;n!==this.options.length;++n){var r=this.options[n];if(this.query){if(!r.disabled&&!r.groupDisabled&&r.visible){this.hoverIndex=n;break}}else if(r.itemSelected){this.hoverIndex=n;break}}},getValueKey:function(e){return"[object object]"!==Object.prototype.toString.call(e.value).toLowerCase()?e.value:Object(I.getValueByPath)(e.value,this.valueKey)}},created:function(){var e=this;this.cachedPlaceHolder=this.currentPlaceholder=this.propPlaceholder,this.multiple&&!Array.isArray(this.value)&&this.$emit("input",[]),!this.multiple&&Array.isArray(this.value)&&this.$emit("input",""),this.debouncedOnInputChange=C()(this.debounce,function(){e.onInputChange()}),this.debouncedQueryChange=C()(this.debounce,function(t){e.handleQueryChange(t.target.value)}),this.$on("handleOptionClick",this.handleOptionSelect),this.$on("setSelected",this.setSelected)},mounted:function(){var e=this;this.multiple&&Array.isArray(this.value)&&this.value.length>0&&(this.currentPlaceholder=""),Object(B.addResizeListener)(this.$el,this.handleResize);var t=this.$refs.reference;if(t&&t.$el){var n=t.$el.querySelector("input");this.initialInputHeight=n.getBoundingClientRect().height||{medium:36,small:32,mini:28}[this.selectSize]}this.remote&&this.multiple&&this.resetInputHeight(),this.$nextTick(function(){t&&t.$el&&(e.inputWidth=t.$el.getBoundingClientRect().width)}),this.setSelected()},beforeDestroy:function(){this.$el&&this.handleResize&&Object(B.removeResizeListener)(this.$el,this.handleResize)}},D=Object(A.a)(F,r,[],!1,null,null,null);D.options.__file="packages/select/src/select.vue";var P=D.exports;P.install=function(e){e.component(P.name,P)};t.default=P}})},e6n0:function(e,t,n){var r=n("evD5").f,i=n("D2L2"),a=n("dSzd")("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,a)&&r(e,a,{configurable:!0,value:t})}},e8AB:function(e,t,n){var r=n("FeBl"),i=n("7KvD"),a=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n("O4g8")?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},eMjc:function(e,t,n){
  123. /*!
  124. * html2canvas 1.4.1 <https://html2canvas.hertzen.com>
  125. * Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
  126. * Released under MIT License
  127. */var r;r=function(){"use strict";
  128. /*! *****************************************************************************
  129. Copyright (c) Microsoft Corporation.
  130. Permission to use, copy, modify, and/or distribute this software for any
  131. purpose with or without fee is hereby granted.
  132. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  133. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  134. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  135. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  136. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  137. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  138. PERFORMANCE OF THIS SOFTWARE.
  139. ***************************************************************************** */var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};function t(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}var n=function(){return(n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function r(e,t,n,r){return new(n||(n=Promise))(function(i,a){function o(e){try{l(r.next(e))}catch(e){a(e)}}function s(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(o,s)}l((r=r.apply(e,t||[])).next())})}function i(e,t){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}function a(e,t,n){if(n||2===arguments.length)for(var r,i=0,a=t.length;i<a;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||t)}for(var o=function(){function e(e,t,n,r){this.left=e,this.top=t,this.width=n,this.height=r}return e.prototype.add=function(t,n,r,i){return new e(this.left+t,this.top+n,this.width+r,this.height+i)},e.fromClientRect=function(t,n){return new e(n.left+t.windowBounds.left,n.top+t.windowBounds.top,n.width,n.height)},e.fromDOMRectList=function(t,n){var r=Array.from(n).find(function(e){return 0!==e.width});return r?new e(r.left+t.windowBounds.left,r.top+t.windowBounds.top,r.width,r.height):e.EMPTY},e.EMPTY=new e(0,0,0,0),e}(),s=function(e,t){return o.fromClientRect(e,t.getBoundingClientRect())},l=function(e){for(var t=[],n=0,r=e.length;n<r;){var i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){var a=e.charCodeAt(n++);56320==(64512&a)?t.push(((1023&i)<<10)+(1023&a)+65536):(t.push(i),n--)}else t.push(i)}return t},c=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(String.fromCodePoint)return String.fromCodePoint.apply(String,e);var n=e.length;if(!n)return"";for(var r=[],i=-1,a="";++i<n;){var o=e[i];o<=65535?r.push(o):(o-=65536,r.push(55296+(o>>10),o%1024+56320)),(i+1===n||r.length>16384)&&(a+=String.fromCharCode.apply(String,r),r.length=0)}return a},u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",h="undefined"==typeof Uint8Array?[]:new Uint8Array(256),d=0;d<u.length;d++)h[u.charCodeAt(d)]=d;for(var f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",p="undefined"==typeof Uint8Array?[]:new Uint8Array(256),A=0;A<f.length;A++)p[f.charCodeAt(A)]=A;for(var g=function(e,t,n){return e.slice?e.slice(t,n):new Uint16Array(Array.prototype.slice.call(e,t,n))},m=function(){function e(e,t,n,r,i,a){this.initialValue=e,this.errorValue=t,this.highStart=n,this.highValueIndex=r,this.index=i,this.data=a}return e.prototype.get=function(e){var t;if(e>=0){if(e<55296||e>56319&&e<=65535)return t=((t=this.index[e>>5])<<2)+(31&e),this.data[t];if(e<=65535)return t=((t=this.index[2048+(e-55296>>5)])<<2)+(31&e),this.data[t];if(e<this.highStart)return t=2080+(e>>11),t=this.index[t],t+=e>>5&63,t=((t=this.index[t])<<2)+(31&e),this.data[t];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e}(),v="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",y="undefined"==typeof Uint8Array?[]:new Uint8Array(256),b=0;b<v.length;b++)y[v.charCodeAt(b)]=b;var w=10,x=13,_=15,C=17,S=18,k=19,B=20,E=21,T=22,I=24,M=25,F=26,D=27,P=28,O=30,L=32,R=33,N=34,U=35,H=37,j=38,Q=39,z=40,V=42,G=[9001,65288],$="!",q=function(e,t){var n,r,i,a=function(e){var t,n,r,i,a,o=.75*e.length,s=e.length,l=0;"="===e[e.length-1]&&(o--,"="===e[e.length-2]&&o--);var c="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.slice?new ArrayBuffer(o):new Array(o),u=Array.isArray(c)?c:new Uint8Array(c);for(t=0;t<s;t+=4)n=p[e.charCodeAt(t)],r=p[e.charCodeAt(t+1)],i=p[e.charCodeAt(t+2)],a=p[e.charCodeAt(t+3)],u[l++]=n<<2|r>>4,u[l++]=(15&r)<<4|i>>2,u[l++]=(3&i)<<6|63&a;return c}(e),o=Array.isArray(a)?function(e){for(var t=e.length,n=[],r=0;r<t;r+=4)n.push(e[r+3]<<24|e[r+2]<<16|e[r+1]<<8|e[r]);return n}(a):new Uint32Array(a),s=Array.isArray(a)?function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n.push(e[r+1]<<8|e[r]);return n}(a):new Uint16Array(a),l=g(s,12,o[4]/2),c=2===o[5]?g(s,(24+o[4])/2):(n=o,r=Math.ceil((24+o[4])/4),n.slice?n.slice(r,i):new Uint32Array(Array.prototype.slice.call(n,r,i)));return new m(o[0],o[1],o[2],o[3],l,c)}("KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA=="),W=[O,36],K=[1,2,3,5],Y=[w,8],X=[D,F],J=K.concat(Y),Z=[j,Q,z,N,U],ee=[_,x],te=function(e,t,n,r){var i=r[n];if(Array.isArray(e)?-1!==e.indexOf(i):e===i)for(var a=n;a<=r.length;){if((l=r[++a])===t)return!0;if(l!==w)break}if(i===w)for(a=n;a>0;){var o=r[--a];if(Array.isArray(e)?-1!==e.indexOf(o):e===o)for(var s=n;s<=r.length;){var l;if((l=r[++s])===t)return!0;if(l!==w)break}if(o!==w)break}return!1},ne=function(e,t){for(var n=e;n>=0;){var r=t[n];if(r!==w)return r;n--}return 0},re=function(e,t,n,r,i){if(0===n[r])return"×";var a=r-1;if(Array.isArray(i)&&!0===i[a])return"×";var o=a-1,s=a+1,l=t[a],c=o>=0?t[o]:0,u=t[s];if(2===l&&3===u)return"×";if(-1!==K.indexOf(l))return $;if(-1!==K.indexOf(u))return"×";if(-1!==Y.indexOf(u))return"×";if(8===ne(a,t))return"÷";if(11===q.get(e[a]))return"×";if((l===L||l===R)&&11===q.get(e[s]))return"×";if(7===l||7===u)return"×";if(9===l)return"×";if(-1===[w,x,_].indexOf(l)&&9===u)return"×";if(-1!==[C,S,k,I,P].indexOf(u))return"×";if(ne(a,t)===T)return"×";if(te(23,T,a,t))return"×";if(te([C,S],E,a,t))return"×";if(te(12,12,a,t))return"×";if(l===w)return"÷";if(23===l||23===u)return"×";if(16===u||16===l)return"÷";if(-1!==[x,_,E].indexOf(u)||14===l)return"×";if(36===c&&-1!==ee.indexOf(l))return"×";if(l===P&&36===u)return"×";if(u===B)return"×";if(-1!==W.indexOf(u)&&l===M||-1!==W.indexOf(l)&&u===M)return"×";if(l===D&&-1!==[H,L,R].indexOf(u)||-1!==[H,L,R].indexOf(l)&&u===F)return"×";if(-1!==W.indexOf(l)&&-1!==X.indexOf(u)||-1!==X.indexOf(l)&&-1!==W.indexOf(u))return"×";if(-1!==[D,F].indexOf(l)&&(u===M||-1!==[T,_].indexOf(u)&&t[s+1]===M)||-1!==[T,_].indexOf(l)&&u===M||l===M&&-1!==[M,P,I].indexOf(u))return"×";if(-1!==[M,P,I,C,S].indexOf(u))for(var h=a;h>=0;){if((d=t[h])===M)return"×";if(-1===[P,I].indexOf(d))break;h--}if(-1!==[D,F].indexOf(u))for(h=-1!==[C,S].indexOf(l)?o:a;h>=0;){var d;if((d=t[h])===M)return"×";if(-1===[P,I].indexOf(d))break;h--}if(j===l&&-1!==[j,Q,N,U].indexOf(u)||-1!==[Q,N].indexOf(l)&&-1!==[Q,z].indexOf(u)||-1!==[z,U].indexOf(l)&&u===z)return"×";if(-1!==Z.indexOf(l)&&-1!==[B,F].indexOf(u)||-1!==Z.indexOf(u)&&l===D)return"×";if(-1!==W.indexOf(l)&&-1!==W.indexOf(u))return"×";if(l===I&&-1!==W.indexOf(u))return"×";if(-1!==W.concat(M).indexOf(l)&&u===T&&-1===G.indexOf(e[s])||-1!==W.concat(M).indexOf(u)&&l===S)return"×";if(41===l&&41===u){for(var f=n[a],p=1;f>0&&41===t[--f];)p++;if(p%2!=0)return"×"}return l===L&&u===R?"×":"÷"},ie=function(e,t){t||(t={lineBreak:"normal",wordBreak:"normal"});var n=function(e,t){void 0===t&&(t="strict");var n=[],r=[],i=[];return e.forEach(function(e,a){var o=q.get(e);if(o>50?(i.push(!0),o-=50):i.push(!1),-1!==["normal","auto","loose"].indexOf(t)&&-1!==[8208,8211,12316,12448].indexOf(e))return r.push(a),n.push(16);if(4===o||11===o){if(0===a)return r.push(a),n.push(O);var s=n[a-1];return-1===J.indexOf(s)?(r.push(r[a-1]),n.push(s)):(r.push(a),n.push(O))}return r.push(a),31===o?n.push("strict"===t?E:H):o===V?n.push(O):29===o?n.push(O):43===o?e>=131072&&e<=196605||e>=196608&&e<=262141?n.push(H):n.push(O):void n.push(o)}),[r,n,i]}(e,t.lineBreak),r=n[0],i=n[1],a=n[2];return"break-all"!==t.wordBreak&&"break-word"!==t.wordBreak||(i=i.map(function(e){return-1!==[M,O,V].indexOf(e)?H:e})),[r,i,"keep-all"===t.wordBreak?a.map(function(t,n){return t&&e[n]>=19968&&e[n]<=40959}):void 0]},ae=function(){function e(e,t,n,r){this.codePoints=e,this.required=t===$,this.start=n,this.end=r}return e.prototype.slice=function(){return c.apply(void 0,this.codePoints.slice(this.start,this.end))},e}(),oe=function(e){return e>=48&&e<=57},se=function(e){return oe(e)||e>=65&&e<=70||e>=97&&e<=102},le=function(e){return 10===e||9===e||32===e},ce=function(e){return function(e){return function(e){return e>=97&&e<=122}(e)||function(e){return e>=65&&e<=90}(e)}(e)||function(e){return e>=128}(e)||95===e},ue=function(e){return ce(e)||oe(e)||45===e},he=function(e){return e>=0&&e<=8||11===e||e>=14&&e<=31||127===e},de=function(e,t){return 92===e&&10!==t},fe=function(e,t,n){return 45===e?ce(t)||de(t,n):!!ce(e)||!(92!==e||!de(e,t))},pe=function(e,t,n){return 43===e||45===e?!!oe(t)||46===t&&oe(n):oe(46===e?t:e)},Ae={type:2},ge={type:3},me={type:4},ve={type:13},ye={type:8},be={type:21},we={type:9},xe={type:10},_e={type:11},Ce={type:12},Se={type:14},ke={type:23},Be={type:1},Ee={type:25},Te={type:24},Ie={type:26},Me={type:27},Fe={type:28},De={type:29},Pe={type:31},Oe={type:32},Le=function(){function e(){this._value=[]}return e.prototype.write=function(e){this._value=this._value.concat(l(e))},e.prototype.read=function(){for(var e=[],t=this.consumeToken();t!==Oe;)e.push(t),t=this.consumeToken();return e},e.prototype.consumeToken=function(){var e=this.consumeCodePoint();switch(e){case 34:return this.consumeStringToken(34);case 35:var t=this.peekCodePoint(0),n=this.peekCodePoint(1),r=this.peekCodePoint(2);if(ue(t)||de(n,r)){var i=fe(t,n,r)?2:1;return{type:5,value:this.consumeName(),flags:i}}break;case 36:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),ve;break;case 39:return this.consumeStringToken(39);case 40:return Ae;case 41:return ge;case 42:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),Se;break;case 43:if(pe(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case 44:return me;case 45:var a=e,o=this.peekCodePoint(0),s=this.peekCodePoint(1);if(pe(a,o,s))return this.reconsumeCodePoint(e),this.consumeNumericToken();if(fe(a,o,s))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();if(45===o&&62===s)return this.consumeCodePoint(),this.consumeCodePoint(),Te;break;case 46:if(pe(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case 47:if(42===this.peekCodePoint(0))for(this.consumeCodePoint();;){var l=this.consumeCodePoint();if(42===l&&47===(l=this.consumeCodePoint()))return this.consumeToken();if(-1===l)return this.consumeToken()}break;case 58:return Ie;case 59:return Me;case 60:if(33===this.peekCodePoint(0)&&45===this.peekCodePoint(1)&&45===this.peekCodePoint(2))return this.consumeCodePoint(),this.consumeCodePoint(),Ee;break;case 64:var u=this.peekCodePoint(0),h=this.peekCodePoint(1),d=this.peekCodePoint(2);if(fe(u,h,d))return{type:7,value:this.consumeName()};break;case 91:return Fe;case 92:if(de(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();break;case 93:return De;case 61:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),ye;break;case 123:return _e;case 125:return Ce;case 117:case 85:var f=this.peekCodePoint(0),p=this.peekCodePoint(1);return 43!==f||!se(p)&&63!==p||(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(e),this.consumeIdentLikeToken();case 124:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),we;if(124===this.peekCodePoint(0))return this.consumeCodePoint(),be;break;case 126:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),xe;break;case-1:return Oe}return le(e)?(this.consumeWhiteSpace(),Pe):oe(e)?(this.reconsumeCodePoint(e),this.consumeNumericToken()):ce(e)?(this.reconsumeCodePoint(e),this.consumeIdentLikeToken()):{type:6,value:c(e)}},e.prototype.consumeCodePoint=function(){var e=this._value.shift();return void 0===e?-1:e},e.prototype.reconsumeCodePoint=function(e){this._value.unshift(e)},e.prototype.peekCodePoint=function(e){return e>=this._value.length?-1:this._value[e]},e.prototype.consumeUnicodeRangeToken=function(){for(var e=[],t=this.consumeCodePoint();se(t)&&e.length<6;)e.push(t),t=this.consumeCodePoint();for(var n=!1;63===t&&e.length<6;)e.push(t),t=this.consumeCodePoint(),n=!0;if(n)return{type:30,start:parseInt(c.apply(void 0,e.map(function(e){return 63===e?48:e})),16),end:parseInt(c.apply(void 0,e.map(function(e){return 63===e?70:e})),16)};var r=parseInt(c.apply(void 0,e),16);if(45===this.peekCodePoint(0)&&se(this.peekCodePoint(1))){this.consumeCodePoint(),t=this.consumeCodePoint();for(var i=[];se(t)&&i.length<6;)i.push(t),t=this.consumeCodePoint();return{type:30,start:r,end:parseInt(c.apply(void 0,i),16)}}return{type:30,start:r,end:r}},e.prototype.consumeIdentLikeToken=function(){var e=this.consumeName();return"url"===e.toLowerCase()&&40===this.peekCodePoint(0)?(this.consumeCodePoint(),this.consumeUrlToken()):40===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:19,value:e}):{type:20,value:e}},e.prototype.consumeUrlToken=function(){var e=[];if(this.consumeWhiteSpace(),-1===this.peekCodePoint(0))return{type:22,value:""};var t=this.peekCodePoint(0);if(39===t||34===t){var n=this.consumeStringToken(this.consumeCodePoint());return 0===n.type&&(this.consumeWhiteSpace(),-1===this.peekCodePoint(0)||41===this.peekCodePoint(0))?(this.consumeCodePoint(),{type:22,value:n.value}):(this.consumeBadUrlRemnants(),ke)}for(;;){var r=this.consumeCodePoint();if(-1===r||41===r)return{type:22,value:c.apply(void 0,e)};if(le(r))return this.consumeWhiteSpace(),-1===this.peekCodePoint(0)||41===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:22,value:c.apply(void 0,e)}):(this.consumeBadUrlRemnants(),ke);if(34===r||39===r||40===r||he(r))return this.consumeBadUrlRemnants(),ke;if(92===r){if(!de(r,this.peekCodePoint(0)))return this.consumeBadUrlRemnants(),ke;e.push(this.consumeEscapedCodePoint())}else e.push(r)}},e.prototype.consumeWhiteSpace=function(){for(;le(this.peekCodePoint(0));)this.consumeCodePoint()},e.prototype.consumeBadUrlRemnants=function(){for(;;){var e=this.consumeCodePoint();if(41===e||-1===e)return;de(e,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},e.prototype.consumeStringSlice=function(e){for(var t="";e>0;){var n=Math.min(5e4,e);t+=c.apply(void 0,this._value.splice(0,n)),e-=n}return this._value.shift(),t},e.prototype.consumeStringToken=function(e){for(var t="",n=0;;){var r=this._value[n];if(-1===r||void 0===r||r===e)return{type:0,value:t+=this.consumeStringSlice(n)};if(10===r)return this._value.splice(0,n),Be;if(92===r){var i=this._value[n+1];-1!==i&&void 0!==i&&(10===i?(t+=this.consumeStringSlice(n),n=-1,this._value.shift()):de(r,i)&&(t+=this.consumeStringSlice(n),t+=c(this.consumeEscapedCodePoint()),n=-1))}n++}},e.prototype.consumeNumber=function(){var e=[],t=4,n=this.peekCodePoint(0);for(43!==n&&45!==n||e.push(this.consumeCodePoint());oe(this.peekCodePoint(0));)e.push(this.consumeCodePoint());n=this.peekCodePoint(0);var r=this.peekCodePoint(1);if(46===n&&oe(r))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=8;oe(this.peekCodePoint(0));)e.push(this.consumeCodePoint());n=this.peekCodePoint(0),r=this.peekCodePoint(1);var i=this.peekCodePoint(2);if((69===n||101===n)&&((43===r||45===r)&&oe(i)||oe(r)))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=8;oe(this.peekCodePoint(0));)e.push(this.consumeCodePoint());return[function(e){var t=0,n=1;43!==e[t]&&45!==e[t]||(45===e[t]&&(n=-1),t++);for(var r=[];oe(e[t]);)r.push(e[t++]);var i=r.length?parseInt(c.apply(void 0,r),10):0;46===e[t]&&t++;for(var a=[];oe(e[t]);)a.push(e[t++]);var o=a.length,s=o?parseInt(c.apply(void 0,a),10):0;69!==e[t]&&101!==e[t]||t++;var l=1;43!==e[t]&&45!==e[t]||(45===e[t]&&(l=-1),t++);for(var u=[];oe(e[t]);)u.push(e[t++]);var h=u.length?parseInt(c.apply(void 0,u),10):0;return n*(i+s*Math.pow(10,-o))*Math.pow(10,l*h)}(e),t]},e.prototype.consumeNumericToken=function(){var e=this.consumeNumber(),t=e[0],n=e[1],r=this.peekCodePoint(0),i=this.peekCodePoint(1),a=this.peekCodePoint(2);return fe(r,i,a)?{type:15,number:t,flags:n,unit:this.consumeName()}:37===r?(this.consumeCodePoint(),{type:16,number:t,flags:n}):{type:17,number:t,flags:n}},e.prototype.consumeEscapedCodePoint=function(){var e=this.consumeCodePoint();if(se(e)){for(var t=c(e);se(this.peekCodePoint(0))&&t.length<6;)t+=c(this.consumeCodePoint());le(this.peekCodePoint(0))&&this.consumeCodePoint();var n=parseInt(t,16);return 0===n||function(e){return e>=55296&&e<=57343}(n)||n>1114111?65533:n}return-1===e?65533:e},e.prototype.consumeName=function(){for(var e="";;){var t=this.consumeCodePoint();if(ue(t))e+=c(t);else{if(!de(t,this.peekCodePoint(0)))return this.reconsumeCodePoint(t),e;e+=c(this.consumeEscapedCodePoint())}}},e}(),Re=function(){function e(e){this._tokens=e}return e.create=function(t){var n=new Le;return n.write(t),new e(n.read())},e.parseValue=function(t){return e.create(t).parseComponentValue()},e.parseValues=function(t){return e.create(t).parseComponentValues()},e.prototype.parseComponentValue=function(){for(var e=this.consumeToken();31===e.type;)e=this.consumeToken();if(32===e.type)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(e);var t=this.consumeComponentValue();do{e=this.consumeToken()}while(31===e.type);if(32===e.type)return t;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},e.prototype.parseComponentValues=function(){for(var e=[];;){var t=this.consumeComponentValue();if(32===t.type)return e;e.push(t),e.push()}},e.prototype.consumeComponentValue=function(){var e=this.consumeToken();switch(e.type){case 11:case 28:case 2:return this.consumeSimpleBlock(e.type);case 19:return this.consumeFunction(e)}return e},e.prototype.consumeSimpleBlock=function(e){for(var t={type:e,values:[]},n=this.consumeToken();;){if(32===n.type||$e(n,e))return t;this.reconsumeToken(n),t.values.push(this.consumeComponentValue()),n=this.consumeToken()}},e.prototype.consumeFunction=function(e){for(var t={name:e.value,values:[],type:18};;){var n=this.consumeToken();if(32===n.type||3===n.type)return t;this.reconsumeToken(n),t.values.push(this.consumeComponentValue())}},e.prototype.consumeToken=function(){var e=this._tokens.shift();return void 0===e?Oe:e},e.prototype.reconsumeToken=function(e){this._tokens.unshift(e)},e}(),Ne=function(e){return 15===e.type},Ue=function(e){return 17===e.type},He=function(e){return 20===e.type},je=function(e){return 0===e.type},Qe=function(e,t){return He(e)&&e.value===t},ze=function(e){return 31!==e.type},Ve=function(e){return 31!==e.type&&4!==e.type},Ge=function(e){var t=[],n=[];return e.forEach(function(e){if(4===e.type){if(0===n.length)throw new Error("Error parsing function args, zero tokens for arg");return t.push(n),void(n=[])}31!==e.type&&n.push(e)}),n.length&&t.push(n),t},$e=function(e,t){return 11===t&&12===e.type||(28===t&&29===e.type||2===t&&3===e.type)},qe=function(e){return 17===e.type||15===e.type},We=function(e){return 16===e.type||qe(e)},Ke=function(e){return e.length>1?[e[0],e[1]]:[e[0]]},Ye={type:17,number:0,flags:4},Xe={type:16,number:50,flags:4},Je={type:16,number:100,flags:4},Ze=function(e,t,n){var r=e[0],i=e[1];return[et(r,t),et(void 0!==i?i:r,n)]},et=function(e,t){if(16===e.type)return e.number/100*t;if(Ne(e))switch(e.unit){case"rem":case"em":return 16*e.number;case"px":default:return e.number}return e.number},tt=function(e,t){if(15===t.type)switch(t.unit){case"deg":return Math.PI*t.number/180;case"grad":return Math.PI/200*t.number;case"rad":return t.number;case"turn":return 2*Math.PI*t.number}throw new Error("Unsupported angle type")},nt=function(e){return 15===e.type&&("deg"===e.unit||"grad"===e.unit||"rad"===e.unit||"turn"===e.unit)},rt=function(e){switch(e.filter(He).map(function(e){return e.value}).join(" ")){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Ye,Ye];case"to top":case"bottom":return it(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Ye,Je];case"to right":case"left":return it(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[Je,Je];case"to bottom":case"top":return it(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[Je,Ye];case"to left":case"right":return it(270)}return 0},it=function(e){return Math.PI*e/180},at=function(e,t){if(18===t.type){var n=ft[t.name];if(void 0===n)throw new Error('Attempting to parse an unsupported color function "'+t.name+'"');return n(e,t.values)}if(5===t.type){if(3===t.value.length){var r=t.value.substring(0,1),i=t.value.substring(1,2),a=t.value.substring(2,3);return lt(parseInt(r+r,16),parseInt(i+i,16),parseInt(a+a,16),1)}if(4===t.value.length){r=t.value.substring(0,1),i=t.value.substring(1,2),a=t.value.substring(2,3);var o=t.value.substring(3,4);return lt(parseInt(r+r,16),parseInt(i+i,16),parseInt(a+a,16),parseInt(o+o,16)/255)}if(6===t.value.length){r=t.value.substring(0,2),i=t.value.substring(2,4),a=t.value.substring(4,6);return lt(parseInt(r,16),parseInt(i,16),parseInt(a,16),1)}if(8===t.value.length){r=t.value.substring(0,2),i=t.value.substring(2,4),a=t.value.substring(4,6),o=t.value.substring(6,8);return lt(parseInt(r,16),parseInt(i,16),parseInt(a,16),parseInt(o,16)/255)}}if(20===t.type){var s=At[t.value.toUpperCase()];if(void 0!==s)return s}return At.TRANSPARENT},ot=function(e){return 0==(255&e)},st=function(e){var t=255&e,n=255&e>>8,r=255&e>>16,i=255&e>>24;return t<255?"rgba("+i+","+r+","+n+","+t/255+")":"rgb("+i+","+r+","+n+")"},lt=function(e,t,n,r){return(e<<24|t<<16|n<<8|Math.round(255*r)<<0)>>>0},ct=function(e,t){if(17===e.type)return e.number;if(16===e.type){var n=3===t?1:255;return 3===t?e.number/100*n:Math.round(e.number/100*n)}return 0},ut=function(e,t){var n=t.filter(Ve);if(3===n.length){var r=n.map(ct),i=r[0],a=r[1],o=r[2];return lt(i,a,o,1)}if(4===n.length){var s=n.map(ct),l=(i=s[0],a=s[1],o=s[2],s[3]);return lt(i,a,o,l)}return 0};function ht(e,t,n){return n<0&&(n+=1),n>=1&&(n-=1),n<1/6?(t-e)*n*6+e:n<.5?t:n<2/3?6*(t-e)*(2/3-n)+e:e}var dt=function(e,t){var n=t.filter(Ve),r=n[0],i=n[1],a=n[2],o=n[3],s=(17===r.type?it(r.number):tt(e,r))/(2*Math.PI),l=We(i)?i.number/100:0,c=We(a)?a.number/100:0,u=void 0!==o&&We(o)?et(o,1):1;if(0===l)return lt(255*c,255*c,255*c,1);var h=c<=.5?c*(l+1):c+l-c*l,d=2*c-h,f=ht(d,h,s+1/3),p=ht(d,h,s),A=ht(d,h,s-1/3);return lt(255*f,255*p,255*A,u)},ft={hsl:dt,hsla:dt,rgb:ut,rgba:ut},pt=function(e,t){return at(e,Re.create(t).parseComponentValue())},At={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},gt={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(e,t){return t.map(function(e){if(He(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},mt={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},vt=function(e,t){var n=at(e,t[0]),r=t[1];return r&&We(r)?{color:n,stop:r}:{color:n,stop:null}},yt=function(e,t){var n=e[0],r=e[e.length-1];null===n.stop&&(n.stop=Ye),null===r.stop&&(r.stop=Je);for(var i=[],a=0,o=0;o<e.length;o++){var s=e[o].stop;if(null!==s){var l=et(s,t);l>a?i.push(l):i.push(a),a=l}else i.push(null)}var c=null;for(o=0;o<i.length;o++){var u=i[o];if(null===u)null===c&&(c=o);else if(null!==c){for(var h=o-c,d=(u-i[c-1])/(h+1),f=1;f<=h;f++)i[c+f-1]=d*f;c=null}}return e.map(function(e,n){return{color:e.color,stop:Math.max(Math.min(1,i[n]/t),0)}})},bt=function(e,t,n){var r="number"==typeof e?e:function(e,t,n){var r=t/2,i=n/2,a=et(e[0],t)-r,o=i-et(e[1],n);return(Math.atan2(o,a)+2*Math.PI)%(2*Math.PI)}(e,t,n),i=Math.abs(t*Math.sin(r))+Math.abs(n*Math.cos(r)),a=t/2,o=n/2,s=i/2,l=Math.sin(r-Math.PI/2)*s,c=Math.cos(r-Math.PI/2)*s;return[i,a-c,a+c,o-l,o+l]},wt=function(e,t){return Math.sqrt(e*e+t*t)},xt=function(e,t,n,r,i){return[[0,0],[0,t],[e,0],[e,t]].reduce(function(e,t){var a=t[0],o=t[1],s=wt(n-a,r-o);return(i?s<e.optimumDistance:s>e.optimumDistance)?{optimumCorner:t,optimumDistance:s}:e},{optimumDistance:i?1/0:-1/0,optimumCorner:null}).optimumCorner},_t=function(e,t){var n=it(180),r=[];return Ge(t).forEach(function(t,i){if(0===i){var a=t[0];if(20===a.type&&-1!==["top","left","right","bottom"].indexOf(a.value))return void(n=rt(t));if(nt(a))return void(n=(tt(e,a)+it(270))%it(360))}var o=vt(e,t);r.push(o)}),{angle:n,stops:r,type:1}},Ct=function(e,t){var n=0,r=3,i=[],a=[];return Ge(t).forEach(function(t,o){var s=!0;if(0===o?s=t.reduce(function(e,t){if(He(t))switch(t.value){case"center":return a.push(Xe),!1;case"top":case"left":return a.push(Ye),!1;case"right":case"bottom":return a.push(Je),!1}else if(We(t)||qe(t))return a.push(t),!1;return e},s):1===o&&(s=t.reduce(function(e,t){if(He(t))switch(t.value){case"circle":return n=0,!1;case"ellipse":return n=1,!1;case"contain":case"closest-side":return r=0,!1;case"farthest-side":return r=1,!1;case"closest-corner":return r=2,!1;case"cover":case"farthest-corner":return r=3,!1}else if(qe(t)||We(t))return Array.isArray(r)||(r=[]),r.push(t),!1;return e},s)),s){var l=vt(e,t);i.push(l)}}),{size:r,shape:n,stops:i,position:a,type:2}},St=function(e,t){if(22===t.type){var n={url:t.value,type:0};return e.cache.addImage(t.value),n}if(18===t.type){var r=Bt[t.name];if(void 0===r)throw new Error('Attempting to parse an unsupported image function "'+t.name+'"');return r(e,t.values)}throw new Error("Unsupported image type "+t.type)};var kt,Bt={"linear-gradient":function(e,t){var n=it(180),r=[];return Ge(t).forEach(function(t,i){if(0===i){var a=t[0];if(20===a.type&&"to"===a.value)return void(n=rt(t));if(nt(a))return void(n=tt(e,a))}var o=vt(e,t);r.push(o)}),{angle:n,stops:r,type:1}},"-moz-linear-gradient":_t,"-ms-linear-gradient":_t,"-o-linear-gradient":_t,"-webkit-linear-gradient":_t,"radial-gradient":function(e,t){var n=0,r=3,i=[],a=[];return Ge(t).forEach(function(t,o){var s=!0;if(0===o){var l=!1;s=t.reduce(function(e,t){if(l)if(He(t))switch(t.value){case"center":return a.push(Xe),e;case"top":case"left":return a.push(Ye),e;case"right":case"bottom":return a.push(Je),e}else(We(t)||qe(t))&&a.push(t);else if(He(t))switch(t.value){case"circle":return n=0,!1;case"ellipse":return n=1,!1;case"at":return l=!0,!1;case"closest-side":return r=0,!1;case"cover":case"farthest-side":return r=1,!1;case"contain":case"closest-corner":return r=2,!1;case"farthest-corner":return r=3,!1}else if(qe(t)||We(t))return Array.isArray(r)||(r=[]),r.push(t),!1;return e},s)}if(s){var c=vt(e,t);i.push(c)}}),{size:r,shape:n,stops:i,position:a,type:2}},"-moz-radial-gradient":Ct,"-ms-radial-gradient":Ct,"-o-radial-gradient":Ct,"-webkit-radial-gradient":Ct,"-webkit-gradient":function(e,t){var n=it(180),r=[],i=1;return Ge(t).forEach(function(t,n){var a=t[0];if(0===n){if(He(a)&&"linear"===a.value)return void(i=1);if(He(a)&&"radial"===a.value)return void(i=2)}if(18===a.type)if("from"===a.name){var o=at(e,a.values[0]);r.push({stop:Ye,color:o})}else if("to"===a.name)o=at(e,a.values[0]),r.push({stop:Je,color:o});else if("color-stop"===a.name){var s=a.values.filter(Ve);if(2===s.length){o=at(e,s[1]);var l=s[0];Ue(l)&&r.push({stop:{type:16,number:100*l.number,flags:l.flags},color:o})}}}),1===i?{angle:(n+it(180))%it(360),stops:r,type:i}:{size:3,shape:0,stops:r,position:[],type:i}}},Et={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(e,t){if(0===t.length)return[];var n=t[0];return 20===n.type&&"none"===n.value?[]:t.filter(function(e){return Ve(e)&&function(e){return!(20===e.type&&"none"===e.value||18===e.type&&!Bt[e.name])}(e)}).map(function(t){return St(e,t)})}},Tt={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(e,t){return t.map(function(e){if(He(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},It={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(e,t){return Ge(t).map(function(e){return e.filter(We)}).map(Ke)}},Mt={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(e,t){return Ge(t).map(function(e){return e.filter(He).map(function(e){return e.value}).join(" ")}).map(Ft)}},Ft=function(e){switch(e){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}};!function(e){e.AUTO="auto",e.CONTAIN="contain",e.COVER="cover"}(kt||(kt={}));var Dt,Pt={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(e,t){return Ge(t).map(function(e){return e.filter(Ot)})}},Ot=function(e){return He(e)||We(e)},Lt=function(e){return{name:"border-"+e+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},Rt=Lt("top"),Nt=Lt("right"),Ut=Lt("bottom"),Ht=Lt("left"),jt=function(e){return{name:"border-radius-"+e,initialValue:"0 0",prefix:!1,type:1,parse:function(e,t){return Ke(t.filter(We))}}},Qt=jt("top-left"),zt=jt("top-right"),Vt=jt("bottom-right"),Gt=jt("bottom-left"),$t=function(e){return{name:"border-"+e+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(e,t){switch(t){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},qt=$t("top"),Wt=$t("right"),Kt=$t("bottom"),Yt=$t("left"),Xt=function(e){return{name:"border-"+e+"-width",initialValue:"0",type:0,prefix:!1,parse:function(e,t){return Ne(t)?t.number:0}}},Jt=Xt("top"),Zt=Xt("right"),en=Xt("bottom"),tn=Xt("left"),nn={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},rn={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(e,t){switch(t){case"rtl":return 1;case"ltr":default:return 0}}},an={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(e,t){return t.filter(He).reduce(function(e,t){return e|on(t.value)},0)}},on=function(e){switch(e){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},sn={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},ln={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(e,t){return 20===t.type&&"normal"===t.value?0:17===t.type?t.number:15===t.type?t.number:0}};!function(e){e.NORMAL="normal",e.STRICT="strict"}(Dt||(Dt={}));var cn,un={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"strict":return Dt.STRICT;case"normal":default:return Dt.NORMAL}}},hn={name:"line-height",initialValue:"normal",prefix:!1,type:4},dn=function(e,t){return He(e)&&"normal"===e.value?1.2*t:17===e.type?t*e.number:We(e)?et(e,t):t},fn={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(e,t){return 20===t.type&&"none"===t.value?null:St(e,t)}},pn={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(e,t){switch(t){case"inside":return 0;case"outside":default:return 1}}},An={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},gn=function(e){return{name:"margin-"+e,initialValue:"0",prefix:!1,type:4}},mn=gn("top"),vn=gn("right"),yn=gn("bottom"),bn=gn("left"),wn={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(e,t){return t.filter(He).map(function(e){switch(e.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},xn={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"break-word":return"break-word";case"normal":default:return"normal"}}},_n=function(e){return{name:"padding-"+e,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},Cn=_n("top"),Sn=_n("right"),kn=_n("bottom"),Bn=_n("left"),En={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(e,t){switch(t){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},Tn={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(e,t){switch(t){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},In={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(e,t){return 1===t.length&&Qe(t[0],"none")?[]:Ge(t).map(function(t){for(var n={color:At.TRANSPARENT,offsetX:Ye,offsetY:Ye,blur:Ye},r=0,i=0;i<t.length;i++){var a=t[i];qe(a)?(0===r?n.offsetX=a:1===r?n.offsetY=a:n.blur=a,r++):n.color=at(e,a)}return n})}},Mn={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},Fn={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(e,t){if(20===t.type&&"none"===t.value)return null;if(18===t.type){var n=Dn[t.name];if(void 0===n)throw new Error('Attempting to parse an unsupported transform function "'+t.name+'"');return n(t.values)}return null}},Dn={matrix:function(e){var t=e.filter(function(e){return 17===e.type}).map(function(e){return e.number});return 6===t.length?t:null},matrix3d:function(e){var t=e.filter(function(e){return 17===e.type}).map(function(e){return e.number}),n=t[0],r=t[1];t[2],t[3];var i=t[4],a=t[5];t[6],t[7],t[8],t[9],t[10],t[11];var o=t[12],s=t[13];return t[14],t[15],16===t.length?[n,r,i,a,o,s]:null}},Pn={type:16,number:50,flags:4},On=[Pn,Pn],Ln={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(e,t){var n=t.filter(We);return 2!==n.length?On:[n[0],n[1]]}},Rn={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}};!function(e){e.NORMAL="normal",e.BREAK_ALL="break-all",e.KEEP_ALL="keep-all"}(cn||(cn={}));for(var Nn={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"break-all":return cn.BREAK_ALL;case"keep-all":return cn.KEEP_ALL;case"normal":default:return cn.NORMAL}}},Un={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(e,t){if(20===t.type)return{auto:!0,order:0};if(Ue(t))return{auto:!1,order:t.number};throw new Error("Invalid z-index number parsed")}},Hn=function(e,t){if(15===t.type)switch(t.unit.toLowerCase()){case"s":return 1e3*t.number;case"ms":return t.number}throw new Error("Unsupported time type")},jn={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(e,t){return Ue(t)?t.number:1}},Qn={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},zn={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(e,t){return t.filter(He).map(function(e){switch(e.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(e){return 0!==e})}},Vn={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(e,t){var n=[],r=[];return t.forEach(function(e){switch(e.type){case 20:case 0:n.push(e.value);break;case 17:n.push(e.number.toString());break;case 4:r.push(n.join(" ")),n.length=0}}),n.length&&r.push(n.join(" ")),r.map(function(e){return-1===e.indexOf(" ")?e:"'"+e+"'"})}},Gn={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},$n={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(e,t){if(Ue(t))return t.number;if(He(t))switch(t.value){case"bold":return 700;case"normal":default:return 400}return 400}},qn={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(e,t){return t.filter(He).map(function(e){return e.value})}},Wn={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},Kn=function(e,t){return 0!=(e&t)},Yn={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(e,t){if(0===t.length)return[];var n=t[0];return 20===n.type&&"none"===n.value?[]:t}},Xn={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(e,t){if(0===t.length)return null;var n=t[0];if(20===n.type&&"none"===n.value)return null;for(var r=[],i=t.filter(ze),a=0;a<i.length;a++){var o=i[a],s=i[a+1];if(20===o.type){var l=s&&Ue(s)?s.number:1;r.push({counter:o.value,increment:l})}}return r}},Jn={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(e,t){if(0===t.length)return[];for(var n=[],r=t.filter(ze),i=0;i<r.length;i++){var a=r[i],o=r[i+1];if(He(a)&&"none"!==a.value){var s=o&&Ue(o)?o.number:0;n.push({counter:a.value,reset:s})}}return n}},Zn={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(e,t){return t.filter(Ne).map(function(t){return Hn(e,t)})}},er={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(e,t){if(0===t.length)return null;var n=t[0];if(20===n.type&&"none"===n.value)return null;var r=[],i=t.filter(je);if(i.length%2!=0)return null;for(var a=0;a<i.length;a+=2){var o=i[a].value,s=i[a+1].value;r.push({open:o,close:s})}return r}},tr=function(e,t,n){if(!e)return"";var r=e[Math.min(t,e.length-1)];return r?n?r.open:r.close:""},nr={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(e,t){return 1===t.length&&Qe(t[0],"none")?[]:Ge(t).map(function(t){for(var n={color:255,offsetX:Ye,offsetY:Ye,blur:Ye,spread:Ye,inset:!1},r=0,i=0;i<t.length;i++){var a=t[i];Qe(a,"inset")?n.inset=!0:qe(a)?(0===r?n.offsetX=a:1===r?n.offsetY=a:2===r?n.blur=a:n.spread=a,r++):n.color=at(e,a)}return n})}},rr={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(e,t){var n=[];return t.filter(He).forEach(function(e){switch(e.value){case"stroke":n.push(1);break;case"fill":n.push(0);break;case"markers":n.push(2)}}),[0,1,2].forEach(function(e){-1===n.indexOf(e)&&n.push(e)}),n}},ir={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},ar={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(e,t){return Ne(t)?t.number:0}},or=function(){function e(e,t){var n,r;this.animationDuration=cr(e,Zn,t.animationDuration),this.backgroundClip=cr(e,gt,t.backgroundClip),this.backgroundColor=cr(e,mt,t.backgroundColor),this.backgroundImage=cr(e,Et,t.backgroundImage),this.backgroundOrigin=cr(e,Tt,t.backgroundOrigin),this.backgroundPosition=cr(e,It,t.backgroundPosition),this.backgroundRepeat=cr(e,Mt,t.backgroundRepeat),this.backgroundSize=cr(e,Pt,t.backgroundSize),this.borderTopColor=cr(e,Rt,t.borderTopColor),this.borderRightColor=cr(e,Nt,t.borderRightColor),this.borderBottomColor=cr(e,Ut,t.borderBottomColor),this.borderLeftColor=cr(e,Ht,t.borderLeftColor),this.borderTopLeftRadius=cr(e,Qt,t.borderTopLeftRadius),this.borderTopRightRadius=cr(e,zt,t.borderTopRightRadius),this.borderBottomRightRadius=cr(e,Vt,t.borderBottomRightRadius),this.borderBottomLeftRadius=cr(e,Gt,t.borderBottomLeftRadius),this.borderTopStyle=cr(e,qt,t.borderTopStyle),this.borderRightStyle=cr(e,Wt,t.borderRightStyle),this.borderBottomStyle=cr(e,Kt,t.borderBottomStyle),this.borderLeftStyle=cr(e,Yt,t.borderLeftStyle),this.borderTopWidth=cr(e,Jt,t.borderTopWidth),this.borderRightWidth=cr(e,Zt,t.borderRightWidth),this.borderBottomWidth=cr(e,en,t.borderBottomWidth),this.borderLeftWidth=cr(e,tn,t.borderLeftWidth),this.boxShadow=cr(e,nr,t.boxShadow),this.color=cr(e,nn,t.color),this.direction=cr(e,rn,t.direction),this.display=cr(e,an,t.display),this.float=cr(e,sn,t.cssFloat),this.fontFamily=cr(e,Vn,t.fontFamily),this.fontSize=cr(e,Gn,t.fontSize),this.fontStyle=cr(e,Wn,t.fontStyle),this.fontVariant=cr(e,qn,t.fontVariant),this.fontWeight=cr(e,$n,t.fontWeight),this.letterSpacing=cr(e,ln,t.letterSpacing),this.lineBreak=cr(e,un,t.lineBreak),this.lineHeight=cr(e,hn,t.lineHeight),this.listStyleImage=cr(e,fn,t.listStyleImage),this.listStylePosition=cr(e,pn,t.listStylePosition),this.listStyleType=cr(e,An,t.listStyleType),this.marginTop=cr(e,mn,t.marginTop),this.marginRight=cr(e,vn,t.marginRight),this.marginBottom=cr(e,yn,t.marginBottom),this.marginLeft=cr(e,bn,t.marginLeft),this.opacity=cr(e,jn,t.opacity);var i=cr(e,wn,t.overflow);this.overflowX=i[0],this.overflowY=i[i.length>1?1:0],this.overflowWrap=cr(e,xn,t.overflowWrap),this.paddingTop=cr(e,Cn,t.paddingTop),this.paddingRight=cr(e,Sn,t.paddingRight),this.paddingBottom=cr(e,kn,t.paddingBottom),this.paddingLeft=cr(e,Bn,t.paddingLeft),this.paintOrder=cr(e,rr,t.paintOrder),this.position=cr(e,Tn,t.position),this.textAlign=cr(e,En,t.textAlign),this.textDecorationColor=cr(e,Qn,null!==(n=t.textDecorationColor)&&void 0!==n?n:t.color),this.textDecorationLine=cr(e,zn,null!==(r=t.textDecorationLine)&&void 0!==r?r:t.textDecoration),this.textShadow=cr(e,In,t.textShadow),this.textTransform=cr(e,Mn,t.textTransform),this.transform=cr(e,Fn,t.transform),this.transformOrigin=cr(e,Ln,t.transformOrigin),this.visibility=cr(e,Rn,t.visibility),this.webkitTextStrokeColor=cr(e,ir,t.webkitTextStrokeColor),this.webkitTextStrokeWidth=cr(e,ar,t.webkitTextStrokeWidth),this.wordBreak=cr(e,Nn,t.wordBreak),this.zIndex=cr(e,Un,t.zIndex)}return e.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&0===this.visibility},e.prototype.isTransparent=function(){return ot(this.backgroundColor)},e.prototype.isTransformed=function(){return null!==this.transform},e.prototype.isPositioned=function(){return 0!==this.position},e.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},e.prototype.isFloating=function(){return 0!==this.float},e.prototype.isInlineLevel=function(){return Kn(this.display,4)||Kn(this.display,33554432)||Kn(this.display,268435456)||Kn(this.display,536870912)||Kn(this.display,67108864)||Kn(this.display,134217728)},e}(),sr=function(){return function(e,t){this.content=cr(e,Yn,t.content),this.quotes=cr(e,er,t.quotes)}}(),lr=function(){return function(e,t){this.counterIncrement=cr(e,Xn,t.counterIncrement),this.counterReset=cr(e,Jn,t.counterReset)}}(),cr=function(e,t,n){var r=new Le,i=null!==n&&void 0!==n?n.toString():t.initialValue;r.write(i);var a=new Re(r.read());switch(t.type){case 2:var o=a.parseComponentValue();return t.parse(e,He(o)?o.value:t.initialValue);case 0:return t.parse(e,a.parseComponentValue());case 1:return t.parse(e,a.parseComponentValues());case 4:return a.parseComponentValue();case 3:switch(t.format){case"angle":return tt(e,a.parseComponentValue());case"color":return at(e,a.parseComponentValue());case"image":return St(e,a.parseComponentValue());case"length":var s=a.parseComponentValue();return qe(s)?s:Ye;case"length-percentage":var l=a.parseComponentValue();return We(l)?l:Ye;case"time":return Hn(e,a.parseComponentValue())}}},ur=function(e,t){var n=function(e){switch(e.getAttribute("data-html2canvas-debug")){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}}(e);return 1===n||t===n},hr=function(){return function(e,t){this.context=e,this.textNodes=[],this.elements=[],this.flags=0,ur(t,3),this.styles=new or(e,window.getComputedStyle(t,null)),Ai(t)&&(this.styles.animationDuration.some(function(e){return e>0})&&(t.style.animationDuration="0s"),null!==this.styles.transform&&(t.style.transform="none")),this.bounds=s(this.context,t),ur(t,4)&&(this.flags|=16)}}(),dr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",fr="undefined"==typeof Uint8Array?[]:new Uint8Array(256),pr=0;pr<dr.length;pr++)fr[dr.charCodeAt(pr)]=pr;for(var Ar=function(e,t,n){return e.slice?e.slice(t,n):new Uint16Array(Array.prototype.slice.call(e,t,n))},gr=function(){function e(e,t,n,r,i,a){this.initialValue=e,this.errorValue=t,this.highStart=n,this.highValueIndex=r,this.index=i,this.data=a}return e.prototype.get=function(e){var t;if(e>=0){if(e<55296||e>56319&&e<=65535)return t=((t=this.index[e>>5])<<2)+(31&e),this.data[t];if(e<=65535)return t=((t=this.index[2048+(e-55296>>5)])<<2)+(31&e),this.data[t];if(e<this.highStart)return t=2080+(e>>11),t=this.index[t],t+=e>>5&63,t=((t=this.index[t])<<2)+(31&e),this.data[t];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e}(),mr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",vr="undefined"==typeof Uint8Array?[]:new Uint8Array(256),yr=0;yr<mr.length;yr++)vr[mr.charCodeAt(yr)]=yr;var br,wr=8,xr=9,_r=11,Cr=12,Sr=function(e,t){var n,r,i,a=function(e){var t,n,r,i,a,o=.75*e.length,s=e.length,l=0;"="===e[e.length-1]&&(o--,"="===e[e.length-2]&&o--);var c="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.slice?new ArrayBuffer(o):new Array(o),u=Array.isArray(c)?c:new Uint8Array(c);for(t=0;t<s;t+=4)n=fr[e.charCodeAt(t)],r=fr[e.charCodeAt(t+1)],i=fr[e.charCodeAt(t+2)],a=fr[e.charCodeAt(t+3)],u[l++]=n<<2|r>>4,u[l++]=(15&r)<<4|i>>2,u[l++]=(3&i)<<6|63&a;return c}(e),o=Array.isArray(a)?function(e){for(var t=e.length,n=[],r=0;r<t;r+=4)n.push(e[r+3]<<24|e[r+2]<<16|e[r+1]<<8|e[r]);return n}(a):new Uint32Array(a),s=Array.isArray(a)?function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n.push(e[r+1]<<8|e[r]);return n}(a):new Uint16Array(a),l=Ar(s,12,o[4]/2),c=2===o[5]?Ar(s,(24+o[4])/2):(n=o,r=Math.ceil((24+o[4])/4),n.slice?n.slice(r,i):new Uint32Array(Array.prototype.slice.call(n,r,i)));return new gr(o[0],o[1],o[2],o[3],l,c)}("AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA="),kr=function(e){return Sr.get(e)},Br=function(e,t,n){var r=n-2,i=t[r],a=t[n-1],o=t[n];if(2===a&&3===o)return"×";if(2===a||3===a||4===a)return"÷";if(2===o||3===o||4===o)return"÷";if(a===wr&&-1!==[wr,xr,_r,Cr].indexOf(o))return"×";if(!(a!==_r&&a!==xr||o!==xr&&10!==o))return"×";if((a===Cr||10===a)&&10===o)return"×";if(13===o||5===o)return"×";if(7===o)return"×";if(1===a)return"×";if(13===a&&14===o){for(;5===i;)i=t[--r];if(14===i)return"×"}if(15===a&&15===o){for(var s=0;15===i;)s++,i=t[--r];if(s%2==0)return"×"}return"÷"},Er=function(e){var t=function(e){for(var t=[],n=0,r=e.length;n<r;){var i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){var a=e.charCodeAt(n++);56320==(64512&a)?t.push(((1023&i)<<10)+(1023&a)+65536):(t.push(i),n--)}else t.push(i)}return t}(e),n=t.length,r=0,i=0,a=t.map(kr);return{next:function(){if(r>=n)return{done:!0,value:null};for(var e="×";r<n&&"×"===(e=Br(0,a,++r)););if("×"!==e||r===n){var o=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(String.fromCodePoint)return String.fromCodePoint.apply(String,e);var n=e.length;if(!n)return"";for(var r=[],i=-1,a="";++i<n;){var o=e[i];o<=65535?r.push(o):(o-=65536,r.push(55296+(o>>10),o%1024+56320)),(i+1===n||r.length>16384)&&(a+=String.fromCharCode.apply(String,r),r.length=0)}return a}.apply(null,t.slice(i,r));return i=r,{value:o,done:!1}}return{done:!0,value:null}}}},Tr=function(e){return 0===e[0]&&255===e[1]&&0===e[2]&&255===e[3]},Ir=function(e,t,n,r,i){var a="http://www.w3.org/2000/svg",o=document.createElementNS(a,"svg"),s=document.createElementNS(a,"foreignObject");return o.setAttributeNS(null,"width",e.toString()),o.setAttributeNS(null,"height",t.toString()),s.setAttributeNS(null,"width","100%"),s.setAttributeNS(null,"height","100%"),s.setAttributeNS(null,"x",n.toString()),s.setAttributeNS(null,"y",r.toString()),s.setAttributeNS(null,"externalResourcesRequired","true"),o.appendChild(s),s.appendChild(i),o},Mr=function(e){return new Promise(function(t,n){var r=new Image;r.onload=function(){return t(r)},r.onerror=n,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(e))})},Fr={get SUPPORT_RANGE_BOUNDS(){var e=function(e){if(e.createRange){var t=e.createRange();if(t.getBoundingClientRect){var n=e.createElement("boundtest");n.style.height="123px",n.style.display="block",e.body.appendChild(n),t.selectNode(n);var r=t.getBoundingClientRect(),i=Math.round(r.height);if(e.body.removeChild(n),123===i)return!0}}return!1}(document);return Object.defineProperty(Fr,"SUPPORT_RANGE_BOUNDS",{value:e}),e},get SUPPORT_WORD_BREAKING(){var e=Fr.SUPPORT_RANGE_BOUNDS&&function(e){var t=e.createElement("boundtest");t.style.width="50px",t.style.display="block",t.style.fontSize="12px",t.style.letterSpacing="0px",t.style.wordSpacing="0px",e.body.appendChild(t);var n=e.createRange();t.innerHTML="function"==typeof"".repeat?"&#128104;".repeat(10):"";var r=t.firstChild,i=0,a={},o=l(r.data).map(function(e){return c(e)}).every(function(e,t){n.setStart(r,i),n.setEnd(r,i+e.length);var o=n.getBoundingClientRect();i+=e.length;var s=o.x>a.x||o.y>a.y;return a=o,0===t||s});return e.body.removeChild(t),o}(document);return Object.defineProperty(Fr,"SUPPORT_WORD_BREAKING",{value:e}),e},get SUPPORT_SVG_DRAWING(){var e=function(e){var t=new Image,n=e.createElement("canvas"),r=n.getContext("2d");if(!r)return!1;t.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{r.drawImage(t,0,0),n.toDataURL()}catch(e){return!1}return!0}(document);return Object.defineProperty(Fr,"SUPPORT_SVG_DRAWING",{value:e}),e},get SUPPORT_FOREIGNOBJECT_DRAWING(){var e="function"==typeof Array.from&&"function"==typeof window.fetch?function(e){var t=e.createElement("canvas");t.width=100,t.height=100;var n=t.getContext("2d");if(!n)return Promise.reject(!1);n.fillStyle="rgb(0, 255, 0)",n.fillRect(0,0,100,100);var r=new Image,i=t.toDataURL();r.src=i;var a=Ir(100,100,0,0,r);return n.fillStyle="red",n.fillRect(0,0,100,100),Mr(a).then(function(t){n.drawImage(t,0,0);var r=n.getImageData(0,0,100,100).data;n.fillStyle="red",n.fillRect(0,0,100,100);var a=e.createElement("div");return a.style.backgroundImage="url("+i+")",a.style.height="100px",Tr(r)?Mr(Ir(100,100,0,0,a)):Promise.reject(!1)}).then(function(e){return n.drawImage(e,0,0),Tr(n.getImageData(0,0,100,100).data)}).catch(function(){return!1})}(document):Promise.resolve(!1);return Object.defineProperty(Fr,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:e}),e},get SUPPORT_CORS_IMAGES(){var e=void 0!==(new Image).crossOrigin;return Object.defineProperty(Fr,"SUPPORT_CORS_IMAGES",{value:e}),e},get SUPPORT_RESPONSE_TYPE(){var e="string"==typeof(new XMLHttpRequest).responseType;return Object.defineProperty(Fr,"SUPPORT_RESPONSE_TYPE",{value:e}),e},get SUPPORT_CORS_XHR(){var e="withCredentials"in new XMLHttpRequest;return Object.defineProperty(Fr,"SUPPORT_CORS_XHR",{value:e}),e},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var e=!("undefined"==typeof Intl||!Intl.Segmenter);return Object.defineProperty(Fr,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:e}),e}},Dr=function(){return function(e,t){this.text=e,this.bounds=t}}(),Pr=function(e,t,n,r){var i=[],a=0;return Nr(t,n).forEach(function(t){if(n.textDecorationLine.length||t.trim().length>0)if(Fr.SUPPORT_RANGE_BOUNDS){var s=Lr(r,a,t.length).getClientRects();if(s.length>1){var l=0;Rr(t).forEach(function(t){i.push(new Dr(t,o.fromDOMRectList(e,Lr(r,l+a,t.length).getClientRects()))),l+=t.length})}else i.push(new Dr(t,o.fromDOMRectList(e,s)))}else{var c=r.splitText(t.length);i.push(new Dr(t,Or(e,r))),r=c}else Fr.SUPPORT_RANGE_BOUNDS||(r=r.splitText(t.length));a+=t.length}),i},Or=function(e,t){var n=t.ownerDocument;if(n){var r=n.createElement("html2canvaswrapper");r.appendChild(t.cloneNode(!0));var i=t.parentNode;if(i){i.replaceChild(r,t);var a=s(e,r);return r.firstChild&&i.replaceChild(r.firstChild,r),a}}return o.EMPTY},Lr=function(e,t,n){var r=e.ownerDocument;if(!r)throw new Error("Node has no owner document");var i=r.createRange();return i.setStart(e,t),i.setEnd(e,t+n),i},Rr=function(e){if(Fr.SUPPORT_NATIVE_TEXT_SEGMENTATION){var t=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(t.segment(e)).map(function(e){return e.segment})}return function(e){for(var t,n=Er(e),r=[];!(t=n.next()).done;)t.value&&r.push(t.value.slice());return r}(e)},Nr=function(e,t){return 0!==t.letterSpacing?Rr(e):function(e,t){if(Fr.SUPPORT_NATIVE_TEXT_SEGMENTATION){var n=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(n.segment(e)).map(function(e){return e.segment})}return Hr(e,t)}(e,t)},Ur=[32,160,4961,65792,65793,4153,4241],Hr=function(e,t){for(var n,r=function(e,t){var n=l(e),r=ie(n,t),i=r[0],a=r[1],o=r[2],s=n.length,c=0,u=0;return{next:function(){if(u>=s)return{done:!0,value:null};for(var e="×";u<s&&"×"===(e=re(n,a,i,++u,o)););if("×"!==e||u===s){var t=new ae(n,e,c,u);return c=u,{value:t,done:!1}}return{done:!0,value:null}}}}(e,{lineBreak:t.lineBreak,wordBreak:"break-word"===t.overflowWrap?"break-word":t.wordBreak}),i=[],a=function(){if(n.value){var e=n.value.slice(),t="";l(e).forEach(function(e){-1===Ur.indexOf(e)?t+=c(e):(t.length&&i.push(t),i.push(c(e)),t="")}),t.length&&i.push(t)}};!(n=r.next()).done;)a();return i},jr=function(){return function(e,t,n){this.text=Qr(t.data,n.textTransform),this.textBounds=Pr(e,this.text,n,t)}}(),Qr=function(e,t){switch(t){case 1:return e.toLowerCase();case 3:return e.replace(zr,Vr);case 2:return e.toUpperCase();default:return e}},zr=/(^|\s|:|-|\(|\))([a-z])/g,Vr=function(e,t,n){return e.length>0?t+n.toUpperCase():e},Gr=function(e){function n(t,n){var r=e.call(this,t,n)||this;return r.src=n.currentSrc||n.src,r.intrinsicWidth=n.naturalWidth,r.intrinsicHeight=n.naturalHeight,r.context.cache.addImage(r.src),r}return t(n,e),n}(hr),$r=function(e){function n(t,n){var r=e.call(this,t,n)||this;return r.canvas=n,r.intrinsicWidth=n.width,r.intrinsicHeight=n.height,r}return t(n,e),n}(hr),qr=function(e){function n(t,n){var r=e.call(this,t,n)||this,i=new XMLSerializer,a=s(t,n);return n.setAttribute("width",a.width+"px"),n.setAttribute("height",a.height+"px"),r.svg="data:image/svg+xml,"+encodeURIComponent(i.serializeToString(n)),r.intrinsicWidth=n.width.baseVal.value,r.intrinsicHeight=n.height.baseVal.value,r.context.cache.addImage(r.svg),r}return t(n,e),n}(hr),Wr=function(e){function n(t,n){var r=e.call(this,t,n)||this;return r.value=n.value,r}return t(n,e),n}(hr),Kr=function(e){function n(t,n){var r=e.call(this,t,n)||this;return r.start=n.start,r.reversed="boolean"==typeof n.reversed&&!0===n.reversed,r}return t(n,e),n}(hr),Yr=[{type:15,flags:0,unit:"px",number:3}],Xr=[{type:16,flags:0,number:50}],Jr=function(e){return e.width>e.height?new o(e.left+(e.width-e.height)/2,e.top,e.height,e.height):e.width<e.height?new o(e.left,e.top+(e.height-e.width)/2,e.width,e.width):e},Zr=function(e){var t=e.type===ni?new Array(e.value.length+1).join("•"):e.value;return 0===t.length?e.placeholder||"":t},ei="checkbox",ti="radio",ni="password",ri=function(e){function n(t,n){var r=e.call(this,t,n)||this;switch(r.type=n.type.toLowerCase(),r.checked=n.checked,r.value=Zr(n),r.type!==ei&&r.type!==ti||(r.styles.backgroundColor=3739148031,r.styles.borderTopColor=r.styles.borderRightColor=r.styles.borderBottomColor=r.styles.borderLeftColor=2779096575,r.styles.borderTopWidth=r.styles.borderRightWidth=r.styles.borderBottomWidth=r.styles.borderLeftWidth=1,r.styles.borderTopStyle=r.styles.borderRightStyle=r.styles.borderBottomStyle=r.styles.borderLeftStyle=1,r.styles.backgroundClip=[0],r.styles.backgroundOrigin=[0],r.bounds=Jr(r.bounds)),r.type){case ei:r.styles.borderTopRightRadius=r.styles.borderTopLeftRadius=r.styles.borderBottomRightRadius=r.styles.borderBottomLeftRadius=Yr;break;case ti:r.styles.borderTopRightRadius=r.styles.borderTopLeftRadius=r.styles.borderBottomRightRadius=r.styles.borderBottomLeftRadius=Xr}return r}return t(n,e),n}(hr),ii=function(e){function n(t,n){var r=e.call(this,t,n)||this,i=n.options[n.selectedIndex||0];return r.value=i&&i.text||"",r}return t(n,e),n}(hr),ai=function(e){function n(t,n){var r=e.call(this,t,n)||this;return r.value=n.value,r}return t(n,e),n}(hr),oi=function(e){function n(t,n){var r=e.call(this,t,n)||this;r.src=n.src,r.width=parseInt(n.width,10)||0,r.height=parseInt(n.height,10)||0,r.backgroundColor=r.styles.backgroundColor;try{if(n.contentWindow&&n.contentWindow.document&&n.contentWindow.document.documentElement){r.tree=ui(t,n.contentWindow.document.documentElement);var i=n.contentWindow.document.documentElement?pt(t,getComputedStyle(n.contentWindow.document.documentElement).backgroundColor):At.TRANSPARENT,a=n.contentWindow.document.body?pt(t,getComputedStyle(n.contentWindow.document.body).backgroundColor):At.TRANSPARENT;r.backgroundColor=ot(i)?ot(a)?r.styles.backgroundColor:a:i}}catch(e){}return r}return t(n,e),n}(hr),si=["OL","UL","MENU"],li=function(e,t,n,r){for(var i=t.firstChild,a=void 0;i;i=a)if(a=i.nextSibling,fi(i)&&i.data.trim().length>0)n.textNodes.push(new jr(e,i,n.styles));else if(pi(i))if(Ti(i)&&i.assignedNodes)i.assignedNodes().forEach(function(t){return li(e,t,n,r)});else{var o=ci(e,i);o.styles.isVisible()&&(hi(i,o,r)?o.flags|=4:di(o.styles)&&(o.flags|=2),-1!==si.indexOf(i.tagName)&&(o.flags|=8),n.elements.push(o),i.slot,i.shadowRoot?li(e,i.shadowRoot,o,r):Bi(i)||bi(i)||Ei(i)||li(e,i,o,r))}},ci=function(e,t){return Ci(t)?new Gr(e,t):xi(t)?new $r(e,t):bi(t)?new qr(e,t):mi(t)?new Wr(e,t):vi(t)?new Kr(e,t):yi(t)?new ri(e,t):Ei(t)?new ii(e,t):Bi(t)?new ai(e,t):Si(t)?new oi(e,t):new hr(e,t)},ui=function(e,t){var n=ci(e,t);return n.flags|=4,li(e,t,n,n),n},hi=function(e,t,n){return t.styles.isPositionedWithZIndex()||t.styles.opacity<1||t.styles.isTransformed()||wi(e)&&n.styles.isTransparent()},di=function(e){return e.isPositioned()||e.isFloating()},fi=function(e){return e.nodeType===Node.TEXT_NODE},pi=function(e){return e.nodeType===Node.ELEMENT_NODE},Ai=function(e){return pi(e)&&void 0!==e.style&&!gi(e)},gi=function(e){return"object"==typeof e.className},mi=function(e){return"LI"===e.tagName},vi=function(e){return"OL"===e.tagName},yi=function(e){return"INPUT"===e.tagName},bi=function(e){return"svg"===e.tagName},wi=function(e){return"BODY"===e.tagName},xi=function(e){return"CANVAS"===e.tagName},_i=function(e){return"VIDEO"===e.tagName},Ci=function(e){return"IMG"===e.tagName},Si=function(e){return"IFRAME"===e.tagName},ki=function(e){return"STYLE"===e.tagName},Bi=function(e){return"TEXTAREA"===e.tagName},Ei=function(e){return"SELECT"===e.tagName},Ti=function(e){return"SLOT"===e.tagName},Ii=function(e){return e.tagName.indexOf("-")>0},Mi=function(){function e(){this.counters={}}return e.prototype.getCounterValue=function(e){var t=this.counters[e];return t&&t.length?t[t.length-1]:1},e.prototype.getCounterValues=function(e){var t=this.counters[e];return t||[]},e.prototype.pop=function(e){var t=this;e.forEach(function(e){return t.counters[e].pop()})},e.prototype.parse=function(e){var t=this,n=e.counterIncrement,r=e.counterReset,i=!0;null!==n&&n.forEach(function(e){var n=t.counters[e.counter];n&&0!==e.increment&&(i=!1,n.length||n.push(1),n[Math.max(0,n.length-1)]+=e.increment)});var a=[];return i&&r.forEach(function(e){var n=t.counters[e.counter];a.push(e.counter),n||(n=t.counters[e.counter]=[]),n.push(e.reset)}),a},e}(),Fi={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},Di={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},Pi={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},Oi={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},Li=function(e,t,n,r,i,a){return e<t||e>n?ji(e,i,a.length>0):r.integers.reduce(function(t,n,i){for(;e>=n;)e-=n,t+=r.values[i];return t},"")+a},Ri=function(e,t,n,r){var i="";do{n||e--,i=r(e)+i,e/=t}while(e*t>=t);return i},Ni=function(e,t,n,r,i){var a=n-t+1;return(e<0?"-":"")+(Ri(Math.abs(e),a,r,function(e){return c(Math.floor(e%a)+t)})+i)},Ui=function(e,t,n){void 0===n&&(n=". ");var r=t.length;return Ri(Math.abs(e),r,!1,function(e){return t[Math.floor(e%r)]})+n},Hi=function(e,t,n,r,i,a){if(e<-9999||e>9999)return ji(e,4,i.length>0);var o=Math.abs(e),s=i;if(0===o)return t[0]+s;for(var l=0;o>0&&l<=4;l++){var c=o%10;0===c&&Kn(a,1)&&""!==s?s=t[c]+s:c>1||1===c&&0===l||1===c&&1===l&&Kn(a,2)||1===c&&1===l&&Kn(a,4)&&e>100||1===c&&l>1&&Kn(a,8)?s=t[c]+(l>0?n[l-1]:"")+s:1===c&&l>0&&(s=n[l-1]+s),o=Math.floor(o/10)}return(e<0?r:"")+s},ji=function(e,t,n){var r=n?". ":"",i=n?"、":"",a=n?", ":"",o=n?" ":"";switch(t){case 0:return"•"+o;case 1:return"◦"+o;case 2:return"◾"+o;case 5:var s=Ni(e,48,57,!0,r);return s.length<4?"0"+s:s;case 4:return Ui(e,"〇一二三四五六七八九",i);case 6:return Li(e,1,3999,Fi,3,r).toLowerCase();case 7:return Li(e,1,3999,Fi,3,r);case 8:return Ni(e,945,969,!1,r);case 9:return Ni(e,97,122,!1,r);case 10:return Ni(e,65,90,!1,r);case 11:return Ni(e,1632,1641,!0,r);case 12:case 49:return Li(e,1,9999,Di,3,r);case 35:return Li(e,1,9999,Di,3,r).toLowerCase();case 13:return Ni(e,2534,2543,!0,r);case 14:case 30:return Ni(e,6112,6121,!0,r);case 15:return Ui(e,"子丑寅卯辰巳午未申酉戌亥",i);case 16:return Ui(e,"甲乙丙丁戊己庚辛壬癸",i);case 17:case 48:return Hi(e,"零一二三四五六七八九","十百千萬","負",i,14);case 47:return Hi(e,"零壹貳參肆伍陸柒捌玖","拾佰仟萬","負",i,15);case 42:return Hi(e,"零一二三四五六七八九","十百千萬","负",i,14);case 41:return Hi(e,"零壹贰叁肆伍陆柒捌玖","拾佰仟萬","负",i,15);case 26:return Hi(e,"〇一二三四五六七八九","十百千万","マイナス",i,0);case 25:return Hi(e,"零壱弐参四伍六七八九","拾百千万","マイナス",i,7);case 31:return Hi(e,"영일이삼사오육칠팔구","십백천만","마이너스",a,7);case 33:return Hi(e,"零一二三四五六七八九","十百千萬","마이너스",a,0);case 32:return Hi(e,"零壹貳參四五六七八九","拾百千","마이너스",a,7);case 18:return Ni(e,2406,2415,!0,r);case 20:return Li(e,1,19999,Oi,3,r);case 21:return Ni(e,2790,2799,!0,r);case 22:return Ni(e,2662,2671,!0,r);case 22:return Li(e,1,10999,Pi,3,r);case 23:return Ui(e,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return Ui(e,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return Ni(e,3302,3311,!0,r);case 28:return Ui(e,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",i);case 29:return Ui(e,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",i);case 34:return Ni(e,3792,3801,!0,r);case 37:return Ni(e,6160,6169,!0,r);case 38:return Ni(e,4160,4169,!0,r);case 39:return Ni(e,2918,2927,!0,r);case 40:return Ni(e,1776,1785,!0,r);case 43:return Ni(e,3046,3055,!0,r);case 44:return Ni(e,3174,3183,!0,r);case 45:return Ni(e,3664,3673,!0,r);case 46:return Ni(e,3872,3881,!0,r);case 3:default:return Ni(e,48,57,!0,r)}},Qi=function(){function e(e,t,n){if(this.context=e,this.options=n,this.scrolledElements=[],this.referenceElement=t,this.counters=new Mi,this.quoteDepth=0,!t.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(t.ownerDocument.documentElement,!1)}return e.prototype.toIFrame=function(e,t){var n=this,a=Vi(e,t);if(!a.contentWindow)return Promise.reject("Unable to find iframe window");var o=e.defaultView.pageXOffset,s=e.defaultView.pageYOffset,l=a.contentWindow,c=l.document,u=qi(a).then(function(){return r(n,void 0,void 0,function(){var e,n;return i(this,function(r){switch(r.label){case 0:return this.scrolledElements.forEach(Ji),l&&(l.scrollTo(t.left,t.top),!/(iPad|iPhone|iPod)/g.test(navigator.userAgent)||l.scrollY===t.top&&l.scrollX===t.left||(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(l.scrollX-t.left,l.scrollY-t.top,0,0))),e=this.options.onclone,void 0===(n=this.clonedReferenceElement)?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:c.fonts&&c.fonts.ready?[4,c.fonts.ready]:[3,2];case 1:r.sent(),r.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,$i(c)]:[3,4];case 3:r.sent(),r.label=4;case 4:return"function"==typeof e?[2,Promise.resolve().then(function(){return e(c,n)}).then(function(){return a})]:[2,a]}})})});return c.open(),c.write(Yi(document.doctype)+"<html></html>"),Xi(this.referenceElement.ownerDocument,o,s),c.replaceChild(c.adoptNode(this.documentElement),c.documentElement),c.close(),u},e.prototype.createElementClone=function(e){if(ur(e,2),xi(e))return this.createCanvasClone(e);if(_i(e))return this.createVideoClone(e);if(ki(e))return this.createStyleClone(e);var t=e.cloneNode(!1);return Ci(t)&&(Ci(e)&&e.currentSrc&&e.currentSrc!==e.src&&(t.src=e.currentSrc,t.srcset=""),"lazy"===t.loading&&(t.loading="eager")),Ii(t)?this.createCustomElementClone(t):t},e.prototype.createCustomElementClone=function(e){var t=document.createElement("html2canvascustomelement");return Ki(e.style,t),t},e.prototype.createStyleClone=function(e){try{var t=e.sheet;if(t&&t.cssRules){var n=[].slice.call(t.cssRules,0).reduce(function(e,t){return t&&"string"==typeof t.cssText?e+t.cssText:e},""),r=e.cloneNode(!1);return r.textContent=n,r}}catch(e){if(this.context.logger.error("Unable to access cssRules property",e),"SecurityError"!==e.name)throw e}return e.cloneNode(!1)},e.prototype.createCanvasClone=function(e){var t;if(this.options.inlineImages&&e.ownerDocument){var n=e.ownerDocument.createElement("img");try{return n.src=e.toDataURL(),n}catch(t){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",e)}}var r=e.cloneNode(!1);try{r.width=e.width,r.height=e.height;var i=e.getContext("2d"),a=r.getContext("2d");if(a)if(!this.options.allowTaint&&i)a.putImageData(i.getImageData(0,0,e.width,e.height),0,0);else{var o=null!==(t=e.getContext("webgl2"))&&void 0!==t?t:e.getContext("webgl");if(o){var s=o.getContextAttributes();!1===(null===s||void 0===s?void 0:s.preserveDrawingBuffer)&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",e)}a.drawImage(e,0,0)}return r}catch(t){this.context.logger.info("Unable to clone canvas as it is tainted",e)}return r},e.prototype.createVideoClone=function(e){var t=e.ownerDocument.createElement("canvas");t.width=e.offsetWidth,t.height=e.offsetHeight;var n=t.getContext("2d");try{return n&&(n.drawImage(e,0,0,t.width,t.height),this.options.allowTaint||n.getImageData(0,0,t.width,t.height)),t}catch(t){this.context.logger.info("Unable to clone video as it is tainted",e)}var r=e.ownerDocument.createElement("canvas");return r.width=e.offsetWidth,r.height=e.offsetHeight,r},e.prototype.appendChildNode=function(e,t,n){pi(t)&&("SCRIPT"===t.tagName||t.hasAttribute("data-html2canvas-ignore")||"function"==typeof this.options.ignoreElements&&this.options.ignoreElements(t))||this.options.copyStyles&&pi(t)&&ki(t)||e.appendChild(this.cloneNode(t,n))},e.prototype.cloneChildNodes=function(e,t,n){for(var r=this,i=e.shadowRoot?e.shadowRoot.firstChild:e.firstChild;i;i=i.nextSibling)if(pi(i)&&Ti(i)&&"function"==typeof i.assignedNodes){var a=i.assignedNodes();a.length&&a.forEach(function(e){return r.appendChildNode(t,e,n)})}else this.appendChildNode(t,i,n)},e.prototype.cloneNode=function(e,t){if(fi(e))return document.createTextNode(e.data);if(!e.ownerDocument)return e.cloneNode(!1);var n=e.ownerDocument.defaultView;if(n&&pi(e)&&(Ai(e)||gi(e))){var r=this.createElementClone(e);r.style.transitionProperty="none";var i=n.getComputedStyle(e),a=n.getComputedStyle(e,":before"),o=n.getComputedStyle(e,":after");this.referenceElement===e&&Ai(r)&&(this.clonedReferenceElement=r),wi(r)&&ta(r);var s=this.counters.parse(new lr(this.context,i)),l=this.resolvePseudoContent(e,r,a,br.BEFORE);Ii(e)&&(t=!0),_i(e)||this.cloneChildNodes(e,r,t),l&&r.insertBefore(l,r.firstChild);var c=this.resolvePseudoContent(e,r,o,br.AFTER);return c&&r.appendChild(c),this.counters.pop(s),(i&&(this.options.copyStyles||gi(e))&&!Si(e)||t)&&Ki(i,r),0===e.scrollTop&&0===e.scrollLeft||this.scrolledElements.push([r,e.scrollLeft,e.scrollTop]),(Bi(e)||Ei(e))&&(Bi(r)||Ei(r))&&(r.value=e.value),r}return e.cloneNode(!1)},e.prototype.resolvePseudoContent=function(e,t,n,r){var i=this;if(n){var a=n.content,o=t.ownerDocument;if(o&&a&&"none"!==a&&"-moz-alt-content"!==a&&"none"!==n.display){this.counters.parse(new lr(this.context,n));var s=new sr(this.context,n),l=o.createElement("html2canvaspseudoelement");Ki(n,l),s.content.forEach(function(t){if(0===t.type)l.appendChild(o.createTextNode(t.value));else if(22===t.type){var n=o.createElement("img");n.src=t.value,n.style.opacity="1",l.appendChild(n)}else if(18===t.type){if("attr"===t.name){var r=t.values.filter(He);r.length&&l.appendChild(o.createTextNode(e.getAttribute(r[0].value)||""))}else if("counter"===t.name){var a=t.values.filter(Ve),c=a[0],u=a[1];if(c&&He(c)){var h=i.counters.getCounterValue(c.value),d=u&&He(u)?An.parse(i.context,u.value):3;l.appendChild(o.createTextNode(ji(h,d,!1)))}}else if("counters"===t.name){var f=t.values.filter(Ve),p=(c=f[0],f[1]);u=f[2];if(c&&He(c)){var A=i.counters.getCounterValues(c.value),g=u&&He(u)?An.parse(i.context,u.value):3,m=p&&0===p.type?p.value:"",v=A.map(function(e){return ji(e,g,!1)}).join(m);l.appendChild(o.createTextNode(v))}}}else if(20===t.type)switch(t.value){case"open-quote":l.appendChild(o.createTextNode(tr(s.quotes,i.quoteDepth++,!0)));break;case"close-quote":l.appendChild(o.createTextNode(tr(s.quotes,--i.quoteDepth,!1)));break;default:l.appendChild(o.createTextNode(t.value))}}),l.className=Zi+" "+ea;var c=r===br.BEFORE?" "+Zi:" "+ea;return gi(t)?t.className.baseValue+=c:t.className+=c,l}}},e.destroy=function(e){return!!e.parentNode&&(e.parentNode.removeChild(e),!0)},e}();!function(e){e[e.BEFORE=0]="BEFORE",e[e.AFTER=1]="AFTER"}(br||(br={}));var zi,Vi=function(e,t){var n=e.createElement("iframe");return n.className="html2canvas-container",n.style.visibility="hidden",n.style.position="fixed",n.style.left="-10000px",n.style.top="0px",n.style.border="0",n.width=t.width.toString(),n.height=t.height.toString(),n.scrolling="no",n.setAttribute("data-html2canvas-ignore","true"),e.body.appendChild(n),n},Gi=function(e){return new Promise(function(t){e.complete?t():e.src?(e.onload=t,e.onerror=t):t()})},$i=function(e){return Promise.all([].slice.call(e.images,0).map(Gi))},qi=function(e){return new Promise(function(t,n){var r=e.contentWindow;if(!r)return n("No window assigned for iframe");var i=r.document;r.onload=e.onload=function(){r.onload=e.onload=null;var n=setInterval(function(){i.body.childNodes.length>0&&"complete"===i.readyState&&(clearInterval(n),t(e))},50)}})},Wi=["all","d","content"],Ki=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e.item(n);-1===Wi.indexOf(r)&&t.style.setProperty(r,e.getPropertyValue(r))}return t},Yi=function(e){var t="";return e&&(t+="<!DOCTYPE ",e.name&&(t+=e.name),e.internalSubset&&(t+=e.internalSubset),e.publicId&&(t+='"'+e.publicId+'"'),e.systemId&&(t+='"'+e.systemId+'"'),t+=">"),t},Xi=function(e,t,n){e&&e.defaultView&&(t!==e.defaultView.pageXOffset||n!==e.defaultView.pageYOffset)&&e.defaultView.scrollTo(t,n)},Ji=function(e){var t=e[0],n=e[1],r=e[2];t.scrollLeft=n,t.scrollTop=r},Zi="___html2canvas___pseudoelement_before",ea="___html2canvas___pseudoelement_after",ta=function(e){na(e,"."+Zi+':before{\n content: "" !important;\n display: none !important;\n}\n .'+ea+':after{\n content: "" !important;\n display: none !important;\n}')},na=function(e,t){var n=e.ownerDocument;if(n){var r=n.createElement("style");r.textContent=t,e.appendChild(r)}},ra=function(){function e(){}return e.getOrigin=function(t){var n=e._link;return n?(n.href=t,n.href=n.href,n.protocol+n.hostname+n.port):"about:blank"},e.isSameOrigin=function(t){return e.getOrigin(t)===e._origin},e.setContext=function(t){e._link=t.document.createElement("a"),e._origin=e.getOrigin(t.location.href)},e._origin="about:blank",e}(),ia=function(){function e(e,t){this.context=e,this._options=t,this._cache={}}return e.prototype.addImage=function(e){var t=Promise.resolve();return this.has(e)?t:ha(e)||la(e)?((this._cache[e]=this.loadImage(e)).catch(function(){}),t):t},e.prototype.match=function(e){return this._cache[e]},e.prototype.loadImage=function(e){return r(this,void 0,void 0,function(){var t,n,r,a,o=this;return i(this,function(i){switch(i.label){case 0:return t=ra.isSameOrigin(e),n=!ca(e)&&!0===this._options.useCORS&&Fr.SUPPORT_CORS_IMAGES&&!t,r=!ca(e)&&!t&&!ha(e)&&"string"==typeof this._options.proxy&&Fr.SUPPORT_CORS_XHR&&!n,t||!1!==this._options.allowTaint||ca(e)||ha(e)||r||n?(a=e,r?[4,this.proxy(a)]:[3,2]):[2];case 1:a=i.sent(),i.label=2;case 2:return this.context.logger.debug("Added image "+e.substring(0,256)),[4,new Promise(function(e,t){var r=new Image;r.onload=function(){return e(r)},r.onerror=t,(ua(a)||n)&&(r.crossOrigin="anonymous"),r.src=a,!0===r.complete&&setTimeout(function(){return e(r)},500),o._options.imageTimeout>0&&setTimeout(function(){return t("Timed out ("+o._options.imageTimeout+"ms) loading image")},o._options.imageTimeout)})];case 3:return[2,i.sent()]}})})},e.prototype.has=function(e){return void 0!==this._cache[e]},e.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},e.prototype.proxy=function(e){var t=this,n=this._options.proxy;if(!n)throw new Error("No proxy defined");var r=e.substring(0,256);return new Promise(function(i,a){var o=Fr.SUPPORT_RESPONSE_TYPE?"blob":"text",s=new XMLHttpRequest;s.onload=function(){if(200===s.status)if("text"===o)i(s.response);else{var e=new FileReader;e.addEventListener("load",function(){return i(e.result)},!1),e.addEventListener("error",function(e){return a(e)},!1),e.readAsDataURL(s.response)}else a("Failed to proxy resource "+r+" with status code "+s.status)},s.onerror=a;var l=n.indexOf("?")>-1?"&":"?";if(s.open("GET",""+n+l+"url="+encodeURIComponent(e)+"&responseType="+o),"text"!==o&&s instanceof XMLHttpRequest&&(s.responseType=o),t._options.imageTimeout){var c=t._options.imageTimeout;s.timeout=c,s.ontimeout=function(){return a("Timed out ("+c+"ms) proxying "+r)}}s.send()})},e}(),aa=/^data:image\/svg\+xml/i,oa=/^data:image\/.*;base64,/i,sa=/^data:image\/.*/i,la=function(e){return Fr.SUPPORT_SVG_DRAWING||!da(e)},ca=function(e){return sa.test(e)},ua=function(e){return oa.test(e)},ha=function(e){return"blob"===e.substr(0,4)},da=function(e){return"svg"===e.substr(-3).toLowerCase()||aa.test(e)},fa=function(){function e(e,t){this.type=0,this.x=e,this.y=t}return e.prototype.add=function(t,n){return new e(this.x+t,this.y+n)},e}(),pa=function(e,t,n){return new fa(e.x+(t.x-e.x)*n,e.y+(t.y-e.y)*n)},Aa=function(){function e(e,t,n,r){this.type=1,this.start=e,this.startControl=t,this.endControl=n,this.end=r}return e.prototype.subdivide=function(t,n){var r=pa(this.start,this.startControl,t),i=pa(this.startControl,this.endControl,t),a=pa(this.endControl,this.end,t),o=pa(r,i,t),s=pa(i,a,t),l=pa(o,s,t);return n?new e(this.start,r,o,l):new e(l,s,a,this.end)},e.prototype.add=function(t,n){return new e(this.start.add(t,n),this.startControl.add(t,n),this.endControl.add(t,n),this.end.add(t,n))},e.prototype.reverse=function(){return new e(this.end,this.endControl,this.startControl,this.start)},e}(),ga=function(e){return 1===e.type},ma=function(){return function(e){var t=e.styles,n=e.bounds,r=Ze(t.borderTopLeftRadius,n.width,n.height),i=r[0],a=r[1],o=Ze(t.borderTopRightRadius,n.width,n.height),s=o[0],l=o[1],c=Ze(t.borderBottomRightRadius,n.width,n.height),u=c[0],h=c[1],d=Ze(t.borderBottomLeftRadius,n.width,n.height),f=d[0],p=d[1],A=[];A.push((i+s)/n.width),A.push((f+u)/n.width),A.push((a+p)/n.height),A.push((l+h)/n.height);var g=Math.max.apply(Math,A);g>1&&(i/=g,a/=g,s/=g,l/=g,u/=g,h/=g,f/=g,p/=g);var m=n.width-s,v=n.height-h,y=n.width-u,b=n.height-p,w=t.borderTopWidth,x=t.borderRightWidth,_=t.borderBottomWidth,C=t.borderLeftWidth,S=et(t.paddingTop,e.bounds.width),k=et(t.paddingRight,e.bounds.width),B=et(t.paddingBottom,e.bounds.width),E=et(t.paddingLeft,e.bounds.width);this.topLeftBorderDoubleOuterBox=i>0||a>0?va(n.left+C/3,n.top+w/3,i-C/3,a-w/3,zi.TOP_LEFT):new fa(n.left+C/3,n.top+w/3),this.topRightBorderDoubleOuterBox=i>0||a>0?va(n.left+m,n.top+w/3,s-x/3,l-w/3,zi.TOP_RIGHT):new fa(n.left+n.width-x/3,n.top+w/3),this.bottomRightBorderDoubleOuterBox=u>0||h>0?va(n.left+y,n.top+v,u-x/3,h-_/3,zi.BOTTOM_RIGHT):new fa(n.left+n.width-x/3,n.top+n.height-_/3),this.bottomLeftBorderDoubleOuterBox=f>0||p>0?va(n.left+C/3,n.top+b,f-C/3,p-_/3,zi.BOTTOM_LEFT):new fa(n.left+C/3,n.top+n.height-_/3),this.topLeftBorderDoubleInnerBox=i>0||a>0?va(n.left+2*C/3,n.top+2*w/3,i-2*C/3,a-2*w/3,zi.TOP_LEFT):new fa(n.left+2*C/3,n.top+2*w/3),this.topRightBorderDoubleInnerBox=i>0||a>0?va(n.left+m,n.top+2*w/3,s-2*x/3,l-2*w/3,zi.TOP_RIGHT):new fa(n.left+n.width-2*x/3,n.top+2*w/3),this.bottomRightBorderDoubleInnerBox=u>0||h>0?va(n.left+y,n.top+v,u-2*x/3,h-2*_/3,zi.BOTTOM_RIGHT):new fa(n.left+n.width-2*x/3,n.top+n.height-2*_/3),this.bottomLeftBorderDoubleInnerBox=f>0||p>0?va(n.left+2*C/3,n.top+b,f-2*C/3,p-2*_/3,zi.BOTTOM_LEFT):new fa(n.left+2*C/3,n.top+n.height-2*_/3),this.topLeftBorderStroke=i>0||a>0?va(n.left+C/2,n.top+w/2,i-C/2,a-w/2,zi.TOP_LEFT):new fa(n.left+C/2,n.top+w/2),this.topRightBorderStroke=i>0||a>0?va(n.left+m,n.top+w/2,s-x/2,l-w/2,zi.TOP_RIGHT):new fa(n.left+n.width-x/2,n.top+w/2),this.bottomRightBorderStroke=u>0||h>0?va(n.left+y,n.top+v,u-x/2,h-_/2,zi.BOTTOM_RIGHT):new fa(n.left+n.width-x/2,n.top+n.height-_/2),this.bottomLeftBorderStroke=f>0||p>0?va(n.left+C/2,n.top+b,f-C/2,p-_/2,zi.BOTTOM_LEFT):new fa(n.left+C/2,n.top+n.height-_/2),this.topLeftBorderBox=i>0||a>0?va(n.left,n.top,i,a,zi.TOP_LEFT):new fa(n.left,n.top),this.topRightBorderBox=s>0||l>0?va(n.left+m,n.top,s,l,zi.TOP_RIGHT):new fa(n.left+n.width,n.top),this.bottomRightBorderBox=u>0||h>0?va(n.left+y,n.top+v,u,h,zi.BOTTOM_RIGHT):new fa(n.left+n.width,n.top+n.height),this.bottomLeftBorderBox=f>0||p>0?va(n.left,n.top+b,f,p,zi.BOTTOM_LEFT):new fa(n.left,n.top+n.height),this.topLeftPaddingBox=i>0||a>0?va(n.left+C,n.top+w,Math.max(0,i-C),Math.max(0,a-w),zi.TOP_LEFT):new fa(n.left+C,n.top+w),this.topRightPaddingBox=s>0||l>0?va(n.left+Math.min(m,n.width-x),n.top+w,m>n.width+x?0:Math.max(0,s-x),Math.max(0,l-w),zi.TOP_RIGHT):new fa(n.left+n.width-x,n.top+w),this.bottomRightPaddingBox=u>0||h>0?va(n.left+Math.min(y,n.width-C),n.top+Math.min(v,n.height-_),Math.max(0,u-x),Math.max(0,h-_),zi.BOTTOM_RIGHT):new fa(n.left+n.width-x,n.top+n.height-_),this.bottomLeftPaddingBox=f>0||p>0?va(n.left+C,n.top+Math.min(b,n.height-_),Math.max(0,f-C),Math.max(0,p-_),zi.BOTTOM_LEFT):new fa(n.left+C,n.top+n.height-_),this.topLeftContentBox=i>0||a>0?va(n.left+C+E,n.top+w+S,Math.max(0,i-(C+E)),Math.max(0,a-(w+S)),zi.TOP_LEFT):new fa(n.left+C+E,n.top+w+S),this.topRightContentBox=s>0||l>0?va(n.left+Math.min(m,n.width+C+E),n.top+w+S,m>n.width+C+E?0:s-C+E,l-(w+S),zi.TOP_RIGHT):new fa(n.left+n.width-(x+k),n.top+w+S),this.bottomRightContentBox=u>0||h>0?va(n.left+Math.min(y,n.width-(C+E)),n.top+Math.min(v,n.height+w+S),Math.max(0,u-(x+k)),h-(_+B),zi.BOTTOM_RIGHT):new fa(n.left+n.width-(x+k),n.top+n.height-(_+B)),this.bottomLeftContentBox=f>0||p>0?va(n.left+C+E,n.top+b,Math.max(0,f-(C+E)),p-(_+B),zi.BOTTOM_LEFT):new fa(n.left+C+E,n.top+n.height-(_+B))}}();!function(e){e[e.TOP_LEFT=0]="TOP_LEFT",e[e.TOP_RIGHT=1]="TOP_RIGHT",e[e.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",e[e.BOTTOM_LEFT=3]="BOTTOM_LEFT"}(zi||(zi={}));var va=function(e,t,n,r,i){var a=(Math.sqrt(2)-1)/3*4,o=n*a,s=r*a,l=e+n,c=t+r;switch(i){case zi.TOP_LEFT:return new Aa(new fa(e,c),new fa(e,c-s),new fa(l-o,t),new fa(l,t));case zi.TOP_RIGHT:return new Aa(new fa(e,t),new fa(e+o,t),new fa(l,c-s),new fa(l,c));case zi.BOTTOM_RIGHT:return new Aa(new fa(l,t),new fa(l,t+s),new fa(e+o,c),new fa(e,c));case zi.BOTTOM_LEFT:default:return new Aa(new fa(l,c),new fa(l-o,c),new fa(e,t+s),new fa(e,t))}},ya=function(e){return[e.topLeftBorderBox,e.topRightBorderBox,e.bottomRightBorderBox,e.bottomLeftBorderBox]},ba=function(e){return[e.topLeftPaddingBox,e.topRightPaddingBox,e.bottomRightPaddingBox,e.bottomLeftPaddingBox]},wa=function(){return function(e,t,n){this.offsetX=e,this.offsetY=t,this.matrix=n,this.type=0,this.target=6}}(),xa=function(){return function(e,t){this.path=e,this.target=t,this.type=1}}(),_a=function(){return function(e){this.opacity=e,this.type=2,this.target=6}}(),Ca=function(e){return 1===e.type},Sa=function(e,t){return e.length===t.length&&e.some(function(e,n){return e===t[n]})},ka=function(){return function(e){this.element=e,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}}(),Ba=function(){function e(e,t){if(this.container=e,this.parent=t,this.effects=[],this.curves=new ma(this.container),this.container.styles.opacity<1&&this.effects.push(new _a(this.container.styles.opacity)),null!==this.container.styles.transform){var n=this.container.bounds.left+this.container.styles.transformOrigin[0].number,r=this.container.bounds.top+this.container.styles.transformOrigin[1].number,i=this.container.styles.transform;this.effects.push(new wa(n,r,i))}if(0!==this.container.styles.overflowX){var a=ya(this.curves),o=ba(this.curves);Sa(a,o)?this.effects.push(new xa(a,6)):(this.effects.push(new xa(a,2)),this.effects.push(new xa(o,4)))}}return e.prototype.getEffects=function(e){for(var t=-1===[2,3].indexOf(this.container.styles.position),n=this.parent,r=this.effects.slice(0);n;){var i=n.effects.filter(function(e){return!Ca(e)});if(t||0!==n.container.styles.position||!n.parent){if(r.unshift.apply(r,i),t=-1===[2,3].indexOf(n.container.styles.position),0!==n.container.styles.overflowX){var a=ya(n.curves),o=ba(n.curves);Sa(a,o)||r.unshift(new xa(o,6))}}else r.unshift.apply(r,i);n=n.parent}return r.filter(function(t){return Kn(t.target,e)})},e}(),Ea=function(e,t,n,r){e.container.elements.forEach(function(i){var a=Kn(i.flags,4),o=Kn(i.flags,2),s=new Ba(i,e);Kn(i.styles.display,2048)&&r.push(s);var l=Kn(i.flags,8)?[]:r;if(a||o){var c=a||i.styles.isPositioned()?n:t,u=new ka(s);if(i.styles.isPositioned()||i.styles.opacity<1||i.styles.isTransformed()){var h=i.styles.zIndex.order;if(h<0){var d=0;c.negativeZIndex.some(function(e,t){return h>e.element.container.styles.zIndex.order?(d=t,!1):d>0}),c.negativeZIndex.splice(d,0,u)}else if(h>0){var f=0;c.positiveZIndex.some(function(e,t){return h>=e.element.container.styles.zIndex.order?(f=t+1,!1):f>0}),c.positiveZIndex.splice(f,0,u)}else c.zeroOrAutoZIndexOrTransformedOrOpacity.push(u)}else i.styles.isFloating()?c.nonPositionedFloats.push(u):c.nonPositionedInlineLevel.push(u);Ea(s,u,a?u:n,l)}else i.styles.isInlineLevel()?t.inlineLevel.push(s):t.nonInlineLevel.push(s),Ea(s,t,n,l);Kn(i.flags,8)&&Ta(i,l)})},Ta=function(e,t){for(var n=e instanceof Kr?e.start:1,r=e instanceof Kr&&e.reversed,i=0;i<t.length;i++){var a=t[i];a.container instanceof Wr&&"number"==typeof a.container.value&&0!==a.container.value&&(n=a.container.value),a.listValue=ji(n,a.container.styles.listStyleType,!0),n+=r?-1:1}},Ia=function(e,t){switch(t){case 0:return Fa(e.topLeftBorderBox,e.topLeftPaddingBox,e.topRightBorderBox,e.topRightPaddingBox);case 1:return Fa(e.topRightBorderBox,e.topRightPaddingBox,e.bottomRightBorderBox,e.bottomRightPaddingBox);case 2:return Fa(e.bottomRightBorderBox,e.bottomRightPaddingBox,e.bottomLeftBorderBox,e.bottomLeftPaddingBox);case 3:default:return Fa(e.bottomLeftBorderBox,e.bottomLeftPaddingBox,e.topLeftBorderBox,e.topLeftPaddingBox)}},Ma=function(e,t){var n=[];return ga(e)?n.push(e.subdivide(.5,!1)):n.push(e),ga(t)?n.push(t.subdivide(.5,!0)):n.push(t),n},Fa=function(e,t,n,r){var i=[];return ga(e)?i.push(e.subdivide(.5,!1)):i.push(e),ga(n)?i.push(n.subdivide(.5,!0)):i.push(n),ga(r)?i.push(r.subdivide(.5,!0).reverse()):i.push(r),ga(t)?i.push(t.subdivide(.5,!1).reverse()):i.push(t),i},Da=function(e){var t=e.bounds,n=e.styles;return t.add(n.borderLeftWidth,n.borderTopWidth,-(n.borderRightWidth+n.borderLeftWidth),-(n.borderTopWidth+n.borderBottomWidth))},Pa=function(e){var t=e.styles,n=e.bounds,r=et(t.paddingLeft,n.width),i=et(t.paddingRight,n.width),a=et(t.paddingTop,n.width),o=et(t.paddingBottom,n.width);return n.add(r+t.borderLeftWidth,a+t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth+r+i),-(t.borderTopWidth+t.borderBottomWidth+a+o))},Oa=function(e,t,n){var r,i,a=(r=Ua(e.styles.backgroundOrigin,t),i=e,0===r?i.bounds:2===r?Pa(i):Da(i)),o=function(e,t){return 0===e?t.bounds:2===e?Pa(t):Da(t)}(Ua(e.styles.backgroundClip,t),e),s=Na(Ua(e.styles.backgroundSize,t),n,a),l=s[0],c=s[1],u=Ze(Ua(e.styles.backgroundPosition,t),a.width-l,a.height-c);return[Ha(Ua(e.styles.backgroundRepeat,t),u,s,a,o),Math.round(a.left+u[0]),Math.round(a.top+u[1]),l,c]},La=function(e){return He(e)&&e.value===kt.AUTO},Ra=function(e){return"number"==typeof e},Na=function(e,t,n){var r=t[0],i=t[1],a=t[2],o=e[0],s=e[1];if(!o)return[0,0];if(We(o)&&s&&We(s))return[et(o,n.width),et(s,n.height)];var l=Ra(a);if(He(o)&&(o.value===kt.CONTAIN||o.value===kt.COVER))return Ra(a)?n.width/n.height<a!=(o.value===kt.COVER)?[n.width,n.width/a]:[n.height*a,n.height]:[n.width,n.height];var c=Ra(r),u=Ra(i),h=c||u;if(La(o)&&(!s||La(s)))return c&&u?[r,i]:l||h?h&&l?[c?r:i*a,u?i:r/a]:[c?r:n.width,u?i:n.height]:[n.width,n.height];if(l){var d=0,f=0;return We(o)?d=et(o,n.width):We(s)&&(f=et(s,n.height)),La(o)?d=f*a:s&&!La(s)||(f=d/a),[d,f]}var p=null,A=null;if(We(o)?p=et(o,n.width):s&&We(s)&&(A=et(s,n.height)),null===p||s&&!La(s)||(A=c&&u?p/r*i:n.height),null!==A&&La(o)&&(p=c&&u?A/i*r:n.width),null!==p&&null!==A)return[p,A];throw new Error("Unable to calculate background-size for element")},Ua=function(e,t){var n=e[t];return void 0===n?e[0]:n},Ha=function(e,t,n,r,i){var a=t[0],o=t[1],s=n[0],l=n[1];switch(e){case 2:return[new fa(Math.round(r.left),Math.round(r.top+o)),new fa(Math.round(r.left+r.width),Math.round(r.top+o)),new fa(Math.round(r.left+r.width),Math.round(l+r.top+o)),new fa(Math.round(r.left),Math.round(l+r.top+o))];case 3:return[new fa(Math.round(r.left+a),Math.round(r.top)),new fa(Math.round(r.left+a+s),Math.round(r.top)),new fa(Math.round(r.left+a+s),Math.round(r.height+r.top)),new fa(Math.round(r.left+a),Math.round(r.height+r.top))];case 1:return[new fa(Math.round(r.left+a),Math.round(r.top+o)),new fa(Math.round(r.left+a+s),Math.round(r.top+o)),new fa(Math.round(r.left+a+s),Math.round(r.top+o+l)),new fa(Math.round(r.left+a),Math.round(r.top+o+l))];default:return[new fa(Math.round(i.left),Math.round(i.top)),new fa(Math.round(i.left+i.width),Math.round(i.top)),new fa(Math.round(i.left+i.width),Math.round(i.height+i.top)),new fa(Math.round(i.left),Math.round(i.height+i.top))]}},ja=function(){function e(e){this._data={},this._document=e}return e.prototype.parseMetrics=function(e,t){var n=this._document.createElement("div"),r=this._document.createElement("img"),i=this._document.createElement("span"),a=this._document.body;n.style.visibility="hidden",n.style.fontFamily=e,n.style.fontSize=t,n.style.margin="0",n.style.padding="0",n.style.whiteSpace="nowrap",a.appendChild(n),r.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",r.width=1,r.height=1,r.style.margin="0",r.style.padding="0",r.style.verticalAlign="baseline",i.style.fontFamily=e,i.style.fontSize=t,i.style.margin="0",i.style.padding="0",i.appendChild(this._document.createTextNode("Hidden Text")),n.appendChild(i),n.appendChild(r);var o=r.offsetTop-i.offsetTop+2;n.removeChild(i),n.appendChild(this._document.createTextNode("Hidden Text")),n.style.lineHeight="normal",r.style.verticalAlign="super";var s=r.offsetTop-n.offsetTop+2;return a.removeChild(n),{baseline:o,middle:s}},e.prototype.getMetrics=function(e,t){var n=e+" "+t;return void 0===this._data[n]&&(this._data[n]=this.parseMetrics(e,t)),this._data[n]},e}(),Qa=function(){return function(e,t){this.context=e,this.options=t}}(),za=function(e){function n(t,n){var r=e.call(this,t,n)||this;return r._activeEffects=[],r.canvas=n.canvas?n.canvas:document.createElement("canvas"),r.ctx=r.canvas.getContext("2d"),n.canvas||(r.canvas.width=Math.floor(n.width*n.scale),r.canvas.height=Math.floor(n.height*n.scale),r.canvas.style.width=n.width+"px",r.canvas.style.height=n.height+"px"),r.fontMetrics=new ja(document),r.ctx.scale(r.options.scale,r.options.scale),r.ctx.translate(-n.x,-n.y),r.ctx.textBaseline="bottom",r._activeEffects=[],r.context.logger.debug("Canvas renderer initialized ("+n.width+"x"+n.height+") with scale "+n.scale),r}return t(n,e),n.prototype.applyEffects=function(e){for(var t=this;this._activeEffects.length;)this.popEffect();e.forEach(function(e){return t.applyEffect(e)})},n.prototype.applyEffect=function(e){this.ctx.save(),function(e){return 2===e.type}(e)&&(this.ctx.globalAlpha=e.opacity),function(e){return 0===e.type}(e)&&(this.ctx.translate(e.offsetX,e.offsetY),this.ctx.transform(e.matrix[0],e.matrix[1],e.matrix[2],e.matrix[3],e.matrix[4],e.matrix[5]),this.ctx.translate(-e.offsetX,-e.offsetY)),Ca(e)&&(this.path(e.path),this.ctx.clip()),this._activeEffects.push(e)},n.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},n.prototype.renderStack=function(e){return r(this,void 0,void 0,function(){return i(this,function(t){switch(t.label){case 0:return e.element.container.styles.isVisible()?[4,this.renderStackContent(e)]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}})})},n.prototype.renderNode=function(e){return r(this,void 0,void 0,function(){return i(this,function(t){switch(t.label){case 0:return Kn(e.container.flags,16),e.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(e)]:[3,3];case 1:return t.sent(),[4,this.renderNodeContent(e)];case 2:t.sent(),t.label=3;case 3:return[2]}})})},n.prototype.renderTextWithLetterSpacing=function(e,t,n){var r=this;0===t?this.ctx.fillText(e.text,e.bounds.left,e.bounds.top+n):Rr(e.text).reduce(function(t,i){return r.ctx.fillText(i,t,e.bounds.top+n),t+r.ctx.measureText(i).width},e.bounds.left)},n.prototype.createFontStyle=function(e){var t=e.fontVariant.filter(function(e){return"normal"===e||"small-caps"===e}).join(""),n=Wa(e.fontFamily).join(", "),r=Ne(e.fontSize)?""+e.fontSize.number+e.fontSize.unit:e.fontSize.number+"px";return[[e.fontStyle,t,e.fontWeight,r,n].join(" "),n,r]},n.prototype.renderTextNode=function(e,t){return r(this,void 0,void 0,function(){var n,r,a,o,s,l,c,u,h=this;return i(this,function(i){return n=this.createFontStyle(t),r=n[0],a=n[1],o=n[2],this.ctx.font=r,this.ctx.direction=1===t.direction?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",s=this.fontMetrics.getMetrics(a,o),l=s.baseline,c=s.middle,u=t.paintOrder,e.textBounds.forEach(function(e){u.forEach(function(n){switch(n){case 0:h.ctx.fillStyle=st(t.color),h.renderTextWithLetterSpacing(e,t.letterSpacing,l);var r=t.textShadow;r.length&&e.text.trim().length&&(r.slice(0).reverse().forEach(function(n){h.ctx.shadowColor=st(n.color),h.ctx.shadowOffsetX=n.offsetX.number*h.options.scale,h.ctx.shadowOffsetY=n.offsetY.number*h.options.scale,h.ctx.shadowBlur=n.blur.number,h.renderTextWithLetterSpacing(e,t.letterSpacing,l)}),h.ctx.shadowColor="",h.ctx.shadowOffsetX=0,h.ctx.shadowOffsetY=0,h.ctx.shadowBlur=0),t.textDecorationLine.length&&(h.ctx.fillStyle=st(t.textDecorationColor||t.color),t.textDecorationLine.forEach(function(t){switch(t){case 1:h.ctx.fillRect(e.bounds.left,Math.round(e.bounds.top+l),e.bounds.width,1);break;case 2:h.ctx.fillRect(e.bounds.left,Math.round(e.bounds.top),e.bounds.width,1);break;case 3:h.ctx.fillRect(e.bounds.left,Math.ceil(e.bounds.top+c),e.bounds.width,1)}}));break;case 1:t.webkitTextStrokeWidth&&e.text.trim().length&&(h.ctx.strokeStyle=st(t.webkitTextStrokeColor),h.ctx.lineWidth=t.webkitTextStrokeWidth,h.ctx.lineJoin=window.chrome?"miter":"round",h.ctx.strokeText(e.text,e.bounds.left,e.bounds.top+l)),h.ctx.strokeStyle="",h.ctx.lineWidth=0,h.ctx.lineJoin="miter"}})}),[2]})})},n.prototype.renderReplacedElement=function(e,t,n){if(n&&e.intrinsicWidth>0&&e.intrinsicHeight>0){var r=Pa(e),i=ba(t);this.path(i),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(n,0,0,e.intrinsicWidth,e.intrinsicHeight,r.left,r.top,r.width,r.height),this.ctx.restore()}},n.prototype.renderNodeContent=function(e){return r(this,void 0,void 0,function(){var t,r,a,s,l,c,u,h,d,f,p,A,g,m,v,y,b,w;return i(this,function(i){switch(i.label){case 0:this.applyEffects(e.getEffects(4)),t=e.container,r=e.curves,a=t.styles,s=0,l=t.textNodes,i.label=1;case 1:return s<l.length?(c=l[s],[4,this.renderTextNode(c,a)]):[3,4];case 2:i.sent(),i.label=3;case 3:return s++,[3,1];case 4:if(!(t instanceof Gr))return[3,8];i.label=5;case 5:return i.trys.push([5,7,,8]),[4,this.context.cache.match(t.src)];case 6:return v=i.sent(),this.renderReplacedElement(t,r,v),[3,8];case 7:return i.sent(),this.context.logger.error("Error loading image "+t.src),[3,8];case 8:if(t instanceof $r&&this.renderReplacedElement(t,r,t.canvas),!(t instanceof qr))return[3,12];i.label=9;case 9:return i.trys.push([9,11,,12]),[4,this.context.cache.match(t.svg)];case 10:return v=i.sent(),this.renderReplacedElement(t,r,v),[3,12];case 11:return i.sent(),this.context.logger.error("Error loading svg "+t.svg.substring(0,255)),[3,12];case 12:return t instanceof oi&&t.tree?[4,new n(this.context,{scale:this.options.scale,backgroundColor:t.backgroundColor,x:0,y:0,width:t.width,height:t.height}).render(t.tree)]:[3,14];case 13:u=i.sent(),t.width&&t.height&&this.ctx.drawImage(u,0,0,t.width,t.height,t.bounds.left,t.bounds.top,t.bounds.width,t.bounds.height),i.label=14;case 14:if(t instanceof ri&&(h=Math.min(t.bounds.width,t.bounds.height),t.type===ei?t.checked&&(this.ctx.save(),this.path([new fa(t.bounds.left+.39363*h,t.bounds.top+.79*h),new fa(t.bounds.left+.16*h,t.bounds.top+.5549*h),new fa(t.bounds.left+.27347*h,t.bounds.top+.44071*h),new fa(t.bounds.left+.39694*h,t.bounds.top+.5649*h),new fa(t.bounds.left+.72983*h,t.bounds.top+.23*h),new fa(t.bounds.left+.84*h,t.bounds.top+.34085*h),new fa(t.bounds.left+.39363*h,t.bounds.top+.79*h)]),this.ctx.fillStyle=st(707406591),this.ctx.fill(),this.ctx.restore()):t.type===ti&&t.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(t.bounds.left+h/2,t.bounds.top+h/2,h/4,0,2*Math.PI,!0),this.ctx.fillStyle=st(707406591),this.ctx.fill(),this.ctx.restore())),Va(t)&&t.value.length){switch(d=this.createFontStyle(a),b=d[0],f=d[1],p=this.fontMetrics.getMetrics(b,f).baseline,this.ctx.font=b,this.ctx.fillStyle=st(a.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=$a(t.styles.textAlign),w=Pa(t),A=0,t.styles.textAlign){case 1:A+=w.width/2;break;case 2:A+=w.width}g=w.add(A,0,0,-w.height/2+1),this.ctx.save(),this.path([new fa(w.left,w.top),new fa(w.left+w.width,w.top),new fa(w.left+w.width,w.top+w.height),new fa(w.left,w.top+w.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Dr(t.value,g),a.letterSpacing,p),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!Kn(t.styles.display,2048))return[3,20];if(null===t.styles.listStyleImage)return[3,19];if(0!==(m=t.styles.listStyleImage).type)return[3,18];v=void 0,y=m.url,i.label=15;case 15:return i.trys.push([15,17,,18]),[4,this.context.cache.match(y)];case 16:return v=i.sent(),this.ctx.drawImage(v,t.bounds.left-(v.width+10),t.bounds.top),[3,18];case 17:return i.sent(),this.context.logger.error("Error loading list-style-image "+y),[3,18];case 18:return[3,20];case 19:e.listValue&&-1!==t.styles.listStyleType&&(b=this.createFontStyle(a)[0],this.ctx.font=b,this.ctx.fillStyle=st(a.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",w=new o(t.bounds.left,t.bounds.top+et(t.styles.paddingTop,t.bounds.width),t.bounds.width,dn(a.lineHeight,a.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Dr(e.listValue,w),a.letterSpacing,dn(a.lineHeight,a.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),i.label=20;case 20:return[2]}})})},n.prototype.renderStackContent=function(e){return r(this,void 0,void 0,function(){var t,n,r,a,o,s,l,c,u,h,d,f,p,A,g;return i(this,function(i){switch(i.label){case 0:return Kn(e.element.container.flags,16),[4,this.renderNodeBackgroundAndBorders(e.element)];case 1:i.sent(),t=0,n=e.negativeZIndex,i.label=2;case 2:return t<n.length?(g=n[t],[4,this.renderStack(g)]):[3,5];case 3:i.sent(),i.label=4;case 4:return t++,[3,2];case 5:return[4,this.renderNodeContent(e.element)];case 6:i.sent(),r=0,a=e.nonInlineLevel,i.label=7;case 7:return r<a.length?(g=a[r],[4,this.renderNode(g)]):[3,10];case 8:i.sent(),i.label=9;case 9:return r++,[3,7];case 10:o=0,s=e.nonPositionedFloats,i.label=11;case 11:return o<s.length?(g=s[o],[4,this.renderStack(g)]):[3,14];case 12:i.sent(),i.label=13;case 13:return o++,[3,11];case 14:l=0,c=e.nonPositionedInlineLevel,i.label=15;case 15:return l<c.length?(g=c[l],[4,this.renderStack(g)]):[3,18];case 16:i.sent(),i.label=17;case 17:return l++,[3,15];case 18:u=0,h=e.inlineLevel,i.label=19;case 19:return u<h.length?(g=h[u],[4,this.renderNode(g)]):[3,22];case 20:i.sent(),i.label=21;case 21:return u++,[3,19];case 22:d=0,f=e.zeroOrAutoZIndexOrTransformedOrOpacity,i.label=23;case 23:return d<f.length?(g=f[d],[4,this.renderStack(g)]):[3,26];case 24:i.sent(),i.label=25;case 25:return d++,[3,23];case 26:p=0,A=e.positiveZIndex,i.label=27;case 27:return p<A.length?(g=A[p],[4,this.renderStack(g)]):[3,30];case 28:i.sent(),i.label=29;case 29:return p++,[3,27];case 30:return[2]}})})},n.prototype.mask=function(e){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(e.slice(0).reverse()),this.ctx.closePath()},n.prototype.path=function(e){this.ctx.beginPath(),this.formatPath(e),this.ctx.closePath()},n.prototype.formatPath=function(e){var t=this;e.forEach(function(e,n){var r=ga(e)?e.start:e;0===n?t.ctx.moveTo(r.x,r.y):t.ctx.lineTo(r.x,r.y),ga(e)&&t.ctx.bezierCurveTo(e.startControl.x,e.startControl.y,e.endControl.x,e.endControl.y,e.end.x,e.end.y)})},n.prototype.renderRepeat=function(e,t,n,r){this.path(e),this.ctx.fillStyle=t,this.ctx.translate(n,r),this.ctx.fill(),this.ctx.translate(-n,-r)},n.prototype.resizeImage=function(e,t,n){var r;if(e.width===t&&e.height===n)return e;var i=(null!==(r=this.canvas.ownerDocument)&&void 0!==r?r:document).createElement("canvas");return i.width=Math.max(1,t),i.height=Math.max(1,n),i.getContext("2d").drawImage(e,0,0,e.width,e.height,0,0,t,n),i},n.prototype.renderBackgroundImage=function(e){return r(this,void 0,void 0,function(){var t,n,r,a,o,s;return i(this,function(l){switch(l.label){case 0:t=e.styles.backgroundImage.length-1,n=function(n){var a,o,s,l,c,u,h,d,f,p,A,g,m,v,y,b,w,x,_,C,S,k,B,E,T,I,M,F,D,P,O;return i(this,function(i){switch(i.label){case 0:if(0!==n.type)return[3,5];a=void 0,o=n.url,i.label=1;case 1:return i.trys.push([1,3,,4]),[4,r.context.cache.match(o)];case 2:return a=i.sent(),[3,4];case 3:return i.sent(),r.context.logger.error("Error loading background-image "+o),[3,4];case 4:return a&&(s=Oa(e,t,[a.width,a.height,a.width/a.height]),b=s[0],k=s[1],B=s[2],_=s[3],C=s[4],v=r.ctx.createPattern(r.resizeImage(a,_,C),"repeat"),r.renderRepeat(b,v,k,B)),[3,6];case 5:1===n.type?(l=Oa(e,t,[null,null,null]),b=l[0],k=l[1],B=l[2],_=l[3],C=l[4],c=bt(n.angle,_,C),u=c[0],h=c[1],d=c[2],f=c[3],p=c[4],(A=document.createElement("canvas")).width=_,A.height=C,g=A.getContext("2d"),m=g.createLinearGradient(h,f,d,p),yt(n.stops,u).forEach(function(e){return m.addColorStop(e.stop,st(e.color))}),g.fillStyle=m,g.fillRect(0,0,_,C),_>0&&C>0&&(v=r.ctx.createPattern(A,"repeat"),r.renderRepeat(b,v,k,B))):function(e){return 2===e.type}(n)&&(y=Oa(e,t,[null,null,null]),b=y[0],w=y[1],x=y[2],_=y[3],C=y[4],S=0===n.position.length?[Xe]:n.position,k=et(S[0],_),B=et(S[S.length-1],C),E=function(e,t,n,r,i){var a=0,o=0;switch(e.size){case 0:0===e.shape?a=o=Math.min(Math.abs(t),Math.abs(t-r),Math.abs(n),Math.abs(n-i)):1===e.shape&&(a=Math.min(Math.abs(t),Math.abs(t-r)),o=Math.min(Math.abs(n),Math.abs(n-i)));break;case 2:if(0===e.shape)a=o=Math.min(wt(t,n),wt(t,n-i),wt(t-r,n),wt(t-r,n-i));else if(1===e.shape){var s=Math.min(Math.abs(n),Math.abs(n-i))/Math.min(Math.abs(t),Math.abs(t-r)),l=xt(r,i,t,n,!0),c=l[0],u=l[1];o=s*(a=wt(c-t,(u-n)/s))}break;case 1:0===e.shape?a=o=Math.max(Math.abs(t),Math.abs(t-r),Math.abs(n),Math.abs(n-i)):1===e.shape&&(a=Math.max(Math.abs(t),Math.abs(t-r)),o=Math.max(Math.abs(n),Math.abs(n-i)));break;case 3:if(0===e.shape)a=o=Math.max(wt(t,n),wt(t,n-i),wt(t-r,n),wt(t-r,n-i));else if(1===e.shape){s=Math.max(Math.abs(n),Math.abs(n-i))/Math.max(Math.abs(t),Math.abs(t-r));var h=xt(r,i,t,n,!1);c=h[0],u=h[1],o=s*(a=wt(c-t,(u-n)/s))}}return Array.isArray(e.size)&&(a=et(e.size[0],r),o=2===e.size.length?et(e.size[1],i):a),[a,o]}(n,k,B,_,C),T=E[0],I=E[1],T>0&&I>0&&(M=r.ctx.createRadialGradient(w+k,x+B,0,w+k,x+B,T),yt(n.stops,2*T).forEach(function(e){return M.addColorStop(e.stop,st(e.color))}),r.path(b),r.ctx.fillStyle=M,T!==I?(F=e.bounds.left+.5*e.bounds.width,D=e.bounds.top+.5*e.bounds.height,O=1/(P=I/T),r.ctx.save(),r.ctx.translate(F,D),r.ctx.transform(1,0,0,P,0,0),r.ctx.translate(-F,-D),r.ctx.fillRect(w,O*(x-D)+D,_,C*O),r.ctx.restore()):r.ctx.fill())),i.label=6;case 6:return t--,[2]}})},r=this,a=0,o=e.styles.backgroundImage.slice(0).reverse(),l.label=1;case 1:return a<o.length?(s=o[a],[5,n(s)]):[3,4];case 2:l.sent(),l.label=3;case 3:return a++,[3,1];case 4:return[2]}})})},n.prototype.renderSolidBorder=function(e,t,n){return r(this,void 0,void 0,function(){return i(this,function(r){return this.path(Ia(n,t)),this.ctx.fillStyle=st(e),this.ctx.fill(),[2]})})},n.prototype.renderDoubleBorder=function(e,t,n,a){return r(this,void 0,void 0,function(){var r,o;return i(this,function(i){switch(i.label){case 0:return t<3?[4,this.renderSolidBorder(e,n,a)]:[3,2];case 1:return i.sent(),[2];case 2:return r=function(e,t){switch(t){case 0:return Fa(e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox,e.topRightBorderBox,e.topRightBorderDoubleOuterBox);case 1:return Fa(e.topRightBorderBox,e.topRightBorderDoubleOuterBox,e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox);case 2:return Fa(e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox,e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox);case 3:default:return Fa(e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox,e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox)}}(a,n),this.path(r),this.ctx.fillStyle=st(e),this.ctx.fill(),o=function(e,t){switch(t){case 0:return Fa(e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox,e.topRightBorderDoubleInnerBox,e.topRightPaddingBox);case 1:return Fa(e.topRightBorderDoubleInnerBox,e.topRightPaddingBox,e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox);case 2:return Fa(e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox,e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox);case 3:default:return Fa(e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox,e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox)}}(a,n),this.path(o),this.ctx.fill(),[2]}})})},n.prototype.renderNodeBackgroundAndBorders=function(e){return r(this,void 0,void 0,function(){var t,n,r,a,o,s,l,c,u=this;return i(this,function(i){switch(i.label){case 0:return this.applyEffects(e.getEffects(2)),t=e.container.styles,n=!ot(t.backgroundColor)||t.backgroundImage.length,r=[{style:t.borderTopStyle,color:t.borderTopColor,width:t.borderTopWidth},{style:t.borderRightStyle,color:t.borderRightColor,width:t.borderRightWidth},{style:t.borderBottomStyle,color:t.borderBottomColor,width:t.borderBottomWidth},{style:t.borderLeftStyle,color:t.borderLeftColor,width:t.borderLeftWidth}],a=Ga(Ua(t.backgroundClip,0),e.curves),n||t.boxShadow.length?(this.ctx.save(),this.path(a),this.ctx.clip(),ot(t.backgroundColor)||(this.ctx.fillStyle=st(t.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(e.container)]):[3,2];case 1:i.sent(),this.ctx.restore(),t.boxShadow.slice(0).reverse().forEach(function(t){u.ctx.save();var n,r,i,a,o,s=ya(e.curves),l=t.inset?0:1e4,c=(n=s,r=-l+(t.inset?1:-1)*t.spread.number,i=(t.inset?1:-1)*t.spread.number,a=t.spread.number*(t.inset?-2:2),o=t.spread.number*(t.inset?-2:2),n.map(function(e,t){switch(t){case 0:return e.add(r,i);case 1:return e.add(r+a,i);case 2:return e.add(r+a,i+o);case 3:return e.add(r,i+o)}return e}));t.inset?(u.path(s),u.ctx.clip(),u.mask(c)):(u.mask(s),u.ctx.clip(),u.path(c)),u.ctx.shadowOffsetX=t.offsetX.number+l,u.ctx.shadowOffsetY=t.offsetY.number,u.ctx.shadowColor=st(t.color),u.ctx.shadowBlur=t.blur.number,u.ctx.fillStyle=t.inset?st(t.color):"rgba(0,0,0,1)",u.ctx.fill(),u.ctx.restore()}),i.label=2;case 2:o=0,s=0,l=r,i.label=3;case 3:return s<l.length?0!==(c=l[s]).style&&!ot(c.color)&&c.width>0?2!==c.style?[3,5]:[4,this.renderDashedDottedBorder(c.color,c.width,o,e.curves,2)]:[3,11]:[3,13];case 4:return i.sent(),[3,11];case 5:return 3!==c.style?[3,7]:[4,this.renderDashedDottedBorder(c.color,c.width,o,e.curves,3)];case 6:return i.sent(),[3,11];case 7:return 4!==c.style?[3,9]:[4,this.renderDoubleBorder(c.color,c.width,o,e.curves)];case 8:return i.sent(),[3,11];case 9:return[4,this.renderSolidBorder(c.color,o,e.curves)];case 10:i.sent(),i.label=11;case 11:o++,i.label=12;case 12:return s++,[3,3];case 13:return[2]}})})},n.prototype.renderDashedDottedBorder=function(e,t,n,a,o){return r(this,void 0,void 0,function(){var r,s,l,c,u,h,d,f,p,A,g,m,v,y,b,w;return i(this,function(i){return this.ctx.save(),r=function(e,t){switch(t){case 0:return Ma(e.topLeftBorderStroke,e.topRightBorderStroke);case 1:return Ma(e.topRightBorderStroke,e.bottomRightBorderStroke);case 2:return Ma(e.bottomRightBorderStroke,e.bottomLeftBorderStroke);case 3:default:return Ma(e.bottomLeftBorderStroke,e.topLeftBorderStroke)}}(a,n),s=Ia(a,n),2===o&&(this.path(s),this.ctx.clip()),ga(s[0])?(l=s[0].start.x,c=s[0].start.y):(l=s[0].x,c=s[0].y),ga(s[1])?(u=s[1].end.x,h=s[1].end.y):(u=s[1].x,h=s[1].y),d=0===n||2===n?Math.abs(l-u):Math.abs(c-h),this.ctx.beginPath(),3===o?this.formatPath(r):this.formatPath(s.slice(0,2)),f=t<3?3*t:2*t,p=t<3?2*t:t,3===o&&(f=t,p=t),A=!0,d<=2*f?A=!1:d<=2*f+p?(f*=g=d/(2*f+p),p*=g):(m=Math.floor((d+p)/(f+p)),v=(d-m*f)/(m-1),p=(y=(d-(m+1)*f)/m)<=0||Math.abs(p-v)<Math.abs(p-y)?v:y),A&&(3===o?this.ctx.setLineDash([0,f+p]):this.ctx.setLineDash([f,p])),3===o?(this.ctx.lineCap="round",this.ctx.lineWidth=t):this.ctx.lineWidth=2*t+1.1,this.ctx.strokeStyle=st(e),this.ctx.stroke(),this.ctx.setLineDash([]),2===o&&(ga(s[0])&&(b=s[3],w=s[0],this.ctx.beginPath(),this.formatPath([new fa(b.end.x,b.end.y),new fa(w.start.x,w.start.y)]),this.ctx.stroke()),ga(s[1])&&(b=s[1],w=s[2],this.ctx.beginPath(),this.formatPath([new fa(b.end.x,b.end.y),new fa(w.start.x,w.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},n.prototype.render=function(e){return r(this,void 0,void 0,function(){var t;return i(this,function(n){switch(n.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=st(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),r=new Ba(e,null),i=new ka(r),Ea(r,i,i,a=[]),Ta(r.container,a),t=i,[4,this.renderStack(t)];case 1:return n.sent(),this.applyEffects([]),[2,this.canvas]}var r,i,a})})},n}(Qa),Va=function(e){return e instanceof ai||(e instanceof ii||e instanceof ri&&e.type!==ti&&e.type!==ei)},Ga=function(e,t){switch(e){case 0:return ya(t);case 2:return function(e){return[e.topLeftContentBox,e.topRightContentBox,e.bottomRightContentBox,e.bottomLeftContentBox]}(t);case 1:default:return ba(t)}},$a=function(e){switch(e){case 1:return"center";case 2:return"right";case 0:default:return"left"}},qa=["-apple-system","system-ui"],Wa=function(e){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?e.filter(function(e){return-1===qa.indexOf(e)}):e},Ka=function(e){function n(t,n){var r=e.call(this,t,n)||this;return r.canvas=n.canvas?n.canvas:document.createElement("canvas"),r.ctx=r.canvas.getContext("2d"),r.options=n,r.canvas.width=Math.floor(n.width*n.scale),r.canvas.height=Math.floor(n.height*n.scale),r.canvas.style.width=n.width+"px",r.canvas.style.height=n.height+"px",r.ctx.scale(r.options.scale,r.options.scale),r.ctx.translate(-n.x,-n.y),r.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+n.width+"x"+n.height+" at "+n.x+","+n.y+") with scale "+n.scale),r}return t(n,e),n.prototype.render=function(e){return r(this,void 0,void 0,function(){var t,n;return i(this,function(r){switch(r.label){case 0:return t=Ir(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,e),[4,Ya(t)];case 1:return n=r.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=st(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(n,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},n}(Qa),Ya=function(e){return new Promise(function(t,n){var r=new Image;r.onload=function(){t(r)},r.onerror=n,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(e))})},Xa=function(){function e(e){var t=e.id,n=e.enabled;this.id=t,this.enabled=n,this.start=Date.now()}return e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.debug?console.debug.apply(console,a([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},e.prototype.getTime=function(){return Date.now()-this.start},e.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&"undefined"!=typeof window&&window.console&&"function"==typeof console.info&&console.info.apply(console,a([this.id,this.getTime()+"ms"],e))},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.warn?console.warn.apply(console,a([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.error?console.error.apply(console,a([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},e.instances={},e}(),Ja=function(){function e(t,n){var r;this.windowBounds=n,this.instanceName="#"+e.instanceCount++,this.logger=new Xa({id:this.instanceName,enabled:t.logging}),this.cache=null!==(r=t.cache)&&void 0!==r?r:new ia(this,t)}return e.instanceCount=1,e}();"undefined"!=typeof window&&ra.setContext(window);var Za=function(e,t){return r(void 0,void 0,void 0,function(){var r,a,l,c,u,h,d,f,p,A,g,m,v,y,b,w,x,_,C,S,k,B,E,T,I,M,F,D,P,O,L,R,N,U,H,j,Q,z;return i(this,function(i){switch(i.label){case 0:if(!e||"object"!=typeof e)return[2,Promise.reject("Invalid element provided as first argument")];if(!(r=e.ownerDocument))throw new Error("Element is not attached to a Document");if(!(a=r.defaultView))throw new Error("Document is not attached to a Window");return l={allowTaint:null!==(B=t.allowTaint)&&void 0!==B&&B,imageTimeout:null!==(E=t.imageTimeout)&&void 0!==E?E:15e3,proxy:t.proxy,useCORS:null!==(T=t.useCORS)&&void 0!==T&&T},c=n({logging:null===(I=t.logging)||void 0===I||I,cache:t.cache},l),u={windowWidth:null!==(M=t.windowWidth)&&void 0!==M?M:a.innerWidth,windowHeight:null!==(F=t.windowHeight)&&void 0!==F?F:a.innerHeight,scrollX:null!==(D=t.scrollX)&&void 0!==D?D:a.pageXOffset,scrollY:null!==(P=t.scrollY)&&void 0!==P?P:a.pageYOffset},h=new o(u.scrollX,u.scrollY,u.windowWidth,u.windowHeight),d=new Ja(c,h),f=null!==(O=t.foreignObjectRendering)&&void 0!==O&&O,p={allowTaint:null!==(L=t.allowTaint)&&void 0!==L&&L,onclone:t.onclone,ignoreElements:t.ignoreElements,inlineImages:f,copyStyles:f},d.logger.debug("Starting document clone with size "+h.width+"x"+h.height+" scrolled to "+-h.left+","+-h.top),A=new Qi(d,e,p),(g=A.clonedReferenceElement)?[4,A.toIFrame(r,h)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return m=i.sent(),v=wi(g)||"HTML"===g.tagName?function(e){var t=e.body,n=e.documentElement;if(!t||!n)throw new Error("Unable to get document size");var r=Math.max(Math.max(t.scrollWidth,n.scrollWidth),Math.max(t.offsetWidth,n.offsetWidth),Math.max(t.clientWidth,n.clientWidth)),i=Math.max(Math.max(t.scrollHeight,n.scrollHeight),Math.max(t.offsetHeight,n.offsetHeight),Math.max(t.clientHeight,n.clientHeight));return new o(0,0,r,i)}(g.ownerDocument):s(d,g),y=v.width,b=v.height,w=v.left,x=v.top,_=eo(d,g,t.backgroundColor),C={canvas:t.canvas,backgroundColor:_,scale:null!==(N=null!==(R=t.scale)&&void 0!==R?R:a.devicePixelRatio)&&void 0!==N?N:1,x:(null!==(U=t.x)&&void 0!==U?U:0)+w,y:(null!==(H=t.y)&&void 0!==H?H:0)+x,width:null!==(j=t.width)&&void 0!==j?j:Math.ceil(y),height:null!==(Q=t.height)&&void 0!==Q?Q:Math.ceil(b)},f?(d.logger.debug("Document cloned, using foreign object rendering"),[4,new Ka(d,C).render(g)]):[3,3];case 2:return S=i.sent(),[3,5];case 3:return d.logger.debug("Document cloned, element located at "+w+","+x+" with size "+y+"x"+b+" using computed rendering"),d.logger.debug("Starting DOM parsing"),k=ui(d,g),_===k.styles.backgroundColor&&(k.styles.backgroundColor=At.TRANSPARENT),d.logger.debug("Starting renderer for element at "+C.x+","+C.y+" with size "+C.width+"x"+C.height),[4,new za(d,C).render(k)];case 4:S=i.sent(),i.label=5;case 5:return(null===(z=t.removeContainer)||void 0===z||z)&&(Qi.destroy(m)||d.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),d.logger.debug("Finished rendering"),[2,S]}})})},eo=function(e,t,n){var r=t.ownerDocument,i=r.documentElement?pt(e,getComputedStyle(r.documentElement).backgroundColor):At.TRANSPARENT,a=r.body?pt(e,getComputedStyle(r.body).backgroundColor):At.TRANSPARENT,o="string"==typeof n?pt(e,n):null===n?At.TRANSPARENT:4294967295;return t===r.documentElement?ot(i)?ot(a)?o:a:i:o};return function(e,t){return void 0===t&&(t={}),Za(e,t)}},e.exports=r()},eNfa:function(e,t,n){"use strict";var r;!function(i){var a={},o=/d{1,4}|M{1,4}|yy(?:yy)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,s="[^\\s]+",l=/\[([^]*?)\]/gm,c=function(){};function u(e,t){for(var n=[],r=0,i=e.length;r<i;r++)n.push(e[r].substr(0,t));return n}function h(e){return function(t,n,r){var i=r[e].indexOf(n.charAt(0).toUpperCase()+n.substr(1).toLowerCase());~i&&(t.month=i)}}function d(e,t){for(e=String(e),t=t||2;e.length<t;)e="0"+e;return e}var f=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],p=["January","February","March","April","May","June","July","August","September","October","November","December"],A=u(p,3),g=u(f,3);a.i18n={dayNamesShort:g,dayNames:f,monthNamesShort:A,monthNames:p,amPm:["am","pm"],DoFn:function(e){return e+["th","st","nd","rd"][e%10>3?0:(e-e%10!=10)*e%10]}};var m={D:function(e){return e.getDay()},DD:function(e){return d(e.getDay())},Do:function(e,t){return t.DoFn(e.getDate())},d:function(e){return e.getDate()},dd:function(e){return d(e.getDate())},ddd:function(e,t){return t.dayNamesShort[e.getDay()]},dddd:function(e,t){return t.dayNames[e.getDay()]},M:function(e){return e.getMonth()+1},MM:function(e){return d(e.getMonth()+1)},MMM:function(e,t){return t.monthNamesShort[e.getMonth()]},MMMM:function(e,t){return t.monthNames[e.getMonth()]},yy:function(e){return d(String(e.getFullYear()),4).substr(2)},yyyy:function(e){return d(e.getFullYear(),4)},h:function(e){return e.getHours()%12||12},hh:function(e){return d(e.getHours()%12||12)},H:function(e){return e.getHours()},HH:function(e){return d(e.getHours())},m:function(e){return e.getMinutes()},mm:function(e){return d(e.getMinutes())},s:function(e){return e.getSeconds()},ss:function(e){return d(e.getSeconds())},S:function(e){return Math.round(e.getMilliseconds()/100)},SS:function(e){return d(Math.round(e.getMilliseconds()/10),2)},SSS:function(e){return d(e.getMilliseconds(),3)},a:function(e,t){return e.getHours()<12?t.amPm[0]:t.amPm[1]},A:function(e,t){return e.getHours()<12?t.amPm[0].toUpperCase():t.amPm[1].toUpperCase()},ZZ:function(e){var t=e.getTimezoneOffset();return(t>0?"-":"+")+d(100*Math.floor(Math.abs(t)/60)+Math.abs(t)%60,4)}},v={d:["\\d\\d?",function(e,t){e.day=t}],Do:["\\d\\d?"+s,function(e,t){e.day=parseInt(t,10)}],M:["\\d\\d?",function(e,t){e.month=t-1}],yy:["\\d\\d?",function(e,t){var n=+(""+(new Date).getFullYear()).substr(0,2);e.year=""+(t>68?n-1:n)+t}],h:["\\d\\d?",function(e,t){e.hour=t}],m:["\\d\\d?",function(e,t){e.minute=t}],s:["\\d\\d?",function(e,t){e.second=t}],yyyy:["\\d{4}",function(e,t){e.year=t}],S:["\\d",function(e,t){e.millisecond=100*t}],SS:["\\d{2}",function(e,t){e.millisecond=10*t}],SSS:["\\d{3}",function(e,t){e.millisecond=t}],D:["\\d\\d?",c],ddd:[s,c],MMM:[s,h("monthNamesShort")],MMMM:[s,h("monthNames")],a:[s,function(e,t,n){var r=t.toLowerCase();r===n.amPm[0]?e.isPm=!1:r===n.amPm[1]&&(e.isPm=!0)}],ZZ:["[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z",function(e,t){var n,r=(t+"").match(/([+-]|\d\d)/gi);r&&(n=60*r[1]+parseInt(r[2],10),e.timezoneOffset="+"===r[0]?n:-n)}]};v.dd=v.d,v.dddd=v.ddd,v.DD=v.D,v.mm=v.m,v.hh=v.H=v.HH=v.h,v.MM=v.M,v.ss=v.s,v.A=v.a,a.masks={default:"ddd MMM dd yyyy HH:mm:ss",shortDate:"M/D/yy",mediumDate:"MMM d, yyyy",longDate:"MMMM d, yyyy",fullDate:"dddd, MMMM d, yyyy",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},a.format=function(e,t,n){var r=n||a.i18n;if("number"==typeof e&&(e=new Date(e)),"[object Date]"!==Object.prototype.toString.call(e)||isNaN(e.getTime()))throw new Error("Invalid Date in fecha.format");var i=[];return(t=(t=(t=a.masks[t]||t||a.masks.default).replace(l,function(e,t){return i.push(t),"@@@"})).replace(o,function(t){return t in m?m[t](e,r):t.slice(1,t.length-1)})).replace(/@@@/g,function(){return i.shift()})},a.parse=function(e,t,n){var r=n||a.i18n;if("string"!=typeof t)throw new Error("Invalid format in fecha.parse");if(t=a.masks[t]||t,e.length>1e3)return null;var i={},s=[],c=[];t=t.replace(l,function(e,t){return c.push(t),"@@@"});var u,h=(u=t,u.replace(/[|\\{()[^$+*?.-]/g,"\\$&")).replace(o,function(e){if(v[e]){var t=v[e];return s.push(t[1]),"("+t[0]+")"}return e});h=h.replace(/@@@/g,function(){return c.shift()});var d=e.match(new RegExp(h,"i"));if(!d)return null;for(var f=1;f<d.length;f++)s[f-1](i,d[f],r);var p,A=new Date;return!0===i.isPm&&null!=i.hour&&12!=+i.hour?i.hour=+i.hour+12:!1===i.isPm&&12==+i.hour&&(i.hour=0),null!=i.timezoneOffset?(i.minute=+(i.minute||0)-+i.timezoneOffset,p=new Date(Date.UTC(i.year||A.getFullYear(),i.month||0,i.day||1,i.hour||0,i.minute||0,i.second||0,i.millisecond||0))):p=new Date(i.year||A.getFullYear(),i.month||0,i.day||1,i.hour||0,i.minute||0,i.second||0,i.millisecond||0),p},void 0!==e&&e.exports?e.exports=a:void 0===(r=function(){return a}.call(t,n,t,e))||(e.exports=r)}()},evD5:function(e,t,n){var r=n("77Pl"),i=n("SfB7"),a=n("MmMw"),o=Object.defineProperty;t.f=n("+E39")?Object.defineProperty:function(e,t,n){if(r(e),t=a(t,!0),r(n),i)try{return o(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},exGp:function(e,t,n){"use strict";t.__esModule=!0;var r,i=n("//Fk"),a=(r=i)&&r.__esModule?r:{default:r};t.default=function(e){return function(){var t=e.apply(this,arguments);return new a.default(function(e,n){return function r(i,o){try{var s=t[i](o),l=s.value}catch(e){return void n(e)}if(!s.done)return a.default.resolve(l).then(function(e){r("next",e)},function(e){r("throw",e)});e(l)}("next")})}}},"fEB+":function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=127)}({127:function(e,t,n){"use strict";n.r(t);var r=n(16),i=n(38),a=n.n(i),o=n(3),s=n(2),l={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}};var c={name:"Bar",props:{vertical:Boolean,size:String,move:Number},computed:{bar:function(){return l[this.vertical?"vertical":"horizontal"]},wrap:function(){return this.$parent.wrap}},render:function(e){var t=this.size,n=this.move,r=this.bar;return e("div",{class:["el-scrollbar__bar","is-"+r.key],on:{mousedown:this.clickTrackHandler}},[e("div",{ref:"thumb",class:"el-scrollbar__thumb",on:{mousedown:this.clickThumbHandler},style:function(e){var t=e.move,n=e.size,r=e.bar,i={},a="translate"+r.axis+"("+t+"%)";return i[r.size]=n,i.transform=a,i.msTransform=a,i.webkitTransform=a,i}({size:t,move:n,bar:r})})])},methods:{clickThumbHandler:function(e){e.ctrlKey||2===e.button||(this.startDrag(e),this[this.bar.axis]=e.currentTarget[this.bar.offset]-(e[this.bar.client]-e.currentTarget.getBoundingClientRect()[this.bar.direction]))},clickTrackHandler:function(e){var t=100*(Math.abs(e.target.getBoundingClientRect()[this.bar.direction]-e[this.bar.client])-this.$refs.thumb[this.bar.offset]/2)/this.$el[this.bar.offset];this.wrap[this.bar.scroll]=t*this.wrap[this.bar.scrollSize]/100},startDrag:function(e){e.stopImmediatePropagation(),this.cursorDown=!0,Object(s.on)(document,"mousemove",this.mouseMoveDocumentHandler),Object(s.on)(document,"mouseup",this.mouseUpDocumentHandler),document.onselectstart=function(){return!1}},mouseMoveDocumentHandler:function(e){if(!1!==this.cursorDown){var t=this[this.bar.axis];if(t){var n=100*(-1*(this.$el.getBoundingClientRect()[this.bar.direction]-e[this.bar.client])-(this.$refs.thumb[this.bar.offset]-t))/this.$el[this.bar.offset];this.wrap[this.bar.scroll]=n*this.wrap[this.bar.scrollSize]/100}}},mouseUpDocumentHandler:function(e){this.cursorDown=!1,this[this.bar.axis]=0,Object(s.off)(document,"mousemove",this.mouseMoveDocumentHandler),document.onselectstart=null}},destroyed:function(){Object(s.off)(document,"mouseup",this.mouseUpDocumentHandler)}},u={name:"ElScrollbar",components:{Bar:c},props:{native:Boolean,wrapStyle:{},wrapClass:{},viewClass:{},viewStyle:{},noresize:Boolean,tag:{type:String,default:"div"}},data:function(){return{sizeWidth:"0",sizeHeight:"0",moveX:0,moveY:0}},computed:{wrap:function(){return this.$refs.wrap}},render:function(e){var t=a()(),n=this.wrapStyle;if(t){var r="-"+t+"px",i="margin-bottom: "+r+"; margin-right: "+r+";";Array.isArray(this.wrapStyle)?(n=Object(o.toObject)(this.wrapStyle)).marginRight=n.marginBottom=r:"string"==typeof this.wrapStyle?n+=i:n=i}var s=e(this.tag,{class:["el-scrollbar__view",this.viewClass],style:this.viewStyle,ref:"resize"},this.$slots.default),l=e("div",{ref:"wrap",style:n,on:{scroll:this.handleScroll},class:[this.wrapClass,"el-scrollbar__wrap",t?"":"el-scrollbar__wrap--hidden-default"]},[[s]]);return e("div",{class:"el-scrollbar"},this.native?[e("div",{ref:"wrap",class:[this.wrapClass,"el-scrollbar__wrap"],style:n},[[s]])]:[l,e(c,{attrs:{move:this.moveX,size:this.sizeWidth}}),e(c,{attrs:{vertical:!0,move:this.moveY,size:this.sizeHeight}})])},methods:{handleScroll:function(){var e=this.wrap;this.moveY=100*e.scrollTop/e.clientHeight,this.moveX=100*e.scrollLeft/e.clientWidth},update:function(){var e,t,n=this.wrap;n&&(e=100*n.clientHeight/n.scrollHeight,t=100*n.clientWidth/n.scrollWidth,this.sizeHeight=e<100?e+"%":"",this.sizeWidth=t<100?t+"%":"")}},mounted:function(){this.native||(this.$nextTick(this.update),!this.noresize&&Object(r.addResizeListener)(this.$refs.resize,this.update))},beforeDestroy:function(){this.native||!this.noresize&&Object(r.removeResizeListener)(this.$refs.resize,this.update)},install:function(e){e.component(u.name,u)}};t.default=u},16:function(e,t){e.exports=n("02w1")},2:function(e,t){e.exports=n("2kvA")},3:function(e,t){e.exports=n("ylDJ")},38:function(e,t){e.exports=n("6Twh")}})},fJUb:function(e,t,n){var r=n("77Pl"),i=n("EqjI"),a=n("qARP");e.exports=function(e,t){if(r(e),i(t)&&t.constructor===e)return t;var n=a.f(e);return(0,n.resolve)(t),n.promise}},fKx3:function(e,t,n){"use strict";t.__esModule=!0;var r,i=n("7+uW"),a=(r=i)&&r.__esModule?r:{default:r},o=n("7J9s");var s=a.default.prototype.$isServer?function(){}:n("NMof"),l=function(e){return e.stopPropagation()};t.default={props:{transformOrigin:{type:[Boolean,String],default:!0},placement:{type:String,default:"bottom"},boundariesPadding:{type:Number,default:5},reference:{},popper:{},offset:{default:0},value:Boolean,visibleArrow:Boolean,arrowOffset:{type:Number,default:35},appendToBody:{type:Boolean,default:!0},popperOptions:{type:Object,default:function(){return{gpuAcceleration:!1}}}},data:function(){return{showPopper:!1,currentPlacement:""}},watch:{value:{immediate:!0,handler:function(e){this.showPopper=e,this.$emit("input",e)}},showPopper:function(e){this.disabled||(e?this.updatePopper():this.destroyPopper(),this.$emit("input",e))}},methods:{createPopper:function(){var e=this;if(!this.$isServer&&(this.currentPlacement=this.currentPlacement||this.placement,/^(top|bottom|left|right)(-start|-end)?$/g.test(this.currentPlacement))){var t=this.popperOptions,n=this.popperElm=this.popperElm||this.popper||this.$refs.popper,r=this.referenceElm=this.referenceElm||this.reference||this.$refs.reference;!r&&this.$slots.reference&&this.$slots.reference[0]&&(r=this.referenceElm=this.$slots.reference[0].elm),n&&r&&(this.visibleArrow&&this.appendArrow(n),this.appendToBody&&document.body.appendChild(this.popperElm),this.popperJS&&this.popperJS.destroy&&this.popperJS.destroy(),t.placement=this.currentPlacement,t.offset=this.offset,t.arrowOffset=this.arrowOffset,this.popperJS=new s(r,n,t),this.popperJS.onCreate(function(t){e.$emit("created",e),e.resetTransformOrigin(),e.$nextTick(e.updatePopper)}),"function"==typeof t.onUpdate&&this.popperJS.onUpdate(t.onUpdate),this.popperJS._popper.style.zIndex=o.PopupManager.nextZIndex(),this.popperElm.addEventListener("click",l))}},updatePopper:function(){var e=this.popperJS;e?(e.update(),e._popper&&(e._popper.style.zIndex=o.PopupManager.nextZIndex())):this.createPopper()},doDestroy:function(e){!this.popperJS||this.showPopper&&!e||(this.popperJS.destroy(),this.popperJS=null)},destroyPopper:function(){this.popperJS&&this.resetTransformOrigin()},resetTransformOrigin:function(){if(this.transformOrigin){var e=this.popperJS._popper.getAttribute("x-placement").split("-")[0],t={top:"bottom",bottom:"top",left:"right",right:"left"}[e];this.popperJS._popper.style.transformOrigin="string"==typeof this.transformOrigin?this.transformOrigin:["top","bottom"].indexOf(e)>-1?"center "+t:t+" center"}},appendArrow:function(e){var t=void 0;if(!this.appended){for(var n in this.appended=!0,e.attributes)if(/^_v-/.test(e.attributes[n].name)){t=e.attributes[n].name;break}var r=document.createElement("div");t&&r.setAttribute(t,""),r.setAttribute("x-arrow",""),r.className="popper__arrow",e.appendChild(r)}}},beforeDestroy:function(){this.doDestroy(!0),this.popperElm&&this.popperElm.parentNode===document.body&&(this.popperElm.removeEventListener("click",l),document.body.removeChild(this.popperElm))},deactivated:function(){this.$options.beforeDestroy[0].call(this)}}},fPll:function(e,t,n){"use strict";t.__esModule=!0,t.default={methods:{dispatch:function(e,t,n){for(var r=this.$parent||this.$root,i=r.$options.componentName;r&&(!i||i!==e);)(r=r.$parent)&&(i=r.$options.componentName);r&&r.$emit.apply(r,[t].concat(n))},broadcast:function(e,t,n){(function e(t,n,r){this.$children.forEach(function(i){i.$options.componentName===t?i.$emit.apply(i,[n].concat(r)):e.apply(i,[t,n].concat([r]))})}).call(this,e,t,n)}}}},fRHV:function(e,t,n){"use strict";var r=Array.prototype.slice,i=Object.prototype.toString;e.exports=function(e){var t=this;if("function"!=typeof t||"[object Function]"!==i.call(t))throw new TypeError("Function.prototype.bind called on incompatible "+t);for(var n,a=r.call(arguments,1),o=Math.max(0,t.length-a.length),s=[],l=0;l<o;l++)s.push("$"+l);if(n=Function("binder","return function ("+s.join(",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof n){var i=t.apply(this,a.concat(r.call(arguments)));return Object(i)===i?i:this}return t.apply(e,a.concat(r.call(arguments)))}),t.prototype){var c=function(){};c.prototype=t.prototype,n.prototype=new c,c.prototype=null}return n}},fUqW:function(e,t,n){"use strict";t.__esModule=!0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.isVNode=function(e){return null!==e&&"object"===(void 0===e?"undefined":r(e))&&(0,i.hasOwn)(e,"componentOptions")};var i=n("ylDJ")},fWfb:function(e,t,n){"use strict";var r=n("7KvD"),i=n("D2L2"),a=n("+E39"),o=n("kM2E"),s=n("880/"),l=n("06OY").KEY,c=n("S82l"),u=n("e8AB"),h=n("e6n0"),d=n("3Eo+"),f=n("dSzd"),p=n("Kh4W"),A=n("crlp"),g=n("Xc4G"),m=n("7UMu"),v=n("77Pl"),y=n("EqjI"),b=n("sB3e"),w=n("TcQ7"),x=n("MmMw"),_=n("X8DO"),C=n("Yobk"),S=n("Rrel"),k=n("LKZe"),B=n("1kS7"),E=n("evD5"),T=n("lktj"),I=k.f,M=E.f,F=S.f,D=r.Symbol,P=r.JSON,O=P&&P.stringify,L=f("_hidden"),R=f("toPrimitive"),N={}.propertyIsEnumerable,U=u("symbol-registry"),H=u("symbols"),j=u("op-symbols"),Q=Object.prototype,z="function"==typeof D&&!!B.f,V=r.QObject,G=!V||!V.prototype||!V.prototype.findChild,$=a&&c(function(){return 7!=C(M({},"a",{get:function(){return M(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=I(Q,t);r&&delete Q[t],M(e,t,n),r&&e!==Q&&M(Q,t,r)}:M,q=function(e){var t=H[e]=C(D.prototype);return t._k=e,t},W=z&&"symbol"==typeof D.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof D},K=function(e,t,n){return e===Q&&K(j,t,n),v(e),t=x(t,!0),v(n),i(H,t)?(n.enumerable?(i(e,L)&&e[L][t]&&(e[L][t]=!1),n=C(n,{enumerable:_(0,!1)})):(i(e,L)||M(e,L,_(1,{})),e[L][t]=!0),$(e,t,n)):M(e,t,n)},Y=function(e,t){v(e);for(var n,r=g(t=w(t)),i=0,a=r.length;a>i;)K(e,n=r[i++],t[n]);return e},X=function(e){var t=N.call(this,e=x(e,!0));return!(this===Q&&i(H,e)&&!i(j,e))&&(!(t||!i(this,e)||!i(H,e)||i(this,L)&&this[L][e])||t)},J=function(e,t){if(e=w(e),t=x(t,!0),e!==Q||!i(H,t)||i(j,t)){var n=I(e,t);return!n||!i(H,t)||i(e,L)&&e[L][t]||(n.enumerable=!0),n}},Z=function(e){for(var t,n=F(w(e)),r=[],a=0;n.length>a;)i(H,t=n[a++])||t==L||t==l||r.push(t);return r},ee=function(e){for(var t,n=e===Q,r=F(n?j:w(e)),a=[],o=0;r.length>o;)!i(H,t=r[o++])||n&&!i(Q,t)||a.push(H[t]);return a};z||(s((D=function(){if(this instanceof D)throw TypeError("Symbol is not a constructor!");var e=d(arguments.length>0?arguments[0]:void 0),t=function(n){this===Q&&t.call(j,n),i(this,L)&&i(this[L],e)&&(this[L][e]=!1),$(this,e,_(1,n))};return a&&G&&$(Q,e,{configurable:!0,set:t}),q(e)}).prototype,"toString",function(){return this._k}),k.f=J,E.f=K,n("n0T6").f=S.f=Z,n("NpIQ").f=X,B.f=ee,a&&!n("O4g8")&&s(Q,"propertyIsEnumerable",X,!0),p.f=function(e){return q(f(e))}),o(o.G+o.W+o.F*!z,{Symbol:D});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ne=0;te.length>ne;)f(te[ne++]);for(var re=T(f.store),ie=0;re.length>ie;)A(re[ie++]);o(o.S+o.F*!z,"Symbol",{for:function(e){return i(U,e+="")?U[e]:U[e]=D(e)},keyFor:function(e){if(!W(e))throw TypeError(e+" is not a symbol!");for(var t in U)if(U[t]===e)return t},useSetter:function(){G=!0},useSimple:function(){G=!1}}),o(o.S+o.F*!z,"Object",{create:function(e,t){return void 0===t?C(e):Y(C(e),t)},defineProperty:K,defineProperties:Y,getOwnPropertyDescriptor:J,getOwnPropertyNames:Z,getOwnPropertySymbols:ee});var ae=c(function(){B.f(1)});o(o.S+o.F*ae,"Object",{getOwnPropertySymbols:function(e){return B.f(b(e))}}),P&&o(o.S+o.F*(!z||c(function(){var e=D();return"[null]"!=O([e])||"{}"!=O({a:e})||"{}"!=O(Object(e))})),"JSON",{stringify:function(e){for(var t,n,r=[e],i=1;arguments.length>i;)r.push(arguments[i++]);if(n=t=r[1],(y(t)||void 0!==e)&&!W(e))return m(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!W(t))return t}),r[1]=t,O.apply(P,r)}}),D.prototype[R]||n("hJx8")(D.prototype,R,D.prototype.valueOf),h(D,"Symbol"),h(Math,"Math",!0),h(r.JSON,"JSON",!0)},fZOM:function(e,t,n){var r=n("kM2E"),i=n("mbce")(!1);r(r.S,"Object",{values:function(e){return i(e)}})},fZjL:function(e,t,n){e.exports={default:n("jFbC"),__esModule:!0}},fkB2:function(e,t,n){var r=n("UuGF"),i=Math.max,a=Math.min;e.exports=function(e,t){return(e=r(e))<0?i(e+t,0):a(e,t)}},fuGk:function(e,t,n){"use strict";var r=n("cGG2");function i(){this.handlers=[]}i.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},i.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},i.prototype.forEach=function(e){r.forEach(this.handlers,function(t){null!==t&&e(t)})},e.exports=i},fxRn:function(e,t,n){n("+tPU"),n("zQR9"),e.exports=n("g8Ux")},g8Ux:function(e,t,n){var r=n("77Pl"),i=n("3fs2");e.exports=n("FeBl").getIterator=function(e){var t=i(e);if("function"!=typeof t)throw TypeError(e+" is not iterable!");return r(t.call(e))}},gAsd:function(e,t,n){n("G5/o");var r=n("FeBl").Object;e.exports=function(e){return r.getOwnPropertyNames(e)}},gRE1:function(e,t,n){e.exports={default:n("TmV0"),__esModule:!0}},gcUb:function(e,t,n){"use strict";var r=n("7ar3"),i=n("WER7"),a=i(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&a(e,".prototype.")>-1?i(n):n}},h65t:function(e,t,n){var r=n("UuGF"),i=n("52gC");e.exports=function(e){return function(t,n){var a,o,s=String(i(t)),l=r(n),c=s.length;return l<0||l>=c?e?"":void 0:(a=s.charCodeAt(l))<55296||a>56319||l+1===c||(o=s.charCodeAt(l+1))<56320||o>57343?e?s.charAt(l):a:e?s.slice(l,l+2):o-56320+(a-55296<<10)+65536}}},hJx8:function(e,t,n){var r=n("evD5"),i=n("X8DO");e.exports=n("+E39")?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},hM5s:function(e,t,n){n("cnZr"),e.exports=n("FeBl").setImmediate},hyEB:function(e,t,n){"use strict";t.__esModule=!0;var r=r||{};r.Utils=r.Utils||{},r.Utils.focusFirstDescendant=function(e){for(var t=0;t<e.childNodes.length;t++){var n=e.childNodes[t];if(r.Utils.attemptFocus(n)||r.Utils.focusFirstDescendant(n))return!0}return!1},r.Utils.focusLastDescendant=function(e){for(var t=e.childNodes.length-1;t>=0;t--){var n=e.childNodes[t];if(r.Utils.attemptFocus(n)||r.Utils.focusLastDescendant(n))return!0}return!1},r.Utils.attemptFocus=function(e){if(!r.Utils.isFocusable(e))return!1;r.Utils.IgnoreUtilFocusChanges=!0;try{e.focus()}catch(e){}return r.Utils.IgnoreUtilFocusChanges=!1,document.activeElement===e},r.Utils.isFocusable=function(e){if(e.tabIndex>0||0===e.tabIndex&&null!==e.getAttribute("tabIndex"))return!0;if(e.disabled)return!1;switch(e.nodeName){case"A":return!!e.href&&"ignore"!==e.rel;case"INPUT":return"hidden"!==e.type&&"file"!==e.type;case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},r.Utils.triggerEvent=function(e,t){var n=void 0;n=/^mouse|click/.test(t)?"MouseEvents":/^key/.test(t)?"KeyboardEvent":"HTMLEvents";for(var r=document.createEvent(n),i=arguments.length,a=Array(i>2?i-2:0),o=2;o<i;o++)a[o-2]=arguments[o];return r.initEvent.apply(r,[t].concat(a)),e.dispatchEvent?e.dispatchEvent(r):e.fireEvent("on"+t,r),e},r.Utils.keys={tab:9,enter:13,space:32,left:37,up:38,right:39,down:40,esc:27},t.default=r.Utils},i3rX:function(e,t,n){"use strict";var r=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===i}(e)}(e)};var i="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function a(e,t){var n;return t&&!0===t.clone&&r(e)?s((n=e,Array.isArray(n)?[]:{}),e,t):e}function o(e,t,n){var i=e.slice();return t.forEach(function(t,o){void 0===i[o]?i[o]=a(t,n):r(t)?i[o]=s(e[o],t,n):-1===e.indexOf(t)&&i.push(a(t,n))}),i}function s(e,t,n){var i=Array.isArray(t);return i===Array.isArray(e)?i?((n||{arrayMerge:o}).arrayMerge||o)(e,t,n):function(e,t,n){var i={};return r(e)&&Object.keys(e).forEach(function(t){i[t]=a(e[t],n)}),Object.keys(t).forEach(function(o){r(t[o])&&e[o]?i[o]=s(e[o],t[o],n):i[o]=a(t[o],n)}),i}(e,t,n):a(t,n)}s.all=function(e,t){if(!Array.isArray(e)||e.length<2)throw new Error("first argument should be an array with at least two elements");return e.reduce(function(e,n){return s(e,n,t)})};var l=s;e.exports=l},iInB:function(e,t,n){var r=n("TcQ7"),i=n("LKZe").f;n("uqUo")("getOwnPropertyDescriptor",function(){return function(e,t){return i(r(e),t)}})},iUbK:function(e,t,n){var r=n("7KvD").navigator;e.exports=r&&r.userAgent||""},iqGf:function(e,t,n){var r;r=function(e){return function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/",t(t.s=3)}([function(t,n){t.exports=e},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){return e&&e.__esModule?e:{default:e}}(n(0)),i=window.videojs||r.default;"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(e,t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(e),r=1;r<arguments.length;r++){var i=arguments[r];if(null!=i)for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])}return n},writable:!0,configurable:!0});var a=["loadeddata","canplay","canplaythrough","play","pause","waiting","playing","ended","error"];t.default={name:"video-player",props:{start:{type:Number,default:0},crossOrigin:{type:String,default:""},playsinline:{type:Boolean,default:!1},customEventName:{type:String,default:"statechanged"},options:{type:Object,required:!0},events:{type:Array,default:function(){return[]}},globalOptions:{type:Object,default:function(){return{controls:!0,controlBar:{remainingTimeDisplay:!1,playToggle:{},progressControl:{},fullscreenToggle:{},volumeMenuButton:{inline:!1,vertical:!0}},techOrder:["html5"],plugins:{}}}},globalEvents:{type:Array,default:function(){return[]}}},data:function(){return{player:null,reseted:!0}},mounted:function(){this.player||this.initialize()},beforeDestroy:function(){this.player&&this.dispose()},methods:{initialize:function(){var e=this,t=Object.assign({},this.globalOptions,this.options);this.playsinline&&(this.$refs.video.setAttribute("playsinline",this.playsinline),this.$refs.video.setAttribute("webkit-playsinline",this.playsinline),this.$refs.video.setAttribute("x5-playsinline",this.playsinline),this.$refs.video.setAttribute("x5-video-player-type","h5"),this.$refs.video.setAttribute("x5-video-player-fullscreen",!1)),""!==this.crossOrigin&&(this.$refs.video.crossOrigin=this.crossOrigin,this.$refs.video.setAttribute("crossOrigin",this.crossOrigin));var n=function(t,n){t&&e.$emit(t,e.player),n&&e.$emit(e.customEventName,function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},t,n))};t.plugins&&delete t.plugins.__ob__;var r=this;this.player=i(this.$refs.video,t,function(){for(var e=this,t=a.concat(r.events).concat(r.globalEvents),i={},o=0;o<t.length;o++)"string"==typeof t[o]&&void 0===i[t[o]]&&function(t){i[t]=null,e.on(t,function(){n(t,!0)})}(t[o]);this.on("timeupdate",function(){n("timeupdate",this.currentTime())}),r.$emit("ready",this)})},dispose:function(e){var t=this;this.player&&this.player.dispose&&("Flash"!==this.player.techName_&&this.player.pause&&this.player.pause(),this.player.dispose(),this.player=null,this.$nextTick(function(){t.reseted=!1,t.$nextTick(function(){t.reseted=!0,t.$nextTick(function(){e&&e()})})}))}},watch:{options:{deep:!0,handler:function(e,t){var n=this;this.dispose(function(){e&&e.sources&&e.sources.length&&n.initialize()})}}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=n.n(r);for(var a in r)["default","default"].indexOf(a)<0&&function(e){n.d(t,e,function(){return r[e]})}(a);var o=n(5),s=n(4)(i.a,o.a,!1,null,null,null);t.default=s.exports},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.install=t.videoPlayer=t.videojs=void 0;var i=r(n(0)),a=r(n(2)),o=window.videojs||i.default,s=function(e,t){t&&(t.options&&(a.default.props.globalOptions.default=function(){return t.options}),t.events&&(a.default.props.globalEvents.default=function(){return t.events})),e.component(a.default.name,a.default)},l={videojs:o,videoPlayer:a.default,install:s};t.default=l,t.videojs=o,t.videoPlayer=a.default,t.install=s},function(e,t){e.exports=function(e,t,n,r,i,a){var o,s=e=e||{},l=typeof e.default;"object"!==l&&"function"!==l||(o=e,s=e.default);var c,u="function"==typeof s?s.options:s;if(t&&(u.render=t.render,u.staticRenderFns=t.staticRenderFns,u._compiled=!0),n&&(u.functional=!0),i&&(u._scopeId=i),a?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=c):r&&(c=r),c){var h=u.functional,d=h?u.render:u.beforeCreate;h?(u._injectStyles=c,u.render=function(e,t){return c.call(t),d(e,t)}):u.beforeCreate=d?[].concat(d,c):[c]}return{esModule:o,exports:s,options:u}}},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.reseted?n("div",{staticClass:"video-player"},[n("video",{ref:"video",staticClass:"video-js"})]):e._e()},staticRenderFns:[]};t.a=r}])},e.exports=r(n("Dia2"))},jFbC:function(e,t,n){n("Cdx3"),e.exports=n("FeBl").Object.keys},"jKW+":function(e,t,n){"use strict";var r=n("kM2E"),i=n("qARP"),a=n("dNDb");r(r.S,"Promise",{try:function(e){var t=i.f(this),n=a(e);return(n.e?t.reject:t.resolve)(n.v),t.promise}})},jmaC:function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){for(var t=1,n=arguments.length;t<n;t++){var r=arguments[t]||{};for(var i in r)if(r.hasOwnProperty(i)){var a=r[i];void 0!==a&&(e[i]=a)}}return e}},jwfv:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("Dd8w"),i=n.n(r),a=n("pFYg"),o=n.n(a),s=/%[sdj%]/g,l=function(){};function c(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=1,i=t[0],a=t.length;if("function"==typeof i)return i.apply(null,t.slice(1));if("string"==typeof i){for(var o=String(i).replace(s,function(e){if("%%"===e)return"%";if(r>=a)return e;switch(e){case"%s":return String(t[r++]);case"%d":return Number(t[r++]);case"%j":try{return JSON.stringify(t[r++])}catch(e){return"[Circular]"}break;default:return e}}),l=t[r];r<a;l=t[++r])o+=" "+l;return o}return i}function u(e,t){return void 0===e||null===e||(!("array"!==t||!Array.isArray(e)||e.length)||!(!function(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"pattern"===e}(t)||"string"!=typeof e||e))}function h(e,t,n){var r=0,i=e.length;!function a(o){if(o&&o.length)n(o);else{var s=r;r+=1,s<i?t(e[s],a):n([])}}([])}function d(e,t,n,r){if(t.first)return h(function(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,e[n])}),t}(e),n,r);var i=t.firstFields||[];!0===i&&(i=Object.keys(e));var a=Object.keys(e),o=a.length,s=0,l=[],c=function(e){l.push.apply(l,e),++s===o&&r(l)};a.forEach(function(t){var r=e[t];-1!==i.indexOf(t)?h(r,n,c):function(e,t,n){var r=[],i=0,a=e.length;function o(e){r.push.apply(r,e),++i===a&&n(r)}e.forEach(function(e){t(e,o)})}(r,n,c)})}function f(e){return function(t){return t&&t.message?(t.field=t.field||e.fullField,t):{message:t,field:t.field||e.fullField}}}function p(e,t){if(t)for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];"object"===(void 0===r?"undefined":o()(r))&&"object"===o()(e[n])?e[n]=i()({},e[n],r):e[n]=r}return e}var A=function(e,t,n,r,i,a){!e.required||n.hasOwnProperty(e.field)&&!u(t,a||e.type)||r.push(c(i.messages.required,e.fullField))};var g=function(e,t,n,r,i){(/^\s+$/.test(t)||""===t)&&r.push(c(i.messages.whitespace,e.fullField))},m={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},v={integer:function(e){return v.number(e)&&parseInt(e,10)===e},float:function(e){return v.number(e)&&!v.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(e){return!1}},date:function(e){return"function"==typeof e.getTime&&"function"==typeof e.getMonth&&"function"==typeof e.getYear},number:function(e){return!isNaN(e)&&"number"==typeof e},object:function(e){return"object"===(void 0===e?"undefined":o()(e))&&!v.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&!!e.match(m.email)&&e.length<255},url:function(e){return"string"==typeof e&&!!e.match(m.url)},hex:function(e){return"string"==typeof e&&!!e.match(m.hex)}};var y="enum";var b={required:A,whitespace:g,type:function(e,t,n,r,i){if(e.required&&void 0===t)A(e,t,n,r,i);else{var a=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(a)>-1?v[a](t)||r.push(c(i.messages.types[a],e.fullField,e.type)):a&&(void 0===t?"undefined":o()(t))!==e.type&&r.push(c(i.messages.types[a],e.fullField,e.type))}},range:function(e,t,n,r,i){var a="number"==typeof e.len,o="number"==typeof e.min,s="number"==typeof e.max,l=t,u=null,h="number"==typeof t,d="string"==typeof t,f=Array.isArray(t);if(h?u="number":d?u="string":f&&(u="array"),!u)return!1;f&&(l=t.length),d&&(l=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),a?l!==e.len&&r.push(c(i.messages[u].len,e.fullField,e.len)):o&&!s&&l<e.min?r.push(c(i.messages[u].min,e.fullField,e.min)):s&&!o&&l>e.max?r.push(c(i.messages[u].max,e.fullField,e.max)):o&&s&&(l<e.min||l>e.max)&&r.push(c(i.messages[u].range,e.fullField,e.min,e.max))},enum:function(e,t,n,r,i){e[y]=Array.isArray(e[y])?e[y]:[],-1===e[y].indexOf(t)&&r.push(c(i.messages[y],e.fullField,e[y].join(", ")))},pattern:function(e,t,n,r,i){e.pattern&&(e.pattern instanceof RegExp?(e.pattern.lastIndex=0,e.pattern.test(t)||r.push(c(i.messages.pattern.mismatch,e.fullField,t,e.pattern))):"string"==typeof e.pattern&&(new RegExp(e.pattern).test(t)||r.push(c(i.messages.pattern.mismatch,e.fullField,t,e.pattern))))}};var w="enum";var x=function(e,t,n,r,i){var a=e.type,o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(u(t,a)&&!e.required)return n();b.required(e,t,r,o,i,a),u(t,a)||b.type(e,t,r,o,i)}n(o)},_={string:function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(u(t,"string")&&!e.required)return n();b.required(e,t,r,a,i,"string"),u(t,"string")||(b.type(e,t,r,a,i),b.range(e,t,r,a,i),b.pattern(e,t,r,a,i),!0===e.whitespace&&b.whitespace(e,t,r,a,i))}n(a)},method:function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(u(t)&&!e.required)return n();b.required(e,t,r,a,i),void 0!==t&&b.type(e,t,r,a,i)}n(a)},number:function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(u(t)&&!e.required)return n();b.required(e,t,r,a,i),void 0!==t&&(b.type(e,t,r,a,i),b.range(e,t,r,a,i))}n(a)},boolean:function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(u(t)&&!e.required)return n();b.required(e,t,r,a,i),void 0!==t&&b.type(e,t,r,a,i)}n(a)},regexp:function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(u(t)&&!e.required)return n();b.required(e,t,r,a,i),u(t)||b.type(e,t,r,a,i)}n(a)},integer:function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(u(t)&&!e.required)return n();b.required(e,t,r,a,i),void 0!==t&&(b.type(e,t,r,a,i),b.range(e,t,r,a,i))}n(a)},float:function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(u(t)&&!e.required)return n();b.required(e,t,r,a,i),void 0!==t&&(b.type(e,t,r,a,i),b.range(e,t,r,a,i))}n(a)},array:function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(u(t,"array")&&!e.required)return n();b.required(e,t,r,a,i,"array"),u(t,"array")||(b.type(e,t,r,a,i),b.range(e,t,r,a,i))}n(a)},object:function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(u(t)&&!e.required)return n();b.required(e,t,r,a,i),void 0!==t&&b.type(e,t,r,a,i)}n(a)},enum:function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(u(t)&&!e.required)return n();b.required(e,t,r,a,i),t&&b[w](e,t,r,a,i)}n(a)},pattern:function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(u(t,"string")&&!e.required)return n();b.required(e,t,r,a,i),u(t,"string")||b.pattern(e,t,r,a,i)}n(a)},date:function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(u(t)&&!e.required)return n();if(b.required(e,t,r,a,i),!u(t)){var o=void 0;o="number"==typeof t?new Date(t):t,b.type(e,o,r,a,i),o&&b.range(e,o.getTime(),r,a,i)}}n(a)},url:x,hex:x,email:x,required:function(e,t,n,r,i){var a=[],s=Array.isArray(t)?"array":void 0===t?"undefined":o()(t);b.required(e,t,r,a,i,s),n(a)}};function C(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var S=C();function k(e){this.rules=null,this._messages=S,this.define(e)}k.prototype={messages:function(e){return e&&(this._messages=p(C(),e)),this._messages},define:function(e){if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==(void 0===e?"undefined":o()(e))||Array.isArray(e))throw new Error("Rules must be an object");this.rules={};var t=void 0,n=void 0;for(t in e)e.hasOwnProperty(t)&&(n=e[t],this.rules[t]=Array.isArray(n)?n:[n])},validate:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments[2],a=e,s=n,u=r;if("function"==typeof s&&(u=s,s={}),this.rules&&0!==Object.keys(this.rules).length){if(s.messages){var h=this.messages();h===S&&(h=C()),p(h,s.messages),s.messages=h}else s.messages=this.messages();var A=void 0,g=void 0,m={};(s.keys||Object.keys(this.rules)).forEach(function(n){A=t.rules[n],g=a[n],A.forEach(function(r){var o=r;"function"==typeof o.transform&&(a===e&&(a=i()({},a)),g=a[n]=o.transform(g)),(o="function"==typeof o?{validator:o}:i()({},o)).validator=t.getValidationMethod(o),o.field=n,o.fullField=o.fullField||n,o.type=t.getType(o),o.validator&&(m[n]=m[n]||[],m[n].push({rule:o,value:g,source:a,field:n}))})});var v={};d(m,s,function(e,t){var n=e.rule,r=!("object"!==n.type&&"array"!==n.type||"object"!==o()(n.fields)&&"object"!==o()(n.defaultField));function a(e,t){return i()({},t,{fullField:n.fullField+"."+e})}function u(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(Array.isArray(o)||(o=[o]),o.length&&l("async-validator:",o),o.length&&n.message&&(o=[].concat(n.message)),o=o.map(f(n)),s.first&&o.length)return v[n.field]=1,t(o);if(r){if(n.required&&!e.value)return o=n.message?[].concat(n.message).map(f(n)):s.error?[s.error(n,c(s.messages.required,n.field))]:[],t(o);var u={};if(n.defaultField)for(var h in e.value)e.value.hasOwnProperty(h)&&(u[h]=n.defaultField);for(var d in u=i()({},u,e.rule.fields))if(u.hasOwnProperty(d)){var p=Array.isArray(u[d])?u[d]:[u[d]];u[d]=p.map(a.bind(null,d))}var A=new k(u);A.messages(s.messages),e.rule.options&&(e.rule.options.messages=s.messages,e.rule.options.error=s.error),A.validate(e.value,e.rule.options||s,function(e){t(e&&e.length?o.concat(e):e)})}else t(o)}r=r&&(n.required||!n.required&&e.value),n.field=e.field;var h=n.validator(n,e.value,u,e.source,s);h&&h.then&&h.then(function(){return u()},function(e){return u(e)})},function(e){!function(e){var t,n=void 0,r=void 0,i=[],a={};for(n=0;n<e.length;n++)t=e[n],Array.isArray(t)?i=i.concat.apply(i,t):i.push(t);if(i.length)for(n=0;n<i.length;n++)a[r=i[n].field]=a[r]||[],a[r].push(i[n]);else i=null,a=null;u(i,a)}(e)})}else u&&u()},getType:function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!=typeof e.validator&&e.type&&!_.hasOwnProperty(e.type))throw new Error(c("Unknown rule type %s",e.type));return e.type||"string"},getValidationMethod:function(e){if("function"==typeof e.validator)return e.validator;var t=Object.keys(e),n=t.indexOf("message");return-1!==n&&t.splice(n,1),1===t.length&&"required"===t[0]?_.required:_[this.getType(e)]||!1}},k.register=function(e,t){if("function"!=typeof t)throw new Error("Cannot register a validator by type, validator is not a function");_[e]=t},k.messages=S;t.default=k},jyFz:function(e,t,n){var r=function(){return this}()||Function("return this")(),i=r.regeneratorRuntime&&Object.getOwnPropertyNames(r).indexOf("regeneratorRuntime")>=0,a=i&&r.regeneratorRuntime;if(r.regeneratorRuntime=void 0,e.exports=n("SldL"),i)r.regeneratorRuntime=a;else try{delete r.regeneratorRuntime}catch(e){r.regeneratorRuntime=void 0}},kM2E:function(e,t,n){var r=n("7KvD"),i=n("FeBl"),a=n("+ZMJ"),o=n("hJx8"),s=n("D2L2"),l=function(e,t,n){var c,u,h,d=e&l.F,f=e&l.G,p=e&l.S,A=e&l.P,g=e&l.B,m=e&l.W,v=f?i:i[t]||(i[t]={}),y=v.prototype,b=f?r:p?r[t]:(r[t]||{}).prototype;for(c in f&&(n=t),n)(u=!d&&b&&void 0!==b[c])&&s(v,c)||(h=u?b[c]:n[c],v[c]=f&&"function"!=typeof b[c]?n[c]:g&&u?a(h,r):m&&b[c]==h?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(h):A&&"function"==typeof h?a(Function.call,h):h,A&&((v.virtual||(v.virtual={}))[c]=h,e&l.R&&y&&!y[c]&&o(y,c,h)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},kNJA:function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=59)}({0:function(e,t,n){"use strict";function r(e,t,n,r,i,a,o,s){var l,c="function"==typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),a&&(c._scopeId="data-v-"+a),o?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},c._ssrRegister=l):i&&(l=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,l):[l]}return{exports:e,options:c}}n.d(t,"a",function(){return r})},14:function(e,t){e.exports=n("fEB+")},18:function(e,t){e.exports=n("EKTV")},21:function(e,t){e.exports=n("E/in")},26:function(e,t){e.exports=n("nvbp")},3:function(e,t){e.exports=n("ylDJ")},31:function(e,t){e.exports=n("zTCi")},40:function(e,t){e.exports=n("hyEB")},51:function(e,t){e.exports=n("RDoK")},59:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this.$createElement,t=this._self._c||e;return t("div",{class:["el-cascader-panel",this.border&&"is-bordered"],on:{keydown:this.handleKeyDown}},this._l(this.menus,function(e,n){return t("cascader-menu",{key:n,ref:"menu",refInFor:!0,attrs:{index:n,nodes:e}})}),1)};r._withStripped=!0;var i=n(26),a=n.n(i),o=n(14),s=n.n(o),l=n(18),c=n.n(l),u=n(51),h=n.n(u),d=n(3),f=function(e){return e.stopPropagation()},p={inject:["panel"],components:{ElCheckbox:c.a,ElRadio:h.a},props:{node:{required:!0},nodeId:String},computed:{config:function(){return this.panel.config},isLeaf:function(){return this.node.isLeaf},isDisabled:function(){return this.node.isDisabled},checkedValue:function(){return this.panel.checkedValue},isChecked:function(){return this.node.isSameNode(this.checkedValue)},inActivePath:function(){return this.isInPath(this.panel.activePath)},inCheckedPath:function(){var e=this;return!!this.config.checkStrictly&&this.panel.checkedNodePaths.some(function(t){return e.isInPath(t)})},value:function(){return this.node.getValueByOption()}},methods:{handleExpand:function(){var e=this,t=this.panel,n=this.node,r=this.isDisabled,i=this.config,a=i.multiple;!i.checkStrictly&&r||n.loading||(i.lazy&&!n.loaded?t.lazyLoad(n,function(){var t=e.isLeaf;if(t||e.handleExpand(),a){var r=!!t&&n.checked;e.handleMultiCheckChange(r)}}):t.handleExpand(n))},handleCheckChange:function(){var e=this.panel,t=this.value,n=this.node;e.handleCheckChange(t),e.handleExpand(n)},handleMultiCheckChange:function(e){this.node.doCheck(e),this.panel.calculateMultiCheckedValue()},isInPath:function(e){var t=this.node;return(e[t.level-1]||{}).uid===t.uid},renderPrefix:function(e){var t=this.isLeaf,n=this.isChecked,r=this.config,i=r.checkStrictly;return r.multiple?this.renderCheckbox(e):i?this.renderRadio(e):t&&n?this.renderCheckIcon(e):null},renderPostfix:function(e){var t=this.node,n=this.isLeaf;return t.loading?this.renderLoadingIcon(e):n?null:this.renderExpandIcon(e)},renderCheckbox:function(e){var t=this.node,n=this.config,r=this.isDisabled,i={on:{change:this.handleMultiCheckChange},nativeOn:{}};return n.checkStrictly&&(i.nativeOn.click=f),e("el-checkbox",a()([{attrs:{value:t.checked,indeterminate:t.indeterminate,disabled:r}},i]))},renderRadio:function(e){var t=this.checkedValue,n=this.value,r=this.isDisabled;return Object(d.isEqual)(n,t)&&(n=t),e("el-radio",{attrs:{value:t,label:n,disabled:r},on:{change:this.handleCheckChange},nativeOn:{click:f}},[e("span")])},renderCheckIcon:function(e){return e("i",{class:"el-icon-check el-cascader-node__prefix"})},renderLoadingIcon:function(e){return e("i",{class:"el-icon-loading el-cascader-node__postfix"})},renderExpandIcon:function(e){return e("i",{class:"el-icon-arrow-right el-cascader-node__postfix"})},renderContent:function(e){var t=this.panel,n=this.node,r=t.renderLabelFn;return e("span",{class:"el-cascader-node__label"},[(r?r({node:n,data:n.data}):null)||n.label])}},render:function(e){var t=this,n=this.inActivePath,r=this.inCheckedPath,i=this.isChecked,o=this.isLeaf,s=this.isDisabled,l=this.config,c=this.nodeId,u=l.expandTrigger,h=l.checkStrictly,d=l.multiple,f=!h&&s,p={on:{}};return"click"===u?p.on.click=this.handleExpand:(p.on.mouseenter=function(e){t.handleExpand(),t.$emit("expand",e)},p.on.focus=function(e){t.handleExpand(),t.$emit("expand",e)}),!o||s||h||d||(p.on.click=this.handleCheckChange),e("li",a()([{attrs:{role:"menuitem",id:c,"aria-expanded":n,tabindex:f?null:-1},class:{"el-cascader-node":!0,"is-selectable":h,"in-active-path":n,"in-checked-path":r,"is-active":i,"is-disabled":f}},p]),[this.renderPrefix(e),this.renderContent(e),this.renderPostfix(e)])}},A=n(0),g=Object(A.a)(p,void 0,void 0,!1,null,null,null);g.options.__file="packages/cascader-panel/src/cascader-node.vue";var m=g.exports,v=n(6),y={name:"ElCascaderMenu",mixins:[n.n(v).a],inject:["panel"],components:{ElScrollbar:s.a,CascaderNode:m},props:{nodes:{type:Array,required:!0},index:Number},data:function(){return{activeNode:null,hoverTimer:null,id:Object(d.generateId)()}},computed:{isEmpty:function(){return!this.nodes.length},menuId:function(){return"cascader-menu-"+this.id+"-"+this.index}},methods:{handleExpand:function(e){this.activeNode=e.target},handleMouseMove:function(e){var t=this.activeNode,n=this.hoverTimer,r=this.$refs.hoverZone;if(t&&r)if(t.contains(e.target)){clearTimeout(n);var i=this.$el.getBoundingClientRect().left,a=e.clientX-i,o=this.$el,s=o.offsetWidth,l=o.offsetHeight,c=t.offsetTop,u=c+t.offsetHeight;r.innerHTML='\n <path style="pointer-events: auto;" fill="transparent" d="M'+a+" "+c+" L"+s+" 0 V"+c+' Z" />\n <path style="pointer-events: auto;" fill="transparent" d="M'+a+" "+u+" L"+s+" "+l+" V"+u+' Z" />\n '}else n||(this.hoverTimer=setTimeout(this.clearHoverZone,this.panel.config.hoverThreshold))},clearHoverZone:function(){var e=this.$refs.hoverZone;e&&(e.innerHTML="")},renderEmptyText:function(e){return e("div",{class:"el-cascader-menu__empty-text"},[this.t("el.cascader.noData")])},renderNodeList:function(e){var t=this.menuId,n=this.panel.isHoverMenu,r={on:{}};n&&(r.on.expand=this.handleExpand);var i=this.nodes.map(function(n,i){var o=n.hasChildren;return e("cascader-node",a()([{key:n.uid,attrs:{node:n,"node-id":t+"-"+i,"aria-haspopup":o,"aria-owns":o?t:null}},r]))});return[].concat(i,[n?e("svg",{ref:"hoverZone",class:"el-cascader-menu__hover-zone"}):null])}},render:function(e){var t=this.isEmpty,n=this.menuId,r={nativeOn:{}};return this.panel.isHoverMenu&&(r.nativeOn.mousemove=this.handleMouseMove),e("el-scrollbar",a()([{attrs:{tag:"ul",role:"menu",id:n,"wrap-class":"el-cascader-menu__wrap","view-class":{"el-cascader-menu__list":!0,"is-empty":t}},class:"el-cascader-menu"},r]),[t?this.renderEmptyText(e):this.renderNodeList(e)])}},b=Object(A.a)(y,void 0,void 0,!1,null,null,null);b.options.__file="packages/cascader-panel/src/cascader-menu.vue";var w=b.exports,x=n(21),_=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var C=0,S=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.data=t,this.config=n,this.parent=r||null,this.level=this.parent?this.parent.level+1:1,this.uid=C++,this.initState(),this.initChildren()}return e.prototype.initState=function(){var e=this.config,t=e.value,n=e.label;this.value=this.data[t],this.label=this.data[n],this.pathNodes=this.calculatePathNodes(),this.path=this.pathNodes.map(function(e){return e.value}),this.pathLabels=this.pathNodes.map(function(e){return e.label}),this.loading=!1,this.loaded=!1},e.prototype.initChildren=function(){var t=this,n=this.config,r=n.children,i=this.data[r];this.hasChildren=Array.isArray(i),this.children=(i||[]).map(function(r){return new e(r,n,t)})},e.prototype.calculatePathNodes=function(){for(var e=[this],t=this.parent;t;)e.unshift(t),t=t.parent;return e},e.prototype.getPath=function(){return this.path},e.prototype.getValue=function(){return this.value},e.prototype.getValueByOption=function(){return this.config.emitPath?this.getPath():this.getValue()},e.prototype.getText=function(e,t){return e?this.pathLabels.join(t):this.label},e.prototype.isSameNode=function(e){var t=this.getValueByOption();return this.config.multiple&&Array.isArray(e)?e.some(function(e){return Object(d.isEqual)(e,t)}):Object(d.isEqual)(e,t)},e.prototype.broadcast=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i="onParent"+Object(d.capitalize)(e);this.children.forEach(function(t){t&&(t.broadcast.apply(t,[e].concat(n)),t[i]&&t[i].apply(t,n))})},e.prototype.emit=function(e){var t=this.parent,n="onChild"+Object(d.capitalize)(e);if(t){for(var r=arguments.length,i=Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];t[n]&&t[n].apply(t,i),t.emit.apply(t,[e].concat(i))}},e.prototype.onParentCheck=function(e){this.isDisabled||this.setCheckState(e)},e.prototype.onChildCheck=function(){var e=this.children.filter(function(e){return!e.isDisabled}),t=!!e.length&&e.every(function(e){return e.checked});this.setCheckState(t)},e.prototype.setCheckState=function(e){var t=this.children.length,n=this.children.reduce(function(e,t){return e+(t.checked?1:t.indeterminate?.5:0)},0);this.checked=e,this.indeterminate=n!==t&&n>0},e.prototype.syncCheckState=function(e){var t=this.getValueByOption(),n=this.isSameNode(e,t);this.doCheck(n)},e.prototype.doCheck=function(e){this.checked!==e&&(this.config.checkStrictly?this.checked=e:(this.broadcast("check",e),this.setCheckState(e),this.emit("check")))},_(e,[{key:"isDisabled",get:function(){var e=this.data,t=this.parent,n=this.config,r=n.disabled,i=n.checkStrictly;return e[r]||!i&&t&&t.isDisabled}},{key:"isLeaf",get:function(){var e=this.data,t=this.loaded,n=this.hasChildren,r=this.children,i=this.config,a=i.lazy,o=i.leaf;if(a){var s=Object(x.isDef)(e[o])?e[o]:!!t&&!r.length;return this.hasChildren=!s,s}return!n}}]),e}();var k=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.config=n,this.initNodes(t)}return e.prototype.initNodes=function(e){var t=this;e=Object(d.coerceTruthyValueToArray)(e),this.nodes=e.map(function(e){return new S(e,t.config)}),this.flattedNodes=this.getFlattedNodes(!1,!1),this.leafNodes=this.getFlattedNodes(!0,!1)},e.prototype.appendNode=function(e,t){var n=new S(e,this.config,t);(t?t.children:this.nodes).push(n)},e.prototype.appendNodes=function(e,t){var n=this;(e=Object(d.coerceTruthyValueToArray)(e)).forEach(function(e){return n.appendNode(e,t)})},e.prototype.getNodes=function(){return this.nodes},e.prototype.getFlattedNodes=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=e?this.leafNodes:this.flattedNodes;return t?n:function e(t,n){return t.reduce(function(t,r){return r.isLeaf?t.push(r):(!n&&t.push(r),t=t.concat(e(r.children,n))),t},[])}(this.nodes,e)},e.prototype.getNodeByValue=function(e){if(e){var t=this.getFlattedNodes(!1,!this.config.lazy).filter(function(t){return Object(d.valueEquals)(t.path,e)||t.value===e});return t&&t.length?t[0]:null}return null},e}(),B=n(9),E=n.n(B),T=n(40),I=n.n(T),M=n(31),F=n.n(M),D=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},P=I.a.keys,O={expandTrigger:"click",multiple:!1,checkStrictly:!1,emitPath:!0,lazy:!1,lazyLoad:d.noop,value:"value",label:"label",children:"children",leaf:"leaf",disabled:"disabled",hoverThreshold:500},L=function(e){return!e.getAttribute("aria-owns")},R=function(e,t){var n=e.parentNode;if(n){var r=n.querySelectorAll('.el-cascader-node[tabindex="-1"]');return r[Array.prototype.indexOf.call(r,e)+t]||null}return null},N=function(e,t){if(e){var n=e.id.split("-");return Number(n[n.length-2])}},U=function(e){e&&(e.focus(),!L(e)&&e.click())},H={name:"ElCascaderPanel",components:{CascaderMenu:w},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 E()(D({},O),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:{options:{handler:function(){this.initStore()},immediate:!0,deep:!0},value:function(){this.syncCheckedValue(),this.checkStrictly&&this.calculateCheckedNodePaths()},checkedValue:function(e){Object(d.isEqual)(e,this.value)||(this.checkStrictly&&this.calculateCheckedNodePaths(),this.$emit("input",e),this.$emit("change",e))}},mounted:function(){Object(d.isEmpty)(this.value)||this.syncCheckedValue()},methods:{initStore:function(){var e=this.config,t=this.options;e.lazy&&Object(d.isEmpty)(t)?this.lazyLoad():(this.store=new k(t,e),this.menus=[this.store.getNodes()],this.syncMenuState())},syncCheckedValue:function(){var e=this.value,t=this.checkedValue;Object(d.isEqual)(e,t)||(this.activePath=[],this.checkedValue=e,this.syncMenuState())},syncMenuState:function(){var e=this.multiple,t=this.checkStrictly;this.syncActivePath(),e&&this.syncMultiCheckState(),t&&this.calculateCheckedNodePaths(),this.$nextTick(this.scrollIntoView)},syncMultiCheckState:function(){var e=this;this.getFlattedNodes(this.leafOnly).forEach(function(t){t.syncCheckState(e.checkedValue)})},syncActivePath:function(){var e=this,t=this.store,n=this.multiple,r=this.activePath,i=this.checkedValue;if(Object(d.isEmpty)(r))if(Object(d.isEmpty)(i))this.activePath=[],this.menus=[t.getNodes()];else{var a=n?i[0]:i,o=((this.getNodeByValue(a)||{}).pathNodes||[]).slice(0,-1);this.expandNodes(o)}else{var s=r.map(function(t){return e.getNodeByValue(t.getValue())});this.expandNodes(s)}},expandNodes:function(e){var t=this;e.forEach(function(e){return t.handleExpand(e,!0)})},calculateCheckedNodePaths:function(){var e=this,t=this.checkedValue,n=this.multiple?Object(d.coerceTruthyValueToArray)(t):[t];this.checkedNodePaths=n.map(function(t){var n=e.getNodeByValue(t);return n?n.pathNodes:[]})},handleKeyDown:function(e){var t=e.target;switch(e.keyCode){case P.up:var n=R(t,-1);U(n);break;case P.down:var r=R(t,1);U(r);break;case P.left:var i=this.$refs.menu[N(t)-1];if(i){var a=i.$el.querySelector('.el-cascader-node[aria-expanded="true"]');U(a)}break;case P.right:var o=this.$refs.menu[N(t)+1];if(o){var s=o.$el.querySelector('.el-cascader-node[tabindex="-1"]');U(s)}break;case P.enter:!function(e){if(e){var t=e.querySelector("input");t?t.click():L(e)&&e.click()}}(t);break;case P.esc:case P.tab:this.$emit("close");break;default:return}},handleExpand:function(e,t){var n=this.activePath,r=e.level,i=n.slice(0,r-1),a=this.menus.slice(0,r);if(e.isLeaf||(i.push(e),a.push(e.children)),this.activePath=i,this.menus=a,!t){var o=i.map(function(e){return e.getValue()}),s=n.map(function(e){return e.getValue()});Object(d.valueEquals)(o,s)||(this.$emit("active-item-change",o),this.$emit("expand-change",o))}},handleCheckChange:function(e){this.checkedValue=e},lazyLoad:function(e,t){var n=this,r=this.config;e||(e=e||{root:!0,level:0},this.store=new k([],r),this.menus=[this.store.getNodes()]),e.loading=!0;r.lazyLoad(e,function(r){var i=e.root?null:e;if(r&&r.length&&n.store.appendNodes(r,i),e.loading=!1,e.loaded=!0,Array.isArray(n.checkedValue)){var a=n.checkedValue[n.loadCount++],o=n.config.value,s=n.config.leaf;if(Array.isArray(r)&&r.filter(function(e){return e[o]===a}).length>0){var l=n.store.getNodeByValue(a);l.data[s]||n.lazyLoad(l,function(){n.handleExpand(l)}),n.loadCount===n.checkedValue.length&&n.$parent.computePresentText()}}t&&t(r)})},calculateMultiCheckedValue:function(){this.checkedValue=this.getCheckedNodes(this.leafOnly).map(function(e){return e.getValueByOption()})},scrollIntoView:function(){this.$isServer||(this.$refs.menu||[]).forEach(function(e){var t=e.$el;if(t){var n=t.querySelector(".el-scrollbar__wrap"),r=t.querySelector(".el-cascader-node.is-active")||t.querySelector(".el-cascader-node.in-active-path");F()(n,r)}})},getNodeByValue:function(e){return this.store.getNodeByValue(e)},getFlattedNodes:function(e){var t=!this.config.lazy;return this.store.getFlattedNodes(e,t)},getCheckedNodes:function(e){var t=this.checkedValue;return this.multiple?this.getFlattedNodes(e).filter(function(e){return e.checked}):Object(d.isEmpty)(t)?[]:[this.getNodeByValue(t)]},clearCheckedNodes:function(){var e=this.config,t=this.leafOnly,n=e.multiple,r=e.emitPath;n?(this.getCheckedNodes(t).filter(function(e){return!e.isDisabled}).forEach(function(e){return e.doCheck(!1)}),this.calculateMultiCheckedValue()):this.checkedValue=r?[]:null}}},j=Object(A.a)(H,r,[],!1,null,null,null);j.options.__file="packages/cascader-panel/src/cascader-panel.vue";var Q=j.exports;Q.install=function(e){e.component(Q.name,Q)};t.default=Q},6:function(e,t){e.exports=n("y+7x")},9:function(e,t){e.exports=n("jmaC")}})},knuC:function(e,t){e.exports=function(e,t,n){var r=void 0===n;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},lFkc:function(e,t,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};e.exports=i},lOnJ:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},lktj:function(e,t,n){var r=n("Ibhu"),i=n("xnc9");e.exports=Object.keys||function(e){return r(e,i)}},mClu:function(e,t,n){var r=n("kM2E");r(r.S+r.F*!n("+E39"),"Object",{defineProperty:n("evD5").f})},mbce:function(e,t,n){var r=n("+E39"),i=n("lktj"),a=n("TcQ7"),o=n("NpIQ").f;e.exports=function(e){return function(t){for(var n,s=a(t),l=i(s),c=l.length,u=0,h=[];c>u;)n=l[u++],r&&!o.call(s,n)||h.push(e?[n,s[n]]:s[n]);return h}}},msXi:function(e,t,n){var r=n("77Pl");e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(t){var a=e.return;throw void 0!==a&&r(a.call(e)),t}}},mtWM:function(e,t,n){e.exports=n("tIFN")},mtrD:function(e,t){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=97)}({0:function(e,t,n){"use strict";function r(e,t,n,r,i,a,o,s){var l,c="function"==typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),a&&(c._scopeId="data-v-"+a),o?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},c._ssrRegister=l):i&&(l=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,l):[l]}return{exports:e,options:c}}n.d(t,"a",function(){return r})},97:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("button",{staticClass:"el-button",class:[e.type?"el-button--"+e.type:"",e.buttonSize?"el-button--"+e.buttonSize:"",{"is-disabled":e.buttonDisabled,"is-loading":e.loading,"is-plain":e.plain,"is-round":e.round,"is-circle":e.circle}],attrs:{disabled:e.buttonDisabled||e.loading,autofocus:e.autofocus,type:e.nativeType},on:{click:e.handleClick}},[e.loading?n("i",{staticClass:"el-icon-loading"}):e._e(),e.icon&&!e.loading?n("i",{class:e.icon}):e._e(),e.$slots.default?n("span",[e._t("default")],2):e._e()])};r._withStripped=!0;var i={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.disabled||(this.elForm||{}).disabled}},methods:{handleClick:function(e){this.$emit("click",e)}}},a=n(0),o=Object(a.a)(i,r,[],!1,null,null,null);o.options.__file="packages/button/src/button.vue";var s=o.exports;s.install=function(e){e.component(s.name,s)};t.default=s}})},mvHQ:function(e,t,n){e.exports={default:n("qkKv"),__esModule:!0}},mw3O:function(e,t,n){"use strict";var r=n("CwSZ"),i=n("DDCP"),a=n("XgCd");e.exports={formats:a,parse:i,stringify:r}},n0T6:function(e,t,n){var r=n("Ibhu"),i=n("xnc9").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},nErl:function(e,t){(function(t){e.exports=t}).call(t,{})},nKpR:function(module,exports,__webpack_require__){(function(process,Buffer){var factory;factory=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLinkAttributes",{enumerable:!0,get:function(){return r.addLinkAttributes}}),Object.defineProperty(t,"getFilenameFromUrl",{enumerable:!0,get:function(){return r.getFilenameFromUrl}}),Object.defineProperty(t,"LinkTarget",{enumerable:!0,get:function(){return r.LinkTarget}}),Object.defineProperty(t,"loadScript",{enumerable:!0,get:function(){return r.loadScript}}),Object.defineProperty(t,"PDFDateString",{enumerable:!0,get:function(){return r.PDFDateString}}),Object.defineProperty(t,"RenderingCancelledException",{enumerable:!0,get:function(){return r.RenderingCancelledException}}),Object.defineProperty(t,"build",{enumerable:!0,get:function(){return i.build}}),Object.defineProperty(t,"getDocument",{enumerable:!0,get:function(){return i.getDocument}}),Object.defineProperty(t,"LoopbackPort",{enumerable:!0,get:function(){return i.LoopbackPort}}),Object.defineProperty(t,"PDFDataRangeTransport",{enumerable:!0,get:function(){return i.PDFDataRangeTransport}}),Object.defineProperty(t,"PDFWorker",{enumerable:!0,get:function(){return i.PDFWorker}}),Object.defineProperty(t,"version",{enumerable:!0,get:function(){return i.version}}),Object.defineProperty(t,"CMapCompressionType",{enumerable:!0,get:function(){return a.CMapCompressionType}}),Object.defineProperty(t,"createObjectURL",{enumerable:!0,get:function(){return a.createObjectURL}}),Object.defineProperty(t,"createPromiseCapability",{enumerable:!0,get:function(){return a.createPromiseCapability}}),Object.defineProperty(t,"createValidAbsoluteUrl",{enumerable:!0,get:function(){return a.createValidAbsoluteUrl}}),Object.defineProperty(t,"InvalidPDFException",{enumerable:!0,get:function(){return a.InvalidPDFException}}),Object.defineProperty(t,"MissingPDFException",{enumerable:!0,get:function(){return a.MissingPDFException}}),Object.defineProperty(t,"OPS",{enumerable:!0,get:function(){return a.OPS}}),Object.defineProperty(t,"PasswordResponses",{enumerable:!0,get:function(){return a.PasswordResponses}}),Object.defineProperty(t,"PermissionFlag",{enumerable:!0,get:function(){return a.PermissionFlag}}),Object.defineProperty(t,"removeNullCharacters",{enumerable:!0,get:function(){return a.removeNullCharacters}}),Object.defineProperty(t,"shadow",{enumerable:!0,get:function(){return a.shadow}}),Object.defineProperty(t,"UnexpectedResponseException",{enumerable:!0,get:function(){return a.UnexpectedResponseException}}),Object.defineProperty(t,"UNSUPPORTED_FEATURES",{enumerable:!0,get:function(){return a.UNSUPPORTED_FEATURES}}),Object.defineProperty(t,"Util",{enumerable:!0,get:function(){return a.Util}}),Object.defineProperty(t,"VerbosityLevel",{enumerable:!0,get:function(){return a.VerbosityLevel}}),Object.defineProperty(t,"AnnotationLayer",{enumerable:!0,get:function(){return o.AnnotationLayer}}),Object.defineProperty(t,"apiCompatibilityParams",{enumerable:!0,get:function(){return s.apiCompatibilityParams}}),Object.defineProperty(t,"GlobalWorkerOptions",{enumerable:!0,get:function(){return l.GlobalWorkerOptions}}),Object.defineProperty(t,"renderTextLayer",{enumerable:!0,get:function(){return c.renderTextLayer}}),Object.defineProperty(t,"SVGGraphics",{enumerable:!0,get:function(){return u.SVGGraphics}});var r=n(1),i=n(5),a=n(2),o=n(16),s=n(7),l=n(10),c=n(17),u=n(18);{const{isNodeJS:e}=n(4);if(e){const e=n(19).PDFNodeStream;(0,i.setPDFNetworkStreamFactory)(t=>new e(t))}else{const e=n(22).PDFNetworkStream;let t;(0,r.isFetchSupported)()&&(t=n(23).PDFFetchStream),(0,i.setPDFNetworkStreamFactory)(n=>t&&(0,r.isValidFetchUrl)(n.url)?new t(n):new e(n))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addLinkAttributes=function(e,{url:t,target:n,rel:a,enabled:o=!0}={}){(0,r.assert)(t&&"string"==typeof t,'addLinkAttributes: A valid "url" parameter must provided.');const l=(0,r.removeNullCharacters)(t);o?e.href=e.title=l:(e.href="",e.title=`Disabled: ${l}`,e.onclick=(()=>!1));let c="";switch(n){case s.NONE:break;case s.SELF:c="_self";break;case s.BLANK:c="_blank";break;case s.PARENT:c="_parent";break;case s.TOP:c="_top"}e.target=c,e.rel="string"==typeof a?a:i},t.getFilenameFromUrl=function(e){const t=e.indexOf("#"),n=e.indexOf("?"),r=Math.min(t>0?t:e.length,n>0?n:e.length);return e.substring(e.lastIndexOf("/",r)+1,r)},t.isFetchSupported=l,t.isValidFetchUrl=c,t.loadScript=function(e){return new Promise((t,n)=>{const r=document.createElement("script");r.src=e,r.onload=t,r.onerror=function(){n(new Error(`Cannot load script at: ${r.src}`))},(document.head||document.documentElement).appendChild(r)})},t.deprecated=function(e){console.log("Deprecated API usage: "+e)},t.PDFDateString=t.StatTimer=t.DOMSVGFactory=t.DOMCMapReaderFactory=t.DOMCanvasFactory=t.DEFAULT_LINK_REL=t.LinkTarget=t.RenderingCancelledException=t.PageViewport=void 0;var r=n(2);const i="noopener noreferrer nofollow";t.DEFAULT_LINK_REL=i;const a="http://www.w3.org/2000/svg";t.DOMCanvasFactory=class{create(e,t){if(e<=0||t<=0)throw new Error("Invalid canvas size");const n=document.createElement("canvas"),r=n.getContext("2d");return n.width=e,n.height=t,{canvas:n,context:r}}reset(e,t,n){if(!e.canvas)throw new Error("Canvas is not specified");if(t<=0||n<=0)throw new Error("Invalid canvas size");e.canvas.width=t,e.canvas.height=n}destroy(e){if(!e.canvas)throw new Error("Canvas is not specified");e.canvas.width=0,e.canvas.height=0,e.canvas=null,e.context=null}};t.DOMCMapReaderFactory=class{constructor({baseUrl:e=null,isCompressed:t=!1}){this.baseUrl=e,this.isCompressed=t}async fetch({name:e}){if(!this.baseUrl)throw new Error('The CMap "baseUrl" parameter must be specified, ensure that the "cMapUrl" and "cMapPacked" API parameters are provided.');if(!e)throw new Error("CMap name must be specified.");const t=this.baseUrl+e+(this.isCompressed?".bcmap":""),n=this.isCompressed?r.CMapCompressionType.BINARY:r.CMapCompressionType.NONE;return l()&&c(t,document.baseURI)?fetch(t).then(async e=>{if(!e.ok)throw new Error(e.statusText);let t;return{cMapData:t=this.isCompressed?new Uint8Array(await e.arrayBuffer()):(0,r.stringToBytes)(await e.text()),compressionType:n}}).catch(e=>{throw new Error(`Unable to load ${this.isCompressed?"binary ":""}`+`CMap at: ${t}`)}):new Promise((e,i)=>{const a=new XMLHttpRequest;a.open("GET",t,!0),this.isCompressed&&(a.responseType="arraybuffer"),a.onreadystatechange=(()=>{if(a.readyState===XMLHttpRequest.DONE){if(200===a.status||0===a.status){let t;if(this.isCompressed&&a.response?t=new Uint8Array(a.response):!this.isCompressed&&a.responseText&&(t=(0,r.stringToBytes)(a.responseText)),t)return void e({cMapData:t,compressionType:n})}i(new Error(a.statusText))}}),a.send(null)}).catch(e=>{throw new Error(`Unable to load ${this.isCompressed?"binary ":""}`+`CMap at: ${t}`)})}};t.DOMSVGFactory=class{create(e,t){(0,r.assert)(e>0&&t>0,"Invalid SVG dimensions");const n=document.createElementNS(a,"svg:svg");return n.setAttribute("version","1.1"),n.setAttribute("width",e+"px"),n.setAttribute("height",t+"px"),n.setAttribute("preserveAspectRatio","none"),n.setAttribute("viewBox","0 0 "+e+" "+t),n}createElement(e){return(0,r.assert)("string"==typeof e,"Invalid SVG element type"),document.createElementNS(a,e)}};class o{constructor({viewBox:e,scale:t,rotation:n,offsetX:r=0,offsetY:i=0,dontFlip:a=!1}){this.viewBox=e,this.scale=t,this.rotation=n,this.offsetX=r,this.offsetY=i;const o=(e[2]+e[0])/2,s=(e[3]+e[1])/2;let l,c,u,h,d,f,p,A;switch(n=(n%=360)<0?n+360:n){case 180:l=-1,c=0,u=0,h=1;break;case 90:l=0,c=1,u=1,h=0;break;case 270:l=0,c=-1,u=-1,h=0;break;case 0:l=1,c=0,u=0,h=-1;break;default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}a&&(u=-u,h=-h),0===l?(d=Math.abs(s-e[1])*t+r,f=Math.abs(o-e[0])*t+i,p=Math.abs(e[3]-e[1])*t,A=Math.abs(e[2]-e[0])*t):(d=Math.abs(o-e[0])*t+r,f=Math.abs(s-e[1])*t+i,p=Math.abs(e[2]-e[0])*t,A=Math.abs(e[3]-e[1])*t),this.transform=[l*t,c*t,u*t,h*t,d-l*t*o-u*t*s,f-c*t*o-h*t*s],this.width=p,this.height=A}clone({scale:e=this.scale,rotation:t=this.rotation,offsetX:n=this.offsetX,offsetY:r=this.offsetY,dontFlip:i=!1}={}){return new o({viewBox:this.viewBox.slice(),scale:e,rotation:t,offsetX:n,offsetY:r,dontFlip:i})}convertToViewportPoint(e,t){return r.Util.applyTransform([e,t],this.transform)}convertToViewportRectangle(e){const t=r.Util.applyTransform([e[0],e[1]],this.transform),n=r.Util.applyTransform([e[2],e[3]],this.transform);return[t[0],t[1],n[0],n[1]]}convertToPdfPoint(e,t){return r.Util.applyInverseTransform([e,t],this.transform)}}t.PageViewport=o;t.RenderingCancelledException=class extends r.BaseException{constructor(e,t){super(e),this.type=t}};const s={NONE:0,SELF:1,BLANK:2,PARENT:3,TOP:4};t.LinkTarget=s;function l(){return"undefined"!=typeof fetch&&"undefined"!=typeof Response&&"body"in Response.prototype&&"undefined"!=typeof ReadableStream}function c(e,t){try{const{protocol:n}=t?new URL(e,t):new URL(e);return"http:"===n||"https:"===n}catch(e){return!1}}let u;t.StatTimer=class{constructor(){this.started=Object.create(null),this.times=[]}time(e){e in this.started&&(0,r.warn)(`Timer is already running for ${e}`),this.started[e]=Date.now()}timeEnd(e){e in this.started||(0,r.warn)(`Timer has not been started for ${e}`),this.times.push({name:e,start:this.started[e],end:Date.now()}),delete this.started[e]}toString(){const e=[];let t=0;for(const e of this.times){const n=e.name;n.length>t&&(t=n.length)}for(const n of this.times){const r=n.end-n.start;e.push(`${n.name.padEnd(t)} ${r}ms\n`)}return e.join("")}};t.PDFDateString=class{static toDateObject(e){if(!e||!(0,r.isString)(e))return null;u||(u=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?"));const t=u.exec(e);if(!t)return null;const n=parseInt(t[1],10);let i=parseInt(t[2],10);i=i>=1&&i<=12?i-1:0;let a=parseInt(t[3],10);a=a>=1&&a<=31?a:1;let o=parseInt(t[4],10);o=o>=0&&o<=23?o:0;let s=parseInt(t[5],10);s=s>=0&&s<=59?s:0;let l=parseInt(t[6],10);l=l>=0&&l<=59?l:0;const c=t[7]||"Z";let h=parseInt(t[8],10);h=h>=0&&h<=23?h:0;let d=parseInt(t[9],10)||0;return d=d>=0&&d<=59?d:0,"-"===c?(o+=h,s+=d):"+"===c&&(o-=h,s-=d),new Date(Date.UTC(n,i,a,o,s,l))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayByteLength=d,t.arraysToBytes=function(e){const t=e.length;if(1===t&&e[0]instanceof Uint8Array)return e[0];let n=0;for(let r=0;r<t;r++)n+=d(e[r]);let r=0;const i=new Uint8Array(n);for(let n=0;n<t;n++){let t=e[n];t instanceof Uint8Array||(t="string"==typeof t?h(t):new Uint8Array(t));const a=t.byteLength;i.set(t,r),r+=a}return i},t.assert=s,t.bytesToString=function(e){s(null!==e&&"object"==typeof e&&void 0!==e.length,"Invalid argument for bytesToString");const t=e.length;if(t<8192)return String.fromCharCode.apply(null,e);const n=[];for(let r=0;r<t;r+=8192){const i=Math.min(r+8192,t),a=e.subarray(r,i);n.push(String.fromCharCode.apply(null,a))}return n.join("")},t.createPromiseCapability=function(){const e=Object.create(null);let t=!1;return Object.defineProperty(e,"settled",{get:()=>t}),e.promise=new Promise(function(n,r){e.resolve=function(e){t=!0,n(e)},e.reject=function(e){t=!0,r(e)}}),e},t.getVerbosityLevel=function(){return i},t.info=function(e){i>=r.INFOS&&console.log(`Info: ${e}`)},t.isArrayBuffer=function(e){return"object"==typeof e&&null!==e&&void 0!==e.byteLength},t.isArrayEqual=function(e,t){if(e.length!==t.length)return!1;return e.every(function(e,n){return e===t[n]})},t.isBool=function(e){return"boolean"==typeof e},t.isEmptyObj=function(e){for(const t in e)return!1;return!0},t.isNum=function(e){return"number"==typeof e},t.isString=function(e){return"string"==typeof e},t.isSameOrigin=function(e,t){let n;try{if(!(n=new URL(e)).origin||"null"===n.origin)return!1}catch(e){return!1}const r=new URL(t,n);return n.origin===r.origin},t.createValidAbsoluteUrl=function(e,t){if(!e)return null;try{const n=t?new URL(e,t):new URL(e);if(function(e){if(!e)return!1;switch(e.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}(n))return n}catch(e){}return null},t.removeNullCharacters=function(e){if("string"!=typeof e)return a("The argument for removeNullCharacters must be a string."),e;return e.replace(u,"")},t.setVerbosityLevel=function(e){Number.isInteger(e)&&(i=e)},t.shadow=l,t.string32=function(e){return String.fromCharCode(e>>24&255,e>>16&255,e>>8&255,255&e)},t.stringToBytes=h,t.stringToPDFString=function(e){const t=e.length,n=[];if("þ"===e[0]&&"ÿ"===e[1])for(let r=2;r<t;r+=2)n.push(String.fromCharCode(e.charCodeAt(r)<<8|e.charCodeAt(r+1)));else if("ÿ"===e[0]&&"þ"===e[1])for(let r=2;r<t;r+=2)n.push(String.fromCharCode(e.charCodeAt(r+1)<<8|e.charCodeAt(r)));else for(let r=0;r<t;++r){const t=m[e.charCodeAt(r)];n.push(t?String.fromCharCode(t):e.charAt(r))}return n.join("")},t.stringToUTF8String=function(e){return decodeURIComponent(escape(e))},t.utf8StringToString=function(e){return unescape(encodeURIComponent(e))},t.warn=a,t.unreachable=o,t.IsEvalSupportedCached=t.IsLittleEndianCached=t.createObjectURL=t.FormatError=t.Util=t.UnknownErrorException=t.UnexpectedResponseException=t.TextRenderingMode=t.StreamType=t.PermissionFlag=t.PasswordResponses=t.PasswordException=t.MissingPDFException=t.InvalidPDFException=t.AbortException=t.CMapCompressionType=t.ImageKind=t.FontType=t.AnnotationType=t.AnnotationStateModelType=t.AnnotationReviewState=t.AnnotationReplyType=t.AnnotationMarkedState=t.AnnotationFlag=t.AnnotationFieldFlag=t.AnnotationBorderStyleType=t.UNSUPPORTED_FEATURES=t.VerbosityLevel=t.OPS=t.IDENTITY_MATRIX=t.FONT_IDENTITY_MATRIX=t.BaseException=void 0,n(3);t.IDENTITY_MATRIX=[1,0,0,1,0,0];t.FONT_IDENTITY_MATRIX=[.001,0,0,.001,0,0];t.PermissionFlag={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048};t.TextRenderingMode={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};t.ImageKind={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3};t.AnnotationType={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};t.AnnotationStateModelType={MARKED:"Marked",REVIEW:"Review"};t.AnnotationMarkedState={MARKED:"Marked",UNMARKED:"Unmarked"};t.AnnotationReviewState={ACCEPTED:"Accepted",REJECTED:"Rejected",CANCELLED:"Cancelled",COMPLETED:"Completed",NONE:"None"};t.AnnotationReplyType={GROUP:"Group",REPLY:"R"};t.AnnotationFlag={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512};t.AnnotationFieldFlag={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};t.AnnotationBorderStyleType={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5};t.StreamType={UNKNOWN:"UNKNOWN",FLATE:"FLATE",LZW:"LZW",DCT:"DCT",JPX:"JPX",JBIG:"JBIG",A85:"A85",AHX:"AHX",CCF:"CCF",RLX:"RLX"};t.FontType={UNKNOWN:"UNKNOWN",TYPE1:"TYPE1",TYPE1C:"TYPE1C",CIDFONTTYPE0:"CIDFONTTYPE0",CIDFONTTYPE0C:"CIDFONTTYPE0C",TRUETYPE:"TRUETYPE",CIDFONTTYPE2:"CIDFONTTYPE2",TYPE3:"TYPE3",OPENTYPE:"OPENTYPE",TYPE0:"TYPE0",MMTYPE1:"MMTYPE1"};const r={ERRORS:0,WARNINGS:1,INFOS:5};t.VerbosityLevel=r;t.CMapCompressionType={NONE:0,BINARY:1,STREAM:2};t.OPS={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};t.UNSUPPORTED_FEATURES={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"};t.PasswordResponses={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};let i=r.WARNINGS;function a(e){i>=r.WARNINGS&&console.log(`Warning: ${e}`)}function o(e){throw new Error(e)}function s(e,t){e||o(t)}function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!1}),n}const c=function(){function e(t){this.constructor===e&&o("Cannot initialize BaseException."),this.message=t,this.name=this.constructor.name}return e.prototype=new Error,e.constructor=e,e}();t.BaseException=c;t.PasswordException=class extends c{constructor(e,t){super(e),this.code=t}};t.UnknownErrorException=class extends c{constructor(e,t){super(e),this.details=t}};t.InvalidPDFException=class extends c{};t.MissingPDFException=class extends c{};t.UnexpectedResponseException=class extends c{constructor(e,t){super(e),this.status=t}};t.FormatError=class extends c{};t.AbortException=class extends c{};const u=/\x00/g;function h(e){s("string"==typeof e,"Invalid argument for stringToBytes");const t=e.length,n=new Uint8Array(t);for(let r=0;r<t;++r)n[r]=255&e.charCodeAt(r);return n}function d(e){return void 0!==e.length?e.length:(s(void 0!==e.byteLength,"arrayByteLength - invalid argument."),e.byteLength)}const f={get value(){return l(this,"value",function(){const e=new Uint8Array(4);return e[0]=1,1===new Uint32Array(e.buffer,0,1)[0]}())}};t.IsLittleEndianCached=f;const p={get value(){return l(this,"value",function(){try{return new Function(""),!0}catch(e){return!1}}())}};t.IsEvalSupportedCached=p;const A=["rgb(",0,",",0,",",0,")"];class g{static makeCssRgb(e,t,n){return A[1]=e,A[3]=t,A[5]=n,A.join("")}static transform(e,t){return[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],e[0]*t[4]+e[2]*t[5]+e[4],e[1]*t[4]+e[3]*t[5]+e[5]]}static applyTransform(e,t){return[e[0]*t[0]+e[1]*t[2]+t[4],e[0]*t[1]+e[1]*t[3]+t[5]]}static applyInverseTransform(e,t){const n=t[0]*t[3]-t[1]*t[2];return[(e[0]*t[3]-e[1]*t[2]+t[2]*t[5]-t[4]*t[3])/n,(-e[0]*t[1]+e[1]*t[0]+t[4]*t[1]-t[5]*t[0])/n]}static getAxialAlignedBoundingBox(e,t){const n=g.applyTransform(e,t),r=g.applyTransform(e.slice(2,4),t),i=g.applyTransform([e[0],e[3]],t),a=g.applyTransform([e[2],e[1]],t);return[Math.min(n[0],r[0],i[0],a[0]),Math.min(n[1],r[1],i[1],a[1]),Math.max(n[0],r[0],i[0],a[0]),Math.max(n[1],r[1],i[1],a[1])]}static inverseTransform(e){const t=e[0]*e[3]-e[1]*e[2];return[e[3]/t,-e[1]/t,-e[2]/t,e[0]/t,(e[2]*e[5]-e[4]*e[3])/t,(e[4]*e[1]-e[5]*e[0])/t]}static apply3dTransform(e,t){return[e[0]*t[0]+e[1]*t[1]+e[2]*t[2],e[3]*t[0]+e[4]*t[1]+e[5]*t[2],e[6]*t[0]+e[7]*t[1]+e[8]*t[2]]}static singularValueDecompose2dScale(e){const t=[e[0],e[2],e[1],e[3]],n=e[0]*t[0]+e[1]*t[2],r=e[0]*t[1]+e[1]*t[3],i=e[2]*t[0]+e[3]*t[2],a=e[2]*t[1]+e[3]*t[3],o=(n+a)/2,s=Math.sqrt((n+a)*(n+a)-4*(n*a-i*r))/2,l=o+s||1,c=o-s||1;return[Math.sqrt(l),Math.sqrt(c)]}static normalizeRect(e){const t=e.slice(0);return e[0]>e[2]&&(t[0]=e[2],t[2]=e[0]),e[1]>e[3]&&(t[1]=e[3],t[3]=e[1]),t}static intersect(e,t){function n(e,t){return e-t}const r=[e[0],e[2],t[0],t[2]].sort(n),i=[e[1],e[3],t[1],t[3]].sort(n),a=[];return e=g.normalizeRect(e),t=g.normalizeRect(t),r[0]===e[0]&&r[1]===t[0]||r[0]===t[0]&&r[1]===e[0]?(a[0]=r[1],a[2]=r[2],i[0]===e[1]&&i[1]===t[1]||i[0]===t[1]&&i[1]===e[1]?(a[1]=i[1],a[3]=i[2],a):null):null}}t.Util=g;const m=[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];const v=function(){const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";return function(t,n,r=!1){if(!r&&URL.createObjectURL){const e=new Blob([t],{type:n});return URL.createObjectURL(e)}let i=`data:${n};base64,`;for(let n=0,r=t.length;n<r;n+=3){const a=255&t[n],o=255&t[n+1],s=255&t[n+2];i+=e[a>>2]+e[(3&a)<<4|o>>4]+e[n+1<r?(15&o)<<2|s>>6:64]+e[n+2<r?63&s:64]}return i}}();t.createObjectURL=v},function(e,t,n){"use strict";n(4)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isNodeJS=void 0;const r="object"==typeof process&&process+""=="[object process]"&&!process.versions.nw&&!process.versions.electron;t.isNodeJS=r},function(module,exports,__w_pdfjs_require__){"use strict";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 _util=__w_pdfjs_require__(2),_display_utils=__w_pdfjs_require__(1),_font_loader=__w_pdfjs_require__(6),_api_compatibility=__w_pdfjs_require__(7),_canvas=__w_pdfjs_require__(8),_worker_options=__w_pdfjs_require__(10),_is_node=__w_pdfjs_require__(4),_message_handler=__w_pdfjs_require__(11),_metadata=__w_pdfjs_require__(12),_transport_stream=__w_pdfjs_require__(14),_webgl=__w_pdfjs_require__(15);const DEFAULT_RANGE_CHUNK_SIZE=65536,RENDERING_CANCELLED_TIMEOUT=100;let createPDFNetworkStream;function setPDFNetworkStreamFactory(e){createPDFNetworkStream=e}function getDocument(e){const t=new PDFDocumentLoadingTask;let n;if("string"==typeof e)n={url:e};else if((0,_util.isArrayBuffer)(e))n={data:e};else if(e instanceof PDFDataRangeTransport)n={range:e};else{if("object"!=typeof e)throw new Error("Invalid parameter in getDocument, need either Uint8Array, string or a parameter object");if(!e.url&&!e.data&&!e.range)throw new Error("Invalid parameter object: need either .data, .range or .url");n=e}const r=Object.create(null);let i=null,a=null;for(const e in n)if("url"!==e||"undefined"==typeof window)if("range"!==e)if("worker"!==e)if("data"!==e||n[e]instanceof Uint8Array)r[e]=n[e];else{const t=n[e];if("string"==typeof t)r[e]=(0,_util.stringToBytes)(t);else if("object"!=typeof t||null===t||isNaN(t.length)){if(!(0,_util.isArrayBuffer)(t))throw new Error("Invalid PDF binary data: either typed array, string or array-like object is expected in the data property.");r[e]=new Uint8Array(t)}else r[e]=new Uint8Array(t)}else a=n[e];else i=n[e];else r[e]=new URL(n[e],window.location).href;if(r.rangeChunkSize=r.rangeChunkSize||DEFAULT_RANGE_CHUNK_SIZE,r.CMapReaderFactory=r.CMapReaderFactory||_display_utils.DOMCMapReaderFactory,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),"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),!a){const e={verbosity:r.verbosity,port:_worker_options.GlobalWorkerOptions.workerPort};a=e.port?PDFWorker.fromPort(e):new PDFWorker(e),t._worker=a}const o=t.docId;return a.promise.then(function(){if(t.destroyed)throw new Error("Loading aborted");const e=_fetchDocument(a,r,i,o),n=new Promise(function(e){let t;i?t=new _transport_stream.PDFDataTransportStream({length:r.length,initialData:r.initialData,progressiveDone:r.progressiveDone,disableRange:r.disableRange,disableStream:r.disableStream},i):r.data||(t=createPDFNetworkStream({url:r.url,length:r.length,httpHeaders:r.httpHeaders,withCredentials:r.withCredentials,rangeChunkSize:r.rangeChunkSize,disableRange:r.disableRange,disableStream:r.disableStream})),e(t)});return Promise.all([e,n]).then(function([e,n]){if(t.destroyed)throw new Error("Loading aborted");const i=new _message_handler.MessageHandler(o,e,a.port);i.postMessageTransfers=a.postMessageTransfers;const s=new WorkerTransport(i,t,n,r);t._transport=s,i.send("Ready",null)})}).catch(t._capability.reject),t}function _fetchDocument(e,t,n,r){return e.destroyed?Promise.reject(new Error("Worker was destroyed")):(n&&(t.length=n.length,t.initialData=n.initialData,t.progressiveDone=n.progressiveDone),e.messageHandler.sendWithPromise("GetDocRequest",{docId:r,apiVersion:"2.5.207",source:{data:t.data,url:t.url,password:t.password,disableAutoFetch:t.disableAutoFetch,rangeChunkSize:t.rangeChunkSize,length:t.length},maxImageSize:t.maxImageSize,disableFontFace:t.disableFontFace,postMessageTransfers:e.postMessageTransfers,docBaseUrl:t.docBaseUrl,ignoreErrors:t.ignoreErrors,isEvalSupported:t.isEvalSupported,fontExtraProperties:t.fontExtraProperties}).then(function(t){if(e.destroyed)throw new Error("Worker was destroyed");return t}))}const PDFDocumentLoadingTask=function(){let e=0;return class{constructor(){this._capability=(0,_util.createPromiseCapability)(),this._transport=null,this._worker=null,this.docId="d"+e++,this.destroyed=!1,this.onPassword=null,this.onProgress=null,this.onUnsupportedFeature=null}get promise(){return this._capability.promise}destroy(){return this.destroyed=!0,(this._transport?this._transport.destroy():Promise.resolve()).then(()=>{this._transport=null,this._worker&&(this._worker.destroy(),this._worker=null)})}}}();class PDFDataRangeTransport{constructor(e,t,n=!1){this.length=e,this.initialData=t,this.progressiveDone=n,this._rangeListeners=[],this._progressListeners=[],this._progressiveReadListeners=[],this._progressiveDoneListeners=[],this._readyCapability=(0,_util.createPromiseCapability)()}addRangeListener(e){this._rangeListeners.push(e)}addProgressListener(e){this._progressListeners.push(e)}addProgressiveReadListener(e){this._progressiveReadListeners.push(e)}addProgressiveDoneListener(e){this._progressiveDoneListeners.push(e)}onDataRange(e,t){for(const n of this._rangeListeners)n(e,t)}onDataProgress(e,t){this._readyCapability.promise.then(()=>{for(const n of this._progressListeners)n(e,t)})}onDataProgressiveRead(e){this._readyCapability.promise.then(()=>{for(const t of this._progressiveReadListeners)t(e)})}onDataProgressiveDone(){this._readyCapability.promise.then(()=>{for(const e of this._progressiveDoneListeners)e()})}transportReady(){this._readyCapability.resolve()}requestDataRange(e,t){(0,_util.unreachable)("Abstract method PDFDataRangeTransport.requestDataRange")}abort(){}}exports.PDFDataRangeTransport=PDFDataRangeTransport;class PDFDocumentProxy{constructor(e,t){this._pdfInfo=e,this._transport=t}get numPages(){return this._pdfInfo.numPages}get fingerprint(){return this._pdfInfo.fingerprint}getPage(e){return this._transport.getPage(e)}getPageIndex(e){return this._transport.getPageIndex(e)}getDestinations(){return this._transport.getDestinations()}getDestination(e){return this._transport.getDestination(e)}getPageLabels(){return this._transport.getPageLabels()}getPageLayout(){return this._transport.getPageLayout()}getPageMode(){return this._transport.getPageMode()}getViewerPreferences(){return this._transport.getViewerPreferences()}getOpenAction(){return this._transport.getOpenAction()}getOpenActionDestination(){return(0,_display_utils.deprecated)("getOpenActionDestination, use getOpenAction instead."),this.getOpenAction().then(function(e){return e&&e.dest?e.dest:null})}getAttachments(){return this._transport.getAttachments()}getJavaScript(){return this._transport.getJavaScript()}getOutline(){return this._transport.getOutline()}getPermissions(){return this._transport.getPermissions()}getMetadata(){return this._transport.getMetadata()}getData(){return this._transport.getData()}getDownloadInfo(){return this._transport.downloadInfoCapability.promise}getStats(){return this._transport.getStats()}cleanup(){return this._transport.startCleanup()}destroy(){return this.loadingTask.destroy()}get loadingParams(){return this._transport.loadingParams}get loadingTask(){return this._transport.loadingTask}}exports.PDFDocumentProxy=PDFDocumentProxy;class PDFPageProxy{constructor(e,t,n,r=!1){this._pageIndex=e,this._pageInfo=t,this._transport=n,this._stats=r?new _display_utils.StatTimer:null,this._pdfBug=r,this.commonObjs=n.commonObjs,this.objs=new PDFObjects,this.cleanupAfterRender=!1,this.pendingCleanup=!1,this.intentStates=Object.create(null),this.destroyed=!1}get pageNumber(){return this._pageIndex+1}get rotate(){return this._pageInfo.rotate}get ref(){return this._pageInfo.ref}get userUnit(){return this._pageInfo.userUnit}get view(){return this._pageInfo.view}getViewport({scale:e,rotation:t=this.rotate,offsetX:n=0,offsetY:r=0,dontFlip:i=!1}={}){return new _display_utils.PageViewport({viewBox:this.view,scale:e,rotation:t,offsetX:n,offsetY:r,dontFlip:i})}getAnnotations({intent:e=null}={}){return this.annotationsPromise&&this.annotationsIntent===e||(this.annotationsPromise=this._transport.getAnnotations(this._pageIndex,e),this.annotationsIntent=e),this.annotationsPromise}render({canvasContext:e,viewport:t,intent:n="display",enableWebGL:r=!1,renderInteractiveForms:i=!1,transform:a=null,imageLayer:o=null,canvasFactory:s=null,background:l=null}){this._stats&&this._stats.time("Overall");const c="print"===n?"print":"display";this.pendingCleanup=!1,this.intentStates[c]||(this.intentStates[c]=Object.create(null));const u=this.intentStates[c];u.streamReaderCancelTimeout&&(clearTimeout(u.streamReaderCancelTimeout),u.streamReaderCancelTimeout=null);const h=s||new _display_utils.DOMCanvasFactory,d=new _webgl.WebGLContext({enable:r});u.displayReadyCapability||(u.displayReadyCapability=(0,_util.createPromiseCapability)(),u.operatorList={fnArray:[],argsArray:[],lastChunk:!1},this._stats&&this._stats.time("Page Request"),this._pumpOperatorList({pageIndex:this._pageIndex,intent:c,renderInteractiveForms:!0===i}));const f=e=>{const t=u.renderTasks.indexOf(p);t>=0&&u.renderTasks.splice(t,1),(this.cleanupAfterRender||"print"===c)&&(this.pendingCleanup=!0),this._tryCleanup(),e?(p.capability.reject(e),this._abortOperatorList({intentState:u,reason:e})):p.capability.resolve(),this._stats&&(this._stats.timeEnd("Rendering"),this._stats.timeEnd("Overall"))},p=new InternalRenderTask({callback:f,params:{canvasContext:e,viewport:t,transform:a,imageLayer:o,background:l},objs:this.objs,commonObjs:this.commonObjs,operatorList:u.operatorList,pageIndex:this._pageIndex,canvasFactory:h,webGLContext:d,useRequestAnimationFrame:"print"!==c,pdfBug:this._pdfBug});u.renderTasks||(u.renderTasks=[]),u.renderTasks.push(p);const A=p.task;return u.displayReadyCapability.promise.then(e=>{this.pendingCleanup?f():(this._stats&&this._stats.time("Rendering"),p.initializeGraphics(e),p.operatorListChanged())}).catch(f),A}getOperatorList(){this.intentStates.oplist||(this.intentStates.oplist=Object.create(null));const e=this.intentStates.oplist;let t;return e.opListReadCapability||((t={}).operatorListChanged=function(){if(e.operatorList.lastChunk){e.opListReadCapability.resolve(e.operatorList);const n=e.renderTasks.indexOf(t);n>=0&&e.renderTasks.splice(n,1)}},e.opListReadCapability=(0,_util.createPromiseCapability)(),e.renderTasks=[],e.renderTasks.push(t),e.operatorList={fnArray:[],argsArray:[],lastChunk:!1},this._stats&&this._stats.time("Page Request"),this._pumpOperatorList({pageIndex:this._pageIndex,intent:"oplist"})),e.opListReadCapability.promise}streamTextContent({normalizeWhitespace:e=!1,disableCombineTextItems:t=!1}={}){return this._transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this._pageIndex,normalizeWhitespace:!0===e,combineTextItems:!0!==t},{highWaterMark:100,size:e=>e.items.length})}getTextContent(e={}){const t=this.streamTextContent(e);return new Promise(function(e,n){const r=t.getReader(),i={items:[],styles:Object.create(null)};!function t(){r.read().then(function({value:n,done:r}){r?e(i):(Object.assign(i.styles,n.styles),i.items.push(...n.items),t())},n)}()})}_destroy(){this.destroyed=!0,this._transport.pageCache[this._pageIndex]=null;const e=[];return Object.keys(this.intentStates).forEach(t=>{const n=this.intentStates[t];this._abortOperatorList({intentState:n,reason:new Error("Page was destroyed."),force:!0}),"oplist"!==t&&n.renderTasks.forEach(function(t){const n=t.capability.promise.catch(function(){});e.push(n),t.cancel()})}),this.objs.clear(),this.annotationsPromise=null,this.pendingCleanup=!1,Promise.all(e)}cleanup(e=!1){return this.pendingCleanup=!0,this._tryCleanup(e)}_tryCleanup(e=!1){return!(!this.pendingCleanup||Object.keys(this.intentStates).some(e=>{const t=this.intentStates[e];return 0!==t.renderTasks.length||!t.operatorList.lastChunk}))&&(Object.keys(this.intentStates).forEach(e=>{delete this.intentStates[e]}),this.objs.clear(),this.annotationsPromise=null,e&&this._stats&&(this._stats=new _display_utils.StatTimer),this.pendingCleanup=!1,!0)}_startRenderPage(e,t){const n=this.intentStates[t];n&&(this._stats&&this._stats.timeEnd("Page Request"),n.displayReadyCapability&&n.displayReadyCapability.resolve(e))}_renderPageChunk(e,t){for(let n=0,r=e.length;n<r;n++)t.operatorList.fnArray.push(e.fnArray[n]),t.operatorList.argsArray.push(e.argsArray[n]);t.operatorList.lastChunk=e.lastChunk;for(let e=0;e<t.renderTasks.length;e++)t.renderTasks[e].operatorListChanged();e.lastChunk&&this._tryCleanup()}_pumpOperatorList(e){(0,_util.assert)(e.intent,'PDFPageProxy._pumpOperatorList: Expected "intent" argument.');const t=this._transport.messageHandler.sendWithStream("GetOperatorList",e).getReader(),n=this.intentStates[e.intent];n.streamReader=t;const r=()=>{t.read().then(({value:e,done:t})=>{t?n.streamReader=null:this._transport.destroyed||(this._renderPageChunk(e,n),r())},e=>{if(n.streamReader=null,!this._transport.destroyed){if(n.operatorList){n.operatorList.lastChunk=!0;for(let e=0;e<n.renderTasks.length;e++)n.renderTasks[e].operatorListChanged();this._tryCleanup()}if(n.displayReadyCapability)n.displayReadyCapability.reject(e);else{if(!n.opListReadCapability)throw e;n.opListReadCapability.reject(e)}}})};r()}_abortOperatorList({intentState:e,reason:t,force:n=!1}){if((0,_util.assert)(t instanceof Error||"object"==typeof t&&null!==t,'PDFPageProxy._abortOperatorList: Expected "reason" argument.'),e.streamReader){if(!n){if(0!==e.renderTasks.length)return;if(t instanceof _display_utils.RenderingCancelledException)return void(e.streamReaderCancelTimeout=setTimeout(()=>{this._abortOperatorList({intentState:e,reason:t,force:!0}),e.streamReaderCancelTimeout=null},RENDERING_CANCELLED_TIMEOUT))}e.streamReader.cancel(new _util.AbortException(t&&t.message)),e.streamReader=null,this._transport.destroyed||(Object.keys(this.intentStates).some(t=>this.intentStates[t]===e&&(delete this.intentStates[t],!0)),this.cleanup())}}get stats(){return this._stats}}exports.PDFPageProxy=PDFPageProxy;class LoopbackPort{constructor(e=!0){this._listeners=[],this._defer=e,this._deferred=Promise.resolve(void 0)}postMessage(e,t){if(!this._defer)return void this._listeners.forEach(t=>{t.call(this,{data:e})});const n=new WeakMap,r={data:function e(r){if("object"!=typeof r||null===r)return r;if(n.has(r))return n.get(r);let i,a;if((i=r.buffer)&&(0,_util.isArrayBuffer)(i))return a=t&&t.includes(i)?new r.constructor(i,r.byteOffset,r.byteLength):new r.constructor(r),n.set(r,a),a;a=Array.isArray(r)?[]:{},n.set(r,a);for(const t in r){let n,i=r;for(;!(n=Object.getOwnPropertyDescriptor(i,t));)i=Object.getPrototypeOf(i);if(void 0!==n.value)if("function"!=typeof n.value)a[t]=e(n.value);else if(r.hasOwnProperty&&r.hasOwnProperty(t))throw new Error(`LoopbackPort.postMessage - cannot clone: ${r[t]}`)}return a}(e)};this._deferred.then(()=>{this._listeners.forEach(e=>{e.call(this,r)})})}addEventListener(e,t){this._listeners.push(t)}removeEventListener(e,t){const n=this._listeners.indexOf(t);this._listeners.splice(n,1)}terminate(){this._listeners.length=0}}exports.LoopbackPort=LoopbackPort;const PDFWorker=function PDFWorkerClosure(){const pdfWorkerPorts=new WeakMap;let isWorkerDisabled=!1,fallbackWorkerSrc,nextFakeWorkerId=0,fakeWorkerCapability;if(_is_node.isNodeJS)isWorkerDisabled=!0,fallbackWorkerSrc="./pdf.worker.js";else if("object"==typeof document&&"currentScript"in document){const e=document.currentScript&&document.currentScript.src;e&&(fallbackWorkerSrc=e.replace(/(\.(?:min\.)?js)(\?.*)?$/i,".worker$1$2"))}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(){let e;try{e=globalThis.pdfjsWorker&&globalThis.pdfjsWorker.WorkerMessageHandler}catch(e){}return e||null}function setupFakeWorkerGlobal(){if(fakeWorkerCapability)return fakeWorkerCapability.promise;fakeWorkerCapability=(0,_util.createPromiseCapability)();const loader=async function(){const mainWorkerMessageHandler=getMainThreadWorkerMessageHandler();if(mainWorkerMessageHandler)return mainWorkerMessageHandler;if(_is_node.isNodeJS){const worker=eval("require")(getWorkerSrc());return worker.WorkerMessageHandler}return await(0,_display_utils.loadScript)(getWorkerSrc()),window.pdfjsWorker.WorkerMessageHandler};return loader().then(fakeWorkerCapability.resolve,fakeWorkerCapability.reject),fakeWorkerCapability.promise}function createCDNWrapper(e){const t="importScripts('"+e+"');";return URL.createObjectURL(new Blob([t]))}class PDFWorker{constructor({name:e=null,port:t=null,verbosity:n=(0,_util.getVerbosityLevel)()}={}){if(t&&pdfWorkerPorts.has(t))throw new Error("Cannot use more than one PDFWorker per port");if(this.name=e,this.destroyed=!1,this.postMessageTransfers=!0,this.verbosity=n,this._readyCapability=(0,_util.createPromiseCapability)(),this._port=null,this._webWorker=null,this._messageHandler=null,t)return pdfWorkerPorts.set(t,this),void this._initializeFromPort(t);this._initialize()}get promise(){return this._readyCapability.promise}get port(){return this._port}get messageHandler(){return this._messageHandler}_initializeFromPort(e){this._port=e,this._messageHandler=new _message_handler.MessageHandler("main","worker",e),this._messageHandler.on("ready",function(){}),this._readyCapability.resolve()}_initialize(){if("undefined"!=typeof Worker&&!isWorkerDisabled&&!getMainThreadWorkerMessageHandler()){let e=getWorkerSrc();try{(0,_util.isSameOrigin)(window.location.href,e)||(e=createCDNWrapper(new URL(e,window.location).href));const t=new Worker(e),n=new _message_handler.MessageHandler("main","worker",t),r=()=>{t.removeEventListener("error",i),n.destroy(),t.terminate(),this.destroyed?this._readyCapability.reject(new Error("Worker was destroyed")):this._setupFakeWorker()},i=()=>{this._webWorker||r()};t.addEventListener("error",i),n.on("test",e=>{t.removeEventListener("error",i),this.destroyed?r():e?(this._messageHandler=n,this._port=t,this._webWorker=t,e.supportTransfers||(this.postMessageTransfers=!1),this._readyCapability.resolve(),n.send("configure",{verbosity:this.verbosity})):(this._setupFakeWorker(),n.destroy(),t.terminate())}),n.on("ready",e=>{if(t.removeEventListener("error",i),this.destroyed)r();else try{a()}catch(e){this._setupFakeWorker()}});const a=()=>{const e=new Uint8Array([this.postMessageTransfers?255:0]);try{n.send("test",e,[e.buffer])}catch(t){(0,_util.warn)("Cannot use postMessage transfers."),e[0]=0,n.send("test",e)}};return void a()}catch(e){(0,_util.info)("The worker has been disabled.")}}this._setupFakeWorker()}_setupFakeWorker(){isWorkerDisabled||((0,_util.warn)("Setting up fake worker."),isWorkerDisabled=!0),setupFakeWorkerGlobal().then(e=>{if(this.destroyed)return void this._readyCapability.reject(new Error("Worker was destroyed"));const t=new LoopbackPort;this._port=t;const n="fake"+nextFakeWorkerId++,r=new _message_handler.MessageHandler(n+"_worker",n,t);e.setup(r,t);const i=new _message_handler.MessageHandler(n,n+"_worker",t);this._messageHandler=i,this._readyCapability.resolve(),i.send("configure",{verbosity:this.verbosity})}).catch(e=>{this._readyCapability.reject(new Error(`Setting up fake worker failed: "${e.message}".`))})}destroy(){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)}static fromPort(e){if(!e||!e.port)throw new Error("PDFWorker.fromPort - invalid method signature.");return pdfWorkerPorts.has(e.port)?pdfWorkerPorts.get(e.port):new PDFWorker(e)}static getWorkerSrc(){return getWorkerSrc()}}return PDFWorker}();exports.PDFWorker=PDFWorker;class WorkerTransport{constructor(e,t,n,r){this.messageHandler=e,this.loadingTask=t,this.commonObjs=new PDFObjects,this.fontLoader=new _font_loader.FontLoader({docId:t.docId,onUnsupportedFeature:this._onUnsupportedFeature.bind(this)}),this._params=r,this.CMapReaderFactory=new r.CMapReaderFactory({baseUrl:r.cMapUrl,isCompressed:r.cMapPacked}),this.destroyed=!1,this.destroyCapability=null,this._passwordCapability=null,this._networkStream=n,this._fullReader=null,this._lastProgress=null,this.pageCache=[],this.pagePromises=[],this.downloadInfoCapability=(0,_util.createPromiseCapability)(),this.setupMessageHandler()}destroy(){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"));const e=[];this.pageCache.forEach(function(t){t&&e.push(t._destroy())}),this.pageCache.length=0,this.pagePromises.length=0;const t=this.messageHandler.sendWithPromise("Terminate",null);return e.push(t),Promise.all(e).then(()=>{this.fontLoader.clear(),this._networkStream&&this._networkStream.cancelAllRequests(new _util.AbortException("Worker was terminated.")),this.messageHandler&&(this.messageHandler.destroy(),this.messageHandler=null),this.destroyCapability.resolve()},this.destroyCapability.reject),this.destroyCapability.promise}setupMessageHandler(){const{messageHandler:e,loadingTask:t}=this;e.on("GetReader",(e,t)=>{(0,_util.assert)(this._networkStream,"GetReader - no `IPDFStream` instance available."),this._fullReader=this._networkStream.getFullReader(),this._fullReader.onProgress=(e=>{this._lastProgress={loaded:e.loaded,total:e.total}}),t.onPull=(()=>{this._fullReader.read().then(function({value:e,done:n}){n?t.close():((0,_util.assert)((0,_util.isArrayBuffer)(e),"GetReader - expected an ArrayBuffer."),t.enqueue(new Uint8Array(e),1,[e]))}).catch(e=>{t.error(e)})}),t.onCancel=(e=>{this._fullReader.cancel(e)})}),e.on("ReaderHeadersReady",e=>{const n=(0,_util.createPromiseCapability)(),r=this._fullReader;return r.headersReady.then(()=>{r.isStreamingSupported&&r.isRangeSupported||(this._lastProgress&&t.onProgress&&t.onProgress(this._lastProgress),r.onProgress=(e=>{t.onProgress&&t.onProgress({loaded:e.loaded,total:e.total})})),n.resolve({isStreamingSupported:r.isStreamingSupported,isRangeSupported:r.isRangeSupported,contentLength:r.contentLength})},n.reject),n.promise}),e.on("GetRangeReader",(e,t)=>{(0,_util.assert)(this._networkStream,"GetRangeReader - no `IPDFStream` instance available.");const n=this._networkStream.getRangeReader(e.begin,e.end);n?(t.onPull=(()=>{n.read().then(function({value:e,done:n}){n?t.close():((0,_util.assert)((0,_util.isArrayBuffer)(e),"GetRangeReader - expected an ArrayBuffer."),t.enqueue(new Uint8Array(e),1,[e]))}).catch(e=>{t.error(e)})}),t.onCancel=(e=>{n.cancel(e)})):t.close()}),e.on("GetDoc",({pdfInfo:e})=>{this._numPages=e.numPages,t._capability.resolve(new PDFDocumentProxy(e,this))}),e.on("DocException",function(e){let n;switch(e.name){case"PasswordException":n=new _util.PasswordException(e.message,e.code);break;case"InvalidPDFException":n=new _util.InvalidPDFException(e.message);break;case"MissingPDFException":n=new _util.MissingPDFException(e.message);break;case"UnexpectedResponseException":n=new _util.UnexpectedResponseException(e.message,e.status);break;case"UnknownErrorException":n=new _util.UnknownErrorException(e.message,e.details)}t._capability.reject(n)}),e.on("PasswordRequest",e=>{if(this._passwordCapability=(0,_util.createPromiseCapability)(),t.onPassword){const n=e=>{this._passwordCapability.resolve({password:e})};try{t.onPassword(n,e.code)}catch(e){this._passwordCapability.reject(e)}}else this._passwordCapability.reject(new _util.PasswordException(e.message,e.code));return this._passwordCapability.promise}),e.on("DataLoaded",e=>{t.onProgress&&t.onProgress({loaded:e.length,total:e.length}),this.downloadInfoCapability.resolve(e)}),e.on("StartRenderPage",e=>{if(this.destroyed)return;this.pageCache[e.pageIndex]._startRenderPage(e.transparency,e.intent)}),e.on("commonobj",t=>{if(this.destroyed)return;const[n,r,i]=t;if(!this.commonObjs.has(n))switch(r){case"Font":const t=this._params;if("error"in i){const e=i.error;(0,_util.warn)(`Error during font loading: ${e}`),this.commonObjs.resolve(n,e);break}let a=null;t.pdfBug&&globalThis.FontInspector&&globalThis.FontInspector.enabled&&(a={registerFont(e,t){globalThis.FontInspector.fontAdded(e,t)}});const o=new _font_loader.FontFaceObject(i,{isEvalSupported:t.isEvalSupported,disableFontFace:t.disableFontFace,ignoreErrors:t.ignoreErrors,onUnsupportedFeature:this._onUnsupportedFeature.bind(this),fontRegistry:a});this.fontLoader.bind(o).catch(t=>e.sendWithPromise("FontFallback",{id:n})).finally(()=>{!t.fontExtraProperties&&o.data&&(o.data=null),this.commonObjs.resolve(n,o)});break;case"FontPath":case"FontType3Res":case"Image":this.commonObjs.resolve(n,i);break;default:throw new Error(`Got unknown common object type ${r}`)}}),e.on("obj",e=>{if(this.destroyed)return;const[t,n,r,i]=e,a=this.pageCache[n];if(!a.objs.has(t))switch(r){case"Image":a.objs.resolve(t,i);const e=8e6;i&&"data"in i&&i.data.length>e&&(a.cleanupAfterRender=!0);break;default:throw new Error(`Got unknown object type ${r}`)}}),e.on("DocProgress",e=>{this.destroyed||t.onProgress&&t.onProgress({loaded:e.loaded,total:e.total})}),e.on("UnsupportedFeature",this._onUnsupportedFeature.bind(this)),e.on("FetchBuiltInCMap",(e,t)=>{if(this.destroyed)return void t.error(new Error("Worker was destroyed"));let n=!1;t.onPull=(()=>{n?t.close():(n=!0,this.CMapReaderFactory.fetch(e).then(function(e){t.enqueue(e,1,[e.cMapData.buffer])}).catch(function(e){t.error(e)}))})})}_onUnsupportedFeature({featureId:e}){this.destroyed||this.loadingTask.onUnsupportedFeature&&this.loadingTask.onUnsupportedFeature(e)}getData(){return this.messageHandler.sendWithPromise("GetData",null)}getPage(e){if(!Number.isInteger(e)||e<=0||e>this._numPages)return Promise.reject(new Error("Invalid page request"));const t=e-1;if(t in this.pagePromises)return this.pagePromises[t];const n=this.messageHandler.sendWithPromise("GetPage",{pageIndex:t}).then(e=>{if(this.destroyed)throw new Error("Transport destroyed");const n=new PDFPageProxy(t,e,this,this._params.pdfBug);return this.pageCache[t]=n,n});return this.pagePromises[t]=n,n}getPageIndex(e){return this.messageHandler.sendWithPromise("GetPageIndex",{ref:e}).catch(function(e){return Promise.reject(new Error(e))})}getAnnotations(e,t){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:e,intent:t})}getDestinations(){return this.messageHandler.sendWithPromise("GetDestinations",null)}getDestination(e){return"string"!=typeof e?Promise.reject(new Error("Invalid destination request.")):this.messageHandler.sendWithPromise("GetDestination",{id:e})}getPageLabels(){return this.messageHandler.sendWithPromise("GetPageLabels",null)}getPageLayout(){return this.messageHandler.sendWithPromise("GetPageLayout",null)}getPageMode(){return this.messageHandler.sendWithPromise("GetPageMode",null)}getViewerPreferences(){return this.messageHandler.sendWithPromise("GetViewerPreferences",null)}getOpenAction(){return this.messageHandler.sendWithPromise("GetOpenAction",null)}getAttachments(){return this.messageHandler.sendWithPromise("GetAttachments",null)}getJavaScript(){return this.messageHandler.sendWithPromise("GetJavaScript",null)}getOutline(){return this.messageHandler.sendWithPromise("GetOutline",null)}getPermissions(){return this.messageHandler.sendWithPromise("GetPermissions",null)}getMetadata(){return this.messageHandler.sendWithPromise("GetMetadata",null).then(e=>({info:e[0],metadata:e[1]?new _metadata.Metadata(e[1]):null,contentDispositionFilename:this._fullReader?this._fullReader.filename:null}))}getStats(){return this.messageHandler.sendWithPromise("GetStats",null)}startCleanup(){return this.messageHandler.sendWithPromise("Cleanup",null).then(()=>{for(let e=0,t=this.pageCache.length;e<t;e++){const t=this.pageCache[e];if(t){if(!t.cleanup())throw new Error(`startCleanup: Page ${e+1} is currently rendering.`)}}this.commonObjs.clear(),this.fontLoader.clear()})}get loadingParams(){const e=this._params;return(0,_util.shadow)(this,"loadingParams",{disableAutoFetch:e.disableAutoFetch,disableFontFace:e.disableFontFace})}}class PDFObjects{constructor(){this._objs=Object.create(null)}_ensureObj(e){return this._objs[e]?this._objs[e]:this._objs[e]={capability:(0,_util.createPromiseCapability)(),data:null,resolved:!1}}get(e,t=null){if(t)return this._ensureObj(e).capability.promise.then(t),null;const n=this._objs[e];if(!n||!n.resolved)throw new Error(`Requesting object that isn't resolved yet ${e}.`);return n.data}has(e){const t=this._objs[e];return!!t&&t.resolved}resolve(e,t){const n=this._ensureObj(e);n.resolved=!0,n.data=t,n.capability.resolve(t)}clear(){this._objs=Object.create(null)}}class RenderTask{constructor(e){this._internalRenderTask=e,this.onContinue=null}get promise(){return this._internalRenderTask.capability.promise}cancel(){this._internalRenderTask.cancel()}}const InternalRenderTask=function(){const e=new WeakSet;return class{constructor({callback:e,params:t,objs:n,commonObjs:r,operatorList:i,pageIndex:a,canvasFactory:o,webGLContext:s,useRequestAnimationFrame:l=!1,pdfBug:c=!1}){this.callback=e,this.params=t,this.objs=n,this.commonObjs=r,this.operatorListIdx=null,this.operatorList=i,this._pageIndex=a,this.canvasFactory=o,this.webGLContext=s,this._pdfBug=c,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this._useRequestAnimationFrame=!0===l&&"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=t.canvasContext.canvas}initializeGraphics(t=!1){if(this.cancelled)return;if(this._canvas){if(e.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.");e.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());const{canvasContext:n,viewport:r,transform:i,imageLayer:a,background:o}=this.params;this.gfx=new _canvas.CanvasGraphics(n,this.commonObjs,this.objs,this.canvasFactory,this.webGLContext,a),this.gfx.beginDrawing({transform:i,viewport:r,transparency:t,background:o}),this.operatorListIdx=0,this.graphicsReady=!0,this.graphicsReadyCallback&&this.graphicsReadyCallback()}cancel(t=null){this.running=!1,this.cancelled=!0,this.gfx&&this.gfx.endDrawing(),this._canvas&&e.delete(this._canvas),this.callback(t||new _display_utils.RenderingCancelledException(`Rendering cancelled, page ${this._pageIndex+1}`,"canvas"))}operatorListChanged(){this.graphicsReady?(this.stepper&&this.stepper.updateOperatorList(this.operatorList),this.running||this._continue()):this.graphicsReadyCallback||(this.graphicsReadyCallback=this._continueBound)}_continue(){this.running=!0,this.cancelled||(this.task.onContinue?this.task.onContinue(this._scheduleNextBound):this._scheduleNext())}_scheduleNext(){this._useRequestAnimationFrame?window.requestAnimationFrame(()=>{this._nextBound().catch(this.cancel.bind(this))}):Promise.resolve().then(this._nextBound).catch(this.cancel.bind(this))}async _next(){this.cancelled||(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&&e.delete(this._canvas),this.callback())))}}}(),version="2.5.207";exports.version=version;const build="0974d605";exports.build=build},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FontLoader=t.FontFaceObject=void 0;var r=n(2);class i{constructor({docId:e,onUnsupportedFeature:t}){this.constructor===i&&(0,r.unreachable)("Cannot initialize BaseFontLoader."),this.docId=e,this._onUnsupportedFeature=t,this.nativeFontFaces=[],this.styleElement=null}addNativeFontFace(e){this.nativeFontFaces.push(e),document.fonts.add(e)}insertRule(e){let t=this.styleElement;t||((t=this.styleElement=document.createElement("style")).id=`PDFJS_FONT_STYLE_TAG_${this.docId}`,document.documentElement.getElementsByTagName("head")[0].appendChild(t));const n=t.sheet;n.insertRule(e,n.cssRules.length)}clear(){this.nativeFontFaces.forEach(function(e){document.fonts.delete(e)}),this.nativeFontFaces.length=0,this.styleElement&&(this.styleElement.remove(),this.styleElement=null)}async bind(e){if(e.attached||e.missingFile)return;if(e.attached=!0,this.isFontLoadingAPISupported){const t=e.createNativeFontFace();if(t){this.addNativeFontFace(t);try{await t.loaded}catch(n){throw this._onUnsupportedFeature({featureId:r.UNSUPPORTED_FEATURES.errorFontLoadNative}),(0,r.warn)(`Failed to load font '${t.family}': '${n}'.`),e.disableFontFace=!0,n}}return}const t=e.createFontFaceRule();if(t){if(this.insertRule(t),this.isSyncFontLoadingSupported)return;await new Promise(n=>{const r=this._queueLoadingCallback(n);this._prepareFontLoadEvent([t],[e],r)})}}_queueLoadingCallback(e){(0,r.unreachable)("Abstract method `_queueLoadingCallback`.")}get isFontLoadingAPISupported(){const e="undefined"!=typeof document&&!!document.fonts;return(0,r.shadow)(this,"isFontLoadingAPISupported",e)}get isSyncFontLoadingSupported(){(0,r.unreachable)("Abstract method `isSyncFontLoadingSupported`.")}get _loadTestFont(){(0,r.unreachable)("Abstract method `_loadTestFont`.")}_prepareFontLoadEvent(e,t,n){(0,r.unreachable)("Abstract method `_prepareFontLoadEvent`.")}}let a;t.FontLoader=a,t.FontLoader=a=class extends i{constructor(e){super(e),this.loadingContext={requests:[],nextRequestId:0},this.loadTestFontId=0}get isSyncFontLoadingSupported(){let e=!1;if("undefined"==typeof navigator)e=!0;else{const t=/Mozilla\/5.0.*?rv:(\d+).*? Gecko/.exec(navigator.userAgent);t&&t[1]>=14&&(e=!0)}return(0,r.shadow)(this,"isSyncFontLoadingSupported",e)}_queueLoadingCallback(e){const t=this.loadingContext,n={id:`pdfjs-font-loading-${t.nextRequestId++}`,done:!1,complete:function(){for((0,r.assert)(!n.done,"completeRequest() cannot be called twice."),n.done=!0;t.requests.length>0&&t.requests[0].done;){const e=t.requests.shift();setTimeout(e.callback,0)}},callback:e};return t.requests.push(n),n}get _loadTestFont(){return(0,r.shadow)(this,"_loadTestFont",atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA=="))}_prepareFontLoadEvent(e,t,n){function i(e,t){return e.charCodeAt(t)<<24|e.charCodeAt(t+1)<<16|e.charCodeAt(t+2)<<8|255&e.charCodeAt(t+3)}function a(e,t,n,r){return e.substring(0,t)+r+e.substring(t+n)}let o,s;const l=document.createElement("canvas");l.width=1,l.height=1;const c=l.getContext("2d");let u=0;const h=`lt${Date.now()}${this.loadTestFontId++}`;let d=this._loadTestFont;let f=i(d=a(d,976,h.length,h),16);for(o=0,s=h.length-3;o<s;o+=4)f=f-1482184792+i(h,o)|0;o<h.length&&(f=f-1482184792+i(h+"XXX",o)|0),d=a(d,16,4,(0,r.string32)(f));const p=`@font-face {font-family:"${h}";src:${`url(data:font/opentype;base64,${btoa(d)});`}}`;this.insertRule(p);const A=[];for(o=0,s=t.length;o<s;o++)A.push(t[o].loadedName);A.push(h);const g=document.createElement("div");for(g.style.visibility="hidden",g.style.width=g.style.height="10px",g.style.position="absolute",g.style.top=g.style.left="0px",o=0,s=A.length;o<s;++o){const e=document.createElement("span");e.textContent="Hi",e.style.fontFamily=A[o],g.appendChild(e)}document.body.appendChild(g),function e(t,n){if(++u>30)return(0,r.warn)("Load test font never loaded."),void n();c.font="30px "+t,c.fillText(".",0,20),c.getImageData(0,0,1,1).data[3]>0?n():setTimeout(e.bind(null,t,n))}(h,function(){document.body.removeChild(g),n.complete()})}};t.FontFaceObject=class{constructor(e,{isEvalSupported:t=!0,disableFontFace:n=!1,ignoreErrors:r=!1,onUnsupportedFeature:i=null,fontRegistry:a=null}){this.compiledGlyphs=Object.create(null);for(const t in e)this[t]=e[t];this.isEvalSupported=!1!==t,this.disableFontFace=!0===n,this.ignoreErrors=!0===r,this._onUnsupportedFeature=i,this.fontRegistry=a}createNativeFontFace(){if(!this.data||this.disableFontFace)return null;const e=new FontFace(this.loadedName,this.data,{});return this.fontRegistry&&this.fontRegistry.registerFont(this),e}createFontFaceRule(){if(!this.data||this.disableFontFace)return null;const e=(0,r.bytesToString)(new Uint8Array(this.data)),t=`url(data:${this.mimetype};base64,${btoa(e)});`,n=`@font-face {font-family:"${this.loadedName}";src:${t}}`;return this.fontRegistry&&this.fontRegistry.registerFont(this,t),n}getPathGenerator(e,t){if(void 0!==this.compiledGlyphs[t])return this.compiledGlyphs[t];let n,i;try{n=e.get(this.loadedName+"_path_"+t)}catch(e){if(!this.ignoreErrors)throw e;return this._onUnsupportedFeature&&this._onUnsupportedFeature({featureId:r.UNSUPPORTED_FEATURES.errorFontGetPath}),(0,r.warn)(`getPathGenerator - ignoring character: "${e}".`),this.compiledGlyphs[t]=function(e,t){}}if(this.isEvalSupported&&r.IsEvalSupportedCached.value){let e,r="";for(let t=0,a=n.length;t<a;t++)e=void 0!==(i=n[t]).args?i.args.join(","):"",r+="c."+i.cmd+"("+e+");\n";return this.compiledGlyphs[t]=new Function("c","size",r)}return this.compiledGlyphs[t]=function(e,t){for(let r=0,a=n.length;r<a;r++)"scale"===(i=n[r]).cmd&&(i.args=[t,-t]),e[i.cmd].apply(e,i.args)}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.apiCompatibilityParams=void 0;var r=n(4);const i=Object.create(null);r.isNodeJS&&(i.disableFontFace=!0);const a=Object.freeze(i);t.apiCompatibilityParams=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CanvasGraphics=void 0;var r=n(2),i=n(9),a=16;function o(e){e.mozCurrentTransform||(e._originalSave=e.save,e._originalRestore=e.restore,e._originalRotate=e.rotate,e._originalScale=e.scale,e._originalTranslate=e.translate,e._originalTransform=e.transform,e._originalSetTransform=e.setTransform,e._transformMatrix=e._transformMatrix||[1,0,0,1,0,0],e._transformStack=[],Object.defineProperty(e,"mozCurrentTransform",{get:function(){return this._transformMatrix}}),Object.defineProperty(e,"mozCurrentTransformInverse",{get:function(){var e=this._transformMatrix,t=e[0],n=e[1],r=e[2],i=e[3],a=e[4],o=e[5],s=t*i-n*r,l=n*r-t*i;return[i/s,n/l,r/l,t/s,(i*a-r*o)/l,(n*a-t*o)/s]}}),e.save=function(){var e=this._transformMatrix;this._transformStack.push(e),this._transformMatrix=e.slice(0,6),this._originalSave()},e.restore=function(){var e=this._transformStack.pop();e&&(this._transformMatrix=e,this._originalRestore())},e.translate=function(e,t){var n=this._transformMatrix;n[4]=n[0]*e+n[2]*t+n[4],n[5]=n[1]*e+n[3]*t+n[5],this._originalTranslate(e,t)},e.scale=function(e,t){var n=this._transformMatrix;n[0]=n[0]*e,n[1]=n[1]*e,n[2]=n[2]*t,n[3]=n[3]*t,this._originalScale(e,t)},e.transform=function(t,n,r,i,a,o){var s=this._transformMatrix;this._transformMatrix=[s[0]*t+s[2]*n,s[1]*t+s[3]*n,s[0]*r+s[2]*i,s[1]*r+s[3]*i,s[0]*a+s[2]*o+s[4],s[1]*a+s[3]*o+s[5]],e._originalTransform(t,n,r,i,a,o)},e.setTransform=function(t,n,r,i,a,o){this._transformMatrix=[t,n,r,i,a,o],e._originalSetTransform(t,n,r,i,a,o)},e.rotate=function(e){var t=Math.cos(e),n=Math.sin(e),r=this._transformMatrix;this._transformMatrix=[r[0]*t+r[2]*n,r[1]*t+r[3]*n,r[0]*-n+r[2]*t,r[1]*-n+r[3]*t,r[4],r[5]],this._originalRotate(e)})}var s=function(){function e(e){this.canvasFactory=e,this.cache=Object.create(null)}return e.prototype={getCanvas:function(e,t,n,r){var i;return void 0!==this.cache[e]?(i=this.cache[e],this.canvasFactory.reset(i,t,n),i.context.setTransform(1,0,0,1,0,0)):(i=this.canvasFactory.create(t,n),this.cache[e]=i),r&&o(i.context),i},clear(){for(var e in this.cache){var t=this.cache[e];this.canvasFactory.destroy(t),delete this.cache[e]}}},e}();var l=function(){function e(){this.alphaIsShape=!1,this.fontSize=0,this.fontSizeScale=1,this.textMatrix=r.IDENTITY_MATRIX,this.textMatrixScale=1,this.fontMatrix=r.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=r.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}return e.prototype={clone:function(){return Object.create(this)},setCurrentPoint:function(e,t){this.x=e,this.y=t}},e}(),c=function(){function e(e,t,n,r,i,a){this.ctx=e,this.current=new l,this.stateStack=[],this.pendingClip=null,this.pendingEOFill=!1,this.res=null,this.xobjs=null,this.commonObjs=t,this.objs=n,this.canvasFactory=r,this.webGLContext=i,this.imageLayer=a,this.groupStack=[],this.processingType3=null,this.baseTransform=null,this.baseTransformStack=[],this.groupLevel=0,this.smaskStack=[],this.smaskCounter=0,this.tempSMask=null,this.cachedCanvases=new s(this.canvasFactory),e&&o(e),this._cachedGetSinglePixelWidth=null}function t(e,t){if("undefined"!=typeof ImageData&&t instanceof ImageData)e.putImageData(t,0,0);else{var n,i,o,s,l,c=t.height,u=t.width,h=c%a,d=(c-h)/a,f=0===h?d:d+1,p=e.createImageData(u,a),A=0,g=t.data,m=p.data;if(t.kind===r.ImageKind.GRAYSCALE_1BPP){var v=g.byteLength,y=new Uint32Array(m.buffer,0,m.byteLength>>2),b=y.length,w=u+7>>3,x=4294967295,_=r.IsLittleEndianCached.value?4278190080:255;for(i=0;i<f;i++){for(s=i<d?a:h,n=0,o=0;o<s;o++){for(var C=v-A,S=0,k=C>w?u:8*C-7,B=-8&k,E=0,T=0;S<B;S+=8)T=g[A++],y[n++]=128&T?x:_,y[n++]=64&T?x:_,y[n++]=32&T?x:_,y[n++]=16&T?x:_,y[n++]=8&T?x:_,y[n++]=4&T?x:_,y[n++]=2&T?x:_,y[n++]=1&T?x:_;for(;S<k;S++)0===E&&(T=g[A++],E=128),y[n++]=T&E?x:_,E>>=1}for(;n<b;)y[n++]=0;e.putImageData(p,0,i*a)}}else if(t.kind===r.ImageKind.RGBA_32BPP){for(o=0,l=u*a*4,i=0;i<d;i++)m.set(g.subarray(A,A+l)),A+=l,e.putImageData(p,0,o),o+=a;i<f&&(l=u*h*4,m.set(g.subarray(A,A+l)),e.putImageData(p,0,o))}else{if(t.kind!==r.ImageKind.RGB_24BPP)throw new Error(`bad image kind: ${t.kind}`);for(l=u*(s=a),i=0;i<f;i++){for(i>=d&&(l=u*(s=h)),n=0,o=l;o--;)m[n++]=g[A++],m[n++]=g[A++],m[n++]=g[A++],m[n++]=255;e.putImageData(p,0,i*a)}}}}function n(e,t){for(var n=t.height,r=t.width,i=n%a,o=(n-i)/a,s=0===i?o:o+1,l=e.createImageData(r,a),c=0,u=t.data,h=l.data,d=0;d<s;d++){for(var f=d<o?a:i,p=3,A=0;A<f;A++)for(var g=0,m=0;m<r;m++){if(!g){var v=u[c++];g=128}h[p]=v&g?0:255,p+=4,g>>=1}e.putImageData(l,0,d*a)}}function c(e,t){for(var n=["strokeStyle","fillStyle","fillRule","globalAlpha","lineWidth","lineCap","lineJoin","miterLimit","globalCompositeOperation","font"],r=0,i=n.length;r<i;r++){var a=n[r];void 0!==e[a]&&(t[a]=e[a])}void 0!==e.setLineDash&&(t.setLineDash(e.getLineDash()),t.lineDashOffset=e.lineDashOffset)}function u(e){e.strokeStyle="#000000",e.fillStyle="#000000",e.fillRule="nonzero",e.globalAlpha=1,e.lineWidth=1,e.lineCap="butt",e.lineJoin="miter",e.miterLimit=10,e.globalCompositeOperation="source-over",e.font="10px sans-serif",void 0!==e.setLineDash&&(e.setLineDash([]),e.lineDashOffset=0)}function h(e,t,n,r){for(var i=e.length,a=3;a<i;a+=4){var o=e[a];if(0===o)e[a-3]=t,e[a-2]=n,e[a-1]=r;else if(o<255){var s=255-o;e[a-3]=e[a-3]*o+t*s>>8,e[a-2]=e[a-2]*o+n*s>>8,e[a-1]=e[a-1]*o+r*s>>8}}}function d(e,t,n){for(var r=e.length,i=3;i<r;i+=4){var a=n?n[e[i]]:e[i];t[i]=t[i]*a*(1/255)|0}}function f(e,t,n){for(var r=e.length,i=3;i<r;i+=4){var a=77*e[i-3]+152*e[i-2]+28*e[i-1];t[i]=n?t[i]*n[a>>8]>>8:t[i]*a>>16}}function p(e,t,n,r){var i=t.canvas,a=t.context;e.setTransform(t.scaleX,0,0,t.scaleY,t.offsetX,t.offsetY);var o=t.backdrop||null;if(!t.transferMap&&r.isEnabled){const a=r.composeSMask({layer:n.canvas,mask:i,properties:{subtype:t.subtype,backdrop:o}});return e.setTransform(1,0,0,1,0,0),void e.drawImage(a,t.offsetX,t.offsetY)}!function(e,t,n,r,i,a,o){var s,l=!!a,c=l?a[0]:0,u=l?a[1]:0,p=l?a[2]:0;s="Luminosity"===i?f:d;for(var A=Math.min(r,Math.ceil(1048576/n)),g=0;g<r;g+=A){var m=Math.min(A,r-g),v=e.getImageData(0,g,n,m),y=t.getImageData(0,g,n,m);l&&h(v.data,c,u,p),s(v.data,y.data,o),e.putImageData(y,0,g)}}(a,n,i.width,i.height,t.subtype,o,t.transferMap),e.drawImage(i,0,0)}var A=["butt","round","square"],g=["miter","round","bevel"],m={},v={};for(var y in e.prototype={beginDrawing({transform:e,viewport:t,transparency:n=!1,background:r=null}){var i=this.ctx.canvas.width,a=this.ctx.canvas.height;if(this.ctx.save(),this.ctx.fillStyle=r||"rgb(255, 255, 255)",this.ctx.fillRect(0,0,i,a),this.ctx.restore(),n){var o=this.cachedCanvases.getCanvas("transparent",i,a,!0);this.compositeCtx=this.ctx,this.transparentCanvas=o.canvas,this.ctx=o.context,this.ctx.save(),this.ctx.transform.apply(this.ctx,this.compositeCtx.mozCurrentTransform)}this.ctx.save(),u(this.ctx),e&&this.ctx.transform.apply(this.ctx,e),this.ctx.transform.apply(this.ctx,t.transform),this.baseTransform=this.ctx.mozCurrentTransform.slice(),this.imageLayer&&this.imageLayer.beginLayout()},executeOperatorList:function(e,t,n,i){var a=e.argsArray,o=e.fnArray,s=t||0,l=a.length;if(l===s)return s;for(var c,u=l-s>10&&"function"==typeof n,h=u?Date.now()+15:0,d=0,f=this.commonObjs,p=this.objs;;){if(void 0!==i&&s===i.nextBreakPoint)return i.breakIt(s,n),s;if((c=o[s])!==r.OPS.dependency)this[c].apply(this,a[s]);else for(const e of a[s]){const t=e.startsWith("g_")?f:p;if(!t.has(e))return t.get(e,n),s}if(++s===l)return s;if(u&&++d>10){if(Date.now()>h)return n(),s;d=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(e){this.current.lineWidth=e,this.ctx.lineWidth=e},setLineCap:function(e){this.ctx.lineCap=A[e]},setLineJoin:function(e){this.ctx.lineJoin=g[e]},setMiterLimit:function(e){this.ctx.miterLimit=e},setDash:function(e,t){var n=this.ctx;void 0!==n.setLineDash&&(n.setLineDash(e),n.lineDashOffset=t)},setRenderingIntent(e){},setFlatness(e){},setGState:function(e){for(var t=0,n=e.length;t<n;t++){var r=e[t],i=r[0],a=r[1];switch(i){case"LW":this.setLineWidth(a);break;case"LC":this.setLineCap(a);break;case"LJ":this.setLineJoin(a);break;case"ML":this.setMiterLimit(a);break;case"D":this.setDash(a[0],a[1]);break;case"RI":this.setRenderingIntent(a);break;case"FL":this.setFlatness(a);break;case"Font":this.setFont(a[0],a[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=a;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=a?this.tempSMask:null,this.current.activeSMask&&this.beginSMaskGroup(),this.tempSMask=null}}},beginSMaskGroup:function(){var e=this.current.activeSMask,t=e.canvas.width,n=e.canvas.height,r="smaskGroupAt"+this.groupLevel,i=this.cachedCanvases.getCanvas(r,t,n,!0),a=this.ctx,o=a.mozCurrentTransform;this.ctx.save();var s=i.context;s.scale(1/e.scaleX,1/e.scaleY),s.translate(-e.offsetX,-e.offsetY),s.transform.apply(s,o),e.startTransformInverse=s.mozCurrentTransformInverse,c(a,s),this.ctx=s,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(a),this.groupLevel++},suspendSMaskGroup:function(){var e=this.ctx;this.groupLevel--,this.ctx=this.groupStack.pop(),p(this.ctx,this.current.activeSMask,e,this.webGLContext),this.ctx.restore(),this.ctx.save(),c(e,this.ctx),this.current.resumeSMaskCtx=e;var t=r.Util.transform(this.current.activeSMask.startTransformInverse,e.mozCurrentTransform);this.ctx.transform.apply(this.ctx,t),e.save(),e.setTransform(1,0,0,1,0,0),e.clearRect(0,0,e.canvas.width,e.canvas.height),e.restore()},resumeSMaskGroup:function(){var e=this.current.resumeSMaskCtx,t=this.ctx;this.ctx=e,this.groupStack.push(t),this.groupLevel++},endSMaskGroup:function(){var e=this.ctx;this.groupLevel--,this.ctx=this.groupStack.pop(),p(this.ctx,this.current.activeSMask,e,this.webGLContext),this.ctx.restore(),c(e,this.ctx);var t=r.Util.transform(this.current.activeSMask.startTransformInverse,e.mozCurrentTransform);this.ctx.transform.apply(this.ctx,t)},save:function(){this.ctx.save();var e=this.current;this.stateStack.push(e),this.current=e.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(e,t,n,r,i,a){this.ctx.transform(e,t,n,r,i,a),this._cachedGetSinglePixelWidth=null},constructPath:function(e,t){for(var n=this.ctx,i=this.current,a=i.x,o=i.y,s=0,l=0,c=e.length;s<c;s++)switch(0|e[s]){case r.OPS.rectangle:a=t[l++],o=t[l++];var u=t[l++],h=t[l++];0===u&&(u=this.getSinglePixelWidth()),0===h&&(h=this.getSinglePixelWidth());var d=a+u,f=o+h;this.ctx.moveTo(a,o),this.ctx.lineTo(d,o),this.ctx.lineTo(d,f),this.ctx.lineTo(a,f),this.ctx.lineTo(a,o),this.ctx.closePath();break;case r.OPS.moveTo:a=t[l++],o=t[l++],n.moveTo(a,o);break;case r.OPS.lineTo:a=t[l++],o=t[l++],n.lineTo(a,o);break;case r.OPS.curveTo:a=t[l+4],o=t[l+5],n.bezierCurveTo(t[l],t[l+1],t[l+2],t[l+3],a,o),l+=6;break;case r.OPS.curveTo2:n.bezierCurveTo(a,o,t[l],t[l+1],t[l+2],t[l+3]),a=t[l+2],o=t[l+3],l+=4;break;case r.OPS.curveTo3:a=t[l+2],o=t[l+3],n.bezierCurveTo(t[l],t[l+1],a,o,a,o),l+=4;break;case r.OPS.closePath:n.closePath()}i.setCurrentPoint(a,o)},closePath:function(){this.ctx.closePath()},stroke:function(e){e=void 0===e||e;var t=this.ctx,n=this.current.strokeColor;if(t.globalAlpha=this.current.strokeAlpha,n&&n.hasOwnProperty("type")&&"Pattern"===n.type){t.save();const e=t.mozCurrentTransform,i=r.Util.singularValueDecompose2dScale(e)[0];t.strokeStyle=n.getPattern(t,this),t.lineWidth=Math.max(.65*this.getSinglePixelWidth(),this.current.lineWidth*i),t.stroke(),t.restore()}else t.lineWidth=Math.max(.65*this.getSinglePixelWidth(),this.current.lineWidth),t.stroke();e&&this.consumePath(),t.globalAlpha=this.current.fillAlpha},closeStroke:function(){this.closePath(),this.stroke()},fill:function(e){e=void 0===e||e;var t=this.ctx,n=this.current.fillColor,r=!1;this.current.patternFill&&(t.save(),this.baseTransform&&t.setTransform.apply(t,this.baseTransform),t.fillStyle=n.getPattern(t,this),r=!0),this.pendingEOFill?(t.fill("evenodd"),this.pendingEOFill=!1):t.fill(),r&&t.restore(),e&&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=m},eoClip:function(){this.pendingClip=v},beginText:function(){this.current.textMatrix=r.IDENTITY_MATRIX,this.current.textMatrixScale=1,this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0},endText:function(){var e=this.pendingTextPaths,t=this.ctx;if(void 0!==e){t.save(),t.beginPath();for(var n=0;n<e.length;n++){var r=e[n];t.setTransform.apply(t,r.transform),t.translate(r.x,r.y),r.addToPath(t,r.fontSize)}t.restore(),t.clip(),t.beginPath(),delete this.pendingTextPaths}else t.beginPath()},setCharSpacing:function(e){this.current.charSpacing=e},setWordSpacing:function(e){this.current.wordSpacing=e},setHScale:function(e){this.current.textHScale=e/100},setLeading:function(e){this.current.leading=-e},setFont:function(e,t){var n=this.commonObjs.get(e),i=this.current;if(!n)throw new Error(`Can't find font for ${e}`);if(i.fontMatrix=n.fontMatrix?n.fontMatrix:r.FONT_IDENTITY_MATRIX,0!==i.fontMatrix[0]&&0!==i.fontMatrix[3]||(0,r.warn)("Invalid font matrix for font "+e),t<0?(t=-t,i.fontDirection=-1):i.fontDirection=1,this.current.font=n,this.current.fontSize=t,n.isType3Font)return;var a=n.loadedName||"sans-serif";let o="normal";n.black?o="900":n.bold&&(o="bold");var s=n.italic?"italic":"normal",l=`"${a}", ${n.fallbackName}`;let c=t;t<16?c=16:t>100&&(c=100),this.current.fontSizeScale=t/c,this.ctx.font=`${s} ${o} ${c}px ${l}`},setTextRenderingMode:function(e){this.current.textRenderingMode=e},setTextRise:function(e){this.current.textRise=e},moveText:function(e,t){this.current.x=this.current.lineX+=e,this.current.y=this.current.lineY+=t},setLeadingMoveText:function(e,t){this.setLeading(-t),this.moveText(e,t)},setTextMatrix:function(e,t,n,r,i,a){this.current.textMatrix=[e,t,n,r,i,a],this.current.textMatrixScale=Math.sqrt(e*e+t*t),this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0},nextLine:function(){this.moveText(0,this.current.leading)},paintChar(e,t,n,i){var a=this.ctx,o=this.current,s=o.font,l=o.textRenderingMode,c=o.fontSize/o.fontSizeScale,u=l&r.TextRenderingMode.FILL_STROKE_MASK,h=!!(l&r.TextRenderingMode.ADD_TO_PATH_FLAG);const d=o.patternFill&&!s.missingFile;var f;((s.disableFontFace||h||d)&&(f=s.getPathGenerator(this.commonObjs,e)),s.disableFontFace||d?(a.save(),a.translate(t,n),a.beginPath(),f(a,c),i&&a.setTransform.apply(a,i),u!==r.TextRenderingMode.FILL&&u!==r.TextRenderingMode.FILL_STROKE||a.fill(),u!==r.TextRenderingMode.STROKE&&u!==r.TextRenderingMode.FILL_STROKE||a.stroke(),a.restore()):(u!==r.TextRenderingMode.FILL&&u!==r.TextRenderingMode.FILL_STROKE||a.fillText(e,t,n),u!==r.TextRenderingMode.STROKE&&u!==r.TextRenderingMode.FILL_STROKE||a.strokeText(e,t,n)),h)&&(this.pendingTextPaths||(this.pendingTextPaths=[])).push({transform:a.mozCurrentTransform,x:t,y:n,fontSize:c,addToPath:f})},get isFontSubpixelAAEnabled(){const{context:e}=this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled",10,10);e.scale(1.5,1),e.fillText("I",0,10);for(var t=e.getImageData(0,0,10,10).data,n=!1,i=3;i<t.length;i+=4)if(t[i]>0&&t[i]<255){n=!0;break}return(0,r.shadow)(this,"isFontSubpixelAAEnabled",n)},showText:function(e){var t=this.current,n=t.font;if(n.isType3Font)return this.showType3Text(e);var i=t.fontSize;if(0===i)return;var a=this.ctx,o=t.fontSizeScale,s=t.charSpacing,l=t.wordSpacing,c=t.fontDirection,u=t.textHScale*c,h=e.length,d=n.vertical,f=d?1:-1,p=n.defaultVMetrics,A=i*t.fontMatrix[0],g=t.textRenderingMode===r.TextRenderingMode.FILL&&!n.disableFontFace&&!t.patternFill;let m;if(a.save(),t.patternFill){a.save();const e=t.fillColor.getPattern(a,this);m=a.mozCurrentTransform,a.restore(),a.fillStyle=e}a.transform.apply(a,t.textMatrix),a.translate(t.x,t.y+t.textRise),c>0?a.scale(u,-1):a.scale(u,1);var v=t.lineWidth,y=t.textMatrixScale;if(0===y||0===v){var b=t.textRenderingMode&r.TextRenderingMode.FILL_STROKE_MASK;b!==r.TextRenderingMode.STROKE&&b!==r.TextRenderingMode.FILL_STROKE||(this._cachedGetSinglePixelWidth=null,v=.65*this.getSinglePixelWidth())}else v/=y;1!==o&&(a.scale(o,o),v/=o),a.lineWidth=v;var w,x=0;for(w=0;w<h;++w){var _=e[w];if((0,r.isNum)(_))x+=f*_*i/1e3;else{var C,S,k,B,E,T,I,M=!1,F=(_.isSpace?l:0)+s,D=_.fontChar,P=_.accent,O=_.width;if(d)E=_.vmetric||p,T=-(T=_.vmetric?E[1]:.5*O)*A,I=E[2]*A,O=E?-E[0]:O,C=T/o,S=(x+I)/o;else C=x/o,S=0;if(n.remeasure&&O>0){var L=1e3*a.measureText(D).width/i*o;if(O<L&&this.isFontSubpixelAAEnabled){var R=O/L;M=!0,a.save(),a.scale(R,1),C/=R}else O!==L&&(C+=(O-L)/2e3*i/o)}(_.isInFont||n.missingFile)&&(g&&!P?a.fillText(D,C,S):(this.paintChar(D,C,S,m),P&&(k=C+P.offset.x/o,B=S-P.offset.y/o,this.paintChar(P.fontChar,k,B,m)))),x+=d?O*A-F*c:O*A+F*c,M&&a.restore()}}d?t.y-=x:t.x+=x*u,a.restore()},showType3Text:function(e){var t,n,i,a,o=this.ctx,s=this.current,l=s.font,c=s.fontSize,u=s.fontDirection,h=l.vertical?1:-1,d=s.charSpacing,f=s.wordSpacing,p=s.textHScale*u,A=s.fontMatrix||r.FONT_IDENTITY_MATRIX,g=e.length;if(!(s.textRenderingMode===r.TextRenderingMode.INVISIBLE)&&0!==c){for(this._cachedGetSinglePixelWidth=null,o.save(),o.transform.apply(o,s.textMatrix),o.translate(s.x,s.y),o.scale(p,u),t=0;t<g;++t)if(n=e[t],(0,r.isNum)(n))a=h*n*c/1e3,this.ctx.translate(a,0),s.x+=a*p;else{var m=(n.isSpace?f:0)+d,v=l.charProcOperatorList[n.operatorListId];if(v)this.processingType3=n,this.save(),o.scale(c,c),o.transform.apply(o,A),this.executeOperatorList(v),this.restore(),i=r.Util.applyTransform([n.width,0],A)[0]*c+m,o.translate(i,0),s.x+=i*p;else(0,r.warn)(`Type3 character "${n.operatorListId}" is not available.`)}o.restore(),this.processingType3=null}},setCharWidth:function(e,t){},setCharWidthAndBounds:function(e,t,n,r,i,a){this.ctx.rect(n,r,i-n,a-r),this.clip(),this.endPath()},getColorN_Pattern:function(t){var n;if("TilingPattern"===t[0]){var r=t[1],a=this.baseTransform||this.ctx.mozCurrentTransform.slice(),o={createCanvasGraphics:t=>new e(t,this.commonObjs,this.objs,this.canvasFactory,this.webGLContext)};n=new i.TilingPattern(t,r,this.ctx,o,a)}else n=(0,i.getShadingPatternFromIR)(t);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(e,t,n){var i=r.Util.makeCssRgb(e,t,n);this.ctx.strokeStyle=i,this.current.strokeColor=i},setFillRGBColor:function(e,t,n){var i=r.Util.makeCssRgb(e,t,n);this.ctx.fillStyle=i,this.current.fillColor=i,this.current.patternFill=!1},shadingFill:function(e){var t=this.ctx;this.save();var n=(0,i.getShadingPatternFromIR)(e);t.fillStyle=n.getPattern(t,this,!0);var a=t.mozCurrentTransformInverse;if(a){var o=t.canvas,s=o.width,l=o.height,c=r.Util.applyTransform([0,0],a),u=r.Util.applyTransform([0,l],a),h=r.Util.applyTransform([s,0],a),d=r.Util.applyTransform([s,l],a),f=Math.min(c[0],u[0],h[0],d[0]),p=Math.min(c[1],u[1],h[1],d[1]),A=Math.max(c[0],u[0],h[0],d[0]),g=Math.max(c[1],u[1],h[1],d[1]);this.ctx.fillRect(f,p,A-f,g-p)}else this.ctx.fillRect(-1e10,-1e10,2e10,2e10);this.restore()},beginInlineImage:function(){(0,r.unreachable)("Should not call beginInlineImage")},beginImageData:function(){(0,r.unreachable)("Should not call beginImageData")},paintFormXObjectBegin:function(e,t){if(this.save(),this.baseTransformStack.push(this.baseTransform),Array.isArray(e)&&6===e.length&&this.transform.apply(this,e),this.baseTransform=this.ctx.mozCurrentTransform,t){var n=t[2]-t[0],r=t[3]-t[1];this.ctx.rect(t[0],t[1],n,r),this.clip(),this.endPath()}},paintFormXObjectEnd:function(){this.restore(),this.baseTransform=this.baseTransformStack.pop()},beginGroup:function(e){this.save();var t=this.ctx;e.isolated||(0,r.info)("TODO: Support non-isolated groups."),e.knockout&&(0,r.warn)("Knockout groups not supported.");var n=t.mozCurrentTransform;if(e.matrix&&t.transform.apply(t,e.matrix),!e.bbox)throw new Error("Bounding box is required.");var i=r.Util.getAxialAlignedBoundingBox(e.bbox,t.mozCurrentTransform),a=[0,0,t.canvas.width,t.canvas.height];i=r.Util.intersect(i,a)||[0,0,0,0];var o=Math.floor(i[0]),s=Math.floor(i[1]),l=Math.max(Math.ceil(i[2])-o,1),u=Math.max(Math.ceil(i[3])-s,1),h=1,d=1;l>4096&&(h=l/4096,l=4096),u>4096&&(d=u/4096,u=4096);var f="groupAt"+this.groupLevel;e.smask&&(f+="_smask_"+this.smaskCounter++%2);var p=this.cachedCanvases.getCanvas(f,l,u,!0),A=p.context;A.scale(1/h,1/d),A.translate(-o,-s),A.transform.apply(A,n),e.smask?this.smaskStack.push({canvas:p.canvas,context:A,offsetX:o,offsetY:s,scaleX:h,scaleY:d,subtype:e.smask.subtype,backdrop:e.smask.backdrop,transferMap:e.smask.transferMap||null,startTransformInverse:null}):(t.setTransform(1,0,0,1,0,0),t.translate(o,s),t.scale(h,d)),c(t,A),this.ctx=A,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(t),this.groupLevel++,this.current.activeSMask=null},endGroup:function(e){this.groupLevel--;var t=this.ctx;this.ctx=this.groupStack.pop(),void 0!==this.ctx.imageSmoothingEnabled?this.ctx.imageSmoothingEnabled=!1:this.ctx.mozImageSmoothingEnabled=!1,e.smask?this.tempSMask=this.smaskStack.pop():this.ctx.drawImage(t.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(e,t,n){if(this.save(),u(this.ctx),this.current=new l,Array.isArray(e)&&4===e.length){var r=e[2]-e[0],i=e[3]-e[1];this.ctx.rect(e[0],e[1],r,i),this.clip(),this.endPath()}this.transform.apply(this,t),this.transform.apply(this,n)},endAnnotation:function(){this.restore()},paintImageMaskXObject:function(e){var t=this.ctx,r=e.width,i=e.height,a=this.current.fillColor,o=this.current.patternFill,s=this.processingType3;if(s&&void 0===s.compiled&&(s.compiled=r<=1e3&&i<=1e3?function(e){var t,n,r,i,a=e.width,o=e.height,s=a+1,l=new Uint8Array(s*(o+1)),c=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),u=a+7&-8,h=e.data,d=new Uint8Array(u*o),f=0;for(t=0,i=h.length;t<i;t++)for(var p=128,A=h[t];p>0;)d[f++]=A&p?0:255,p>>=1;var g=0;for(0!==d[f=0]&&(l[0]=1,++g),n=1;n<a;n++)d[f]!==d[f+1]&&(l[n]=d[f]?2:1,++g),f++;for(0!==d[f]&&(l[n]=2,++g),t=1;t<o;t++){r=t*s,d[(f=t*u)-u]!==d[f]&&(l[r]=d[f]?1:8,++g);var m=(d[f]?4:0)+(d[f-u]?8:0);for(n=1;n<a;n++)c[m=(m>>2)+(d[f+1]?4:0)+(d[f-u+1]?8:0)]&&(l[r+n]=c[m],++g),f++;if(d[f-u]!==d[f]&&(l[r+n]=d[f]?2:4,++g),g>1e3)return null}for(r=t*s,0!==d[f=u*(o-1)]&&(l[r]=8,++g),n=1;n<a;n++)d[f]!==d[f+1]&&(l[r+n]=d[f]?4:8,++g),f++;if(0!==d[f]&&(l[r+n]=4,++g),g>1e3)return null;var v=new Int32Array([0,s,-1,0,-s,0,0,0,1]),y=[];for(t=0;g&&t<=o;t++){for(var b=t*s,w=b+a;b<w&&!l[b];)b++;if(b!==w){var x,_=[b%s,t],C=l[b],S=b;do{var k=v[C];do{b+=k}while(!l[b]);5!==(x=l[b])&&10!==x?(C=x,l[b]=0):(C=x&51*C>>4,l[b]&=C>>2|C<<2),_.push(b%s),_.push(b/s|0),l[b]||--g}while(S!==b);y.push(_),--t}}return function(e){e.save(),e.scale(1/a,-1/o),e.translate(0,-o),e.beginPath();for(let n=0,r=y.length;n<r;n++){var t=y[n];e.moveTo(t[0],t[1]);for(let n=2,r=t.length;n<r;n+=2)e.lineTo(t[n],t[n+1])}e.fill(),e.beginPath(),e.restore()}}({data:e.data,width:r,height:i}):null),s&&s.compiled)s.compiled(t);else{var l=this.cachedCanvases.getCanvas("maskCanvas",r,i),c=l.context;c.save(),n(c,e),c.globalCompositeOperation="source-in",c.fillStyle=o?a.getPattern(c,this):a,c.fillRect(0,0,r,i),c.restore(),this.paintInlineImageXObject(l.canvas)}},paintImageMaskXObjectRepeat:function(e,t,r,i){var a=e.width,o=e.height,s=this.current.fillColor,l=this.current.patternFill,c=this.cachedCanvases.getCanvas("maskCanvas",a,o),u=c.context;u.save(),n(u,e),u.globalCompositeOperation="source-in",u.fillStyle=l?s.getPattern(u,this):s,u.fillRect(0,0,a,o),u.restore();for(var h=this.ctx,d=0,f=i.length;d<f;d+=2)h.save(),h.transform(t,0,0,r,i[d],i[d+1]),h.scale(1,-1),h.drawImage(c.canvas,0,0,a,o,0,-1,1,1),h.restore()},paintImageMaskXObjectGroup:function(e){for(var t=this.ctx,r=this.current.fillColor,i=this.current.patternFill,a=0,o=e.length;a<o;a++){var s=e[a],l=s.width,c=s.height,u=this.cachedCanvases.getCanvas("maskCanvas",l,c),h=u.context;h.save(),n(h,s),h.globalCompositeOperation="source-in",h.fillStyle=i?r.getPattern(h,this):r,h.fillRect(0,0,l,c),h.restore(),t.save(),t.transform.apply(t,s.transform),t.scale(1,-1),t.drawImage(u.canvas,0,0,l,c,0,-1,1,1),t.restore()}},paintImageXObject:function(e){const t=e.startsWith("g_")?this.commonObjs.get(e):this.objs.get(e);t?this.paintInlineImageXObject(t):(0,r.warn)("Dependent image isn't ready yet")},paintImageXObjectRepeat:function(e,t,n,i){const a=e.startsWith("g_")?this.commonObjs.get(e):this.objs.get(e);if(a){for(var o=a.width,s=a.height,l=[],c=0,u=i.length;c<u;c+=2)l.push({transform:[t,0,0,n,i[c],i[c+1]],x:0,y:0,w:o,h:s});this.paintInlineImageXObjectGroup(a,l)}else(0,r.warn)("Dependent image isn't ready yet")},paintInlineImageXObject:function(e){var n=e.width,r=e.height,i=this.ctx;this.save(),i.scale(1/n,-1/r);var a,o,s=i.mozCurrentTransformInverse,l=s[0],c=s[1],u=Math.max(Math.sqrt(l*l+c*c),1),h=s[2],d=s[3],f=Math.max(Math.sqrt(h*h+d*d),1);if("function"==typeof HTMLElement&&e instanceof HTMLElement||!e.data)a=e;else{var p=(o=this.cachedCanvases.getCanvas("inlineImage",n,r)).context;t(p,e),a=o.canvas}for(var A=n,g=r,m="prescale1";u>2&&A>1||f>2&&g>1;){var v=A,y=g;u>2&&A>1&&(u/=A/(v=Math.ceil(A/2))),f>2&&g>1&&(f/=g/(y=Math.ceil(g/2))),(p=(o=this.cachedCanvases.getCanvas(m,v,y)).context).clearRect(0,0,v,y),p.drawImage(a,0,0,A,g,0,0,v,y),a=o.canvas,A=v,g=y,m="prescale1"===m?"prescale2":"prescale1"}if(i.drawImage(a,0,0,A,g,0,-r,n,r),this.imageLayer){var b=this.getCanvasPosition(0,-r);this.imageLayer.appendImage({imgData:e,left:b[0],top:b[1],width:n/s[0],height:r/s[3]})}this.restore()},paintInlineImageXObjectGroup:function(e,n){var r=this.ctx,i=e.width,a=e.height,o=this.cachedCanvases.getCanvas("inlineImage",i,a);t(o.context,e);for(var s=0,l=n.length;s<l;s++){var c=n[s];if(r.save(),r.transform.apply(r,c.transform),r.scale(1,-1),r.drawImage(o.canvas,c.x,c.y,c.w,c.h,0,-1,1,1),this.imageLayer){var u=this.getCanvasPosition(c.x,c.y);this.imageLayer.appendImage({imgData:e,left:u[0],top:u[1],width:i,height:a})}r.restore()}},paintSolidColorImageMask:function(){this.ctx.fillRect(0,0,1,1)},paintXObject:function(){(0,r.warn)("Unsupported 'paintXObject' command.")},markPoint:function(e){},markPointProps:function(e,t){},beginMarkedContent:function(e){},beginMarkedContentProps:function(e,t){},endMarkedContent:function(){},beginCompat:function(){},endCompat:function(){},consumePath:function(){var e=this.ctx;this.pendingClip&&(this.pendingClip===v?e.clip("evenodd"):e.clip(),this.pendingClip=null),e.beginPath()},getSinglePixelWidth(e){if(null===this._cachedGetSinglePixelWidth){const 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(e,t){var n=this.ctx.mozCurrentTransform;return[n[0]*e+n[2]*t+n[4],n[1]*e+n[3]*t+n[5]]}},r.OPS)e.prototype[r.OPS[y]]=e.prototype[y];return e}();t.CanvasGraphics=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getShadingPatternFromIR=function(e){var t=i[e[0]];if(!t)throw new Error(`Unknown IR type: ${e[0]}`);return t.fromIR(e)},t.TilingPattern=void 0;var r=n(2),i={};function a(e,t){if(!t||"undefined"==typeof Path2D)return;const n=t[2]-t[0],r=t[3]-t[1],i=new Path2D;i.rect(t[0],t[1],n,r),e.clip(i)}i.RadialAxial={fromIR:function(e){var t=e[1],n=e[2],r=e[3],i=e[4],o=e[5],s=e[6],l=e[7];return{type:"Pattern",getPattern:function(e){var c;a(e,n),"axial"===t?c=e.createLinearGradient(i[0],i[1],o[0],o[1]):"radial"===t&&(c=e.createRadialGradient(i[0],i[1],s,o[0],o[1],l));for(var u=0,h=r.length;u<h;++u){var d=r[u];c.addColorStop(d[0],d[1])}return c}}}};var o=function(){function e(e,t,n,r,i,a,o,s){var l,c=t.coords,u=t.colors,h=e.data,d=4*e.width;c[n+1]>c[r+1]&&(l=n,n=r,r=l,l=a,a=o,o=l),c[r+1]>c[i+1]&&(l=r,r=i,i=l,l=o,o=s,s=l),c[n+1]>c[r+1]&&(l=n,n=r,r=l,l=a,a=o,o=l);var f=(c[n]+t.offsetX)*t.scaleX,p=(c[n+1]+t.offsetY)*t.scaleY,A=(c[r]+t.offsetX)*t.scaleX,g=(c[r+1]+t.offsetY)*t.scaleY,m=(c[i]+t.offsetX)*t.scaleX,v=(c[i+1]+t.offsetY)*t.scaleY;if(!(p>=v))for(var y,b,w,x,_,C,S,k,B=u[a],E=u[a+1],T=u[a+2],I=u[o],M=u[o+1],F=u[o+2],D=u[s],P=u[s+1],O=u[s+2],L=Math.round(p),R=Math.round(v),N=L;N<=R;N++){if(N<g){let e;y=f-(f-A)*(e=N<p?0:p===g?1:(p-N)/(p-g)),b=B-(B-I)*e,w=E-(E-M)*e,x=T-(T-F)*e}else{let e;y=A-(A-m)*(e=N>v?1:g===v?0:(g-N)/(g-v)),b=I-(I-D)*e,w=M-(M-P)*e,x=F-(F-O)*e}let e;_=f-(f-m)*(e=N<p?0:N>v?1:(p-N)/(p-v)),C=B-(B-D)*e,S=E-(E-P)*e,k=T-(T-O)*e;for(var U=Math.round(Math.min(y,_)),H=Math.round(Math.max(y,_)),j=d*N+4*U,Q=U;Q<=H;Q++)(e=(y-Q)/(y-_))<0?e=0:e>1&&(e=1),h[j++]=b-(b-C)*e|0,h[j++]=w-(w-S)*e|0,h[j++]=x-(x-k)*e|0,h[j++]=255}}function t(t,n,r){var i,a,o=n.coords,s=n.colors;switch(n.type){case"lattice":var l=n.verticesPerRow,c=Math.floor(o.length/l)-1,u=l-1;for(i=0;i<c;i++)for(var h=i*l,d=0;d<u;d++,h++)e(t,r,o[h],o[h+1],o[h+l],s[h],s[h+1],s[h+l]),e(t,r,o[h+l+1],o[h+1],o[h+l],s[h+l+1],s[h+1],s[h+l]);break;case"triangles":for(i=0,a=o.length;i<a;i+=3)e(t,r,o[i],o[i+1],o[i+2],s[i],s[i+1],s[i+2]);break;default:throw new Error("illegal figure")}}return function(e,n,r,i,a,o,s,l){var c,u,h,d,f=Math.floor(e[0]),p=Math.floor(e[1]),A=Math.ceil(e[2])-f,g=Math.ceil(e[3])-p,m=Math.min(Math.ceil(Math.abs(A*n[0]*1.1)),3e3),v=Math.min(Math.ceil(Math.abs(g*n[1]*1.1)),3e3),y=A/m,b=g/v,w={coords:r,colors:i,offsetX:-f,offsetY:-p,scaleX:1/y,scaleY:1/b},x=m+4,_=v+4;if(l.isEnabled)c=l.drawFigures({width:m,height:v,backgroundColor:o,figures:a,context:w}),(u=s.getCanvas("mesh",x,_,!1)).context.drawImage(c,2,2),c=u.canvas;else{var C=(u=s.getCanvas("mesh",x,_,!1)).context,S=C.createImageData(m,v);if(o){var k=S.data;for(h=0,d=k.length;h<d;h+=4)k[h]=o[0],k[h+1]=o[1],k[h+2]=o[2],k[h+3]=255}for(h=0;h<a.length;h++)t(S,a[h],w);C.putImageData(S,2,2),c=u.canvas}return{canvas:c,offsetX:f-2*y,offsetY:p-2*b,scaleX:y,scaleY:b}}}();i.Mesh={fromIR:function(e){var t=e[2],n=e[3],i=e[4],s=e[5],l=e[6],c=e[7],u=e[8];return{type:"Pattern",getPattern:function(e,h,d){var f;if(a(e,c),d)f=r.Util.singularValueDecompose2dScale(e.mozCurrentTransform);else if(f=r.Util.singularValueDecompose2dScale(h.baseTransform),l){var p=r.Util.singularValueDecompose2dScale(l);f=[f[0]*p[0],f[1]*p[1]]}var A=o(s,f,t,n,i,d?null:u,h.cachedCanvases,h.webGLContext);return d||(e.setTransform.apply(e,h.baseTransform),l&&e.transform.apply(e,l)),e.translate(A.offsetX,A.offsetY),e.scale(A.scaleX,A.scaleY),e.createPattern(A.canvas,"no-repeat")}}}},i.Dummy={fromIR:function(){return{type:"Pattern",getPattern:function(){return"hotpink"}}}};var s=function(){var e=1,t=2;function n(e,t,n,r,i){this.operatorList=e[2],this.matrix=e[3]||[1,0,0,1,0,0],this.bbox=e[4],this.xstep=e[5],this.ystep=e[6],this.paintType=e[7],this.tilingType=e[8],this.color=t,this.canvasGraphicsFactory=r,this.baseTransform=i,this.type="Pattern",this.ctx=n}return n.prototype={createPatternCanvas:function(e){var t=this.operatorList,n=this.bbox,i=this.xstep,a=this.ystep,o=this.paintType,s=this.tilingType,l=this.color,c=this.canvasGraphicsFactory;(0,r.info)("TilingType: "+s);var u=n[0],h=n[1],d=n[2],f=n[3],p=r.Util.singularValueDecompose2dScale(this.matrix),A=r.Util.singularValueDecompose2dScale(this.baseTransform),g=[p[0]*A[0],p[1]*A[1]],m=this.getSizeAndScale(i,this.ctx.canvas.width,g[0]),v=this.getSizeAndScale(a,this.ctx.canvas.height,g[1]),y=e.cachedCanvases.getCanvas("pattern",m.size,v.size,!0),b=y.context,w=c.createCanvasGraphics(b);return w.groupLevel=e.groupLevel,this.setFillAndStrokeStyleToContext(w,o,l),w.transform(m.scale,0,0,v.scale,0,0),w.transform(1,0,0,1,-u,-h),this.clipBbox(w,n,u,h,d,f),w.executeOperatorList(t),this.ctx.transform(1,0,0,1,u,h),this.ctx.scale(1/m.scale,1/v.scale),y.canvas},getSizeAndScale:function(e,t,n){e=Math.abs(e);var r=Math.max(3e3,t),i=Math.ceil(e*n);return i>=r?i=r:n=i/e,{scale:n,size:i}},clipBbox:function(e,t,n,r,i,a){if(Array.isArray(t)&&4===t.length){var o=i-n,s=a-r;e.ctx.rect(n,r,o,s),e.clip(),e.endPath()}},setFillAndStrokeStyleToContext:function(n,i,a){const o=n.ctx,s=n.current;switch(i){case e:var l=this.ctx;o.fillStyle=l.fillStyle,o.strokeStyle=l.strokeStyle,s.fillColor=l.fillStyle,s.strokeColor=l.strokeStyle;break;case t:var c=r.Util.makeCssRgb(a[0],a[1],a[2]);o.fillStyle=c,o.strokeStyle=c,s.fillColor=c,s.strokeColor=c;break;default:throw new r.FormatError(`Unsupported paint type: ${i}`)}},getPattern:function(e,t){(e=this.ctx).setTransform.apply(e,this.baseTransform),e.transform.apply(e,this.matrix);var n=this.createPatternCanvas(t);return e.createPattern(n,"repeat")}},n}();t.TilingPattern=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalWorkerOptions=void 0;const r=Object.create(null);t.GlobalWorkerOptions=r,r.workerPort=void 0===r.workerPort?null:r.workerPort,r.workerSrc=void 0===r.workerSrc?"":r.workerSrc},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MessageHandler=void 0;var r=n(2);const i={UNKNOWN:0,DATA:1,ERROR:2},a={UNKNOWN:0,CANCEL:1,CANCEL_COMPLETE:2,CLOSE:3,ENQUEUE:4,ERROR:5,PULL:6,PULL_COMPLETE:7,START_COMPLETE:8};function o(e){if("object"!=typeof e||null===e)return e;switch(e.name){case"AbortException":return new r.AbortException(e.message);case"MissingPDFException":return new r.MissingPDFException(e.message);case"UnexpectedResponseException":return new r.UnexpectedResponseException(e.message,e.status);case"UnknownErrorException":return new r.UnknownErrorException(e.message,e.details);default:return new r.UnknownErrorException(e.message,e.toString())}}t.MessageHandler=class{constructor(e,t,n){this.sourceName=e,this.targetName=t,this.comObj=n,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=(e=>{const t=e.data;if(t.targetName!==this.sourceName)return;if(t.stream)return void this._processStreamMessage(t);if(t.callback){const e=t.callbackId,n=this.callbackCapabilities[e];if(!n)throw new Error(`Cannot resolve callback ${e}`);if(delete this.callbackCapabilities[e],t.callback===i.DATA)n.resolve(t.data);else{if(t.callback!==i.ERROR)throw new Error("Unexpected callback case");n.reject(o(t.reason))}return}const r=this.actionHandler[t.action];if(!r)throw new Error(`Unknown action from worker: ${t.action}`);if(t.callbackId){const e=this.sourceName,a=t.sourceName;new Promise(function(e){e(r(t.data))}).then(function(r){n.postMessage({sourceName:e,targetName:a,callback:i.DATA,callbackId:t.callbackId,data:r})},function(r){n.postMessage({sourceName:e,targetName:a,callback:i.ERROR,callbackId:t.callbackId,reason:o(r)})})}else t.streamId?this._createStreamSink(t):r(t.data)}),n.addEventListener("message",this._onComObjOnMessage)}on(e,t){const n=this.actionHandler;if(n[e])throw new Error(`There is already an actionName called "${e}"`);n[e]=t}send(e,t,n){this._postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,data:t},n)}sendWithPromise(e,t,n){const i=this.callbackId++,a=(0,r.createPromiseCapability)();this.callbackCapabilities[i]=a;try{this._postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,callbackId:i,data:t},n)}catch(e){a.reject(e)}return a.promise}sendWithStream(e,t,n,i){const s=this.streamId++,l=this.sourceName,c=this.targetName,u=this.comObj;return new ReadableStream({start:n=>{const a=(0,r.createPromiseCapability)();return this.streamControllers[s]={controller:n,startCall:a,pullCall:null,cancelCall:null,isClosed:!1},this._postMessage({sourceName:l,targetName:c,action:e,streamId:s,data:t,desiredSize:n.desiredSize},i),a.promise},pull:e=>{const t=(0,r.createPromiseCapability)();return this.streamControllers[s].pullCall=t,u.postMessage({sourceName:l,targetName:c,stream:a.PULL,streamId:s,desiredSize:e.desiredSize}),t.promise},cancel:e=>{(0,r.assert)(e instanceof Error,"cancel must have a valid reason");const t=(0,r.createPromiseCapability)();return this.streamControllers[s].cancelCall=t,this.streamControllers[s].isClosed=!0,u.postMessage({sourceName:l,targetName:c,stream:a.CANCEL,streamId:s,reason:o(e)}),t.promise}},n)}_createStreamSink(e){const t=this,n=this.actionHandler[e.action],i=e.streamId,s=this.sourceName,l=e.sourceName,c=this.comObj,u={enqueue(e,n=1,o){if(this.isCancelled)return;const c=this.desiredSize;this.desiredSize-=n,c>0&&this.desiredSize<=0&&(this.sinkCapability=(0,r.createPromiseCapability)(),this.ready=this.sinkCapability.promise),t._postMessage({sourceName:s,targetName:l,stream:a.ENQUEUE,streamId:i,chunk:e},o)},close(){this.isCancelled||(this.isCancelled=!0,c.postMessage({sourceName:s,targetName:l,stream:a.CLOSE,streamId:i}),delete t.streamSinks[i])},error(e){(0,r.assert)(e instanceof Error,"error must have a valid reason"),this.isCancelled||(this.isCancelled=!0,c.postMessage({sourceName:s,targetName:l,stream:a.ERROR,streamId:i,reason:o(e)}))},sinkCapability:(0,r.createPromiseCapability)(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:e.desiredSize,ready:null};u.sinkCapability.resolve(),u.ready=u.sinkCapability.promise,this.streamSinks[i]=u,new Promise(function(t){t(n(e.data,u))}).then(function(){c.postMessage({sourceName:s,targetName:l,stream:a.START_COMPLETE,streamId:i,success:!0})},function(e){c.postMessage({sourceName:s,targetName:l,stream:a.START_COMPLETE,streamId:i,reason:o(e)})})}_processStreamMessage(e){const t=e.streamId,n=this.sourceName,i=e.sourceName,s=this.comObj;switch(e.stream){case a.START_COMPLETE:e.success?this.streamControllers[t].startCall.resolve():this.streamControllers[t].startCall.reject(o(e.reason));break;case a.PULL_COMPLETE:e.success?this.streamControllers[t].pullCall.resolve():this.streamControllers[t].pullCall.reject(o(e.reason));break;case a.PULL:if(!this.streamSinks[t]){s.postMessage({sourceName:n,targetName:i,stream:a.PULL_COMPLETE,streamId:t,success:!0});break}this.streamSinks[t].desiredSize<=0&&e.desiredSize>0&&this.streamSinks[t].sinkCapability.resolve(),this.streamSinks[t].desiredSize=e.desiredSize;const{onPull:l}=this.streamSinks[e.streamId];new Promise(function(e){e(l&&l())}).then(function(){s.postMessage({sourceName:n,targetName:i,stream:a.PULL_COMPLETE,streamId:t,success:!0})},function(e){s.postMessage({sourceName:n,targetName:i,stream:a.PULL_COMPLETE,streamId:t,reason:o(e)})});break;case a.ENQUEUE:if((0,r.assert)(this.streamControllers[t],"enqueue should have stream controller"),this.streamControllers[t].isClosed)break;this.streamControllers[t].controller.enqueue(e.chunk);break;case a.CLOSE:if((0,r.assert)(this.streamControllers[t],"close should have stream controller"),this.streamControllers[t].isClosed)break;this.streamControllers[t].isClosed=!0,this.streamControllers[t].controller.close(),this._deleteStreamController(t);break;case a.ERROR:(0,r.assert)(this.streamControllers[t],"error should have stream controller"),this.streamControllers[t].controller.error(o(e.reason)),this._deleteStreamController(t);break;case a.CANCEL_COMPLETE:e.success?this.streamControllers[t].cancelCall.resolve():this.streamControllers[t].cancelCall.reject(o(e.reason)),this._deleteStreamController(t);break;case a.CANCEL:if(!this.streamSinks[t])break;const{onCancel:c}=this.streamSinks[e.streamId];new Promise(function(t){t(c&&c(o(e.reason)))}).then(function(){s.postMessage({sourceName:n,targetName:i,stream:a.CANCEL_COMPLETE,streamId:t,success:!0})},function(e){s.postMessage({sourceName:n,targetName:i,stream:a.CANCEL_COMPLETE,streamId:t,reason:o(e)})}),this.streamSinks[t].sinkCapability.reject(o(e.reason)),this.streamSinks[t].isCancelled=!0,delete this.streamSinks[t];break;default:throw new Error("Unexpected stream case")}}async _deleteStreamController(e){await Promise.allSettled([this.streamControllers[e].startCall,this.streamControllers[e].pullCall,this.streamControllers[e].cancelCall].map(function(e){return e&&e.promise})),delete this.streamControllers[e]}_postMessage(e,t){t&&this.postMessageTransfers?this.comObj.postMessage(e,t):this.comObj.postMessage(e)}destroy(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Metadata=void 0;var r=n(2),i=n(13);t.Metadata=class{constructor(e){(0,r.assert)("string"==typeof e,"Metadata: input is not a string"),e=this._repair(e);const t=(new i.SimpleXMLParser).parseFromString(e);this._metadataMap=new Map,t&&this._parse(t)}_repair(e){return e.replace(/^[^<]+/,"").replace(/>\\376\\377([^<]+)/g,function(e,t){const n=t.replace(/\\([0-3])([0-7])([0-7])/g,function(e,t,n,r){return String.fromCharCode(64*t+8*n+1*r)}).replace(/&(amp|apos|gt|lt|quot);/g,function(e,t){switch(t){case"amp":return"&";case"apos":return"'";case"gt":return">";case"lt":return"<";case"quot":return'"'}throw new Error(`_repair: ${t} isn't defined.`)});let r="";for(let e=0,t=n.length;e<t;e+=2){const t=256*n.charCodeAt(e)+n.charCodeAt(e+1);r+=t>=32&&t<127&&60!==t&&62!==t&&38!==t?String.fromCharCode(t):"&#x"+(65536+t).toString(16).substring(1)+";"}return">"+r})}_parse(e){let t=e.documentElement;if("rdf:rdf"!==t.nodeName.toLowerCase())for(t=t.firstChild;t&&"rdf:rdf"!==t.nodeName.toLowerCase();)t=t.nextSibling;const n=t?t.nodeName.toLowerCase():null;if(!t||"rdf:rdf"!==n||!t.hasChildNodes())return;const r=t.childNodes;for(let e=0,t=r.length;e<t;e++){const t=r[e];if("rdf:description"===t.nodeName.toLowerCase())for(let e=0,n=t.childNodes.length;e<n;e++)if("#text"!==t.childNodes[e].nodeName.toLowerCase()){const n=t.childNodes[e],r=n.nodeName.toLowerCase();this._metadataMap.set(r,n.textContent.trim())}}}get(e){return this._metadataMap.has(e)?this._metadataMap.get(e):null}getAll(){const e=Object.create(null);for(const[t,n]of this._metadataMap)e[t]=n;return e}has(e){return this._metadataMap.has(e)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SimpleXMLParser=void 0;const r={NoError:0,EndOfDocument:-1,UnterminatedCdat:-2,UnterminatedXmlDeclaration:-3,UnterminatedDoctypeDeclaration:-4,UnterminatedComment:-5,MalformedElement:-6,OutOfMemory:-7,UnterminatedAttributeValue:-8,UnterminatedElement:-9,ElementNeverBegun:-10};function i(e,t){const n=e[t];return" "===n||"\n"===n||"\r"===n||"\t"===n}class a{_resolveEntities(e){return e.replace(/&([^;]+);/g,(e,t)=>{if("#x"===t.substring(0,2))return String.fromCharCode(parseInt(t.substring(2),16));if("#"===t.substring(0,1))return String.fromCharCode(parseInt(t.substring(1),10));switch(t){case"lt":return"<";case"gt":return">";case"amp":return"&";case"quot":return'"'}return this.onResolveEntity(t)})}_parseContent(e,t){const n=[];let r=t;function a(){for(;r<e.length&&i(e,r);)++r}for(;r<e.length&&!i(e,r)&&">"!==e[r]&&"/"!==e[r];)++r;const o=e.substring(t,r);for(a();r<e.length&&">"!==e[r]&&"/"!==e[r]&&"?"!==e[r];){a();let t="",o="";for(;r<e.length&&!i(e,r)&&"="!==e[r];)t+=e[r],++r;if(a(),"="!==e[r])return null;++r,a();const s=e[r];if('"'!==s&&"'"!==s)return null;const l=e.indexOf(s,++r);if(l<0)return null;o=e.substring(r,l),n.push({name:t,value:this._resolveEntities(o)}),r=l+1,a()}return{name:o,attributes:n,parsed:r-t}}_parseProcessingInstruction(e,t){let n=t;for(;n<e.length&&!i(e,n)&&">"!==e[n]&&"/"!==e[n];)++n;const r=e.substring(t,n);!function(){for(;n<e.length&&i(e,n);)++n}();const a=n;for(;n<e.length&&("?"!==e[n]||">"!==e[n+1]);)++n;return{name:r,value:e.substring(a,n),parsed:n-t}}parseXml(e){let t=0;for(;t<e.length;){let n=t;if("<"===e[t]){let t;switch(e[++n]){case"/":if(++n,(t=e.indexOf(">",n))<0)return void this.onError(r.UnterminatedElement);this.onEndElement(e.substring(n,t)),n=t+1;break;case"?":++n;const i=this._parseProcessingInstruction(e,n);if("?>"!==e.substring(n+i.parsed,n+i.parsed+2))return void this.onError(r.UnterminatedXmlDeclaration);this.onPi(i.name,i.value),n+=i.parsed+2;break;case"!":if("--"===e.substring(n+1,n+3)){if((t=e.indexOf("--\x3e",n+3))<0)return void this.onError(r.UnterminatedComment);this.onComment(e.substring(n+3,t)),n=t+3}else if("[CDATA["===e.substring(n+1,n+8)){if((t=e.indexOf("]]>",n+8))<0)return void this.onError(r.UnterminatedCdat);this.onCdata(e.substring(n+8,t)),n=t+3}else{if("DOCTYPE"!==e.substring(n+1,n+8))return void this.onError(r.MalformedElement);{const i=e.indexOf("[",n+8);let a=!1;if((t=e.indexOf(">",n+8))<0)return void this.onError(r.UnterminatedDoctypeDeclaration);if(i>0&&t>i){if((t=e.indexOf("]>",n+8))<0)return void this.onError(r.UnterminatedDoctypeDeclaration);a=!0}const o=e.substring(n+8,t+(a?1:0));this.onDoctype(o),n=t+(a?2:1)}}break;default:const a=this._parseContent(e,n);if(null===a)return void this.onError(r.MalformedElement);let o=!1;if("/>"===e.substring(n+a.parsed,n+a.parsed+2))o=!0;else if(">"!==e.substring(n+a.parsed,n+a.parsed+1))return void this.onError(r.UnterminatedElement);this.onBeginElement(a.name,a.attributes,o),n+=a.parsed+(o?2:1)}}else{for(;n<e.length&&"<"!==e[n];)n++;const r=e.substring(t,n);this.onText(this._resolveEntities(r))}t=n}}onResolveEntity(e){return`&${e};`}onPi(e,t){}onComment(e){}onCdata(e){}onDoctype(e){}onText(e){}onBeginElement(e,t,n){}onEndElement(e){}onError(e){}}class o{constructor(e,t){this.nodeName=e,this.nodeValue=t,Object.defineProperty(this,"parentNode",{value:null,writable:!0})}get firstChild(){return this.childNodes&&this.childNodes[0]}get nextSibling(){const e=this.parentNode.childNodes;if(!e)return;const t=e.indexOf(this);return-1!==t?e[t+1]:void 0}get textContent(){return this.childNodes?this.childNodes.map(function(e){return e.textContent}).join(""):this.nodeValue||""}hasChildNodes(){return this.childNodes&&this.childNodes.length>0}}t.SimpleXMLParser=class extends a{constructor(){super(),this._currentFragment=null,this._stack=null,this._errorCode=r.NoError}parseFromString(e){if(this._currentFragment=[],this._stack=[],this._errorCode=r.NoError,this.parseXml(e),this._errorCode!==r.NoError)return;const[t]=this._currentFragment;return t?{documentElement:t}:void 0}onResolveEntity(e){switch(e){case"apos":return"'"}return super.onResolveEntity(e)}onText(e){if(function(e){for(let t=0,n=e.length;t<n;t++)if(!i(e,t))return!1;return!0}(e))return;const t=new o("#text",e);this._currentFragment.push(t)}onCdata(e){const t=new o("#text",e);this._currentFragment.push(t)}onBeginElement(e,t,n){const r=new o(e);r.childNodes=[],this._currentFragment.push(r),n||(this._stack.push(this._currentFragment),this._currentFragment=r.childNodes)}onEndElement(e){this._currentFragment=this._stack.pop()||[];const t=this._currentFragment[this._currentFragment.length-1];if(t)for(let e=0,n=t.childNodes.length;e<n;e++)t.childNodes[e].parentNode=t}onError(e){this._errorCode=e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PDFDataTransportStream=void 0;var r=n(2);t.PDFDataTransportStream=class{constructor(e,t){(0,r.assert)(t,'PDFDataTransportStream - missing required "pdfDataRangeTransport" argument.'),this._queuedChunks=[],this._progressiveDone=e.progressiveDone||!1;const n=e.initialData;if(n&&n.length>0){const e=new Uint8Array(n).buffer;this._queuedChunks.push(e)}this._pdfDataRangeTransport=t,this._isStreamingSupported=!e.disableStream,this._isRangeSupported=!e.disableRange,this._contentLength=e.length,this._fullRequestReader=null,this._rangeReaders=[],this._pdfDataRangeTransport.addRangeListener((e,t)=>{this._onReceiveData({begin:e,chunk:t})}),this._pdfDataRangeTransport.addProgressListener((e,t)=>{this._onProgress({loaded:e,total:t})}),this._pdfDataRangeTransport.addProgressiveReadListener(e=>{this._onReceiveData({chunk:e})}),this._pdfDataRangeTransport.addProgressiveDoneListener(()=>{this._onProgressiveDone()}),this._pdfDataRangeTransport.transportReady()}_onReceiveData(e){const t=new Uint8Array(e.chunk).buffer;if(void 0===e.begin)this._fullRequestReader?this._fullRequestReader._enqueue(t):this._queuedChunks.push(t);else{const n=this._rangeReaders.some(function(n){return n._begin===e.begin&&(n._enqueue(t),!0)});(0,r.assert)(n,"_onReceiveData - no `PDFDataTransportStreamRangeReader` instance found.")}}get _progressiveDataLength(){return this._fullRequestReader?this._fullRequestReader._loaded:0}_onProgress(e){if(void 0===e.total){const t=this._rangeReaders[0];t&&t.onProgress&&t.onProgress({loaded:e.loaded})}else{const t=this._fullRequestReader;t&&t.onProgress&&t.onProgress({loaded:e.loaded,total:e.total})}}_onProgressiveDone(){this._fullRequestReader&&this._fullRequestReader.progressiveDone(),this._progressiveDone=!0}_removeRangeReader(e){const t=this._rangeReaders.indexOf(e);t>=0&&this._rangeReaders.splice(t,1)}getFullReader(){(0,r.assert)(!this._fullRequestReader,"PDFDataTransportStream.getFullReader can only be called once.");const e=this._queuedChunks;return this._queuedChunks=null,new i(this,e,this._progressiveDone)}getRangeReader(e,t){if(t<=this._progressiveDataLength)return null;const n=new a(this,e,t);return this._pdfDataRangeTransport.requestDataRange(e,t),this._rangeReaders.push(n),n}cancelAllRequests(e){this._fullRequestReader&&this._fullRequestReader.cancel(e),this._rangeReaders.slice(0).forEach(function(t){t.cancel(e)}),this._pdfDataRangeTransport.abort()}};class i{constructor(e,t,n=!1){this._stream=e,this._done=n||!1,this._filename=null,this._queuedChunks=t||[],this._loaded=0;for(const e of this._queuedChunks)this._loaded+=e.byteLength;this._requests=[],this._headersReady=Promise.resolve(),e._fullRequestReader=this,this.onProgress=null}_enqueue(e){if(!this._done){if(this._requests.length>0){this._requests.shift().resolve({value:e,done:!1})}else this._queuedChunks.push(e);this._loaded+=e.byteLength}}get headersReady(){return this._headersReady}get filename(){return this._filename}get isRangeSupported(){return this._stream._isRangeSupported}get isStreamingSupported(){return this._stream._isStreamingSupported}get contentLength(){return this._stream._contentLength}async read(){if(this._queuedChunks.length>0){return{value:this._queuedChunks.shift(),done:!1}}if(this._done)return{value:void 0,done:!0};const e=(0,r.createPromiseCapability)();return this._requests.push(e),e.promise}cancel(e){this._done=!0,this._requests.forEach(function(e){e.resolve({value:void 0,done:!0})}),this._requests=[]}progressiveDone(){this._done||(this._done=!0)}}class a{constructor(e,t,n){this._stream=e,this._begin=t,this._end=n,this._queuedChunk=null,this._requests=[],this._done=!1,this.onProgress=null}_enqueue(e){if(!this._done){if(0===this._requests.length)this._queuedChunk=e;else{this._requests.shift().resolve({value:e,done:!1}),this._requests.forEach(function(e){e.resolve({value:void 0,done:!0})}),this._requests=[]}this._done=!0,this._stream._removeRangeReader(this)}}get isStreamingSupported(){return!1}async read(){if(this._queuedChunk){const e=this._queuedChunk;return this._queuedChunk=null,{value:e,done:!1}}if(this._done)return{value:void 0,done:!0};const e=(0,r.createPromiseCapability)();return this._requests.push(e),e.promise}cancel(e){this._done=!0,this._requests.forEach(function(e){e.resolve({value:void 0,done:!0})}),this._requests=[],this._stream._removeRangeReader(this)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WebGLContext=void 0;var r=n(2);t.WebGLContext=class{constructor({enable:e=!1}){this._enabled=!0===e}get isEnabled(){let e=this._enabled;return e&&(e=i.tryInitGL()),(0,r.shadow)(this,"isEnabled",e)}composeSMask({layer:e,mask:t,properties:n}){return i.composeSMask(e,t,n)}drawFigures({width:e,height:t,backgroundColor:n,figures:r,context:a}){return i.drawFigures(e,t,n,r,a)}clear(){i.cleanup()}};var i=function(){function e(e,t,n){var r=e.createShader(n);if(e.shaderSource(r,t),e.compileShader(r),!e.getShaderParameter(r,e.COMPILE_STATUS)){var i=e.getShaderInfoLog(r);throw new Error("Error during shader compilation: "+i)}return r}function t(t,n){return e(t,n,t.VERTEX_SHADER)}function n(t,n){return e(t,n,t.FRAGMENT_SHADER)}function r(e,t){for(var n=e.createProgram(),r=0,i=t.length;r<i;++r)e.attachShader(n,t[r]);if(e.linkProgram(n),!e.getProgramParameter(n,e.LINK_STATUS)){var a=e.getProgramInfoLog(n);throw new Error("Error during program linking: "+a)}return n}function i(e,t,n){e.activeTexture(n);var r=e.createTexture();return e.bindTexture(e.TEXTURE_2D,r),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.NEAREST),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.NEAREST),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,t),r}var a,o;function s(){a||(o=document.createElement("canvas"),a=o.getContext("webgl",{premultipliedalpha:!1}))}var l=" 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; } ",c=" 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; } ",u=null;var h=" 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); } ",d=" precision mediump float; varying vec4 v_color; void main() { gl_FragColor = v_color; } ",f=null;return{tryInitGL(){try{return s(),!!a}catch(e){}return!1},composeSMask:function(e,h,d){var f=e.width,p=e.height;u||function(){var e,i;s(),e=o,o=null,i=a,a=null;var h=r(i,[t(i,l),n(i,c)]);i.useProgram(h);var d={};d.gl=i,d.canvas=e,d.resolutionLocation=i.getUniformLocation(h,"u_resolution"),d.positionLocation=i.getAttribLocation(h,"a_position"),d.backdropLocation=i.getUniformLocation(h,"u_backdrop"),d.subtypeLocation=i.getUniformLocation(h,"u_subtype");var f=i.getAttribLocation(h,"a_texCoord"),p=i.getUniformLocation(h,"u_image"),A=i.getUniformLocation(h,"u_mask"),g=i.createBuffer();i.bindBuffer(i.ARRAY_BUFFER,g),i.bufferData(i.ARRAY_BUFFER,new Float32Array([0,0,1,0,0,1,0,1,1,0,1,1]),i.STATIC_DRAW),i.enableVertexAttribArray(f),i.vertexAttribPointer(f,2,i.FLOAT,!1,0,0),i.uniform1i(p,0),i.uniform1i(A,1),u=d}();var A=u,g=A.canvas,m=A.gl;g.width=f,g.height=p,m.viewport(0,0,m.drawingBufferWidth,m.drawingBufferHeight),m.uniform2f(A.resolutionLocation,f,p),d.backdrop?m.uniform4f(A.resolutionLocation,d.backdrop[0],d.backdrop[1],d.backdrop[2],1):m.uniform4f(A.resolutionLocation,0,0,0,0),m.uniform1i(A.subtypeLocation,"Luminosity"===d.subtype?1:0);var v=i(m,e,m.TEXTURE0),y=i(m,h,m.TEXTURE1),b=m.createBuffer();return m.bindBuffer(m.ARRAY_BUFFER,b),m.bufferData(m.ARRAY_BUFFER,new Float32Array([0,0,f,0,0,p,0,p,f,0,f,p]),m.STATIC_DRAW),m.enableVertexAttribArray(A.positionLocation),m.vertexAttribPointer(A.positionLocation,2,m.FLOAT,!1,0,0),m.clearColor(0,0,0,0),m.enable(m.BLEND),m.blendFunc(m.ONE,m.ONE_MINUS_SRC_ALPHA),m.clear(m.COLOR_BUFFER_BIT),m.drawArrays(m.TRIANGLES,0,6),m.flush(),m.deleteTexture(v),m.deleteTexture(y),m.deleteBuffer(b),g},drawFigures:function(e,i,l,c,u){f||function(){var e,i;s(),e=o,o=null,i=a,a=null;var l=r(i,[t(i,h),n(i,d)]);i.useProgram(l);var c={};c.gl=i,c.canvas=e,c.resolutionLocation=i.getUniformLocation(l,"u_resolution"),c.scaleLocation=i.getUniformLocation(l,"u_scale"),c.offsetLocation=i.getUniformLocation(l,"u_offset"),c.positionLocation=i.getAttribLocation(l,"a_position"),c.colorLocation=i.getAttribLocation(l,"a_color"),f=c}();var p=f,A=p.canvas,g=p.gl;A.width=e,A.height=i,g.viewport(0,0,g.drawingBufferWidth,g.drawingBufferHeight),g.uniform2f(p.resolutionLocation,e,i);var m,v,y,b=0;for(m=0,v=c.length;m<v;m++)switch(c[m].type){case"lattice":b+=((y=c[m].coords.length/c[m].verticesPerRow|0)-1)*(c[m].verticesPerRow-1)*6;break;case"triangles":b+=c[m].coords.length}var w=new Float32Array(2*b),x=new Uint8Array(3*b),_=u.coords,C=u.colors,S=0,k=0;for(m=0,v=c.length;m<v;m++){var B=c[m],E=B.coords,T=B.colors;switch(B.type){case"lattice":var I=B.verticesPerRow;y=E.length/I|0;for(var M=1;M<y;M++)for(var F=M*I+1,D=1;D<I;D++,F++)w[S]=_[E[F-I-1]],w[S+1]=_[E[F-I-1]+1],w[S+2]=_[E[F-I]],w[S+3]=_[E[F-I]+1],w[S+4]=_[E[F-1]],w[S+5]=_[E[F-1]+1],x[k]=C[T[F-I-1]],x[k+1]=C[T[F-I-1]+1],x[k+2]=C[T[F-I-1]+2],x[k+3]=C[T[F-I]],x[k+4]=C[T[F-I]+1],x[k+5]=C[T[F-I]+2],x[k+6]=C[T[F-1]],x[k+7]=C[T[F-1]+1],x[k+8]=C[T[F-1]+2],w[S+6]=w[S+2],w[S+7]=w[S+3],w[S+8]=w[S+4],w[S+9]=w[S+5],w[S+10]=_[E[F]],w[S+11]=_[E[F]+1],x[k+9]=x[k+3],x[k+10]=x[k+4],x[k+11]=x[k+5],x[k+12]=x[k+6],x[k+13]=x[k+7],x[k+14]=x[k+8],x[k+15]=C[T[F]],x[k+16]=C[T[F]+1],x[k+17]=C[T[F]+2],S+=12,k+=18;break;case"triangles":for(var P=0,O=E.length;P<O;P++)w[S]=_[E[P]],w[S+1]=_[E[P]+1],x[k]=C[T[P]],x[k+1]=C[T[P]+1],x[k+2]=C[T[P]+2],S+=2,k+=3}}l?g.clearColor(l[0]/255,l[1]/255,l[2]/255,1):g.clearColor(0,0,0,0),g.clear(g.COLOR_BUFFER_BIT);var L=g.createBuffer();g.bindBuffer(g.ARRAY_BUFFER,L),g.bufferData(g.ARRAY_BUFFER,w,g.STATIC_DRAW),g.enableVertexAttribArray(p.positionLocation),g.vertexAttribPointer(p.positionLocation,2,g.FLOAT,!1,0,0);var R=g.createBuffer();return g.bindBuffer(g.ARRAY_BUFFER,R),g.bufferData(g.ARRAY_BUFFER,x,g.STATIC_DRAW),g.enableVertexAttribArray(p.colorLocation),g.vertexAttribPointer(p.colorLocation,3,g.UNSIGNED_BYTE,!1,0,0),g.uniform2f(p.scaleLocation,u.scaleX,u.scaleY),g.uniform2f(p.offsetLocation,u.offsetX,u.offsetY),g.drawArrays(g.TRIANGLES,0,b),g.flush(),g.deleteBuffer(L),g.deleteBuffer(R),A},cleanup(){u&&u.canvas&&(u.canvas.width=0,u.canvas.height=0),f&&f.canvas&&(f.canvas.width=0,f.canvas.height=0),u=null,f=null}}}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AnnotationLayer=void 0;var r=n(1),i=n(2);class a{static create(e){switch(e.data.annotationType){case i.AnnotationType.LINK:return new s(e);case i.AnnotationType.TEXT:return new l(e);case i.AnnotationType.WIDGET:switch(e.data.fieldType){case"Tx":return new u(e);case"Btn":return e.data.radioButton?new d(e):e.data.checkBox?new h(e):new f(e);case"Ch":return new p(e)}return new c(e);case i.AnnotationType.POPUP:return new A(e);case i.AnnotationType.FREETEXT:return new m(e);case i.AnnotationType.LINE:return new v(e);case i.AnnotationType.SQUARE:return new y(e);case i.AnnotationType.CIRCLE:return new b(e);case i.AnnotationType.POLYLINE:return new w(e);case i.AnnotationType.CARET:return new _(e);case i.AnnotationType.INK:return new C(e);case i.AnnotationType.POLYGON:return new x(e);case i.AnnotationType.HIGHLIGHT:return new S(e);case i.AnnotationType.UNDERLINE:return new k(e);case i.AnnotationType.SQUIGGLY:return new B(e);case i.AnnotationType.STRIKEOUT:return new E(e);case i.AnnotationType.STAMP:return new T(e);case i.AnnotationType.FILEATTACHMENT:return new I(e);default:return new o(e)}}}class o{constructor(e,t=!1,n=!1){this.isRenderable=t,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,t&&(this.container=this._createContainer(n))}_createContainer(e=!1){const t=this.data,n=this.page,r=this.viewport,a=document.createElement("section");let o=t.rect[2]-t.rect[0],s=t.rect[3]-t.rect[1];a.setAttribute("data-annotation-id",t.id);const l=i.Util.normalizeRect([t.rect[0],n.view[3]-t.rect[1]+n.view[1],t.rect[2],n.view[3]-t.rect[3]+n.view[1]]);if(a.style.transform=`matrix(${r.transform.join(",")})`,a.style.transformOrigin=`-${l[0]}px -${l[1]}px`,!e&&t.borderStyle.width>0){a.style.borderWidth=`${t.borderStyle.width}px`,t.borderStyle.style!==i.AnnotationBorderStyleType.UNDERLINE&&(o-=2*t.borderStyle.width,s-=2*t.borderStyle.width);const e=t.borderStyle.horizontalCornerRadius,n=t.borderStyle.verticalCornerRadius;if(e>0||n>0){const t=`${e}px / ${n}px`;a.style.borderRadius=t}switch(t.borderStyle.style){case i.AnnotationBorderStyleType.SOLID:a.style.borderStyle="solid";break;case i.AnnotationBorderStyleType.DASHED:a.style.borderStyle="dashed";break;case i.AnnotationBorderStyleType.BEVELED:(0,i.warn)("Unimplemented border style: beveled");break;case i.AnnotationBorderStyleType.INSET:(0,i.warn)("Unimplemented border style: inset");break;case i.AnnotationBorderStyleType.UNDERLINE:a.style.borderBottomStyle="solid"}t.color?a.style.borderColor=i.Util.makeCssRgb(0|t.color[0],0|t.color[1],0|t.color[2]):a.style.borderWidth=0}return a.style.left=`${l[0]}px`,a.style.top=`${l[1]}px`,a.style.width=`${o}px`,a.style.height=`${s}px`,a}_createPopup(e,t,n){t||((t=document.createElement("div")).style.height=e.style.height,t.style.width=e.style.width,e.appendChild(t));const r=new g({container:e,trigger:t,color:n.color,title:n.title,modificationDate:n.modificationDate,contents:n.contents,hideWrapper:!0}).render();r.style.left=e.style.width,e.appendChild(r)}render(){(0,i.unreachable)("Abstract method `AnnotationElement.render` called")}}class s extends o{constructor(e){super(e,!!(e.data.url||e.data.dest||e.data.action))}render(){this.container.className="linkAnnotation";const{data:e,linkService:t}=this,n=document.createElement("a");return e.url?(0,r.addLinkAttributes)(n,{url:e.url,target:e.newWindow?r.LinkTarget.BLANK:t.externalLinkTarget,rel:t.externalLinkRel,enabled:t.externalLinkEnabled}):e.action?this._bindNamedAction(n,e.action):this._bindLink(n,e.dest),this.container.appendChild(n),this.container}_bindLink(e,t){e.href=this.linkService.getDestinationHash(t),e.onclick=(()=>(t&&this.linkService.navigateTo(t),!1)),t&&(e.className="internalLink")}_bindNamedAction(e,t){e.href=this.linkService.getAnchorUrl(""),e.onclick=(()=>(this.linkService.executeNamedAction(t),!1)),e.className="internalLink"}}class l extends o{constructor(e){super(e,!!(e.data.hasPopup||e.data.title||e.data.contents))}render(){this.container.className="textAnnotation";const e=document.createElement("img");return e.style.height=this.container.style.height,e.style.width=this.container.style.width,e.src=this.imageResourcesPath+"annotation-"+this.data.name.toLowerCase()+".svg",e.alt="[{{type}} Annotation]",e.dataset.l10nId="text_annotation_type",e.dataset.l10nArgs=JSON.stringify({type:this.data.name}),this.data.hasPopup||this._createPopup(this.container,e,this.data),this.container.appendChild(e),this.container}}class c extends o{render(){return this.container}}class u extends c{constructor(e){super(e,e.renderInteractiveForms||!e.data.hasAppearance&&!!e.data.fieldValue)}render(){const e=["left","center","right"];this.container.className="textWidgetAnnotation";let t=null;if(this.renderInteractiveForms){if(this.data.multiLine?(t=document.createElement("textarea")).textContent=this.data.fieldValue:((t=document.createElement("input")).type="text",t.setAttribute("value",this.data.fieldValue)),t.disabled=this.data.readOnly,t.name=this.data.fieldName,null!==this.data.maxLen&&(t.maxLength=this.data.maxLen),this.data.comb){const e=(this.data.rect[2]-this.data.rect[0])/this.data.maxLen;t.classList.add("comb"),t.style.letterSpacing=`calc(${e}px - 1ch)`}}else{(t=document.createElement("div")).textContent=this.data.fieldValue,t.style.verticalAlign="middle",t.style.display="table-cell";let e=null;this.data.fontRefName&&this.page.commonObjs.has(this.data.fontRefName)&&(e=this.page.commonObjs.get(this.data.fontRefName)),this._setTextStyle(t,e)}return null!==this.data.textAlignment&&(t.style.textAlign=e[this.data.textAlignment]),this.container.appendChild(t),this.container}_setTextStyle(e,t){const n=e.style;if(n.fontSize=`${this.data.fontSize}px`,n.direction=this.data.fontDirection<0?"rtl":"ltr",!t)return;let r="normal";t.black?r="900":t.bold&&(r="bold"),n.fontWeight=r,n.fontStyle=t.italic?"italic":"normal";const i=t.loadedName?`"${t.loadedName}", `:"",a=t.fallbackName||"Helvetica, sans-serif";n.fontFamily=i+a}}class h extends c{constructor(e){super(e,e.renderInteractiveForms)}render(){this.container.className="buttonWidgetAnnotation checkBox";const e=document.createElement("input");return e.disabled=this.data.readOnly,e.type="checkbox",e.name=this.data.fieldName,this.data.fieldValue&&"Off"!==this.data.fieldValue&&e.setAttribute("checked",!0),this.container.appendChild(e),this.container}}class d extends c{constructor(e){super(e,e.renderInteractiveForms)}render(){this.container.className="buttonWidgetAnnotation radioButton";const e=document.createElement("input");return e.disabled=this.data.readOnly,e.type="radio",e.name=this.data.fieldName,this.data.fieldValue===this.data.buttonValue&&e.setAttribute("checked",!0),this.container.appendChild(e),this.container}}class f extends s{render(){const e=super.render();return e.className="buttonWidgetAnnotation pushButton",e}}class p extends c{constructor(e){super(e,e.renderInteractiveForms)}render(){this.container.className="choiceWidgetAnnotation";const e=document.createElement("select");e.disabled=this.data.readOnly,e.name=this.data.fieldName,this.data.combo||(e.size=this.data.options.length,this.data.multiSelect&&(e.multiple=!0));for(const t of this.data.options){const n=document.createElement("option");n.textContent=t.displayValue,n.value=t.exportValue,this.data.fieldValue.includes(t.displayValue)&&n.setAttribute("selected",!0),e.appendChild(n)}return this.container.appendChild(e),this.container}}class A extends o{constructor(e){super(e,!(!e.data.title&&!e.data.contents))}render(){if(this.container.className="popupAnnotation",["Line","Square","Circle","PolyLine","Polygon","Ink"].includes(this.data.parentType))return this.container;const e=`[data-annotation-id="${this.data.parentId}"]`,t=this.layer.querySelector(e);if(!t)return this.container;const n=new g({container:this.container,trigger:t,color:this.data.color,title:this.data.title,modificationDate:this.data.modificationDate,contents:this.data.contents}),r=parseFloat(t.style.left),i=parseFloat(t.style.width);return this.container.style.transformOrigin=`-${r+i}px -${t.style.top}`,this.container.style.left=`${r+i}px`,this.container.appendChild(n.render()),this.container}}class g{constructor(e){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}render(){const e=document.createElement("div");e.className="popupWrapper",this.hideElement=this.hideWrapper?e:this.container,this.hideElement.setAttribute("hidden",!0);const t=document.createElement("div");t.className="popup";const n=this.color;if(n){const e=.7*(255-n[0])+n[0],r=.7*(255-n[1])+n[1],a=.7*(255-n[2])+n[2];t.style.backgroundColor=i.Util.makeCssRgb(0|e,0|r,0|a)}const a=document.createElement("h1");a.textContent=this.title,t.appendChild(a);const o=r.PDFDateString.toDateObject(this.modificationDate);if(o){const e=document.createElement("span");e.textContent="{{date}}, {{time}}",e.dataset.l10nId="annotation_date_string",e.dataset.l10nArgs=JSON.stringify({date:o.toLocaleDateString(),time:o.toLocaleTimeString()}),t.appendChild(e)}const s=this._formatContents(this.contents);return t.appendChild(s),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)),t.addEventListener("click",this._hide.bind(this,!0)),e.appendChild(t),e}_formatContents(e){const t=document.createElement("p"),n=e.split(/(?:\r\n?|\n)/);for(let e=0,r=n.length;e<r;++e){const i=n[e];t.appendChild(document.createTextNode(i)),e<r-1&&t.appendChild(document.createElement("br"))}return t}_toggle(){this.pinned?this._hide(!0):this._show(!0)}_show(e=!1){e&&(this.pinned=!0),this.hideElement.hasAttribute("hidden")&&(this.hideElement.removeAttribute("hidden"),this.container.style.zIndex+=1)}_hide(e=!0){e&&(this.pinned=!1),this.hideElement.hasAttribute("hidden")||this.pinned||(this.hideElement.setAttribute("hidden",!0),this.container.style.zIndex-=1)}}class m extends o{constructor(e){super(e,!!(e.data.hasPopup||e.data.title||e.data.contents),!0)}render(){return this.container.className="freeTextAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}class v extends o{constructor(e){super(e,!!(e.data.hasPopup||e.data.title||e.data.contents),!0)}render(){this.container.className="lineAnnotation";const e=this.data,t=e.rect[2]-e.rect[0],n=e.rect[3]-e.rect[1],r=this.svgFactory.create(t,n),i=this.svgFactory.createElement("svg:line");return i.setAttribute("x1",e.rect[2]-e.lineCoordinates[0]),i.setAttribute("y1",e.rect[3]-e.lineCoordinates[1]),i.setAttribute("x2",e.rect[2]-e.lineCoordinates[2]),i.setAttribute("y2",e.rect[3]-e.lineCoordinates[3]),i.setAttribute("stroke-width",e.borderStyle.width||1),i.setAttribute("stroke","transparent"),r.appendChild(i),this.container.append(r),this._createPopup(this.container,i,e),this.container}}class y extends o{constructor(e){super(e,!!(e.data.hasPopup||e.data.title||e.data.contents),!0)}render(){this.container.className="squareAnnotation";const e=this.data,t=e.rect[2]-e.rect[0],n=e.rect[3]-e.rect[1],r=this.svgFactory.create(t,n),i=e.borderStyle.width,a=this.svgFactory.createElement("svg:rect");return a.setAttribute("x",i/2),a.setAttribute("y",i/2),a.setAttribute("width",t-i),a.setAttribute("height",n-i),a.setAttribute("stroke-width",i||1),a.setAttribute("stroke","transparent"),a.setAttribute("fill","none"),r.appendChild(a),this.container.append(r),this._createPopup(this.container,a,e),this.container}}class b extends o{constructor(e){super(e,!!(e.data.hasPopup||e.data.title||e.data.contents),!0)}render(){this.container.className="circleAnnotation";const e=this.data,t=e.rect[2]-e.rect[0],n=e.rect[3]-e.rect[1],r=this.svgFactory.create(t,n),i=e.borderStyle.width,a=this.svgFactory.createElement("svg:ellipse");return a.setAttribute("cx",t/2),a.setAttribute("cy",n/2),a.setAttribute("rx",t/2-i/2),a.setAttribute("ry",n/2-i/2),a.setAttribute("stroke-width",i||1),a.setAttribute("stroke","transparent"),a.setAttribute("fill","none"),r.appendChild(a),this.container.append(r),this._createPopup(this.container,a,e),this.container}}class w extends o{constructor(e){super(e,!!(e.data.hasPopup||e.data.title||e.data.contents),!0),this.containerClassName="polylineAnnotation",this.svgElementName="svg:polyline"}render(){this.container.className=this.containerClassName;const e=this.data,t=e.rect[2]-e.rect[0],n=e.rect[3]-e.rect[1],r=this.svgFactory.create(t,n);let i=[];for(const t of e.vertices){const n=t.x-e.rect[0],r=e.rect[3]-t.y;i.push(n+","+r)}i=i.join(" ");const a=this.svgFactory.createElement(this.svgElementName);return a.setAttribute("points",i),a.setAttribute("stroke-width",e.borderStyle.width||1),a.setAttribute("stroke","transparent"),a.setAttribute("fill","none"),r.appendChild(a),this.container.append(r),this._createPopup(this.container,a,e),this.container}}class x extends w{constructor(e){super(e),this.containerClassName="polygonAnnotation",this.svgElementName="svg:polygon"}}class _ extends o{constructor(e){super(e,!!(e.data.hasPopup||e.data.title||e.data.contents),!0)}render(){return this.container.className="caretAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}class C extends o{constructor(e){super(e,!!(e.data.hasPopup||e.data.title||e.data.contents),!0),this.containerClassName="inkAnnotation",this.svgElementName="svg:polyline"}render(){this.container.className=this.containerClassName;const e=this.data,t=e.rect[2]-e.rect[0],n=e.rect[3]-e.rect[1],r=this.svgFactory.create(t,n);for(const t of e.inkLists){let n=[];for(const r of t){const t=r.x-e.rect[0],i=e.rect[3]-r.y;n.push(`${t},${i}`)}n=n.join(" ");const i=this.svgFactory.createElement(this.svgElementName);i.setAttribute("points",n),i.setAttribute("stroke-width",e.borderStyle.width||1),i.setAttribute("stroke","transparent"),i.setAttribute("fill","none"),this._createPopup(this.container,i,e),r.appendChild(i)}return this.container.append(r),this.container}}class S extends o{constructor(e){super(e,!!(e.data.hasPopup||e.data.title||e.data.contents),!0)}render(){return this.container.className="highlightAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}class k extends o{constructor(e){super(e,!!(e.data.hasPopup||e.data.title||e.data.contents),!0)}render(){return this.container.className="underlineAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}class B extends o{constructor(e){super(e,!!(e.data.hasPopup||e.data.title||e.data.contents),!0)}render(){return this.container.className="squigglyAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}class E extends o{constructor(e){super(e,!!(e.data.hasPopup||e.data.title||e.data.contents),!0)}render(){return this.container.className="strikeoutAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}class T extends o{constructor(e){super(e,!!(e.data.hasPopup||e.data.title||e.data.contents),!0)}render(){return this.container.className="stampAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}class I extends o{constructor(e){super(e,!0);const{filename:t,content:n}=this.data.file;this.filename=(0,r.getFilenameFromUrl)(t),this.content=n,this.linkService.eventBus&&this.linkService.eventBus.dispatch("fileattachmentannotation",{source:this,id:(0,i.stringToPDFString)(t),filename:t,content:n})}render(){this.container.className="fileAttachmentAnnotation";const e=document.createElement("div");return e.style.height=this.container.style.height,e.style.width=this.container.style.width,e.addEventListener("dblclick",this._download.bind(this)),this.data.hasPopup||!this.data.title&&!this.data.contents||this._createPopup(this.container,e,this.data),this.container.appendChild(e),this.container}_download(){this.downloadManager?this.downloadManager.downloadData(this.content,this.filename,""):(0,i.warn)("Download cannot be started due to unavailable download manager")}}t.AnnotationLayer=class{static render(e){const t=[],n=[];for(const r of e.annotations)r&&(r.annotationType!==i.AnnotationType.POPUP?t.push(r):n.push(r));n.length&&t.push(...n);for(const n of t){const t=a.create({data:n,layer:e.div,page:e.page,viewport:e.viewport,linkService:e.linkService,downloadManager:e.downloadManager,imageResourcesPath:e.imageResourcesPath||"",renderInteractiveForms:e.renderInteractiveForms||!1,svgFactory:new r.DOMSVGFactory});t.isRenderable&&e.div.appendChild(t.render())}}static update(e){for(const t of e.annotations){const n=e.div.querySelector(`[data-annotation-id="${t.id}"]`);n&&(n.style.transform=`matrix(${e.viewport.transform.join(",")})`)}e.div.removeAttribute("hidden")}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.renderTextLayer=void 0;var r=n(2),i=function(){var e=1e5,t=/\S/;function n(e,n,i){var a,o=document.createElement("span"),s={angle:0,canvasWidth:0,isWhitespace:!1,originalTransform:null,paddingBottom:0,paddingLeft:0,paddingRight:0,paddingTop:0,scale:1};if(e._textDivs.push(o),a=n.str,!t.test(a))return s.isWhitespace=!0,void e._textDivProperties.set(o,s);var l=r.Util.transform(e._viewport.transform,n.transform),c=Math.atan2(l[1],l[0]),u=i[n.fontName];u.vertical&&(c+=Math.PI/2);var h=Math.sqrt(l[2]*l[2]+l[3]*l[3]),d=h;let f,p;u.ascent?d=u.ascent*d:u.descent&&(d=(1+u.descent)*d),0===c?(f=l[4],p=l[5]-d):(f=l[4]+d*Math.sin(c),p=l[5]-d*Math.cos(c)),o.style.left=`${f}px`,o.style.top=`${p}px`,o.style.fontSize=`${h}px`,o.style.fontFamily=u.fontFamily,o.textContent=n.str,e._fontInspectorEnabled&&(o.dataset.fontName=n.fontName),0!==c&&(s.angle=c*(180/Math.PI));let A=!1;if(n.str.length>1)A=!0;else if(n.transform[0]!==n.transform[3]){const e=Math.abs(n.transform[0]),t=Math.abs(n.transform[3]);e!==t&&Math.max(e,t)/Math.min(e,t)>1.5&&(A=!0)}if(A&&(u.vertical?s.canvasWidth=n.height*e._viewport.scale:s.canvasWidth=n.width*e._viewport.scale),e._textDivProperties.set(o,s),e._textContentStream&&e._layoutText(o),e._enhanceTextSelection){var g=1,m=0;0!==c&&(g=Math.cos(c),m=Math.sin(c));var v,y,b=(u.vertical?n.height:n.width)*e._viewport.scale,w=h;0!==c?(v=[g,m,-m,g,f,p],y=r.Util.getAxialAlignedBoundingBox([0,0,b,w],v)):y=[f,p,f+b,p+w],e._bounds.push({left:y[0],top:y[1],right:y[2],bottom:y[3],div:o,size:[b,w],m:v})}}function i(t){if(!t._canceled){var n=t._textDivs,r=t._capability,i=n.length;if(i>e)return t._renderingDone=!0,void r.resolve();if(!t._textContentStream)for(var a=0;a<i;a++)t._layoutText(n[a]);t._renderingDone=!0,r.resolve()}}function a(e,t,n){let r=0;for(let i=0;i<n;i++){const n=e[t++];n>0&&(r=r?Math.min(n,r):n)}return r}function o(e){for(var t=e._bounds,n=e._viewport,i=function(e,t,n){var r=n.map(function(e,t){return{x1:e.left,y1:e.top,x2:e.right,y2:e.bottom,index:t,x1New:void 0,x2New:void 0}});s(e,r);var i=new Array(n.length);return r.forEach(function(e){var t=e.index;i[t]={left:e.x1New,top:0,right:e.x2New,bottom:0}}),n.map(function(t,n){var a=i[n],o=r[n];o.x1=t.top,o.y1=e-a.right,o.x2=t.bottom,o.y2=e-a.left,o.index=n,o.x1New=void 0,o.x2New=void 0}),s(t,r),r.forEach(function(e){var t=e.index;i[t].top=e.x1New,i[t].bottom=e.x2New}),i}(n.width,n.height,t),o=0;o<i.length;o++){var l=t[o].div,c=e._textDivProperties.get(l);if(0!==c.angle){var u=i[o],h=t[o],d=h.m,f=d[0],p=d[1],A=[[0,0],[0,h.size[1]],[h.size[0],0],h.size],g=new Float64Array(64);A.forEach(function(e,t){var n=r.Util.applyTransform(e,d);g[t+0]=f&&(u.left-n[0])/f,g[t+4]=p&&(u.top-n[1])/p,g[t+8]=f&&(u.right-n[0])/f,g[t+12]=p&&(u.bottom-n[1])/p,g[t+16]=p&&(u.left-n[0])/-p,g[t+20]=f&&(u.top-n[1])/f,g[t+24]=p&&(u.right-n[0])/-p,g[t+28]=f&&(u.bottom-n[1])/f,g[t+32]=f&&(u.left-n[0])/-f,g[t+36]=p&&(u.top-n[1])/-p,g[t+40]=f&&(u.right-n[0])/-f,g[t+44]=p&&(u.bottom-n[1])/-p,g[t+48]=p&&(u.left-n[0])/p,g[t+52]=f&&(u.top-n[1])/-f,g[t+56]=p&&(u.right-n[0])/p,g[t+60]=f&&(u.bottom-n[1])/-f});var m=1+Math.min(Math.abs(f),Math.abs(p));c.paddingLeft=a(g,32,16)/m,c.paddingTop=a(g,48,16)/m,c.paddingRight=a(g,0,16)/m,c.paddingBottom=a(g,16,16)/m,e._textDivProperties.set(l,c)}else c.paddingLeft=t[o].left-i[o].left,c.paddingTop=t[o].top-i[o].top,c.paddingRight=i[o].right-t[o].right,c.paddingBottom=i[o].bottom-t[o].bottom,e._textDivProperties.set(l,c)}}function s(e,t){t.sort(function(e,t){return e.x1-t.x1||e.index-t.index});var n=[{start:-1/0,end:1/0,boundary:{x1:-1/0,y1:-1/0,x2:0,y2:1/0,index:-1,x1New:0,x2New:0}}];t.forEach(function(e){for(var t=0;t<n.length&&n[t].end<=e.y1;)t++;for(var r,i,a=n.length-1;a>=0&&n[a].start>=e.y2;)a--;var o,s,l=-1/0;for(o=t;o<=a;o++){var c;(c=(i=(r=n[o]).boundary).x2>e.x1?i.index>e.index?i.x1New:e.x1:void 0===i.x2New?(i.x2+e.x1)/2:i.x2New)>l&&(l=c)}for(e.x1New=l,o=t;o<=a;o++)void 0===(i=(r=n[o]).boundary).x2New?i.x2>e.x1?i.index>e.index&&(i.x2New=i.x2):i.x2New=l:i.x2New>l&&(i.x2New=Math.max(l,i.x2));var u=[],h=null;for(o=t;o<=a;o++){var d=(i=(r=n[o]).boundary).x2>e.x2?i:e;h===d?u[u.length-1].end=r.end:(u.push({start:r.start,end:r.end,boundary:d}),h=d)}for(n[t].start<e.y1&&(u[0].start=e.y1,u.unshift({start:n[t].start,end:e.y1,boundary:n[t].boundary})),e.y2<n[a].end&&(u[u.length-1].end=e.y2,u.push({start:e.y2,end:n[a].end,boundary:n[a].boundary})),o=t;o<=a;o++)if(void 0===(i=(r=n[o]).boundary).x2New){var f=!1;for(s=t-1;!f&&s>=0&&n[s].start>=i.y1;s--)f=n[s].boundary===i;for(s=a+1;!f&&s<n.length&&n[s].end<=i.y2;s++)f=n[s].boundary===i;for(s=0;!f&&s<u.length;s++)f=u[s].boundary===i;f||(i.x2New=l)}Array.prototype.splice.apply(n,[t,a-t+1].concat(u))}),n.forEach(function(t){var n=t.boundary;void 0===n.x2New&&(n.x2New=Math.max(e,n.x2))})}function l({textContent:e,textContentStream:t,container:n,viewport:i,textDivs:a,textContentItemsStr:o,enhanceTextSelection:s}){this._textContent=e,this._textContentStream=t,this._container=n,this._viewport=i,this._textDivs=a||[],this._textContentItemsStr=o||[],this._enhanceTextSelection=!!s,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(()=>{this._layoutTextCtx&&(this._layoutTextCtx.canvas.width=0,this._layoutTextCtx.canvas.height=0,this._layoutTextCtx=null)}).catch(()=>{})}return l.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(e,t){for(let r=0,i=e.length;r<i;r++)this._textContentItemsStr.push(e[r].str),n(this,e[r],t)},_layoutText(e){const t=this._textDivProperties.get(e);if(t.isWhitespace)return;let n="";if(0!==t.canvasWidth){const{fontSize:r,fontFamily:i}=e.style;r===this._layoutTextLastFontSize&&i===this._layoutTextLastFontFamily||(this._layoutTextCtx.font=`${r} ${i}`,this._layoutTextLastFontSize=r,this._layoutTextLastFontFamily=i);const{width:a}=this._layoutTextCtx.measureText(e.textContent);a>0&&(t.scale=t.canvasWidth/a,n=`scaleX(${t.scale})`)}0!==t.angle&&(n=`rotate(${t.angle}deg) ${n}`),n.length>0&&(this._enhanceTextSelection&&(t.originalTransform=n),e.style.transform=n),this._textDivProperties.set(e,t),this._container.appendChild(e)},_render:function(e){const t=(0,r.createPromiseCapability)();let n=Object.create(null);const a=document.createElement("canvas");if(a.mozOpaque=!0,this._layoutTextCtx=a.getContext("2d",{alpha:!1}),this._textContent){const e=this._textContent.items,n=this._textContent.styles;this._processItems(e,n),t.resolve()}else{if(!this._textContentStream)throw new Error('Neither "textContent" nor "textContentStream" parameters specified.');{const e=()=>{this._reader.read().then(({value:r,done:i})=>{i?t.resolve():(Object.assign(n,r.styles),this._processItems(r.items,n),e())},t.reject)};this._reader=this._textContentStream.getReader(),e()}}t.promise.then(()=>{n=null,e?this._renderTimer=setTimeout(()=>{i(this),this._renderTimer=null},e):i(this)},this._capability.reject)},expandTextDivs:function(e){if(!this._enhanceTextSelection||!this._renderingDone)return;null!==this._bounds&&(o(this),this._bounds=null);const t=[],n=[];for(var r=0,i=this._textDivs.length;r<i;r++){const i=this._textDivs[r],a=this._textDivProperties.get(i);a.isWhitespace||(e?(t.length=0,n.length=0,a.originalTransform&&t.push(a.originalTransform),a.paddingTop>0?(n.push(`${a.paddingTop}px`),t.push(`translateY(${-a.paddingTop}px)`)):n.push(0),a.paddingRight>0?n.push(`${a.paddingRight/a.scale}px`):n.push(0),a.paddingBottom>0?n.push(`${a.paddingBottom}px`):n.push(0),a.paddingLeft>0?(n.push(`${a.paddingLeft/a.scale}px`),t.push(`translateX(${-a.paddingLeft/a.scale}px)`)):n.push(0),i.style.padding=n.join(" "),t.length&&(i.style.transform=t.join(" "))):(i.style.padding=null,i.style.transform=a.originalTransform))}}},function(e){var t=new l({textContent:e.textContent,textContentStream:e.textContentStream,container:e.container,viewport:e.viewport,textDivs:e.textDivs,textContentItemsStr:e.textContentItemsStr,enhanceTextSelection:e.enhanceTextSelection});return t._render(e.timeout),t}}();t.renderTextLayer=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SVGGraphics=void 0;var r=n(2),i=n(1),a=n(4);let o=function(){throw new Error("Not implemented: SVGGraphics")};t.SVGGraphics=o;{const e={fontStyle:"normal",fontWeight:"normal",fillColor:"#000000"},n="http://www.w3.org/XML/1998/namespace",c="http://www.w3.org/1999/xlink",u=["butt","round","square"],h=["miter","round","bevel"],d=function(){const e=new Uint8Array([137,80,78,71,13,10,26,10]),t=12,n=new Int32Array(256);for(let e=0;e<256;e++){let t=e;for(let e=0;e<8;e++)t=1&t?3988292384^t>>1&2147483647:t>>1&2147483647;n[e]=t}function i(e,t,r,i){let a=i;const o=t.length;r[a]=o>>24&255,r[a+1]=o>>16&255,r[a+2]=o>>8&255,r[a+3]=255&o,r[a+=4]=255&e.charCodeAt(0),r[a+1]=255&e.charCodeAt(1),r[a+2]=255&e.charCodeAt(2),r[a+3]=255&e.charCodeAt(3),a+=4,r.set(t,a);const s=function(e,t,r){let i=-1;for(let a=t;a<r;a++){const t=255&(i^e[a]);i=i>>>8^n[t]}return-1^i}(r,i+4,a+=t.length);r[a]=s>>24&255,r[a+1]=s>>16&255,r[a+2]=s>>8&255,r[a+3]=255&s}function o(e){let t=e.length;const n=Math.ceil(t/65535),r=new Uint8Array(2+t+5*n+4);let i=0;r[i++]=120,r[i++]=156;let a=0;for(;t>65535;)r[i++]=0,r[i++]=255,r[i++]=255,r[i++]=0,r[i++]=0,r.set(e.subarray(a,a+65535),i),i+=65535,a+=65535,t-=65535;r[i++]=1,r[i++]=255&t,r[i++]=t>>8&255,r[i++]=255&~t,r[i++]=(65535&~t)>>8&255,r.set(e.subarray(a),i),i+=e.length-a;const o=function(e,t,n){let r=1,i=0;for(let a=t;a<n;++a)i=(i+(r=(r+(255&e[a]))%65521))%65521;return i<<16|r}(e,0,e.length);return r[i++]=o>>24&255,r[i++]=o>>16&255,r[i++]=o>>8&255,r[i++]=255&o,r}function s(n,s,l,c){const u=n.width,h=n.height;let d,f,p;const A=n.data;switch(s){case r.ImageKind.GRAYSCALE_1BPP:f=0,d=1,p=u+7>>3;break;case r.ImageKind.RGB_24BPP:f=2,d=8,p=3*u;break;case r.ImageKind.RGBA_32BPP:f=6,d=8,p=4*u;break;default:throw new Error("invalid format")}const g=new Uint8Array((1+p)*h);let m=0,v=0;for(let e=0;e<h;++e)g[m++]=0,g.set(A.subarray(v,v+p),m),v+=p,m+=p;if(s===r.ImageKind.GRAYSCALE_1BPP&&c){m=0;for(let e=0;e<h;e++){m++;for(let e=0;e<p;e++)g[m++]^=255}}const y=new Uint8Array([u>>24&255,u>>16&255,u>>8&255,255&u,h>>24&255,h>>16&255,h>>8&255,255&h,d,f,0,0,0]),b=function(e){if(!a.isNodeJS)return o(e);try{let t;t=parseInt(process.versions.node)>=8?e:Buffer.from(e);const n=__webpack_require__(0).deflateSync(t,{level:9});return n instanceof Uint8Array?n:new Uint8Array(n)}catch(e){(0,r.warn)("Not compressing PNG because zlib.deflateSync is unavailable: "+e)}return o(e)}(g),w=e.length+3*t+y.length+b.length,x=new Uint8Array(w);let _=0;return x.set(e,_),i("IHDR",y,x,_+=e.length),i("IDATA",b,x,_+=t+y.length),_+=t+b.length,i("IEND",new Uint8Array(0),x,_),(0,r.createObjectURL)(x,"image/png",l)}return function(e,t,n){return s(e,void 0===e.kind?r.ImageKind.GRAYSCALE_1BPP:e.kind,t,n)}}();class f{constructor(){this.fontSizeScale=1,this.fontWeight=e.fontWeight,this.fontSize=0,this.textMatrix=r.IDENTITY_MATRIX,this.fontMatrix=r.FONT_IDENTITY_MATRIX,this.leading=0,this.textRenderingMode=r.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=e.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=""}clone(){return Object.create(this)}setCurrentPoint(e,t){this.x=e,this.y=t}}function s(e){if(Number.isInteger(e))return e.toString();const t=e.toFixed(10);let n=t.length-1;if("0"!==t[n])return t;do{n--}while("0"===t[n]);return t.substring(0,"."===t[n]?n:n+1)}function l(e){if(0===e[4]&&0===e[5]){if(0===e[1]&&0===e[2])return 1===e[0]&&1===e[3]?"":`scale(${s(e[0])} ${s(e[3])})`;if(e[0]===e[3]&&e[1]===-e[2]){return`rotate(${s(180*Math.acos(e[0])/Math.PI)})`}}else if(1===e[0]&&0===e[1]&&0===e[2]&&1===e[3])return`translate(${s(e[4])} ${s(e[5])})`;return`matrix(${s(e[0])} ${s(e[1])} ${s(e[2])} ${s(e[3])} ${s(e[4])} `+`${s(e[5])})`}let p=0,A=0,g=0;t.SVGGraphics=o=class{constructor(e,t,n=!1){this.svgFactory=new i.DOMSVGFactory,this.current=new f,this.transformMatrix=r.IDENTITY_MATRIX,this.transformStack=[],this.extraStack=[],this.commonObjs=e,this.objs=t,this.pendingClip=null,this.pendingEOFill=!1,this.embedFonts=!1,this.embeddedFonts=Object.create(null),this.cssStyle=null,this.forceDataSchema=!!n,this._operatorIdMapping=[];for(const e in r.OPS)this._operatorIdMapping[r.OPS[e]]=e}save(){this.transformStack.push(this.transformMatrix);const e=this.current;this.extraStack.push(e),this.current=e.clone()}restore(){this.transformMatrix=this.transformStack.pop(),this.current=this.extraStack.pop(),this.pendingClip=null,this.tgrp=null}group(e){this.save(),this.executeOpTree(e),this.restore()}loadDependencies(e){const t=e.fnArray,n=e.argsArray;for(let e=0,i=t.length;e<i;e++)if(t[e]===r.OPS.dependency)for(const t of n[e]){const e=t.startsWith("g_")?this.commonObjs:this.objs,n=new Promise(n=>{e.get(t,n)});this.current.dependencies.push(n)}return Promise.all(this.current.dependencies)}transform(e,t,n,i,a,o){const s=[e,t,n,i,a,o];this.transformMatrix=r.Util.transform(this.transformMatrix,s),this.tgrp=null}getSVG(e,t){this.viewport=t;const n=this._initialize(t);return this.loadDependencies(e).then(()=>(this.transformMatrix=r.IDENTITY_MATRIX,this.executeOpTree(this.convertOpList(e)),n))}convertOpList(e){const t=this._operatorIdMapping,n=e.argsArray,r=e.fnArray,i=[];for(let e=0,a=r.length;e<a;e++){const a=r[e];i.push({fnId:a,fn:t[a],args:n[e]})}return function(e){let t=[];const n=[];for(const r of e)"save"!==r.fn?"restore"===r.fn?t=n.pop():t.push(r):(t.push({fnId:92,fn:"group",items:[]}),n.push(t),t=t[t.length-1].items);return t}(i)}executeOpTree(e){for(const t of e){const e=t.fn,n=t.fnId,i=t.args;switch(0|n){case r.OPS.beginText:this.beginText();break;case r.OPS.dependency:break;case r.OPS.setLeading:this.setLeading(i);break;case r.OPS.setLeadingMoveText:this.setLeadingMoveText(i[0],i[1]);break;case r.OPS.setFont:this.setFont(i);break;case r.OPS.showText:case r.OPS.showSpacedText:this.showText(i[0]);break;case r.OPS.endText:this.endText();break;case r.OPS.moveText:this.moveText(i[0],i[1]);break;case r.OPS.setCharSpacing:this.setCharSpacing(i[0]);break;case r.OPS.setWordSpacing:this.setWordSpacing(i[0]);break;case r.OPS.setHScale:this.setHScale(i[0]);break;case r.OPS.setTextMatrix:this.setTextMatrix(i[0],i[1],i[2],i[3],i[4],i[5]);break;case r.OPS.setTextRise:this.setTextRise(i[0]);break;case r.OPS.setTextRenderingMode:this.setTextRenderingMode(i[0]);break;case r.OPS.setLineWidth:this.setLineWidth(i[0]);break;case r.OPS.setLineJoin:this.setLineJoin(i[0]);break;case r.OPS.setLineCap:this.setLineCap(i[0]);break;case r.OPS.setMiterLimit:this.setMiterLimit(i[0]);break;case r.OPS.setFillRGBColor:this.setFillRGBColor(i[0],i[1],i[2]);break;case r.OPS.setStrokeRGBColor:this.setStrokeRGBColor(i[0],i[1],i[2]);break;case r.OPS.setStrokeColorN:this.setStrokeColorN(i);break;case r.OPS.setFillColorN:this.setFillColorN(i);break;case r.OPS.shadingFill:this.shadingFill(i[0]);break;case r.OPS.setDash:this.setDash(i[0],i[1]);break;case r.OPS.setRenderingIntent:this.setRenderingIntent(i[0]);break;case r.OPS.setFlatness:this.setFlatness(i[0]);break;case r.OPS.setGState:this.setGState(i[0]);break;case r.OPS.fill:this.fill();break;case r.OPS.eoFill:this.eoFill();break;case r.OPS.stroke:this.stroke();break;case r.OPS.fillStroke:this.fillStroke();break;case r.OPS.eoFillStroke:this.eoFillStroke();break;case r.OPS.clip:this.clip("nonzero");break;case r.OPS.eoClip:this.clip("evenodd");break;case r.OPS.paintSolidColorImageMask:this.paintSolidColorImageMask();break;case r.OPS.paintImageXObject:this.paintImageXObject(i[0]);break;case r.OPS.paintInlineImageXObject:this.paintInlineImageXObject(i[0]);break;case r.OPS.paintImageMaskXObject:this.paintImageMaskXObject(i[0]);break;case r.OPS.paintFormXObjectBegin:this.paintFormXObjectBegin(i[0],i[1]);break;case r.OPS.paintFormXObjectEnd:this.paintFormXObjectEnd();break;case r.OPS.closePath:this.closePath();break;case r.OPS.closeStroke:this.closeStroke();break;case r.OPS.closeFillStroke:this.closeFillStroke();break;case r.OPS.closeEOFillStroke:this.closeEOFillStroke();break;case r.OPS.nextLine:this.nextLine();break;case r.OPS.transform:this.transform(i[0],i[1],i[2],i[3],i[4],i[5]);break;case r.OPS.constructPath:this.constructPath(i[0],i[1]);break;case r.OPS.endPath:this.endPath();break;case 92:this.group(t.items);break;default:(0,r.warn)(`Unimplemented operator ${e}`)}}}setWordSpacing(e){this.current.wordSpacing=e}setCharSpacing(e){this.current.charSpacing=e}nextLine(){this.moveText(0,this.current.leading)}setTextMatrix(e,t,n,r,i,a){const o=this.current;o.textMatrix=o.lineMatrix=[e,t,n,r,i,a],o.textMatrixScale=Math.sqrt(e*e+t*t),o.x=o.lineX=0,o.y=o.lineY=0,o.xcoords=[],o.ycoords=[],o.tspan=this.svgFactory.createElement("svg:tspan"),o.tspan.setAttributeNS(null,"font-family",o.fontFamily),o.tspan.setAttributeNS(null,"font-size",`${s(o.fontSize)}px`),o.tspan.setAttributeNS(null,"y",s(-o.y)),o.txtElement=this.svgFactory.createElement("svg:text"),o.txtElement.appendChild(o.tspan)}beginText(){const e=this.current;e.x=e.lineX=0,e.y=e.lineY=0,e.textMatrix=r.IDENTITY_MATRIX,e.lineMatrix=r.IDENTITY_MATRIX,e.textMatrixScale=1,e.tspan=this.svgFactory.createElement("svg:tspan"),e.txtElement=this.svgFactory.createElement("svg:text"),e.txtgrp=this.svgFactory.createElement("svg:g"),e.xcoords=[],e.ycoords=[]}moveText(e,t){const n=this.current;n.x=n.lineX+=e,n.y=n.lineY+=t,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",`${s(n.fontSize)}px`),n.tspan.setAttributeNS(null,"y",s(-n.y))}showText(t){const i=this.current,a=i.font,o=i.fontSize;if(0===o)return;const c=i.fontSizeScale,u=i.charSpacing,h=i.wordSpacing,d=i.fontDirection,f=i.textHScale*d,p=a.vertical,A=p?1:-1,g=a.defaultVMetrics,m=o*i.fontMatrix[0];let v=0;for(const e of t){if(null===e){v+=d*h;continue}if((0,r.isNum)(e)){v+=A*e*o/1e3;continue}const t=(e.isSpace?h:0)+u,n=e.fontChar;let s,l,f,y=e.width;if(p){let t;const n=e.vmetric||g;t=-(t=e.vmetric?n[1]:.5*y)*m;const r=n[2]*m;y=n?-n[0]:y,s=t/c,l=(v+r)/c}else s=v/c,l=0;(e.isInFont||a.missingFile)&&(i.xcoords.push(i.x+s),p&&i.ycoords.push(-i.y+l),i.tspan.textContent+=n),v+=f=p?y*m-t*d:y*m+t*d}i.tspan.setAttributeNS(null,"x",i.xcoords.map(s).join(" ")),p?i.tspan.setAttributeNS(null,"y",i.ycoords.map(s).join(" ")):i.tspan.setAttributeNS(null,"y",s(-i.y)),p?i.y-=v:i.x+=v*f,i.tspan.setAttributeNS(null,"font-family",i.fontFamily),i.tspan.setAttributeNS(null,"font-size",`${s(i.fontSize)}px`),i.fontStyle!==e.fontStyle&&i.tspan.setAttributeNS(null,"font-style",i.fontStyle),i.fontWeight!==e.fontWeight&&i.tspan.setAttributeNS(null,"font-weight",i.fontWeight);const y=i.textRenderingMode&r.TextRenderingMode.FILL_STROKE_MASK;if(y===r.TextRenderingMode.FILL||y===r.TextRenderingMode.FILL_STROKE?(i.fillColor!==e.fillColor&&i.tspan.setAttributeNS(null,"fill",i.fillColor),i.fillAlpha<1&&i.tspan.setAttributeNS(null,"fill-opacity",i.fillAlpha)):i.textRenderingMode===r.TextRenderingMode.ADD_TO_PATH?i.tspan.setAttributeNS(null,"fill","transparent"):i.tspan.setAttributeNS(null,"fill","none"),y===r.TextRenderingMode.STROKE||y===r.TextRenderingMode.FILL_STROKE){const e=1/(i.textMatrixScale||1);this._setStrokeAttributes(i.tspan,e)}let b=i.textMatrix;0!==i.textRise&&((b=b.slice())[5]+=i.textRise),i.txtElement.setAttributeNS(null,"transform",`${l(b)} scale(${s(f)}, -1)`),i.txtElement.setAttributeNS(n,"xml:space","preserve"),i.txtElement.appendChild(i.tspan),i.txtgrp.appendChild(i.txtElement),this._ensureTransformGroup().appendChild(i.txtElement)}setLeadingMoveText(e,t){this.setLeading(-t),this.moveText(e,t)}addFontStyle(e){if(!e.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));const t=(0,r.createObjectURL)(e.data,e.mimetype,this.forceDataSchema);this.cssStyle.textContent+=`@font-face { font-family: "${e.loadedName}";`+` src: url(${t}); }\n`}setFont(e){const t=this.current,n=this.commonObjs.get(e[0]);let i=e[1];t.font=n,!this.embedFonts||n.missingFile||this.embeddedFonts[n.loadedName]||(this.addFontStyle(n),this.embeddedFonts[n.loadedName]=n),t.fontMatrix=n.fontMatrix?n.fontMatrix:r.FONT_IDENTITY_MATRIX;let a="normal";n.black?a="900":n.bold&&(a="bold");const o=n.italic?"italic":"normal";i<0?(i=-i,t.fontDirection=-1):t.fontDirection=1,t.fontSize=i,t.fontFamily=n.loadedName,t.fontWeight=a,t.fontStyle=o,t.tspan=this.svgFactory.createElement("svg:tspan"),t.tspan.setAttributeNS(null,"y",s(-t.y)),t.xcoords=[],t.ycoords=[]}endText(){const e=this.current;e.textRenderingMode&r.TextRenderingMode.ADD_TO_PATH_FLAG&&e.txtElement&&e.txtElement.hasChildNodes()&&(e.element=e.txtElement,this.clip("nonzero"),this.endPath())}setLineWidth(e){e>0&&(this.current.lineWidth=e)}setLineCap(e){this.current.lineCap=u[e]}setLineJoin(e){this.current.lineJoin=h[e]}setMiterLimit(e){this.current.miterLimit=e}setStrokeAlpha(e){this.current.strokeAlpha=e}setStrokeRGBColor(e,t,n){this.current.strokeColor=r.Util.makeCssRgb(e,t,n)}setFillAlpha(e){this.current.fillAlpha=e}setFillRGBColor(e,t,n){this.current.fillColor=r.Util.makeCssRgb(e,t,n),this.current.tspan=this.svgFactory.createElement("svg:tspan"),this.current.xcoords=[],this.current.ycoords=[]}setStrokeColorN(e){this.current.strokeColor=this._makeColorN_Pattern(e)}setFillColorN(e){this.current.fillColor=this._makeColorN_Pattern(e)}shadingFill(e){const t=this.viewport.width,n=this.viewport.height,i=r.Util.inverseTransform(this.transformMatrix),a=r.Util.applyTransform([0,0],i),o=r.Util.applyTransform([0,n],i),s=r.Util.applyTransform([t,0],i),l=r.Util.applyTransform([t,n],i),c=Math.min(a[0],o[0],s[0],l[0]),u=Math.min(a[1],o[1],s[1],l[1]),h=Math.max(a[0],o[0],s[0],l[0]),d=Math.max(a[1],o[1],s[1],l[1]),f=this.svgFactory.createElement("svg:rect");f.setAttributeNS(null,"x",c),f.setAttributeNS(null,"y",u),f.setAttributeNS(null,"width",h-c),f.setAttributeNS(null,"height",d-u),f.setAttributeNS(null,"fill",this._makeShadingPattern(e)),this.current.fillAlpha<1&&f.setAttributeNS(null,"fill-opacity",this.current.fillAlpha),this._ensureTransformGroup().appendChild(f)}_makeColorN_Pattern(e){return"TilingPattern"===e[0]?this._makeTilingPattern(e):this._makeShadingPattern(e)}_makeTilingPattern(e){const t=e[1],n=e[2],i=e[3]||r.IDENTITY_MATRIX,[a,o,s,l]=e[4],c=e[5],u=e[6],h=e[7],d=`shading${g++}`,[f,p]=r.Util.applyTransform([a,o],i),[A,m]=r.Util.applyTransform([s,l],i),[v,y]=r.Util.singularValueDecompose2dScale(i),b=c*v,w=u*y,x=this.svgFactory.createElement("svg:pattern");x.setAttributeNS(null,"id",d),x.setAttributeNS(null,"patternUnits","userSpaceOnUse"),x.setAttributeNS(null,"width",b),x.setAttributeNS(null,"height",w),x.setAttributeNS(null,"x",`${f}`),x.setAttributeNS(null,"y",`${p}`);const _=this.svg,C=this.transformMatrix,S=this.current.fillColor,k=this.current.strokeColor,B=this.svgFactory.create(A-f,m-p);if(this.svg=B,this.transformMatrix=i,2===h){const e=r.Util.makeCssRgb(...t);this.current.fillColor=e,this.current.strokeColor=e}return this.executeOpTree(this.convertOpList(n)),this.svg=_,this.transformMatrix=C,this.current.fillColor=S,this.current.strokeColor=k,x.appendChild(B.childNodes[0]),this.defs.appendChild(x),`url(#${d})`}_makeShadingPattern(e){switch(e[0]){case"RadialAxial":const t=`shading${g++}`,n=e[3];let i;switch(e[1]){case"axial":const n=e[4],r=e[5];(i=this.svgFactory.createElement("svg:linearGradient")).setAttributeNS(null,"id",t),i.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),i.setAttributeNS(null,"x1",n[0]),i.setAttributeNS(null,"y1",n[1]),i.setAttributeNS(null,"x2",r[0]),i.setAttributeNS(null,"y2",r[1]);break;case"radial":const a=e[4],o=e[5],s=e[6],l=e[7];(i=this.svgFactory.createElement("svg:radialGradient")).setAttributeNS(null,"id",t),i.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),i.setAttributeNS(null,"cx",o[0]),i.setAttributeNS(null,"cy",o[1]),i.setAttributeNS(null,"r",l),i.setAttributeNS(null,"fx",a[0]),i.setAttributeNS(null,"fy",a[1]),i.setAttributeNS(null,"fr",s);break;default:throw new Error(`Unknown RadialAxial type: ${e[1]}`)}for(const e of n){const t=this.svgFactory.createElement("svg:stop");t.setAttributeNS(null,"offset",e[0]),t.setAttributeNS(null,"stop-color",e[1]),i.appendChild(t)}return this.defs.appendChild(i),`url(#${t})`;case"Mesh":return(0,r.warn)("Unimplemented pattern Mesh"),null;case"Dummy":return"hotpink";default:throw new Error(`Unknown IR type: ${e[0]}`)}}setDash(e,t){this.current.dashArray=e,this.current.dashPhase=t}constructPath(e,t){const n=this.current;let i=n.x,a=n.y,o=[],l=0;for(const n of e)switch(0|n){case r.OPS.rectangle:i=t[l++],a=t[l++];const e=i+t[l++],c=a+t[l++];o.push("M",s(i),s(a),"L",s(e),s(a),"L",s(e),s(c),"L",s(i),s(c),"Z");break;case r.OPS.moveTo:i=t[l++],a=t[l++],o.push("M",s(i),s(a));break;case r.OPS.lineTo:i=t[l++],a=t[l++],o.push("L",s(i),s(a));break;case r.OPS.curveTo:i=t[l+4],a=t[l+5],o.push("C",s(t[l]),s(t[l+1]),s(t[l+2]),s(t[l+3]),s(i),s(a)),l+=6;break;case r.OPS.curveTo2:o.push("C",s(i),s(a),s(t[l]),s(t[l+1]),s(t[l+2]),s(t[l+3])),i=t[l+2],a=t[l+3],l+=4;break;case r.OPS.curveTo3:i=t[l+2],a=t[l+3],o.push("C",s(t[l]),s(t[l+1]),s(i),s(a),s(i),s(a)),l+=4;break;case r.OPS.closePath:o.push("Z")}o=o.join(" "),n.path&&e.length>0&&e[0]!==r.OPS.rectangle&&e[0]!==r.OPS.moveTo?o=n.path.getAttributeNS(null,"d")+o:(n.path=this.svgFactory.createElement("svg:path"),this._ensureTransformGroup().appendChild(n.path)),n.path.setAttributeNS(null,"d",o),n.path.setAttributeNS(null,"fill","none"),n.element=n.path,n.setCurrentPoint(i,a)}endPath(){const e=this.current;if(e.path=null,!this.pendingClip)return;if(!e.element)return void(this.pendingClip=null);const t=`clippath${p++}`,n=this.svgFactory.createElement("svg:clipPath");n.setAttributeNS(null,"id",t),n.setAttributeNS(null,"transform",l(this.transformMatrix));const r=e.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),e.activeClipUrl&&(e.clipGroup=null,this.extraStack.forEach(function(e){e.clipGroup=null}),n.setAttributeNS(null,"clip-path",e.activeClipUrl)),e.activeClipUrl=`url(#${t})`,this.tgrp=null}clip(e){this.pendingClip=e}closePath(){const e=this.current;if(e.path){const t=`${e.path.getAttributeNS(null,"d")}Z`;e.path.setAttributeNS(null,"d",t)}}setLeading(e){this.current.leading=-e}setTextRise(e){this.current.textRise=e}setTextRenderingMode(e){this.current.textRenderingMode=e}setHScale(e){this.current.textHScale=e/100}setRenderingIntent(e){}setFlatness(e){}setGState(e){for(const[t,n]of e)switch(t){case"LW":this.setLineWidth(n);break;case"LC":this.setLineCap(n);break;case"LJ":this.setLineJoin(n);break;case"ML":this.setMiterLimit(n);break;case"D":this.setDash(n[0],n[1]);break;case"RI":this.setRenderingIntent(n);break;case"FL":this.setFlatness(n);break;case"Font":this.setFont(n);break;case"CA":this.setStrokeAlpha(n);break;case"ca":this.setFillAlpha(n);break;default:(0,r.warn)(`Unimplemented graphic state operator ${t}`)}}fill(){const e=this.current;e.element&&(e.element.setAttributeNS(null,"fill",e.fillColor),e.element.setAttributeNS(null,"fill-opacity",e.fillAlpha),this.endPath())}stroke(){const e=this.current;e.element&&(this._setStrokeAttributes(e.element),e.element.setAttributeNS(null,"fill","none"),this.endPath())}_setStrokeAttributes(e,t=1){const n=this.current;let r=n.dashArray;1!==t&&r.length>0&&(r=r.map(function(e){return t*e})),e.setAttributeNS(null,"stroke",n.strokeColor),e.setAttributeNS(null,"stroke-opacity",n.strokeAlpha),e.setAttributeNS(null,"stroke-miterlimit",s(n.miterLimit)),e.setAttributeNS(null,"stroke-linecap",n.lineCap),e.setAttributeNS(null,"stroke-linejoin",n.lineJoin),e.setAttributeNS(null,"stroke-width",s(t*n.lineWidth)+"px"),e.setAttributeNS(null,"stroke-dasharray",r.map(s).join(" ")),e.setAttributeNS(null,"stroke-dashoffset",s(t*n.dashPhase)+"px")}eoFill(){this.current.element&&this.current.element.setAttributeNS(null,"fill-rule","evenodd"),this.fill()}fillStroke(){this.stroke(),this.fill()}eoFillStroke(){this.current.element&&this.current.element.setAttributeNS(null,"fill-rule","evenodd"),this.fillStroke()}closeStroke(){this.closePath(),this.stroke()}closeFillStroke(){this.closePath(),this.fillStroke()}closeEOFillStroke(){this.closePath(),this.eoFillStroke()}paintSolidColorImageMask(){const e=this.svgFactory.createElement("svg:rect");e.setAttributeNS(null,"x","0"),e.setAttributeNS(null,"y","0"),e.setAttributeNS(null,"width","1px"),e.setAttributeNS(null,"height","1px"),e.setAttributeNS(null,"fill",this.current.fillColor),this._ensureTransformGroup().appendChild(e)}paintImageXObject(e){const t=this.objs.get(e);t?this.paintInlineImageXObject(t):(0,r.warn)(`Dependent image with object ID ${e} is not ready yet`)}paintInlineImageXObject(e,t){const n=e.width,r=e.height,i=d(e,this.forceDataSchema,!!t),a=this.svgFactory.createElement("svg:rect");a.setAttributeNS(null,"x","0"),a.setAttributeNS(null,"y","0"),a.setAttributeNS(null,"width",s(n)),a.setAttributeNS(null,"height",s(r)),this.current.element=a,this.clip("nonzero");const o=this.svgFactory.createElement("svg:image");o.setAttributeNS(c,"xlink:href",i),o.setAttributeNS(null,"x","0"),o.setAttributeNS(null,"y",s(-r)),o.setAttributeNS(null,"width",s(n)+"px"),o.setAttributeNS(null,"height",s(r)+"px"),o.setAttributeNS(null,"transform",`scale(${s(1/n)} ${s(-1/r)})`),t?t.appendChild(o):this._ensureTransformGroup().appendChild(o)}paintImageMaskXObject(e){const t=this.current,n=e.width,r=e.height,i=t.fillColor;t.maskId=`mask${A++}`;const a=this.svgFactory.createElement("svg:mask");a.setAttributeNS(null,"id",t.maskId);const o=this.svgFactory.createElement("svg:rect");o.setAttributeNS(null,"x","0"),o.setAttributeNS(null,"y","0"),o.setAttributeNS(null,"width",s(n)),o.setAttributeNS(null,"height",s(r)),o.setAttributeNS(null,"fill",i),o.setAttributeNS(null,"mask",`url(#${t.maskId})`),this.defs.appendChild(a),this._ensureTransformGroup().appendChild(o),this.paintInlineImageXObject(e,a)}paintFormXObjectBegin(e,t){if(Array.isArray(e)&&6===e.length&&this.transform(e[0],e[1],e[2],e[3],e[4],e[5]),t){const e=t[2]-t[0],n=t[3]-t[1],r=this.svgFactory.createElement("svg:rect");r.setAttributeNS(null,"x",t[0]),r.setAttributeNS(null,"y",t[1]),r.setAttributeNS(null,"width",s(e)),r.setAttributeNS(null,"height",s(n)),this.current.element=r,this.clip("nonzero"),this.endPath()}}paintFormXObjectEnd(){}_initialize(e){const t=this.svgFactory.create(e.width,e.height),n=this.svgFactory.createElement("svg:defs");t.appendChild(n),this.defs=n;const r=this.svgFactory.createElement("svg:g");return r.setAttributeNS(null,"transform",l(e.transform)),t.appendChild(r),this.svg=r,t}_ensureClipGroup(){if(!this.current.clipGroup){const e=this.svgFactory.createElement("svg:g");e.setAttributeNS(null,"clip-path",this.current.activeClipUrl),this.svg.appendChild(e),this.current.clipGroup=e}return this.current.clipGroup}_ensureTransformGroup(){return this.tgrp||(this.tgrp=this.svgFactory.createElement("svg:g"),this.tgrp.setAttributeNS(null,"transform",l(this.transformMatrix)),this.current.activeClipUrl?this._ensureClipGroup().appendChild(this.tgrp):this.svg.appendChild(this.tgrp)),this.tgrp}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PDFNodeStream=void 0;var r=n(2),i=n(20);const a=__webpack_require__(1),o=__webpack_require__(2),s=__webpack_require__(3),l=__webpack_require__(4),c=/^file:\/\/\/[a-zA-Z]:\//;t.PDFNodeStream=class{constructor(e){this.source=e,this.url=function(e){const t=l.parse(e);return"file:"===t.protocol||t.host?t:/^[a-z]:[/\\]/i.test(e)?l.parse(`file:///${e}`):(t.host||(t.protocol="file:"),t)}(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=[]}get _progressiveDataLength(){return this._fullRequestReader?this._fullRequestReader._loaded:0}getFullReader(){return(0,r.assert)(!this._fullRequestReader,"PDFNodeStream.getFullReader can only be called once."),this._fullRequestReader=this.isFsUrl?new A(this):new f(this),this._fullRequestReader}getRangeReader(e,t){if(t<=this._progressiveDataLength)return null;const n=this.isFsUrl?new g(this,e,t):new p(this,e,t);return this._rangeRequestReaders.push(n),n}cancelAllRequests(e){this._fullRequestReader&&this._fullRequestReader.cancel(e),this._rangeRequestReaders.slice(0).forEach(function(t){t.cancel(e)})}};class u{constructor(e){this._url=e.url,this._done=!1,this._storedError=null,this.onProgress=null;const t=e.source;this._contentLength=t.length,this._loaded=0,this._filename=null,this._disableRange=t.disableRange||!1,this._rangeChunkSize=t.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._isStreamingSupported=!t.disableStream,this._isRangeSupported=!t.disableRange,this._readableStream=null,this._readCapability=(0,r.createPromiseCapability)(),this._headersCapability=(0,r.createPromiseCapability)()}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;const e=this._readableStream.read();return null===e?(this._readCapability=(0,r.createPromiseCapability)(),this.read()):(this._loaded+=e.length,this.onProgress&&this.onProgress({loaded:this._loaded,total:this._contentLength}),{value:new Uint8Array(e).buffer,done:!1})}cancel(e){this._readableStream?this._readableStream.destroy(e):this._error(e)}_error(e){this._storedError=e,this._readCapability.resolve()}_setReadableStream(e){this._readableStream=e,e.on("readable",()=>{this._readCapability.resolve()}),e.on("end",()=>{e.destroy(),this._done=!0,this._readCapability.resolve()}),e.on("error",e=>{this._error(e)}),!this._isStreamingSupported&&this._isRangeSupported&&this._error(new r.AbortException("streaming is disabled")),this._storedError&&this._readableStream.destroy(this._storedError)}}class h{constructor(e){this._url=e.url,this._done=!1,this._storedError=null,this.onProgress=null,this._loaded=0,this._readableStream=null,this._readCapability=(0,r.createPromiseCapability)();const t=e.source;this._isStreamingSupported=!t.disableStream}get isStreamingSupported(){return this._isStreamingSupported}async read(){if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;const e=this._readableStream.read();return null===e?(this._readCapability=(0,r.createPromiseCapability)(),this.read()):(this._loaded+=e.length,this.onProgress&&this.onProgress({loaded:this._loaded}),{value:new Uint8Array(e).buffer,done:!1})}cancel(e){this._readableStream?this._readableStream.destroy(e):this._error(e)}_error(e){this._storedError=e,this._readCapability.resolve()}_setReadableStream(e){this._readableStream=e,e.on("readable",()=>{this._readCapability.resolve()}),e.on("end",()=>{e.destroy(),this._done=!0,this._readCapability.resolve()}),e.on("error",e=>{this._error(e)}),this._storedError&&this._readableStream.destroy(this._storedError)}}function d(e,t){return{protocol:e.protocol,auth:e.auth,host:e.hostname,port:e.port,path:e.path,method:"GET",headers:t}}class f extends u{constructor(e){super(e);const t=t=>{if(404===t.statusCode){const e=new r.MissingPDFException(`Missing PDF "${this._url}".`);return this._storedError=e,void this._headersCapability.reject(e)}this._headersCapability.resolve(),this._setReadableStream(t);const n=e=>this._readableStream.headers[e.toLowerCase()],{allowRangeRequests:a,suggestedLength:o}=(0,i.validateRangeRequestCapabilities)({getResponseHeader:n,isHttp:e.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=a,this._contentLength=o||this._contentLength,this._filename=(0,i.extractFilenameFromHeader)(n)};this._request=null,"http:"===this._url.protocol?this._request=o.request(d(this._url,e.httpHeaders),t):this._request=s.request(d(this._url,e.httpHeaders),t),this._request.on("error",e=>{this._storedError=e,this._headersCapability.reject(e)}),this._request.end()}}class p extends h{constructor(e,t,n){super(e),this._httpHeaders={};for(const t in e.httpHeaders){const n=e.httpHeaders[t];void 0!==n&&(this._httpHeaders[t]=n)}this._httpHeaders.Range=`bytes=${t}-${n-1}`;const i=e=>{if(404!==e.statusCode)this._setReadableStream(e);else{const e=new r.MissingPDFException(`Missing PDF "${this._url}".`);this._storedError=e}};this._request=null,"http:"===this._url.protocol?this._request=o.request(d(this._url,this._httpHeaders),i):this._request=s.request(d(this._url,this._httpHeaders),i),this._request.on("error",e=>{this._storedError=e}),this._request.end()}}class A extends u{constructor(e){super(e);let t=decodeURIComponent(this._url.path);c.test(this._url.href)&&(t=t.replace(/^\//,"")),a.lstat(t,(e,n)=>{if(e)return"ENOENT"===e.code&&(e=new r.MissingPDFException(`Missing PDF "${t}".`)),this._storedError=e,void this._headersCapability.reject(e);this._contentLength=n.size,this._setReadableStream(a.createReadStream(t)),this._headersCapability.resolve()})}}class g extends h{constructor(e,t,n){super(e);let r=decodeURIComponent(this._url.path);c.test(this._url.href)&&(r=r.replace(/^\//,"")),this._setReadableStream(a.createReadStream(r,{start:t,end:n-1}))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createResponseStatusError=function(e,t){if(404===e||0===e&&t.startsWith("file:"))return new r.MissingPDFException('Missing PDF "'+t+'".');return new r.UnexpectedResponseException("Unexpected server response ("+e+') while retrieving PDF "'+t+'".',e)},t.extractFilenameFromHeader=function(e){const t=e("Content-Disposition");if(t){let e=(0,i.getFilenameFromContentDispositionHeader)(t);if(e.includes("%"))try{e=decodeURIComponent(e)}catch(e){}if(/\.pdf$/i.test(e))return e}return null},t.validateRangeRequestCapabilities=function({getResponseHeader:e,isHttp:t,rangeChunkSize:n,disableRange:i}){(0,r.assert)(n>0,"Range chunk size must be larger than zero");const a={allowRangeRequests:!1,suggestedLength:void 0},o=parseInt(e("Content-Length"),10);if(!Number.isInteger(o))return a;if(a.suggestedLength=o,o<=2*n)return a;if(i||!t)return a;if("bytes"!==e("Accept-Ranges"))return a;if("identity"!==(e("Content-Encoding")||"identity"))return a;return a.allowRangeRequests=!0,a},t.validateResponseStatus=function(e){return 200===e||206===e};var r=n(2),i=n(21)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFilenameFromContentDispositionHeader=function(e){let t=!0,n=r("filename\\*","i").exec(e);if(n){let e=o(n=n[1]);return a(e=l(e=s(e=unescape(e))))}if(n=function(e){const t=[];let n;const i=r("filename\\*((?!0\\d)\\d+)(\\*?)","ig");for(;null!==(n=i.exec(e));){let[,e,r,i]=n;if((e=parseInt(e,10))in t){if(0===e)break}else t[e]=[r,i]}const a=[];for(let e=0;e<t.length&&e in t;++e){let[n,r]=t[e];r=o(r),n&&(r=unescape(r),0===e&&(r=s(r))),a.push(r)}return a.join("")}(e)){const e=l(n);return a(e)}if(n=r("filename","i").exec(e)){let e=o(n=n[1]);return a(e=l(e))}function r(e,t){return new RegExp("(?:^|;)\\s*"+e+'\\s*=\\s*([^";\\s][^;\\s]*|"(?:[^"\\\\]|\\\\"?)+"?)',t)}function i(e,n){if(e){if(!/^[\x00-\xFF]+$/.test(n))return n;try{const r=new TextDecoder(e,{fatal:!0}),i=Array.from(n,function(e){return 255&e.charCodeAt(0)});n=r.decode(new Uint8Array(i)),t=!1}catch(r){if(/^utf-?8$/i.test(e))try{n=decodeURIComponent(escape(n)),t=!1}catch(e){}}}return n}function a(e){return t&&/[\x80-\xff]/.test(e)&&(e=i("utf-8",e),t&&(e=i("iso-8859-1",e))),e}function o(e){if(e.startsWith('"')){const t=e.slice(1).split('\\"');for(let e=0;e<t.length;++e){const n=t[e].indexOf('"');-1!==n&&(t[e]=t[e].slice(0,n),t.length=e+1),t[e]=t[e].replace(/\\(.)/g,"$1")}e=t.join('"')}return e}function s(e){const t=e.indexOf("'");if(-1===t)return e;const n=e.slice(0,t),r=e.slice(t+1),a=r.replace(/^[^']*'/,"");return i(n,a)}function l(e){return!e.startsWith("=?")||/[\x00-\x19\x80-\xff]/.test(e)?e:e.replace(/=\?([\w-]*)\?([QqBb])\?((?:[^?]|\?(?!=))*)\?=/g,function(e,t,n,r){if("q"===n||"Q"===n)return r=(r=r.replace(/_/g," ")).replace(/=([0-9a-fA-F]{2})/g,function(e,t){return String.fromCharCode(parseInt(t,16))}),i(t,r);try{r=atob(r)}catch(e){}return i(t,r)})}return""}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PDFNetworkStream=void 0;var r=n(2),i=n(20);const a=200,o=206;class s{constructor(e,t){this.url=e,t=t||{},this.isHttp=/^https?:/i.test(e),this.httpHeaders=this.isHttp&&t.httpHeaders||{},this.withCredentials=t.withCredentials||!1,this.getXhr=t.getXhr||function(){return new XMLHttpRequest},this.currXhrId=0,this.pendingRequests=Object.create(null)}requestRange(e,t,n){const r={begin:e,end:t};for(const e in n)r[e]=n[e];return this.request(r)}requestFull(e){return this.request(e)}request(e){const t=this.getXhr(),n=this.currXhrId++,r=this.pendingRequests[n]={xhr:t};t.open("GET",this.url),t.withCredentials=this.withCredentials;for(const e in this.httpHeaders){const n=this.httpHeaders[e];void 0!==n&&t.setRequestHeader(e,n)}return this.isHttp&&"begin"in e&&"end"in e?(t.setRequestHeader("Range",`bytes=${e.begin}-${e.end-1}`),r.expectedStatus=o):r.expectedStatus=a,t.responseType="arraybuffer",e.onError&&(t.onerror=function(n){e.onError(t.status)}),t.onreadystatechange=this.onStateChange.bind(this,n),t.onprogress=this.onProgress.bind(this,n),r.onHeadersReceived=e.onHeadersReceived,r.onDone=e.onDone,r.onError=e.onError,r.onProgress=e.onProgress,t.send(null),n}onProgress(e,t){const n=this.pendingRequests[e];n&&n.onProgress&&n.onProgress(t)}onStateChange(e,t){const n=this.pendingRequests[e];if(!n)return;const i=n.xhr;if(i.readyState>=2&&n.onHeadersReceived&&(n.onHeadersReceived(),delete n.onHeadersReceived),4!==i.readyState)return;if(!(e in this.pendingRequests))return;if(delete this.pendingRequests[e],0===i.status&&this.isHttp)return void(n.onError&&n.onError(i.status));const s=i.status||a;if(!(s===a&&n.expectedStatus===o)&&s!==n.expectedStatus)return void(n.onError&&n.onError(i.status));const l=function(e){const t=e.response;return"string"!=typeof t?t:(0,r.stringToBytes)(t).buffer}(i);if(s===o){const e=i.getResponseHeader("Content-Range"),t=/bytes (\d+)-(\d+)\/(\d+)/.exec(e);n.onDone({begin:parseInt(t[1],10),chunk:l})}else l?n.onDone({begin:0,chunk:l}):n.onError&&n.onError(i.status)}hasPendingRequests(){for(const e in this.pendingRequests)return!0;return!1}getRequestXhr(e){return this.pendingRequests[e].xhr}isPendingRequest(e){return e in this.pendingRequests}abortAllRequests(){for(const e in this.pendingRequests)this.abortRequest(0|e)}abortRequest(e){const t=this.pendingRequests[e].xhr;delete this.pendingRequests[e],t.abort()}}t.PDFNetworkStream=class{constructor(e){this._source=e,this._manager=new s(e.url,{httpHeaders:e.httpHeaders,withCredentials:e.withCredentials}),this._rangeChunkSize=e.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}_onRangeRequestReaderClosed(e){const t=this._rangeRequestReaders.indexOf(e);t>=0&&this._rangeRequestReaders.splice(t,1)}getFullReader(){return(0,r.assert)(!this._fullRequestReader,"PDFNetworkStream.getFullReader can only be called once."),this._fullRequestReader=new l(this._manager,this._source),this._fullRequestReader}getRangeReader(e,t){const n=new c(this._manager,e,t);return n.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(n),n}cancelAllRequests(e){this._fullRequestReader&&this._fullRequestReader.cancel(e),this._rangeRequestReaders.slice(0).forEach(function(t){t.cancel(e)})}};class l{constructor(e,t){this._manager=e;const n={onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=t.url,this._fullRequestId=e.requestFull(n),this._headersReceivedCapability=(0,r.createPromiseCapability)(),this._disableRange=t.disableRange||!1,this._contentLength=t.length,this._rangeChunkSize=t.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}_onHeadersReceived(){const e=this._fullRequestId,t=this._manager.getRequestXhr(e),n=e=>t.getResponseHeader(e),{allowRangeRequests:r,suggestedLength:a}=(0,i.validateRangeRequestCapabilities)({getResponseHeader:n,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});r&&(this._isRangeSupported=!0),this._contentLength=a||this._contentLength,this._filename=(0,i.extractFilenameFromHeader)(n),this._isRangeSupported&&this._manager.abortRequest(e),this._headersReceivedCapability.resolve()}_onDone(e){if(e)if(this._requests.length>0){this._requests.shift().resolve({value:e.chunk,done:!1})}else this._cachedChunks.push(e.chunk);this._done=!0,this._cachedChunks.length>0||(this._requests.forEach(function(e){e.resolve({value:void 0,done:!0})}),this._requests=[])}_onError(e){const t=this._url,n=(0,i.createResponseStatusError)(e,t);this._storedError=n,this._headersReceivedCapability.reject(n),this._requests.forEach(function(e){e.reject(n)}),this._requests=[],this._cachedChunks=[]}_onProgress(e){this.onProgress&&this.onProgress({loaded:e.loaded,total:e.lengthComputable?e.total:this._contentLength})}get filename(){return this._filename}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}get contentLength(){return this._contentLength}get headersReady(){return this._headersReceivedCapability.promise}async read(){if(this._storedError)throw this._storedError;if(this._cachedChunks.length>0){return{value:this._cachedChunks.shift(),done:!1}}if(this._done)return{value:void 0,done:!0};const e=(0,r.createPromiseCapability)();return this._requests.push(e),e.promise}cancel(e){this._done=!0,this._headersReceivedCapability.reject(e),this._requests.forEach(function(e){e.resolve({value:void 0,done:!0})}),this._requests=[],this._manager.isPendingRequest(this._fullRequestId)&&this._manager.abortRequest(this._fullRequestId),this._fullRequestReader=null}}class c{constructor(e,t,n){this._manager=e;const r={onDone:this._onDone.bind(this),onProgress:this._onProgress.bind(this)};this._requestId=e.requestRange(t,n,r),this._requests=[],this._queuedChunk=null,this._done=!1,this.onProgress=null,this.onClosed=null}_close(){this.onClosed&&this.onClosed(this)}_onDone(e){const t=e.chunk;if(this._requests.length>0){this._requests.shift().resolve({value:t,done:!1})}else this._queuedChunk=t;this._done=!0,this._requests.forEach(function(e){e.resolve({value:void 0,done:!0})}),this._requests=[],this._close()}_onProgress(e){!this.isStreamingSupported&&this.onProgress&&this.onProgress({loaded:e.loaded})}get isStreamingSupported(){return!1}async read(){if(null!==this._queuedChunk){const e=this._queuedChunk;return this._queuedChunk=null,{value:e,done:!1}}if(this._done)return{value:void 0,done:!0};const e=(0,r.createPromiseCapability)();return this._requests.push(e),e.promise}cancel(e){this._done=!0,this._requests.forEach(function(e){e.resolve({value:void 0,done:!0})}),this._requests=[],this._manager.isPendingRequest(this._requestId)&&this._manager.abortRequest(this._requestId),this._close()}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PDFFetchStream=void 0;var r=n(2),i=n(20);function a(e,t,n){return{method:"GET",headers:e,signal:n&&n.signal,mode:"cors",credentials:t?"include":"same-origin",redirect:"follow"}}function o(e){const t=new Headers;for(const n in e){const r=e[n];void 0!==r&&t.append(n,r)}return t}t.PDFFetchStream=class{constructor(e){this.source=e,this.isHttp=/^https?:/i.test(e.url),this.httpHeaders=this.isHttp&&e.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){return this._fullRequestReader?this._fullRequestReader._loaded:0}getFullReader(){return(0,r.assert)(!this._fullRequestReader,"PDFFetchStream.getFullReader can only be called once."),this._fullRequestReader=new s(this),this._fullRequestReader}getRangeReader(e,t){if(t<=this._progressiveDataLength)return null;const n=new l(this,e,t);return this._rangeRequestReaders.push(n),n}cancelAllRequests(e){this._fullRequestReader&&this._fullRequestReader.cancel(e),this._rangeRequestReaders.slice(0).forEach(function(t){t.cancel(e)})}};class s{constructor(e){this._stream=e,this._reader=null,this._loaded=0,this._filename=null;const t=e.source;this._withCredentials=t.withCredentials||!1,this._contentLength=t.length,this._headersCapability=(0,r.createPromiseCapability)(),this._disableRange=t.disableRange||!1,this._rangeChunkSize=t.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),"undefined"!=typeof AbortController&&(this._abortController=new AbortController),this._isStreamingSupported=!t.disableStream,this._isRangeSupported=!t.disableRange,this._headers=o(this._stream.httpHeaders);const n=t.url;fetch(n,a(this._headers,this._withCredentials,this._abortController)).then(e=>{if(!(0,i.validateResponseStatus)(e.status))throw(0,i.createResponseStatusError)(e.status,n);this._reader=e.body.getReader(),this._headersCapability.resolve();const t=t=>e.headers.get(t),{allowRangeRequests:a,suggestedLength:o}=(0,i.validateRangeRequestCapabilities)({getResponseHeader:t,isHttp:this._stream.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=a,this._contentLength=o||this._contentLength,this._filename=(0,i.extractFilenameFromHeader)(t),!this._isStreamingSupported&&this._isRangeSupported&&this.cancel(new r.AbortException("Streaming is disabled."))}).catch(this._headersCapability.reject),this.onProgress=null}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){await this._headersCapability.promise;const{value:e,done:t}=await this._reader.read();return t?{value:e,done:t}:(this._loaded+=e.byteLength,this.onProgress&&this.onProgress({loaded:this._loaded,total:this._contentLength}),{value:new Uint8Array(e).buffer,done:!1})}cancel(e){this._reader&&this._reader.cancel(e),this._abortController&&this._abortController.abort()}}class l{constructor(e,t,n){this._stream=e,this._reader=null,this._loaded=0;const s=e.source;this._withCredentials=s.withCredentials||!1,this._readCapability=(0,r.createPromiseCapability)(),this._isStreamingSupported=!s.disableStream,"undefined"!=typeof AbortController&&(this._abortController=new AbortController),this._headers=o(this._stream.httpHeaders),this._headers.append("Range",`bytes=${t}-${n-1}`);const l=s.url;fetch(l,a(this._headers,this._withCredentials,this._abortController)).then(e=>{if(!(0,i.validateResponseStatus)(e.status))throw(0,i.createResponseStatusError)(e.status,l);this._readCapability.resolve(),this._reader=e.body.getReader()}),this.onProgress=null}get isStreamingSupported(){return this._isStreamingSupported}async read(){await this._readCapability.promise;const{value:e,done:t}=await this._reader.read();return t?{value:e,done:t}:(this._loaded+=e.byteLength,this.onProgress&&this.onProgress({loaded:this._loaded}),{value:new Uint8Array(e).buffer,done:!1})}cancel(e){this._reader&&this._reader.cancel(e),this._abortController&&this._abortController.abort()}}}])},module.exports=factory()}).call(exports,__webpack_require__("W2nU"),__webpack_require__("EuP9").Buffer)},nvbp:function(e,t){var n=/^(attrs|props|on|nativeOn|class|style|hook)$/;function r(e,t){return function(){e&&e.apply(this,arguments),t&&t.apply(this,arguments)}}e.exports=function(e){return e.reduce(function(e,t){var i,a,o,s,l;for(o in t)if(i=e[o],a=t[o],i&&n.test(o))if("class"===o&&("string"==typeof i&&(l=i,e[o]=i={},i[l]=!0),"string"==typeof a&&(l=a,t[o]=a={},a[l]=!0)),"on"===o||"nativeOn"===o||"hook"===o)for(s in a)i[s]=r(i[s],a[s]);else if(Array.isArray(i))e[o]=i.concat(a);else if(Array.isArray(a))e[o]=[i].concat(a);else for(s in a)i[s]=a[s];else e[o]=t[o];return e},{})}},oJlt:function(e,t,n){"use strict";var r=n("cGG2"),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,a,o={};return e?(r.forEach(e.split("\n"),function(e){if(a=e.indexOf(":"),t=r.trim(e.substr(0,a)).toLowerCase(),n=r.trim(e.substr(a+1)),t){if(o[t]&&i.indexOf(t)>=0)return;o[t]="set-cookie"===t?(o[t]?o[t]:[]).concat([n]):o[t]?o[t]+", "+n:n}}),o):o}},oM7Q:function(e,t,n){n("sF+V");var r=n("FeBl").Object;e.exports=function(e,t){return r.create(e,t)}},orbS:function(e,t){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=124)}({0:function(e,t,n){"use strict";function r(e,t,n,r,i,a,o,s){var l,c="function"==typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),a&&(c._scopeId="data-v-"+a),o?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},c._ssrRegister=l):i&&(l=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,l):[l]}return{exports:e,options:c}}n.d(t,"a",function(){return r})},124:function(e,t,n){"use strict";n.r(t);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(e){return-1!==["dark","light","plain"].indexOf(e)}}},methods:{handleClose:function(e){e.stopPropagation(),this.$emit("close",e)},handleClick:function(e){this.$emit("click",e)}},computed:{tagSize:function(){return this.size||(this.$ELEMENT||{}).size}},render:function(e){var t=this.type,n=this.tagSize,r=this.hit,i=this.effect,a=e("span",{class:["el-tag",t?"el-tag--"+t:"",n?"el-tag--"+n:"",i?"el-tag--"+i:"",r&&"is-hit"],style:{backgroundColor:this.color},on:{click:this.handleClick}},[this.$slots.default,this.closable&&e("i",{class:"el-tag__close el-icon-close",on:{click:this.handleClose}})]);return this.disableTransitions?a:e("transition",{attrs:{name:"el-zoom-in-center"}},[a])}},i=n(0),a=Object(i.a)(r,void 0,void 0,!1,null,null,null);a.options.__file="packages/tag/src/tag.vue";var o=a.exports;o.install=function(e){e.component(o.name,o)};t.default=o}})},p1b6:function(e,t,n){"use strict";var r=n("cGG2");e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,i,a,o){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(i)&&s.push("path="+i),r.isString(a)&&s.push("domain="+a),!0===o&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},p8xL:function(e,t,n){"use strict";var r=n("XgCd"),i=Object.prototype.hasOwnProperty,a=Array.isArray,o=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)void 0!==e[r]&&(n[r]=e[r]);return n};e.exports={arrayToObject:s,assign:function(e,t){return Object.keys(t).reduce(function(e,n){return e[n]=t[n],e},e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var i=t[r],o=i.obj[i.prop],s=Object.keys(o),l=0;l<s.length;++l){var c=s[l],u=o[c];"object"==typeof u&&null!==u&&-1===n.indexOf(u)&&(t.push({obj:o,prop:c}),n.push(u))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(a(n)){for(var r=[],i=0;i<n.length;++i)void 0!==n[i]&&r.push(n[i]);t.obj[t.prop]=r}}}(t),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(e){return r}},encode:function(e,t,n,i,a){if(0===e.length)return e;var s=e;if("symbol"==typeof e?s=Symbol.prototype.toString.call(e):"string"!=typeof e&&(s=String(e)),"iso-8859-1"===n)return escape(s).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});for(var l="",c=0;c<s.length;++c){var u=s.charCodeAt(c);45===u||46===u||95===u||126===u||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||a===r.RFC1738&&(40===u||41===u)?l+=s.charAt(c):u<128?l+=o[u]:u<2048?l+=o[192|u>>6]+o[128|63&u]:u<55296||u>=57344?l+=o[224|u>>12]+o[128|u>>6&63]+o[128|63&u]:(c+=1,u=65536+((1023&u)<<10|1023&s.charCodeAt(c)),l+=o[240|u>>18]+o[128|u>>12&63]+o[128|u>>6&63]+o[128|63&u])}return l},isBuffer:function(e){return!(!e||"object"!=typeof e||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(a(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)},merge:function e(t,n,r){if(!n)return t;if("object"!=typeof n){if(a(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(r&&(r.plainObjects||r.allowPrototypes)||!i.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var o=t;return a(t)&&!a(n)&&(o=s(t,r)),a(t)&&a(n)?(n.forEach(function(n,a){if(i.call(t,a)){var o=t[a];o&&"object"==typeof o&&n&&"object"==typeof n?t[a]=e(o,n,r):t.push(n)}else t[a]=n}),t):Object.keys(n).reduce(function(t,a){var o=n[a];return i.call(t,a)?t[a]=e(t[a],o,r):t[a]=o,t},o)}}},pBtG:function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},pFYg:function(e,t,n){"use strict";t.__esModule=!0;var r=o(n("Zzip")),i=o(n("5QVw")),a="function"==typeof i.default&&"symbol"==typeof r.default?function(e){return typeof e}:function(e){return e&&"function"==typeof i.default&&e.constructor===i.default&&e!==i.default.prototype?"symbol":typeof e};function o(e){return e&&e.__esModule?e:{default:e}}t.default="function"==typeof i.default&&"symbol"===a(r.default)?function(e){return void 0===e?"undefined":a(e)}:function(e){return e&&"function"==typeof i.default&&e.constructor===i.default&&e!==i.default.prototype?"symbol":void 0===e?"undefined":a(e)}},ppUw:function(e,t,n){var r,i;r={expires:"1d",path:"; path=/",domain:"",secure:"",sameSite:"; SameSite=Lax"},i={install:function(e){e.prototype.$cookies=this,e.$cookies=this},config:function(e,t,n,i,a){r.expires=e||"1d",r.path=t?"; path="+t:"; path=/",r.domain=n?"; domain="+n:"",r.secure=i?"; Secure":"",r.sameSite=a?"; SameSite="+a:"; SameSite=Lax"},get:function(e){var t=decodeURIComponent(document.cookie.replace(new RegExp("(?:(?:^|.*;)\\s*"+encodeURIComponent(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*([^;]*).*$)|^.*$"),"$1"))||null;if(t&&"{"===t.substring(0,1)&&"}"===t.substring(t.length-1,t.length))try{t=JSON.parse(t)}catch(e){return t}return t},set:function(e,t,n,i,a,o,s){if(!e)throw new Error("Cookie name is not find in first argument.");if(/^(?:expires|max\-age|path|domain|secure|SameSite)$/i.test(e))throw new Error('Cookie key name illegality, Cannot be set to ["expires","max-age","path","domain","secure","SameSite"]\t current key name: '+e);t&&t.constructor===Object&&(t=JSON.stringify(t));var l="";if((n=void 0==n?r.expires:n)&&0!=n)switch(n.constructor){case Number:l=n===1/0||-1===n?"; expires=Fri, 31 Dec 9999 23:59:59 GMT":"; max-age="+n;break;case String:if(/^(?:\d+(y|m|d|h|min|s))$/i.test(n)){var c=n.replace(/^(\d+)(?:y|m|d|h|min|s)$/i,"$1");switch(n.replace(/^(?:\d+)(y|m|d|h|min|s)$/i,"$1").toLowerCase()){case"m":l="; max-age="+2592e3*+c;break;case"d":l="; max-age="+86400*+c;break;case"h":l="; max-age="+3600*+c;break;case"min":l="; max-age="+60*+c;break;case"s":l="; max-age="+c;break;case"y":l="; max-age="+31104e3*+c;break;default:new Error('unknown exception of "set operation"')}}else l="; expires="+n;break;case Date:l="; expires="+n.toUTCString()}return document.cookie=encodeURIComponent(e)+"="+encodeURIComponent(t)+l+(a?"; domain="+a:r.domain)+(i?"; path="+i:r.path)+(void 0==o?r.secure:o?"; Secure":"")+(void 0==s?r.sameSite:s?"; SameSite="+s:""),this},remove:function(e,t,n){return!(!e||!this.isKey(e))&&(document.cookie=encodeURIComponent(e)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT"+(n?"; domain="+n:r.domain)+(t?"; path="+t:r.path)+"; SameSite=Lax",this)},isKey:function(e){return new RegExp("(?:^|;\\s*)"+encodeURIComponent(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(document.cookie)},keys:function(){if(!document.cookie)return[];for(var e=document.cookie.replace(/((?:^|\s*;)[^\=]+)(?=;|$)|^\s*|\s*(?:\=[^;]*)?(?:\1|$)/g,"").split(/\s*(?:\=[^;]*)?;\s*/),t=0;t<e.length;t++)e[t]=decodeURIComponent(e[t]);return e}},e.exports=i,"undefined"!=typeof window&&(window.$cookies=i)},pxG4:function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},"q+vg":function(e,t){e.exports=function(){for(var e={},t=0;t<arguments.length;t++){var r=arguments[t];for(var i in r)n.call(r,i)&&(e[i]=r[i])}return e};var n=Object.prototype.hasOwnProperty},qARP:function(e,t,n){"use strict";var r=n("lOnJ");e.exports.f=function(e){return new function(e){var t,n;this.promise=new e(function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r}),this.resolve=r(t),this.reject=r(n)}(e)}},qRfI:function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},qio6:function(e,t,n){var r=n("evD5"),i=n("77Pl"),a=n("lktj");e.exports=n("+E39")?Object.defineProperties:function(e,t){i(e);for(var n,o=a(t),s=o.length,l=0;s>l;)r.f(e,n=o[l++],t[n]);return e}},qkKv:function(e,t,n){var r=n("FeBl"),i=r.JSON||(r.JSON={stringify:JSON.stringify});e.exports=function(e){return i.stringify.apply(i,arguments)}},s3ue:function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=86)}({0:function(e,t,n){"use strict";function r(e,t,n,r,i,a,o,s){var l,c="function"==typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),a&&(c._scopeId="data-v-"+a),o?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},c._ssrRegister=l):i&&(l=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,l):[l]}return{exports:e,options:c}}n.d(t,"a",function(){return r})},4:function(e,t){e.exports=n("fPll")},86:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"el-checkbox-group",attrs:{role:"group","aria-label":"checkbox-group"}},[this._t("default")],2)};r._withStripped=!0;var i=n(4),a={name:"ElCheckboxGroup",componentName:"ElCheckboxGroup",mixins:[n.n(i).a],inject:{elFormItem:{default:""}},props:{value:{},disabled:Boolean,min:Number,max:Number,size:String,fill:String,textColor:String},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},checkboxGroupSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size}},watch:{value:function(e){this.dispatch("ElFormItem","el.form.change",[e])}}},o=n(0),s=Object(o.a)(a,r,[],!1,null,null,null);s.options.__file="packages/checkbox/src/checkbox-group.vue";var l=s.exports;l.install=function(e){e.component(l.name,l)};t.default=l}})},sB3e:function(e,t,n){var r=n("52gC");e.exports=function(e){return Object(r(e))}},sD9O:function(e,t){var n=function(e){return e.replace(/^\s+|\s+$/g,"")};e.exports=function(e){if(!e)return{};for(var t,r={},i=n(e).split("\n"),a=0;a<i.length;a++){var o=i[a],s=o.indexOf(":"),l=n(o.slice(0,s)).toLowerCase(),c=n(o.slice(s+1));void 0===r[l]?r[l]=c:(t=r[l],"[object Array]"===Object.prototype.toString.call(t)?r[l].push(c):r[l]=[r[l],c])}return r}},"sF+V":function(e,t,n){var r=n("kM2E");r(r.S,"Object",{create:n("Yobk")})},sN1u:function(e,t){function n(e){return e.replace(/\n\r?\s*/g,"")}e.exports=function(e){for(var t="",r=0;r<arguments.length;r++)t+=n(e[r])+(arguments[r+1]||"");return t}},sOR5:function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},t8qj:function(e,t,n){"use strict";e.exports=function(e,t,n,r,i){return e.config=t,n&&(e.code=n),e.request=r,e.response=i,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},t8x9:function(e,t,n){var r=n("77Pl"),i=n("lOnJ"),a=n("dSzd")("species");e.exports=function(e,t){var n,o=r(e).constructor;return void 0===o||void 0==(n=r(o)[a])?t:i(n)}},tIFN:function(e,t,n){"use strict";var r=n("cGG2"),i=n("JP+z"),a=n("XmWM"),o=n("DUeU");function s(e){var t=new a(e),n=i(a.prototype.request,t);return r.extend(n,a.prototype,t),r.extend(n,t),n}var l=s(n("KCLY"));l.Axios=a,l.create=function(e){return s(o(l.defaults,e))},l.Cancel=n("dVOP"),l.CancelToken=n("cWxy"),l.isCancel=n("pBtG"),l.all=function(e){return Promise.all(e)},l.spread=n("pxG4"),l.isAxiosError=n("SLDG"),e.exports=l,e.exports.default=l},"u/Zb":function(e,t,n){e.exports=n("Kh4W").f("species")},uY1a:function(e,t){e.exports=function(e,t,n,r){var i,a=0;return"boolean"!=typeof t&&(r=n,n=t,t=void 0),function(){var o=this,s=Number(new Date)-a,l=arguments;function c(){a=Number(new Date),n.apply(o,l)}r&&!i&&c(),i&&clearTimeout(i),void 0===r&&s>e?c():!0!==t&&(i=setTimeout(r?function(){i=void 0}:c,void 0===r?e-s:e))}}},ujcs:function(e,t){
  140. /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
  141. t.read=function(e,t,n,r,i){var a,o,s=8*i-r-1,l=(1<<s)-1,c=l>>1,u=-7,h=n?i-1:0,d=n?-1:1,f=e[t+h];for(h+=d,a=f&(1<<-u)-1,f>>=-u,u+=s;u>0;a=256*a+e[t+h],h+=d,u-=8);for(o=a&(1<<-u)-1,a>>=-u,u+=r;u>0;o=256*o+e[t+h],h+=d,u-=8);if(0===a)a=1-c;else{if(a===l)return o?NaN:1/0*(f?-1:1);o+=Math.pow(2,r),a-=c}return(f?-1:1)*o*Math.pow(2,a-r)},t.write=function(e,t,n,r,i,a){var o,s,l,c=8*a-i-1,u=(1<<c)-1,h=u>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=r?0:a-1,p=r?1:-1,A=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),(t+=o+h>=1?d/l:d*Math.pow(2,1-h))*l>=2&&(o++,l/=2),o+h>=u?(s=0,o=u):o+h>=1?(s=(t*l-1)*Math.pow(2,i),o+=h):(s=t*Math.pow(2,h-1)*Math.pow(2,i),o=0));i>=8;e[n+f]=255&s,f+=p,s/=256,i-=8);for(o=o<<i|s,c+=i;c>0;e[n+f]=255&o,f+=p,o/=256,c-=8);e[n+f-p]|=128*A}},uqUo:function(e,t,n){var r=n("kM2E"),i=n("FeBl"),a=n("S82l");e.exports=function(e,t){var n=(i.Object||{})[e]||Object[e],o={};o[e]=t(n),r(r.S+r.F*a(function(){n(1)}),"Object",o)}},urW8:function(e,t,n){"use strict";t.__esModule=!0,t.i18n=t.use=t.t=void 0;var r=o(n("Vi3T")),i=o(n("7+uW")),a=o(n("i3rX"));function o(e){return e&&e.__esModule?e:{default:e}}var s=(0,o(n("SvnF")).default)(i.default),l=r.default,c=!1,u=function(){var e=Object.getPrototypeOf(this||i.default).$t;if("function"==typeof e&&i.default.locale)return c||(c=!0,i.default.locale(i.default.config.lang,(0,a.default)(l,i.default.locale(i.default.config.lang)||{},{clone:!0}))),e.apply(this,arguments)},h=t.t=function(e,t){var n=u.apply(this,arguments);if(null!==n&&void 0!==n)return n;for(var r=e.split("."),i=l,a=0,o=r.length;a<o;a++){if(n=i[r[a]],a===o-1)return s(n,t);if(!n)return"";i=n}return""},d=t.use=function(e){l=e||l},f=t.i18n=function(e){u=e||u};t.default={use:d,t:h,i18n:f}},"us/S":function(e,t,n){e.exports={default:n("Xd32"),__esModule:!0}},"vFc/":function(e,t,n){var r=n("TcQ7"),i=n("QRG4"),a=n("fkB2");e.exports=function(e){return function(t,n,o){var s,l=r(t),c=i(l.length),u=a(o,c);if(e&&n!=n){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}}},"vIB/":function(e,t,n){"use strict";var r=n("O4g8"),i=n("kM2E"),a=n("880/"),o=n("hJx8"),s=n("/bQp"),l=n("94VQ"),c=n("e6n0"),u=n("PzxK"),h=n("dSzd")("iterator"),d=!([].keys&&"next"in[].keys()),f=function(){return this};e.exports=function(e,t,n,p,A,g,m){l(n,t,p);var v,y,b,w=function(e){if(!d&&e in S)return S[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},x=t+" Iterator",_="values"==A,C=!1,S=e.prototype,k=S[h]||S["@@iterator"]||A&&S[A],B=k||w(A),E=A?_?w("entries"):B:void 0,T="Array"==t&&S.entries||k;if(T&&(b=u(T.call(new e)))!==Object.prototype&&b.next&&(c(b,x,!0),r||"function"==typeof b[h]||o(b,h,f)),_&&k&&"values"!==k.name&&(C=!0,B=function(){return k.call(this)}),r&&!m||!d&&!C&&S[h]||o(S,h,B),s[t]=B,s[x]=f,A)if(v={values:_?B:w("values"),keys:g?B:w("keys"),entries:E},m)for(y in v)y in S||a(S,y,v[y]);else i(i.P+i.F*(d||C),t,v);return v}},wk5V:function(e,t,n){(function(t){var n;n=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"WorkerMessageHandler",{enumerable:!0,get:function(){return r.WorkerMessageHandler}});var r=n(1)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WorkerMessageHandler=t.WorkerTask=void 0;var r=n(2),i=n(5),a=n(6),o=n(4),s=n(45),l=n(46),c=n(8),u=function(){function e(e){this.name=e,this.terminated=!1,this._capability=(0,r.createPromiseCapability)()}return e.prototype={get finished(){return this._capability.promise},finish(){this._capability.resolve()},terminate(){this.terminated=!0},ensureNotTerminated(){if(this.terminated)throw new Error("Worker task was terminated")}},e}();t.WorkerTask=u;var h,d={setup(e,t){var n=!1;e.on("test",function(t){if(n)return;if(n=!0,!(t instanceof Uint8Array))return void e.send("test",null);const r=255===t[0];e.postMessageTransfers=r,e.send("test",{supportTransfers:r})}),e.on("configure",function(e){(0,r.setVerbosityLevel)(e.verbosity)}),e.on("GetDocRequest",function(e){return d.createDocumentHandler(e,t)})},createDocumentHandler(e,t){var n,o=!1,h=null,d=[];const f=(0,r.getVerbosityLevel)(),p=e.apiVersion;if("2.5.207"!==p)throw new Error(`The API version "${p}" does not match `+'the Worker version "2.5.207".');const A=[];for(const e in[])A.push(e);if(A.length)throw new Error("The `Array.prototype` contains unexpected enumerable properties: "+A.join(", ")+"; thus breaking e.g. `for...in` iteration of `Array`s.");if("undefined"==typeof ReadableStream||void 0===Promise.allSettled)throw new Error("The browser/environment lacks native support for critical functionality used by the PDF.js library (e.g. `ReadableStream` and/or `Promise.allSettled`); please use an ES5-compatible build instead.");var g=e.docId,m=e.docBaseUrl,v=e.docId+"_worker",y=new s.MessageHandler(v,g,t);function b(){if(o)throw new Error("Worker was terminated")}function w(e){d.push(e)}function x(e){e.finish();var t=d.indexOf(e);d.splice(t,1)}async function _(e){await n.ensureDoc("checkHeader"),await n.ensureDoc("parseStartXRef"),await n.ensureDoc("parse",[e]),e||await n.ensureDoc("checkFirstPage");const[t,r]=await Promise.all([n.ensureDoc("numPages"),n.ensureDoc("fingerprint")]);return{numPages:t,fingerprint:r}}function C(e,t){var n=(0,r.createPromiseCapability)();let i;var o=e.source;if(o.data){try{i=new a.LocalPdfManager(g,o.data,o.password,t,m),n.resolve(i)}catch(e){n.reject(e)}return n.promise}var s,c=[];try{s=new l.PDFWorkerStream(y)}catch(e){return n.reject(e),n.promise}var u=s.getFullReader();u.headersReady.then(function(){if(u.isRangeSupported){var e=o.disableAutoFetch||u.isStreamingSupported;i=new a.NetworkPdfManager(g,s,{msgHandler:y,password:o.password,length:u.contentLength,disableAutoFetch:e,rangeChunkSize:o.rangeChunkSize},t,m);for(let e=0;e<c.length;e++)i.sendProgressiveData(c[e]);c=[],n.resolve(i),h=null}}).catch(function(e){n.reject(e),h=null});var d=0;return new Promise(function(e,s){var l=function({value:e,done:f}){try{if(b(),f)return i||function(){var e=(0,r.arraysToBytes)(c);o.length&&e.length!==o.length&&(0,r.warn)("reported HTTP length is different from actual");try{i=new a.LocalPdfManager(g,e,o.password,t,m),n.resolve(i)}catch(e){n.reject(e)}c=[]}(),void(h=null);d+=(0,r.arrayByteLength)(e),u.isStreamingSupported||y.send("DocProgress",{loaded:d,total:Math.max(d,u.contentLength||0)}),i?i.sendProgressiveData(e):c.push(e),u.read().then(l,s)}catch(e){s(e)}};u.read().then(l,s)}).catch(function(e){n.reject(e),h=null}),h=function(e){s.cancelAllRequests(e)},n.promise}return y.postMessageTransfers=e.postMessageTransfers,y.on("GetPage",function(e){return n.getPage(e.pageIndex).then(function(e){return Promise.all([n.ensure(e,"rotate"),n.ensure(e,"ref"),n.ensure(e,"userUnit"),n.ensure(e,"view")]).then(function([e,t,n,r]){return{rotate:e,ref:t,userUnit:n,view:r}})})}),y.on("GetPageIndex",function(e){var t=i.Ref.get(e.ref.num,e.ref.gen);return n.pdfDocument.catalog.getPageIndex(t)}),y.on("GetDestinations",function(e){return n.ensureCatalog("destinations")}),y.on("GetDestination",function(e){return n.ensureCatalog("getDestination",[e.id])}),y.on("GetPageLabels",function(e){return n.ensureCatalog("pageLabels")}),y.on("GetPageLayout",function(e){return n.ensureCatalog("pageLayout")}),y.on("GetPageMode",function(e){return n.ensureCatalog("pageMode")}),y.on("GetViewerPreferences",function(e){return n.ensureCatalog("viewerPreferences")}),y.on("GetOpenAction",function(e){return n.ensureCatalog("openAction")}),y.on("GetAttachments",function(e){return n.ensureCatalog("attachments")}),y.on("GetJavaScript",function(e){return n.ensureCatalog("javaScript")}),y.on("GetOutline",function(e){return n.ensureCatalog("documentOutline")}),y.on("GetPermissions",function(e){return n.ensureCatalog("permissions")}),y.on("GetMetadata",function(e){return Promise.all([n.ensureDoc("documentInfo"),n.ensureCatalog("metadata")])}),y.on("GetData",function(e){return n.requestLoadedStream(),n.onLoadedStream().then(function(e){return e.bytes})}),y.on("GetStats",function(e){return n.pdfDocument.xref.stats}),y.on("GetAnnotations",function({pageIndex:e,intent:t}){return n.getPage(e).then(function(e){return e.getAnnotationsData(t)})}),y.on("GetOperatorList",function(e,t){var i=e.pageIndex;n.getPage(i).then(function(n){var a=new u(`GetOperatorList: page ${i}`);w(a);const o=f>=r.VerbosityLevel.INFOS?Date.now():0;n.getOperatorList({handler:y,sink:t,task:a,intent:e.intent,renderInteractiveForms:e.renderInteractiveForms}).then(function(e){x(a),o&&(0,r.info)(`page=${i+1} - getOperatorList: time=`+`${Date.now()-o}ms, len=${e.length}`),t.close()},function(e){x(a),a.terminated||(y.send("UnsupportedFeature",{featureId:r.UNSUPPORTED_FEATURES.errorOperatorList}),t.error(e))})})},this),y.on("GetTextContent",function(e,t){var i=e.pageIndex;t.onPull=function(e){},t.onCancel=function(e){},n.getPage(i).then(function(n){var a=new u("GetTextContent: page "+i);w(a);const o=f>=r.VerbosityLevel.INFOS?Date.now():0;n.extractTextContent({handler:y,task:a,sink:t,normalizeWhitespace:e.normalizeWhitespace,combineTextItems:e.combineTextItems}).then(function(){x(a),o&&(0,r.info)(`page=${i+1} - getTextContent: time=`+`${Date.now()-o}ms`),t.close()},function(e){x(a),a.terminated||t.error(e)})})}),y.on("FontFallback",function(e){return n.fontFallback(e.id,y)}),y.on("Cleanup",function(e){return n.cleanup(!0)}),y.on("Terminate",function(e){o=!0;const t=[];if(n){n.terminate(new r.AbortException("Worker was terminated."));const e=n.cleanup();t.push(e),n=null}else(0,i.clearPrimitiveCaches)();return h&&h(new r.AbortException("Worker was terminated.")),d.forEach(function(e){t.push(e.finished),e.terminate()}),Promise.all(t).then(function(){y.destroy(),y=null})}),y.on("Ready",function(t){!function(e){function t(e){b(),y.send("GetDoc",{pdfInfo:e})}function i(e){if(b(),e instanceof r.PasswordException){var t=new u(`PasswordException: response ${e.code}`);w(t),y.sendWithPromise("PasswordRequest",e).then(function({password:e}){x(t),n.updatePassword(e),a()}).catch(function(){x(t),y.send("DocException",e)})}else e instanceof r.InvalidPDFException||e instanceof r.MissingPDFException||e instanceof r.UnexpectedResponseException||e instanceof r.UnknownErrorException?y.send("DocException",e):y.send("DocException",new r.UnknownErrorException(e.message,e.toString()))}function a(){b(),_(!1).then(t,function(e){b(),e instanceof c.XRefParseException?(n.requestLoadedStream(),n.onLoadedStream().then(function(){b(),_(!0).then(t,i)})):i(e)},i)}b(),C(e,{maxImageSize:e.maxImageSize,disableFontFace:e.disableFontFace,ignoreErrors:e.ignoreErrors,isEvalSupported:e.isEvalSupported,fontExtraProperties:e.fontExtraProperties}).then(function(e){if(o)throw e.terminate(new r.AbortException("Worker was terminated.")),new Error("Worker was terminated");(n=e).onLoadedStream().then(function(e){y.send("DataLoaded",{length:e.bytes.byteLength})})}).then(a,i)}(e),e=null}),v},initializeFromPort(e){var t=new s.MessageHandler("worker","main",e);d.setup(t,e),t.send("ready",null)}};t.WorkerMessageHandler=d,"undefined"==typeof window&&!o.isNodeJS&&"undefined"!=typeof self&&("function"==typeof(h=self).postMessage&&"onmessage"in h)&&d.initializeFromPort(self)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayByteLength=d,t.arraysToBytes=function(e){const t=e.length;if(1===t&&e[0]instanceof Uint8Array)return e[0];let n=0;for(let r=0;r<t;r++)n+=d(e[r]);let r=0;const i=new Uint8Array(n);for(let n=0;n<t;n++){let t=e[n];t instanceof Uint8Array||(t="string"==typeof t?h(t):new Uint8Array(t));const a=t.byteLength;i.set(t,r),r+=a}return i},t.assert=s,t.bytesToString=function(e){s(null!==e&&"object"==typeof e&&void 0!==e.length,"Invalid argument for bytesToString");const t=e.length;if(t<8192)return String.fromCharCode.apply(null,e);const n=[];for(let r=0;r<t;r+=8192){const i=Math.min(r+8192,t),a=e.subarray(r,i);n.push(String.fromCharCode.apply(null,a))}return n.join("")},t.createPromiseCapability=function(){const e=Object.create(null);let t=!1;return Object.defineProperty(e,"settled",{get:()=>t}),e.promise=new Promise(function(n,r){e.resolve=function(e){t=!0,n(e)},e.reject=function(e){t=!0,r(e)}}),e},t.getVerbosityLevel=function(){return i},t.info=function(e){i>=r.INFOS&&console.log(`Info: ${e}`)},t.isArrayBuffer=function(e){return"object"==typeof e&&null!==e&&void 0!==e.byteLength},t.isArrayEqual=function(e,t){if(e.length!==t.length)return!1;return e.every(function(e,n){return e===t[n]})},t.isBool=function(e){return"boolean"==typeof e},t.isEmptyObj=function(e){for(const t in e)return!1;return!0},t.isNum=function(e){return"number"==typeof e},t.isString=function(e){return"string"==typeof e},t.isSameOrigin=function(e,t){let n;try{if(!(n=new URL(e)).origin||"null"===n.origin)return!1}catch(e){return!1}const r=new URL(t,n);return n.origin===r.origin},t.createValidAbsoluteUrl=function(e,t){if(!e)return null;try{const n=t?new URL(e,t):new URL(e);if(function(e){if(!e)return!1;switch(e.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}(n))return n}catch(e){}return null},t.removeNullCharacters=function(e){if("string"!=typeof e)return a("The argument for removeNullCharacters must be a string."),e;return e.replace(u,"")},t.setVerbosityLevel=function(e){Number.isInteger(e)&&(i=e)},t.shadow=l,t.string32=function(e){return String.fromCharCode(e>>24&255,e>>16&255,e>>8&255,255&e)},t.stringToBytes=h,t.stringToPDFString=function(e){const t=e.length,n=[];if("þ"===e[0]&&"ÿ"===e[1])for(let r=2;r<t;r+=2)n.push(String.fromCharCode(e.charCodeAt(r)<<8|e.charCodeAt(r+1)));else if("ÿ"===e[0]&&"þ"===e[1])for(let r=2;r<t;r+=2)n.push(String.fromCharCode(e.charCodeAt(r+1)<<8|e.charCodeAt(r)));else for(let r=0;r<t;++r){const t=m[e.charCodeAt(r)];n.push(t?String.fromCharCode(t):e.charAt(r))}return n.join("")},t.stringToUTF8String=function(e){return decodeURIComponent(escape(e))},t.utf8StringToString=function(e){return unescape(encodeURIComponent(e))},t.warn=a,t.unreachable=o,t.IsEvalSupportedCached=t.IsLittleEndianCached=t.createObjectURL=t.FormatError=t.Util=t.UnknownErrorException=t.UnexpectedResponseException=t.TextRenderingMode=t.StreamType=t.PermissionFlag=t.PasswordResponses=t.PasswordException=t.MissingPDFException=t.InvalidPDFException=t.AbortException=t.CMapCompressionType=t.ImageKind=t.FontType=t.AnnotationType=t.AnnotationStateModelType=t.AnnotationReviewState=t.AnnotationReplyType=t.AnnotationMarkedState=t.AnnotationFlag=t.AnnotationFieldFlag=t.AnnotationBorderStyleType=t.UNSUPPORTED_FEATURES=t.VerbosityLevel=t.OPS=t.IDENTITY_MATRIX=t.FONT_IDENTITY_MATRIX=t.BaseException=void 0,n(3);t.IDENTITY_MATRIX=[1,0,0,1,0,0];t.FONT_IDENTITY_MATRIX=[.001,0,0,.001,0,0];t.PermissionFlag={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048};t.TextRenderingMode={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};t.ImageKind={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3};t.AnnotationType={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};t.AnnotationStateModelType={MARKED:"Marked",REVIEW:"Review"};t.AnnotationMarkedState={MARKED:"Marked",UNMARKED:"Unmarked"};t.AnnotationReviewState={ACCEPTED:"Accepted",REJECTED:"Rejected",CANCELLED:"Cancelled",COMPLETED:"Completed",NONE:"None"};t.AnnotationReplyType={GROUP:"Group",REPLY:"R"};t.AnnotationFlag={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512};t.AnnotationFieldFlag={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};t.AnnotationBorderStyleType={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5};t.StreamType={UNKNOWN:"UNKNOWN",FLATE:"FLATE",LZW:"LZW",DCT:"DCT",JPX:"JPX",JBIG:"JBIG",A85:"A85",AHX:"AHX",CCF:"CCF",RLX:"RLX"};t.FontType={UNKNOWN:"UNKNOWN",TYPE1:"TYPE1",TYPE1C:"TYPE1C",CIDFONTTYPE0:"CIDFONTTYPE0",CIDFONTTYPE0C:"CIDFONTTYPE0C",TRUETYPE:"TRUETYPE",CIDFONTTYPE2:"CIDFONTTYPE2",TYPE3:"TYPE3",OPENTYPE:"OPENTYPE",TYPE0:"TYPE0",MMTYPE1:"MMTYPE1"};const r={ERRORS:0,WARNINGS:1,INFOS:5};t.VerbosityLevel=r;t.CMapCompressionType={NONE:0,BINARY:1,STREAM:2};t.OPS={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};t.UNSUPPORTED_FEATURES={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"};t.PasswordResponses={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};let i=r.WARNINGS;function a(e){i>=r.WARNINGS&&console.log(`Warning: ${e}`)}function o(e){throw new Error(e)}function s(e,t){e||o(t)}function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!1}),n}const c=function(){function e(t){this.constructor===e&&o("Cannot initialize BaseException."),this.message=t,this.name=this.constructor.name}return e.prototype=new Error,e.constructor=e,e}();t.BaseException=c;t.PasswordException=class extends c{constructor(e,t){super(e),this.code=t}};t.UnknownErrorException=class extends c{constructor(e,t){super(e),this.details=t}};t.InvalidPDFException=class extends c{};t.MissingPDFException=class extends c{};t.UnexpectedResponseException=class extends c{constructor(e,t){super(e),this.status=t}};t.FormatError=class extends c{};t.AbortException=class extends c{};const u=/\x00/g;function h(e){s("string"==typeof e,"Invalid argument for stringToBytes");const t=e.length,n=new Uint8Array(t);for(let r=0;r<t;++r)n[r]=255&e.charCodeAt(r);return n}function d(e){return void 0!==e.length?e.length:(s(void 0!==e.byteLength,"arrayByteLength - invalid argument."),e.byteLength)}const f={get value(){return l(this,"value",function(){const e=new Uint8Array(4);return e[0]=1,1===new Uint32Array(e.buffer,0,1)[0]}())}};t.IsLittleEndianCached=f;const p={get value(){return l(this,"value",function(){try{return new Function(""),!0}catch(e){return!1}}())}};t.IsEvalSupportedCached=p;const A=["rgb(",0,",",0,",",0,")"];class g{static makeCssRgb(e,t,n){return A[1]=e,A[3]=t,A[5]=n,A.join("")}static transform(e,t){return[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],e[0]*t[4]+e[2]*t[5]+e[4],e[1]*t[4]+e[3]*t[5]+e[5]]}static applyTransform(e,t){return[e[0]*t[0]+e[1]*t[2]+t[4],e[0]*t[1]+e[1]*t[3]+t[5]]}static applyInverseTransform(e,t){const n=t[0]*t[3]-t[1]*t[2];return[(e[0]*t[3]-e[1]*t[2]+t[2]*t[5]-t[4]*t[3])/n,(-e[0]*t[1]+e[1]*t[0]+t[4]*t[1]-t[5]*t[0])/n]}static getAxialAlignedBoundingBox(e,t){const n=g.applyTransform(e,t),r=g.applyTransform(e.slice(2,4),t),i=g.applyTransform([e[0],e[3]],t),a=g.applyTransform([e[2],e[1]],t);return[Math.min(n[0],r[0],i[0],a[0]),Math.min(n[1],r[1],i[1],a[1]),Math.max(n[0],r[0],i[0],a[0]),Math.max(n[1],r[1],i[1],a[1])]}static inverseTransform(e){const t=e[0]*e[3]-e[1]*e[2];return[e[3]/t,-e[1]/t,-e[2]/t,e[0]/t,(e[2]*e[5]-e[4]*e[3])/t,(e[4]*e[1]-e[5]*e[0])/t]}static apply3dTransform(e,t){return[e[0]*t[0]+e[1]*t[1]+e[2]*t[2],e[3]*t[0]+e[4]*t[1]+e[5]*t[2],e[6]*t[0]+e[7]*t[1]+e[8]*t[2]]}static singularValueDecompose2dScale(e){const t=[e[0],e[2],e[1],e[3]],n=e[0]*t[0]+e[1]*t[2],r=e[0]*t[1]+e[1]*t[3],i=e[2]*t[0]+e[3]*t[2],a=e[2]*t[1]+e[3]*t[3],o=(n+a)/2,s=Math.sqrt((n+a)*(n+a)-4*(n*a-i*r))/2,l=o+s||1,c=o-s||1;return[Math.sqrt(l),Math.sqrt(c)]}static normalizeRect(e){const t=e.slice(0);return e[0]>e[2]&&(t[0]=e[2],t[2]=e[0]),e[1]>e[3]&&(t[1]=e[3],t[3]=e[1]),t}static intersect(e,t){function n(e,t){return e-t}const r=[e[0],e[2],t[0],t[2]].sort(n),i=[e[1],e[3],t[1],t[3]].sort(n),a=[];return e=g.normalizeRect(e),t=g.normalizeRect(t),r[0]===e[0]&&r[1]===t[0]||r[0]===t[0]&&r[1]===e[0]?(a[0]=r[1],a[2]=r[2],i[0]===e[1]&&i[1]===t[1]||i[0]===t[1]&&i[1]===e[1]?(a[1]=i[1],a[3]=i[2],a):null):null}}t.Util=g;const m=[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];const v=function(){const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";return function(t,n,r=!1){if(!r&&URL.createObjectURL){const e=new Blob([t],{type:n});return URL.createObjectURL(e)}let i=`data:${n};base64,`;for(let n=0,r=t.length;n<r;n+=3){const a=255&t[n],o=255&t[n+1],s=255&t[n+2];i+=e[a>>2]+e[(3&a)<<4|o>>4]+e[n+1<r?(15&o)<<2|s>>6:64]+e[n+2<r?63&s:64]}return i}}();t.createObjectURL=v},function(e,t,n){"use strict";n(4)},function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.isNodeJS=void 0;const i="object"==typeof t&&t+""=="[object process]"&&!t.versions.nw&&!t.versions.electron;n.isNodeJS=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.clearPrimitiveCaches=function(){a._clearCache(),i._clearCache(),s._clearCache()},t.isEOF=function(e){return e===r},t.isCmd=function(e,t){return e instanceof a&&(void 0===t||e.cmd===t)},t.isDict=h,t.isName=u,t.isRef=function(e){return e instanceof s},t.isRefsEqual=function(e,t){return e.num===t.num&&e.gen===t.gen},t.isStream=function(e){return"object"==typeof e&&null!==e&&void 0!==e.getBytes},t.RefSetCache=t.RefSet=t.Ref=t.Name=t.Dict=t.Cmd=t.EOF=void 0;n(2);var r={};t.EOF=r;var i=function(){let e=Object.create(null);function t(e){this.name=e}return t.prototype={},t.get=function(n){var r=e[n];return r||(e[n]=new t(n))},t._clearCache=function(){e=Object.create(null)},t}();t.Name=i;var a=function(){let e=Object.create(null);function t(e){this.cmd=e}return t.prototype={},t.get=function(n){var r=e[n];return r||(e[n]=new t(n))},t._clearCache=function(){e=Object.create(null)},t}();t.Cmd=a;var o=function(){var e=function(){return e};function t(t){this._map=Object.create(null),this.xref=t,this.objId=null,this.suppressEncryption=!1,this.__nonSerializable__=e}return t.prototype={assignXref:function(e){this.xref=e},get(e,t,n){let r=this._map[e];return void 0===r&&void 0!==t&&void 0===(r=this._map[t])&&void 0!==n&&(r=this._map[n]),r instanceof s&&this.xref?this.xref.fetch(r,this.suppressEncryption):r},async getAsync(e,t,n){let r=this._map[e];return void 0===r&&void 0!==t&&void 0===(r=this._map[t])&&void 0!==n&&(r=this._map[n]),r instanceof s&&this.xref?this.xref.fetchAsync(r,this.suppressEncryption):r},getArray(e,t,n){let r=this.get(e,t,n);if(!Array.isArray(r)||!this.xref)return r;for(let e=0,t=(r=r.slice()).length;e<t;e++)r[e]instanceof s&&(r[e]=this.xref.fetch(r[e],this.suppressEncryption));return r},getRaw:function(e){return this._map[e]},getKeys:function(){return Object.keys(this._map)},set:function(e,t){this._map[e]=t},has:function(e){return void 0!==this._map[e]},forEach:function(e){for(var t in this._map)e(t,this.get(t))}},t.empty=new t(null),t.merge=function(e,n){const r=new t(e);for(let e=0,t=n.length;e<t;e++){const t=n[e];if(h(t))for(const e in t._map)void 0===r._map[e]&&(r._map[e]=t._map[e])}return r},t}();t.Dict=o;var s=function(){let e=Object.create(null);function t(e,t){this.num=e,this.gen=t}return t.prototype={toString:function(){return 0===this.gen?`${this.num}R`:`${this.num}R${this.gen}`}},t.get=function(n,r){const i=0===r?`${n}R`:`${n}R${r}`,a=e[i];return a||(e[i]=new t(n,r))},t._clearCache=function(){e=Object.create(null)},t}();t.Ref=s;var l=function(){function e(){this.dict=Object.create(null)}return e.prototype={has:function(e){return e.toString()in this.dict},put:function(e){this.dict[e.toString()]=!0},remove:function(e){delete this.dict[e.toString()]}},e}();t.RefSet=l;var c=function(){function e(){this.dict=Object.create(null)}return e.prototype={get size(){return Object.keys(this.dict).length},get:function(e){return this.dict[e.toString()]},has:function(e){return e.toString()in this.dict},put:function(e,t){this.dict[e.toString()]=t},putAlias:function(e,t){this.dict[e.toString()]=this.get(t)},forEach:function(e){for(const t in this.dict)e(this.dict[t])},clear:function(){this.dict=Object.create(null)}},e}();function u(e,t){return e instanceof i&&(void 0===t||e.name===t)}function h(e,t){return e instanceof o&&(void 0===t||u(e.get("Type"),t))}t.RefSetCache=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NetworkPdfManager=t.LocalPdfManager=void 0;var r=n(2),i=n(7),a=n(8),o=n(9),s=n(12);class l{constructor(){this.constructor===l&&(0,r.unreachable)("Cannot initialize BasePdfManager.")}get docId(){return this._docId}get password(){return this._password}get docBaseUrl(){let e=null;if(this._docBaseUrl){const t=(0,r.createValidAbsoluteUrl)(this._docBaseUrl);t?e=t.href:(0,r.warn)(`Invalid absolute docBaseUrl: "${this._docBaseUrl}".`)}return(0,r.shadow)(this,"docBaseUrl",e)}onLoadedStream(){(0,r.unreachable)("Abstract method `onLoadedStream` called")}ensureDoc(e,t){return this.ensure(this.pdfDocument,e,t)}ensureXRef(e,t){return this.ensure(this.pdfDocument.xref,e,t)}ensureCatalog(e,t){return this.ensure(this.pdfDocument.catalog,e,t)}getPage(e){return this.pdfDocument.getPage(e)}fontFallback(e,t){return this.pdfDocument.fontFallback(e,t)}cleanup(e=!1){return this.pdfDocument.cleanup(e)}async ensure(e,t,n){(0,r.unreachable)("Abstract method `ensure` called")}requestRange(e,t){(0,r.unreachable)("Abstract method `requestRange` called")}requestLoadedStream(){(0,r.unreachable)("Abstract method `requestLoadedStream` called")}sendProgressiveData(e){(0,r.unreachable)("Abstract method `sendProgressiveData` called")}updatePassword(e){this._password=e}terminate(e){(0,r.unreachable)("Abstract method `terminate` called")}}t.LocalPdfManager=class extends l{constructor(e,t,n,r,i){super(),this._docId=e,this._password=n,this._docBaseUrl=i,this.evaluatorOptions=r;const a=new s.Stream(t);this.pdfDocument=new o.PDFDocument(this,a),this._loadedStreamPromise=Promise.resolve(a)}async ensure(e,t,n){const r=e[t];return"function"==typeof r?r.apply(e,n):r}requestRange(e,t){return Promise.resolve()}requestLoadedStream(){}onLoadedStream(){return this._loadedStreamPromise}terminate(e){}};t.NetworkPdfManager=class extends l{constructor(e,t,n,r,a){super(),this._docId=e,this._password=n.password,this._docBaseUrl=a,this.msgHandler=n.msgHandler,this.evaluatorOptions=r,this.streamManager=new i.ChunkedStreamManager(t,{msgHandler:n.msgHandler,length:n.length,disableAutoFetch:n.disableAutoFetch,rangeChunkSize:n.rangeChunkSize}),this.pdfDocument=new o.PDFDocument(this,this.streamManager.getStream())}async ensure(e,t,n){try{const r=e[t];return"function"==typeof r?r.apply(e,n):r}catch(r){if(!(r instanceof a.MissingDataException))throw r;return await this.requestRange(r.begin,r.end),this.ensure(e,t,n)}}requestRange(e,t){return this.streamManager.requestRange(e,t)}requestLoadedStream(){this.streamManager.requestAllChunks()}sendProgressiveData(e){this.streamManager.onReceiveData({chunk:e})}onLoadedStream(){return this.streamManager.onLoadedStream()}terminate(e){this.streamManager.abort(e)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChunkedStreamManager=t.ChunkedStream=void 0;var r=n(2),i=n(8);class a{constructor(e,t,n){this.bytes=new Uint8Array(e),this.start=0,this.pos=0,this.end=e,this.chunkSize=t,this.loadedChunks=[],this.numChunksLoaded=0,this.numChunks=Math.ceil(e/t),this.manager=n,this.progressiveDataLength=0,this.lastSuccessfulEnsureByteChunk=-1}getMissingChunks(){const e=[];for(let t=0,n=this.numChunks;t<n;++t)this.loadedChunks[t]||e.push(t);return e}getBaseStreams(){return[this]}allChunksLoaded(){return this.numChunksLoaded===this.numChunks}onReceiveData(e,t){const n=this.chunkSize;if(e%n!=0)throw new Error(`Bad begin offset: ${e}`);const r=e+t.byteLength;if(r%n!=0&&r!==this.bytes.length)throw new Error(`Bad end offset: ${r}`);this.bytes.set(new Uint8Array(t),e);const i=Math.floor(e/n),a=Math.floor((r-1)/n)+1;for(let e=i;e<a;++e)this.loadedChunks[e]||(this.loadedChunks[e]=!0,++this.numChunksLoaded)}onReceiveProgressiveData(e){let t=this.progressiveDataLength;const n=Math.floor(t/this.chunkSize);this.bytes.set(new Uint8Array(e),t),t+=e.byteLength,this.progressiveDataLength=t;const r=t>=this.end?this.numChunks:Math.floor(t/this.chunkSize);for(let e=n;e<r;++e)this.loadedChunks[e]||(this.loadedChunks[e]=!0,++this.numChunksLoaded)}ensureByte(e){if(e<this.progressiveDataLength)return;const t=Math.floor(e/this.chunkSize);if(t!==this.lastSuccessfulEnsureByteChunk){if(!this.loadedChunks[t])throw new i.MissingDataException(e,e+1);this.lastSuccessfulEnsureByteChunk=t}}ensureRange(e,t){if(e>=t)return;if(t<=this.progressiveDataLength)return;const n=this.chunkSize,r=Math.floor(e/n),a=Math.floor((t-1)/n)+1;for(let n=r;n<a;++n)if(!this.loadedChunks[n])throw new i.MissingDataException(e,t)}nextEmptyChunk(e){const t=this.numChunks;for(let n=0;n<t;++n){const r=(e+n)%t;if(!this.loadedChunks[r])return r}return null}hasChunk(e){return!!this.loadedChunks[e]}get length(){return this.end-this.start}get isEmpty(){return 0===this.length}getByte(){const e=this.pos;return e>=this.end?-1:(e>=this.progressiveDataLength&&this.ensureByte(e),this.bytes[this.pos++])}getUint16(){const e=this.getByte(),t=this.getByte();return-1===e||-1===t?-1:(e<<8)+t}getInt32(){return(this.getByte()<<24)+(this.getByte()<<16)+(this.getByte()<<8)+this.getByte()}getBytes(e,t=!1){const n=this.bytes,r=this.pos,i=this.end;if(!e){i>this.progressiveDataLength&&this.ensureRange(r,i);const e=n.subarray(r,i);return t?new Uint8ClampedArray(e):e}let a=r+e;a>i&&(a=i),a>this.progressiveDataLength&&this.ensureRange(r,a),this.pos=a;const o=n.subarray(r,a);return t?new Uint8ClampedArray(o):o}peekByte(){const e=this.getByte();return-1!==e&&this.pos--,e}peekBytes(e,t=!1){const n=this.getBytes(e,t);return this.pos-=n.length,n}getByteRange(e,t){return e<0&&(e=0),t>this.end&&(t=this.end),t>this.progressiveDataLength&&this.ensureRange(e,t),this.bytes.subarray(e,t)}skip(e){e||(e=1),this.pos+=e}reset(){this.pos=this.start}moveStart(){this.start=this.pos}makeSubStream(e,t,n){function r(){}t?e+t>this.progressiveDataLength&&this.ensureRange(e,e+t):e>=this.progressiveDataLength&&this.ensureByte(e),r.prototype=Object.create(this),r.prototype.getMissingChunks=function(){const e=this.chunkSize,t=Math.floor(this.start/e),n=Math.floor((this.end-1)/e)+1,r=[];for(let e=t;e<n;++e)this.loadedChunks[e]||r.push(e);return r},r.prototype.allChunksLoaded=function(){return this.numChunksLoaded===this.numChunks||0===this.getMissingChunks().length};const i=new r;return i.pos=i.start=e,i.end=e+t||this.end,i.dict=n,i}}t.ChunkedStream=a;t.ChunkedStreamManager=class{constructor(e,t){this.length=t.length,this.chunkSize=t.rangeChunkSize,this.stream=new a(this.length,this.chunkSize,this),this.pdfNetworkStream=e,this.disableAutoFetch=t.disableAutoFetch,this.msgHandler=t.msgHandler,this.currRequestId=0,this.chunksNeededByRequest=Object.create(null),this.requestsByChunk=Object.create(null),this.promisesByRequest=Object.create(null),this.progressiveDataLength=0,this.aborted=!1,this._loadedStreamCapability=(0,r.createPromiseCapability)()}onLoadedStream(){return this._loadedStreamCapability.promise}sendRequest(e,t){const n=this.pdfNetworkStream.getRangeReader(e,t);n.isStreamingSupported||(n.onProgress=this.onProgress.bind(this));let i=[],a=0;new Promise((e,t)=>{const o=s=>{try{if(!s.done){const e=s.value;return i.push(e),a+=(0,r.arrayByteLength)(e),n.isStreamingSupported&&this.onProgress({loaded:a}),void n.read().then(o,t)}const l=(0,r.arraysToBytes)(i);i=null,e(l)}catch(e){t(e)}};n.read().then(o,t)}).then(t=>{this.aborted||this.onReceiveData({chunk:t,begin:e})})}requestAllChunks(){const e=this.stream.getMissingChunks();return this._requestChunks(e),this._loadedStreamCapability.promise}_requestChunks(e){const t=this.currRequestId++,n=Object.create(null);this.chunksNeededByRequest[t]=n;for(const t of e)this.stream.hasChunk(t)||(n[t]=!0);if((0,r.isEmptyObj)(n))return Promise.resolve();const i=(0,r.createPromiseCapability)();this.promisesByRequest[t]=i;const a=[];for(let e in n)(e|=0)in this.requestsByChunk||(this.requestsByChunk[e]=[],a.push(e)),this.requestsByChunk[e].push(t);if(!a.length)return i.promise;const o=this.groupChunks(a);for(const e of o){const t=e.beginChunk*this.chunkSize,n=Math.min(e.endChunk*this.chunkSize,this.length);this.sendRequest(t,n)}return i.promise}getStream(){return this.stream}requestRange(e,t){t=Math.min(t,this.length);const n=this.getBeginChunk(e),r=this.getEndChunk(t),i=[];for(let e=n;e<r;++e)i.push(e);return this._requestChunks(i)}requestRanges(e=[]){const t=[];for(const n of e){const e=this.getBeginChunk(n.begin),r=this.getEndChunk(n.end);for(let n=e;n<r;++n)t.includes(n)||t.push(n)}return t.sort(function(e,t){return e-t}),this._requestChunks(t)}groupChunks(e){const t=[];let n=-1,r=-1;for(let i=0,a=e.length;i<a;++i){const a=e[i];n<0&&(n=a),r>=0&&r+1!==a&&(t.push({beginChunk:n,endChunk:r+1}),n=a),i+1===e.length&&t.push({beginChunk:n,endChunk:a+1}),r=a}return t}onProgress(e){this.msgHandler.send("DocProgress",{loaded:this.stream.numChunksLoaded*this.chunkSize+e.loaded,total:this.length})}onReceiveData(e){const t=e.chunk,n=void 0===e.begin,i=n?this.progressiveDataLength:e.begin,a=i+t.byteLength,o=Math.floor(i/this.chunkSize),s=a<this.length?Math.floor(a/this.chunkSize):Math.ceil(a/this.chunkSize);n?(this.stream.onReceiveProgressiveData(t),this.progressiveDataLength=a):this.stream.onReceiveData(i,t),this.stream.allChunksLoaded()&&this._loadedStreamCapability.resolve(this.stream);const l=[];for(let e=o;e<s;++e){const t=this.requestsByChunk[e]||[];delete this.requestsByChunk[e];for(const n of t){const t=this.chunksNeededByRequest[n];e in t&&delete t[e],(0,r.isEmptyObj)(t)&&l.push(n)}}if(!this.disableAutoFetch&&(0,r.isEmptyObj)(this.requestsByChunk)){let e;if(1===this.stream.numChunksLoaded){const t=this.stream.numChunks-1;this.stream.hasChunk(t)||(e=t)}else e=this.stream.nextEmptyChunk(s);Number.isInteger(e)&&this._requestChunks([e])}for(const e of l){const t=this.promisesByRequest[e];delete this.promisesByRequest[e],t.resolve()}this.msgHandler.send("DocProgress",{loaded:this.stream.numChunksLoaded*this.chunkSize,total:this.length})}onError(e){this._loadedStreamCapability.reject(e)}getBeginChunk(e){return Math.floor(e/this.chunkSize)}getEndChunk(e){return Math.floor((e-1)/this.chunkSize)+1}abort(e){this.aborted=!0,this.pdfNetworkStream&&this.pdfNetworkStream.cancelAllRequests(e);for(const t in this.promisesByRequest)this.promisesByRequest[t].reject(e)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLookupTableFactory=function(e){let t;return function(){return e&&(t=Object.create(null),e(t),e=null),t}},t.getInheritableProperty=function({dict:e,key:t,getArray:n=!1,stopWhenFound:i=!0}){let a,o=0;for(;e;){const s=n?e.getArray(t):e.get(t);if(void 0!==s){if(i)return s;a||(a=[]),a.push(s)}if(++o>100){(0,r.warn)(`getInheritableProperty: maximum loop count exceeded for "${t}"`);break}e=e.get("Parent")}return a},t.toRomanNumerals=function(e,t=!1){(0,r.assert)(Number.isInteger(e)&&e>0,"The number should be a positive integer.");const n=[];let a;for(;e>=1e3;)e-=1e3,n.push("M");a=e/100|0,e%=100,n.push(i[a]),a=e/10|0,e%=10,n.push(i[10+a]),n.push(i[20+e]);const o=n.join("");return t?o.toLowerCase():o},t.log2=function(e){if(e<=0)return 0;return Math.ceil(Math.log2(e))},t.readInt8=function(e,t){return e[t]<<24>>24},t.readUint16=function(e,t){return e[t]<<8|e[t+1]},t.readUint32=function(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0},t.isWhiteSpace=function(e){return 32===e||9===e||13===e||10===e},t.XRefParseException=t.XRefEntryException=t.MissingDataException=void 0;var r=n(2);t.MissingDataException=class extends r.BaseException{constructor(e,t){super(`Missing data [${e}, ${t})`),this.begin=e,this.end=t}};t.XRefEntryException=class extends r.BaseException{};t.XRefParseException=class extends r.BaseException{};const i=["","C","CC","CCC","CD","D","DC","DCC","DCCC","CM","","X","XX","XXX","XL","L","LX","LXX","LXXX","XC","","I","II","III","IV","V","VI","VII","VIII","IX"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PDFDocument=t.Page=void 0;var r=n(2),i=n(10),a=n(5),o=n(8),s=n(12),l=n(25),c=n(22),u=n(11),h=n(26),d=n(27),f=n(41);const p=1,A=[0,0,612,792];function g(e,t){return"display"===t&&e.viewable||"print"===t&&e.printable}class m{constructor({pdfManager:e,xref:t,pageIndex:n,pageDict:r,ref:i,fontCache:a,builtInCMapCache:o,globalImageCache:s,pdfFunctionFactory:l}){this.pdfManager=e,this.pageIndex=n,this.pageDict=r,this.xref=t,this.ref=i,this.fontCache=a,this.builtInCMapCache=o,this.globalImageCache=s,this.pdfFunctionFactory=l,this.evaluatorOptions=e.evaluatorOptions,this.resourcesPromise=null;const c={obj:0};this.idFactory={createObjId:()=>`p${n}_${++c.obj}`,getDocId:()=>`g_${e.docId}`}}_getInheritableProperty(e,t=!1){const n=(0,o.getInheritableProperty)({dict:this.pageDict,key:e,getArray:t,stopWhenFound:!1});return Array.isArray(n)?1!==n.length&&(0,a.isDict)(n[0])?a.Dict.merge(this.xref,n):n[0]:n}get content(){return this.pageDict.get("Contents")}get resources(){return(0,r.shadow)(this,"resources",this._getInheritableProperty("Resources")||a.Dict.empty)}_getBoundingBox(e){const t=this._getInheritableProperty(e,!0);if(Array.isArray(t)&&4===t.length){if(t[2]-t[0]!=0&&t[3]-t[1]!=0)return t;(0,r.warn)(`Empty /${e} entry.`)}return null}get mediaBox(){return(0,r.shadow)(this,"mediaBox",this._getBoundingBox("MediaBox")||A)}get cropBox(){return(0,r.shadow)(this,"cropBox",this._getBoundingBox("CropBox")||this.mediaBox)}get userUnit(){let e=this.pageDict.get("UserUnit");return(!(0,r.isNum)(e)||e<=0)&&(e=p),(0,r.shadow)(this,"userUnit",e)}get view(){const{cropBox:e,mediaBox:t}=this;let n;if(e===t||(0,r.isArrayEqual)(e,t))n=t;else{const i=r.Util.intersect(e,t);i&&i[2]-i[0]!=0&&i[3]-i[1]!=0?n=i:(0,r.warn)("Empty /CropBox and /MediaBox intersection.")}return(0,r.shadow)(this,"view",n||t)}get rotate(){let e=this._getInheritableProperty("Rotate")||0;return e%90!=0?e=0:e>=360?e%=360:e<0&&(e=(e%360+360)%360),(0,r.shadow)(this,"rotate",e)}getContentStream(){const e=this.content;let t;if(Array.isArray(e)){const n=this.xref,r=[];for(const t of e)r.push(n.fetchIfRef(t));t=new s.StreamsSequenceStream(r)}else t=(0,a.isStream)(e)?e:new s.NullStream;return t}loadResources(e){return this.resourcesPromise||(this.resourcesPromise=this.pdfManager.ensure(this,"resources")),this.resourcesPromise.then(()=>{return new i.ObjectLoader(this.resources,e,this.xref).load()})}getOperatorList({handler:e,sink:t,task:n,intent:i,renderInteractiveForms:a}){const o=this.pdfManager.ensure(this,"getContentStream"),s=this.loadResources(["ExtGState","ColorSpace","Pattern","Shading","XObject","Font"]),l=new d.PartialEvaluator({xref:this.xref,handler:e,pageIndex:this.pageIndex,idFactory:this.idFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,globalImageCache:this.globalImageCache,options:this.evaluatorOptions,pdfFunctionFactory:this.pdfFunctionFactory}),c=Promise.all([o,s]).then(([r])=>{const a=new h.OperatorList(i,t,this.pageIndex);return e.send("StartRenderPage",{transparency:l.hasBlendModes(this.resources),pageIndex:this.pageIndex,intent:i}),l.getOperatorList({stream:r,task:n,resources:this.resources,operatorList:a}).then(function(){return a})});return Promise.all([c,this._parsedAnnotations]).then(function([e,t]){if(0===t.length)return e.flush(!0),{length:e.totalLength};const o=[];for(const e of t)g(e,i)&&o.push(e.getOperatorList(l,n,a).catch(function(e){return(0,r.warn)("getOperatorList - ignoring annotation data during "+`"${n.name}" task: "${e}".`),null}));return Promise.all(o).then(function(t){e.addOp(r.OPS.beginAnnotations,[]);for(const n of t)e.addOpList(n);return e.addOp(r.OPS.endAnnotations,[]),e.flush(!0),{length:e.totalLength}})})}extractTextContent({handler:e,task:t,normalizeWhitespace:n,sink:r,combineTextItems:i}){const a=this.pdfManager.ensure(this,"getContentStream"),o=this.loadResources(["ExtGState","XObject","Font"]);return Promise.all([a,o]).then(([a])=>{return new d.PartialEvaluator({xref:this.xref,handler:e,pageIndex:this.pageIndex,idFactory:this.idFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,globalImageCache:this.globalImageCache,options:this.evaluatorOptions,pdfFunctionFactory:this.pdfFunctionFactory}).getTextContent({stream:a,task:t,resources:this.resources,normalizeWhitespace:n,combineTextItems:i,sink:r})})}getAnnotationsData(e){return this._parsedAnnotations.then(function(t){const n=[];for(let r=0,i=t.length;r<i;r++)e&&!g(t[r],e)||n.push(t[r].data);return n})}get annotations(){return(0,r.shadow)(this,"annotations",this._getInheritableProperty("Annots")||[])}get _parsedAnnotations(){const e=this.pdfManager.ensure(this,"annotations").then(()=>{const e=[];for(const t of this.annotations)e.push(l.AnnotationFactory.create(this.xref,t,this.pdfManager,this.idFactory).catch(function(e){return(0,r.warn)(`_parsedAnnotations: "${e}".`),null}));return Promise.all(e).then(function(e){return e.filter(e=>!!e)})});return(0,r.shadow)(this,"_parsedAnnotations",e)}}t.Page=m;const v=new Uint8Array([37,80,68,70,45]),y=new Uint8Array([115,116,97,114,116,120,114,101,102]),b=new Uint8Array([101,110,100,111,98,106]),w=1024,x="\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0",_=/^[1-9]\.[0-9]$/;function C(e,t,n=1024,r=!1){const i=t.length,a=e.peekBytes(n),o=a.length-i;if(o<=0)return!1;if(r){const n=i-1;let r=a.length-1;for(;r>=n;){let o=0;for(;o<i&&a[r-o]===t[n-o];)o++;if(o>=i)return e.pos+=r-n,!0;r--}}else{let n=0;for(;n<=o;){let r=0;for(;r<i&&a[n+r]===t[r];)r++;if(r>=i)return e.pos+=n,!0;n++}}return!1}t.PDFDocument=class{constructor(e,t){let n;if((0,a.isStream)(t))n=t;else{if(!(0,r.isArrayBuffer)(t))throw new Error("PDFDocument: Unknown argument type");n=new s.Stream(t)}if(n.length<=0)throw new r.InvalidPDFException("The PDF file is empty, i.e. its size is zero bytes.");this.pdfManager=e,this.stream=n,this.xref=new i.XRef(n,e),this.pdfFunctionFactory=new f.PDFFunctionFactory({xref:this.xref,isEvalSupported:e.evaluatorOptions.isEvalSupported}),this._pagePromises=[]}parse(e){this.setup(e);const t=this.catalog.catDict.get("Version");(0,a.isName)(t)&&(this.pdfFormatVersion=t.name);try{if(this.acroForm=this.catalog.catDict.get("AcroForm"),this.acroForm){this.xfa=this.acroForm.get("XFA");const e=this.acroForm.get("Fields");Array.isArray(e)&&0!==e.length||this.xfa||(this.acroForm=null)}}catch(e){if(e instanceof o.MissingDataException)throw e;(0,r.info)("Cannot fetch AcroForm entry; assuming no AcroForms are present"),this.acroForm=null}try{const e=this.catalog.catDict.get("Collection");(0,a.isDict)(e)&&e.getKeys().length>0&&(this.collection=e)}catch(e){if(e instanceof o.MissingDataException)throw e;(0,r.info)("Cannot fetch Collection dictionary.")}}get linearization(){let e=null;try{e=u.Linearization.create(this.stream)}catch(e){if(e instanceof o.MissingDataException)throw e;(0,r.info)(e)}return(0,r.shadow)(this,"linearization",e)}get startXRef(){const e=this.stream;let t=0;if(this.linearization)e.reset(),C(e,b)&&(t=e.pos+6-e.start);else{const n=1024,r=y.length;let i=!1,a=e.end;for(;!i&&a>0;)(a-=n-r)<0&&(a=0),e.pos=a,i=C(e,y,n,!0);if(i){let n;e.skip(9);do{n=e.getByte()}while((0,o.isWhiteSpace)(n));let r="";for(;n>=32&&n<=57;)r+=String.fromCharCode(n),n=e.getByte();t=parseInt(r,10),isNaN(t)&&(t=0)}}return(0,r.shadow)(this,"startXRef",t)}checkHeader(){const e=this.stream;if(e.reset(),!C(e,v))return;e.moveStart();let t,n="";for(;(t=e.getByte())>32&&!(n.length>=12);)n+=String.fromCharCode(t);this.pdfFormatVersion||(this.pdfFormatVersion=n.substring(5))}parseStartXRef(){this.xref.setStartXRef(this.startXRef)}setup(e){this.xref.parse(e),this.catalog=new i.Catalog(this.pdfManager,this.xref)}get numPages(){const e=this.linearization,t=e?e.numPages:this.catalog.numPages;return(0,r.shadow)(this,"numPages",t)}get documentInfo(){const e={Title:r.isString,Author:r.isString,Subject:r.isString,Keywords:r.isString,Creator:r.isString,Producer:r.isString,CreationDate:r.isString,ModDate:r.isString,Trapped:a.isName};let t=this.pdfFormatVersion;"string"==typeof t&&_.test(t)||((0,r.warn)(`Invalid PDF header version number: ${t}`),t=null);const n={PDFFormatVersion:t,IsLinearized:!!this.linearization,IsAcroFormPresent:!!this.acroForm,IsXFAPresent:!!this.xfa,IsCollectionPresent:!!this.collection};let i;try{i=this.xref.trailer.get("Info")}catch(e){if(e instanceof o.MissingDataException)throw e;(0,r.info)("The document information dictionary is invalid.")}if((0,a.isDict)(i))for(const t of i.getKeys()){const o=i.get(t);if(e[t])e[t](o)?n[t]="string"!=typeof o?o:(0,r.stringToPDFString)(o):(0,r.info)(`Bad value in document info for "${t}".`);else if("string"==typeof t){let e;if((0,r.isString)(o))e=(0,r.stringToPDFString)(o);else{if(!((0,a.isName)(o)||(0,r.isNum)(o)||(0,r.isBool)(o))){(0,r.info)(`Unsupported value in document info for (custom) "${t}".`);continue}e=o}n.Custom||(n.Custom=Object.create(null)),n.Custom[t]=e}}return(0,r.shadow)(this,"documentInfo",n)}get fingerprint(){let e;const t=this.xref.trailer.get("ID"),n=[];for(let i=0,a=(e=Array.isArray(t)&&t[0]&&(0,r.isString)(t[0])&&t[0]!==x?(0,r.stringToBytes)(t[0]):(0,c.calculateMD5)(this.stream.getByteRange(0,w),0,w)).length;i<a;i++){const t=e[i].toString(16);n.push(t.padStart(2,"0"))}return(0,r.shadow)(this,"fingerprint",n.join(""))}_getLinearizationPage(e){const{catalog:t,linearization:n}=this,i=a.Ref.get(n.objectNumberFirst,0);return this.xref.fetchAsync(i).then(e=>{if((0,a.isDict)(e,"Page")||(0,a.isDict)(e)&&!e.has("Type")&&e.has("Contents"))return i&&!t.pageKidsCountCache.has(i)&&t.pageKidsCountCache.put(i,1),[e,i];throw new r.FormatError("The Linearization dictionary doesn't point to a valid Page dictionary.")}).catch(n=>((0,r.info)(n),t.getPageDict(e)))}getPage(e){if(void 0!==this._pagePromises[e])return this._pagePromises[e];const{catalog:t,linearization:n}=this,r=n&&n.pageFirst===e?this._getLinearizationPage(e):t.getPageDict(e);return this._pagePromises[e]=r.then(([n,r])=>new m({pdfManager:this.pdfManager,xref:this.xref,pageIndex:e,pageDict:n,ref:r,fontCache:t.fontCache,builtInCMapCache:t.builtInCMapCache,globalImageCache:t.globalImageCache,pdfFunctionFactory:this.pdfFunctionFactory}))}checkFirstPage(){return this.getPage(0).catch(async e=>{if(e instanceof o.XRefEntryException)throw this._pagePromises.length=0,await this.cleanup(),new o.XRefParseException})}fontFallback(e,t){return this.catalog.fontFallback(e,t)}async cleanup(e=!1){return this.catalog?this.catalog.cleanup(e):(0,a.clearPrimitiveCaches)()}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FileSpec=t.XRef=t.ObjectLoader=t.Catalog=void 0;var r=n(2),i=n(5),a=n(11),o=n(8),s=n(22),l=n(23),c=n(24);function u(e){return(0,i.isDict)(e)?e.get("D"):e}class h{constructor(e,t){if(this.pdfManager=e,this.xref=t,this.catDict=t.getCatalogObj(),!(0,i.isDict)(this.catDict))throw new r.FormatError("Catalog object is not a dictionary.");this.fontCache=new i.RefSetCache,this.builtInCMapCache=new Map,this.globalImageCache=new c.GlobalImageCache,this.pageKidsCountCache=new i.RefSetCache}get metadata(){const e=this.catDict.getRaw("Metadata");if(!(0,i.isRef)(e))return(0,r.shadow)(this,"metadata",null);const t=!(this.xref.encrypt&&this.xref.encrypt.encryptMetadata),n=this.xref.fetch(e,t);let a;if(n&&(0,i.isDict)(n.dict)){const e=n.dict.get("Type"),t=n.dict.get("Subtype");if((0,i.isName)(e,"Metadata")&&(0,i.isName)(t,"XML"))try{a=(0,r.stringToUTF8String)((0,r.bytesToString)(n.getBytes()))}catch(e){if(e instanceof o.MissingDataException)throw e;(0,r.info)("Skipping invalid metadata.")}}return(0,r.shadow)(this,"metadata",a)}get toplevelPagesDict(){const e=this.catDict.get("Pages");if(!(0,i.isDict)(e))throw new r.FormatError("Invalid top-level pages dictionary.");return(0,r.shadow)(this,"toplevelPagesDict",e)}get documentOutline(){let e=null;try{e=this._readDocumentOutline()}catch(e){if(e instanceof o.MissingDataException)throw e;(0,r.warn)("Unable to read document outline.")}return(0,r.shadow)(this,"documentOutline",e)}_readDocumentOutline(){let e=this.catDict.get("Outlines");if(!(0,i.isDict)(e))return null;if(e=e.getRaw("First"),!(0,i.isRef)(e))return null;const t={items:[]},n=[{obj:e,parent:t}],a=new i.RefSet;a.put(e);const o=this.xref,s=new Uint8ClampedArray(3);for(;n.length>0;){const t=n.shift(),c=o.fetchIfRef(t.obj);if(null===c)continue;if(!c.has("Title"))throw new r.FormatError("Invalid outline item encountered.");const u={url:null,dest:null};h.parseDestDictionary({destDict:c,resultObj:u,docBaseUrl:this.pdfManager.docBaseUrl});const d=c.get("Title"),f=c.get("F")||0,p=c.getArray("C"),A=c.get("Count");let g=s;!Array.isArray(p)||3!==p.length||0===p[0]&&0===p[1]&&0===p[2]||(g=l.ColorSpace.singletons.rgb.getRgb(p,0));const m={dest:u.dest,url:u.url,unsafeUrl:u.unsafeUrl,newWindow:u.newWindow,title:(0,r.stringToPDFString)(d),color:g,count:Number.isInteger(A)?A:void 0,bold:!!(2&f),italic:!!(1&f),items:[]};t.parent.items.push(m),e=c.getRaw("First"),(0,i.isRef)(e)&&!a.has(e)&&(n.push({obj:e,parent:m}),a.put(e)),e=c.getRaw("Next"),(0,i.isRef)(e)&&!a.has(e)&&(n.push({obj:e,parent:t.parent}),a.put(e))}return t.items.length>0?t.items:null}get permissions(){let e=null;try{e=this._readPermissions()}catch(e){if(e instanceof o.MissingDataException)throw e;(0,r.warn)("Unable to read permissions.")}return(0,r.shadow)(this,"permissions",e)}_readPermissions(){const e=this.xref.trailer.get("Encrypt");if(!(0,i.isDict)(e))return null;let t=e.get("P");if(!(0,r.isNum)(t))return null;t+=2**32;const n=[];for(const e in r.PermissionFlag){const i=r.PermissionFlag[e];t&i&&n.push(i)}return n}get numPages(){const e=this.toplevelPagesDict.get("Count");if(!Number.isInteger(e))throw new r.FormatError("Page count in top-level pages dictionary is not an integer.");return(0,r.shadow)(this,"numPages",e)}get destinations(){const e=this._readDests(),t=Object.create(null);if(e instanceof p){const n=e.getAll();for(const e in n)t[e]=u(n[e])}else e instanceof i.Dict&&e.forEach(function(e,n){n&&(t[e]=u(n))});return(0,r.shadow)(this,"destinations",t)}getDestination(e){const t=this._readDests();return t instanceof p||t instanceof i.Dict?u(t.get(e)||null):null}_readDests(){const e=this.catDict.get("Names");return e&&e.has("Dests")?new p(e.getRaw("Dests"),this.xref):this.catDict.has("Dests")?this.catDict.get("Dests"):void 0}get pageLabels(){let e=null;try{e=this._readPageLabels()}catch(e){if(e instanceof o.MissingDataException)throw e;(0,r.warn)("Unable to read page labels.")}return(0,r.shadow)(this,"pageLabels",e)}_readPageLabels(){const e=this.catDict.getRaw("PageLabels");if(!e)return null;const t=new Array(this.numPages);let n=null,a="";const s=new A(e,this.xref).getAll();let l="",c=1;for(let e=0,u=this.numPages;e<u;e++){if(e in s){const t=s[e];if(!(0,i.isDict)(t))throw new r.FormatError("PageLabel is not a dictionary.");if(t.has("Type")&&!(0,i.isName)(t.get("Type"),"PageLabel"))throw new r.FormatError("Invalid type in PageLabel dictionary.");if(t.has("S")){const e=t.get("S");if(!(0,i.isName)(e))throw new r.FormatError("Invalid style in PageLabel dictionary.");n=e.name}else n=null;if(t.has("P")){const e=t.get("P");if(!(0,r.isString)(e))throw new r.FormatError("Invalid prefix in PageLabel dictionary.");a=(0,r.stringToPDFString)(e)}else a="";if(t.has("St")){const e=t.get("St");if(!(Number.isInteger(e)&&e>=1))throw new r.FormatError("Invalid start in PageLabel dictionary.");c=e}else c=1}switch(n){case"D":l=c;break;case"R":case"r":l=(0,o.toRomanNumerals)(c,"r"===n);break;case"A":case"a":const e=26,t="a"===n?97:65,i=c-1,a=String.fromCharCode(t+i%e),s=[];for(let t=0,n=i/e|0;t<=n;t++)s.push(a);l=s.join("");break;default:if(n)throw new r.FormatError(`Invalid style "${n}" in PageLabel dictionary.`);l=""}t[e]=a+l,c++}return t}get pageLayout(){const e=this.catDict.get("PageLayout");let t="";if((0,i.isName)(e))switch(e.name){case"SinglePage":case"OneColumn":case"TwoColumnLeft":case"TwoColumnRight":case"TwoPageLeft":case"TwoPageRight":t=e.name}return(0,r.shadow)(this,"pageLayout",t)}get pageMode(){const e=this.catDict.get("PageMode");let t="UseNone";if((0,i.isName)(e))switch(e.name){case"UseNone":case"UseOutlines":case"UseThumbs":case"FullScreen":case"UseOC":case"UseAttachments":t=e.name}return(0,r.shadow)(this,"pageMode",t)}get viewerPreferences(){const e={HideToolbar:r.isBool,HideMenubar:r.isBool,HideWindowUI:r.isBool,FitWindow:r.isBool,CenterWindow:r.isBool,DisplayDocTitle:r.isBool,NonFullScreenPageMode:i.isName,Direction:i.isName,ViewArea:i.isName,ViewClip:i.isName,PrintArea:i.isName,PrintClip:i.isName,PrintScaling:i.isName,Duplex:i.isName,PickTrayByPDFSize:r.isBool,PrintPageRange:Array.isArray,NumCopies:Number.isInteger},t=this.catDict.get("ViewerPreferences");let n=null;if((0,i.isDict)(t))for(const i in e){if(!t.has(i))continue;const a=t.get(i);if(!e[i](a)){(0,r.info)(`Bad value in ViewerPreferences for "${i}".`);continue}let o;switch(i){case"NonFullScreenPageMode":switch(a.name){case"UseNone":case"UseOutlines":case"UseThumbs":case"UseOC":o=a.name;break;default:o="UseNone"}break;case"Direction":switch(a.name){case"L2R":case"R2L":o=a.name;break;default:o="L2R"}break;case"ViewArea":case"ViewClip":case"PrintArea":case"PrintClip":switch(a.name){case"MediaBox":case"CropBox":case"BleedBox":case"TrimBox":case"ArtBox":o=a.name;break;default:o="CropBox"}break;case"PrintScaling":switch(a.name){case"None":case"AppDefault":o=a.name;break;default:o="AppDefault"}break;case"Duplex":switch(a.name){case"Simplex":case"DuplexFlipShortEdge":case"DuplexFlipLongEdge":o=a.name;break;default:o="None"}break;case"PrintPageRange":if(a.length%2!=0)break;a.every((e,t,n)=>Number.isInteger(e)&&e>0&&(0===t||e>=n[t-1])&&e<=this.numPages)&&(o=a);break;case"NumCopies":a>0&&(o=a);break;default:if("boolean"!=typeof a)throw new r.FormatError(`viewerPreferences - expected a boolean value for: ${i}`);o=a}void 0!==o?(n||(n=Object.create(null)),n[i]=o):(0,r.info)(`Bad value in ViewerPreferences for "${i}".`)}return(0,r.shadow)(this,"viewerPreferences",n)}get openAction(){const e=this.catDict.get("OpenAction");let t=null;if((0,i.isDict)(e)){const n=new i.Dict(this.xref);n.set("A",e);const r={url:null,dest:null,action:null};h.parseDestDictionary({destDict:n,resultObj:r}),Array.isArray(r.dest)?(t||(t=Object.create(null)),t.dest=r.dest):r.action&&(t||(t=Object.create(null)),t.action=r.action)}else Array.isArray(e)&&(t||(t=Object.create(null)),t.dest=e);return(0,r.shadow)(this,"openAction",t)}get attachments(){const e=this.catDict.get("Names");let t=null;if(e&&e.has("EmbeddedFiles")){const n=new p(e.getRaw("EmbeddedFiles"),this.xref).getAll();for(const e in n){const i=new g(n[e],this.xref);t||(t=Object.create(null)),t[(0,r.stringToPDFString)(e)]=i.serializable}}return(0,r.shadow)(this,"attachments",t)}get javaScript(){const e=this.catDict.get("Names");let t=null;function n(e){const n=e.get("S");if(!(0,i.isName)(n,"JavaScript"))return;let a=e.get("JS");if((0,i.isStream)(a))a=(0,r.bytesToString)(a.getBytes());else if(!(0,r.isString)(a))return;t||(t=[]),t.push((0,r.stringToPDFString)(a))}if(e&&e.has("JavaScript")){const t=new p(e.getRaw("JavaScript"),this.xref).getAll();for(const e in t){const r=t[e];(0,i.isDict)(r)&&n(r)}}const a=this.catDict.get("OpenAction");return(0,i.isDict)(a)&&(0,i.isName)(a.get("S"),"JavaScript")&&n(a),(0,r.shadow)(this,"javaScript",t)}fontFallback(e,t){const n=[];return this.fontCache.forEach(function(e){n.push(e)}),Promise.all(n).then(n=>{for(const r of n)if(r.loadedName===e)return void r.fallback(t)})}cleanup(e=!1){(0,i.clearPrimitiveCaches)(),this.globalImageCache.clear(e),this.pageKidsCountCache.clear();const t=[];return this.fontCache.forEach(function(e){t.push(e)}),Promise.all(t).then(e=>{for(const{dict:t}of e)delete t.translated;this.fontCache.clear(),this.builtInCMapCache.clear()})}getPageDict(e){const t=(0,r.createPromiseCapability)(),n=[this.catDict.getRaw("Pages")],a=new i.RefSet,o=this.xref,s=this.pageKidsCountCache;let l,c=0;return function u(){for(;n.length;){const h=n.pop();if((0,i.isRef)(h)){if((l=s.get(h))>0&&c+l<e){c+=l;continue}return a.has(h)?void t.reject(new r.FormatError("Pages tree contains circular reference.")):(a.put(h),void o.fetchAsync(h).then(function(r){(0,i.isDict)(r,"Page")||(0,i.isDict)(r)&&!r.has("Kids")?e===c?(h&&!s.has(h)&&s.put(h,1),t.resolve([r,h])):(c++,u()):(n.push(r),u())},t.reject))}if(!(0,i.isDict)(h))return void t.reject(new r.FormatError("Page dictionary kid reference points to wrong type of object."));if(l=h.get("Count"),Number.isInteger(l)&&l>=0){const t=h.objId;if(t&&!s.has(t)&&s.put(t,l),c+l<=e){c+=l;continue}}const d=h.get("Kids");if(!Array.isArray(d)){if((0,i.isName)(h.get("Type"),"Page")||!h.has("Type")&&h.has("Contents")){if(c===e)return void t.resolve([h,null]);c++;continue}return void t.reject(new r.FormatError("Page dictionary kids object is not an array."))}for(let e=d.length-1;e>=0;e--)n.push(d[e])}t.reject(new Error(`Page index ${e} not found.`))}(),t.promise}getPageIndex(e){const t=this.xref;let n=0;return function a(o){return function(n){let a,o=0;return t.fetchAsync(n).then(function(t){if((0,i.isRefsEqual)(n,e)&&!(0,i.isDict)(t,"Page")&&(!(0,i.isDict)(t)||t.has("Type")||!t.has("Contents")))throw new r.FormatError("The reference does not point to a /Page dictionary.");if(!t)return null;if(!(0,i.isDict)(t))throw new r.FormatError("Node must be a dictionary.");return a=t.getRaw("Parent"),t.getAsync("Parent")}).then(function(e){if(!e)return null;if(!(0,i.isDict)(e))throw new r.FormatError("Parent must be a dictionary.");return e.getAsync("Kids")}).then(function(e){if(!e)return null;const s=[];let l=!1;for(let a=0,c=e.length;a<c;a++){const c=e[a];if(!(0,i.isRef)(c))throw new r.FormatError("Kid must be a reference.");if((0,i.isRefsEqual)(c,n)){l=!0;break}s.push(t.fetchAsync(c).then(function(e){if(!(0,i.isDict)(e))throw new r.FormatError("Kid node must be a dictionary.");e.has("Count")?o+=e.get("Count"):o++}))}if(!l)throw new r.FormatError("Kid reference not found in parent's kids.");return Promise.all(s).then(function(){return[o,a]})})}(o).then(function(e){if(!e)return n;const[t,r]=e;return n+=t,a(r)})}(e)}static parseDestDictionary(e){const t=e.destDict;if(!(0,i.isDict)(t))return void(0,r.warn)("parseDestDictionary: `destDict` must be a dictionary.");const n=e.resultObj;if("object"!=typeof n)return void(0,r.warn)("parseDestDictionary: `resultObj` must be an object.");const a=e.docBaseUrl||null;let o,s,l=t.get("A");if(!(0,i.isDict)(l)&&t.has("Dest")&&(l=t.get("Dest")),(0,i.isDict)(l)){const e=l.get("S");if(!(0,i.isName)(e))return void(0,r.warn)("parseDestDictionary: Invalid type in Action dictionary.");const t=e.name;switch(t){case"URI":o=l.get("URI"),(0,i.isName)(o)?o="/"+o.name:(0,r.isString)(o)&&(o=function(e){return e.startsWith("www.")?`http://${e}`:e}(o));break;case"GoTo":s=l.get("D");break;case"Launch":case"GoToR":const e=l.get("F");(0,i.isDict)(e)?o=e.get("F")||null:(0,r.isString)(e)&&(o=e);let a=l.get("D");if(a&&((0,i.isName)(a)&&(a=a.name),(0,r.isString)(o))){const e=o.split("#")[0];(0,r.isString)(a)?o=e+"#"+a:Array.isArray(a)&&(o=e+"#"+JSON.stringify(a))}const c=l.get("NewWindow");(0,r.isBool)(c)&&(n.newWindow=c);break;case"Named":const u=l.get("N");(0,i.isName)(u)&&(n.action=u.name);break;case"JavaScript":const h=l.get("JS");let d;if((0,i.isStream)(h)?d=(0,r.bytesToString)(h.getBytes()):(0,r.isString)(h)&&(d=h),d){const e=new RegExp("^\\s*("+["app.launchURL","window.open"].join("|").split(".").join("\\.")+")\\((?:'|\")([^'\"]*)(?:'|\")(?:,\\s*(\\w+)\\)|\\))","i").exec((0,r.stringToPDFString)(d));if(e&&e[2]){o=e[2],"true"===e[3]&&"app.launchURL"===e[1]&&(n.newWindow=!0);break}}default:(0,r.warn)(`parseDestDictionary: unsupported action type "${t}".`)}}else t.has("Dest")&&(s=t.get("Dest"));if((0,r.isString)(o)){o=function(e){try{return(0,r.stringToUTF8String)(e)}catch(t){return e}}(o);const e=(0,r.createValidAbsoluteUrl)(o,a);e&&(n.url=e.href),n.unsafeUrl=o}s&&((0,i.isName)(s)&&(s=s.name),((0,r.isString)(s)||Array.isArray(s))&&(n.dest=s))}}t.Catalog=h;var d=function(){function e(e,t){this.stream=e,this.pdfManager=t,this.entries=[],this.xrefstms=Object.create(null),this._cacheMap=new Map,this.stats={streamTypes:Object.create(null),fontTypes:Object.create(null)}}return e.prototype={setStartXRef:function(e){this.startXRefQueue=[e]},parse:function(e){var t;let n,a;e?((0,r.warn)("Indexing all PDF objects"),t=this.indexObjects()):t=this.readXRef(),t.assignXref(this),this.trailer=t;try{n=t.get("Encrypt")}catch(e){if(e instanceof o.MissingDataException)throw e;(0,r.warn)(`XRef.parse - Invalid "Encrypt" reference: "${e}".`)}if((0,i.isDict)(n)){var l=t.get("ID"),c=l&&l.length?l[0]:"";n.suppressEncryption=!0,this.encrypt=new s.CipherTransformFactory(n,c,this.pdfManager.password)}try{a=t.get("Root")}catch(e){if(e instanceof o.MissingDataException)throw e;(0,r.warn)(`XRef.parse - Invalid "Root" reference: "${e}".`)}if(!(0,i.isDict)(a)||!a.has("Pages")){if(!e)throw new o.XRefParseException;throw new r.FormatError("Invalid root reference")}this.root=a},processXRefTable:function(e){"tableState"in this||(this.tableState={entryNum:0,streamPos:e.lexer.stream.pos,parserBuf1:e.buf1,parserBuf2:e.buf2});var t=this.readXRefTable(e);if(!(0,i.isCmd)(t,"trailer"))throw new r.FormatError("Invalid XRef table: could not find trailer dictionary");var n=e.getObj();if(!(0,i.isDict)(n)&&n.dict&&(n=n.dict),!(0,i.isDict)(n))throw new r.FormatError("Invalid XRef table: could not parse trailer dictionary");return delete this.tableState,n},readXRefTable:function(e){var t,n=e.lexer.stream,a=this.tableState;for(n.pos=a.streamPos,e.buf1=a.parserBuf1,e.buf2=a.parserBuf2;;){if(!("firstEntryNum"in a&&"entryCount"in a)){if((0,i.isCmd)(t=e.getObj(),"trailer"))break;a.firstEntryNum=t,a.entryCount=e.getObj()}var o=a.firstEntryNum,s=a.entryCount;if(!Number.isInteger(o)||!Number.isInteger(s))throw new r.FormatError("Invalid XRef table: wrong types in subsection header");for(var l=a.entryNum;l<s;l++){a.streamPos=n.pos,a.entryNum=l,a.parserBuf1=e.buf1,a.parserBuf2=e.buf2;var c={};c.offset=e.getObj(),c.gen=e.getObj();var u=e.getObj();if(u instanceof i.Cmd)switch(u.cmd){case"f":c.free=!0;break;case"n":c.uncompressed=!0}if(!Number.isInteger(c.offset)||!Number.isInteger(c.gen)||!c.free&&!c.uncompressed)throw new r.FormatError(`Invalid entry in XRef subsection: ${o}, ${s}`);0===l&&c.free&&1===o&&(o=0),this.entries[l+o]||(this.entries[l+o]=c)}a.entryNum=0,a.streamPos=n.pos,a.parserBuf1=e.buf1,a.parserBuf2=e.buf2,delete a.firstEntryNum,delete a.entryCount}if(this.entries[0]&&!this.entries[0].free)throw new r.FormatError("Invalid XRef table: unexpected first object");return t},processXRefStream:function(e){if(!("streamState"in this)){var t=e.dict,n=t.get("W"),r=t.get("Index");r||(r=[0,t.get("Size")]),this.streamState={entryRanges:r,byteWidths:n,entryNum:0,streamPos:e.pos}}return this.readXRefStream(e),delete this.streamState,e.dict},readXRefStream:function(e){var t,n,i=this.streamState;e.pos=i.streamPos;for(var a=i.byteWidths,o=a[0],s=a[1],l=a[2],c=i.entryRanges;c.length>0;){var u=c[0],h=c[1];if(!Number.isInteger(u)||!Number.isInteger(h))throw new r.FormatError(`Invalid XRef range fields: ${u}, ${h}`);if(!Number.isInteger(o)||!Number.isInteger(s)||!Number.isInteger(l))throw new r.FormatError(`Invalid XRef entry fields length: ${u}, ${h}`);for(t=i.entryNum;t<h;++t){i.entryNum=t,i.streamPos=e.pos;var d=0,f=0,p=0;for(n=0;n<o;++n)d=d<<8|e.getByte();for(0===o&&(d=1),n=0;n<s;++n)f=f<<8|e.getByte();for(n=0;n<l;++n)p=p<<8|e.getByte();var A={};switch(A.offset=f,A.gen=p,d){case 0:A.free=!0;break;case 1:A.uncompressed=!0;break;case 2:break;default:throw new r.FormatError(`Invalid XRef entry type: ${d}`)}this.entries[u+t]||(this.entries[u+t]=A)}i.entryNum=0,i.streamPos=e.pos,c.splice(0,2)}},indexObjects:function(){var e=10,t=13,n=60;function s(r,i){for(var a="",o=r[i];o!==e&&o!==t&&o!==n&&!(++i>=r.length);)a+=String.fromCharCode(o),o=r[i];return a}function l(e,t,n){for(var r=n.length,i=e.length,a=0;t<i;){for(var o=0;o<r&&e[t+o]===n[o];)++o;if(o>=r)break;t++,a++}return a}var c=/^(\d+)\s+(\d+)\s+obj\b/;const u=/\bendobj[\b\s]$/,h=/\s+(\d+\s+\d+\s+obj[\b\s<])$/;var d=new Uint8Array([116,114,97,105,108,101,114]),f=new Uint8Array([115,116,97,114,116,120,114,101,102]);const p=new Uint8Array([111,98,106]);var A=new Uint8Array([47,88,82,101,102]);this.entries.length=0;var g=this.stream;g.pos=0;for(var m,v,y=g.getBytes(),b=g.start,w=y.length,x=[],_=[];b<w;){var C=y[b];if(9!==C&&C!==e&&C!==t&&32!==C)if(37!==C){var S,k=s(y,b);if(k.startsWith("xref")&&(4===k.length||/\s/.test(k[4])))b+=l(y,b,d),x.push(b),b+=l(y,b,f);else if(S=c.exec(k)){const e=0|S[1],t=0|S[2];this.entries[e]&&this.entries[e].gen!==t||(this.entries[e]={offset:b-g.start,gen:t,uncompressed:!0});let n,i=b+k.length;for(;i<y.length;){const e=i+l(y,i,p)+4;n=e-b;const t=Math.max(e-25,i),a=(0,r.bytesToString)(y.subarray(t,e));if(u.test(a))break;{const e=h.exec(a);if(e&&e[1]){(0,r.warn)('indexObjects: Found new "obj" inside of another "obj", caused by missing "endobj" -- trying to recover.'),n-=e[1].length;break}}i=e}const a=y.subarray(b,b+n);var B=l(a,0,A);B<n&&a[B+5]<64&&(_.push(b-g.start),this.xrefstms[b-g.start]=1),b+=n}else k.startsWith("trailer")&&(7===k.length||/\s/.test(k[7]))?(x.push(b),b+=l(y,b,f)):b+=k.length+1}else do{if(++b>=w)break;C=y[b]}while(C!==e&&C!==t);else++b}for(m=0,v=_.length;m<v;++m)this.startXRefQueue.push(_[m]),this.readXRef(!0);let E;for(m=0,v=x.length;m<v;++m){g.pos=x[m];const e=new a.Parser({lexer:new a.Lexer(g),xref:this,allowStreams:!0,recoveryMode:!0});var T=e.getObj();if(!(0,i.isCmd)(T,"trailer"))continue;const t=e.getObj();if(!(0,i.isDict)(t))continue;let n;try{n=t.get("Root")}catch(e){if(e instanceof o.MissingDataException)throw e;continue}if((0,i.isDict)(n)&&n.has("Pages")){if(t.has("ID"))return t;E=t}}if(E)return E;throw new r.InvalidPDFException("Invalid PDF structure.")},readXRef:function(e){var t=this.stream;const n=Object.create(null);try{for(;this.startXRefQueue.length;){var s=this.startXRefQueue[0];if(n[s]){(0,r.warn)("readXRef - skipping XRef table since it was already parsed."),this.startXRefQueue.shift();continue}n[s]=!0,t.pos=s+t.start;const e=new a.Parser({lexer:new a.Lexer(t),xref:this,allowStreams:!0});var l,c=e.getObj();if((0,i.isCmd)(c,"xref")){if(l=this.processXRefTable(e),this.topDict||(this.topDict=l),c=l.get("XRefStm"),Number.isInteger(c)){var u=c;u in this.xrefstms||(this.xrefstms[u]=1,this.startXRefQueue.push(u))}}else{if(!Number.isInteger(c))throw new r.FormatError("Invalid XRef stream header");if(!Number.isInteger(e.getObj())||!(0,i.isCmd)(e.getObj(),"obj")||!(0,i.isStream)(c=e.getObj()))throw new r.FormatError("Invalid XRef stream");if(l=this.processXRefStream(c),this.topDict||(this.topDict=l),!l)throw new r.FormatError("Failed to read XRef stream")}c=l.get("Prev"),Number.isInteger(c)?this.startXRefQueue.push(c):(0,i.isRef)(c)&&this.startXRefQueue.push(c.num),this.startXRefQueue.shift()}return this.topDict}catch(e){if(e instanceof o.MissingDataException)throw e;(0,r.info)("(while reading XRef): "+e)}if(!e)throw new o.XRefParseException},getEntry:function(e){var t=this.entries[e];return t&&!t.free&&t.offset?t:null},fetchIfRef:function(e,t){return e instanceof i.Ref?this.fetch(e,t):e},fetch:function(e,t){if(!(e instanceof i.Ref))throw new Error("ref object is not a reference");const n=e.num,r=this._cacheMap.get(n);if(void 0!==r)return r instanceof i.Dict&&!r.objId&&(r.objId=e.toString()),r;let a=this.getEntry(n);return null===a?(this._cacheMap.set(n,a),a):(a=a.uncompressed?this.fetchUncompressed(e,a,t):this.fetchCompressed(e,a,t),(0,i.isDict)(a)?a.objId=e.toString():(0,i.isStream)(a)&&(a.dict.objId=e.toString()),a)},fetchUncompressed(e,t,n=!1){var r=e.gen,s=e.num;if(t.gen!==r)throw new o.XRefEntryException(`Inconsistent generation in XRef: ${e}`);var l=this.stream.makeSubStream(t.offset+this.stream.start);const c=new a.Parser({lexer:new a.Lexer(l),xref:this,allowStreams:!0});var u=c.getObj(),h=c.getObj(),d=c.getObj();if(u!==s||h!==r||!(d instanceof i.Cmd))throw new o.XRefEntryException(`Bad (uncompressed) XRef entry: ${e}`);if("obj"!==d.cmd){if(d.cmd.startsWith("obj")&&(s=parseInt(d.cmd.substring(3),10),!Number.isNaN(s)))return s;throw new o.XRefEntryException(`Bad (uncompressed) XRef entry: ${e}`)}return t=this.encrypt&&!n?c.getObj(this.encrypt.createCipherTransform(s,r)):c.getObj(),(0,i.isStream)(t)||this._cacheMap.set(s,t),t},fetchCompressed(e,t,n=!1){const s=t.offset,l=this.fetch(i.Ref.get(s,0));if(!(0,i.isStream)(l))throw new r.FormatError("bad ObjStm stream");const c=l.dict.get("First"),u=l.dict.get("N");if(!Number.isInteger(c)||!Number.isInteger(u))throw new r.FormatError("invalid first and n parameters for ObjStm stream");const h=new a.Parser({lexer:new a.Lexer(l),xref:this,allowStreams:!0}),d=new Array(u);for(let e=0;e<u;++e){const t=h.getObj();if(!Number.isInteger(t))throw new r.FormatError(`invalid object number in the ObjStm stream: ${t}`);const n=h.getObj();if(!Number.isInteger(n))throw new r.FormatError(`invalid object offset in the ObjStm stream: ${n}`);d[e]=t}const f=new Array(u);for(let e=0;e<u;++e){const t=h.getObj();if(f[e]=t,h.buf1 instanceof i.Cmd&&"endobj"===h.buf1.cmd&&h.shift(),(0,i.isStream)(t))continue;const n=d[e],r=this.entries[n];r&&r.offset===s&&r.gen===e&&this._cacheMap.set(n,t)}if(void 0===(t=f[t.gen]))throw new o.XRefEntryException(`Bad (compressed) XRef entry: ${e}`);return t},async fetchIfRefAsync(e,t){return e instanceof i.Ref?this.fetchAsync(e,t):e},async fetchAsync(e,t){try{return this.fetch(e,t)}catch(n){if(!(n instanceof o.MissingDataException))throw n;return await this.pdfManager.requestRange(n.begin,n.end),this.fetchAsync(e,t)}},getCatalogObj:function(){return this.root}},e}();t.XRef=d;class f{constructor(e,t,n){this.constructor===f&&(0,r.unreachable)("Cannot initialize NameOrNumberTree."),this.root=e,this.xref=t,this._type=n}getAll(){const e=Object.create(null);if(!this.root)return e;const t=this.xref,n=new i.RefSet;n.put(this.root);const a=[this.root];for(;a.length>0;){const o=t.fetchIfRef(a.shift());if(!(0,i.isDict)(o))continue;if(o.has("Kids")){const e=o.get("Kids");for(let t=0,i=e.length;t<i;t++){const i=e[t];if(n.has(i))throw new r.FormatError(`Duplicate entry in "${this._type}" tree.`);a.push(i),n.put(i)}continue}const s=o.get(this._type);if(Array.isArray(s))for(let n=0,r=s.length;n<r;n+=2)e[t.fetchIfRef(s[n])]=t.fetchIfRef(s[n+1])}return e}get(e){if(!this.root)return null;const t=this.xref;let n=t.fetchIfRef(this.root),i=0;for(;n.has("Kids");){if(++i>10)return(0,r.warn)(`Search depth limit reached for "${this._type}" tree.`),null;const a=n.get("Kids");if(!Array.isArray(a))return null;let o=0,s=a.length-1;for(;o<=s;){const r=o+s>>1,i=t.fetchIfRef(a[r]).get("Limits");if(e<t.fetchIfRef(i[0]))s=r-1;else{if(!(e>t.fetchIfRef(i[1]))){n=t.fetchIfRef(a[r]);break}o=r+1}}if(o>s)return null}const a=n.get(this._type);if(Array.isArray(a)){let n=0,i=a.length-2;for(;n<=i;){const r=n+i>>1,o=r+(1&r),s=t.fetchIfRef(a[o]);if(e<s)i=o-2;else{if(!(e>s))return t.fetchIfRef(a[o+1]);n=o+2}}(0,r.info)(`Falling back to an exhaustive search, for key "${e}", `+`in "${this._type}" tree.`);for(let n=0,i=a.length;n<i;n+=2){if(t.fetchIfRef(a[n])===e)return(0,r.warn)(`The "${e}" key was found at an incorrect, `+`i.e. out-of-order, position in "${this._type}" tree.`),t.fetchIfRef(a[n+1])}}return null}}class p extends f{constructor(e,t){super(e,t,"Names")}}class A extends f{constructor(e,t){super(e,t,"Nums")}}var g=function(){function e(e,t){e&&(0,i.isDict)(e)&&(this.xref=t,this.root=e,e.has("FS")&&(this.fs=e.get("FS")),this.description=e.has("Desc")?(0,r.stringToPDFString)(e.get("Desc")):"",e.has("RF")&&(0,r.warn)("Related file specifications are not supported"),this.contentAvailable=!0,e.has("EF")||(this.contentAvailable=!1,(0,r.warn)("Non-embedded file specifications are not supported")))}function t(e){return e.has("UF")?e.get("UF"):e.has("F")?e.get("F"):e.has("Unix")?e.get("Unix"):e.has("Mac")?e.get("Mac"):e.has("DOS")?e.get("DOS"):null}return e.prototype={get filename(){if(!this._filename&&this.root){var e=t(this.root)||"unnamed";this._filename=(0,r.stringToPDFString)(e).replace(/\\\\/g,"\\").replace(/\\\//g,"/").replace(/\\/g,"/")}return this._filename},get content(){if(!this.contentAvailable)return null;!this.contentRef&&this.root&&(this.contentRef=t(this.root.get("EF")));var e=null;if(this.contentRef){var n=this.xref.fetchIfRef(this.contentRef);n&&(0,i.isStream)(n)?e=n.getBytes():(0,r.warn)("Embedded file specification points to non-existing/invalid content")}else(0,r.warn)("Embedded file specification does not have a content");return e},get serializable(){return{filename:this.filename,content:this.content}}},e}();t.FileSpec=g;const m=function(){function e(e){return e instanceof i.Ref||e instanceof i.Dict||Array.isArray(e)||(0,i.isStream)(e)}function t(t,n){if(t instanceof i.Dict||(0,i.isStream)(t)){const r=t instanceof i.Dict?t:t.dict,a=r.getKeys();for(let t=0,i=a.length;t<i;t++){const i=r.getRaw(a[t]);e(i)&&n.push(i)}}else if(Array.isArray(t))for(let r=0,i=t.length;r<i;r++){const i=t[r];e(i)&&n.push(i)}}function n(e,t,n){this.dict=e,this.keys=t,this.xref=n,this.refSet=null}return n.prototype={async load(){if(!this.xref.stream.allChunksLoaded||this.xref.stream.allChunksLoaded())return;const{keys:e,dict:t}=this;this.refSet=new i.RefSet;const n=[];for(let r=0,i=e.length;r<i;r++){const i=t.getRaw(e[r]);void 0!==i&&n.push(i)}return this._walk(n)},async _walk(e){const n=[],r=[];for(;e.length;){let a=e.pop();if(a instanceof i.Ref){if(this.refSet.has(a))continue;try{this.refSet.put(a),a=this.xref.fetch(a)}catch(e){if(!(e instanceof o.MissingDataException))throw e;n.push(a),r.push({begin:e.begin,end:e.end})}}if(a&&a.getBaseStreams){const e=a.getBaseStreams();let t=!1;for(let n=0,i=e.length;n<i;n++){const i=e[n];i.allChunksLoaded&&!i.allChunksLoaded()&&(t=!0,r.push({begin:i.start,end:i.end}))}t&&n.push(a)}t(a,e)}if(r.length){await this.xref.stream.manager.requestRanges(r);for(let e=0,t=n.length;e<t;e++){const t=n[e];t instanceof i.Ref&&this.refSet.remove(t)}return this._walk(n)}this.refSet=null}},n}();t.ObjectLoader=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Parser=t.Linearization=t.Lexer=void 0;var r=n(12),i=n(2),a=n(5),o=n(8),s=n(13),l=n(15),c=n(18),u=n(20);const h=1e3,d=5552;function f(e){const t=e.length;let n=1,r=0;for(let i=0;i<t;++i)r+=n+=255&e[i];return r%65521<<16|n%65521}class p{constructor({lexer:e,xref:t,allowStreams:n=!1,recoveryMode:r=!1}){this.lexer=e,this.xref=t,this.allowStreams=n,this.recoveryMode=r,this.imageCache=Object.create(null),this.refill()}refill(){this.buf1=this.lexer.getObj(),this.buf2=this.lexer.getObj()}shift(){this.buf2 instanceof a.Cmd&&"ID"===this.buf2.cmd?(this.buf1=this.buf2,this.buf2=null):(this.buf1=this.buf2,this.buf2=this.lexer.getObj())}tryShift(){try{return this.shift(),!0}catch(e){if(e instanceof o.MissingDataException)throw e;return!1}}getObj(e=null){const t=this.buf1;if(this.shift(),t instanceof a.Cmd)switch(t.cmd){case"BI":return this.makeInlineImage(e);case"[":const n=[];for(;!(0,a.isCmd)(this.buf1,"]")&&!(0,a.isEOF)(this.buf1);)n.push(this.getObj(e));if((0,a.isEOF)(this.buf1)){if(!this.recoveryMode)throw new i.FormatError("End of file inside array");return n}return this.shift(),n;case"<<":const r=new a.Dict(this.xref);for(;!(0,a.isCmd)(this.buf1,">>")&&!(0,a.isEOF)(this.buf1);){if(!(0,a.isName)(this.buf1)){(0,i.info)("Malformed dictionary: key must be a name object"),this.shift();continue}const t=this.buf1.name;if(this.shift(),(0,a.isEOF)(this.buf1))break;r.set(t,this.getObj(e))}if((0,a.isEOF)(this.buf1)){if(!this.recoveryMode)throw new i.FormatError("End of file inside dictionary");return r}return(0,a.isCmd)(this.buf2,"stream")?this.allowStreams?this.makeStream(r,e):r:(this.shift(),r);default:return t}if(Number.isInteger(t)){if(Number.isInteger(this.buf1)&&(0,a.isCmd)(this.buf2,"R")){const e=a.Ref.get(t,this.buf1);return this.shift(),this.shift(),e}return t}return"string"==typeof t&&e?e.decryptString(t):t}findDefaultInlineStreamEnd(e){const t=e.pos;let n,r,a=0;for(;-1!==(n=e.getByte());)if(0===a)a=69===n?1:0;else if(1===a)a=73===n?2:0;else if((0,i.assert)(2===a,"findDefaultInlineStreamEnd - invalid state."),32===n||10===n||13===n){r=e.pos;const t=e.peekBytes(10);for(let e=0,r=t.length;e<r;e++)if((0!==(n=t[e])||0===t[e+1])&&10!==n&&13!==n&&(n<32||n>127)){a=0;break}if(2===a)break}else a=0;-1===n&&((0,i.warn)("findDefaultInlineStreamEnd: Reached the end of the stream without finding a valid EI marker"),r&&((0,i.warn)('... trying to recover by using the last "EI" occurrence.'),e.skip(-(e.pos-r))));let s=4;return e.skip(-s),n=e.peekByte(),e.skip(s),(0,o.isWhiteSpace)(n)||s--,e.pos-s-t}findDCTDecodeInlineStreamEnd(e){const t=e.pos;let n,r,a=!1;for(;-1!==(n=e.getByte());)if(255===n){switch(e.getByte()){case 0:break;case 255:e.skip(-1);break;case 217:a=!0;break;case 192:case 193:case 194:case 195:case 197:case 198:case 199:case 201:case 202:case 203:case 205:case 206:case 207:case 196:case 204:case 218:case 219:case 220:case 221:case 222:case 223:case 224:case 225:case 226:case 227:case 228:case 229:case 230:case 231:case 232:case 233:case 234:case 235:case 236:case 237:case 238:case 239:case 254:(r=e.getUint16())>2?e.skip(r-2):e.skip(-2)}if(a)break}const o=e.pos-t;return-1===n?((0,i.warn)("Inline DCTDecode image stream: EOI marker not found, searching for /EI/ instead."),e.skip(-o),this.findDefaultInlineStreamEnd(e)):(this.inlineStreamSkipEI(e),o)}findASCII85DecodeInlineStreamEnd(e){const t=e.pos;let n;for(;-1!==(n=e.getByte());)if(126===n){const t=e.pos;for(n=e.peekByte();(0,o.isWhiteSpace)(n);)e.skip(),n=e.peekByte();if(62===n){e.skip();break}if(e.pos>t){const t=e.peekBytes(2);if(69===t[0]&&73===t[1])break}}const r=e.pos-t;return-1===n?((0,i.warn)("Inline ASCII85Decode image stream: EOD marker not found, searching for /EI/ instead."),e.skip(-r),this.findDefaultInlineStreamEnd(e)):(this.inlineStreamSkipEI(e),r)}findASCIIHexDecodeInlineStreamEnd(e){const t=e.pos;let n;for(;-1!==(n=e.getByte())&&62!==n;);const r=e.pos-t;return-1===n?((0,i.warn)("Inline ASCIIHexDecode image stream: EOD marker not found, searching for /EI/ instead."),e.skip(-r),this.findDefaultInlineStreamEnd(e)):(this.inlineStreamSkipEI(e),r)}inlineStreamSkipEI(e){let t,n=0;for(;-1!==(t=e.getByte());)if(0===n)n=69===t?1:0;else if(1===n)n=73===t?2:0;else if(2===n)break}makeInlineImage(e){const t=this.lexer,n=t.stream,r=new a.Dict(this.xref);let o;for(;!(0,a.isCmd)(this.buf1,"ID")&&!(0,a.isEOF)(this.buf1);){if(!(0,a.isName)(this.buf1))throw new i.FormatError("Dictionary key must be a name object");const t=this.buf1.name;if(this.shift(),(0,a.isEOF)(this.buf1))break;r.set(t,this.getObj(e))}-1!==t.beginInlineImagePos&&(o=n.pos-t.beginInlineImagePos);const s=r.get("Filter","F");let l;if((0,a.isName)(s))l=s.name;else if(Array.isArray(s)){const e=this.xref.fetchIfRef(s[0]);(0,a.isName)(e)&&(l=e.name)}const c=n.pos;let u;u="DCTDecode"===l||"DCT"===l?this.findDCTDecodeInlineStreamEnd(n):"ASCII85Decode"===l||"A85"===l?this.findASCII85DecodeInlineStreamEnd(n):"ASCIIHexDecode"===l||"AHx"===l?this.findASCIIHexDecodeInlineStreamEnd(n):this.findDefaultInlineStreamEnd(n);let p,A=n.makeSubStream(c,u,r);if(u<h&&o<d){const e=A.getBytes();A.reset();const r=n.pos;n.pos=t.beginInlineImagePos;const i=n.getBytes(o);n.pos=r,p=f(e)+"_"+f(i);const s=this.imageCache[p];if(void 0!==s)return this.buf2=a.Cmd.get("EI"),this.shift(),s.reset(),s}return e&&(A=e.createStream(A,u)),(A=this.filter(A,r,u)).dict=r,void 0!==p&&(A.cacheKey=`inline_${u}_${p}`,this.imageCache[p]=A),this.buf2=a.Cmd.get("EI"),this.shift(),A}_findStreamLength(e,t){const{stream:n}=this.lexer;n.pos=e;const r=t.length;for(;n.pos<n.end;){const i=n.peekBytes(2048),a=i.length-r;if(a<=0)break;let o=0;for(;o<a;){let a=0;for(;a<r&&i[o+a]===t[a];)a++;if(a>=r)return n.pos+=o,n.pos-e;o++}n.pos+=a}return-1}makeStream(e,t){const n=this.lexer;let r=n.stream;n.skipToNextLine();const s=r.pos-1;let l=e.get("Length");if(Number.isInteger(l)||((0,i.info)(`Bad length "${l}" in stream`),l=0),r.pos=s+l,n.nextChar(),this.tryShift()&&(0,a.isCmd)(this.buf2,"endstream"))this.shift();else{const e=new Uint8Array([101,110,100,115,116,114,101,97,109]);let t=this._findStreamLength(s,e);if(t<0){const n=1;for(let a=1;a<=n;a++){const n=e.length-a,l=e.slice(0,n),c=this._findStreamLength(s,l);if(c>=0){const e=r.peekBytes(n+1)[n];if(!(0,o.isWhiteSpace)(e))break;(0,i.info)(`Found "${(0,i.bytesToString)(l)}" when `+"searching for endstream command."),t=c;break}}if(t<0)throw new i.FormatError("Missing endstream command.")}l=t,n.nextChar(),this.shift(),this.shift()}return this.shift(),r=r.makeSubStream(s,l,e),t&&(r=t.createStream(r,l)),(r=this.filter(r,e,l)).dict=e,r}filter(e,t,n){let r=t.get("Filter","F"),o=t.get("DecodeParms","DP");if((0,a.isName)(r))return Array.isArray(o)&&(0,i.warn)("/DecodeParms should not contain an Array, when /Filter contains a Name."),this.makeFilter(e,r.name,n,o);let s=n;if(Array.isArray(r)){const t=r,n=o;for(let l=0,c=t.length;l<c;++l){if(r=this.xref.fetchIfRef(t[l]),!(0,a.isName)(r))throw new i.FormatError(`Bad filter name "${r}"`);o=null,Array.isArray(n)&&l in n&&(o=this.xref.fetchIfRef(n[l])),e=this.makeFilter(e,r.name,s,o),s=null}}return e}makeFilter(e,t,n,a){if(0===n)return(0,i.warn)(`Empty "${t}" stream.`),new r.NullStream;try{const h=this.xref.stats.streamTypes;if("FlateDecode"===t||"Fl"===t)return h[i.StreamType.FLATE]=!0,a?new r.PredictorStream(new r.FlateStream(e,n),n,a):new r.FlateStream(e,n);if("LZWDecode"===t||"LZW"===t){h[i.StreamType.LZW]=!0;let t=1;return a?(a.has("EarlyChange")&&(t=a.get("EarlyChange")),new r.PredictorStream(new r.LZWStream(e,n,t),n,a)):new r.LZWStream(e,n,t)}return"DCTDecode"===t||"DCT"===t?(h[i.StreamType.DCT]=!0,new c.JpegStream(e,n,e.dict,a)):"JPXDecode"===t||"JPX"===t?(h[i.StreamType.JPX]=!0,new u.JpxStream(e,n,e.dict,a)):"ASCII85Decode"===t||"A85"===t?(h[i.StreamType.A85]=!0,new r.Ascii85Stream(e,n)):"ASCIIHexDecode"===t||"AHx"===t?(h[i.StreamType.AHX]=!0,new r.AsciiHexStream(e,n)):"CCITTFaxDecode"===t||"CCF"===t?(h[i.StreamType.CCF]=!0,new s.CCITTFaxStream(e,n,a)):"RunLengthDecode"===t||"RL"===t?(h[i.StreamType.RLX]=!0,new r.RunLengthStream(e,n)):"JBIG2Decode"===t?(h[i.StreamType.JBIG]=!0,new l.Jbig2Stream(e,n,e.dict,a)):((0,i.warn)(`Filter "${t}" is not supported.`),e)}catch(e){if(e instanceof o.MissingDataException)throw e;return(0,i.warn)(`Invalid stream: "${e}"`),new r.NullStream}}}t.Parser=p;const A=[1,0,0,0,0,0,0,0,0,1,1,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,2,0,0,2,2,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,2,0,2,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,2,0,2,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,2,0,2,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,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];function g(e){return e>=48&&e<=57?15&e:e>=65&&e<=70||e>=97&&e<=102?9+(15&e):-1}class m{constructor(e,t=null){this.stream=e,this.nextChar(),this.strBuf=[],this.knownCommands=t,this._hexStringNumWarn=0,this.beginInlineImagePos=-1}nextChar(){return this.currentChar=this.stream.getByte()}peekChar(){return this.stream.peekByte()}getNumber(){let e=this.currentChar,t=!1,n=0,r=0;if(45===e?(r=-1,45===(e=this.nextChar())&&(e=this.nextChar())):43===e&&(r=1,e=this.nextChar()),10===e||13===e)do{e=this.nextChar()}while(10===e||13===e);if(46===e&&(n=10,e=this.nextChar()),e<48||e>57){if(10===n&&0===r&&((0,o.isWhiteSpace)(e)||-1===e))return(0,i.warn)("Lexer.getNumber - treating a single decimal point as zero."),0;throw new i.FormatError(`Invalid number: ${String.fromCharCode(e)} (charCode ${e})`)}r=r||1;let a=e-48,s=0,l=1;for(;(e=this.nextChar())>=0;)if(e>=48&&e<=57){const r=e-48;t?s=10*s+r:(0!==n&&(n*=10),a=10*a+r)}else if(46===e){if(0!==n)break;n=1}else if(45===e)(0,i.warn)("Badly formatted number: minus sign in the middle");else{if(69!==e&&101!==e)break;if(43===(e=this.peekChar())||45===e)l=45===e?-1:1,this.nextChar();else if(e<48||e>57)break;t=!0}return 0!==n&&(a/=n),t&&(a*=10**(l*s)),r*a}getString(){let e=1,t=!1;const n=this.strBuf;n.length=0;let r=this.nextChar();for(;;){let a=!1;switch(0|r){case-1:(0,i.warn)("Unterminated string"),t=!0;break;case 40:++e,n.push("(");break;case 41:0==--e?(this.nextChar(),t=!0):n.push(")");break;case 92:switch(r=this.nextChar()){case-1:(0,i.warn)("Unterminated string"),t=!0;break;case 110:n.push("\n");break;case 114:n.push("\r");break;case 116:n.push("\t");break;case 98:n.push("\b");break;case 102:n.push("\f");break;case 92:case 40:case 41:n.push(String.fromCharCode(r));break;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:let e=15&r;r=this.nextChar(),a=!0,r>=48&&r<=55&&(e=(e<<3)+(15&r),(r=this.nextChar())>=48&&r<=55&&(a=!1,e=(e<<3)+(15&r))),n.push(String.fromCharCode(e));break;case 13:10===this.peekChar()&&this.nextChar();break;case 10:break;default:n.push(String.fromCharCode(r))}break;default:n.push(String.fromCharCode(r))}if(t)break;a||(r=this.nextChar())}return n.join("")}getName(){let e,t;const n=this.strBuf;for(n.length=0;(e=this.nextChar())>=0&&!A[e];)if(35===e){if(e=this.nextChar(),A[e]){(0,i.warn)("Lexer_getName: NUMBER SIGN (#) should be followed by a hexadecimal number."),n.push("#");break}const r=g(e);if(-1!==r){t=e;const a=g(e=this.nextChar());if(-1===a){if((0,i.warn)(`Lexer_getName: Illegal digit (${String.fromCharCode(e)}) `+"in hexadecimal number."),n.push("#",String.fromCharCode(t)),A[e])break;n.push(String.fromCharCode(e));continue}n.push(String.fromCharCode(r<<4|a))}else n.push("#",String.fromCharCode(e))}else n.push(String.fromCharCode(e));return n.length>127&&(0,i.warn)(`Name token is longer than allowed by the spec: ${n.length}`),a.Name.get(n.join(""))}_hexStringWarn(e){5!=this._hexStringNumWarn++?this._hexStringNumWarn>5||(0,i.warn)(`getHexString - ignoring invalid character: ${e}`):(0,i.warn)("getHexString - ignoring additional invalid characters.")}getHexString(){const e=this.strBuf;e.length=0;let t,n,r=this.currentChar,a=!0;for(this._hexStringNumWarn=0;;){if(r<0){(0,i.warn)("Unterminated hex string");break}if(62===r){this.nextChar();break}if(1!==A[r]){if(a){if(-1===(t=g(r))){this._hexStringWarn(r),r=this.nextChar();continue}}else{if(-1===(n=g(r))){this._hexStringWarn(r),r=this.nextChar();continue}e.push(String.fromCharCode(t<<4|n))}a=!a,r=this.nextChar()}else r=this.nextChar()}return e.join("")}getObj(){let e=!1,t=this.currentChar;for(;;){if(t<0)return a.EOF;if(e)10!==t&&13!==t||(e=!1);else if(37===t)e=!0;else if(1!==A[t])break;t=this.nextChar()}switch(0|t){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 43:case 45:case 46:return this.getNumber();case 40:return this.getString();case 47:return this.getName();case 91:return this.nextChar(),a.Cmd.get("[");case 93:return this.nextChar(),a.Cmd.get("]");case 60:return 60===(t=this.nextChar())?(this.nextChar(),a.Cmd.get("<<")):this.getHexString();case 62:return 62===(t=this.nextChar())?(this.nextChar(),a.Cmd.get(">>")):a.Cmd.get(">");case 123:return this.nextChar(),a.Cmd.get("{");case 125:return this.nextChar(),a.Cmd.get("}");case 41:throw this.nextChar(),new i.FormatError(`Illegal character: ${t}`)}let n=String.fromCharCode(t);const r=this.knownCommands;let o=r&&void 0!==r[n];for(;(t=this.nextChar())>=0&&!A[t];){const e=n+String.fromCharCode(t);if(o&&void 0===r[e])break;if(128===n.length)throw new i.FormatError(`Command token too long: ${n.length}`);n=e,o=r&&void 0!==r[n]}return"true"===n||"false"!==n&&("null"===n?null:("BI"===n&&(this.beginInlineImagePos=this.stream.pos),a.Cmd.get(n)))}skipToNextLine(){let e=this.currentChar;for(;e>=0;){if(13===e){10===(e=this.nextChar())&&this.nextChar();break}if(10===e){this.nextChar();break}e=this.nextChar()}}}t.Lexer=m;t.Linearization=class{static create(e){function t(e,t,n=!1){const r=e.get(t);if(Number.isInteger(r)&&(n?r>=0:r>0))return r;throw new Error(`The "${t}" parameter in the linearization `+"dictionary is invalid.")}const n=new p({lexer:new m(e),xref:null}),r=n.getObj(),o=n.getObj(),s=n.getObj(),l=n.getObj();let c,u;if(!(Number.isInteger(r)&&Number.isInteger(o)&&(0,a.isCmd)(s,"obj")&&(0,a.isDict)(l)&&(0,i.isNum)(c=l.get("Linearized"))&&c>0))return null;if((u=t(l,"L"))!==e.length)throw new Error('The "L" parameter in the linearization dictionary does not equal the stream length.');return{length:u,hints:function(e){const t=e.get("H");let n;if(Array.isArray(t)&&(2===(n=t.length)||4===n)){for(let e=0;e<n;e++){const n=t[e];if(!(Number.isInteger(n)&&n>0))throw new Error(`Hint (${e}) in the linearization dictionary is invalid.`)}return t}throw new Error("Hint array in the linearization dictionary is invalid.")}(l),objectNumberFirst:t(l,"O"),endFirst:t(l,"E"),numPages:t(l,"N"),mainXRefEntriesOffset:t(l,"T"),pageFirst:l.has("P")?t(l,"P",!0):0}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LZWStream=t.StringStream=t.StreamsSequenceStream=t.Stream=t.RunLengthStream=t.PredictorStream=t.NullStream=t.FlateStream=t.DecodeStream=t.DecryptStream=t.AsciiHexStream=t.Ascii85Stream=void 0;var r=n(2),i=n(5),a=n(8),o=function(){function e(e,t,n,r){this.bytes=e instanceof Uint8Array?e:new Uint8Array(e),this.start=t||0,this.pos=this.start,this.end=t+n||this.bytes.length,this.dict=r}return e.prototype={get length(){return this.end-this.start},get isEmpty(){return 0===this.length},getByte:function(){return this.pos>=this.end?-1:this.bytes[this.pos++]},getUint16:function(){var e=this.getByte(),t=this.getByte();return-1===e||-1===t?-1:(e<<8)+t},getInt32:function(){return(this.getByte()<<24)+(this.getByte()<<16)+(this.getByte()<<8)+this.getByte()},getBytes(e,t=!1){var n=this.bytes,r=this.pos,i=this.end;if(!e){const e=n.subarray(r,i);return t?new Uint8ClampedArray(e):e}var a=r+e;a>i&&(a=i),this.pos=a;const o=n.subarray(r,a);return t?new Uint8ClampedArray(o):o},peekByte:function(){var e=this.getByte();return-1!==e&&this.pos--,e},peekBytes(e,t=!1){var n=this.getBytes(e,t);return this.pos-=n.length,n},getByteRange(e,t){return e<0&&(e=0),t>this.end&&(t=this.end),this.bytes.subarray(e,t)},skip:function(e){e||(e=1),this.pos+=e},reset:function(){this.pos=this.start},moveStart:function(){this.start=this.pos},makeSubStream:function(t,n,r){return new e(this.bytes.buffer,t,n,r)}},e}();t.Stream=o;var s=function(){function e(e){const t=(0,r.stringToBytes)(e);o.call(this,t)}return e.prototype=o.prototype,e}();t.StringStream=s;var l=function(){var e=new Uint8Array(0);function t(t){if(this._rawMinBufferLength=t||0,this.pos=0,this.bufferLength=0,this.eof=!1,this.buffer=e,this.minBufferLength=512,t)for(;this.minBufferLength<t;)this.minBufferLength*=2}return t.prototype={get isEmpty(){for(;!this.eof&&0===this.bufferLength;)this.readBlock();return 0===this.bufferLength},ensureBuffer:function(e){var t=this.buffer;if(e<=t.byteLength)return t;for(var n=this.minBufferLength;n<e;)n*=2;var r=new Uint8Array(n);return r.set(t),this.buffer=r},getByte:function(){for(var e=this.pos;this.bufferLength<=e;){if(this.eof)return-1;this.readBlock()}return this.buffer[this.pos++]},getUint16:function(){var e=this.getByte(),t=this.getByte();return-1===e||-1===t?-1:(e<<8)+t},getInt32:function(){return(this.getByte()<<24)+(this.getByte()<<16)+(this.getByte()<<8)+this.getByte()},getBytes(e,t=!1){var n,r=this.pos;if(e){for(this.ensureBuffer(r+e),n=r+e;!this.eof&&this.bufferLength<n;)this.readBlock();var i=this.bufferLength;n>i&&(n=i)}else{for(;!this.eof;)this.readBlock();n=this.bufferLength}this.pos=n;const a=this.buffer.subarray(r,n);return!t||a instanceof Uint8ClampedArray?a:new Uint8ClampedArray(a)},peekByte:function(){var e=this.getByte();return-1!==e&&this.pos--,e},peekBytes(e,t=!1){var n=this.getBytes(e,t);return this.pos-=n.length,n},makeSubStream:function(e,t,n){for(var r=e+t;this.bufferLength<=r&&!this.eof;)this.readBlock();return new o(this.buffer,e,t,n)},getByteRange(e,t){(0,r.unreachable)("Should not call DecodeStream.getByteRange")},skip:function(e){e||(e=1),this.pos+=e},reset:function(){this.pos=0},getBaseStreams:function(){return this.str&&this.str.getBaseStreams?this.str.getBaseStreams():[]}},t}();t.DecodeStream=l;var c=function(){function e(e){this.streams=e;let t=0;for(let n=0,r=e.length;n<r;n++){const r=e[n];t+=r instanceof l?r._rawMinBufferLength:r.length}l.call(this,t)}return e.prototype=Object.create(l.prototype),e.prototype.readBlock=function(){var e=this.streams;if(0!==e.length){var t=e.shift().getBytes(),n=this.bufferLength,r=n+t.length;this.ensureBuffer(r).set(t,n),this.bufferLength=r}else this.eof=!0},e.prototype.getBaseStreams=function(){for(var e=[],t=0,n=this.streams.length;t<n;t++){var r=this.streams[t];r.getBaseStreams&&e.push(...r.getBaseStreams())}return e},e}();t.StreamsSequenceStream=c;var u=function(){var e=new Int32Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),t=new Int32Array([3,4,5,6,7,8,9,10,65547,65549,65551,65553,131091,131095,131099,131103,196643,196651,196659,196667,262211,262227,262243,262259,327811,327843,327875,327907,258,258,258]),n=new Int32Array([1,2,3,4,65541,65543,131081,131085,196625,196633,262177,262193,327745,327777,393345,393409,459009,459137,524801,525057,590849,591361,657409,658433,724993,727041,794625,798721,868353,876545]),i=[new Int32Array([459008,524368,524304,524568,459024,524400,524336,590016,459016,524384,524320,589984,524288,524416,524352,590048,459012,524376,524312,589968,459028,524408,524344,590032,459020,524392,524328,59e4,524296,524424,524360,590064,459010,524372,524308,524572,459026,524404,524340,590024,459018,524388,524324,589992,524292,524420,524356,590056,459014,524380,524316,589976,459030,524412,524348,590040,459022,524396,524332,590008,524300,524428,524364,590072,459009,524370,524306,524570,459025,524402,524338,590020,459017,524386,524322,589988,524290,524418,524354,590052,459013,524378,524314,589972,459029,524410,524346,590036,459021,524394,524330,590004,524298,524426,524362,590068,459011,524374,524310,524574,459027,524406,524342,590028,459019,524390,524326,589996,524294,524422,524358,590060,459015,524382,524318,589980,459031,524414,524350,590044,459023,524398,524334,590012,524302,524430,524366,590076,459008,524369,524305,524569,459024,524401,524337,590018,459016,524385,524321,589986,524289,524417,524353,590050,459012,524377,524313,589970,459028,524409,524345,590034,459020,524393,524329,590002,524297,524425,524361,590066,459010,524373,524309,524573,459026,524405,524341,590026,459018,524389,524325,589994,524293,524421,524357,590058,459014,524381,524317,589978,459030,524413,524349,590042,459022,524397,524333,590010,524301,524429,524365,590074,459009,524371,524307,524571,459025,524403,524339,590022,459017,524387,524323,589990,524291,524419,524355,590054,459013,524379,524315,589974,459029,524411,524347,590038,459021,524395,524331,590006,524299,524427,524363,590070,459011,524375,524311,524575,459027,524407,524343,590030,459019,524391,524327,589998,524295,524423,524359,590062,459015,524383,524319,589982,459031,524415,524351,590046,459023,524399,524335,590014,524303,524431,524367,590078,459008,524368,524304,524568,459024,524400,524336,590017,459016,524384,524320,589985,524288,524416,524352,590049,459012,524376,524312,589969,459028,524408,524344,590033,459020,524392,524328,590001,524296,524424,524360,590065,459010,524372,524308,524572,459026,524404,524340,590025,459018,524388,524324,589993,524292,524420,524356,590057,459014,524380,524316,589977,459030,524412,524348,590041,459022,524396,524332,590009,524300,524428,524364,590073,459009,524370,524306,524570,459025,524402,524338,590021,459017,524386,524322,589989,524290,524418,524354,590053,459013,524378,524314,589973,459029,524410,524346,590037,459021,524394,524330,590005,524298,524426,524362,590069,459011,524374,524310,524574,459027,524406,524342,590029,459019,524390,524326,589997,524294,524422,524358,590061,459015,524382,524318,589981,459031,524414,524350,590045,459023,524398,524334,590013,524302,524430,524366,590077,459008,524369,524305,524569,459024,524401,524337,590019,459016,524385,524321,589987,524289,524417,524353,590051,459012,524377,524313,589971,459028,524409,524345,590035,459020,524393,524329,590003,524297,524425,524361,590067,459010,524373,524309,524573,459026,524405,524341,590027,459018,524389,524325,589995,524293,524421,524357,590059,459014,524381,524317,589979,459030,524413,524349,590043,459022,524397,524333,590011,524301,524429,524365,590075,459009,524371,524307,524571,459025,524403,524339,590023,459017,524387,524323,589991,524291,524419,524355,590055,459013,524379,524315,589975,459029,524411,524347,590039,459021,524395,524331,590007,524299,524427,524363,590071,459011,524375,524311,524575,459027,524407,524343,590031,459019,524391,524327,589999,524295,524423,524359,590063,459015,524383,524319,589983,459031,524415,524351,590047,459023,524399,524335,590015,524303,524431,524367,590079]),9],a=[new Int32Array([327680,327696,327688,327704,327684,327700,327692,327708,327682,327698,327690,327706,327686,327702,327694,0,327681,327697,327689,327705,327685,327701,327693,327709,327683,327699,327691,327707,327687,327703,327695,0]),5];function o(e,t){this.str=e,this.dict=e.dict;var n=e.getByte(),i=e.getByte();if(-1===n||-1===i)throw new r.FormatError(`Invalid header in flate stream: ${n}, ${i}`);if(8!=(15&n))throw new r.FormatError(`Unknown compression method in flate stream: ${n}, ${i}`);if(((n<<8)+i)%31!=0)throw new r.FormatError(`Bad FCHECK in flate stream: ${n}, ${i}`);if(32&i)throw new r.FormatError(`FDICT bit set in flate stream: ${n}, ${i}`);this.codeSize=0,this.codeBuf=0,l.call(this,t)}return o.prototype=Object.create(l.prototype),o.prototype.getBits=function(e){for(var t,n=this.str,i=this.codeSize,a=this.codeBuf;i<e;){if(-1===(t=n.getByte()))throw new r.FormatError("Bad encoding in flate stream");a|=t<<i,i+=8}return t=a&(1<<e)-1,this.codeBuf=a>>e,this.codeSize=i-=e,t},o.prototype.getCode=function(e){for(var t,n=this.str,i=e[0],a=e[1],o=this.codeSize,s=this.codeBuf;o<a&&-1!==(t=n.getByte());)s|=t<<o,o+=8;var l=i[s&(1<<a)-1],c=l>>16,u=65535&l;if(c<1||o<c)throw new r.FormatError("Bad encoding in flate stream");return this.codeBuf=s>>c,this.codeSize=o-c,u},o.prototype.generateHuffmanTable=function(e){var t,n=e.length,r=0;for(t=0;t<n;++t)e[t]>r&&(r=e[t]);for(var i=1<<r,a=new Int32Array(i),o=1,s=0,l=2;o<=r;++o,s<<=1,l<<=1)for(var c=0;c<n;++c)if(e[c]===o){var u=0,h=s;for(t=0;t<o;++t)u=u<<1|1&h,h>>=1;for(t=u;t<i;t+=l)a[t]=o<<16|c;++s}return[a,r]},o.prototype.readBlock=function(){var o,s,l=this.str,c=this.getBits(3);if(1&c&&(this.eof=!0),0!==(c>>=1)){var u,h;if(1===c)u=i,h=a;else{if(2!==c)throw new r.FormatError("Unknown block type in flate stream");var d,f=this.getBits(5)+257,p=this.getBits(5)+1,A=this.getBits(4)+4,g=new Uint8Array(e.length);for(d=0;d<A;++d)g[e[d]]=this.getBits(3);var m=this.generateHuffmanTable(g);s=0,d=0;for(var v,y,b,w=f+p,x=new Uint8Array(w);d<w;){var _=this.getCode(m);if(16===_)v=2,y=3,b=s;else if(17===_)v=3,y=3,b=s=0;else{if(18!==_){x[d++]=s=_;continue}v=7,y=11,b=s=0}for(var C=this.getBits(v)+y;C-- >0;)x[d++]=b}u=this.generateHuffmanTable(x.subarray(0,f)),h=this.generateHuffmanTable(x.subarray(f,w))}for(var S=(o=this.buffer)?o.length:0,k=this.bufferLength;;){var B=this.getCode(u);if(B<256)k+1>=S&&(S=(o=this.ensureBuffer(k+1)).length),o[k++]=B;else{if(256===B)return void(this.bufferLength=k);var E=(B=t[B-=257])>>16;E>0&&(E=this.getBits(E)),s=(65535&B)+E,B=this.getCode(h),(E=(B=n[B])>>16)>0&&(E=this.getBits(E));var T=(65535&B)+E;k+s>=S&&(S=(o=this.ensureBuffer(k+s)).length);for(var I=0;I<s;++I,++k)o[k]=o[k-T]}}}else{var M;if(-1===(M=l.getByte()))throw new r.FormatError("Bad block header in flate stream");var F=M;if(-1===(M=l.getByte()))throw new r.FormatError("Bad block header in flate stream");if(F|=M<<8,-1===(M=l.getByte()))throw new r.FormatError("Bad block header in flate stream");var D=M;if(-1===(M=l.getByte()))throw new r.FormatError("Bad block header in flate stream");if((D|=M<<8)!==(65535&~F)&&(0!==F||0!==D))throw new r.FormatError("Bad uncompressed block length in flate stream");this.codeBuf=0,this.codeSize=0;const e=this.bufferLength,t=e+F;if(o=this.ensureBuffer(t),this.bufferLength=t,0===F)-1===l.peekByte()&&(this.eof=!0);else{const t=l.getBytes(F);o.set(t,e),t.length<F&&(this.eof=!0)}}},o}();t.FlateStream=u;var h=function(){function e(e,t,n){if(!(0,i.isDict)(n))return e;var a=this.predictor=n.get("Predictor")||1;if(a<=1)return e;if(2!==a&&(a<10||a>15))throw new r.FormatError(`Unsupported predictor: ${a}`);this.readBlock=2===a?this.readBlockTiff:this.readBlockPng,this.str=e,this.dict=e.dict;var o=this.colors=n.get("Colors")||1,s=this.bits=n.get("BitsPerComponent")||8,c=this.columns=n.get("Columns")||1;return this.pixBytes=o*s+7>>3,this.rowBytes=c*o*s+7>>3,l.call(this,t),this}return e.prototype=Object.create(l.prototype),e.prototype.readBlockTiff=function(){var e=this.rowBytes,t=this.bufferLength,n=this.ensureBuffer(t+e),r=this.bits,i=this.colors,a=this.str.getBytes(e);if(this.eof=!a.length,!this.eof){var o,s=0,l=0,c=0,u=0,h=t;if(1===r&&1===i)for(o=0;o<e;++o){var d=a[o]^s;d^=d>>1,d^=d>>2,s=(1&(d^=d>>4))<<7,n[h++]=d}else if(8===r){for(o=0;o<i;++o)n[h++]=a[o];for(;o<e;++o)n[h]=n[h-i]+a[o],h++}else if(16===r){var f=2*i;for(o=0;o<f;++o)n[h++]=a[o];for(;o<e;o+=2){var p=((255&a[o])<<8)+(255&a[o+1])+((255&n[h-f])<<8)+(255&n[h-f+1]);n[h++]=p>>8&255,n[h++]=255&p}}else{var A=new Uint8Array(i+1),g=(1<<r)-1,m=0,v=t,y=this.columns;for(o=0;o<y;++o)for(var b=0;b<i;++b)c<r&&(s=s<<8|255&a[m++],c+=8),A[b]=A[b]+(s>>c-r)&g,c-=r,l=l<<r|A[b],(u+=r)>=8&&(n[v++]=l>>u-8&255,u-=8);u>0&&(n[v++]=(l<<8-u)+(s&(1<<8-u)-1))}this.bufferLength+=e}},e.prototype.readBlockPng=function(){var e=this.rowBytes,t=this.pixBytes,n=this.str.getByte(),i=this.str.getBytes(e);if(this.eof=!i.length,!this.eof){var a=this.bufferLength,o=this.ensureBuffer(a+e),s=o.subarray(a-e,a);0===s.length&&(s=new Uint8Array(e));var l,c,u,h=a;switch(n){case 0:for(l=0;l<e;++l)o[h++]=i[l];break;case 1:for(l=0;l<t;++l)o[h++]=i[l];for(;l<e;++l)o[h]=o[h-t]+i[l]&255,h++;break;case 2:for(l=0;l<e;++l)o[h++]=s[l]+i[l]&255;break;case 3:for(l=0;l<t;++l)o[h++]=(s[l]>>1)+i[l];for(;l<e;++l)o[h]=(s[l]+o[h-t]>>1)+i[l]&255,h++;break;case 4:for(l=0;l<t;++l)c=s[l],u=i[l],o[h++]=c+u;for(;l<e;++l){c=s[l];var d=s[l-t],f=o[h-t],p=f+c-d,A=p-f;A<0&&(A=-A);var g=p-c;g<0&&(g=-g);var m=p-d;m<0&&(m=-m),u=i[l],o[h++]=A<=g&&A<=m?f+u:g<=m?c+u:d+u}break;default:throw new r.FormatError(`Unsupported predictor: ${n}`)}this.bufferLength+=e}},e}();t.PredictorStream=h;var d=function(){function e(e,t,n){this.str=e,this.dict=e.dict,this.decrypt=n,this.nextChunk=null,this.initialized=!1,l.call(this,t)}return e.prototype=Object.create(l.prototype),e.prototype.readBlock=function(){var e;if(this.initialized?e=this.nextChunk:(e=this.str.getBytes(512),this.initialized=!0),e&&0!==e.length){this.nextChunk=this.str.getBytes(512);var t=this.nextChunk&&this.nextChunk.length>0;e=(0,this.decrypt)(e,!t);var n,r=this.bufferLength,i=e.length,a=this.ensureBuffer(r+i);for(n=0;n<i;n++)a[r++]=e[n];this.bufferLength=r}else this.eof=!0},e}();t.DecryptStream=d;var f=function(){function e(e,t){this.str=e,this.dict=e.dict,this.input=new Uint8Array(5),t&&(t*=.8),l.call(this,t)}return e.prototype=Object.create(l.prototype),e.prototype.readBlock=function(){for(var e=this.str,t=e.getByte();(0,a.isWhiteSpace)(t);)t=e.getByte();if(-1!==t&&126!==t){var n,r,i=this.bufferLength;if(122===t){for(n=this.ensureBuffer(i+4),r=0;r<4;++r)n[i+r]=0;this.bufferLength+=4}else{var o=this.input;for(o[0]=t,r=1;r<5;++r){for(t=e.getByte();(0,a.isWhiteSpace)(t);)t=e.getByte();if(o[r]=t,-1===t||126===t)break}if(n=this.ensureBuffer(i+r-1),this.bufferLength+=r-1,r<5){for(;r<5;++r)o[r]=117;this.eof=!0}var s=0;for(r=0;r<5;++r)s=85*s+(o[r]-33);for(r=3;r>=0;--r)n[i+r]=255&s,s>>=8}}else this.eof=!0},e}();t.Ascii85Stream=f;var p=function(){function e(e,t){this.str=e,this.dict=e.dict,this.firstDigit=-1,t&&(t*=.5),l.call(this,t)}return e.prototype=Object.create(l.prototype),e.prototype.readBlock=function(){var e=this.str.getBytes(8e3);if(e.length){for(var t=e.length+1>>1,n=this.ensureBuffer(this.bufferLength+t),r=this.bufferLength,i=this.firstDigit,a=0,o=e.length;a<o;a++){var s,l=e[a];if(l>=48&&l<=57)s=15&l;else{if(!(l>=65&&l<=70||l>=97&&l<=102)){if(62===l){this.eof=!0;break}continue}s=9+(15&l)}i<0?i=s:(n[r++]=i<<4|s,i=-1)}i>=0&&this.eof&&(n[r++]=i<<4,i=-1),this.firstDigit=i,this.bufferLength=r}else this.eof=!0},e}();t.AsciiHexStream=p;var A=function(){function e(e,t){this.str=e,this.dict=e.dict,l.call(this,t)}return e.prototype=Object.create(l.prototype),e.prototype.readBlock=function(){var e=this.str.getBytes(2);if(!e||e.length<2||128===e[0])this.eof=!0;else{var t,n=this.bufferLength,r=e[0];if(r<128){if((t=this.ensureBuffer(n+r+1))[n++]=e[1],r>0){var i=this.str.getBytes(r);t.set(i,n),n+=r}}else{r=257-r;var a=e[1];t=this.ensureBuffer(n+r+1);for(var o=0;o<r;o++)t[n++]=a}this.bufferLength=n}},e}();t.RunLengthStream=A;var g=function(){function e(e,t,n){this.str=e,this.dict=e.dict,this.cachedData=0,this.bitsCached=0;for(var r={earlyChange:n,codeLength:9,nextCode:258,dictionaryValues:new Uint8Array(4096),dictionaryLengths:new Uint16Array(4096),dictionaryPrevCodes:new Uint16Array(4096),currentSequence:new Uint8Array(4096),currentSequenceLength:0},i=0;i<256;++i)r.dictionaryValues[i]=i,r.dictionaryLengths[i]=1;this.lzwState=r,l.call(this,t)}return e.prototype=Object.create(l.prototype),e.prototype.readBits=function(e){for(var t=this.bitsCached,n=this.cachedData;t<e;){var r=this.str.getByte();if(-1===r)return this.eof=!0,null;n=n<<8|r,t+=8}return this.bitsCached=t-=e,this.cachedData=n,this.lastCode=null,n>>>t&(1<<e)-1},e.prototype.readBlock=function(){var e,t,n,r=1024,i=this.lzwState;if(i){var a=i.earlyChange,o=i.nextCode,s=i.dictionaryValues,l=i.dictionaryLengths,c=i.dictionaryPrevCodes,u=i.codeLength,h=i.prevCode,d=i.currentSequence,f=i.currentSequenceLength,p=0,A=this.bufferLength,g=this.ensureBuffer(this.bufferLength+r);for(e=0;e<512;e++){var m=this.readBits(u),v=f>0;if(m<256)d[0]=m,f=1;else{if(!(m>=258)){if(256===m){u=9,o=258,f=0;continue}this.eof=!0,delete this.lzwState;break}if(m<o)for(t=(f=l[m])-1,n=m;t>=0;t--)d[t]=s[n],n=c[n];else d[f++]=d[0]}if(v&&(c[o]=h,l[o]=l[h]+1,s[o]=d[0],u=++o+a&o+a-1?u:0|Math.min(Math.log(o+a)/.6931471805599453+1,12)),h=m,r<(p+=f)){do{r+=512}while(r<p);g=this.ensureBuffer(this.bufferLength+r)}for(t=0;t<f;t++)g[A++]=d[t]}i.nextCode=o,i.codeLength=u,i.prevCode=h,i.currentSequenceLength=f,this.bufferLength=A}},e}();t.LZWStream=g;var m=function(){function e(){o.call(this,new Uint8Array(0))}return e.prototype=o.prototype,e}();t.NullStream=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CCITTFaxStream=void 0;var r=n(5),i=n(14),a=n(12),o=function(){function e(e,t,n){this.str=e,this.dict=e.dict,(0,r.isDict)(n)||(n=r.Dict.empty);const o={next:()=>e.getByte()};this.ccittFaxDecoder=new i.CCITTFaxDecoder(o,{K:n.get("K"),EndOfLine:n.get("EndOfLine"),EncodedByteAlign:n.get("EncodedByteAlign"),Columns:n.get("Columns"),Rows:n.get("Rows"),EndOfBlock:n.get("EndOfBlock"),BlackIs1:n.get("BlackIs1")}),a.DecodeStream.call(this,t)}return e.prototype=Object.create(a.DecodeStream.prototype),e.prototype.readBlock=function(){for(;!this.eof;){const e=this.ccittFaxDecoder.readNextChar();if(-1===e)return void(this.eof=!0);this.ensureBuffer(this.bufferLength+1),this.buffer[this.bufferLength++]=e}},e}();t.CCITTFaxStream=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CCITTFaxDecoder=void 0;var r=n(2);const i=function(){const e=[[-1,-1],[-1,-1],[7,8],[7,7],[6,6],[6,6],[6,5],[6,5],[4,0],[4,0],[4,0],[4,0],[4,0],[4,0],[4,0],[4,0],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2]],t=[[-1,-1],[12,-2],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[11,1792],[11,1792],[12,1984],[12,2048],[12,2112],[12,2176],[12,2240],[12,2304],[11,1856],[11,1856],[11,1920],[11,1920],[12,2368],[12,2432],[12,2496],[12,2560]],n=[[-1,-1],[-1,-1],[-1,-1],[-1,-1],[8,29],[8,29],[8,30],[8,30],[8,45],[8,45],[8,46],[8,46],[7,22],[7,22],[7,22],[7,22],[7,23],[7,23],[7,23],[7,23],[8,47],[8,47],[8,48],[8,48],[6,13],[6,13],[6,13],[6,13],[6,13],[6,13],[6,13],[6,13],[7,20],[7,20],[7,20],[7,20],[8,33],[8,33],[8,34],[8,34],[8,35],[8,35],[8,36],[8,36],[8,37],[8,37],[8,38],[8,38],[7,19],[7,19],[7,19],[7,19],[8,31],[8,31],[8,32],[8,32],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,12],[6,12],[6,12],[6,12],[6,12],[6,12],[6,12],[6,12],[8,53],[8,53],[8,54],[8,54],[7,26],[7,26],[7,26],[7,26],[8,39],[8,39],[8,40],[8,40],[8,41],[8,41],[8,42],[8,42],[8,43],[8,43],[8,44],[8,44],[7,21],[7,21],[7,21],[7,21],[7,28],[7,28],[7,28],[7,28],[8,61],[8,61],[8,62],[8,62],[8,63],[8,63],[8,0],[8,0],[8,320],[8,320],[8,384],[8,384],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[7,27],[7,27],[7,27],[7,27],[8,59],[8,59],[8,60],[8,60],[9,1472],[9,1536],[9,1600],[9,1728],[7,18],[7,18],[7,18],[7,18],[7,24],[7,24],[7,24],[7,24],[8,49],[8,49],[8,50],[8,50],[8,51],[8,51],[8,52],[8,52],[7,25],[7,25],[7,25],[7,25],[8,55],[8,55],[8,56],[8,56],[8,57],[8,57],[8,58],[8,58],[6,192],[6,192],[6,192],[6,192],[6,192],[6,192],[6,192],[6,192],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[8,448],[8,448],[8,512],[8,512],[9,704],[9,768],[8,640],[8,640],[8,576],[8,576],[9,832],[9,896],[9,960],[9,1024],[9,1088],[9,1152],[9,1216],[9,1280],[9,1344],[9,1408],[7,256],[7,256],[7,256],[7,256],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[6,16],[6,16],[6,16],[6,16],[6,16],[6,16],[6,16],[6,16],[6,17],[6,17],[6,17],[6,17],[6,17],[6,17],[6,17],[6,17],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[6,14],[6,14],[6,14],[6,14],[6,14],[6,14],[6,14],[6,14],[6,15],[6,15],[6,15],[6,15],[6,15],[6,15],[6,15],[6,15],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7]],i=[[-1,-1],[-1,-1],[12,-2],[12,-2],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[11,1792],[11,1792],[11,1792],[11,1792],[12,1984],[12,1984],[12,2048],[12,2048],[12,2112],[12,2112],[12,2176],[12,2176],[12,2240],[12,2240],[12,2304],[12,2304],[11,1856],[11,1856],[11,1856],[11,1856],[11,1920],[11,1920],[11,1920],[11,1920],[12,2368],[12,2368],[12,2432],[12,2432],[12,2496],[12,2496],[12,2560],[12,2560],[10,18],[10,18],[10,18],[10,18],[10,18],[10,18],[10,18],[10,18],[12,52],[12,52],[13,640],[13,704],[13,768],[13,832],[12,55],[12,55],[12,56],[12,56],[13,1280],[13,1344],[13,1408],[13,1472],[12,59],[12,59],[12,60],[12,60],[13,1536],[13,1600],[11,24],[11,24],[11,24],[11,24],[11,25],[11,25],[11,25],[11,25],[13,1664],[13,1728],[12,320],[12,320],[12,384],[12,384],[12,448],[12,448],[13,512],[13,576],[12,53],[12,53],[12,54],[12,54],[13,896],[13,960],[13,1024],[13,1088],[13,1152],[13,1216],[10,64],[10,64],[10,64],[10,64],[10,64],[10,64],[10,64],[10,64]],a=[[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[11,23],[11,23],[12,50],[12,51],[12,44],[12,45],[12,46],[12,47],[12,57],[12,58],[12,61],[12,256],[10,16],[10,16],[10,16],[10,16],[10,17],[10,17],[10,17],[10,17],[12,48],[12,49],[12,62],[12,63],[12,30],[12,31],[12,32],[12,33],[12,40],[12,41],[11,22],[11,22],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[9,15],[9,15],[9,15],[9,15],[9,15],[9,15],[9,15],[9,15],[12,128],[12,192],[12,26],[12,27],[12,28],[12,29],[11,19],[11,19],[11,20],[11,20],[12,34],[12,35],[12,36],[12,37],[12,38],[12,39],[11,21],[11,21],[12,42],[12,43],[10,0],[10,0],[10,0],[10,0],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12]],o=[[-1,-1],[-1,-1],[-1,-1],[-1,-1],[6,9],[6,8],[5,7],[5,7],[4,6],[4,6],[4,6],[4,6],[4,5],[4,5],[4,5],[4,5],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2]];function s(e,t={}){if(!e||"function"!=typeof e.next)throw new Error('CCITTFaxDecoder - invalid "source" parameter.');this.source=e,this.eof=!1,this.encoding=t.K||0,this.eoline=t.EndOfLine||!1,this.byteAlign=t.EncodedByteAlign||!1,this.columns=t.Columns||1728,this.rows=t.Rows||0;let n,r=t.EndOfBlock;for(null!==r&&void 0!==r||(r=!0),this.eoblock=r,this.black=t.BlackIs1||!1,this.codingLine=new Uint32Array(this.columns+1),this.refLine=new Uint32Array(this.columns+2),this.codingLine[0]=this.columns,this.codingPos=0,this.row=0,this.nextLine2D=this.encoding<0,this.inputBits=0,this.inputBuf=0,this.outputBits=0,this.rowsDone=!1;0===(n=this._lookBits(12));)this._eatBits(1);1===n&&this._eatBits(12),this.encoding>0&&(this.nextLine2D=!this._lookBits(1),this._eatBits(1))}return s.prototype={readNextChar(){if(this.eof)return-1;const e=this.refLine,t=this.codingLine,n=this.columns;let i,a,o,s,l;if(0===this.outputBits){if(this.rowsDone&&(this.eof=!0),this.eof)return-1;let o,l,c;if(this.err=!1,this.nextLine2D){for(s=0;t[s]<n;++s)e[s]=t[s];for(e[s++]=n,e[s]=n,t[0]=0,this.codingPos=0,i=0,a=0;t[this.codingPos]<n;)switch(o=this._getTwoDimCode()){case 0:this._addPixels(e[i+1],a),e[i+1]<n&&(i+=2);break;case 1:if(o=l=0,a){do{o+=c=this._getBlackCode()}while(c>=64);do{l+=c=this._getWhiteCode()}while(c>=64)}else{do{o+=c=this._getWhiteCode()}while(c>=64);do{l+=c=this._getBlackCode()}while(c>=64)}for(this._addPixels(t[this.codingPos]+o,a),t[this.codingPos]<n&&this._addPixels(t[this.codingPos]+l,1^a);e[i]<=t[this.codingPos]&&e[i]<n;)i+=2;break;case 7:if(this._addPixels(e[i]+3,a),a^=1,t[this.codingPos]<n)for(++i;e[i]<=t[this.codingPos]&&e[i]<n;)i+=2;break;case 5:if(this._addPixels(e[i]+2,a),a^=1,t[this.codingPos]<n)for(++i;e[i]<=t[this.codingPos]&&e[i]<n;)i+=2;break;case 3:if(this._addPixels(e[i]+1,a),a^=1,t[this.codingPos]<n)for(++i;e[i]<=t[this.codingPos]&&e[i]<n;)i+=2;break;case 2:if(this._addPixels(e[i],a),a^=1,t[this.codingPos]<n)for(++i;e[i]<=t[this.codingPos]&&e[i]<n;)i+=2;break;case 8:if(this._addPixelsNeg(e[i]-3,a),a^=1,t[this.codingPos]<n)for(i>0?--i:++i;e[i]<=t[this.codingPos]&&e[i]<n;)i+=2;break;case 6:if(this._addPixelsNeg(e[i]-2,a),a^=1,t[this.codingPos]<n)for(i>0?--i:++i;e[i]<=t[this.codingPos]&&e[i]<n;)i+=2;break;case 4:if(this._addPixelsNeg(e[i]-1,a),a^=1,t[this.codingPos]<n)for(i>0?--i:++i;e[i]<=t[this.codingPos]&&e[i]<n;)i+=2;break;case-1:this._addPixels(n,0),this.eof=!0;break;default:(0,r.info)("bad 2d code"),this._addPixels(n,0),this.err=!0}}else for(t[0]=0,this.codingPos=0,a=0;t[this.codingPos]<n;){if(o=0,a)do{o+=c=this._getBlackCode()}while(c>=64);else do{o+=c=this._getWhiteCode()}while(c>=64);this._addPixels(t[this.codingPos]+o,a),a^=1}let u=!1;if(this.byteAlign&&(this.inputBits&=-8),this.eoblock||this.row!==this.rows-1){if(o=this._lookBits(12),this.eoline)for(;-1!==o&&1!==o;)this._eatBits(1),o=this._lookBits(12);else for(;0===o;)this._eatBits(1),o=this._lookBits(12);1===o?(this._eatBits(12),u=!0):-1===o&&(this.eof=!0)}else this.rowsDone=!0;if(!this.eof&&this.encoding>0&&!this.rowsDone&&(this.nextLine2D=!this._lookBits(1),this._eatBits(1)),this.eoblock&&u&&this.byteAlign){if(1===(o=this._lookBits(12))){if(this._eatBits(12),this.encoding>0&&(this._lookBits(1),this._eatBits(1)),this.encoding>=0)for(s=0;s<4;++s)1!==(o=this._lookBits(12))&&(0,r.info)("bad rtc code: "+o),this._eatBits(12),this.encoding>0&&(this._lookBits(1),this._eatBits(1));this.eof=!0}}else if(this.err&&this.eoline){for(;;){if(-1===(o=this._lookBits(13)))return this.eof=!0,-1;if(o>>1==1)break;this._eatBits(1)}this._eatBits(12),this.encoding>0&&(this._eatBits(1),this.nextLine2D=!(1&o))}t[0]>0?this.outputBits=t[this.codingPos=0]:this.outputBits=t[this.codingPos=1],this.row++}if(this.outputBits>=8)l=1&this.codingPos?0:255,this.outputBits-=8,0===this.outputBits&&t[this.codingPos]<n&&(this.codingPos++,this.outputBits=t[this.codingPos]-t[this.codingPos-1]);else{o=8,l=0;do{this.outputBits>o?(l<<=o,1&this.codingPos||(l|=255>>8-o),this.outputBits-=o,o=0):(l<<=this.outputBits,1&this.codingPos||(l|=255>>8-this.outputBits),o-=this.outputBits,this.outputBits=0,t[this.codingPos]<n?(this.codingPos++,this.outputBits=t[this.codingPos]-t[this.codingPos-1]):o>0&&(l<<=o,o=0))}while(o)}return this.black&&(l^=255),l},_addPixels(e,t){const n=this.codingLine;let i=this.codingPos;e>n[i]&&(e>this.columns&&((0,r.info)("row is wrong length"),this.err=!0,e=this.columns),1&i^t&&++i,n[i]=e),this.codingPos=i},_addPixelsNeg(e,t){const n=this.codingLine;let i=this.codingPos;if(e>n[i])e>this.columns&&((0,r.info)("row is wrong length"),this.err=!0,e=this.columns),1&i^t&&++i,n[i]=e;else if(e<n[i]){for(e<0&&((0,r.info)("invalid code"),this.err=!0,e=0);i>0&&e<n[i-1];)--i;n[i]=e}this.codingPos=i},_findTableCode(e,t,n,r){const i=r||0;for(let r=e;r<=t;++r){let e=this._lookBits(r);if(-1===e)return[!0,1,!1];if(r<t&&(e<<=t-r),!i||e>=i){const t=n[e-i];if(t[0]===r)return this._eatBits(r),[!0,t[1],!0]}}return[!1,0,!1]},_getTwoDimCode(){let t,n=0;if(this.eoblock){if(n=this._lookBits(7),(t=e[n])&&t[0]>0)return this._eatBits(t[0]),t[1]}else{const t=this._findTableCode(1,7,e);if(t[0]&&t[2])return t[1]}return(0,r.info)("Bad two dim code"),-1},_getWhiteCode(){let e,i=0;if(this.eoblock){if(-1===(i=this._lookBits(12)))return 1;if((e=i>>5==0?t[i]:n[i>>3])[0]>0)return this._eatBits(e[0]),e[1]}else{let e=this._findTableCode(1,9,n);if(e[0])return e[1];if((e=this._findTableCode(11,12,t))[0])return e[1]}return(0,r.info)("bad white code"),this._eatBits(1),1},_getBlackCode(){let e,t;if(this.eoblock){if(-1===(e=this._lookBits(13)))return 1;if((t=e>>7==0?i[e]:e>>9==0&&e>>7!=0?a[(e>>1)-64]:o[e>>7])[0]>0)return this._eatBits(t[0]),t[1]}else{let e=this._findTableCode(2,6,o);if(e[0])return e[1];if((e=this._findTableCode(7,12,a,64))[0])return e[1];if((e=this._findTableCode(10,13,i))[0])return e[1]}return(0,r.info)("bad black code"),this._eatBits(1),1},_lookBits(e){let t;for(;this.inputBits<e;){if(-1===(t=this.source.next()))return 0===this.inputBits?-1:this.inputBuf<<e-this.inputBits&65535>>16-e;this.inputBuf=this.inputBuf<<8|t,this.inputBits+=8}return this.inputBuf>>this.inputBits-e&65535>>16-e},_eatBits(e){(this.inputBits-=e)<0&&(this.inputBits=0)}},s}();t.CCITTFaxDecoder=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Jbig2Stream=void 0;var r=n(5),i=n(12),a=n(16),o=n(2);const s=function(){function e(e,t,n,r){this.stream=e,this.maybeLength=t,this.dict=n,this.params=r,i.DecodeStream.call(this,t)}return e.prototype=Object.create(i.DecodeStream.prototype),Object.defineProperty(e.prototype,"bytes",{get(){return(0,o.shadow)(this,"bytes",this.stream.getBytes(this.maybeLength))},configurable:!0}),e.prototype.ensureBuffer=function(e){},e.prototype.readBlock=function(){if(this.eof)return;const e=new a.Jbig2Image,t=[];if((0,r.isDict)(this.params)){const e=this.params.get("JBIG2Globals");if((0,r.isStream)(e)){const n=e.getBytes();t.push({data:n,start:0,end:n.length})}}t.push({data:this.bytes,start:0,end:this.bytes.length});const n=e.parseChunks(t),i=n.length;for(let e=0;e<i;e++)n[e]^=255;this.buffer=n,this.bufferLength=i,this.eof=!0},e}();t.Jbig2Stream=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Jbig2Image=void 0;var r=n(2),i=n(8),a=n(17),o=n(14);class s extends r.BaseException{constructor(e){super(`JBIG2 error: ${e}`)}}var l=function(){function e(){}function t(e,t,n){this.data=e,this.start=t,this.end=n}function n(e,t,n){var r=e.getContexts(t),i=1;function a(e){for(var t=0,a=0;a<e;a++){var o=n.readBit(r,i);i=i<256?i<<1|o:511&(i<<1|o)|256,t=t<<1|o}return t>>>0}var o=a(1),s=a(1)?a(1)?a(1)?a(1)?a(1)?a(32)+4436:a(12)+340:a(8)+84:a(6)+20:a(4)+4:a(2);return 0===o?s:s>0?-s:null}function l(e,t,n){for(var r=e.getContexts("IAID"),i=1,a=0;a<n;a++){i=i<<1|t.readBit(r,i)}return n<31?i&(1<<n)-1:2147483647&i}e.prototype={getContexts(e){return e in this?this[e]:this[e]=new Int8Array(65536)}},t.prototype={get decoder(){var e=new a.ArithmeticDecoder(this.data,this.start,this.end);return(0,r.shadow)(this,"decoder",e)},get contextCache(){var t=new e;return(0,r.shadow)(this,"contextCache",t)}};var c=["SymbolDictionary",null,null,null,"IntermediateTextRegion",null,"ImmediateTextRegion","ImmediateLosslessTextRegion",null,null,null,null,null,null,null,null,"PatternDictionary",null,null,null,"IntermediateHalftoneRegion",null,"ImmediateHalftoneRegion","ImmediateLosslessHalftoneRegion",null,null,null,null,null,null,null,null,null,null,null,null,"IntermediateGenericRegion",null,"ImmediateGenericRegion","ImmediateLosslessGenericRegion","IntermediateGenericRefinementRegion",null,"ImmediateGenericRefinementRegion","ImmediateLosslessGenericRefinementRegion",null,null,null,null,"PageInformation","EndOfPage","EndOfStripe","EndOfFile","Profiles","Tables",null,null,null,null,null,null,null,null,"Extension"],u=[[{x:-1,y:-2},{x:0,y:-2},{x:1,y:-2},{x:-2,y:-1},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:2,y:-1},{x:-4,y:0},{x:-3,y:0},{x:-2,y:0},{x:-1,y:0}],[{x:-1,y:-2},{x:0,y:-2},{x:1,y:-2},{x:2,y:-2},{x:-2,y:-1},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:2,y:-1},{x:-3,y:0},{x:-2,y:0},{x:-1,y:0}],[{x:-1,y:-2},{x:0,y:-2},{x:1,y:-2},{x:-2,y:-1},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:-2,y:0},{x:-1,y:0}],[{x:-3,y:-1},{x:-2,y:-1},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:-4,y:0},{x:-3,y:0},{x:-2,y:0},{x:-1,y:0}]],h=[{coding:[{x:0,y:-1},{x:1,y:-1},{x:-1,y:0}],reference:[{x:0,y:-1},{x:1,y:-1},{x:-1,y:0},{x:0,y:0},{x:1,y:0},{x:-1,y:1},{x:0,y:1},{x:1,y:1}]},{coding:[{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:-1,y:0}],reference:[{x:0,y:-1},{x:-1,y:0},{x:0,y:0},{x:1,y:0},{x:0,y:1},{x:1,y:1}]}],d=[39717,1941,229,405],f=[32,8];function p(e,t,n,r,i,a,o,s){if(e){return F(new T(s.data,s.start,s.end),t,n,!1)}if(0===r&&!a&&!i&&4===o.length&&3===o[0].x&&-1===o[0].y&&-3===o[1].x&&-1===o[1].y&&2===o[2].x&&-2===o[2].y&&-2===o[3].x&&-2===o[3].y)return function(e,t,n){var r,i,a,o,s,l,c,u=n.decoder,h=n.contextCache.getContexts("GB"),d=[];for(i=0;i<t;i++)for(s=d[i]=new Uint8Array(e),l=i<1?s:d[i-1],r=(c=i<2?s:d[i-2])[0]<<13|c[1]<<12|c[2]<<11|l[0]<<7|l[1]<<6|l[2]<<5|l[3]<<4,a=0;a<e;a++)s[a]=o=u.readBit(h,r),r=(31735&r)<<1|(a+3<e?c[a+3]<<11:0)|(a+4<e?l[a+4]<<4:0)|o;return d}(t,n,s);var l=!!a,c=u[r].concat(o);c.sort(function(e,t){return e.y-t.y||e.x-t.x});var h,f,p=c.length,A=new Int8Array(p),g=new Int8Array(p),m=[],v=0,y=0,b=0,w=0;for(f=0;f<p;f++)A[f]=c[f].x,g[f]=c[f].y,y=Math.min(y,c[f].x),b=Math.max(b,c[f].x),w=Math.min(w,c[f].y),f<p-1&&c[f].y===c[f+1].y&&c[f].x===c[f+1].x-1?v|=1<<p-1-f:m.push(f);var x=m.length,_=new Int8Array(x),C=new Int8Array(x),S=new Uint16Array(x);for(h=0;h<x;h++)f=m[h],_[h]=c[f].x,C[h]=c[f].y,S[h]=1<<p-1-f;for(var k,B,E,I,M,D=-y,P=-w,O=t-b,L=d[r],R=new Uint8Array(t),N=[],U=s.decoder,H=s.contextCache.getContexts("GB"),j=0,Q=0,z=0;z<n;z++){if(i)if(j^=U.readBit(H,L)){N.push(R);continue}for(R=new Uint8Array(R),N.push(R),k=0;k<t;k++)if(l&&a[z][k])R[k]=0;else{if(k>=D&&k<O&&z>=P)for(Q=Q<<1&v,f=0;f<x;f++)B=z+C[f],E=k+_[f],(I=N[B][E])&&(Q|=I=S[f]);else for(Q=0,M=p-1,f=0;f<p;f++,M--)(E=k+A[f])>=0&&E<t&&(B=z+g[f])>=0&&(I=N[B][E])&&(Q|=I<<M);var V=U.readBit(H,Q);R[k]=V}}return N}function A(e,t,n,r,i,a,o,l,c){var u=h[n].coding;0===n&&(u=u.concat([l[0]]));var d,p=u.length,A=new Int32Array(p),g=new Int32Array(p);for(d=0;d<p;d++)A[d]=u[d].x,g[d]=u[d].y;var m=h[n].reference;0===n&&(m=m.concat([l[1]]));var v=m.length,y=new Int32Array(v),b=new Int32Array(v);for(d=0;d<v;d++)y[d]=m[d].x,b[d]=m[d].y;for(var w=r[0].length,x=r.length,_=f[n],C=[],S=c.decoder,k=c.contextCache.getContexts("GR"),B=0,E=0;E<t;E++){if(o)if(B^=S.readBit(k,_))throw new s("prediction is not supported");var T=new Uint8Array(e);C.push(T);for(var I=0;I<e;I++){var M,F,D=0;for(d=0;d<p;d++)M=E+g[d],F=I+A[d],M<0||F<0||F>=e?D<<=1:D=D<<1|C[M][F];for(d=0;d<v;d++)M=E+b[d]-a,F=I+y[d]-i,M<0||M>=x||F<0||F>=w?D<<=1:D=D<<1|r[M][F];var P=S.readBit(k,D);T[I]=P}}return C}function g(e,t,r,i,a,o,c,u,h,d,f,p,g,m,v,y,b,w,x){if(e&&t)throw new s("refinement with Huffman is not supported");var _,C,S=[];for(_=0;_<i;_++){if(C=new Uint8Array(r),a)for(var k=0;k<r;k++)C[k]=a;S.push(C)}var B=b.decoder,E=b.contextCache,T=e?-m.tableDeltaT.decode(x):-n(E,"IADT",B),I=0;for(_=0;_<o;){T+=e?m.tableDeltaT.decode(x):n(E,"IADT",B);for(var M=I+=e?m.tableFirstS.decode(x):n(E,"IAFS",B);;){let i=0;c>1&&(i=e?x.readBits(w):n(E,"IAIT",B));var F=c*T+i,D=e?m.symbolIDTable.decode(x):l(E,B,h),P=t&&(e?x.readBit():n(E,"IARI",B)),O=u[D],L=O[0].length,R=O.length;if(P){var N=n(E,"IARDW",B),U=n(E,"IARDH",B);O=A(L+=N,R+=U,v,O,(N>>1)+n(E,"IARDX",B),(U>>1)+n(E,"IARDY",B),!1,y,b)}var H,j,Q,z=F-(1&p?0:R-1),V=M-(2&p?L-1:0);if(d){for(H=0;H<R;H++)if(C=S[V+H]){Q=O[H];var G=Math.min(r-z,L);switch(g){case 0:for(j=0;j<G;j++)C[z+j]|=Q[j];break;case 2:for(j=0;j<G;j++)C[z+j]^=Q[j];break;default:throw new s(`operator ${g} is not supported`)}}M+=R-1}else{for(j=0;j<R;j++)if(C=S[z+j])switch(Q=O[j],g){case 0:for(H=0;H<L;H++)C[V+H]|=Q[H];break;case 2:for(H=0;H<L;H++)C[V+H]^=Q[H];break;default:throw new s(`operator ${g} is not supported`)}M+=L-1}_++;var $=e?m.tableDeltaS.decode(x):n(E,"IADS",B);if(null===$)break;M+=$+f}}return S}function m(e,t){var n={};n.number=(0,i.readUint32)(e,t);var r=e[t+4],a=63&r;if(!c[a])throw new s("invalid segment type: "+a);n.type=a,n.typeName=c[a],n.deferredNonRetain=!!(128&r);var o=!!(64&r),l=e[t+5],u=l>>5&7,h=[31&l],d=t+6;if(7===l){u=536870911&(0,i.readUint32)(e,d-1),d+=3;var f=u+7>>3;for(h[0]=e[d++];--f>0;)h.push(e[d++])}else if(5===l||6===l)throw new s("invalid referred-to flags");n.retainBits=h;let p=4;n.number<=256?p=1:n.number<=65536&&(p=2);var A,g,m=[];for(A=0;A<u;A++){let t;t=1===p?e[d]:2===p?(0,i.readUint16)(e,d):(0,i.readUint32)(e,d),m.push(t),d+=p}if(n.referredTo=m,o?(n.pageAssociation=(0,i.readUint32)(e,d),d+=4):n.pageAssociation=e[d++],n.length=(0,i.readUint32)(e,d),d+=4,4294967295===n.length){if(38!==a)throw new s("invalid unknown segment length");var v=y(e,d),w=!!(1&e[d+b]),x=new Uint8Array(6);for(w||(x[0]=255,x[1]=172),x[2]=v.height>>>24&255,x[3]=v.height>>16&255,x[4]=v.height>>8&255,x[5]=255&v.height,A=d,g=e.length;A<g;A++){for(var _=0;_<6&&x[_]===e[A+_];)_++;if(6===_){n.length=A+6;break}}if(4294967295===n.length)throw new s("segment end was not found")}return n.headerEnd=d,n}function v(e,t,n,r){for(var i=[],a=n;a<r;){var o=m(t,a);a=o.headerEnd;var s={header:o,data:t};if(e.randomAccess||(s.start=a,a+=o.length,s.end=a),i.push(s),51===o.type)break}if(e.randomAccess)for(var l=0,c=i.length;l<c;l++)i[l].start=a,a+=i[l].header.length,i[l].end=a;return i}function y(e,t){return{width:(0,i.readUint32)(e,t),height:(0,i.readUint32)(e,t+4),x:(0,i.readUint32)(e,t+8),y:(0,i.readUint32)(e,t+12),combinationOperator:7&e[t+16]}}var b=17;function w(e,t){var n,r,a,o,l=e.header,c=e.data,u=e.start,h=e.end;switch(l.type){case 0:var d={},f=(0,i.readUint16)(c,u);if(d.huffman=!!(1&f),d.refinement=!!(2&f),d.huffmanDHSelector=f>>2&3,d.huffmanDWSelector=f>>4&3,d.bitmapSizeSelector=f>>6&1,d.aggregationInstancesSelector=f>>7&1,d.bitmapCodingContextUsed=!!(256&f),d.bitmapCodingContextRetained=!!(512&f),d.template=f>>10&3,d.refinementTemplate=f>>12&1,u+=2,!d.huffman){for(o=0===d.template?4:1,r=[],a=0;a<o;a++)r.push({x:(0,i.readInt8)(c,u),y:(0,i.readInt8)(c,u+1)}),u+=2;d.at=r}if(d.refinement&&!d.refinementTemplate){for(r=[],a=0;a<2;a++)r.push({x:(0,i.readInt8)(c,u),y:(0,i.readInt8)(c,u+1)}),u+=2;d.refinementAt=r}d.numberOfExportedSymbols=(0,i.readUint32)(c,u),u+=4,d.numberOfNewSymbols=(0,i.readUint32)(c,u),u+=4,n=[d,l.number,l.referredTo,c,u,h];break;case 6:case 7:var p={};p.info=y(c,u),u+=b;var A=(0,i.readUint16)(c,u);if(u+=2,p.huffman=!!(1&A),p.refinement=!!(2&A),p.logStripSize=A>>2&3,p.stripSize=1<<p.logStripSize,p.referenceCorner=A>>4&3,p.transposed=!!(64&A),p.combinationOperator=A>>7&3,p.defaultPixelValue=A>>9&1,p.dsOffset=A<<17>>27,p.refinementTemplate=A>>15&1,p.huffman){var g=(0,i.readUint16)(c,u);u+=2,p.huffmanFS=3&g,p.huffmanDS=g>>2&3,p.huffmanDT=g>>4&3,p.huffmanRefinementDW=g>>6&3,p.huffmanRefinementDH=g>>8&3,p.huffmanRefinementDX=g>>10&3,p.huffmanRefinementDY=g>>12&3,p.huffmanRefinementSizeSelector=!!(16384&g)}if(p.refinement&&!p.refinementTemplate){for(r=[],a=0;a<2;a++)r.push({x:(0,i.readInt8)(c,u),y:(0,i.readInt8)(c,u+1)}),u+=2;p.refinementAt=r}p.numberOfSymbolInstances=(0,i.readUint32)(c,u),u+=4,n=[p,l.referredTo,c,u,h];break;case 16:const e={},t=c[u++];e.mmr=!!(1&t),e.template=t>>1&3,e.patternWidth=c[u++],e.patternHeight=c[u++],e.maxPatternIndex=(0,i.readUint32)(c,u),u+=4,n=[e,l.number,c,u,h];break;case 22:case 23:const _={};_.info=y(c,u),u+=b;const C=c[u++];_.mmr=!!(1&C),_.template=C>>1&3,_.enableSkip=!!(8&C),_.combinationOperator=C>>4&7,_.defaultPixelValue=C>>7&1,_.gridWidth=(0,i.readUint32)(c,u),u+=4,_.gridHeight=(0,i.readUint32)(c,u),u+=4,_.gridOffsetX=4294967295&(0,i.readUint32)(c,u),u+=4,_.gridOffsetY=4294967295&(0,i.readUint32)(c,u),u+=4,_.gridVectorX=(0,i.readUint16)(c,u),u+=2,_.gridVectorY=(0,i.readUint16)(c,u),u+=2,n=[_,l.referredTo,c,u,h];break;case 38:case 39:var m={};m.info=y(c,u),u+=b;var v=c[u++];if(m.mmr=!!(1&v),m.template=v>>1&3,m.prediction=!!(8&v),!m.mmr){for(o=0===m.template?4:1,r=[],a=0;a<o;a++)r.push({x:(0,i.readInt8)(c,u),y:(0,i.readInt8)(c,u+1)}),u+=2;m.at=r}n=[m,c,u,h];break;case 48:var w={width:(0,i.readUint32)(c,u),height:(0,i.readUint32)(c,u+4),resolutionX:(0,i.readUint32)(c,u+8),resolutionY:(0,i.readUint32)(c,u+12)};4294967295===w.height&&delete w.height;var x=c[u+16];(0,i.readUint16)(c,u+17),w.lossless=!!(1&x),w.refinement=!!(2&x),w.defaultPixelValue=x>>2&1,w.combinationOperator=x>>3&3,w.requiresBuffer=!!(32&x),w.combinationOperatorOverride=!!(64&x),n=[w];break;case 49:case 50:case 51:break;case 53:n=[l.number,c,u,h];break;case 62:break;default:throw new s(`segment type ${l.typeName}(${l.type})`+" is not implemented")}var _="on"+l.typeName;_ in t&&t[_].apply(t,n)}function x(e,t){for(var n=0,r=e.length;n<r;n++)w(e[n],t)}function _(){}function C(e){2===e.length?(this.isOOB=!0,this.rangeLow=0,this.prefixLength=e[0],this.rangeLength=0,this.prefixCode=e[1],this.isLowerRange=!1):(this.isOOB=!1,this.rangeLow=e[0],this.prefixLength=e[1],this.rangeLength=e[2],this.prefixCode=e[3],this.isLowerRange="lower"===e[4])}function S(e){this.children=[],e?(this.isLeaf=!0,this.rangeLength=e.rangeLength,this.rangeLow=e.rangeLow,this.isLowerRange=e.isLowerRange,this.isOOB=e.isOOB):this.isLeaf=!1}function k(e,t){t||this.assignPrefixCodes(e),this.rootNode=new S(null);for(let t=0,n=e.length;t<n;t++){const n=e[t];n.prefixLength>0&&this.rootNode.buildTree(n,n.prefixLength-1)}}_.prototype={onPageInformation:function(e){this.currentPageInfo=e;var t=e.width+7>>3,n=new Uint8ClampedArray(t*e.height);if(e.defaultPixelValue)for(var r=0,i=n.length;r<i;r++)n[r]=255;this.buffer=n},drawBitmap:function(e,t){var n,r,i,a,o=this.currentPageInfo,l=e.width,c=e.height,u=o.width+7>>3,h=o.combinationOperatorOverride?e.combinationOperator:o.combinationOperator,d=this.buffer,f=128>>(7&e.x),p=e.y*u+(e.x>>3);switch(h){case 0:for(n=0;n<c;n++){for(i=f,a=p,r=0;r<l;r++)t[n][r]&&(d[a]|=i),(i>>=1)||(i=128,a++);p+=u}break;case 2:for(n=0;n<c;n++){for(i=f,a=p,r=0;r<l;r++)t[n][r]&&(d[a]^=i),(i>>=1)||(i=128,a++);p+=u}break;default:throw new s(`operator ${h} is not supported`)}},onImmediateGenericRegion:function(e,n,r,i){var a=e.info,o=new t(n,r,i),s=p(e.mmr,a.width,a.height,e.template,e.prediction,null,e.at,o);this.drawBitmap(a,s)},onImmediateLosslessGenericRegion:function(){this.onImmediateGenericRegion.apply(this,arguments)},onSymbolDictionary:function(e,r,a,o,c,u){let h,d;e.huffman&&(h=function(e,t,n){let r,i,a,o,l=0;switch(e.huffmanDHSelector){case 0:case 1:r=E(e.huffmanDHSelector+4);break;case 3:r=I(l,t,n),l++;break;default:throw new s("invalid Huffman DH selector")}switch(e.huffmanDWSelector){case 0:case 1:i=E(e.huffmanDWSelector+2);break;case 3:i=I(l,t,n),l++;break;default:throw new s("invalid Huffman DW selector")}e.bitmapSizeSelector?(a=I(l,t,n),l++):a=E(1);o=e.aggregationInstancesSelector?I(l,t,n):E(1);return{tableDeltaHeight:r,tableDeltaWidth:i,tableBitmapSize:a,tableAggregateInstances:o}}(e,a,this.customTables),d=new T(o,c,u));var f=this.symbols;f||(this.symbols=f={});for(var m=[],v=0,y=a.length;v<y;v++){const e=f[a[v]];e&&(m=m.concat(e))}var b=new t(o,c,u);f[r]=function(e,t,r,a,o,c,u,h,d,f,m,v){if(e&&t)throw new s("symbol refinement with Huffman is not supported");var y=[],b=0,w=(0,i.log2)(r.length+a),x=m.decoder,_=m.contextCache;let C,S;for(e&&(C=E(1),S=[],w=Math.max(w,1));y.length<a;){b+=e?c.tableDeltaHeight.decode(v):n(_,"IADH",x);let i=0,a=0;const o=e?S.length:0;for(;;){var k,B=e?c.tableDeltaWidth.decode(v):n(_,"IADW",x);if(null===B)break;if(a+=i+=B,t){var T=n(_,"IAAI",x);if(T>1)k=g(e,t,i,b,0,T,1,r.concat(y),w,0,0,1,0,c,d,f,m,0,v);else{var I=l(_,x,w),D=n(_,"IARDX",x),P=n(_,"IARDY",x);k=A(i,b,d,I<r.length?r[I]:y[I-r.length],D,P,!1,f,m)}y.push(k)}else e?S.push(i):(k=p(!1,i,b,u,!1,null,h,m),y.push(k))}if(e&&!t){const e=c.tableBitmapSize.decode(v);let t;if(v.byteAlign(),0===e)t=M(v,a,b);else{const n=v.end,r=v.position+e;v.end=r,t=F(v,a,b,!1),v.end=n,v.position=r}const n=S.length;if(o===n-1)y.push(t);else{let e,r,i,a,s,l=0;for(e=o;e<n;e++){for(i=l+(a=S[e]),s=[],r=0;r<b;r++)s.push(t[r].subarray(l,i));y.push(s),l=i}}}}for(var O=[],L=[],R=!1,N=r.length+a;L.length<N;){for(var U=e?C.decode(v):n(_,"IAEX",x);U--;)L.push(R);R=!R}for(var H=0,j=r.length;H<j;H++)L[H]&&O.push(r[H]);for(var Q=0;Q<a;H++,Q++)L[H]&&O.push(y[Q]);return O}(e.huffman,e.refinement,m,e.numberOfNewSymbols,e.numberOfExportedSymbols,h,e.template,e.at,e.refinementTemplate,e.refinementAt,b,d)},onImmediateTextRegion:function(e,n,r,a,o){var l=e.info;let c,u;for(var h=this.symbols,d=[],f=0,p=n.length;f<p;f++){const e=h[n[f]];e&&(d=d.concat(e))}var A=(0,i.log2)(d.length);e.huffman&&(u=new T(r,a,o),c=function(e,t,n,r,i){const a=[];for(let e=0;e<=34;e++){const t=i.readBits(4);a.push(new C([e,t,0,0]))}const o=new k(a,!1);a.length=0;for(let e=0;e<r;){const t=o.decode(i);if(t>=32){let n,r,o;switch(t){case 32:if(0===e)throw new s("no previous value in symbol ID table");r=i.readBits(2)+3,n=a[e-1].prefixLength;break;case 33:r=i.readBits(3)+3,n=0;break;case 34:r=i.readBits(7)+11,n=0;break;default:throw new s("invalid code length in symbol ID table")}for(o=0;o<r;o++)a.push(new C([e,n,0,0])),e++}else a.push(new C([e,t,0,0])),e++}i.byteAlign();const l=new k(a,!1);let c,u,h,d=0;switch(e.huffmanFS){case 0:case 1:c=E(e.huffmanFS+6);break;case 3:c=I(d,t,n),d++;break;default:throw new s("invalid Huffman FS selector")}switch(e.huffmanDS){case 0:case 1:case 2:u=E(e.huffmanDS+8);break;case 3:u=I(d,t,n),d++;break;default:throw new s("invalid Huffman DS selector")}switch(e.huffmanDT){case 0:case 1:case 2:h=E(e.huffmanDT+11);break;case 3:h=I(d,t,n),d++;break;default:throw new s("invalid Huffman DT selector")}if(e.refinement)throw new s("refinement with Huffman is not supported");return{symbolIDTable:l,tableFirstS:c,tableDeltaS:u,tableDeltaT:h}}(e,n,this.customTables,d.length,u));var m=new t(r,a,o),v=g(e.huffman,e.refinement,l.width,l.height,e.defaultPixelValue,e.numberOfSymbolInstances,e.stripSize,d,A,e.transposed,e.dsOffset,e.referenceCorner,e.combinationOperator,c,e.refinementTemplate,e.refinementAt,m,e.logStripSize,u);this.drawBitmap(l,v)},onImmediateLosslessTextRegion:function(){this.onImmediateTextRegion.apply(this,arguments)},onPatternDictionary(e,n,r,i,a){let o=this.patterns;o||(this.patterns=o={});const s=new t(r,i,a);o[n]=function(e,t,n,r,i,a){const o=[];e||(o.push({x:-t,y:0}),0===i&&(o.push({x:-3,y:-1}),o.push({x:2,y:-2}),o.push({x:-2,y:-2})));const s=p(e,(r+1)*t,n,i,!1,null,o,a),l=[];for(let e=0;e<=r;e++){const r=[],i=t*e,a=i+t;for(let e=0;e<n;e++)r.push(s[e].subarray(i,a));l.push(r)}return l}(e.mmr,e.patternWidth,e.patternHeight,e.maxPatternIndex,e.template,s)},onImmediateHalftoneRegion(e,n,r,a,o){const l=this.patterns[n[0]],c=e.info,u=new t(r,a,o),h=function(e,t,n,r,a,o,l,c,u,h,d,f,A,g,m){if(l)throw new s("skip is not supported");if(0!==c)throw new s("operator "+c+" is not supported in halftone region");const v=[];let y,b,w;for(y=0;y<a;y++){if(w=new Uint8Array(r),o)for(b=0;b<r;b++)w[b]=o;v.push(w)}const x=t.length,_=t[0],C=_[0].length,S=_.length,k=(0,i.log2)(x),B=[];e||(B.push({x:n<=1?3:2,y:-1}),0===n&&(B.push({x:-3,y:-1}),B.push({x:2,y:-2}),B.push({x:-2,y:-2})));const E=[];let I,M,D,P,O,L,R,N,U,H,j;for(e&&(I=new T(m.data,m.start,m.end)),y=k-1;y>=0;y--)M=e?F(I,u,h,!0):p(!1,u,h,n,!1,null,B,m),E[y]=M;for(D=0;D<h;D++)for(P=0;P<u;P++){for(O=0,L=0,b=k-1;b>=0;b--)L|=(O=E[b][D][P]^O)<<b;if(R=t[L],U=f+D*A-P*g>>8,(N=d+D*g+P*A>>8)>=0&&N+C<=r&&U>=0&&U+S<=a)for(y=0;y<S;y++)for(j=v[U+y],H=R[y],b=0;b<C;b++)j[N+b]|=H[b];else{let e,t;for(y=0;y<S;y++)if(!((t=U+y)<0||t>=a))for(j=v[t],H=R[y],b=0;b<C;b++)(e=N+b)>=0&&e<r&&(j[e]|=H[b])}}return v}(e.mmr,l,e.template,c.width,c.height,e.defaultPixelValue,e.enableSkip,e.combinationOperator,e.gridWidth,e.gridHeight,e.gridOffsetX,e.gridOffsetY,e.gridVectorX,e.gridVectorY,u);this.drawBitmap(c,h)},onImmediateLosslessHalftoneRegion(){this.onImmediateHalftoneRegion.apply(this,arguments)},onTables(e,t,n,r){let a=this.customTables;a||(this.customTables=a={}),a[e]=function(e,t,n){const r=e[t],a=4294967295&(0,i.readUint32)(e,t+1),o=4294967295&(0,i.readUint32)(e,t+5),s=new T(e,t+9,n),l=1+(r>>1&7),c=1+(r>>4&7),u=[];let h,d,f=a;do{h=s.readBits(l),d=s.readBits(c),u.push(new C([f,h,d,0])),f+=1<<d}while(f<o);h=s.readBits(l),u.push(new C([a-1,h,32,0,"lower"])),h=s.readBits(l),u.push(new C([o,h,32,0])),1&r&&(h=s.readBits(l),u.push(new C([h,0])));return new k(u,!1)}(t,n,r)}},S.prototype={buildTree(e,t){const n=e.prefixCode>>t&1;if(t<=0)this.children[n]=new S(e);else{let r=this.children[n];r||(this.children[n]=r=new S(null)),r.buildTree(e,t-1)}},decodeNode(e){if(this.isLeaf){if(this.isOOB)return null;const t=e.readBits(this.rangeLength);return this.rangeLow+(this.isLowerRange?-t:t)}const t=this.children[e.readBit()];if(!t)throw new s("invalid Huffman data");return t.decodeNode(e)}},k.prototype={decode(e){return this.rootNode.decodeNode(e)},assignPrefixCodes(e){const t=e.length;let n=0;for(let r=0;r<t;r++)n=Math.max(n,e[r].prefixLength);const r=new Uint32Array(n+1);for(let n=0;n<t;n++)r[e[n].prefixLength]++;let i,a,o,s=1,l=0;for(r[0]=0;s<=n;){for(i=l=l+r[s-1]<<1,a=0;a<t;)(o=e[a]).prefixLength===s&&(o.prefixCode=i,i++),a++;s++}}};const B={};function E(e){let t,n=B[e];if(n)return n;switch(e){case 1:t=[[0,1,4,0],[16,2,8,2],[272,3,16,6],[65808,3,32,7]];break;case 2:t=[[0,1,0,0],[1,2,0,2],[2,3,0,6],[3,4,3,14],[11,5,6,30],[75,6,32,62],[6,63]];break;case 3:t=[[-256,8,8,254],[0,1,0,0],[1,2,0,2],[2,3,0,6],[3,4,3,14],[11,5,6,30],[-257,8,32,255,"lower"],[75,7,32,126],[6,62]];break;case 4:t=[[1,1,0,0],[2,2,0,2],[3,3,0,6],[4,4,3,14],[12,5,6,30],[76,5,32,31]];break;case 5:t=[[-255,7,8,126],[1,1,0,0],[2,2,0,2],[3,3,0,6],[4,4,3,14],[12,5,6,30],[-256,7,32,127,"lower"],[76,6,32,62]];break;case 6:t=[[-2048,5,10,28],[-1024,4,9,8],[-512,4,8,9],[-256,4,7,10],[-128,5,6,29],[-64,5,5,30],[-32,4,5,11],[0,2,7,0],[128,3,7,2],[256,3,8,3],[512,4,9,12],[1024,4,10,13],[-2049,6,32,62,"lower"],[2048,6,32,63]];break;case 7:t=[[-1024,4,9,8],[-512,3,8,0],[-256,4,7,9],[-128,5,6,26],[-64,5,5,27],[-32,4,5,10],[0,4,5,11],[32,5,5,28],[64,5,6,29],[128,4,7,12],[256,3,8,1],[512,3,9,2],[1024,3,10,3],[-1025,5,32,30,"lower"],[2048,5,32,31]];break;case 8:t=[[-15,8,3,252],[-7,9,1,508],[-5,8,1,253],[-3,9,0,509],[-2,7,0,124],[-1,4,0,10],[0,2,1,0],[2,5,0,26],[3,6,0,58],[4,3,4,4],[20,6,1,59],[22,4,4,11],[38,4,5,12],[70,5,6,27],[134,5,7,28],[262,6,7,60],[390,7,8,125],[646,6,10,61],[-16,9,32,510,"lower"],[1670,9,32,511],[2,1]];break;case 9:t=[[-31,8,4,252],[-15,9,2,508],[-11,8,2,253],[-7,9,1,509],[-5,7,1,124],[-3,4,1,10],[-1,3,1,2],[1,3,1,3],[3,5,1,26],[5,6,1,58],[7,3,5,4],[39,6,2,59],[43,4,5,11],[75,4,6,12],[139,5,7,27],[267,5,8,28],[523,6,8,60],[779,7,9,125],[1291,6,11,61],[-32,9,32,510,"lower"],[3339,9,32,511],[2,0]];break;case 10:t=[[-21,7,4,122],[-5,8,0,252],[-4,7,0,123],[-3,5,0,24],[-2,2,2,0],[2,5,0,25],[3,6,0,54],[4,7,0,124],[5,8,0,253],[6,2,6,1],[70,5,5,26],[102,6,5,55],[134,6,6,56],[198,6,7,57],[326,6,8,58],[582,6,9,59],[1094,6,10,60],[2118,7,11,125],[-22,8,32,254,"lower"],[4166,8,32,255],[2,2]];break;case 11:t=[[1,1,0,0],[2,2,1,2],[4,4,0,12],[5,4,1,13],[7,5,1,28],[9,5,2,29],[13,6,2,60],[17,7,2,122],[21,7,3,123],[29,7,4,124],[45,7,5,125],[77,7,6,126],[141,7,32,127]];break;case 12:t=[[1,1,0,0],[2,2,0,2],[3,3,1,6],[5,5,0,28],[6,5,1,29],[8,6,1,60],[10,7,0,122],[11,7,1,123],[13,7,2,124],[17,7,3,125],[25,7,4,126],[41,8,5,254],[73,8,32,255]];break;case 13:t=[[1,1,0,0],[2,3,0,4],[3,4,0,12],[4,5,0,28],[5,4,1,13],[7,3,3,5],[15,6,1,58],[17,6,2,59],[21,6,3,60],[29,6,4,61],[45,6,5,62],[77,7,6,126],[141,7,32,127]];break;case 14:t=[[-2,3,0,4],[-1,3,0,5],[0,1,0,0],[1,3,0,6],[2,3,0,7]];break;case 15:t=[[-24,7,4,124],[-8,6,2,60],[-4,5,1,28],[-2,4,0,12],[-1,3,0,4],[0,1,0,0],[1,3,0,5],[2,4,0,13],[3,5,1,29],[5,6,2,61],[9,7,4,125],[-25,7,32,126,"lower"],[25,7,32,127]];break;default:throw new s(`standard table B.${e} does not exist`)}for(let e=0,n=t.length;e<n;e++)t[e]=new C(t[e]);return n=new k(t,!0),B[e]=n,n}function T(e,t,n){this.data=e,this.start=t,this.end=n,this.position=t,this.shift=-1,this.currentByte=0}function I(e,t,n){let r=0;for(let i=0,a=t.length;i<a;i++){const a=n[t[i]];if(a){if(e===r)return a;r++}}throw new s("can't find custom Huffman table")}function M(e,t,n){const r=[];for(let i=0;i<n;i++){const n=new Uint8Array(t);r.push(n);for(let r=0;r<t;r++)n[r]=e.readBit();e.byteAlign()}return r}function F(e,t,n,r){const i={K:-1,Columns:t,Rows:n,BlackIs1:!0,EndOfBlock:r},a=new o.CCITTFaxDecoder(e,i),s=[];let l,c=!1;for(let e=0;e<n;e++){const e=new Uint8Array(t);s.push(e);let n=-1;for(let r=0;r<t;r++)n<0&&(-1===(l=a.readNextChar())&&(l=0,c=!0),n=7),e[r]=l>>n&1,n--}if(r&&!c){const e=5;for(let t=0;t<e&&-1!==a.readNextChar();t++);}return s}function D(){}return T.prototype={readBit(){if(this.shift<0){if(this.position>=this.end)throw new s("end of data while reading bit");this.currentByte=this.data[this.position++],this.shift=7}const e=this.currentByte>>this.shift&1;return this.shift--,e},readBits(e){let t,n=0;for(t=e-1;t>=0;t--)n|=this.readBit()<<t;return n},byteAlign(){this.shift=-1},next(){return this.position>=this.end?-1:this.data[this.position++]}},D.prototype={parseChunks:e=>(function(e){for(var t=new _,n=0,r=e.length;n<r;n++){var i=e[n];x(v({},i.data,i.start,i.end),t)}return t.buffer})(e),parse(e){const{imgData:t,width:n,height:r}=function(e){const t=e.length;let n=0;if(151!==e[n]||74!==e[n+1]||66!==e[n+2]||50!==e[n+3]||13!==e[n+4]||10!==e[n+5]||26!==e[n+6]||10!==e[n+7])throw new s("parseJbig2 - invalid header.");const r=Object.create(null);n+=8;const a=e[n++];r.randomAccess=!(1&a),2&a||(r.numberOfPages=(0,i.readUint32)(e,n),n+=4);const o=v(r,e,n,t),l=new _;x(o,l);const{width:c,height:u}=l.currentPageInfo,h=l.buffer,d=new Uint8ClampedArray(c*u);let f=0,p=0;for(let e=0;e<u;e++){let e,t=0;for(let n=0;n<c;n++)t||(t=128,e=h[p++]),d[f++]=e&t?0:255,t>>=1}return{imgData:d,width:c,height:u}}(e);return this.width=n,this.height=r,t}},D}();t.Jbig2Image=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArithmeticDecoder=void 0;const r=[{qe:22017,nmps:1,nlps:1,switchFlag:1},{qe:13313,nmps:2,nlps:6,switchFlag:0},{qe:6145,nmps:3,nlps:9,switchFlag:0},{qe:2753,nmps:4,nlps:12,switchFlag:0},{qe:1313,nmps:5,nlps:29,switchFlag:0},{qe:545,nmps:38,nlps:33,switchFlag:0},{qe:22017,nmps:7,nlps:6,switchFlag:1},{qe:21505,nmps:8,nlps:14,switchFlag:0},{qe:18433,nmps:9,nlps:14,switchFlag:0},{qe:14337,nmps:10,nlps:14,switchFlag:0},{qe:12289,nmps:11,nlps:17,switchFlag:0},{qe:9217,nmps:12,nlps:18,switchFlag:0},{qe:7169,nmps:13,nlps:20,switchFlag:0},{qe:5633,nmps:29,nlps:21,switchFlag:0},{qe:22017,nmps:15,nlps:14,switchFlag:1},{qe:21505,nmps:16,nlps:14,switchFlag:0},{qe:20737,nmps:17,nlps:15,switchFlag:0},{qe:18433,nmps:18,nlps:16,switchFlag:0},{qe:14337,nmps:19,nlps:17,switchFlag:0},{qe:13313,nmps:20,nlps:18,switchFlag:0},{qe:12289,nmps:21,nlps:19,switchFlag:0},{qe:10241,nmps:22,nlps:19,switchFlag:0},{qe:9217,nmps:23,nlps:20,switchFlag:0},{qe:8705,nmps:24,nlps:21,switchFlag:0},{qe:7169,nmps:25,nlps:22,switchFlag:0},{qe:6145,nmps:26,nlps:23,switchFlag:0},{qe:5633,nmps:27,nlps:24,switchFlag:0},{qe:5121,nmps:28,nlps:25,switchFlag:0},{qe:4609,nmps:29,nlps:26,switchFlag:0},{qe:4353,nmps:30,nlps:27,switchFlag:0},{qe:2753,nmps:31,nlps:28,switchFlag:0},{qe:2497,nmps:32,nlps:29,switchFlag:0},{qe:2209,nmps:33,nlps:30,switchFlag:0},{qe:1313,nmps:34,nlps:31,switchFlag:0},{qe:1089,nmps:35,nlps:32,switchFlag:0},{qe:673,nmps:36,nlps:33,switchFlag:0},{qe:545,nmps:37,nlps:34,switchFlag:0},{qe:321,nmps:38,nlps:35,switchFlag:0},{qe:273,nmps:39,nlps:36,switchFlag:0},{qe:133,nmps:40,nlps:37,switchFlag:0},{qe:73,nmps:41,nlps:38,switchFlag:0},{qe:37,nmps:42,nlps:39,switchFlag:0},{qe:21,nmps:43,nlps:40,switchFlag:0},{qe:9,nmps:44,nlps:41,switchFlag:0},{qe:5,nmps:45,nlps:42,switchFlag:0},{qe:1,nmps:45,nlps:43,switchFlag:0},{qe:22017,nmps:46,nlps:46,switchFlag:0}];t.ArithmeticDecoder=class{constructor(e,t,n){this.data=e,this.bp=t,this.dataEnd=n,this.chigh=e[t],this.clow=0,this.byteIn(),this.chigh=this.chigh<<7&65535|this.clow>>9&127,this.clow=this.clow<<7&65535,this.ct-=7,this.a=32768}byteIn(){const e=this.data;let t=this.bp;255===e[t]?e[t+1]>143?(this.clow+=65280,this.ct=8):(t++,this.clow+=e[t]<<9,this.ct=7,this.bp=t):(t++,this.clow+=t<this.dataEnd?e[t]<<8:65280,this.ct=8,this.bp=t),this.clow>65535&&(this.chigh+=this.clow>>16,this.clow&=65535)}readBit(e,t){let n=e[t]>>1,i=1&e[t];const a=r[n],o=a.qe;let s,l=this.a-o;if(this.chigh<o)l<o?(l=o,s=i,n=a.nmps):(l=o,s=1^i,1===a.switchFlag&&(i=s),n=a.nlps);else{if(this.chigh-=o,0!=(32768&l))return this.a=l,i;l<o?(s=1^i,1===a.switchFlag&&(i=s),n=a.nlps):(s=i,n=a.nmps)}do{0===this.ct&&this.byteIn(),l<<=1,this.chigh=this.chigh<<1&65535|this.clow>>15&1,this.clow=this.clow<<1&65535,this.ct--}while(0==(32768&l));return this.a=l,e[t]=n<<1|i,s}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JpegStream=void 0;var r=n(12),i=n(5),a=n(19),o=n(2);const s=function(){function e(e,t,n,i){let a;for(;-1!==(a=e.getByte());)if(255===a){e.skip(-1);break}this.stream=e,this.maybeLength=t,this.dict=n,this.params=i,r.DecodeStream.call(this,t)}return e.prototype=Object.create(r.DecodeStream.prototype),Object.defineProperty(e.prototype,"bytes",{get:function(){return(0,o.shadow)(this,"bytes",this.stream.getBytes(this.maybeLength))},configurable:!0}),e.prototype.ensureBuffer=function(e){},e.prototype.readBlock=function(){if(this.eof)return;const e={decodeTransform:void 0,colorTransform:void 0},t=this.dict.getArray("Decode","D");if(this.forceRGB&&Array.isArray(t)){const n=this.dict.get("BitsPerComponent")||8,r=t.length,i=new Int32Array(r);let a=!1;const o=(1<<n)-1;for(let e=0;e<r;e+=2)i[e]=256*(t[e+1]-t[e])|0,i[e+1]=t[e]*o|0,256===i[e]&&0===i[e+1]||(a=!0);a&&(e.decodeTransform=i)}if((0,i.isDict)(this.params)){const t=this.params.get("ColorTransform");Number.isInteger(t)&&(e.colorTransform=t)}const n=new a.JpegImage(e);n.parse(this.bytes);const r=n.getData({width:this.drawWidth,height:this.drawHeight,forceRGB:this.forceRGB,isSourcePDF:!0});this.buffer=r,this.bufferLength=r.length,this.eof=!0},e}();t.JpegStream=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JpegImage=void 0;var r=n(2),i=n(8);class a extends r.BaseException{constructor(e){super(`JPEG error: ${e}`)}}class o extends r.BaseException{constructor(e,t){super(e),this.scanLines=t}}class s extends r.BaseException{}var l=function(){var e=new Uint8Array([0,1,8,16,9,2,3,10,17,24,32,25,18,11,4,5,12,19,26,33,40,48,41,34,27,20,13,6,7,14,21,28,35,42,49,56,57,50,43,36,29,22,15,23,30,37,44,51,58,59,52,45,38,31,39,46,53,60,61,54,47,55,62,63]),t=4017,n=799,l=3406,c=2276,u=1567,h=3784,d=5793,f=2896;function p({decodeTransform:e=null,colorTransform:t=-1}={}){this._decodeTransform=e,this._colorTransform=t}function A(e,t){for(var n,r,i=0,a=[],o=16;o>0&&!e[o-1];)o--;a.push({children:[],index:0});var s,l=a[0];for(n=0;n<o;n++){for(r=0;r<e[n];r++){for((l=a.pop()).children[l.index]=t[i];l.index>0;)l=a.pop();for(l.index++,a.push(l);a.length<=n;)a.push(s={children:[],index:0}),l.children[l.index]=s.children,l=s;i++}n+1<o&&(a.push(s={children:[],index:0}),l.children[l.index]=s.children,l=s)}return a[0].children}function g(e,t,n){return 64*((e.blocksPerLine+1)*t+n)}function m(t,n,l,c,u,h,d,f,p,A=!1){var m=l.mcusPerLine,v=l.progressive;const y=n;let w=0,x=0;function _(){if(x>0)return w>>--x&1;if(255===(w=t[n++])){var e=t[n++];if(e){if(220===e&&A){n+=2;const e=(0,i.readUint16)(t,n);if(n+=2,e>0&&e!==l.scanLines)throw new o("Found DNL marker (0xFFDC) while parsing scan data",e)}else if(217===e){if(A){const e=8*I;if(e>0&&e<l.scanLines/10)throw new o("Found EOI marker (0xFFD9) while parsing scan data, possibly caused by incorrect `scanLines` parameter",e)}throw new s("Found EOI marker (0xFFD9) while parsing scan data")}throw new a(`unexpected marker ${(w<<8|e).toString(16)}`)}}return x=7,w>>>7}function C(e){for(var t=e;;){switch(typeof(t=t[_()])){case"number":return t;case"object":continue}throw new a("invalid huffman sequence")}}function S(e){for(var t=0;e>0;)t=t<<1|_(),e--;return t}function k(e){if(1===e)return 1===_()?1:-1;var t=S(e);return t>=1<<e-1?t:t+(-1<<e)+1}var B=0;var E,T=0;let I=0;function M(e,t,n,r,i){var a=n%m;I=(n/m|0)*e.v+r;var o=a*e.h+i;t(e,g(e,I,o))}function F(e,t,n){I=n/e.blocksPerLine|0;var r=n%e.blocksPerLine;t(e,g(e,I,r))}var D,P,O,L,R,N,U=c.length;N=v?0===h?0===f?function(e,t){var n=C(e.huffmanTableDC),r=0===n?0:k(n)<<p;e.blockData[t]=e.pred+=r}:function(e,t){e.blockData[t]|=_()<<p}:0===f?function(t,n){if(B>0)B--;else for(var r=h,i=d;r<=i;){var a=C(t.huffmanTableAC),o=15&a,s=a>>4;if(0!==o){var l=e[r+=s];t.blockData[n+l]=k(o)*(1<<p),r++}else{if(s<15){B=S(s)+(1<<s)-1;break}r+=16}}}:function(t,n){for(var r,i,o=h,s=d,l=0;o<=s;){const s=n+e[o],c=t.blockData[s]<0?-1:1;switch(T){case 0:if(l=(i=C(t.huffmanTableAC))>>4,0==(r=15&i))l<15?(B=S(l)+(1<<l),T=4):(l=16,T=1);else{if(1!==r)throw new a("invalid ACn encoding");E=k(r),T=l?2:3}continue;case 1:case 2:t.blockData[s]?t.blockData[s]+=c*(_()<<p):0==--l&&(T=2===T?3:0);break;case 3:t.blockData[s]?t.blockData[s]+=c*(_()<<p):(t.blockData[s]=E<<p,T=0);break;case 4:t.blockData[s]&&(t.blockData[s]+=c*(_()<<p))}o++}4===T&&0==--B&&(T=0)}:function(t,n){var r=C(t.huffmanTableDC),i=0===r?0:k(r);t.blockData[n]=t.pred+=i;for(var a=1;a<64;){var o=C(t.huffmanTableAC),s=15&o,l=o>>4;if(0!==s){var c=e[a+=l];t.blockData[n+c]=k(s),a++}else{if(l<15)break;a+=16}}};var H,j,Q,z,V=0;for(j=1===U?c[0].blocksPerLine*c[0].blocksPerColumn:m*l.mcusPerColumn;V<=j;){var G=u?Math.min(j-V,u):j;if(G>0){for(P=0;P<U;P++)c[P].pred=0;if(B=0,1===U)for(D=c[0],R=0;R<G;R++)F(D,N,V),V++;else for(R=0;R<G;R++){for(P=0;P<U;P++)for(Q=(D=c[P]).h,z=D.v,O=0;O<z;O++)for(L=0;L<Q;L++)M(D,N,V,O,L);V++}}if(x=0,!(H=b(t,n)))break;if(H.invalid){const e=G>0?"unexpected":"excessive";(0,r.warn)(`decodeScan - ${e} MCU data, current marker is: ${H.invalid}`),n=H.offset}if(!(H.marker>=65488&&H.marker<=65495))break;n+=2}return n-y}function v(e,r,i){var o,s,p,A,g,m,v,y,b,w,x,_,C,S,k,B,E,T=e.quantizationTable,I=e.blockData;if(!T)throw new a("missing required Quantization Table.");for(var M=0;M<64;M+=8)b=I[r+M],w=I[r+M+1],x=I[r+M+2],_=I[r+M+3],C=I[r+M+4],S=I[r+M+5],k=I[r+M+6],B=I[r+M+7],b*=T[M],0!=(w|x|_|C|S|k|B)?(w*=T[M+1],x*=T[M+2],_*=T[M+3],C*=T[M+4],S*=T[M+5],k*=T[M+6],B*=T[M+7],s=(o=(o=d*b+128>>8)+(s=d*C+128>>8)+1>>1)-s,E=(p=x)*h+(A=k)*u+128>>8,p=p*u-A*h+128>>8,v=(g=(g=f*(w-B)+128>>8)+(v=S<<4)+1>>1)-v,m=(y=(y=f*(w+B)+128>>8)+(m=_<<4)+1>>1)-m,A=(o=o+(A=E)+1>>1)-A,p=(s=s+p+1>>1)-p,E=g*c+y*l+2048>>12,g=g*l-y*c+2048>>12,y=E,E=m*n+v*t+2048>>12,m=m*t-v*n+2048>>12,v=E,i[M]=o+y,i[M+7]=o-y,i[M+1]=s+v,i[M+6]=s-v,i[M+2]=p+m,i[M+5]=p-m,i[M+3]=A+g,i[M+4]=A-g):(E=d*b+512>>10,i[M]=E,i[M+1]=E,i[M+2]=E,i[M+3]=E,i[M+4]=E,i[M+5]=E,i[M+6]=E,i[M+7]=E);for(var F=0;F<8;++F)b=i[F],0!=((w=i[F+8])|(x=i[F+16])|(_=i[F+24])|(C=i[F+32])|(S=i[F+40])|(k=i[F+48])|(B=i[F+56]))?(s=(o=4112+((o=d*b+2048>>12)+(s=d*C+2048>>12)+1>>1))-s,E=(p=x)*h+(A=k)*u+2048>>12,p=p*u-A*h+2048>>12,A=E,v=(g=(g=f*(w-B)+2048>>12)+(v=S)+1>>1)-v,m=(y=(y=f*(w+B)+2048>>12)+(m=_)+1>>1)-m,E=g*c+y*l+2048>>12,g=g*l-y*c+2048>>12,y=E,E=m*n+v*t+2048>>12,m=m*t-v*n+2048>>12,B=(o=o+A+1>>1)-y,w=(s=s+p+1>>1)+(v=E),k=s-v,x=(p=s-p)+m,S=p-m,_=(A=o-A)+g,C=A-g,(b=o+y)<16?b=0:b>=4080?b=255:b>>=4,w<16?w=0:w>=4080?w=255:w>>=4,x<16?x=0:x>=4080?x=255:x>>=4,_<16?_=0:_>=4080?_=255:_>>=4,C<16?C=0:C>=4080?C=255:C>>=4,S<16?S=0:S>=4080?S=255:S>>=4,k<16?k=0:k>=4080?k=255:k>>=4,B<16?B=0:B>=4080?B=255:B>>=4,I[r+F]=b,I[r+F+8]=w,I[r+F+16]=x,I[r+F+24]=_,I[r+F+32]=C,I[r+F+40]=S,I[r+F+48]=k,I[r+F+56]=B):(E=(E=d*b+8192>>14)<-2040?0:E>=2024?255:E+2056>>4,I[r+F]=E,I[r+F+8]=E,I[r+F+16]=E,I[r+F+24]=E,I[r+F+32]=E,I[r+F+40]=E,I[r+F+48]=E,I[r+F+56]=E)}function y(e,t){for(var n=t.blocksPerLine,r=t.blocksPerColumn,i=new Int16Array(64),a=0;a<r;a++)for(var o=0;o<n;o++){v(t,g(t,a,o),i)}return t.blockData}function b(e,t,n=t){const r=e.length-1;var a=n<t?n:t;if(t>=r)return null;var o=(0,i.readUint16)(e,t);if(o>=65472&&o<=65534)return{invalid:null,marker:o,offset:t};for(var s=(0,i.readUint16)(e,a);!(s>=65472&&s<=65534);){if(++a>=r)return null;s=(0,i.readUint16)(e,a)}return{invalid:o.toString(16),marker:s,offset:a}}return p.prototype={parse(t,{dnlScanLines:n=null}={}){function l(){const e=(0,i.readUint16)(t,d);let n=(d+=2)+e-2;var a=b(t,n,d);a&&a.invalid&&((0,r.warn)("readDataBlock - incorrect length, current marker is: "+a.invalid),n=a.offset);var o=t.subarray(d,n);return d+=o.length,o}function c(e){for(var t=Math.ceil(e.samplesPerLine/8/e.maxH),n=Math.ceil(e.scanLines/8/e.maxV),r=0;r<e.components.length;r++){Q=e.components[r];var i=Math.ceil(Math.ceil(e.samplesPerLine/8)*Q.h/e.maxH),a=Math.ceil(Math.ceil(e.scanLines/8)*Q.v/e.maxV),o=t*Q.h,s=64*(n*Q.v)*(o+1);Q.blockData=new Int16Array(s),Q.blocksPerLine=i,Q.blocksPerColumn=a}e.mcusPerLine=t,e.mcusPerColumn=n}var u,h,d=0,f=null,p=null;let g=0;var v=[],w=[],x=[];let _=(0,i.readUint16)(t,d);if(d+=2,65496!==_)throw new a("SOI not found");_=(0,i.readUint16)(t,d),d+=2;e:for(;65497!==_;){var C,S,k;switch(_){case 65504:case 65505:case 65506:case 65507:case 65508:case 65509:case 65510:case 65511:case 65512:case 65513:case 65514:case 65515:case 65516:case 65517:case 65518:case 65519:case 65534:var B=l();65504===_&&74===B[0]&&70===B[1]&&73===B[2]&&70===B[3]&&0===B[4]&&(f={version:{major:B[5],minor:B[6]},densityUnits:B[7],xDensity:B[8]<<8|B[9],yDensity:B[10]<<8|B[11],thumbWidth:B[12],thumbHeight:B[13],thumbData:B.subarray(14,14+3*B[12]*B[13])}),65518===_&&65===B[0]&&100===B[1]&&111===B[2]&&98===B[3]&&101===B[4]&&(p={version:B[5]<<8|B[6],flags0:B[7]<<8|B[8],flags1:B[9]<<8|B[10],transformCode:B[11]});break;case 65499:for(var E=(0,i.readUint16)(t,d)+(d+=2)-2;d<E;){var T=t[d++],I=new Uint16Array(64);if(T>>4==0)for(S=0;S<64;S++)I[e[S]]=t[d++];else{if(T>>4!=1)throw new a("DQT - invalid table spec");for(S=0;S<64;S++)I[e[S]]=(0,i.readUint16)(t,d),d+=2}v[15&T]=I}break;case 65472:case 65473:case 65474:if(u)throw new a("Only single frame JPEGs supported");d+=2,(u={}).extended=65473===_,u.progressive=65474===_,u.precision=t[d++];const y=(0,i.readUint16)(t,d);d+=2,u.scanLines=n||y,u.samplesPerLine=(0,i.readUint16)(t,d),d+=2,u.components=[],u.componentIds={};var M,F=t[d++],D=0,P=0;for(C=0;C<F;C++){M=t[d];var O=t[d+1]>>4,L=15&t[d+1];D<O&&(D=O),P<L&&(P=L);var R=t[d+2];k=u.components.push({h:O,v:L,quantizationId:R,quantizationTable:null}),u.componentIds[M]=k-1,d+=3}u.maxH=D,u.maxV=P,c(u);break;case 65476:const X=(0,i.readUint16)(t,d);for(d+=2,C=2;C<X;){var N=t[d++],U=new Uint8Array(16),H=0;for(S=0;S<16;S++,d++)H+=U[S]=t[d];var j=new Uint8Array(H);for(S=0;S<H;S++,d++)j[S]=t[d];C+=17+H,(N>>4==0?x:w)[15&N]=A(U,j)}break;case 65501:d+=2,h=(0,i.readUint16)(t,d),d+=2;break;case 65498:const J=1==++g&&!n;d+=2;var Q,z=t[d++],V=[];for(C=0;C<z;C++){var G=u.componentIds[t[d++]];Q=u.components[G];var $=t[d++];Q.huffmanTableDC=x[$>>4],Q.huffmanTableAC=w[15&$],V.push(Q)}var q=t[d++],W=t[d++],K=t[d++];try{var Y=m(t,d,u,V,h,q,W,K>>4,15&K,J);d+=Y}catch(e){if(e instanceof o)return(0,r.warn)(`${e.message} -- attempting to re-parse the JPEG image.`),this.parse(t,{dnlScanLines:e.scanLines});if(e instanceof s){(0,r.warn)(`${e.message} -- ignoring the rest of the image data.`);break e}throw e}break;case 65500:d+=4;break;case 65535:255!==t[d]&&d--;break;default:const Z=b(t,d-2,d-3);if(Z&&Z.invalid){(0,r.warn)("JpegImage.parse - unexpected data, current marker is: "+Z.invalid),d=Z.offset;break}if(d>=t.length-1){(0,r.warn)("JpegImage.parse - reached the end of the image data without finding an EOI marker (0xFFD9).");break e}throw new a("JpegImage.parse - unknown marker: "+_.toString(16))}_=(0,i.readUint16)(t,d),d+=2}for(this.width=u.samplesPerLine,this.height=u.scanLines,this.jfif=f,this.adobe=p,this.components=[],C=0;C<u.components.length;C++){var X=v[(Q=u.components[C]).quantizationId];X&&(Q.quantizationTable=X),this.components.push({output:y(0,Q),scaleX:Q.h/u.maxH,scaleY:Q.v/u.maxV,blocksPerLine:Q.blocksPerLine,blocksPerColumn:Q.blocksPerColumn})}this.numComponents=this.components.length},_getLinearizedBlockData(e,t,n=!1){var r,i,a,o,s,l,c,u,h,d,f,p=this.width/e,A=this.height/t,g=0,m=this.components.length,v=e*t*m,y=new Uint8ClampedArray(v),b=new Uint32Array(e);let w;for(c=0;c<m;c++){if(i=(r=this.components[c]).scaleX*p,a=r.scaleY*A,g=c,f=r.output,o=r.blocksPerLine+1<<3,i!==w){for(s=0;s<e;s++)u=0|s*i,b[s]=(4294967288&u)<<3|7&u;w=i}for(l=0;l<t;l++)for(d=o*(4294967288&(u=0|l*a))|(7&u)<<3,s=0;s<e;s++)y[g]=f[d+b[s]],g+=m}let x=this._decodeTransform;if(n||4!==m||x||(x=new Int32Array([-256,255,-256,255,-256,255,-256,255])),x)for(c=0;c<v;)for(u=0,h=0;u<m;u++,c++,h+=2)y[c]=(y[c]*x[h]>>8)+x[h+1];return y},get _isColorConversionNeeded(){return this.adobe?!!this.adobe.transformCode:3===this.numComponents?0!==this._colorTransform:1===this._colorTransform},_convertYccToRgb:function(e){for(var t,n,r,i=0,a=e.length;i<a;i+=3)t=e[i],n=e[i+1],r=e[i+2],e[i]=t-179.456+1.402*r,e[i+1]=t+135.459-.344*n-.714*r,e[i+2]=t-226.816+1.772*n;return e},_convertYcckToRgb:function(e){for(var t,n,r,i,a=0,o=0,s=e.length;o<s;o+=4)t=e[o],n=e[o+1],r=e[o+2],i=e[o+3],e[a++]=n*(-660635669420364e-19*n+.000437130475926232*r-54080610064599e-18*t+.00048449797120281*i-.154362151871126)-122.67195406894+r*(-.000957964378445773*r+.000817076911346625*t-.00477271405408747*i+1.53380253221734)+t*(.000961250184130688*t-.00266257332283933*i+.48357088451265)+i*(-.000336197177618394*i+.484791561490776),e[a++]=107.268039397724+n*(219927104525741e-19*n-.000640992018297945*r+.000659397001245577*t+.000426105652938837*i-.176491792462875)+r*(-.000778269941513683*r+.00130872261408275*t+.000770482631801132*i-.151051492775562)+t*(.00126935368114843*t-.00265090189010898*i+.25802910206845)+i*(-.000318913117588328*i-.213742400323665),e[a++]=n*(-.000570115196973677*n-263409051004589e-19*r+.0020741088115012*t-.00288260236853442*i+.814272968359295)-20.810012546947+r*(-153496057440975e-19*r-.000132689043961446*t+.000560833691242812*i-.195152027534049)+t*(.00174418132927582*t-.00255243321439347*i+.116935020465145)+i*(-.000343531996510555*i+.24165260232407);return e.subarray(0,a)},_convertYcckToCmyk:function(e){for(var t,n,r,i=0,a=e.length;i<a;i+=4)t=e[i],n=e[i+1],r=e[i+2],e[i]=434.456-t-1.402*r,e[i+1]=119.541-t+.344*n+.714*r,e[i+2]=481.816-t-1.772*n;return e},_convertCmykToRgb:function(e){for(var t,n,r,i,a=0,o=0,s=e.length;o<s;o+=4)t=e[o],n=e[o+1],r=e[o+2],i=e[o+3],e[a++]=255+t*(-6747147073602441e-20*t+.0008379262121013727*n+.0002894718188643294*r+.003264231057537806*i-1.1185611867203937)+n*(26374107616089405e-21*n-8626949158638572e-20*r-.0002748769067499491*i-.02155688794978967)+r*(-3878099212869363e-20*r-.0003267808279485286*i+.0686742238595345)-i*(.0003361971776183937*i+.7430659151342254),e[a++]=255+t*(.00013596372813588848*t+.000924537132573585*n+.00010567359618683593*r+.0004791864687436512*i-.3109689587515875)+n*(-.00023545346108370344*n+.0002702845253534714*r+.0020200308977307156*i-.7488052167015494)+r*(6834815998235662e-20*r+.00015168452363460973*i-.09751927774728933)-i*(.0003189131175883281*i+.7364883807733168),e[a++]=255+t*(13598650411385307e-21*t+.00012423956175490851*n+.0004751985097583589*r-36729317476630422e-22*i-.05562186980264034)+n*(.00016141380598724676*n+.0009692239130725186*r+.0007782692450036253*i-.44015232367526463)+r*(5.068882914068769e-7*r+.0017778369011375071*i-.7591454649749609)-i*(.0003435319965105553*i+.7063770186160144);return e.subarray(0,a)},getData({width:e,height:t,forceRGB:n=!1,isSourcePDF:r=!1}){if(this.numComponents>4)throw new a("Unsupported color mode");var i=this._getLinearizedBlockData(e,t,r);if(1===this.numComponents&&n){for(var o=i.length,s=new Uint8ClampedArray(3*o),l=0,c=0;c<o;c++){var u=i[c];s[l++]=u,s[l++]=u,s[l++]=u}return s}if(3===this.numComponents&&this._isColorConversionNeeded)return this._convertYccToRgb(i);if(4===this.numComponents){if(this._isColorConversionNeeded)return n?this._convertYcckToRgb(i):this._convertYcckToCmyk(i);if(n)return this._convertCmykToRgb(i)}return i}},p}();t.JpegImage=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JpxStream=void 0;var r=n(12),i=n(21),a=n(2);const o=function(){function e(e,t,n,i){this.stream=e,this.maybeLength=t,this.dict=n,this.params=i,r.DecodeStream.call(this,t)}return e.prototype=Object.create(r.DecodeStream.prototype),Object.defineProperty(e.prototype,"bytes",{get:function(){return(0,a.shadow)(this,"bytes",this.stream.getBytes(this.maybeLength))},configurable:!0}),e.prototype.ensureBuffer=function(e){},e.prototype.readBlock=function(){if(this.eof)return;const e=new i.JpxImage;e.parse(this.bytes);const t=e.width,n=e.height,r=e.componentsCount,a=e.tiles.length;if(1===a)this.buffer=e.tiles[0].items;else{const i=new Uint8ClampedArray(t*n*r);for(let n=0;n<a;n++){const a=e.tiles[n],o=a.width,s=a.height,l=a.left,c=a.top,u=a.items;let h=0,d=(t*c+l)*r;const f=t*r,p=o*r;for(let e=0;e<s;e++){const e=u.subarray(h,h+p);i.set(e,d),h+=p,d+=f}}this.buffer=i}this.bufferLength=this.buffer.length,this.eof=!0},e}();t.JpxStream=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JpxImage=void 0;var r=n(2),i=n(8),a=n(17);class o extends r.BaseException{constructor(e){super(`JPX error: ${e}`)}}var s=function(){var e={LL:0,LH:1,HL:1,HH:2};function t(){this.failOnCorruptedImage=!1}function n(e,t){e.x0=Math.ceil(t.XOsiz/e.XRsiz),e.x1=Math.ceil(t.Xsiz/e.XRsiz),e.y0=Math.ceil(t.YOsiz/e.YRsiz),e.y1=Math.ceil(t.Ysiz/e.YRsiz),e.width=e.x1-e.x0,e.height=e.y1-e.y0}function s(e,t){for(var n,r=e.SIZ,i=[],a=Math.ceil((r.Xsiz-r.XTOsiz)/r.XTsiz),o=Math.ceil((r.Ysiz-r.YTOsiz)/r.YTsiz),s=0;s<o;s++)for(var l=0;l<a;l++)(n={}).tx0=Math.max(r.XTOsiz+l*r.XTsiz,r.XOsiz),n.ty0=Math.max(r.YTOsiz+s*r.YTsiz,r.YOsiz),n.tx1=Math.min(r.XTOsiz+(l+1)*r.XTsiz,r.Xsiz),n.ty1=Math.min(r.YTOsiz+(s+1)*r.YTsiz,r.Ysiz),n.width=n.tx1-n.tx0,n.height=n.ty1-n.ty0,n.components=[],i.push(n);e.tiles=i;for(var c=0,u=r.Csiz;c<u;c++)for(var h=t[c],d=0,f=i.length;d<f;d++){var p={};n=i[d],p.tcx0=Math.ceil(n.tx0/h.XRsiz),p.tcy0=Math.ceil(n.ty0/h.YRsiz),p.tcx1=Math.ceil(n.tx1/h.XRsiz),p.tcy1=Math.ceil(n.ty1/h.YRsiz),p.width=p.tcx1-p.tcx0,p.height=p.tcy1-p.tcy0,n.components[c]=p}}function l(e,t,n){var r=t.codingStyleParameters,i={};return r.entropyCoderWithCustomPrecincts?(i.PPx=r.precinctsSizes[n].PPx,i.PPy=r.precinctsSizes[n].PPy):(i.PPx=15,i.PPy=15),i.xcb_=n>0?Math.min(r.xcb,i.PPx-1):Math.min(r.xcb,i.PPx),i.ycb_=n>0?Math.min(r.ycb,i.PPy-1):Math.min(r.ycb,i.PPy),i}function c(e,t,n){var r=1<<n.PPx,i=1<<n.PPy,a=0===t.resLevel,o=1<<n.PPx+(a?0:-1),s=1<<n.PPy+(a?0:-1),l=t.trx1>t.trx0?Math.ceil(t.trx1/r)-Math.floor(t.trx0/r):0,c=t.try1>t.try0?Math.ceil(t.try1/i)-Math.floor(t.try0/i):0,u=l*c;t.precinctParameters={precinctWidth:r,precinctHeight:i,numprecinctswide:l,numprecinctshigh:c,numprecincts:u,precinctWidthInSubband:o,precinctHeightInSubband:s}}function u(e,t,n){var r,i,a,o,s=n.xcb_,l=n.ycb_,c=1<<s,u=1<<l,h=t.tbx0>>s,d=t.tby0>>l,f=t.tbx1+c-1>>s,p=t.tby1+u-1>>l,A=t.resolution.precinctParameters,g=[],m=[];for(i=d;i<p;i++)for(r=h;r<f;r++){if((a={cbx:r,cby:i,tbx0:c*r,tby0:u*i,tbx1:c*(r+1),tby1:u*(i+1)}).tbx0_=Math.max(t.tbx0,a.tbx0),a.tby0_=Math.max(t.tby0,a.tby0),a.tbx1_=Math.min(t.tbx1,a.tbx1),a.tby1_=Math.min(t.tby1,a.tby1),o=Math.floor((a.tbx0_-t.tbx0)/A.precinctWidthInSubband)+Math.floor((a.tby0_-t.tby0)/A.precinctHeightInSubband)*A.numprecinctswide,a.precinctNumber=o,a.subbandType=t.type,a.Lblock=3,!(a.tbx1_<=a.tbx0_||a.tby1_<=a.tby0_)){g.push(a);var v=m[o];void 0!==v?(r<v.cbxMin?v.cbxMin=r:r>v.cbxMax&&(v.cbxMax=r),i<v.cbyMin?v.cbxMin=i:i>v.cbyMax&&(v.cbyMax=i)):m[o]=v={cbxMin:r,cbyMin:i,cbxMax:r,cbyMax:i},a.precinct=v}}t.codeblockParameters={codeblockWidth:s,codeblockHeight:l,numcodeblockwide:f-h+1,numcodeblockhigh:p-d+1},t.codeblocks=g,t.precincts=m}function h(e,t,n){for(var r=[],i=e.subbands,a=0,o=i.length;a<o;a++)for(var s=i[a].codeblocks,l=0,c=s.length;l<c;l++){var u=s[l];u.precinctNumber===t&&r.push(u)}return{layerNumber:n,codeblocks:r}}function d(e,t,n,r,i){var a=e*r.minWidth,o=t*r.minHeight;if(a%n.width!=0||o%n.height!=0)return null;var s=o/n.width*i.precinctParameters.numprecinctswide;return a/n.height+s}function f(e){for(var t=e.components.length,n=Number.MAX_VALUE,r=Number.MAX_VALUE,i=0,a=0,o=new Array(t),s=0;s<t;s++){for(var l=e.components[s],c=l.codingStyleParameters.decompositionLevelsCount,u=new Array(c+1),h=Number.MAX_VALUE,d=Number.MAX_VALUE,f=0,p=0,A=1,g=c;g>=0;--g){var m=l.resolutions[g],v=A*m.precinctParameters.precinctWidth,y=A*m.precinctParameters.precinctHeight;h=Math.min(h,v),d=Math.min(d,y),f=Math.max(f,m.precinctParameters.numprecinctswide),p=Math.max(p,m.precinctParameters.numprecinctshigh),u[g]={width:v,height:y},A<<=1}n=Math.min(n,h),r=Math.min(r,d),i=Math.max(i,f),a=Math.max(a,p),o[s]={resolutions:u,minWidth:h,minHeight:d,maxNumWide:f,maxNumHigh:p}}return{components:o,minWidth:n,minHeight:r,maxNumWide:i,maxNumHigh:a}}function p(e){for(var t=e.SIZ,n=e.currentTile.index,r=e.tiles[n],i=t.Csiz,a=0;a<i;a++){for(var s=r.components[a],p=s.codingStyleParameters.decompositionLevelsCount,A=[],g=[],m=0;m<=p;m++){var v,y=l(0,s,m),b={},w=1<<p-m;if(b.trx0=Math.ceil(s.tcx0/w),b.try0=Math.ceil(s.tcy0/w),b.trx1=Math.ceil(s.tcx1/w),b.try1=Math.ceil(s.tcy1/w),b.resLevel=m,c(0,b,y),A.push(b),0===m)(v={}).type="LL",v.tbx0=Math.ceil(s.tcx0/w),v.tby0=Math.ceil(s.tcy0/w),v.tbx1=Math.ceil(s.tcx1/w),v.tby1=Math.ceil(s.tcy1/w),v.resolution=b,u(0,v,y),g.push(v),b.subbands=[v];else{var x=1<<p-m+1,_=[];(v={}).type="HL",v.tbx0=Math.ceil(s.tcx0/x-.5),v.tby0=Math.ceil(s.tcy0/x),v.tbx1=Math.ceil(s.tcx1/x-.5),v.tby1=Math.ceil(s.tcy1/x),v.resolution=b,u(0,v,y),g.push(v),_.push(v),(v={}).type="LH",v.tbx0=Math.ceil(s.tcx0/x),v.tby0=Math.ceil(s.tcy0/x-.5),v.tbx1=Math.ceil(s.tcx1/x),v.tby1=Math.ceil(s.tcy1/x-.5),v.resolution=b,u(0,v,y),g.push(v),_.push(v),(v={}).type="HH",v.tbx0=Math.ceil(s.tcx0/x-.5),v.tby0=Math.ceil(s.tcy0/x-.5),v.tbx1=Math.ceil(s.tcx1/x-.5),v.tby1=Math.ceil(s.tcy1/x-.5),v.resolution=b,u(0,v,y),g.push(v),_.push(v),b.subbands=_}}s.resolutions=A,s.subbands=g}var C=r.codingStyleDefaultParameters.progressionOrder;switch(C){case 0:r.packetsIterator=new function(e){for(var t=e.SIZ,n=e.currentTile.index,r=e.tiles[n],i=r.codingStyleDefaultParameters.layersCount,a=t.Csiz,s=0,l=0;l<a;l++)s=Math.max(s,r.components[l].codingStyleParameters.decompositionLevelsCount);var c=0,u=0,d=0,f=0;this.nextPacket=function(){for(;c<i;c++){for(;u<=s;u++){for(;d<a;d++){var e=r.components[d];if(!(u>e.codingStyleParameters.decompositionLevelsCount)){for(var t=e.resolutions[u],n=t.precinctParameters.numprecincts;f<n;){var l=h(t,f,c);return f++,l}f=0}}d=0}u=0}throw new o("Out of packets")}}(e);break;case 1:r.packetsIterator=new function(e){for(var t=e.SIZ,n=e.currentTile.index,r=e.tiles[n],i=r.codingStyleDefaultParameters.layersCount,a=t.Csiz,s=0,l=0;l<a;l++)s=Math.max(s,r.components[l].codingStyleParameters.decompositionLevelsCount);var c=0,u=0,d=0,f=0;this.nextPacket=function(){for(;c<=s;c++){for(;u<i;u++){for(;d<a;d++){var e=r.components[d];if(!(c>e.codingStyleParameters.decompositionLevelsCount)){for(var t=e.resolutions[c],n=t.precinctParameters.numprecincts;f<n;){var l=h(t,f,u);return f++,l}f=0}}d=0}u=0}throw new o("Out of packets")}}(e);break;case 2:r.packetsIterator=new function(e){var t,n,r,i,a=e.SIZ,s=e.currentTile.index,l=e.tiles[s],c=l.codingStyleDefaultParameters.layersCount,u=a.Csiz,d=0;for(r=0;r<u;r++){const e=l.components[r];d=Math.max(d,e.codingStyleParameters.decompositionLevelsCount)}var f=new Int32Array(d+1);for(n=0;n<=d;++n){var p=0;for(r=0;r<u;++r){var A=l.components[r].resolutions;n<A.length&&(p=Math.max(p,A[n].precinctParameters.numprecincts))}f[n]=p}t=0,n=0,r=0,i=0,this.nextPacket=function(){for(;n<=d;n++){for(;i<f[n];i++){for(;r<u;r++){const o=l.components[r];if(!(n>o.codingStyleParameters.decompositionLevelsCount)){var e=o.resolutions[n],a=e.precinctParameters.numprecincts;if(!(i>=a)){for(;t<c;){var s=h(e,i,t);return t++,s}t=0}}}r=0}i=0}throw new o("Out of packets")}}(e);break;case 3:r.packetsIterator=new function(e){var t=e.SIZ,n=e.currentTile.index,r=e.tiles[n],i=r.codingStyleDefaultParameters.layersCount,a=t.Csiz,s=f(r),l=s,c=0,u=0,p=0,A=0,g=0;this.nextPacket=function(){for(;g<l.maxNumHigh;g++){for(;A<l.maxNumWide;A++){for(;p<a;p++){for(var e=r.components[p],t=e.codingStyleParameters.decompositionLevelsCount;u<=t;u++){var n=e.resolutions[u],f=s.components[p].resolutions[u],m=d(A,g,f,l,n);if(null!==m){for(;c<i;){var v=h(n,m,c);return c++,v}c=0}}u=0}p=0}A=0}throw new o("Out of packets")}}(e);break;case 4:r.packetsIterator=new function(e){var t=e.SIZ,n=e.currentTile.index,r=e.tiles[n],i=r.codingStyleDefaultParameters.layersCount,a=t.Csiz,s=f(r),l=0,c=0,u=0,p=0,A=0;this.nextPacket=function(){for(;u<a;++u){for(var e=r.components[u],t=s.components[u],n=e.codingStyleParameters.decompositionLevelsCount;A<t.maxNumHigh;A++){for(;p<t.maxNumWide;p++){for(;c<=n;c++){var f=e.resolutions[c],g=t.resolutions[c],m=d(p,A,g,t,f);if(null!==m){for(;l<i;){var v=h(f,m,l);return l++,v}l=0}}c=0}p=0}A=0}throw new o("Out of packets")}}(e);break;default:throw new o(`Unsupported progression order ${C}`)}}function A(e,t,n,r){var a,o=0,s=0,l=!1;function c(e){for(;s<e;){var r=t[n+o];o++,l?(a=a<<7|r,s+=7,l=!1):(a=a<<8|r,s+=8),255===r&&(l=!0)}return a>>>(s-=e)&(1<<e)-1}function u(e){return 255===t[n+o-1]&&t[n+o]===e?(h(1),!0):255===t[n+o]&&t[n+o+1]===e&&(h(2),!0)}function h(e){o+=e}function d(){s=0,l&&(o++,l=!1)}function f(){if(0===c(1))return 1;if(0===c(1))return 2;var e=c(2);return e<3?e+3:(e=c(5))<31?e+6:(e=c(7))+37}for(var p=e.currentTile.index,A=e.tiles[p],g=e.COD.sopMarkerUsed,m=e.COD.ephMarkerUsed,v=A.packetsIterator;o<r;){d(),g&&u(145)&&h(4);var w=v.nextPacket();if(c(1)){for(var x,_=w.layerNumber,C=[],S=0,k=w.codeblocks.length;S<k;S++){var B=(x=w.codeblocks[S]).precinct,E=x.cbx-B.cbxMin,T=x.cby-B.cbyMin,I=!1,M=!1;if(void 0!==x.included)I=!!c(1);else{var F,D;if(void 0!==(B=x.precinct).inclusionTree)F=B.inclusionTree;else{var P=B.cbxMax-B.cbxMin+1,O=B.cbyMax-B.cbyMin+1;F=new b(P,O,_),D=new y(P,O),B.inclusionTree=F,B.zeroBitPlanesTree=D}if(F.reset(E,T,_))for(;;){if(!c(1)){F.incrementValue(_);break}if(!F.nextLevel()){x.included=!0,I=M=!0;break}}}if(I){if(M){for((D=B.zeroBitPlanesTree).reset(E,T);;)if(c(1)){if(!D.nextLevel())break}else D.incrementValue();x.zeroBitPlanes=D.value}for(var L=f();c(1);)x.Lblock++;var R=(0,i.log2)(L),N=c((L<1<<R?R-1:R)+x.Lblock);C.push({codeblock:x,codingpasses:L,dataLength:N})}}for(d(),m&&u(146);C.length>0;){var U=C.shift();void 0===(x=U.codeblock).data&&(x.data=[]),x.data.push({data:t,start:n+o,end:n+o+U.dataLength,codingpasses:U.codingpasses}),o+=U.dataLength}}}return o}function g(e,t,n,r,i,o,s,l){for(var c=r.tbx0,u=r.tby0,h=r.tbx1-r.tbx0,d=r.codeblocks,f="H"===r.type.charAt(0)?1:0,p="H"===r.type.charAt(1)?t:0,A=0,g=d.length;A<g;++A){var m=d[A],v=m.tbx1_-m.tbx0_,y=m.tby1_-m.tby0_;if(0!==v&&0!==y&&void 0!==m.data){var b,x;b=new w(v,y,m.subbandType,m.zeroBitPlanes,o),x=2;var _,C,S,k=m.data,B=0,E=0;for(_=0,C=k.length;_<C;_++)B+=(S=k[_]).end-S.start,E+=S.codingpasses;var T=new Uint8Array(B),I=0;for(_=0,C=k.length;_<C;_++){var M=(S=k[_]).data.subarray(S.start,S.end);T.set(M,I),I+=M.length}var F=new a.ArithmeticDecoder(T,0,B);for(b.setDecoder(F),_=0;_<E;_++){switch(x){case 0:b.runSignificancePropagationPass();break;case 1:b.runMagnitudeRefinementPass();break;case 2:b.runCleanupPass(),l&&b.checkSegmentationSymbol()}x=(x+1)%3}var D,P,O,L=m.tbx0_-c+(m.tby0_-u)*h,R=b.coefficentsSign,N=b.coefficentsMagnitude,U=b.bitsDecoded,H=s?0:.5;I=0;var j="LL"!==r.type;for(_=0;_<y;_++){var Q=2*(L/h|0)*(t-h)+f+p;for(D=0;D<v;D++){if(0!==(P=N[I])){P=(P+H)*i,0!==R[I]&&(P=-P),O=U[I];var z=j?Q+(L<<1):L;e[z]=s&&O>=o?P:P*(1<<o-O)}L++,I++}L+=h-v}}}}function m(t,n,r){for(var i=n.components[r],a=i.codingStyleParameters,o=i.quantizationParameters,s=a.decompositionLevelsCount,l=o.SPqcds,c=o.scalarExpounded,u=o.guardBits,h=a.segmentationSymbolUsed,d=t.components[r].precision,f=a.reversibleTransformation,p=f?new C:new _,A=[],m=0,v=0;v<=s;v++){for(var y=i.resolutions[v],b=y.trx1-y.trx0,w=y.try1-y.try0,x=new Float32Array(b*w),S=0,k=y.subbands.length;S<k;S++){var B,E;c?(B=l[m].mu,E=l[m].epsilon,m++):(B=l[0].mu,E=l[0].epsilon+(v>0?1-v:0));var T=y.subbands[S],I=e[T.type];g(x,b,0,T,f?1:2**(d+I-E)*(1+B/2048),u+E-1,f,h)}A.push({width:b,height:w,items:x})}var M=p.calculate(A,i.tcx0,i.tcy0);return{left:i.tcx0,top:i.tcy0,width:M.width,height:M.height,items:M.items}}function v(e,t){for(var n=e.SIZ.Csiz,r=e.tiles[t],i=0;i<n;i++){var a=r.components[i],o=void 0!==e.currentTile.QCC[i]?e.currentTile.QCC[i]:e.currentTile.QCD;a.quantizationParameters=o;var s=void 0!==e.currentTile.COC[i]?e.currentTile.COC[i]:e.currentTile.COD;a.codingStyleParameters=s}r.codingStyleDefaultParameters=e.currentTile.COD}t.prototype={parse:function(e){if(65359!==(0,i.readUint16)(e,0))for(var t=0,n=e.length;t<n;){var a=8,s=(0,i.readUint32)(e,t),l=(0,i.readUint32)(e,t+4);if(t+=a,1===s&&(s=4294967296*(0,i.readUint32)(e,t)+(0,i.readUint32)(e,t+4),t+=8,a+=8),0===s&&(s=n-t+a),s<a)throw new o("Invalid box field size");var c=s-a,u=!0;switch(l){case 1785737832:u=!1;break;case 1668246642:var h=e[t];if(1===h){var d=(0,i.readUint32)(e,t+3);switch(d){case 16:case 17:case 18:break;default:(0,r.warn)("Unknown colorspace "+d)}}else 2===h&&(0,r.info)("ICC profile not supported");break;case 1785737827:this.parseCodestream(e,t,t+c);break;case 1783636e3:218793738!==(0,i.readUint32)(e,t)&&(0,r.warn)("Invalid JP2 signature");break;case 1783634458:case 1718909296:case 1920099697:case 1919251232:case 1768449138:break;default:var f=String.fromCharCode(l>>24&255,l>>16&255,l>>8&255,255&l);(0,r.warn)("Unsupported header type "+l+" ("+f+")")}u&&(t+=c)}else this.parseCodestream(e,0,e.length)},parseImageProperties:function(e){for(var t=e.getByte();t>=0;){if(65361===(t<<8|(t=e.getByte()))){e.skip(4);var n=e.getInt32()>>>0,r=e.getInt32()>>>0,i=e.getInt32()>>>0,a=e.getInt32()>>>0;e.skip(16);var s=e.getUint16();return this.width=n-i,this.height=r-a,this.componentsCount=s,void(this.bitsPerComponent=8)}}throw new o("No size marker found in JPX stream")},parseCodestream:function(e,t,a){var l={},c=!1;try{for(var u=t;u+1<a;){var h=(0,i.readUint16)(e,u);u+=2;var d,f,g,y,b,w,x=0;switch(h){case 65359:l.mainHeader=!0;break;case 65497:break;case 65361:x=(0,i.readUint16)(e,u);var _={};_.Xsiz=(0,i.readUint32)(e,u+4),_.Ysiz=(0,i.readUint32)(e,u+8),_.XOsiz=(0,i.readUint32)(e,u+12),_.YOsiz=(0,i.readUint32)(e,u+16),_.XTsiz=(0,i.readUint32)(e,u+20),_.YTsiz=(0,i.readUint32)(e,u+24),_.XTOsiz=(0,i.readUint32)(e,u+28),_.YTOsiz=(0,i.readUint32)(e,u+32);var C=(0,i.readUint16)(e,u+36);_.Csiz=C;var S=[];d=u+38;for(var k=0;k<C;k++){var B={precision:1+(127&e[d]),isSigned:!!(128&e[d]),XRsiz:e[d+1],YRsiz:e[d+2]};d+=3,n(B,_),S.push(B)}l.SIZ=_,l.components=S,s(l,S),l.QCC=[],l.COC=[];break;case 65372:x=(0,i.readUint16)(e,u);var E={};switch(d=u+2,31&(f=e[d++])){case 0:y=8,b=!0;break;case 1:y=16,b=!1;break;case 2:y=16,b=!0;break;default:throw new Error("Invalid SQcd value "+f)}for(E.noQuantization=8===y,E.scalarExpounded=b,E.guardBits=f>>5,g=[];d<x+u;){var T={};8===y?(T.epsilon=e[d++]>>3,T.mu=0):(T.epsilon=e[d]>>3,T.mu=(7&e[d])<<8|e[d+1],d+=2),g.push(T)}E.SPqcds=g,l.mainHeader?l.QCD=E:(l.currentTile.QCD=E,l.currentTile.QCC=[]);break;case 65373:x=(0,i.readUint16)(e,u);var I,M={};switch(d=u+2,l.SIZ.Csiz<257?I=e[d++]:(I=(0,i.readUint16)(e,d),d+=2),31&(f=e[d++])){case 0:y=8,b=!0;break;case 1:y=16,b=!1;break;case 2:y=16,b=!0;break;default:throw new Error("Invalid SQcd value "+f)}for(M.noQuantization=8===y,M.scalarExpounded=b,M.guardBits=f>>5,g=[];d<x+u;)T={},8===y?(T.epsilon=e[d++]>>3,T.mu=0):(T.epsilon=e[d]>>3,T.mu=(7&e[d])<<8|e[d+1],d+=2),g.push(T);M.SPqcds=g,l.mainHeader?l.QCC[I]=M:l.currentTile.QCC[I]=M;break;case 65362:x=(0,i.readUint16)(e,u);var F={};d=u+2;var D=e[d++];F.entropyCoderWithCustomPrecincts=!!(1&D),F.sopMarkerUsed=!!(2&D),F.ephMarkerUsed=!!(4&D),F.progressionOrder=e[d++],F.layersCount=(0,i.readUint16)(e,d),d+=2,F.multipleComponentTransform=e[d++],F.decompositionLevelsCount=e[d++],F.xcb=2+(15&e[d++]),F.ycb=2+(15&e[d++]);var P=e[d++];if(F.selectiveArithmeticCodingBypass=!!(1&P),F.resetContextProbabilities=!!(2&P),F.terminationOnEachCodingPass=!!(4&P),F.verticallyStripe=!!(8&P),F.predictableTermination=!!(16&P),F.segmentationSymbolUsed=!!(32&P),F.reversibleTransformation=e[d++],F.entropyCoderWithCustomPrecincts){for(var O=[];d<x+u;){var L=e[d++];O.push({PPx:15&L,PPy:L>>4})}F.precinctsSizes=O}var R=[];if(F.selectiveArithmeticCodingBypass&&R.push("selectiveArithmeticCodingBypass"),F.resetContextProbabilities&&R.push("resetContextProbabilities"),F.terminationOnEachCodingPass&&R.push("terminationOnEachCodingPass"),F.verticallyStripe&&R.push("verticallyStripe"),F.predictableTermination&&R.push("predictableTermination"),R.length>0)throw c=!0,new Error("Unsupported COD options ("+R.join(", ")+")");l.mainHeader?l.COD=F:(l.currentTile.COD=F,l.currentTile.COC=[]);break;case 65424:x=(0,i.readUint16)(e,u),(w={}).index=(0,i.readUint16)(e,u+2),w.length=(0,i.readUint32)(e,u+4),w.dataEnd=w.length+u-2,w.partIndex=e[u+8],w.partsCount=e[u+9],l.mainHeader=!1,0===w.partIndex&&(w.COD=l.COD,w.COC=l.COC.slice(0),w.QCD=l.QCD,w.QCC=l.QCC.slice(0)),l.currentTile=w;break;case 65427:0===(w=l.currentTile).partIndex&&(v(l,w.index),p(l)),A(l,e,u,x=w.dataEnd-u);break;case 65365:case 65367:case 65368:case 65380:x=(0,i.readUint16)(e,u);break;case 65363:throw new Error("Codestream code 0xFF53 (COC) is not implemented");default:throw new Error("Unknown codestream code: "+h.toString(16))}u+=x}}catch(e){if(c||this.failOnCorruptedImage)throw new o(e.message);(0,r.warn)("JPX: Trying to recover from: "+e.message)}this.tiles=function(e){for(var t=e.SIZ,n=e.components,r=t.Csiz,i=[],a=0,o=e.tiles.length;a<o;a++){var s,l=e.tiles[a],c=[];for(s=0;s<r;s++)c[s]=m(e,l,s);var u,h,d,f,p,A,g,v=c[0],y=new Uint8ClampedArray(v.items.length*r),b={left:v.left,top:v.top,width:v.width,height:v.height,items:y},w=0;if(l.codingStyleDefaultParameters.multipleComponentTransform){var x=4===r,_=c[0].items,C=c[1].items,S=c[2].items,k=x?c[3].items:null;u=n[0].precision-8,h=.5+(128<<u);var B=l.components[0],E=r-3;if(f=_.length,B.codingStyleParameters.reversibleTransformation)for(d=0;d<f;d++,w+=E){p=_[d]+h,A=C[d],g=S[d];const e=p-(g+A>>2);y[w++]=e+g>>u,y[w++]=e>>u,y[w++]=e+A>>u}else for(d=0;d<f;d++,w+=E)p=_[d]+h,A=C[d],g=S[d],y[w++]=p+1.402*g>>u,y[w++]=p-.34413*A-.71414*g>>u,y[w++]=p+1.772*A>>u;if(x)for(d=0,w=3;d<f;d++,w+=4)y[w]=k[d]+h>>u}else for(s=0;s<r;s++){var T=c[s].items;for(u=n[s].precision-8,h=.5+(128<<u),w=s,d=0,f=T.length;d<f;d++)y[w]=T[d]+h>>u,w+=r}i.push(b)}return i}(l),this.width=l.SIZ.Xsiz-l.SIZ.XOsiz,this.height=l.SIZ.Ysiz-l.SIZ.YOsiz,this.componentsCount=l.SIZ.Csiz}};var y=function(){function e(e,t){var n=(0,i.log2)(Math.max(e,t))+1;this.levels=[];for(var r=0;r<n;r++){var a={width:e,height:t,items:[]};this.levels.push(a),e=Math.ceil(e/2),t=Math.ceil(t/2)}}return e.prototype={reset:function(e,t){for(var n,r=0,i=0;r<this.levels.length;){var a=e+t*(n=this.levels[r]).width;if(void 0!==n.items[a]){i=n.items[a];break}n.index=a,e>>=1,t>>=1,r++}r--,(n=this.levels[r]).items[n.index]=i,this.currentLevel=r,delete this.value},incrementValue:function(){var e=this.levels[this.currentLevel];e.items[e.index]++},nextLevel:function(){var e=this.currentLevel,t=this.levels[e],n=t.items[t.index];return--e<0?(this.value=n,!1):(this.currentLevel=e,(t=this.levels[e]).items[t.index]=n,!0)}},e}(),b=function(){function e(e,t,n){var r=(0,i.log2)(Math.max(e,t))+1;this.levels=[];for(var a=0;a<r;a++){for(var o=new Uint8Array(e*t),s=0,l=o.length;s<l;s++)o[s]=n;var c={width:e,height:t,items:o};this.levels.push(c),e=Math.ceil(e/2),t=Math.ceil(t/2)}}return e.prototype={reset:function(e,t,n){for(var r=0;r<this.levels.length;){var i=this.levels[r],a=e+t*i.width;i.index=a;var o=i.items[a];if(255===o)break;if(o>n)return this.currentLevel=r,this.propagateValues(),!1;e>>=1,t>>=1,r++}return this.currentLevel=r-1,!0},incrementValue:function(e){var t=this.levels[this.currentLevel];t.items[t.index]=e+1,this.propagateValues()},propagateValues:function(){for(var e=this.currentLevel,t=this.levels[e],n=t.items[t.index];--e>=0;)(t=this.levels[e]).items[t.index]=n},nextLevel:function(){var e=this.currentLevel,t=this.levels[e],n=t.items[t.index];return t.items[t.index]=255,!(--e<0)&&(this.currentLevel=e,(t=this.levels[e]).items[t.index]=n,!0)}},e}(),w=function(){var e=new Uint8Array([0,5,8,0,3,7,8,0,4,7,8,0,0,0,0,0,1,6,8,0,3,7,8,0,4,7,8,0,0,0,0,0,2,6,8,0,3,7,8,0,4,7,8,0,0,0,0,0,2,6,8,0,3,7,8,0,4,7,8,0,0,0,0,0,2,6,8,0,3,7,8,0,4,7,8]),t=new Uint8Array([0,3,4,0,5,7,7,0,8,8,8,0,0,0,0,0,1,3,4,0,6,7,7,0,8,8,8,0,0,0,0,0,2,3,4,0,6,7,7,0,8,8,8,0,0,0,0,0,2,3,4,0,6,7,7,0,8,8,8,0,0,0,0,0,2,3,4,0,6,7,7,0,8,8,8]),n=new Uint8Array([0,1,2,0,1,2,2,0,2,2,2,0,0,0,0,0,3,4,5,0,4,5,5,0,5,5,5,0,0,0,0,0,6,7,7,0,7,7,7,0,7,7,7,0,0,0,0,0,8,8,8,0,8,8,8,0,8,8,8,0,0,0,0,0,8,8,8,0,8,8,8,0,8,8,8]);function r(r,i,a,o,s){let l;this.width=r,this.height=i,l="HH"===a?n:"HL"===a?t:e,this.contextLabelTable=l;var c=r*i;let u;this.neighborsSignificance=new Uint8Array(c),this.coefficentsSign=new Uint8Array(c),u=s>14?new Uint32Array(c):s>6?new Uint16Array(c):new Uint8Array(c),this.coefficentsMagnitude=u,this.processingFlags=new Uint8Array(c);var h=new Uint8Array(c);if(0!==o)for(var d=0;d<c;d++)h[d]=o;this.bitsDecoded=h,this.reset()}return r.prototype={setDecoder:function(e){this.decoder=e},reset:function(){this.contexts=new Int8Array(19),this.contexts[0]=8,this.contexts[17]=92,this.contexts[18]=6},setNeighborsSignificance:function(e,t,n){var r,i=this.neighborsSignificance,a=this.width,o=this.height,s=t>0,l=t+1<a;e>0&&(r=n-a,s&&(i[r-1]+=16),l&&(i[r+1]+=16),i[r]+=4),e+1<o&&(r=n+a,s&&(i[r-1]+=16),l&&(i[r+1]+=16),i[r]+=4),s&&(i[n-1]+=1),l&&(i[n+1]+=1),i[n]|=128},runSignificancePropagationPass:function(){for(var e=this.decoder,t=this.width,n=this.height,r=this.coefficentsMagnitude,i=this.coefficentsSign,a=this.neighborsSignificance,o=this.processingFlags,s=this.contexts,l=this.contextLabelTable,c=this.bitsDecoded,u=0;u<n;u+=4)for(var h=0;h<t;h++)for(var d=u*t+h,f=0;f<4;f++,d+=t){var p=u+f;if(p>=n)break;if(o[d]&=-2,!r[d]&&a[d]){var A=l[a[d]];if(e.readBit(s,A)){var g=this.decodeSignBit(p,h,d);i[d]=g,r[d]=1,this.setNeighborsSignificance(p,h,d),o[d]|=2}c[d]++,o[d]|=1}}},decodeSignBit:function(e,t,n){var r,i,a,o,s,l,c=this.width,u=this.height,h=this.coefficentsMagnitude,d=this.coefficentsSign;o=t>0&&0!==h[n-1],t+1<c&&0!==h[n+1]?(a=d[n+1],r=o?1-a-(i=d[n-1]):1-a-a):r=o?1-(i=d[n-1])-i:0;var f=3*r;return o=e>0&&0!==h[n-c],e+1<u&&0!==h[n+c]?(a=d[n+c],r=o?1-a-(i=d[n-c])+f:1-a-a+f):r=o?1-(i=d[n-c])-i+f:f,r>=0?(s=9+r,l=this.decoder.readBit(this.contexts,s)):(s=9-r,l=1^this.decoder.readBit(this.contexts,s)),l},runMagnitudeRefinementPass:function(){for(var e,t=this.decoder,n=this.width,r=this.height,i=this.coefficentsMagnitude,a=this.neighborsSignificance,o=this.contexts,s=this.bitsDecoded,l=this.processingFlags,c=n*r,u=4*n,h=0;h<c;h=e){e=Math.min(c,h+u);for(var d=0;d<n;d++)for(var f=h+d;f<e;f+=n)if(i[f]&&0==(1&l[f])){var p=16;if(0!=(2&l[f]))l[f]^=2,p=0===(127&a[f])?15:14;var A=t.readBit(o,p);i[f]=i[f]<<1|A,s[f]++,l[f]|=1}}},runCleanupPass:function(){for(var e,t=this.decoder,n=this.width,r=this.height,i=this.neighborsSignificance,a=this.coefficentsMagnitude,o=this.coefficentsSign,s=this.contexts,l=this.contextLabelTable,c=this.bitsDecoded,u=this.processingFlags,h=n,d=2*n,f=3*n,p=0;p<r;p=e){e=Math.min(p+4,r);for(var A=p*n,g=p+3<r,m=0;m<n;m++){var v,y=A+m,b=0,w=y,x=p;if(g&&0===u[y]&&0===u[y+h]&&0===u[y+d]&&0===u[y+f]&&0===i[y]&&0===i[y+h]&&0===i[y+d]&&0===i[y+f]){if(!t.readBit(s,18)){c[y]++,c[y+h]++,c[y+d]++,c[y+f]++;continue}0!==(b=t.readBit(s,17)<<1|t.readBit(s,17))&&(x=p+b,w+=b*n),v=this.decodeSignBit(x,m,w),o[w]=v,a[w]=1,this.setNeighborsSignificance(x,m,w),u[w]|=2,w=y;for(var _=p;_<=x;_++,w+=n)c[w]++;b++}for(x=p+b;x<e;x++,w+=n)if(!a[w]&&0==(1&u[w])){var C=l[i[w]];1===t.readBit(s,C)&&(v=this.decodeSignBit(x,m,w),o[w]=v,a[w]=1,this.setNeighborsSignificance(x,m,w),u[w]|=2),c[w]++}}}},checkSegmentationSymbol:function(){var e=this.decoder,t=this.contexts;if(10!==(e.readBit(t,17)<<3|e.readBit(t,17)<<2|e.readBit(t,17)<<1|e.readBit(t,17)))throw new o("Invalid segmentation symbol")}},r}(),x=function(){function e(){}return e.prototype.calculate=function(e,t,n){for(var r=e[0],i=1,a=e.length;i<a;i++)r=this.iterate(r,e[i],t,n);return r},e.prototype.extend=function(e,t,n){var r=t-1,i=t+1,a=t+n-2,o=t+n;e[r--]=e[i++],e[o++]=e[a--],e[r--]=e[i++],e[o++]=e[a--],e[r--]=e[i++],e[o++]=e[a--],e[r]=e[i],e[o]=e[a]},e.prototype.iterate=function(e,t,n,r){var i,a,o,s,l,c,u=e.width,h=e.height,d=e.items,f=t.width,p=t.height,A=t.items;for(o=0,i=0;i<h;i++)for(s=2*i*f,a=0;a<u;a++,o++,s+=2)A[s]=d[o];d=e.items=null;var g=new Float32Array(f+8);if(1===f){if(0!=(1&n))for(c=0,o=0;c<p;c++,o+=f)A[o]*=.5}else for(c=0,o=0;c<p;c++,o+=f)g.set(A.subarray(o,o+f),4),this.extend(g,4,f),this.filter(g,4,f),A.set(g.subarray(4,4+f),o);var m=16,v=[];for(i=0;i<m;i++)v.push(new Float32Array(p+8));var y,b=0;if(e=4+p,1===p){if(0!=(1&r))for(l=0;l<f;l++)A[l]*=.5}else for(l=0;l<f;l++){if(0===b){for(m=Math.min(f-l,m),o=l,s=4;s<e;o+=f,s++)for(y=0;y<m;y++)v[y][s]=A[o+y];b=m}var w=v[--b];if(this.extend(w,4,p),this.filter(w,4,p),0===b)for(o=l-m+1,s=4;s<e;o+=f,s++)for(y=0;y<m;y++)A[o+y]=v[y][s]}return{width:f,height:p,items:A}},e}(),_=function(){function e(){x.call(this)}return e.prototype=Object.create(x.prototype),e.prototype.filter=function(e,t,n){var r,i,a,o,s=n>>1,l=-1.586134342059924,c=-.052980118572961,u=.882911075530934,h=.443506852043971,d=1.230174104914001;for(r=(t|=0)-3,i=s+4;i--;r+=2)e[r]*=.8128930661159609;for(a=h*e[(r=t-2)-1],i=s+3;i--&&(o=h*e[r+1],e[r]=d*e[r]-a-o,i--);r+=2)a=h*e[(r+=2)+1],e[r]=d*e[r]-a-o;for(a=u*e[(r=t-1)-1],i=s+2;i--&&(o=u*e[r+1],e[r]-=a+o,i--);r+=2)a=u*e[(r+=2)+1],e[r]-=a+o;for(a=c*e[(r=t)-1],i=s+1;i--&&(o=c*e[r+1],e[r]-=a+o,i--);r+=2)a=c*e[(r+=2)+1],e[r]-=a+o;if(0!==s)for(a=l*e[(r=t+1)-1],i=s;i--&&(o=l*e[r+1],e[r]-=a+o,i--);r+=2)a=l*e[(r+=2)+1],e[r]-=a+o},e}(),C=function(){function e(){x.call(this)}return e.prototype=Object.create(x.prototype),e.prototype.filter=function(e,t,n){var r,i,a=n>>1;for(r=t|=0,i=a+1;i--;r+=2)e[r]-=e[r-1]+e[r+1]+2>>2;for(r=t+1,i=a;i--;r+=2)e[r]+=e[r-1]+e[r+1]>>1},e}();return t}();t.JpxImage=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.calculateSHA512=t.calculateSHA384=t.calculateSHA256=t.calculateMD5=t.PDF20=t.PDF17=t.CipherTransformFactory=t.ARCFourCipher=t.AES256Cipher=t.AES128Cipher=void 0;var r=n(2),i=n(5),a=n(12),o=function(){function e(e){this.a=0,this.b=0;var t,n,r=new Uint8Array(256),i=0,a=e.length;for(t=0;t<256;++t)r[t]=t;for(t=0;t<256;++t)i=i+(n=r[t])+e[t%a]&255,r[t]=r[i],r[i]=n;this.s=r}return e.prototype={encryptBlock:function(e){var t,n,r,i=e.length,a=this.a,o=this.b,s=this.s,l=new Uint8Array(i);for(t=0;t<i;++t)r=s[o=o+(n=s[a=a+1&255])&255],s[a]=r,s[o]=n,l[t]=e[t]^s[n+r&255];return this.a=a,this.b=o,l}},e.prototype.decryptBlock=e.prototype.encryptBlock,e}();t.ARCFourCipher=o;var s=function(){var e=new Uint8Array([7,12,17,22,7,12,17,22,7,12,17,22,7,12,17,22,5,9,14,20,5,9,14,20,5,9,14,20,5,9,14,20,4,11,16,23,4,11,16,23,4,11,16,23,4,11,16,23,6,10,15,21,6,10,15,21,6,10,15,21,6,10,15,21]),t=new Int32Array([-680876936,-389564586,606105819,-1044525330,-176418897,1200080426,-1473231341,-45705983,1770035416,-1958414417,-42063,-1990404162,1804603682,-40341101,-1502002290,1236535329,-165796510,-1069501632,643717713,-373897302,-701558691,38016083,-660478335,-405537848,568446438,-1019803690,-187363961,1163531501,-1444681467,-51403784,1735328473,-1926607734,-378558,-2022574463,1839030562,-35309556,-1530992060,1272893353,-155497632,-1094730640,681279174,-358537222,-722521979,76029189,-640364487,-421815835,530742520,-995338651,-198630844,1126891415,-1416354905,-57434055,1700485571,-1894986606,-1051523,-2054922799,1873313359,-30611744,-1560198380,1309151649,-145523070,-1120210379,718787259,-343485551]);return function(n,r,i){var a,o,s,l=1732584193,c=-271733879,u=-1732584194,h=271733878,d=i+72&-64,f=new Uint8Array(d);for(a=0;a<i;++a)f[a]=n[r++];for(f[a++]=128,s=d-8;a<s;)f[a++]=0;f[a++]=i<<3&255,f[a++]=i>>5&255,f[a++]=i>>13&255,f[a++]=i>>21&255,f[a++]=i>>>29&255,f[a++]=0,f[a++]=0,f[a++]=0;var p=new Int32Array(16);for(a=0;a<d;){for(o=0;o<16;++o,a+=4)p[o]=f[a]|f[a+1]<<8|f[a+2]<<16|f[a+3]<<24;var A,g,m=l,v=c,y=u,b=h;for(o=0;o<64;++o){o<16?(A=v&y|~v&b,g=o):o<32?(A=b&v|~b&y,g=5*o+1&15):o<48?(A=v^y^b,g=3*o+5&15):(A=y^(v|~b),g=7*o&15);var w=b,x=m+A+t[o]+p[g]|0,_=e[o];b=y,y=v,v=v+(x<<_|x>>>32-_)|0,m=w}l=l+m|0,c=c+v|0,u=u+y|0,h=h+b|0}return new Uint8Array([255&l,l>>8&255,l>>16&255,l>>>24&255,255&c,c>>8&255,c>>16&255,c>>>24&255,255&u,u>>8&255,u>>16&255,u>>>24&255,255&h,h>>8&255,h>>16&255,h>>>24&255])}}();t.calculateMD5=s;var l=function(){function e(e,t){this.high=0|e,this.low=0|t}return e.prototype={and:function(e){this.high&=e.high,this.low&=e.low},xor:function(e){this.high^=e.high,this.low^=e.low},or:function(e){this.high|=e.high,this.low|=e.low},shiftRight:function(e){e>=32?(this.low=this.high>>>e-32|0,this.high=0):(this.low=this.low>>>e|this.high<<32-e,this.high=this.high>>>e|0)},shiftLeft:function(e){e>=32?(this.high=this.low<<e-32,this.low=0):(this.high=this.high<<e|this.low>>>32-e,this.low=this.low<<e)},rotateRight:function(e){var t,n;32&e?(n=this.low,t=this.high):(t=this.low,n=this.high),e&=31,this.low=t>>>e|n<<32-e,this.high=n>>>e|t<<32-e},not:function(){this.high=~this.high,this.low=~this.low},add:function(e){var t=(this.low>>>0)+(e.low>>>0),n=(this.high>>>0)+(e.high>>>0);t>4294967295&&(n+=1),this.low=0|t,this.high=0|n},copyTo:function(e,t){e[t]=this.high>>>24&255,e[t+1]=this.high>>16&255,e[t+2]=this.high>>8&255,e[t+3]=255&this.high,e[t+4]=this.low>>>24&255,e[t+5]=this.low>>16&255,e[t+6]=this.low>>8&255,e[t+7]=255&this.low},assign:function(e){this.high=e.high,this.low=e.low}},e}(),c=function(){function e(e,t){return e>>>t|e<<32-t}function t(e,t,n){return e&t^~e&n}function n(e,t,n){return e&t^e&n^t&n}function r(t){return e(t,2)^e(t,13)^e(t,22)}function i(t){return e(t,6)^e(t,11)^e(t,25)}function a(t){return e(t,7)^e(t,18)^t>>>3}var o=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];return function(s,l,c){var u,h,d,f=1779033703,p=3144134277,A=1013904242,g=2773480762,m=1359893119,v=2600822924,y=528734635,b=1541459225,w=64*Math.ceil((c+9)/64),x=new Uint8Array(w);for(u=0;u<c;++u)x[u]=s[l++];for(x[u++]=128,d=w-8;u<d;)x[u++]=0;x[u++]=0,x[u++]=0,x[u++]=0,x[u++]=c>>>29&255,x[u++]=c>>21&255,x[u++]=c>>13&255,x[u++]=c>>5&255,x[u++]=c<<3&255;var _,C=new Uint32Array(64);for(u=0;u<w;){for(h=0;h<16;++h)C[h]=x[u]<<24|x[u+1]<<16|x[u+2]<<8|x[u+3],u+=4;for(h=16;h<64;++h)C[h]=0|(e(_=C[h-2],17)^e(_,19)^_>>>10)+C[h-7]+a(C[h-15])+C[h-16];var S,k,B=f,E=p,T=A,I=g,M=m,F=v,D=y,P=b;for(h=0;h<64;++h)S=P+i(M)+t(M,F,D)+o[h]+C[h],k=r(B)+n(B,E,T),P=D,D=F,F=M,M=I+S|0,I=T,T=E,E=B,B=S+k|0;f=f+B|0,p=p+E|0,A=A+T|0,g=g+I|0,m=m+M|0,v=v+F|0,y=y+D|0,b=b+P|0}return new Uint8Array([f>>24&255,f>>16&255,f>>8&255,255&f,p>>24&255,p>>16&255,p>>8&255,255&p,A>>24&255,A>>16&255,A>>8&255,255&A,g>>24&255,g>>16&255,g>>8&255,255&g,m>>24&255,m>>16&255,m>>8&255,255&m,v>>24&255,v>>16&255,v>>8&255,255&v,y>>24&255,y>>16&255,y>>8&255,255&y,b>>24&255,b>>16&255,b>>8&255,255&b])}}();t.calculateSHA256=c;var u=function(){function e(e,t,n,r,i){e.assign(t),e.and(n),i.assign(t),i.not(),i.and(r),e.xor(i)}function t(e,t,n,r,i){e.assign(t),e.and(n),i.assign(t),i.and(r),e.xor(i),i.assign(n),i.and(r),e.xor(i)}function n(e,t,n){e.assign(t),e.rotateRight(28),n.assign(t),n.rotateRight(34),e.xor(n),n.assign(t),n.rotateRight(39),e.xor(n)}function r(e,t,n){e.assign(t),e.rotateRight(14),n.assign(t),n.rotateRight(18),e.xor(n),n.assign(t),n.rotateRight(41),e.xor(n)}function i(e,t,n){e.assign(t),e.rotateRight(1),n.assign(t),n.rotateRight(8),e.xor(n),n.assign(t),n.shiftRight(7),e.xor(n)}function a(e,t,n){e.assign(t),e.rotateRight(19),n.assign(t),n.rotateRight(61),e.xor(n),n.assign(t),n.shiftRight(6),e.xor(n)}var o=[new l(1116352408,3609767458),new l(1899447441,602891725),new l(3049323471,3964484399),new l(3921009573,2173295548),new l(961987163,4081628472),new l(1508970993,3053834265),new l(2453635748,2937671579),new l(2870763221,3664609560),new l(3624381080,2734883394),new l(310598401,1164996542),new l(607225278,1323610764),new l(1426881987,3590304994),new l(1925078388,4068182383),new l(2162078206,991336113),new l(2614888103,633803317),new l(3248222580,3479774868),new l(3835390401,2666613458),new l(4022224774,944711139),new l(264347078,2341262773),new l(604807628,2007800933),new l(770255983,1495990901),new l(1249150122,1856431235),new l(1555081692,3175218132),new l(1996064986,2198950837),new l(2554220882,3999719339),new l(2821834349,766784016),new l(2952996808,2566594879),new l(3210313671,3203337956),new l(3336571891,1034457026),new l(3584528711,2466948901),new l(113926993,3758326383),new l(338241895,168717936),new l(666307205,1188179964),new l(773529912,1546045734),new l(1294757372,1522805485),new l(1396182291,2643833823),new l(1695183700,2343527390),new l(1986661051,1014477480),new l(2177026350,1206759142),new l(2456956037,344077627),new l(2730485921,1290863460),new l(2820302411,3158454273),new l(3259730800,3505952657),new l(3345764771,106217008),new l(3516065817,3606008344),new l(3600352804,1432725776),new l(4094571909,1467031594),new l(275423344,851169720),new l(430227734,3100823752),new l(506948616,1363258195),new l(659060556,3750685593),new l(883997877,3785050280),new l(958139571,3318307427),new l(1322822218,3812723403),new l(1537002063,2003034995),new l(1747873779,3602036899),new l(1955562222,1575990012),new l(2024104815,1125592928),new l(2227730452,2716904306),new l(2361852424,442776044),new l(2428436474,593698344),new l(2756734187,3733110249),new l(3204031479,2999351573),new l(3329325298,3815920427),new l(3391569614,3928383900),new l(3515267271,566280711),new l(3940187606,3454069534),new l(4118630271,4000239992),new l(116418474,1914138554),new l(174292421,2731055270),new l(289380356,3203993006),new l(460393269,320620315),new l(685471733,587496836),new l(852142971,1086792851),new l(1017036298,365543100),new l(1126000580,2618297676),new l(1288033470,3409855158),new l(1501505948,4234509866),new l(1607167915,987167468),new l(1816402316,1246189591)];return function(s,c,u,h){var d,f,p,A,g,m,v,y;(h=!!h)?(d=new l(3418070365,3238371032),f=new l(1654270250,914150663),p=new l(2438529370,812702999),A=new l(355462360,4144912697),g=new l(1731405415,4290775857),m=new l(2394180231,1750603025),v=new l(3675008525,1694076839),y=new l(1203062813,3204075428)):(d=new l(1779033703,4089235720),f=new l(3144134277,2227873595),p=new l(1013904242,4271175723),A=new l(2773480762,1595750129),g=new l(1359893119,2917565137),m=new l(2600822924,725511199),v=new l(528734635,4215389547),y=new l(1541459225,327033209));var b,w,x,_=128*Math.ceil((u+17)/128),C=new Uint8Array(_);for(b=0;b<u;++b)C[b]=s[c++];for(C[b++]=128,x=_-16;b<x;)C[b++]=0;C[b++]=0,C[b++]=0,C[b++]=0,C[b++]=0,C[b++]=0,C[b++]=0,C[b++]=0,C[b++]=0,C[b++]=0,C[b++]=0,C[b++]=0,C[b++]=u>>>29&255,C[b++]=u>>21&255,C[b++]=u>>13&255,C[b++]=u>>5&255,C[b++]=u<<3&255;var S=new Array(80);for(b=0;b<80;b++)S[b]=new l(0,0);var k,B,E=new l(0,0),T=new l(0,0),I=new l(0,0),M=new l(0,0),F=new l(0,0),D=new l(0,0),P=new l(0,0),O=new l(0,0),L=new l(0,0),R=new l(0,0),N=new l(0,0),U=new l(0,0);for(b=0;b<_;){for(w=0;w<16;++w)S[w].high=C[b]<<24|C[b+1]<<16|C[b+2]<<8|C[b+3],S[w].low=C[b+4]<<24|C[b+5]<<16|C[b+6]<<8|C[b+7],b+=8;for(w=16;w<80;++w)a(k=S[w],S[w-2],U),k.add(S[w-7]),i(N,S[w-15],U),k.add(N),k.add(S[w-16]);for(E.assign(d),T.assign(f),I.assign(p),M.assign(A),F.assign(g),D.assign(m),P.assign(v),O.assign(y),w=0;w<80;++w)L.assign(O),r(N,F,U),L.add(N),e(N,F,D,P,U),L.add(N),L.add(o[w]),L.add(S[w]),n(R,E,U),t(N,E,T,I,U),R.add(N),k=O,O=P,P=D,D=F,M.add(L),F=M,M=I,I=T,T=E,k.assign(L),k.add(R),E=k;d.add(E),f.add(T),p.add(I),A.add(M),g.add(F),m.add(D),v.add(P),y.add(O)}return h?(B=new Uint8Array(48),d.copyTo(B,0),f.copyTo(B,8),p.copyTo(B,16),A.copyTo(B,24),g.copyTo(B,32),m.copyTo(B,40)):(B=new Uint8Array(64),d.copyTo(B,0),f.copyTo(B,8),p.copyTo(B,16),A.copyTo(B,24),g.copyTo(B,32),m.copyTo(B,40),v.copyTo(B,48),y.copyTo(B,56)),B}}();t.calculateSHA512=u;var h=function(){return function(e,t,n){return u(e,t,n,!0)}}();t.calculateSHA384=h;var d=function(){function e(){}return e.prototype={decryptBlock:function(e){return e}},e}();class f{constructor(){this.constructor===f&&(0,r.unreachable)("Cannot initialize AESBaseCipher."),this._s=new Uint8Array([99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22]),this._inv_s=new Uint8Array([82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125]),this._mix=new Uint32Array([0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795]),this._mixCol=new Uint8Array(256);for(let e=0;e<256;e++)this._mixCol[e]=e<128?e<<1:e<<1^27;this.buffer=new Uint8Array(16),this.bufferPosition=0}_expandKey(e){(0,r.unreachable)("Cannot call `_expandKey` on the base class")}_decrypt(e,t){let n,r,i;const a=new Uint8Array(16);a.set(e);for(let e=0,n=this._keySize;e<16;++e,++n)a[e]^=t[n];for(let e=this._cyclesOfRepetition-1;e>=1;--e){n=a[13],a[13]=a[9],a[9]=a[5],a[5]=a[1],a[1]=n,n=a[14],r=a[10],a[14]=a[6],a[10]=a[2],a[6]=n,a[2]=r,n=a[15],r=a[11],i=a[7],a[15]=a[3],a[11]=n,a[7]=r,a[3]=i;for(let e=0;e<16;++e)a[e]=this._inv_s[a[e]];for(let n=0,r=16*e;n<16;++n,++r)a[n]^=t[r];for(let e=0;e<16;e+=4){const t=this._mix[a[e]],r=this._mix[a[e+1]],i=this._mix[a[e+2]],o=this._mix[a[e+3]];n=t^r>>>8^r<<24^i>>>16^i<<16^o>>>24^o<<8,a[e]=n>>>24&255,a[e+1]=n>>16&255,a[e+2]=n>>8&255,a[e+3]=255&n}}n=a[13],a[13]=a[9],a[9]=a[5],a[5]=a[1],a[1]=n,n=a[14],r=a[10],a[14]=a[6],a[10]=a[2],a[6]=n,a[2]=r,n=a[15],r=a[11],i=a[7],a[15]=a[3],a[11]=n,a[7]=r,a[3]=i;for(let e=0;e<16;++e)a[e]=this._inv_s[a[e]],a[e]^=t[e];return a}_encrypt(e,t){const n=this._s;let r,i,a;const o=new Uint8Array(16);o.set(e);for(let e=0;e<16;++e)o[e]^=t[e];for(let e=1;e<this._cyclesOfRepetition;e++){for(let e=0;e<16;++e)o[e]=n[o[e]];a=o[1],o[1]=o[5],o[5]=o[9],o[9]=o[13],o[13]=a,a=o[2],i=o[6],o[2]=o[10],o[6]=o[14],o[10]=a,o[14]=i,a=o[3],i=o[7],r=o[11],o[3]=o[15],o[7]=a,o[11]=i,o[15]=r;for(let e=0;e<16;e+=4){const t=o[e+0],n=o[e+1],i=o[e+2],a=o[e+3];r=t^n^i^a,o[e+0]^=r^this._mixCol[t^n],o[e+1]^=r^this._mixCol[n^i],o[e+2]^=r^this._mixCol[i^a],o[e+3]^=r^this._mixCol[a^t]}for(let n=0,r=16*e;n<16;++n,++r)o[n]^=t[r]}for(let e=0;e<16;++e)o[e]=n[o[e]];a=o[1],o[1]=o[5],o[5]=o[9],o[9]=o[13],o[13]=a,a=o[2],i=o[6],o[2]=o[10],o[6]=o[14],o[10]=a,o[14]=i,a=o[3],i=o[7],r=o[11],o[3]=o[15],o[7]=a,o[11]=i,o[15]=r;for(let e=0,n=this._keySize;e<16;++e,++n)o[e]^=t[n];return o}_decryptBlock2(e,t){const n=e.length;let r=this.buffer,i=this.bufferPosition;const a=[];let o=this.iv;for(let t=0;t<n;++t){if(r[i]=e[t],++i<16)continue;const n=this._decrypt(r,this._key);for(let e=0;e<16;++e)n[e]^=o[e];o=r,a.push(n),r=new Uint8Array(16),i=0}if(this.buffer=r,this.bufferLength=i,this.iv=o,0===a.length)return new Uint8Array(0);let s=16*a.length;if(t){const e=a[a.length-1];let t=e[15];if(t<=16){for(let n=15,r=16-t;n>=r;--n)if(e[n]!==t){t=0;break}s-=t,a[a.length-1]=e.subarray(0,16-t)}}const l=new Uint8Array(s);for(let e=0,t=0,n=a.length;e<n;++e,t+=16)l.set(a[e],t);return l}decryptBlock(e,t,n=null){const r=e.length,i=this.buffer;let a=this.bufferPosition;if(n)this.iv=n;else{for(let t=0;a<16&&t<r;++t,++a)i[a]=e[t];if(a<16)return this.bufferLength=a,new Uint8Array(0);this.iv=i,e=e.subarray(16)}return this.buffer=new Uint8Array(16),this.bufferLength=0,this.decryptBlock=this._decryptBlock2,this.decryptBlock(e,t)}encrypt(e,t){const n=e.length;let r=this.buffer,i=this.bufferPosition;const a=[];t||(t=new Uint8Array(16));for(let o=0;o<n;++o){if(r[i]=e[o],++i<16)continue;for(let e=0;e<16;++e)r[e]^=t[e];const n=this._encrypt(r,this._key);t=n,a.push(n),r=new Uint8Array(16),i=0}if(this.buffer=r,this.bufferLength=i,this.iv=t,0===a.length)return new Uint8Array(0);const o=16*a.length,s=new Uint8Array(o);for(let e=0,t=0,n=a.length;e<n;++e,t+=16)s.set(a[e],t);return s}}class p extends f{constructor(e){super(),this._cyclesOfRepetition=10,this._keySize=160,this._rcon=new Uint8Array([141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141]),this._key=this._expandKey(e)}_expandKey(e){const t=this._s,n=this._rcon,r=new Uint8Array(176);r.set(e);for(let e=16,i=1;e<176;++i){let a=r[e-3],o=r[e-2],s=r[e-1],l=r[e-4];a=t[a],o=t[o],s=t[s],l=t[l],a^=n[i];for(let t=0;t<4;++t)r[e]=a^=r[e-16],r[++e]=o^=r[e-16],r[++e]=s^=r[e-16],r[++e]=l^=r[e-16],e++}return r}}t.AES128Cipher=p;class A extends f{constructor(e){super(),this._cyclesOfRepetition=14,this._keySize=224,this._key=this._expandKey(e)}_expandKey(e){const t=this._s,n=new Uint8Array(240);n.set(e);let r,i,a,o,s=1;for(let e=32,l=1;e<240;++l){e%32==16?(r=t[r],i=t[i],a=t[a],o=t[o]):e%32==0&&(r=n[e-3],i=n[e-2],a=n[e-1],o=n[e-4],r=t[r],i=t[i],a=t[a],o=t[o],r^=s,(s<<=1)>=256&&(s=255&(27^s)));for(let t=0;t<4;++t)n[e]=r^=n[e-32],n[++e]=i^=n[e-32],n[++e]=a^=n[e-32],n[++e]=o^=n[e-32],e++}return n}}t.AES256Cipher=A;var g=function(){function e(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function t(){}return t.prototype={checkOwnerPassword:function(t,n,r,i){var a=new Uint8Array(t.length+56);return a.set(t,0),a.set(n,t.length),a.set(r,t.length+n.length),e(c(a,0,a.length),i)},checkUserPassword:function(t,n,r){var i=new Uint8Array(t.length+8);return i.set(t,0),i.set(n,t.length),e(c(i,0,i.length),r)},getOwnerKey:function(e,t,n,r){var i=new Uint8Array(e.length+56);i.set(e,0),i.set(t,e.length),i.set(n,e.length+t.length);var a=c(i,0,i.length);return new A(a).decryptBlock(r,!1,new Uint8Array(16))},getUserKey:function(e,t,n){var r=new Uint8Array(e.length+8);r.set(e,0),r.set(t,e.length);var i=c(r,0,r.length);return new A(i).decryptBlock(n,!1,new Uint8Array(16))}},t}();t.PDF17=g;var m=function(){function e(e,t){var n=new Uint8Array(e.length+t.length);return n.set(e,0),n.set(t,e.length),n}function t(t,n,r){for(var i=c(n,0,n.length).subarray(0,32),a=[0],o=0;o<64||a[a.length-1]>o-32;){var s=t.length+i.length+r.length,l=new Uint8Array(64*s),d=e(t,i);d=e(d,r);for(var f=0,A=0;f<64;f++,A+=s)l.set(d,A);a=new p(i.subarray(0,16)).encrypt(l,i.subarray(16,32));for(var g=0,m=0;m<16;m++)g*=1,g%=3,g+=(a[m]>>>0)%3,g%=3;0===g?i=c(a,0,a.length):1===g?i=h(a,0,a.length):2===g&&(i=u(a,0,a.length)),o++}return i.subarray(0,32)}function n(){}function r(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return n.prototype={hash:function(e,n,r){return t(e,n,r)},checkOwnerPassword:function(e,n,i,a){var o=new Uint8Array(e.length+56);return o.set(e,0),o.set(n,e.length),o.set(i,e.length+n.length),r(t(e,o,i),a)},checkUserPassword:function(e,n,i){var a=new Uint8Array(e.length+8);return a.set(e,0),a.set(n,e.length),r(t(e,a,[]),i)},getOwnerKey:function(e,n,r,i){var a=new Uint8Array(e.length+56);a.set(e,0),a.set(n,e.length),a.set(r,e.length+n.length);var o=t(e,a,r);return new A(o).decryptBlock(i,!1,new Uint8Array(16))},getUserKey:function(e,n,r){var i=new Uint8Array(e.length+8);i.set(e,0),i.set(n,e.length);var a=t(e,i,[]);return new A(a).decryptBlock(r,!1,new Uint8Array(16))}},n}();t.PDF20=m;var v=function(){function e(e,t){this.StringCipherConstructor=e,this.StreamCipherConstructor=t}return e.prototype={createStream:function(e,t){var n=new this.StreamCipherConstructor;return new a.DecryptStream(e,t,function(e,t){return n.decryptBlock(e,t)})},decryptString:function(e){var t=new this.StringCipherConstructor,n=(0,r.stringToBytes)(e);return n=t.decryptBlock(n,!0),(0,r.bytesToString)(n)}},e}(),y=function(){var e=new Uint8Array([40,191,78,94,78,117,138,65,100,0,78,86,255,250,1,8,46,46,0,182,208,104,62,128,47,12,169,254,100,83,105,122]);function t(t,n,r,i,a,l,c,u){var h,d,f=40+r.length+t.length,p=new Uint8Array(f),A=0;if(n)for(d=Math.min(32,n.length);A<d;++A)p[A]=n[A];for(h=0;A<32;)p[A++]=e[h++];for(h=0,d=r.length;h<d;++h)p[A++]=r[h];for(p[A++]=255&a,p[A++]=a>>8&255,p[A++]=a>>16&255,p[A++]=a>>>24&255,h=0,d=t.length;h<d;++h)p[A++]=t[h];l>=4&&!u&&(p[A++]=255,p[A++]=255,p[A++]=255,p[A++]=255);var g=s(p,0,A),m=c>>3;if(l>=3)for(h=0;h<50;++h)g=s(g,0,m);var v,y=g.subarray(0,m);if(l>=3){for(A=0;A<32;++A)p[A]=e[A];for(h=0,d=t.length;h<d;++h)p[A++]=t[h];v=new o(y).encryptBlock(s(p,0,A)),d=y.length;var b,w=new Uint8Array(d);for(h=1;h<=19;++h){for(b=0;b<d;++b)w[b]=y[b]^h;v=new o(w).encryptBlock(v)}for(h=0,d=v.length;h<d;++h)if(i[h]!==v[h])return null}else for(h=0,d=(v=new o(y).encryptBlock(e)).length;h<d;++h)if(i[h]!==v[h])return null;return y}var n=i.Name.get("Identity");function a(a,l,c){var u=a.get("Filter");if(!(0,i.isName)(u,"Standard"))throw new r.FormatError("unknown encryption method");this.dict=a;var h=a.get("V");if(!Number.isInteger(h)||1!==h&&2!==h&&4!==h&&5!==h)throw new r.FormatError("unsupported encryption algorithm");this.algorithm=h;var d=a.get("Length");if(!d)if(h<=3)d=40;else{var f=a.get("CF"),p=a.get("StmF");if((0,i.isDict)(f)&&(0,i.isName)(p)){f.suppressEncryption=!0;var A=f.get(p.name);(d=A&&A.get("Length")||128)<40&&(d<<=3)}}if(!Number.isInteger(d)||d<40||d%8!=0)throw new r.FormatError("invalid key length");var v=(0,r.stringToBytes)(a.get("O")).subarray(0,32),y=(0,r.stringToBytes)(a.get("U")).subarray(0,32),b=a.get("P"),w=a.get("R"),x=(4===h||5===h)&&!1!==a.get("EncryptMetadata");this.encryptMetadata=x;var _,C,S=(0,r.stringToBytes)(l);if(c){if(6===w)try{c=(0,r.utf8StringToString)(c)}catch(e){(0,r.warn)("CipherTransformFactory: Unable to convert UTF8 encoded password.")}_=(0,r.stringToBytes)(c)}if(5!==h)C=t(S,_,v,y,b,w,d,x);else{var k=(0,r.stringToBytes)(a.get("O")).subarray(32,40),B=(0,r.stringToBytes)(a.get("O")).subarray(40,48),E=(0,r.stringToBytes)(a.get("U")).subarray(0,48),T=(0,r.stringToBytes)(a.get("U")).subarray(32,40),I=(0,r.stringToBytes)(a.get("U")).subarray(40,48),M=(0,r.stringToBytes)(a.get("OE")),F=(0,r.stringToBytes)(a.get("UE"));(0,r.stringToBytes)(a.get("Perms"));C=function(e,t,n,r,i,a,o,s,l,c,u,h){if(t){var d=Math.min(127,t.length);t=t.subarray(0,d)}else t=[];var f;return(f=6===e?new m:new g).checkUserPassword(t,s,o)?f.getUserKey(t,l,u):t.length&&f.checkOwnerPassword(t,r,a,n)?f.getOwnerKey(t,i,a,c):null}(w,_,v,k,B,E,y,T,I,M,F)}if(!C&&!c)throw new r.PasswordException("No password given",r.PasswordResponses.NEED_PASSWORD);if(!C&&c&&(C=t(S,function(t,n,r,i){var a,l,c=new Uint8Array(32),u=0;for(l=Math.min(32,t.length);u<l;++u)c[u]=t[u];for(a=0;u<32;)c[u++]=e[a++];var h,d=s(c,0,u),f=i>>3;if(r>=3)for(a=0;a<50;++a)d=s(d,0,d.length);if(r>=3){h=n;var p,A=new Uint8Array(f);for(a=19;a>=0;a--){for(p=0;p<f;++p)A[p]=d[p]^a;h=new o(A).encryptBlock(h)}}else h=new o(d.subarray(0,f)).encryptBlock(n);return h}(_,v,w,d),v,y,b,w,d,x)),!C)throw new r.PasswordException("Incorrect Password",r.PasswordResponses.INCORRECT_PASSWORD);if(this.encryptionKey=C,h>=4){var D=a.get("CF");(0,i.isDict)(D)&&(D.suppressEncryption=!0),this.cf=D,this.stmf=a.get("StmF")||n,this.strf=a.get("StrF")||n,this.eff=a.get("EFF")||this.stmf}}function l(e,t,n,r){var i,a,o=new Uint8Array(n.length+9);for(i=0,a=n.length;i<a;++i)o[i]=n[i];return o[i++]=255&e,o[i++]=e>>8&255,o[i++]=e>>16&255,o[i++]=255&t,o[i++]=t>>8&255,r&&(o[i++]=115,o[i++]=65,o[i++]=108,o[i++]=84),s(o,0,i).subarray(0,Math.min(n.length+5,16))}function c(e,t,n,a,s){if(!(0,i.isName)(t))throw new r.FormatError("Invalid crypt filter name.");var c,u=e.get(t.name);if(null!==u&&void 0!==u&&(c=u.get("CFM")),!c||"None"===c.name)return function(){return new d};if("V2"===c.name)return function(){return new o(l(n,a,s,!1))};if("AESV2"===c.name)return function(){return new p(l(n,a,s,!0))};if("AESV3"===c.name)return function(){return new A(s)};throw new r.FormatError("Unknown crypto method")}return a.prototype={createCipherTransform:function(e,t){if(4===this.algorithm||5===this.algorithm)return new v(c(this.cf,this.stmf,e,t,this.encryptionKey),c(this.cf,this.strf,e,t,this.encryptionKey));var n=l(e,t,this.encryptionKey,!1),r=function(){return new o(n)};return new v(r,r)}},a}();t.CipherTransformFactory=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ColorSpace=void 0;var r=n(2),i=n(5);class a{constructor(e,t){this.constructor===a&&(0,r.unreachable)("Cannot initialize ColorSpace."),this.name=e,this.numComps=t}getRgb(e,t){const n=new Uint8ClampedArray(3);return this.getRgbItem(e,t,n,0),n}getRgbItem(e,t,n,i){(0,r.unreachable)("Should not call ColorSpace.getRgbItem")}getRgbBuffer(e,t,n,i,a,o,s){(0,r.unreachable)("Should not call ColorSpace.getRgbBuffer")}getOutputLength(e,t){(0,r.unreachable)("Should not call ColorSpace.getOutputLength")}isPassthrough(e){return!1}isDefaultDecode(e,t){return a.isDefaultDecode(e,this.numComps)}fillRgb(e,t,n,r,i,a,o,s,l){const c=t*n;let u=null;const h=1<<o,d=n!==i||t!==r;if(this.isPassthrough(o))u=s;else if(1===this.numComps&&c>h&&"DeviceGray"!==this.name&&"DeviceRGB"!==this.name){const t=o<=8?new Uint8Array(h):new Uint16Array(h);for(let e=0;e<h;e++)t[e]=e;const n=new Uint8ClampedArray(3*h);if(this.getRgbBuffer(t,0,h,n,0,o,0),d){u=new Uint8Array(3*c);let e=0;for(let t=0;t<c;++t){const r=3*s[t];u[e++]=n[r],u[e++]=n[r+1],u[e++]=n[r+2]}}else{let t=0;for(let r=0;r<c;++r){const i=3*s[r];e[t++]=n[i],e[t++]=n[i+1],e[t++]=n[i+2],t+=l}}}else d?(u=new Uint8ClampedArray(3*c),this.getRgbBuffer(s,0,c,u,0,o,0)):this.getRgbBuffer(s,0,r*a,e,0,o,l);if(u)if(d)!function(e,t,n,r,i,a,o){o=1!==o?0:o;const s=n/i,l=r/a;let c,u=0;const h=new Uint16Array(i),d=3*n;for(let e=0;e<i;e++)h[e]=3*Math.floor(e*s);for(let n=0;n<a;n++){const r=Math.floor(n*l)*d;for(let n=0;n<i;n++)c=r+h[n],t[u++]=e[c++],t[u++]=e[c++],t[u++]=e[c++],u+=o}}(u,e,t,n,r,i,l);else{let t=0,n=0;for(let i=0,o=r*a;i<o;i++)e[t++]=u[n++],e[t++]=u[n++],e[t++]=u[n++],t+=l}}get usesZeroToOneRange(){return(0,r.shadow)(this,"usesZeroToOneRange",!0)}static parse(e,t,n,r){const i=this.parseToIR(e,t,n,r);return this.fromIR(i)}static fromIR(e){const t=Array.isArray(e)?e[0]:e;let n,i,a;switch(t){case"DeviceGrayCS":return this.singletons.gray;case"DeviceRgbCS":return this.singletons.rgb;case"DeviceCmykCS":return this.singletons.cmyk;case"CalGrayCS":return n=e[1],i=e[2],a=e[3],new d(n,i,a);case"CalRGBCS":n=e[1],i=e[2],a=e[3];const c=e[4];return new f(n,i,a,c);case"PatternCS":let u=e[1];return u&&(u=this.fromIR(u)),new s(u);case"IndexedCS":const h=e[1],A=e[2],g=e[3];return new l(this.fromIR(h),A,g);case"AlternateCS":const m=e[1],v=e[2],y=e[3];return new o(m,this.fromIR(v),y);case"LabCS":n=e[1],i=e[2];const b=e[3];return new p(n,i,b);default:throw new r.FormatError(`Unknown colorspace name: ${t}`)}}static parseToIR(e,t,n=null,a){if(e=t.fetchIfRef(e),(0,i.isName)(e))switch(e.name){case"DeviceGray":case"G":return"DeviceGrayCS";case"DeviceRGB":case"RGB":return"DeviceRgbCS";case"DeviceCMYK":case"CMYK":return"DeviceCmykCS";case"Pattern":return["PatternCS",null];default:if((0,i.isDict)(n)){const r=n.get("ColorSpace");if((0,i.isDict)(r)){const o=r.get(e.name);if(o){if((0,i.isName)(o))return this.parseToIR(o,t,n,a);e=o;break}}}throw new r.FormatError(`unrecognized colorspace ${e.name}`)}if(Array.isArray(e)){const o=t.fetchIfRef(e[0]).name;let s,l,c,u,h,d;switch(o){case"DeviceGray":case"G":return"DeviceGrayCS";case"DeviceRGB":case"RGB":return"DeviceRgbCS";case"DeviceCMYK":case"CMYK":return"DeviceCmykCS";case"CalGray":return["CalGrayCS",u=(l=t.fetchIfRef(e[1])).getArray("WhitePoint"),h=l.getArray("BlackPoint"),d=l.get("Gamma")];case"CalRGB":return["CalRGBCS",u=(l=t.fetchIfRef(e[1])).getArray("WhitePoint"),h=l.getArray("BlackPoint"),d=l.getArray("Gamma"),l.getArray("Matrix")];case"ICCBased":const f=t.fetchIfRef(e[1]).dict;if(s=f.get("N"),c=f.get("Alternate")){const e=this.parseToIR(c,t,n,a);if(this.fromIR(e,a).numComps===s)return e;(0,r.warn)("ICCBased color space: Ignoring incorrect /Alternate entry.")}if(1===s)return"DeviceGrayCS";if(3===s)return"DeviceRgbCS";if(4===s)return"DeviceCmykCS";break;case"Pattern":let p=e[1]||null;return p&&(p=this.parseToIR(p,t,n,a)),["PatternCS",p];case"Indexed":case"I":const A=this.parseToIR(e[1],t,n,a),g=t.fetchIfRef(e[2])+1;let m=t.fetchIfRef(e[3]);return(0,i.isStream)(m)&&(m=m.getBytes()),["IndexedCS",A,g,m];case"Separation":case"DeviceN":const v=t.fetchIfRef(e[1]);return["AlternateCS",s=Array.isArray(v)?v.length:1,c=this.parseToIR(e[2],t,n,a),a.create(t.fetchIfRef(e[3]))];case"Lab":return["LabCS",u=(l=t.fetchIfRef(e[1])).getArray("WhitePoint"),h=l.getArray("BlackPoint"),l.getArray("Range")];default:throw new r.FormatError(`unimplemented color space object "${o}"`)}}throw new r.FormatError(`unrecognized color space object: "${e}"`)}static isDefaultDecode(e,t){if(!Array.isArray(e))return!0;if(2*t!==e.length)return(0,r.warn)("The decode map is not the correct length"),!0;for(let t=0,n=e.length;t<n;t+=2)if(0!==e[t]||1!==e[t+1])return!1;return!0}static get singletons(){return(0,r.shadow)(this,"singletons",{get gray(){return(0,r.shadow)(this,"gray",new c)},get rgb(){return(0,r.shadow)(this,"rgb",new u)},get cmyk(){return(0,r.shadow)(this,"cmyk",new h)}})}}t.ColorSpace=a;class o extends a{constructor(e,t,n){super("Alternate",e),this.base=t,this.tintFn=n,this.tmpBuf=new Float32Array(t.numComps)}getRgbItem(e,t,n,r){const i=this.tmpBuf;this.tintFn(e,t,i,0),this.base.getRgbItem(i,0,n,r)}getRgbBuffer(e,t,n,r,i,a,o){const s=this.tintFn,l=this.base,c=1/((1<<a)-1),u=l.numComps,h=l.usesZeroToOneRange,d=(l.isPassthrough(8)||!h)&&0===o;let f=d?i:0;const p=d?r:new Uint8ClampedArray(u*n),A=this.numComps,g=new Float32Array(A),m=new Float32Array(u);let v,y;for(v=0;v<n;v++){for(y=0;y<A;y++)g[y]=e[t++]*c;if(s(g,0,m,0),h)for(y=0;y<u;y++)p[f++]=255*m[y];else l.getRgbItem(m,0,p,f),f+=u}d||l.getRgbBuffer(p,0,n,r,i,8,o)}getOutputLength(e,t){return this.base.getOutputLength(e*this.base.numComps/this.numComps,t)}}class s extends a{constructor(e){super("Pattern",null),this.base=e}isDefaultDecode(e,t){(0,r.unreachable)("Should not call PatternCS.isDefaultDecode")}}class l extends a{constructor(e,t,n){super("Indexed",1),this.base=e,this.highVal=t;const a=e.numComps*t;if((0,i.isStream)(n)){this.lookup=new Uint8Array(a);const e=n.getBytes(a);this.lookup.set(e)}else if((0,r.isString)(n)){this.lookup=new Uint8Array(a);for(let e=0;e<a;++e)this.lookup[e]=n.charCodeAt(e)}else{if(!(n instanceof Uint8Array))throw new r.FormatError(`Unrecognized lookup table: ${n}`);this.lookup=n}}getRgbItem(e,t,n,r){const i=this.base.numComps,a=e[t]*i;this.base.getRgbBuffer(this.lookup,a,1,n,r,8,0)}getRgbBuffer(e,t,n,r,i,a,o){const s=this.base,l=s.numComps,c=s.getOutputLength(l,o),u=this.lookup;for(let a=0;a<n;++a){const n=e[t++]*l;s.getRgbBuffer(u,n,1,r,i,8,o),i+=c}}getOutputLength(e,t){return this.base.getOutputLength(e*this.base.numComps,t)}isDefaultDecode(e,t){return!Array.isArray(e)||(2!==e.length?((0,r.warn)("Decode map length is not correct"),!0):!Number.isInteger(t)||t<1?((0,r.warn)("Bits per component is not correct"),!0):0===e[0]&&e[1]===(1<<t)-1)}}class c extends a{constructor(){super("DeviceGray",1)}getRgbItem(e,t,n,r){const i=255*e[t];n[r]=n[r+1]=n[r+2]=i}getRgbBuffer(e,t,n,r,i,a,o){const s=255/((1<<a)-1);let l=t,c=i;for(let t=0;t<n;++t){const t=s*e[l++];r[c++]=t,r[c++]=t,r[c++]=t,c+=o}}getOutputLength(e,t){return e*(3+t)}}class u extends a{constructor(){super("DeviceRGB",3)}getRgbItem(e,t,n,r){n[r]=255*e[t],n[r+1]=255*e[t+1],n[r+2]=255*e[t+2]}getRgbBuffer(e,t,n,r,i,a,o){if(8===a&&0===o)return void r.set(e.subarray(t,t+3*n),i);const s=255/((1<<a)-1);let l=t,c=i;for(let t=0;t<n;++t)r[c++]=s*e[l++],r[c++]=s*e[l++],r[c++]=s*e[l++],c+=o}getOutputLength(e,t){return e*(3+t)/3|0}isPassthrough(e){return 8===e}}const h=function(){function e(e,t,n,r,i){const a=e[t]*n,o=e[t+1]*n,s=e[t+2]*n,l=e[t+3]*n;r[i]=255+a*(-4.387332384609988*a+54.48615194189176*o+18.82290502165302*s+212.25662451639585*l-285.2331026137004)+o*(1.7149763477362134*o-5.6096736904047315*s+-17.873870861415444*l-5.497006427196366)+s*(-2.5217340131683033*s-21.248923337353073*l+17.5119270841813)+l*(-21.86122147463605*l-189.48180835922747),r[i+1]=255+a*(8.841041422036149*a+60.118027045597366*o+6.871425592049007*s+31.159100130055922*l-79.2970844816548)+o*(-15.310361306967817*o+17.575251261109482*s+131.35250912493976*l-190.9453302588951)+s*(4.444339102852739*s+9.8632861493405*l-24.86741582555878)+l*(-20.737325471181034*l-187.80453709719578),r[i+2]=255+a*(.8842522430003296*a+8.078677503112928*o+30.89978309703729*s-.23883238689178934*l-14.183576799673286)+o*(10.49593273432072*o+63.02378494754052*s+50.606957656360734*l-112.23884253719248)+s*(.03296041114873217*s+115.60384449646641*l-193.58209356861505)+l*(-22.33816807309886*l-180.12613974708367)}return class extends a{constructor(){super("DeviceCMYK",4)}getRgbItem(t,n,r,i){e(t,n,1,r,i)}getRgbBuffer(t,n,r,i,a,o,s){const l=1/((1<<o)-1);for(let o=0;o<r;o++)e(t,n,l,i,a),n+=4,a+=3+s}getOutputLength(e,t){return e/4*(3+t)|0}}}(),d=function(){function e(e,t,n,r,i,a){const o=(t[n]*a)**e.G,s=e.YW*o,l=Math.max(295.8*s**.3333333333333333-40.8,0);r[i]=l,r[i+1]=l,r[i+2]=l}return class extends a{constructor(e,t,n){if(super("CalGray",1),!e)throw new r.FormatError("WhitePoint missing - required for color space CalGray");if(t=t||[0,0,0],n=n||1,this.XW=e[0],this.YW=e[1],this.ZW=e[2],this.XB=t[0],this.YB=t[1],this.ZB=t[2],this.G=n,this.XW<0||this.ZW<0||1!==this.YW)throw new r.FormatError(`Invalid WhitePoint components for ${this.name}`+", no fallback available");(this.XB<0||this.YB<0||this.ZB<0)&&((0,r.info)(`Invalid BlackPoint for ${this.name}, falling back to default.`),this.XB=this.YB=this.ZB=0),0===this.XB&&0===this.YB&&0===this.ZB||(0,r.warn)(`${this.name}, BlackPoint: XB: ${this.XB}, YB: ${this.YB}, `+`ZB: ${this.ZB}, only default values are supported.`),this.G<1&&((0,r.info)(`Invalid Gamma: ${this.G} for ${this.name}, `+"falling back to default."),this.G=1)}getRgbItem(t,n,r,i){e(this,t,n,r,i,1)}getRgbBuffer(t,n,r,i,a,o,s){const l=1/((1<<o)-1);for(let o=0;o<r;++o)e(this,t,n,i,a,l),n+=1,a+=3+s}getOutputLength(e,t){return e*(3+t)}}}(),f=function(){const e=new Float32Array([.8951,.2664,-.1614,-.7502,1.7135,.0367,.0389,-.0685,1.0296]),t=new Float32Array([.9869929,-.1470543,.1599627,.4323053,.5183603,.0492912,-.0085287,.0400428,.9684867]),n=new Float32Array([3.2404542,-1.5371385,-.4985314,-.969266,1.8760108,.041556,.0556434,-.2040259,1.0572252]),i=new Float32Array([1,1,1]),o=new Float32Array(3),s=new Float32Array(3),l=new Float32Array(3),c=(24/116)**3/8;function u(e,t,n){n[0]=e[0]*t[0]+e[1]*t[1]+e[2]*t[2],n[1]=e[3]*t[0]+e[4]*t[1]+e[5]*t[2],n[2]=e[6]*t[0]+e[7]*t[1]+e[8]*t[2]}function h(e){return d(0,1,e<=.0031308?12.92*e:1.055*e**(1/2.4)-.055)}function d(e,t,n){return Math.max(e,Math.min(t,n))}function f(e){return e<0?-f(-e):e>8?((e+16)/116)**3:e*c}function p(r,a,c,p,A,g){const m=d(0,1,a[c]*g),v=d(0,1,a[c+1]*g),y=d(0,1,a[c+2]*g),b=m**r.GR,w=v**r.GG,x=y**r.GB,_=r.MXA*b+r.MXB*w+r.MXC*x,C=r.MYA*b+r.MYB*w+r.MYC*x,S=r.MZA*b+r.MZB*w+r.MZC*x,k=s;k[0]=_,k[1]=C,k[2]=S;const B=l;!function(n,r,i){if(1===n[0]&&1===n[2])return i[0]=r[0],i[1]=r[1],void(i[2]=r[2]);const a=i;u(e,r,a);const s=o;!function(e,t,n){n[0]=1*t[0]/e[0],n[1]=1*t[1]/e[1],n[2]=1*t[2]/e[2]}(n,a,s),u(t,s,i)}(r.whitePoint,k,B);const E=s;!function(e,t,n){if(0===e[0]&&0===e[1]&&0===e[2])return n[0]=t[0],n[1]=t[1],void(n[2]=t[2]);const r=f(0),i=(1-r)/(1-f(e[0])),a=1-i,o=(1-r)/(1-f(e[1])),s=1-o,l=(1-r)/(1-f(e[2])),c=1-l;n[0]=t[0]*i+a,n[1]=t[1]*o+s,n[2]=t[2]*l+c}(r.blackPoint,B,E);const T=l;!function(n,r,i){const a=i;u(e,r,a);const s=o;!function(e,t,n){n[0]=.95047*t[0]/e[0],n[1]=1*t[1]/e[1],n[2]=1.08883*t[2]/e[2]}(n,a,s),u(t,s,i)}(i,E,T);const I=s;u(n,T,I),p[A]=255*h(I[0]),p[A+1]=255*h(I[1]),p[A+2]=255*h(I[2])}return class extends a{constructor(e,t,n,i){if(super("CalRGB",3),!e)throw new r.FormatError("WhitePoint missing - required for color space CalRGB");t=t||new Float32Array(3),n=n||new Float32Array([1,1,1]),i=i||new Float32Array([1,0,0,0,1,0,0,0,1]);const a=e[0],o=e[1],s=e[2];this.whitePoint=e;const l=t[0],c=t[1],u=t[2];if(this.blackPoint=t,this.GR=n[0],this.GG=n[1],this.GB=n[2],this.MXA=i[0],this.MYA=i[1],this.MZA=i[2],this.MXB=i[3],this.MYB=i[4],this.MZB=i[5],this.MXC=i[6],this.MYC=i[7],this.MZC=i[8],a<0||s<0||1!==o)throw new r.FormatError(`Invalid WhitePoint components for ${this.name}`+", no fallback available");(l<0||c<0||u<0)&&((0,r.info)(`Invalid BlackPoint for ${this.name} [${l}, ${c}, ${u}], `+"falling back to default."),this.blackPoint=new Float32Array(3)),(this.GR<0||this.GG<0||this.GB<0)&&((0,r.info)(`Invalid Gamma [${this.GR}, ${this.GG}, ${this.GB}] for `+`${this.name}, falling back to default.`),this.GR=this.GG=this.GB=1)}getRgbItem(e,t,n,r){p(this,e,t,n,r,1)}getRgbBuffer(e,t,n,r,i,a,o){const s=1/((1<<a)-1);for(let a=0;a<n;++a)p(this,e,t,r,i,s),t+=3,i+=3+o}getOutputLength(e,t){return e*(3+t)/3|0}}}(),p=function(){function e(e){let t;return t=e>=6/29?e*e*e:108/841*(e-4/29)}function t(e,t,n,r){return n+e*(r-n)/t}function n(n,r,i,a,o,s){let l=r[i],c=r[i+1],u=r[i+2];!1!==a&&(l=t(l,a,0,100),c=t(c,a,n.amin,n.amax),u=t(u,a,n.bmin,n.bmax)),c>n.amax?c=n.amax:c<n.amin&&(c=n.amin),u>n.bmax?u=n.bmax:u<n.bmin&&(u=n.bmin);const h=(l+16)/116,d=h+c/500,f=h-u/200,p=n.XW*e(d),A=n.YW*e(h),g=n.ZW*e(f);let m,v,y;n.ZW<1?(m=3.1339*p+-1.617*A+-.4906*g,v=-.9785*p+1.916*A+.0333*g,y=.072*p+-.229*A+1.4057*g):(m=3.2406*p+-1.5372*A+-.4986*g,v=-.9689*p+1.8758*A+.0415*g,y=.0557*p+-.204*A+1.057*g),o[s]=255*Math.sqrt(m),o[s+1]=255*Math.sqrt(v),o[s+2]=255*Math.sqrt(y)}return class extends a{constructor(e,t,n){if(super("Lab",3),!e)throw new r.FormatError("WhitePoint missing - required for color space Lab");if(t=t||[0,0,0],n=n||[-100,100,-100,100],this.XW=e[0],this.YW=e[1],this.ZW=e[2],this.amin=n[0],this.amax=n[1],this.bmin=n[2],this.bmax=n[3],this.XB=t[0],this.YB=t[1],this.ZB=t[2],this.XW<0||this.ZW<0||1!==this.YW)throw new r.FormatError("Invalid WhitePoint components, no fallback available");(this.XB<0||this.YB<0||this.ZB<0)&&((0,r.info)("Invalid BlackPoint, falling back to default"),this.XB=this.YB=this.ZB=0),(this.amin>this.amax||this.bmin>this.bmax)&&((0,r.info)("Invalid Range, falling back to defaults"),this.amin=-100,this.amax=100,this.bmin=-100,this.bmax=100)}getRgbItem(e,t,r,i){n(this,e,t,!1,r,i)}getRgbBuffer(e,t,r,i,a,o,s){const l=(1<<o)-1;for(let o=0;o<r;o++)n(this,e,t,l,i,a),t+=3,a+=3+s}getOutputLength(e,t){return e*(3+t)/3|0}isDefaultDecode(e,t){return!0}get usesZeroToOneRange(){return(0,r.shadow)(this,"usesZeroToOneRange",!1)}}}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalImageCache=t.LocalImageCache=void 0;var r=n(2),i=n(5);t.LocalImageCache=class{constructor(){this._nameRefMap=new Map,this._imageMap=new Map,this._imageCache=new i.RefSetCache}getByName(e){const t=this._nameRefMap.get(e);return t?this.getByRef(t):this._imageMap.get(e)||null}getByRef(e){return this._imageCache.get(e)||null}set(e,t=null,n){if(!e)throw new Error('LocalImageCache.set - expected "name" argument.');if(t){if(this._imageCache.has(t))return;return this._nameRefMap.set(e,t),void this._imageCache.put(t,n)}this._imageMap.has(e)||this._imageMap.set(e,n)}};class a{static get NUM_PAGES_THRESHOLD(){return(0,r.shadow)(this,"NUM_PAGES_THRESHOLD",2)}static get MAX_IMAGES_TO_CACHE(){return(0,r.shadow)(this,"MAX_IMAGES_TO_CACHE",10)}constructor(){this._refCache=new i.RefSetCache,this._imageCache=new i.RefSetCache}shouldCache(e,t){const n=this._refCache.get(e);return!((n?n.size+(n.has(t)?0:1):1)<a.NUM_PAGES_THRESHOLD)&&!(!this._imageCache.has(e)&&this._imageCache.size>=a.MAX_IMAGES_TO_CACHE)}addPageIndex(e,t){let n=this._refCache.get(e);n||(n=new Set,this._refCache.put(e,n)),n.add(t)}getData(e,t){if(!this._refCache.has(e))return null;const n=this._refCache.get(e);return n.size<a.NUM_PAGES_THRESHOLD?null:this._imageCache.has(e)?(n.add(t),this._imageCache.get(e)):null}setData(e,t){if(!this._refCache.has(e))throw new Error('GlobalImageCache.setData - expected "addPageIndex" to have been called.');this._imageCache.has(e)||(this._imageCache.size>=a.MAX_IMAGES_TO_CACHE?(0,r.info)("GlobalImageCache.setData - ignoring image above MAX_IMAGES_TO_CACHE."):this._imageCache.put(e,t))}clear(e=!1){e||this._refCache.clear(),this._imageCache.clear()}}t.GlobalImageCache=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getQuadPoints=u,t.MarkupAnnotation=t.AnnotationFactory=t.AnnotationBorderStyle=t.Annotation=void 0;var r=n(2),i=n(10),a=n(5),o=n(23),s=n(8),l=n(26),c=n(12);function u(e,t){if(!e.has("QuadPoints"))return null;const n=e.getArray("QuadPoints");if(!Array.isArray(n)||n.length%8>0)return null;const r=[];for(let e=0,i=n.length/8;e<i;e++){r.push([]);for(let i=8*e,a=8*e+8;i<a;i+=2){const a=n[i],o=n[i+1];if(a<t[0]||a>t[2]||o<t[1]||o>t[3])return null;r[e].push({x:a,y:o})}}return r}t.AnnotationFactory=class{static create(e,t,n,r){return n.ensure(this,"_create",[e,t,n,r])}static _create(e,t,n,i){const o=e.fetchIfRef(t);if(!(0,a.isDict)(o))return;const l=(0,a.isRef)(t)?t.toString():`annot_${i.createObjId()}`;let c=o.get("Subtype");const u={xref:e,dict:o,subtype:c=(0,a.isName)(c)?c.name:null,id:l,pdfManager:n};switch(c){case"Link":return new y(u);case"Text":return new v(u);case"Widget":let e=(0,s.getInheritableProperty)({dict:o,key:"FT"});switch(e=(0,a.isName)(e)?e.name:null){case"Tx":return new A(u);case"Btn":return new g(u);case"Ch":return new m(u)}return(0,r.warn)('Unimplemented widget field type "'+e+'", falling back to base field type.'),new p(u);case"Popup":return new b(u);case"FreeText":return new w(u);case"Line":return new x(u);case"Square":return new _(u);case"Circle":return new C(u);case"PolyLine":return new S(u);case"Polygon":return new k(u);case"Caret":return new B(u);case"Ink":return new E(u);case"Highlight":return new T(u);case"Underline":return new I(u);case"Squiggly":return new M(u);case"StrikeOut":return new F(u);case"Stamp":return new D(u);case"FileAttachment":return new P(u);default:return c?(0,r.warn)('Unimplemented annotation type "'+c+'", falling back to base annotation.'):(0,r.warn)("Annotation is missing the required /Subtype."),new h(u)}}};class h{constructor(e){const t=e.dict;this.setContents(t.get("Contents")),this.setModificationDate(t.get("M")),this.setFlags(t.get("F")),this.setRectangle(t.getArray("Rect")),this.setColor(t.getArray("C")),this.setBorderStyle(t),this.setAppearance(t),this.data={annotationFlags:this.flags,borderStyle:this.borderStyle,color:this.color,contents:this.contents,hasAppearance:!!this.appearance,id:e.id,modificationDate:this.modificationDate,rect:this.rectangle,subtype:e.subtype}}_hasFlag(e,t){return!!(e&t)}_isViewable(e){return!this._hasFlag(e,r.AnnotationFlag.INVISIBLE)&&!this._hasFlag(e,r.AnnotationFlag.HIDDEN)&&!this._hasFlag(e,r.AnnotationFlag.NOVIEW)}_isPrintable(e){return this._hasFlag(e,r.AnnotationFlag.PRINT)&&!this._hasFlag(e,r.AnnotationFlag.INVISIBLE)&&!this._hasFlag(e,r.AnnotationFlag.HIDDEN)}get viewable(){return 0===this.flags||this._isViewable(this.flags)}get printable(){return 0!==this.flags&&this._isPrintable(this.flags)}setContents(e){this.contents=(0,r.stringToPDFString)(e||"")}setModificationDate(e){this.modificationDate=(0,r.isString)(e)?e:null}setFlags(e){this.flags=Number.isInteger(e)&&e>0?e:0}hasFlag(e){return this._hasFlag(this.flags,e)}setRectangle(e){Array.isArray(e)&&4===e.length?this.rectangle=r.Util.normalizeRect(e):this.rectangle=[0,0,0,0]}setColor(e){const t=new Uint8ClampedArray(3);if(Array.isArray(e))switch(e.length){case 0:this.color=null;break;case 1:o.ColorSpace.singletons.gray.getRgbItem(e,0,t,0),this.color=t;break;case 3:o.ColorSpace.singletons.rgb.getRgbItem(e,0,t,0),this.color=t;break;case 4:o.ColorSpace.singletons.cmyk.getRgbItem(e,0,t,0),this.color=t;break;default:this.color=t}else this.color=t}setBorderStyle(e){if(this.borderStyle=new d,(0,a.isDict)(e))if(e.has("BS")){const t=e.get("BS"),n=t.get("Type");n&&!(0,a.isName)(n,"Border")||(this.borderStyle.setWidth(t.get("W"),this.rectangle),this.borderStyle.setStyle(t.get("S")),this.borderStyle.setDashArray(t.getArray("D")))}else if(e.has("Border")){const t=e.getArray("Border");Array.isArray(t)&&t.length>=3&&(this.borderStyle.setHorizontalCornerRadius(t[0]),this.borderStyle.setVerticalCornerRadius(t[1]),this.borderStyle.setWidth(t[2],this.rectangle),4===t.length&&this.borderStyle.setDashArray(t[3]))}else this.borderStyle.setWidth(0)}setAppearance(e){this.appearance=null;const t=e.get("AP");if(!(0,a.isDict)(t))return;const n=t.get("N");if((0,a.isStream)(n))return void(this.appearance=n);if(!(0,a.isDict)(n))return;const r=e.get("AS");(0,a.isName)(r)&&n.has(r.name)&&(this.appearance=n.get(r.name))}loadResources(e){return this.appearance.dict.getAsync("Resources").then(t=>{if(!t)return;return new i.ObjectLoader(t,e,t.xref).load().then(function(){return t})})}getOperatorList(e,t,n){if(!this.appearance)return Promise.resolve(new l.OperatorList);const i=this.data,a=this.appearance.dict,o=this.loadResources(["ExtGState","ColorSpace","Pattern","Shading","XObject","Font"]),s=a.getArray("BBox")||[0,0,1,1],c=a.getArray("Matrix")||[1,0,0,1,0,0],u=function(e,t,n){const[i,a,o,s]=r.Util.getAxialAlignedBoundingBox(t,n);if(i===o||a===s)return[1,0,0,1,e[0],e[1]];const l=(e[2]-e[0])/(o-i),c=(e[3]-e[1])/(s-a);return[l,0,0,c,e[0]-i*l,e[1]-a*c]}(i.rect,s,c);return o.then(n=>{const a=new l.OperatorList;return a.addOp(r.OPS.beginAnnotation,[i.rect,u,c]),e.getOperatorList({stream:this.appearance,task:t,resources:n,operatorList:a}).then(()=>(a.addOp(r.OPS.endAnnotation,[]),this.appearance.reset(),a))})}}t.Annotation=h;class d{constructor(){this.width=1,this.style=r.AnnotationBorderStyleType.SOLID,this.dashArray=[3],this.horizontalCornerRadius=0,this.verticalCornerRadius=0}setWidth(e,t=[0,0,0,0]){if((0,a.isName)(e))this.width=0;else if(Number.isInteger(e)){if(e>0){const n=(t[2]-t[0])/2,i=(t[3]-t[1])/2;n>0&&i>0&&(e>n||e>i)&&((0,r.warn)(`AnnotationBorderStyle.setWidth - ignoring width: ${e}`),e=1)}this.width=e}}setStyle(e){if((0,a.isName)(e))switch(e.name){case"S":this.style=r.AnnotationBorderStyleType.SOLID;break;case"D":this.style=r.AnnotationBorderStyleType.DASHED;break;case"B":this.style=r.AnnotationBorderStyleType.BEVELED;break;case"I":this.style=r.AnnotationBorderStyleType.INSET;break;case"U":this.style=r.AnnotationBorderStyleType.UNDERLINE}}setDashArray(e){if(Array.isArray(e)&&e.length>0){let t=!0,n=!0;for(const r of e){if(!(+r>=0)){t=!1;break}r>0&&(n=!1)}t&&!n?this.dashArray=e:this.width=0}else e&&(this.width=0)}setHorizontalCornerRadius(e){Number.isInteger(e)&&(this.horizontalCornerRadius=e)}setVerticalCornerRadius(e){Number.isInteger(e)&&(this.verticalCornerRadius=e)}}t.AnnotationBorderStyle=d;class f extends h{constructor(e){super(e);const t=e.dict;if(t.has("IRT")){const e=t.getRaw("IRT");this.data.inReplyTo=(0,a.isRef)(e)?e.toString():null;const n=t.get("RT");this.data.replyType=(0,a.isName)(n)?n.name:r.AnnotationReplyType.REPLY}if(this.data.replyType===r.AnnotationReplyType.GROUP){const e=t.get("IRT");this.data.title=(0,r.stringToPDFString)(e.get("T")||""),this.setContents(e.get("Contents")),this.data.contents=this.contents,e.has("CreationDate")?(this.setCreationDate(e.get("CreationDate")),this.data.creationDate=this.creationDate):this.data.creationDate=null,e.has("M")?(this.setModificationDate(e.get("M")),this.data.modificationDate=this.modificationDate):this.data.modificationDate=null,this.data.hasPopup=e.has("Popup"),e.has("C")?(this.setColor(e.getArray("C")),this.data.color=this.color):this.data.color=null}else this.data.title=(0,r.stringToPDFString)(t.get("T")||""),this.setCreationDate(t.get("CreationDate")),this.data.creationDate=this.creationDate,this.data.hasPopup=t.has("Popup"),t.has("C")||(this.data.color=null)}setCreationDate(e){this.creationDate=(0,r.isString)(e)?e:null}}t.MarkupAnnotation=f;class p extends h{constructor(e){super(e);const t=e.dict,n=this.data;n.annotationType=r.AnnotationType.WIDGET,n.fieldName=this._constructFieldName(t),n.fieldValue=(0,s.getInheritableProperty)({dict:t,key:"V",getArray:!0}),n.alternativeText=(0,r.stringToPDFString)(t.get("TU")||""),n.defaultAppearance=(0,s.getInheritableProperty)({dict:t,key:"DA"})||"";const i=(0,s.getInheritableProperty)({dict:t,key:"FT"});n.fieldType=(0,a.isName)(i)?i.name:null,this.fieldResources=(0,s.getInheritableProperty)({dict:t,key:"DR"})||a.Dict.empty,n.fieldFlags=(0,s.getInheritableProperty)({dict:t,key:"Ff"}),(!Number.isInteger(n.fieldFlags)||n.fieldFlags<0)&&(n.fieldFlags=0),n.readOnly=this.hasFieldFlag(r.AnnotationFieldFlag.READONLY),"Sig"===n.fieldType&&(n.fieldValue=null,this.setFlags(r.AnnotationFlag.HIDDEN))}_constructFieldName(e){if(!e.has("T")&&!e.has("Parent"))return(0,r.warn)("Unknown field name, falling back to empty field name."),"";if(!e.has("Parent"))return(0,r.stringToPDFString)(e.get("T"));const t=[];e.has("T")&&t.unshift((0,r.stringToPDFString)(e.get("T")));let n=e;for(;n.has("Parent")&&(n=n.get("Parent"),(0,a.isDict)(n));)n.has("T")&&t.unshift((0,r.stringToPDFString)(n.get("T")));return t.join(".")}hasFieldFlag(e){return!!(this.data.fieldFlags&e)}getOperatorList(e,t,n){return n?Promise.resolve(new l.OperatorList):super.getOperatorList(e,t,n)}}class A extends p{constructor(e){super(e);const t=e.dict;this.data.fieldValue=(0,r.stringToPDFString)(this.data.fieldValue||"");let n=(0,s.getInheritableProperty)({dict:t,key:"Q"});(!Number.isInteger(n)||n<0||n>2)&&(n=null),this.data.textAlignment=n;let i=(0,s.getInheritableProperty)({dict:t,key:"MaxLen"});(!Number.isInteger(i)||i<0)&&(i=null),this.data.maxLen=i,this.data.multiLine=this.hasFieldFlag(r.AnnotationFieldFlag.MULTILINE),this.data.comb=this.hasFieldFlag(r.AnnotationFieldFlag.COMB)&&!this.hasFieldFlag(r.AnnotationFieldFlag.MULTILINE)&&!this.hasFieldFlag(r.AnnotationFieldFlag.PASSWORD)&&!this.hasFieldFlag(r.AnnotationFieldFlag.FILESELECT)&&null!==this.data.maxLen}getOperatorList(e,t,n){if(n||this.appearance)return super.getOperatorList(e,t,n);const i=new l.OperatorList;if(!this.data.defaultAppearance)return Promise.resolve(i);const a=new c.Stream((0,r.stringToBytes)(this.data.defaultAppearance));return e.getOperatorList({stream:a,task:t,resources:this.fieldResources,operatorList:i}).then(function(){return i})}}class g extends p{constructor(e){super(e),this.data.checkBox=!this.hasFieldFlag(r.AnnotationFieldFlag.RADIO)&&!this.hasFieldFlag(r.AnnotationFieldFlag.PUSHBUTTON),this.data.radioButton=this.hasFieldFlag(r.AnnotationFieldFlag.RADIO)&&!this.hasFieldFlag(r.AnnotationFieldFlag.PUSHBUTTON),this.data.pushButton=this.hasFieldFlag(r.AnnotationFieldFlag.PUSHBUTTON),this.data.checkBox?this._processCheckBox(e):this.data.radioButton?this._processRadioButton(e):this.data.pushButton?this._processPushButton(e):(0,r.warn)("Invalid field flags for button widget annotation")}_processCheckBox(e){(0,a.isName)(this.data.fieldValue)&&(this.data.fieldValue=this.data.fieldValue.name);const t=e.dict.get("AP");if(!(0,a.isDict)(t))return;const n=t.get("D");if(!(0,a.isDict)(n))return;const r=n.getKeys();2===r.length&&(this.data.exportValue="Off"===r[0]?r[1]:r[0])}_processRadioButton(e){this.data.fieldValue=this.data.buttonValue=null;const t=e.dict.get("Parent");if((0,a.isDict)(t)&&t.has("V")){const e=t.get("V");(0,a.isName)(e)&&(this.data.fieldValue=e.name)}const n=e.dict.get("AP");if(!(0,a.isDict)(n))return;const r=n.get("N");if((0,a.isDict)(r))for(const e of r.getKeys())if("Off"!==e){this.data.buttonValue=e;break}}_processPushButton(e){e.dict.has("A")?i.Catalog.parseDestDictionary({destDict:e.dict,resultObj:this.data,docBaseUrl:e.pdfManager.docBaseUrl}):(0,r.warn)("Push buttons without action dictionaries are not supported")}}class m extends p{constructor(e){super(e),this.data.options=[];const t=(0,s.getInheritableProperty)({dict:e.dict,key:"Opt"});if(Array.isArray(t)){const n=e.xref;for(let e=0,i=t.length;e<i;e++){const i=n.fetchIfRef(t[e]),a=Array.isArray(i);this.data.options[e]={exportValue:a?n.fetchIfRef(i[0]):i,displayValue:(0,r.stringToPDFString)(a?n.fetchIfRef(i[1]):i)}}}Array.isArray(this.data.fieldValue)||(this.data.fieldValue=[this.data.fieldValue]),this.data.combo=this.hasFieldFlag(r.AnnotationFieldFlag.COMBO),this.data.multiSelect=this.hasFieldFlag(r.AnnotationFieldFlag.MULTISELECT)}}class v extends f{constructor(e){super(e);const t=e.dict;this.data.annotationType=r.AnnotationType.TEXT,this.data.hasAppearance?this.data.name="NoIcon":(this.data.rect[1]=this.data.rect[3]-22,this.data.rect[2]=this.data.rect[0]+22,this.data.name=t.has("Name")?t.get("Name").name:"Note"),t.has("State")?(this.data.state=t.get("State")||null,this.data.stateModel=t.get("StateModel")||null):(this.data.state=null,this.data.stateModel=null)}}class y extends h{constructor(e){super(e),this.data.annotationType=r.AnnotationType.LINK;const t=u(e.dict,this.rectangle);t&&(this.data.quadPoints=t),i.Catalog.parseDestDictionary({destDict:e.dict,resultObj:this.data,docBaseUrl:e.pdfManager.docBaseUrl})}}class b extends h{constructor(e){super(e),this.data.annotationType=r.AnnotationType.POPUP;let t=e.dict.get("Parent");if(!t)return void(0,r.warn)("Popup annotation has a missing or invalid parent annotation.");const n=t.get("Subtype");this.data.parentType=(0,a.isName)(n)?n.name:null;const i=e.dict.getRaw("Parent");this.data.parentId=(0,a.isRef)(i)?i.toString():null;const o=t.get("RT");if((0,a.isName)(o,r.AnnotationReplyType.GROUP)&&(t=t.get("IRT")),t.has("M")?(this.setModificationDate(t.get("M")),this.data.modificationDate=this.modificationDate):this.data.modificationDate=null,t.has("C")?(this.setColor(t.getArray("C")),this.data.color=this.color):this.data.color=null,!this.viewable){const e=t.get("F");this._isViewable(e)&&this.setFlags(e)}this.data.title=(0,r.stringToPDFString)(t.get("T")||""),this.data.contents=(0,r.stringToPDFString)(t.get("Contents")||"")}}class w extends f{constructor(e){super(e),this.data.annotationType=r.AnnotationType.FREETEXT}}class x extends f{constructor(e){super(e),this.data.annotationType=r.AnnotationType.LINE,this.data.lineCoordinates=r.Util.normalizeRect(e.dict.getArray("L"))}}class _ extends f{constructor(e){super(e),this.data.annotationType=r.AnnotationType.SQUARE}}class C extends f{constructor(e){super(e),this.data.annotationType=r.AnnotationType.CIRCLE}}class S extends f{constructor(e){super(e),this.data.annotationType=r.AnnotationType.POLYLINE;const t=e.dict.getArray("Vertices");this.data.vertices=[];for(let e=0,n=t.length;e<n;e+=2)this.data.vertices.push({x:t[e],y:t[e+1]})}}class k extends S{constructor(e){super(e),this.data.annotationType=r.AnnotationType.POLYGON}}class B extends f{constructor(e){super(e),this.data.annotationType=r.AnnotationType.CARET}}class E extends f{constructor(e){super(e),this.data.annotationType=r.AnnotationType.INK;const t=e.xref,n=e.dict.getArray("InkList");this.data.inkLists=[];for(let e=0,r=n.length;e<r;++e){this.data.inkLists.push([]);for(let r=0,i=n[e].length;r<i;r+=2)this.data.inkLists[e].push({x:t.fetchIfRef(n[e][r]),y:t.fetchIfRef(n[e][r+1])})}}}class T extends f{constructor(e){super(e),this.data.annotationType=r.AnnotationType.HIGHLIGHT;const t=u(e.dict,this.rectangle);t&&(this.data.quadPoints=t)}}class I extends f{constructor(e){super(e),this.data.annotationType=r.AnnotationType.UNDERLINE;const t=u(e.dict,this.rectangle);t&&(this.data.quadPoints=t)}}class M extends f{constructor(e){super(e),this.data.annotationType=r.AnnotationType.SQUIGGLY;const t=u(e.dict,this.rectangle);t&&(this.data.quadPoints=t)}}class F extends f{constructor(e){super(e),this.data.annotationType=r.AnnotationType.STRIKEOUT;const t=u(e.dict,this.rectangle);t&&(this.data.quadPoints=t)}}class D extends f{constructor(e){super(e),this.data.annotationType=r.AnnotationType.STAMP}}class P extends f{constructor(e){super(e);const t=new i.FileSpec(e.dict.get("FS"),e.xref);this.data.annotationType=r.AnnotationType.FILEATTACHMENT,this.data.file=t.serializable}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OperatorList=void 0;var r=n(2),i=function(){function e(e,t,n,r,i){for(var a=e,o=0,s=t.length-1;o<s;o++){var l=t[o];a=a[l]||(a[l]=[])}a[t[t.length-1]]={checkFn:n,iterateFn:r,processFn:i}}var t=[];function n(e){this.queue=e,this.state=null,this.context={iCurr:0,fnArray:e.fnArray,argsArray:e.argsArray},this.match=null,this.lastProcessed=0}return e(t,[r.OPS.save,r.OPS.transform,r.OPS.paintInlineImageXObject,r.OPS.restore],null,function(e,t){var n=e.fnArray,i=(t-(e.iCurr-3))%4;switch(i){case 0:return n[t]===r.OPS.save;case 1:return n[t]===r.OPS.transform;case 2:return n[t]===r.OPS.paintInlineImageXObject;case 3:return n[t]===r.OPS.restore}throw new Error(`iterateInlineImageGroup - invalid pos: ${i}`)},function(e,t){var n=e.fnArray,i=e.argsArray,a=e.iCurr,o=a-3,s=a-2,l=a-1,c=Math.min(Math.floor((t-o)/4),200);if(c<10)return t-(t-o)%4;var u,h=0,d=[],f=0,p=1,A=1;for(u=0;u<c;u++){var g=i[s+(u<<2)],m=i[l+(u<<2)][0];p+m.width>1e3&&(h=Math.max(h,p),A+=f+2,p=0,f=0),d.push({transform:g,x:p,y:A,w:m.width,h:m.height}),p+=m.width+2,f=Math.max(f,m.height)}var v=Math.max(h,p)+1,y=A+f+1,b=new Uint8ClampedArray(v*y*4),w=v<<2;for(u=0;u<c;u++){var x=i[l+(u<<2)][0].data,_=d[u].w<<2,C=0,S=d[u].x+d[u].y*v<<2;b.set(x.subarray(0,_),S-w);for(var k=0,B=d[u].h;k<B;k++)b.set(x.subarray(C,C+_),S),C+=_,S+=w;for(b.set(x.subarray(C-_,C),S);S>=0;)x[S-4]=x[S],x[S-3]=x[S+1],x[S-2]=x[S+2],x[S-1]=x[S+3],x[S+_]=x[S+_-4],x[S+_+1]=x[S+_-3],x[S+_+2]=x[S+_-2],x[S+_+3]=x[S+_-1],S-=w}return n.splice(o,4*c,r.OPS.paintInlineImageXObjectGroup),i.splice(o,4*c,[{width:v,height:y,kind:r.ImageKind.RGBA_32BPP,data:b},d]),o+1}),e(t,[r.OPS.save,r.OPS.transform,r.OPS.paintImageMaskXObject,r.OPS.restore],null,function(e,t){var n=e.fnArray,i=(t-(e.iCurr-3))%4;switch(i){case 0:return n[t]===r.OPS.save;case 1:return n[t]===r.OPS.transform;case 2:return n[t]===r.OPS.paintImageMaskXObject;case 3:return n[t]===r.OPS.restore}throw new Error(`iterateImageMaskGroup - invalid pos: ${i}`)},function(e,t){var n,i=e.fnArray,a=e.argsArray,o=e.iCurr,s=o-3,l=o-2,c=o-1,u=Math.floor((t-s)/4);if((u=function(e,t,n,i){for(var a=e+2,o=0;o<t;o++){var s=i[a+4*o],l=1===s.length&&s[0];if(!l||1!==l.width||1!==l.height||l.data.length&&(1!==l.data.length||0!==l.data[0]))break;n[a+4*o]=r.OPS.paintSolidColorImageMask}return t-o}(s,u,i,a))<10)return t-(t-s)%4;var h,d,f=!1,p=a[c][0];if(0===a[l][1]&&0===a[l][2]){f=!0;var A=a[l][0],g=a[l][3];h=l+4;var m=c+4;for(n=1;n<u;n++,h+=4,m+=4)if(d=a[h],a[m][0]!==p||d[0]!==A||0!==d[1]||0!==d[2]||d[3]!==g){n<10?f=!1:u=n;break}}if(f){u=Math.min(u,1e3);var v=new Float32Array(2*u);for(h=l,n=0;n<u;n++,h+=4)d=a[h],v[n<<1]=d[4],v[1+(n<<1)]=d[5];i.splice(s,4*u,r.OPS.paintImageMaskXObjectRepeat),a.splice(s,4*u,[p,A,g,v])}else{u=Math.min(u,100);var y=[];for(n=0;n<u;n++){d=a[l+(n<<2)];var b=a[c+(n<<2)][0];y.push({data:b.data,width:b.width,height:b.height,transform:d})}i.splice(s,4*u,r.OPS.paintImageMaskXObjectGroup),a.splice(s,4*u,[y])}return s+1}),e(t,[r.OPS.save,r.OPS.transform,r.OPS.paintImageXObject,r.OPS.restore],function(e){var t=e.argsArray,n=e.iCurr-2;return 0===t[n][1]&&0===t[n][2]},function(e,t){var n=e.fnArray,i=e.argsArray,a=(t-(e.iCurr-3))%4;switch(a){case 0:return n[t]===r.OPS.save;case 1:if(n[t]!==r.OPS.transform)return!1;var o=e.iCurr-2,s=i[o][0],l=i[o][3];return i[t][0]===s&&0===i[t][1]&&0===i[t][2]&&i[t][3]===l;case 2:if(n[t]!==r.OPS.paintImageXObject)return!1;var c=i[e.iCurr-1][0];return i[t][0]===c;case 3:return n[t]===r.OPS.restore}throw new Error(`iterateImageGroup - invalid pos: ${a}`)},function(e,t){var n=e.fnArray,i=e.argsArray,a=e.iCurr,o=a-3,s=a-2,l=i[a-1][0],c=i[s][0],u=i[s][3],h=Math.min(Math.floor((t-o)/4),1e3);if(h<3)return t-(t-o)%4;for(var d=new Float32Array(2*h),f=s,p=0;p<h;p++,f+=4){var A=i[f];d[p<<1]=A[4],d[1+(p<<1)]=A[5]}var g=[l,c,u,d];return n.splice(o,4*h,r.OPS.paintImageXObjectRepeat),i.splice(o,4*h,g),o+1}),e(t,[r.OPS.beginText,r.OPS.setFont,r.OPS.setTextMatrix,r.OPS.showText,r.OPS.endText],null,function(e,t){var n=e.fnArray,i=e.argsArray,a=(t-(e.iCurr-4))%5;switch(a){case 0:return n[t]===r.OPS.beginText;case 1:return n[t]===r.OPS.setFont;case 2:return n[t]===r.OPS.setTextMatrix;case 3:if(n[t]!==r.OPS.showText)return!1;var o=e.iCurr-3,s=i[o][0],l=i[o][1];return i[t][0]===s&&i[t][1]===l;case 4:return n[t]===r.OPS.endText}throw new Error(`iterateShowTextGroup - invalid pos: ${a}`)},function(e,t){var n=e.fnArray,r=e.argsArray,i=e.iCurr,a=i-4,o=i-3,s=i-2,l=i-1,c=i,u=r[o][0],h=r[o][1],d=Math.min(Math.floor((t-a)/5),1e3);if(d<3)return t-(t-a)%5;var f=a;a>=4&&n[a-4]===n[o]&&n[a-3]===n[s]&&n[a-2]===n[l]&&n[a-1]===n[c]&&r[a-4][0]===u&&r[a-4][1]===h&&(d++,f-=5);for(var p=f+4,A=1;A<d;A++)n.splice(p,3),r.splice(p,3),p+=2;return p+1}),n.prototype={_optimize(){const e=this.queue.fnArray;let n=this.lastProcessed,r=e.length,i=this.state,a=this.match;if(!i&&!a&&n+1===r&&!t[e[n]])return void(this.lastProcessed=r);const o=this.context;for(;n<r;){if(a){if((0,a.iterateFn)(o,n)){n++;continue}if(n=(0,a.processFn)(o,n+1),a=null,i=null,n>=(r=e.length))break}(i=(i||t)[e[n]])&&!Array.isArray(i)?(o.iCurr=n,n++,!i.checkFn||(0,i.checkFn)(o)?(a=i,i=null):i=null):n++}this.state=i,this.match=a,this.lastProcessed=n},push(e,t){this.queue.fnArray.push(e),this.queue.argsArray.push(t),this._optimize()},flush(){for(;this.match;){const e=this.queue.fnArray.length;this.lastProcessed=(0,this.match.processFn)(this.context,e),this.match=null,this.state=null,this._optimize()}},reset(){this.state=null,this.match=null,this.lastProcessed=0}},n}(),a=function(){function e(e){this.queue=e}return e.prototype={push(e,t){this.queue.fnArray.push(e),this.queue.argsArray.push(t)},flush(){},reset(){}},e}(),o=function(){function e(e,t,n){this._streamSink=t,this.fnArray=[],this.argsArray=[],this.optimizer=t&&"oplist"!==e?new i(this):new a(this),this.dependencies=Object.create(null),this._totalLength=0,this.pageIndex=n,this.intent=e,this.weight=0,this._resolved=t?null:Promise.resolve()}return e.prototype={get length(){return this.argsArray.length},get ready(){return this._resolved||this._streamSink.ready},get totalLength(){return this._totalLength+this.length},addOp(e,t){this.optimizer.push(e,t),this.weight++,this._streamSink&&(this.weight>=1e3?this.flush():this.weight>=995&&(e===r.OPS.restore||e===r.OPS.endText)&&this.flush())},addDependency(e){e in this.dependencies||(this.dependencies[e]=!0,this.addOp(r.OPS.dependency,[e]))},addDependencies(e){for(var t in e)this.addDependency(t)},addOpList(t){if(t instanceof e){Object.assign(this.dependencies,t.dependencies);for(var n=0,i=t.length;n<i;n++)this.addOp(t.fnArray[n],t.argsArray[n])}else(0,r.warn)('addOpList - ignoring invalid "opList" parameter.')},getIR(){return{fnArray:this.fnArray,argsArray:this.argsArray,length:this.length}},get _transfers(){const e=[],{fnArray:t,argsArray:n,length:i}=this;for(let a=0;a<i;a++)switch(t[a]){case r.OPS.paintInlineImageXObject:case r.OPS.paintInlineImageXObjectGroup:case r.OPS.paintImageMaskXObject:const i=n[a][0];i.cached||e.push(i.data.buffer)}return e},flush(e=!1){this.optimizer.flush();const t=this.length;this._totalLength+=t,this._streamSink.enqueue({fnArray:this.fnArray,argsArray:this.argsArray,lastChunk:e,length:t},1,this._transfers),this.dependencies=Object.create(null),this.fnArray.length=0,this.argsArray.length=0,this.weight=0,this.optimizer.reset()}},e}();t.OperatorList=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PartialEvaluator=void 0;var r=n(2),i=n(28),a=n(5),o=n(29),s=n(32),l=n(8),c=n(35),u=n(34),h=n(38),d=n(11),f=n(39),p=n(23),A=n(12),g=n(33),m=n(40),v=n(41),y=n(24),b=n(43),w=n(26),x=n(44),_=function(){const e={maxImageSize:-1,disableFontFace:!1,ignoreErrors:!1,isEvalSupported:!0,fontExtraProperties:!1};function t({xref:t,handler:n,pageIndex:i,idFactory:a,fontCache:o,builtInCMapCache:s,globalImageCache:l,options:c=null,pdfFunctionFactory:u}){this.xref=t,this.handler=n,this.pageIndex=i,this.idFactory=a,this.fontCache=o,this.builtInCMapCache=s,this.globalImageCache=l,this.options=c||e,this.pdfFunctionFactory=u,this.parsingType3Font=!1,this.fetchBuiltInCMap=(async e=>{if(this.builtInCMapCache.has(e))return this.builtInCMapCache.get(e);const t=this.handler.sendWithStream("FetchBuiltInCMap",{name:e}).getReader(),n=await new Promise(function(e,n){!function r(){t.read().then(function({value:t,done:n}){n||(e(t),r())},n)}()});return n.compressionType!==r.CMapCompressionType.NONE&&this.builtInCMapCache.set(e,n),n})}function n(){this.reset()}function d(e,t=!1){if(Array.isArray(e)){for(let t=0,n=e.length;t<n;t++){const n=d(e[t],!0);if(n)return n}return(0,r.warn)(`Unsupported blend mode Array: ${e}`),"source-over"}if(!(0,a.isName)(e))return t?null:"source-over";switch(e.name){case"Normal":case"Compatible":return"source-over";case"Multiply":return"multiply";case"Screen":return"screen";case"Overlay":return"overlay";case"Darken":return"darken";case"Lighten":return"lighten";case"ColorDodge":return"color-dodge";case"ColorBurn":return"color-burn";case"HardLight":return"hard-light";case"SoftLight":return"soft-light";case"Difference":return"difference";case"Exclusion":return"exclusion";case"Hue":return"hue";case"Saturation":return"saturation";case"Color":return"color";case"Luminosity":return"luminosity"}return t?null:((0,r.warn)(`Unsupported blend mode: ${e.name}`),"source-over")}n.prototype={check:function(){return!(++this.checked<100)&&(this.checked=0,this.endTime<=Date.now())},reset:function(){this.endTime=Date.now()+20,this.checked=0}};var _=Promise.resolve();return t.prototype={clone(t=e){var n=Object.create(this);return n.options=t,n},hasBlendModes:function(e){if(!(e instanceof a.Dict))return!1;var t=Object.create(null);e.objId&&(t[e.objId]=!0);for(var n=[e],i=this.xref;n.length;){var o=n.shift(),s=o.get("ExtGState");if(s instanceof a.Dict){var c=s.getKeys();for(let e=0,n=c.length;e<n;e++){const n=c[e];let o=s.getRaw(n);if(o instanceof a.Ref){if(t[o.toString()])continue;try{o=i.fetch(o)}catch(e){if(e instanceof l.MissingDataException)throw e;if(this.options.ignoreErrors){o instanceof a.Ref&&(t[o.toString()]=!0),this.handler.send("UnsupportedFeature",{featureId:r.UNSUPPORTED_FEATURES.errorExtGState}),(0,r.warn)(`hasBlendModes - ignoring ExtGState: "${e}".`);continue}throw e}}if(!(o instanceof a.Dict))continue;o.objId&&(t[o.objId]=!0);const u=o.get("BM");if(u instanceof a.Name){if("Normal"!==u.name)return!0}else if(void 0!==u&&Array.isArray(u))for(let e=0,t=u.length;e<t;e++)if(u[e]instanceof a.Name&&"Normal"!==u[e].name)return!0}}var u=o.get("XObject");if(u instanceof a.Dict){var h=u.getKeys();for(let e=0,o=h.length;e<o;e++){const o=h[e];var d=u.getRaw(o);if(d instanceof a.Ref){if(t[d.toString()])continue;try{d=i.fetch(d)}catch(e){if(e instanceof l.MissingDataException)throw e;if(this.options.ignoreErrors){d instanceof a.Ref&&(t[d.toString()]=!0),this.handler.send("UnsupportedFeature",{featureId:r.UNSUPPORTED_FEATURES.errorXObject}),(0,r.warn)(`hasBlendModes - ignoring XObject: "${e}".`);continue}throw e}}if((0,a.isStream)(d)){if(d.dict.objId){if(t[d.dict.objId])continue;t[d.dict.objId]=!0}var f=d.dict.get("Resources");!(f instanceof a.Dict)||f.objId&&t[f.objId]||(n.push(f),f.objId&&(t[f.objId]=!0))}}}}return!1},async buildFormXObject(e,t,n,i,o,s){var l=t.dict,c=l.getArray("Matrix"),u=l.getArray("BBox");u=Array.isArray(u)&&4===u.length?r.Util.normalizeRect(u):null;var h=l.get("Group");if(h){var d={matrix:c,bbox:u,smask:n,isolated:!1,knockout:!1},f=h.get("S"),A=null;(0,a.isName)(f,"Transparency")&&(d.isolated=h.get("I")||!1,d.knockout=h.get("K")||!1,h.has("CS")&&(A=await this.parseColorSpace({cs:h.get("CS"),resources:e}))),n&&n.backdrop&&(A=A||p.ColorSpace.singletons.rgb,n.backdrop=A.getRgb(n.backdrop,0)),i.addOp(r.OPS.beginGroup,[d])}return i.addOp(r.OPS.paintFormXObjectBegin,[c,u]),this.getOperatorList({stream:t,task:o,resources:l.get("Resources")||e,operatorList:i,initialState:s}).then(function(){i.addOp(r.OPS.paintFormXObjectEnd,[]),h&&i.addOp(r.OPS.endGroup,[d])})},async buildPaintImageXObject({resources:e,image:t,isInline:n=!1,operatorList:i,cacheKey:a,localImageCache:o}){var s=t.dict;const l=s.objId;var c=s.get("Width","W"),u=s.get("Height","H");if(!(c&&(0,r.isNum)(c)&&u&&(0,r.isNum)(u)))return void(0,r.warn)("Image dimensions are missing, or not numbers.");var h,d,f=this.options.maxImageSize;if(-1!==f&&c*u>f)return void(0,r.warn)("Image exceeded maximum allowed size and was removed.");if(s.get("ImageMask","IM")||!1){var p=s.get("Width","W"),g=s.get("Height","H"),m=p+7>>3,v=t.getBytes(m*g,!0),y=s.getArray("Decode","D");return(h=x.PDFImage.createMask({imgArray:v,width:p,height:g,imageIsFromDecodeStream:t instanceof A.DecodeStream,inverseDecode:!!y&&y[0]>0})).cached=!!a,d=[h],i.addOp(r.OPS.paintImageMaskXObject,d),void(a&&o.set(a,l,{fn:r.OPS.paintImageMaskXObject,args:d}))}var b=s.get("SMask","SM")||!1,w=s.get("Mask")||!1;if(n&&!b&&!w&&c+u<200){const a=new x.PDFImage({xref:this.xref,res:e,image:t,isInline:n,pdfFunctionFactory:this.pdfFunctionFactory});return h=a.createImageData(!0),void i.addOp(r.OPS.paintInlineImageXObject,[h])}let _=`img_${this.idFactory.createObjId()}`,C=!1;this.parsingType3Font?_=`${this.idFactory.getDocId()}_type3res_${_}`:l&&(C=this.globalImageCache.shouldCache(l,this.pageIndex))&&(_=`${this.idFactory.getDocId()}_${_}`),i.addDependency(_),d=[_,c,u];const S=x.PDFImage.buildImage({xref:this.xref,res:e,image:t,isInline:n,pdfFunctionFactory:this.pdfFunctionFactory}).then(e=>{if(h=e.createImageData(!1),this.parsingType3Font)return this.handler.sendWithPromise("commonobj",[_,"FontType3Res",h],[h.data.buffer]);C?this.handler.send("commonobj",[_,"Image",h],[h.data.buffer]):this.handler.send("obj",[_,this.pageIndex,"Image",h],[h.data.buffer])}).catch(e=>{if((0,r.warn)("Unable to decode image: "+e),this.parsingType3Font)return this.handler.sendWithPromise("commonobj",[_,"FontType3Res",null]);C?this.handler.send("commonobj",[_,"Image",null]):this.handler.send("obj",[_,this.pageIndex,"Image",null])});this.parsingType3Font&&await S,i.addOp(r.OPS.paintImageXObject,d),a&&(o.set(a,l,{fn:r.OPS.paintImageXObject,args:d}),l&&((0,r.assert)(!n,"Cannot cache an inline image globally."),this.globalImageCache.addPageIndex(l,this.pageIndex),C&&this.globalImageCache.setData(l,{objId:_,fn:r.OPS.paintImageXObject,args:d})))},handleSMask:function(e,t,n,r,i){var a=e.get("G"),o={subtype:e.get("S").name,backdrop:e.get("BC")},s=e.get("TR");if((0,v.isPDFFunction)(s)){const e=this.pdfFunctionFactory.create(s);for(var l=new Uint8Array(256),c=new Float32Array(1),u=0;u<256;u++)c[0]=u/255,e(c,0,c,0),l[u]=255*c[0]|0;o.transferMap=l}return this.buildFormXObject(t,a,o,n,r,i.state.clone())},handleTilingType(e,t,n,i,o,s,l){const c=new w.OperatorList,u=[o.get("Resources"),n],d=a.Dict.merge(this.xref,u);return this.getOperatorList({stream:i,task:l,resources:d,operatorList:c}).then(function(){return(0,h.getTilingPatternIR)({fnArray:c.fnArray,argsArray:c.argsArray},o,t)}).then(function(t){s.addDependencies(c.dependencies),s.addOp(e,t)},e=>{if(!(e instanceof r.AbortException)){if(this.options.ignoreErrors)return this.handler.send("UnsupportedFeature",{featureId:r.UNSUPPORTED_FEATURES.errorTilingPattern}),void(0,r.warn)(`handleTilingType - ignoring pattern: "${e}".`);throw e}})},handleSetFont:function(e,t,n,i,a,s){var l;return t&&(l=(t=t.slice())[0].name),this.loadFont(l,n,e).then(t=>t.font.isType3Font?t.loadType3Data(this,e,i,a).then(function(){return t}).catch(e=>(this.handler.send("UnsupportedFeature",{featureId:r.UNSUPPORTED_FEATURES.errorFontLoadType3}),new C({loadedName:"g_font_error",font:new o.ErrorFont(`Type3 font load error: ${e}`),dict:t.font,extraProperties:this.options.fontExtraProperties}))):t).then(e=>(s.font=e.font,e.send(this.handler),e.loadedName))},handleText(e,n){const i=n.font,a=i.charsToGlyphs(e);if(i.data){(!!(n.textRenderingMode&r.TextRenderingMode.ADD_TO_PATH_FLAG)||"Pattern"===n.fillColorSpace.name||i.disableFontFace||this.options.disableFontFace)&&t.buildFontPaths(i,a,this.handler)}return a},ensureStateFont(e){if(e.font)return;const t=new r.FormatError("Missing setFont (Tf) operator before text rendering operator.");if(this.options.ignoreErrors)return this.handler.send("UnsupportedFeature",{featureId:r.UNSUPPORTED_FEATURES.errorFontState}),void(0,r.warn)(`ensureStateFont: "${t}".`);throw t},setGState:function(e,t,n,i,o){for(var s=[],l=t.getKeys(),c=Promise.resolve(),u=0,h=l.length;u<h;u++){const h=l[u],f=t.get(h);switch(h){case"Type":break;case"LW":case"LC":case"LJ":case"ML":case"D":case"RI":case"FL":case"CA":case"ca":s.push([h,f]);break;case"Font":c=c.then(()=>this.handleSetFont(e,null,f[0],n,i,o.state).then(function(e){n.addDependency(e),s.push([h,[e,f[1]]])}));break;case"BM":s.push([h,d(f)]);break;case"SMask":if((0,a.isName)(f,"None")){s.push([h,!1]);break}(0,a.isDict)(f)?(c=c.then(()=>this.handleSMask(f,e,n,i,o)),s.push([h,!0])):(0,r.warn)("Unsupported SMask type");break;case"OP":case"op":case"OPM":case"BG":case"BG2":case"UCR":case"UCR2":case"TR":case"TR2":case"HT":case"SM":case"SA":case"AIS":case"TK":(0,r.info)("graphic state operator "+h);break;default:(0,r.info)("Unknown graphic state operator "+h)}}return c.then(function(){s.length>0&&n.addOp(r.OPS.setGState,[s])})},loadFont:function(e,n,i){const s=()=>Promise.resolve(new C({loadedName:"g_font_error",font:new o.ErrorFont(`Font "${e}" is not available.`),dict:n,extraProperties:this.options.fontExtraProperties}));var l,c=this.xref;if(n){if(!(0,a.isRef)(n))throw new r.FormatError('The "font" object should be a reference.');l=n}else{var u=i.get("Font");u&&(l=u.getRaw(e))}if(!l){const i=`Font "${e||n&&n.toString()}" is not available`;if(!this.options.ignoreErrors&&!this.parsingType3Font)return(0,r.warn)(`${i}.`),s();this.handler.send("UnsupportedFeature",{featureId:r.UNSUPPORTED_FEATURES.errorFontMissing}),(0,r.warn)(`${i} -- attempting to fallback to a default font.`),l=t.getFallbackFontDict()}if(this.fontCache.has(l))return this.fontCache.get(l);if(n=c.fetchIfRef(l),!(0,a.isDict)(n))return s();if(n.translated)return n.translated;var h=(0,r.createPromiseCapability)(),d=this.preEvaluateFont(n);const{descriptor:f,hash:p}=d;var A,g,m=(0,a.isRef)(l);if(m&&(A=l.toString()),p&&(0,a.isDict)(f)){f.fontAliases||(f.fontAliases=Object.create(null));var v=f.fontAliases;if(v[p]){var y=v[p].aliasRef;if(m&&y&&this.fontCache.has(y))return this.fontCache.putAlias(l,y),this.fontCache.get(l)}else v[p]={fontID:o.Font.getFontID()};m&&(v[p].aliasRef=l),A=v[p].fontID}m?this.fontCache.put(l,h.promise):(A||(A=this.idFactory.createObjId()),this.fontCache.put(`id_${A}`,h.promise)),(0,r.assert)(A,'The "fontID" must be defined.'),n.loadedName=`${this.idFactory.getDocId()}_f${A}`,n.translated=h.promise;try{g=this.translateFont(d)}catch(e){g=Promise.reject(e)}return g.then(e=>{void 0!==e.fontType&&(c.stats.fontTypes[e.fontType]=!0);h.resolve(new C({loadedName:n.loadedName,font:e,dict:n,extraProperties:this.options.fontExtraProperties}))}).catch(e=>{this.handler.send("UnsupportedFeature",{featureId:r.UNSUPPORTED_FEATURES.errorFontTranslate});try{var t=f&&f.get("FontFile3"),i=t&&t.get("Subtype"),a=(0,o.getFontType)(d.type,i&&i.name);c.stats.fontTypes[a]=!0}catch(e){}h.resolve(new C({loadedName:n.loadedName,font:new o.ErrorFont(e instanceof Error?e.message:e),dict:n,extraProperties:this.options.fontExtraProperties}))}),h.promise},buildPath(e,t,n,i=!1){var a=e.length-1;if(n||(n=[]),a<0||e.fnArray[a]!==r.OPS.constructPath)i&&((0,r.warn)(`Encountered path operator "${t}" inside of a text object.`),e.addOp(r.OPS.save,null)),e.addOp(r.OPS.constructPath,[[t],n]),i&&e.addOp(r.OPS.restore,null);else{var o=e.argsArray[a];o[0].push(t),Array.prototype.push.apply(o[1],n)}},parseColorSpace({cs:e,resources:t}){return new Promise(n=>{n(p.ColorSpace.parse(e,this.xref,t,this.pdfFunctionFactory))}).catch(e=>{if(e instanceof r.AbortException)return null;if(this.options.ignoreErrors)return this.handler.send("UnsupportedFeature",{featureId:r.UNSUPPORTED_FEATURES.errorColorSpace}),(0,r.warn)(`parseColorSpace - ignoring ColorSpace: "${e}".`),null;throw e})},async handleColorN(e,t,n,i,o,s,l){var c,u=n[n.length-1];if((0,a.isName)(u)&&(c=o.get(u.name))){var d=(0,a.isStream)(c)?c.dict:c,f=d.get("PatternType");if(1===f){var p=i.base?i.base.getRgb(n,0):null;return this.handleTilingType(t,p,s,c,d,e,l)}if(2===f){var A=d.get("Shading"),g=d.getArray("Matrix");return c=h.Pattern.parseShading(A,g,this.xref,s,this.handler,this.pdfFunctionFactory),void e.addOp(t,c.getIR())}throw new r.FormatError(`Unknown PatternType: ${f}`)}throw new r.FormatError(`Unknown PatternName: ${u}`)},getOperatorList({stream:e,task:t,resources:i,operatorList:o,initialState:s=null}){if(i=i||a.Dict.empty,s=s||new B,!o)throw new Error('getOperatorList: missing "operatorList" parameter');var l=this,c=this.xref;let u=!1;const d=new y.LocalImageCache;var f=i.get("XObject")||a.Dict.empty,A=i.get("Pattern")||a.Dict.empty,g=new S(s),m=new E(e,c,g),v=new n;function b(e){for(var t=0,n=m.savedStatesDepth;t<n;t++)o.addOp(r.OPS.restore,[])}return new Promise(function e(n,s){const y=function(t){Promise.all([t,o.ready]).then(function(){try{e(n,s)}catch(e){s(e)}},s)};t.ensureNotTerminated(),v.reset();for(var w,x,C,S,k={};!(w=v.check())&&(k.args=null,m.read(k));){var B=k.args,E=k.fn;switch(0|E){case r.OPS.paintXObject:var T=B[0].name;if(T){const e=d.getByName(T);if(e){o.addOp(e.fn,e.args),B=null;continue}}return void y(new Promise(function(e,n){if(!T)throw new r.FormatError("XObject must be referred to by name.");let s=f.getRaw(T);if(s instanceof a.Ref){const t=d.getByRef(s);if(t)return o.addOp(t.fn,t.args),void e();const n=l.globalImageCache.getData(s,l.pageIndex);if(n)return o.addDependency(n.objId),o.addOp(n.fn,n.args),void e();s=c.fetch(s)}if(!s)return o.addOp(E,B),void e();if(!(0,a.isStream)(s))throw new r.FormatError("XObject should be a stream");const u=s.dict.get("Subtype");if(!(0,a.isName)(u))throw new r.FormatError("XObject should have a Name subtype");if("Form"===u.name)return g.save(),void l.buildFormXObject(i,s,null,o,t,g.state.clone()).then(function(){g.restore(),e()},n);if("Image"!==u.name){if("PS"!==u.name)throw new r.FormatError(`Unhandled XObject subtype ${u.name}`);(0,r.info)("Ignored XObject subtype PS"),e()}else l.buildPaintImageXObject({resources:i,image:s,operatorList:o,cacheKey:T,localImageCache:d}).then(e,n)}).catch(function(e){if(!(e instanceof r.AbortException)){if(l.options.ignoreErrors)return l.handler.send("UnsupportedFeature",{featureId:r.UNSUPPORTED_FEATURES.errorXObject}),void(0,r.warn)(`getOperatorList - ignoring XObject: "${e}".`);throw e}}));case r.OPS.setFont:var I=B[1];return void y(l.handleSetFont(i,B,null,o,t,g.state).then(function(e){o.addDependency(e),o.addOp(r.OPS.setFont,[e,I])}));case r.OPS.beginText:u=!0;break;case r.OPS.endText:u=!1;break;case r.OPS.endInlineImage:var M=B[0].cacheKey;if(M){const e=d.getByName(M);if(e){o.addOp(e.fn,e.args),B=null;continue}}return void y(l.buildPaintImageXObject({resources:i,image:B[0],isInline:!0,operatorList:o,cacheKey:M,localImageCache:d}));case r.OPS.showText:if(!g.state.font){l.ensureStateFont(g.state);continue}B[0]=l.handleText(B[0],g.state);break;case r.OPS.showSpacedText:if(!g.state.font){l.ensureStateFont(g.state);continue}var F=B[0],D=[],P=F.length,O=g.state;for(x=0;x<P;++x){var L=F[x];(0,r.isString)(L)?Array.prototype.push.apply(D,l.handleText(L,O)):(0,r.isNum)(L)&&D.push(L)}B[0]=D,E=r.OPS.showText;break;case r.OPS.nextLineShowText:if(!g.state.font){l.ensureStateFont(g.state);continue}o.addOp(r.OPS.nextLine),B[0]=l.handleText(B[0],g.state),E=r.OPS.showText;break;case r.OPS.nextLineSetSpacingShowText:if(!g.state.font){l.ensureStateFont(g.state);continue}o.addOp(r.OPS.nextLine),o.addOp(r.OPS.setWordSpacing,[B.shift()]),o.addOp(r.OPS.setCharSpacing,[B.shift()]),B[0]=l.handleText(B[0],g.state),E=r.OPS.showText;break;case r.OPS.setTextRenderingMode:g.state.textRenderingMode=B[0];break;case r.OPS.setFillColorSpace:return void y(l.parseColorSpace({cs:B[0],resources:i}).then(function(e){e&&(g.state.fillColorSpace=e)}));case r.OPS.setStrokeColorSpace:return void y(l.parseColorSpace({cs:B[0],resources:i}).then(function(e){e&&(g.state.strokeColorSpace=e)}));case r.OPS.setFillColor:S=g.state.fillColorSpace,B=S.getRgb(B,0),E=r.OPS.setFillRGBColor;break;case r.OPS.setStrokeColor:S=g.state.strokeColorSpace,B=S.getRgb(B,0),E=r.OPS.setStrokeRGBColor;break;case r.OPS.setFillGray:g.state.fillColorSpace=p.ColorSpace.singletons.gray,B=p.ColorSpace.singletons.gray.getRgb(B,0),E=r.OPS.setFillRGBColor;break;case r.OPS.setStrokeGray:g.state.strokeColorSpace=p.ColorSpace.singletons.gray,B=p.ColorSpace.singletons.gray.getRgb(B,0),E=r.OPS.setStrokeRGBColor;break;case r.OPS.setFillCMYKColor:g.state.fillColorSpace=p.ColorSpace.singletons.cmyk,B=p.ColorSpace.singletons.cmyk.getRgb(B,0),E=r.OPS.setFillRGBColor;break;case r.OPS.setStrokeCMYKColor:g.state.strokeColorSpace=p.ColorSpace.singletons.cmyk,B=p.ColorSpace.singletons.cmyk.getRgb(B,0),E=r.OPS.setStrokeRGBColor;break;case r.OPS.setFillRGBColor:g.state.fillColorSpace=p.ColorSpace.singletons.rgb,B=p.ColorSpace.singletons.rgb.getRgb(B,0);break;case r.OPS.setStrokeRGBColor:g.state.strokeColorSpace=p.ColorSpace.singletons.rgb,B=p.ColorSpace.singletons.rgb.getRgb(B,0);break;case r.OPS.setFillColorN:if("Pattern"===(S=g.state.fillColorSpace).name)return void y(l.handleColorN(o,r.OPS.setFillColorN,B,S,A,i,t));B=S.getRgb(B,0),E=r.OPS.setFillRGBColor;break;case r.OPS.setStrokeColorN:if("Pattern"===(S=g.state.strokeColorSpace).name)return void y(l.handleColorN(o,r.OPS.setStrokeColorN,B,S,A,i,t));B=S.getRgb(B,0),E=r.OPS.setStrokeRGBColor;break;case r.OPS.shadingFill:var R=i.get("Shading");if(!R)throw new r.FormatError("No shading resource found");var N=R.get(B[0].name);if(!N)throw new r.FormatError("No shading object found");var U=h.Pattern.parseShading(N,null,c,i,l.handler,l.pdfFunctionFactory).getIR();B=[U],E=r.OPS.shadingFill;break;case r.OPS.setGState:var H=B[0],j=i.get("ExtGState");if(!(0,a.isDict)(j)||!j.has(H.name))break;var Q=j.get(H.name);return void y(l.setGState(i,Q,o,t,g));case r.OPS.moveTo:case r.OPS.lineTo:case r.OPS.curveTo:case r.OPS.curveTo2:case r.OPS.curveTo3:case r.OPS.closePath:case r.OPS.rectangle:l.buildPath(o,E,B,u);continue;case r.OPS.markPoint:case r.OPS.markPointProps:case r.OPS.beginMarkedContent:case r.OPS.beginMarkedContentProps:case r.OPS.endMarkedContent:case r.OPS.beginCompat:case r.OPS.endCompat:continue;default:if(null!==B){for(x=0,C=B.length;x<C&&!(B[x]instanceof a.Dict);x++);if(x<C){(0,r.warn)("getOperatorList - ignoring operator: "+E);continue}}}o.addOp(E,B)}w?y(_):(b(),n())}).catch(e=>{if(!(e instanceof r.AbortException)){if(this.options.ignoreErrors)return this.handler.send("UnsupportedFeature",{featureId:r.UNSUPPORTED_FEATURES.errorOperatorList}),(0,r.warn)(`getOperatorList - ignoring errors during "${t.name}" `+`task: "${e}".`),void b();throw e}})},getTextContent({stream:e,task:t,resources:i,stateManager:o=null,normalizeWhitespace:s=!1,combineTextItems:l=!1,sink:u,seenStyles:h=Object.create(null)}){i=i||a.Dict.empty,o=o||new S(new k);var d=/\s/g,p={items:[],styles:Object.create(null)},A={initialized:!1,str:[],width:0,height:0,vertical:!1,lastAdvanceWidth:0,lastAdvanceHeight:0,textAdvanceScale:0,spaceWidth:0,fakeSpaceMin:1/0,fakeMultiSpaceMin:1/0,fakeMultiSpaceMax:-0,textRunBreakAllowed:!1,transform:null,fontName:null},g=.3,m=1.5,v=4,b=this,w=this.xref,x=null;const C=new y.LocalImageCache;var B,T=new E(e,w,o);function I(){if(A.initialized)return A;var e=B.font;e.loadedName in h||(h[e.loadedName]=!0,p.styles[e.loadedName]={fontFamily:e.fallbackName,ascent:e.ascent,descent:e.descent,vertical:e.vertical}),A.fontName=e.loadedName;var t=[B.fontSize*B.textHScale,0,0,B.fontSize,0,B.textRise];if(e.isType3Font&&B.fontSize<=1&&!(0,r.isArrayEqual)(B.fontMatrix,r.FONT_IDENTITY_MATRIX)){const n=e.bbox[3]-e.bbox[1];n>0&&(t[3]*=n*B.fontMatrix[3])}var n=r.Util.transform(B.ctm,r.Util.transform(B.textMatrix,t));A.transform=n,e.vertical?(A.width=Math.sqrt(n[0]*n[0]+n[1]*n[1]),A.height=0,A.vertical=!0):(A.width=0,A.height=Math.sqrt(n[2]*n[2]+n[3]*n[3]),A.vertical=!1);var i=B.textLineMatrix[0],a=B.textLineMatrix[1],o=Math.sqrt(i*i+a*a);i=B.ctm[0],a=B.ctm[1];var s=Math.sqrt(i*i+a*a);A.textAdvanceScale=s*o,A.lastAdvanceWidth=0,A.lastAdvanceHeight=0;var l=e.spaceWidth/1e3*B.fontSize;return l?(A.spaceWidth=l,A.fakeSpaceMin=l*g,A.fakeMultiSpaceMin=l*m,A.fakeMultiSpaceMax=l*v,A.textRunBreakAllowed=!e.isMonospace):(A.spaceWidth=0,A.fakeSpaceMin=1/0,A.fakeMultiSpaceMin=1/0,A.fakeMultiSpaceMax=0,A.textRunBreakAllowed=!1),A.initialized=!0,A}function M(e){var t=e.str.join(""),n=(0,f.bidi)(t,-1,e.vertical);return{str:s?function(e){for(var t,n=0,r=e.length;n<r&&(t=e.charCodeAt(n))>=32&&t<=127;)n++;return n<r?e.replace(d," "):e}(n.str):n.str,dir:n.dir,width:e.width,height:e.height,transform:e.transform,fontName:e.fontName}}function F(e,t){return b.loadFont(e,t,i).then(function(e){B.font=e.font,B.fontMatrix=e.font.fontMatrix||r.FONT_IDENTITY_MATRIX})}function D(e){for(var t=B.font,n=I(),r=0,i=0,a=t.charsToGlyphs(e),o=0;o<a.length;o++){var s=a[o],l=null;l=t.vertical&&s.vmetric?s.vmetric[0]:s.width;var u=s.unicode,h=(0,c.getNormalizedUnicodes)();void 0!==h[u]&&(u=h[u]),u=(0,c.reverseIfRtl)(u);var d=B.charSpacing;if(s.isSpace){var f=B.wordSpacing;d+=f,f>0&&P(f,n.str)}var p=0,A=0;if(t.vertical)i+=A=l*B.fontMatrix[0]*B.fontSize+d;else r+=p=(l*B.fontMatrix[0]*B.fontSize+d)*B.textHScale;B.translateTextMatrix(p,A),n.str.push(u)}return t.vertical?(n.lastAdvanceHeight=i,n.height+=Math.abs(i)):(n.lastAdvanceWidth=r,n.width+=r),n}function P(e,t){if(!(e<A.fakeSpaceMin))if(e<A.fakeMultiSpaceMin)t.push(" ");else for(var n=Math.round(e/A.spaceWidth);n-- >0;)t.push(" ")}function O(){A.initialized&&(A.vertical?A.height*=A.textAdvanceScale:A.width*=A.textAdvanceScale,p.items.push(M(A)),A.initialized=!1,A.str.length=0)}function L(){const e=p.items.length;e>0&&(u.enqueue(p,e),p.items=[],p.styles=Object.create(null))}var R=new n;return new Promise(function e(n,c){const d=function(t){L(),Promise.all([t,u.ready]).then(function(){try{e(n,c)}catch(e){c(e)}},c)};t.ensureNotTerminated(),R.reset();for(var f,g={},m=[];!(f=R.check())&&(m.length=0,g.args=m,T.read(g));){B=o.state;var v,y=g.fn;switch(m=g.args,0|y){case r.OPS.setFont:var k=m[0].name,E=m[1];if(B.font&&k===B.fontName&&E===B.fontSize)break;return O(),B.fontName=k,B.fontSize=E,void d(F(k,null));case r.OPS.setTextRise:O(),B.textRise=m[0];break;case r.OPS.setHScale:O(),B.textHScale=m[0]/100;break;case r.OPS.setLeading:O(),B.leading=m[0];break;case r.OPS.moveText:var M=!!B.font&&0===(B.font.vertical?m[0]:m[1]);if(v=m[0]-m[1],l&&M&&A.initialized&&v>0&&v<=A.fakeMultiSpaceMax){B.translateTextLineMatrix(m[0],m[1]),A.width+=m[0]-A.lastAdvanceWidth,A.height+=m[1]-A.lastAdvanceHeight,P(m[0]-A.lastAdvanceWidth-(m[1]-A.lastAdvanceHeight),A.str);break}O(),B.translateTextLineMatrix(m[0],m[1]),B.textMatrix=B.textLineMatrix.slice();break;case r.OPS.setLeadingMoveText:O(),B.leading=-m[1],B.translateTextLineMatrix(m[0],m[1]),B.textMatrix=B.textLineMatrix.slice();break;case r.OPS.nextLine:O(),B.carriageReturn();break;case r.OPS.setTextMatrix:if(v=B.calcTextLineMatrixAdvance(m[0],m[1],m[2],m[3],m[4],m[5]),l&&null!==v&&A.initialized&&v.value>0&&v.value<=A.fakeMultiSpaceMax){B.translateTextLineMatrix(v.width,v.height),A.width+=v.width-A.lastAdvanceWidth,A.height+=v.height-A.lastAdvanceHeight,P(v.width-A.lastAdvanceWidth-(v.height-A.lastAdvanceHeight),A.str);break}O(),B.setTextMatrix(m[0],m[1],m[2],m[3],m[4],m[5]),B.setTextLineMatrix(m[0],m[1],m[2],m[3],m[4],m[5]);break;case r.OPS.setCharSpacing:B.charSpacing=m[0];break;case r.OPS.setWordSpacing:B.wordSpacing=m[0];break;case r.OPS.beginText:O(),B.textMatrix=r.IDENTITY_MATRIX.slice(),B.textLineMatrix=r.IDENTITY_MATRIX.slice();break;case r.OPS.showSpacedText:if(!o.state.font){b.ensureStateFont(o.state);continue}for(var N,U=m[0],H=0,j=U.length;H<j;H++)if("string"==typeof U[H])D(U[H]);else if((0,r.isNum)(U[H])){I(),v=U[H]*B.fontSize/1e3;var Q=!1;B.font.vertical?(N=v,B.translateTextMatrix(0,N),(Q=A.textRunBreakAllowed&&v>A.fakeMultiSpaceMax)||(A.height+=N)):(N=(v=-v)*B.textHScale,B.translateTextMatrix(N,0),(Q=A.textRunBreakAllowed&&v>A.fakeMultiSpaceMax)||(A.width+=N)),Q?O():v>0&&P(v,A.str)}break;case r.OPS.showText:if(!o.state.font){b.ensureStateFont(o.state);continue}D(m[0]);break;case r.OPS.nextLineShowText:if(!o.state.font){b.ensureStateFont(o.state);continue}O(),B.carriageReturn(),D(m[0]);break;case r.OPS.nextLineSetSpacingShowText:if(!o.state.font){b.ensureStateFont(o.state);continue}O(),B.wordSpacing=m[0],B.charSpacing=m[1],B.carriageReturn(),D(m[2]);break;case r.OPS.paintXObject:O(),x||(x=i.get("XObject")||a.Dict.empty);var z=m[0].name;if(z&&C.getByName(z))break;return void d(new Promise(function(e,n){if(!z)throw new r.FormatError("XObject must be referred to by name.");let c=x.getRaw(z);if(c instanceof a.Ref){if(C.getByRef(c))return void e();c=w.fetch(c)}if(!c)return void e();if(!(0,a.isStream)(c))throw new r.FormatError("XObject should be a stream");const d=c.dict.get("Subtype");if(!(0,a.isName)(d))throw new r.FormatError("XObject should have a Name subtype");if("Form"!==d.name)return C.set(z,c.dict.objId,!0),void e();const f=o.state.clone(),p=new S(f),A=c.dict.getArray("Matrix");Array.isArray(A)&&6===A.length&&p.transform(A),L();const g={enqueueInvoked:!1,enqueue(e,t){this.enqueueInvoked=!0,u.enqueue(e,t)},get desiredSize(){return u.desiredSize},get ready(){return u.ready}};b.getTextContent({stream:c,task:t,resources:c.dict.get("Resources")||i,stateManager:p,normalizeWhitespace:s,combineTextItems:l,sink:g,seenStyles:h}).then(function(){g.enqueueInvoked||C.set(z,c.dict.objId,!0),e()},n)}).catch(function(e){if(!(e instanceof r.AbortException)){if(!b.options.ignoreErrors)throw e;(0,r.warn)(`getTextContent - ignoring XObject: "${e}".`)}}));case r.OPS.setGState:O();var V=m[0],G=i.get("ExtGState");if(!(0,a.isDict)(G)||!(0,a.isName)(V))break;var $=G.get(V.name);if(!(0,a.isDict)($))break;var q=$.get("Font");if(q)return B.fontName=null,B.fontSize=q[1],void d(F(null,q[0]))}if(p.items.length>=u.desiredSize){f=!0;break}}f?d(_):(O(),L(),n())}).catch(e=>{if(!(e instanceof r.AbortException)){if(this.options.ignoreErrors)return(0,r.warn)(`getTextContent - ignoring errors during "${t.name}" `+`task: "${e}".`),O(),void L();throw e}})},extractDataStructures:function(e,t,n){const i=this.xref;let l;var c=e.get("ToUnicode")||t.get("ToUnicode"),u=c?this.readToUnicode(c):Promise.resolve(void 0);if(n.composite){var h=e.get("CIDSystemInfo");(0,a.isDict)(h)&&(n.cidSystemInfo={registry:(0,r.stringToPDFString)(h.get("Registry")),ordering:(0,r.stringToPDFString)(h.get("Ordering")),supplement:h.get("Supplement")});var d=e.get("CIDToGIDMap");(0,a.isStream)(d)&&(l=d.getBytes())}var f,p=[],A=null;if(e.has("Encoding")){if(f=e.get("Encoding"),(0,a.isDict)(f)){if(A=f.get("BaseEncoding"),A=(0,a.isName)(A)?A.name:null,f.has("Differences"))for(var g=f.get("Differences"),m=0,v=0,y=g.length;v<y;v++){var b=i.fetchIfRef(g[v]);if((0,r.isNum)(b))m=b;else{if(!(0,a.isName)(b))throw new r.FormatError(`Invalid entry in 'Differences' array: ${b}`);p[m++]=b.name}}}else{if(!(0,a.isName)(f))throw new r.FormatError("Encoding is not a Name nor a Dict");A=f.name}"MacRomanEncoding"!==A&&"MacExpertEncoding"!==A&&"WinAnsiEncoding"!==A&&(A=null)}if(A)n.defaultEncoding=(0,s.getEncoding)(A).slice();else{var w=!!(n.flags&o.FontFlags.Symbolic),x=!!(n.flags&o.FontFlags.Nonsymbolic);f=s.StandardEncoding,"TrueType"!==n.type||x||(f=s.WinAnsiEncoding),w&&(f=s.MacRomanEncoding,n.file||(/Symbol/i.test(n.name)?f=s.SymbolSetEncoding:/Dingbats|Wingdings/i.test(n.name)&&(f=s.ZapfDingbatsEncoding))),n.defaultEncoding=f}return n.differences=p,n.baseEncodingName=A,n.hasEncoding=!!A||p.length>0,n.dict=e,u.then(e=>(n.toUnicode=e,this.buildToUnicode(n))).then(e=>(n.toUnicode=e,l&&(n.cidToGidMap=this.readCidToGidMap(l,e)),n))},_buildSimpleFontToUnicode(e,t=!1){(0,r.assert)(!e.composite,"Must be a simple font.");const n=[],i=e.defaultEncoding.slice(),a=e.baseEncodingName,l=e.differences;for(const e in l){const t=l[e];".notdef"!==t&&(i[e]=t)}const u=(0,g.getGlyphsUnicode)();for(const r in i){let o=i[r];if(""!==o)if(void 0!==u[o])n[r]=String.fromCharCode(u[o]);else{let i=0;switch(o[0]){case"G":3===o.length&&(i=parseInt(o.substring(1),16));break;case"g":5===o.length&&(i=parseInt(o.substring(1),16));break;case"C":case"c":if(o.length>=3&&o.length<=4){const n=o.substring(1);if(t){i=parseInt(n,16);break}if(i=+n,Number.isNaN(i)&&Number.isInteger(parseInt(n,16)))return this._buildSimpleFontToUnicode(e,!0)}break;default:const n=(0,c.getUnicodeForGlyph)(o,u);-1!==n&&(i=n)}if(i>0&&i<=1114111&&Number.isInteger(i)){if(a&&i===+r){const e=(0,s.getEncoding)(a);if(e&&(o=e[r])){n[r]=String.fromCharCode(u[o]);continue}}n[r]=String.fromCodePoint(i)}}}return new o.ToUnicodeMap(n)},buildToUnicode(e){if(e.hasIncludedToUnicodeMap=!!e.toUnicode&&e.toUnicode.length>0,e.hasIncludedToUnicodeMap)return!e.composite&&e.hasEncoding&&(e.fallbackToUnicode=this._buildSimpleFontToUnicode(e)),Promise.resolve(e.toUnicode);if(!e.composite)return Promise.resolve(this._buildSimpleFontToUnicode(e));if(e.composite&&(e.cMap.builtInCMap&&!(e.cMap instanceof i.IdentityCMap)||"Adobe"===e.cidSystemInfo.registry&&("GB1"===e.cidSystemInfo.ordering||"CNS1"===e.cidSystemInfo.ordering||"Japan1"===e.cidSystemInfo.ordering||"Korea1"===e.cidSystemInfo.ordering))){const t=e.cidSystemInfo.registry,n=e.cidSystemInfo.ordering,s=a.Name.get(t+"-"+n+"-UCS2");return i.CMapFactory.create({encoding:s,fetchBuiltInCMap:this.fetchBuiltInCMap,useCMap:null}).then(function(t){const n=[];return e.cMap.forEach(function(e,i){if(i>65535)throw new r.FormatError("Max size of CID is 65,535");const a=t.lookup(i);a&&(n[e]=String.fromCharCode((a.charCodeAt(0)<<8)+a.charCodeAt(1)))}),new o.ToUnicodeMap(n)})}return Promise.resolve(new o.IdentityToUnicodeMap(e.firstChar,e.lastChar))},readToUnicode:function(e){var t=e;return(0,a.isName)(t)?i.CMapFactory.create({encoding:t,fetchBuiltInCMap:this.fetchBuiltInCMap,useCMap:null}).then(function(e){return e instanceof i.IdentityCMap?new o.IdentityToUnicodeMap(0,65535):new o.ToUnicodeMap(e.getMap())}):(0,a.isStream)(t)?i.CMapFactory.create({encoding:t,fetchBuiltInCMap:this.fetchBuiltInCMap,useCMap:null}).then(function(e){if(e instanceof i.IdentityCMap)return new o.IdentityToUnicodeMap(0,65535);var t=new Array(e.length);return e.forEach(function(e,n){for(var r=[],i=0;i<n.length;i+=2){var a=n.charCodeAt(i)<<8|n.charCodeAt(i+1);if(55296==(63488&a)){i+=2;var o=n.charCodeAt(i)<<8|n.charCodeAt(i+1);r.push(((1023&a)<<10)+(1023&o)+65536)}else r.push(a)}t[e]=String.fromCodePoint.apply(String,r)}),new o.ToUnicodeMap(t)},e=>{if(e instanceof r.AbortException)return null;if(this.options.ignoreErrors)return this.handler.send("UnsupportedFeature",{featureId:r.UNSUPPORTED_FEATURES.errorFontToUnicode}),(0,r.warn)(`readToUnicode - ignoring ToUnicode data: "${e}".`),null;throw e}):Promise.resolve(null)},readCidToGidMap(e,t){for(var n=[],r=0,i=e.length;r<i;r++){var a=e[r++]<<8|e[r];const i=r>>1;(0!==a||t.has(i))&&(n[i]=a)}return n},extractWidths:function(e,t,n){var r,i,s,l,c,u,h,d,f=this.xref,p=[],A=0,g=[];if(n.composite){if(A=e.has("DW")?e.get("DW"):1e3,d=e.get("W"))for(i=0,s=d.length;i<s;i++)if(u=f.fetchIfRef(d[i++]),h=f.fetchIfRef(d[i]),Array.isArray(h))for(l=0,c=h.length;l<c;l++)p[u++]=f.fetchIfRef(h[l]);else{var m=f.fetchIfRef(d[++i]);for(l=u;l<=h;l++)p[l]=m}if(n.vertical){var v=e.getArray("DW2")||[880,-1e3];if(r=[v[1],.5*A,v[0]],v=e.get("W2"))for(i=0,s=v.length;i<s;i++)if(u=f.fetchIfRef(v[i++]),h=f.fetchIfRef(v[i]),Array.isArray(h))for(l=0,c=h.length;l<c;l++)g[u++]=[f.fetchIfRef(h[l++]),f.fetchIfRef(h[l++]),f.fetchIfRef(h[l])];else{var y=[f.fetchIfRef(v[++i]),f.fetchIfRef(v[++i]),f.fetchIfRef(v[++i])];for(l=u;l<=h;l++)g[l]=y}}}else{var b=n.firstChar;if(d=e.get("Widths")){for(l=b,i=0,s=d.length;i<s;i++)p[l++]=f.fetchIfRef(d[i]);A=parseFloat(t.get("MissingWidth"))||0}else{var w=e.get("BaseFont");if((0,a.isName)(w)){var x=this.getBaseFontMetrics(w.name);p=this.buildCharCodeToWidth(x.widths,n),A=x.defaultWidth}}}var _=!0,C=A;for(var S in p){var k=p[S];if(k)if(C){if(C!==k){_=!1;break}}else C=k}_&&(n.flags|=o.FontFlags.FixedPitch),n.defaultWidth=A,n.widths=p,n.defaultVMetrics=r,n.vmetrics=g},isSerifFont:function(e){var t=e.split("-")[0];return t in(0,u.getSerifFonts)()||-1!==t.search(/serif/gi)},getBaseFontMetrics:function(e){var t=0,n=[],i=!1,a=(0,u.getStdFontMap)()[e]||e,o=(0,m.getMetrics)();a in o||(a=this.isSerifFont(e)?"Times-Roman":"Helvetica");var s=o[a];return(0,r.isNum)(s)?(t=s,i=!0):n=s(),{defaultWidth:t,monospace:i,widths:n}},buildCharCodeToWidth:function(e,t){for(var n=Object.create(null),r=t.differences,i=t.defaultEncoding,a=0;a<256;a++)a in r&&e[r[a]]?n[a]=e[r[a]]:a in i&&e[i[a]]&&(n[a]=e[i[a]]);return n},preEvaluateFont:function(e){var t=e,n=e.get("Subtype");if(!(0,a.isName)(n))throw new r.FormatError("invalid font Subtype");var i,o=!1;if("Type0"===n.name){var s=e.get("DescendantFonts");if(!s)throw new r.FormatError("Descendant fonts are not specified");if(n=(e=Array.isArray(s)?this.xref.fetchIfRef(s[0]):s).get("Subtype"),!(0,a.isName)(n))throw new r.FormatError("invalid font Subtype");o=!0}var l=e.get("FontDescriptor");if(l){var c=new b.MurmurHash3_64,u=t.getRaw("Encoding");if((0,a.isName)(u))c.update(u.name);else if((0,a.isRef)(u))c.update(u.toString());else if((0,a.isDict)(u))for(var h=u.getKeys(),d=0,f=h.length;d<f;d++){var p=u.getRaw(h[d]);if((0,a.isName)(p))c.update(p.name);else if((0,a.isRef)(p))c.update(p.toString());else if(Array.isArray(p)){for(var A=p.length,g=new Array(A),m=0;m<A;m++){var v=p[m];(0,a.isName)(v)?g[m]=v.name:((0,r.isNum)(v)||(0,a.isRef)(v))&&(g[m]=v.toString())}c.update(g.join())}}const n=e.get("FirstChar")||0,s=e.get("LastChar")||(o?65535:255);c.update(`${n}-${s}`);var y=e.get("ToUnicode")||t.get("ToUnicode");if((0,a.isStream)(y)){var w=y.str||y;i=w.buffer?new Uint8Array(w.buffer.buffer,0,w.bufferLength):new Uint8Array(w.bytes.buffer,w.start,w.end-w.start),c.update(i)}else(0,a.isName)(y)&&c.update(y.name);var x=e.get("Widths")||t.get("Widths");x&&(i=new Uint8Array(new Uint32Array(x).buffer),c.update(i))}return{descriptor:l,dict:e,baseDict:t,composite:o,type:n.name,hash:c?c.hexdigest():""}},translateFont:function(e){var t,n=e.baseDict,s=e.dict,l=e.composite,c=e.descriptor,h=e.type,d=l?65535:255;const f=s.get("FirstChar")||0,p=s.get("LastChar")||d;if(!c){if("Type3"!==h){var A=s.get("BaseFont");if(!(0,a.isName)(A))throw new r.FormatError("Base font is not specified");A=A.name.replace(/[,_]/g,"-");var g=this.getBaseFontMetrics(A),m=A.split("-")[0],v=(this.isSerifFont(m)?o.FontFlags.Serif:0)|(g.monospace?o.FontFlags.FixedPitch:0)|((0,u.getSymbolsFonts)()[m]?o.FontFlags.Symbolic:o.FontFlags.Nonsymbolic);t={type:h,name:A,widths:g.widths,defaultWidth:g.defaultWidth,flags:v,firstChar:f,lastChar:p};const e=s.get("Widths");return this.extractDataStructures(s,s,t).then(t=>{if(e){const n=[];let r=f;for(let t=0,i=e.length;t<i;t++)n[r++]=this.xref.fetchIfRef(e[t]);t.widths=n}else t.widths=this.buildCharCodeToWidth(g.widths,t);return new o.Font(A,null,t)})}(c=new a.Dict(null)).set("FontName",a.Name.get(h)),c.set("FontBBox",s.getArray("FontBBox")||[0,0,0,0])}var y=c.get("FontName"),b=s.get("BaseFont");if((0,r.isString)(y)&&(y=a.Name.get(y)),(0,r.isString)(b)&&(b=a.Name.get(b)),"Type3"!==h){var w=y&&y.name,x=b&&b.name;w!==x&&((0,r.info)(`The FontDescriptor's FontName is "${w}" but `+`should be the same as the Font's BaseFont "${x}".`),w&&x&&x.startsWith(w)&&(y=b))}if(y=y||b,!(0,a.isName)(y))throw new r.FormatError("invalid font name");var _,C=c.get("FontFile","FontFile2","FontFile3");if(C&&C.dict){var S=C.dict.get("Subtype");S&&(S=S.name);var k=C.dict.get("Length1"),B=C.dict.get("Length2"),E=C.dict.get("Length3")}if(t={type:h,name:y.name,subtype:S,file:C,length1:k,length2:B,length3:E,loadedName:n.loadedName,composite:l,fixedPitch:!1,fontMatrix:s.getArray("FontMatrix")||r.FONT_IDENTITY_MATRIX,firstChar:f||0,lastChar:p||d,bbox:c.getArray("FontBBox"),ascent:c.get("Ascent"),descent:c.get("Descent"),xHeight:c.get("XHeight"),capHeight:c.get("CapHeight"),flags:c.get("Flags"),italicAngle:c.get("ItalicAngle"),isType3Font:!1},l){var T=n.get("Encoding");(0,a.isName)(T)&&(t.cidEncoding=T.name),_=i.CMapFactory.create({encoding:T,fetchBuiltInCMap:this.fetchBuiltInCMap,useCMap:null}).then(function(e){t.cMap=e,t.vertical=t.cMap.vertical})}else _=Promise.resolve(void 0);return _.then(()=>this.extractDataStructures(s,n,t)).then(e=>(this.extractWidths(s,c,e),"Type3"===h&&(e.isType3Font=!0),new o.Font(y.name,C,e)))}},t.buildFontPaths=function(e,t,n){function r(t){e.renderer.hasBuiltPath(t)||n.send("commonobj",[`${e.loadedName}_path_${t}`,"FontPath",e.renderer.getPathJs(t)])}for(const e of t){r(e.fontChar);const t=e.accent;t&&t.fontChar&&r(t.fontChar)}},t.getFallbackFontDict=function(){if(this._fallbackFontDict)return this._fallbackFontDict;const e=new a.Dict;return e.set("BaseFont",a.Name.get("PDFJS-FallbackFont")),e.set("Type",a.Name.get("FallbackType")),e.set("Subtype",a.Name.get("FallbackType")),e.set("Encoding",a.Name.get("WinAnsiEncoding")),this._fallbackFontDict=e},t}();t.PartialEvaluator=_;class C{constructor({loadedName:e,font:t,dict:n,extraProperties:r=!1}){this.loadedName=e,this.font=t,this.dict=n,this._extraProperties=r,this.type3Loaded=null,this.sent=!1}send(e){this.sent||(this.sent=!0,e.send("commonobj",[this.loadedName,"Font",this.font.exportData(this._extraProperties)]))}fallback(e){if(!this.font.data)return;this.font.disableFontFace=!0;const t=this.font.glyphCacheValues;_.buildFontPaths(this.font,t,e)}loadType3Data(e,t,n,i){if(!this.font.isType3Font)throw new Error("Must be a Type3 font.");if(this.type3Loaded)return this.type3Loaded;var a=Object.create(e.options);a.ignoreErrors=!1;var o=e.clone(a);o.parsingType3Font=!0;for(var s=this.font,l=Promise.resolve(),c=this.dict.get("CharProcs"),u=this.dict.get("Resources")||t,h=c.getKeys(),d=Object.create(null),f=0,p=h.length;f<p;++f){const e=h[f];l=l.then(function(){var t=c.get(e),a=new w.OperatorList;return o.getOperatorList({stream:t,task:i,resources:u,operatorList:a}).then(function(){d[e]=a.getIR(),n.addDependencies(a.dependencies)}).catch(function(t){(0,r.warn)(`Type3 font resource "${e}" is not available.`);const n=new w.OperatorList;d[e]=n.getIR()})})}return this.type3Loaded=l.then(function(){s.charProcOperatorList=d}),this.type3Loaded}}var S=function(){function e(e){this.state=e,this.stateStack=[]}return e.prototype={save(){var e=this.state;this.stateStack.push(this.state),this.state=e.clone()},restore(){var e=this.stateStack.pop();e&&(this.state=e)},transform(e){this.state.ctm=r.Util.transform(this.state.ctm,e)}},e}(),k=function(){function e(){this.ctm=new Float32Array(r.IDENTITY_MATRIX),this.fontName=null,this.fontSize=0,this.font=null,this.fontMatrix=r.FONT_IDENTITY_MATRIX,this.textMatrix=r.IDENTITY_MATRIX.slice(),this.textLineMatrix=r.IDENTITY_MATRIX.slice(),this.charSpacing=0,this.wordSpacing=0,this.leading=0,this.textHScale=1,this.textRise=0}return e.prototype={setTextMatrix:function(e,t,n,r,i,a){var o=this.textMatrix;o[0]=e,o[1]=t,o[2]=n,o[3]=r,o[4]=i,o[5]=a},setTextLineMatrix:function(e,t,n,r,i,a){var o=this.textLineMatrix;o[0]=e,o[1]=t,o[2]=n,o[3]=r,o[4]=i,o[5]=a},translateTextMatrix:function(e,t){var n=this.textMatrix;n[4]=n[0]*e+n[2]*t+n[4],n[5]=n[1]*e+n[3]*t+n[5]},translateTextLineMatrix:function(e,t){var n=this.textLineMatrix;n[4]=n[0]*e+n[2]*t+n[4],n[5]=n[1]*e+n[3]*t+n[5]},calcTextLineMatrixAdvance:function(e,t,n,r,i,a){var o=this.font;if(!o)return null;var s=this.textLineMatrix;if(e!==s[0]||t!==s[1]||n!==s[2]||r!==s[3])return null;var l=i-s[4],c=a-s[5];if(o.vertical&&0!==l||!o.vertical&&0!==c)return null;var u,h,d=e*r-t*n;return o.vertical?(u=-c*n/d,h=c*e/d):(u=l*r/d,h=-l*t/d),{width:u,height:h,value:o.vertical?h:u}},calcRenderMatrix:function(e){var t=[this.fontSize*this.textHScale,0,0,this.fontSize,0,this.textRise];return r.Util.transform(e,r.Util.transform(this.textMatrix,t))},carriageReturn:function(){this.translateTextLineMatrix(0,-this.leading),this.textMatrix=this.textLineMatrix.slice()},clone:function(){var e=Object.create(this);return e.textMatrix=this.textMatrix.slice(),e.textLineMatrix=this.textLineMatrix.slice(),e.fontMatrix=this.fontMatrix.slice(),e}},e}(),B=function(){function e(){this.ctm=new Float32Array(r.IDENTITY_MATRIX),this.font=null,this.textRenderingMode=r.TextRenderingMode.FILL,this.fillColorSpace=p.ColorSpace.singletons.gray,this.strokeColorSpace=p.ColorSpace.singletons.gray}return e.prototype={clone:function(){return Object.create(this)}},e}(),E=function(){var e=(0,l.getLookupTableFactory)(function(e){e.w={id:r.OPS.setLineWidth,numArgs:1,variableArgs:!1},e.J={id:r.OPS.setLineCap,numArgs:1,variableArgs:!1},e.j={id:r.OPS.setLineJoin,numArgs:1,variableArgs:!1},e.M={id:r.OPS.setMiterLimit,numArgs:1,variableArgs:!1},e.d={id:r.OPS.setDash,numArgs:2,variableArgs:!1},e.ri={id:r.OPS.setRenderingIntent,numArgs:1,variableArgs:!1},e.i={id:r.OPS.setFlatness,numArgs:1,variableArgs:!1},e.gs={id:r.OPS.setGState,numArgs:1,variableArgs:!1},e.q={id:r.OPS.save,numArgs:0,variableArgs:!1},e.Q={id:r.OPS.restore,numArgs:0,variableArgs:!1},e.cm={id:r.OPS.transform,numArgs:6,variableArgs:!1},e.m={id:r.OPS.moveTo,numArgs:2,variableArgs:!1},e.l={id:r.OPS.lineTo,numArgs:2,variableArgs:!1},e.c={id:r.OPS.curveTo,numArgs:6,variableArgs:!1},e.v={id:r.OPS.curveTo2,numArgs:4,variableArgs:!1},e.y={id:r.OPS.curveTo3,numArgs:4,variableArgs:!1},e.h={id:r.OPS.closePath,numArgs:0,variableArgs:!1},e.re={id:r.OPS.rectangle,numArgs:4,variableArgs:!1},e.S={id:r.OPS.stroke,numArgs:0,variableArgs:!1},e.s={id:r.OPS.closeStroke,numArgs:0,variableArgs:!1},e.f={id:r.OPS.fill,numArgs:0,variableArgs:!1},e.F={id:r.OPS.fill,numArgs:0,variableArgs:!1},e["f*"]={id:r.OPS.eoFill,numArgs:0,variableArgs:!1},e.B={id:r.OPS.fillStroke,numArgs:0,variableArgs:!1},e["B*"]={id:r.OPS.eoFillStroke,numArgs:0,variableArgs:!1},e.b={id:r.OPS.closeFillStroke,numArgs:0,variableArgs:!1},e["b*"]={id:r.OPS.closeEOFillStroke,numArgs:0,variableArgs:!1},e.n={id:r.OPS.endPath,numArgs:0,variableArgs:!1},e.W={id:r.OPS.clip,numArgs:0,variableArgs:!1},e["W*"]={id:r.OPS.eoClip,numArgs:0,variableArgs:!1},e.BT={id:r.OPS.beginText,numArgs:0,variableArgs:!1},e.ET={id:r.OPS.endText,numArgs:0,variableArgs:!1},e.Tc={id:r.OPS.setCharSpacing,numArgs:1,variableArgs:!1},e.Tw={id:r.OPS.setWordSpacing,numArgs:1,variableArgs:!1},e.Tz={id:r.OPS.setHScale,numArgs:1,variableArgs:!1},e.TL={id:r.OPS.setLeading,numArgs:1,variableArgs:!1},e.Tf={id:r.OPS.setFont,numArgs:2,variableArgs:!1},e.Tr={id:r.OPS.setTextRenderingMode,numArgs:1,variableArgs:!1},e.Ts={id:r.OPS.setTextRise,numArgs:1,variableArgs:!1},e.Td={id:r.OPS.moveText,numArgs:2,variableArgs:!1},e.TD={id:r.OPS.setLeadingMoveText,numArgs:2,variableArgs:!1},e.Tm={id:r.OPS.setTextMatrix,numArgs:6,variableArgs:!1},e["T*"]={id:r.OPS.nextLine,numArgs:0,variableArgs:!1},e.Tj={id:r.OPS.showText,numArgs:1,variableArgs:!1},e.TJ={id:r.OPS.showSpacedText,numArgs:1,variableArgs:!1},e["'"]={id:r.OPS.nextLineShowText,numArgs:1,variableArgs:!1},e['"']={id:r.OPS.nextLineSetSpacingShowText,numArgs:3,variableArgs:!1},e.d0={id:r.OPS.setCharWidth,numArgs:2,variableArgs:!1},e.d1={id:r.OPS.setCharWidthAndBounds,numArgs:6,variableArgs:!1},e.CS={id:r.OPS.setStrokeColorSpace,numArgs:1,variableArgs:!1},e.cs={id:r.OPS.setFillColorSpace,numArgs:1,variableArgs:!1},e.SC={id:r.OPS.setStrokeColor,numArgs:4,variableArgs:!0},e.SCN={id:r.OPS.setStrokeColorN,numArgs:33,variableArgs:!0},e.sc={id:r.OPS.setFillColor,numArgs:4,variableArgs:!0},e.scn={id:r.OPS.setFillColorN,numArgs:33,variableArgs:!0},e.G={id:r.OPS.setStrokeGray,numArgs:1,variableArgs:!1},e.g={id:r.OPS.setFillGray,numArgs:1,variableArgs:!1},e.RG={id:r.OPS.setStrokeRGBColor,numArgs:3,variableArgs:!1},e.rg={id:r.OPS.setFillRGBColor,numArgs:3,variableArgs:!1},e.K={id:r.OPS.setStrokeCMYKColor,numArgs:4,variableArgs:!1},e.k={id:r.OPS.setFillCMYKColor,numArgs:4,variableArgs:!1},e.sh={id:r.OPS.shadingFill,numArgs:1,variableArgs:!1},e.BI={id:r.OPS.beginInlineImage,numArgs:0,variableArgs:!1},e.ID={id:r.OPS.beginImageData,numArgs:0,variableArgs:!1},e.EI={id:r.OPS.endInlineImage,numArgs:1,variableArgs:!1},e.Do={id:r.OPS.paintXObject,numArgs:1,variableArgs:!1},e.MP={id:r.OPS.markPoint,numArgs:1,variableArgs:!1},e.DP={id:r.OPS.markPointProps,numArgs:2,variableArgs:!1},e.BMC={id:r.OPS.beginMarkedContent,numArgs:1,variableArgs:!1},e.BDC={id:r.OPS.beginMarkedContentProps,numArgs:2,variableArgs:!1},e.EMC={id:r.OPS.endMarkedContent,numArgs:0,variableArgs:!1},e.BX={id:r.OPS.beginCompat,numArgs:0,variableArgs:!1},e.EX={id:r.OPS.endCompat,numArgs:0,variableArgs:!1},e.BM=null,e.BD=null,e.true=null,e.fa=null,e.fal=null,e.fals=null,e.false=null,e.nu=null,e.nul=null,e.null=null});function t(t,n,r){this.opMap=e(),this.parser=new d.Parser({lexer:new d.Lexer(t,this.opMap),xref:n}),this.stateManager=r,this.nonProcessedArgs=[],this._numInvalidPathOPS=0}return t.prototype={get savedStatesDepth(){return this.stateManager.stateStack.length},read:function(e){for(var t=e.args;;){var n=this.parser.getObj();if(n instanceof a.Cmd){var i=n.cmd,o=this.opMap[i];if(!o){(0,r.warn)(`Unknown command "${i}".`);continue}var s=o.id,l=o.numArgs,c=null!==t?t.length:0;if(o.variableArgs)c>l&&(0,r.info)(`Command ${i}: expected [0, ${l}] args, `+`but received ${c} args.`);else{if(c!==l){for(var u=this.nonProcessedArgs;c>l;)u.push(t.shift()),c--;for(;c<l&&0!==u.length;)null===t&&(t=[]),t.unshift(u.pop()),c++}if(c<l){const e=`command ${i}: expected ${l} args, `+`but received ${c} args.`;if(s>=r.OPS.moveTo&&s<=r.OPS.endPath&&++this._numInvalidPathOPS>20)throw new r.FormatError(`Invalid ${e}`);(0,r.warn)(`Skipping ${e}`),null!==t&&(t.length=0);continue}}return this.preprocessCommand(s,t),e.fn=s,e.args=t,!0}if(n===a.EOF)return!1;if(null!==n&&(null===t&&(t=[]),t.push(n),t.length>33))throw new r.FormatError("Too many arguments")}},preprocessCommand:function(e,t){switch(0|e){case r.OPS.save:this.stateManager.save();break;case r.OPS.restore:this.stateManager.restore();break;case r.OPS.transform:this.stateManager.transform(t)}}},t}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CMapFactory=t.IdentityCMap=t.CMap=void 0;var r=n(2),i=n(5),a=n(11),o=n(8),s=n(12),l=["Adobe-GB1-UCS2","Adobe-CNS1-UCS2","Adobe-Japan1-UCS2","Adobe-Korea1-UCS2","78-EUC-H","78-EUC-V","78-H","78-RKSJ-H","78-RKSJ-V","78-V","78ms-RKSJ-H","78ms-RKSJ-V","83pv-RKSJ-H","90ms-RKSJ-H","90ms-RKSJ-V","90msp-RKSJ-H","90msp-RKSJ-V","90pv-RKSJ-H","90pv-RKSJ-V","Add-H","Add-RKSJ-H","Add-RKSJ-V","Add-V","Adobe-CNS1-0","Adobe-CNS1-1","Adobe-CNS1-2","Adobe-CNS1-3","Adobe-CNS1-4","Adobe-CNS1-5","Adobe-CNS1-6","Adobe-GB1-0","Adobe-GB1-1","Adobe-GB1-2","Adobe-GB1-3","Adobe-GB1-4","Adobe-GB1-5","Adobe-Japan1-0","Adobe-Japan1-1","Adobe-Japan1-2","Adobe-Japan1-3","Adobe-Japan1-4","Adobe-Japan1-5","Adobe-Japan1-6","Adobe-Korea1-0","Adobe-Korea1-1","Adobe-Korea1-2","B5-H","B5-V","B5pc-H","B5pc-V","CNS-EUC-H","CNS-EUC-V","CNS1-H","CNS1-V","CNS2-H","CNS2-V","ETHK-B5-H","ETHK-B5-V","ETen-B5-H","ETen-B5-V","ETenms-B5-H","ETenms-B5-V","EUC-H","EUC-V","Ext-H","Ext-RKSJ-H","Ext-RKSJ-V","Ext-V","GB-EUC-H","GB-EUC-V","GB-H","GB-V","GBK-EUC-H","GBK-EUC-V","GBK2K-H","GBK2K-V","GBKp-EUC-H","GBKp-EUC-V","GBT-EUC-H","GBT-EUC-V","GBT-H","GBT-V","GBTpc-EUC-H","GBTpc-EUC-V","GBpc-EUC-H","GBpc-EUC-V","H","HKdla-B5-H","HKdla-B5-V","HKdlb-B5-H","HKdlb-B5-V","HKgccs-B5-H","HKgccs-B5-V","HKm314-B5-H","HKm314-B5-V","HKm471-B5-H","HKm471-B5-V","HKscs-B5-H","HKscs-B5-V","Hankaku","Hiragana","KSC-EUC-H","KSC-EUC-V","KSC-H","KSC-Johab-H","KSC-Johab-V","KSC-V","KSCms-UHC-H","KSCms-UHC-HW-H","KSCms-UHC-HW-V","KSCms-UHC-V","KSCpc-EUC-H","KSCpc-EUC-V","Katakana","NWP-H","NWP-V","RKSJ-H","RKSJ-V","Roman","UniCNS-UCS2-H","UniCNS-UCS2-V","UniCNS-UTF16-H","UniCNS-UTF16-V","UniCNS-UTF32-H","UniCNS-UTF32-V","UniCNS-UTF8-H","UniCNS-UTF8-V","UniGB-UCS2-H","UniGB-UCS2-V","UniGB-UTF16-H","UniGB-UTF16-V","UniGB-UTF32-H","UniGB-UTF32-V","UniGB-UTF8-H","UniGB-UTF8-V","UniJIS-UCS2-H","UniJIS-UCS2-HW-H","UniJIS-UCS2-HW-V","UniJIS-UCS2-V","UniJIS-UTF16-H","UniJIS-UTF16-V","UniJIS-UTF32-H","UniJIS-UTF32-V","UniJIS-UTF8-H","UniJIS-UTF8-V","UniJIS2004-UTF16-H","UniJIS2004-UTF16-V","UniJIS2004-UTF32-H","UniJIS2004-UTF32-V","UniJIS2004-UTF8-H","UniJIS2004-UTF8-V","UniJISPro-UCS2-HW-V","UniJISPro-UCS2-V","UniJISPro-UTF8-V","UniJISX0213-UTF32-H","UniJISX0213-UTF32-V","UniJISX02132004-UTF32-H","UniJISX02132004-UTF32-V","UniKS-UCS2-H","UniKS-UCS2-V","UniKS-UTF16-H","UniKS-UTF16-V","UniKS-UTF32-H","UniKS-UTF32-V","UniKS-UTF8-H","UniKS-UTF8-V","V","WP-Symbol"];const c=2**24-1;class u{constructor(e=!1){this.codespaceRanges=[[],[],[],[]],this.numCodespaceRanges=0,this._map=[],this.name="",this.vertical=!1,this.useCMap=null,this.builtInCMap=e}addCodespaceRange(e,t,n){this.codespaceRanges[e-1].push(t,n),this.numCodespaceRanges++}mapCidRange(e,t,n){if(t-e>c)throw new Error("mapCidRange - ignoring data above MAX_MAP_RANGE.");for(;e<=t;)this._map[e++]=n++}mapBfRange(e,t,n){if(t-e>c)throw new Error("mapBfRange - ignoring data above MAX_MAP_RANGE.");for(var r=n.length-1;e<=t;)this._map[e++]=n,n=n.substring(0,r)+String.fromCharCode(n.charCodeAt(r)+1)}mapBfRangeToArray(e,t,n){if(t-e>c)throw new Error("mapBfRangeToArray - ignoring data above MAX_MAP_RANGE.");const r=n.length;let i=0;for(;e<=t&&i<r;)this._map[e]=n[i++],++e}mapOne(e,t){this._map[e]=t}lookup(e){return this._map[e]}contains(e){return void 0!==this._map[e]}forEach(e){const t=this._map,n=t.length;if(n<=65536)for(let r=0;r<n;r++)void 0!==t[r]&&e(r,t[r]);else for(const n in t)e(n,t[n])}charCodeOf(e){const t=this._map;if(t.length<=65536)return t.indexOf(e);for(const n in t)if(t[n]===e)return 0|n;return-1}getMap(){return this._map}readCharCode(e,t,n){let r=0;const i=this.codespaceRanges;for(let a=0,o=i.length;a<o;a++){r=(r<<8|e.charCodeAt(t+a))>>>0;const o=i[a];for(let e=0,t=o.length;e<t;){const t=o[e++],i=o[e++];if(r>=t&&r<=i)return n.charcode=r,void(n.length=a+1)}}n.charcode=0,n.length=1}get length(){return this._map.length}get isIdentityCMap(){if("Identity-H"!==this.name&&"Identity-V"!==this.name)return!1;if(65536!==this._map.length)return!1;for(let e=0;e<65536;e++)if(this._map[e]!==e)return!1;return!0}}t.CMap=u;class h extends u{constructor(e,t){super(),this.vertical=e,this.addCodespaceRange(t,0,65535)}mapCidRange(e,t,n){(0,r.unreachable)("should not call mapCidRange")}mapBfRange(e,t,n){(0,r.unreachable)("should not call mapBfRange")}mapBfRangeToArray(e,t,n){(0,r.unreachable)("should not call mapBfRangeToArray")}mapOne(e,t){(0,r.unreachable)("should not call mapCidOne")}lookup(e){return Number.isInteger(e)&&e<=65535?e:void 0}contains(e){return Number.isInteger(e)&&e<=65535}forEach(e){for(let t=0;t<=65535;t++)e(t,t)}charCodeOf(e){return Number.isInteger(e)&&e<=65535?e:-1}getMap(){const e=new Array(65536);for(let t=0;t<=65535;t++)e[t]=t;return e}get length(){return 65536}get isIdentityCMap(){(0,r.unreachable)("should not access .isIdentityCMap")}}t.IdentityCMap=h;var d=function(){function e(e,t){for(var n=0,r=0;r<=t;r++)n=n<<8|e[r];return n>>>0}function t(e,t){return 1===t?String.fromCharCode(e[0],e[1]):3===t?String.fromCharCode(e[0],e[1],e[2],e[3]):String.fromCharCode.apply(null,e.subarray(0,t+1))}function n(e,t,n){for(var r=0,i=n;i>=0;i--)r+=e[i]+t[i],e[i]=255&r,r>>=8}function i(e,t){for(var n=1,r=t;r>=0&&n>0;r--)n+=e[r],e[r]=255&n,n>>=8}var a=16,o=19;function s(e){this.buffer=e,this.pos=0,this.end=e.length,this.tmpBuf=new Uint8Array(o)}function l(){}return s.prototype={readByte(){return this.pos>=this.end?-1:this.buffer[this.pos++]},readNumber(){var e,t=0;do{var n=this.readByte();if(n<0)throw new r.FormatError("unexpected EOF in bcmap");e=!(128&n),t=t<<7|127&n}while(!e);return t},readSigned(){var e=this.readNumber();return 1&e?~(e>>>1):e>>>1},readHex(e,t){e.set(this.buffer.subarray(this.pos,this.pos+t+1)),this.pos+=t+1},readHexNumber(e,t){var n,i=this.tmpBuf,a=0;do{var o=this.readByte();if(o<0)throw new r.FormatError("unexpected EOF in bcmap");n=!(128&o),i[a++]=127&o}while(!n);for(var s=t,l=0,c=0;s>=0;){for(;c<8&&i.length>0;)l=i[--a]<<c|l,c+=7;e[s]=255&l,s--,l>>=8,c-=8}},readHexSigned(e,t){this.readHexNumber(e,t);for(var n=1&e[t]?255:0,r=0,i=0;i<=t;i++)r=(1&r)<<8|e[i],e[i]=r>>1^n},readString(){for(var e=this.readNumber(),t="",n=0;n<e;n++)t+=String.fromCharCode(this.readNumber());return t}},l.prototype={process:function(r,o,l){return new Promise(function(c,u){var h=new s(r),d=h.readByte();o.vertical=!!(1&d);for(var f,p,A=null,g=new Uint8Array(a),m=new Uint8Array(a),v=new Uint8Array(a),y=new Uint8Array(a),b=new Uint8Array(a);(p=h.readByte())>=0;){var w=p>>5;if(7!==w){var x=!!(16&p),_=15&p;if(_+1>a)throw new Error("processBinaryCMap: Invalid dataSize.");var C,S=h.readNumber();switch(w){case 0:for(h.readHex(g,_),h.readHexNumber(m,_),n(m,g,_),o.addCodespaceRange(_+1,e(g,_),e(m,_)),C=1;C<S;C++)i(m,_),h.readHexNumber(g,_),n(g,m,_),h.readHexNumber(m,_),n(m,g,_),o.addCodespaceRange(_+1,e(g,_),e(m,_));break;case 1:for(h.readHex(g,_),h.readHexNumber(m,_),n(m,g,_),h.readNumber(),C=1;C<S;C++)i(m,_),h.readHexNumber(g,_),n(g,m,_),h.readHexNumber(m,_),n(m,g,_),h.readNumber();break;case 2:for(h.readHex(v,_),f=h.readNumber(),o.mapOne(e(v,_),f),C=1;C<S;C++)i(v,_),x||(h.readHexNumber(b,_),n(v,b,_)),f=h.readSigned()+(f+1),o.mapOne(e(v,_),f);break;case 3:for(h.readHex(g,_),h.readHexNumber(m,_),n(m,g,_),f=h.readNumber(),o.mapCidRange(e(g,_),e(m,_),f),C=1;C<S;C++)i(m,_),x?g.set(m):(h.readHexNumber(g,_),n(g,m,_)),h.readHexNumber(m,_),n(m,g,_),f=h.readNumber(),o.mapCidRange(e(g,_),e(m,_),f);break;case 4:for(h.readHex(v,1),h.readHex(y,_),o.mapOne(e(v,1),t(y,_)),C=1;C<S;C++)i(v,1),x||(h.readHexNumber(b,1),n(v,b,1)),i(y,_),h.readHexSigned(b,_),n(y,b,_),o.mapOne(e(v,1),t(y,_));break;case 5:for(h.readHex(g,1),h.readHexNumber(m,1),n(m,g,1),h.readHex(y,_),o.mapBfRange(e(g,1),e(m,1),t(y,_)),C=1;C<S;C++)i(m,1),x?g.set(m):(h.readHexNumber(g,1),n(g,m,1)),h.readHexNumber(m,1),n(m,g,1),h.readHex(y,_),o.mapBfRange(e(g,1),e(m,1),t(y,_));break;default:return void u(new Error("processBinaryCMap: Unknown type: "+w))}}else switch(31&p){case 0:h.readString();break;case 1:A=h.readString()}}c(A?l(A):o)})}},l}(),f=function(){function e(e){for(var t=0,n=0;n<e.length;n++)t=t<<8|e.charCodeAt(n);return t>>>0}function t(e){if(!(0,r.isString)(e))throw new r.FormatError("Malformed CMap: expected string.")}function n(e){if(!Number.isInteger(e))throw new r.FormatError("Malformed CMap: expected int.")}function c(n,r){for(;;){var a=r.getObj();if((0,i.isEOF)(a))break;if((0,i.isCmd)(a,"endbfchar"))return;t(a);var o=e(a);t(a=r.getObj());var s=a;n.mapOne(o,s)}}function f(n,a){for(;;){var o=a.getObj();if((0,i.isEOF)(o))break;if((0,i.isCmd)(o,"endbfrange"))return;t(o);var s=e(o);t(o=a.getObj());var l=e(o);if(o=a.getObj(),Number.isInteger(o)||(0,r.isString)(o)){var c=Number.isInteger(o)?String.fromCharCode(o):o;n.mapBfRange(s,l,c)}else{if(!(0,i.isCmd)(o,"["))break;o=a.getObj();for(var u=[];!(0,i.isCmd)(o,"]")&&!(0,i.isEOF)(o);)u.push(o),o=a.getObj();n.mapBfRangeToArray(s,l,u)}}throw new r.FormatError("Invalid bf range.")}function p(r,a){for(;;){var o=a.getObj();if((0,i.isEOF)(o))break;if((0,i.isCmd)(o,"endcidchar"))return;t(o);var s=e(o);n(o=a.getObj());var l=o;r.mapOne(s,l)}}function A(r,a){for(;;){var o=a.getObj();if((0,i.isEOF)(o))break;if((0,i.isCmd)(o,"endcidrange"))return;t(o);var s=e(o);t(o=a.getObj());var l=e(o);n(o=a.getObj());var c=o;r.mapCidRange(s,l,c)}}function g(t,n){for(;;){var a=n.getObj();if((0,i.isEOF)(a))break;if((0,i.isCmd)(a,"endcodespacerange"))return;if(!(0,r.isString)(a))break;var o=e(a);if(a=n.getObj(),!(0,r.isString)(a))break;var s=e(a);t.addCodespaceRange(a.length,o,s)}throw new r.FormatError("Invalid codespace range.")}function m(e,t){var n=t.getObj();Number.isInteger(n)&&(e.vertical=!!n)}function v(e,t){var n=t.getObj();(0,i.isName)(n)&&(0,r.isString)(n.name)&&(e.name=n.name)}function y(e,t,n,a){var s,l;e:for(;;)try{var u=t.getObj();if((0,i.isEOF)(u))break;if((0,i.isName)(u))"WMode"===u.name?m(e,t):"CMapName"===u.name&&v(e,t),s=u;else if((0,i.isCmd)(u))switch(u.cmd){case"endcmap":break e;case"usecmap":(0,i.isName)(s)&&(l=s.name);break;case"begincodespacerange":g(e,t);break;case"beginbfchar":c(e,t);break;case"begincidchar":p(e,t);break;case"beginbfrange":f(e,t);break;case"begincidrange":A(e,t)}}catch(e){if(e instanceof o.MissingDataException)throw e;(0,r.warn)("Invalid cMap data: "+e);continue}return!a&&l&&(a=l),a?b(e,n,a):Promise.resolve(e)}function b(e,t,n){return w(n,t).then(function(t){if(e.useCMap=t,0===e.numCodespaceRanges){for(var n=e.useCMap.codespaceRanges,r=0;r<n.length;r++)e.codespaceRanges[r]=n[r].slice();e.numCodespaceRanges=e.useCMap.numCodespaceRanges}return e.useCMap.forEach(function(t,n){e.contains(t)||e.mapOne(t,e.useCMap.lookup(t))}),e})}function w(e,t){return"Identity-H"===e?Promise.resolve(new h(!1,2)):"Identity-V"===e?Promise.resolve(new h(!0,2)):l.includes(e)?t?t(e).then(function(e){var n=e.cMapData,i=e.compressionType,o=new u(!0);if(i===r.CMapCompressionType.BINARY)return(new d).process(n,o,function(e){return b(o,t,e)});if(i===r.CMapCompressionType.NONE){var l=new a.Lexer(new s.Stream(n));return y(o,l,t,null)}return Promise.reject(new Error("TODO: Only BINARY/NONE CMap compression is currently supported."))}):Promise.reject(new Error("Built-in CMap parameters are not provided.")):Promise.reject(new Error("Unknown CMap name: "+e))}return{async create(e){var t=e.encoding,n=e.fetchBuiltInCMap,r=e.useCMap;if((0,i.isName)(t))return w(t.name,n);if((0,i.isStream)(t))return y(new u,new a.Lexer(t),n,r).then(function(e){return e.isIdentityCMap?w(e.name,n):e});throw new Error("Encoding required.")}}}();t.CMapFactory=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFontType=x,t.IdentityToUnicodeMap=t.ToUnicodeMap=t.FontFlags=t.Font=t.ErrorFont=t.SEAC_ANALYSIS_ENABLED=void 0;var r=n(2),i=n(30),a=n(33),o=n(32),s=n(34),l=n(35),c=n(8),u=n(36),h=n(28),d=n(12),f=n(37);const p=[[57344,63743],[1048576,1114109]];var A=1e3,g=!0;t.SEAC_ANALYSIS_ENABLED=g;const m=["ascent","bbox","black","bold","charProcOperatorList","composite","data","defaultVMetrics","defaultWidth","descent","fallbackName","fontMatrix","fontType","isMonospace","isSerifFont","isType3Font","italic","loadedName","mimetype","missingFile","name","remeasure","subtype","type","vertical"],v=["cMap","defaultEncoding","differences","isSymbolicFont","seacMap","toFontChar","toUnicode","vmetrics","widths"];var y={FixedPitch:1,Serif:2,Symbolic:4,Script:8,Nonsymbolic:32,Italic:64,AllCap:65536,SmallCap:131072,ForceBold:262144};t.FontFlags=y;var b=[".notdef",".null","nonmarkingreturn","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quotesingle","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","grave","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","Adieresis","Aring","Ccedilla","Eacute","Ntilde","Odieresis","Udieresis","aacute","agrave","acircumflex","adieresis","atilde","aring","ccedilla","eacute","egrave","ecircumflex","edieresis","iacute","igrave","icircumflex","idieresis","ntilde","oacute","ograve","ocircumflex","odieresis","otilde","uacute","ugrave","ucircumflex","udieresis","dagger","degree","cent","sterling","section","bullet","paragraph","germandbls","registered","copyright","trademark","acute","dieresis","notequal","AE","Oslash","infinity","plusminus","lessequal","greaterequal","yen","mu","partialdiff","summation","product","pi","integral","ordfeminine","ordmasculine","Omega","ae","oslash","questiondown","exclamdown","logicalnot","radical","florin","approxequal","Delta","guillemotleft","guillemotright","ellipsis","nonbreakingspace","Agrave","Atilde","Otilde","OE","oe","endash","emdash","quotedblleft","quotedblright","quoteleft","quoteright","divide","lozenge","ydieresis","Ydieresis","fraction","currency","guilsinglleft","guilsinglright","fi","fl","daggerdbl","periodcentered","quotesinglbase","quotedblbase","perthousand","Acircumflex","Ecircumflex","Aacute","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Oacute","Ocircumflex","apple","Ograve","Uacute","Ucircumflex","Ugrave","dotlessi","circumflex","tilde","macron","breve","dotaccent","ring","cedilla","hungarumlaut","ogonek","caron","Lslash","lslash","Scaron","scaron","Zcaron","zcaron","brokenbar","Eth","eth","Yacute","yacute","Thorn","thorn","minus","multiply","onesuperior","twosuperior","threesuperior","onehalf","onequarter","threequarters","franc","Gbreve","gbreve","Idotaccent","Scedilla","scedilla","Cacute","cacute","Ccaron","ccaron","dcroat"];function w(e){if(e.fontMatrix&&e.fontMatrix[0]!==r.FONT_IDENTITY_MATRIX[0]){var t=.001/e.fontMatrix[0],n=e.widths;for(var i in n)n[i]*=t;e.defaultWidth*=t}}function x(e,t){switch(e){case"Type1":return"Type1C"===t?r.FontType.TYPE1C:r.FontType.TYPE1;case"CIDFontType0":return"CIDFontType0C"===t?r.FontType.CIDFONTTYPE0C:r.FontType.CIDFONTTYPE0;case"OpenType":return r.FontType.OPENTYPE;case"TrueType":return r.FontType.TRUETYPE;case"CIDFontType2":return r.FontType.CIDFONTTYPE2;case"MMType1":return r.FontType.MMTYPE1;case"Type0":return r.FontType.TYPE0;default:return r.FontType.UNKNOWN}}function _(e,t){if(void 0!==t[e])return e;var n=(0,l.getUnicodeForGlyph)(e,t);if(-1!==n)for(var i in t)if(t[i]===n)return i;return(0,r.info)("Unable to recover a standard glyph name for: "+e),e}var C=function(){function e(e,t,n,r,i,a,o,s){this.fontChar=e,this.unicode=t,this.accent=n,this.width=r,this.vmetric=i,this.operatorListId=a,this.isSpace=o,this.isInFont=s}return e.prototype.matchesForCache=function(e,t,n,r,i,a,o,s){return this.fontChar===e&&this.unicode===t&&this.accent===n&&this.width===r&&this.vmetric===i&&this.operatorListId===a&&this.isSpace===o&&this.isInFont===s},e}(),S=function(){function e(e=[]){this._map=e}return e.prototype={get length(){return this._map.length},forEach(e){for(var t in this._map)e(t,this._map[t].charCodeAt(0))},has(e){return void 0!==this._map[e]},get(e){return this._map[e]},charCodeOf(e){const t=this._map;if(t.length<=65536)return t.indexOf(e);for(const n in t)if(t[n]===e)return 0|n;return-1},amend(e){for(var t in e)this._map[t]=e[t]}},e}();t.ToUnicodeMap=S;var k=function(){function e(e,t){this.firstChar=e,this.lastChar=t}return e.prototype={get length(){return this.lastChar+1-this.firstChar},forEach(e){for(var t=this.firstChar,n=this.lastChar;t<=n;t++)e(t,t)},has(e){return this.firstChar<=e&&e<=this.lastChar},get(e){if(this.firstChar<=e&&e<=this.lastChar)return String.fromCharCode(e)},charCodeOf(e){return Number.isInteger(e)&&e>=this.firstChar&&e<=this.lastChar?e:-1},amend(e){(0,r.unreachable)("Should not call amend()")}},e}();t.IdentityToUnicodeMap=k;var B=function(){function e(e,t,n){e[t]=n>>8&255,e[t+1]=255&n}function t(e,t,n){e[t]=n>>24&255,e[t+1]=n>>16&255,e[t+2]=n>>8&255,e[t+3]=255&n}function n(e,t,n){var r,i;if(n instanceof Uint8Array)e.set(n,t);else if("string"==typeof n)for(r=0,i=n.length;r<i;r++)e[t++]=255&n.charCodeAt(r);else for(r=0,i=n.length;r<i;r++)e[t++]=255&n[r]}function i(e){this.sfnt=e,this.tables=Object.create(null)}i.getSearchParams=function(e,t){for(var n=1,r=0;(n^e)>n;)n<<=1,r++;var i=n*t;return{range:i,entry:r,rangeShift:t*e-i}};return i.prototype={toArray:function(){var a=this.sfnt,o=this.tables,s=Object.keys(o);s.sort();var l,u,h,d,f,p=s.length,A=12+16*p,g=[A];for(l=0;l<p;l++){A+=((d=o[s[l]]).length+3&-4)>>>0,g.push(A)}var m=new Uint8Array(A);for(l=0;l<p;l++)d=o[s[l]],n(m,g[l],d);"true"===a&&(a=(0,r.string32)(65536)),m[0]=255&a.charCodeAt(0),m[1]=255&a.charCodeAt(1),m[2]=255&a.charCodeAt(2),m[3]=255&a.charCodeAt(3),e(m,4,p);var v=i.getSearchParams(p,16);for(e(m,6,v.range),e(m,8,v.entry),e(m,10,v.rangeShift),A=12,l=0;l<p;l++){f=s[l],m[A]=255&f.charCodeAt(0),m[A+1]=255&f.charCodeAt(1),m[A+2]=255&f.charCodeAt(2),m[A+3]=255&f.charCodeAt(3);var y=0;for(u=g[l],h=g[l+1];u<h;u+=4){y=y+(0,c.readUint32)(m,u)>>>0}t(m,A+4,y),t(m,A+8,g[l]),t(m,A+12,o[f].length),A+=16}return m},addTable:function(e,t){if(e in this.tables)throw new Error("Table "+e+" already exists");this.tables[e]=t}},i}(),E=function(){function e(e,t,n){var i;this.name=e,this.loadedName=n.loadedName,this.isType3Font=n.isType3Font,this.missingFile=!1,this.glyphCache=Object.create(null),this.isSerifFont=!!(n.flags&y.Serif),this.isSymbolicFont=!!(n.flags&y.Symbolic),this.isMonospace=!!(n.flags&y.FixedPitch);var a=n.type,o=n.subtype;this.type=a,this.subtype=o;let s="sans-serif";if(this.isMonospace?s="monospace":this.isSerifFont&&(s="serif"),this.fallbackName=s,this.differences=n.differences,this.widths=n.widths,this.defaultWidth=n.defaultWidth,this.composite=n.composite,this.cMap=n.cMap,this.ascent=n.ascent/A,this.descent=n.descent/A,this.fontMatrix=n.fontMatrix,this.bbox=n.bbox,this.defaultEncoding=n.defaultEncoding,this.toUnicode=n.toUnicode,this.fallbackToUnicode=n.fallbackToUnicode||new S,this.toFontChar=[],"Type3"!==n.type){if(this.cidEncoding=n.cidEncoding,this.vertical=!!n.vertical,this.vertical&&(this.vmetrics=n.vmetrics,this.defaultVMetrics=n.defaultVMetrics),!t||t.isEmpty)return t&&(0,r.warn)('Font file is empty in "'+e+'" ('+this.loadedName+")"),void this.fallbackToSystemFont();[a,o]=function(e,{type:t,subtype:n,composite:i}){let a,o;(function(e){var t=e.peekBytes(4);return 65536===(0,c.readUint32)(t,0)||"true"===(0,r.bytesToString)(t)})(e)||I(e)?a=i?"CIDFontType2":"TrueType":!function(e){var t=e.peekBytes(4);return"OTTO"===(0,r.bytesToString)(t)}(e)?!function(e){var t=e.peekBytes(2);if(37===t[0]&&33===t[1])return!0;if(128===t[0]&&1===t[1])return!0;return!1}(e)?!function(e){const t=e.peekBytes(4);if(t[0]>=1&&t[3]>=1&&t[3]<=4)return!0;return!1}(e)?((0,r.warn)("getFontFileType: Unable to detect correct font file Type/Subtype."),a=t,o=n):i?(a="CIDFontType0",o="CIDFontType0C"):(a="MMType1"===t?"MMType1":"Type1",o="Type1C"):a=i?"CIDFontType0":"MMType1"===t?"MMType1":"Type1":a=i?"CIDFontType2":"OpenType";return[a,o]}(t,n),a===this.type&&o===this.subtype||(0,r.info)("Inconsistent font file Type/SubType, expected: "+`${this.type}/${this.subtype} but found: ${a}/${o}.`);try{var l;switch(a){case"MMType1":(0,r.info)("MMType1 font ("+e+"), falling back to Type1.");case"Type1":case"CIDFontType0":this.mimetype="font/opentype";var u="Type1C"===o||"CIDFontType0C"===o?new F(t,n):new M(e,t,n);w(n),l=this.convert(e,u,n);break;case"OpenType":case"TrueType":case"CIDFontType2":this.mimetype="font/opentype",l=this.checkAndRepair(e,t,n),this.isOpenType&&(w(n),a="OpenType");break;default:throw new r.FormatError(`Font ${a} is not supported`)}}catch(e){return(0,r.warn)(e),void this.fallbackToSystemFont()}this.data=l,this.fontType=x(a,o),this.fontMatrix=n.fontMatrix,this.widths=n.widths,this.defaultWidth=n.defaultWidth,this.toUnicode=n.toUnicode,this.seacMap=n.seacMap}else{for(i=0;i<256;i++)this.toFontChar[i]=this.differences[i]||n.defaultEncoding[i];this.fontType=r.FontType.TYPE3}}var t;function n(e,t){return(e<<8)+t}function f(e,t){var n=(e<<8)+t;return 32768&n?n-65536:n}function E(e){return String.fromCharCode(e>>8&255,255&e)}function T(e){return e>32767?e=32767:e<-32768&&(e=-32768),String.fromCharCode(e>>8&255,255&e)}function I(e){const t=e.peekBytes(4);return"ttcf"===(0,r.bytesToString)(t)}function D(e,t,n){for(var r,i=[],a=0,o=e.length;a<o;a++)-1!==(r=(0,l.getUnicodeForGlyph)(e[a],t))&&(i[a]=r);for(var s in n)-1!==(r=(0,l.getUnicodeForGlyph)(n[s],t))&&(i[+s]=r);return i}function P(e,t,n){var i=Object.create(null),a=[],o=0,s=p[o][0],l=p[o][1];for(var c in e){var u=e[c|=0];if(t(u)){if(s>l){if(++o>=p.length){(0,r.warn)("Ran out of space in font private use area.");break}s=p[o][0],l=p[o][1]}var h=s++;0===u&&(u=n),i[h]=u,a[c]=h}}return{toFontChar:a,charCodeToGlyphId:i,nextAvailableFontCharCode:s}}function O(e,t){var n,i,a,o,s=function(e,t){var n=[];for(var r in e)e[r]>=t||n.push({fontCharCode:0|r,glyphId:e[r]});0===n.length&&n.push({fontCharCode:0,glyphId:0}),n.sort(function(e,t){return e.fontCharCode-t.fontCharCode});for(var i=[],a=n.length,o=0;o<a;){var s=n[o].fontCharCode,l=[n[o].glyphId];++o;for(var c=s;o<a&&c+1===n[o].fontCharCode&&(l.push(n[o].glyphId),++o,65535!=++c););i.push([s,c,l])}return i}(e,t),l=s[s.length-1][1]>65535?2:1,c="\0\0"+E(l)+"\0\0"+(0,r.string32)(4+8*l);for(n=s.length-1;n>=0&&!(s[n][0]<=65535);--n);var u=n+1;s[n][0]<65535&&65535===s[n][1]&&(s[n][1]=65534);var h,d,f,p,A=s[n][1]<65535?1:0,g=u+A,m=B.getSearchParams(g,2),v="",y="",b="",w="",x="",_=0;for(n=0,i=u;n<i;n++){d=(h=s[n])[0],f=h[1],v+=E(d),y+=E(f);var C=!0;for(a=1,o=(p=h[2]).length;a<o;++a)if(p[a]!==p[a-1]+1){C=!1;break}if(C){b+=E(p[0]-d&65535),w+=E(0)}else{var S=2*(g-n)+2*_;for(_+=f-d+1,b+=E(0),w+=E(S),a=0,o=p.length;a<o;++a)x+=E(p[a])}}A>0&&(y+="ÿÿ",v+="ÿÿ",b+="\0",w+="\0\0");var k="\0\0"+E(2*g)+E(m.range)+E(m.entry)+E(m.rangeShift)+y+"\0\0"+v+b+w+x,T="",I="";if(l>1){for(c+="\0\0\n"+(0,r.string32)(4+8*l+4+k.length),T="",n=0,i=s.length;n<i;n++){d=(h=s[n])[0];var M=(p=h[2])[0];for(a=1,o=p.length;a<o;++a)p[a]!==p[a-1]+1&&(f=h[0]+a-1,T+=(0,r.string32)(d)+(0,r.string32)(f)+(0,r.string32)(M),d=f+1,M=p[a]);T+=(0,r.string32)(d)+(0,r.string32)(h[1])+(0,r.string32)(M)}I="\0\f\0\0"+(0,r.string32)(T.length+16)+"\0\0\0\0"+(0,r.string32)(T.length/12)}return c+"\0"+E(k.length+4)+k+I+T}function L(e,t,n){n=n||{unitsPerEm:0,yMax:0,yMin:0,ascent:0,descent:0};var i=0,a=0,o=0,s=0,c=null,u=0;if(t){for(var h in t){(c>(h|=0)||!c)&&(c=h),u<h&&(u=h);var d=(0,l.getUnicodeRangeFor)(h);if(d<32)i|=1<<d;else if(d<64)a|=1<<d-32;else if(d<96)o|=1<<d-64;else{if(!(d<123))throw new r.FormatError("Unicode ranges Bits > 123 are reserved for internal usage");s|=1<<d-96}}u>65535&&(u=65535)}else c=0,u=255;var f=e.bbox||[0,0,0,0],p=n.unitsPerEm||1/(e.fontMatrix||r.FONT_IDENTITY_MATRIX)[0],g=e.ascentScaled?1:p/A,m=n.ascent||Math.round(g*(e.ascent||f[3])),v=n.descent||Math.round(g*(e.descent||f[1]));v>0&&e.descent>0&&f[1]<0&&(v=-v);var y=n.yMax||m,b=-n.yMin||-v;return"\0$ô\0\0\0Š»\0\0\0ŒŠ»\0\0ß\x001\0\0\0\0"+String.fromCharCode(e.fixedPitch?9:0)+"\0\0\0\0\0\0"+(0,r.string32)(i)+(0,r.string32)(a)+(0,r.string32)(o)+(0,r.string32)(s)+"*21*"+E(e.italicAngle?1:0)+E(c||e.firstChar)+E(u||e.lastChar)+E(m)+E(v)+"\0d"+E(y)+E(b)+"\0\0\0\0\0\0\0\0"+E(e.xHeight)+E(e.capHeight)+E(0)+E(c||e.firstChar)+"\0"}function R(e){var t=Math.floor(65536*e.italicAngle);return"\0\0\0"+(0,r.string32)(t)+"\0\0\0\0"+(0,r.string32)(e.fixedPitch)+"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"}function N(e,t){t||(t=[[],[]]);var n,r,i,a,o,s=[t[0][0]||"Original licence",t[0][1]||e,t[0][2]||"Unknown",t[0][3]||"uniqueID",t[0][4]||e,t[0][5]||"Version 0.11",t[0][6]||"",t[0][7]||"Unknown",t[0][8]||"Unknown",t[0][9]||"Unknown"],l=[];for(n=0,r=s.length;n<r;n++){var c=[];for(i=0,a=(o=t[1][n]||s[n]).length;i<a;i++)c.push(E(o.charCodeAt(i)));l.push(c.join(""))}var u=[s,l],h=["\0","\0"],d=["\0\0","\0"],f=["\0\0","\t"],p=s.length*h.length,A="\0\0"+E(p)+E(12*p+6),g=0;for(n=0,r=h.length;n<r;n++){var m=u[n];for(i=0,a=m.length;i<a;i++){o=m[i],A+=h[n]+d[n]+f[n]+E(i)+E(o.length)+E(g),g+=o.length}}return A+=s.join("")+l.join("")}return e.getFontID=(t=1,function(){return String(t++)}),e.prototype={name:null,font:null,mimetype:null,disableFontFace:!1,get renderer(){var e=u.FontRendererFactory.create(this,g);return(0,r.shadow)(this,"renderer",e)},exportData(e=!1){const t=e?[...m,...v]:m,n=Object.create(null);let r,i;for(r of t)void 0!==(i=this[r])&&(n[r]=i);return n},fallbackToSystemFont:function(){this.missingFile=!0;var e=this.name,t=this.type,n=this.subtype;let i=e.replace(/[,_]/g,"-").replace(/\s/g,"");var c=(0,s.getStdFontMap)(),u=(0,s.getNonStdFontMap)(),h=!!c[i]||!(!u[i]||!c[u[i]]);if(i=c[i]||u[i]||i,this.bold=-1!==i.search(/bold/gi),this.italic=-1!==i.search(/oblique/gi)||-1!==i.search(/italic/gi),this.black=-1!==e.search(/Black/g),this.remeasure=Object.keys(this.widths).length>0,h&&"CIDFontType2"===t&&this.cidEncoding.startsWith("Identity-")){const t=(0,s.getGlyphMapForStandardFonts)(),n=[];for(const e in t)n[+e]=t[e];if(/Arial-?Black/i.test(e)){var d=(0,s.getSupplementalGlyphMapForArialBlack)();for(const e in d)n[+e]=d[e]}else if(/Calibri/i.test(e)){const e=(0,s.getSupplementalGlyphMapForCalibri)();for(const t in e)n[+t]=e[t]}this.toUnicode instanceof k||this.toUnicode.forEach(function(e,t){n[+e]=t}),this.toFontChar=n,this.toUnicode=new S(n)}else if(/Symbol/i.test(i))this.toFontChar=D(o.SymbolSetEncoding,(0,a.getGlyphsUnicode)(),this.differences);else if(/Dingbats/i.test(i))/Wingdings/i.test(e)&&(0,r.warn)("Non-embedded Wingdings font, falling back to ZapfDingbats."),this.toFontChar=D(o.ZapfDingbatsEncoding,(0,a.getDingbatsGlyphsUnicode)(),this.differences);else if(h)this.toFontChar=D(this.defaultEncoding,(0,a.getGlyphsUnicode)(),this.differences);else{const t=(0,a.getGlyphsUnicode)(),n=[];if(this.toUnicode.forEach((e,r)=>{if(!this.composite){var i=this.differences[e]||this.defaultEncoding[e];const n=(0,l.getUnicodeForGlyph)(i,t);-1!==n&&(r=n)}n[+e]=r}),this.composite&&this.toUnicode instanceof k&&/Verdana/i.test(e)){const e=(0,s.getGlyphMapForStandardFonts)();for(const t in e)n[+t]=e[t]}this.toFontChar=n}this.loadedName=i.split("-")[0],this.fontType=x(t,n)},checkAndRepair:function(e,t,s){const l=["OS/2","cmap","head","hhea","hmtx","maxp","name","post","loca","glyf","fpgm","prep","cvt ","CFF "];function c(e,t){const n=Object.create(null);n["OS/2"]=null,n.cmap=null,n.head=null,n.hhea=null,n.hmtx=null,n.maxp=null,n.name=null,n.post=null;for(let r=0;r<t;r++){const t=u(e);l.includes(t.tag)&&(0!==t.length&&(n[t.tag]=t))}return n}function u(e){var t=(0,r.bytesToString)(e.getBytes(4)),n=e.getInt32()>>>0,i=e.getInt32()>>>0,a=e.getInt32()>>>0,o=e.pos;e.pos=e.start?e.start:0,e.skip(i);var s=e.getBytes(a);return e.pos=o,"head"===t&&(s[8]=s[9]=s[10]=s[11]=0,s[17]|=32),{tag:t,checksum:n,length:a,offset:i,data:s}}function p(e){return{version:(0,r.bytesToString)(e.getBytes(4)),numTables:e.getUint16(),searchRange:e.getUint16(),entrySelector:e.getUint16(),rangeShift:e.getUint16()}}function A(e,t,n,r,i,a){var o={length:0,sizeOfInstructions:0};if(n-t<=12)return o;var s,l,c,u=e.subarray(t,n),h=f(u[0],u[1]);if(h<0)return c=h=-1,(s=u)[(l=0)+1]=c,s[l]=c>>>8,r.set(u,i),o.length=u.length,o;var d,p=10,A=0;for(d=0;d<h;d++){A=(u[p]<<8|u[p+1])+1,p+=2}var g=p,m=u[p]<<8|u[p+1];o.sizeOfInstructions=m;var v=p+=2+m,y=0;for(d=0;d<A;d++){var b=u[p++];192&b&&(u[p-1]=63&b);let e=2;2&b?e=1:16&b&&(e=0);let t=2;4&b?t=1:32&b&&(t=0);const n=e+t;if(y+=n,8&b){var w=u[p++];d+=w,y+=w*n}}if(0===y)return o;var x=p+y;return x>u.length?o:!a&&m>0?(r.set(u.subarray(0,g),i),r.set([0,0],i+g),r.set(u.subarray(v,x),i+g+2),x-=m,u.length-x>3&&(x=x+3&-4),o.length=x,o):u.length-x>3?(x=x+3&-4,r.set(u.subarray(0,x),i),o.length=x,o):(r.set(u,i),o.length=u.length,o)}function m(e){var n=(t.start?t.start:0)+e.offset;t.pos=n;var i=[[],[]],a=e.length,o=n+a;if(0!==t.getUint16()||a<6)return i;var s,l,c=t.getUint16(),u=t.getUint16(),h=[];for(s=0;s<c&&t.pos+12<=o;s++){var d={platform:t.getUint16(),encoding:t.getUint16(),language:t.getUint16(),name:t.getUint16(),length:t.getUint16(),offset:t.getUint16()};(1===d.platform&&0===d.encoding&&0===d.language||3===d.platform&&1===d.encoding&&1033===d.language)&&h.push(d)}for(s=0,l=h.length;s<l;s++){var f=h[s];if(!(f.length<=0)){var p=n+u+f.offset;if(!(p+f.length>o)){t.pos=p;var A=f.name;if(f.encoding){for(var g="",m=0,v=f.length;m<v;m+=2)g+=String.fromCharCode(t.getUint16());i[1][A]=g}else i[0][A]=(0,r.bytesToString)(t.getBytes(f.length))}}}return i}var v=[0,0,0,0,0,0,0,0,-2,-2,-2,-2,0,0,-2,-5,-1,-1,-1,-1,-1,-1,-1,-1,0,0,-1,0,-1,-1,-1,-1,1,-1,-999,0,1,0,-1,-2,0,-1,-2,-1,-1,0,-1,-1,0,0,-999,-999,-1,-1,-1,-1,-2,-999,-2,-2,-999,0,-2,-2,0,0,-2,0,-2,0,0,0,-2,-1,-1,1,1,0,0,-1,-1,-1,-1,-1,-1,-1,0,0,-1,0,-1,-1,0,-999,-1,-1,-1,-1,-1,-1,0,0,0,0,0,0,0,0,0,0,0,0,-2,-999,-999,-999,-999,-999,-1,-1,-2,-2,0,0,0,0,-1,-1,-999,-2,-2,0,0,-1,-2,-2,0,0,0,-1,-1,-1,-2];function y(e,t){for(var n,i,a,o,s,l=e.data,c=0,u=0,h=0,d=[],f=[],p=[],A=t.tooComplexToFollowFunctions,g=!1,m=0,y=0,b=l.length;c<b;){var w=l[c++];if(64===w)if(i=l[c++],g||y)c+=i;else for(n=0;n<i;n++)d.push(l[c++]);else if(65===w)if(i=l[c++],g||y)c+=2*i;else for(n=0;n<i;n++)a=l[c++],d.push(a<<8|l[c++]);else if(176==(248&w))if(i=w-176+1,g||y)c+=i;else for(n=0;n<i;n++)d.push(l[c++]);else if(184==(248&w))if(i=w-184+1,g||y)c+=2*i;else for(n=0;n<i;n++)a=l[c++],d.push(a<<8|l[c++]);else if(43!==w||A)if(44!==w||A){if(45===w)if(g)g=!1,u=c;else{if(!(s=f.pop()))return(0,r.warn)("TT: ENDF bad stack"),void(t.hintsValid=!1);o=p.pop(),l=s.data,c=s.i,t.functionsStackDeltas[o]=d.length-s.stackTop}else if(137===w)(g||y)&&((0,r.warn)("TT: nested IDEFs not allowed"),A=!0),g=!0,h=c;else if(88===w)++m;else if(27===w)y=m;else if(89===w)y===m&&(y=0),--m;else if(28===w&&!g&&!y){var x=d[d.length-1];x>0&&(c+=x-1)}}else(g||y)&&((0,r.warn)("TT: nested FDEFs not allowed"),A=!0),g=!0,h=c,o=d.pop(),t.functionsDefined[o]={data:l,i:c};else if(!g&&!y)if(o=d[d.length-1],isNaN(o))(0,r.info)("TT: CALL empty stack (or invalid entry).");else if(t.functionsUsed[o]=!0,o in t.functionsStackDeltas){const e=d.length+t.functionsStackDeltas[o];if(e<0)return(0,r.warn)("TT: CALL invalid functions stack delta."),void(t.hintsValid=!1);d.length=e}else if(o in t.functionsDefined&&!p.includes(o)){if(f.push({data:l,i:c,stackTop:d.length-1}),p.push(o),!(s=t.functionsDefined[o]))return(0,r.warn)("TT: CALL non-existent function"),void(t.hintsValid=!1);l=s.data,c=s.i}if(!g&&!y){let e=0;for(w<=142?e=v[w]:w>=192&&w<=223?e=-1:w>=224&&(e=-2),w>=113&&w<=117&&(i=d.pop(),isNaN(i)||(e=2*-i));e<0&&d.length>0;)d.pop(),e++;for(;e>0;)d.push(NaN),e--}}t.tooComplexToFollowFunctions=A;var _=[l];c>l.length&&_.push(new Uint8Array(c-l.length)),h>u&&((0,r.warn)("TT: complementing a missing function tail"),_.push(new Uint8Array([34,45]))),function(e,t){if(t.length>1){var n,r,i=0;for(n=0,r=t.length;n<r;n++)i+=t[n].length;i=i+3&-4;var a=new Uint8Array(i),o=0;for(n=0,r=t.length;n<r;n++)a.set(t[n],o),o+=t[n].length;e.data=a,e.length=i}}(e,_)}let x,C,S,k;if(I(t=new d.Stream(new Uint8Array(t.getBytes())))){const e=function(e,t){const{numFonts:n,offsetTable:i}=function(e){const t=(0,r.bytesToString)(e.getBytes(4));(0,r.assert)("ttcf"===t,"Must be a TrueType Collection font.");const n=e.getUint16(),i=e.getUint16(),a=e.getInt32()>>>0,o=[];for(let t=0;t<a;t++)o.push(e.getInt32()>>>0);const s={ttcTag:t,majorVersion:n,minorVersion:i,numFonts:a,offsetTable:o};switch(n){case 1:return s;case 2:return s.dsigTag=e.getInt32()>>>0,s.dsigLength=e.getInt32()>>>0,s.dsigOffset=e.getInt32()>>>0,s}throw new r.FormatError(`Invalid TrueType Collection majorVersion: ${n}.`)}(e);for(let a=0;a<n;a++){e.pos=(e.start||0)+i[a];const n=p(e),o=c(e,n.numTables);if(!o.name)throw new r.FormatError('TrueType Collection font must contain a "name" table.');const s=m(o.name);for(let e=0,r=s.length;e<r;e++)for(let r=0,i=s[e].length;r<i;r++){const i=s[e][r];if(i&&i.replace(/\s/g,"")===t)return{header:n,tables:o}}}throw new r.FormatError(`TrueType Collection does not contain "${t}" font.`)}(t,this.name);x=e.header,C=e.tables}else x=p(t),C=c(t,x.numTables);var E=!C["CFF "];if(E){if(!C.loca)throw new r.FormatError('Required "loca" table is not found');C.glyf||((0,r.warn)('Required "glyf" table is not found -- trying to recover.'),C.glyf={tag:"glyf",data:new Uint8Array(0)}),this.isOpenType=!1}else{const t=s.composite&&((s.cidToGidMap||[]).length>0||!(s.cMap instanceof h.IdentityCMap));if("OTTO"===x.version&&!t||!C.head||!C.hhea||!C.maxp||!C.post)return k=new d.Stream(C["CFF "].data),S=new F(k,s),w(s),this.convert(e,S,s);delete C.glyf,delete C.loca,delete C.fpgm,delete C.prep,delete C["cvt "],this.isOpenType=!0}if(!C.maxp)throw new r.FormatError('Required "maxp" table is not found');t.pos=(t.start||0)+C.maxp.offset;var T=t.getInt32();const M=t.getUint16();let D=M+1,U=!0;D>65535&&(U=!1,D=M,(0,r.warn)("Not enough space in glyfs to duplicate first glyph."));var H=0,j=0;T>=65536&&C.maxp.length>=22&&(t.pos+=8,t.getUint16()>2&&(C.maxp.data[14]=0,C.maxp.data[15]=2),t.pos+=4,H=t.getUint16(),t.pos+=4,j=t.getUint16());C.maxp.data[4]=D>>8,C.maxp.data[5]=255&D;var Q=function(e,t,n,i){var a={functionsDefined:[],functionsUsed:[],functionsStackDeltas:[],tooComplexToFollowFunctions:!1,hintsValid:!0};if(e&&y(e,a),t&&y(t,a),e&&function(e,t){if(!e.tooComplexToFollowFunctions){if(e.functionsDefined.length>t)return(0,r.warn)("TT: more functions defined than expected"),void(e.hintsValid=!1);for(var n=0,i=e.functionsUsed.length;n<i;n++){if(n>t)return(0,r.warn)("TT: invalid function id: "+n),void(e.hintsValid=!1);if(e.functionsUsed[n]&&!e.functionsDefined[n])return(0,r.warn)("TT: undefined function: "+n),void(e.hintsValid=!1)}}}(a,i),n&&1&n.length){var o=new Uint8Array(n.length+1);o.set(n.data),n.data=o}return a.hintsValid}(C.fpgm,C.prep,C["cvt "],H);if(Q||(delete C.fpgm,delete C.prep,delete C["cvt "]),function(e,t,n,i,a){if(t){e.pos=(e.start?e.start:0)+t.offset,e.pos+=4,e.pos+=2,e.pos+=2,e.pos+=2,e.pos+=2,e.pos+=2,e.pos+=2,e.pos+=2,e.pos+=2,e.pos+=2,e.pos+=2,e.pos+=8,e.pos+=2;var o=e.getUint16();o>i&&((0,r.info)("The numOfMetrics ("+o+") should not be greater than the numGlyphs ("+i+")"),o=i,t.data[34]=(65280&o)>>8,t.data[35]=255&o);var s=i-o-(n.length-4*o>>1);if(s>0){var l=new Uint8Array(n.length+2*s);l.set(n.data),a&&(l[n.length]=n.data[2],l[n.length+1]=n.data[3]),n.data=l}}else n&&(n.data=null)}(t,C.hhea,C.hmtx,D,U),!C.head)throw new r.FormatError('Required "head" table is not found');!function(e,t,i){var a,o,s,l,c=e.data,u=(a=c[0],o=c[1],s=c[2],l=c[3],(a<<24)+(o<<16)+(s<<8)+l);u>>16!=1&&((0,r.info)("Attempting to fix invalid version in head table: "+u),c[0]=0,c[1]=1,c[2]=0,c[3]=0);var h=n(c[50],c[51]);if(h<0||h>1){(0,r.info)("Attempting to fix invalid indexToLocFormat in head table: "+h);var d=t+1;if(i===d<<1)c[50]=0,c[51]=0;else{if(i!==d<<2)throw new r.FormatError("Could not fix indexToLocFormat: "+h);c[50]=0,c[51]=1}}}(C.head,M,E?C.loca.length:0);var z=Object.create(null);if(E){var V=n(C.head.data[50],C.head.data[51]),G=function(e,t,n,r,i,a,o){var s,l,c;r?(s=4,l=function(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]},c=function(e,t,n){e[t]=n>>>24&255,e[t+1]=n>>16&255,e[t+2]=n>>8&255,e[t+3]=255&n}):(s=2,l=function(e,t){return e[t]<<9|e[t+1]<<1},c=function(e,t,n){e[t]=n>>9&255,e[t+1]=n>>1&255});var u=a?n+1:n,h=s*(1+u),d=new Uint8Array(h);d.set(e.data.subarray(0,h)),e.data=d;var f,p,g=t.data,m=g.length,v=new Uint8Array(m),y=l(d,0),b=0,w=Object.create(null);for(c(d,0,b),f=0,p=s;f<n;f++,p+=s){var x=l(d,p);0===x&&(x=y),x>m&&(m+3&-4)===x&&(x=m),x>m&&(y=x);var _=A(g,y,x,v,b,i),C=_.length;0===C&&(w[f]=!0),_.sizeOfInstructions>o&&(o=_.sizeOfInstructions),c(d,p,b+=C),y=x}if(0===b){var S=new Uint8Array([0,1,0,0,0,0,0,0,0,0,0,0,0,0,49,0]);for(f=0,p=s;f<u;f++,p+=s)c(d,p,S.length);t.data=S}else if(a){var k=l(d,s);v.length>k+b?t.data=v.subarray(0,k+b):(t.data=new Uint8Array(k+b),t.data.set(v.subarray(0,b))),t.data.set(v.subarray(0,k),b),c(e.data,d.length-s,b+k)}else t.data=v.subarray(0,b);return{missingGlyphs:w,maxSizeOfInstructions:o}}(C.loca,C.glyf,M,V,Q,U,j);z=G.missingGlyphs,T>=65536&&C.maxp.length>=22&&(C.maxp.data[26]=G.maxSizeOfInstructions>>8,C.maxp.data[27]=255&G.maxSizeOfInstructions)}if(!C.hhea)throw new r.FormatError('Required "hhea" table is not found');0===C.hhea.data[10]&&0===C.hhea.data[11]&&(C.hhea.data[10]=255,C.hhea.data[11]=255);var $={unitsPerEm:n(C.head.data[18],C.head.data[19]),yMax:n(C.head.data[42],C.head.data[43]),yMin:f(C.head.data[38],C.head.data[39]),ascent:n(C.hhea.data[4],C.hhea.data[5]),descent:f(C.hhea.data[6],C.hhea.data[7])};this.ascent=$.ascent/$.unitsPerEm,this.descent=$.descent/$.unitsPerEm,C.post&&function(e,n,i){var a=(t.start?t.start:0)+e.offset;t.pos=a;var o,s=a+e.length,l=t.getInt32();t.skip(28);var c,u=!0;switch(l){case 65536:o=b;break;case 131072:var h=t.getUint16();if(h!==i){u=!1;break}var d=[];for(c=0;c<h;++c){var f=t.getUint16();if(f>=32768){u=!1;break}d.push(f)}if(!u)break;for(var p=[],A=[];t.pos<s;){var g=t.getByte();for(A.length=g,c=0;c<g;++c)A[c]=String.fromCharCode(t.getByte());p.push(A.join(""))}for(o=[],c=0;c<h;++c){var m=d[c];m<258?o.push(b[m]):o.push(p[m-258])}break;case 196608:break;default:(0,r.warn)("Unknown/unsupported post table version "+l),u=!1,n.defaultEncoding&&(o=n.defaultEncoding)}n.glyphNames=o}(C.post,s,M),C.post={tag:"post",data:R(s)};const q=[];function W(e){return!z[e]}if(s.composite){var K=s.cidToGidMap||[],Y=0===K.length;s.cMap.forEach(function(e,t){if(t>65535)throw new r.FormatError("Max size of CID is 65,535");var n=-1;Y?n=t:void 0!==K[t]&&(n=K[t]),n>=0&&n<M&&W(n)&&(q[e]=n)})}else{var X=function(e,t,n,i){if(!e)return(0,r.warn)("No cmap table available."),{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1};var a,o=(t.start?t.start:0)+e.offset;t.pos=o,t.skip(2);for(var s,l=t.getUint16(),c=!1,u=0;u<l;u++){var h=t.getUint16(),d=t.getUint16(),f=t.getInt32()>>>0,p=!1;if((!s||s.platformId!==h||s.encodingId!==d)&&(0===h&&0===d?p=!0:1===h&&0===d?p=!0:3!==h||1!==d||!i&&s?n&&3===h&&0===d&&(p=!0,c=!0):(p=!0,n||(c=!0)),p&&(s={platformId:h,encodingId:d,offset:f}),c))break}if(s&&(t.pos=o+s.offset),!s||-1===t.peekByte())return(0,r.warn)("Could not find a preferred cmap table."),{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1};var A=t.getUint16();t.skip(4);var g,m,v=!1,y=[];if(0===A){for(g=0;g<256;g++){var b=t.getByte();b&&y.push({charCode:g,glyphId:b})}v=!0}else if(4===A){var w=t.getUint16()>>1;t.skip(6);var x,_=[];for(x=0;x<w;x++)_.push({end:t.getUint16()});for(t.skip(2),x=0;x<w;x++)_[x].start=t.getUint16();for(x=0;x<w;x++)_[x].delta=t.getUint16();var C=0;for(x=0;x<w;x++){a=_[x];var S=t.getUint16();if(S){var k=(S>>1)-(w-x);a.offsetIndex=k,C=Math.max(C,k+a.end-a.start+1)}else a.offsetIndex=-1}var B=[];for(g=0;g<C;g++)B.push(t.getUint16());for(x=0;x<w;x++){o=(a=_[x]).start;var E=a.end,T=a.delta;for(k=a.offsetIndex,g=o;g<=E;g++)65535!==g&&(m=(m=k<0?g:B[k+g-o])+T&65535,y.push({charCode:g,glyphId:m}))}}else{if(6!==A)return(0,r.warn)("cmap table has unsupported format: "+A),{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1};var I=t.getUint16(),M=t.getUint16();for(g=0;g<M;g++){m=t.getUint16();var F=I+g;y.push({charCode:F,glyphId:m})}}for(y.sort(function(e,t){return e.charCode-t.charCode}),u=1;u<y.length;u++)y[u-1].charCode===y[u].charCode&&(y.splice(u,1),u--);return{platformId:s.platformId,encodingId:s.encodingId,mappings:y,hasShortCmap:v}}(C.cmap,t,this.isSymbolicFont,s.hasEncoding),J=X.platformId,Z=X.encodingId,ee=X.mappings,te=ee.length;if(s.hasEncoding&&(3===J&&1===Z||1===J&&0===Z)||-1===J&&-1===Z&&(0,o.getEncoding)(s.baseEncodingName)){var ne=[];"MacRomanEncoding"!==s.baseEncodingName&&"WinAnsiEncoding"!==s.baseEncodingName||(ne=(0,o.getEncoding)(s.baseEncodingName));var re=(0,a.getGlyphsUnicode)();for(let e=0;e<256;e++){var ie,ae;if(ie=this.differences&&e in this.differences?this.differences[e]:e in ne&&""!==ne[e]?ne[e]:o.StandardEncoding[e]){var oe;ae=_(ie,re),3===J&&1===Z?oe=re[ae]:1===J&&0===Z&&(oe=o.MacRomanEncoding.indexOf(ae));var se=!1;for(let t=0;t<te;++t)if(ee[t].charCode===oe){q[e]=ee[t].glyphId,se=!0;break}if(!se&&s.glyphNames){var le=s.glyphNames.indexOf(ie);-1===le&&ae!==ie&&(le=s.glyphNames.indexOf(ae)),le>0&&W(le)&&(q[e]=le)}}}}else if(0===J&&0===Z)for(let e=0;e<te;++e)q[ee[e].charCode]=ee[e].glyphId;else for(let e=0;e<te;++e){let t=ee[e].charCode;3===J&&t>=61440&&t<=61695&&(t&=255),q[t]=ee[e].glyphId}}0===q.length&&(q[0]=0);let ce=D-1;U||(ce=0);var ue=P(q,W,ce);if(this.toFontChar=ue.toFontChar,C.cmap={tag:"cmap",data:O(ue.charCodeToGlyphId,D)},C["OS/2"]&&function(e,t){t.pos=(t.start||0)+e.offset;var n=t.getUint16();t.skip(60);var r=t.getUint16();return!(n<4&&768&r||t.getUint16()>t.getUint16()||(t.skip(6),0===t.getUint16()||(e.data[8]=e.data[9]=0,0)))}(C["OS/2"],t)||(C["OS/2"]={tag:"OS/2",data:L(s,ue.charCodeToGlyphId,$)}),!E)try{k=new d.Stream(C["CFF "].data),(S=new i.CFFParser(k,s,g).parse()).duplicateFirstGlyph();var he=new i.CFFCompiler(S);C["CFF "].data=he.compile()}catch(e){(0,r.warn)("Failed to compile font "+s.loadedName)}if(C.name){var de=m(C.name);C.name.data=N(e,de)}else C.name={tag:"name",data:N(this.name)};var fe=new B(x.version);for(var pe in C)fe.addTable(pe,C[pe].data);return fe.toArray()},convert:function(e,t,n){n.fixedPitch=!1,n.builtInEncoding&&function(e,t){if(!e.hasIncludedToUnicodeMap&&!(e.hasEncoding||t===e.defaultEncoding||e.toUnicode instanceof k)){var n=[],r=(0,a.getGlyphsUnicode)();for(var i in t){var o=t[i],s=(0,l.getUnicodeForGlyph)(o,r);-1!==s&&(n[i]=String.fromCharCode(s))}e.toUnicode.amend(n)}}(n,n.builtInEncoding);let i=1;t instanceof F&&(i=t.numGlyphs-1);var s=t.getGlyphMapping(n),c=P(s,t.hasGlyphId.bind(t),i);this.toFontChar=c.toFontChar;var u=t.numGlyphs;function h(e,t){var n=null;for(var r in e)t===e[r]&&(n||(n=[]),n.push(0|r));return n}function d(e,t){for(var n in e)if(t===e[n])return 0|n;return c.charCodeToGlyphId[c.nextAvailableFontCharCode]=t,c.nextAvailableFontCharCode++}var f=t.seacs;if(g&&f&&f.length){var p=n.fontMatrix||r.FONT_IDENTITY_MATRIX,A=t.getCharset(),m=Object.create(null);for(var v in f){var y=f[v|=0],b=o.StandardEncoding[y[2]],w=o.StandardEncoding[y[3]],x=A.indexOf(b),_=A.indexOf(w);if(!(x<0||_<0)){var C={x:y[0]*p[0]+y[1]*p[2]+p[4],y:y[0]*p[1]+y[1]*p[3]+p[5]},S=h(s,v);if(S)for(let e=0,t=S.length;e<t;e++){var I=S[e],M=c.charCodeToGlyphId,D=d(M,x),U=d(M,_);m[I]={baseFontCharCode:D,accentFontCharCode:U,accentOffset:C}}}}n.seacMap=m}var H=1/(n.fontMatrix||r.FONT_IDENTITY_MATRIX)[0],j=new B("OTTO");return j.addTable("CFF ",t.data),j.addTable("OS/2",L(n,c.charCodeToGlyphId)),j.addTable("cmap",O(c.charCodeToGlyphId,u)),j.addTable("head","\0\0\0\0\0\0\0\0\0\0_<õ\0\0"+T(H)+"\0\0\0\0ž\v~'\0\0\0\0ž\v~'\0\0"+T(n.descent)+"ÿ"+T(n.ascent)+E(n.italicAngle?2:0)+"\0\0\0\0\0\0\0"),j.addTable("hhea","\0\0\0"+T(n.ascent)+T(n.descent)+"\0\0ÿÿ\0\0\0\0\0\0"+T(n.capHeight)+T(Math.tan(n.italicAngle)*n.xHeight)+"\0\0\0\0\0\0\0\0\0\0\0\0"+E(u)),j.addTable("hmtx",function(){var e=t.charstrings,n=t.cff?t.cff.widths:null,r="\0\0\0\0";for(let t=1,o=u;t<o;t++){var i=0;if(e){var a=e[t-1];i="width"in a?a.width:0}else n&&(i=Math.ceil(n[t]||0));r+=E(i)+E(0)}return r}()),j.addTable("maxp","\0\0P\0"+E(u)),j.addTable("name",N(e)),j.addTable("post",R(n)),j.toArray()},get spaceWidth(){for(var e,t=["space","minus","one","i","I"],n=0,i=t.length;n<i;n++){var o=t[n];if(o in this.widths){e=this.widths[o];break}var s=(0,a.getGlyphsUnicode)()[o],l=0;if(this.composite&&this.cMap.contains(s)&&(l=this.cMap.lookup(s)),!l&&this.toUnicode&&(l=this.toUnicode.charCodeOf(s)),l<=0&&(l=s),e=this.widths[l])break}return e=e||this.defaultWidth,(0,r.shadow)(this,"spaceWidth",e)},charToGlyph:function(e,t){var n,i,a,o=e;this.cMap&&this.cMap.contains(e)&&(o=this.cMap.lookup(e)),i=this.widths[o],i=(0,r.isNum)(i)?i:this.defaultWidth;var s=this.vmetrics&&this.vmetrics[o];let c=this.toUnicode.get(e)||this.fallbackToUnicode.get(e)||e;"number"==typeof c&&(c=String.fromCharCode(c));var u=e in this.toFontChar;if(n=this.toFontChar[e]||e,this.missingFile){const t=this.differences[e]||this.defaultEncoding[e];".notdef"!==t&&""!==t||"Type1"!==this.type||(n=32),n=(0,l.mapSpecialUnicodeValues)(n)}this.isType3Font&&(a=n);var h=null;if(this.seacMap&&this.seacMap[e]){u=!0;var d=this.seacMap[e];n=d.baseFontCharCode,h={fontChar:String.fromCodePoint(d.accentFontCharCode),offset:d.accentOffset}}let f="";"number"==typeof n&&(n<=1114111?f=String.fromCodePoint(n):(0,r.warn)(`charToGlyph - invalid fontCharCode: ${n}`));var p=this.glyphCache[e];return p&&p.matchesForCache(f,c,h,i,s,a,t,u)||(p=new C(f,c,h,i,s,a,t,u),this.glyphCache[e]=p),p},charsToGlyphs:function(e){var t,n,r,i=this.charsCache;if(i&&(t=i[e]))return t;i||(i=this.charsCache=Object.create(null)),t=[];var a,o=e,s=0;if(this.cMap)for(var l=Object.create(null);s<e.length;){this.cMap.readCharCode(e,s,l),r=l.charcode;var c=l.length;s+=c;var u=1===c&&32===e.charCodeAt(s-1);n=this.charToGlyph(r,u),t.push(n)}else for(s=0,a=e.length;s<a;++s)r=e.charCodeAt(s),n=this.charToGlyph(r,32===r),t.push(n);return i[o]=t},get glyphCacheValues(){return Object.values(this.glyphCache)}},e}();t.Font=E;var T=function(){function e(e){this.error=e,this.loadedName="g_font_error",this.missingFile=!0}return e.prototype={charsToGlyphs:function(){return[]},exportData(e=!1){return{error:this.error}}},e}();function I(e,t,n){var r,i,s,l=Object.create(null),c=!!(e.flags&y.Symbolic);if(e.baseEncodingName)for(s=(0,o.getEncoding)(e.baseEncodingName),i=0;i<s.length;i++)r=n.indexOf(s[i]),l[i]=r>=0?r:0;else if(c)for(i in t)l[i]=t[i];else for(s=o.StandardEncoding,i=0;i<s.length;i++)r=n.indexOf(s[i]),l[i]=r>=0?r:0;var u,h=e.differences;if(h)for(i in h){var d=h[i];if(-1===(r=n.indexOf(d))){u||(u=(0,a.getGlyphsUnicode)());var f=_(d,u);f!==d&&(r=n.indexOf(f))}l[i]=r>=0?r:0}return l}t.ErrorFont=T;var M=function(){function e(e,t,n){for(var r,i=e.length,a=t.length,o=i-a,s=n,l=!1;s<o;){for(r=0;r<a&&e[s+r]===t[r];)r++;if(r>=a){for(s+=r;s<i&&(0,c.isWhiteSpace)(e[s]);)s++;l=!0;break}s++}return{found:l,length:s}}function t(t,n,i){var a=i.length1,o=(i.length2,n.peekBytes(6)),s=128===o[0]&&1===o[1];s&&(n.skip(6),a=o[5]<<24|o[4]<<16|o[3]<<8|o[2]);var l=function(t,n){var i,a,o,s,l=[101,101,120,101,99],u=t.pos;try{a=(i=t.getBytes(n)).length}catch(e){if(e instanceof c.MissingDataException)throw e}if(a===n&&(o=e(i,l,n-2*l.length)).found&&o.length===n)return{stream:new d.Stream(i),length:n};for((0,r.warn)('Invalid "Length1" property in Type1 font -- trying to recover.'),t.pos=u;0!==(o=e(t.peekBytes(2048),l,0)).length;)if(t.pos+=o.length,o.found){s=t.pos-u;break}return t.pos=u,s?{stream:new d.Stream(t.getBytes(s)),length:s}:((0,r.warn)('Unable to recover "Length1" property in Type1 font -- using as is.'),{stream:new d.Stream(t.getBytes(n)),length:n})}(n,a);new f.Type1Parser(l.stream,!1,g).extractFontHeader(i),s&&((o=n.getBytes(6))[5],o[4],o[3],o[2]);var u,h=(u=n.getBytes(),{stream:new d.Stream(u),length:u.length}),p=new f.Type1Parser(h.stream,!0,g).extractFontProgram(i);for(const e in p.properties)i[e]=p.properties[e];var A=p.charstrings,m=this.getType2Charstrings(A),v=this.getType2Subrs(p.subrs);this.charstrings=A,this.data=this.wrap(t,m,this.charstrings,v,i),this.seacs=this.getSeacs(p.charstrings)}return t.prototype={get numGlyphs(){return this.charstrings.length+1},getCharset:function(){for(var e=[".notdef"],t=this.charstrings,n=0;n<t.length;n++)e.push(t[n].glyphName);return e},getGlyphMapping:function(e){var t=this.charstrings;if(e.composite){const n=Object.create(null);for(let r=0,i=t.length;r<i;r++){n[e.cMap.charCodeOf(r)]=r+1}return n}var n,r=[".notdef"];for(n=0;n<t.length;n++)r.push(t[n].glyphName);var i=e.builtInEncoding;if(i){var a=Object.create(null);for(var o in i)(n=r.indexOf(i[o]))>=0&&(a[o]=n)}return I(e,a,r)},hasGlyphId:function(e){return!(e<0||e>=this.numGlyphs)&&(0===e||this.charstrings[e-1].charstring.length>0)},getSeacs:function(e){var t,n,r=[];for(t=0,n=e.length;t<n;t++){var i=e[t];i.seac&&(r[t+1]=i.seac)}return r},getType2Charstrings:function(e){for(var t=[],n=0,r=e.length;n<r;n++)t.push(e[n].charstring);return t},getType2Subrs:function(e){var t=0,n=e.length;t=n<1133?107:n<33769?1131:32768;var r,i=[];for(r=0;r<t;r++)i.push([11]);for(r=0;r<n;r++)i.push(e[r]);return i},wrap:function(e,t,n,r,a){var o=new i.CFF;o.header=new i.CFFHeader(1,0,4,4),o.names=[e];var s=new i.CFFTopDict;s.setByName("version",391),s.setByName("Notice",392),s.setByName("FullName",393),s.setByName("FamilyName",394),s.setByName("Weight",395),s.setByName("Encoding",null),s.setByName("FontMatrix",a.fontMatrix),s.setByName("FontBBox",a.bbox),s.setByName("charset",null),s.setByName("CharStrings",null),s.setByName("Private",null),o.topDict=s;var l=new i.CFFStrings;l.add("Version 0.11"),l.add("See original notice"),l.add(e),l.add(e),l.add("Medium"),o.strings=l,o.globalSubrIndex=new i.CFFIndex;var c,u,h=t.length,d=[".notdef"];for(c=0;c<h;c++){const e=n[c].glyphName;-1===i.CFFStandardStrings.indexOf(e)&&l.add(e),d.push(e)}o.charset=new i.CFFCharset(!1,0,d);var f=new i.CFFIndex;for(f.add([139,14]),c=0;c<h;c++)f.add(t[c]);o.charStrings=f;var p=new i.CFFPrivateDict;p.setByName("Subrs",null);var A=["BlueValues","OtherBlues","FamilyBlues","FamilyOtherBlues","StemSnapH","StemSnapV","BlueShift","BlueFuzz","BlueScale","LanguageGroup","ExpansionFactor","ForceBold","StdHW","StdVW"];for(c=0,u=A.length;c<u;c++){var g=A[c];if(g in a.privateData){var m=a.privateData[g];if(Array.isArray(m))for(var v=m.length-1;v>0;v--)m[v]-=m[v-1];p.setByName(g,m)}}o.topDict.privateDict=p;var y=new i.CFFIndex;for(c=0,u=r.length;c<u;c++)y.add(r[c]);return p.subrsIndex=y,new i.CFFCompiler(o).compile()}},t}(),F=function(){function e(e,t){this.properties=t;var n=new i.CFFParser(e,t,g);this.cff=n.parse(),this.cff.duplicateFirstGlyph();var a=new i.CFFCompiler(this.cff);this.seacs=this.cff.seacs;try{this.data=a.compile()}catch(n){(0,r.warn)("Failed to compile font "+t.loadedName),this.data=e}}return e.prototype={get numGlyphs(){return this.cff.charStrings.count},getCharset:function(){return this.cff.charset.charset},getGlyphMapping:function(){var e,t,n=this.cff,r=this.properties,i=n.charset.charset;if(r.composite){let o;if(e=Object.create(null),n.isCIDFont)for(t=0;t<i.length;t++){var a=i[t];e[o=r.cMap.charCodeOf(a)]=t}else for(t=0;t<n.charStrings.count;t++)e[o=r.cMap.charCodeOf(t)]=t;return e}return e=I(r,n.encoding?n.encoding.encoding:null,i)},hasGlyphId:function(e){return this.cff.hasGlyphId(e)}},e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CFFFDSelect=t.CFFCompiler=t.CFFPrivateDict=t.CFFTopDict=t.CFFCharset=t.CFFIndex=t.CFFStrings=t.CFFHeader=t.CFF=t.CFFParser=t.CFFStandardStrings=void 0;var r=n(2),i=n(31),a=n(32),o=[".notdef","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","endash","dagger","daggerdbl","periodcentered","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","questiondown","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","ring","cedilla","hungarumlaut","ogonek","caron","emdash","AE","ordfeminine","Lslash","Oslash","OE","ordmasculine","ae","dotlessi","lslash","oslash","oe","germandbls","onesuperior","logicalnot","mu","trademark","Eth","onehalf","plusminus","Thorn","onequarter","divide","brokenbar","degree","thorn","threequarters","twosuperior","registered","minus","eth","multiply","threesuperior","copyright","Aacute","Acircumflex","Adieresis","Agrave","Aring","Atilde","Ccedilla","Eacute","Ecircumflex","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Ntilde","Oacute","Ocircumflex","Odieresis","Ograve","Otilde","Scaron","Uacute","Ucircumflex","Udieresis","Ugrave","Yacute","Ydieresis","Zcaron","aacute","acircumflex","adieresis","agrave","aring","atilde","ccedilla","eacute","ecircumflex","edieresis","egrave","iacute","icircumflex","idieresis","igrave","ntilde","oacute","ocircumflex","odieresis","ograve","otilde","scaron","uacute","ucircumflex","udieresis","ugrave","yacute","ydieresis","zcaron","exclamsmall","Hungarumlautsmall","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","commasuperior","threequartersemdash","periodsuperior","questionsmall","asuperior","bsuperior","centsuperior","dsuperior","esuperior","isuperior","lsuperior","msuperior","nsuperior","osuperior","rsuperior","ssuperior","tsuperior","ff","ffi","ffl","parenleftinferior","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","exclamdownsmall","centoldstyle","Lslashsmall","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","Dotaccentsmall","Macronsmall","figuredash","hypheninferior","Ogoneksmall","Ringsmall","Cedillasmall","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","zerosuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall","001.000","001.001","001.002","001.003","Black","Bold","Book","Light","Medium","Regular","Roman","Semibold"];t.CFFStandardStrings=o;var s=function(){var e=[null,{id:"hstem",min:2,stackClearing:!0,stem:!0},null,{id:"vstem",min:2,stackClearing:!0,stem:!0},{id:"vmoveto",min:1,stackClearing:!0},{id:"rlineto",min:2,resetStack:!0},{id:"hlineto",min:1,resetStack:!0},{id:"vlineto",min:1,resetStack:!0},{id:"rrcurveto",min:6,resetStack:!0},null,{id:"callsubr",min:1,undefStack:!0},{id:"return",min:0,undefStack:!0},null,null,{id:"endchar",min:0,stackClearing:!0},null,null,null,{id:"hstemhm",min:2,stackClearing:!0,stem:!0},{id:"hintmask",min:0,stackClearing:!0},{id:"cntrmask",min:0,stackClearing:!0},{id:"rmoveto",min:2,stackClearing:!0},{id:"hmoveto",min:1,stackClearing:!0},{id:"vstemhm",min:2,stackClearing:!0,stem:!0},{id:"rcurveline",min:8,resetStack:!0},{id:"rlinecurve",min:8,resetStack:!0},{id:"vvcurveto",min:4,resetStack:!0},{id:"hhcurveto",min:4,resetStack:!0},null,{id:"callgsubr",min:1,undefStack:!0},{id:"vhcurveto",min:4,resetStack:!0},{id:"hvcurveto",min:4,resetStack:!0}],t=[null,null,null,{id:"and",min:2,stackDelta:-1},{id:"or",min:2,stackDelta:-1},{id:"not",min:1,stackDelta:0},null,null,null,{id:"abs",min:1,stackDelta:0},{id:"add",min:2,stackDelta:-1,stackFn:function(e,t){e[t-2]=e[t-2]+e[t-1]}},{id:"sub",min:2,stackDelta:-1,stackFn:function(e,t){e[t-2]=e[t-2]-e[t-1]}},{id:"div",min:2,stackDelta:-1,stackFn:function(e,t){e[t-2]=e[t-2]/e[t-1]}},null,{id:"neg",min:1,stackDelta:0,stackFn:function(e,t){e[t-1]=-e[t-1]}},{id:"eq",min:2,stackDelta:-1},null,null,{id:"drop",min:1,stackDelta:-1},null,{id:"put",min:2,stackDelta:-2},{id:"get",min:1,stackDelta:0},{id:"ifelse",min:4,stackDelta:-3},{id:"random",min:0,stackDelta:1},{id:"mul",min:2,stackDelta:-1,stackFn:function(e,t){e[t-2]=e[t-2]*e[t-1]}},null,{id:"sqrt",min:1,stackDelta:0},{id:"dup",min:1,stackDelta:1},{id:"exch",min:2,stackDelta:0},{id:"index",min:2,stackDelta:0},{id:"roll",min:3,stackDelta:-2},null,null,null,{id:"hflex",min:7,resetStack:!0},{id:"flex",min:13,resetStack:!0},{id:"hflex1",min:9,resetStack:!0},{id:"flex1",min:11,resetStack:!0}];function n(e,t,n){this.bytes=e.getBytes(),this.properties=t,this.seacAnalysisEnabled=!!n}return n.prototype={parse:function(){var e=this.properties,t=new l;this.cff=t;var n=this.parseHeader(),r=this.parseIndex(n.endPos),i=this.parseIndex(r.endPos),a=this.parseIndex(i.endPos),o=this.parseIndex(a.endPos),s=this.parseDict(i.obj.get(0)),c=this.createDict(f,s,t.strings);t.header=n.obj,t.names=this.parseNameIndex(r.obj),t.strings=this.parseStringIndex(a.obj),t.topDict=c,t.globalSubrIndex=o.obj,this.parsePrivateDict(t.topDict),t.isCIDFont=c.hasName("ROS");var u=c.getByName("CharStrings"),h=this.parseIndex(u).obj,d=c.getByName("FontMatrix");d&&(e.fontMatrix=d);var p,A,g=c.getByName("FontBBox");if(g&&(e.ascent=Math.max(g[3],g[1]),e.descent=Math.min(g[1],g[3]),e.ascentScaled=!0),t.isCIDFont){for(var m=this.parseIndex(c.getByName("FDArray")).obj,v=0,y=m.count;v<y;++v){var b=m.get(v),w=this.createDict(f,this.parseDict(b),t.strings);this.parsePrivateDict(w),t.fdArray.push(w)}A=null,p=this.parseCharsets(c.getByName("charset"),h.count,t.strings,!0),t.fdSelect=this.parseFDSelect(c.getByName("FDSelect"),h.count)}else p=this.parseCharsets(c.getByName("charset"),h.count,t.strings,!1),A=this.parseEncoding(c.getByName("Encoding"),e,t.strings,p.charset);t.charset=p,t.encoding=A;var x=this.parseCharStrings({charStrings:h,localSubrIndex:c.privateDict.subrsIndex,globalSubrIndex:o.obj,fdSelect:t.fdSelect,fdArray:t.fdArray,privateDict:c.privateDict});return t.charStrings=x.charStrings,t.seacs=x.seacs,t.widths=x.widths,t},parseHeader:function(){for(var e=this.bytes,t=e.length,n=0;n<t&&1!==e[n];)++n;if(n>=t)throw new r.FormatError("Invalid CFF header");0!==n&&((0,r.info)("cff data is shifted"),e=e.subarray(n),this.bytes=e);var i=e[0],a=e[1],o=e[2],s=e[3];return{obj:new c(i,a,o,s),endPos:o}},parseDict:function(e){var t=0;function n(){var n=e[t++];return 30===n?function(){var n="";const r=["0","1","2","3","4","5","6","7","8","9",".","E","E-",null,"-"];var i=e.length;for(;t<i;){var a=e[t++],o=a>>4,s=15&a;if(15===o)break;if(n+=r[o],15===s)break;n+=r[s]}return parseFloat(n)}():28===n?n=((n=e[t++])<<24|e[t++]<<16)>>16:29===n?n=(n=(n=(n=e[t++])<<8|e[t++])<<8|e[t++])<<8|e[t++]:n>=32&&n<=246?n-139:n>=247&&n<=250?256*(n-247)+e[t++]+108:n>=251&&n<=254?-256*(n-251)-e[t++]-108:((0,r.warn)('CFFParser_parseDict: "'+n+'" is a reserved command.'),NaN)}var i=[],a=[];t=0;for(var o=e.length;t<o;){var s=e[t];s<=21?(12===s&&(s=s<<8|e[++t]),a.push([s,i]),i=[],++t):i.push(n())}return a},parseIndex:function(e){var t,n,r=new h,i=this.bytes,a=i[e++]<<8|i[e++],o=[],s=e;if(0!==a){var l=i[e++],c=e+(a+1)*l-1;for(t=0,n=a+1;t<n;++t){for(var u=0,d=0;d<l;++d)u<<=8,u+=i[e++];o.push(c+u)}s=o[a]}for(t=0,n=o.length-1;t<n;++t){var f=o[t],p=o[t+1];r.add(i.subarray(f,p))}return{obj:r,endPos:s}},parseNameIndex:function(e){for(var t=[],n=0,i=e.count;n<i;++n){var a=e.get(n);t.push((0,r.bytesToString)(a))}return t},parseStringIndex:function(e){for(var t=new u,n=0,i=e.count;n<i;++n){var a=e.get(n);t.add((0,r.bytesToString)(a))}return t},createDict:function(e,t,n){for(var r=new e(n),i=0,a=t.length;i<a;++i){var o=t[i],s=o[0],l=o[1];r.setByKey(s,l)}return r},parseCharString:function(n,i,a,o){if(!i||n.callDepth>10)return!1;for(var s=n.stackSize,l=n.stack,c=i.length,u=0;u<c;){var h=i[u++],d=null;if(12===h){var f=i[u++];0===f?(i[u-2]=139,i[u-1]=22,s=0):d=t[f]}else if(28===h)l[s]=(i[u]<<24|i[u+1]<<16)>>16,u+=2,s++;else if(14===h){if(s>=4&&(s-=4,this.seacAnalysisEnabled))return n.seac=l.slice(s,s+4),!1;d=e[h]}else if(h>=32&&h<=246)l[s]=h-139,s++;else if(h>=247&&h<=254)l[s]=h<251?(h-247<<8)+i[u]+108:-(h-251<<8)-i[u]-108,u++,s++;else if(255===h)l[s]=(i[u]<<24|i[u+1]<<16|i[u+2]<<8|i[u+3])/65536,u+=4,s++;else if(19===h||20===h)n.hints+=s>>1,u+=n.hints+7>>3,s%=2,d=e[h];else{if(10===h||29===h){var p;if(!(p=10===h?a:o))return d=e[h],(0,r.warn)("Missing subrsIndex for "+d.id),!1;var A=32768;p.count<1240?A=107:p.count<33900&&(A=1131);var g=l[--s]+A;if(g<0||g>=p.count||isNaN(g))return d=e[h],(0,r.warn)("Out of bounds subrIndex for "+d.id),!1;if(n.stackSize=s,n.callDepth++,!this.parseCharString(n,p.get(g),a,o))return!1;n.callDepth--,s=n.stackSize;continue}if(11===h)return n.stackSize=s,!0;d=e[h]}if(d){if(d.stem&&(n.hints+=s>>1,3===h||23===h?n.hasVStems=!0:!n.hasVStems||1!==h&&18!==h||((0,r.warn)("CFF stem hints are in wrong order"),i[u-1]=1===h?3:23)),"min"in d&&!n.undefStack&&s<d.min)return(0,r.warn)("Not enough parameters for "+d.id+"; actual: "+s+", expected: "+d.min),!1;n.firstStackClearing&&d.stackClearing&&(n.firstStackClearing=!1,(s-=d.min)>=2&&d.stem?s%=2:s>1&&(0,r.warn)("Found too many parameters for stack-clearing command"),s>0&&l[s-1]>=0&&(n.width=l[s-1])),"stackDelta"in d?("stackFn"in d&&d.stackFn(l,s),s+=d.stackDelta):d.stackClearing?s=0:d.resetStack?(s=0,n.undefStack=!1):d.undefStack&&(s=0,n.undefStack=!0,n.firstStackClearing=!1)}}return n.stackSize=s,!0},parseCharStrings({charStrings:e,localSubrIndex:t,globalSubrIndex:n,fdSelect:i,fdArray:a,privateDict:o}){for(var s=[],l=[],c=e.count,u=0;u<c;u++){var h=e.get(u),d={callDepth:0,stackSize:0,stack:[],undefStack:!0,hints:0,firstStackClearing:!0,seac:null,width:null,hasVStems:!1},f=!0,p=null,A=o;if(i&&a.length){var g=i.getFDIndex(u);-1===g&&((0,r.warn)("Glyph index is not in fd select."),f=!1),g>=a.length&&((0,r.warn)("Invalid fd index for glyph index."),f=!1),f&&(p=(A=a[g].privateDict).subrsIndex)}else t&&(p=t);if(f&&(f=this.parseCharString(d,h,p,n)),null!==d.width){const e=A.getByName("nominalWidthX");l[u]=e+d.width}else{const e=A.getByName("defaultWidthX");l[u]=e}null!==d.seac&&(s[u]=d.seac),f||e.set(u,new Uint8Array([14]))}return{charStrings:e,seacs:s,widths:l}},emptyPrivateDictionary:function(e){var t=this.createDict(p,[],e.strings);e.setByKey(18,[0,0]),e.privateDict=t},parsePrivateDict:function(e){if(e.hasName("Private")){var t=e.getByName("Private");if(Array.isArray(t)&&2===t.length){var n=t[0],r=t[1];if(0===n||r>=this.bytes.length)this.emptyPrivateDictionary(e);else{var i=r+n,a=this.bytes.subarray(r,i),o=this.parseDict(a),s=this.createDict(p,o,e.strings);if(e.privateDict=s,s.getByName("Subrs")){var l=s.getByName("Subrs"),c=r+l;if(0===l||c>=this.bytes.length)this.emptyPrivateDictionary(e);else{var u=this.parseIndex(c);s.subrsIndex=u.obj}}}}else e.removeByName("Private")}else this.emptyPrivateDictionary(e)},parseCharsets:function(e,t,n,a){if(0===e)return new g(!0,A.ISO_ADOBE,i.ISOAdobeCharset);if(1===e)return new g(!0,A.EXPERT,i.ExpertCharset);if(2===e)return new g(!0,A.EXPERT_SUBSET,i.ExpertSubsetCharset);var o=this.bytes,s=e,l=o[e++];const c=[a?0:".notdef"];var u,h,d;switch(t-=1,l){case 0:for(d=0;d<t;d++)u=o[e++]<<8|o[e++],c.push(a?u:n.get(u));break;case 1:for(;c.length<=t;)for(u=o[e++]<<8|o[e++],h=o[e++],d=0;d<=h;d++)c.push(a?u++:n.get(u++));break;case 2:for(;c.length<=t;)for(u=o[e++]<<8|o[e++],h=o[e++]<<8|o[e++],d=0;d<=h;d++)c.push(a?u++:n.get(u++));break;default:throw new r.FormatError("Unknown charset format")}var f=e,p=o.subarray(s,f);return new g(!1,l,c,p)},parseEncoding:function(e,t,n,i){var o,s,l,c=Object.create(null),u=this.bytes,h=!1,d=null;if(0===e||1===e){h=!0,o=e;var f=e?a.ExpertEncoding:a.StandardEncoding;for(s=0,l=i.length;s<l;s++){var p=f.indexOf(i[s]);-1!==p&&(c[p]=s)}}else{var A=e;switch(127&(o=u[e++])){case 0:var g=u[e++];for(s=1;s<=g;s++)c[u[e++]]=s;break;case 1:var v=u[e++],y=1;for(s=0;s<v;s++)for(var b=u[e++],w=u[e++],x=b;x<=b+w;x++)c[x]=y++;break;default:throw new r.FormatError(`Unknown encoding format: ${o} in CFF`)}var _=e;128&o&&(u[A]&=127,function(){var t=u[e++];for(s=0;s<t;s++){var r=u[e++],a=(u[e++]<<8)+(255&u[e++]);c[r]=i.indexOf(n.get(a))}}()),d=u.subarray(A,_)}return new m(h,o&=127,c,d)},parseFDSelect:function(e,t){var n,i=this.bytes,a=i[e++],o=[];switch(a){case 0:for(n=0;n<t;++n){var s=i[e++];o.push(s)}break;case 3:var l=i[e++]<<8|i[e++];for(n=0;n<l;++n){var c=i[e++]<<8|i[e++];0===n&&0!==c&&((0,r.warn)("parseFDSelect: The first range must have a first GID of 0 -- trying to recover."),c=0);for(var u=i[e++],h=i[e]<<8|i[e+1],d=c;d<h;++d)o.push(u)}e+=2;break;default:throw new r.FormatError(`parseFDSelect: Unknown format "${a}".`)}if(o.length!==t)throw new r.FormatError("parseFDSelect: Invalid font data.");return new v(a,o)}},n}();t.CFFParser=s;var l=function(){function e(){this.header=null,this.names=[],this.topDict=null,this.strings=new u,this.globalSubrIndex=null,this.encoding=null,this.charset=null,this.charStrings=null,this.fdArray=[],this.fdSelect=null,this.isCIDFont=!1}return e.prototype={duplicateFirstGlyph:function(){if(this.charStrings.count>=65535)(0,r.warn)("Not enough space in charstrings to duplicate first glyph.");else{var e=this.charStrings.get(0);this.charStrings.add(e),this.isCIDFont&&this.fdSelect.fdSelect.push(this.fdSelect.fdSelect[0])}},hasGlyphId:function(e){return!(e<0||e>=this.charStrings.count)&&this.charStrings.get(e).length>0}},e}();t.CFF=l;var c=function(){return function(e,t,n,r){this.major=e,this.minor=t,this.hdrSize=n,this.offSize=r}}();t.CFFHeader=c;var u=function(){function e(){this.strings=[]}return e.prototype={get:function(e){return e>=0&&e<=390?o[e]:e-391<=this.strings.length?this.strings[e-391]:o[0]},getSID:function(e){let t=o.indexOf(e);return-1!==t?t:-1!==(t=this.strings.indexOf(e))?t+391:-1},add:function(e){this.strings.push(e)},get count(){return this.strings.length}},e}();t.CFFStrings=u;var h=function(){function e(){this.objects=[],this.length=0}return e.prototype={add:function(e){this.length+=e.length,this.objects.push(e)},set:function(e,t){this.length+=t.length-this.objects[e].length,this.objects[e]=t},get:function(e){return this.objects[e]},get count(){return this.objects.length}},e}();t.CFFIndex=h;var d=function(){function e(e,t){this.keyToNameMap=e.keyToNameMap,this.nameToKeyMap=e.nameToKeyMap,this.defaults=e.defaults,this.types=e.types,this.opcodes=e.opcodes,this.order=e.order,this.strings=t,this.values=Object.create(null)}return e.prototype={setByKey:function(e,t){if(!(e in this.keyToNameMap))return!1;var n=t.length;if(0===n)return!0;for(var i=0;i<n;i++)if(isNaN(t[i]))return(0,r.warn)('Invalid CFFDict value: "'+t+'" for key "'+e+'".'),!0;var a=this.types[e];return"num"!==a&&"sid"!==a&&"offset"!==a||(t=t[0]),this.values[e]=t,!0},setByName:function(e,t){if(!(e in this.nameToKeyMap))throw new r.FormatError(`Invalid dictionary name "${e}"`);this.values[this.nameToKeyMap[e]]=t},hasName:function(e){return this.nameToKeyMap[e]in this.values},getByName:function(e){if(!(e in this.nameToKeyMap))throw new r.FormatError(`Invalid dictionary name ${e}"`);var t=this.nameToKeyMap[e];return t in this.values?this.values[t]:this.defaults[t]},removeByName:function(e){delete this.values[this.nameToKeyMap[e]]}},e.createTables=function(e){for(var t={keyToNameMap:{},nameToKeyMap:{},defaults:{},types:{},opcodes:{},order:[]},n=0,r=e.length;n<r;++n){var i=e[n],a=Array.isArray(i[0])?(i[0][0]<<8)+i[0][1]:i[0];t.keyToNameMap[a]=i[1],t.nameToKeyMap[i[1]]=a,t.types[a]=i[2],t.defaults[a]=i[3],t.opcodes[a]=Array.isArray(i[0])?i[0]:[i[0]],t.order.push(a)}return t},e}(),f=function(){var e=[[[12,30],"ROS",["sid","sid","num"],null],[[12,20],"SyntheticBase","num",null],[0,"version","sid",null],[1,"Notice","sid",null],[[12,0],"Copyright","sid",null],[2,"FullName","sid",null],[3,"FamilyName","sid",null],[4,"Weight","sid",null],[[12,1],"isFixedPitch","num",0],[[12,2],"ItalicAngle","num",0],[[12,3],"UnderlinePosition","num",-100],[[12,4],"UnderlineThickness","num",50],[[12,5],"PaintType","num",0],[[12,6],"CharstringType","num",2],[[12,7],"FontMatrix",["num","num","num","num","num","num"],[.001,0,0,.001,0,0]],[13,"UniqueID","num",null],[5,"FontBBox",["num","num","num","num"],[0,0,0,0]],[[12,8],"StrokeWidth","num",0],[14,"XUID","array",null],[15,"charset","offset",0],[16,"Encoding","offset",0],[17,"CharStrings","offset",0],[18,"Private",["offset","offset"],null],[[12,21],"PostScript","sid",null],[[12,22],"BaseFontName","sid",null],[[12,23],"BaseFontBlend","delta",null],[[12,31],"CIDFontVersion","num",0],[[12,32],"CIDFontRevision","num",0],[[12,33],"CIDFontType","num",0],[[12,34],"CIDCount","num",8720],[[12,35],"UIDBase","num",null],[[12,37],"FDSelect","offset",null],[[12,36],"FDArray","offset",null],[[12,38],"FontName","sid",null]],t=null;function n(n){null===t&&(t=d.createTables(e)),d.call(this,t,n),this.privateDict=null}return n.prototype=Object.create(d.prototype),n}();t.CFFTopDict=f;var p=function(){var e=[[6,"BlueValues","delta",null],[7,"OtherBlues","delta",null],[8,"FamilyBlues","delta",null],[9,"FamilyOtherBlues","delta",null],[[12,9],"BlueScale","num",.039625],[[12,10],"BlueShift","num",7],[[12,11],"BlueFuzz","num",1],[10,"StdHW","num",null],[11,"StdVW","num",null],[[12,12],"StemSnapH","delta",null],[[12,13],"StemSnapV","delta",null],[[12,14],"ForceBold","num",0],[[12,17],"LanguageGroup","num",0],[[12,18],"ExpansionFactor","num",.06],[[12,19],"initialRandomSeed","num",0],[20,"defaultWidthX","num",0],[21,"nominalWidthX","num",0],[19,"Subrs","offset",null]],t=null;function n(n){null===t&&(t=d.createTables(e)),d.call(this,t,n),this.subrsIndex=null}return n.prototype=Object.create(d.prototype),n}();t.CFFPrivateDict=p;var A={ISO_ADOBE:0,EXPERT:1,EXPERT_SUBSET:2},g=function(){return function(e,t,n,r){this.predefined=e,this.format=t,this.charset=n,this.raw=r}}();t.CFFCharset=g;var m=function(){return function(e,t,n,r){this.predefined=e,this.format=t,this.encoding=n,this.raw=r}}(),v=function(){function e(e,t){this.format=e,this.fdSelect=t}return e.prototype={getFDIndex:function(e){return e<0||e>=this.fdSelect.length?-1:this.fdSelect[e]}},e}();t.CFFFDSelect=v;var y=function(){function e(){this.offsets=Object.create(null)}return e.prototype={isTracking:function(e){return e in this.offsets},track:function(e,t){if(e in this.offsets)throw new r.FormatError(`Already tracking location of ${e}`);this.offsets[e]=t},offset:function(e){for(var t in this.offsets)this.offsets[t]+=e},setEntryLocation:function(e,t,n){if(!(e in this.offsets))throw new r.FormatError(`Not tracking location of ${e}`);for(var i=n.data,a=this.offsets[e],o=0,s=t.length;o<s;++o){var l=5*o+a,c=l+1,u=l+2,h=l+3,d=l+4;if(29!==i[l]||0!==i[c]||0!==i[u]||0!==i[h]||0!==i[d])throw new r.FormatError("writing to an offset that is not empty");var f=t[o];i[l]=29,i[c]=f>>24&255,i[u]=f>>16&255,i[h]=f>>8&255,i[d]=255&f}}},e}(),b=function(){function e(e){this.cff=e}return e.prototype={compile:function(){var e=this.cff,t={data:[],length:0,add:function(e){this.data=this.data.concat(e),this.length=this.data.length}},n=this.compileHeader(e.header);t.add(n);var i=this.compileNameIndex(e.names);if(t.add(i),e.isCIDFont&&e.topDict.hasName("FontMatrix")){var a=e.topDict.getByName("FontMatrix");e.topDict.removeByName("FontMatrix");for(var o=0,s=e.fdArray.length;o<s;o++){var l=e.fdArray[o],c=a.slice(0);l.hasName("FontMatrix")&&(c=r.Util.transform(c,l.getByName("FontMatrix"))),l.setByName("FontMatrix",c)}}e.topDict.setByName("charset",0);var u=this.compileTopDicts([e.topDict],t.length,e.isCIDFont);t.add(u.output);var h=u.trackers[0],d=this.compileStringIndex(e.strings.strings);t.add(d);var f=this.compileIndex(e.globalSubrIndex);if(t.add(f),e.encoding&&e.topDict.hasName("Encoding"))if(e.encoding.predefined)h.setEntryLocation("Encoding",[e.encoding.format],t);else{var p=this.compileEncoding(e.encoding);h.setEntryLocation("Encoding",[t.length],t),t.add(p)}var A=this.compileCharset(e.charset,e.charStrings.count,e.strings,e.isCIDFont);h.setEntryLocation("charset",[t.length],t),t.add(A);var g=this.compileCharStrings(e.charStrings);if(h.setEntryLocation("CharStrings",[t.length],t),t.add(g),e.isCIDFont){h.setEntryLocation("FDSelect",[t.length],t);var m=this.compileFDSelect(e.fdSelect);t.add(m),u=this.compileTopDicts(e.fdArray,t.length,!0),h.setEntryLocation("FDArray",[t.length],t),t.add(u.output);var v=u.trackers;this.compilePrivateDicts(e.fdArray,v,t)}return this.compilePrivateDicts([e.topDict],[h],t),t.add([0]),t.data},encodeNumber:function(e){return parseFloat(e)!==parseInt(e,10)||isNaN(e)?this.encodeFloat(e):this.encodeInteger(e)},encodeFloat:function(e){var t=e.toString(),n=/\.(\d*?)(?:9{5,20}|0{5,20})\d{0,2}(?:e(.+)|$)/.exec(t);if(n){var r=parseFloat("1e"+((n[2]?+n[2]:0)+n[1].length));t=(Math.round(e*r)/r).toString()}var i,a,o="";for(i=0,a=t.length;i<a;++i){var s=t[i];o+="e"===s?"-"===t[++i]?"c":"b":"."===s?"a":"-"===s?"e":s}var l=[30];for(i=0,a=(o+=1&o.length?"f":"ff").length;i<a;i+=2)l.push(parseInt(o.substring(i,i+2),16));return l},encodeInteger:function(e){return e>=-107&&e<=107?[e+139]:e>=108&&e<=1131?[247+((e-=108)>>8),255&e]:e>=-1131&&e<=-108?[251+((e=-e-108)>>8),255&e]:e>=-32768&&e<=32767?[28,e>>8&255,255&e]:[29,e>>24&255,e>>16&255,e>>8&255,255&e]},compileHeader:function(e){return[e.major,e.minor,e.hdrSize,e.offSize]},compileNameIndex:function(e){for(var t=new h,n=0,i=e.length;n<i;++n){for(var a=e[n],o=Math.min(a.length,127),s=new Array(o),l=0;l<o;l++){var c=a[l];(c<"!"||c>"~"||"["===c||"]"===c||"("===c||")"===c||"{"===c||"}"===c||"<"===c||">"===c||"/"===c||"%"===c)&&(c="_"),s[l]=c}""===(s=s.join(""))&&(s="Bad_Font_Name"),t.add((0,r.stringToBytes)(s))}return this.compileIndex(t)},compileTopDicts:function(e,t,n){for(var r=[],i=new h,a=0,o=e.length;a<o;++a){var s=e[a];n&&(s.removeByName("CIDFontVersion"),s.removeByName("CIDFontRevision"),s.removeByName("CIDFontType"),s.removeByName("CIDCount"),s.removeByName("UIDBase"));var l=new y,c=this.compileDict(s,l);r.push(l),i.add(c),l.offset(t)}return{trackers:r,output:i=this.compileIndex(i,r)}},compilePrivateDicts:function(e,t,n){for(var i=0,a=e.length;i<a;++i){var o=e[i],s=o.privateDict;if(!s||!o.hasName("Private"))throw new r.FormatError("There must be a private dictionary.");var l=new y,c=this.compileDict(s,l),u=n.length;if(l.offset(u),c.length||(u=0),t[i].setEntryLocation("Private",[c.length,u],n),n.add(c),s.subrsIndex&&s.hasName("Subrs")){var h=this.compileIndex(s.subrsIndex);l.setEntryLocation("Subrs",[c.length],n),n.add(h)}}},compileDict:function(e,t){for(var n=[],i=e.order,a=0;a<i.length;++a){var o=i[a];if(o in e.values){var s=e.values[o],l=e.types[o];if(Array.isArray(l)||(l=[l]),Array.isArray(s)||(s=[s]),0!==s.length){for(var c=0,u=l.length;c<u;++c){var h=l[c],d=s[c];switch(h){case"num":case"sid":n=n.concat(this.encodeNumber(d));break;case"offset":var f=e.keyToNameMap[o];t.isTracking(f)||t.track(f,n.length),n=n.concat([29,0,0,0,0]);break;case"array":case"delta":n=n.concat(this.encodeNumber(d));for(var p=1,A=s.length;p<A;++p)n=n.concat(this.encodeNumber(s[p]));break;default:throw new r.FormatError(`Unknown data type of ${h}`)}}n=n.concat(e.opcodes[o])}}}return n},compileStringIndex:function(e){for(var t=new h,n=0,i=e.length;n<i;++n)t.add((0,r.stringToBytes)(e[n]));return this.compileIndex(t)},compileGlobalSubrIndex:function(){var e=this.cff.globalSubrIndex;this.out.writeByteArray(this.compileIndex(e))},compileCharStrings:function(e){for(var t=new h,n=0;n<e.count;n++){var r=e.get(n);0!==r.length?t.add(r):t.add(new Uint8Array([139,14]))}return this.compileIndex(t)},compileCharset:function(e,t,n,i){let a;const o=t-1;if(i)a=new Uint8Array([2,0,0,o>>8&255,255&o]);else{(a=new Uint8Array(1+2*o))[0]=0;let t=0;const i=e.charset.length;let s=!1;for(let o=1;o<a.length;o+=2){let l=0;if(t<i){const i=e.charset[t++];-1===(l=n.getSID(i))&&(l=0,s||(s=!0,(0,r.warn)(`Couldn't find ${i} in CFF strings`)))}a[o]=l>>8&255,a[o+1]=255&l}}return this.compileTypedArray(a)},compileEncoding:function(e){return this.compileTypedArray(e.raw)},compileFDSelect:function(e){const t=e.format;let n,r;switch(t){case 0:for((n=new Uint8Array(1+e.fdSelect.length))[0]=t,r=0;r<e.fdSelect.length;r++)n[r+1]=e.fdSelect[r];break;case 3:const i=0;let a=e.fdSelect[0];const o=[t,0,0,i>>8&255,255&i,a];for(r=1;r<e.fdSelect.length;r++){const t=e.fdSelect[r];t!==a&&(o.push(r>>8&255,255&r,t),a=t)}const s=(o.length-3)/3;o[1]=s>>8&255,o[2]=255&s,o.push(r>>8&255,255&r),n=new Uint8Array(o)}return this.compileTypedArray(n)},compileTypedArray:function(e){for(var t=[],n=0,r=e.length;n<r;++n)t[n]=e[n];return t},compileIndex:function(e,t){t=t||[];var n=e.objects,r=n.length;if(0===r)return[0,0,0];var i,a,o=[r>>8&255,255&r],s=1;for(i=0;i<r;++i)s+=n[i].length;a=s<256?1:s<65536?2:s<16777216?3:4,o.push(a);var l=1;for(i=0;i<r+1;i++)1===a?o.push(255&l):2===a?o.push(l>>8&255,255&l):3===a?o.push(l>>16&255,l>>8&255,255&l):o.push(l>>>24&255,l>>16&255,l>>8&255,255&l),n[i]&&(l+=n[i].length);for(i=0;i<r;i++){t[i]&&t[i].offset(o.length);for(var c=0,u=n[i].length;c<u;c++)o.push(n[i][c])}return o}},e}();t.CFFCompiler=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExpertSubsetCharset=t.ExpertCharset=t.ISOAdobeCharset=void 0;t.ISOAdobeCharset=[".notdef","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","endash","dagger","daggerdbl","periodcentered","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","questiondown","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","ring","cedilla","hungarumlaut","ogonek","caron","emdash","AE","ordfeminine","Lslash","Oslash","OE","ordmasculine","ae","dotlessi","lslash","oslash","oe","germandbls","onesuperior","logicalnot","mu","trademark","Eth","onehalf","plusminus","Thorn","onequarter","divide","brokenbar","degree","thorn","threequarters","twosuperior","registered","minus","eth","multiply","threesuperior","copyright","Aacute","Acircumflex","Adieresis","Agrave","Aring","Atilde","Ccedilla","Eacute","Ecircumflex","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Ntilde","Oacute","Ocircumflex","Odieresis","Ograve","Otilde","Scaron","Uacute","Ucircumflex","Udieresis","Ugrave","Yacute","Ydieresis","Zcaron","aacute","acircumflex","adieresis","agrave","aring","atilde","ccedilla","eacute","ecircumflex","edieresis","egrave","iacute","icircumflex","idieresis","igrave","ntilde","oacute","ocircumflex","odieresis","ograve","otilde","scaron","uacute","ucircumflex","udieresis","ugrave","yacute","ydieresis","zcaron"];t.ExpertCharset=[".notdef","space","exclamsmall","Hungarumlautsmall","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","commasuperior","threequartersemdash","periodsuperior","questionsmall","asuperior","bsuperior","centsuperior","dsuperior","esuperior","isuperior","lsuperior","msuperior","nsuperior","osuperior","rsuperior","ssuperior","tsuperior","ff","fi","fl","ffi","ffl","parenleftinferior","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","exclamdownsmall","centoldstyle","Lslashsmall","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","Dotaccentsmall","Macronsmall","figuredash","hypheninferior","Ogoneksmall","Ringsmall","Cedillasmall","onequarter","onehalf","threequarters","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","zerosuperior","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall"];t.ExpertSubsetCharset=[".notdef","space","dollaroldstyle","dollarsuperior","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","commasuperior","threequartersemdash","periodsuperior","asuperior","bsuperior","centsuperior","dsuperior","esuperior","isuperior","lsuperior","msuperior","nsuperior","osuperior","rsuperior","ssuperior","tsuperior","ff","fi","fl","ffi","ffl","parenleftinferior","parenrightinferior","hyphensuperior","colonmonetary","onefitted","rupiah","centoldstyle","figuredash","hypheninferior","onequarter","onehalf","threequarters","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","zerosuperior","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getEncoding=function(e){switch(e){case"WinAnsiEncoding":return s;case"StandardEncoding":return o;case"MacRomanEncoding":return a;case"SymbolSetEncoding":return l;case"ZapfDingbatsEncoding":return c;case"ExpertEncoding":return r;case"MacExpertEncoding":return i;default:return null}},t.ExpertEncoding=t.ZapfDingbatsEncoding=t.SymbolSetEncoding=t.MacRomanEncoding=t.StandardEncoding=t.WinAnsiEncoding=void 0;const r=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclamsmall","Hungarumlautsmall","","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","commasuperior","threequartersemdash","periodsuperior","questionsmall","","asuperior","bsuperior","centsuperior","dsuperior","esuperior","","","","isuperior","","","lsuperior","msuperior","nsuperior","osuperior","","","rsuperior","ssuperior","tsuperior","","ff","fi","fl","ffi","ffl","parenleftinferior","","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","exclamdownsmall","centoldstyle","Lslashsmall","","","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","","Dotaccentsmall","","","Macronsmall","","","figuredash","hypheninferior","","","Ogoneksmall","Ringsmall","Cedillasmall","","","","onequarter","onehalf","threequarters","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","","","zerosuperior","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall"];t.ExpertEncoding=r;const i=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclamsmall","Hungarumlautsmall","centoldstyle","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","","threequartersemdash","","questionsmall","","","","","Ethsmall","","","onequarter","onehalf","threequarters","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","","","","","","","ff","fi","fl","ffi","ffl","parenleftinferior","","parenrightinferior","Circumflexsmall","hypheninferior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","","","asuperior","centsuperior","","","","","Aacutesmall","Agravesmall","Acircumflexsmall","Adieresissmall","Atildesmall","Aringsmall","Ccedillasmall","Eacutesmall","Egravesmall","Ecircumflexsmall","Edieresissmall","Iacutesmall","Igravesmall","Icircumflexsmall","Idieresissmall","Ntildesmall","Oacutesmall","Ogravesmall","Ocircumflexsmall","Odieresissmall","Otildesmall","Uacutesmall","Ugravesmall","Ucircumflexsmall","Udieresissmall","","eightsuperior","fourinferior","threeinferior","sixinferior","eightinferior","seveninferior","Scaronsmall","","centinferior","twoinferior","","Dieresissmall","","Caronsmall","osuperior","fiveinferior","","commainferior","periodinferior","Yacutesmall","","dollarinferior","","","Thornsmall","","nineinferior","zeroinferior","Zcaronsmall","AEsmall","Oslashsmall","questiondownsmall","oneinferior","Lslashsmall","","","","","","","Cedillasmall","","","","","","OEsmall","figuredash","hyphensuperior","","","","","exclamdownsmall","","Ydieresissmall","","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","ninesuperior","zerosuperior","","esuperior","rsuperior","tsuperior","","","isuperior","ssuperior","dsuperior","","","","","","lsuperior","Ogoneksmall","Brevesmall","Macronsmall","bsuperior","nsuperior","msuperior","commasuperior","periodsuperior","Dotaccentsmall","Ringsmall","","","",""],a=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quotesingle","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","grave","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","","Adieresis","Aring","Ccedilla","Eacute","Ntilde","Odieresis","Udieresis","aacute","agrave","acircumflex","adieresis","atilde","aring","ccedilla","eacute","egrave","ecircumflex","edieresis","iacute","igrave","icircumflex","idieresis","ntilde","oacute","ograve","ocircumflex","odieresis","otilde","uacute","ugrave","ucircumflex","udieresis","dagger","degree","cent","sterling","section","bullet","paragraph","germandbls","registered","copyright","trademark","acute","dieresis","notequal","AE","Oslash","infinity","plusminus","lessequal","greaterequal","yen","mu","partialdiff","summation","product","pi","integral","ordfeminine","ordmasculine","Omega","ae","oslash","questiondown","exclamdown","logicalnot","radical","florin","approxequal","Delta","guillemotleft","guillemotright","ellipsis","space","Agrave","Atilde","Otilde","OE","oe","endash","emdash","quotedblleft","quotedblright","quoteleft","quoteright","divide","lozenge","ydieresis","Ydieresis","fraction","currency","guilsinglleft","guilsinglright","fi","fl","daggerdbl","periodcentered","quotesinglbase","quotedblbase","perthousand","Acircumflex","Ecircumflex","Aacute","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Oacute","Ocircumflex","apple","Ograve","Uacute","Ucircumflex","Ugrave","dotlessi","circumflex","tilde","macron","breve","dotaccent","ring","cedilla","hungarumlaut","ogonek","caron"];t.MacRomanEncoding=a;const o=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","","endash","dagger","daggerdbl","periodcentered","","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","","questiondown","","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","","ring","cedilla","","hungarumlaut","ogonek","caron","emdash","","","","","","","","","","","","","","","","","AE","","ordfeminine","","","","","Lslash","Oslash","OE","ordmasculine","","","","","","ae","","","","dotlessi","","","lslash","oslash","oe","germandbls","","","",""];t.StandardEncoding=o;const s=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quotesingle","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","grave","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","bullet","Euro","bullet","quotesinglbase","florin","quotedblbase","ellipsis","dagger","daggerdbl","circumflex","perthousand","Scaron","guilsinglleft","OE","bullet","Zcaron","bullet","bullet","quoteleft","quoteright","quotedblleft","quotedblright","bullet","endash","emdash","tilde","trademark","scaron","guilsinglright","oe","bullet","zcaron","Ydieresis","space","exclamdown","cent","sterling","currency","yen","brokenbar","section","dieresis","copyright","ordfeminine","guillemotleft","logicalnot","hyphen","registered","macron","degree","plusminus","twosuperior","threesuperior","acute","mu","paragraph","periodcentered","cedilla","onesuperior","ordmasculine","guillemotright","onequarter","onehalf","threequarters","questiondown","Agrave","Aacute","Acircumflex","Atilde","Adieresis","Aring","AE","Ccedilla","Egrave","Eacute","Ecircumflex","Edieresis","Igrave","Iacute","Icircumflex","Idieresis","Eth","Ntilde","Ograve","Oacute","Ocircumflex","Otilde","Odieresis","multiply","Oslash","Ugrave","Uacute","Ucircumflex","Udieresis","Yacute","Thorn","germandbls","agrave","aacute","acircumflex","atilde","adieresis","aring","ae","ccedilla","egrave","eacute","ecircumflex","edieresis","igrave","iacute","icircumflex","idieresis","eth","ntilde","ograve","oacute","ocircumflex","otilde","odieresis","divide","oslash","ugrave","uacute","ucircumflex","udieresis","yacute","thorn","ydieresis"];t.WinAnsiEncoding=s;const l=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","universal","numbersign","existential","percent","ampersand","suchthat","parenleft","parenright","asteriskmath","plus","comma","minus","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","congruent","Alpha","Beta","Chi","Delta","Epsilon","Phi","Gamma","Eta","Iota","theta1","Kappa","Lambda","Mu","Nu","Omicron","Pi","Theta","Rho","Sigma","Tau","Upsilon","sigma1","Omega","Xi","Psi","Zeta","bracketleft","therefore","bracketright","perpendicular","underscore","radicalex","alpha","beta","chi","delta","epsilon","phi","gamma","eta","iota","phi1","kappa","lambda","mu","nu","omicron","pi","theta","rho","sigma","tau","upsilon","omega1","omega","xi","psi","zeta","braceleft","bar","braceright","similar","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Euro","Upsilon1","minute","lessequal","fraction","infinity","florin","club","diamond","heart","spade","arrowboth","arrowleft","arrowup","arrowright","arrowdown","degree","plusminus","second","greaterequal","multiply","proportional","partialdiff","bullet","divide","notequal","equivalence","approxequal","ellipsis","arrowvertex","arrowhorizex","carriagereturn","aleph","Ifraktur","Rfraktur","weierstrass","circlemultiply","circleplus","emptyset","intersection","union","propersuperset","reflexsuperset","notsubset","propersubset","reflexsubset","element","notelement","angle","gradient","registerserif","copyrightserif","trademarkserif","product","radical","dotmath","logicalnot","logicaland","logicalor","arrowdblboth","arrowdblleft","arrowdblup","arrowdblright","arrowdbldown","lozenge","angleleft","registersans","copyrightsans","trademarksans","summation","parenlefttp","parenleftex","parenleftbt","bracketlefttp","bracketleftex","bracketleftbt","bracelefttp","braceleftmid","braceleftbt","braceex","","angleright","integral","integraltp","integralex","integralbt","parenrighttp","parenrightex","parenrightbt","bracketrighttp","bracketrightex","bracketrightbt","bracerighttp","bracerightmid","bracerightbt",""];t.SymbolSetEncoding=l;const c=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","a1","a2","a202","a3","a4","a5","a119","a118","a117","a11","a12","a13","a14","a15","a16","a105","a17","a18","a19","a20","a21","a22","a23","a24","a25","a26","a27","a28","a6","a7","a8","a9","a10","a29","a30","a31","a32","a33","a34","a35","a36","a37","a38","a39","a40","a41","a42","a43","a44","a45","a46","a47","a48","a49","a50","a51","a52","a53","a54","a55","a56","a57","a58","a59","a60","a61","a62","a63","a64","a65","a66","a67","a68","a69","a70","a71","a72","a73","a74","a203","a75","a204","a76","a77","a78","a79","a81","a82","a83","a84","a97","a98","a99","a100","","a89","a90","a93","a94","a91","a92","a205","a85","a206","a86","a87","a88","a95","a96","","","","","","","","","","","","","","","","","","","","a101","a102","a103","a104","a106","a107","a108","a112","a111","a110","a109","a120","a121","a122","a123","a124","a125","a126","a127","a128","a129","a130","a131","a132","a133","a134","a135","a136","a137","a138","a139","a140","a141","a142","a143","a144","a145","a146","a147","a148","a149","a150","a151","a152","a153","a154","a155","a156","a157","a158","a159","a160","a161","a163","a164","a196","a165","a192","a166","a167","a168","a169","a170","a171","a172","a173","a162","a174","a175","a176","a177","a178","a179","a193","a180","a199","a181","a200","a182","","a201","a183","a184","a197","a185","a194","a198","a186","a195","a187","a188","a189","a190","a191",""];t.ZapfDingbatsEncoding=c},function(e,t,n){var r=n(8).getLookupTableFactory,i=r(function(e){e.A=65,e.AE=198,e.AEacute=508,e.AEmacron=482,e.AEsmall=63462,e.Aacute=193,e.Aacutesmall=63457,e.Abreve=258,e.Abreveacute=7854,e.Abrevecyrillic=1232,e.Abrevedotbelow=7862,e.Abrevegrave=7856,e.Abrevehookabove=7858,e.Abrevetilde=7860,e.Acaron=461,e.Acircle=9398,e.Acircumflex=194,e.Acircumflexacute=7844,e.Acircumflexdotbelow=7852,e.Acircumflexgrave=7846,e.Acircumflexhookabove=7848,e.Acircumflexsmall=63458,e.Acircumflextilde=7850,e.Acute=63177,e.Acutesmall=63412,e.Acyrillic=1040,e.Adblgrave=512,e.Adieresis=196,e.Adieresiscyrillic=1234,e.Adieresismacron=478,e.Adieresissmall=63460,e.Adotbelow=7840,e.Adotmacron=480,e.Agrave=192,e.Agravesmall=63456,e.Ahookabove=7842,e.Aiecyrillic=1236,e.Ainvertedbreve=514,e.Alpha=913,e.Alphatonos=902,e.Amacron=256,e.Amonospace=65313,e.Aogonek=260,e.Aring=197,e.Aringacute=506,e.Aringbelow=7680,e.Aringsmall=63461,e.Asmall=63329,e.Atilde=195,e.Atildesmall=63459,e.Aybarmenian=1329,e.B=66,e.Bcircle=9399,e.Bdotaccent=7682,e.Bdotbelow=7684,e.Becyrillic=1041,e.Benarmenian=1330,e.Beta=914,e.Bhook=385,e.Blinebelow=7686,e.Bmonospace=65314,e.Brevesmall=63220,e.Bsmall=63330,e.Btopbar=386,e.C=67,e.Caarmenian=1342,e.Cacute=262,e.Caron=63178,e.Caronsmall=63221,e.Ccaron=268,e.Ccedilla=199,e.Ccedillaacute=7688,e.Ccedillasmall=63463,e.Ccircle=9400,e.Ccircumflex=264,e.Cdot=266,e.Cdotaccent=266,e.Cedillasmall=63416,e.Chaarmenian=1353,e.Cheabkhasiancyrillic=1212,e.Checyrillic=1063,e.Chedescenderabkhasiancyrillic=1214,e.Chedescendercyrillic=1206,e.Chedieresiscyrillic=1268,e.Cheharmenian=1347,e.Chekhakassiancyrillic=1227,e.Cheverticalstrokecyrillic=1208,e.Chi=935,e.Chook=391,e.Circumflexsmall=63222,e.Cmonospace=65315,e.Coarmenian=1361,e.Csmall=63331,e.D=68,e.DZ=497,e.DZcaron=452,e.Daarmenian=1332,e.Dafrican=393,e.Dcaron=270,e.Dcedilla=7696,e.Dcircle=9401,e.Dcircumflexbelow=7698,e.Dcroat=272,e.Ddotaccent=7690,e.Ddotbelow=7692,e.Decyrillic=1044,e.Deicoptic=1006,e.Delta=8710,e.Deltagreek=916,e.Dhook=394,e.Dieresis=63179,e.DieresisAcute=63180,e.DieresisGrave=63181,e.Dieresissmall=63400,e.Digammagreek=988,e.Djecyrillic=1026,e.Dlinebelow=7694,e.Dmonospace=65316,e.Dotaccentsmall=63223,e.Dslash=272,e.Dsmall=63332,e.Dtopbar=395,e.Dz=498,e.Dzcaron=453,e.Dzeabkhasiancyrillic=1248,e.Dzecyrillic=1029,e.Dzhecyrillic=1039,e.E=69,e.Eacute=201,e.Eacutesmall=63465,e.Ebreve=276,e.Ecaron=282,e.Ecedillabreve=7708,e.Echarmenian=1333,e.Ecircle=9402,e.Ecircumflex=202,e.Ecircumflexacute=7870,e.Ecircumflexbelow=7704,e.Ecircumflexdotbelow=7878,e.Ecircumflexgrave=7872,e.Ecircumflexhookabove=7874,e.Ecircumflexsmall=63466,e.Ecircumflextilde=7876,e.Ecyrillic=1028,e.Edblgrave=516,e.Edieresis=203,e.Edieresissmall=63467,e.Edot=278,e.Edotaccent=278,e.Edotbelow=7864,e.Efcyrillic=1060,e.Egrave=200,e.Egravesmall=63464,e.Eharmenian=1335,e.Ehookabove=7866,e.Eightroman=8551,e.Einvertedbreve=518,e.Eiotifiedcyrillic=1124,e.Elcyrillic=1051,e.Elevenroman=8554,e.Emacron=274,e.Emacronacute=7702,e.Emacrongrave=7700,e.Emcyrillic=1052,e.Emonospace=65317,e.Encyrillic=1053,e.Endescendercyrillic=1186,e.Eng=330,e.Enghecyrillic=1188,e.Enhookcyrillic=1223,e.Eogonek=280,e.Eopen=400,e.Epsilon=917,e.Epsilontonos=904,e.Ercyrillic=1056,e.Ereversed=398,e.Ereversedcyrillic=1069,e.Escyrillic=1057,e.Esdescendercyrillic=1194,e.Esh=425,e.Esmall=63333,e.Eta=919,e.Etarmenian=1336,e.Etatonos=905,e.Eth=208,e.Ethsmall=63472,e.Etilde=7868,e.Etildebelow=7706,e.Euro=8364,e.Ezh=439,e.Ezhcaron=494,e.Ezhreversed=440,e.F=70,e.Fcircle=9403,e.Fdotaccent=7710,e.Feharmenian=1366,e.Feicoptic=996,e.Fhook=401,e.Fitacyrillic=1138,e.Fiveroman=8548,e.Fmonospace=65318,e.Fourroman=8547,e.Fsmall=63334,e.G=71,e.GBsquare=13191,e.Gacute=500,e.Gamma=915,e.Gammaafrican=404,e.Gangiacoptic=1002,e.Gbreve=286,e.Gcaron=486,e.Gcedilla=290,e.Gcircle=9404,e.Gcircumflex=284,e.Gcommaaccent=290,e.Gdot=288,e.Gdotaccent=288,e.Gecyrillic=1043,e.Ghadarmenian=1346,e.Ghemiddlehookcyrillic=1172,e.Ghestrokecyrillic=1170,e.Gheupturncyrillic=1168,e.Ghook=403,e.Gimarmenian=1331,e.Gjecyrillic=1027,e.Gmacron=7712,e.Gmonospace=65319,e.Grave=63182,e.Gravesmall=63328,e.Gsmall=63335,e.Gsmallhook=667,e.Gstroke=484,e.H=72,e.H18533=9679,e.H18543=9642,e.H18551=9643,e.H22073=9633,e.HPsquare=13259,e.Haabkhasiancyrillic=1192,e.Hadescendercyrillic=1202,e.Hardsigncyrillic=1066,e.Hbar=294,e.Hbrevebelow=7722,e.Hcedilla=7720,e.Hcircle=9405,e.Hcircumflex=292,e.Hdieresis=7718,e.Hdotaccent=7714,e.Hdotbelow=7716,e.Hmonospace=65320,e.Hoarmenian=1344,e.Horicoptic=1e3,e.Hsmall=63336,e.Hungarumlaut=63183,e.Hungarumlautsmall=63224,e.Hzsquare=13200,e.I=73,e.IAcyrillic=1071,e.IJ=306,e.IUcyrillic=1070,e.Iacute=205,e.Iacutesmall=63469,e.Ibreve=300,e.Icaron=463,e.Icircle=9406,e.Icircumflex=206,e.Icircumflexsmall=63470,e.Icyrillic=1030,e.Idblgrave=520,e.Idieresis=207,e.Idieresisacute=7726,e.Idieresiscyrillic=1252,e.Idieresissmall=63471,e.Idot=304,e.Idotaccent=304,e.Idotbelow=7882,e.Iebrevecyrillic=1238,e.Iecyrillic=1045,e.Ifraktur=8465,e.Igrave=204,e.Igravesmall=63468,e.Ihookabove=7880,e.Iicyrillic=1048,e.Iinvertedbreve=522,e.Iishortcyrillic=1049,e.Imacron=298,e.Imacroncyrillic=1250,e.Imonospace=65321,e.Iniarmenian=1339,e.Iocyrillic=1025,e.Iogonek=302,e.Iota=921,e.Iotaafrican=406,e.Iotadieresis=938,e.Iotatonos=906,e.Ismall=63337,e.Istroke=407,e.Itilde=296,e.Itildebelow=7724,e.Izhitsacyrillic=1140,e.Izhitsadblgravecyrillic=1142,e.J=74,e.Jaarmenian=1345,e.Jcircle=9407,e.Jcircumflex=308,e.Jecyrillic=1032,e.Jheharmenian=1355,e.Jmonospace=65322,e.Jsmall=63338,e.K=75,e.KBsquare=13189,e.KKsquare=13261,e.Kabashkircyrillic=1184,e.Kacute=7728,e.Kacyrillic=1050,e.Kadescendercyrillic=1178,e.Kahookcyrillic=1219,e.Kappa=922,e.Kastrokecyrillic=1182,e.Kaverticalstrokecyrillic=1180,e.Kcaron=488,e.Kcedilla=310,e.Kcircle=9408,e.Kcommaaccent=310,e.Kdotbelow=7730,e.Keharmenian=1364,e.Kenarmenian=1343,e.Khacyrillic=1061,e.Kheicoptic=998,e.Khook=408,e.Kjecyrillic=1036,e.Klinebelow=7732,e.Kmonospace=65323,e.Koppacyrillic=1152,e.Koppagreek=990,e.Ksicyrillic=1134,e.Ksmall=63339,e.L=76,e.LJ=455,e.LL=63167,e.Lacute=313,e.Lambda=923,e.Lcaron=317,e.Lcedilla=315,e.Lcircle=9409,e.Lcircumflexbelow=7740,e.Lcommaaccent=315,e.Ldot=319,e.Ldotaccent=319,e.Ldotbelow=7734,e.Ldotbelowmacron=7736,e.Liwnarmenian=1340,e.Lj=456,e.Ljecyrillic=1033,e.Llinebelow=7738,e.Lmonospace=65324,e.Lslash=321,e.Lslashsmall=63225,e.Lsmall=63340,e.M=77,e.MBsquare=13190,e.Macron=63184,e.Macronsmall=63407,e.Macute=7742,e.Mcircle=9410,e.Mdotaccent=7744,e.Mdotbelow=7746,e.Menarmenian=1348,e.Mmonospace=65325,e.Msmall=63341,e.Mturned=412,e.Mu=924,e.N=78,e.NJ=458,e.Nacute=323,e.Ncaron=327,e.Ncedilla=325,e.Ncircle=9411,e.Ncircumflexbelow=7754,e.Ncommaaccent=325,e.Ndotaccent=7748,e.Ndotbelow=7750,e.Nhookleft=413,e.Nineroman=8552,e.Nj=459,e.Njecyrillic=1034,e.Nlinebelow=7752,e.Nmonospace=65326,e.Nowarmenian=1350,e.Nsmall=63342,e.Ntilde=209,e.Ntildesmall=63473,e.Nu=925,e.O=79,e.OE=338,e.OEsmall=63226,e.Oacute=211,e.Oacutesmall=63475,e.Obarredcyrillic=1256,e.Obarreddieresiscyrillic=1258,e.Obreve=334,e.Ocaron=465,e.Ocenteredtilde=415,e.Ocircle=9412,e.Ocircumflex=212,e.Ocircumflexacute=7888,e.Ocircumflexdotbelow=7896,e.Ocircumflexgrave=7890,e.Ocircumflexhookabove=7892,e.Ocircumflexsmall=63476,e.Ocircumflextilde=7894,e.Ocyrillic=1054,e.Odblacute=336,e.Odblgrave=524,e.Odieresis=214,e.Odieresiscyrillic=1254,e.Odieresissmall=63478,e.Odotbelow=7884,e.Ogoneksmall=63227,e.Ograve=210,e.Ogravesmall=63474,e.Oharmenian=1365,e.Ohm=8486,e.Ohookabove=7886,e.Ohorn=416,e.Ohornacute=7898,e.Ohorndotbelow=7906,e.Ohorngrave=7900,e.Ohornhookabove=7902,e.Ohorntilde=7904,e.Ohungarumlaut=336,e.Oi=418,e.Oinvertedbreve=526,e.Omacron=332,e.Omacronacute=7762,e.Omacrongrave=7760,e.Omega=8486,e.Omegacyrillic=1120,e.Omegagreek=937,e.Omegaroundcyrillic=1146,e.Omegatitlocyrillic=1148,e.Omegatonos=911,e.Omicron=927,e.Omicrontonos=908,e.Omonospace=65327,e.Oneroman=8544,e.Oogonek=490,e.Oogonekmacron=492,e.Oopen=390,e.Oslash=216,e.Oslashacute=510,e.Oslashsmall=63480,e.Osmall=63343,e.Ostrokeacute=510,e.Otcyrillic=1150,e.Otilde=213,e.Otildeacute=7756,e.Otildedieresis=7758,e.Otildesmall=63477,e.P=80,e.Pacute=7764,e.Pcircle=9413,e.Pdotaccent=7766,e.Pecyrillic=1055,e.Peharmenian=1354,e.Pemiddlehookcyrillic=1190,e.Phi=934,e.Phook=420,e.Pi=928,e.Piwrarmenian=1363,e.Pmonospace=65328,e.Psi=936,e.Psicyrillic=1136,e.Psmall=63344,e.Q=81,e.Qcircle=9414,e.Qmonospace=65329,e.Qsmall=63345,e.R=82,e.Raarmenian=1356,e.Racute=340,e.Rcaron=344,e.Rcedilla=342,e.Rcircle=9415,e.Rcommaaccent=342,e.Rdblgrave=528,e.Rdotaccent=7768,e.Rdotbelow=7770,e.Rdotbelowmacron=7772,e.Reharmenian=1360,e.Rfraktur=8476,e.Rho=929,e.Ringsmall=63228,e.Rinvertedbreve=530,e.Rlinebelow=7774,e.Rmonospace=65330,e.Rsmall=63346,e.Rsmallinverted=641,e.Rsmallinvertedsuperior=694,e.S=83,e.SF010000=9484,e.SF020000=9492,e.SF030000=9488,e.SF040000=9496,e.SF050000=9532,e.SF060000=9516,e.SF070000=9524,e.SF080000=9500,e.SF090000=9508,e.SF100000=9472,e.SF110000=9474,e.SF190000=9569,e.SF200000=9570,e.SF210000=9558,e.SF220000=9557,e.SF230000=9571,e.SF240000=9553,e.SF250000=9559,e.SF260000=9565,e.SF270000=9564,e.SF280000=9563,e.SF360000=9566,e.SF370000=9567,e.SF380000=9562,e.SF390000=9556,e.SF400000=9577,e.SF410000=9574,e.SF420000=9568,e.SF430000=9552,e.SF440000=9580,e.SF450000=9575,e.SF460000=9576,e.SF470000=9572,e.SF480000=9573,e.SF490000=9561,e.SF500000=9560,e.SF510000=9554,e.SF520000=9555,e.SF530000=9579,e.SF540000=9578,e.Sacute=346,e.Sacutedotaccent=7780,e.Sampigreek=992,e.Scaron=352,e.Scarondotaccent=7782,e.Scaronsmall=63229,e.Scedilla=350,e.Schwa=399,e.Schwacyrillic=1240,e.Schwadieresiscyrillic=1242,e.Scircle=9416,e.Scircumflex=348,e.Scommaaccent=536,e.Sdotaccent=7776,e.Sdotbelow=7778,e.Sdotbelowdotaccent=7784,e.Seharmenian=1357,e.Sevenroman=8550,e.Shaarmenian=1351,e.Shacyrillic=1064,e.Shchacyrillic=1065,e.Sheicoptic=994,e.Shhacyrillic=1210,e.Shimacoptic=1004,e.Sigma=931,e.Sixroman=8549,e.Smonospace=65331,e.Softsigncyrillic=1068,e.Ssmall=63347,e.Stigmagreek=986,e.T=84,e.Tau=932,e.Tbar=358,e.Tcaron=356,e.Tcedilla=354,e.Tcircle=9417,e.Tcircumflexbelow=7792,e.Tcommaaccent=354,e.Tdotaccent=7786,e.Tdotbelow=7788,e.Tecyrillic=1058,e.Tedescendercyrillic=1196,e.Tenroman=8553,e.Tetsecyrillic=1204,e.Theta=920,e.Thook=428,e.Thorn=222,e.Thornsmall=63486,e.Threeroman=8546,e.Tildesmall=63230,e.Tiwnarmenian=1359,e.Tlinebelow=7790,e.Tmonospace=65332,e.Toarmenian=1337,e.Tonefive=444,e.Tonesix=388,e.Tonetwo=423,e.Tretroflexhook=430,e.Tsecyrillic=1062,e.Tshecyrillic=1035,e.Tsmall=63348,e.Twelveroman=8555,e.Tworoman=8545,e.U=85,e.Uacute=218,e.Uacutesmall=63482,e.Ubreve=364,e.Ucaron=467,e.Ucircle=9418,e.Ucircumflex=219,e.Ucircumflexbelow=7798,e.Ucircumflexsmall=63483,e.Ucyrillic=1059,e.Udblacute=368,e.Udblgrave=532,e.Udieresis=220,e.Udieresisacute=471,e.Udieresisbelow=7794,e.Udieresiscaron=473,e.Udieresiscyrillic=1264,e.Udieresisgrave=475,e.Udieresismacron=469,e.Udieresissmall=63484,e.Udotbelow=7908,e.Ugrave=217,e.Ugravesmall=63481,e.Uhookabove=7910,e.Uhorn=431,e.Uhornacute=7912,e.Uhorndotbelow=7920,e.Uhorngrave=7914,e.Uhornhookabove=7916,e.Uhorntilde=7918,e.Uhungarumlaut=368,e.Uhungarumlautcyrillic=1266,e.Uinvertedbreve=534,e.Ukcyrillic=1144,e.Umacron=362,e.Umacroncyrillic=1262,e.Umacrondieresis=7802,e.Umonospace=65333,e.Uogonek=370,e.Upsilon=933,e.Upsilon1=978,e.Upsilonacutehooksymbolgreek=979,e.Upsilonafrican=433,e.Upsilondieresis=939,e.Upsilondieresishooksymbolgreek=980,e.Upsilonhooksymbol=978,e.Upsilontonos=910,e.Uring=366,e.Ushortcyrillic=1038,e.Usmall=63349,e.Ustraightcyrillic=1198,e.Ustraightstrokecyrillic=1200,e.Utilde=360,e.Utildeacute=7800,e.Utildebelow=7796,e.V=86,e.Vcircle=9419,e.Vdotbelow=7806,e.Vecyrillic=1042,e.Vewarmenian=1358,e.Vhook=434,e.Vmonospace=65334,e.Voarmenian=1352,e.Vsmall=63350,e.Vtilde=7804,e.W=87,e.Wacute=7810,e.Wcircle=9420,e.Wcircumflex=372,e.Wdieresis=7812,e.Wdotaccent=7814,e.Wdotbelow=7816,e.Wgrave=7808,e.Wmonospace=65335,e.Wsmall=63351,e.X=88,e.Xcircle=9421,e.Xdieresis=7820,e.Xdotaccent=7818,e.Xeharmenian=1341,e.Xi=926,e.Xmonospace=65336,e.Xsmall=63352,e.Y=89,e.Yacute=221,e.Yacutesmall=63485,e.Yatcyrillic=1122,e.Ycircle=9422,e.Ycircumflex=374,e.Ydieresis=376,e.Ydieresissmall=63487,e.Ydotaccent=7822,e.Ydotbelow=7924,e.Yericyrillic=1067,e.Yerudieresiscyrillic=1272,e.Ygrave=7922,e.Yhook=435,e.Yhookabove=7926,e.Yiarmenian=1349,e.Yicyrillic=1031,e.Yiwnarmenian=1362,e.Ymonospace=65337,e.Ysmall=63353,e.Ytilde=7928,e.Yusbigcyrillic=1130,e.Yusbigiotifiedcyrillic=1132,e.Yuslittlecyrillic=1126,e.Yuslittleiotifiedcyrillic=1128,e.Z=90,e.Zaarmenian=1334,e.Zacute=377,e.Zcaron=381,e.Zcaronsmall=63231,e.Zcircle=9423,e.Zcircumflex=7824,e.Zdot=379,e.Zdotaccent=379,e.Zdotbelow=7826,e.Zecyrillic=1047,e.Zedescendercyrillic=1176,e.Zedieresiscyrillic=1246,e.Zeta=918,e.Zhearmenian=1338,e.Zhebrevecyrillic=1217,e.Zhecyrillic=1046,e.Zhedescendercyrillic=1174,e.Zhedieresiscyrillic=1244,e.Zlinebelow=7828,e.Zmonospace=65338,e.Zsmall=63354,e.Zstroke=437,e.a=97,e.aabengali=2438,e.aacute=225,e.aadeva=2310,e.aagujarati=2694,e.aagurmukhi=2566,e.aamatragurmukhi=2622,e.aarusquare=13059,e.aavowelsignbengali=2494,e.aavowelsigndeva=2366,e.aavowelsigngujarati=2750,e.abbreviationmarkarmenian=1375,e.abbreviationsigndeva=2416,e.abengali=2437,e.abopomofo=12570,e.abreve=259,e.abreveacute=7855,e.abrevecyrillic=1233,e.abrevedotbelow=7863,e.abrevegrave=7857,e.abrevehookabove=7859,e.abrevetilde=7861,e.acaron=462,e.acircle=9424,e.acircumflex=226,e.acircumflexacute=7845,e.acircumflexdotbelow=7853,e.acircumflexgrave=7847,e.acircumflexhookabove=7849,e.acircumflextilde=7851,e.acute=180,e.acutebelowcmb=791,e.acutecmb=769,e.acutecomb=769,e.acutedeva=2388,e.acutelowmod=719,e.acutetonecmb=833,e.acyrillic=1072,e.adblgrave=513,e.addakgurmukhi=2673,e.adeva=2309,e.adieresis=228,e.adieresiscyrillic=1235,e.adieresismacron=479,e.adotbelow=7841,e.adotmacron=481,e.ae=230,e.aeacute=509,e.aekorean=12624,e.aemacron=483,e.afii00208=8213,e.afii08941=8356,e.afii10017=1040,e.afii10018=1041,e.afii10019=1042,e.afii10020=1043,e.afii10021=1044,e.afii10022=1045,e.afii10023=1025,e.afii10024=1046,e.afii10025=1047,e.afii10026=1048,e.afii10027=1049,e.afii10028=1050,e.afii10029=1051,e.afii10030=1052;e.afii10031=1053,e.afii10032=1054,e.afii10033=1055,e.afii10034=1056,e.afii10035=1057,e.afii10036=1058,e.afii10037=1059,e.afii10038=1060,e.afii10039=1061,e.afii10040=1062,e.afii10041=1063,e.afii10042=1064,e.afii10043=1065,e.afii10044=1066,e.afii10045=1067,e.afii10046=1068,e.afii10047=1069,e.afii10048=1070,e.afii10049=1071,e.afii10050=1168,e.afii10051=1026,e.afii10052=1027,e.afii10053=1028,e.afii10054=1029,e.afii10055=1030,e.afii10056=1031,e.afii10057=1032,e.afii10058=1033,e.afii10059=1034,e.afii10060=1035,e.afii10061=1036,e.afii10062=1038,e.afii10063=63172,e.afii10064=63173,e.afii10065=1072,e.afii10066=1073,e.afii10067=1074,e.afii10068=1075,e.afii10069=1076,e.afii10070=1077,e.afii10071=1105,e.afii10072=1078,e.afii10073=1079,e.afii10074=1080,e.afii10075=1081,e.afii10076=1082,e.afii10077=1083,e.afii10078=1084,e.afii10079=1085,e.afii10080=1086,e.afii10081=1087,e.afii10082=1088,e.afii10083=1089,e.afii10084=1090,e.afii10085=1091,e.afii10086=1092,e.afii10087=1093,e.afii10088=1094,e.afii10089=1095,e.afii10090=1096,e.afii10091=1097,e.afii10092=1098,e.afii10093=1099,e.afii10094=1100,e.afii10095=1101,e.afii10096=1102,e.afii10097=1103,e.afii10098=1169,e.afii10099=1106,e.afii10100=1107,e.afii10101=1108,e.afii10102=1109,e.afii10103=1110,e.afii10104=1111,e.afii10105=1112,e.afii10106=1113,e.afii10107=1114,e.afii10108=1115,e.afii10109=1116,e.afii10110=1118,e.afii10145=1039,e.afii10146=1122,e.afii10147=1138,e.afii10148=1140,e.afii10192=63174,e.afii10193=1119,e.afii10194=1123,e.afii10195=1139,e.afii10196=1141,e.afii10831=63175,e.afii10832=63176,e.afii10846=1241,e.afii299=8206,e.afii300=8207,e.afii301=8205,e.afii57381=1642,e.afii57388=1548,e.afii57392=1632,e.afii57393=1633,e.afii57394=1634,e.afii57395=1635,e.afii57396=1636,e.afii57397=1637,e.afii57398=1638,e.afii57399=1639,e.afii57400=1640,e.afii57401=1641,e.afii57403=1563,e.afii57407=1567,e.afii57409=1569,e.afii57410=1570,e.afii57411=1571,e.afii57412=1572,e.afii57413=1573,e.afii57414=1574,e.afii57415=1575,e.afii57416=1576,e.afii57417=1577,e.afii57418=1578,e.afii57419=1579,e.afii57420=1580,e.afii57421=1581,e.afii57422=1582,e.afii57423=1583,e.afii57424=1584,e.afii57425=1585,e.afii57426=1586,e.afii57427=1587,e.afii57428=1588,e.afii57429=1589,e.afii57430=1590,e.afii57431=1591,e.afii57432=1592,e.afii57433=1593,e.afii57434=1594,e.afii57440=1600,e.afii57441=1601,e.afii57442=1602,e.afii57443=1603,e.afii57444=1604,e.afii57445=1605,e.afii57446=1606,e.afii57448=1608,e.afii57449=1609,e.afii57450=1610,e.afii57451=1611,e.afii57452=1612,e.afii57453=1613,e.afii57454=1614,e.afii57455=1615,e.afii57456=1616,e.afii57457=1617,e.afii57458=1618,e.afii57470=1607,e.afii57505=1700,e.afii57506=1662,e.afii57507=1670,e.afii57508=1688,e.afii57509=1711,e.afii57511=1657,e.afii57512=1672,e.afii57513=1681,e.afii57514=1722,e.afii57519=1746,e.afii57534=1749,e.afii57636=8362,e.afii57645=1470,e.afii57658=1475,e.afii57664=1488,e.afii57665=1489,e.afii57666=1490,e.afii57667=1491,e.afii57668=1492,e.afii57669=1493,e.afii57670=1494,e.afii57671=1495,e.afii57672=1496,e.afii57673=1497,e.afii57674=1498,e.afii57675=1499,e.afii57676=1500,e.afii57677=1501,e.afii57678=1502,e.afii57679=1503,e.afii57680=1504,e.afii57681=1505,e.afii57682=1506,e.afii57683=1507,e.afii57684=1508,e.afii57685=1509,e.afii57686=1510,e.afii57687=1511,e.afii57688=1512,e.afii57689=1513,e.afii57690=1514,e.afii57694=64298,e.afii57695=64299,e.afii57700=64331,e.afii57705=64287,e.afii57716=1520,e.afii57717=1521,e.afii57718=1522,e.afii57723=64309,e.afii57793=1460,e.afii57794=1461,e.afii57795=1462,e.afii57796=1467,e.afii57797=1464,e.afii57798=1463,e.afii57799=1456,e.afii57800=1458,e.afii57801=1457,e.afii57802=1459,e.afii57803=1474,e.afii57804=1473,e.afii57806=1465,e.afii57807=1468,e.afii57839=1469,e.afii57841=1471,e.afii57842=1472,e.afii57929=700,e.afii61248=8453,e.afii61289=8467,e.afii61352=8470,e.afii61573=8236,e.afii61574=8237,e.afii61575=8238,e.afii61664=8204,e.afii63167=1645,e.afii64937=701,e.agrave=224,e.agujarati=2693,e.agurmukhi=2565,e.ahiragana=12354,e.ahookabove=7843,e.aibengali=2448,e.aibopomofo=12574,e.aideva=2320,e.aiecyrillic=1237,e.aigujarati=2704,e.aigurmukhi=2576,e.aimatragurmukhi=2632,e.ainarabic=1593,e.ainfinalarabic=65226,e.aininitialarabic=65227,e.ainmedialarabic=65228,e.ainvertedbreve=515,e.aivowelsignbengali=2504,e.aivowelsigndeva=2376,e.aivowelsigngujarati=2760,e.akatakana=12450,e.akatakanahalfwidth=65393,e.akorean=12623,e.alef=1488,e.alefarabic=1575,e.alefdageshhebrew=64304,e.aleffinalarabic=65166,e.alefhamzaabovearabic=1571,e.alefhamzaabovefinalarabic=65156,e.alefhamzabelowarabic=1573,e.alefhamzabelowfinalarabic=65160,e.alefhebrew=1488,e.aleflamedhebrew=64335,e.alefmaddaabovearabic=1570,e.alefmaddaabovefinalarabic=65154,e.alefmaksuraarabic=1609,e.alefmaksurafinalarabic=65264,e.alefmaksurainitialarabic=65267,e.alefmaksuramedialarabic=65268,e.alefpatahhebrew=64302,e.alefqamatshebrew=64303,e.aleph=8501,e.allequal=8780,e.alpha=945,e.alphatonos=940,e.amacron=257,e.amonospace=65345,e.ampersand=38,e.ampersandmonospace=65286,e.ampersandsmall=63270,e.amsquare=13250,e.anbopomofo=12578,e.angbopomofo=12580,e.angbracketleft=12296,e.angbracketright=12297,e.angkhankhuthai=3674,e.angle=8736,e.anglebracketleft=12296,e.anglebracketleftvertical=65087,e.anglebracketright=12297,e.anglebracketrightvertical=65088,e.angleleft=9001,e.angleright=9002,e.angstrom=8491,e.anoteleia=903,e.anudattadeva=2386,e.anusvarabengali=2434,e.anusvaradeva=2306,e.anusvaragujarati=2690,e.aogonek=261,e.apaatosquare=13056,e.aparen=9372,e.apostrophearmenian=1370,e.apostrophemod=700,e.apple=63743,e.approaches=8784,e.approxequal=8776,e.approxequalorimage=8786,e.approximatelyequal=8773,e.araeaekorean=12686,e.araeakorean=12685,e.arc=8978,e.arighthalfring=7834,e.aring=229,e.aringacute=507,e.aringbelow=7681,e.arrowboth=8596,e.arrowdashdown=8675,e.arrowdashleft=8672,e.arrowdashright=8674,e.arrowdashup=8673,e.arrowdblboth=8660,e.arrowdbldown=8659,e.arrowdblleft=8656,e.arrowdblright=8658,e.arrowdblup=8657,e.arrowdown=8595,e.arrowdownleft=8601,e.arrowdownright=8600,e.arrowdownwhite=8681,e.arrowheaddownmod=709,e.arrowheadleftmod=706,e.arrowheadrightmod=707,e.arrowheadupmod=708,e.arrowhorizex=63719,e.arrowleft=8592,e.arrowleftdbl=8656,e.arrowleftdblstroke=8653,e.arrowleftoverright=8646,e.arrowleftwhite=8678,e.arrowright=8594,e.arrowrightdblstroke=8655,e.arrowrightheavy=10142,e.arrowrightoverleft=8644,e.arrowrightwhite=8680,e.arrowtableft=8676,e.arrowtabright=8677,e.arrowup=8593,e.arrowupdn=8597,e.arrowupdnbse=8616,e.arrowupdownbase=8616,e.arrowupleft=8598,e.arrowupleftofdown=8645,e.arrowupright=8599,e.arrowupwhite=8679,e.arrowvertex=63718,e.asciicircum=94,e.asciicircummonospace=65342,e.asciitilde=126,e.asciitildemonospace=65374,e.ascript=593,e.ascriptturned=594,e.asmallhiragana=12353,e.asmallkatakana=12449,e.asmallkatakanahalfwidth=65383,e.asterisk=42,e.asteriskaltonearabic=1645,e.asteriskarabic=1645,e.asteriskmath=8727,e.asteriskmonospace=65290,e.asterisksmall=65121,e.asterism=8258,e.asuperior=63209,e.asymptoticallyequal=8771,e.at=64,e.atilde=227,e.atmonospace=65312,e.atsmall=65131,e.aturned=592,e.aubengali=2452,e.aubopomofo=12576,e.audeva=2324,e.augujarati=2708,e.augurmukhi=2580,e.aulengthmarkbengali=2519,e.aumatragurmukhi=2636,e.auvowelsignbengali=2508,e.auvowelsigndeva=2380,e.auvowelsigngujarati=2764,e.avagrahadeva=2365,e.aybarmenian=1377,e.ayin=1506,e.ayinaltonehebrew=64288,e.ayinhebrew=1506,e.b=98,e.babengali=2476,e.backslash=92,e.backslashmonospace=65340,e.badeva=2348,e.bagujarati=2732,e.bagurmukhi=2604,e.bahiragana=12400,e.bahtthai=3647,e.bakatakana=12496,e.bar=124,e.barmonospace=65372,e.bbopomofo=12549,e.bcircle=9425,e.bdotaccent=7683,e.bdotbelow=7685,e.beamedsixteenthnotes=9836,e.because=8757,e.becyrillic=1073,e.beharabic=1576,e.behfinalarabic=65168,e.behinitialarabic=65169,e.behiragana=12409,e.behmedialarabic=65170,e.behmeeminitialarabic=64671,e.behmeemisolatedarabic=64520,e.behnoonfinalarabic=64621,e.bekatakana=12505,e.benarmenian=1378,e.bet=1489,e.beta=946,e.betasymbolgreek=976,e.betdagesh=64305,e.betdageshhebrew=64305,e.bethebrew=1489,e.betrafehebrew=64332,e.bhabengali=2477,e.bhadeva=2349,e.bhagujarati=2733,e.bhagurmukhi=2605,e.bhook=595,e.bihiragana=12403,e.bikatakana=12499,e.bilabialclick=664,e.bindigurmukhi=2562,e.birusquare=13105,e.blackcircle=9679,e.blackdiamond=9670,e.blackdownpointingtriangle=9660,e.blackleftpointingpointer=9668,e.blackleftpointingtriangle=9664,e.blacklenticularbracketleft=12304,e.blacklenticularbracketleftvertical=65083,e.blacklenticularbracketright=12305,e.blacklenticularbracketrightvertical=65084,e.blacklowerlefttriangle=9699,e.blacklowerrighttriangle=9698,e.blackrectangle=9644,e.blackrightpointingpointer=9658,e.blackrightpointingtriangle=9654,e.blacksmallsquare=9642,e.blacksmilingface=9787,e.blacksquare=9632,e.blackstar=9733,e.blackupperlefttriangle=9700,e.blackupperrighttriangle=9701,e.blackuppointingsmalltriangle=9652,e.blackuppointingtriangle=9650,e.blank=9251,e.blinebelow=7687,e.block=9608,e.bmonospace=65346,e.bobaimaithai=3610,e.bohiragana=12412,e.bokatakana=12508,e.bparen=9373,e.bqsquare=13251,e.braceex=63732,e.braceleft=123,e.braceleftbt=63731,e.braceleftmid=63730,e.braceleftmonospace=65371,e.braceleftsmall=65115,e.bracelefttp=63729,e.braceleftvertical=65079,e.braceright=125,e.bracerightbt=63742,e.bracerightmid=63741,e.bracerightmonospace=65373,e.bracerightsmall=65116,e.bracerighttp=63740,e.bracerightvertical=65080,e.bracketleft=91,e.bracketleftbt=63728,e.bracketleftex=63727,e.bracketleftmonospace=65339,e.bracketlefttp=63726,e.bracketright=93,e.bracketrightbt=63739,e.bracketrightex=63738,e.bracketrightmonospace=65341,e.bracketrighttp=63737,e.breve=728,e.brevebelowcmb=814,e.brevecmb=774,e.breveinvertedbelowcmb=815,e.breveinvertedcmb=785,e.breveinverteddoublecmb=865,e.bridgebelowcmb=810,e.bridgeinvertedbelowcmb=826,e.brokenbar=166,e.bstroke=384,e.bsuperior=63210,e.btopbar=387,e.buhiragana=12406,e.bukatakana=12502,e.bullet=8226,e.bulletinverse=9688,e.bulletoperator=8729,e.bullseye=9678,e.c=99,e.caarmenian=1390,e.cabengali=2458,e.cacute=263,e.cadeva=2330,e.cagujarati=2714,e.cagurmukhi=2586,e.calsquare=13192,e.candrabindubengali=2433,e.candrabinducmb=784,e.candrabindudeva=2305,e.candrabindugujarati=2689,e.capslock=8682,e.careof=8453,e.caron=711,e.caronbelowcmb=812,e.caroncmb=780,e.carriagereturn=8629,e.cbopomofo=12568,e.ccaron=269,e.ccedilla=231,e.ccedillaacute=7689,e.ccircle=9426,e.ccircumflex=265,e.ccurl=597,e.cdot=267,e.cdotaccent=267,e.cdsquare=13253,e.cedilla=184,e.cedillacmb=807,e.cent=162,e.centigrade=8451,e.centinferior=63199,e.centmonospace=65504,e.centoldstyle=63394,e.centsuperior=63200,e.chaarmenian=1401,e.chabengali=2459,e.chadeva=2331,e.chagujarati=2715,e.chagurmukhi=2587,e.chbopomofo=12564,e.cheabkhasiancyrillic=1213,e.checkmark=10003,e.checyrillic=1095,e.chedescenderabkhasiancyrillic=1215,e.chedescendercyrillic=1207,e.chedieresiscyrillic=1269,e.cheharmenian=1395,e.chekhakassiancyrillic=1228,e.cheverticalstrokecyrillic=1209,e.chi=967,e.chieuchacirclekorean=12919,e.chieuchaparenkorean=12823,e.chieuchcirclekorean=12905,e.chieuchkorean=12618,e.chieuchparenkorean=12809,e.chochangthai=3594,e.chochanthai=3592,e.chochingthai=3593,e.chochoethai=3596,e.chook=392,e.cieucacirclekorean=12918,e.cieucaparenkorean=12822,e.cieuccirclekorean=12904,e.cieuckorean=12616,e.cieucparenkorean=12808,e.cieucuparenkorean=12828,e.circle=9675,e.circlecopyrt=169,e.circlemultiply=8855,e.circleot=8857,e.circleplus=8853,e.circlepostalmark=12342,e.circlewithlefthalfblack=9680,e.circlewithrighthalfblack=9681,e.circumflex=710,e.circumflexbelowcmb=813,e.circumflexcmb=770,e.clear=8999,e.clickalveolar=450,e.clickdental=448,e.clicklateral=449,e.clickretroflex=451,e.club=9827,e.clubsuitblack=9827,e.clubsuitwhite=9831,e.cmcubedsquare=13220,e.cmonospace=65347,e.cmsquaredsquare=13216,e.coarmenian=1409,e.colon=58,e.colonmonetary=8353,e.colonmonospace=65306,e.colonsign=8353,e.colonsmall=65109,e.colontriangularhalfmod=721,e.colontriangularmod=720,e.comma=44,e.commaabovecmb=787,e.commaaboverightcmb=789,e.commaaccent=63171,e.commaarabic=1548,e.commaarmenian=1373,e.commainferior=63201,e.commamonospace=65292,e.commareversedabovecmb=788,e.commareversedmod=701,e.commasmall=65104,e.commasuperior=63202,e.commaturnedabovecmb=786,e.commaturnedmod=699,e.compass=9788,e.congruent=8773,e.contourintegral=8750,e.control=8963,e.controlACK=6,e.controlBEL=7,e.controlBS=8,e.controlCAN=24,e.controlCR=13,e.controlDC1=17,e.controlDC2=18,e.controlDC3=19,e.controlDC4=20,e.controlDEL=127,e.controlDLE=16,e.controlEM=25,e.controlENQ=5,e.controlEOT=4,e.controlESC=27,e.controlETB=23,e.controlETX=3,e.controlFF=12,e.controlFS=28,e.controlGS=29,e.controlHT=9,e.controlLF=10,e.controlNAK=21,e.controlNULL=0,e.controlRS=30,e.controlSI=15,e.controlSO=14,e.controlSOT=2,e.controlSTX=1,e.controlSUB=26,e.controlSYN=22,e.controlUS=31,e.controlVT=11,e.copyright=169,e.copyrightsans=63721,e.copyrightserif=63193,e.cornerbracketleft=12300,e.cornerbracketlefthalfwidth=65378,e.cornerbracketleftvertical=65089,e.cornerbracketright=12301,e.cornerbracketrighthalfwidth=65379,e.cornerbracketrightvertical=65090,e.corporationsquare=13183,e.cosquare=13255,e.coverkgsquare=13254,e.cparen=9374,e.cruzeiro=8354,e.cstretched=663,e.curlyand=8911,e.curlyor=8910,e.currency=164,e.cyrBreve=63185,e.cyrFlex=63186,e.cyrbreve=63188,e.cyrflex=63189,e.d=100,e.daarmenian=1380,e.dabengali=2470,e.dadarabic=1590,e.dadeva=2342,e.dadfinalarabic=65214,e.dadinitialarabic=65215,e.dadmedialarabic=65216,e.dagesh=1468,e.dageshhebrew=1468,e.dagger=8224,e.daggerdbl=8225,e.dagujarati=2726,e.dagurmukhi=2598,e.dahiragana=12384,e.dakatakana=12480,e.dalarabic=1583,e.dalet=1491,e.daletdagesh=64307,e.daletdageshhebrew=64307,e.dalethebrew=1491,e.dalfinalarabic=65194,e.dammaarabic=1615,e.dammalowarabic=1615,e.dammatanaltonearabic=1612,e.dammatanarabic=1612,e.danda=2404,e.dargahebrew=1447,e.dargalefthebrew=1447,e.dasiapneumatacyrilliccmb=1157,e.dblGrave=63187,e.dblanglebracketleft=12298,e.dblanglebracketleftvertical=65085,e.dblanglebracketright=12299,e.dblanglebracketrightvertical=65086,e.dblarchinvertedbelowcmb=811,e.dblarrowleft=8660,e.dblarrowright=8658,e.dbldanda=2405,e.dblgrave=63190,e.dblgravecmb=783,e.dblintegral=8748,e.dbllowline=8215,e.dbllowlinecmb=819,e.dbloverlinecmb=831,e.dblprimemod=698,e.dblverticalbar=8214,e.dblverticallineabovecmb=782,e.dbopomofo=12553,e.dbsquare=13256,e.dcaron=271,e.dcedilla=7697,e.dcircle=9427,e.dcircumflexbelow=7699,e.dcroat=273,e.ddabengali=2465,e.ddadeva=2337,e.ddagujarati=2721,e.ddagurmukhi=2593,e.ddalarabic=1672,e.ddalfinalarabic=64393,e.dddhadeva=2396,e.ddhabengali=2466,e.ddhadeva=2338,e.ddhagujarati=2722,e.ddhagurmukhi=2594,e.ddotaccent=7691,e.ddotbelow=7693,e.decimalseparatorarabic=1643,e.decimalseparatorpersian=1643,e.decyrillic=1076,e.degree=176,e.dehihebrew=1453,e.dehiragana=12391,e.deicoptic=1007,e.dekatakana=12487,e.deleteleft=9003,e.deleteright=8998,e.delta=948,e.deltaturned=397,e.denominatorminusonenumeratorbengali=2552,e.dezh=676,e.dhabengali=2471,e.dhadeva=2343,e.dhagujarati=2727,e.dhagurmukhi=2599,e.dhook=599,e.dialytikatonos=901,e.dialytikatonoscmb=836,e.diamond=9830,e.diamondsuitwhite=9826,e.dieresis=168,e.dieresisacute=63191,e.dieresisbelowcmb=804,e.dieresiscmb=776,e.dieresisgrave=63192,e.dieresistonos=901,e.dihiragana=12386,e.dikatakana=12482,e.dittomark=12291,e.divide=247,e.divides=8739,e.divisionslash=8725,e.djecyrillic=1106,e.dkshade=9619,e.dlinebelow=7695,e.dlsquare=13207,e.dmacron=273,e.dmonospace=65348,e.dnblock=9604,e.dochadathai=3598,e.dodekthai=3604,e.dohiragana=12393,e.dokatakana=12489,e.dollar=36;e.dollarinferior=63203,e.dollarmonospace=65284,e.dollaroldstyle=63268,e.dollarsmall=65129,e.dollarsuperior=63204,e.dong=8363,e.dorusquare=13094,e.dotaccent=729,e.dotaccentcmb=775,e.dotbelowcmb=803,e.dotbelowcomb=803,e.dotkatakana=12539,e.dotlessi=305,e.dotlessj=63166,e.dotlessjstrokehook=644,e.dotmath=8901,e.dottedcircle=9676,e.doubleyodpatah=64287,e.doubleyodpatahhebrew=64287,e.downtackbelowcmb=798,e.downtackmod=725,e.dparen=9375,e.dsuperior=63211,e.dtail=598,e.dtopbar=396,e.duhiragana=12389,e.dukatakana=12485,e.dz=499,e.dzaltone=675,e.dzcaron=454,e.dzcurl=677,e.dzeabkhasiancyrillic=1249,e.dzecyrillic=1109,e.dzhecyrillic=1119,e.e=101,e.eacute=233,e.earth=9793,e.ebengali=2447,e.ebopomofo=12572,e.ebreve=277,e.ecandradeva=2317,e.ecandragujarati=2701,e.ecandravowelsigndeva=2373,e.ecandravowelsigngujarati=2757,e.ecaron=283,e.ecedillabreve=7709,e.echarmenian=1381,e.echyiwnarmenian=1415,e.ecircle=9428,e.ecircumflex=234,e.ecircumflexacute=7871,e.ecircumflexbelow=7705,e.ecircumflexdotbelow=7879,e.ecircumflexgrave=7873,e.ecircumflexhookabove=7875,e.ecircumflextilde=7877,e.ecyrillic=1108,e.edblgrave=517,e.edeva=2319,e.edieresis=235,e.edot=279,e.edotaccent=279,e.edotbelow=7865,e.eegurmukhi=2575,e.eematragurmukhi=2631,e.efcyrillic=1092,e.egrave=232,e.egujarati=2703,e.eharmenian=1383,e.ehbopomofo=12573,e.ehiragana=12360,e.ehookabove=7867,e.eibopomofo=12575,e.eight=56,e.eightarabic=1640,e.eightbengali=2542,e.eightcircle=9319,e.eightcircleinversesansserif=10129,e.eightdeva=2414,e.eighteencircle=9329,e.eighteenparen=9349,e.eighteenperiod=9369,e.eightgujarati=2798,e.eightgurmukhi=2670,e.eighthackarabic=1640,e.eighthangzhou=12328,e.eighthnotebeamed=9835,e.eightideographicparen=12839,e.eightinferior=8328,e.eightmonospace=65304,e.eightoldstyle=63288,e.eightparen=9339,e.eightperiod=9359,e.eightpersian=1784,e.eightroman=8567,e.eightsuperior=8312,e.eightthai=3672,e.einvertedbreve=519,e.eiotifiedcyrillic=1125,e.ekatakana=12456,e.ekatakanahalfwidth=65396,e.ekonkargurmukhi=2676,e.ekorean=12628,e.elcyrillic=1083,e.element=8712,e.elevencircle=9322,e.elevenparen=9342,e.elevenperiod=9362,e.elevenroman=8570,e.ellipsis=8230,e.ellipsisvertical=8942,e.emacron=275,e.emacronacute=7703,e.emacrongrave=7701,e.emcyrillic=1084,e.emdash=8212,e.emdashvertical=65073,e.emonospace=65349,e.emphasismarkarmenian=1371,e.emptyset=8709,e.enbopomofo=12579,e.encyrillic=1085,e.endash=8211,e.endashvertical=65074,e.endescendercyrillic=1187,e.eng=331,e.engbopomofo=12581,e.enghecyrillic=1189,e.enhookcyrillic=1224,e.enspace=8194,e.eogonek=281,e.eokorean=12627,e.eopen=603,e.eopenclosed=666,e.eopenreversed=604,e.eopenreversedclosed=606,e.eopenreversedhook=605,e.eparen=9376,e.epsilon=949,e.epsilontonos=941,e.equal=61,e.equalmonospace=65309,e.equalsmall=65126,e.equalsuperior=8316,e.equivalence=8801,e.erbopomofo=12582,e.ercyrillic=1088,e.ereversed=600,e.ereversedcyrillic=1101,e.escyrillic=1089,e.esdescendercyrillic=1195,e.esh=643,e.eshcurl=646,e.eshortdeva=2318,e.eshortvowelsigndeva=2374,e.eshreversedloop=426,e.eshsquatreversed=645,e.esmallhiragana=12359,e.esmallkatakana=12455,e.esmallkatakanahalfwidth=65386,e.estimated=8494,e.esuperior=63212,e.eta=951,e.etarmenian=1384,e.etatonos=942,e.eth=240,e.etilde=7869,e.etildebelow=7707,e.etnahtafoukhhebrew=1425,e.etnahtafoukhlefthebrew=1425,e.etnahtahebrew=1425,e.etnahtalefthebrew=1425,e.eturned=477,e.eukorean=12641,e.euro=8364,e.evowelsignbengali=2503,e.evowelsigndeva=2375,e.evowelsigngujarati=2759,e.exclam=33,e.exclamarmenian=1372,e.exclamdbl=8252,e.exclamdown=161,e.exclamdownsmall=63393,e.exclammonospace=65281,e.exclamsmall=63265,e.existential=8707,e.ezh=658,e.ezhcaron=495,e.ezhcurl=659,e.ezhreversed=441,e.ezhtail=442,e.f=102,e.fadeva=2398,e.fagurmukhi=2654,e.fahrenheit=8457,e.fathaarabic=1614,e.fathalowarabic=1614,e.fathatanarabic=1611,e.fbopomofo=12552,e.fcircle=9429,e.fdotaccent=7711,e.feharabic=1601,e.feharmenian=1414,e.fehfinalarabic=65234,e.fehinitialarabic=65235,e.fehmedialarabic=65236,e.feicoptic=997,e.female=9792,e.ff=64256,e.f_f=64256,e.ffi=64259,e.ffl=64260,e.fi=64257,e.fifteencircle=9326,e.fifteenparen=9346,e.fifteenperiod=9366,e.figuredash=8210,e.filledbox=9632,e.filledrect=9644,e.finalkaf=1498,e.finalkafdagesh=64314,e.finalkafdageshhebrew=64314,e.finalkafhebrew=1498,e.finalmem=1501,e.finalmemhebrew=1501,e.finalnun=1503,e.finalnunhebrew=1503,e.finalpe=1507,e.finalpehebrew=1507,e.finaltsadi=1509,e.finaltsadihebrew=1509,e.firsttonechinese=713,e.fisheye=9673,e.fitacyrillic=1139,e.five=53,e.fivearabic=1637,e.fivebengali=2539,e.fivecircle=9316,e.fivecircleinversesansserif=10126,e.fivedeva=2411,e.fiveeighths=8541,e.fivegujarati=2795,e.fivegurmukhi=2667,e.fivehackarabic=1637,e.fivehangzhou=12325,e.fiveideographicparen=12836,e.fiveinferior=8325,e.fivemonospace=65301,e.fiveoldstyle=63285,e.fiveparen=9336,e.fiveperiod=9356,e.fivepersian=1781,e.fiveroman=8564,e.fivesuperior=8309,e.fivethai=3669,e.fl=64258,e.florin=402,e.fmonospace=65350,e.fmsquare=13209,e.fofanthai=3615,e.fofathai=3613,e.fongmanthai=3663,e.forall=8704,e.four=52,e.fourarabic=1636,e.fourbengali=2538,e.fourcircle=9315,e.fourcircleinversesansserif=10125,e.fourdeva=2410,e.fourgujarati=2794,e.fourgurmukhi=2666,e.fourhackarabic=1636,e.fourhangzhou=12324,e.fourideographicparen=12835,e.fourinferior=8324,e.fourmonospace=65300,e.fournumeratorbengali=2551,e.fouroldstyle=63284,e.fourparen=9335,e.fourperiod=9355,e.fourpersian=1780,e.fourroman=8563,e.foursuperior=8308,e.fourteencircle=9325,e.fourteenparen=9345,e.fourteenperiod=9365,e.fourthai=3668,e.fourthtonechinese=715,e.fparen=9377,e.fraction=8260,e.franc=8355,e.g=103,e.gabengali=2455,e.gacute=501,e.gadeva=2327,e.gafarabic=1711,e.gaffinalarabic=64403,e.gafinitialarabic=64404,e.gafmedialarabic=64405,e.gagujarati=2711,e.gagurmukhi=2583,e.gahiragana=12364,e.gakatakana=12460,e.gamma=947,e.gammalatinsmall=611,e.gammasuperior=736,e.gangiacoptic=1003,e.gbopomofo=12557,e.gbreve=287,e.gcaron=487,e.gcedilla=291,e.gcircle=9430,e.gcircumflex=285,e.gcommaaccent=291,e.gdot=289,e.gdotaccent=289,e.gecyrillic=1075,e.gehiragana=12370,e.gekatakana=12466,e.geometricallyequal=8785,e.gereshaccenthebrew=1436,e.gereshhebrew=1523,e.gereshmuqdamhebrew=1437,e.germandbls=223,e.gershayimaccenthebrew=1438,e.gershayimhebrew=1524,e.getamark=12307,e.ghabengali=2456,e.ghadarmenian=1394,e.ghadeva=2328,e.ghagujarati=2712,e.ghagurmukhi=2584,e.ghainarabic=1594,e.ghainfinalarabic=65230,e.ghaininitialarabic=65231,e.ghainmedialarabic=65232,e.ghemiddlehookcyrillic=1173,e.ghestrokecyrillic=1171,e.gheupturncyrillic=1169,e.ghhadeva=2394,e.ghhagurmukhi=2650,e.ghook=608,e.ghzsquare=13203,e.gihiragana=12366,e.gikatakana=12462,e.gimarmenian=1379,e.gimel=1490,e.gimeldagesh=64306,e.gimeldageshhebrew=64306,e.gimelhebrew=1490,e.gjecyrillic=1107,e.glottalinvertedstroke=446,e.glottalstop=660,e.glottalstopinverted=662,e.glottalstopmod=704,e.glottalstopreversed=661,e.glottalstopreversedmod=705,e.glottalstopreversedsuperior=740,e.glottalstopstroke=673,e.glottalstopstrokereversed=674,e.gmacron=7713,e.gmonospace=65351,e.gohiragana=12372,e.gokatakana=12468,e.gparen=9378,e.gpasquare=13228,e.gradient=8711,e.grave=96,e.gravebelowcmb=790,e.gravecmb=768,e.gravecomb=768,e.gravedeva=2387,e.gravelowmod=718,e.gravemonospace=65344,e.gravetonecmb=832,e.greater=62,e.greaterequal=8805,e.greaterequalorless=8923,e.greatermonospace=65310,e.greaterorequivalent=8819,e.greaterorless=8823,e.greateroverequal=8807,e.greatersmall=65125,e.gscript=609,e.gstroke=485,e.guhiragana=12368,e.guillemotleft=171,e.guillemotright=187,e.guilsinglleft=8249,e.guilsinglright=8250,e.gukatakana=12464,e.guramusquare=13080,e.gysquare=13257,e.h=104,e.haabkhasiancyrillic=1193,e.haaltonearabic=1729,e.habengali=2489,e.hadescendercyrillic=1203,e.hadeva=2361,e.hagujarati=2745,e.hagurmukhi=2617,e.haharabic=1581,e.hahfinalarabic=65186,e.hahinitialarabic=65187,e.hahiragana=12399,e.hahmedialarabic=65188,e.haitusquare=13098,e.hakatakana=12495,e.hakatakanahalfwidth=65418,e.halantgurmukhi=2637,e.hamzaarabic=1569,e.hamzalowarabic=1569,e.hangulfiller=12644,e.hardsigncyrillic=1098,e.harpoonleftbarbup=8636,e.harpoonrightbarbup=8640,e.hasquare=13258,e.hatafpatah=1458,e.hatafpatah16=1458,e.hatafpatah23=1458,e.hatafpatah2f=1458,e.hatafpatahhebrew=1458,e.hatafpatahnarrowhebrew=1458,e.hatafpatahquarterhebrew=1458,e.hatafpatahwidehebrew=1458,e.hatafqamats=1459,e.hatafqamats1b=1459,e.hatafqamats28=1459,e.hatafqamats34=1459,e.hatafqamatshebrew=1459,e.hatafqamatsnarrowhebrew=1459,e.hatafqamatsquarterhebrew=1459,e.hatafqamatswidehebrew=1459,e.hatafsegol=1457,e.hatafsegol17=1457,e.hatafsegol24=1457,e.hatafsegol30=1457,e.hatafsegolhebrew=1457,e.hatafsegolnarrowhebrew=1457,e.hatafsegolquarterhebrew=1457,e.hatafsegolwidehebrew=1457,e.hbar=295,e.hbopomofo=12559,e.hbrevebelow=7723,e.hcedilla=7721,e.hcircle=9431,e.hcircumflex=293,e.hdieresis=7719,e.hdotaccent=7715,e.hdotbelow=7717,e.he=1492,e.heart=9829,e.heartsuitblack=9829,e.heartsuitwhite=9825,e.hedagesh=64308,e.hedageshhebrew=64308,e.hehaltonearabic=1729,e.heharabic=1607,e.hehebrew=1492,e.hehfinalaltonearabic=64423,e.hehfinalalttwoarabic=65258,e.hehfinalarabic=65258,e.hehhamzaabovefinalarabic=64421,e.hehhamzaaboveisolatedarabic=64420,e.hehinitialaltonearabic=64424,e.hehinitialarabic=65259,e.hehiragana=12408,e.hehmedialaltonearabic=64425,e.hehmedialarabic=65260,e.heiseierasquare=13179,e.hekatakana=12504,e.hekatakanahalfwidth=65421,e.hekutaarusquare=13110,e.henghook=615,e.herutusquare=13113,e.het=1495,e.hethebrew=1495,e.hhook=614,e.hhooksuperior=689,e.hieuhacirclekorean=12923,e.hieuhaparenkorean=12827,e.hieuhcirclekorean=12909,e.hieuhkorean=12622,e.hieuhparenkorean=12813,e.hihiragana=12402,e.hikatakana=12498,e.hikatakanahalfwidth=65419,e.hiriq=1460,e.hiriq14=1460,e.hiriq21=1460,e.hiriq2d=1460,e.hiriqhebrew=1460,e.hiriqnarrowhebrew=1460,e.hiriqquarterhebrew=1460,e.hiriqwidehebrew=1460,e.hlinebelow=7830,e.hmonospace=65352,e.hoarmenian=1392,e.hohipthai=3627,e.hohiragana=12411,e.hokatakana=12507,e.hokatakanahalfwidth=65422,e.holam=1465,e.holam19=1465,e.holam26=1465,e.holam32=1465,e.holamhebrew=1465,e.holamnarrowhebrew=1465,e.holamquarterhebrew=1465,e.holamwidehebrew=1465,e.honokhukthai=3630,e.hookabovecomb=777,e.hookcmb=777,e.hookpalatalizedbelowcmb=801,e.hookretroflexbelowcmb=802,e.hoonsquare=13122,e.horicoptic=1001,e.horizontalbar=8213,e.horncmb=795,e.hotsprings=9832,e.house=8962,e.hparen=9379,e.hsuperior=688,e.hturned=613,e.huhiragana=12405,e.huiitosquare=13107,e.hukatakana=12501,e.hukatakanahalfwidth=65420,e.hungarumlaut=733,e.hungarumlautcmb=779,e.hv=405,e.hyphen=45,e.hypheninferior=63205,e.hyphenmonospace=65293,e.hyphensmall=65123,e.hyphensuperior=63206,e.hyphentwo=8208,e.i=105,e.iacute=237,e.iacyrillic=1103,e.ibengali=2439,e.ibopomofo=12583,e.ibreve=301,e.icaron=464,e.icircle=9432,e.icircumflex=238,e.icyrillic=1110,e.idblgrave=521,e.ideographearthcircle=12943,e.ideographfirecircle=12939,e.ideographicallianceparen=12863,e.ideographiccallparen=12858,e.ideographiccentrecircle=12965,e.ideographicclose=12294,e.ideographiccomma=12289,e.ideographiccommaleft=65380,e.ideographiccongratulationparen=12855,e.ideographiccorrectcircle=12963,e.ideographicearthparen=12847,e.ideographicenterpriseparen=12861,e.ideographicexcellentcircle=12957,e.ideographicfestivalparen=12864,e.ideographicfinancialcircle=12950,e.ideographicfinancialparen=12854,e.ideographicfireparen=12843,e.ideographichaveparen=12850,e.ideographichighcircle=12964,e.ideographiciterationmark=12293,e.ideographiclaborcircle=12952,e.ideographiclaborparen=12856,e.ideographicleftcircle=12967,e.ideographiclowcircle=12966,e.ideographicmedicinecircle=12969,e.ideographicmetalparen=12846,e.ideographicmoonparen=12842,e.ideographicnameparen=12852,e.ideographicperiod=12290,e.ideographicprintcircle=12958,e.ideographicreachparen=12867,e.ideographicrepresentparen=12857,e.ideographicresourceparen=12862,e.ideographicrightcircle=12968,e.ideographicsecretcircle=12953,e.ideographicselfparen=12866,e.ideographicsocietyparen=12851,e.ideographicspace=12288,e.ideographicspecialparen=12853,e.ideographicstockparen=12849,e.ideographicstudyparen=12859,e.ideographicsunparen=12848,e.ideographicsuperviseparen=12860,e.ideographicwaterparen=12844,e.ideographicwoodparen=12845,e.ideographiczero=12295,e.ideographmetalcircle=12942,e.ideographmooncircle=12938,e.ideographnamecircle=12948,e.ideographsuncircle=12944,e.ideographwatercircle=12940,e.ideographwoodcircle=12941,e.ideva=2311,e.idieresis=239,e.idieresisacute=7727,e.idieresiscyrillic=1253,e.idotbelow=7883,e.iebrevecyrillic=1239,e.iecyrillic=1077,e.ieungacirclekorean=12917,e.ieungaparenkorean=12821,e.ieungcirclekorean=12903,e.ieungkorean=12615,e.ieungparenkorean=12807,e.igrave=236,e.igujarati=2695,e.igurmukhi=2567,e.ihiragana=12356,e.ihookabove=7881,e.iibengali=2440,e.iicyrillic=1080,e.iideva=2312,e.iigujarati=2696,e.iigurmukhi=2568,e.iimatragurmukhi=2624,e.iinvertedbreve=523,e.iishortcyrillic=1081,e.iivowelsignbengali=2496,e.iivowelsigndeva=2368,e.iivowelsigngujarati=2752,e.ij=307,e.ikatakana=12452,e.ikatakanahalfwidth=65394,e.ikorean=12643,e.ilde=732,e.iluyhebrew=1452,e.imacron=299,e.imacroncyrillic=1251,e.imageorapproximatelyequal=8787,e.imatragurmukhi=2623,e.imonospace=65353,e.increment=8710,e.infinity=8734,e.iniarmenian=1387,e.integral=8747,e.integralbottom=8993,e.integralbt=8993,e.integralex=63733,e.integraltop=8992,e.integraltp=8992,e.intersection=8745,e.intisquare=13061,e.invbullet=9688,e.invcircle=9689,e.invsmileface=9787,e.iocyrillic=1105,e.iogonek=303,e.iota=953,e.iotadieresis=970,e.iotadieresistonos=912,e.iotalatin=617,e.iotatonos=943,e.iparen=9380,e.irigurmukhi=2674,e.ismallhiragana=12355,e.ismallkatakana=12451,e.ismallkatakanahalfwidth=65384,e.issharbengali=2554,e.istroke=616,e.isuperior=63213,e.iterationhiragana=12445,e.iterationkatakana=12541,e.itilde=297,e.itildebelow=7725,e.iubopomofo=12585,e.iucyrillic=1102,e.ivowelsignbengali=2495,e.ivowelsigndeva=2367,e.ivowelsigngujarati=2751,e.izhitsacyrillic=1141,e.izhitsadblgravecyrillic=1143,e.j=106,e.jaarmenian=1393,e.jabengali=2460,e.jadeva=2332,e.jagujarati=2716,e.jagurmukhi=2588,e.jbopomofo=12560,e.jcaron=496,e.jcircle=9433,e.jcircumflex=309,e.jcrossedtail=669,e.jdotlessstroke=607,e.jecyrillic=1112,e.jeemarabic=1580,e.jeemfinalarabic=65182,e.jeeminitialarabic=65183,e.jeemmedialarabic=65184,e.jeharabic=1688,e.jehfinalarabic=64395,e.jhabengali=2461,e.jhadeva=2333,e.jhagujarati=2717,e.jhagurmukhi=2589,e.jheharmenian=1403,e.jis=12292,e.jmonospace=65354,e.jparen=9381,e.jsuperior=690,e.k=107,e.kabashkircyrillic=1185,e.kabengali=2453,e.kacute=7729,e.kacyrillic=1082,e.kadescendercyrillic=1179,e.kadeva=2325,e.kaf=1499,e.kafarabic=1603,e.kafdagesh=64315,e.kafdageshhebrew=64315,e.kaffinalarabic=65242,e.kafhebrew=1499,e.kafinitialarabic=65243,e.kafmedialarabic=65244,e.kafrafehebrew=64333,e.kagujarati=2709,e.kagurmukhi=2581,e.kahiragana=12363,e.kahookcyrillic=1220,e.kakatakana=12459,e.kakatakanahalfwidth=65398,e.kappa=954,e.kappasymbolgreek=1008,e.kapyeounmieumkorean=12657,e.kapyeounphieuphkorean=12676,e.kapyeounpieupkorean=12664,e.kapyeounssangpieupkorean=12665,e.karoriisquare=13069,e.kashidaautoarabic=1600,e.kashidaautonosidebearingarabic=1600,e.kasmallkatakana=12533,e.kasquare=13188,e.kasraarabic=1616,e.kasratanarabic=1613,e.kastrokecyrillic=1183,e.katahiraprolongmarkhalfwidth=65392,e.kaverticalstrokecyrillic=1181,e.kbopomofo=12558,e.kcalsquare=13193,e.kcaron=489,e.kcedilla=311,e.kcircle=9434,e.kcommaaccent=311,e.kdotbelow=7731,e.keharmenian=1412,e.kehiragana=12369,e.kekatakana=12465,e.kekatakanahalfwidth=65401,e.kenarmenian=1391,e.kesmallkatakana=12534,e.kgreenlandic=312,e.khabengali=2454,e.khacyrillic=1093,e.khadeva=2326,e.khagujarati=2710,e.khagurmukhi=2582,e.khaharabic=1582,e.khahfinalarabic=65190,e.khahinitialarabic=65191,e.khahmedialarabic=65192,e.kheicoptic=999,e.khhadeva=2393,e.khhagurmukhi=2649,e.khieukhacirclekorean=12920,e.khieukhaparenkorean=12824,e.khieukhcirclekorean=12906,e.khieukhkorean=12619,e.khieukhparenkorean=12810,e.khokhaithai=3586,e.khokhonthai=3589,e.khokhuatthai=3587,e.khokhwaithai=3588,e.khomutthai=3675,e.khook=409,e.khorakhangthai=3590,e.khzsquare=13201,e.kihiragana=12365,e.kikatakana=12461,e.kikatakanahalfwidth=65399,e.kiroguramusquare=13077,e.kiromeetorusquare=13078,e.kirosquare=13076,e.kiyeokacirclekorean=12910,e.kiyeokaparenkorean=12814,e.kiyeokcirclekorean=12896,e.kiyeokkorean=12593,e.kiyeokparenkorean=12800,e.kiyeoksioskorean=12595,e.kjecyrillic=1116,e.klinebelow=7733,e.klsquare=13208,e.kmcubedsquare=13222;e.kmonospace=65355,e.kmsquaredsquare=13218,e.kohiragana=12371,e.kohmsquare=13248,e.kokaithai=3585,e.kokatakana=12467,e.kokatakanahalfwidth=65402,e.kooposquare=13086,e.koppacyrillic=1153,e.koreanstandardsymbol=12927,e.koroniscmb=835,e.kparen=9382,e.kpasquare=13226,e.ksicyrillic=1135,e.ktsquare=13263,e.kturned=670,e.kuhiragana=12367,e.kukatakana=12463,e.kukatakanahalfwidth=65400,e.kvsquare=13240,e.kwsquare=13246,e.l=108,e.labengali=2482,e.lacute=314,e.ladeva=2354,e.lagujarati=2738,e.lagurmukhi=2610,e.lakkhangyaothai=3653,e.lamaleffinalarabic=65276,e.lamalefhamzaabovefinalarabic=65272,e.lamalefhamzaaboveisolatedarabic=65271,e.lamalefhamzabelowfinalarabic=65274,e.lamalefhamzabelowisolatedarabic=65273,e.lamalefisolatedarabic=65275,e.lamalefmaddaabovefinalarabic=65270,e.lamalefmaddaaboveisolatedarabic=65269,e.lamarabic=1604,e.lambda=955,e.lambdastroke=411,e.lamed=1500,e.lameddagesh=64316,e.lameddageshhebrew=64316,e.lamedhebrew=1500,e.lamfinalarabic=65246,e.lamhahinitialarabic=64714,e.laminitialarabic=65247,e.lamjeeminitialarabic=64713,e.lamkhahinitialarabic=64715,e.lamlamhehisolatedarabic=65010,e.lammedialarabic=65248,e.lammeemhahinitialarabic=64904,e.lammeeminitialarabic=64716,e.largecircle=9711,e.lbar=410,e.lbelt=620,e.lbopomofo=12556,e.lcaron=318,e.lcedilla=316,e.lcircle=9435,e.lcircumflexbelow=7741,e.lcommaaccent=316,e.ldot=320,e.ldotaccent=320,e.ldotbelow=7735,e.ldotbelowmacron=7737,e.leftangleabovecmb=794,e.lefttackbelowcmb=792,e.less=60,e.lessequal=8804,e.lessequalorgreater=8922,e.lessmonospace=65308,e.lessorequivalent=8818,e.lessorgreater=8822,e.lessoverequal=8806,e.lesssmall=65124,e.lezh=622,e.lfblock=9612,e.lhookretroflex=621,e.lira=8356,e.liwnarmenian=1388,e.lj=457,e.ljecyrillic=1113,e.ll=63168,e.lladeva=2355,e.llagujarati=2739,e.llinebelow=7739,e.llladeva=2356,e.llvocalicbengali=2529,e.llvocalicdeva=2401,e.llvocalicvowelsignbengali=2531,e.llvocalicvowelsigndeva=2403,e.lmiddletilde=619,e.lmonospace=65356,e.lmsquare=13264,e.lochulathai=3628,e.logicaland=8743,e.logicalnot=172,e.logicalnotreversed=8976,e.logicalor=8744,e.lolingthai=3621,e.longs=383,e.lowlinecenterline=65102,e.lowlinecmb=818,e.lowlinedashed=65101,e.lozenge=9674,e.lparen=9383,e.lslash=322,e.lsquare=8467,e.lsuperior=63214,e.ltshade=9617,e.luthai=3622,e.lvocalicbengali=2444,e.lvocalicdeva=2316,e.lvocalicvowelsignbengali=2530,e.lvocalicvowelsigndeva=2402,e.lxsquare=13267,e.m=109,e.mabengali=2478,e.macron=175,e.macronbelowcmb=817,e.macroncmb=772,e.macronlowmod=717,e.macronmonospace=65507,e.macute=7743,e.madeva=2350,e.magujarati=2734,e.magurmukhi=2606,e.mahapakhhebrew=1444,e.mahapakhlefthebrew=1444,e.mahiragana=12414,e.maichattawalowleftthai=63637,e.maichattawalowrightthai=63636,e.maichattawathai=3659,e.maichattawaupperleftthai=63635,e.maieklowleftthai=63628,e.maieklowrightthai=63627,e.maiekthai=3656,e.maiekupperleftthai=63626,e.maihanakatleftthai=63620,e.maihanakatthai=3633,e.maitaikhuleftthai=63625,e.maitaikhuthai=3655,e.maitholowleftthai=63631,e.maitholowrightthai=63630,e.maithothai=3657,e.maithoupperleftthai=63629,e.maitrilowleftthai=63634,e.maitrilowrightthai=63633,e.maitrithai=3658,e.maitriupperleftthai=63632,e.maiyamokthai=3654,e.makatakana=12510,e.makatakanahalfwidth=65423,e.male=9794,e.mansyonsquare=13127,e.maqafhebrew=1470,e.mars=9794,e.masoracirclehebrew=1455,e.masquare=13187,e.mbopomofo=12551,e.mbsquare=13268,e.mcircle=9436,e.mcubedsquare=13221,e.mdotaccent=7745,e.mdotbelow=7747,e.meemarabic=1605,e.meemfinalarabic=65250,e.meeminitialarabic=65251,e.meemmedialarabic=65252,e.meemmeeminitialarabic=64721,e.meemmeemisolatedarabic=64584,e.meetorusquare=13133,e.mehiragana=12417,e.meizierasquare=13182,e.mekatakana=12513,e.mekatakanahalfwidth=65426,e.mem=1502,e.memdagesh=64318,e.memdageshhebrew=64318,e.memhebrew=1502,e.menarmenian=1396,e.merkhahebrew=1445,e.merkhakefulahebrew=1446,e.merkhakefulalefthebrew=1446,e.merkhalefthebrew=1445,e.mhook=625,e.mhzsquare=13202,e.middledotkatakanahalfwidth=65381,e.middot=183,e.mieumacirclekorean=12914,e.mieumaparenkorean=12818,e.mieumcirclekorean=12900,e.mieumkorean=12609,e.mieumpansioskorean=12656,e.mieumparenkorean=12804,e.mieumpieupkorean=12654,e.mieumsioskorean=12655,e.mihiragana=12415,e.mikatakana=12511,e.mikatakanahalfwidth=65424,e.minus=8722,e.minusbelowcmb=800,e.minuscircle=8854,e.minusmod=727,e.minusplus=8723,e.minute=8242,e.miribaarusquare=13130,e.mirisquare=13129,e.mlonglegturned=624,e.mlsquare=13206,e.mmcubedsquare=13219,e.mmonospace=65357,e.mmsquaredsquare=13215,e.mohiragana=12418,e.mohmsquare=13249,e.mokatakana=12514,e.mokatakanahalfwidth=65427,e.molsquare=13270,e.momathai=3617,e.moverssquare=13223,e.moverssquaredsquare=13224,e.mparen=9384,e.mpasquare=13227,e.mssquare=13235,e.msuperior=63215,e.mturned=623,e.mu=181,e.mu1=181,e.muasquare=13186,e.muchgreater=8811,e.muchless=8810,e.mufsquare=13196,e.mugreek=956,e.mugsquare=13197,e.muhiragana=12416,e.mukatakana=12512,e.mukatakanahalfwidth=65425,e.mulsquare=13205,e.multiply=215,e.mumsquare=13211,e.munahhebrew=1443,e.munahlefthebrew=1443,e.musicalnote=9834,e.musicalnotedbl=9835,e.musicflatsign=9837,e.musicsharpsign=9839,e.mussquare=13234,e.muvsquare=13238,e.muwsquare=13244,e.mvmegasquare=13241,e.mvsquare=13239,e.mwmegasquare=13247,e.mwsquare=13245,e.n=110,e.nabengali=2472,e.nabla=8711,e.nacute=324,e.nadeva=2344,e.nagujarati=2728,e.nagurmukhi=2600,e.nahiragana=12394,e.nakatakana=12490,e.nakatakanahalfwidth=65413,e.napostrophe=329,e.nasquare=13185,e.nbopomofo=12555,e.nbspace=160,e.ncaron=328,e.ncedilla=326,e.ncircle=9437,e.ncircumflexbelow=7755,e.ncommaaccent=326,e.ndotaccent=7749,e.ndotbelow=7751,e.nehiragana=12397,e.nekatakana=12493,e.nekatakanahalfwidth=65416,e.newsheqelsign=8362,e.nfsquare=13195,e.ngabengali=2457,e.ngadeva=2329,e.ngagujarati=2713,e.ngagurmukhi=2585,e.ngonguthai=3591,e.nhiragana=12435,e.nhookleft=626,e.nhookretroflex=627,e.nieunacirclekorean=12911,e.nieunaparenkorean=12815,e.nieuncieuckorean=12597,e.nieuncirclekorean=12897,e.nieunhieuhkorean=12598,e.nieunkorean=12596,e.nieunpansioskorean=12648,e.nieunparenkorean=12801,e.nieunsioskorean=12647,e.nieuntikeutkorean=12646,e.nihiragana=12395,e.nikatakana=12491,e.nikatakanahalfwidth=65414,e.nikhahitleftthai=63641,e.nikhahitthai=3661,e.nine=57,e.ninearabic=1641,e.ninebengali=2543,e.ninecircle=9320,e.ninecircleinversesansserif=10130,e.ninedeva=2415,e.ninegujarati=2799,e.ninegurmukhi=2671,e.ninehackarabic=1641,e.ninehangzhou=12329,e.nineideographicparen=12840,e.nineinferior=8329,e.ninemonospace=65305,e.nineoldstyle=63289,e.nineparen=9340,e.nineperiod=9360,e.ninepersian=1785,e.nineroman=8568,e.ninesuperior=8313,e.nineteencircle=9330,e.nineteenparen=9350,e.nineteenperiod=9370,e.ninethai=3673,e.nj=460,e.njecyrillic=1114,e.nkatakana=12531,e.nkatakanahalfwidth=65437,e.nlegrightlong=414,e.nlinebelow=7753,e.nmonospace=65358,e.nmsquare=13210,e.nnabengali=2467,e.nnadeva=2339,e.nnagujarati=2723,e.nnagurmukhi=2595,e.nnnadeva=2345,e.nohiragana=12398,e.nokatakana=12494,e.nokatakanahalfwidth=65417,e.nonbreakingspace=160,e.nonenthai=3603,e.nonuthai=3609,e.noonarabic=1606,e.noonfinalarabic=65254,e.noonghunnaarabic=1722,e.noonghunnafinalarabic=64415,e.nooninitialarabic=65255,e.noonjeeminitialarabic=64722,e.noonjeemisolatedarabic=64587,e.noonmedialarabic=65256,e.noonmeeminitialarabic=64725,e.noonmeemisolatedarabic=64590,e.noonnoonfinalarabic=64653,e.notcontains=8716,e.notelement=8713,e.notelementof=8713,e.notequal=8800,e.notgreater=8815,e.notgreaternorequal=8817,e.notgreaternorless=8825,e.notidentical=8802,e.notless=8814,e.notlessnorequal=8816,e.notparallel=8742,e.notprecedes=8832,e.notsubset=8836,e.notsucceeds=8833,e.notsuperset=8837,e.nowarmenian=1398,e.nparen=9385,e.nssquare=13233,e.nsuperior=8319,e.ntilde=241,e.nu=957,e.nuhiragana=12396,e.nukatakana=12492,e.nukatakanahalfwidth=65415,e.nuktabengali=2492,e.nuktadeva=2364,e.nuktagujarati=2748,e.nuktagurmukhi=2620,e.numbersign=35,e.numbersignmonospace=65283,e.numbersignsmall=65119,e.numeralsigngreek=884,e.numeralsignlowergreek=885,e.numero=8470,e.nun=1504,e.nundagesh=64320,e.nundageshhebrew=64320,e.nunhebrew=1504,e.nvsquare=13237,e.nwsquare=13243,e.nyabengali=2462,e.nyadeva=2334,e.nyagujarati=2718,e.nyagurmukhi=2590,e.o=111,e.oacute=243,e.oangthai=3629,e.obarred=629,e.obarredcyrillic=1257,e.obarreddieresiscyrillic=1259,e.obengali=2451,e.obopomofo=12571,e.obreve=335,e.ocandradeva=2321,e.ocandragujarati=2705,e.ocandravowelsigndeva=2377,e.ocandravowelsigngujarati=2761,e.ocaron=466,e.ocircle=9438,e.ocircumflex=244,e.ocircumflexacute=7889,e.ocircumflexdotbelow=7897,e.ocircumflexgrave=7891,e.ocircumflexhookabove=7893,e.ocircumflextilde=7895,e.ocyrillic=1086,e.odblacute=337,e.odblgrave=525,e.odeva=2323,e.odieresis=246,e.odieresiscyrillic=1255,e.odotbelow=7885,e.oe=339,e.oekorean=12634,e.ogonek=731,e.ogonekcmb=808,e.ograve=242,e.ogujarati=2707,e.oharmenian=1413,e.ohiragana=12362,e.ohookabove=7887,e.ohorn=417,e.ohornacute=7899,e.ohorndotbelow=7907,e.ohorngrave=7901,e.ohornhookabove=7903,e.ohorntilde=7905,e.ohungarumlaut=337,e.oi=419,e.oinvertedbreve=527,e.okatakana=12458,e.okatakanahalfwidth=65397,e.okorean=12631,e.olehebrew=1451,e.omacron=333,e.omacronacute=7763,e.omacrongrave=7761,e.omdeva=2384,e.omega=969,e.omega1=982,e.omegacyrillic=1121,e.omegalatinclosed=631,e.omegaroundcyrillic=1147,e.omegatitlocyrillic=1149,e.omegatonos=974,e.omgujarati=2768,e.omicron=959,e.omicrontonos=972,e.omonospace=65359,e.one=49,e.onearabic=1633,e.onebengali=2535,e.onecircle=9312,e.onecircleinversesansserif=10122,e.onedeva=2407,e.onedotenleader=8228,e.oneeighth=8539,e.onefitted=63196,e.onegujarati=2791,e.onegurmukhi=2663,e.onehackarabic=1633,e.onehalf=189,e.onehangzhou=12321,e.oneideographicparen=12832,e.oneinferior=8321,e.onemonospace=65297,e.onenumeratorbengali=2548,e.oneoldstyle=63281,e.oneparen=9332,e.oneperiod=9352,e.onepersian=1777,e.onequarter=188,e.oneroman=8560,e.onesuperior=185,e.onethai=3665,e.onethird=8531,e.oogonek=491,e.oogonekmacron=493,e.oogurmukhi=2579,e.oomatragurmukhi=2635,e.oopen=596,e.oparen=9386,e.openbullet=9702,e.option=8997,e.ordfeminine=170,e.ordmasculine=186,e.orthogonal=8735,e.oshortdeva=2322,e.oshortvowelsigndeva=2378,e.oslash=248,e.oslashacute=511,e.osmallhiragana=12361,e.osmallkatakana=12457,e.osmallkatakanahalfwidth=65387,e.ostrokeacute=511,e.osuperior=63216,e.otcyrillic=1151,e.otilde=245,e.otildeacute=7757,e.otildedieresis=7759,e.oubopomofo=12577,e.overline=8254,e.overlinecenterline=65098,e.overlinecmb=773,e.overlinedashed=65097,e.overlinedblwavy=65100,e.overlinewavy=65099,e.overscore=175,e.ovowelsignbengali=2507,e.ovowelsigndeva=2379,e.ovowelsigngujarati=2763,e.p=112,e.paampssquare=13184,e.paasentosquare=13099,e.pabengali=2474,e.pacute=7765,e.padeva=2346,e.pagedown=8671,e.pageup=8670,e.pagujarati=2730,e.pagurmukhi=2602,e.pahiragana=12401,e.paiyannoithai=3631,e.pakatakana=12497,e.palatalizationcyrilliccmb=1156,e.palochkacyrillic=1216,e.pansioskorean=12671,e.paragraph=182,e.parallel=8741,e.parenleft=40,e.parenleftaltonearabic=64830,e.parenleftbt=63725,e.parenleftex=63724,e.parenleftinferior=8333,e.parenleftmonospace=65288,e.parenleftsmall=65113,e.parenleftsuperior=8317,e.parenlefttp=63723,e.parenleftvertical=65077,e.parenright=41,e.parenrightaltonearabic=64831,e.parenrightbt=63736,e.parenrightex=63735,e.parenrightinferior=8334,e.parenrightmonospace=65289,e.parenrightsmall=65114,e.parenrightsuperior=8318,e.parenrighttp=63734,e.parenrightvertical=65078,e.partialdiff=8706,e.paseqhebrew=1472,e.pashtahebrew=1433,e.pasquare=13225,e.patah=1463,e.patah11=1463,e.patah1d=1463,e.patah2a=1463,e.patahhebrew=1463,e.patahnarrowhebrew=1463,e.patahquarterhebrew=1463,e.patahwidehebrew=1463,e.pazerhebrew=1441,e.pbopomofo=12550,e.pcircle=9439,e.pdotaccent=7767,e.pe=1508,e.pecyrillic=1087,e.pedagesh=64324,e.pedageshhebrew=64324,e.peezisquare=13115,e.pefinaldageshhebrew=64323,e.peharabic=1662,e.peharmenian=1402,e.pehebrew=1508,e.pehfinalarabic=64343,e.pehinitialarabic=64344,e.pehiragana=12410,e.pehmedialarabic=64345,e.pekatakana=12506,e.pemiddlehookcyrillic=1191,e.perafehebrew=64334,e.percent=37,e.percentarabic=1642,e.percentmonospace=65285,e.percentsmall=65130,e.period=46,e.periodarmenian=1417,e.periodcentered=183,e.periodhalfwidth=65377,e.periodinferior=63207,e.periodmonospace=65294,e.periodsmall=65106,e.periodsuperior=63208,e.perispomenigreekcmb=834,e.perpendicular=8869,e.perthousand=8240,e.peseta=8359,e.pfsquare=13194,e.phabengali=2475,e.phadeva=2347,e.phagujarati=2731,e.phagurmukhi=2603,e.phi=966,e.phi1=981,e.phieuphacirclekorean=12922,e.phieuphaparenkorean=12826,e.phieuphcirclekorean=12908,e.phieuphkorean=12621,e.phieuphparenkorean=12812,e.philatin=632,e.phinthuthai=3642,e.phisymbolgreek=981,e.phook=421,e.phophanthai=3614,e.phophungthai=3612,e.phosamphaothai=3616,e.pi=960,e.pieupacirclekorean=12915,e.pieupaparenkorean=12819,e.pieupcieuckorean=12662,e.pieupcirclekorean=12901,e.pieupkiyeokkorean=12658,e.pieupkorean=12610,e.pieupparenkorean=12805,e.pieupsioskiyeokkorean=12660,e.pieupsioskorean=12612,e.pieupsiostikeutkorean=12661,e.pieupthieuthkorean=12663,e.pieuptikeutkorean=12659,e.pihiragana=12404,e.pikatakana=12500,e.pisymbolgreek=982,e.piwrarmenian=1411,e.plus=43,e.plusbelowcmb=799,e.pluscircle=8853,e.plusminus=177,e.plusmod=726,e.plusmonospace=65291,e.plussmall=65122,e.plussuperior=8314,e.pmonospace=65360,e.pmsquare=13272,e.pohiragana=12413,e.pointingindexdownwhite=9759,e.pointingindexleftwhite=9756,e.pointingindexrightwhite=9758,e.pointingindexupwhite=9757,e.pokatakana=12509,e.poplathai=3611,e.postalmark=12306,e.postalmarkface=12320,e.pparen=9387,e.precedes=8826,e.prescription=8478,e.primemod=697,e.primereversed=8245,e.product=8719,e.projective=8965,e.prolongedkana=12540,e.propellor=8984,e.propersubset=8834,e.propersuperset=8835,e.proportion=8759,e.proportional=8733,e.psi=968,e.psicyrillic=1137,e.psilipneumatacyrilliccmb=1158,e.pssquare=13232,e.puhiragana=12407,e.pukatakana=12503,e.pvsquare=13236,e.pwsquare=13242,e.q=113,e.qadeva=2392,e.qadmahebrew=1448,e.qafarabic=1602,e.qaffinalarabic=65238,e.qafinitialarabic=65239,e.qafmedialarabic=65240,e.qamats=1464,e.qamats10=1464,e.qamats1a=1464,e.qamats1c=1464,e.qamats27=1464,e.qamats29=1464,e.qamats33=1464,e.qamatsde=1464,e.qamatshebrew=1464,e.qamatsnarrowhebrew=1464,e.qamatsqatanhebrew=1464,e.qamatsqatannarrowhebrew=1464,e.qamatsqatanquarterhebrew=1464,e.qamatsqatanwidehebrew=1464,e.qamatsquarterhebrew=1464,e.qamatswidehebrew=1464,e.qarneyparahebrew=1439,e.qbopomofo=12561,e.qcircle=9440,e.qhook=672,e.qmonospace=65361,e.qof=1511,e.qofdagesh=64327,e.qofdageshhebrew=64327,e.qofhebrew=1511,e.qparen=9388,e.quarternote=9833,e.qubuts=1467,e.qubuts18=1467,e.qubuts25=1467,e.qubuts31=1467,e.qubutshebrew=1467,e.qubutsnarrowhebrew=1467,e.qubutsquarterhebrew=1467,e.qubutswidehebrew=1467,e.question=63,e.questionarabic=1567,e.questionarmenian=1374,e.questiondown=191,e.questiondownsmall=63423,e.questiongreek=894,e.questionmonospace=65311,e.questionsmall=63295,e.quotedbl=34,e.quotedblbase=8222,e.quotedblleft=8220,e.quotedblmonospace=65282,e.quotedblprime=12318,e.quotedblprimereversed=12317,e.quotedblright=8221,e.quoteleft=8216,e.quoteleftreversed=8219,e.quotereversed=8219,e.quoteright=8217,e.quoterightn=329,e.quotesinglbase=8218,e.quotesingle=39,e.quotesinglemonospace=65287,e.r=114,e.raarmenian=1404,e.rabengali=2480,e.racute=341,e.radeva=2352,e.radical=8730,e.radicalex=63717,e.radoverssquare=13230,e.radoverssquaredsquare=13231,e.radsquare=13229,e.rafe=1471,e.rafehebrew=1471,e.ragujarati=2736,e.ragurmukhi=2608,e.rahiragana=12425,e.rakatakana=12521,e.rakatakanahalfwidth=65431,e.ralowerdiagonalbengali=2545,e.ramiddlediagonalbengali=2544,e.ramshorn=612,e.ratio=8758,e.rbopomofo=12566,e.rcaron=345,e.rcedilla=343,e.rcircle=9441,e.rcommaaccent=343,e.rdblgrave=529,e.rdotaccent=7769,e.rdotbelow=7771,e.rdotbelowmacron=7773,e.referencemark=8251,e.reflexsubset=8838,e.reflexsuperset=8839,e.registered=174,e.registersans=63720,e.registerserif=63194,e.reharabic=1585,e.reharmenian=1408,e.rehfinalarabic=65198,e.rehiragana=12428,e.rekatakana=12524,e.rekatakanahalfwidth=65434,e.resh=1512,e.reshdageshhebrew=64328,e.reshhebrew=1512,e.reversedtilde=8765,e.reviahebrew=1431;e.reviamugrashhebrew=1431,e.revlogicalnot=8976,e.rfishhook=638,e.rfishhookreversed=639,e.rhabengali=2525,e.rhadeva=2397,e.rho=961,e.rhook=637,e.rhookturned=635,e.rhookturnedsuperior=693,e.rhosymbolgreek=1009,e.rhotichookmod=734,e.rieulacirclekorean=12913,e.rieulaparenkorean=12817,e.rieulcirclekorean=12899,e.rieulhieuhkorean=12608,e.rieulkiyeokkorean=12602,e.rieulkiyeoksioskorean=12649,e.rieulkorean=12601,e.rieulmieumkorean=12603,e.rieulpansioskorean=12652,e.rieulparenkorean=12803,e.rieulphieuphkorean=12607,e.rieulpieupkorean=12604,e.rieulpieupsioskorean=12651,e.rieulsioskorean=12605,e.rieulthieuthkorean=12606,e.rieultikeutkorean=12650,e.rieulyeorinhieuhkorean=12653,e.rightangle=8735,e.righttackbelowcmb=793,e.righttriangle=8895,e.rihiragana=12426,e.rikatakana=12522,e.rikatakanahalfwidth=65432,e.ring=730,e.ringbelowcmb=805,e.ringcmb=778,e.ringhalfleft=703,e.ringhalfleftarmenian=1369,e.ringhalfleftbelowcmb=796,e.ringhalfleftcentered=723,e.ringhalfright=702,e.ringhalfrightbelowcmb=825,e.ringhalfrightcentered=722,e.rinvertedbreve=531,e.rittorusquare=13137,e.rlinebelow=7775,e.rlongleg=636,e.rlonglegturned=634,e.rmonospace=65362,e.rohiragana=12429,e.rokatakana=12525,e.rokatakanahalfwidth=65435,e.roruathai=3619,e.rparen=9389,e.rrabengali=2524,e.rradeva=2353,e.rragurmukhi=2652,e.rreharabic=1681,e.rrehfinalarabic=64397,e.rrvocalicbengali=2528,e.rrvocalicdeva=2400,e.rrvocalicgujarati=2784,e.rrvocalicvowelsignbengali=2500,e.rrvocalicvowelsigndeva=2372,e.rrvocalicvowelsigngujarati=2756,e.rsuperior=63217,e.rtblock=9616,e.rturned=633,e.rturnedsuperior=692,e.ruhiragana=12427,e.rukatakana=12523,e.rukatakanahalfwidth=65433,e.rupeemarkbengali=2546,e.rupeesignbengali=2547,e.rupiah=63197,e.ruthai=3620,e.rvocalicbengali=2443,e.rvocalicdeva=2315,e.rvocalicgujarati=2699,e.rvocalicvowelsignbengali=2499,e.rvocalicvowelsigndeva=2371,e.rvocalicvowelsigngujarati=2755,e.s=115,e.sabengali=2488,e.sacute=347,e.sacutedotaccent=7781,e.sadarabic=1589,e.sadeva=2360,e.sadfinalarabic=65210,e.sadinitialarabic=65211,e.sadmedialarabic=65212,e.sagujarati=2744,e.sagurmukhi=2616,e.sahiragana=12373,e.sakatakana=12469,e.sakatakanahalfwidth=65403,e.sallallahoualayhewasallamarabic=65018,e.samekh=1505,e.samekhdagesh=64321,e.samekhdageshhebrew=64321,e.samekhhebrew=1505,e.saraaathai=3634,e.saraaethai=3649,e.saraaimaimalaithai=3652,e.saraaimaimuanthai=3651,e.saraamthai=3635,e.saraathai=3632,e.saraethai=3648,e.saraiileftthai=63622,e.saraiithai=3637,e.saraileftthai=63621,e.saraithai=3636,e.saraothai=3650,e.saraueeleftthai=63624,e.saraueethai=3639,e.saraueleftthai=63623,e.sarauethai=3638,e.sarauthai=3640,e.sarauuthai=3641,e.sbopomofo=12569,e.scaron=353,e.scarondotaccent=7783,e.scedilla=351,e.schwa=601,e.schwacyrillic=1241,e.schwadieresiscyrillic=1243,e.schwahook=602,e.scircle=9442,e.scircumflex=349,e.scommaaccent=537,e.sdotaccent=7777,e.sdotbelow=7779,e.sdotbelowdotaccent=7785,e.seagullbelowcmb=828,e.second=8243,e.secondtonechinese=714,e.section=167,e.seenarabic=1587,e.seenfinalarabic=65202,e.seeninitialarabic=65203,e.seenmedialarabic=65204,e.segol=1462,e.segol13=1462,e.segol1f=1462,e.segol2c=1462,e.segolhebrew=1462,e.segolnarrowhebrew=1462,e.segolquarterhebrew=1462,e.segoltahebrew=1426,e.segolwidehebrew=1462,e.seharmenian=1405,e.sehiragana=12379,e.sekatakana=12475,e.sekatakanahalfwidth=65406,e.semicolon=59,e.semicolonarabic=1563,e.semicolonmonospace=65307,e.semicolonsmall=65108,e.semivoicedmarkkana=12444,e.semivoicedmarkkanahalfwidth=65439,e.sentisquare=13090,e.sentosquare=13091,e.seven=55,e.sevenarabic=1639,e.sevenbengali=2541,e.sevencircle=9318,e.sevencircleinversesansserif=10128,e.sevendeva=2413,e.seveneighths=8542,e.sevengujarati=2797,e.sevengurmukhi=2669,e.sevenhackarabic=1639,e.sevenhangzhou=12327,e.sevenideographicparen=12838,e.seveninferior=8327,e.sevenmonospace=65303,e.sevenoldstyle=63287,e.sevenparen=9338,e.sevenperiod=9358,e.sevenpersian=1783,e.sevenroman=8566,e.sevensuperior=8311,e.seventeencircle=9328,e.seventeenparen=9348,e.seventeenperiod=9368,e.seventhai=3671,e.sfthyphen=173,e.shaarmenian=1399,e.shabengali=2486,e.shacyrillic=1096,e.shaddaarabic=1617,e.shaddadammaarabic=64609,e.shaddadammatanarabic=64606,e.shaddafathaarabic=64608,e.shaddakasraarabic=64610,e.shaddakasratanarabic=64607,e.shade=9618,e.shadedark=9619,e.shadelight=9617,e.shademedium=9618,e.shadeva=2358,e.shagujarati=2742,e.shagurmukhi=2614,e.shalshelethebrew=1427,e.shbopomofo=12565,e.shchacyrillic=1097,e.sheenarabic=1588,e.sheenfinalarabic=65206,e.sheeninitialarabic=65207,e.sheenmedialarabic=65208,e.sheicoptic=995,e.sheqel=8362,e.sheqelhebrew=8362,e.sheva=1456,e.sheva115=1456,e.sheva15=1456,e.sheva22=1456,e.sheva2e=1456,e.shevahebrew=1456,e.shevanarrowhebrew=1456,e.shevaquarterhebrew=1456,e.shevawidehebrew=1456,e.shhacyrillic=1211,e.shimacoptic=1005,e.shin=1513,e.shindagesh=64329,e.shindageshhebrew=64329,e.shindageshshindot=64300,e.shindageshshindothebrew=64300,e.shindageshsindot=64301,e.shindageshsindothebrew=64301,e.shindothebrew=1473,e.shinhebrew=1513,e.shinshindot=64298,e.shinshindothebrew=64298,e.shinsindot=64299,e.shinsindothebrew=64299,e.shook=642,e.sigma=963,e.sigma1=962,e.sigmafinal=962,e.sigmalunatesymbolgreek=1010,e.sihiragana=12375,e.sikatakana=12471,e.sikatakanahalfwidth=65404,e.siluqhebrew=1469,e.siluqlefthebrew=1469,e.similar=8764,e.sindothebrew=1474,e.siosacirclekorean=12916,e.siosaparenkorean=12820,e.sioscieuckorean=12670,e.sioscirclekorean=12902,e.sioskiyeokkorean=12666,e.sioskorean=12613,e.siosnieunkorean=12667,e.siosparenkorean=12806,e.siospieupkorean=12669,e.siostikeutkorean=12668,e.six=54,e.sixarabic=1638,e.sixbengali=2540,e.sixcircle=9317,e.sixcircleinversesansserif=10127,e.sixdeva=2412,e.sixgujarati=2796,e.sixgurmukhi=2668,e.sixhackarabic=1638,e.sixhangzhou=12326,e.sixideographicparen=12837,e.sixinferior=8326,e.sixmonospace=65302,e.sixoldstyle=63286,e.sixparen=9337,e.sixperiod=9357,e.sixpersian=1782,e.sixroman=8565,e.sixsuperior=8310,e.sixteencircle=9327,e.sixteencurrencydenominatorbengali=2553,e.sixteenparen=9347,e.sixteenperiod=9367,e.sixthai=3670,e.slash=47,e.slashmonospace=65295,e.slong=383,e.slongdotaccent=7835,e.smileface=9786,e.smonospace=65363,e.sofpasuqhebrew=1475,e.softhyphen=173,e.softsigncyrillic=1100,e.sohiragana=12381,e.sokatakana=12477,e.sokatakanahalfwidth=65407,e.soliduslongoverlaycmb=824,e.solidusshortoverlaycmb=823,e.sorusithai=3625,e.sosalathai=3624,e.sosothai=3595,e.sosuathai=3626,e.space=32,e.spacehackarabic=32,e.spade=9824,e.spadesuitblack=9824,e.spadesuitwhite=9828,e.sparen=9390,e.squarebelowcmb=827,e.squarecc=13252,e.squarecm=13213,e.squarediagonalcrosshatchfill=9641,e.squarehorizontalfill=9636,e.squarekg=13199,e.squarekm=13214,e.squarekmcapital=13262,e.squareln=13265,e.squarelog=13266,e.squaremg=13198,e.squaremil=13269,e.squaremm=13212,e.squaremsquared=13217,e.squareorthogonalcrosshatchfill=9638,e.squareupperlefttolowerrightfill=9639,e.squareupperrighttolowerleftfill=9640,e.squareverticalfill=9637,e.squarewhitewithsmallblack=9635,e.srsquare=13275,e.ssabengali=2487,e.ssadeva=2359,e.ssagujarati=2743,e.ssangcieuckorean=12617,e.ssanghieuhkorean=12677,e.ssangieungkorean=12672,e.ssangkiyeokkorean=12594,e.ssangnieunkorean=12645,e.ssangpieupkorean=12611,e.ssangsioskorean=12614,e.ssangtikeutkorean=12600,e.ssuperior=63218,e.sterling=163,e.sterlingmonospace=65505,e.strokelongoverlaycmb=822,e.strokeshortoverlaycmb=821,e.subset=8834,e.subsetnotequal=8842,e.subsetorequal=8838,e.succeeds=8827,e.suchthat=8715,e.suhiragana=12377,e.sukatakana=12473,e.sukatakanahalfwidth=65405,e.sukunarabic=1618,e.summation=8721,e.sun=9788,e.superset=8835,e.supersetnotequal=8843,e.supersetorequal=8839,e.svsquare=13276,e.syouwaerasquare=13180,e.t=116,e.tabengali=2468,e.tackdown=8868,e.tackleft=8867,e.tadeva=2340,e.tagujarati=2724,e.tagurmukhi=2596,e.taharabic=1591,e.tahfinalarabic=65218,e.tahinitialarabic=65219,e.tahiragana=12383,e.tahmedialarabic=65220,e.taisyouerasquare=13181,e.takatakana=12479,e.takatakanahalfwidth=65408,e.tatweelarabic=1600,e.tau=964,e.tav=1514,e.tavdages=64330,e.tavdagesh=64330,e.tavdageshhebrew=64330,e.tavhebrew=1514,e.tbar=359,e.tbopomofo=12554,e.tcaron=357,e.tccurl=680,e.tcedilla=355,e.tcheharabic=1670,e.tchehfinalarabic=64379,e.tchehinitialarabic=64380,e.tchehmedialarabic=64381,e.tcircle=9443,e.tcircumflexbelow=7793,e.tcommaaccent=355,e.tdieresis=7831,e.tdotaccent=7787,e.tdotbelow=7789,e.tecyrillic=1090,e.tedescendercyrillic=1197,e.teharabic=1578,e.tehfinalarabic=65174,e.tehhahinitialarabic=64674,e.tehhahisolatedarabic=64524,e.tehinitialarabic=65175,e.tehiragana=12390,e.tehjeeminitialarabic=64673,e.tehjeemisolatedarabic=64523,e.tehmarbutaarabic=1577,e.tehmarbutafinalarabic=65172,e.tehmedialarabic=65176,e.tehmeeminitialarabic=64676,e.tehmeemisolatedarabic=64526,e.tehnoonfinalarabic=64627,e.tekatakana=12486,e.tekatakanahalfwidth=65411,e.telephone=8481,e.telephoneblack=9742,e.telishagedolahebrew=1440,e.telishaqetanahebrew=1449,e.tencircle=9321,e.tenideographicparen=12841,e.tenparen=9341,e.tenperiod=9361,e.tenroman=8569,e.tesh=679,e.tet=1496,e.tetdagesh=64312,e.tetdageshhebrew=64312,e.tethebrew=1496,e.tetsecyrillic=1205,e.tevirhebrew=1435,e.tevirlefthebrew=1435,e.thabengali=2469,e.thadeva=2341,e.thagujarati=2725,e.thagurmukhi=2597,e.thalarabic=1584,e.thalfinalarabic=65196,e.thanthakhatlowleftthai=63640,e.thanthakhatlowrightthai=63639,e.thanthakhatthai=3660,e.thanthakhatupperleftthai=63638,e.theharabic=1579,e.thehfinalarabic=65178,e.thehinitialarabic=65179,e.thehmedialarabic=65180,e.thereexists=8707,e.therefore=8756,e.theta=952,e.theta1=977,e.thetasymbolgreek=977,e.thieuthacirclekorean=12921,e.thieuthaparenkorean=12825,e.thieuthcirclekorean=12907,e.thieuthkorean=12620,e.thieuthparenkorean=12811,e.thirteencircle=9324,e.thirteenparen=9344,e.thirteenperiod=9364,e.thonangmonthothai=3601,e.thook=429,e.thophuthaothai=3602,e.thorn=254,e.thothahanthai=3607,e.thothanthai=3600,e.thothongthai=3608,e.thothungthai=3606,e.thousandcyrillic=1154,e.thousandsseparatorarabic=1644,e.thousandsseparatorpersian=1644,e.three=51,e.threearabic=1635,e.threebengali=2537,e.threecircle=9314,e.threecircleinversesansserif=10124,e.threedeva=2409,e.threeeighths=8540,e.threegujarati=2793,e.threegurmukhi=2665,e.threehackarabic=1635,e.threehangzhou=12323,e.threeideographicparen=12834,e.threeinferior=8323,e.threemonospace=65299,e.threenumeratorbengali=2550,e.threeoldstyle=63283,e.threeparen=9334,e.threeperiod=9354,e.threepersian=1779,e.threequarters=190,e.threequartersemdash=63198,e.threeroman=8562,e.threesuperior=179,e.threethai=3667,e.thzsquare=13204,e.tihiragana=12385,e.tikatakana=12481,e.tikatakanahalfwidth=65409,e.tikeutacirclekorean=12912,e.tikeutaparenkorean=12816,e.tikeutcirclekorean=12898,e.tikeutkorean=12599,e.tikeutparenkorean=12802,e.tilde=732,e.tildebelowcmb=816,e.tildecmb=771,e.tildecomb=771,e.tildedoublecmb=864,e.tildeoperator=8764,e.tildeoverlaycmb=820,e.tildeverticalcmb=830,e.timescircle=8855,e.tipehahebrew=1430,e.tipehalefthebrew=1430,e.tippigurmukhi=2672,e.titlocyrilliccmb=1155,e.tiwnarmenian=1407,e.tlinebelow=7791,e.tmonospace=65364,e.toarmenian=1385,e.tohiragana=12392,e.tokatakana=12488,e.tokatakanahalfwidth=65412,e.tonebarextrahighmod=741,e.tonebarextralowmod=745,e.tonebarhighmod=742,e.tonebarlowmod=744,e.tonebarmidmod=743,e.tonefive=445,e.tonesix=389,e.tonetwo=424,e.tonos=900,e.tonsquare=13095,e.topatakthai=3599,e.tortoiseshellbracketleft=12308,e.tortoiseshellbracketleftsmall=65117,e.tortoiseshellbracketleftvertical=65081,e.tortoiseshellbracketright=12309,e.tortoiseshellbracketrightsmall=65118,e.tortoiseshellbracketrightvertical=65082,e.totaothai=3605,e.tpalatalhook=427,e.tparen=9391,e.trademark=8482,e.trademarksans=63722,e.trademarkserif=63195,e.tretroflexhook=648,e.triagdn=9660,e.triaglf=9668,e.triagrt=9658,e.triagup=9650,e.ts=678,e.tsadi=1510,e.tsadidagesh=64326,e.tsadidageshhebrew=64326,e.tsadihebrew=1510,e.tsecyrillic=1094,e.tsere=1461,e.tsere12=1461,e.tsere1e=1461,e.tsere2b=1461,e.tserehebrew=1461,e.tserenarrowhebrew=1461,e.tserequarterhebrew=1461,e.tserewidehebrew=1461,e.tshecyrillic=1115,e.tsuperior=63219,e.ttabengali=2463,e.ttadeva=2335,e.ttagujarati=2719,e.ttagurmukhi=2591,e.tteharabic=1657,e.ttehfinalarabic=64359,e.ttehinitialarabic=64360,e.ttehmedialarabic=64361,e.tthabengali=2464,e.tthadeva=2336,e.tthagujarati=2720,e.tthagurmukhi=2592,e.tturned=647,e.tuhiragana=12388,e.tukatakana=12484,e.tukatakanahalfwidth=65410,e.tusmallhiragana=12387,e.tusmallkatakana=12483,e.tusmallkatakanahalfwidth=65391,e.twelvecircle=9323,e.twelveparen=9343,e.twelveperiod=9363,e.twelveroman=8571,e.twentycircle=9331,e.twentyhangzhou=21316,e.twentyparen=9351,e.twentyperiod=9371,e.two=50,e.twoarabic=1634,e.twobengali=2536,e.twocircle=9313,e.twocircleinversesansserif=10123,e.twodeva=2408,e.twodotenleader=8229,e.twodotleader=8229,e.twodotleadervertical=65072,e.twogujarati=2792,e.twogurmukhi=2664,e.twohackarabic=1634,e.twohangzhou=12322,e.twoideographicparen=12833,e.twoinferior=8322,e.twomonospace=65298,e.twonumeratorbengali=2549,e.twooldstyle=63282,e.twoparen=9333,e.twoperiod=9353,e.twopersian=1778,e.tworoman=8561,e.twostroke=443,e.twosuperior=178,e.twothai=3666,e.twothirds=8532,e.u=117,e.uacute=250,e.ubar=649,e.ubengali=2441,e.ubopomofo=12584,e.ubreve=365,e.ucaron=468,e.ucircle=9444,e.ucircumflex=251,e.ucircumflexbelow=7799,e.ucyrillic=1091,e.udattadeva=2385,e.udblacute=369,e.udblgrave=533,e.udeva=2313,e.udieresis=252,e.udieresisacute=472,e.udieresisbelow=7795,e.udieresiscaron=474,e.udieresiscyrillic=1265,e.udieresisgrave=476,e.udieresismacron=470,e.udotbelow=7909,e.ugrave=249,e.ugujarati=2697,e.ugurmukhi=2569,e.uhiragana=12358,e.uhookabove=7911,e.uhorn=432,e.uhornacute=7913,e.uhorndotbelow=7921,e.uhorngrave=7915,e.uhornhookabove=7917,e.uhorntilde=7919,e.uhungarumlaut=369,e.uhungarumlautcyrillic=1267,e.uinvertedbreve=535,e.ukatakana=12454,e.ukatakanahalfwidth=65395,e.ukcyrillic=1145,e.ukorean=12636,e.umacron=363,e.umacroncyrillic=1263,e.umacrondieresis=7803,e.umatragurmukhi=2625,e.umonospace=65365,e.underscore=95,e.underscoredbl=8215,e.underscoremonospace=65343,e.underscorevertical=65075,e.underscorewavy=65103,e.union=8746,e.universal=8704,e.uogonek=371,e.uparen=9392,e.upblock=9600,e.upperdothebrew=1476,e.upsilon=965,e.upsilondieresis=971,e.upsilondieresistonos=944,e.upsilonlatin=650,e.upsilontonos=973,e.uptackbelowcmb=797,e.uptackmod=724,e.uragurmukhi=2675,e.uring=367,e.ushortcyrillic=1118,e.usmallhiragana=12357,e.usmallkatakana=12453,e.usmallkatakanahalfwidth=65385,e.ustraightcyrillic=1199,e.ustraightstrokecyrillic=1201,e.utilde=361,e.utildeacute=7801,e.utildebelow=7797,e.uubengali=2442,e.uudeva=2314,e.uugujarati=2698,e.uugurmukhi=2570,e.uumatragurmukhi=2626,e.uuvowelsignbengali=2498,e.uuvowelsigndeva=2370,e.uuvowelsigngujarati=2754,e.uvowelsignbengali=2497,e.uvowelsigndeva=2369,e.uvowelsigngujarati=2753,e.v=118,e.vadeva=2357,e.vagujarati=2741,e.vagurmukhi=2613,e.vakatakana=12535,e.vav=1493,e.vavdagesh=64309,e.vavdagesh65=64309,e.vavdageshhebrew=64309,e.vavhebrew=1493,e.vavholam=64331,e.vavholamhebrew=64331,e.vavvavhebrew=1520,e.vavyodhebrew=1521,e.vcircle=9445,e.vdotbelow=7807,e.vecyrillic=1074,e.veharabic=1700,e.vehfinalarabic=64363,e.vehinitialarabic=64364,e.vehmedialarabic=64365,e.vekatakana=12537,e.venus=9792,e.verticalbar=124,e.verticallineabovecmb=781,e.verticallinebelowcmb=809,e.verticallinelowmod=716,e.verticallinemod=712,e.vewarmenian=1406,e.vhook=651,e.vikatakana=12536,e.viramabengali=2509,e.viramadeva=2381,e.viramagujarati=2765,e.visargabengali=2435,e.visargadeva=2307,e.visargagujarati=2691,e.vmonospace=65366,e.voarmenian=1400,e.voicediterationhiragana=12446,e.voicediterationkatakana=12542,e.voicedmarkkana=12443,e.voicedmarkkanahalfwidth=65438,e.vokatakana=12538,e.vparen=9393,e.vtilde=7805,e.vturned=652,e.vuhiragana=12436,e.vukatakana=12532,e.w=119,e.wacute=7811,e.waekorean=12633,e.wahiragana=12431,e.wakatakana=12527,e.wakatakanahalfwidth=65436,e.wakorean=12632,e.wasmallhiragana=12430,e.wasmallkatakana=12526,e.wattosquare=13143,e.wavedash=12316,e.wavyunderscorevertical=65076,e.wawarabic=1608,e.wawfinalarabic=65262,e.wawhamzaabovearabic=1572,e.wawhamzaabovefinalarabic=65158,e.wbsquare=13277,e.wcircle=9446,e.wcircumflex=373,e.wdieresis=7813,e.wdotaccent=7815,e.wdotbelow=7817,e.wehiragana=12433,e.weierstrass=8472,e.wekatakana=12529,e.wekorean=12638,e.weokorean=12637,e.wgrave=7809,e.whitebullet=9702,e.whitecircle=9675,e.whitecircleinverse=9689,e.whitecornerbracketleft=12302,e.whitecornerbracketleftvertical=65091,e.whitecornerbracketright=12303,e.whitecornerbracketrightvertical=65092,e.whitediamond=9671,e.whitediamondcontainingblacksmalldiamond=9672,e.whitedownpointingsmalltriangle=9663,e.whitedownpointingtriangle=9661,e.whiteleftpointingsmalltriangle=9667,e.whiteleftpointingtriangle=9665,e.whitelenticularbracketleft=12310,e.whitelenticularbracketright=12311,e.whiterightpointingsmalltriangle=9657;e.whiterightpointingtriangle=9655,e.whitesmallsquare=9643,e.whitesmilingface=9786,e.whitesquare=9633,e.whitestar=9734,e.whitetelephone=9743,e.whitetortoiseshellbracketleft=12312,e.whitetortoiseshellbracketright=12313,e.whiteuppointingsmalltriangle=9653,e.whiteuppointingtriangle=9651,e.wihiragana=12432,e.wikatakana=12528,e.wikorean=12639,e.wmonospace=65367,e.wohiragana=12434,e.wokatakana=12530,e.wokatakanahalfwidth=65382,e.won=8361,e.wonmonospace=65510,e.wowaenthai=3623,e.wparen=9394,e.wring=7832,e.wsuperior=695,e.wturned=653,e.wynn=447,e.x=120,e.xabovecmb=829,e.xbopomofo=12562,e.xcircle=9447,e.xdieresis=7821,e.xdotaccent=7819,e.xeharmenian=1389,e.xi=958,e.xmonospace=65368,e.xparen=9395,e.xsuperior=739,e.y=121,e.yaadosquare=13134,e.yabengali=2479,e.yacute=253,e.yadeva=2351,e.yaekorean=12626,e.yagujarati=2735,e.yagurmukhi=2607,e.yahiragana=12420,e.yakatakana=12516,e.yakatakanahalfwidth=65428,e.yakorean=12625,e.yamakkanthai=3662,e.yasmallhiragana=12419,e.yasmallkatakana=12515,e.yasmallkatakanahalfwidth=65388,e.yatcyrillic=1123,e.ycircle=9448,e.ycircumflex=375,e.ydieresis=255,e.ydotaccent=7823,e.ydotbelow=7925,e.yeharabic=1610,e.yehbarreearabic=1746,e.yehbarreefinalarabic=64431,e.yehfinalarabic=65266,e.yehhamzaabovearabic=1574,e.yehhamzaabovefinalarabic=65162,e.yehhamzaaboveinitialarabic=65163,e.yehhamzaabovemedialarabic=65164,e.yehinitialarabic=65267,e.yehmedialarabic=65268,e.yehmeeminitialarabic=64733,e.yehmeemisolatedarabic=64600,e.yehnoonfinalarabic=64660,e.yehthreedotsbelowarabic=1745,e.yekorean=12630,e.yen=165,e.yenmonospace=65509,e.yeokorean=12629,e.yeorinhieuhkorean=12678,e.yerahbenyomohebrew=1450,e.yerahbenyomolefthebrew=1450,e.yericyrillic=1099,e.yerudieresiscyrillic=1273,e.yesieungkorean=12673,e.yesieungpansioskorean=12675,e.yesieungsioskorean=12674,e.yetivhebrew=1434,e.ygrave=7923,e.yhook=436,e.yhookabove=7927,e.yiarmenian=1397,e.yicyrillic=1111,e.yikorean=12642,e.yinyang=9775,e.yiwnarmenian=1410,e.ymonospace=65369,e.yod=1497,e.yoddagesh=64313,e.yoddageshhebrew=64313,e.yodhebrew=1497,e.yodyodhebrew=1522,e.yodyodpatahhebrew=64287,e.yohiragana=12424,e.yoikorean=12681,e.yokatakana=12520,e.yokatakanahalfwidth=65430,e.yokorean=12635,e.yosmallhiragana=12423,e.yosmallkatakana=12519,e.yosmallkatakanahalfwidth=65390,e.yotgreek=1011,e.yoyaekorean=12680,e.yoyakorean=12679,e.yoyakthai=3618,e.yoyingthai=3597,e.yparen=9396,e.ypogegrammeni=890,e.ypogegrammenigreekcmb=837,e.yr=422,e.yring=7833,e.ysuperior=696,e.ytilde=7929,e.yturned=654,e.yuhiragana=12422,e.yuikorean=12684,e.yukatakana=12518,e.yukatakanahalfwidth=65429,e.yukorean=12640,e.yusbigcyrillic=1131,e.yusbigiotifiedcyrillic=1133,e.yuslittlecyrillic=1127,e.yuslittleiotifiedcyrillic=1129,e.yusmallhiragana=12421,e.yusmallkatakana=12517,e.yusmallkatakanahalfwidth=65389,e.yuyekorean=12683,e.yuyeokorean=12682,e.yyabengali=2527,e.yyadeva=2399,e.z=122,e.zaarmenian=1382,e.zacute=378,e.zadeva=2395,e.zagurmukhi=2651,e.zaharabic=1592,e.zahfinalarabic=65222,e.zahinitialarabic=65223,e.zahiragana=12374,e.zahmedialarabic=65224,e.zainarabic=1586,e.zainfinalarabic=65200,e.zakatakana=12470,e.zaqefgadolhebrew=1429,e.zaqefqatanhebrew=1428,e.zarqahebrew=1432,e.zayin=1494,e.zayindagesh=64310,e.zayindageshhebrew=64310,e.zayinhebrew=1494,e.zbopomofo=12567,e.zcaron=382,e.zcircle=9449,e.zcircumflex=7825,e.zcurl=657,e.zdot=380,e.zdotaccent=380,e.zdotbelow=7827,e.zecyrillic=1079,e.zedescendercyrillic=1177,e.zedieresiscyrillic=1247,e.zehiragana=12380,e.zekatakana=12476,e.zero=48,e.zeroarabic=1632,e.zerobengali=2534,e.zerodeva=2406,e.zerogujarati=2790,e.zerogurmukhi=2662,e.zerohackarabic=1632,e.zeroinferior=8320,e.zeromonospace=65296,e.zerooldstyle=63280,e.zeropersian=1776,e.zerosuperior=8304,e.zerothai=3664,e.zerowidthjoiner=65279,e.zerowidthnonjoiner=8204,e.zerowidthspace=8203,e.zeta=950,e.zhbopomofo=12563,e.zhearmenian=1386,e.zhebrevecyrillic=1218,e.zhecyrillic=1078,e.zhedescendercyrillic=1175,e.zhedieresiscyrillic=1245,e.zihiragana=12376,e.zikatakana=12472,e.zinorhebrew=1454,e.zlinebelow=7829,e.zmonospace=65370,e.zohiragana=12382,e.zokatakana=12478,e.zparen=9397,e.zretroflexhook=656,e.zstroke=438,e.zuhiragana=12378,e.zukatakana=12474,e[".notdef"]=0,e.angbracketleftbig=9001,e.angbracketleftBig=9001,e.angbracketleftbigg=9001,e.angbracketleftBigg=9001,e.angbracketrightBig=9002,e.angbracketrightbig=9002,e.angbracketrightBigg=9002,e.angbracketrightbigg=9002,e.arrowhookleft=8618,e.arrowhookright=8617,e.arrowlefttophalf=8636,e.arrowleftbothalf=8637,e.arrownortheast=8599,e.arrownorthwest=8598,e.arrowrighttophalf=8640,e.arrowrightbothalf=8641,e.arrowsoutheast=8600,e.arrowsouthwest=8601,e.backslashbig=8726,e.backslashBig=8726,e.backslashBigg=8726,e.backslashbigg=8726,e.bardbl=8214,e.bracehtipdownleft=65079,e.bracehtipdownright=65079,e.bracehtipupleft=65080,e.bracehtipupright=65080,e.braceleftBig=123,e.braceleftbig=123,e.braceleftbigg=123,e.braceleftBigg=123,e.bracerightBig=125,e.bracerightbig=125,e.bracerightbigg=125,e.bracerightBigg=125,e.bracketleftbig=91,e.bracketleftBig=91,e.bracketleftbigg=91,e.bracketleftBigg=91,e.bracketrightBig=93,e.bracketrightbig=93,e.bracketrightbigg=93,e.bracketrightBigg=93,e.ceilingleftbig=8968,e.ceilingleftBig=8968,e.ceilingleftBigg=8968,e.ceilingleftbigg=8968,e.ceilingrightbig=8969,e.ceilingrightBig=8969,e.ceilingrightbigg=8969,e.ceilingrightBigg=8969,e.circledotdisplay=8857,e.circledottext=8857,e.circlemultiplydisplay=8855,e.circlemultiplytext=8855,e.circleplusdisplay=8853,e.circleplustext=8853,e.contintegraldisplay=8750,e.contintegraltext=8750,e.coproductdisplay=8720,e.coproducttext=8720,e.floorleftBig=8970,e.floorleftbig=8970,e.floorleftbigg=8970,e.floorleftBigg=8970,e.floorrightbig=8971,e.floorrightBig=8971,e.floorrightBigg=8971,e.floorrightbigg=8971,e.hatwide=770,e.hatwider=770,e.hatwidest=770,e.intercal=7488,e.integraldisplay=8747,e.integraltext=8747,e.intersectiondisplay=8898,e.intersectiontext=8898,e.logicalanddisplay=8743,e.logicalandtext=8743,e.logicalordisplay=8744,e.logicalortext=8744,e.parenleftBig=40,e.parenleftbig=40,e.parenleftBigg=40,e.parenleftbigg=40,e.parenrightBig=41,e.parenrightbig=41,e.parenrightBigg=41,e.parenrightbigg=41,e.prime=8242,e.productdisplay=8719,e.producttext=8719,e.radicalbig=8730,e.radicalBig=8730,e.radicalBigg=8730,e.radicalbigg=8730,e.radicalbt=8730,e.radicaltp=8730,e.radicalvertex=8730,e.slashbig=47,e.slashBig=47,e.slashBigg=47,e.slashbigg=47,e.summationdisplay=8721,e.summationtext=8721,e.tildewide=732,e.tildewider=732,e.tildewidest=732,e.uniondisplay=8899,e.unionmultidisplay=8846,e.unionmultitext=8846,e.unionsqdisplay=8852,e.unionsqtext=8852,e.uniontext=8899,e.vextenddouble=8741,e.vextendsingle=8739}),a=r(function(e){e.space=32,e.a1=9985,e.a2=9986,e.a202=9987,e.a3=9988,e.a4=9742,e.a5=9990,e.a119=9991,e.a118=9992,e.a117=9993,e.a11=9755,e.a12=9758,e.a13=9996,e.a14=9997,e.a15=9998,e.a16=9999,e.a105=1e4,e.a17=10001,e.a18=10002,e.a19=10003,e.a20=10004,e.a21=10005,e.a22=10006,e.a23=10007,e.a24=10008,e.a25=10009,e.a26=10010,e.a27=10011,e.a28=10012,e.a6=10013,e.a7=10014,e.a8=10015,e.a9=10016,e.a10=10017,e.a29=10018,e.a30=10019,e.a31=10020,e.a32=10021,e.a33=10022,e.a34=10023,e.a35=9733,e.a36=10025,e.a37=10026,e.a38=10027,e.a39=10028,e.a40=10029,e.a41=10030,e.a42=10031,e.a43=10032,e.a44=10033,e.a45=10034,e.a46=10035,e.a47=10036,e.a48=10037,e.a49=10038,e.a50=10039,e.a51=10040,e.a52=10041,e.a53=10042,e.a54=10043,e.a55=10044,e.a56=10045,e.a57=10046,e.a58=10047,e.a59=10048,e.a60=10049,e.a61=10050,e.a62=10051,e.a63=10052,e.a64=10053,e.a65=10054,e.a66=10055,e.a67=10056,e.a68=10057,e.a69=10058,e.a70=10059,e.a71=9679,e.a72=10061,e.a73=9632,e.a74=10063,e.a203=10064,e.a75=10065,e.a204=10066,e.a76=9650,e.a77=9660,e.a78=9670,e.a79=10070,e.a81=9687,e.a82=10072,e.a83=10073,e.a84=10074,e.a97=10075,e.a98=10076,e.a99=10077,e.a100=10078,e.a101=10081,e.a102=10082,e.a103=10083,e.a104=10084,e.a106=10085,e.a107=10086,e.a108=10087,e.a112=9827,e.a111=9830,e.a110=9829,e.a109=9824,e.a120=9312,e.a121=9313,e.a122=9314,e.a123=9315,e.a124=9316,e.a125=9317,e.a126=9318,e.a127=9319,e.a128=9320,e.a129=9321,e.a130=10102,e.a131=10103,e.a132=10104,e.a133=10105,e.a134=10106,e.a135=10107,e.a136=10108,e.a137=10109,e.a138=10110,e.a139=10111,e.a140=10112,e.a141=10113,e.a142=10114,e.a143=10115,e.a144=10116,e.a145=10117,e.a146=10118,e.a147=10119,e.a148=10120,e.a149=10121,e.a150=10122,e.a151=10123,e.a152=10124,e.a153=10125,e.a154=10126,e.a155=10127,e.a156=10128,e.a157=10129,e.a158=10130,e.a159=10131,e.a160=10132,e.a161=8594,e.a163=8596,e.a164=8597,e.a196=10136,e.a165=10137,e.a192=10138,e.a166=10139,e.a167=10140,e.a168=10141,e.a169=10142,e.a170=10143,e.a171=10144,e.a172=10145,e.a173=10146,e.a162=10147,e.a174=10148,e.a175=10149,e.a176=10150,e.a177=10151,e.a178=10152,e.a179=10153,e.a193=10154,e.a180=10155,e.a199=10156,e.a181=10157,e.a200=10158,e.a182=10159,e.a201=10161,e.a183=10162,e.a184=10163,e.a197=10164,e.a185=10165,e.a194=10166,e.a198=10167,e.a186=10168,e.a195=10169,e.a187=10170,e.a188=10171,e.a189=10172,e.a190=10173,e.a191=10174,e.a89=10088,e.a90=10089,e.a93=10090,e.a94=10091,e.a91=10092,e.a92=10093,e.a205=10094,e.a85=10095,e.a206=10096,e.a86=10097,e.a87=10098,e.a88=10099,e.a95=10100,e.a96=10101,e[".notdef"]=0});t.getGlyphsUnicode=i,t.getDingbatsGlyphsUnicode=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSupplementalGlyphMapForCalibri=t.getSupplementalGlyphMapForArialBlack=t.getGlyphMapForStandardFonts=t.getSymbolsFonts=t.getSerifFonts=t.getNonStdFontMap=t.getStdFontMap=void 0;var r=n(8);const i=(0,r.getLookupTableFactory)(function(e){e.ArialNarrow="Helvetica",e["ArialNarrow-Bold"]="Helvetica-Bold",e["ArialNarrow-BoldItalic"]="Helvetica-BoldOblique",e["ArialNarrow-Italic"]="Helvetica-Oblique",e.ArialBlack="Helvetica",e["ArialBlack-Bold"]="Helvetica-Bold",e["ArialBlack-BoldItalic"]="Helvetica-BoldOblique",e["ArialBlack-Italic"]="Helvetica-Oblique",e["Arial-Black"]="Helvetica",e["Arial-Black-Bold"]="Helvetica-Bold",e["Arial-Black-BoldItalic"]="Helvetica-BoldOblique",e["Arial-Black-Italic"]="Helvetica-Oblique",e.Arial="Helvetica",e["Arial-Bold"]="Helvetica-Bold",e["Arial-BoldItalic"]="Helvetica-BoldOblique",e["Arial-Italic"]="Helvetica-Oblique",e["Arial-BoldItalicMT"]="Helvetica-BoldOblique",e["Arial-BoldMT"]="Helvetica-Bold",e["Arial-ItalicMT"]="Helvetica-Oblique",e.ArialMT="Helvetica",e["Courier-Bold"]="Courier-Bold",e["Courier-BoldItalic"]="Courier-BoldOblique",e["Courier-Italic"]="Courier-Oblique",e.CourierNew="Courier",e["CourierNew-Bold"]="Courier-Bold",e["CourierNew-BoldItalic"]="Courier-BoldOblique",e["CourierNew-Italic"]="Courier-Oblique",e["CourierNewPS-BoldItalicMT"]="Courier-BoldOblique",e["CourierNewPS-BoldMT"]="Courier-Bold",e["CourierNewPS-ItalicMT"]="Courier-Oblique",e.CourierNewPSMT="Courier",e.Helvetica="Helvetica",e["Helvetica-Bold"]="Helvetica-Bold",e["Helvetica-BoldItalic"]="Helvetica-BoldOblique",e["Helvetica-BoldOblique"]="Helvetica-BoldOblique",e["Helvetica-Italic"]="Helvetica-Oblique",e["Helvetica-Oblique"]="Helvetica-Oblique",e["Symbol-Bold"]="Symbol",e["Symbol-BoldItalic"]="Symbol",e["Symbol-Italic"]="Symbol",e.TimesNewRoman="Times-Roman",e["TimesNewRoman-Bold"]="Times-Bold",e["TimesNewRoman-BoldItalic"]="Times-BoldItalic",e["TimesNewRoman-Italic"]="Times-Italic",e.TimesNewRomanPS="Times-Roman",e["TimesNewRomanPS-Bold"]="Times-Bold",e["TimesNewRomanPS-BoldItalic"]="Times-BoldItalic",e["TimesNewRomanPS-BoldItalicMT"]="Times-BoldItalic",e["TimesNewRomanPS-BoldMT"]="Times-Bold",e["TimesNewRomanPS-Italic"]="Times-Italic",e["TimesNewRomanPS-ItalicMT"]="Times-Italic",e.TimesNewRomanPSMT="Times-Roman",e["TimesNewRomanPSMT-Bold"]="Times-Bold",e["TimesNewRomanPSMT-BoldItalic"]="Times-BoldItalic",e["TimesNewRomanPSMT-Italic"]="Times-Italic"});t.getStdFontMap=i;const a=(0,r.getLookupTableFactory)(function(e){e.Calibri="Helvetica",e["Calibri-Bold"]="Helvetica-Bold",e["Calibri-BoldItalic"]="Helvetica-BoldOblique",e["Calibri-Italic"]="Helvetica-Oblique",e.CenturyGothic="Helvetica",e["CenturyGothic-Bold"]="Helvetica-Bold",e["CenturyGothic-BoldItalic"]="Helvetica-BoldOblique",e["CenturyGothic-Italic"]="Helvetica-Oblique",e.ComicSansMS="Comic Sans MS",e["ComicSansMS-Bold"]="Comic Sans MS-Bold",e["ComicSansMS-BoldItalic"]="Comic Sans MS-BoldItalic",e["ComicSansMS-Italic"]="Comic Sans MS-Italic",e.LucidaConsole="Courier",e["LucidaConsole-Bold"]="Courier-Bold",e["LucidaConsole-BoldItalic"]="Courier-BoldOblique",e["LucidaConsole-Italic"]="Courier-Oblique",e["LucidaSans-Demi"]="Helvetica-Bold",e["MS-Gothic"]="MS Gothic",e["MS-Gothic-Bold"]="MS Gothic-Bold",e["MS-Gothic-BoldItalic"]="MS Gothic-BoldItalic",e["MS-Gothic-Italic"]="MS Gothic-Italic",e["MS-Mincho"]="MS Mincho",e["MS-Mincho-Bold"]="MS Mincho-Bold",e["MS-Mincho-BoldItalic"]="MS Mincho-BoldItalic",e["MS-Mincho-Italic"]="MS Mincho-Italic",e["MS-PGothic"]="MS PGothic",e["MS-PGothic-Bold"]="MS PGothic-Bold",e["MS-PGothic-BoldItalic"]="MS PGothic-BoldItalic",e["MS-PGothic-Italic"]="MS PGothic-Italic",e["MS-PMincho"]="MS PMincho",e["MS-PMincho-Bold"]="MS PMincho-Bold",e["MS-PMincho-BoldItalic"]="MS PMincho-BoldItalic",e["MS-PMincho-Italic"]="MS PMincho-Italic",e.NuptialScript="Times-Italic",e.SegoeUISymbol="Helvetica",e.Wingdings="ZapfDingbats",e["Wingdings-Regular"]="ZapfDingbats"});t.getNonStdFontMap=a;const o=(0,r.getLookupTableFactory)(function(e){e["Adobe Jenson"]=!0,e["Adobe Text"]=!0,e.Albertus=!0,e.Aldus=!0,e.Alexandria=!0,e.Algerian=!0,e["American Typewriter"]=!0,e.Antiqua=!0,e.Apex=!0,e.Arno=!0,e.Aster=!0,e.Aurora=!0,e.Baskerville=!0,e.Bell=!0,e.Bembo=!0,e["Bembo Schoolbook"]=!0,e.Benguiat=!0,e["Berkeley Old Style"]=!0,e["Bernhard Modern"]=!0,e["Berthold City"]=!0,e.Bodoni=!0,e["Bauer Bodoni"]=!0,e["Book Antiqua"]=!0,e.Bookman=!0,e["Bordeaux Roman"]=!0,e["Californian FB"]=!0,e.Calisto=!0,e.Calvert=!0,e.Capitals=!0,e.Cambria=!0,e.Cartier=!0,e.Caslon=!0,e.Catull=!0,e.Centaur=!0,e["Century Old Style"]=!0,e["Century Schoolbook"]=!0,e.Chaparral=!0,e["Charis SIL"]=!0,e.Cheltenham=!0,e["Cholla Slab"]=!0,e.Clarendon=!0,e.Clearface=!0,e.Cochin=!0,e.Colonna=!0,e["Computer Modern"]=!0,e["Concrete Roman"]=!0,e.Constantia=!0,e["Cooper Black"]=!0,e.Corona=!0,e.Ecotype=!0,e.Egyptienne=!0,e.Elephant=!0,e.Excelsior=!0,e.Fairfield=!0,e["FF Scala"]=!0,e.Folkard=!0,e.Footlight=!0,e.FreeSerif=!0,e["Friz Quadrata"]=!0,e.Garamond=!0,e.Gentium=!0,e.Georgia=!0,e.Gloucester=!0,e["Goudy Old Style"]=!0,e["Goudy Schoolbook"]=!0,e["Goudy Pro Font"]=!0,e.Granjon=!0,e["Guardian Egyptian"]=!0,e.Heather=!0,e.Hercules=!0,e["High Tower Text"]=!0,e.Hiroshige=!0,e["Hoefler Text"]=!0,e["Humana Serif"]=!0,e.Imprint=!0,e["Ionic No. 5"]=!0,e.Janson=!0,e.Joanna=!0,e.Korinna=!0,e.Lexicon=!0,e["Liberation Serif"]=!0,e["Linux Libertine"]=!0,e.Literaturnaya=!0,e.Lucida=!0,e["Lucida Bright"]=!0,e.Melior=!0,e.Memphis=!0,e.Miller=!0,e.Minion=!0,e.Modern=!0,e["Mona Lisa"]=!0,e["Mrs Eaves"]=!0,e["MS Serif"]=!0,e["Museo Slab"]=!0,e["New York"]=!0,e["Nimbus Roman"]=!0,e["NPS Rawlinson Roadway"]=!0,e.NuptialScript=!0,e.Palatino=!0,e.Perpetua=!0,e.Plantin=!0,e["Plantin Schoolbook"]=!0,e.Playbill=!0,e["Poor Richard"]=!0,e["Rawlinson Roadway"]=!0,e.Renault=!0,e.Requiem=!0,e.Rockwell=!0,e.Roman=!0,e["Rotis Serif"]=!0,e.Sabon=!0,e.Scala=!0,e.Seagull=!0,e.Sistina=!0,e.Souvenir=!0,e.STIX=!0,e["Stone Informal"]=!0,e["Stone Serif"]=!0,e.Sylfaen=!0,e.Times=!0,e.Trajan=!0,e["Trinité"]=!0,e["Trump Mediaeval"]=!0,e.Utopia=!0,e["Vale Type"]=!0,e["Bitstream Vera"]=!0,e["Vera Serif"]=!0,e.Versailles=!0,e.Wanted=!0,e.Weiss=!0,e["Wide Latin"]=!0,e.Windsor=!0,e.XITS=!0});t.getSerifFonts=o;const s=(0,r.getLookupTableFactory)(function(e){e.Dingbats=!0,e.Symbol=!0,e.ZapfDingbats=!0});t.getSymbolsFonts=s;const l=(0,r.getLookupTableFactory)(function(e){e[2]=10,e[3]=32,e[4]=33,e[5]=34,e[6]=35,e[7]=36,e[8]=37,e[9]=38,e[10]=39,e[11]=40,e[12]=41,e[13]=42,e[14]=43,e[15]=44,e[16]=45,e[17]=46,e[18]=47,e[19]=48,e[20]=49,e[21]=50,e[22]=51,e[23]=52,e[24]=53,e[25]=54,e[26]=55,e[27]=56,e[28]=57,e[29]=58,e[30]=894,e[31]=60,e[32]=61,e[33]=62,e[34]=63,e[35]=64,e[36]=65,e[37]=66,e[38]=67,e[39]=68,e[40]=69,e[41]=70,e[42]=71,e[43]=72,e[44]=73,e[45]=74,e[46]=75,e[47]=76,e[48]=77,e[49]=78,e[50]=79,e[51]=80,e[52]=81,e[53]=82,e[54]=83,e[55]=84,e[56]=85,e[57]=86,e[58]=87,e[59]=88,e[60]=89,e[61]=90,e[62]=91,e[63]=92,e[64]=93,e[65]=94,e[66]=95,e[67]=96,e[68]=97,e[69]=98,e[70]=99,e[71]=100,e[72]=101,e[73]=102,e[74]=103,e[75]=104,e[76]=105,e[77]=106,e[78]=107,e[79]=108,e[80]=109,e[81]=110,e[82]=111,e[83]=112,e[84]=113,e[85]=114,e[86]=115,e[87]=116,e[88]=117,e[89]=118,e[90]=119,e[91]=120,e[92]=121,e[93]=122,e[94]=123,e[95]=124,e[96]=125,e[97]=126,e[98]=196,e[99]=197,e[100]=199,e[101]=201,e[102]=209,e[103]=214,e[104]=220,e[105]=225,e[106]=224,e[107]=226,e[108]=228,e[109]=227,e[110]=229,e[111]=231,e[112]=233,e[113]=232,e[114]=234,e[115]=235,e[116]=237,e[117]=236,e[118]=238,e[119]=239,e[120]=241,e[121]=243,e[122]=242,e[123]=244,e[124]=246,e[125]=245,e[126]=250,e[127]=249,e[128]=251,e[129]=252,e[130]=8224,e[131]=176,e[132]=162,e[133]=163,e[134]=167,e[135]=8226,e[136]=182,e[137]=223,e[138]=174,e[139]=169,e[140]=8482,e[141]=180,e[142]=168,e[143]=8800,e[144]=198,e[145]=216,e[146]=8734,e[147]=177,e[148]=8804,e[149]=8805,e[150]=165,e[151]=181,e[152]=8706,e[153]=8721,e[154]=8719,e[156]=8747,e[157]=170,e[158]=186,e[159]=8486,e[160]=230,e[161]=248,e[162]=191,e[163]=161,e[164]=172,e[165]=8730,e[166]=402,e[167]=8776,e[168]=8710,e[169]=171,e[170]=187,e[171]=8230,e[210]=218,e[223]=711,e[224]=321,e[225]=322,e[227]=353,e[229]=382,e[234]=253,e[252]=263,e[253]=268,e[254]=269,e[258]=258,e[260]=260,e[261]=261,e[265]=280,e[266]=281,e[268]=283,e[269]=313,e[275]=323,e[276]=324,e[278]=328,e[284]=345,e[285]=346,e[286]=347,e[292]=367,e[295]=377,e[296]=378,e[298]=380,e[305]=963,e[306]=964,e[307]=966,e[308]=8215,e[309]=8252,e[310]=8319,e[311]=8359,e[312]=8592,e[313]=8593,e[337]=9552,e[493]=1039,e[494]=1040,e[705]=1524,e[706]=8362,e[710]=64288,e[711]=64298,e[759]=1617,e[761]=1776,e[763]=1778,e[775]=1652,e[777]=1764,e[778]=1780,e[779]=1781,e[780]=1782,e[782]=771,e[783]=64726,e[786]=8363,e[788]=8532,e[790]=768,e[791]=769,e[792]=768,e[795]=803,e[797]=64336,e[798]=64337,e[799]=64342,e[800]=64343,e[801]=64344,e[802]=64345,e[803]=64362,e[804]=64363,e[805]=64364,e[2424]=7821,e[2425]=7822,e[2426]=7823,e[2427]=7824,e[2428]=7825,e[2429]=7826,e[2430]=7827,e[2433]=7682,e[2678]=8045,e[2679]=8046,e[2830]=1552,e[2838]=686,e[2840]=751,e[2842]=753,e[2843]=754,e[2844]=755,e[2846]=757,e[2856]=767,e[2857]=848,e[2858]=849,e[2862]=853,e[2863]=854,e[2864]=855,e[2865]=861,e[2866]=862,e[2906]=7460,e[2908]=7462,e[2909]=7463,e[2910]=7464,e[2912]=7466,e[2913]=7467,e[2914]=7468,e[2916]=7470,e[2917]=7471,e[2918]=7472,e[2920]=7474,e[2921]=7475,e[2922]=7476,e[2924]=7478,e[2925]=7479,e[2926]=7480,e[2928]=7482,e[2929]=7483,e[2930]=7484,e[2932]=7486,e[2933]=7487,e[2934]=7488,e[2936]=7490,e[2937]=7491,e[2938]=7492,e[2940]=7494,e[2941]=7495,e[2942]=7496,e[2944]=7498,e[2946]=7500,e[2948]=7502,e[2950]=7504,e[2951]=7505,e[2952]=7506,e[2954]=7508,e[2955]=7509,e[2956]=7510,e[2958]=7512,e[2959]=7513,e[2960]=7514,e[2962]=7516,e[2963]=7517,e[2964]=7518,e[2966]=7520,e[2967]=7521,e[2968]=7522,e[2970]=7524,e[2971]=7525,e[2972]=7526,e[2974]=7528,e[2975]=7529,e[2976]=7530,e[2978]=1537,e[2979]=1538,e[2980]=1539,e[2982]=1549,e[2983]=1551,e[2984]=1552,e[2986]=1554,e[2987]=1555,e[2988]=1556,e[2990]=1623,e[2991]=1624,e[2995]=1775,e[2999]=1791,e[3002]=64290,e[3003]=64291,e[3004]=64292,e[3006]=64294,e[3007]=64295,e[3008]=64296,e[3011]=1900,e[3014]=8223,e[3015]=8244,e[3017]=7532,e[3018]=7533,e[3019]=7534,e[3075]=7590,e[3076]=7591,e[3079]=7594,e[3080]=7595,e[3083]=7598,e[3084]=7599,e[3087]=7602,e[3088]=7603,e[3091]=7606,e[3092]=7607,e[3095]=7610,e[3096]=7611,e[3099]=7614,e[3100]=7615,e[3103]=7618,e[3104]=7619,e[3107]=8337,e[3108]=8338,e[3116]=1884,e[3119]=1885,e[3120]=1885,e[3123]=1886,e[3124]=1886,e[3127]=1887,e[3128]=1887,e[3131]=1888,e[3132]=1888,e[3135]=1889,e[3136]=1889,e[3139]=1890,e[3140]=1890,e[3143]=1891,e[3144]=1891,e[3147]=1892,e[3148]=1892,e[3153]=580,e[3154]=581,e[3157]=584,e[3158]=585,e[3161]=588,e[3162]=589,e[3165]=891,e[3166]=892,e[3169]=1274,e[3170]=1275,e[3173]=1278,e[3174]=1279,e[3181]=7622,e[3182]=7623,e[3282]=11799,e[3316]=578,e[3379]=42785,e[3393]=1159,e[3416]=8377});t.getGlyphMapForStandardFonts=l;const c=(0,r.getLookupTableFactory)(function(e){e[227]=322,e[264]=261,e[291]=346});t.getSupplementalGlyphMapForArialBlack=c;const u=(0,r.getLookupTableFactory)(function(e){e[1]=32,e[4]=65,e[17]=66,e[18]=67,e[24]=68,e[28]=69,e[38]=70,e[39]=71,e[44]=72,e[47]=73,e[58]=74,e[60]=75,e[62]=76,e[68]=77,e[69]=78,e[75]=79,e[87]=80,e[89]=81,e[90]=82,e[94]=83,e[100]=84,e[104]=85,e[115]=86,e[116]=87,e[121]=88,e[122]=89,e[127]=90,e[258]=97,e[268]=261,e[271]=98,e[272]=99,e[273]=263,e[282]=100,e[286]=101,e[295]=281,e[296]=102,e[336]=103,e[346]=104,e[349]=105,e[361]=106,e[364]=107,e[367]=108,e[371]=322,e[373]=109,e[374]=110,e[381]=111,e[383]=243,e[393]=112,e[395]=113,e[396]=114,e[400]=115,e[401]=347,e[410]=116,e[437]=117,e[448]=118,e[449]=119,e[454]=120,e[455]=121,e[460]=122,e[463]=380,e[853]=44,e[855]=58,e[856]=46,e[876]=47,e[878]=45,e[882]=45,e[894]=40,e[895]=41,e[896]=91,e[897]=93,e[923]=64,e[1004]=48,e[1005]=49,e[1006]=50,e[1007]=51,e[1008]=52,e[1009]=53,e[1010]=54,e[1011]=55,e[1012]=56,e[1013]=57,e[1081]=37,e[1085]=43,e[1086]=45});t.getSupplementalGlyphMapForCalibri=u},function(e,t,n){var r=n(8).getLookupTableFactory,i=r(function(e){e[63721]=169,e[63193]=169,e[63720]=174,e[63194]=174,e[63722]=8482,e[63195]=8482,e[63729]=9127,e[63730]=9128,e[63731]=9129,e[63740]=9131,e[63741]=9132,e[63742]=9133,e[63726]=9121,e[63727]=9122,e[63728]=9123,e[63737]=9124,e[63738]=9125,e[63739]=9126,e[63723]=9115,e[63724]=9116,e[63725]=9117,e[63734]=9118,e[63735]=9119,e[63736]=9120});var a=[{begin:0,end:127},{begin:128,end:255},{begin:256,end:383},{begin:384,end:591},{begin:592,end:687},{begin:688,end:767},{begin:768,end:879},{begin:880,end:1023},{begin:11392,end:11519},{begin:1024,end:1279},{begin:1328,end:1423},{begin:1424,end:1535},{begin:42240,end:42559},{begin:1536,end:1791},{begin:1984,end:2047},{begin:2304,end:2431},{begin:2432,end:2559},{begin:2560,end:2687},{begin:2688,end:2815},{begin:2816,end:2943},{begin:2944,end:3071},{begin:3072,end:3199},{begin:3200,end:3327},{begin:3328,end:3455},{begin:3584,end:3711},{begin:3712,end:3839},{begin:4256,end:4351},{begin:6912,end:7039},{begin:4352,end:4607},{begin:7680,end:7935},{begin:7936,end:8191},{begin:8192,end:8303},{begin:8304,end:8351},{begin:8352,end:8399},{begin:8400,end:8447},{begin:8448,end:8527},{begin:8528,end:8591},{begin:8592,end:8703},{begin:8704,end:8959},{begin:8960,end:9215},{begin:9216,end:9279},{begin:9280,end:9311},{begin:9312,end:9471},{begin:9472,end:9599},{begin:9600,end:9631},{begin:9632,end:9727},{begin:9728,end:9983},{begin:9984,end:10175},{begin:12288,end:12351},{begin:12352,end:12447},{begin:12448,end:12543},{begin:12544,end:12591},{begin:12592,end:12687},{begin:43072,end:43135},{begin:12800,end:13055},{begin:13056,end:13311},{begin:44032,end:55215},{begin:55296,end:57343},{begin:67840,end:67871},{begin:19968,end:40959},{begin:57344,end:63743},{begin:12736,end:12783},{begin:64256,end:64335},{begin:64336,end:65023},{begin:65056,end:65071},{begin:65040,end:65055},{begin:65104,end:65135},{begin:65136,end:65279},{begin:65280,end:65519},{begin:65520,end:65535},{begin:3840,end:4095},{begin:1792,end:1871},{begin:1920,end:1983},{begin:3456,end:3583},{begin:4096,end:4255},{begin:4608,end:4991},{begin:5024,end:5119},{begin:5120,end:5759},{begin:5760,end:5791},{begin:5792,end:5887},{begin:6016,end:6143},{begin:6144,end:6319},{begin:10240,end:10495},{begin:40960,end:42127},{begin:5888,end:5919},{begin:66304,end:66351},{begin:66352,end:66383},{begin:66560,end:66639},{begin:118784,end:119039},{begin:119808,end:120831},{begin:1044480,end:1048573},{begin:65024,end:65039},{begin:917504,end:917631},{begin:6400,end:6479},{begin:6480,end:6527},{begin:6528,end:6623},{begin:6656,end:6687},{begin:11264,end:11359},{begin:11568,end:11647},{begin:19904,end:19967},{begin:43008,end:43055},{begin:65536,end:65663},{begin:65856,end:65935},{begin:66432,end:66463},{begin:66464,end:66527},{begin:66640,end:66687},{begin:66688,end:66735},{begin:67584,end:67647},{begin:68096,end:68191},{begin:119552,end:119647},{begin:73728,end:74751},{begin:119648,end:119679},{begin:7040,end:7103},{begin:7168,end:7247},{begin:7248,end:7295},{begin:43136,end:43231},{begin:43264,end:43311},{begin:43312,end:43359},{begin:43520,end:43615},{begin:65936,end:65999},{begin:66e3,end:66047},{begin:66208,end:66271},{begin:127024,end:127135}];var o=r(function(e){e["¨"]=" ̈",e["¯"]=" ̄",e["´"]=" ́",e["µ"]="μ",e["¸"]=" ̧",e["IJ"]="IJ",e["ij"]="ij",e["Ŀ"]="L·",e["ŀ"]="l·",e["ʼn"]="ʼn",e["ſ"]="s",e["DŽ"]="DŽ",e["Dž"]="Dž",e["dž"]="dž",e["LJ"]="LJ",e["Lj"]="Lj",e["lj"]="lj",e["NJ"]="NJ",e["Nj"]="Nj",e["nj"]="nj",e["DZ"]="DZ",e["Dz"]="Dz",e["dz"]="dz",e["˘"]=" ̆",e["˙"]=" ̇",e["˚"]=" ̊",e["˛"]=" ̨",e["˜"]=" ̃",e["˝"]=" ̋",e["ͺ"]=" ͅ",e["΄"]=" ́",e["ϐ"]="β",e["ϑ"]="θ",e["ϒ"]="Υ",e["ϕ"]="φ",e["ϖ"]="π",e["ϰ"]="κ",e["ϱ"]="ρ",e["ϲ"]="ς",e["ϴ"]="Θ",e["ϵ"]="ε",e["Ϲ"]="Σ",e["և"]="եւ",e["ٵ"]="اٴ",e["ٶ"]="وٴ",e["ٷ"]="ۇٴ",e["ٸ"]="يٴ",e["ำ"]="ํา",e["ຳ"]="ໍາ",e["ໜ"]="ຫນ",e["ໝ"]="ຫມ",e["ཷ"]="ྲཱྀ",e["ཹ"]="ླཱྀ",e["ẚ"]="aʾ",e["᾽"]=" ̓",e["᾿"]=" ̓",e["῀"]=" ͂",e["῾"]=" ̔",e[" "]=" ",e[" "]=" ",e[" "]=" ",e[" "]=" ",e[" "]=" ",e[" "]=" ",e[" "]=" ",e[" "]=" ",e["‗"]=" ̳",e["․"]=".",e["‥"]="..",e["…"]="...",e["″"]="′′",e["‴"]="′′′",e["‶"]="‵‵",e["‷"]="‵‵‵",e["‼"]="!!",e["‾"]=" ̅",e["⁇"]="??",e["⁈"]="?!",e["⁉"]="!?",e["⁗"]="′′′′",e[" "]=" ",e["₨"]="Rs",e["℀"]="a/c",e["℁"]="a/s",e["℃"]="°C",e["℅"]="c/o",e["℆"]="c/u",e["ℇ"]="Ɛ",e["℉"]="°F",e["№"]="No",e["℡"]="TEL",e["ℵ"]="א",e["ℶ"]="ב",e["ℷ"]="ג",e["ℸ"]="ד",e["℻"]="FAX",e["Ⅰ"]="I",e["Ⅱ"]="II",e["Ⅲ"]="III",e["Ⅳ"]="IV",e["Ⅴ"]="V",e["Ⅵ"]="VI",e["Ⅶ"]="VII",e["Ⅷ"]="VIII",e["Ⅸ"]="IX",e["Ⅹ"]="X",e["Ⅺ"]="XI",e["Ⅻ"]="XII",e["Ⅼ"]="L",e["Ⅽ"]="C",e["Ⅾ"]="D",e["Ⅿ"]="M",e["ⅰ"]="i",e["ⅱ"]="ii",e["ⅲ"]="iii",e["ⅳ"]="iv",e["ⅴ"]="v",e["ⅵ"]="vi",e["ⅶ"]="vii",e["ⅷ"]="viii",e["ⅸ"]="ix",e["ⅹ"]="x",e["ⅺ"]="xi",e["ⅻ"]="xii",e["ⅼ"]="l",e["ⅽ"]="c",e["ⅾ"]="d",e["ⅿ"]="m",e["∬"]="∫∫",e["∭"]="∫∫∫",e["∯"]="∮∮",e["∰"]="∮∮∮",e["⑴"]="(1)",e["⑵"]="(2)",e["⑶"]="(3)",e["⑷"]="(4)",e["⑸"]="(5)",e["⑹"]="(6)",e["⑺"]="(7)",e["⑻"]="(8)",e["⑼"]="(9)",e["⑽"]="(10)",e["⑾"]="(11)",e["⑿"]="(12)",e["⒀"]="(13)",e["⒁"]="(14)",e["⒂"]="(15)",e["⒃"]="(16)",e["⒄"]="(17)",e["⒅"]="(18)",e["⒆"]="(19)",e["⒇"]="(20)",e["⒈"]="1.",e["⒉"]="2.",e["⒊"]="3.",e["⒋"]="4.",e["⒌"]="5.",e["⒍"]="6.",e["⒎"]="7.",e["⒏"]="8.",e["⒐"]="9.",e["⒑"]="10.",e["⒒"]="11.",e["⒓"]="12.",e["⒔"]="13.",e["⒕"]="14.",e["⒖"]="15.",e["⒗"]="16.",e["⒘"]="17.",e["⒙"]="18.",e["⒚"]="19.",e["⒛"]="20.",e["⒜"]="(a)",e["⒝"]="(b)",e["⒞"]="(c)",e["⒟"]="(d)",e["⒠"]="(e)",e["⒡"]="(f)",e["⒢"]="(g)",e["⒣"]="(h)",e["⒤"]="(i)",e["⒥"]="(j)",e["⒦"]="(k)",e["⒧"]="(l)",e["⒨"]="(m)",e["⒩"]="(n)",e["⒪"]="(o)",e["⒫"]="(p)",e["⒬"]="(q)",e["⒭"]="(r)",e["⒮"]="(s)",e["⒯"]="(t)",e["⒰"]="(u)",e["⒱"]="(v)",e["⒲"]="(w)",e["⒳"]="(x)",e["⒴"]="(y)",e["⒵"]="(z)",e["⨌"]="∫∫∫∫",e["⩴"]="::=",e["⩵"]="==",e["⩶"]="===",e["⺟"]="母",e["⻳"]="龟",e["⼀"]="一",e["⼁"]="丨",e["⼂"]="丶",e["⼃"]="丿",e["⼄"]="乙",e["⼅"]="亅",e["⼆"]="二",e["⼇"]="亠",e["⼈"]="人",e["⼉"]="儿",e["⼊"]="入",e["⼋"]="八",e["⼌"]="冂",e["⼍"]="冖",e["⼎"]="冫",e["⼏"]="几",e["⼐"]="凵",e["⼑"]="刀",e["⼒"]="力",e["⼓"]="勹",e["⼔"]="匕",e["⼕"]="匚",e["⼖"]="匸",e["⼗"]="十",e["⼘"]="卜",e["⼙"]="卩",e["⼚"]="厂",e["⼛"]="厶",e["⼜"]="又",e["⼝"]="口",e["⼞"]="囗",e["⼟"]="土",e["⼠"]="士",e["⼡"]="夂",e["⼢"]="夊",e["⼣"]="夕",e["⼤"]="大",e["⼥"]="女",e["⼦"]="子",e["⼧"]="宀",e["⼨"]="寸",e["⼩"]="小",e["⼪"]="尢",e["⼫"]="尸",e["⼬"]="屮",e["⼭"]="山",e["⼮"]="巛",e["⼯"]="工",e["⼰"]="己",e["⼱"]="巾",e["⼲"]="干",e["⼳"]="幺",e["⼴"]="广",e["⼵"]="廴",e["⼶"]="廾",e["⼷"]="弋",e["⼸"]="弓",e["⼹"]="彐",e["⼺"]="彡",e["⼻"]="彳",e["⼼"]="心",e["⼽"]="戈",e["⼾"]="戶",e["⼿"]="手",e["⽀"]="支",e["⽁"]="攴",e["⽂"]="文",e["⽃"]="斗",e["⽄"]="斤",e["⽅"]="方",e["⽆"]="无",e["⽇"]="日",e["⽈"]="曰",e["⽉"]="月",e["⽊"]="木",e["⽋"]="欠",e["⽌"]="止",e["⽍"]="歹",e["⽎"]="殳",e["⽏"]="毋",e["⽐"]="比",e["⽑"]="毛",e["⽒"]="氏",e["⽓"]="气",e["⽔"]="水",e["⽕"]="火",e["⽖"]="爪",e["⽗"]="父",e["⽘"]="爻",e["⽙"]="爿",e["⽚"]="片",e["⽛"]="牙",e["⽜"]="牛",e["⽝"]="犬",e["⽞"]="玄",e["⽟"]="玉",e["⽠"]="瓜",e["⽡"]="瓦",e["⽢"]="甘",e["⽣"]="生",e["⽤"]="用",e["⽥"]="田",e["⽦"]="疋",e["⽧"]="疒",e["⽨"]="癶",e["⽩"]="白",e["⽪"]="皮",e["⽫"]="皿",e["⽬"]="目",e["⽭"]="矛",e["⽮"]="矢",e["⽯"]="石",e["⽰"]="示",e["⽱"]="禸",e["⽲"]="禾",e["⽳"]="穴",e["⽴"]="立",e["⽵"]="竹",e["⽶"]="米",e["⽷"]="糸",e["⽸"]="缶",e["⽹"]="网",e["⽺"]="羊",e["⽻"]="羽",e["⽼"]="老",e["⽽"]="而",e["⽾"]="耒",e["⽿"]="耳",e["⾀"]="聿",e["⾁"]="肉",e["⾂"]="臣",e["⾃"]="自",e["⾄"]="至",e["⾅"]="臼",e["⾆"]="舌",e["⾇"]="舛",e["⾈"]="舟",e["⾉"]="艮",e["⾊"]="色",e["⾋"]="艸",e["⾌"]="虍",e["⾍"]="虫",e["⾎"]="血",e["⾏"]="行",e["⾐"]="衣",e["⾑"]="襾",e["⾒"]="見",e["⾓"]="角",e["⾔"]="言",e["⾕"]="谷",e["⾖"]="豆",e["⾗"]="豕",e["⾘"]="豸",e["⾙"]="貝",e["⾚"]="赤",e["⾛"]="走",e["⾜"]="足",e["⾝"]="身",e["⾞"]="車",e["⾟"]="辛",e["⾠"]="辰",e["⾡"]="辵",e["⾢"]="邑",e["⾣"]="酉",e["⾤"]="釆",e["⾥"]="里",e["⾦"]="金",e["⾧"]="長",e["⾨"]="門",e["⾩"]="阜",e["⾪"]="隶",e["⾫"]="隹",e["⾬"]="雨",e["⾭"]="靑",e["⾮"]="非",e["⾯"]="面",e["⾰"]="革",e["⾱"]="韋",e["⾲"]="韭",e["⾳"]="音",e["⾴"]="頁",e["⾵"]="風",e["⾶"]="飛",e["⾷"]="食",e["⾸"]="首",e["⾹"]="香",e["⾺"]="馬",e["⾻"]="骨",e["⾼"]="高",e["⾽"]="髟",e["⾾"]="鬥",e["⾿"]="鬯",e["⿀"]="鬲",e["⿁"]="鬼",e["⿂"]="魚",e["⿃"]="鳥",e["⿄"]="鹵",e["⿅"]="鹿",e["⿆"]="麥",e["⿇"]="麻",e["⿈"]="黃",e["⿉"]="黍",e["⿊"]="黑",e["⿋"]="黹",e["⿌"]="黽",e["⿍"]="鼎",e["⿎"]="鼓",e["⿏"]="鼠",e["⿐"]="鼻",e["⿑"]="齊",e["⿒"]="齒",e["⿓"]="龍",e["⿔"]="龜",e["⿕"]="龠",e["〶"]="〒",e["〸"]="十",e["〹"]="卄",e["〺"]="卅",e["゛"]=" ゙",e["゜"]=" ゚",e["ㄱ"]="ᄀ",e["ㄲ"]="ᄁ",e["ㄳ"]="ᆪ",e["ㄴ"]="ᄂ",e["ㄵ"]="ᆬ",e["ㄶ"]="ᆭ",e["ㄷ"]="ᄃ",e["ㄸ"]="ᄄ",e["ㄹ"]="ᄅ",e["ㄺ"]="ᆰ",e["ㄻ"]="ᆱ",e["ㄼ"]="ᆲ",e["ㄽ"]="ᆳ",e["ㄾ"]="ᆴ",e["ㄿ"]="ᆵ",e["ㅀ"]="ᄚ",e["ㅁ"]="ᄆ",e["ㅂ"]="ᄇ",e["ㅃ"]="ᄈ",e["ㅄ"]="ᄡ",e["ㅅ"]="ᄉ",e["ㅆ"]="ᄊ",e["ㅇ"]="ᄋ",e["ㅈ"]="ᄌ",e["ㅉ"]="ᄍ",e["ㅊ"]="ᄎ",e["ㅋ"]="ᄏ",e["ㅌ"]="ᄐ",e["ㅍ"]="ᄑ",e["ㅎ"]="ᄒ",e["ㅏ"]="ᅡ",e["ㅐ"]="ᅢ",e["ㅑ"]="ᅣ",e["ㅒ"]="ᅤ",e["ㅓ"]="ᅥ",e["ㅔ"]="ᅦ",e["ㅕ"]="ᅧ",e["ㅖ"]="ᅨ",e["ㅗ"]="ᅩ",e["ㅘ"]="ᅪ",e["ㅙ"]="ᅫ",e["ㅚ"]="ᅬ",e["ㅛ"]="ᅭ",e["ㅜ"]="ᅮ",e["ㅝ"]="ᅯ",e["ㅞ"]="ᅰ",e["ㅟ"]="ᅱ",e["ㅠ"]="ᅲ",e["ㅡ"]="ᅳ",e["ㅢ"]="ᅴ",e["ㅣ"]="ᅵ",e["ㅤ"]="ᅠ",e["ㅥ"]="ᄔ",e["ㅦ"]="ᄕ",e["ㅧ"]="ᇇ",e["ㅨ"]="ᇈ",e["ㅩ"]="ᇌ",e["ㅪ"]="ᇎ",e["ㅫ"]="ᇓ",e["ㅬ"]="ᇗ",e["ㅭ"]="ᇙ",e["ㅮ"]="ᄜ",e["ㅯ"]="ᇝ",e["ㅰ"]="ᇟ",e["ㅱ"]="ᄝ",e["ㅲ"]="ᄞ",e["ㅳ"]="ᄠ",e["ㅴ"]="ᄢ",e["ㅵ"]="ᄣ",e["ㅶ"]="ᄧ",e["ㅷ"]="ᄩ",e["ㅸ"]="ᄫ",e["ㅹ"]="ᄬ",e["ㅺ"]="ᄭ",e["ㅻ"]="ᄮ",e["ㅼ"]="ᄯ",e["ㅽ"]="ᄲ",e["ㅾ"]="ᄶ",e["ㅿ"]="ᅀ",e["ㆀ"]="ᅇ",e["ㆁ"]="ᅌ",e["ㆂ"]="ᇱ",e["ㆃ"]="ᇲ",e["ㆄ"]="ᅗ",e["ㆅ"]="ᅘ",e["ㆆ"]="ᅙ",e["ㆇ"]="ᆄ",e["ㆈ"]="ᆅ",e["ㆉ"]="ᆈ",e["ㆊ"]="ᆑ",e["ㆋ"]="ᆒ",e["ㆌ"]="ᆔ",e["ㆍ"]="ᆞ",e["ㆎ"]="ᆡ",e["㈀"]="(ᄀ)",e["㈁"]="(ᄂ)",e["㈂"]="(ᄃ)",e["㈃"]="(ᄅ)",e["㈄"]="(ᄆ)",e["㈅"]="(ᄇ)",e["㈆"]="(ᄉ)",e["㈇"]="(ᄋ)",e["㈈"]="(ᄌ)",e["㈉"]="(ᄎ)",e["㈊"]="(ᄏ)",e["㈋"]="(ᄐ)",e["㈌"]="(ᄑ)",e["㈍"]="(ᄒ)",e["㈎"]="(가)",e["㈏"]="(나)",e["㈐"]="(다)",e["㈑"]="(라)",e["㈒"]="(마)",e["㈓"]="(바)",e["㈔"]="(사)",e["㈕"]="(아)",e["㈖"]="(자)",e["㈗"]="(차)",e["㈘"]="(카)",e["㈙"]="(타)",e["㈚"]="(파)",e["㈛"]="(하)",e["㈜"]="(주)",e["㈝"]="(오전)",e["㈞"]="(오후)",e["㈠"]="(一)",e["㈡"]="(二)",e["㈢"]="(三)",e["㈣"]="(四)",e["㈤"]="(五)",e["㈥"]="(六)",e["㈦"]="(七)",e["㈧"]="(八)",e["㈨"]="(九)",e["㈩"]="(十)",e["㈪"]="(月)",e["㈫"]="(火)",e["㈬"]="(水)",e["㈭"]="(木)",e["㈮"]="(金)",e["㈯"]="(土)",e["㈰"]="(日)",e["㈱"]="(株)",e["㈲"]="(有)",e["㈳"]="(社)",e["㈴"]="(名)",e["㈵"]="(特)",e["㈶"]="(財)",e["㈷"]="(祝)",e["㈸"]="(労)",e["㈹"]="(代)",e["㈺"]="(呼)",e["㈻"]="(学)",e["㈼"]="(監)",e["㈽"]="(企)",e["㈾"]="(資)",e["㈿"]="(協)",e["㉀"]="(祭)",e["㉁"]="(休)",e["㉂"]="(自)",e["㉃"]="(至)",e["㋀"]="1月",e["㋁"]="2月",e["㋂"]="3月",e["㋃"]="4月",e["㋄"]="5月",e["㋅"]="6月",e["㋆"]="7月",e["㋇"]="8月",e["㋈"]="9月",e["㋉"]="10月",e["㋊"]="11月",e["㋋"]="12月",e["㍘"]="0点",e["㍙"]="1点",e["㍚"]="2点",e["㍛"]="3点",e["㍜"]="4点",e["㍝"]="5点",e["㍞"]="6点",e["㍟"]="7点",e["㍠"]="8点",e["㍡"]="9点",e["㍢"]="10点",e["㍣"]="11点",e["㍤"]="12点",e["㍥"]="13点",e["㍦"]="14点",e["㍧"]="15点",e["㍨"]="16点",e["㍩"]="17点",e["㍪"]="18点",e["㍫"]="19点",e["㍬"]="20点",e["㍭"]="21点",e["㍮"]="22点",e["㍯"]="23点",e["㍰"]="24点",e["㏠"]="1日",e["㏡"]="2日",e["㏢"]="3日",e["㏣"]="4日",e["㏤"]="5日",e["㏥"]="6日",e["㏦"]="7日",e["㏧"]="8日",e["㏨"]="9日",e["㏩"]="10日",e["㏪"]="11日",e["㏫"]="12日",e["㏬"]="13日",e["㏭"]="14日",e["㏮"]="15日",e["㏯"]="16日",e["㏰"]="17日",e["㏱"]="18日",e["㏲"]="19日",e["㏳"]="20日",e["㏴"]="21日",e["㏵"]="22日",e["㏶"]="23日",e["㏷"]="24日",e["㏸"]="25日",e["㏹"]="26日",e["㏺"]="27日",e["㏻"]="28日",e["㏼"]="29日",e["㏽"]="30日",e["㏾"]="31日",e["ff"]="ff",e["fi"]="fi",e["fl"]="fl",e["ffi"]="ffi",e["ffl"]="ffl",e["ſt"]="ſt",e["st"]="st",e["ﬓ"]="մն",e["ﬔ"]="մե",e["ﬕ"]="մի",e["ﬖ"]="վն",e["ﬗ"]="մխ",e["ﭏ"]="אל",e["ﭐ"]="ٱ",e["ﭑ"]="ٱ",e["ﭒ"]="ٻ",e["ﭓ"]="ٻ",e["ﭔ"]="ٻ",e["ﭕ"]="ٻ",e["ﭖ"]="پ",e["ﭗ"]="پ",e["ﭘ"]="پ",e["ﭙ"]="پ",e["ﭚ"]="ڀ",e["ﭛ"]="ڀ",e["ﭜ"]="ڀ",e["ﭝ"]="ڀ",e["ﭞ"]="ٺ",e["ﭟ"]="ٺ",e["ﭠ"]="ٺ",e["ﭡ"]="ٺ",e["ﭢ"]="ٿ",e["ﭣ"]="ٿ",e["ﭤ"]="ٿ",e["ﭥ"]="ٿ",e["ﭦ"]="ٹ",e["ﭧ"]="ٹ",e["ﭨ"]="ٹ",e["ﭩ"]="ٹ",e["ﭪ"]="ڤ",e["ﭫ"]="ڤ",e["ﭬ"]="ڤ",e["ﭭ"]="ڤ",e["ﭮ"]="ڦ",e["ﭯ"]="ڦ",e["ﭰ"]="ڦ",e["ﭱ"]="ڦ",e["ﭲ"]="ڄ",e["ﭳ"]="ڄ",e["ﭴ"]="ڄ",e["ﭵ"]="ڄ",e["ﭶ"]="ڃ",e["ﭷ"]="ڃ",e["ﭸ"]="ڃ",e["ﭹ"]="ڃ",e["ﭺ"]="چ",e["ﭻ"]="چ",e["ﭼ"]="چ",e["ﭽ"]="چ",e["ﭾ"]="ڇ",e["ﭿ"]="ڇ",e["ﮀ"]="ڇ",e["ﮁ"]="ڇ",e["ﮂ"]="ڍ",e["ﮃ"]="ڍ",e["ﮄ"]="ڌ",e["ﮅ"]="ڌ",e["ﮆ"]="ڎ",e["ﮇ"]="ڎ",e["ﮈ"]="ڈ",e["ﮉ"]="ڈ",e["ﮊ"]="ژ",e["ﮋ"]="ژ",e["ﮌ"]="ڑ",e["ﮍ"]="ڑ",e["ﮎ"]="ک",e["ﮏ"]="ک",e["ﮐ"]="ک",e["ﮑ"]="ک",e["ﮒ"]="گ",e["ﮓ"]="گ",e["ﮔ"]="گ",e["ﮕ"]="گ",e["ﮖ"]="ڳ",e["ﮗ"]="ڳ",e["ﮘ"]="ڳ",e["ﮙ"]="ڳ",e["ﮚ"]="ڱ",e["ﮛ"]="ڱ",e["ﮜ"]="ڱ",e["ﮝ"]="ڱ",e["ﮞ"]="ں",e["ﮟ"]="ں",e["ﮠ"]="ڻ",e["ﮡ"]="ڻ",e["ﮢ"]="ڻ",e["ﮣ"]="ڻ",e["ﮤ"]="ۀ",e["ﮥ"]="ۀ",e["ﮦ"]="ہ",e["ﮧ"]="ہ",e["ﮨ"]="ہ",e["ﮩ"]="ہ",e["ﮪ"]="ھ",e["ﮫ"]="ھ",e["ﮬ"]="ھ",e["ﮭ"]="ھ",e["ﮮ"]="ے",e["ﮯ"]="ے",e["ﮰ"]="ۓ",e["ﮱ"]="ۓ",e["ﯓ"]="ڭ",e["ﯔ"]="ڭ",e["ﯕ"]="ڭ",e["ﯖ"]="ڭ",e["ﯗ"]="ۇ",e["ﯘ"]="ۇ",e["ﯙ"]="ۆ",e["ﯚ"]="ۆ",e["ﯛ"]="ۈ",e["ﯜ"]="ۈ",e["ﯝ"]="ٷ",e["ﯞ"]="ۋ",e["ﯟ"]="ۋ",e["ﯠ"]="ۅ",e["ﯡ"]="ۅ",e["ﯢ"]="ۉ",e["ﯣ"]="ۉ",e["ﯤ"]="ې",e["ﯥ"]="ې",e["ﯦ"]="ې",e["ﯧ"]="ې",e["ﯨ"]="ى",e["ﯩ"]="ى",e["ﯪ"]="ئا",e["ﯫ"]="ئا",e["ﯬ"]="ئە",e["ﯭ"]="ئە",e["ﯮ"]="ئو",e["ﯯ"]="ئو",e["ﯰ"]="ئۇ",e["ﯱ"]="ئۇ",e["ﯲ"]="ئۆ",e["ﯳ"]="ئۆ",e["ﯴ"]="ئۈ",e["ﯵ"]="ئۈ",e["ﯶ"]="ئې";e["ﯷ"]="ئې",e["ﯸ"]="ئې",e["ﯹ"]="ئى",e["ﯺ"]="ئى",e["ﯻ"]="ئى",e["ﯼ"]="ی",e["ﯽ"]="ی",e["ﯾ"]="ی",e["ﯿ"]="ی",e["ﰀ"]="ئج",e["ﰁ"]="ئح",e["ﰂ"]="ئم",e["ﰃ"]="ئى",e["ﰄ"]="ئي",e["ﰅ"]="بج",e["ﰆ"]="بح",e["ﰇ"]="بخ",e["ﰈ"]="بم",e["ﰉ"]="بى",e["ﰊ"]="بي",e["ﰋ"]="تج",e["ﰌ"]="تح",e["ﰍ"]="تخ",e["ﰎ"]="تم",e["ﰏ"]="تى",e["ﰐ"]="تي",e["ﰑ"]="ثج",e["ﰒ"]="ثم",e["ﰓ"]="ثى",e["ﰔ"]="ثي",e["ﰕ"]="جح",e["ﰖ"]="جم",e["ﰗ"]="حج",e["ﰘ"]="حم",e["ﰙ"]="خج",e["ﰚ"]="خح",e["ﰛ"]="خم",e["ﰜ"]="سج",e["ﰝ"]="سح",e["ﰞ"]="سخ",e["ﰟ"]="سم",e["ﰠ"]="صح",e["ﰡ"]="صم",e["ﰢ"]="ضج",e["ﰣ"]="ضح",e["ﰤ"]="ضخ",e["ﰥ"]="ضم",e["ﰦ"]="طح",e["ﰧ"]="طم",e["ﰨ"]="ظم",e["ﰩ"]="عج",e["ﰪ"]="عم",e["ﰫ"]="غج",e["ﰬ"]="غم",e["ﰭ"]="فج",e["ﰮ"]="فح",e["ﰯ"]="فخ",e["ﰰ"]="فم",e["ﰱ"]="فى",e["ﰲ"]="في",e["ﰳ"]="قح",e["ﰴ"]="قم",e["ﰵ"]="قى",e["ﰶ"]="قي",e["ﰷ"]="كا",e["ﰸ"]="كج",e["ﰹ"]="كح",e["ﰺ"]="كخ",e["ﰻ"]="كل",e["ﰼ"]="كم",e["ﰽ"]="كى",e["ﰾ"]="كي",e["ﰿ"]="لج",e["ﱀ"]="لح",e["ﱁ"]="لخ",e["ﱂ"]="لم",e["ﱃ"]="لى",e["ﱄ"]="لي",e["ﱅ"]="مج",e["ﱆ"]="مح",e["ﱇ"]="مخ",e["ﱈ"]="مم",e["ﱉ"]="مى",e["ﱊ"]="مي",e["ﱋ"]="نج",e["ﱌ"]="نح",e["ﱍ"]="نخ",e["ﱎ"]="نم",e["ﱏ"]="نى",e["ﱐ"]="ني",e["ﱑ"]="هج",e["ﱒ"]="هم",e["ﱓ"]="هى",e["ﱔ"]="هي",e["ﱕ"]="يج",e["ﱖ"]="يح",e["ﱗ"]="يخ",e["ﱘ"]="يم",e["ﱙ"]="يى",e["ﱚ"]="يي",e["ﱛ"]="ذٰ",e["ﱜ"]="رٰ",e["ﱝ"]="ىٰ",e["ﱞ"]=" ٌّ",e["ﱟ"]=" ٍّ",e["ﱠ"]=" َّ",e["ﱡ"]=" ُّ",e["ﱢ"]=" ِّ",e["ﱣ"]=" ّٰ",e["ﱤ"]="ئر",e["ﱥ"]="ئز",e["ﱦ"]="ئم",e["ﱧ"]="ئن",e["ﱨ"]="ئى",e["ﱩ"]="ئي",e["ﱪ"]="بر",e["ﱫ"]="بز",e["ﱬ"]="بم",e["ﱭ"]="بن",e["ﱮ"]="بى",e["ﱯ"]="بي",e["ﱰ"]="تر",e["ﱱ"]="تز",e["ﱲ"]="تم",e["ﱳ"]="تن",e["ﱴ"]="تى",e["ﱵ"]="تي",e["ﱶ"]="ثر",e["ﱷ"]="ثز",e["ﱸ"]="ثم",e["ﱹ"]="ثن",e["ﱺ"]="ثى",e["ﱻ"]="ثي",e["ﱼ"]="فى",e["ﱽ"]="في",e["ﱾ"]="قى",e["ﱿ"]="قي",e["ﲀ"]="كا",e["ﲁ"]="كل",e["ﲂ"]="كم",e["ﲃ"]="كى",e["ﲄ"]="كي",e["ﲅ"]="لم",e["ﲆ"]="لى",e["ﲇ"]="لي",e["ﲈ"]="ما",e["ﲉ"]="مم",e["ﲊ"]="نر",e["ﲋ"]="نز",e["ﲌ"]="نم",e["ﲍ"]="نن",e["ﲎ"]="نى",e["ﲏ"]="ني",e["ﲐ"]="ىٰ",e["ﲑ"]="ير",e["ﲒ"]="يز",e["ﲓ"]="يم",e["ﲔ"]="ين",e["ﲕ"]="يى",e["ﲖ"]="يي",e["ﲗ"]="ئج",e["ﲘ"]="ئح",e["ﲙ"]="ئخ",e["ﲚ"]="ئم",e["ﲛ"]="ئه",e["ﲜ"]="بج",e["ﲝ"]="بح",e["ﲞ"]="بخ",e["ﲟ"]="بم",e["ﲠ"]="به",e["ﲡ"]="تج",e["ﲢ"]="تح",e["ﲣ"]="تخ",e["ﲤ"]="تم",e["ﲥ"]="ته",e["ﲦ"]="ثم",e["ﲧ"]="جح",e["ﲨ"]="جم",e["ﲩ"]="حج",e["ﲪ"]="حم",e["ﲫ"]="خج",e["ﲬ"]="خم",e["ﲭ"]="سج",e["ﲮ"]="سح",e["ﲯ"]="سخ",e["ﲰ"]="سم",e["ﲱ"]="صح",e["ﲲ"]="صخ",e["ﲳ"]="صم",e["ﲴ"]="ضج",e["ﲵ"]="ضح",e["ﲶ"]="ضخ",e["ﲷ"]="ضم",e["ﲸ"]="طح",e["ﲹ"]="ظم",e["ﲺ"]="عج",e["ﲻ"]="عم",e["ﲼ"]="غج",e["ﲽ"]="غم",e["ﲾ"]="فج",e["ﲿ"]="فح",e["ﳀ"]="فخ",e["ﳁ"]="فم",e["ﳂ"]="قح",e["ﳃ"]="قم",e["ﳄ"]="كج",e["ﳅ"]="كح",e["ﳆ"]="كخ",e["ﳇ"]="كل",e["ﳈ"]="كم",e["ﳉ"]="لج",e["ﳊ"]="لح",e["ﳋ"]="لخ",e["ﳌ"]="لم",e["ﳍ"]="له",e["ﳎ"]="مج",e["ﳏ"]="مح",e["ﳐ"]="مخ",e["ﳑ"]="مم",e["ﳒ"]="نج",e["ﳓ"]="نح",e["ﳔ"]="نخ",e["ﳕ"]="نم",e["ﳖ"]="نه",e["ﳗ"]="هج",e["ﳘ"]="هم",e["ﳙ"]="هٰ",e["ﳚ"]="يج",e["ﳛ"]="يح",e["ﳜ"]="يخ",e["ﳝ"]="يم",e["ﳞ"]="يه",e["ﳟ"]="ئم",e["ﳠ"]="ئه",e["ﳡ"]="بم",e["ﳢ"]="به",e["ﳣ"]="تم",e["ﳤ"]="ته",e["ﳥ"]="ثم",e["ﳦ"]="ثه",e["ﳧ"]="سم",e["ﳨ"]="سه",e["ﳩ"]="شم",e["ﳪ"]="شه",e["ﳫ"]="كل",e["ﳬ"]="كم",e["ﳭ"]="لم",e["ﳮ"]="نم",e["ﳯ"]="نه",e["ﳰ"]="يم",e["ﳱ"]="يه",e["ﳲ"]="ـَّ",e["ﳳ"]="ـُّ",e["ﳴ"]="ـِّ",e["ﳵ"]="طى",e["ﳶ"]="طي",e["ﳷ"]="عى",e["ﳸ"]="عي",e["ﳹ"]="غى",e["ﳺ"]="غي",e["ﳻ"]="سى",e["ﳼ"]="سي",e["ﳽ"]="شى",e["ﳾ"]="شي",e["ﳿ"]="حى",e["ﴀ"]="حي",e["ﴁ"]="جى",e["ﴂ"]="جي",e["ﴃ"]="خى",e["ﴄ"]="خي",e["ﴅ"]="صى",e["ﴆ"]="صي",e["ﴇ"]="ضى",e["ﴈ"]="ضي",e["ﴉ"]="شج",e["ﴊ"]="شح",e["ﴋ"]="شخ",e["ﴌ"]="شم",e["ﴍ"]="شر",e["ﴎ"]="سر",e["ﴏ"]="صر",e["ﴐ"]="ضر",e["ﴑ"]="طى",e["ﴒ"]="طي",e["ﴓ"]="عى",e["ﴔ"]="عي",e["ﴕ"]="غى",e["ﴖ"]="غي",e["ﴗ"]="سى",e["ﴘ"]="سي",e["ﴙ"]="شى",e["ﴚ"]="شي",e["ﴛ"]="حى",e["ﴜ"]="حي",e["ﴝ"]="جى",e["ﴞ"]="جي",e["ﴟ"]="خى",e["ﴠ"]="خي",e["ﴡ"]="صى",e["ﴢ"]="صي",e["ﴣ"]="ضى",e["ﴤ"]="ضي",e["ﴥ"]="شج",e["ﴦ"]="شح",e["ﴧ"]="شخ",e["ﴨ"]="شم",e["ﴩ"]="شر",e["ﴪ"]="سر",e["ﴫ"]="صر",e["ﴬ"]="ضر",e["ﴭ"]="شج",e["ﴮ"]="شح",e["ﴯ"]="شخ",e["ﴰ"]="شم",e["ﴱ"]="سه",e["ﴲ"]="شه",e["ﴳ"]="طم",e["ﴴ"]="سج",e["ﴵ"]="سح",e["ﴶ"]="سخ",e["ﴷ"]="شج",e["ﴸ"]="شح",e["ﴹ"]="شخ",e["ﴺ"]="طم",e["ﴻ"]="ظم",e["ﴼ"]="اً",e["ﴽ"]="اً",e["ﵐ"]="تجم",e["ﵑ"]="تحج",e["ﵒ"]="تحج",e["ﵓ"]="تحم",e["ﵔ"]="تخم",e["ﵕ"]="تمج",e["ﵖ"]="تمح",e["ﵗ"]="تمخ",e["ﵘ"]="جمح",e["ﵙ"]="جمح",e["ﵚ"]="حمي",e["ﵛ"]="حمى",e["ﵜ"]="سحج",e["ﵝ"]="سجح",e["ﵞ"]="سجى",e["ﵟ"]="سمح",e["ﵠ"]="سمح",e["ﵡ"]="سمج",e["ﵢ"]="سمم",e["ﵣ"]="سمم",e["ﵤ"]="صحح",e["ﵥ"]="صحح",e["ﵦ"]="صمم",e["ﵧ"]="شحم",e["ﵨ"]="شحم",e["ﵩ"]="شجي",e["ﵪ"]="شمخ",e["ﵫ"]="شمخ",e["ﵬ"]="شمم",e["ﵭ"]="شمم",e["ﵮ"]="ضحى",e["ﵯ"]="ضخم",e["ﵰ"]="ضخم",e["ﵱ"]="طمح",e["ﵲ"]="طمح",e["ﵳ"]="طمم",e["ﵴ"]="طمي",e["ﵵ"]="عجم",e["ﵶ"]="عمم",e["ﵷ"]="عمم",e["ﵸ"]="عمى",e["ﵹ"]="غمم",e["ﵺ"]="غمي",e["ﵻ"]="غمى",e["ﵼ"]="فخم",e["ﵽ"]="فخم",e["ﵾ"]="قمح",e["ﵿ"]="قمم",e["ﶀ"]="لحم",e["ﶁ"]="لحي",e["ﶂ"]="لحى",e["ﶃ"]="لجج",e["ﶄ"]="لجج",e["ﶅ"]="لخم",e["ﶆ"]="لخم",e["ﶇ"]="لمح",e["ﶈ"]="لمح",e["ﶉ"]="محج",e["ﶊ"]="محم",e["ﶋ"]="محي",e["ﶌ"]="مجح",e["ﶍ"]="مجم",e["ﶎ"]="مخج",e["ﶏ"]="مخم",e["ﶒ"]="مجخ",e["ﶓ"]="همج",e["ﶔ"]="همم",e["ﶕ"]="نحم",e["ﶖ"]="نحى",e["ﶗ"]="نجم",e["ﶘ"]="نجم",e["ﶙ"]="نجى",e["ﶚ"]="نمي",e["ﶛ"]="نمى",e["ﶜ"]="يمم",e["ﶝ"]="يمم",e["ﶞ"]="بخي",e["ﶟ"]="تجي",e["ﶠ"]="تجى",e["ﶡ"]="تخي",e["ﶢ"]="تخى",e["ﶣ"]="تمي",e["ﶤ"]="تمى",e["ﶥ"]="جمي",e["ﶦ"]="جحى",e["ﶧ"]="جمى",e["ﶨ"]="سخى",e["ﶩ"]="صحي",e["ﶪ"]="شحي",e["ﶫ"]="ضحي",e["ﶬ"]="لجي",e["ﶭ"]="لمي",e["ﶮ"]="يحي",e["ﶯ"]="يجي",e["ﶰ"]="يمي",e["ﶱ"]="ممي",e["ﶲ"]="قمي",e["ﶳ"]="نحي",e["ﶴ"]="قمح",e["ﶵ"]="لحم",e["ﶶ"]="عمي",e["ﶷ"]="كمي",e["ﶸ"]="نجح",e["ﶹ"]="مخي",e["ﶺ"]="لجم",e["ﶻ"]="كمم",e["ﶼ"]="لجم",e["ﶽ"]="نجح",e["ﶾ"]="جحي",e["ﶿ"]="حجي",e["ﷀ"]="مجي",e["ﷁ"]="فمي",e["ﷂ"]="بحي",e["ﷃ"]="كمم",e["ﷄ"]="عجم",e["ﷅ"]="صمم",e["ﷆ"]="سخي",e["ﷇ"]="نجي",e["﹉"]="‾",e["﹊"]="‾",e["﹋"]="‾",e["﹌"]="‾",e["﹍"]="_",e["﹎"]="_",e["﹏"]="_",e["ﺀ"]="ء",e["ﺁ"]="آ",e["ﺂ"]="آ",e["ﺃ"]="أ",e["ﺄ"]="أ",e["ﺅ"]="ؤ",e["ﺆ"]="ؤ",e["ﺇ"]="إ",e["ﺈ"]="إ",e["ﺉ"]="ئ",e["ﺊ"]="ئ",e["ﺋ"]="ئ",e["ﺌ"]="ئ",e["ﺍ"]="ا",e["ﺎ"]="ا",e["ﺏ"]="ب",e["ﺐ"]="ب",e["ﺑ"]="ب",e["ﺒ"]="ب",e["ﺓ"]="ة",e["ﺔ"]="ة",e["ﺕ"]="ت",e["ﺖ"]="ت",e["ﺗ"]="ت",e["ﺘ"]="ت",e["ﺙ"]="ث",e["ﺚ"]="ث",e["ﺛ"]="ث",e["ﺜ"]="ث",e["ﺝ"]="ج",e["ﺞ"]="ج",e["ﺟ"]="ج",e["ﺠ"]="ج",e["ﺡ"]="ح",e["ﺢ"]="ح",e["ﺣ"]="ح",e["ﺤ"]="ح",e["ﺥ"]="خ",e["ﺦ"]="خ",e["ﺧ"]="خ",e["ﺨ"]="خ",e["ﺩ"]="د",e["ﺪ"]="د",e["ﺫ"]="ذ",e["ﺬ"]="ذ",e["ﺭ"]="ر",e["ﺮ"]="ر",e["ﺯ"]="ز",e["ﺰ"]="ز",e["ﺱ"]="س",e["ﺲ"]="س",e["ﺳ"]="س",e["ﺴ"]="س",e["ﺵ"]="ش",e["ﺶ"]="ش",e["ﺷ"]="ش",e["ﺸ"]="ش",e["ﺹ"]="ص",e["ﺺ"]="ص",e["ﺻ"]="ص",e["ﺼ"]="ص",e["ﺽ"]="ض",e["ﺾ"]="ض",e["ﺿ"]="ض",e["ﻀ"]="ض",e["ﻁ"]="ط",e["ﻂ"]="ط",e["ﻃ"]="ط",e["ﻄ"]="ط",e["ﻅ"]="ظ",e["ﻆ"]="ظ",e["ﻇ"]="ظ",e["ﻈ"]="ظ",e["ﻉ"]="ع",e["ﻊ"]="ع",e["ﻋ"]="ع",e["ﻌ"]="ع",e["ﻍ"]="غ",e["ﻎ"]="غ",e["ﻏ"]="غ",e["ﻐ"]="غ",e["ﻑ"]="ف",e["ﻒ"]="ف",e["ﻓ"]="ف",e["ﻔ"]="ف",e["ﻕ"]="ق",e["ﻖ"]="ق",e["ﻗ"]="ق",e["ﻘ"]="ق",e["ﻙ"]="ك",e["ﻚ"]="ك",e["ﻛ"]="ك",e["ﻜ"]="ك",e["ﻝ"]="ل",e["ﻞ"]="ل",e["ﻟ"]="ل",e["ﻠ"]="ل",e["ﻡ"]="م",e["ﻢ"]="م",e["ﻣ"]="م",e["ﻤ"]="م",e["ﻥ"]="ن",e["ﻦ"]="ن",e["ﻧ"]="ن",e["ﻨ"]="ن",e["ﻩ"]="ه",e["ﻪ"]="ه",e["ﻫ"]="ه",e["ﻬ"]="ه",e["ﻭ"]="و",e["ﻮ"]="و",e["ﻯ"]="ى",e["ﻰ"]="ى",e["ﻱ"]="ي",e["ﻲ"]="ي",e["ﻳ"]="ي",e["ﻴ"]="ي",e["ﻵ"]="لآ",e["ﻶ"]="لآ",e["ﻷ"]="لأ",e["ﻸ"]="لأ",e["ﻹ"]="لإ",e["ﻺ"]="لإ",e["ﻻ"]="لا",e["ﻼ"]="لا"});t.mapSpecialUnicodeValues=function(e){return e>=65520&&e<=65535?0:e>=62976&&e<=63743?i()[e]||e:173===e?45:e},t.reverseIfRtl=function(e){var t,n,r=e.length;if(r<=1||(t=e.charCodeAt(0),n=a[13],!(t>=n.begin&&t<n.end||t>=(n=a[11]).begin&&t<n.end)))return e;for(var i="",o=r-1;o>=0;o--)i+=e[o];return i},t.getUnicodeRangeFor=function(e){for(var t=0,n=a.length;t<n;t++){var r=a[t];if(e>=r.begin&&e<r.end)return t}return-1},t.getNormalizedUnicodes=o,t.getUnicodeForGlyph=function(e,t){var n=t[e];if(void 0!==n)return n;if(!e)return-1;if("u"===e[0]){var r,i=e.length;if(7===i&&"n"===e[1]&&"i"===e[2])r=e.substring(3);else{if(!(i>=5&&i<=7))return-1;r=e.substring(1)}if(r===r.toUpperCase()&&(n=parseInt(r,16))>=0)return n}return-1}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FontRendererFactory=void 0;var r=n(2),i=n(30),a=n(33),o=n(32),s=n(12),l=function(){function e(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]}function t(e,t){return e[t]<<8|e[t+1]}function n(e){const t=e.length;let n=32768;return t<1240?n=107:t<33900&&(n=1131),n}function l(n,i,a){var o,s,l,c=1===t(n,i+2)?e(n,i+8):e(n,i+16),u=t(n,i+c);if(4===u){t(n,i+c+2);var h=t(n,i+c+6)>>1;for(s=i+c+14,o=[],l=0;l<h;l++,s+=2)o[l]={end:t(n,s)};for(s+=2,l=0;l<h;l++,s+=2)o[l].start=t(n,s);for(l=0;l<h;l++,s+=2)o[l].idDelta=t(n,s);for(l=0;l<h;l++,s+=2){var d=t(n,s);if(0!==d){o[l].ids=[];for(var f=0,p=o[l].end-o[l].start+1;f<p;f++)o[l].ids[f]=t(n,s+d),d+=2}}return o}if(12===u){e(n,i+c+4);var A=e(n,i+c+12);for(s=i+c+16,o=[],l=0;l<A;l++)o.push({start:e(n,s),end:e(n,s+4),idDelta:e(n,s+8)-e(n,s)}),s+=12;return o}throw new r.FormatError(`unsupported cmap: ${u}`)}function c(e,t,n,r){var a=new i.CFFParser(new s.Stream(e,t,n-t),{},r).parse();return{glyphs:a.charStrings.objects,subrs:a.topDict.privateDict&&a.topDict.privateDict.subrsIndex&&a.topDict.privateDict.subrsIndex.objects,gsubrs:a.globalSubrIndex&&a.globalSubrIndex.objects,isCFFCIDFont:a.isCIDFont,fdSelect:a.fdSelect,fdArray:a.fdArray}}function u(e,t){for(var n=t.codePointAt(0),r=0,i=0,a=e.length-1;i<a;){var o=i+a+1>>1;n<e[o].start?a=o-1:i=o}return e[i].start<=n&&n<=e[i].end&&(r=e[i].idDelta+(e[i].ids?e[i].ids[n-e[i].start]:n)&65535),{charCode:n,glyphId:r}}const h=[];class d{constructor(e){this.constructor===d&&(0,r.unreachable)("Cannot initialize CompiledFont."),this.fontMatrix=e,this.compiledGlyphs=Object.create(null),this.compiledCharCodeToGlyphId=Object.create(null)}getPathJs(e){const t=u(this.cmap,e);let n=this.compiledGlyphs[t.glyphId];return n||(n=this.compileGlyph(this.glyphs[t.glyphId],t.glyphId),this.compiledGlyphs[t.glyphId]=n),void 0===this.compiledCharCodeToGlyphId[t.charCode]&&(this.compiledCharCodeToGlyphId[t.charCode]=t.glyphId),n}compileGlyph(e,t){if(!e||0===e.length||14===e[0])return h;let n=this.fontMatrix;if(this.isCFFCIDFont){const e=this.fdSelect.getFDIndex(t);if(e>=0&&e<this.fdArray.length){n=this.fdArray[e].getByName("FontMatrix")||r.FONT_IDENTITY_MATRIX}else(0,r.warn)("Invalid fd index for glyph index.")}const i=[];return i.push({cmd:"save"}),i.push({cmd:"transform",args:n.slice()}),i.push({cmd:"scale",args:["size","-size"]}),this.compileGlyphImpl(e,i,t),i.push({cmd:"restore"}),i}compileGlyphImpl(){(0,r.unreachable)("Children classes should implement this.")}hasBuiltPath(e){const t=u(this.cmap,e);return void 0!==this.compiledGlyphs[t.glyphId]&&void 0!==this.compiledCharCodeToGlyphId[t.charCode]}}return{create:function(i,s){for(var h,f,p,A,g,m,v=new Uint8Array(i.data),y=t(v,4),b=0,w=12;b<y;b++,w+=16){var x=(0,r.bytesToString)(v.subarray(w,w+4)),_=e(v,w+8),C=e(v,w+12);switch(x){case"cmap":h=l(v,_);break;case"glyf":f=v.subarray(_,_+C);break;case"loca":p=v.subarray(_,_+C);break;case"head":m=t(v,_+18),g=t(v,_+50);break;case"CFF ":A=c(v,_,_+C,s)}}if(f){var S=m?[1/m,0,0,1/m,0,0]:i.fontMatrix;return new class extends d{constructor(e,t,n){super(n||[488e-6,0,0,488e-6,0,0]),this.glyphs=e,this.cmap=t}compileGlyphImpl(e,t){!function e(t,n,r){function i(e,t){n.push({cmd:"moveTo",args:[e,t]})}function a(e,t){n.push({cmd:"lineTo",args:[e,t]})}function o(e,t,r,i){n.push({cmd:"quadraticCurveTo",args:[e,t,r,i]})}var s,l=0,c=(t[l]<<24|t[l+1]<<16)>>16,u=0,h=0;if(l+=10,c<0)do{s=t[l]<<8|t[l+1];var d,f,p=t[l+2]<<8|t[l+3];l+=4,1&s?(d=(t[l]<<24|t[l+1]<<16)>>16,f=(t[l+2]<<24|t[l+3]<<16)>>16,l+=4):(d=t[l++],f=t[l++]),2&s?(u=d,h=f):(u=0,h=0);var A=1,g=1,m=0,v=0;8&s?(A=g=(t[l]<<24|t[l+1]<<16)/1073741824,l+=2):64&s?(A=(t[l]<<24|t[l+1]<<16)/1073741824,g=(t[l+2]<<24|t[l+3]<<16)/1073741824,l+=4):128&s&&(A=(t[l]<<24|t[l+1]<<16)/1073741824,m=(t[l+2]<<24|t[l+3]<<16)/1073741824,v=(t[l+4]<<24|t[l+5]<<16)/1073741824,g=(t[l+6]<<24|t[l+7]<<16)/1073741824,l+=8);var y=r.glyphs[p];y&&(n.push({cmd:"save"}),n.push({cmd:"transform",args:[A,m,v,g,u,h]}),e(y,n,r),n.push({cmd:"restore"}))}while(32&s);else{var b,w,x=[];for(b=0;b<c;b++)x.push(t[l]<<8|t[l+1]),l+=2;l+=2+(t[l]<<8|t[l+1]);for(var _=x[x.length-1]+1,C=[];C.length<_;){var S=1;for(8&(s=t[l++])&&(S+=t[l++]);S-- >0;)C.push({flags:s})}for(b=0;b<_;b++){switch(18&C[b].flags){case 0:u+=(t[l]<<24|t[l+1]<<16)>>16,l+=2;break;case 2:u-=t[l++];break;case 18:u+=t[l++]}C[b].x=u}for(b=0;b<_;b++){switch(36&C[b].flags){case 0:h+=(t[l]<<24|t[l+1]<<16)>>16,l+=2;break;case 4:h-=t[l++];break;case 36:h+=t[l++]}C[b].y=h}var k=0;for(l=0;l<c;l++){var B=x[l],E=C.slice(k,B+1);if(1&E[0].flags)E.push(E[0]);else if(1&E[E.length-1].flags)E.unshift(E[E.length-1]);else{var T={flags:1,x:(E[0].x+E[E.length-1].x)/2,y:(E[0].y+E[E.length-1].y)/2};E.unshift(T),E.push(T)}for(i(E[0].x,E[0].y),b=1,w=E.length;b<w;b++)1&E[b].flags?a(E[b].x,E[b].y):1&E[b+1].flags?(o(E[b].x,E[b].y,E[b+1].x,E[b+1].y),b++):o(E[b].x,E[b].y,(E[b].x+E[b+1].x)/2,(E[b].y+E[b+1].y)/2);k=B+1}}}(e,t,this)}}(function(e,t,n){var r,i;n?(r=4,i=function(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]}):(r=2,i=function(e,t){return e[t]<<9|e[t+1]<<1});for(var a=[],o=i(t,0),s=r;s<t.length;s+=r){var l=i(t,s);a.push(e.subarray(o,l)),o=l}return a}(f,p,g),h,S)}return new class extends d{constructor(e,t,r,i){super(r||[.001,0,0,.001,0,0]),this.glyphs=e.glyphs,this.gsubrs=e.gsubrs||[],this.subrs=e.subrs||[],this.cmap=t,this.glyphNameMap=i||(0,a.getGlyphsUnicode)(),this.gsubrsBias=n(this.gsubrs),this.subrsBias=n(this.subrs),this.isCFFCIDFont=e.isCFFCIDFont,this.fdSelect=e.fdSelect,this.fdArray=e.fdArray}compileGlyphImpl(e,t,i){!function e(t,i,a,s){function l(e,t){i.push({cmd:"moveTo",args:[e,t]})}function c(e,t){i.push({cmd:"lineTo",args:[e,t]})}function h(e,t,n,r,a,o){i.push({cmd:"bezierCurveTo",args:[e,t,n,r,a,o]})}var d=[],f=0,p=0,A=0;!function t(g){for(var m=0;m<g.length;){var v,y,b,w,x,_,C,S,k=!1,B=g[m++];switch(B){case 1:case 3:A+=d.length>>1,k=!0;break;case 4:p+=d.pop(),l(f,p),k=!0;break;case 5:for(;d.length>0;)f+=d.shift(),p+=d.shift(),c(f,p);break;case 6:for(;d.length>0&&(c(f+=d.shift(),p),0!==d.length);)p+=d.shift(),c(f,p);break;case 7:for(;d.length>0&&(p+=d.shift(),c(f,p),0!==d.length);)c(f+=d.shift(),p);break;case 8:for(;d.length>0;)v=f+d.shift(),b=p+d.shift(),y=v+d.shift(),w=b+d.shift(),f=y+d.shift(),p=w+d.shift(),h(v,b,y,w,f,p);break;case 10:if(C=d.pop(),S=null,a.isCFFCIDFont){const e=a.fdSelect.getFDIndex(s);if(e>=0&&e<a.fdArray.length){const t=a.fdArray[e];let r;t.privateDict&&t.privateDict.subrsIndex&&(r=t.privateDict.subrsIndex.objects),r&&(S=r[C+=n(r)])}else(0,r.warn)("Invalid fd index for glyph index.")}else S=a.subrs[C+a.subrsBias];S&&t(S);break;case 11:return;case 12:switch(B=g[m++]){case 34:y=(v=f+d.shift())+d.shift(),x=p+d.shift(),f=y+d.shift(),h(v,p,y,x,f,x),y=(v=f+d.shift())+d.shift(),f=y+d.shift(),h(v,x,y,p,f,p);break;case 35:v=f+d.shift(),b=p+d.shift(),y=v+d.shift(),w=b+d.shift(),f=y+d.shift(),p=w+d.shift(),h(v,b,y,w,f,p),v=f+d.shift(),b=p+d.shift(),y=v+d.shift(),w=b+d.shift(),f=y+d.shift(),p=w+d.shift(),h(v,b,y,w,f,p),d.pop();break;case 36:h(v=f+d.shift(),x=p+d.shift(),y=v+d.shift(),_=x+d.shift(),f=y+d.shift(),_),h(v=f+d.shift(),_,y=v+d.shift(),_+d.shift(),f=y+d.shift(),p);break;case 37:var E=f,T=p;v=f+d.shift(),b=p+d.shift(),y=v+d.shift(),w=b+d.shift(),f=y+d.shift(),p=w+d.shift(),h(v,b,y,w,f,p),v=f+d.shift(),b=p+d.shift(),y=v+d.shift(),w=b+d.shift(),f=y,p=w,Math.abs(f-E)>Math.abs(p-T)?f+=d.shift():p+=d.shift(),h(v,b,y,w,f,p);break;default:throw new r.FormatError(`unknown operator: 12 ${B}`)}break;case 14:if(d.length>=4){var I=d.pop(),M=d.pop();p=d.pop(),f=d.pop(),i.push({cmd:"save"}),i.push({cmd:"translate",args:[f,p]});var F=u(a.cmap,String.fromCharCode(a.glyphNameMap[o.StandardEncoding[I]]));e(a.glyphs[F.glyphId],i,a,F.glyphId),i.push({cmd:"restore"}),F=u(a.cmap,String.fromCharCode(a.glyphNameMap[o.StandardEncoding[M]])),e(a.glyphs[F.glyphId],i,a,F.glyphId)}return;case 18:A+=d.length>>1,k=!0;break;case 19:case 20:m+=(A+=d.length>>1)+7>>3,k=!0;break;case 21:p+=d.pop(),l(f+=d.pop(),p),k=!0;break;case 22:l(f+=d.pop(),p),k=!0;break;case 23:A+=d.length>>1,k=!0;break;case 24:for(;d.length>2;)v=f+d.shift(),b=p+d.shift(),y=v+d.shift(),w=b+d.shift(),f=y+d.shift(),p=w+d.shift(),h(v,b,y,w,f,p);f+=d.shift(),p+=d.shift(),c(f,p);break;case 25:for(;d.length>6;)f+=d.shift(),p+=d.shift(),c(f,p);v=f+d.shift(),b=p+d.shift(),y=v+d.shift(),w=b+d.shift(),f=y+d.shift(),p=w+d.shift(),h(v,b,y,w,f,p);break;case 26:for(d.length%2&&(f+=d.shift());d.length>0;)v=f,b=p+d.shift(),y=v+d.shift(),w=b+d.shift(),f=y,p=w+d.shift(),h(v,b,y,w,f,p);break;case 27:for(d.length%2&&(p+=d.shift());d.length>0;)h(v=f+d.shift(),b=p,y=v+d.shift(),w=b+d.shift(),f=y+d.shift(),p=w);break;case 28:d.push((g[m]<<24|g[m+1]<<16)>>16),m+=2;break;case 29:C=d.pop()+a.gsubrsBias,(S=a.gsubrs[C])&&t(S);break;case 30:for(;d.length>0&&(v=f,b=p+d.shift(),y=v+d.shift(),w=b+d.shift(),f=y+d.shift(),p=w+(1===d.length?d.shift():0),h(v,b,y,w,f,p),0!==d.length);)v=f+d.shift(),b=p,y=v+d.shift(),w=b+d.shift(),p=w+d.shift(),h(v,b,y,w,f=y+(1===d.length?d.shift():0),p);break;case 31:for(;d.length>0&&(v=f+d.shift(),b=p,y=v+d.shift(),w=b+d.shift(),p=w+d.shift(),h(v,b,y,w,f=y+(1===d.length?d.shift():0),p),0!==d.length);)v=f,b=p+d.shift(),y=v+d.shift(),w=b+d.shift(),f=y+d.shift(),p=w+(1===d.length?d.shift():0),h(v,b,y,w,f,p);break;default:if(B<32)throw new r.FormatError(`unknown operator: ${B}`);B<247?d.push(B-139):B<251?d.push(256*(B-247)+g[m++]+108):B<255?d.push(256*-(B-251)-g[m++]-108):(d.push((g[m]<<24|g[m+1]<<16|g[m+2]<<8|g[m+3])/65536),m+=4)}k&&(d.length=0)}}(t)}(e,t,this,i)}}(A,h,i.fontMatrix,i.glyphNameMap)}}}();t.FontRendererFactory=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Type1Parser=void 0;var r=n(32),i=n(8),a=n(12),o=n(2),s=function(){var e=[4],t=[5],n=[6],r=[7],i=[8],a=[12,35],s=[14],l=[21],c=[22],u=[30],h=[31];function d(){this.width=0,this.lsb=0,this.flexing=!1,this.output=[],this.stack=[]}return d.prototype={convert:function(d,f,p){for(var A,g,m,v=d.length,y=!1,b=0;b<v;b++){var w=d[b];if(w<32){switch(12===w&&(w=(w<<8)+d[++b]),w){case 1:case 3:this.stack=[];break;case 4:if(this.flexing){if(this.stack.length<1){y=!0;break}var x=this.stack.pop();this.stack.push(0,x);break}y=this.executeCommand(1,e);break;case 5:y=this.executeCommand(2,t);break;case 6:y=this.executeCommand(1,n);break;case 7:y=this.executeCommand(1,r);break;case 8:y=this.executeCommand(6,i);break;case 9:this.stack=[];break;case 10:if(this.stack.length<1){y=!0;break}if(!f[m=this.stack.pop()]){y=!0;break}y=this.convert(f[m],f,p);break;case 11:return y;case 13:if(this.stack.length<2){y=!0;break}A=this.stack.pop(),g=this.stack.pop(),this.lsb=g,this.width=A,this.stack.push(A,g),y=this.executeCommand(2,c);break;case 14:this.output.push(s[0]);break;case 21:if(this.flexing)break;y=this.executeCommand(2,l);break;case 22:if(this.flexing){this.stack.push(0);break}y=this.executeCommand(1,c);break;case 30:y=this.executeCommand(4,u);break;case 31:y=this.executeCommand(4,h);break;case 3072:case 3073:case 3074:this.stack=[];break;case 3078:p?(this.seac=this.stack.splice(-4,4),y=this.executeCommand(0,s)):y=this.executeCommand(4,s);break;case 3079:if(this.stack.length<4){y=!0;break}this.stack.pop(),A=this.stack.pop();var _=this.stack.pop();g=this.stack.pop(),this.lsb=g,this.width=A,this.stack.push(A,g,_),y=this.executeCommand(3,l);break;case 3084:if(this.stack.length<2){y=!0;break}var C=this.stack.pop(),S=this.stack.pop();this.stack.push(S/C);break;case 3088:if(this.stack.length<2){y=!0;break}m=this.stack.pop();var k=this.stack.pop();if(0===m&&3===k){var B=this.stack.splice(this.stack.length-17,17);this.stack.push(B[2]+B[0],B[3]+B[1],B[4],B[5],B[6],B[7],B[8],B[9],B[10],B[11],B[12],B[13],B[14]),y=this.executeCommand(13,a,!0),this.flexing=!1,this.stack.push(B[15],B[16])}else 1===m&&0===k&&(this.flexing=!0);break;case 3089:break;case 3105:this.stack=[];break;default:(0,o.warn)('Unknown type 1 charstring command of "'+w+'"')}if(y)break}else w<=246?w-=139:w=w<=250?256*(w-247)+d[++b]+108:w<=254?-256*(w-251)-d[++b]-108:(255&d[++b])<<24|(255&d[++b])<<16|(255&d[++b])<<8|(255&d[++b])<<0,this.stack.push(w)}return y},executeCommand(e,t,n){var r=this.stack.length;if(e>r)return!0;for(var i=r-e,a=i;a<r;a++){var o=this.stack[a];Number.isInteger(o)?this.output.push(28,o>>8&255,255&o):(o=65536*o|0,this.output.push(255,o>>24&255,o>>16&255,o>>8&255,255&o))}return this.output.push.apply(this.output,t),n?this.stack.splice(i,e):this.stack.length=0,!1}},d}(),l=function(){var e=55665;function t(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function n(e,t,n){if(n>=e.length)return new Uint8Array(0);var r,i,a=0|t;for(r=0;r<n;r++)a=52845*(e[r]+a)+22719&65535;var o=e.length-n,s=new Uint8Array(o);for(r=n,i=0;i<o;r++,i++){var l=e[r];s[i]=l^a>>8,a=52845*(l+a)+22719&65535}return s}function o(e){return 47===e||91===e||93===e||123===e||125===e||40===e||41===e}function l(r,o,s){if(o){var l=r.getBytes(),c=!((t(l[0])||(0,i.isWhiteSpace)(l[0]))&&t(l[1])&&t(l[2])&&t(l[3])&&t(l[4])&&t(l[5])&&t(l[6])&&t(l[7]));r=new a.Stream(c?n(l,e,4):function(e,n,r){var i,a,o=0|n,s=e.length,l=new Uint8Array(s>>>1);for(i=0,a=0;i<s;i++){var c=e[i];if(t(c)){var u;for(i++;i<s&&!t(u=e[i]);)i++;if(i<s){var h=parseInt(String.fromCharCode(c,u),16);l[a++]=h^o>>8,o=52845*(h+o)+22719&65535}}}return l.slice(r,a)}(l,e,4))}this.seacAnalysisEnabled=!!s,this.stream=r,this.nextChar()}return l.prototype={readNumberArray:function(){this.getToken();for(var e=[];;){var t=this.getToken();if(null===t||"]"===t||"}"===t)break;e.push(parseFloat(t||0))}return e},readNumber:function(){var e=this.getToken();return parseFloat(e||0)},readInt:function(){var e=this.getToken();return 0|parseInt(e||0,10)},readBoolean:function(){return"true"===this.getToken()?1:0},nextChar:function(){return this.currentChar=this.stream.getByte()},getToken:function(){for(var e=!1,t=this.currentChar;;){if(-1===t)return null;if(e)10!==t&&13!==t||(e=!1);else if(37===t)e=!0;else if(!(0,i.isWhiteSpace)(t))break;t=this.nextChar()}if(o(t))return this.nextChar(),String.fromCharCode(t);var n="";do{n+=String.fromCharCode(t),t=this.nextChar()}while(t>=0&&!(0,i.isWhiteSpace)(t)&&!o(t));return n},readCharStrings:function(e,t){return-1===t?e:n(e,4330,t)},extractFontProgram:function(e){var t=this.stream,n=[],r=[],i=Object.create(null);i.lenIV=4;for(var a,o,l,c,u,h={subrs:[],charstrings:[],properties:{privateData:i}};null!==(a=this.getToken());)if("/"===a)switch(a=this.getToken()){case"CharStrings":for(this.getToken(),this.getToken(),this.getToken(),this.getToken();null!==(a=this.getToken())&&"end"!==a;)if("/"===a){var d=this.getToken();o=this.readInt(),this.getToken(),l=o>0?t.getBytes(o):new Uint8Array(0),c=h.properties.privateData.lenIV,u=this.readCharStrings(l,c),this.nextChar(),"noaccess"===(a=this.getToken())&&this.getToken(),r.push({glyph:d,encoded:u})}break;case"Subrs":for(this.readInt(),this.getToken();"dup"===this.getToken();){const e=this.readInt();o=this.readInt(),this.getToken(),l=o>0?t.getBytes(o):new Uint8Array(0),c=h.properties.privateData.lenIV,u=this.readCharStrings(l,c),this.nextChar(),"noaccess"===(a=this.getToken())&&this.getToken(),n[e]=u}break;case"BlueValues":case"OtherBlues":case"FamilyBlues":case"FamilyOtherBlues":var f=this.readNumberArray();f.length>0&&f.length,0;break;case"StemSnapH":case"StemSnapV":h.properties.privateData[a]=this.readNumberArray();break;case"StdHW":case"StdVW":h.properties.privateData[a]=this.readNumberArray()[0];break;case"BlueShift":case"lenIV":case"BlueFuzz":case"BlueScale":case"LanguageGroup":case"ExpansionFactor":h.properties.privateData[a]=this.readNumber();break;case"ForceBold":h.properties.privateData[a]=this.readBoolean()}for(var p=0;p<r.length;p++){d=r[p].glyph,u=r[p].encoded;var A=new s,g=A.convert(u,n,this.seacAnalysisEnabled),m=A.output;g&&(m=[14]);const t={glyphName:d,charstring:m,width:A.width,lsb:A.lsb,seac:A.seac};if(".notdef"===d?h.charstrings.unshift(t):h.charstrings.push(t),e.builtInEncoding){const t=e.builtInEncoding.indexOf(d);t>-1&&void 0===e.widths[t]&&t>=e.firstChar&&t<=e.lastChar&&(e.widths[t]=A.width)}}return h},extractFontHeader:function(e){for(var t;null!==(t=this.getToken());)if("/"===t)switch(t=this.getToken()){case"FontMatrix":var n=this.readNumberArray();e.fontMatrix=n;break;case"Encoding":var i,a=this.getToken();if(/^\d+$/.test(a)){i=[];var o=0|parseInt(a,10);this.getToken();for(var s=0;s<o;s++){for(t=this.getToken();"dup"!==t&&"def"!==t;)if(null===(t=this.getToken()))return;if("def"===t)break;var l=this.readInt();this.getToken();var c=this.getToken();i[l]=c,this.getToken()}}else i=(0,r.getEncoding)(a);e.builtInEncoding=i;break;case"FontBBox":var u=this.readNumberArray();e.ascent=Math.max(u[3],u[1]),e.descent=Math.min(u[1],u[3]),e.ascentScaled=!0}}},l}();t.Type1Parser=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTilingPatternIR=function(e,t,n){const i=t.getArray("Matrix"),a=r.Util.normalizeRect(t.getArray("BBox")),o=t.get("XStep"),s=t.get("YStep"),l=t.get("PaintType"),c=t.get("TilingType");if(a[2]-a[0]==0||a[3]-a[1]==0)throw new r.FormatError(`Invalid getTilingPatternIR /BBox array: [${a}].`);return["TilingPattern",n,e,i,a,o,s,l,c]},t.Pattern=void 0;var r=n(2),i=n(23),a=n(5),o=n(8),s={FUNCTION_BASED:1,AXIAL:2,RADIAL:3,FREE_FORM_MESH:4,LATTICE_FORM_MESH:5,COONS_PATCH_MESH:6,TENSOR_PATCH_MESH:7},l=function(){function e(){(0,r.unreachable)("should not call Pattern constructor")}return e.prototype={getPattern:function(e){(0,r.unreachable)(`Should not call Pattern.getStyle: ${e}`)}},e.parseShading=function(e,t,n,i,l,u){var h=(0,a.isStream)(e)?e.dict:e,d=h.get("ShadingType");try{switch(d){case s.AXIAL:case s.RADIAL:return new c.RadialAxial(h,t,n,i,u);case s.FREE_FORM_MESH:case s.LATTICE_FORM_MESH:case s.COONS_PATCH_MESH:case s.TENSOR_PATCH_MESH:return new c.Mesh(e,t,n,i,u);default:throw new r.FormatError("Unsupported ShadingType: "+d)}}catch(e){if(e instanceof o.MissingDataException)throw e;return l.send("UnsupportedFeature",{featureId:r.UNSUPPORTED_FEATURES.shadingPattern}),(0,r.warn)(e),new c.Dummy}},e}();t.Pattern=l;var c={};c.SMALL_NUMBER=1e-6,c.RadialAxial=function(){function e(e,t,n,a,o){this.matrix=t,this.coordsArr=e.getArray("Coords"),this.shadingType=e.get("ShadingType"),this.type="Pattern";var l=e.get("ColorSpace","CS");l=i.ColorSpace.parse(l,n,a,o),this.cs=l;const u=e.getArray("BBox");Array.isArray(u)&&4===u.length?this.bbox=r.Util.normalizeRect(u):this.bbox=null;var h=0,d=1;if(e.has("Domain")){var f=e.getArray("Domain");h=f[0],d=f[1]}var p=!1,A=!1;if(e.has("Extend")){var g=e.getArray("Extend");p=g[0],A=g[1]}if(!(this.shadingType!==s.RADIAL||p&&A)){var m=this.coordsArr[0],v=this.coordsArr[1],y=this.coordsArr[2],b=this.coordsArr[3],w=this.coordsArr[4],x=this.coordsArr[5],_=Math.sqrt((m-b)*(m-b)+(v-w)*(v-w));y<=x+_&&x<=y+_&&(0,r.warn)("Unsupported radial gradient.")}this.extendStart=p,this.extendEnd=A;var C=e.get("Function"),S=o.createFromArray(C);const k=(d-h)/10;var B=this.colorStops=[];if(h>=d||k<=0)(0,r.info)("Bad shading domain.");else{var E,T=new Float32Array(l.numComps),I=new Float32Array(1);for(let e=0;e<=10;e++){I[0]=h+e*k,S(I,0,T,0),E=l.getRgb(T,0);var M=r.Util.makeCssRgb(E[0],E[1],E[2]);B.push([e/10,M])}var F="transparent";e.has("Background")&&(E=l.getRgb(e.get("Background"),0),F=r.Util.makeCssRgb(E[0],E[1],E[2])),p||(B.unshift([0,F]),B[1][0]+=c.SMALL_NUMBER),A||(B[B.length-1][0]-=c.SMALL_NUMBER,B.push([1,F])),this.colorStops=B}}return e.prototype={getIR:function(){var e,t,n,i,a,o=this.coordsArr,l=this.shadingType;l===s.AXIAL?(t=[o[0],o[1]],n=[o[2],o[3]],i=null,a=null,e="axial"):l===s.RADIAL?(t=[o[0],o[1]],n=[o[3],o[4]],i=o[2],a=o[5],e="radial"):(0,r.unreachable)(`getPattern type unknown: ${l}`);var c=this.matrix;if(c&&(t=r.Util.applyTransform(t,c),n=r.Util.applyTransform(n,c),l===s.RADIAL)){var u=r.Util.singularValueDecompose2dScale(c);i*=u[0],a*=u[1]}return["RadialAxial",e,this.bbox,this.colorStops,t,n,i,a]}},e}(),c.Mesh=function(){function e(e,t){this.stream=e,this.context=t,this.buffer=0,this.bufferLength=0;var n=t.numComps;this.tmpCompsBuf=new Float32Array(n);var r=t.colorSpace.numComps;this.tmpCsCompsBuf=t.colorFn?new Float32Array(r):this.tmpCompsBuf}e.prototype={get hasData(){if(this.stream.end)return this.stream.pos<this.stream.end;if(this.bufferLength>0)return!0;var e=this.stream.getByte();return!(e<0)&&(this.buffer=e,this.bufferLength=8,!0)},readBits:function(e){var t=this.buffer,n=this.bufferLength;if(32===e){if(0===n)return(this.stream.getByte()<<24|this.stream.getByte()<<16|this.stream.getByte()<<8|this.stream.getByte())>>>0;t=t<<24|this.stream.getByte()<<16|this.stream.getByte()<<8|this.stream.getByte();var r=this.stream.getByte();return this.buffer=r&(1<<n)-1,(t<<8-n|(255&r)>>n)>>>0}if(8===e&&0===n)return this.stream.getByte();for(;n<e;)t=t<<8|this.stream.getByte(),n+=8;return n-=e,this.bufferLength=n,this.buffer=t&(1<<n)-1,t>>n},align:function(){this.buffer=0,this.bufferLength=0},readFlag:function(){return this.readBits(this.context.bitsPerFlag)},readCoordinate:function(){var e=this.context.bitsPerCoordinate,t=this.readBits(e),n=this.readBits(e),r=this.context.decode,i=e<32?1/((1<<e)-1):2.3283064365386963e-10;return[t*i*(r[1]-r[0])+r[0],n*i*(r[3]-r[2])+r[2]]},readComponents:function(){for(var e=this.context.numComps,t=this.context.bitsPerComponent,n=t<32?1/((1<<t)-1):2.3283064365386963e-10,r=this.context.decode,i=this.tmpCompsBuf,a=0,o=4;a<e;a++,o+=2){var s=this.readBits(t);i[a]=s*n*(r[o+1]-r[o])+r[o]}var l=this.tmpCsCompsBuf;return this.context.colorFn&&this.context.colorFn(i,0,l,0),this.context.colorSpace.getRgb(l,0)}};var t=3,n=20,o=20,l=function(){var e=[];return function(t){return e[t]||(e[t]=function(e){for(var t=[],n=0;n<=e;n++){var r=n/e,i=1-r;t.push(new Float32Array([i*i*i,3*r*i*i,3*r*r*i,r*r*r]))}return t}(t)),e[t]}}();function c(e,i){var a=e.figures[i];(0,r.assert)("patch"===a.type,"Unexpected patch mesh figure");var s=e.coords,c=e.colors,u=a.coords,h=a.colors,d=Math.min(s[u[0]][0],s[u[3]][0],s[u[12]][0],s[u[15]][0]),f=Math.min(s[u[0]][1],s[u[3]][1],s[u[12]][1],s[u[15]][1]),p=Math.max(s[u[0]][0],s[u[3]][0],s[u[12]][0],s[u[15]][0]),A=Math.max(s[u[0]][1],s[u[3]][1],s[u[12]][1],s[u[15]][1]),g=Math.ceil((p-d)*o/(e.bounds[2]-e.bounds[0]));g=Math.max(t,Math.min(n,g));var m=Math.ceil((A-f)*o/(e.bounds[3]-e.bounds[1]));m=Math.max(t,Math.min(n,m));for(var v=g+1,y=new Int32Array((m+1)*v),b=new Int32Array((m+1)*v),w=0,x=new Uint8Array(3),_=new Uint8Array(3),C=c[h[0]],S=c[h[1]],k=c[h[2]],B=c[h[3]],E=l(m),T=l(g),I=0;I<=m;I++){x[0]=(C[0]*(m-I)+k[0]*I)/m|0,x[1]=(C[1]*(m-I)+k[1]*I)/m|0,x[2]=(C[2]*(m-I)+k[2]*I)/m|0,_[0]=(S[0]*(m-I)+B[0]*I)/m|0,_[1]=(S[1]*(m-I)+B[1]*I)/m|0,_[2]=(S[2]*(m-I)+B[2]*I)/m|0;for(var M=0;M<=g;M++,w++)if(0!==I&&I!==m||0!==M&&M!==g){for(var F=0,D=0,P=0,O=0;O<=3;O++)for(var L=0;L<=3;L++,P++){var R=E[I][O]*T[M][L];F+=s[u[P]][0]*R,D+=s[u[P]][1]*R}y[w]=s.length,s.push([F,D]),b[w]=c.length;var N=new Uint8Array(3);N[0]=(x[0]*(g-M)+_[0]*M)/g|0,N[1]=(x[1]*(g-M)+_[1]*M)/g|0,N[2]=(x[2]*(g-M)+_[2]*M)/g|0,c.push(N)}}y[0]=u[0],b[0]=h[0],y[g]=u[3],b[g]=h[1],y[v*m]=u[12],b[v*m]=h[2],y[v*m+g]=u[15],b[v*m+g]=h[3],e.figures[i]={type:"lattice",coords:y,colors:b,verticesPerRow:v}}function u(e){for(var t=e.coords[0][0],n=e.coords[0][1],r=t,i=n,a=1,o=e.coords.length;a<o;a++){var s=e.coords[a][0],l=e.coords[a][1];t=t>s?s:t,n=n>l?l:n,r=r<s?s:r,i=i<l?l:i}e.bounds=[t,n,r,i]}function h(t,n,o,l,h){if(!(0,a.isStream)(t))throw new r.FormatError("Mesh data is not a stream");var d=t.dict;this.matrix=n,this.shadingType=d.get("ShadingType"),this.type="Pattern";const f=d.getArray("BBox");Array.isArray(f)&&4===f.length?this.bbox=r.Util.normalizeRect(f):this.bbox=null;var p=d.get("ColorSpace","CS");p=i.ColorSpace.parse(p,o,l,h),this.cs=p,this.background=d.has("Background")?p.getRgb(d.get("Background"),0):null;var A=d.get("Function"),g=A?h.createFromArray(A):null;this.coords=[],this.colors=[],this.figures=[];var m=new e(t,{bitsPerCoordinate:d.get("BitsPerCoordinate"),bitsPerComponent:d.get("BitsPerComponent"),bitsPerFlag:d.get("BitsPerFlag"),decode:d.getArray("Decode"),colorFn:g,colorSpace:p,numComps:g?1:p.numComps}),v=!1;switch(this.shadingType){case s.FREE_FORM_MESH:!function(e,t){for(var n=e.coords,i=e.colors,a=[],o=[],s=0;t.hasData;){var l=t.readFlag(),c=t.readCoordinate(),u=t.readComponents();if(0===s){if(!(0<=l&&l<=2))throw new r.FormatError("Unknown type4 flag");switch(l){case 0:s=3;break;case 1:o.push(o[o.length-2],o[o.length-1]),s=1;break;case 2:o.push(o[o.length-3],o[o.length-1]),s=1}a.push(l)}o.push(n.length),n.push(c),i.push(u),s--,t.align()}e.figures.push({type:"triangles",coords:new Int32Array(o),colors:new Int32Array(o)})}(this,m);break;case s.LATTICE_FORM_MESH:var y=0|d.get("VerticesPerRow");if(y<2)throw new r.FormatError("Invalid VerticesPerRow");!function(e,t,n){for(var r=e.coords,i=e.colors,a=[];t.hasData;){var o=t.readCoordinate(),s=t.readComponents();a.push(r.length),r.push(o),i.push(s)}e.figures.push({type:"lattice",coords:new Int32Array(a),colors:new Int32Array(a),verticesPerRow:n})}(this,m,y);break;case s.COONS_PATCH_MESH:!function(e,t){for(var n=e.coords,i=e.colors,a=new Int32Array(16),o=new Int32Array(4);t.hasData;){var s,l,c=t.readFlag();if(!(0<=c&&c<=3))throw new r.FormatError("Unknown type6 flag");var u=n.length;for(s=0,l=0!==c?8:12;s<l;s++)n.push(t.readCoordinate());var h,d,f,p,A=i.length;for(s=0,l=0!==c?2:4;s<l;s++)i.push(t.readComponents());switch(c){case 0:a[12]=u+3,a[13]=u+4,a[14]=u+5,a[15]=u+6,a[8]=u+2,a[11]=u+7,a[4]=u+1,a[7]=u+8,a[0]=u,a[1]=u+11,a[2]=u+10,a[3]=u+9,o[2]=A+1,o[3]=A+2,o[0]=A,o[1]=A+3;break;case 1:h=a[12],d=a[13],f=a[14],p=a[15],a[12]=p,a[13]=u+0,a[14]=u+1,a[15]=u+2,a[8]=f,a[11]=u+3,a[4]=d,a[7]=u+4,a[0]=h,a[1]=u+7,a[2]=u+6,a[3]=u+5,h=o[2],d=o[3],o[2]=d,o[3]=A,o[0]=h,o[1]=A+1;break;case 2:h=a[15],d=a[11],a[12]=a[3],a[13]=u+0,a[14]=u+1,a[15]=u+2,a[8]=a[7],a[11]=u+3,a[4]=d,a[7]=u+4,a[0]=h,a[1]=u+7,a[2]=u+6,a[3]=u+5,h=o[3],o[2]=o[1],o[3]=A,o[0]=h,o[1]=A+1;break;case 3:a[12]=a[0],a[13]=u+0,a[14]=u+1,a[15]=u+2,a[8]=a[1],a[11]=u+3,a[4]=a[2],a[7]=u+4,a[0]=a[3],a[1]=u+7,a[2]=u+6,a[3]=u+5,o[2]=o[0],o[3]=A,o[0]=o[1],o[1]=A+1}a[5]=n.length,n.push([(-4*n[a[0]][0]-n[a[15]][0]+6*(n[a[4]][0]+n[a[1]][0])-2*(n[a[12]][0]+n[a[3]][0])+3*(n[a[13]][0]+n[a[7]][0]))/9,(-4*n[a[0]][1]-n[a[15]][1]+6*(n[a[4]][1]+n[a[1]][1])-2*(n[a[12]][1]+n[a[3]][1])+3*(n[a[13]][1]+n[a[7]][1]))/9]),a[6]=n.length,n.push([(-4*n[a[3]][0]-n[a[12]][0]+6*(n[a[2]][0]+n[a[7]][0])-2*(n[a[0]][0]+n[a[15]][0])+3*(n[a[4]][0]+n[a[14]][0]))/9,(-4*n[a[3]][1]-n[a[12]][1]+6*(n[a[2]][1]+n[a[7]][1])-2*(n[a[0]][1]+n[a[15]][1])+3*(n[a[4]][1]+n[a[14]][1]))/9]),a[9]=n.length,n.push([(-4*n[a[12]][0]-n[a[3]][0]+6*(n[a[8]][0]+n[a[13]][0])-2*(n[a[0]][0]+n[a[15]][0])+3*(n[a[11]][0]+n[a[1]][0]))/9,(-4*n[a[12]][1]-n[a[3]][1]+6*(n[a[8]][1]+n[a[13]][1])-2*(n[a[0]][1]+n[a[15]][1])+3*(n[a[11]][1]+n[a[1]][1]))/9]),a[10]=n.length,n.push([(-4*n[a[15]][0]-n[a[0]][0]+6*(n[a[11]][0]+n[a[14]][0])-2*(n[a[12]][0]+n[a[3]][0])+3*(n[a[2]][0]+n[a[8]][0]))/9,(-4*n[a[15]][1]-n[a[0]][1]+6*(n[a[11]][1]+n[a[14]][1])-2*(n[a[12]][1]+n[a[3]][1])+3*(n[a[2]][1]+n[a[8]][1]))/9]),e.figures.push({type:"patch",coords:new Int32Array(a),colors:new Int32Array(o)})}}(this,m),v=!0;break;case s.TENSOR_PATCH_MESH:!function(e,t){for(var n=e.coords,i=e.colors,a=new Int32Array(16),o=new Int32Array(4);t.hasData;){var s,l,c=t.readFlag();if(!(0<=c&&c<=3))throw new r.FormatError("Unknown type7 flag");var u=n.length;for(s=0,l=0!==c?12:16;s<l;s++)n.push(t.readCoordinate());var h,d,f,p,A=i.length;for(s=0,l=0!==c?2:4;s<l;s++)i.push(t.readComponents());switch(c){case 0:a[12]=u+3,a[13]=u+4,a[14]=u+5,a[15]=u+6,a[8]=u+2,a[9]=u+13,a[10]=u+14,a[11]=u+7,a[4]=u+1,a[5]=u+12,a[6]=u+15,a[7]=u+8,a[0]=u,a[1]=u+11,a[2]=u+10,a[3]=u+9,o[2]=A+1,o[3]=A+2,o[0]=A,o[1]=A+3;break;case 1:h=a[12],d=a[13],f=a[14],p=a[15],a[12]=p,a[13]=u+0,a[14]=u+1,a[15]=u+2,a[8]=f,a[9]=u+9,a[10]=u+10,a[11]=u+3,a[4]=d,a[5]=u+8,a[6]=u+11,a[7]=u+4,a[0]=h,a[1]=u+7,a[2]=u+6,a[3]=u+5,h=o[2],d=o[3],o[2]=d,o[3]=A,o[0]=h,o[1]=A+1;break;case 2:h=a[15],d=a[11],a[12]=a[3],a[13]=u+0,a[14]=u+1,a[15]=u+2,a[8]=a[7],a[9]=u+9,a[10]=u+10,a[11]=u+3,a[4]=d,a[5]=u+8,a[6]=u+11,a[7]=u+4,a[0]=h,a[1]=u+7,a[2]=u+6,a[3]=u+5,h=o[3],o[2]=o[1],o[3]=A,o[0]=h,o[1]=A+1;break;case 3:a[12]=a[0],a[13]=u+0,a[14]=u+1,a[15]=u+2,a[8]=a[1],a[9]=u+9,a[10]=u+10,a[11]=u+3,a[4]=a[2],a[5]=u+8,a[6]=u+11,a[7]=u+4,a[0]=a[3],a[1]=u+7,a[2]=u+6,a[3]=u+5,o[2]=o[0],o[3]=A,o[0]=o[1],o[1]=A+1}e.figures.push({type:"patch",coords:new Int32Array(a),colors:new Int32Array(o)})}}(this,m),v=!0;break;default:(0,r.unreachable)("Unsupported mesh type.")}if(v){u(this);for(var b=0,w=this.figures.length;b<w;b++)c(this,b)}u(this),function(e){var t,n,r,i,a=e.coords,o=new Float32Array(2*a.length);for(t=0,r=0,n=a.length;t<n;t++){var s=a[t];o[r++]=s[0],o[r++]=s[1]}e.coords=o;var l=e.colors,c=new Uint8Array(3*l.length);for(t=0,r=0,n=l.length;t<n;t++){var u=l[t];c[r++]=u[0],c[r++]=u[1],c[r++]=u[2]}e.colors=c;var h=e.figures;for(t=0,n=h.length;t<n;t++){var d=h[t],f=d.coords,p=d.colors;for(r=0,i=f.length;r<i;r++)f[r]*=2,p[r]*=3}}(this)}return h.prototype={getIR:function(){return["Mesh",this.shadingType,this.coords,this.colors,this.figures,this.bounds,this.matrix,this.bbox,this.background]}},h}(),c.Dummy=function(){function e(){this.type="Pattern"}return e.prototype={getIR:function(){return["Dummy"]}},e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bidi=function(e,t,n){var p=!0,A=e.length;if(0===A||n)return h(e,p,n);d.length=A,f.length=A;var g,m,v=0;for(g=0;g<A;++g){d[g]=e.charAt(g);var y=e.charCodeAt(g),b="L";y<=255?b=i[y]:1424<=y&&y<=1524?b="R":1536<=y&&y<=1791?(b=a[255&y])||(0,r.warn)("Bidi: invalid Unicode character "+y.toString(16)):1792<=y&&y<=2220&&(b="AL"),"R"!==b&&"AL"!==b&&"AN"!==b||v++,f[g]=b}if(0===v)return h(e,p=!0);-1===t&&(v/A<.3?(p=!0,t=0):(p=!1,t=1));var w=[];for(g=0;g<A;++g)w[g]=t;var x,_=o(t)?"R":"L",C=_,S=C,k=C;for(g=0;g<A;++g)"NSM"===f[g]?f[g]=k:k=f[g];for(k=C,g=0;g<A;++g)"EN"===(x=f[g])?f[g]="AL"===k?"AN":"EN":"R"!==x&&"L"!==x&&"AL"!==x||(k=x);for(g=0;g<A;++g)"AL"===(x=f[g])&&(f[g]="R");for(g=1;g<A-1;++g)"ES"===f[g]&&"EN"===f[g-1]&&"EN"===f[g+1]&&(f[g]="EN"),"CS"!==f[g]||"EN"!==f[g-1]&&"AN"!==f[g-1]||f[g+1]!==f[g-1]||(f[g]=f[g-1]);for(g=0;g<A;++g)if("EN"===f[g]){var B;for(B=g-1;B>=0&&"ET"===f[B];--B)f[B]="EN";for(B=g+1;B<A&&"ET"===f[B];++B)f[B]="EN"}for(g=0;g<A;++g)"WS"!==(x=f[g])&&"ES"!==x&&"ET"!==x&&"CS"!==x||(f[g]="ON");for(k=C,g=0;g<A;++g)"EN"===(x=f[g])?f[g]="L"===k?"L":"EN":"R"!==x&&"L"!==x||(k=x);for(g=0;g<A;++g)if("ON"===f[g]){var E=l(f,g+1,"ON"),T=C;g>0&&(T=f[g-1]);var I=S;E+1<A&&(I=f[E+1]),"L"!==T&&(T="R"),"L"!==I&&(I="R"),T===I&&c(f,g,E,T),g=E-1}for(g=0;g<A;++g)"ON"===f[g]&&(f[g]=_);for(g=0;g<A;++g)x=f[g],s(w[g])?"R"===x?w[g]+=1:"AN"!==x&&"EN"!==x||(w[g]+=2):"L"!==x&&"AN"!==x&&"EN"!==x||(w[g]+=1);var M,F=-1,D=99;for(g=0,m=w.length;g<m;++g)M=w[g],F<M&&(F=M),D>M&&o(M)&&(D=M);for(M=F;M>=D;--M){var P=-1;for(g=0,m=w.length;g<m;++g)w[g]<M?P>=0&&(u(d,P,g),P=-1):P<0&&(P=g);P>=0&&u(d,P,w.length)}for(g=0,m=d.length;g<m;++g){var O=d[g];"<"!==O&&">"!==O||(d[g]="")}return h(d.join(""),p)};var r=n(2),i=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","ON","ON","ET","ET","ET","ON","ON","ON","ON","ON","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","ON","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","ON","ON","ON","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","ON","ET","ET","ET","ET","ON","ON","ON","ON","L","ON","ON","BN","ON","ON","ET","ET","EN","EN","ON","L","ON","ON","ON","EN","L","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","L","L","L","L","L","L","L","L"],a=["AN","AN","AN","AN","AN","AN","ON","ON","AL","ET","ET","AL","CS","AL","ON","ON","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","ON","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","ON","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL"];function o(e){return 0!=(1&e)}function s(e){return 0==(1&e)}function l(e,t,n){for(var r=t,i=e.length;r<i;++r)if(e[r]!==n)return r;return r}function c(e,t,n,r){for(var i=t;i<n;++i)e[i]=r}function u(e,t,n){for(var r=t,i=n-1;r<i;++r,--i){var a=e[r];e[r]=e[i],e[i]=a}}function h(e,t,n=!1){let r="ltr";return n?r="ttb":t||(r="rtl"),{str:e,dir:r}}var d=[],f=[]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getMetrics=void 0;var r=n(8),i=(0,r.getLookupTableFactory)(function(e){e.Courier=600,e["Courier-Bold"]=600,e["Courier-BoldOblique"]=600,e["Courier-Oblique"]=600,e.Helvetica=(0,r.getLookupTableFactory)(function(e){e.space=278,e.exclam=278,e.quotedbl=355,e.numbersign=556,e.dollar=556,e.percent=889,e.ampersand=667,e.quoteright=222,e.parenleft=333,e.parenright=333,e.asterisk=389,e.plus=584,e.comma=278,e.hyphen=333,e.period=278,e.slash=278,e.zero=556,e.one=556,e.two=556,e.three=556,e.four=556,e.five=556,e.six=556,e.seven=556,e.eight=556,e.nine=556,e.colon=278,e.semicolon=278,e.less=584,e.equal=584,e.greater=584,e.question=556,e.at=1015,e.A=667,e.B=667,e.C=722,e.D=722,e.E=667,e.F=611,e.G=778,e.H=722,e.I=278,e.J=500,e.K=667,e.L=556,e.M=833,e.N=722,e.O=778,e.P=667,e.Q=778,e.R=722,e.S=667,e.T=611,e.U=722,e.V=667,e.W=944,e.X=667,e.Y=667,e.Z=611,e.bracketleft=278,e.backslash=278,e.bracketright=278,e.asciicircum=469,e.underscore=556,e.quoteleft=222,e.a=556,e.b=556,e.c=500,e.d=556,e.e=556,e.f=278,e.g=556,e.h=556,e.i=222,e.j=222,e.k=500,e.l=222,e.m=833,e.n=556,e.o=556,e.p=556,e.q=556,e.r=333,e.s=500,e.t=278,e.u=556,e.v=500,e.w=722,e.x=500,e.y=500,e.z=500,e.braceleft=334,e.bar=260,e.braceright=334,e.asciitilde=584,e.exclamdown=333,e.cent=556,e.sterling=556,e.fraction=167,e.yen=556,e.florin=556,e.section=556,e.currency=556,e.quotesingle=191,e.quotedblleft=333,e.guillemotleft=556,e.guilsinglleft=333,e.guilsinglright=333,e.fi=500,e.fl=500,e.endash=556,e.dagger=556,e.daggerdbl=556,e.periodcentered=278,e.paragraph=537,e.bullet=350,e.quotesinglbase=222,e.quotedblbase=333,e.quotedblright=333,e.guillemotright=556,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=611,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=1e3,e.ordfeminine=370,e.Lslash=556,e.Oslash=778,e.OE=1e3,e.ordmasculine=365,e.ae=889,e.dotlessi=278,e.lslash=222,e.oslash=611,e.oe=944,e.germandbls=611,e.Idieresis=278,e.eacute=556,e.abreve=556,e.uhungarumlaut=556,e.ecaron=556,e.Ydieresis=667,e.divide=584,e.Yacute=667,e.Acircumflex=667,e.aacute=556,e.Ucircumflex=722,e.yacute=500,e.scommaaccent=500,e.ecircumflex=556,e.Uring=722,e.Udieresis=722,e.aogonek=556,e.Uacute=722,e.uogonek=556,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=737,e.Emacron=667,e.ccaron=500,e.aring=556,e.Ncommaaccent=722,e.lacute=222,e.agrave=556,e.Tcommaaccent=611,e.Cacute=722,e.atilde=556,e.Edotaccent=667,e.scaron=500,e.scedilla=500,e.iacute=278,e.lozenge=471,e.Rcaron=722,e.Gcommaaccent=778,e.ucircumflex=556,e.acircumflex=556,e.Amacron=667,e.rcaron=333,e.ccedilla=500,e.Zdotaccent=611,e.Thorn=667,e.Omacron=778,e.Racute=722,e.Sacute=667,e.dcaron=643,e.Umacron=722,e.uring=556,e.threesuperior=333,e.Ograve=778,e.Agrave=667,e.Abreve=667,e.multiply=584,e.uacute=556,e.Tcaron=611,e.partialdiff=476,e.ydieresis=500,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=556,e.edieresis=556,e.cacute=500,e.nacute=556,e.umacron=556,e.Ncaron=722,e.Iacute=278,e.plusminus=584,e.brokenbar=260,e.registered=737,e.Gbreve=778,e.Idotaccent=278,e.summation=600,e.Egrave=667,e.racute=333,e.omacron=556,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=722,e.lcommaaccent=222,e.tcaron=317,e.eogonek=556,e.Uogonek=722,e.Aacute=667,e.Adieresis=667,e.egrave=556,e.zacute=500,e.iogonek=222,e.Oacute=778,e.oacute=556,e.amacron=556,e.sacute=500,e.idieresis=278,e.Ocircumflex=778,e.Ugrave=722,e.Delta=612,e.thorn=556,e.twosuperior=333,e.Odieresis=778,e.mu=556,e.igrave=278,e.ohungarumlaut=556,e.Eogonek=667,e.dcroat=556,e.threequarters=834,e.Scedilla=667,e.lcaron=299,e.Kcommaaccent=667,e.Lacute=556,e.trademark=1e3,e.edotaccent=556,e.Igrave=278,e.Imacron=278,e.Lcaron=556,e.onehalf=834,e.lessequal=549,e.ocircumflex=556,e.ntilde=556,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=556,e.gbreve=556,e.onequarter=834,e.Scaron=667,e.Scommaaccent=667,e.Ohungarumlaut=778,e.degree=400,e.ograve=556,e.Ccaron=722,e.ugrave=556,e.radical=453,e.Dcaron=722,e.rcommaaccent=333,e.Ntilde=722,e.otilde=556,e.Rcommaaccent=722,e.Lcommaaccent=556,e.Atilde=667,e.Aogonek=667,e.Aring=667,e.Otilde=778,e.zdotaccent=500,e.Ecaron=667,e.Iogonek=278,e.kcommaaccent=500,e.minus=584,e.Icircumflex=278,e.ncaron=556,e.tcommaaccent=278,e.logicalnot=584,e.odieresis=556,e.udieresis=556,e.notequal=549,e.gcommaaccent=556,e.eth=556,e.zcaron=500,e.ncommaaccent=556,e.onesuperior=333,e.imacron=278,e.Euro=556}),e["Helvetica-Bold"]=(0,r.getLookupTableFactory)(function(e){e.space=278,e.exclam=333,e.quotedbl=474,e.numbersign=556,e.dollar=556,e.percent=889,e.ampersand=722,e.quoteright=278,e.parenleft=333,e.parenright=333,e.asterisk=389,e.plus=584,e.comma=278,e.hyphen=333,e.period=278,e.slash=278,e.zero=556,e.one=556,e.two=556,e.three=556,e.four=556,e.five=556,e.six=556,e.seven=556,e.eight=556,e.nine=556,e.colon=333,e.semicolon=333,e.less=584,e.equal=584,e.greater=584,e.question=611,e.at=975,e.A=722,e.B=722,e.C=722,e.D=722,e.E=667,e.F=611,e.G=778,e.H=722,e.I=278,e.J=556,e.K=722,e.L=611,e.M=833,e.N=722,e.O=778,e.P=667,e.Q=778,e.R=722,e.S=667,e.T=611,e.U=722,e.V=667,e.W=944,e.X=667,e.Y=667,e.Z=611,e.bracketleft=333,e.backslash=278,e.bracketright=333,e.asciicircum=584,e.underscore=556,e.quoteleft=278,e.a=556,e.b=611,e.c=556,e.d=611,e.e=556,e.f=333,e.g=611,e.h=611,e.i=278,e.j=278,e.k=556,e.l=278,e.m=889,e.n=611,e.o=611,e.p=611,e.q=611,e.r=389,e.s=556,e.t=333,e.u=611,e.v=556,e.w=778,e.x=556,e.y=556,e.z=500,e.braceleft=389,e.bar=280,e.braceright=389,e.asciitilde=584,e.exclamdown=333,e.cent=556,e.sterling=556,e.fraction=167,e.yen=556,e.florin=556,e.section=556,e.currency=556,e.quotesingle=238,e.quotedblleft=500,e.guillemotleft=556,e.guilsinglleft=333,e.guilsinglright=333,e.fi=611,e.fl=611,e.endash=556,e.dagger=556,e.daggerdbl=556,e.periodcentered=278,e.paragraph=556,e.bullet=350,e.quotesinglbase=278,e.quotedblbase=500,e.quotedblright=500,e.guillemotright=556,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=611,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=1e3,e.ordfeminine=370,e.Lslash=611,e.Oslash=778,e.OE=1e3,e.ordmasculine=365,e.ae=889,e.dotlessi=278,e.lslash=278,e.oslash=611,e.oe=944,e.germandbls=611,e.Idieresis=278,e.eacute=556,e.abreve=556,e.uhungarumlaut=611,e.ecaron=556,e.Ydieresis=667,e.divide=584,e.Yacute=667,e.Acircumflex=722,e.aacute=556,e.Ucircumflex=722,e.yacute=556,e.scommaaccent=556,e.ecircumflex=556,e.Uring=722,e.Udieresis=722,e.aogonek=556,e.Uacute=722,e.uogonek=611,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=737,e.Emacron=667,e.ccaron=556,e.aring=556,e.Ncommaaccent=722,e.lacute=278,e.agrave=556,e.Tcommaaccent=611,e.Cacute=722,e.atilde=556,e.Edotaccent=667,e.scaron=556,e.scedilla=556,e.iacute=278,e.lozenge=494,e.Rcaron=722,e.Gcommaaccent=778,e.ucircumflex=611,e.acircumflex=556,e.Amacron=722,e.rcaron=389,e.ccedilla=556,e.Zdotaccent=611,e.Thorn=667,e.Omacron=778,e.Racute=722,e.Sacute=667,e.dcaron=743,e.Umacron=722,e.uring=611,e.threesuperior=333,e.Ograve=778,e.Agrave=722,e.Abreve=722,e.multiply=584,e.uacute=611,e.Tcaron=611,e.partialdiff=494,e.ydieresis=556,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=556,e.edieresis=556,e.cacute=556,e.nacute=611,e.umacron=611,e.Ncaron=722,e.Iacute=278,e.plusminus=584,e.brokenbar=280,e.registered=737,e.Gbreve=778,e.Idotaccent=278,e.summation=600,e.Egrave=667,e.racute=389,e.omacron=611,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=722,e.lcommaaccent=278,e.tcaron=389,e.eogonek=556,e.Uogonek=722,e.Aacute=722,e.Adieresis=722,e.egrave=556,e.zacute=500,e.iogonek=278,e.Oacute=778,e.oacute=611,e.amacron=556,e.sacute=556,e.idieresis=278,e.Ocircumflex=778,e.Ugrave=722,e.Delta=612,e.thorn=611,e.twosuperior=333,e.Odieresis=778,e.mu=611,e.igrave=278,e.ohungarumlaut=611,e.Eogonek=667,e.dcroat=611,e.threequarters=834,e.Scedilla=667,e.lcaron=400,e.Kcommaaccent=722,e.Lacute=611,e.trademark=1e3,e.edotaccent=556,e.Igrave=278,e.Imacron=278,e.Lcaron=611,e.onehalf=834,e.lessequal=549,e.ocircumflex=611,e.ntilde=611,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=556,e.gbreve=611,e.onequarter=834,e.Scaron=667,e.Scommaaccent=667,e.Ohungarumlaut=778,e.degree=400,e.ograve=611,e.Ccaron=722,e.ugrave=611,e.radical=549,e.Dcaron=722,e.rcommaaccent=389,e.Ntilde=722,e.otilde=611,e.Rcommaaccent=722,e.Lcommaaccent=611,e.Atilde=722,e.Aogonek=722,e.Aring=722,e.Otilde=778,e.zdotaccent=500,e.Ecaron=667,e.Iogonek=278,e.kcommaaccent=556,e.minus=584,e.Icircumflex=278,e.ncaron=611,e.tcommaaccent=333,e.logicalnot=584,e.odieresis=611,e.udieresis=611,e.notequal=549,e.gcommaaccent=611,e.eth=611,e.zcaron=500,e.ncommaaccent=611,e.onesuperior=333,e.imacron=278,e.Euro=556}),e["Helvetica-BoldOblique"]=(0,r.getLookupTableFactory)(function(e){e.space=278,e.exclam=333,e.quotedbl=474,e.numbersign=556,e.dollar=556,e.percent=889,e.ampersand=722,e.quoteright=278,e.parenleft=333,e.parenright=333,e.asterisk=389,e.plus=584,e.comma=278,e.hyphen=333,e.period=278,e.slash=278,e.zero=556,e.one=556,e.two=556,e.three=556,e.four=556,e.five=556,e.six=556,e.seven=556,e.eight=556,e.nine=556,e.colon=333,e.semicolon=333,e.less=584,e.equal=584,e.greater=584,e.question=611,e.at=975,e.A=722,e.B=722,e.C=722,e.D=722,e.E=667,e.F=611,e.G=778,e.H=722,e.I=278,e.J=556,e.K=722,e.L=611,e.M=833,e.N=722,e.O=778,e.P=667,e.Q=778,e.R=722,e.S=667,e.T=611,e.U=722,e.V=667,e.W=944,e.X=667,e.Y=667,e.Z=611,e.bracketleft=333,e.backslash=278,e.bracketright=333,e.asciicircum=584,e.underscore=556,e.quoteleft=278,e.a=556,e.b=611,e.c=556,e.d=611,e.e=556,e.f=333,e.g=611,e.h=611,e.i=278,e.j=278,e.k=556,e.l=278,e.m=889,e.n=611,e.o=611,e.p=611,e.q=611,e.r=389,e.s=556,e.t=333,e.u=611,e.v=556,e.w=778,e.x=556,e.y=556,e.z=500,e.braceleft=389,e.bar=280,e.braceright=389,e.asciitilde=584,e.exclamdown=333,e.cent=556,e.sterling=556,e.fraction=167,e.yen=556,e.florin=556,e.section=556,e.currency=556,e.quotesingle=238,e.quotedblleft=500,e.guillemotleft=556,e.guilsinglleft=333,e.guilsinglright=333,e.fi=611,e.fl=611,e.endash=556,e.dagger=556,e.daggerdbl=556,e.periodcentered=278,e.paragraph=556,e.bullet=350,e.quotesinglbase=278,e.quotedblbase=500,e.quotedblright=500,e.guillemotright=556,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=611,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=1e3,e.ordfeminine=370,e.Lslash=611,e.Oslash=778,e.OE=1e3,e.ordmasculine=365,e.ae=889,e.dotlessi=278,e.lslash=278,e.oslash=611,e.oe=944,e.germandbls=611,e.Idieresis=278,e.eacute=556,e.abreve=556,e.uhungarumlaut=611,e.ecaron=556,e.Ydieresis=667,e.divide=584,e.Yacute=667,e.Acircumflex=722,e.aacute=556,e.Ucircumflex=722,e.yacute=556,e.scommaaccent=556,e.ecircumflex=556,e.Uring=722,e.Udieresis=722,e.aogonek=556,e.Uacute=722,e.uogonek=611,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=737,e.Emacron=667,e.ccaron=556,e.aring=556,e.Ncommaaccent=722,e.lacute=278,e.agrave=556,e.Tcommaaccent=611,e.Cacute=722,e.atilde=556,e.Edotaccent=667,e.scaron=556,e.scedilla=556,e.iacute=278,e.lozenge=494,e.Rcaron=722,e.Gcommaaccent=778,e.ucircumflex=611,e.acircumflex=556,e.Amacron=722,e.rcaron=389,e.ccedilla=556,e.Zdotaccent=611,e.Thorn=667,e.Omacron=778,e.Racute=722,e.Sacute=667,e.dcaron=743,e.Umacron=722,e.uring=611,e.threesuperior=333,e.Ograve=778,e.Agrave=722,e.Abreve=722,e.multiply=584,e.uacute=611,e.Tcaron=611,e.partialdiff=494,e.ydieresis=556,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=556,e.edieresis=556,e.cacute=556,e.nacute=611,e.umacron=611,e.Ncaron=722,e.Iacute=278,e.plusminus=584,e.brokenbar=280,e.registered=737,e.Gbreve=778,e.Idotaccent=278,e.summation=600,e.Egrave=667,e.racute=389,e.omacron=611,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=722,e.lcommaaccent=278,e.tcaron=389,e.eogonek=556,e.Uogonek=722,e.Aacute=722,e.Adieresis=722,e.egrave=556,e.zacute=500,e.iogonek=278,e.Oacute=778,e.oacute=611,e.amacron=556,e.sacute=556,e.idieresis=278,e.Ocircumflex=778,e.Ugrave=722,e.Delta=612,e.thorn=611,e.twosuperior=333,e.Odieresis=778,e.mu=611,e.igrave=278,e.ohungarumlaut=611,e.Eogonek=667,e.dcroat=611,e.threequarters=834,e.Scedilla=667,e.lcaron=400,e.Kcommaaccent=722,e.Lacute=611,e.trademark=1e3,e.edotaccent=556,e.Igrave=278,e.Imacron=278,e.Lcaron=611,e.onehalf=834,e.lessequal=549,e.ocircumflex=611,e.ntilde=611,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=556,e.gbreve=611,e.onequarter=834,e.Scaron=667,e.Scommaaccent=667,e.Ohungarumlaut=778,e.degree=400,e.ograve=611,e.Ccaron=722,e.ugrave=611,e.radical=549,e.Dcaron=722,e.rcommaaccent=389,e.Ntilde=722,e.otilde=611,e.Rcommaaccent=722,e.Lcommaaccent=611,e.Atilde=722,e.Aogonek=722,e.Aring=722,e.Otilde=778,e.zdotaccent=500,e.Ecaron=667,e.Iogonek=278,e.kcommaaccent=556,e.minus=584,e.Icircumflex=278,e.ncaron=611,e.tcommaaccent=333,e.logicalnot=584,e.odieresis=611,e.udieresis=611,e.notequal=549,e.gcommaaccent=611,e.eth=611,e.zcaron=500,e.ncommaaccent=611,e.onesuperior=333,e.imacron=278,e.Euro=556}),e["Helvetica-Oblique"]=(0,r.getLookupTableFactory)(function(e){e.space=278,e.exclam=278,e.quotedbl=355,e.numbersign=556,e.dollar=556,e.percent=889,e.ampersand=667,e.quoteright=222,e.parenleft=333,e.parenright=333,e.asterisk=389,e.plus=584,e.comma=278,e.hyphen=333,e.period=278,e.slash=278,e.zero=556,e.one=556,e.two=556,e.three=556,e.four=556,e.five=556,e.six=556,e.seven=556,e.eight=556,e.nine=556,e.colon=278,e.semicolon=278,e.less=584,e.equal=584,e.greater=584,e.question=556,e.at=1015,e.A=667,e.B=667,e.C=722,e.D=722,e.E=667,e.F=611,e.G=778,e.H=722,e.I=278,e.J=500,e.K=667,e.L=556,e.M=833,e.N=722,e.O=778,e.P=667,e.Q=778,e.R=722,e.S=667,e.T=611,e.U=722,e.V=667,e.W=944,e.X=667,e.Y=667,e.Z=611,e.bracketleft=278,e.backslash=278,e.bracketright=278,e.asciicircum=469,e.underscore=556,e.quoteleft=222,e.a=556,e.b=556,e.c=500,e.d=556,e.e=556,e.f=278,e.g=556,e.h=556,e.i=222,e.j=222,e.k=500,e.l=222,e.m=833,e.n=556,e.o=556,e.p=556,e.q=556,e.r=333,e.s=500,e.t=278,e.u=556,e.v=500,e.w=722,e.x=500,e.y=500,e.z=500,e.braceleft=334,e.bar=260,e.braceright=334,e.asciitilde=584,e.exclamdown=333,e.cent=556,e.sterling=556,e.fraction=167,e.yen=556,e.florin=556,e.section=556,e.currency=556,e.quotesingle=191,e.quotedblleft=333,e.guillemotleft=556,e.guilsinglleft=333,e.guilsinglright=333,e.fi=500,e.fl=500,e.endash=556,e.dagger=556,e.daggerdbl=556,e.periodcentered=278,e.paragraph=537,e.bullet=350,e.quotesinglbase=222,e.quotedblbase=333,e.quotedblright=333,e.guillemotright=556,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=611,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=1e3,e.ordfeminine=370,e.Lslash=556,e.Oslash=778,e.OE=1e3,e.ordmasculine=365,e.ae=889,e.dotlessi=278,e.lslash=222,e.oslash=611,e.oe=944,e.germandbls=611,e.Idieresis=278,e.eacute=556,e.abreve=556,e.uhungarumlaut=556,e.ecaron=556,e.Ydieresis=667,e.divide=584,e.Yacute=667,e.Acircumflex=667,e.aacute=556,e.Ucircumflex=722,e.yacute=500,e.scommaaccent=500,e.ecircumflex=556,e.Uring=722,e.Udieresis=722,e.aogonek=556,e.Uacute=722,e.uogonek=556,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=737,e.Emacron=667,e.ccaron=500,e.aring=556,e.Ncommaaccent=722,e.lacute=222,e.agrave=556,e.Tcommaaccent=611,e.Cacute=722,e.atilde=556,e.Edotaccent=667,e.scaron=500,e.scedilla=500,e.iacute=278,e.lozenge=471,e.Rcaron=722,e.Gcommaaccent=778,e.ucircumflex=556,e.acircumflex=556,e.Amacron=667,e.rcaron=333,e.ccedilla=500,e.Zdotaccent=611,e.Thorn=667,e.Omacron=778,e.Racute=722,e.Sacute=667,e.dcaron=643,e.Umacron=722,e.uring=556,e.threesuperior=333,e.Ograve=778,e.Agrave=667,e.Abreve=667,e.multiply=584,e.uacute=556,e.Tcaron=611,e.partialdiff=476,e.ydieresis=500,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=556,e.edieresis=556,e.cacute=500,e.nacute=556,e.umacron=556,e.Ncaron=722,e.Iacute=278,e.plusminus=584,e.brokenbar=260,e.registered=737,e.Gbreve=778,e.Idotaccent=278,e.summation=600,e.Egrave=667,e.racute=333,e.omacron=556,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=722,e.lcommaaccent=222,e.tcaron=317,e.eogonek=556,e.Uogonek=722,e.Aacute=667,e.Adieresis=667,e.egrave=556,e.zacute=500,e.iogonek=222,e.Oacute=778,e.oacute=556,e.amacron=556,e.sacute=500,e.idieresis=278,e.Ocircumflex=778,e.Ugrave=722,e.Delta=612,e.thorn=556,e.twosuperior=333,e.Odieresis=778,e.mu=556,e.igrave=278,e.ohungarumlaut=556,e.Eogonek=667,e.dcroat=556,e.threequarters=834,e.Scedilla=667,e.lcaron=299,e.Kcommaaccent=667,e.Lacute=556,e.trademark=1e3,e.edotaccent=556,e.Igrave=278,e.Imacron=278,e.Lcaron=556,e.onehalf=834,e.lessequal=549,e.ocircumflex=556,e.ntilde=556,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=556,e.gbreve=556,e.onequarter=834,e.Scaron=667,e.Scommaaccent=667,e.Ohungarumlaut=778,e.degree=400,e.ograve=556,e.Ccaron=722,e.ugrave=556,e.radical=453,e.Dcaron=722,e.rcommaaccent=333,e.Ntilde=722,e.otilde=556,e.Rcommaaccent=722,e.Lcommaaccent=556,e.Atilde=667,e.Aogonek=667,e.Aring=667,e.Otilde=778,e.zdotaccent=500,e.Ecaron=667,e.Iogonek=278,e.kcommaaccent=500,e.minus=584,e.Icircumflex=278,e.ncaron=556,e.tcommaaccent=278,e.logicalnot=584,e.odieresis=556,e.udieresis=556,e.notequal=549,e.gcommaaccent=556,e.eth=556,e.zcaron=500,e.ncommaaccent=556,e.onesuperior=333,e.imacron=278,e.Euro=556}),e.Symbol=(0,r.getLookupTableFactory)(function(e){e.space=250,e.exclam=333,e.universal=713,e.numbersign=500,e.existential=549,e.percent=833,e.ampersand=778,e.suchthat=439,e.parenleft=333,e.parenright=333,e.asteriskmath=500,e.plus=549,e.comma=250,e.minus=549,e.period=250,e.slash=278,e.zero=500,e.one=500,e.two=500,e.three=500,e.four=500,e.five=500,e.six=500,e.seven=500,e.eight=500,e.nine=500,e.colon=278,e.semicolon=278,e.less=549,e.equal=549,e.greater=549,e.question=444,e.congruent=549,e.Alpha=722,e.Beta=667,e.Chi=722,e.Delta=612,e.Epsilon=611,e.Phi=763,e.Gamma=603,e.Eta=722,e.Iota=333,e.theta1=631,e.Kappa=722,e.Lambda=686,e.Mu=889,e.Nu=722,e.Omicron=722,e.Pi=768,e.Theta=741,e.Rho=556,e.Sigma=592,e.Tau=611,e.Upsilon=690,e.sigma1=439,e.Omega=768,e.Xi=645,e.Psi=795,e.Zeta=611,e.bracketleft=333,e.therefore=863,e.bracketright=333,e.perpendicular=658,e.underscore=500,e.radicalex=500,e.alpha=631,e.beta=549,e.chi=549,e.delta=494,e.epsilon=439,e.phi=521,e.gamma=411,e.eta=603,e.iota=329,e.phi1=603,e.kappa=549,e.lambda=549,e.mu=576,e.nu=521,e.omicron=549,e.pi=549,e.theta=521,e.rho=549,e.sigma=603,e.tau=439,e.upsilon=576,e.omega1=713,e.omega=686,e.xi=493,e.psi=686,e.zeta=494,e.braceleft=480,e.bar=200,e.braceright=480,e.similar=549,e.Euro=750,e.Upsilon1=620,e.minute=247,e.lessequal=549,e.fraction=167,e.infinity=713,e.florin=500,e.club=753,e.diamond=753,e.heart=753,e.spade=753,e.arrowboth=1042,e.arrowleft=987,e.arrowup=603,e.arrowright=987,e.arrowdown=603,e.degree=400,e.plusminus=549,e.second=411,e.greaterequal=549,e.multiply=549,e.proportional=713,e.partialdiff=494,e.bullet=460,e.divide=549,e.notequal=549,e.equivalence=549,e.approxequal=549,e.ellipsis=1e3,e.arrowvertex=603,e.arrowhorizex=1e3,e.carriagereturn=658,e.aleph=823,e.Ifraktur=686,e.Rfraktur=795,e.weierstrass=987,e.circlemultiply=768,e.circleplus=768,e.emptyset=823,e.intersection=768,e.union=768,e.propersuperset=713,e.reflexsuperset=713,e.notsubset=713,e.propersubset=713,e.reflexsubset=713,e.element=713,e.notelement=713,e.angle=768,e.gradient=713,e.registerserif=790,e.copyrightserif=790,e.trademarkserif=890,e.product=823,e.radical=549,e.dotmath=250,e.logicalnot=713,e.logicaland=603,e.logicalor=603,e.arrowdblboth=1042,e.arrowdblleft=987,e.arrowdblup=603,e.arrowdblright=987,e.arrowdbldown=603,e.lozenge=494,e.angleleft=329,e.registersans=790,e.copyrightsans=790,e.trademarksans=786,e.summation=713,e.parenlefttp=384,e.parenleftex=384,e.parenleftbt=384,e.bracketlefttp=384,e.bracketleftex=384,e.bracketleftbt=384,e.bracelefttp=494,e.braceleftmid=494,e.braceleftbt=494,e.braceex=494,e.angleright=329,e.integral=274,e.integraltp=686,e.integralex=686,e.integralbt=686,e.parenrighttp=384,e.parenrightex=384,e.parenrightbt=384,e.bracketrighttp=384,e.bracketrightex=384,e.bracketrightbt=384,e.bracerighttp=494,e.bracerightmid=494,e.bracerightbt=494,e.apple=790}),e["Times-Roman"]=(0,r.getLookupTableFactory)(function(e){e.space=250,e.exclam=333,e.quotedbl=408,e.numbersign=500,e.dollar=500,e.percent=833,e.ampersand=778,e.quoteright=333,e.parenleft=333,e.parenright=333,e.asterisk=500,e.plus=564,e.comma=250,e.hyphen=333,e.period=250,e.slash=278,e.zero=500,e.one=500,e.two=500,e.three=500,e.four=500,e.five=500,e.six=500,e.seven=500,e.eight=500,e.nine=500,e.colon=278,e.semicolon=278,e.less=564,e.equal=564,e.greater=564,e.question=444,e.at=921,e.A=722,e.B=667,e.C=667,e.D=722,e.E=611,e.F=556,e.G=722,e.H=722,e.I=333,e.J=389,e.K=722,e.L=611,e.M=889,e.N=722,e.O=722,e.P=556,e.Q=722,e.R=667,e.S=556,e.T=611,e.U=722,e.V=722,e.W=944,e.X=722,e.Y=722,e.Z=611,e.bracketleft=333,e.backslash=278,e.bracketright=333,e.asciicircum=469,e.underscore=500,e.quoteleft=333,e.a=444,e.b=500,e.c=444,e.d=500,e.e=444,e.f=333,e.g=500,e.h=500,e.i=278,e.j=278,e.k=500,e.l=278,e.m=778,e.n=500,e.o=500,e.p=500,e.q=500,e.r=333,e.s=389,e.t=278,e.u=500,e.v=500,e.w=722,e.x=500,e.y=500,e.z=444,e.braceleft=480,e.bar=200,e.braceright=480,e.asciitilde=541,e.exclamdown=333,e.cent=500,e.sterling=500,e.fraction=167,e.yen=500,e.florin=500,e.section=500,e.currency=500,e.quotesingle=180,e.quotedblleft=444,e.guillemotleft=500,e.guilsinglleft=333,e.guilsinglright=333,e.fi=556,e.fl=556,e.endash=500,e.dagger=500,e.daggerdbl=500,e.periodcentered=250,e.paragraph=453,e.bullet=350,e.quotesinglbase=333,e.quotedblbase=444,e.quotedblright=444,e.guillemotright=500,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=444,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=889,e.ordfeminine=276,e.Lslash=611,e.Oslash=722,e.OE=889,e.ordmasculine=310,e.ae=667,e.dotlessi=278,e.lslash=278,e.oslash=500,e.oe=722,e.germandbls=500,e.Idieresis=333,e.eacute=444,e.abreve=444,e.uhungarumlaut=500,e.ecaron=444,e.Ydieresis=722,e.divide=564,e.Yacute=722,e.Acircumflex=722,e.aacute=444,e.Ucircumflex=722,e.yacute=500,e.scommaaccent=389,e.ecircumflex=444,e.Uring=722,e.Udieresis=722,e.aogonek=444,e.Uacute=722,e.uogonek=500,e.Edieresis=611,e.Dcroat=722,e.commaaccent=250,e.copyright=760,e.Emacron=611,e.ccaron=444,e.aring=444,e.Ncommaaccent=722,e.lacute=278,e.agrave=444,e.Tcommaaccent=611,e.Cacute=667,e.atilde=444,e.Edotaccent=611,e.scaron=389,e.scedilla=389,e.iacute=278,e.lozenge=471,e.Rcaron=667,e.Gcommaaccent=722,e.ucircumflex=500,e.acircumflex=444,e.Amacron=722,e.rcaron=333,e.ccedilla=444,e.Zdotaccent=611,e.Thorn=556,e.Omacron=722,e.Racute=667,e.Sacute=556,e.dcaron=588,e.Umacron=722,e.uring=500,e.threesuperior=300,e.Ograve=722,e.Agrave=722,e.Abreve=722,e.multiply=564,e.uacute=500,e.Tcaron=611,e.partialdiff=476,e.ydieresis=500,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=611,e.adieresis=444,e.edieresis=444,e.cacute=444,e.nacute=500,e.umacron=500,e.Ncaron=722,e.Iacute=333,e.plusminus=564,e.brokenbar=200,e.registered=760,e.Gbreve=722,e.Idotaccent=333,e.summation=600,e.Egrave=611,e.racute=333,e.omacron=500,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=667,e.lcommaaccent=278,e.tcaron=326,e.eogonek=444,e.Uogonek=722,e.Aacute=722,e.Adieresis=722,e.egrave=444,e.zacute=444,e.iogonek=278,e.Oacute=722,e.oacute=500,e.amacron=444,e.sacute=389,e.idieresis=278,e.Ocircumflex=722,e.Ugrave=722,e.Delta=612,e.thorn=500,e.twosuperior=300,e.Odieresis=722,e.mu=500,e.igrave=278,e.ohungarumlaut=500,e.Eogonek=611,e.dcroat=500,e.threequarters=750,e.Scedilla=556,e.lcaron=344,e.Kcommaaccent=722,e.Lacute=611,e.trademark=980,e.edotaccent=444,e.Igrave=333,e.Imacron=333,e.Lcaron=611,e.onehalf=750,e.lessequal=549,e.ocircumflex=500,e.ntilde=500,e.Uhungarumlaut=722,e.Eacute=611,e.emacron=444,e.gbreve=500,e.onequarter=750,e.Scaron=556,e.Scommaaccent=556,e.Ohungarumlaut=722,e.degree=400,e.ograve=500,e.Ccaron=667,e.ugrave=500,e.radical=453,e.Dcaron=722,e.rcommaaccent=333,e.Ntilde=722,e.otilde=500,e.Rcommaaccent=667,e.Lcommaaccent=611,e.Atilde=722,e.Aogonek=722,e.Aring=722,e.Otilde=722,e.zdotaccent=444,e.Ecaron=611,e.Iogonek=333,e.kcommaaccent=500,e.minus=564,e.Icircumflex=333,e.ncaron=500,e.tcommaaccent=278,e.logicalnot=564,e.odieresis=500,e.udieresis=500,e.notequal=549,e.gcommaaccent=500,e.eth=500,e.zcaron=444,e.ncommaaccent=500,e.onesuperior=300,e.imacron=278,e.Euro=500}),e["Times-Bold"]=(0,r.getLookupTableFactory)(function(e){e.space=250,e.exclam=333,e.quotedbl=555,e.numbersign=500,e.dollar=500,e.percent=1e3,e.ampersand=833,e.quoteright=333,e.parenleft=333,e.parenright=333,e.asterisk=500,e.plus=570,e.comma=250,e.hyphen=333,e.period=250,e.slash=278,e.zero=500,e.one=500,e.two=500,e.three=500,e.four=500,e.five=500,e.six=500,e.seven=500,e.eight=500,e.nine=500,e.colon=333,e.semicolon=333,e.less=570,e.equal=570,e.greater=570,e.question=500,e.at=930,e.A=722,e.B=667,e.C=722,e.D=722,e.E=667,e.F=611,e.G=778,e.H=778,e.I=389,e.J=500,e.K=778,e.L=667,e.M=944,e.N=722,e.O=778,e.P=611,e.Q=778,e.R=722,e.S=556,e.T=667,e.U=722,e.V=722,e.W=1e3,e.X=722,e.Y=722,e.Z=667,e.bracketleft=333,e.backslash=278,e.bracketright=333,e.asciicircum=581,e.underscore=500,e.quoteleft=333,e.a=500,e.b=556,e.c=444,e.d=556,e.e=444,e.f=333,e.g=500,e.h=556,e.i=278,e.j=333,e.k=556,e.l=278,e.m=833,e.n=556,e.o=500,e.p=556,e.q=556,e.r=444,e.s=389,e.t=333,e.u=556,e.v=500,e.w=722,e.x=500,e.y=500,e.z=444,e.braceleft=394,e.bar=220,e.braceright=394,e.asciitilde=520,e.exclamdown=333,e.cent=500,e.sterling=500,e.fraction=167,e.yen=500,e.florin=500,e.section=500,e.currency=500,e.quotesingle=278,e.quotedblleft=500,e.guillemotleft=500,e.guilsinglleft=333,e.guilsinglright=333,e.fi=556,e.fl=556,e.endash=500,e.dagger=500,e.daggerdbl=500,e.periodcentered=250,e.paragraph=540,e.bullet=350,e.quotesinglbase=333,e.quotedblbase=500,e.quotedblright=500,e.guillemotright=500,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=500,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=1e3,e.ordfeminine=300,e.Lslash=667,e.Oslash=778,e.OE=1e3,e.ordmasculine=330,e.ae=722,e.dotlessi=278,e.lslash=278,e.oslash=500,e.oe=722,e.germandbls=556,e.Idieresis=389,e.eacute=444,e.abreve=500,e.uhungarumlaut=556,e.ecaron=444,e.Ydieresis=722,e.divide=570,e.Yacute=722,e.Acircumflex=722,e.aacute=500,e.Ucircumflex=722,e.yacute=500,e.scommaaccent=389,e.ecircumflex=444,e.Uring=722,e.Udieresis=722,e.aogonek=500,e.Uacute=722,e.uogonek=556,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=747,e.Emacron=667,e.ccaron=444,e.aring=500,e.Ncommaaccent=722,e.lacute=278,e.agrave=500,e.Tcommaaccent=667,e.Cacute=722,e.atilde=500,e.Edotaccent=667,e.scaron=389,e.scedilla=389,e.iacute=278,e.lozenge=494,e.Rcaron=722,e.Gcommaaccent=778,e.ucircumflex=556,e.acircumflex=500,e.Amacron=722,e.rcaron=444,e.ccedilla=444,e.Zdotaccent=667,e.Thorn=611,e.Omacron=778,e.Racute=722,e.Sacute=556,e.dcaron=672,e.Umacron=722,e.uring=556,e.threesuperior=300,e.Ograve=778,e.Agrave=722,e.Abreve=722,e.multiply=570,e.uacute=556,e.Tcaron=667,e.partialdiff=494,e.ydieresis=500,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=500,e.edieresis=444,e.cacute=444,e.nacute=556,e.umacron=556,e.Ncaron=722,e.Iacute=389,e.plusminus=570,e.brokenbar=220,e.registered=747,e.Gbreve=778,e.Idotaccent=389,e.summation=600,e.Egrave=667,e.racute=444,e.omacron=500,e.Zacute=667,e.Zcaron=667,e.greaterequal=549,e.Eth=722,e.Ccedilla=722,e.lcommaaccent=278,e.tcaron=416,e.eogonek=444,e.Uogonek=722,e.Aacute=722,e.Adieresis=722,e.egrave=444,e.zacute=444,e.iogonek=278,e.Oacute=778,e.oacute=500,e.amacron=500,e.sacute=389,e.idieresis=278,e.Ocircumflex=778,e.Ugrave=722,e.Delta=612,e.thorn=556,e.twosuperior=300,e.Odieresis=778,e.mu=556,e.igrave=278,e.ohungarumlaut=500,e.Eogonek=667,e.dcroat=556,e.threequarters=750,e.Scedilla=556,e.lcaron=394,e.Kcommaaccent=778,e.Lacute=667,e.trademark=1e3,e.edotaccent=444,e.Igrave=389,e.Imacron=389,e.Lcaron=667,e.onehalf=750,e.lessequal=549,e.ocircumflex=500,e.ntilde=556,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=444,e.gbreve=500,e.onequarter=750,e.Scaron=556,e.Scommaaccent=556,e.Ohungarumlaut=778,e.degree=400,e.ograve=500,e.Ccaron=722,e.ugrave=556,e.radical=549,e.Dcaron=722,e.rcommaaccent=444,e.Ntilde=722,e.otilde=500,e.Rcommaaccent=722,e.Lcommaaccent=667,e.Atilde=722,e.Aogonek=722,e.Aring=722,e.Otilde=778,e.zdotaccent=444,e.Ecaron=667,e.Iogonek=389,e.kcommaaccent=556,e.minus=570,e.Icircumflex=389,e.ncaron=556,e.tcommaaccent=333,e.logicalnot=570,e.odieresis=500,e.udieresis=556,e.notequal=549,e.gcommaaccent=500,e.eth=500,e.zcaron=444,e.ncommaaccent=556,e.onesuperior=300,e.imacron=278,e.Euro=500}),e["Times-BoldItalic"]=(0,r.getLookupTableFactory)(function(e){e.space=250,e.exclam=389,e.quotedbl=555,e.numbersign=500,e.dollar=500,e.percent=833,e.ampersand=778,e.quoteright=333,e.parenleft=333,e.parenright=333,e.asterisk=500,e.plus=570,e.comma=250,e.hyphen=333,e.period=250,e.slash=278,e.zero=500,e.one=500,e.two=500,e.three=500,e.four=500,e.five=500,e.six=500,e.seven=500,e.eight=500,e.nine=500,e.colon=333,e.semicolon=333,e.less=570,e.equal=570,e.greater=570,e.question=500,e.at=832,e.A=667,e.B=667,e.C=667,e.D=722,e.E=667,e.F=667,e.G=722,e.H=778,e.I=389,e.J=500,e.K=667,e.L=611,e.M=889,e.N=722,e.O=722,e.P=611,e.Q=722,e.R=667,e.S=556,e.T=611,e.U=722,e.V=667,e.W=889,e.X=667,e.Y=611,e.Z=611,e.bracketleft=333,e.backslash=278,e.bracketright=333,e.asciicircum=570,e.underscore=500,e.quoteleft=333,e.a=500,e.b=500,e.c=444,e.d=500,e.e=444,e.f=333,e.g=500,e.h=556,e.i=278,e.j=278,e.k=500,e.l=278,e.m=778,e.n=556,e.o=500,e.p=500,e.q=500,e.r=389,e.s=389,e.t=278,e.u=556,e.v=444,e.w=667,e.x=500,e.y=444,e.z=389,e.braceleft=348,e.bar=220,e.braceright=348,e.asciitilde=570,e.exclamdown=389,e.cent=500,e.sterling=500,e.fraction=167,e.yen=500,e.florin=500,e.section=500,e.currency=500,e.quotesingle=278,e.quotedblleft=500,e.guillemotleft=500,e.guilsinglleft=333,e.guilsinglright=333,e.fi=556,e.fl=556,e.endash=500,e.dagger=500,e.daggerdbl=500,e.periodcentered=250,e.paragraph=500,e.bullet=350,e.quotesinglbase=333,e.quotedblbase=500,e.quotedblright=500,e.guillemotright=500,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=500,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=944,e.ordfeminine=266,e.Lslash=611,e.Oslash=722,e.OE=944,e.ordmasculine=300,e.ae=722,e.dotlessi=278,e.lslash=278,e.oslash=500,e.oe=722,e.germandbls=500,e.Idieresis=389,e.eacute=444,e.abreve=500,e.uhungarumlaut=556,e.ecaron=444,e.Ydieresis=611,e.divide=570,e.Yacute=611,e.Acircumflex=667,e.aacute=500,e.Ucircumflex=722,e.yacute=444,e.scommaaccent=389,e.ecircumflex=444,e.Uring=722,e.Udieresis=722,e.aogonek=500,e.Uacute=722,e.uogonek=556,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=747,e.Emacron=667,e.ccaron=444,e.aring=500,e.Ncommaaccent=722,e.lacute=278,e.agrave=500,e.Tcommaaccent=611,e.Cacute=667,e.atilde=500,e.Edotaccent=667,e.scaron=389,e.scedilla=389,e.iacute=278,e.lozenge=494,e.Rcaron=667,e.Gcommaaccent=722,e.ucircumflex=556,e.acircumflex=500,e.Amacron=667,e.rcaron=389,e.ccedilla=444,e.Zdotaccent=611,e.Thorn=611,e.Omacron=722,e.Racute=667,e.Sacute=556,e.dcaron=608,e.Umacron=722,e.uring=556,e.threesuperior=300,e.Ograve=722,e.Agrave=667,e.Abreve=667,e.multiply=570,e.uacute=556,e.Tcaron=611,e.partialdiff=494,e.ydieresis=444,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=500,e.edieresis=444,e.cacute=444,e.nacute=556,e.umacron=556,e.Ncaron=722,e.Iacute=389,e.plusminus=570,e.brokenbar=220,e.registered=747,e.Gbreve=722,e.Idotaccent=389,e.summation=600,e.Egrave=667,e.racute=389,e.omacron=500,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=667,e.lcommaaccent=278,e.tcaron=366,e.eogonek=444,e.Uogonek=722,e.Aacute=667,e.Adieresis=667,e.egrave=444,e.zacute=389,e.iogonek=278,e.Oacute=722,e.oacute=500,e.amacron=500,e.sacute=389,e.idieresis=278,e.Ocircumflex=722,e.Ugrave=722,e.Delta=612,e.thorn=500,e.twosuperior=300,e.Odieresis=722,e.mu=576,e.igrave=278,e.ohungarumlaut=500,e.Eogonek=667,e.dcroat=500,e.threequarters=750,e.Scedilla=556,e.lcaron=382,e.Kcommaaccent=667,e.Lacute=611,e.trademark=1e3,e.edotaccent=444,e.Igrave=389,e.Imacron=389,e.Lcaron=611,e.onehalf=750,e.lessequal=549,e.ocircumflex=500,e.ntilde=556,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=444,e.gbreve=500,e.onequarter=750,e.Scaron=556,e.Scommaaccent=556,e.Ohungarumlaut=722,e.degree=400,e.ograve=500,e.Ccaron=667,e.ugrave=556,e.radical=549,e.Dcaron=722,e.rcommaaccent=389,e.Ntilde=722,e.otilde=500,e.Rcommaaccent=667,e.Lcommaaccent=611,e.Atilde=667,e.Aogonek=667,e.Aring=667,e.Otilde=722,e.zdotaccent=389,e.Ecaron=667,e.Iogonek=389,e.kcommaaccent=500,e.minus=606,e.Icircumflex=389,e.ncaron=556,e.tcommaaccent=278,e.logicalnot=606,e.odieresis=500,e.udieresis=556,e.notequal=549,e.gcommaaccent=500,e.eth=500,e.zcaron=389,e.ncommaaccent=556,e.onesuperior=300,e.imacron=278,e.Euro=500}),e["Times-Italic"]=(0,r.getLookupTableFactory)(function(e){e.space=250,e.exclam=333,e.quotedbl=420,e.numbersign=500,e.dollar=500,e.percent=833,e.ampersand=778,e.quoteright=333,e.parenleft=333,e.parenright=333,e.asterisk=500,e.plus=675,e.comma=250,e.hyphen=333,e.period=250,e.slash=278,e.zero=500,e.one=500,e.two=500,e.three=500,e.four=500,e.five=500,e.six=500,e.seven=500,e.eight=500,e.nine=500,e.colon=333,e.semicolon=333,e.less=675,e.equal=675,e.greater=675,e.question=500,e.at=920,e.A=611,e.B=611,e.C=667,e.D=722,e.E=611,e.F=611,e.G=722,e.H=722,e.I=333,e.J=444,e.K=667,e.L=556,e.M=833,e.N=667,e.O=722,e.P=611,e.Q=722,e.R=611,e.S=500,e.T=556,e.U=722,e.V=611,e.W=833,e.X=611,e.Y=556,e.Z=556,e.bracketleft=389,e.backslash=278,e.bracketright=389,e.asciicircum=422,e.underscore=500,e.quoteleft=333,e.a=500,e.b=500,e.c=444,e.d=500,e.e=444,e.f=278,e.g=500,e.h=500,e.i=278,e.j=278,e.k=444,e.l=278,e.m=722,e.n=500,e.o=500,e.p=500,e.q=500,e.r=389,e.s=389,e.t=278,e.u=500,e.v=444,e.w=667,e.x=444,e.y=444,e.z=389,e.braceleft=400,e.bar=275,e.braceright=400,e.asciitilde=541,e.exclamdown=389,e.cent=500,e.sterling=500,e.fraction=167,e.yen=500,e.florin=500,e.section=500,e.currency=500,e.quotesingle=214,e.quotedblleft=556,e.guillemotleft=500,e.guilsinglleft=333,e.guilsinglright=333,e.fi=500,e.fl=500,e.endash=500,e.dagger=500,e.daggerdbl=500,e.periodcentered=250,e.paragraph=523,e.bullet=350,e.quotesinglbase=333,e.quotedblbase=556,e.quotedblright=556,e.guillemotright=500,e.ellipsis=889,e.perthousand=1e3,e.questiondown=500,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=889,e.AE=889,e.ordfeminine=276,e.Lslash=556,e.Oslash=722,e.OE=944,e.ordmasculine=310,e.ae=667,e.dotlessi=278,e.lslash=278,e.oslash=500,e.oe=667,e.germandbls=500,e.Idieresis=333,e.eacute=444,e.abreve=500,e.uhungarumlaut=500,e.ecaron=444,e.Ydieresis=556,e.divide=675,e.Yacute=556,e.Acircumflex=611,e.aacute=500,e.Ucircumflex=722,e.yacute=444,e.scommaaccent=389,e.ecircumflex=444,e.Uring=722,e.Udieresis=722,e.aogonek=500,e.Uacute=722,e.uogonek=500,e.Edieresis=611,e.Dcroat=722,e.commaaccent=250,e.copyright=760,e.Emacron=611,e.ccaron=444,e.aring=500,e.Ncommaaccent=667,e.lacute=278,e.agrave=500,e.Tcommaaccent=556,e.Cacute=667,e.atilde=500,e.Edotaccent=611,e.scaron=389,e.scedilla=389,e.iacute=278,e.lozenge=471,e.Rcaron=611,e.Gcommaaccent=722,e.ucircumflex=500,e.acircumflex=500,e.Amacron=611,e.rcaron=389,e.ccedilla=444,e.Zdotaccent=556,e.Thorn=611,e.Omacron=722,e.Racute=611,e.Sacute=500,e.dcaron=544,e.Umacron=722,e.uring=500,e.threesuperior=300,e.Ograve=722,e.Agrave=611,e.Abreve=611,e.multiply=675,e.uacute=500,e.Tcaron=556,e.partialdiff=476,e.ydieresis=444,e.Nacute=667,e.icircumflex=278,e.Ecircumflex=611,e.adieresis=500,e.edieresis=444,e.cacute=444,e.nacute=500,e.umacron=500,e.Ncaron=667,e.Iacute=333,e.plusminus=675,e.brokenbar=275,e.registered=760,e.Gbreve=722,e.Idotaccent=333,e.summation=600,e.Egrave=611,e.racute=389,e.omacron=500,e.Zacute=556,e.Zcaron=556,e.greaterequal=549,e.Eth=722,e.Ccedilla=667,e.lcommaaccent=278,e.tcaron=300,e.eogonek=444,e.Uogonek=722,e.Aacute=611,e.Adieresis=611,e.egrave=444,e.zacute=389,e.iogonek=278,e.Oacute=722,e.oacute=500,e.amacron=500,e.sacute=389,e.idieresis=278,e.Ocircumflex=722,e.Ugrave=722,e.Delta=612,e.thorn=500,e.twosuperior=300,e.Odieresis=722,e.mu=500,e.igrave=278,e.ohungarumlaut=500,e.Eogonek=611,e.dcroat=500,e.threequarters=750,e.Scedilla=500,e.lcaron=300,e.Kcommaaccent=667,e.Lacute=556,e.trademark=980,e.edotaccent=444,e.Igrave=333,e.Imacron=333,e.Lcaron=611,e.onehalf=750,e.lessequal=549,e.ocircumflex=500,e.ntilde=500,e.Uhungarumlaut=722,e.Eacute=611,e.emacron=444,e.gbreve=500,e.onequarter=750,e.Scaron=500,e.Scommaaccent=500,e.Ohungarumlaut=722,e.degree=400,e.ograve=500,e.Ccaron=667,e.ugrave=500,e.radical=453,e.Dcaron=722,e.rcommaaccent=389,e.Ntilde=667,e.otilde=500,e.Rcommaaccent=611,e.Lcommaaccent=556,e.Atilde=611,e.Aogonek=611,e.Aring=611,e.Otilde=722,e.zdotaccent=389,e.Ecaron=611,e.Iogonek=333,e.kcommaaccent=444,e.minus=675,e.Icircumflex=333,e.ncaron=500,e.tcommaaccent=278,e.logicalnot=675,e.odieresis=500,e.udieresis=500,e.notequal=549,e.gcommaaccent=500,e.eth=500,e.zcaron=389,e.ncommaaccent=500,e.onesuperior=300,e.imacron=278,e.Euro=500}),e.ZapfDingbats=(0,r.getLookupTableFactory)(function(e){e.space=278,e.a1=974,e.a2=961,e.a202=974,e.a3=980,e.a4=719,e.a5=789,e.a119=790,e.a118=791,e.a117=690,e.a11=960,e.a12=939,e.a13=549,e.a14=855,e.a15=911,e.a16=933,e.a105=911,e.a17=945,e.a18=974,e.a19=755,e.a20=846,e.a21=762,e.a22=761,e.a23=571,e.a24=677,e.a25=763,e.a26=760,e.a27=759,e.a28=754,e.a6=494,e.a7=552,e.a8=537,e.a9=577,e.a10=692,e.a29=786,e.a30=788,e.a31=788,e.a32=790,e.a33=793,e.a34=794,e.a35=816,e.a36=823,e.a37=789,e.a38=841,e.a39=823,e.a40=833,e.a41=816,e.a42=831,e.a43=923,e.a44=744,e.a45=723,e.a46=749,e.a47=790,e.a48=792,e.a49=695,e.a50=776,e.a51=768,e.a52=792,e.a53=759,e.a54=707,e.a55=708,e.a56=682,e.a57=701,e.a58=826,e.a59=815,e.a60=789,e.a61=789,e.a62=707,e.a63=687,e.a64=696,e.a65=689,e.a66=786,e.a67=787,e.a68=713,e.a69=791,e.a70=785,e.a71=791,e.a72=873,e.a73=761,e.a74=762,e.a203=762,e.a75=759,e.a204=759,e.a76=892,e.a77=892,e.a78=788,e.a79=784,e.a81=438,e.a82=138,e.a83=277,e.a84=415,e.a97=392,e.a98=392,e.a99=668,e.a100=668,e.a89=390,e.a90=390,e.a93=317,e.a94=317,e.a91=276,e.a92=276,e.a205=509,e.a85=509,e.a206=410,e.a86=410,e.a87=234,e.a88=234,e.a95=334,e.a96=334,e.a101=732,e.a102=544,e.a103=544,e.a104=910,e.a106=667,e.a107=760,e.a108=760,e.a112=776,e.a111=595,e.a110=694,e.a109=626,e.a120=788,e.a121=788,e.a122=788,e.a123=788,e.a124=788,e.a125=788,e.a126=788,e.a127=788,e.a128=788,e.a129=788,e.a130=788,e.a131=788,e.a132=788,e.a133=788,e.a134=788,e.a135=788,e.a136=788,e.a137=788,e.a138=788,e.a139=788,e.a140=788,e.a141=788,e.a142=788,e.a143=788,e.a144=788,e.a145=788,e.a146=788,e.a147=788,e.a148=788,e.a149=788,e.a150=788,e.a151=788,e.a152=788,e.a153=788,e.a154=788,e.a155=788,e.a156=788,e.a157=788,e.a158=788,e.a159=788,e.a160=894,e.a161=838,e.a163=1016,e.a164=458,e.a196=748,e.a165=924,e.a192=748,e.a166=918,e.a167=927,e.a168=928,e.a169=928,e.a170=834,e.a171=873,e.a172=828,e.a173=924,e.a162=924,e.a174=917,e.a175=930,e.a176=931,e.a177=463,e.a178=883,e.a179=836,e.a193=836,e.a180=867,e.a199=867,e.a181=696,e.a200=696,e.a182=874,e.a201=874,e.a183=760,e.a184=946,e.a197=771,e.a185=865,e.a194=771,e.a198=888,e.a186=967,e.a195=888,e.a187=831,e.a188=873,e.a189=927,e.a190=970,e.a191=918})});t.getMetrics=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isPDFFunction=function(e){var t;if("object"!=typeof e)return!1;if((0,i.isDict)(e))t=e;else{if(!(0,i.isStream)(e))return!1;t=e.dict}return t.has("FunctionType")},t.PostScriptCompiler=t.PostScriptEvaluator=t.PDFFunctionFactory=void 0;var r=n(2),i=n(5),a=n(42);function o(e){if(!Array.isArray(e))return null;const t=e.length;for(let n=0;n<t;n++)if("number"!=typeof e[n]){const n=new Array(t);for(let r=0;r<t;r++)n[r]=+e[r];return n}return e}t.PDFFunctionFactory=class{constructor({xref:e,isEvalSupported:t=!0}){this.xref=e,this.isEvalSupported=!1!==t}create(e){return s.parse({xref:this.xref,isEvalSupported:this.isEvalSupported,fn:e})}createFromArray(e){return s.parseArray({xref:this.xref,isEvalSupported:this.isEvalSupported,fnObj:e})}};var s={getSampleArray(e,t,n,r){var i,a,o=1;for(i=0,a=e.length;i<a;i++)o*=e[i];o*=t;var s=new Array(o),l=0,c=0,u=1/(2**n-1),h=r.getBytes((o*n+7)/8),d=0;for(i=0;i<o;i++){for(;l<n;)c<<=8,c|=h[d++],l+=8;l-=n,s[i]=(c>>l)*u,c&=(1<<l)-1}return s},getIR({xref:e,isEvalSupported:t,fn:n}){var i=n.dict;i||(i=n);var a=[this.constructSampled,null,this.constructInterpolated,this.constructStiched,this.constructPostScript][i.get("FunctionType")];if(!a)throw new r.FormatError("Unknown type of function");return a.call(this,{xref:e,isEvalSupported:t,fn:n,dict:i})},fromIR({xref:e,isEvalSupported:t,IR:n}){switch(n[0]){case 0:return this.constructSampledFromIR({xref:e,isEvalSupported:t,IR:n});case 2:return this.constructInterpolatedFromIR({xref:e,isEvalSupported:t,IR:n});case 3:return this.constructStichedFromIR({xref:e,isEvalSupported:t,IR:n});default:return this.constructPostScriptFromIR({xref:e,isEvalSupported:t,IR:n})}},parse({xref:e,isEvalSupported:t,fn:n}){const r=this.getIR({xref:e,isEvalSupported:t,fn:n});return this.fromIR({xref:e,isEvalSupported:t,IR:r})},parseArray({xref:e,isEvalSupported:t,fnObj:n}){if(!Array.isArray(n))return this.parse({xref:e,isEvalSupported:t,fn:n});for(var r=[],i=0,a=n.length;i<a;i++)r.push(this.parse({xref:e,isEvalSupported:t,fn:e.fetchIfRef(n[i])}));return function(e,t,n,i){for(var a=0,o=r.length;a<o;a++)r[a](e,t,n,i+a)}},constructSampled({xref:e,isEvalSupported:t,fn:n,dict:i}){function a(e){for(var t=e.length,n=[],r=0,i=0;i<t;i+=2)n[r]=[e[i],e[i+1]],++r;return n}var s=o(i.getArray("Domain")),l=o(i.getArray("Range"));if(!s||!l)throw new r.FormatError("No domain or range");var c=s.length/2,u=l.length/2;s=a(s),l=a(l);var h=o(i.getArray("Size")),d=i.get("BitsPerSample"),f=i.get("Order")||1;1!==f&&(0,r.info)("No support for cubic spline interpolation: "+f);var p=o(i.getArray("Encode"));if(p)p=a(p);else{p=[];for(var A=0;A<c;++A)p.push([0,h[A]-1])}var g=o(i.getArray("Decode"));return[0,c,s,p,g=g?a(g):l,this.getSampleArray(h,u,d,n),h,u,2**d-1,l]},constructSampledFromIR({xref:e,isEvalSupported:t,IR:n}){function r(e,t,n,r,i){return r+(i-r)/(n-t)*(e-t)}return function(e,t,i,a){var o,s,l=n[1],c=n[2],u=n[3],h=n[4],d=n[5],f=n[6],p=n[7],A=n[9],g=1<<l,m=new Float64Array(g),v=new Uint32Array(g);for(s=0;s<g;s++)m[s]=1;var y=p,b=1;for(o=0;o<l;++o){var w=c[o][0],x=c[o][1],_=r(Math.min(Math.max(e[t+o],w),x),w,x,u[o][0],u[o][1]),C=f[o],S=(_=Math.min(Math.max(_,0),C-1))<C-1?Math.floor(_):_-1,k=S+1-_,B=_-S,E=S*y,T=E+y;for(s=0;s<g;s++)s&b?(m[s]*=B,v[s]+=T):(m[s]*=k,v[s]+=E);y*=C,b<<=1}for(s=0;s<p;++s){var I=0;for(o=0;o<g;o++)I+=d[v[o]+s]*m[o];I=r(I,0,1,h[s][0],h[s][1]),i[a+s]=Math.min(Math.max(I,A[s][0]),A[s][1])}}},constructInterpolated({xref:e,isEvalSupported:t,fn:n,dict:r}){for(var i=o(r.getArray("C0"))||[0],a=o(r.getArray("C1"))||[1],s=r.get("N"),l=i.length,c=[],u=0;u<l;++u)c.push(a[u]-i[u]);return[2,i,c,s]},constructInterpolatedFromIR({xref:e,isEvalSupported:t,IR:n}){var r=n[1],i=n[2],a=n[3],o=i.length;return function(e,t,n,s){for(var l=1===a?e[t]:e[t]**a,c=0;c<o;++c)n[s+c]=r[c]+l*i[c]}},constructStiched({xref:e,isEvalSupported:t,fn:n,dict:i}){var a=o(i.getArray("Domain"));if(!a)throw new r.FormatError("No domain");if(1!=a.length/2)throw new r.FormatError("Bad domain for stiched function");for(var s=i.get("Functions"),l=[],c=0,u=s.length;c<u;++c)l.push(this.parse({xref:e,isEvalSupported:t,fn:e.fetchIfRef(s[c])}));return[3,a,o(i.getArray("Bounds")),o(i.getArray("Encode")),l]},constructStichedFromIR({xref:e,isEvalSupported:t,IR:n}){var r=n[1],i=n[2],a=n[3],o=n[4],s=new Float32Array(1);return function(e,t,n,l){for(var c=function(e,t,n){return e>n?e=n:e<t&&(e=t),e}(e[t],r[0],r[1]),u=0,h=i.length;u<h&&!(c<i[u]);++u);var d=r[0];u>0&&(d=i[u-1]);var f=r[1];u<i.length&&(f=i[u]);var p=a[2*u],A=a[2*u+1];s[0]=d===f?p:p+(c-d)*(A-p)/(f-d),o[u](s,0,n,l)}},constructPostScript({xref:e,isEvalSupported:t,fn:n,dict:i}){var s=o(i.getArray("Domain")),l=o(i.getArray("Range"));if(!s)throw new r.FormatError("No domain.");if(!l)throw new r.FormatError("No range.");var c=new a.PostScriptLexer(n);return[4,s,l,new a.PostScriptParser(c).parse()]},constructPostScriptFromIR({xref:e,isEvalSupported:t,IR:n}){var i=n[1],a=n[2],o=n[3];if(t&&r.IsEvalSupportedCached.value){const e=(new u).compile(o,i,a);if(e)return new Function("src","srcOffset","dest","destOffset",e)}(0,r.info)("Unable to compile PS function");var s=a.length>>1,l=i.length>>1,h=new c(o),d=Object.create(null),f=8192,p=new Float32Array(l);return function(e,t,n,r){var i,o,c="",u=p;for(i=0;i<l;i++)o=e[t+i],u[i]=o,c+=o+"_";var A=d[c];if(void 0===A){var g=new Float32Array(s),m=h.execute(u),v=m.length-s;for(i=0;i<s;i++){o=m[v+i];var y=a[2*i];o<y?o=y:o>(y=a[2*i+1])&&(o=y),g[i]=o}f>0&&(f--,d[c]=g),n.set(g,r)}else n.set(A,r)}}};var l=function(){function e(e){this.stack=e?Array.prototype.slice.call(e,0):[]}return e.prototype={push:function(e){if(this.stack.length>=100)throw new Error("PostScript function stack overflow.");this.stack.push(e)},pop:function(){if(this.stack.length<=0)throw new Error("PostScript function stack underflow.");return this.stack.pop()},copy:function(e){if(this.stack.length+e>=100)throw new Error("PostScript function stack overflow.");for(var t=this.stack,n=t.length-e,r=e-1;r>=0;r--,n++)t.push(t[n])},index:function(e){this.push(this.stack[this.stack.length-e-1])},roll:function(e,t){var n,r,i,a=this.stack,o=a.length-e,s=a.length-1,l=o+(t-Math.floor(t/e)*e);for(n=o,r=s;n<r;n++,r--)i=a[n],a[n]=a[r],a[r]=i;for(n=o,r=l-1;n<r;n++,r--)i=a[n],a[n]=a[r],a[r]=i;for(n=l,r=s;n<r;n++,r--)i=a[n],a[n]=a[r],a[r]=i}},e}(),c=function(){function e(e){this.operators=e}return e.prototype={execute:function(e){for(var t,n,i,a=new l(e),o=0,s=this.operators,c=s.length;o<c;)if("number"!=typeof(t=s[o++]))switch(t){case"jz":i=a.pop(),(n=a.pop())||(o=i);break;case"j":o=n=a.pop();break;case"abs":n=a.pop(),a.push(Math.abs(n));break;case"add":i=a.pop(),n=a.pop(),a.push(n+i);break;case"and":i=a.pop(),n=a.pop(),(0,r.isBool)(n)&&(0,r.isBool)(i)?a.push(n&&i):a.push(n&i);break;case"atan":n=a.pop(),a.push(Math.atan(n));break;case"bitshift":i=a.pop(),(n=a.pop())>0?a.push(n<<i):a.push(n>>i);break;case"ceiling":n=a.pop(),a.push(Math.ceil(n));break;case"copy":n=a.pop(),a.copy(n);break;case"cos":n=a.pop(),a.push(Math.cos(n));break;case"cvi":n=0|a.pop(),a.push(n);break;case"cvr":break;case"div":i=a.pop(),n=a.pop(),a.push(n/i);break;case"dup":a.copy(1);break;case"eq":i=a.pop(),n=a.pop(),a.push(n===i);break;case"exch":a.roll(2,1);break;case"exp":i=a.pop(),n=a.pop(),a.push(n**i);break;case"false":a.push(!1);break;case"floor":n=a.pop(),a.push(Math.floor(n));break;case"ge":i=a.pop(),n=a.pop(),a.push(n>=i);break;case"gt":i=a.pop(),n=a.pop(),a.push(n>i);break;case"idiv":i=a.pop(),n=a.pop(),a.push(n/i|0);break;case"index":n=a.pop(),a.index(n);break;case"le":i=a.pop(),n=a.pop(),a.push(n<=i);break;case"ln":n=a.pop(),a.push(Math.log(n));break;case"log":n=a.pop(),a.push(Math.log(n)/Math.LN10);break;case"lt":i=a.pop(),n=a.pop(),a.push(n<i);break;case"mod":i=a.pop(),n=a.pop(),a.push(n%i);break;case"mul":i=a.pop(),n=a.pop(),a.push(n*i);break;case"ne":i=a.pop(),n=a.pop(),a.push(n!==i);break;case"neg":n=a.pop(),a.push(-n);break;case"not":n=a.pop(),(0,r.isBool)(n)?a.push(!n):a.push(~n);break;case"or":i=a.pop(),n=a.pop(),(0,r.isBool)(n)&&(0,r.isBool)(i)?a.push(n||i):a.push(n|i);break;case"pop":a.pop();break;case"roll":i=a.pop(),n=a.pop(),a.roll(n,i);break;case"round":n=a.pop(),a.push(Math.round(n));break;case"sin":n=a.pop(),a.push(Math.sin(n));break;case"sqrt":n=a.pop(),a.push(Math.sqrt(n));break;case"sub":i=a.pop(),n=a.pop(),a.push(n-i);break;case"true":a.push(!0);break;case"truncate":n=(n=a.pop())<0?Math.ceil(n):Math.floor(n),a.push(n);break;case"xor":i=a.pop(),n=a.pop(),(0,r.isBool)(n)&&(0,r.isBool)(i)?a.push(n!==i):a.push(n^i);break;default:throw new r.FormatError(`Unknown operator ${t}`)}else a.push(t);return a.stack}},e}();t.PostScriptEvaluator=c;var u=function(){function e(e){this.type=e}function t(t,n,r){e.call(this,"args"),this.index=t,this.min=n,this.max=r}function n(t){e.call(this,"literal"),this.number=t,this.min=t,this.max=t}function i(t,n,r,i,a){e.call(this,"binary"),this.op=t,this.arg1=n,this.arg2=r,this.min=i,this.max=a}function a(t,n){e.call(this,"max"),this.arg=t,this.min=t.min,this.max=n}function o(t,n,r){e.call(this,"var"),this.index=t,this.min=n,this.max=r}function s(t,n){e.call(this,"definition"),this.variable=t,this.arg=n}function l(){this.parts=[]}function c(e,t){return"literal"===t.type&&0===t.number?e:"literal"===e.type&&0===e.number?t:"literal"===t.type&&"literal"===e.type?new n(e.number+t.number):new i("+",e,t,e.min+t.min,e.max+t.max)}function u(e,t){if("literal"===t.type){if(0===t.number)return new n(0);if(1===t.number)return e;if("literal"===e.type)return new n(e.number*t.number)}if("literal"===e.type){if(0===e.number)return new n(0);if(1===e.number)return t}return new i("*",e,t,Math.min(e.min*t.min,e.min*t.max,e.max*t.min,e.max*t.max),Math.max(e.min*t.min,e.min*t.max,e.max*t.min,e.max*t.max))}function h(e,t){if("literal"===t.type){if(0===t.number)return e;if("literal"===e.type)return new n(e.number-t.number)}return"binary"===t.type&&"-"===t.op&&"literal"===e.type&&1===e.number&&"literal"===t.arg1.type&&1===t.arg1.number?t.arg2:new i("-",e,t,e.min-t.max,e.max-t.min)}function d(e,t){return e.min>=t?new n(t):e.max<=t?e:new a(e,t)}function f(){}return e.prototype.visit=function(e){(0,r.unreachable)("abstract method")},t.prototype=Object.create(e.prototype),t.prototype.visit=function(e){e.visitArgument(this)},n.prototype=Object.create(e.prototype),n.prototype.visit=function(e){e.visitLiteral(this)},i.prototype=Object.create(e.prototype),i.prototype.visit=function(e){e.visitBinaryOperation(this)},a.prototype=Object.create(e.prototype),a.prototype.visit=function(e){e.visitMin(this)},o.prototype=Object.create(e.prototype),o.prototype.visit=function(e){e.visitVariable(this)},s.prototype=Object.create(e.prototype),s.prototype.visit=function(e){e.visitVariableDefinition(this)},l.prototype={visitArgument(e){this.parts.push("Math.max(",e.min,", Math.min(",e.max,", src[srcOffset + ",e.index,"]))")},visitVariable(e){this.parts.push("v",e.index)},visitLiteral(e){this.parts.push(e.number)},visitBinaryOperation(e){this.parts.push("("),e.arg1.visit(this),this.parts.push(" ",e.op," "),e.arg2.visit(this),this.parts.push(")")},visitVariableDefinition(e){this.parts.push("var "),e.variable.visit(this),this.parts.push(" = "),e.arg.visit(this),this.parts.push(";")},visitMin(e){this.parts.push("Math.min("),e.arg.visit(this),this.parts.push(", ",e.max,")")},toString(){return this.parts.join("")}},f.prototype={compile:function(e,r,i){var a,f,p,A,g,m,v,y,b=[],w=[],x=r.length>>1,_=i.length>>1,C=0;for(let e=0;e<x;e++)b.push(new t(e,r[2*e],r[2*e+1]));for(let t=0,r=e.length;t<r;t++)if("number"!=typeof(y=e[t]))switch(y){case"add":if(b.length<2)return null;A=b.pop(),p=b.pop(),b.push(c(p,A));break;case"cvr":if(b.length<1)return null;break;case"mul":if(b.length<2)return null;A=b.pop(),p=b.pop(),b.push(u(p,A));break;case"sub":if(b.length<2)return null;A=b.pop(),p=b.pop(),b.push(h(p,A));break;case"exch":if(b.length<2)return null;g=b.pop(),m=b.pop(),b.push(g,m);break;case"pop":if(b.length<1)return null;b.pop();break;case"index":if(b.length<1)return null;if("literal"!==(p=b.pop()).type)return null;if((a=p.number)<0||!Number.isInteger(a)||b.length<a)return null;if("literal"===(g=b[b.length-a-1]).type||"var"===g.type){b.push(g);break}v=new o(C++,g.min,g.max),b[b.length-a-1]=v,b.push(v),w.push(new s(v,g));break;case"dup":if(b.length<1)return null;if("number"==typeof e[t+1]&&"gt"===e[t+2]&&e[t+3]===t+7&&"jz"===e[t+4]&&"pop"===e[t+5]&&e[t+6]===e[t+1]){p=b.pop(),b.push(d(p,e[t+1])),t+=6;break}if("literal"===(g=b[b.length-1]).type||"var"===g.type){b.push(g);break}v=new o(C++,g.min,g.max),b[b.length-1]=v,b.push(v),w.push(new s(v,g));break;case"roll":if(b.length<2)return null;if(A=b.pop(),p=b.pop(),"literal"!==A.type||"literal"!==p.type)return null;if(f=A.number,(a=p.number)<=0||!Number.isInteger(a)||!Number.isInteger(f)||b.length<a)return null;if(0===(f=(f%a+a)%a))break;Array.prototype.push.apply(b,b.splice(b.length-a,a-f));break;default:return null}else b.push(new n(y));if(b.length!==_)return null;var S=[];return w.forEach(function(e){var t=new l;e.visit(t),S.push(t.toString())}),b.forEach(function(e,t){var n=new l;e.visit(n);var r=i[2*t],a=i[2*t+1],o=[n.toString()];r>e.min&&(o.unshift("Math.max(",r,", "),o.push(")")),a<e.max&&(o.unshift("Math.min(",a,", "),o.push(")")),o.unshift("dest[destOffset + ",t,"] = "),o.push(";"),S.push(o.join(""))}),S.join("\n")}},f}();t.PostScriptCompiler=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PostScriptParser=t.PostScriptLexer=void 0;var r=n(2),i=n(5),a=n(8);t.PostScriptParser=class{constructor(e){this.lexer=e,this.operators=[],this.token=null,this.prev=null}nextToken(){this.prev=this.token,this.token=this.lexer.getToken()}accept(e){return this.token.type===e&&(this.nextToken(),!0)}expect(e){if(this.accept(e))return!0;throw new r.FormatError(`Unexpected symbol: found ${this.token.type} expected ${e}.`)}parse(){return this.nextToken(),this.expect(o.LBRACE),this.parseBlock(),this.expect(o.RBRACE),this.operators}parseBlock(){for(;;)if(this.accept(o.NUMBER))this.operators.push(this.prev.value);else if(this.accept(o.OPERATOR))this.operators.push(this.prev.value);else{if(!this.accept(o.LBRACE))return;this.parseCondition()}}parseCondition(){const e=this.operators.length;if(this.operators.push(null,null),this.parseBlock(),this.expect(o.RBRACE),this.accept(o.IF))this.operators[e]=this.operators.length,this.operators[e+1]="jz";else{if(!this.accept(o.LBRACE))throw new r.FormatError("PS Function: error parsing conditional.");{const t=this.operators.length;this.operators.push(null,null);const n=this.operators.length;this.parseBlock(),this.expect(o.RBRACE),this.expect(o.IFELSE),this.operators[t]=this.operators.length,this.operators[t+1]="j",this.operators[e]=n,this.operators[e+1]="jz"}}}};const o={LBRACE:0,RBRACE:1,NUMBER:2,OPERATOR:3,IF:4,IFELSE:5},s=function(){const e=Object.create(null);class t{constructor(e,t){this.type=e,this.value=t}static getOperator(n){const r=e[n];return r||(e[n]=new t(o.OPERATOR,n))}static get LBRACE(){return(0,r.shadow)(this,"LBRACE",new t(o.LBRACE,"{"))}static get RBRACE(){return(0,r.shadow)(this,"RBRACE",new t(o.RBRACE,"}"))}static get IF(){return(0,r.shadow)(this,"IF",new t(o.IF,"IF"))}static get IFELSE(){return(0,r.shadow)(this,"IFELSE",new t(o.IFELSE,"IFELSE"))}}return t}();t.PostScriptLexer=class{constructor(e){this.stream=e,this.nextChar(),this.strBuf=[]}nextChar(){return this.currentChar=this.stream.getByte()}getToken(){let e=!1,t=this.currentChar;for(;;){if(t<0)return i.EOF;if(e)10!==t&&13!==t||(e=!1);else if(37===t)e=!0;else if(!(0,a.isWhiteSpace)(t))break;t=this.nextChar()}switch(0|t){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 43:case 45:case 46:return new s(o.NUMBER,this.getNumber());case 123:return this.nextChar(),s.LBRACE;case 125:return this.nextChar(),s.RBRACE}const n=this.strBuf;for(n.length=0,n[0]=String.fromCharCode(t);(t=this.nextChar())>=0&&(t>=65&&t<=90||t>=97&&t<=122);)n.push(String.fromCharCode(t));const r=n.join("");switch(r.toLowerCase()){case"if":return s.IF;case"ifelse":return s.IFELSE;default:return s.getOperator(r)}}getNumber(){let e=this.currentChar;const t=this.strBuf;for(t.length=0,t[0]=String.fromCharCode(e);(e=this.nextChar())>=0&&(e>=48&&e<=57||45===e||46===e);)t.push(String.fromCharCode(e));const n=parseFloat(t.join(""));if(isNaN(n))throw new r.FormatError(`Invalid floating point number: ${n}`);return n}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MurmurHash3_64=void 0;var r=n(2);const i=3285377520,a=4294901760,o=65535;t.MurmurHash3_64=class{constructor(e){this.h1=e?4294967295&e:i,this.h2=e?4294967295&e:i}update(e){let t,n;if((0,r.isString)(e)){t=new Uint8Array(2*e.length),n=0;for(let r=0,i=e.length;r<i;r++){const i=e.charCodeAt(r);i<=255?t[n++]=i:(t[n++]=i>>>8,t[n++]=255&i)}}else{if(!(0,r.isArrayBuffer)(e))throw new Error("Wrong data format in MurmurHash3_64_update. Input must be a string or array.");n=(t=e).byteLength}const i=n>>2,s=n-4*i,l=new Uint32Array(t.buffer,0,i);let c=0,u=0,h=this.h1,d=this.h2;const f=3432918353,p=461845907,A=f&o,g=p&o;for(let e=0;e<i;e++)1&e?h=5*(h=(h^=c=(c=(c=(c=l[e])*f&a|c*A&o)<<15|c>>>17)*p&a|c*g&o)<<13|h>>>19)+3864292196:d=5*(d=(d^=u=(u=(u=(u=l[e])*f&a|u*A&o)<<15|u>>>17)*p&a|u*g&o)<<13|d>>>19)+3864292196;switch(c=0,s){case 3:c^=t[4*i+2]<<16;case 2:c^=t[4*i+1]<<8;case 1:c=(c=(c=(c^=t[4*i])*f&a|c*A&o)<<15|c>>>17)*p&a|c*g&o,1&i?h^=c:d^=c}this.h1=h,this.h2=d}hexdigest(){let e=this.h1,t=this.h2;e=3981806797*(e^=t>>>1)&a|36045*e&o,e=444984403*(e^=(t=4283543511*t&a|(2950163797*(t<<16|e>>>16)&a)>>>16)>>>1)&a|60499*e&o;const n=((e^=(t=3301882366*t&a|(3120437893*(t<<16|e>>>16)&a)>>>16)>>>1)>>>0).toString(16),r=(t>>>0).toString(16);return n.padStart(8,"0")+r.padStart(8,"0")}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PDFImage=void 0;var r=n(2),i=n(5),a=n(23),o=n(12),s=n(18),l=n(21),c=function(){function e(e,t,n,r){return(e=t+e*n)<0?e=0:e>r&&(e=r),e}function t(e,t,n,r,i,a){var o=i*a;let s;s=t<=8?new Uint8Array(o):t<=16?new Uint16Array(o):new Uint32Array(o);var l,c,u,h,d=n/i,f=r/a,p=0,A=new Uint16Array(i),g=n;for(l=0;l<i;l++)A[l]=Math.floor(l*d);for(l=0;l<a;l++)for(u=Math.floor(l*f)*g,c=0;c<i;c++)h=u+A[c],s[p++]=e[h];return s}function n({xref:e,res:t,image:o,isInline:s=!1,smask:c=null,mask:u=null,isMask:h=!1,pdfFunctionFactory:d}){this.image=o;var f=o.dict;const p=f.get("Filter");if((0,i.isName)(p))switch(p.name){case"JPXDecode":var A=new l.JpxImage;A.parseImageProperties(o.stream),o.stream.reset(),o.width=A.width,o.height=A.height,o.bitsPerComponent=A.bitsPerComponent,o.numComps=A.componentsCount;break;case"JBIG2Decode":o.bitsPerComponent=1,o.numComps=1}let g=f.get("Width","W"),m=f.get("Height","H");if(Number.isInteger(o.width)&&o.width>0&&Number.isInteger(o.height)&&o.height>0&&(o.width!==g||o.height!==m)&&((0,r.warn)("PDFImage - using the Width/Height of the image data, rather than the image dictionary."),g=o.width,m=o.height),g<1||m<1)throw new r.FormatError(`Invalid image width: ${g} or height: ${m}`);this.width=g,this.height=m,this.interpolate=f.get("Interpolate","I")||!1,this.imageMask=f.get("ImageMask","IM")||!1,this.matte=f.get("Matte")||!1;var v=o.bitsPerComponent;if(!v&&!(v=f.get("BitsPerComponent","BPC"))){if(!this.imageMask)throw new r.FormatError(`Bits per component missing in image: ${this.imageMask}`);v=1}if(this.bpc=v,!this.imageMask){var y=f.get("ColorSpace","CS");if(!y)switch((0,r.info)("JPX images (which do not require color spaces)"),o.numComps){case 1:y=i.Name.get("DeviceGray");break;case 3:y=i.Name.get("DeviceRGB");break;case 4:y=i.Name.get("DeviceCMYK");break;default:throw new Error(`JPX images with ${o.numComps} `+"color components not supported.")}const n=s?t:null;this.colorSpace=a.ColorSpace.parse(y,e,n,d),this.numComps=this.colorSpace.numComps}if(this.decode=f.getArray("Decode","D"),this.needsDecode=!1,this.decode&&(this.colorSpace&&!this.colorSpace.isDefaultDecode(this.decode,v)||h&&!a.ColorSpace.isDefaultDecode(this.decode,1))){this.needsDecode=!0;var b=(1<<v)-1;this.decodeCoefficients=[],this.decodeAddends=[];const e=this.colorSpace&&"Indexed"===this.colorSpace.name;for(var w=0,x=0;w<this.decode.length;w+=2,++x){var _=this.decode[w],C=this.decode[w+1];this.decodeCoefficients[x]=e?(C-_)/b:C-_,this.decodeAddends[x]=e?_:b*_}}if(c)this.smask=new n({xref:e,res:t,image:c,isInline:s,pdfFunctionFactory:d});else if(u){if((0,i.isStream)(u))u.dict.get("ImageMask","IM")?this.mask=new n({xref:e,res:t,image:u,isInline:s,isMask:!0,pdfFunctionFactory:d}):(0,r.warn)("Ignoring /Mask in image without /ImageMask.");else this.mask=u}}return n.buildImage=function({xref:e,res:t,image:a,isInline:o=!1,pdfFunctionFactory:s}){const l=a;let c=null,u=null;const h=a.dict.get("SMask"),d=a.dict.get("Mask");return h?c=h:d&&((0,i.isStream)(d)||Array.isArray(d)?u=d:(0,r.warn)("Unsupported mask format.")),Promise.resolve(new n({xref:e,res:t,image:l,isInline:o,smask:c,mask:u,pdfFunctionFactory:s}))},n.createMask=function({imgArray:e,width:t,height:n,imageIsFromDecodeStream:r,inverseDecode:i}){var a,o,s=(t+7>>3)*n,l=e.byteLength;if(!r||i&&!(s===l))if(i)for((a=new Uint8ClampedArray(s)).set(e),o=l;o<s;o++)a[o]=255;else(a=new Uint8ClampedArray(l)).set(e);else a=e;if(i)for(o=0;o<l;o++)a[o]^=255;return{data:a,width:t,height:n}},n.prototype={get drawWidth(){return Math.max(this.width,this.smask&&this.smask.width||0,this.mask&&this.mask.width||0)},get drawHeight(){return Math.max(this.height,this.smask&&this.smask.height||0,this.mask&&this.mask.height||0)},decodeBuffer(t){var n,r,i=this.bpc,a=this.numComps,o=this.decodeAddends,s=this.decodeCoefficients,l=(1<<i)-1;if(1!==i){var c=0;for(n=0,r=this.width*this.height;n<r;n++)for(var u=0;u<a;u++)t[c]=e(t[c],o[u],s[u],l),c++}else for(n=0,r=t.length;n<r;n++)t[n]=+!t[n]},getComponents(e){var t=this.bpc;if(8===t)return e;var n=this.width,r=this.height,i=this.numComps,a=n*r*i,o=0;let s;s=t<=8?new Uint8Array(a):t<=16?new Uint16Array(a):new Uint32Array(a);var l,c,u=n*i,h=(1<<t)-1,d=0;if(1===t)for(var f,p,A,g=0;g<r;g++){for(p=d+(-8&u),A=d+u;d<p;)c=e[o++],s[d]=c>>7&1,s[d+1]=c>>6&1,s[d+2]=c>>5&1,s[d+3]=c>>4&1,s[d+4]=c>>3&1,s[d+5]=c>>2&1,s[d+6]=c>>1&1,s[d+7]=1&c,d+=8;if(d<A)for(c=e[o++],f=128;d<A;)s[d++]=+!!(c&f),f>>=1}else{var m=0;for(c=0,d=0,l=a;d<l;++d){for(d%u==0&&(c=0,m=0);m<t;)c=c<<8|e[o++],m+=8;var v=m-t;let n=c>>v;n<0?n=0:n>h&&(n=h),s[d]=n,c&=(1<<v)-1,m=v}}return s},fillOpacity(e,i,a,o,s){var l,c,u,h,d,f,p=this.smask,A=this.mask;if(p)c=p.width,u=p.height,l=new Uint8ClampedArray(c*u),p.fillGrayBuffer(l),c===i&&u===a||(l=t(l,p.bpc,c,u,i,a));else if(A)if(A instanceof n){for(c=A.width,u=A.height,l=new Uint8ClampedArray(c*u),A.numComps=1,A.fillGrayBuffer(l),h=0,d=c*u;h<d;++h)l[h]=255-l[h];c===i&&u===a||(l=t(l,A.bpc,c,u,i,a))}else{if(!Array.isArray(A))throw new r.FormatError("Unknown mask format.");l=new Uint8ClampedArray(i*a);var g=this.numComps;for(h=0,d=i*a;h<d;++h){var m=0,v=h*g;for(f=0;f<g;++f){var y=s[v+f],b=2*f;if(y<A[b]||y>A[b+1]){m=255;break}}l[h]=m}}if(l)for(h=0,f=3,d=i*o;h<d;++h,f+=4)e[f]=l[h];else for(h=0,f=3,d=i*o;h<d;++h,f+=4)e[f]=255},undoPreblend(e,t,n){var r=this.smask&&this.smask.matte;if(r)for(var i=this.colorSpace.getRgb(r,0),a=i[0],o=i[1],s=i[2],l=t*n*4,c=0;c<l;c+=4){var u=e[c+3];if(0!==u){var h=255/u;e[c]=(e[c]-a)*h+a,e[c+1]=(e[c+1]-o)*h+o,e[c+2]=(e[c+2]-s)*h+s}else e[c]=255,e[c+1]=255,e[c+2]=255}},createImageData(e=!1){var t,n=this.drawWidth,i=this.drawHeight,a={width:n,height:i,kind:0,data:null},l=this.numComps,c=this.width,u=this.height,h=this.bpc,d=c*l*h+7>>3;if(!e){var f;if("DeviceGray"===this.colorSpace.name&&1===h?f=r.ImageKind.GRAYSCALE_1BPP:"DeviceRGB"!==this.colorSpace.name||8!==h||this.needsDecode||(f=r.ImageKind.RGB_24BPP),f&&!this.smask&&!this.mask&&n===c&&i===u){if(a.kind=f,t=this.getImageBytes(u*d),this.image instanceof o.DecodeStream)a.data=t;else{var p=new Uint8ClampedArray(t.length);p.set(t),a.data=p}if(this.needsDecode){(0,r.assert)(f===r.ImageKind.GRAYSCALE_1BPP,"PDFImage.createImageData: The image must be grayscale.");for(var A=a.data,g=0,m=A.length;g<m;g++)A[g]^=255}return a}if(this.image instanceof s.JpegStream&&!this.smask&&!this.mask){let e=u*d;switch(this.colorSpace.name){case"DeviceGray":e*=3;case"DeviceRGB":case"DeviceCMYK":return a.kind=r.ImageKind.RGB_24BPP,a.data=this.getImageBytes(e,n,i,!0),a}}}var v,y,b=0|(t=this.getImageBytes(u*d)).length/d*i/u,w=this.getComponents(t);return e||this.smask||this.mask?(a.kind=r.ImageKind.RGBA_32BPP,a.data=new Uint8ClampedArray(n*i*4),v=1,y=!0,this.fillOpacity(a.data,n,i,b,w)):(a.kind=r.ImageKind.RGB_24BPP,a.data=new Uint8ClampedArray(n*i*3),v=0,y=!1),this.needsDecode&&this.decodeBuffer(w),this.colorSpace.fillRgb(a.data,c,u,n,i,b,h,w,v),y&&this.undoPreblend(a.data,n,b),a},fillGrayBuffer(e){var t=this.numComps;if(1!==t)throw new r.FormatError(`Reading gray scale from a color image: ${t}`);var n,i,a=this.width,o=this.height,s=this.bpc,l=a*t*s+7>>3,c=this.getImageBytes(o*l),u=this.getComponents(c);if(1!==s){this.needsDecode&&this.decodeBuffer(u),i=a*o;var h=255/((1<<s)-1);for(n=0;n<i;++n)e[n]=h*u[n]}else if(i=a*o,this.needsDecode)for(n=0;n<i;++n)e[n]=u[n]-1&255;else for(n=0;n<i;++n)e[n]=255&-u[n]},getImageBytes(e,t,n,r=!1){return this.image.reset(),this.image.drawWidth=t||this.width,this.image.drawHeight=n||this.height,this.image.forceRGB=!!r,this.image.getBytes(e,!0)}},n}();t.PDFImage=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MessageHandler=void 0;var r=n(2);const i={UNKNOWN:0,DATA:1,ERROR:2},a={UNKNOWN:0,CANCEL:1,CANCEL_COMPLETE:2,CLOSE:3,ENQUEUE:4,ERROR:5,PULL:6,PULL_COMPLETE:7,START_COMPLETE:8};function o(e){if("object"!=typeof e||null===e)return e;switch(e.name){case"AbortException":return new r.AbortException(e.message);case"MissingPDFException":return new r.MissingPDFException(e.message);case"UnexpectedResponseException":return new r.UnexpectedResponseException(e.message,e.status);case"UnknownErrorException":return new r.UnknownErrorException(e.message,e.details);default:return new r.UnknownErrorException(e.message,e.toString())}}t.MessageHandler=class{constructor(e,t,n){this.sourceName=e,this.targetName=t,this.comObj=n,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=(e=>{const t=e.data;if(t.targetName!==this.sourceName)return;if(t.stream)return void this._processStreamMessage(t);if(t.callback){const e=t.callbackId,n=this.callbackCapabilities[e];if(!n)throw new Error(`Cannot resolve callback ${e}`);if(delete this.callbackCapabilities[e],t.callback===i.DATA)n.resolve(t.data);else{if(t.callback!==i.ERROR)throw new Error("Unexpected callback case");n.reject(o(t.reason))}return}const r=this.actionHandler[t.action];if(!r)throw new Error(`Unknown action from worker: ${t.action}`);if(t.callbackId){const e=this.sourceName,a=t.sourceName;new Promise(function(e){e(r(t.data))}).then(function(r){n.postMessage({sourceName:e,targetName:a,callback:i.DATA,callbackId:t.callbackId,data:r})},function(r){n.postMessage({sourceName:e,targetName:a,callback:i.ERROR,callbackId:t.callbackId,reason:o(r)})})}else t.streamId?this._createStreamSink(t):r(t.data)}),n.addEventListener("message",this._onComObjOnMessage)}on(e,t){const n=this.actionHandler;if(n[e])throw new Error(`There is already an actionName called "${e}"`);n[e]=t}send(e,t,n){this._postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,data:t},n)}sendWithPromise(e,t,n){const i=this.callbackId++,a=(0,r.createPromiseCapability)();this.callbackCapabilities[i]=a;try{this._postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,callbackId:i,data:t},n)}catch(e){a.reject(e)}return a.promise}sendWithStream(e,t,n,i){const s=this.streamId++,l=this.sourceName,c=this.targetName,u=this.comObj;return new ReadableStream({start:n=>{const a=(0,r.createPromiseCapability)();return this.streamControllers[s]={controller:n,startCall:a,pullCall:null,cancelCall:null,isClosed:!1},this._postMessage({sourceName:l,targetName:c,action:e,streamId:s,data:t,desiredSize:n.desiredSize},i),a.promise},pull:e=>{const t=(0,r.createPromiseCapability)();return this.streamControllers[s].pullCall=t,u.postMessage({sourceName:l,targetName:c,stream:a.PULL,streamId:s,desiredSize:e.desiredSize}),t.promise},cancel:e=>{(0,r.assert)(e instanceof Error,"cancel must have a valid reason");const t=(0,r.createPromiseCapability)();return this.streamControllers[s].cancelCall=t,this.streamControllers[s].isClosed=!0,u.postMessage({sourceName:l,targetName:c,stream:a.CANCEL,streamId:s,reason:o(e)}),t.promise}},n)}_createStreamSink(e){const t=this,n=this.actionHandler[e.action],i=e.streamId,s=this.sourceName,l=e.sourceName,c=this.comObj,u={enqueue(e,n=1,o){if(this.isCancelled)return;const c=this.desiredSize;this.desiredSize-=n,c>0&&this.desiredSize<=0&&(this.sinkCapability=(0,r.createPromiseCapability)(),this.ready=this.sinkCapability.promise),t._postMessage({sourceName:s,targetName:l,stream:a.ENQUEUE,streamId:i,chunk:e},o)},close(){this.isCancelled||(this.isCancelled=!0,c.postMessage({sourceName:s,targetName:l,stream:a.CLOSE,streamId:i}),delete t.streamSinks[i])},error(e){(0,r.assert)(e instanceof Error,"error must have a valid reason"),this.isCancelled||(this.isCancelled=!0,c.postMessage({sourceName:s,targetName:l,stream:a.ERROR,streamId:i,reason:o(e)}))},sinkCapability:(0,r.createPromiseCapability)(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:e.desiredSize,ready:null};u.sinkCapability.resolve(),u.ready=u.sinkCapability.promise,this.streamSinks[i]=u,new Promise(function(t){t(n(e.data,u))}).then(function(){c.postMessage({sourceName:s,targetName:l,stream:a.START_COMPLETE,streamId:i,success:!0})},function(e){c.postMessage({sourceName:s,targetName:l,stream:a.START_COMPLETE,streamId:i,reason:o(e)})})}_processStreamMessage(e){const t=e.streamId,n=this.sourceName,i=e.sourceName,s=this.comObj;switch(e.stream){case a.START_COMPLETE:e.success?this.streamControllers[t].startCall.resolve():this.streamControllers[t].startCall.reject(o(e.reason));break;case a.PULL_COMPLETE:e.success?this.streamControllers[t].pullCall.resolve():this.streamControllers[t].pullCall.reject(o(e.reason));break;case a.PULL:if(!this.streamSinks[t]){s.postMessage({sourceName:n,targetName:i,stream:a.PULL_COMPLETE,streamId:t,success:!0});break}this.streamSinks[t].desiredSize<=0&&e.desiredSize>0&&this.streamSinks[t].sinkCapability.resolve(),this.streamSinks[t].desiredSize=e.desiredSize;const{onPull:l}=this.streamSinks[e.streamId];new Promise(function(e){e(l&&l())}).then(function(){s.postMessage({sourceName:n,targetName:i,stream:a.PULL_COMPLETE,streamId:t,success:!0})},function(e){s.postMessage({sourceName:n,targetName:i,stream:a.PULL_COMPLETE,streamId:t,reason:o(e)})});break;case a.ENQUEUE:if((0,r.assert)(this.streamControllers[t],"enqueue should have stream controller"),this.streamControllers[t].isClosed)break;this.streamControllers[t].controller.enqueue(e.chunk);break;case a.CLOSE:if((0,r.assert)(this.streamControllers[t],"close should have stream controller"),this.streamControllers[t].isClosed)break;this.streamControllers[t].isClosed=!0,this.streamControllers[t].controller.close(),this._deleteStreamController(t);break;case a.ERROR:(0,r.assert)(this.streamControllers[t],"error should have stream controller"),this.streamControllers[t].controller.error(o(e.reason)),this._deleteStreamController(t);break;case a.CANCEL_COMPLETE:e.success?this.streamControllers[t].cancelCall.resolve():this.streamControllers[t].cancelCall.reject(o(e.reason)),this._deleteStreamController(t);break;case a.CANCEL:if(!this.streamSinks[t])break;const{onCancel:c}=this.streamSinks[e.streamId];new Promise(function(t){t(c&&c(o(e.reason)))}).then(function(){s.postMessage({sourceName:n,targetName:i,stream:a.CANCEL_COMPLETE,streamId:t,success:!0})},function(e){s.postMessage({sourceName:n,targetName:i,stream:a.CANCEL_COMPLETE,streamId:t,reason:o(e)})}),this.streamSinks[t].sinkCapability.reject(o(e.reason)),this.streamSinks[t].isCancelled=!0,delete this.streamSinks[t];break;default:throw new Error("Unexpected stream case")}}async _deleteStreamController(e){await Promise.allSettled([this.streamControllers[e].startCall,this.streamControllers[e].pullCall,this.streamControllers[e].cancelCall].map(function(e){return e&&e.promise})),delete this.streamControllers[e]}_postMessage(e,t){t&&this.postMessageTransfers?this.comObj.postMessage(e,t):this.comObj.postMessage(e)}destroy(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PDFWorkerStream=void 0;var r=n(2);t.PDFWorkerStream=class{constructor(e){this._msgHandler=e,this._contentLength=null,this._fullRequestReader=null,this._rangeRequestReaders=[]}getFullReader(){return(0,r.assert)(!this._fullRequestReader,"PDFWorkerStream.getFullReader can only be called once."),this._fullRequestReader=new i(this._msgHandler),this._fullRequestReader}getRangeReader(e,t){const n=new a(e,t,this._msgHandler);return this._rangeRequestReaders.push(n),n}cancelAllRequests(e){this._fullRequestReader&&this._fullRequestReader.cancel(e),this._rangeRequestReaders.slice(0).forEach(function(t){t.cancel(e)})}};class i{constructor(e){this._msgHandler=e,this.onProgress=null,this._contentLength=null,this._isRangeSupported=!1,this._isStreamingSupported=!1;const t=this._msgHandler.sendWithStream("GetReader");this._reader=t.getReader(),this._headersReady=this._msgHandler.sendWithPromise("ReaderHeadersReady").then(e=>{this._isStreamingSupported=e.isStreamingSupported,this._isRangeSupported=e.isRangeSupported,this._contentLength=e.contentLength})}get headersReady(){return this._headersReady}get contentLength(){return this._contentLength}get isStreamingSupported(){return this._isStreamingSupported}get isRangeSupported(){return this._isRangeSupported}async read(){const{value:e,done:t}=await this._reader.read();return t?{value:void 0,done:!0}:{value:e.buffer,done:!1}}cancel(e){this._reader.cancel(e)}}class a{constructor(e,t,n){this._msgHandler=n,this.onProgress=null;const r=this._msgHandler.sendWithStream("GetRangeReader",{begin:e,end:t});this._reader=r.getReader()}get isStreamingSupported(){return!1}async read(){const{value:e,done:t}=await this._reader.read();return t?{value:void 0,done:!0}:{value:e.buffer,done:!1}}cancel(e){this._reader.cancel(e)}}}])},e.exports=n()}).call(t,n("W2nU"))},woOf:function(e,t,n){e.exports={default:n("V3tA"),__esModule:!0}},xGkn:function(e,t,n){"use strict";var r=n("4mcu"),i=n("EGZi"),a=n("/bQp"),o=n("TcQ7");e.exports=n("vIB/")(Array,"Array",function(e,t){this._t=o(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])},"values"),a.Arguments=a.Array,r("keys"),r("values"),r("entries")},"xH/j":function(e,t,n){var r=n("hJx8");e.exports=function(e,t,n){for(var i in t)n&&e[i]?e[i]=t[i]:r(e,i,t[i]);return e}},xLtR:function(e,t,n){"use strict";var r=n("cGG2"),i=n("TNV1"),a=n("pBtG"),o=n("KCLY");function s(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return s(e),e.headers=e.headers||{},e.data=i(e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]}),(e.adapter||o.adapter)(e).then(function(t){return s(e),t.data=i(t.data,t.headers,e.transformResponse),t},function(t){return a(t)||(s(e),t&&t.response&&(t.response.data=i(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})}},xnc9:function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},"y+7x":function(e,t,n){"use strict";t.__esModule=!0;var r=n("urW8");t.default={methods:{t:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.t.apply(this,t)}}}},ylDJ:function(e,t,n){"use strict";t.__esModule=!0,t.isEmpty=t.isEqual=t.arrayEquals=t.looseEqual=t.capitalize=t.kebabCase=t.autoprefixer=t.isFirefox=t.isEdge=t.isIE=t.coerceTruthyValueToArray=t.arrayFind=t.arrayFindIndex=t.escapeRegexpString=t.valueEquals=t.generateId=t.getValueByPath=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.noop=function(){},t.hasOwn=function(e,t){return l.call(e,t)},t.toObject=function(e){for(var t={},n=0;n<e.length;n++)e[n]&&c(t,e[n]);return t},t.getPropByPath=function(e,t,n){for(var r=e,i=(t=(t=t.replace(/\[(\w+)\]/g,".$1")).replace(/^\./,"")).split("."),a=0,o=i.length;a<o-1&&(r||n);++a){var s=i[a];if(!(s in r)){if(n)throw new Error("please transfer a valid prop path to form item!");break}r=r[s]}return{o:r,k:i[a],v:r?r[i[a]]:null}},t.rafThrottle=function(e){var t=!1;return function(){for(var n=this,r=arguments.length,i=Array(r),a=0;a<r;a++)i[a]=arguments[a];t||(t=!0,window.requestAnimationFrame(function(r){e.apply(n,i),t=!1}))}},t.objToArray=function(e){if(Array.isArray(e))return e;return f(e)?[]:[e]};var i,a=n("7+uW"),o=(i=a)&&i.__esModule?i:{default:i},s=n("835U");var l=Object.prototype.hasOwnProperty;function c(e,t){for(var n in t)e[n]=t[n];return e}t.getValueByPath=function(e,t){for(var n=(t=t||"").split("."),r=e,i=null,a=0,o=n.length;a<o;a++){var s=n[a];if(!r)break;if(a===o-1){i=r[s];break}r=r[s]}return i};t.generateId=function(){return Math.floor(1e4*Math.random())},t.valueEquals=function(e,t){if(e===t)return!0;if(!(e instanceof Array))return!1;if(!(t instanceof Array))return!1;if(e.length!==t.length)return!1;for(var n=0;n!==e.length;++n)if(e[n]!==t[n])return!1;return!0},t.escapeRegexpString=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return String(e).replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")};var u=t.arrayFindIndex=function(e,t){for(var n=0;n!==e.length;++n)if(t(e[n]))return n;return-1},h=(t.arrayFind=function(e,t){var n=u(e,t);return-1!==n?e[n]:void 0},t.coerceTruthyValueToArray=function(e){return Array.isArray(e)?e:e?[e]:[]},t.isIE=function(){return!o.default.prototype.$isServer&&!isNaN(Number(document.documentMode))},t.isEdge=function(){return!o.default.prototype.$isServer&&navigator.userAgent.indexOf("Edge")>-1},t.isFirefox=function(){return!o.default.prototype.$isServer&&!!window.navigator.userAgent.match(/firefox/i)},t.autoprefixer=function(e){if("object"!==(void 0===e?"undefined":r(e)))return e;var t=["ms-","webkit-"];return["transform","transition","animation"].forEach(function(n){var r=e[n];n&&r&&t.forEach(function(t){e[t+n]=r})}),e},t.kebabCase=function(e){var t=/([^-])([A-Z])/g;return e.replace(t,"$1-$2").replace(t,"$1-$2").toLowerCase()},t.capitalize=function(e){return(0,s.isString)(e)?e.charAt(0).toUpperCase()+e.slice(1):e},t.looseEqual=function(e,t){var n=(0,s.isObject)(e),r=(0,s.isObject)(t);return n&&r?JSON.stringify(e)===JSON.stringify(t):!n&&!r&&String(e)===String(t)}),d=t.arrayEquals=function(e,t){if(e=e||[],t=t||[],e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!h(e[n],t[n]))return!1;return!0},f=(t.isEqual=function(e,t){return Array.isArray(e)&&Array.isArray(t)?d(e,t):h(e,t)},t.isEmpty=function(e){if(null==e)return!0;if("boolean"==typeof e)return!1;if("number"==typeof e)return!e;if(e instanceof Error)return""===e.message;switch(Object.prototype.toString.call(e)){case"[object String]":case"[object Array]":return!e.length;case"[object File]":case"[object Map]":case"[object Set]":return!e.size;case"[object Object]":return!Object.keys(e).length}return!1})},"z+gd":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){var n=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some(function(e,r){return e[0]===t&&(n=r,!0)}),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var i=r[n];e.call(t,i[1],i[0])}},t}()}(),r="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,i=void 0!==e&&e.Math===Math?e:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),a="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(i):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)},o=2;var s=20,l=["top","right","bottom","left","width","height","size","weight"],c="undefined"!=typeof MutationObserver,u=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,i=0;function s(){n&&(n=!1,e()),r&&c()}function l(){a(s)}function c(){var e=Date.now();if(n){if(e-i<o)return;r=!0}else n=!0,r=!1,setTimeout(l,t);i=e}return c}(this.refresh.bind(this),s)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter(function(e){return e.gatherActive(),e.hasActive()});return e.forEach(function(e){return e.broadcastActive()}),e.length>0},e.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),c?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){r&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;l.some(function(e){return!!~n.indexOf(e)})&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),h=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},d=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||i},f=y(0,0,0,0);function p(e){return parseFloat(e)||0}function A(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(t,n){return t+p(e["border-"+n+"-width"])},0)}function g(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return f;var r=d(e).getComputedStyle(e),i=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var i=r[n],a=e["padding-"+i];t[i]=p(a)}return t}(r),a=i.left+i.right,o=i.top+i.bottom,s=p(r.width),l=p(r.height);if("border-box"===r.boxSizing&&(Math.round(s+a)!==t&&(s-=A(r,"left","right")+a),Math.round(l+o)!==n&&(l-=A(r,"top","bottom")+o)),!function(e){return e===d(e).document.documentElement}(e)){var c=Math.round(s+a)-t,u=Math.round(l+o)-n;1!==Math.abs(c)&&(s-=c),1!==Math.abs(u)&&(l-=u)}return y(i.left,i.top,s,l)}var m="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof d(e).SVGGraphicsElement}:function(e){return e instanceof d(e).SVGElement&&"function"==typeof e.getBBox};function v(e){return r?m(e)?function(e){var t=e.getBBox();return y(0,0,t.width,t.height)}(e):g(e):f}function y(e,t,n,r){return{x:e,y:t,width:n,height:r}}var b=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=y(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=v(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),w=function(){return function(e,t){var n,r,i,a,o,s,l,c=(r=(n=t).x,i=n.y,a=n.width,o=n.height,s="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,l=Object.create(s.prototype),h(l,{x:r,y:i,width:a,height:o,top:i,right:r+a,bottom:o+i,left:r}),l);h(this,{target:e,contentRect:c})}}(),x=function(){function e(e,t,r){if(this.activeObservations_=[],this.observations_=new n,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=r}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof d(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new b(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof d(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&e.activeObservations_.push(t)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map(function(e){return new w(e.target,e.broadcastRect())});this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),_="undefined"!=typeof WeakMap?new WeakMap:new n,C=function(){return function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=u.getInstance(),r=new x(t,n,this);_.set(this,r)}}();["observe","unobserve","disconnect"].forEach(function(e){C.prototype[e]=function(){var t;return(t=_.get(this))[e].apply(t,arguments)}});var S=void 0!==i.ResizeObserver?i.ResizeObserver:C;t.default=S}.call(t,n("DuR2"))},"zAL+":function(e,t){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=99)}({0:function(e,t,n){"use strict";function r(e,t,n,r,i,a,o,s){var l,c="function"==typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),a&&(c._scopeId="data-v-"+a),o?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},c._ssrRegister=l):i&&(l=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,l):[l]}return{exports:e,options:c}}n.d(t,"a",function(){return r})},99:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"el-button-group"},[this._t("default")],2)};r._withStripped=!0;var i={name:"ElButtonGroup"},a=n(0),o=Object(a.a)(i,r,[],!1,null,null,null);o.options.__file="packages/button/src/button-group.vue";var s=o.exports;s.install=function(e){e.component(s.name,s)};t.default=s}})},zL8q:function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=45)}([function(e,t){e.exports=n("AMCD")},function(e,t){e.exports=n("2kvA")},function(e,t){e.exports=n("ylDJ")},function(e,t){e.exports=n("fPll")},function(e,t){e.exports=n("y+7x")},function(e,t){e.exports=n("fKx3")},function(e,t){e.exports=n("7+uW")},function(e,t){e.exports=n("jmaC")},function(e,t){e.exports=n("HJMx")},function(e,t){e.exports=n("aW5l")},function(e,t){e.exports=n("ISYW")},function(e,t){e.exports=n("mtrD")},function(e,t){e.exports=n("02w1")},function(e,t){e.exports=n("7J9s")},function(e,t){e.exports=n("ON3O")},function(e,t){e.exports=n("urW8")},function(e,t){e.exports=n("EKTV")},function(e,t){e.exports=n("fEB+")},function(e,t){e.exports=n("835U")},function(e,t){e.exports=n("E/in")},function(e,t){e.exports=n("eNfa")},function(e,t){e.exports=n("Zcwg")},function(e,t){e.exports=n("1oZe")},function(e,t){e.exports=n("fUqW")},function(e,t){e.exports=n("nvbp")},function(e,t){e.exports=n("uY1a")},function(e,t){e.exports=n("aMwW")},function(e,t){e.exports=n("zTCi")},function(e,t){e.exports=n("zAL+")},function(e,t){e.exports=n("orbS")},function(e,t){e.exports=n("6Twh")},function(e,t){e.exports=n("s3ue")},function(e,t){e.exports=n("H8dH")},function(e,t){e.exports=n("GegP")},function(e,t){e.exports=n("hyEB")},function(e,t){e.exports=n("HzcN")},function(e,t){e.exports=n("e0Bm")},function(e,t){e.exports=n("STLj")},function(e,t){e.exports=n("3fo+")},function(e,t){e.exports=n("DQJY")},function(e,t){e.exports=n("jwfv")},function(e,t){e.exports=n("0kY3")},function(e,t){e.exports=n("kNJA")},function(e,t){e.exports=n("RDoK")},function(e,t){e.exports=n("SXzR")},function(e,t,n){e.exports=n(46)},function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("ul",{staticClass:"el-pager",on:{click:e.onPagerClick}},[e.pageCount>0?n("li",{staticClass:"number",class:{active:1===e.currentPage,disabled:e.disabled}},[e._v("1")]):e._e(),e.showPrevMore?n("li",{staticClass:"el-icon more btn-quickprev",class:[e.quickprevIconClass,{disabled:e.disabled}],on:{mouseenter:function(t){e.onMouseenter("left")},mouseleave:function(t){e.quickprevIconClass="el-icon-more"}}}):e._e(),e._l(e.pagers,function(t){return n("li",{key:t,staticClass:"number",class:{active:e.currentPage===t,disabled:e.disabled}},[e._v(e._s(t))])}),e.showNextMore?n("li",{staticClass:"el-icon more btn-quicknext",class:[e.quicknextIconClass,{disabled:e.disabled}],on:{mouseenter:function(t){e.onMouseenter("right")},mouseleave:function(t){e.quicknextIconClass="el-icon-more"}}}):e._e(),e.pageCount>1?n("li",{staticClass:"number",class:{active:e.currentPage===e.pageCount,disabled:e.disabled}},[e._v(e._s(e.pageCount))]):e._e()],2)};function i(e,t,n,r,i,a,o,s){var l,c="function"==typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),a&&(c._scopeId="data-v-"+a),o?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},c._ssrRegister=l):i&&(l=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,l):[l]}return{exports:e,options:c}}r._withStripped=!0;var a=i({name:"ElPager",props:{currentPage:Number,pageCount:Number,pagerCount:Number,disabled:Boolean},watch:{showPrevMore:function(e){e||(this.quickprevIconClass="el-icon-more")},showNextMore:function(e){e||(this.quicknextIconClass="el-icon-more")}},methods:{onPagerClick:function(e){var t=e.target;if("UL"!==t.tagName&&!this.disabled){var n=Number(e.target.textContent),r=this.pageCount,i=this.currentPage,a=this.pagerCount-2;-1!==t.className.indexOf("more")&&(-1!==t.className.indexOf("quickprev")?n=i-a:-1!==t.className.indexOf("quicknext")&&(n=i+a)),isNaN(n)||(n<1&&(n=1),n>r&&(n=r)),n!==i&&this.$emit("change",n)}},onMouseenter:function(e){this.disabled||("left"===e?this.quickprevIconClass="el-icon-d-arrow-left":this.quicknextIconClass="el-icon-d-arrow-right")}},computed:{pagers:function(){var e=this.pagerCount,t=(e-1)/2,n=Number(this.currentPage),r=Number(this.pageCount),i=!1,a=!1;r>e&&(n>e-t&&(i=!0),n<r-t&&(a=!0));var o=[];if(i&&!a)for(var s=r-(e-2);s<r;s++)o.push(s);else if(!i&&a)for(var l=2;l<e;l++)o.push(l);else if(i&&a)for(var c=Math.floor(e/2)-1,u=n-c;u<=n+c;u++)o.push(u);else for(var h=2;h<r;h++)o.push(h);return this.showPrevMore=i,this.showNextMore=a,o}},data:function(){return{current:null,showPrevMore:!1,showNextMore:!1,quicknextIconClass:"el-icon-more",quickprevIconClass:"el-icon-more"}}},r,[],!1,null,null,null);a.options.__file="packages/pagination/src/pager.vue";var o=a.exports,s=n(36),l=n.n(s),c=n(37),u=n.n(c),h=n(8),d=n.n(h),f=n(4),p=n.n(f),A=n(2),g={name:"ElPagination",props:{pageSize:{type:Number,default:10},small:Boolean,total:Number,pageCount:Number,pagerCount:{type:Number,validator:function(e){return(0|e)===e&&e>4&&e<22&&e%2==1},default:7},currentPage:{type:Number,default:1},layout:{default:"prev, pager, next, jumper, ->, total"},pageSizes:{type:Array,default:function(){return[10,20,30,40,50,100]}},popperClass:String,prevText:String,nextText:String,background:Boolean,disabled:Boolean,hideOnSinglePage:Boolean},data:function(){return{internalCurrentPage:1,internalPageSize:0,lastEmittedPage:-1,userChangePageSize:!1}},render:function(e){var t=this.layout;if(!t)return null;if(this.hideOnSinglePage&&(!this.internalPageCount||1===this.internalPageCount))return null;var n=e("div",{class:["el-pagination",{"is-background":this.background,"el-pagination--small":this.small}]}),r={prev:e("prev"),jumper:e("jumper"),pager:e("pager",{attrs:{currentPage:this.internalCurrentPage,pageCount:this.internalPageCount,pagerCount:this.pagerCount,disabled:this.disabled},on:{change:this.handleCurrentChange}}),next:e("next"),sizes:e("sizes",{attrs:{pageSizes:this.pageSizes}}),slot:e("slot",[this.$slots.default?this.$slots.default:""]),total:e("total")},i=t.split(",").map(function(e){return e.trim()}),a=e("div",{class:"el-pagination__rightwrapper"}),o=!1;return n.children=n.children||[],a.children=a.children||[],i.forEach(function(e){"->"!==e?o?a.children.push(r[e]):n.children.push(r[e]):o=!0}),o&&n.children.unshift(a),n},components:{Prev:{render:function(e){return e("button",{attrs:{type:"button",disabled:this.$parent.disabled||this.$parent.internalCurrentPage<=1},class:"btn-prev",on:{click:this.$parent.prev}},[this.$parent.prevText?e("span",[this.$parent.prevText]):e("i",{class:"el-icon el-icon-arrow-left"})])}},Next:{render:function(e){return e("button",{attrs:{type:"button",disabled:this.$parent.disabled||this.$parent.internalCurrentPage===this.$parent.internalPageCount||0===this.$parent.internalPageCount},class:"btn-next",on:{click:this.$parent.next}},[this.$parent.nextText?e("span",[this.$parent.nextText]):e("i",{class:"el-icon el-icon-arrow-right"})])}},Sizes:{mixins:[p.a],props:{pageSizes:Array},watch:{pageSizes:{immediate:!0,handler:function(e,t){Object(A.valueEquals)(e,t)||Array.isArray(e)&&(this.$parent.internalPageSize=e.indexOf(this.$parent.pageSize)>-1?this.$parent.pageSize:this.pageSizes[0])}}},render:function(e){var t=this;return e("span",{class:"el-pagination__sizes"},[e("el-select",{attrs:{value:this.$parent.internalPageSize,popperClass:this.$parent.popperClass||"",size:"mini",disabled:this.$parent.disabled},on:{input:this.handleChange}},[this.pageSizes.map(function(n){return e("el-option",{attrs:{value:n,label:n+t.t("el.pagination.pagesize")}})})])])},components:{ElSelect:l.a,ElOption:u.a},methods:{handleChange:function(e){e!==this.$parent.internalPageSize&&(this.$parent.internalPageSize=e=parseInt(e,10),this.$parent.userChangePageSize=!0,this.$parent.$emit("update:pageSize",e),this.$parent.$emit("size-change",e))}}},Jumper:{mixins:[p.a],components:{ElInput:d.a},data:function(){return{userInput:null}},watch:{"$parent.internalCurrentPage":function(){this.userInput=null}},methods:{handleKeyup:function(e){var t=e.keyCode,n=e.target;13===t&&this.handleChange(n.value)},handleInput:function(e){this.userInput=e},handleChange:function(e){this.$parent.internalCurrentPage=this.$parent.getValidCurrentPage(e),this.$parent.emitChange(),this.userInput=null}},render:function(e){return e("span",{class:"el-pagination__jump"},[this.t("el.pagination.goto"),e("el-input",{class:"el-pagination__editor is-in-pagination",attrs:{min:1,max:this.$parent.internalPageCount,value:null!==this.userInput?this.userInput:this.$parent.internalCurrentPage,type:"number",disabled:this.$parent.disabled},nativeOn:{keyup:this.handleKeyup},on:{input:this.handleInput,change:this.handleChange}}),this.t("el.pagination.pageClassifier")])}},Total:{mixins:[p.a],render:function(e){return"number"==typeof this.$parent.total?e("span",{class:"el-pagination__total"},[this.t("el.pagination.total",{total:this.$parent.total})]):""}},Pager:o},methods:{handleCurrentChange:function(e){this.internalCurrentPage=this.getValidCurrentPage(e),this.userChangePageSize=!0,this.emitChange()},prev:function(){if(!this.disabled){var e=this.internalCurrentPage-1;this.internalCurrentPage=this.getValidCurrentPage(e),this.$emit("prev-click",this.internalCurrentPage),this.emitChange()}},next:function(){if(!this.disabled){var e=this.internalCurrentPage+1;this.internalCurrentPage=this.getValidCurrentPage(e),this.$emit("next-click",this.internalCurrentPage),this.emitChange()}},getValidCurrentPage:function(e){e=parseInt(e,10);var t=void 0;return"number"==typeof this.internalPageCount?e<1?t=1:e>this.internalPageCount&&(t=this.internalPageCount):(isNaN(e)||e<1)&&(t=1),void 0===t&&isNaN(e)?t=1:0===t&&(t=1),void 0===t?e:t},emitChange:function(){var e=this;this.$nextTick(function(){(e.internalCurrentPage!==e.lastEmittedPage||e.userChangePageSize)&&(e.$emit("current-change",e.internalCurrentPage),e.lastEmittedPage=e.internalCurrentPage,e.userChangePageSize=!1)})}},computed:{internalPageCount:function(){return"number"==typeof this.total?Math.max(1,Math.ceil(this.total/this.internalPageSize)):"number"==typeof this.pageCount?Math.max(1,this.pageCount):null}},watch:{currentPage:{immediate:!0,handler:function(e){this.internalCurrentPage=this.getValidCurrentPage(e)}},pageSize:{immediate:!0,handler:function(e){this.internalPageSize=isNaN(e)?10:e}},internalCurrentPage:{immediate:!0,handler:function(e){this.$emit("update:currentPage",e),this.lastEmittedPage=-1}},internalPageCount:function(e){var t=this.internalCurrentPage;e>0&&0===t?this.internalCurrentPage=1:t>e&&(this.internalCurrentPage=0===e?1:e,this.userChangePageSize&&this.emitChange()),this.userChangePageSize=!1}},install:function(e){e.component(g.name,g)}},m=g,v=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"dialog-fade"},on:{"after-enter":e.afterEnter,"after-leave":e.afterLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-dialog__wrapper",on:{click:function(t){return t.target!==t.currentTarget?null:e.handleWrapperClick(t)}}},[n("div",{key:e.key,ref:"dialog",class:["el-dialog",{"is-fullscreen":e.fullscreen,"el-dialog--center":e.center},e.customClass],style:e.style,attrs:{role:"dialog","aria-modal":"true","aria-label":e.title||"dialog"}},[n("div",{staticClass:"el-dialog__header"},[e._t("title",[n("span",{staticClass:"el-dialog__title"},[e._v(e._s(e.title))])]),e.showClose?n("button",{staticClass:"el-dialog__headerbtn",attrs:{type:"button","aria-label":"Close"},on:{click:e.handleClose}},[n("i",{staticClass:"el-dialog__close el-icon el-icon-close"})]):e._e()],2),e.rendered?n("div",{staticClass:"el-dialog__body"},[e._t("default")],2):e._e(),e.$slots.footer?n("div",{staticClass:"el-dialog__footer"},[e._t("footer")],2):e._e()])])])};v._withStripped=!0;var y=n(13),b=n.n(y),w=n(9),x=n.n(w),_=n(3),C=n.n(_),S=i({name:"ElDialog",mixins:[b.a,C.a,x.a],props:{title:{type:String,default:""},modal:{type:Boolean,default:!0},modalAppendToBody:{type:Boolean,default:!0},appendToBody:{type:Boolean,default:!1},lockScroll:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},width:String,fullscreen:Boolean,customClass:{type:String,default:""},top:{type:String,default:"15vh"},beforeClose:Function,center:{type:Boolean,default:!1},destroyOnClose:Boolean},data:function(){return{closed:!1,key:0}},watch:{visible:function(e){var t=this;e?(this.closed=!1,this.$emit("open"),this.$el.addEventListener("scroll",this.updatePopper),this.$nextTick(function(){t.$refs.dialog.scrollTop=0}),this.appendToBody&&document.body.appendChild(this.$el)):(this.$el.removeEventListener("scroll",this.updatePopper),this.closed||this.$emit("close"),this.destroyOnClose&&this.$nextTick(function(){t.key++}))}},computed:{style:function(){var e={};return this.fullscreen||(e.marginTop=this.top,this.width&&(e.width=this.width)),e}},methods:{getMigratingConfig:function(){return{props:{size:"size is removed."}}},handleWrapperClick:function(){this.closeOnClickModal&&this.handleClose()},handleClose:function(){"function"==typeof this.beforeClose?this.beforeClose(this.hide):this.hide()},hide:function(e){!1!==e&&(this.$emit("update:visible",!1),this.$emit("close"),this.closed=!0)},updatePopper:function(){this.broadcast("ElSelectDropdown","updatePopper"),this.broadcast("ElDropdownMenu","updatePopper")},afterEnter:function(){this.$emit("opened")},afterLeave:function(){this.$emit("closed")}},mounted:function(){this.visible&&(this.rendered=!0,this.open(),this.appendToBody&&document.body.appendChild(this.$el))},destroyed:function(){this.appendToBody&&this.$el&&this.$el.parentNode&&this.$el.parentNode.removeChild(this.$el)}},v,[],!1,null,null,null);S.options.__file="packages/dialog/src/component.vue";var k=S.exports;k.install=function(e){e.component(k.name,k)};var B=k,E=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.close,expression:"close"}],staticClass:"el-autocomplete",attrs:{"aria-haspopup":"listbox",role:"combobox","aria-expanded":e.suggestionVisible,"aria-owns":e.id}},[n("el-input",e._b({ref:"input",on:{input:e.handleInput,change:e.handleChange,focus:e.handleFocus,blur:e.handleBlur,clear:e.handleClear},nativeOn:{keydown:[function(t){if(!("button"in t)&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"]))return null;t.preventDefault(),e.highlight(e.highlightedIndex-1)},function(t){if(!("button"in t)&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"]))return null;t.preventDefault(),e.highlight(e.highlightedIndex+1)},function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?e.handleKeyEnter(t):null},function(t){return"button"in t||!e._k(t.keyCode,"tab",9,t.key,"Tab")?e.close(t):null}]}},"el-input",[e.$props,e.$attrs],!1),[e.$slots.prepend?n("template",{slot:"prepend"},[e._t("prepend")],2):e._e(),e.$slots.append?n("template",{slot:"append"},[e._t("append")],2):e._e(),e.$slots.prefix?n("template",{slot:"prefix"},[e._t("prefix")],2):e._e(),e.$slots.suffix?n("template",{slot:"suffix"},[e._t("suffix")],2):e._e()],2),n("el-autocomplete-suggestions",{ref:"suggestions",class:[e.popperClass?e.popperClass:""],attrs:{"visible-arrow":"","popper-options":e.popperOptions,"append-to-body":e.popperAppendToBody,placement:e.placement,id:e.id}},e._l(e.suggestions,function(t,r){return n("li",{key:r,class:{highlighted:e.highlightedIndex===r},attrs:{id:e.id+"-item-"+r,role:"option","aria-selected":e.highlightedIndex===r},on:{click:function(n){e.select(t)}}},[e._t("default",[e._v("\n "+e._s(t[e.valueKey])+"\n ")],{item:t})],2)}),0)],1)};E._withStripped=!0;var T=n(14),I=n.n(T),M=n(10),F=n.n(M),D=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":e.doDestroy}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.showPopper,expression:"showPopper"}],staticClass:"el-autocomplete-suggestion el-popper",class:{"is-loading":!e.parent.hideLoading&&e.parent.loading},style:{width:e.dropdownWidth},attrs:{role:"region"}},[n("el-scrollbar",{attrs:{tag:"ul","wrap-class":"el-autocomplete-suggestion__wrap","view-class":"el-autocomplete-suggestion__list"}},[!e.parent.hideLoading&&e.parent.loading?n("li",[n("i",{staticClass:"el-icon-loading"})]):e._t("default")],2)],1)])};D._withStripped=!0;var P=n(5),O=n.n(P),L=n(17),R=n.n(L),N=i({components:{ElScrollbar:R.a},mixins:[O.a,C.a],componentName:"ElAutocompleteSuggestions",data:function(){return{parent:this.$parent,dropdownWidth:""}},props:{options:{default:function(){return{gpuAcceleration:!1}}},id:String},methods:{select:function(e){this.dispatch("ElAutocomplete","item-click",e)}},updated:function(){var e=this;this.$nextTick(function(t){e.popperJS&&e.updatePopper()})},mounted:function(){this.$parent.popperElm=this.popperElm=this.$el,this.referenceElm=this.$parent.$refs.input.$refs.input||this.$parent.$refs.input.$refs.textarea,this.referenceList=this.$el.querySelector(".el-autocomplete-suggestion__list"),this.referenceList.setAttribute("role","listbox"),this.referenceList.setAttribute("id",this.id)},created:function(){var e=this;this.$on("visible",function(t,n){e.dropdownWidth=n+"px",e.showPopper=t})}},D,[],!1,null,null,null);N.options.__file="packages/autocomplete/src/autocomplete-suggestions.vue";var U=N.exports,H=n(22),j=n.n(H),Q=i({name:"ElAutocomplete",mixins:[C.a,j()("input"),x.a],inheritAttrs:!1,componentName:"ElAutocomplete",components:{ElInput:d.a,ElAutocompleteSuggestions:U},directives:{Clickoutside:F.a},props:{valueKey:{type:String,default:"value"},popperClass:String,popperOptions:Object,placeholder:String,clearable:{type:Boolean,default:!1},disabled:Boolean,name:String,size:String,value:String,maxlength:Number,minlength:Number,autofocus:Boolean,fetchSuggestions:Function,triggerOnFocus:{type:Boolean,default:!0},customItem:String,selectWhenUnmatched:{type:Boolean,default:!1},prefixIcon:String,suffixIcon:String,label:String,debounce:{type:Number,default:300},placement:{type:String,default:"bottom-start"},hideLoading:Boolean,popperAppendToBody:{type:Boolean,default:!0},highlightFirstItem:{type:Boolean,default:!1}},data:function(){return{activated:!1,suggestions:[],loading:!1,highlightedIndex:-1,suggestionDisabled:!1}},computed:{suggestionVisible:function(){var e=this.suggestions;return(Array.isArray(e)&&e.length>0||this.loading)&&this.activated},id:function(){return"el-autocomplete-"+Object(A.generateId)()}},watch:{suggestionVisible:function(e){var t=this.getInput();t&&this.broadcast("ElAutocompleteSuggestions","visible",[e,t.offsetWidth])}},methods:{getMigratingConfig:function(){return{props:{"custom-item":"custom-item is removed, use scoped slot instead.",props:"props is removed, use value-key instead."}}},getData:function(e){var t=this;this.suggestionDisabled||(this.loading=!0,this.fetchSuggestions(e,function(e){t.loading=!1,t.suggestionDisabled||(Array.isArray(e)?(t.suggestions=e,t.highlightedIndex=t.highlightFirstItem?0:-1):console.error("[Element Error][Autocomplete]autocomplete suggestions must be an array"))}))},handleInput:function(e){if(this.$emit("input",e),this.suggestionDisabled=!1,!this.triggerOnFocus&&!e)return this.suggestionDisabled=!0,void(this.suggestions=[]);this.debouncedGetData(e)},handleChange:function(e){this.$emit("change",e)},handleFocus:function(e){this.activated=!0,this.$emit("focus",e),this.triggerOnFocus&&this.debouncedGetData(this.value)},handleBlur:function(e){this.$emit("blur",e)},handleClear:function(){this.activated=!1,this.$emit("clear")},close:function(e){this.activated=!1},handleKeyEnter:function(e){var t=this;this.suggestionVisible&&this.highlightedIndex>=0&&this.highlightedIndex<this.suggestions.length?(e.preventDefault(),this.select(this.suggestions[this.highlightedIndex])):this.selectWhenUnmatched&&(this.$emit("select",{value:this.value}),this.$nextTick(function(e){t.suggestions=[],t.highlightedIndex=-1}))},select:function(e){var t=this;this.$emit("input",e[this.valueKey]),this.$emit("select",e),this.$nextTick(function(e){t.suggestions=[],t.highlightedIndex=-1})},highlight:function(e){if(this.suggestionVisible&&!this.loading)if(e<0)this.highlightedIndex=-1;else{e>=this.suggestions.length&&(e=this.suggestions.length-1);var t=this.$refs.suggestions.$el.querySelector(".el-autocomplete-suggestion__wrap"),n=t.querySelectorAll(".el-autocomplete-suggestion__list li")[e],r=t.scrollTop,i=n.offsetTop;i+n.scrollHeight>r+t.clientHeight&&(t.scrollTop+=n.scrollHeight),i<r&&(t.scrollTop-=n.scrollHeight),this.highlightedIndex=e,this.getInput().setAttribute("aria-activedescendant",this.id+"-item-"+this.highlightedIndex)}},getInput:function(){return this.$refs.input.getInput()}},mounted:function(){var e=this;this.debouncedGetData=I()(this.debounce,this.getData),this.$on("item-click",function(t){e.select(t)});var t=this.getInput();t.setAttribute("role","textbox"),t.setAttribute("aria-autocomplete","list"),t.setAttribute("aria-controls","id"),t.setAttribute("aria-activedescendant",this.id+"-item-"+this.highlightedIndex)},beforeDestroy:function(){this.$refs.suggestions.$destroy()}},E,[],!1,null,null,null);Q.options.__file="packages/autocomplete/src/autocomplete.vue";var z=Q.exports;z.install=function(e){e.component(z.name,z)};var V=z,G=n(11),$=n.n(G),q=n(28),W=n.n(q),K=i({name:"ElDropdown",componentName:"ElDropdown",mixins:[C.a,x.a],directives:{Clickoutside:F.a},components:{ElButton:$.a,ElButtonGroup:W.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}},data:function(){return{timeout:null,visible:!1,triggerElm:null,menuItems:null,menuItemsArray:null,dropdownElm:null,focusing:!1,listId:"dropdown-menu-"+Object(A.generateId)()}},computed:{dropdownSize:function(){return this.size||(this.$ELEMENT||{}).size}},mounted:function(){this.$on("menu-item-click",this.handleMenuItemClick)},watch:{visible:function(e){this.broadcast("ElDropdownMenu","visible",e),this.$emit("visible-change",e)},focusing:function(e){var t=this.$el.querySelector(".el-dropdown-selfdefine");t&&(e?t.className+=" focusing":t.className=t.className.replace("focusing",""))}},methods:{getMigratingConfig:function(){return{props:{"menu-align":"menu-align is renamed to placement."}}},show:function(){var e=this;this.triggerElm.disabled||(clearTimeout(this.timeout),this.timeout=setTimeout(function(){e.visible=!0},"click"===this.trigger?0:this.showTimeout))},hide:function(){var e=this;this.triggerElm.disabled||(this.removeTabindex(),this.tabindex>=0&&this.resetTabindex(this.triggerElm),clearTimeout(this.timeout),this.timeout=setTimeout(function(){e.visible=!1},"click"===this.trigger?0:this.hideTimeout))},handleClick:function(){this.triggerElm.disabled||(this.visible?this.hide():this.show())},handleTriggerKeyDown:function(e){var t=e.keyCode;[38,40].indexOf(t)>-1?(this.removeTabindex(),this.resetTabindex(this.menuItems[0]),this.menuItems[0].focus(),e.preventDefault(),e.stopPropagation()):13===t?this.handleClick():[9,27].indexOf(t)>-1&&this.hide()},handleItemKeyDown:function(e){var t=e.keyCode,n=e.target,r=this.menuItemsArray.indexOf(n),i=this.menuItemsArray.length-1,a=void 0;[38,40].indexOf(t)>-1?(a=38===t?0!==r?r-1:0:r<i?r+1:i,this.removeTabindex(),this.resetTabindex(this.menuItems[a]),this.menuItems[a].focus(),e.preventDefault(),e.stopPropagation()):13===t?(this.triggerElmFocus(),n.click(),this.hideOnClick&&(this.visible=!1)):[9,27].indexOf(t)>-1&&(this.hide(),this.triggerElmFocus())},resetTabindex:function(e){this.removeTabindex(),e.setAttribute("tabindex","0")},removeTabindex:function(){this.triggerElm.setAttribute("tabindex","-1"),this.menuItemsArray.forEach(function(e){e.setAttribute("tabindex","-1")})},initAria:function(){this.dropdownElm.setAttribute("id",this.listId),this.triggerElm.setAttribute("aria-haspopup","list"),this.triggerElm.setAttribute("aria-controls",this.listId),this.splitButton||(this.triggerElm.setAttribute("role","button"),this.triggerElm.setAttribute("tabindex",this.tabindex),this.triggerElm.setAttribute("class",(this.triggerElm.getAttribute("class")||"")+" el-dropdown-selfdefine"))},initEvent:function(){var e=this,t=this.trigger,n=this.show,r=this.hide,i=this.handleClick,a=this.splitButton,o=this.handleTriggerKeyDown,s=this.handleItemKeyDown;this.triggerElm=a?this.$refs.trigger.$el:this.$slots.default[0].elm;var l=this.dropdownElm;this.triggerElm.addEventListener("keydown",o),l.addEventListener("keydown",s,!0),a||(this.triggerElm.addEventListener("focus",function(){e.focusing=!0}),this.triggerElm.addEventListener("blur",function(){e.focusing=!1}),this.triggerElm.addEventListener("click",function(){e.focusing=!1})),"hover"===t?(this.triggerElm.addEventListener("mouseenter",n),this.triggerElm.addEventListener("mouseleave",r),l.addEventListener("mouseenter",n),l.addEventListener("mouseleave",r)):"click"===t&&this.triggerElm.addEventListener("click",i)},handleMenuItemClick:function(e,t){this.hideOnClick&&(this.visible=!1),this.$emit("command",e,t)},triggerElmFocus:function(){this.triggerElm.focus&&this.triggerElm.focus()},initDomOperation:function(){this.dropdownElm=this.popperElm,this.menuItems=this.dropdownElm.querySelectorAll("[tabindex='-1']"),this.menuItemsArray=[].slice.call(this.menuItems),this.initEvent(),this.initAria()}},render:function(e){var t=this,n=this.hide,r=this.splitButton,i=this.type,a=this.dropdownSize,o=r?e("el-button-group",[e("el-button",{attrs:{type:i,size:a},nativeOn:{click:function(e){t.$emit("click",e),n()}}},[this.$slots.default]),e("el-button",{ref:"trigger",attrs:{type:i,size:a},class:"el-dropdown__caret-button"},[e("i",{class:"el-dropdown__icon el-icon-arrow-down"})])]):this.$slots.default;return e("div",{class:"el-dropdown",directives:[{name:"clickoutside",value:n}]},[o,this.$slots.dropdown])}},void 0,void 0,!1,null,null,null);K.options.__file="packages/dropdown/src/dropdown.vue";var Y=K.exports;Y.install=function(e){e.component(Y.name,Y)};var X=Y,J=function(){var e=this.$createElement,t=this._self._c||e;return t("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":this.doDestroy}},[t("ul",{directives:[{name:"show",rawName:"v-show",value:this.showPopper,expression:"showPopper"}],staticClass:"el-dropdown-menu el-popper",class:[this.size&&"el-dropdown-menu--"+this.size]},[this._t("default")],2)])};J._withStripped=!0;var Z=i({name:"ElDropdownMenu",componentName:"ElDropdownMenu",mixins:[O.a],props:{visibleArrow:{type:Boolean,default:!0},arrowOffset:{type:Number,default:0}},data:function(){return{size:this.dropdown.dropdownSize}},inject:["dropdown"],created:function(){var e=this;this.$on("updatePopper",function(){e.showPopper&&e.updatePopper()}),this.$on("visible",function(t){e.showPopper=t})},mounted:function(){this.dropdown.popperElm=this.popperElm=this.$el,this.referenceElm=this.dropdown.$el,this.dropdown.initDomOperation()},watch:{"dropdown.placement":{immediate:!0,handler:function(e){this.currentPlacement=e}}}},J,[],!1,null,null,null);Z.options.__file="packages/dropdown/src/dropdown-menu.vue";var ee=Z.exports;ee.install=function(e){e.component(ee.name,ee)};var te=ee,ne=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("li",{staticClass:"el-dropdown-menu__item",class:{"is-disabled":e.disabled,"el-dropdown-menu__item--divided":e.divided},attrs:{"aria-disabled":e.disabled,tabindex:e.disabled?null:-1},on:{click:e.handleClick}},[e.icon?n("i",{class:e.icon}):e._e(),e._t("default")],2)};ne._withStripped=!0;var re=i({name:"ElDropdownItem",mixins:[C.a],props:{command:{},disabled:Boolean,divided:Boolean,icon:String},methods:{handleClick:function(e){this.dispatch("ElDropdown","menu-item-click",[this.command,this])}}},ne,[],!1,null,null,null);re.options.__file="packages/dropdown/src/dropdown-item.vue";var ie=re.exports;ie.install=function(e){e.component(ie.name,ie)};var ae=ie,oe=oe||{};oe.Utils=oe.Utils||{},oe.Utils.focusFirstDescendant=function(e){for(var t=0;t<e.childNodes.length;t++){var n=e.childNodes[t];if(oe.Utils.attemptFocus(n)||oe.Utils.focusFirstDescendant(n))return!0}return!1},oe.Utils.focusLastDescendant=function(e){for(var t=e.childNodes.length-1;t>=0;t--){var n=e.childNodes[t];if(oe.Utils.attemptFocus(n)||oe.Utils.focusLastDescendant(n))return!0}return!1},oe.Utils.attemptFocus=function(e){if(!oe.Utils.isFocusable(e))return!1;oe.Utils.IgnoreUtilFocusChanges=!0;try{e.focus()}catch(e){}return oe.Utils.IgnoreUtilFocusChanges=!1,document.activeElement===e},oe.Utils.isFocusable=function(e){if(e.tabIndex>0||0===e.tabIndex&&null!==e.getAttribute("tabIndex"))return!0;if(e.disabled)return!1;switch(e.nodeName){case"A":return!!e.href&&"ignore"!==e.rel;case"INPUT":return"hidden"!==e.type&&"file"!==e.type;case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},oe.Utils.triggerEvent=function(e,t){var n=void 0;n=/^mouse|click/.test(t)?"MouseEvents":/^key/.test(t)?"KeyboardEvent":"HTMLEvents";for(var r=document.createEvent(n),i=arguments.length,a=Array(i>2?i-2:0),o=2;o<i;o++)a[o-2]=arguments[o];return r.initEvent.apply(r,[t].concat(a)),e.dispatchEvent?e.dispatchEvent(r):e.fireEvent("on"+t,r),e},oe.Utils.keys={tab:9,enter:13,space:32,left:37,up:38,right:39,down:40,esc:27};var se=oe.Utils,le=function(e,t){this.domNode=t,this.parent=e,this.subMenuItems=[],this.subIndex=0,this.init()};le.prototype.init=function(){this.subMenuItems=this.domNode.querySelectorAll("li"),this.addListeners()},le.prototype.gotoSubIndex=function(e){e===this.subMenuItems.length?e=0:e<0&&(e=this.subMenuItems.length-1),this.subMenuItems[e].focus(),this.subIndex=e},le.prototype.addListeners=function(){var e=this,t=se.keys,n=this.parent.domNode;Array.prototype.forEach.call(this.subMenuItems,function(r){r.addEventListener("keydown",function(r){var i=!1;switch(r.keyCode){case t.down:e.gotoSubIndex(e.subIndex+1),i=!0;break;case t.up:e.gotoSubIndex(e.subIndex-1),i=!0;break;case t.tab:se.triggerEvent(n,"mouseleave");break;case t.enter:case t.space:i=!0,r.currentTarget.click()}return i&&(r.preventDefault(),r.stopPropagation()),!1})})};var ce=le,ue=function(e){this.domNode=e,this.submenu=null,this.init()};ue.prototype.init=function(){this.domNode.setAttribute("tabindex","0");var e=this.domNode.querySelector(".el-menu");e&&(this.submenu=new ce(this,e)),this.addListeners()},ue.prototype.addListeners=function(){var e=this,t=se.keys;this.domNode.addEventListener("keydown",function(n){var r=!1;switch(n.keyCode){case t.down:se.triggerEvent(n.currentTarget,"mouseenter"),e.submenu&&e.submenu.gotoSubIndex(0),r=!0;break;case t.up:se.triggerEvent(n.currentTarget,"mouseenter"),e.submenu&&e.submenu.gotoSubIndex(e.submenu.subMenuItems.length-1),r=!0;break;case t.tab:se.triggerEvent(n.currentTarget,"mouseleave");break;case t.enter:case t.space:r=!0,n.currentTarget.click()}r&&n.preventDefault()})};var he=ue,de=function(e){this.domNode=e,this.init()};de.prototype.init=function(){var e=this.domNode.childNodes;[].filter.call(e,function(e){return 1===e.nodeType}).forEach(function(e){new he(e)})};var fe=de,pe=n(1),Ae=i({name:"ElMenu",render:function(e){var t=e("ul",{attrs:{role:"menubar"},key:+this.collapse,style:{backgroundColor:this.backgroundColor||""},class:{"el-menu--horizontal":"horizontal"===this.mode,"el-menu--collapse":this.collapse,"el-menu":!0}},[this.$slots.default]);return this.collapseTransition?e("el-menu-collapse-transition",[t]):t},componentName:"ElMenu",mixins:[C.a,x.a],provide:function(){return{rootMenu:this}},components:{"el-menu-collapse-transition":{functional:!0,render:function(e,t){return e("transition",{props:{mode:"out-in"},on:{beforeEnter:function(e){e.style.opacity=.2},enter:function(e){Object(pe.addClass)(e,"el-opacity-transition"),e.style.opacity=1},afterEnter:function(e){Object(pe.removeClass)(e,"el-opacity-transition"),e.style.opacity=""},beforeLeave:function(e){e.dataset||(e.dataset={}),Object(pe.hasClass)(e,"el-menu--collapse")?(Object(pe.removeClass)(e,"el-menu--collapse"),e.dataset.oldOverflow=e.style.overflow,e.dataset.scrollWidth=e.clientWidth,Object(pe.addClass)(e,"el-menu--collapse")):(Object(pe.addClass)(e,"el-menu--collapse"),e.dataset.oldOverflow=e.style.overflow,e.dataset.scrollWidth=e.clientWidth,Object(pe.removeClass)(e,"el-menu--collapse")),e.style.width=e.scrollWidth+"px",e.style.overflow="hidden"},leave:function(e){Object(pe.addClass)(e,"horizontal-collapse-transition"),e.style.width=e.dataset.scrollWidth+"px"}}},t.children)}}},props:{mode:{type:String,default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:Array,uniqueOpened:Boolean,router:Boolean,menuTrigger:{type:String,default:"hover"},collapse:Boolean,backgroundColor:String,textColor:String,activeTextColor:String,collapseTransition:{type:Boolean,default:!0}},data:function(){return{activeIndex:this.defaultActive,openedMenus:this.defaultOpeneds&&!this.collapse?this.defaultOpeneds.slice(0):[],items:{},submenus:{}}},computed:{hoverBackground:function(){return this.backgroundColor?this.mixColor(this.backgroundColor,.2):""},isMenuPopup:function(){return"horizontal"===this.mode||"vertical"===this.mode&&this.collapse}},watch:{defaultActive:function(e){this.items[e]||(this.activeIndex=null),this.updateActiveIndex(e)},defaultOpeneds:function(e){this.collapse||(this.openedMenus=e)},collapse:function(e){e&&(this.openedMenus=[]),this.broadcast("ElSubmenu","toggle-collapse",e)}},methods:{updateActiveIndex:function(e){var t=this.items[e]||this.items[this.activeIndex]||this.items[this.defaultActive];t?(this.activeIndex=t.index,this.initOpenedMenu()):this.activeIndex=null},getMigratingConfig:function(){return{props:{theme:"theme is removed."}}},getColorChannels:function(e){if(e=e.replace("#",""),/^[0-9a-fA-F]{3}$/.test(e)){e=e.split("");for(var t=2;t>=0;t--)e.splice(t,0,e[t]);e=e.join("")}return/^[0-9a-fA-F]{6}$/.test(e)?{red:parseInt(e.slice(0,2),16),green:parseInt(e.slice(2,4),16),blue:parseInt(e.slice(4,6),16)}:{red:255,green:255,blue:255}},mixColor:function(e,t){var n=this.getColorChannels(e),r=n.red,i=n.green,a=n.blue;return t>0?(r*=1-t,i*=1-t,a*=1-t):(r+=(255-r)*t,i+=(255-i)*t,a+=(255-a)*t),"rgb("+Math.round(r)+", "+Math.round(i)+", "+Math.round(a)+")"},addItem:function(e){this.$set(this.items,e.index,e)},removeItem:function(e){delete this.items[e.index]},addSubmenu:function(e){this.$set(this.submenus,e.index,e)},removeSubmenu:function(e){delete this.submenus[e.index]},openMenu:function(e,t){var n=this.openedMenus;-1===n.indexOf(e)&&(this.uniqueOpened&&(this.openedMenus=n.filter(function(e){return-1!==t.indexOf(e)})),this.openedMenus.push(e))},closeMenu:function(e){var t=this.openedMenus.indexOf(e);-1!==t&&this.openedMenus.splice(t,1)},handleSubmenuClick:function(e){var t=e.index,n=e.indexPath;-1!==this.openedMenus.indexOf(t)?(this.closeMenu(t),this.$emit("close",t,n)):(this.openMenu(t,n),this.$emit("open",t,n))},handleItemClick:function(e){var t=this,n=e.index,r=e.indexPath,i=this.activeIndex,a=null!==e.index;a&&(this.activeIndex=e.index),this.$emit("select",n,r,e),("horizontal"===this.mode||this.collapse)&&(this.openedMenus=[]),this.router&&a&&this.routeToItem(e,function(e){if(t.activeIndex=i,e){if("NavigationDuplicated"===e.name)return;console.error(e)}})},initOpenedMenu:function(){var e=this,t=this.activeIndex,n=this.items[t];n&&"horizontal"!==this.mode&&!this.collapse&&n.indexPath.forEach(function(t){var n=e.submenus[t];n&&e.openMenu(t,n.indexPath)})},routeToItem:function(e,t){var n=e.route||e.index;try{this.$router.push(n,function(){},t)}catch(e){console.error(e)}},open:function(e){var t=this,n=this.submenus[e.toString()].indexPath;n.forEach(function(e){return t.openMenu(e,n)})},close:function(e){this.closeMenu(e)}},mounted:function(){this.initOpenedMenu(),this.$on("item-click",this.handleItemClick),this.$on("submenu-click",this.handleSubmenuClick),"horizontal"===this.mode&&new fe(this.$el),this.$watch("items",this.updateActiveIndex)}},void 0,void 0,!1,null,null,null);Ae.options.__file="packages/menu/src/menu.vue";var ge=Ae.exports;ge.install=function(e){e.component(ge.name,ge)};var me=ge,ve=n(21),ye=n.n(ve),be={inject:["rootMenu"],computed:{indexPath:function(){for(var e=[this.index],t=this.$parent;"ElMenu"!==t.$options.componentName;)t.index&&e.unshift(t.index),t=t.$parent;return e},parentMenu:function(){for(var e=this.$parent;e&&-1===["ElMenu","ElSubmenu"].indexOf(e.$options.componentName);)e=e.$parent;return e},paddingStyle:function(){if("vertical"!==this.rootMenu.mode)return{};var e=20,t=this.$parent;if(this.rootMenu.collapse)e=20;else for(;t&&"ElMenu"!==t.$options.componentName;)"ElSubmenu"===t.$options.componentName&&(e+=20),t=t.$parent;return{paddingLeft:e+"px"}}}},we={props:{transformOrigin:{type:[Boolean,String],default:!1},offset:O.a.props.offset,boundariesPadding:O.a.props.boundariesPadding,popperOptions:O.a.props.popperOptions},data:O.a.data,methods:O.a.methods,beforeDestroy:O.a.beforeDestroy,deactivated:O.a.deactivated},xe=i({name:"ElSubmenu",componentName:"ElSubmenu",mixins:[be,C.a,we],components:{ElCollapseTransition:ye.a},props:{index:{type:String,required:!0},showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300},popperClass:String,disabled:Boolean,popperAppendToBody:{type:Boolean,default:void 0}},data:function(){return{popperJS:null,timeout:null,items:{},submenus:{},mouseInChild:!1}},watch:{opened:function(e){var t=this;this.isMenuPopup&&this.$nextTick(function(e){t.updatePopper()})}},computed:{appendToBody:function(){return void 0===this.popperAppendToBody?this.isFirstLevel:this.popperAppendToBody},menuTransitionName:function(){return this.rootMenu.collapse?"el-zoom-in-left":"el-zoom-in-top"},opened:function(){return this.rootMenu.openedMenus.indexOf(this.index)>-1},active:function(){var e=!1,t=this.submenus,n=this.items;return Object.keys(n).forEach(function(t){n[t].active&&(e=!0)}),Object.keys(t).forEach(function(n){t[n].active&&(e=!0)}),e},hoverBackground:function(){return this.rootMenu.hoverBackground},backgroundColor:function(){return this.rootMenu.backgroundColor||""},activeTextColor:function(){return this.rootMenu.activeTextColor||""},textColor:function(){return this.rootMenu.textColor||""},mode:function(){return this.rootMenu.mode},isMenuPopup:function(){return this.rootMenu.isMenuPopup},titleStyle:function(){return"horizontal"!==this.mode?{color:this.textColor}:{borderBottomColor:this.active?this.rootMenu.activeTextColor?this.activeTextColor:"":"transparent",color:this.active?this.activeTextColor:this.textColor}},isFirstLevel:function(){for(var e=!0,t=this.$parent;t&&t!==this.rootMenu;){if(["ElSubmenu","ElMenuItemGroup"].indexOf(t.$options.componentName)>-1){e=!1;break}t=t.$parent}return e}},methods:{handleCollapseToggle:function(e){e?this.initPopper():this.doDestroy()},addItem:function(e){this.$set(this.items,e.index,e)},removeItem:function(e){delete this.items[e.index]},addSubmenu:function(e){this.$set(this.submenus,e.index,e)},removeSubmenu:function(e){delete this.submenus[e.index]},handleClick:function(){var e=this.rootMenu,t=this.disabled;"hover"===e.menuTrigger&&"horizontal"===e.mode||e.collapse&&"vertical"===e.mode||t||this.dispatch("ElMenu","submenu-click",this)},handleMouseenter:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.showTimeout;if("ActiveXObject"in window||"focus"!==e.type||e.relatedTarget){var r=this.rootMenu,i=this.disabled;"click"===r.menuTrigger&&"horizontal"===r.mode||!r.collapse&&"vertical"===r.mode||i||(this.dispatch("ElSubmenu","mouse-enter-child"),clearTimeout(this.timeout),this.timeout=setTimeout(function(){t.rootMenu.openMenu(t.index,t.indexPath)},n),this.appendToBody&&this.$parent.$el.dispatchEvent(new MouseEvent("mouseenter")))}},handleMouseleave:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=this.rootMenu;"click"===n.menuTrigger&&"horizontal"===n.mode||!n.collapse&&"vertical"===n.mode||(this.dispatch("ElSubmenu","mouse-leave-child"),clearTimeout(this.timeout),this.timeout=setTimeout(function(){!e.mouseInChild&&e.rootMenu.closeMenu(e.index)},this.hideTimeout),this.appendToBody&&t&&"ElSubmenu"===this.$parent.$options.name&&this.$parent.handleMouseleave(!0))},handleTitleMouseenter:function(){if("horizontal"!==this.mode||this.rootMenu.backgroundColor){var e=this.$refs["submenu-title"];e&&(e.style.backgroundColor=this.rootMenu.hoverBackground)}},handleTitleMouseleave:function(){if("horizontal"!==this.mode||this.rootMenu.backgroundColor){var e=this.$refs["submenu-title"];e&&(e.style.backgroundColor=this.rootMenu.backgroundColor||"")}},updatePlacement:function(){this.currentPlacement="horizontal"===this.mode&&this.isFirstLevel?"bottom-start":"right-start"},initPopper:function(){this.referenceElm=this.$el,this.popperElm=this.$refs.menu,this.updatePlacement()}},created:function(){var e=this;this.$on("toggle-collapse",this.handleCollapseToggle),this.$on("mouse-enter-child",function(){e.mouseInChild=!0,clearTimeout(e.timeout)}),this.$on("mouse-leave-child",function(){e.mouseInChild=!1,clearTimeout(e.timeout)})},mounted:function(){this.parentMenu.addSubmenu(this),this.rootMenu.addSubmenu(this),this.initPopper()},beforeDestroy:function(){this.parentMenu.removeSubmenu(this),this.rootMenu.removeSubmenu(this)},render:function(e){var t=this,n=this.active,r=this.opened,i=this.paddingStyle,a=this.titleStyle,o=this.backgroundColor,s=this.rootMenu,l=this.currentPlacement,c=this.menuTransitionName,u=this.mode,h=this.disabled,d=this.popperClass,f=this.$slots,p=this.isFirstLevel,A=e("transition",{attrs:{name:c}},[e("div",{ref:"menu",directives:[{name:"show",value:r}],class:["el-menu--"+u,d],on:{mouseenter:function(e){return t.handleMouseenter(e,100)},mouseleave:function(){return t.handleMouseleave(!0)},focus:function(e){return t.handleMouseenter(e,100)}}},[e("ul",{attrs:{role:"menu"},class:["el-menu el-menu--popup","el-menu--popup-"+l],style:{backgroundColor:s.backgroundColor||""}},[f.default])])]),g=e("el-collapse-transition",[e("ul",{attrs:{role:"menu"},class:"el-menu el-menu--inline",directives:[{name:"show",value:r}],style:{backgroundColor:s.backgroundColor||""}},[f.default])]),m="horizontal"===s.mode&&p||"vertical"===s.mode&&!s.collapse?"el-icon-arrow-down":"el-icon-arrow-right";return e("li",{class:{"el-submenu":!0,"is-active":n,"is-opened":r,"is-disabled":h},attrs:{role:"menuitem","aria-haspopup":"true","aria-expanded":r},on:{mouseenter:this.handleMouseenter,mouseleave:function(){return t.handleMouseleave(!1)},focus:this.handleMouseenter}},[e("div",{class:"el-submenu__title",ref:"submenu-title",on:{click:this.handleClick,mouseenter:this.handleTitleMouseenter,mouseleave:this.handleTitleMouseleave},style:[i,a,{backgroundColor:o}]},[f.title,e("i",{class:["el-submenu__icon-arrow",m]})]),this.isMenuPopup?A:g])}},void 0,void 0,!1,null,null,null);xe.options.__file="packages/menu/src/submenu.vue";var _e=xe.exports;_e.install=function(e){e.component(_e.name,_e)};var Ce=_e,Se=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("li",{staticClass:"el-menu-item",class:{"is-active":e.active,"is-disabled":e.disabled},style:[e.paddingStyle,e.itemStyle,{backgroundColor:e.backgroundColor}],attrs:{role:"menuitem",tabindex:"-1"},on:{click:e.handleClick,mouseenter:e.onMouseEnter,focus:e.onMouseEnter,blur:e.onMouseLeave,mouseleave:e.onMouseLeave}},["ElMenu"===e.parentMenu.$options.componentName&&e.rootMenu.collapse&&e.$slots.title?n("el-tooltip",{attrs:{effect:"dark",placement:"right"}},[n("div",{attrs:{slot:"content"},slot:"content"},[e._t("title")],2),n("div",{staticStyle:{position:"absolute",left:"0",top:"0",height:"100%",width:"100%",display:"inline-block","box-sizing":"border-box",padding:"0 20px"}},[e._t("default")],2)]):[e._t("default"),e._t("title")]],2)};Se._withStripped=!0;var ke=n(26),Be=n.n(ke),Ee=i({name:"ElMenuItem",componentName:"ElMenuItem",mixins:[be,C.a],components:{ElTooltip:Be.a},props:{index:{default:null,validator:function(e){return"string"==typeof e||null===e}},route:[String,Object],disabled:Boolean},computed:{active:function(){return this.index===this.rootMenu.activeIndex},hoverBackground:function(){return this.rootMenu.hoverBackground},backgroundColor:function(){return this.rootMenu.backgroundColor||""},activeTextColor:function(){return this.rootMenu.activeTextColor||""},textColor:function(){return this.rootMenu.textColor||""},mode:function(){return this.rootMenu.mode},itemStyle:function(){var e={color:this.active?this.activeTextColor:this.textColor};return"horizontal"!==this.mode||this.isNested||(e.borderBottomColor=this.active?this.rootMenu.activeTextColor?this.activeTextColor:"":"transparent"),e},isNested:function(){return this.parentMenu!==this.rootMenu}},methods:{onMouseEnter:function(){("horizontal"!==this.mode||this.rootMenu.backgroundColor)&&(this.$el.style.backgroundColor=this.hoverBackground)},onMouseLeave:function(){("horizontal"!==this.mode||this.rootMenu.backgroundColor)&&(this.$el.style.backgroundColor=this.backgroundColor)},handleClick:function(){this.disabled||(this.dispatch("ElMenu","item-click",this),this.$emit("click",this))}},mounted:function(){this.parentMenu.addItem(this),this.rootMenu.addItem(this)},beforeDestroy:function(){this.parentMenu.removeItem(this),this.rootMenu.removeItem(this)}},Se,[],!1,null,null,null);Ee.options.__file="packages/menu/src/menu-item.vue";var Te=Ee.exports;Te.install=function(e){e.component(Te.name,Te)};var Ie=Te,Me=function(){var e=this.$createElement,t=this._self._c||e;return t("li",{staticClass:"el-menu-item-group"},[t("div",{staticClass:"el-menu-item-group__title",style:{paddingLeft:this.levelPadding+"px"}},[this.$slots.title?this._t("title"):[this._v(this._s(this.title))]],2),t("ul",[this._t("default")],2)])};Me._withStripped=!0;var Fe=i({name:"ElMenuItemGroup",componentName:"ElMenuItemGroup",inject:["rootMenu"],props:{title:{type:String}},data:function(){return{paddingLeft:20}},computed:{levelPadding:function(){var e=20,t=this.$parent;if(this.rootMenu.collapse)return 20;for(;t&&"ElMenu"!==t.$options.componentName;)"ElSubmenu"===t.$options.componentName&&(e+=20),t=t.$parent;return e}}},Me,[],!1,null,null,null);Fe.options.__file="packages/menu/src/menu-item-group.vue";var De=Fe.exports;De.install=function(e){e.component(De.name,De)};var Pe=De,Oe=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:["textarea"===e.type?"el-textarea":"el-input",e.inputSize?"el-input--"+e.inputSize:"",{"is-disabled":e.inputDisabled,"is-exceed":e.inputExceed,"el-input-group":e.$slots.prepend||e.$slots.append,"el-input-group--append":e.$slots.append,"el-input-group--prepend":e.$slots.prepend,"el-input--prefix":e.$slots.prefix||e.prefixIcon,"el-input--suffix":e.$slots.suffix||e.suffixIcon||e.clearable||e.showPassword}],on:{mouseenter:function(t){e.hovering=!0},mouseleave:function(t){e.hovering=!1}}},["textarea"!==e.type?[e.$slots.prepend?n("div",{staticClass:"el-input-group__prepend"},[e._t("prepend")],2):e._e(),"textarea"!==e.type?n("input",e._b({ref:"input",staticClass:"el-input__inner",attrs:{tabindex:e.tabindex,type:e.showPassword?e.passwordVisible?"text":"password":e.type,disabled:e.inputDisabled,readonly:e.readonly,autocomplete:e.autoComplete||e.autocomplete,"aria-label":e.label},on:{compositionstart:e.handleCompositionStart,compositionupdate:e.handleCompositionUpdate,compositionend:e.handleCompositionEnd,input:e.handleInput,focus:e.handleFocus,blur:e.handleBlur,change:e.handleChange}},"input",e.$attrs,!1)):e._e(),e.$slots.prefix||e.prefixIcon?n("span",{staticClass:"el-input__prefix"},[e._t("prefix"),e.prefixIcon?n("i",{staticClass:"el-input__icon",class:e.prefixIcon}):e._e()],2):e._e(),e.getSuffixVisible()?n("span",{staticClass:"el-input__suffix"},[n("span",{staticClass:"el-input__suffix-inner"},[e.showClear&&e.showPwdVisible&&e.isWordLimitVisible?e._e():[e._t("suffix"),e.suffixIcon?n("i",{staticClass:"el-input__icon",class:e.suffixIcon}):e._e()],e.showClear?n("i",{staticClass:"el-input__icon el-icon-circle-close el-input__clear",on:{mousedown:function(e){e.preventDefault()},click:e.clear}}):e._e(),e.showPwdVisible?n("i",{staticClass:"el-input__icon el-icon-view el-input__clear",on:{click:e.handlePasswordVisible}}):e._e(),e.isWordLimitVisible?n("span",{staticClass:"el-input__count"},[n("span",{staticClass:"el-input__count-inner"},[e._v("\n "+e._s(e.textLength)+"/"+e._s(e.upperLimit)+"\n ")])]):e._e()],2),e.validateState?n("i",{staticClass:"el-input__icon",class:["el-input__validateIcon",e.validateIcon]}):e._e()]):e._e(),e.$slots.append?n("div",{staticClass:"el-input-group__append"},[e._t("append")],2):e._e()]:n("textarea",e._b({ref:"textarea",staticClass:"el-textarea__inner",style:e.textareaStyle,attrs:{tabindex:e.tabindex,disabled:e.inputDisabled,readonly:e.readonly,autocomplete:e.autoComplete||e.autocomplete,"aria-label":e.label},on:{compositionstart:e.handleCompositionStart,compositionupdate:e.handleCompositionUpdate,compositionend:e.handleCompositionEnd,input:e.handleInput,focus:e.handleFocus,blur:e.handleBlur,change:e.handleChange}},"textarea",e.$attrs,!1)),e.isWordLimitVisible&&"textarea"===e.type?n("span",{staticClass:"el-input__count"},[e._v(e._s(e.textLength)+"/"+e._s(e.upperLimit))]):e._e()],2)};Oe._withStripped=!0;var Le=void 0,Re="\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",Ne=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function Ue(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;Le||(Le=document.createElement("textarea"),document.body.appendChild(Le));var r=function(e){var t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),r=parseFloat(t.getPropertyValue("padding-bottom"))+parseFloat(t.getPropertyValue("padding-top")),i=parseFloat(t.getPropertyValue("border-bottom-width"))+parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:Ne.map(function(e){return e+":"+t.getPropertyValue(e)}).join(";"),paddingSize:r,borderSize:i,boxSizing:n}}(e),i=r.paddingSize,a=r.borderSize,o=r.boxSizing,s=r.contextStyle;Le.setAttribute("style",s+";"+Re),Le.value=e.value||e.placeholder||"";var l=Le.scrollHeight,c={};"border-box"===o?l+=a:"content-box"===o&&(l-=i),Le.value="";var u=Le.scrollHeight-i;if(null!==t){var h=u*t;"border-box"===o&&(h=h+i+a),l=Math.max(h,l),c.minHeight=h+"px"}if(null!==n){var d=u*n;"border-box"===o&&(d=d+i+a),l=Math.min(d,l)}return c.height=l+"px",Le.parentNode&&Le.parentNode.removeChild(Le),Le=null,c}var He=n(7),je=n.n(He),Qe=n(19),ze=i({name:"ElInput",componentName:"ElInput",mixins:[C.a,x.a],inheritAttrs:!1,inject:{elForm:{default:""},elFormItem:{default:""}},data:function(){return{textareaCalcStyle:{},hovering:!1,focused:!1,isComposing:!1,passwordVisible:!1}},props:{value:[String,Number],size:String,resize:String,form:String,disabled:Boolean,readonly:Boolean,type:{type:String,default:"text"},autosize:{type:[Boolean,Object],default:!1},autocomplete:{type:String,default:"off"},autoComplete:{type:String,validator:function(e){return!0}},validateEvent:{type:Boolean,default:!0},suffixIcon:String,prefixIcon:String,label:String,clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},tabindex:String},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},validateState:function(){return this.elFormItem?this.elFormItem.validateState:""},needStatusIcon:function(){return!!this.elForm&&this.elForm.statusIcon},validateIcon:function(){return{validating:"el-icon-loading",success:"el-icon-circle-check",error:"el-icon-circle-close"}[this.validateState]},textareaStyle:function(){return je()({},this.textareaCalcStyle,{resize:this.resize})},inputSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},inputDisabled:function(){return this.disabled||(this.elForm||{}).disabled},nativeInputValue:function(){return null===this.value||void 0===this.value?"":String(this.value)},showClear:function(){return this.clearable&&!this.inputDisabled&&!this.readonly&&this.nativeInputValue&&(this.focused||this.hovering)},showPwdVisible:function(){return this.showPassword&&!this.inputDisabled&&!this.readonly&&(!!this.nativeInputValue||this.focused)},isWordLimitVisible:function(){return this.showWordLimit&&this.$attrs.maxlength&&("text"===this.type||"textarea"===this.type)&&!this.inputDisabled&&!this.readonly&&!this.showPassword},upperLimit:function(){return this.$attrs.maxlength},textLength:function(){return"number"==typeof this.value?String(this.value).length:(this.value||"").length},inputExceed:function(){return this.isWordLimitVisible&&this.textLength>this.upperLimit}},watch:{value:function(e){this.$nextTick(this.resizeTextarea),this.validateEvent&&this.dispatch("ElFormItem","el.form.change",[e])},nativeInputValue:function(){this.setNativeInputValue()},type:function(){var e=this;this.$nextTick(function(){e.setNativeInputValue(),e.resizeTextarea(),e.updateIconOffset()})}},methods:{focus:function(){this.getInput().focus()},blur:function(){this.getInput().blur()},getMigratingConfig:function(){return{props:{icon:"icon is removed, use suffix-icon / prefix-icon instead.","on-icon-click":"on-icon-click is removed."},events:{click:"click is removed."}}},handleBlur:function(e){this.focused=!1,this.$emit("blur",e),this.validateEvent&&this.dispatch("ElFormItem","el.form.blur",[this.value])},select:function(){this.getInput().select()},resizeTextarea:function(){if(!this.$isServer){var e=this.autosize;if("textarea"===this.type)if(e){var t=e.minRows,n=e.maxRows;this.textareaCalcStyle=Ue(this.$refs.textarea,t,n)}else this.textareaCalcStyle={minHeight:Ue(this.$refs.textarea).minHeight}}},setNativeInputValue:function(){var e=this.getInput();e&&e.value!==this.nativeInputValue&&(e.value=this.nativeInputValue)},handleFocus:function(e){this.focused=!0,this.$emit("focus",e)},handleCompositionStart:function(){this.isComposing=!0},handleCompositionUpdate:function(e){var t=e.target.value,n=t[t.length-1]||"";this.isComposing=!Object(Qe.isKorean)(n)},handleCompositionEnd:function(e){this.isComposing&&(this.isComposing=!1,this.handleInput(e))},handleInput:function(e){this.isComposing||e.target.value!==this.nativeInputValue&&(this.$emit("input",e.target.value),this.$nextTick(this.setNativeInputValue))},handleChange:function(e){this.$emit("change",e.target.value)},calcIconOffset:function(e){var t=[].slice.call(this.$el.querySelectorAll(".el-input__"+e)||[]);if(t.length){for(var n=null,r=0;r<t.length;r++)if(t[r].parentNode===this.$el){n=t[r];break}if(n){var i={suffix:"append",prefix:"prepend"}[e];this.$slots[i]?n.style.transform="translateX("+("suffix"===e?"-":"")+this.$el.querySelector(".el-input-group__"+i).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(){this.passwordVisible=!this.passwordVisible,this.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)}},Oe,[],!1,null,null,null);ze.options.__file="packages/input/src/input.vue";var Ve=ze.exports;Ve.install=function(e){e.component(Ve.name,Ve)};var Ge=Ve,$e=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:["el-input-number",e.inputNumberSize?"el-input-number--"+e.inputNumberSize:"",{"is-disabled":e.inputNumberDisabled},{"is-without-controls":!e.controls},{"is-controls-right":e.controlsAtRight}],on:{dragstart:function(e){e.preventDefault()}}},[e.controls?n("span",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:e.decrease,expression:"decrease"}],staticClass:"el-input-number__decrease",class:{"is-disabled":e.minDisabled},attrs:{role:"button"},on:{keydown:function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?e.decrease(t):null}}},[n("i",{class:"el-icon-"+(e.controlsAtRight?"arrow-down":"minus")})]):e._e(),e.controls?n("span",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:e.increase,expression:"increase"}],staticClass:"el-input-number__increase",class:{"is-disabled":e.maxDisabled},attrs:{role:"button"},on:{keydown:function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?e.increase(t):null}}},[n("i",{class:"el-icon-"+(e.controlsAtRight?"arrow-up":"plus")})]):e._e(),n("el-input",{ref:"input",attrs:{value:e.displayValue,placeholder:e.placeholder,disabled:e.inputNumberDisabled,size:e.inputNumberSize,max:e.max,min:e.min,name:e.name,label:e.label},on:{blur:e.handleBlur,focus:e.handleFocus,input:e.handleInput,change:e.handleInputChange},nativeOn:{keydown:[function(t){return"button"in t||!e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"])?(t.preventDefault(),e.increase(t)):null},function(t){return"button"in t||!e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?(t.preventDefault(),e.decrease(t)):null}]}})],1)};$e._withStripped=!0;var qe={bind:function(e,t,n){var r=null,i=void 0,a=function(){return n.context[t.expression].apply()},o=function(){Date.now()-i<100&&a(),clearInterval(r),r=null};Object(pe.on)(e,"mousedown",function(e){0===e.button&&(i=Date.now(),Object(pe.once)(document,"mouseup",o),clearInterval(r),r=setInterval(a,100))})}},We=i({name:"ElInputNumber",mixins:[j()("input")],inject:{elForm:{default:""},elFormItem:{default:""}},directives:{repeatClick:qe},components:{ElInput:d.a},props:{step:{type:Number,default:1},stepStrictly:{type:Boolean,default:!1},max:{type:Number,default:1/0},min:{type:Number,default:-1/0},value:{},disabled:Boolean,size:String,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:""},name:String,label:String,placeholder:String,precision:{type:Number,validator:function(e){return e>=0&&e===parseInt(e,10)}}},data:function(){return{currentValue:0,userInput:null}},watch:{value:{immediate:!0,handler:function(e){var t=void 0===e?e:Number(e);if(void 0!==t){if(isNaN(t))return;if(this.stepStrictly){var n=this.getPrecision(this.step),r=Math.pow(10,n);t=Math.round(t/this.step)*r*this.step/r}void 0!==this.precision&&(t=this.toPrecision(t,this.precision))}t>=this.max&&(t=this.max),t<=this.min&&(t=this.min),this.currentValue=t,this.userInput=null,this.$emit("input",t)}}},computed:{minDisabled:function(){return this._decrease(this.value,this.step)<this.min},maxDisabled:function(){return this._increase(this.value,this.step)>this.max},numPrecision:function(){var e=this.value,t=this.step,n=this.getPrecision,r=this.precision,i=n(t);return void 0!==r?(i>r&&console.warn("[Element Warn][InputNumber]precision should not be less than the decimal places of step"),r):Math.max(n(e),i)},controlsAtRight:function(){return this.controls&&"right"===this.controlsPosition},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},inputNumberSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},inputNumberDisabled:function(){return this.disabled||!!(this.elForm||{}).disabled},displayValue:function(){if(null!==this.userInput)return this.userInput;var e=this.currentValue;if("number"==typeof e){if(this.stepStrictly){var t=this.getPrecision(this.step),n=Math.pow(10,t);e=Math.round(e/this.step)*n*this.step/n}void 0!==this.precision&&(e=e.toFixed(this.precision))}return e}},methods:{toPrecision:function(e,t){return void 0===t&&(t=this.numPrecision),parseFloat(Math.round(e*Math.pow(10,t))/Math.pow(10,t))},getPrecision:function(e){if(void 0===e)return 0;var t=e.toString(),n=t.indexOf("."),r=0;return-1!==n&&(r=t.length-n-1),r},_increase:function(e,t){if("number"!=typeof e&&void 0!==e)return this.currentValue;var n=Math.pow(10,this.numPrecision);return this.toPrecision((n*e+n*t)/n)},_decrease:function(e,t){if("number"!=typeof e&&void 0!==e)return this.currentValue;var n=Math.pow(10,this.numPrecision);return this.toPrecision((n*e-n*t)/n)},increase:function(){if(!this.inputNumberDisabled&&!this.maxDisabled){var e=this.value||0,t=this._increase(e,this.step);this.setCurrentValue(t)}},decrease:function(){if(!this.inputNumberDisabled&&!this.minDisabled){var e=this.value||0,t=this._decrease(e,this.step);this.setCurrentValue(t)}},handleBlur:function(e){this.$emit("blur",e)},handleFocus:function(e){this.$emit("focus",e)},setCurrentValue:function(e){var t=this.currentValue;"number"==typeof e&&void 0!==this.precision&&(e=this.toPrecision(e,this.precision)),e>=this.max&&(e=this.max),e<=this.min&&(e=this.min),t!==e&&(this.userInput=null,this.$emit("input",e),this.$emit("change",e,t),this.currentValue=e)},handleInput:function(e){this.userInput=e},handleInputChange:function(e){var t=""===e?void 0:Number(e);isNaN(t)&&""!==e||this.setCurrentValue(t),this.userInput=null},select:function(){this.$refs.input.select()}},mounted:function(){var e=this.$refs.input.$refs.input;e.setAttribute("role","spinbutton"),e.setAttribute("aria-valuemax",this.max),e.setAttribute("aria-valuemin",this.min),e.setAttribute("aria-valuenow",this.currentValue),e.setAttribute("aria-disabled",this.inputNumberDisabled)},updated:function(){this.$refs&&this.$refs.input&&this.$refs.input.$refs.input.setAttribute("aria-valuenow",this.currentValue)}},$e,[],!1,null,null,null);We.options.__file="packages/input-number/src/input-number.vue";var Ke=We.exports;Ke.install=function(e){e.component(Ke.name,Ke)};var Ye=Ke,Xe=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("label",{staticClass:"el-radio",class:[e.border&&e.radioSize?"el-radio--"+e.radioSize:"",{"is-disabled":e.isDisabled},{"is-focus":e.focus},{"is-bordered":e.border},{"is-checked":e.model===e.label}],attrs:{role:"radio","aria-checked":e.model===e.label,"aria-disabled":e.isDisabled,tabindex:e.tabIndex},on:{keydown:function(t){if(!("button"in t)&&e._k(t.keyCode,"space",32,t.key,[" ","Spacebar"]))return null;t.stopPropagation(),t.preventDefault(),e.model=e.isDisabled?e.model:e.label}}},[n("span",{staticClass:"el-radio__input",class:{"is-disabled":e.isDisabled,"is-checked":e.model===e.label}},[n("span",{staticClass:"el-radio__inner"}),n("input",{directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],ref:"radio",staticClass:"el-radio__original",attrs:{type:"radio","aria-hidden":"true",name:e.name,disabled:e.isDisabled,tabindex:"-1"},domProps:{value:e.label,checked:e._q(e.model,e.label)},on:{focus:function(t){e.focus=!0},blur:function(t){e.focus=!1},change:[function(t){e.model=e.label},e.handleChange]}})]),n("span",{staticClass:"el-radio__label",on:{keydown:function(e){e.stopPropagation()}}},[e._t("default"),e.$slots.default?e._e():[e._v(e._s(e.label))]],2)])};Xe._withStripped=!0;var Je=i({name:"ElRadio",mixins:[C.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 e=this.$parent;e;){if("ElRadioGroup"===e.$options.componentName)return this._radioGroup=e,!0;e=e.$parent}return!1},model:{get:function(){return this.isGroup?this._radioGroup.value:this.value},set:function(e){this.isGroup?this.dispatch("ElRadioGroup","input",[e]):this.$emit("input",e),this.$refs.radio&&(this.$refs.radio.checked=this.model===this.label)}},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},radioSize:function(){var e=this.size||this._elFormItemSize||(this.$ELEMENT||{}).size;return this.isGroup&&this._radioGroup.radioGroupSize||e},isDisabled:function(){return this.isGroup?this._radioGroup.disabled||this.disabled||(this.elForm||{}).disabled:this.disabled||(this.elForm||{}).disabled},tabIndex:function(){return this.isDisabled||this.isGroup&&this.model!==this.label?-1:0}},methods:{handleChange:function(){var e=this;this.$nextTick(function(){e.$emit("change",e.model),e.isGroup&&e.dispatch("ElRadioGroup","handleChange",e.model)})}}},Xe,[],!1,null,null,null);Je.options.__file="packages/radio/src/radio.vue";var Ze=Je.exports;Ze.install=function(e){e.component(Ze.name,Ze)};var et=Ze,tt=function(){var e=this.$createElement;return(this._self._c||e)(this._elTag,{tag:"component",staticClass:"el-radio-group",attrs:{role:"radiogroup"},on:{keydown:this.handleKeydown}},[this._t("default")],2)};tt._withStripped=!0;var nt=Object.freeze({LEFT:37,UP:38,RIGHT:39,DOWN:40}),rt=i({name:"ElRadioGroup",componentName:"ElRadioGroup",inject:{elFormItem:{default:""}},mixins:[C.a],props:{value:{},size:String,fill:String,textColor:String,disabled:Boolean},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},_elTag:function(){return(this.$vnode.data||{}).tag||"div"},radioGroupSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size}},created:function(){var e=this;this.$on("handleChange",function(t){e.$emit("change",t)})},mounted:function(){var e=this.$el.querySelectorAll("[type=radio]"),t=this.$el.querySelectorAll("[role=radio]")[0];![].some.call(e,function(e){return e.checked})&&t&&(t.tabIndex=0)},methods:{handleKeydown:function(e){var t=e.target,n="INPUT"===t.nodeName?"[type=radio]":"[role=radio]",r=this.$el.querySelectorAll(n),i=r.length,a=[].indexOf.call(r,t),o=this.$el.querySelectorAll("[role=radio]");switch(e.keyCode){case nt.LEFT:case nt.UP:e.stopPropagation(),e.preventDefault(),0===a?(o[i-1].click(),o[i-1].focus()):(o[a-1].click(),o[a-1].focus());break;case nt.RIGHT:case nt.DOWN:a===i-1?(e.stopPropagation(),e.preventDefault(),o[0].click(),o[0].focus()):(o[a+1].click(),o[a+1].focus())}}},watch:{value:function(e){this.dispatch("ElFormItem","el.form.change",[this.value])}}},tt,[],!1,null,null,null);rt.options.__file="packages/radio/src/radio-group.vue";var it=rt.exports;it.install=function(e){e.component(it.name,it)};var at=it,ot=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("label",{staticClass:"el-radio-button",class:[e.size?"el-radio-button--"+e.size:"",{"is-active":e.value===e.label},{"is-disabled":e.isDisabled},{"is-focus":e.focus}],attrs:{role:"radio","aria-checked":e.value===e.label,"aria-disabled":e.isDisabled,tabindex:e.tabIndex},on:{keydown:function(t){if(!("button"in t)&&e._k(t.keyCode,"space",32,t.key,[" ","Spacebar"]))return null;t.stopPropagation(),t.preventDefault(),e.value=e.isDisabled?e.value:e.label}}},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.value,expression:"value"}],staticClass:"el-radio-button__orig-radio",attrs:{type:"radio",name:e.name,disabled:e.isDisabled,tabindex:"-1"},domProps:{value:e.label,checked:e._q(e.value,e.label)},on:{change:[function(t){e.value=e.label},e.handleChange],focus:function(t){e.focus=!0},blur:function(t){e.focus=!1}}}),n("span",{staticClass:"el-radio-button__inner",style:e.value===e.label?e.activeStyle:null,on:{keydown:function(e){e.stopPropagation()}}},[e._t("default"),e.$slots.default?e._e():[e._v(e._s(e.label))]],2)])};ot._withStripped=!0;var st=i({name:"ElRadioButton",mixins:[C.a],inject:{elForm:{default:""},elFormItem:{default:""}},props:{label:{},disabled:Boolean,name:String},data:function(){return{focus:!1}},computed:{value:{get:function(){return this._radioGroup.value},set:function(e){this._radioGroup.$emit("input",e)}},_radioGroup:function(){for(var e=this.$parent;e;){if("ElRadioGroup"===e.$options.componentName)return e;e=e.$parent}return!1},activeStyle:function(){return{backgroundColor:this._radioGroup.fill||"",borderColor:this._radioGroup.fill||"",boxShadow:this._radioGroup.fill?"-1px 0 0 0 "+this._radioGroup.fill:"",color:this._radioGroup.textColor||""}},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},size:function(){return this._radioGroup.radioGroupSize||this._elFormItemSize||(this.$ELEMENT||{}).size},isDisabled:function(){return this.disabled||this._radioGroup.disabled||(this.elForm||{}).disabled},tabIndex:function(){return this.isDisabled||this._radioGroup&&this.value!==this.label?-1:0}},methods:{handleChange:function(){var e=this;this.$nextTick(function(){e.dispatch("ElRadioGroup","handleChange",e.value)})}}},ot,[],!1,null,null,null);st.options.__file="packages/radio/src/radio-button.vue";var lt=st.exports;lt.install=function(e){e.component(lt.name,lt)};var ct=lt,ut=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("label",{staticClass:"el-checkbox",class:[e.border&&e.checkboxSize?"el-checkbox--"+e.checkboxSize:"",{"is-disabled":e.isDisabled},{"is-bordered":e.border},{"is-checked":e.isChecked}],attrs:{id:e.id}},[n("span",{staticClass:"el-checkbox__input",class:{"is-disabled":e.isDisabled,"is-checked":e.isChecked,"is-indeterminate":e.indeterminate,"is-focus":e.focus},attrs:{tabindex:!!e.indeterminate&&0,role:!!e.indeterminate&&"checkbox","aria-checked":!!e.indeterminate&&"mixed"}},[n("span",{staticClass:"el-checkbox__inner"}),e.trueLabel||e.falseLabel?n("input",{directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],staticClass:"el-checkbox__original",attrs:{type:"checkbox","aria-hidden":e.indeterminate?"true":"false",name:e.name,disabled:e.isDisabled,"true-value":e.trueLabel,"false-value":e.falseLabel},domProps:{checked:Array.isArray(e.model)?e._i(e.model,null)>-1:e._q(e.model,e.trueLabel)},on:{change:[function(t){var n=e.model,r=t.target,i=r.checked?e.trueLabel:e.falseLabel;if(Array.isArray(n)){var a=e._i(n,null);r.checked?a<0&&(e.model=n.concat([null])):a>-1&&(e.model=n.slice(0,a).concat(n.slice(a+1)))}else e.model=i},e.handleChange],focus:function(t){e.focus=!0},blur:function(t){e.focus=!1}}}):n("input",{directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],staticClass:"el-checkbox__original",attrs:{type:"checkbox","aria-hidden":e.indeterminate?"true":"false",disabled:e.isDisabled,name:e.name},domProps:{value:e.label,checked:Array.isArray(e.model)?e._i(e.model,e.label)>-1:e.model},on:{change:[function(t){var n=e.model,r=t.target,i=!!r.checked;if(Array.isArray(n)){var a=e.label,o=e._i(n,a);r.checked?o<0&&(e.model=n.concat([a])):o>-1&&(e.model=n.slice(0,o).concat(n.slice(o+1)))}else e.model=i},e.handleChange],focus:function(t){e.focus=!0},blur:function(t){e.focus=!1}}})]),e.$slots.default||e.label?n("span",{staticClass:"el-checkbox__label"},[e._t("default"),e.$slots.default?e._e():[e._v(e._s(e.label))]],2):e._e()])};ut._withStripped=!0;var ht=i({name:"ElCheckbox",mixins:[C.a],inject:{elForm:{default:""},elFormItem:{default:""}},componentName:"ElCheckbox",data:function(){return{selfModel:!1,focus:!1,isLimitExceeded:!1}},computed:{model:{get:function(){return this.isGroup?this.store:void 0!==this.value?this.value:this.selfModel},set:function(e){this.isGroup?(this.isLimitExceeded=!1,void 0!==this._checkboxGroup.min&&e.length<this._checkboxGroup.min&&(this.isLimitExceeded=!0),void 0!==this._checkboxGroup.max&&e.length>this._checkboxGroup.max&&(this.isLimitExceeded=!0),!1===this.isLimitExceeded&&this.dispatch("ElCheckboxGroup","input",[e])):(this.$emit("input",e),this.selfModel=e)}},isChecked:function(){return"[object Boolean]"==={}.toString.call(this.model)?this.model:Array.isArray(this.model)?this.model.indexOf(this.label)>-1:null!==this.model&&void 0!==this.model?this.model===this.trueLabel:void 0},isGroup:function(){for(var e=this.$parent;e;){if("ElCheckboxGroup"===e.$options.componentName)return this._checkboxGroup=e,!0;e=e.$parent}return!1},store:function(){return this._checkboxGroup?this._checkboxGroup.value:this.value},isLimitDisabled:function(){var e=this._checkboxGroup,t=e.max,n=e.min;return!(!t&&!n)&&this.model.length>=t&&!this.isChecked||this.model.length<=n&&this.isChecked},isDisabled:function(){return this.isGroup?this._checkboxGroup.disabled||this.disabled||(this.elForm||{}).disabled||this.isLimitDisabled:this.disabled||(this.elForm||{}).disabled},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},checkboxSize:function(){var e=this.size||this._elFormItemSize||(this.$ELEMENT||{}).size;return this.isGroup&&this._checkboxGroup.checkboxGroupSize||e}},props:{value:{},label:{},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:String,trueLabel:[String,Number],falseLabel:[String,Number],id:String,controls:String,border:Boolean,size:String},methods:{addToStore:function(){Array.isArray(this.model)&&-1===this.model.indexOf(this.label)?this.model.push(this.label):this.model=this.trueLabel||!0},handleChange:function(e){var t=this;if(!this.isLimitExceeded){var n=void 0;n=e.target.checked?void 0===this.trueLabel||this.trueLabel:void 0!==this.falseLabel&&this.falseLabel,this.$emit("change",n,e),this.$nextTick(function(){t.isGroup&&t.dispatch("ElCheckboxGroup","change",[t._checkboxGroup.value])})}}},created:function(){this.checked&&this.addToStore()},mounted:function(){this.indeterminate&&this.$el.setAttribute("aria-controls",this.controls)},watch:{value:function(e){this.dispatch("ElFormItem","el.form.change",e)}}},ut,[],!1,null,null,null);ht.options.__file="packages/checkbox/src/checkbox.vue";var dt=ht.exports;dt.install=function(e){e.component(dt.name,dt)};var ft=dt,pt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("label",{staticClass:"el-checkbox-button",class:[e.size?"el-checkbox-button--"+e.size:"",{"is-disabled":e.isDisabled},{"is-checked":e.isChecked},{"is-focus":e.focus}],attrs:{role:"checkbox","aria-checked":e.isChecked,"aria-disabled":e.isDisabled}},[e.trueLabel||e.falseLabel?n("input",{directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],staticClass:"el-checkbox-button__original",attrs:{type:"checkbox",name:e.name,disabled:e.isDisabled,"true-value":e.trueLabel,"false-value":e.falseLabel},domProps:{checked:Array.isArray(e.model)?e._i(e.model,null)>-1:e._q(e.model,e.trueLabel)},on:{change:[function(t){var n=e.model,r=t.target,i=r.checked?e.trueLabel:e.falseLabel;if(Array.isArray(n)){var a=e._i(n,null);r.checked?a<0&&(e.model=n.concat([null])):a>-1&&(e.model=n.slice(0,a).concat(n.slice(a+1)))}else e.model=i},e.handleChange],focus:function(t){e.focus=!0},blur:function(t){e.focus=!1}}}):n("input",{directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],staticClass:"el-checkbox-button__original",attrs:{type:"checkbox",name:e.name,disabled:e.isDisabled},domProps:{value:e.label,checked:Array.isArray(e.model)?e._i(e.model,e.label)>-1:e.model},on:{change:[function(t){var n=e.model,r=t.target,i=!!r.checked;if(Array.isArray(n)){var a=e.label,o=e._i(n,a);r.checked?o<0&&(e.model=n.concat([a])):o>-1&&(e.model=n.slice(0,o).concat(n.slice(o+1)))}else e.model=i},e.handleChange],focus:function(t){e.focus=!0},blur:function(t){e.focus=!1}}}),e.$slots.default||e.label?n("span",{staticClass:"el-checkbox-button__inner",style:e.isChecked?e.activeStyle:null},[e._t("default",[e._v(e._s(e.label))])],2):e._e()])};pt._withStripped=!0;var At=i({name:"ElCheckboxButton",mixins:[C.a],inject:{elForm:{default:""},elFormItem:{default:""}},data:function(){return{selfModel:!1,focus:!1,isLimitExceeded:!1}},props:{value:{},label:{},disabled:Boolean,checked:Boolean,name:String,trueLabel:[String,Number],falseLabel:[String,Number]},computed:{model:{get:function(){return this._checkboxGroup?this.store:void 0!==this.value?this.value:this.selfModel},set:function(e){this._checkboxGroup?(this.isLimitExceeded=!1,void 0!==this._checkboxGroup.min&&e.length<this._checkboxGroup.min&&(this.isLimitExceeded=!0),void 0!==this._checkboxGroup.max&&e.length>this._checkboxGroup.max&&(this.isLimitExceeded=!0),!1===this.isLimitExceeded&&this.dispatch("ElCheckboxGroup","input",[e])):void 0!==this.value?this.$emit("input",e):this.selfModel=e}},isChecked:function(){return"[object Boolean]"==={}.toString.call(this.model)?this.model:Array.isArray(this.model)?this.model.indexOf(this.label)>-1:null!==this.model&&void 0!==this.model?this.model===this.trueLabel:void 0},_checkboxGroup:function(){for(var e=this.$parent;e;){if("ElCheckboxGroup"===e.$options.componentName)return e;e=e.$parent}return!1},store:function(){return this._checkboxGroup?this._checkboxGroup.value:this.value},activeStyle:function(){return{backgroundColor:this._checkboxGroup.fill||"",borderColor:this._checkboxGroup.fill||"",color:this._checkboxGroup.textColor||"","box-shadow":"-1px 0 0 0 "+this._checkboxGroup.fill}},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},size:function(){return this._checkboxGroup.checkboxGroupSize||this._elFormItemSize||(this.$ELEMENT||{}).size},isLimitDisabled:function(){var e=this._checkboxGroup,t=e.max,n=e.min;return!(!t&&!n)&&this.model.length>=t&&!this.isChecked||this.model.length<=n&&this.isChecked},isDisabled:function(){return this._checkboxGroup?this._checkboxGroup.disabled||this.disabled||(this.elForm||{}).disabled||this.isLimitDisabled:this.disabled||(this.elForm||{}).disabled}},methods:{addToStore:function(){Array.isArray(this.model)&&-1===this.model.indexOf(this.label)?this.model.push(this.label):this.model=this.trueLabel||!0},handleChange:function(e){var t=this;if(!this.isLimitExceeded){var n=void 0;n=e.target.checked?void 0===this.trueLabel||this.trueLabel:void 0!==this.falseLabel&&this.falseLabel,this.$emit("change",n,e),this.$nextTick(function(){t._checkboxGroup&&t.dispatch("ElCheckboxGroup","change",[t._checkboxGroup.value])})}}},created:function(){this.checked&&this.addToStore()}},pt,[],!1,null,null,null);At.options.__file="packages/checkbox/src/checkbox-button.vue";var gt=At.exports;gt.install=function(e){e.component(gt.name,gt)};var mt=gt,vt=function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"el-checkbox-group",attrs:{role:"group","aria-label":"checkbox-group"}},[this._t("default")],2)};vt._withStripped=!0;var yt=i({name:"ElCheckboxGroup",componentName:"ElCheckboxGroup",mixins:[C.a],inject:{elFormItem:{default:""}},props:{value:{},disabled:Boolean,min:Number,max:Number,size:String,fill:String,textColor:String},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},checkboxGroupSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size}},watch:{value:function(e){this.dispatch("ElFormItem","el.form.change",[e])}}},vt,[],!1,null,null,null);yt.options.__file="packages/checkbox/src/checkbox-group.vue";var bt=yt.exports;bt.install=function(e){e.component(bt.name,bt)};var wt=bt,xt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-switch",class:{"is-disabled":e.switchDisabled,"is-checked":e.checked},attrs:{role:"switch","aria-checked":e.checked,"aria-disabled":e.switchDisabled},on:{click:function(t){return t.preventDefault(),e.switchValue(t)}}},[n("input",{ref:"input",staticClass:"el-switch__input",attrs:{type:"checkbox",id:e.id,name:e.name,"true-value":e.activeValue,"false-value":e.inactiveValue,disabled:e.switchDisabled},on:{change:e.handleChange,keydown:function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?e.switchValue(t):null}}}),e.inactiveIconClass||e.inactiveText?n("span",{class:["el-switch__label","el-switch__label--left",e.checked?"":"is-active"]},[e.inactiveIconClass?n("i",{class:[e.inactiveIconClass]}):e._e(),!e.inactiveIconClass&&e.inactiveText?n("span",{attrs:{"aria-hidden":e.checked}},[e._v(e._s(e.inactiveText))]):e._e()]):e._e(),n("span",{ref:"core",staticClass:"el-switch__core",style:{width:e.coreWidth+"px"}}),e.activeIconClass||e.activeText?n("span",{class:["el-switch__label","el-switch__label--right",e.checked?"is-active":""]},[e.activeIconClass?n("i",{class:[e.activeIconClass]}):e._e(),!e.activeIconClass&&e.activeText?n("span",{attrs:{"aria-hidden":!e.checked}},[e._v(e._s(e.activeText))]):e._e()]):e._e()])};xt._withStripped=!0;var _t=i({name:"ElSwitch",mixins:[j()("input"),x.a,C.a],inject:{elForm:{default:""}},props:{value:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:!1},width:{type:Number,default:40},activeIconClass:{type:String,default:""},inactiveIconClass:{type:String,default:""},activeText:String,inactiveText:String,activeColor:{type:String,default:""},inactiveColor:{type:String,default:""},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},name:{type:String,default:""},validateEvent:{type:Boolean,default:!0},id:String},data:function(){return{coreWidth:this.width}},created:function(){~[this.activeValue,this.inactiveValue].indexOf(this.value)||this.$emit("input",this.inactiveValue)},computed:{checked:function(){return this.value===this.activeValue},switchDisabled:function(){return this.disabled||(this.elForm||{}).disabled}},watch:{checked:function(){this.$refs.input.checked=this.checked,(this.activeColor||this.inactiveColor)&&this.setBackgroundColor(),this.validateEvent&&this.dispatch("ElFormItem","el.form.change",[this.value])}},methods:{handleChange:function(e){var t=this,n=this.checked?this.inactiveValue:this.activeValue;this.$emit("input",n),this.$emit("change",n),this.$nextTick(function(){t.$refs.input.checked=t.checked})},setBackgroundColor:function(){var e=this.checked?this.activeColor:this.inactiveColor;this.$refs.core.style.borderColor=e,this.$refs.core.style.backgroundColor=e},switchValue:function(){!this.switchDisabled&&this.handleChange()},getMigratingConfig:function(){return{props:{"on-color":"on-color is renamed to active-color.","off-color":"off-color is renamed to inactive-color.","on-text":"on-text is renamed to active-text.","off-text":"off-text is renamed to inactive-text.","on-value":"on-value is renamed to active-value.","off-value":"off-value is renamed to inactive-value.","on-icon-class":"on-icon-class is renamed to active-icon-class.","off-icon-class":"off-icon-class is renamed to inactive-icon-class."}}}},mounted:function(){this.coreWidth=this.width||40,(this.activeColor||this.inactiveColor)&&this.setBackgroundColor(),this.$refs.input.checked=this.checked}},xt,[],!1,null,null,null);_t.options.__file="packages/switch/src/component.vue";var Ct=_t.exports;Ct.install=function(e){e.component(Ct.name,Ct)};var St=Ct,kt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.handleClose,expression:"handleClose"}],staticClass:"el-select",class:[e.selectSize?"el-select--"+e.selectSize:""],on:{click:function(t){return t.stopPropagation(),e.toggleMenu(t)}}},[e.multiple?n("div",{ref:"tags",staticClass:"el-select__tags",style:{"max-width":e.inputWidth-32+"px",width:"100%"}},[e.collapseTags&&e.selected.length?n("span",[n("el-tag",{attrs:{closable:!e.selectDisabled,size:e.collapseTagSize,hit:e.selected[0].hitState,type:"info","disable-transitions":""},on:{close:function(t){e.deleteTag(t,e.selected[0])}}},[n("span",{staticClass:"el-select__tags-text"},[e._v(e._s(e.selected[0].currentLabel))])]),e.selected.length>1?n("el-tag",{attrs:{closable:!1,size:e.collapseTagSize,type:"info","disable-transitions":""}},[n("span",{staticClass:"el-select__tags-text"},[e._v("+ "+e._s(e.selected.length-1))])]):e._e()],1):e._e(),e.collapseTags?e._e():n("transition-group",{on:{"after-leave":e.resetInputHeight}},e._l(e.selected,function(t){return n("el-tag",{key:e.getValueKey(t),attrs:{closable:!e.selectDisabled,size:e.collapseTagSize,hit:t.hitState,type:"info","disable-transitions":""},on:{close:function(n){e.deleteTag(n,t)}}},[n("span",{staticClass:"el-select__tags-text"},[e._v(e._s(t.currentLabel))])])}),1),e.filterable?n("input",{directives:[{name:"model",rawName:"v-model",value:e.query,expression:"query"}],ref:"input",staticClass:"el-select__input",class:[e.selectSize?"is-"+e.selectSize:""],style:{"flex-grow":"1",width:e.inputLength/(e.inputWidth-32)+"%","max-width":e.inputWidth-42+"px"},attrs:{type:"text",disabled:e.selectDisabled,autocomplete:e.autoComplete||e.autocomplete},domProps:{value:e.query},on:{focus:e.handleFocus,blur:function(t){e.softFocus=!1},keyup:e.managePlaceholder,keydown:[e.resetInputState,function(t){if(!("button"in t)&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"]))return null;t.preventDefault(),e.navigateOptions("next")},function(t){if(!("button"in t)&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"]))return null;t.preventDefault(),e.navigateOptions("prev")},function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?(t.preventDefault(),e.selectOption(t)):null},function(t){if(!("button"in t)&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"]))return null;t.stopPropagation(),t.preventDefault(),e.visible=!1},function(t){return"button"in t||!e._k(t.keyCode,"delete",[8,46],t.key,["Backspace","Delete","Del"])?e.deletePrevTag(t):null},function(t){if(!("button"in t)&&e._k(t.keyCode,"tab",9,t.key,"Tab"))return null;e.visible=!1}],compositionstart:e.handleComposition,compositionupdate:e.handleComposition,compositionend:e.handleComposition,input:[function(t){t.target.composing||(e.query=t.target.value)},e.debouncedQueryChange]}}):e._e()],1):e._e(),n("el-input",{ref:"reference",class:{"is-focus":e.visible},attrs:{type:"text",placeholder:e.currentPlaceholder,name:e.name,id:e.id,autocomplete:e.autoComplete||e.autocomplete,size:e.selectSize,disabled:e.selectDisabled,readonly:e.readonly,"validate-event":!1,tabindex:e.multiple&&e.filterable?"-1":null},on:{focus:e.handleFocus,blur:e.handleBlur},nativeOn:{keyup:function(t){return e.debouncedOnInputChange(t)},keydown:[function(t){if(!("button"in t)&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"]))return null;t.stopPropagation(),t.preventDefault(),e.navigateOptions("next")},function(t){if(!("button"in t)&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"]))return null;t.stopPropagation(),t.preventDefault(),e.navigateOptions("prev")},function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?(t.preventDefault(),e.selectOption(t)):null},function(t){if(!("button"in t)&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"]))return null;t.stopPropagation(),t.preventDefault(),e.visible=!1},function(t){if(!("button"in t)&&e._k(t.keyCode,"tab",9,t.key,"Tab"))return null;e.visible=!1}],paste:function(t){return e.debouncedOnInputChange(t)},mouseenter:function(t){e.inputHovering=!0},mouseleave:function(t){e.inputHovering=!1}},model:{value:e.selectedLabel,callback:function(t){e.selectedLabel=t},expression:"selectedLabel"}},[e.$slots.prefix?n("template",{slot:"prefix"},[e._t("prefix")],2):e._e(),n("template",{slot:"suffix"},[n("i",{directives:[{name:"show",rawName:"v-show",value:!e.showClose,expression:"!showClose"}],class:["el-select__caret","el-input__icon","el-icon-"+e.iconClass]}),e.showClose?n("i",{staticClass:"el-select__caret el-input__icon el-icon-circle-close",on:{click:e.handleClearClick}}):e._e()])],2),n("transition",{attrs:{name:"el-zoom-in-top"},on:{"before-enter":e.handleMenuEnter,"after-leave":e.doDestroy}},[n("el-select-menu",{directives:[{name:"show",rawName:"v-show",value:e.visible&&!1!==e.emptyText,expression:"visible && emptyText !== false"}],ref:"popper",attrs:{"append-to-body":e.popperAppendToBody}},[n("el-scrollbar",{directives:[{name:"show",rawName:"v-show",value:e.options.length>0&&!e.loading,expression:"options.length > 0 && !loading"}],ref:"scrollbar",class:{"is-empty":!e.allowCreate&&e.query&&0===e.filteredOptionsCount},attrs:{tag:"ul","wrap-class":"el-select-dropdown__wrap","view-class":"el-select-dropdown__list"}},[e.showNewOption?n("el-option",{attrs:{value:e.query,created:""}}):e._e(),e._t("default")],2),e.emptyText&&(!e.allowCreate||e.loading||e.allowCreate&&0===e.options.length)?[e.$slots.empty?e._t("empty"):n("p",{staticClass:"el-select-dropdown__empty"},[e._v("\n "+e._s(e.emptyText)+"\n ")])]:e._e()],2)],1)],1)};kt._withStripped=!0;var Bt=function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"el-select-dropdown el-popper",class:[{"is-multiple":this.$parent.multiple},this.popperClass],style:{minWidth:this.minWidth}},[this._t("default")],2)};Bt._withStripped=!0;var Et=i({name:"ElSelectDropdown",componentName:"ElSelectDropdown",mixins:[O.a],props:{placement:{default:"bottom-start"},boundariesPadding:{default:0},popperOptions:{default:function(){return{gpuAcceleration:!1}}},visibleArrow:{default:!0},appendToBody:{type:Boolean,default:!0}},data:function(){return{minWidth:""}},computed:{popperClass:function(){return this.$parent.popperClass}},watch:{"$parent.inputWidth":function(){this.minWidth=this.$parent.$el.getBoundingClientRect().width+"px"}},mounted:function(){var e=this;this.referenceElm=this.$parent.$refs.reference.$el,this.$parent.popperElm=this.popperElm=this.$el,this.$on("updatePopper",function(){e.$parent.visible&&e.updatePopper()}),this.$on("destroyPopper",this.destroyPopper)}},Bt,[],!1,null,null,null);Et.options.__file="packages/select/src/select-dropdown.vue";var Tt=Et.exports,It=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("li",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-select-dropdown__item",class:{selected:e.itemSelected,"is-disabled":e.disabled||e.groupDisabled||e.limitReached,hover:e.hover},on:{mouseenter:e.hoverItem,click:function(t){return t.stopPropagation(),e.selectOptionClick(t)}}},[e._t("default",[n("span",[e._v(e._s(e.currentLabel))])])],2)};It._withStripped=!0;var Mt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ft=i({mixins:[C.a],name:"ElOption",componentName:"ElOption",inject:["select"],props:{value:{required:!0},label:[String,Number],created:Boolean,disabled:{type:Boolean,default:!1}},data:function(){return{index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}},computed:{isObject:function(){return"[object object]"===Object.prototype.toString.call(this.value).toLowerCase()},currentLabel:function(){return this.label||(this.isObject?"":this.value)},currentValue:function(){return this.value||this.label||""},itemSelected:function(){return this.select.multiple?this.contains(this.select.value,this.value):this.isEqual(this.value,this.select.value)},limitReached:function(){return!!this.select.multiple&&(!this.itemSelected&&(this.select.value||[]).length>=this.select.multipleLimit&&this.select.multipleLimit>0)}},watch:{currentLabel:function(){this.created||this.select.remote||this.dispatch("ElSelect","setSelected")},value:function(e,t){var n=this.select,r=n.remote,i=n.valueKey;if(!this.created&&!r){if(i&&"object"===(void 0===e?"undefined":Mt(e))&&"object"===(void 0===t?"undefined":Mt(t))&&e[i]===t[i])return;this.dispatch("ElSelect","setSelected")}}},methods:{isEqual:function(e,t){if(this.isObject){var n=this.select.valueKey;return Object(A.getValueByPath)(e,n)===Object(A.getValueByPath)(t,n)}return e===t},contains:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];if(this.isObject){var n=this.select.valueKey;return e&&e.some(function(e){return Object(A.getValueByPath)(e,n)===Object(A.getValueByPath)(t,n)})}return e&&e.indexOf(t)>-1},handleGroupDisabled:function(e){this.groupDisabled=e},hoverItem:function(){this.disabled||this.groupDisabled||(this.select.hoverIndex=this.select.options.indexOf(this))},selectOptionClick:function(){!0!==this.disabled&&!0!==this.groupDisabled&&this.dispatch("ElSelect","handleOptionClick",[this,!0])},queryChange:function(e){this.visible=new RegExp(Object(A.escapeRegexpString)(e),"i").test(this.currentLabel)||this.created,this.visible||this.select.filteredOptionsCount--}},created:function(){this.select.options.push(this),this.select.cachedOptions.push(this),this.select.optionsCount++,this.select.filteredOptionsCount++,this.$on("queryChange",this.queryChange),this.$on("handleGroupDisabled",this.handleGroupDisabled)},beforeDestroy:function(){var e=this.select,t=e.selected,n=e.multiple?t:[t],r=this.select.cachedOptions.indexOf(this),i=n.indexOf(this);r>-1&&i<0&&this.select.cachedOptions.splice(r,1),this.select.onOptionDestroy(this.select.options.indexOf(this))}},It,[],!1,null,null,null);Ft.options.__file="packages/select/src/option.vue";var Dt=Ft.exports,Pt=n(29),Ot=n.n(Pt),Lt=n(12),Rt=n(27),Nt=n.n(Rt),Ut=i({mixins:[C.a,p.a,j()("reference"),{data:function(){return{hoverOption:-1}},computed:{optionsAllDisabled:function(){return this.options.filter(function(e){return e.visible}).every(function(e){return e.disabled})}},watch:{hoverIndex:function(e){var t=this;"number"==typeof e&&e>-1&&(this.hoverOption=this.options[e]||{}),this.options.forEach(function(e){e.hover=t.hoverOption===e})}},methods:{navigateOptions:function(e){var t=this;if(this.visible){if(0!==this.options.length&&0!==this.filteredOptionsCount&&!this.optionsAllDisabled){"next"===e?(this.hoverIndex++,this.hoverIndex===this.options.length&&(this.hoverIndex=0)):"prev"===e&&(this.hoverIndex--,this.hoverIndex<0&&(this.hoverIndex=this.options.length-1));var n=this.options[this.hoverIndex];!0!==n.disabled&&!0!==n.groupDisabled&&n.visible||this.navigateOptions(e),this.$nextTick(function(){return t.scrollToOption(t.hoverOption)})}}else this.visible=!0}}}],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(A.isIE)()&&!Object(A.isEdge)()&&!this.visible},showClose:function(){var e=this.multiple?Array.isArray(this.value)&&this.value.length>0:void 0!==this.value&&null!==this.value&&""!==this.value;return this.clearable&&!this.selectDisabled&&this.inputHovering&&e},iconClass:function(){return this.remote&&this.filterable?"":this.visible?"arrow-up is-reverse":"arrow-up"},debounce:function(){return this.remote?300:0},emptyText:function(){return this.loading?this.loadingText||this.t("el.select.loading"):(!this.remote||""!==this.query||0!==this.options.length)&&(this.filterable&&this.query&&this.options.length>0&&0===this.filteredOptionsCount?this.noMatchText||this.t("el.select.noMatch"):0===this.options.length?this.noDataText||this.t("el.select.noData"):null)},showNewOption:function(){var e=this,t=this.options.filter(function(e){return!e.created}).some(function(t){return t.currentLabel===e.query});return this.filterable&&this.allowCreate&&""!==this.query&&!t},selectSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},selectDisabled:function(){return this.disabled||(this.elForm||{}).disabled},collapseTagSize:function(){return["small","mini"].indexOf(this.selectSize)>-1?"mini":"small"},propPlaceholder:function(){return void 0!==this.placeholder?this.placeholder:this.t("el.select.placeholder")}},components:{ElInput:d.a,ElSelectMenu:Tt,ElOption:Dt,ElTag:Ot.a,ElScrollbar:R.a},directives:{Clickoutside:F.a},props:{name:String,id:String,value:{required:!0},autocomplete:{type:String,default:"off"},autoComplete:{type:String,validator:function(e){return!0}},automaticDropdown:Boolean,size:String,disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:String,remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String,required:!1},defaultFirstOption:Boolean,reserveKeyword:Boolean,valueKey:{type:String,default:"value"},collapseTags:Boolean,popperAppendToBody:{type:Boolean,default:!0}},data:function(){return{options:[],cachedOptions:[],createdLabel:null,createdSelected:!1,selected:this.multiple?[]:{},inputLength:20,inputWidth:0,initialInputHeight:0,cachedPlaceHolder:"",optionsCount:0,filteredOptionsCount:0,visible:!1,softFocus:!1,selectedLabel:"",hoverIndex:-1,query:"",previousQuery:null,inputHovering:!1,currentPlaceholder:"",menuVisibleOnFocus:!1,isOnComposition:!1,isSilentBlur:!1}},watch:{selectDisabled:function(){var e=this;this.$nextTick(function(){e.resetInputHeight()})},propPlaceholder:function(e){this.cachedPlaceHolder=this.currentPlaceholder=e},value:function(e,t){this.multiple&&(this.resetInputHeight(),e&&e.length>0||this.$refs.input&&""!==this.query?this.currentPlaceholder="":this.currentPlaceholder=this.cachedPlaceHolder,this.filterable&&!this.reserveKeyword&&(this.query="",this.handleQueryChange(this.query))),this.setSelected(),this.filterable&&!this.multiple&&(this.inputLength=20),Object(A.valueEquals)(e,t)||this.dispatch("ElFormItem","el.form.change",e)},visible:function(e){var t=this;e?(this.broadcast("ElSelectDropdown","updatePopper"),this.filterable&&(this.query=this.remote?"":this.selectedLabel,this.handleQueryChange(this.query),this.multiple?this.$refs.input.focus():(this.remote||(this.broadcast("ElOption","queryChange",""),this.broadcast("ElOptionGroup","queryChange")),this.selectedLabel&&(this.currentPlaceholder=this.selectedLabel,this.selectedLabel="")))):(this.broadcast("ElSelectDropdown","destroyPopper"),this.$refs.input&&this.$refs.input.blur(),this.query="",this.previousQuery=null,this.selectedLabel="",this.inputLength=20,this.menuVisibleOnFocus=!1,this.resetHoverIndex(),this.$nextTick(function(){t.$refs.input&&""===t.$refs.input.value&&0===t.selected.length&&(t.currentPlaceholder=t.cachedPlaceHolder)}),this.multiple||(this.selected&&(this.filterable&&this.allowCreate&&this.createdSelected&&this.createdLabel?this.selectedLabel=this.createdLabel:this.selectedLabel=this.selected.currentLabel,this.filterable&&(this.query=this.selectedLabel)),this.filterable&&(this.currentPlaceholder=this.cachedPlaceHolder))),this.$emit("visible-change",e)},options:function(){var e=this;if(!this.$isServer){this.$nextTick(function(){e.broadcast("ElSelectDropdown","updatePopper")}),this.multiple&&this.resetInputHeight();var t=this.$el.querySelectorAll("input");-1===[].indexOf.call(t,document.activeElement)&&this.setSelected(),this.defaultFirstOption&&(this.filterable||this.remote)&&this.filteredOptionsCount&&this.checkDefaultFirstOption()}}},methods:{handleComposition:function(e){var t=this,n=e.target.value;if("compositionend"===e.type)this.isOnComposition=!1,this.$nextTick(function(e){return t.handleQueryChange(n)});else{var r=n[n.length-1]||"";this.isOnComposition=!Object(Qe.isKorean)(r)}},handleQueryChange:function(e){var t=this;this.previousQuery===e||this.isOnComposition||(null!==this.previousQuery||"function"!=typeof this.filterMethod&&"function"!=typeof this.remoteMethod?(this.previousQuery=e,this.$nextTick(function(){t.visible&&t.broadcast("ElSelectDropdown","updatePopper")}),this.hoverIndex=-1,this.multiple&&this.filterable&&this.$nextTick(function(){var e=15*t.$refs.input.value.length+20;t.inputLength=t.collapseTags?Math.min(50,e):e,t.managePlaceholder(),t.resetInputHeight()}),this.remote&&"function"==typeof this.remoteMethod?(this.hoverIndex=-1,this.remoteMethod(e)):"function"==typeof this.filterMethod?(this.filterMethod(e),this.broadcast("ElOptionGroup","queryChange")):(this.filteredOptionsCount=this.optionsCount,this.broadcast("ElOption","queryChange",e),this.broadcast("ElOptionGroup","queryChange")),this.defaultFirstOption&&(this.filterable||this.remote)&&this.filteredOptionsCount&&this.checkDefaultFirstOption()):this.previousQuery=e)},scrollToOption:function(e){var t=Array.isArray(e)&&e[0]?e[0].$el:e.$el;if(this.$refs.popper&&t){var n=this.$refs.popper.$el.querySelector(".el-select-dropdown__wrap");Nt()(n,t)}this.$refs.scrollbar&&this.$refs.scrollbar.handleScroll()},handleMenuEnter:function(){var e=this;this.$nextTick(function(){return e.scrollToOption(e.selected)})},emitChange:function(e){Object(A.valueEquals)(this.value,e)||this.$emit("change",e)},getOption:function(e){for(var t=void 0,n="[object object]"===Object.prototype.toString.call(e).toLowerCase(),r="[object null]"===Object.prototype.toString.call(e).toLowerCase(),i="[object undefined]"===Object.prototype.toString.call(e).toLowerCase(),a=this.cachedOptions.length-1;a>=0;a--){var o=this.cachedOptions[a];if(n?Object(A.getValueByPath)(o.value,this.valueKey)===Object(A.getValueByPath)(e,this.valueKey):o.value===e){t=o;break}}if(t)return t;var s={value:e,currentLabel:n||r||i?"":e};return this.multiple&&(s.hitState=!1),s},setSelected:function(){var e=this;if(!this.multiple){var t=this.getOption(this.value);return t.created?(this.createdLabel=t.currentLabel,this.createdSelected=!0):this.createdSelected=!1,this.selectedLabel=t.currentLabel,this.selected=t,void(this.filterable&&(this.query=this.selectedLabel))}var n=[];Array.isArray(this.value)&&this.value.forEach(function(t){n.push(e.getOption(t))}),this.selected=n,this.$nextTick(function(){e.resetInputHeight()})},handleFocus:function(e){this.softFocus?this.softFocus=!1:((this.automaticDropdown||this.filterable)&&(this.visible=!0,this.filterable&&(this.menuVisibleOnFocus=!0)),this.$emit("focus",e))},blur:function(){this.visible=!1,this.$refs.reference.blur()},handleBlur:function(e){var t=this;setTimeout(function(){t.isSilentBlur?t.isSilentBlur=!1:t.$emit("blur",e)},50),this.softFocus=!1},handleClearClick:function(e){this.deleteSelected(e)},doDestroy:function(){this.$refs.popper&&this.$refs.popper.doDestroy()},handleClose:function(){this.visible=!1},toggleLastOptionHitState:function(e){if(Array.isArray(this.selected)){var t=this.selected[this.selected.length-1];if(t)return!0===e||!1===e?(t.hitState=e,e):(t.hitState=!t.hitState,t.hitState)}},deletePrevTag:function(e){if(e.target.value.length<=0&&!this.toggleLastOptionHitState()){var t=this.value.slice();t.pop(),this.$emit("input",t),this.emitChange(t)}},managePlaceholder:function(){""!==this.currentPlaceholder&&(this.currentPlaceholder=this.$refs.input.value?"":this.cachedPlaceHolder)},resetInputState:function(e){8!==e.keyCode&&this.toggleLastOptionHitState(!1),this.inputLength=15*this.$refs.input.value.length+20,this.resetInputHeight()},resetInputHeight:function(){var e=this;this.collapseTags&&!this.filterable||this.$nextTick(function(){if(e.$refs.reference){var t=e.$refs.reference.$el.childNodes,n=[].filter.call(t,function(e){return"INPUT"===e.tagName})[0],r=e.$refs.tags,i=e.initialInputHeight||40;n.style.height=0===e.selected.length?i+"px":Math.max(r?r.clientHeight+(r.clientHeight>i?6:0):0,i)+"px",e.visible&&!1!==e.emptyText&&e.broadcast("ElSelectDropdown","updatePopper")}})},resetHoverIndex:function(){var e=this;setTimeout(function(){e.multiple?e.selected.length>0?e.hoverIndex=Math.min.apply(null,e.selected.map(function(t){return e.options.indexOf(t)})):e.hoverIndex=-1:e.hoverIndex=e.options.indexOf(e.selected)},300)},handleOptionSelect:function(e,t){var n=this;if(this.multiple){var r=(this.value||[]).slice(),i=this.getValueIndex(r,e.value);i>-1?r.splice(i,1):(this.multipleLimit<=0||r.length<this.multipleLimit)&&r.push(e.value),this.$emit("input",r),this.emitChange(r),e.created&&(this.query="",this.handleQueryChange(""),this.inputLength=20),this.filterable&&this.$refs.input.focus()}else this.$emit("input",e.value),this.emitChange(e.value),this.visible=!1;this.isSilentBlur=t,this.setSoftFocus(),this.visible||this.$nextTick(function(){n.scrollToOption(e)})},setSoftFocus:function(){this.softFocus=!0;var e=this.$refs.input||this.$refs.reference;e&&e.focus()},getValueIndex:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];if("[object object]"===Object.prototype.toString.call(t).toLowerCase()){var n=this.valueKey,r=-1;return e.some(function(e,i){return Object(A.getValueByPath)(e,n)===Object(A.getValueByPath)(t,n)&&(r=i,!0)}),r}return e.indexOf(t)},toggleMenu:function(){this.selectDisabled||(this.menuVisibleOnFocus?this.menuVisibleOnFocus=!1:this.visible=!this.visible,this.visible&&(this.$refs.input||this.$refs.reference).focus())},selectOption:function(){this.visible?this.options[this.hoverIndex]&&this.handleOptionSelect(this.options[this.hoverIndex]):this.toggleMenu()},deleteSelected:function(e){e.stopPropagation();var t=this.multiple?[]:"";this.$emit("input",t),this.emitChange(t),this.visible=!1,this.$emit("clear")},deleteTag:function(e,t){var n=this.selected.indexOf(t);if(n>-1&&!this.selectDisabled){var r=this.value.slice();r.splice(n,1),this.$emit("input",r),this.emitChange(r),this.$emit("remove-tag",t.value)}e.stopPropagation()},onInputChange:function(){this.filterable&&this.query!==this.selectedLabel&&(this.query=this.selectedLabel,this.handleQueryChange(this.query))},onOptionDestroy:function(e){e>-1&&(this.optionsCount--,this.filteredOptionsCount--,this.options.splice(e,1))},resetInputWidth:function(){this.inputWidth=this.$refs.reference.$el.getBoundingClientRect().width},handleResize:function(){this.resetInputWidth(),this.multiple&&this.resetInputHeight()},checkDefaultFirstOption:function(){this.hoverIndex=-1;for(var e=!1,t=this.options.length-1;t>=0;t--)if(this.options[t].created){e=!0,this.hoverIndex=t;break}if(!e)for(var n=0;n!==this.options.length;++n){var r=this.options[n];if(this.query){if(!r.disabled&&!r.groupDisabled&&r.visible){this.hoverIndex=n;break}}else if(r.itemSelected){this.hoverIndex=n;break}}},getValueKey:function(e){return"[object object]"!==Object.prototype.toString.call(e.value).toLowerCase()?e.value:Object(A.getValueByPath)(e.value,this.valueKey)}},created:function(){var e=this;this.cachedPlaceHolder=this.currentPlaceholder=this.propPlaceholder,this.multiple&&!Array.isArray(this.value)&&this.$emit("input",[]),!this.multiple&&Array.isArray(this.value)&&this.$emit("input",""),this.debouncedOnInputChange=I()(this.debounce,function(){e.onInputChange()}),this.debouncedQueryChange=I()(this.debounce,function(t){e.handleQueryChange(t.target.value)}),this.$on("handleOptionClick",this.handleOptionSelect),this.$on("setSelected",this.setSelected)},mounted:function(){var e=this;this.multiple&&Array.isArray(this.value)&&this.value.length>0&&(this.currentPlaceholder=""),Object(Lt.addResizeListener)(this.$el,this.handleResize);var t=this.$refs.reference;if(t&&t.$el){var n=t.$el.querySelector("input");this.initialInputHeight=n.getBoundingClientRect().height||{medium:36,small:32,mini:28}[this.selectSize]}this.remote&&this.multiple&&this.resetInputHeight(),this.$nextTick(function(){t&&t.$el&&(e.inputWidth=t.$el.getBoundingClientRect().width)}),this.setSelected()},beforeDestroy:function(){this.$el&&this.handleResize&&Object(Lt.removeResizeListener)(this.$el,this.handleResize)}},kt,[],!1,null,null,null);Ut.options.__file="packages/select/src/select.vue";var Ht=Ut.exports;Ht.install=function(e){e.component(Ht.name,Ht)};var jt=Ht;Dt.install=function(e){e.component(Dt.name,Dt)};var Qt=Dt,zt=function(){var e=this.$createElement,t=this._self._c||e;return t("ul",{directives:[{name:"show",rawName:"v-show",value:this.visible,expression:"visible"}],staticClass:"el-select-group__wrap"},[t("li",{staticClass:"el-select-group__title"},[this._v(this._s(this.label))]),t("li",[t("ul",{staticClass:"el-select-group"},[this._t("default")],2)])])};zt._withStripped=!0;var Vt=i({mixins:[C.a],name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:{type:Boolean,default:!1}},data:function(){return{visible:!0}},watch:{disabled:function(e){this.broadcast("ElOption","handleGroupDisabled",e)}},methods:{queryChange:function(){this.visible=this.$children&&Array.isArray(this.$children)&&this.$children.some(function(e){return!0===e.visible})}},created:function(){this.$on("queryChange",this.queryChange)},mounted:function(){this.disabled&&this.broadcast("ElOption","handleGroupDisabled",this.disabled)}},zt,[],!1,null,null,null);Vt.options.__file="packages/select/src/option-group.vue";var Gt=Vt.exports;Gt.install=function(e){e.component(Gt.name,Gt)};var $t=Gt,qt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("button",{staticClass:"el-button",class:[e.type?"el-button--"+e.type:"",e.buttonSize?"el-button--"+e.buttonSize:"",{"is-disabled":e.buttonDisabled,"is-loading":e.loading,"is-plain":e.plain,"is-round":e.round,"is-circle":e.circle}],attrs:{disabled:e.buttonDisabled||e.loading,autofocus:e.autofocus,type:e.nativeType},on:{click:e.handleClick}},[e.loading?n("i",{staticClass:"el-icon-loading"}):e._e(),e.icon&&!e.loading?n("i",{class:e.icon}):e._e(),e.$slots.default?n("span",[e._t("default")],2):e._e()])};qt._withStripped=!0;var Wt=i({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.disabled||(this.elForm||{}).disabled}},methods:{handleClick:function(e){this.$emit("click",e)}}},qt,[],!1,null,null,null);Wt.options.__file="packages/button/src/button.vue";var Kt=Wt.exports;Kt.install=function(e){e.component(Kt.name,Kt)};var Yt=Kt,Xt=function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"el-button-group"},[this._t("default")],2)};Xt._withStripped=!0;var Jt=i({name:"ElButtonGroup"},Xt,[],!1,null,null,null);Jt.options.__file="packages/button/src/button-group.vue";var Zt=Jt.exports;Zt.install=function(e){e.component(Zt.name,Zt)};var en=Zt,tn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-table",class:[{"el-table--fit":e.fit,"el-table--striped":e.stripe,"el-table--border":e.border||e.isGroup,"el-table--hidden":e.isHidden,"el-table--group":e.isGroup,"el-table--fluid-height":e.maxHeight,"el-table--scrollable-x":e.layout.scrollX,"el-table--scrollable-y":e.layout.scrollY,"el-table--enable-row-hover":!e.store.states.isComplex,"el-table--enable-row-transition":0!==(e.store.states.data||[]).length&&(e.store.states.data||[]).length<100},e.tableSize?"el-table--"+e.tableSize:""],on:{mouseleave:function(t){e.handleMouseLeave(t)}}},[n("div",{ref:"hiddenColumns",staticClass:"hidden-columns"},[e._t("default")],2),e.showHeader?n("div",{directives:[{name:"mousewheel",rawName:"v-mousewheel",value:e.handleHeaderFooterMousewheel,expression:"handleHeaderFooterMousewheel"}],ref:"headerWrapper",staticClass:"el-table__header-wrapper"},[n("table-header",{ref:"tableHeader",style:{width:e.layout.bodyWidth?e.layout.bodyWidth+"px":""},attrs:{store:e.store,border:e.border,"default-sort":e.defaultSort}})],1):e._e(),n("div",{ref:"bodyWrapper",staticClass:"el-table__body-wrapper",class:[e.layout.scrollX?"is-scrolling-"+e.scrollPosition:"is-scrolling-none"],style:[e.bodyHeight]},[n("table-body",{style:{width:e.bodyWidth},attrs:{context:e.context,store:e.store,stripe:e.stripe,"row-class-name":e.rowClassName,"row-style":e.rowStyle,highlight:e.highlightCurrentRow}}),e.data&&0!==e.data.length?e._e():n("div",{ref:"emptyBlock",staticClass:"el-table__empty-block",style:e.emptyBlockStyle},[n("span",{staticClass:"el-table__empty-text"},[e._t("empty",[e._v(e._s(e.emptyText||e.t("el.table.emptyText")))])],2)]),e.$slots.append?n("div",{ref:"appendWrapper",staticClass:"el-table__append-wrapper"},[e._t("append")],2):e._e()],1),e.showSummary?n("div",{directives:[{name:"show",rawName:"v-show",value:e.data&&e.data.length>0,expression:"data && data.length > 0"},{name:"mousewheel",rawName:"v-mousewheel",value:e.handleHeaderFooterMousewheel,expression:"handleHeaderFooterMousewheel"}],ref:"footerWrapper",staticClass:"el-table__footer-wrapper"},[n("table-footer",{style:{width:e.layout.bodyWidth?e.layout.bodyWidth+"px":""},attrs:{store:e.store,border:e.border,"sum-text":e.sumText||e.t("el.table.sumText"),"summary-method":e.summaryMethod,"default-sort":e.defaultSort}})],1):e._e(),e.fixedColumns.length>0?n("div",{directives:[{name:"mousewheel",rawName:"v-mousewheel",value:e.handleFixedMousewheel,expression:"handleFixedMousewheel"}],ref:"fixedWrapper",staticClass:"el-table__fixed",style:[{width:e.layout.fixedWidth?e.layout.fixedWidth+"px":""},e.fixedHeight]},[e.showHeader?n("div",{ref:"fixedHeaderWrapper",staticClass:"el-table__fixed-header-wrapper"},[n("table-header",{ref:"fixedTableHeader",style:{width:e.bodyWidth},attrs:{fixed:"left",border:e.border,store:e.store}})],1):e._e(),n("div",{ref:"fixedBodyWrapper",staticClass:"el-table__fixed-body-wrapper",style:[{top:e.layout.headerHeight+"px"},e.fixedBodyHeight]},[n("table-body",{style:{width:e.bodyWidth},attrs:{fixed:"left",store:e.store,stripe:e.stripe,highlight:e.highlightCurrentRow,"row-class-name":e.rowClassName,"row-style":e.rowStyle}}),e.$slots.append?n("div",{staticClass:"el-table__append-gutter",style:{height:e.layout.appendHeight+"px"}}):e._e()],1),e.showSummary?n("div",{directives:[{name:"show",rawName:"v-show",value:e.data&&e.data.length>0,expression:"data && data.length > 0"}],ref:"fixedFooterWrapper",staticClass:"el-table__fixed-footer-wrapper"},[n("table-footer",{style:{width:e.bodyWidth},attrs:{fixed:"left",border:e.border,"sum-text":e.sumText||e.t("el.table.sumText"),"summary-method":e.summaryMethod,store:e.store}})],1):e._e()]):e._e(),e.rightFixedColumns.length>0?n("div",{directives:[{name:"mousewheel",rawName:"v-mousewheel",value:e.handleFixedMousewheel,expression:"handleFixedMousewheel"}],ref:"rightFixedWrapper",staticClass:"el-table__fixed-right",style:[{width:e.layout.rightFixedWidth?e.layout.rightFixedWidth+"px":"",right:e.layout.scrollY?(e.border?e.layout.gutterWidth:e.layout.gutterWidth||0)+"px":""},e.fixedHeight]},[e.showHeader?n("div",{ref:"rightFixedHeaderWrapper",staticClass:"el-table__fixed-header-wrapper"},[n("table-header",{ref:"rightFixedTableHeader",style:{width:e.bodyWidth},attrs:{fixed:"right",border:e.border,store:e.store}})],1):e._e(),n("div",{ref:"rightFixedBodyWrapper",staticClass:"el-table__fixed-body-wrapper",style:[{top:e.layout.headerHeight+"px"},e.fixedBodyHeight]},[n("table-body",{style:{width:e.bodyWidth},attrs:{fixed:"right",store:e.store,stripe:e.stripe,"row-class-name":e.rowClassName,"row-style":e.rowStyle,highlight:e.highlightCurrentRow}}),e.$slots.append?n("div",{staticClass:"el-table__append-gutter",style:{height:e.layout.appendHeight+"px"}}):e._e()],1),e.showSummary?n("div",{directives:[{name:"show",rawName:"v-show",value:e.data&&e.data.length>0,expression:"data && data.length > 0"}],ref:"rightFixedFooterWrapper",staticClass:"el-table__fixed-footer-wrapper"},[n("table-footer",{style:{width:e.bodyWidth},attrs:{fixed:"right",border:e.border,"sum-text":e.sumText||e.t("el.table.sumText"),"summary-method":e.summaryMethod,store:e.store}})],1):e._e()]):e._e(),e.rightFixedColumns.length>0?n("div",{ref:"rightFixedPatch",staticClass:"el-table__fixed-right-patch",style:{width:e.layout.scrollY?e.layout.gutterWidth+"px":"0",height:e.layout.headerHeight+"px"}}):e._e(),n("div",{directives:[{name:"show",rawName:"v-show",value:e.resizeProxyVisible,expression:"resizeProxyVisible"}],ref:"resizeProxy",staticClass:"el-table__column-resize-proxy"})])};tn._withStripped=!0;var nn=n(16),rn=n.n(nn),an=n(35),on=n(38),sn=n.n(on),ln="undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>-1,cn={bind:function(e,t){var n,r;n=e,r=t.value,n&&n.addEventListener&&n.addEventListener(ln?"DOMMouseScroll":"mousewheel",function(e){var t=sn()(e);r&&r.apply(this,[e,t])})}},un=n(6),hn=n.n(un),dn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fn=function(e){for(var t=e.target;t&&"HTML"!==t.tagName.toUpperCase();){if("TD"===t.tagName.toUpperCase())return t;t=t.parentNode}return null},pn=function(e){return null!==e&&"object"===(void 0===e?"undefined":dn(e))},An=function(e,t,n,r,i){if(!t&&!r&&(!i||Array.isArray(i)&&!i.length))return e;n="string"==typeof n?"descending"===n?-1:1:n&&n<0?-1:1;var a=r?null:function(n,r){return i?(Array.isArray(i)||(i=[i]),i.map(function(t){return"string"==typeof t?Object(A.getValueByPath)(n,t):t(n,r,e)})):("$key"!==t&&pn(n)&&"$value"in n&&(n=n.$value),[pn(n)?Object(A.getValueByPath)(n,t):n])};return e.map(function(e,t){return{value:e,index:t,key:a?a(e,t):null}}).sort(function(e,t){var i=function(e,t){if(r)return r(e.value,t.value);for(var n=0,i=e.key.length;n<i;n++){if(e.key[n]<t.key[n])return-1;if(e.key[n]>t.key[n])return 1}return 0}(e,t);return i||(i=e.index-t.index),i*n}).map(function(e){return e.value})},gn=function(e,t){var n=null;return e.columns.forEach(function(e){e.id===t&&(n=e)}),n},mn=function(e,t){var n=(t.className||"").match(/el-table_[^\s]+/gm);return n?gn(e,n[0]):null},vn=function(e,t){if(!e)throw new Error("row is required when get row identity");if("string"==typeof t){if(t.indexOf(".")<0)return e[t];for(var n=t.split("."),r=e,i=0;i<n.length;i++)r=r[n[i]];return r}if("function"==typeof t)return t.call(null,e)},yn=function(e,t){var n={};return(e||[]).forEach(function(e,r){n[vn(e,t)]={row:e,index:r}}),n};function bn(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function wn(e){return void 0!==e&&(e=parseInt(e,10),isNaN(e)&&(e=null)),e}function xn(e){return"number"==typeof e?e:"string"==typeof e?/^\d+(?:px)?$/.test(e)?parseInt(e,10):e:null}function _n(e,t,n){var r=!1,i=e.indexOf(t),a=-1!==i,o=function(){e.push(t),r=!0},s=function(){e.splice(i,1),r=!0};return"boolean"==typeof n?n&&!a?o():!n&&a&&s():a?s():o(),r}function Cn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"children",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"hasChildren",i=function(e){return!(Array.isArray(e)&&e.length)};e.forEach(function(e){if(e[r])t(e,null,0);else{var a=e[n];i(a)||function e(a,o,s){t(a,o,s),o.forEach(function(a){if(a[r])t(a,null,s+1);else{var o=a[n];i(o)||e(a,o,s+1)}})}(e,a,0)}})}var Sn={data:function(){return{states:{defaultExpandAll:!1,expandRows:[]}}},methods:{updateExpandRows:function(){var e=this.states,t=e.data,n=void 0===t?[]:t,r=e.rowKey,i=e.defaultExpandAll,a=e.expandRows;if(i)this.states.expandRows=n.slice();else if(r){var o=yn(a,r);this.states.expandRows=n.reduce(function(e,t){var n=vn(t,r);return o[n]&&e.push(t),e},[])}else this.states.expandRows=[]},toggleRowExpansion:function(e,t){_n(this.states.expandRows,e,t)&&(this.table.$emit("expand-change",e,this.states.expandRows.slice()),this.scheduleLayout())},setExpandRowKeys:function(e){this.assertRowKey();var t=this.states,n=t.data,r=t.rowKey,i=yn(n,r);this.states.expandRows=e.reduce(function(e,t){var n=i[t];return n&&e.push(n.row),e},[])},isRowExpanded:function(e){var t=this.states,n=t.expandRows,r=void 0===n?[]:n,i=t.rowKey;return i?!!yn(r,i)[vn(e,i)]:-1!==r.indexOf(e)}}},kn={data:function(){return{states:{_currentRowKey:null,currentRow:null}}},methods:{setCurrentRowKey:function(e){this.assertRowKey(),this.states._currentRowKey=e,this.setCurrentRowByKey(e)},restoreCurrentRowKey:function(){this.states._currentRowKey=null},setCurrentRowByKey:function(e){var t=this.states,n=t.data,r=void 0===n?[]:n,i=t.rowKey,a=null;i&&(a=Object(A.arrayFind)(r,function(t){return vn(t,i)===e})),t.currentRow=a},updateCurrentRow:function(e){var t=this.states,n=this.table,r=t.currentRow;if(e&&e!==r)return t.currentRow=e,void n.$emit("current-change",e,r);!e&&r&&(t.currentRow=null,n.$emit("current-change",null,r))},updateCurrentRowData:function(){var e=this.states,t=this.table,n=e.rowKey,r=e._currentRowKey,i=e.data||[],a=e.currentRow;if(-1===i.indexOf(a)&&a){if(n){var o=vn(a,n);this.setCurrentRowByKey(o)}else e.currentRow=null;null===e.currentRow&&t.$emit("current-change",null,a)}else r&&(this.setCurrentRowByKey(r),this.restoreCurrentRowKey())}}},Bn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},En={data:function(){return{states:{expandRowKeys:[],treeData:{},indent:16,lazy:!1,lazyTreeNodeMap:{},lazyColumnIdentifier:"hasChildren",childrenColumnName:"children"}}},computed:{normalizedData:function(){if(!this.states.rowKey)return{};var e=this.states.data||[];return this.normalize(e)},normalizedLazyNode:function(){var e=this.states,t=e.rowKey,n=e.lazyTreeNodeMap,r=e.lazyColumnIdentifier,i=Object.keys(n),a={};return i.length?(i.forEach(function(e){if(n[e].length){var i={children:[]};n[e].forEach(function(e){var n=vn(e,t);i.children.push(n),e[r]&&!a[n]&&(a[n]={children:[]})}),a[e]=i}}),a):a}},watch:{normalizedData:"updateTreeData",normalizedLazyNode:"updateTreeData"},methods:{normalize:function(e){var t=this.states,n=t.childrenColumnName,r=t.lazyColumnIdentifier,i=t.rowKey,a=t.lazy,o={};return Cn(e,function(e,t,n){var r=vn(e,i);Array.isArray(t)?o[r]={children:t.map(function(e){return vn(e,i)}),level:n}:a&&(o[r]={children:[],lazy:!0,level:n})},n,r),o},updateTreeData:function(){var e=this.normalizedData,t=this.normalizedLazyNode,n=Object.keys(e),r={};if(n.length){var i=this.states,a=i.treeData,o=i.defaultExpandAll,s=i.expandRowKeys,l=i.lazy,c=[],u=function(e,t){var n=o||s&&-1!==s.indexOf(t);return!!(e&&e.expanded||n)};n.forEach(function(t){var n=a[t],i=Bn({},e[t]);if(i.expanded=u(n,t),i.lazy){var o=n||{},s=o.loaded,l=void 0!==s&&s,h=o.loading,d=void 0!==h&&h;i.loaded=!!l,i.loading=!!d,c.push(t)}r[t]=i});var h=Object.keys(t);l&&h.length&&c.length&&h.forEach(function(e){var n=a[e],i=t[e].children;if(-1!==c.indexOf(e)){if(0!==r[e].children.length)throw new Error("[ElTable]children must be an empty array.");r[e].children=i}else{var o=n||{},s=o.loaded,l=void 0!==s&&s,h=o.loading,d=void 0!==h&&h;r[e]={lazy:!0,loaded:!!l,loading:!!d,expanded:u(n,e),children:i,level:""}}})}this.states.treeData=r,this.updateTableScrollY()},updateTreeExpandKeys:function(e){this.states.expandRowKeys=e,this.updateTreeData()},toggleTreeExpansion:function(e,t){this.assertRowKey();var n=this.states,r=n.rowKey,i=n.treeData,a=vn(e,r),o=a&&i[a];if(a&&o&&"expanded"in o){var s=o.expanded;t=void 0===t?!o.expanded:t,i[a].expanded=t,s!==t&&this.table.$emit("expand-change",e,t),this.updateTableScrollY()}},loadOrToggle:function(e){this.assertRowKey();var t=this.states,n=t.lazy,r=t.treeData,i=t.rowKey,a=vn(e,i),o=r[a];n&&o&&"loaded"in o&&!o.loaded?this.loadData(e,a,o):this.toggleTreeExpansion(e)},loadData:function(e,t,n){var r=this,i=this.table.load,a=this.states,o=a.lazyTreeNodeMap,s=a.treeData;i&&!s[t].loaded&&(s[t].loading=!0,i(e,n,function(n){if(!Array.isArray(n))throw new Error("[ElTable] data must be an array");s[t].loading=!1,s[t].loaded=!0,s[t].expanded=!0,n.length&&r.$set(o,t,n),r.table.$emit("expand-change",e,!0)}))}}},Tn=function e(t){var n=[];return t.forEach(function(t){t.children?n.push.apply(n,e(t.children)):n.push(t)}),n},In=hn.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:[Sn,kn,En],methods:{assertRowKey:function(){if(!this.states.rowKey)throw new Error("[ElTable] prop row-key is required")},updateColumns:function(){var e=this.states,t=e._columns||[];e.fixedColumns=t.filter(function(e){return!0===e.fixed||"left"===e.fixed}),e.rightFixedColumns=t.filter(function(e){return"right"===e.fixed}),e.fixedColumns.length>0&&t[0]&&"selection"===t[0].type&&!t[0].fixed&&(t[0].fixed=!0,e.fixedColumns.unshift(t[0]));var n=t.filter(function(e){return!e.fixed});e.originColumns=[].concat(e.fixedColumns).concat(n).concat(e.rightFixedColumns);var r=Tn(n),i=Tn(e.fixedColumns),a=Tn(e.rightFixedColumns);e.leafColumnsLength=r.length,e.fixedLeafColumnsLength=i.length,e.rightFixedLeafColumnsLength=a.length,e.columns=[].concat(i).concat(r).concat(a),e.isComplex=e.fixedColumns.length>0||e.rightFixedColumns.length>0},scheduleLayout:function(e){e&&this.updateColumns(),this.table.debouncedUpdateLayout()},isSelected:function(e){var t=this.states.selection;return(void 0===t?[]:t).indexOf(e)>-1},clearSelection:function(){var e=this.states;e.isAllSelected=!1,e.selection.length&&(e.selection=[],this.table.$emit("selection-change",[]))},cleanSelection:function(){var e=this.states,t=e.data,n=e.rowKey,r=e.selection,i=void 0;if(n){i=[];var a=yn(r,n),o=yn(t,n);for(var s in a)a.hasOwnProperty(s)&&!o[s]&&i.push(a[s].row)}else i=r.filter(function(e){return-1===t.indexOf(e)});if(i.length){var l=r.filter(function(e){return-1===i.indexOf(e)});e.selection=l,this.table.$emit("selection-change",l.slice())}},toggleRowSelection:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(_n(this.states.selection,e,t)){var r=(this.states.selection||[]).slice();n&&this.table.$emit("select",r,e),this.table.$emit("selection-change",r)}},_toggleAllSelection:function(){var e=this.states,t=e.data,n=void 0===t?[]:t,r=e.selection,i=e.selectOnIndeterminate?!e.isAllSelected:!(e.isAllSelected||r.length);e.isAllSelected=i;var a=!1;n.forEach(function(t,n){e.selectable?e.selectable.call(null,t,n)&&_n(r,t,i)&&(a=!0):_n(r,t,i)&&(a=!0)}),a&&this.table.$emit("selection-change",r?r.slice():[]),this.table.$emit("select-all",r)},updateSelectionByRowKey:function(){var e=this.states,t=e.selection,n=e.rowKey,r=e.data,i=yn(t,n);r.forEach(function(e){var r=vn(e,n),a=i[r];a&&(t[a.index]=e)})},updateAllSelected:function(){var e=this.states,t=e.selection,n=e.rowKey,r=e.selectable,i=e.data||[];if(0!==i.length){var a=void 0;n&&(a=yn(t,n));for(var o,s=!0,l=0,c=0,u=i.length;c<u;c++){var h=i[c],d=r&&r.call(null,h,c);if(o=h,a?a[vn(o,n)]:-1!==t.indexOf(o))l++;else if(!r||d){s=!1;break}}0===l&&(s=!1),e.isAllSelected=s}else e.isAllSelected=!1},updateFilters:function(e,t){Array.isArray(e)||(e=[e]);var n=this.states,r={};return e.forEach(function(e){n.filters[e.id]=t,r[e.columnKey||e.id]=t}),r},updateSort:function(e,t,n){this.states.sortingColumn&&this.states.sortingColumn!==e&&(this.states.sortingColumn.order=null),this.states.sortingColumn=e,this.states.sortProp=t,this.states.sortOrder=n},execFilter:function(){var e=this,t=this.states,n=t._data,r=t.filters,i=n;Object.keys(r).forEach(function(n){var r=t.filters[n];if(r&&0!==r.length){var a=gn(e.states,n);a&&a.filterMethod&&(i=i.filter(function(e){return r.some(function(t){return a.filterMethod.call(null,t,e,a)})}))}}),t.filteredData=i},execSort:function(){var e=this.states;e.data=function(e,t){var n=t.sortingColumn;return n&&"string"!=typeof n.sortable?An(e,t.sortProp,t.sortOrder,n.sortMethod,n.sortBy):e}(e.filteredData,e)},execQuery:function(e){e&&e.filter||this.execFilter(),this.execSort()},clearFilter:function(e){var t=this.states,n=this.table.$refs,r=n.tableHeader,i=n.fixedTableHeader,a=n.rightFixedTableHeader,o={};r&&(o=je()(o,r.filterPanels)),i&&(o=je()(o,i.filterPanels)),a&&(o=je()(o,a.filterPanels));var s=Object.keys(o);if(s.length)if("string"==typeof e&&(e=[e]),Array.isArray(e)){var l=e.map(function(e){return function(e,t){for(var n=null,r=0;r<e.columns.length;r++){var i=e.columns[r];if(i.columnKey===t){n=i;break}}return n}(t,e)});s.forEach(function(e){l.find(function(t){return t.id===e})&&(o[e].filteredValue=[])}),this.commit("filterChange",{column:l,values:[],silent:!0,multi:!0})}else s.forEach(function(e){o[e].filteredValue=[]}),t.filters={},this.commit("filterChange",{column:{},values:[],silent:!0})},clearSort:function(){this.states.sortingColumn&&(this.updateSort(null,null,null),this.commit("changeSortCondition",{silent:!0}))},setExpandRowKeysAdapter:function(e){this.setExpandRowKeys(e),this.updateTreeExpandKeys(e)},toggleRowExpansionAdapter:function(e,t){this.states.columns.some(function(e){return"expand"===e.type})?this.toggleRowExpansion(e,t):this.toggleTreeExpansion(e,t)}}});In.prototype.mutations={setData:function(e,t){var n=e._data!==t;e._data=t,this.execQuery(),this.updateCurrentRowData(),this.updateExpandRows(),e.reserveSelection?(this.assertRowKey(),this.updateSelectionByRowKey()):n?this.clearSelection():this.cleanSelection(),this.updateAllSelected(),this.updateTableScrollY()},insertColumn:function(e,t,n,r){var i=e._columns;r&&((i=r.children)||(i=r.children=[])),void 0!==n?i.splice(n,0,t):i.push(t),"selection"===t.type&&(e.selectable=t.selectable,e.reserveSelection=t.reserveSelection),this.table.$ready&&(this.updateColumns(),this.scheduleLayout())},removeColumn:function(e,t,n){var r=e._columns;n&&((r=n.children)||(r=n.children=[])),r&&r.splice(r.indexOf(t),1),this.table.$ready&&(this.updateColumns(),this.scheduleLayout())},sort:function(e,t){var n=t.prop,r=t.order,i=t.init;if(n){var a=Object(A.arrayFind)(e.columns,function(e){return e.property===n});a&&(a.order=r,this.updateSort(a,n,r),this.commit("changeSortCondition",{init:i}))}},changeSortCondition:function(e,t){var n=e.sortingColumn,r=e.sortProp,i=e.sortOrder;null===i&&(e.sortingColumn=null,e.sortProp=null);this.execQuery({filter:!0}),t&&(t.silent||t.init)||this.table.$emit("sort-change",{column:n,prop:r,order:i}),this.updateTableScrollY()},filterChange:function(e,t){var n=t.column,r=t.values,i=t.silent,a=this.updateFilters(n,r);this.execQuery(),i||this.table.$emit("filter-change",a),this.updateTableScrollY()},toggleAllSelection:function(){this.toggleAllSelection()},rowSelectedChanged:function(e,t){this.toggleRowSelection(t),this.updateAllSelected()},setHoverRow:function(e,t){e.hoverRow=t},setCurrentRow:function(e,t){this.updateCurrentRow(t)}},In.prototype.commit=function(e){var t=this.mutations;if(!t[e])throw new Error("Action not found: "+e);for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];t[e].apply(this,[this.states].concat(r))},In.prototype.updateTableScrollY=function(){hn.a.nextTick(this.table.updateScrollY)};var Mn=In;function Fn(e){var t={};return Object.keys(e).forEach(function(n){var r=e[n],i=void 0;"string"==typeof r?i=function(){return this.store.states[r]}:"function"==typeof r?i=function(){return r.call(this,this.store.states)}:console.error("invalid value type"),i&&(t[n]=i)}),t}var Dn=n(30),Pn=n.n(Dn);var On=function(){function e(t){for(var n in function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.observers=[],this.table=null,this.store=null,this.columns=null,this.fit=!0,this.showHeader=!0,this.height=null,this.scrollX=!1,this.scrollY=!1,this.bodyWidth=null,this.fixedWidth=null,this.rightFixedWidth=null,this.tableHeight=null,this.headerHeight=44,this.appendHeight=0,this.footerHeight=44,this.viewportHeight=null,this.bodyHeight=null,this.fixedBodyHeight=null,this.gutterWidth=Pn()(),t)t.hasOwnProperty(n)&&(this[n]=t[n]);if(!this.table)throw new Error("table is required for Table Layout");if(!this.store)throw new Error("store is required for Table Layout")}return e.prototype.updateScrollY=function(){if(null===this.height)return!1;var e=this.table.bodyWrapper;if(this.table.$el&&e){var t=e.querySelector(".el-table__body"),n=this.scrollY,r=t.offsetHeight>this.bodyHeight;return this.scrollY=r,n!==r}return!1},e.prototype.setHeight=function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"height";if(!hn.a.prototype.$isServer){var r=this.table.$el;if(e=xn(e),this.height=e,!r&&(e||0===e))return hn.a.nextTick(function(){return t.setHeight(e,n)});"number"==typeof e?(r.style[n]=e+"px",this.updateElsHeight()):"string"==typeof e&&(r.style[n]=e,this.updateElsHeight())}},e.prototype.setMaxHeight=function(e){this.setHeight(e,"max-height")},e.prototype.getFlattenColumns=function(){var e=[];return this.table.columns.forEach(function(t){t.isColumnGroup?e.push.apply(e,t.columns):e.push(t)}),e},e.prototype.updateElsHeight=function(){var e=this;if(!this.table.$ready)return hn.a.nextTick(function(){return e.updateElsHeight()});var t=this.table.$refs,n=t.headerWrapper,r=t.appendWrapper,i=t.footerWrapper;if(this.appendHeight=r?r.offsetHeight:0,!this.showHeader||n){var a=n?n.querySelector(".el-table__header tr"):null,o=this.headerDisplayNone(a),s=this.headerHeight=this.showHeader?n.offsetHeight:0;if(this.showHeader&&!o&&n.offsetWidth>0&&(this.table.columns||[]).length>0&&s<2)return hn.a.nextTick(function(){return e.updateElsHeight()});var l=this.tableHeight=this.table.$el.clientHeight,c=this.footerHeight=i?i.offsetHeight:0;null!==this.height&&(this.bodyHeight=l-s-c+(i?1:0)),this.fixedBodyHeight=this.scrollX?this.bodyHeight-this.gutterWidth:this.bodyHeight;var u=!(this.store.states.data&&this.store.states.data.length);this.viewportHeight=this.scrollX?l-(u?0:this.gutterWidth):l,this.updateScrollY(),this.notifyObservers("scrollable")}},e.prototype.headerDisplayNone=function(e){if(!e)return!0;for(var t=e;"DIV"!==t.tagName;){if("none"===getComputedStyle(t).display)return!0;t=t.parentElement}return!1},e.prototype.updateColumnsWidth=function(){if(!hn.a.prototype.$isServer){var e=this.fit,t=this.table.$el.clientWidth,n=0,r=this.getFlattenColumns(),i=r.filter(function(e){return"number"!=typeof e.width});if(r.forEach(function(e){"number"==typeof e.width&&e.realWidth&&(e.realWidth=null)}),i.length>0&&e){r.forEach(function(e){n+=e.width||e.minWidth||80});var a=this.scrollY?this.gutterWidth:0;if(n<=t-a){this.scrollX=!1;var o=t-a-n;if(1===i.length)i[0].realWidth=(i[0].minWidth||80)+o;else{var s=o/i.reduce(function(e,t){return e+(t.minWidth||80)},0),l=0;i.forEach(function(e,t){if(0!==t){var n=Math.floor((e.minWidth||80)*s);l+=n,e.realWidth=(e.minWidth||80)+n}}),i[0].realWidth=(i[0].minWidth||80)+o-l}}else this.scrollX=!0,i.forEach(function(e){e.realWidth=e.minWidth});this.bodyWidth=Math.max(n,t),this.table.resizeState.width=this.bodyWidth}else r.forEach(function(e){e.width||e.minWidth?e.realWidth=e.width||e.minWidth:e.realWidth=80,n+=e.realWidth}),this.scrollX=n>t,this.bodyWidth=n;var c=this.store.states.fixedColumns;if(c.length>0){var u=0;c.forEach(function(e){u+=e.realWidth||e.width}),this.fixedWidth=u}var h=this.store.states.rightFixedColumns;if(h.length>0){var d=0;h.forEach(function(e){d+=e.realWidth||e.width}),this.rightFixedWidth=d}this.notifyObservers("columns")}},e.prototype.addObserver=function(e){this.observers.push(e)},e.prototype.removeObserver=function(e){var t=this.observers.indexOf(e);-1!==t&&this.observers.splice(t,1)},e.prototype.notifyObservers=function(e){var t=this;this.observers.forEach(function(n){switch(e){case"columns":n.onColumnsChange(t);break;case"scrollable":n.onScrollableChange(t);break;default:throw new Error("Table Layout don't have event "+e+".")}})},e}(),Ln={created:function(){this.tableLayout.addObserver(this)},destroyed:function(){this.tableLayout.removeObserver(this)},computed:{tableLayout:function(){var e=this.layout;if(!e&&this.table&&(e=this.table.layout),!e)throw new Error("Can not find table layout.");return e}},mounted:function(){this.onColumnsChange(this.tableLayout),this.onScrollableChange(this.tableLayout)},updated:function(){this.__updated__||(this.onColumnsChange(this.tableLayout),this.onScrollableChange(this.tableLayout),this.__updated__=!0)},methods:{onColumnsChange:function(e){var t=this.$el.querySelectorAll("colgroup > col");if(t.length){var n={};e.getFlattenColumns().forEach(function(e){n[e.id]=e});for(var r=0,i=t.length;r<i;r++){var a=t[r],o=a.getAttribute("name"),s=n[o];s&&a.setAttribute("width",s.realWidth||s.width)}}},onScrollableChange:function(e){for(var t=this.$el.querySelectorAll("colgroup > col[name=gutter]"),n=0,r=t.length;n<r;n++){t[n].setAttribute("width",e.scrollY?e.gutterWidth:"0")}for(var i=this.$el.querySelectorAll("th.gutter"),a=0,o=i.length;a<o;a++){var s=i[a];s.style.width=e.scrollY?e.gutterWidth+"px":"0",s.style.display=e.scrollY?"":"none"}}}},Rn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Nn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Un={name:"ElTableBody",mixins:[Ln],components:{ElCheckbox:rn.a,ElTooltip:Be.a},props:{store:{required:!0},stripe:Boolean,context:{},rowClassName:[String,Function],rowStyle:[Object,Function],fixed:String,highlight:Boolean},render:function(e){var t=this,n=this.data||[];return e("table",{class:"el-table__body",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[e("colgroup",[this.columns.map(function(t){return e("col",{attrs:{name:t.id},key:t.id})})]),e("tbody",[n.reduce(function(e,n){return e.concat(t.wrappedRowRender(n,e.length))},[]),e("el-tooltip",{attrs:{effect:this.table.tooltipEffect,placement:"top",content:this.tooltipContent},ref:"tooltip"})])])},computed:Nn({table:function(){return this.$parent}},Fn({data:"data",columns:"columns",treeIndent:"indent",leftFixedLeafCount:"fixedLeafColumnsLength",rightFixedLeafCount:"rightFixedLeafColumnsLength",columnsCount:function(e){return e.columns.length},leftFixedCount:function(e){return e.fixedColumns.length},rightFixedCount:function(e){return e.rightFixedColumns.length},hasExpandColumn:function(e){return e.columns.some(function(e){return"expand"===e.type})}}),{firstDefaultColumnIndex:function(){return Object(A.arrayFindIndex)(this.columns,function(e){return"default"===e.type})}}),watch:{"store.states.hoverRow":function(e,t){var n=this;if(this.store.states.isComplex&&!this.$isServer){var r=window.requestAnimationFrame;r||(r=function(e){return setTimeout(e,16)}),r(function(){var r=n.$el.querySelectorAll(".el-table__row"),i=r[t],a=r[e];i&&Object(pe.removeClass)(i,"hover-row"),a&&Object(pe.addClass)(a,"hover-row")})}}},data:function(){return{tooltipContent:""}},created:function(){this.activateTooltip=I()(50,function(e){return e.handleShowPopper()})},methods:{getKeyOfRow:function(e,t){var n=this.table.rowKey;return n?vn(e,n):t},isColumnHidden:function(e){return!0===this.fixed||"left"===this.fixed?e>=this.leftFixedLeafCount:"right"===this.fixed?e<this.columnsCount-this.rightFixedLeafCount:e<this.leftFixedLeafCount||e>=this.columnsCount-this.rightFixedLeafCount},getSpan:function(e,t,n,r){var i=1,a=1,o=this.table.spanMethod;if("function"==typeof o){var s=o({row:e,column:t,rowIndex:n,columnIndex:r});Array.isArray(s)?(i=s[0],a=s[1]):"object"===(void 0===s?"undefined":Rn(s))&&(i=s.rowspan,a=s.colspan)}return{rowspan:i,colspan:a}},getRowStyle:function(e,t){var n=this.table.rowStyle;return"function"==typeof n?n.call(null,{row:e,rowIndex:t}):n||null},getRowClass:function(e,t){var n=["el-table__row"];this.table.highlightCurrentRow&&e===this.store.states.currentRow&&n.push("current-row"),this.stripe&&t%2==1&&n.push("el-table__row--striped");var r=this.table.rowClassName;return"string"==typeof r?n.push(r):"function"==typeof r&&n.push(r.call(null,{row:e,rowIndex:t})),this.store.states.expandRows.indexOf(e)>-1&&n.push("expanded"),n},getCellStyle:function(e,t,n,r){var i=this.table.cellStyle;return"function"==typeof i?i.call(null,{rowIndex:e,columnIndex:t,row:n,column:r}):i},getCellClass:function(e,t,n,r){var i=[r.id,r.align,r.className];this.isColumnHidden(t)&&i.push("is-hidden");var a=this.table.cellClassName;return"string"==typeof a?i.push(a):"function"==typeof a&&i.push(a.call(null,{rowIndex:e,columnIndex:t,row:n,column:r})),i.join(" ")},getColspanRealWidth:function(e,t,n){return t<1?e[n].realWidth:e.map(function(e){return e.realWidth}).slice(n,n+t).reduce(function(e,t){return e+t},-1)},handleCellMouseEnter:function(e,t){var n=this.table,r=fn(e);if(r){var i=mn(n,r),a=n.hoverState={cell:r,column:i,row:t};n.$emit("cell-mouse-enter",a.row,a.column,a.cell,e)}var o=e.target.querySelector(".cell");if(Object(pe.hasClass)(o,"el-tooltip")&&o.childNodes.length){var s=document.createRange();if(s.setStart(o,0),s.setEnd(o,o.childNodes.length),(s.getBoundingClientRect().width+((parseInt(Object(pe.getStyle)(o,"paddingLeft"),10)||0)+(parseInt(Object(pe.getStyle)(o,"paddingRight"),10)||0))>o.offsetWidth||o.scrollWidth>o.offsetWidth)&&this.$refs.tooltip){var l=this.$refs.tooltip;this.tooltipContent=r.innerText||r.textContent,l.referenceElm=r,l.$refs.popper&&(l.$refs.popper.style.display="none"),l.doDestroy(),l.setExpectedState(!0),this.activateTooltip(l)}}},handleCellMouseLeave:function(e){var t=this.$refs.tooltip;if(t&&(t.setExpectedState(!1),t.handleClosePopper()),fn(e)){var n=this.table.hoverState||{};this.table.$emit("cell-mouse-leave",n.row,n.column,n.cell,e)}},handleMouseEnter:I()(30,function(e){this.store.commit("setHoverRow",e)}),handleMouseLeave:I()(30,function(){this.store.commit("setHoverRow",null)}),handleContextMenu:function(e,t){this.handleEvent(e,t,"contextmenu")},handleDoubleClick:function(e,t){this.handleEvent(e,t,"dblclick")},handleClick:function(e,t){this.store.commit("setCurrentRow",t),this.handleEvent(e,t,"click")},handleEvent:function(e,t,n){var r=this.table,i=fn(e),a=void 0;i&&(a=mn(r,i))&&r.$emit("cell-"+n,t,a,i,e),r.$emit("row-"+n,t,a,e)},rowRender:function(e,t,n){var r=this,i=this.$createElement,a=this.treeIndent,o=this.columns,s=this.firstDefaultColumnIndex,l=o.map(function(e,t){return r.isColumnHidden(t)}),c=this.getRowClass(e,t),u=!0;return n&&(c.push("el-table__row--level-"+n.level),u=n.display),i("tr",{style:[u?null:{display:"none"},this.getRowStyle(e,t)],class:c,key:this.getKeyOfRow(e,t),on:{dblclick:function(t){return r.handleDoubleClick(t,e)},click:function(t){return r.handleClick(t,e)},contextmenu:function(t){return r.handleContextMenu(t,e)},mouseenter:function(e){return r.handleMouseEnter(t)},mouseleave:this.handleMouseLeave}},[o.map(function(c,u){var h=r.getSpan(e,c,t,u),d=h.rowspan,f=h.colspan;if(!d||!f)return null;var p=Nn({},c);p.realWidth=r.getColspanRealWidth(o,f,u);var A={store:r.store,_self:r.context||r.table.$vnode.context,column:p,row:e,$index:t};return u===s&&n&&(A.treeNode={indent:n.level*a,level:n.level},"boolean"==typeof n.expanded&&(A.treeNode.expanded=n.expanded,"loading"in n&&(A.treeNode.loading=n.loading),"noLazyChildren"in n&&(A.treeNode.noLazyChildren=n.noLazyChildren))),i("td",{style:r.getCellStyle(t,u,e,c),class:r.getCellClass(t,u,e,c),attrs:{rowspan:d,colspan:f},on:{mouseenter:function(t){return r.handleCellMouseEnter(t,e)},mouseleave:r.handleCellMouseLeave}},[c.renderCell.call(r._renderProxy,r.$createElement,A,l[u])])})])},wrappedRowRender:function(e,t){var n=this,r=this.$createElement,i=this.store,a=i.isRowExpanded,o=i.assertRowKey,s=i.states,l=s.treeData,c=s.lazyTreeNodeMap,u=s.childrenColumnName,h=s.rowKey;if(this.hasExpandColumn&&a(e)){var d=this.table.renderExpanded,f=this.rowRender(e,t);return d?[[f,r("tr",{key:"expanded-row__"+f.key},[r("td",{attrs:{colspan:this.columnsCount},class:"el-table__expanded-cell"},[d(this.$createElement,{row:e,$index:t,store:this.store})])])]]:(console.error("[Element Error]renderExpanded is required."),f)}if(Object.keys(l).length){o();var p=vn(e,h),A=l[p],g=null;A&&(g={expanded:A.expanded,level:A.level,display:!0},"boolean"==typeof A.lazy&&("boolean"==typeof A.loaded&&A.loaded&&(g.noLazyChildren=!(A.children&&A.children.length)),g.loading=A.loading));var m=[this.rowRender(e,t,g)];if(A){var v=0;A.display=!0,function e(r,i){r&&r.length&&i&&r.forEach(function(r){var a={display:i.display&&i.expanded,level:i.level+1},o=vn(r,h);if(void 0===o||null===o)throw new Error("for nested data item, row-key is required.");if((A=Nn({},l[o]))&&(a.expanded=A.expanded,A.level=A.level||a.level,A.display=!(!A.expanded||!a.display),"boolean"==typeof A.lazy&&("boolean"==typeof A.loaded&&A.loaded&&(a.noLazyChildren=!(A.children&&A.children.length)),a.loading=A.loading)),v++,m.push(n.rowRender(r,t+v,a)),A){var s=c[o]||r[u];e(s,A)}})}(c[p]||e[u],A)}return m}return this.rowRender(e,t)}}},Hn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-zoom-in-top"}},[e.multiple?n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.handleOutsideClick,expression:"handleOutsideClick"},{name:"show",rawName:"v-show",value:e.showPopper,expression:"showPopper"}],staticClass:"el-table-filter"},[n("div",{staticClass:"el-table-filter__content"},[n("el-scrollbar",{attrs:{"wrap-class":"el-table-filter__wrap"}},[n("el-checkbox-group",{staticClass:"el-table-filter__checkbox-group",model:{value:e.filteredValue,callback:function(t){e.filteredValue=t},expression:"filteredValue"}},e._l(e.filters,function(t){return n("el-checkbox",{key:t.value,attrs:{label:t.value}},[e._v(e._s(t.text))])}),1)],1)],1),n("div",{staticClass:"el-table-filter__bottom"},[n("button",{class:{"is-disabled":0===e.filteredValue.length},attrs:{disabled:0===e.filteredValue.length},on:{click:e.handleConfirm}},[e._v(e._s(e.t("el.table.confirmFilter")))]),n("button",{on:{click:e.handleReset}},[e._v(e._s(e.t("el.table.resetFilter")))])])]):n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.handleOutsideClick,expression:"handleOutsideClick"},{name:"show",rawName:"v-show",value:e.showPopper,expression:"showPopper"}],staticClass:"el-table-filter"},[n("ul",{staticClass:"el-table-filter__list"},[n("li",{staticClass:"el-table-filter__list-item",class:{"is-active":void 0===e.filterValue||null===e.filterValue},on:{click:function(t){e.handleSelect(null)}}},[e._v(e._s(e.t("el.table.clearFilter")))]),e._l(e.filters,function(t){return n("li",{key:t.value,staticClass:"el-table-filter__list-item",class:{"is-active":e.isActive(t)},attrs:{label:t.value},on:{click:function(n){e.handleSelect(t.value)}}},[e._v(e._s(t.text))])})],2)])])};Hn._withStripped=!0;var jn=[];!hn.a.prototype.$isServer&&document.addEventListener("click",function(e){jn.forEach(function(t){var n=e.target;t&&t.$el&&(n===t.$el||t.$el.contains(n)||t.handleOutsideClick&&t.handleOutsideClick(e))})});var Qn=function(e){e&&jn.push(e)},zn=function(e){-1!==jn.indexOf(e)&&jn.splice(e,1)},Vn=n(31),Gn=n.n(Vn),$n=i({name:"ElTableFilterPanel",mixins:[O.a,p.a],directives:{Clickoutside:F.a},components:{ElCheckbox:rn.a,ElCheckboxGroup:Gn.a,ElScrollbar:R.a},props:{placement:{type:String,default:"bottom-end"}},methods:{isActive:function(e){return e.value===this.filterValue},handleOutsideClick:function(){var e=this;setTimeout(function(){e.showPopper=!1},16)},handleConfirm:function(){this.confirmFilter(this.filteredValue),this.handleOutsideClick()},handleReset:function(){this.filteredValue=[],this.confirmFilter(this.filteredValue),this.handleOutsideClick()},handleSelect:function(e){this.filterValue=e,void 0!==e&&null!==e?this.confirmFilter(this.filteredValue):this.confirmFilter([]),this.handleOutsideClick()},confirmFilter:function(e){this.table.store.commit("filterChange",{column:this.column,values:e}),this.table.store.updateAllSelected()}},data:function(){return{table:null,cell:null,column:null}},computed:{filters:function(){return this.column&&this.column.filters},filterValue:{get:function(){return(this.column.filteredValue||[])[0]},set:function(e){this.filteredValue&&(void 0!==e&&null!==e?this.filteredValue.splice(0,1,e):this.filteredValue.splice(0,1))}},filteredValue:{get:function(){return this.column&&this.column.filteredValue||[]},set:function(e){this.column&&(this.column.filteredValue=e)}},multiple:function(){return!this.column||this.column.filterMultiple}},mounted:function(){var e=this;this.popperElm=this.$el,this.referenceElm=this.cell,this.table.bodyWrapper.addEventListener("scroll",function(){e.updatePopper()}),this.$watch("showPopper",function(t){e.column&&(e.column.filterOpened=t),t?Qn(e):zn(e)})},watch:{showPopper:function(e){!0===e&&parseInt(this.popperJS._popper.style.zIndex,10)<y.PopupManager.zIndex&&(this.popperJS._popper.style.zIndex=y.PopupManager.nextZIndex())}}},Hn,[],!1,null,null,null);$n.options.__file="packages/table/src/filter-panel.vue";var qn=$n.exports,Wn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Kn=function(e){var t=1;e.forEach(function(e){e.level=1,function e(n,r){if(r&&(n.level=r.level+1,t<n.level&&(t=n.level)),n.children){var i=0;n.children.forEach(function(t){e(t,n),i+=t.colSpan}),n.colSpan=i}else n.colSpan=1}(e)});for(var n=[],r=0;r<t;r++)n.push([]);return function e(t){var n=[];return t.forEach(function(t){t.children?(n.push(t),n.push.apply(n,e(t.children))):n.push(t)}),n}(e).forEach(function(e){e.children?e.rowSpan=1:e.rowSpan=t-e.level+1,n[e.level-1].push(e)}),n},Yn={name:"ElTableHeader",mixins:[Ln],render:function(e){var t=this,n=this.store.states.originColumns,r=Kn(n,this.columns),i=r.length>1;return i&&(this.$parent.isGroup=!0),e("table",{class:"el-table__header",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[e("colgroup",[this.columns.map(function(t){return e("col",{attrs:{name:t.id},key:t.id})}),this.hasGutter?e("col",{attrs:{name:"gutter"}}):""]),e("thead",{class:[{"is-group":i,"has-gutter":this.hasGutter}]},[this._l(r,function(n,r){return e("tr",{style:t.getHeaderRowStyle(r),class:t.getHeaderRowClass(r)},[n.map(function(i,a){return e("th",{attrs:{colspan:i.colSpan,rowspan:i.rowSpan},on:{mousemove:function(e){return t.handleMouseMove(e,i)},mouseout:t.handleMouseOut,mousedown:function(e){return t.handleMouseDown(e,i)},click:function(e){return t.handleHeaderClick(e,i)},contextmenu:function(e){return t.handleHeaderContextMenu(e,i)}},style:t.getHeaderCellStyle(r,a,n,i),class:t.getHeaderCellClass(r,a,n,i),key:i.id},[e("div",{class:["cell",i.filteredValue&&i.filteredValue.length>0?"highlight":"",i.labelClassName]},[i.renderHeader?i.renderHeader.call(t._renderProxy,e,{column:i,$index:a,store:t.store,_self:t.$parent.$vnode.context}):i.label,i.sortable?e("span",{class:"caret-wrapper",on:{click:function(e){return t.handleSortClick(e,i)}}},[e("i",{class:"sort-caret ascending",on:{click:function(e){return t.handleSortClick(e,i,"ascending")}}}),e("i",{class:"sort-caret descending",on:{click:function(e){return t.handleSortClick(e,i,"descending")}}})]):"",i.filterable?e("span",{class:"el-table__column-filter-trigger",on:{click:function(e){return t.handleFilterClick(e,i)}}},[e("i",{class:["el-icon-arrow-down",i.filterOpened?"el-icon-arrow-up":""]})]):""])])}),t.hasGutter?e("th",{class:"gutter"}):""])})])])},props:{fixed:String,store:{required:!0},border:Boolean,defaultSort:{type:Object,default:function(){return{prop:"",order:""}}}},components:{ElCheckbox:rn.a},computed:Wn({table:function(){return this.$parent},hasGutter:function(){return!this.fixed&&this.tableLayout.gutterWidth}},Fn({columns:"columns",isAllSelected:"isAllSelected",leftFixedLeafCount:"fixedLeafColumnsLength",rightFixedLeafCount:"rightFixedLeafColumnsLength",columnsCount:function(e){return e.columns.length},leftFixedCount:function(e){return e.fixedColumns.length},rightFixedCount:function(e){return e.rightFixedColumns.length}})),created:function(){this.filterPanels={}},mounted:function(){var e=this;this.$nextTick(function(){var t=e.defaultSort,n=t.prop,r=t.order;e.store.commit("sort",{prop:n,order:r,init:!0})})},beforeDestroy:function(){var e=this.filterPanels;for(var t in e)e.hasOwnProperty(t)&&e[t]&&e[t].$destroy(!0)},methods:{isCellHidden:function(e,t){for(var n=0,r=0;r<e;r++)n+=t[r].colSpan;var i=n+t[e].colSpan-1;return!0===this.fixed||"left"===this.fixed?i>=this.leftFixedLeafCount:"right"===this.fixed?n<this.columnsCount-this.rightFixedLeafCount:i<this.leftFixedLeafCount||n>=this.columnsCount-this.rightFixedLeafCount},getHeaderRowStyle:function(e){var t=this.table.headerRowStyle;return"function"==typeof t?t.call(null,{rowIndex:e}):t},getHeaderRowClass:function(e){var t=[],n=this.table.headerRowClassName;return"string"==typeof n?t.push(n):"function"==typeof n&&t.push(n.call(null,{rowIndex:e})),t.join(" ")},getHeaderCellStyle:function(e,t,n,r){var i=this.table.headerCellStyle;return"function"==typeof i?i.call(null,{rowIndex:e,columnIndex:t,row:n,column:r}):i},getHeaderCellClass:function(e,t,n,r){var i=[r.id,r.order,r.headerAlign,r.className,r.labelClassName];0===e&&this.isCellHidden(t,n)&&i.push("is-hidden"),r.children||i.push("is-leaf"),r.sortable&&i.push("is-sortable");var a=this.table.headerCellClassName;return"string"==typeof a?i.push(a):"function"==typeof a&&i.push(a.call(null,{rowIndex:e,columnIndex:t,row:n,column:r})),i.join(" ")},toggleAllSelection:function(e){e.stopPropagation(),this.store.commit("toggleAllSelection")},handleFilterClick:function(e,t){e.stopPropagation();var n=e.target,r="TH"===n.tagName?n:n.parentNode;if(!Object(pe.hasClass)(r,"noclick")){r=r.querySelector(".el-table__column-filter-trigger")||r;var i=this.$parent,a=this.filterPanels[t.id];a&&t.filterOpened?a.showPopper=!1:(a||(a=new hn.a(qn),this.filterPanels[t.id]=a,t.filterPlacement&&(a.placement=t.filterPlacement),a.table=i,a.cell=r,a.column=t,!this.$isServer&&a.$mount(document.createElement("div"))),setTimeout(function(){a.showPopper=!0},16))}},handleHeaderClick:function(e,t){!t.filters&&t.sortable?this.handleSortClick(e,t):t.filterable&&!t.sortable&&this.handleFilterClick(e,t),this.$parent.$emit("header-click",t,e)},handleHeaderContextMenu:function(e,t){this.$parent.$emit("header-contextmenu",t,e)},handleMouseDown:function(e,t){var n=this;if(!this.$isServer&&!(t.children&&t.children.length>0)&&this.draggingColumn&&this.border){this.dragging=!0,this.$parent.resizeProxyVisible=!0;var r=this.$parent,i=r.$el.getBoundingClientRect().left,a=this.$el.querySelector("th."+t.id),o=a.getBoundingClientRect(),s=o.left-i+30;Object(pe.addClass)(a,"noclick"),this.dragState={startMouseLeft:e.clientX,startLeft:o.right-i,startColumnLeft:o.left-i,tableLeft:i};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(e){var t=e.clientX-n.dragState.startMouseLeft,r=n.dragState.startLeft+t;l.style.left=Math.max(s,r)+"px"};document.addEventListener("mousemove",c),document.addEventListener("mouseup",function i(){if(n.dragging){var o=n.dragState,s=o.startColumnLeft,u=o.startLeft,h=parseInt(l.style.left,10)-s;t.width=t.realWidth=h,r.$emit("header-dragend",t.width,u-s,t,e),n.store.scheduleLayout(),document.body.style.cursor="",n.dragging=!1,n.draggingColumn=null,n.dragState={},r.resizeProxyVisible=!1}document.removeEventListener("mousemove",c),document.removeEventListener("mouseup",i),document.onselectstart=null,document.ondragstart=null,setTimeout(function(){Object(pe.removeClass)(a,"noclick")},0)})}},handleMouseMove:function(e,t){if(!(t.children&&t.children.length>0)){for(var n=e.target;n&&"TH"!==n.tagName;)n=n.parentNode;if(t&&t.resizable&&!this.dragging&&this.border){var r=n.getBoundingClientRect(),i=document.body.style;r.width>12&&r.right-e.pageX<8?(i.cursor="col-resize",Object(pe.hasClass)(n,"is-sortable")&&(n.style.cursor="col-resize"),this.draggingColumn=t):this.dragging||(i.cursor="",Object(pe.hasClass)(n,"is-sortable")&&(n.style.cursor="pointer"),this.draggingColumn=null)}}},handleMouseOut:function(){this.$isServer||(document.body.style.cursor="")},toggleOrder:function(e){var t=e.order,n=e.sortOrders;if(""===t)return n[0];var r=n.indexOf(t||null);return n[r>n.length-2?0:r+1]},handleSortClick:function(e,t,n){e.stopPropagation();for(var r=t.order===n?null:n||this.toggleOrder(t),i=e.target;i&&"TH"!==i.tagName;)i=i.parentNode;if(i&&"TH"===i.tagName&&Object(pe.hasClass)(i,"noclick"))Object(pe.removeClass)(i,"noclick");else if(t.sortable){var a=this.store.states,o=a.sortProp,s=void 0,l=a.sortingColumn;(l!==t||l===t&&null===l.order)&&(l&&(l.order=null),a.sortingColumn=t,o=t.property),s=t.order=r||null,a.sortProp=o,a.sortOrder=s,this.store.commit("changeSortCondition")}}},data:function(){return{draggingColumn:null,dragging:!1,dragState:{}}}},Xn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Jn={name:"ElTableFooter",mixins:[Ln],render:function(e){var t=this,n=[];return this.summaryMethod?n=this.summaryMethod({columns:this.columns,data:this.store.states.data}):this.columns.forEach(function(e,r){if(0!==r){var i=t.store.states.data.map(function(t){return Number(t[e.property])}),a=[],o=!0;i.forEach(function(e){if(!isNaN(e)){o=!1;var t=(""+e).split(".")[1];a.push(t?t.length:0)}});var s=Math.max.apply(null,a);n[r]=o?"":i.reduce(function(e,t){var n=Number(t);return isNaN(n)?e:parseFloat((e+t).toFixed(Math.min(s,20)))},0)}else n[r]=t.sumText}),e("table",{class:"el-table__footer",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[e("colgroup",[this.columns.map(function(t){return e("col",{attrs:{name:t.id},key:t.id})}),this.hasGutter?e("col",{attrs:{name:"gutter"}}):""]),e("tbody",{class:[{"has-gutter":this.hasGutter}]},[e("tr",[this.columns.map(function(r,i){return e("td",{key:i,attrs:{colspan:r.colSpan,rowspan:r.rowSpan},class:t.getRowClasses(r,i)},[e("div",{class:["cell",r.labelClassName]},[n[i]])])}),this.hasGutter?e("th",{class:"gutter"}):""])])])},props:{fixed:String,store:{required:!0},summaryMethod:Function,sumText:String,border:Boolean,defaultSort:{type:Object,default:function(){return{prop:"",order:""}}}},computed:Xn({table:function(){return this.$parent},hasGutter:function(){return!this.fixed&&this.tableLayout.gutterWidth}},Fn({columns:"columns",isAllSelected:"isAllSelected",leftFixedLeafCount:"fixedLeafColumnsLength",rightFixedLeafCount:"rightFixedLeafColumnsLength",columnsCount:function(e){return e.columns.length},leftFixedCount:function(e){return e.fixedColumns.length},rightFixedCount:function(e){return e.rightFixedColumns.length}})),methods:{isCellHidden:function(e,t,n){if(!0===this.fixed||"left"===this.fixed)return e>=this.leftFixedLeafCount;if("right"===this.fixed){for(var r=0,i=0;i<e;i++)r+=t[i].colSpan;return r<this.columnsCount-this.rightFixedLeafCount}return!(this.fixed||!n.fixed)||(e<this.leftFixedCount||e>=this.columnsCount-this.rightFixedCount)},getRowClasses:function(e,t){var n=[e.id,e.align,e.labelClassName];return e.className&&n.push(e.className),this.isCellHidden(t,this.columns,e)&&n.push("is-hidden"),e.children||n.push("is-leaf"),n}}},Zn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},er=1,tr=i({name:"ElTable",mixins:[p.a,x.a],directives:{Mousewheel:cn},props:{data:{type:Array,default:function(){return[]}},size:String,width:[String,Number],height:[String,Number],maxHeight:[String,Number],fit:{type:Boolean,default:!0},stripe:Boolean,border:Boolean,rowKey:[String,Function],context:{},showHeader:{type:Boolean,default:!0},showSummary:Boolean,sumText:String,summaryMethod:Function,rowClassName:[String,Function],rowStyle:[Object,Function],cellClassName:[String,Function],cellStyle:[Object,Function],headerRowClassName:[String,Function],headerRowStyle:[Object,Function],headerCellClassName:[String,Function],headerCellStyle:[Object,Function],highlightCurrentRow:Boolean,currentRowKey:[String,Number],emptyText:String,expandRowKeys:Array,defaultExpandAll:Boolean,defaultSort:Object,tooltipEffect:String,spanMethod:Function,selectOnIndeterminate:{type:Boolean,default:!0},indent:{type:Number,default:16},treeProps:{type:Object,default:function(){return{hasChildren:"hasChildren",children:"children"}}},lazy:Boolean,load:Function},components:{TableHeader:Yn,TableFooter:Jn,TableBody:Un,ElCheckbox:rn.a},methods:{getMigratingConfig:function(){return{events:{expand:"expand is renamed to expand-change"}}},setCurrentRow:function(e){this.store.commit("setCurrentRow",e)},toggleRowSelection:function(e,t){this.store.toggleRowSelection(e,t,!1),this.store.updateAllSelected()},toggleRowExpansion:function(e,t){this.store.toggleRowExpansionAdapter(e,t)},clearSelection:function(){this.store.clearSelection()},clearFilter:function(e){this.store.clearFilter(e)},clearSort:function(){this.store.clearSort()},handleMouseLeave:function(){this.store.commit("setHoverRow",null),this.hoverState&&(this.hoverState=null)},updateScrollY:function(){this.layout.updateScrollY()&&(this.layout.notifyObservers("scrollable"),this.layout.updateColumnsWidth())},handleFixedMousewheel:function(e,t){var n=this.bodyWrapper;if(Math.abs(t.spinY)>0){var r=n.scrollTop;t.pixelY<0&&0!==r&&e.preventDefault(),t.pixelY>0&&n.scrollHeight-n.clientHeight>r&&e.preventDefault(),n.scrollTop+=Math.ceil(t.pixelY/5)}else n.scrollLeft+=Math.ceil(t.pixelX/5)},handleHeaderFooterMousewheel:function(e,t){var n=t.pixelX,r=t.pixelY;Math.abs(n)>=Math.abs(r)&&(this.bodyWrapper.scrollLeft+=t.pixelX/5)},syncPostion:Object(an.throttle)(20,function(){var e=this.bodyWrapper,t=e.scrollLeft,n=e.scrollTop,r=e.offsetWidth,i=e.scrollWidth,a=this.$refs,o=a.headerWrapper,s=a.footerWrapper,l=a.fixedBodyWrapper,c=a.rightFixedBodyWrapper;o&&(o.scrollLeft=t),s&&(s.scrollLeft=t),l&&(l.scrollTop=n),c&&(c.scrollTop=n);var u=i-r-1;this.scrollPosition=t>=u?"right":0===t?"left":"middle"}),bindEvents:function(){this.bodyWrapper.addEventListener("scroll",this.syncPostion,{passive:!0}),this.fit&&Object(Lt.addResizeListener)(this.$el,this.resizeListener)},unbindEvents:function(){this.bodyWrapper.removeEventListener("scroll",this.syncPostion,{passive:!0}),this.fit&&Object(Lt.removeResizeListener)(this.$el,this.resizeListener)},resizeListener:function(){if(this.$ready){var e=!1,t=this.$el,n=this.resizeState,r=n.width,i=n.height,a=t.offsetWidth;r!==a&&(e=!0);var o=t.offsetHeight;(this.height||this.shouldUpdateHeight)&&i!==o&&(e=!0),e&&(this.resizeState.width=a,this.resizeState.height=o,this.doLayout())}},doLayout:function(){this.shouldUpdateHeight&&this.layout.updateElsHeight(),this.layout.updateColumnsWidth()},sort:function(e,t){this.store.commit("sort",{prop:e,order:t})},toggleAllSelection:function(){this.store.commit("toggleAllSelection")}},computed:Zn({tableSize:function(){return this.size||(this.$ELEMENT||{}).size},bodyWrapper:function(){return this.$refs.bodyWrapper},shouldUpdateHeight:function(){return this.height||this.maxHeight||this.fixedColumns.length>0||this.rightFixedColumns.length>0},bodyWidth:function(){var e=this.layout,t=e.bodyWidth,n=e.scrollY,r=e.gutterWidth;return t?t-(n?r:0)+"px":""},bodyHeight:function(){var e=this.layout,t=e.headerHeight,n=void 0===t?0:t,r=e.bodyHeight,i=e.footerHeight,a=void 0===i?0:i;if(this.height)return{height:r?r+"px":""};if(this.maxHeight){var o=xn(this.maxHeight);if("number"==typeof o)return{"max-height":o-a-(this.showHeader?n:0)+"px"}}return{}},fixedBodyHeight:function(){if(this.height)return{height:this.layout.fixedBodyHeight?this.layout.fixedBodyHeight+"px":""};if(this.maxHeight){var e=xn(this.maxHeight);if("number"==typeof e)return e=this.layout.scrollX?e-this.layout.gutterWidth:e,this.showHeader&&(e-=this.layout.headerHeight),{"max-height":(e-=this.layout.footerHeight)+"px"}}return{}},fixedHeight:function(){return this.maxHeight?this.showSummary?{bottom:0}:{bottom:this.layout.scrollX&&this.data.length?this.layout.gutterWidth+"px":""}:this.showSummary?{height:this.layout.tableHeight?this.layout.tableHeight+"px":""}:{height:this.layout.viewportHeight?this.layout.viewportHeight+"px":""}},emptyBlockStyle:function(){if(this.data&&this.data.length)return null;var e="100%";return this.layout.appendHeight&&(e="calc(100% - "+this.layout.appendHeight+"px)"),{width:this.bodyWidth,height:e}}},Fn({selection:"selection",columns:"columns",tableData:"data",fixedColumns:"fixedColumns",rightFixedColumns:"rightFixedColumns"})),watch:{height:{immediate:!0,handler:function(e){this.layout.setHeight(e)}},maxHeight:{immediate:!0,handler:function(e){this.layout.setMaxHeight(e)}},currentRowKey:{immediate:!0,handler:function(e){this.rowKey&&this.store.setCurrentRowKey(e)}},data:{immediate:!0,handler:function(e){this.store.commit("setData",e)}},expandRowKeys:{immediate:!0,handler:function(e){e&&this.store.setExpandRowKeysAdapter(e)}}},created:function(){var e=this;this.tableId="el-table_"+er++,this.debouncedUpdateLayout=Object(an.debounce)(50,function(){return e.doLayout()})},mounted:function(){var e=this;this.bindEvents(),this.store.updateColumns(),this.doLayout(),this.resizeState={width:this.$el.offsetWidth,height:this.$el.offsetHeight},this.store.states.columns.forEach(function(t){t.filteredValue&&t.filteredValue.length&&e.store.commit("filterChange",{column:t,values:t.filteredValue,silent:!0})}),this.$ready=!0},destroyed:function(){this.unbindEvents()},data:function(){var e=this.treeProps,t=e.hasChildren,n=void 0===t?"hasChildren":t,r=e.children,i=void 0===r?"children":r;return this.store=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw new Error("Table is required.");var n=new Mn;return n.table=e,n.toggleAllSelection=I()(10,n._toggleAllSelection),Object.keys(t).forEach(function(e){n.states[e]=t[e]}),n}(this,{rowKey:this.rowKey,defaultExpandAll:this.defaultExpandAll,selectOnIndeterminate:this.selectOnIndeterminate,indent:this.indent,lazy:this.lazy,lazyColumnIdentifier:n,childrenColumnName:i}),{layout:new On({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"}}},tn,[],!1,null,null,null);tr.options.__file="packages/table/src/table.vue";var nr=tr.exports;nr.install=function(e){e.component(nr.name,nr)};var rr=nr,ir={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:""}},ar={selection:{renderHeader:function(e,t){var n=t.store;return e("el-checkbox",{attrs:{disabled:n.states.data&&0===n.states.data.length,indeterminate:n.states.selection.length>0&&!this.isAllSelected,value:this.isAllSelected},nativeOn:{click:this.toggleAllSelection}})},renderCell:function(e,t){var n=t.row,r=t.column,i=t.store,a=t.$index;return e("el-checkbox",{nativeOn:{click:function(e){return e.stopPropagation()}},attrs:{value:i.isSelected(n),disabled:!!r.selectable&&!r.selectable.call(null,n,a)},on:{input:function(){i.commit("rowSelectedChanged",n)}}})},sortable:!1,resizable:!1},index:{renderHeader:function(e,t){return t.column.label||"#"},renderCell:function(e,t){var n=t.$index,r=n+1,i=t.column.index;return"number"==typeof i?r=n+i:"function"==typeof i&&(r=i(n)),e("div",[r])},sortable:!1},expand:{renderHeader:function(e,t){return t.column.label||""},renderCell:function(e,t){var n=t.row,r=t.store,i=["el-table__expand-icon"];r.states.expandRows.indexOf(n)>-1&&i.push("el-table__expand-icon--expanded");return e("div",{class:i,on:{click:function(e){e.stopPropagation(),r.toggleRowExpansion(n)}}},[e("i",{class:"el-icon el-icon-arrow-right"})])},sortable:!1,resizable:!1,className:"el-table__expand-column"}};function or(e,t){var n=t.row,r=t.column,i=t.$index,a=r.property,o=a&&Object(A.getPropByPath)(n,a).v;return r&&r.formatter?r.formatter(n,r,o,i):o}var sr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lr=1,cr={name:"ElTableColumn",props:{type:{type:String,default:"default"},label:String,className:String,labelClassName:String,property:String,prop:String,width:{},minWidth:{},renderHeader:Function,sortable:{type:[Boolean,String],default:!1},sortMethod:Function,sortBy:[String,Function,Array],resizable:{type:Boolean,default:!0},columnKey:String,align:String,headerAlign:String,showTooltipWhenOverflow:Boolean,showOverflowTooltip:Boolean,fixed:[Boolean,String],formatter:Function,selectable:Function,reserveSelection:Boolean,filterMethod:Function,filteredValue:Array,filters:Array,filterPlacement:String,filterMultiple:{type:Boolean,default:!0},index:[Number,Function],sortOrders:{type:Array,default:function(){return["ascending","descending",null]},validator:function(e){return e.every(function(e){return["ascending","descending",null].indexOf(e)>-1})}}},data:function(){return{isSubColumn:!1,columns:[]}},computed:{owner:function(){for(var e=this.$parent;e&&!e.tableId;)e=e.$parent;return e},columnOrTableParent:function(){for(var e=this.$parent;e&&!e.tableId&&!e.columnId;)e=e.$parent;return e},realWidth:function(){return wn(this.width)},realMinWidth:function(){return void 0!==(e=this.minWidth)&&(e=wn(e),isNaN(e)&&(e=80)),e;var e},realAlign:function(){return this.align?"is-"+this.align:null},realHeaderAlign:function(){return this.headerAlign?"is-"+this.headerAlign:this.realAlign}},methods:{getPropsData:function(){for(var e=this,t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.reduce(function(t,n){return Array.isArray(n)&&n.forEach(function(n){t[n]=e[n]}),t},{})},getColumnElIndex:function(e,t){return[].indexOf.call(e,t)},setColumnWidth:function(e){return this.realWidth&&(e.width=this.realWidth),this.realMinWidth&&(e.minWidth=this.realMinWidth),e.minWidth||(e.minWidth=80),e.realWidth=void 0===e.width?e.minWidth:e.width,e},setColumnForcedProps:function(e){var t=e.type,n=ar[t]||{};return Object.keys(n).forEach(function(t){var r=n[t];void 0!==r&&(e[t]="className"===t?e[t]+" "+r:r)}),e},setColumnRenders:function(e){var t=this;this.$createElement;this.renderHeader?console.warn("[Element Warn][TableColumn]Comparing to render-header, scoped-slot header is easier to use. We recommend users to use scoped-slot header."):"selection"!==e.type&&(e.renderHeader=function(n,r){var i=t.$scopedSlots.header;return i?i(r):e.label});var n=e.renderCell;return"expand"===e.type?(e.renderCell=function(e,t){return e("div",{class:"cell"},[n(e,t)])},this.owner.renderExpanded=function(e,n){return t.$scopedSlots.default?t.$scopedSlots.default(n):t.$slots.default}):(n=n||or,e.renderCell=function(r,i){var a=null;a=t.$scopedSlots.default?t.$scopedSlots.default(i):n(r,i);var o=function(e,t){var n=t.row,r=t.treeNode,i=t.store;if(!r)return null;var a=[];if(r.indent&&a.push(e("span",{class:"el-table__indent",style:{"padding-left":r.indent+"px"}})),"boolean"!=typeof r.expanded||r.noLazyChildren)a.push(e("span",{class:"el-table__placeholder"}));else{var o=["el-table__expand-icon",r.expanded?"el-table__expand-icon--expanded":""],s=["el-icon-arrow-right"];r.loading&&(s=["el-icon-loading"]),a.push(e("div",{class:o,on:{click:function(e){e.stopPropagation(),i.loadOrToggle(n)}}},[e("i",{class:s})]))}return a}(r,i),s={class:"cell",style:{}};return e.showOverflowTooltip&&(s.class+=" el-tooltip",s.style={width:(i.column.realWidth||i.column.width)-1+"px"}),r("div",s,[o,a])}),e},registerNormalWatchers:function(){var e=this,t={prop:"property",realAlign:"align",realHeaderAlign:"headerAlign",realWidth:"width"},n=["label","property","filters","filterMultiple","sortable","index","formatter","className","labelClassName","showOverflowTooltip"].reduce(function(e,t){return e[t]=t,e},t);Object.keys(n).forEach(function(n){var r=t[n];e.$watch(n,function(t){e.columnConfig[r]=t})})},registerComplexWatchers:function(){var e=this,t={realWidth:"width",realMinWidth:"minWidth"},n=["fixed"].reduce(function(e,t){return e[t]=t,e},t);Object.keys(n).forEach(function(n){var r=t[n];e.$watch(n,function(t){e.columnConfig[r]=t;var n="fixed"===r;e.owner.store.scheduleLayout(n)})})}},components:{ElCheckbox:rn.a},beforeCreate:function(){this.row={},this.column={},this.$index=0,this.columnId=""},created:function(){var e=this.columnOrTableParent;this.isSubColumn=this.owner!==e,this.columnId=(e.tableId||e.columnId)+"_column_"+lr++;var t=this.type||"default",n=""===this.sortable||this.sortable,r=sr({},ir[t],{id:this.columnId,type:t,property:this.prop||this.property,align:this.realAlign,headerAlign:this.realHeaderAlign,showOverflowTooltip:this.showOverflowTooltip||this.showTooltipWhenOverflow,filterable:this.filters||this.filterMethod,filteredValue:[],filterPlacement:"",isColumnGroup:!1,filterOpened:!1,sortable:n,index:this.index}),i=this.getPropsData(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement"]);i=function(e,t){var n={},r=void 0;for(r in e)n[r]=e[r];for(r in t)if(bn(t,r)){var i=t[r];void 0!==i&&(n[r]=i)}return n}(r,i),i=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce(function(e,t){return function(){return e(t.apply(void 0,arguments))}})}(this.setColumnRenders,this.setColumnWidth,this.setColumnForcedProps)(i),this.columnConfig=i,this.registerNormalWatchers(),this.registerComplexWatchers()},mounted:function(){var e=this.owner,t=this.columnOrTableParent,n=this.isSubColumn?t.$el.children:t.$refs.hiddenColumns.children,r=this.getColumnElIndex(n,this.$el);e.store.commit("insertColumn",this.columnConfig,r,this.isSubColumn?t.columnConfig:null)},destroyed:function(){if(this.$parent){var e=this.$parent;this.owner.store.commit("removeColumn",this.columnConfig,this.isSubColumn?e.columnConfig:null)}},render:function(e){return e("div",this.$slots.default)},install:function(e){e.component(cr.name,cr)}},ur=cr,hr=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.ranged?n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.handleClose,expression:"handleClose"}],ref:"reference",staticClass:"el-date-editor el-range-editor el-input__inner",class:["el-date-editor--"+e.type,e.pickerSize?"el-range-editor--"+e.pickerSize:"",e.pickerDisabled?"is-disabled":"",e.pickerVisible?"is-active":""],on:{click:e.handleRangeClick,mouseenter:e.handleMouseEnter,mouseleave:function(t){e.showClose=!1},keydown:e.handleKeydown}},[n("i",{class:["el-input__icon","el-range__icon",e.triggerClass]}),n("input",e._b({staticClass:"el-range-input",attrs:{autocomplete:"off",placeholder:e.startPlaceholder,disabled:e.pickerDisabled,readonly:!e.editable||e.readonly,name:e.name&&e.name[0]},domProps:{value:e.displayValue&&e.displayValue[0]},on:{input:e.handleStartInput,change:e.handleStartChange,focus:e.handleFocus}},"input",e.firstInputId,!1)),e._t("range-separator",[n("span",{staticClass:"el-range-separator"},[e._v(e._s(e.rangeSeparator))])]),n("input",e._b({staticClass:"el-range-input",attrs:{autocomplete:"off",placeholder:e.endPlaceholder,disabled:e.pickerDisabled,readonly:!e.editable||e.readonly,name:e.name&&e.name[1]},domProps:{value:e.displayValue&&e.displayValue[1]},on:{input:e.handleEndInput,change:e.handleEndChange,focus:e.handleFocus}},"input",e.secondInputId,!1)),e.haveTrigger?n("i",{staticClass:"el-input__icon el-range__close-icon",class:[e.showClose?""+e.clearIcon:""],on:{click:e.handleClickIcon}}):e._e()],2):n("el-input",e._b({directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.handleClose,expression:"handleClose"}],ref:"reference",staticClass:"el-date-editor",class:"el-date-editor--"+e.type,attrs:{readonly:!e.editable||e.readonly||"dates"===e.type||"week"===e.type,disabled:e.pickerDisabled,size:e.pickerSize,name:e.name,placeholder:e.placeholder,value:e.displayValue,validateEvent:!1},on:{focus:e.handleFocus,input:function(t){return e.userInput=t},change:e.handleChange},nativeOn:{keydown:function(t){return e.handleKeydown(t)},mouseenter:function(t){return e.handleMouseEnter(t)},mouseleave:function(t){e.showClose=!1}}},"el-input",e.firstInputId,!1),[n("i",{staticClass:"el-input__icon",class:e.triggerClass,attrs:{slot:"prefix"},on:{click:e.handleFocus},slot:"prefix"}),e.haveTrigger?n("i",{staticClass:"el-input__icon",class:[e.showClose?""+e.clearIcon:""],attrs:{slot:"suffix"},on:{click:e.handleClickIcon},slot:"suffix"}):e._e()])};hr._withStripped=!0;var dr=n(0),fr={props:{appendToBody:O.a.props.appendToBody,offset:O.a.props.offset,boundariesPadding:O.a.props.boundariesPadding,arrowOffset:O.a.props.arrowOffset},methods:O.a.methods,data:function(){return je()({visibleArrow:!0},O.a.data)},beforeDestroy:O.a.beforeDestroy},pr={date:"yyyy-MM-dd",month:"yyyy-MM",datetime:"yyyy-MM-dd HH:mm:ss",time:"HH:mm:ss",week:"yyyywWW",timerange:"HH:mm:ss",daterange:"yyyy-MM-dd",monthrange:"yyyy-MM",datetimerange:"yyyy-MM-dd HH:mm:ss",year:"yyyy"},Ar=["date","datetime","time","time-select","week","month","year","daterange","monthrange","timerange","datetimerange","dates"],gr=function(e,t){return"timestamp"===t?e.getTime():Object(dr.formatDate)(e,t)},mr=function(e,t){return"timestamp"===t?new Date(Number(e)):Object(dr.parseDate)(e,t)},vr=function(e,t){if(Array.isArray(e)&&2===e.length){var n=e[0],r=e[1];if(n&&r)return[gr(n,t),gr(r,t)]}return""},yr=function(e,t,n){if(Array.isArray(e)||(e=e.split(n)),2===e.length){var r=e[0],i=e[1];return[mr(r,t),mr(i,t)]}return[]},br={default:{formatter:function(e){return e?""+e:""},parser:function(e){return void 0===e||""===e?null:e}},week:{formatter:function(e,t){var n=Object(dr.getWeekNumber)(e),r=e.getMonth(),i=new Date(e);1===n&&11===r&&(i.setHours(0,0,0,0),i.setDate(i.getDate()+3-(i.getDay()+6)%7));var a=Object(dr.formatDate)(i,t);return a=/WW/.test(a)?a.replace(/WW/,n<10?"0"+n:n):a.replace(/W/,n)},parser:function(e,t){return br.date.parser(e,t)}},date:{formatter:gr,parser:mr},datetime:{formatter:gr,parser:mr},daterange:{formatter:vr,parser:yr},monthrange:{formatter:vr,parser:yr},datetimerange:{formatter:vr,parser:yr},timerange:{formatter:vr,parser:yr},time:{formatter:gr,parser:mr},month:{formatter:gr,parser:mr},year:{formatter:gr,parser:mr},number:{formatter:function(e){return e?""+e:""},parser:function(e){var t=Number(e);return isNaN(e)?null:t}},dates:{formatter:function(e,t){return e.map(function(e){return gr(e,t)})},parser:function(e,t){return("string"==typeof e?e.split(", "):e).map(function(e){return e instanceof Date?e:mr(e,t)})}}},wr={left:"bottom-start",center:"bottom",right:"bottom-end"},xr=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"-";return e?(0,(br[n]||br.default).parser)(e,t||pr[n],r):null},_r=function(e,t,n){return e?(0,(br[n]||br.default).formatter)(e,t||pr[n]):null},Cr=function(e,t){var n=function(e,t){var n=e instanceof Date,r=t instanceof Date;return n&&r?e.getTime()===t.getTime():!n&&!r&&e===t},r=e instanceof Array,i=t instanceof Array;return r&&i?e.length===t.length&&e.every(function(e,r){return n(e,t[r])}):!r&&!i&&n(e,t)},Sr=function(e){return"string"==typeof e||e instanceof String},kr=function(e){return null===e||void 0===e||Sr(e)||Array.isArray(e)&&2===e.length&&e.every(Sr)},Br=i({mixins:[C.a,fr],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:kr},disabled:Boolean,clearable:{type:Boolean,default:!0},id:{default:"",validator:kr},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:d.a},directives:{Clickoutside:F.a},data:function(){return{pickerVisible:!1,showClose:!1,userInput:null,valueOnOpen:null,unwatchPickerOptions:null}},watch:{pickerVisible:function(e){this.readonly||this.pickerDisabled||(e?(this.showPicker(),this.valueOnOpen=Array.isArray(this.value)?[].concat(this.value):this.value):(this.hidePicker(),this.emitChange(this.value),this.userInput=null,this.validateEvent&&this.dispatch("ElFormItem","el.form.blur"),this.$emit("blur",this),this.blur()))},parsedValue:{immediate:!0,handler:function(e){this.picker&&(this.picker.value=e)}},defaultValue:function(e){this.picker&&(this.picker.defaultValue=e)},value:function(e,t){Cr(e,t)||this.pickerVisible||!this.validateEvent||this.dispatch("ElFormItem","el.form.change",e)}},computed:{ranged:function(){return this.type.indexOf("range")>-1},reference:function(){var e=this.$refs.reference;return e.$el||e},refInput:function(){return this.reference?[].slice.call(this.reference.querySelectorAll("input")):[]},valueIsEmpty:function(){var e=this.value;if(Array.isArray(e)){for(var t=0,n=e.length;t<n;t++)if(e[t])return!1}else if(e)return!1;return!0},triggerClass:function(){return this.prefixIcon||(-1!==this.type.indexOf("time")?"el-icon-time":"el-icon-date")},selectionMode:function(){return"week"===this.type?"week":"month"===this.type?"month":"year"===this.type?"year":"dates"===this.type?"dates":"day"},haveTrigger:function(){return void 0!==this.showTrigger?this.showTrigger:-1!==Ar.indexOf(this.type)},displayValue:function(){var e=_r(this.parsedValue,this.format,this.type,this.rangeSeparator);return Array.isArray(this.userInput)?[this.userInput[0]||e&&e[0]||"",this.userInput[1]||e&&e[1]||""]:null!==this.userInput?this.userInput:e?"dates"===this.type?e.join(", "):e:""},parsedValue:function(){return this.value?"time-select"===this.type?this.value:Object(dr.isDateObject)(this.value)||Array.isArray(this.value)&&this.value.every(dr.isDateObject)?this.value:this.valueFormat?xr(this.value,this.valueFormat,this.type,this.rangeSeparator)||this.value:Array.isArray(this.value)?this.value.map(function(e){return new Date(e)}):new Date(this.value):this.value},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},pickerSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},pickerDisabled:function(){return this.disabled||(this.elForm||{}).disabled},firstInputId:function(){var e={},t=void 0;return(t=this.ranged?this.id&&this.id[0]:this.id)&&(e.id=t),e},secondInputId:function(){var e={},t=void 0;return this.ranged&&(t=this.id&&this.id[1]),t&&(e.id=t),e}},created:function(){this.popperOptions={boundariesPadding:0,gpuAcceleration:!1},this.placement=wr[this.align]||wr.left,this.$on("fieldReset",this.handleFieldReset)},methods:{focus:function(){this.ranged?this.handleFocus():this.$refs.reference.focus()},blur:function(){this.refInput.forEach(function(e){return e.blur()})},parseValue:function(e){var t=Object(dr.isDateObject)(e)||Array.isArray(e)&&e.every(dr.isDateObject);return this.valueFormat&&!t&&xr(e,this.valueFormat,this.type,this.rangeSeparator)||e},formatToValue:function(e){var t=Object(dr.isDateObject)(e)||Array.isArray(e)&&e.every(dr.isDateObject);return this.valueFormat&&t?_r(e,this.valueFormat,this.type,this.rangeSeparator):e},parseString:function(e){var t=Array.isArray(e)?this.type:this.type.replace("range","");return xr(e,this.format,t)},formatToString:function(e){var t=Array.isArray(e)?this.type:this.type.replace("range","");return _r(e,this.format,t)},handleMouseEnter:function(){this.readonly||this.pickerDisabled||!this.valueIsEmpty&&this.clearable&&(this.showClose=!0)},handleChange:function(){if(this.userInput){var e=this.parseString(this.displayValue);e&&(this.picker.value=e,this.isValidValue(e)&&(this.emitInput(e),this.userInput=null))}""===this.userInput&&(this.emitInput(null),this.emitChange(null),this.userInput=null)},handleStartInput:function(e){this.userInput?this.userInput=[e.target.value,this.userInput[1]]:this.userInput=[e.target.value,null]},handleEndInput:function(e){this.userInput?this.userInput=[this.userInput[0],e.target.value]:this.userInput=[null,e.target.value]},handleStartChange:function(e){var t=this.parseString(this.userInput&&this.userInput[0]);if(t){this.userInput=[this.formatToString(t),this.displayValue[1]];var n=[t,this.picker.value&&this.picker.value[1]];this.picker.value=n,this.isValidValue(n)&&(this.emitInput(n),this.userInput=null)}},handleEndChange:function(e){var t=this.parseString(this.userInput&&this.userInput[1]);if(t){this.userInput=[this.displayValue[0],this.formatToString(t)];var n=[this.picker.value&&this.picker.value[0],t];this.picker.value=n,this.isValidValue(n)&&(this.emitInput(n),this.userInput=null)}},handleClickIcon:function(e){this.readonly||this.pickerDisabled||(this.showClose?(this.valueOnOpen=this.value,e.stopPropagation(),this.emitInput(null),this.emitChange(null),this.showClose=!1,this.picker&&"function"==typeof this.picker.handleClear&&this.picker.handleClear()):this.pickerVisible=!this.pickerVisible)},handleClose:function(){if(this.pickerVisible&&(this.pickerVisible=!1,"dates"===this.type)){var e=xr(this.valueOnOpen,this.valueFormat,this.type,this.rangeSeparator)||this.valueOnOpen;this.emitInput(e)}},handleFieldReset:function(e){this.userInput=""===e?null:e},handleFocus:function(){var e=this.type;-1===Ar.indexOf(e)||this.pickerVisible||(this.pickerVisible=!0),this.$emit("focus",this)},handleKeydown:function(e){var t=this,n=e.keyCode;return 27===n?(this.pickerVisible=!1,void e.stopPropagation()):9!==n?13===n?((""===this.userInput||this.isValidValue(this.parseString(this.displayValue)))&&(this.handleChange(),this.pickerVisible=this.picker.visible=!1,this.blur()),void e.stopPropagation()):void(this.userInput?e.stopPropagation():this.picker&&this.picker.handleKeydown&&this.picker.handleKeydown(e)):void(this.ranged?setTimeout(function(){-1===t.refInput.indexOf(document.activeElement)&&(t.pickerVisible=!1,t.blur(),e.stopPropagation())},0):(this.handleChange(),this.pickerVisible=this.picker.visible=!1,this.blur(),e.stopPropagation()))},handleRangeClick:function(){var e=this.type;-1===Ar.indexOf(e)||this.pickerVisible||(this.pickerVisible=!0),this.$emit("focus",this)},hidePicker:function(){this.picker&&(this.picker.resetView&&this.picker.resetView(),this.pickerVisible=this.picker.visible=!1,this.destroyPopper())},showPicker:function(){var e=this;this.$isServer||(this.picker||this.mountPicker(),this.pickerVisible=this.picker.visible=!0,this.updatePopper(),this.picker.value=this.parsedValue,this.picker.resetView&&this.picker.resetView(),this.$nextTick(function(){e.picker.adjustSpinners&&e.picker.adjustSpinners()}))},mountPicker:function(){var e=this;this.picker=new hn.a(this.panel).$mount(),this.picker.defaultValue=this.defaultValue,this.picker.defaultTime=this.defaultTime,this.picker.popperClass=this.popperClass,this.popperElm=this.picker.$el,this.picker.width=this.reference.getBoundingClientRect().width,this.picker.showTime="datetime"===this.type||"datetimerange"===this.type,this.picker.selectionMode=this.selectionMode,this.picker.unlinkPanels=this.unlinkPanels,this.picker.arrowControl=this.arrowControl||this.timeArrowControl||!1,this.$watch("format",function(t){e.picker.format=t});var t=function(){var t=e.pickerOptions;if(t&&t.selectableRange){var n=t.selectableRange,r=br.datetimerange.parser,i=pr.timerange;n=Array.isArray(n)?n:[n],e.picker.selectableRange=n.map(function(t){return r(t,i,e.rangeSeparator)})}for(var a in t)t.hasOwnProperty(a)&&"selectableRange"!==a&&(e.picker[a]=t[a]);e.format&&(e.picker.format=e.format)};t(),this.unwatchPickerOptions=this.$watch("pickerOptions",function(){return t()},{deep:!0}),this.$el.appendChild(this.picker.$el),this.picker.resetView&&this.picker.resetView(),this.picker.$on("dodestroy",this.doDestroy),this.picker.$on("pick",function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e.userInput=null,e.pickerVisible=e.picker.visible=n,e.emitInput(t),e.picker.resetView&&e.picker.resetView()}),this.picker.$on("select-range",function(t,n,r){0!==e.refInput.length&&(r&&"min"!==r?"max"===r&&(e.refInput[1].setSelectionRange(t,n),e.refInput[1].focus()):(e.refInput[0].setSelectionRange(t,n),e.refInput[0].focus()))})},unmountPicker:function(){this.picker&&(this.picker.$destroy(),this.picker.$off(),"function"==typeof this.unwatchPickerOptions&&this.unwatchPickerOptions(),this.picker.$el.parentNode.removeChild(this.picker.$el))},emitChange:function(e){Cr(e,this.valueOnOpen)||(this.$emit("change",e),this.valueOnOpen=e,this.validateEvent&&this.dispatch("ElFormItem","el.form.change",e))},emitInput:function(e){var t=this.formatToValue(e);Cr(this.value,t)||this.$emit("input",t)},isValidValue:function(e){return this.picker||this.mountPicker(),!this.picker.isValidValue||e&&this.picker.isValidValue(e)}}},hr,[],!1,null,null,null);Br.options.__file="packages/date-picker/src/picker.vue";var Er=Br.exports,Tr=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-enter":e.handleEnter,"after-leave":e.handleLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-picker-panel el-date-picker el-popper",class:[{"has-sidebar":e.$slots.sidebar||e.shortcuts,"has-time":e.showTime},e.popperClass]},[n("div",{staticClass:"el-picker-panel__body-wrapper"},[e._t("sidebar"),e.shortcuts?n("div",{staticClass:"el-picker-panel__sidebar"},e._l(e.shortcuts,function(t,r){return n("button",{key:r,staticClass:"el-picker-panel__shortcut",attrs:{type:"button"},on:{click:function(n){e.handleShortcutClick(t)}}},[e._v(e._s(t.text))])}),0):e._e(),n("div",{staticClass:"el-picker-panel__body"},[e.showTime?n("div",{staticClass:"el-date-picker__time-header"},[n("span",{staticClass:"el-date-picker__editor-wrap"},[n("el-input",{attrs:{placeholder:e.t("el.datepicker.selectDate"),value:e.visibleDate,size:"small"},on:{input:function(t){return e.userInputDate=t},change:e.handleVisibleDateChange}})],1),n("span",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.handleTimePickClose,expression:"handleTimePickClose"}],staticClass:"el-date-picker__editor-wrap"},[n("el-input",{ref:"input",attrs:{placeholder:e.t("el.datepicker.selectTime"),value:e.visibleTime,size:"small"},on:{focus:function(t){e.timePickerVisible=!0},input:function(t){return e.userInputTime=t},change:e.handleVisibleTimeChange}}),n("time-picker",{ref:"timepicker",attrs:{"time-arrow-control":e.arrowControl,visible:e.timePickerVisible},on:{pick:e.handleTimePick,mounted:e.proxyTimePickerDataProperties}})],1)]):e._e(),n("div",{directives:[{name:"show",rawName:"v-show",value:"time"!==e.currentView,expression:"currentView !== 'time'"}],staticClass:"el-date-picker__header",class:{"el-date-picker__header--bordered":"year"===e.currentView||"month"===e.currentView}},[n("button",{staticClass:"el-picker-panel__icon-btn el-date-picker__prev-btn el-icon-d-arrow-left",attrs:{type:"button","aria-label":e.t("el.datepicker.prevYear")},on:{click:e.prevYear}}),n("button",{directives:[{name:"show",rawName:"v-show",value:"date"===e.currentView,expression:"currentView === 'date'"}],staticClass:"el-picker-panel__icon-btn el-date-picker__prev-btn el-icon-arrow-left",attrs:{type:"button","aria-label":e.t("el.datepicker.prevMonth")},on:{click:e.prevMonth}}),n("span",{staticClass:"el-date-picker__header-label",attrs:{role:"button"},on:{click:e.showYearPicker}},[e._v(e._s(e.yearLabel))]),n("span",{directives:[{name:"show",rawName:"v-show",value:"date"===e.currentView,expression:"currentView === 'date'"}],staticClass:"el-date-picker__header-label",class:{active:"month"===e.currentView},attrs:{role:"button"},on:{click:e.showMonthPicker}},[e._v(e._s(e.t("el.datepicker.month"+(e.month+1))))]),n("button",{staticClass:"el-picker-panel__icon-btn el-date-picker__next-btn el-icon-d-arrow-right",attrs:{type:"button","aria-label":e.t("el.datepicker.nextYear")},on:{click:e.nextYear}}),n("button",{directives:[{name:"show",rawName:"v-show",value:"date"===e.currentView,expression:"currentView === 'date'"}],staticClass:"el-picker-panel__icon-btn el-date-picker__next-btn el-icon-arrow-right",attrs:{type:"button","aria-label":e.t("el.datepicker.nextMonth")},on:{click:e.nextMonth}})]),n("div",{staticClass:"el-picker-panel__content"},[n("date-table",{directives:[{name:"show",rawName:"v-show",value:"date"===e.currentView,expression:"currentView === 'date'"}],attrs:{"selection-mode":e.selectionMode,"first-day-of-week":e.firstDayOfWeek,value:e.value,"default-value":e.defaultValue?new Date(e.defaultValue):null,date:e.date,"cell-class-name":e.cellClassName,"disabled-date":e.disabledDate},on:{pick:e.handleDatePick}}),n("year-table",{directives:[{name:"show",rawName:"v-show",value:"year"===e.currentView,expression:"currentView === 'year'"}],attrs:{value:e.value,"default-value":e.defaultValue?new Date(e.defaultValue):null,date:e.date,"disabled-date":e.disabledDate},on:{pick:e.handleYearPick}}),n("month-table",{directives:[{name:"show",rawName:"v-show",value:"month"===e.currentView,expression:"currentView === 'month'"}],attrs:{value:e.value,"default-value":e.defaultValue?new Date(e.defaultValue):null,date:e.date,"disabled-date":e.disabledDate},on:{pick:e.handleMonthPick}})],1)])],2),n("div",{directives:[{name:"show",rawName:"v-show",value:e.footerVisible&&"date"===e.currentView,expression:"footerVisible && currentView === 'date'"}],staticClass:"el-picker-panel__footer"},[n("el-button",{directives:[{name:"show",rawName:"v-show",value:"dates"!==e.selectionMode,expression:"selectionMode !== 'dates'"}],staticClass:"el-picker-panel__link-btn",attrs:{size:"mini",type:"text"},on:{click:e.changeToNow}},[e._v("\n "+e._s(e.t("el.datepicker.now"))+"\n ")]),n("el-button",{staticClass:"el-picker-panel__link-btn",attrs:{plain:"",size:"mini"},on:{click:e.confirm}},[e._v("\n "+e._s(e.t("el.datepicker.confirm"))+"\n ")])],1)])])};Tr._withStripped=!0;var Ir=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":function(t){e.$emit("dodestroy")}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-time-panel el-popper",class:e.popperClass},[n("div",{staticClass:"el-time-panel__content",class:{"has-seconds":e.showSeconds}},[n("time-spinner",{ref:"spinner",attrs:{"arrow-control":e.useArrow,"show-seconds":e.showSeconds,"am-pm-mode":e.amPmMode,date:e.date},on:{change:e.handleChange,"select-range":e.setSelectionRange}})],1),n("div",{staticClass:"el-time-panel__footer"},[n("button",{staticClass:"el-time-panel__btn cancel",attrs:{type:"button"},on:{click:e.handleCancel}},[e._v(e._s(e.t("el.datepicker.cancel")))]),n("button",{staticClass:"el-time-panel__btn",class:{confirm:!e.disabled},attrs:{type:"button"},on:{click:function(t){e.handleConfirm()}}},[e._v(e._s(e.t("el.datepicker.confirm")))])])])])};Ir._withStripped=!0;var Mr=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-time-spinner",class:{"has-seconds":e.showSeconds}},[e.arrowControl?e._e():[n("el-scrollbar",{ref:"hours",staticClass:"el-time-spinner__wrapper",attrs:{"wrap-style":"max-height: inherit;","view-class":"el-time-spinner__list",noresize:"",tag:"ul"},nativeOn:{mouseenter:function(t){e.emitSelectRange("hours")},mousemove:function(t){e.adjustCurrentSpinner("hours")}}},e._l(e.hoursList,function(t,r){return n("li",{key:r,staticClass:"el-time-spinner__item",class:{active:r===e.hours,disabled:t},on:{click:function(n){e.handleClick("hours",{value:r,disabled:t})}}},[e._v(e._s(("0"+(e.amPmMode?r%12||12:r)).slice(-2))+e._s(e.amPm(r)))])}),0),n("el-scrollbar",{ref:"minutes",staticClass:"el-time-spinner__wrapper",attrs:{"wrap-style":"max-height: inherit;","view-class":"el-time-spinner__list",noresize:"",tag:"ul"},nativeOn:{mouseenter:function(t){e.emitSelectRange("minutes")},mousemove:function(t){e.adjustCurrentSpinner("minutes")}}},e._l(e.minutesList,function(t,r){return n("li",{key:r,staticClass:"el-time-spinner__item",class:{active:r===e.minutes,disabled:!t},on:{click:function(t){e.handleClick("minutes",{value:r,disabled:!1})}}},[e._v(e._s(("0"+r).slice(-2)))])}),0),n("el-scrollbar",{directives:[{name:"show",rawName:"v-show",value:e.showSeconds,expression:"showSeconds"}],ref:"seconds",staticClass:"el-time-spinner__wrapper",attrs:{"wrap-style":"max-height: inherit;","view-class":"el-time-spinner__list",noresize:"",tag:"ul"},nativeOn:{mouseenter:function(t){e.emitSelectRange("seconds")},mousemove:function(t){e.adjustCurrentSpinner("seconds")}}},e._l(60,function(t,r){return n("li",{key:r,staticClass:"el-time-spinner__item",class:{active:r===e.seconds},on:{click:function(t){e.handleClick("seconds",{value:r,disabled:!1})}}},[e._v(e._s(("0"+r).slice(-2)))])}),0)],e.arrowControl?[n("div",{staticClass:"el-time-spinner__wrapper is-arrow",on:{mouseenter:function(t){e.emitSelectRange("hours")}}},[n("i",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:e.decrease,expression:"decrease"}],staticClass:"el-time-spinner__arrow el-icon-arrow-up"}),n("i",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:e.increase,expression:"increase"}],staticClass:"el-time-spinner__arrow el-icon-arrow-down"}),n("ul",{ref:"hours",staticClass:"el-time-spinner__list"},e._l(e.arrowHourList,function(t,r){return n("li",{key:r,staticClass:"el-time-spinner__item",class:{active:t===e.hours,disabled:e.hoursList[t]}},[e._v(e._s(void 0===t?"":("0"+(e.amPmMode?t%12||12:t)).slice(-2)+e.amPm(t)))])}),0)]),n("div",{staticClass:"el-time-spinner__wrapper is-arrow",on:{mouseenter:function(t){e.emitSelectRange("minutes")}}},[n("i",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:e.decrease,expression:"decrease"}],staticClass:"el-time-spinner__arrow el-icon-arrow-up"}),n("i",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:e.increase,expression:"increase"}],staticClass:"el-time-spinner__arrow el-icon-arrow-down"}),n("ul",{ref:"minutes",staticClass:"el-time-spinner__list"},e._l(e.arrowMinuteList,function(t,r){return n("li",{key:r,staticClass:"el-time-spinner__item",class:{active:t===e.minutes}},[e._v("\n "+e._s(void 0===t?"":("0"+t).slice(-2))+"\n ")])}),0)]),e.showSeconds?n("div",{staticClass:"el-time-spinner__wrapper is-arrow",on:{mouseenter:function(t){e.emitSelectRange("seconds")}}},[n("i",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:e.decrease,expression:"decrease"}],staticClass:"el-time-spinner__arrow el-icon-arrow-up"}),n("i",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:e.increase,expression:"increase"}],staticClass:"el-time-spinner__arrow el-icon-arrow-down"}),n("ul",{ref:"seconds",staticClass:"el-time-spinner__list"},e._l(e.arrowSecondList,function(t,r){return n("li",{key:r,staticClass:"el-time-spinner__item",class:{active:t===e.seconds}},[e._v("\n "+e._s(void 0===t?"":("0"+t).slice(-2))+"\n ")])}),0)]):e._e()]:e._e()],2)};Mr._withStripped=!0;var Fr=i({components:{ElScrollbar:R.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(dr.getRangeHours)(this.selectableRange)},minutesList:function(){return Object(dr.getRangeMinutes)(this.selectableRange,this.hours)},arrowHourList:function(){var e=this.hours;return[e>0?e-1:void 0,e,e<23?e+1:void 0]},arrowMinuteList:function(){var e=this.minutes;return[e>0?e-1:void 0,e,e<59?e+1:void 0]},arrowSecondList:function(){var e=this.seconds;return[e>0?e-1:void 0,e,e<59?e+1:void 0]}},data:function(){return{selectableRange:[],currentScrollbar:null}},mounted:function(){var e=this;this.$nextTick(function(){!e.arrowControl&&e.bindScrollEvent()})},methods:{increase:function(){this.scrollDown(1)},decrease:function(){this.scrollDown(-1)},modifyDateField:function(e,t){switch(e){case"hours":this.$emit("change",Object(dr.modifyTime)(this.date,t,this.minutes,this.seconds));break;case"minutes":this.$emit("change",Object(dr.modifyTime)(this.date,this.hours,t,this.seconds));break;case"seconds":this.$emit("change",Object(dr.modifyTime)(this.date,this.hours,this.minutes,t))}},handleClick:function(e,t){var n=t.value;t.disabled||(this.modifyDateField(e,n),this.emitSelectRange(e),this.adjustSpinner(e,n))},emitSelectRange:function(e){"hours"===e?this.$emit("select-range",0,2):"minutes"===e?this.$emit("select-range",3,5):"seconds"===e&&this.$emit("select-range",6,8),this.currentScrollbar=e},bindScrollEvent:function(){var e=this,t=function(t){e.$refs[t].wrap.onscroll=function(n){e.handleScroll(t,n)}};t("hours"),t("minutes"),t("seconds")},handleScroll:function(e){var t=Math.min(Math.round((this.$refs[e].wrap.scrollTop-(.5*this.scrollBarHeight(e)-10)/this.typeItemHeight(e)+3)/this.typeItemHeight(e)),"hours"===e?23:59);this.modifyDateField(e,t)},adjustSpinners:function(){this.adjustSpinner("hours",this.hours),this.adjustSpinner("minutes",this.minutes),this.adjustSpinner("seconds",this.seconds)},adjustCurrentSpinner:function(e){this.adjustSpinner(e,this[e])},adjustSpinner:function(e,t){if(!this.arrowControl){var n=this.$refs[e].wrap;n&&(n.scrollTop=Math.max(0,t*this.typeItemHeight(e)))}},scrollDown:function(e){var t=this;this.currentScrollbar||this.emitSelectRange("hours");var n=this.currentScrollbar,r=this.hoursList,i=this[n];if("hours"===this.currentScrollbar){var a=Math.abs(e);e=e>0?1:-1;for(var o=r.length;o--&&a;)r[i=(i+e+r.length)%r.length]||a--;if(r[i])return}else i=(i+e+60)%60;this.modifyDateField(n,i),this.adjustSpinner(n,i),this.$nextTick(function(){return t.emitSelectRange(t.currentScrollbar)})},amPm:function(e){if(!("a"===this.amPmMode.toLowerCase()))return"";var t="A"===this.amPmMode,n=e<12?" am":" pm";return t&&(n=n.toUpperCase()),n},typeItemHeight:function(e){return this.$refs[e].$el.querySelector("li").offsetHeight},scrollBarHeight:function(e){return this.$refs[e].$el.offsetHeight}}},Mr,[],!1,null,null,null);Fr.options.__file="packages/date-picker/src/basic/time-spinner.vue";var Dr=Fr.exports,Pr=i({mixins:[p.a],components:{TimeSpinner:Dr},props:{visible:Boolean,timeArrowControl:Boolean},watch:{visible:function(e){var t=this;e?(this.oldValue=this.value,this.$nextTick(function(){return t.$refs.spinner.emitSelectRange("hours")})):this.needInitAdjust=!0},value:function(e){var t=this,n=void 0;e instanceof Date?n=Object(dr.limitTimeRange)(e,this.selectableRange,this.format):e||(n=this.defaultValue?new Date(this.defaultValue):new Date),this.date=n,this.visible&&this.needInitAdjust&&(this.$nextTick(function(e){return t.adjustSpinners()}),this.needInitAdjust=!1)},selectableRange:function(e){this.$refs.spinner.selectableRange=e},defaultValue:function(e){Object(dr.isDate)(this.value)||(this.date=e?new Date(e):new Date)}},data:function(){return{popperClass:"",format:"HH:mm:ss",value:"",defaultValue:null,date:new Date,oldValue:new Date,selectableRange:[],selectionRange:[0,2],disabled:!1,arrowControl:!1,needInitAdjust:!0}},computed:{showSeconds:function(){return-1!==(this.format||"").indexOf("ss")},useArrow:function(){return this.arrowControl||this.timeArrowControl||!1},amPmMode:function(){return-1!==(this.format||"").indexOf("A")?"A":-1!==(this.format||"").indexOf("a")?"a":""}},methods:{handleCancel:function(){this.$emit("pick",this.oldValue,!1)},handleChange:function(e){this.visible&&(this.date=Object(dr.clearMilliseconds)(e),this.isValidValue(this.date)&&this.$emit("pick",this.date,!0))},setSelectionRange:function(e,t){this.$emit("select-range",e,t),this.selectionRange=[e,t]},handleConfirm:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments[1];if(!t){var n=Object(dr.clearMilliseconds)(Object(dr.limitTimeRange)(this.date,this.selectableRange,this.format));this.$emit("pick",n,e,t)}},handleKeydown:function(e){var t=e.keyCode,n={38:-1,40:1,37:-1,39:1};if(37===t||39===t){var r=n[t];return this.changeSelectionRange(r),void e.preventDefault()}if(38===t||40===t){var i=n[t];return this.$refs.spinner.scrollDown(i),void e.preventDefault()}},isValidValue:function(e){return Object(dr.timeWithinRange)(e,this.selectableRange,this.format)},adjustSpinners:function(){return this.$refs.spinner.adjustSpinners()},changeSelectionRange:function(e){var t=[0,3].concat(this.showSeconds?[6]:[]),n=["hours","minutes"].concat(this.showSeconds?["seconds"]:[]),r=(t.indexOf(this.selectionRange[0])+e+t.length)%t.length;this.$refs.spinner.emitSelectRange(n[r])}},mounted:function(){var e=this;this.$nextTick(function(){return e.handleConfirm(!0,!0)}),this.$emit("mounted")}},Ir,[],!1,null,null,null);Pr.options.__file="packages/date-picker/src/panel/time.vue";var Or=Pr.exports,Lr=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("table",{staticClass:"el-year-table",on:{click:e.handleYearTableClick}},[n("tbody",[n("tr",[n("td",{staticClass:"available",class:e.getCellStyle(e.startYear+0)},[n("a",{staticClass:"cell"},[e._v(e._s(e.startYear))])]),n("td",{staticClass:"available",class:e.getCellStyle(e.startYear+1)},[n("a",{staticClass:"cell"},[e._v(e._s(e.startYear+1))])]),n("td",{staticClass:"available",class:e.getCellStyle(e.startYear+2)},[n("a",{staticClass:"cell"},[e._v(e._s(e.startYear+2))])]),n("td",{staticClass:"available",class:e.getCellStyle(e.startYear+3)},[n("a",{staticClass:"cell"},[e._v(e._s(e.startYear+3))])])]),n("tr",[n("td",{staticClass:"available",class:e.getCellStyle(e.startYear+4)},[n("a",{staticClass:"cell"},[e._v(e._s(e.startYear+4))])]),n("td",{staticClass:"available",class:e.getCellStyle(e.startYear+5)},[n("a",{staticClass:"cell"},[e._v(e._s(e.startYear+5))])]),n("td",{staticClass:"available",class:e.getCellStyle(e.startYear+6)},[n("a",{staticClass:"cell"},[e._v(e._s(e.startYear+6))])]),n("td",{staticClass:"available",class:e.getCellStyle(e.startYear+7)},[n("a",{staticClass:"cell"},[e._v(e._s(e.startYear+7))])])]),n("tr",[n("td",{staticClass:"available",class:e.getCellStyle(e.startYear+8)},[n("a",{staticClass:"cell"},[e._v(e._s(e.startYear+8))])]),n("td",{staticClass:"available",class:e.getCellStyle(e.startYear+9)},[n("a",{staticClass:"cell"},[e._v(e._s(e.startYear+9))])]),n("td"),n("td")])])])};Lr._withStripped=!0;var Rr=i({props:{disabledDate:{},value:{},defaultValue:{validator:function(e){return null===e||e instanceof Date&&Object(dr.isDate)(e)}},date:{}},computed:{startYear:function(){return 10*Math.floor(this.date.getFullYear()/10)}},methods:{getCellStyle:function(e){var t={},n=new Date;return t.disabled="function"==typeof this.disabledDate&&function(e){var t=Object(dr.getDayCountOfYear)(e),n=new Date(e,0,1);return Object(dr.range)(t).map(function(e){return Object(dr.nextDate)(n,e)})}(e).every(this.disabledDate),t.current=Object(A.arrayFindIndex)(Object(A.coerceTruthyValueToArray)(this.value),function(t){return t.getFullYear()===e})>=0,t.today=n.getFullYear()===e,t.default=this.defaultValue&&this.defaultValue.getFullYear()===e,t},handleYearTableClick:function(e){var t=e.target;if("A"===t.tagName){if(Object(pe.hasClass)(t.parentNode,"disabled"))return;var n=t.textContent||t.innerText;this.$emit("pick",Number(n))}}}},Lr,[],!1,null,null,null);Rr.options.__file="packages/date-picker/src/basic/year-table.vue";var Nr=Rr.exports,Ur=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("table",{staticClass:"el-month-table",on:{click:e.handleMonthTableClick,mousemove:e.handleMouseMove}},[n("tbody",e._l(e.rows,function(t,r){return n("tr",{key:r},e._l(t,function(t,r){return n("td",{key:r,class:e.getCellStyle(t)},[n("div",[n("a",{staticClass:"cell"},[e._v(e._s(e.t("el.datepicker.months."+e.months[t.text])))])])])}),0)}),0)])};Ur._withStripped=!0;var Hr=function(e){return new Date(e.getFullYear(),e.getMonth())},jr=function(e){return"number"==typeof e||"string"==typeof e?Hr(new Date(e)).getTime():e instanceof Date?Hr(e).getTime():NaN},Qr=i({props:{disabledDate:{},value:{},selectionMode:{default:"month"},minDate:{},maxDate:{},defaultValue:{validator:function(e){return null===e||Object(dr.isDate)(e)||Array.isArray(e)&&e.every(dr.isDate)}},date:{},rangeState:{default:function(){return{endDate:null,selecting:!1}}}},mixins:[p.a],watch:{"rangeState.endDate":function(e){this.markRange(this.minDate,e)},minDate:function(e,t){jr(e)!==jr(t)&&this.markRange(this.minDate,this.maxDate)},maxDate:function(e,t){jr(e)!==jr(t)&&this.markRange(this.minDate,this.maxDate)}},data:function(){return{months:["jan","feb","mar","apr","may","jun","jul","aug","sep","oct","nov","dec"],tableRows:[[],[],[]],lastRow:null,lastColumn:null}},methods:{cellMatchesDate:function(e,t){var n=new Date(t);return this.date.getFullYear()===n.getFullYear()&&Number(e.text)===n.getMonth()},getCellStyle:function(e){var t=this,n={},r=this.date.getFullYear(),i=new Date,a=e.text,o=this.defaultValue?Array.isArray(this.defaultValue)?this.defaultValue:[this.defaultValue]:[];return n.disabled="function"==typeof this.disabledDate&&function(e,t){var n=Object(dr.getDayCountOfMonth)(e,t),r=new Date(e,t,1);return Object(dr.range)(n).map(function(e){return Object(dr.nextDate)(r,e)})}(r,a).every(this.disabledDate),n.current=Object(A.arrayFindIndex)(Object(A.coerceTruthyValueToArray)(this.value),function(e){return e.getFullYear()===r&&e.getMonth()===a})>=0,n.today=i.getFullYear()===r&&i.getMonth()===a,n.default=o.some(function(n){return t.cellMatchesDate(e,n)}),e.inRange&&(n["in-range"]=!0,e.start&&(n["start-date"]=!0),e.end&&(n["end-date"]=!0)),n},getMonthOfCell:function(e){var t=this.date.getFullYear();return new Date(t,e,1)},markRange:function(e,t){e=jr(e),t=jr(t)||e;var n=[Math.min(e,t),Math.max(e,t)];e=n[0],t=n[1];for(var r=this.rows,i=0,a=r.length;i<a;i++)for(var o=r[i],s=0,l=o.length;s<l;s++){var c=o[s],u=4*i+s,h=new Date(this.date.getFullYear(),u).getTime();c.inRange=e&&h>=e&&h<=t,c.start=e&&h===e,c.end=t&&h===t}},handleMouseMove:function(e){if(this.rangeState.selecting){var t=e.target;if("A"===t.tagName&&(t=t.parentNode.parentNode),"DIV"===t.tagName&&(t=t.parentNode),"TD"===t.tagName){var n=t.parentNode.rowIndex,r=t.cellIndex;this.rows[n][r].disabled||n===this.lastRow&&r===this.lastColumn||(this.lastRow=n,this.lastColumn=r,this.$emit("changerange",{minDate:this.minDate,maxDate:this.maxDate,rangeState:{selecting:!0,endDate:this.getMonthOfCell(4*n+r)}}))}}},handleMonthTableClick:function(e){var t=e.target;if("A"===t.tagName&&(t=t.parentNode.parentNode),"DIV"===t.tagName&&(t=t.parentNode),"TD"===t.tagName&&!Object(pe.hasClass)(t,"disabled")){var n=t.cellIndex,r=4*t.parentNode.rowIndex+n,i=this.getMonthOfCell(r);"range"===this.selectionMode?this.rangeState.selecting?(i>=this.minDate?this.$emit("pick",{minDate:this.minDate,maxDate:i}):this.$emit("pick",{minDate:i,maxDate:this.minDate}),this.rangeState.selecting=!1):(this.$emit("pick",{minDate:i,maxDate:null}),this.rangeState.selecting=!0):this.$emit("pick",r)}}},computed:{rows:function(){for(var e=this,t=this.tableRows,n=this.disabledDate,r=[],i=jr(new Date),a=0;a<3;a++)for(var o=t[a],s=function(t){var s=o[t];s||(s={row:a,column:t,type:"normal",inRange:!1,start:!1,end:!1}),s.type="normal";var l=4*a+t,c=new Date(e.date.getFullYear(),l).getTime();s.inRange=c>=jr(e.minDate)&&c<=jr(e.maxDate),s.start=e.minDate&&c===jr(e.minDate),s.end=e.maxDate&&c===jr(e.maxDate),c===i&&(s.type="today"),s.text=l;var u=new Date(c);s.disabled="function"==typeof n&&n(u),s.selected=Object(A.arrayFind)(r,function(e){return e.getTime()===u.getTime()}),e.$set(o,t,s)},l=0;l<4;l++)s(l);return t}}},Ur,[],!1,null,null,null);Qr.options.__file="packages/date-picker/src/basic/month-table.vue";var zr=Qr.exports,Vr=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("table",{staticClass:"el-date-table",class:{"is-week-mode":"week"===e.selectionMode},attrs:{cellspacing:"0",cellpadding:"0"},on:{click:e.handleClick,mousemove:e.handleMouseMove}},[n("tbody",[n("tr",[e.showWeekNumber?n("th",[e._v(e._s(e.t("el.datepicker.week")))]):e._e(),e._l(e.WEEKS,function(t,r){return n("th",{key:r},[e._v(e._s(e.t("el.datepicker.weeks."+t)))])})],2),e._l(e.rows,function(t,r){return n("tr",{key:r,staticClass:"el-date-table__row",class:{current:e.isWeekActive(t[1])}},e._l(t,function(t,r){return n("td",{key:r,class:e.getCellClasses(t)},[n("div",[n("span",[e._v("\n "+e._s(t.text)+"\n ")])])])}),0)})],2)])};Vr._withStripped=!0;var Gr=["sun","mon","tue","wed","thu","fri","sat"],$r=function(e){return"number"==typeof e||"string"==typeof e?Object(dr.clearTime)(new Date(e)).getTime():e instanceof Date?Object(dr.clearTime)(e).getTime():NaN},qr=i({mixins:[p.a],props:{firstDayOfWeek:{default:7,type:Number,validator:function(e){return e>=1&&e<=7}},value:{},defaultValue:{validator:function(e){return null===e||Object(dr.isDate)(e)||Array.isArray(e)&&e.every(dr.isDate)}},date:{},selectionMode:{default:"day"},showWeekNumber:{type:Boolean,default:!1},disabledDate:{},cellClassName:{},minDate:{},maxDate:{},rangeState:{default:function(){return{endDate:null,selecting:!1}}}},computed:{offsetDay:function(){var e=this.firstDayOfWeek;return e>3?7-e:-e},WEEKS:function(){var e=this.firstDayOfWeek;return Gr.concat(Gr).slice(e,e+7)},year:function(){return this.date.getFullYear()},month:function(){return this.date.getMonth()},startDate:function(){return Object(dr.getStartDateOfMonth)(this.year,this.month)},rows:function(){var e=this,t=new Date(this.year,this.month,1),n=Object(dr.getFirstDayOfMonth)(t),r=Object(dr.getDayCountOfMonth)(t.getFullYear(),t.getMonth()),i=Object(dr.getDayCountOfMonth)(t.getFullYear(),0===t.getMonth()?11:t.getMonth()-1);n=0===n?7:n;for(var a=this.offsetDay,o=this.tableRows,s=1,l=this.startDate,c=this.disabledDate,u=this.cellClassName,h="dates"===this.selectionMode?Object(A.coerceTruthyValueToArray)(this.value):[],d=$r(new Date),f=0;f<6;f++){var p=o[f];this.showWeekNumber&&(p[0]||(p[0]={type:"week",text:Object(dr.getWeekNumber)(Object(dr.nextDate)(l,7*f+1))}));for(var g=function(t){var o=p[e.showWeekNumber?t+1:t];o||(o={row:f,column:t,type:"normal",inRange:!1,start:!1,end:!1}),o.type="normal";var g=7*f+t,m=Object(dr.nextDate)(l,g-a).getTime();if(o.inRange=m>=$r(e.minDate)&&m<=$r(e.maxDate),o.start=e.minDate&&m===$r(e.minDate),o.end=e.maxDate&&m===$r(e.maxDate),m===d&&(o.type="today"),f>=0&&f<=1){var v=n+a<0?7+n+a:n+a;t+7*f>=v?o.text=s++:(o.text=i-(v-t%7)+1+7*f,o.type="prev-month")}else s<=r?o.text=s++:(o.text=s++-r,o.type="next-month");var y=new Date(m);o.disabled="function"==typeof c&&c(y),o.selected=Object(A.arrayFind)(h,function(e){return e.getTime()===y.getTime()}),o.customClass="function"==typeof u&&u(y),e.$set(p,e.showWeekNumber?t+1:t,o)},m=0;m<7;m++)g(m);if("week"===this.selectionMode){var v=this.showWeekNumber?1:0,y=this.showWeekNumber?7:6,b=this.isWeekActive(p[v+1]);p[v].inRange=b,p[v].start=b,p[y].inRange=b,p[y].end=b}}return o}},watch:{"rangeState.endDate":function(e){this.markRange(this.minDate,e)},minDate:function(e,t){$r(e)!==$r(t)&&this.markRange(this.minDate,this.maxDate)},maxDate:function(e,t){$r(e)!==$r(t)&&this.markRange(this.minDate,this.maxDate)}},data:function(){return{tableRows:[[],[],[],[],[],[]],lastRow:null,lastColumn:null}},methods:{cellMatchesDate:function(e,t){var n=new Date(t);return this.year===n.getFullYear()&&this.month===n.getMonth()&&Number(e.text)===n.getDate()},getCellClasses:function(e){var t=this,n=this.selectionMode,r=this.defaultValue?Array.isArray(this.defaultValue)?this.defaultValue:[this.defaultValue]:[],i=[];return"normal"!==e.type&&"today"!==e.type||e.disabled?i.push(e.type):(i.push("available"),"today"===e.type&&i.push("today")),"normal"===e.type&&r.some(function(n){return t.cellMatchesDate(e,n)})&&i.push("default"),"day"!==n||"normal"!==e.type&&"today"!==e.type||!this.cellMatchesDate(e,this.value)||i.push("current"),!e.inRange||"normal"!==e.type&&"today"!==e.type&&"week"!==this.selectionMode||(i.push("in-range"),e.start&&i.push("start-date"),e.end&&i.push("end-date")),e.disabled&&i.push("disabled"),e.selected&&i.push("selected"),e.customClass&&i.push(e.customClass),i.join(" ")},getDateOfCell:function(e,t){var n=7*e+(t-(this.showWeekNumber?1:0))-this.offsetDay;return Object(dr.nextDate)(this.startDate,n)},isWeekActive:function(e){if("week"!==this.selectionMode)return!1;var t=new Date(this.year,this.month,1),n=t.getFullYear(),r=t.getMonth();if("prev-month"===e.type&&(t.setMonth(0===r?11:r-1),t.setFullYear(0===r?n-1:n)),"next-month"===e.type&&(t.setMonth(11===r?0:r+1),t.setFullYear(11===r?n+1:n)),t.setDate(parseInt(e.text,10)),Object(dr.isDate)(this.value)){var i=(this.value.getDay()-this.firstDayOfWeek+7)%7-1;return Object(dr.prevDate)(this.value,i).getTime()===t.getTime()}return!1},markRange:function(e,t){e=$r(e),t=$r(t)||e;var n=[Math.min(e,t),Math.max(e,t)];e=n[0],t=n[1];for(var r=this.startDate,i=this.rows,a=0,o=i.length;a<o;a++)for(var s=i[a],l=0,c=s.length;l<c;l++)if(!this.showWeekNumber||0!==l){var u=s[l],h=7*a+l+(this.showWeekNumber?-1:0),d=Object(dr.nextDate)(r,h-this.offsetDay).getTime();u.inRange=e&&d>=e&&d<=t,u.start=e&&d===e,u.end=t&&d===t}},handleMouseMove:function(e){if(this.rangeState.selecting){var t=e.target;if("SPAN"===t.tagName&&(t=t.parentNode.parentNode),"DIV"===t.tagName&&(t=t.parentNode),"TD"===t.tagName){var n=t.parentNode.rowIndex-1,r=t.cellIndex;this.rows[n][r].disabled||n===this.lastRow&&r===this.lastColumn||(this.lastRow=n,this.lastColumn=r,this.$emit("changerange",{minDate:this.minDate,maxDate:this.maxDate,rangeState:{selecting:!0,endDate:this.getDateOfCell(n,r)}}))}}},handleClick:function(e){var t=e.target;if("SPAN"===t.tagName&&(t=t.parentNode.parentNode),"DIV"===t.tagName&&(t=t.parentNode),"TD"===t.tagName){var n=t.parentNode.rowIndex-1,r="week"===this.selectionMode?1:t.cellIndex,i=this.rows[n][r];if(!i.disabled&&"week"!==i.type){var a,o,s,l=this.getDateOfCell(n,r);if("range"===this.selectionMode)this.rangeState.selecting?(l>=this.minDate?this.$emit("pick",{minDate:this.minDate,maxDate:l}):this.$emit("pick",{minDate:l,maxDate:this.minDate}),this.rangeState.selecting=!1):(this.$emit("pick",{minDate:l,maxDate:null}),this.rangeState.selecting=!0);else if("day"===this.selectionMode)this.$emit("pick",l);else if("week"===this.selectionMode){var c=Object(dr.getWeekNumber)(l),u=l.getFullYear()+"w"+c;this.$emit("pick",{year:l.getFullYear(),week:c,value:u,date:l})}else if("dates"===this.selectionMode){var h=this.value||[],d=i.selected?(a=h,(s="function"==typeof(o=function(e){return e.getTime()===l.getTime()})?Object(A.arrayFindIndex)(a,o):a.indexOf(o))>=0?[].concat(a.slice(0,s),a.slice(s+1)):a):[].concat(h,[l]);this.$emit("pick",d)}}}}}},Vr,[],!1,null,null,null);qr.options.__file="packages/date-picker/src/basic/date-table.vue";var Wr=qr.exports,Kr=i({mixins:[p.a],directives:{Clickoutside:F.a},watch:{showTime:function(e){var t=this;e&&this.$nextTick(function(e){var n=t.$refs.input.$el;n&&(t.pickerWidth=n.getBoundingClientRect().width+10)})},value:function(e){"dates"===this.selectionMode&&this.value||(Object(dr.isDate)(e)?this.date=new Date(e):this.date=this.getDefaultValue())},defaultValue:function(e){Object(dr.isDate)(this.value)||(this.date=e?new Date(e):new Date)},timePickerVisible:function(e){var t=this;e&&this.$nextTick(function(){return t.$refs.timepicker.adjustSpinners()})},selectionMode:function(e){"month"===e?"year"===this.currentView&&"month"===this.currentView||(this.currentView="month"):"dates"===e&&(this.currentView="date")}},methods:{proxyTimePickerDataProperties:function(){var e,t=this,n=function(e){t.$refs.timepicker.value=e},r=function(e){t.$refs.timepicker.date=e},i=function(e){t.$refs.timepicker.selectableRange=e};this.$watch("value",n),this.$watch("date",r),this.$watch("selectableRange",i),e=this.timeFormat,t.$refs.timepicker.format=e,n(this.value),r(this.date),i(this.selectableRange)},handleClear:function(){this.date=this.getDefaultValue(),this.$emit("pick",null)},emit:function(e){for(var t=this,n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];if(e)if(Array.isArray(e)){var a=e.map(function(e){return t.showTime?Object(dr.clearMilliseconds)(e):Object(dr.clearTime)(e)});this.$emit.apply(this,["pick",a].concat(r))}else this.$emit.apply(this,["pick",this.showTime?Object(dr.clearMilliseconds)(e):Object(dr.clearTime)(e)].concat(r));else this.$emit.apply(this,["pick",e].concat(r));this.userInputDate=null,this.userInputTime=null},showMonthPicker:function(){this.currentView="month"},showYearPicker:function(){this.currentView="year"},prevMonth:function(){this.date=Object(dr.prevMonth)(this.date)},nextMonth:function(){this.date=Object(dr.nextMonth)(this.date)},prevYear:function(){"year"===this.currentView?this.date=Object(dr.prevYear)(this.date,10):this.date=Object(dr.prevYear)(this.date)},nextYear:function(){"year"===this.currentView?this.date=Object(dr.nextYear)(this.date,10):this.date=Object(dr.nextYear)(this.date)},handleShortcutClick:function(e){e.onClick&&e.onClick(this)},handleTimePick:function(e,t,n){if(Object(dr.isDate)(e)){var r=this.value?Object(dr.modifyTime)(this.value,e.getHours(),e.getMinutes(),e.getSeconds()):Object(dr.modifyWithTimeString)(this.getDefaultValue(),this.defaultTime);this.date=r,this.emit(this.date,!0)}else this.emit(e,!0);n||(this.timePickerVisible=t)},handleTimePickClose:function(){this.timePickerVisible=!1},handleMonthPick:function(e){"month"===this.selectionMode?(this.date=Object(dr.modifyDate)(this.date,this.year,e,1),this.emit(this.date)):(this.date=Object(dr.changeYearMonthAndClampDate)(this.date,this.year,e),this.currentView="date")},handleDatePick:function(e){if("day"===this.selectionMode){var t=this.value?Object(dr.modifyDate)(this.value,e.getFullYear(),e.getMonth(),e.getDate()):Object(dr.modifyWithTimeString)(e,this.defaultTime);this.checkDateWithinRange(t)||(t=Object(dr.modifyDate)(this.selectableRange[0][0],e.getFullYear(),e.getMonth(),e.getDate())),this.date=t,this.emit(this.date,this.showTime)}else"week"===this.selectionMode?this.emit(e.date):"dates"===this.selectionMode&&this.emit(e,!0)},handleYearPick:function(e){"year"===this.selectionMode?(this.date=Object(dr.modifyDate)(this.date,e,0,1),this.emit(this.date)):(this.date=Object(dr.changeYearMonthAndClampDate)(this.date,e,this.month),this.currentView="month")},changeToNow:function(){this.disabledDate&&this.disabledDate(new Date)||!this.checkDateWithinRange(new Date)||(this.date=new Date,this.emit(this.date))},confirm:function(){if("dates"===this.selectionMode)this.emit(this.value);else{var e=this.value?this.value:Object(dr.modifyWithTimeString)(this.getDefaultValue(),this.defaultTime);this.date=new Date(e),this.emit(e)}},resetView:function(){"month"===this.selectionMode?this.currentView="month":"year"===this.selectionMode?this.currentView="year":this.currentView="date"},handleEnter:function(){document.body.addEventListener("keydown",this.handleKeydown)},handleLeave:function(){this.$emit("dodestroy"),document.body.removeEventListener("keydown",this.handleKeydown)},handleKeydown:function(e){var t=e.keyCode;this.visible&&!this.timePickerVisible&&(-1!==[38,40,37,39].indexOf(t)&&(this.handleKeyControl(t),e.stopPropagation(),e.preventDefault()),13===t&&null===this.userInputDate&&null===this.userInputTime&&this.emit(this.date,!1))},handleKeyControl:function(e){for(var t={year:{38:-4,40:4,37:-1,39:1,offset:function(e,t){return e.setFullYear(e.getFullYear()+t)}},month:{38:-4,40:4,37:-1,39:1,offset:function(e,t){return e.setMonth(e.getMonth()+t)}},week:{38:-1,40:1,37:-1,39:1,offset:function(e,t){return e.setDate(e.getDate()+7*t)}},day:{38:-7,40:7,37:-1,39:1,offset:function(e,t){return e.setDate(e.getDate()+t)}}},n=this.selectionMode,r=this.date.getTime(),i=new Date(this.date.getTime());Math.abs(r-i.getTime())<=31536e6;){var a=t[n];if(a.offset(i,a[e]),"function"!=typeof this.disabledDate||!this.disabledDate(i)){this.date=i,this.$emit("pick",i,!0);break}}},handleVisibleTimeChange:function(e){var t=Object(dr.parseDate)(e,this.timeFormat);t&&this.checkDateWithinRange(t)&&(this.date=Object(dr.modifyDate)(t,this.year,this.month,this.monthDate),this.userInputTime=null,this.$refs.timepicker.value=this.date,this.timePickerVisible=!1,this.emit(this.date,!0))},handleVisibleDateChange:function(e){var t=Object(dr.parseDate)(e,this.dateFormat);if(t){if("function"==typeof this.disabledDate&&this.disabledDate(t))return;this.date=Object(dr.modifyTime)(t,this.date.getHours(),this.date.getMinutes(),this.date.getSeconds()),this.userInputDate=null,this.resetView(),this.emit(this.date,!0)}},isValidValue:function(e){return e&&!isNaN(e)&&("function"!=typeof this.disabledDate||!this.disabledDate(e))&&this.checkDateWithinRange(e)},getDefaultValue:function(){return this.defaultValue?new Date(this.defaultValue):new Date},checkDateWithinRange:function(e){return!(this.selectableRange.length>0)||Object(dr.timeWithinRange)(e,this.selectableRange,this.format||"HH:mm:ss")}},components:{TimePicker:Or,YearTable:Nr,MonthTable:zr,DateTable:Wr,ElInput:d.a,ElButton:$.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(dr.getWeekNumber)(this.date)},monthDate:function(){return this.date.getDate()},footerVisible:function(){return this.showTime||"dates"===this.selectionMode},visibleTime:function(){return null!==this.userInputTime?this.userInputTime:Object(dr.formatDate)(this.value||this.defaultValue,this.timeFormat)},visibleDate:function(){return null!==this.userInputDate?this.userInputDate:Object(dr.formatDate)(this.value||this.defaultValue,this.dateFormat)},yearLabel:function(){var e=this.t("el.datepicker.year");if("year"===this.currentView){var t=10*Math.floor(this.year/10);return e?t+" "+e+" - "+(t+9)+" "+e:t+" - "+(t+9)}return this.year+" "+e},timeFormat:function(){return this.format?Object(dr.extractTimeFormat)(this.format):"HH:mm:ss"},dateFormat:function(){return this.format?Object(dr.extractDateFormat)(this.format):"yyyy-MM-dd"}}},Tr,[],!1,null,null,null);Kr.options.__file="packages/date-picker/src/panel/date.vue";var Yr=Kr.exports,Xr=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":function(t){e.$emit("dodestroy")}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-picker-panel el-date-range-picker el-popper",class:[{"has-sidebar":e.$slots.sidebar||e.shortcuts,"has-time":e.showTime},e.popperClass]},[n("div",{staticClass:"el-picker-panel__body-wrapper"},[e._t("sidebar"),e.shortcuts?n("div",{staticClass:"el-picker-panel__sidebar"},e._l(e.shortcuts,function(t,r){return n("button",{key:r,staticClass:"el-picker-panel__shortcut",attrs:{type:"button"},on:{click:function(n){e.handleShortcutClick(t)}}},[e._v(e._s(t.text))])}),0):e._e(),n("div",{staticClass:"el-picker-panel__body"},[e.showTime?n("div",{staticClass:"el-date-range-picker__time-header"},[n("span",{staticClass:"el-date-range-picker__editors-wrap"},[n("span",{staticClass:"el-date-range-picker__time-picker-wrap"},[n("el-input",{ref:"minInput",staticClass:"el-date-range-picker__editor",attrs:{size:"small",disabled:e.rangeState.selecting,placeholder:e.t("el.datepicker.startDate"),value:e.minVisibleDate},on:{input:function(t){return e.handleDateInput(t,"min")},change:function(t){return e.handleDateChange(t,"min")}}})],1),n("span",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.handleMinTimeClose,expression:"handleMinTimeClose"}],staticClass:"el-date-range-picker__time-picker-wrap"},[n("el-input",{staticClass:"el-date-range-picker__editor",attrs:{size:"small",disabled:e.rangeState.selecting,placeholder:e.t("el.datepicker.startTime"),value:e.minVisibleTime},on:{focus:function(t){e.minTimePickerVisible=!0},input:function(t){return e.handleTimeInput(t,"min")},change:function(t){return e.handleTimeChange(t,"min")}}}),n("time-picker",{ref:"minTimePicker",attrs:{"time-arrow-control":e.arrowControl,visible:e.minTimePickerVisible},on:{pick:e.handleMinTimePick,mounted:function(t){e.$refs.minTimePicker.format=e.timeFormat}}})],1)]),n("span",{staticClass:"el-icon-arrow-right"}),n("span",{staticClass:"el-date-range-picker__editors-wrap is-right"},[n("span",{staticClass:"el-date-range-picker__time-picker-wrap"},[n("el-input",{staticClass:"el-date-range-picker__editor",attrs:{size:"small",disabled:e.rangeState.selecting,placeholder:e.t("el.datepicker.endDate"),value:e.maxVisibleDate,readonly:!e.minDate},on:{input:function(t){return e.handleDateInput(t,"max")},change:function(t){return e.handleDateChange(t,"max")}}})],1),n("span",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.handleMaxTimeClose,expression:"handleMaxTimeClose"}],staticClass:"el-date-range-picker__time-picker-wrap"},[n("el-input",{staticClass:"el-date-range-picker__editor",attrs:{size:"small",disabled:e.rangeState.selecting,placeholder:e.t("el.datepicker.endTime"),value:e.maxVisibleTime,readonly:!e.minDate},on:{focus:function(t){e.minDate&&(e.maxTimePickerVisible=!0)},input:function(t){return e.handleTimeInput(t,"max")},change:function(t){return e.handleTimeChange(t,"max")}}}),n("time-picker",{ref:"maxTimePicker",attrs:{"time-arrow-control":e.arrowControl,visible:e.maxTimePickerVisible},on:{pick:e.handleMaxTimePick,mounted:function(t){e.$refs.maxTimePicker.format=e.timeFormat}}})],1)])]):e._e(),n("div",{staticClass:"el-picker-panel__content el-date-range-picker__content is-left"},[n("div",{staticClass:"el-date-range-picker__header"},[n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-left",attrs:{type:"button"},on:{click:e.leftPrevYear}}),n("button",{staticClass:"el-picker-panel__icon-btn el-icon-arrow-left",attrs:{type:"button"},on:{click:e.leftPrevMonth}}),e.unlinkPanels?n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-right",class:{"is-disabled":!e.enableYearArrow},attrs:{type:"button",disabled:!e.enableYearArrow},on:{click:e.leftNextYear}}):e._e(),e.unlinkPanels?n("button",{staticClass:"el-picker-panel__icon-btn el-icon-arrow-right",class:{"is-disabled":!e.enableMonthArrow},attrs:{type:"button",disabled:!e.enableMonthArrow},on:{click:e.leftNextMonth}}):e._e(),n("div",[e._v(e._s(e.leftLabel))])]),n("date-table",{attrs:{"selection-mode":"range",date:e.leftDate,"default-value":e.defaultValue,"min-date":e.minDate,"max-date":e.maxDate,"range-state":e.rangeState,"disabled-date":e.disabledDate,"cell-class-name":e.cellClassName,"first-day-of-week":e.firstDayOfWeek},on:{changerange:e.handleChangeRange,pick:e.handleRangePick}})],1),n("div",{staticClass:"el-picker-panel__content el-date-range-picker__content is-right"},[n("div",{staticClass:"el-date-range-picker__header"},[e.unlinkPanels?n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-left",class:{"is-disabled":!e.enableYearArrow},attrs:{type:"button",disabled:!e.enableYearArrow},on:{click:e.rightPrevYear}}):e._e(),e.unlinkPanels?n("button",{staticClass:"el-picker-panel__icon-btn el-icon-arrow-left",class:{"is-disabled":!e.enableMonthArrow},attrs:{type:"button",disabled:!e.enableMonthArrow},on:{click:e.rightPrevMonth}}):e._e(),n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-right",attrs:{type:"button"},on:{click:e.rightNextYear}}),n("button",{staticClass:"el-picker-panel__icon-btn el-icon-arrow-right",attrs:{type:"button"},on:{click:e.rightNextMonth}}),n("div",[e._v(e._s(e.rightLabel))])]),n("date-table",{attrs:{"selection-mode":"range",date:e.rightDate,"default-value":e.defaultValue,"min-date":e.minDate,"max-date":e.maxDate,"range-state":e.rangeState,"disabled-date":e.disabledDate,"cell-class-name":e.cellClassName,"first-day-of-week":e.firstDayOfWeek},on:{changerange:e.handleChangeRange,pick:e.handleRangePick}})],1)])],2),e.showTime?n("div",{staticClass:"el-picker-panel__footer"},[n("el-button",{staticClass:"el-picker-panel__link-btn",attrs:{size:"mini",type:"text"},on:{click:e.handleClear}},[e._v("\n "+e._s(e.t("el.datepicker.clear"))+"\n ")]),n("el-button",{staticClass:"el-picker-panel__link-btn",attrs:{plain:"",size:"mini",disabled:e.btnDisabled},on:{click:function(t){e.handleConfirm(!1)}}},[e._v("\n "+e._s(e.t("el.datepicker.confirm"))+"\n ")])],1):e._e()])])};Xr._withStripped=!0;var Jr=function(e){return Array.isArray(e)?[new Date(e[0]),new Date(e[1])]:e?[new Date(e),Object(dr.nextDate)(new Date(e),1)]:[new Date,Object(dr.nextDate)(new Date,1)]},Zr=i({mixins:[p.a],directives:{Clickoutside:F.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(dr.formatDate)(this.minDate,this.dateFormat):""},maxVisibleDate:function(){return null!==this.dateUserInput.max?this.dateUserInput.max:this.maxDate||this.minDate?Object(dr.formatDate)(this.maxDate||this.minDate,this.dateFormat):""},minVisibleTime:function(){return null!==this.timeUserInput.min?this.timeUserInput.min:this.minDate?Object(dr.formatDate)(this.minDate,this.timeFormat):""},maxVisibleTime:function(){return null!==this.timeUserInput.max?this.timeUserInput.max:this.maxDate||this.minDate?Object(dr.formatDate)(this.maxDate||this.minDate,this.timeFormat):""},timeFormat:function(){return this.format?Object(dr.extractTimeFormat)(this.format):"HH:mm:ss"},dateFormat:function(){return this.format?Object(dr.extractDateFormat)(this.format):"yyyy-MM-dd"},enableMonthArrow:function(){var e=(this.leftMonth+1)%12,t=this.leftMonth+1>=12?1:0;return this.unlinkPanels&&new Date(this.leftYear+t,e)<new Date(this.rightYear,this.rightMonth)},enableYearArrow:function(){return this.unlinkPanels&&12*this.rightYear+this.rightMonth-(12*this.leftYear+this.leftMonth+1)>=12}},data:function(){return{popperClass:"",value:[],defaultValue:null,defaultTime:null,minDate:"",maxDate:"",leftDate:new Date,rightDate:Object(dr.nextMonth)(new Date),rangeState:{endDate:null,selecting:!1,row:null,column:null},showTime:!1,shortcuts:"",visible:"",disabledDate:"",cellClassName:"",firstDayOfWeek:7,minTimePickerVisible:!1,maxTimePickerVisible:!1,format:"",arrowControl:!1,unlinkPanels:!1,dateUserInput:{min:null,max:null},timeUserInput:{min:null,max:null}}},watch:{minDate:function(e){var t=this;this.dateUserInput.min=null,this.timeUserInput.min=null,this.$nextTick(function(){if(t.$refs.maxTimePicker&&t.maxDate&&t.maxDate<t.minDate){t.$refs.maxTimePicker.selectableRange=[[Object(dr.parseDate)(Object(dr.formatDate)(t.minDate,"HH:mm:ss"),"HH:mm:ss"),Object(dr.parseDate)("23:59:59","HH:mm:ss")]]}}),e&&this.$refs.minTimePicker&&(this.$refs.minTimePicker.date=e,this.$refs.minTimePicker.value=e)},maxDate:function(e){this.dateUserInput.max=null,this.timeUserInput.max=null,e&&this.$refs.maxTimePicker&&(this.$refs.maxTimePicker.date=e,this.$refs.maxTimePicker.value=e)},minTimePickerVisible:function(e){var t=this;e&&this.$nextTick(function(){t.$refs.minTimePicker.date=t.minDate,t.$refs.minTimePicker.value=t.minDate,t.$refs.minTimePicker.adjustSpinners()})},maxTimePickerVisible:function(e){var t=this;e&&this.$nextTick(function(){t.$refs.maxTimePicker.date=t.maxDate,t.$refs.maxTimePicker.value=t.maxDate,t.$refs.maxTimePicker.adjustSpinners()})},value:function(e){if(e){if(Array.isArray(e))if(this.minDate=Object(dr.isDate)(e[0])?new Date(e[0]):null,this.maxDate=Object(dr.isDate)(e[1])?new Date(e[1]):null,this.minDate)if(this.leftDate=this.minDate,this.unlinkPanels&&this.maxDate){var t=this.minDate.getFullYear(),n=this.minDate.getMonth(),r=this.maxDate.getFullYear(),i=this.maxDate.getMonth();this.rightDate=t===r&&n===i?Object(dr.nextMonth)(this.maxDate):this.maxDate}else this.rightDate=Object(dr.nextMonth)(this.leftDate);else this.leftDate=Jr(this.defaultValue)[0],this.rightDate=Object(dr.nextMonth)(this.leftDate)}else this.minDate=null,this.maxDate=null},defaultValue:function(e){if(!Array.isArray(this.value)){var t=Jr(e),n=t[0],r=t[1];this.leftDate=n,this.rightDate=e&&e[1]&&this.unlinkPanels?r:Object(dr.nextMonth)(this.leftDate)}}},methods:{handleClear:function(){this.minDate=null,this.maxDate=null,this.leftDate=Jr(this.defaultValue)[0],this.rightDate=Object(dr.nextMonth)(this.leftDate),this.$emit("pick",null)},handleChangeRange:function(e){this.minDate=e.minDate,this.maxDate=e.maxDate,this.rangeState=e.rangeState},handleDateInput:function(e,t){if(this.dateUserInput[t]=e,e.length===this.dateFormat.length){var n=Object(dr.parseDate)(e,this.dateFormat);if(n){if("function"==typeof this.disabledDate&&this.disabledDate(new Date(n)))return;"min"===t?(this.minDate=Object(dr.modifyDate)(this.minDate||new Date,n.getFullYear(),n.getMonth(),n.getDate()),this.leftDate=new Date(n),this.unlinkPanels||(this.rightDate=Object(dr.nextMonth)(this.leftDate))):(this.maxDate=Object(dr.modifyDate)(this.maxDate||new Date,n.getFullYear(),n.getMonth(),n.getDate()),this.rightDate=new Date(n),this.unlinkPanels||(this.leftDate=Object(dr.prevMonth)(n)))}}},handleDateChange:function(e,t){var n=Object(dr.parseDate)(e,this.dateFormat);n&&("min"===t?(this.minDate=Object(dr.modifyDate)(this.minDate,n.getFullYear(),n.getMonth(),n.getDate()),this.minDate>this.maxDate&&(this.maxDate=this.minDate)):(this.maxDate=Object(dr.modifyDate)(this.maxDate,n.getFullYear(),n.getMonth(),n.getDate()),this.maxDate<this.minDate&&(this.minDate=this.maxDate)))},handleTimeInput:function(e,t){var n=this;if(this.timeUserInput[t]=e,e.length===this.timeFormat.length){var r=Object(dr.parseDate)(e,this.timeFormat);r&&("min"===t?(this.minDate=Object(dr.modifyTime)(this.minDate,r.getHours(),r.getMinutes(),r.getSeconds()),this.$nextTick(function(e){return n.$refs.minTimePicker.adjustSpinners()})):(this.maxDate=Object(dr.modifyTime)(this.maxDate,r.getHours(),r.getMinutes(),r.getSeconds()),this.$nextTick(function(e){return n.$refs.maxTimePicker.adjustSpinners()})))}},handleTimeChange:function(e,t){var n=Object(dr.parseDate)(e,this.timeFormat);n&&("min"===t?(this.minDate=Object(dr.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(dr.modifyTime)(this.maxDate,n.getHours(),n.getMinutes(),n.getSeconds()),this.maxDate<this.minDate&&(this.minDate=this.maxDate),this.$refs.maxTimePicker.value=this.minDate,this.maxTimePickerVisible=!1))},handleRangePick:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=this.defaultTime||[],i=Object(dr.modifyWithTimeString)(e.minDate,r[0]),a=Object(dr.modifyWithTimeString)(e.maxDate,r[1]);this.maxDate===a&&this.minDate===i||(this.onPick&&this.onPick(e),this.maxDate=a,this.minDate=i,setTimeout(function(){t.maxDate=a,t.minDate=i},10),n&&!this.showTime&&this.handleConfirm())},handleShortcutClick:function(e){e.onClick&&e.onClick(this)},handleMinTimePick:function(e,t,n){this.minDate=this.minDate||new Date,e&&(this.minDate=Object(dr.modifyTime)(this.minDate,e.getHours(),e.getMinutes(),e.getSeconds())),n||(this.minTimePickerVisible=t),(!this.maxDate||this.maxDate&&this.maxDate.getTime()<this.minDate.getTime())&&(this.maxDate=new Date(this.minDate))},handleMinTimeClose:function(){this.minTimePickerVisible=!1},handleMaxTimePick:function(e,t,n){this.maxDate&&e&&(this.maxDate=Object(dr.modifyTime)(this.maxDate,e.getHours(),e.getMinutes(),e.getSeconds())),n||(this.maxTimePickerVisible=t),this.maxDate&&this.minDate&&this.minDate.getTime()>this.maxDate.getTime()&&(this.minDate=new Date(this.maxDate))},handleMaxTimeClose:function(){this.maxTimePickerVisible=!1},leftPrevYear:function(){this.leftDate=Object(dr.prevYear)(this.leftDate),this.unlinkPanels||(this.rightDate=Object(dr.nextMonth)(this.leftDate))},leftPrevMonth:function(){this.leftDate=Object(dr.prevMonth)(this.leftDate),this.unlinkPanels||(this.rightDate=Object(dr.nextMonth)(this.leftDate))},rightNextYear:function(){this.unlinkPanels?this.rightDate=Object(dr.nextYear)(this.rightDate):(this.leftDate=Object(dr.nextYear)(this.leftDate),this.rightDate=Object(dr.nextMonth)(this.leftDate))},rightNextMonth:function(){this.unlinkPanels?this.rightDate=Object(dr.nextMonth)(this.rightDate):(this.leftDate=Object(dr.nextMonth)(this.leftDate),this.rightDate=Object(dr.nextMonth)(this.leftDate))},leftNextYear:function(){this.leftDate=Object(dr.nextYear)(this.leftDate)},leftNextMonth:function(){this.leftDate=Object(dr.nextMonth)(this.leftDate)},rightPrevYear:function(){this.rightDate=Object(dr.prevYear)(this.rightDate)},rightPrevMonth:function(){this.rightDate=Object(dr.prevMonth)(this.rightDate)},handleConfirm:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.isValidValue([this.minDate,this.maxDate])&&this.$emit("pick",[this.minDate,this.maxDate],e)},isValidValue:function(e){return Array.isArray(e)&&e&&e[0]&&e[1]&&Object(dr.isDate)(e[0])&&Object(dr.isDate)(e[1])&&e[0].getTime()<=e[1].getTime()&&("function"!=typeof this.disabledDate||!this.disabledDate(e[0])&&!this.disabledDate(e[1]))},resetView:function(){this.minDate&&null==this.maxDate&&(this.rangeState.selecting=!1),this.minDate=this.value&&Object(dr.isDate)(this.value[0])?new Date(this.value[0]):null,this.maxDate=this.value&&Object(dr.isDate)(this.value[0])?new Date(this.value[1]):null}},components:{TimePicker:Or,DateTable:Wr,ElInput:d.a,ElButton:$.a}},Xr,[],!1,null,null,null);Zr.options.__file="packages/date-picker/src/panel/date-range.vue";var ei=Zr.exports,ti=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":function(t){e.$emit("dodestroy")}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-picker-panel el-date-range-picker el-popper",class:[{"has-sidebar":e.$slots.sidebar||e.shortcuts},e.popperClass]},[n("div",{staticClass:"el-picker-panel__body-wrapper"},[e._t("sidebar"),e.shortcuts?n("div",{staticClass:"el-picker-panel__sidebar"},e._l(e.shortcuts,function(t,r){return n("button",{key:r,staticClass:"el-picker-panel__shortcut",attrs:{type:"button"},on:{click:function(n){e.handleShortcutClick(t)}}},[e._v(e._s(t.text))])}),0):e._e(),n("div",{staticClass:"el-picker-panel__body"},[n("div",{staticClass:"el-picker-panel__content el-date-range-picker__content is-left"},[n("div",{staticClass:"el-date-range-picker__header"},[n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-left",attrs:{type:"button"},on:{click:e.leftPrevYear}}),e.unlinkPanels?n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-right",class:{"is-disabled":!e.enableYearArrow},attrs:{type:"button",disabled:!e.enableYearArrow},on:{click:e.leftNextYear}}):e._e(),n("div",[e._v(e._s(e.leftLabel))])]),n("month-table",{attrs:{"selection-mode":"range",date:e.leftDate,"default-value":e.defaultValue,"min-date":e.minDate,"max-date":e.maxDate,"range-state":e.rangeState,"disabled-date":e.disabledDate},on:{changerange:e.handleChangeRange,pick:e.handleRangePick}})],1),n("div",{staticClass:"el-picker-panel__content el-date-range-picker__content is-right"},[n("div",{staticClass:"el-date-range-picker__header"},[e.unlinkPanels?n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-left",class:{"is-disabled":!e.enableYearArrow},attrs:{type:"button",disabled:!e.enableYearArrow},on:{click:e.rightPrevYear}}):e._e(),n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-right",attrs:{type:"button"},on:{click:e.rightNextYear}}),n("div",[e._v(e._s(e.rightLabel))])]),n("month-table",{attrs:{"selection-mode":"range",date:e.rightDate,"default-value":e.defaultValue,"min-date":e.minDate,"max-date":e.maxDate,"range-state":e.rangeState,"disabled-date":e.disabledDate},on:{changerange:e.handleChangeRange,pick:e.handleRangePick}})],1)])],2)])])};ti._withStripped=!0;var ni=function(e){return Array.isArray(e)?[new Date(e[0]),new Date(e[1])]:e?[new Date(e),Object(dr.nextMonth)(new Date(e))]:[new Date,Object(dr.nextMonth)(new Date)]},ri=i({mixins:[p.a],directives:{Clickoutside:F.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(dr.nextYear)(new Date),rangeState:{endDate:null,selecting:!1,row:null,column:null},shortcuts:"",visible:"",disabledDate:"",format:"",arrowControl:!1,unlinkPanels:!1}},watch:{value:function(e){if(e){if(Array.isArray(e))if(this.minDate=Object(dr.isDate)(e[0])?new Date(e[0]):null,this.maxDate=Object(dr.isDate)(e[1])?new Date(e[1]):null,this.minDate)if(this.leftDate=this.minDate,this.unlinkPanels&&this.maxDate){var t=this.minDate.getFullYear(),n=this.maxDate.getFullYear();this.rightDate=t===n?Object(dr.nextYear)(this.maxDate):this.maxDate}else this.rightDate=Object(dr.nextYear)(this.leftDate);else this.leftDate=ni(this.defaultValue)[0],this.rightDate=Object(dr.nextYear)(this.leftDate)}else this.minDate=null,this.maxDate=null},defaultValue:function(e){if(!Array.isArray(this.value)){var t=ni(e),n=t[0],r=t[1];this.leftDate=n,this.rightDate=e&&e[1]&&n.getFullYear()!==r.getFullYear()&&this.unlinkPanels?r:Object(dr.nextYear)(this.leftDate)}}},methods:{handleClear:function(){this.minDate=null,this.maxDate=null,this.leftDate=ni(this.defaultValue)[0],this.rightDate=Object(dr.nextYear)(this.leftDate),this.$emit("pick",null)},handleChangeRange:function(e){this.minDate=e.minDate,this.maxDate=e.maxDate,this.rangeState=e.rangeState},handleRangePick:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=this.defaultTime||[],i=Object(dr.modifyWithTimeString)(e.minDate,r[0]),a=Object(dr.modifyWithTimeString)(e.maxDate,r[1]);this.maxDate===a&&this.minDate===i||(this.onPick&&this.onPick(e),this.maxDate=a,this.minDate=i,setTimeout(function(){t.maxDate=a,t.minDate=i},10),n&&this.handleConfirm())},handleShortcutClick:function(e){e.onClick&&e.onClick(this)},leftPrevYear:function(){this.leftDate=Object(dr.prevYear)(this.leftDate),this.unlinkPanels||(this.rightDate=Object(dr.prevYear)(this.rightDate))},rightNextYear:function(){this.unlinkPanels||(this.leftDate=Object(dr.nextYear)(this.leftDate)),this.rightDate=Object(dr.nextYear)(this.rightDate)},leftNextYear:function(){this.leftDate=Object(dr.nextYear)(this.leftDate)},rightPrevYear:function(){this.rightDate=Object(dr.prevYear)(this.rightDate)},handleConfirm:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.isValidValue([this.minDate,this.maxDate])&&this.$emit("pick",[this.minDate,this.maxDate],e)},isValidValue:function(e){return Array.isArray(e)&&e&&e[0]&&e[1]&&Object(dr.isDate)(e[0])&&Object(dr.isDate)(e[1])&&e[0].getTime()<=e[1].getTime()&&("function"!=typeof this.disabledDate||!this.disabledDate(e[0])&&!this.disabledDate(e[1]))},resetView:function(){this.minDate=this.value&&Object(dr.isDate)(this.value[0])?new Date(this.value[0]):null,this.maxDate=this.value&&Object(dr.isDate)(this.value[0])?new Date(this.value[1]):null}},components:{MonthTable:zr,ElInput:d.a,ElButton:$.a}},ti,[],!1,null,null,null);ri.options.__file="packages/date-picker/src/panel/month-range.vue";var ii=ri.exports,ai=function(e){return"daterange"===e||"datetimerange"===e?ei:"monthrange"===e?ii:Yr},oi={mixins:[Er],name:"ElDatePicker",props:{type:{type:String,default:"date"},timeArrowControl:Boolean},watch:{type:function(e){this.picker?(this.unmountPicker(),this.panel=ai(e),this.mountPicker()):this.panel=ai(e)}},created:function(){this.panel=ai(this.type)},install:function(e){e.component(oi.name,oi)}},si=oi,li=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"before-enter":e.handleMenuEnter,"after-leave":function(t){e.$emit("dodestroy")}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],ref:"popper",staticClass:"el-picker-panel time-select el-popper",class:e.popperClass,style:{width:e.width+"px"}},[n("el-scrollbar",{attrs:{noresize:"","wrap-class":"el-picker-panel__content"}},e._l(e.items,function(t){return n("div",{key:t.value,staticClass:"time-select-item",class:{selected:e.value===t.value,disabled:t.disabled,default:t.value===e.defaultValue},attrs:{disabled:t.disabled},on:{click:function(n){e.handleClick(t)}}},[e._v(e._s(t.value))])}),0)],1)])};li._withStripped=!0;var ci=function(e){var t=(e||"").split(":");return t.length>=2?{hours:parseInt(t[0],10),minutes:parseInt(t[1],10)}:null},ui=function(e,t){var n=ci(e),r=ci(t),i=n.minutes+60*n.hours,a=r.minutes+60*r.hours;return i===a?0:i>a?1:-1},hi=function(e,t){var n=ci(e),r=ci(t),i={hours:n.hours,minutes:n.minutes};return i.minutes+=r.minutes,i.hours+=r.hours,i.hours+=Math.floor(i.minutes/60),i.minutes=i.minutes%60,function(e){return(e.hours<10?"0"+e.hours:e.hours)+":"+(e.minutes<10?"0"+e.minutes:e.minutes)}(i)},di=i({components:{ElScrollbar:R.a},watch:{value:function(e){var t=this;e&&this.$nextTick(function(){return t.scrollToOption()})}},methods:{handleClick:function(e){e.disabled||this.$emit("pick",e.value)},handleClear:function(){this.$emit("pick",null)},scrollToOption:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".selected",t=this.$refs.popper.querySelector(".el-picker-panel__content");Nt()(t,t.querySelector(e))},handleMenuEnter:function(){var e=this,t=-1!==this.items.map(function(e){return e.value}).indexOf(this.value),n=-1!==this.items.map(function(e){return e.value}).indexOf(this.defaultValue),r=(t?".selected":n&&".default")||".time-select-item:not(.disabled)";this.$nextTick(function(){return e.scrollToOption(r)})},scrollDown:function(e){for(var t=this.items,n=t.length,r=t.length,i=t.map(function(e){return e.value}).indexOf(this.value);r--;)if(!t[i=(i+e+n)%n].disabled)return void this.$emit("pick",t[i].value,!0)},isValidValue:function(e){return-1!==this.items.filter(function(e){return!e.disabled}).map(function(e){return e.value}).indexOf(e)},handleKeydown:function(e){var t=e.keyCode;if(38===t||40===t){var n={40:1,38:-1}[t.toString()];return this.scrollDown(n),void e.stopPropagation()}}},data:function(){return{popperClass:"",start:"09:00",end:"18:00",step:"00:30",value:"",defaultValue:"",visible:!1,minTime:"",maxTime:"",width:0}},computed:{items:function(){var e=this.start,t=this.end,n=this.step,r=[];if(e&&t&&n)for(var i=e;ui(i,t)<=0;)r.push({value:i,disabled:ui(i,this.minTime||"-1:-1")<=0||ui(i,this.maxTime||"100:100")>=0}),i=hi(i,n);return r}}},li,[],!1,null,null,null);di.options.__file="packages/date-picker/src/panel/time-select.vue";var fi=di.exports,pi={mixins:[Er],name:"ElTimeSelect",componentName:"ElTimeSelect",props:{type:{type:String,default:"time-select"}},beforeCreate:function(){this.panel=fi},install:function(e){e.component(pi.name,pi)}},Ai=pi,gi=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":function(t){e.$emit("dodestroy")}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-time-range-picker el-picker-panel el-popper",class:e.popperClass},[n("div",{staticClass:"el-time-range-picker__content"},[n("div",{staticClass:"el-time-range-picker__cell"},[n("div",{staticClass:"el-time-range-picker__header"},[e._v(e._s(e.t("el.datepicker.startTime")))]),n("div",{staticClass:"el-time-range-picker__body el-time-panel__content",class:{"has-seconds":e.showSeconds,"is-arrow":e.arrowControl}},[n("time-spinner",{ref:"minSpinner",attrs:{"show-seconds":e.showSeconds,"am-pm-mode":e.amPmMode,"arrow-control":e.arrowControl,date:e.minDate},on:{change:e.handleMinChange,"select-range":e.setMinSelectionRange}})],1)]),n("div",{staticClass:"el-time-range-picker__cell"},[n("div",{staticClass:"el-time-range-picker__header"},[e._v(e._s(e.t("el.datepicker.endTime")))]),n("div",{staticClass:"el-time-range-picker__body el-time-panel__content",class:{"has-seconds":e.showSeconds,"is-arrow":e.arrowControl}},[n("time-spinner",{ref:"maxSpinner",attrs:{"show-seconds":e.showSeconds,"am-pm-mode":e.amPmMode,"arrow-control":e.arrowControl,date:e.maxDate},on:{change:e.handleMaxChange,"select-range":e.setMaxSelectionRange}})],1)])]),n("div",{staticClass:"el-time-panel__footer"},[n("button",{staticClass:"el-time-panel__btn cancel",attrs:{type:"button"},on:{click:function(t){e.handleCancel()}}},[e._v(e._s(e.t("el.datepicker.cancel")))]),n("button",{staticClass:"el-time-panel__btn confirm",attrs:{type:"button",disabled:e.btnDisabled},on:{click:function(t){e.handleConfirm()}}},[e._v(e._s(e.t("el.datepicker.confirm")))])])])])};gi._withStripped=!0;var mi=Object(dr.parseDate)("00:00:00","HH:mm:ss"),vi=Object(dr.parseDate)("23:59:59","HH:mm:ss"),yi=function(e){return Object(dr.modifyDate)(vi,e.getFullYear(),e.getMonth(),e.getDate())},bi=function(e,t){return new Date(Math.min(e.getTime()+t,yi(e).getTime()))},wi=i({mixins:[p.a],components:{TimeSpinner:Dr},computed:{showSeconds:function(){return-1!==(this.format||"").indexOf("ss")},offset:function(){return this.showSeconds?11:8},spinner:function(){return this.selectionRange[0]<this.offset?this.$refs.minSpinner:this.$refs.maxSpinner},btnDisabled:function(){return this.minDate.getTime()>this.maxDate.getTime()},amPmMode:function(){return-1!==(this.format||"").indexOf("A")?"A":-1!==(this.format||"").indexOf("a")?"a":""}},data:function(){return{popperClass:"",minDate:new Date,maxDate:new Date,value:[],oldValue:[new Date,new Date],defaultValue:null,format:"HH:mm:ss",visible:!1,selectionRange:[0,2],arrowControl:!1}},watch:{value:function(e){Array.isArray(e)?(this.minDate=new Date(e[0]),this.maxDate=new Date(e[1])):Array.isArray(this.defaultValue)?(this.minDate=new Date(this.defaultValue[0]),this.maxDate=new Date(this.defaultValue[1])):this.defaultValue?(this.minDate=new Date(this.defaultValue),this.maxDate=bi(new Date(this.defaultValue),36e5)):(this.minDate=new Date,this.maxDate=bi(new Date,36e5))},visible:function(e){var t=this;e&&(this.oldValue=this.value,this.$nextTick(function(){return t.$refs.minSpinner.emitSelectRange("hours")}))}},methods:{handleClear:function(){this.$emit("pick",null)},handleCancel:function(){this.$emit("pick",this.oldValue)},handleMinChange:function(e){this.minDate=Object(dr.clearMilliseconds)(e),this.handleChange()},handleMaxChange:function(e){this.maxDate=Object(dr.clearMilliseconds)(e),this.handleChange()},handleChange:function(){var e;this.isValidValue([this.minDate,this.maxDate])&&(this.$refs.minSpinner.selectableRange=[[(e=this.minDate,Object(dr.modifyDate)(mi,e.getFullYear(),e.getMonth(),e.getDate())),this.maxDate]],this.$refs.maxSpinner.selectableRange=[[this.minDate,yi(this.maxDate)]],this.$emit("pick",[this.minDate,this.maxDate],!0))},setMinSelectionRange:function(e,t){this.$emit("select-range",e,t,"min"),this.selectionRange=[e,t]},setMaxSelectionRange:function(e,t){this.$emit("select-range",e,t,"max"),this.selectionRange=[e+this.offset,t+this.offset]},handleConfirm:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.$refs.minSpinner.selectableRange,n=this.$refs.maxSpinner.selectableRange;this.minDate=Object(dr.limitTimeRange)(this.minDate,t,this.format),this.maxDate=Object(dr.limitTimeRange)(this.maxDate,n,this.format),this.$emit("pick",[this.minDate,this.maxDate],e)},adjustSpinners:function(){this.$refs.minSpinner.adjustSpinners(),this.$refs.maxSpinner.adjustSpinners()},changeSelectionRange:function(e){var t=this.showSeconds?[0,3,6,11,14,17]:[0,3,8,11],n=["hours","minutes"].concat(this.showSeconds?["seconds"]:[]),r=(t.indexOf(this.selectionRange[0])+e+t.length)%t.length,i=t.length/2;r<i?this.$refs.minSpinner.emitSelectRange(n[r]):this.$refs.maxSpinner.emitSelectRange(n[r-i])},isValidValue:function(e){return Array.isArray(e)&&Object(dr.timeWithinRange)(this.minDate,this.$refs.minSpinner.selectableRange)&&Object(dr.timeWithinRange)(this.maxDate,this.$refs.maxSpinner.selectableRange)},handleKeydown:function(e){var t=e.keyCode,n={38:-1,40:1,37:-1,39:1};if(37===t||39===t){var r=n[t];return this.changeSelectionRange(r),void e.preventDefault()}if(38===t||40===t){var i=n[t];return this.spinner.scrollDown(i),void e.preventDefault()}}}},gi,[],!1,null,null,null);wi.options.__file="packages/date-picker/src/panel/time-range.vue";var xi=wi.exports,_i={mixins:[Er],name:"ElTimePicker",props:{isRange:Boolean,arrowControl:Boolean},data:function(){return{type:""}},watch:{isRange:function(e){this.picker?(this.unmountPicker(),this.type=e?"timerange":"time",this.panel=e?xi:Or,this.mountPicker()):(this.type=e?"timerange":"time",this.panel=e?xi:Or)}},created:function(){this.type=this.isRange?"timerange":"time",this.panel=this.isRange?xi:Or},install:function(e){e.component(_i.name,_i)}},Ci=_i,Si=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("span",[n("transition",{attrs:{name:e.transition},on:{"after-enter":e.handleAfterEnter,"after-leave":e.handleAfterLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:!e.disabled&&e.showPopper,expression:"!disabled && showPopper"}],ref:"popper",staticClass:"el-popover el-popper",class:[e.popperClass,e.content&&"el-popover--plain"],style:{width:e.width+"px"},attrs:{role:"tooltip",id:e.tooltipId,"aria-hidden":e.disabled||!e.showPopper?"true":"false"}},[e.title?n("div",{staticClass:"el-popover__title",domProps:{textContent:e._s(e.title)}}):e._e(),e._t("default",[e._v(e._s(e.content))])],2)]),n("span",{ref:"wrapper",staticClass:"el-popover__reference-wrapper"},[e._t("reference")],2)],1)};Si._withStripped=!0;var ki=i({name:"ElPopover",mixins:[O.a],props:{trigger:{type:String,default:"click",validator:function(e){return["click","focus","hover","manual"].indexOf(e)>-1}},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:200},title:String,disabled:Boolean,content:String,reference:{},popperClass:String,width:{},visibleArrow:{default:!0},arrowOffset:{type:Number,default:0},transition:{type:String,default:"fade-in-linear"},tabindex:{type:Number,default:0}},computed:{tooltipId:function(){return"el-popover-"+Object(A.generateId)()}},watch:{showPopper:function(e){this.disabled||(e?this.$emit("show"):this.$emit("hide"))}},mounted:function(){var e=this,t=this.referenceElm=this.reference||this.$refs.reference,n=this.popper||this.$refs.popper;!t&&this.$refs.wrapper.children&&(t=this.referenceElm=this.$refs.wrapper.children[0]),t&&(Object(pe.addClass)(t,"el-popover__reference"),t.setAttribute("aria-describedby",this.tooltipId),t.setAttribute("tabindex",this.tabindex),n.setAttribute("tabindex",0),"click"!==this.trigger&&(Object(pe.on)(t,"focusin",function(){e.handleFocus();var n=t.__vue__;n&&"function"==typeof n.focus&&n.focus()}),Object(pe.on)(n,"focusin",this.handleFocus),Object(pe.on)(t,"focusout",this.handleBlur),Object(pe.on)(n,"focusout",this.handleBlur)),Object(pe.on)(t,"keydown",this.handleKeydown),Object(pe.on)(t,"click",this.handleClick)),"click"===this.trigger?(Object(pe.on)(t,"click",this.doToggle),Object(pe.on)(document,"click",this.handleDocumentClick)):"hover"===this.trigger?(Object(pe.on)(t,"mouseenter",this.handleMouseEnter),Object(pe.on)(n,"mouseenter",this.handleMouseEnter),Object(pe.on)(t,"mouseleave",this.handleMouseLeave),Object(pe.on)(n,"mouseleave",this.handleMouseLeave)):"focus"===this.trigger&&(this.tabindex<0&&console.warn("[Element Warn][Popover]a negative taindex means that the element cannot be focused by tab key"),t.querySelector("input, textarea")?(Object(pe.on)(t,"focusin",this.doShow),Object(pe.on)(t,"focusout",this.doClose)):(Object(pe.on)(t,"mousedown",this.doShow),Object(pe.on)(t,"mouseup",this.doClose)))},beforeDestroy:function(){this.cleanup()},deactivated:function(){this.cleanup()},methods:{doToggle:function(){this.showPopper=!this.showPopper},doShow:function(){this.showPopper=!0},doClose:function(){this.showPopper=!1},handleFocus:function(){Object(pe.addClass)(this.referenceElm,"focusing"),"click"!==this.trigger&&"focus"!==this.trigger||(this.showPopper=!0)},handleClick:function(){Object(pe.removeClass)(this.referenceElm,"focusing")},handleBlur:function(){Object(pe.removeClass)(this.referenceElm,"focusing"),"click"!==this.trigger&&"focus"!==this.trigger||(this.showPopper=!1)},handleMouseEnter:function(){var e=this;clearTimeout(this._timer),this.openDelay?this._timer=setTimeout(function(){e.showPopper=!0},this.openDelay):this.showPopper=!0},handleKeydown:function(e){27===e.keyCode&&"manual"!==this.trigger&&this.doClose()},handleMouseLeave:function(){var e=this;clearTimeout(this._timer),this.closeDelay?this._timer=setTimeout(function(){e.showPopper=!1},this.closeDelay):this.showPopper=!1},handleDocumentClick:function(e){var t=this.reference||this.$refs.reference,n=this.popper||this.$refs.popper;!t&&this.$refs.wrapper.children&&(t=this.referenceElm=this.$refs.wrapper.children[0]),this.$el&&t&&!this.$el.contains(e.target)&&!t.contains(e.target)&&n&&!n.contains(e.target)&&(this.showPopper=!1)},handleAfterEnter:function(){this.$emit("after-enter")},handleAfterLeave:function(){this.$emit("after-leave"),this.doDestroy()},cleanup:function(){(this.openDelay||this.closeDelay)&&clearTimeout(this._timer)}},destroyed:function(){var e=this.reference;Object(pe.off)(e,"click",this.doToggle),Object(pe.off)(e,"mouseup",this.doClose),Object(pe.off)(e,"mousedown",this.doShow),Object(pe.off)(e,"focusin",this.doShow),Object(pe.off)(e,"focusout",this.doClose),Object(pe.off)(e,"mousedown",this.doShow),Object(pe.off)(e,"mouseup",this.doClose),Object(pe.off)(e,"mouseleave",this.handleMouseLeave),Object(pe.off)(e,"mouseenter",this.handleMouseEnter),Object(pe.off)(document,"click",this.handleDocumentClick)}},Si,[],!1,null,null,null);ki.options.__file="packages/popover/src/main.vue";var Bi=ki.exports,Ei=function(e,t,n){var r=t.expression?t.value:t.arg,i=n.context.$refs[r];i&&(Array.isArray(i)?i[0].$refs.reference=e:i.$refs.reference=e)},Ti={bind:function(e,t,n){Ei(e,t,n)},inserted:function(e,t,n){Ei(e,t,n)}};hn.a.directive("popover",Ti),Bi.install=function(e){e.directive("popover",Ti),e.component(Bi.name,Bi)},Bi.directive=Ti;var Ii=Bi,Mi={name:"ElTooltip",mixins:[O.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(A.generateId)(),timeoutPending:null,focusing:!1}},beforeCreate:function(){var e=this;this.$isServer||(this.popperVM=new hn.a({data:{node:""},render:function(e){return this.node}}).$mount(),this.debounceClose=I()(200,function(){return e.handleClosePopper()}))},render:function(e){var t=this;this.popperVM&&(this.popperVM.node=e("transition",{attrs:{name:this.transition},on:{afterLeave:this.doDestroy}},[e("div",{on:{mouseleave:function(){t.setExpectedState(!1),t.debounceClose()},mouseenter:function(){t.setExpectedState(!0)}},ref:"popper",attrs:{role:"tooltip",id:this.tooltipId,"aria-hidden":this.disabled||!this.showPopper?"true":"false"},directives:[{name:"show",value:!this.disabled&&this.showPopper}],class:["el-tooltip__popper","is-"+this.effect,this.popperClass]},[this.$slots.content||this.content])]));var n=this.getFirstElement();if(!n)return null;var r=n.data=n.data||{};return r.staticClass=this.addTooltipClass(r.staticClass),n},mounted:function(){var e=this;this.referenceElm=this.$el,1===this.$el.nodeType&&(this.$el.setAttribute("aria-describedby",this.tooltipId),this.$el.setAttribute("tabindex",this.tabindex),Object(pe.on)(this.referenceElm,"mouseenter",this.show),Object(pe.on)(this.referenceElm,"mouseleave",this.hide),Object(pe.on)(this.referenceElm,"focus",function(){if(e.$slots.default&&e.$slots.default.length){var t=e.$slots.default[0].componentInstance;t&&t.focus?t.focus():e.handleFocus()}else e.handleFocus()}),Object(pe.on)(this.referenceElm,"blur",this.handleBlur),Object(pe.on)(this.referenceElm,"click",this.removeFocusing)),this.value&&this.popperVM&&this.popperVM.$nextTick(function(){e.value&&e.updatePopper()})},watch:{focusing:function(e){e?Object(pe.addClass)(this.referenceElm,"focusing"):Object(pe.removeClass)(this.referenceElm,"focusing")}},methods:{show:function(){this.setExpectedState(!0),this.handleShowPopper()},hide:function(){this.setExpectedState(!1),this.debounceClose()},handleFocus:function(){this.focusing=!0,this.show()},handleBlur:function(){this.focusing=!1,this.hide()},removeFocusing:function(){this.focusing=!1},addTooltipClass:function(e){return e?"el-tooltip "+e.replace("el-tooltip",""):"el-tooltip"},handleShowPopper:function(){var e=this;this.expectedState&&!this.manual&&(clearTimeout(this.timeout),this.timeout=setTimeout(function(){e.showPopper=!0},this.openDelay),this.hideAfter>0&&(this.timeoutPending=setTimeout(function(){e.showPopper=!1},this.hideAfter)))},handleClosePopper:function(){this.enterable&&this.expectedState||this.manual||(clearTimeout(this.timeout),this.timeoutPending&&clearTimeout(this.timeoutPending),this.showPopper=!1,this.disabled&&this.doDestroy())},setExpectedState:function(e){!1===e&&clearTimeout(this.timeoutPending),this.expectedState=e},getFirstElement:function(){var e=this.$slots.default;if(!Array.isArray(e))return null;for(var t=null,n=0;n<e.length;n++)e[n]&&e[n].tag&&(t=e[n]);return t}},beforeDestroy:function(){this.popperVM&&this.popperVM.$destroy()},destroyed:function(){var e=this.referenceElm;1===e.nodeType&&(Object(pe.off)(e,"mouseenter",this.show),Object(pe.off)(e,"mouseleave",this.hide),Object(pe.off)(e,"focus",this.handleFocus),Object(pe.off)(e,"blur",this.handleBlur),Object(pe.off)(e,"click",this.removeFocusing))},install:function(e){e.component(Mi.name,Mi)}},Fi=Mi,Di=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"msgbox-fade"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-message-box__wrapper",attrs:{tabindex:"-1",role:"dialog","aria-modal":"true","aria-label":e.title||"dialog"},on:{click:function(t){return t.target!==t.currentTarget?null:e.handleWrapperClick(t)}}},[n("div",{staticClass:"el-message-box",class:[e.customClass,e.center&&"el-message-box--center"]},[null!==e.title?n("div",{staticClass:"el-message-box__header"},[n("div",{staticClass:"el-message-box__title"},[e.icon&&e.center?n("div",{class:["el-message-box__status",e.icon]}):e._e(),n("span",[e._v(e._s(e.title))])]),e.showClose?n("button",{staticClass:"el-message-box__headerbtn",attrs:{type:"button","aria-label":"Close"},on:{click:function(t){e.handleAction(e.distinguishCancelAndClose?"close":"cancel")},keydown:function(t){if(!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;e.handleAction(e.distinguishCancelAndClose?"close":"cancel")}}},[n("i",{staticClass:"el-message-box__close el-icon-close"})]):e._e()]):e._e(),n("div",{staticClass:"el-message-box__content"},[n("div",{staticClass:"el-message-box__container"},[e.icon&&!e.center&&""!==e.message?n("div",{class:["el-message-box__status",e.icon]}):e._e(),""!==e.message?n("div",{staticClass:"el-message-box__message"},[e._t("default",[e.dangerouslyUseHTMLString?n("p",{domProps:{innerHTML:e._s(e.message)}}):n("p",[e._v(e._s(e.message))])])],2):e._e()]),n("div",{directives:[{name:"show",rawName:"v-show",value:e.showInput,expression:"showInput"}],staticClass:"el-message-box__input"},[n("el-input",{ref:"input",attrs:{type:e.inputType,placeholder:e.inputPlaceholder},nativeOn:{keydown:function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?e.handleInputEnter(t):null}},model:{value:e.inputValue,callback:function(t){e.inputValue=t},expression:"inputValue"}}),n("div",{staticClass:"el-message-box__errormsg",style:{visibility:e.editorErrorMessage?"visible":"hidden"}},[e._v(e._s(e.editorErrorMessage))])],1)]),n("div",{staticClass:"el-message-box__btns"},[e.showCancelButton?n("el-button",{class:[e.cancelButtonClasses],attrs:{loading:e.cancelButtonLoading,round:e.roundButton,size:"small"},on:{keydown:function(t){if(!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;e.handleAction("cancel")}},nativeOn:{click:function(t){e.handleAction("cancel")}}},[e._v("\n "+e._s(e.cancelButtonText||e.t("el.messagebox.cancel"))+"\n ")]):e._e(),n("el-button",{directives:[{name:"show",rawName:"v-show",value:e.showConfirmButton,expression:"showConfirmButton"}],ref:"confirm",class:[e.confirmButtonClasses],attrs:{loading:e.confirmButtonLoading,round:e.roundButton,size:"small"},on:{keydown:function(t){if(!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;e.handleAction("confirm")}},nativeOn:{click:function(t){e.handleAction("confirm")}}},[e._v("\n "+e._s(e.confirmButtonText||e.t("el.messagebox.confirm"))+"\n ")])],1)])])])};Di._withStripped=!0;var Pi=n(15),Oi=n.n(Pi),Li=n(39),Ri=n.n(Li),Ni=void 0,Ui={success:"success",info:"info",warning:"warning",error:"error"},Hi=i({mixins:[b.a,p.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:d.a,ElButton:$.a},computed:{icon:function(){var e=this.type;return this.iconClass||(e&&Ui[e]?"el-icon-"+Ui[e]:"")},confirmButtonClasses:function(){return"el-button--primary "+this.confirmButtonClass},cancelButtonClasses:function(){return""+this.cancelButtonClass}},methods:{getSafeClose:function(){var e=this,t=this.uid;return function(){e.$nextTick(function(){t===e.uid&&e.doClose()})}},doClose:function(){var e=this;this.visible&&(this.visible=!1,this._closing=!0,this.onClose&&this.onClose(),Ni.closeDialog(),this.lockScroll&&setTimeout(this.restoreBodyStyle,200),this.opened=!1,this.doAfterClose(),setTimeout(function(){e.action&&e.callback(e.action,e)}))},handleWrapperClick:function(){this.closeOnClickModal&&this.handleAction(this.distinguishCancelAndClose?"close":"cancel")},handleInputEnter:function(){if("textarea"!==this.inputType)return this.handleAction("confirm")},handleAction:function(e){("prompt"!==this.$type||"confirm"!==e||this.validate())&&(this.action=e,"function"==typeof this.beforeClose?(this.close=this.getSafeClose(),this.beforeClose(e,this,this.close)):this.doClose())},validate:function(){if("prompt"===this.$type){var e=this.inputPattern;if(e&&!e.test(this.inputValue||""))return this.editorErrorMessage=this.inputErrorMessage||Object(Pi.t)("el.messagebox.error"),Object(pe.addClass)(this.getInputElement(),"invalid"),!1;var t=this.inputValidator;if("function"==typeof t){var n=t(this.inputValue);if(!1===n)return this.editorErrorMessage=this.inputErrorMessage||Object(Pi.t)("el.messagebox.error"),Object(pe.addClass)(this.getInputElement(),"invalid"),!1;if("string"==typeof n)return this.editorErrorMessage=n,Object(pe.addClass)(this.getInputElement(),"invalid"),!1}}return this.editorErrorMessage="",Object(pe.removeClass)(this.getInputElement(),"invalid"),!0},getFirstFocus:function(){var e=this.$el.querySelector(".el-message-box__btns .el-button"),t=this.$el.querySelector(".el-message-box__btns .el-message-box__title");return e||t},getInputElement:function(){var e=this.$refs.input.$refs;return e.input||e.textarea},handleClose:function(){this.handleAction("close")}},watch:{inputValue:{immediate:!0,handler:function(e){var t=this;this.$nextTick(function(n){"prompt"===t.$type&&null!==e&&t.validate()})}},visible:function(e){var t=this;e&&(this.uid++,"alert"!==this.$type&&"confirm"!==this.$type||this.$nextTick(function(){t.$refs.confirm.$el.focus()}),this.focusAfterClosed=document.activeElement,Ni=new Ri.a(this.$el,this.focusAfterClosed,this.getFirstFocus())),"prompt"===this.$type&&(e?setTimeout(function(){t.$refs.input&&t.$refs.input.$el&&t.getInputElement().focus()},500):(this.editorErrorMessage="",Object(pe.removeClass)(this.getInputElement(),"invalid")))}},mounted:function(){var e=this;this.$nextTick(function(){e.closeOnHashChange&&window.addEventListener("hashchange",e.close)})},beforeDestroy:function(){this.closeOnHashChange&&window.removeEventListener("hashchange",this.close),setTimeout(function(){Ni.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}}},Di,[],!1,null,null,null);Hi.options.__file="packages/message-box/src/main.vue";var ji=Hi.exports,Qi=n(23),zi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vi={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},Gi=hn.a.extend(ji),$i=void 0,qi=void 0,Wi=[],Ki=function(e){if($i){var t=$i.callback;"function"==typeof t&&(qi.showInput?t(qi.inputValue,e):t(e)),$i.resolve&&("confirm"===e?qi.showInput?$i.resolve({value:qi.inputValue,action:e}):$i.resolve(e):!$i.reject||"cancel"!==e&&"close"!==e||$i.reject(e))}},Yi=function e(){if(qi||((qi=new Gi({el:document.createElement("div")})).callback=Ki),qi.action="",(!qi.visible||qi.closeTimer)&&Wi.length>0){var t=($i=Wi.shift()).options;for(var n in t)t.hasOwnProperty(n)&&(qi[n]=t[n]);void 0===t.callback&&(qi.callback=Ki);var r=qi.callback;qi.callback=function(t,n){r(t,n),e()},Object(Qi.isVNode)(qi.message)?(qi.$slots.default=[qi.message],qi.message=null):delete qi.$slots.default,["modal","showClose","closeOnClickModal","closeOnPressEscape","closeOnHashChange"].forEach(function(e){void 0===qi[e]&&(qi[e]=!0)}),document.body.appendChild(qi.$el),hn.a.nextTick(function(){qi.visible=!0})}},Xi=function e(t,n){if(!hn.a.prototype.$isServer){if("string"==typeof t||Object(Qi.isVNode)(t)?(t={message:t},"string"==typeof arguments[1]&&(t.title=arguments[1])):t.callback&&!n&&(n=t.callback),"undefined"!=typeof Promise)return new Promise(function(r,i){Wi.push({options:je()({},Vi,e.defaults,t),callback:n,resolve:r,reject:i}),Yi()});Wi.push({options:je()({},Vi,e.defaults,t),callback:n}),Yi()}};Xi.setDefaults=function(e){Xi.defaults=e},Xi.alert=function(e,t,n){return"object"===(void 0===t?"undefined":zi(t))?(n=t,t=""):void 0===t&&(t=""),Xi(je()({title:t,message:e,$type:"alert",closeOnPressEscape:!1,closeOnClickModal:!1},n))},Xi.confirm=function(e,t,n){return"object"===(void 0===t?"undefined":zi(t))?(n=t,t=""):void 0===t&&(t=""),Xi(je()({title:t,message:e,$type:"confirm",showCancelButton:!0},n))},Xi.prompt=function(e,t,n){return"object"===(void 0===t?"undefined":zi(t))?(n=t,t=""):void 0===t&&(t=""),Xi(je()({title:t,message:e,showCancelButton:!0,showInput:!0,$type:"prompt"},n))},Xi.close=function(){qi.doClose(),qi.visible=!1,Wi=[],$i=null};var Ji=Xi,Zi=function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"el-breadcrumb",attrs:{"aria-label":"Breadcrumb",role:"navigation"}},[this._t("default")],2)};Zi._withStripped=!0;var ea=i({name:"ElBreadcrumb",props:{separator:{type:String,default:"/"},separatorClass:{type:String,default:""}},provide:function(){return{elBreadcrumb:this}},mounted:function(){var e=this.$el.querySelectorAll(".el-breadcrumb__item");e.length&&e[e.length-1].setAttribute("aria-current","page")}},Zi,[],!1,null,null,null);ea.options.__file="packages/breadcrumb/src/breadcrumb.vue";var ta=ea.exports;ta.install=function(e){e.component(ta.name,ta)};var na=ta,ra=function(){var e=this.$createElement,t=this._self._c||e;return t("span",{staticClass:"el-breadcrumb__item"},[t("span",{ref:"link",class:["el-breadcrumb__inner",this.to?"is-link":""],attrs:{role:"link"}},[this._t("default")],2),this.separatorClass?t("i",{staticClass:"el-breadcrumb__separator",class:this.separatorClass}):t("span",{staticClass:"el-breadcrumb__separator",attrs:{role:"presentation"}},[this._v(this._s(this.separator))])])};ra._withStripped=!0;var ia=i({name:"ElBreadcrumbItem",props:{to:{},replace:Boolean},data:function(){return{separator:"",separatorClass:""}},inject:["elBreadcrumb"],mounted:function(){var e=this;this.separator=this.elBreadcrumb.separator,this.separatorClass=this.elBreadcrumb.separatorClass;var t=this.$refs.link;t.setAttribute("role","link"),t.addEventListener("click",function(t){var n=e.to,r=e.$router;n&&r&&(e.replace?r.replace(n):r.push(n))})}},ra,[],!1,null,null,null);ia.options.__file="packages/breadcrumb/src/breadcrumb-item.vue";var aa=ia.exports;aa.install=function(e){e.component(aa.name,aa)};var oa=aa,sa=function(){var e=this.$createElement;return(this._self._c||e)("form",{staticClass:"el-form",class:[this.labelPosition?"el-form--label-"+this.labelPosition:"",{"el-form--inline":this.inline}]},[this._t("default")],2)};sa._withStripped=!0;var la=i({name:"ElForm",componentName:"ElForm",provide:function(){return{elForm:this}},props:{model:Object,rules:Object,labelPosition:String,labelWidth:String,labelSuffix:{type:String,default:""},inline:Boolean,inlineMessage:Boolean,statusIcon:Boolean,showMessage:{type:Boolean,default:!0},size:String,disabled:Boolean,validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:{type:Boolean,default:!1}},watch:{rules:function(){this.fields.forEach(function(e){e.removeValidateEvents(),e.addValidateEvents()}),this.validateOnRuleChange&&this.validate(function(){})}},computed:{autoLabelWidth:function(){if(!this.potentialLabelWidthArr.length)return 0;var e=Math.max.apply(Math,this.potentialLabelWidthArr);return e?e+"px":""}},data:function(){return{fields:[],potentialLabelWidthArr:[]}},created:function(){var e=this;this.$on("el.form.addField",function(t){t&&e.fields.push(t)}),this.$on("el.form.removeField",function(t){t.prop&&e.fields.splice(e.fields.indexOf(t),1)})},methods:{resetFields:function(){this.model?this.fields.forEach(function(e){e.resetField()}):console.warn("[Element Warn][Form]model is required for resetFields to work.")},clearValidate:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];(e.length?"string"==typeof e?this.fields.filter(function(t){return e===t.prop}):this.fields.filter(function(t){return e.indexOf(t.prop)>-1}):this.fields).forEach(function(e){e.clearValidate()})},validate:function(e){var t=this;if(this.model){var n=void 0;"function"!=typeof e&&window.Promise&&(n=new window.Promise(function(t,n){e=function(e){e?t(e):n(e)}}));var r=!0,i=0;0===this.fields.length&&e&&e(!0);var a={};return this.fields.forEach(function(n){n.validate("",function(n,o){n&&(r=!1),a=je()({},a,o),"function"==typeof e&&++i===t.fields.length&&e(r,a)})}),n||void 0}console.warn("[Element Warn][Form]model is required for validate to work!")},validateField:function(e,t){e=[].concat(e);var n=this.fields.filter(function(t){return-1!==e.indexOf(t.prop)});n.length?n.forEach(function(e){e.validate("",t)}):console.warn("[Element Warn]please pass correct props!")},getLabelWidthIndex:function(e){var t=this.potentialLabelWidthArr.indexOf(e);if(-1===t)throw new Error("[ElementForm]unpected width ",e);return t},registerLabelWidth:function(e,t){if(e&&t){var n=this.getLabelWidthIndex(t);this.potentialLabelWidthArr.splice(n,1,e)}else e&&this.potentialLabelWidthArr.push(e)},deregisterLabelWidth:function(e){var t=this.getLabelWidthIndex(e);this.potentialLabelWidthArr.splice(t,1)}}},sa,[],!1,null,null,null);la.options.__file="packages/form/src/form.vue";var ca=la.exports;ca.install=function(e){e.component(ca.name,ca)};var ua=ca,ha=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-form-item",class:[{"el-form-item--feedback":e.elForm&&e.elForm.statusIcon,"is-error":"error"===e.validateState,"is-validating":"validating"===e.validateState,"is-success":"success"===e.validateState,"is-required":e.isRequired||e.required,"is-no-asterisk":e.elForm&&e.elForm.hideRequiredAsterisk},e.sizeClass?"el-form-item--"+e.sizeClass:""]},[n("label-wrap",{attrs:{"is-auto-width":e.labelStyle&&"auto"===e.labelStyle.width,"update-all":"auto"===e.form.labelWidth}},[e.label||e.$slots.label?n("label",{staticClass:"el-form-item__label",style:e.labelStyle,attrs:{for:e.labelFor}},[e._t("label",[e._v(e._s(e.label+e.form.labelSuffix))])],2):e._e()]),n("div",{staticClass:"el-form-item__content",style:e.contentStyle},[e._t("default"),n("transition",{attrs:{name:"el-zoom-in-top"}},["error"===e.validateState&&e.showMessage&&e.form.showMessage?e._t("error",[n("div",{staticClass:"el-form-item__error",class:{"el-form-item__error--inline":"boolean"==typeof e.inlineMessage?e.inlineMessage:e.elForm&&e.elForm.inlineMessage||!1}},[e._v("\n "+e._s(e.validateMessage)+"\n ")])],{error:e.validateMessage}):e._e()],2)],2)],1)};ha._withStripped=!0;var da=n(40),fa=n.n(da),pa=i({props:{isAutoWidth:Boolean,updateAll:Boolean},inject:["elForm","elFormItem"],render:function(){var e=arguments[0],t=this.$slots.default;if(!t)return null;if(this.isAutoWidth){var n=this.elForm.autoLabelWidth,r={};if(n&&"auto"!==n){var i=parseInt(n,10)-this.computedWidth;i&&(r.marginLeft=i+"px")}return e("div",{class:"el-form-item__label-wrap",style:r},[t])}return t[0]},methods:{getLabelWidth:function(){if(this.$el&&this.$el.firstElementChild){var e=window.getComputedStyle(this.$el.firstElementChild).width;return Math.ceil(parseFloat(e))}return 0},updateLabelWidth:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"update";this.$slots.default&&this.isAutoWidth&&this.$el.firstElementChild&&("update"===e?this.computedWidth=this.getLabelWidth():"remove"===e&&this.elForm.deregisterLabelWidth(this.computedWidth))}},watch:{computedWidth:function(e,t){this.updateAll&&(this.elForm.registerLabelWidth(e,t),this.elFormItem.updateComputedLabelWidth(e))}},data:function(){return{computedWidth:0}},mounted:function(){this.updateLabelWidth("update")},updated:function(){this.updateLabelWidth("update")},beforeDestroy:function(){this.updateLabelWidth("remove")}},void 0,void 0,!1,null,null,null);pa.options.__file="packages/form/src/label-wrap.vue";var Aa=pa.exports,ga=i({name:"ElFormItem",componentName:"ElFormItem",mixins:[C.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:Aa},watch:{error:{immediate:!0,handler:function(e){this.validateMessage=e,this.validateState=e?"error":""}},validateStatus:function(e){this.validateState=e}},computed:{labelFor:function(){return this.for||this.prop},labelStyle:function(){var e={};if("top"===this.form.labelPosition)return e;var t=this.labelWidth||this.form.labelWidth;return t&&(e.width=t),e},contentStyle:function(){var e={},t=this.label;if("top"===this.form.labelPosition||this.form.inline)return e;if(!t&&!this.labelWidth&&this.isNested)return e;var n=this.labelWidth||this.form.labelWidth;return"auto"===n?"auto"===this.labelWidth?e.marginLeft=this.computedLabelWidth:"auto"===this.form.labelWidth&&(e.marginLeft=this.elForm.autoLabelWidth):e.marginLeft=n,e},form:function(){for(var e=this.$parent,t=e.$options.componentName;"ElForm"!==t;)"ElFormItem"===t&&(this.isNested=!0),t=(e=e.$parent).$options.componentName;return e},fieldValue:function(){var e=this.form.model;if(e&&this.prop){var t=this.prop;return-1!==t.indexOf(":")&&(t=t.replace(/:/,".")),Object(A.getPropByPath)(e,t,!0).v}},isRequired:function(){var e=this.getRules(),t=!1;return e&&e.length&&e.every(function(e){return!e.required||(t=!0,!1)}),t},_formSize:function(){return this.elForm.size},elFormItemSize:function(){return this.size||this._formSize},sizeClass:function(){return this.elFormItemSize||(this.$ELEMENT||{}).size}},data:function(){return{validateState:"",validateMessage:"",validateDisabled:!1,validator:{},isNested:!1,computedLabelWidth:""}},methods:{validate:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:A.noop;this.validateDisabled=!1;var r=this.getFilteredRule(e);if((!r||0===r.length)&&void 0===this.required)return n(),!0;this.validateState="validating";var i={};r&&r.length>0&&r.forEach(function(e){delete e.trigger}),i[this.prop]=r;var a=new fa.a(i),o={};o[this.prop]=this.fieldValue,a.validate(o,{firstFields:!0},function(e,r){t.validateState=e?"error":"success",t.validateMessage=e?e[0].message:"",n(t.validateMessage,r),t.elForm&&t.elForm.$emit("validate",t.prop,!e,t.validateMessage||null)})},clearValidate:function(){this.validateState="",this.validateMessage="",this.validateDisabled=!1},resetField:function(){var e=this;this.validateState="",this.validateMessage="";var t=this.form.model,n=this.fieldValue,r=this.prop;-1!==r.indexOf(":")&&(r=r.replace(/:/,"."));var i=Object(A.getPropByPath)(t,r,!0);this.validateDisabled=!0,Array.isArray(n)?i.o[i.k]=[].concat(this.initialValue):i.o[i.k]=this.initialValue,this.$nextTick(function(){e.validateDisabled=!1}),this.broadcast("ElTimeSelect","fieldReset",this.initialValue)},getRules:function(){var e=this.form.rules,t=this.rules,n=void 0!==this.required?{required:!!this.required}:[],r=Object(A.getPropByPath)(e,this.prop||"");return e=e?r.o[this.prop||""]||r.v:[],[].concat(t||e||[]).concat(n)},getFilteredRule:function(e){return this.getRules().filter(function(t){return!t.trigger||""===e||(Array.isArray(t.trigger)?t.trigger.indexOf(e)>-1:t.trigger===e)}).map(function(e){return je()({},e)})},onFieldBlur:function(){this.validate("blur")},onFieldChange:function(){this.validateDisabled?this.validateDisabled=!1:this.validate("change")},updateComputedLabelWidth:function(e){this.computedLabelWidth=e?e+"px":""},addValidateEvents:function(){(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 e=this.fieldValue;Array.isArray(e)&&(e=[].concat(e)),Object.defineProperty(this,"initialValue",{value:e}),this.addValidateEvents()}},beforeDestroy:function(){this.dispatch("ElForm","el.form.removeField",[this])}},ha,[],!1,null,null,null);ga.options.__file="packages/form/src/form-item.vue";var ma=ga.exports;ma.install=function(e){e.component(ma.name,ma)};var va=ma,ya=function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"el-tabs__active-bar",class:"is-"+this.rootTabs.tabPosition,style:this.barStyle})};ya._withStripped=!0;var ba=i({name:"TabBar",props:{tabs:Array},inject:["rootTabs"],computed:{barStyle:{get:function(){var e=this,t={},n=0,r=0,i=-1!==["top","bottom"].indexOf(this.rootTabs.tabPosition)?"width":"height",a="width"===i?"x":"y",o=function(e){return e.toLowerCase().replace(/( |^)[a-z]/g,function(e){return e.toUpperCase()})};this.tabs.every(function(t,a){var s=Object(A.arrayFind)(e.$parent.$refs.tabs||[],function(e){return e.id.replace("tab-","")===t.paneName});if(!s)return!1;if(t.active){r=s["client"+o(i)];var l=window.getComputedStyle(s);return"width"===i&&e.tabs.length>1&&(r-=parseFloat(l.paddingLeft)+parseFloat(l.paddingRight)),"width"===i&&(n+=parseFloat(l.paddingLeft)),!1}return n+=s["client"+o(i)],!0});var s="translate"+o(a)+"("+n+"px)";return t[i]=r+"px",t.transform=s,t.msTransform=s,t.webkitTransform=s,t}}}},ya,[],!1,null,null,null);function wa(){}ba.options.__file="packages/tabs/src/tab-bar.vue";var xa=function(e){return e.toLowerCase().replace(/( |^)[a-z]/g,function(e){return e.toUpperCase()})},_a=i({name:"TabNav",components:{TabBar:ba.exports},inject:["rootTabs"],props:{panes:Array,currentName:String,editable:Boolean,onTabClick:{type:Function,default:wa},onTabRemove:{type:Function,default:wa},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 e=this.$refs.navScroll["offset"+xa(this.sizeName)],t=this.navOffset;if(t){var n=t>e?t-e:0;this.navOffset=n}},scrollNext:function(){var e=this.$refs.nav["offset"+xa(this.sizeName)],t=this.$refs.navScroll["offset"+xa(this.sizeName)],n=this.navOffset;if(!(e-n<=t)){var r=e-n>2*t?n+t:e-t;this.navOffset=r}},scrollToActiveTab:function(){if(this.scrollable){var e=this.$refs.nav,t=this.$el.querySelector(".is-active");if(t){var n=this.$refs.navScroll,r=-1!==["top","bottom"].indexOf(this.rootTabs.tabPosition),i=t.getBoundingClientRect(),a=n.getBoundingClientRect(),o=r?e.offsetWidth-a.width:e.offsetHeight-a.height,s=this.navOffset,l=s;r?(i.left<a.left&&(l=s-(a.left-i.left)),i.right>a.right&&(l=s+i.right-a.right)):(i.top<a.top&&(l=s-(a.top-i.top)),i.bottom>a.bottom&&(l=s+(i.bottom-a.bottom))),l=Math.max(l,0),this.navOffset=Math.min(l,o)}}},update:function(){if(this.$refs.nav){var e=this.sizeName,t=this.$refs.nav["offset"+xa(e)],n=this.$refs.navScroll["offset"+xa(e)],r=this.navOffset;if(n<t){var i=this.navOffset;this.scrollable=this.scrollable||{},this.scrollable.prev=i,this.scrollable.next=i+n<t,t-i<n&&(this.navOffset=t-n)}else this.scrollable=!1,r>0&&(this.navOffset=0)}},changeTab:function(e){var t=e.keyCode,n=void 0,r=void 0,i=void 0;-1!==[37,38,39,40].indexOf(t)&&(i=e.currentTarget.querySelectorAll("[role=tab]"),r=Array.prototype.indexOf.call(i,e.target),i[n=37===t||38===t?0===r?i.length-1:r-1:r<i.length-1?r+1:0].focus(),i[n].click(),this.setFocus())},setFocus:function(){this.focusable&&(this.isFocus=!0)},removeFocus:function(){this.isFocus=!1},visibilityChangeHandler:function(){var e=this,t=document.visibilityState;"hidden"===t?this.focusable=!1:"visible"===t&&setTimeout(function(){e.focusable=!0},50)},windowBlurHandler:function(){this.focusable=!1},windowFocusHandler:function(){var e=this;setTimeout(function(){e.focusable=!0},50)}},updated:function(){this.update()},render:function(e){var t=this,n=this.type,r=this.panes,i=this.editable,a=this.stretch,o=this.onTabClick,s=this.onTabRemove,l=this.navStyle,c=this.scrollable,u=this.scrollNext,h=this.scrollPrev,d=this.changeTab,f=this.setFocus,p=this.removeFocus,A=c?[e("span",{class:["el-tabs__nav-prev",c.prev?"":"is-disabled"],on:{click:h}},[e("i",{class:"el-icon-arrow-left"})]),e("span",{class:["el-tabs__nav-next",c.next?"":"is-disabled"],on:{click:u}},[e("i",{class:"el-icon-arrow-right"})])]:null,g=this._l(r,function(n,r){var a,l=n.name||n.index||r,c=n.isClosable||i;n.index=""+r;var u=c?e("span",{class:"el-icon-close",on:{click:function(e){s(n,e)}}}):null,h=n.$slots.label||n.label,d=n.active?0:-1;return e("div",{class:(a={"el-tabs__item":!0},a["is-"+t.rootTabs.tabPosition]=!0,a["is-active"]=n.active,a["is-disabled"]=n.disabled,a["is-closable"]=c,a["is-focus"]=t.isFocus,a),attrs:{id:"tab-"+l,"aria-controls":"pane-"+l,role:"tab","aria-selected":n.active,tabindex:d},key:"tab-"+l,ref:"tabs",refInFor:!0,on:{focus:function(){f()},blur:function(){p()},click:function(e){p(),o(n,l,e)},keydown:function(e){!c||46!==e.keyCode&&8!==e.keyCode||s(n,e)}}},[h,u])});return e("div",{class:["el-tabs__nav-wrap",c?"is-scrollable":"","is-"+this.rootTabs.tabPosition]},[A,e("div",{class:["el-tabs__nav-scroll"],ref:"navScroll"},[e("div",{class:["el-tabs__nav","is-"+this.rootTabs.tabPosition,a&&-1!==["top","bottom"].indexOf(this.rootTabs.tabPosition)?"is-stretch":""],ref:"nav",style:l,attrs:{role:"tablist"},on:{keydown:d}},[n?null:e("tab-bar",{attrs:{tabs:r}}),g])])])},mounted:function(){var e=this;Object(Lt.addResizeListener)(this.$el,this.update),document.addEventListener("visibilitychange",this.visibilityChangeHandler),window.addEventListener("blur",this.windowBlurHandler),window.addEventListener("focus",this.windowFocusHandler),setTimeout(function(){e.scrollToActiveTab()},0)},beforeDestroy:function(){this.$el&&this.update&&Object(Lt.removeResizeListener)(this.$el,this.update),document.removeEventListener("visibilitychange",this.visibilityChangeHandler),window.removeEventListener("blur",this.windowBlurHandler),window.removeEventListener("focus",this.windowFocusHandler)}},void 0,void 0,!1,null,null,null);_a.options.__file="packages/tabs/src/tab-nav.vue";var Ca=i({name:"ElTabs",components:{TabNav:_a.exports},props:{type:String,activeName:String,closable:Boolean,addable:Boolean,value:{},editable:Boolean,tabPosition:{type:String,default:"top"},beforeLeave:Function,stretch:Boolean},provide:function(){return{rootTabs:this}},data:function(){return{currentName:this.value||this.activeName,panes:[]}},watch:{activeName:function(e){this.setCurrentName(e)},value:function(e){this.setCurrentName(e)},currentName:function(e){var t=this;this.$refs.nav&&this.$nextTick(function(){t.$refs.nav.$nextTick(function(e){t.$refs.nav.scrollToActiveTab()})})}},methods:{calcPaneInstances:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.$slots.default){var n=this.$slots.default.filter(function(e){return e.tag&&e.componentOptions&&"ElTabPane"===e.componentOptions.Ctor.options.name}).map(function(e){return e.componentInstance}),r=!(n.length===this.panes.length&&n.every(function(t,n){return t===e.panes[n]}));(t||r)&&(this.panes=n)}else 0!==this.panes.length&&(this.panes=[])},handleTabClick:function(e,t,n){e.disabled||(this.setCurrentName(t),this.$emit("tab-click",e,n))},handleTabRemove:function(e,t){e.disabled||(t.stopPropagation(),this.$emit("edit",e.name,"remove"),this.$emit("tab-remove",e.name))},handleTabAdd:function(){this.$emit("edit",null,"add"),this.$emit("tab-add")},setCurrentName:function(e){var t=this,n=function(){t.currentName=e,t.$emit("input",e)};if(this.currentName!==e&&this.beforeLeave){var r=this.beforeLeave(e,this.currentName);r&&r.then?r.then(function(){n(),t.$refs.nav&&t.$refs.nav.removeFocus()},function(){}):!1!==r&&n()}else n()}},render:function(e){var t,n=this.type,r=this.handleTabClick,i=this.handleTabRemove,a=this.handleTabAdd,o=this.currentName,s=this.panes,l=this.editable,c=this.addable,u=this.tabPosition,h=this.stretch,d=e("div",{class:["el-tabs__header","is-"+u]},[l||c?e("span",{class:"el-tabs__new-tab",on:{click:a,keydown:function(e){13===e.keyCode&&a()}},attrs:{tabindex:"0"}},[e("i",{class:"el-icon-plus"})]):null,e("tab-nav",{props:{currentName:o,onTabClick:r,onTabRemove:i,editable:l,type:n,panes:s,stretch:h},ref:"nav"})]),f=e("div",{class:"el-tabs__content"},[this.$slots.default]);return e("div",{class:(t={"el-tabs":!0,"el-tabs--card":"card"===n},t["el-tabs--"+u]=!0,t["el-tabs--border-card"]="border-card"===n,t)},["bottom"!==u?[d,f]:[f,d]])},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()}},void 0,void 0,!1,null,null,null);Ca.options.__file="packages/tabs/src/tabs.vue";var Sa=Ca.exports;Sa.install=function(e){e.component(Sa.name,Sa)};var ka=Sa,Ba=function(){var e=this,t=e.$createElement,n=e._self._c||t;return!e.lazy||e.loaded||e.active?n("div",{directives:[{name:"show",rawName:"v-show",value:e.active,expression:"active"}],staticClass:"el-tab-pane",attrs:{role:"tabpanel","aria-hidden":!e.active,id:"pane-"+e.paneName,"aria-labelledby":"tab-"+e.paneName}},[e._t("default")],2):e._e()};Ba._withStripped=!0;var Ea=i({name:"ElTabPane",componentName:"ElTabPane",props:{label:String,labelContent:Function,name:String,closable:Boolean,disabled:Boolean,lazy:Boolean},data:function(){return{index:null,loaded:!1}},computed:{isClosable:function(){return this.closable||this.$parent.closable},active:function(){var e=this.$parent.currentName===(this.name||this.index);return e&&(this.loaded=!0),e},paneName:function(){return this.name||this.index}},updated:function(){this.$parent.$emit("tab-nav-update")}},Ba,[],!1,null,null,null);Ea.options.__file="packages/tabs/src/tab-pane.vue";var Ta=Ea.exports;Ta.install=function(e){e.component(Ta.name,Ta)};var Ia=Ta,Ma=i({name:"ElTag",props:{text:String,closable:Boolean,type:String,hit:Boolean,disableTransitions:Boolean,color:String,size:String,effect:{type:String,default:"light",validator:function(e){return-1!==["dark","light","plain"].indexOf(e)}}},methods:{handleClose:function(e){e.stopPropagation(),this.$emit("close",e)},handleClick:function(e){this.$emit("click",e)}},computed:{tagSize:function(){return this.size||(this.$ELEMENT||{}).size}},render:function(e){var t=this.type,n=this.tagSize,r=this.hit,i=this.effect,a=e("span",{class:["el-tag",t?"el-tag--"+t:"",n?"el-tag--"+n:"",i?"el-tag--"+i:"",r&&"is-hit"],style:{backgroundColor:this.color},on:{click:this.handleClick}},[this.$slots.default,this.closable&&e("i",{class:"el-tag__close el-icon-close",on:{click:this.handleClose}})]);return this.disableTransitions?a:e("transition",{attrs:{name:"el-zoom-in-center"}},[a])}},void 0,void 0,!1,null,null,null);Ma.options.__file="packages/tag/src/tag.vue";var Fa=Ma.exports;Fa.install=function(e){e.component(Fa.name,Fa)};var Da=Fa,Pa=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-tree",class:{"el-tree--highlight-current":e.highlightCurrent,"is-dragging":!!e.dragState.draggingNode,"is-drop-not-allow":!e.dragState.allowDrop,"is-drop-inner":"inner"===e.dragState.dropType},attrs:{role:"tree"}},[e._l(e.root.childNodes,function(t){return n("el-tree-node",{key:e.getNodeKey(t),attrs:{node:t,props:e.props,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,"render-content":e.renderContent},on:{"node-expand":e.handleNodeExpand}})}),e.isEmpty?n("div",{staticClass:"el-tree__empty-block"},[n("span",{staticClass:"el-tree__empty-text"},[e._v(e._s(e.emptyText))])]):e._e(),n("div",{directives:[{name:"show",rawName:"v-show",value:e.dragState.showDropIndicator,expression:"dragState.showDropIndicator"}],ref:"dropIndicator",staticClass:"el-tree__drop-indicator"})],2)};Pa._withStripped=!0;var Oa="$treeNodeId",La=function(e,t){t&&!t[Oa]&&Object.defineProperty(t,Oa,{value:e.id,enumerable:!1,configurable:!1,writable:!1})},Ra=function(e,t){return e?t[e]:t[Oa]},Na=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var Ua=function(e){for(var t=!0,n=!0,r=!0,i=0,a=e.length;i<a;i++){var o=e[i];(!0!==o.checked||o.indeterminate)&&(t=!1,o.disabled||(r=!1)),(!1!==o.checked||o.indeterminate)&&(n=!1)}return{all:t,none:n,allWithoutDisable:r,half:!t&&!n}},Ha=function e(t){if(0!==t.childNodes.length){var n=Ua(t.childNodes),r=n.all,i=n.none,a=n.half;r?(t.checked=!0,t.indeterminate=!1):a?(t.checked=!1,t.indeterminate=!0):i&&(t.checked=!1,t.indeterminate=!1);var o=t.parent;o&&0!==o.level&&(t.store.checkStrictly||e(o))}},ja=function(e,t){var n=e.store.props,r=e.data||{},i=n[t];if("function"==typeof i)return i(r,e);if("string"==typeof i)return r[i];if(void 0===i){var a=r[t];return void 0===a?"":a}},Qa=0,za=function(){function e(t){for(var n in function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.id=Qa++,this.text=null,this.checked=!1,this.indeterminate=!1,this.data=null,this.expanded=!1,this.parent=null,this.visible=!0,this.isCurrent=!1,t)t.hasOwnProperty(n)&&(this[n]=t[n]);this.level=0,this.loaded=!1,this.childNodes=[],this.loading=!1,this.parent&&(this.level=this.parent.level+1);var r=this.store;if(!r)throw new Error("[Node]store is required!");r.registerNode(this);var i=r.props;if(i&&void 0!==i.isLeaf){var a=ja(this,"isLeaf");"boolean"==typeof a&&(this.isLeafByUser=a)}if(!0!==r.lazy&&this.data?(this.setData(this.data),r.defaultExpandAll&&(this.expanded=!0)):this.level>0&&r.lazy&&r.defaultExpandAll&&this.expand(),Array.isArray(this.data)||La(this,this.data),this.data){var o=r.defaultExpandedKeys,s=r.key;s&&o&&-1!==o.indexOf(this.key)&&this.expand(null,r.autoExpandParent),s&&void 0!==r.currentNodeKey&&this.key===r.currentNodeKey&&(r.currentNode=this,r.currentNode.isCurrent=!0),r.lazy&&r._initDefaultCheckedNode(this),this.updateLeafState()}}return e.prototype.setData=function(e){Array.isArray(e)||La(this,e),this.data=e,this.childNodes=[];for(var t=void 0,n=0,r=(t=0===this.level&&this.data instanceof Array?this.data:ja(this,"children")||[]).length;n<r;n++)this.insertChild({data:t[n]})},e.prototype.contains=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return function n(r){for(var i=r.childNodes||[],a=!1,o=0,s=i.length;o<s;o++){var l=i[o];if(l===e||t&&n(l)){a=!0;break}}return a}(this)},e.prototype.remove=function(){var e=this.parent;e&&e.removeChild(this)},e.prototype.insertChild=function(t,n,r){if(!t)throw new Error("insertChild error: child is required.");if(!(t instanceof e)){if(!r){var i=this.getChildren(!0);-1===i.indexOf(t.data)&&(void 0===n||n<0?i.push(t.data):i.splice(n,0,t.data))}je()(t,{parent:this,store:this.store}),t=new e(t)}t.level=this.level+1,void 0===n||n<0?this.childNodes.push(t):this.childNodes.splice(n,0,t),this.updateLeafState()},e.prototype.insertBefore=function(e,t){var n=void 0;t&&(n=this.childNodes.indexOf(t)),this.insertChild(e,n)},e.prototype.insertAfter=function(e,t){var n=void 0;t&&-1!==(n=this.childNodes.indexOf(t))&&(n+=1),this.insertChild(e,n)},e.prototype.removeChild=function(e){var t=this.getChildren()||[],n=t.indexOf(e.data);n>-1&&t.splice(n,1);var r=this.childNodes.indexOf(e);r>-1&&(this.store&&this.store.deregisterNode(e),e.parent=null,this.childNodes.splice(r,1)),this.updateLeafState()},e.prototype.removeChildByData=function(e){for(var t=null,n=0;n<this.childNodes.length;n++)if(this.childNodes[n].data===e){t=this.childNodes[n];break}t&&this.removeChild(t)},e.prototype.expand=function(e,t){var n=this,r=function(){if(t)for(var r=n.parent;r.level>0;)r.expanded=!0,r=r.parent;n.expanded=!0,e&&e()};this.shouldLoadData()?this.loadData(function(e){e instanceof Array&&(n.checked?n.setChecked(!0,!0):n.store.checkStrictly||Ha(n),r())}):r()},e.prototype.doCreateChildren=function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.forEach(function(e){t.insertChild(je()({data:e},n),void 0,!0)})},e.prototype.collapse=function(){this.expanded=!1},e.prototype.shouldLoadData=function(){return!0===this.store.lazy&&this.store.load&&!this.loaded},e.prototype.updateLeafState=function(){if(!0!==this.store.lazy||!0===this.loaded||void 0===this.isLeafByUser){var e=this.childNodes;!this.store.lazy||!0===this.store.lazy&&!0===this.loaded?this.isLeaf=!e||0===e.length:this.isLeaf=!1}else this.isLeaf=this.isLeafByUser},e.prototype.setChecked=function(e,t,n,r){var i=this;if(this.indeterminate="half"===e,this.checked=!0===e,!this.store.checkStrictly){if(!this.shouldLoadData()||this.store.checkDescendants){var a=Ua(this.childNodes),o=a.all,s=a.allWithoutDisable;this.isLeaf||o||!s||(this.checked=!1,e=!1);var l=function(){if(t){for(var n=i.childNodes,a=0,o=n.length;a<o;a++){var s=n[a];r=r||!1!==e;var l=s.disabled?s.checked:r;s.setChecked(l,t,!0,r)}var c=Ua(n),u=c.half,h=c.all;h||(i.checked=h,i.indeterminate=u)}};if(this.shouldLoadData())return void this.loadData(function(){l(),Ha(i)},{checked:!1!==e});l()}var c=this.parent;c&&0!==c.level&&(n||Ha(c))}},e.prototype.getChildren=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(0===this.level)return this.data;var t=this.data;if(!t)return null;var n=this.store.props,r="children";return n&&(r=n.children||"children"),void 0===t[r]&&(t[r]=null),e&&!t[r]&&(t[r]=[]),t[r]},e.prototype.updateChildren=function(){var e=this,t=this.getChildren()||[],n=this.childNodes.map(function(e){return e.data}),r={},i=[];t.forEach(function(e,t){var a=e[Oa];!!a&&Object(A.arrayFindIndex)(n,function(e){return e[Oa]===a})>=0?r[a]={index:t,data:e}:i.push({index:t,data:e})}),this.store.lazy||n.forEach(function(t){r[t[Oa]]||e.removeChildByData(t)}),i.forEach(function(t){var n=t.index,r=t.data;e.insertChild({data:r},n)}),this.updateLeafState()},e.prototype.loadData=function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!0!==this.store.lazy||!this.store.load||this.loaded||this.loading&&!Object.keys(n).length)e&&e.call(this);else{this.loading=!0;this.store.load(this,function(r){t.loaded=!0,t.loading=!1,t.childNodes=[],t.doCreateChildren(r,n),t.updateLeafState(),e&&e.call(t,r)})}},Na(e,[{key:"label",get:function(){return ja(this,"label")}},{key:"key",get:function(){var e=this.store.key;return this.data?this.data[e]:null}},{key:"disabled",get:function(){return ja(this,"disabled")}},{key:"nextSibling",get:function(){var e=this.parent;if(e){var t=e.childNodes.indexOf(this);if(t>-1)return e.childNodes[t+1]}return null}},{key:"previousSibling",get:function(){var e=this.parent;if(e){var t=e.childNodes.indexOf(this);if(t>-1)return t>0?e.childNodes[t-1]:null}return null}}]),e}(),Va="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};var Ga=function(){function e(t){var n=this;for(var r in function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.currentNode=null,this.currentNodeKey=null,t)t.hasOwnProperty(r)&&(this[r]=t[r]);(this.nodesMap={},this.root=new za({data:this.data,store:this}),this.lazy&&this.load)?(0,this.load)(this.root,function(e){n.root.doCreateChildren(e),n._initDefaultCheckedNodes()}):this._initDefaultCheckedNodes()}return e.prototype.filter=function(e){var t=this.filterNodeMethod,n=this.lazy;!function r(i){var a=i.root?i.root.childNodes:i.childNodes;if(a.forEach(function(n){n.visible=t.call(n,e,n.data,n),r(n)}),!i.visible&&a.length){var o;o=!a.some(function(e){return e.visible}),i.root?i.root.visible=!1===o:i.visible=!1===o}e&&(!i.visible||i.isLeaf||n||i.expand())}(this)},e.prototype.setData=function(e){e!==this.root.data?(this.root.setData(e),this._initDefaultCheckedNodes()):this.root.updateChildren()},e.prototype.getNode=function(e){if(e instanceof za)return e;var t="object"!==(void 0===e?"undefined":Va(e))?e:Ra(this.key,e);return this.nodesMap[t]||null},e.prototype.insertBefore=function(e,t){var n=this.getNode(t);n.parent.insertBefore({data:e},n)},e.prototype.insertAfter=function(e,t){var n=this.getNode(t);n.parent.insertAfter({data:e},n)},e.prototype.remove=function(e){var t=this.getNode(e);t&&t.parent&&(t===this.currentNode&&(this.currentNode=null),t.parent.removeChild(t))},e.prototype.append=function(e,t){var n=t?this.getNode(t):this.root;n&&n.insertChild({data:e})},e.prototype._initDefaultCheckedNodes=function(){var e=this,t=this.defaultCheckedKeys||[],n=this.nodesMap;t.forEach(function(t){var r=n[t];r&&r.setChecked(!0,!e.checkStrictly)})},e.prototype._initDefaultCheckedNode=function(e){-1!==(this.defaultCheckedKeys||[]).indexOf(e.key)&&e.setChecked(!0,!this.checkStrictly)},e.prototype.setDefaultCheckedKey=function(e){e!==this.defaultCheckedKeys&&(this.defaultCheckedKeys=e,this._initDefaultCheckedNodes())},e.prototype.registerNode=function(e){this.key&&e&&e.data&&(void 0!==e.key&&(this.nodesMap[e.key]=e))},e.prototype.deregisterNode=function(e){var t=this;this.key&&e&&e.data&&(e.childNodes.forEach(function(e){t.deregisterNode(e)}),delete this.nodesMap[e.key])},e.prototype.getCheckedNodes=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=[];return function r(i){(i.root?i.root.childNodes:i.childNodes).forEach(function(i){(i.checked||t&&i.indeterminate)&&(!e||e&&i.isLeaf)&&n.push(i.data),r(i)})}(this),n},e.prototype.getCheckedKeys=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.getCheckedNodes(t).map(function(t){return(t||{})[e.key]})},e.prototype.getHalfCheckedNodes=function(){var e=[];return function t(n){(n.root?n.root.childNodes:n.childNodes).forEach(function(n){n.indeterminate&&e.push(n.data),t(n)})}(this),e},e.prototype.getHalfCheckedKeys=function(){var e=this;return this.getHalfCheckedNodes().map(function(t){return(t||{})[e.key]})},e.prototype._getAllNodes=function(){var e=[],t=this.nodesMap;for(var n in t)t.hasOwnProperty(n)&&e.push(t[n]);return e},e.prototype.updateChildren=function(e,t){var n=this.nodesMap[e];if(n){for(var r=n.childNodes,i=r.length-1;i>=0;i--){var a=r[i];this.remove(a.data)}for(var o=0,s=t.length;o<s;o++){var l=t[o];this.append(l,n.data)}}},e.prototype._setCheckedKeys=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments[2],r=this._getAllNodes().sort(function(e,t){return t.level-e.level}),i=Object.create(null),a=Object.keys(n);r.forEach(function(e){return e.setChecked(!1,!1)});for(var o=0,s=r.length;o<s;o++){var l=r[o],c=l.data[e].toString();if(a.indexOf(c)>-1){for(var u=l.parent;u&&u.level>0;)i[u.data[e]]=!0,u=u.parent;l.isLeaf||this.checkStrictly?l.setChecked(!0,!1):(l.setChecked(!0,!0),t&&function(){l.setChecked(!1,!1);!function e(t){t.childNodes.forEach(function(t){t.isLeaf||t.setChecked(!1,!1),e(t)})}(l)}())}else l.checked&&!i[c]&&l.setChecked(!1,!1)}},e.prototype.setCheckedNodes=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.key,r={};e.forEach(function(e){r[(e||{})[n]]=!0}),this._setCheckedKeys(n,t,r)},e.prototype.setCheckedKeys=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.defaultCheckedKeys=e;var n=this.key,r={};e.forEach(function(e){r[e]=!0}),this._setCheckedKeys(n,t,r)},e.prototype.setDefaultExpandedKeys=function(e){var t=this;e=e||[],this.defaultExpandedKeys=e,e.forEach(function(e){var n=t.getNode(e);n&&n.expand(null,t.autoExpandParent)})},e.prototype.setChecked=function(e,t,n){var r=this.getNode(e);r&&r.setChecked(!!t,n)},e.prototype.getCurrentNode=function(){return this.currentNode},e.prototype.setCurrentNode=function(e){var t=this.currentNode;t&&(t.isCurrent=!1),this.currentNode=e,this.currentNode.isCurrent=!0},e.prototype.setUserCurrentNode=function(e){var t=e[this.key],n=this.nodesMap[t];this.setCurrentNode(n)},e.prototype.setCurrentNodeKey=function(e){if(null===e||void 0===e)return this.currentNode&&(this.currentNode.isCurrent=!1),void(this.currentNode=null);var t=this.getNode(e);t&&this.setCurrentNode(t)},e}(),$a=function(){var e=this,t=this,n=t.$createElement,r=t._self._c||n;return r("div",{directives:[{name:"show",rawName:"v-show",value:t.node.visible,expression:"node.visible"}],ref:"node",staticClass:"el-tree-node",class:{"is-expanded":t.expanded,"is-current":t.node.isCurrent,"is-hidden":!t.node.visible,"is-focusable":!t.node.disabled,"is-checked":!t.node.disabled&&t.node.checked},attrs:{role:"treeitem",tabindex:"-1","aria-expanded":t.expanded,"aria-disabled":t.node.disabled,"aria-checked":t.node.checked,draggable:t.tree.draggable},on:{click:function(e){return e.stopPropagation(),t.handleClick(e)},contextmenu:function(t){return e.handleContextMenu(t)},dragstart:function(e){return e.stopPropagation(),t.handleDragStart(e)},dragover:function(e){return e.stopPropagation(),t.handleDragOver(e)},dragend:function(e){return e.stopPropagation(),t.handleDragEnd(e)},drop:function(e){return e.stopPropagation(),t.handleDrop(e)}}},[r("div",{staticClass:"el-tree-node__content",style:{"padding-left":(t.node.level-1)*t.tree.indent+"px"}},[r("span",{class:[{"is-leaf":t.node.isLeaf,expanded:!t.node.isLeaf&&t.expanded},"el-tree-node__expand-icon",t.tree.iconClass?t.tree.iconClass:"el-icon-caret-right"],on:{click:function(e){return e.stopPropagation(),t.handleExpandIconClick(e)}}}),t.showCheckbox?r("el-checkbox",{attrs:{indeterminate:t.node.indeterminate,disabled:!!t.node.disabled},on:{change:t.handleCheckChange},nativeOn:{click:function(e){e.stopPropagation()}},model:{value:t.node.checked,callback:function(e){t.$set(t.node,"checked",e)},expression:"node.checked"}}):t._e(),t.node.loading?r("span",{staticClass:"el-tree-node__loading-icon el-icon-loading"}):t._e(),r("node-content",{attrs:{node:t.node}})],1),r("el-collapse-transition",[!t.renderAfterExpand||t.childNodeRendered?r("div",{directives:[{name:"show",rawName:"v-show",value:t.expanded,expression:"expanded"}],staticClass:"el-tree-node__children",attrs:{role:"group","aria-expanded":t.expanded}},t._l(t.node.childNodes,function(e){return r("el-tree-node",{key:t.getNodeKey(e),attrs:{"render-content":t.renderContent,"render-after-expand":t.renderAfterExpand,"show-checkbox":t.showCheckbox,node:e},on:{"node-expand":t.handleChildNodeExpand}})}),1):t._e()])],1)};$a._withStripped=!0;var qa=i({name:"ElTreeNode",componentName:"ElTreeNode",mixins:[C.a],props:{node:{default:function(){return{}}},props:{},renderContent:Function,renderAfterExpand:{type:Boolean,default:!0},showCheckbox:{type:Boolean,default:!1}},components:{ElCollapseTransition:ye.a,ElCheckbox:rn.a,NodeContent:{props:{node:{required:!0}},render:function(e){var t=this.$parent,n=t.tree,r=this.node,i=r.data,a=r.store;return t.renderContent?t.renderContent.call(t._renderProxy,e,{_self:n.$vnode.context,node:r,data:i,store:a}):n.$scopedSlots.default?n.$scopedSlots.default({node:r,data:i}):e("span",{class:"el-tree-node__label"},[r.label])}}},data:function(){return{tree:null,expanded:!1,childNodeRendered:!1,oldChecked:null,oldIndeterminate:null}},watch:{"node.indeterminate":function(e){this.handleSelectChange(this.node.checked,e)},"node.checked":function(e){this.handleSelectChange(e,this.node.indeterminate)},"node.expanded":function(e){var t=this;this.$nextTick(function(){return t.expanded=e}),e&&(this.childNodeRendered=!0)}},methods:{getNodeKey:function(e){return Ra(this.tree.nodeKey,e.data)},handleSelectChange:function(e,t){this.oldChecked!==e&&this.oldIndeterminate!==t&&this.tree.$emit("check-change",this.node.data,e,t),this.oldChecked=e,this.indeterminate=t},handleClick:function(){var e=this.tree.store;e.setCurrentNode(this.node),this.tree.$emit("current-change",e.currentNode?e.currentNode.data:null,e.currentNode),this.tree.currentNode=this,this.tree.expandOnClickNode&&this.handleExpandIconClick(),this.tree.checkOnClickNode&&!this.node.disabled&&this.handleCheckChange(null,{target:{checked:!this.node.checked}}),this.tree.$emit("node-click",this.node.data,this.node,this)},handleContextMenu:function(e){this.tree._events["node-contextmenu"]&&this.tree._events["node-contextmenu"].length>0&&(e.stopPropagation(),e.preventDefault()),this.tree.$emit("node-contextmenu",e,this.node.data,this.node,this)},handleExpandIconClick:function(){this.node.isLeaf||(this.expanded?(this.tree.$emit("node-collapse",this.node.data,this.node,this),this.node.collapse()):(this.node.expand(),this.$emit("node-expand",this.node.data,this.node,this)))},handleCheckChange:function(e,t){var n=this;this.node.setChecked(t.target.checked,!this.tree.checkStrictly),this.$nextTick(function(){var e=n.tree.store;n.tree.$emit("check",n.node.data,{checkedNodes:e.getCheckedNodes(),checkedKeys:e.getCheckedKeys(),halfCheckedNodes:e.getHalfCheckedNodes(),halfCheckedKeys:e.getHalfCheckedKeys()})})},handleChildNodeExpand:function(e,t,n){this.broadcast("ElTreeNode","tree-node-expand",t),this.tree.$emit("node-expand",e,t,n)},handleDragStart:function(e){this.tree.draggable&&this.tree.$emit("tree-node-drag-start",e,this)},handleDragOver:function(e){this.tree.draggable&&(this.tree.$emit("tree-node-drag-over",e,this),e.preventDefault())},handleDrop:function(e){e.preventDefault()},handleDragEnd:function(e){this.tree.draggable&&this.tree.$emit("tree-node-drag-end",e,this)}},created:function(){var e=this,t=this.$parent;t.isTree?this.tree=t:this.tree=t.tree;var n=this.tree;n||console.warn("Can not find node's tree.");var r=(n.props||{}).children||"children";this.$watch("node.data."+r,function(){e.node.updateChildren()}),this.node.expanded&&(this.expanded=!0,this.childNodeRendered=!0),this.tree.accordion&&this.$on("tree-node-expand",function(t){e.node!==t&&e.node.collapse()})}},$a,[],!1,null,null,null);qa.options.__file="packages/tree/src/tree-node.vue";var Wa=qa.exports,Ka=i({name:"ElTree",mixins:[C.a],components:{ElTreeNode:Wa},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(Pi.t)("el.tree.emptyText")}},renderAfterExpand:{type:Boolean,default:!0},nodeKey:String,checkStrictly:Boolean,defaultExpandAll:Boolean,expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkDescendants:{type:Boolean,default:!1},autoExpandParent:{type:Boolean,default:!0},defaultCheckedKeys:Array,defaultExpandedKeys:Array,currentNodeKey:[String,Number],renderContent:Function,showCheckbox:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1},allowDrag:Function,allowDrop:Function,props:{default:function(){return{children:"children",label:"label",disabled:"disabled"}}},lazy:{type:Boolean,default:!1},highlightCurrent:Boolean,load:Function,filterNodeMethod:Function,accordion:Boolean,indent:{type:Number,default:18},iconClass:String},computed:{children:{set:function(e){this.data=e},get:function(){return this.data}},treeItemArray:function(){return Array.prototype.slice.call(this.treeItems)},isEmpty:function(){var e=this.root.childNodes;return!e||0===e.length||e.every(function(e){return!e.visible})}},watch:{defaultCheckedKeys:function(e){this.store.setDefaultCheckedKey(e)},defaultExpandedKeys:function(e){this.store.defaultExpandedKeys=e,this.store.setDefaultExpandedKeys(e)},data:function(e){this.store.setData(e)},checkboxItems:function(e){Array.prototype.forEach.call(e,function(e){e.setAttribute("tabindex",-1)})},checkStrictly:function(e){this.store.checkStrictly=e}},methods:{filter:function(e){if(!this.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");this.store.filter(e)},getNodeKey:function(e){return Ra(this.nodeKey,e.data)},getNodePath:function(e){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in getNodePath");var t=this.store.getNode(e);if(!t)return[];for(var n=[t.data],r=t.parent;r&&r!==this.root;)n.push(r.data),r=r.parent;return n.reverse()},getCheckedNodes:function(e,t){return this.store.getCheckedNodes(e,t)},getCheckedKeys:function(e){return this.store.getCheckedKeys(e)},getCurrentNode:function(){var e=this.store.getCurrentNode();return e?e.data:null},getCurrentKey:function(){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in getCurrentKey");var e=this.getCurrentNode();return e?e[this.nodeKey]:null},setCheckedNodes:function(e,t){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedNodes");this.store.setCheckedNodes(e,t)},setCheckedKeys:function(e,t){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedKeys");this.store.setCheckedKeys(e,t)},setChecked:function(e,t,n){this.store.setChecked(e,t,n)},getHalfCheckedNodes:function(){return this.store.getHalfCheckedNodes()},getHalfCheckedKeys:function(){return this.store.getHalfCheckedKeys()},setCurrentNode:function(e){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentNode");this.store.setUserCurrentNode(e)},setCurrentKey:function(e){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentKey");this.store.setCurrentNodeKey(e)},getNode:function(e){return this.store.getNode(e)},remove:function(e){this.store.remove(e)},append:function(e,t){this.store.append(e,t)},insertBefore:function(e,t){this.store.insertBefore(e,t)},insertAfter:function(e,t){this.store.insertAfter(e,t)},handleNodeExpand:function(e,t,n){this.broadcast("ElTreeNode","tree-node-expand",t),this.$emit("node-expand",e,t,n)},updateKeyChildren:function(e,t){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in updateKeyChild");this.store.updateChildren(e,t)},initTabIndex:function(){this.treeItems=this.$el.querySelectorAll(".is-focusable[role=treeitem]"),this.checkboxItems=this.$el.querySelectorAll("input[type=checkbox]");var e=this.$el.querySelectorAll(".is-checked[role=treeitem]");e.length?e[0].setAttribute("tabindex",0):this.treeItems[0]&&this.treeItems[0].setAttribute("tabindex",0)},handleKeydown:function(e){var t=e.target;if(-1!==t.className.indexOf("el-tree-node")){var n=e.keyCode;this.treeItems=this.$el.querySelectorAll(".is-focusable[role=treeitem]");var r=this.treeItemArray.indexOf(t),i=void 0;[38,40].indexOf(n)>-1&&(e.preventDefault(),i=38===n?0!==r?r-1:0:r<this.treeItemArray.length-1?r+1:0,this.treeItemArray[i].focus()),[37,39].indexOf(n)>-1&&(e.preventDefault(),t.click());var a=t.querySelector('[type="checkbox"]');[13,32].indexOf(n)>-1&&a&&(e.preventDefault(),a.click())}}},created:function(){var e=this;this.isTree=!0,this.store=new Ga({key:this.nodeKey,data:this.data,lazy:this.lazy,props:this.props,load:this.load,currentNodeKey:this.currentNodeKey,checkStrictly:this.checkStrictly,checkDescendants:this.checkDescendants,defaultCheckedKeys:this.defaultCheckedKeys,defaultExpandedKeys:this.defaultExpandedKeys,autoExpandParent:this.autoExpandParent,defaultExpandAll:this.defaultExpandAll,filterNodeMethod:this.filterNodeMethod}),this.root=this.store.root;var t=this.dragState;this.$on("tree-node-drag-start",function(n,r){if("function"==typeof e.allowDrag&&!e.allowDrag(r.node))return n.preventDefault(),!1;n.dataTransfer.effectAllowed="move";try{n.dataTransfer.setData("text/plain","")}catch(e){}t.draggingNode=r,e.$emit("node-drag-start",r.node,n)}),this.$on("tree-node-drag-over",function(n,r){var i=function(e,t){for(var n=e;n&&"BODY"!==n.tagName;){if(n.__vue__&&n.__vue__.$options.name===t)return n.__vue__;n=n.parentNode}return null}(n.target,"ElTreeNode"),a=t.dropNode;a&&a!==i&&Object(pe.removeClass)(a.$el,"is-drop-inner");var o=t.draggingNode;if(o&&i){var s=!0,l=!0,c=!0,u=!0;"function"==typeof e.allowDrop&&(s=e.allowDrop(o.node,i.node,"prev"),u=l=e.allowDrop(o.node,i.node,"inner"),c=e.allowDrop(o.node,i.node,"next")),n.dataTransfer.dropEffect=l?"move":"none",(s||l||c)&&a!==i&&(a&&e.$emit("node-drag-leave",o.node,a.node,n),e.$emit("node-drag-enter",o.node,i.node,n)),(s||l||c)&&(t.dropNode=i),i.node.nextSibling===o.node&&(c=!1),i.node.previousSibling===o.node&&(s=!1),i.node.contains(o.node,!1)&&(l=!1),(o.node===i.node||o.node.contains(i.node))&&(s=!1,l=!1,c=!1);var h=i.$el.getBoundingClientRect(),d=e.$el.getBoundingClientRect(),f=void 0,p=s?l?.25:c?.45:1:-1,A=c?l?.75:s?.55:0:1,g=-9999,m=n.clientY-h.top;f=m<h.height*p?"before":m>h.height*A?"after":l?"inner":"none";var v=i.$el.querySelector(".el-tree-node__expand-icon").getBoundingClientRect(),y=e.$refs.dropIndicator;"before"===f?g=v.top-d.top:"after"===f&&(g=v.bottom-d.top),y.style.top=g+"px",y.style.left=v.right-d.left+"px","inner"===f?Object(pe.addClass)(i.$el,"is-drop-inner"):Object(pe.removeClass)(i.$el,"is-drop-inner"),t.showDropIndicator="before"===f||"after"===f,t.allowDrop=t.showDropIndicator||u,t.dropType=f,e.$emit("node-drag-over",o.node,i.node,n)}}),this.$on("tree-node-drag-end",function(n){var r=t.draggingNode,i=t.dropType,a=t.dropNode;if(n.preventDefault(),n.dataTransfer.dropEffect="move",r&&a){var o={data:r.node.data};"none"!==i&&r.node.remove(),"before"===i?a.node.parent.insertBefore(o,a.node):"after"===i?a.node.parent.insertAfter(o,a.node):"inner"===i&&a.node.insertChild(o),"none"!==i&&e.store.registerNode(o),Object(pe.removeClass)(a.$el,"is-drop-inner"),e.$emit("node-drag-end",r.node,a.node,i,n),"none"!==i&&e.$emit("node-drop",r.node,a.node,i,n)}r&&!a&&e.$emit("node-drag-end",r.node,null,i,n),t.showDropIndicator=!1,t.draggingNode=null,t.dropNode=null,t.allowDrop=!0})},mounted:function(){this.initTabIndex(),this.$el.addEventListener("keydown",this.handleKeydown)},updated:function(){this.treeItems=this.$el.querySelectorAll("[role=treeitem]"),this.checkboxItems=this.$el.querySelectorAll("input[type=checkbox]")}},Pa,[],!1,null,null,null);Ka.options.__file="packages/tree/src/tree.vue";var Ya=Ka.exports;Ya.install=function(e){e.component(Ya.name,Ya)};var Xa=Ya,Ja=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-alert-fade"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-alert",class:[e.typeClass,e.center?"is-center":"","is-"+e.effect],attrs:{role:"alert"}},[e.showIcon?n("i",{staticClass:"el-alert__icon",class:[e.iconClass,e.isBigIcon]}):e._e(),n("div",{staticClass:"el-alert__content"},[e.title||e.$slots.title?n("span",{staticClass:"el-alert__title",class:[e.isBoldTitle]},[e._t("title",[e._v(e._s(e.title))])],2):e._e(),e.$slots.default&&!e.description?n("p",{staticClass:"el-alert__description"},[e._t("default")],2):e._e(),e.description&&!e.$slots.default?n("p",{staticClass:"el-alert__description"},[e._v(e._s(e.description))]):e._e(),n("i",{directives:[{name:"show",rawName:"v-show",value:e.closable,expression:"closable"}],staticClass:"el-alert__closebtn",class:{"is-customed":""!==e.closeText,"el-icon-close":""===e.closeText},on:{click:function(t){e.close()}}},[e._v(e._s(e.closeText))])])])])};Ja._withStripped=!0;var Za={success:"el-icon-success",warning:"el-icon-warning",error:"el-icon-error"},eo=i({name:"ElAlert",props:{title:{type:String,default:""},description:{type:String,default:""},type:{type:String,default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,default:"light",validator:function(e){return-1!==["light","dark"].indexOf(e)}}},data:function(){return{visible:!0}},methods:{close:function(){this.visible=!1,this.$emit("close")}},computed:{typeClass:function(){return"el-alert--"+this.type},iconClass:function(){return Za[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":""}}},Ja,[],!1,null,null,null);eo.options.__file="packages/alert/src/main.vue";var to=eo.exports;to.install=function(e){e.component(to.name,to)};var no=to,ro=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-notification-fade"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],class:["el-notification",e.customClass,e.horizontalClass],style:e.positionStyle,attrs:{role:"alert"},on:{mouseenter:function(t){e.clearTimer()},mouseleave:function(t){e.startTimer()},click:e.click}},[e.type||e.iconClass?n("i",{staticClass:"el-notification__icon",class:[e.typeClass,e.iconClass]}):e._e(),n("div",{staticClass:"el-notification__group",class:{"is-with-icon":e.typeClass||e.iconClass}},[n("h2",{staticClass:"el-notification__title",domProps:{textContent:e._s(e.title)}}),n("div",{directives:[{name:"show",rawName:"v-show",value:e.message,expression:"message"}],staticClass:"el-notification__content"},[e._t("default",[e.dangerouslyUseHTMLString?n("p",{domProps:{innerHTML:e._s(e.message)}}):n("p",[e._v(e._s(e.message))])])],2),e.showClose?n("div",{staticClass:"el-notification__closeBtn el-icon-close",on:{click:function(t){return t.stopPropagation(),e.close(t)}}}):e._e()])])])};ro._withStripped=!0;var io={success:"success",info:"info",warning:"warning",error:"error"},ao=i({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&&io[this.type]?"el-icon-"+io[this.type]:""},horizontalClass:function(){return this.position.indexOf("right")>-1?"right":"left"},verticalProperty:function(){return/^top-/.test(this.position)?"top":"bottom"},positionStyle:function(){var e;return(e={})[this.verticalProperty]=this.verticalOffset+"px",e}},watch:{closed:function(e){e&&(this.visible=!1,this.$el.addEventListener("transitionend",this.destroyElement))}},methods:{destroyElement:function(){this.$el.removeEventListener("transitionend",this.destroyElement),this.$destroy(!0),this.$el.parentNode.removeChild(this.$el)},click:function(){"function"==typeof this.onClick&&this.onClick()},close:function(){this.closed=!0,"function"==typeof this.onClose&&this.onClose()},clearTimer:function(){clearTimeout(this.timer)},startTimer:function(){var e=this;this.duration>0&&(this.timer=setTimeout(function(){e.closed||e.close()},this.duration))},keydown:function(e){46===e.keyCode||8===e.keyCode?this.clearTimer():27===e.keyCode?this.closed||this.close():this.startTimer()}},mounted:function(){var e=this;this.duration>0&&(this.timer=setTimeout(function(){e.closed||e.close()},this.duration)),document.addEventListener("keydown",this.keydown)},beforeDestroy:function(){document.removeEventListener("keydown",this.keydown)}},ro,[],!1,null,null,null);ao.options.__file="packages/notification/src/main.vue";var oo=ao.exports,so=hn.a.extend(oo),lo=void 0,co=[],uo=1,ho=function e(t){if(!hn.a.prototype.$isServer){var n=(t=je()({},t)).onClose,r="notification_"+uo++,i=t.position||"top-right";t.onClose=function(){e.close(r,n)},lo=new so({data:t}),Object(Qi.isVNode)(t.message)&&(lo.$slots.default=[t.message],t.message="REPLACED_BY_VNODE"),lo.id=r,lo.$mount(),document.body.appendChild(lo.$el),lo.visible=!0,lo.dom=lo.$el,lo.dom.style.zIndex=y.PopupManager.nextZIndex();var a=t.offset||0;return co.filter(function(e){return e.position===i}).forEach(function(e){a+=e.$el.offsetHeight+16}),a+=16,lo.verticalOffset=a,co.push(lo),lo}};["success","warning","info","error"].forEach(function(e){ho[e]=function(t){return("string"==typeof t||Object(Qi.isVNode)(t))&&(t={message:t}),t.type=e,ho(t)}}),ho.close=function(e,t){var n=-1,r=co.length,i=co.filter(function(t,r){return t.id===e&&(n=r,!0)})[0];if(i&&("function"==typeof t&&t(i),co.splice(n,1),!(r<=1)))for(var a=i.position,o=i.dom.offsetHeight,s=n;s<r-1;s++)co[s].position===a&&(co[s].dom.style[i.verticalProperty]=parseInt(co[s].dom.style[i.verticalProperty],10)-o-16+"px")},ho.closeAll=function(){for(var e=co.length-1;e>=0;e--)co[e].close()};var fo=ho,po=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-slider",class:{"is-vertical":e.vertical,"el-slider--with-input":e.showInput},attrs:{role:"slider","aria-valuemin":e.min,"aria-valuemax":e.max,"aria-orientation":e.vertical?"vertical":"horizontal","aria-disabled":e.sliderDisabled}},[e.showInput&&!e.range?n("el-input-number",{ref:"input",staticClass:"el-slider__input",attrs:{step:e.step,disabled:e.sliderDisabled,controls:e.showInputControls,min:e.min,max:e.max,debounce:e.debounce,size:e.inputSize},on:{change:e.emitChange},model:{value:e.firstValue,callback:function(t){e.firstValue=t},expression:"firstValue"}}):e._e(),n("div",{ref:"slider",staticClass:"el-slider__runway",class:{"show-input":e.showInput,disabled:e.sliderDisabled},style:e.runwayStyle,on:{click:e.onSliderClick}},[n("div",{staticClass:"el-slider__bar",style:e.barStyle}),n("slider-button",{ref:"button1",attrs:{vertical:e.vertical,"tooltip-class":e.tooltipClass},model:{value:e.firstValue,callback:function(t){e.firstValue=t},expression:"firstValue"}}),e.range?n("slider-button",{ref:"button2",attrs:{vertical:e.vertical,"tooltip-class":e.tooltipClass},model:{value:e.secondValue,callback:function(t){e.secondValue=t},expression:"secondValue"}}):e._e(),e._l(e.stops,function(t,r){return e.showStops?n("div",{key:r,staticClass:"el-slider__stop",style:e.getStopStyle(t)}):e._e()}),e.markList.length>0?[n("div",e._l(e.markList,function(t,r){return n("div",{key:r,staticClass:"el-slider__stop el-slider__marks-stop",style:e.getStopStyle(t.position)})}),0),n("div",{staticClass:"el-slider__marks"},e._l(e.markList,function(t,r){return n("slider-marker",{key:r,style:e.getStopStyle(t.position),attrs:{mark:t.mark}})}),1)]:e._e()],2)],1)};po._withStripped=!0;var Ao=n(41),go=n.n(Ao),mo=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"button",staticClass:"el-slider__button-wrapper",class:{hover:e.hovering,dragging:e.dragging},style:e.wrapperStyle,attrs:{tabindex:"0"},on:{mouseenter:e.handleMouseEnter,mouseleave:e.handleMouseLeave,mousedown:e.onButtonDown,touchstart:e.onButtonDown,focus:e.handleMouseEnter,blur:e.handleMouseLeave,keydown:[function(t){return"button"in t||!e._k(t.keyCode,"left",37,t.key,["Left","ArrowLeft"])?"button"in t&&0!==t.button?null:e.onLeftKeyDown(t):null},function(t){return"button"in t||!e._k(t.keyCode,"right",39,t.key,["Right","ArrowRight"])?"button"in t&&2!==t.button?null:e.onRightKeyDown(t):null},function(t){return"button"in t||!e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?(t.preventDefault(),e.onLeftKeyDown(t)):null},function(t){return"button"in t||!e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"])?(t.preventDefault(),e.onRightKeyDown(t)):null}]}},[n("el-tooltip",{ref:"tooltip",attrs:{placement:"top","popper-class":e.tooltipClass,disabled:!e.showTooltip}},[n("span",{attrs:{slot:"content"},slot:"content"},[e._v(e._s(e.formatValue))]),n("div",{staticClass:"el-slider__button",class:{hover:e.hovering,dragging:e.dragging}})])],1)};mo._withStripped=!0;var vo=i({name:"ElSliderButton",components:{ElTooltip:Be.a},props:{value:{type:Number,default:0},vertical:{type:Boolean,default:!1},tooltipClass:String},data:function(){return{hovering:!1,dragging:!1,isClick:!1,startX:0,currentX:0,startY:0,currentY:0,startPosition:0,newPosition:null,oldValue:this.value}},computed:{disabled:function(){return this.$parent.sliderDisabled},max:function(){return this.$parent.max},min:function(){return this.$parent.min},step:function(){return this.$parent.step},showTooltip:function(){return this.$parent.showTooltip},precision:function(){return this.$parent.precision},currentPosition:function(){return(this.value-this.min)/(this.max-this.min)*100+"%"},enableFormat:function(){return this.$parent.formatTooltip instanceof Function},formatValue:function(){return this.enableFormat&&this.$parent.formatTooltip(this.value)||this.value},wrapperStyle:function(){return this.vertical?{bottom:this.currentPosition}:{left:this.currentPosition}}},watch:{dragging:function(e){this.$parent.dragging=e}},methods:{displayTooltip:function(){this.$refs.tooltip&&(this.$refs.tooltip.showPopper=!0)},hideTooltip:function(){this.$refs.tooltip&&(this.$refs.tooltip.showPopper=!1)},handleMouseEnter:function(){this.hovering=!0,this.displayTooltip()},handleMouseLeave:function(){this.hovering=!1,this.hideTooltip()},onButtonDown:function(e){this.disabled||(e.preventDefault(),this.onDragStart(e),window.addEventListener("mousemove",this.onDragging),window.addEventListener("touchmove",this.onDragging),window.addEventListener("mouseup",this.onDragEnd),window.addEventListener("touchend",this.onDragEnd),window.addEventListener("contextmenu",this.onDragEnd))},onLeftKeyDown:function(){this.disabled||(this.newPosition=parseFloat(this.currentPosition)-this.step/(this.max-this.min)*100,this.setPosition(this.newPosition),this.$parent.emitChange())},onRightKeyDown:function(){this.disabled||(this.newPosition=parseFloat(this.currentPosition)+this.step/(this.max-this.min)*100,this.setPosition(this.newPosition),this.$parent.emitChange())},onDragStart:function(e){this.dragging=!0,this.isClick=!0,"touchstart"===e.type&&(e.clientY=e.touches[0].clientY,e.clientX=e.touches[0].clientX),this.vertical?this.startY=e.clientY:this.startX=e.clientX,this.startPosition=parseFloat(this.currentPosition),this.newPosition=this.startPosition},onDragging:function(e){if(this.dragging){this.isClick=!1,this.displayTooltip(),this.$parent.resetSize();var t=0;"touchmove"===e.type&&(e.clientY=e.touches[0].clientY,e.clientX=e.touches[0].clientX),this.vertical?(this.currentY=e.clientY,t=(this.startY-this.currentY)/this.$parent.sliderSize*100):(this.currentX=e.clientX,t=(this.currentX-this.startX)/this.$parent.sliderSize*100),this.newPosition=this.startPosition+t,this.setPosition(this.newPosition)}},onDragEnd:function(){var e=this;this.dragging&&(setTimeout(function(){e.dragging=!1,e.hideTooltip(),e.isClick||(e.setPosition(e.newPosition),e.$parent.emitChange())},0),window.removeEventListener("mousemove",this.onDragging),window.removeEventListener("touchmove",this.onDragging),window.removeEventListener("mouseup",this.onDragEnd),window.removeEventListener("touchend",this.onDragEnd),window.removeEventListener("contextmenu",this.onDragEnd))},setPosition:function(e){var t=this;if(null!==e&&!isNaN(e)){e<0?e=0:e>100&&(e=100);var n=100/((this.max-this.min)/this.step),r=Math.round(e/n)*n*(this.max-this.min)*.01+this.min;r=parseFloat(r.toFixed(this.precision)),this.$emit("input",r),this.$nextTick(function(){t.displayTooltip(),t.$refs.tooltip&&t.$refs.tooltip.updatePopper()}),this.dragging||this.value===this.oldValue||(this.oldValue=this.value)}}}},mo,[],!1,null,null,null);vo.options.__file="packages/slider/src/button.vue";var yo=vo.exports,bo={name:"ElMarker",props:{mark:{type:[String,Object]}},render:function(){var e=arguments[0],t="string"==typeof this.mark?this.mark:this.mark.label;return e("div",{class:"el-slider__marks-text",style:this.mark.style||{}},[t])}},wo=i({name:"ElSlider",mixins:[C.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:go.a,SliderButton:yo,SliderMarker:bo},data:function(){return{firstValue:null,secondValue:null,oldValue:null,dragging:!1,sliderSize:1}},watch:{value:function(e,t){this.dragging||Array.isArray(e)&&Array.isArray(t)&&e.every(function(e,n){return e===t[n]})||this.setValues()},dragging:function(e){e||this.setValues()},firstValue:function(e){this.range?this.$emit("input",[this.minValue,this.maxValue]):this.$emit("input",e)},secondValue:function(){this.range&&this.$emit("input",[this.minValue,this.maxValue])},min:function(){this.setValues()},max:function(){this.setValues()}},methods:{valueChanged:function(){var e=this;return this.range?![this.minValue,this.maxValue].every(function(t,n){return t===e.oldValue[n]}):this.value!==this.oldValue},setValues:function(){if(this.min>this.max)console.error("[Element Error][Slider]min should not be greater than max.");else{var e=this.value;this.range&&Array.isArray(e)?e[1]<this.min?this.$emit("input",[this.min,this.min]):e[0]>this.max?this.$emit("input",[this.max,this.max]):e[0]<this.min?this.$emit("input",[this.min,e[1]]):e[1]>this.max?this.$emit("input",[e[0],this.max]):(this.firstValue=e[0],this.secondValue=e[1],this.valueChanged()&&(this.dispatch("ElFormItem","el.form.change",[this.minValue,this.maxValue]),this.oldValue=e.slice())):this.range||"number"!=typeof e||isNaN(e)||(e<this.min?this.$emit("input",this.min):e>this.max?this.$emit("input",this.max):(this.firstValue=e,this.valueChanged()&&(this.dispatch("ElFormItem","el.form.change",e),this.oldValue=e)))}},setPosition:function(e){var t=this.min+e*(this.max-this.min)/100;if(this.range){var n=void 0;n=Math.abs(this.minValue-t)<Math.abs(this.maxValue-t)?this.firstValue<this.secondValue?"button1":"button2":this.firstValue>this.secondValue?"button1":"button2",this.$refs[n].setPosition(e)}else this.$refs.button1.setPosition(e)},onSliderClick:function(e){if(!this.sliderDisabled&&!this.dragging){if(this.resetSize(),this.vertical){var t=this.$refs.slider.getBoundingClientRect().bottom;this.setPosition((t-e.clientY)/this.sliderSize*100)}else{var n=this.$refs.slider.getBoundingClientRect().left;this.setPosition((e.clientX-n)/this.sliderSize*100)}this.emitChange()}},resetSize:function(){this.$refs.slider&&(this.sliderSize=this.$refs.slider["client"+(this.vertical?"Height":"Width")])},emitChange:function(){var e=this;this.$nextTick(function(){e.$emit("change",e.range?[e.minValue,e.maxValue]:e.value)})},getStopStyle:function(e){return this.vertical?{bottom:e+"%"}:{left:e+"%"}}},computed:{stops:function(){var e=this;if(!this.showStops||this.min>this.max)return[];if(0===this.step)return[];for(var t=(this.max-this.min)/this.step,n=100*this.step/(this.max-this.min),r=[],i=1;i<t;i++)r.push(i*n);return this.range?r.filter(function(t){return t<100*(e.minValue-e.min)/(e.max-e.min)||t>100*(e.maxValue-e.min)/(e.max-e.min)}):r.filter(function(t){return t>100*(e.firstValue-e.min)/(e.max-e.min)})},markList:function(){var e=this;return this.marks?Object.keys(this.marks).map(parseFloat).sort(function(e,t){return e-t}).filter(function(t){return t<=e.max&&t>=e.min}).map(function(t){return{point:t,position:100*(t-e.min)/(e.max-e.min),mark:e.marks[t]}}):[]},minValue:function(){return Math.min(this.firstValue,this.secondValue)},maxValue:function(){return Math.max(this.firstValue,this.secondValue)},barSize:function(){return this.range?100*(this.maxValue-this.minValue)/(this.max-this.min)+"%":100*(this.firstValue-this.min)/(this.max-this.min)+"%"},barStart:function(){return this.range?100*(this.minValue-this.min)/(this.max-this.min)+"%":"0%"},precision:function(){var e=[this.min,this.max,this.step].map(function(e){var t=(""+e).split(".")[1];return t?t.length:0});return Math.max.apply(null,e)},runwayStyle:function(){return this.vertical?{height:this.height}:{}},barStyle:function(){return this.vertical?{height:this.barSize,bottom:this.barStart}:{width:this.barSize,left:this.barStart}},sliderDisabled:function(){return this.disabled||(this.elForm||{}).disabled}},mounted:function(){var e=void 0;this.range?(Array.isArray(this.value)?(this.firstValue=Math.max(this.min,this.value[0]),this.secondValue=Math.min(this.max,this.value[1])):(this.firstValue=this.min,this.secondValue=this.max),this.oldValue=[this.firstValue,this.secondValue],e=this.firstValue+"-"+this.secondValue):("number"!=typeof this.value||isNaN(this.value)?this.firstValue=this.min:this.firstValue=Math.min(this.max,Math.max(this.min,this.value)),this.oldValue=this.firstValue,e=this.firstValue),this.$el.setAttribute("aria-valuetext",e),this.$el.setAttribute("aria-label",this.label?this.label:"slider between "+this.min+" and "+this.max),this.resetSize(),window.addEventListener("resize",this.resetSize)},beforeDestroy:function(){window.removeEventListener("resize",this.resetSize)}},po,[],!1,null,null,null);wo.options.__file="packages/slider/src/main.vue";var xo=wo.exports;xo.install=function(e){e.component(xo.name,xo)};var _o=xo,Co=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-loading-fade"},on:{"after-leave":e.handleAfterLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-loading-mask",class:[e.customClass,{"is-fullscreen":e.fullscreen}],style:{backgroundColor:e.background||""}},[n("div",{staticClass:"el-loading-spinner"},[e.spinner?n("i",{class:e.spinner}):n("svg",{staticClass:"circular",attrs:{viewBox:"25 25 50 50"}},[n("circle",{staticClass:"path",attrs:{cx:"50",cy:"50",r:"20",fill:"none"}})]),e.text?n("p",{staticClass:"el-loading-text"},[e._v(e._s(e.text))]):e._e()])])])};Co._withStripped=!0;var So=i({data:function(){return{text:null,spinner:null,background:null,fullscreen:!0,visible:!1,customClass:""}},methods:{handleAfterLeave:function(){this.$emit("after-leave")},setText:function(e){this.text=e}}},Co,[],!1,null,null,null);So.options.__file="packages/loading/src/loading.vue";var ko=So.exports,Bo=n(32),Eo=n.n(Bo),To=hn.a.extend(ko),Io={install:function(e){if(!e.prototype.$isServer){var t=function(t,r){r.value?e.nextTick(function(){r.modifiers.fullscreen?(t.originalPosition=Object(pe.getStyle)(document.body,"position"),t.originalOverflow=Object(pe.getStyle)(document.body,"overflow"),t.maskStyle.zIndex=y.PopupManager.nextZIndex(),Object(pe.addClass)(t.mask,"is-fullscreen"),n(document.body,t,r)):(Object(pe.removeClass)(t.mask,"is-fullscreen"),r.modifiers.body?(t.originalPosition=Object(pe.getStyle)(document.body,"position"),["top","left"].forEach(function(e){var n="top"===e?"scrollTop":"scrollLeft";t.maskStyle[e]=t.getBoundingClientRect()[e]+document.body[n]+document.documentElement[n]-parseInt(Object(pe.getStyle)(document.body,"margin-"+e),10)+"px"}),["height","width"].forEach(function(e){t.maskStyle[e]=t.getBoundingClientRect()[e]+"px"}),n(document.body,t,r)):(t.originalPosition=Object(pe.getStyle)(t,"position"),n(t,t,r)))}):(Eo()(t.instance,function(e){if(t.instance.hiding){t.domVisible=!1;var n=r.modifiers.fullscreen||r.modifiers.body?document.body:t;Object(pe.removeClass)(n,"el-loading-parent--relative"),Object(pe.removeClass)(n,"el-loading-parent--hidden"),t.instance.hiding=!1}},300,!0),t.instance.visible=!1,t.instance.hiding=!0)},n=function(t,n,r){n.domVisible||"none"===Object(pe.getStyle)(n,"display")||"hidden"===Object(pe.getStyle)(n,"visibility")?n.domVisible&&!0===n.instance.hiding&&(n.instance.visible=!0,n.instance.hiding=!1):(Object.keys(n.maskStyle).forEach(function(e){n.mask.style[e]=n.maskStyle[e]}),"absolute"!==n.originalPosition&&"fixed"!==n.originalPosition&&Object(pe.addClass)(t,"el-loading-parent--relative"),r.modifiers.fullscreen&&r.modifiers.lock&&Object(pe.addClass)(t,"el-loading-parent--hidden"),n.domVisible=!0,t.appendChild(n.mask),e.nextTick(function(){n.instance.hiding?n.instance.$emit("after-leave"):n.instance.visible=!0}),n.domInserted=!0)};e.directive("loading",{bind:function(e,n,r){var i=e.getAttribute("element-loading-text"),a=e.getAttribute("element-loading-spinner"),o=e.getAttribute("element-loading-background"),s=e.getAttribute("element-loading-custom-class"),l=r.context,c=new To({el:document.createElement("div"),data:{text:l&&l[i]||i,spinner:l&&l[a]||a,background:l&&l[o]||o,customClass:l&&l[s]||s,fullscreen:!!n.modifiers.fullscreen}});e.instance=c,e.mask=c.$el,e.maskStyle={},n.value&&t(e,n)},update:function(e,n){e.instance.setText(e.getAttribute("element-loading-text")),n.oldValue!==n.value&&t(e,n)},unbind:function(e,n){e.domInserted&&(e.mask&&e.mask.parentNode&&e.mask.parentNode.removeChild(e.mask),t(e,{value:!1,modifiers:n.modifiers})),e.instance&&e.instance.$destroy()}})}}},Mo=Io,Fo=hn.a.extend(ko),Do={text:null,fullscreen:!0,body:!1,lock:!1,customClass:""},Po=void 0;Fo.prototype.originalPosition="",Fo.prototype.originalOverflow="",Fo.prototype.close=function(){var e=this;this.fullscreen&&(Po=void 0),Eo()(this,function(t){var n=e.fullscreen||e.body?document.body:e.target;Object(pe.removeClass)(n,"el-loading-parent--relative"),Object(pe.removeClass)(n,"el-loading-parent--hidden"),e.$el&&e.$el.parentNode&&e.$el.parentNode.removeChild(e.$el),e.$destroy()},300),this.visible=!1};var Oo=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!hn.a.prototype.$isServer){if("string"==typeof(e=je()({},Do,e)).target&&(e.target=document.querySelector(e.target)),e.target=e.target||document.body,e.target!==document.body?e.fullscreen=!1:e.body=!0,e.fullscreen&&Po)return Po;var t=e.body?document.body:e.target,n=new Fo({el:document.createElement("div"),data:e});return function(e,t,n){var r={};e.fullscreen?(n.originalPosition=Object(pe.getStyle)(document.body,"position"),n.originalOverflow=Object(pe.getStyle)(document.body,"overflow"),r.zIndex=y.PopupManager.nextZIndex()):e.body?(n.originalPosition=Object(pe.getStyle)(document.body,"position"),["top","left"].forEach(function(t){var n="top"===t?"scrollTop":"scrollLeft";r[t]=e.target.getBoundingClientRect()[t]+document.body[n]+document.documentElement[n]+"px"}),["height","width"].forEach(function(t){r[t]=e.target.getBoundingClientRect()[t]+"px"})):n.originalPosition=Object(pe.getStyle)(t,"position"),Object.keys(r).forEach(function(e){n.$el.style[e]=r[e]})}(e,t,n),"absolute"!==n.originalPosition&&"fixed"!==n.originalPosition&&Object(pe.addClass)(t,"el-loading-parent--relative"),e.fullscreen&&e.lock&&Object(pe.addClass)(t,"el-loading-parent--hidden"),t.appendChild(n.$el),hn.a.nextTick(function(){n.visible=!0}),e.fullscreen&&(Po=n),n}},Lo={install:function(e){e.use(Mo),e.prototype.$loading=Oo},directive:Mo,service:Oo},Ro=function(){var e=this.$createElement;return(this._self._c||e)("i",{class:"el-icon-"+this.name})};Ro._withStripped=!0;var No=i({name:"ElIcon",props:{name:String}},Ro,[],!1,null,null,null);No.options.__file="packages/icon/src/icon.vue";var Uo=No.exports;Uo.install=function(e){e.component(Uo.name,Uo)};var Ho=Uo,jo={name:"ElRow",componentName:"ElRow",props:{tag:{type:String,default:"div"},gutter:Number,type:String,justify:{type:String,default:"start"},align:{type:String,default:"top"}},computed:{style:function(){var e={};return this.gutter&&(e.marginLeft="-"+this.gutter/2+"px",e.marginRight=e.marginLeft),e}},render:function(e){return e(this.tag,{class:["el-row","start"!==this.justify?"is-justify-"+this.justify:"","top"!==this.align?"is-align-"+this.align:"",{"el-row--flex":"flex"===this.type}],style:this.style},this.$slots.default)},install:function(e){e.component(jo.name,jo)}},Qo=jo,zo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vo={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 e=this.$parent;e&&"ElRow"!==e.$options.componentName;)e=e.$parent;return e?e.gutter:0}},render:function(e){var t=this,n=[],r={};return this.gutter&&(r.paddingLeft=this.gutter/2+"px",r.paddingRight=r.paddingLeft),["span","offset","pull","push"].forEach(function(e){(t[e]||0===t[e])&&n.push("span"!==e?"el-col-"+e+"-"+t[e]:"el-col-"+t[e])}),["xs","sm","md","lg","xl"].forEach(function(e){if("number"==typeof t[e])n.push("el-col-"+e+"-"+t[e]);else if("object"===zo(t[e])){var r=t[e];Object.keys(r).forEach(function(t){n.push("span"!==t?"el-col-"+e+"-"+t+"-"+r[t]:"el-col-"+e+"-"+r[t])})}}),e(this.tag,{class:["el-col",n],style:r},this.$slots.default)},install:function(e){e.component(Vo.name,Vo)}},Go=Vo,$o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition-group",{class:["el-upload-list","el-upload-list--"+e.listType,{"is-disabled":e.disabled}],attrs:{tag:"ul",name:"el-list"}},e._l(e.files,function(t){return n("li",{key:t.uid,class:["el-upload-list__item","is-"+t.status,e.focusing?"focusing":""],attrs:{tabindex:"0"},on:{keydown:function(n){if(!("button"in n)&&e._k(n.keyCode,"delete",[8,46],n.key,["Backspace","Delete","Del"]))return null;!e.disabled&&e.$emit("remove",t)},focus:function(t){e.focusing=!0},blur:function(t){e.focusing=!1},click:function(t){e.focusing=!1}}},[e._t("default",["uploading"!==t.status&&["picture-card","picture"].indexOf(e.listType)>-1?n("img",{staticClass:"el-upload-list__item-thumbnail",attrs:{src:t.url,alt:""}}):e._e(),n("a",{staticClass:"el-upload-list__item-name",on:{click:function(n){e.handleClick(t)}}},[n("i",{staticClass:"el-icon-document"}),e._v(e._s(t.name)+"\n ")]),n("label",{staticClass:"el-upload-list__item-status-label"},[n("i",{class:{"el-icon-upload-success":!0,"el-icon-circle-check":"text"===e.listType,"el-icon-check":["picture-card","picture"].indexOf(e.listType)>-1}})]),e.disabled?e._e():n("i",{staticClass:"el-icon-close",on:{click:function(n){e.$emit("remove",t)}}}),e.disabled?e._e():n("i",{staticClass:"el-icon-close-tip"},[e._v(e._s(e.t("el.upload.deleteTip")))]),"uploading"===t.status?n("el-progress",{attrs:{type:"picture-card"===e.listType?"circle":"line","stroke-width":"picture-card"===e.listType?6:2,percentage:e.parsePercentage(t.percentage)}}):e._e(),"picture-card"===e.listType?n("span",{staticClass:"el-upload-list__item-actions"},[e.handlePreview&&"picture-card"===e.listType?n("span",{staticClass:"el-upload-list__item-preview",on:{click:function(n){e.handlePreview(t)}}},[n("i",{staticClass:"el-icon-zoom-in"})]):e._e(),e.disabled?e._e():n("span",{staticClass:"el-upload-list__item-delete",on:{click:function(n){e.$emit("remove",t)}}},[n("i",{staticClass:"el-icon-delete"})])]):e._e()],{file:t})],2)}),0)};$o._withStripped=!0;var qo=n(33),Wo=n.n(qo),Ko=i({name:"ElUploadList",mixins:[p.a],data:function(){return{focusing:!1}},components:{ElProgress:Wo.a},props:{files:{type:Array,default:function(){return[]}},disabled:{type:Boolean,default:!1},handlePreview:Function,listType:String},methods:{parsePercentage:function(e){return parseInt(e,10)},handleClick:function(e){this.handlePreview&&this.handlePreview(e)}}},$o,[],!1,null,null,null);Ko.options.__file="packages/upload/src/upload-list.vue";var Yo=Ko.exports,Xo=n(24),Jo=n.n(Xo);var Zo=function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{staticClass:"el-upload-dragger",class:{"is-dragover":e.dragover},on:{drop:function(t){return t.preventDefault(),e.onDrop(t)},dragover:function(t){return t.preventDefault(),e.onDragover(t)},dragleave:function(t){t.preventDefault(),e.dragover=!1}}},[e._t("default")],2)};Zo._withStripped=!0;var es=i({name:"ElUploadDrag",props:{disabled:Boolean},inject:{uploader:{default:""}},data:function(){return{dragover:!1}},methods:{onDragover:function(){this.disabled||(this.dragover=!0)},onDrop:function(e){if(!this.disabled&&this.uploader){var t=this.uploader.accept;this.dragover=!1,t?this.$emit("file",[].slice.call(e.dataTransfer.files).filter(function(e){var n=e.type,r=e.name,i=r.indexOf(".")>-1?"."+r.split(".").pop():"",a=n.replace(/\/.*$/,"");return t.split(",").map(function(e){return e.trim()}).filter(function(e){return e}).some(function(e){return/\..+$/.test(e)?i===e:/\/\*$/.test(e)?a===e.replace(/\/\*$/,""):!!/^[^\/]+\/[^\/]+$/.test(e)&&n===e})})):this.$emit("file",e.dataTransfer.files)}}}},Zo,[],!1,null,null,null);es.options.__file="packages/upload/src/upload-dragger.vue";var ts=i({inject:["uploader"],components:{UploadDragger:es.exports},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:function(e){if("undefined"!=typeof XMLHttpRequest){var t=new XMLHttpRequest,n=e.action;t.upload&&(t.upload.onprogress=function(t){t.total>0&&(t.percent=t.loaded/t.total*100),e.onProgress(t)});var r=new FormData;e.data&&Object.keys(e.data).forEach(function(t){r.append(t,e.data[t])}),r.append(e.filename,e.file,e.file.name),t.onerror=function(t){e.onError(t)},t.onload=function(){if(t.status<200||t.status>=300)return e.onError(function(e,t,n){var r=void 0;r=n.response?""+(n.response.error||n.response):n.responseText?""+n.responseText:"fail to post "+e+" "+n.status;var i=new Error(r);return i.status=n.status,i.method="post",i.url=e,i}(n,0,t));e.onSuccess(function(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch(e){return t}}(t))},t.open("post",n,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var i=e.headers||{};for(var a in i)i.hasOwnProperty(a)&&null!==i[a]&&t.setRequestHeader(a,i[a]);return t.send(r),t}}},disabled:Boolean,limit:Number,onExceed:Function},data:function(){return{mouseover:!1,reqs:{}}},methods:{isImage:function(e){return-1!==e.indexOf("image")},handleChange:function(e){var t=e.target.files;t&&this.uploadFiles(t)},uploadFiles:function(e){var t=this;if(this.limit&&this.fileList.length+e.length>this.limit)this.onExceed&&this.onExceed(e,this.fileList);else{var n=Array.prototype.slice.call(e);this.multiple||(n=n.slice(0,1)),0!==n.length&&n.forEach(function(e){t.onStart(e),t.autoUpload&&t.upload(e)})}},upload:function(e){var t=this;if(this.$refs.input.value=null,!this.beforeUpload)return this.post(e);var n=this.beforeUpload(e);n&&n.then?n.then(function(n){var r=Object.prototype.toString.call(n);if("[object File]"===r||"[object Blob]"===r){for(var i in"[object Blob]"===r&&(n=new File([n],e.name,{type:e.type})),e)e.hasOwnProperty(i)&&(n[i]=e[i]);t.post(n)}else t.post(e)},function(){t.onRemove(null,e)}):!1!==n?this.post(e):this.onRemove(null,e)},abort:function(e){var t=this.reqs;if(e){var n=e;e.uid&&(n=e.uid),t[n]&&t[n].abort()}else Object.keys(t).forEach(function(e){t[e]&&t[e].abort(),delete t[e]})},post:function(e){var t=this,n=e.uid,r={headers:this.headers,withCredentials:this.withCredentials,file:e,data:this.data,filename:this.name,action:this.action,onProgress:function(n){t.onProgress(n,e)},onSuccess:function(r){t.onSuccess(r,e),delete t.reqs[n]},onError:function(r){t.onError(r,e),delete t.reqs[n]}},i=this.httpRequest(r);this.reqs[n]=i,i&&i.then&&i.then(r.onSuccess,r.onError)},handleClick:function(){this.disabled||(this.$refs.input.value=null,this.$refs.input.click())},handleKeydown:function(e){e.target===e.currentTarget&&(13!==e.keyCode&&32!==e.keyCode||this.handleClick())}},render:function(e){var t=this.handleClick,n=this.drag,r=this.name,i=this.handleChange,a=this.multiple,o=this.accept,s=this.listType,l=this.uploadFiles,c=this.disabled,u={class:{"el-upload":!0},on:{click:t,keydown:this.handleKeydown}};return u.class["el-upload--"+s]=!0,e("div",Jo()([u,{attrs:{tabindex:"0"}}]),[n?e("upload-dragger",{attrs:{disabled:c},on:{file:l}},[this.$slots.default]):this.$slots.default,e("input",{class:"el-upload__input",attrs:{type:"file",name:r,multiple:a,accept:o},ref:"input",on:{change:i}})])}},void 0,void 0,!1,null,null,null);ts.options.__file="packages/upload/src/upload.vue";var ns=ts.exports;function rs(){}var is=i({name:"ElUpload",mixins:[x.a],components:{ElProgress:Wo.a,UploadList:Yo,Upload:ns},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:rs},onChange:{type:Function,default:rs},onPreview:{type:Function},onSuccess:{type:Function,default:rs},onProgress:{type:Function,default:rs},onError:{type:Function,default:rs},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:rs}},data:function(){return{uploadFiles:[],dragOver:!1,draging:!1,tempIndex:1}},computed:{uploadDisabled:function(){return this.disabled||(this.elForm||{}).disabled}},watch:{listType:function(e){"picture-card"!==e&&"picture"!==e||(this.uploadFiles=this.uploadFiles.map(function(e){if(!e.url&&e.raw)try{e.url=URL.createObjectURL(e.raw)}catch(e){console.error("[Element Error][Upload]",e)}return e}))},fileList:{immediate:!0,handler:function(e){var t=this;this.uploadFiles=e.map(function(e){return e.uid=e.uid||Date.now()+t.tempIndex++,e.status=e.status||"success",e})}}},methods:{handleStart:function(e){e.uid=Date.now()+this.tempIndex++;var t={status:"ready",name:e.name,size:e.size,percentage:0,uid:e.uid,raw:e};if("picture-card"===this.listType||"picture"===this.listType)try{t.url=URL.createObjectURL(e)}catch(e){return void console.error("[Element Error][Upload]",e)}this.uploadFiles.push(t),this.onChange(t,this.uploadFiles)},handleProgress:function(e,t){var n=this.getFile(t);this.onProgress(e,n,this.uploadFiles),n.status="uploading",n.percentage=e.percent||0},handleSuccess:function(e,t){var n=this.getFile(t);n&&(n.status="success",n.response=e,this.onSuccess(e,n,this.uploadFiles),this.onChange(n,this.uploadFiles))},handleError:function(e,t){var n=this.getFile(t),r=this.uploadFiles;n.status="fail",r.splice(r.indexOf(n),1),this.onError(e,n,this.uploadFiles),this.onChange(n,this.uploadFiles)},handleRemove:function(e,t){var n=this;t&&(e=this.getFile(t));var r=function(){n.abort(e);var t=n.uploadFiles;t.splice(t.indexOf(e),1),n.onRemove(e,t)};if(this.beforeRemove){if("function"==typeof this.beforeRemove){var i=this.beforeRemove(e,this.uploadFiles);i&&i.then?i.then(function(){r()},rs):!1!==i&&r()}}else r()},getFile:function(e){var t=void 0;return this.uploadFiles.every(function(n){return!(t=e.uid===n.uid?n:null)}),t},abort:function(e){this.$refs["upload-inner"].abort(e)},clearFiles:function(){this.uploadFiles=[]},submit:function(){var e=this;this.uploadFiles.filter(function(e){return"ready"===e.status}).forEach(function(t){e.$refs["upload-inner"].upload(t.raw)})},getMigratingConfig:function(){return{props:{"default-file-list":"default-file-list is renamed to file-list.","show-upload-list":"show-upload-list is renamed to show-file-list.","thumbnail-mode":"thumbnail-mode has been deprecated, you can implement the same effect according to this case: http://element.eleme.io/#/zh-CN/component/upload#yong-hu-tou-xiang-shang-chuan"}}}},beforeDestroy:function(){this.uploadFiles.forEach(function(e){e.url&&0===e.url.indexOf("blob:")&&URL.revokeObjectURL(e.url)})},render:function(e){var t=this,n=void 0;this.showFileList&&(n=e(Yo,{attrs:{disabled:this.uploadDisabled,listType:this.listType,files:this.uploadFiles,handlePreview:this.onPreview},on:{remove:this.handleRemove}},[function(e){if(t.$scopedSlots.file)return t.$scopedSlots.file({file:e.file})}]));var r=e("upload",{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"},[this.$slots.trigger||this.$slots.default]);return e("div",["picture-card"===this.listType?n:"",this.$slots.trigger?[r,this.$slots.default]:r,this.$slots.tip,"picture-card"!==this.listType?n:""])}},void 0,void 0,!1,null,null,null);is.options.__file="packages/upload/src/index.vue";var as=is.exports;as.install=function(e){e.component(as.name,as)};var os=as,ss=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-progress",class:["el-progress--"+e.type,e.status?"is-"+e.status:"",{"el-progress--without-text":!e.showText,"el-progress--text-inside":e.textInside}],attrs:{role:"progressbar","aria-valuenow":e.percentage,"aria-valuemin":"0","aria-valuemax":"100"}},["line"===e.type?n("div",{staticClass:"el-progress-bar"},[n("div",{staticClass:"el-progress-bar__outer",style:{height:e.strokeWidth+"px"}},[n("div",{staticClass:"el-progress-bar__inner",style:e.barStyle},[e.showText&&e.textInside?n("div",{staticClass:"el-progress-bar__innerText"},[e._v(e._s(e.content))]):e._e()])])]):n("div",{staticClass:"el-progress-circle",style:{height:e.width+"px",width:e.width+"px"}},[n("svg",{attrs:{viewBox:"0 0 100 100"}},[n("path",{staticClass:"el-progress-circle__track",style:e.trailPathStyle,attrs:{d:e.trackPath,stroke:"#e5e9f2","stroke-width":e.relativeStrokeWidth,fill:"none"}}),n("path",{staticClass:"el-progress-circle__path",style:e.circlePathStyle,attrs:{d:e.trackPath,stroke:e.stroke,fill:"none","stroke-linecap":e.strokeLinecap,"stroke-width":e.percentage?e.relativeStrokeWidth:0}})])]),e.showText&&!e.textInside?n("div",{staticClass:"el-progress__text",style:{fontSize:e.progressTextSize+"px"}},[e.status?n("i",{class:e.iconClass}):[e._v(e._s(e.content))]],2):e._e()])};ss._withStripped=!0;var ls=i({name:"ElProgress",props:{type:{type:String,default:"line",validator:function(e){return["line","circle","dashboard"].indexOf(e)>-1}},percentage:{type:Number,default:0,required:!0,validator:function(e){return e>=0&&e<=100}},status:{type:String,validator:function(e){return["success","exception","warning"].indexOf(e)>-1}},strokeWidth:{type:Number,default:6},strokeLinecap:{type:String,default:"round"},textInside:{type:Boolean,default:!1},width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:[String,Array,Function],default:""},format:Function},computed:{barStyle:function(){var e={};return e.width=this.percentage+"%",e.backgroundColor=this.getCurrentColor(this.percentage),e},relativeStrokeWidth:function(){return(this.strokeWidth/this.width*100).toFixed(1)},radius:function(){return"circle"===this.type||"dashboard"===this.type?parseInt(50-parseFloat(this.relativeStrokeWidth)/2,10):0},trackPath:function(){var e=this.radius,t="dashboard"===this.type;return"\n M 50 50\n m 0 "+(t?"":"-")+e+"\n a "+e+" "+e+" 0 1 1 0 "+(t?"-":"")+2*e+"\n a "+e+" "+e+" 0 1 1 0 "+(t?"":"-")+2*e+"\n "},perimeter:function(){return 2*Math.PI*this.radius},rate:function(){return"dashboard"===this.type?.75:1},strokeDashoffset:function(){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 e=void 0;if(this.color)e=this.getCurrentColor(this.percentage);else switch(this.status){case"success":e="#13ce66";break;case"exception":e="#ff4949";break;case"warning":e="#e6a23c";break;default:e="#20a0ff"}return e},iconClass:function(){return"warning"===this.status?"el-icon-warning":"line"===this.type?"success"===this.status?"el-icon-circle-check":"el-icon-circle-close":"success"===this.status?"el-icon-check":"el-icon-close"},progressTextSize:function(){return"line"===this.type?12+.4*this.strokeWidth:.111111*this.width+2},content:function(){return"function"==typeof this.format?this.format(this.percentage)||"":this.percentage+"%"}},methods:{getCurrentColor:function(e){return"function"==typeof this.color?this.color(e):"string"==typeof this.color?this.color:this.getLevelColor(e)},getLevelColor:function(e){for(var t=this.getColorArray().sort(function(e,t){return e.percentage-t.percentage}),n=0;n<t.length;n++)if(t[n].percentage>e)return t[n].color;return t[t.length-1].color},getColorArray:function(){var e=this.color,t=100/e.length;return e.map(function(e,n){return"string"==typeof e?{color:e,percentage:(n+1)*t}:e})}}},ss,[],!1,null,null,null);ls.options.__file="packages/progress/src/progress.vue";var cs=ls.exports;cs.install=function(e){e.component(cs.name,cs)};var us=cs,hs=function(){var e=this.$createElement,t=this._self._c||e;return t("span",{staticClass:"el-spinner"},[t("svg",{staticClass:"el-spinner-inner",style:{width:this.radius/2+"px",height:this.radius/2+"px"},attrs:{viewBox:"0 0 50 50"}},[t("circle",{staticClass:"path",attrs:{cx:"25",cy:"25",r:"20",fill:"none",stroke:this.strokeColor,"stroke-width":this.strokeWidth}})])])};hs._withStripped=!0;var ds=i({name:"ElSpinner",props:{type:String,radius:{type:Number,default:100},strokeWidth:{type:Number,default:5},strokeColor:{type:String,default:"#efefef"}}},hs,[],!1,null,null,null);ds.options.__file="packages/spinner/src/spinner.vue";var fs=ds.exports;fs.install=function(e){e.component(fs.name,fs)};var ps=fs,As=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-message-fade"},on:{"after-leave":e.handleAfterLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],class:["el-message",e.type&&!e.iconClass?"el-message--"+e.type:"",e.center?"is-center":"",e.showClose?"is-closable":"",e.customClass],style:e.positionStyle,attrs:{role:"alert"},on:{mouseenter:e.clearTimer,mouseleave:e.startTimer}},[e.iconClass?n("i",{class:e.iconClass}):n("i",{class:e.typeClass}),e._t("default",[e.dangerouslyUseHTMLString?n("p",{staticClass:"el-message__content",domProps:{innerHTML:e._s(e.message)}}):n("p",{staticClass:"el-message__content"},[e._v(e._s(e.message))])]),e.showClose?n("i",{staticClass:"el-message__closeBtn el-icon-close",on:{click:e.close}}):e._e()],2)])};As._withStripped=!0;var gs={success:"success",info:"info",warning:"warning",error:"error"},ms=i({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-"+gs[this.type]:""},positionStyle:function(){return{top:this.verticalOffset+"px"}}},watch:{closed:function(e){e&&(this.visible=!1)}},methods:{handleAfterLeave:function(){this.$destroy(!0),this.$el.parentNode.removeChild(this.$el)},close:function(){this.closed=!0,"function"==typeof this.onClose&&this.onClose(this)},clearTimer:function(){clearTimeout(this.timer)},startTimer:function(){var e=this;this.duration>0&&(this.timer=setTimeout(function(){e.closed||e.close()},this.duration))},keydown:function(e){27===e.keyCode&&(this.closed||this.close())}},mounted:function(){this.startTimer(),document.addEventListener("keydown",this.keydown)},beforeDestroy:function(){document.removeEventListener("keydown",this.keydown)}},As,[],!1,null,null,null);ms.options.__file="packages/message/src/main.vue";var vs=ms.exports,ys=hn.a.extend(vs),bs=void 0,ws=[],xs=1,_s=function e(t){if(!hn.a.prototype.$isServer){"string"==typeof(t=t||{})&&(t={message:t});var n=t.onClose,r="message_"+xs++;t.onClose=function(){e.close(r,n)},(bs=new ys({data:t})).id=r,Object(Qi.isVNode)(bs.message)&&(bs.$slots.default=[bs.message],bs.message=null),bs.$mount(),document.body.appendChild(bs.$el);var i=t.offset||20;return ws.forEach(function(e){i+=e.$el.offsetHeight+16}),bs.verticalOffset=i,bs.visible=!0,bs.$el.style.zIndex=y.PopupManager.nextZIndex(),ws.push(bs),bs}};["success","warning","info","error"].forEach(function(e){_s[e]=function(t){return"string"==typeof t&&(t={message:t}),t.type=e,_s(t)}}),_s.close=function(e,t){for(var n=ws.length,r=-1,i=void 0,a=0;a<n;a++)if(e===ws[a].id){i=ws[a].$el.offsetHeight,r=a,"function"==typeof t&&t(ws[a]),ws.splice(a,1);break}if(!(n<=1||-1===r||r>ws.length-1))for(var o=r;o<n-1;o++){var s=ws[o].$el;s.style.top=parseInt(s.style.top,10)-i-16+"px"}},_s.closeAll=function(){for(var e=ws.length-1;e>=0;e--)ws[e].close()};var Cs=_s,Ss=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-badge"},[e._t("default"),n("transition",{attrs:{name:"el-zoom-in-center"}},[n("sup",{directives:[{name:"show",rawName:"v-show",value:!e.hidden&&(e.content||0===e.content||e.isDot),expression:"!hidden && (content || content === 0 || isDot)"}],staticClass:"el-badge__content",class:["el-badge__content--"+e.type,{"is-fixed":e.$slots.default,"is-dot":e.isDot}],domProps:{textContent:e._s(e.content)}})])],2)};Ss._withStripped=!0;var ks=i({name:"ElBadge",props:{value:[String,Number],max:Number,isDot:Boolean,hidden:Boolean,type:{type:String,validator:function(e){return["primary","success","warning","info","danger"].indexOf(e)>-1}}},computed:{content:function(){if(!this.isDot){var e=this.value,t=this.max;return"number"==typeof e&&"number"==typeof t&&t<e?t+"+":e}}}},Ss,[],!1,null,null,null);ks.options.__file="packages/badge/src/main.vue";var Bs=ks.exports;Bs.install=function(e){e.component(Bs.name,Bs)};var Es=Bs,Ts=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-card",class:e.shadow?"is-"+e.shadow+"-shadow":"is-always-shadow"},[e.$slots.header||e.header?n("div",{staticClass:"el-card__header"},[e._t("header",[e._v(e._s(e.header))])],2):e._e(),n("div",{staticClass:"el-card__body",style:e.bodyStyle},[e._t("default")],2)])};Ts._withStripped=!0;var Is=i({name:"ElCard",props:{header:{},bodyStyle:{},shadow:{type:String}}},Ts,[],!1,null,null,null);Is.options.__file="packages/card/src/main.vue";var Ms=Is.exports;Ms.install=function(e){e.component(Ms.name,Ms)};var Fs=Ms,Ds=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-rate",attrs:{role:"slider","aria-valuenow":e.currentValue,"aria-valuetext":e.text,"aria-valuemin":"0","aria-valuemax":e.max,tabindex:"0"},on:{keydown:e.handleKey}},[e._l(e.max,function(t,r){return n("span",{key:r,staticClass:"el-rate__item",style:{cursor:e.rateDisabled?"auto":"pointer"},on:{mousemove:function(n){e.setCurrentValue(t,n)},mouseleave:e.resetCurrentValue,click:function(n){e.selectValue(t)}}},[n("i",{staticClass:"el-rate__icon",class:[e.classes[t-1],{hover:e.hoverIndex===t}],style:e.getIconStyle(t)},[e.showDecimalIcon(t)?n("i",{staticClass:"el-rate__decimal",class:e.decimalIconClass,style:e.decimalStyle}):e._e()])])}),e.showText||e.showScore?n("span",{staticClass:"el-rate__text",style:{color:e.textColor}},[e._v(e._s(e.text))]):e._e()],2)};Ds._withStripped=!0;var Ps=n(18),Os=i({name:"ElRate",mixins:[x.a],inject:{elForm:{default:""}},data:function(){return{pointerAtLeftHalf:!0,currentValue:this.value,hoverIndex:-1}},props:{value:{type:Number,default:0},lowThreshold:{type:Number,default:2},highThreshold:{type:Number,default:4},max:{type:Number,default:5},colors:{type:[Array,Object],default:function(){return["#F7BA2A","#F7BA2A","#F7BA2A"]}},voidColor:{type:String,default:"#C6D1DE"},disabledVoidColor:{type:String,default:"#EFF2F7"},iconClasses:{type:[Array,Object],default:function(){return["el-icon-star-on","el-icon-star-on","el-icon-star-on"]}},voidIconClass:{type:String,default:"el-icon-star-off"},disabledVoidIconClass:{type:String,default:"el-icon-star-on"},disabled:{type:Boolean,default:!1},allowHalf:{type:Boolean,default:!1},showText:{type:Boolean,default:!1},showScore:{type:Boolean,default:!1},textColor:{type:String,default:"#1f2d3d"},texts:{type:Array,default:function(){return["极差","失望","一般","满意","惊喜"]}},scoreTemplate:{type:String,default:"{value}"}},computed:{text:function(){var e="";return this.showScore?e=this.scoreTemplate.replace(/\{\s*value\s*\}/,this.rateDisabled?this.value:this.currentValue):this.showText&&(e=this.texts[Math.ceil(this.currentValue)-1]),e},decimalStyle:function(){var e="";return this.rateDisabled?e=this.valueDecimal+"%":this.allowHalf&&(e="50%"),{color:this.activeColor,width:e}},valueDecimal:function(){return 100*this.value-100*Math.floor(this.value)},classMap:function(){var e;return Array.isArray(this.iconClasses)?((e={})[this.lowThreshold]=this.iconClasses[0],e[this.highThreshold]={value:this.iconClasses[1],excluded:!0},e[this.max]=this.iconClasses[2],e):this.iconClasses},decimalIconClass:function(){return this.getValueFromMap(this.value,this.classMap)},voidClass:function(){return this.rateDisabled?this.disabledVoidIconClass:this.voidIconClass},activeClass:function(){return this.getValueFromMap(this.currentValue,this.classMap)},colorMap:function(){var e;return Array.isArray(this.colors)?((e={})[this.lowThreshold]=this.colors[0],e[this.highThreshold]={value:this.colors[1],excluded:!0},e[this.max]=this.colors[2],e):this.colors},activeColor:function(){return this.getValueFromMap(this.currentValue,this.colorMap)},classes:function(){var e=[],t=0,n=this.currentValue;for(this.allowHalf&&this.currentValue!==Math.floor(this.currentValue)&&n--;t<n;t++)e.push(this.activeClass);for(;t<this.max;t++)e.push(this.voidClass);return e},rateDisabled:function(){return this.disabled||(this.elForm||{}).disabled}},watch:{value:function(e){this.currentValue=e,this.pointerAtLeftHalf=this.value!==Math.floor(this.value)}},methods:{getMigratingConfig:function(){return{props:{"text-template":"text-template is renamed to score-template."}}},getValueFromMap:function(e,t){var n=Object.keys(t).filter(function(n){var r=t[n];return!!Object(Ps.isObject)(r)&&r.excluded?e<n:e<=n}).sort(function(e,t){return e-t}),r=t[n[0]];return Object(Ps.isObject)(r)?r.value:r||""},showDecimalIcon:function(e){var t=this.rateDisabled&&this.valueDecimal>0&&e-1<this.value&&e>this.value,n=this.allowHalf&&this.pointerAtLeftHalf&&e-.5<=this.currentValue&&e>this.currentValue;return t||n},getIconStyle:function(e){var t=this.rateDisabled?this.disabledVoidColor:this.voidColor;return{color:e<=this.currentValue?this.activeColor:t}},selectValue:function(e){this.rateDisabled||(this.allowHalf&&this.pointerAtLeftHalf?(this.$emit("input",this.currentValue),this.$emit("change",this.currentValue)):(this.$emit("input",e),this.$emit("change",e)))},handleKey:function(e){if(!this.rateDisabled){var t=this.currentValue,n=e.keyCode;38===n||39===n?(this.allowHalf?t+=.5:t+=1,e.stopPropagation(),e.preventDefault()):37!==n&&40!==n||(this.allowHalf?t-=.5:t-=1,e.stopPropagation(),e.preventDefault()),t=(t=t<0?0:t)>this.max?this.max:t,this.$emit("input",t),this.$emit("change",t)}},setCurrentValue:function(e,t){if(!this.rateDisabled){if(this.allowHalf){var n=t.target;Object(pe.hasClass)(n,"el-rate__item")&&(n=n.querySelector(".el-rate__icon")),Object(pe.hasClass)(n,"el-rate__decimal")&&(n=n.parentNode),this.pointerAtLeftHalf=2*t.offsetX<=n.clientWidth,this.currentValue=this.pointerAtLeftHalf?e-.5:e}else this.currentValue=e;this.hoverIndex=e}},resetCurrentValue:function(){this.rateDisabled||(this.allowHalf&&(this.pointerAtLeftHalf=this.value!==Math.floor(this.value)),this.currentValue=this.value,this.hoverIndex=-1)}},created:function(){this.value||this.$emit("input",0)}},Ds,[],!1,null,null,null);Os.options.__file="packages/rate/src/main.vue";var Ls=Os.exports;Ls.install=function(e){e.component(Ls.name,Ls)};var Rs=Ls,Ns=function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"el-steps",class:[!this.simple&&"el-steps--"+this.direction,this.simple&&"el-steps--simple"]},[this._t("default")],2)};Ns._withStripped=!0;var Us=i({name:"ElSteps",mixins:[x.a],props:{space:[Number,String],active:Number,direction:{type:String,default:"horizontal"},alignCenter:Boolean,simple:Boolean,finishStatus:{type:String,default:"finish"},processStatus:{type:String,default:"process"}},data:function(){return{steps:[],stepOffset:0}},methods:{getMigratingConfig:function(){return{props:{center:"center is removed."}}}},watch:{active:function(e,t){this.$emit("change",e,t)},steps:function(e){e.forEach(function(e,t){e.index=t})}}},Ns,[],!1,null,null,null);Us.options.__file="packages/steps/src/steps.vue";var Hs=Us.exports;Hs.install=function(e){e.component(Hs.name,Hs)};var js=Hs,Qs=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-step",class:[!e.isSimple&&"is-"+e.$parent.direction,e.isSimple&&"is-simple",e.isLast&&!e.space&&!e.isCenter&&"is-flex",e.isCenter&&!e.isVertical&&!e.isSimple&&"is-center"],style:e.style},[n("div",{staticClass:"el-step__head",class:"is-"+e.currentStatus},[n("div",{staticClass:"el-step__line",style:e.isLast?"":{marginRight:e.$parent.stepOffset+"px"}},[n("i",{staticClass:"el-step__line-inner",style:e.lineStyle})]),n("div",{staticClass:"el-step__icon",class:"is-"+(e.icon?"icon":"text")},["success"!==e.currentStatus&&"error"!==e.currentStatus?e._t("icon",[e.icon?n("i",{staticClass:"el-step__icon-inner",class:[e.icon]}):e._e(),e.icon||e.isSimple?e._e():n("div",{staticClass:"el-step__icon-inner"},[e._v(e._s(e.index+1))])]):n("i",{staticClass:"el-step__icon-inner is-status",class:["el-icon-"+("success"===e.currentStatus?"check":"close")]})],2)]),n("div",{staticClass:"el-step__main"},[n("div",{ref:"title",staticClass:"el-step__title",class:["is-"+e.currentStatus]},[e._t("title",[e._v(e._s(e.title))])],2),e.isSimple?n("div",{staticClass:"el-step__arrow"}):n("div",{staticClass:"el-step__description",class:["is-"+e.currentStatus]},[e._t("description",[e._v(e._s(e.description))])],2)])])};Qs._withStripped=!0;var zs=i({name:"ElStep",props:{title:String,icon:String,description:String,status:String},data:function(){return{index:-1,lineStyle:{},internalStatus:""}},beforeCreate:function(){this.$parent.steps.push(this)},beforeDestroy:function(){var e=this.$parent.steps,t=e.indexOf(this);t>=0&&e.splice(t,1)},computed:{currentStatus:function(){return this.status||this.internalStatus},prevStatus:function(){var e=this.$parent.steps[this.index-1];return e?e.currentStatus:"wait"},isCenter:function(){return this.$parent.alignCenter},isVertical:function(){return"vertical"===this.$parent.direction},isSimple:function(){return this.$parent.simple},isLast:function(){var e=this.$parent;return e.steps[e.steps.length-1]===this},stepsCount:function(){return this.$parent.steps.length},space:function(){var e=this.isSimple,t=this.$parent.space;return e?"":t},style:function(){var e={},t=this.$parent.steps.length,n="number"==typeof this.space?this.space+"px":this.space?this.space:100/(t-(this.isCenter?0:1))+"%";return e.flexBasis=n,this.isVertical?e:(this.isLast?e.maxWidth=100/this.stepsCount+"%":e.marginRight=-this.$parent.stepOffset+"px",e)}},methods:{updateStatus:function(e){var t=this.$parent.$children[this.index-1];e>this.index?this.internalStatus=this.$parent.finishStatus:e===this.index&&"error"!==this.prevStatus?this.internalStatus=this.$parent.processStatus:this.internalStatus="wait",t&&t.calcProgress(this.internalStatus)},calcProgress:function(e){var t=100,n={};n.transitionDelay=150*this.index+"ms",e===this.$parent.processStatus?(this.currentStatus,t=0):"wait"===e&&(t=0,n.transitionDelay=-150*this.index+"ms"),n.borderWidth=t&&!this.isSimple?"1px":0,"vertical"===this.$parent.direction?n.height=t+"%":n.width=t+"%",this.lineStyle=n}},mounted:function(){var e=this,t=this.$watch("index",function(n){e.$watch("$parent.active",e.updateStatus,{immediate:!0}),e.$watch("$parent.processStatus",function(){var t=e.$parent.active;e.updateStatus(t)},{immediate:!0}),t()})}},Qs,[],!1,null,null,null);zs.options.__file="packages/steps/src/step.vue";var Vs=zs.exports;Vs.install=function(e){e.component(Vs.name,Vs)};var Gs=Vs,$s=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.carouselClasses,on:{mouseenter:function(t){return t.stopPropagation(),e.handleMouseEnter(t)},mouseleave:function(t){return t.stopPropagation(),e.handleMouseLeave(t)}}},[n("div",{staticClass:"el-carousel__container",style:{height:e.height}},[e.arrowDisplay?n("transition",{attrs:{name:"carousel-arrow-left"}},[n("button",{directives:[{name:"show",rawName:"v-show",value:("always"===e.arrow||e.hover)&&(e.loop||e.activeIndex>0),expression:"(arrow === 'always' || hover) && (loop || activeIndex > 0)"}],staticClass:"el-carousel__arrow el-carousel__arrow--left",attrs:{type:"button"},on:{mouseenter:function(t){e.handleButtonEnter("left")},mouseleave:e.handleButtonLeave,click:function(t){t.stopPropagation(),e.throttledArrowClick(e.activeIndex-1)}}},[n("i",{staticClass:"el-icon-arrow-left"})])]):e._e(),e.arrowDisplay?n("transition",{attrs:{name:"carousel-arrow-right"}},[n("button",{directives:[{name:"show",rawName:"v-show",value:("always"===e.arrow||e.hover)&&(e.loop||e.activeIndex<e.items.length-1),expression:"(arrow === 'always' || hover) && (loop || activeIndex < items.length - 1)"}],staticClass:"el-carousel__arrow el-carousel__arrow--right",attrs:{type:"button"},on:{mouseenter:function(t){e.handleButtonEnter("right")},mouseleave:e.handleButtonLeave,click:function(t){t.stopPropagation(),e.throttledArrowClick(e.activeIndex+1)}}},[n("i",{staticClass:"el-icon-arrow-right"})])]):e._e(),e._t("default")],2),"none"!==e.indicatorPosition?n("ul",{class:e.indicatorsClasses},e._l(e.items,function(t,r){return n("li",{key:r,class:["el-carousel__indicator","el-carousel__indicator--"+e.direction,{"is-active":r===e.activeIndex}],on:{mouseenter:function(t){e.throttledIndicatorHover(r)},click:function(t){t.stopPropagation(),e.handleIndicatorClick(r)}}},[n("button",{staticClass:"el-carousel__button"},[e.hasLabel?n("span",[e._v(e._s(t.label))]):e._e()])])}),0):e._e()])};$s._withStripped=!0;var qs=n(25),Ws=n.n(qs),Ks=i({name:"ElCarousel",props:{initialIndex:{type:Number,default:0},height:String,trigger:{type:String,default:"hover"},autoplay:{type:Boolean,default:!0},interval:{type:Number,default:3e3},indicatorPosition:String,indicator:{type:Boolean,default:!0},arrow:{type:String,default:"hover"},type:String,loop:{type:Boolean,default:!0},direction:{type:String,default:"horizontal",validator:function(e){return-1!==["horizontal","vertical"].indexOf(e)}}},data:function(){return{items:[],activeIndex:-1,containerWidth:0,timer:null,hover:!1}},computed:{arrowDisplay:function(){return"never"!==this.arrow&&"vertical"!==this.direction},hasLabel:function(){return this.items.some(function(e){return e.label.toString().length>0})},carouselClasses:function(){var e=["el-carousel","el-carousel--"+this.direction];return"card"===this.type&&e.push("el-carousel--card"),e},indicatorsClasses:function(){var e=["el-carousel__indicators","el-carousel__indicators--"+this.direction];return this.hasLabel&&e.push("el-carousel__indicators--labels"),"outside"!==this.indicatorPosition&&"card"!==this.type||e.push("el-carousel__indicators--outside"),e}},watch:{items:function(e){e.length>0&&this.setActiveItem(this.initialIndex)},activeIndex:function(e,t){this.resetItemPosition(t),t>-1&&this.$emit("change",e,t)},autoplay:function(e){e?this.startTimer():this.pauseTimer()},loop:function(){this.setActiveItem(this.activeIndex)}},methods:{handleMouseEnter:function(){this.hover=!0,this.pauseTimer()},handleMouseLeave:function(){this.hover=!1,this.startTimer()},itemInStage:function(e,t){var n=this.items.length;return t===n-1&&e.inStage&&this.items[0].active||e.inStage&&this.items[t+1]&&this.items[t+1].active?"left":!!(0===t&&e.inStage&&this.items[n-1].active||e.inStage&&this.items[t-1]&&this.items[t-1].active)&&"right"},handleButtonEnter:function(e){var t=this;"vertical"!==this.direction&&this.items.forEach(function(n,r){e===t.itemInStage(n,r)&&(n.hover=!0)})},handleButtonLeave:function(){"vertical"!==this.direction&&this.items.forEach(function(e){e.hover=!1})},updateItems:function(){this.items=this.$children.filter(function(e){return"ElCarouselItem"===e.$options.name})},resetItemPosition:function(e){var t=this;this.items.forEach(function(n,r){n.translateItem(r,t.activeIndex,e)})},playSlides:function(){this.activeIndex<this.items.length-1?this.activeIndex++:this.loop&&(this.activeIndex=0)},pauseTimer:function(){this.timer&&(clearInterval(this.timer),this.timer=null)},startTimer:function(){this.interval<=0||!this.autoplay||this.timer||(this.timer=setInterval(this.playSlides,this.interval))},setActiveItem:function(e){if("string"==typeof e){var t=this.items.filter(function(t){return t.name===e});t.length>0&&(e=this.items.indexOf(t[0]))}if(e=Number(e),isNaN(e)||e!==Math.floor(e))console.warn("[Element Warn][Carousel]index must be an integer.");else{var n=this.items.length,r=this.activeIndex;this.activeIndex=e<0?this.loop?n-1:0:e>=n?this.loop?0:n-1:e,r===this.activeIndex&&this.resetItemPosition(r)}},prev:function(){this.setActiveItem(this.activeIndex-1)},next:function(){this.setActiveItem(this.activeIndex+1)},handleIndicatorClick:function(e){this.activeIndex=e},handleIndicatorHover:function(e){"hover"===this.trigger&&e!==this.activeIndex&&(this.activeIndex=e)}},created:function(){var e=this;this.throttledArrowClick=Ws()(300,!0,function(t){e.setActiveItem(t)}),this.throttledIndicatorHover=Ws()(300,function(t){e.handleIndicatorHover(t)})},mounted:function(){var e=this;this.updateItems(),this.$nextTick(function(){Object(Lt.addResizeListener)(e.$el,e.resetItemPosition),e.initialIndex<e.items.length&&e.initialIndex>=0&&(e.activeIndex=e.initialIndex),e.startTimer()})},beforeDestroy:function(){this.$el&&Object(Lt.removeResizeListener)(this.$el,this.resetItemPosition),this.pauseTimer()}},$s,[],!1,null,null,null);Ks.options.__file="packages/carousel/src/main.vue";var Ys=Ks.exports;Ys.install=function(e){e.component(Ys.name,Ys)};var Xs=Ys,Js={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"}};var Zs={name:"Bar",props:{vertical:Boolean,size:String,move:Number},computed:{bar:function(){return Js[this.vertical?"vertical":"horizontal"]},wrap:function(){return this.$parent.wrap}},render:function(e){var t=this.size,n=this.move,r=this.bar;return e("div",{class:["el-scrollbar__bar","is-"+r.key],on:{mousedown:this.clickTrackHandler}},[e("div",{ref:"thumb",class:"el-scrollbar__thumb",on:{mousedown:this.clickThumbHandler},style:function(e){var t=e.move,n=e.size,r=e.bar,i={},a="translate"+r.axis+"("+t+"%)";return i[r.size]=n,i.transform=a,i.msTransform=a,i.webkitTransform=a,i}({size:t,move:n,bar:r})})])},methods:{clickThumbHandler:function(e){e.ctrlKey||2===e.button||(this.startDrag(e),this[this.bar.axis]=e.currentTarget[this.bar.offset]-(e[this.bar.client]-e.currentTarget.getBoundingClientRect()[this.bar.direction]))},clickTrackHandler:function(e){var t=100*(Math.abs(e.target.getBoundingClientRect()[this.bar.direction]-e[this.bar.client])-this.$refs.thumb[this.bar.offset]/2)/this.$el[this.bar.offset];this.wrap[this.bar.scroll]=t*this.wrap[this.bar.scrollSize]/100},startDrag:function(e){e.stopImmediatePropagation(),this.cursorDown=!0,Object(pe.on)(document,"mousemove",this.mouseMoveDocumentHandler),Object(pe.on)(document,"mouseup",this.mouseUpDocumentHandler),document.onselectstart=function(){return!1}},mouseMoveDocumentHandler:function(e){if(!1!==this.cursorDown){var t=this[this.bar.axis];if(t){var n=100*(-1*(this.$el.getBoundingClientRect()[this.bar.direction]-e[this.bar.client])-(this.$refs.thumb[this.bar.offset]-t))/this.$el[this.bar.offset];this.wrap[this.bar.scroll]=n*this.wrap[this.bar.scrollSize]/100}}},mouseUpDocumentHandler:function(e){this.cursorDown=!1,this[this.bar.axis]=0,Object(pe.off)(document,"mousemove",this.mouseMoveDocumentHandler),document.onselectstart=null}},destroyed:function(){Object(pe.off)(document,"mouseup",this.mouseUpDocumentHandler)}},el={name:"ElScrollbar",components:{Bar:Zs},props:{native:Boolean,wrapStyle:{},wrapClass:{},viewClass:{},viewStyle:{},noresize:Boolean,tag:{type:String,default:"div"}},data:function(){return{sizeWidth:"0",sizeHeight:"0",moveX:0,moveY:0}},computed:{wrap:function(){return this.$refs.wrap}},render:function(e){var t=Pn()(),n=this.wrapStyle;if(t){var r="-"+t+"px",i="margin-bottom: "+r+"; margin-right: "+r+";";Array.isArray(this.wrapStyle)?(n=Object(A.toObject)(this.wrapStyle)).marginRight=n.marginBottom=r:"string"==typeof this.wrapStyle?n+=i:n=i}var a=e(this.tag,{class:["el-scrollbar__view",this.viewClass],style:this.viewStyle,ref:"resize"},this.$slots.default),o=e("div",{ref:"wrap",style:n,on:{scroll:this.handleScroll},class:[this.wrapClass,"el-scrollbar__wrap",t?"":"el-scrollbar__wrap--hidden-default"]},[[a]]);return e("div",{class:"el-scrollbar"},this.native?[e("div",{ref:"wrap",class:[this.wrapClass,"el-scrollbar__wrap"],style:n},[[a]])]:[o,e(Zs,{attrs:{move:this.moveX,size:this.sizeWidth}}),e(Zs,{attrs:{vertical:!0,move:this.moveY,size:this.sizeHeight}})])},methods:{handleScroll:function(){var e=this.wrap;this.moveY=100*e.scrollTop/e.clientHeight,this.moveX=100*e.scrollLeft/e.clientWidth},update:function(){var e,t,n=this.wrap;n&&(e=100*n.clientHeight/n.scrollHeight,t=100*n.clientWidth/n.scrollWidth,this.sizeHeight=e<100?e+"%":"",this.sizeWidth=t<100?t+"%":"")}},mounted:function(){this.native||(this.$nextTick(this.update),!this.noresize&&Object(Lt.addResizeListener)(this.$refs.resize,this.update))},beforeDestroy:function(){this.native||!this.noresize&&Object(Lt.removeResizeListener)(this.$refs.resize,this.update)},install:function(e){e.component(el.name,el)}},tl=el,nl=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"show",rawName:"v-show",value:e.ready,expression:"ready"}],staticClass:"el-carousel__item",class:{"is-active":e.active,"el-carousel__item--card":"card"===e.$parent.type,"is-in-stage":e.inStage,"is-hover":e.hover,"is-animating":e.animating},style:e.itemStyle,on:{click:e.handleItemClick}},["card"===e.$parent.type?n("div",{directives:[{name:"show",rawName:"v-show",value:!e.active,expression:"!active"}],staticClass:"el-carousel__mask"}):e._e(),e._t("default")],2)};nl._withStripped=!0;var rl=i({name:"ElCarouselItem",props:{name:String,label:{type:[String,Number],default:""}},data:function(){return{hover:!1,translate:0,scale:1,active:!1,ready:!1,inStage:!1,animating:!1}},methods:{processIndex:function(e,t,n){return 0===t&&e===n-1?-1:t===n-1&&0===e?n:e<t-1&&t-e>=n/2?n+1:e>t+1&&e-t>=n/2?-2:e},calcCardTranslate:function(e,t){var n=this.$parent.$el.offsetWidth;return this.inStage?n*(1.17*(e-t)+1)/4:e<t?-1.83*n/4:3.83*n/4},calcTranslate:function(e,t,n){return this.$parent.$el[n?"offsetHeight":"offsetWidth"]*(e-t)},translateItem:function(e,t,n){var r=this.$parent.type,i=this.parentDirection,a=this.$parent.items.length;if("card"!==r&&void 0!==n&&(this.animating=e===t||e===n),e!==t&&a>2&&this.$parent.loop&&(e=this.processIndex(e,t,a)),"card"===r)"vertical"===i&&console.warn("[Element Warn][Carousel]vertical direction is not supported in card mode"),this.inStage=Math.round(Math.abs(e-t))<=1,this.active=e===t,this.translate=this.calcCardTranslate(e,t),this.scale=this.active?1:.83;else{this.active=e===t;var o="vertical"===i;this.translate=this.calcTranslate(e,t,o)}this.ready=!0},handleItemClick:function(){var e=this.$parent;if(e&&"card"===e.type){var t=e.items.indexOf(this);e.setActiveItem(t)}}},computed:{parentDirection:function(){return this.$parent.direction},itemStyle:function(){var e={transform:("vertical"===this.parentDirection?"translateY":"translateX")+"("+this.translate+"px) scale("+this.scale+")"};return Object(A.autoprefixer)(e)}},created:function(){this.$parent&&this.$parent.updateItems()},destroyed:function(){this.$parent&&this.$parent.updateItems()}},nl,[],!1,null,null,null);rl.options.__file="packages/carousel/src/item.vue";var il=rl.exports;il.install=function(e){e.component(il.name,il)};var al=il,ol=function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"el-collapse",attrs:{role:"tablist","aria-multiselectable":"true"}},[this._t("default")],2)};ol._withStripped=!0;var sl=i({name:"ElCollapse",componentName:"ElCollapse",props:{accordion:Boolean,value:{type:[Array,String,Number],default:function(){return[]}}},data:function(){return{activeNames:[].concat(this.value)}},provide:function(){return{collapse:this}},watch:{value:function(e){this.activeNames=[].concat(e)}},methods:{setActiveNames:function(e){e=[].concat(e);var t=this.accordion?e[0]:e;this.activeNames=e,this.$emit("input",t),this.$emit("change",t)},handleItemClick:function(e){if(this.accordion)this.setActiveNames(!this.activeNames[0]&&0!==this.activeNames[0]||this.activeNames[0]!==e.name?e.name:"");else{var t=this.activeNames.slice(0),n=t.indexOf(e.name);n>-1?t.splice(n,1):t.push(e.name),this.setActiveNames(t)}}},created:function(){this.$on("item-click",this.handleItemClick)}},ol,[],!1,null,null,null);sl.options.__file="packages/collapse/src/collapse.vue";var ll=sl.exports;ll.install=function(e){e.component(ll.name,ll)};var cl=ll,ul=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-collapse-item",class:{"is-active":e.isActive,"is-disabled":e.disabled}},[n("div",{attrs:{role:"tab","aria-expanded":e.isActive,"aria-controls":"el-collapse-content-"+e.id,"aria-describedby":"el-collapse-content-"+e.id}},[n("div",{staticClass:"el-collapse-item__header",class:{focusing:e.focusing,"is-active":e.isActive},attrs:{role:"button",id:"el-collapse-head-"+e.id,tabindex:e.disabled?void 0:0},on:{click:e.handleHeaderClick,keyup:function(t){return"button"in t||!e._k(t.keyCode,"space",32,t.key,[" ","Spacebar"])||!e._k(t.keyCode,"enter",13,t.key,"Enter")?(t.stopPropagation(),e.handleEnterClick(t)):null},focus:e.handleFocus,blur:function(t){e.focusing=!1}}},[e._t("title",[e._v(e._s(e.title))]),n("i",{staticClass:"el-collapse-item__arrow el-icon-arrow-right",class:{"is-active":e.isActive}})],2)]),n("el-collapse-transition",[n("div",{directives:[{name:"show",rawName:"v-show",value:e.isActive,expression:"isActive"}],staticClass:"el-collapse-item__wrap",attrs:{role:"tabpanel","aria-hidden":!e.isActive,"aria-labelledby":"el-collapse-head-"+e.id,id:"el-collapse-content-"+e.id}},[n("div",{staticClass:"el-collapse-item__content"},[e._t("default")],2)])])],1)};ul._withStripped=!0;var hl=i({name:"ElCollapseItem",componentName:"ElCollapseItem",mixins:[C.a],components:{ElCollapseTransition:ye.a},data:function(){return{contentWrapStyle:{height:"auto",display:"block"},contentHeight:0,focusing:!1,isClick:!1,id:Object(A.generateId)()}},inject:["collapse"],props:{title:String,name:{type:[String,Number],default:function(){return this._uid}},disabled:Boolean},computed:{isActive:function(){return this.collapse.activeNames.indexOf(this.name)>-1}},methods:{handleFocus:function(){var e=this;setTimeout(function(){e.isClick?e.isClick=!1:e.focusing=!0},50)},handleHeaderClick:function(){this.disabled||(this.dispatch("ElCollapse","item-click",this),this.focusing=!1,this.isClick=!0)},handleEnterClick:function(){this.dispatch("ElCollapse","item-click",this)}}},ul,[],!1,null,null,null);hl.options.__file="packages/collapse/src/collapse-item.vue";var dl=hl.exports;dl.install=function(e){e.component(dl.name,dl)};var fl=dl,pl=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:function(){return e.toggleDropDownVisible(!1)},expression:"() => toggleDropDownVisible(false)"}],ref:"reference",class:["el-cascader",e.realSize&&"el-cascader--"+e.realSize,{"is-disabled":e.isDisabled}],on:{mouseenter:function(t){e.inputHover=!0},mouseleave:function(t){e.inputHover=!1},click:function(){return e.toggleDropDownVisible(!e.readonly||void 0)},keydown:e.handleKeyDown}},[n("el-input",{ref:"input",class:{"is-focus":e.dropDownVisible},attrs:{size:e.realSize,placeholder:e.placeholder,readonly:e.readonly,disabled:e.isDisabled,"validate-event":!1},on:{focus:e.handleFocus,blur:e.handleBlur,input:e.handleInput},model:{value:e.multiple?e.presentText:e.inputValue,callback:function(t){e.multiple?e.presentText:e.inputValue=t},expression:"multiple ? presentText : inputValue"}},[n("template",{slot:"suffix"},[e.clearBtnVisible?n("i",{key:"clear",staticClass:"el-input__icon el-icon-circle-close",on:{click:function(t){return t.stopPropagation(),e.handleClear(t)}}}):n("i",{key:"arrow-down",class:["el-input__icon","el-icon-arrow-down",e.dropDownVisible&&"is-reverse"],on:{click:function(t){t.stopPropagation(),e.toggleDropDownVisible()}}})])],2),e.multiple?n("div",{staticClass:"el-cascader__tags"},[e._l(e.presentTags,function(t,r){return n("el-tag",{key:t.key,attrs:{type:"info",size:e.tagSize,hit:t.hitState,closable:t.closable,"disable-transitions":""},on:{close:function(t){e.deleteTag(r)}}},[n("span",[e._v(e._s(t.text))])])}),e.filterable&&!e.isDisabled?n("input",{directives:[{name:"model",rawName:"v-model.trim",value:e.inputValue,expression:"inputValue",modifiers:{trim:!0}}],staticClass:"el-cascader__search-input",attrs:{type:"text",placeholder:e.presentTags.length?"":e.placeholder},domProps:{value:e.inputValue},on:{input:[function(t){t.target.composing||(e.inputValue=t.target.value.trim())},function(t){return e.handleInput(e.inputValue,t)}],click:function(t){t.stopPropagation(),e.toggleDropDownVisible(!0)},keydown:function(t){return"button"in t||!e._k(t.keyCode,"delete",[8,46],t.key,["Backspace","Delete","Del"])?e.handleDelete(t):null},blur:function(t){e.$forceUpdate()}}}):e._e()],2):e._e(),n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":e.handleDropdownLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.dropDownVisible,expression:"dropDownVisible"}],ref:"popper",class:["el-popper","el-cascader__dropdown",e.popperClass]},[n("el-cascader-panel",{directives:[{name:"show",rawName:"v-show",value:!e.filtering,expression:"!filtering"}],ref:"panel",attrs:{options:e.options,props:e.config,border:!1,"render-label":e.$scopedSlots.default},on:{"expand-change":e.handleExpandChange,close:function(t){e.toggleDropDownVisible(!1)}},model:{value:e.checkedValue,callback:function(t){e.checkedValue=t},expression:"checkedValue"}}),e.filterable?n("el-scrollbar",{directives:[{name:"show",rawName:"v-show",value:e.filtering,expression:"filtering"}],ref:"suggestionPanel",staticClass:"el-cascader__suggestion-panel",attrs:{tag:"ul","view-class":"el-cascader__suggestion-list"},nativeOn:{keydown:function(t){return e.handleSuggestionKeyDown(t)}}},[e.suggestions.length?e._l(e.suggestions,function(t,r){return n("li",{key:t.uid,class:["el-cascader__suggestion-item",t.checked&&"is-checked"],attrs:{tabindex:-1},on:{click:function(t){e.handleSuggestionClick(r)}}},[n("span",[e._v(e._s(t.text))]),t.checked?n("i",{staticClass:"el-icon-check"}):e._e()])}):e._t("empty",[n("li",{staticClass:"el-cascader__empty-text"},[e._v(e._s(e.t("el.cascader.noMatch")))])])],2):e._e()],1)])],1)};pl._withStripped=!0;var Al=n(42),gl=n.n(Al),ml=n(34),vl=n.n(ml),yl=vl.a.keys,bl={expandTrigger:{newProp:"expandTrigger",type:String},changeOnSelect:{newProp:"checkStrictly",type:Boolean},hoverThreshold:{newProp:"hoverThreshold",type:Number}},wl={props:{placement:{type:String,default:"bottom-start"},appendToBody:O.a.props.appendToBody,visibleArrow:{type:Boolean,default:!0},arrowOffset:O.a.props.arrowOffset,offset:O.a.props.offset,boundariesPadding:O.a.props.boundariesPadding,popperOptions:O.a.props.popperOptions},methods:O.a.methods,data:O.a.data,beforeDestroy:O.a.beforeDestroy},xl={medium:36,small:32,mini:28},_l=i({name:"ElCascader",directives:{Clickoutside:F.a},mixins:[wl,C.a,p.a,x.a],inject:{elForm:{default:""},elFormItem:{default:""}},components:{ElInput:d.a,ElTag:Ot.a,ElScrollbar:R.a,ElCascaderPanel:gl.a},props:{value:{},options:Array,props:Object,size:String,placeholder:{type:String,default:function(){return Object(Pi.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||null,inputHover:!1,inputValue:null,presentText:null,presentTags:[],checkedNodes:[],filtering:!1,suggestions:[],inputInitialHeight:0,pressDeleteCount:0}},computed:{realSize:function(){var e=(this.elFormItem||{}).elFormItemSize;return this.size||e||(this.$ELEMENT||{}).size},tagSize:function(){return["small","mini"].indexOf(this.realSize)>-1?"mini":"small"},isDisabled:function(){return this.disabled||(this.elForm||{}).disabled},config:function(){var e=this.props||{},t=this.$attrs;return Object.keys(bl).forEach(function(n){var r=bl[n],i=r.newProp,a=r.type,o=t[n]||t[Object(A.kebabCase)(n)];Object(Qe.isDef)(n)&&!Object(Qe.isDef)(e[i])&&(a===Boolean&&""===o&&(o=!0),e[i]=o)}),e},multiple:function(){return this.config.multiple},leafOnly:function(){return!this.config.checkStrictly},readonly:function(){return!this.filterable||this.multiple},clearBtnVisible:function(){return!(!this.clearable||this.isDisabled||this.filtering||!this.inputHover)&&(this.multiple?!!this.checkedNodes.filter(function(e){return!e.isDisabled}).length:!!this.presentText)},panel:function(){return this.$refs.panel}},watch:{disabled:function(){this.computePresentContent()},value:function(e){Object(A.isEqual)(e,this.checkedValue)||(this.checkedValue=e,this.computePresentContent())},checkedValue:function(e){var t=this.value,n=this.dropDownVisible,r=this.config,i=r.checkStrictly,a=r.multiple;Object(A.isEqual)(e,t)&&!Object(Ps.isUndefined)(t)||(this.computePresentContent(),a||i||!n||this.toggleDropDownVisible(!1),this.$emit("input",e),this.$emit("change",e),this.dispatch("ElFormItem","el.form.change",[e]))},options:{handler:function(){this.$nextTick(this.computePresentContent)},deep:!0},presentText:function(e){this.inputValue=e},presentTags:function(e,t){this.multiple&&(e.length||t.length)&&this.$nextTick(this.updateStyle)},filtering:function(e){this.$nextTick(this.updatePopper)}},mounted:function(){var e=this,t=this.$refs.input;t&&t.$el&&(this.inputInitialHeight=t.$el.offsetHeight||xl[this.realSize]||40),Object(A.isEmpty)(this.value)||this.computePresentContent(),this.filterHandler=I()(this.debounce,function(){var t=e.inputValue;if(t){var n=e.beforeFilter(t);n&&n.then?n.then(e.getSuggestions):!1!==n?e.getSuggestions():e.filtering=!1}else e.filtering=!1}),Object(Lt.addResizeListener)(this.$el,this.updateStyle)},beforeDestroy:function(){Object(Lt.removeResizeListener)(this.$el,this.updateStyle)},methods:{getMigratingConfig:function(){return{props:{"expand-trigger":"expand-trigger is removed, use `props.expandTrigger` instead.","change-on-select":"change-on-select is removed, use `props.checkStrictly` instead.","hover-threshold":"hover-threshold is removed, use `props.hoverThreshold` instead"},events:{"active-item-change":"active-item-change is renamed to expand-change"}}},toggleDropDownVisible:function(e){var t=this;if(!this.isDisabled){var n=this.dropDownVisible,r=this.$refs.input;(e=Object(Qe.isDef)(e)?e:!n)!==n&&(this.dropDownVisible=e,e&&this.$nextTick(function(){t.updatePopper(),t.panel.scrollIntoView()}),r.$refs.input.setAttribute("aria-expanded",e),this.$emit("visible-change",e))}},handleDropdownLeave:function(){this.filtering=!1,this.inputValue=this.presentText},handleKeyDown:function(e){switch(e.keyCode){case yl.enter:this.toggleDropDownVisible();break;case yl.down:this.toggleDropDownVisible(!0),this.focusFirstNode(),e.preventDefault();break;case yl.esc:case yl.tab:this.toggleDropDownVisible(!1)}},handleFocus:function(e){this.$emit("focus",e)},handleBlur:function(e){this.$emit("blur",e)},handleInput:function(e,t){!this.dropDownVisible&&this.toggleDropDownVisible(!0),t&&t.isComposing||(e?this.filterHandler():this.filtering=!1)},handleClear:function(){this.presentText="",this.panel.clearCheckedNodes()},handleExpandChange:function(e){this.$nextTick(this.updatePopper.bind(this)),this.$emit("expand-change",e),this.$emit("active-item-change",e)},focusFirstNode:function(){var e=this;this.$nextTick(function(){var t=e.filtering,n=e.$refs,r=n.popper,i=n.suggestionPanel,a=null;t&&i?a=i.$el.querySelector(".el-cascader__suggestion-item"):a=r.querySelector(".el-cascader-menu").querySelector('.el-cascader-node[tabindex="-1"]');a&&(a.focus(),!t&&a.click())})},computePresentContent:function(){var e=this;this.$nextTick(function(){e.config.multiple?(e.computePresentTags(),e.presentText=e.presentTags.length?" ":null):e.computePresentText()})},computePresentText:function(){var e=this.checkedValue,t=this.config;if(!Object(A.isEmpty)(e)){var n=this.panel.getNodeByValue(e);if(n&&(t.checkStrictly||n.isLeaf))return void(this.presentText=n.getText(this.showAllLevels,this.separator))}this.presentText=null},computePresentTags:function(){var e=this.isDisabled,t=this.leafOnly,n=this.showAllLevels,r=this.separator,i=this.collapseTags,a=this.getCheckedNodes(t),o=[],s=function(t){return{node:t,key:t.uid,text:t.getText(n,r),hitState:!1,closable:!e&&!t.isDisabled}};if(a.length){var l=a[0],c=a.slice(1),u=c.length;o.push(s(l)),u&&(i?o.push({key:-1,text:"+ "+u,closable:!1}):c.forEach(function(e){return o.push(s(e))}))}this.checkedNodes=a,this.presentTags=o},getSuggestions:function(){var e=this,t=this.filterMethod;Object(Ps.isFunction)(t)||(t=function(e,t){return e.text.includes(t)});var n=this.panel.getFlattedNodes(this.leafOnly).filter(function(n){return!n.isDisabled&&(n.text=n.getText(e.showAllLevels,e.separator)||"",t(n,e.inputValue))});this.multiple?this.presentTags.forEach(function(e){e.hitState=!1}):n.forEach(function(t){t.checked=Object(A.isEqual)(e.checkedValue,t.getValueByOption())}),this.filtering=!0,this.suggestions=n,this.$nextTick(this.updatePopper)},handleSuggestionKeyDown:function(e){var t=e.keyCode,n=e.target;switch(t){case yl.enter:n.click();break;case yl.up:var r=n.previousElementSibling;r&&r.focus();break;case yl.down:var i=n.nextElementSibling;i&&i.focus();break;case yl.esc:case yl.tab:this.toggleDropDownVisible(!1)}},handleDelete:function(){var e=this.inputValue,t=this.pressDeleteCount,n=this.presentTags,r=n.length-1,i=n[r];this.pressDeleteCount=e?0:t+1,i&&this.pressDeleteCount&&(i.hitState?this.deleteTag(r):i.hitState=!0)},handleSuggestionClick:function(e){var t=this.multiple,n=this.suggestions[e];if(t){var r=n.checked;n.doCheck(!r),this.panel.calculateMultiCheckedValue()}else this.checkedValue=n.getValueByOption(),this.toggleDropDownVisible(!1)},deleteTag:function(e){var t=this.checkedValue,n=t[e];this.checkedValue=t.filter(function(t,n){return n!==e}),this.$emit("remove-tag",n)},updateStyle:function(){var e=this.$el,t=this.inputInitialHeight;if(!this.$isServer&&e){var n=this.$refs.suggestionPanel,r=e.querySelector(".el-input__inner");if(r){var i=e.querySelector(".el-cascader__tags"),a=null;if(n&&(a=n.$el))a.querySelector(".el-cascader__suggestion-list").style.minWidth=r.offsetWidth+"px";if(i){var o=i.offsetHeight,s=Math.max(o+6,t)+"px";r.style.height=s,this.updatePopper()}}}},getCheckedNodes:function(e){return this.panel.getCheckedNodes(e)}}},pl,[],!1,null,null,null);_l.options.__file="packages/cascader/src/cascader.vue";var Cl=_l.exports;Cl.install=function(e){e.component(Cl.name,Cl)};var Sl=Cl,kl=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.hide,expression:"hide"}],class:["el-color-picker",e.colorDisabled?"is-disabled":"",e.colorSize?"el-color-picker--"+e.colorSize:""]},[e.colorDisabled?n("div",{staticClass:"el-color-picker__mask"}):e._e(),n("div",{staticClass:"el-color-picker__trigger",on:{click:e.handleTrigger}},[n("span",{staticClass:"el-color-picker__color",class:{"is-alpha":e.showAlpha}},[n("span",{staticClass:"el-color-picker__color-inner",style:{backgroundColor:e.displayedColor}}),e.value||e.showPanelColor?e._e():n("span",{staticClass:"el-color-picker__empty el-icon-close"})]),n("span",{directives:[{name:"show",rawName:"v-show",value:e.value||e.showPanelColor,expression:"value || showPanelColor"}],staticClass:"el-color-picker__icon el-icon-arrow-down"})]),n("picker-dropdown",{ref:"dropdown",class:["el-color-picker__panel",e.popperClass||""],attrs:{color:e.color,"show-alpha":e.showAlpha,predefine:e.predefine},on:{pick:e.confirmValue,clear:e.clearValue},model:{value:e.showPicker,callback:function(t){e.showPicker=t},expression:"showPicker"}})],1)};kl._withStripped=!0;var Bl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};var El=function(e,t,n){return[e,t*n/((e=(2-t)*n)<1?e:2-e)||0,e/2]},Tl=function(e,t){var n;"string"==typeof(n=e)&&-1!==n.indexOf(".")&&1===parseFloat(n)&&(e="100%");var r=function(e){return"string"==typeof e&&-1!==e.indexOf("%")}(e);return e=Math.min(t,Math.max(0,parseFloat(e))),r&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)},Il={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"},Ml={A:10,B:11,C:12,D:13,E:14,F:15},Fl=function(e){return 2===e.length?16*(Ml[e[0].toUpperCase()]||+e[0])+(Ml[e[1].toUpperCase()]||+e[1]):Ml[e[1].toUpperCase()]||+e[1]},Dl=function(e,t,n){e=Tl(e,255),t=Tl(t,255),n=Tl(n,255);var r,i=Math.max(e,t,n),a=Math.min(e,t,n),o=void 0,s=i,l=i-a;if(r=0===i?0:l/i,i===a)o=0;else{switch(i){case e:o=(t-n)/l+(t<n?6:0);break;case t:o=(n-e)/l+2;break;case n:o=(e-t)/l+4}o/=6}return{h:360*o,s:100*r,v:100*s}},Pl=function(e,t,n){e=6*Tl(e,360),t=Tl(t,100),n=Tl(n,100);var r=Math.floor(e),i=e-r,a=n*(1-t),o=n*(1-i*t),s=n*(1-(1-i)*t),l=r%6,c=[n,o,a,a,s,n][l],u=[s,n,n,o,a,a][l],h=[a,a,s,n,n,o][l];return{r:Math.round(255*c),g:Math.round(255*u),b:Math.round(255*h)}},Ol=function(){function e(t){for(var n in function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._hue=0,this._saturation=100,this._value=100,this._alpha=100,this.enableAlpha=!1,this.format="hex",this.value="",t=t||{})t.hasOwnProperty(n)&&(this[n]=t[n]);this.doOnChange()}return e.prototype.set=function(e,t){if(1!==arguments.length||"object"!==(void 0===e?"undefined":Bl(e)))this["_"+e]=t,this.doOnChange();else for(var n in e)e.hasOwnProperty(n)&&this.set(n,e[n])},e.prototype.get=function(e){return this["_"+e]},e.prototype.toRgb=function(){return Pl(this._hue,this._saturation,this._value)},e.prototype.fromString=function(e){var t=this;if(!e)return this._hue=0,this._saturation=100,this._value=100,void this.doOnChange();var n=function(e,n,r){t._hue=Math.max(0,Math.min(360,e)),t._saturation=Math.max(0,Math.min(100,n)),t._value=Math.max(0,Math.min(100,r)),t.doOnChange()};if(-1!==e.indexOf("hsl")){var r=e.replace(/hsla|hsl|\(|\)/gm,"").split(/\s|,/g).filter(function(e){return""!==e}).map(function(e,t){return t>2?parseFloat(e):parseInt(e,10)});if(4===r.length?this._alpha=Math.floor(100*parseFloat(r[3])):3===r.length&&(this._alpha=100),r.length>=3){var i=function(e,t,n){n/=100;var r=t/=100,i=Math.max(n,.01);return t*=(n*=2)<=1?n:2-n,r*=i<=1?i:2-i,{h:e,s:100*(0===n?2*r/(i+r):2*t/(n+t)),v:(n+t)/2*100}}(r[0],r[1],r[2]);n(i.h,i.s,i.v)}}else if(-1!==e.indexOf("hsv")){var a=e.replace(/hsva|hsv|\(|\)/gm,"").split(/\s|,/g).filter(function(e){return""!==e}).map(function(e,t){return t>2?parseFloat(e):parseInt(e,10)});4===a.length?this._alpha=Math.floor(100*parseFloat(a[3])):3===a.length&&(this._alpha=100),a.length>=3&&n(a[0],a[1],a[2])}else if(-1!==e.indexOf("rgb")){var o=e.replace(/rgba|rgb|\(|\)/gm,"").split(/\s|,/g).filter(function(e){return""!==e}).map(function(e,t){return t>2?parseFloat(e):parseInt(e,10)});if(4===o.length?this._alpha=Math.floor(100*parseFloat(o[3])):3===o.length&&(this._alpha=100),o.length>=3){var s=Dl(o[0],o[1],o[2]);n(s.h,s.s,s.v)}}else if(-1!==e.indexOf("#")){var l=e.replace("#","").trim();if(!/^(?:[0-9a-fA-F]{3}){1,2}|[0-9a-fA-F]{8}$/.test(l))return;var c=void 0,u=void 0,h=void 0;3===l.length?(c=Fl(l[0]+l[0]),u=Fl(l[1]+l[1]),h=Fl(l[2]+l[2])):6!==l.length&&8!==l.length||(c=Fl(l.substring(0,2)),u=Fl(l.substring(2,4)),h=Fl(l.substring(4,6))),8===l.length?this._alpha=Math.floor(Fl(l.substring(6))/255*100):3!==l.length&&6!==l.length||(this._alpha=100);var d=Dl(c,u,h);n(d.h,d.s,d.v)}},e.prototype.compare=function(e){return Math.abs(e._hue-this._hue)<2&&Math.abs(e._saturation-this._saturation)<1&&Math.abs(e._value-this._value)<1&&Math.abs(e._alpha-this._alpha)<1},e.prototype.doOnChange=function(){var e=this._hue,t=this._saturation,n=this._value,r=this._alpha,i=this.format;if(this.enableAlpha)switch(i){case"hsl":var a=El(e,t/100,n/100);this.value="hsla("+e+", "+Math.round(100*a[1])+"%, "+Math.round(100*a[2])+"%, "+r/100+")";break;case"hsv":this.value="hsva("+e+", "+Math.round(t)+"%, "+Math.round(n)+"%, "+r/100+")";break;default:var o=Pl(e,t,n),s=o.r,l=o.g,c=o.b;this.value="rgba("+s+", "+l+", "+c+", "+r/100+")"}else switch(i){case"hsl":var u=El(e,t/100,n/100);this.value="hsl("+e+", "+Math.round(100*u[1])+"%, "+Math.round(100*u[2])+"%)";break;case"hsv":this.value="hsv("+e+", "+Math.round(t)+"%, "+Math.round(n)+"%)";break;case"rgb":var h=Pl(e,t,n),d=h.r,f=h.g,p=h.b;this.value="rgb("+d+", "+f+", "+p+")";break;default:this.value=function(e){var t=e.r,n=e.g,r=e.b,i=function(e){e=Math.min(Math.round(e),255);var t=Math.floor(e/16),n=e%16;return""+(Il[t]||t)+(Il[n]||n)};return isNaN(t)||isNaN(n)||isNaN(r)?"":"#"+i(t)+i(n)+i(r)}(Pl(e,t,n))}},e}(),Ll=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":e.doDestroy}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.showPopper,expression:"showPopper"}],staticClass:"el-color-dropdown"},[n("div",{staticClass:"el-color-dropdown__main-wrapper"},[n("hue-slider",{ref:"hue",staticStyle:{float:"right"},attrs:{color:e.color,vertical:""}}),n("sv-panel",{ref:"sl",attrs:{color:e.color}})],1),e.showAlpha?n("alpha-slider",{ref:"alpha",attrs:{color:e.color}}):e._e(),e.predefine?n("predefine",{attrs:{color:e.color,colors:e.predefine}}):e._e(),n("div",{staticClass:"el-color-dropdown__btns"},[n("span",{staticClass:"el-color-dropdown__value"},[n("el-input",{attrs:{"validate-event":!1,size:"mini"},on:{blur:e.handleConfirm},nativeOn:{keyup:function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?e.handleConfirm(t):null}},model:{value:e.customInput,callback:function(t){e.customInput=t},expression:"customInput"}})],1),n("el-button",{staticClass:"el-color-dropdown__link-btn",attrs:{size:"mini",type:"text"},on:{click:function(t){e.$emit("clear")}}},[e._v("\n "+e._s(e.t("el.colorpicker.clear"))+"\n ")]),n("el-button",{staticClass:"el-color-dropdown__btn",attrs:{plain:"",size:"mini"},on:{click:e.confirmValue}},[e._v("\n "+e._s(e.t("el.colorpicker.confirm"))+"\n ")])],1)],1)])};Ll._withStripped=!0;var Rl=function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"el-color-svpanel",style:{backgroundColor:this.background}},[t("div",{staticClass:"el-color-svpanel__white"}),t("div",{staticClass:"el-color-svpanel__black"}),t("div",{staticClass:"el-color-svpanel__cursor",style:{top:this.cursorTop+"px",left:this.cursorLeft+"px"}},[t("div")])])};Rl._withStripped=!0;var Nl=!1,Ul=function(e,t){if(!hn.a.prototype.$isServer){var n=function(e){t.drag&&t.drag(e)},r=function e(r){document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",e),document.onselectstart=null,document.ondragstart=null,Nl=!1,t.end&&t.end(r)};e.addEventListener("mousedown",function(e){Nl||(document.onselectstart=function(){return!1},document.ondragstart=function(){return!1},document.addEventListener("mousemove",n),document.addEventListener("mouseup",r),Nl=!0,t.start&&t.start(e))})}},Hl=i({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 e=this.color.get("saturation"),t=this.color.get("value"),n=this.$el,r=n.clientWidth,i=n.clientHeight;this.cursorLeft=e*r/100,this.cursorTop=(100-t)*i/100,this.background="hsl("+this.color.get("hue")+", 100%, 50%)"},handleDrag:function(e){var t=this.$el.getBoundingClientRect(),n=e.clientX-t.left,r=e.clientY-t.top;n=Math.max(0,n),n=Math.min(n,t.width),r=Math.max(0,r),r=Math.min(r,t.height),this.cursorLeft=n,this.cursorTop=r,this.color.set({saturation:n/t.width*100,value:100-r/t.height*100})}},mounted:function(){var e=this;Ul(this.$el,{drag:function(t){e.handleDrag(t)},end:function(t){e.handleDrag(t)}}),this.update()},data:function(){return{cursorTop:0,cursorLeft:0,background:"hsl(0, 100%, 50%)"}}},Rl,[],!1,null,null,null);Hl.options.__file="packages/color-picker/src/components/sv-panel.vue";var jl=Hl.exports,Ql=function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"el-color-hue-slider",class:{"is-vertical":this.vertical}},[t("div",{ref:"bar",staticClass:"el-color-hue-slider__bar",on:{click:this.handleClick}}),t("div",{ref:"thumb",staticClass:"el-color-hue-slider__thumb",style:{left:this.thumbLeft+"px",top:this.thumbTop+"px"}})])};Ql._withStripped=!0;var zl=i({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(e){var t=this.$refs.thumb;e.target!==t&&this.handleDrag(e)},handleDrag:function(e){var t=this.$el.getBoundingClientRect(),n=this.$refs.thumb,r=void 0;if(this.vertical){var i=e.clientY-t.top;i=Math.min(i,t.height-n.offsetHeight/2),i=Math.max(n.offsetHeight/2,i),r=Math.round((i-n.offsetHeight/2)/(t.height-n.offsetHeight)*360)}else{var a=e.clientX-t.left;a=Math.min(a,t.width-n.offsetWidth/2),a=Math.max(n.offsetWidth/2,a),r=Math.round((a-n.offsetWidth/2)/(t.width-n.offsetWidth)*360)}this.color.set("hue",r)},getThumbLeft:function(){if(this.vertical)return 0;var e=this.$el,t=this.color.get("hue");if(!e)return 0;var n=this.$refs.thumb;return Math.round(t*(e.offsetWidth-n.offsetWidth/2)/360)},getThumbTop:function(){if(!this.vertical)return 0;var e=this.$el,t=this.color.get("hue");if(!e)return 0;var n=this.$refs.thumb;return Math.round(t*(e.offsetHeight-n.offsetHeight/2)/360)},update:function(){this.thumbLeft=this.getThumbLeft(),this.thumbTop=this.getThumbTop()}},mounted:function(){var e=this,t=this.$refs,n=t.bar,r=t.thumb,i={drag:function(t){e.handleDrag(t)},end:function(t){e.handleDrag(t)}};Ul(n,i),Ul(r,i),this.update()}},Ql,[],!1,null,null,null);zl.options.__file="packages/color-picker/src/components/hue-slider.vue";var Vl=zl.exports,Gl=function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"el-color-alpha-slider",class:{"is-vertical":this.vertical}},[t("div",{ref:"bar",staticClass:"el-color-alpha-slider__bar",style:{background:this.background},on:{click:this.handleClick}}),t("div",{ref:"thumb",staticClass:"el-color-alpha-slider__thumb",style:{left:this.thumbLeft+"px",top:this.thumbTop+"px"}})])};Gl._withStripped=!0;var $l=i({name:"el-color-alpha-slider",props:{color:{required:!0},vertical:Boolean},watch:{"color._alpha":function(){this.update()},"color.value":function(){this.update()}},methods:{handleClick:function(e){var t=this.$refs.thumb;e.target!==t&&this.handleDrag(e)},handleDrag:function(e){var t=this.$el.getBoundingClientRect(),n=this.$refs.thumb;if(this.vertical){var r=e.clientY-t.top;r=Math.max(n.offsetHeight/2,r),r=Math.min(r,t.height-n.offsetHeight/2),this.color.set("alpha",Math.round((r-n.offsetHeight/2)/(t.height-n.offsetHeight)*100))}else{var i=e.clientX-t.left;i=Math.max(n.offsetWidth/2,i),i=Math.min(i,t.width-n.offsetWidth/2),this.color.set("alpha",Math.round((i-n.offsetWidth/2)/(t.width-n.offsetWidth)*100))}},getThumbLeft:function(){if(this.vertical)return 0;var e=this.$el,t=this.color._alpha;if(!e)return 0;var n=this.$refs.thumb;return Math.round(t*(e.offsetWidth-n.offsetWidth/2)/100)},getThumbTop:function(){if(!this.vertical)return 0;var e=this.$el,t=this.color._alpha;if(!e)return 0;var n=this.$refs.thumb;return Math.round(t*(e.offsetHeight-n.offsetHeight/2)/100)},getBackground:function(){if(this.color&&this.color.value){var e=this.color.toRgb(),t=e.r,n=e.g,r=e.b;return"linear-gradient(to right, rgba("+t+", "+n+", "+r+", 0) 0%, rgba("+t+", "+n+", "+r+", 1) 100%)"}return null},update:function(){this.thumbLeft=this.getThumbLeft(),this.thumbTop=this.getThumbTop(),this.background=this.getBackground()}},data:function(){return{thumbLeft:0,thumbTop:0,background:null}},mounted:function(){var e=this,t=this.$refs,n=t.bar,r=t.thumb,i={drag:function(t){e.handleDrag(t)},end:function(t){e.handleDrag(t)}};Ul(n,i),Ul(r,i),this.update()}},Gl,[],!1,null,null,null);$l.options.__file="packages/color-picker/src/components/alpha-slider.vue";var ql=$l.exports,Wl=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-color-predefine"},[n("div",{staticClass:"el-color-predefine__colors"},e._l(e.rgbaColors,function(t,r){return n("div",{key:e.colors[r],staticClass:"el-color-predefine__color-selector",class:{selected:t.selected,"is-alpha":t._alpha<100},on:{click:function(t){e.handleSelect(r)}}},[n("div",{style:{"background-color":t.value}})])}),0)])};Wl._withStripped=!0;var Kl=i({props:{colors:{type:Array,required:!0},color:{required:!0}},data:function(){return{rgbaColors:this.parseColors(this.colors,this.color)}},methods:{handleSelect:function(e){this.color.fromString(this.colors[e])},parseColors:function(e,t){return e.map(function(e){var n=new Ol;return n.enableAlpha=!0,n.format="rgba",n.fromString(e),n.selected=n.value===t.value,n})}},watch:{"$parent.currentColor":function(e){var t=new Ol;t.fromString(e),this.rgbaColors.forEach(function(e){e.selected=t.compare(e)})},colors:function(e){this.rgbaColors=this.parseColors(e,this.color)},color:function(e){this.rgbaColors=this.parseColors(this.colors,e)}}},Wl,[],!1,null,null,null);Kl.options.__file="packages/color-picker/src/components/predefine.vue";var Yl=Kl.exports,Xl=i({name:"el-color-picker-dropdown",mixins:[O.a,p.a],components:{SvPanel:jl,HueSlider:Vl,AlphaSlider:ql,ElInput:d.a,ElButton:$.a,Predefine:Yl},props:{color:{required:!0},showAlpha:Boolean,predefine:Array},data:function(){return{customInput:""}},computed:{currentColor:function(){var e=this.$parent;return e.value||e.showPanelColor?e.color.value:""}},methods:{confirmValue:function(){this.$emit("pick")},handleConfirm:function(){this.color.fromString(this.customInput)}},mounted:function(){this.$parent.popperElm=this.popperElm=this.$el,this.referenceElm=this.$parent.$el},watch:{showPopper:function(e){var t=this;!0===e&&this.$nextTick(function(){var e=t.$refs,n=e.sl,r=e.hue,i=e.alpha;n&&n.update(),r&&r.update(),i&&i.update()})},currentColor:{immediate:!0,handler:function(e){this.customInput=e}}}},Ll,[],!1,null,null,null);Xl.options.__file="packages/color-picker/src/components/picker-dropdown.vue";var Jl=Xl.exports,Zl=i({name:"ElColorPicker",mixins:[C.a],props:{value:String,showAlpha:Boolean,colorFormat:String,disabled:Boolean,size:String,popperClass:String,predefine:Array},inject:{elForm:{default:""},elFormItem:{default:""}},directives:{Clickoutside:F.a},computed:{displayedColor:function(){return this.value||this.showPanelColor?this.displayedRgb(this.color,this.showAlpha):"transparent"},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},colorSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},colorDisabled:function(){return this.disabled||(this.elForm||{}).disabled}},watch:{value:function(e){e?e&&e!==this.color.value&&this.color.fromString(e):this.showPanelColor=!1},color:{deep:!0,handler:function(){this.showPanelColor=!0}},displayedColor:function(e){if(this.showPicker){var t=new Ol({enableAlpha:this.showAlpha,format:this.colorFormat});t.fromString(this.value),e!==this.displayedRgb(t,this.showAlpha)&&this.$emit("active-change",e)}}},methods:{handleTrigger:function(){this.colorDisabled||(this.showPicker=!this.showPicker)},confirmValue:function(){var e=this.color.value;this.$emit("input",e),this.$emit("change",e),this.dispatch("ElFormItem","el.form.change",e),this.showPicker=!1},clearValue:function(){this.$emit("input",null),this.$emit("change",null),null!==this.value&&this.dispatch("ElFormItem","el.form.change",null),this.showPanelColor=!1,this.showPicker=!1,this.resetColor()},hide:function(){this.showPicker=!1,this.resetColor()},resetColor:function(){var e=this;this.$nextTick(function(t){e.value?e.color.fromString(e.value):e.showPanelColor=!1})},displayedRgb:function(e,t){if(!(e instanceof Ol))throw Error("color should be instance of Color Class");var n=e.toRgb(),r=n.r,i=n.g,a=n.b;return t?"rgba("+r+", "+i+", "+a+", "+e.get("alpha")/100+")":"rgb("+r+", "+i+", "+a+")"}},mounted:function(){var e=this.value;e&&this.color.fromString(e),this.popperElm=this.$refs.dropdown.$el},data:function(){return{color:new Ol({enableAlpha:this.showAlpha,format:this.colorFormat}),showPicker:!1,showPanelColor:!1}},components:{PickerDropdown:Jl}},kl,[],!1,null,null,null);Zl.options.__file="packages/color-picker/src/main.vue";var ec=Zl.exports;ec.install=function(e){e.component(ec.name,ec)};var tc=ec,nc=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-transfer"},[n("transfer-panel",e._b({ref:"leftPanel",attrs:{data:e.sourceData,title:e.titles[0]||e.t("el.transfer.titles.0"),"default-checked":e.leftDefaultChecked,placeholder:e.filterPlaceholder||e.t("el.transfer.filterPlaceholder")},on:{"checked-change":e.onSourceCheckedChange}},"transfer-panel",e.$props,!1),[e._t("left-footer")],2),n("div",{staticClass:"el-transfer__buttons"},[n("el-button",{class:["el-transfer__button",e.hasButtonTexts?"is-with-texts":""],attrs:{type:"primary",disabled:0===e.rightChecked.length},nativeOn:{click:function(t){return e.addToLeft(t)}}},[n("i",{staticClass:"el-icon-arrow-left"}),void 0!==e.buttonTexts[0]?n("span",[e._v(e._s(e.buttonTexts[0]))]):e._e()]),n("el-button",{class:["el-transfer__button",e.hasButtonTexts?"is-with-texts":""],attrs:{type:"primary",disabled:0===e.leftChecked.length},nativeOn:{click:function(t){return e.addToRight(t)}}},[void 0!==e.buttonTexts[1]?n("span",[e._v(e._s(e.buttonTexts[1]))]):e._e(),n("i",{staticClass:"el-icon-arrow-right"})])],1),n("transfer-panel",e._b({ref:"rightPanel",attrs:{data:e.targetData,title:e.titles[1]||e.t("el.transfer.titles.1"),"default-checked":e.rightDefaultChecked,placeholder:e.filterPlaceholder||e.t("el.transfer.filterPlaceholder")},on:{"checked-change":e.onTargetCheckedChange}},"transfer-panel",e.$props,!1),[e._t("right-footer")],2)],1)};nc._withStripped=!0;var rc=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-transfer-panel"},[n("p",{staticClass:"el-transfer-panel__header"},[n("el-checkbox",{attrs:{indeterminate:e.isIndeterminate},on:{change:e.handleAllCheckedChange},model:{value:e.allChecked,callback:function(t){e.allChecked=t},expression:"allChecked"}},[e._v("\n "+e._s(e.title)+"\n "),n("span",[e._v(e._s(e.checkedSummary))])])],1),n("div",{class:["el-transfer-panel__body",e.hasFooter?"is-with-footer":""]},[e.filterable?n("el-input",{staticClass:"el-transfer-panel__filter",attrs:{size:"small",placeholder:e.placeholder},nativeOn:{mouseenter:function(t){e.inputHover=!0},mouseleave:function(t){e.inputHover=!1}},model:{value:e.query,callback:function(t){e.query=t},expression:"query"}},[n("i",{class:["el-input__icon","el-icon-"+e.inputIcon],attrs:{slot:"prefix"},on:{click:e.clearQuery},slot:"prefix"})]):e._e(),n("el-checkbox-group",{directives:[{name:"show",rawName:"v-show",value:!e.hasNoMatch&&e.data.length>0,expression:"!hasNoMatch && data.length > 0"}],staticClass:"el-transfer-panel__list",class:{"is-filterable":e.filterable},model:{value:e.checked,callback:function(t){e.checked=t},expression:"checked"}},e._l(e.filteredData,function(t){return n("el-checkbox",{key:t[e.keyProp],staticClass:"el-transfer-panel__item",attrs:{label:t[e.keyProp],disabled:t[e.disabledProp]}},[n("option-content",{attrs:{option:t}})],1)}),1),n("p",{directives:[{name:"show",rawName:"v-show",value:e.hasNoMatch,expression:"hasNoMatch"}],staticClass:"el-transfer-panel__empty"},[e._v(e._s(e.t("el.transfer.noMatch")))]),n("p",{directives:[{name:"show",rawName:"v-show",value:0===e.data.length&&!e.hasNoMatch,expression:"data.length === 0 && !hasNoMatch"}],staticClass:"el-transfer-panel__empty"},[e._v(e._s(e.t("el.transfer.noData")))])],1),e.hasFooter?n("p",{staticClass:"el-transfer-panel__footer"},[e._t("default")],2):e._e()])};rc._withStripped=!0;var ic=i({mixins:[p.a],name:"ElTransferPanel",componentName:"ElTransferPanel",components:{ElCheckboxGroup:Gn.a,ElCheckbox:rn.a,ElInput:d.a,OptionContent:{props:{option:Object},render:function(e){var t=function e(t){return"ElTransferPanel"===t.$options.componentName?t:t.$parent?e(t.$parent):t}(this),n=t.$parent||t;return t.renderContent?t.renderContent(e,this.option):n.$scopedSlots.default?n.$scopedSlots.default({option:this.option}):e("span",[this.option[t.labelProp]||this.option[t.keyProp]])}}},props:{data:{type:Array,default:function(){return[]}},renderContent:Function,placeholder:String,title:String,filterable:Boolean,format:Object,filterMethod:Function,defaultChecked:Array,props:Object},data:function(){return{checked:[],allChecked:!1,query:"",inputHover:!1,checkChangeByUser:!0}},watch:{checked:function(e,t){if(this.updateAllChecked(),this.checkChangeByUser){var n=e.concat(t).filter(function(n){return-1===e.indexOf(n)||-1===t.indexOf(n)});this.$emit("checked-change",e,n)}else this.$emit("checked-change",e),this.checkChangeByUser=!0},data:function(){var e=this,t=[],n=this.filteredData.map(function(t){return t[e.keyProp]});this.checked.forEach(function(e){n.indexOf(e)>-1&&t.push(e)}),this.checkChangeByUser=!1,this.checked=t},checkableData:function(){this.updateAllChecked()},defaultChecked:{immediate:!0,handler:function(e,t){var n=this;if(!t||e.length!==t.length||!e.every(function(e){return t.indexOf(e)>-1})){var r=[],i=this.checkableData.map(function(e){return e[n.keyProp]});e.forEach(function(e){i.indexOf(e)>-1&&r.push(e)}),this.checkChangeByUser=!1,this.checked=r}}}},computed:{filteredData:function(){var e=this;return this.data.filter(function(t){return"function"==typeof e.filterMethod?e.filterMethod(e.query,t):(t[e.labelProp]||t[e.keyProp].toString()).toLowerCase().indexOf(e.query.toLowerCase())>-1})},checkableData:function(){var e=this;return this.filteredData.filter(function(t){return!t[e.disabledProp]})},checkedSummary:function(){var e=this.checked.length,t=this.data.length,n=this.format,r=n.noChecked,i=n.hasChecked;return r&&i?e>0?i.replace(/\${checked}/g,e).replace(/\${total}/g,t):r.replace(/\${total}/g,t):e+"/"+t},isIndeterminate:function(){var e=this.checked.length;return e>0&&e<this.checkableData.length},hasNoMatch:function(){return this.query.length>0&&0===this.filteredData.length},inputIcon:function(){return this.query.length>0&&this.inputHover?"circle-close":"search"},labelProp:function(){return this.props.label||"label"},keyProp:function(){return this.props.key||"key"},disabledProp:function(){return this.props.disabled||"disabled"},hasFooter:function(){return!!this.$slots.default}},methods:{updateAllChecked:function(){var e=this,t=this.checkableData.map(function(t){return t[e.keyProp]});this.allChecked=t.length>0&&t.every(function(t){return e.checked.indexOf(t)>-1})},handleAllCheckedChange:function(e){var t=this;this.checked=e?this.checkableData.map(function(e){return e[t.keyProp]}):[]},clearQuery:function(){"circle-close"===this.inputIcon&&(this.query="")}}},rc,[],!1,null,null,null);ic.options.__file="packages/transfer/src/transfer-panel.vue";var ac=ic.exports,oc=i({name:"ElTransfer",mixins:[C.a,p.a,x.a],components:{TransferPanel:ac,ElButton:$.a},props:{data:{type:Array,default:function(){return[]}},titles:{type:Array,default:function(){return[]}},buttonTexts:{type:Array,default:function(){return[]}},filterPlaceholder:{type:String,default:""},filterMethod:Function,leftDefaultChecked:{type:Array,default:function(){return[]}},rightDefaultChecked:{type:Array,default:function(){return[]}},renderContent:Function,value:{type:Array,default:function(){return[]}},format:{type:Object,default:function(){return{}}},filterable:Boolean,props:{type:Object,default:function(){return{label:"label",key:"key",disabled:"disabled"}}},targetOrder:{type:String,default:"original"}},data:function(){return{leftChecked:[],rightChecked:[]}},computed:{dataObj:function(){var e=this.props.key;return this.data.reduce(function(t,n){return(t[n[e]]=n)&&t},{})},sourceData:function(){var e=this;return this.data.filter(function(t){return-1===e.value.indexOf(t[e.props.key])})},targetData:function(){var e=this;return"original"===this.targetOrder?this.data.filter(function(t){return e.value.indexOf(t[e.props.key])>-1}):this.value.reduce(function(t,n){var r=e.dataObj[n];return r&&t.push(r),t},[])},hasButtonTexts:function(){return 2===this.buttonTexts.length}},watch:{value:function(e){this.dispatch("ElFormItem","el.form.change",e)}},methods:{getMigratingConfig:function(){return{props:{"footer-format":"footer-format is renamed to format."}}},onSourceCheckedChange:function(e,t){this.leftChecked=e,void 0!==t&&this.$emit("left-check-change",e,t)},onTargetCheckedChange:function(e,t){this.rightChecked=e,void 0!==t&&this.$emit("right-check-change",e,t)},addToLeft:function(){var e=this.value.slice();this.rightChecked.forEach(function(t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}),this.$emit("input",e),this.$emit("change",e,"left",this.rightChecked)},addToRight:function(){var e=this,t=this.value.slice(),n=[],r=this.props.key;this.data.forEach(function(t){var i=t[r];e.leftChecked.indexOf(i)>-1&&-1===e.value.indexOf(i)&&n.push(i)}),t="unshift"===this.targetOrder?n.concat(t):t.concat(n),this.$emit("input",t),this.$emit("change",t,"right",this.leftChecked)},clearQuery:function(e){"left"===e?this.$refs.leftPanel.query="":"right"===e&&(this.$refs.rightPanel.query="")}}},nc,[],!1,null,null,null);oc.options.__file="packages/transfer/src/main.vue";var sc=oc.exports;sc.install=function(e){e.component(sc.name,sc)};var lc=sc,cc=function(){var e=this.$createElement;return(this._self._c||e)("section",{staticClass:"el-container",class:{"is-vertical":this.isVertical}},[this._t("default")],2)};cc._withStripped=!0;var uc=i({name:"ElContainer",componentName:"ElContainer",props:{direction:String},computed:{isVertical:function(){return"vertical"===this.direction||"horizontal"!==this.direction&&(!(!this.$slots||!this.$slots.default)&&this.$slots.default.some(function(e){var t=e.componentOptions&&e.componentOptions.tag;return"el-header"===t||"el-footer"===t}))}}},cc,[],!1,null,null,null);uc.options.__file="packages/container/src/main.vue";var hc=uc.exports;hc.install=function(e){e.component(hc.name,hc)};var dc=hc,fc=function(){var e=this.$createElement;return(this._self._c||e)("header",{staticClass:"el-header",style:{height:this.height}},[this._t("default")],2)};fc._withStripped=!0;var pc=i({name:"ElHeader",componentName:"ElHeader",props:{height:{type:String,default:"60px"}}},fc,[],!1,null,null,null);pc.options.__file="packages/header/src/main.vue";var Ac=pc.exports;Ac.install=function(e){e.component(Ac.name,Ac)};var gc=Ac,mc=function(){var e=this.$createElement;return(this._self._c||e)("aside",{staticClass:"el-aside",style:{width:this.width}},[this._t("default")],2)};mc._withStripped=!0;var vc=i({name:"ElAside",componentName:"ElAside",props:{width:{type:String,default:"300px"}}},mc,[],!1,null,null,null);vc.options.__file="packages/aside/src/main.vue";var yc=vc.exports;yc.install=function(e){e.component(yc.name,yc)};var bc=yc,wc=function(){var e=this.$createElement;return(this._self._c||e)("main",{staticClass:"el-main"},[this._t("default")],2)};wc._withStripped=!0;var xc=i({name:"ElMain",componentName:"ElMain"},wc,[],!1,null,null,null);xc.options.__file="packages/main/src/main.vue";var _c=xc.exports;_c.install=function(e){e.component(_c.name,_c)};var Cc=_c,Sc=function(){var e=this.$createElement;return(this._self._c||e)("footer",{staticClass:"el-footer",style:{height:this.height}},[this._t("default")],2)};Sc._withStripped=!0;var kc=i({name:"ElFooter",componentName:"ElFooter",props:{height:{type:String,default:"60px"}}},Sc,[],!1,null,null,null);kc.options.__file="packages/footer/src/main.vue";var Bc=kc.exports;Bc.install=function(e){e.component(Bc.name,Bc)};var Ec=Bc,Tc=i({name:"ElTimeline",props:{reverse:{type:Boolean,default:!1}},provide:function(){return{timeline:this}},render:function(){var e=arguments[0],t=this.reverse,n={"el-timeline":!0,"is-reverse":t},r=this.$slots.default||[];return t&&(r=r.reverse()),e("ul",{class:n},[r])}},void 0,void 0,!1,null,null,null);Tc.options.__file="packages/timeline/src/main.vue";var Ic=Tc.exports;Ic.install=function(e){e.component(Ic.name,Ic)};var Mc=Ic,Fc=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("li",{staticClass:"el-timeline-item"},[n("div",{staticClass:"el-timeline-item__tail"}),e.$slots.dot?e._e():n("div",{staticClass:"el-timeline-item__node",class:["el-timeline-item__node--"+(e.size||""),"el-timeline-item__node--"+(e.type||"")],style:{backgroundColor:e.color}},[e.icon?n("i",{staticClass:"el-timeline-item__icon",class:e.icon}):e._e()]),e.$slots.dot?n("div",{staticClass:"el-timeline-item__dot"},[e._t("dot")],2):e._e(),n("div",{staticClass:"el-timeline-item__wrapper"},[e.hideTimestamp||"top"!==e.placement?e._e():n("div",{staticClass:"el-timeline-item__timestamp is-top"},[e._v("\n "+e._s(e.timestamp)+"\n ")]),n("div",{staticClass:"el-timeline-item__content"},[e._t("default")],2),e.hideTimestamp||"bottom"!==e.placement?e._e():n("div",{staticClass:"el-timeline-item__timestamp is-bottom"},[e._v("\n "+e._s(e.timestamp)+"\n ")])])])};Fc._withStripped=!0;var Dc=i({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}},Fc,[],!1,null,null,null);Dc.options.__file="packages/timeline/src/item.vue";var Pc=Dc.exports;Pc.install=function(e){e.component(Pc.name,Pc)};var Oc=Pc,Lc=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a",e._b({class:["el-link",e.type?"el-link--"+e.type:"",e.disabled&&"is-disabled",e.underline&&!e.disabled&&"is-underline"],attrs:{href:e.disabled?null:e.href},on:{click:e.handleClick}},"a",e.$attrs,!1),[e.icon?n("i",{class:e.icon}):e._e(),e.$slots.default?n("span",{staticClass:"el-link--inner"},[e._t("default")],2):e._e(),e.$slots.icon?[e.$slots.icon?e._t("icon"):e._e()]:e._e()],2)};Lc._withStripped=!0;var Rc=i({name:"ElLink",props:{type:{type:String,default:"default"},underline:{type:Boolean,default:!0},disabled:Boolean,href:String,icon:String},methods:{handleClick:function(e){this.disabled||this.href||this.$emit("click",e)}}},Lc,[],!1,null,null,null);Rc.options.__file="packages/link/src/main.vue";var Nc=Rc.exports;Nc.install=function(e){e.component(Nc.name,Nc)};var Uc=Nc,Hc=function(e,t){var n=t._c;return n("div",t._g(t._b({class:[t.data.staticClass,"el-divider","el-divider--"+t.props.direction]},"div",t.data.attrs,!1),t.listeners),[t.slots().default&&"vertical"!==t.props.direction?n("div",{class:["el-divider__text","is-"+t.props.contentPosition]},[t._t("default")],2):t._e()])};Hc._withStripped=!0;var jc=i({name:"ElDivider",props:{direction:{type:String,default:"horizontal",validator:function(e){return-1!==["horizontal","vertical"].indexOf(e)}},contentPosition:{type:String,default:"center",validator:function(e){return-1!==["left","center","right"].indexOf(e)}}}},Hc,[],!0,null,null,null);jc.options.__file="packages/divider/src/main.vue";var Qc=jc.exports;Qc.install=function(e){e.component(Qc.name,Qc)};var zc=Qc,Vc=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-image"},[e.loading?e._t("placeholder",[n("div",{staticClass:"el-image__placeholder"})]):e.error?e._t("error",[n("div",{staticClass:"el-image__error"},[e._v(e._s(e.t("el.image.error")))])]):n("img",e._g(e._b({staticClass:"el-image__inner",class:{"el-image__inner--center":e.alignCenter,"el-image__preview":e.preview},style:e.imageStyle,attrs:{src:e.src},on:{click:e.clickHandler}},"img",e.$attrs,!1),e.$listeners)),e.preview?[e.showViewer?n("image-viewer",{attrs:{"z-index":e.zIndex,"initial-index":e.imageIndex,"on-close":e.closeViewer,"url-list":e.previewSrcList}}):e._e()]:e._e()],2)};Vc._withStripped=!0;var Gc=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"viewer-fade"}},[n("div",{ref:"el-image-viewer__wrapper",staticClass:"el-image-viewer__wrapper",style:{"z-index":e.zIndex},attrs:{tabindex:"-1"}},[n("div",{staticClass:"el-image-viewer__mask",on:{click:function(t){return t.target!==t.currentTarget?null:e.handleMaskClick(t)}}}),n("span",{staticClass:"el-image-viewer__btn el-image-viewer__close",on:{click:e.hide}},[n("i",{staticClass:"el-icon-close"})]),e.isSingle?e._e():[n("span",{staticClass:"el-image-viewer__btn el-image-viewer__prev",class:{"is-disabled":!e.infinite&&e.isFirst},on:{click:e.prev}},[n("i",{staticClass:"el-icon-arrow-left"})]),n("span",{staticClass:"el-image-viewer__btn el-image-viewer__next",class:{"is-disabled":!e.infinite&&e.isLast},on:{click:e.next}},[n("i",{staticClass:"el-icon-arrow-right"})])],n("div",{staticClass:"el-image-viewer__btn el-image-viewer__actions"},[n("div",{staticClass:"el-image-viewer__actions__inner"},[n("i",{staticClass:"el-icon-zoom-out",on:{click:function(t){e.handleActions("zoomOut")}}}),n("i",{staticClass:"el-icon-zoom-in",on:{click:function(t){e.handleActions("zoomIn")}}}),n("i",{staticClass:"el-image-viewer__actions__divider"}),n("i",{class:e.mode.icon,on:{click:e.toggleMode}}),n("i",{staticClass:"el-image-viewer__actions__divider"}),n("i",{staticClass:"el-icon-refresh-left",on:{click:function(t){e.handleActions("anticlocelise")}}}),n("i",{staticClass:"el-icon-refresh-right",on:{click:function(t){e.handleActions("clocelise")}}})])]),n("div",{staticClass:"el-image-viewer__canvas"},e._l(e.urlList,function(t,r){return r===e.index?n("img",{key:t,ref:"img",refInFor:!0,staticClass:"el-image-viewer__img",style:e.imgStyle,attrs:{src:e.currentImg},on:{load:e.handleImgLoad,error:e.handleImgError,mousedown:e.handleMouseDown}}):e._e()}),0)],2)])};Gc._withStripped=!0;var $c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qc={CONTAIN:{name:"contain",icon:"el-icon-full-screen"},ORIGINAL:{name:"original",icon:"el-icon-c-scale-to-original"}},Wc=Object(A.isFirefox)()?"DOMMouseScroll":"mousewheel",Kc=i({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:qc.CONTAIN,transform:{scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}},computed:{isSingle:function(){return this.urlList.length<=1},isFirst:function(){return 0===this.index},isLast:function(){return this.index===this.urlList.length-1},currentImg:function(){return this.urlList[this.index]},imgStyle:function(){var e=this.transform,t=e.scale,n=e.deg,r=e.offsetX,i=e.offsetY,a={transform:"scale("+t+") rotate("+n+"deg)",transition:e.enableTransition?"transform .3s":"","margin-left":r+"px","margin-top":i+"px"};return this.mode===qc.CONTAIN&&(a.maxWidth=a.maxHeight="100%"),a}},watch:{index:{handler:function(e){this.reset(),this.onSwitch(e)}},currentImg:function(e){var t=this;this.$nextTick(function(e){t.$refs.img[0].complete||(t.loading=!0)})}},methods:{hide:function(){this.deviceSupportUninstall(),this.onClose()},deviceSupportInstall:function(){var e=this;this._keyDownHandler=Object(A.rafThrottle)(function(t){switch(t.keyCode){case 27:e.hide();break;case 32:e.toggleMode();break;case 37:e.prev();break;case 38:e.handleActions("zoomIn");break;case 39:e.next();break;case 40:e.handleActions("zoomOut")}}),this._mouseWheelHandler=Object(A.rafThrottle)(function(t){(t.wheelDelta?t.wheelDelta:-t.detail)>0?e.handleActions("zoomIn",{zoomRate:.015,enableTransition:!1}):e.handleActions("zoomOut",{zoomRate:.015,enableTransition:!1})}),Object(pe.on)(document,"keydown",this._keyDownHandler),Object(pe.on)(document,Wc,this._mouseWheelHandler)},deviceSupportUninstall:function(){Object(pe.off)(document,"keydown",this._keyDownHandler),Object(pe.off)(document,Wc,this._mouseWheelHandler),this._keyDownHandler=null,this._mouseWheelHandler=null},handleImgLoad:function(e){this.loading=!1},handleImgError:function(e){this.loading=!1,e.target.alt="加载失败"},handleMouseDown:function(e){var t=this;if(!this.loading&&0===e.button){var n=this.transform,r=n.offsetX,i=n.offsetY,a=e.pageX,o=e.pageY;this._dragHandler=Object(A.rafThrottle)(function(e){t.transform.offsetX=r+e.pageX-a,t.transform.offsetY=i+e.pageY-o}),Object(pe.on)(document,"mousemove",this._dragHandler),Object(pe.on)(document,"mouseup",function(e){Object(pe.off)(document,"mousemove",t._dragHandler)}),e.preventDefault()}},handleMaskClick:function(){this.maskClosable&&this.hide()},reset:function(){this.transform={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}},toggleMode:function(){if(!this.loading){var e=Object.keys(qc),t=(Object.values(qc).indexOf(this.mode)+1)%e.length;this.mode=qc[e[t]],this.reset()}},prev:function(){if(!this.isFirst||this.infinite){var e=this.urlList.length;this.index=(this.index-1+e)%e}},next:function(){if(!this.isLast||this.infinite){var e=this.urlList.length;this.index=(this.index+1)%e}},handleActions:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.loading){var n=$c({zoomRate:.2,rotateDeg:90,enableTransition:!0},t),r=n.zoomRate,i=n.rotateDeg,a=n.enableTransition,o=this.transform;switch(e){case"zoomOut":o.scale>.2&&(o.scale=parseFloat((o.scale-r).toFixed(3)));break;case"zoomIn":o.scale=parseFloat((o.scale+r).toFixed(3));break;case"clocelise":o.deg+=i;break;case"anticlocelise":o.deg-=i}o.enableTransition=a}}},mounted:function(){this.deviceSupportInstall(),this.appendToBody&&document.body.appendChild(this.$el),this.$refs["el-image-viewer__wrapper"].focus()},destroyed:function(){this.appendToBody&&this.$el&&this.$el.parentNode&&this.$el.parentNode.removeChild(this.$el)}},Gc,[],!1,null,null,null);Kc.options.__file="packages/image/src/image-viewer.vue";var Yc=Kc.exports,Xc=function(){return void 0!==document.documentElement.style.objectFit},Jc="none",Zc="contain",eu="cover",tu="fill",nu="scale-down",ru="",iu=i({name:"ElImage",mixins:[p.a],inheritAttrs:!1,components:{ImageViewer:Yc},props:{src:String,fit:String,lazy:Boolean,scrollContainer:{},previewSrcList:{type:Array,default:function(){return[]}},zIndex:{type:Number,default:2e3}},data:function(){return{loading:!0,error:!1,show:!this.lazy,imageWidth:0,imageHeight:0,showViewer:!1}},computed:{imageStyle:function(){var e=this.fit;return!this.$isServer&&e?Xc()?{"object-fit":e}:this.getImageStyle(e):{}},alignCenter:function(){return!this.$isServer&&!Xc()&&this.fit!==tu},preview:function(){var e=this.previewSrcList;return Array.isArray(e)&&e.length>0},imageIndex:function(){var e=0,t=this.previewSrcList.indexOf(this.src);return t>=0&&(e=t),e}},watch:{src:function(e){this.show&&this.loadImage()},show:function(e){e&&this.loadImage()}},mounted:function(){this.lazy?this.addLazyLoadListener():this.loadImage()},beforeDestroy:function(){this.lazy&&this.removeLazyLoadListener()},methods:{loadImage:function(){var e=this;if(!this.$isServer){this.loading=!0,this.error=!1;var t=new Image;t.onload=function(n){return e.handleLoad(n,t)},t.onerror=this.handleError.bind(this),Object.keys(this.$attrs).forEach(function(n){var r=e.$attrs[n];t.setAttribute(n,r)}),t.src=this.src}},handleLoad:function(e,t){this.imageWidth=t.width,this.imageHeight=t.height,this.loading=!1,this.error=!1},handleError:function(e){this.loading=!1,this.error=!0,this.$emit("error",e)},handleLazyLoad:function(){Object(pe.isInContainer)(this.$el,this._scrollContainer)&&(this.show=!0,this.removeLazyLoadListener())},addLazyLoadListener:function(){if(!this.$isServer){var e=this.scrollContainer,t=null;(t=Object(Ps.isHtmlElement)(e)?e:Object(Ps.isString)(e)?document.querySelector(e):Object(pe.getScrollContainer)(this.$el))&&(this._scrollContainer=t,this._lazyLoadHandler=Ws()(200,this.handleLazyLoad),Object(pe.on)(t,"scroll",this._lazyLoadHandler),this.handleLazyLoad())}},removeLazyLoadListener:function(){var e=this._scrollContainer,t=this._lazyLoadHandler;!this.$isServer&&e&&t&&(Object(pe.off)(e,"scroll",t),this._scrollContainer=null,this._lazyLoadHandler=null)},getImageStyle:function(e){var t=this.imageWidth,n=this.imageHeight,r=this.$el,i=r.clientWidth,a=r.clientHeight;if(!(t&&n&&i&&a))return{};var o=t/n,s=i/a;e===nu&&(e=t<i&&n<a?Jc:Zc);switch(e){case Jc:return{width:"auto",height:"auto"};case Zc:return o<s?{width:"auto"}:{height:"auto"};case eu:return o<s?{height:"auto"}:{width:"auto"};default:return{}}},clickHandler:function(){this.preview&&(ru=document.body.style.overflow,document.body.style.overflow="hidden",this.showViewer=!0)},closeViewer:function(){document.body.style.overflow=ru,this.showViewer=!1}}},Vc,[],!1,null,null,null);iu.options.__file="packages/image/src/main.vue";var au=iu.exports;au.install=function(e){e.component(au.name,au)};var ou=au,su=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-calendar"},[n("div",{staticClass:"el-calendar__header"},[n("div",{staticClass:"el-calendar__title"},[e._v("\n "+e._s(e.i18nDate)+"\n ")]),0===e.validatedRange.length?n("div",{staticClass:"el-calendar__button-group"},[n("el-button-group",[n("el-button",{attrs:{type:"plain",size:"mini"},on:{click:function(t){e.selectDate("prev-month")}}},[e._v("\n "+e._s(e.t("el.datepicker.prevMonth"))+"\n ")]),n("el-button",{attrs:{type:"plain",size:"mini"},on:{click:function(t){e.selectDate("today")}}},[e._v("\n "+e._s(e.t("el.datepicker.today"))+"\n ")]),n("el-button",{attrs:{type:"plain",size:"mini"},on:{click:function(t){e.selectDate("next-month")}}},[e._v("\n "+e._s(e.t("el.datepicker.nextMonth"))+"\n ")])],1)],1):e._e()]),0===e.validatedRange.length?n("div",{key:"no-range",staticClass:"el-calendar__body"},[n("date-table",{attrs:{date:e.date,"selected-day":e.realSelectedDay,"first-day-of-week":e.realFirstDayOfWeek},on:{pick:e.pickDay}})],1):n("div",{key:"has-range",staticClass:"el-calendar__body"},e._l(e.validatedRange,function(t,r){return n("date-table",{key:r,attrs:{date:t[0],"selected-day":e.realSelectedDay,range:t,"hide-header":0!==r,"first-day-of-week":e.realFirstDayOfWeek},on:{pick:e.pickDay}})}),1)])};su._withStripped=!0;var lu=n(20),cu=n.n(lu),uu=i({props:{selectedDay:String,range:{type:Array,validator:function(e){if(!e||!e.length)return!0;var t=e[0],n=e[1];return Object(dr.validateRangeInOneMonth)(t,n)}},date:Date,hideHeader:Boolean,firstDayOfWeek:Number},inject:["elCalendar"],methods:{toNestedArr:function(e){return Object(dr.range)(e.length/7).map(function(t,n){var r=7*n;return e.slice(r,r+7)})},getFormateDate:function(e,t){if(!e||-1===["prev","current","next"].indexOf(t))throw new Error("invalid day or type");var n=this.curMonthDatePrefix;return"prev"===t?n=this.prevMonthDatePrefix:"next"===t&&(n=this.nextMonthDatePrefix),n+"-"+(e=("00"+e).slice(-2))},getCellClass:function(e){var t=e.text,n=e.type,r=[n];if("current"===n){var i=this.getFormateDate(t,n);i===this.selectedDay&&r.push("is-selected"),i===this.formatedToday&&r.push("is-today")}return r},pickDay:function(e){var t=e.text,n=e.type,r=this.getFormateDate(t,n);this.$emit("pick",r)},cellRenderProxy:function(e){var t=e.text,n=e.type,r=this.$createElement,i=this.elCalendar.$scopedSlots.dateCell;if(!i)return r("span",[t]);var a=this.getFormateDate(t,n);return i({date:new Date(a),data:{isSelected:this.selectedDay===a,type:n+"-month",day:a}})}},computed:{WEEK_DAYS:function(){return Object(dr.getI18nSettings)().dayNames},prevMonthDatePrefix:function(){var e=new Date(this.date.getTime());return e.setDate(0),cu.a.format(e,"yyyy-MM")},curMonthDatePrefix:function(){return cu.a.format(this.date,"yyyy-MM")},nextMonthDatePrefix:function(){var e=new Date(this.date.getFullYear(),this.date.getMonth()+1,1);return cu.a.format(e,"yyyy-MM")},formatedToday:function(){return this.elCalendar.formatedToday},isInRange:function(){return this.range&&this.range.length},rows:function(){var e=[];if(this.isInRange){var t=this.range,n=t[0],r=t[1],i=Object(dr.range)(r.getDate()-n.getDate()+1).map(function(e,t){return{text:n.getDate()+t,type:"current"}}),a=i.length%7;a=0===a?0:7-a;var o=Object(dr.range)(a).map(function(e,t){return{text:t+1,type:"next"}});e=i.concat(o)}else{var s=this.date,l=Object(dr.getFirstDayOfMonth)(s);l=0===l?7:l;var c="number"==typeof this.firstDayOfWeek?this.firstDayOfWeek:1,u=Object(dr.getPrevMonthLastDays)(s,l-c).map(function(e){return{text:e,type:"prev"}}),h=Object(dr.getMonthDays)(s).map(function(e){return{text:e,type:"current"}});e=[].concat(u,h);var d=Object(dr.range)(42-e.length).map(function(e,t){return{text:t+1,type:"next"}});e=e.concat(d)}return this.toNestedArr(e)},weekDays:function(){var e=this.firstDayOfWeek,t=this.WEEK_DAYS;return"number"!=typeof e||0===e?t.slice():t.slice(e).concat(t.slice(0,e))}},render:function(){var e=this,t=arguments[0],n=this.hideHeader?null:t("thead",[this.weekDays.map(function(e){return t("th",{key:e},[e])})]);return t("table",{class:{"el-calendar-table":!0,"is-range":this.isInRange},attrs:{cellspacing:"0",cellpadding:"0"}},[n,t("tbody",[this.rows.map(function(n,r){return t("tr",{class:{"el-calendar-table__row":!0,"el-calendar-table__row--hide-border":0===r&&e.hideHeader},key:r},[n.map(function(n,r){return t("td",{key:r,class:e.getCellClass(n),on:{click:e.pickDay.bind(e,n)}},[t("div",{class:"el-calendar-day"},[e.cellRenderProxy(n)])])})])})])])}},void 0,void 0,!1,null,null,null);uu.options.__file="packages/calendar/src/date-table.vue";var hu=uu.exports,du=["prev-month","today","next-month"],fu=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],pu=i({name:"ElCalendar",mixins:[p.a],components:{DateTable:hu,ElButton:$.a,ElButtonGroup:W.a},props:{value:[Date,String,Number],range:{type:Array,validator:function(e){return!Array.isArray(e)||2===e.length&&e.every(function(e){return"string"==typeof e||"number"==typeof e||e instanceof Date})}},firstDayOfWeek:{type:Number,default:1}},provide:function(){return{elCalendar:this}},methods:{pickDay:function(e){this.realSelectedDay=e},selectDate:function(e){if(-1===du.indexOf(e))throw new Error("invalid type "+e);var t="";(t="prev-month"===e?this.prevMonthDatePrefix+"-01":"next-month"===e?this.nextMonthDatePrefix+"-01":this.formatedToday)!==this.formatedDate&&this.pickDay(t)},toDate:function(e){if(!e)throw new Error("invalid val");return e instanceof Date?e:new Date(e)},rangeValidator:function(e,t){var n=this.realFirstDayOfWeek,r=t?n:0===n?6:n-1,i=(t?"start":"end")+" of range should be "+fu[r]+".";return e.getDay()===r||(console.warn("[ElementCalendar]",i,"Invalid range will be ignored."),!1)}},computed:{prevMonthDatePrefix:function(){var e=new Date(this.date.getTime());return e.setDate(0),cu.a.format(e,"yyyy-MM")},curMonthDatePrefix:function(){return cu.a.format(this.date,"yyyy-MM")},nextMonthDatePrefix:function(){var e=new Date(this.date.getFullYear(),this.date.getMonth()+1,1);return cu.a.format(e,"yyyy-MM")},formatedDate:function(){return cu.a.format(this.date,"yyyy-MM-dd")},i18nDate:function(){var e=this.date.getFullYear(),t=this.date.getMonth()+1;return e+" "+this.t("el.datepicker.year")+" "+this.t("el.datepicker.month"+t)},formatedToday:function(){return cu.a.format(this.now,"yyyy-MM-dd")},realSelectedDay:{get:function(){return this.value?this.formatedDate:this.selectedDay},set:function(e){this.selectedDay=e;var t=new Date(e);this.$emit("input",t)}},date:function(){if(this.value)return this.toDate(this.value);if(this.realSelectedDay){var e=this.selectedDay.split("-");return new Date(e[0],e[1]-1,e[2])}return this.validatedRange.length?this.validatedRange[0][0]:this.now},validatedRange:function(){var e=this,t=this.range;if(!t)return[];if(2===(t=t.reduce(function(t,n,r){var i=e.toDate(n);return e.rangeValidator(i,0===r)&&(t=t.concat(i)),t},[])).length){var n=t,r=n[0],i=n[1];if(r>i)return console.warn("[ElementCalendar]end time should be greater than start time"),[];if(Object(dr.validateRangeInOneMonth)(r,i))return[[r,i]];var a=[],o=new Date(r.getFullYear(),r.getMonth()+1,1),s=this.toDate(o.getTime()-864e5);if(!Object(dr.validateRangeInOneMonth)(o,i))return console.warn("[ElementCalendar]start time and end time interval must not exceed two months"),[];a.push([r,s]);var l=this.realFirstDayOfWeek,c=o.getDay(),u=0;return c!==l&&(u=0===l?7-c:(u=l-c)>0?u:7+u),(o=this.toDate(o.getTime()+864e5*u)).getDate()<i.getDate()&&a.push([o,i]),a}return[]},realFirstDayOfWeek:function(){return this.firstDayOfWeek<1||this.firstDayOfWeek>6?0:Math.floor(this.firstDayOfWeek)}},data:function(){return{selectedDay:"",now:new Date}}},su,[],!1,null,null,null);pu.options.__file="packages/calendar/src/main.vue";var Au=pu.exports;Au.install=function(e){e.component(Au.name,Au)};var gu=Au,mu=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-fade-in"}},[e.visible?n("div",{staticClass:"el-backtop",style:{right:e.styleRight,bottom:e.styleBottom},on:{click:function(t){return t.stopPropagation(),e.handleClick(t)}}},[e._t("default",[n("el-icon",{attrs:{name:"caret-top"}})])],2):e._e()])};mu._withStripped=!0;var vu=function(e){return Math.pow(e,3)},yu=i({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=Ws()(300,this.onScroll),this.container.addEventListener("scroll",this.throttledScrollHandler)},methods:{init:function(){if(this.container=document,this.el=document.documentElement,this.target){if(this.el=document.querySelector(this.target),!this.el)throw new Error("target is not existed: "+this.target);this.container=this.el}},onScroll:function(){var e=this.el.scrollTop;this.visible=e>=this.visibilityHeight},handleClick:function(e){this.scrollToTop(),this.$emit("click",e)},scrollToTop:function(){var e=this.el,t=Date.now(),n=e.scrollTop,r=window.requestAnimationFrame||function(e){return setTimeout(e,16)};r(function i(){var a,o=(Date.now()-t)/500;o<1?(e.scrollTop=n*(1-((a=o)<.5?vu(2*a)/2:1-vu(2*(1-a))/2)),r(i)):e.scrollTop=0})}},beforeDestroy:function(){this.container.removeEventListener("scroll",this.throttledScrollHandler)}},mu,[],!1,null,null,null);yu.options.__file="packages/backtop/src/main.vue";var bu=yu.exports;bu.install=function(e){e.component(bu.name,bu)};var wu=bu,xu=function(e,t){return e===window||e===document?document.documentElement[t]:e[t]},_u=function(e){return xu(e,"offsetHeight")},Cu="ElInfiniteScroll",Su={delay:{type:Number,default:200},distance:{type:Number,default:0},disabled:{type:Boolean,default:!1},immediate:{type:Boolean,default:!0}},ku=function(e,t){return Object(Ps.isHtmlElement)(e)?(n=Su,Object.keys(n||{}).map(function(e){return[e,n[e]]})).reduce(function(n,r){var i=r[0],a=r[1],o=a.type,s=a.default,l=e.getAttribute("infinite-scroll-"+i);switch(l=Object(Ps.isUndefined)(t[l])?l:t[l],o){case Number:l=Number(l),l=Number.isNaN(l)?s:l;break;case Boolean:l=Object(Ps.isDefined)(l)?"false"!==l&&Boolean(l):s;break;default:l=o(l)}return n[i]=l,n},{}):{};var n},Bu=function(e){return e.getBoundingClientRect().top},Eu=function(e){var t=this[Cu],n=t.el,r=t.vm,i=t.container,a=t.observer,o=ku(n,r),s=o.distance;if(!o.disabled){var l=i.getBoundingClientRect();if(l.width||l.height){var c=!1;if(i===n){var u=i.scrollTop+function(e){return xu(e,"clientHeight")}(i);c=i.scrollHeight-u<=s}else{c=_u(n)+Bu(n)-Bu(i)-_u(i)+Number.parseFloat(function(e,t){if(e===window&&(e=document.documentElement),1!==e.nodeType)return[];var n=window.getComputedStyle(e,null);return t?n[t]:n}(i,"borderBottomWidth"))<=s}c&&Object(Ps.isFunction)(e)?e.call(r):a&&(a.disconnect(),this[Cu].observer=null)}}},Tu={name:"InfiniteScroll",inserted:function(e,t,n){var r=t.value,i=n.context,a=Object(pe.getScrollContainer)(e,!0),o=ku(e,i),s=o.delay,l=o.immediate,c=I()(s,Eu.bind(e,r));(e[Cu]={el:e,vm:i,container:a,onScroll:c},a)&&(a.addEventListener("scroll",c),l&&((e[Cu].observer=new MutationObserver(c)).observe(a,{childList:!0,subtree:!0}),c()))},unbind:function(e){var t=e[Cu],n=t.container,r=t.onScroll;n&&n.removeEventListener("scroll",r)},install:function(e){e.directive(Tu.name,Tu)}},Iu=Tu,Mu=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-page-header"},[n("div",{staticClass:"el-page-header__left",on:{click:function(t){e.$emit("back")}}},[n("i",{staticClass:"el-icon-back"}),n("div",{staticClass:"el-page-header__title"},[e._t("title",[e._v(e._s(e.title))])],2)]),n("div",{staticClass:"el-page-header__content"},[e._t("content",[e._v(e._s(e.content))])],2)])};Mu._withStripped=!0;var Fu=i({name:"ElPageHeader",props:{title:{type:String,default:function(){return Object(Pi.t)("el.pageHeader.title")}},content:String}},Mu,[],!1,null,null,null);Fu.options.__file="packages/page-header/src/main.vue";var Du=Fu.exports;Du.install=function(e){e.component(Du.name,Du)};var Pu=Du,Ou=function(){var e=this.$createElement,t=this._self._c||e;return t("div",{class:["el-cascader-panel",this.border&&"is-bordered"],on:{keydown:this.handleKeyDown}},this._l(this.menus,function(e,n){return t("cascader-menu",{key:n,ref:"menu",refInFor:!0,attrs:{index:n,nodes:e}})}),1)};Ou._withStripped=!0;var Lu=n(43),Ru=n.n(Lu),Nu=function(e){return e.stopPropagation()},Uu=i({inject:["panel"],components:{ElCheckbox:rn.a,ElRadio:Ru.a},props:{node:{required:!0},nodeId:String},computed:{config:function(){return this.panel.config},isLeaf:function(){return this.node.isLeaf},isDisabled:function(){return this.node.isDisabled},checkedValue:function(){return this.panel.checkedValue},isChecked:function(){return this.node.isSameNode(this.checkedValue)},inActivePath:function(){return this.isInPath(this.panel.activePath)},inCheckedPath:function(){var e=this;return!!this.config.checkStrictly&&this.panel.checkedNodePaths.some(function(t){return e.isInPath(t)})},value:function(){return this.node.getValueByOption()}},methods:{handleExpand:function(){var e=this,t=this.panel,n=this.node,r=this.isDisabled,i=this.config,a=i.multiple;!i.checkStrictly&&r||n.loading||(i.lazy&&!n.loaded?t.lazyLoad(n,function(){var t=e.isLeaf;if(t||e.handleExpand(),a){var r=!!t&&n.checked;e.handleMultiCheckChange(r)}}):t.handleExpand(n))},handleCheckChange:function(){var e=this.panel,t=this.value,n=this.node;e.handleCheckChange(t),e.handleExpand(n)},handleMultiCheckChange:function(e){this.node.doCheck(e),this.panel.calculateMultiCheckedValue()},isInPath:function(e){var t=this.node;return(e[t.level-1]||{}).uid===t.uid},renderPrefix:function(e){var t=this.isLeaf,n=this.isChecked,r=this.config,i=r.checkStrictly;return r.multiple?this.renderCheckbox(e):i?this.renderRadio(e):t&&n?this.renderCheckIcon(e):null},renderPostfix:function(e){var t=this.node,n=this.isLeaf;return t.loading?this.renderLoadingIcon(e):n?null:this.renderExpandIcon(e)},renderCheckbox:function(e){var t=this.node,n=this.config,r=this.isDisabled,i={on:{change:this.handleMultiCheckChange},nativeOn:{}};return n.checkStrictly&&(i.nativeOn.click=Nu),e("el-checkbox",Jo()([{attrs:{value:t.checked,indeterminate:t.indeterminate,disabled:r}},i]))},renderRadio:function(e){var t=this.checkedValue,n=this.value,r=this.isDisabled;return Object(A.isEqual)(n,t)&&(n=t),e("el-radio",{attrs:{value:t,label:n,disabled:r},on:{change:this.handleCheckChange},nativeOn:{click:Nu}},[e("span")])},renderCheckIcon:function(e){return e("i",{class:"el-icon-check el-cascader-node__prefix"})},renderLoadingIcon:function(e){return e("i",{class:"el-icon-loading el-cascader-node__postfix"})},renderExpandIcon:function(e){return e("i",{class:"el-icon-arrow-right el-cascader-node__postfix"})},renderContent:function(e){var t=this.panel,n=this.node,r=t.renderLabelFn;return e("span",{class:"el-cascader-node__label"},[(r?r({node:n,data:n.data}):null)||n.label])}},render:function(e){var t=this,n=this.inActivePath,r=this.inCheckedPath,i=this.isChecked,a=this.isLeaf,o=this.isDisabled,s=this.config,l=this.nodeId,c=s.expandTrigger,u=s.checkStrictly,h=s.multiple,d=!u&&o,f={on:{}};return"click"===c?f.on.click=this.handleExpand:(f.on.mouseenter=function(e){t.handleExpand(),t.$emit("expand",e)},f.on.focus=function(e){t.handleExpand(),t.$emit("expand",e)}),!a||o||u||h||(f.on.click=this.handleCheckChange),e("li",Jo()([{attrs:{role:"menuitem",id:l,"aria-expanded":n,tabindex:d?null:-1},class:{"el-cascader-node":!0,"is-selectable":u,"in-active-path":n,"in-checked-path":r,"is-active":i,"is-disabled":d}},f]),[this.renderPrefix(e),this.renderContent(e),this.renderPostfix(e)])}},void 0,void 0,!1,null,null,null);Uu.options.__file="packages/cascader-panel/src/cascader-node.vue";var Hu=Uu.exports,ju=i({name:"ElCascaderMenu",mixins:[p.a],inject:["panel"],components:{ElScrollbar:R.a,CascaderNode:Hu},props:{nodes:{type:Array,required:!0},index:Number},data:function(){return{activeNode:null,hoverTimer:null,id:Object(A.generateId)()}},computed:{isEmpty:function(){return!this.nodes.length},menuId:function(){return"cascader-menu-"+this.id+"-"+this.index}},methods:{handleExpand:function(e){this.activeNode=e.target},handleMouseMove:function(e){var t=this.activeNode,n=this.hoverTimer,r=this.$refs.hoverZone;if(t&&r)if(t.contains(e.target)){clearTimeout(n);var i=this.$el.getBoundingClientRect().left,a=e.clientX-i,o=this.$el,s=o.offsetWidth,l=o.offsetHeight,c=t.offsetTop,u=c+t.offsetHeight;r.innerHTML='\n <path style="pointer-events: auto;" fill="transparent" d="M'+a+" "+c+" L"+s+" 0 V"+c+' Z" />\n <path style="pointer-events: auto;" fill="transparent" d="M'+a+" "+u+" L"+s+" "+l+" V"+u+' Z" />\n '}else n||(this.hoverTimer=setTimeout(this.clearHoverZone,this.panel.config.hoverThreshold))},clearHoverZone:function(){var e=this.$refs.hoverZone;e&&(e.innerHTML="")},renderEmptyText:function(e){return e("div",{class:"el-cascader-menu__empty-text"},[this.t("el.cascader.noData")])},renderNodeList:function(e){var t=this.menuId,n=this.panel.isHoverMenu,r={on:{}};n&&(r.on.expand=this.handleExpand);var i=this.nodes.map(function(n,i){var a=n.hasChildren;return e("cascader-node",Jo()([{key:n.uid,attrs:{node:n,"node-id":t+"-"+i,"aria-haspopup":a,"aria-owns":a?t:null}},r]))});return[].concat(i,[n?e("svg",{ref:"hoverZone",class:"el-cascader-menu__hover-zone"}):null])}},render:function(e){var t=this.isEmpty,n=this.menuId,r={nativeOn:{}};return this.panel.isHoverMenu&&(r.nativeOn.mousemove=this.handleMouseMove),e("el-scrollbar",Jo()([{attrs:{tag:"ul",role:"menu",id:n,"wrap-class":"el-cascader-menu__wrap","view-class":{"el-cascader-menu__list":!0,"is-empty":t}},class:"el-cascader-menu"},r]),[t?this.renderEmptyText(e):this.renderNodeList(e)])}},void 0,void 0,!1,null,null,null);ju.options.__file="packages/cascader-panel/src/cascader-menu.vue";var Qu=ju.exports,zu=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var Vu=0,Gu=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.data=t,this.config=n,this.parent=r||null,this.level=this.parent?this.parent.level+1:1,this.uid=Vu++,this.initState(),this.initChildren()}return e.prototype.initState=function(){var e=this.config,t=e.value,n=e.label;this.value=this.data[t],this.label=this.data[n],this.pathNodes=this.calculatePathNodes(),this.path=this.pathNodes.map(function(e){return e.value}),this.pathLabels=this.pathNodes.map(function(e){return e.label}),this.loading=!1,this.loaded=!1},e.prototype.initChildren=function(){var t=this,n=this.config,r=n.children,i=this.data[r];this.hasChildren=Array.isArray(i),this.children=(i||[]).map(function(r){return new e(r,n,t)})},e.prototype.calculatePathNodes=function(){for(var e=[this],t=this.parent;t;)e.unshift(t),t=t.parent;return e},e.prototype.getPath=function(){return this.path},e.prototype.getValue=function(){return this.value},e.prototype.getValueByOption=function(){return this.config.emitPath?this.getPath():this.getValue()},e.prototype.getText=function(e,t){return e?this.pathLabels.join(t):this.label},e.prototype.isSameNode=function(e){var t=this.getValueByOption();return this.config.multiple&&Array.isArray(e)?e.some(function(e){return Object(A.isEqual)(e,t)}):Object(A.isEqual)(e,t)},e.prototype.broadcast=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i="onParent"+Object(A.capitalize)(e);this.children.forEach(function(t){t&&(t.broadcast.apply(t,[e].concat(n)),t[i]&&t[i].apply(t,n))})},e.prototype.emit=function(e){var t=this.parent,n="onChild"+Object(A.capitalize)(e);if(t){for(var r=arguments.length,i=Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];t[n]&&t[n].apply(t,i),t.emit.apply(t,[e].concat(i))}},e.prototype.onParentCheck=function(e){this.isDisabled||this.setCheckState(e)},e.prototype.onChildCheck=function(){var e=this.children.filter(function(e){return!e.isDisabled}),t=!!e.length&&e.every(function(e){return e.checked});this.setCheckState(t)},e.prototype.setCheckState=function(e){var t=this.children.length,n=this.children.reduce(function(e,t){return e+(t.checked?1:t.indeterminate?.5:0)},0);this.checked=e,this.indeterminate=n!==t&&n>0},e.prototype.syncCheckState=function(e){var t=this.getValueByOption(),n=this.isSameNode(e,t);this.doCheck(n)},e.prototype.doCheck=function(e){this.checked!==e&&(this.config.checkStrictly?this.checked=e:(this.broadcast("check",e),this.setCheckState(e),this.emit("check")))},zu(e,[{key:"isDisabled",get:function(){var e=this.data,t=this.parent,n=this.config,r=n.disabled,i=n.checkStrictly;return e[r]||!i&&t&&t.isDisabled}},{key:"isLeaf",get:function(){var e=this.data,t=this.loaded,n=this.hasChildren,r=this.children,i=this.config,a=i.lazy,o=i.leaf;if(a){var s=Object(Qe.isDef)(e[o])?e[o]:!!t&&!r.length;return this.hasChildren=!s,s}return!n}}]),e}();var $u=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.config=n,this.initNodes(t)}return e.prototype.initNodes=function(e){var t=this;e=Object(A.coerceTruthyValueToArray)(e),this.nodes=e.map(function(e){return new Gu(e,t.config)}),this.flattedNodes=this.getFlattedNodes(!1,!1),this.leafNodes=this.getFlattedNodes(!0,!1)},e.prototype.appendNode=function(e,t){var n=new Gu(e,this.config,t);(t?t.children:this.nodes).push(n)},e.prototype.appendNodes=function(e,t){var n=this;(e=Object(A.coerceTruthyValueToArray)(e)).forEach(function(e){return n.appendNode(e,t)})},e.prototype.getNodes=function(){return this.nodes},e.prototype.getFlattedNodes=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=e?this.leafNodes:this.flattedNodes;return t?n:function e(t,n){return t.reduce(function(t,r){return r.isLeaf?t.push(r):(!n&&t.push(r),t=t.concat(e(r.children,n))),t},[])}(this.nodes,e)},e.prototype.getNodeByValue=function(e){if(e){var t=this.getFlattedNodes(!1,!this.config.lazy).filter(function(t){return Object(A.valueEquals)(t.path,e)||t.value===e});return t&&t.length?t[0]:null}return null},e}(),qu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wu=vl.a.keys,Ku={expandTrigger:"click",multiple:!1,checkStrictly:!1,emitPath:!0,lazy:!1,lazyLoad:A.noop,value:"value",label:"label",children:"children",leaf:"leaf",disabled:"disabled",hoverThreshold:500},Yu=function(e){return!e.getAttribute("aria-owns")},Xu=function(e,t){var n=e.parentNode;if(n){var r=n.querySelectorAll('.el-cascader-node[tabindex="-1"]');return r[Array.prototype.indexOf.call(r,e)+t]||null}return null},Ju=function(e,t){if(e){var n=e.id.split("-");return Number(n[n.length-2])}},Zu=function(e){e&&(e.focus(),!Yu(e)&&e.click())},eh=i({name:"ElCascaderPanel",components:{CascaderMenu:Qu},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 je()(qu({},Ku),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:{options:{handler:function(){this.initStore()},immediate:!0,deep:!0},value:function(){this.syncCheckedValue(),this.checkStrictly&&this.calculateCheckedNodePaths()},checkedValue:function(e){Object(A.isEqual)(e,this.value)||(this.checkStrictly&&this.calculateCheckedNodePaths(),this.$emit("input",e),this.$emit("change",e))}},mounted:function(){Object(A.isEmpty)(this.value)||this.syncCheckedValue()},methods:{initStore:function(){var e=this.config,t=this.options;e.lazy&&Object(A.isEmpty)(t)?this.lazyLoad():(this.store=new $u(t,e),this.menus=[this.store.getNodes()],this.syncMenuState())},syncCheckedValue:function(){var e=this.value,t=this.checkedValue;Object(A.isEqual)(e,t)||(this.activePath=[],this.checkedValue=e,this.syncMenuState())},syncMenuState:function(){var e=this.multiple,t=this.checkStrictly;this.syncActivePath(),e&&this.syncMultiCheckState(),t&&this.calculateCheckedNodePaths(),this.$nextTick(this.scrollIntoView)},syncMultiCheckState:function(){var e=this;this.getFlattedNodes(this.leafOnly).forEach(function(t){t.syncCheckState(e.checkedValue)})},syncActivePath:function(){var e=this,t=this.store,n=this.multiple,r=this.activePath,i=this.checkedValue;if(Object(A.isEmpty)(r))if(Object(A.isEmpty)(i))this.activePath=[],this.menus=[t.getNodes()];else{var a=n?i[0]:i,o=((this.getNodeByValue(a)||{}).pathNodes||[]).slice(0,-1);this.expandNodes(o)}else{var s=r.map(function(t){return e.getNodeByValue(t.getValue())});this.expandNodes(s)}},expandNodes:function(e){var t=this;e.forEach(function(e){return t.handleExpand(e,!0)})},calculateCheckedNodePaths:function(){var e=this,t=this.checkedValue,n=this.multiple?Object(A.coerceTruthyValueToArray)(t):[t];this.checkedNodePaths=n.map(function(t){var n=e.getNodeByValue(t);return n?n.pathNodes:[]})},handleKeyDown:function(e){var t=e.target;switch(e.keyCode){case Wu.up:var n=Xu(t,-1);Zu(n);break;case Wu.down:var r=Xu(t,1);Zu(r);break;case Wu.left:var i=this.$refs.menu[Ju(t)-1];if(i){var a=i.$el.querySelector('.el-cascader-node[aria-expanded="true"]');Zu(a)}break;case Wu.right:var o=this.$refs.menu[Ju(t)+1];if(o){var s=o.$el.querySelector('.el-cascader-node[tabindex="-1"]');Zu(s)}break;case Wu.enter:!function(e){if(e){var t=e.querySelector("input");t?t.click():Yu(e)&&e.click()}}(t);break;case Wu.esc:case Wu.tab:this.$emit("close");break;default:return}},handleExpand:function(e,t){var n=this.activePath,r=e.level,i=n.slice(0,r-1),a=this.menus.slice(0,r);if(e.isLeaf||(i.push(e),a.push(e.children)),this.activePath=i,this.menus=a,!t){var o=i.map(function(e){return e.getValue()}),s=n.map(function(e){return e.getValue()});Object(A.valueEquals)(o,s)||(this.$emit("active-item-change",o),this.$emit("expand-change",o))}},handleCheckChange:function(e){this.checkedValue=e},lazyLoad:function(e,t){var n=this,r=this.config;e||(e=e||{root:!0,level:0},this.store=new $u([],r),this.menus=[this.store.getNodes()]),e.loading=!0;r.lazyLoad(e,function(r){var i=e.root?null:e;if(r&&r.length&&n.store.appendNodes(r,i),e.loading=!1,e.loaded=!0,Array.isArray(n.checkedValue)){var a=n.checkedValue[n.loadCount++],o=n.config.value,s=n.config.leaf;if(Array.isArray(r)&&r.filter(function(e){return e[o]===a}).length>0){var l=n.store.getNodeByValue(a);l.data[s]||n.lazyLoad(l,function(){n.handleExpand(l)}),n.loadCount===n.checkedValue.length&&n.$parent.computePresentText()}}t&&t(r)})},calculateMultiCheckedValue:function(){this.checkedValue=this.getCheckedNodes(this.leafOnly).map(function(e){return e.getValueByOption()})},scrollIntoView:function(){this.$isServer||(this.$refs.menu||[]).forEach(function(e){var t=e.$el;if(t){var n=t.querySelector(".el-scrollbar__wrap"),r=t.querySelector(".el-cascader-node.is-active")||t.querySelector(".el-cascader-node.in-active-path");Nt()(n,r)}})},getNodeByValue:function(e){return this.store.getNodeByValue(e)},getFlattedNodes:function(e){var t=!this.config.lazy;return this.store.getFlattedNodes(e,t)},getCheckedNodes:function(e){var t=this.checkedValue;return this.multiple?this.getFlattedNodes(e).filter(function(e){return e.checked}):Object(A.isEmpty)(t)?[]:[this.getNodeByValue(t)]},clearCheckedNodes:function(){var e=this.config,t=this.leafOnly,n=e.multiple,r=e.emitPath;n?(this.getCheckedNodes(t).filter(function(e){return!e.isDisabled}).forEach(function(e){return e.doCheck(!1)}),this.calculateMultiCheckedValue()):this.checkedValue=r?[]:null}}},Ou,[],!1,null,null,null);eh.options.__file="packages/cascader-panel/src/cascader-panel.vue";var th=eh.exports;th.install=function(e){e.component(th.name,th)};var nh=th,rh=i({name:"ElAvatar",props:{size:{type:[Number,String],validator:function(e){return"string"==typeof e?["large","medium","small"].includes(e):"number"==typeof e}},shape:{type:String,default:"circle",validator:function(e){return["circle","square"].includes(e)}},icon:String,src:String,alt:String,srcSet:String,error:Function,fit:{type:String,default:"cover"}},data:function(){return{isImageExist:!0}},computed:{avatarClass:function(){var e=this.size,t=this.icon,n=this.shape,r=["el-avatar"];return e&&"string"==typeof e&&r.push("el-avatar--"+e),t&&r.push("el-avatar--icon"),n&&r.push("el-avatar--"+n),r.join(" ")}},methods:{handleError:function(){var e=this.error;!1!==(e?e():void 0)&&(this.isImageExist=!1)},renderAvatar:function(){var e=this.$createElement,t=this.icon,n=this.src,r=this.alt,i=this.isImageExist,a=this.srcSet,o=this.fit;return i&&n?e("img",{attrs:{src:n,alt:r,srcSet:a},on:{error:this.handleError},style:{"object-fit":o}}):t?e("i",{class:t}):this.$slots.default}},render:function(){var e=arguments[0],t=this.avatarClass,n=this.size;return e("span",{class:t,style:"number"==typeof n?{height:n+"px",width:n+"px",lineHeight:n+"px"}:{}},[this.renderAvatar()])}},void 0,void 0,!1,null,null,null);rh.options.__file="packages/avatar/src/main.vue";var ih=rh.exports;ih.install=function(e){e.component(ih.name,ih)};var ah=ih,oh=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-drawer-fade"},on:{"after-enter":e.afterEnter,"after-leave":e.afterLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-drawer__wrapper",attrs:{tabindex:"-1"}},[n("div",{staticClass:"el-drawer__container",class:e.visible&&"el-drawer__open",attrs:{role:"document",tabindex:"-1"},on:{click:function(t){return t.target!==t.currentTarget?null:e.handleWrapperClick(t)}}},[n("div",{ref:"drawer",staticClass:"el-drawer",class:[e.direction,e.customClass],style:e.isHorizontal?"width: "+e.drawerSize:"height: "+e.drawerSize,attrs:{"aria-modal":"true","aria-labelledby":"el-drawer__title","aria-label":e.title,role:"dialog",tabindex:"-1"}},[e.withHeader?n("header",{staticClass:"el-drawer__header",attrs:{id:"el-drawer__title"}},[e._t("title",[n("span",{attrs:{role:"heading",title:e.title}},[e._v(e._s(e.title))])]),e.showClose?n("button",{staticClass:"el-drawer__close-btn",attrs:{"aria-label":"close "+(e.title||"drawer"),type:"button"},on:{click:e.closeDrawer}},[n("i",{staticClass:"el-dialog__close el-icon el-icon-close"})]):e._e()],2):e._e(),e.rendered?n("section",{staticClass:"el-drawer__body"},[e._t("default")],2):e._e()])])])])};oh._withStripped=!0;var sh=i({name:"ElDrawer",mixins:[b.a,C.a],props:{appendToBody:{type:Boolean,default:!1},beforeClose:{type:Function},customClass:{type:String,default:""},closeOnPressEscape:{type:Boolean,default:!0},destroyOnClose:{type:Boolean,default:!1},modal:{type:Boolean,default:!0},direction:{type:String,default:"rtl",validator:function(e){return-1!==["ltr","rtl","ttb","btt"].indexOf(e)}},modalAppendToBody:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},size:{type:[Number,String],default:"30%"},title:{type:String,default:""},visible:{type:Boolean},wrapperClosable:{type:Boolean,default:!0},withHeader:{type:Boolean,default:!0}},computed:{isHorizontal:function(){return"rtl"===this.direction||"ltr"===this.direction},drawerSize:function(){return"number"==typeof this.size?this.size+"px":this.size}},data:function(){return{closed:!1,prevActiveElement:null}},watch:{visible:function(e){var t=this;e?(this.closed=!1,this.$emit("open"),this.appendToBody&&document.body.appendChild(this.$el),this.prevActiveElement=document.activeElement):(this.closed||this.$emit("close"),this.$nextTick(function(){t.prevActiveElement&&t.prevActiveElement.focus()}))}},methods:{afterEnter:function(){this.$emit("opened")},afterLeave:function(){this.$emit("closed")},hide:function(e){!1!==e&&(this.$emit("update:visible",!1),this.$emit("close"),!0===this.destroyOnClose&&(this.rendered=!1),this.closed=!0)},handleWrapperClick:function(){this.wrapperClosable&&this.closeDrawer()},closeDrawer:function(){"function"==typeof this.beforeClose?this.beforeClose(this.hide):this.hide()},handleClose:function(){this.closeDrawer()}},mounted:function(){this.visible&&(this.rendered=!0,this.open())},destroyed:function(){this.appendToBody&&this.$el&&this.$el.parentNode&&this.$el.parentNode.removeChild(this.$el)}},oh,[],!1,null,null,null);sh.options.__file="packages/drawer/src/main.vue";var lh=sh.exports;lh.install=function(e){e.component(lh.name,lh)};var ch=lh,uh=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-popover",e._b({attrs:{trigger:"click"},model:{value:e.visible,callback:function(t){e.visible=t},expression:"visible"}},"el-popover",e.$attrs,!1),[n("div",{staticClass:"el-popconfirm"},[n("p",{staticClass:"el-popconfirm__main"},[e.hideIcon?e._e():n("i",{staticClass:"el-popconfirm__icon",class:e.icon,style:{color:e.iconColor}}),e._v("\n "+e._s(e.title)+"\n ")]),n("div",{staticClass:"el-popconfirm__action"},[n("el-button",{attrs:{size:"mini",type:e.cancelButtonType},on:{click:e.cancel}},[e._v("\n "+e._s(e.displayCancelButtonText)+"\n ")]),n("el-button",{attrs:{size:"mini",type:e.confirmButtonType},on:{click:e.confirm}},[e._v("\n "+e._s(e.displayConfirmButtonText)+"\n ")])],1)]),e._t("reference",null,{slot:"reference"})],2)};uh._withStripped=!0;var hh=n(44),dh=i({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:n.n(hh).a,ElButton:$.a},data:function(){return{visible:!1}},computed:{displayConfirmButtonText:function(){return this.confirmButtonText||Object(Pi.t)("el.popconfirm.confirmButtonText")},displayCancelButtonText:function(){return this.cancelButtonText||Object(Pi.t)("el.popconfirm.cancelButtonText")}},methods:{confirm:function(){this.visible=!1,this.$emit("confirm")},cancel:function(){this.visible=!1,this.$emit("cancel")}}},uh,[],!1,null,null,null);dh.options.__file="packages/popconfirm/src/main.vue";var fh=dh.exports;fh.install=function(e){e.component(fh.name,fh)};var ph=fh,Ah=[m,B,V,X,te,ae,me,Ce,Ie,Pe,Ge,Ye,et,at,ct,ft,mt,wt,St,jt,Qt,$t,Yt,en,rr,ur,si,Ai,Ci,Ii,Fi,na,oa,ua,va,ka,Ia,Da,Xa,no,_o,Ho,Qo,Go,os,us,ps,Es,Fs,Rs,js,Gs,Xs,tl,al,cl,fl,Sl,tc,lc,dc,gc,bc,Cc,Ec,Mc,Oc,Uc,zc,ou,gu,wu,Pu,nh,ah,ch,ph,ye.a],gh=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Oi.a.use(t.locale),Oi.a.i18n(t.i18n),Ah.forEach(function(t){e.component(t.name,t)}),e.use(Iu),e.use(Lo.directive),e.prototype.$ELEMENT={size:t.size||"",zIndex:t.zIndex||2e3},e.prototype.$loading=Lo.service,e.prototype.$msgbox=Ji,e.prototype.$alert=Ji.alert,e.prototype.$confirm=Ji.confirm,e.prototype.$prompt=Ji.prompt,e.prototype.$notify=fo,e.prototype.$message=Cs};"undefined"!=typeof window&&window.Vue&&gh(window.Vue);t.default={version:"2.15.1",locale:Oi.a.use,i18n:Oi.a.i18n,install:gh,CollapseTransition:ye.a,Loading:Lo,Pagination:m,Dialog:B,Autocomplete:V,Dropdown:X,DropdownMenu:te,DropdownItem:ae,Menu:me,Submenu:Ce,MenuItem:Ie,MenuItemGroup:Pe,Input:Ge,InputNumber:Ye,Radio:et,RadioGroup:at,RadioButton:ct,Checkbox:ft,CheckboxButton:mt,CheckboxGroup:wt,Switch:St,Select:jt,Option:Qt,OptionGroup:$t,Button:Yt,ButtonGroup:en,Table:rr,TableColumn:ur,DatePicker:si,TimeSelect:Ai,TimePicker:Ci,Popover:Ii,Tooltip:Fi,MessageBox:Ji,Breadcrumb:na,BreadcrumbItem:oa,Form:ua,FormItem:va,Tabs:ka,TabPane:Ia,Tag:Da,Tree:Xa,Alert:no,Notification:fo,Slider:_o,Icon:Ho,Row:Qo,Col:Go,Upload:os,Progress:us,Spinner:ps,Message:Cs,Badge:Es,Card:Fs,Rate:Rs,Steps:js,Step:Gs,Carousel:Xs,Scrollbar:tl,CarouselItem:al,Collapse:cl,CollapseItem:fl,Cascader:Sl,ColorPicker:tc,Transfer:lc,Container:dc,Header:gc,Aside:bc,Main:Cc,Footer:Ec,Timeline:Mc,TimelineItem:Oc,Link:Uc,Divider:zc,Image:ou,Calendar:gu,Backtop:wu,InfiniteScroll:Iu,PageHeader:Pu,CascaderPanel:nh,Avatar:ah,Drawer:ch,Popconfirm:ph}}]).default},zQR9:function(e,t,n){"use strict";var r=n("h65t")(!0);n("vIB/")(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})})},zTCi:function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){if(a.default.prototype.$isServer)return;if(!t)return void(e.scrollTop=0);var n=[],r=t.offsetParent;for(;r&&e!==r&&e.contains(r);)n.push(r),r=r.offsetParent;var i=t.offsetTop+n.reduce(function(e,t){return e+t.offsetTop},0),o=i+t.offsetHeight,s=e.scrollTop,l=s+e.clientHeight;i<s?e.scrollTop=i:o>l&&(e.scrollTop=o-e.clientHeight)};var r,i=n("7+uW"),a=(r=i)&&r.__esModule?r:{default:r}}});
  142. //# sourceMappingURL=vendor.1ad0555965871ff5ead4.js.map